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
TagContract refresh(Context context);
TagContract refresh(Context context);
/** * Refreshes the resource to sync with Azure. * * @param context The context to associate with this operation. * @return the refreshed resource. */
Refreshes the resource to sync with Azure
refresh
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/apimanagement/azure-resourcemanager-apimanagement/src/main/java/com/azure/resourcemanager/apimanagement/models/TagContract.java", "license": "mit", "size": 6032 }
[ "com.azure.core.util.Context" ]
import com.azure.core.util.Context;
import com.azure.core.util.*;
[ "com.azure.core" ]
com.azure.core;
534
protected DeclarationResolver getDeclarationResolverImp() { if (declarationResolver == null) { declarationResolver = buildDeclarationResolver(); } // Only traverse the declaration once if (!traversed) { traversed = true; declarationResolver.populate(currentQuery); } return declara...
DeclarationResolver function() { if (declarationResolver == null) { declarationResolver = buildDeclarationResolver(); } if (!traversed) { traversed = true; declarationResolver.populate(currentQuery); } return declarationResolver; }
/** * Returns the {@link DeclarationResolver} of the current query's declaration. * * @return The {@link DeclarationResolver} for the current query being visited */
Returns the <code>DeclarationResolver</code> of the current query's declaration
getDeclarationResolverImp
{ "repo_name": "bfg-repo-cleaner-demos/eclipselink.runtime-bfg-strip-big-blobs", "path": "jpa/org.eclipse.persistence.jpa.jpql/src/org/eclipse/persistence/jpa/jpql/tools/JPQLQueryContext.java", "license": "epl-1.0", "size": 33626 }
[ "org.eclipse.persistence.jpa.jpql.tools.resolver.DeclarationResolver" ]
import org.eclipse.persistence.jpa.jpql.tools.resolver.DeclarationResolver;
import org.eclipse.persistence.jpa.jpql.tools.resolver.*;
[ "org.eclipse.persistence" ]
org.eclipse.persistence;
2,129,206
void writeRoot(DataOutput out) throws IOException { for (int i = 0; i < blockKeys.size(); ++i) { out.writeLong(blockOffsets.get(i)); out.writeInt(onDiskDataSizes.get(i)); Bytes.writeByteArray(out, blockKeys.get(i)); } }
void writeRoot(DataOutput out) throws IOException { for (int i = 0; i < blockKeys.size(); ++i) { out.writeLong(blockOffsets.get(i)); out.writeInt(onDiskDataSizes.get(i)); Bytes.writeByteArray(out, blockKeys.get(i)); } }
/** * Writes this chunk into the given output stream in the root block index * format. This format is similar to the {@link HFile} version 1 block * index format, except that we store on-disk size of the block instead of * its uncompressed size. * * @param out the data output stream to wri...
Writes this chunk into the given output stream in the root block index format. This format is similar to the <code>HFile</code> version 1 block index format, except that we store on-disk size of the block instead of its uncompressed size
writeRoot
{ "repo_name": "andrewmains12/hbase", "path": "hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/HFileBlockIndex.java", "license": "apache-2.0", "size": 55256 }
[ "java.io.DataOutput", "java.io.IOException", "org.apache.hadoop.hbase.util.Bytes" ]
import java.io.DataOutput; import java.io.IOException; import org.apache.hadoop.hbase.util.Bytes;
import java.io.*; import org.apache.hadoop.hbase.util.*;
[ "java.io", "org.apache.hadoop" ]
java.io; org.apache.hadoop;
1,291,746
List<Attribute> getAttributes(PerunSession sess, Group group) throws InternalErrorException;
List<Attribute> getAttributes(PerunSession sess, Group group) throws InternalErrorException;
/** * Get all <b>non-empty</b> attributes associated with the group. * * @param sess perun session * @param group group to get the attributes from * @return list of attributes * * @throws InternalErrorException if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExce...
Get all non-empty attributes associated with the group
getAttributes
{ "repo_name": "Simcsa/perun", "path": "perun-core/src/main/java/cz/metacentrum/perun/core/implApi/AttributesManagerImplApi.java", "license": "bsd-2-clause", "size": 98325 }
[ "cz.metacentrum.perun.core.api.Attribute", "cz.metacentrum.perun.core.api.Group", "cz.metacentrum.perun.core.api.PerunSession", "cz.metacentrum.perun.core.api.exceptions.InternalErrorException", "java.util.List" ]
import cz.metacentrum.perun.core.api.Attribute; import cz.metacentrum.perun.core.api.Group; import cz.metacentrum.perun.core.api.PerunSession; import cz.metacentrum.perun.core.api.exceptions.InternalErrorException; import java.util.List;
import cz.metacentrum.perun.core.api.*; import cz.metacentrum.perun.core.api.exceptions.*; import java.util.*;
[ "cz.metacentrum.perun", "java.util" ]
cz.metacentrum.perun; java.util;
2,424,568
private static byte[] createImageThumbnail(final InputStream is, final Dimension scaledSize) { BufferedImage image; MemoryCacheImageInputStream mciis; try { mciis = new MemoryCacheImageInputStream(is); image = ImageIO.read(mciis); } catch (Exception e) { LOG.warn("Unable to read input image...
static byte[] function(final InputStream is, final Dimension scaledSize) { BufferedImage image; MemoryCacheImageInputStream mciis; try { mciis = new MemoryCacheImageInputStream(is); image = ImageIO.read(mciis); } catch (Exception e) { LOG.warn(STR, e); return null; } if (image == null) { return null; } try { byte[] jpe...
/** * This method will create a JPEG "thumb nail" of an image read from an {@link InputStream}. The maximum Dimension * of the returned JPEG Image will be {@link #THUMBNAIL_MAX}. * * @param is the InputStream representing the image for which the JPEG thumb nail is to be returned. * @param scaledSize the ...
This method will create a JPEG "thumb nail" of an image read from an <code>InputStream</code>. The maximum Dimension of the returned JPEG Image will be <code>#THUMBNAIL_MAX</code>
createImageThumbnail
{ "repo_name": "Joshua-Barclay/wcomponents", "path": "wcomponents-core/src/main/java/com/github/bordertech/wcomponents/util/thumbnail/ThumbnailUtil.java", "license": "gpl-3.0", "size": 9210 }
[ "java.awt.Dimension", "java.awt.image.BufferedImage", "java.io.InputStream", "javax.imageio.ImageIO", "javax.imageio.stream.MemoryCacheImageInputStream" ]
import java.awt.Dimension; import java.awt.image.BufferedImage; import java.io.InputStream; import javax.imageio.ImageIO; import javax.imageio.stream.MemoryCacheImageInputStream;
import java.awt.*; import java.awt.image.*; import java.io.*; import javax.imageio.*; import javax.imageio.stream.*;
[ "java.awt", "java.io", "javax.imageio" ]
java.awt; java.io; javax.imageio;
816,390
public static void checkFreeMemory() throws OwsExceptionReport { long freeMem; // check remaining free memory on heap if too small, throw exception to // avoid an OutOfMemoryError freeMem = Runtime.getRuntime().freeMemory(); LOGGER.debug("Remaining Heap Size: " + (freeMem / K...
static void function() throws OwsExceptionReport { long freeMem; freeMem = Runtime.getRuntime().freeMemory(); LOGGER.debug(STR + (freeMem / KILO_BYTE) + "KB"); if ((Runtime.getRuntime().totalMemory() == Runtime.getRuntime().maxMemory()) && (freeMem < KILO_BYTES_256)) { throw new ResponseExceedsSizeLimitException().with...
/** * Checks the free memory size. * * @throws OwsExceptionReport * If no free memory size. */
Checks the free memory size
checkFreeMemory
{ "repo_name": "shane-axiom/SOS", "path": "core/api/src/main/java/org/n52/sos/util/SosHelper.java", "license": "gpl-2.0", "size": 30799 }
[ "org.n52.sos.exception.sos.ResponseExceedsSizeLimitException", "org.n52.sos.ogc.ows.OwsExceptionReport" ]
import org.n52.sos.exception.sos.ResponseExceedsSizeLimitException; import org.n52.sos.ogc.ows.OwsExceptionReport;
import org.n52.sos.exception.sos.*; import org.n52.sos.ogc.ows.*;
[ "org.n52.sos" ]
org.n52.sos;
2,816,515
public static void i(Context context, Throwable tr) { if (isAllowed(context, Log.LEVEL_INFO)) { android.util.Log.i(getTag(context), tr.getMessage(), tr); } }
static void function(Context context, Throwable tr) { if (isAllowed(context, Log.LEVEL_INFO)) { android.util.Log.i(getTag(context), tr.getMessage(), tr); } }
/** * Write a "info" message to the log. * * @param context Use the "closest" context object possible (e.g. if you're * in an activity or service use that and not the * application activity) as this will be used as the tag. * @param tr A throwable whose stack trace will als...
Write a "info" message to the log
i
{ "repo_name": "fixedd/succinct_android_logging", "path": "src/com/fixedd/util/Log.java", "license": "apache-2.0", "size": 18320 }
[ "android.content.Context" ]
import android.content.Context;
import android.content.*;
[ "android.content" ]
android.content;
88,493
String format = getMessageFormat(); return MessageFormat.format(format, arguments); }
String format = getMessageFormat(); return MessageFormat.format(format, arguments); }
/** * Returns a diagnostic message for the arguments. * @param arguments the diagnostic arguments * @return diagnostic message */
Returns a diagnostic message for the arguments
getMessage
{ "repo_name": "akirakw/asakusafw", "path": "dmdl-project/asakusa-dmdl-core/src/main/java/com/asakusafw/dmdl/parser/SyntaxErrorKind.java", "license": "apache-2.0", "size": 2584 }
[ "java.text.MessageFormat" ]
import java.text.MessageFormat;
import java.text.*;
[ "java.text" ]
java.text;
2,868,325
public void addGameMaps(GameMapSchema gameMap) { List<GameMapSchema> gameMaps = new ArrayList<GameMapSchema>(); gameMaps.add(gameMap); myGameBlueprint.setMyGameMapSchemas(gameMaps); }
void function(GameMapSchema gameMap) { List<GameMapSchema> gameMaps = new ArrayList<GameMapSchema>(); gameMaps.add(gameMap); myGameBlueprint.setMyGameMapSchemas(gameMaps); }
/** * Adds gamemaps to the game blueprint * * @param gameMap */
Adds gamemaps to the game blueprint
addGameMaps
{ "repo_name": "garysheng/tower-defense-game-engine", "path": "src/main/java/author/model/AuthorModel.java", "license": "mit", "size": 2321 }
[ "java.util.ArrayList", "java.util.List" ]
import java.util.ArrayList; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,789,735
SourcePath getTestHostAppBinarySourcePath();
SourcePath getTestHostAppBinarySourcePath();
/** * Location of the test host binary that can be passed as the "bundle loader" option when * linking the test library. */
Location of the test host binary that can be passed as the "bundle loader" option when linking the test library
getTestHostAppBinarySourcePath
{ "repo_name": "OkBuilds/buck", "path": "src/com/facebook/buck/apple/AppleTestDescription.java", "license": "apache-2.0", "size": 20928 }
[ "com.facebook.buck.rules.SourcePath" ]
import com.facebook.buck.rules.SourcePath;
import com.facebook.buck.rules.*;
[ "com.facebook.buck" ]
com.facebook.buck;
1,098,429
public static Runnable newRunnableSink(InputStream in, OutputStream out) { if (in == null) { throw new NullPointerException("in"); } if (out == null) { throw new NullPointerException("out"); } return new CopySink(in, out); }
static Runnable function(InputStream in, OutputStream out) { if (in == null) { throw new NullPointerException("in"); } if (out == null) { throw new NullPointerException("out"); } return new CopySink(in, out); }
/** * Creates a {@link Runnable} which copies everything from 'in' * to 'out'. 'out' will be written to and flushed after each * read from 'in'. However, 'out' will not be closed. */
Creates a <code>Runnable</code> which copies everything from 'in' to 'out'. 'out' will be written to and flushed after each read from 'in'. However, 'out' will not be closed
newRunnableSink
{ "repo_name": "android/android-test", "path": "tools/device_broker/java/com/google/android/apps/common/testing/broker/shell/InputStreamSink.java", "license": "apache-2.0", "size": 3994 }
[ "java.io.InputStream", "java.io.OutputStream" ]
import java.io.InputStream; import java.io.OutputStream;
import java.io.*;
[ "java.io" ]
java.io;
2,378,808
public static void notifyIdleness(Iterator<? extends IoSession> sessions, long currentTime) { IoSession s = null; while (sessions.hasNext()) { s = sessions.next(); notifyIdleSession(s, currentTime); } }
static void function(Iterator<? extends IoSession> sessions, long currentTime) { IoSession s = null; while (sessions.hasNext()) { s = sessions.next(); notifyIdleSession(s, currentTime); } }
/** * Fires a {@link IoEventType#SESSION_IDLE} event to any applicable sessions * in the specified collection. * * @param currentTime * the current time (i.e. {@link System#currentTimeMillis()}) */
Fires a <code>IoEventType#SESSION_IDLE</code> event to any applicable sessions in the specified collection
notifyIdleness
{ "repo_name": "jeffmaury/mina", "path": "mina-core/src/main/java/org/apache/mina/core/session/AbstractIoSession.java", "license": "apache-2.0", "size": 39656 }
[ "java.util.Iterator" ]
import java.util.Iterator;
import java.util.*;
[ "java.util" ]
java.util;
58,094
public void populateAndShowAddModuleView() { view.getMultipleSelectTwoSidedListBox().getLeftHandSideListBox().clear(); view.getMultipleSelectTwoSidedListBox().populateListBoxWithValues( view.getMultipleSelectTwoSidedListBox().getLeftHandSideListBox(), controller.getAllModules()); view.getMultipleSelectTwo...
void function() { view.getMultipleSelectTwoSidedListBox().getLeftHandSideListBox().clear(); view.getMultipleSelectTwoSidedListBox().populateListBoxWithValues( view.getMultipleSelectTwoSidedListBox().getLeftHandSideListBox(), controller.getAllModules()); view.getMultipleSelectTwoSidedListBox().populateListBoxWithValues(...
/** * To populate and show add module view. */
To populate and show add module view
populateAndShowAddModuleView
{ "repo_name": "kuzavas/ephesoft", "path": "dcma-gwt/dcma-gwt-admin/src/main/java/com/ephesoft/dcma/gwt/admin/bm/client/presenter/module/ConfigureModulePresenter.java", "license": "agpl-3.0", "size": 10846 }
[ "com.ephesoft.dcma.gwt.core.client.ui.ScreenMaskUtility" ]
import com.ephesoft.dcma.gwt.core.client.ui.ScreenMaskUtility;
import com.ephesoft.dcma.gwt.core.client.ui.*;
[ "com.ephesoft.dcma" ]
com.ephesoft.dcma;
2,487,469
public RuleConfiguredTargetBuilder addOutputGroup(String name, Artifact artifact) { getOutputGroupBuilder(name).add(artifact); return this; }
RuleConfiguredTargetBuilder function(String name, Artifact artifact) { getOutputGroupBuilder(name).add(artifact); return this; }
/** * Adds a file to an output group. */
Adds a file to an output group
addOutputGroup
{ "repo_name": "damienmg/bazel", "path": "src/main/java/com/google/devtools/build/lib/analysis/RuleConfiguredTargetBuilder.java", "license": "apache-2.0", "size": 16782 }
[ "com.google.devtools.build.lib.actions.Artifact" ]
import com.google.devtools.build.lib.actions.Artifact;
import com.google.devtools.build.lib.actions.*;
[ "com.google.devtools" ]
com.google.devtools;
1,823,823
public void simpleDelete(String path) { try { fetchResponse(SlaveManager.getBasicIssuer().issueDeleteToSlave(this, path), 300000); } catch (RemoteIOException e) { if (e.getCause() instanceof FileNotFoundException) { return; } setOffline("IOException deleting file, check logs for specific error")...
void function(String path) { try { fetchResponse(SlaveManager.getBasicIssuer().issueDeleteToSlave(this, path), 300000); } catch (RemoteIOException e) { if (e.getCause() instanceof FileNotFoundException) { return; } setOffline(STR); addQueueDelete(path); logger.error(STR, e); } catch (SlaveUnavailableException e) { addQ...
/** * Deletes files/directories and waits for the response Meant to be used if * you don't want to utilize asynchronization */
Deletes files/directories and waits for the response Meant to be used if you don't want to utilize asynchronization
simpleDelete
{ "repo_name": "dr3plus/dr3", "path": "src/master/src/org/drftpd/master/RemoteSlave.java", "license": "gpl-2.0", "size": 40108 }
[ "java.io.FileNotFoundException", "org.drftpd.exceptions.SlaveUnavailableException", "org.drftpd.slave.RemoteIOException" ]
import java.io.FileNotFoundException; import org.drftpd.exceptions.SlaveUnavailableException; import org.drftpd.slave.RemoteIOException;
import java.io.*; import org.drftpd.exceptions.*; import org.drftpd.slave.*;
[ "java.io", "org.drftpd.exceptions", "org.drftpd.slave" ]
java.io; org.drftpd.exceptions; org.drftpd.slave;
1,167,446
private boolean loadAccessTokenFromPreferences(Context context) { accessToken = PreferenceManager.getDefaultSharedPreferences(context).getString(Const.ACCESS_TOKEN, null); // no access token set, or it is obviously wrong if (accessToken == null || accessToken.length() < 1) { ret...
boolean function(Context context) { accessToken = PreferenceManager.getDefaultSharedPreferences(context).getString(Const.ACCESS_TOKEN, null); if (accessToken == null accessToken.length() < 1) { return false; } setParameter(Const.P_TOKEN, accessToken); return true; }
/** * Check if TUMOnline access token can be retrieved from shared preferences. * * @param context The context * @return true if access token is available; false otherwise */
Check if TUMOnline access token can be retrieved from shared preferences
loadAccessTokenFromPreferences
{ "repo_name": "kordianbruck/TumCampusApp", "path": "app/src/main/java/de/tum/in/tumcampusapp/tumonline/TUMOnlineRequest.java", "license": "gpl-2.0", "size": 9623 }
[ "android.content.Context", "android.preference.PreferenceManager", "de.tum.in.tumcampusapp.auxiliary.Const" ]
import android.content.Context; import android.preference.PreferenceManager; import de.tum.in.tumcampusapp.auxiliary.Const;
import android.content.*; import android.preference.*; import de.tum.in.tumcampusapp.auxiliary.*;
[ "android.content", "android.preference", "de.tum.in" ]
android.content; android.preference; de.tum.in;
2,773,536
@Test(timeout = 20000) public void testSharedDurableSubscriberLinkNamesNoClientID() throws Exception { doSharedSubsriberLinkNamesHaveUniqueCounterSuffixTestImpl(true, false); }
@Test(timeout = 20000) void function() throws Exception { doSharedSubsriberLinkNamesHaveUniqueCounterSuffixTestImpl(true, false); }
/** * Verifies that on a connection without a ClientID, shared durable subscribers name their links * such that the first link is the subscription name with 'global' suffix, and subsequent links * additionally append a counter suffix to ensure they are unique. * * @throws Exception if an unexpe...
Verifies that on a connection without a ClientID, shared durable subscribers name their links such that the first link is the subscription name with 'global' suffix, and subsequent links additionally append a counter suffix to ensure they are unique
testSharedDurableSubscriberLinkNamesNoClientID
{ "repo_name": "gemmellr/qpid-jms", "path": "qpid-jms-client/src/test/java/org/apache/qpid/jms/integration/SubscriptionsIntegrationTest.java", "license": "apache-2.0", "size": 73102 }
[ "org.junit.Test" ]
import org.junit.Test;
import org.junit.*;
[ "org.junit" ]
org.junit;
2,500,725
public void setCell(final int columnIndex, final Object value) { Preconditions.checkArgument(columnIndex > 0 && columnIndex < data.length + 1); data[columnIndex - 1] = value; }
void function(final int columnIndex, final Object value) { Preconditions.checkArgument(columnIndex > 0 && columnIndex < data.length + 1); data[columnIndex - 1] = value; }
/** * Set data for cell. * * @param columnIndex column index * @param value data for cell */
Set data for cell
setCell
{ "repo_name": "dangdangdotcom/sharding-jdbc", "path": "sharding-core/src/main/java/io/shardingsphere/core/merger/dql/common/MemoryQueryResultRow.java", "license": "apache-2.0", "size": 2046 }
[ "com.google.common.base.Preconditions" ]
import com.google.common.base.Preconditions;
import com.google.common.base.*;
[ "com.google.common" ]
com.google.common;
1,252,731
public char[] toValue() { StringBuilder builder = new StringBuilder(); builder.append("PrincipalKeyCredential"); builder.append(new Gson().toJson(this)); return builder.toString().toCharArray(); }
char[] function() { StringBuilder builder = new StringBuilder(); builder.append(STR); builder.append(new Gson().toJson(this)); return builder.toString().toCharArray(); }
/** * Returns a value representation of this PrincipalKeyCredential * * @return a String containing the value representation of this PrincipalKeyCredential */
Returns a value representation of this PrincipalKeyCredential
toValue
{ "repo_name": "radicalbit/ambari", "path": "ambari-server/src/main/java/org/apache/ambari/server/security/credential/PrincipalKeyCredential.java", "license": "apache-2.0", "size": 4833 }
[ "com.google.gson.Gson" ]
import com.google.gson.Gson;
import com.google.gson.*;
[ "com.google.gson" ]
com.google.gson;
1,075,319
public void testRemove() { ConcurrentLinkedDeque q = populatedDeque(SIZE); for (int i = 0; i < SIZE; ++i) { assertEquals(i, q.remove()); } try { q.remove(); shouldThrow(); } catch (NoSuchElementException success) {} }
void function() { ConcurrentLinkedDeque q = populatedDeque(SIZE); for (int i = 0; i < SIZE; ++i) { assertEquals(i, q.remove()); } try { q.remove(); shouldThrow(); } catch (NoSuchElementException success) {} }
/** * remove() removes next element, or throws NSEE if empty */
remove() removes next element, or throws NSEE if empty
testRemove
{ "repo_name": "life-beam/j2objc", "path": "jre_emul/android/platform/libcore/jsr166-tests/src/test/java/jsr166/ConcurrentLinkedDequeTest.java", "license": "apache-2.0", "size": 26542 }
[ "java.util.NoSuchElementException", "java.util.concurrent.ConcurrentLinkedDeque" ]
import java.util.NoSuchElementException; import java.util.concurrent.ConcurrentLinkedDeque;
import java.util.*; import java.util.concurrent.*;
[ "java.util" ]
java.util;
2,381,427
void notifyDataChanged(boolean toSave) { if (isHCSData()) return; if (event != null && toSave) return; EventBus bus = MeasurementAgent.getRegistry().getEventBus(); event = new SaveRelatedData(getPixelsID(), new SaveData(getPixelsID(), SaveData.MEASUREMENT_TYPE), "The ROI", toSave); checkIf...
void notifyDataChanged(boolean toSave) { if (isHCSData()) return; if (event != null && toSave) return; EventBus bus = MeasurementAgent.getRegistry().getEventBus(); event = new SaveRelatedData(getPixelsID(), new SaveData(getPixelsID(), SaveData.MEASUREMENT_TYPE), STR, toSave); checkIfHasROIToDelete(); bus.post(event); i...
/** * Notifies listeners that the measurement tool does not have data to save * if <code>false</code>. * * @param toSave Pass <code>true</code> to save the data, <code>false</code> * otherwise. */
Notifies listeners that the measurement tool does not have data to save if <code>false</code>
notifyDataChanged
{ "repo_name": "bramalingam/openmicroscopy", "path": "components/insight/SRC/org/openmicroscopy/shoola/agents/measurement/view/MeasurementViewerModel.java", "license": "gpl-2.0", "size": 50321 }
[ "org.openmicroscopy.shoola.agents.events.SaveData", "org.openmicroscopy.shoola.agents.events.iviewer.SaveRelatedData", "org.openmicroscopy.shoola.agents.measurement.MeasurementAgent", "org.openmicroscopy.shoola.env.event.EventBus" ]
import org.openmicroscopy.shoola.agents.events.SaveData; import org.openmicroscopy.shoola.agents.events.iviewer.SaveRelatedData; import org.openmicroscopy.shoola.agents.measurement.MeasurementAgent; import org.openmicroscopy.shoola.env.event.EventBus;
import org.openmicroscopy.shoola.agents.events.*; import org.openmicroscopy.shoola.agents.events.iviewer.*; import org.openmicroscopy.shoola.agents.measurement.*; import org.openmicroscopy.shoola.env.event.*;
[ "org.openmicroscopy.shoola" ]
org.openmicroscopy.shoola;
1,753,875
public static MozuClient<List<com.mozu.api.contracts.productadmin.ProductExtraValueDeltaPrice>> updateExtraValueLocalizedDeltaPricesClient(com.mozu.api.DataViewMode dataViewMode, List<com.mozu.api.contracts.productadmin.ProductExtraValueDeltaPrice> localizedDeltaPrice, String productCode, String attributeFQN, String...
static MozuClient<List<com.mozu.api.contracts.productadmin.ProductExtraValueDeltaPrice>> function(com.mozu.api.DataViewMode dataViewMode, List<com.mozu.api.contracts.productadmin.ProductExtraValueDeltaPrice> localizedDeltaPrice, String productCode, String attributeFQN, String value) throws Exception { MozuUrl url = com...
/** * * <p><pre><code> * MozuClient<List<com.mozu.api.contracts.productadmin.ProductExtraValueDeltaPrice>> mozuClient=UpdateExtraValueLocalizedDeltaPricesClient(dataViewMode, localizedDeltaPrice, productCode, attributeFQN, value); * client.setBaseAddress(url); * client.executeRequest(); * Product...
<code><code> MozuClient> mozuClient=UpdateExtraValueLocalizedDeltaPricesClient(dataViewMode, localizedDeltaPrice, productCode, attributeFQN, value); client.setBaseAddress(url); client.executeRequest(); ProductExtraValueDeltaPrice productExtraValueDeltaPrice = client.Result(); </code></code>
updateExtraValueLocalizedDeltaPricesClient
{ "repo_name": "Mozu/mozu-java", "path": "mozu-javaasync-core/src/main/java/com/mozu/api/clients/commerce/catalog/admin/products/ProductExtraClient.java", "license": "mit", "size": 29294 }
[ "com.mozu.api.DataViewMode", "com.mozu.api.Headers", "com.mozu.api.MozuClient", "com.mozu.api.MozuClientFactory", "com.mozu.api.MozuUrl", "java.util.ArrayList", "java.util.List" ]
import com.mozu.api.DataViewMode; import com.mozu.api.Headers; import com.mozu.api.MozuClient; import com.mozu.api.MozuClientFactory; import com.mozu.api.MozuUrl; import java.util.ArrayList; import java.util.List;
import com.mozu.api.*; import java.util.*;
[ "com.mozu.api", "java.util" ]
com.mozu.api; java.util;
2,159,526
public void handleConsoleTabCompletions() { final String commandLine = getCommandLine(); final int commandLineOffset = viewer.getCommandLineOffset(); final int caretOffset = viewer.getCaretOffset(); // Don't block the UI when talking to the console Job j = new Job("Async Fet...
void function() { final String commandLine = getCommandLine(); final int commandLineOffset = viewer.getCommandLineOffset(); final int caretOffset = viewer.getCaretOffset(); Job j = new Job(STR) {
/** * Attempts to query the console backend (ipython) for completions * and update the console's cursor as appropriate. */
Attempts to query the console backend (ipython) for completions and update the console's cursor as appropriate
handleConsoleTabCompletions
{ "repo_name": "akurtakov/Pydev", "path": "plugins/org.python.pydev.shared_interactive_console/src/org/python/pydev/shared_interactive_console/console/ui/internal/ScriptConsoleDocumentListener.java", "license": "epl-1.0", "size": 41497 }
[ "org.eclipse.core.runtime.jobs.Job" ]
import org.eclipse.core.runtime.jobs.Job;
import org.eclipse.core.runtime.jobs.*;
[ "org.eclipse.core" ]
org.eclipse.core;
2,214,775
public TemplateFolder getTemplateFolder(String folder_id) throws Exception{ JSONObject jsonTemplateFolder = new JSONObject(do_Get(new URL(templatefolderendpoint +"/"+folder_id), getApikey())); return new TemplateFolder(this, jsonTemplateFolder); }
TemplateFolder function(String folder_id) throws Exception{ JSONObject jsonTemplateFolder = new JSONObject(do_Get(new URL(templatefolderendpoint +"/"+folder_id), getApikey())); return new TemplateFolder(this, jsonTemplateFolder); }
/** * Get a specific template folder * @param folder_id */
Get a specific template folder
getTemplateFolder
{ "repo_name": "alexanderwe/bananaj", "path": "src/main/java/com/github/alexanderwe/bananaj/connection/MailChimpConnection.java", "license": "mit", "size": 30466 }
[ "com.github.alexanderwe.bananaj.model.template.TemplateFolder", "org.json.JSONObject" ]
import com.github.alexanderwe.bananaj.model.template.TemplateFolder; import org.json.JSONObject;
import com.github.alexanderwe.bananaj.model.template.*; import org.json.*;
[ "com.github.alexanderwe", "org.json" ]
com.github.alexanderwe; org.json;
715,133
public void clear() { Iterator iter = touchData.entrySet().iterator(); while(iter.hasNext()) { Map.Entry entry = (Map.Entry)iter.next(); TouchData data = (TouchData)entry.getValue(); data.setTouched(false); } }
void function() { Iterator iter = touchData.entrySet().iterator(); while(iter.hasNext()) { Map.Entry entry = (Map.Entry)iter.next(); TouchData data = (TouchData)entry.getValue(); data.setTouched(false); } }
/** * Use this to clear the input buffer. */
Use this to clear the input buffer
clear
{ "repo_name": "hkeeble/gdxFramework", "path": "com/henrik/gdxFramework/core/InputHandler.java", "license": "mit", "size": 3263 }
[ "java.util.Iterator", "java.util.Map" ]
import java.util.Iterator; import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
863,655
public ImmutableList<Warp> getMatches() { return Ordering.natural().immutableSortedCopy(matchingWarps); }
ImmutableList<Warp> function() { return Ordering.natural().immutableSortedCopy(matchingWarps); }
/** * Gets a naturally sorted immutable list that contains all warps matching this Matchers criteria. * * @return a list of all matches */
Gets a naturally sorted immutable list that contains all warps matching this Matchers criteria
getMatches
{ "repo_name": "epicbastion/MyWarp", "path": "mywarp-core/src/main/java/me/taylorkelly/mywarp/util/MatchList.java", "license": "gpl-3.0", "size": 5037 }
[ "com.google.common.collect.ImmutableList", "com.google.common.collect.Ordering", "me.taylorkelly.mywarp.warp.Warp" ]
import com.google.common.collect.ImmutableList; import com.google.common.collect.Ordering; import me.taylorkelly.mywarp.warp.Warp;
import com.google.common.collect.*; import me.taylorkelly.mywarp.warp.*;
[ "com.google.common", "me.taylorkelly.mywarp" ]
com.google.common; me.taylorkelly.mywarp;
2,406,871
@SideOnly(Side.CLIENT) public static void updateGui(TileEntity te) { if (te != currentTileEntity) return; currenGui.updateGui(); }
@SideOnly(Side.CLIENT) static void function(TileEntity te) { if (te != currentTileEntity) return; currenGui.updateGui(); }
/** * Notifies the currently opened {@link MalisisGui} to update. * * @param te the {@link TileEntity} linked to the MalisisGui */
Notifies the currently opened <code>MalisisGui</code> to update
updateGui
{ "repo_name": "Ordinastie/MalisisCore", "path": "src/main/java/net/malisis/core/util/TileEntityUtils.java", "license": "mit", "size": 3553 }
[ "net.minecraft.tileentity.TileEntity", "net.minecraftforge.fml.relauncher.Side", "net.minecraftforge.fml.relauncher.SideOnly" ]
import net.minecraft.tileentity.TileEntity; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly;
import net.minecraft.tileentity.*; import net.minecraftforge.fml.relauncher.*;
[ "net.minecraft.tileentity", "net.minecraftforge.fml" ]
net.minecraft.tileentity; net.minecraftforge.fml;
208,238
private void writeRequestType(XMLStreamWriter writer, URI uri) throws ProcessingException { StaxUtil.writeStartElement(writer, PREFIX, WSTrustConstants.REQUEST_TYPE, BASE_NAMESPACE); StaxUtil.writeCharacters(writer, uri.toASCIIString()); StaxUtil.writeEndElement(writer); }
void function(XMLStreamWriter writer, URI uri) throws ProcessingException { StaxUtil.writeStartElement(writer, PREFIX, WSTrustConstants.REQUEST_TYPE, BASE_NAMESPACE); StaxUtil.writeCharacters(writer, uri.toASCIIString()); StaxUtil.writeEndElement(writer); }
/** * Write a Request Type * @param writer * @param uri * @throws ProcessingException */
Write a Request Type
writeRequestType
{ "repo_name": "taylor-project/taylor-picketlink-2.0.3", "path": "federation/picketlink-fed-core/src/main/java/org/picketlink/identity/federation/core/wstrust/writers/WSTrustRSTWriter.java", "license": "gpl-2.0", "size": 18854 }
[ "javax.xml.stream.XMLStreamWriter", "org.picketlink.identity.federation.core.exceptions.ProcessingException", "org.picketlink.identity.federation.core.util.StaxUtil", "org.picketlink.identity.federation.core.wstrust.WSTrustConstants" ]
import javax.xml.stream.XMLStreamWriter; import org.picketlink.identity.federation.core.exceptions.ProcessingException; import org.picketlink.identity.federation.core.util.StaxUtil; import org.picketlink.identity.federation.core.wstrust.WSTrustConstants;
import javax.xml.stream.*; import org.picketlink.identity.federation.core.exceptions.*; import org.picketlink.identity.federation.core.util.*; import org.picketlink.identity.federation.core.wstrust.*;
[ "javax.xml", "org.picketlink.identity" ]
javax.xml; org.picketlink.identity;
2,037,686
public void addAttribute(QName name, String value) throws XslParseException { if (name.getName().equals("version")) _version = value; else super.addAttribute(name, value); }
void function(QName name, String value) throws XslParseException { if (name.getName().equals(STR)) _version = value; else super.addAttribute(name, value); }
/** * Adds an attribute. */
Adds an attribute
addAttribute
{ "repo_name": "dlitz/resin", "path": "modules/resin/src/com/caucho/xsl/java/XslTransform.java", "license": "gpl-2.0", "size": 2199 }
[ "com.caucho.xml.QName", "com.caucho.xsl.XslParseException" ]
import com.caucho.xml.QName; import com.caucho.xsl.XslParseException;
import com.caucho.xml.*; import com.caucho.xsl.*;
[ "com.caucho.xml", "com.caucho.xsl" ]
com.caucho.xml; com.caucho.xsl;
2,154,139
public int getColumnDisplaySize(int column) throws SQLException { Field f = getField(column); int lengthInBytes = clampedGetLength(f); return lengthInBytes / f.getMaxBytesPerCharacter(); }
int function(int column) throws SQLException { Field f = getField(column); int lengthInBytes = clampedGetLength(f); return lengthInBytes / f.getMaxBytesPerCharacter(); }
/** * What is the column's normal maximum width in characters? * * @param column the first column is 1, the second is 2, etc. * * @return the maximum width * * @throws SQLException if a database access error occurs */
What is the column's normal maximum width in characters
getColumnDisplaySize
{ "repo_name": "devoof/jPrinterAdmin", "path": "mysql-connector-java-5.1.23/src/com/mysql/jdbc/ResultSetMetaData.java", "license": "gpl-2.0", "size": 26043 }
[ "java.sql.SQLException" ]
import java.sql.SQLException;
import java.sql.*;
[ "java.sql" ]
java.sql;
2,089,061
protected void onPtrRestoreInstanceState(Bundle savedInstanceState) { }
void function(Bundle savedInstanceState) { }
/** * Called by {@link #onRestoreInstanceState(Parcelable)} so that derivative * classes can handle their saved instance state. * * @param savedInstanceState * - Bundle which contains saved instance state. */
Called by <code>#onRestoreInstanceState(Parcelable)</code> so that derivative classes can handle their saved instance state
onPtrRestoreInstanceState
{ "repo_name": "lingganhezi/dedecmsapp", "path": "android/PulltoRefresh/src/com/handmark/pulltorefresh/library/PullToRefreshBase.java", "license": "apache-2.0", "size": 47334 }
[ "android.os.Bundle" ]
import android.os.Bundle;
import android.os.*;
[ "android.os" ]
android.os;
1,818,543
public void entering(Object... params) { if (this.isLoggable(Level.FINER)) { FrameInfo fi = getLoggingFrame(); getLogger().entering(fi.className, fi.methodName, params); } }
void function(Object... params) { if (this.isLoggable(Level.FINER)) { FrameInfo fi = getLoggingFrame(); getLogger().entering(fi.className, fi.methodName, params); } }
/** * Function entry log convenience method (varargs-style). * * @param params * varargs */
Function entry log convenience method (varargs-style)
entering
{ "repo_name": "paulbrodner/SeLion", "path": "common/src/main/java/com/paypal/test/utilities/logging/SimpleLogger.java", "license": "apache-2.0", "size": 27650 }
[ "java.util.logging.Level" ]
import java.util.logging.Level;
import java.util.logging.*;
[ "java.util" ]
java.util;
266,545
Stream<Node> node();
Stream<Node> node();
/** * Returns a stream containing all DOM nodes of all current elements */
Returns a stream containing all DOM nodes of all current elements
node
{ "repo_name": "ksmonkey123/WaDosUtil", "path": "waan/ch/waan/xml/XPath.java", "license": "gpl-3.0", "size": 3581 }
[ "java.util.stream.Stream", "org.w3c.dom.Node" ]
import java.util.stream.Stream; import org.w3c.dom.Node;
import java.util.stream.*; import org.w3c.dom.*;
[ "java.util", "org.w3c.dom" ]
java.util; org.w3c.dom;
48,756
void childrenChanged(@NotNull PsiTreeChangeEvent event);
void childrenChanged(@NotNull PsiTreeChangeEvent event);
/** * Invoked after a mass change of children of the specified node.<br> * The parent the nodes of which have changed is returned by {@code event.getParent()}. * * @param event the event object describing the change. */
Invoked after a mass change of children of the specified node. The parent the nodes of which have changed is returned by event.getParent()
childrenChanged
{ "repo_name": "asedunov/intellij-community", "path": "platform/core-api/src/com/intellij/psi/PsiTreeChangeListener.java", "license": "apache-2.0", "size": 5900 }
[ "org.jetbrains.annotations.NotNull" ]
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.*;
[ "org.jetbrains.annotations" ]
org.jetbrains.annotations;
187,816
@Override public String getParameterClassName( int param ) throws SQLException { return realParameterMetaData.getParameterClassName( param ); }
String function( int param ) throws SQLException { return realParameterMetaData.getParameterClassName( param ); }
/** * Retrieves the fully-qualified name of the Java class whose instances * should be passed to the method <code>PreparedStatement.setObject</code>. * * @param param the first parameter is 1, the second is 2, ... * @return the fully-qualified name of the class in the Java programming * language that ...
Retrieves the fully-qualified name of the Java class whose instances should be passed to the method <code>PreparedStatement.setObject</code>
getParameterClassName
{ "repo_name": "mattyb149/pentaho-orientdb-jdbc", "path": "src/main/java/org/pentaho/community/di/database/orientdb/delegate/DelegateParameterMetaData.java", "license": "apache-2.0", "size": 8692 }
[ "java.sql.SQLException" ]
import java.sql.SQLException;
import java.sql.*;
[ "java.sql" ]
java.sql;
2,676,009
public void onContainerClosed(EntityPlayer p_75134_1_) { super.onContainerClosed(p_75134_1_); this.field_94538_a.closeInventory(); }
void function(EntityPlayer p_75134_1_) { super.onContainerClosed(p_75134_1_); this.field_94538_a.closeInventory(); }
/** * Called when the container is closed. */
Called when the container is closed
onContainerClosed
{ "repo_name": "mviitanen/marsmod", "path": "mcp/src/minecraft/net/minecraft/inventory/ContainerHopper.java", "license": "gpl-2.0", "size": 2609 }
[ "net.minecraft.entity.player.EntityPlayer" ]
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.player.*;
[ "net.minecraft.entity" ]
net.minecraft.entity;
1,472,530
protected void setValue(String value) { this.value = value; // We always intern the type hint, for faster comparison later on if ( field_name.equals(FieldName.FIELD_NAME_TYPE_HINT) ) { this.type_hint = new TypeName(value); } // The base 64 primative values are handled quite gently... if ( fie...
void function(String value) { this.value = value; if ( field_name.equals(FieldName.FIELD_NAME_TYPE_HINT) ) { this.type_hint = new TypeName(value); } if ( field_name.equals(FieldName.FIELD_NAME_PRIMITIVE_VALUE_BASE64) ) { field_name = FieldName.FIELD_NAME_PRIMITIVE_VALUE; this.value = new String(Base64.getDecoder().deco...
/** * Set the value * * @param value The value to set */
Set the value
setValue
{ "repo_name": "jim-kane/jimmutable", "path": "base/src/main/java/org/jimmutable/core/serialization/reader/ObjectParseTree.java", "license": "unlicense", "size": 25867 }
[ "java.util.Base64", "org.jimmutable.core.serialization.FieldName", "org.jimmutable.core.serialization.TypeName" ]
import java.util.Base64; import org.jimmutable.core.serialization.FieldName; import org.jimmutable.core.serialization.TypeName;
import java.util.*; import org.jimmutable.core.serialization.*;
[ "java.util", "org.jimmutable.core" ]
java.util; org.jimmutable.core;
1,929,180
public void testRestore() { boolean shardStateHasAllocationId = randomBoolean(); String allocationId = shardStateHasAllocationId ? "some allocId" : null; long legacyVersion = shardStateHasAllocationId ? ShardStateMetaData.NO_VERSION : 1; boolean clusterHasActiveAllocationIds = shardS...
void function() { boolean shardStateHasAllocationId = randomBoolean(); String allocationId = shardStateHasAllocationId ? STR : null; long legacyVersion = shardStateHasAllocationId ? ShardStateMetaData.NO_VERSION : 1; boolean clusterHasActiveAllocationIds = shardStateHasAllocationId ? randomBoolean() : false; RoutingAll...
/** * Tests that when restoring from a snapshot and we find a node with a shard copy and allocation * deciders say yes, we allocate to that node. */
Tests that when restoring from a snapshot and we find a node with a shard copy and allocation deciders say yes, we allocate to that node
testRestore
{ "repo_name": "gmarz/elasticsearch", "path": "core/src/test/java/org/elasticsearch/gateway/PrimaryShardAllocatorTests.java", "license": "apache-2.0", "size": 45105 }
[ "org.elasticsearch.cluster.health.ClusterHealthStatus", "org.elasticsearch.cluster.routing.ShardRoutingState", "org.elasticsearch.cluster.routing.allocation.RoutingAllocation", "org.elasticsearch.index.shard.ShardStateMetaData", "org.hamcrest.Matchers" ]
import org.elasticsearch.cluster.health.ClusterHealthStatus; import org.elasticsearch.cluster.routing.ShardRoutingState; import org.elasticsearch.cluster.routing.allocation.RoutingAllocation; import org.elasticsearch.index.shard.ShardStateMetaData; import org.hamcrest.Matchers;
import org.elasticsearch.cluster.health.*; import org.elasticsearch.cluster.routing.*; import org.elasticsearch.cluster.routing.allocation.*; import org.elasticsearch.index.shard.*; import org.hamcrest.*;
[ "org.elasticsearch.cluster", "org.elasticsearch.index", "org.hamcrest" ]
org.elasticsearch.cluster; org.elasticsearch.index; org.hamcrest;
1,669,837
LayoutFactory getLayoutFactory(); interface Literals { EClass LAYOUT_ROOT = eINSTANCE.getLayoutRoot(); EReference LAYOUT_ROOT__VIEW_TREES = eINSTANCE.getLayoutRoot_ViewTrees(); EClass NAMED_ELEMENT = eINSTANCE.getNamedElement(); EAttribute NAMED_ELEMENT__NAME = eINSTANCE.getNamedElement_Na...
LayoutFactory getLayoutFactory(); interface Literals { EClass LAYOUT_ROOT = eINSTANCE.getLayoutRoot(); EReference LAYOUT_ROOT__VIEW_TREES = eINSTANCE.getLayoutRoot_ViewTrees(); EClass NAMED_ELEMENT = eINSTANCE.getNamedElement(); EAttribute NAMED_ELEMENT__NAME = eINSTANCE.getNamedElement_Name(); EClass LAYOUT_INFO_TREE_...
/** * Returns the factory that creates the instances of the model. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the factory that creates the instances of the model. * @generated */
Returns the factory that creates the instances of the model.
getLayoutFactory
{ "repo_name": "osanchezUM/guizmo", "path": "src/guizmo/layout/LayoutPackage.java", "license": "apache-2.0", "size": 87190 }
[ "org.eclipse.emf.ecore.EAttribute", "org.eclipse.emf.ecore.EClass", "org.eclipse.emf.ecore.EEnum", "org.eclipse.emf.ecore.EReference" ]
import org.eclipse.emf.ecore.EAttribute; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.EEnum; import org.eclipse.emf.ecore.EReference;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
629,349
public void testRpcValues () { // Test Values String text = msg.getText(); SpeechCapabilities speechType = msg.getType(); // Valid Tests assertEquals(Test.MATCH, Test.GENERAL_STRING, text); assertEquals(Test.MATCH, Test.GENERAL_SPEECHCAPABILITIES, speechType); // Invalid/Null Tests TTSChunk...
void function () { String text = msg.getText(); SpeechCapabilities speechType = msg.getType(); assertEquals(Test.MATCH, Test.GENERAL_STRING, text); assertEquals(Test.MATCH, Test.GENERAL_SPEECHCAPABILITIES, speechType); TTSChunk msg = new TTSChunk(); assertNotNull(Test.NOT_NULL, msg); assertNull(Test.NULL, msg.getText()...
/** * Tests the expected values of the RPC message. */
Tests the expected values of the RPC message
testRpcValues
{ "repo_name": "anildahiya/sdl_android", "path": "android/sdl_android/src/androidTest/java/com/smartdevicelink/test/rpc/datatypes/TTSChunkTest.java", "license": "bsd-3-clause", "size": 1756 }
[ "com.smartdevicelink.proxy.rpc.TTSChunk", "com.smartdevicelink.proxy.rpc.enums.SpeechCapabilities", "com.smartdevicelink.test.Test" ]
import com.smartdevicelink.proxy.rpc.TTSChunk; import com.smartdevicelink.proxy.rpc.enums.SpeechCapabilities; import com.smartdevicelink.test.Test;
import com.smartdevicelink.proxy.rpc.*; import com.smartdevicelink.proxy.rpc.enums.*; import com.smartdevicelink.test.*;
[ "com.smartdevicelink.proxy", "com.smartdevicelink.test" ]
com.smartdevicelink.proxy; com.smartdevicelink.test;
2,295,563
public void isTautological() throws SolverException, InterruptedException { if (context.getFormulaManager().getBooleanFormulaManager().isFalse(formulaUnderTest)) { failWithoutActual( Fact.fact("expected to be", "tautological"), Fact.fact("but was", "trivially unsatisfiable")); retu...
void function() throws SolverException, InterruptedException { if (context.getFormulaManager().getBooleanFormulaManager().isFalse(formulaUnderTest)) { failWithoutActual( Fact.fact(STR, STR), Fact.fact(STR, STR)); return; } checkIsUnsat( context.getFormulaManager().getBooleanFormulaManager().not(formulaUnderTest), Fact....
/** * Check that the subject is tautological, i.e., always holds. This is equivalent to calling * {@link #isEquivalentTo(BooleanFormula)} with the formula {@code true}, but it checks * satisfiability of the subject and unsatisfiability of the negated subject in two steps to * improve error messages. */
Check that the subject is tautological, i.e., always holds. This is equivalent to calling <code>#isEquivalentTo(BooleanFormula)</code> with the formula true, but it checks satisfiability of the subject and unsatisfiability of the negated subject in two steps to improve error messages
isTautological
{ "repo_name": "sosy-lab/java-smt", "path": "src/org/sosy_lab/java_smt/test/BooleanFormulaSubject.java", "license": "apache-2.0", "size": 9890 }
[ "com.google.common.truth.Fact", "org.sosy_lab.java_smt.api.SolverException" ]
import com.google.common.truth.Fact; import org.sosy_lab.java_smt.api.SolverException;
import com.google.common.truth.*; import org.sosy_lab.java_smt.api.*;
[ "com.google.common", "org.sosy_lab.java_smt" ]
com.google.common; org.sosy_lab.java_smt;
184,464
public Properties getMessageAttributes() { return messageAttributes; }
Properties function() { return messageAttributes; }
/** * Gets the snapshot of sequence' values and possible other attributes used for sending a message. These attributes can be used by a validator to replace placeholders. * * @return The snapshot of sequence' values and possible other attributes used for sending a message. */
Gets the snapshot of sequence' values and possible other attributes used for sending a message. These attributes can be used by a validator to replace placeholders
getMessageAttributes
{ "repo_name": "ctlai95/SENG401_Milestone4", "path": "perfcake/src/main/java/org/perfcake/message/ReceivedMessage.java", "license": "apache-2.0", "size": 3614 }
[ "java.util.Properties" ]
import java.util.Properties;
import java.util.*;
[ "java.util" ]
java.util;
713,688
EList<AugmentSubstatement> getAugmentsubstatements();
EList<AugmentSubstatement> getAugmentsubstatements();
/** * Returns the value of the '<em><b>Augmentsubstatements</b></em>' containment reference list. * The list contents are of type {@link yang.manager.yang.AugmentSubstatement}. * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Augmentsubstatements</em>' containment reference list isn't clear, ...
Returns the value of the 'Augmentsubstatements' containment reference list. The list contents are of type <code>yang.manager.yang.AugmentSubstatement</code>. If the meaning of the 'Augmentsubstatements' containment reference list isn't clear, there really should be more of a description here...
getAugmentsubstatements
{ "repo_name": "att/yang-design-studio", "path": "yang.Manager/src-gen/yang/manager/yang/AugmentUsesStatement.java", "license": "epl-1.0", "size": 2158 }
[ "org.eclipse.emf.common.util.EList" ]
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.common.util.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
885,369
public static short getShortStatic(String name, Class clazz) { Field f = getField(clazz, name, true); return getShort(f, null); }
static short function(String name, Class clazz) { Field f = getField(clazz, name, true); return getShort(f, null); }
/** * Gets the value of a static <code>short</code> field. * * @param name name of the field whose value is returned. * @param clazz the class to extract the <code>short</code> value from * @return the value of the <code>short</code> field * @since 1.3.5 */
Gets the value of a static <code>short</code> field
getShortStatic
{ "repo_name": "jbachorik/btrace", "path": "btrace-core/src/main/java/org/openjdk/btrace/core/BTraceUtils.java", "license": "gpl-2.0", "size": 226306 }
[ "java.lang.reflect.Field" ]
import java.lang.reflect.Field;
import java.lang.reflect.*;
[ "java.lang" ]
java.lang;
1,052,457
public ObjectInfo preparePutObject(OioUrl url, long size, ObjectCreationOptions options, RequestContext reqCtx) throws OioException { checkArgument(url != null, INVALID_URL_MSG); checkArgument(options != null, INVALID_OPTIONS_MSG); BeansRequest beansRequest = new Bean...
ObjectInfo function(OioUrl url, long size, ObjectCreationOptions options, RequestContext reqCtx) throws OioException { checkArgument(url != null, INVALID_URL_MSG); checkArgument(options != null, INVALID_OPTIONS_MSG); BeansRequest beansRequest = new BeansRequest() .size(size) .policy(options.policy()); RequestBuilder re...
/** * Prepares an object upload by asking some chunks available location. * * @param url * the URL of the future object to create * @param size * the size of the future object * @param options * the options of the future object * @param reqCt...
Prepares an object upload by asking some chunks available location
preparePutObject
{ "repo_name": "open-io/oio-api-java", "path": "src/main/java/io/openio/sds/proxy/ProxyClient.java", "license": "lgpl-3.0", "size": 69667 }
[ "io.openio.sds.RequestContext", "io.openio.sds.common.Check", "io.openio.sds.common.OioConstants", "io.openio.sds.common.Strings", "io.openio.sds.exceptions.OioException", "io.openio.sds.http.OioHttp", "io.openio.sds.http.OioHttpResponse", "io.openio.sds.models.BeansRequest", "io.openio.sds.models.O...
import io.openio.sds.RequestContext; import io.openio.sds.common.Check; import io.openio.sds.common.OioConstants; import io.openio.sds.common.Strings; import io.openio.sds.exceptions.OioException; import io.openio.sds.http.OioHttp; import io.openio.sds.http.OioHttpResponse; import io.openio.sds.models.BeansRequest; imp...
import io.openio.sds.*; import io.openio.sds.common.*; import io.openio.sds.exceptions.*; import io.openio.sds.http.*; import io.openio.sds.models.*; import java.lang.*;
[ "io.openio.sds", "java.lang" ]
io.openio.sds; java.lang;
454,436
CellAddress getAddress();
CellAddress getAddress();
/** * Gets the address of this cell * * @return <code>A1</code> style address of this cell * @since 3.14beta1 */
Gets the address of this cell
getAddress
{ "repo_name": "lvweiwolf/poi-3.16", "path": "src/java/org/apache/poi/ss/usermodel/Cell.java", "license": "apache-2.0", "size": 17282 }
[ "org.apache.poi.ss.util.CellAddress" ]
import org.apache.poi.ss.util.CellAddress;
import org.apache.poi.ss.util.*;
[ "org.apache.poi" ]
org.apache.poi;
1,571,637
protected Product getSourceProduct() { return _sourceProduct; }
Product function() { return _sourceProduct; }
/** * Returns the source product to be written or <code>null</code> if the <code>writeProductNodes</code> has not be * called so far. */
Returns the source product to be written or <code>null</code> if the <code>writeProductNodes</code> has not be called so far
getSourceProduct
{ "repo_name": "lveci/nest", "path": "beam/beam-core/src/main/java/org/esa/beam/framework/dataio/AbstractProductWriter.java", "license": "gpl-3.0", "size": 6625 }
[ "org.esa.beam.framework.datamodel.Product" ]
import org.esa.beam.framework.datamodel.Product;
import org.esa.beam.framework.datamodel.*;
[ "org.esa.beam" ]
org.esa.beam;
2,865,037
public static <T extends Tree> Matcher<T> isSubtypeOf(Type type) { return new IsSubtypeOf<>(type); }
static <T extends Tree> Matcher<T> function(Type type) { return new IsSubtypeOf<>(type); }
/** * Matches an AST node if its type is a subtype of the given type. * * @param type the type to check against */
Matches an AST node if its type is a subtype of the given type
isSubtypeOf
{ "repo_name": "Anish2/error-prone", "path": "core/src/main/java/com/google/errorprone/matchers/Matchers.java", "license": "apache-2.0", "size": 48610 }
[ "com.sun.source.tree.Tree", "com.sun.tools.javac.code.Type" ]
import com.sun.source.tree.Tree; import com.sun.tools.javac.code.Type;
import com.sun.source.tree.*; import com.sun.tools.javac.code.*;
[ "com.sun.source", "com.sun.tools" ]
com.sun.source; com.sun.tools;
2,645,969
public void setSvgColors(Object[] genes, String[] colors) throws Exception { Document svg = getSvgDiagram(); if (svg == null) return; // next build a hashmap of BCID and colors Map<String,String> colortab = new HashMap<String,String>(); for (int i = 0; i < genes.length...
void function(Object[] genes, String[] colors) throws Exception { Document svg = getSvgDiagram(); if (svg == null) return; Map<String,String> colortab = new HashMap<String,String>(); for (int i = 0; i < genes.length; i++) { Collection c = (Collection) ReflectionUtils.get(genes[i], STR); String geneSymbol = (String) Ref...
/** * This method goes through the svg document, set the color given for each * bcid found in each genes array. For genes[0], set colors[0], etc. To find * the bcid for the specified gene, use the same logic as in * getSvgColor(Object gene) method. * * @param genes * @param co...
This method goes through the svg document, set the color given for each bcid found in each genes array. For genes[0], set colors[0], etc. To find the bcid for the specified gene, use the same logic as in getSvgColor(Object gene) method
setSvgColors
{ "repo_name": "NCIP/cabio", "path": "software/cabio-api/src/gov/nih/nci/common/util/SVGManipulator.java", "license": "bsd-3-clause", "size": 31049 }
[ "java.util.Collection", "java.util.HashMap", "java.util.Iterator", "java.util.Map", "org.w3c.dom.Document", "org.w3c.dom.NamedNodeMap", "org.w3c.dom.Node", "org.w3c.dom.NodeList" ]
import java.util.Collection; import java.util.HashMap; import java.util.Iterator; import java.util.Map; import org.w3c.dom.Document; import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; import org.w3c.dom.NodeList;
import java.util.*; import org.w3c.dom.*;
[ "java.util", "org.w3c.dom" ]
java.util; org.w3c.dom;
1,765,521
public DataObject getUserDataObject() { // TO complete !!!!! DataObject result; // Get the non constant attributes DataObject doAtt_ = nonConstantAttributes.toDataObject(); DataObjects vAtt = new DataObjects(); vAtt.addElement(doAtt_); DataObject doAtt = new DataObject(Discoverer.NON_CONSTANT_...
DataObject function() { DataObject result; DataObject doAtt_ = nonConstantAttributes.toDataObject(); DataObjects vAtt = new DataObjects(); vAtt.addElement(doAtt_); DataObject doAtt = new DataObject(Discoverer.NON_CONSTANT_ATTRIBUTE_NAME_VALUES, vAtt); DataObject doCstAtt_ = constantAttributes.toDataObject(); DataObject...
/** * This method builds the widget description which contains the constant and * non constant attributes, the callbacks, the services, the subscribers * This method overloads the BaseObject's getUserDescription method * * @return DataObject The description of the widget * @see #getWidgetDataObject() ...
This method builds the widget description which contains the constant and non constant attributes, the callbacks, the services, the subscribers This method overloads the BaseObject's getUserDescription method
getUserDataObject
{ "repo_name": "claudiotrindade/contexttoolkit", "path": "src/context/arch/widget/Widget.java", "license": "gpl-3.0", "size": 60308 }
[ "java.util.Enumeration" ]
import java.util.Enumeration;
import java.util.*;
[ "java.util" ]
java.util;
1,207,162
ProcessGroupStatus getGroupStatus(final ProcessGroup group, final RepositoryStatusReport statusReport, final Predicate<Authorizable> isAuthorized, final int recursiveStatusDepth, final int currentDepth) { if (group == null) { return null; } ...
ProcessGroupStatus getGroupStatus(final ProcessGroup group, final RepositoryStatusReport statusReport, final Predicate<Authorizable> isAuthorized, final int recursiveStatusDepth, final int currentDepth) { if (group == null) { return null; } final ProcessScheduler processScheduler = flowController.getProcessScheduler();...
/** * Returns the status for the components in the specified group with the * specified report. The results will be filtered by executing the specified * predicate. * * @param group group id * @param statusReport report * @param isAuthorized is authorized check * @param recursive...
Returns the status for the components in the specified group with the specified report. The results will be filtered by executing the specified predicate
getGroupStatus
{ "repo_name": "YolandaMDavis/nifi", "path": "nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/reporting/StandardEventAccess.java", "license": "apache-2.0", "size": 35794 }
[ "java.util.ArrayList", "java.util.Collection", "java.util.Map", "java.util.Set", "org.apache.commons.collections4.Predicate", "org.apache.commons.lang3.StringUtils", "org.apache.nifi.authorization.resource.Authorizable", "org.apache.nifi.connectable.Connectable", "org.apache.nifi.connectable.Connect...
import java.util.ArrayList; import java.util.Collection; import java.util.Map; import java.util.Set; import org.apache.commons.collections4.Predicate; import org.apache.commons.lang3.StringUtils; import org.apache.nifi.authorization.resource.Authorizable; import org.apache.nifi.connectable.Connectable; import org.apach...
import java.util.*; import org.apache.commons.collections4.*; import org.apache.commons.lang3.*; import org.apache.nifi.authorization.resource.*; import org.apache.nifi.connectable.*; import org.apache.nifi.controller.*; import org.apache.nifi.controller.queue.*; import org.apache.nifi.controller.repository.*; import o...
[ "java.util", "org.apache.commons", "org.apache.nifi" ]
java.util; org.apache.commons; org.apache.nifi;
1,783,442
protected Template[] getTemplates (String contextTypeId) { if ( XPATH_FUNCTIONS.equals ( contextTypeId )) { if (fTemplates.length == 0) { Map<String,Function> fnMap = Functions.getInstance(BPELConstants.XMLNS_XPATH_EXPRESSION_LANGUAGE).getFunctions(); List<Template> list = new ArrayList<Templa...
Template[] function (String contextTypeId) { if ( XPATH_FUNCTIONS.equals ( contextTypeId )) { if (fTemplates.length == 0) { Map<String,Function> fnMap = Functions.getInstance(BPELConstants.XMLNS_XPATH_EXPRESSION_LANGUAGE).getFunctions(); List<Template> list = new ArrayList<Template>( fnMap.size() ); for(Function fn : f...
/** * Compute the templates that we use as the completion proposals for our * functions. * * @see org.eclipse.jface.text.templates.TemplateCompletionProcessor#getTemplates(java.lang.String) */
Compute the templates that we use as the completion proposals for our functions
getTemplates
{ "repo_name": "chanakaudaya/developer-studio", "path": "bps/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/contentassist/FunctionTemplatesContentAssistProcessor.java", "license": "apache-2.0", "size": 5821 }
[ "java.util.ArrayList", "java.util.List", "java.util.Map", "org.eclipse.bpel.fnmeta.model.Function", "org.eclipse.bpel.model.util.BPELConstants", "org.eclipse.bpel.model.util.BPELUtils", "org.eclipse.bpel.ui.expressions.Functions", "org.eclipse.jface.text.templates.Template" ]
import java.util.ArrayList; import java.util.List; import java.util.Map; import org.eclipse.bpel.fnmeta.model.Function; import org.eclipse.bpel.model.util.BPELConstants; import org.eclipse.bpel.model.util.BPELUtils; import org.eclipse.bpel.ui.expressions.Functions; import org.eclipse.jface.text.templates.Template;
import java.util.*; import org.eclipse.bpel.fnmeta.model.*; import org.eclipse.bpel.model.util.*; import org.eclipse.bpel.ui.expressions.*; import org.eclipse.jface.text.templates.*;
[ "java.util", "org.eclipse.bpel", "org.eclipse.jface" ]
java.util; org.eclipse.bpel; org.eclipse.jface;
2,672,199
public void bind(Integer port, @Nullable String address) throws IOException { if (mSocket != null || mReceiverTask != null) { throw new IllegalStateException("Socket is already bound"); } SocketAddress socketAddress; if (address != null) { socketAddress = new ...
void function(Integer port, @Nullable String address) throws IOException { if (mSocket != null mReceiverTask != null) { throw new IllegalStateException(STR); } SocketAddress socketAddress; if (address != null) { socketAddress = new InetSocketAddress(InetAddress.getByName(address), port); } else { socketAddress = new In...
/** * Binds to a specific port or address. A random port is used if the address is {@code null}. * * @param port local port to bind to * @param address local address to bind to * @throws IOException * @throws IllegalArgumentException * if the SocketAddress is not supporte...
Binds to a specific port or address. A random port is used if the address is null
bind
{ "repo_name": "tradle/react-native-udp", "path": "android/src/main/java/com/tradle/react/UdpSocketClient.java", "license": "mit", "size": 8054 }
[ "androidx.annotation.Nullable", "java.io.IOException", "java.net.InetAddress", "java.net.InetSocketAddress", "java.net.MulticastSocket", "java.net.SocketAddress" ]
import androidx.annotation.Nullable; import java.io.IOException; import java.net.InetAddress; import java.net.InetSocketAddress; import java.net.MulticastSocket; import java.net.SocketAddress;
import androidx.annotation.*; import java.io.*; import java.net.*;
[ "androidx.annotation", "java.io", "java.net" ]
androidx.annotation; java.io; java.net;
256,602
public static final class WorkbookFunctionsIsEvenParameterSetBuilder { @Nullable protected com.google.gson.JsonElement number; @Nonnull public WorkbookFunctionsIsEvenParameterSetBuilder withNumber(@Nullable final com.google.gson.JsonElement val) { this.n...
static final class WorkbookFunctionsIsEvenParameterSetBuilder { protected com.google.gson.JsonElement number; public WorkbookFunctionsIsEvenParameterSetBuilder function(@Nullable final com.google.gson.JsonElement val) { this.number = val; return this; } protected WorkbookFunctionsIsEvenParameterSetBuilder(){}
/** * Sets the Number * @param val the value to set it to * @return the current builder object */
Sets the Number
withNumber
{ "repo_name": "microsoftgraph/msgraph-sdk-java", "path": "src/main/java/com/microsoft/graph/models/WorkbookFunctionsIsEvenParameterSet.java", "license": "mit", "size": 3429 }
[ "javax.annotation.Nullable" ]
import javax.annotation.Nullable;
import javax.annotation.*;
[ "javax.annotation" ]
javax.annotation;
1,107,497
public ProtocolSupport mergeBlacklists(Collection<ProtocolSupport> protocolSupports) { // Union the blacklists of several protocols List<String> protocols = protocolSupports.stream() .flatMap(support -> support.blacklist.stream()) .coll...
ProtocolSupport function(Collection<ProtocolSupport> protocolSupports) { List<String> protocols = protocolSupports.stream() .flatMap(support -> support.blacklist.stream()) .collect(Collectors.toList()); return blackListProtocols(protocols); }
/** * Create a copy combines the blacklist of other protocols. * * @param protocolSupports Protocol supports whose blacklists should not be combined. * * @return A protocol support with additional protocols not supported. */
Create a copy combines the blacklist of other protocols
mergeBlacklists
{ "repo_name": "yahoo/fili", "path": "fili-core/src/main/java/com/yahoo/bard/webservice/data/metric/protocol/ProtocolSupport.java", "license": "apache-2.0", "size": 10112 }
[ "java.util.Collection", "java.util.List", "java.util.stream.Collectors" ]
import java.util.Collection; import java.util.List; import java.util.stream.Collectors;
import java.util.*; import java.util.stream.*;
[ "java.util" ]
java.util;
2,644,260
public static Constraints basicConstraintsFromEnvelope( final Envelope env ) { return new Constraints( basicConstraintSetFromEnvelope(env)); }
static Constraints function( final Envelope env ) { return new Constraints( basicConstraintSetFromEnvelope(env)); }
/** * This utility method will convert a JTS envelope to contraints that can be * used in a GeoWave query. * * @return Constraints as a mapping of NumericData objects representing * ranges for a latitude dimension and a longitude dimension */
This utility method will convert a JTS envelope to contraints that can be used in a GeoWave query
basicConstraintsFromEnvelope
{ "repo_name": "dcy2003/geowave", "path": "core/geotime/src/main/java/mil/nga/giat/geowave/core/geotime/GeometryUtils.java", "license": "apache-2.0", "size": 9496 }
[ "com.vividsolutions.jts.geom.Envelope", "mil.nga.giat.geowave.core.store.query.BasicQuery" ]
import com.vividsolutions.jts.geom.Envelope; import mil.nga.giat.geowave.core.store.query.BasicQuery;
import com.vividsolutions.jts.geom.*; import mil.nga.giat.geowave.core.store.query.*;
[ "com.vividsolutions.jts", "mil.nga.giat" ]
com.vividsolutions.jts; mil.nga.giat;
2,413,072
public TreeMap<User, List<Account>> getData() { return data; }
TreeMap<User, List<Account>> function() { return data; }
/** * Gets data. * * @return the data */
Gets data
getData
{ "repo_name": "ephemeralin/java-training", "path": "chapter_003/src/main/java/ru/job4j/exam/Database.java", "license": "apache-2.0", "size": 2712 }
[ "java.util.List", "java.util.TreeMap" ]
import java.util.List; import java.util.TreeMap;
import java.util.*;
[ "java.util" ]
java.util;
4,042
public short getNodeType() { return Node.ENTITY_REFERENCE_NODE; }
short function() { return Node.ENTITY_REFERENCE_NODE; }
/** * A short integer indicating what type of node this is. The named * constants for this value are defined in the org.w3c.dom.Node interface. */
A short integer indicating what type of node this is. The named constants for this value are defined in the org.w3c.dom.Node interface
getNodeType
{ "repo_name": "openjdk/jdk8u", "path": "jaxp/src/com/sun/org/apache/xerces/internal/dom/EntityReferenceImpl.java", "license": "gpl-2.0", "size": 13914 }
[ "org.w3c.dom.Node" ]
import org.w3c.dom.Node;
import org.w3c.dom.*;
[ "org.w3c.dom" ]
org.w3c.dom;
985,648
public static JCheckBox creteJCheckBox(Container c, String caption, int x, int y, final Component compToDisable) { JCheckBox cb = new JCheckBox(caption); FontMetrics fm = c.getFontMetrics(c.getFont()); cb.setBounds(x, y, fm.stringWidth(caption) + 20, 20); c.add(...
static JCheckBox function(Container c, String caption, int x, int y, final Component compToDisable) { JCheckBox cb = new JCheckBox(caption); FontMetrics fm = c.getFontMetrics(c.getFont()); cb.setBounds(x, y, fm.stringWidth(caption) + 20, 20); c.add(cb);
/** * This method makes it easy (and also neat) creating a * <code>JCheckBox</code> and adding it to its container class. * <p> * The <code>BorderLayout</code> of the container class must be set to * <code>null</code>. * <p> * This method makes the check-box autosized. This is ...
This method makes it easy (and also neat) creating a <code>JCheckBox</code> and adding it to its container class. The <code>BorderLayout</code> of the container class must be set to <code>null</code>. This method makes the check-box autosized. This is done according to the container's font
creteJCheckBox
{ "repo_name": "sinairv/CoachAssistant", "path": "src/coachassistant/Util.java", "license": "gpl-2.0", "size": 13494 }
[ "java.awt.Component", "java.awt.Container", "java.awt.FontMetrics", "javax.swing.JCheckBox" ]
import java.awt.Component; import java.awt.Container; import java.awt.FontMetrics; import javax.swing.JCheckBox;
import java.awt.*; import javax.swing.*;
[ "java.awt", "javax.swing" ]
java.awt; javax.swing;
883,332
public CountDownLatch getInStockNotificationSubscriptionsAsync( AsyncCallback<com.mozu.api.contracts.customer.InStockNotificationSubscriptionCollection> callback) throws Exception { return getInStockNotificationSubscriptionsAsync( null, null, null, null, null, callback); }
CountDownLatch function( AsyncCallback<com.mozu.api.contracts.customer.InStockNotificationSubscriptionCollection> callback) throws Exception { return getInStockNotificationSubscriptionsAsync( null, null, null, null, null, callback); }
/** * Retrieves a list of in-stock notification subscriptions. * <p><pre><code> * InStockNotificationSubscription instocknotificationsubscription = new InStockNotificationSubscription(); * CountDownLatch latch = instocknotificationsubscription.getInStockNotificationSubscriptions( callback ); * latch.await() ...
Retrieves a list of in-stock notification subscriptions. <code><code> InStockNotificationSubscription instocknotificationsubscription = new InStockNotificationSubscription(); CountDownLatch latch = instocknotificationsubscription.getInStockNotificationSubscriptions( callback ); latch.await() * </code></code>
getInStockNotificationSubscriptionsAsync
{ "repo_name": "lakshmi-nair/mozu-java", "path": "mozu-javaasync-core/src/main/java/com/mozu/api/resources/commerce/InStockNotificationSubscriptionResource.java", "license": "mit", "size": 18984 }
[ "com.mozu.api.AsyncCallback", "java.util.concurrent.CountDownLatch" ]
import com.mozu.api.AsyncCallback; import java.util.concurrent.CountDownLatch;
import com.mozu.api.*; import java.util.concurrent.*;
[ "com.mozu.api", "java.util" ]
com.mozu.api; java.util;
1,651,791
public static Boolean isOfflineScan(Class<?> implementingClass, Configuration conf) { return conf.getBoolean(enumToConfKey(implementingClass, Features.SCAN_OFFLINE), false); }
static Boolean function(Class<?> implementingClass, Configuration conf) { return conf.getBoolean(enumToConfKey(implementingClass, Features.SCAN_OFFLINE), false); }
/** * Determines whether a configuration has the offline table scan feature enabled. * * @param implementingClass * the class whose name will be used as a prefix for the property configuration key * @param conf * the Hadoop configuration object to configure * @return true if the f...
Determines whether a configuration has the offline table scan feature enabled
isOfflineScan
{ "repo_name": "mjwall/accumulo", "path": "core/src/main/java/org/apache/accumulo/core/clientImpl/mapreduce/lib/InputConfigurator.java", "license": "apache-2.0", "size": 38140 }
[ "org.apache.hadoop.conf.Configuration" ]
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.conf.*;
[ "org.apache.hadoop" ]
org.apache.hadoop;
1,749,823
@VisibleForTesting public static void reconcileAccountsWithAccountManager(Context context, List<Account> emailProviderAccounts, android.accounts.Account[] accountManagerAccounts, Context providerContext) { AccountReconciler.reconcileAccounts(context, emailProviderAccounts, accoun...
static void function(Context context, List<Account> emailProviderAccounts, android.accounts.Account[] accountManagerAccounts, Context providerContext) { AccountReconciler.reconcileAccounts(context, emailProviderAccounts, accountManagerAccounts, providerContext); }
/** * See Utility.reconcileAccounts for details * @param context The context in which to operate * @param emailProviderAccounts the exchange provider accounts to work from * @param accountManagerAccounts The account manager accounts to work from * @param providerContext the provider's context (...
See Utility.reconcileAccounts for details
reconcileAccountsWithAccountManager
{ "repo_name": "craigacgomez/flaming_monkey_packages_apps_Email", "path": "src/com/android/email/service/MailService.java", "license": "apache-2.0", "size": 32123 }
[ "android.content.Context", "com.android.email.provider.AccountReconciler", "com.android.emailcommon.provider.Account", "java.util.List" ]
import android.content.Context; import com.android.email.provider.AccountReconciler; import com.android.emailcommon.provider.Account; import java.util.List;
import android.content.*; import com.android.email.provider.*; import com.android.emailcommon.provider.*; import java.util.*;
[ "android.content", "com.android.email", "com.android.emailcommon", "java.util" ]
android.content; com.android.email; com.android.emailcommon; java.util;
2,611,113
Ip4Address ipAddress();
Ip4Address ipAddress();
/** * Gets the IP address. * * @return an string represents IP address */
Gets the IP address
ipAddress
{ "repo_name": "harikrushna-Huawei/hackathon", "path": "protocols/ospf/api/src/main/java/org/onosproject/ospf/controller/OspfInterface.java", "license": "apache-2.0", "size": 7241 }
[ "org.onlab.packet.Ip4Address" ]
import org.onlab.packet.Ip4Address;
import org.onlab.packet.*;
[ "org.onlab.packet" ]
org.onlab.packet;
1,632,506
public static void toRel(Vector2 pos, Vector2 relPos, float baseAngle, Vector2 basePos) { relPos.set(pos); relPos.sub(basePos); rotate(relPos, -baseAngle); }
static void function(Vector2 pos, Vector2 relPos, float baseAngle, Vector2 basePos) { relPos.set(pos); relPos.sub(basePos); rotate(relPos, -baseAngle); }
/** * converts pos (a position in an absolute coordinate system) to the position in the relative system of coordinates * (defined by baseAngle and basePos) (which is written to relPos) */
converts pos (a position in an absolute coordinate system) to the position in the relative system of coordinates (defined by baseAngle and basePos) (which is written to relPos)
toRel
{ "repo_name": "crazywolf132/SpaceGame", "path": "main/src/com/spacegame/common/SolMath.java", "license": "apache-2.0", "size": 12728 }
[ "com.badlogic.gdx.math.Vector2" ]
import com.badlogic.gdx.math.Vector2;
import com.badlogic.gdx.math.*;
[ "com.badlogic.gdx" ]
com.badlogic.gdx;
177,527
private static void sanityChecks(final SQLiteDatabase db) { // Check that the history of searches is well formed as some dates seem to be missing according // to NPE traces. final int staleHistorySearches = db.delete(dbTableSearchDestinationHistory, "date IS NULL", null); ...
static void function(final SQLiteDatabase db) { final int staleHistorySearches = db.delete(dbTableSearchDestinationHistory, STR, null); if (staleHistorySearches > 0) { Log.w(String.format(Locale.getDefault(), STR, staleHistorySearches)); } }
/** * Execute sanity checks that should be performed once per application after the database has been * opened. * * @param db the database to perform sanity checks against */
Execute sanity checks that should be performed once per application after the database has been opened
sanityChecks
{ "repo_name": "Bananeweizen/cgeo", "path": "main/src/cgeo/geocaching/storage/DataStore.java", "license": "apache-2.0", "size": 146531 }
[ "android.database.sqlite.SQLiteDatabase", "java.util.Locale" ]
import android.database.sqlite.SQLiteDatabase; import java.util.Locale;
import android.database.sqlite.*; import java.util.*;
[ "android.database", "java.util" ]
android.database; java.util;
1,221,196
public boolean withdraw(int bankIndex, int amount) { // Return if item doesn't exist or invalid amount. Item item = get(bankIndex); if (item == null || amount < 1) { return false; } // No free spaces in inventory. int remaining = inventory.computeRemaini...
boolean function(int bankIndex, int amount) { Item item = get(bankIndex); if (item == null amount < 1) { return false; } int remaining = inventory.computeRemainingSize(); if (remaining < 1) { inventory.fireCapacityExceededEvent(); return false; } int id = item.getId(); int existingAmount = item.getAmount(); amount = am...
/** * Withdraws an item from the bank. * * @param bankIndex The index of the item to withdraw. * @param amount The amount to withdraw. * @return {@code true} if successful. */
Withdraws an item from the bank
withdraw
{ "repo_name": "lare96/luna", "path": "src/main/java/io/luna/game/model/item/Bank.java", "license": "mit", "size": 5624 }
[ "io.luna.game.model.def.ItemDefinition", "java.util.OptionalInt" ]
import io.luna.game.model.def.ItemDefinition; import java.util.OptionalInt;
import io.luna.game.model.def.*; import java.util.*;
[ "io.luna.game", "java.util" ]
io.luna.game; java.util;
995,831
Collection<String> getInstallOptions();
Collection<String> getInstallOptions();
/** * Returns the list of APK installation options. */
Returns the list of APK installation options
getInstallOptions
{ "repo_name": "tranleduy2000/javaide", "path": "aosp/builder-model/src/main/java/com/android/builder/model/AdbOptions.java", "license": "gpl-3.0", "size": 1006 }
[ "java.util.Collection" ]
import java.util.Collection;
import java.util.*;
[ "java.util" ]
java.util;
2,012,391
@ManyToOne(cascade = {CascadeType.PERSIST, CascadeType.MERGE}, fetch = FetchType.LAZY) @JoinColumn(name = "TREEQUALITY_ID") @Fetch(FetchMode.JOIN) public TreeQuality getTreeQuality() { return mTreeQuality; }
@ManyToOne(cascade = {CascadeType.PERSIST, CascadeType.MERGE}, fetch = FetchType.LAZY) @JoinColumn(name = STR) @Fetch(FetchMode.JOIN) TreeQuality function() { return mTreeQuality; }
/** * Return the TreeQuality field. * * @return TreeQuality */
Return the TreeQuality field
getTreeQuality
{ "repo_name": "TreeBASE/treebase", "path": "treebase-core/src/main/java/org/cipres/treebase/domain/tree/PhyloTree.java", "license": "bsd-3-clause", "size": 20742 }
[ "javax.persistence.CascadeType", "javax.persistence.FetchType", "javax.persistence.JoinColumn", "javax.persistence.ManyToOne", "org.hibernate.annotations.Fetch", "org.hibernate.annotations.FetchMode" ]
import javax.persistence.CascadeType; import javax.persistence.FetchType; import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import org.hibernate.annotations.Fetch; import org.hibernate.annotations.FetchMode;
import javax.persistence.*; import org.hibernate.annotations.*;
[ "javax.persistence", "org.hibernate.annotations" ]
javax.persistence; org.hibernate.annotations;
1,281,628
public void setCullingArea (Rectangle cullingArea) { this.cullingArea = cullingArea; }
void function (Rectangle cullingArea) { this.cullingArea = cullingArea; }
/** Children completely outside of this rectangle will not be drawn. This is only valid for use with unrotated and unscaled * actors! */
Children completely outside of this rectangle will not be drawn. This is only valid for use with unrotated and unscaled
setCullingArea
{ "repo_name": "ryoenji/libgdx", "path": "gdx/src/com/badlogic/gdx/scenes/scene2d/Group.java", "license": "apache-2.0", "size": 13807 }
[ "com.badlogic.gdx.math.Rectangle" ]
import com.badlogic.gdx.math.Rectangle;
import com.badlogic.gdx.math.*;
[ "com.badlogic.gdx" ]
com.badlogic.gdx;
2,195,330
protected Message getNextMessageToRemove(boolean excludeMsgBeingSent) { Collection<Message> messages = this.getMessageCollection(); List<Message> validMessages = new ArrayList<Message>(); for (Message m : messages) { if (excludeMsgBeingSent && isSending(m.getId())) { continue; // skip the message(s) t...
Message function(boolean excludeMsgBeingSent) { Collection<Message> messages = this.getMessageCollection(); List<Message> validMessages = new ArrayList<Message>(); for (Message m : messages) { if (excludeMsgBeingSent && isSending(m.getId())) { continue; } validMessages.add(m); } Collections.sort(validMessages, new MaxP...
/** * Returns the next message that should be dropped, according to MaxProp's * message ordering scheme (see {@link MaxPropTupleComparator}). * @param excludeMsgBeingSent If true, excludes message(s) that are * being sent from the next-to-be-dropped check (i.e., if next message to * drop is being sent, the f...
Returns the next message that should be dropped, according to MaxProp's message ordering scheme (see <code>MaxPropTupleComparator</code>)
getNextMessageToRemove
{ "repo_name": "davidsan/one", "path": "routing/MaxPropRouterWithEstimation.java", "license": "gpl-3.0", "size": 23133 }
[ "java.util.ArrayList", "java.util.Collection", "java.util.Collections", "java.util.List" ]
import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,263,924
@Override public void drawPolyline(int[] xPoints, int[] yPoints, int nPoints) { GeneralPath p = createPolygon(xPoints, yPoints, nPoints, false); draw(p); }
void function(int[] xPoints, int[] yPoints, int nPoints) { GeneralPath p = createPolygon(xPoints, yPoints, nPoints, false); draw(p); }
/** * Draws the specified multi-segment line using the current * {@code paint} and {@code stroke}. * * @param xPoints the x-points. * @param yPoints the y-points. * @param nPoints the number of points to use for the polyline. */
Draws the specified multi-segment line using the current paint and stroke
drawPolyline
{ "repo_name": "levigo/jadice-server-converter-client", "path": "src/main/java/org/jfree/chart/fx/FXGraphics2D.java", "license": "bsd-3-clause", "size": 60303 }
[ "java.awt.geom.GeneralPath" ]
import java.awt.geom.GeneralPath;
import java.awt.geom.*;
[ "java.awt" ]
java.awt;
1,433,409
void replace(Property property) throws IOException, URISyntaxException, ParseException { if (property == null) { return; } String value = property.getValue(); if (value != null) { property.setValue(value.replaceAll(regex, stringToReplace)); } } ...
void replace(Property property) throws IOException, URISyntaxException, ParseException { if (property == null) { return; } String value = property.getValue(); if (value != null) { property.setValue(value.replaceAll(regex, stringToReplace)); } } public String getRegex() { return regex; }
/** * Visible for testing. */
Visible for testing
replace
{ "repo_name": "schnatterer/colander", "path": "core/src/main/java/info/schnatterer/colander/ReplaceFilter.java", "license": "mit", "size": 2924 }
[ "java.io.IOException", "java.net.URISyntaxException", "java.text.ParseException", "net.fortuna.ical4j.model.Property" ]
import java.io.IOException; import java.net.URISyntaxException; import java.text.ParseException; import net.fortuna.ical4j.model.Property;
import java.io.*; import java.net.*; import java.text.*; import net.fortuna.ical4j.model.*;
[ "java.io", "java.net", "java.text", "net.fortuna.ical4j" ]
java.io; java.net; java.text; net.fortuna.ical4j;
1,735,971
public void format(RevTree a, RevTree b) throws IOException { format(scan(a, b)); }
void function(RevTree a, RevTree b) throws IOException { format(scan(a, b)); }
/** * Format the differences between two trees. * * The patch is expressed as instructions to modify {@code a} to make it * {@code b}. * * @param a * the old (or previous) side. * @param b * the new (or updated) side. * @throws IOException * trees cannot be read, ...
Format the differences between two trees. The patch is expressed as instructions to modify a to make it b
format
{ "repo_name": "DanielliUrbieta/ProjetoHidraWS", "path": "src/org/eclipse/jgit/diff/DiffFormatter.java", "license": "gpl-2.0", "size": 35491 }
[ "java.io.IOException", "org.eclipse.jgit.revwalk.RevTree" ]
import java.io.IOException; import org.eclipse.jgit.revwalk.RevTree;
import java.io.*; import org.eclipse.jgit.revwalk.*;
[ "java.io", "org.eclipse.jgit" ]
java.io; org.eclipse.jgit;
1,571,326
public synchronized JoystickButton getLowerToteButton() { if (lowerToteButton == null) { lowerToteButton = new JoystickButton(getLeftDriveJoystick(), LOWER_TOTE_BUTTON, false); } return lowerToteButton; }
synchronized JoystickButton function() { if (lowerToteButton == null) { lowerToteButton = new JoystickButton(getLeftDriveJoystick(), LOWER_TOTE_BUTTON, false); } return lowerToteButton; }
/** * Gets the JoystickButton that indicates when the tote lift is to be lowered. * @return The JoystickButton that indicates when the tote lift is to be lowered */
Gets the JoystickButton that indicates when the tote lift is to be lowered
getLowerToteButton
{ "repo_name": "TaylorRobotics/TitanRobot2014", "path": "eclipse/TitanRobot2015/src/org/usfirst/frc/team1760/robot/stores/JoystickStore.java", "license": "bsd-3-clause", "size": 7759 }
[ "org.usfirst.frc.team1760.robot.components.JoystickButton" ]
import org.usfirst.frc.team1760.robot.components.JoystickButton;
import org.usfirst.frc.team1760.robot.components.*;
[ "org.usfirst.frc" ]
org.usfirst.frc;
2,447,051
@SuppressWarnings("unchecked") private void createHashTypes(Map<Object,Object> vars, ApplicationArchive archive) { List<Option> opts = new ArrayList<Option>(); String archiveHashAlg = archive!=null?archive.getHashAlgorithm():null; HashAlgorithm alg = null; for( HashAlgorithm thisAlg : HashAlgorithm.val...
@SuppressWarnings(STR) void function(Map<Object,Object> vars, ApplicationArchive archive) { List<Option> opts = new ArrayList<Option>(); String archiveHashAlg = archive!=null?archive.getHashAlgorithm():null; HashAlgorithm alg = null; for( HashAlgorithm thisAlg : HashAlgorithm.values() ) { Option newOpt = new Option(); ...
/** * Creates the list of selectable hashes * @param vars * @param archive */
Creates the list of selectable hashes
createHashTypes
{ "repo_name": "thacher/OpenMEAP", "path": "server-side/openmeap-admin-web/src/com/openmeap/admin/web/backing/AddModifyApplicationVersionBacking.java", "license": "gpl-3.0", "size": 16931 }
[ "com.openmeap.model.dto.ApplicationArchive", "com.openmeap.protocol.dto.HashAlgorithm", "com.openmeap.web.html.Option", "java.util.ArrayList", "java.util.List", "java.util.Map" ]
import com.openmeap.model.dto.ApplicationArchive; import com.openmeap.protocol.dto.HashAlgorithm; import com.openmeap.web.html.Option; import java.util.ArrayList; import java.util.List; import java.util.Map;
import com.openmeap.model.dto.*; import com.openmeap.protocol.dto.*; import com.openmeap.web.html.*; import java.util.*;
[ "com.openmeap.model", "com.openmeap.protocol", "com.openmeap.web", "java.util" ]
com.openmeap.model; com.openmeap.protocol; com.openmeap.web; java.util;
1,471,257
BossBar createLegacyBossBar(String title, float health, BossColor color, BossStyle style);
BossBar createLegacyBossBar(String title, float health, BossColor color, BossStyle style);
/** * Creates a new bossbar instance. This only works on pre 1.9 servers for 1.9+ clients. * * @param title title * @param health health, between 0 and 1 (inclusive) * @param color color * @param style style * @return new bossbar instance */
Creates a new bossbar instance. This only works on pre 1.9 servers for 1.9+ clients
createLegacyBossBar
{ "repo_name": "MylesIsCool/ViaVersion", "path": "api/src/main/java/com/viaversion/viaversion/api/legacy/LegacyViaAPI.java", "license": "mit", "size": 2375 }
[ "com.viaversion.viaversion.api.legacy.bossbar.BossBar", "com.viaversion.viaversion.api.legacy.bossbar.BossColor", "com.viaversion.viaversion.api.legacy.bossbar.BossStyle" ]
import com.viaversion.viaversion.api.legacy.bossbar.BossBar; import com.viaversion.viaversion.api.legacy.bossbar.BossColor; import com.viaversion.viaversion.api.legacy.bossbar.BossStyle;
import com.viaversion.viaversion.api.legacy.bossbar.*;
[ "com.viaversion.viaversion" ]
com.viaversion.viaversion;
1,791,748
public static StarlarkList<String> dir(Mutability mu, StarlarkSemantics semantics, Object x) { // Order the fields alphabetically. Set<String> fields = new TreeSet<>(); if (x instanceof ClassObject) { fields.addAll(((ClassObject) x).getFieldNames()); } fields.addAll(CallUtils.getAnnotatedMet...
static StarlarkList<String> function(Mutability mu, StarlarkSemantics semantics, Object x) { Set<String> fields = new TreeSet<>(); if (x instanceof ClassObject) { fields.addAll(((ClassObject) x).getFieldNames()); } fields.addAll(CallUtils.getAnnotatedMethodNames(semantics, x.getClass())); return StarlarkList.copyOf(mu,...
/** * Returns a new sorted list containing the names of the Starlark-accessible fields and methods of * the specified value, as if by the Starlark expression {@code dir(x)}. */
Returns a new sorted list containing the names of the Starlark-accessible fields and methods of the specified value, as if by the Starlark expression dir(x)
dir
{ "repo_name": "werkt/bazel", "path": "src/main/java/com/google/devtools/build/lib/syntax/Starlark.java", "license": "apache-2.0", "size": 30326 }
[ "java.util.Set", "java.util.TreeSet" ]
import java.util.Set; import java.util.TreeSet;
import java.util.*;
[ "java.util" ]
java.util;
150,639
Properties getProperties() throws IOException;
Properties getProperties() throws IOException;
/** * Returns general properties of the backup, normally including the creation date or if it is an incremental backup. * * @return a Properties object or null if no properties were found * @throws IOException if there was an error in the properties file */
Returns general properties of the backup, normally including the creation date or if it is an incremental backup
getProperties
{ "repo_name": "ambs/exist", "path": "exist-core/src/main/java/org/exist/backup/BackupDescriptor.java", "license": "lgpl-2.1", "size": 2543 }
[ "java.io.IOException", "java.util.Properties" ]
import java.io.IOException; import java.util.Properties;
import java.io.*; import java.util.*;
[ "java.io", "java.util" ]
java.io; java.util;
1,481,786
public void setNextMaturityDate(Date nextMaturityDate) { this.nextMaturityDate = nextMaturityDate; }
void function(Date nextMaturityDate) { this.nextMaturityDate = nextMaturityDate; }
/** * Sets the next maturity date for the next coupon. * This is an optional field according to the OFX spec. * * @param nextMaturityDate the maturity date for the next coupon. */
Sets the next maturity date for the next coupon. This is an optional field according to the OFX spec
setNextMaturityDate
{ "repo_name": "stoicflame/ofx4j", "path": "src/main/java/com/webcohesion/ofx4j/domain/data/seclist/DebtSecurityInfo.java", "license": "apache-2.0", "size": 9958 }
[ "java.util.Date" ]
import java.util.Date;
import java.util.*;
[ "java.util" ]
java.util;
2,675,554
public int getColor(ItemStack stack) { if (this.material != ItemArmor.ArmorMaterial.LEATHER) { return -1; } else { NBTTagCompound nbttagcompound = stack.getTagCompound(); if (nbttagcompound != null) { ...
int function(ItemStack stack) { if (this.material != ItemArmor.ArmorMaterial.LEATHER) { return -1; } else { NBTTagCompound nbttagcompound = stack.getTagCompound(); if (nbttagcompound != null) { NBTTagCompound nbttagcompound1 = nbttagcompound.getCompoundTag(STR); if (nbttagcompound1 != null && nbttagcompound1.hasKey("co...
/** * Return the color for the specified armor ItemStack. */
Return the color for the specified armor ItemStack
getColor
{ "repo_name": "cvronmin/MCModEasyAPI", "path": "src/main/java/tk/cvrunmin/mcme/api/item/MEItemArmor.java", "license": "mit", "size": 10646 }
[ "net.minecraft.item.ItemArmor", "net.minecraft.item.ItemStack", "net.minecraft.nbt.NBTTagCompound" ]
import net.minecraft.item.ItemArmor; import net.minecraft.item.ItemStack; import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.item.*; import net.minecraft.nbt.*;
[ "net.minecraft.item", "net.minecraft.nbt" ]
net.minecraft.item; net.minecraft.nbt;
1,209,055
@ServiceMethod(returns = ReturnType.SINGLE) private Mono<Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync( String resourceGroupName, String serverName, String databaseName, ShortTermRetentionPolicyName policyName, Integer retentionDays, Context context)...
@ServiceMethod(returns = ReturnType.SINGLE) Mono<Response<Flux<ByteBuffer>>> function( String resourceGroupName, String serverName, String databaseName, ShortTermRetentionPolicyName policyName, Integer retentionDays, Context context) { if (this.client.getEndpoint() == null) { return Mono .error( new IllegalArgumentExce...
/** * Updates a database's short term retention policy. * * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value * from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseNa...
Updates a database's short term retention policy
createOrUpdateWithResponseAsync
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/resourcemanager/azure-resourcemanager-sql/src/main/java/com/azure/resourcemanager/sql/implementation/BackupShortTermRetentionPoliciesClientImpl.java", "license": "mit", "size": 71299 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.http.rest.Response", "com.azure.core.util.Context", "com.azure.resourcemanager.sql.fluent.models.BackupShortTermRetentionPolicyInner", "com.azure.resourcemanager.sql.models.ShortTermRetentionPolicyName", "...
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.Response; import com.azure.core.util.Context; import com.azure.resourcemanager.sql.fluent.models.BackupShortTermRetentionPolicyInner; import com.azure.resourcemanager.sql.models.ShortTermRetentio...
import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.core.util.*; import com.azure.resourcemanager.sql.fluent.models.*; import com.azure.resourcemanager.sql.models.*; import java.nio.*;
[ "com.azure.core", "com.azure.resourcemanager", "java.nio" ]
com.azure.core; com.azure.resourcemanager; java.nio;
1,429,289
// Linked Entity @ServiceMethod(returns = ReturnType.SINGLE) public Mono<RecognizeLinkedEntitiesResult> recognizeLinkedEntities(String text) { try { return recognizeLinkedEntitiesWithResponse(text, defaultLanguage).flatMap(FluxUtil::toMono); } catch (RuntimeException ex) { ...
@ServiceMethod(returns = ReturnType.SINGLE) Mono<RecognizeLinkedEntitiesResult> function(String text) { try { return recognizeLinkedEntitiesWithResponse(text, defaultLanguage).flatMap(FluxUtil::toMono); } catch (RuntimeException ex) { return monoError(logger, ex); } }
/** * Returns a list of recognized entities with links to a well-known knowledge base for the provided text. See * <a href="https://aka.ms/talangs"></a> for supported languages in Text Analytics API. * * @param text the text to recognize linked entities for. * * @return A {@link Mono} cont...
Returns a list of recognized entities with links to a well-known knowledge base for the provided text. See for supported languages in Text Analytics API
recognizeLinkedEntities
{ "repo_name": "navalev/azure-sdk-for-java", "path": "sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/TextAnalyticsAsyncClient.java", "license": "mit", "size": 41446 }
[ "com.azure.ai.textanalytics.models.RecognizeLinkedEntitiesResult", "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.util.FluxUtil" ]
import com.azure.ai.textanalytics.models.RecognizeLinkedEntitiesResult; import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.util.FluxUtil;
import com.azure.ai.textanalytics.models.*; import com.azure.core.annotation.*; import com.azure.core.util.*;
[ "com.azure.ai", "com.azure.core" ]
com.azure.ai; com.azure.core;
2,826,446
private void cbAttributesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cbAttributesActionPerformed // go through all nodes and put values into combobox Edge[] edges = graphModel.getUndirectedGraph().getEdges().toArray(); attributeListModel.clear(); weightListMod...
void function(java.awt.event.ActionEvent evt) { Edge[] edges = graphModel.getUndirectedGraph().getEdges().toArray(); attributeListModel.clear(); weightListModel.clear(); for(Edge e : edges) { if(e.getAttributes().getValue(cbAttributes.getSelectedItem().toString()) != null && checkIfNotInListModel((String) e.getAttribut...
/** * This method reacts on the event of a change of the checkbox * @param evt ActionEvent (unused) */
This method reacts on the event of a change of the checkbox
cbAttributesActionPerformed
{ "repo_name": "KSD-research-group/plugin4gephi", "path": "src/graphml/architecture/colorizer/WeightManager.java", "license": "agpl-3.0", "size": 11538 }
[ "org.gephi.graph.api.Edge" ]
import org.gephi.graph.api.Edge;
import org.gephi.graph.api.*;
[ "org.gephi.graph" ]
org.gephi.graph;
663,716
private void saveDiagramScore() { openDB(); extractTags(correctTagList, incorrectTagList); boolean completed = checkCompleted(); Result resultObj = new Result(source); resultObj.setScore(score); resultObj.setCorrectTagList(correctTagTextList); resultObj.setIncorrectTagList(incorrectTagTextList); ...
void function() { openDB(); extractTags(correctTagList, incorrectTagList); boolean completed = checkCompleted(); Result resultObj = new Result(source); resultObj.setScore(score); resultObj.setCorrectTagList(correctTagTextList); resultObj.setIncorrectTagList(incorrectTagTextList); resultObj.setGameScore(gameScore); resu...
/** * save score for the diagram play action */
save score for the diagram play action
saveDiagramScore
{ "repo_name": "amritsinghbains/Mobile-applications", "path": "Label The Diagram/source-code/LabeltheDiagram/src/com/buildmlearn/labeldiagram/DiagramResult.java", "license": "bsd-3-clause", "size": 8032 }
[ "android.database.Cursor", "android.util.Log", "com.buildmlearn.labeldiagram.entity.Result", "com.google.gson.Gson" ]
import android.database.Cursor; import android.util.Log; import com.buildmlearn.labeldiagram.entity.Result; import com.google.gson.Gson;
import android.database.*; import android.util.*; import com.buildmlearn.labeldiagram.entity.*; import com.google.gson.*;
[ "android.database", "android.util", "com.buildmlearn.labeldiagram", "com.google.gson" ]
android.database; android.util; com.buildmlearn.labeldiagram; com.google.gson;
499,463
private void addExchangeToTimeoutMap(String key, Exchange exchange, long timeout) { // store the timeout value on the exchange as well, in case we need it later exchange.setProperty(Exchange.AGGREGATED_TIMEOUT, timeout); timeoutMap.put(key, exchange.getExchangeId(), timeout); }
void function(String key, Exchange exchange, long timeout) { exchange.setProperty(Exchange.AGGREGATED_TIMEOUT, timeout); timeoutMap.put(key, exchange.getExchangeId(), timeout); }
/** * Adds the given exchange to the timeout map, which is used by the timeout checker task to trigger timeouts. * * @param key the correlation key * @param exchange the exchange * @param timeout the timeout value in millis */
Adds the given exchange to the timeout map, which is used by the timeout checker task to trigger timeouts
addExchangeToTimeoutMap
{ "repo_name": "RohanHart/camel", "path": "camel-core/src/main/java/org/apache/camel/processor/aggregate/AggregateProcessor.java", "license": "apache-2.0", "size": 67260 }
[ "org.apache.camel.Exchange" ]
import org.apache.camel.Exchange;
import org.apache.camel.*;
[ "org.apache.camel" ]
org.apache.camel;
1,404,045
public int clampViewPositionVertical(View child, int top, int dy) { return 0; } }
int function(View child, int top, int dy) { return 0; } }
/** * Restrict the motion of the dragged child view along the vertical axis. * The default implementation does not allow vertical motion; the extending * class must override this method and provide the desired clamping. * * * @param child Child view being dragged * @param top Attempte...
Restrict the motion of the dragged child view along the vertical axis. The default implementation does not allow vertical motion; the extending class must override this method and provide the desired clamping
clampViewPositionVertical
{ "repo_name": "gouravd/Dragger", "path": "dragger/src/main/java/com/github/ppamorim/dragger/ViewDragHelper.java", "license": "apache-2.0", "size": 55704 }
[ "android.view.View" ]
import android.view.View;
import android.view.*;
[ "android.view" ]
android.view;
2,848,676
public final StyleableProperty<Paint> createStyleablePaintProperty( S styleable, String propertyName, String cssProperty, Function<S, StyleableProperty<Paint>> function, Paint initialValue) { return createStyleablePaintProperty(styleable, propertyN...
final StyleableProperty<Paint> function( S styleable, String propertyName, String cssProperty, Function<S, StyleableProperty<Paint>> function, Paint initialValue) { return createStyleablePaintProperty(styleable, propertyName, cssProperty, function, initialValue, false); }
/** * Create a StyleableProperty&lt;Paint&gt; with initial value. The inherit flag defaults to false. * @param styleable The <code>this</code> reference of the returned property. This is also the property bean. * @param propertyName The field name of the StyleableProperty&lt;Paint&gt; * @param cssPr...
Create a StyleableProperty&lt;Paint&gt; with initial value. The inherit flag defaults to false
createStyleablePaintProperty
{ "repo_name": "teamfx/openjfx-10-dev-rt", "path": "modules/javafx.graphics/src/main/java/javafx/css/StyleablePropertyFactory.java", "license": "gpl-2.0", "size": 113819 }
[ "java.util.function.Function" ]
import java.util.function.Function;
import java.util.function.*;
[ "java.util" ]
java.util;
2,398,591
public PropertyName addFirst(String word) { List<String> results = new ArrayList<>(); results.add(word); results.addAll(words); return new PropertyName(results); }
PropertyName function(String word) { List<String> results = new ArrayList<>(); results.add(word); results.addAll(words); return new PropertyName(results); }
/** * Returns a property name which the specified is inserted into head of this name. * The method does not modifies this object. * @param word the first word * @return the modified name */
Returns a property name which the specified is inserted into head of this name. The method does not modifies this object
addFirst
{ "repo_name": "ashigeru/asakusafw-compiler", "path": "compiler-project/model/src/main/java/com/asakusafw/lang/compiler/model/PropertyName.java", "license": "apache-2.0", "size": 9016 }
[ "java.util.ArrayList", "java.util.List" ]
import java.util.ArrayList; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,274,240
@JsMethod public native Size getSize();
native Size function();
/** * Get the size of the symbolizer (in pixels). * @return Size. */
Get the size of the symbolizer (in pixels)
getSize
{ "repo_name": "iSergio/gwt-ol", "path": "ol4gwt-main/src/main/java/org/openlayers/ol/style/RegularShapeStyle.java", "license": "apache-2.0", "size": 3193 }
[ "org.openlayers.ol.Size" ]
import org.openlayers.ol.Size;
import org.openlayers.ol.*;
[ "org.openlayers.ol" ]
org.openlayers.ol;
928,614
Rule LyricsSyllableBreak() { return FirstOf(WSPS(), String("-")) .label(LyricsSyllableBreak).suppressSubnodes(); }
Rule LyricsSyllableBreak() { return FirstOf(WSPS(), String("-")) .label(LyricsSyllableBreak).suppressSubnodes(); }
/** * lyrics-syllable-break ::= "-" * <p>break between syllables in a word */
lyrics-syllable-break ::= "-" break between syllables in a word
LyricsSyllableBreak
{ "repo_name": "Sciss/abc4j", "path": "abc/src/main/java/abc/parser/AbcGrammar.java", "license": "lgpl-3.0", "size": 72845 }
[ "org.parboiled.Rule" ]
import org.parboiled.Rule;
import org.parboiled.*;
[ "org.parboiled" ]
org.parboiled;
736,066
public Condition getStateChangedCondition() { return _stateChangedCondition; }
Condition function() { return _stateChangedCondition; }
/** * This condition will be signaled if a zookeeper event was processed and the event contains a state change * (connected, disconnected, session expired, etc ...). * * @return the condition. */
This condition will be signaled if a zookeeper event was processed and the event contains a state change (connected, disconnected, session expired, etc ...)
getStateChangedCondition
{ "repo_name": "adyliu/zkclient", "path": "src/main/java/com/github/zkclient/ZkLock.java", "license": "apache-2.0", "size": 1862 }
[ "java.util.concurrent.locks.Condition" ]
import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.*;
[ "java.util" ]
java.util;
1,009,536
protected void calculateBarWidth(CategoryPlot plot, Rectangle2D dataArea, int rendererIndex, CategoryItemRendererState state) { // calculate the bar width CategoryAxis xAxis = plot.g...
void function(CategoryPlot plot, Rectangle2D dataArea, int rendererIndex, CategoryItemRendererState state) { CategoryAxis xAxis = plot.getDomainAxisForDataset(rendererIndex); CategoryDataset data = plot.getDataset(rendererIndex); if (data != null) { PlotOrientation orientation = plot.getOrientation(); double space = 0....
/** * Calculates the bar width and stores it in the renderer state. * * @param plot the plot. * @param dataArea the data area. * @param rendererIndex the renderer index. * @param state the renderer state. */
Calculates the bar width and stores it in the renderer state
calculateBarWidth
{ "repo_name": "SOCR/HTML5_WebSite", "path": "SOCR2.8/src/jfreechart/org/jfree/chart/renderer/category/StackedBarRenderer.java", "license": "lgpl-3.0", "size": 16772 }
[ "java.awt.geom.Rectangle2D", "org.jfree.chart.axis.CategoryAxis", "org.jfree.chart.plot.CategoryPlot", "org.jfree.chart.plot.PlotOrientation", "org.jfree.data.category.CategoryDataset" ]
import java.awt.geom.Rectangle2D; import org.jfree.chart.axis.CategoryAxis; import org.jfree.chart.plot.CategoryPlot; import org.jfree.chart.plot.PlotOrientation; import org.jfree.data.category.CategoryDataset;
import java.awt.geom.*; import org.jfree.chart.axis.*; import org.jfree.chart.plot.*; import org.jfree.data.category.*;
[ "java.awt", "org.jfree.chart", "org.jfree.data" ]
java.awt; org.jfree.chart; org.jfree.data;
1,776,600
void removeColumn(int col) { SheetRangeImpl sr = null; Iterator i = ranges.iterator(); while (i.hasNext()) { sr = (SheetRangeImpl) i.next(); if (sr.getTopLeft().getColumn() == col && sr.getBottomRight().getColumn() == col) { // The column with the merged cells on ...
void removeColumn(int col) { SheetRangeImpl sr = null; Iterator i = ranges.iterator(); while (i.hasNext()) { sr = (SheetRangeImpl) i.next(); if (sr.getTopLeft().getColumn() == col && sr.getBottomRight().getColumn() == col) { i.remove(); } else { sr.removeColumn(col); } } }
/** * Used to adjust the merged cells following a column removal */
Used to adjust the merged cells following a column removal
removeColumn
{ "repo_name": "miraculix0815/jexcelapi", "path": "src/jxl/write/biff/MergedCells.java", "license": "lgpl-3.0", "size": 7807 }
[ "java.util.Iterator" ]
import java.util.Iterator;
import java.util.*;
[ "java.util" ]
java.util;
2,779,944
public static void serialization(String filePath, Object obj) { ObjectOutputStream out = null; try { out = new ObjectOutputStream(new FileOutputStream(filePath)); out.writeObject(obj); out.close(); } catch (FileNotFoundException e) { throw new ...
static void function(String filePath, Object obj) { ObjectOutputStream out = null; try { out = new ObjectOutputStream(new FileOutputStream(filePath)); out.writeObject(obj); out.close(); } catch (FileNotFoundException e) { throw new RuntimeException(STR, e); } catch (IOException e) { throw new RuntimeException(STR, e); ...
/** * Serialize object to file. * * @param filePath file path * @param obj object * @throws RuntimeException if an error occurs */
Serialize object to file
serialization
{ "repo_name": "dgrlucky/Awesome", "path": "library/src/main/java/com/library/common/util/SerializeUtils.java", "license": "apache-2.0", "size": 2039 }
[ "java.io.FileNotFoundException", "java.io.FileOutputStream", "java.io.IOException", "java.io.ObjectOutputStream" ]
import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.ObjectOutputStream;
import java.io.*;
[ "java.io" ]
java.io;
2,879,374
public static PortDescription otuPortDescription(PortNumber number, boolean isEnabled, OtuSignalType signalType, SparseAnnotations annotations) { Bui...
static PortDescription function(PortNumber number, boolean isEnabled, OtuSignalType signalType, SparseAnnotations annotations) { Builder builder = DefaultAnnotations.builder(); builder.putAll(annotations); builder.set(SIGNAL_TYPE, signalType.toString()); long portSpeed = 0; return new DefaultPortDescription(number, isE...
/** * Creates OTU port description based on the supplied information. * * @param number port number * @param isEnabled port enabled state * @param signalType OTU client signal type * @param annotations key/value annotations map * @return port description ...
Creates OTU port description based on the supplied information
otuPortDescription
{ "repo_name": "sdnwiselab/onos", "path": "apps/optical-model/src/main/java/org/onosproject/net/optical/device/OtuPortHelper.java", "license": "apache-2.0", "size": 5256 }
[ "org.onosproject.net.DefaultAnnotations", "org.onosproject.net.OtuSignalType", "org.onosproject.net.Port", "org.onosproject.net.PortNumber", "org.onosproject.net.SparseAnnotations", "org.onosproject.net.device.DefaultPortDescription", "org.onosproject.net.device.PortDescription" ]
import org.onosproject.net.DefaultAnnotations; import org.onosproject.net.OtuSignalType; import org.onosproject.net.Port; import org.onosproject.net.PortNumber; import org.onosproject.net.SparseAnnotations; import org.onosproject.net.device.DefaultPortDescription; import org.onosproject.net.device.PortDescription;
import org.onosproject.net.*; import org.onosproject.net.device.*;
[ "org.onosproject.net" ]
org.onosproject.net;
1,700,039
public RequestContextControllerBean getRequestContextControllerBean() { return new RequestContextControllerBean(webBeansContext); }
RequestContextControllerBean function() { return new RequestContextControllerBean(webBeansContext); }
/** * Creates a new bean for Request Context Controller * @return new request context controller bean instance */
Creates a new bean for Request Context Controller
getRequestContextControllerBean
{ "repo_name": "apache/openwebbeans", "path": "webbeans-impl/src/main/java/org/apache/webbeans/util/WebBeansUtil.java", "license": "apache-2.0", "size": 69989 }
[ "org.apache.webbeans.context.control.RequestContextControllerBean" ]
import org.apache.webbeans.context.control.RequestContextControllerBean;
import org.apache.webbeans.context.control.*;
[ "org.apache.webbeans" ]
org.apache.webbeans;
2,691,262
@SuppressWarnings("unchecked") public void loadCustomData() { List<CustomData> customData = (List<CustomData>) resources.getObject("customData"); for (CustomData data : customData) { if (matcher.matchesCurrentPlatform(data.osConstraints)) { swi...
@SuppressWarnings(STR) void function() { List<CustomData> customData = (List<CustomData>) resources.getObject(STR); for (CustomData data : customData) { if (matcher.matchesCurrentPlatform(data.osConstraints)) { switch (data.type) { case CustomData.INSTALLER_LISTENER: addInstallerListener(data.listenerName); break; case...
/** * Loads custom data. * <p/> * This includes: * <ul> * <li>installer listeners</li> * <li>uninstaller listeners</li> * <li>uninstaller jars</li> * <li>uninstaller native libraries</li> * </ul> * @throws IzPackException if an {@link InstallerListener} throws an except...
Loads custom data. This includes: installer listeners uninstaller listeners uninstaller jars uninstaller native libraries
loadCustomData
{ "repo_name": "Murdock01/izpack", "path": "izpack-installer/src/main/java/com/izforge/izpack/installer/container/impl/CustomDataLoader.java", "license": "apache-2.0", "size": 4376 }
[ "com.izforge.izpack.data.CustomData", "java.util.List" ]
import com.izforge.izpack.data.CustomData; import java.util.List;
import com.izforge.izpack.data.*; import java.util.*;
[ "com.izforge.izpack", "java.util" ]
com.izforge.izpack; java.util;
799,801
public static IgniteReducer<Long, Long> sumLongReducer() { return new R1<Long, Long>() { private AtomicLong sum = new AtomicLong(0);
static IgniteReducer<Long, Long> function() { return new R1<Long, Long>() { private AtomicLong sum = new AtomicLong(0);
/** * Gets reducer closure that calculates sum of long integer elements. * <p> * <img src="{@docRoot}/img/sum.png"> * * @return Reducer that calculates sum of long integer elements. */
Gets reducer closure that calculates sum of long integer elements.
sumLongReducer
{ "repo_name": "dlnufox/ignite", "path": "modules/core/src/main/java/org/apache/ignite/internal/util/lang/GridFunc.java", "license": "apache-2.0", "size": 157742 }
[ "java.util.concurrent.atomic.AtomicLong", "org.apache.ignite.lang.IgniteReducer" ]
import java.util.concurrent.atomic.AtomicLong; import org.apache.ignite.lang.IgniteReducer;
import java.util.concurrent.atomic.*; import org.apache.ignite.lang.*;
[ "java.util", "org.apache.ignite" ]
java.util; org.apache.ignite;
1,669,970
Field getField() { return field; }
Field getField() { return field; }
/** * Returns field represented by this ObjectStreamField, or null if * ObjectStreamField is not associated with an actual field. */
Returns field represented by this ObjectStreamField, or null if ObjectStreamField is not associated with an actual field
getField
{ "repo_name": "google/j2objc", "path": "jre_emul/android/platform/libcore/ojluni/src/main/java/java/io/ObjectStreamField.java", "license": "apache-2.0", "size": 11116 }
[ "java.lang.reflect.Field" ]
import java.lang.reflect.Field;
import java.lang.reflect.*;
[ "java.lang" ]
java.lang;
896,714
private int compareByUserId(RichMember o1, RichMember o2) { return o1.getUser().getId() - o2.getUser().getId(); }
int function(RichMember o1, RichMember o2) { return o1.getUser().getId() - o2.getUser().getId(); }
/** * Compares RichMembers by User ID. * @param o1 * @param o2 * @return */
Compares RichMembers by User ID
compareByUserId
{ "repo_name": "zlamalp/perun", "path": "perun-web-gui/src/main/java/cz/metacentrum/perun/webgui/json/comparators/RichMemberComparator.java", "license": "bsd-2-clause", "size": 4387 }
[ "cz.metacentrum.perun.webgui.model.RichMember" ]
import cz.metacentrum.perun.webgui.model.RichMember;
import cz.metacentrum.perun.webgui.model.*;
[ "cz.metacentrum.perun" ]
cz.metacentrum.perun;
797,502