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 HornetQMixIn setHost(String host) { _transportParams.put(TransportConstants.HOST_PROP_NAME, host); return this; }
HornetQMixIn function(String host) { _transportParams.put(TransportConstants.HOST_PROP_NAME, host); return this; }
/** * Set host address to connect. * @param host address * @return this instance */
Set host address to connect
setHost
{ "repo_name": "cunningt/switchyard", "path": "components/test/mixins/hornetq/src/main/java/org/switchyard/component/test/mixins/hornetq/HornetQMixIn.java", "license": "apache-2.0", "size": 23810 }
[ "org.hornetq.core.remoting.impl.netty.TransportConstants" ]
import org.hornetq.core.remoting.impl.netty.TransportConstants;
import org.hornetq.core.remoting.impl.netty.*;
[ "org.hornetq.core" ]
org.hornetq.core;
2,276,534
@Path("/{team_id}/discussions/{discussion_number}/comments") @GET @Produces("application/json") Response teams_list_discussion_comments_legacy(@PathParam("team_id") Integer teamId, @PathParam("discussion_number") Integer discussionNumber, @QueryParam("direction") String direction, @QueryParam("per_p...
@Path(STR) @Produces(STR) Response teams_list_discussion_comments_legacy(@PathParam(STR) Integer teamId, @PathParam(STR) Integer discussionNumber, @QueryParam(STR) String direction, @QueryParam(STR) Integer perPage, @QueryParam("page") Integer page);
/** * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [List discussion comments](https://developer.github.com/v3/teams/discussion_comments/#list-discussion-comments) endpoint. * * List all comments on a t...
Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [List discussion comments](HREF) endpoint. List all comments on a team discussion. OAuth access tokens require the `read:discussion` [scope](HREF)
teams_list_discussion_comments_legacy
{ "repo_name": "apiman/apiman-studio", "path": "back-end/hub-codegen/src/test/resources/OpenApi2QuarkusTest/_expected-github/generated-api/src/main/java/org/example/api/TeamsResource.java", "license": "apache-2.0", "size": 33902 }
[ "javax.ws.rs.Path", "javax.ws.rs.PathParam", "javax.ws.rs.Produces", "javax.ws.rs.QueryParam", "javax.ws.rs.core.Response" ]
import javax.ws.rs.Path; import javax.ws.rs.PathParam; import javax.ws.rs.Produces; import javax.ws.rs.QueryParam; import javax.ws.rs.core.Response;
import javax.ws.rs.*; import javax.ws.rs.core.*;
[ "javax.ws" ]
javax.ws;
2,798,325
public static ArrayList readBankNbDay(Connection connection) throws SQLException { ArrayList bankNbDays = new ArrayList(); Date date = new Date(); Statement statement = connection.createStatement(); String sql = "SELECT nb_day FROM finu_bank_nb_day WHERE nb_day >= " + "'" + ...
static ArrayList function(Connection connection) throws SQLException { ArrayList bankNbDays = new ArrayList(); Date date = new Date(); Statement statement = connection.createStatement(); String sql = STR + "'" + SLibUtils.DbmsDateFormatDate.format(date) + "'" + STR; ResultSet resultSet = statement.executeQuery(sql); wh...
/** * Obtiene las fechas de los proximos dias inhabiles bancarios a partir de la * fecha actual. regresa un ArrayList con las fechas obtenidas. * * @param connection * @return * @throws SQLException */
Obtiene las fechas de los proximos dias inhabiles bancarios a partir de la fecha actual. regresa un ArrayList con las fechas obtenidas
readBankNbDay
{ "repo_name": "swaplicado/siie32", "path": "src/erp/mfin/data/SSetExchangeRate.java", "license": "mit", "size": 11286 }
[ "java.sql.Connection", "java.sql.ResultSet", "java.sql.SQLException", "java.sql.Statement", "java.util.ArrayList", "java.util.Date", "sa.lib.SLibUtils" ]
import java.sql.Connection; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.util.ArrayList; import java.util.Date; import sa.lib.SLibUtils;
import java.sql.*; import java.util.*; import sa.lib.*;
[ "java.sql", "java.util", "sa.lib" ]
java.sql; java.util; sa.lib;
308,683
public static String promptValue(String message, String defaultValue, Pattern pattern) { Scanner scanner = new Scanner(System.in); String input = null; while (input == null) { System.out.print(ANSI_BOLD + message + ANSI_RESET + (defaultValue != null ? " (" + defaultValue + "): " ...
static String function(String message, String defaultValue, Pattern pattern) { Scanner scanner = new Scanner(System.in); String input = null; while (input == null) { System.out.print(ANSI_BOLD + message + ANSI_RESET + (defaultValue != null ? STR + defaultValue + STR : STR)); input = scanner.nextLine().trim(); if (input...
/** * Prompt user to input a value * @param message message to show when prompting for input * @param defaultValue default value to display/use * @param pattern input format pattern for validation * @return value */
Prompt user to input a value
promptValue
{ "repo_name": "pwalser75/project-seeder", "path": "src/main/java/ch/frostnova/app/util/CommandLineUtil.java", "license": "apache-2.0", "size": 1620 }
[ "java.util.Scanner", "java.util.regex.Pattern" ]
import java.util.Scanner; import java.util.regex.Pattern;
import java.util.*; import java.util.regex.*;
[ "java.util" ]
java.util;
2,762,663
public PutIndexTemplateRequest mapping(BytesReference source, XContentType xContentType) { internalMapping(XContentHelper.convertToMap(source, true, xContentType).v2()); return this; }
PutIndexTemplateRequest function(BytesReference source, XContentType xContentType) { internalMapping(XContentHelper.convertToMap(source, true, xContentType).v2()); return this; }
/** * Adds mapping that will be added when the index gets created. * * @param source The mapping source * @param xContentType the source content type */
Adds mapping that will be added when the index gets created
mapping
{ "repo_name": "nknize/elasticsearch", "path": "client/rest-high-level/src/main/java/org/elasticsearch/client/indices/PutIndexTemplateRequest.java", "license": "apache-2.0", "size": 15082 }
[ "org.elasticsearch.common.bytes.BytesReference", "org.elasticsearch.common.xcontent.XContentHelper", "org.elasticsearch.common.xcontent.XContentType" ]
import org.elasticsearch.common.bytes.BytesReference; import org.elasticsearch.common.xcontent.XContentHelper; import org.elasticsearch.common.xcontent.XContentType;
import org.elasticsearch.common.bytes.*; import org.elasticsearch.common.xcontent.*;
[ "org.elasticsearch.common" ]
org.elasticsearch.common;
1,149,500
public Obs unvoidObs(Obs obs) throws APIException { return dao.saveObs(obs); }
Obs function(Obs obs) throws APIException { return dao.saveObs(obs); }
/** * Unvoids an Obs * <p> * If the Obs argument is an obsGroup, all group members with the same dateVoided will also be * unvoided. * * @see org.openmrs.api.ObsService#unvoidObs(org.openmrs.Obs) * @param obs the Obs to unvoid * @return the unvoided Obs * @throws APIException */
Unvoids an Obs If the Obs argument is an obsGroup, all group members with the same dateVoided will also be unvoided
unvoidObs
{ "repo_name": "macorrales/openmrs-core", "path": "api/src/main/java/org/openmrs/api/impl/ObsServiceImpl.java", "license": "mpl-2.0", "size": 16563 }
[ "org.openmrs.Obs", "org.openmrs.api.APIException" ]
import org.openmrs.Obs; import org.openmrs.api.APIException;
import org.openmrs.*; import org.openmrs.api.*;
[ "org.openmrs", "org.openmrs.api" ]
org.openmrs; org.openmrs.api;
829,985
public Map<String, String> getParameters() { return this.parameters; }
Map<String, String> function() { return this.parameters; }
/** * Return all generic parameter values. * @return a read-only map (possibly empty, never {@code null}) */
Return all generic parameter values
getParameters
{ "repo_name": "lj654548718/ispring", "path": "src/main/java/io/ispring/ori/utils/MimeType.java", "license": "apache-2.0", "size": 17987 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
2,055,366
public static INaviView createCombinedCallgraph(final INaviProject project, final INaviAddressSpace addressSpace) { final INaviView view = project.getContent().createView("Combined Callgraph", ""); final Map<INaviFunction, CFunctionNode> nodeMap = new HashMap<INaviFunction, CFunctionNode>(); final ...
static INaviView function(final INaviProject project, final INaviAddressSpace addressSpace) { final INaviView view = project.getContent().createView(STR, ""); final Map<INaviFunction, CFunctionNode> nodeMap = new HashMap<INaviFunction, CFunctionNode>(); final Map<INaviFunction, INaviFunction> resolvedMap = new HashMap<...
/** * Combines the call graphs of the modules of an address space. * * @param project The project where the combined view is created. * @param addressSpace Provides the modules whose call graphs are combined. * * @return The view that contains the combined call graph. */
Combines the call graphs of the modules of an address space
createCombinedCallgraph
{ "repo_name": "mayl8822/binnavi", "path": "src/main/java/com/google/security/zynamics/binnavi/Gui/MainWindow/Implementations/CCallgraphCombiner.java", "license": "apache-2.0", "size": 5182 }
[ "com.google.security.zynamics.binnavi.disassembly.CCallgraph", "com.google.security.zynamics.binnavi.disassembly.CFunctionNode", "com.google.security.zynamics.binnavi.disassembly.ICallgraphEdge", "com.google.security.zynamics.binnavi.disassembly.ICallgraphNode", "com.google.security.zynamics.binnavi.disasse...
import com.google.security.zynamics.binnavi.disassembly.CCallgraph; import com.google.security.zynamics.binnavi.disassembly.CFunctionNode; import com.google.security.zynamics.binnavi.disassembly.ICallgraphEdge; import com.google.security.zynamics.binnavi.disassembly.ICallgraphNode; import com.google.security.zynamics.b...
import com.google.security.zynamics.binnavi.disassembly.*; import com.google.security.zynamics.binnavi.disassembly.algorithms.*; import com.google.security.zynamics.binnavi.disassembly.views.*; import com.google.security.zynamics.zylib.gui.zygraph.edges.*; import java.util.*;
[ "com.google.security", "java.util" ]
com.google.security; java.util;
1,916,240
public void addEntry(GameProfile gameProfile) { this.addEntry(gameProfile, (Date)null); }
void function(GameProfile gameProfile) { this.addEntry(gameProfile, (Date)null); }
/** * Add an entry to this cache */
Add an entry to this cache
addEntry
{ "repo_name": "aebert1/BigTransport", "path": "build/tmp/recompileMc/sources/net/minecraft/server/management/PlayerProfileCache.java", "license": "gpl-3.0", "size": 14829 }
[ "com.mojang.authlib.GameProfile", "java.util.Date" ]
import com.mojang.authlib.GameProfile; import java.util.Date;
import com.mojang.authlib.*; import java.util.*;
[ "com.mojang.authlib", "java.util" ]
com.mojang.authlib; java.util;
584,546
@Deprecated default List<ReplicationPeerDescription> listReplicationPeers(String regex) throws IOException { return new ArrayList<>(); }
default List<ReplicationPeerDescription> listReplicationPeers(String regex) throws IOException { return new ArrayList<>(); }
/** * Return a list of replication peers. * @param regex The regular expression to match peer id * @return a list of replication peers description * @throws IOException * @deprecated since 2.0 version and will be removed in 3.0 version. Use * {@link #listReplicationPeers(Pattern)} instead....
Return a list of replication peers
listReplicationPeers
{ "repo_name": "vincentpoon/hbase", "path": "hbase-client/src/main/java/org/apache/hadoop/hbase/client/Admin.java", "license": "apache-2.0", "size": 104154 }
[ "java.io.IOException", "java.util.ArrayList", "java.util.List", "org.apache.hadoop.hbase.replication.ReplicationPeerDescription" ]
import java.io.IOException; import java.util.ArrayList; import java.util.List; import org.apache.hadoop.hbase.replication.ReplicationPeerDescription;
import java.io.*; import java.util.*; import org.apache.hadoop.hbase.replication.*;
[ "java.io", "java.util", "org.apache.hadoop" ]
java.io; java.util; org.apache.hadoop;
2,668,844
public IgniteConfiguration setIndexingSpi(IndexingSpi indexingSpi) { this.indexingSpi = indexingSpi; return this; }
IgniteConfiguration function(IndexingSpi indexingSpi) { this.indexingSpi = indexingSpi; return this; }
/** * Sets fully configured instances of {@link IndexingSpi}. * * @param indexingSpi Fully configured instance of {@link IndexingSpi}. * @see IgniteConfiguration#getIndexingSpi() * @return {@code this} for chaining. */
Sets fully configured instances of <code>IndexingSpi</code>
setIndexingSpi
{ "repo_name": "agura/incubator-ignite", "path": "modules/core/src/main/java/org/apache/ignite/configuration/IgniteConfiguration.java", "license": "apache-2.0", "size": 83303 }
[ "org.apache.ignite.spi.indexing.IndexingSpi" ]
import org.apache.ignite.spi.indexing.IndexingSpi;
import org.apache.ignite.spi.indexing.*;
[ "org.apache.ignite" ]
org.apache.ignite;
111,135
public String findNode(String key) throws HashRingException { NodeStructure node = CLibrary.INSTANCE.hash_ring_find_node(ringPointer, key, key.length()); if(node == null) { throw new HashRingException("Failed to find node"); } try { return new String(node.name...
String function(String key) throws HashRingException { NodeStructure node = CLibrary.INSTANCE.hash_ring_find_node(ringPointer, key, key.length()); if(node == null) { throw new HashRingException(STR); } try { return new String(node.name.getByteArray(0, node.nameLength), "UTF-8"); } catch(UnsupportedEncodingException uee...
/** * Finds the node on the ring for the given key. * * @param key The key to search the ring with * @return The node that comes after the key on the ring * * @throws HashRingException if the node search couldn't be completed */
Finds the node on the ring for the given key
findNode
{ "repo_name": "chrismoos/hash-ring", "path": "lib/java/src/main/java/com/liveprofile/hashring/HashRing.java", "license": "apache-2.0", "size": 5838 }
[ "java.io.UnsupportedEncodingException" ]
import java.io.UnsupportedEncodingException;
import java.io.*;
[ "java.io" ]
java.io;
1,084,837
@Nonnull public Windows10EnterpriseModernAppManagementConfigurationRequest expand(@Nonnull final String value) { addExpandOption(value); return this; }
Windows10EnterpriseModernAppManagementConfigurationRequest function(@Nonnull final String value) { addExpandOption(value); return this; }
/** * Sets the expand clause for the request * * @param value the expand clause * @return the updated request */
Sets the expand clause for the request
expand
{ "repo_name": "microsoftgraph/msgraph-sdk-java", "path": "src/main/java/com/microsoft/graph/requests/Windows10EnterpriseModernAppManagementConfigurationRequest.java", "license": "mit", "size": 7985 }
[ "javax.annotation.Nonnull" ]
import javax.annotation.Nonnull;
import javax.annotation.*;
[ "javax.annotation" ]
javax.annotation;
2,547,616
public ShareBlock initWechat(@NonNull String wechatAppId, @NonNull String wechatSecret) { mWechatAppId = wechatAppId; mWechatSecret = wechatSecret; return this; } private String mWeiboAppId; private String mWeiboRedirectUrl; private String mWeiboScope;
ShareBlock function(@NonNull String wechatAppId, @NonNull String wechatSecret) { mWechatAppId = wechatAppId; mWechatSecret = wechatSecret; return this; } private String mWeiboAppId; private String mWeiboRedirectUrl; private String mWeiboScope;
/** * init wechat config */
init wechat config
initWechat
{ "repo_name": "JunnerMaterial/ShareLoginLib", "path": "share/src/main/java/com/liulishuo/share/ShareBlock.java", "license": "mit", "size": 3744 }
[ "android.support.annotation.NonNull" ]
import android.support.annotation.NonNull;
import android.support.annotation.*;
[ "android.support" ]
android.support;
249,329
@Indexable(type = IndexableType.REINDEX) public Dossier addDossier( long organizationId, long dossierProcId, String govAgencyId, String govAgencyName, String subjectId, String subjectType, String subjectName, String address, String cityNo, String cityName, String districtNo, Str...
@Indexable(type = IndexableType.REINDEX) Dossier function( long organizationId, long dossierProcId, String govAgencyId, String govAgencyName, String subjectId, String subjectType, String subjectName, String address, String cityNo, String cityName, String districtNo, String districtName, String wardNo, String wardName, ...
/** * Add dossier * * Version: OEP 2.0 * * History: * DATE AUTHOR DESCRIPTION * ------------------------------------------------- * 21-September-2015 trungdk Create new * @param * @return: new dossier */
Add dossier Version: OEP 2.0 History: DATE AUTHOR DESCRIPTION ------------------------------------------------- 21-September-2015 trungdk Create new
addDossier
{ "repo_name": "openegovplatform/OEPv2", "path": "oep-dossier-portlet/docroot/WEB-INF/src/org/oep/dossiermgt/service/impl/DossierLocalServiceImpl.java", "license": "apache-2.0", "size": 11975 }
[ "com.liferay.portal.kernel.exception.PortalException", "com.liferay.portal.kernel.exception.SystemException", "com.liferay.portal.kernel.search.Indexable", "com.liferay.portal.kernel.search.IndexableType", "com.liferay.portal.kernel.uuid.PortalUUIDUtil", "com.liferay.portal.service.ServiceContext", "jav...
import com.liferay.portal.kernel.exception.PortalException; import com.liferay.portal.kernel.exception.SystemException; import com.liferay.portal.kernel.search.Indexable; import com.liferay.portal.kernel.search.IndexableType; import com.liferay.portal.kernel.uuid.PortalUUIDUtil; import com.liferay.portal.service.Servic...
import com.liferay.portal.kernel.exception.*; import com.liferay.portal.kernel.search.*; import com.liferay.portal.kernel.uuid.*; import com.liferay.portal.service.*; import java.util.*; import org.oep.dossiermgt.model.*;
[ "com.liferay.portal", "java.util", "org.oep.dossiermgt" ]
com.liferay.portal; java.util; org.oep.dossiermgt;
1,074,794
public Bound<GenericRecord> withSchema(String schema) { return withSchema((new Schema.Parser()).parse(schema)); }
Bound<GenericRecord> function(String schema) { return withSchema((new Schema.Parser()).parse(schema)); }
/** * Returns a new {@link PTransform} that's like this one but * that reads Avro file(s) containing records of the specified schema * in a JSON-encoded string form. * * <p>Does not modify this object. */
Returns a new <code>PTransform</code> that's like this one but that reads Avro file(s) containing records of the specified schema in a JSON-encoded string form. Does not modify this object
withSchema
{ "repo_name": "josauder/AOP_incubator_beam", "path": "sdks/java/core/src/main/java/org/apache/beam/sdk/io/AvroIO.java", "license": "apache-2.0", "size": 36220 }
[ "org.apache.avro.Schema", "org.apache.avro.generic.GenericRecord" ]
import org.apache.avro.Schema; import org.apache.avro.generic.GenericRecord;
import org.apache.avro.*; import org.apache.avro.generic.*;
[ "org.apache.avro" ]
org.apache.avro;
2,569,303
void clearVideoSurface(@Nullable Surface surface);
void clearVideoSurface(@Nullable Surface surface);
/** * Clears the {@link Surface} onto which video is being rendered if it matches the one passed. * Else does nothing. * * @param surface The surface to clear. */
Clears the <code>Surface</code> onto which video is being rendered if it matches the one passed. Else does nothing
clearVideoSurface
{ "repo_name": "amzn/exoplayer-amazon-port", "path": "library/common/src/main/java/com/google/android/exoplayer2/Player.java", "license": "apache-2.0", "size": 62371 }
[ "android.view.Surface", "androidx.annotation.Nullable" ]
import android.view.Surface; import androidx.annotation.Nullable;
import android.view.*; import androidx.annotation.*;
[ "android.view", "androidx.annotation" ]
android.view; androidx.annotation;
1,578,743
Write withBigtableService(BigtableService bigtableService) { checkNotNull(bigtableService, "bigtableService"); return new Write(options, tableId, bigtableService); }
Write withBigtableService(BigtableService bigtableService) { checkNotNull(bigtableService, STR); return new Write(options, tableId, bigtableService); }
/** * Returns a new {@link BigtableIO.Write} that will write using the given Cloud Bigtable * service implementation. * * <p>This is used for testing. * * <p>Does not modify this object. */
Returns a new <code>BigtableIO.Write</code> that will write using the given Cloud Bigtable service implementation. This is used for testing. Does not modify this object
withBigtableService
{ "repo_name": "sammcveety/DataflowJavaSDK", "path": "sdk/src/main/java/com/google/cloud/dataflow/sdk/io/bigtable/BigtableIO.java", "license": "apache-2.0", "size": 41403 }
[ "com.google.common.base.Preconditions" ]
import com.google.common.base.Preconditions;
import com.google.common.base.*;
[ "com.google.common" ]
com.google.common;
97,655
public void sort(List list, boolean distinct) { if ((list != null) && !list.isEmpty()) { int size = list.size(); HashMap sortValues = new HashMap(size); for (int i = 0; i < size; i++) { Object object = list.get(i); if (object instanceof N...
void function(List list, boolean distinct) { if ((list != null) && !list.isEmpty()) { int size = list.size(); HashMap sortValues = new HashMap(size); for (int i = 0; i < size; i++) { Object object = list.get(i); if (object instanceof Node) { Node node = (Node) object; Object expression = getCompareValue(node); sortValu...
/** * <p> * <code>sort</code> sorts the given List of Nodes using this XPath * expression as a {@link Comparator}and optionally removing duplicates. * </p> * * @param list * is the list of Nodes to sort * @param distinct * if true then duplicate values...
<code>sort</code> sorts the given List of Nodes using this XPath expression as a <code>Comparator</code>and optionally removing duplicates.
sort
{ "repo_name": "raedle/univis", "path": "lib/dom4j-1.6.1/src/org/dom4j/xpath/DefaultXPath.java", "license": "lgpl-2.1", "size": 11677 }
[ "java.util.HashMap", "java.util.List", "org.dom4j.Node" ]
import java.util.HashMap; import java.util.List; import org.dom4j.Node;
import java.util.*; import org.dom4j.*;
[ "java.util", "org.dom4j" ]
java.util; org.dom4j;
380,622
static String getString(ReadableArray array, int index, String defaultValue) { if (array == null){ return defaultValue; } try { ReadableType type = array.getType(index); switch (type) { case Number: double value = array....
static String getString(ReadableArray array, int index, String defaultValue) { if (array == null){ return defaultValue; } try { ReadableType type = array.getType(index); switch (type) { case Number: double value = array.getDouble(index); if (value == (long) value) { return String.valueOf((long) value); } else { return ...
/** * Returns the value at {@code index} if it exists, coercing it if * necessary. */
Returns the value at index if it exists, coercing it if necessary
getString
{ "repo_name": "andpor/react-native-sqlite-storage", "path": "platforms/android/src/main/java/org/pgsqlite/SQLitePluginConverter.java", "license": "mit", "size": 7088 }
[ "com.facebook.react.bridge.NoSuchKeyException", "com.facebook.react.bridge.ReadableArray", "com.facebook.react.bridge.ReadableType" ]
import com.facebook.react.bridge.NoSuchKeyException; import com.facebook.react.bridge.ReadableArray; import com.facebook.react.bridge.ReadableType;
import com.facebook.react.bridge.*;
[ "com.facebook.react" ]
com.facebook.react;
2,037,030
public void addPropertyChangeListener(IPropertyChangeListener listener);
void function(IPropertyChangeListener listener);
/** * Adds a property change listener to this action. Has no effect if an * identical listener is already registered. * * @param listener * a property change listener */
Adds a property change listener to this action. Has no effect if an identical listener is already registered
addPropertyChangeListener
{ "repo_name": "ghillairet/gef-gwt", "path": "src/main/java/org/eclipse/jface/action/IAction.java", "license": "epl-1.0", "size": 17313 }
[ "org.eclipse.jface.util.IPropertyChangeListener" ]
import org.eclipse.jface.util.IPropertyChangeListener;
import org.eclipse.jface.util.*;
[ "org.eclipse.jface" ]
org.eclipse.jface;
2,461,807
public JobExecutionResult getLastJobExecutionResult(){ return this.lastJobExecutionResult; } // -------------------------------------------------------------------------------------------- // Session Management // --------------------------------------------------------------------------------------------
JobExecutionResult function(){ return this.lastJobExecutionResult; }
/** * Returns the {@link org.apache.flink.api.common.JobExecutionResult} of the last executed job. * * @return The execution result from the latest job execution. */
Returns the <code>org.apache.flink.api.common.JobExecutionResult</code> of the last executed job
getLastJobExecutionResult
{ "repo_name": "hongyuhong/flink", "path": "flink-java/src/main/java/org/apache/flink/api/java/ExecutionEnvironment.java", "license": "apache-2.0", "size": 62054 }
[ "org.apache.flink.api.common.JobExecutionResult" ]
import org.apache.flink.api.common.JobExecutionResult;
import org.apache.flink.api.common.*;
[ "org.apache.flink" ]
org.apache.flink;
2,851,089
protected void doResolve(String inetHost, DnsRecord[] additionals, Promise<InetAddress> promise, DnsCache resolveCache) throws Exception { if (inetHost == null || inetHost.isEmpty()) { // If an empty hostname ...
void function(String inetHost, DnsRecord[] additionals, Promise<InetAddress> promise, DnsCache resolveCache) throws Exception { if (inetHost == null inetHost.isEmpty()) { promise.setSuccess(loopbackAddress()); return; } final byte[] bytes = NetUtil.createByteArrayFromIpAddressString(inetHost); if (bytes != null) { prom...
/** * Hook designed for extensibility so one can pass a different cache on each resolution attempt * instead of using the global one. */
Hook designed for extensibility so one can pass a different cache on each resolution attempt instead of using the global one
doResolve
{ "repo_name": "Spikhalskiy/netty", "path": "resolver-dns/src/main/java/io/netty/resolver/dns/DnsNameResolver.java", "license": "apache-2.0", "size": 67724 }
[ "io.netty.handler.codec.dns.DnsRecord", "io.netty.util.NetUtil", "io.netty.util.concurrent.Promise", "java.net.InetAddress" ]
import io.netty.handler.codec.dns.DnsRecord; import io.netty.util.NetUtil; import io.netty.util.concurrent.Promise; import java.net.InetAddress;
import io.netty.handler.codec.dns.*; import io.netty.util.*; import io.netty.util.concurrent.*; import java.net.*;
[ "io.netty.handler", "io.netty.util", "java.net" ]
io.netty.handler; io.netty.util; java.net;
904,383
public void registerTaskType(String taskType) throws TaskException;
void function(String taskType) throws TaskException;
/** * This method registers a task type in the server, * this must be done for the task managers for the current tenant * to be started up immediately. * @param taskType The task type * @throws TaskException */
This method registers a task type in the server, this must be done for the task managers for the current tenant to be started up immediately
registerTaskType
{ "repo_name": "Gothami/carbon-commons", "path": "components/ntask/org.wso2.carbon.ntask.core/src/main/java/org/wso2/carbon/ntask/core/service/TaskService.java", "license": "apache-2.0", "size": 3173 }
[ "org.wso2.carbon.ntask.common.TaskException" ]
import org.wso2.carbon.ntask.common.TaskException;
import org.wso2.carbon.ntask.common.*;
[ "org.wso2.carbon" ]
org.wso2.carbon;
551,163
public static final <R extends Reader> void read(final ReaderFactory<R> rf, final ReaderCallback<R> rc) throws IOException { R r = null; try { r = rf.reader(); rc.read(r); } finally { IOUtils.closeQuietly(r); } }
static final <R extends Reader> void function(final ReaderFactory<R> rf, final ReaderCallback<R> rc) throws IOException { R r = null; try { r = rf.reader(); rc.read(r); } finally { IOUtils.closeQuietly(r); } }
/** * Executes the given callback to read data from the reader generated by the given factory. * * @param <R> the Reader sub-type being used * @param rf the ReaderFactory * @param rc the ReaderCallback * @throws IOException if there is a problem reading the data */
Executes the given callback to read data from the reader generated by the given factory
read
{ "repo_name": "cjstehno/codeperks", "path": "src/main/java/com/stehno/codeperks/io/IoTemplate.java", "license": "apache-2.0", "size": 5341 }
[ "java.io.IOException", "java.io.Reader", "org.apache.commons.io.IOUtils" ]
import java.io.IOException; import java.io.Reader; import org.apache.commons.io.IOUtils;
import java.io.*; import org.apache.commons.io.*;
[ "java.io", "org.apache.commons" ]
java.io; org.apache.commons;
119,515
public static void setLogOutStreamFile(String path) { File f = new File(path); try { LogOutStream = new PrintStream(new FileOutputStream(f)); } catch (Exception e) { System.err.println("Failed to open '" + f.getAbsolutePath() + "' for writing, reverting to standard out."); LogOutStream = S...
static void function(String path) { File f = new File(path); try { LogOutStream = new PrintStream(new FileOutputStream(f)); } catch (Exception e) { System.err.println(STR + f.getAbsolutePath() + STR); LogOutStream = System.out; } }
/** * Redirect output stream to a file * * @param path * Path to output file */
Redirect output stream to a file
setLogOutStreamFile
{ "repo_name": "Progressive-Learning-Platform/PLPTool", "path": "src/plptool/Msg.java", "license": "gpl-3.0", "size": 13061 }
[ "java.io.File", "java.io.FileOutputStream", "java.io.PrintStream" ]
import java.io.File; import java.io.FileOutputStream; import java.io.PrintStream;
import java.io.*;
[ "java.io" ]
java.io;
1,511,610
public void setDbFields(VulnerabilityPojo vuln, ComponentUsePojo compUse) throws SQLException { setDefaults(vuln); addStatus(vuln, compUse); addRemediationDates(compUse, vuln); }
void function(VulnerabilityPojo vuln, ComponentUsePojo compUse) throws SQLException { setDefaults(vuln); addStatus(vuln, compUse); addRemediationDates(compUse, vuln); }
/** * Use this to set on a new vulnerability all fields fetched FROM DB * * @param vuln * @param compUse * @throws SQLException */
Use this to set on a new vulnerability all fields fetched FROM DB
setDbFields
{ "repo_name": "blackducksoftware/common-framework", "path": "src/main/java/com/blackducksoftware/tools/commonframework/standard/codecenter/dao/CodeCenter6_6_1DbDao.java", "license": "apache-2.0", "size": 20138 }
[ "com.blackducksoftware.tools.commonframework.standard.codecenter.pojo.ComponentUsePojo", "com.blackducksoftware.tools.commonframework.standard.codecenter.pojo.VulnerabilityPojo", "java.sql.SQLException" ]
import com.blackducksoftware.tools.commonframework.standard.codecenter.pojo.ComponentUsePojo; import com.blackducksoftware.tools.commonframework.standard.codecenter.pojo.VulnerabilityPojo; import java.sql.SQLException;
import com.blackducksoftware.tools.commonframework.standard.codecenter.pojo.*; import java.sql.*;
[ "com.blackducksoftware.tools", "java.sql" ]
com.blackducksoftware.tools; java.sql;
807,563
@Override public @NotNull IntegratorMode getIntegratorMode() { return getIntegratorMode(currentPage); }
@NotNull IntegratorMode function() { return getIntegratorMode(currentPage); }
/** * Get integrator mode configured for the current page. * @return Integrator mode (simple or extended) */
Get integrator mode configured for the current page
getIntegratorMode
{ "repo_name": "cnagel/wcm-io-handler", "path": "url/src/main/java/io/wcm/handler/url/integrator/impl/IntegratorHandlerImpl.java", "license": "apache-2.0", "size": 7618 }
[ "io.wcm.handler.url.integrator.IntegratorMode", "org.jetbrains.annotations.NotNull" ]
import io.wcm.handler.url.integrator.IntegratorMode; import org.jetbrains.annotations.NotNull;
import io.wcm.handler.url.integrator.*; import org.jetbrains.annotations.*;
[ "io.wcm.handler", "org.jetbrains.annotations" ]
io.wcm.handler; org.jetbrains.annotations;
317,918
RBucketsReactive getBuckets(Codec codec);
RBucketsReactive getBuckets(Codec codec);
/** * Returns interface for mass operations with Bucket objects * using provided codec for object. * * @param codec - codec for bucket objects * @return Buckets */
Returns interface for mass operations with Bucket objects using provided codec for object
getBuckets
{ "repo_name": "mrniko/redisson", "path": "redisson/src/main/java/org/redisson/api/RedissonReactiveClient.java", "license": "apache-2.0", "size": 25358 }
[ "org.redisson.client.codec.Codec" ]
import org.redisson.client.codec.Codec;
import org.redisson.client.codec.*;
[ "org.redisson.client" ]
org.redisson.client;
1,457,109
EClass getRoleLink();
EClass getRoleLink();
/** * Returns the meta object for class '{@link org.openhealthtools.mdht.uml.hl7.rim.RoleLink <em>Role Link</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for class '<em>Role Link</em>'. * @see org.openhealthtools.mdht.uml.hl7.rim.RoleLink * @generated */
Returns the meta object for class '<code>org.openhealthtools.mdht.uml.hl7.rim.RoleLink Role Link</code>'.
getRoleLink
{ "repo_name": "drbgfc/mdht", "path": "cda/plugins/org.openhealthtools.mdht.uml.hl7.rim/src/org/openhealthtools/mdht/uml/hl7/rim/RIMPackage.java", "license": "epl-1.0", "size": 12211 }
[ "org.eclipse.emf.ecore.EClass" ]
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
1,700,372
public Uri insertItemWithRelation(SQLiteDatabase db, ContentProvider provider, Uri parentChildDir, ContentValues values, IdenticalChildFinder childFinder) { final Uri parent = ProviderUtils.removeLastPathSegment(parentChildDir); final long parentId = ContentUris.parseId(parent); Uri newItem; db.begin...
Uri function(SQLiteDatabase db, ContentProvider provider, Uri parentChildDir, ContentValues values, IdenticalChildFinder childFinder) { final Uri parent = ProviderUtils.removeLastPathSegment(parentChildDir); final long parentId = ContentUris.parseId(parent); Uri newItem; db.beginTransaction(); try { if (childFinder != ...
/** * Inserts a child into the database and adds a relation to its parent. If the item described by values is already present, only adds the relation. * * @param db * @param uri URI to insert into. This must be a be a hierarchical URI that points to the directory of the desired parent's children. Eg. "/itin...
Inserts a child into the database and adds a relation to its parent. If the item described by values is already present, only adds the relation
insertItemWithRelation
{ "repo_name": "mitmel/Locast-Android", "path": "src/edu/mit/mobile/android/content/ManyToMany.java", "license": "gpl-2.0", "size": 12976 }
[ "android.content.ContentProvider", "android.content.ContentUris", "android.content.ContentValues", "android.database.sqlite.SQLiteDatabase", "android.net.Uri" ]
import android.content.ContentProvider; import android.content.ContentUris; import android.content.ContentValues; import android.database.sqlite.SQLiteDatabase; import android.net.Uri;
import android.content.*; import android.database.sqlite.*; import android.net.*;
[ "android.content", "android.database", "android.net" ]
android.content; android.database; android.net;
1,517,551
public void initializePackageContents() { if (isInitialized) return; isInitialized = true; // Initialize package setName(eNAME); setNsPrefix(eNS_PREFIX); setNsURI(eNS_URI); // Create type parameters // Set bounds for type parameters // Add supertypes to classes syntaxItemEClass....
void function() { if (isInitialized) return; isInitialized = true; setName(eNAME); setNsPrefix(eNS_PREFIX); setNsURI(eNS_URI); syntaxItemEClass.getESuperTypes().add(this.getRuleItem()); terminalItemEClass.getESuperTypes().add(this.getSyntaxItem()); nonTerminalItemEClass.getESuperTypes().add(this.getSyntaxItem()); setVa...
/** * Complete the initialization of the package and its meta-model. This * method is guarded to have no affect on any invocation but its first. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */
Complete the initialization of the package and its meta-model. This method is guarded to have no affect on any invocation but its first.
initializePackageContents
{ "repo_name": "balazsgrill/temon", "path": "hu.temon/src/hu/temon/grammar/impl/GrammarPackageImpl.java", "license": "epl-1.0", "size": 24001 }
[ "hu.temon.grammar.GrammarModel", "hu.temon.grammar.NonTerminalItem", "hu.temon.grammar.Pop", "hu.temon.grammar.Push", "hu.temon.grammar.Replace", "hu.temon.grammar.Rule", "hu.temon.grammar.RuleItem", "hu.temon.grammar.SetValue", "hu.temon.grammar.SyntaxItem", "hu.temon.grammar.Terminal", "hu.tem...
import hu.temon.grammar.GrammarModel; import hu.temon.grammar.NonTerminalItem; import hu.temon.grammar.Pop; import hu.temon.grammar.Push; import hu.temon.grammar.Replace; import hu.temon.grammar.Rule; import hu.temon.grammar.RuleItem; import hu.temon.grammar.SetValue; import hu.temon.grammar.SyntaxItem; import hu.temon...
import hu.temon.grammar.*;
[ "hu.temon.grammar" ]
hu.temon.grammar;
2,761,902
@Test public void testAutoLinkAccountWithBroker() { testingClient.server(bc.consumerRealmName()).run(configureAutoLinkFlow(bc.getIDPAlias())); driver.navigate().to(getAccountUrl(getConsumerRoot(), bc.consumerRealmName())); logInWithBroker(bc); RealmResource realm = adminClient....
void function() { testingClient.server(bc.consumerRealmName()).run(configureAutoLinkFlow(bc.getIDPAlias())); driver.navigate().to(getAccountUrl(getConsumerRoot(), bc.consumerRealmName())); logInWithBroker(bc); RealmResource realm = adminClient.realm(bc.consumerRealmName()); assertNumFederatedIdentities(realm.users().se...
/** * Tests that user can link federated identity with existing brokered * account without prompt (KEYCLOAK-7270). */
Tests that user can link federated identity with existing brokered account without prompt (KEYCLOAK-7270)
testAutoLinkAccountWithBroker
{ "repo_name": "vmuzikar/keycloak", "path": "testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/broker/AbstractFirstBrokerLoginTest.java", "license": "apache-2.0", "size": 47303 }
[ "org.keycloak.admin.client.resource.RealmResource" ]
import org.keycloak.admin.client.resource.RealmResource;
import org.keycloak.admin.client.resource.*;
[ "org.keycloak.admin" ]
org.keycloak.admin;
1,049,731
@Transactional(propagation = Propagation.REQUIRED, readOnly = false, rollbackFor = Exception.class) public E update(E e) throws ServiceException;
@Transactional(propagation = Propagation.REQUIRED, readOnly = false, rollbackFor = Exception.class) E function(E e) throws ServiceException;
/** * Update e. * * @param e the e * @return the e * @throws ServiceException the service exception */
Update e
update
{ "repo_name": "forsrc/MyStudy", "path": "src/main/java/com/forsrc/springmvc/restful/base/service/RestfulService.java", "license": "apache-2.0", "size": 2258 }
[ "com.forsrc.exception.ServiceException", "org.springframework.transaction.annotation.Propagation", "org.springframework.transaction.annotation.Transactional" ]
import com.forsrc.exception.ServiceException; import org.springframework.transaction.annotation.Propagation; import org.springframework.transaction.annotation.Transactional;
import com.forsrc.exception.*; import org.springframework.transaction.annotation.*;
[ "com.forsrc.exception", "org.springframework.transaction" ]
com.forsrc.exception; org.springframework.transaction;
2,165,914
public JToolBar getCreateDiagramToolbar() { return createDiagramToolbar; }
JToolBar function() { return createDiagramToolbar; }
/** * Get the create diagram toolbar. * * @return Value of property _createDiagramToolbar. */
Get the create diagram toolbar
getCreateDiagramToolbar
{ "repo_name": "carvalhomb/tsmells", "path": "sample/argouml/argouml/org/argouml/ui/cmd/GenericArgoMenuBar.java", "license": "gpl-2.0", "size": 30333 }
[ "javax.swing.JToolBar" ]
import javax.swing.JToolBar;
import javax.swing.*;
[ "javax.swing" ]
javax.swing;
2,221,027
public List<String> getSubSitePaths(CmsObject cms, String subSiteRoot) { List<String> result = new ArrayList<String>(); String normalizedRootPath = CmsStringUtil.joinPaths("/", subSiteRoot, "/"); CmsADEConfigCacheState state = getCacheState(isOnline(cms)); Set<String> siteConfigurat...
List<String> function(CmsObject cms, String subSiteRoot) { List<String> result = new ArrayList<String>(); String normalizedRootPath = CmsStringUtil.joinPaths("/", subSiteRoot, "/"); CmsADEConfigCacheState state = getCacheState(isOnline(cms)); Set<String> siteConfigurationPaths = state.getSiteConfigurationPaths(); for (...
/** * Returns all sub sites below the given path.<p> * * @param cms the cms context * @param subSiteRoot the sub site root path * * @return the sub site root paths */
Returns all sub sites below the given path
getSubSitePaths
{ "repo_name": "ggiudetti/opencms-core", "path": "src/org/opencms/ade/configuration/CmsADEManager.java", "license": "lgpl-2.1", "size": 50482 }
[ "java.util.ArrayList", "java.util.List", "java.util.Set", "org.opencms.file.CmsObject", "org.opencms.util.CmsStringUtil" ]
import java.util.ArrayList; import java.util.List; import java.util.Set; import org.opencms.file.CmsObject; import org.opencms.util.CmsStringUtil;
import java.util.*; import org.opencms.file.*; import org.opencms.util.*;
[ "java.util", "org.opencms.file", "org.opencms.util" ]
java.util; org.opencms.file; org.opencms.util;
548,150
static void setQuota(FSDirectory fsd, String src, long nsQuota, long ssQuota, StorageType type) throws IOException { FSPermissionChecker pc = fsd.getPermissionChecker(); if (fsd.isPermissionEnabled()) { pc.checkSuperuserPrivilege(); } fsd.writeLock(); try { INodesInPath iip = fs...
static void setQuota(FSDirectory fsd, String src, long nsQuota, long ssQuota, StorageType type) throws IOException { FSPermissionChecker pc = fsd.getPermissionChecker(); if (fsd.isPermissionEnabled()) { pc.checkSuperuserPrivilege(); } fsd.writeLock(); try { INodesInPath iip = fsd.resolvePath(pc, src, DirOp.WRITE); INod...
/** * Set the namespace, storagespace and typespace quota for a directory. * * Note: This does not support ".inodes" relative path. */
Set the namespace, storagespace and typespace quota for a directory. Note: This does not support ".inodes" relative path
setQuota
{ "repo_name": "soumabrata-chakraborty/hadoop", "path": "hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSDirAttrOp.java", "license": "apache-2.0", "size": 18825 }
[ "java.io.IOException", "org.apache.hadoop.fs.StorageType", "org.apache.hadoop.hdfs.server.namenode.FSDirectory" ]
import java.io.IOException; import org.apache.hadoop.fs.StorageType; import org.apache.hadoop.hdfs.server.namenode.FSDirectory;
import java.io.*; import org.apache.hadoop.fs.*; import org.apache.hadoop.hdfs.server.namenode.*;
[ "java.io", "org.apache.hadoop" ]
java.io; org.apache.hadoop;
442,887
public Color getReferenceLineColor(){ return this.referenceLineColor; }
Color function(){ return this.referenceLineColor; }
/** * Gets color of reference lines on the graph area. * @return the color of the reference lines on the graph area */
Gets color of reference lines on the graph area
getReferenceLineColor
{ "repo_name": "richardfearn/diirt", "path": "graphene/graphene/src/main/java/org/diirt/graphene/Graph2DRendererUpdate.java", "license": "mit", "size": 17893 }
[ "java.awt.Color" ]
import java.awt.Color;
import java.awt.*;
[ "java.awt" ]
java.awt;
1,060,329
@ServiceMethod(returns = ReturnType.SINGLE) private Mono<Response<StorageAccountInner>> getByResourceGroupWithResponseAsync( String resourceGroupName, String accountName, StorageAccountExpand expand, Context context) { if (this.client.getEndpoint() == null) { return Mono ...
@ServiceMethod(returns = ReturnType.SINGLE) Mono<Response<StorageAccountInner>> function( String resourceGroupName, String accountName, StorageAccountExpand expand, Context context) { if (this.client.getEndpoint() == null) { return Mono .error( new IllegalArgumentException( STR)); } if (resourceGroupName == null) { ret...
/** * Returns the properties for the specified storage account including but not limited to name, SKU name, location, * and account status. The ListKeys operation should be used to retrieve storage keys. * * @param resourceGroupName The name of the resource group within the user's subscription. The ...
Returns the properties for the specified storage account including but not limited to name, SKU name, location, and account status. The ListKeys operation should be used to retrieve storage keys
getByResourceGroupWithResponseAsync
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/resourcemanager/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/implementation/StorageAccountsClientImpl.java", "license": "mit", "size": 213141 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.http.rest.Response", "com.azure.core.util.Context", "com.azure.resourcemanager.storage.fluent.models.StorageAccountInner", "com.azure.resourcemanager.storage.models.StorageAccountExpand" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.Response; import com.azure.core.util.Context; import com.azure.resourcemanager.storage.fluent.models.StorageAccountInner; import com.azure.resourcemanager.storage.models.StorageAccountExpand;
import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.core.util.*; import com.azure.resourcemanager.storage.fluent.models.*; import com.azure.resourcemanager.storage.models.*;
[ "com.azure.core", "com.azure.resourcemanager" ]
com.azure.core; com.azure.resourcemanager;
2,333,671
public Subject getSubject() { return subject; }
Subject function() { return subject; }
/** * Returns the subject for this Job. * * @return The subject for this Job */
Returns the subject for this Job
getSubject
{ "repo_name": "jensopetersen/exist", "path": "src/org/exist/scheduler/UserXQueryJob.java", "license": "lgpl-2.1", "size": 9054 }
[ "org.exist.security.Subject" ]
import org.exist.security.Subject;
import org.exist.security.*;
[ "org.exist.security" ]
org.exist.security;
1,792,215
public void linkValueUsingAColumnCopy(Column column, SimpleValue value) { initMappingColumn( //column.getName(), column.getQuotedName(), null, column.getLength(), column.getPrecision(), column.getScale(), getMappingColumn().isNullable(), column.getSqlType(), getMappingColumn().isUni...
void function(Column column, SimpleValue value) { initMappingColumn( column.getQuotedName(), null, column.getLength(), column.getPrecision(), column.getScale(), getMappingColumn().isNullable(), column.getSqlType(), getMappingColumn().isUnique(), false ); linkWithValue( value ); }
/** * used for mappedBy cases */
used for mappedBy cases
linkValueUsingAColumnCopy
{ "repo_name": "codeApeFromChina/resource", "path": "frame_packages/java_libs/hibernate-distribution-3.6.10.Final/project/hibernate-core/src/main/java/org/hibernate/cfg/Ejb3JoinColumn.java", "license": "unlicense", "size": 23783 }
[ "org.hibernate.mapping.Column", "org.hibernate.mapping.SimpleValue" ]
import org.hibernate.mapping.Column; import org.hibernate.mapping.SimpleValue;
import org.hibernate.mapping.*;
[ "org.hibernate.mapping" ]
org.hibernate.mapping;
879,190
@Bean public LocalValidatorFactoryBean validator() { return new LocalValidatorFactoryBean(); }
@Bean LocalValidatorFactoryBean function() { return new LocalValidatorFactoryBean(); }
/** The following validation-related beans are optional - only * required if JSR 303 validation is desired. For validation to * work, the @EnableDynamoDBRepositories must be configured with * a reference to DynamoDBOperations bean, rather than with * reference to AmazonDynamoDB client * */
The following validation-related beans are optional - only required if JSR 303 validation is desired. For validation to work, the @EnableDynamoDBRepositories must be configured with a reference to DynamoDBOperations bean, rather than with reference to AmazonDynamoDB client
validator
{ "repo_name": "las1991/spring-data-dynamodb-demo", "path": "src/main/java/com/sengled/rest/data/dynamodb/config/SpringDataDynamoDemoConfig.java", "license": "apache-2.0", "size": 4137 }
[ "org.springframework.context.annotation.Bean", "org.springframework.validation.beanvalidation.LocalValidatorFactoryBean" ]
import org.springframework.context.annotation.Bean; import org.springframework.validation.beanvalidation.LocalValidatorFactoryBean;
import org.springframework.context.annotation.*; import org.springframework.validation.beanvalidation.*;
[ "org.springframework.context", "org.springframework.validation" ]
org.springframework.context; org.springframework.validation;
1,390,890
public static ServiceReference getServiceReferenceByPID( ServiceContext serviceContext, String itf, String pid) { String filter = "(" + "service.pid" + "=" + pid + ")"; ServiceReference[] refs = getServiceReferences(serviceContext, itf, filter); if (refs == null) ...
static ServiceReference function( ServiceContext serviceContext, String itf, String pid) { String filter = "(" + STR + "=" + pid + ")"; ServiceReference[] refs = getServiceReferences(serviceContext, itf, filter); if (refs == null) { return null; } else if (refs.length == 1) { return refs[0]; } else { throw new IllegalS...
/** * Returns the service reference of the service registered in the specified * service context, offering the specified interface and having the given * persistent ID. * * @param serviceContext the service context in which services are searched. * @param itf the interface provided by the...
Returns the service reference of the service registered in the specified service context, offering the specified interface and having the given persistent ID
getServiceReferenceByPID
{ "repo_name": "boneman1231/org.apache.felix", "path": "trunk/ipojo/tests/api/src/test/java/org/apache/felix/ipojo/tests/api/IPOJOHelper.java", "license": "apache-2.0", "size": 29540 }
[ "org.apache.felix.ipojo.ServiceContext", "org.osgi.framework.ServiceReference" ]
import org.apache.felix.ipojo.ServiceContext; import org.osgi.framework.ServiceReference;
import org.apache.felix.ipojo.*; import org.osgi.framework.*;
[ "org.apache.felix", "org.osgi.framework" ]
org.apache.felix; org.osgi.framework;
1,214,734
public DoctorSBO getDoctor(String username); // Patient
DoctorSBO function(String username);
/** * Returns the doctor sbo for the given username. * * @param username * @return the doctor sbo, null, if not found */
Returns the doctor sbo for the given username
getDoctor
{ "repo_name": "hip4/patmon1", "path": "src/server/src/main/java/ch/bfh/ti/sed/patmon1/server/persistence/EntityManager.java", "license": "apache-2.0", "size": 3603 }
[ "ch.bfh.ti.sed.patmon1.server.model.sbo.DoctorSBO" ]
import ch.bfh.ti.sed.patmon1.server.model.sbo.DoctorSBO;
import ch.bfh.ti.sed.patmon1.server.model.sbo.*;
[ "ch.bfh.ti" ]
ch.bfh.ti;
1,879,069
@Transient public List getDetailList() { try { IManagerBean incomeDetailBean = BeanManager.getManagerBean(InvoiceDetail.class); Criteria criteria = new Criteria(); criteria.addEqualExpression(incomeDetailBean.getFieldName(IFinanceAlias.INVOICE_DETAIL_INVOICE_ID), getId()); return incomeDetailBea...
List function() { try { IManagerBean incomeDetailBean = BeanManager.getManagerBean(InvoiceDetail.class); Criteria criteria = new Criteria(); criteria.addEqualExpression(incomeDetailBean.getFieldName(IFinanceAlias.INVOICE_DETAIL_INVOICE_ID), getId()); return incomeDetailBean.getList(criteria); } catch (ManagerBeanExcept...
/** * Gets the detail list. Used in the reports * * @return the detail list */
Gets the detail list. Used in the reports
getDetailList
{ "repo_name": "Esleelkartea/aonGTA", "path": "aongta_v1.0.0_src/Fuentes y JavaDoc/aon-finance/src/com/code/aon/finance/Invoice.java", "license": "gpl-2.0", "size": 9860 }
[ "com.code.aon.common.BeanManager", "com.code.aon.common.IManagerBean", "com.code.aon.common.ManagerBeanException", "com.code.aon.finance.dao.IFinanceAlias", "com.code.aon.ql.Criteria", "java.util.List", "java.util.logging.Level" ]
import com.code.aon.common.BeanManager; import com.code.aon.common.IManagerBean; import com.code.aon.common.ManagerBeanException; import com.code.aon.finance.dao.IFinanceAlias; import com.code.aon.ql.Criteria; import java.util.List; import java.util.logging.Level;
import com.code.aon.common.*; import com.code.aon.finance.dao.*; import com.code.aon.ql.*; import java.util.*; import java.util.logging.*;
[ "com.code.aon", "java.util" ]
com.code.aon; java.util;
826,886
@Override public HeaderDefinition createHeader(BufferedImageContainer img) { HeaderDefinition result; BufferedImage image; double[] histo; int i; net.semanticmetadata.lire.imageanalysis.features.global.FCTH features; image = BufferedImageHelper.convert(img.getImage(), BufferedImag...
HeaderDefinition function(BufferedImageContainer img) { HeaderDefinition result; BufferedImage image; double[] histo; int i; net.semanticmetadata.lire.imageanalysis.features.global.FCTH features; image = BufferedImageHelper.convert(img.getImage(), BufferedImage.TYPE_3BYTE_BGR); features = new net.semanticmetadata.lire....
/** * Creates the header from a template image. * * @param img the image to act as a template * @return the generated header */
Creates the header from a template image
createHeader
{ "repo_name": "waikato-datamining/adams-base", "path": "adams-imaging/src/main/java/adams/data/lire/features/FCTH.java", "license": "gpl-3.0", "size": 6897 }
[ "java.awt.image.BufferedImage" ]
import java.awt.image.BufferedImage;
import java.awt.image.*;
[ "java.awt" ]
java.awt;
437,215
public static void bindProperty(Object key, Object target) { if (key == null) { throw new IllegalArgumentException("Parameter must not be null"); } if (getProperty(key) != null) { LOG.debug("Already bind [" + key + "] to thread [" + Thread.currentThread().get...
static void function(Object key, Object target) { if (key == null) { throw new IllegalArgumentException(STR); } if (getProperty(key) != null) { LOG.debug(STR + key + STR + Thread.currentThread().getName() + STR + getProperty(key) + STR + target == null ? "null" : target + "}"); throw new RuntimeException(STR + key + ST...
/** * Bind the object to thread. Store in to <code>Map</code> object. * * @param key * key of object * @param target * bind target */
Bind the object to thread. Store in to <code>Map</code> object
bindProperty
{ "repo_name": "qqming113/bi-platform", "path": "fileserver/src/main/java/com/baidu/rigel/biplatform/ma/utils/ThreadLocalResourceHolder.java", "license": "apache-2.0", "size": 4154 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
210,179
private void uploadFile(Composite uploadComp) { // Set cursor of wait while upload uploadComp.setCursor(org.eclipse.rwt.graphics.Graphics.getCursor(SWT.CURSOR_WAIT)); resultLable.setText(Resources.Frames.Document.Texts.FILE_UPLOAD_WAIT.getText()); final String url = startUpl...
void function(Composite uploadComp) { uploadComp.setCursor(org.eclipse.rwt.graphics.Graphics.getCursor(SWT.CURSOR_WAIT)); resultLable.setText(Resources.Frames.Document.Texts.FILE_UPLOAD_WAIT.getText()); final String url = startUploadReceiver(uploadComp); fileUpload.submit(url); resultLable.setText(Resources.Frames.Docu...
/** * Upload the selected file, when OK is pressed. * * @throws InterruptedException */
Upload the selected file, when OK is pressed
uploadFile
{ "repo_name": "prowim/prowim", "path": "prowim-portal/src/org/prowim/portal/view/document/UploadView.java", "license": "gpl-3.0", "size": 9025 }
[ "org.eclipse.swt.widgets.Composite", "org.prowim.datamodel.dms.Document", "org.prowim.portal.i18n.Resources" ]
import org.eclipse.swt.widgets.Composite; import org.prowim.datamodel.dms.Document; import org.prowim.portal.i18n.Resources;
import org.eclipse.swt.widgets.*; import org.prowim.datamodel.dms.*; import org.prowim.portal.i18n.*;
[ "org.eclipse.swt", "org.prowim.datamodel", "org.prowim.portal" ]
org.eclipse.swt; org.prowim.datamodel; org.prowim.portal;
2,175,921
private void forgetSelectable(SimpleSelectable ts) { // Either way, we're done with this one. ts.unregister(selector); synchronized (this) { inprogress.remove(ts.getIdentityReference()); } }
void function(SimpleSelectable ts) { ts.unregister(selector); synchronized (this) { inprogress.remove(ts.getIdentityReference()); } }
/** * Stop watching a given selectable. * * @param ts the selectable */
Stop watching a given selectable
forgetSelectable
{ "repo_name": "johnjianfang/jxse", "path": "src/main/java/net/jxta/endpoint/ListenerAdaptor.java", "license": "apache-2.0", "size": 17913 }
[ "net.jxta.util.SimpleSelectable" ]
import net.jxta.util.SimpleSelectable;
import net.jxta.util.*;
[ "net.jxta.util" ]
net.jxta.util;
1,894,720
public Location getLocation() { return location; }
Location function() { return location; }
/** * Returns the location where the explosion happened. * <p> * It is not possible to get this value from the Entity as the Entity no * longer exists in the world. * * @return The location of the explosion */
Returns the location where the explosion happened. It is not possible to get this value from the Entity as the Entity no longer exists in the world
getLocation
{ "repo_name": "Scrik/Cauldron-1", "path": "eclipse/cauldron/src/main/java/org/bukkit/event/entity/EntityExplodeEvent.java", "license": "gpl-3.0", "size": 2063 }
[ "org.bukkit.Location" ]
import org.bukkit.Location;
import org.bukkit.*;
[ "org.bukkit" ]
org.bukkit;
989,522
void setContent(final ItemStack[] items);
void setContent(final ItemStack[] items);
/** * Completely replaces the inventory's contents. Removes all existing * contents and replaces it with the ItemStacks given in the array. * * @param items A complete replacement for the contents; the length must * be less than or equal to {@link #size()}. * * @throws Il...
Completely replaces the inventory's contents. Removes all existing contents and replaces it with the ItemStacks given in the array
setContent
{ "repo_name": "sgdc3/Diorite", "path": "DioriteAPI/src/main/java/org/diorite/inventory/EntityEquipment.java", "license": "mit", "size": 5219 }
[ "org.diorite.inventory.item.ItemStack" ]
import org.diorite.inventory.item.ItemStack;
import org.diorite.inventory.item.*;
[ "org.diorite.inventory" ]
org.diorite.inventory;
2,146,386
protected XMLSignatureInput enginePerformTransform( XMLSignatureInput input, Transform transformObject ) throws IOException, CanonicalizationException, TransformationException { return enginePerformTransform(input, null, transformObject); }
XMLSignatureInput function( XMLSignatureInput input, Transform transformObject ) throws IOException, CanonicalizationException, TransformationException { return enginePerformTransform(input, null, transformObject); }
/** * Method enginePerformTransform * * @param input * @return {@link XMLSignatureInput} as the result of transformation * @inheritDoc * @throws CanonicalizationException * @throws IOException * @throws TransformationException */
Method enginePerformTransform
enginePerformTransform
{ "repo_name": "wangsongpeng/jdk-src", "path": "src/main/java/com/sun/org/apache/xml/internal/security/transforms/implementations/TransformBase64Decode.java", "license": "apache-2.0", "size": 7506 }
[ "com.sun.org.apache.xml.internal.security.c14n.CanonicalizationException", "com.sun.org.apache.xml.internal.security.signature.XMLSignatureInput", "com.sun.org.apache.xml.internal.security.transforms.Transform", "com.sun.org.apache.xml.internal.security.transforms.TransformationException", "java.io.IOExcept...
import com.sun.org.apache.xml.internal.security.c14n.CanonicalizationException; import com.sun.org.apache.xml.internal.security.signature.XMLSignatureInput; import com.sun.org.apache.xml.internal.security.transforms.Transform; import com.sun.org.apache.xml.internal.security.transforms.TransformationException; import ja...
import com.sun.org.apache.xml.internal.security.c14n.*; import com.sun.org.apache.xml.internal.security.signature.*; import com.sun.org.apache.xml.internal.security.transforms.*; import java.io.*;
[ "com.sun.org", "java.io" ]
com.sun.org; java.io;
1,401,113
public String getJvmJITCompilerName() throws SnmpStatusException { return JVM_MANAGEMENT_MIB_IMPL. validJavaObjectNameTC(getCompilationMXBean().getName()); }
String function() throws SnmpStatusException { return JVM_MANAGEMENT_MIB_IMPL. validJavaObjectNameTC(getCompilationMXBean().getName()); }
/** * Getter for the "JvmJITCompilerName" variable. */
Getter for the "JvmJITCompilerName" variable
getJvmJITCompilerName
{ "repo_name": "rokn/Count_Words_2015", "path": "testing/openjdk2/jdk/src/share/classes/sun/management/snmp/jvminstr/JvmCompilationImpl.java", "license": "mit", "size": 4469 }
[ "com.sun.jmx.snmp.SnmpStatusException" ]
import com.sun.jmx.snmp.SnmpStatusException;
import com.sun.jmx.snmp.*;
[ "com.sun.jmx" ]
com.sun.jmx;
2,077,848
public static String getAt(String text, IntRange range) { return getAt(text, (Range) range); }
static String function(String text, IntRange range) { return getAt(text, (Range) range); }
/** * Support the range subscript operator for String with IntRange * * @param text a String * @param range an IntRange * @return the resulting String * @since 1.0 */
Support the range subscript operator for String with IntRange
getAt
{ "repo_name": "jwagenleitner/incubator-groovy", "path": "src/main/java/org/codehaus/groovy/runtime/StringGroovyMethods.java", "license": "apache-2.0", "size": 164055 }
[ "groovy.lang.IntRange", "groovy.lang.Range" ]
import groovy.lang.IntRange; import groovy.lang.Range;
import groovy.lang.*;
[ "groovy.lang" ]
groovy.lang;
1,036,092
private static void saveBanList() { try { FileWriter outFile = new FileWriter("config/setting/netserver_banlist.cfg"); PrintWriter out = new PrintWriter(outFile); for(NetServerBan ban: banList) { out.println(ban.exportString()); } out.flush(); out.close(); log.info("Ban list...
static void function() { try { FileWriter outFile = new FileWriter(STR); PrintWriter out = new PrintWriter(outFile); for(NetServerBan ban: banList) { out.println(ban.exportString()); } out.flush(); out.close(); log.info(STR); } catch (Exception e) { log.error(STR, e); } }
/** * Write ban list to a file */
Write ban list to a file
saveBanList
{ "repo_name": "sammymax/nullpomino", "path": "src/mu/nu/nullpo/game/net/NetServer.java", "license": "bsd-3-clause", "size": 118621 }
[ "java.io.FileWriter", "java.io.PrintWriter" ]
import java.io.FileWriter; import java.io.PrintWriter;
import java.io.*;
[ "java.io" ]
java.io;
20,388
public View makeIndicator(LayoutInflater inflater, int index) { View tabIndicator = inflater.inflate(R.layout.hvp__tab_indicator, mTabHost.getTabWidget(), false); TextView title = (TextView) tabIndicator.findViewById(android.R.id.title); title.setText(mPagerAdapter.getPageTitle(index)); ...
View function(LayoutInflater inflater, int index) { View tabIndicator = inflater.inflate(R.layout.hvp__tab_indicator, mTabHost.getTabWidget(), false); TextView title = (TextView) tabIndicator.findViewById(android.R.id.title); title.setText(mPagerAdapter.getPageTitle(index)); return tabIndicator; }
/** * <p> * Construct the Tab view for the TabWidget. This should be fully populated with content *</p> * <p> * By default, this method will construct tabs that are themed like ActionBar tabs, * with the text set to the String returned by * {@link com.myriadmobile.libr...
Construct the Tab view for the TabWidget. This should be fully populated with content By default, this method will construct tabs that are themed like ActionBar tabs, with the text set to the String returned by <code>com.myriadmobile.library.heroviewpager.HeroPagerAdapter#getPageTitle(int)</code>.
makeIndicator
{ "repo_name": "myriadmobile/hero-viewpager", "path": "Library/src/main/java/com/myriadmobile/library/heroviewpager/HeroViewPagerActivity.java", "license": "mit", "size": 13162 }
[ "android.view.LayoutInflater", "android.view.View", "android.widget.TextView" ]
import android.view.LayoutInflater; import android.view.View; import android.widget.TextView;
import android.view.*; import android.widget.*;
[ "android.view", "android.widget" ]
android.view; android.widget;
754,952
public static boolean create(final Configuration conf, final FileSystem fs, final Path dstFamilyPath, final HRegionInfo hfileRegionInfo, final String hfileName) throws IOException { String linkedTable = hfileRegionInfo.getTableNameAsString(); String linkedRegion = hfileRegionInfo.getEncodedName();...
static boolean function(final Configuration conf, final FileSystem fs, final Path dstFamilyPath, final HRegionInfo hfileRegionInfo, final String hfileName) throws IOException { String linkedTable = hfileRegionInfo.getTableNameAsString(); String linkedRegion = hfileRegionInfo.getEncodedName(); return create(conf, fs, ds...
/** * Create a new HFileLink * * <p>It also adds a back-reference to the hfile back-reference directory * to simplify the reference-count and the cleaning process. * * @param conf {@link Configuration} to read for the archive directory name * @param fs {@link FileSystem} on which to write the HFile...
Create a new HFileLink It also adds a back-reference to the hfile back-reference directory to simplify the reference-count and the cleaning process
create
{ "repo_name": "JichengSong/hbase", "path": "src/main/java/org/apache/hadoop/hbase/io/HFileLink.java", "license": "apache-2.0", "size": 15930 }
[ "java.io.IOException", "org.apache.hadoop.conf.Configuration", "org.apache.hadoop.fs.FileSystem", "org.apache.hadoop.fs.Path", "org.apache.hadoop.hbase.HRegionInfo" ]
import java.io.IOException; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.FileSystem; import org.apache.hadoop.fs.Path; import org.apache.hadoop.hbase.HRegionInfo;
import java.io.*; import org.apache.hadoop.conf.*; import org.apache.hadoop.fs.*; import org.apache.hadoop.hbase.*;
[ "java.io", "org.apache.hadoop" ]
java.io; org.apache.hadoop;
1,819,441
@ApiModelProperty(value = "") public String getPassword() { return password; }
@ApiModelProperty(value = "") String function() { return password; }
/** * Get password * @return password **/
Get password
getPassword
{ "repo_name": "zzsoszz/swagger-demo", "path": "spring-server-generated/spring-server/src/main/java/io/swagger/model/User.java", "license": "apache-2.0", "size": 5188 }
[ "io.swagger.annotations.ApiModelProperty" ]
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.*;
[ "io.swagger.annotations" ]
io.swagger.annotations;
230,683
protected boolean handleDirtyConflict() { return MessageDialog.openQuestion (getSite().getShell(), getString("_UI_FileConflict_label"), getString("_WARN_FileConflict")); } public TransportationEditor() { super(); initializeEditingDomain(); }
boolean function() { return MessageDialog.openQuestion (getSite().getShell(), getString(STR), getString(STR)); } public TransportationEditor() { super(); initializeEditingDomain(); }
/** * Shows a dialog that asks if conflicting changes should be discarded. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */
Shows a dialog that asks if conflicting changes should be discarded.
handleDirtyConflict
{ "repo_name": "markus1978/citygml4emf", "path": "de.hub.citygml.emf.ecore.editor/src/net/opengis/citygml/transportation/presentation/TransportationEditor.java", "license": "apache-2.0", "size": 56558 }
[ "org.eclipse.jface.dialogs.MessageDialog" ]
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.jface.dialogs.*;
[ "org.eclipse.jface" ]
org.eclipse.jface;
1,033,239
public PropertyGenerator[] getPropertyGenerators() { PropertyGenerator[] pg = new PropertyGenerator[1]; pg[0] = new AffinePropertyGenerator(); return pg; }
PropertyGenerator[] function() { PropertyGenerator[] pg = new PropertyGenerator[1]; pg[0] = new AffinePropertyGenerator(); return pg; }
/** * Returns an array of <code>PropertyGenerators</code> implementing * property inheritance for the "Affine" operation. * * @return An array of property generators. */
Returns an array of <code>PropertyGenerators</code> implementing property inheritance for the "Affine" operation
getPropertyGenerators
{ "repo_name": "geosolutions-it/jai-ext", "path": "jt-affine/src/main/java/it/geosolutions/jaiext/affine/AffineDescriptor.java", "license": "apache-2.0", "size": 20826 }
[ "javax.media.jai.PropertyGenerator" ]
import javax.media.jai.PropertyGenerator;
import javax.media.jai.*;
[ "javax.media" ]
javax.media;
2,544,214
public InputStream getInputStream(String testDataPath) throws IOException { InputStream is = System.in; if(testDataPath != null) { File testData = new File(testDataPath); if(testData.exists()) { // The testDataPath points to an existing file, use it is = new File...
InputStream function(String testDataPath) throws IOException { InputStream is = System.in; if(testDataPath != null) { File testData = new File(testDataPath); if(testData.exists()) { is = new FileInputStream(testDataPath); } else { is = getClass().getResourceAsStream(testDataPath); } usingTestData = true; } return is; }
/** * Utility method for opening the input stream representing the hcidump raw output. * @param testDataPath - a file or resource path to use if not null. If null, System.in will be used. * @return the InputStream for the hcidump raw output * @throws IOException */
Utility method for opening the input stream representing the hcidump raw output
getInputStream
{ "repo_name": "starksm64/RaspberryPiBeaconParser", "path": "scanner/src/main/java/org/jboss/summit2015/beacon/scanner/AbstractParser.java", "license": "apache-2.0", "size": 2781 }
[ "java.io.File", "java.io.FileInputStream", "java.io.IOException", "java.io.InputStream" ]
import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream;
import java.io.*;
[ "java.io" ]
java.io;
1,033,325
synchronized Exception getClientCredentialException() { Exception result = null; for (Map.Entry<String, Exception> entry : exceptionMap.entrySet()) { if (entry.getValue() == null) { result = null; break; } else { result = entry.getValue(); } } return result; }
synchronized Exception getClientCredentialException() { Exception result = null; for (Map.Entry<String, Exception> entry : exceptionMap.entrySet()) { if (entry.getValue() == null) { result = null; break; } else { result = entry.getValue(); } } return result; }
/** * Returns the last SecurityException or GeneralSecurityException that * occurred when attempting to choose client credentials, or null if no * exception occurred. */
Returns the last SecurityException or GeneralSecurityException that occurred when attempting to choose client credentials, or null if no exception occurred
getClientCredentialException
{ "repo_name": "pfirmstone/JGDMS", "path": "JGDMS/jgdms-jeri/src/main/java/net/jini/jeri/ssl/ClientAuthManager.java", "license": "apache-2.0", "size": 12701 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
312,158
protected void setConnectionHeaders(HttpRequestBase request, URL url, HeaderManager headerManager, CacheManager cacheManager) { if (headerManager != null) { CollectionProperty headers = headerManager.getHeaders(); if (headers != null) { for (JMeterProperty jMeterPrope...
void function(HttpRequestBase request, URL url, HeaderManager headerManager, CacheManager cacheManager) { if (headerManager != null) { CollectionProperty headers = headerManager.getHeaders(); if (headers != null) { for (JMeterProperty jMeterProperty : headers) { org.apache.jmeter.protocol.http.control.Header header = (...
/** * Extracts all the required non-cookie headers for that particular URL request and * sets them in the <code>HttpMethod</code> passed in * * @param request * <code>HttpRequest</code> which represents the request * @param url * <code>URL</code> of the URL reque...
Extracts all the required non-cookie headers for that particular URL request and sets them in the <code>HttpMethod</code> passed in
setConnectionHeaders
{ "repo_name": "ubikloadpack/jmeter", "path": "src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHC4Impl.java", "license": "apache-2.0", "size": 84825 }
[ "org.apache.http.Header", "org.apache.http.client.methods.HttpRequestBase", "org.apache.jmeter.protocol.http.control.CacheManager", "org.apache.jmeter.protocol.http.control.HeaderManager", "org.apache.jmeter.protocol.http.util.HTTPConstants", "org.apache.jmeter.testelement.property.CollectionProperty", ...
import org.apache.http.Header; import org.apache.http.client.methods.HttpRequestBase; import org.apache.jmeter.protocol.http.control.CacheManager; import org.apache.jmeter.protocol.http.control.HeaderManager; import org.apache.jmeter.protocol.http.util.HTTPConstants; import org.apache.jmeter.testelement.property.Collec...
import org.apache.http.*; import org.apache.http.client.methods.*; import org.apache.jmeter.protocol.http.control.*; import org.apache.jmeter.protocol.http.util.*; import org.apache.jmeter.testelement.property.*;
[ "org.apache.http", "org.apache.jmeter" ]
org.apache.http; org.apache.jmeter;
2,354,466
public void testNullEnum() { String example = null; try { PermissionStatus temp = PermissionStatus.valueForString(example); assertNull("Result of valueForString should be null.", temp); } catch (NullPointerException exception) { fail("Null string throws Nu...
void function() { String example = null; try { PermissionStatus temp = PermissionStatus.valueForString(example); assertNull(STR, temp); } catch (NullPointerException exception) { fail(STR); } }
/** * Verifies that a null assignment is invalid. */
Verifies that a null assignment is invalid
testNullEnum
{ "repo_name": "smartdevicelink/sdl_android", "path": "android/sdl_android/src/androidTest/java/com/smartdevicelink/test/rpc/enums/PermissionStatusTests.java", "license": "bsd-3-clause", "size": 4442 }
[ "com.smartdevicelink.proxy.rpc.enums.PermissionStatus" ]
import com.smartdevicelink.proxy.rpc.enums.PermissionStatus;
import com.smartdevicelink.proxy.rpc.enums.*;
[ "com.smartdevicelink.proxy" ]
com.smartdevicelink.proxy;
1,999,869
public static UUID get(UUID namespace, String name) { try { final MessageDigest sha1Algorithm = MessageDigest.getInstance("SHA-1"); // Generate the digest. sha1Algorithm.reset(); if (namespace != null) { sha1Algorithm.update(getRawBytes(namespace)); } ...
static UUID function(UUID namespace, String name) { try { final MessageDigest sha1Algorithm = MessageDigest.getInstance("SHA-1"); sha1Algorithm.reset(); if (namespace != null) { sha1Algorithm.update(getRawBytes(namespace)); } sha1Algorithm.update(name.getBytes(ENCODING)); final byte[] sha1digest = sha1Algorithm.digest(...
/** * Gets the. * * @param namespace the namespace * @param name the name * @return the uuid */
Gets the
get
{ "repo_name": "OSEHRA/ISAAC", "path": "core/api/src/main/java/sh/isaac/api/util/UuidT5Generator.java", "license": "apache-2.0", "size": 11131 }
[ "java.io.UnsupportedEncodingException", "java.security.MessageDigest", "java.security.NoSuchAlgorithmException" ]
import java.io.UnsupportedEncodingException; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException;
import java.io.*; import java.security.*;
[ "java.io", "java.security" ]
java.io; java.security;
996,807
@Override public FMEFreeModel getFreeModel(VirtualModel virtualModel) { for (FMEFreeModel freeModel : getFreeModels()) { if (freeModel.getAccessedVirtualModel() == virtualModel) { return freeModel; } } return null; } }
FMEFreeModel function(VirtualModel virtualModel) { for (FMEFreeModel freeModel : getFreeModels()) { if (freeModel.getAccessedVirtualModel() == virtualModel) { return freeModel; } } return null; } }
/** * Return {@link FMEFreeModel} which access to supplied {@link VirtualModel} or null if no such free model exists * * @return */
Return <code>FMEFreeModel</code> which access to supplied <code>VirtualModel</code> or null if no such free model exists
getFreeModel
{ "repo_name": "openflexo-team/openflexo-modules", "path": "freemodellingeditor/src/main/java/org/openflexo/fme/model/FreeModellingProjectNature.java", "license": "gpl-3.0", "size": 10892 }
[ "org.openflexo.foundation.fml.VirtualModel" ]
import org.openflexo.foundation.fml.VirtualModel;
import org.openflexo.foundation.fml.*;
[ "org.openflexo.foundation" ]
org.openflexo.foundation;
1,933,192
private static FrequentPatternMaxHeap growth(FPTree tree, MutableLong minSupportMutable, int k, int currentAttribute) { long currentAttributeCount = tree.headerCount(curren...
static FrequentPatternMaxHeap function(FPTree tree, MutableLong minSupportMutable, int k, int currentAttribute) { long currentAttributeCount = tree.headerCount(currentAttribute); if (currentAttributeCount < minSupportMutable.longValue()) { return new FrequentPatternMaxHeap(k, true); } FPTree condTree = tree.createMoreF...
/** * Run FP Growth recursively on tree, for the given target attribute */
Run FP Growth recursively on tree, for the given target attribute
growth
{ "repo_name": "bharcode/Kaggle", "path": "CustomMahout/core/src/main/java/org/apache/mahout/fpm/pfpgrowth/fpgrowth2/FPGrowthIds.java", "license": "gpl-2.0", "size": 11415 }
[ "org.apache.commons.lang3.mutable.MutableLong", "org.apache.mahout.common.Pair", "org.apache.mahout.fpm.pfpgrowth.fpgrowth.FrequentPatternMaxHeap", "org.apache.mahout.fpm.pfpgrowth.fpgrowth.Pattern" ]
import org.apache.commons.lang3.mutable.MutableLong; import org.apache.mahout.common.Pair; import org.apache.mahout.fpm.pfpgrowth.fpgrowth.FrequentPatternMaxHeap; import org.apache.mahout.fpm.pfpgrowth.fpgrowth.Pattern;
import org.apache.commons.lang3.mutable.*; import org.apache.mahout.common.*; import org.apache.mahout.fpm.pfpgrowth.fpgrowth.*;
[ "org.apache.commons", "org.apache.mahout" ]
org.apache.commons; org.apache.mahout;
751,880
public void installUI(JComponent a) { for (int i = 0; i < uis.size(); i++) { ((ComponentUI) (uis.elementAt(i))).installUI(a); } }
void function(JComponent a) { for (int i = 0; i < uis.size(); i++) { ((ComponentUI) (uis.elementAt(i))).installUI(a); } }
/** * Invokes the <code>installUI</code> method on each UI handled by this object. */
Invokes the <code>installUI</code> method on each UI handled by this object
installUI
{ "repo_name": "flyzsd/java-code-snippets", "path": "ibm.jdk8/src/javax/swing/plaf/multi/MultiOptionPaneUI.java", "license": "mit", "size": 7835 }
[ "javax.swing.JComponent", "javax.swing.plaf.ComponentUI" ]
import javax.swing.JComponent; import javax.swing.plaf.ComponentUI;
import javax.swing.*; import javax.swing.plaf.*;
[ "javax.swing" ]
javax.swing;
1,171,775
private static void doFilters(Document doc) { removeComments(doc); removeImages(doc); removeLinks(doc); addSourceItem(doc); }
static void function(Document doc) { removeComments(doc); removeImages(doc); removeLinks(doc); addSourceItem(doc); }
/** * Apply filters on the document * @param doc */
Apply filters on the document
doFilters
{ "repo_name": "chteuchteu/Munin-Documentation-Crawler", "path": "src/com/chteuchteu/munincrawler/Main.java", "license": "gpl-2.0", "size": 14859 }
[ "org.jsoup.nodes.Document" ]
import org.jsoup.nodes.Document;
import org.jsoup.nodes.*;
[ "org.jsoup.nodes" ]
org.jsoup.nodes;
527,607
public ServerSocket createSocket(int port) throws IOException, KeyStoreException, NoSuchAlgorithmException, CertificateException, UnrecoverableKeyException, KeyManagementException;
ServerSocket function(int port) throws IOException, KeyStoreException, NoSuchAlgorithmException, CertificateException, UnrecoverableKeyException, KeyManagementException;
/** * Returns a server socket which uses all network interfaces on * the host, and is bound to a the specified port. The socket is * configured with the socket options (such as accept timeout) * given to this factory. * * @param port the port to listen to * * @exception IOExcept...
Returns a server socket which uses all network interfaces on the host, and is bound to a the specified port. The socket is configured with the socket options (such as accept timeout) given to this factory
createSocket
{ "repo_name": "jasonleaster/TheWayToJava", "path": "HowTomcatWorks/src/main/java/org/apache/catalina/net/ServerSocketFactory.java", "license": "gpl-3.0", "size": 7688 }
[ "java.io.IOException", "java.net.ServerSocket", "java.security.KeyManagementException", "java.security.KeyStoreException", "java.security.NoSuchAlgorithmException", "java.security.UnrecoverableKeyException", "java.security.cert.CertificateException" ]
import java.io.IOException; import java.net.ServerSocket; import java.security.KeyManagementException; import java.security.KeyStoreException; import java.security.NoSuchAlgorithmException; import java.security.UnrecoverableKeyException; import java.security.cert.CertificateException;
import java.io.*; import java.net.*; import java.security.*; import java.security.cert.*;
[ "java.io", "java.net", "java.security" ]
java.io; java.net; java.security;
2,244,982
private void validateAttributeName(String modelClass) throws JspException, NoSuchFieldException{ try { if(this.attributeName == "" || this.attributeName.length() == 0){ return; } String methodName = ""; String className = modelClass; Method lazyMethod = null; try{ String at...
void function(String modelClass) throws JspException, NoSuchFieldException{ try { if(this.attributeName == STRSTRSTR\\.STRgetSTRisSTRAttribute getter/setters STR does not exists for class STRAttribute getter/setters STR does not exists for class STR STR STR STR<STR<STRjava.util.STR<STR>STRAttribute getter/setters STR d...
/** * Validated whether the attribute specified in tag exists in the class * * @param String represents Lazy Class * @return void */
Validated whether the attribute specified in tag exists in the class
validateAttributeName
{ "repo_name": "sahilshaikh89/LazyLoading", "path": "com/lazyloading/tag/DataColumn.java", "license": "apache-2.0", "size": 7218 }
[ "javax.servlet.jsp.JspException" ]
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.*;
[ "javax.servlet" ]
javax.servlet;
1,890,591
private String populateRangeQuery(String from, String until, String set, int offset, int count) throws OAIInternalServerError { StringBuffer sb = new StringBuffer(); StringTokenizer tokenizer; if (set == null || set.length() == 0) tokenizer = new StringTokenizer(rangeQue...
String function(String from, String until, String set, int offset, int count) throws OAIInternalServerError { StringBuffer sb = new StringBuffer(); StringTokenizer tokenizer; if (set == null set.length() == 0) tokenizer = new StringTokenizer(rangeQuery, "\\"); else tokenizer = new StringTokenizer(rangeSetQuery, "\\"); ...
/** * insert actual from, until, and set parameters into the rangeQuery String * NOTE! This retrieves an extra record so we can decide if EOF has been reached. * * @param from the OAI from parameter * @param until the OAI until paramter * @param set the OAI set parameter * @ret...
insert actual from, until, and set parameters into the rangeQuery String NOTE! This retrieves an extra record so we can decide if EOF has been reached
populateRangeQuery
{ "repo_name": "bdrhoa/ibidem", "path": "src/oaicat/src/ORG/oclc/oai/server/catalog/JDBCLimitedOAICatalog.java", "license": "apache-2.0", "size": 61226 }
[ "java.util.StringTokenizer" ]
import java.util.StringTokenizer;
import java.util.*;
[ "java.util" ]
java.util;
767,508
@Test (timeout=60000) public void testReplicationWithSnapshot() throws Exception { short fileRep = 1; // Create file1, set its replication to 1 DFSTestUtil.createFile(hdfs, file1, BLOCKSIZE, fileRep, seed); Map<Path, Short> snapshotRepMap = new HashMap<Path, Short>(); // Change replication facto...
@Test (timeout=60000) void function() throws Exception { short fileRep = 1; DFSTestUtil.createFile(hdfs, file1, BLOCKSIZE, fileRep, seed); Map<Path, Short> snapshotRepMap = new HashMap<Path, Short>(); for (; fileRep < NUMDATANODE; ) { Path snapshotRoot = SnapshotTestHelper.createSnapshot(hdfs, sub1, "s" + fileRep); Pat...
/** * Test replication number calculation for a file with snapshots. */
Test replication number calculation for a file with snapshots
testReplicationWithSnapshot
{ "repo_name": "cnfire/hadoop", "path": "hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/snapshot/TestSnapshotReplication.java", "license": "apache-2.0", "size": 9291 }
[ "java.util.HashMap", "java.util.Map", "org.apache.hadoop.fs.Path", "org.apache.hadoop.hdfs.DFSTestUtil", "org.junit.Assert", "org.junit.Test" ]
import java.util.HashMap; import java.util.Map; import org.apache.hadoop.fs.Path; import org.apache.hadoop.hdfs.DFSTestUtil; import org.junit.Assert; import org.junit.Test;
import java.util.*; import org.apache.hadoop.fs.*; import org.apache.hadoop.hdfs.*; import org.junit.*;
[ "java.util", "org.apache.hadoop", "org.junit" ]
java.util; org.apache.hadoop; org.junit;
495,501
public static synchronized void create(String setupPath) throws AdeException { if (a_adeObject != null) { throw new AdeInternalException("Ade object already created"); } createOverride(setupPath); }
static synchronized void function(String setupPath) throws AdeException { if (a_adeObject != null) { throw new AdeInternalException(STR); } createOverride(setupPath); }
/** * Create the Ade singleton using the specified setup file. * * @param setupPath - The path to the ade setup properties file. * @throws AdeException if the Ade singleton has already been created. */
Create the Ade singleton using the specified setup file
create
{ "repo_name": "openmainframeproject/ade", "path": "ade-core/src/main/java/org/openmainframe/ade/Ade.java", "license": "gpl-3.0", "size": 10689 }
[ "org.openmainframe.ade.exceptions.AdeException", "org.openmainframe.ade.exceptions.AdeInternalException" ]
import org.openmainframe.ade.exceptions.AdeException; import org.openmainframe.ade.exceptions.AdeInternalException;
import org.openmainframe.ade.exceptions.*;
[ "org.openmainframe.ade" ]
org.openmainframe.ade;
2,363,551
public WSDLDocument getNewWsdlDocument() throws ParserException { return (WSDLDocument) getNewObject(FactoryTypes.WsdlDocument); } private static Map<FactoryTypes, Class> baseClasses = new HashMap<FactoryTypes, Class>(); static { baseClasses.put(FactoryTypes.SimpleType, SimpleType.class); baseClasse...
WSDLDocument function() throws ParserException { return (WSDLDocument) getNewObject(FactoryTypes.WsdlDocument); } private static Map<FactoryTypes, Class> baseClasses = new HashMap<FactoryTypes, Class>(); static { baseClasses.put(FactoryTypes.SimpleType, SimpleType.class); baseClasses.put(FactoryTypes.Element, Element.c...
/** * Gets the new wsdl document. * * @return the new wsdl document * @throws ParserException the parser exception */
Gets the new wsdl document
getNewWsdlDocument
{ "repo_name": "kingargyle/turmeric-wsdldoctool", "path": "wsdl-doc-tool/src/main/java/org/ebayopensource/turmeric/tools/annoparser/context/Context.java", "license": "apache-2.0", "size": 11321 }
[ "java.util.HashMap", "java.util.Map", "org.ebayopensource.turmeric.tools.annoparser.WSDLDocument", "org.ebayopensource.turmeric.tools.annoparser.XSDDocument", "org.ebayopensource.turmeric.tools.annoparser.commons.FactoryTypes", "org.ebayopensource.turmeric.tools.annoparser.dataobjects.AttributeElement", ...
import java.util.HashMap; import java.util.Map; import org.ebayopensource.turmeric.tools.annoparser.WSDLDocument; import org.ebayopensource.turmeric.tools.annoparser.XSDDocument; import org.ebayopensource.turmeric.tools.annoparser.commons.FactoryTypes; import org.ebayopensource.turmeric.tools.annoparser.dataobjects.Att...
import java.util.*; import org.ebayopensource.turmeric.tools.annoparser.*; import org.ebayopensource.turmeric.tools.annoparser.commons.*; import org.ebayopensource.turmeric.tools.annoparser.dataobjects.*; import org.ebayopensource.turmeric.tools.annoparser.exception.*; import org.ebayopensource.turmeric.tools.annoparse...
[ "java.util", "org.ebayopensource.turmeric" ]
java.util; org.ebayopensource.turmeric;
32,175
public synchronized <T> DomainTypeHandler<T> getDomainTypeHandler(Class<T> cls) { DomainTypeHandler<T> domainTypeHandler = factory.getDomainTypeHandler(cls, dictionary); return domainTypeHandler; }
synchronized <T> DomainTypeHandler<T> function(Class<T> cls) { DomainTypeHandler<T> domainTypeHandler = factory.getDomainTypeHandler(cls, dictionary); return domainTypeHandler; }
/** Get the domain type handler for a class. * * @param cls the class * @return the domain type handler */
Get the domain type handler for a class
getDomainTypeHandler
{ "repo_name": "gunnarku/mysql-8.0", "path": "storage/ndb/clusterj/clusterj-core/src/main/java/com/mysql/clusterj/core/SessionImpl.java", "license": "gpl-2.0", "size": 60102 }
[ "com.mysql.clusterj.core.spi.DomainTypeHandler" ]
import com.mysql.clusterj.core.spi.DomainTypeHandler;
import com.mysql.clusterj.core.spi.*;
[ "com.mysql.clusterj" ]
com.mysql.clusterj;
1,230,831
public boolean connect() { try { mSocket = new Socket(); Log.i(Constants.LOG_CONST, "Connecting WifiRemote: " + mServer + ":" + mPort); SocketAddress socketAddress = new InetSocketAddress(mServer, mPort); mSocket.connect(socketAddress, 2000); // outgoing s...
boolean function() { try { mSocket = new Socket(); Log.i(Constants.LOG_CONST, STR + mServer + ":" + mPort); SocketAddress socketAddress = new InetSocketAddress(mServer, mPort); mSocket.connect(socketAddress, 2000); mOutstream = new DataOutputStream(mSocket.getOutputStream()); mInstream = new DataInputStream(mSocket.get...
/** * Connect to client */
Connect to client
connect
{ "repo_name": "vaugan/ampdroid-mod", "path": "src/com/mediaportal/ampdroid/api/wifiremote/WifiRemoteMpController.java", "license": "gpl-2.0", "size": 19116 }
[ "android.util.Log", "com.mediaportal.ampdroid.api.ConnectionState", "com.mediaportal.ampdroid.utils.Constants", "java.io.DataInputStream", "java.io.DataOutputStream", "java.io.IOException", "java.net.InetSocketAddress", "java.net.Socket", "java.net.SocketAddress", "java.net.UnknownHostException" ]
import android.util.Log; import com.mediaportal.ampdroid.api.ConnectionState; import com.mediaportal.ampdroid.utils.Constants; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import java.net.InetSocketAddress; import java.net.Socket; import java.net.SocketAddress; import jav...
import android.util.*; import com.mediaportal.ampdroid.api.*; import com.mediaportal.ampdroid.utils.*; import java.io.*; import java.net.*;
[ "android.util", "com.mediaportal.ampdroid", "java.io", "java.net" ]
android.util; com.mediaportal.ampdroid; java.io; java.net;
2,851,054
List<T> findByAppId(String appId);
List<T> findByAppId(String appId);
/** * Find server profile schemas with given application identifier. * * @param appId the application identifier * @return the list of server profile schemas for corresponding application. */
Find server profile schemas with given application identifier
findByAppId
{ "repo_name": "abohomol/kaa", "path": "server/common/dao/src/main/java/org/kaaproject/kaa/server/common/dao/impl/ServerProfileSchemaDao.java", "license": "apache-2.0", "size": 1754 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,159,133
public StudyService getStudyService() { return mStudyService; }
StudyService function() { return mStudyService; }
/** * Return the StudyService field. * * @return StudyService mStudyService */
Return the StudyService field
getStudyService
{ "repo_name": "TreeBASE/treebasetest", "path": "treebase-web/src/main/java/org/cipres/treebase/web/controllers/StudyFormController.java", "license": "bsd-3-clause", "size": 5117 }
[ "org.cipres.treebase.domain.study.StudyService" ]
import org.cipres.treebase.domain.study.StudyService;
import org.cipres.treebase.domain.study.*;
[ "org.cipres.treebase" ]
org.cipres.treebase;
2,880,195
public static Pair<Long, Map<String, Long>> count(String directory, PrintStream log, boolean verbose) { Map<String, Long> counts = new HashMap<String, Long>(); Map<String, List<Pair<String, String>>> interchanges = new HashMap<String, List<Pair<String, String>>>(); List<Pair<String, String>...
static Pair<Long, Map<String, Long>> function(String directory, PrintStream log, boolean verbose) { Map<String, Long> counts = new HashMap<String, Long>(); Map<String, List<Pair<String, String>>> interchanges = new HashMap<String, List<Pair<String, String>>>(); List<Pair<String, String>> assessmentMetadataPairs = new A...
/** * Returns the total number of records to be persisted across all interchanges. * * @param directory * directory where to find interchanges. * @return integer representing summation of all persist-able records in each interchange. */
Returns the total number of records to be persisted across all interchanges
count
{ "repo_name": "inbloom/secure-data-service", "path": "tools/data-tools/src/org/slc/sli/test/utils/IngestionDataParser.java", "license": "apache-2.0", "size": 22963 }
[ "java.io.PrintStream", "java.util.ArrayList", "java.util.HashMap", "java.util.List", "java.util.Map", "org.apache.commons.lang3.tuple.Pair" ]
import java.io.PrintStream; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import org.apache.commons.lang3.tuple.Pair;
import java.io.*; import java.util.*; import org.apache.commons.lang3.tuple.*;
[ "java.io", "java.util", "org.apache.commons" ]
java.io; java.util; org.apache.commons;
2,260,064
@Override public boolean accept(ExecuteCheck task) { return HTTPEngine.NAME.equalsIgnoreCase(task.getEngine()) && ScriptedHTTPExecutor.NAME.equalsIgnoreCase(task.getExecutor()); }
boolean function(ExecuteCheck task) { return HTTPEngine.NAME.equalsIgnoreCase(task.getEngine()) && ScriptedHTTPExecutor.NAME.equalsIgnoreCase(task.getExecutor()); }
/** * Only execute Checks where the engine == "http" and executor == "script" */
Only execute Checks where the engine == "http" and executor == "script"
accept
{ "repo_name": "1024122298/bergamot", "path": "bergamot-worker-http/src/main/java/com/intrbiz/bergamot/worker/engine/http/ScriptedHTTPExecutor.java", "license": "lgpl-3.0", "size": 2291 }
[ "com.intrbiz.bergamot.model.message.check.ExecuteCheck" ]
import com.intrbiz.bergamot.model.message.check.ExecuteCheck;
import com.intrbiz.bergamot.model.message.check.*;
[ "com.intrbiz.bergamot" ]
com.intrbiz.bergamot;
930,387
close(); login(); //check if welcome message appears after user logged in $(byText("welcome to midPoint")).shouldBe(visible); //import organization structure xml file importObjectFromFile(ORG_FILE_PATH); //click Users menu $(By.cssSelector("html.no-js body div....
close(); login(); $(byText(STR)).shouldBe(visible); importObjectFromFile(ORG_FILE_PATH); $(By.cssSelector(STR)).shouldHave(text("Users")).click(); $(By.linkText(STR)).click(); $(By.xpath(STR)).shouldHave(text(STR)); $(By.xpath(STR)).shouldHave(text(STR)); $(By.xpath(STR)).shouldHave(text(STR)); }
/** * Import organization structure from org-monkey-island-simple.xml * sample file. Check if organization tree was created in MP */
Import organization structure from org-monkey-island-simple.xml sample file. Check if organization tree was created in MP
test001importOrganizationStructureFromFileTest
{ "repo_name": "gureronder/midpoint", "path": "testing/selenidetest/src/test/java/com/evolveum/midpoint/testing/selenide/tests/organization/OrganizationStructureTests.java", "license": "apache-2.0", "size": 6266 }
[ "org.openqa.selenium.By" ]
import org.openqa.selenium.By;
import org.openqa.selenium.*;
[ "org.openqa.selenium" ]
org.openqa.selenium;
707,300
public FileConfiguration getConfig() { return config; }
FileConfiguration function() { return config; }
/** * Gets the configuration file, previously loaded. * * @return the configurations file */
Gets the configuration file, previously loaded
getConfig
{ "repo_name": "zapbot/zaproxy", "path": "src/org/parosproxy/paros/common/AbstractParam.java", "license": "apache-2.0", "size": 8065 }
[ "org.apache.commons.configuration.FileConfiguration" ]
import org.apache.commons.configuration.FileConfiguration;
import org.apache.commons.configuration.*;
[ "org.apache.commons" ]
org.apache.commons;
848,243
public PortStatus getOutputStatus() throws IOException { return null; }
PortStatus function() throws IOException { return null; }
/** * Get output (effect) status. * @return PortStatus object. */
Get output (effect) status
getOutputStatus
{ "repo_name": "haakom/EnergiWeb-remake", "path": "energiweb/src/no/noen/server/term/HL3Terminal.java", "license": "apache-2.0", "size": 7581 }
[ "java.io.IOException", "no.noen.lms.PortStatus" ]
import java.io.IOException; import no.noen.lms.PortStatus;
import java.io.*; import no.noen.lms.*;
[ "java.io", "no.noen.lms" ]
java.io; no.noen.lms;
1,832,462
public SappAddressRollershutterControl getStopControl() { return stopControl; } /** * {@inheritDoc}
SappAddressRollershutterControl function() { return stopControl; } /** * {@inheritDoc}
/** * stopControl getter */
stopControl getter
getStopControl
{ "repo_name": "openhab/openhab", "path": "bundles/binding/org.openhab.binding.sapp/src/main/java/org/openhab/binding/sapp/internal/configs/SappBindingConfigRollershutterItem.java", "license": "epl-1.0", "size": 7845 }
[ "org.openhab.binding.sapp.internal.model.SappAddressRollershutterControl" ]
import org.openhab.binding.sapp.internal.model.SappAddressRollershutterControl;
import org.openhab.binding.sapp.internal.model.*;
[ "org.openhab.binding" ]
org.openhab.binding;
2,341,028
public CmsContainerElementBean getCurrentElement(ServletRequest req) throws CmsException { CmsContainerElementBean element = CmsJspStandardContextBean.getInstance(req).getElement(); if (element == null) { throw new CmsException(Messages.get().container(Messages.ERR_READING_ELEMENT_F...
CmsContainerElementBean function(ServletRequest req) throws CmsException { CmsContainerElementBean element = CmsJspStandardContextBean.getInstance(req).getElement(); if (element == null) { throw new CmsException(Messages.get().container(Messages.ERR_READING_ELEMENT_FROM_REQUEST_0)); } return element; }
/** * Reads the current element bean from the request.<p> * * @param req the servlet request * * @return the element bean * * @throws CmsException if no current element is set */
Reads the current element bean from the request
getCurrentElement
{ "repo_name": "mediaworx/opencms-core", "path": "src/org/opencms/ade/configuration/CmsADEManager.java", "license": "lgpl-2.1", "size": 47325 }
[ "javax.servlet.ServletRequest", "org.opencms.jsp.util.CmsJspStandardContextBean", "org.opencms.main.CmsException", "org.opencms.xml.containerpage.CmsContainerElementBean", "org.opencms.xml.containerpage.Messages" ]
import javax.servlet.ServletRequest; import org.opencms.jsp.util.CmsJspStandardContextBean; import org.opencms.main.CmsException; import org.opencms.xml.containerpage.CmsContainerElementBean; import org.opencms.xml.containerpage.Messages;
import javax.servlet.*; import org.opencms.jsp.util.*; import org.opencms.main.*; import org.opencms.xml.containerpage.*;
[ "javax.servlet", "org.opencms.jsp", "org.opencms.main", "org.opencms.xml" ]
javax.servlet; org.opencms.jsp; org.opencms.main; org.opencms.xml;
2,911,101
public static OneResponse allocate( Client client, String description, int clusterId) { return client.call(ALLOCATE, description, clusterId); }
static OneResponse function( Client client, String description, int clusterId) { return client.call(ALLOCATE, description, clusterId); }
/** * Allocates a new virtual network in OpenNebula. * * @param client XML-RPC Client. * @param description A string containing the template * of the virtual network. * @param clusterId The cluster ID. If it is -1, this virtual network * won't be added to any cluster. * * @r...
Allocates a new virtual network in OpenNebula
allocate
{ "repo_name": "hsanjuan/one", "path": "src/oca/java/src/org/opennebula/client/vnet/VirtualNetwork.java", "license": "apache-2.0", "size": 21150 }
[ "org.opennebula.client.Client", "org.opennebula.client.OneResponse" ]
import org.opennebula.client.Client; import org.opennebula.client.OneResponse;
import org.opennebula.client.*;
[ "org.opennebula.client" ]
org.opennebula.client;
1,292,117
protected void unsetOutputEventAdapterService(OutputEventAdapterService outputEventAdapterService) { ServiceReferenceHolder.getInstance().setOutputEventAdapterService(null); }
void function(OutputEventAdapterService outputEventAdapterService) { ServiceReferenceHolder.getInstance().setOutputEventAdapterService(null); }
/** * De-reference the Output EventAdapter Service dependency. * * @param outputEventAdapterService */
De-reference the Output EventAdapter Service dependency
unsetOutputEventAdapterService
{ "repo_name": "harsha89/carbon-apimgt", "path": "components/apimgt/org.wso2.carbon.apimgt.keymgt/src/main/java/org/wso2/carbon/apimgt/keymgt/internal/APIKeyMgtServiceComponent.java", "license": "apache-2.0", "size": 16648 }
[ "org.wso2.carbon.event.output.adapter.core.OutputEventAdapterService" ]
import org.wso2.carbon.event.output.adapter.core.OutputEventAdapterService;
import org.wso2.carbon.event.output.adapter.core.*;
[ "org.wso2.carbon" ]
org.wso2.carbon;
1,488,637
public boolean add(String key, Object value, Integer expiration) throws Exception { Jedis jedis = null; try { jedis = this.jedisPool.getResource(); long begin = System.currentTimeMillis(); // 操作setnx与expire成功返回1,失败返回0,仅当均返回1时,实际操作成功 ...
boolean function(String key, Object value, Integer expiration) throws Exception { Jedis jedis = null; try { jedis = this.jedisPool.getResource(); long begin = System.currentTimeMillis(); Long result = jedis .setnx(SafeEncoder.encode(key), serialize(value)); if (expiration > 0) { result = result & jedis.expire(key, expi...
/** * add if not exists * * @param key * @param value * @param expiration * @return false if redis did not execute the option * @throws Exception */
add if not exists
add
{ "repo_name": "ChainBoy/disconf", "path": "disconf-core/src/main/java/com/baidu/disconf/ub/common/redis/RedisClient.java", "license": "gpl-2.0", "size": 40379 }
[ "redis.clients.jedis.Jedis", "redis.clients.util.SafeEncoder" ]
import redis.clients.jedis.Jedis; import redis.clients.util.SafeEncoder;
import redis.clients.jedis.*; import redis.clients.util.*;
[ "redis.clients.jedis", "redis.clients.util" ]
redis.clients.jedis; redis.clients.util;
30,822
public void letterClicked() { if (letter != null) { UIComponent comp = FacesUtils.getComponent("contacts:list"); HtmlDataTable tabla = (HtmlDataTable) comp; tabla.setFirst(0); search.setName(letter + "%"); } else { search.unsetName(); } }
void function() { if (letter != null) { UIComponent comp = FacesUtils.getComponent(STR); HtmlDataTable tabla = (HtmlDataTable) comp; tabla.setFirst(0); search.setName(letter + "%"); } else { search.unsetName(); } }
/** * Handle an ABC pager letter click: filter objects by specified starting * letter */
Handle an ABC pager letter click: filter objects by specified starting letter
letterClicked
{ "repo_name": "autentia/TNTConcept", "path": "tntconcept-web/src/main/java/com/autentia/tnt/bean/contacts/ContactBean.java", "license": "gpl-3.0", "size": 31220 }
[ "com.autentia.tnt.util.FacesUtils", "javax.faces.component.UIComponent", "javax.faces.component.html.HtmlDataTable" ]
import com.autentia.tnt.util.FacesUtils; import javax.faces.component.UIComponent; import javax.faces.component.html.HtmlDataTable;
import com.autentia.tnt.util.*; import javax.faces.component.*; import javax.faces.component.html.*;
[ "com.autentia.tnt", "javax.faces" ]
com.autentia.tnt; javax.faces;
1,776,346
public void removeText() { // Update damage area if (owner_ != null && owner_.getWindow() != null && texts_ != null) { Region damage = findRegion (texts_); owner_.getWindow().updateDamageArea (damage); } // Nullify texts texts_ = null; }
void function() { if (owner_ != null && owner_.getWindow() != null && texts_ != null) { Region damage = findRegion (texts_); owner_.getWindow().updateDamageArea (damage); } texts_ = null; }
/** * Remove all text elements set on this segment. */
Remove all text elements set on this segment
removeText
{ "repo_name": "ys880526/Test", "path": "Simulators/GateBar/src/main/java/no/geosoft/cc/graphics/GSegment.java", "license": "lgpl-3.0", "size": 25713 }
[ "no.geosoft.cc.geometry.Region" ]
import no.geosoft.cc.geometry.Region;
import no.geosoft.cc.geometry.*;
[ "no.geosoft.cc" ]
no.geosoft.cc;
2,913,143
return ReplayCommand.DATA_STRUCTURE_TYPE; }
return ReplayCommand.DATA_STRUCTURE_TYPE; }
/** * Return the type of Data Structure we marshal * * @return short representation of the type data structure */
Return the type of Data Structure we marshal
getDataStructureType
{ "repo_name": "apache/activemq-openwire", "path": "openwire-legacy/src/main/java/org/apache/activemq/openwire/codec/v8/ReplayCommandMarshaller.java", "license": "apache-2.0", "size": 4137 }
[ "org.apache.activemq.openwire.commands.ReplayCommand" ]
import org.apache.activemq.openwire.commands.ReplayCommand;
import org.apache.activemq.openwire.commands.*;
[ "org.apache.activemq" ]
org.apache.activemq;
1,140,203
@SimpleProperty(category = PropertyCategory.APPEARANCE, description = "Screen height (y-size).") public int Height() { return (int)(frameLayout.getHeight() / this.deviceDensity); }
@SimpleProperty(category = PropertyCategory.APPEARANCE, description = STR) int function() { return (int)(frameLayout.getHeight() / this.deviceDensity); }
/** * Height property getter method. * * @return height property used by the layout */
Height property getter method
Height
{ "repo_name": "mark-friedman/web-appinventor", "path": "appinventor/components/src/com/google/appinventor/components/runtime/Form.java", "license": "apache-2.0", "size": 66763 }
[ "com.google.appinventor.components.annotations.PropertyCategory", "com.google.appinventor.components.annotations.SimpleProperty" ]
import com.google.appinventor.components.annotations.PropertyCategory; import com.google.appinventor.components.annotations.SimpleProperty;
import com.google.appinventor.components.annotations.*;
[ "com.google.appinventor" ]
com.google.appinventor;
2,697,933
private List<WorkUnit> materializeWorkUnitList(WorkUnitStream workUnitStream) { if (!workUnitStream.isFiniteStream()) { throw new UnsupportedOperationException("Cannot materialize an infinite work unit stream."); } return Lists.newArrayList(workUnitStream.getWorkUnits()); }
List<WorkUnit> function(WorkUnitStream workUnitStream) { if (!workUnitStream.isFiniteStream()) { throw new UnsupportedOperationException(STR); } return Lists.newArrayList(workUnitStream.getWorkUnits()); }
/** * Materialize a {@link WorkUnitStream} into an in-memory list. Note that infinite work unit streams cannot be materialized. */
Materialize a <code>WorkUnitStream</code> into an in-memory list. Note that infinite work unit streams cannot be materialized
materializeWorkUnitList
{ "repo_name": "jack-moseley/gobblin", "path": "gobblin-runtime/src/main/java/org/apache/gobblin/runtime/AbstractJobLauncher.java", "license": "apache-2.0", "size": 45247 }
[ "com.google.common.collect.Lists", "java.util.List", "org.apache.gobblin.source.workunit.WorkUnit", "org.apache.gobblin.source.workunit.WorkUnitStream" ]
import com.google.common.collect.Lists; import java.util.List; import org.apache.gobblin.source.workunit.WorkUnit; import org.apache.gobblin.source.workunit.WorkUnitStream;
import com.google.common.collect.*; import java.util.*; import org.apache.gobblin.source.workunit.*;
[ "com.google.common", "java.util", "org.apache.gobblin" ]
com.google.common; java.util; org.apache.gobblin;
622,474
@ServiceMethod(returns = ReturnType.SINGLE) private Mono<OutputInner> createOrReplaceAsync( String resourceGroupName, String jobName, String outputName, OutputInner output) { final String ifMatch = null; final String ifNoneMatch = null; return createOrReplaceWithResponseAsync(res...
@ServiceMethod(returns = ReturnType.SINGLE) Mono<OutputInner> function( String resourceGroupName, String jobName, String outputName, OutputInner output) { final String ifMatch = null; final String ifNoneMatch = null; return createOrReplaceWithResponseAsync(resourceGroupName, jobName, outputName, output, ifMatch, ifNone...
/** * Creates an output or replaces an already existing output under an existing streaming job. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param jobName The name of the streaming job. * @param outputName The name of the output. * @param ou...
Creates an output or replaces an already existing output under an existing streaming job
createOrReplaceAsync
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/streamanalytics/azure-resourcemanager-streamanalytics/src/main/java/com/azure/resourcemanager/streamanalytics/implementation/OutputsClientImpl.java", "license": "mit", "size": 87690 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.resourcemanager.streamanalytics.fluent.models.OutputInner", "com.azure.resourcemanager.streamanalytics.models.OutputsCreateOrReplaceResponse" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.resourcemanager.streamanalytics.fluent.models.OutputInner; import com.azure.resourcemanager.streamanalytics.models.OutputsCreateOrReplaceResponse;
import com.azure.core.annotation.*; import com.azure.resourcemanager.streamanalytics.fluent.models.*; import com.azure.resourcemanager.streamanalytics.models.*;
[ "com.azure.core", "com.azure.resourcemanager" ]
com.azure.core; com.azure.resourcemanager;
543,785
@Nullable @TargetApi(Build.VERSION_CODES.LOLLIPOP) public static SizeF optSizeF(@Nullable Bundle bundle, @Nullable String key, @Nullable SizeF fallback) { if (bundle == null) { return fallback; } return bundle.getSizeF(key); }
@TargetApi(Build.VERSION_CODES.LOLLIPOP) static SizeF function(@Nullable Bundle bundle, @Nullable String key, @Nullable SizeF fallback) { if (bundle == null) { return fallback; } return bundle.getSizeF(key); }
/** * Returns a optional {@link android.util.SizeF} value. In other words, returns the value mapped by key if it exists and is a {@link android.util.SizeF}. * The bundle argument is allowed to be {@code null}. If the bundle is null, this method returns null. * @param bundle a bundle. If the bundle is nul...
Returns a optional <code>android.util.SizeF</code> value. In other words, returns the value mapped by key if it exists and is a <code>android.util.SizeF</code>. The bundle argument is allowed to be null. If the bundle is null, this method returns null
optSizeF
{ "repo_name": "nohana/Amalgam", "path": "amalgam/src/main/java/com/amalgam/os/BundleUtils.java", "license": "apache-2.0", "size": 55053 }
[ "android.annotation.TargetApi", "android.os.Build", "android.os.Bundle", "android.support.annotation.Nullable", "android.util.SizeF" ]
import android.annotation.TargetApi; import android.os.Build; import android.os.Bundle; import android.support.annotation.Nullable; import android.util.SizeF;
import android.annotation.*; import android.os.*; import android.support.annotation.*; import android.util.*;
[ "android.annotation", "android.os", "android.support", "android.util" ]
android.annotation; android.os; android.support; android.util;
1,168,827
@Nonnull private Date getOnlyHourAndMinutes(Date date) { return notNull(this.copy(this.getCalendar(date), this.getEpoch(), Calendar.HOUR_OF_DAY, Calendar.MINUTE).getTime()); }
Date function(Date date) { return notNull(this.copy(this.getCalendar(date), this.getEpoch(), Calendar.HOUR_OF_DAY, Calendar.MINUTE).getTime()); }
/** * Retorna un {@link Date} que solo contiene la hora y los minutos, * eliminado todos los demas. * * @param date * @return */
Retorna un <code>Date</code> que solo contiene la hora y los minutos, eliminado todos los demas
getOnlyHourAndMinutes
{ "repo_name": "fpuna-cia/karaku", "path": "src/main/java/py/una/pol/karaku/dao/where/DateClauses.java", "license": "lgpl-2.1", "size": 11302 }
[ "java.util.Calendar", "java.util.Date" ]
import java.util.Calendar; import java.util.Date;
import java.util.*;
[ "java.util" ]
java.util;
117,387
@ApiModelProperty(value = "Post text/html content.") public String getContent() { return content; }
@ApiModelProperty(value = STR) String function() { return content; }
/** * Post text/html content. * * @return content **/
Post text/html content
getContent
{ "repo_name": "daflockinger/spongeblogSP", "path": "src/main/java/com/flockinger/spongeblogSP/dto/PostDTO.java", "license": "mit", "size": 3025 }
[ "io.swagger.annotations.ApiModelProperty" ]
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.*;
[ "io.swagger.annotations" ]
io.swagger.annotations;
96,455
@GET @Path("configuration/portal") @Produces("application/json") public Map<Object, Object> getPortalConfiguration(@HeaderParam("sessionid") String sessionId) throws NotConnectedRestException, PermissionRestException;
@Path(STR) @Produces(STR) Map<Object, Object> function(@HeaderParam(STR) String sessionId) throws NotConnectedRestException, PermissionRestException;
/** * Get portal configuration properties * @param sessionId * @return * @throws NotConnectedRestException * @throws PermissionRestException */
Get portal configuration properties
getPortalConfiguration
{ "repo_name": "tobwiens/scheduling", "path": "rest/rest-api/src/main/java/org/ow2/proactive_grid_cloud_portal/common/SchedulerRestInterface.java", "license": "agpl-3.0", "size": 80291 }
[ "java.util.Map", "javax.ws.rs.HeaderParam", "javax.ws.rs.Path", "javax.ws.rs.Produces", "org.ow2.proactive_grid_cloud_portal.scheduler.exception.NotConnectedRestException", "org.ow2.proactive_grid_cloud_portal.scheduler.exception.PermissionRestException" ]
import java.util.Map; import javax.ws.rs.HeaderParam; import javax.ws.rs.Path; import javax.ws.rs.Produces; import org.ow2.proactive_grid_cloud_portal.scheduler.exception.NotConnectedRestException; import org.ow2.proactive_grid_cloud_portal.scheduler.exception.PermissionRestException;
import java.util.*; import javax.ws.rs.*; import org.ow2.proactive_grid_cloud_portal.scheduler.exception.*;
[ "java.util", "javax.ws", "org.ow2.proactive_grid_cloud_portal" ]
java.util; javax.ws; org.ow2.proactive_grid_cloud_portal;
443,803
public String getSwitchValue(String switchString, String defaultValue) { String value = getSwitchValue(switchString); return TextUtils.isEmpty(value) ? defaultValue : value; }
String function(String switchString, String defaultValue) { String value = getSwitchValue(switchString); return TextUtils.isEmpty(value) ? defaultValue : value; }
/** * Return the value associated with the given switch, or {@code defaultValue} if the switch * was not specified. * @param switchString The switch key to lookup. It should NOT start with '--' ! * @param defaultValue The default value to return if the switch isn't set. * @return Switch value, ...
Return the value associated with the given switch, or defaultValue if the switch was not specified
getSwitchValue
{ "repo_name": "michaelforfxhelp/fxhelprepo", "path": "third_party/chromium/base/android/java/src/org/chromium/base/CommandLine.java", "license": "mpl-2.0", "size": 14814 }
[ "android.text.TextUtils" ]
import android.text.TextUtils;
import android.text.*;
[ "android.text" ]
android.text;
1,265,962