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 static String getWikiTag(WebDrone driver, String siteName, String wikiTitle) { WikiPage wikiPage = WikiUtils.openWikiPage(driver, siteName); WikiPageList wikiPageList = wikiPage.clickWikiPageListBtn().render(); wikiPage = ShareUser.getCurrentPage(driver).render(); wik...
static String function(WebDrone driver, String siteName, String wikiTitle) { WikiPage wikiPage = WikiUtils.openWikiPage(driver, siteName); WikiPageList wikiPageList = wikiPage.clickWikiPageListBtn().render(); wikiPage = ShareUser.getCurrentPage(driver).render(); wikiPage = wikiPageList.getWikiPageDirectoryInfo(wikiTitl...
/** * Method to return tag name from Details Page of wiki. User must be logged in to the Share. * * @param driver - * WebDrone Instance * @param siteName * @param wikiTitle * @return String - tag name */
Method to return tag name from Details Page of wiki. User must be logged in to the Share
getWikiTag
{ "repo_name": "Tybion/community-edition", "path": "projects/qa-share/src/main/java/org/alfresco/share/util/WikiUtils.java", "license": "lgpl-3.0", "size": 2715 }
[ "org.alfresco.po.share.site.wiki.WikiPage", "org.alfresco.po.share.site.wiki.WikiPageList", "org.alfresco.share.util.AbstractUtils", "org.alfresco.webdrone.WebDrone" ]
import org.alfresco.po.share.site.wiki.WikiPage; import org.alfresco.po.share.site.wiki.WikiPageList; import org.alfresco.share.util.AbstractUtils; import org.alfresco.webdrone.WebDrone;
import org.alfresco.po.share.site.wiki.*; import org.alfresco.share.util.*; import org.alfresco.webdrone.*;
[ "org.alfresco.po", "org.alfresco.share", "org.alfresco.webdrone" ]
org.alfresco.po; org.alfresco.share; org.alfresco.webdrone;
1,183,308
@Override public void setHeaderFilterStrategy(HeaderFilterStrategy headerFilterStrategy) { this.headerFilterStrategy = headerFilterStrategy; if (cxfBinding instanceof HeaderFilterStrategyAware) { ((HeaderFilterStrategyAware) cxfBinding).setHeaderFilterStrategy(headerFilterStrategy); ...
void function(HeaderFilterStrategy headerFilterStrategy) { this.headerFilterStrategy = headerFilterStrategy; if (cxfBinding instanceof HeaderFilterStrategyAware) { ((HeaderFilterStrategyAware) cxfBinding).setHeaderFilterStrategy(headerFilterStrategy); } }
/** * To use a custom HeaderFilterStrategy to filter header to and from Camel message. */
To use a custom HeaderFilterStrategy to filter header to and from Camel message
setHeaderFilterStrategy
{ "repo_name": "pax95/camel", "path": "components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfEndpoint.java", "license": "apache-2.0", "size": 52446 }
[ "org.apache.camel.spi.HeaderFilterStrategy", "org.apache.camel.spi.HeaderFilterStrategyAware" ]
import org.apache.camel.spi.HeaderFilterStrategy; import org.apache.camel.spi.HeaderFilterStrategyAware;
import org.apache.camel.spi.*;
[ "org.apache.camel" ]
org.apache.camel;
1,626,277
private List<PrintItem<Specimen>> getSpecimenPrintItems(Collection<Specimen> specimens) { List<PrintItem<Specimen>> printItems = new ArrayList<>(); specimens.stream().sorted(Comparator.comparingLong(Specimen::getId)).forEach( (specimen) -> { if (specimen.isPrintLabel()) { printItems.add(PrintItem.mak...
List<PrintItem<Specimen>> function(Collection<Specimen> specimens) { List<PrintItem<Specimen>> printItems = new ArrayList<>(); specimens.stream().sorted(Comparator.comparingLong(Specimen::getId)).forEach( (specimen) -> { if (specimen.isPrintLabel()) { printItems.add(PrintItem.make(specimen, specimen.getCopiesToPrint())...
/** * Filters input collection of specimens based on printLabel flag */
Filters input collection of specimens based on printLabel flag
getSpecimenPrintItems
{ "repo_name": "krishagni/openspecimen", "path": "WEB-INF/src/com/krishagni/catissueplus/core/biospecimen/services/impl/SpecimenServiceImpl.java", "license": "bsd-3-clause", "size": 48600 }
[ "com.krishagni.catissueplus.core.biospecimen.domain.Specimen", "com.krishagni.catissueplus.core.common.domain.PrintItem", "java.util.ArrayList", "java.util.Collection", "java.util.Comparator", "java.util.List", "org.apache.commons.collections.CollectionUtils" ]
import com.krishagni.catissueplus.core.biospecimen.domain.Specimen; import com.krishagni.catissueplus.core.common.domain.PrintItem; import java.util.ArrayList; import java.util.Collection; import java.util.Comparator; import java.util.List; import org.apache.commons.collections.CollectionUtils;
import com.krishagni.catissueplus.core.biospecimen.domain.*; import com.krishagni.catissueplus.core.common.domain.*; import java.util.*; import org.apache.commons.collections.*;
[ "com.krishagni.catissueplus", "java.util", "org.apache.commons" ]
com.krishagni.catissueplus; java.util; org.apache.commons;
1,625,705
protected void attachManagedResource(ManagedResource res, String path, Router router) { router.attach(path, res.getServerResourceClass()); log.info("Attached managed resource at path: {}",path); // Determine if we should also route requests for child resources // ManagedResource.ChildResourceSupp...
void function(ManagedResource res, String path, Router router) { router.attach(path, res.getServerResourceClass()); log.info(STR,path); if (ManagedResource.ChildResourceSupport.class.isAssignableFrom(res.getClass())) { router.attach(path+STR, res.getServerResourceClass()); } }
/** * Attaches a ManagedResource and optionally a path for child resources * to the given Restlet Router. */
Attaches a ManagedResource and optionally a path for child resources to the given Restlet Router
attachManagedResource
{ "repo_name": "yintaoxue/read-open-source-code", "path": "solr-4.10.4/src/org/apache/solr/rest/RestManager.java", "license": "apache-2.0", "size": 29920 }
[ "org.restlet.routing.Router" ]
import org.restlet.routing.Router;
import org.restlet.routing.*;
[ "org.restlet.routing" ]
org.restlet.routing;
2,105,046
private void render() { graphics.setColor(Color.BLACK); graphics.fillRect(0, 0, WIDTH, HEIGHT); mainState.draw(graphics); }
void function() { graphics.setColor(Color.BLACK); graphics.fillRect(0, 0, WIDTH, HEIGHT); mainState.draw(graphics); }
/** * Draws everything to an offscreen buffer. This is * to prevent flickering. */
Draws everything to an offscreen buffer. This is to prevent flickering
render
{ "repo_name": "AgostonSzepessy/tilemap-editor", "path": "src/mapeditor/MapEditorPanel.java", "license": "mit", "size": 4781 }
[ "java.awt.Color" ]
import java.awt.Color;
import java.awt.*;
[ "java.awt" ]
java.awt;
1,575,532
@Nullable public ItemStack getCraftingResult(InventoryCrafting inv) { return this.resultItem.copy(); }
ItemStack function(InventoryCrafting inv) { return this.resultItem.copy(); }
/** * Returns an Item that is the result of this recipe */
Returns an Item that is the result of this recipe
getCraftingResult
{ "repo_name": "boredherobrine13/morefuelsmod-1.10", "path": "build/tmp/recompileMc/sources/net/minecraft/item/crafting/RecipeFireworks.java", "license": "lgpl-2.1", "size": 8859 }
[ "net.minecraft.inventory.InventoryCrafting", "net.minecraft.item.ItemStack" ]
import net.minecraft.inventory.InventoryCrafting; import net.minecraft.item.ItemStack;
import net.minecraft.inventory.*; import net.minecraft.item.*;
[ "net.minecraft.inventory", "net.minecraft.item" ]
net.minecraft.inventory; net.minecraft.item;
806,312
@NotNull(message = "Email is never NULL") public String email() throws IOException { return this.jsn.text("email"); }
@NotNull(message = STR) String function() throws IOException { return this.jsn.text("email"); }
/** * Get his email. * @return Email * @throws IOException If it fails */
Get his email
email
{ "repo_name": "cvrebert/typed-github", "path": "src/main/java/com/jcabi/github/User.java", "license": "bsd-3-clause", "size": 17501 }
[ "java.io.IOException", "javax.validation.constraints.NotNull" ]
import java.io.IOException; import javax.validation.constraints.NotNull;
import java.io.*; import javax.validation.constraints.*;
[ "java.io", "javax.validation" ]
java.io; javax.validation;
443,004
public static Date refine(Date date, DateEnum granularity) { Date newDate = null; if (date != null) { Calendar cal = toCalendar(date, granularity); newDate = cal.getTime(); } return newDate; }
static Date function(Date date, DateEnum granularity) { Date newDate = null; if (date != null) { Calendar cal = toCalendar(date, granularity); newDate = cal.getTime(); } return newDate; }
/** * Refine a date to the specified level of accuracy. * * @param date * - The date to be refined. * @param granuality * - The level of granuality to set the date to. * @returns A refined date to the specified level of granularity: Notes: [1] * The date must have...
Refine a date to the specified level of accuracy
refine
{ "repo_name": "javapathshala/WisdomCode", "path": "JP_KONCEPT/src/main/java/com/jp/koncept/date/DateUtil.java", "license": "gpl-2.0", "size": 9676 }
[ "java.util.Calendar", "java.util.Date" ]
import java.util.Calendar; import java.util.Date;
import java.util.*;
[ "java.util" ]
java.util;
1,827,059
public static String[] getNames(JSONObject jo) { int length = jo.length(); if (length == 0) { return null; } Iterator iterator = jo.keys(); String[] names = new String[length]; int i = 0; while (iterator.hasNext()) { names[i] = (String)...
static String[] function(JSONObject jo) { int length = jo.length(); if (length == 0) { return null; } Iterator iterator = jo.keys(); String[] names = new String[length]; int i = 0; while (iterator.hasNext()) { names[i] = (String) iterator.next(); i += 1; } return names; }
/** * Get an array of field names from a JSONObject. * * @return An array of field names, or null if there are no names. */
Get an array of field names from a JSONObject
getNames
{ "repo_name": "ael-code/preston", "path": "src/org/json/JSONObject.java", "license": "gpl-2.0", "size": 57295 }
[ "java.util.Iterator" ]
import java.util.Iterator;
import java.util.*;
[ "java.util" ]
java.util;
1,683,463
public List<IssSlave> getSlaves(String sessionKey) { User u = getLoggedInUser(sessionKey); ensureSatAdmin(u); return IssFactory.listAllIssSlaves(); }
List<IssSlave> function(String sessionKey) { User u = getLoggedInUser(sessionKey); ensureSatAdmin(u); return IssFactory.listAllIssSlaves(); }
/** * Get all the Slaves this Master knows about * @param sessionKey User's session key. * @return list of all the IssSlaves we know about * * @xmlrpc.doc Get all the Slaves this Master knows about * @xmlrpc.param #param("string", "sessionKey") * @xmlrpc.returntype * #array(...
Get all the Slaves this Master knows about
getSlaves
{ "repo_name": "dmacvicar/spacewalk", "path": "java/code/src/com/redhat/rhn/frontend/xmlrpc/sync/slave/SlaveHandler.java", "license": "gpl-2.0", "size": 9844 }
[ "com.redhat.rhn.domain.iss.IssFactory", "com.redhat.rhn.domain.iss.IssSlave", "com.redhat.rhn.domain.user.User", "java.util.List" ]
import com.redhat.rhn.domain.iss.IssFactory; import com.redhat.rhn.domain.iss.IssSlave; import com.redhat.rhn.domain.user.User; import java.util.List;
import com.redhat.rhn.domain.iss.*; import com.redhat.rhn.domain.user.*; import java.util.*;
[ "com.redhat.rhn", "java.util" ]
com.redhat.rhn; java.util;
629,817
@SuppressWarnings("unchecked") public void deleteRows(int[] deletableRowIndexes) { // Put rows into a List to make it easier to delete List<Object> deletetableRows = new ArrayList<>(); for (int i = 0; i < deletableRowIndexes.length; i++) { deletetableRows.add(getDataVector().get(deletableRowI...
@SuppressWarnings(STR) void function(int[] deletableRowIndexes) { List<Object> deletetableRows = new ArrayList<>(); for (int i = 0; i < deletableRowIndexes.length; i++) { deletetableRows.add(getDataVector().get(deletableRowIndexes[i])); } getDataVector().removeAll(deletetableRows); fireTableDataChanged(); }
/** * Delete multiple rows from the table. * * @param deletableRowIndexes indexes of the deletable rows */
Delete multiple rows from the table
deleteRows
{ "repo_name": "antalpeti/Imaginary-Zoo", "path": "src/zoo/imaginary/model/TableModel.java", "license": "mit", "size": 2552 }
[ "java.util.ArrayList", "java.util.List" ]
import java.util.ArrayList; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,411,600
public Type enrich(@AsEndpointUri EndpointProducerBuilder resourceUri, AggregationStrategy aggregationStrategy, boolean aggregateOnException) { return enrich(resourceUri, aggregationStrategy, aggregateOnException, false); }
Type function(@AsEndpointUri EndpointProducerBuilder resourceUri, AggregationStrategy aggregationStrategy, boolean aggregateOnException) { return enrich(resourceUri, aggregationStrategy, aggregateOnException, false); }
/** * The <a href="http://camel.apache.org/content-enricher.html">Content Enricher EIP</a> * enriches an exchange with additional data obtained from a <code>resourceUri</code>. * * @param resourceUri URI of resource endpoint for obtaining additional data. * @param aggregationStrategy ...
The Content Enricher EIP enriches an exchange with additional data obtained from a <code>resourceUri</code>
enrich
{ "repo_name": "davidkarlsen/camel", "path": "core/camel-core/src/main/java/org/apache/camel/model/ProcessorDefinition.java", "license": "apache-2.0", "size": 149529 }
[ "org.apache.camel.AggregationStrategy", "org.apache.camel.builder.EndpointProducerBuilder", "org.apache.camel.spi.AsEndpointUri" ]
import org.apache.camel.AggregationStrategy; import org.apache.camel.builder.EndpointProducerBuilder; import org.apache.camel.spi.AsEndpointUri;
import org.apache.camel.*; import org.apache.camel.builder.*; import org.apache.camel.spi.*;
[ "org.apache.camel" ]
org.apache.camel;
1,640,840
public void checkoutBranch(String refName) throws CoreException { new BranchOperation(repository, refName).execute(null); }
void function(String refName) throws CoreException { new BranchOperation(repository, refName).execute(null); }
/** * Checkouts branch * * @param refName * full name of branch * @throws CoreException */
Checkouts branch
checkoutBranch
{ "repo_name": "chalstrick/egit", "path": "org.eclipse.egit.core.test/src/org/eclipse/egit/core/test/TestRepository.java", "license": "epl-1.0", "size": 14342 }
[ "org.eclipse.core.runtime.CoreException", "org.eclipse.egit.core.op.BranchOperation" ]
import org.eclipse.core.runtime.CoreException; import org.eclipse.egit.core.op.BranchOperation;
import org.eclipse.core.runtime.*; import org.eclipse.egit.core.op.*;
[ "org.eclipse.core", "org.eclipse.egit" ]
org.eclipse.core; org.eclipse.egit;
2,597,052
public BukkitScheduler getScheduler();
BukkitScheduler function();
/** * Gets the Scheduler for managing scheduled events * * @return Scheduler for this Server instance */
Gets the Scheduler for managing scheduled events
getScheduler
{ "repo_name": "EvilSeph/Bukkit", "path": "src/main/java/org/bukkit/Server.java", "license": "gpl-3.0", "size": 23359 }
[ "org.bukkit.scheduler.BukkitScheduler" ]
import org.bukkit.scheduler.BukkitScheduler;
import org.bukkit.scheduler.*;
[ "org.bukkit.scheduler" ]
org.bukkit.scheduler;
2,165,049
public static void registerRealTimeMetricsViews() { registerRealTimeMetricsViews(Stats.getViewManager()); }
static void function() { registerRealTimeMetricsViews(Stats.getViewManager()); }
/** * Registers views for real time metrics reporting for streaming RPCs. This views will produce * data only for streaming gRPC calls. * * @since 0.18 */
Registers views for real time metrics reporting for streaming RPCs. This views will produce data only for streaming gRPC calls
registerRealTimeMetricsViews
{ "repo_name": "sebright/opencensus-java", "path": "contrib/grpc_metrics/src/main/java/io/opencensus/contrib/grpc/metrics/RpcViews.java", "license": "apache-2.0", "size": 13418 }
[ "io.opencensus.stats.Stats" ]
import io.opencensus.stats.Stats;
import io.opencensus.stats.*;
[ "io.opencensus.stats" ]
io.opencensus.stats;
2,652,380
protected final void replaceCurrentSettings(final Map newSettings) { currentSettings.clear(); currentSettings.putAll(newSettings); }
final void function(final Map newSettings) { currentSettings.clear(); currentSettings.putAll(newSettings); }
/** * Replaces current settings with new settings. * * @param newSettings */
Replaces current settings with new settings
replaceCurrentSettings
{ "repo_name": "simeshev/parabuild-ci", "path": "src/org/parabuild/ci/versioncontrol/AbstractSourceControl.java", "license": "lgpl-3.0", "size": 17753 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
1,158,672
public static @Nullable TabObscuringHandler getValueOrNullFrom( @Nullable WindowAndroid windowAndroid) { if (windowAndroid == null) return null; TabObscuringHandlerSupplier supplier = KEY.retrieveDataFromHost(windowAndroid.getUnownedUserDataHost()); return supplie...
static @Nullable TabObscuringHandler function( @Nullable WindowAndroid windowAndroid) { if (windowAndroid == null) return null; TabObscuringHandlerSupplier supplier = KEY.retrieveDataFromHost(windowAndroid.getUnownedUserDataHost()); return supplier == null ? null : supplier.get(); } public TabObscuringHandlerSupplier()...
/** * Retrieves an {@link ObservableSupplier} from the given host. Real implementations should * use {@link WindowAndroid}. */
Retrieves an <code>ObservableSupplier</code> from the given host. Real implementations should use <code>WindowAndroid</code>
getValueOrNullFrom
{ "repo_name": "ric2b/Vivaldi-browser", "path": "chromium/chrome/android/java/src/org/chromium/chrome/browser/ui/TabObscuringHandlerSupplier.java", "license": "bsd-3-clause", "size": 1529 }
[ "androidx.annotation.Nullable", "org.chromium.ui.base.WindowAndroid" ]
import androidx.annotation.Nullable; import org.chromium.ui.base.WindowAndroid;
import androidx.annotation.*; import org.chromium.ui.base.*;
[ "androidx.annotation", "org.chromium.ui" ]
androidx.annotation; org.chromium.ui;
2,179,542
public AppendBlobAppendBlockHeaders withDate(OffsetDateTime date) { if (date == null) { this.date = null; } else { this.date = new DateTimeRfc1123(date); } return this; }
AppendBlobAppendBlockHeaders function(OffsetDateTime date) { if (date == null) { this.date = null; } else { this.date = new DateTimeRfc1123(date); } return this; }
/** * Set the date value. * * @param date the date value to set. * @return the AppendBlobAppendBlockHeaders object itself. */
Set the date value
withDate
{ "repo_name": "navalev/azure-sdk-for-java", "path": "sdk/storage/microsoft-azure-storage-blob/src/main/java/com/microsoft/azure/storage/blob/models/AppendBlobAppendBlockHeaders.java", "license": "mit", "size": 7860 }
[ "com.microsoft.rest.v2.DateTimeRfc1123", "java.time.OffsetDateTime" ]
import com.microsoft.rest.v2.DateTimeRfc1123; import java.time.OffsetDateTime;
import com.microsoft.rest.v2.*; import java.time.*;
[ "com.microsoft.rest", "java.time" ]
com.microsoft.rest; java.time;
508,316
public void addWidgetToDisable(final Disableable disableable) { formValidator.addDisableTarget(disableable); }
void function(final Disableable disableable) { formValidator.addDisableTarget(disableable); }
/** See {@link SimpleFormValidator#addDisableTarget(Disableable)}. * * @param disableable will be disabled if any errors are found in the form. */
See <code>SimpleFormValidator#addDisableTarget(Disableable)</code>
addWidgetToDisable
{ "repo_name": "czyzby/gdx-lml-vis", "path": "src/com/github/czyzby/lml/vis/ui/VisFormTable.java", "license": "apache-2.0", "size": 2898 }
[ "com.badlogic.gdx.scenes.scene2d.utils.Disableable" ]
import com.badlogic.gdx.scenes.scene2d.utils.Disableable;
import com.badlogic.gdx.scenes.scene2d.utils.*;
[ "com.badlogic.gdx" ]
com.badlogic.gdx;
1,493,337
public static <DATATYPE, ITEMTYPE extends ITreeItem <DATATYPE, ITEMTYPE>> void sort (@Nonnull final IBasicTree <? extends DATATYPE, ITEMTYPE> aTree, @Nonnull final Comparator <? super DATATYPE> aValueComparator) { _sort (aTre...
static <DATATYPE, ITEMTYPE extends ITreeItem <DATATYPE, ITEMTYPE>> void function (@Nonnull final IBasicTree <? extends DATATYPE, ITEMTYPE> aTree, @Nonnull final Comparator <? super DATATYPE> aValueComparator) { _sort (aTree, Comparator.comparing (IBasicTreeItem::getData, aValueComparator)); }
/** * Sort each level of the passed tree with the specified comparator. * * @param aTree * The tree to be sorted. * @param aValueComparator * The comparator to be used for sorting the tree items on each level. * @param <DATATYPE> * The tree item data type * @param <ITEMTY...
Sort each level of the passed tree with the specified comparator
sort
{ "repo_name": "phax/ph-commons", "path": "ph-tree/src/main/java/com/helger/tree/sort/TreeSorter.java", "license": "apache-2.0", "size": 3780 }
[ "com.helger.tree.IBasicTree", "com.helger.tree.IBasicTreeItem", "com.helger.tree.ITreeItem", "java.util.Comparator", "javax.annotation.Nonnull" ]
import com.helger.tree.IBasicTree; import com.helger.tree.IBasicTreeItem; import com.helger.tree.ITreeItem; import java.util.Comparator; import javax.annotation.Nonnull;
import com.helger.tree.*; import java.util.*; import javax.annotation.*;
[ "com.helger.tree", "java.util", "javax.annotation" ]
com.helger.tree; java.util; javax.annotation;
581,579
@Override public Stat getStat(String path, int options) { return _zkClient.getStat(path); }
Stat function(String path, int options) { return _zkClient.getStat(path); }
/** * sync getStat * */
sync getStat
getStat
{ "repo_name": "kishoreg/incubator-helix", "path": "helix-core/src/main/java/org/apache/helix/manager/zk/ZkBaseDataAccessor.java", "license": "apache-2.0", "size": 32830 }
[ "org.apache.zookeeper.data.Stat" ]
import org.apache.zookeeper.data.Stat;
import org.apache.zookeeper.data.*;
[ "org.apache.zookeeper" ]
org.apache.zookeeper;
747,429
public List<ExpressRouteConnectionInner> expressRouteConnections() { return this.innerProperties() == null ? null : this.innerProperties().expressRouteConnections(); }
List<ExpressRouteConnectionInner> function() { return this.innerProperties() == null ? null : this.innerProperties().expressRouteConnections(); }
/** * Get the expressRouteConnections property: List of ExpressRoute connections to the ExpressRoute gateway. * * @return the expressRouteConnections value. */
Get the expressRouteConnections property: List of ExpressRoute connections to the ExpressRoute gateway
expressRouteConnections
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteGatewayInner.java", "license": "mit", "size": 5403 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
347,439
public LocalDateTime getCreationdate();
LocalDateTime function();
/** * Getter for <code>INVENTORY.ITEM.CREATIONDATE</code>. */
Getter for <code>INVENTORY.ITEM.CREATIONDATE</code>
getCreationdate
{ "repo_name": "picodotdev/blog-ejemplos", "path": "Multidatabase/src/main/java/io/github/picodotdev/blogbitix/multidatabase/jooq/inventory/tables/interfaces/IItem.java", "license": "unlicense", "size": 2439 }
[ "java.time.LocalDateTime" ]
import java.time.LocalDateTime;
import java.time.*;
[ "java.time" ]
java.time;
1,514,183
public static List<Entity> getNearbyEntities(Entity sourceEntity, double radiusX, double radiusY, double radiusZ, @Nullable IValidator<Entity> validator) { PreCon.notNull(sourceEntity); PreCon.positiveN...
static List<Entity> function(Entity sourceEntity, double radiusX, double radiusY, double radiusZ, @Nullable IValidator<Entity> validator) { PreCon.notNull(sourceEntity); PreCon.positiveNumber(radiusX); PreCon.positiveNumber(radiusY); PreCon.positiveNumber(radiusZ); List<Entity> results = new ArrayList<>(15); World worl...
/** * Get entities within a specified radius of a {@link org.bukkit.Location}. * * <p>If all radius values are equal, the radius is spherical. Otherwise the radius is cuboid.</p> * * <p>The source entity is not included in the result.</p> * * <p>Does not include Npc's if validator is ...
Get entities within a specified radius of a <code>org.bukkit.Location</code>. If all radius values are equal, the radius is spherical. Otherwise the radius is cuboid. The source entity is not included in the result. Does not include Npc's if validator is not specified
getNearbyEntities
{ "repo_name": "JCThePants/NucleusFramework", "path": "src/com/jcwhatever/nucleus/utils/entity/EntityUtils.java", "license": "mit", "size": 45515 }
[ "com.jcwhatever.nucleus.providers.npc.Npcs", "com.jcwhatever.nucleus.utils.PreCon", "com.jcwhatever.nucleus.utils.coords.LocationUtils", "com.jcwhatever.nucleus.utils.validate.IValidator", "java.util.ArrayList", "java.util.List", "javax.annotation.Nullable", "org.bukkit.Chunk", "org.bukkit.Location"...
import com.jcwhatever.nucleus.providers.npc.Npcs; import com.jcwhatever.nucleus.utils.PreCon; import com.jcwhatever.nucleus.utils.coords.LocationUtils; import com.jcwhatever.nucleus.utils.validate.IValidator; import java.util.ArrayList; import java.util.List; import javax.annotation.Nullable; import org.bukkit.Chunk; i...
import com.jcwhatever.nucleus.providers.npc.*; import com.jcwhatever.nucleus.utils.*; import com.jcwhatever.nucleus.utils.coords.*; import com.jcwhatever.nucleus.utils.validate.*; import java.util.*; import javax.annotation.*; import org.bukkit.*; import org.bukkit.entity.*;
[ "com.jcwhatever.nucleus", "java.util", "javax.annotation", "org.bukkit", "org.bukkit.entity" ]
com.jcwhatever.nucleus; java.util; javax.annotation; org.bukkit; org.bukkit.entity;
2,214,548
public IndexShardState markAsRecovering(String reason, RecoveryState recoveryState) throws IndexShardStartedException, IndexShardRelocatedException, IndexShardRecoveringException, IndexShardClosedException { synchronized (mutex) { if (state == IndexShardState.CLOSED) { th...
IndexShardState function(String reason, RecoveryState recoveryState) throws IndexShardStartedException, IndexShardRelocatedException, IndexShardRecoveringException, IndexShardClosedException { synchronized (mutex) { if (state == IndexShardState.CLOSED) { throw new IndexShardClosedException(shardId); } if (state == Inde...
/** * Marks the shard as recovering based on a recovery state, fails with exception is recovering is not allowed to be set. */
Marks the shard as recovering based on a recovery state, fails with exception is recovering is not allowed to be set
markAsRecovering
{ "repo_name": "jprante/elasticsearch-server", "path": "server/src/main/java/org/elasticsearch/index/shard/IndexShard.java", "license": "apache-2.0", "size": 126001 }
[ "java.util.concurrent.atomic.AtomicBoolean", "org.elasticsearch.indices.recovery.RecoveryState" ]
import java.util.concurrent.atomic.AtomicBoolean; import org.elasticsearch.indices.recovery.RecoveryState;
import java.util.concurrent.atomic.*; import org.elasticsearch.indices.recovery.*;
[ "java.util", "org.elasticsearch.indices" ]
java.util; org.elasticsearch.indices;
1,121,839
@Test public void testIncompatibleSubregions() throws CacheException { VM vm0 = VM.getVM(0); VM vm1 = VM.getVM(1);
void function() throws CacheException { VM vm0 = VM.getVM(0); VM vm1 = VM.getVM(1);
/** * Tests the compatibility of creating certain kinds of subregions of a local region. */
Tests the compatibility of creating certain kinds of subregions of a local region
testIncompatibleSubregions
{ "repo_name": "jdeppe-pivotal/geode", "path": "geode-core/src/distributedTest/java/org/apache/geode/cache30/PartitionedRegionDUnitTest.java", "license": "apache-2.0", "size": 15660 }
[ "org.apache.geode.cache.CacheException", "org.apache.geode.test.dunit.VM" ]
import org.apache.geode.cache.CacheException; import org.apache.geode.test.dunit.VM;
import org.apache.geode.cache.*; import org.apache.geode.test.dunit.*;
[ "org.apache.geode" ]
org.apache.geode;
630,006
public TResult queryInForChunk(String[] columns, String nestedSQL, Map<String, Object> fieldValues, String groupBy, String having, String orderBy, int limit) { return queryInForChunk(false, columns, nestedSQL, fieldValues, groupBy, having, orderBy, limit); }
TResult function(String[] columns, String nestedSQL, Map<String, Object> fieldValues, String groupBy, String having, String orderBy, int limit) { return queryInForChunk(false, columns, nestedSQL, fieldValues, groupBy, having, orderBy, limit); }
/** * Query for ordered rows by ids in the nested SQL query, starting at the * offset and returning no more than the limit. * * @param columns * columns * @param nestedSQL * nested SQL * @param fieldValues * field values * @param groupBy * group by * ...
Query for ordered rows by ids in the nested SQL query, starting at the offset and returning no more than the limit
queryInForChunk
{ "repo_name": "ngageoint/geopackage-core-java", "path": "src/main/java/mil/nga/geopackage/user/UserCoreDao.java", "license": "mit", "size": 287160 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
2,794,753
protected void sequence_DataType(ISerializationContext context, DataType semanticObject) { genericSequencer.createSequence(context, semanticObject); }
void function(ISerializationContext context, DataType semanticObject) { genericSequencer.createSequence(context, semanticObject); }
/** * Contexts: * DataType returns DataType * * Constraint: * (name=ID fields+=VariableDefinition+) */
Contexts: DataType returns DataType Constraint: (name=ID fields+=VariableDefinition+)
sequence_DataType
{ "repo_name": "gaborbsd/ProtoKit2", "path": "hu.bme.aut.protokit.lang/src-gen/hu/bme/aut/protokit/serializer/ProtokitDSLSemanticSequencer.java", "license": "bsd-2-clause", "size": 9152 }
[ "hu.bme.aut.protokit.model.DataType", "org.eclipse.xtext.serializer.ISerializationContext" ]
import hu.bme.aut.protokit.model.DataType; import org.eclipse.xtext.serializer.ISerializationContext;
import hu.bme.aut.protokit.model.*; import org.eclipse.xtext.serializer.*;
[ "hu.bme.aut", "org.eclipse.xtext" ]
hu.bme.aut; org.eclipse.xtext;
716,537
public void createEmptyDB(SQLiteDatabase db) { db.execSQL("DROP TABLE IF EXISTS " + TABLE_FAVORITES); db.execSQL("DROP TABLE IF EXISTS " + TABLE_WORKSPACE_SCREENS); onCreate(db); }
void function(SQLiteDatabase db) { db.execSQL(STR + TABLE_FAVORITES); db.execSQL(STR + TABLE_WORKSPACE_SCREENS); onCreate(db); }
/** * Clears all the data for a fresh start. */
Clears all the data for a fresh start
createEmptyDB
{ "repo_name": "mkodekar/LB-Launcher", "path": "app/src/main/java/com/lb/launcher/LauncherProvider.java", "license": "apache-2.0", "size": 76192 }
[ "android.database.sqlite.SQLiteDatabase" ]
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.*;
[ "android.database" ]
android.database;
1,124,954
public WsTemplateGroupsResponse templateGroups(TemplateGroupsRequest request) { return call( new GetRequest(path("template_groups")) .setParam("p", request.getP()) .setParam("permission", request.getPermission()) .setParam("ps", request.getPs()) .setParam("q", request.getQ())...
WsTemplateGroupsResponse function(TemplateGroupsRequest request) { return call( new GetRequest(path(STR)) .setParam("p", request.getP()) .setParam(STR, request.getPermission()) .setParam("ps", request.getPs()) .setParam("q", request.getQ()) .setParam(STR, request.getTemplateId()) .setParam(STR, request.getTemplateName(...
/** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/permissions/template_groups">Further information about this action online (including a response example)</a> * @since 5.2 */
This is part of the internal API. This is a GET request
templateGroups
{ "repo_name": "SonarSource/sonarqube", "path": "sonar-ws/src/main/java/org/sonarqube/ws/client/permissions/PermissionsService.java", "license": "lgpl-3.0", "size": 16761 }
[ "org.sonarqube.ws.Permissions", "org.sonarqube.ws.client.GetRequest" ]
import org.sonarqube.ws.Permissions; import org.sonarqube.ws.client.GetRequest;
import org.sonarqube.ws.*; import org.sonarqube.ws.client.*;
[ "org.sonarqube.ws" ]
org.sonarqube.ws;
2,388,587
@Override public StringBuffer format(final Date date, final StringBuffer buf) { return printer.format(date, buf); }
StringBuffer function(final Date date, final StringBuffer buf) { return printer.format(date, buf); }
/** * <p>Formats a {@code Date} object into the * supplied {@code StringBuffer} using a {@code GregorianCalendar}.</p> * * @param date the date to format * @param buf the buffer to format into * @return the specified string buffer */
Formats a Date object into the supplied StringBuffer using a GregorianCalendar
format
{ "repo_name": "jacktan1991/commons-lang", "path": "src/main/java/org/apache/commons/lang3/time/FastDateFormat.java", "license": "apache-2.0", "size": 22158 }
[ "java.util.Date" ]
import java.util.Date;
import java.util.*;
[ "java.util" ]
java.util;
2,389,005
public void commit (long id, Serializable context);
void function (long id, Serializable context);
/** * Called by TransactionManager upon transaction commit. * Warning: implementation should be able to handle multiple calls * with the same transaction id (rare crash recovery) * * @param id the Transaction identifier * @param context transaction context */
Called by TransactionManager upon transaction commit. Warning: implementation should be able to handle multiple calls with the same transaction id (rare crash recovery)
commit
{ "repo_name": "napramirez/jPOS", "path": "jpos/src/main/java/org/jpos/transaction/TransactionParticipant.java", "license": "agpl-3.0", "size": 1964 }
[ "java.io.Serializable" ]
import java.io.Serializable;
import java.io.*;
[ "java.io" ]
java.io;
607,067
public static void setControlEntityResolver(EntityResolver resolver) { controlEntityResolver = resolver; }
static void function(EntityResolver resolver) { controlEntityResolver = resolver; }
/** * Sets an EntityResolver to be added to all new control parsers. * Setting to null will reset to the default EntityResolver */
Sets an EntityResolver to be added to all new control parsers. Setting to null will reset to the default EntityResolver
setControlEntityResolver
{ "repo_name": "xmlunit/xmlunit", "path": "xmlunit-legacy/src/main/java/org/custommonkey/xmlunit/XMLUnit.java", "license": "apache-2.0", "size": 31742 }
[ "org.xml.sax.EntityResolver" ]
import org.xml.sax.EntityResolver;
import org.xml.sax.*;
[ "org.xml.sax" ]
org.xml.sax;
1,083,046
public void populateFrom(final Concept other) { super.populateFrom(other); highlight = other.getHighlight(); highlights = new HashMap<>(other.getHighlights()); level = other.getLevel(); conceptStatus = other.getConceptStatus(); leaf = other.getLeaf(); normName = other.getNormName(); su...
void function(final Concept other) { super.populateFrom(other); highlight = other.getHighlight(); highlights = new HashMap<>(other.getHighlights()); level = other.getLevel(); conceptStatus = other.getConceptStatus(); leaf = other.getLeaf(); normName = other.getNormName(); subsetLink = other.getSubsetLink(); conceptStat...
/** * Populate from. * * @param other the other */
Populate from
populateFrom
{ "repo_name": "NCIEVS/evsrestapi", "path": "src/main/java/gov/nih/nci/evs/api/model/Concept.java", "license": "bsd-3-clause", "size": 17202 }
[ "java.util.ArrayList", "java.util.HashMap" ]
import java.util.ArrayList; import java.util.HashMap;
import java.util.*;
[ "java.util" ]
java.util;
554,924
@JsonProperty("reactions_file") public File getReactionsFile() { return reactionsFile; }
@JsonProperty(STR) File function() { return reactionsFile; }
/** * <p>Original spec-file type: File</p> * * */
Original spec-file type: File
getReactionsFile
{ "repo_name": "cshenry/fba_tools", "path": "lib/src/us/kbase/fbatools/FBATsvFiles.java", "license": "mit", "size": 2581 }
[ "com.fasterxml.jackson.annotation.JsonProperty" ]
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.*;
[ "com.fasterxml.jackson" ]
com.fasterxml.jackson;
1,329,723
private static IExpr solveNumeric(IExpr expr, boolean isNumeric, EvalEngine engine) { return expr.isPresent() ? isNumeric ? engine.evalN(expr) : expr : F.NIL; }
static IExpr function(IExpr expr, boolean isNumeric, EvalEngine engine) { return expr.isPresent() ? isNumeric ? engine.evalN(expr) : expr : F.NIL; }
/** * if <code>isNumeric == true</code> do a numeric calculation * * @param expr * @param isNumeric * @param engine * @return */
if <code>isNumeric == true</code> do a numeric calculation
solveNumeric
{ "repo_name": "axkr/symja_android_library", "path": "symja_android_library/matheclipse-core/src/main/java/org/matheclipse/core/reflection/system/Solve.java", "license": "gpl-3.0", "size": 58774 }
[ "org.matheclipse.core.eval.EvalEngine", "org.matheclipse.core.interfaces.IExpr" ]
import org.matheclipse.core.eval.EvalEngine; import org.matheclipse.core.interfaces.IExpr;
import org.matheclipse.core.eval.*; import org.matheclipse.core.interfaces.*;
[ "org.matheclipse.core" ]
org.matheclipse.core;
793,836
public void setSeparator(String separator) { if (separator != null && separator.length() == 0) separator = null; if (!Objects.equals(_separator, separator)) { _separator = separator; smartUpdate("separator", getSeparator()); } }
void function(String separator) { if (separator != null && separator.length() == 0) separator = null; if (!Objects.equals(_separator, separator)) { _separator = separator; smartUpdate(STR, getSeparator()); } }
/** * Sets the separate chars of this component. * <p> * Support: 0-9, A-Z (case insensitive), and ,.;'[]/\-= * <p> * The separate chars will work as 'Enter' key, * it will not considered as input value but send onSerch or onSelect while key up. * @param String createMessage * the create mes...
Sets the separate chars of this component. Support: 0-9, A-Z (case insensitive), and ,.;'[]/\-= The separate chars will work as 'Enter' key, it will not considered as input value but send onSerch or onSelect while key up
setSeparator
{ "repo_name": "benbai123/chosenbox", "path": "src/org/zkoss/addon/chosenbox/Chosenbox.java", "license": "lgpl-3.0", "size": 22843 }
[ "org.zkoss.lang.Objects" ]
import org.zkoss.lang.Objects;
import org.zkoss.lang.*;
[ "org.zkoss.lang" ]
org.zkoss.lang;
1,820,342
@ServiceMethod(returns = ReturnType.SINGLE) AgentPoolAvailableVersionsInner getAvailableAgentPoolVersions(String resourceGroupName, String resourceName);
@ServiceMethod(returns = ReturnType.SINGLE) AgentPoolAvailableVersionsInner getAvailableAgentPoolVersions(String resourceGroupName, String resourceName);
/** * See [supported Kubernetes versions](https://docs.microsoft.com/azure/aks/supported-kubernetes-versions) for more * details about the version lifecycle. * * @param resourceGroupName The name of the resource group. * @param resourceName The name of the managed cluster resource. * @thro...
See [supported Kubernetes versions](HREF) for more details about the version lifecycle
getAvailableAgentPoolVersions
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/AgentPoolsClient.java", "license": "mit", "size": 34328 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.resourcemanager.containerservice.fluent.models.AgentPoolAvailableVersionsInner" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.resourcemanager.containerservice.fluent.models.AgentPoolAvailableVersionsInner;
import com.azure.core.annotation.*; import com.azure.resourcemanager.containerservice.fluent.models.*;
[ "com.azure.core", "com.azure.resourcemanager" ]
com.azure.core; com.azure.resourcemanager;
342,609
@Override public void updateServerSide() { if (!isLinked() || !updateOnInterval(10)) { return; } IErrorLogic errorLogic = getErrorLogic(); errorLogic.setCondition(!hasPostageMin(3), EnumErrorCode.NOSTAMPS); errorLogic.setCondition(!hasPaperMin(2), EnumErrorCode.NOPAPER); IInventory inventory = ...
void function() { if (!isLinked() !updateOnInterval(10)) { return; } IErrorLogic errorLogic = getErrorLogic(); errorLogic.setCondition(!hasPostageMin(3), EnumErrorCode.NOSTAMPS); errorLogic.setCondition(!hasPaperMin(2), EnumErrorCode.NOPAPER); IInventory inventory = getInternalInventory(); ItemStack tradeGood = invento...
/** * The trade station should show errors for missing stamps and paper first. * Once it is able to send letters, it should display other error states. */
The trade station should show errors for missing stamps and paper first. Once it is able to send letters, it should display other error states
updateServerSide
{ "repo_name": "ThiagoGarciaAlves/ForestryMC", "path": "src/main/java/forestry/mail/gadgets/MachineTrader.java", "license": "gpl-3.0", "size": 10160 }
[ "net.minecraft.inventory.IInventory", "net.minecraft.item.ItemStack" ]
import net.minecraft.inventory.IInventory; import net.minecraft.item.ItemStack;
import net.minecraft.inventory.*; import net.minecraft.item.*;
[ "net.minecraft.inventory", "net.minecraft.item" ]
net.minecraft.inventory; net.minecraft.item;
2,299,115
boolean simpleAlign() { if (stringA.length() == stringB.length()) { offset = 0; if (stringA.equals(stringB)) { // No variant variantType = VariantType.INTERVAL; return true; } else if (stringA.length() == 1) { // SNP variantType = VariantType.SNP; return true; } else { // M...
boolean simpleAlign() { if (stringA.length() == stringB.length()) { offset = 0; if (stringA.equals(stringB)) { variantType = VariantType.INTERVAL; return true; } else if (stringA.length() == 1) { variantType = VariantType.SNP; return true; } else { offset = minCommonBase(); variantType = VariantType.MNP; return true; }...
/** * Simplified alignment */
Simplified alignment
simpleAlign
{ "repo_name": "wangwl/SOAPgaeaDevelopment4.0", "path": "src/main/java/org/bgi/flexlab/gaea/tools/annotator/realignment/VcfRefAltAlign.java", "license": "gpl-3.0", "size": 5744 }
[ "org.bgi.flexlab.gaea.tools.annotator.interval.Variant" ]
import org.bgi.flexlab.gaea.tools.annotator.interval.Variant;
import org.bgi.flexlab.gaea.tools.annotator.interval.*;
[ "org.bgi.flexlab" ]
org.bgi.flexlab;
2,091,345
@Test public void testAtomicReplicationRemoval() throws Exception { final String globalTopicName = "persistent://prop/global/ns-abc/successTopic"; String localCluster = "local"; String remoteCluster = "remote"; final ManagedLedger ledgerMock = mock(ManagedLedger.class); d...
void function() throws Exception { final String globalTopicName = STRlocalSTRremoteSTR.STRhttp: PulsarClient client = PulsarClient.builder().serviceUrl(brokerUrl.toString()).build(); ManagedCursor cursor = mock(ManagedCursorImpl.class); doReturn(remoteCluster).when(cursor).getName(); brokerService.getReplicationClients...
/** * {@link NonPersistentReplicator.removeReplicator} doesn't remove replicator in atomic way and does in multiple step: * 1. disconnect replicator producer * <p> * 2. close cursor * <p> * 3. remove from replicator-list. * <p> * * If we try to startReplicationProducer befor...
<code>NonPersistentReplicator.removeReplicator</code> doesn't remove replicator in atomic way and does in multiple step: 1. disconnect replicator producer 2. close cursor 3. remove from replicator-list. If we try to startReplicationProducer before step-c finish then it should not avoid restarting repl-producer
testAtomicReplicationRemoval
{ "repo_name": "saandrews/pulsar", "path": "pulsar-broker/src/test/java/org/apache/pulsar/broker/service/PersistentTopicTest.java", "license": "apache-2.0", "size": 59511 }
[ "java.lang.reflect.Method", "java.util.Optional", "org.apache.bookkeeper.mledger.AsyncCallbacks", "org.apache.bookkeeper.mledger.ManagedCursor", "org.apache.bookkeeper.mledger.impl.ManagedCursorImpl", "org.apache.pulsar.broker.admin.AdminResource", "org.apache.pulsar.broker.service.persistent.Persistent...
import java.lang.reflect.Method; import java.util.Optional; import org.apache.bookkeeper.mledger.AsyncCallbacks; import org.apache.bookkeeper.mledger.ManagedCursor; import org.apache.bookkeeper.mledger.impl.ManagedCursorImpl; import org.apache.pulsar.broker.admin.AdminResource; import org.apache.pulsar.broker.service.p...
import java.lang.reflect.*; import java.util.*; import org.apache.bookkeeper.mledger.*; import org.apache.bookkeeper.mledger.impl.*; import org.apache.pulsar.broker.admin.*; import org.apache.pulsar.broker.service.persistent.*; import org.apache.pulsar.client.api.*; import org.apache.pulsar.common.naming.*; import org....
[ "java.lang", "java.util", "org.apache.bookkeeper", "org.apache.pulsar", "org.mockito" ]
java.lang; java.util; org.apache.bookkeeper; org.apache.pulsar; org.mockito;
2,690,828
public void setTexture(int unit, Texture tex);
void function(int unit, Texture tex);
/** * Sets the texture to use for the given texture unit. */
Sets the texture to use for the given texture unit
setTexture
{ "repo_name": "PlanetWaves/clockworkengine", "path": "branches/3.0/engine/src/core/com/clockwork/renderer/Renderer.java", "license": "apache-2.0", "size": 9112 }
[ "com.clockwork.texture.Texture" ]
import com.clockwork.texture.Texture;
import com.clockwork.texture.*;
[ "com.clockwork.texture" ]
com.clockwork.texture;
1,942,835
public void testDFSClose() throws Exception { Configuration conf = new Configuration(); MiniDFSCluster cluster = new MiniDFSCluster(conf, 2, true, null); FileSystem fileSys = cluster.getFileSystem(); try { // create two files fileSys.create(new Path("/test/dfsclose/file-0")); fileSy...
void function() throws Exception { Configuration conf = new Configuration(); MiniDFSCluster cluster = new MiniDFSCluster(conf, 2, true, null); FileSystem fileSys = cluster.getFileSystem(); try { fileSys.create(new Path(STR)); fileSys.create(new Path(STR)); fileSys.close(); } finally { if (cluster != null) {cluster.shut...
/** * Tests DFSClient.close throws no ConcurrentModificationException if * multiple files are open. */
Tests DFSClient.close throws no ConcurrentModificationException if multiple files are open
testDFSClose
{ "repo_name": "daniarherikurniawan/Chameleon512", "path": "src/test/org/apache/hadoop/hdfs/TestDistributedFileSystem.java", "license": "apache-2.0", "size": 6403 }
[ "org.apache.hadoop.conf.Configuration", "org.apache.hadoop.fs.FileSystem", "org.apache.hadoop.fs.Path" ]
import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.FileSystem; import org.apache.hadoop.fs.Path;
import org.apache.hadoop.conf.*; import org.apache.hadoop.fs.*;
[ "org.apache.hadoop" ]
org.apache.hadoop;
614,590
public QueueReceiver createQueueReceiver(Destination destination) throws JMSException { checkValidDestination(destination); Queue dest = validateQueue(destination); C consumer = (C) createConsumer(dest); return new QueueReceiverAdaptor(dest, consumer); }
QueueReceiver function(Destination destination) throws JMSException { checkValidDestination(destination); Queue dest = validateQueue(destination); C consumer = (C) createConsumer(dest); return new QueueReceiverAdaptor(dest, consumer); }
/** * Creates a QueueReceiver * * @param destination * * @return QueueReceiver - a wrapper around our MessageConsumer * * @throws JMSException */
Creates a QueueReceiver
createQueueReceiver
{ "repo_name": "sdkottegoda/andes", "path": "modules/andes-core/client/src/main/java/org/wso2/andes/client/AMQSession.java", "license": "apache-2.0", "size": 137777 }
[ "javax.jms.Destination", "javax.jms.JMSException", "javax.jms.Queue", "javax.jms.QueueReceiver" ]
import javax.jms.Destination; import javax.jms.JMSException; import javax.jms.Queue; import javax.jms.QueueReceiver;
import javax.jms.*;
[ "javax.jms" ]
javax.jms;
297,708
public Document modify(InputStream source) throws DocumentException { try { return installModifyReader().read(source); } catch (SAXModifyException ex) { Throwable cause = ex.getCause(); throw new DocumentException(cause.getMessage(), cause); } }...
Document function(InputStream source) throws DocumentException { try { return installModifyReader().read(source); } catch (SAXModifyException ex) { Throwable cause = ex.getCause(); throw new DocumentException(cause.getMessage(), cause); } }
/** * Reads a Document from the given {@link java.io.InputStream}and writes it * to the specified {@link XMLWriter}using SAX. Registered {@link * ElementModifier} objects are invoked on the fly. * * @param source * is the <code>java.io.InputStream</code> to read from. ...
Reads a Document from the given <code>java.io.InputStream</code>and writes it to the specified <code>XMLWriter</code>using SAX. Registered <code>ElementModifier</code> objects are invoked on the fly
modify
{ "repo_name": "teslaworksumn/lightshow-visualizer", "path": "lib/dom4j-1.6.1/src/java/org/dom4j/io/SAXModifier.java", "license": "mit", "size": 15807 }
[ "java.io.InputStream", "org.dom4j.Document", "org.dom4j.DocumentException" ]
import java.io.InputStream; import org.dom4j.Document; import org.dom4j.DocumentException;
import java.io.*; import org.dom4j.*;
[ "java.io", "org.dom4j" ]
java.io; org.dom4j;
1,545,791
public Value callMethod(Env env, Value qThis, StringValue methodName, int hash, Value a1, Value a2) { if (qThis.isNull()) qThis = this; AbstractFunction fun = _methodMap.get(methodName, hash); return fun.callMethod(env, this, qThis, a1, a2)...
Value function(Env env, Value qThis, StringValue methodName, int hash, Value a1, Value a2) { if (qThis.isNull()) qThis = this; AbstractFunction fun = _methodMap.get(methodName, hash); return fun.callMethod(env, this, qThis, a1, a2); }
/** * calls the function. */
calls the function
callMethod
{ "repo_name": "dlitz/resin", "path": "modules/quercus/src/com/caucho/quercus/env/QuercusClass.java", "license": "gpl-2.0", "size": 48404 }
[ "com.caucho.quercus.function.AbstractFunction" ]
import com.caucho.quercus.function.AbstractFunction;
import com.caucho.quercus.function.*;
[ "com.caucho.quercus" ]
com.caucho.quercus;
2,175,725
public static byte[] readFileAtOnce(final File file) throws IOException { final FileInputStream fIn = new FileInputStream(file); return readFileAtOnce(fIn); }
static byte[] function(final File file) throws IOException { final FileInputStream fIn = new FileInputStream(file); return readFileAtOnce(fIn); }
/** * Reads the contents of the file at once and returns the byte array. * * @param file a {@link java.io.File} object. * @throws java.io.IOException if any. * @return an array of byte. */
Reads the contents of the file at once and returns the byte array
readFileAtOnce
{ "repo_name": "anotheria/configureme", "path": "src/main/java/org/configureme/util/IOUtils.java", "license": "mit", "size": 5724 }
[ "java.io.File", "java.io.FileInputStream", "java.io.IOException" ]
import java.io.File; import java.io.FileInputStream; import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
2,866,797
ChatColor getColor();
ChatColor getColor();
/** * Gets the team color. - {@link ChatColor#RESET} by default. * * @return the team color */
Gets the team color. - <code>ChatColor#RESET</code> by default
getColor
{ "repo_name": "lucko/helper", "path": "helper/src/main/java/me/lucko/helper/scoreboard/ScoreboardTeam.java", "license": "mit", "size": 8010 }
[ "org.bukkit.ChatColor" ]
import org.bukkit.ChatColor;
import org.bukkit.*;
[ "org.bukkit" ]
org.bukkit;
2,014,259
public void compile(final CCTask task, final File outputDir, final String[] sourceFiles, final String[] args, final String[] endArgs, final boolean relentless, final CommandLineCompilerC...
void function(final CCTask task, final File outputDir, final String[] sourceFiles, final String[] args, final String[] endArgs, final boolean relentless, final CommandLineCompilerConfiguration config, final ProgressMonitor monitor) { BuildException exc = null; String[] thisSource = new String[1]; String[] tlbCommand = ...
/** * Compiles an .idl file into the corresponding .h and .xpt files. * @param task current cc task * @param outputDir output directory * @param sourceFiles source files * @param args command line arguments that appear before input files * @param endArgs command line arguments that appear after input ...
Compiles an .idl file into the corresponding .h and .xpt files
compile
{ "repo_name": "1spatial/cpptasks-parallel", "path": "src/main/java/net/sf/antcontrib/cpptasks/mozilla/XpidlCompiler.java", "license": "apache-2.0", "size": 11782 }
[ "java.io.File", "net.sf.antcontrib.cpptasks.CCTask", "net.sf.antcontrib.cpptasks.compiler.CommandLineCompilerConfiguration", "net.sf.antcontrib.cpptasks.compiler.ProgressMonitor", "org.apache.tools.ant.BuildException" ]
import java.io.File; import net.sf.antcontrib.cpptasks.CCTask; import net.sf.antcontrib.cpptasks.compiler.CommandLineCompilerConfiguration; import net.sf.antcontrib.cpptasks.compiler.ProgressMonitor; import org.apache.tools.ant.BuildException;
import java.io.*; import net.sf.antcontrib.cpptasks.*; import net.sf.antcontrib.cpptasks.compiler.*; import org.apache.tools.ant.*;
[ "java.io", "net.sf.antcontrib", "org.apache.tools" ]
java.io; net.sf.antcontrib; org.apache.tools;
2,107,128
public static long getTimeUnit(final String valueString, long defaultValue, TimeUnit wantUnit) { Matcher m = Pattern.compile("^(0|[1-9][0-9]*)\\s*(.*)$").matcher(valueString); if (!m.matches()) { return defaultValue; } String digits = m.group(1); String unitName = m.group(2).trim(); ...
static long function(final String valueString, long defaultValue, TimeUnit wantUnit) { Matcher m = Pattern.compile(STR).matcher(valueString); if (!m.matches()) { return defaultValue; } String digits = m.group(1); String unitName = m.group(2).trim(); TimeUnit inputUnit; int inputMul; if (STRmsSTRmillisecondsSTRsSTRsecST...
/** * Parse a numerical time unit, such as "1 minute", from a string. * * @param valueString the string to parse. * @param defaultValue default value to return if no value was set in the * configuration file. * @param wantUnit the units of {@code defaultValue} and the return value, as * ...
Parse a numerical time unit, such as "1 minute", from a string
getTimeUnit
{ "repo_name": "renchaorevee/gerrit", "path": "gerrit-server/src/main/java/com/google/gerrit/server/config/ConfigUtil.java", "license": "apache-2.0", "size": 14288 }
[ "java.util.concurrent.TimeUnit", "java.util.regex.Matcher", "java.util.regex.Pattern" ]
import java.util.concurrent.TimeUnit; import java.util.regex.Matcher; import java.util.regex.Pattern;
import java.util.concurrent.*; import java.util.regex.*;
[ "java.util" ]
java.util;
1,395,310
public void setInputStream(java.io.InputStream readFrom) { if (little_endian) b = new LittleEndianInputStream(readFrom); else b = new BigEndianInputStream(readFrom); actual_stream = readFrom; }
void function(java.io.InputStream readFrom) { if (little_endian) b = new LittleEndianInputStream(readFrom); else b = new BigEndianInputStream(readFrom); actual_stream = readFrom; }
/** * Set the input stream that receives the CORBA input. * * @param readFrom the stream. */
Set the input stream that receives the CORBA input
setInputStream
{ "repo_name": "SanDisk-Open-Source/SSD_Dashboard", "path": "uefi/gcc/gcc-4.6.3/libjava/classpath/gnu/CORBA/CDR/AbstractCdrInput.java", "license": "gpl-2.0", "size": 45659 }
[ "org.omg.CORBA" ]
import org.omg.CORBA;
import org.omg.*;
[ "org.omg" ]
org.omg;
899,889
static HttpRequest of(RequestHeaders headers, HttpData... contents) { requireNonNull(headers, "headers"); requireNonNull(contents, "contents"); switch (contents.length) { case 0: return new EmptyFixedHttpRequest(headers); case 1: return...
static HttpRequest of(RequestHeaders headers, HttpData... contents) { requireNonNull(headers, STR); requireNonNull(contents, STR); switch (contents.length) { case 0: return new EmptyFixedHttpRequest(headers); case 1: return new OneElementFixedHttpRequest(headers, contents[0]); case 2: return new TwoElementFixedHttpRequ...
/** * Creates a new {@link HttpRequest} that publishes the given {@link HttpObject}s and closes the stream. */
Creates a new <code>HttpRequest</code> that publishes the given <code>HttpObject</code>s and closes the stream
of
{ "repo_name": "anuraaga/armeria", "path": "core/src/main/java/com/linecorp/armeria/common/HttpRequest.java", "license": "apache-2.0", "size": 20310 }
[ "com.linecorp.armeria.common.FixedHttpRequest", "java.util.Objects" ]
import com.linecorp.armeria.common.FixedHttpRequest; import java.util.Objects;
import com.linecorp.armeria.common.*; import java.util.*;
[ "com.linecorp.armeria", "java.util" ]
com.linecorp.armeria; java.util;
1,412,520
@Test @Issue("JENKINS-14113") public void testUnprotectedRootAction() throws Exception { j.jenkins.setSecurityRealm(j.createDummySecurityRealm()); j.jenkins.setAuthorizationStrategy(new FullControlOnceLoggedInAuthorizationStrategy()); WebClient wc = j.createWebClient(); wc.goTo("...
@Test @Issue(STR) void function() throws Exception { j.jenkins.setSecurityRealm(j.createDummySecurityRealm()); j.jenkins.setAuthorizationStrategy(new FullControlOnceLoggedInAuthorizationStrategy()); WebClient wc = j.createWebClient(); wc.goTo(STR); wc.goTo(STR); wc.goTo(STR); wc.assertFails(STR, HttpURLConnection.HTTP_...
/** * Makes sure access to "/foobar" for UnprotectedRootAction gets through. */
Makes sure access to "/foobar" for UnprotectedRootAction gets through
testUnprotectedRootAction
{ "repo_name": "alvarolobato/jenkins", "path": "test/src/test/java/jenkins/model/JenkinsTest.java", "license": "mit", "size": 26019 }
[ "hudson.model.RootAction", "hudson.security.FullControlOnceLoggedInAuthorizationStrategy", "java.net.HttpURLConnection", "org.junit.Assert", "org.junit.Test", "org.jvnet.hudson.test.Issue", "org.jvnet.hudson.test.JenkinsRule" ]
import hudson.model.RootAction; import hudson.security.FullControlOnceLoggedInAuthorizationStrategy; import java.net.HttpURLConnection; import org.junit.Assert; import org.junit.Test; import org.jvnet.hudson.test.Issue; import org.jvnet.hudson.test.JenkinsRule;
import hudson.model.*; import hudson.security.*; import java.net.*; import org.junit.*; import org.jvnet.hudson.test.*;
[ "hudson.model", "hudson.security", "java.net", "org.junit", "org.jvnet.hudson" ]
hudson.model; hudson.security; java.net; org.junit; org.jvnet.hudson;
463,354
final File file = ReaderUtils.getFileFromInput(input); if (file == null) { return DecodeQualification.UNABLE; } return checkProductQualification(file); }
final File file = ReaderUtils.getFileFromInput(input); if (file == null) { return DecodeQualification.UNABLE; } return checkProductQualification(file); }
/** * Checks whether the given object is an acceptable input for this product reader and if so, the method checks if it * is capable of decoding the input's content. * * @param input any input object * @return true if this product reader can decode the given input, otherwise false. */
Checks whether the given object is an acceptable input for this product reader and if so, the method checks if it is capable of decoding the input's content
getDecodeQualification
{ "repo_name": "kristotammeoja/ks", "path": "s1tbx-io/src/main/java/org/esa/nest/dataio/netcdf/NetCDFReaderPlugIn.java", "license": "gpl-3.0", "size": 6022 }
[ "java.io.File", "org.esa.beam.framework.dataio.DecodeQualification", "org.esa.snap.gpf.ReaderUtils" ]
import java.io.File; import org.esa.beam.framework.dataio.DecodeQualification; import org.esa.snap.gpf.ReaderUtils;
import java.io.*; import org.esa.beam.framework.dataio.*; import org.esa.snap.gpf.*;
[ "java.io", "org.esa.beam", "org.esa.snap" ]
java.io; org.esa.beam; org.esa.snap;
329,126
void removeAttribute(PerunSession sess, String key, AttributeDefinition attribute) throws WrongAttributeAssignmentException, PrivilegeException, AttributeNotExistsException, WrongAttributeValueException, WrongReferenceAttributeValueException;
void removeAttribute(PerunSession sess, String key, AttributeDefinition attribute) throws WrongAttributeAssignmentException, PrivilegeException, AttributeNotExistsException, WrongAttributeValueException, WrongReferenceAttributeValueException;
/** * Unset particular entityless attribute with subject equals key. * <p> * PRIVILEGE: Remove attribute only when principal has access to write on it. * * @param sess perun session * @param key subject of entityless attribute * @param attribute attribute to remove * @throws InternalErrorExce...
Unset particular entityless attribute with subject equals key.
removeAttribute
{ "repo_name": "zoraseb/perun", "path": "perun-core/src/main/java/cz/metacentrum/perun/core/api/AttributesManager.java", "license": "bsd-2-clause", "size": 265364 }
[ "cz.metacentrum.perun.core.api.exceptions.AttributeNotExistsException", "cz.metacentrum.perun.core.api.exceptions.PrivilegeException", "cz.metacentrum.perun.core.api.exceptions.WrongAttributeAssignmentException", "cz.metacentrum.perun.core.api.exceptions.WrongAttributeValueException", "cz.metacentrum.perun....
import cz.metacentrum.perun.core.api.exceptions.AttributeNotExistsException; import cz.metacentrum.perun.core.api.exceptions.PrivilegeException; import cz.metacentrum.perun.core.api.exceptions.WrongAttributeAssignmentException; import cz.metacentrum.perun.core.api.exceptions.WrongAttributeValueException; import cz.meta...
import cz.metacentrum.perun.core.api.exceptions.*;
[ "cz.metacentrum.perun" ]
cz.metacentrum.perun;
1,122,921
@Test public void whenClientTimeoutDetectedThenTestIsInterrupted() throws InterruptedException, IOException { // Sub process interruption not supported on Windows. assumeTrue(Platform.detect() != Platform.WINDOWS); final long timeoutMillis = 100; final long intervalMillis = timeoutMillis * 2...
void function() throws InterruptedException, IOException { assumeTrue(Platform.detect() != Platform.WINDOWS); final long timeoutMillis = 100; final long intervalMillis = timeoutMillis * 2; final ProjectWorkspace workspace = TestDataHelper.createProjectWorkspaceForScenario( this, STR, tmp); workspace.setUp(); try (TestC...
/** * This verifies that a client disconnection will be detected by a Nailgun * NGInputStream reading from an empty heartbeat stream and that the generated * InterruptedException will interrupt command execution causing it to fail. */
This verifies that a client disconnection will be detected by a Nailgun NGInputStream reading from an empty heartbeat stream and that the generated InterruptedException will interrupt command execution causing it to fail
whenClientTimeoutDetectedThenTestIsInterrupted
{ "repo_name": "mread/buck", "path": "test/com/facebook/buck/cli/DaemonIntegrationTest.java", "license": "apache-2.0", "size": 20194 }
[ "com.facebook.buck.testutil.integration.ProjectWorkspace", "com.facebook.buck.testutil.integration.TestContext", "com.facebook.buck.testutil.integration.TestDataHelper", "com.facebook.buck.util.environment.Platform", "com.google.common.collect.ImmutableMap", "java.io.IOException", "org.junit.Assume" ]
import com.facebook.buck.testutil.integration.ProjectWorkspace; import com.facebook.buck.testutil.integration.TestContext; import com.facebook.buck.testutil.integration.TestDataHelper; import com.facebook.buck.util.environment.Platform; import com.google.common.collect.ImmutableMap; import java.io.IOException; import o...
import com.facebook.buck.testutil.integration.*; import com.facebook.buck.util.environment.*; import com.google.common.collect.*; import java.io.*; import org.junit.*;
[ "com.facebook.buck", "com.google.common", "java.io", "org.junit" ]
com.facebook.buck; com.google.common; java.io; org.junit;
2,446,955
@Override protected int proppatchInternal(int action, Element prop) throws SQLException, AuthorizeException, IOException, DAVStatusException { if (elementsEqualIsh(prop, displaynameProperty) || elementsEqualIsh(prop, resourcetypeProperty) || el...
int function(int action, Element prop) throws SQLException, AuthorizeException, IOException, DAVStatusException { if (elementsEqualIsh(prop, displaynameProperty) elementsEqualIsh(prop, resourcetypeProperty) elementsEqualIsh(prop, typeProperty) elementsEqualIsh(prop, collectionProperty) elementsEqualIsh(prop, submitterP...
/** * Since this is in a superclass, subclass must call it first and return if * it answers SC_OK. Otherwise, subclass gets a chance to set a property. * * @param action the action * @param prop the prop * * @return HTTP status - SC_OK means it set something, SC_NOT_FOUND if no ...
Since this is in a superclass, subclass must call it first and return if it answers SC_OK. Otherwise, subclass gets a chance to set a property
proppatchInternal
{ "repo_name": "mdiggory/dryad-repo", "path": "dspace-lni/dspace-lni-core/src/main/java/org/dspace/app/dav/DAVInProgressSubmission.java", "license": "bsd-3-clause", "size": 11464 }
[ "java.io.IOException", "java.sql.SQLException", "javax.servlet.http.HttpServletResponse", "org.dspace.authorize.AuthorizeException", "org.jdom.Element" ]
import java.io.IOException; import java.sql.SQLException; import javax.servlet.http.HttpServletResponse; import org.dspace.authorize.AuthorizeException; import org.jdom.Element;
import java.io.*; import java.sql.*; import javax.servlet.http.*; import org.dspace.authorize.*; import org.jdom.*;
[ "java.io", "java.sql", "javax.servlet", "org.dspace.authorize", "org.jdom" ]
java.io; java.sql; javax.servlet; org.dspace.authorize; org.jdom;
66,402
public void fillEncryptionData(ExtractorInput input) throws IOException { input.readFully(sampleEncryptionData.getData(), 0, sampleEncryptionData.limit()); sampleEncryptionData.setPosition(0); sampleEncryptionDataNeedsFill = false; }
void function(ExtractorInput input) throws IOException { input.readFully(sampleEncryptionData.getData(), 0, sampleEncryptionData.limit()); sampleEncryptionData.setPosition(0); sampleEncryptionDataNeedsFill = false; }
/** * Fills {@link #sampleEncryptionData} from the provided input. * * @param input An {@link ExtractorInput} from which to read the encryption data. */
Fills <code>#sampleEncryptionData</code> from the provided input
fillEncryptionData
{ "repo_name": "androidx/media", "path": "libraries/extractor/src/main/java/androidx/media3/extractor/mp4/TrackFragment.java", "license": "apache-2.0", "size": 7108 }
[ "androidx.media3.extractor.ExtractorInput", "java.io.IOException" ]
import androidx.media3.extractor.ExtractorInput; import java.io.IOException;
import androidx.media3.extractor.*; import java.io.*;
[ "androidx.media3", "java.io" ]
androidx.media3; java.io;
469,562
protected final boolean sendFirstRunCompletePendingIntent() { PendingIntent pendingIntent = IntentUtils.safeGetParcelableExtra(getIntent(), EXTRA_FRE_COMPLETE_LAUNCH_INTENT); boolean pendingIntentIsCCT = IntentUtils.safeGetBooleanExtra( getIntent(), EXTRA_CHROME_LAUNC...
final boolean function() { PendingIntent pendingIntent = IntentUtils.safeGetParcelableExtra(getIntent(), EXTRA_FRE_COMPLETE_LAUNCH_INTENT); boolean pendingIntentIsCCT = IntentUtils.safeGetBooleanExtra( getIntent(), EXTRA_CHROME_LAUNCH_INTENT_IS_CCT, false); if (pendingIntent == null) return false;
/** * Sends PendingIntent included with the EXTRA_FRE_COMPLETE_LAUNCH_INTENT extra. * @return Whether a pending intent was sent. */
Sends PendingIntent included with the EXTRA_FRE_COMPLETE_LAUNCH_INTENT extra
sendFirstRunCompletePendingIntent
{ "repo_name": "chromium/chromium", "path": "chrome/android/java/src/org/chromium/chrome/browser/firstrun/FirstRunActivityBase.java", "license": "bsd-3-clause", "size": 8279 }
[ "android.app.PendingIntent", "org.chromium.base.IntentUtils" ]
import android.app.PendingIntent; import org.chromium.base.IntentUtils;
import android.app.*; import org.chromium.base.*;
[ "android.app", "org.chromium.base" ]
android.app; org.chromium.base;
82,430
Transformer resolveTransformer(String model);
Transformer resolveTransformer(String model);
/** * Resolve a transformer given a scheme * * @param model data model name. * @return the resolved transformer, or <tt>null</tt> if not found */
Resolve a transformer given a scheme
resolveTransformer
{ "repo_name": "curso007/camel", "path": "camel-core/src/main/java/org/apache/camel/CamelContext.java", "license": "apache-2.0", "size": 79052 }
[ "org.apache.camel.spi.Transformer" ]
import org.apache.camel.spi.Transformer;
import org.apache.camel.spi.*;
[ "org.apache.camel" ]
org.apache.camel;
686,558
void persistState(long snapshotTimestampMs, String snapshotId, String snapshotDescription) throws IOException;
void persistState(long snapshotTimestampMs, String snapshotId, String snapshotDescription) throws IOException;
/** * Ask the process to persist state, even if it is unchanged. * @param snapshotTimestampMs The snapshot timestamp in milliseconds * @param snapshotId The id of the snapshot to save * @param snapshotDescription the snapshot description * @throws IOException if writing the request fails *...
Ask the process to persist state, even if it is unchanged
persistState
{ "repo_name": "robin13/elasticsearch", "path": "x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/process/NativeProcess.java", "license": "apache-2.0", "size": 3389 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
710,479
public void setValueRange(double vmin, double vmax) { if ((float)vmin!=getMinValue() || (float)vmax!=getMaxValue()) { _fbmic.setClips((float)vmin,(float)vmax); super.setValueRange(vmin,vmax); } } /////////////////////////////////////////////////////////////////////////// // private //pri...
void function(double vmin, double vmax) { if ((float)vmin!=getMinValue() (float)vmax!=getMaxValue()) { _fbmic.setClips((float)vmin,(float)vmax); super.setValueRange(vmin,vmax); } } private FloatByteMap _fbmic; private FloatByteMap _fbmi0; private FloatByteMap _fbmi1; private FloatByteMap _fbmi2; private FloatByteMap _f...
/** * Sets the min-max range of values mapped to colors. Values outside this * range are clipped. The default range is the min and max clips in the * mapping from floats to bytes. * @param vmin the minimum value. * @param vmax the maximum value. */
Sets the min-max range of values mapped to colors. Values outside this range are clipped. The default range is the min and max clips in the mapping from floats to bytes
setValueRange
{ "repo_name": "askogvold/jtk", "path": "src/main/java/edu/mines/jtk/awt/FloatColorMap.java", "license": "apache-2.0", "size": 10975 }
[ "edu.mines.jtk.util.FloatByteMap" ]
import edu.mines.jtk.util.FloatByteMap;
import edu.mines.jtk.util.*;
[ "edu.mines.jtk" ]
edu.mines.jtk;
2,007,256
private Map.Entry<String, String> getHeaderFieldEntry(int pos) { try { getResponse(); } catch (IOException e) { return null; } List<Map.Entry<String, String>> headers = getAllHeadersAsList(); if (pos >= headers.size()) { return null; ...
Map.Entry<String, String> function(int pos) { try { getResponse(); } catch (IOException e) { return null; } List<Map.Entry<String, String>> headers = getAllHeadersAsList(); if (pos >= headers.size()) { return null; } return headers.get(pos); }
/** * Helper method to return the response header field at position pos. */
Helper method to return the response header field at position pos
getHeaderFieldEntry
{ "repo_name": "axinging/chromium-crosswalk", "path": "components/cronet/android/java/src/org/chromium/net/urlconnection/CronetHttpURLConnection.java", "license": "bsd-3-clause", "size": 21942 }
[ "java.io.IOException", "java.util.List", "java.util.Map" ]
import java.io.IOException; import java.util.List; import java.util.Map;
import java.io.*; import java.util.*;
[ "java.io", "java.util" ]
java.io; java.util;
1,730,845
List<Achievement> listRecentHonour(final int userId, final int maxResults);
List<Achievement> listRecentHonour(final int userId, final int maxResults);
/** * Listing all the User's Achievements from the database. * * @return a list of all the User's Achievements. */
Listing all the User's Achievements from the database
listRecentHonour
{ "repo_name": "EaW1805/data", "path": "src/main/java/com/eaw1805/data/managers/beans/AchievementManagerBean.java", "license": "mit", "size": 3410 }
[ "com.eaw1805.data.model.Achievement", "java.util.List" ]
import com.eaw1805.data.model.Achievement; import java.util.List;
import com.eaw1805.data.model.*; import java.util.*;
[ "com.eaw1805.data", "java.util" ]
com.eaw1805.data; java.util;
2,270,111
public int read() throws IOException { if( frameSize != 1 ) { throw new IOException("cannot read a single byte if frame size > 1"); } byte[] data = new byte[1]; int temp = read(data); if (temp <= 0) { // we have a weird situation if read(byte[]) retur...
int function() throws IOException { if( frameSize != 1 ) { throw new IOException(STR); } byte[] data = new byte[1]; int temp = read(data); if (temp <= 0) { return -1; } return data[0] & 0xFF; }
/** * Reads the next byte of data from the audio input stream. The audio input * stream's frame size must be one byte, or an <code>IOException</code> * will be thrown. * * @return the next byte of data, or -1 if the end of the stream is reached * @throws IOException if an input or output ...
Reads the next byte of data from the audio input stream. The audio input stream's frame size must be one byte, or an <code>IOException</code> will be thrown
read
{ "repo_name": "g-i-o-/jflac-code-gradle-dep", "path": "src/compat/javax/sound/sampled/AudioInputStream.java", "license": "gpl-2.0", "size": 16685 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
1,996,508
private void initFirstLvlHeaders() { LinearLayout.LayoutParams firstLvlTextViewParams = new LinearLayout.LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT); firstLvlTextViewParams.setMargins(1, 1, 1, 1); firstLvlTextViewParams.weight = 1; TextView...
void function() { LinearLayout.LayoutParams firstLvlTextViewParams = new LinearLayout.LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT); firstLvlTextViewParams.setMargins(1, 1, 1, 1); firstLvlTextViewParams.weight = 1; TextView firstLvlTextView = new TextView(this.getContext()); firstLvlTextView.setTex...
/** * top most header column */
top most header column
initFirstLvlHeaders
{ "repo_name": "nextgis/mobile.forestviolate.inspector", "path": "app/src/main/java/com/justsimpleinfo/Table/HeaderRow.java", "license": "gpl-3.0", "size": 7420 }
[ "android.view.Gravity", "android.widget.LinearLayout", "android.widget.TextView" ]
import android.view.Gravity; import android.widget.LinearLayout; import android.widget.TextView;
import android.view.*; import android.widget.*;
[ "android.view", "android.widget" ]
android.view; android.widget;
606,127
public void doExecute() throws Exception { try { HttpClient client = new HttpClient(); // MCHANGES-89 Allow circular redirects HttpClientParams clientParams = client.getParams(); clientParams.setBooleanParameter( HttpClientParams.ALLOW_CIR...
void function() throws Exception { try { HttpClient client = new HttpClient(); HttpClientParams clientParams = client.getParams(); clientParams.setBooleanParameter( HttpClientParams.ALLOW_CIRCULAR_REDIRECTS, true ); clientParams.setCookiePolicy( CookiePolicy.BROWSER_COMPATIBILITY ); HttpState state = new HttpState(); H...
/** * Execute the query on the JIRA server. * * @throws Exception on error */
Execute the query on the JIRA server
doExecute
{ "repo_name": "kikinteractive/maven-plugins", "path": "maven-changes-plugin/src/main/java/org/apache/maven/plugin/jira/ClassicJiraDownloader.java", "license": "apache-2.0", "size": 15847 }
[ "org.apache.commons.httpclient.HostConfiguration", "org.apache.commons.httpclient.HttpClient", "org.apache.commons.httpclient.HttpState", "org.apache.commons.httpclient.cookie.CookiePolicy", "org.apache.commons.httpclient.params.HttpClientParams" ]
import org.apache.commons.httpclient.HostConfiguration; import org.apache.commons.httpclient.HttpClient; import org.apache.commons.httpclient.HttpState; import org.apache.commons.httpclient.cookie.CookiePolicy; import org.apache.commons.httpclient.params.HttpClientParams;
import org.apache.commons.httpclient.*; import org.apache.commons.httpclient.cookie.*; import org.apache.commons.httpclient.params.*;
[ "org.apache.commons" ]
org.apache.commons;
363,457
double activityAvg, quizAvg, projAvg, exam1Score, exam2Score, finalExamScore; String name; Grade comp1210Grade; Scanner stdInReader = new Scanner(System.in); // get user input for name System.out.print("Enter your name: "); name = stdInReader.nextLine(); ...
double activityAvg, quizAvg, projAvg, exam1Score, exam2Score, finalExamScore; String name; Grade comp1210Grade; Scanner stdInReader = new Scanner(System.in); System.out.print(STR); name = stdInReader.nextLine(); System.out.print(STR); activityAvg = Double.parseDouble(stdInReader.nextLine()); System.out.print(STR); quiz...
/** * Takes user name, activity average, quiz average, project * average, and exam scores via standard input and * calculates the final grade for COMP 1210. * * @param args Command line arguments (not used). */
Takes user name, activity average, quiz average, project average, and exam scores via standard input and calculates the final grade for COMP 1210
main
{ "repo_name": "TylerDrinkard/Comp-1210", "path": "Labs/Activity 4B/GradeGenerator.java", "license": "mit", "size": 2717 }
[ "java.util.Scanner" ]
import java.util.Scanner;
import java.util.*;
[ "java.util" ]
java.util;
2,659,605
public static FolderStructureFragment newInstance(@Nullable JavaProject projectFile) { FolderStructureFragment fragment = new FolderStructureFragment(); fragment.setProject(projectFile); return fragment; }
static FolderStructureFragment function(@Nullable JavaProject projectFile) { FolderStructureFragment fragment = new FolderStructureFragment(); fragment.setProject(projectFile); return fragment; }
/** * Create folder view, project can be null, we will init after */
Create folder view, project can be null, we will init after
newInstance
{ "repo_name": "tranleduy2000/javaide", "path": "app/src/main/java/com/duy/ide/javaide/projectview/view/fragments/FolderStructureFragment.java", "license": "gpl-3.0", "size": 19113 }
[ "android.support.annotation.Nullable", "com.duy.android.compiler.project.JavaProject" ]
import android.support.annotation.Nullable; import com.duy.android.compiler.project.JavaProject;
import android.support.annotation.*; import com.duy.android.compiler.project.*;
[ "android.support", "com.duy.android" ]
android.support; com.duy.android;
1,077,050
public static void applyOrthogonalTranslation(Collection<MutableHexPoint> points, int dw, int dh) { int[][] transformation = translationTransformationForPoints(points, dw, dh); for (MutableHexPoint point : points) point.transform(transformation); }
static void function(Collection<MutableHexPoint> points, int dw, int dh) { int[][] transformation = translationTransformationForPoints(points, dw, dh); for (MutableHexPoint point : points) point.transform(transformation); }
/** * Move the given points on the orthogonal axes. * * @param points The points. * @param dw Distance on the orthogonal X axis. * @param dh Distance on the orthogonal Y axis. */
Move the given points on the orthogonal axes
applyOrthogonalTranslation
{ "repo_name": "tsnorri/gonia", "path": "project/src/main/java/fi/iki/tsnorri/gonia/logic/HexPoint.java", "license": "mit", "size": 10207 }
[ "java.util.Collection" ]
import java.util.Collection;
import java.util.*;
[ "java.util" ]
java.util;
374,476
public static void validateFields(Map<String, Object> conf, List<Class<?>> classes) { for (Class<?> clazz : classes) { for (Field field : clazz.getDeclaredFields()) { if (!isFieldAllowed(field)) { continue; } Object keyObj = nul...
static void function(Map<String, Object> conf, List<Class<?>> classes) { for (Class<?> clazz : classes) { for (Field field : clazz.getDeclaredFields()) { if (!isFieldAllowed(field)) { continue; } Object keyObj = null; try { keyObj = field.get(null); } catch (IllegalAccessException e) { throw new RuntimeException(e); } ...
/** * Validate all confs in map. * * @param conf map of configs * @param classes config class */
Validate all confs in map
validateFields
{ "repo_name": "kishorvpatil/incubator-storm", "path": "storm-client/src/jvm/org/apache/storm/validation/ConfigValidation.java", "license": "apache-2.0", "size": 43741 }
[ "java.lang.reflect.Field", "java.util.List", "java.util.Map" ]
import java.lang.reflect.Field; import java.util.List; import java.util.Map;
import java.lang.reflect.*; import java.util.*;
[ "java.lang", "java.util" ]
java.lang; java.util;
862,729
@SuppressWarnings("unchecked") public static <T> Iterator<T> iterator(final Iterator<?> delegate) { return (Iterator<T>)delegate; }
@SuppressWarnings(STR) static <T> Iterator<T> function(final Iterator<?> delegate) { return (Iterator<T>)delegate; }
/** * Silences generics warning when need to cast iterator types * * @param <T> * @param delegate * @return <code>delegate</code> iterator cast to proper generics type */
Silences generics warning when need to cast iterator types
iterator
{ "repo_name": "AlienQueen/wicket", "path": "wicket-util/src/main/java/org/apache/wicket/util/lang/Generics.java", "license": "apache-2.0", "size": 2915 }
[ "java.util.Iterator" ]
import java.util.Iterator;
import java.util.*;
[ "java.util" ]
java.util;
1,889,343
@Test public void testOneSubscriberToUpdate() throws Exception { expect(schemaFactory.open()).andReturn(schema); try (Repository sourceRepository = createWorkRepository(); Repository targetRepository = createWorkRepository()) { // TODO(dborowitz): Use try/finally when this doesn't double-clos...
void function() throws Exception { expect(schemaFactory.open()).andReturn(schema); try (Repository sourceRepository = createWorkRepository(); Repository targetRepository = createWorkRepository()) { @SuppressWarnings(STR) final Git sourceGit = new Git(sourceRepository); @SuppressWarnings(STR) final Git targetGit = new G...
/** * It tests SubmoduleOp.update in a scenario considering no .gitmodules file * in a merged commit to a destination project/branch that is a source one to * one called "target-project". * <p> * It expects to update the git link called "source-project" to be in target * repository. * </p> * ...
It tests SubmoduleOp.update in a scenario considering no .gitmodules file in a merged commit to a destination project/branch that is a source one to one called "target-project". It expects to update the git link called "source-project" to be in target repository.
testOneSubscriberToUpdate
{ "repo_name": "gcoders/gerrit", "path": "gerrit-server/src/test/java/com/google/gerrit/server/git/SubmoduleOpTest.java", "license": "apache-2.0", "size": 37202 }
[ "com.google.gerrit.common.TimeUtil", "com.google.gerrit.reviewdb.client.Account", "com.google.gerrit.reviewdb.client.Branch", "com.google.gerrit.reviewdb.client.Change", "com.google.gerrit.reviewdb.client.Project", "com.google.gerrit.reviewdb.client.SubmoduleSubscription", "com.google.gwtorm.server.List...
import com.google.gerrit.common.TimeUtil; import com.google.gerrit.reviewdb.client.Account; import com.google.gerrit.reviewdb.client.Branch; import com.google.gerrit.reviewdb.client.Change; import com.google.gerrit.reviewdb.client.Project; import com.google.gerrit.reviewdb.client.SubmoduleSubscription; import com.googl...
import com.google.gerrit.common.*; import com.google.gerrit.reviewdb.client.*; import com.google.gwtorm.server.*; import java.util.*; import org.easymock.*; import org.eclipse.jgit.api.*; import org.eclipse.jgit.lib.*; import org.eclipse.jgit.revwalk.*; import org.junit.*;
[ "com.google.gerrit", "com.google.gwtorm", "java.util", "org.easymock", "org.eclipse.jgit", "org.junit" ]
com.google.gerrit; com.google.gwtorm; java.util; org.easymock; org.eclipse.jgit; org.junit;
2,022,744
static void translucentStatusBar(Activity activity, boolean hideStatusBarBackground) { Window window = activity.getWindow(); window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS); if (hideStatusBarBackground) { window.clearFlags(WindowManager.LayoutParams...
static void translucentStatusBar(Activity activity, boolean hideStatusBarBackground) { Window window = activity.getWindow(); window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS); if (hideStatusBarBackground) { window.clearFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS); window.setStat...
/** * translucentStatusBar(full-screen) * <p> * 1. set Flags to full-screen * 2. set FitsSystemWindows to false * * @param hideStatusBarBackground hide statusBar's shadow */
translucentStatusBar(full-screen) 1. set Flags to full-screen 2. set FitsSystemWindows to false
translucentStatusBar
{ "repo_name": "szhupeng/FxBase", "path": "arch/src/main/java/space/zhupeng/arch/manager/StatusBarCompatLollipop.java", "license": "mit", "size": 8394 }
[ "android.app.Activity", "android.graphics.Color", "android.support.v4.view.ViewCompat", "android.view.View", "android.view.ViewGroup", "android.view.Window", "android.view.WindowManager" ]
import android.app.Activity; import android.graphics.Color; import android.support.v4.view.ViewCompat; import android.view.View; import android.view.ViewGroup; import android.view.Window; import android.view.WindowManager;
import android.app.*; import android.graphics.*; import android.support.v4.view.*; import android.view.*;
[ "android.app", "android.graphics", "android.support", "android.view" ]
android.app; android.graphics; android.support; android.view;
2,200,470
public ServiceResponse<List<Period>> getDurationValid() throws ErrorException, IOException { Call<ResponseBody> call = service.getDurationValid(); return getDurationValidDelegate(call.execute()); }
ServiceResponse<List<Period>> function() throws ErrorException, IOException { Call<ResponseBody> call = service.getDurationValid(); return getDurationValidDelegate(call.execute()); }
/** * Get duration array value ['P123DT22H14M12.011S', 'P5DT1H0M0S']. * * @throws ErrorException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @return the List&lt;Period&gt; object wrapped in {@link ServiceResponse} if successfu...
Get duration array value ['P123DT22H14M12.011S', 'P5DT1H0M0S']
getDurationValid
{ "repo_name": "stankovski/AutoRest", "path": "AutoRest/Generators/Java/Java.Tests/src/main/java/fixtures/bodyarray/ArrayOperationsImpl.java", "license": "mit", "size": 167174 }
[ "com.microsoft.rest.ServiceResponse", "java.io.IOException", "java.util.List", "org.joda.time.Period" ]
import com.microsoft.rest.ServiceResponse; import java.io.IOException; import java.util.List; import org.joda.time.Period;
import com.microsoft.rest.*; import java.io.*; import java.util.*; import org.joda.time.*;
[ "com.microsoft.rest", "java.io", "java.util", "org.joda.time" ]
com.microsoft.rest; java.io; java.util; org.joda.time;
2,041,978
public static void dispatchStartTemporaryDetach(@NonNull View view) { if (Build.VERSION.SDK_INT >= 24) { Api24Impl.dispatchStartTemporaryDetach(view); } else { if (!sTempDetachBound) { bindTempDetach(); } if (sDispatchStartTemporaryDeta...
static void function(@NonNull View view) { if (Build.VERSION.SDK_INT >= 24) { Api24Impl.dispatchStartTemporaryDetach(view); } else { if (!sTempDetachBound) { bindTempDetach(); } if (sDispatchStartTemporaryDetach != null) { try { sDispatchStartTemporaryDetach.invoke(view); } catch (Exception e) { Log.d(TAG, STR, e); } }...
/** * Notify a view that it is being temporarily detached. */
Notify a view that it is being temporarily detached
dispatchStartTemporaryDetach
{ "repo_name": "AndroidX/androidx", "path": "core/core/src/main/java/androidx/core/view/ViewCompat.java", "license": "apache-2.0", "size": 224652 }
[ "android.os.Build", "android.util.Log", "android.view.View", "androidx.annotation.NonNull" ]
import android.os.Build; import android.util.Log; import android.view.View; import androidx.annotation.NonNull;
import android.os.*; import android.util.*; import android.view.*; import androidx.annotation.*;
[ "android.os", "android.util", "android.view", "androidx.annotation" ]
android.os; android.util; android.view; androidx.annotation;
605,224
public void fadeInAllLayers() { mTransitionState = TRANSITION_STARTING; Arrays.fill(mIsLayerOn, true); invalidateSelf(); }
void function() { mTransitionState = TRANSITION_STARTING; Arrays.fill(mIsLayerOn, true); invalidateSelf(); }
/** * Starts fading in all layers. */
Starts fading in all layers
fadeInAllLayers
{ "repo_name": "s1rius/fresco", "path": "drawee/src/main/java/com/facebook/drawee/drawable/FadeDrawable.java", "license": "mit", "size": 9235 }
[ "java.util.Arrays" ]
import java.util.Arrays;
import java.util.*;
[ "java.util" ]
java.util;
1,755,869
public void revokeOAuthConsentByApplicationAndUser(String username, String applicationName) throws IdentityOAuth2Exception { if (username == null || applicationName == null) { log.error("Could not remove consent of user " + username + " for application " + applicationName); ...
void function(String username, String applicationName) throws IdentityOAuth2Exception { if (username == null applicationName == null) { log.error(STR + username + STR + applicationName); return; } Connection connection = null; PreparedStatement ps; try { connection = JDBCPersistenceManager.getInstance().getDBConnection...
/** * Revoke the OAuth Consent which is recorded in the IDN_OPENID_USER_RPS table against the user for a particular * Application * * @param username - Username of the Consent owner * @param applicationName - Name of the OAuth App * @throws org.wso2.carbon.identity.oauth2.IdentityOA...
Revoke the OAuth Consent which is recorded in the IDN_OPENID_USER_RPS table against the user for a particular Application
revokeOAuthConsentByApplicationAndUser
{ "repo_name": "JKAUSHALYA/carbon-identity", "path": "components/oauth/org.wso2.carbon.identity.oauth/src/main/java/org/wso2/carbon/identity/oauth2/dao/TokenMgtDAO.java", "license": "apache-2.0", "size": 75470 }
[ "java.sql.Connection", "java.sql.PreparedStatement", "java.sql.SQLException", "org.wso2.carbon.identity.base.IdentityException", "org.wso2.carbon.identity.core.persistence.JDBCPersistenceManager", "org.wso2.carbon.identity.core.util.IdentityDatabaseUtil", "org.wso2.carbon.identity.oauth2.IdentityOAuth2E...
import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.SQLException; import org.wso2.carbon.identity.base.IdentityException; import org.wso2.carbon.identity.core.persistence.JDBCPersistenceManager; import org.wso2.carbon.identity.core.util.IdentityDatabaseUtil; import org.wso2.carbon.identity.oa...
import java.sql.*; import org.wso2.carbon.identity.base.*; import org.wso2.carbon.identity.core.persistence.*; import org.wso2.carbon.identity.core.util.*; import org.wso2.carbon.identity.oauth2.*;
[ "java.sql", "org.wso2.carbon" ]
java.sql; org.wso2.carbon;
529,316
@Override protected void func_145780_a(int xCoord, int yCoord, int zCoord, Block stepBlock) { }
void function(int xCoord, int yCoord, int zCoord, Block stepBlock) { }
/** * Plays step sound at given x, y, z for the entity */
Plays step sound at given x, y, z for the entity
func_145780_a
{ "repo_name": "soultek101/projectzulu1.7.10", "path": "src/main/java/com/stek101/projectzulu/common/mobs/entity/EntityFrog.java", "license": "lgpl-2.1", "size": 3810 }
[ "net.minecraft.block.Block" ]
import net.minecraft.block.Block;
import net.minecraft.block.*;
[ "net.minecraft.block" ]
net.minecraft.block;
594,727
ImageDisplay duplicateSelectedCompositePlane(ImageDisplay display);
ImageDisplay duplicateSelectedCompositePlane(ImageDisplay display);
/** * Creates a multichannel copy of the currently selected 2d region of an * ImageDisplay. */
Creates a multichannel copy of the currently selected 2d region of an ImageDisplay
duplicateSelectedCompositePlane
{ "repo_name": "imagej/imagej-common", "path": "src/main/java/net/imagej/sampler/SamplerService.java", "license": "bsd-2-clause", "size": 2787 }
[ "net.imagej.display.ImageDisplay" ]
import net.imagej.display.ImageDisplay;
import net.imagej.display.*;
[ "net.imagej.display" ]
net.imagej.display;
2,067,352
@Test public void configRoundtrip() throws Exception { j.jenkins.getDescriptorByType(Maven.DescriptorImpl.class).setInstallations(); // reset FreeStyleProject p = j.createFreeStyleProject(); p.getBuildersList().add(new Maven("a", null, "b.pom", "c=d", "-e", true)); JenkinsRule.WebC...
@Test void function() throws Exception { j.jenkins.getDescriptorByType(Maven.DescriptorImpl.class).setInstallations(); FreeStyleProject p = j.createFreeStyleProject(); p.getBuildersList().add(new Maven("a", null, "b.pom", "c=d", "-e", true)); JenkinsRule.WebClient webClient = j.createWebClient(); HtmlPage page = webCli...
/** * Tests the round-tripping of the configuration. */
Tests the round-tripping of the configuration
configRoundtrip
{ "repo_name": "oleg-nenashev/jenkins", "path": "test/src/test/java/hudson/tasks/MavenTest.java", "license": "mit", "size": 17896 }
[ "com.gargoylesoftware.htmlunit.html.HtmlForm", "com.gargoylesoftware.htmlunit.html.HtmlPage", "hudson.model.FreeStyleProject", "hudson.tasks.Maven", "org.junit.Assert", "org.junit.Test", "org.jvnet.hudson.test.JenkinsRule" ]
import com.gargoylesoftware.htmlunit.html.HtmlForm; import com.gargoylesoftware.htmlunit.html.HtmlPage; import hudson.model.FreeStyleProject; import hudson.tasks.Maven; import org.junit.Assert; import org.junit.Test; import org.jvnet.hudson.test.JenkinsRule;
import com.gargoylesoftware.htmlunit.html.*; import hudson.model.*; import hudson.tasks.*; import org.junit.*; import org.jvnet.hudson.test.*;
[ "com.gargoylesoftware.htmlunit", "hudson.model", "hudson.tasks", "org.junit", "org.jvnet.hudson" ]
com.gargoylesoftware.htmlunit; hudson.model; hudson.tasks; org.junit; org.jvnet.hudson;
2,624,589
private void finishProcess(UUID reqId, @Nullable Throwable err) { if (err != null) log.error(OP_FAILED_MSG + " [reqId=" + reqId + "].", err); else if (log.isInfoEnabled()) log.info(OP_FINISHED_MSG + " [reqId=" + reqId + "]."); SnapshotRestoreContext opCtx0 = opCtx; ...
void function(UUID reqId, @Nullable Throwable err) { if (err != null) log.error(OP_FAILED_MSG + STR + reqId + "].", err); else if (log.isInfoEnabled()) log.info(OP_FINISHED_MSG + STR + reqId + "]."); SnapshotRestoreContext opCtx0 = opCtx; if (opCtx0 != null && reqId.equals(opCtx0.reqId)) { opCtx = null; opCtx0.endTime ...
/** * Finish local cache group restore process. * * @param reqId Request ID. * @param err Error, if any. */
Finish local cache group restore process
finishProcess
{ "repo_name": "NSAmelchev/ignite", "path": "modules/core/src/main/java/org/apache/ignite/internal/processors/cache/persistence/snapshot/SnapshotRestoreProcess.java", "license": "apache-2.0", "size": 61502 }
[ "org.apache.ignite.internal.processors.cache.persistence.snapshot.IgniteSnapshotManager", "org.apache.ignite.internal.util.typedef.internal.U", "org.jetbrains.annotations.Nullable" ]
import org.apache.ignite.internal.processors.cache.persistence.snapshot.IgniteSnapshotManager; import org.apache.ignite.internal.util.typedef.internal.U; import org.jetbrains.annotations.Nullable;
import org.apache.ignite.internal.processors.cache.persistence.snapshot.*; import org.apache.ignite.internal.util.typedef.internal.*; import org.jetbrains.annotations.*;
[ "org.apache.ignite", "org.jetbrains.annotations" ]
org.apache.ignite; org.jetbrains.annotations;
2,285,222
public Observable<ServiceResponse<Void>> stopWithServiceResponseAsync(String resourceGroupName, String accountName, String liveEventName) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); ...
Observable<ServiceResponse<Void>> function(String resourceGroupName, String accountName, String liveEventName) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException(STR); } if (resourceGroupName == null) { throw new IllegalArgumentException(STR); } if (accountName == null) { throw new Illegal...
/** * Stop Live Event. * Stops an existing Live Event. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param liveEventName The name of the Live Event. * @throws IllegalArgumentException...
Stop Live Event. Stops an existing Live Event
stopWithServiceResponseAsync
{ "repo_name": "hovsepm/azure-sdk-for-java", "path": "mediaservices/resource-manager/v2018_30_30_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2018_30_30_preview/implementation/LiveEventsInner.java", "license": "mit", "size": 111938 }
[ "com.google.common.reflect.TypeToken", "com.microsoft.azure.management.mediaservices.v2018_30_30_preview.LiveEventActionInput", "com.microsoft.rest.ServiceResponse" ]
import com.google.common.reflect.TypeToken; import com.microsoft.azure.management.mediaservices.v2018_30_30_preview.LiveEventActionInput; import com.microsoft.rest.ServiceResponse;
import com.google.common.reflect.*; import com.microsoft.azure.management.mediaservices.v2018_30_30_preview.*; import com.microsoft.rest.*;
[ "com.google.common", "com.microsoft.azure", "com.microsoft.rest" ]
com.google.common; com.microsoft.azure; com.microsoft.rest;
87,323
private void initNavigationView(int start) { navigationView = findViewById(R.id.nav_view); navigationView.setNavigationItemSelectedListener(this); navigationView.getMenu().getItem(start).setChecked(true); initNavBanner(); issueCountView = (TextView) navigatio...
void function(int start) { navigationView = findViewById(R.id.nav_view); navigationView.setNavigationItemSelectedListener(this); navigationView.getMenu().getItem(start).setChecked(true); initNavBanner(); issueCountView = (TextView) navigationView.getMenu().findItem(R.id.nav_issues).getActionView(); telegramCountView = ...
/** * Initialize the navigation drawer. * Set the nation fragment as the current view. * @param start Index of the view to start with */
Initialize the navigation drawer. Set the nation fragment as the current view
initNavigationView
{ "repo_name": "lloydtorres/stately", "path": "Stately/app/src/main/java/com/lloydtorres/stately/core/StatelyActivity.java", "license": "apache-2.0", "size": 27693 }
[ "android.widget.TextView", "androidx.fragment.app.Fragment" ]
import android.widget.TextView; import androidx.fragment.app.Fragment;
import android.widget.*; import androidx.fragment.app.*;
[ "android.widget", "androidx.fragment" ]
android.widget; androidx.fragment;
574,651
EAttribute getScopeDeclaration_Name();
EAttribute getScopeDeclaration_Name();
/** * Returns the meta object for the attribute '{@link br.ufc.great.catchml.catchML.ScopeDeclaration#getName <em>Name</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for the attribute '<em>Name</em>'. * @see br.ufc.great.catchml.catchML.ScopeDeclaration#getName()...
Returns the meta object for the attribute '<code>br.ufc.great.catchml.catchML.ScopeDeclaration#getName Name</code>'.
getScopeDeclaration_Name
{ "repo_name": "rafalimaz/CatchML", "path": "DSL/br.ufc.great.catchml/src-gen/br/ufc/great/catchml/catchML/CatchMLPackage.java", "license": "mit", "size": 84356 }
[ "org.eclipse.emf.ecore.EAttribute" ]
import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
1,528,662
public Hand sample(Random random) { double weightTotal = constant.size(); for (Double weight : weighted.keySet()) { weightTotal += weight; } if (weightTotal < 1.0) { throw new IllegalStateException("Too few hands for accurate sample"); } List<Hand> candidates = constant; double p = ...
Hand function(Random random) { double weightTotal = constant.size(); for (Double weight : weighted.keySet()) { weightTotal += weight; } if (weightTotal < 1.0) { throw new IllegalStateException(STR); } List<Hand> candidates = constant; double p = Math.random(), c = 0.0; for (double w : weighted.keySet()) { c += w; if (p...
/** * Obtains a {@link Hand} from this {@link Range}, excluding weighted hands * at their associated frequencies. * * @param random * The random context to use to generate random numbers for * deciding whether or not to include a specific weighted hand. * @return The sampled {@link ...
Obtains a <code>Hand</code> from this <code>Range</code>, excluding weighted hands at their associated frequencies
sample
{ "repo_name": "ableiten/foldem", "path": "src/main/java/codes/derive/foldem/Range.java", "license": "gpl-3.0", "size": 8462 }
[ "java.util.List", "java.util.Random" ]
import java.util.List; import java.util.Random;
import java.util.*;
[ "java.util" ]
java.util;
1,105,489
@InterfaceAudience.Private public List<RevisionInternal> getRevisionHistory(RevisionInternal rev) { if (!isOpen()) throw new CouchbaseLiteRuntimeException("Database is closed."); storeRef.retain(); try { // NOTE: getRevisionHistory() is thread safe. It is read operation to da...
@InterfaceAudience.Private List<RevisionInternal> function(RevisionInternal rev) { if (!isOpen()) throw new CouchbaseLiteRuntimeException(STR); storeRef.retain(); try { return store.getRevisionHistory(rev); } finally { storeRef.release(); } }
/** * Returns an array of TDRevs in reverse chronological order, starting with the given revision. */
Returns an array of TDRevs in reverse chronological order, starting with the given revision
getRevisionHistory
{ "repo_name": "couchbase/couchbase-lite-java-core", "path": "src/main/java/com/couchbase/lite/Database.java", "license": "apache-2.0", "size": 114145 }
[ "com.couchbase.lite.internal.InterfaceAudience", "com.couchbase.lite.internal.RevisionInternal", "java.util.List" ]
import com.couchbase.lite.internal.InterfaceAudience; import com.couchbase.lite.internal.RevisionInternal; import java.util.List;
import com.couchbase.lite.internal.*; import java.util.*;
[ "com.couchbase.lite", "java.util" ]
com.couchbase.lite; java.util;
327,097
public MessageBufferOutput reset(MessageBufferOutput out) throws IOException { // Validate the argument MessageBufferOutput newOut = checkNotNull(out, "MessageBufferOutput is null"); // Reset the internal states MessageBufferOutput old = this.out; this.out = ...
MessageBufferOutput function(MessageBufferOutput out) throws IOException { MessageBufferOutput newOut = checkNotNull(out, STR); MessageBufferOutput old = this.out; this.out = newOut; this.position = 0; this.flushedBytes = 0; return old; }
/** * Reset output. This method doesn't close the old resource. * * @param out new output * @return the old resource */
Reset output. This method doesn't close the old resource
reset
{ "repo_name": "suzukaze/msgpack-java", "path": "msgpack-core/src/main/java/org/msgpack/core/MessagePacker.java", "license": "apache-2.0", "size": 21713 }
[ "java.io.IOException", "org.msgpack.core.Preconditions", "org.msgpack.core.buffer.MessageBufferOutput" ]
import java.io.IOException; import org.msgpack.core.Preconditions; import org.msgpack.core.buffer.MessageBufferOutput;
import java.io.*; import org.msgpack.core.*; import org.msgpack.core.buffer.*;
[ "java.io", "org.msgpack.core" ]
java.io; org.msgpack.core;
178,118
protected void setupRules() { numAssignmentRules = 0; numRateRules = 0; // NOTE: assignmentrules are performed in setupinitialassignments // loop through all assignment rules // store which variables (RHS) affect the rule variable (LHS) // so when those RHS variables change, we know to re-evaluate th...
void function() { numAssignmentRules = 0; numRateRules = 0; for (Rule rule : model.getListOfRules()) { if (rule.isAssignment()) { rule.setMath(inlineFormula(rule.getMath())); AssignmentRule assignmentRule = (AssignmentRule) rule; ArrayList<ASTNode> formulaChildren = new ArrayList<ASTNode>(); if (assignmentRule.getMath(...
/** * puts rule-related information into data structures */
puts rule-related information into data structures
setupRules
{ "repo_name": "MyersResearchGroup/iBioSim", "path": "analysis/src/main/java/edu/utah/ece/async/ibiosim/analysis/simulation/flattened/Simulator.java", "license": "apache-2.0", "size": 210548 }
[ "java.util.ArrayList", "java.util.HashSet", "org.sbml.jsbml.ASTNode", "org.sbml.jsbml.AssignmentRule", "org.sbml.jsbml.RateRule", "org.sbml.jsbml.Rule" ]
import java.util.ArrayList; import java.util.HashSet; import org.sbml.jsbml.ASTNode; import org.sbml.jsbml.AssignmentRule; import org.sbml.jsbml.RateRule; import org.sbml.jsbml.Rule;
import java.util.*; import org.sbml.jsbml.*;
[ "java.util", "org.sbml.jsbml" ]
java.util; org.sbml.jsbml;
1,940,910
private void validateAttributesValues(DefDescriptor<?> referencingDesc) throws QuickFixException, AttributeNotFoundException { RootDefinition rootDef = getComponentDef(); Map<DefDescriptor<AttributeDef>, AttributeDef> atts = rootDef.getAttributeDefs(); Map<String, RegisterEventDef> registere...
void function(DefDescriptor<?> referencingDesc) throws QuickFixException, AttributeNotFoundException { RootDefinition rootDef = getComponentDef(); Map<DefDescriptor<AttributeDef>, AttributeDef> atts = rootDef.getAttributeDefs(); Map<String, RegisterEventDef> registeredEvents = rootDef.getRegisterEventDefs(); MasterDefR...
/** * Validate attributes that were specified in the component instantiation. Does not validate missing attributes. * Example: in the component instantiation of myMS:widget validates the specified attributes foo and bar * <myNS:uberWidget foo="123" bar="blah"/> * * @param referencingDesc refere...
Validate attributes that were specified in the component instantiation. Does not validate missing attributes
validateAttributesValues
{ "repo_name": "DebalinaDey/AuraDevelopDeb", "path": "aura-impl/src/main/java/org/auraframework/impl/root/component/ComponentDefRefImpl.java", "license": "apache-2.0", "size": 15653 }
[ "java.util.Map", "org.auraframework.Aura", "org.auraframework.def.AttributeDef", "org.auraframework.def.AttributeDefRef", "org.auraframework.def.DefDescriptor", "org.auraframework.def.RegisterEventDef", "org.auraframework.def.RootDefinition", "org.auraframework.system.MasterDefRegistry", "org.aurafr...
import java.util.Map; import org.auraframework.Aura; import org.auraframework.def.AttributeDef; import org.auraframework.def.AttributeDefRef; import org.auraframework.def.DefDescriptor; import org.auraframework.def.RegisterEventDef; import org.auraframework.def.RootDefinition; import org.auraframework.system.MasterDefR...
import java.util.*; import org.auraframework.*; import org.auraframework.def.*; import org.auraframework.system.*; import org.auraframework.throwable.quickfix.*;
[ "java.util", "org.auraframework", "org.auraframework.def", "org.auraframework.system", "org.auraframework.throwable" ]
java.util; org.auraframework; org.auraframework.def; org.auraframework.system; org.auraframework.throwable;
376,500
@POST @Path("/images/create") String imageCreate(@QueryParam("fromImage") String fromImage, @QueryParam("formSrc") String fromSrc, @QueryParam("repo") String repo, @QueryParam("tag") String tag, @QueryParam("registry") String registry);
@Path(STR) String imageCreate(@QueryParam(STR) String fromImage, @QueryParam(STR) String fromSrc, @QueryParam("repo") String repo, @QueryParam("tag") String tag, @QueryParam(STR) String registry);
/** * Create an {@link Image}. * * @param fromImage The source image. * @param fromSrc The source to import, - means stdin. * @param repo The repository. * @param tag The tag. * @param registry The registry. * @return a sequence of JSON objects for {@link Progress} ...
Create an <code>Image</code>
imageCreate
{ "repo_name": "hekonsek/fabric8", "path": "components/docker-api/src/main/java/io/fabric8/docker/api/Docker.java", "license": "apache-2.0", "size": 9552 }
[ "javax.ws.rs.Path", "javax.ws.rs.QueryParam" ]
import javax.ws.rs.Path; import javax.ws.rs.QueryParam;
import javax.ws.rs.*;
[ "javax.ws" ]
javax.ws;
2,685,355
public synchronized boolean isCacheMatch(LatLngRect area, int minRank) { return inProgressArea != null && inProgressArea.contains(area) && inProgressRank == minRank; }
synchronized boolean function(LatLngRect area, int minRank) { return inProgressArea != null && inProgressArea.contains(area) && inProgressRank == minRank; }
/** * Returns true if {@code area} and {@code minRank} will either 1) hit the * cache, or 2) give the same results as the query that's in progress by * {@link #getAirportsInRectangle(LatLngRect, int)}. */
Returns true if area and minRank will either 1) hit the cache, or 2) give the same results as the query that's in progress by <code>#getAirportsInRectangle(LatLngRect, int)</code>
isCacheMatch
{ "repo_name": "mattshobe/flightmap", "path": "common/src/com/google/flightmap/common/db/CachedAirportDirectory.java", "license": "apache-2.0", "size": 5418 }
[ "com.google.flightmap.common.data.LatLngRect" ]
import com.google.flightmap.common.data.LatLngRect;
import com.google.flightmap.common.data.*;
[ "com.google.flightmap" ]
com.google.flightmap;
578,683
public static void setElevation(float elevation, View... views) { for (View view : views) { if (view != null) ViewCompat.setElevation(view, elevation); } }
static void function(float elevation, View... views) { for (View view : views) { if (view != null) ViewCompat.setElevation(view, elevation); } }
/** * modify the elevation of multiples views * @param elevation the new elevation * @param views */
modify the elevation of multiples views
setElevation
{ "repo_name": "Sreno1/DND", "path": "materialviewpager/src/main/java/com/github/florent37/materialviewpager/Utils.java", "license": "apache-2.0", "size": 2628 }
[ "android.support.v4.view.ViewCompat", "android.view.View" ]
import android.support.v4.view.ViewCompat; import android.view.View;
import android.support.v4.view.*; import android.view.*;
[ "android.support", "android.view" ]
android.support; android.view;
583,684
public void setUsageThreshold(MemoryPoolMXBean bean, long threshold) { bean.setUsageThreshold(threshold); }
void function(MemoryPoolMXBean bean, long threshold) { bean.setUsageThreshold(threshold); }
/** * Set the usage threshold of the given memory pool. * * @param bean The associated memory pool to configure * @param threshold The threshold to configure, in bytes * * @see #getMemoryPoolMXBeans() * @see MemoryPoolMXBean#setUsageThreshold(long) */
Set the usage threshold of the given memory pool
setUsageThreshold
{ "repo_name": "teatrove/teatrove", "path": "teaapps/src/main/java/org/teatrove/teaapps/contexts/JMXContext.java", "license": "apache-2.0", "size": 33092 }
[ "java.lang.management.MemoryPoolMXBean" ]
import java.lang.management.MemoryPoolMXBean;
import java.lang.management.*;
[ "java.lang" ]
java.lang;
1,892,581
public void zSetFindEmail(String email) throws HarnessException { logger.info(myPageName() + " zSetFindEmail("+ email +")"); String locator = Locators.zEmailInputLocator; if ( !this.sIsElementPresent(locator) ) { throw new HarnessException("Locator "+ locator +" not present"); } // To activate th...
void function(String email) throws HarnessException { logger.info(myPageName() + STR+ email +")"); String locator = Locators.zEmailInputLocator; if ( !this.sIsElementPresent(locator) ) { throw new HarnessException(STR+ locator +STR); } this.sFocus(locator); this.zClick(locator); this.zKeyboard.zTypeCharacters(email); i...
/** * Find shares: email * @param email * @throws HarnessException */
Find shares: email
zSetFindEmail
{ "repo_name": "nico01f/z-pec", "path": "ZimbraSelenium/src/java/com/zimbra/qa/selenium/projects/ajax/ui/DialogShareFind.java", "license": "mit", "size": 8116 }
[ "com.zimbra.qa.selenium.framework.util.HarnessException" ]
import com.zimbra.qa.selenium.framework.util.HarnessException;
import com.zimbra.qa.selenium.framework.util.*;
[ "com.zimbra.qa" ]
com.zimbra.qa;
2,542,918
void updateState(CallManager cm) { if (DBG) log("updateState(" + cm + ")..."); // Update the onscreen UI based on the current state of the phone. Phone.State state = cm.getState(); // IDLE, RINGING, or OFFHOOK Call ringingCall = cm.getFirstActiveRingingCall(); Call ...
void updateState(CallManager cm) { if (DBG) log(STR + cm + ")..."); Phone.State state = cm.getState(); Call ringingCall = cm.getFirstActiveRingingCall(); Call fgCall = cm.getActiveFgCall(); Call bgCall = cm.getFirstActiveBgCall(); updateCallInfoLayout(state); if ((ringingCall.getState() != Call.State.IDLE) && !fgCall.g...
/** * Updates the state of all UI elements on the CallCard, based on the * current state of the phone. */
Updates the state of all UI elements on the CallCard, based on the current state of the phone
updateState
{ "repo_name": "risingsunm/Phone_4.0", "path": "src/com/android/phone/CallCard.java", "license": "gpl-3.0", "size": 103627 }
[ "com.android.internal.telephony.Call", "com.android.internal.telephony.CallManager", "com.android.internal.telephony.Phone" ]
import com.android.internal.telephony.Call; import com.android.internal.telephony.CallManager; import com.android.internal.telephony.Phone;
import com.android.internal.telephony.*;
[ "com.android.internal" ]
com.android.internal;
192,826
@Override public String getName() { return highestDefiningType.getName() + TypeSystem.FEATURE_SEPARATOR + shortName; }
String function() { return highestDefiningType.getName() + TypeSystem.FEATURE_SEPARATOR + shortName; }
/** * Get the fully qualified name for this feature. The Feature qualifier is that of the highest * defining type. * * @return The name. This can not be <code>null</code>. */
Get the fully qualified name for this feature. The Feature qualifier is that of the highest defining type
getName
{ "repo_name": "apache/uima-uimaj", "path": "uimaj-core/src/main/java/org/apache/uima/cas/impl/FeatureImpl.java", "license": "apache-2.0", "size": 11051 }
[ "org.apache.uima.cas.TypeSystem" ]
import org.apache.uima.cas.TypeSystem;
import org.apache.uima.cas.*;
[ "org.apache.uima" ]
org.apache.uima;
1,192,217
long contentLength() throws IOException;
long contentLength() throws IOException;
/** * Determine the content length for this resource. * @throws IOException if the resource cannot be resolved * (in the file system or as some other known physical resource type) */
Determine the content length for this resource
contentLength
{ "repo_name": "spring-projects/spring-android", "path": "spring-android-core/src/main/java/org/springframework/core/io/Resource.java", "license": "apache-2.0", "size": 4401 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
22,842
protected Ignite startGrid(String igniteInstanceName, IgniteConfiguration cfg, GridSpringResourceContext ctx) throws Exception { if (!isRemoteJvm(igniteInstanceName)) { startingIgniteInstanceName.set(igniteInstanceName); try { Ignite node = IgnitionEx.start(c...
Ignite function(String igniteInstanceName, IgniteConfiguration cfg, GridSpringResourceContext ctx) throws Exception { if (!isRemoteJvm(igniteInstanceName)) { startingIgniteInstanceName.set(igniteInstanceName); try { Ignite node = IgnitionEx.start(cfg, ctx); IgniteConfiguration nodeCfg = node.configuration(); log.info(S...
/** * Starts new grid with given name. * * @param igniteInstanceName Ignite instance name. * @param ctx Spring context. * @return Started grid. * @throws Exception If failed. */
Starts new grid with given name
startGrid
{ "repo_name": "WilliamDo/ignite", "path": "modules/core/src/test/java/org/apache/ignite/testframework/junits/GridAbstractTest.java", "license": "apache-2.0", "size": 76816 }
[ "org.apache.ignite.Ignite", "org.apache.ignite.configuration.IgniteConfiguration", "org.apache.ignite.internal.IgnitionEx", "org.apache.ignite.internal.processors.resource.GridSpringResourceContext" ]
import org.apache.ignite.Ignite; import org.apache.ignite.configuration.IgniteConfiguration; import org.apache.ignite.internal.IgnitionEx; import org.apache.ignite.internal.processors.resource.GridSpringResourceContext;
import org.apache.ignite.*; import org.apache.ignite.configuration.*; import org.apache.ignite.internal.*; import org.apache.ignite.internal.processors.resource.*;
[ "org.apache.ignite" ]
org.apache.ignite;
632,526
public static LinearLocation getLocation(Geometry linearGeom, double length, boolean resolveLower) { LengthLocationMap locater = new LengthLocationMap(linearGeom); return locater.getLocation(length, resolveLower); } /** * Computes the length for a given {@link LinearLocation} * on...
static LinearLocation function(Geometry linearGeom, double length, boolean resolveLower) { LengthLocationMap locater = new LengthLocationMap(linearGeom); return locater.getLocation(length, resolveLower); } /** * Computes the length for a given {@link LinearLocation} * on a linear {@link Geometry}. * * @param linearGeom...
/** * Computes the {@link LinearLocation} for a * given length along a linear {@link Geometry}, * with control over how the location * is resolved at component endpoints. * * @param linearGeom the linear geometry to use * @param length the length index of the location * @...
Computes the <code>LinearLocation</code> for a given length along a linear <code>Geometry</code>, with control over how the location is resolved at component endpoints
getLocation
{ "repo_name": "Semantive/jts", "path": "src/main/java/com/vividsolutions/jts/linearref/LengthLocationMap.java", "license": "lgpl-3.0", "size": 8045 }
[ "com.vividsolutions.jts.geom.Geometry" ]
import com.vividsolutions.jts.geom.Geometry;
import com.vividsolutions.jts.geom.*;
[ "com.vividsolutions.jts" ]
com.vividsolutions.jts;
786,577