method stringlengths 13 441k | clean_method stringlengths 7 313k | doc stringlengths 17 17.3k | comment stringlengths 3 1.42k | method_name stringlengths 1 273 | extra dict | imports list | imports_info stringlengths 19 34.8k | cluster_imports_info stringlengths 15 3.66k | libraries list | libraries_info stringlengths 6 661 | id int64 0 2.92M |
|---|---|---|---|---|---|---|---|---|---|---|---|
public void remove(Class<? extends Term> termClass) throws InvocationTargetException, NoSuchMethodException,
InstantiationException, IllegalAccessException {
Term term = instantiate(termClass);
this.termMap.remove(term.getStartEnclosingString());
} | void function(Class<? extends Term> termClass) throws InvocationTargetException, NoSuchMethodException, InstantiationException, IllegalAccessException { Term term = instantiate(termClass); this.termMap.remove(term.getStartEnclosingString()); } | /**
* Removes the.
*
* @param termClass
* the term class
* @throws InvocationTargetException
* the invocation target exception
* @throws NoSuchMethodException
* the no such method exception
* @throws InstantiationException
* the instantiation ... | Removes the | remove | {
"repo_name": "MyCoRe-Org/mycore-lookup",
"path": "src/main/java/org/mycore/lookup/common/TextResolver.java",
"license": "gpl-3.0",
"size": 27507
} | [
"java.lang.reflect.InvocationTargetException"
] | import java.lang.reflect.InvocationTargetException; | import java.lang.reflect.*; | [
"java.lang"
] | java.lang; | 1,495,387 |
public static List<String> getServiceUrlsFromConfig(EurekaClientConfig clientConfig, String instanceZone, boolean preferSameZone) {
List<String> orderedUrls = new ArrayList<>();
String region = getRegion(clientConfig);
String[] availZones = clientConfig.getAvailabilityZones(clientConfig.getR... | static List<String> function(EurekaClientConfig clientConfig, String instanceZone, boolean preferSameZone) { List<String> orderedUrls = new ArrayList<>(); String region = getRegion(clientConfig); String[] availZones = clientConfig.getAvailabilityZones(clientConfig.getRegion()); if (availZones == null availZones.length ... | /**
* Get the list of all eureka service urls from properties file for the eureka client to talk to.
*
* @param clientConfig the clientConfig to use
* @param instanceZone The zone in which the client resides
* @param preferSameZone true if we have to prefer the same zone as the client, false ot... | Get the list of all eureka service urls from properties file for the eureka client to talk to | getServiceUrlsFromConfig | {
"repo_name": "spencergibb/eureka",
"path": "eureka-client/src/main/java/com/netflix/discovery/endpoint/EndpointUtils.java",
"license": "apache-2.0",
"size": 16882
} | [
"com.netflix.discovery.EurekaClientConfig",
"java.util.ArrayList",
"java.util.List"
] | import com.netflix.discovery.EurekaClientConfig; import java.util.ArrayList; import java.util.List; | import com.netflix.discovery.*; import java.util.*; | [
"com.netflix.discovery",
"java.util"
] | com.netflix.discovery; java.util; | 1,558,388 |
public static String getProduct(String query) {
try {
EntryData entryData = KeggAPI.getEntryData(query);
return getProduct(entryData);
}
catch (Exception e) {
return null;
}
} | static String function(String query) { try { EntryData entryData = KeggAPI.getEntryData(query); return getProduct(entryData); } catch (Exception e) { return null; } } | /**
* Get the gene function from query.
*
* @param query
* @return
* @throws Exception
*/ | Get the gene function from query | getProduct | {
"repo_name": "merlin-sysbio/bioapis",
"path": "src/main/java/pt/uminho/ceb/biosystems/merlin/bioapis/externalAPI/kegg/KeggAPI.java",
"license": "gpl-2.0",
"size": 34046
} | [
"pt.uminho.ceb.biosystems.merlin.bioapis.externalAPI.datatypes.EntryData"
] | import pt.uminho.ceb.biosystems.merlin.bioapis.externalAPI.datatypes.EntryData; | import pt.uminho.ceb.biosystems.merlin.bioapis.*; | [
"pt.uminho.ceb"
] | pt.uminho.ceb; | 2,454,991 |
public Cursor queryWithFactory(CursorFactory cursorFactory,
boolean distinct, String table, String[] columns,
String selection, String[] selectionArgs, String groupBy,
String having, String orderBy, String limit... | Cursor function(CursorFactory cursorFactory, boolean distinct, String table, String[] columns, String selection, String[] selectionArgs, String groupBy, String having, String orderBy, String limit) { if (!isOpen()) { throw new IllegalStateException(STR); } String sql = SQLiteQueryBuilder.buildQueryString( distinct, tab... | /**
* Query the given URL, returning a {@link Cursor} over the result set.
*
* @param cursorFactory the cursor factory to use, or null for the default factory
* @param distinct true if you want each row to be unique, false otherwise.
* @param table The table name to compile the query against.
... | Query the given URL, returning a <code>Cursor</code> over the result set | queryWithFactory | {
"repo_name": "litehelpers/android-database-sqlcipher-api-fix",
"path": "src/net/sqlcipher/database/SQLiteDatabase.java",
"license": "apache-2.0",
"size": 115393
} | [
"net.sqlcipher.Cursor"
] | import net.sqlcipher.Cursor; | import net.sqlcipher.*; | [
"net.sqlcipher"
] | net.sqlcipher; | 310,041 |
private boolean doesPropertySatisfy(ServiceDescription serviceDescription,
String type, String searchTerm) throws IllegalAccessException,
IllegalArgumentException, InvocationTargetException,
IntrospectionException {
BeanInfo beanInfo = getBeanInfo(serviceDescription.getClass());
for (PropertyDescriptor ... | boolean function(ServiceDescription serviceDescription, String type, String searchTerm) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException, IntrospectionException { BeanInfo beanInfo = getBeanInfo(serviceDescription.getClass()); for (PropertyDescriptor property : beanInfo.getPropertyDesc... | /**
* Determine whether a service description satisfies a search term.
*
* @param serviceDescription
* The service description bean to look in.
* @param type
* The name of the property to look in, or <tt>null</tt> to
* search in all public non-expert properties.
* @para... | Determine whether a service description satisfies a search term | doesPropertySatisfy | {
"repo_name": "apache/incubator-taverna-workbench",
"path": "taverna-activity-palette-ui/src/main/java/org/apache/taverna/workbench/ui/servicepanel/ServiceFilter.java",
"license": "apache-2.0",
"size": 4793
} | [
"java.beans.BeanInfo",
"java.beans.IntrospectionException",
"java.beans.Introspector",
"java.beans.PropertyDescriptor",
"java.lang.reflect.InvocationTargetException",
"java.lang.reflect.Method",
"org.apache.taverna.servicedescriptions.ServiceDescription"
] | import java.beans.BeanInfo; import java.beans.IntrospectionException; import java.beans.Introspector; import java.beans.PropertyDescriptor; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import org.apache.taverna.servicedescriptions.ServiceDescription; | import java.beans.*; import java.lang.reflect.*; import org.apache.taverna.servicedescriptions.*; | [
"java.beans",
"java.lang",
"org.apache.taverna"
] | java.beans; java.lang; org.apache.taverna; | 2,146,632 |
private byte[] encodeParameters(Map<String, String> params, String paramsEncoding) {
StringBuilder encodedParams = new StringBuilder();
try {
for (Map.Entry<String, String> entry : params.entrySet()) {
encodedParams.append(URLEncoder.encode(entry.getKey(), paramsEncoding)... | byte[] function(Map<String, String> params, String paramsEncoding) { StringBuilder encodedParams = new StringBuilder(); try { for (Map.Entry<String, String> entry : params.entrySet()) { encodedParams.append(URLEncoder.encode(entry.getKey(), paramsEncoding)); encodedParams.append('='); encodedParams.append(URLEncoder.en... | /**
* Converts <code>params</code> into an application/x-www-form-urlencoded encoded string.
*/ | Converts <code>params</code> into an application/x-www-form-urlencoded encoded string | encodeParameters | {
"repo_name": "alexadapter/News",
"path": "extras/volley/src/com/android/volley/Request.java",
"license": "apache-2.0",
"size": 18437
} | [
"java.io.UnsupportedEncodingException",
"java.net.URLEncoder",
"java.util.Map"
] | import java.io.UnsupportedEncodingException; import java.net.URLEncoder; import java.util.Map; | import java.io.*; import java.net.*; import java.util.*; | [
"java.io",
"java.net",
"java.util"
] | java.io; java.net; java.util; | 1,919,810 |
private static boolean closeColors(Color cA, Color cB) {
if (cA.equals(cB)) {
return true;
}
float[] colorA = new float[]{cA.getRed(), cA.getGreen(), cA.getBlue()};
float[] colorB = new float[]{cB.getRed(), cB.getGreen(), cB.getBlue()};
double dist = Math.sq... | static boolean function(Color cA, Color cB) { if (cA.equals(cB)) { return true; } float[] colorA = new float[]{cA.getRed(), cA.getGreen(), cA.getBlue()}; float[] colorB = new float[]{cB.getRed(), cB.getGreen(), cB.getBlue()}; double dist = Math.sqrt(Math.pow(colorA[0] - colorB[0], 2) + Math.pow(colorA[1] - colorB[1], 2... | /**
* return true if the colors are unacceptably close.
*
* @param cA
* @param cB
* @return
*/ | return true if the colors are unacceptably close | closeColors | {
"repo_name": "autoplot/app",
"path": "Autoplot/src/org/autoplot/PlotStylePanel.java",
"license": "gpl-2.0",
"size": 34971
} | [
"java.awt.Color"
] | import java.awt.Color; | import java.awt.*; | [
"java.awt"
] | java.awt; | 361,796 |
public DateTime ifModifiedSince() {
if (this.ifModifiedSince == null) {
return null;
}
return this.ifModifiedSince.dateTime();
} | DateTime function() { if (this.ifModifiedSince == null) { return null; } return this.ifModifiedSince.dateTime(); } | /**
* Get a timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has been modified since the specified time.
*
* @return the ifModifiedSince value
*/ | Get a timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has been modified since the specified time | ifModifiedSince | {
"repo_name": "selvasingh/azure-sdk-for-java",
"path": "sdk/batch/microsoft-azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolEnableAutoScaleOptions.java",
"license": "mit",
"size": 9557
} | [
"org.joda.time.DateTime"
] | import org.joda.time.DateTime; | import org.joda.time.*; | [
"org.joda.time"
] | org.joda.time; | 1,539,593 |
protected void fillType(IClass info, Boolean req, Integer style) {
String type = info.getName();
m_statedType = type;
if (m_actualType == null) {
m_workingType = type;
} else {
m_workingType = m_actualType;
}
if (m_xmlName == null) {
... | void function(IClass info, Boolean req, Integer style) { String type = info.getName(); m_statedType = type; if (m_actualType == null) { m_workingType = type; } else { m_workingType = m_actualType; } if (m_xmlName == null) { m_xmlName = getParent().convertName(m_baseName); } m_collection = type.endsWith("[]") info.isImp... | /**
* Complete customization information based on supplied type. If the type information has not previously been set,
* this will set it. It will also derive the appropriate XML name, if not previously set. This method is only
* intended for use by subclasses.
*
* @param info value type inform... | Complete customization information based on supplied type. If the type information has not previously been set, this will set it. It will also derive the appropriate XML name, if not previously set. This method is only intended for use by subclasses | fillType | {
"repo_name": "vkorbut/jibx",
"path": "jibx/build/src/org/jibx/custom/classes/SharedValueBase.java",
"license": "bsd-3-clause",
"size": 12291
} | [
"org.jibx.binding.classes.ClassItem",
"org.jibx.util.IClass"
] | import org.jibx.binding.classes.ClassItem; import org.jibx.util.IClass; | import org.jibx.binding.classes.*; import org.jibx.util.*; | [
"org.jibx.binding",
"org.jibx.util"
] | org.jibx.binding; org.jibx.util; | 2,021,069 |
@SafeVarargs
public final VirtualHostBuilder service(
HttpServiceWithRoutes serviceWithRoutes,
Function<? super HttpService, ? extends HttpService>... decorators) {
return service(serviceWithRoutes, ImmutableList.copyOf(requireNonNull(decorators, "decorators")));
} | final VirtualHostBuilder function( HttpServiceWithRoutes serviceWithRoutes, Function<? super HttpService, ? extends HttpService>... decorators) { return service(serviceWithRoutes, ImmutableList.copyOf(requireNonNull(decorators, STR))); } | /**
* Decorates and binds the specified {@link HttpServiceWithRoutes} at multiple {@link Route}s
* of the default {@link VirtualHost}.
*
* @param serviceWithRoutes the {@link HttpServiceWithRoutes}.
* @param decorators the decorator functions, which will be applied in the order specified.
... | Decorates and binds the specified <code>HttpServiceWithRoutes</code> at multiple <code>Route</code>s of the default <code>VirtualHost</code> | service | {
"repo_name": "anuraaga/armeria",
"path": "core/src/main/java/com/linecorp/armeria/server/VirtualHostBuilder.java",
"license": "apache-2.0",
"size": 46914
} | [
"com.google.common.collect.ImmutableList",
"java.util.function.Function"
] | import com.google.common.collect.ImmutableList; import java.util.function.Function; | import com.google.common.collect.*; import java.util.function.*; | [
"com.google.common",
"java.util"
] | com.google.common; java.util; | 1,402,870 |
public static IRootBlockView chooseRootBlock(
final IRootBlockView rootBlock0, final IRootBlockView rootBlock1,
final boolean alternateRootBlock,final boolean ignoreBadRootBlock) {
final IRootBlockView rootBlock;
if (!ignoreBadRootBlock
&& (ro... | static IRootBlockView function( final IRootBlockView rootBlock0, final IRootBlockView rootBlock1, final boolean alternateRootBlock,final boolean ignoreBadRootBlock) { final IRootBlockView rootBlock; if (!ignoreBadRootBlock && (rootBlock0 == null rootBlock1 == null)) { throw new RuntimeException( STR + (rootBlock0 == nu... | /**
* Return the chosen root block. The root block having the greater
* {@link IRootBlockView#getCommitCounter() commit counter} is chosen by
* default.
* <p>
* Note: For historical compatibility, <code>rootBlock1</code> is chosen if
* both root blocks have the same {@link IRootBlock... | Return the chosen root block. The root block having the greater <code>IRootBlockView#getCommitCounter() commit counter</code> is chosen by default. Note: For historical compatibility, <code>rootBlock1</code> is chosen if both root blocks have the same <code>IRootBlockView#getCommitCounter()</code> | chooseRootBlock | {
"repo_name": "smalyshev/blazegraph",
"path": "bigdata/src/java/com/bigdata/journal/RootBlockUtility.java",
"license": "gpl-2.0",
"size": 16562
} | [
"com.bigdata.util.ChecksumUtility"
] | import com.bigdata.util.ChecksumUtility; | import com.bigdata.util.*; | [
"com.bigdata.util"
] | com.bigdata.util; | 570,130 |
public void verify(TransactionOutput output) throws VerificationException {
if (output.parent != null) {
if (!getOutpoint().getHash().equals(output.getParentTransaction().getHash()))
throw new VerificationException("This input does not refer to the tx containing the output.");
... | void function(TransactionOutput output) throws VerificationException { if (output.parent != null) { if (!getOutpoint().getHash().equals(output.getParentTransaction().getHash())) throw new VerificationException(STR); if (getOutpoint().getIndex() != output.getIndex()) throw new VerificationException(STR); } Script pubKey... | /**
* Verifies that this input can spend the given output. Note that this input must be a part of a transaction.
* Also note that the consistency of the outpoint will be checked, even if this input has not been connected.
*
* @param output the output that this input is supposed to spend.
* @thr... | Verifies that this input can spend the given output. Note that this input must be a part of a transaction. Also note that the consistency of the outpoint will be checked, even if this input has not been connected | verify | {
"repo_name": "bitsquare/bitcoinj",
"path": "core/src/main/java/org/bitcoinj/core/TransactionInput.java",
"license": "apache-2.0",
"size": 21602
} | [
"org.bitcoinj.script.Script"
] | import org.bitcoinj.script.Script; | import org.bitcoinj.script.*; | [
"org.bitcoinj.script"
] | org.bitcoinj.script; | 2,154,961 |
public Set<Stmt> getCollectedSinks() {
return collectedSinks;
} | Set<Stmt> function() { return collectedSinks; } | /**
* Gets the concrete instances of sinks that have been collected inside
* the app. This method returns null if source and sink logging has not
* been enabled (see InfoflowConfiguration.setLogSourcesAndSinks()).
* @return The set of concrete sink instances in the app
*/ | Gets the concrete instances of sinks that have been collected inside the app. This method returns null if source and sink logging has not been enabled (see InfoflowConfiguration.setLogSourcesAndSinks()) | getCollectedSinks | {
"repo_name": "thomasbrueggemann/automated-privacy-risk-mhealth",
"path": "analyze/tools/flowdroid/soot-infoflow-android-develop/src/soot/jimple/infoflow/android/SetupApplication.java",
"license": "mit",
"size": 29544
} | [
"java.util.Set"
] | import java.util.Set; | import java.util.*; | [
"java.util"
] | java.util; | 2,241,328 |
public Dimension getPreferredSize() {
// multiply the DV preferred size by the initial ov zoom
int height = StringConverter.toInt(EProperties.getInstance().getProperty("INITIAL_OV_HEIGHT"));
Skin skin = (Skin) Status.SKIN.getValue();
int lod = skin.getLodByHeight(height);
Configuration config = (Configura... | Dimension function() { int height = StringConverter.toInt(EProperties.getInstance().getProperty(STR)); Skin skin = (Skin) Status.SKIN.getValue(); int lod = skin.getLodByHeight(height); Configuration config = (Configuration) Status.CONFIGURATION.getValue(); if (config == null) { return new Dimension(0, 0); } Descriptor ... | /**
* Returns the preferred Size for this ovPanel. This method will be called
* during initializing the related ovWindow.
*/ | Returns the preferred Size for this ovPanel. This method will be called during initializing the related ovWindow | getPreferredSize | {
"repo_name": "kinnla/eniac",
"path": "src/eniac/window/OVPanel.java",
"license": "gpl-3.0",
"size": 9077
} | [
"java.awt.Dimension"
] | import java.awt.Dimension; | import java.awt.*; | [
"java.awt"
] | java.awt; | 640,900 |
public void fillUpDispersion(TableName tableName,
SnapshotOfRegionAssignmentFromMeta snapshot, FavoredNodesPlan newPlan) {
// Set the table name
this.tableName = tableName;
// Get all the regions for this table
List<HRegionInfo> regionInfoList = snapshot.getTableToRegionMap().get(
tableN... | void function(TableName tableName, SnapshotOfRegionAssignmentFromMeta snapshot, FavoredNodesPlan newPlan) { this.tableName = tableName; List<HRegionInfo> regionInfoList = snapshot.getTableToRegionMap().get( tableName); this.totalRegions = regionInfoList.size(); FavoredNodesPlan plan = null; if (newPlan == null) { plan ... | /**
* Use this to project the dispersion scores
* @param tableName
* @param snapshot
* @param newPlan
*/ | Use this to project the dispersion scores | fillUpDispersion | {
"repo_name": "gustavoanatoly/hbase",
"path": "hbase-server/src/main/java/org/apache/hadoop/hbase/master/AssignmentVerificationReport.java",
"license": "apache-2.0",
"size": 24778
} | [
"java.util.HashMap",
"java.util.HashSet",
"java.util.List",
"java.util.Map",
"java.util.Set",
"org.apache.hadoop.hbase.HRegionInfo",
"org.apache.hadoop.hbase.ServerName",
"org.apache.hadoop.hbase.TableName",
"org.apache.hadoop.hbase.favored.FavoredNodeAssignmentHelper",
"org.apache.hadoop.hbase.fa... | import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Set; import org.apache.hadoop.hbase.HRegionInfo; import org.apache.hadoop.hbase.ServerName; import org.apache.hadoop.hbase.TableName; import org.apache.hadoop.hbase.favored.FavoredNodeAssignmentHelper; impo... | import java.util.*; import org.apache.hadoop.hbase.*; import org.apache.hadoop.hbase.favored.*; | [
"java.util",
"org.apache.hadoop"
] | java.util; org.apache.hadoop; | 1,832,842 |
public static ReportPoint pointFromKeyAndDigest(HistogramKey histogramKey, AgentDigest agentDigest) {
return ReportPoint.newBuilder()
.setTimestamp(histogramKey.getBinTimeMillis())
.setMetric(histogramKey.getMetric())
.setHost(histogramKey.getSource())
.setAnnotations(histogramKey.... | static ReportPoint function(HistogramKey histogramKey, AgentDigest agentDigest) { return ReportPoint.newBuilder() .setTimestamp(histogramKey.getBinTimeMillis()) .setMetric(histogramKey.getMetric()) .setHost(histogramKey.getSource()) .setAnnotations(histogramKey.getTagsAsMap()) .setTable("dummy") .setValue(agentDigest.t... | /**
* Creates a {@link ReportPoint} from a {@link HistogramKey} - {@link AgentDigest} pair
*
* @param histogramKey the key, defining metric, source, annotations, duration and start-time
* @param agentDigest the digest defining the centroids
* @return the corresponding point
*/ | Creates a <code>ReportPoint</code> from a <code>HistogramKey</code> - <code>AgentDigest</code> pair | pointFromKeyAndDigest | {
"repo_name": "moribellamy/java",
"path": "proxy/src/main/java/com/wavefront/agent/histogram/Utils.java",
"license": "apache-2.0",
"size": 10332
} | [
"com.tdunning.math.stats.AgentDigest",
"org.jetbrains.annotations.NotNull",
"org.jetbrains.annotations.Nullable"
] | import com.tdunning.math.stats.AgentDigest; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; | import com.tdunning.math.stats.*; import org.jetbrains.annotations.*; | [
"com.tdunning.math",
"org.jetbrains.annotations"
] | com.tdunning.math; org.jetbrains.annotations; | 956,518 |
@Bean
public AuthenticationTokenProcessingFilter authenticationTokenProcessingFilter() {
return new AuthenticationTokenProcessingFilter(
authenticationExceptionEntryPoint());
} | AuthenticationTokenProcessingFilter function() { return new AuthenticationTokenProcessingFilter( authenticationExceptionEntryPoint()); } | /**
* Produces a LMFAccessDeniedHandler.
*
* @return
*/ | Produces a LMFAccessDeniedHandler | authenticationTokenProcessingFilter | {
"repo_name": "pon-prisma/PrismaDemo",
"path": "BusinessLayer/src/main/java/it/prisma/businesslayer/bizws/config/security/SecurityConfiguration.java",
"license": "apache-2.0",
"size": 8004
} | [
"it.prisma.businesslayer.bizws.config.security.authentication.AuthenticationTokenProcessingFilter"
] | import it.prisma.businesslayer.bizws.config.security.authentication.AuthenticationTokenProcessingFilter; | import it.prisma.businesslayer.bizws.config.security.authentication.*; | [
"it.prisma.businesslayer"
] | it.prisma.businesslayer; | 891,241 |
@GET
@Produces(MediaType.APPLICATION_JSON)
@Path("/{alertId}/triggers/{triggerId}")
@Description("Returns a trigger by its ID.")
public TriggerDto getTriggerById(@Context HttpServletRequest req,
@PathParam("alertId") BigInteger alertId,
@PathParam("triggerId") BigInteger triggerId) {... | @Produces(MediaType.APPLICATION_JSON) @Path(STR) @Description(STR) TriggerDto function(@Context HttpServletRequest req, @PathParam(STR) BigInteger alertId, @PathParam(STR) BigInteger triggerId) { if (alertId == null alertId.compareTo(BigInteger.ZERO) < 1) { throw new WebApplicationException(STR, Status.BAD_REQUEST); } ... | /**
* Returns the trigger for a given alert Id and trigger Id.
*
* @param req The HttpServlet request object. Cannot be null.
* @param alertId The alert Id. Cannot be null and must be a positive non-zero number.
* @param triggerId The trigger Id. Cannot be null and must be a po... | Returns the trigger for a given alert Id and trigger Id | getTriggerById | {
"repo_name": "prestonfff/Argus",
"path": "ArgusWebServices/src/main/java/com/salesforce/dva/argus/ws/resources/AlertResources.java",
"license": "bsd-3-clause",
"size": 47649
} | [
"com.salesforce.dva.argus.entity.Alert",
"com.salesforce.dva.argus.entity.PrincipalUser",
"com.salesforce.dva.argus.entity.Trigger",
"com.salesforce.dva.argus.ws.annotation.Description",
"com.salesforce.dva.argus.ws.dto.TriggerDto",
"java.math.BigInteger",
"javax.servlet.http.HttpServletRequest",
"jav... | import com.salesforce.dva.argus.entity.Alert; import com.salesforce.dva.argus.entity.PrincipalUser; import com.salesforce.dva.argus.entity.Trigger; import com.salesforce.dva.argus.ws.annotation.Description; import com.salesforce.dva.argus.ws.dto.TriggerDto; import java.math.BigInteger; import javax.servlet.http.HttpSer... | import com.salesforce.dva.argus.entity.*; import com.salesforce.dva.argus.ws.annotation.*; import com.salesforce.dva.argus.ws.dto.*; import java.math.*; import javax.servlet.http.*; import javax.ws.rs.*; import javax.ws.rs.core.*; | [
"com.salesforce.dva",
"java.math",
"javax.servlet",
"javax.ws"
] | com.salesforce.dva; java.math; javax.servlet; javax.ws; | 1,382,989 |
public void lineTo(int x, int y) {
addStep(new LineTo(false, x, y));
issueRedraw(false);
} | void function(int x, int y) { addStep(new LineTo(false, x, y)); issueRedraw(false); } | /**
* Draw a line from the current point to the given absolute point.
*
* @param x
* an absolute x-coordinate in pixels
* @param y
* an absolute y-coordinate in pixels
*/ | Draw a line from the current point to the given absolute point | lineTo | {
"repo_name": "henrikerola/gwt-graphics",
"path": "src/org/vaadin/gwtgraphics/client/shape/Path.java",
"license": "apache-2.0",
"size": 11572
} | [
"org.vaadin.gwtgraphics.client.shape.path.LineTo"
] | import org.vaadin.gwtgraphics.client.shape.path.LineTo; | import org.vaadin.gwtgraphics.client.shape.path.*; | [
"org.vaadin.gwtgraphics"
] | org.vaadin.gwtgraphics; | 1,001,288 |
@Override
public void setWorkerNametoPartitions(BSPJobID jobId, int partitionId,
String hostName) {
this.runningJobtoWorkerAgent.get(jobId).setWorkerNametoPartitions(jobId,
partitionId, hostName);
}
| void function(BSPJobID jobId, int partitionId, String hostName) { this.runningJobtoWorkerAgent.get(jobId).setWorkerNametoPartitions(jobId, partitionId, hostName); } | /**
* This method is used to set mapping table that shows the partition to the
* worker. According to Job ID get WorkerAgentForJob and call its method to
* set this mapping table.
* @param jobId BSPJobID
* @param partitionId id of partition
* @param hostName the name of host
*/ | This method is used to set mapping table that shows the partition to the worker. According to Job ID get WorkerAgentForJob and call its method to set this mapping table | setWorkerNametoPartitions | {
"repo_name": "LiuJianan/Graduate-Graph",
"path": "src/java/com/chinamobile/bcbsp/workermanager/WorkerManager.java",
"license": "apache-2.0",
"size": 72981
} | [
"com.chinamobile.bcbsp.util.BSPJobID"
] | import com.chinamobile.bcbsp.util.BSPJobID; | import com.chinamobile.bcbsp.util.*; | [
"com.chinamobile.bcbsp"
] | com.chinamobile.bcbsp; | 1,787,950 |
private void acceptGraph(OWLNamedIndividual graphInd, OWLEntityRemover remover) {
// visit graph
graphInd.accept(remover);
// visit all nodes
NodeSet<OWLNamedIndividual> nodesNodeSet = reasoner
.getObjectPropertyValues(graphInd, dataFactory.getHasNode());
for (OWLNamedIndividual nodeIndi : nodesNodeSet... | void function(OWLNamedIndividual graphInd, OWLEntityRemover remover) { graphInd.accept(remover); NodeSet<OWLNamedIndividual> nodesNodeSet = reasoner .getObjectPropertyValues(graphInd, dataFactory.getHasNode()); for (OWLNamedIndividual nodeIndi : nodesNodeSet.getFlattened()) { nodeIndi.accept(remover); NodeSet<OWLNamedI... | /**
* Add remover to the graph, its nodes and edges When the remover will apply
* its changes, the graph, edges and nodes will be deleted.
*
* @param graphFullName
* the name of the graph indi, e.g. math_KRC
* @param pm
* the prefix of the indi, e.g.
* http://www.cs.tei... | Add remover to the graph, its nodes and edges When the remover will apply its changes, the graph, edges and nodes will be deleted | acceptGraph | {
"repo_name": "tsiakmaki/jcropeditor",
"path": "src/edu/teilar/jcropeditor/OntologySynchronizer.java",
"license": "gpl-3.0",
"size": 115156
} | [
"org.semanticweb.owlapi.model.OWLNamedIndividual",
"org.semanticweb.owlapi.reasoner.NodeSet",
"org.semanticweb.owlapi.util.OWLEntityRemover"
] | import org.semanticweb.owlapi.model.OWLNamedIndividual; import org.semanticweb.owlapi.reasoner.NodeSet; import org.semanticweb.owlapi.util.OWLEntityRemover; | import org.semanticweb.owlapi.model.*; import org.semanticweb.owlapi.reasoner.*; import org.semanticweb.owlapi.util.*; | [
"org.semanticweb.owlapi"
] | org.semanticweb.owlapi; | 1,794,242 |
public int update(byte[] input, int inputOffset, int inputLen,
byte[] output, int outputOffset) throws ShortBufferException {
checkState();
return OpenSslNative.updateByteArray(context, input, inputOffset,
inputLen, output, outputOffset, output.length - outputOffset);
... | int function(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset) throws ShortBufferException { checkState(); return OpenSslNative.updateByteArray(context, input, inputOffset, inputLen, output, outputOffset, output.length - outputOffset); } | /**
* Continues a multiple-part encryption/decryption operation. The data is
* encrypted or decrypted, depending on how this cipher was initialized.
*
* @param input the input byte array
* @param inputOffset the offset in input where the input starts
* @param inputLen the input length
... | Continues a multiple-part encryption/decryption operation. The data is encrypted or decrypted, depending on how this cipher was initialized | update | {
"repo_name": "kexianda/commons-crypto",
"path": "src/main/java/org/apache/commons/crypto/cipher/OpenSsl.java",
"license": "apache-2.0",
"size": 14180
} | [
"javax.crypto.ShortBufferException"
] | import javax.crypto.ShortBufferException; | import javax.crypto.*; | [
"javax.crypto"
] | javax.crypto; | 1,770,075 |
protected TimeLineController getController() {
return controller;
} | TimeLineController function() { return controller; } | /**
* Get the TimelineController for this view.
*
* @return The TimelineController for this view.
*/ | Get the TimelineController for this view | getController | {
"repo_name": "esaunders/autopsy",
"path": "Core/src/org/sleuthkit/autopsy/timeline/ui/AbstractTimeLineView.java",
"license": "apache-2.0",
"size": 12746
} | [
"org.sleuthkit.autopsy.timeline.TimeLineController"
] | import org.sleuthkit.autopsy.timeline.TimeLineController; | import org.sleuthkit.autopsy.timeline.*; | [
"org.sleuthkit.autopsy"
] | org.sleuthkit.autopsy; | 642,248 |
public DataNode setRoleScalar(String role); | DataNode function(String role); | /**
* Role of user responsible for this entry.
* Suggested roles are "local_contact",
* "principal_investigator", and "proposer"
*
* @param role the role
*/ | Role of user responsible for this entry. Suggested roles are "local_contact", "principal_investigator", and "proposer" | setRoleScalar | {
"repo_name": "xen-0/dawnsci",
"path": "org.eclipse.dawnsci.nexus/autogen/org/eclipse/dawnsci/nexus/NXuser.java",
"license": "epl-1.0",
"size": 6031
} | [
"org.eclipse.dawnsci.analysis.api.tree.DataNode"
] | import org.eclipse.dawnsci.analysis.api.tree.DataNode; | import org.eclipse.dawnsci.analysis.api.tree.*; | [
"org.eclipse.dawnsci"
] | org.eclipse.dawnsci; | 2,484,896 |
public void setupKeyStore()
throws Exception
{
try {
PasswordProvider pp = passwordProvider;
if (pp == null)
pp = ConnectionManager.getInstance().getPasswordProvider();
String ksf = properties.getProperty(USESSLCONTEXT);
String... | void function() throws Exception { try { PasswordProvider pp = passwordProvider; if (pp == null) pp = ConnectionManager.getInstance().getPasswordProvider(); String ksf = properties.getProperty(USESSLCONTEXT); String p = pp.getPassword(SSLPASS); if (p == null) { p = properties.getProperty(SSLPASS); if (p == null) p = ST... | /**
* Method to load the key store, mainly for subclasses - applications should
* call SpineSecurityContext.init() instead, which calls this, setupTrustStore()
* and createContext() internally.
* @throws Exception
*/ | Method to load the key store, mainly for subclasses - applications should call SpineSecurityContext.init() instead, which calls this, setupTrustStore() and createContext() internally | setupKeyStore | {
"repo_name": "DamianJMurphy/SpineTools-Java",
"path": "SpineTools-Java/src/org/warlock/spine/connection/SpineSecurityContext.java",
"license": "apache-2.0",
"size": 14408
} | [
"java.io.FileInputStream",
"java.io.IOException",
"java.security.KeyStoreException",
"java.security.NoSuchAlgorithmException",
"java.security.cert.CertificateException"
] | import java.io.FileInputStream; import java.io.IOException; import java.security.KeyStoreException; import java.security.NoSuchAlgorithmException; import java.security.cert.CertificateException; | import java.io.*; import java.security.*; import java.security.cert.*; | [
"java.io",
"java.security"
] | java.io; java.security; | 843,517 |
@Test
public void testMigrateInstanceEnd() {
InstancePort instancePort = instancePort1;
InstancePort migratingPort = instancePort.updateState(MIGRATING);
target.createInstancePort(migratingPort);
InstancePort migratedPort = instancePort.updateState(MIGRATED);
target.upda... | void function() { InstancePort instancePort = instancePort1; InstancePort migratingPort = instancePort.updateState(MIGRATING); target.createInstancePort(migratingPort); InstancePort migratedPort = instancePort.updateState(MIGRATED); target.updateInstancePort(migratedPort); assertEquals(STR, 1, target.instancePorts().si... | /**
* Tests if it triggers the instance migration end event.
*/ | Tests if it triggers the instance migration end event | testMigrateInstanceEnd | {
"repo_name": "gkatsikas/onos",
"path": "apps/openstacknetworking/app/src/test/java/org/onosproject/openstacknetworking/impl/InstancePortManagerTest.java",
"license": "apache-2.0",
"size": 18594
} | [
"org.junit.Assert",
"org.onosproject.openstacknetworking.api.InstancePort"
] | import org.junit.Assert; import org.onosproject.openstacknetworking.api.InstancePort; | import org.junit.*; import org.onosproject.openstacknetworking.api.*; | [
"org.junit",
"org.onosproject.openstacknetworking"
] | org.junit; org.onosproject.openstacknetworking; | 1,177,939 |
public void setCache(DataFileCache cache) {
throw Error.runtimeError(ErrorCode.U_S0500, "RowStoreAVLDisk");
} | void function(DataFileCache cache) { throw Error.runtimeError(ErrorCode.U_S0500, STR); } | /**
* Works only for TEXT TABLE as others need specific spaceManager
*/ | Works only for TEXT TABLE as others need specific spaceManager | setCache | {
"repo_name": "Julien35/dev-courses",
"path": "tutoriel-spring-mvc/lib/hsqldb/src/org/hsqldb/persist/RowStoreAVLDisk.java",
"license": "mit",
"size": 13377
} | [
"org.hsqldb.error.Error",
"org.hsqldb.error.ErrorCode"
] | import org.hsqldb.error.Error; import org.hsqldb.error.ErrorCode; | import org.hsqldb.error.*; | [
"org.hsqldb.error"
] | org.hsqldb.error; | 1,362,302 |
public void finish(
int event,
DBBroker broker,
Txn transaction,
XmldbURI documentPath,
DocumentImpl document); | void function( int event, DBBroker broker, Txn transaction, XmldbURI documentPath, DocumentImpl document); | /**
* This method is called after the operation completed. At this point, the document has already
* been stored.
*
* @param event the type of event that triggered this call (see the constants defined in this interface).
* @param broker the database instance used to process the current action.... | This method is called after the operation completed. At this point, the document has already been stored | finish | {
"repo_name": "kingargyle/exist-1.4.x",
"path": "src/org/exist/collections/triggers/DocumentTrigger.java",
"license": "lgpl-2.1",
"size": 7931
} | [
"org.exist.dom.DocumentImpl",
"org.exist.storage.DBBroker",
"org.exist.storage.txn.Txn",
"org.exist.xmldb.XmldbURI"
] | import org.exist.dom.DocumentImpl; import org.exist.storage.DBBroker; import org.exist.storage.txn.Txn; import org.exist.xmldb.XmldbURI; | import org.exist.dom.*; import org.exist.storage.*; import org.exist.storage.txn.*; import org.exist.xmldb.*; | [
"org.exist.dom",
"org.exist.storage",
"org.exist.xmldb"
] | org.exist.dom; org.exist.storage; org.exist.xmldb; | 984,626 |
public Map<QName, Marshaller> getMarshallers() {
return Collections.unmodifiableMap(marshallers);
} | Map<QName, Marshaller> function() { return Collections.unmodifiableMap(marshallers); } | /**
* Gets an immutable listing of all the Marshallers currently registered.
*
* @return a listing of all the Marshallers currently registered
*/ | Gets an immutable listing of all the Marshallers currently registered | getMarshallers | {
"repo_name": "Safewhere/kombit-service-java",
"path": "XmlTooling/src/org/opensaml/xml/io/MarshallerFactory.java",
"license": "mit",
"size": 4322
} | [
"java.util.Collections",
"java.util.Map",
"javax.xml.namespace.QName"
] | import java.util.Collections; import java.util.Map; import javax.xml.namespace.QName; | import java.util.*; import javax.xml.namespace.*; | [
"java.util",
"javax.xml"
] | java.util; javax.xml; | 2,741,737 |
public TargetPatternEvaluator newTargetPatternEvaluator() {
TargetPatternEvaluator result = getPackageManager().newTargetPatternEvaluator();
result.updateOffset(relativeWorkingDirectory);
return result;
} | TargetPatternEvaluator function() { TargetPatternEvaluator result = getPackageManager().newTargetPatternEvaluator(); result.updateOffset(relativeWorkingDirectory); return result; } | /**
* Creates and returns a new target pattern parser.
*/ | Creates and returns a new target pattern parser | newTargetPatternEvaluator | {
"repo_name": "juhalindfors/bazel-patches",
"path": "src/main/java/com/google/devtools/build/lib/runtime/CommandEnvironment.java",
"license": "apache-2.0",
"size": 25414
} | [
"com.google.devtools.build.lib.pkgcache.TargetPatternEvaluator"
] | import com.google.devtools.build.lib.pkgcache.TargetPatternEvaluator; | import com.google.devtools.build.lib.pkgcache.*; | [
"com.google.devtools"
] | com.google.devtools; | 1,101,415 |
public CashDetailTypeCode getCashReceiptCoinTypeCode() {
return getCashDetailTypeCodeByCode(CASH_RECEIPT_CHECK);
} | CashDetailTypeCode function() { return getCashDetailTypeCodeByCode(CASH_RECEIPT_CHECK); } | /**
* Gets the associated coin type code for a CashReceipt.
*
* @return Returns the CashReceipt coin type code.
* @see org.kuali.rice.krad.service.CashDetailTypeCode#getCashReceiptCoinTypeCode()
*/ | Gets the associated coin type code for a CashReceipt | getCashReceiptCoinTypeCode | {
"repo_name": "bhutchinson/kfs",
"path": "kfs-core/src/main/java/org/kuali/kfs/fp/service/impl/CashDetailTypeCodeServiceImpl.java",
"license": "agpl-3.0",
"size": 3867
} | [
"org.kuali.kfs.fp.businessobject.CashDetailTypeCode"
] | import org.kuali.kfs.fp.businessobject.CashDetailTypeCode; | import org.kuali.kfs.fp.businessobject.*; | [
"org.kuali.kfs"
] | org.kuali.kfs; | 959,547 |
public ExecutableRunner<T> putProperty(String key, String value) {
if (this.properties == null) {
this.properties = ImmutableMap.builder();
}
this.properties
.put(Preconditions.checkNotNull(key, "Property key may not be null"),
Precondition... | ExecutableRunner<T> function(String key, String value) { if (this.properties == null) { this.properties = ImmutableMap.builder(); } this.properties .put(Preconditions.checkNotNull(key, STR), Preconditions.checkNotNull(value, STR + key + STR)); return this; } | /**
* Sets the specified property on the execution to be created.
*
* @param key property key to set
* @param value property value to set
*
* @return the same {@code Builder} object
*/ | Sets the specified property on the execution to be created | putProperty | {
"repo_name": "andyshinn/dx-toolkit",
"path": "src/java/src/main/java/com/dnanexus/ExecutableRunner.java",
"license": "apache-2.0",
"size": 16214
} | [
"com.google.common.base.Preconditions",
"com.google.common.collect.ImmutableMap"
] | import com.google.common.base.Preconditions; import com.google.common.collect.ImmutableMap; | import com.google.common.base.*; import com.google.common.collect.*; | [
"com.google.common"
] | com.google.common; | 184,878 |
As of version 3.4 a string value for objHandler is deprecated.
* @param strEventId the event type(s).
* @param objHandler if an object, the instance to notify of events (objFunction is required); if a string, the JSX id of the instance to notify of events (objFunction is required), must exist in the same Serv... | As of version 3.4 a string value for objHandler is deprecated. * @param strEventId the event type(s). * @param objHandler if an object, the instance to notify of events (objFunction is required); if a string, the JSX id of the instance to notify of events (objFunction is required), must exist in the same Server; if a f... | /**
* Subscribes an object or function to a type of event published by this object.
As of version 3.4 a string value for objHandler is deprecated.
* @param strEventId the event type(s).
* @param objHandler if an object, the instance to notify of events (objFunction is required); if a string, the JSX id ... | Subscribes an object or function to a type of event published by this object | subscribe | {
"repo_name": "burris/dwr",
"path": "ui/gi/generated/java/jsx3/app/Model.java",
"license": "apache-2.0",
"size": 102680
} | [
"org.directwebremoting.ScriptBuffer",
"org.directwebremoting.ScriptSessions"
] | import org.directwebremoting.ScriptBuffer; import org.directwebremoting.ScriptSessions; | import org.directwebremoting.*; | [
"org.directwebremoting"
] | org.directwebremoting; | 568,006 |
void print(Appendable appendable, MonetaryAmount amount)
throws IOException; | void print(Appendable appendable, MonetaryAmount amount) throws IOException; | /**
* Formats the given {@link javax.money.MonetaryAmount} to an {@link Appendable}.
* @param appendable the {@link Appendable}, not {@code null}.
* @param amount the {@link MonetaryAmount} to be formatted, not {@code null}.
* @throws IOException thrown by the {@link Appendable} on appending.
*/ | Formats the given <code>javax.money.MonetaryAmount</code> to an <code>Appendable</code> | print | {
"repo_name": "JavaMoney/jsr354-ri-bp",
"path": "src/main/java/org/javamoney/moneta/spi/format/FormatToken.java",
"license": "apache-2.0",
"size": 1666
} | [
"java.io.IOException",
"javax.money.MonetaryAmount"
] | import java.io.IOException; import javax.money.MonetaryAmount; | import java.io.*; import javax.money.*; | [
"java.io",
"javax.money"
] | java.io; javax.money; | 1,302,155 |
public void arm(boolean arm, AbstractCommandListener listener) {
arm(arm, false, listener);
} | void function(boolean arm, AbstractCommandListener listener) { arm(arm, false, listener); } | /**
* Arm or disarm the connected drone.
*
* @param arm true to arm, false to disarm.
* @param listener Register a callback to receive update of the command execution state.
*/ | Arm or disarm the connected drone | arm | {
"repo_name": "offbye/Tower",
"path": "Android/src/com/o3dr/android/client/apis/VehicleApi.java",
"license": "gpl-3.0",
"size": 10448
} | [
"com.o3dr.services.android.lib.model.AbstractCommandListener"
] | import com.o3dr.services.android.lib.model.AbstractCommandListener; | import com.o3dr.services.android.lib.model.*; | [
"com.o3dr.services"
] | com.o3dr.services; | 1,889,924 |
@Override
public Request<DescribeReservedInstancesOfferingsRequest> getDryRunRequest() {
Request<DescribeReservedInstancesOfferingsRequest> request = new DescribeReservedInstancesOfferingsRequestMarshaller().marshall(this);
request.addParameter("DryRun", Boolean.toString(true));
return r... | Request<DescribeReservedInstancesOfferingsRequest> function() { Request<DescribeReservedInstancesOfferingsRequest> request = new DescribeReservedInstancesOfferingsRequestMarshaller().marshall(this); request.addParameter(STR, Boolean.toString(true)); return request; } | /**
* This method is intended for internal use only. Returns the marshaled request configured with additional
* parameters to enable operation dry-run.
*/ | This method is intended for internal use only. Returns the marshaled request configured with additional parameters to enable operation dry-run | getDryRunRequest | {
"repo_name": "jentfoo/aws-sdk-java",
"path": "aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/DescribeReservedInstancesOfferingsRequest.java",
"license": "apache-2.0",
"size": 71517
} | [
"com.amazonaws.Request",
"com.amazonaws.services.ec2.model.transform.DescribeReservedInstancesOfferingsRequestMarshaller"
] | import com.amazonaws.Request; import com.amazonaws.services.ec2.model.transform.DescribeReservedInstancesOfferingsRequestMarshaller; | import com.amazonaws.*; import com.amazonaws.services.ec2.model.transform.*; | [
"com.amazonaws",
"com.amazonaws.services"
] | com.amazonaws; com.amazonaws.services; | 1,091,553 |
public void setEdgeHidingMode(final EdgeHidingMode value) {
Preconditions.checkNotNull(value, "IE00877: Edge hiding mode can't be null");
if (value == getEdgeHidingMode()) {
return;
}
if (type == null) {
edgeHidingMode = value;
} else {
type.setEdgeHidingMode(value.ordinal());
... | void function(final EdgeHidingMode value) { Preconditions.checkNotNull(value, STR); if (value == getEdgeHidingMode()) { return; } if (type == null) { edgeHidingMode = value; } else { type.setEdgeHidingMode(value.ordinal()); } for (final IZyGraphEdgeSettingsListener listener : listeners) { try { listener.changedEdgeHidi... | /**
* Changes the current edge hiding mode setting.
*
* @param value The new value of the edge hiding mode setting.
*/ | Changes the current edge hiding mode setting | setEdgeHidingMode | {
"repo_name": "tempbottle/binnavi",
"path": "src/main/java/com/google/security/zynamics/binnavi/ZyGraph/Settings/ZyGraphEdgeSettings.java",
"license": "apache-2.0",
"size": 7695
} | [
"com.google.common.base.Preconditions",
"com.google.security.zynamics.binnavi.CUtilityFunctions",
"com.google.security.zynamics.zylib.gui.zygraph.EdgeHidingMode"
] | import com.google.common.base.Preconditions; import com.google.security.zynamics.binnavi.CUtilityFunctions; import com.google.security.zynamics.zylib.gui.zygraph.EdgeHidingMode; | import com.google.common.base.*; import com.google.security.zynamics.binnavi.*; import com.google.security.zynamics.zylib.gui.zygraph.*; | [
"com.google.common",
"com.google.security"
] | com.google.common; com.google.security; | 1,371,421 |
private LeafQueue getAndCheckLeafQueue(String queue) throws YarnException {
CSQueue ret = this.getQueue(queue);
if (ret == null) {
throw new YarnException("The specified Queue: " + queue
+ " doesn't exist");
}
if (!(ret instanceof LeafQueue)) {
throw new YarnException("The specif... | LeafQueue function(String queue) throws YarnException { CSQueue ret = this.getQueue(queue); if (ret == null) { throw new YarnException(STR + queue + STR); } if (!(ret instanceof LeafQueue)) { throw new YarnException(STR + queue + STR); } return (LeafQueue) ret; } | /**
* Check that the String provided in input is the name of an existing,
* LeafQueue, if successful returns the queue.
*
* @param queue
* @return the LeafQueue
* @throws YarnException
*/ | Check that the String provided in input is the name of an existing, LeafQueue, if successful returns the queue | getAndCheckLeafQueue | {
"repo_name": "piaoyu/hadoop",
"path": "hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/capacity/CapacityScheduler.java",
"license": "apache-2.0",
"size": 71610
} | [
"org.apache.hadoop.yarn.exceptions.YarnException"
] | import org.apache.hadoop.yarn.exceptions.YarnException; | import org.apache.hadoop.yarn.exceptions.*; | [
"org.apache.hadoop"
] | org.apache.hadoop; | 1,329,552 |
public boolean updateInfoColumns (ArrayList<Info_Column> columns,
StringBuffer sqlFrom, StringBuffer sqlOrder)
{
return false;
} // updateInfoColumns | boolean function (ArrayList<Info_Column> columns, StringBuffer sqlFrom, StringBuffer sqlOrder) { return false; } | /**
* Update Info Window Columns.
* - add new Columns
* - remove columns
* - change dispay sequence
* @param columns array of columns
* @param sqlFrom from clause, can be modified
* @param sqlOrder order by clause, can me modified
* @return true if you updated columns, sequence or sql From clause
... | Update Info Window Columns. - add new Columns - remove columns - change dispay sequence | updateInfoColumns | {
"repo_name": "arthurmelo88/palmetalADP",
"path": "palmetal_to_lbrk/base/src/org/adempierelbr/validator/ValidatorOrder.java",
"license": "gpl-2.0",
"size": 12167
} | [
"java.util.ArrayList"
] | import java.util.ArrayList; | import java.util.*; | [
"java.util"
] | java.util; | 449,095 |
@Override
public CqQuery[] getCqs() {
CqQuery[] cqs = null;
try {
return toArray(getCqService().getAllCqs());
} catch (CqException cqe) {
if (logger.isDebugEnabled()) {
logger.debug("Unable to getAllCqs. Error :{}", cqe.getMessage(), cqe);
}
}
return cqs;
} | CqQuery[] function() { CqQuery[] cqs = null; try { return toArray(getCqService().getAllCqs()); } catch (CqException cqe) { if (logger.isDebugEnabled()) { logger.debug(STR, cqe.getMessage(), cqe); } } return cqs; } | /**
* Retrieve all CqQuerys created by this VM.
*
* @return null if there are no cqs.
*/ | Retrieve all CqQuerys created by this VM | getCqs | {
"repo_name": "smgoller/geode",
"path": "geode-core/src/main/java/org/apache/geode/cache/query/internal/DefaultQueryService.java",
"license": "apache-2.0",
"size": 39448
} | [
"org.apache.geode.cache.query.CqException",
"org.apache.geode.cache.query.CqQuery"
] | import org.apache.geode.cache.query.CqException; import org.apache.geode.cache.query.CqQuery; | import org.apache.geode.cache.query.*; | [
"org.apache.geode"
] | org.apache.geode; | 1,536,920 |
public static MozuClient<List<com.mozu.api.contracts.commerceruntime.commerce.ExtendedProperty>> getExtendedPropertiesClient(String orderId) throws Exception
{
return getExtendedPropertiesClient( orderId, null);
}
| static MozuClient<List<com.mozu.api.contracts.commerceruntime.commerce.ExtendedProperty>> function(String orderId) throws Exception { return getExtendedPropertiesClient( orderId, null); } | /**
*
* <p><pre><code>
* MozuClient<List<com.mozu.api.contracts.commerceruntime.commerce.ExtendedProperty>> mozuClient=GetExtendedPropertiesClient( orderId);
* client.setBaseAddress(url);
* client.executeRequest();
* ExtendedProperty extendedProperty = client.Result();
* </code></pre></p>
* @pa... | <code><code> MozuClient> mozuClient=GetExtendedPropertiesClient( orderId); client.setBaseAddress(url); client.executeRequest(); ExtendedProperty extendedProperty = client.Result(); </code></code> | getExtendedPropertiesClient | {
"repo_name": "Mozu/mozu-java",
"path": "mozu-javaasync-core/src/main/java/com/mozu/api/clients/commerce/orders/ExtendedPropertyClient.java",
"license": "mit",
"size": 16941
} | [
"com.mozu.api.MozuClient",
"java.util.List"
] | import com.mozu.api.MozuClient; import java.util.List; | import com.mozu.api.*; import java.util.*; | [
"com.mozu.api",
"java.util"
] | com.mozu.api; java.util; | 369,531 |
public Set<String> getWatchedDirectories();
| Set<String> function(); | /**
* Returns a set of the absolute directory names that are being watched
* @return a set of the absolute directory names that are being watched
*/ | Returns a set of the absolute directory names that are being watched | getWatchedDirectories | {
"repo_name": "nickman/heliosJMX",
"path": "src/main/java/com/heliosapm/filewatcher/ScriptFileWatcherMXBean.java",
"license": "apache-2.0",
"size": 9622
} | [
"java.util.Set"
] | import java.util.Set; | import java.util.*; | [
"java.util"
] | java.util; | 1,832,908 |
public Editor edit(String key) throws IOException {
return edit(key, ANY_SEQUENCE_NUMBER);
} | Editor function(String key) throws IOException { return edit(key, ANY_SEQUENCE_NUMBER); } | /**
* Returns an editor for the entry named {@code key}, or null if another
* edit is in progress.
*/ | Returns an editor for the entry named key, or null if another edit is in progress | edit | {
"repo_name": "dgrlucky/Awesome",
"path": "library/src/main/java/com/library/common/image/DiskLruCache.java",
"license": "apache-2.0",
"size": 33896
} | [
"java.io.IOException"
] | import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 1,704,279 |
@Function(attributes = Attribute.NOT_ENUMERABLE)
public static ScriptObject sort(final Object self, final Object comparefn) {
try {
final ScriptObject sobj = (ScriptObject) self;
final long len = JSType.toUint32(sobj.getLength());
ArrayData arr... | @Function(attributes = Attribute.NOT_ENUMERABLE) static ScriptObject function(final Object self, final Object comparefn) { try { final ScriptObject sobj = (ScriptObject) self; final long len = JSType.toUint32(sobj.getLength()); ArrayData array = sobj.getArray(); if (len > 1) { final ArrayList<Object> src = new ArrayLis... | /**
* ECMA 15.4.4.11 Array.prototype.sort ( comparefn )
*
* @param self self reference
* @param comparefn element comparison function
* @return sorted array
*/ | ECMA 15.4.4.11 Array.prototype.sort ( comparefn ) | sort | {
"repo_name": "bloodstars/OpenJDK",
"path": "nashorn/src/jdk/nashorn/internal/objects/NativeArray.java",
"license": "gpl-2.0",
"size": 72127
} | [
"java.util.ArrayList",
"java.util.Iterator"
] | import java.util.ArrayList; import java.util.Iterator; | import java.util.*; | [
"java.util"
] | java.util; | 2,324,059 |
public Map<String, Settings> getGroups(String settingPrefix) throws SettingsException {
return getGroups(settingPrefix, false);
} | Map<String, Settings> function(String settingPrefix) throws SettingsException { return getGroups(settingPrefix, false); } | /**
* Returns group settings for the given setting prefix.
*/ | Returns group settings for the given setting prefix | getGroups | {
"repo_name": "fuchao01/elasticsearch",
"path": "core/src/main/java/org/elasticsearch/common/settings/Settings.java",
"license": "apache-2.0",
"size": 52409
} | [
"java.util.Map"
] | import java.util.Map; | import java.util.*; | [
"java.util"
] | java.util; | 1,345,481 |
Color getProposalSelectorBackground() {
return fProposalSelectorBackground;
} | Color getProposalSelectorBackground() { return fProposalSelectorBackground; } | /**
* Returns the custom background color of the proposal selector.
*
* @return the background of the proposal selector or <code>null</code> if not set
* @since 2.0
*/ | Returns the custom background color of the proposal selector | getProposalSelectorBackground | {
"repo_name": "elucash/eclipse-oxygen",
"path": "org.eclipse.jface.text/src/org/eclipse/jface/text/contentassist/ContentAssistant.java",
"license": "epl-1.0",
"size": 84430
} | [
"org.eclipse.swt.graphics.Color"
] | import org.eclipse.swt.graphics.Color; | import org.eclipse.swt.graphics.*; | [
"org.eclipse.swt"
] | org.eclipse.swt; | 2,193,742 |
public static MutablePropertyDataSet replicate( final QDataSet val, final int len0 ) {
return new ReplicateDataSet( val, len0 );
} | static MutablePropertyDataSet function( final QDataSet val, final int len0 ) { return new ReplicateDataSet( val, len0 ); } | /**
* returns a rank N+1 dataset by repeating the rank N dataset, so
* all records will have the same value. E.g. result.value(i,j)= val.value(j)
* @param val the rank N dataset
* @param len0 the number of times to repeat
* @return rank N+1 dataset.
*/ | returns a rank N+1 dataset by repeating the rank N dataset, so all records will have the same value. E.g. result.value(i,j)= val.value(j) | replicate | {
"repo_name": "autoplot/app",
"path": "QDataSet/src/org/das2/qds/ops/Ops.java",
"license": "gpl-2.0",
"size": 492716
} | [
"org.das2.qds.MutablePropertyDataSet",
"org.das2.qds.QDataSet",
"org.das2.qds.ReplicateDataSet"
] | import org.das2.qds.MutablePropertyDataSet; import org.das2.qds.QDataSet; import org.das2.qds.ReplicateDataSet; | import org.das2.qds.*; | [
"org.das2.qds"
] | org.das2.qds; | 524,918 |
List<Role> findRoles(); | List<Role> findRoles(); | /**
* Finds all available roles on the LDAP server.
*/ | Finds all available roles on the LDAP server | findRoles | {
"repo_name": "openengsb/openengsb",
"path": "connector/userprojectsldap/src/main/java/org/openengsb/connector/userprojects/ldap/internal/ldap/ModelManager.java",
"license": "apache-2.0",
"size": 1660
} | [
"java.util.List",
"org.openengsb.domain.userprojects.model.Role"
] | import java.util.List; import org.openengsb.domain.userprojects.model.Role; | import java.util.*; import org.openengsb.domain.userprojects.model.*; | [
"java.util",
"org.openengsb.domain"
] | java.util; org.openengsb.domain; | 2,357,244 |
public char[] getJavaTrustStorePassword() throws InvalidKeyException, NoSuchAlgorithmException,
NoSuchPaddingException, IllegalBlockSizeException, BadPaddingException, IOException; | char[] function() throws InvalidKeyException, NoSuchAlgorithmException, NoSuchPaddingException, IllegalBlockSizeException, BadPaddingException, IOException; | /**
* Returns the password to unlock the trust store keystore file.
*
* @return
*/ | Returns the password to unlock the trust store keystore file | getJavaTrustStorePassword | {
"repo_name": "amitjoy/kura",
"path": "kura/org.eclipse.kura.api/src/main/java/org/eclipse/kura/system/SystemService.java",
"license": "epl-1.0",
"size": 14909
} | [
"java.io.IOException",
"java.security.InvalidKeyException",
"java.security.NoSuchAlgorithmException",
"javax.crypto.BadPaddingException",
"javax.crypto.IllegalBlockSizeException",
"javax.crypto.NoSuchPaddingException"
] | import java.io.IOException; import java.security.InvalidKeyException; import java.security.NoSuchAlgorithmException; import javax.crypto.BadPaddingException; import javax.crypto.IllegalBlockSizeException; import javax.crypto.NoSuchPaddingException; | import java.io.*; import java.security.*; import javax.crypto.*; | [
"java.io",
"java.security",
"javax.crypto"
] | java.io; java.security; javax.crypto; | 1,109,518 |
@Test
public void testDataTypeString() {
for(int i = 0; i < 100; i++) {
StackDouble stack = new StackDouble(0);
assertEquals(stack.dataTypeString(), "Double");
}
} | void function() { for(int i = 0; i < 100; i++) { StackDouble stack = new StackDouble(0); assertEquals(stack.dataTypeString(), STR); } } | /**
* Tests the data type string getter.
*/ | Tests the data type string getter | testDataTypeString | {
"repo_name": "jessemull/MicroFlex",
"path": "src/test/java/com/github/jessemull/microflex/plate/StackDoubleTest.java",
"license": "apache-2.0",
"size": 56531
} | [
"com.github.jessemull.microflex.doubleflex.plate.StackDouble",
"org.junit.Assert"
] | import com.github.jessemull.microflex.doubleflex.plate.StackDouble; import org.junit.Assert; | import com.github.jessemull.microflex.doubleflex.plate.*; import org.junit.*; | [
"com.github.jessemull",
"org.junit"
] | com.github.jessemull; org.junit; | 255,158 |
protected void fireEditingStopped()
{
CellEditorListener[] listeners = getCellEditorListeners();
for (int index = 0; index < listeners.length; index++)
{
listeners[index].editingStopped(changeEvent);
}
} | void function() { CellEditorListener[] listeners = getCellEditorListeners(); for (int index = 0; index < listeners.length; index++) { listeners[index].editingStopped(changeEvent); } } | /**
* Notifies all registered listeners that the editing of the cell has has been
* stopped.
*/ | Notifies all registered listeners that the editing of the cell has has been stopped | fireEditingStopped | {
"repo_name": "shaotuanchen/sunflower_exp",
"path": "tools/source/gcc-4.2.4/libjava/classpath/javax/swing/AbstractCellEditor.java",
"license": "bsd-3-clause",
"size": 5763
} | [
"javax.swing.event.CellEditorListener"
] | import javax.swing.event.CellEditorListener; | import javax.swing.event.*; | [
"javax.swing"
] | javax.swing; | 821,525 |
void addValidation(Field field, String validationName, String message, Object constraint); | void addValidation(Field field, String validationName, String message, Object constraint); | /**
* Collects field validation information.
*
* @param field
* for which validation is being generated
* @param validationName
* name of validation method (see Tapestry.Validation in tapestry.js)
* @param message
* the error message to display i... | Collects field validation information | addValidation | {
"repo_name": "agileowl/tapestry-5",
"path": "tapestry-core/src/main/java/org/apache/tapestry5/services/ClientBehaviorSupport.java",
"license": "apache-2.0",
"size": 6729
} | [
"org.apache.tapestry5.Field"
] | import org.apache.tapestry5.Field; | import org.apache.tapestry5.*; | [
"org.apache.tapestry5"
] | org.apache.tapestry5; | 613,698 |
public static SlidesResult addANewSlideInAPowerPointPresentation(String fileName) throws InvalidKeyException, NoSuchAlgorithmException, IOException {
SlidesResult slides = null;
if(fileName == null || fileName.length() == 0) {
throw new IllegalArgumentException("File name cannot be null or empty");
}... | static SlidesResult function(String fileName) throws InvalidKeyException, NoSuchAlgorithmException, IOException { SlidesResult slides = null; if(fileName == null fileName.length() == 0) { throw new IllegalArgumentException(STR); } String strURL = SLIDES_URI + Uri.encode(fileName) + STR; String signedURL = Utils.sign(st... | /**
* Add a new slide in a PowerPoint presentation
* @param fileName Name of the file stored on cloud
* @throws java.security.InvalidKeyException If initialization fails because the provided key is null.
* @throws java.security.NoSuchAlgorithmException If the specified algorithm (HmacSHA1) is not available by a... | Add a new slide in a PowerPoint presentation | addANewSlideInAPowerPointPresentation | {
"repo_name": "asposeforcloud/Aspose_Cloud_SDK_For_Android",
"path": "asposecloudsdk/src/main/java/com/aspose/cloud/sdk/slides/api/Slides.java",
"license": "mit",
"size": 30607
} | [
"android.net.Uri",
"com.aspose.cloud.sdk.common.Utils",
"com.aspose.cloud.sdk.slides.model.SlidesResponse",
"com.google.gson.Gson",
"java.io.IOException",
"java.io.InputStream",
"java.security.InvalidKeyException",
"java.security.NoSuchAlgorithmException"
] | import android.net.Uri; import com.aspose.cloud.sdk.common.Utils; import com.aspose.cloud.sdk.slides.model.SlidesResponse; import com.google.gson.Gson; import java.io.IOException; import java.io.InputStream; import java.security.InvalidKeyException; import java.security.NoSuchAlgorithmException; | import android.net.*; import com.aspose.cloud.sdk.common.*; import com.aspose.cloud.sdk.slides.model.*; import com.google.gson.*; import java.io.*; import java.security.*; | [
"android.net",
"com.aspose.cloud",
"com.google.gson",
"java.io",
"java.security"
] | android.net; com.aspose.cloud; com.google.gson; java.io; java.security; | 587,579 |
protected int AxisName() throws javax.xml.transform.TransformerException
{
Object val = Keywords.getAxisName(m_token);
if (null == val)
{
error(XPATHErrorResources.ER_ILLEGAL_AXIS_NAME,
new Object[]{ m_token }); //"illegal axis name: "+m_token);
}
int axesType = ... | int function() throws javax.xml.transform.TransformerException { Object val = Keywords.getAxisName(m_token); if (null == val) { error(XPATHErrorResources.ER_ILLEGAL_AXIS_NAME, new Object[]{ m_token }); } int axesType = ((Integer) val).intValue(); appendOp(2, axesType); return axesType; } | /**
*
* Basis ::= AxisName '::' NodeTest
* | AbbreviatedBasis
*
* @return FROM_XXX axes type, found in {@link org.apache.xpath.compiler.Keywords}.
*
* @throws javax.xml.transform.TransformerException
*/ | Basis ::= AxisName '::' NodeTest | AbbreviatedBasis | AxisName | {
"repo_name": "kcsl/immutability-benchmark",
"path": "benchmark-applications/reiminfer-oopsla-2012/source/Xalan/src/org/apache/xpath/compiler/XPathParser.java",
"license": "mit",
"size": 65864
} | [
"javax.xml.transform.TransformerException",
"org.apache.xpath.res.XPATHErrorResources"
] | import javax.xml.transform.TransformerException; import org.apache.xpath.res.XPATHErrorResources; | import javax.xml.transform.*; import org.apache.xpath.res.*; | [
"javax.xml",
"org.apache.xpath"
] | javax.xml; org.apache.xpath; | 1,759,245 |
EClass getMapDefinition(); | EClass getMapDefinition(); | /**
* Returns the meta object for class '{@link com.euclideanspace.spad.editor.MapDefinition <em>Map Definition</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Map Definition</em>'.
* @see com.euclideanspace.spad.editor.MapDefinition
* @generated
*... | Returns the meta object for class '<code>com.euclideanspace.spad.editor.MapDefinition Map Definition</code>'. | getMapDefinition | {
"repo_name": "martinbaker/euclideanspace",
"path": "com.euclideanspace.spad/src-gen/com/euclideanspace/spad/editor/EditorPackage.java",
"license": "agpl-3.0",
"size": 593321
} | [
"org.eclipse.emf.ecore.EClass"
] | import org.eclipse.emf.ecore.EClass; | import org.eclipse.emf.ecore.*; | [
"org.eclipse.emf"
] | org.eclipse.emf; | 1,228,893 |
private AbstractOperationEvent addContextInfo(AbstractOperationEvent event) {
event.setConversationID(conversationID);
event.setFileID(fileID);
event.setOperationType(operationType);
return event;
} | AbstractOperationEvent function(AbstractOperationEvent event) { event.setConversationID(conversationID); event.setFileID(fileID); event.setOperationType(operationType); return event; } | /**
* Adds the general operation context information for the conversation to the event.
* @param event the event to update
* @return the updated event
*/ | Adds the general operation context information for the conversation to the event | addContextInfo | {
"repo_name": "bitrepository/reference",
"path": "bitrepository-client/src/main/java/org/bitrepository/client/conversation/ConversationEventMonitor.java",
"license": "lgpl-2.1",
"size": 17639
} | [
"org.bitrepository.client.eventhandler.AbstractOperationEvent"
] | import org.bitrepository.client.eventhandler.AbstractOperationEvent; | import org.bitrepository.client.eventhandler.*; | [
"org.bitrepository.client"
] | org.bitrepository.client; | 606,279 |
@FlakyTest
public void testQuickSwitchBetweenTabAndSwitcherMode() throws InterruptedException {
final String[] urls = {
TestHttpServerClient.getUrl("chrome/test/data/android/navigate/one.html"),
TestHttpServerClient.getUrl("chrome/test/data/android/navigate/two.html"),
... | void function() throws InterruptedException { final String[] urls = { TestHttpServerClient.getUrl(STR), TestHttpServerClient.getUrl(STR), TestHttpServerClient.getUrl(STR)}; for (String url : urls) { loadUrlInNewTab(url); } int lastUrlIndex = urls.length - 1; View button = getActivity().findViewById(R.id.tab_switcher_bu... | /**
* Flaky on instrumentation-yakju-clankium-ics. See https://crbug.com/431296.
* @Restriction(RESTRICTION_TYPE_PHONE)
* @MediumTest
* @Feature({"Android-TabSwitcher"})
*/ | Flaky on instrumentation-yakju-clankium-ics. See HREF | testQuickSwitchBetweenTabAndSwitcherMode | {
"repo_name": "Workday/OpenFrame",
"path": "chrome/android/javatests/src/org/chromium/chrome/browser/TabsTest.java",
"license": "bsd-3-clause",
"size": 71123
} | [
"android.view.View",
"org.chromium.chrome.test.util.TestHttpServerClient"
] | import android.view.View; import org.chromium.chrome.test.util.TestHttpServerClient; | import android.view.*; import org.chromium.chrome.test.util.*; | [
"android.view",
"org.chromium.chrome"
] | android.view; org.chromium.chrome; | 67,790 |
@Override
public String getServletInfo() {
return "Displays the albums of the theme";
}// </editor-fold>
private static final Logger log = LoggerFactory.getLogger(Albums.class.getName()); | String function() { return STR; } private static final Logger log = LoggerFactory.getLogger(Albums.class.getName()); | /**
* Returns a short description of the servlet.
* @return a String containing servlet description
*/ | Returns a short description of the servlet | getServletInfo | {
"repo_name": "wazari972/WebAlbums",
"path": "WebAlbums-Servlet/src/java/net/wazari/view/servlet/Albums.java",
"license": "gpl-3.0",
"size": 6885
} | [
"org.slf4j.Logger",
"org.slf4j.LoggerFactory"
] | import org.slf4j.Logger; import org.slf4j.LoggerFactory; | import org.slf4j.*; | [
"org.slf4j"
] | org.slf4j; | 1,814,941 |
public void printXml(WriteStream os)
throws IOException
{
os.print("<jsp:userBean");
if (_id != null)
printXmlAttribute(os, "id", _id);
if (_typeName != null)
printXmlAttribute(os, "type", _typeName);
if (_className != null)
printXmlAttribute(os, "class", _className);
... | void function(WriteStream os) throws IOException { os.print(STR); if (_id != null) printXmlAttribute(os, "id", _id); if (_typeName != null) printXmlAttribute(os, "type", _typeName); if (_className != null) printXmlAttribute(os, "class", _className); if (_beanName != null) printXmlAttribute(os, STR, _beanName); if (_sco... | /**
* Generates the XML text representation for the tag validation.
*
* @param os write stream to the generated XML.
*/ | Generates the XML text representation for the tag validation | printXml | {
"repo_name": "mdaniel/svn-caucho-com-resin",
"path": "modules/resin/src/com/caucho/jsp/java/JspUseBean.java",
"license": "gpl-2.0",
"size": 7293
} | [
"com.caucho.vfs.WriteStream",
"java.io.IOException"
] | import com.caucho.vfs.WriteStream; import java.io.IOException; | import com.caucho.vfs.*; import java.io.*; | [
"com.caucho.vfs",
"java.io"
] | com.caucho.vfs; java.io; | 20,666 |
@Override
public boolean isSchemaValidationFeatureSupported() throws XQException {
isClosedXQException();
return true;
} | boolean function() throws XQException { isClosedXQException(); return true; } | /** \brief Query if XQuery schema validation feature is supported in this connection.
*
* @return true if so; otherwise false
* @throw XQException - if the connection is no longer valid
*/ | \brief Query if XQuery schema validation feature is supported in this connection | isSchemaValidationFeatureSupported | {
"repo_name": "cezarfx/zorba",
"path": "swig/xqj/ZorbaXQMetaData.java",
"license": "apache-2.0",
"size": 12891
} | [
"javax.xml.xquery.XQException"
] | import javax.xml.xquery.XQException; | import javax.xml.xquery.*; | [
"javax.xml"
] | javax.xml; | 467,303 |
@Override
public INDArray create(int columns) {
return create(new int[]{1, columns});
} | INDArray function(int columns) { return create(new int[]{1, columns}); } | /**
* Creates a row vector with the specified number of columns
*
* @param columns the columns of the ndarray
* @return the created ndarray
*/ | Creates a row vector with the specified number of columns | create | {
"repo_name": "rahulpalamuttam/nd4j",
"path": "nd4j-api/src/main/java/org/nd4j/linalg/factory/BaseNDArrayFactory.java",
"license": "apache-2.0",
"size": 59439
} | [
"org.nd4j.linalg.api.ndarray.INDArray"
] | import org.nd4j.linalg.api.ndarray.INDArray; | import org.nd4j.linalg.api.ndarray.*; | [
"org.nd4j.linalg"
] | org.nd4j.linalg; | 841,495 |
@Override
protected void fixInstanceClass(EClassifier eClassifier) {
if (eClassifier.getInstanceClassName() == null) {
eClassifier.setInstanceClassName("CIM.IEC61970.Equivalents." + eClassifier.getName());
setGeneratedClassName(eClassifier);
}
} | void function(EClassifier eClassifier) { if (eClassifier.getInstanceClassName() == null) { eClassifier.setInstanceClassName(STR + eClassifier.getName()); setGeneratedClassName(eClassifier); } } | /**
* Sets the instance class on the given classifier.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/ | Sets the instance class on the given classifier. | fixInstanceClass | {
"repo_name": "georghinkel/ttc2017smartGrids",
"path": "solutions/ModelJoin/src/main/java/CIM/IEC61970/Equivalents/impl/EquivalentsPackageImpl.java",
"license": "mit",
"size": 28599
} | [
"org.eclipse.emf.ecore.EClassifier"
] | import org.eclipse.emf.ecore.EClassifier; | import org.eclipse.emf.ecore.*; | [
"org.eclipse.emf"
] | org.eclipse.emf; | 2,547,589 |
public static void setAccessibilityButtonSupported(boolean supported) {
isAccessibilityButtonSupported = supported;
}
static class MyHandler extends Handler {
private static final int DO_SET_STATE = 10;
private final AccessibilityManager accessibilityManager;
MyHandler(Looper mainLooper, Accessi... | static void function(boolean supported) { isAccessibilityButtonSupported = supported; } static class MyHandler extends Handler { private static final int DO_SET_STATE = 10; private final AccessibilityManager accessibilityManager; MyHandler(Looper mainLooper, AccessibilityManager accessibilityManager) { super(mainLooper... | /**
* Sets that the system navigation area is supported accessibility button; controls the return
* value of {@link AccessibilityManager#isAccessibilityButtonSupported()}.
*/ | Sets that the system navigation area is supported accessibility button; controls the return value of <code>AccessibilityManager#isAccessibilityButtonSupported()</code> | setAccessibilityButtonSupported | {
"repo_name": "jongerrish/robolectric",
"path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowAccessibilityManager.java",
"license": "mit",
"size": 5985
} | [
"android.os.Handler",
"android.os.Looper",
"android.view.accessibility.AccessibilityManager"
] | import android.os.Handler; import android.os.Looper; import android.view.accessibility.AccessibilityManager; | import android.os.*; import android.view.accessibility.*; | [
"android.os",
"android.view"
] | android.os; android.view; | 2,087,882 |
public Configuration generateRouterConfiguration(String nsId, String nnId) {
Configuration conf;
if (this.routerConf == null) {
conf = new Configuration(false);
} else {
conf = new Configuration(routerConf);
}
conf.addResource(generateNamenodeConfiguration(nsId));
conf.setInt(DFS... | Configuration function(String nsId, String nnId) { Configuration conf; if (this.routerConf == null) { conf = new Configuration(false); } else { conf = new Configuration(routerConf); } conf.addResource(generateNamenodeConfiguration(nsId)); conf.setInt(DFS_ROUTER_HANDLER_COUNT_KEY, 10); conf.set(DFS_ROUTER_RPC_ADDRESS_KE... | /**
* Generate the configuration for a Router.
*
* @param nsId Nameservice identifier.
* @param nnId Namenode identifier.
* @return New configuration for a Router.
*/ | Generate the configuration for a Router | generateRouterConfiguration | {
"repo_name": "mapr/hadoop-common",
"path": "hadoop-hdfs-project/hadoop-hdfs-rbf/src/test/java/org/apache/hadoop/hdfs/server/federation/MiniRouterDFSCluster.java",
"license": "apache-2.0",
"size": 38291
} | [
"java.util.Map",
"org.apache.hadoop.conf.Configuration",
"org.apache.hadoop.hdfs.server.federation.resolver.ActiveNamenodeResolver",
"org.apache.hadoop.hdfs.server.federation.resolver.FileSubclusterResolver"
] | import java.util.Map; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.hdfs.server.federation.resolver.ActiveNamenodeResolver; import org.apache.hadoop.hdfs.server.federation.resolver.FileSubclusterResolver; | import java.util.*; import org.apache.hadoop.conf.*; import org.apache.hadoop.hdfs.server.federation.resolver.*; | [
"java.util",
"org.apache.hadoop"
] | java.util; org.apache.hadoop; | 2,303,173 |
public static int getApisPerPageInStore() {
String paginationLimit = ServiceReferenceHolder.getInstance().getAPIManagerConfigurationService()
.getAPIManagerConfiguration().getFirstProperty(APIConstants.API_STORE_APIS_PER_PAGE);
if (paginationLimit != null) {
return Integ... | static int function() { String paginationLimit = ServiceReferenceHolder.getInstance().getAPIManagerConfigurationService() .getAPIManagerConfiguration().getFirstProperty(APIConstants.API_STORE_APIS_PER_PAGE); if (paginationLimit != null) { return Integer.parseInt(paginationLimit); } return 0; } | /**
* Used to get the custom pagination limit for store
*
* @return returns the store pagination value from api-manager.xml
*/ | Used to get the custom pagination limit for store | getApisPerPageInStore | {
"repo_name": "tharikaGitHub/carbon-apimgt",
"path": "components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/utils/APIUtil.java",
"license": "apache-2.0",
"size": 563590
} | [
"org.wso2.carbon.apimgt.impl.APIConstants",
"org.wso2.carbon.apimgt.impl.internal.ServiceReferenceHolder"
] | import org.wso2.carbon.apimgt.impl.APIConstants; import org.wso2.carbon.apimgt.impl.internal.ServiceReferenceHolder; | import org.wso2.carbon.apimgt.impl.*; import org.wso2.carbon.apimgt.impl.internal.*; | [
"org.wso2.carbon"
] | org.wso2.carbon; | 1,323,842 |
@Override
public void processPacket(Packet packet) {
if (log.isLoggable(Level.FINEST)) {
log.finest("Processing packet: " + packet.toString());
}
if ( !packet.isCommand() ||!processCommand(packet)) {
if (packet.getStanzaTo() == null) {
log.warning("Missing 'to' attribute, ignoring packet..." + pack... | void function(Packet packet) { if (log.isLoggable(Level.FINEST)) { log.finest(STR + packet.toString()); } if ( !packet.isCommand() !processCommand(packet)) { if (packet.getStanzaTo() == null) { log.warning(STR + packet + STR + STR); return; } if (packet.getStanzaFrom() == null) { log.warning(STR + packet); return; } St... | /**
* Method description
*
*
* @param packet
*/ | Method description | processPacket | {
"repo_name": "fanout/tigase-server",
"path": "src/main/java/tigase/server/xmppserver/ServerConnectionManager.java",
"license": "agpl-3.0",
"size": 43237
} | [
"java.util.logging.Level"
] | import java.util.logging.Level; | import java.util.logging.*; | [
"java.util"
] | java.util; | 1,178,898 |
public void testUnequalObjectsUnequal() {
String value1 = "12378246728727834290276457386374882976782849";
String value2 = "-5634562095872038262928728727834290276457386374882976782849";
BigInteger aNumber1 = new BigInteger(value1);
BigInteger aNumber2 = new BigInteger(value2);
int code1 = aNumber1.... | void function() { String value1 = STR; String value2 = STR; BigInteger aNumber1 = new BigInteger(value1); BigInteger aNumber2 = new BigInteger(value2); int code1 = aNumber1.hashCode(); int code2 = aNumber2.hashCode(); if (!aNumber1.equals(aNumber2)) { assertTrue(STR, code1 != code2); } } | /**
* Test hash codes for unequal objects. The codes are unequal.
*/ | Test hash codes for unequal objects. The codes are unequal | testUnequalObjectsUnequal | {
"repo_name": "google/j2cl",
"path": "jre/javatests/com/google/gwt/emultest/java/math/BigIntegerHashCodeTest.java",
"license": "apache-2.0",
"size": 3562
} | [
"java.math.BigInteger"
] | import java.math.BigInteger; | import java.math.*; | [
"java.math"
] | java.math; | 320,846 |
protected void addTransportRabbitMqExchangeAutoDeletePropertyDescriptor(Object object) {
itemPropertyDescriptors.add
(createItemPropertyDescriptor
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
getString("_UI_InboundEndpoint_transportRabbitMqExchangeAut... | void function(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString(STR), getString(STR, STR, STR), EsbPackage.Literals.INBOUND_ENDPOINT__TRANSPORT_RABBIT_MQ_EXCHANGE_AUTO_DELETE, true, false, fals... | /**
* This adds a property descriptor for the Transport Rabbit Mq Exchange Auto Delete feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated NOT
*/ | This adds a property descriptor for the Transport Rabbit Mq Exchange Auto Delete feature. | addTransportRabbitMqExchangeAutoDeletePropertyDescriptor | {
"repo_name": "nwnpallewela/devstudio-tooling-esb",
"path": "plugins/org.wso2.developerstudio.eclipse.gmf.esb.edit/src/org/wso2/developerstudio/eclipse/gmf/esb/provider/InboundEndpointItemProvider.java",
"license": "apache-2.0",
"size": 165854
} | [
"org.eclipse.emf.edit.provider.ComposeableAdapterFactory",
"org.eclipse.emf.edit.provider.ItemPropertyDescriptor",
"org.wso2.developerstudio.eclipse.gmf.esb.EsbPackage"
] | import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; import org.wso2.developerstudio.eclipse.gmf.esb.EsbPackage; | import org.eclipse.emf.edit.provider.*; import org.wso2.developerstudio.eclipse.gmf.esb.*; | [
"org.eclipse.emf",
"org.wso2.developerstudio"
] | org.eclipse.emf; org.wso2.developerstudio; | 2,530,689 |
public static void writeByteArray(DataOutput out, @Nullable byte[] arr) throws IOException {
if (arr == null)
out.writeInt(-1);
else {
out.writeInt(arr.length);
out.write(arr);
}
} | static void function(DataOutput out, @Nullable byte[] arr) throws IOException { if (arr == null) out.writeInt(-1); else { out.writeInt(arr.length); out.write(arr); } } | /**
* Writes byte array to output stream accounting for <tt>null</tt> values.
*
* @param out Output stream to write to.
* @param arr Array to write, possibly <tt>null</tt>.
* @throws java.io.IOException If write failed.
*/ | Writes byte array to output stream accounting for null values | writeByteArray | {
"repo_name": "mcherkasov/ignite",
"path": "modules/core/src/main/java/org/apache/ignite/internal/util/IgniteUtils.java",
"license": "apache-2.0",
"size": 316648
} | [
"java.io.DataOutput",
"java.io.IOException",
"org.jetbrains.annotations.Nullable"
] | import java.io.DataOutput; import java.io.IOException; import org.jetbrains.annotations.Nullable; | import java.io.*; import org.jetbrains.annotations.*; | [
"java.io",
"org.jetbrains.annotations"
] | java.io; org.jetbrains.annotations; | 2,321,675 |
@Override
public Token[] getValidTokens() throws TrustException {
return new Token[0];
} | Token[] function() throws TrustException { return new Token[0]; } | /**
* Return the list of ISSUED and RENEWED tokens.
*
* @return An array of ISSUED and RENEWED <code>Tokens</code>.
* @throws org.apache.rahas.TrustException
*/ | Return the list of ISSUED and RENEWED tokens | getValidTokens | {
"repo_name": "thanujalk/carbon-identity",
"path": "components/sts/org.wso2.carbon.identity.sts.passive/src/main/java/org/wso2/carbon/identity/sts/passive/utils/NoPersistenceTokenStore.java",
"license": "apache-2.0",
"size": 4383
} | [
"org.apache.rahas.Token",
"org.apache.rahas.TrustException"
] | import org.apache.rahas.Token; import org.apache.rahas.TrustException; | import org.apache.rahas.*; | [
"org.apache.rahas"
] | org.apache.rahas; | 2,477,397 |
public static void wipePS(ByteBuffer _in, ByteBuffer out, List<ByteBuffer> spsList, List<ByteBuffer> ppsList) {
ByteBuffer dup = _in.duplicate();
while (dup.hasRemaining()) {
ByteBuffer buf = H264Utils.nextNALUnit(dup);
if (buf == null)
break;
NA... | static void function(ByteBuffer _in, ByteBuffer out, List<ByteBuffer> spsList, List<ByteBuffer> ppsList) { ByteBuffer dup = _in.duplicate(); while (dup.hasRemaining()) { ByteBuffer buf = H264Utils.nextNALUnit(dup); if (buf == null) break; NALUnit nu = NALUnit.read(buf.duplicate()); if (nu.type == NALUnitType.PPS) { if ... | /**
* Wipes AVC parameter sets ( SPS/PPS ) from the packet
*
* @param in
* AVC frame encoded in Annex B NAL unit format
* @param out
* Buffer where packet without PS will be put
* @param spsList
* Storage for leading SPS structures ( can be null,... | Wipes AVC parameter sets ( SPS/PPS ) from the packet | wipePS | {
"repo_name": "Dacaspex/Fractal",
"path": "org/jcodec/codecs/h264/H264Utils.java",
"license": "mit",
"size": 30506
} | [
"java.nio.ByteBuffer",
"java.util.List",
"org.jcodec.codecs.h264.io.model.NALUnit",
"org.jcodec.codecs.h264.io.model.NALUnitType",
"org.jcodec.common.io.NIOUtils"
] | import java.nio.ByteBuffer; import java.util.List; import org.jcodec.codecs.h264.io.model.NALUnit; import org.jcodec.codecs.h264.io.model.NALUnitType; import org.jcodec.common.io.NIOUtils; | import java.nio.*; import java.util.*; import org.jcodec.codecs.h264.io.model.*; import org.jcodec.common.io.*; | [
"java.nio",
"java.util",
"org.jcodec.codecs",
"org.jcodec.common"
] | java.nio; java.util; org.jcodec.codecs; org.jcodec.common; | 773,405 |
public final Intent getMultiplexerDownloadIntent() {
// First we need to check if there are other apps that declare the READ_EXTENSION_DATA
// permission. In that case, the update for DashClock or the installation of the mux
// will not work. Users MUST uninstall the app
List<String>... | final Intent function() { List<String> apps = getOtherAppsWithReadDataExtensionsPermission(mContext); if (!apps.isEmpty()) { return null; } final String pkgName = MULTIPLEXER_HOST_SERVICE.getPackageName(); Uri uri = Uri.parse(STRandroid.intent.action.VIEW", uri); } private Context mContext; private IDataConsumerHost mS... | /**
* Return an {@link android.content.Intent} reference to redirect the user
* to the Play Store to download the official DashClock app.<br/>
* Implementers should call to {@link Context#startActivity(android.content.Intent)}.
*
* @return The download {@link android.content.Intent} or {@code n... | Return an <code>android.content.Intent</code> reference to redirect the user to the Play Store to download the official DashClock app. Implementers should call to <code>Context#startActivity(android.content.Intent)</code> | getMultiplexerDownloadIntent | {
"repo_name": "jruesga/dashclock",
"path": "api/src/main/java/com/google/android/apps/dashclock/api/host/DashClockHost.java",
"license": "apache-2.0",
"size": 22646
} | [
"android.content.ComponentName",
"android.content.Context",
"android.content.Intent",
"android.net.Uri",
"android.os.Handler",
"com.google.android.apps.dashclock.api.ExtensionData",
"com.google.android.apps.dashclock.api.internal.IDataConsumerHost",
"java.util.List",
"java.util.Map",
"java.util.Se... | import android.content.ComponentName; import android.content.Context; import android.content.Intent; import android.net.Uri; import android.os.Handler; import com.google.android.apps.dashclock.api.ExtensionData; import com.google.android.apps.dashclock.api.internal.IDataConsumerHost; import java.util.List; import java.... | import android.content.*; import android.net.*; import android.os.*; import com.google.android.apps.dashclock.api.*; import com.google.android.apps.dashclock.api.internal.*; import java.util.*; | [
"android.content",
"android.net",
"android.os",
"com.google.android",
"java.util"
] | android.content; android.net; android.os; com.google.android; java.util; | 2,361,850 |
BuildDefinition getDefaultBuildDefinition( int projectId )
throws ContinuumStoreException; | BuildDefinition getDefaultBuildDefinition( int projectId ) throws ContinuumStoreException; | /**
* returns the default build definition of the project, if the project
* doesn't have on declared the default of the project group will be
* returned <p/> this should be the most common usage of the default build
* definition accessing methods
*
* @param projectId
* @return
* ... | returns the default build definition of the project, if the project doesn't have on declared the default of the project group will be returned this should be the most common usage of the default build definition accessing methods | getDefaultBuildDefinition | {
"repo_name": "apache/continuum",
"path": "continuum-api/src/main/java/org/apache/continuum/dao/BuildDefinitionDao.java",
"license": "apache-2.0",
"size": 4686
} | [
"org.apache.maven.continuum.model.project.BuildDefinition",
"org.apache.maven.continuum.store.ContinuumStoreException"
] | import org.apache.maven.continuum.model.project.BuildDefinition; import org.apache.maven.continuum.store.ContinuumStoreException; | import org.apache.maven.continuum.model.project.*; import org.apache.maven.continuum.store.*; | [
"org.apache.maven"
] | org.apache.maven; | 2,116,685 |
public void testFoundAllocationAndAllocating() {
final RoutingAllocation allocation;
boolean useAllocationIds = randomBoolean();
if (useAllocationIds) {
allocation = routingAllocationWithOnePrimaryNoReplicas(yesAllocationDeciders(), false, randomFrom(Version.V_2_0_0, Version.CURR... | void function() { final RoutingAllocation allocation; boolean useAllocationIds = randomBoolean(); if (useAllocationIds) { allocation = routingAllocationWithOnePrimaryNoReplicas(yesAllocationDeciders(), false, randomFrom(Version.V_2_0_0, Version.CURRENT), STR); testAllocator.addData(node1, ShardStateMetaData.NO_VERSION,... | /**
* Tests that when there is a node to allocate the shard to, it will be allocated to it.
*/ | Tests that when there is a node to allocate the shard to, it will be allocated to it | testFoundAllocationAndAllocating | {
"repo_name": "danielmitterdorfer/elasticsearch",
"path": "core/src/test/java/org/elasticsearch/gateway/PrimaryShardAllocatorTests.java",
"license": "apache-2.0",
"size": 34327
} | [
"org.elasticsearch.Version",
"org.elasticsearch.cluster.routing.ShardRoutingState",
"org.elasticsearch.cluster.routing.allocation.RoutingAllocation",
"org.elasticsearch.index.shard.ShardStateMetaData",
"org.hamcrest.Matchers"
] | import org.elasticsearch.Version; import org.elasticsearch.cluster.routing.ShardRoutingState; import org.elasticsearch.cluster.routing.allocation.RoutingAllocation; import org.elasticsearch.index.shard.ShardStateMetaData; import org.hamcrest.Matchers; | import org.elasticsearch.*; import org.elasticsearch.cluster.routing.*; import org.elasticsearch.cluster.routing.allocation.*; import org.elasticsearch.index.shard.*; import org.hamcrest.*; | [
"org.elasticsearch",
"org.elasticsearch.cluster",
"org.elasticsearch.index",
"org.hamcrest"
] | org.elasticsearch; org.elasticsearch.cluster; org.elasticsearch.index; org.hamcrest; | 1,014,957 |
public ByteBuffer copyStringToByteBuffer(CharSequence value) {
if (value == null) {
stringByteBuffer.limit(0);
return stringByteBuffer;
}
int sizeNeeded = value.length() * 2;
guaranteeStringByteBufferSize(sizeNeeded);
st... | ByteBuffer function(CharSequence value) { if (value == null) { stringByteBuffer.limit(0); return stringByteBuffer; } int sizeNeeded = value.length() * 2; guaranteeStringByteBufferSize(sizeNeeded); stringCharBuffer.append(value); stringByteBuffer.limit(stringCharBuffer.position() * 2); return stringByteBuffer; } | /** Copy the contents of the parameter String into a reused string buffer.
* The ByteBuffer can subsequently be encoded into a ByteBuffer.
* @param value the string
* @return the byte buffer with the String in it
*/ | Copy the contents of the parameter String into a reused string buffer. The ByteBuffer can subsequently be encoded into a ByteBuffer | copyStringToByteBuffer | {
"repo_name": "greenlion/mysql-server",
"path": "storage/ndb/clusterj/clusterj-tie/src/main/java/com/mysql/clusterj/tie/DbImpl.java",
"license": "gpl-2.0",
"size": 21460
} | [
"java.nio.ByteBuffer"
] | import java.nio.ByteBuffer; | import java.nio.*; | [
"java.nio"
] | java.nio; | 276,847 |
public String decode(String encodedText) {
SilverTrace.info("authentication", "AuthenticationEncrypt.decode()",
"root.MSG_PARAM_ENTER_METHOD", "encodedText=" + encodedText);
int pos = 0;
String reverseEncodedText = new StringBuffer(encodedText).reverse()
.toString();
StringBuilder hash... | String function(String encodedText) { SilverTrace.info(STR, STR, STR, STR + encodedText); int pos = 0; String reverseEncodedText = new StringBuffer(encodedText).reverse() .toString(); StringBuilder hashString = new StringBuilder(); for (int i = 0; i + pos < reverseEncodedText.length(); i++) { int lg = Integer.parseInt(... | /**
* Simple decode for cookie value
* @param encodedText : la chaine à décoder
*/ | Simple decode for cookie value | decode | {
"repo_name": "stephaneperry/Silverpeas-Core",
"path": "lib-core/src/main/java/com/stratelia/silverpeas/authentication/AuthenticationEncrypt.java",
"license": "agpl-3.0",
"size": 4915
} | [
"com.stratelia.silverpeas.silvertrace.SilverTrace"
] | import com.stratelia.silverpeas.silvertrace.SilverTrace; | import com.stratelia.silverpeas.silvertrace.*; | [
"com.stratelia.silverpeas"
] | com.stratelia.silverpeas; | 338,585 |
@Test
public void testGetValue_1()
throws Exception {
HDVariable fixture = new HDVariable("", "");
String result = fixture.getValue();
assertEquals("", result);
} | void function() throws Exception { HDVariable fixture = new HDVariable(STRSTR", result); } | /**
* Run the String getValue() method test.
*
* @throws Exception
*
* @generatedBy CodePro at 9/10/14 9:36 AM
*/ | Run the String getValue() method test | testGetValue_1 | {
"repo_name": "intuit/Tank",
"path": "harness_data/src/test/java/com/intuit/tank/harness/data/HDVariableTest.java",
"license": "epl-1.0",
"size": 3064
} | [
"com.intuit.tank.harness.data.HDVariable"
] | import com.intuit.tank.harness.data.HDVariable; | import com.intuit.tank.harness.data.*; | [
"com.intuit.tank"
] | com.intuit.tank; | 2,318,127 |
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(
String resourceGroupName, String virtualHubName, String routeTableName) {
if (this.client.getEndpoint() == null) {
return Mono
.error(
new ... | @ServiceMethod(returns = ReturnType.SINGLE) Mono<Response<Flux<ByteBuffer>>> function( String resourceGroupName, String virtualHubName, String routeTableName) { if (this.client.getEndpoint() == null) { return Mono .error( new IllegalArgumentException( STR)); } if (this.client.getSubscriptionId() == null) { return Mono ... | /**
* Deletes a VirtualHubRouteTableV2.
*
* @param resourceGroupName The resource group name of the VirtualHubRouteTableV2.
* @param virtualHubName The name of the VirtualHub.
* @param routeTableName The name of the VirtualHubRouteTableV2.
* @throws IllegalArgumentException thrown if param... | Deletes a VirtualHubRouteTableV2 | deleteWithResponseAsync | {
"repo_name": "selvasingh/azure-sdk-for-java",
"path": "sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualHubRouteTableV2SClientImpl.java",
"license": "mit",
"size": 55664
} | [
"com.azure.core.annotation.ReturnType",
"com.azure.core.annotation.ServiceMethod",
"com.azure.core.http.rest.Response",
"com.azure.core.util.FluxUtil",
"java.nio.ByteBuffer"
] | import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.Response; import com.azure.core.util.FluxUtil; import java.nio.ByteBuffer; | import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.core.util.*; import java.nio.*; | [
"com.azure.core",
"java.nio"
] | com.azure.core; java.nio; | 589,663 |
AsmRendererContext ctx = AsmRendererContext.getSafe();
if (ctx.getUserData("ncmsDocumentVEMeta.applied") != null
|| !ctx.getPageService().getPageSecurityService().isPreviewPageRequest(ctx.getServletRequest())) {
return null;
}
ctx.setUserData("ncmsDocumentVEMeta.applied",... | AsmRendererContext ctx = AsmRendererContext.getSafe(); if (ctx.getUserData(STR) != null !ctx.getPageService().getPageSecurityService().isPreviewPageRequest(ctx.getServletRequest())) { return null; } ctx.setUserData(STR, Boolean.TRUE); return STRSTR\""; } | /**
* Visual editor meta attributes on `<html>` element.
*/ | Visual editor meta attributes on `` element | ncmsDocumentVEMeta | {
"repo_name": "Softmotions/ncms",
"path": "ncms-engine/ncms-engine-core/src/main/java/com/softmotions/ncms/vedit/HttlVisualEditorMethods.java",
"license": "apache-2.0",
"size": 3644
} | [
"com.softmotions.ncms.asm.render.AsmRendererContext"
] | import com.softmotions.ncms.asm.render.AsmRendererContext; | import com.softmotions.ncms.asm.render.*; | [
"com.softmotions.ncms"
] | com.softmotions.ncms; | 611,194 |
public static OutputStream getCompressedOutputStream(HttpServletRequest req, HttpServletResponse res) throws IOException {
OutputStream os = res.getOutputStream();
getCompressedOutputStream(os, getCompressionMethod(req), res);
return os;
} | static OutputStream function(HttpServletRequest req, HttpServletResponse res) throws IOException { OutputStream os = res.getOutputStream(); getCompressedOutputStream(os, getCompressionMethod(req), res); return os; } | /**
* Based on a HttpServletRequest determines if the output stream for the HttpServletResponse
* can be compressed, wrapping the appropriate compressor, else returns the uncompressed OutputStream.
* <p/>
* <p>The caller must remember to close the stream to correctly flush the compressed data.
... | Based on a HttpServletRequest determines if the output stream for the HttpServletResponse can be compressed, wrapping the appropriate compressor, else returns the uncompressed OutputStream. The caller must remember to close the stream to correctly flush the compressed data. The use of a try/finally block is suggested | getCompressedOutputStream | {
"repo_name": "slipperyseal/atomicobjects",
"path": "atomicobjects-web/src/main/java/net/catchpole/web/http/HttpUtils.java",
"license": "apache-2.0",
"size": 4246
} | [
"java.io.IOException",
"java.io.OutputStream",
"javax.servlet.http.HttpServletRequest",
"javax.servlet.http.HttpServletResponse"
] | import java.io.IOException; import java.io.OutputStream; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; | import java.io.*; import javax.servlet.http.*; | [
"java.io",
"javax.servlet"
] | java.io; javax.servlet; | 949,446 |
private void attemptLogin() {
if (mAuthTask != null) {
return;
}
// Reset errors.
mUserView.setError(null);
mPasswordView.setError(null);
// Store values at the time of the login attempt.
String user = userLogin.getEditText().getText().toString()... | void function() { if (mAuthTask != null) { return; } mUserView.setError(null); mPasswordView.setError(null); String user = userLogin.getEditText().getText().toString(); String password = senhaLogin.getEditText().getText().toString(); if (TextUtils.isEmpty(user)) { mUserView.setError(STR); } else if (TextUtils.isEmpty(p... | /**
* Attempts to sign in or register the account specified by the login form.
* If there are form errors (invalid email, missing fields, etc.), the
* errors are presented and no actual login attempt is made.
*/ | Attempts to sign in or register the account specified by the login form. If there are form errors (invalid email, missing fields, etc.), the errors are presented and no actual login attempt is made | attemptLogin | {
"repo_name": "hacktoberfest17/programming",
"path": "android_apps/PokeApiSample/app/src/main/java/com/example/wellington/pokeapisample/view/ui/login/Login.java",
"license": "gpl-3.0",
"size": 12772
} | [
"android.content.Intent",
"android.text.TextUtils",
"android.widget.Toast",
"com.example.wellington.pokeapisample.view.ui.MainActivity"
] | import android.content.Intent; import android.text.TextUtils; import android.widget.Toast; import com.example.wellington.pokeapisample.view.ui.MainActivity; | import android.content.*; import android.text.*; import android.widget.*; import com.example.wellington.pokeapisample.view.ui.*; | [
"android.content",
"android.text",
"android.widget",
"com.example.wellington"
] | android.content; android.text; android.widget; com.example.wellington; | 156,213 |
public Builder setProgressMessage(LazyString progressMessage) {
this.progressMessage = progressMessage;
return this;
} | Builder function(LazyString progressMessage) { this.progressMessage = progressMessage; return this; } | /**
* Sets a lazily computed progress message.
*
* <p>When possible, prefer use of one of the overloads that use {@link String#format}. If you
* do use this overload, take care not to capture anything expensive.
*/ | Sets a lazily computed progress message. When possible, prefer use of one of the overloads that use <code>String#format</code>. If you do use this overload, take care not to capture anything expensive | setProgressMessage | {
"repo_name": "davidzchen/bazel",
"path": "src/main/java/com/google/devtools/build/lib/analysis/actions/SpawnAction.java",
"license": "apache-2.0",
"size": 54984
} | [
"com.google.devtools.build.lib.util.LazyString"
] | import com.google.devtools.build.lib.util.LazyString; | import com.google.devtools.build.lib.util.*; | [
"com.google.devtools"
] | com.google.devtools; | 2,414,973 |
List<Node> getElements(); | List<Node> getElements(); | /**
* return the list of elements constructing a nested node
* @return List of nodes
*/ | return the list of elements constructing a nested node | getElements | {
"repo_name": "navalev/azure-sdk-for-java",
"path": "sdk/core/azure-core/src/main/java/com/azure/core/implementation/serializer/jsonwrapper/api/Node.java",
"license": "mit",
"size": 1118
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 1,632,996 |
private void setDefaultDAOProperties(Node childrenDAOFactory)
{
NodeList childDefaultDAO = childrenDAOFactory.getChildNodes();
for (int l = 0; l < childDefaultDAO.getLength(); l++)
{
Node childnode = childDefaultDAO.item(l);
if (childnode.getNodeName().equals("Class-name"))
{
Node attNo... | void function(Node childrenDAOFactory) { NodeList childDefaultDAO = childrenDAOFactory.getChildNodes(); for (int l = 0; l < childDefaultDAO.getLength(); l++) { Node childnode = childDefaultDAO.item(l); if (childnode.getNodeName().equals(STR)) { Node attNode = getNextnode(childnode); defaultDaoName = attNode.getNodeValu... | /**
* This method sets Default DAO Properties.
* @param childrenDAOFactory children DAOFactory
* @throws DOMException
*/ | This method sets Default DAO Properties | setDefaultDAOProperties | {
"repo_name": "NCIP/catissue-dao",
"path": "src/edu/wustl/dao/daofactory/ApplicationDAOPropertiesParser.java",
"license": "bsd-3-clause",
"size": 12206
} | [
"org.w3c.dom.Node",
"org.w3c.dom.NodeList"
] | import org.w3c.dom.Node; import org.w3c.dom.NodeList; | import org.w3c.dom.*; | [
"org.w3c.dom"
] | org.w3c.dom; | 191,196 |
public void setDirectUploadEnabled(
AbstractGoogleClientRequest<S> clientRequest, boolean enable) {
clientRequest.getMediaHttpUploader().setDirectUploadEnabled(enable);
} | void function( AbstractGoogleClientRequest<S> clientRequest, boolean enable) { clientRequest.getMediaHttpUploader().setDirectUploadEnabled(enable); } | /**
* Configures the {@code clientRequest} to enable/disable direct (single-request) uploads
* according to {@code enable}.
*/ | Configures the clientRequest to enable/disable direct (single-request) uploads according to enable | setDirectUploadEnabled | {
"repo_name": "ravwojdyla/bigdata-interop",
"path": "util/src/main/java/com/google/cloud/hadoop/util/ClientRequestHelper.java",
"license": "apache-2.0",
"size": 1813
} | [
"com.google.api.client.googleapis.services.AbstractGoogleClientRequest"
] | import com.google.api.client.googleapis.services.AbstractGoogleClientRequest; | import com.google.api.client.googleapis.services.*; | [
"com.google.api"
] | com.google.api; | 1,149,406 |
private IContentProvider getContentProvider() {
return new MarkerViewerContentProvider(this);
} | IContentProvider function() { return new MarkerViewerContentProvider(this); } | /**
* Return the content provider for the receiver.
*
* @return ITreeContentProvider
*
*/ | Return the content provider for the receiver | getContentProvider | {
"repo_name": "elucash/eclipse-oxygen",
"path": "org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/ExtendedMarkersView.java",
"license": "epl-1.0",
"size": 48948
} | [
"org.eclipse.jface.viewers.IContentProvider"
] | import org.eclipse.jface.viewers.IContentProvider; | import org.eclipse.jface.viewers.*; | [
"org.eclipse.jface"
] | org.eclipse.jface; | 1,798,661 |
interface WithLocation {
WithCreate withRegion(Region location); | interface WithLocation { WithCreate withRegion(Region location); | /**
* Specifies the region for the resource.
*
* @param location Resource location.
* @return the next definition stage.
*/ | Specifies the region for the resource | withRegion | {
"repo_name": "Azure/azure-sdk-for-java",
"path": "sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AttachedDatabaseConfiguration.java",
"license": "mit",
"size": 12695
} | [
"com.azure.core.management.Region"
] | import com.azure.core.management.Region; | import com.azure.core.management.*; | [
"com.azure.core"
] | com.azure.core; | 1,290,148 |
@CheckForNull
public Tree getTree() {
return null;
} | Tree function() { return null; } | /**
* Get the underlying {@link org.apache.jackrabbit.oak.api.Tree} for this {@code TreeLocation}.
* @return this default implementation return {@code null}.
*/ | Get the underlying <code>org.apache.jackrabbit.oak.api.Tree</code> for this TreeLocation | getTree | {
"repo_name": "denismo/jackrabbit-dynamodb-store",
"path": "oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/tree/TreeLocation.java",
"license": "apache-2.0",
"size": 8145
} | [
"org.apache.jackrabbit.oak.api.Tree"
] | import org.apache.jackrabbit.oak.api.Tree; | import org.apache.jackrabbit.oak.api.*; | [
"org.apache.jackrabbit"
] | org.apache.jackrabbit; | 2,905,283 |
private void markRepositoryForTrimming(final ContentStoreEvent event) {
Optional<Repository> repository = event.getRepository();
if (!repository.isPresent()) {
log.debug("Unable to determine repository for trimming for event {}", event);
return;
}
repositoriesToTrim.add(repository.get());
... | void function(final ContentStoreEvent event) { Optional<Repository> repository = event.getRepository(); if (!repository.isPresent()) { log.debug(STR, event); return; } repositoriesToTrim.add(repository.get()); needsTrim.set(true); if (noPurgeDelay) { eventManager.post(new PurgeEvent()); } } private static class FlushEv... | /**
* Marks repository as requiring trimming of its browse tree.
*/ | Marks repository as requiring trimming of its browse tree | markRepositoryForTrimming | {
"repo_name": "sonatype/nexus-public",
"path": "components/nexus-repository-content/src/main/java/org/sonatype/nexus/repository/content/browse/BrowseEventHandler.java",
"license": "epl-1.0",
"size": 11666
} | [
"java.util.Optional",
"org.sonatype.nexus.repository.Repository",
"org.sonatype.nexus.repository.content.store.ContentStoreEvent"
] | import java.util.Optional; import org.sonatype.nexus.repository.Repository; import org.sonatype.nexus.repository.content.store.ContentStoreEvent; | import java.util.*; import org.sonatype.nexus.repository.*; import org.sonatype.nexus.repository.content.store.*; | [
"java.util",
"org.sonatype.nexus"
] | java.util; org.sonatype.nexus; | 1,389,841 |
public void lookUp(Object id, final TableOperationCallback<E> callback) {
ListenableFuture<E> lookUpFuture = lookUp(id); | void function(Object id, final TableOperationCallback<E> callback) { ListenableFuture<E> lookUpFuture = lookUp(id); | /**
* Looks up a row in the table.
*
* @param id The id of the row
* @param callback Callback to invoke after the operation is completed
* @deprecated use {@link #lookUp(Object id)} instead
*/ | Looks up a row in the table | lookUp | {
"repo_name": "Azure/azure-mobile-apps-android-client",
"path": "sdk/src/sdk/src/main/java/com/microsoft/windowsazure/mobileservices/table/MobileServiceTable.java",
"license": "apache-2.0",
"size": 32228
} | [
"com.google.common.util.concurrent.ListenableFuture"
] | import com.google.common.util.concurrent.ListenableFuture; | import com.google.common.util.concurrent.*; | [
"com.google.common"
] | com.google.common; | 1,174,709 |
public void setApplication_EntitlementService(
Application_EntitlementService application_EntitlementService) {
this.application_EntitlementService = application_EntitlementService;
} | void function( Application_EntitlementService application_EntitlementService) { this.application_EntitlementService = application_EntitlementService; } | /**
* Sets the application_ entitlement remote service.
*
* @param application_EntitlementService the application_ entitlement remote service
*/ | Sets the application_ entitlement remote service | setApplication_EntitlementService | {
"repo_name": "fraunhoferfokus/govapps",
"path": "data-portlet/src/main/java/de/fraunhofer/fokus/movepla/service/base/LegalDetailsServiceBaseImpl.java",
"license": "bsd-3-clause",
"size": 32799
} | [
"de.fraunhofer.fokus.movepla.service.EntitlementService"
] | import de.fraunhofer.fokus.movepla.service.EntitlementService; | import de.fraunhofer.fokus.movepla.service.*; | [
"de.fraunhofer.fokus"
] | de.fraunhofer.fokus; | 1,886,070 |
public Rectangle getBoundingBox()
{
return(m_boundingBox);
} | Rectangle function() { return(m_boundingBox); } | /**
* Parse bounding box from a PostScript file.
* @return bounding box.
*/ | Parse bounding box from a PostScript file | getBoundingBox | {
"repo_name": "simoc/mapyrus",
"path": "src/main/java/org/mapyrus/ps/PostScriptFile.java",
"license": "lgpl-2.1",
"size": 4028
} | [
"java.awt.Rectangle"
] | import java.awt.Rectangle; | import java.awt.*; | [
"java.awt"
] | java.awt; | 1,072,452 |
public Optional<ResourcePoolEntry> findEntry(String path); | Optional<ResourcePoolEntry> function(String path); | /**
* Retrieves a ResourcePoolEntry from the given path (e.g:
* /mymodule/com.foo.bar/MyClass.class)
*
* @param path The piece of data path.
* @return A ResourcePoolEntry of the given path, if found.
*/ | Retrieves a ResourcePoolEntry from the given path (e.g: mymodule/com.foo.bar/MyClass.class) | findEntry | {
"repo_name": "md-5/jdk10",
"path": "src/jdk.jlink/share/classes/jdk/tools/jlink/plugin/ResourcePoolModule.java",
"license": "gpl-2.0",
"size": 2658
} | [
"java.util.Optional"
] | import java.util.Optional; | import java.util.*; | [
"java.util"
] | java.util; | 522,337 |
public double platesAggregated(PlateInteger plate) {
Preconditions.checkNotNull(plate, "The plate cannot be null.");
List<Double> aggregated = new ArrayList<Double>();
for (WellInteger well : plate) {
aggregated.addAll(well.toDouble());
}
... | double function(PlateInteger plate) { Preconditions.checkNotNull(plate, STR); List<Double> aggregated = new ArrayList<Double>(); for (WellInteger well : plate) { aggregated.addAll(well.toDouble()); } return calculate(aggregated); } | /**
* Returns the aggregated statistic for the plate.
* @param PlateInteger the plate
* @return the aggregated result
*/ | Returns the aggregated statistic for the plate | platesAggregated | {
"repo_name": "jessemull/MicroFlex",
"path": "src/main/java/com/github/jessemull/microflex/integerflex/stat/DescriptiveStatisticInteger.java",
"license": "apache-2.0",
"size": 21928
} | [
"com.github.jessemull.microflex.integerflex.plate.PlateInteger",
"com.github.jessemull.microflex.integerflex.plate.WellInteger",
"com.google.common.base.Preconditions",
"java.util.ArrayList",
"java.util.List"
] | import com.github.jessemull.microflex.integerflex.plate.PlateInteger; import com.github.jessemull.microflex.integerflex.plate.WellInteger; import com.google.common.base.Preconditions; import java.util.ArrayList; import java.util.List; | import com.github.jessemull.microflex.integerflex.plate.*; import com.google.common.base.*; import java.util.*; | [
"com.github.jessemull",
"com.google.common",
"java.util"
] | com.github.jessemull; com.google.common; java.util; | 879,709 |
static boolean[] compactArray(boolean[] array, int index, int length)
{
if (index == 0 && length == array.length) {
return array;
}
return Arrays.copyOfRange(array, index, index + length);
} | static boolean[] compactArray(boolean[] array, int index, int length) { if (index == 0 && length == array.length) { return array; } return Arrays.copyOfRange(array, index, index + length); } | /**
* Returns an array containing elements in the specified range of the specified array.
* If the range matches the entire array, the input array will be returned.
* Otherwise, a copy will be returned.
*/ | Returns an array containing elements in the specified range of the specified array. If the range matches the entire array, the input array will be returned. Otherwise, a copy will be returned | compactArray | {
"repo_name": "ptkool/presto",
"path": "presto-spi/src/main/java/com/facebook/presto/spi/block/BlockUtil.java",
"license": "apache-2.0",
"size": 10827
} | [
"java.util.Arrays"
] | import java.util.Arrays; | import java.util.*; | [
"java.util"
] | java.util; | 2,224,011 |
String getRefImagePartialName()
{
if (refImage == null) return null;
return EditorUtil.getPartialName(refImage.getName());
}
| String getRefImagePartialName() { if (refImage == null) return null; return EditorUtil.getPartialName(refImage.getName()); } | /**
* Returns the name of the image to copy and paste.
*
* @return See above.
*/ | Returns the name of the image to copy and paste | getRefImagePartialName | {
"repo_name": "rleigh-dundee/openmicroscopy",
"path": "components/insight/SRC/org/openmicroscopy/shoola/agents/treeviewer/view/TreeViewerModel.java",
"license": "gpl-2.0",
"size": 39451
} | [
"org.openmicroscopy.shoola.agents.util.EditorUtil"
] | import org.openmicroscopy.shoola.agents.util.EditorUtil; | import org.openmicroscopy.shoola.agents.util.*; | [
"org.openmicroscopy.shoola"
] | org.openmicroscopy.shoola; | 607,399 |
public void doDoDelete( StaplerRequest req, StaplerResponse rsp ) throws IOException, ServletException {
requirePOST();
checkPermission(DELETE);
// We should not simply delete the build if it has been explicitly
// marked to be preserved, or if the build should not be deleted
... | void function( StaplerRequest req, StaplerResponse rsp ) throws IOException, ServletException { requirePOST(); checkPermission(DELETE); String why = getWhyKeepLog(); if (why!=null) { sendError(Messages.Run_UnableToDelete(toString(),why),req,rsp); return; } delete(); rsp.sendRedirect2(req.getContextPath()+'/' + getParen... | /**
* Deletes the build when the button is pressed.
*/ | Deletes the build when the button is pressed | doDoDelete | {
"repo_name": "IsCoolEntertainment/debpkg_jenkins",
"path": "core/src/main/java/hudson/model/Run.java",
"license": "mit",
"size": 68634
} | [
"java.io.IOException",
"javax.servlet.ServletException",
"org.kohsuke.stapler.StaplerRequest",
"org.kohsuke.stapler.StaplerResponse"
] | import java.io.IOException; import javax.servlet.ServletException; import org.kohsuke.stapler.StaplerRequest; import org.kohsuke.stapler.StaplerResponse; | import java.io.*; import javax.servlet.*; import org.kohsuke.stapler.*; | [
"java.io",
"javax.servlet",
"org.kohsuke.stapler"
] | java.io; javax.servlet; org.kohsuke.stapler; | 1,408,954 |
void addSequence(String[] tokens) {
// create a new Sequence to store the sequence
Sequence sequence = new Sequence(sequences.size());
// create a list of strings for the first itemset.
List<Integer> itemset = new ArrayList<Integer>();
// for each token in this line
for (String token : tokens)... | void addSequence(String[] tokens) { Sequence sequence = new Sequence(sequences.size()); List<Integer> itemset = new ArrayList<Integer>(); for (String token : tokens) { if (token.codePointAt(0) == '<') { } else if (token.equals("-1")) { sequence.addItemset(itemset); itemset = new ArrayList<Integer>(); } else if (token.e... | /**
* Method to process a line from the input file
* @param tokens A list of tokens from the line (which were separated by spaces in the original file).
*/ | Method to process a line from the input file | addSequence | {
"repo_name": "pommedeterresautee/spmf",
"path": "ca/pfv/spmf/input/sequence_database_list_integers/SequenceDatabase.java",
"license": "gpl-3.0",
"size": 13413
} | [
"java.util.ArrayList",
"java.util.List"
] | import java.util.ArrayList; import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 388,331 |
TemplateTypeMap remove(Set<TemplateType> toRemove) {
ImmutableList.Builder<TemplateType> keys = ImmutableList.builder();
keys.addAll(templateKeys.subList(0, templateValues.size()));
for (int i = templateValues.size(); i < templateKeys.size(); i++) {
TemplateType key = templateKeys.get(i);
if (... | TemplateTypeMap remove(Set<TemplateType> toRemove) { ImmutableList.Builder<TemplateType> keys = ImmutableList.builder(); keys.addAll(templateKeys.subList(0, templateValues.size())); for (int i = templateValues.size(); i < templateKeys.size(); i++) { TemplateType key = templateKeys.get(i); if (!toRemove.contains(key)) {... | /**
* Returns a new TemplateTypeMap with the given template types removed. Keys will only be removed
* if they are unmapped.
*/ | Returns a new TemplateTypeMap with the given template types removed. Keys will only be removed if they are unmapped | remove | {
"repo_name": "mprobst/closure-compiler",
"path": "src/com/google/javascript/rhino/jstype/TemplateTypeMap.java",
"license": "apache-2.0",
"size": 13943
} | [
"com.google.common.collect.ImmutableList",
"java.util.Set"
] | import com.google.common.collect.ImmutableList; import java.util.Set; | import com.google.common.collect.*; import java.util.*; | [
"com.google.common",
"java.util"
] | com.google.common; java.util; | 2,299,706 |
public static HyphenationTree getHyphenationTree(String lang,
String country, InternalResourceResolver resolver, Map hyphPatNames) {
String llccKey = HyphenationTreeCache.constructLlccKey(lang, country);
HyphenationTreeCache cache = getHyphenationTreeCache();
// If this hyphenat... | static HyphenationTree function(String lang, String country, InternalResourceResolver resolver, Map hyphPatNames) { String llccKey = HyphenationTreeCache.constructLlccKey(lang, country); HyphenationTreeCache cache = getHyphenationTreeCache(); if (cache.isMissing(llccKey)) { return null; } HyphenationTree hTree = getHyp... | /**
* Returns a hyphenation tree for a given language and country,
* with fallback from (lang,country) to (lang).
* The hyphenation trees are cached.
* @param lang the language
* @param country the country (may be null or "none")
* @param resolver resolver to find the hyphenation files
... | Returns a hyphenation tree for a given language and country, with fallback from (lang,country) to (lang). The hyphenation trees are cached | getHyphenationTree | {
"repo_name": "StrategyObject/fop",
"path": "src/java/org/apache/fop/hyphenation/Hyphenator.java",
"license": "apache-2.0",
"size": 12597
} | [
"java.util.Map",
"org.apache.fop.apps.io.InternalResourceResolver"
] | import java.util.Map; import org.apache.fop.apps.io.InternalResourceResolver; | import java.util.*; import org.apache.fop.apps.io.*; | [
"java.util",
"org.apache.fop"
] | java.util; org.apache.fop; | 1,370,038 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.