method
stringlengths
13
441k
clean_method
stringlengths
7
313k
doc
stringlengths
17
17.3k
comment
stringlengths
3
1.42k
method_name
stringlengths
1
273
extra
dict
imports
list
imports_info
stringlengths
19
34.8k
cluster_imports_info
stringlengths
15
3.66k
libraries
list
libraries_info
stringlengths
6
661
id
int64
0
2.92M
public V getFacelet(FaceletContext ctx, URL url) throws IOException { return getFacelet(url); }
V function(FaceletContext ctx, URL url) throws IOException { return getFacelet(url); }
/** * Retrieve a Facelet instance from the cache given the passed url, but taking into * account the facelet context too, so the cache can implement special rules * according to the context for recompile the facelet if necessary. * * @param ctx * @param url * @return * @throws ...
Retrieve a Facelet instance from the cache given the passed url, but taking into account the facelet context too, so the cache can implement special rules according to the context for recompile the facelet if necessary
getFacelet
{ "repo_name": "kulinski/myfaces", "path": "impl/src/main/java/org/apache/myfaces/view/facelets/AbstractFaceletCache.java", "license": "apache-2.0", "size": 3385 }
[ "java.io.IOException", "javax.faces.view.facelets.FaceletContext" ]
import java.io.IOException; import javax.faces.view.facelets.FaceletContext;
import java.io.*; import javax.faces.view.facelets.*;
[ "java.io", "javax.faces" ]
java.io; javax.faces;
2,370,335
private void updateTypeOfParametersOnClosure(Node n, FunctionType fnType) { int i = 0; int childCount = n.getChildCount(); for (Node iParameter : fnType.getParameters()) { JSType iParameterType = iParameter.getJSType(); if (iParameterType instanceof FunctionType) { FunctionType iParame...
void function(Node n, FunctionType fnType) { int i = 0; int childCount = n.getChildCount(); for (Node iParameter : fnType.getParameters()) { JSType iParameterType = iParameter.getJSType(); if (iParameterType instanceof FunctionType) { FunctionType iParameterFnType = (FunctionType) iParameterType; if (i + 1 >= childCoun...
/** * For functions with function parameters, type inference will set the type of * a function literal argument from the function parameter type. */
For functions with function parameters, type inference will set the type of a function literal argument from the function parameter type
updateTypeOfParametersOnClosure
{ "repo_name": "007slm/kissy", "path": "tools/module-compiler/src/com/google/javascript/jscomp/TypeInference.java", "license": "mit", "size": 46925 }
[ "com.google.javascript.rhino.Node", "com.google.javascript.rhino.Token", "com.google.javascript.rhino.jstype.FunctionType", "com.google.javascript.rhino.jstype.JSType" ]
import com.google.javascript.rhino.Node; import com.google.javascript.rhino.Token; 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;
1,891,159
public void setDeletedTable(final String tableName) throws KeeperException { synchronized (this.cache) { List<ZKUtilOp> ops = new LinkedList<ZKUtilOp>(); ops.add(ZKUtilOp.deleteNodeFailSilent( ZKUtil.joinZNode(this.watcher.masterTableZNode92, tableName))); // If not running multi-updat...
void function(final String tableName) throws KeeperException { synchronized (this.cache) { List<ZKUtilOp> ops = new LinkedList<ZKUtilOp>(); ops.add(ZKUtilOp.deleteNodeFailSilent( ZKUtil.joinZNode(this.watcher.masterTableZNode92, tableName))); ops.add(ZKUtilOp.deleteNodeFailSilent( ZKUtil.joinZNode(this.watcher.masterTa...
/** * Deletes the table in zookeeper. Fails silently if the * table is not currently disabled in zookeeper. Sets no watches. * @param tableName * @throws KeeperException unexpected zookeeper exception */
Deletes the table in zookeeper. Fails silently if the table is not currently disabled in zookeeper. Sets no watches
setDeletedTable
{ "repo_name": "zqxjjj/NobidaBase", "path": "target/hbase-0.94.9/hbase-0.94.9/src/main/java/org/apache/hadoop/hbase/zookeeper/ZKTable.java", "license": "apache-2.0", "size": 13357 }
[ "java.util.LinkedList", "java.util.List", "org.apache.hadoop.hbase.zookeeper.ZKUtil", "org.apache.zookeeper.KeeperException" ]
import java.util.LinkedList; import java.util.List; import org.apache.hadoop.hbase.zookeeper.ZKUtil; import org.apache.zookeeper.KeeperException;
import java.util.*; import org.apache.hadoop.hbase.zookeeper.*; import org.apache.zookeeper.*;
[ "java.util", "org.apache.hadoop", "org.apache.zookeeper" ]
java.util; org.apache.hadoop; org.apache.zookeeper;
607,786
public void flush(Map<TopicPartition, OffsetAndMetadata> currentOffsets) { }
void function(Map<TopicPartition, OffsetAndMetadata> currentOffsets) { }
/** * Flush all records that have been {@link #put(Collection)} for the specified topic-partitions. * * @param currentOffsets the current offset state as of the last call to {@link #put(Collection)}}, * provided for convenience but could also be determined by tracking all offse...
Flush all records that have been <code>#put(Collection)</code> for the specified topic-partitions
flush
{ "repo_name": "themarkypantz/kafka", "path": "connect/api/src/main/java/org/apache/kafka/connect/sink/SinkTask.java", "license": "apache-2.0", "size": 8247 }
[ "java.util.Map", "org.apache.kafka.clients.consumer.OffsetAndMetadata", "org.apache.kafka.common.TopicPartition" ]
import java.util.Map; import org.apache.kafka.clients.consumer.OffsetAndMetadata; import org.apache.kafka.common.TopicPartition;
import java.util.*; import org.apache.kafka.clients.consumer.*; import org.apache.kafka.common.*;
[ "java.util", "org.apache.kafka" ]
java.util; org.apache.kafka;
2,647,337
protected void addToQuarantineQueue(NodePortTuple npt) { if (quarantineQueue.contains(npt) == false) { quarantineQueue.add(npt); } }
void function(NodePortTuple npt) { if (quarantineQueue.contains(npt) == false) { quarantineQueue.add(npt); } }
/** * Add a switch port to the quarantine queue. Schedule the quarantine task * if the quarantine queue was empty before adding this switch port. * * @param npt */
Add a switch port to the quarantine queue. Schedule the quarantine task if the quarantine queue was empty before adding this switch port
addToQuarantineQueue
{ "repo_name": "thisthat/floodlight-controller", "path": "src/main/java/net/floodlightcontroller/linkdiscovery/internal/LinkDiscoveryManager.java", "license": "apache-2.0", "size": 72066 }
[ "net.floodlightcontroller.topology.NodePortTuple" ]
import net.floodlightcontroller.topology.NodePortTuple;
import net.floodlightcontroller.topology.*;
[ "net.floodlightcontroller.topology" ]
net.floodlightcontroller.topology;
1,531,267
EReference getTHumanInteractions_Tasks();
EReference getTHumanInteractions_Tasks();
/** * Returns the meta object for the containment reference '{@link org.wso2.developerstudio.eclipse.humantask.model.ht.THumanInteractions#getTasks <em>Tasks</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for the containment reference '<em>Tasks</em>'. * @see org.wso2.deve...
Returns the meta object for the containment reference '<code>org.wso2.developerstudio.eclipse.humantask.model.ht.THumanInteractions#getTasks Tasks</code>'.
getTHumanInteractions_Tasks
{ "repo_name": "chanakaudaya/developer-studio", "path": "humantask/org.wso2.tools.humantask.model/src/org/wso2/carbonstudio/eclipse/humantask/model/ht/HTPackage.java", "license": "apache-2.0", "size": 247810 }
[ "org.eclipse.emf.ecore.EReference" ]
import org.eclipse.emf.ecore.EReference;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
1,563,428
public static StorableMessageMetaData getMessageMetaData(long messageID) throws AMQException { StorableMessageMetaData metaData; try { metaData = AMQPUtils.convertAndesMetadataToAMQMetadata (MessagingEngine.getInstance().getMessageMetaData(messageID)); } catch...
static StorableMessageMetaData function(long messageID) throws AMQException { StorableMessageMetaData metaData; try { metaData = AMQPUtils.convertAndesMetadataToAMQMetadata (MessagingEngine.getInstance().getMessageMetaData(messageID)); } catch (AndesException e) { log.error(STR, e); throw new AMQException(AMQConstant.I...
/** * read metadata of a message from store * * @param messageID id of the message * @return StorableMessageMetaData * @throws AMQException */
read metadata of a message from store
getMessageMetaData
{ "repo_name": "ramith/andes", "path": "modules/andes-core/broker/src/main/java/org/wso2/andes/amqp/QpidAndesBridge.java", "license": "apache-2.0", "size": 28773 }
[ "org.wso2.andes.AMQException", "org.wso2.andes.kernel.AndesException", "org.wso2.andes.kernel.MessagingEngine", "org.wso2.andes.protocol.AMQConstant", "org.wso2.andes.server.store.StorableMessageMetaData" ]
import org.wso2.andes.AMQException; import org.wso2.andes.kernel.AndesException; import org.wso2.andes.kernel.MessagingEngine; import org.wso2.andes.protocol.AMQConstant; import org.wso2.andes.server.store.StorableMessageMetaData;
import org.wso2.andes.*; import org.wso2.andes.kernel.*; import org.wso2.andes.protocol.*; import org.wso2.andes.server.store.*;
[ "org.wso2.andes" ]
org.wso2.andes;
42,663
public Observable<ServiceResponse<SelfHostedIntegrationRuntimeNodeInner>> updateWithServiceResponseAsync(String resourceGroupName, String workspaceName, String integrationRuntimeName, String nodeName) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter thi...
Observable<ServiceResponse<SelfHostedIntegrationRuntimeNodeInner>> function(String resourceGroupName, String workspaceName, String integrationRuntimeName, String nodeName) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException(STR); } if (resourceGroupName == null) { throw new IllegalArgumentE...
/** * Create integration runtime node. * Create an integration runtime node. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace * @param integrationRuntimeName Integration runtime name * @param no...
Create integration runtime node. Create an integration runtime node
updateWithServiceResponseAsync
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/implementation/IntegrationRuntimeNodesInner.java", "license": "mit", "size": 30153 }
[ "com.microsoft.rest.ServiceResponse" ]
import com.microsoft.rest.ServiceResponse;
import com.microsoft.rest.*;
[ "com.microsoft.rest" ]
com.microsoft.rest;
1,315,287
public static String getFileContent(String filePath) { File file = new File(filePath); if (file.exists()) { BufferedReader br = null; try { br = new BufferedReader(new FileReader(file));//Construct a BufferedReader class to read the file. Strin...
static String function(String filePath) { File file = new File(filePath); if (file.exists()) { BufferedReader br = null; try { br = new BufferedReader(new FileReader(file)); String result = null; String s = null; while ((s = br.readLine()) != null) { result = result + "\n" + s; } return result; } catch (Exception e) { ...
/** * Get file content * * @param filePath filePath * @return file content */
Get file content
getFileContent
{ "repo_name": "Jusenr/androidtools", "path": "toolslibrary/src/main/java/com/jusenr/toolslibrary/utils/FileUtils.java", "license": "apache-2.0", "size": 21075 }
[ "java.io.BufferedReader", "java.io.File", "java.io.FileReader", "java.io.IOException" ]
import java.io.BufferedReader; import java.io.File; import java.io.FileReader; import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
1,304,286
protected void finalize() { try { close(); } catch (SQLException e) { } }
void function() { try { close(); } catch (SQLException e) { } }
/** * The default implementation simply attempts to silently {@link * #close() close()} this <code>Connection</code> */
The default implementation simply attempts to silently <code>#close() close()</code> this <code>Connection</code>
finalize
{ "repo_name": "kobronson/cs-voltdb", "path": "src/hsqldb19b3/org/hsqldb_voltpatches/jdbc/JDBCConnection.java", "license": "agpl-3.0", "size": 140102 }
[ "java.sql.SQLException" ]
import java.sql.SQLException;
import java.sql.*;
[ "java.sql" ]
java.sql;
832,261
void beforeFile(File file, PackFile pf) throws Exception;
void beforeFile(File file, PackFile pf) throws Exception;
/** * This method will be called from the unpacker before one file should be installed. * * @param file current File object of the file which should be installed * @param pf corresponding PackFile object * @throws Exception */
This method will be called from the unpacker before one file should be installed
beforeFile
{ "repo_name": "dasapich/izpack", "path": "src/lib/com/izforge/izpack/event/InstallerListener.java", "license": "apache-2.0", "size": 5724 }
[ "com.izforge.izpack.PackFile", "java.io.File" ]
import com.izforge.izpack.PackFile; import java.io.File;
import com.izforge.izpack.*; import java.io.*;
[ "com.izforge.izpack", "java.io" ]
com.izforge.izpack; java.io;
1,338,326
public Graphics create() { return (Graphics) clone(); }
Graphics function() { return (Graphics) clone(); }
/** * Create a new SunGraphics2D based on this one. */
Create a new SunGraphics2D based on this one
create
{ "repo_name": "openjdk/jdk7u", "path": "jdk/src/share/classes/sun/java2d/SunGraphics2D.java", "license": "gpl-2.0", "size": 133716 }
[ "java.awt.Graphics" ]
import java.awt.Graphics;
import java.awt.*;
[ "java.awt" ]
java.awt;
2,406,659
private static void upgradeMessageV1ToV2(SQLiteDatabase db, Cursor cursor) { int geographicalScope = cursor.getInt(COLUMN_V1_GEOGRAPHICAL_SCOPE); int updateNumber = cursor.getInt(COLUMN_V1_SERIAL_NUMBER); int messageCode = cursor.getInt(COLUMN_V1_MESSAGE_CODE); int messageId = cursor...
static void function(SQLiteDatabase db, Cursor cursor) { int geographicalScope = cursor.getInt(COLUMN_V1_GEOGRAPHICAL_SCOPE); int updateNumber = cursor.getInt(COLUMN_V1_SERIAL_NUMBER); int messageCode = cursor.getInt(COLUMN_V1_MESSAGE_CODE); int messageId = cursor.getInt(COLUMN_V1_MESSAGE_IDENTIFIER); String languageCo...
/** * Upgrades a single broadcast message from version 1 to version 2. */
Upgrades a single broadcast message from version 1 to version 2
upgradeMessageV1ToV2
{ "repo_name": "rex-xxx/mt6572_x201", "path": "packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/CellBroadcastDatabaseHelper.java", "license": "gpl-2.0", "size": 15334 }
[ "android.content.ContentValues", "android.database.Cursor", "android.database.sqlite.SQLiteDatabase", "android.provider.Telephony", "android.telephony.SmsCbCmasInfo", "android.telephony.SmsCbEtwsInfo", "android.telephony.SmsCbMessage", "com.android.internal.telephony.gsm.SmsCbConstants" ]
import android.content.ContentValues; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.provider.Telephony; import android.telephony.SmsCbCmasInfo; import android.telephony.SmsCbEtwsInfo; import android.telephony.SmsCbMessage; import com.android.internal.telephony.gsm.SmsCbCo...
import android.content.*; import android.database.*; import android.database.sqlite.*; import android.provider.*; import android.telephony.*; import com.android.internal.telephony.gsm.*;
[ "android.content", "android.database", "android.provider", "android.telephony", "com.android.internal" ]
android.content; android.database; android.provider; android.telephony; com.android.internal;
2,653,001
return (AudioInputStream) this.getChallengeForID(ID); }
return (AudioInputStream) this.getChallengeForID(ID); }
/** * Method to retrive the image challenge corresponding to the given ticket. * * @param ID the ticket * * @return the challenge * * @throws com.octo.captcha.service.CaptchaServiceException * if the ticket is invalid */
Method to retrive the image challenge corresponding to the given ticket
getSoundChallengeForID
{ "repo_name": "pengqiuyuan/jcaptcha", "path": "src/main/java/com/octo/captcha/service/sound/AbstractManageableSoundCaptchaService.java", "license": "lgpl-2.1", "size": 3088 }
[ "javax.sound.sampled.AudioInputStream" ]
import javax.sound.sampled.AudioInputStream;
import javax.sound.sampled.*;
[ "javax.sound" ]
javax.sound;
2,743,194
public void run(T configuration, Environment environment) throws Exception { for (Bundle bundle : bundles) { bundle.run(environment); } for (ConfiguredBundle<? super T> bundle : configuredBundles) { bundle.run(configuration, environment); } }
void function(T configuration, Environment environment) throws Exception { for (Bundle bundle : bundles) { bundle.run(environment); } for (ConfiguredBundle<? super T> bundle : configuredBundles) { bundle.run(configuration, environment); } }
/** * Runs the bootstrap's bundles with the given configuration and environment. * * @param configuration the parsed configuration * @param environment the application environment * @throws Exception if a bundle throws an exception */
Runs the bootstrap's bundles with the given configuration and environment
run
{ "repo_name": "philandstuff/dropwizard", "path": "dropwizard-core/src/main/java/io/dropwizard/setup/Bootstrap.java", "license": "apache-2.0", "size": 8092 }
[ "io.dropwizard.Bundle", "io.dropwizard.ConfiguredBundle" ]
import io.dropwizard.Bundle; import io.dropwizard.ConfiguredBundle;
import io.dropwizard.*;
[ "io.dropwizard" ]
io.dropwizard;
561,940
public static Map<String, Map<String, Integer>> getPermutationOrgUnitGroupCountMap( Map<String, Double> orgUnitCountMap ) { MapMap<String, String, Integer> countMap = new MapMap<>(); for ( String key : orgUnitCountMap.keySet() ) { List<String> keys = Lists.newArrayLi...
static Map<String, Map<String, Integer>> function( Map<String, Double> orgUnitCountMap ) { MapMap<String, String, Integer> countMap = new MapMap<>(); for ( String key : orgUnitCountMap.keySet() ) { List<String> keys = Lists.newArrayList( key.split( DIMENSION_SEP ) ); int ougInx = keys.size() - 1; String oug = keys.get(...
/** * Returns a mapping of permutations keys (org unit id or null) and mappings * of org unit group and counts, based on the given mapping of dimension option * keys and counts. */
Returns a mapping of permutations keys (org unit id or null) and mappings of org unit group and counts, based on the given mapping of dimension option keys and counts
getPermutationOrgUnitGroupCountMap
{ "repo_name": "EyeSeeTea/dhis2", "path": "dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/DataQueryParams.java", "license": "gpl-3.0", "size": 60770 }
[ "com.google.common.collect.Lists", "java.util.List", "java.util.Map", "org.apache.commons.lang3.StringUtils", "org.hisp.dhis.common.MapMap", "org.hisp.dhis.commons.collection.ListUtils" ]
import com.google.common.collect.Lists; import java.util.List; import java.util.Map; import org.apache.commons.lang3.StringUtils; import org.hisp.dhis.common.MapMap; import org.hisp.dhis.commons.collection.ListUtils;
import com.google.common.collect.*; import java.util.*; import org.apache.commons.lang3.*; import org.hisp.dhis.common.*; import org.hisp.dhis.commons.collection.*;
[ "com.google.common", "java.util", "org.apache.commons", "org.hisp.dhis" ]
com.google.common; java.util; org.apache.commons; org.hisp.dhis;
544,402
public static void confirm(String message) { if (!Util.isEmpty(message)) { getWindow().confirm(message); } }
static void function(String message) { if (!Util.isEmpty(message)) { getWindow().confirm(message); } }
/** * Show confirm window * * @param message */
Show confirm window
confirm
{ "repo_name": "m-wrona/gwt-medicapital", "path": "client_view/com/medicapital/client/ui/UIUtil.java", "license": "mit", "size": 2091 }
[ "com.medicapital.common.util.Util" ]
import com.medicapital.common.util.Util;
import com.medicapital.common.util.*;
[ "com.medicapital.common" ]
com.medicapital.common;
2,768,618
public RemoteQueueSystem getRemoteQueueSystem(EndPointIdentifier address, boolean create) { if(this.getStatus() != ENABLED) { logWarning("Method getRemoteQueueSystem(" + address + ", " +create + ") called in illegal state (" + getStatusName() + ")!"); return null; } if(address == null) ...
RemoteQueueSystem function(EndPointIdentifier address, boolean create) { if(this.getStatus() != ENABLED) { logWarning(STR + address + STR +create + STR + getStatusName() + ")!"); return null; } if(address == null) { logWarning(STR + JServerUtilities.getStackTrace()); return null; } if(!(address instanceof TcpEndPointId...
/** * Gets a DefaultQueueSystemEndPointProxy object representing a remote queue system at the * specified address.<br> * <br> * This method returns <code>null</code> if this DefaultQueueSystemCollaborationManager isn't ENABLED. * * @param address the address of the remote queue system (Must be an ins...
Gets a DefaultQueueSystemEndPointProxy object representing a remote queue system at the specified address. This method returns <code>null</code> if this DefaultQueueSystemCollaborationManager isn't ENABLED
getRemoteQueueSystem
{ "repo_name": "tolo/JServer", "path": "src/java/com/teletalk/jserver/queue/legacy/DefaultQueueSystemCollaborationManager.java", "license": "apache-2.0", "size": 34502 }
[ "com.teletalk.jserver.JServerUtilities", "com.teletalk.jserver.comm.EndPointIdentifier", "com.teletalk.jserver.queue.RemoteQueueSystem", "com.teletalk.jserver.tcp.TcpEndPointIdentifier" ]
import com.teletalk.jserver.JServerUtilities; import com.teletalk.jserver.comm.EndPointIdentifier; import com.teletalk.jserver.queue.RemoteQueueSystem; import com.teletalk.jserver.tcp.TcpEndPointIdentifier;
import com.teletalk.jserver.*; import com.teletalk.jserver.comm.*; import com.teletalk.jserver.queue.*; import com.teletalk.jserver.tcp.*;
[ "com.teletalk.jserver" ]
com.teletalk.jserver;
656,998
public File getDfsTestTmpDir() { return dfsTestTmpDir; }
File function() { return dfsTestTmpDir; }
/** * Gets the temp directory that should be used by the <b>dfs.tmp</b> workspace. * @return The temp directory that should be used by the <b>dfs.tmp</b> workspace. */
Gets the temp directory that should be used by the dfs.tmp workspace
getDfsTestTmpDir
{ "repo_name": "akumarb2010/incubator-drill", "path": "exec/java-exec/src/test/java/org/apache/drill/test/BaseDirTestWatcher.java", "license": "apache-2.0", "size": 10786 }
[ "java.io.File" ]
import java.io.File;
import java.io.*;
[ "java.io" ]
java.io;
883,681
protected boolean validateTarget( Object target, Object transfer ) { if ( DNDService.getInstance( ).validDrop( transfer, target, getCurrentOperation( ), new DNDLocation( getCurrentLocation( ) ) ) ) { return true; } if ( target != null ) { List transferDropConstraintList = getDropConstr...
boolean function( Object target, Object transfer ) { if ( DNDService.getInstance( ).validDrop( transfer, target, getCurrentOperation( ), new DNDLocation( getCurrentLocation( ) ) ) ) { return true; } if ( target != null ) { List transferDropConstraintList = getDropConstraintList( target.getClass( ) ); for ( Iterator ite...
/** * Validates target elements can be dropped, needs to compare with transfer * data * * @param target * target elements * @param transfer * transfer data * @return if target elements can be dropped */
Validates target elements can be dropped, needs to compare with transfer data
validateTarget
{ "repo_name": "Charling-Huang/birt", "path": "UI/org.eclipse.birt.report.designer.ui.views/src/org/eclipse/birt/report/designer/internal/ui/views/outline/dnd/DesignerDropListener.java", "license": "epl-1.0", "size": 11017 }
[ "java.util.Iterator", "java.util.List", "org.eclipse.birt.report.designer.internal.ui.dnd.DNDLocation", "org.eclipse.birt.report.designer.internal.ui.dnd.DNDService", "org.eclipse.birt.report.designer.util.DNDUtil", "org.eclipse.birt.report.model.api.DataSetHandle", "org.eclipse.birt.report.model.api.Da...
import java.util.Iterator; import java.util.List; import org.eclipse.birt.report.designer.internal.ui.dnd.DNDLocation; import org.eclipse.birt.report.designer.internal.ui.dnd.DNDService; import org.eclipse.birt.report.designer.util.DNDUtil; import org.eclipse.birt.report.model.api.DataSetHandle; import org.eclipse.birt...
import java.util.*; import org.eclipse.birt.report.designer.internal.ui.dnd.*; import org.eclipse.birt.report.designer.util.*; import org.eclipse.birt.report.model.api.*; import org.eclipse.birt.report.model.api.olap.*;
[ "java.util", "org.eclipse.birt" ]
java.util; org.eclipse.birt;
1,797,840
public Entity getClosest(Entity other){ Point point = new Point(other.getLoc()); double closestDistance = -1; Entity closest = null; for(Entity entity : entities){ double distance = Maths.dist(entity.getLoc(), point); if(closest == null || distance < closestDistance){ if(entity != other){ clos...
Entity function(Entity other){ Point point = new Point(other.getLoc()); double closestDistance = -1; Entity closest = null; for(Entity entity : entities){ double distance = Maths.dist(entity.getLoc(), point); if(closest == null distance < closestDistance){ if(entity != other){ closest = entity; closestDistance = distan...
/** * Returns the closest character to this character * @param other * @return */
Returns the closest character to this character
getClosest
{ "repo_name": "zadjii/demigods", "path": "src/util/data/EntityMap.java", "license": "mit", "size": 4257 }
[ "org.lwjgl.util.Point" ]
import org.lwjgl.util.Point;
import org.lwjgl.util.*;
[ "org.lwjgl.util" ]
org.lwjgl.util;
2,457,080
public static Builder<String, String> builder(String bootstrapServers, Pattern topics) { return setStringDeserializers(new Builder<>(bootstrapServers, topics)); }
static Builder<String, String> function(String bootstrapServers, Pattern topics) { return setStringDeserializers(new Builder<>(bootstrapServers, topics)); }
/** * Factory method that creates a Builder with String key/value deserializers. * * @param bootstrapServers The bootstrap servers for the consumer * @param topics The topic pattern to subscribe to * @return The new builder */
Factory method that creates a Builder with String key/value deserializers
builder
{ "repo_name": "hmcc/storm", "path": "external/storm-kafka-client/src/main/java/org/apache/storm/kafka/spout/KafkaSpoutConfig.java", "license": "apache-2.0", "size": 25602 }
[ "java.util.regex.Pattern" ]
import java.util.regex.Pattern;
import java.util.regex.*;
[ "java.util" ]
java.util;
1,763,589
private Priority parsePriority(final String warningTypeString) { if (StringUtils.equalsIgnoreCase(warningTypeString, "notice")) { return Priority.LOW; } else if (StringUtils.equalsIgnoreCase(warningTypeString, "warning")) { return Priority.NORMAL; } el...
Priority function(final String warningTypeString) { if (StringUtils.equalsIgnoreCase(warningTypeString, STR)) { return Priority.LOW; } else if (StringUtils.equalsIgnoreCase(warningTypeString, STR)) { return Priority.NORMAL; } else if (StringUtils.equalsIgnoreCase(warningTypeString, "error")) { return Priority.HIGH; } e...
/** * Returns the priority ordinal matching the specified warning type string. * * @param warningTypeString * a string containing the warning type returned by a regular * expression group matching it in the warnings output. * @return the priority */
Returns the priority ordinal matching the specified warning type string
parsePriority
{ "repo_name": "hudson3-plugins/warnings-plugin", "path": "src/main/java/hudson/plugins/warnings/parser/DoxygenParser.java", "license": "mit", "size": 6511 }
[ "hudson.plugins.analysis.util.model.Priority", "org.apache.commons.lang.StringUtils" ]
import hudson.plugins.analysis.util.model.Priority; import org.apache.commons.lang.StringUtils;
import hudson.plugins.analysis.util.model.*; import org.apache.commons.lang.*;
[ "hudson.plugins.analysis", "org.apache.commons" ]
hudson.plugins.analysis; org.apache.commons;
1,570,293
static DbAtInterfaceEntry get(Connection db, int nid, InetAddress ipaddr) throws SQLException { DbAtInterfaceEntry entry = new DbAtInterfaceEntry(nid, ipaddr,true); if (!entry.load(db)) entry = null; return entry; }
static DbAtInterfaceEntry get(Connection db, int nid, InetAddress ipaddr) throws SQLException { DbAtInterfaceEntry entry = new DbAtInterfaceEntry(nid, ipaddr,true); if (!entry.load(db)) entry = null; return entry; }
/** * Retrieves a current record from the database based upon the * key fields of <em>nodeID</em> and <em>ipaddr</em>. If the * record cannot be found then a null reference is returned. * * @param db The database connection used to load the entry. * @param nid The node id key * @param ipaddr The ipaddress...
Retrieves a current record from the database based upon the key fields of nodeID and ipaddr. If the record cannot be found then a null reference is returned
get
{ "repo_name": "qoswork/opennmszh", "path": "opennms-services/src/main/java/org/opennms/netmgt/linkd/DbAtInterfaceEntry.java", "license": "gpl-2.0", "size": 17815 }
[ "java.net.InetAddress", "java.sql.Connection", "java.sql.SQLException" ]
import java.net.InetAddress; import java.sql.Connection; import java.sql.SQLException;
import java.net.*; import java.sql.*;
[ "java.net", "java.sql" ]
java.net; java.sql;
953,451
public float getFieldFloat(String field, String param, float def) { String val = getFieldParam(field, param); try { return val==null ? def : Float.parseFloat(val); } catch( Exception ex ) { throw new SolrException( SolrException.ErrorCode.BAD_REQUEST, ex.getMessage(), ex ); } }
float function(String field, String param, float def) { String val = getFieldParam(field, param); try { return val==null ? def : Float.parseFloat(val); } catch( Exception ex ) { throw new SolrException( SolrException.ErrorCode.BAD_REQUEST, ex.getMessage(), ex ); } }
/** Returns the float value of the field param, or the value for param, or def if neither is set. */
Returns the float value of the field param
getFieldFloat
{ "repo_name": "Lythimus/lptv", "path": "apache-solr-3.6.0/solr/solrj/src/java/org/apache/solr/common/params/SolrParams.java", "license": "gpl-2.0", "size": 11001 }
[ "org.apache.solr.common.SolrException" ]
import org.apache.solr.common.SolrException;
import org.apache.solr.common.*;
[ "org.apache.solr" ]
org.apache.solr;
2,550,234
public Iterator<Header> getHeader(String name) { List<Header> matchingHeaders = new ArrayList<Header>(); for (Header aHeader : headers) { if (name.equals(aHeader.getName())) { matchingHeaders.add(aHeader); } } return matchingHeaders.iterator()...
Iterator<Header> function(String name) { List<Header> matchingHeaders = new ArrayList<Header>(); for (Header aHeader : headers) { if (name.equals(aHeader.getName())) { matchingHeaders.add(aHeader); } } return matchingHeaders.iterator(); }
/** * Gets all of the headers matching the specified name * * @param name the name of the header we are seeking. */
Gets all of the headers matching the specified name
getHeader
{ "repo_name": "johnjianfang/jxse", "path": "src/main/java/net/jxta/impl/endpoint/msgframing/MessagePackageHeader.java", "license": "apache-2.0", "size": 18832 }
[ "java.util.ArrayList", "java.util.Iterator", "java.util.List" ]
import java.util.ArrayList; import java.util.Iterator; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,158,410
public void decompile(String className, Writer writer, ProgressListener progress) throws java.io.IOException { if (searchPath == null) { String classPath = System.getProperty("java.class.path").replace( File.pathSeparatorChar, altPathSeparatorChar); searchPath = new SearchPath(classPath); } Clas...
void function(String className, Writer writer, ProgressListener progress) throws java.io.IOException { if (searchPath == null) { String classPath = System.getProperty(STR).replace( File.pathSeparatorChar, altPathSeparatorChar); searchPath = new SearchPath(classPath); } ClassInfo.setClassPath(searchPath); ClassInfo claz...
/** * Decompile a class. * * @param className * full-qualified classname, dot separated, e.g. * "java.lang.Object" * @param writer * The stream where the decompiled code should be written. Hint: * Use a BufferedWriter for good performance. * @param progress...
Decompile a class
decompile
{ "repo_name": "AlterRS/Deobfuscator", "path": "deps/jode/decompiler/Decompiler.java", "license": "mit", "size": 7007 }
[ "java.io.File", "java.io.IOException", "java.io.Writer" ]
import java.io.File; import java.io.IOException; import java.io.Writer;
import java.io.*;
[ "java.io" ]
java.io;
1,164,391
private void passWarningsToListener(Vector messages) throws TransformerException { if (_errorListener == null || messages == null) { return; } // Pass messages to listener, one by one final int count = messages.size(); for (int pos = 0; pos < count; po...
void function(Vector messages) throws TransformerException { if (_errorListener == null messages == null) { return; } final int count = messages.size(); for (int pos = 0; pos < count; pos++) { ErrorMsg msg = (ErrorMsg)messages.elementAt(pos); if (msg.isWarningError()) _errorListener.error( new TransformerConfigurationE...
/** * Pass warning messages from the compiler to the error listener */
Pass warning messages from the compiler to the error listener
passWarningsToListener
{ "repo_name": "openjdk/jdk7u", "path": "jaxp/src/com/sun/org/apache/xalan/internal/xsltc/trax/TransformerFactoryImpl.java", "license": "gpl-2.0", "size": 59477 }
[ "com.sun.org.apache.xalan.internal.xsltc.compiler.util.ErrorMsg", "java.util.Vector", "javax.xml.transform.TransformerConfigurationException", "javax.xml.transform.TransformerException" ]
import com.sun.org.apache.xalan.internal.xsltc.compiler.util.ErrorMsg; import java.util.Vector; import javax.xml.transform.TransformerConfigurationException; import javax.xml.transform.TransformerException;
import com.sun.org.apache.xalan.internal.xsltc.compiler.util.*; import java.util.*; import javax.xml.transform.*;
[ "com.sun.org", "java.util", "javax.xml" ]
com.sun.org; java.util; javax.xml;
1,325,221
public void handleAddWSRecordCostPrice(Integer priceComputeType, Integer reportCurrencyId, Record rec, WSRecord wsRecord) throws BusinessException { logger.debug("handleAddWSRecordCostPrice - START"); if (rec.getTime() != null && !rec.getTime().equals("")) { Float costPrice = null; Short timeUnit =...
void function(Integer priceComputeType, Integer reportCurrencyId, Record rec, WSRecord wsRecord) throws BusinessException { logger.debug(STR); if (rec.getTime() != null && !rec.getTime().equals(STRhandleAddWSRecordCostPrice - END"); }
/** * Computes one record cost price and sets it to the wsRecord entity * @author Coni * @param priceComputeType * @param reportCurrencyId * @param rec * @param wsRecord * @throws BusinessException */
Computes one record cost price and sets it to the wsRecord entity
handleAddWSRecordCostPrice
{ "repo_name": "CodeSphere/termitaria", "path": "TermitariaTS/src/ro/cs/ts/business/BLReportsDataSource.java", "license": "agpl-3.0", "size": 31477 }
[ "ro.cs.ts.entity.Record", "ro.cs.ts.exception.BusinessException", "ro.cs.ts.ws.server.entity.WSRecord" ]
import ro.cs.ts.entity.Record; import ro.cs.ts.exception.BusinessException; import ro.cs.ts.ws.server.entity.WSRecord;
import ro.cs.ts.entity.*; import ro.cs.ts.exception.*; import ro.cs.ts.ws.server.entity.*;
[ "ro.cs.ts" ]
ro.cs.ts;
1,341,922
void receiveEvent(int surfaceId, int reactTag, String eventName, @Nullable WritableMap event);
void receiveEvent(int surfaceId, int reactTag, String eventName, @Nullable WritableMap event);
/** * This method dispatches events from RN Android code to JS. The delivery of this event will not * be queued in EventDispatcher class. * * @param surfaceId * @param reactTag tag * @param eventName name of the event * @param event parameters */
This method dispatches events from RN Android code to JS. The delivery of this event will not be queued in EventDispatcher class
receiveEvent
{ "repo_name": "arthuralee/react-native", "path": "ReactAndroid/src/main/java/com/facebook/react/bridge/UIManager.java", "license": "bsd-3-clause", "size": 5664 }
[ "androidx.annotation.Nullable" ]
import androidx.annotation.Nullable;
import androidx.annotation.*;
[ "androidx.annotation" ]
androidx.annotation;
352,247
private CountDownLatch updateIndicesStats(final ActionListener<IndicesStatsResponse> listener) { final CountDownLatch latch = new CountDownLatch(1); final IndicesStatsRequest indicesStatsRequest = new IndicesStatsRequest(); indicesStatsRequest.clear(); indicesStatsRequest.store(true)...
CountDownLatch function(final ActionListener<IndicesStatsResponse> listener) { final CountDownLatch latch = new CountDownLatch(1); final IndicesStatsRequest indicesStatsRequest = new IndicesStatsRequest(); indicesStatsRequest.clear(); indicesStatsRequest.store(true); client.admin().indices().stats(indicesStatsRequest, ...
/** * Retrieve the latest indices stats, calling the listener when complete * @return a latch that can be used to wait for the indices stats to complete if desired */
Retrieve the latest indices stats, calling the listener when complete
updateIndicesStats
{ "repo_name": "EvilMcJerkface/crate", "path": "server/src/main/java/org/elasticsearch/cluster/InternalClusterInfoService.java", "license": "apache-2.0", "size": 21928 }
[ "java.util.concurrent.CountDownLatch", "org.elasticsearch.action.ActionListener", "org.elasticsearch.action.LatchedActionListener", "org.elasticsearch.action.admin.indices.stats.IndicesStatsRequest", "org.elasticsearch.action.admin.indices.stats.IndicesStatsResponse" ]
import java.util.concurrent.CountDownLatch; import org.elasticsearch.action.ActionListener; import org.elasticsearch.action.LatchedActionListener; import org.elasticsearch.action.admin.indices.stats.IndicesStatsRequest; import org.elasticsearch.action.admin.indices.stats.IndicesStatsResponse;
import java.util.concurrent.*; import org.elasticsearch.action.*; import org.elasticsearch.action.admin.indices.stats.*;
[ "java.util", "org.elasticsearch.action" ]
java.util; org.elasticsearch.action;
2,594,028
@Before public void setUpTest() { // Mock device service expect(mockDeviceService.getDevice(deviceId1)) .andReturn(device1); expect(mockDeviceService.getDevice(deviceId2)) .andReturn(device2); expect(mockDeviceService.getDevices()) ...
void function() { expect(mockDeviceService.getDevice(deviceId1)) .andReturn(device1); expect(mockDeviceService.getDevice(deviceId2)) .andReturn(device2); expect(mockDeviceService.getDevices()) .andReturn(ImmutableSet.of(device1, device2)); expect(mockCoreService.getAppId(anyShort())) .andReturn(NetTestTools.APP_ID).any...
/** * Sets up the global values for all the tests. */
Sets up the global values for all the tests
setUpTest
{ "repo_name": "LorenzReinhart/ONOSnew", "path": "web/api/src/test/java/org/onosproject/rest/resources/GroupsResourceTest.java", "license": "apache-2.0", "size": 18352 }
[ "com.google.common.collect.ImmutableSet", "org.easymock.EasyMock", "org.onlab.osgi.ServiceDirectory", "org.onlab.osgi.TestServiceDirectory", "org.onlab.rest.BaseResource", "org.onosproject.codec.CodecService", "org.onosproject.codec.impl.CodecManager", "org.onosproject.codec.impl.GroupCodec", "org.o...
import com.google.common.collect.ImmutableSet; import org.easymock.EasyMock; import org.onlab.osgi.ServiceDirectory; import org.onlab.osgi.TestServiceDirectory; import org.onlab.rest.BaseResource; import org.onosproject.codec.CodecService; import org.onosproject.codec.impl.CodecManager; import org.onosproject.codec.imp...
import com.google.common.collect.*; import org.easymock.*; import org.onlab.osgi.*; import org.onlab.rest.*; import org.onosproject.codec.*; import org.onosproject.codec.impl.*; import org.onosproject.core.*; import org.onosproject.net.*; import org.onosproject.net.device.*; import org.onosproject.net.group.*;
[ "com.google.common", "org.easymock", "org.onlab.osgi", "org.onlab.rest", "org.onosproject.codec", "org.onosproject.core", "org.onosproject.net" ]
com.google.common; org.easymock; org.onlab.osgi; org.onlab.rest; org.onosproject.codec; org.onosproject.core; org.onosproject.net;
2,834,276
@Override public synchronized void write(byte b[], int off, int len) throws IOException { boolean buffull = false; boolean wrap = false; spillLock.lock(); try { do { if (sortSpillException != null) { throw (IOException) new IOException("Spill failed").initCause(sortSpillExcep...
synchronized void function(byte b[], int off, int len) throws IOException { boolean buffull = false; boolean wrap = false; spillLock.lock(); try { do { if (sortSpillException != null) { throw (IOException) new IOException(STR).initCause(sortSpillException); } if (bufstart <= bufend && bufend <= bufindex) { buffull = bu...
/** * Attempt to write a sequence of bytes to the collection buffer. * This method will block if the spill thread is running and it * cannot write. * * @throws MapBufferTooSmallException * if record is too large to deserialize into the * collection buffer. */
Attempt to write a sequence of bytes to the collection buffer. This method will block if the spill thread is running and it cannot write
write
{ "repo_name": "wzhuo918/release-1.1.2-MDP", "path": "src/mapred/org/apache/hadoop/mapred/MapTask.java", "license": "apache-2.0", "size": 59540 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
1,512,222
public static ImmutableSortedSet<String> hosts(int...ports) { if (ports.length == 0) { return ImmutableSortedSet.of( HostAndPort.fromParts("", Constants.DEFAULT_INTERNAL_PORT).toString()); } ImmutableSortedSet.Builder<String> sbld = ImmutableSortedSet.naturalO...
static ImmutableSortedSet<String> function(int...ports) { if (ports.length == 0) { return ImmutableSortedSet.of( HostAndPort.fromParts(STR", p).toString()); } return sbld.build(); }
/** * Convenience method mainly used in local cluster testing * * @param ports a list of ports * @return a set of coordinator specs */
Convenience method mainly used in local cluster testing
hosts
{ "repo_name": "simonzhangsm/voltdb", "path": "src/frontend/org/voltdb/probe/MeshProber.java", "license": "agpl-3.0", "size": 35383 }
[ "com.google_voltpatches.common.collect.ImmutableSortedSet", "com.google_voltpatches.common.net.HostAndPort" ]
import com.google_voltpatches.common.collect.ImmutableSortedSet; import com.google_voltpatches.common.net.HostAndPort;
import com.google_voltpatches.common.collect.*; import com.google_voltpatches.common.net.*;
[ "com.google_voltpatches.common" ]
com.google_voltpatches.common;
1,103,064
private Value getOrDefault(Value result, Value defaultValue) { if (result.isMaybeAbsent()) { result = result.restrictToNotAbsent().join(defaultValue); } return result; }
Value function(Value result, Value defaultValue) { if (result.isMaybeAbsent()) { result = result.restrictToNotAbsent().join(defaultValue); } return result; }
/** * Helper function for 8.6.1 Table 7. */
Helper function for 8.6.1 Table 7
getOrDefault
{ "repo_name": "cs-au-dk/TAJS", "path": "src/dk/brics/tajs/analysis/nativeobjects/PropertyDescriptor.java", "license": "apache-2.0", "size": 13547 }
[ "dk.brics.tajs.lattice.Value" ]
import dk.brics.tajs.lattice.Value;
import dk.brics.tajs.lattice.*;
[ "dk.brics.tajs" ]
dk.brics.tajs;
2,183,458
public static <T> String toJsonString(T instance) throws JsonProcessingException { return objectMapper.writerWithDefaultPrettyPrinter().writeValueAsString(instance); } private static class LevelDeserializer extends FromStringDeserializer<Level> { protected LevelDeserializer(Class<?> vc) {...
static <T> String function(T instance) throws JsonProcessingException { return objectMapper.writerWithDefaultPrettyPrinter().writeValueAsString(instance); } private static class LevelDeserializer extends FromStringDeserializer<Level> { protected LevelDeserializer(Class<?> vc) { super(vc); }
/** * Converts a given instance of a class into its JSON data string representation * @param instance The T object to be converted into the JSON string * @param <T> The generic type to create an instance of * @return JSON data representation of the given class instance, in string */
Converts a given instance of a class into its JSON data string representation
toJsonString
{ "repo_name": "CS2103JAN2017-W10-B1/main", "path": "src/main/java/seedu/address/commons/util/JsonUtil.java", "license": "mit", "size": 5526 }
[ "com.fasterxml.jackson.core.JsonProcessingException", "com.fasterxml.jackson.databind.deser.std.FromStringDeserializer", "java.util.logging.Level" ]
import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.deser.std.FromStringDeserializer; import java.util.logging.Level;
import com.fasterxml.jackson.core.*; import com.fasterxml.jackson.databind.deser.std.*; import java.util.logging.*;
[ "com.fasterxml.jackson", "java.util" ]
com.fasterxml.jackson; java.util;
1,771,366
public Boolean getValueAsBoolean() { if (getValueCoded() != null) { if (getValueCoded().equals(Context.getConceptService().getTrueConcept())) { return Boolean.TRUE; } else if (getValueCoded().equals(Context.getConceptService().getFalseConcept())) { return Boolean.FALSE; } } else if (getValueN...
Boolean function() { if (getValueCoded() != null) { if (getValueCoded().equals(Context.getConceptService().getTrueConcept())) { return Boolean.TRUE; } else if (getValueCoded().equals(Context.getConceptService().getFalseConcept())) { return Boolean.FALSE; } } else if (getValueNumeric() != null) { if (getValueNumeric() =...
/** * Coerces a value to a Boolean representation * * @return Boolean representation of the obs value * @should return true for value_numeric concepts if value is 1 * @should return false for value_numeric concepts if value is 0 * @should return null for value_numeric concepts if value is neither 1 nor 0 ...
Coerces a value to a Boolean representation
getValueAsBoolean
{ "repo_name": "sintjuri/openmrs-core", "path": "api/src/main/java/org/openmrs/Obs.java", "license": "mpl-2.0", "size": 38166 }
[ "org.openmrs.api.context.Context" ]
import org.openmrs.api.context.Context;
import org.openmrs.api.context.*;
[ "org.openmrs.api" ]
org.openmrs.api;
93,984
public Iterator findMemberGroups(IEntityGroup eg) throws GroupsException { Collection groups = new ArrayList(10); IEntityGroup group = null; for ( Iterator it = getGroupStore().findMemberGroups(eg); it.hasNext(); ) { group = (IEntityGroup) it.next(); groups.add(group); if (cacheI...
Iterator function(IEntityGroup eg) throws GroupsException { Collection groups = new ArrayList(10); IEntityGroup group = null; for ( Iterator it = getGroupStore().findMemberGroups(eg); it.hasNext(); ) { group = (IEntityGroup) it.next(); groups.add(group); if (cacheInUse()) { try { if ( getGroupFromCache(group.getEntityI...
/** * Returns and caches the member groups for the <code>IEntityGroup</code> * @param eg IEntityGroup */
Returns and caches the member groups for the <code>IEntityGroup</code>
findMemberGroups
{ "repo_name": "ASU-Capstone/uPortal", "path": "uportal-war/src/main/java/org/jasig/portal/groups/ReferenceGroupService.java", "license": "apache-2.0", "size": 17712 }
[ "java.util.ArrayList", "java.util.Collection", "java.util.Iterator", "org.jasig.portal.concurrency.CachingException" ]
import java.util.ArrayList; import java.util.Collection; import java.util.Iterator; import org.jasig.portal.concurrency.CachingException;
import java.util.*; import org.jasig.portal.concurrency.*;
[ "java.util", "org.jasig.portal" ]
java.util; org.jasig.portal;
1,548,536
public Image getWarningImage() { return getSWTImage(SWT.ICON_WARNING); }
Image function() { return getSWTImage(SWT.ICON_WARNING); }
/** * Return the <code>Image</code> to be used when displaying a warning. * * @return image the warning image */
Return the <code>Image</code> to be used when displaying a warning
getWarningImage
{ "repo_name": "ghillairet/gef-gwt", "path": "src/main/java/org/eclipse/jface/dialogs/IconAndMessageDialog.java", "license": "epl-1.0", "size": 8449 }
[ "org.eclipse.swt.graphics.Image" ]
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.graphics.*;
[ "org.eclipse.swt" ]
org.eclipse.swt;
1,369,373
public java.sql.Time getTime(int columnIndex) throws SQLException { try { cfData data = getCell( columnIndex ); if ( data == null || data.getDataType() == cfData.CFNULLDATA ) { return null; } return new java.sql.Time( data.getDateData().getLong() ); } catch ( dataNotSupportedException e ) { th...
java.sql.Time function(int columnIndex) throws SQLException { try { cfData data = getCell( columnIndex ); if ( data == null data.getDataType() == cfData.CFNULLDATA ) { return null; } return new java.sql.Time( data.getDateData().getLong() ); } catch ( dataNotSupportedException e ) { throw new SQLException( STR ); } }
/** * Retrieves the value of the designated column in the current row * of this <code>ResultSet</code> object as * a <code>java.sql.Time</code> object in the Java programming language. * * @param columnIndex the first column is 1, the second is 2, ... * @return the column value; if the value is SQL <code>NU...
Retrieves the value of the designated column in the current row of this <code>ResultSet</code> object as a <code>java.sql.Time</code> object in the Java programming language
getTime
{ "repo_name": "OpenBD/openbd-core", "path": "src/com/naryx/tagfusion/cfm/engine/cfQueryResultData.java", "license": "gpl-3.0", "size": 154192 }
[ "java.sql.SQLException", "java.sql.Time" ]
import java.sql.SQLException; import java.sql.Time;
import java.sql.*;
[ "java.sql" ]
java.sql;
720,193
public ResourceTreeNode[] getNavMapDataForGroup(AuthzSubject subject, Integer groupId) throws PermissionException;
ResourceTreeNode[] function(AuthzSubject subject, Integer groupId) throws PermissionException;
/** * <p> * Return resources for groups (not autogroups) * </p> */
Return resources for groups (not autogroups)
getNavMapDataForGroup
{ "repo_name": "cc14514/hq6", "path": "hq-server/src/main/java/org/hyperic/hq/appdef/shared/AppdefStatManager.java", "license": "unlicense", "size": 2964 }
[ "org.hyperic.hq.authz.server.session.AuthzSubject", "org.hyperic.hq.authz.shared.PermissionException", "org.hyperic.hq.bizapp.shared.uibeans.ResourceTreeNode" ]
import org.hyperic.hq.authz.server.session.AuthzSubject; import org.hyperic.hq.authz.shared.PermissionException; import org.hyperic.hq.bizapp.shared.uibeans.ResourceTreeNode;
import org.hyperic.hq.authz.server.session.*; import org.hyperic.hq.authz.shared.*; import org.hyperic.hq.bizapp.shared.uibeans.*;
[ "org.hyperic.hq" ]
org.hyperic.hq;
2,909,979
public static List<NabuccoPropertyDescriptor> getPropertyDescriptorList() { return PropertyCache.getInstance().retrieve(PropertyAction.class).getAllProperties(); }
static List<NabuccoPropertyDescriptor> function() { return PropertyCache.getInstance().retrieve(PropertyAction.class).getAllProperties(); }
/** * Getter for the PropertyDescriptorList. * * @return the List<NabuccoPropertyDescriptor>. */
Getter for the PropertyDescriptorList
getPropertyDescriptorList
{ "repo_name": "NABUCCO/org.nabucco.testautomation.script", "path": "org.nabucco.testautomation.script.facade.datatype/src/main/gen/org/nabucco/testautomation/script/facade/datatype/dictionary/PropertyAction.java", "license": "epl-1.0", "size": 12686 }
[ "java.util.List", "org.nabucco.framework.base.facade.datatype.property.NabuccoPropertyDescriptor", "org.nabucco.framework.base.facade.datatype.property.PropertyCache" ]
import java.util.List; import org.nabucco.framework.base.facade.datatype.property.NabuccoPropertyDescriptor; import org.nabucco.framework.base.facade.datatype.property.PropertyCache;
import java.util.*; import org.nabucco.framework.base.facade.datatype.property.*;
[ "java.util", "org.nabucco.framework" ]
java.util; org.nabucco.framework;
66,650
@Test public void testLatencyMarkEmission() throws Exception { final List<StreamElement> output = new ArrayList<>(); final long maxProcessingTime = 100L; final long latencyMarkInterval = 10L; final TestProcessingTimeService testProcessingTimeService = new TestProcessingTimeService(); testProcessingTimeS...
void function() throws Exception { final List<StreamElement> output = new ArrayList<>(); final long maxProcessingTime = 100L; final long latencyMarkInterval = 10L; final TestProcessingTimeService testProcessingTimeService = new TestProcessingTimeService(); testProcessingTimeService.setCurrentTime(0L); final List<Long> ...
/** * Test that latency marks are emitted. */
Test that latency marks are emitted
testLatencyMarkEmission
{ "repo_name": "WangTaoTheTonic/flink", "path": "flink-streaming-java/src/test/java/org/apache/flink/streaming/runtime/operators/StreamSourceOperatorTest.java", "license": "apache-2.0", "size": 12939 }
[ "java.util.ArrayList", "java.util.Arrays", "java.util.List", "org.apache.flink.streaming.api.TimeCharacteristic", "org.apache.flink.streaming.api.operators.StreamSource", "org.apache.flink.streaming.runtime.streamrecord.StreamElement", "org.apache.flink.streaming.runtime.streamstatus.StreamStatusMaintai...
import java.util.ArrayList; import java.util.Arrays; import java.util.List; import org.apache.flink.streaming.api.TimeCharacteristic; import org.apache.flink.streaming.api.operators.StreamSource; import org.apache.flink.streaming.runtime.streamrecord.StreamElement; import org.apache.flink.streaming.runtime.streamstatus...
import java.util.*; import org.apache.flink.streaming.api.*; import org.apache.flink.streaming.api.operators.*; import org.apache.flink.streaming.runtime.streamrecord.*; import org.apache.flink.streaming.runtime.streamstatus.*; import org.apache.flink.streaming.runtime.tasks.*; import org.apache.flink.streaming.util.*;...
[ "java.util", "org.apache.flink", "org.junit", "org.mockito" ]
java.util; org.apache.flink; org.junit; org.mockito;
1,723,752
private ASTNode parseOperators(ASTNode lhs, final int min_precedence) { ASTNode rhs = null; Operator oper; while (true) { if (fToken != TT_OPERATOR) { break; } oper = determineBinaryOperator(); if (oper instanceof InfixOperator) { if (oper.getPrecedence() >= min_precedence) { ...
ASTNode function(ASTNode lhs, final int min_precedence) { ASTNode rhs = null; Operator oper; while (true) { if (fToken != TT_OPERATOR) { break; } oper = determineBinaryOperator(); if (oper instanceof InfixOperator) { if (oper.getPrecedence() >= min_precedence) { getNextToken(); rhs = parseLookaheadOperator(oper.getPrec...
/** * See <a * href="http://en.wikipedia.org/wiki/Operator-precedence_parser">Operator-precedence * parser</a> for the idea, how to parse the operators depending on their * precedence. * * @param lhs * the already parsed left-hand-side of the operator * @param min_precedence * @retu...
See Operator-precedence parser for the idea, how to parse the operators depending on their precedence
parseOperators
{ "repo_name": "abdollahpour/xweb-wiki", "path": "src/main/java/info/bliki/wiki/template/expr/Parser.java", "license": "lgpl-3.0", "size": 8579 }
[ "info.bliki.wiki.template.expr.ast.ASTNode", "info.bliki.wiki.template.expr.operator.InfixOperator", "info.bliki.wiki.template.expr.operator.Operator", "info.bliki.wiki.template.expr.operator.PostfixOperator" ]
import info.bliki.wiki.template.expr.ast.ASTNode; import info.bliki.wiki.template.expr.operator.InfixOperator; import info.bliki.wiki.template.expr.operator.Operator; import info.bliki.wiki.template.expr.operator.PostfixOperator;
import info.bliki.wiki.template.expr.ast.*; import info.bliki.wiki.template.expr.operator.*;
[ "info.bliki.wiki" ]
info.bliki.wiki;
1,588,333
@Override public Collection<URL> getUrlsToFilter() { Set<URL> filterSet = new HashSet<URL>(); String url="http://www.infoq.com/news/2012/11/Panel-WinRT-Answers;jsessionid=91AB81A159E85692E6F1199644E2053C "; filterSet.add(URL.valueOf(url)); return filterSet; }
Collection<URL> function() { Set<URL> filterSet = new HashSet<URL>(); String url="http: filterSet.add(URL.valueOf(url)); return filterSet; }
/** * Override to remove unnecessary URL. * */
Override to remove unnecessary URL
getUrlsToFilter
{ "repo_name": "zhuoran/crawler4j", "path": "crawler4j-simple/src/main/java/me/zhuoran/crawler4j/simple/InfoqCrawler.java", "license": "apache-2.0", "size": 2237 }
[ "java.util.Collection", "java.util.HashSet", "java.util.Set", "me.zhuoran.crawler4j.crawler.URL" ]
import java.util.Collection; import java.util.HashSet; import java.util.Set; import me.zhuoran.crawler4j.crawler.URL;
import java.util.*; import me.zhuoran.crawler4j.crawler.*;
[ "java.util", "me.zhuoran.crawler4j" ]
java.util; me.zhuoran.crawler4j;
836,306
@Test @UseDataProvider("streams") public void testEncode(String normal, byte[] encoded) { final byte[] source = normal.getBytes(UTF_8); final byte[] deflate = new DeflateWrapper(source).encode(); assertArrayEquals(encoded, deflate); }
@UseDataProvider(STR) void function(String normal, byte[] encoded) { final byte[] source = normal.getBytes(UTF_8); final byte[] deflate = new DeflateWrapper(source).encode(); assertArrayEquals(encoded, deflate); }
/** * Encodes several streams and verify the results */
Encodes several streams and verify the results
testEncode
{ "repo_name": "akapps/rest-toolkit", "path": "src/test/java/org/akapps/rest/client/zip/DeflateWrapperTest.java", "license": "mit", "size": 3538 }
[ "com.tngtech.java.junit.dataprovider.UseDataProvider", "org.junit.Assert" ]
import com.tngtech.java.junit.dataprovider.UseDataProvider; import org.junit.Assert;
import com.tngtech.java.junit.dataprovider.*; import org.junit.*;
[ "com.tngtech.java", "org.junit" ]
com.tngtech.java; org.junit;
2,640,107
void addDamageModifierBefore(DamageModifier damageModifier, DoubleUnaryOperator function, Set<DamageModifierType> before); /** * Adds the provided {@link DamageModifier} and {@link Function} to the list * of modifiers, such that the modifier will appear in order after any * current modifiers who...
void addDamageModifierBefore(DamageModifier damageModifier, DoubleUnaryOperator function, Set<DamageModifierType> before); /** * Adds the provided {@link DamageModifier} and {@link Function} to the list * of modifiers, such that the modifier will appear in order after any * current modifiers whose type are included in ...
/** * Adds the provided {@link DamageModifier} and {@link Function} to the * list of modifiers, such that the {@link Set} containing * {@link DamageModifierType}s provided in {@code before} will appear * after the provided damage modifier. * * @param damageModifier The damage modifier to a...
Adds the provided <code>DamageModifier</code> and <code>Function</code> to the list of modifiers, such that the <code>Set</code> containing <code>DamageModifierType</code>s provided in before will appear after the provided damage modifier
addDamageModifierBefore
{ "repo_name": "SpongePowered/SpongeAPI", "path": "src/main/java/org/spongepowered/api/event/entity/AttackEntityEvent.java", "license": "mit", "size": 18356 }
[ "java.util.Set", "java.util.function.DoubleUnaryOperator", "java.util.function.Function", "org.spongepowered.api.event.cause.entity.damage.DamageModifier", "org.spongepowered.api.event.cause.entity.damage.DamageModifierType" ]
import java.util.Set; import java.util.function.DoubleUnaryOperator; import java.util.function.Function; import org.spongepowered.api.event.cause.entity.damage.DamageModifier; import org.spongepowered.api.event.cause.entity.damage.DamageModifierType;
import java.util.*; import java.util.function.*; import org.spongepowered.api.event.cause.entity.damage.*;
[ "java.util", "org.spongepowered.api" ]
java.util; org.spongepowered.api;
744,260
public void setRefSubentityInfoValue(String refSubentityInfoValue) throws JNCException { setRefSubentityInfoValue(new YangString(refSubentityInfoValue)); }
void function(String refSubentityInfoValue) throws JNCException { setRefSubentityInfoValue(new YangString(refSubentityInfoValue)); }
/** * Sets the value for child leaf "ref-subentity-info", * using a String value. * @param refSubentityInfoValue used during instantiation. */
Sets the value for child leaf "ref-subentity-info", using a String value
setRefSubentityInfoValue
{ "repo_name": "jnpr-shinma/yangfile", "path": "hitel/src/hctaEpc/mmeSgsn/statistics/lteSm/Deact.java", "license": "apache-2.0", "size": 11316 }
[ "com.tailf.jnc.YangString" ]
import com.tailf.jnc.YangString;
import com.tailf.jnc.*;
[ "com.tailf.jnc" ]
com.tailf.jnc;
1,397,866
BigInteger getIntegerValue();
BigInteger getIntegerValue();
/** * Returns the value of the '<em><b>Integer Value</b></em>' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * <!-- begin-model-doc --> * Positive integer value of an operation parameter, usually used for a count. An integer value does not have an associated unit of measure. * <!-- end-model...
Returns the value of the 'Integer Value' attribute. Positive integer value of an operation parameter, usually used for a count. An integer value does not have an associated unit of measure.
getIntegerValue
{ "repo_name": "markus1978/citygml4emf", "path": "de.hub.citygml.emf.ecore/src/net/opengis/gml/ParameterValueType.java", "license": "apache-2.0", "size": 12633 }
[ "java.math.BigInteger" ]
import java.math.BigInteger;
import java.math.*;
[ "java.math" ]
java.math;
755,903
private boolean isPublicOrProtected(DetailAST aAST) { final DetailAST modifiersAST = aAST.findFirstToken(TokenTypes.MODIFIERS); final DetailAST publicAST = modifiersAST.findFirstToken(TokenTypes.LITERAL_PUBLIC); final DetailAST protectedAST = modifiers...
boolean function(DetailAST aAST) { final DetailAST modifiersAST = aAST.findFirstToken(TokenTypes.MODIFIERS); final DetailAST publicAST = modifiersAST.findFirstToken(TokenTypes.LITERAL_PUBLIC); final DetailAST protectedAST = modifiersAST.findFirstToken(TokenTypes.LITERAL_PROTECTED); return (publicAST != null) (protected...
/** * Checks if given method declared as public or * protected and non-static. * @param aAST method definition node * @return true if given method is declared as public or protected */
Checks if given method declared as public or protected and non-static
isPublicOrProtected
{ "repo_name": "jdoyle65/checkstyle", "path": "src/checkstyle/com/puppycrawl/tools/checkstyle/checks/coding/JUnitTestCaseCheck.java", "license": "lgpl-2.1", "size": 7837 }
[ "com.puppycrawl.tools.checkstyle.api.DetailAST", "com.puppycrawl.tools.checkstyle.api.TokenTypes" ]
import com.puppycrawl.tools.checkstyle.api.DetailAST; import com.puppycrawl.tools.checkstyle.api.TokenTypes;
import com.puppycrawl.tools.checkstyle.api.*;
[ "com.puppycrawl.tools" ]
com.puppycrawl.tools;
812,997
public void autorevive(final Marker marker, final String message, final Object p0, final Object p1, final Object p2, final Object p3, final Object p4, final Object p5) { logger.logIfEnabled(FQCN, AUTOREVIVE, marker, message, p0, p1, p2, p3, p4, p5); }
void function(final Marker marker, final String message, final Object p0, final Object p1, final Object p2, final Object p3, final Object p4, final Object p5) { logger.logIfEnabled(FQCN, AUTOREVIVE, marker, message, p0, p1, p2, p3, p4, p5); }
/** * Logs a message with parameters at the {@code AUTOREVIVE} level. * * @param marker the marker data specific to this log statement * @param message the message to log; the format depends on the message factory. * @param p0 parameter to the message. * @param p1 parameter to the message....
Logs a message with parameters at the AUTOREVIVE level
autorevive
{ "repo_name": "Betalord/BHBot", "path": "src/main/java/BHBotLogger.java", "license": "gpl-3.0", "size": 177002 }
[ "org.apache.logging.log4j.Marker" ]
import org.apache.logging.log4j.Marker;
import org.apache.logging.log4j.*;
[ "org.apache.logging" ]
org.apache.logging;
1,153,350
Community retrieveCommunity(Long id, boolean initialize);
Community retrieveCommunity(Long id, boolean initialize);
/** * Retrieves an existing Community. * * @param id * The id of the Community to load from the Data Access Layer * @param initialize * Set to true if the collections of associated objects should be * loaded as well * @return the {@link Community} with the given...
Retrieves an existing Community
retrieveCommunity
{ "repo_name": "gcolbert/ACEM", "path": "ACEM-domain-services/src/main/java/eu/ueb/acem/services/OrganisationsService.java", "license": "gpl-3.0", "size": 15186 }
[ "eu.ueb.acem.domain.beans.rouge.Community" ]
import eu.ueb.acem.domain.beans.rouge.Community;
import eu.ueb.acem.domain.beans.rouge.*;
[ "eu.ueb.acem" ]
eu.ueb.acem;
2,268,427
public static boolean isUIResource(final Object obj) { return (obj == null) || (obj instanceof UIResource); }
static boolean function(final Object obj) { return (obj == null) (obj instanceof UIResource); }
/** * Checks if object is installed by UI or <code>null</code>. * @param obj Object to be checked if it is an instance of UIResource or not. * * @return true if the obj instance of UIResource or null, false otherwise */
Checks if object is installed by UI or <code>null</code>
isUIResource
{ "repo_name": "freeVM/freeVM", "path": "enhanced/archive/classlib/java6/modules/swing/src/main/java/common/org/apache/harmony/x/swing/Utilities.java", "license": "apache-2.0", "size": 42718 }
[ "javax.swing.plaf.UIResource" ]
import javax.swing.plaf.UIResource;
import javax.swing.plaf.*;
[ "javax.swing" ]
javax.swing;
2,115,501
public static void updateParentExtent(TemporalMemberImpl parent, Date start, Date end, NotificationChain notifications) { // SPF-10922 - start and end boundary should not be used in computational start / end time // if (parent instanceof PlanTemporalMember) { // PlanTemporalMember planMember = (PlanTemporalMemb...
static void function(TemporalMemberImpl parent, Date start, Date end, NotificationChain notifications) { EPlanElement element = parent.getPlanElement(); List<? extends EPlanChild> children = element.getChildren(); if (children.size() > 1) { boolean parentScheduled = (parent.getScheduled() != Boolean.FALSE); for (EPlanC...
/** * Update the extent of this parent, given the start and end of one of its children. * @param parent * @param start * @param end * @param notifications */
Update the extent of this parent, given the start and end of one of its children
updateParentExtent
{ "repo_name": "nasa/OpenSPIFe", "path": "gov.nasa.ensemble.core.model.plan.temporal/src/gov/nasa/ensemble/core/model/plan/temporal/impl/TemporalPropagation.java", "license": "apache-2.0", "size": 13150 }
[ "gov.nasa.ensemble.core.jscience.TemporalExtent", "gov.nasa.ensemble.core.model.plan.EPlanChild", "gov.nasa.ensemble.core.model.plan.EPlanElement", "gov.nasa.ensemble.core.model.plan.temporal.TemporalMember", "java.util.Date", "java.util.List", "org.eclipse.emf.common.notify.NotificationChain" ]
import gov.nasa.ensemble.core.jscience.TemporalExtent; import gov.nasa.ensemble.core.model.plan.EPlanChild; import gov.nasa.ensemble.core.model.plan.EPlanElement; import gov.nasa.ensemble.core.model.plan.temporal.TemporalMember; import java.util.Date; import java.util.List; import org.eclipse.emf.common.notify.Notifica...
import gov.nasa.ensemble.core.jscience.*; import gov.nasa.ensemble.core.model.plan.*; import gov.nasa.ensemble.core.model.plan.temporal.*; import java.util.*; import org.eclipse.emf.common.notify.*;
[ "gov.nasa.ensemble", "java.util", "org.eclipse.emf" ]
gov.nasa.ensemble; java.util; org.eclipse.emf;
1,992,726
public static void main(String[] args) throws Exception { X.println(GridJavaProcess.PID_MSG_PREFIX + U.jvmPid()); X.println("Starting Ignite Node... Args=" + Arrays.toString(args)); IgniteConfiguration cfg = readCfgFromFileAndDeleteFile(args[0]); ignite = Ignition.start(cfg); ...
static void function(String[] args) throws Exception { X.println(GridJavaProcess.PID_MSG_PREFIX + U.jvmPid()); X.println(STR + Arrays.toString(args)); IgniteConfiguration cfg = readCfgFromFileAndDeleteFile(args[0]); ignite = Ignition.start(cfg); }
/** * Starts {@link Ignite} instance accorging to given arguments. * * @param args Arguments. * @throws Exception If failed. */
Starts <code>Ignite</code> instance accorging to given arguments
main
{ "repo_name": "agoncharuk/ignite", "path": "modules/core/src/test/java/org/apache/ignite/testframework/junits/multijvm/IgniteNodeRunner.java", "license": "apache-2.0", "size": 6345 }
[ "java.util.Arrays", "org.apache.ignite.Ignition", "org.apache.ignite.configuration.IgniteConfiguration", "org.apache.ignite.internal.util.GridJavaProcess", "org.apache.ignite.internal.util.typedef.X", "org.apache.ignite.internal.util.typedef.internal.U" ]
import java.util.Arrays; import org.apache.ignite.Ignition; import org.apache.ignite.configuration.IgniteConfiguration; import org.apache.ignite.internal.util.GridJavaProcess; import org.apache.ignite.internal.util.typedef.X; import org.apache.ignite.internal.util.typedef.internal.U;
import java.util.*; import org.apache.ignite.*; import org.apache.ignite.configuration.*; import org.apache.ignite.internal.util.*; import org.apache.ignite.internal.util.typedef.*; import org.apache.ignite.internal.util.typedef.internal.*;
[ "java.util", "org.apache.ignite" ]
java.util; org.apache.ignite;
2,604,042
private void cmd_print(boolean printPreview) { // Get process defined for this tab int AD_Process_ID = m_curTab.getAD_Process_ID(); log.info("ID=" + AD_Process_ID); // No report defined if (AD_Process_ID == 0) { cmd_report(); return; } cmd_save(false); // int table_ID = m_curTab.getAD_Ta...
void function(boolean printPreview) { int AD_Process_ID = m_curTab.getAD_Process_ID(); log.info("ID=" + AD_Process_ID); if (AD_Process_ID == 0) { cmd_report(); return; } cmd_save(false); int record_ID = m_curTab.getRecord_ID(); ProcessInfo pi = new ProcessInfo (getTitle(), AD_Process_ID, table_ID, record_ID); pi.setAD_...
/** * Print specific Report - or start default Report */
Print specific Report - or start default Report
cmd_print
{ "repo_name": "mgrigioni/oseb", "path": "client/src/org/compiere/apps/APanel.java", "license": "gpl-2.0", "size": 86313 }
[ "org.compiere.process.ProcessInfo", "org.compiere.util.Env" ]
import org.compiere.process.ProcessInfo; import org.compiere.util.Env;
import org.compiere.process.*; import org.compiere.util.*;
[ "org.compiere.process", "org.compiere.util" ]
org.compiere.process; org.compiere.util;
1,743,965
private void updateSyncTopAddress(BigInteger address) { if (!fIsCreated) return; PropertyChangeEvent event = new PropertyChangeEvent(this, AbstractAsyncTableRendering.PROPERTY_TOP_ADDRESS, null, address); firePropertyChangedEvent(event); }
void function(BigInteger address) { if (!fIsCreated) return; PropertyChangeEvent event = new PropertyChangeEvent(this, AbstractAsyncTableRendering.PROPERTY_TOP_ADDRESS, null, address); firePropertyChangedEvent(event); }
/** * update top visible address in synchronizer */
update top visible address in synchronizer
updateSyncTopAddress
{ "repo_name": "daejunpark/jsaf", "path": "third_party/deckard/samples/src/AbstractAsyncTableRendering.java", "license": "bsd-3-clause", "size": 92248 }
[ "java.math.BigInteger", "org.eclipse.jface.util.PropertyChangeEvent" ]
import java.math.BigInteger; import org.eclipse.jface.util.PropertyChangeEvent;
import java.math.*; import org.eclipse.jface.util.*;
[ "java.math", "org.eclipse.jface" ]
java.math; org.eclipse.jface;
2,789,576
public ResponseLoader newLoader(Context context) { ResponseLoader loader = new ResponseLoader(context, this); return loader; }
ResponseLoader function(Context context) { ResponseLoader loader = new ResponseLoader(context, this); return loader; }
/** * Creates and returns a new ResponseLoader that loads its Response from this Request. * @param context the Context of the ResponseLoader. * @return the newly created ResponseLoader. */
Creates and returns a new ResponseLoader that loads its Response from this Request
newLoader
{ "repo_name": "ericelsken/AndroidCallbackWebClient", "path": "src/com/ericelsken/android/web/Request.java", "license": "mit", "size": 11054 }
[ "android.content.Context", "com.ericelsken.android.web.content.ResponseLoader" ]
import android.content.Context; import com.ericelsken.android.web.content.ResponseLoader;
import android.content.*; import com.ericelsken.android.web.content.*;
[ "android.content", "com.ericelsken.android" ]
android.content; com.ericelsken.android;
1,275,340
if (arguments.isTabCompletion) { return; } arguments.confirm("Registered portals:"); for (Entry<String, Portal> entry : PortalManager.getInstance().portals.entrySet()) { arguments.confirm("- " + entry.getKey() + ": " + entry.getValue().getPortalArea().toString()); } }
if (arguments.isTabCompletion) { return; } arguments.confirm(STR); for (Entry<String, Portal> entry : PortalManager.getInstance().portals.entrySet()) { arguments.confirm(STR + entry.getKey() + STR + entry.getValue().getPortalArea().toString()); } }
/** * Print lists of portals, their locations and dimensions */
Print lists of portals, their locations and dimensions
listPortals
{ "repo_name": "CityOfLearning/ForgeEssentials", "path": "src/main/java/com/forgeessentials/teleport/portal/CommandPortal.java", "license": "epl-1.0", "size": 6300 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
292,879
@NonNull public InputRangeBuilder setThumb(@NonNull IconCompat thumb) { mThumb = thumb; return this; }
InputRangeBuilder function(@NonNull IconCompat thumb) { mThumb = thumb; return this; }
/** * Set the {@link Icon} to be displayed as the thumb on the input range. */
Set the <code>Icon</code> to be displayed as the thumb on the input range
setThumb
{ "repo_name": "AndroidX/androidx", "path": "slice/slice-builders/src/main/java/androidx/slice/builders/ListBuilder.java", "license": "apache-2.0", "size": 74588 }
[ "androidx.annotation.NonNull", "androidx.core.graphics.drawable.IconCompat" ]
import androidx.annotation.NonNull; import androidx.core.graphics.drawable.IconCompat;
import androidx.annotation.*; import androidx.core.graphics.drawable.*;
[ "androidx.annotation", "androidx.core" ]
androidx.annotation; androidx.core;
1,530,970
public boolean addWeatherEffect(Entity p_72942_1_) { this.weatherEffects.add(p_72942_1_); return true; }
boolean function(Entity p_72942_1_) { this.weatherEffects.add(p_72942_1_); return true; }
/** * adds a lightning bolt to the list of lightning bolts in this world. */
adds a lightning bolt to the list of lightning bolts in this world
addWeatherEffect
{ "repo_name": "mviitanen/marsmod", "path": "mcp/src/minecraft/net/minecraft/world/World.java", "license": "gpl-2.0", "size": 144852 }
[ "net.minecraft.entity.Entity" ]
import net.minecraft.entity.Entity;
import net.minecraft.entity.*;
[ "net.minecraft.entity" ]
net.minecraft.entity;
1,159,766
public static Iterator<String> getPossibleRepetitions(){ ArrayList<String> possibleKarelCode = new ArrayList<String>(); possibleKarelCode.add(KarelCode.WHILESTATEMENT); possibleKarelCode.add(KarelCode.LOOPSTATEMENT); return possibleKarelCode.iterator(); }
static Iterator<String> function(){ ArrayList<String> possibleKarelCode = new ArrayList<String>(); possibleKarelCode.add(KarelCode.WHILESTATEMENT); possibleKarelCode.add(KarelCode.LOOPSTATEMENT); return possibleKarelCode.iterator(); }
/** * Gets all the possible repetitions * * @return a list of valid repetitions */
Gets all the possible repetitions
getPossibleRepetitions
{ "repo_name": "kapadiamush/Eve-s-Adventure", "path": "src/models/campaign/KarelCode.java", "license": "mit", "size": 6544 }
[ "java.util.ArrayList", "java.util.Iterator" ]
import java.util.ArrayList; import java.util.Iterator;
import java.util.*;
[ "java.util" ]
java.util;
2,000,678
private void processObjectCreateSetCall(Node callNode) { Node curParam = callNode.getSecondChild(); if (canOptimizeObjectCreateSet(curParam)) { Node objNode = IR.objectlit().srcref(callNode); while (curParam != null) { Node keyNode = curParam; Node valueNode = IR.trueNode().srcref(...
void function(Node callNode) { Node curParam = callNode.getSecondChild(); if (canOptimizeObjectCreateSet(curParam)) { Node objNode = IR.objectlit().srcref(callNode); while (curParam != null) { Node keyNode = curParam; Node valueNode = IR.trueNode().srcref(keyNode); curParam = curParam.getNext(); callNode.removeChild(ke...
/** * Converts all of the given call nodes to object literals that are safe to * do so. */
Converts all of the given call nodes to object literals that are safe to do so
processObjectCreateSetCall
{ "repo_name": "selkhateeb/closure-compiler", "path": "src/com/google/javascript/jscomp/ClosureOptimizePrimitives.java", "license": "apache-2.0", "size": 5070 }
[ "com.google.javascript.rhino.IR", "com.google.javascript.rhino.Node", "com.google.javascript.rhino.Token" ]
import com.google.javascript.rhino.IR; import com.google.javascript.rhino.Node; import com.google.javascript.rhino.Token;
import com.google.javascript.rhino.*;
[ "com.google.javascript" ]
com.google.javascript;
1,208,509
ForeignExceptionSnare getErrorCheckable() { return this.monitor; }
ForeignExceptionSnare getErrorCheckable() { return this.monitor; }
/** * exposed for testing. */
exposed for testing
getErrorCheckable
{ "repo_name": "gustavoanatoly/hbase", "path": "hbase-server/src/main/java/org/apache/hadoop/hbase/procedure/Subprocedure.java", "license": "apache-2.0", "size": 13247 }
[ "org.apache.hadoop.hbase.errorhandling.ForeignExceptionSnare" ]
import org.apache.hadoop.hbase.errorhandling.ForeignExceptionSnare;
import org.apache.hadoop.hbase.errorhandling.*;
[ "org.apache.hadoop" ]
org.apache.hadoop;
2,029,911
public Node getParentNode() { return nameNode == null ? null : nameNode.getParent(); }
Node function() { return nameNode == null ? null : nameNode.getParent(); }
/** * Gets the parent of the name node. */
Gets the parent of the name node
getParentNode
{ "repo_name": "bramstein/closure-compiler-inline", "path": "src/com/google/javascript/jscomp/Scope.java", "license": "apache-2.0", "size": 16253 }
[ "com.google.javascript.rhino.Node" ]
import com.google.javascript.rhino.Node;
import com.google.javascript.rhino.*;
[ "com.google.javascript" ]
com.google.javascript;
1,614,952
public void onClickIcon(Icon icon) { if ( DEBUG ) Log.d(">>>", "Icons id = " + icon.getIconId()); Fragment iconsDetailFragment = IconsDetailFragment.newInstance(icon); // Add the fragment to the activity, pushing this transaction on to the back stack. FragmentManager fragmentManager...
void function(Icon icon) { if ( DEBUG ) Log.d(">>>", STR + icon.getIconId()); Fragment iconsDetailFragment = IconsDetailFragment.newInstance(icon); FragmentManager fragmentManager = getSupportFragmentManager(); FragmentTransaction ft = fragmentManager.beginTransaction(); ft.replace(R.id.container, iconsDetailFragment, ...
/** * * Click on grid icons item * @param icon */
Click on grid icons item
onClickIcon
{ "repo_name": "app-z/Iconfinder", "path": "app/src/main/java/net/appz/iconfounder/MainActivity.java", "license": "apache-2.0", "size": 17300 }
[ "android.support.v4.app.Fragment", "android.support.v4.app.FragmentManager", "android.support.v4.app.FragmentTransaction", "android.util.Log", "net.appz.iconfounder.Data" ]
import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentTransaction; import android.util.Log; import net.appz.iconfounder.Data;
import android.support.v4.app.*; import android.util.*; import net.appz.iconfounder.*;
[ "android.support", "android.util", "net.appz.iconfounder" ]
android.support; android.util; net.appz.iconfounder;
1,503,027
return DefaultSetHolder.DEFAULT_STOP_SET; } private static class DefaultSetHolder { static final CharArraySet DEFAULT_STOP_SET; static { try { DEFAULT_STOP_SET = WordlistLoader.getSnowballWordSet(IOUtils.getDecodingReader(SnowballFilter.class, DEFAULT_STOPWORD_FILE, IOUtils...
return DefaultSetHolder.DEFAULT_STOP_SET; } private static class DefaultSetHolder { static final CharArraySet DEFAULT_STOP_SET; static { try { DEFAULT_STOP_SET = WordlistLoader.getSnowballWordSet(IOUtils.getDecodingReader(SnowballFilter.class, DEFAULT_STOPWORD_FILE, IOUtils.CHARSET_UTF_8), Version.LUCENE_CURRENT); } ca...
/** * Returns an unmodifiable instance of the default stop words set. * @return default stop words set. */
Returns an unmodifiable instance of the default stop words set
getDefaultStopSet
{ "repo_name": "fogbeam/Heceta_solr", "path": "lucene/analysis/common/src/java/org/apache/lucene/analysis/sv/SwedishAnalyzer.java", "license": "apache-2.0", "size": 5096 }
[ "java.io.IOException", "java.io.Reader", "org.apache.lucene.analysis.Analyzer", "org.apache.lucene.analysis.core.LowerCaseFilter", "org.apache.lucene.analysis.core.StopFilter", "org.apache.lucene.analysis.snowball.SnowballFilter", "org.apache.lucene.analysis.standard.StandardFilter", "org.apache.lucen...
import java.io.IOException; import java.io.Reader; import org.apache.lucene.analysis.Analyzer; import org.apache.lucene.analysis.core.LowerCaseFilter; import org.apache.lucene.analysis.core.StopFilter; import org.apache.lucene.analysis.snowball.SnowballFilter; import org.apache.lucene.analysis.standard.StandardFilter; ...
import java.io.*; import org.apache.lucene.analysis.*; import org.apache.lucene.analysis.core.*; import org.apache.lucene.analysis.snowball.*; import org.apache.lucene.analysis.standard.*; import org.apache.lucene.analysis.util.*; import org.apache.lucene.util.*;
[ "java.io", "org.apache.lucene" ]
java.io; org.apache.lucene;
1,265,090
ConcurrentMap<String, Channel> getChannels() { return channels; }
ConcurrentMap<String, Channel> getChannels() { return channels; }
/** * Get all channels registered on current Rpc Client. * * @return channels */
Get all channels registered on current Rpc Client
getChannels
{ "repo_name": "seata/seata", "path": "core/src/main/java/io/seata/core/rpc/netty/NettyClientChannelManager.java", "license": "apache-2.0", "size": 11552 }
[ "io.netty.channel.Channel", "java.util.concurrent.ConcurrentMap" ]
import io.netty.channel.Channel; import java.util.concurrent.ConcurrentMap;
import io.netty.channel.*; import java.util.concurrent.*;
[ "io.netty.channel", "java.util" ]
io.netty.channel; java.util;
2,278,437
public void updateNodeHeartbeatResponseForCleanup(NodeHeartbeatResponse response);
void function(NodeHeartbeatResponse response);
/** * Update a {@link NodeHeartbeatResponse} with the list of containers and * applications to clean up for this node. * @param response the {@link NodeHeartbeatResponse} to update */
Update a <code>NodeHeartbeatResponse</code> with the list of containers and applications to clean up for this node
updateNodeHeartbeatResponseForCleanup
{ "repo_name": "vlajos/hadoop", "path": "hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/rmnode/RMNode.java", "license": "apache-2.0", "size": 4093 }
[ "org.apache.hadoop.yarn.server.api.protocolrecords.NodeHeartbeatResponse" ]
import org.apache.hadoop.yarn.server.api.protocolrecords.NodeHeartbeatResponse;
import org.apache.hadoop.yarn.server.api.protocolrecords.*;
[ "org.apache.hadoop" ]
org.apache.hadoop;
283,507
public Execution createExecution(Execution execution) throws GreenPepperServerException;
Execution function(Execution execution) throws GreenPepperServerException;
/** * Creates the Execution. * * @param execution a {@link com.greenpepper.server.domain.Execution} object. * @return the new created Execution * @throws com.greenpepper.server.GreenPepperServerException if any. */
Creates the Execution
createExecution
{ "repo_name": "strator-dev/greenpepper", "path": "greenpepper/greenpepper-server/src/main/java/com/greenpepper/server/domain/dao/DocumentDao.java", "license": "apache-2.0", "size": 11394 }
[ "com.greenpepper.server.GreenPepperServerException", "com.greenpepper.server.domain.Execution" ]
import com.greenpepper.server.GreenPepperServerException; import com.greenpepper.server.domain.Execution;
import com.greenpepper.server.*; import com.greenpepper.server.domain.*;
[ "com.greenpepper.server" ]
com.greenpepper.server;
2,711,123
private void extractGatewayInfos() throws IOException { try { DatagramPacket packet = new DatagramPacket(new byte[265], 256); socket.receive(packet); Eq3UdpResponse response = new Eq3UdpResponse(packet.getData()); logger.trace("Eq3UdpResponse: {}", response);...
void function() throws IOException { try { DatagramPacket packet = new DatagramPacket(new byte[265], 256); socket.receive(packet); Eq3UdpResponse response = new Eq3UdpResponse(packet.getData()); logger.trace(STR, response); if (response.isValid()) { logger.debug(STR, response.getSerialNumber()); String address = packet...
/** * Extracts the CCU infos from the UDP response. */
Extracts the CCU infos from the UDP response
extractGatewayInfos
{ "repo_name": "Jamstah/openhab2-addons", "path": "addons/binding/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/discovery/CcuDiscoveryService.java", "license": "epl-1.0", "size": 5861 }
[ "java.io.IOException", "java.net.DatagramPacket", "java.net.SocketTimeoutException", "org.eclipse.smarthome.config.discovery.DiscoveryResultBuilder", "org.eclipse.smarthome.core.thing.ThingUID", "org.openhab.binding.homematic.internal.discovery.eq3udp.Eq3UdpResponse" ]
import java.io.IOException; import java.net.DatagramPacket; import java.net.SocketTimeoutException; import org.eclipse.smarthome.config.discovery.DiscoveryResultBuilder; import org.eclipse.smarthome.core.thing.ThingUID; import org.openhab.binding.homematic.internal.discovery.eq3udp.Eq3UdpResponse;
import java.io.*; import java.net.*; import org.eclipse.smarthome.config.discovery.*; import org.eclipse.smarthome.core.thing.*; import org.openhab.binding.homematic.internal.discovery.eq3udp.*;
[ "java.io", "java.net", "org.eclipse.smarthome", "org.openhab.binding" ]
java.io; java.net; org.eclipse.smarthome; org.openhab.binding;
1,446,022
public void testUserTxTimeout() throws Exception { final Ignite ignite = grid(0); final IgniteCache<Object, Object> cache = ignite.getOrCreateCache(CACHE_NAME); checkImplicitTxTimeout(cache); checkExplicitTxTimeout(cache, ignite); }
void function() throws Exception { final Ignite ignite = grid(0); final IgniteCache<Object, Object> cache = ignite.getOrCreateCache(CACHE_NAME); checkImplicitTxTimeout(cache); checkExplicitTxTimeout(cache, ignite); }
/** * Success if user tx was timed out. * * @throws Exception If failed. */
Success if user tx was timed out
testUserTxTimeout
{ "repo_name": "psadusumilli/ignite", "path": "modules/core/src/test/java/org/apache/ignite/internal/processors/cache/IgniteTxConfigCacheSelfTest.java", "license": "apache-2.0", "size": 9747 }
[ "org.apache.ignite.Ignite", "org.apache.ignite.IgniteCache" ]
import org.apache.ignite.Ignite; import org.apache.ignite.IgniteCache;
import org.apache.ignite.*;
[ "org.apache.ignite" ]
org.apache.ignite;
1,413,714
public static String makeFunctionName(IMethodBinding methodBinding) { ITypeBinding classBinding = methodBinding.getDeclaringClass(); String className = getFullName(classBinding); String methodName = getMethodSelector(methodBinding).replace(':', '_'); return String.format("%s_%s", className, methodName...
static String function(IMethodBinding methodBinding) { ITypeBinding classBinding = methodBinding.getDeclaringClass(); String className = getFullName(classBinding); String methodName = getMethodSelector(methodBinding).replace(':', '_'); return String.format("%s_%s", className, methodName); }
/** * Returns a "Type_method" function name for static methods, such as from * enum types. A combination of classname plus modified selector is * guaranteed to be unique within the app. */
Returns a "Type_method" function name for static methods, such as from enum types. A combination of classname plus modified selector is guaranteed to be unique within the app
makeFunctionName
{ "repo_name": "gank0326/j2objc", "path": "translator/src/main/java/com/google/devtools/j2objc/util/NameTable.java", "license": "apache-2.0", "size": 27309 }
[ "org.eclipse.jdt.core.dom.IMethodBinding", "org.eclipse.jdt.core.dom.ITypeBinding" ]
import org.eclipse.jdt.core.dom.IMethodBinding; import org.eclipse.jdt.core.dom.ITypeBinding;
import org.eclipse.jdt.core.dom.*;
[ "org.eclipse.jdt" ]
org.eclipse.jdt;
2,718,227
private void populateDomainClassProperties(PropertyDescriptor[] propertyDescriptors) { for (PropertyDescriptor descriptor : propertyDescriptors) { if (descriptor.getPropertyType() == null) { // indexed property continue; } // ignore certa...
void function(PropertyDescriptor[] propertyDescriptors) { for (PropertyDescriptor descriptor : propertyDescriptors) { if (descriptor.getPropertyType() == null) { continue; } if (GrailsDomainConfigurationUtil.isNotConfigurational(descriptor)) { GrailsDomainClassProperty property = new DefaultGrailsDomainClassProperty(th...
/** * Populates the domain class properties map * * @param propertyDescriptors The property descriptors */
Populates the domain class properties map
populateDomainClassProperties
{ "repo_name": "erdi/grails-core", "path": "grails-core/src/main/groovy/org/codehaus/groovy/grails/commons/DefaultGrailsDomainClass.java", "license": "apache-2.0", "size": 35419 }
[ "java.beans.PropertyDescriptor" ]
import java.beans.PropertyDescriptor;
import java.beans.*;
[ "java.beans" ]
java.beans;
599,432
public StepDataInterface getStepData() { return new ReservoirSamplingData(); }
StepDataInterface function() { return new ReservoirSamplingData(); }
/** * Get a new instance of the appropriate data class. This data class * implements the StepDataInterface. It basically contains the persisting * data that needs to live on, even if a worker thread is terminated. * * @return a <code>StepDataInterface</code> value */
Get a new instance of the appropriate data class. This data class implements the StepDataInterface. It basically contains the persisting data that needs to live on, even if a worker thread is terminated
getStepData
{ "repo_name": "panbasten/imeta", "path": "imeta2.x/imeta-src/imeta/src/main/java/com/panet/imeta/trans/steps/reservoirsampling/ReservoirSamplingMeta.java", "license": "gpl-2.0", "size": 10257 }
[ "com.panet.imeta.trans.step.StepDataInterface" ]
import com.panet.imeta.trans.step.StepDataInterface;
import com.panet.imeta.trans.step.*;
[ "com.panet.imeta" ]
com.panet.imeta;
511,465
SelectionManager manager = getManager(session); List<Element> elList = result.getChildren(); if (manager != null) { Set<String> selection = manager.getSelection(SELECTION_METADATA); for (Element element : elList) { if (element.getName().equals(Geonet.Elem.SUMMARY)) { ...
SelectionManager manager = getManager(session); List<Element> elList = result.getChildren(); if (manager != null) { Set<String> selection = manager.getSelection(SELECTION_METADATA); for (Element element : elList) { if (element.getName().equals(Geonet.Elem.SUMMARY)) { continue; } Element info = element.getChild(Edit.Roo...
/** * <p> * Update result elements to present </br> * <ul> * <li>set selected true if result element in session</li> * <li>set selected false if result element not in session</li> * </ul> * </p> * * @param result * the result modified<br/> * * @see org.fao.geon...
Update result elements to present set selected true if result element in session set selected false if result element not in session
updateMDResult
{ "repo_name": "OpenWIS/openwis", "path": "openwis-metadataportal/openwis-portal/src/main/java/org/fao/geonet/kernel/SelectionManager.java", "license": "gpl-3.0", "size": 9344 }
[ "java.util.List", "java.util.Set", "org.fao.geonet.constants.Edit", "org.fao.geonet.constants.Geonet", "org.jdom.Element" ]
import java.util.List; import java.util.Set; import org.fao.geonet.constants.Edit; import org.fao.geonet.constants.Geonet; import org.jdom.Element;
import java.util.*; import org.fao.geonet.constants.*; import org.jdom.*;
[ "java.util", "org.fao.geonet", "org.jdom" ]
java.util; org.fao.geonet; org.jdom;
1,811,174
public static void pushCall(Map<String, ExtendedEntityManager> entityManagers) { currentSFSBCallStack().add(entityManagers); if (entityManagers != null) { for(ExtendedEntityManager extendedEntityManager: entityManagers.values()) { extendedEntityManager.inter...
static void function(Map<String, ExtendedEntityManager> entityManagers) { currentSFSBCallStack().add(entityManagers); if (entityManagers != null) { for(ExtendedEntityManager extendedEntityManager: entityManagers.values()) { extendedEntityManager.internalAssociateWithJtaTx(); } } }
/** * Push the passed SFSB context handle onto the invocation call stack * * @param entityManagers the entity manager map */
Push the passed SFSB context handle onto the invocation call stack
pushCall
{ "repo_name": "xasx/wildfly", "path": "jpa/subsystem/src/main/java/org/jboss/as/jpa/container/SFSBCallStack.java", "license": "lgpl-2.1", "size": 7224 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
1,824,229
public Set<OutputOption> getOutputOptions() { return outputOptions; }
Set<OutputOption> function() { return outputOptions; }
/** * Returns the extra output options. * @return the output options */
Returns the extra output options
getOutputOptions
{ "repo_name": "ashigeru/asakusafw-compiler", "path": "dag/compiler/model/src/main/java/com/asakusafw/dag/compiler/model/plan/OutputSpec.java", "license": "apache-2.0", "size": 6036 }
[ "java.util.Set" ]
import java.util.Set;
import java.util.*;
[ "java.util" ]
java.util;
2,185,454
public static LoginRetries getInstance(final Settings settings) { synchronized (INSTANCE_LOCK) { if (instance == null) { instance = new LoginRetries(settings); } return instance; } } // ====================================================...
static LoginRetries function(final Settings settings) { synchronized (INSTANCE_LOCK) { if (instance == null) { instance = new LoginRetries(settings); } return instance; } }
/** * Prepares and returns the instance for this Singleton. * * @param settings System Settings * @return Singleton instance of this class */
Prepares and returns the instance for this Singleton
getInstance
{ "repo_name": "IWSDevelopers/iws", "path": "iws-core/src/main/java/net/iaeste/iws/core/monitors/LoginRetries.java", "license": "apache-2.0", "size": 8819 }
[ "net.iaeste.iws.common.configuration.Settings" ]
import net.iaeste.iws.common.configuration.Settings;
import net.iaeste.iws.common.configuration.*;
[ "net.iaeste.iws" ]
net.iaeste.iws;
915,755
static void synchronize(Runnable task, Lock... locks) { synchronize(() -> { task.run(); return null; }, locks); }
static void synchronize(Runnable task, Lock... locks) { synchronize(() -> { task.run(); return null; }, locks); }
/** * Wraps task execution into locks. * * @param task Runnable task. * @param locks List of locks. */
Wraps task execution into locks
synchronize
{ "repo_name": "ilantukh/ignite", "path": "modules/ml/src/main/java/org/apache/ignite/ml/inference/storage/model/DefaultModelStorage.java", "license": "apache-2.0", "size": 10710 }
[ "java.util.concurrent.locks.Lock" ]
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.*;
[ "java.util" ]
java.util;
1,031,817
public Document getDocument() { if (document == null) { document = ((LuceneResultSet) getResultSet()).getDocument(getIndex()); } return document; }
Document function() { if (document == null) { document = ((LuceneResultSet) getResultSet()).getDocument(getIndex()); } return document; }
/** * Support to cache the document for this row * * @return */
Support to cache the document for this row
getDocument
{ "repo_name": "daniel-he/community-edition", "path": "projects/repository/source/java/org/alfresco/repo/search/impl/lucene/LuceneResultSetRow.java", "license": "lgpl-3.0", "size": 4480 }
[ "org.apache.lucene.document.Document" ]
import org.apache.lucene.document.Document;
import org.apache.lucene.document.*;
[ "org.apache.lucene" ]
org.apache.lucene;
1,578,638
public Comment[] getComments(ApiTypeWrapper apiTypeWrapper) throws APIManagementException { List<Comment> commentList = new ArrayList<Comment>(); Connection connection = null; ResultSet resultSet = null; PreparedStatement prepStmt = null; boolean isProduct = apiTypeWrapper.is...
Comment[] function(ApiTypeWrapper apiTypeWrapper) throws APIManagementException { List<Comment> commentList = new ArrayList<Comment>(); Connection connection = null; ResultSet resultSet = null; PreparedStatement prepStmt = null; boolean isProduct = apiTypeWrapper.isAPIProduct(); int id = -1; String sqlQuery; sqlQuery =...
/** * Returns all the Comments on an API * * @param apiTypeWrapper API type wrapper * @return Comment Array * @throws APIManagementException */
Returns all the Comments on an API
getComments
{ "repo_name": "Rajith90/carbon-apimgt", "path": "components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/dao/ApiMgtDAO.java", "license": "apache-2.0", "size": 811404 }
[ "java.sql.Connection", "java.sql.PreparedStatement", "java.sql.ResultSet", "java.sql.SQLException", "java.util.ArrayList", "java.util.List", "org.wso2.carbon.apimgt.api.APIManagementException", "org.wso2.carbon.apimgt.api.model.ApiTypeWrapper", "org.wso2.carbon.apimgt.api.model.Comment", "org.wso2...
import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.util.ArrayList; import java.util.List; import org.wso2.carbon.apimgt.api.APIManagementException; import org.wso2.carbon.apimgt.api.model.ApiTypeWrapper; import org.wso2.carbon.apimgt.api.m...
import java.sql.*; import java.util.*; import org.wso2.carbon.apimgt.api.*; import org.wso2.carbon.apimgt.api.model.*; import org.wso2.carbon.apimgt.impl.dao.constants.*; import org.wso2.carbon.apimgt.impl.utils.*;
[ "java.sql", "java.util", "org.wso2.carbon" ]
java.sql; java.util; org.wso2.carbon;
1,772,974
private static Handler buildDeathHandler() { // wait 5 seconds and exit with a status code of 1 Handler handler = new DeathHandler(5000, 1); handler.setLevel(Level.SEVERE); return handler; }
static Handler function() { Handler handler = new DeathHandler(5000, 1); handler.setLevel(Level.SEVERE); return handler; }
/** * Shut down the JVM if we have any exceptions during launch. * We need this because if we launch the splash screen, there seems * to be no way to get the JVM to die naturally. Even if we close the * splash screen, the JVM keeps running.... ~bjv */
Shut down the JVM if we have any exceptions during launch. We need this because if we launch the splash screen, there seems to be no way to get the JVM to die naturally. Even if we close the splash screen, the JVM keeps running.... ~bjv
buildDeathHandler
{ "repo_name": "bfg-repo-cleaner-demos/eclipselink.runtime-bfg-strip-big-blobs", "path": "utils/eclipselink.utils.workbench/framework/source/org/eclipse/persistence/tools/workbench/framework/internal/FrameworkApplication.java", "license": "epl-1.0", "size": 35396 }
[ "java.util.logging.Handler", "java.util.logging.Level", "org.eclipse.persistence.tools.workbench.utility.log.DeathHandler" ]
import java.util.logging.Handler; import java.util.logging.Level; import org.eclipse.persistence.tools.workbench.utility.log.DeathHandler;
import java.util.logging.*; import org.eclipse.persistence.tools.workbench.utility.log.*;
[ "java.util", "org.eclipse.persistence" ]
java.util; org.eclipse.persistence;
2,547,690
@Test public void testRangeOrderByNestedNOSchema() throws IOException, ParserException{ String query; { query = " l1 = load '" + INP_FILE_5FIELDS + "';" + " g = group l1 by $0;" + " f = foreach g { o = order l1 by .. $2 DESC; generat...
void function() throws IOException, ParserException{ String query; { query = STR + INP_FILE_5FIELDS + "';" + STR + STR ; String expectedSchStr = STR; Schema expectedSch = getCleanedGroupSchema(expectedSchStr); compileAndCompareSchema(expectedSch, query, "f"); LogicalPlan lp = createAndProcessLPlan(query); boolean[] isA...
/** * Test nested order-by without schema * @throws IOException * @throws ParserException */
Test nested order-by without schema
testRangeOrderByNestedNOSchema
{ "repo_name": "hxquangnhat/PIG-ROLLUP-MRCUBE", "path": "test/org/apache/pig/test/TestProjectRange.java", "license": "apache-2.0", "size": 46304 }
[ "java.io.IOException", "java.util.Iterator", "java.util.List", "org.apache.pig.data.Tuple", "org.apache.pig.impl.logicalLayer.schema.Schema", "org.apache.pig.newplan.logical.relational.LogicalPlan", "org.apache.pig.parser.ParserException" ]
import java.io.IOException; import java.util.Iterator; import java.util.List; import org.apache.pig.data.Tuple; import org.apache.pig.impl.logicalLayer.schema.Schema; import org.apache.pig.newplan.logical.relational.LogicalPlan; import org.apache.pig.parser.ParserException;
import java.io.*; import java.util.*; import org.apache.pig.data.*; import org.apache.pig.impl.*; import org.apache.pig.newplan.logical.relational.*; import org.apache.pig.parser.*;
[ "java.io", "java.util", "org.apache.pig" ]
java.io; java.util; org.apache.pig;
2,639,695
public PublicNetworkAccess publicNetworkAccess() { return this.innerProperties() == null ? null : this.innerProperties().publicNetworkAccess(); }
PublicNetworkAccess function() { return this.innerProperties() == null ? null : this.innerProperties().publicNetworkAccess(); }
/** * Get the publicNetworkAccess property: Whether or not public network access is allowed for the container registry. * * @return the publicNetworkAccess value. */
Get the publicNetworkAccess property: Whether or not public network access is allowed for the container registry
publicNetworkAccess
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/models/RegistryInner.java", "license": "mit", "size": 13355 }
[ "com.azure.resourcemanager.containerregistry.models.PublicNetworkAccess" ]
import com.azure.resourcemanager.containerregistry.models.PublicNetworkAccess;
import com.azure.resourcemanager.containerregistry.models.*;
[ "com.azure.resourcemanager" ]
com.azure.resourcemanager;
11,587
public Set<Map.Entry<String, String>> entrySet() { return new LinkedHashSet<>(properties.entrySet()); }
Set<Map.Entry<String, String>> function() { return new LinkedHashSet<>(properties.entrySet()); }
/** * See {@link Properties#entrySet()}. */
See <code>Properties#entrySet()</code>
entrySet
{ "repo_name": "etiennestuder/java-ordered-properties", "path": "src/main/java/nu/studer/java/util/OrderedProperties.java", "license": "apache-2.0", "size": 16638 }
[ "java.util.LinkedHashSet", "java.util.Map", "java.util.Set" ]
import java.util.LinkedHashSet; import java.util.Map; import java.util.Set;
import java.util.*;
[ "java.util" ]
java.util;
1,141,995
public List<QueryItem> getDuplicateFilters() { Set<QueryItem> items = new HashSet<>(); List<QueryItem> duplicates = new ArrayList<>(); for ( QueryItem item : getFilters() ) { if ( !items.add( item ) ) { duplicates.add( item ); ...
List<QueryItem> function() { Set<QueryItem> items = new HashSet<>(); List<QueryItem> duplicates = new ArrayList<>(); for ( QueryItem item : getFilters() ) { if ( !items.add( item ) ) { duplicates.add( item ); } } return duplicates; }
/** * Returns a list of attributes which appear more than once. */
Returns a list of attributes which appear more than once
getDuplicateFilters
{ "repo_name": "kakada/dhis2", "path": "dhis-api/src/main/java/org/hisp/dhis/trackedentity/TrackedEntityInstanceQueryParams.java", "license": "bsd-3-clause", "size": 18781 }
[ "java.util.ArrayList", "java.util.HashSet", "java.util.List", "java.util.Set", "org.hisp.dhis.common.QueryItem" ]
import java.util.ArrayList; import java.util.HashSet; import java.util.List; import java.util.Set; import org.hisp.dhis.common.QueryItem;
import java.util.*; import org.hisp.dhis.common.*;
[ "java.util", "org.hisp.dhis" ]
java.util; org.hisp.dhis;
1,403,187
@Override protected BigDecimal[] getBreaks() { return Constants.SPEEDBREAKS; }
BigDecimal[] function() { return Constants.SPEEDBREAKS; }
/** * Get the list of break values (separating the values into columns for * counting). * * @return The set of break values */
Get the list of break values (separating the values into columns for counting)
getBreaks
{ "repo_name": "Richard-Linsdale/sailtracker", "path": "processing/src/main/java/uk/theretiredprogrammer/sailtracker/displaydatamodels/SpeedDataModel.java", "license": "apache-2.0", "size": 2066 }
[ "java.math.BigDecimal", "uk.theretiredprogrammer.sailtracker.data.Constants" ]
import java.math.BigDecimal; import uk.theretiredprogrammer.sailtracker.data.Constants;
import java.math.*; import uk.theretiredprogrammer.sailtracker.data.*;
[ "java.math", "uk.theretiredprogrammer.sailtracker" ]
java.math; uk.theretiredprogrammer.sailtracker;
492,748
public PredicateConfig setClassName(String className) { this.className = checkHasText(className, "className must contain text"); this.implementation = null; this.sql = null; return this; }
PredicateConfig function(String className) { this.className = checkHasText(className, STR); this.implementation = null; this.sql = null; return this; }
/** * Sets the class name of the Predicate. * <p/> * If a implementation or sql was set, it will be removed. * * @param className the name of the class of the Predicate. * @return the updated PredicateConfig. * @throws IllegalArgumentException if className is null or an empty String. ...
Sets the class name of the Predicate. If a implementation or sql was set, it will be removed
setClassName
{ "repo_name": "lmjacksoniii/hazelcast", "path": "hazelcast/src/main/java/com/hazelcast/config/PredicateConfig.java", "license": "apache-2.0", "size": 5854 }
[ "com.hazelcast.util.Preconditions" ]
import com.hazelcast.util.Preconditions;
import com.hazelcast.util.*;
[ "com.hazelcast.util" ]
com.hazelcast.util;
731,605
private void delete(SnapshotId snapshotId, Version version, IndexId indexId, ShardId shardId) { Context context = new Context(snapshotId, version, indexId, shardId, shardId); context.delete(); }
void function(SnapshotId snapshotId, Version version, IndexId indexId, ShardId shardId) { Context context = new Context(snapshotId, version, indexId, shardId, shardId); context.delete(); }
/** * Delete shard snapshot * * @param snapshotId snapshot id * @param shardId shard id */
Delete shard snapshot
delete
{ "repo_name": "nilabhsagar/elasticsearch", "path": "core/src/main/java/org/elasticsearch/repositories/blobstore/BlobStoreRepository.java", "license": "apache-2.0", "size": 79516 }
[ "org.elasticsearch.Version", "org.elasticsearch.index.shard.ShardId", "org.elasticsearch.repositories.IndexId", "org.elasticsearch.snapshots.SnapshotId" ]
import org.elasticsearch.Version; import org.elasticsearch.index.shard.ShardId; import org.elasticsearch.repositories.IndexId; import org.elasticsearch.snapshots.SnapshotId;
import org.elasticsearch.*; import org.elasticsearch.index.shard.*; import org.elasticsearch.repositories.*; import org.elasticsearch.snapshots.*;
[ "org.elasticsearch", "org.elasticsearch.index", "org.elasticsearch.repositories", "org.elasticsearch.snapshots" ]
org.elasticsearch; org.elasticsearch.index; org.elasticsearch.repositories; org.elasticsearch.snapshots;
490,764
@Test public void testProject() throws IOException { JavaPackageFinder javaPackageFinder = EasyMock.createMock(JavaPackageFinder.class); EasyMock.expect(javaPackageFinder.findJavaPackageForPath("foo/module_foo.iml")).andReturn(""); EasyMock.expect(javaPackageFinder.findJavaPackageForPath("bar/module_bar...
void function() throws IOException { JavaPackageFinder javaPackageFinder = EasyMock.createMock(JavaPackageFinder.class); EasyMock.expect(javaPackageFinder.findJavaPackageForPath(STR)).andReturn(STRbar/module_bar.imlSTRSTRShould be one module for the java_library, one for the android_library, STRone module for the andro...
/** * This is an important test that verifies that the {@code no_dx} argument for an * {@code android_binary} is handled appropriately when generating an IntelliJ project. */
This is an important test that verifies that the no_dx argument for an android_binary is handled appropriately when generating an IntelliJ project
testProject
{ "repo_name": "thinkernel/buck", "path": "test/com/facebook/buck/command/ProjectTest.java", "license": "apache-2.0", "size": 41426 }
[ "com.facebook.buck.command.Project", "com.facebook.buck.model.BuildTargetFactory", "com.facebook.buck.rules.JavaPackageFinder", "com.facebook.buck.testutil.MoreAsserts", "com.google.common.collect.ImmutableList", "com.google.common.collect.Iterables", "java.io.IOException", "org.easymock.EasyMock", ...
import com.facebook.buck.command.Project; import com.facebook.buck.model.BuildTargetFactory; import com.facebook.buck.rules.JavaPackageFinder; import com.facebook.buck.testutil.MoreAsserts; import com.google.common.collect.ImmutableList; import com.google.common.collect.Iterables; import java.io.IOException; import org...
import com.facebook.buck.command.*; import com.facebook.buck.model.*; import com.facebook.buck.rules.*; import com.facebook.buck.testutil.*; import com.google.common.collect.*; import java.io.*; import org.easymock.*; import org.junit.*;
[ "com.facebook.buck", "com.google.common", "java.io", "org.easymock", "org.junit" ]
com.facebook.buck; com.google.common; java.io; org.easymock; org.junit;
2,587,999
public static final PrimitiveColumnExpression<String> create(final String value, final GeneratorDialect dialect) { return new PrimitiveColumnExpression<>(value, value, dialect::quoteString); } private final T value; private final T databaseValue; private final Function<T, String> converter; public...
static final PrimitiveColumnExpression<String> function(final String value, final GeneratorDialect dialect) { return new PrimitiveColumnExpression<>(value, value, dialect::quoteString); } private final T value; private final T databaseValue; private final Function<T, String> converter; public PrimitiveColumnExpression(...
/** * Creates a new instance of a {@link PrimitiveColumnExpression} for a string. * * @param value * the string value * @param dialect * the dialect of the current database * @return the new expression */
Creates a new instance of a <code>PrimitiveColumnExpression</code> for a string
create
{ "repo_name": "liefke/org.fastnate", "path": "fastnate-generator/src/main/java/org/fastnate/generator/statements/PrimitiveColumnExpression.java", "license": "apache-2.0", "size": 2332 }
[ "java.util.function.Function", "org.fastnate.generator.dialect.GeneratorDialect" ]
import java.util.function.Function; import org.fastnate.generator.dialect.GeneratorDialect;
import java.util.function.*; import org.fastnate.generator.dialect.*;
[ "java.util", "org.fastnate.generator" ]
java.util; org.fastnate.generator;
1,454,531
@Override public void notifyChanged(Notification notification) { updateChildren(notification); switch (notification.getFeatureID(Circle.class)) { case NetworkPackage.CIRCLE__NAME: fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), fals...
void function(Notification notification) { updateChildren(notification); switch (notification.getFeatureID(Circle.class)) { case NetworkPackage.CIRCLE__NAME: fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); return; } super.notifyChanged(notification); }
/** * This handles model notifications by calling {@link #updateChildren} to update any cached * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */
This handles model notifications by calling <code>#updateChildren</code> to update any cached children and by creating a viewer notification, which it passes to <code>#fireNotifyChanged</code>.
notifyChanged
{ "repo_name": "tht-krisztian/EMF-IncQuery-Examples", "path": "network/network.edit/src/network/provider/CircleItemProvider.java", "license": "epl-1.0", "size": 7559 }
[ "org.eclipse.emf.common.notify.Notification", "org.eclipse.emf.edit.provider.ViewerNotification" ]
import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.edit.provider.ViewerNotification;
import org.eclipse.emf.common.notify.*; import org.eclipse.emf.edit.provider.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
2,737,149
public void testLongEthernetAddressConstructor() { // let's test that creating a EthernetAddress from an zero long // gives us a null EthernetAddress (definition of null EthernetAddress) EUI48 ethernet_address = new EUI48( 0x0000000000000000L); assertEquals( "EthernetAddress(long) did not build expec...
void function() { EUI48 ethernet_address = new EUI48( 0x0000000000000000L); assertEquals( STR, NULL_ETHERNET_ADDRESS_LONG, ethernet_address.toLong()); ethernet_address = new EUI48(VALID_ETHERNET_ADDRESS_LONG); assertEquals( STR, VALID_ETHERNET_ADDRESS_LONG, ethernet_address.toLong()); }
/** * Test of EthernetAddress(long) constructor, of class * com.fasterxml.uuid.EthernetAddress. */
Test of EthernetAddress(long) constructor, of class com.fasterxml.uuid.EthernetAddress
testLongEthernetAddressConstructor
{ "repo_name": "snmaher/xacml4j", "path": "xacml-core/src/test/java/org/xacml4j/v30/EUI48Test.java", "license": "lgpl-3.0", "size": 52502 }
[ "org.junit.Assert" ]
import org.junit.Assert;
import org.junit.*;
[ "org.junit" ]
org.junit;
123,886
public List<StockUnit> suitableStockUnitsByLotAndAmountNoException(Lot lot, BigDecimal toPick) throws NullAmountNoOtherException;
List<StockUnit> function(Lot lot, BigDecimal toPick) throws NullAmountNoOtherException;
/** * Returns List of suitable StockUnits for picking from * @param lot * @param toPick * @return * @throws NullAmountNoOtherException */
Returns List of suitable StockUnits for picking from
suitableStockUnitsByLotAndAmountNoException
{ "repo_name": "tedvals/mywms", "path": "server.app/los.inventory-ejb/src/de/linogistix/los/inventory/pick/businessservice/PickOrderBusiness.java", "license": "gpl-3.0", "size": 11549 }
[ "de.linogistix.los.inventory.pick.exception.NullAmountNoOtherException", "java.math.BigDecimal", "java.util.List", "org.mywms.model.Lot", "org.mywms.model.StockUnit" ]
import de.linogistix.los.inventory.pick.exception.NullAmountNoOtherException; import java.math.BigDecimal; import java.util.List; import org.mywms.model.Lot; import org.mywms.model.StockUnit;
import de.linogistix.los.inventory.pick.exception.*; import java.math.*; import java.util.*; import org.mywms.model.*;
[ "de.linogistix.los", "java.math", "java.util", "org.mywms.model" ]
de.linogistix.los; java.math; java.util; org.mywms.model;
958,994
public static String prependSelection(@NonNull String _prependedSelection, String _originalSelection) { if (_originalSelection != null) { return "(" + _prependedSelection + ") AND (" + _originalSelection + ")"; } else { return _prependedSelection; } }
static String function(@NonNull String _prependedSelection, String _originalSelection) { if (_originalSelection != null) { return "(" + _prependedSelection + STR + _originalSelection + ")"; } else { return _prependedSelection; } }
/** * Prepends a selection-string using a SQL-AND-conjunction. * * @param _prependedSelection The additional selection. * @param _originalSelection The original selection string. May be null (that means, there was * no original selection). * @return A combined s...
Prepends a selection-string using a SQL-AND-conjunction
prependSelection
{ "repo_name": "InstaList/instalist-android-backend", "path": "src/main/java/org/noorganization/instalist/utils/SQLiteUtils.java", "license": "apache-2.0", "size": 5536 }
[ "android.support.annotation.NonNull" ]
import android.support.annotation.NonNull;
import android.support.annotation.*;
[ "android.support" ]
android.support;
198,139
public Map<ColumnHandle, Comparable<?>> extractFixedValues() { if (isNone()) { return Collections.emptyMap(); } Map<ColumnHandle, Comparable<?>> fixedValues = new HashMap<>(); for (Map.Entry<ColumnHandle, Domain> entry : getDomains().entrySet()) { if (ent...
Map<ColumnHandle, Comparable<?>> function() { if (isNone()) { return Collections.emptyMap(); } Map<ColumnHandle, Comparable<?>> fixedValues = new HashMap<>(); for (Map.Entry<ColumnHandle, Domain> entry : getDomains().entrySet()) { if (entry.getValue().isSingleValue()) { fixedValues.put(entry.getKey(), entry.getValue()....
/** * Extract all column constraints that require exactly one value in their respective Domains. */
Extract all column constraints that require exactly one value in their respective Domains
extractFixedValues
{ "repo_name": "HackShare/Presto", "path": "presto-spi/src/main/java/com/facebook/presto/spi/TupleDomain.java", "license": "apache-2.0", "size": 13416 }
[ "java.util.Collections", "java.util.HashMap", "java.util.Map" ]
import java.util.Collections; import java.util.HashMap; import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
2,569,297
@InterfaceAudience.Public public List<Replication> getAllReplications() { List<Replication> allReplicatorsList = new ArrayList<Replication>(); if (allReplicators != null) { allReplicatorsList.addAll(allReplicators); } return allReplicatorsList; }
@InterfaceAudience.Public List<Replication> function() { List<Replication> allReplicatorsList = new ArrayList<Replication>(); if (allReplicators != null) { allReplicatorsList.addAll(allReplicators); } return allReplicatorsList; }
/** * Get all the replicators associated with this database. */
Get all the replicators associated with this database
getAllReplications
{ "repo_name": "Spotme/couchbase-lite-java-core", "path": "src/main/java/com/couchbase/lite/Database.java", "license": "apache-2.0", "size": 87852 }
[ "com.couchbase.lite.internal.InterfaceAudience", "com.couchbase.lite.replicator.Replication", "java.util.ArrayList", "java.util.List" ]
import com.couchbase.lite.internal.InterfaceAudience; import com.couchbase.lite.replicator.Replication; import java.util.ArrayList; import java.util.List;
import com.couchbase.lite.internal.*; import com.couchbase.lite.replicator.*; import java.util.*;
[ "com.couchbase.lite", "java.util" ]
com.couchbase.lite; java.util;
2,172,173
public List<QueryBuilder> mustNot() { return this.mustNotClauses; }
List<QueryBuilder> function() { return this.mustNotClauses; }
/** * Gets the queries that <b>must not</b> appear in the matching documents. */
Gets the queries that must not appear in the matching documents
mustNot
{ "repo_name": "ern/elasticsearch", "path": "server/src/main/java/org/elasticsearch/index/query/BoolQueryBuilder.java", "license": "apache-2.0", "size": 16868 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
224,609
@ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable<ObjectReplicationPolicyInner> list( String resourceGroupName, String accountName, Context context) { return new PagedIterable<>(listAsync(resourceGroupName, accountName, context)); }
@ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable<ObjectReplicationPolicyInner> function( String resourceGroupName, String accountName, Context context) { return new PagedIterable<>(listAsync(resourceGroupName, accountName, context)); }
/** * List the object replication policies associated with the storage 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 resource grou...
List the object replication policies associated with the storage account
list
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/resourcemanagerhybrid/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/implementation/ObjectReplicationPoliciesOperationsClientImpl.java", "license": "mit", "size": 46908 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.http.rest.PagedIterable", "com.azure.core.util.Context", "com.azure.resourcemanager.storage.fluent.models.ObjectReplicationPolicyInner" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.PagedIterable; import com.azure.core.util.Context; import com.azure.resourcemanager.storage.fluent.models.ObjectReplicationPolicyInner;
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;
999,872