method
stringlengths
13
441k
clean_method
stringlengths
7
313k
doc
stringlengths
17
17.3k
comment
stringlengths
3
1.42k
method_name
stringlengths
1
273
extra
dict
imports
list
imports_info
stringlengths
19
34.8k
cluster_imports_info
stringlengths
15
3.66k
libraries
list
libraries_info
stringlengths
6
661
id
int64
0
2.92M
public void onSearchResult(List<T> objects);
void function(List<T> objects);
/** * This method is called by the filter component after filtering the Listview. * You have to link the given list to the back-list in your adapter in order to * syncronize your listview and filter component. * * Most of times is an assign statement: adapterList = objects; * * @param objects ...
This method is called by the filter component after filtering the Listview. You have to link the given list to the back-list in your adapter in order to syncronize your listview and filter component. Most of times is an assign statement: adapterList = objects
onSearchResult
{ "repo_name": "matessoftwaresolutions/AndroidFilterableList", "path": "src/mss/filterableList/listeners/IFilteredListListener.java", "license": "apache-2.0", "size": 630 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
993,311
public ConcurrencyLimit getConcurrencyLimit() { return new ConcurrencyLimit( getDelegate().getNumThreads(), getResourceAllocationFairness(), getManagedThreadCount(), getDefaultResourceAmounts(), getMaximumResourceAmounts()); }
ConcurrencyLimit function() { return new ConcurrencyLimit( getDelegate().getNumThreads(), getResourceAllocationFairness(), getManagedThreadCount(), getDefaultResourceAmounts(), getMaximumResourceAmounts()); }
/** * Construct a default ConcurrencyLimit instance from this config. * * @return New instance of ConcurrencyLimit. */
Construct a default ConcurrencyLimit instance from this config
getConcurrencyLimit
{ "repo_name": "ilya-klyuchnikov/buck", "path": "src/com/facebook/buck/config/resources/AbstractResourcesConfig.java", "license": "apache-2.0", "size": 5544 }
[ "com.facebook.buck.util.concurrent.ConcurrencyLimit" ]
import com.facebook.buck.util.concurrent.ConcurrencyLimit;
import com.facebook.buck.util.concurrent.*;
[ "com.facebook.buck" ]
com.facebook.buck;
2,049,259
public TransferStatus getTransferProgress(long transferID) throws ActionFailedException;
TransferStatus function(long transferID) throws ActionFailedException;
/** * Retrieves the transfer progress for a transferID. * * @param transferID * The transfer ID * * @return The transfers status */
Retrieves the transfer progress for a transferID
getTransferProgress
{ "repo_name": "fraunhoferfokus/fokus-upnp", "path": "upnp-core/src/main/java/de/fraunhofer/fokus/upnp/core_av/server/IMediaServerContentModifier.java", "license": "gpl-3.0", "size": 3055 }
[ "de.fraunhofer.fokus.upnp.util.exceptions.ActionFailedException" ]
import de.fraunhofer.fokus.upnp.util.exceptions.ActionFailedException;
import de.fraunhofer.fokus.upnp.util.exceptions.*;
[ "de.fraunhofer.fokus" ]
de.fraunhofer.fokus;
2,764,630
public void setApps(List<AppInfo> apps) { mApps.setApps(apps); updateScrubber(); }
void function(List<AppInfo> apps) { mApps.setApps(apps); updateScrubber(); }
/** * Sets the current set of apps. */
Sets the current set of apps
setApps
{ "repo_name": "bojanvu23/android_packages_apps_Trebuchet_Gradle", "path": "Trebuchet/src/main/java/com/lite/android/launcher3/allapps/AllAppsContainerView.java", "license": "apache-2.0", "size": 26750 }
[ "com.lite.android.launcher3.AppInfo", "java.util.List" ]
import com.lite.android.launcher3.AppInfo; import java.util.List;
import com.lite.android.launcher3.*; import java.util.*;
[ "com.lite.android", "java.util" ]
com.lite.android; java.util;
1,066,185
public static void register(Binder binder, Class<? extends Annotation> annotation) { registerKey(binder, Key.get(new TypeLiteral<DruidNode>(){}, annotation)); }
static void function(Binder binder, Class<? extends Annotation> annotation) { registerKey(binder, Key.get(new TypeLiteral<DruidNode>(){}, annotation)); }
/** * Requests that the annotated DruidNode instance be injected and published as part of the lifecycle. * * That is, this module will announce the DruidNode instance returned by * injector.getInstance(Key.get(DruidNode.class, annotation)) automatically. * Announcement will happen in the LAST stage of t...
Requests that the annotated DruidNode instance be injected and published as part of the lifecycle. That is, this module will announce the DruidNode instance returned by injector.getInstance(Key.get(DruidNode.class, annotation)) automatically. Announcement will happen in the LAST stage of the Lifecycle
register
{ "repo_name": "dkhwangbo/druid", "path": "server/src/main/java/org/apache/druid/curator/discovery/DiscoveryModule.java", "license": "apache-2.0", "size": 15526 }
[ "com.google.inject.Binder", "com.google.inject.Key", "com.google.inject.TypeLiteral", "java.lang.annotation.Annotation", "org.apache.druid.server.DruidNode" ]
import com.google.inject.Binder; import com.google.inject.Key; import com.google.inject.TypeLiteral; import java.lang.annotation.Annotation; import org.apache.druid.server.DruidNode;
import com.google.inject.*; import java.lang.annotation.*; import org.apache.druid.server.*;
[ "com.google.inject", "java.lang", "org.apache.druid" ]
com.google.inject; java.lang; org.apache.druid;
2,504,427
EClass getnBldFl2Sh5();
EClass getnBldFl2Sh5();
/** * Returns the meta object for class '{@link sc.ndt.editor.fast.fastbld.nBldFl2Sh5 <em>nBld Fl2 Sh5</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for class '<em>nBld Fl2 Sh5</em>'. * @see sc.ndt.editor.fast.fastbld.nBldFl2Sh5 * @generated */
Returns the meta object for class '<code>sc.ndt.editor.fast.fastbld.nBldFl2Sh5 nBld Fl2 Sh5</code>'.
getnBldFl2Sh5
{ "repo_name": "cooked/NDT", "path": "sc.ndt.editor.fast.bld/src-gen/sc/ndt/editor/fast/fastbld/FastbldPackage.java", "license": "gpl-3.0", "size": 123602 }
[ "org.eclipse.emf.ecore.EClass" ]
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
2,480,295
public PV<R, W> synchWriteAndMaxReadRate(TimeDuration period) { PVReader<R> pvReader = pvReaderConfiguration.maxRate(period); PVWriter<W> pvWriter = pvWriterConfiguration.sync(); return new PV<R, W>(pvReader, pvWriter); }
PV<R, W> function(TimeDuration period) { PVReader<R> pvReader = pvReaderConfiguration.maxRate(period); PVWriter<W> pvWriter = pvWriterConfiguration.sync(); return new PV<R, W>(pvReader, pvWriter); }
/** * Creates the pv such that writes are synchronous and read notifications * comes at most at the rate specified. * * @param period minimum time between read notifications * @return a new PV */
Creates the pv such that writes are synchronous and read notifications comes at most at the rate specified
synchWriteAndMaxReadRate
{ "repo_name": "dls-controls/pvmanager", "path": "pvmanager-core/src/main/java/org/epics/pvmanager/PVConfiguration.java", "license": "gpl-2.0", "size": 5323 }
[ "org.epics.util.time.TimeDuration" ]
import org.epics.util.time.TimeDuration;
import org.epics.util.time.*;
[ "org.epics.util" ]
org.epics.util;
2,248,511
@Override public List<Integer> getSubDeviceSessions(String name) { return mXmppConnectionService.databaseBackend.getSubDeviceSessions(account, new AxolotlAddress(name, 0)); }
List<Integer> function(String name) { return mXmppConnectionService.databaseBackend.getSubDeviceSessions(account, new AxolotlAddress(name, 0)); }
/** * Returns all known devices with active sessions for a recipient * * @param name the name of the client. * @return all known sub-devices with active sessions. */
Returns all known devices with active sessions for a recipient
getSubDeviceSessions
{ "repo_name": "chinnuabhi/Conversations", "path": "src/main/java/eu/siacs/conversations/crypto/axolotl/SQLiteAxolotlStore.java", "license": "gpl-3.0", "size": 15561 }
[ "java.util.List", "org.whispersystems.libaxolotl.AxolotlAddress" ]
import java.util.List; import org.whispersystems.libaxolotl.AxolotlAddress;
import java.util.*; import org.whispersystems.libaxolotl.*;
[ "java.util", "org.whispersystems.libaxolotl" ]
java.util; org.whispersystems.libaxolotl;
46,337
public void validate(Region region) { // Get List of All indexes. Collection<Index> indexes = ((LocalRegion) region).getIndexManager().getIndexes(); // validate each index one by one for (Index index : indexes) { if (region instanceof PartitionedRegion) { validateOnPR((Par...
void function(Region region) { Collection<Index> indexes = ((LocalRegion) region).getIndexManager().getIndexes(); for (Index index : indexes) { if (region instanceof PartitionedRegion) { validateOnPR((PartitionedRegion) region, (PartitionedIndex) index); } else { validate(region, index); } } }
/** * Validation is done in the end of test on all indexes of a region by verifying last on a * region key and verifying state of index based on the last operation. * * @param region being validated for all of its indexes. */
Validation is done in the end of test on all indexes of a region by verifying last on a region key and verifying state of index based on the last operation
validate
{ "repo_name": "davinash/geode", "path": "geode-core/src/distributedTest/java/org/apache/geode/cache/query/internal/index/ConcurrentIndexUpdateWithInplaceObjectModFalseDUnitTest.java", "license": "apache-2.0", "size": 32831 }
[ "java.util.Collection", "org.apache.geode.cache.Region", "org.apache.geode.cache.query.Index", "org.apache.geode.internal.cache.LocalRegion", "org.apache.geode.internal.cache.PartitionedRegion" ]
import java.util.Collection; import org.apache.geode.cache.Region; import org.apache.geode.cache.query.Index; import org.apache.geode.internal.cache.LocalRegion; import org.apache.geode.internal.cache.PartitionedRegion;
import java.util.*; import org.apache.geode.cache.*; import org.apache.geode.cache.query.*; import org.apache.geode.internal.cache.*;
[ "java.util", "org.apache.geode" ]
java.util; org.apache.geode;
2,264,394
public static RelDataType convertToCalciteType(RelDataTypeFactory typeFactory, TypeProtos.MajorType drillType, boolean isNullable) { SqlTypeName sqlTypeName = getCalciteTypeFromDrillType(drillType.getMinorType()); if (sqlTypeName == SqlTypeName.DECIMAL) { ...
static RelDataType function(RelDataTypeFactory typeFactory, TypeProtos.MajorType drillType, boolean isNullable) { SqlTypeName sqlTypeName = getCalciteTypeFromDrillType(drillType.getMinorType()); if (sqlTypeName == SqlTypeName.DECIMAL) { return typeFactory.createTypeWithNullability( typeFactory.createSqlType(sqlTypeName...
/** * Creates a RelDataType using specified RelDataTypeFactory which corresponds to specified TypeProtos.MajorType. * * @param typeFactory RelDataTypeFactory used to create the RelDataType * @param drillType the given TypeProtos.MajorType * @param isNullable nullability of the resulting type * @ret...
Creates a RelDataType using specified RelDataTypeFactory which corresponds to specified TypeProtos.MajorType
convertToCalciteType
{ "repo_name": "vdiravka/drill", "path": "exec/java-exec/src/main/java/org/apache/drill/exec/planner/sql/TypeInferenceUtils.java", "license": "apache-2.0", "size": 46524 }
[ "org.apache.calcite.rel.type.RelDataType", "org.apache.calcite.rel.type.RelDataTypeFactory", "org.apache.calcite.sql.type.SqlTypeName", "org.apache.drill.common.types.TypeProtos" ]
import org.apache.calcite.rel.type.RelDataType; import org.apache.calcite.rel.type.RelDataTypeFactory; import org.apache.calcite.sql.type.SqlTypeName; import org.apache.drill.common.types.TypeProtos;
import org.apache.calcite.rel.type.*; import org.apache.calcite.sql.type.*; import org.apache.drill.common.types.*;
[ "org.apache.calcite", "org.apache.drill" ]
org.apache.calcite; org.apache.drill;
1,224,888
private MpdBindingProvider findFirstMatchingBindingProvider(String itemName, String command) { MpdBindingProvider firstMatchingProvider = null; for (MpdBindingProvider provider : this.providers) { String playerCommand = provider.getPlayerCommand(itemName, command); if (playerCommand != null) { firs...
MpdBindingProvider function(String itemName, String command) { MpdBindingProvider firstMatchingProvider = null; for (MpdBindingProvider provider : this.providers) { String playerCommand = provider.getPlayerCommand(itemName, command); if (playerCommand != null) { firstMatchingProvider = provider; break; } } return first...
/** * Find the first matching {@link MpdBindingProvider} according to * <code>itemName</code> and <code>command</code>. * * @param itemName * @param command * * @return the matching binding provider or <code>null</code> if no binding * provider could be found */
Find the first matching <code>MpdBindingProvider</code> according to <code>itemName</code> and <code>command</code>
findFirstMatchingBindingProvider
{ "repo_name": "noushadali/openhab", "path": "bundles/binding/org.openhab.binding.mpd/src/main/java/org/openhab/binding/mpd/internal/MpdBinding.java", "license": "gpl-3.0", "size": 16855 }
[ "org.openhab.binding.mpd.MpdBindingProvider" ]
import org.openhab.binding.mpd.MpdBindingProvider;
import org.openhab.binding.mpd.*;
[ "org.openhab.binding" ]
org.openhab.binding;
1,319,626
QName putModel(M2Model model); // QName putCustomModel(M2Model model);
QName putModel(M2Model model);
/** * Adds a model to the dictionary. The model is compiled and validated. * * @param model * the model to add * @return QName name of model */
Adds a model to the dictionary. The model is compiled and validated
putModel
{ "repo_name": "Tybion/community-edition", "path": "projects/data-model/source/java/org/alfresco/repo/dictionary/DictionaryDAO.java", "license": "lgpl-3.0", "size": 8290 }
[ "org.alfresco.service.namespace.QName" ]
import org.alfresco.service.namespace.QName;
import org.alfresco.service.namespace.*;
[ "org.alfresco.service" ]
org.alfresco.service;
2,001,707
@Test public void getWidthTest() { assertEquals(Math.round(PhysicsUtilities.calculateWheelWidth(car.getWidth())), Math.round(leftFrontWheel.getWidth())); }
void function() { assertEquals(Math.round(PhysicsUtilities.calculateWheelWidth(car.getWidth())), Math.round(leftFrontWheel.getWidth())); }
/** * Tests the getWidth method. */
Tests the getWidth method
getWidthTest
{ "repo_name": "PTS3-S34A/Soccar", "path": "Soccar [Client]/test/nl/soccar/ui/physics/models/test/WheelPhysicsTest.java", "license": "mit", "size": 2685 }
[ "nl.soccar.util.PhysicsUtilities", "org.junit.Assert" ]
import nl.soccar.util.PhysicsUtilities; import org.junit.Assert;
import nl.soccar.util.*; import org.junit.*;
[ "nl.soccar.util", "org.junit" ]
nl.soccar.util; org.junit;
2,809,607
public void editGroup() { final String oldName = group.getName(); FacesContext facesContext = FacesContext.getCurrentInstance(); ResourceBundle bundle = ResourceBundle.getBundle("messages", facesContext.getViewRoot().getLocale()); group.setName(newGroupName); gro...
void function() { final String oldName = group.getName(); FacesContext facesContext = FacesContext.getCurrentInstance(); ResourceBundle bundle = ResourceBundle.getBundle(STR, facesContext.getViewRoot().getLocale()); group.setName(newGroupName); group = groupService.update(group); logService.persist(Log.from(user, cours...
/** * Edits an existing group in the current tutorial. */
Edits an existing group in the current tutorial
editGroup
{ "repo_name": "stefanoberdoerfer/exmatrikulator", "path": "src/main/java/de/unibremen/opensores/controller/tutorial/TutorialController.java", "license": "agpl-3.0", "size": 25618 }
[ "de.unibremen.opensores.model.Log", "java.util.ResourceBundle", "javax.faces.application.FacesMessage", "javax.faces.context.FacesContext", "javax.validation.ValidationException" ]
import de.unibremen.opensores.model.Log; import java.util.ResourceBundle; import javax.faces.application.FacesMessage; import javax.faces.context.FacesContext; import javax.validation.ValidationException;
import de.unibremen.opensores.model.*; import java.util.*; import javax.faces.application.*; import javax.faces.context.*; import javax.validation.*;
[ "de.unibremen.opensores", "java.util", "javax.faces", "javax.validation" ]
de.unibremen.opensores; java.util; javax.faces; javax.validation;
1,576,087
public String getString () throws InvalidStringException { String string = (String) _reference.get (); if (string == null) throw new InvalidStringException (getId ()); return string; }
String function () throws InvalidStringException { String string = (String) _reference.get (); if (string == null) throw new InvalidStringException (getId ()); return string; }
/** * Gets the String represented by this ID * * @throws InvalidStringException if String is garbage collected, * or otherwise invalid */
Gets the String represented by this ID
getString
{ "repo_name": "cfriedt/classpath", "path": "gnu/classpath/jdwp/id/StringId.java", "license": "gpl-2.0", "size": 2713 }
[ "gnu.classpath.jdwp.exception.InvalidStringException" ]
import gnu.classpath.jdwp.exception.InvalidStringException;
import gnu.classpath.jdwp.exception.*;
[ "gnu.classpath.jdwp" ]
gnu.classpath.jdwp;
743,816
@CheckForNull Severity overridenSeverity();
Severity overridenSeverity();
/** * Overriden severity. */
Overriden severity
overridenSeverity
{ "repo_name": "jblievremont/sonarqube", "path": "sonar-plugin-api/src/main/java/org/sonar/api/batch/sensor/issue/Issue.java", "license": "lgpl-3.0", "size": 1964 }
[ "org.sonar.api.batch.rule.Severity" ]
import org.sonar.api.batch.rule.Severity;
import org.sonar.api.batch.rule.*;
[ "org.sonar.api" ]
org.sonar.api;
2,355,640
protected User authenticateUser(String requestBody) { PutMethod put = new PutMethod(Joiner.on("/").join(zeppelinhubUrl, USER_LOGIN_API_ENDPOINT)); String responseBody = StringUtils.EMPTY; String userSession = StringUtils.EMPTY; try { put.setRequestEntity(new StringRequestEntity(requestBody, JSON...
User function(String requestBody) { PutMethod put = new PutMethod(Joiner.on("/").join(zeppelinhubUrl, USER_LOGIN_API_ENDPOINT)); String responseBody = StringUtils.EMPTY; String userSession = StringUtils.EMPTY; try { put.setRequestEntity(new StringRequestEntity(requestBody, JSON_CONTENT_TYPE, UTF_8_ENCODING)); int statu...
/** * Send to ZeppelinHub a login request based on the request body which is a JSON that contains 2 * fields "login" and "password". * * @param requestBody JSON string of ZeppelinHub payload. * @return Account object with login, name (if set in ZeppelinHub), and mail. * @throws AuthenticationExcepti...
Send to ZeppelinHub a login request based on the request body which is a JSON that contains 2 fields "login" and "password"
authenticateUser
{ "repo_name": "anthonycorbacho/incubator-zeppelin", "path": "zeppelin-server/src/main/java/org/apache/zeppelin/realm/ZeppelinHubRealm.java", "license": "apache-2.0", "size": 8713 }
[ "com.google.common.base.Joiner", "com.google.gson.JsonParseException", "java.io.IOException", "org.apache.commons.httpclient.HttpStatus", "org.apache.commons.httpclient.methods.PutMethod", "org.apache.commons.httpclient.methods.StringRequestEntity", "org.apache.commons.lang3.StringUtils", "org.apache....
import com.google.common.base.Joiner; import com.google.gson.JsonParseException; import java.io.IOException; import org.apache.commons.httpclient.HttpStatus; import org.apache.commons.httpclient.methods.PutMethod; import org.apache.commons.httpclient.methods.StringRequestEntity; import org.apache.commons.lang3.StringUt...
import com.google.common.base.*; import com.google.gson.*; import java.io.*; import org.apache.commons.httpclient.*; import org.apache.commons.httpclient.methods.*; import org.apache.commons.lang3.*; import org.apache.shiro.authc.*;
[ "com.google.common", "com.google.gson", "java.io", "org.apache.commons", "org.apache.shiro" ]
com.google.common; com.google.gson; java.io; org.apache.commons; org.apache.shiro;
1,057,915
@Test public void testGetters() { final DirectForwardMethodPreConstructedCurveTypeSetUp setup = new DirectForwardMethodPreConstructedCurveTypeSetUp(SETUP); setup.forDiscounting(CCY); setup.forIndex(IBOR); setup.forIndex(OVERNIGHT); assertEquals(CCY, setup.getDiscountingCurveId()); assertEqua...
void function() { final DirectForwardMethodPreConstructedCurveTypeSetUp setup = new DirectForwardMethodPreConstructedCurveTypeSetUp(SETUP); setup.forDiscounting(CCY); setup.forIndex(IBOR); setup.forIndex(OVERNIGHT); assertEquals(CCY, setup.getDiscountingCurveId()); assertEquals(IBOR, setup.getIborCurveIndices().toArray...
/** * Test the getters. */
Test the getters
testGetters
{ "repo_name": "McLeodMoores/starling", "path": "projects/analytics/src/test/java/com/mcleodmoores/analytics/financial/curve/interestrate/curvebuilder/DirectForwardMethodPreConstructedCurveTypeSetUpTest.java", "license": "apache-2.0", "size": 2722 }
[ "org.testng.Assert" ]
import org.testng.Assert;
import org.testng.*;
[ "org.testng" ]
org.testng;
2,715,591
@SuppressWarnings("unchecked") private void sendRequest( final GridCacheDistributedQueryFuture<?, ?, ?> fut, final GridCacheQueryRequest req, Collection<ClusterNode> nodes ) throws IgniteCheckedException { assert fut != null; assert req != null; assert nodes !...
@SuppressWarnings(STR) void function( final GridCacheDistributedQueryFuture<?, ?, ?> fut, final GridCacheQueryRequest req, Collection<ClusterNode> nodes ) throws IgniteCheckedException { assert fut != null; assert req != null; assert nodes != null; final UUID locNodeId = cctx.localNodeId(); ClusterNode locNode = null; ...
/** * Sends query request. * * @param fut Distributed future. * @param req Request. * @param nodes Nodes. * @throws IgniteCheckedException In case of error. */
Sends query request
sendRequest
{ "repo_name": "tkpanther/ignite", "path": "modules/core/src/main/java/org/apache/ignite/internal/processors/cache/query/GridCacheDistributedQueryManager.java", "license": "apache-2.0", "size": 29426 }
[ "java.util.ArrayList", "java.util.Collection", "org.apache.ignite.IgniteCheckedException", "org.apache.ignite.cluster.ClusterNode" ]
import java.util.ArrayList; import java.util.Collection; import org.apache.ignite.IgniteCheckedException; import org.apache.ignite.cluster.ClusterNode;
import java.util.*; import org.apache.ignite.*; import org.apache.ignite.cluster.*;
[ "java.util", "org.apache.ignite" ]
java.util; org.apache.ignite;
2,863,948
public ModelEntity getModelEntity(String entityName) throws GenericEntityException { if (entityName == null) { throw new IllegalArgumentException("Tried to find entity definition for a null entityName"); } Map<String, ModelEntity> ec = getEntityCache(); if (ec == null) { ...
ModelEntity function(String entityName) throws GenericEntityException { if (entityName == null) { throw new IllegalArgumentException(STR); } Map<String, ModelEntity> ec = getEntityCache(); if (ec == null) { throw new GenericEntityConfException(STR); } ModelEntity modelEntity = ec.get(entityName); if (modelEntity == nul...
/** Gets an Entity object based on a definition from the specified XML Entity descriptor file. * @param entityName The entityName of the Entity definition to use. * @return An Entity object describing the specified entity of the specified descriptor file. */
Gets an Entity object based on a definition from the specified XML Entity descriptor file
getModelEntity
{ "repo_name": "yuri0x7c1/ofbiz-explorer", "path": "src/test/resources/apache-ofbiz-16.11.03/framework/entity/src/main/java/org/apache/ofbiz/entity/model/ModelReader.java", "license": "apache-2.0", "size": 33735 }
[ "java.util.Map", "org.apache.ofbiz.entity.GenericEntityConfException", "org.apache.ofbiz.entity.GenericEntityException", "org.apache.ofbiz.entity.GenericModelException" ]
import java.util.Map; import org.apache.ofbiz.entity.GenericEntityConfException; import org.apache.ofbiz.entity.GenericEntityException; import org.apache.ofbiz.entity.GenericModelException;
import java.util.*; import org.apache.ofbiz.entity.*;
[ "java.util", "org.apache.ofbiz" ]
java.util; org.apache.ofbiz;
1,575,121
public static <K extends Block,V extends K> V replaceBlock(K original, V block) { Map<Integer, IBlockState> builtStates = new HashMap<Integer, IBlockState>(); for (IBlockState original_state : (List<IBlockState>)original.getBlockState().getValidStates()) { int original_metadata = getBlockId(original...
static <K extends Block,V extends K> V function(K original, V block) { Map<Integer, IBlockState> builtStates = new HashMap<Integer, IBlockState>(); for (IBlockState original_state : (List<IBlockState>)original.getBlockState().getValidStates()) { int original_metadata = getBlockId(original) << 4 original.getMetaFromStat...
/** * Replaces an existing block with the given block. * <p> * Works best if the replacement block supports all the states of the one it is replacing. * @param original Original block to replace * @param block New block to insert * @param <K> The type of the block you are replacing *...
Replaces an existing block with the given block. Works best if the replacement block supports all the states of the one it is replacing
replaceBlock
{ "repo_name": "Sollace/BlazeLoader", "path": "src/main/com/blazeloader/api/block/ApiBlock.java", "license": "bsd-2-clause", "size": 13385 }
[ "com.blazeloader.util.version.Versions", "java.util.HashMap", "java.util.List", "java.util.Map", "net.minecraft.block.Block", "net.minecraft.block.state.IBlockState" ]
import com.blazeloader.util.version.Versions; import java.util.HashMap; import java.util.List; import java.util.Map; import net.minecraft.block.Block; import net.minecraft.block.state.IBlockState;
import com.blazeloader.util.version.*; import java.util.*; import net.minecraft.block.*; import net.minecraft.block.state.*;
[ "com.blazeloader.util", "java.util", "net.minecraft.block" ]
com.blazeloader.util; java.util; net.minecraft.block;
2,767,564
public void testInversePutItems() throws Exception { try { SCOMapTests.checkPutItems(pmf, Hashtable2.class, Hashtable2Item.class); } finally { clean(Hashtable2.class); ...
void function() throws Exception { try { SCOMapTests.checkPutItems(pmf, Hashtable2.class, Hashtable2Item.class); } finally { clean(Hashtable2.class); clean(Hashtable2Item.class); } }
/** * Test case to check the addition of a Map of elements. **/
Test case to check the addition of a Map of elements
testInversePutItems
{ "repo_name": "datanucleus/tests", "path": "jdo/identity/src/test/org/datanucleus/tests/types/HashtableTest.java", "license": "apache-2.0", "size": 11767 }
[ "org.datanucleus.samples.types.hashtable.Hashtable2", "org.datanucleus.samples.types.hashtable.Hashtable2Item" ]
import org.datanucleus.samples.types.hashtable.Hashtable2; import org.datanucleus.samples.types.hashtable.Hashtable2Item;
import org.datanucleus.samples.types.hashtable.*;
[ "org.datanucleus.samples" ]
org.datanucleus.samples;
1,580,993
public Indexer getIndexerForMediaType(String mimeType) { if (mimeType != null) { for (Map.Entry<String, Indexer> entry : registryConfig.getIndexerMap().entrySet()) { if (Pattern.matches(entry.getKey(), mimeType)) { return entry.getValue(); } ...
Indexer function(String mimeType) { if (mimeType != null) { for (Map.Entry<String, Indexer> entry : registryConfig.getIndexerMap().entrySet()) { if (Pattern.matches(entry.getKey(), mimeType)) { return entry.getValue(); } } } return null; }
/** * Method for get the pre-defined Indexer matches for the resource mediaType. * Reads the registry configurations for indexing in Registry.xml and check for Indexer with mediaType provided. * @param mimeType mediaType * @return Indexer */
Method for get the pre-defined Indexer matches for the resource mediaType. Reads the registry configurations for indexing in Registry.xml and check for Indexer with mediaType provided
getIndexerForMediaType
{ "repo_name": "thusithathilina/carbon-registry", "path": "components/registry/org.wso2.carbon.registry.indexing/src/main/java/org/wso2/carbon/registry/indexing/IndexingManager.java", "license": "apache-2.0", "size": 8522 }
[ "java.util.Map", "java.util.regex.Pattern", "org.wso2.carbon.registry.indexing.indexer.Indexer" ]
import java.util.Map; import java.util.regex.Pattern; import org.wso2.carbon.registry.indexing.indexer.Indexer;
import java.util.*; import java.util.regex.*; import org.wso2.carbon.registry.indexing.indexer.*;
[ "java.util", "org.wso2.carbon" ]
java.util; org.wso2.carbon;
1,506,342
public DeploymentMachineGroup getDeploymentMachineGroup( final UUID project, final int machineGroupId, final MachineGroupActionFilter actionFilter) { final UUID locationId = UUID.fromString("d4adf50f-80c6-4ac8-9ca1-6e4e544286e9"); //$NON-NLS-1$ final ApiResourceVersion ap...
DeploymentMachineGroup function( final UUID project, final int machineGroupId, final MachineGroupActionFilter actionFilter) { final UUID locationId = UUID.fromString(STR); final ApiResourceVersion apiVersion = new ApiResourceVersion(STR); final Map<String, Object> routeValues = new HashMap<String, Object>(); routeValue...
/** * [Preview API 3.1-preview.1] * * @param project * Project ID * @param machineGroupId * * @param actionFilter * * @return DeploymentMachineGroup */
[Preview API 3.1-preview.1]
getDeploymentMachineGroup
{ "repo_name": "Microsoft/vso-httpclient-java", "path": "Rest/alm-distributedtask-client/src/main/generated/com/microsoft/alm/teamfoundation/distributedtask/webapi/TaskAgentHttpClientBase.java", "license": "mit", "size": 129237 }
[ "com.microsoft.alm.client.HttpMethod", "com.microsoft.alm.client.VssMediaTypes", "com.microsoft.alm.client.VssRestRequest", "com.microsoft.alm.client.model.NameValueCollection", "com.microsoft.alm.teamfoundation.distributedtask.webapi.DeploymentMachineGroup", "com.microsoft.alm.teamfoundation.distributedt...
import com.microsoft.alm.client.HttpMethod; import com.microsoft.alm.client.VssMediaTypes; import com.microsoft.alm.client.VssRestRequest; import com.microsoft.alm.client.model.NameValueCollection; import com.microsoft.alm.teamfoundation.distributedtask.webapi.DeploymentMachineGroup; import com.microsoft.alm.teamfounda...
import com.microsoft.alm.client.*; import com.microsoft.alm.client.model.*; import com.microsoft.alm.teamfoundation.distributedtask.webapi.*; import com.microsoft.alm.visualstudio.services.webapi.*; import java.util.*;
[ "com.microsoft.alm", "java.util" ]
com.microsoft.alm; java.util;
602
public static ManaCost of(int colorless, Collection<Symbol> symbols) { if (colorless == 0 && symbols.isEmpty()) { return ZERO; } return new StandardManaCost( colorless, orderSymbols(TreeMultiset.create(symbols))); }
static ManaCost function(int colorless, Collection<Symbol> symbols) { if (colorless == 0 && symbols.isEmpty()) { return ZERO; } return new StandardManaCost( colorless, orderSymbols(TreeMultiset.create(symbols))); }
/** * Returns a new {@code ManaCost} with the given amount of colorless mana * and other mana symbols. If the {@link Collection} of symbols is empty and * the amount of colorless is zero, the zero mana cost is returned. */
Returns a new ManaCost with the given amount of colorless mana and other mana symbols. If the <code>Collection</code> of symbols is empty and the amount of colorless is zero, the zero mana cost is returned
of
{ "repo_name": "c0d3br34k3r/magic", "path": "src/magic/ManaCost.java", "license": "gpl-2.0", "size": 15865 }
[ "com.google.common.collect.TreeMultiset", "java.util.Collection" ]
import com.google.common.collect.TreeMultiset; import java.util.Collection;
import com.google.common.collect.*; import java.util.*;
[ "com.google.common", "java.util" ]
com.google.common; java.util;
890,590
void checkAttributeSyntax(PerunSession sess, Group group, Attribute attribute) throws WrongAttributeValueException, WrongAttributeAssignmentException;
void checkAttributeSyntax(PerunSession sess, Group group, Attribute attribute) throws WrongAttributeValueException, WrongAttributeAssignmentException;
/** * Check if value of this group attribute has valid syntax. * * @param sess perun session * @param group group for which you want to check validity of attribute * @param attribute attribute to check * * @throws InternalErrorException if an exception raise in concrete implementation, the exception is wr...
Check if value of this group attribute has valid syntax
checkAttributeSyntax
{ "repo_name": "zlamalp/perun", "path": "perun-core/src/main/java/cz/metacentrum/perun/core/bl/AttributesManagerBl.java", "license": "bsd-2-clause", "size": 244560 }
[ "cz.metacentrum.perun.core.api.Attribute", "cz.metacentrum.perun.core.api.Group", "cz.metacentrum.perun.core.api.PerunSession", "cz.metacentrum.perun.core.api.exceptions.WrongAttributeAssignmentException", "cz.metacentrum.perun.core.api.exceptions.WrongAttributeValueException" ]
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.WrongAttributeAssignmentException; import cz.metacentrum.perun.core.api.exceptions.WrongAttributeValueException;
import cz.metacentrum.perun.core.api.*; import cz.metacentrum.perun.core.api.exceptions.*;
[ "cz.metacentrum.perun" ]
cz.metacentrum.perun;
1,814,119
private void configureToggleCommentAction() { IAction action= getAction(IJavaEditorActionDefinitionIds.TOGGLE_COMMENT); if (action instanceof ToggleCommentAction) { ISourceViewer sourceViewer= getSourceViewer(); SourceViewerConfiguration configuration= getSourceViewerConfiguration(); ((ToggleCommentActi...
void function() { IAction action= getAction(IJavaEditorActionDefinitionIds.TOGGLE_COMMENT); if (action instanceof ToggleCommentAction) { ISourceViewer sourceViewer= getSourceViewer(); SourceViewerConfiguration configuration= getSourceViewerConfiguration(); ((ToggleCommentAction)action).configure(sourceViewer, configura...
/** * Configures the toggle comment action. * * @since 3.4 */
Configures the toggle comment action
configureToggleCommentAction
{ "repo_name": "brunyuriy/quick-fix-scout", "path": "org.eclipse.jdt.ui_3.7.1.r371_v20110824-0800/src/org/eclipse/jdt/internal/ui/propertiesfileeditor/PropertiesFileEditor.java", "license": "mit", "size": 8549 }
[ "org.eclipse.jdt.internal.ui.javaeditor.ToggleCommentAction", "org.eclipse.jdt.ui.actions.IJavaEditorActionDefinitionIds", "org.eclipse.jface.action.IAction", "org.eclipse.jface.text.source.ISourceViewer", "org.eclipse.jface.text.source.SourceViewerConfiguration" ]
import org.eclipse.jdt.internal.ui.javaeditor.ToggleCommentAction; import org.eclipse.jdt.ui.actions.IJavaEditorActionDefinitionIds; import org.eclipse.jface.action.IAction; import org.eclipse.jface.text.source.ISourceViewer; import org.eclipse.jface.text.source.SourceViewerConfiguration;
import org.eclipse.jdt.internal.ui.javaeditor.*; import org.eclipse.jdt.ui.actions.*; import org.eclipse.jface.action.*; import org.eclipse.jface.text.source.*;
[ "org.eclipse.jdt", "org.eclipse.jface" ]
org.eclipse.jdt; org.eclipse.jface;
637,550
public DataBufferDesc getDataBufferDesc( );
DataBufferDesc function( );
/** * Returns data buffer description object * * @return the data buffer description object */
Returns data buffer description object
getDataBufferDesc
{ "repo_name": "khomisha/dataservice", "path": "src/main/java/org/homedns/mkh/dataservice/client/view/ViewDesc.java", "license": "apache-2.0", "size": 1275 }
[ "org.homedns.mkh.dataservice.client.DataBufferDesc" ]
import org.homedns.mkh.dataservice.client.DataBufferDesc;
import org.homedns.mkh.dataservice.client.*;
[ "org.homedns.mkh" ]
org.homedns.mkh;
77,411
public void removeAllAppenders() { if(appenderList != null) { int len = appenderList.size(); for(int i = 0; i < len; i++) { Appender a = (Appender) appenderList.elementAt(i); a.close(); } appenderList.removeAllElements(); appenderList = null; } }
void function() { if(appenderList != null) { int len = appenderList.size(); for(int i = 0; i < len; i++) { Appender a = (Appender) appenderList.elementAt(i); a.close(); } appenderList.removeAllElements(); appenderList = null; } }
/** * Remove and close all previously attached appenders. * */
Remove and close all previously attached appenders
removeAllAppenders
{ "repo_name": "kikonen/log4j-share", "path": "src/main/java/org/apache/log4j/helpers/AppenderAttachableImpl.java", "license": "apache-2.0", "size": 4955 }
[ "org.apache.log4j.Appender" ]
import org.apache.log4j.Appender;
import org.apache.log4j.*;
[ "org.apache.log4j" ]
org.apache.log4j;
1,888,410
protected void updateProfileInformation(final ExtendedJSONObject profileJSON) { // View changes must always be done on UI thread. ThreadUtils.assertOnUiThread(); FxAccountUtils.pii(LOG_TAG, "Profile JSON is: " + profileJSON.toJSONString()); final String userName = profileJSON.getString(FxAccountCons...
void function(final ExtendedJSONObject profileJSON) { ThreadUtils.assertOnUiThread(); FxAccountUtils.pii(LOG_TAG, STR + profileJSON.toJSONString()); final String userName = profileJSON.getString(FxAccountConstants.KEY_PROFILE_JSON_USERNAME); if (!TextUtils.isEmpty(userName)) { profilePreference.setTitle(userName); prof...
/** * Update profile information from json on UI thread. * * @param profileJSON json fetched from server. */
Update profile information from json on UI thread
updateProfileInformation
{ "repo_name": "jrconlin/mc_backup", "path": "base/fxa/activities/FxAccountStatusFragment.java", "license": "mpl-2.0", "size": 38133 }
[ "android.text.TextUtils", "com.squareup.picasso.Picasso", "org.mozilla.gecko.AppConstants", "org.mozilla.gecko.background.common.log.Logger", "org.mozilla.gecko.background.fxa.FxAccountUtils", "org.mozilla.gecko.fxa.FxAccountConstants", "org.mozilla.gecko.sync.ExtendedJSONObject", "org.mozilla.gecko.u...
import android.text.TextUtils; import com.squareup.picasso.Picasso; import org.mozilla.gecko.AppConstants; import org.mozilla.gecko.background.common.log.Logger; import org.mozilla.gecko.background.fxa.FxAccountUtils; import org.mozilla.gecko.fxa.FxAccountConstants; import org.mozilla.gecko.sync.ExtendedJSONObject; imp...
import android.text.*; import com.squareup.picasso.*; import org.mozilla.gecko.*; import org.mozilla.gecko.background.common.log.*; import org.mozilla.gecko.background.fxa.*; import org.mozilla.gecko.fxa.*; import org.mozilla.gecko.sync.*; import org.mozilla.gecko.util.*;
[ "android.text", "com.squareup.picasso", "org.mozilla.gecko" ]
android.text; com.squareup.picasso; org.mozilla.gecko;
2,097,050
public Rect getFrameSize() { return frameSize; }
Rect function() { return frameSize; }
/** * Frame size in twips. * * @return frame size */
Frame size in twips
getFrameSize
{ "repo_name": "adufilie/flex-falcon", "path": "compiler/src/org/apache/flex/swf/Header.java", "license": "apache-2.0", "size": 6015 }
[ "org.apache.flex.swf.types.Rect" ]
import org.apache.flex.swf.types.Rect;
import org.apache.flex.swf.types.*;
[ "org.apache.flex" ]
org.apache.flex;
1,953,043
//#ifdef JAVA4 public synchronized Array getArray( String parameterName) throws SQLException { return getArray(findParameterIndex(parameterName)); } //#endif JAVA4
synchronized Array function( String parameterName) throws SQLException { return getArray(findParameterIndex(parameterName)); }
/** * <!-- start generic documentation --> * * Retrieves the value of a JDBC <code>ARRAY</code> parameter as an * {@link java.sql.Array} object in the Java programming language. * * <!-- end generic documentation --> * * <!-- start release-specific documentation --> * <div c...
Retrieves the value of a JDBC <code>ARRAY</code> parameter as an <code>java.sql.Array</code> object in the Java programming language. HSQLDB-Specific Information: HSQLDB supports this feature.
getArray
{ "repo_name": "ThangBK2009/android-source-browsing.platform--external--hsqldb", "path": "src/org/hsqldb/jdbc/JDBCCallableStatement.java", "license": "bsd-3-clause", "size": 188340 }
[ "java.sql.Array", "java.sql.SQLException" ]
import java.sql.Array; import java.sql.SQLException;
import java.sql.*;
[ "java.sql" ]
java.sql;
858,435
protected void visitTokenHook(DetailAST ast) { // no code }
void function(DetailAST ast) { }
/** * Hook called when visiting a token. Will not be called the method * definition tokens. * * @param ast the token being visited */
Hook called when visiting a token. Will not be called the method definition tokens
visitTokenHook
{ "repo_name": "Godin/checkstyle", "path": "src/main/java/com/puppycrawl/tools/checkstyle/checks/metrics/AbstractComplexityCheck.java", "license": "lgpl-2.1", "size": 5511 }
[ "com.puppycrawl.tools.checkstyle.api.DetailAST" ]
import com.puppycrawl.tools.checkstyle.api.DetailAST;
import com.puppycrawl.tools.checkstyle.api.*;
[ "com.puppycrawl.tools" ]
com.puppycrawl.tools;
1,611,309
@SuppressWarnings("unused") @Override protected void formInnerEvent(final UserRequest ureq, final FormItem source, final FormEvent event) { if (source instanceof FormLink) { final FormLink link = (FormLink) source; if (link.getName().startsWith(TAG_CMP_IDENTIFIER)) { ...
@SuppressWarnings(STR) void function(final UserRequest ureq, final FormItem source, final FormEvent event) { if (source instanceof FormLink) { final FormLink link = (FormLink) source; if (link.getName().startsWith(TAG_CMP_IDENTIFIER)) { final String selectedTag = (String) link.getUserObject(); if (!selectedTagsList.con...
/** * org.olat.presentation.framework.components.form.flexible.FormItem, org.olat.presentation.framework.components.form.flexible.impl.FormEvent) */
org.olat.presentation.framework.components.form.flexible.FormItem, org.olat.presentation.framework.components.form.flexible.impl.FormEvent)
formInnerEvent
{ "repo_name": "huihoo/olat", "path": "OLAT-LMS/src/main/java/org/olat/presentation/portfolio/filter/PortfolioFilterController.java", "license": "apache-2.0", "size": 29821 }
[ "java.util.ArrayList", "java.util.Date", "java.util.List", "org.olat.data.portfolio.artefact.EPFilterSettings", "org.olat.presentation.framework.core.UserRequest", "org.olat.presentation.framework.core.components.form.flexible.FormItem", "org.olat.presentation.framework.core.components.form.flexible.ele...
import java.util.ArrayList; import java.util.Date; import java.util.List; import org.olat.data.portfolio.artefact.EPFilterSettings; import org.olat.presentation.framework.core.UserRequest; import org.olat.presentation.framework.core.components.form.flexible.FormItem; import org.olat.presentation.framework.core.componen...
import java.util.*; import org.olat.data.portfolio.artefact.*; import org.olat.presentation.framework.core.*; import org.olat.presentation.framework.core.components.form.flexible.*; import org.olat.presentation.framework.core.components.form.flexible.elements.*; import org.olat.presentation.framework.core.components.fo...
[ "java.util", "org.olat.data", "org.olat.presentation", "org.olat.system" ]
java.util; org.olat.data; org.olat.presentation; org.olat.system;
729,514
@Generated @Selector("mattingImage") public native CVBufferRef mattingImage();
@Selector(STR) native CVBufferRef function();
/** * [@property] mattingImage * <p> * Provides access to the portrait effects matte's internal image. * <p> * The pixel format can be queried using the pixelFormatType property. */
[@property] mattingImage Provides access to the portrait effects matte's internal image. The pixel format can be queried using the pixelFormatType property
mattingImage
{ "repo_name": "multi-os-engine/moe-core", "path": "moe.apple/moe.platform.ios/src/main/java/apple/avfoundation/AVPortraitEffectsMatte.java", "license": "apache-2.0", "size": 10171 }
[ "org.moe.natj.objc.ann.Selector" ]
import org.moe.natj.objc.ann.Selector;
import org.moe.natj.objc.ann.*;
[ "org.moe.natj" ]
org.moe.natj;
1,606,827
public static java.util.Set extractPatientElectiveListSet(ims.domain.ILightweightDomainFactory domainFactory, ims.careuk.vo.PatientElectiveListForCancelAppointmentVoCollection voCollection) { return extractPatientElectiveListSet(domainFactory, voCollection, null, new HashMap()); }
static java.util.Set function(ims.domain.ILightweightDomainFactory domainFactory, ims.careuk.vo.PatientElectiveListForCancelAppointmentVoCollection voCollection) { return extractPatientElectiveListSet(domainFactory, voCollection, null, new HashMap()); }
/** * Create the ims.careuk.domain.objects.PatientElectiveList set from the value object collection. * @param domainFactory - used to create existing (persistent) domain objects. * @param voCollection - the collection of value objects */
Create the ims.careuk.domain.objects.PatientElectiveList set from the value object collection
extractPatientElectiveListSet
{ "repo_name": "open-health-hub/openmaxims-linux", "path": "openmaxims_workspace/ValueObjects/src/ims/careuk/vo/domain/PatientElectiveListForCancelAppointmentVoAssembler.java", "license": "agpl-3.0", "size": 18262 }
[ "java.util.HashMap" ]
import java.util.HashMap;
import java.util.*;
[ "java.util" ]
java.util;
1,621,745
public Dimension preferredLayoutSize(Container target) { synchronized (target.getTreeLock()) { Dimension dim = new Dimension(0, 0); int nmembers = target.getComponentCount(); Boolean firstVisibleComponent = true; for (int i = 0; i < nmembers; i++) { ...
Dimension function(Container target) { synchronized (target.getTreeLock()) { Dimension dim = new Dimension(0, 0); int nmembers = target.getComponentCount(); Boolean firstVisibleComponent = true; for (int i = 0; i < nmembers; i++) { Component m = target.getComponent(i); if (m.isVisible()) { Dimension d = m.getPreferredS...
/** * Returns the preferred dimensions for this layout given the * <i>visible</i> components in the specified target container. * * @param target the component which needs to be laid out * @return the preferred dimensions to lay out the * subcomponents of the specified contai...
Returns the preferred dimensions for this layout given the visible components in the specified target container
preferredLayoutSize
{ "repo_name": "fanruan/finereport-design", "path": "designer_base/src/com/fr/design/layout/VerticalFlowLayout.java", "license": "gpl-3.0", "size": 14914 }
[ "java.awt.Component", "java.awt.Container", "java.awt.Dimension", "java.awt.Insets" ]
import java.awt.Component; import java.awt.Container; import java.awt.Dimension; import java.awt.Insets;
import java.awt.*;
[ "java.awt" ]
java.awt;
1,868,684
public Extension[] findRequired() { // Initialize the results with our local required extensions ArrayList results = new ArrayList(); Iterator required = this.required.iterator(); while (required.hasNext()) results.add(required.next()); // Trace our parentage tr...
Extension[] function() { ArrayList results = new ArrayList(); Iterator required = this.required.iterator(); while (required.hasNext()) results.add(required.next()); ClassLoader loader = this; while (true) { loader = loader.getParent(); if (loader == null) break; if (!(loader instanceof StandardClassLoader)) continue; E...
/** * Return a list of "optional packages" (formerly "standard extensions") * that have been declared to be required in the repositories associated * with this class loader, plus any parent class loader implemented with * the same class. */
Return a list of "optional packages" (formerly "standard extensions") that have been declared to be required in the repositories associated with this class loader, plus any parent class loader implemented with the same class
findRequired
{ "repo_name": "devjin24/howtomcatworks", "path": "bookrefer/jakarta-tomcat-4.1.12-src/catalina/src/share/org/apache/catalina/loader/StandardClassLoader.java", "license": "apache-2.0", "size": 39367 }
[ "java.util.ArrayList", "java.util.Iterator" ]
import java.util.ArrayList; import java.util.Iterator;
import java.util.*;
[ "java.util" ]
java.util;
1,646,376
void close(boolean err) throws IOException;
void close(boolean err) throws IOException;
/** * Closes the block device. * @param err True if the stream failed and only cleanup should happen. * @throws IOException If any error occurred. */
Closes the block device
close
{ "repo_name": "gunmetal313/TruPax", "path": "src/main/java/coderslagoon/baselib/io/BlockDevice.java", "license": "gpl-3.0", "size": 2984 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
2,753,568
private void doDelete(HttpServletRequest request, String distPrefId) { Transaction tx = null; try { DistributionPrefDAO dpDao = new DistributionPrefDAO(); org.hibernate.Session hibSession = dpDao.getSession(); tx = hibSession.getTransaction(...
void function(HttpServletRequest request, String distPrefId) { Transaction tx = null; try { DistributionPrefDAO dpDao = new DistributionPrefDAO(); org.hibernate.Session hibSession = dpDao.getSession(); tx = hibSession.getTransaction(); if (tx==null !tx.isActive()) tx = hibSession.beginTransaction(); HashSet relatedInst...
/** * Delete distribution pref * @param distPrefId */
Delete distribution pref
doDelete
{ "repo_name": "zuzanamullerova/unitime", "path": "JavaSource/org/unitime/timetable/action/DistributionPrefsAction.java", "license": "apache-2.0", "size": 40357 }
[ "java.util.HashSet", "java.util.Iterator", "javax.servlet.http.HttpServletRequest", "org.hibernate.Transaction", "org.unitime.commons.Debug", "org.unitime.timetable.model.ChangeLog", "org.unitime.timetable.model.Department", "org.unitime.timetable.model.DistributionObject", "org.unitime.timetable.mo...
import java.util.HashSet; import java.util.Iterator; import javax.servlet.http.HttpServletRequest; import org.hibernate.Transaction; import org.unitime.commons.Debug; import org.unitime.timetable.model.ChangeLog; import org.unitime.timetable.model.Department; import org.unitime.timetable.model.DistributionObject; impor...
import java.util.*; import javax.servlet.http.*; import org.hibernate.*; import org.unitime.commons.*; import org.unitime.timetable.model.*; import org.unitime.timetable.model.dao.*; import org.unitime.timetable.security.rights.*;
[ "java.util", "javax.servlet", "org.hibernate", "org.unitime.commons", "org.unitime.timetable" ]
java.util; javax.servlet; org.hibernate; org.unitime.commons; org.unitime.timetable;
485,555
private void removeOldFragmentByTag(String tag) { LogUtils.i(TAG, "<removeOldFragmentByTag> tag = " + tag); FragmentManager fragmentManager = getFragmentManager(); LogUtils.i(TAG, "<removeOldFragmentByTag> fragmentManager = " + fragmentManager); DialogFragment oldFragment = (DialogFr...
void function(String tag) { LogUtils.i(TAG, STR + tag); FragmentManager fragmentManager = getFragmentManager(); LogUtils.i(TAG, STR + fragmentManager); DialogFragment oldFragment = (DialogFragment) fragmentManager.findFragmentByTag(tag); LogUtils.i(TAG, STR + oldFragment); if (null != oldFragment) { oldFragment.dismiss...
/** * remove old DialogFragment * * @param tag * the tag of DialogFragment to be removed */
remove old DialogFragment
removeOldFragmentByTag
{ "repo_name": "rex-xxx/mt6572_x201", "path": "packages/apps/SoundRecorder/src/com/android/soundrecorder/RecordingFileList.java", "license": "gpl-2.0", "size": 30682 }
[ "android.app.DialogFragment", "android.app.FragmentManager" ]
import android.app.DialogFragment; import android.app.FragmentManager;
import android.app.*;
[ "android.app" ]
android.app;
2,390,406
public void selectAPhoto(){ Intent intent = new Intent(Intent.ACTION_PICK); intent.setType("image/*"); startActivityForResult(intent, GALLERY_IMAGE_ACTIVITY_REQUEST_CODE); }
void function(){ Intent intent = new Intent(Intent.ACTION_PICK); intent.setType(STR); startActivityForResult(intent, GALLERY_IMAGE_ACTIVITY_REQUEST_CODE); }
/** * Takes the user to the gallery where a previously taken photo can * be selected for use. */
Takes the user to the gallery where a previously taken photo can be selected for use
selectAPhoto
{ "repo_name": "CMPUT301F12T13/classproject", "path": "Project/TaskMan/src/ca/cmput301/team13/taskman/ui/ImageCaptureActivity.java", "license": "gpl-3.0", "size": 8726 }
[ "android.content.Intent" ]
import android.content.Intent;
import android.content.*;
[ "android.content" ]
android.content;
2,865,030
public AnimationBuilder animateScaleAndCenter(float scale, PointF sCenter) { if (!isReady()) { return null; } return new AnimationBuilder(scale, sCenter); } public final class AnimationBuilder { private final float targetScale; private final PointF ...
AnimationBuilder function(float scale, PointF sCenter) { if (!isReady()) { return null; } return new AnimationBuilder(scale, sCenter); } public final class AnimationBuilder { private final float targetScale; private final PointF targetSCenter; private final PointF vFocus; private long duration = 500; private int easing...
/** * Creates a scale animation builder, that when started will animate a zoom in or out. If this would move the image * beyond the panning limits, the image is automatically panned during the animation. * * @param scale Target scale. * @return {@link AnimationBuilder} instance. Call {@link Sub...
Creates a scale animation builder, that when started will animate a zoom in or out. If this would move the image beyond the panning limits, the image is automatically panned during the animation
animateScaleAndCenter
{ "repo_name": "Deadleg/Slide", "path": "app/src/main/java/me/ccrama/redditslide/Views/SubsamplingScaleImageView.java", "license": "gpl-3.0", "size": 122096 }
[ "android.graphics.PointF" ]
import android.graphics.PointF;
import android.graphics.*;
[ "android.graphics" ]
android.graphics;
163,659
public void setupReconnectJob() { try { // String cronPattern = "0 0 0 * * ?"; //every day // String cronPattern = "0 * * * * ?"; //every minute String cronPattern = "0 0 0/2 * * ?"; // every 2 hrs Scheduler sched = StdSchedulerFactory.getDefaultScheduler...
void function() { try { String cronPattern = STR; Scheduler sched = StdSchedulerFactory.getDefaultScheduler(); JobKey jobKey = jobKey(STR, STR); TriggerKey triggerKey = triggerKey(STR, STR); if (sched.checkExists(jobKey)) { logger.debug(STR); } else { CronScheduleBuilder scheduleBuilder = CronScheduleBuilder.cronSchedu...
/** * Reset the connection to fbox periodically. */
Reset the connection to fbox periodically
setupReconnectJob
{ "repo_name": "computergeek1507/openhab", "path": "bundles/binding/org.openhab.binding.fritzboxtr064/src/main/java/org/openhab/binding/fritzboxtr064/internal/CallMonitor.java", "license": "epl-1.0", "size": 17731 }
[ "org.quartz.CronScheduleBuilder", "org.quartz.CronTrigger", "org.quartz.JobBuilder", "org.quartz.JobDetail", "org.quartz.JobKey", "org.quartz.Scheduler", "org.quartz.SchedulerException", "org.quartz.TriggerBuilder", "org.quartz.TriggerKey", "org.quartz.impl.StdSchedulerFactory" ]
import org.quartz.CronScheduleBuilder; import org.quartz.CronTrigger; import org.quartz.JobBuilder; import org.quartz.JobDetail; import org.quartz.JobKey; import org.quartz.Scheduler; import org.quartz.SchedulerException; import org.quartz.TriggerBuilder; import org.quartz.TriggerKey; import org.quartz.impl.StdSchedule...
import org.quartz.*; import org.quartz.impl.*;
[ "org.quartz", "org.quartz.impl" ]
org.quartz; org.quartz.impl;
1,312,582
public void setCalleeName(String calleeName) { Preconditions.checkState(this.calleeName == null); Preconditions.checkArgument(BaseUtils.isDottedIdentifier(calleeName)); this.calleeName = calleeName; }
void function(String calleeName) { Preconditions.checkState(this.calleeName == null); Preconditions.checkArgument(BaseUtils.isDottedIdentifier(calleeName)); this.calleeName = calleeName; }
/** * Sets the full name of the template being called (must not be a partial name). * @param calleeName The full name of the template being called. */
Sets the full name of the template being called (must not be a partial name)
setCalleeName
{ "repo_name": "atul-bhouraskar/closure-templates", "path": "java/src/com/google/template/soy/soytree/CallBasicNode.java", "license": "apache-2.0", "size": 10662 }
[ "com.google.common.base.Preconditions", "com.google.template.soy.base.internal.BaseUtils" ]
import com.google.common.base.Preconditions; import com.google.template.soy.base.internal.BaseUtils;
import com.google.common.base.*; import com.google.template.soy.base.internal.*;
[ "com.google.common", "com.google.template" ]
com.google.common; com.google.template;
1,685,826
public static Long findMaximumExecutionTime( List<Long> data) { logger.info("Entering findMaximum method"); // Local variables Long lMax = null; // Iterate through the list and find the maximum value for (Long item: data) { if (lMax == null) { lMax = item; } else { lMax = (lMax >= it...
static Long function( List<Long> data) { logger.info(STR); Long lMax = null; for (Long item: data) { if (lMax == null) { lMax = item; } else { lMax = (lMax >= item) ? lMax : item; } } logger.info(STR); return lMax; }
/** * Returning the largest value from a list of Long-s * @param data A list storing Long values * @return The largest entry in the list */
Returning the largest value from a list of Long-s
findMaximumExecutionTime
{ "repo_name": "ideepakkrishnan/MapReduce", "path": "weatherData/src/main/java/com/neu/pdp/resources/Util.java", "license": "mit", "size": 5950 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,331,824
public void setLeft(int left, IMethodResult result) { Logger.D(LOGTAG, "setLeft+"); if (left >= 0) { //TODO check max left currentProperties.left = left; if(currentSignature != null) currentSignature.setLeft(left); } else result.setError("Invalid left value"); Logger.D(LOGTAG, "setLeft-"); }
void function(int left, IMethodResult result) { Logger.D(LOGTAG, STR); if (left >= 0) { currentProperties.left = left; if(currentSignature != null) currentSignature.setLeft(left); } else result.setError(STR); Logger.D(LOGTAG, STR); }
/** * Sets the left. Errors if it is lower than 0 * @author Ben Kennedy (NCVT73) */
Sets the left. Errors if it is lower than 0
setLeft
{ "repo_name": "tauplatform/tau", "path": "lib/commonAPI/signature/ext/platform/android/src/com/rho/signature/SignatureSingleton.java", "license": "mit", "size": 21137 }
[ "com.rhomobile.rhodes.Logger", "com.rhomobile.rhodes.api.IMethodResult" ]
import com.rhomobile.rhodes.Logger; import com.rhomobile.rhodes.api.IMethodResult;
import com.rhomobile.rhodes.*; import com.rhomobile.rhodes.api.*;
[ "com.rhomobile.rhodes" ]
com.rhomobile.rhodes;
1,795,741
public void readObject (FrameworkInputStream stream) throws IOException { instrumentUniqueId = stream.readLong (); entry = stream.readBoolean (); number = stream.readInt (); checkStart = stream.readBoolean (); }
void function (FrameworkInputStream stream) throws IOException { instrumentUniqueId = stream.readLong (); entry = stream.readBoolean (); number = stream.readInt (); checkStart = stream.readBoolean (); }
/** * Read the attributes from the a stream. * * @param stream The stream to read from. */
Read the attributes from the a stream
readObject
{ "repo_name": "grappendorf/openmetix", "path": "plugin/metix-client/src/java/de/iritgo/openmetix/client/key/KeyCheckResponse.java", "license": "gpl-2.0", "size": 3189 }
[ "de.iritgo.openmetix.framework.base.action.FrameworkInputStream", "java.io.IOException" ]
import de.iritgo.openmetix.framework.base.action.FrameworkInputStream; import java.io.IOException;
import de.iritgo.openmetix.framework.base.action.*; import java.io.*;
[ "de.iritgo.openmetix", "java.io" ]
de.iritgo.openmetix; java.io;
1,894,142
public Component getComponent() { return this; }
Component function() { return this; }
/** * Returns reference to this menu bar * * @return reference to this menu bar */
Returns reference to this menu bar
getComponent
{ "repo_name": "taciano-perez/JamVM-PH", "path": "src/classpath/javax/swing/JMenuBar.java", "license": "gpl-2.0", "size": 19985 }
[ "java.awt.Component" ]
import java.awt.Component;
import java.awt.*;
[ "java.awt" ]
java.awt;
1,095,319
public static byte[] toByteArray(URLConnection urlConn) throws IOException { InputStream inputStream = urlConn.getInputStream(); try { return IOUtil.toByteArray(inputStream); } finally { inputStream.close(); } } // read char[] //------------------...
static byte[] function(URLConnection urlConn) throws IOException { InputStream inputStream = urlConn.getInputStream(); try { return IOUtil.toByteArray(inputStream); } finally { inputStream.close(); } }
/** * Get the contents of a <code>URLConnection</code> as a <code>byte[]</code>. * * @param urlConn the <code>URLConnection</code> to read * @return the requested byte array * @throws NullPointerException if the urlConn is null * @throws IOException if an I/O exception occurs * @sinc...
Get the contents of a <code>URLConnection</code> as a <code>byte[]</code>
toByteArray
{ "repo_name": "solaris0403/SeleneDemo", "path": "common_lib/src/main/java/com/tony/selene/common/trinea/android/common/io/IOUtil.java", "license": "gpl-2.0", "size": 95443 }
[ "java.io.IOException", "java.io.InputStream", "java.net.URLConnection" ]
import java.io.IOException; import java.io.InputStream; import java.net.URLConnection;
import java.io.*; import java.net.*;
[ "java.io", "java.net" ]
java.io; java.net;
347,727
FieldControl getControl();
FieldControl getControl();
/** * Returns the constraint's {@link FieldControl}-object. */
Returns the constraint's <code>FieldControl</code>-object
getControl
{ "repo_name": "mgmik/jfunk", "path": "jfunk-data-generator/src/main/java/com/mgmtp/jfunk/data/generator/constraint/Constraint.java", "license": "apache-2.0", "size": 4206 }
[ "com.mgmtp.jfunk.data.generator.control.FieldControl" ]
import com.mgmtp.jfunk.data.generator.control.FieldControl;
import com.mgmtp.jfunk.data.generator.control.*;
[ "com.mgmtp.jfunk" ]
com.mgmtp.jfunk;
1,995,612
private RawLogFile generateLogFile(Path testFile) { Path jalangilogger = SoundnessTesterOptions.getJalangiLogger(); Optional<Integer> explicitTimeLimit = Options.get().getSoundnessTesterOptions().getTimeLimitExplicitly(); Optional<Integer> explicitInstrumentationTimeLimit = Options.get().get...
RawLogFile function(Path testFile) { Path jalangilogger = SoundnessTesterOptions.getJalangiLogger(); Optional<Integer> explicitTimeLimit = Options.get().getSoundnessTesterOptions().getTimeLimitExplicitly(); Optional<Integer> explicitInstrumentationTimeLimit = Options.get().getSoundnessTesterOptions().getInstrumentation...
/** * Generates log file for the given JavaScript application, using jalangilogger with an appropriate environment (Node.js / default browser / etc.). */
Generates log file for the given JavaScript application, using jalangilogger with an appropriate environment (Node.js / default browser / etc.)
generateLogFile
{ "repo_name": "cs-au-dk/TAJS", "path": "src/dk/brics/tajs/monitoring/soundness/LogFileHelper.java", "license": "apache-2.0", "size": 24306 }
[ "dk.au.cs.casa.jer.Logger", "dk.au.cs.casa.jer.RawLogFile", "dk.brics.tajs.options.Options", "dk.brics.tajs.options.SoundnessTesterOptions", "dk.brics.tajs.options.TAJSEnvironmentConfig", "java.io.IOException", "java.nio.file.Path", "java.nio.file.Paths", "java.util.List", "java.util.Optional", ...
import dk.au.cs.casa.jer.Logger; import dk.au.cs.casa.jer.RawLogFile; import dk.brics.tajs.options.Options; import dk.brics.tajs.options.SoundnessTesterOptions; import dk.brics.tajs.options.TAJSEnvironmentConfig; import java.io.IOException; import java.nio.file.Path; import java.nio.file.Paths; import java.util.List; i...
import dk.au.cs.casa.jer.*; import dk.brics.tajs.options.*; import java.io.*; import java.nio.file.*; import java.util.*;
[ "dk.au.cs", "dk.brics.tajs", "java.io", "java.nio", "java.util" ]
dk.au.cs; dk.brics.tajs; java.io; java.nio; java.util;
174,122
private void handleGM(final TokenizedLine tokenLine, final double timestamp, final int number, final int bus) throws SRCPUnsufficientDataException, NumberFormatException, SRCPWrongValueException { if (number == INFO_SET) { final int sendTo = tokenLine.nextIntToken(); final int replyTo = tokenLine.n...
void function(final TokenizedLine tokenLine, final double timestamp, final int number, final int bus) throws SRCPUnsufficientDataException, NumberFormatException, SRCPWrongValueException { if (number == INFO_SET) { final int sendTo = tokenLine.nextIntToken(); final int replyTo = tokenLine.nextIntToken(); final String m...
/** * Handles GM Messages, calls all registered GMInfoListeners. * * @param tokenLine * @param timestamp * @param number * @param bus * @throws SRCPUnsufficientDataException * @throws NumberFormatException * @throws SRCPWrongValueException */
Handles GM Messages, calls all registered GMInfoListeners
handleGM
{ "repo_name": "forkch/adhoc-railway", "path": "jsrcpc-lib/src/main/java/de/dermoba/srcp/client/InfoChannel.java", "license": "gpl-3.0", "size": 17867 }
[ "de.dermoba.srcp.common.TokenizedLine", "de.dermoba.srcp.common.exception.SRCPUnsufficientDataException", "de.dermoba.srcp.common.exception.SRCPWrongValueException", "de.dermoba.srcp.devices.listener.GMInfoListener" ]
import de.dermoba.srcp.common.TokenizedLine; import de.dermoba.srcp.common.exception.SRCPUnsufficientDataException; import de.dermoba.srcp.common.exception.SRCPWrongValueException; import de.dermoba.srcp.devices.listener.GMInfoListener;
import de.dermoba.srcp.common.*; import de.dermoba.srcp.common.exception.*; import de.dermoba.srcp.devices.listener.*;
[ "de.dermoba.srcp" ]
de.dermoba.srcp;
1,032,601
Node createSingleLetNameDeclaration(String variableName) { return IR.let(createName(variableName, JSTypeNative.VOID_TYPE)); }
Node createSingleLetNameDeclaration(String variableName) { return IR.let(createName(variableName, JSTypeNative.VOID_TYPE)); }
/** * Creates a new `let` declaration for a single variable name with a void type and no JSDoc. * * <p>e.g. `let variableName` */
Creates a new `let` declaration for a single variable name with a void type and no JSDoc. e.g. `let variableName`
createSingleLetNameDeclaration
{ "repo_name": "vobruba-martin/closure-compiler", "path": "src/com/google/javascript/jscomp/AstFactory.java", "license": "apache-2.0", "size": 40914 }
[ "com.google.javascript.rhino.IR", "com.google.javascript.rhino.Node", "com.google.javascript.rhino.jstype.JSTypeNative" ]
import com.google.javascript.rhino.IR; import com.google.javascript.rhino.Node; import com.google.javascript.rhino.jstype.JSTypeNative;
import com.google.javascript.rhino.*; import com.google.javascript.rhino.jstype.*;
[ "com.google.javascript" ]
com.google.javascript;
2,224,198
@ServiceMethod(returns = ReturnType.SINGLE) private Mono<Response<Flux<ByteBuffer>>> refreshWithResponseAsync( String resourceGroupName, String factoryName, String integrationRuntimeName, Context context) { if (this.client.getEndpoint() == null) { return Mono .error( ...
@ServiceMethod(returns = ReturnType.SINGLE) Mono<Response<Flux<ByteBuffer>>> function( String resourceGroupName, String factoryName, String integrationRuntimeName, Context context) { if (this.client.getEndpoint() == null) { return Mono .error( new IllegalArgumentException( STR)); } if (this.client.getSubscriptionId() =...
/** * Refresh a SSIS integration runtime object metadata. * * @param resourceGroupName The resource group name. * @param factoryName The factory name. * @param integrationRuntimeName The integration runtime name. * @param context The context to associate with this operation. * @throws...
Refresh a SSIS integration runtime object metadata
refreshWithResponseAsync
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/IntegrationRuntimeObjectMetadatasClientImpl.java", "license": "mit", "size": 30158 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.http.rest.Response", "com.azure.core.util.Context", "java.nio.ByteBuffer" ]
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 java.nio.ByteBuffer;
import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.core.util.*; import java.nio.*;
[ "com.azure.core", "java.nio" ]
com.azure.core; java.nio;
438,905
String calculateUnion(Collection<FlatGeometry> entities);
String calculateUnion(Collection<FlatGeometry> entities);
/** * calculates the geometry resulting from the union of the geometries in * param. * * @param entities: * Collection of FlatGeometry to calculate Union. * @return WKT string */
calculates the geometry resulting from the union of the geometries in param
calculateUnion
{ "repo_name": "geowe/geowe-geometry-service", "path": "src/main/java/org/geowe/service/geometry/engine/GeoEngineer.java", "license": "apache-2.0", "size": 5970 }
[ "java.util.Collection", "org.geowe.service.model.FlatGeometry" ]
import java.util.Collection; import org.geowe.service.model.FlatGeometry;
import java.util.*; import org.geowe.service.model.*;
[ "java.util", "org.geowe.service" ]
java.util; org.geowe.service;
206,802
public String toString(int indentFactor) throws JSONException { StringWriter w = new StringWriter(); synchronized (w.getBuffer()) { return this.write(w, indentFactor, 0).toString(); } }
String function(int indentFactor) throws JSONException { StringWriter w = new StringWriter(); synchronized (w.getBuffer()) { return this.write(w, indentFactor, 0).toString(); } }
/** * Make a prettyprinted JSON text of this JSONObject. * <p> * Warning: This method assumes that the data structure is acyclical. * * @param indentFactor * The number of spaces to add to each level of indentation. * @return a printable, displayable, portable, transmittabl...
Make a prettyprinted JSON text of this JSONObject. Warning: This method assumes that the data structure is acyclical
toString
{ "repo_name": "Sixstring982/ggj2015", "path": "src/org/json/JSONObject.java", "license": "gpl-2.0", "size": 57492 }
[ "java.io.StringWriter" ]
import java.io.StringWriter;
import java.io.*;
[ "java.io" ]
java.io;
1,361,811
public BigDecimal getFreightAmt () { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_FreightAmt); if (bd == null) return Env.ZERO; return bd; }
BigDecimal function () { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_FreightAmt); if (bd == null) return Env.ZERO; return bd; }
/** Get Freight Amount. @return Freight Amount */
Get Freight Amount
getFreightAmt
{ "repo_name": "arthurmelo88/palmetalADP", "path": "adempiere_360/base/src/org/compiere/model/X_I_Order.java", "license": "gpl-2.0", "size": 33274 }
[ "java.math.BigDecimal", "org.compiere.util.Env" ]
import java.math.BigDecimal; import org.compiere.util.Env;
import java.math.*; import org.compiere.util.*;
[ "java.math", "org.compiere.util" ]
java.math; org.compiere.util;
747,915
@Test public void doServeResourceCachedContentReplayHeadersTest() throws PortletException, IOException, PortletContainerException { MockHttpServletRequest request = new MockHttpServletRequest(); MockHttpServletResponse response = new MockHttpServletResponse(); TestingCacheSta...
void function() throws PortletException, IOException, PortletContainerException { MockHttpServletRequest request = new MockHttpServletRequest(); MockHttpServletResponse response = new MockHttpServletResponse(); TestingCacheState<CachedPortletResourceData<Long>, Long> cacheState = new TestingCacheState<CachedPortletReso...
/** * Verify headers stored in cache are replayed on the response for cached doServeResource * content. * * @throws PortletContainerException * @throws IOException * @throws PortletException */
Verify headers stored in cache are replayed on the response for cached doServeResource content
doServeResourceCachedContentReplayHeadersTest
{ "repo_name": "jhelmer-unicon/uPortal", "path": "uportal-war/src/test/java/org/apereo/portal/portlet/rendering/PortletRendererImplTest.java", "license": "apache-2.0", "size": 47152 }
[ "com.google.common.collect.ImmutableMap", "java.io.IOException", "java.io.Serializable", "java.util.Arrays", "java.util.List", "java.util.Map", "javax.portlet.CacheControl", "javax.portlet.PortletException", "junit.framework.Assert", "org.apache.pluto.container.PortletContainerException", "org.a...
import com.google.common.collect.ImmutableMap; import java.io.IOException; import java.io.Serializable; import java.util.Arrays; import java.util.List; import java.util.Map; import javax.portlet.CacheControl; import javax.portlet.PortletException; import junit.framework.Assert; import org.apache.pluto.container.Portlet...
import com.google.common.collect.*; import java.io.*; import java.util.*; import javax.portlet.*; import junit.framework.*; import org.apache.pluto.container.*; import org.apereo.portal.portlet.container.cache.*; import org.junit.*; import org.mockito.*; import org.springframework.mock.web.*;
[ "com.google.common", "java.io", "java.util", "javax.portlet", "junit.framework", "org.apache.pluto", "org.apereo.portal", "org.junit", "org.mockito", "org.springframework.mock" ]
com.google.common; java.io; java.util; javax.portlet; junit.framework; org.apache.pluto; org.apereo.portal; org.junit; org.mockito; org.springframework.mock;
2,512,304
public Output<T> output() { return output; }
Output<T> function() { return output; }
/** * Gets output. * * @return output. */
Gets output
output
{ "repo_name": "tensorflow/java", "path": "tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/XlaRecvFromHost.java", "license": "apache-2.0", "size": 3950 }
[ "org.tensorflow.Output" ]
import org.tensorflow.Output;
import org.tensorflow.*;
[ "org.tensorflow" ]
org.tensorflow;
733,956
void onDrawnToSurface(Surface surface);
void onDrawnToSurface(Surface surface);
/** * Invoked when a frame is rendered to a surface for the first time following that surface * having been set as the target for the renderer. * * @param surface The surface to which a first frame has been rendered. */
Invoked when a frame is rendered to a surface for the first time following that surface having been set as the target for the renderer
onDrawnToSurface
{ "repo_name": "gitanuj/ExoPlayer", "path": "extensions/vp9/src/main/java/com/google/android/exoplayer/ext/vp9/LibvpxVideoTrackRenderer.java", "license": "apache-2.0", "size": 15693 }
[ "android.view.Surface" ]
import android.view.Surface;
import android.view.*;
[ "android.view" ]
android.view;
2,162,164
public void removeChildCollectionNode(CollectionNode collectionFolderValue) { EntityManager entityManager = null; try { entityManager = _eManagerFactory.createEntityManager(); entityManager.getTransaction().begin(); Collection c = entityManager.merge(collectionFolderValue.getResource()); entit...
void function(CollectionNode collectionFolderValue) { EntityManager entityManager = null; try { entityManager = _eManagerFactory.createEntityManager(); entityManager.getTransaction().begin(); Collection c = entityManager.merge(collectionFolderValue.getResource()); entityManager.remove(c); entityManager.getTransaction()...
/** * Removes the child collection node. * * @param collectionFolderValue * the collection folder value */
Removes the child collection node
removeChildCollectionNode
{ "repo_name": "synergynet/synergyview", "path": "synergyview-core/src/synergyviewcore/collections/model/CollectionRootNode.java", "license": "bsd-3-clause", "size": 5496 }
[ "javax.persistence.EntityManager", "org.eclipse.core.runtime.IStatus", "org.eclipse.core.runtime.Status" ]
import javax.persistence.EntityManager; import org.eclipse.core.runtime.IStatus; import org.eclipse.core.runtime.Status;
import javax.persistence.*; import org.eclipse.core.runtime.*;
[ "javax.persistence", "org.eclipse.core" ]
javax.persistence; org.eclipse.core;
936,329
@Override protected void includeProperties(Set<Property> allProperties) { super.includeProperties(allProperties); nodes.forEach(n -> n.includeProperties(allProperties)); }
void function(Set<Property> allProperties) { super.includeProperties(allProperties); nodes.forEach(n -> n.includeProperties(allProperties)); }
/** * This method adds the properties for this node to the * supplied set. * * @param allProperties The aggregated set of properties */
This method adds the properties for this node to the supplied set
includeProperties
{ "repo_name": "hawkular/hawkular-btm", "path": "api/src/main/java/org/hawkular/apm/api/model/trace/ContainerNode.java", "license": "apache-2.0", "size": 4618 }
[ "java.util.Set", "org.hawkular.apm.api.model.Property" ]
import java.util.Set; import org.hawkular.apm.api.model.Property;
import java.util.*; import org.hawkular.apm.api.model.*;
[ "java.util", "org.hawkular.apm" ]
java.util; org.hawkular.apm;
651,029
@SuppressLint("StaticFieldLeak") @Override public void getLocation(List<ScanResult> wifisList, List<Cell> cellsList) { ArrayList<String> wifis = new ArrayList<>(); if (wifisList != null) { // Generates a list of wifis from scan results for (ScanResult r : wifisList) ...
@SuppressLint(STR) void function(List<ScanResult> wifisList, List<Cell> cellsList) { ArrayList<String> wifis = new ArrayList<>(); if (wifisList != null) { for (ScanResult r : wifisList) { if ((r.BSSID != null) & !(r.SSID.endsWith(STR))) { wifis.add(r.BSSID); } } Log.i(TAG, STR + wifis.size() + STR); } else Log.i(TAG, S...
/** * Queries location for list of wifis */
Queries location for list of wifis
getLocation
{ "repo_name": "wish7code/org.openbmap.unifiedNlpProvider", "path": "src/org/radiocells/unifiedNlp/geocoders/OnlineProvider.java", "license": "agpl-3.0", "size": 8511 }
[ "android.annotation.SuppressLint", "android.net.wifi.ScanResult", "android.util.Log", "java.util.ArrayList", "java.util.List", "org.radiocells.unifiedNlp.models.Cell" ]
import android.annotation.SuppressLint; import android.net.wifi.ScanResult; import android.util.Log; import java.util.ArrayList; import java.util.List; import org.radiocells.unifiedNlp.models.Cell;
import android.annotation.*; import android.net.wifi.*; import android.util.*; import java.util.*; import org.radiocells.*;
[ "android.annotation", "android.net", "android.util", "java.util", "org.radiocells" ]
android.annotation; android.net; android.util; java.util; org.radiocells;
565,086
public long parsePBSZ(long pbsz) throws SSLException, IOException { execPBSZ(pbsz); long minvalue = pbsz; String remainder = extractPrefixedData("PBSZ=", getReplyString()); if (remainder != null) { long replysz = Long.parseLong(remainder); if (replysz < minval...
long function(long pbsz) throws SSLException, IOException { execPBSZ(pbsz); long minvalue = pbsz; String remainder = extractPrefixedData("PBSZ=", getReplyString()); if (remainder != null) { long replysz = Long.parseLong(remainder); if (replysz < minvalue) { minvalue = replysz; } } return minvalue; } /** * PROT command....
/** * PBSZ command. pbsz value: 0 to (2^32)-1 decimal integer. * Issues the command and parses the response to return the negotiated value. * * @param pbsz Protection Buffer Size. * @throws SSLException If the server reply code does not equal "200". * @throws IOException If an I/O error oc...
PBSZ command. pbsz value: 0 to (2^32)-1 decimal integer. Issues the command and parses the response to return the negotiated value
parsePBSZ
{ "repo_name": "grtlinux/KIEA_JAVA7", "path": "KIEA_JAVA7/src/tain/kr/com/commons/net/v01/ftp/FTPSClient.java", "license": "gpl-3.0", "size": 33164 }
[ "java.io.IOException", "javax.net.ssl.SSLException" ]
import java.io.IOException; import javax.net.ssl.SSLException;
import java.io.*; import javax.net.ssl.*;
[ "java.io", "javax.net" ]
java.io; javax.net;
633,394
assertThat(assertContext.getText("Insert values size assertion error: "), actual.size(), is(expected.getValues().size())); int count = 0; for (InsertValuesSegment each : actual) { assertInsertValues(assertContext, each, expected.getValues().get(count)); count++; } }
assertThat(assertContext.getText(STR), actual.size(), is(expected.getValues().size())); int count = 0; for (InsertValuesSegment each : actual) { assertInsertValues(assertContext, each, expected.getValues().get(count)); count++; } }
/** * Assert actual insert values segment is correct with expected insert values clause. * * @param assertContext assert context * @param actual actual insert values segment * @param expected expected insert values clause */
Assert actual insert values segment is correct with expected insert values clause
assertIs
{ "repo_name": "apache/incubator-shardingsphere", "path": "shardingsphere-test/shardingsphere-parser-test/src/main/java/org/apache/shardingsphere/test/sql/parser/parameterized/asserts/segment/insert/InsertValuesClauseAssert.java", "license": "apache-2.0", "size": 3164 }
[ "org.apache.shardingsphere.sql.parser.sql.common.segment.dml.assignment.InsertValuesSegment", "org.hamcrest.CoreMatchers" ]
import org.apache.shardingsphere.sql.parser.sql.common.segment.dml.assignment.InsertValuesSegment; import org.hamcrest.CoreMatchers;
import org.apache.shardingsphere.sql.parser.sql.common.segment.dml.assignment.*; import org.hamcrest.*;
[ "org.apache.shardingsphere", "org.hamcrest" ]
org.apache.shardingsphere; org.hamcrest;
2,882,177
public Elements getElementsByIndexEquals(int index) { return Collector.collect(new Evaluator.IndexEquals(index), this); }
Elements function(int index) { return Collector.collect(new Evaluator.IndexEquals(index), this); }
/** * Find elements whose sibling index is equal to the supplied index. * @param index 0-based index * @return elements equal to index */
Find elements whose sibling index is equal to the supplied index
getElementsByIndexEquals
{ "repo_name": "SpoonLabs/astor", "path": "examples/librepair-experiments-jhy-jsoup-285353482-20171009-062400_bugonly_with_package_info/src/main/java/org/jsoup/nodes/Element.java", "license": "gpl-2.0", "size": 50843 }
[ "org.jsoup.select.Collector", "org.jsoup.select.Elements", "org.jsoup.select.Evaluator" ]
import org.jsoup.select.Collector; import org.jsoup.select.Elements; import org.jsoup.select.Evaluator;
import org.jsoup.select.*;
[ "org.jsoup.select" ]
org.jsoup.select;
1,260,953
public synchronized void unregisterMBean(ObjectName objectName) { try { MBeanServer mbs = ManagementFactory.getPlatformMBeanServer(); mbs.unregisterMBean(objectName); } catch (Exception e) { LOG.error("Could not unregister MBean : " + o...
synchronized void function(ObjectName objectName) { try { MBeanServer mbs = ManagementFactory.getPlatformMBeanServer(); mbs.unregisterMBean(objectName); } catch (Exception e) { LOG.error(STR + objectName.toString() + STR + e.getMessage(), e); } }
/** * Unregister MBean * * @param objectName * the MBean name to unregister */
Unregister MBean
unregisterMBean
{ "repo_name": "Doloops/arondor-common-reflection", "path": "arondor-common-reflection-mbean/src/main/java/com/arondor/common/management/mbean/MBeanObjectHelper.java", "license": "apache-2.0", "size": 18875 }
[ "java.lang.management.ManagementFactory", "javax.management.MBeanServer", "javax.management.ObjectName" ]
import java.lang.management.ManagementFactory; import javax.management.MBeanServer; import javax.management.ObjectName;
import java.lang.management.*; import javax.management.*;
[ "java.lang", "javax.management" ]
java.lang; javax.management;
228,321
//----------------------------------------------------------------------- public Builder shiftType(ScenarioShiftType shiftType) { JodaBeanUtils.notNull(shiftType, "shiftType"); this._shiftType = shiftType; return this; }
Builder function(ScenarioShiftType shiftType) { JodaBeanUtils.notNull(shiftType, STR); this._shiftType = shiftType; return this; }
/** * Sets the {@code shiftType} property in the builder. * @param shiftType the new value, not null * @return this, for chaining, not null */
Sets the shiftType property in the builder
shiftType
{ "repo_name": "DevStreet/FinanceAnalytics", "path": "projects/OG-Integration/src/main/java/com/opengamma/integration/marketdata/manipulator/dsl/YieldCurveDataBucketedShiftManipulator.java", "license": "apache-2.0", "size": 15352 }
[ "org.joda.beans.JodaBeanUtils" ]
import org.joda.beans.JodaBeanUtils;
import org.joda.beans.*;
[ "org.joda.beans" ]
org.joda.beans;
2,681,032
public WebTarget getTarget();
WebTarget function();
/** * Get the resource * @return */
Get the resource
getTarget
{ "repo_name": "mdunker/usergrid", "path": "stack/rest/src/test/java/org/apache/usergrid/rest/test/resource/endpoints/UrlResource.java", "license": "apache-2.0", "size": 1430 }
[ "javax.ws.rs.client.WebTarget" ]
import javax.ws.rs.client.WebTarget;
import javax.ws.rs.client.*;
[ "javax.ws" ]
javax.ws;
718,985
public Item delta(Token token) { Item result = null; return result; } // delta
Item function(Token token) { Item result = null; return result; }
/** Performs the elementary mapping of the push-down parser * from a pair of ({@link #state}, token) to the next parser action * and corresponding additional information. * Adjusts the {@link #state} and the {@link #stack}. * @param token next input token to be fed into the parsing process. ...
Performs the elementary mapping of the push-down parser from a pair of (<code>#state</code>, token) to the next parser action and corresponding additional information. Adjusts the <code>#state</code> and the <code>#stack</code>
delta
{ "repo_name": "gfis/xtrans", "path": "src/main/java/org/teherba/xtrans/parse/ParseTable.java", "license": "apache-2.0", "size": 8002 }
[ "org.teherba.xtrans.parse.Item", "org.teherba.xtrans.parse.Token" ]
import org.teherba.xtrans.parse.Item; import org.teherba.xtrans.parse.Token;
import org.teherba.xtrans.parse.*;
[ "org.teherba.xtrans" ]
org.teherba.xtrans;
1,130,518
public static Address extractPersonAddress(PRPAMT201306UV02ParameterList params) { LOG.trace("Entering HL7Parser201305.ExtractPersonAddress method..."); Address address = null; if (params.getPatientAddress() != null && params.getPatientAddress().size() > 0 && params.getPati...
static Address function(PRPAMT201306UV02ParameterList params) { LOG.trace(STR); Address address = null; if (params.getPatientAddress() != null && params.getPatientAddress().size() > 0 && params.getPatientAddress().get(0) != null) { PRPAMT201306UV02PatientAddress patientAddress = params.getPatientAddress().get(0); if (p...
/** * Method to extract an Address from a PRPAMT201306UV02ParameterList. * @param params the PRPAMT201306UV02ParameterList from which to extract the Address * @return an Address from PRPAMT201306UV02ParameterList. */
Method to extract an Address from a PRPAMT201306UV02ParameterList
extractPersonAddress
{ "repo_name": "sailajaa/CONNECT", "path": "Product/Production/Services/PatientDiscoveryCore/src/main/java/gov/hhs/fha/nhinc/mpi/adapter/component/hl7parsers/HL7Parser201305.java", "license": "bsd-3-clause", "size": 23306 }
[ "gov.hhs.fha.nhinc.mpilib.Address", "java.io.Serializable", "java.util.Iterator", "java.util.List", "javax.xml.bind.JAXBElement", "org.hl7.v3.ADExplicit", "org.hl7.v3.AdxpExplicitCity", "org.hl7.v3.AdxpExplicitPostalCode", "org.hl7.v3.AdxpExplicitState", "org.hl7.v3.AdxpExplicitStreetAddressLine",...
import gov.hhs.fha.nhinc.mpilib.Address; import java.io.Serializable; import java.util.Iterator; import java.util.List; import javax.xml.bind.JAXBElement; import org.hl7.v3.ADExplicit; import org.hl7.v3.AdxpExplicitCity; import org.hl7.v3.AdxpExplicitPostalCode; import org.hl7.v3.AdxpExplicitState; import org.hl7.v3.Ad...
import gov.hhs.fha.nhinc.mpilib.*; import java.io.*; import java.util.*; import javax.xml.bind.*; import org.hl7.v3.*;
[ "gov.hhs.fha", "java.io", "java.util", "javax.xml", "org.hl7.v3" ]
gov.hhs.fha; java.io; java.util; javax.xml; org.hl7.v3;
653,241
@Test public void testSampleExclusionJustFromNegationExpression() throws IOException { final String testFile = getToolTestDataDir() + "vcfexample2.vcf"; final IntegrationTestSpec spec = new IntegrationTestSpec( baseTestString(" -se 'NA[0-9]{4}[^1-9]' ", testFile), ...
void function() throws IOException { final String testFile = getToolTestDataDir() + STR; final IntegrationTestSpec spec = new IntegrationTestSpec( baseTestString(STR, testFile), Collections.singletonList(getToolTestDataDir() + STR + STR) ); spec.executeTest(STR + testFile, this); }
/** * Test excluding samples from negation expression */
Test excluding samples from negation expression
testSampleExclusionJustFromNegationExpression
{ "repo_name": "magicDGS/gatk", "path": "src/test/java/org/broadinstitute/hellbender/tools/walkers/variantutils/SelectVariantsIntegrationTest.java", "license": "bsd-3-clause", "size": 40809 }
[ "java.io.IOException", "java.util.Collections", "org.broadinstitute.hellbender.testutils.IntegrationTestSpec" ]
import java.io.IOException; import java.util.Collections; import org.broadinstitute.hellbender.testutils.IntegrationTestSpec;
import java.io.*; import java.util.*; import org.broadinstitute.hellbender.testutils.*;
[ "java.io", "java.util", "org.broadinstitute.hellbender" ]
java.io; java.util; org.broadinstitute.hellbender;
2,224,261
private static PaymentMethodApi getPaymentMethodParameter(Map<String, String> parameters, String paramName) throws PayUException, InvalidParametersException, ConnectionException{ PaymentMethodApi paymentMethod = null; String parameter = CommonRequestUtil.getParameter(parameters, paramName); if (parameter !=...
static PaymentMethodApi function(Map<String, String> parameters, String paramName) throws PayUException, InvalidParametersException, ConnectionException{ PaymentMethodApi paymentMethod = null; String parameter = CommonRequestUtil.getParameter(parameters, paramName); if (parameter != null) { String apiKey = RequestUtil....
/** * Gets the PaymentMethod value parameter from the parameters map. * If the parameter is not null find the Payment method in the map, but if not found then make request to API * @param parameters The parameters to be sent to the server * @param paramName the parameter to get * @return the PaymentMethod va...
Gets the PaymentMethod value parameter from the parameters map. If the parameter is not null find the Payment method in the map, but if not found then make request to API
getPaymentMethodParameter
{ "repo_name": "juanalvarez123/payu-latam-java-payments-sdk", "path": "src/main/java/com/payu/sdk/PayUPayments.java", "license": "mit", "size": 21798 }
[ "com.payu.sdk.exceptions.ConnectionException", "com.payu.sdk.exceptions.InvalidParametersException", "com.payu.sdk.exceptions.PayUException", "com.payu.sdk.model.PaymentMethodApi", "com.payu.sdk.utils.CommonRequestUtil", "com.payu.sdk.utils.RequestUtil", "java.util.Map" ]
import com.payu.sdk.exceptions.ConnectionException; import com.payu.sdk.exceptions.InvalidParametersException; import com.payu.sdk.exceptions.PayUException; import com.payu.sdk.model.PaymentMethodApi; import com.payu.sdk.utils.CommonRequestUtil; import com.payu.sdk.utils.RequestUtil; import java.util.Map;
import com.payu.sdk.exceptions.*; import com.payu.sdk.model.*; import com.payu.sdk.utils.*; import java.util.*;
[ "com.payu.sdk", "java.util" ]
com.payu.sdk; java.util;
838,049
public Field copyField(Field arg) { return langReflectAccess().copyField(arg); }
Field function(Field arg) { return langReflectAccess().copyField(arg); }
/** Makes a copy of the passed field. The returned field is a "child" of the passed one; see the comments in Field.java for details. */
Makes a copy of the passed field. The returned field is a
copyField
{ "repo_name": "mdavid/IKVM.NET-cvs-clone", "path": "openjdk/sun/reflect/ReflectionFactory.java", "license": "gpl-2.0", "size": 13029 }
[ "java.lang.reflect.Field" ]
import java.lang.reflect.Field;
import java.lang.reflect.*;
[ "java.lang" ]
java.lang;
993,880
return Uri.parse(resolve(baseUri, referenceUri)); }
return Uri.parse(resolve(baseUri, referenceUri)); }
/** * Like {@link #resolve(String, String)}, but returns a {@link Uri} instead of a {@link String}. * * @param baseUri The base URI. * @param referenceUri The reference URI to resolve. */
Like <code>#resolve(String, String)</code>, but returns a <code>Uri</code> instead of a <code>String</code>
resolveToUri
{ "repo_name": "muxinc/stats-sdk-exoplayer", "path": "library/src/main/java/com/google/android/exoplayer2/util/UriUtil.java", "license": "apache-2.0", "size": 10391 }
[ "android.net.Uri" ]
import android.net.Uri;
import android.net.*;
[ "android.net" ]
android.net;
1,114,791
public boolean isAccessTokenValid() throws BaringoAuthException { if( oAuth2 == null ) { return false; } // if Call<Object> call = client.getApi().validateToken(); try { Response<Object> res = call.execute(); return res.code() == 200; } catch (IOException e) { return false; } // try-c...
boolean function() throws BaringoAuthException { if( oAuth2 == null ) { return false; } Call<Object> call = client.getApi().validateToken(); try { Response<Object> res = call.execute(); return res.code() == 200; } catch (IOException e) { return false; } }
/** * Returns true if the current user's OAuth2 access token * is valid. If there is no authenticated user, * @return whether the auth token is valid * @throws BaringoAuthException whomp whomp */
Returns true if the current user's OAuth2 access token is valid. If there is no authenticated user
isAccessTokenValid
{ "repo_name": "kskelm/baringo", "path": "src/main/java/com/github/kskelm/baringo/AuthService.java", "license": "apache-2.0", "size": 7291 }
[ "com.github.kskelm.baringo.util.BaringoAuthException", "java.io.IOException" ]
import com.github.kskelm.baringo.util.BaringoAuthException; import java.io.IOException;
import com.github.kskelm.baringo.util.*; import java.io.*;
[ "com.github.kskelm", "java.io" ]
com.github.kskelm; java.io;
530,713
public void zoomRangeAxes(double lowerPercent, double upperPercent, PlotRenderingInfo state, Point2D source);
void function(double lowerPercent, double upperPercent, PlotRenderingInfo state, Point2D source);
/** * Zooms in on the range axes. * * @param lowerPercent the new lower bound. * @param upperPercent the new upper bound. * @param state the plot state. * @param source the source point (in Java2D coordinates). */
Zooms in on the range axes
zoomRangeAxes
{ "repo_name": "raedle/univis", "path": "lib/jfreechart-1.0.1/src/org/jfree/chart/plot/Zoomable.java", "license": "lgpl-2.1", "size": 3897 }
[ "java.awt.geom.Point2D" ]
import java.awt.geom.Point2D;
import java.awt.geom.*;
[ "java.awt" ]
java.awt;
885,867
@GwtIncompatible // Array.newArray(Class, int) public final E[] toArray(Class<E> type) { return Iterables.toArray(getDelegate(), type); }
@GwtIncompatible final E[] function(Class<E> type) { return Iterables.toArray(getDelegate(), type); }
/** * Returns an array containing all of the elements from this fluent iterable in iteration order. * * <p><b>{@code Stream} equivalent:</b> if an object array is acceptable, use {@code * stream.toArray()}; if {@code type} is a class literal such as {@code MyType.class}, use {@code * stream.toArray(MyTyp...
Returns an array containing all of the elements from this fluent iterable in iteration order. Stream equivalent: if an object array is acceptable, use stream.toArray(); if type is a class literal such as MyType.class, use stream.toArray(MyType[]::new). Otherwise use stream.toArray( len -> (E[]) Array.newInstance(type, ...
toArray
{ "repo_name": "EdwardLee03/guava", "path": "guava/src/com/google/common/collect/FluentIterable.java", "license": "apache-2.0", "size": 34370 }
[ "com.google.common.annotations.GwtIncompatible" ]
import com.google.common.annotations.GwtIncompatible;
import com.google.common.annotations.*;
[ "com.google.common" ]
com.google.common;
1,171,383
//----------------------------------------------------------------------- public MBeanServer getMBeanServer() { return _mBeanServer; }
MBeanServer function() { return _mBeanServer; }
/** * Gets mBean server to register with. * @return the value of the property, not null */
Gets mBean server to register with
getMBeanServer
{ "repo_name": "McLeodMoores/starling", "path": "projects/component/src/main/java/com/opengamma/component/factory/engine/JmxManagementServiceFactory.java", "license": "apache-2.0", "size": 11772 }
[ "javax.management.MBeanServer" ]
import javax.management.MBeanServer;
import javax.management.*;
[ "javax.management" ]
javax.management;
866,592
public String getURLParameter(String strName) { Object value = htParameters.get(strName); if (value instanceof Vector) return (String) ((Vector)value).firstElement(); else return (String) htParameters.get(strName); }
String function(String strName) { Object value = htParameters.get(strName); if (value instanceof Vector) return (String) ((Vector)value).firstElement(); else return (String) htParameters.get(strName); }
/** Return the value of the strName URLParameter. * * If more than one value for a particular Parameter, will return * the first. If an error occurs will return null. */
Return the value of the strName URLParameter. If more than one value for a particular Parameter, will return
getURLParameter
{ "repo_name": "superzadeh/processdash", "path": "src/net/sourceforge/processdash/util/MultipartRequest.java", "license": "gpl-3.0", "size": 49543 }
[ "java.util.Vector" ]
import java.util.Vector;
import java.util.*;
[ "java.util" ]
java.util;
77,976
private void evaluateExpressions() throws JspException { String string = null; if ((string = EvalHelper.evalString("id", getIdExpr(), this, pageContext)) != null) setId(string); if ((string = EvalHelper.evalString("input", getInputE...
void function() throws JspException { String string = null; if ((string = EvalHelper.evalString("id", getIdExpr(), this, pageContext)) != null) setId(string); if ((string = EvalHelper.evalString("input", getInputExpr(), this, pageContext)) != null) setInput(string); if ((string = EvalHelper.evalString("name", getNameEx...
/** * Processes all attribute values which use the JSTL expression evaluation * engine to determine their values. * * @exception JspException if a JSP exception has occurred */
Processes all attribute values which use the JSTL expression evaluation engine to determine their values
evaluateExpressions
{ "repo_name": "codelibs/cl-struts", "path": "contrib/el/src/share/org/apache/strutsel/taglib/bean/ELResourceTag.java", "license": "apache-2.0", "size": 4164 }
[ "javax.servlet.jsp.JspException", "org.apache.strutsel.taglib.utils.EvalHelper" ]
import javax.servlet.jsp.JspException; import org.apache.strutsel.taglib.utils.EvalHelper;
import javax.servlet.jsp.*; import org.apache.strutsel.taglib.utils.*;
[ "javax.servlet", "org.apache.strutsel" ]
javax.servlet; org.apache.strutsel;
2,268,793
public DcmElement putSL(int tag, int value) { return put(ValueElement.createSL(tag, value)); }
DcmElement function(int tag, int value) { return put(ValueElement.createSL(tag, value)); }
/** * Description of the Method * * @param tag * Description of the Parameter * @param value * Description of the Parameter * @return Description of the Return Value */
Description of the Method
putSL
{ "repo_name": "medicayun/medicayundicom", "path": "dcm4che14/trunk/src/java/org/dcm4cheri/data/DcmObjectImpl.java", "license": "apache-2.0", "size": 86569 }
[ "org.dcm4che.data.DcmElement" ]
import org.dcm4che.data.DcmElement;
import org.dcm4che.data.*;
[ "org.dcm4che.data" ]
org.dcm4che.data;
2,405,980
EClass getEnumeration();
EClass getEnumeration();
/** * Returns the meta object for class '{@link org.eclipse.xtext.parsetree.formatter.formattertestlanguage.Enumeration <em>Enumeration</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for class '<em>Enumeration</em>'. * @see org.eclipse.xtext.parsetree.formatter.format...
Returns the meta object for class '<code>org.eclipse.xtext.parsetree.formatter.formattertestlanguage.Enumeration Enumeration</code>'.
getEnumeration
{ "repo_name": "miklossy/xtext-core", "path": "org.eclipse.xtext.tests/src-gen/org/eclipse/xtext/parsetree/formatter/formattertestlanguage/FormattertestlanguagePackage.java", "license": "epl-1.0", "size": 56203 }
[ "org.eclipse.emf.ecore.EClass" ]
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
37,259
@Test public void testPower() { SelectStatement statement = new SelectStatement(Function.power(new FieldReference(FLOAT_FIELD), new FieldReference(INT_FIELD))).from(new TableReference( TEST_TABLE)); String actual = testDialect.convertStatementToSQL(statement); assertEquals("Power script sho...
void function() { SelectStatement statement = new SelectStatement(Function.power(new FieldReference(FLOAT_FIELD), new FieldReference(INT_FIELD))).from(new TableReference( TEST_TABLE)); String actual = testDialect.convertStatementToSQL(statement); assertEquals(STR, expectedPower(), actual); }
/** * Tests that POWER functionality builds the expected SQL string. */
Tests that POWER functionality builds the expected SQL string
testPower
{ "repo_name": "badgerwithagun/morf", "path": "morf-testsupport/src/main/java/org/alfasoftware/morf/jdbc/AbstractSqlDialectTest.java", "license": "apache-2.0", "size": 201465 }
[ "org.alfasoftware.morf.sql.SelectStatement", "org.alfasoftware.morf.sql.element.FieldReference", "org.alfasoftware.morf.sql.element.Function", "org.alfasoftware.morf.sql.element.TableReference", "org.junit.Assert" ]
import org.alfasoftware.morf.sql.SelectStatement; import org.alfasoftware.morf.sql.element.FieldReference; import org.alfasoftware.morf.sql.element.Function; import org.alfasoftware.morf.sql.element.TableReference; import org.junit.Assert;
import org.alfasoftware.morf.sql.*; import org.alfasoftware.morf.sql.element.*; import org.junit.*;
[ "org.alfasoftware.morf", "org.junit" ]
org.alfasoftware.morf; org.junit;
2,713,385
public void removeUserFromResource( String resourceType, String resourceId, String resourcePolicyName, String userEmail) { callWithRetries( () -> new ResourcesApi(apiClient) .removeUserFromPolicy(resourceType, resourceId, resourcePolicyName, userEmail), "Error rem...
void function( String resourceType, String resourceId, String resourcePolicyName, String userEmail) { callWithRetries( () -> new ResourcesApi(apiClient) .removeUserFromPolicy(resourceType, resourceId, resourcePolicyName, userEmail), STR); }
/** * Call the SAM * "/api/resources/v1/{resourceTypeName}/{resourceId}/policies/{policyName}/memberEmails/{email}" * DELETE endpoint to remove an email address from a resource + policy. * * @param resourceType type of resource * @param resourceId id of resource * @param resourcePolicyName name of ...
Call the SAM "/api/resources/v1/{resourceTypeName}/{resourceId}/policies/{policyName}/memberEmails/{email}" DELETE endpoint to remove an email address from a resource + policy
removeUserFromResource
{ "repo_name": "DataBiosphere/terra-cli", "path": "src/main/java/bio/terra/cli/service/SamService.java", "license": "bsd-3-clause", "size": 29722 }
[ "org.broadinstitute.dsde.workbench.client.sam.api.ResourcesApi" ]
import org.broadinstitute.dsde.workbench.client.sam.api.ResourcesApi;
import org.broadinstitute.dsde.workbench.client.sam.api.*;
[ "org.broadinstitute.dsde" ]
org.broadinstitute.dsde;
2,111,412
public boolean isSuccess() { return applicationStatus == ApplicationStatus.SUCCEEDED || (applicationStatus == ApplicationStatus.UNKNOWN && serializedThrowable == null); }
boolean function() { return applicationStatus == ApplicationStatus.SUCCEEDED (applicationStatus == ApplicationStatus.UNKNOWN && serializedThrowable == null); }
/** * Returns {@code true} if the job finished successfully. */
Returns true if the job finished successfully
isSuccess
{ "repo_name": "hequn8128/flink", "path": "flink-runtime/src/main/java/org/apache/flink/runtime/jobmaster/JobResult.java", "license": "apache-2.0", "size": 8322 }
[ "org.apache.flink.runtime.clusterframework.ApplicationStatus" ]
import org.apache.flink.runtime.clusterframework.ApplicationStatus;
import org.apache.flink.runtime.clusterframework.*;
[ "org.apache.flink" ]
org.apache.flink;
2,135,426
public static IdentityProvider buildFederatedIdentityProvider(HttpServletRequest request, StringBuilder oldIdpName) throws Exception { IdentityProvider fedIdp = new IdentityProvider(); if (ServletFileUpload.isMultipartContent(request)) { ServletRequestContext servletContex...
static IdentityProvider function(HttpServletRequest request, StringBuilder oldIdpName) throws Exception { IdentityProvider fedIdp = new IdentityProvider(); if (ServletFileUpload.isMultipartContent(request)) { ServletRequestContext servletContext = new ServletRequestContext(request); FileItemFactory factory = new DiskFi...
/** * Build a federated identity provider. * @param request HttpServletRequest * @param oldIdpName This value will be populated if there is an old IDP. * @return IdentityProvider * @throws Exception */
Build a federated identity provider
buildFederatedIdentityProvider
{ "repo_name": "ChamaraPhilipsuom/carbon-identity", "path": "components/idp-mgt/org.wso2.carbon.idp.mgt.ui/src/main/java/org/wso2/carbon/idp/mgt/ui/util/IdPManagementUIUtil.java", "license": "apache-2.0", "size": 73965 }
[ "java.util.ArrayList", "java.util.HashMap", "java.util.List", "java.util.Map", "javax.servlet.http.HttpServletRequest", "org.apache.axiom.om.util.Base64", "org.apache.commons.fileupload.FileItemFactory", "org.apache.commons.fileupload.disk.DiskFileItem", "org.apache.commons.fileupload.disk.DiskFileI...
import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.servlet.http.HttpServletRequest; import org.apache.axiom.om.util.Base64; import org.apache.commons.fileupload.FileItemFactory; import org.apache.commons.fileupload.disk.DiskFileItem; import org.apache.commons...
import java.util.*; import javax.servlet.http.*; import org.apache.axiom.om.util.*; import org.apache.commons.fileupload.*; import org.apache.commons.fileupload.disk.*; import org.apache.commons.fileupload.servlet.*; import org.apache.commons.lang.*; import org.wso2.carbon.identity.application.common.model.idp.xsd.*;
[ "java.util", "javax.servlet", "org.apache.axiom", "org.apache.commons", "org.wso2.carbon" ]
java.util; javax.servlet; org.apache.axiom; org.apache.commons; org.wso2.carbon;
212,796
public static DateTime toDateTime(String dateTime, String timeZoneId) { return dateTimesHelper.toDateTime(dateTime, timeZoneId); }
static DateTime function(String dateTime, String timeZoneId) { return dateTimesHelper.toDateTime(dateTime, timeZoneId); }
/** * Converts a string in the form of {@code yyyy-MM-dd'T'HH:mm:ss} to an API * date time in the time zone supplied. */
date time in the time zone supplied
toDateTime
{ "repo_name": "raja15792/googleads-java-lib", "path": "modules/dfp_appengine/src/main/java/com/google/api/ads/dfp/jaxws/utils/v201408/DateTimes.java", "license": "apache-2.0", "size": 5971 }
[ "com.google.api.ads.dfp.jaxws.v201408.DateTime" ]
import com.google.api.ads.dfp.jaxws.v201408.DateTime;
import com.google.api.ads.dfp.jaxws.v201408.*;
[ "com.google.api" ]
com.google.api;
906,981
public JobStatistics getStatistics(String accountName, UUID jobIdentity) { return getStatisticsWithServiceResponseAsync(accountName, jobIdentity).toBlocking().single().body(); }
JobStatistics function(String accountName, UUID jobIdentity) { return getStatisticsWithServiceResponseAsync(accountName, jobIdentity).toBlocking().single().body(); }
/** * Gets statistics of the specified job. * * @param accountName The Azure Data Lake Analytics account to execute job operations on. * @param jobIdentity Job Information ID. * @return the JobStatistics object if successful. */
Gets statistics of the specified job
getStatistics
{ "repo_name": "pomortaz/azure-sdk-for-java", "path": "azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/JobsImpl.java", "license": "mit", "size": 55385 }
[ "com.microsoft.azure.management.datalake.analytics.models.JobStatistics" ]
import com.microsoft.azure.management.datalake.analytics.models.JobStatistics;
import com.microsoft.azure.management.datalake.analytics.models.*;
[ "com.microsoft.azure" ]
com.microsoft.azure;
2,633,243
public void draw() { if (BrickBreakerSurfaceRenderer.EXTRA_CHECK) Library.checkGlError("draw start"); if (!sDrawPrepared) { throw new RuntimeException("not prepared"); } // Compute model/view/projection matrix. float[] mvp = sTempMVP; // scratch storage ...
void function() { if (BrickBreakerSurfaceRenderer.EXTRA_CHECK) Library.checkGlError(STR); if (!sDrawPrepared) { throw new RuntimeException(STR); } float[] mvp = sTempMVP; Matrix.multiplyMM(mvp, 0, BrickBreakerSurfaceRenderer.mProjectionMatrix, 0, mModelView, 0); GLES20.glUniformMatrix4fv(sMVPMatrixHandle, 1, false, mvp...
/** * Draws the rect. */
Draws the rect
draw
{ "repo_name": "hikarym/BrickBreakerApp", "path": "src/br/usp/ime/brickbreakerapp/BasicAlignedRect.java", "license": "gpl-2.0", "size": 4589 }
[ "android.opengl.Matrix" ]
import android.opengl.Matrix;
import android.opengl.*;
[ "android.opengl" ]
android.opengl;
1,910,314
@Test public void testDefaultLocale() { // Prepare I18nHelper defaultI18n = new I18nHelper(); when(prefs.get(I18nHelper.LOCALE_PREFKEY)).thenReturn(null); defaultI18n.setPreferences(prefs); I18nHelper spy = spy(defaultI18n); // Execute spy.init(); ...
void function() { I18nHelper defaultI18n = new I18nHelper(); when(prefs.get(I18nHelper.LOCALE_PREFKEY)).thenReturn(null); defaultI18n.setPreferences(prefs); I18nHelper spy = spy(defaultI18n); spy.init(); verify(spy).updateResourceBundle(Locale.getDefault()); }
/** * Tests the initialization when no preferred locale is stored. */
Tests the initialization when no preferred locale is stored
testDefaultLocale
{ "repo_name": "KeyboardPlaying/xls-time-tracker-construct", "path": "construct-ui/src/test/java/org/keyboardplaying/xtt/ui/i18n/I18nHelperTest.java", "license": "apache-2.0", "size": 5175 }
[ "java.util.Locale", "org.mockito.Mockito" ]
import java.util.Locale; import org.mockito.Mockito;
import java.util.*; import org.mockito.*;
[ "java.util", "org.mockito" ]
java.util; org.mockito;
2,559,973
public void testContentType() throws Exception { // Create two documents. ZMailbox mbox = TestUtil.getZMailbox(USER_NAME); String folderId = Integer.toString(Mailbox.ID_FOLDER_BRIEFCASE); ZDocument doc1 = TestUtil.createDocument(mbox, folderId, NAME_PREFIX + "-docOne.doc", "applicat...
void function() throws Exception { ZMailbox mbox = TestUtil.getZMailbox(USER_NAME); String folderId = Integer.toString(Mailbox.ID_FOLDER_BRIEFCASE); ZDocument doc1 = TestUtil.createDocument(mbox, folderId, NAME_PREFIX + STR, STR, "doc1".getBytes()); ZDocument doc2 = TestUtil.createDocument(mbox, folderId, NAME_PREFIX +...
/** * Tests the content-type based on file extension. */
Tests the content-type based on file extension
testContentType
{ "repo_name": "nico01f/z-pec", "path": "ZimbraServer/src/java/com/zimbra/qa/unittest/TestDocument.java", "license": "mit", "size": 9474 }
[ "com.zimbra.client.ZDocument", "com.zimbra.client.ZMailbox", "com.zimbra.cs.mailbox.Mailbox" ]
import com.zimbra.client.ZDocument; import com.zimbra.client.ZMailbox; import com.zimbra.cs.mailbox.Mailbox;
import com.zimbra.client.*; import com.zimbra.cs.mailbox.*;
[ "com.zimbra.client", "com.zimbra.cs" ]
com.zimbra.client; com.zimbra.cs;
236,135
public static String lastAuthor(String authorField) { String[] tokens = AuthorList.fixAuthorForAlphabetization(authorField).split("\\s+\\band\\b\\s+"); if (tokens.length > 0) { String[] lastAuthor = tokens[tokens.length - 1].split(","); return lastAuthor[0]; } else { ...
static String function(String authorField) { String[] tokens = AuthorList.fixAuthorForAlphabetization(authorField).split(STR); if (tokens.length > 0) { String[] lastAuthor = tokens[tokens.length - 1].split(","); return lastAuthor[0]; } else { return ""; } }
/** * Gets the last name of the last author/editor * @param authorField a <code>String</code> * @return the surname of an author/editor */
Gets the last name of the last author/editor
lastAuthor
{ "repo_name": "motokito/jabref", "path": "src/main/java/net/sf/jabref/logic/bibtexkeypattern/BibtexKeyPatternUtil.java", "license": "mit", "size": 53518 }
[ "net.sf.jabref.model.entry.AuthorList" ]
import net.sf.jabref.model.entry.AuthorList;
import net.sf.jabref.model.entry.*;
[ "net.sf.jabref" ]
net.sf.jabref;
2,016,763
public MatchCode checkColumn(byte [] bytes, int offset, int length) { // Nothing to match against, add to new and include if(this.column == null && this.newColumn == null) { newColumns.add(new ColumnCount(bytes, offset, length, 1)); this.newColumn = newColumns.get(newIndex); return MatchCod...
MatchCode function(byte [] bytes, int offset, int length) { if(this.column == null && this.newColumn == null) { newColumns.add(new ColumnCount(bytes, offset, length, 1)); this.newColumn = newColumns.get(newIndex); return MatchCode.INCLUDE; } if(this.column == null && this.newColumn != null) { int ret = Bytes.compareTo(...
/** * Checks against the parameters of the query and the columns which have * already been processed by this query. * @param bytes KeyValue buffer * @param offset offset to the start of the qualifier * @param length length of the qualifier * @return MatchCode telling QueryMatcher what action to take ...
Checks against the parameters of the query and the columns which have already been processed by this query
checkColumn
{ "repo_name": "adragomir/hbaseindex", "path": "src/java/org/apache/hadoop/hbase/regionserver/WildcardColumnTracker.java", "license": "apache-2.0", "size": 10309 }
[ "org.apache.hadoop.hbase.regionserver.QueryMatcher", "org.apache.hadoop.hbase.util.Bytes" ]
import org.apache.hadoop.hbase.regionserver.QueryMatcher; import org.apache.hadoop.hbase.util.Bytes;
import org.apache.hadoop.hbase.regionserver.*; import org.apache.hadoop.hbase.util.*;
[ "org.apache.hadoop" ]
org.apache.hadoop;
1,917,867
public static void updatePath(Connection con, String oldFather, String treeId) throws SQLException { // get in the first time all pathes of the son nodes of the oldFather List<String> pathes = getPathes(con, oldFather, treeId); String oldPath = ""; String newPath = ""; String pattern = "/" ...
static void function(Connection con, String oldFather, String treeId) throws SQLException { List<String> pathes = getPathes(con, oldFather, treeId); String oldPath = STRSTR/" + oldFather; int pattern_idx; int lenOfPattern = pattern.length(); while (!pathes.isEmpty()) { oldPath = pathes.remove(0); pattern_idx = oldPath....
/** * Update path of decendante nodes of the deleted node. * @param con - the connection to the database * @param oldFather - the deleted node * @throws SQLException */
Update path of decendante nodes of the deleted node
updatePath
{ "repo_name": "ebonnet/Silverpeas-Core", "path": "core-services/pdc/src/main/java/org/silverpeas/core/pdc/tree/service/TreeDAO.java", "license": "agpl-3.0", "size": 9832 }
[ "java.sql.Connection", "java.sql.SQLException", "java.util.List" ]
import java.sql.Connection; import java.sql.SQLException; import java.util.List;
import java.sql.*; import java.util.*;
[ "java.sql", "java.util" ]
java.sql; java.util;
723,366
@Message(id = Message.NONE, value = "Sets the start mode of the server, it can be either 'normal','admin-only' or 'suspend'. If this is 'suspend' the server will start in suspended mode, and will not service requests until it has been resumed. If this is started in admin-only mode the server will only open administ...
@Message(id = Message.NONE, value = STR) String argStartMode();
/** * Instructions for the {@link CommandLineConstants#START_MODE} command line argument. * * @return the message */
Instructions for the <code>CommandLineConstants#START_MODE</code> command line argument
argStartMode
{ "repo_name": "darranl/wildfly-core", "path": "server/src/main/java/org/jboss/as/server/logging/ServerLogger.java", "license": "lgpl-2.1", "size": 68179 }
[ "org.jboss.logging.annotations.Message" ]
import org.jboss.logging.annotations.Message;
import org.jboss.logging.annotations.*;
[ "org.jboss.logging" ]
org.jboss.logging;
2,856,694
public void setIntroImage(Image image) { introImagePainter.setImage(image instanceof BufferedImage ? (BufferedImage) image : GraphicsUtilities.convertToBufferedImage(image)); }
void function(Image image) { introImagePainter.setImage(image instanceof BufferedImage ? (BufferedImage) image : GraphicsUtilities.convertToBufferedImage(image)); }
/** * Configures the intro image painter with the given image, converting * to a BufferedImage if necessary. * * @param image */
Configures the intro image painter with the given image, converting to a BufferedImage if necessary
setIntroImage
{ "repo_name": "syncer/swingx", "path": "swingx-demos/swingx-demos-swingxset/src/main/java/org/jdesktop/swingxset/IntroPanelDemo.java", "license": "lgpl-2.1", "size": 7719 }
[ "java.awt.Image", "java.awt.image.BufferedImage", "org.jdesktop.swingx.util.GraphicsUtilities" ]
import java.awt.Image; import java.awt.image.BufferedImage; import org.jdesktop.swingx.util.GraphicsUtilities;
import java.awt.*; import java.awt.image.*; import org.jdesktop.swingx.util.*;
[ "java.awt", "org.jdesktop.swingx" ]
java.awt; org.jdesktop.swingx;
2,246,569
@Inject public void setQualifiedNameConverter(IQualifiedNameConverter converter) { this.qualifiedNameConverter = converter; }
void function(IQualifiedNameConverter converter) { this.qualifiedNameConverter = converter; }
/** Change the converter of qualified name. * * @param converter the converter. */
Change the converter of qualified name
setQualifiedNameConverter
{ "repo_name": "sarl/sarl", "path": "main/coreplugins/io.sarl.lang/src/io/sarl/lang/extralanguage/compiler/AbstractExtraLanguageGenerator.java", "license": "apache-2.0", "size": 26754 }
[ "org.eclipse.xtext.naming.IQualifiedNameConverter" ]
import org.eclipse.xtext.naming.IQualifiedNameConverter;
import org.eclipse.xtext.naming.*;
[ "org.eclipse.xtext" ]
org.eclipse.xtext;
1,507,553
public void layoutInnerPath(double[] x) { from = new WayPoint(x[from.getDepth()], from.getLeftToRight()); to = new WayPoint(x[to.getDepth()], to.getLeftToRight()); innerPath = new ArrayList<WayPoint>(); if (type == TYPE_NORMAL) { innerPath.add(from); if (!directFrom) { double angle = from.angleTo(t...
void function(double[] x) { from = new WayPoint(x[from.getDepth()], from.getLeftToRight()); to = new WayPoint(x[to.getDepth()], to.getLeftToRight()); innerPath = new ArrayList<WayPoint>(); if (type == TYPE_NORMAL) { innerPath.add(from); if (!directFrom) { double angle = from.angleTo(to) + angleFrom; WayPoint wp = from....
/** * Calculate the actual layout of the receiver given an array of the * actual coordinates for each of the depths. * @param x an array of coordinates, one for each logical depth */
Calculate the actual layout of the receiver given an array of the actual coordinates for each of the depths
layoutInnerPath
{ "repo_name": "chrisGerken/gumbo", "path": "gumbo-core/src/main/java/com/gerken/gumbo/graph/PathSegment.java", "license": "apache-2.0", "size": 6477 }
[ "java.util.ArrayList" ]
import java.util.ArrayList;
import java.util.*;
[ "java.util" ]
java.util;
1,304,252