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
List<RichMember> getSponsoredMembers(PerunSession sess, Vo vo, User user, List<String> attrNames) throws InternalErrorException, AttributeNotExistsException, PrivilegeException, VoNotExistsException, UserNotExistsException;
List<RichMember> getSponsoredMembers(PerunSession sess, Vo vo, User user, List<String> attrNames) throws InternalErrorException, AttributeNotExistsException, PrivilegeException, VoNotExistsException, UserNotExistsException;
/** * Get all sponsored RichMembers with attributes by list of attribute names for specific User and Vo. * * @param sess * @param vo to specify Member for User * @param user to specify Member for User * @param attrNames list of attrNames - if empty, return richMembers without attributes * @return list of ...
Get all sponsored RichMembers with attributes by list of attribute names for specific User and Vo
getSponsoredMembers
{ "repo_name": "stavamichal/perun", "path": "perun-core/src/main/java/cz/metacentrum/perun/core/api/MembersManager.java", "license": "bsd-2-clause", "size": 57708 }
[ "cz.metacentrum.perun.core.api.exceptions.AttributeNotExistsException", "cz.metacentrum.perun.core.api.exceptions.InternalErrorException", "cz.metacentrum.perun.core.api.exceptions.PrivilegeException", "cz.metacentrum.perun.core.api.exceptions.UserNotExistsException", "cz.metacentrum.perun.core.api.exceptio...
import cz.metacentrum.perun.core.api.exceptions.AttributeNotExistsException; import cz.metacentrum.perun.core.api.exceptions.InternalErrorException; import cz.metacentrum.perun.core.api.exceptions.PrivilegeException; import cz.metacentrum.perun.core.api.exceptions.UserNotExistsException; import cz.metacentrum.perun.cor...
import cz.metacentrum.perun.core.api.exceptions.*; import java.util.*;
[ "cz.metacentrum.perun", "java.util" ]
cz.metacentrum.perun; java.util;
490,538
public ArrayList<Head> getHeadList(HeadFilter filter){ Session session = HibernateUtils.getSessionFactory().openSession(); ArrayList<Head> list = new ArrayList<Head>(); try{ Criteria cr = session.createCriteria(TblHead.class,"head"); cr.setFirstResult(filter.startelement); cr.setMaxResults(filter.page...
ArrayList<Head> function(HeadFilter filter){ Session session = HibernateUtils.getSessionFactory().openSession(); ArrayList<Head> list = new ArrayList<Head>(); try{ Criteria cr = session.createCriteria(TblHead.class,"head"); cr.setFirstResult(filter.startelement); cr.setMaxResults(filter.pageSize); setCriteriaHead(cr, f...
/***** * Get List of Head */
Get List of Head
getHeadList
{ "repo_name": "lucaflorido/GECO", "path": "src/geco/dao/DocumentDao.java", "license": "mit", "size": 69306 }
[ "java.util.ArrayList", "java.util.Iterator", "java.util.List", "org.hibernate.Criteria", "org.hibernate.HibernateException", "org.hibernate.Session" ]
import java.util.ArrayList; import java.util.Iterator; import java.util.List; import org.hibernate.Criteria; import org.hibernate.HibernateException; import org.hibernate.Session;
import java.util.*; import org.hibernate.*;
[ "java.util", "org.hibernate" ]
java.util; org.hibernate;
123,297
@Override protected void generateMyLlvmCode(LlvmCodegen llc) throws PlcException { String proxyArgdef = ""; String proxyName = methodName; proxyName += "_"+llc.getPhantomMethod().getLlvmTempName("dyncall"); proxyName = proxyName.replaceAll(Method.CONSTRUCTOR_M_NAME, "\\$Constructor"); proxyName = ...
void function(LlvmCodegen llc) throws PlcException { String proxyArgdef = STR_STRdyncallSTR\\$ConstructorSTR%STR"); boolean first = true; for( Node i = _r; i != null; i = ((BiNode)i).getRight() ) { if( !first ) proxyArgdef += STR; first = false; proxyArgdef += i.getLlvmType(); proxyName += ("_STRvoidSTR\n; dynlink prox...
/** * The idea is to call special dynlink proxy func, which will set up * data for dynlinker and will be replaced then with call to real method. * Finally dynlinker will reset stack to previous frame's state and jump * (return) to real method. */
The idea is to call special dynlink proxy func, which will set up data for dynlinker and will be replaced then with call to real method. Finally dynlinker will reset stack to previous frame's state and jump (return) to real method
generateMyLlvmCode
{ "repo_name": "dzavalishin/phantomuserland", "path": "tools/plc/src/ru/dz/plc/compiler/binode/OpDynamicMethodCallNode.java", "license": "lgpl-3.0", "size": 4911 }
[ "ru.dz.plc.compiler.LlvmCodegen", "ru.dz.plc.compiler.node.Node", "ru.dz.plc.util.PlcException" ]
import ru.dz.plc.compiler.LlvmCodegen; import ru.dz.plc.compiler.node.Node; import ru.dz.plc.util.PlcException;
import ru.dz.plc.compiler.*; import ru.dz.plc.compiler.node.*; import ru.dz.plc.util.*;
[ "ru.dz.plc" ]
ru.dz.plc;
1,475,086
@RequestMapping(value = "products/maxQuantity/clients/{client}", method = RequestMethod.GET) @ResponseBody public void getProductsMaxQuantity(@PathVariable String client, HttpServletResponse response) throws Exception { List<Product> lstProducts = statisticService.findProductsMaxQuantity(client); ...
@RequestMapping(value = STR, method = RequestMethod.GET) void function(@PathVariable String client, HttpServletResponse response) throws Exception { List<Product> lstProducts = statisticService.findProductsMaxQuantity(client); ObjectMapper mapper = getObjectMapper(); String json = mapper.writer().writeValueAsString(lst...
/** * Get products (beverages) data with quantities for a client * @param client * @param response json * @throws Exception */
Get products (beverages) data with quantities for a client
getProductsMaxQuantity
{ "repo_name": "WBSS/myCoffee", "path": "src/main/java/com/wbss/mycoffee/ui/services/ApiController.java", "license": "apache-2.0", "size": 5040 }
[ "com.wbss.mycoffee.ui.helper.view.Product", "java.util.List", "javax.servlet.http.HttpServletResponse", "org.codehaus.jackson.map.ObjectMapper", "org.springframework.web.bind.annotation.PathVariable", "org.springframework.web.bind.annotation.RequestMapping", "org.springframework.web.bind.annotation.Requ...
import com.wbss.mycoffee.ui.helper.view.Product; import java.util.List; import javax.servlet.http.HttpServletResponse; import org.codehaus.jackson.map.ObjectMapper; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web....
import com.wbss.mycoffee.ui.helper.view.*; import java.util.*; import javax.servlet.http.*; import org.codehaus.jackson.map.*; import org.springframework.web.bind.annotation.*;
[ "com.wbss.mycoffee", "java.util", "javax.servlet", "org.codehaus.jackson", "org.springframework.web" ]
com.wbss.mycoffee; java.util; javax.servlet; org.codehaus.jackson; org.springframework.web;
494,454
EAttribute getConstants_MAXIMAL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION();
EAttribute getConstants_MAXIMAL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION();
/** * Returns the meta object for the attribute '{@link TaxationWithRoot.Constants#getMAXIMAL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION <em>MAXIMAL DISTANCE FOR TRAVEL EXPENSE DEDUCTION</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for the attribute '<em>MAXIMAL DISTANCE FO...
Returns the meta object for the attribute '<code>TaxationWithRoot.Constants#getMAXIMAL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION MAXIMAL DISTANCE FOR TRAVEL EXPENSE DEDUCTION</code>'.
getConstants_MAXIMAL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION
{ "repo_name": "viatra/VIATRA-Generator", "path": "Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/TaxationPackage.java", "license": "epl-1.0", "size": 295635 }
[ "org.eclipse.emf.ecore.EAttribute" ]
import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
2,232,997
public boolean getHeadlight() { if ( headlight == null ) { headlight = (SFBool)getField( "headlight" ); } return( headlight.getValue( ) ); }
boolean function() { if ( headlight == null ) { headlight = (SFBool)getField( STR ); } return( headlight.getValue( ) ); }
/** Return the headlight boolean value. * @return The headlight boolean value. */
Return the headlight boolean value
getHeadlight
{ "repo_name": "Norkart/NK-VirtualGlobe", "path": "Xj3D/src/java/org/xj3d/sai/internal/node/geospatial/SAIGeoViewpoint.java", "license": "gpl-2.0", "size": 10436 }
[ "org.web3d.x3d.sai.SFBool" ]
import org.web3d.x3d.sai.SFBool;
import org.web3d.x3d.sai.*;
[ "org.web3d.x3d" ]
org.web3d.x3d;
2,902,577
@Override public void cloudletFinish(ResCloudlet rcl) { rcl.setCloudletStatus(Cloudlet.SUCCESS); rcl.finalizeCloudlet(); getCloudletFinishedList().add(rcl); usedPes -= rcl.getNumberOfPes(); }
void function(ResCloudlet rcl) { rcl.setCloudletStatus(Cloudlet.SUCCESS); rcl.finalizeCloudlet(); getCloudletFinishedList().add(rcl); usedPes -= rcl.getNumberOfPes(); }
/** * Processes a finished cloudlet. * * @param rcl * finished cloudlet * @pre rgl != $null * @post $none */
Processes a finished cloudlet
cloudletFinish
{ "repo_name": "ianmalcolm/compsched", "path": "src/main/java/loea/sched/scheduler/SubtaskScheduler.java", "license": "mit", "size": 18446 }
[ "org.cloudbus.cloudsim.Cloudlet", "org.cloudbus.cloudsim.ResCloudlet" ]
import org.cloudbus.cloudsim.Cloudlet; import org.cloudbus.cloudsim.ResCloudlet;
import org.cloudbus.cloudsim.*;
[ "org.cloudbus.cloudsim" ]
org.cloudbus.cloudsim;
199,189
private float distanceToX(BasicEvent event) { float distance = Math.abs(((event.x - location.x) * cosAngle) + ((event.y - location.y) * sinAngle)); // float distance = Math.abs (event.x - location.x); return distance; }
float function(BasicEvent event) { float distance = Math.abs(((event.x - location.x) * cosAngle) + ((event.y - location.y) * sinAngle)); return distance; }
/** Measures distance in x direction, accounting for instantaneousAngle of cluster. * * @return distance in x direction of this cluster to the event, where x is measured along instantaneousAngle=0. */
Measures distance in x direction, accounting for instantaneousAngle of cluster
distanceToX
{ "repo_name": "viktorbahr/jaer", "path": "src/net/sf/jaer/eventprocessing/tracking/EinsteinClusterTracker.java", "license": "lgpl-2.1", "size": 83903 }
[ "net.sf.jaer.event.BasicEvent" ]
import net.sf.jaer.event.BasicEvent;
import net.sf.jaer.event.*;
[ "net.sf.jaer" ]
net.sf.jaer;
381,920
public KeyValue createKeyOnly(boolean lenAsVal) { // KV format: <keylen:4><valuelen:4><key:keylen><value:valuelen> // Rebuild as: <keylen:4><0:4><key:keylen> int dataLen = lenAsVal? Bytes.SIZEOF_INT : 0; byte [] newBuffer = new byte[getKeyLength() + ROW_OFFSET + dataLen]; System.arraycopy(this.by...
KeyValue function(boolean lenAsVal) { int dataLen = lenAsVal? Bytes.SIZEOF_INT : 0; byte [] newBuffer = new byte[getKeyLength() + ROW_OFFSET + dataLen]; System.arraycopy(this.bytes, this.offset, newBuffer, 0, Math.min(newBuffer.length,this.length)); Bytes.putInt(newBuffer, Bytes.SIZEOF_INT, dataLen); if (lenAsVal) { By...
/** * Creates a new KeyValue that only contains the key portion (the value is * set to be null). * @param lenAsVal replace value with the actual value length (false=empty) */
Creates a new KeyValue that only contains the key portion (the value is set to be null)
createKeyOnly
{ "repo_name": "matteobertozzi/hbase", "path": "hbase-common/src/main/java/org/apache/hadoop/hbase/KeyValue.java", "license": "apache-2.0", "size": 89740 }
[ "org.apache.hadoop.hbase.util.Bytes" ]
import org.apache.hadoop.hbase.util.Bytes;
import org.apache.hadoop.hbase.util.*;
[ "org.apache.hadoop" ]
org.apache.hadoop;
963,362
@ServiceMethod(returns = ReturnType.SINGLE) public Response<TableInner> updateWithResponse( String resourceGroupName, String accountName, String tableName, Context context) { return updateWithResponseAsync(resourceGroupName, accountName, tableName, context).block(); }
@ServiceMethod(returns = ReturnType.SINGLE) Response<TableInner> function( String resourceGroupName, String accountName, String tableName, Context context) { return updateWithResponseAsync(resourceGroupName, accountName, tableName, context).block(); }
/** * Creates a new table with the specified table name, under the specified account. * * @param resourceGroupName The name of the resource group within the user's subscription. The name is case * insensitive. * @param accountName The name of the storage account within the specified resourc...
Creates a new table with the specified table name, under the specified account
updateWithResponse
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/resourcemanager/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/implementation/TablesClientImpl.java", "license": "mit", "size": 58245 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.http.rest.Response", "com.azure.core.util.Context", "com.azure.resourcemanager.storage.fluent.models.TableInner" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.Response; import com.azure.core.util.Context; import com.azure.resourcemanager.storage.fluent.models.TableInner;
import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.core.util.*; import com.azure.resourcemanager.storage.fluent.models.*;
[ "com.azure.core", "com.azure.resourcemanager" ]
com.azure.core; com.azure.resourcemanager;
2,459,572
protected void processResourceCharacteristicsRequest(SimEvent ev) { setDatacenterIdsList(CloudSim.getCloudResourceList()); setDatacenterCharacteristicsList(new HashMap<Integer, DatacenterCharacteristics>()); Log.printLine(CloudSim.clock() + ": " + getName() + ": Cloud Resource List received with " + getDa...
void function(SimEvent ev) { setDatacenterIdsList(CloudSim.getCloudResourceList()); setDatacenterCharacteristicsList(new HashMap<Integer, DatacenterCharacteristics>()); Log.printLine(CloudSim.clock() + STR + getName() + STR + getDatacenterIdsList().size() + STR); for (Integer datacenterId : getDatacenterIdsList()) { se...
/** * Process a request for the characteristics of a PowerDatacenter. * * @param ev a SimEvent object * @pre ev != $null * @post $none */
Process a request for the characteristics of a PowerDatacenter
processResourceCharacteristicsRequest
{ "repo_name": "Spirakos/CloudsimTest", "path": "sources/org/cloudbus/cloudsim/DatacenterBroker.java", "license": "lgpl-3.0", "size": 17610 }
[ "java.util.HashMap", "org.cloudbus.cloudsim.core.CloudSim", "org.cloudbus.cloudsim.core.CloudSimTags", "org.cloudbus.cloudsim.core.SimEvent" ]
import java.util.HashMap; import org.cloudbus.cloudsim.core.CloudSim; import org.cloudbus.cloudsim.core.CloudSimTags; import org.cloudbus.cloudsim.core.SimEvent;
import java.util.*; import org.cloudbus.cloudsim.core.*;
[ "java.util", "org.cloudbus.cloudsim" ]
java.util; org.cloudbus.cloudsim;
1,209,476
public static Properties loadProps(String filename) throws FileNotFoundException, IOException { InputStream propStream = new FileInputStream(filename); Properties props = new Properties(); props.load(propStream); return props; }
static Properties function(String filename) throws FileNotFoundException, IOException { InputStream propStream = new FileInputStream(filename); Properties props = new Properties(); props.load(propStream); return props; }
/** * Read a properties file from the given path * * @param filename The path of the file to read */
Read a properties file from the given path
loadProps
{ "repo_name": "vgkholla/ambry", "path": "ambry-utils/src/main/java/com.github.ambry.utils/Utils.java", "license": "apache-2.0", "size": 34279 }
[ "java.io.FileInputStream", "java.io.FileNotFoundException", "java.io.IOException", "java.io.InputStream", "java.util.Properties" ]
import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; import java.util.Properties;
import java.io.*; import java.util.*;
[ "java.io", "java.util" ]
java.io; java.util;
1,344,949
@Path("{role-name}/composites") @GET @NoCache @Produces(MediaType.APPLICATION_JSON) public Stream<RoleRepresentation> getRoleComposites(final @PathParam("role-name") String roleName) { auth.roles().requireView(roleContainer); RoleModel role = roleContainer.getRole(roleName); ...
@Path(STR) @Produces(MediaType.APPLICATION_JSON) Stream<RoleRepresentation> function(final @PathParam(STR) String roleName) { auth.roles().requireView(roleContainer); RoleModel role = roleContainer.getRole(roleName); if (role == null) { throw new NotFoundException(STR); } return role.getCompositesStream().map(ModelToRe...
/** * Get composites of the role * * @param roleName role's name (not id!) * @return */
Get composites of the role
getRoleComposites
{ "repo_name": "pedroigor/keycloak", "path": "services/src/main/java/org/keycloak/services/resources/admin/RoleContainerResource.java", "license": "apache-2.0", "size": 17131 }
[ "java.util.stream.Stream", "javax.ws.rs.NotFoundException", "javax.ws.rs.Path", "javax.ws.rs.PathParam", "javax.ws.rs.Produces", "javax.ws.rs.core.MediaType", "org.keycloak.models.RoleModel", "org.keycloak.models.utils.ModelToRepresentation", "org.keycloak.representations.idm.RoleRepresentation" ]
import java.util.stream.Stream; import javax.ws.rs.NotFoundException; import javax.ws.rs.Path; import javax.ws.rs.PathParam; import javax.ws.rs.Produces; import javax.ws.rs.core.MediaType; import org.keycloak.models.RoleModel; import org.keycloak.models.utils.ModelToRepresentation; import org.keycloak.representations.i...
import java.util.stream.*; import javax.ws.rs.*; import javax.ws.rs.core.*; import org.keycloak.models.*; import org.keycloak.models.utils.*; import org.keycloak.representations.idm.*;
[ "java.util", "javax.ws", "org.keycloak.models", "org.keycloak.representations" ]
java.util; javax.ws; org.keycloak.models; org.keycloak.representations;
1,247,644
List<OriginalFile> getMyUserPhotos();
List<OriginalFile> getMyUserPhotos();
/** * Retrieve the {@link ome.model.core.OriginalFile} object attached to this * user as specified by {@link #uploadMyUserPhoto(String, String, byte[])}. * The return value is order by the most recently modified file first. * * @return file objects. Possibly empty. */
Retrieve the <code>ome.model.core.OriginalFile</code> object attached to this user as specified by <code>#uploadMyUserPhoto(String, String, byte[])</code>. The return value is order by the most recently modified file first
getMyUserPhotos
{ "repo_name": "tp81/openmicroscopy", "path": "components/common/src/ome/api/IAdmin.java", "license": "gpl-2.0", "size": 22705 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,199,589
//------------------------------------------------------------------------- public static ScenarioMarketData of( int scenarioCount, LocalDate valuationDate, Map<? extends MarketDataId<?>, MarketDataBox<?>> values, Map<? extends ObservableId, LocalDateDoubleTimeSeries> timeSeries) { ret...
static ScenarioMarketData function( int scenarioCount, LocalDate valuationDate, Map<? extends MarketDataId<?>, MarketDataBox<?>> values, Map<? extends ObservableId, LocalDateDoubleTimeSeries> timeSeries) { return of(scenarioCount, MarketDataBox.ofSingleValue(valuationDate), values, timeSeries); }
/** * Obtains an instance from a valuation date, map of values and time-series. * <p> * The valuation date and map of values must have the same number of scenarios. * * @param scenarioCount the number of scenarios * @param valuationDate the valuation dates associated with all scenarios * @param ...
Obtains an instance from a valuation date, map of values and time-series. The valuation date and map of values must have the same number of scenarios
of
{ "repo_name": "OpenGamma/Strata", "path": "modules/data/src/main/java/com/opengamma/strata/data/scenario/ScenarioMarketData.java", "license": "apache-2.0", "size": 14794 }
[ "com.opengamma.strata.collect.timeseries.LocalDateDoubleTimeSeries", "com.opengamma.strata.data.MarketDataId", "com.opengamma.strata.data.ObservableId", "java.time.LocalDate", "java.util.Map" ]
import com.opengamma.strata.collect.timeseries.LocalDateDoubleTimeSeries; import com.opengamma.strata.data.MarketDataId; import com.opengamma.strata.data.ObservableId; import java.time.LocalDate; import java.util.Map;
import com.opengamma.strata.collect.timeseries.*; import com.opengamma.strata.data.*; import java.time.*; import java.util.*;
[ "com.opengamma.strata", "java.time", "java.util" ]
com.opengamma.strata; java.time; java.util;
1,857,874
public static ExoPlaybackException createForOutOfMemoryError(OutOfMemoryError cause) { return new ExoPlaybackException(TYPE_OUT_OF_MEMORY, cause); } private ExoPlaybackException(@Type int type, Throwable cause) { this( type, cause, C.INDEX_UNSET, null, RendererC...
static ExoPlaybackException function(OutOfMemoryError cause) { return new ExoPlaybackException(TYPE_OUT_OF_MEMORY, cause); } private ExoPlaybackException(@Type int type, Throwable cause) { this( type, cause, C.INDEX_UNSET, null, RendererCapabilities.FORMAT_HANDLED); } private ExoPlaybackException( @Type int type, Throw...
/** * Creates an instance of type {@link #TYPE_OUT_OF_MEMORY}. * * @param cause The cause of the failure. * @return The created instance. */
Creates an instance of type <code>#TYPE_OUT_OF_MEMORY</code>
createForOutOfMemoryError
{ "repo_name": "superbderrick/ExoPlayer", "path": "library/core/src/main/java/com/google/android/exoplayer2/ExoPlaybackException.java", "license": "apache-2.0", "size": 8129 }
[ "android.os.SystemClock", "androidx.annotation.Nullable", "com.google.android.exoplayer2.RendererCapabilities" ]
import android.os.SystemClock; import androidx.annotation.Nullable; import com.google.android.exoplayer2.RendererCapabilities;
import android.os.*; import androidx.annotation.*; import com.google.android.exoplayer2.*;
[ "android.os", "androidx.annotation", "com.google.android" ]
android.os; androidx.annotation; com.google.android;
2,224,987
public void initializePackageContents() { if (isInitialized) return; isInitialized = true; // Initialize package setName(eNAME); setNsPrefix(eNS_PREFIX); setNsURI(eNS_URI); // Create type parameters // Set bounds for type parameters // Add supertypes to classes // Initialize classes and feat...
void function() { if (isInitialized) return; isInitialized = true; setName(eNAME); setNsPrefix(eNS_PREFIX); setNsURI(eNS_URI); initEClass(activityExtensionEClass, ActivityExtension.class, STR, !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getActivityExtension_X(), ecorePackage.getEInt(), "x"...
/** * Complete the initialization of the package and its meta-model. This * method is guarded to have no affect on any invocation but its first. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */
Complete the initialization of the package and its meta-model. This method is guarded to have no affect on any invocation but its first.
initializePackageContents
{ "repo_name": "Drifftr/devstudio-tooling-bps", "path": "plugins/org.eclipse.bpel.ui.noEmbeddedEditors/src/org/eclipse/bpel/ui/uiextensionmodel/impl/UiextensionmodelPackageImpl.java", "license": "apache-2.0", "size": 20796 }
[ "org.eclipse.bpel.ui.uiextensionmodel.ActivityExtension", "org.eclipse.bpel.ui.uiextensionmodel.CaseExtension", "org.eclipse.bpel.ui.uiextensionmodel.CopyExtension", "org.eclipse.bpel.ui.uiextensionmodel.EndNode", "org.eclipse.bpel.ui.uiextensionmodel.LinkExtension", "org.eclipse.bpel.ui.uiextensionmodel....
import org.eclipse.bpel.ui.uiextensionmodel.ActivityExtension; import org.eclipse.bpel.ui.uiextensionmodel.CaseExtension; import org.eclipse.bpel.ui.uiextensionmodel.CopyExtension; import org.eclipse.bpel.ui.uiextensionmodel.EndNode; import org.eclipse.bpel.ui.uiextensionmodel.LinkExtension; import org.eclipse.bpel.ui....
import org.eclipse.bpel.ui.uiextensionmodel.*;
[ "org.eclipse.bpel" ]
org.eclipse.bpel;
1,544,229
public void movieTableHasRightColumns (SQLiteDatabase db) { // test movie table has correct columns Cursor c = db.rawQuery("PRAGMA table_info(" + MovieColumns.TABLE_NAME + ")", null); assertTrue("Our movie table should have columns", c.moveToFirst()); // Build a Has...
void function (SQLiteDatabase db) { Cursor c = db.rawQuery(STR + MovieColumns.TABLE_NAME + ")", null); assertTrue(STR, c.moveToFirst()); final HashSet<String> movieColumnSet = new HashSet<String>(); movieColumnSet.add(MovieColumns._ID); movieColumnSet.add(MovieColumns.BACKDROP_PATH); movieColumnSet.add(MovieColumns.MOV...
/** * Test the movie table has the right columns * @param db */
Test the movie table has the right columns
movieTableHasRightColumns
{ "repo_name": "frank-tan/Popular-Movies", "path": "app/src/androidTest/java/com/franktan/popularmovies/data/DBHelperTest.java", "license": "apache-2.0", "size": 11695 }
[ "android.database.Cursor", "android.database.sqlite.SQLiteDatabase", "com.franktan.popularmovies.data.movie.MovieColumns", "java.util.HashSet" ]
import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import com.franktan.popularmovies.data.movie.MovieColumns; import java.util.HashSet;
import android.database.*; import android.database.sqlite.*; import com.franktan.popularmovies.data.movie.*; import java.util.*;
[ "android.database", "com.franktan.popularmovies", "java.util" ]
android.database; com.franktan.popularmovies; java.util;
1,578,734
void setRootNode(GraphicsNode root);
void setRootNode(GraphicsNode root);
/** * Sets the root node for MouseEvent dispatch containment searches * and field selections. * @param root the root node */
Sets the root node for MouseEvent dispatch containment searches and field selections
setRootNode
{ "repo_name": "git-moss/Push2Display", "path": "lib/batik-1.8/sources/org/apache/batik/gvt/event/EventDispatcher.java", "license": "lgpl-3.0", "size": 5067 }
[ "org.apache.batik.gvt.GraphicsNode" ]
import org.apache.batik.gvt.GraphicsNode;
import org.apache.batik.gvt.*;
[ "org.apache.batik" ]
org.apache.batik;
2,730,307
public void setInt(String name, int value) throws SQLException { int[] indexes = getIndexes(name); for (int i = 0; i < indexes.length; i++) { statement.setInt(indexes[i], value); } }
void function(String name, int value) throws SQLException { int[] indexes = getIndexes(name); for (int i = 0; i < indexes.length; i++) { statement.setInt(indexes[i], value); } }
/** * Sets a parameter. * * @param name * parameter name * @param value * parameter value * @throws SQLException * if an error occurred * @throws IllegalArgumentException * if the parameter does not exist * @see PreparedStatement#setInt(int, int) */
Sets a parameter
setInt
{ "repo_name": "adamitj/oss-adamiworks", "path": "MirrorDB/src/main/java/com/adamiworks/mirrordb/util/NamedParameterStatement.java", "license": "gpl-2.0", "size": 8712 }
[ "java.sql.SQLException" ]
import java.sql.SQLException;
import java.sql.*;
[ "java.sql" ]
java.sql;
1,951,845
public Type typeCheck(SymbolTable stable) throws TypeCheckError { _left.typeCheck(stable); _right.typeCheck(stable); return null; }
Type function(SymbolTable stable) throws TypeCheckError { _left.typeCheck(stable); _right.typeCheck(stable); return null; }
/** * The type of an '|' is not really defined, hence null is returned. */
The type of an '|' is not really defined, hence null is returned
typeCheck
{ "repo_name": "shun634501730/java_source_cn", "path": "src_en/com/sun/org/apache/xalan/internal/xsltc/compiler/AlternativePattern.java", "license": "apache-2.0", "size": 3250 }
[ "com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type", "com.sun.org.apache.xalan.internal.xsltc.compiler.util.TypeCheckError" ]
import com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type; import com.sun.org.apache.xalan.internal.xsltc.compiler.util.TypeCheckError;
import com.sun.org.apache.xalan.internal.xsltc.compiler.util.*;
[ "com.sun.org" ]
com.sun.org;
1,476,328
@Test(expected = IndexOutOfBoundsException.class) public void subSequenceEndTooLarge() { SMALL_DOCUMENT_SUBDOCUMENT.subSequence(0, 3); }
@Test(expected = IndexOutOfBoundsException.class) void function() { SMALL_DOCUMENT_SUBDOCUMENT.subSequence(0, 3); }
/** * Asserts that {@link Document.SubDocument#subSequence(int, int)} throws an {@link IndexOutOfBoundsException} when the * <code>end</code> argument is greater than the subdocument's length. */
Asserts that <code>Document.SubDocument#subSequence(int, int)</code> throws an <code>IndexOutOfBoundsException</code> when the <code>end</code> argument is greater than the subdocument's length
subSequenceEndTooLarge
{ "repo_name": "FraGag/fragag-commons", "path": "src/test/java/ca/fragag/text/DocumentSubDocumentTest.java", "license": "mit", "size": 3335 }
[ "org.junit.Test" ]
import org.junit.Test;
import org.junit.*;
[ "org.junit" ]
org.junit;
2,353,468
public static void copyQueryPlans(Statement copy_src, Statement copy_dest) { // Update both the single and multi-partition query plans for (boolean sp : new boolean[] { true, false }) { if (debug.val) LOG.debug(String.format("Copying %s-partition query plan from %s to %s"...
static void function(Statement copy_src, Statement copy_dest) { for (boolean sp : new boolean[] { true, false }) { if (debug.val) LOG.debug(String.format(STR, (sp ? STR : "multi"), copy_src.fullName(), copy_dest.fullName())); String fields[] = { (sp ? STRms_STRexptree", (sp ? STRms_STRfullplanSTRhas_" + (sp ? STR : "mu...
/** * Copy the query plans from Statement to another. * This will overwrite both the existing single-partition and * multi-partition query plans. * @param copy_src * @param copy_dest */
Copy the query plans from Statement to another. This will overwrite both the existing single-partition and multi-partition query plans
copyQueryPlans
{ "repo_name": "gxyang/hstore", "path": "src/frontend/edu/brown/catalog/CatalogUtil.java", "license": "gpl-3.0", "size": 121408 }
[ "org.voltdb.catalog.Statement" ]
import org.voltdb.catalog.Statement;
import org.voltdb.catalog.*;
[ "org.voltdb.catalog" ]
org.voltdb.catalog;
880,085
private void visitCall(NodeTraversal t, Node n) { checkCallConventions(t, n); Node child = n.getFirstChild(); JSType childType = getJSType(child).restrictByNotNullOrUndefined(); if (!childType.canBeCalled()) { report(t, n, NOT_CALLABLE, childType.toString()); ensureTyped(t, n); ret...
void function(NodeTraversal t, Node n) { checkCallConventions(t, n); Node child = n.getFirstChild(); JSType childType = getJSType(child).restrictByNotNullOrUndefined(); if (!childType.canBeCalled()) { report(t, n, NOT_CALLABLE, childType.toString()); ensureTyped(t, n); return; } if (childType.isFunctionType()) { Functi...
/** * Visits a CALL node. * * @param t The node traversal object that supplies context, such as the * scope chain to use in name lookups as well as error reporting. * @param n The node being visited. */
Visits a CALL node
visitCall
{ "repo_name": "nicks/closure-compiler-old", "path": "src/com/google/javascript/jscomp/TypeCheck.java", "license": "apache-2.0", "size": 74699 }
[ "com.google.javascript.rhino.Node", "com.google.javascript.rhino.jstype.FunctionType", "com.google.javascript.rhino.jstype.JSType" ]
import com.google.javascript.rhino.Node; import com.google.javascript.rhino.jstype.FunctionType; import com.google.javascript.rhino.jstype.JSType;
import com.google.javascript.rhino.*; import com.google.javascript.rhino.jstype.*;
[ "com.google.javascript" ]
com.google.javascript;
2,019,951
Sheet getSheet(String tableName) { return excelWorkbook.getSheet(getSheetName(tableName)); }
Sheet getSheet(String tableName) { return excelWorkbook.getSheet(getSheetName(tableName)); }
/** * Get the sheet from table name. * * @param tableName * @return null if sheet does not exists */
Get the sheet from table name
getSheet
{ "repo_name": "obiba/magma", "path": "magma-datasource-excel/src/main/java/org/obiba/magma/datasource/excel/ExcelDatasource.java", "license": "gpl-3.0", "size": 25271 }
[ "org.apache.poi.ss.usermodel.Sheet" ]
import org.apache.poi.ss.usermodel.Sheet;
import org.apache.poi.ss.usermodel.*;
[ "org.apache.poi" ]
org.apache.poi;
2,140,733
@Override public JSType getTypeOfThis() { if (isGlobal()) { return ObjectType.cast(rootNode.getJSType()); } Preconditions.checkState(rootNode.isFunction()); JSType nodeType = rootNode.getJSType(); if (nodeType != null && nodeType.isFunctionType()) { return nodeType.toMaybeFunctionTy...
JSType function() { if (isGlobal()) { return ObjectType.cast(rootNode.getJSType()); } Preconditions.checkState(rootNode.isFunction()); JSType nodeType = rootNode.getJSType(); if (nodeType != null && nodeType.isFunctionType()) { return nodeType.toMaybeFunctionType().getTypeOfThis(); } else { return parent.getTypeOfThis(...
/** * Gets the type of {@code this} in the current scope. */
Gets the type of this in the current scope
getTypeOfThis
{ "repo_name": "nicks/closure-compiler-old", "path": "src/com/google/javascript/jscomp/Scope.java", "license": "apache-2.0", "size": 16603 }
[ "com.google.common.base.Preconditions", "com.google.javascript.rhino.jstype.JSType", "com.google.javascript.rhino.jstype.ObjectType" ]
import com.google.common.base.Preconditions; import com.google.javascript.rhino.jstype.JSType; import com.google.javascript.rhino.jstype.ObjectType;
import com.google.common.base.*; import com.google.javascript.rhino.jstype.*;
[ "com.google.common", "com.google.javascript" ]
com.google.common; com.google.javascript;
792,260
@Override public void queueRecord(Record record) { final double oneMiliSecond = 1000000.0; thisRunQueued++; //try { if (log.isTraceEnabled()) { //noinspection DuplicateStringLiteralInspection log.trace(String.format("Produced record in %.5f ms: %s. queuein...
void function(Record record) { final double oneMiliSecond = 1000000.0; thisRunQueued++; if (log.isTraceEnabled()) { log.trace(String.format(STR, (System.nanoTime() - lastRecordStart) / oneMiliSecond, record)); } addToQueue(record); lastRecordStart = System.nanoTime(); }
/** * Insert the given Record into the queue. This will block if the queue is * full. * * @param record the Record to insert. */
Insert the given Record into the queue. This will block if the queue is full
queueRecord
{ "repo_name": "statsbiblioteket/summa", "path": "Core/src/main/java/dk/statsbiblioteket/summa/ingest/split/XMLSplitterParser.java", "license": "apache-2.0", "size": 4846 }
[ "dk.statsbiblioteket.summa.common.Record" ]
import dk.statsbiblioteket.summa.common.Record;
import dk.statsbiblioteket.summa.common.*;
[ "dk.statsbiblioteket.summa" ]
dk.statsbiblioteket.summa;
2,834,225
public void setOrganization(Organization organization) { this.organization = organization; }
void function(Organization organization) { this.organization = organization; }
/** * Sets the organization attribute. * * @param organization The organization to set. * @deprecated */
Sets the organization attribute
setOrganization
{ "repo_name": "Ariah-Group/Finance", "path": "af_webapp/src/main/java/org/kuali/kfs/module/bc/businessobject/BudgetConstructionObjectDump.java", "license": "apache-2.0", "size": 10044 }
[ "org.kuali.kfs.coa.businessobject.Organization" ]
import org.kuali.kfs.coa.businessobject.Organization;
import org.kuali.kfs.coa.businessobject.*;
[ "org.kuali.kfs" ]
org.kuali.kfs;
604,253
protected AWSCredentials createCredentials(final String accessKey, final String secretKey) { AWSCredentials result = null; if (StringUtils.hasText(accessKey) && StringUtils.hasText(secretKey)) { result = new BasicAWSCredentials(accessKey, secretKey); } ...
AWSCredentials function(final String accessKey, final String secretKey) { AWSCredentials result = null; if (StringUtils.hasText(accessKey) && StringUtils.hasText(secretKey)) { result = new BasicAWSCredentials(accessKey, secretKey); } return result; } }
/** * create AWS-credentials from either access/secret-strings or global * credentials Explicit strings have priority above credentials * * @param accessKey AWS access key * @param secretKey AWS secret key * @return a credentials-object or null if no valid credenti...
create AWS-credentials from either access/secret-strings or global credentials Explicit strings have priority above credentials
createCredentials
{ "repo_name": "jenkinsci/ec2-deployment-dashboard", "path": "src/main/java/de/codecentric/jenkins/dashboard/ec2/AwsKeyCredentials.java", "license": "mit", "size": 3993 }
[ "com.amazonaws.auth.AWSCredentials", "com.amazonaws.auth.BasicAWSCredentials", "org.springframework.util.StringUtils" ]
import com.amazonaws.auth.AWSCredentials; import com.amazonaws.auth.BasicAWSCredentials; import org.springframework.util.StringUtils;
import com.amazonaws.auth.*; import org.springframework.util.*;
[ "com.amazonaws.auth", "org.springframework.util" ]
com.amazonaws.auth; org.springframework.util;
1,849,742
protected IPath getDefaultSystemLibrarySource(File libLocation) { File parent= libLocation.getParentFile(); while (parent != null) { File parentsrc= new File(parent, "src.jar"); //$NON-NLS-1$ if (parentsrc.isFile()) { setDefaultRootPath("src");//$NON-NLS-1$ return new Path(parentsrc.getPath()); ...
IPath function(File libLocation) { File parent= libLocation.getParentFile(); while (parent != null) { File parentsrc= new File(parent, STR); if (parentsrc.isFile()) { setDefaultRootPath("src"); return new Path(parentsrc.getPath()); } parentsrc= new File(parent, STR); if (parentsrc.isFile()) { setDefaultRootPath(STR"); ...
/** * Returns a path to the source attachment for the given libaray, or * an empty path if none. * * @param libLocation * @return a path to the source attachment for the given library, or * an empty path if none */
Returns a path to the source attachment for the given libaray, or an empty path if none
getDefaultSystemLibrarySource
{ "repo_name": "cooked/NDT", "path": "sc.ndt.launching.fast/src/sc/nrel/nwtc/fast/launching/StandardFASTType.java", "license": "gpl-3.0", "size": 22334 }
[ "java.io.File", "org.eclipse.core.runtime.IPath", "org.eclipse.core.runtime.Path" ]
import java.io.File; import org.eclipse.core.runtime.IPath; import org.eclipse.core.runtime.Path;
import java.io.*; import org.eclipse.core.runtime.*;
[ "java.io", "org.eclipse.core" ]
java.io; org.eclipse.core;
2,790,505
private static CompositeSoundComponent deduceContainer(EObject source, EObject target) { // Find container element for the new link. // Climb up by containment hierarchy starting from the source // and return the first element that is instance of the container class. for (EObject element = source; element...
static CompositeSoundComponent function(EObject source, EObject target) { for (EObject element = source; element != null; element = element .eContainer()) { if (element instanceof CompositeSoundComponent) { return (CompositeSoundComponent) element; } } return null; }
/** * Default approach is to traverse ancestors of the source to find instance of container. * Modify with appropriate logic. * @generated */
Default approach is to traverse ancestors of the source to find instance of container. Modify with appropriate logic
deduceContainer
{ "repo_name": "EPiCS/soundgates", "path": "software/editor/Soundgates.diagram/src/soundgates/diagram/edit/commands/Link2CreateCommand.java", "license": "mit", "size": 4915 }
[ "org.eclipse.emf.ecore.EObject" ]
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
2,189,203
public void addResource(InputStream in) { addResourceObject(in); }
void function(InputStream in) { addResourceObject(in); }
/** * Add a configuration resource. * * The properties of this resource will override properties of previously * added resources, unless they were marked <a href="#Final">final</a>. * * @param in InputStream to deserialize the object from. */
Add a configuration resource. The properties of this resource will override properties of previously added resources, unless they were marked final
addResource
{ "repo_name": "kl0u/visco", "path": "src/core/org/apache/hadoop/conf/Configuration.java", "license": "apache-2.0", "size": 47623 }
[ "java.io.InputStream" ]
import java.io.InputStream;
import java.io.*;
[ "java.io" ]
java.io;
2,816,028
public LocationListener getActiveLocationListener() { if (Display.getInstance().isMinimized() && Preferences.get(PREFS_BACKGROUND_LOCATION_UPDATING, false) && getBackgroundLocationListenerInstance() != null) { return getBackgroundLocationListe...
LocationListener function() { if (Display.getInstance().isMinimized() && Preferences.get(PREFS_BACKGROUND_LOCATION_UPDATING, false) && getBackgroundLocationListenerInstance() != null) { return getBackgroundLocationListenerInstance(); } else { return getLocationListener(); } }
/** * If the app is running in the background and a background listener * is registered, and active, then this will return the background listener * instance. Otherwise this should return the regular location listener. * @return */
If the app is running in the background and a background listener is registered, and active, then this will return the background listener instance. Otherwise this should return the regular location listener
getActiveLocationListener
{ "repo_name": "shannah/CodenameOne", "path": "Ports/iOSPort/src/com/codename1/impl/ios/IOSImplementation.java", "license": "gpl-2.0", "size": 281624 }
[ "com.codename1.io.Preferences", "com.codename1.location.LocationListener", "com.codename1.ui.Display" ]
import com.codename1.io.Preferences; import com.codename1.location.LocationListener; import com.codename1.ui.Display;
import com.codename1.io.*; import com.codename1.location.*; import com.codename1.ui.*;
[ "com.codename1.io", "com.codename1.location", "com.codename1.ui" ]
com.codename1.io; com.codename1.location; com.codename1.ui;
1,042,096
private void initConnectionProxy() throws CqException, RegionNotFoundException { cqBaseRegion = (LocalRegion) cqService.getCache().getRegion(regionName); // Check if the region exists on the local cache. // In the current implementation of 5.1 the Server Connection is (ConnectionProxyImpl) // is obtai...
void function() throws CqException, RegionNotFoundException { cqBaseRegion = (LocalRegion) cqService.getCache().getRegion(regionName); if (cqBaseRegion == null) { throw new RegionNotFoundException( String.format(STR, regionName)); } ServerRegionProxy srp = cqBaseRegion.getServerProxy(); if (srp != null) { if (logger.is...
/** * Initializes the connection using the pool from the client region. Also sets the cqBaseRegion * value of this CQ. */
Initializes the connection using the pool from the client region. Also sets the cqBaseRegion value of this CQ
initConnectionProxy
{ "repo_name": "jdeppe-pivotal/geode", "path": "geode-cq/src/main/java/org/apache/geode/cache/query/cq/internal/ClientCQImpl.java", "license": "apache-2.0", "size": 20698 }
[ "org.apache.geode.cache.client.internal.ServerRegionProxy", "org.apache.geode.cache.query.CqException", "org.apache.geode.cache.query.RegionNotFoundException", "org.apache.geode.cache.query.cq.internal.ops.ServerCQProxyImpl", "org.apache.geode.internal.cache.LocalRegion" ]
import org.apache.geode.cache.client.internal.ServerRegionProxy; import org.apache.geode.cache.query.CqException; import org.apache.geode.cache.query.RegionNotFoundException; import org.apache.geode.cache.query.cq.internal.ops.ServerCQProxyImpl; import org.apache.geode.internal.cache.LocalRegion;
import org.apache.geode.cache.client.internal.*; import org.apache.geode.cache.query.*; import org.apache.geode.cache.query.cq.internal.ops.*; import org.apache.geode.internal.cache.*;
[ "org.apache.geode" ]
org.apache.geode;
2,044,204
void complete() throws ExecutionException; /** * Wait for availability of the resource or dependency. * * @throws InterruptedException * If the waiting thread is interrupted * @throws ExecutionException * If the block has been notified of failure via * {@link #fail(Thro...
void complete() throws ExecutionException; /** * Wait for availability of the resource or dependency. * * @throws InterruptedException * If the waiting thread is interrupted * @throws ExecutionException * If the block has been notified of failure via * {@link #fail(Throwable)}
/** * Signal that the resource or dependency represented by this block has become * available */
Signal that the resource or dependency represented by this block has become available
complete
{ "repo_name": "StrangeSkies/uk.co.strangeskies.modabi", "path": "uk.co.strangeskies.modabi.core.api/src/uk/co/strangeskies/modabi/processing/BindingBlock.java", "license": "gpl-3.0", "size": 4055 }
[ "java.util.concurrent.ExecutionException" ]
import java.util.concurrent.ExecutionException;
import java.util.concurrent.*;
[ "java.util" ]
java.util;
118,734
// TODO: this should specify paths as Strings rather than as Files private static void deleteContents(File dir) throws IOException { File[] files = dir.listFiles(); if (files == null) { throw new IllegalArgumentException("not a directory: " + dir); } for (File file : ...
static void function(File dir) throws IOException { File[] files = dir.listFiles(); if (files == null) { throw new IllegalArgumentException(STR + dir); } for (File file : files) { if (file.isDirectory()) { deleteContents(file); } if (!file.delete()) { throw new IOException(STR + file); } } }
/** * Recursively delete everything in {@code dir}. */
Recursively delete everything in dir
deleteContents
{ "repo_name": "fenfir/mtg-familiar", "path": "mobile/src/main/java/com/gelakinetic/mtgfam/helpers/lruCache/DiskLruCache.java", "license": "mit", "size": 33875 }
[ "java.io.File", "java.io.IOException" ]
import java.io.File; import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
1,338,688
public Collection<Map.Entry<K, V>> getEntries() { return Collections.unmodifiableCollection(getMap().entrySet()); }
Collection<Map.Entry<K, V>> function() { return Collections.unmodifiableCollection(getMap().entrySet()); }
/*************************************** * Returns an immutable {@link Collection} of the map entries stored in this * data element. * * @return The entry collection */
Returns an immutable <code>Collection</code> of the map entries stored in this data element
getEntries
{ "repo_name": "esoco/esoco-business", "path": "src/main/java/de/esoco/data/element/MapDataElement.java", "license": "apache-2.0", "size": 7795 }
[ "java.util.Collection", "java.util.Collections", "java.util.Map" ]
import java.util.Collection; import java.util.Collections; import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
1,049,403
@Test public void testUserPrincipalAuth() throws ParseException { String msg = "2015-12-22 17:07:03,359 INFO SecurityLogger.org.apache.hadoop.security.authorize.ServiceAuthorizationManager: Authorization successful for hbase@EXAMPLE.COM (auth:KERBEROS) for protocol=interface org.apache.hadoop.hdfs.protoco...
void function() throws ParseException { String msg = STR; verifyParserAttributes(msg); }
/** * Test success log message with kerberos auth for user principal * @throws ParseException */
Test success log message with kerberos auth for user principal
testUserPrincipalAuth
{ "repo_name": "pkuwm/incubator-eagle", "path": "eagle-security/eagle-security-hdfs-securitylog/src/test/java/org/apache/eagle/security/TestHDFSSecuritylogParser.java", "license": "apache-2.0", "size": 2888 }
[ "java.text.ParseException" ]
import java.text.ParseException;
import java.text.*;
[ "java.text" ]
java.text;
2,144,505
public void testDesignerState( ) throws Exception { openDesign( "OdaDataSetConvertDesignerState.xml" ); //$NON-NLS-1$ OdaDataSetHandle setHandle = (OdaDataSetHandle) designHandle .findDataSet( "myDataSet1" ); //$NON-NLS-1$ DesignerState designerState = new ModelOdaAdapter( ) .newOdaDesignerState( set...
void function( ) throws Exception { openDesign( STR ); OdaDataSetHandle setHandle = (OdaDataSetHandle) designHandle .findDataSet( STR ); DesignerState designerState = new ModelOdaAdapter( ) .newOdaDesignerState( setHandle ); assertEquals( "1.1", designerState.getVersion( ) ); DesignerStateContent stateContent = designe...
/** * Tests functions to convert Designer State on a set Design. * * @throws Exception */
Tests functions to convert Designer State on a set Design
testDesignerState
{ "repo_name": "Charling-Huang/birt", "path": "model/org.eclipse.birt.report.model.adapter.oda.tests/test/org/eclipse/birt/report/model/adapter/oda/api/OdaDataSetAdapterTest.java", "license": "epl-1.0", "size": 19025 }
[ "org.eclipse.birt.report.model.adapter.oda.ModelOdaAdapter", "org.eclipse.birt.report.model.api.OdaDataSetHandle", "org.eclipse.birt.report.model.api.OdaDesignerStateHandle", "org.eclipse.datatools.connectivity.oda.design.DesignerState", "org.eclipse.datatools.connectivity.oda.design.DesignerStateContent" ]
import org.eclipse.birt.report.model.adapter.oda.ModelOdaAdapter; import org.eclipse.birt.report.model.api.OdaDataSetHandle; import org.eclipse.birt.report.model.api.OdaDesignerStateHandle; import org.eclipse.datatools.connectivity.oda.design.DesignerState; import org.eclipse.datatools.connectivity.oda.design.DesignerS...
import org.eclipse.birt.report.model.adapter.oda.*; import org.eclipse.birt.report.model.api.*; import org.eclipse.datatools.connectivity.oda.design.*;
[ "org.eclipse.birt", "org.eclipse.datatools" ]
org.eclipse.birt; org.eclipse.datatools;
1,989,669
EntityDeterminer getDeterminerCode();
EntityDeterminer getDeterminerCode();
/** * Returns the value of the '<em><b>Determiner Code</b></em>' attribute. * The default value is <code>"INSTANCE"</code>. * The literals are from the enumeration {@link org.openhealthtools.mdht.uml.hl7.vocab.EntityDeterminer}. * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Determiner C...
Returns the value of the 'Determiner Code' attribute. The default value is <code>"INSTANCE"</code>. The literals are from the enumeration <code>org.openhealthtools.mdht.uml.hl7.vocab.EntityDeterminer</code>. If the meaning of the 'Determiner Code' attribute isn't clear, there really should be more of a description here...
getDeterminerCode
{ "repo_name": "drbgfc/mdht", "path": "cda/plugins/org.openhealthtools.mdht.uml.cda/src/org/openhealthtools/mdht/uml/cda/AuthoringDevice.java", "license": "epl-1.0", "size": 16684 }
[ "org.openhealthtools.mdht.uml.hl7.vocab.EntityDeterminer" ]
import org.openhealthtools.mdht.uml.hl7.vocab.EntityDeterminer;
import org.openhealthtools.mdht.uml.hl7.vocab.*;
[ "org.openhealthtools.mdht" ]
org.openhealthtools.mdht;
2,551,556
public static String getBackReferenceFileName(final Path dirPath) { return dirPath.getName().substring(BACK_REFERENCES_DIRECTORY_PREFIX.length()); }
static String function(final Path dirPath) { return dirPath.getName().substring(BACK_REFERENCES_DIRECTORY_PREFIX.length()); }
/** * Get the referenced file name from the reference link directory path. * * @param dirPath Link references directory path * @return Name of the file referenced */
Get the referenced file name from the reference link directory path
getBackReferenceFileName
{ "repo_name": "justintung/hbase", "path": "hbase-server/src/main/java/org/apache/hadoop/hbase/io/FileLink.java", "license": "apache-2.0", "size": 16375 }
[ "org.apache.hadoop.fs.Path" ]
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.fs.*;
[ "org.apache.hadoop" ]
org.apache.hadoop;
1,289,568
@Pure public SarlEnumLiteralSourceAppender buildSarlEnumLiteral(String name, ResourceSet resourceSet) { SarlEnumLiteralSourceAppender a = new SarlEnumLiteralSourceAppender(createSarlEnumLiteral(name, resourceSet)); getInjector().injectMembers(a); return a; }
SarlEnumLiteralSourceAppender function(String name, ResourceSet resourceSet) { SarlEnumLiteralSourceAppender a = new SarlEnumLiteralSourceAppender(createSarlEnumLiteral(name, resourceSet)); getInjector().injectMembers(a); return a; }
/** Create the appender for a Sarl SarlEnumLiteral. * @param name the name of the SarlEnumLiteral * @param resourceSet the set of the resources that must be used for * containing the generated resource, and resolving types from names. * @return the appender. */
Create the appender for a Sarl SarlEnumLiteral
buildSarlEnumLiteral
{ "repo_name": "sarl/sarl", "path": "main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/CodeBuilderFactory.java", "license": "apache-2.0", "size": 50509 }
[ "io.sarl.lang.codebuilder.appenders.SarlEnumLiteralSourceAppender", "org.eclipse.emf.ecore.resource.ResourceSet" ]
import io.sarl.lang.codebuilder.appenders.SarlEnumLiteralSourceAppender; import org.eclipse.emf.ecore.resource.ResourceSet;
import io.sarl.lang.codebuilder.appenders.*; import org.eclipse.emf.ecore.resource.*;
[ "io.sarl.lang", "org.eclipse.emf" ]
io.sarl.lang; org.eclipse.emf;
2,625,300
@Override public Object clone() throws CloneNotSupportedException { ZipEntry ze = (ZipEntry)super.clone(); if (extraFields != null) { ze.extraFields = (Vector<ZipExtraField>) extraFields.clone(); } return ze; }
Object function() throws CloneNotSupportedException { ZipEntry ze = (ZipEntry)super.clone(); if (extraFields != null) { ze.extraFields = (Vector<ZipExtraField>) extraFields.clone(); } return ze; }
/** * Returns a cloned instance of this entry. * * @return a cloned instance of this entry * @throws CloneNotSupportedException should never happen */
Returns a cloned instance of this entry
clone
{ "repo_name": "raisercostin/mucommander", "path": "src/main/com/mucommander/commons/file/impl/zip/provider/ZipEntry.java", "license": "gpl-3.0", "size": 21421 }
[ "java.util.Vector" ]
import java.util.Vector;
import java.util.*;
[ "java.util" ]
java.util;
2,375,184
public static void show(String message, MessageType messageType) { getDialogDisplayer().notify(new NotifyDescriptor.Message(message, messageType.getNotifyDescriptorType())); }
static void function(String message, MessageType messageType) { getDialogDisplayer().notify(new NotifyDescriptor.Message(message, messageType.getNotifyDescriptorType())); }
/** * Show a message of the specified type * * @param message * @param messageType As in {@link NotifyDescription} message type constants. */
Show a message of the specified type
show
{ "repo_name": "OpenGrabeso/jmonkeyengine", "path": "sdk/jme3-core/src/com/jme3/gde/core/util/notify/MessageUtil.java", "license": "bsd-3-clause", "size": 3684 }
[ "org.openide.NotifyDescriptor" ]
import org.openide.NotifyDescriptor;
import org.openide.*;
[ "org.openide" ]
org.openide;
2,151,269
public static void error(@Nullable IgniteLogger log, Object shortMsg, @Nullable Throwable e) { assert shortMsg != null; String s = shortMsg.toString(); error(log, s, s, e); }
static void function(@Nullable IgniteLogger log, Object shortMsg, @Nullable Throwable e) { assert shortMsg != null; String s = shortMsg.toString(); error(log, s, s, e); }
/** * Shortcut for {@link #error(org.apache.ignite.IgniteLogger, Object, Object, Throwable)}. * * @param log Optional logger. * @param shortMsg Message to log using quiet logger. * @param e Optional exception. */
Shortcut for <code>#error(org.apache.ignite.IgniteLogger, Object, Object, Throwable)</code>
error
{ "repo_name": "kromulan/ignite", "path": "modules/core/src/main/java/org/apache/ignite/internal/util/IgniteUtils.java", "license": "apache-2.0", "size": 298812 }
[ "org.apache.ignite.IgniteLogger", "org.jetbrains.annotations.Nullable" ]
import org.apache.ignite.IgniteLogger; import org.jetbrains.annotations.Nullable;
import org.apache.ignite.*; import org.jetbrains.annotations.*;
[ "org.apache.ignite", "org.jetbrains.annotations" ]
org.apache.ignite; org.jetbrains.annotations;
2,316,257
public void setRenewing(RenewingType renewing) { this.renewing = renewing; this.delegate.addAny(renewing); }
void function(RenewingType renewing) { this.renewing = renewing; this.delegate.addAny(renewing); }
/** * <p> * Sets the renew semantics for the token request. * </p> * * @param renewing the {@code RenewingType} object representing the semantics to be set. */
Sets the renew semantics for the token request.
setRenewing
{ "repo_name": "taylor-project/taylor-picketlink-2.0.3", "path": "federation/picketlink-fed-core/src/main/java/org/picketlink/identity/federation/core/wstrust/wrappers/RequestSecurityTokenResponse.java", "license": "gpl-2.0", "size": 36954 }
[ "org.picketlink.identity.federation.ws.trust.RenewingType" ]
import org.picketlink.identity.federation.ws.trust.RenewingType;
import org.picketlink.identity.federation.ws.trust.*;
[ "org.picketlink.identity" ]
org.picketlink.identity;
2,874,048
public FilePath createTextTempFile(final String prefix, final String suffix, final String contents) throws IOException, InterruptedException { return createTextTempFile(prefix,suffix,contents,true); }
FilePath function(final String prefix, final String suffix, final String contents) throws IOException, InterruptedException { return createTextTempFile(prefix,suffix,contents,true); }
/** * Creates a temporary file in this directory and set the contents to the * given text (encoded in the platform default encoding) * * @param prefix * The prefix string to be used in generating the file's name; must be * at least three characters long * @param suffix ...
Creates a temporary file in this directory and set the contents to the given text (encoded in the platform default encoding)
createTextTempFile
{ "repo_name": "dariver/jenkins", "path": "core/src/main/java/hudson/FilePath.java", "license": "mit", "size": 119940 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
2,179,932
protected Resource newResource() { PackageResource packageResource = PackageResource.get(getScope(), getName(), getLocale(), getStyle()); if (packageResource != null) { locale = packageResource.getLocale(); } else { throw new IllegalArgumentException("package resource [scope=" + getScope() + ",...
Resource function() { PackageResource packageResource = PackageResource.get(getScope(), getName(), getLocale(), getStyle()); if (packageResource != null) { locale = packageResource.getLocale(); } else { throw new IllegalArgumentException(STR + getScope() + STR + getName() + STR + getLocale() + STR + getStyle() + STR); ...
/** * Factory method for lazy initialization of shared resources. * * @return The resource */
Factory method for lazy initialization of shared resources
newResource
{ "repo_name": "astubbs/wicket.get-portals2", "path": "wicket/src/main/java/org/apache/wicket/ResourceReference.java", "license": "apache-2.0", "size": 9848 }
[ "org.apache.wicket.markup.html.PackageResource" ]
import org.apache.wicket.markup.html.PackageResource;
import org.apache.wicket.markup.html.*;
[ "org.apache.wicket" ]
org.apache.wicket;
2,805,933
private OrcFileMetadata getOrReadFileMetadata() throws IOException { OrcFileMetadata metadata = null; if (fileKey != null && metadataCache != null) { metadata = metadataCache.getFileMetadata(fileKey); if (metadata != null) { counters.incrCounter(LlapIOCounters.METADATA_CACHE_HIT); ...
OrcFileMetadata function() throws IOException { OrcFileMetadata metadata = null; if (fileKey != null && metadataCache != null) { metadata = metadataCache.getFileMetadata(fileKey); if (metadata != null) { counters.incrCounter(LlapIOCounters.METADATA_CACHE_HIT); return metadata; } else { counters.incrCounter(LlapIOCounte...
/** * Gets file metadata for the split from cache, or reads it from the file. */
Gets file metadata for the split from cache, or reads it from the file
getOrReadFileMetadata
{ "repo_name": "BUPTAnderson/apache-hive-2.1.1-src", "path": "llap-server/src/java/org/apache/hadoop/hive/llap/io/encoded/OrcEncodedDataReader.java", "license": "apache-2.0", "size": 37394 }
[ "java.io.IOException", "org.apache.hadoop.hive.llap.counters.LlapIOCounters", "org.apache.hadoop.hive.llap.io.metadata.OrcFileMetadata" ]
import java.io.IOException; import org.apache.hadoop.hive.llap.counters.LlapIOCounters; import org.apache.hadoop.hive.llap.io.metadata.OrcFileMetadata;
import java.io.*; import org.apache.hadoop.hive.llap.counters.*; import org.apache.hadoop.hive.llap.io.metadata.*;
[ "java.io", "org.apache.hadoop" ]
java.io; org.apache.hadoop;
1,922,551
Locale getEditorEnvLocale();
Locale getEditorEnvLocale();
/** * the locale of the editor environment to have the facility of providing localized messages within the course editor environment. * * @return Locale of editor environment */
the locale of the editor environment to have the facility of providing localized messages within the course editor environment
getEditorEnvLocale
{ "repo_name": "huihoo/olat", "path": "olat7.8/src/main/java/org/olat/lms/course/editor/CourseEditorEnv.java", "license": "apache-2.0", "size": 4869 }
[ "java.util.Locale" ]
import java.util.Locale;
import java.util.*;
[ "java.util" ]
java.util;
1,788,200
public void writeLines(Iterable<? extends CharSequence> lines, String lineSeparator) throws IOException { checkNotNull(lines); checkNotNull(lineSeparator); Closer closer = Closer.create(); try { Writer out = closer.register(openBufferedStream()); for (CharSequence line : lin...
void function(Iterable<? extends CharSequence> lines, String lineSeparator) throws IOException { checkNotNull(lines); checkNotNull(lineSeparator); Closer closer = Closer.create(); try { Writer out = closer.register(openBufferedStream()); for (CharSequence line : lines) { out.append(line).append(lineSeparator); } out.fl...
/** * Writes the given lines of text to this sink with each line (including the last) terminated with * the given line separator. * * @throws IOException if an I/O error occurs in the process of writing to this sink */
Writes the given lines of text to this sink with each line (including the last) terminated with the given line separator
writeLines
{ "repo_name": "mariusj/org.openntf.domino", "path": "domino/externals/guava/src/main/java/com/google/common/io/CharSink.java", "license": "apache-2.0", "size": 6170 }
[ "com.google.common.base.Preconditions", "java.io.IOException", "java.io.Writer" ]
import com.google.common.base.Preconditions; import java.io.IOException; import java.io.Writer;
import com.google.common.base.*; import java.io.*;
[ "com.google.common", "java.io" ]
com.google.common; java.io;
108,420
protected void handleException(RestClientException ex) { Log.e(TAG, "An exception occurred while sending the request.", ex); }
void function(RestClientException ex) { Log.e(TAG, STR, ex); }
/** * This method is called when a {@link RestClientException} exception is thrown in the {@link #send()} method. * * @param ex The exception that was thrown */
This method is called when a <code>RestClientException</code> exception is thrown in the <code>#send()</code> method
handleException
{ "repo_name": "ChasingPictures/front-end", "path": "ChasingPictures/app/src/main/java/de/fu_berlin/cdv/chasingpictures/api/ApiRequest.java", "license": "mit", "size": 5032 }
[ "android.util.Log", "org.springframework.web.client.RestClientException" ]
import android.util.Log; import org.springframework.web.client.RestClientException;
import android.util.*; import org.springframework.web.client.*;
[ "android.util", "org.springframework.web" ]
android.util; org.springframework.web;
1,133,640
public void testGetTableName() { ActiveRecord instance = new Test(); String expResult = "test"; String result = instance.getTableName(); assertEquals(expResult, result); }
void function() { ActiveRecord instance = new Test(); String expResult = "test"; String result = instance.getTableName(); assertEquals(expResult, result); }
/** * Test of getTableName method, of class Model. */
Test of getTableName method, of class Model
testGetTableName
{ "repo_name": "maxazan/jactiverecord", "path": "src/test/java/com/jactiverecord/ActiveRecordTest.java", "license": "mit", "size": 11312 }
[ "com.jactiverecord.models.Test" ]
import com.jactiverecord.models.Test;
import com.jactiverecord.models.*;
[ "com.jactiverecord.models" ]
com.jactiverecord.models;
55,331
protected void deactivate(ComponentContext context) { if(log.isDebugEnabled()) { log.debug("WSO2 IS migration bundle is deactivated"); } }
void function(ComponentContext context) { if(log.isDebugEnabled()) { log.debug(STR); } }
/** * Method to deactivate bundle. * * @param context OSGi component context. */
Method to deactivate bundle
deactivate
{ "repo_name": "milindaperera/product-is", "path": "modules/migration/migration-service/src/main/java/org/wso2/carbon/is/migration/internal/ISMigrationServiceComponent.java", "license": "apache-2.0", "size": 3151 }
[ "org.osgi.service.component.ComponentContext" ]
import org.osgi.service.component.ComponentContext;
import org.osgi.service.component.*;
[ "org.osgi.service" ]
org.osgi.service;
2,123,114
public Analyzer searchAnalyzer() { return this.searchAnalyzer; }
Analyzer function() { return this.searchAnalyzer; }
/** * A smart analyzer used for searching that takes into account specific analyzers configured * per {@link FieldMapper}. */
A smart analyzer used for searching that takes into account specific analyzers configured per <code>FieldMapper</code>
searchAnalyzer
{ "repo_name": "mkis-/elasticsearch", "path": "src/main/java/org/elasticsearch/index/mapper/DocumentFieldMappers.java", "license": "apache-2.0", "size": 6046 }
[ "org.apache.lucene.analysis.Analyzer" ]
import org.apache.lucene.analysis.Analyzer;
import org.apache.lucene.analysis.*;
[ "org.apache.lucene" ]
org.apache.lucene;
105,089
return new Builder(); } public static class Builder { private File path; private boolean mmap; private File journal; private long debugInterval = Long.MAX_VALUE; private boolean checkBinaries; private boolean checkHead; private Set<String> che...
return new Builder(); } public static class Builder { private File path; private boolean mmap; private File journal; private long debugInterval = Long.MAX_VALUE; private boolean checkBinaries; private boolean checkHead; private Set<String> checkpoints; private Set<String> filterPaths; private boolean ioStatistics; priv...
/** * Create a builder for the {@link Check} command. * * @return an instance of {@link Builder}. */
Create a builder for the <code>Check</code> command
builder
{ "repo_name": "stillalex/jackrabbit-oak", "path": "oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/tool/Check.java", "license": "apache-2.0", "size": 17807 }
[ "java.io.File", "java.io.PrintWriter", "java.util.Set" ]
import java.io.File; import java.io.PrintWriter; import java.util.Set;
import java.io.*; import java.util.*;
[ "java.io", "java.util" ]
java.io; java.util;
1,801,912
public ExternalEventAdapter getAdapter(VRMLNodeType node) { BufferedSAIEventAdapter result=(BufferedSAIEventAdapter) (adapterTable.get(node)); if (result==null) { result=new BufferedSAIEventAdapter(theFieldFactory,node,thePool,timeClock); adapterTable.put(node,res...
ExternalEventAdapter function(VRMLNodeType node) { BufferedSAIEventAdapter result=(BufferedSAIEventAdapter) (adapterTable.get(node)); if (result==null) { result=new BufferedSAIEventAdapter(theFieldFactory,node,thePool,timeClock); adapterTable.put(node,result); node.addNodeListener(result); } return result; }
/** Retrieve or generate the SAIEventAdapter associated with a node. * This is intended for lazy initialization of the event adapters. */
Retrieve or generate the SAIEventAdapter associated with a node. This is intended for lazy initialization of the event adapters
getAdapter
{ "repo_name": "Norkart/NK-VirtualGlobe", "path": "Xj3D/src/java/org/web3d/vrml/scripting/external/sai/BufferedMappingSAIEventAdapterFactory.java", "license": "gpl-2.0", "size": 2777 }
[ "org.web3d.vrml.nodes.VRMLNodeType", "org.web3d.vrml.scripting.external.buffer.ExternalEventAdapter" ]
import org.web3d.vrml.nodes.VRMLNodeType; import org.web3d.vrml.scripting.external.buffer.ExternalEventAdapter;
import org.web3d.vrml.nodes.*; import org.web3d.vrml.scripting.external.buffer.*;
[ "org.web3d.vrml" ]
org.web3d.vrml;
1,778,296
private String calculateEarliestTimeForRealTime(Calendar startTime) { String result; long diff = startTime.getTimeInMillis() - lastSuccessfulReadTime.getTimeInMillis(); result = "-" + diff / 1000 + "s"; return result; }
String function(Calendar startTime) { String result; long diff = startTime.getTimeInMillis() - lastSuccessfulReadTime.getTimeInMillis(); result = "-" + diff / 1000 + "s"; return result; }
/** * Gets earliest time for realtime search */
Gets earliest time for realtime search
calculateEarliestTimeForRealTime
{ "repo_name": "shuliangtao/apache-camel-2.13.0-src", "path": "components/camel-splunk/src/main/java/org/apache/camel/component/splunk/support/SplunkDataReader.java", "license": "apache-2.0", "size": 11736 }
[ "java.util.Calendar" ]
import java.util.Calendar;
import java.util.*;
[ "java.util" ]
java.util;
1,934,054
Frequency diff = maxFrequency.subtract(minFrequency); return (short) (diff.asHz() / (grid.asHz() + 1)); }
Frequency diff = maxFrequency.subtract(minFrequency); return (short) (diff.asHz() / (grid.asHz() + 1)); }
/** * Returns the total number of channels on the port. * * @return total number of channels */
Returns the total number of channels on the port
totalChannels
{ "repo_name": "planoAccess/clonedONOS", "path": "core/api/src/main/java/org/onosproject/net/OmsPort.java", "license": "apache-2.0", "size": 4213 }
[ "org.onlab.util.Frequency" ]
import org.onlab.util.Frequency;
import org.onlab.util.*;
[ "org.onlab.util" ]
org.onlab.util;
1,165,795
@Override public Provider getProvider(String providerName) throws APIManagementException { Provider provider = null; String providerPath = APIUtil.getMountedPath(RegistryContext.getBaseInstance(), RegistryConstants.GOVERNANCE_REGISTRY_BASE_PATH) + APIConstants.PRO...
Provider function(String providerName) throws APIManagementException { Provider provider = null; String providerPath = APIUtil.getMountedPath(RegistryContext.getBaseInstance(), RegistryConstants.GOVERNANCE_REGISTRY_BASE_PATH) + APIConstants.PROVIDERS_PATH + RegistryConstants.PATH_SEPARATOR + providerName; try { Generic...
/** * get details of provider * * @param providerName name of the provider * @return Provider * @throws org.wso2.carbon.apimgt.api.APIManagementException if failed to get Provider */
get details of provider
getProvider
{ "repo_name": "tharikaGitHub/carbon-apimgt", "path": "components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/APIProviderImpl.java", "license": "apache-2.0", "size": 497958 }
[ "org.wso2.carbon.apimgt.api.APIManagementException", "org.wso2.carbon.apimgt.api.model.Provider", "org.wso2.carbon.apimgt.impl.utils.APIUtil", "org.wso2.carbon.governance.api.generic.GenericArtifactManager", "org.wso2.carbon.governance.api.generic.dataobjects.GenericArtifact", "org.wso2.carbon.registry.co...
import org.wso2.carbon.apimgt.api.APIManagementException; import org.wso2.carbon.apimgt.api.model.Provider; import org.wso2.carbon.apimgt.impl.utils.APIUtil; import org.wso2.carbon.governance.api.generic.GenericArtifactManager; import org.wso2.carbon.governance.api.generic.dataobjects.GenericArtifact; import org.wso2.c...
import org.wso2.carbon.apimgt.api.*; import org.wso2.carbon.apimgt.api.model.*; import org.wso2.carbon.apimgt.impl.utils.*; import org.wso2.carbon.governance.api.generic.*; import org.wso2.carbon.governance.api.generic.dataobjects.*; import org.wso2.carbon.registry.core.*; import org.wso2.carbon.registry.core.config.*;...
[ "org.wso2.carbon" ]
org.wso2.carbon;
2,403,318
protected String getFileName(Path file) { String name = ""; if (file != null) { Path path = file.getFileName(); if (path != null) { return path.toString(); } } return name; } static class DeepCopy extends SimpleFileV...
String function(Path file) { String name = ""; if (file != null) { Path path = file.getFileName(); if (path != null) { return path.toString(); } } return name; } static class DeepCopy extends SimpleFileVisitor<Path> { private final Path source; private final Path dest; public DeepCopy(Path source, Path dest) { this.sou...
/** * Helper method allowing to get name of the file from a path * @param file the given path * @return the simple filename */
Helper method allowing to get name of the file from a path
getFileName
{ "repo_name": "codenvy/che3", "path": "plugin-tools/che-api-plugin/src/main/java/org/eclipse/che/plugin/internal/repository/PluginRepositoryImpl.java", "license": "epl-1.0", "size": 25047 }
[ "java.nio.file.Path", "java.nio.file.SimpleFileVisitor" ]
import java.nio.file.Path; import java.nio.file.SimpleFileVisitor;
import java.nio.file.*;
[ "java.nio" ]
java.nio;
1,587,730
Collection createCollection(XmldbURI collName) throws XMLDBException;
Collection createCollection(XmldbURI collName) throws XMLDBException;
/** * Create a Collection. * * @param collName the collection name. * * @return the newly created collection. * * @throws XMLDBException if an error occurs when creating the collection. */
Create a Collection
createCollection
{ "repo_name": "lcahlander/exist", "path": "exist-core/src/main/java/org/exist/xmldb/EXistCollectionManagementService.java", "license": "lgpl-2.1", "size": 7765 }
[ "org.xmldb.api.base.Collection", "org.xmldb.api.base.XMLDBException" ]
import org.xmldb.api.base.Collection; import org.xmldb.api.base.XMLDBException;
import org.xmldb.api.base.*;
[ "org.xmldb.api" ]
org.xmldb.api;
495,327
public ISpell getSpell() { return spell; }
ISpell function() { return spell; }
/** * Gets the spell being learned * * @return A spell */
Gets the spell being learned
getSpell
{ "repo_name": "minnymin3/Zephyrus", "path": "Zephyrus-Core/src/main/java/net/lordsofcode/zephyrus/events/PlayerLearnSpellEvent.java", "license": "gpl-3.0", "size": 1238 }
[ "net.lordsofcode.zephyrus.api.ISpell" ]
import net.lordsofcode.zephyrus.api.ISpell;
import net.lordsofcode.zephyrus.api.*;
[ "net.lordsofcode.zephyrus" ]
net.lordsofcode.zephyrus;
615,384
private void completeAppend(ByteBuf pendingData) { Session session = setupSegments.get(new SimpleImmutableEntry<>(segmentBeingAppendedTo, writerIdPerformingAppends)); session.flushToBuffer(currentBlockSize - bytesLeftInBlock, pendingData); tokenCounter.incrementAndGet(); bytesLeftInB...
void function(ByteBuf pendingData) { Session session = setupSegments.get(new SimpleImmutableEntry<>(segmentBeingAppendedTo, writerIdPerformingAppends)); session.flushToBuffer(currentBlockSize - bytesLeftInBlock, pendingData); tokenCounter.incrementAndGet(); bytesLeftInBlock = 0; currentBlockSize = 0; segmentBeingAppend...
/** * Complete the ongoing append by writing the pending data as Append Block End to channel buffer. * Increment the Token Counter value so the block timeout need not invoke the flush again. * * @param pendingData data to write. */
Complete the ongoing append by writing the pending data as Append Block End to channel buffer. Increment the Token Counter value so the block timeout need not invoke the flush again
completeAppend
{ "repo_name": "pravega/pravega", "path": "client/src/main/java/io/pravega/client/connection/impl/CommandEncoder.java", "license": "apache-2.0", "size": 17768 }
[ "io.netty.buffer.ByteBuf", "java.util.AbstractMap" ]
import io.netty.buffer.ByteBuf; import java.util.AbstractMap;
import io.netty.buffer.*; import java.util.*;
[ "io.netty.buffer", "java.util" ]
io.netty.buffer; java.util;
148,510
new HospitalBeanValidator().validate(hosp); try { if (hospDAO.addHospital(hosp)) { return "Success: " + hosp.getHospitalID() + " - " + hosp.getHospitalName() + " added"; } else return "The database has become corrupt. Please contact the system administrator for assistance."; } catch (DBExcepti...
new HospitalBeanValidator().validate(hosp); try { if (hospDAO.addHospital(hosp)) { return STR + hosp.getHospitalID() + STR + hosp.getHospitalName() + STR; } else return STR; } catch (DBException e) { e.printStackTrace(); return e.getMessage(); } catch (iTrustException e) { return e.getMessage(); } }
/** * Adds a hosptial using the HospitalBean passed as a param * * @param hosp * the new hospital listing * @return Status message * @throws FormValidationException */
Adds a hosptial using the HospitalBean passed as a param
addHospital
{ "repo_name": "qynnine/JDiffOriginDemo", "path": "examples/iTrust_v11/edu/ncsu/csc/itrust/action/UpdateHospitalListAction.java", "license": "lgpl-2.1", "size": 2771 }
[ "edu.ncsu.csc.itrust.exception.DBException", "edu.ncsu.csc.itrust.validate.HospitalBeanValidator" ]
import edu.ncsu.csc.itrust.exception.DBException; import edu.ncsu.csc.itrust.validate.HospitalBeanValidator;
import edu.ncsu.csc.itrust.exception.*; import edu.ncsu.csc.itrust.validate.*;
[ "edu.ncsu.csc" ]
edu.ncsu.csc;
629,890
public void setModifyTime(Date modifyTime) { this.modifyTime = modifyTime; }
void function(Date modifyTime) { this.modifyTime = modifyTime; }
/** * This method was generated by MyBatis Generator. * This method sets the value of the database column account_subject.modify_time * * @param modifyTime the value for account_subject.modify_time * * @mbggenerated Mon Sep 28 15:49:31 CST 2015 */
This method was generated by MyBatis Generator. This method sets the value of the database column account_subject.modify_time
setModifyTime
{ "repo_name": "Qogir/yijizhang", "path": "src/main/java/cn/ahyc/yjz/dto/AccountSubjectTextNameDto.java", "license": "gpl-2.0", "size": 19740 }
[ "java.util.Date" ]
import java.util.Date;
import java.util.*;
[ "java.util" ]
java.util;
2,719,884
@Override public Builder event(final Event[] event) { this.map.put(EVENT, event); this.previous = EVENT; return builder(); }
Builder function(final Event[] event) { this.map.put(EVENT, event); this.previous = EVENT; return builder(); }
/** * Builds the Event array. * * @param Event[] event * @return Builder */
Builds the Event array
event
{ "repo_name": "dsw9742/ceddl", "path": "src/main/java/com/douglaswhitehead/model/digitaldata/DigitalDataImpl.java", "license": "mit", "size": 8562 }
[ "com.douglaswhitehead.model.digitaldata.event.Event" ]
import com.douglaswhitehead.model.digitaldata.event.Event;
import com.douglaswhitehead.model.digitaldata.event.*;
[ "com.douglaswhitehead.model" ]
com.douglaswhitehead.model;
2,073,199
@Override public void run(CommandContext context) { if (list) { final Context geogit = this.getCommandLocator(context); final List<RevTag> tags = geogit.command(TagListOp.class).call();
void function(CommandContext context) { if (list) { final Context geogit = this.getCommandLocator(context); final List<RevTag> tags = geogit.command(TagListOp.class).call();
/** * Runs the command and builds the appropriate response * * @param context - the context to use for this command */
Runs the command and builds the appropriate response
run
{ "repo_name": "markles/GeoGit", "path": "src/web/api/src/main/java/org/geogit/web/api/commands/TagWebOp.java", "license": "bsd-3-clause", "size": 1619 }
[ "java.util.List", "org.geogit.api.Context", "org.geogit.api.RevTag", "org.geogit.api.porcelain.TagListOp", "org.geogit.web.api.CommandContext" ]
import java.util.List; import org.geogit.api.Context; import org.geogit.api.RevTag; import org.geogit.api.porcelain.TagListOp; import org.geogit.web.api.CommandContext;
import java.util.*; import org.geogit.api.*; import org.geogit.api.porcelain.*; import org.geogit.web.api.*;
[ "java.util", "org.geogit.api", "org.geogit.web" ]
java.util; org.geogit.api; org.geogit.web;
2,372,123
public void setMonitor(Monitor monitor);
void function(Monitor monitor);
/** * Sets the {@link Monitor} to be used by this Batchmgr. * * @param monitor * The {@link Monitor} to be used. */
Sets the <code>Monitor</code> to be used by this Batchmgr
setMonitor
{ "repo_name": "LeStarch/oodt", "path": "resource/src/main/java/org/apache/oodt/cas/resource/batchmgr/Batchmgr.java", "license": "apache-2.0", "size": 2674 }
[ "org.apache.oodt.cas.resource.monitor.Monitor" ]
import org.apache.oodt.cas.resource.monitor.Monitor;
import org.apache.oodt.cas.resource.monitor.*;
[ "org.apache.oodt" ]
org.apache.oodt;
707,816
FeatureMap getMixed();
FeatureMap getMixed();
/** * Returns the value of the '<em><b>Mixed</b></em>' attribute list. * The list contents are of type {@link org.eclipse.emf.ecore.util.FeatureMap.Entry}. * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Mixed</em>' attribute list isn't clear, * there really should be more of a description here...
Returns the value of the 'Mixed' attribute list. The list contents are of type <code>org.eclipse.emf.ecore.util.FeatureMap.Entry</code>. If the meaning of the 'Mixed' attribute list isn't clear, there really should be more of a description here...
getMixed
{ "repo_name": "markus1978/citygml4emf", "path": "de.hub.citygml.emf.ecore/src/org/oasis/xAL/AdministrativeAreaNameType.java", "license": "apache-2.0", "size": 4210 }
[ "org.eclipse.emf.ecore.util.FeatureMap" ]
import org.eclipse.emf.ecore.util.FeatureMap;
import org.eclipse.emf.ecore.util.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
2,724,971
public void mergeInventory(@NonNull final List<Trackable> newTrackables, final EnumSet<TrackableBrand> processedBrands) { final List<Trackable> mergedTrackables = new ArrayList<>(newTrackables); for (final Trackable trackable : ListUtils.emptyIfNull(inventory)) { if (processedBrands.co...
void function(@NonNull final List<Trackable> newTrackables, final EnumSet<TrackableBrand> processedBrands) { final List<Trackable> mergedTrackables = new ArrayList<>(newTrackables); for (final Trackable trackable : ListUtils.emptyIfNull(inventory)) { if (processedBrands.contains(trackable.getBrand())) { final ListItera...
/** * Add new Trackables to inventory safely. * This takes care of removing old items if they are from the same brand. * If items are present, data is merged, not duplicated. * * @param newTrackables * to be added to the Geocache */
Add new Trackables to inventory safely. This takes care of removing old items if they are from the same brand. If items are present, data is merged, not duplicated
mergeInventory
{ "repo_name": "SammysHP/cgeo", "path": "main/src/cgeo/geocaching/models/Geocache.java", "license": "apache-2.0", "size": 64794 }
[ "java.util.ArrayList", "java.util.EnumSet", "java.util.List", "java.util.ListIterator", "org.apache.commons.collections4.ListUtils", "org.eclipse.jdt.annotation.NonNull" ]
import java.util.ArrayList; import java.util.EnumSet; import java.util.List; import java.util.ListIterator; import org.apache.commons.collections4.ListUtils; import org.eclipse.jdt.annotation.NonNull;
import java.util.*; import org.apache.commons.collections4.*; import org.eclipse.jdt.annotation.*;
[ "java.util", "org.apache.commons", "org.eclipse.jdt" ]
java.util; org.apache.commons; org.eclipse.jdt;
829,600
protected void updateWSCommitIdAndCleanUpMetadata(Statement stmt, long txnid, TxnType txnType, Long commitId, long tempId) throws SQLException, MetaException { List<String> queryBatch = new ArrayList<>(5); // update write_set with real commitId if (commitId != null) { queryBatch.add("UPDATE \"...
void function(Statement stmt, long txnid, TxnType txnType, Long commitId, long tempId) throws SQLException, MetaException { List<String> queryBatch = new ArrayList<>(5); if (commitId != null) { queryBatch.add(STRWRITE_SET\STRWS_COMMIT_ID\STR + commitId + STRWS_COMMIT_ID\STR + tempId + STRWS_TXNID\STR + txnid); } if (tx...
/** * See overridden method in CompactionTxnHandler also. */
See overridden method in CompactionTxnHandler also
updateWSCommitIdAndCleanUpMetadata
{ "repo_name": "jcamachor/hive", "path": "standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/txn/TxnHandler.java", "license": "apache-2.0", "size": 263787 }
[ "java.sql.SQLException", "java.sql.Statement", "java.util.ArrayList", "java.util.List", "org.apache.hadoop.hive.metastore.api.MetaException", "org.apache.hadoop.hive.metastore.api.TxnType", "org.apache.hadoop.hive.metastore.txn.TxnUtils" ]
import java.sql.SQLException; import java.sql.Statement; import java.util.ArrayList; import java.util.List; import org.apache.hadoop.hive.metastore.api.MetaException; import org.apache.hadoop.hive.metastore.api.TxnType; import org.apache.hadoop.hive.metastore.txn.TxnUtils;
import java.sql.*; import java.util.*; import org.apache.hadoop.hive.metastore.api.*; import org.apache.hadoop.hive.metastore.txn.*;
[ "java.sql", "java.util", "org.apache.hadoop" ]
java.sql; java.util; org.apache.hadoop;
962,715
public boolean performExport( final MasterReport report ) { if ( report == null ) { throw new NullPointerException(); } final boolean result = performShowExportDialog( report, "org.pentaho.reporting.engine.classic.core.modules.gui.csv.table.Dialog" ); //$NON-NLS-1$ if ( result == false ...
boolean function( final MasterReport report ) { if ( report == null ) { throw new NullPointerException(); } final boolean result = performShowExportDialog( report, STR ); if ( result == false ) { return false; } final ReportProgressDialog progressDialog; if ( isProgressDialogEnabled( report, STR ) ) { progressDialog = ...
/** * Shows this dialog and (if the dialog is confirmed) saves the complete report into an comma separated values file. * * @param report * the report being processed. * @return true or false. */
Shows this dialog and (if the dialog is confirmed) saves the complete report into an comma separated values file
performExport
{ "repo_name": "mbatchelor/pentaho-reporting", "path": "engine/core/src/main/java/org/pentaho/reporting/engine/classic/core/modules/gui/csv/CSVTableExportPlugin.java", "license": "lgpl-2.1", "size": 7083 }
[ "org.pentaho.reporting.engine.classic.core.MasterReport", "org.pentaho.reporting.engine.classic.core.modules.gui.common.StatusType", "org.pentaho.reporting.engine.classic.core.modules.gui.commonswing.ReportProgressDialog" ]
import org.pentaho.reporting.engine.classic.core.MasterReport; import org.pentaho.reporting.engine.classic.core.modules.gui.common.StatusType; import org.pentaho.reporting.engine.classic.core.modules.gui.commonswing.ReportProgressDialog;
import org.pentaho.reporting.engine.classic.core.*; import org.pentaho.reporting.engine.classic.core.modules.gui.common.*; import org.pentaho.reporting.engine.classic.core.modules.gui.commonswing.*;
[ "org.pentaho.reporting" ]
org.pentaho.reporting;
2,386,046
public static void StartMediaPlayer() { // check if media player is already used if(mediaPlayer != null && isPlaying) { mediaPlayer.stop(); mediaPlayer = null; isPlaying = false; } if(currentGameState == GameState.MENU && !isPlaying) ...
static void function() { if(mediaPlayer != null && isPlaying) { mediaPlayer.stop(); mediaPlayer = null; isPlaying = false; } if(currentGameState == GameState.MENU && !isPlaying) { while (mediaPlayer == null) { mediaPlayer = MediaPlayer.create(context, R.raw.ambientloop); mediaPlayer.setLooping(true); mediaPlayer.setVol...
/** * This method instantiates a new MediaPlayer depending on the current * game state of the game. */
This method instantiates a new MediaPlayer depending on the current game state of the game
StartMediaPlayer
{ "repo_name": "Anntex/aCARdeRUN", "path": "aCARdeRun/src/de/hdm/mib/dg041/game/aCARdeRunGame.java", "license": "apache-2.0", "size": 7214 }
[ "android.media.MediaPlayer" ]
import android.media.MediaPlayer;
import android.media.*;
[ "android.media" ]
android.media;
2,836,798
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller<PollResult<Void>, Void> beginDelete( String resourceGroupName, String virtualNetworkGatewayConnectionName, Context context) { return beginDeleteAsync(resourceGroupName, virtualNetworkGatewayConnectionName, context).get...
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller<PollResult<Void>, Void> function( String resourceGroupName, String virtualNetworkGatewayConnectionName, Context context) { return beginDeleteAsync(resourceGroupName, virtualNetworkGatewayConnectionName, context).getSyncPoller(); }
/** * Deletes the specified virtual network Gateway connection. * * @param resourceGroupName The name of the resource group. * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param context The context to associate with this operation. * @th...
Deletes the specified virtual network Gateway connection
beginDelete
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualNetworkGatewayConnectionsClientImpl.java", "license": "mit", "size": 187423 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.management.polling.PollResult", "com.azure.core.util.Context", "com.azure.core.util.polling.SyncPoller" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.management.polling.PollResult; import com.azure.core.util.Context; import com.azure.core.util.polling.SyncPoller;
import com.azure.core.annotation.*; import com.azure.core.management.polling.*; import com.azure.core.util.*; import com.azure.core.util.polling.*;
[ "com.azure.core" ]
com.azure.core;
1,590,314
Subscription schedule(final Action0 action, final CronExpression cronExpression, final Calendar calendar);
Subscription schedule(final Action0 action, final CronExpression cronExpression, final Calendar calendar);
/** * In addition if scheduling an action using a cron expression, as {@link RxCronScheduler#schedule(Action0, CronExpression)} it also * takes a {@link Calendar} parameter. This calendar, depending on an underlying implementation may be used to exclude holidays, some days * of wee and so on. Check com.u...
In addition if scheduling an action using a cron expression, as <code>RxCronScheduler#schedule(Action0, CronExpression)</code> it also takes a <code>Calendar</code> parameter. This calendar, depending on an underlying implementation may be used to exclude holidays, some days of wee and so on. Check com.ullink.rxschedul...
schedule
{ "repo_name": "svarcheg/rx-cron-scheduler", "path": "src/main/java/com/ullink/rxscheduler/cron/RxCronScheduler.java", "license": "apache-2.0", "size": 2033 }
[ "com.ullink.rxscheduler.cron.calendar.Calendar", "com.ullink.rxscheduler.cron.calendar.CronExpression" ]
import com.ullink.rxscheduler.cron.calendar.Calendar; import com.ullink.rxscheduler.cron.calendar.CronExpression;
import com.ullink.rxscheduler.cron.calendar.*;
[ "com.ullink.rxscheduler" ]
com.ullink.rxscheduler;
403,741
private static void addColumnDimensions(Expression expression, Set<CarbonDimension> filterDimensions) { if (null != expression && expression instanceof ColumnExpression && ((ColumnExpression) expression).isDimension()) { filterDimensions.add(((ColumnExpression) expression).getDimension()); ...
static void function(Expression expression, Set<CarbonDimension> filterDimensions) { if (null != expression && expression instanceof ColumnExpression && ((ColumnExpression) expression).isDimension()) { filterDimensions.add(((ColumnExpression) expression).getDimension()); return; } for (Expression child : expression.get...
/** * This method will check if a given expression contains a column expression * recursively and add the dimension instance to the set which holds the dimension * instances of the complex filter expressions. * * @param filterDimensions * @return */
This method will check if a given expression contains a column expression recursively and add the dimension instance to the set which holds the dimension instances of the complex filter expressions
addColumnDimensions
{ "repo_name": "foryou2030/incubator-carbondata", "path": "core/src/main/java/org/apache/carbondata/scan/executor/util/QueryUtil.java", "license": "apache-2.0", "size": 41271 }
[ "java.util.Set", "org.apache.carbondata.core.carbon.metadata.schema.table.column.CarbonDimension", "org.apache.carbondata.scan.expression.ColumnExpression", "org.apache.carbondata.scan.expression.Expression" ]
import java.util.Set; import org.apache.carbondata.core.carbon.metadata.schema.table.column.CarbonDimension; import org.apache.carbondata.scan.expression.ColumnExpression; import org.apache.carbondata.scan.expression.Expression;
import java.util.*; import org.apache.carbondata.core.carbon.metadata.schema.table.column.*; import org.apache.carbondata.scan.expression.*;
[ "java.util", "org.apache.carbondata" ]
java.util; org.apache.carbondata;
1,104,373
@CheckResult public PlaybackInfo copyWithNewPosition( MediaPeriodId periodId, long positionUs, long requestedContentPositionUs, long discontinuityStartPositionUs, long totalBufferedDurationUs, TrackGroupArray trackGroups, TrackSelectorResult trackSelectorResult, List<...
PlaybackInfo function( MediaPeriodId periodId, long positionUs, long requestedContentPositionUs, long discontinuityStartPositionUs, long totalBufferedDurationUs, TrackGroupArray trackGroups, TrackSelectorResult trackSelectorResult, List<Metadata> staticMetadata) { return new PlaybackInfo( timeline, periodId, requestedC...
/** * Copies playback info with new playing position. * * @param periodId New playing media period. See {@link #periodId}. * @param positionUs New position. See {@link #positionUs}. * @param requestedContentPositionUs New requested content position. See {@link * #requestedContentPositionUs}. * ...
Copies playback info with new playing position
copyWithNewPosition
{ "repo_name": "ened/ExoPlayer", "path": "library/core/src/main/java/com/google/android/exoplayer2/PlaybackInfo.java", "license": "apache-2.0", "size": 18102 }
[ "com.google.android.exoplayer2.metadata.Metadata", "com.google.android.exoplayer2.source.MediaSource", "com.google.android.exoplayer2.source.TrackGroupArray", "com.google.android.exoplayer2.trackselection.TrackSelectorResult", "java.util.List" ]
import com.google.android.exoplayer2.metadata.Metadata; import com.google.android.exoplayer2.source.MediaSource; import com.google.android.exoplayer2.source.TrackGroupArray; import com.google.android.exoplayer2.trackselection.TrackSelectorResult; import java.util.List;
import com.google.android.exoplayer2.metadata.*; import com.google.android.exoplayer2.source.*; import com.google.android.exoplayer2.trackselection.*; import java.util.*;
[ "com.google.android", "java.util" ]
com.google.android; java.util;
2,008,523
@Override public Iterator<Balance> findBalances(Account account, Integer fiscalYear, Collection includedObjectCodes, Collection excludedObjectCodes, Collection objectTypeCodes, Collection balanceTypeCodes) { LOG.debug("findBalances() started"); Criteria criteria = new Criteria(); crite...
Iterator<Balance> function(Account account, Integer fiscalYear, Collection includedObjectCodes, Collection excludedObjectCodes, Collection objectTypeCodes, Collection balanceTypeCodes) { LOG.debug(STR); Criteria criteria = new Criteria(); criteria.addEqualTo(KFSPropertyConstants.ACCOUNT_NUMBER, account.getAccountNumber...
/** * Build a query based on all the parameters, and return an Iterator of all Balances from the database that qualify * * @param account the account of balances to find * @param fiscalYear the fiscal year of balances to find * @param includedObjectCodes a Collection of object codes found balan...
Build a query based on all the parameters, and return an Iterator of all Balances from the database that qualify
findBalances
{ "repo_name": "bhutchinson/kfs", "path": "kfs-core/src/main/java/org/kuali/kfs/gl/dataaccess/impl/BalanceDaoOjb.java", "license": "agpl-3.0", "size": 46351 }
[ "java.util.Collection", "java.util.Iterator", "org.apache.ojb.broker.query.Criteria", "org.apache.ojb.broker.query.ReportQueryByCriteria", "org.kuali.kfs.coa.businessobject.Account", "org.kuali.kfs.gl.GeneralLedgerConstants", "org.kuali.kfs.gl.businessobject.Balance", "org.kuali.kfs.sys.KFSPropertyCon...
import java.util.Collection; import java.util.Iterator; import org.apache.ojb.broker.query.Criteria; import org.apache.ojb.broker.query.ReportQueryByCriteria; import org.kuali.kfs.coa.businessobject.Account; import org.kuali.kfs.gl.GeneralLedgerConstants; import org.kuali.kfs.gl.businessobject.Balance; import org.kuali...
import java.util.*; import org.apache.ojb.broker.query.*; import org.kuali.kfs.coa.businessobject.*; import org.kuali.kfs.gl.*; import org.kuali.kfs.gl.businessobject.*; import org.kuali.kfs.sys.*;
[ "java.util", "org.apache.ojb", "org.kuali.kfs" ]
java.util; org.apache.ojb; org.kuali.kfs;
1,248,982
public static byte[] encryptAsymmetric(byte[] content, PublicKey key) throws CryptoException { try { Cipher c = Cipher.getInstance(asymmetricAlgorithm); c.init(Cipher.ENCRYPT_MODE, key); return c.doFinal(content); } catch (InvalidKeyException e) { throw new CryptoException("Key Problems", e); } ca...
static byte[] function(byte[] content, PublicKey key) throws CryptoException { try { Cipher c = Cipher.getInstance(asymmetricAlgorithm); c.init(Cipher.ENCRYPT_MODE, key); return c.doFinal(content); } catch (InvalidKeyException e) { throw new CryptoException(STR, e); } catch (NoSuchAlgorithmException e) { throw new Cryp...
/** * encrypt the given data asymmetrically using the given public key * * @param content The object that is encrypted. * @param key The key that is used to encrypt the given object. * @return encrypted content as byte array * @throws CryptoException If an issue occurs with encryption. */
encrypt the given data asymmetrically using the given public key
encryptAsymmetric
{ "repo_name": "rwth-acis/LAS2peer", "path": "core/src/main/java/i5/las2peer/tools/CryptoTools.java", "license": "bsd-3-clause", "size": 21229 }
[ "java.security.InvalidKeyException", "java.security.NoSuchAlgorithmException", "java.security.PublicKey", "javax.crypto.BadPaddingException", "javax.crypto.Cipher", "javax.crypto.IllegalBlockSizeException", "javax.crypto.NoSuchPaddingException" ]
import java.security.InvalidKeyException; import java.security.NoSuchAlgorithmException; import java.security.PublicKey; import javax.crypto.BadPaddingException; import javax.crypto.Cipher; import javax.crypto.IllegalBlockSizeException; import javax.crypto.NoSuchPaddingException;
import java.security.*; import javax.crypto.*;
[ "java.security", "javax.crypto" ]
java.security; javax.crypto;
2,384,053
@FIXVersion(introduced = "4.0", retired = "4.3") @TagNumRef(tagNum = TagNum.Issuer) public void setIssuer(String issuer) { getSafeInstrument().setIssuer(issuer); }
@FIXVersion(introduced = "4.0", retired = "4.3") @TagNumRef(tagNum = TagNum.Issuer) void function(String issuer) { getSafeInstrument().setIssuer(issuer); }
/** * Message field setter. * @param issuer field value */
Message field setter
setIssuer
{ "repo_name": "marvisan/HadesFIX", "path": "Model/src/main/java/net/hades/fix/message/OrderModificationRequestMsg.java", "license": "gpl-3.0", "size": 149491 }
[ "net.hades.fix.message.anno.FIXVersion", "net.hades.fix.message.anno.TagNumRef", "net.hades.fix.message.type.TagNum" ]
import net.hades.fix.message.anno.FIXVersion; import net.hades.fix.message.anno.TagNumRef; import net.hades.fix.message.type.TagNum;
import net.hades.fix.message.anno.*; import net.hades.fix.message.type.*;
[ "net.hades.fix" ]
net.hades.fix;
1,390,175
@SuppressWarnings("unchecked") @Override public final <T extends SymbolTableEntry> Iterator<T> iterateByType(Collection<Class<T>> types) { return new LazyMappingIterator<>(myBaseTable.iterateByType(types), (Mapping<T, T>) INSTANTIATOR); }
@SuppressWarnings(STR) final <T extends SymbolTableEntry> Iterator<T> function(Collection<Class<T>> types) { return new LazyMappingIterator<>(myBaseTable.iterateByType(types), (Mapping<T, T>) INSTANTIATOR); }
/** * <p> * This method creates an iterator for to iterate over a collection of <code>T</code>. * </p> * * @param types * A type name. * @param <T> * A {@link SymbolTableEntry} type. * * @return An {@link Iterator}. */
This method creates an iterator for to iterate over a collection of <code>T</code>.
iterateByType
{ "repo_name": "ClemsonRSRG/RESOLVE", "path": "src/java/edu/clemson/rsrg/typeandpopulate/symboltables/InstantiatedSymbolTable.java", "license": "bsd-3-clause", "size": 6702 }
[ "edu.clemson.rsrg.misc.Utilities", "edu.clemson.rsrg.typeandpopulate.entry.SymbolTableEntry", "edu.clemson.rsrg.typeandpopulate.utilities.LazyMappingIterator", "java.util.Collection", "java.util.Iterator" ]
import edu.clemson.rsrg.misc.Utilities; import edu.clemson.rsrg.typeandpopulate.entry.SymbolTableEntry; import edu.clemson.rsrg.typeandpopulate.utilities.LazyMappingIterator; import java.util.Collection; import java.util.Iterator;
import edu.clemson.rsrg.misc.*; import edu.clemson.rsrg.typeandpopulate.entry.*; import edu.clemson.rsrg.typeandpopulate.utilities.*; import java.util.*;
[ "edu.clemson.rsrg", "java.util" ]
edu.clemson.rsrg; java.util;
1,718,929
Iterable<Team> getAllTeams();
Iterable<Team> getAllTeams();
/** * Retrieves all unique teams * * @return A data response list of type Scope containing all unique scopes */
Retrieves all unique teams
getAllTeams
{ "repo_name": "satishc1/Hygieia", "path": "api/src/main/java/com/capitalone/dashboard/service/TeamService.java", "license": "apache-2.0", "size": 1475 }
[ "com.capitalone.dashboard.model.Team" ]
import com.capitalone.dashboard.model.Team;
import com.capitalone.dashboard.model.*;
[ "com.capitalone.dashboard" ]
com.capitalone.dashboard;
546,261
public void setContent(View view) { mViewAbove.setContent(view); showContent(); }
void function(View view) { mViewAbove.setContent(view); showContent(); }
/** * Set the above view content to the given View. * * @param view The desired content to display. */
Set the above view content to the given View
setContent
{ "repo_name": "eduardoweiland/doode-android", "path": "libs/SlidingMenu/src/com/slidingmenu/lib/SlidingMenu.java", "license": "gpl-3.0", "size": 25339 }
[ "android.view.View" ]
import android.view.View;
import android.view.*;
[ "android.view" ]
android.view;
1,859,266
public AudioSample createSample(float[] leftSampleData, float[] rightSampleData, AudioFormat format, int bufferSize) { AudioSample sample = mimp.getAudioSample( leftSampleData, rightSampleData, format, bufferSize ); addSource( sample ); return sample; }
AudioSample function(float[] leftSampleData, float[] rightSampleData, AudioFormat format, int bufferSize) { AudioSample sample = mimp.getAudioSample( leftSampleData, rightSampleData, format, bufferSize ); addSource( sample ); return sample; }
/** * Creates an AudioSample using the provided left and right channel * sample data. * * @param leftSampleData * float[]: the left channel of the sample data * @param rightSampleData * float[]: the right channel of the sample data * @param format * the Audio...
Creates an AudioSample using the provided left and right channel sample data
createSample
{ "repo_name": "UTSDataArena/examples", "path": "processing/sketchbook/libraries/minim/src/ddf/minim/Minim.java", "license": "bsd-2-clause", "size": 33442 }
[ "javax.sound.sampled.AudioFormat" ]
import javax.sound.sampled.AudioFormat;
import javax.sound.sampled.*;
[ "javax.sound" ]
javax.sound;
2,360,596
public GamePiece findPiece(Point pt, PieceFinder finder) { GamePiece[] stack = pieces.getPieces(); for (int i = stack.length - 1; i >= 0; --i) { GamePiece p = finder.select(this, stack[i], pt); if (p != null) { return p; } } return null; }
GamePiece function(Point pt, PieceFinder finder) { GamePiece[] stack = pieces.getPieces(); for (int i = stack.length - 1; i >= 0; --i) { GamePiece p = finder.select(this, stack[i], pt); if (p != null) { return p; } } return null; }
/** * Use the provided {@link PieceFinder} instance to locate a visible piece at the given location */
Use the provided <code>PieceFinder</code> instance to locate a visible piece at the given location
findPiece
{ "repo_name": "rzymek/vassal-src", "path": "src/VASSAL/build/module/Map.java", "license": "lgpl-2.1", "size": 81192 }
[ "java.awt.Point" ]
import java.awt.Point;
import java.awt.*;
[ "java.awt" ]
java.awt;
1,269,340
@Test public void evaluateComparisonFunctionsGarbageCollection() { // This test method is only to get more code coverage. There are no useful asserts here. final ArrayList<AssemblyMessage> messages = new ArrayList<>(); ExpressionEvaluation.evaluateComparison(new FunctionValue(new Undet...
void function() { final ArrayList<AssemblyMessage> messages = new ArrayList<>(); ExpressionEvaluation.evaluateComparison(new FunctionValue(new UndeterminedFunction()), new FunctionValue( new UndeterminedFunction()), new EvaluationContext(null, 0, new AssemblyMessageCollector(messages)), ExpressionEvaluation.Comparison....
/** * Asserts that * {@link ExpressionEvaluation#evaluateComparison(Value, Value, EvaluationContext, ExpressionEvaluation.Comparison)} behaves * correctly after a garbage collection. */
Asserts that <code>ExpressionEvaluation#evaluateComparison(Value, Value, EvaluationContext, ExpressionEvaluation.Comparison)</code> behaves correctly after a garbage collection
evaluateComparisonFunctionsGarbageCollection
{ "repo_name": "reasm/reasm-core", "path": "src/test/java/org/reasm/expressions/ExpressionEvaluationTest.java", "license": "mit", "size": 254919 }
[ "java.util.ArrayList", "org.hamcrest.Matchers", "org.junit.Assert", "org.reasm.AssemblyMessage", "org.reasm.FunctionValue", "org.reasm.testhelpers.AssemblyMessageCollector" ]
import java.util.ArrayList; import org.hamcrest.Matchers; import org.junit.Assert; import org.reasm.AssemblyMessage; import org.reasm.FunctionValue; import org.reasm.testhelpers.AssemblyMessageCollector;
import java.util.*; import org.hamcrest.*; import org.junit.*; import org.reasm.*; import org.reasm.testhelpers.*;
[ "java.util", "org.hamcrest", "org.junit", "org.reasm", "org.reasm.testhelpers" ]
java.util; org.hamcrest; org.junit; org.reasm; org.reasm.testhelpers;
1,537,594
void addRoute(String routeGroupId, ProcessInstanceDAO target, int index, CorrelationKey correlationKey);
void addRoute(String routeGroupId, ProcessInstanceDAO target, int index, CorrelationKey correlationKey);
/** * Add a route from the given correlation key to the given process instance. * @param routeGroupId identifier of the group of routes to which this route belongs * @param target target process instance * @param index relative order in which the route should be considered * @param correlationKey correla...
Add a route from the given correlation key to the given process instance
addRoute
{ "repo_name": "dinkelaker/hbs4ode", "path": "bpel-dao/src/main/java/org/apache/ode/bpel/dao/CorrelatorDAO.java", "license": "apache-2.0", "size": 3571 }
[ "org.apache.ode.bpel.common.CorrelationKey" ]
import org.apache.ode.bpel.common.CorrelationKey;
import org.apache.ode.bpel.common.*;
[ "org.apache.ode" ]
org.apache.ode;
468,024
public void write(final File file) throws Exception { File output_file = file; if (output_file == null) { output_file = db_file; } Matrix<String> matrix = new Matrix<String>(); for (int id : cards.keySet()) { CardInstance instance = cards.get(id); List<String> values = getValues(instance); ...
void function(final File file) throws Exception { File output_file = file; if (output_file == null) { output_file = db_file; } Matrix<String> matrix = new Matrix<String>(); for (int id : cards.keySet()) { CardInstance instance = cards.get(id); List<String> values = getValues(instance); values.set(RESERVED, ""); matrix....
/** * Writes the db to an excel file. * @throws Exception */
Writes the db to an excel file
write
{ "repo_name": "kilroyrlc/kaflib", "path": "src/kaflib/applications/mtg/CardDatabase.java", "license": "mit", "size": 15342 }
[ "java.io.File", "java.util.List" ]
import java.io.File; import java.util.List;
import java.io.*; import java.util.*;
[ "java.io", "java.util" ]
java.io; java.util;
2,217,320
public void fatal(Object message, Throwable throwable) { if (logger.isEnabledFor(Level.FATAL)) { //logger.fatal(message, throwable); logger.log(FQCN, Level.FATAL, message, throwable) ; } }
void function(Object message, Throwable throwable) { if (logger.isEnabledFor(Level.FATAL)) { logger.log(FQCN, Level.FATAL, message, throwable) ; } }
/** * Log a message object with the FATAL level including the stack trace of * the Throwable t passed as parameter. * @param message the message object to log. * @param throwable the exception to log, including its stack trace. */
Log a message object with the FATAL level including the stack trace of the Throwable t passed as parameter
fatal
{ "repo_name": "NCIP/commons-module", "path": "software/washu-commons/src/main/java/edu/wustl/common/util/logger/Logger.java", "license": "bsd-3-clause", "size": 7455 }
[ "org.apache.log4j.Level" ]
import org.apache.log4j.Level;
import org.apache.log4j.*;
[ "org.apache.log4j" ]
org.apache.log4j;
547,946
public void addConstraint(SecurityConstraint constraint) { // Validate the proposed constraint SecurityCollection collections[] = constraint.findCollections(); for (int i = 0; i < collections.length; i++) { String patterns[] = collections[i].findPatterns(); for...
void function(SecurityConstraint constraint) { SecurityCollection collections[] = constraint.findCollections(); for (int i = 0; i < collections.length; i++) { String patterns[] = collections[i].findPatterns(); for (int j = 0; j < patterns.length; j++) { patterns[j] = adjustURLPattern(patterns[j]); if (!validateURLPatte...
/** * Add a security constraint to the set for this web application. */
Add a security constraint to the set for this web application
addConstraint
{ "repo_name": "c-rainstorm/jerrydog", "path": "src/main/java/org/apache/catalina/core/StandardContext.java", "license": "gpl-3.0", "size": 118973 }
[ "org.apache.catalina.deploy.SecurityCollection", "org.apache.catalina.deploy.SecurityConstraint" ]
import org.apache.catalina.deploy.SecurityCollection; import org.apache.catalina.deploy.SecurityConstraint;
import org.apache.catalina.deploy.*;
[ "org.apache.catalina" ]
org.apache.catalina;
1,998,784
public String toString() { FloatArrayList theKeys = keys(); //theKeys.sort(); StringBuilder buf = new StringBuilder(); buf.append('['); int maxIndex = theKeys.size() - 1; for (int i = 0; i <= maxIndex; i++) { float key = theKeys.get(i); buf.append(String.valueOf(key)); buf.a...
String function() { FloatArrayList theKeys = keys(); StringBuilder buf = new StringBuilder(); buf.append('['); int maxIndex = theKeys.size() - 1; for (int i = 0; i <= maxIndex; i++) { float key = theKeys.get(i); buf.append(String.valueOf(key)); buf.append("->"); buf.append(String.valueOf(get(key))); if (i < maxIndex) {...
/** * Returns a string representation of the receiver, containing the String representation of each key-value pair, * sorted ascending by key. */
Returns a string representation of the receiver, containing the String representation of each key-value pair, sorted ascending by key
toString
{ "repo_name": "genericDataCompany/hsandbox", "path": "common/mahout-distribution-0.7-hadoop1/math/target/generated-sources/org/apache/mahout/math/map/AbstractFloatFloatMap.java", "license": "apache-2.0", "size": 17694 }
[ "org.apache.mahout.math.list.FloatArrayList" ]
import org.apache.mahout.math.list.FloatArrayList;
import org.apache.mahout.math.list.*;
[ "org.apache.mahout" ]
org.apache.mahout;
1,127,635
Single<Collection<String>> rangeTail(String fromElement, boolean fromInclusive);
Single<Collection<String>> rangeTail(String fromElement, boolean fromInclusive);
/** * Returns tail values range starting with <code>fromElement</code>. * * @param fromElement - start element * @param fromInclusive - start element inclusive * @return collection of elements */
Returns tail values range starting with <code>fromElement</code>
rangeTail
{ "repo_name": "redisson/redisson", "path": "redisson/src/main/java/org/redisson/api/RLexSortedSetRx.java", "license": "apache-2.0", "size": 5899 }
[ "io.reactivex.rxjava3.core.Single", "java.util.Collection" ]
import io.reactivex.rxjava3.core.Single; import java.util.Collection;
import io.reactivex.rxjava3.core.*; import java.util.*;
[ "io.reactivex.rxjava3", "java.util" ]
io.reactivex.rxjava3; java.util;
1,434,498
private void exportPortInstsWithMatchingNames(List<String> expNames, List<PortInst> ports) { for (Iterator<String> sIt=expNames.iterator(); sIt.hasNext();) { String expNm = sIt.next(); for (Iterator<PortInst> pIt=ports.iterator(); pIt.hasNext();) { PortInst p...
void function(List<String> expNames, List<PortInst> ports) { for (Iterator<String> sIt=expNames.iterator(); sIt.hasNext();) { String expNm = sIt.next(); for (Iterator<PortInst> pIt=ports.iterator(); pIt.hasNext();) { PortInst pi = pIt.next(); String portNm = pi.getPortProto().getName(); if (expNm.equals(portNm)) { Expo...
/** If PortInst name matches Export name then export PortInst and * remove PortInst and export name from respective lists. */
If PortInst name matches Export name then export PortInst and
exportPortInstsWithMatchingNames
{ "repo_name": "imr/Electric8", "path": "com/sun/electric/tool/generator/flag/FlagDesign.java", "license": "gpl-3.0", "size": 26138 }
[ "com.sun.electric.database.hierarchy.Export", "com.sun.electric.database.topology.PortInst", "java.util.Iterator", "java.util.List" ]
import com.sun.electric.database.hierarchy.Export; import com.sun.electric.database.topology.PortInst; import java.util.Iterator; import java.util.List;
import com.sun.electric.database.hierarchy.*; import com.sun.electric.database.topology.*; import java.util.*;
[ "com.sun.electric", "java.util" ]
com.sun.electric; java.util;
2,570,368
public void commitTransaction() throws HibernateUtilException { Transaction tx = (Transaction) threadTransaction.get(); try { if ( tx != null && !tx.wasCommitted() && !tx.wasRolledBack() ) { //System.err.println("Committing database transaction of this thr...
void function() throws HibernateUtilException { Transaction tx = (Transaction) threadTransaction.get(); try { if ( tx != null && !tx.wasCommitted() && !tx.wasRolledBack() ) { tx.commit(); } threadTransaction.set(null); } catch (HibernateException ex) { rollbackTransaction(); throw new HibernateUtilException(ex); } }
/** * Commit the database transaction. */
Commit the database transaction
commitTransaction
{ "repo_name": "ACS-Community/ACS", "path": "LGPL/CommonSoftware/cdb_rdb/src/com/cosylab/cdb/jdal/hibernate/HibernateUtil.java", "license": "lgpl-2.1", "size": 13337 }
[ "org.hibernate.HibernateException", "org.hibernate.Transaction" ]
import org.hibernate.HibernateException; import org.hibernate.Transaction;
import org.hibernate.*;
[ "org.hibernate" ]
org.hibernate;
836,979
TopicDraft saveOrUpdateDraft(TopicDraft draft);
TopicDraft saveOrUpdateDraft(TopicDraft draft);
/** * Save or update the draft topic. * * @param draft the draft topic */
Save or update the draft topic
saveOrUpdateDraft
{ "repo_name": "NCNecros/jcommune", "path": "jcommune-plugin-api/src/main/java/org/jtalks/jcommune/plugin/api/service/PluginTopicDraftService.java", "license": "lgpl-2.1", "size": 1329 }
[ "org.jtalks.jcommune.model.entity.TopicDraft" ]
import org.jtalks.jcommune.model.entity.TopicDraft;
import org.jtalks.jcommune.model.entity.*;
[ "org.jtalks.jcommune" ]
org.jtalks.jcommune;
2,441,008
private void stopCam(Camera cam) { cam.stopPreview(); cam.setPreviewCallback(null); cam.release(); Log.i(CamActivity.TAG, "stopped camera"); }
void function(Camera cam) { cam.stopPreview(); cam.setPreviewCallback(null); cam.release(); Log.i(CamActivity.TAG, STR); }
/** * Stop camera preview and close camera device. */
Stop camera preview and close camera device
stopCam
{ "repo_name": "headupinclouds/ogles_gpgpu", "path": "examples/android/OGVideoProcDroid/src/ogles_gpgpu/examples/ogvideoprocdroid/CameraProcThread.java", "license": "apache-2.0", "size": 13376 }
[ "android.hardware.Camera", "android.util.Log" ]
import android.hardware.Camera; import android.util.Log;
import android.hardware.*; import android.util.*;
[ "android.hardware", "android.util" ]
android.hardware; android.util;
871,526
public static Map<Object, String> getIndicatorGroupMap() { return indicatorGroupMap.get() != null ? new HashMap<>( indicatorGroupMap.get() ) : new HashMap<Object, String>(); } // ------------------------------------------------------------------------- // IndicatorGroupSet // ---...
static Map<Object, String> function() { return indicatorGroupMap.get() != null ? new HashMap<>( indicatorGroupMap.get() ) : new HashMap<Object, String>(); }
/** * Returns a map with all IndicatorGroup identifier and name entries. */
Returns a map with all IndicatorGroup identifier and name entries
getIndicatorGroupMap
{ "repo_name": "kakada/dhis2", "path": "dhis-services/dhis-service-importexport/src/main/java/org/hisp/dhis/importexport/mapping/NameMappingUtil.java", "license": "bsd-3-clause", "size": 22134 }
[ "java.util.HashMap", "java.util.Map" ]
import java.util.HashMap; import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
2,386,805
public KBTemplatePersistence getKBTemplatePersistence() { return kbTemplatePersistence; }
KBTemplatePersistence function() { return kbTemplatePersistence; }
/** * Returns the k b template persistence. * * @return the k b template persistence */
Returns the k b template persistence
getKBTemplatePersistence
{ "repo_name": "codyhoag/blade.tools", "path": "blade.migrate.liferay70/projects/knowledge-base-portlet-6.2.x/docroot/WEB-INF/src/com/liferay/knowledgebase/service/base/KBCommentServiceBaseImpl.java", "license": "apache-2.0", "size": 23607 }
[ "com.liferay.knowledgebase.service.persistence.KBTemplatePersistence" ]
import com.liferay.knowledgebase.service.persistence.KBTemplatePersistence;
import com.liferay.knowledgebase.service.persistence.*;
[ "com.liferay.knowledgebase" ]
com.liferay.knowledgebase;
2,326,720
public void testTransferReport() throws Exception { setDefaultRollback(false); String guestHomeQuery = "/app:company_home/app:guest_home"; ResultSet guestHomeResult = searchService.query(StoreRef.STORE_REF_WORKSPACE_SPACESSTORE, SearchService.LANGUAGE_XPATH, guestH...
void function() throws Exception { setDefaultRollback(false); String guestHomeQuery = STR; ResultSet guestHomeResult = searchService.query(StoreRef.STORE_REF_WORKSPACE_SPACESSTORE, SearchService.LANGUAGE_XPATH, guestHomeQuery); assertEquals(STRContentTitleSTRReport Node ASTRReport Node BSTRHelloSTRtestTransferReport";
/** * Test the transfer report. * * This is a unit test so it does some shenanigans to send to the same instance of alfresco. */
Test the transfer report. This is a unit test so it does some shenanigans to send to the same instance of alfresco
testTransferReport
{ "repo_name": "fxcebx/community-edition", "path": "projects/repository/source/test-java/org/alfresco/repo/transfer/TransferServiceToBeRefactoredTest.java", "license": "lgpl-3.0", "size": 259756 }
[ "org.alfresco.service.cmr.repository.StoreRef", "org.alfresco.service.cmr.search.ResultSet", "org.alfresco.service.cmr.search.SearchService" ]
import org.alfresco.service.cmr.repository.StoreRef; import org.alfresco.service.cmr.search.ResultSet; import org.alfresco.service.cmr.search.SearchService;
import org.alfresco.service.cmr.repository.*; import org.alfresco.service.cmr.search.*;
[ "org.alfresco.service" ]
org.alfresco.service;
1,263,841