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
Collection<ResourceAllocation<?, ?>> getResourceAllocations(ResourceConsumer consumer);
Collection<ResourceAllocation<?, ?>> getResourceAllocations(ResourceConsumer consumer);
/** * Returns resources allocated to the specified consumer. * * @param consumer consumer whose allocated resources are to be returned * @return resources allocated to the consumer */
Returns resources allocated to the specified consumer
getResourceAllocations
{ "repo_name": "kuangrewawa/OnosFw", "path": "core/api/src/main/java/org/onosproject/net/newresource/ResourceService.java", "license": "apache-2.0", "size": 5383 }
[ "java.util.Collection" ]
import java.util.Collection;
import java.util.*;
[ "java.util" ]
java.util;
2,530,000
static Set<LedgerFragment> splitIntoSubFragments(LedgerHandle lh, LedgerFragment ledgerFragment, long rereplicationEntryBatchSize) { Set<LedgerFragment> fragments = new HashSet<LedgerFragment>(); if (rereplicationEntryBatchSize <= 0) { // rereplicationEntryBatchSize can not b...
static Set<LedgerFragment> splitIntoSubFragments(LedgerHandle lh, LedgerFragment ledgerFragment, long rereplicationEntryBatchSize) { Set<LedgerFragment> fragments = new HashSet<LedgerFragment>(); if (rereplicationEntryBatchSize <= 0) { fragments.add(ledgerFragment); return fragments; } long firstEntryId = ledgerFragmen...
/** * Split the full fragment into batched entry fragments by keeping * rereplicationEntryBatchSize of entries in each one and can treat them as * sub fragments */
Split the full fragment into batched entry fragments by keeping rereplicationEntryBatchSize of entries in each one and can treat them as sub fragments
splitIntoSubFragments
{ "repo_name": "fengshao0907/bookkeeper", "path": "bookkeeper-server/src/main/java/org/apache/bookkeeper/client/LedgerFragmentReplicator.java", "license": "apache-2.0", "size": 19852 }
[ "java.util.HashSet", "java.util.Set" ]
import java.util.HashSet; import java.util.Set;
import java.util.*;
[ "java.util" ]
java.util;
2,898,690
public synchronized boolean add( ScanningTasks other ) { if (other != null) { this.providerNames.addAll(other.providerNames); for (Map.Entry<String, Path> entry : other.pathsByWorkspaceName.entries()) { add(entry.getKey(), entry.getValue()); ...
synchronized boolean function( ScanningTasks other ) { if (other != null) { this.providerNames.addAll(other.providerNames); for (Map.Entry<String, Path> entry : other.pathsByWorkspaceName.entries()) { add(entry.getKey(), entry.getValue()); } } return !this.providerNames.isEmpty(); }
/** * Add all of the provider names and workspace-path pairs from the supplied scanning task. * * @param other the other scanning task; may be null * @return true if there is at least one workspace-path pair and provider, or false if there are none */
Add all of the provider names and workspace-path pairs from the supplied scanning task
add
{ "repo_name": "flownclouds/modeshape", "path": "modeshape-jcr/src/main/java/org/modeshape/jcr/RepositoryIndexManager.java", "license": "apache-2.0", "size": 38821 }
[ "java.util.Map", "org.modeshape.jcr.value.Path" ]
import java.util.Map; import org.modeshape.jcr.value.Path;
import java.util.*; import org.modeshape.jcr.value.*;
[ "java.util", "org.modeshape.jcr" ]
java.util; org.modeshape.jcr;
149,215
@VisibleForTesting // productionVisibility = Visibility.PRIVATE @ThreadCompatible final void updateActionInputs(NestedSet<Artifact> discoveredInputs) { Preconditions.checkState( discoversInputs(), "Can't call if not discovering inputs: %s %s", discoveredInputs, this); try (SilentCloseable c = ...
@VisibleForTesting final void updateActionInputs(NestedSet<Artifact> discoveredInputs) { Preconditions.checkState( discoversInputs(), STR, discoveredInputs, this); try (SilentCloseable c = Profiler.instance().profile(ProfilerTask.ACTION_UPDATE, this::describe)) { NestedSetBuilder<Artifact> inputsBuilder = NestedSetBuil...
/** * Recalculates this action's live input collection, including sources, middlemen. * * <p>Can only be called if {@link #discoversInputs}, and must be called after execution in that * case. */
Recalculates this action's live input collection, including sources, middlemen. Can only be called if <code>#discoversInputs</code>, and must be called after execution in that case
updateActionInputs
{ "repo_name": "bazelbuild/bazel", "path": "src/main/java/com/google/devtools/build/lib/rules/cpp/CppCompileAction.java", "license": "apache-2.0", "size": 83379 }
[ "com.google.common.annotations.VisibleForTesting", "com.google.common.base.Preconditions", "com.google.devtools.build.lib.actions.Artifact", "com.google.devtools.build.lib.collect.nestedset.NestedSet", "com.google.devtools.build.lib.collect.nestedset.NestedSetBuilder", "com.google.devtools.build.lib.profi...
import com.google.common.annotations.VisibleForTesting; import com.google.common.base.Preconditions; import com.google.devtools.build.lib.actions.Artifact; import com.google.devtools.build.lib.collect.nestedset.NestedSet; import com.google.devtools.build.lib.collect.nestedset.NestedSetBuilder; import com.google.devtool...
import com.google.common.annotations.*; import com.google.common.base.*; import com.google.devtools.build.lib.actions.*; import com.google.devtools.build.lib.collect.nestedset.*; import com.google.devtools.build.lib.profiler.*;
[ "com.google.common", "com.google.devtools" ]
com.google.common; com.google.devtools;
1,553,001
public B updatedFromNow(long v, TimeUnit unit) { return _dtFromNow("updated", v, unit); }
B function(long v, TimeUnit unit) { return _dtFromNow(STR, v, unit); }
/** * Set the updated timestamp as a given period from the current time * @param v long * @param unit TimeUnit * @return B **/
Set the updated timestamp as a given period from the current time
updatedFromNow
{ "repo_name": "worldline-messaging/activitystreams", "path": "core/src/main/java/com/ibm/common/activitystreams/ASObject.java", "license": "apache-2.0", "size": 65559 }
[ "java.util.concurrent.TimeUnit" ]
import java.util.concurrent.TimeUnit;
import java.util.concurrent.*;
[ "java.util" ]
java.util;
2,266,737
public void displayImage(String uri, ImageView imageView, DisplayImageOptions options, ImageLoadingListener listener) { displayImage(uri, imageView, options, listener, null); }
void function(String uri, ImageView imageView, DisplayImageOptions options, ImageLoadingListener listener) { displayImage(uri, imageView, options, listener, null); }
/** * Adds display image task to execution pool. Image will be set to ImageView when it's turn.<br /> * <b>NOTE:</b> {@link #init(ImageLoaderConfiguration)} method must be called before this method call * * @param uri Image URI (i.e. "http://site.com/image.png", "file:///mnt/sdcard/image.png") * @param ...
Adds display image task to execution pool. Image will be set to ImageView when it's turn
displayImage
{ "repo_name": "nilesh14/FMC", "path": "FMC/app/src/main/java/com/nostra13/universalimageloader/core/ImageLoader.java", "license": "apache-2.0", "size": 37788 }
[ "android.widget.ImageView", "com.nostra13.universalimageloader.core.listener.ImageLoadingListener" ]
import android.widget.ImageView; import com.nostra13.universalimageloader.core.listener.ImageLoadingListener;
import android.widget.*; import com.nostra13.universalimageloader.core.listener.*;
[ "android.widget", "com.nostra13.universalimageloader" ]
android.widget; com.nostra13.universalimageloader;
460,064
void add(List<SolrInputDocument> solrDocuments) throws SolrServerException, IOException;
void add(List<SolrInputDocument> solrDocuments) throws SolrServerException, IOException;
/** * Add a list of {@link SolrInputDocument} to the Solr index. This is a batch operation. * <p> * Note: Does not apply until you call {@link #commit()}. * * @param solrDocuments the documents. * @throws SolrServerException if problems occur. * @throws IOException if problems occur....
Add a list of <code>SolrInputDocument</code> to the Solr index. This is a batch operation. Note: Does not apply until you call <code>#commit()</code>
add
{ "repo_name": "pbondoer/xwiki-platform", "path": "xwiki-platform-core/xwiki-platform-search/xwiki-platform-search-solr/xwiki-platform-search-solr-api/src/main/java/org/xwiki/search/solr/internal/api/SolrInstance.java", "license": "lgpl-2.1", "size": 5427 }
[ "java.io.IOException", "java.util.List", "org.apache.solr.client.solrj.SolrServerException", "org.apache.solr.common.SolrInputDocument" ]
import java.io.IOException; import java.util.List; import org.apache.solr.client.solrj.SolrServerException; import org.apache.solr.common.SolrInputDocument;
import java.io.*; import java.util.*; import org.apache.solr.client.solrj.*; import org.apache.solr.common.*;
[ "java.io", "java.util", "org.apache.solr" ]
java.io; java.util; org.apache.solr;
1,449,788
public int onlineHbck() throws IOException, KeeperException, InterruptedException { // print hbase server version errors.print("Version: " + status.getHBaseVersion()); offlineHdfsIntegrityRepair(); // turn the balancer off boolean oldBalancer = admin.setBalancerRunning(false, true); try { ...
int function() throws IOException, KeeperException, InterruptedException { errors.print(STR + status.getHBaseVersion()); offlineHdfsIntegrityRepair(); boolean oldBalancer = admin.setBalancerRunning(false, true); try { onlineConsistencyRepair(); } finally { admin.setBalancerRunning(oldBalancer, false); } offlineReferenc...
/** * Contacts the master and prints out cluster-wide information * @return 0 on success, non-zero on failure */
Contacts the master and prints out cluster-wide information
onlineHbck
{ "repo_name": "zqxjjj/NobidaBase", "path": "target/hbase-0.94.9/hbase-0.94.9/src/main/java/org/apache/hadoop/hbase/util/HBaseFsck.java", "license": "apache-2.0", "size": 137112 }
[ "java.io.IOException", "org.apache.zookeeper.KeeperException" ]
import java.io.IOException; import org.apache.zookeeper.KeeperException;
import java.io.*; import org.apache.zookeeper.*;
[ "java.io", "org.apache.zookeeper" ]
java.io; org.apache.zookeeper;
2,609,020
public Mark getMark(TextNode node, int pos, boolean all) { return null; }
Mark function(TextNode node, int pos, boolean all) { return null; }
/** * Get the mark. * This does nothing since the output is AFP and not interactive. * * @param node the text node * @param pos the position * @param all select all * @return null */
Get the mark. This does nothing since the output is AFP and not interactive
getMark
{ "repo_name": "Distrotech/fop", "path": "src/java/org/apache/fop/svg/AbstractFOPTextPainter.java", "license": "apache-2.0", "size": 17004 }
[ "org.apache.batik.gvt.TextNode", "org.apache.batik.gvt.text.Mark" ]
import org.apache.batik.gvt.TextNode; import org.apache.batik.gvt.text.Mark;
import org.apache.batik.gvt.*; import org.apache.batik.gvt.text.*;
[ "org.apache.batik" ]
org.apache.batik;
685,377
public static Vector<JobCollection> getRunningJobCollections( String commonName) { Vector<JobCollection> result = new Vector<JobCollection>(); Session session = GESessionFactoryUtil.getSessionfactory() .openSession(); Transaction tx = null; try { tx = session.beginTransaction(); Query q = sess...
static Vector<JobCollection> function( String commonName) { Vector<JobCollection> result = new Vector<JobCollection>(); Session session = GESessionFactoryUtil.getSessionfactory() .openSession(); Transaction tx = null; try { tx = session.beginTransaction(); Query q = session .createQuery(STR); q.setParameter(STR, common...
/** * This method retrieves all running JobCollections for the specified user. * A running JobCollection is a collection whose state can be in one of the * following possibilities: * <ul> * <li>CREATED: when the collection was just created and none of its * sub-jobs was still submitted;</li> * <li>RUNNING...
This method retrieves all running JobCollections for the specified user. A running JobCollection is a collection whose state can be in one of the following possibilities: sub-jobs was still submitted; <code>WorkflowN1</code> and its final job was just submitted; still running.
getRunningJobCollections
{ "repo_name": "csgf/grid-and-cloud-engine", "path": "it/infn/ct/GridEngine/JobCollection/JobCollection.java", "license": "apache-2.0", "size": 22106 }
[ "it.infn.ct.GridEngine", "java.util.List", "java.util.Vector", "org.hibernate.HibernateException", "org.hibernate.Query", "org.hibernate.Session", "org.hibernate.Transaction" ]
import it.infn.ct.GridEngine; import java.util.List; import java.util.Vector; import org.hibernate.HibernateException; import org.hibernate.Query; import org.hibernate.Session; import org.hibernate.Transaction;
import it.infn.ct.*; import java.util.*; import org.hibernate.*;
[ "it.infn.ct", "java.util", "org.hibernate" ]
it.infn.ct; java.util; org.hibernate;
255,007
public void updateUI() { setUI((ColorChooserUI) UIManager.getUI(this)); }
void function() { setUI((ColorChooserUI) UIManager.getUI(this)); }
/** * This method resets the UI Component property to the Look and Feel * default. */
This method resets the UI Component property to the Look and Feel default
updateUI
{ "repo_name": "SanDisk-Open-Source/SSD_Dashboard", "path": "uefi/gcc/gcc-4.6.3/libjava/classpath/javax/swing/JColorChooser.java", "license": "gpl-2.0", "size": 18690 }
[ "javax.swing.plaf.ColorChooserUI" ]
import javax.swing.plaf.ColorChooserUI;
import javax.swing.plaf.*;
[ "javax.swing" ]
javax.swing;
263,547
int getIndex() throws DebuggerException;
int getIndex() throws DebuggerException;
/** * Get index of this element of array. * * @return index of this array element * @throws DebuggerException if an error occurs */
Get index of this element of array
getIndex
{ "repo_name": "sudaraka94/che", "path": "plugins/plugin-java-debugger/che-plugin-java-debugger-server/src/main/java/org/eclipse/che/plugin/jdb/server/JdiArrayElement.java", "license": "epl-1.0", "size": 802 }
[ "org.eclipse.che.api.debugger.server.exceptions.DebuggerException" ]
import org.eclipse.che.api.debugger.server.exceptions.DebuggerException;
import org.eclipse.che.api.debugger.server.exceptions.*;
[ "org.eclipse.che" ]
org.eclipse.che;
646,682
public boolean hasPrivilege(AbstractDomainObject aDObject, String privilegeName) { return hasPrivilege(aDObject.getObjectId(), privilegeName); }
boolean function(AbstractDomainObject aDObject, String privilegeName) { return hasPrivilege(aDObject.getObjectId(), privilegeName); }
/** * To check for 'Object' level Privilege Here, we take objectId from Object & * retrieve its associated BitSet from the privilegeMap Then, we check * whether User has Permission over the passed Privilege or no & return true * if user has privilege, false otherwise. * * @param aDObject * @param ...
To check for 'Object' level Privilege Here, we take objectId from Object & retrieve its associated BitSet from the privilegeMap Then, we check whether User has Permission over the passed Privilege or no & return true if user has privilege, false otherwise
hasPrivilege
{ "repo_name": "NCIP/cab2b", "path": "software/dependencies/commonpackage/HEAD_TAG_10_Jan_2007_RELEASE_BRANCH_FOR_V11/src/edu/wustl/common/security/PrivilegeCache.java", "license": "bsd-3-clause", "size": 20309 }
[ "edu.wustl.common.domain.AbstractDomainObject" ]
import edu.wustl.common.domain.AbstractDomainObject;
import edu.wustl.common.domain.*;
[ "edu.wustl.common" ]
edu.wustl.common;
602,206
public static boolean isForwardable(Context context, long msgId) { PduBody body = null; try { body = SlideshowModel.getPduBody(context, ContentUris.withAppendedId(Mms.CONTENT_URI, msgId)); } catch (MmsException e) { Log.e(TAG, "getDrmMimeType can't load pdu body: " + ...
static boolean function(Context context, long msgId) { PduBody body = null; try { body = SlideshowModel.getPduBody(context, ContentUris.withAppendedId(Mms.CONTENT_URI, msgId)); } catch (MmsException e) { Log.e(TAG, STR + msgId); } if (body == null) { return false; } int partNum = body.getPartsNum(); for (int i = 0; i <...
/** * Returns true if all drm'd parts are forwardable. * * @param context * @param msgId * @return true if all drm'd parts are forwardable. */
Returns true if all drm'd parts are forwardable
isForwardable
{ "repo_name": "BennoGAP/notification-forwarder", "path": "SMS/src/main/java/org/groebl/sms/common/utils/MessageUtils.java", "license": "gpl-3.0", "size": 56388 }
[ "android.content.ContentUris", "android.content.Context", "android.drm.DrmStore", "android.provider.Telephony", "android.util.Log", "com.google.android.mms.MmsException", "com.google.android.mms.pdu_alt.PduBody", "com.google.android.mms.pdu_alt.PduPart", "org.groebl.sms.model.SlideshowModel" ]
import android.content.ContentUris; import android.content.Context; import android.drm.DrmStore; import android.provider.Telephony; import android.util.Log; import com.google.android.mms.MmsException; import com.google.android.mms.pdu_alt.PduBody; import com.google.android.mms.pdu_alt.PduPart; import org.groebl.sms.mod...
import android.content.*; import android.drm.*; import android.provider.*; import android.util.*; import com.google.android.mms.*; import com.google.android.mms.pdu_alt.*; import org.groebl.sms.model.*;
[ "android.content", "android.drm", "android.provider", "android.util", "com.google.android", "org.groebl.sms" ]
android.content; android.drm; android.provider; android.util; com.google.android; org.groebl.sms;
696,062
Button addPublishButton(I_CmsUpdateListener<String> updateListener);
Button addPublishButton(I_CmsUpdateListener<String> updateListener);
/** * Adds the publish button to the toolbar.<p> * * @param updateListener the update listener, called after publishing * * @return the added button */
Adds the publish button to the toolbar
addPublishButton
{ "repo_name": "alkacon/opencms-core", "path": "src/org/opencms/ui/apps/I_CmsAppUIContext.java", "license": "lgpl-2.1", "size": 4198 }
[ "com.vaadin.ui.Button" ]
import com.vaadin.ui.Button;
import com.vaadin.ui.*;
[ "com.vaadin.ui" ]
com.vaadin.ui;
412,007
protected void pop_source() throws IOException { pp.debugSourceEnd(source); if (pp.listener != null) pp.listener.handleSourceChange(this.source, "pop"); Source s = this.source; if (this.source.getSibling() != null) this.source = s.getSibling(); else ...
void function() throws IOException { pp.debugSourceEnd(source); if (pp.listener != null) pp.listener.handleSourceChange(this.source, "pop"); Source s = this.source; if (this.source.getSibling() != null) this.source = s.getSibling(); else this.source = s.getParent(); s.close(); if (pp.listener != null && this.source != ...
/** * Pops a Source from the input stack. * * @see #getSource() * @see #push_source(Source, boolean) */
Pops a Source from the input stack
pop_source
{ "repo_name": "ckaestne/TypeChef", "path": "PartialPreprocessor/src/main/scala/de/fosd/typechef/lexer/SourceManager.java", "license": "lgpl-3.0", "size": 6020 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
1,863,245
public com.mozu.api.contracts.content.PropertyTypeCollection getPropertyTypes(Integer pageSize, Integer startIndex, String responseFields) throws Exception { MozuClient<com.mozu.api.contracts.content.PropertyTypeCollection> client = com.mozu.api.clients.content.PropertyTypeClient.getPropertyTypesClient(_dataViewM...
com.mozu.api.contracts.content.PropertyTypeCollection function(Integer pageSize, Integer startIndex, String responseFields) throws Exception { MozuClient<com.mozu.api.contracts.content.PropertyTypeCollection> client = com.mozu.api.clients.content.PropertyTypeClient.getPropertyTypesClient(_dataViewMode, pageSize, startI...
/** * Retrieves a list of the content property types. * <p><pre><code> * PropertyType propertytype = new PropertyType(); * PropertyTypeCollection propertyTypeCollection = propertytype.getPropertyTypes( pageSize, startIndex, responseFields); * </code></pre></p> * @param pageSize The number of results to di...
Retrieves a list of the content property types. <code><code> PropertyType propertytype = new PropertyType(); PropertyTypeCollection propertyTypeCollection = propertytype.getPropertyTypes( pageSize, startIndex, responseFields); </code></code>
getPropertyTypes
{ "repo_name": "lakshmi-nair/mozu-java", "path": "mozu-javaasync-core/src/main/java/com/mozu/api/resources/content/PropertyTypeResource.java", "license": "mit", "size": 16975 }
[ "com.mozu.api.MozuClient" ]
import com.mozu.api.MozuClient;
import com.mozu.api.*;
[ "com.mozu.api" ]
com.mozu.api;
2,913,896
@ApiOperation(value = "Synchronize rules on the switch", response = RulesSyncResult.class) @GetMapping(path = "/{switch_id}/rules/synchronize") @ResponseStatus(HttpStatus.OK) public CompletableFuture<RulesSyncResult> syncRules(@PathVariable(name = "switch_id") SwitchId switchId) { return switchS...
@ApiOperation(value = STR, response = RulesSyncResult.class) @GetMapping(path = STR) @ResponseStatus(HttpStatus.OK) CompletableFuture<RulesSyncResult> function(@PathVariable(name = STR) SwitchId switchId) { return switchService.syncRules(switchId); }
/** * Synchronize (install) missing flows that should be on the switch but exist only in the database. * * @return the synchronization result. */
Synchronize (install) missing flows that should be on the switch but exist only in the database
syncRules
{ "repo_name": "jonvestal/open-kilda", "path": "src-java/northbound-service/northbound/src/main/java/org/openkilda/northbound/controller/v1/SwitchController.java", "license": "apache-2.0", "size": 22407 }
[ "io.swagger.annotations.ApiOperation", "java.util.concurrent.CompletableFuture", "org.openkilda.model.SwitchId", "org.openkilda.northbound.dto.v1.switches.RulesSyncResult", "org.springframework.http.HttpStatus", "org.springframework.web.bind.annotation.GetMapping", "org.springframework.web.bind.annotati...
import io.swagger.annotations.ApiOperation; import java.util.concurrent.CompletableFuture; import org.openkilda.model.SwitchId; import org.openkilda.northbound.dto.v1.switches.RulesSyncResult; import org.springframework.http.HttpStatus; import org.springframework.web.bind.annotation.GetMapping; import org.springframewo...
import io.swagger.annotations.*; import java.util.concurrent.*; import org.openkilda.model.*; import org.openkilda.northbound.dto.v1.switches.*; import org.springframework.http.*; import org.springframework.web.bind.annotation.*;
[ "io.swagger.annotations", "java.util", "org.openkilda.model", "org.openkilda.northbound", "org.springframework.http", "org.springframework.web" ]
io.swagger.annotations; java.util; org.openkilda.model; org.openkilda.northbound; org.springframework.http; org.springframework.web;
2,118,398
championshipManager.getChampionships().forEach(l -> yearField.getItems().add(Integer.toString(l.getYear()))); classesField = new CheckComboBox<String>(); vBoxFields.getChildren().add(vBoxFields.getChildren().size() - 4, classesField); classesField.setDisable(true); classesField....
championshipManager.getChampionships().forEach(l -> yearField.getItems().add(Integer.toString(l.getYear()))); classesField = new CheckComboBox<String>(); vBoxFields.getChildren().add(vBoxFields.getChildren().size() - 4, classesField); classesField.setDisable(true); classesField.setPrefWidth(300.0); classesField.setMaxW...
/** * Called after the fxml file has been loaded; this method initializes the * fxml control class. */
Called after the fxml file has been loaded; this method initializes the fxml control class
initialize
{ "repo_name": "MotoDB/MotoDB", "path": "src/com/motodb/view/AddTeamControl.java", "license": "mit", "size": 8383 }
[ "org.controlsfx.control.CheckComboBox" ]
import org.controlsfx.control.CheckComboBox;
import org.controlsfx.control.*;
[ "org.controlsfx.control" ]
org.controlsfx.control;
1,048,157
@Test public void testWriteManifestWithUseAppCacheFalse() throws Exception { AuraContext context = contextService.getCurrentContext(); DefDescriptor<ApplicationDef> desc = addSourceAutoCleanup(ApplicationDef.class, "<aura:application render='client' useAppcache='false'></aura:app...
void function() throws Exception { AuraContext context = contextService.getCurrentContext(); DefDescriptor<ApplicationDef> desc = addSourceAutoCleanup(ApplicationDef.class, STR); context.setApplicationDescriptor(desc); context.addLoaded(desc, definitionService.getUid(null, desc)); String body = doWrite(definitionServic...
/** * Manifest is not appended to <html> if useAppcache is false. */
Manifest is not appended to if useAppcache is false
testWriteManifestWithUseAppCacheFalse
{ "repo_name": "madmax983/aura", "path": "aura-integration-test/src/test/java/org/auraframework/integration/test/adapter/format/html/ApplicationDefHTMLFormatAdapterTest.java", "license": "apache-2.0", "size": 9150 }
[ "org.auraframework.def.ApplicationDef", "org.auraframework.def.DefDescriptor", "org.auraframework.system.AuraContext" ]
import org.auraframework.def.ApplicationDef; import org.auraframework.def.DefDescriptor; import org.auraframework.system.AuraContext;
import org.auraframework.def.*; import org.auraframework.system.*;
[ "org.auraframework.def", "org.auraframework.system" ]
org.auraframework.def; org.auraframework.system;
2,849,828
@Nullable public ItemStack transferStackInSlot(EntityPlayer playerIn, int index) { ItemStack itemstack = null; Slot slot = (Slot)this.inventorySlots.get(index); if (slot != null && slot.getHasStack()) { ItemStack itemstack1 = slot.getStack(); itemstac...
ItemStack function(EntityPlayer playerIn, int index) { ItemStack itemstack = null; Slot slot = (Slot)this.inventorySlots.get(index); if (slot != null && slot.getHasStack()) { ItemStack itemstack1 = slot.getStack(); itemstack = itemstack1.copy(); if (index < this.numRows * 9) { if (!this.mergeItemStack(itemstack1, this....
/** * Take a stack from the specified inventory slot. */
Take a stack from the specified inventory slot
transferStackInSlot
{ "repo_name": "Im-Jrotica/forge_latest", "path": "build/tmp/recompileMc/sources/net/minecraft/inventory/ContainerChest.java", "license": "lgpl-2.1", "size": 2828 }
[ "net.minecraft.entity.player.EntityPlayer", "net.minecraft.item.ItemStack" ]
import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.ItemStack;
import net.minecraft.entity.player.*; import net.minecraft.item.*;
[ "net.minecraft.entity", "net.minecraft.item" ]
net.minecraft.entity; net.minecraft.item;
1,104,061
public static int readUserInfo(Context context, String key, int defValue) { if (context == null) { return defValue; } SharedPreferences perferences = context.getSharedPreferences(PERFER_NAME, Context.MODE_PRIVATE); return perferences.getInt(key, defValue); }
static int function(Context context, String key, int defValue) { if (context == null) { return defValue; } SharedPreferences perferences = context.getSharedPreferences(PERFER_NAME, Context.MODE_PRIVATE); return perferences.getInt(key, defValue); }
/** * read user information from preferences * * @param context * @param key * preferences key * @param defValue * default value * @return preferences value or default value */
read user information from preferences
readUserInfo
{ "repo_name": "zhaozw/meeting", "path": "Meetisan/src/com/meetisan/meetisan/database/UserInfoKeeper.java", "license": "apache-2.0", "size": 8585 }
[ "android.content.Context", "android.content.SharedPreferences" ]
import android.content.Context; import android.content.SharedPreferences;
import android.content.*;
[ "android.content" ]
android.content;
2,829,941
@Override public void load(File configfile) { super.load(configfile); FileConfiguration file = YamlConfiguration.loadConfiguration(configfile); // Checkpoints this.checkPoints = new ArrayList<Region>(); this.targetCheckpoints = new HashMap<Jockey, Integer>(); this.checkpointTime = new HashM...
void function(File configfile) { super.load(configfile); FileConfiguration file = YamlConfiguration.loadConfiguration(configfile); this.checkPoints = new ArrayList<Region>(); this.targetCheckpoints = new HashMap<Jockey, Integer>(); this.checkpointTime = new HashMap<Jockey, CheckpointTimeData>(); int noofCheckpoints = f...
/** * Load the racecourse from file. */
Load the racecourse from file
load
{ "repo_name": "CodingBadgers/MineKart", "path": "minekart/src/main/java/uk/thecodingbadgers/minekart/racecourse/RacecourseCheckpoint.java", "license": "gpl-2.0", "size": 11817 }
[ "com.sk89q.worldedit.regions.Region", "java.io.File", "java.util.ArrayList", "java.util.HashMap", "org.bukkit.configuration.file.FileConfiguration", "org.bukkit.configuration.file.YamlConfiguration", "uk.thecodingbadgers.minekart.jockey.Jockey" ]
import com.sk89q.worldedit.regions.Region; import java.io.File; import java.util.ArrayList; import java.util.HashMap; import org.bukkit.configuration.file.FileConfiguration; import org.bukkit.configuration.file.YamlConfiguration; import uk.thecodingbadgers.minekart.jockey.Jockey;
import com.sk89q.worldedit.regions.*; import java.io.*; import java.util.*; import org.bukkit.configuration.file.*; import uk.thecodingbadgers.minekart.jockey.*;
[ "com.sk89q.worldedit", "java.io", "java.util", "org.bukkit.configuration", "uk.thecodingbadgers.minekart" ]
com.sk89q.worldedit; java.io; java.util; org.bukkit.configuration; uk.thecodingbadgers.minekart;
453,985
@Test public void addingSameAmounts_shouldCompactOnRetrieval(){ Budget budget = new Budget("Test"); budget.setNumberOfPeriods(6); BudgetAmount budgetAmount = new BudgetAmount(new Money("10", "USD"), "first"); budgetAmount.setPeriodNum(1); budget.addBudgetAmount(budgetAmou...
void function(){ Budget budget = new Budget("Test"); budget.setNumberOfPeriods(6); BudgetAmount budgetAmount = new BudgetAmount(new Money("10", "USD"), "first"); budgetAmount.setPeriodNum(1); budget.addBudgetAmount(budgetAmount); budgetAmount = new BudgetAmount(new Money("10", "USD"), "first"); budgetAmount.setPeriodNu...
/** * Tests that the method {@link Budget#getCompactedBudgetAmounts()} aggregates {@link BudgetAmount}s * with the same amount but leaves others untouched */
Tests that the method <code>Budget#getCompactedBudgetAmounts()</code> aggregates <code>BudgetAmount</code>s with the same amount but leaves others untouched
addingSameAmounts_shouldCompactOnRetrieval
{ "repo_name": "lxbzmy/gnucash-android", "path": "app/src/test/java/org/gnucash/android/test/unit/model/BudgetTest.java", "license": "apache-2.0", "size": 7213 }
[ "java.util.List", "org.assertj.core.api.Assertions", "org.gnucash.android.model.Budget", "org.gnucash.android.model.BudgetAmount", "org.gnucash.android.model.Money", "org.junit.Test" ]
import java.util.List; import org.assertj.core.api.Assertions; import org.gnucash.android.model.Budget; import org.gnucash.android.model.BudgetAmount; import org.gnucash.android.model.Money; import org.junit.Test;
import java.util.*; import org.assertj.core.api.*; import org.gnucash.android.model.*; import org.junit.*;
[ "java.util", "org.assertj.core", "org.gnucash.android", "org.junit" ]
java.util; org.assertj.core; org.gnucash.android; org.junit;
555,839
public QueueItem setMetadata(Map<String, String> metadata) { this.metadata = metadata; return this; }
QueueItem function(Map<String, String> metadata) { this.metadata = metadata; return this; }
/** * Set the metadata property: Dictionary of &lt;string&gt;. * * @param metadata the metadata value to set. * @return the QueueItem object itself. */
Set the metadata property: Dictionary of &lt;string&gt;
setMetadata
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/storage/azure-storage-queue/src/main/java/com/azure/storage/queue/models/QueueItem.java", "license": "mit", "size": 1701 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
185,510
public Point2D getAxisStart() { return axisStart; }
Point2D function() { return axisStart; }
/** * Get the start of the axis */
Get the start of the axis
getAxisStart
{ "repo_name": "yarick123/pdf-renderer", "path": "src/com/sun/pdfview/pattern/ShaderType2.java", "license": "lgpl-2.1", "size": 11789 }
[ "java.awt.geom.Point2D" ]
import java.awt.geom.Point2D;
import java.awt.geom.*;
[ "java.awt" ]
java.awt;
547,208
public List<Pasta> importPasta() { List<Pasta> importedPastaList = IO.importPasta(); return importPasta(importedPastaList); }
List<Pasta> function() { List<Pasta> importedPastaList = IO.importPasta(); return importPasta(importedPastaList); }
/** * Shows a file choice dialog and imports all Pasta items from file. * * @return The imported pasta, or {@code null} if nothing was imported. */
Shows a file choice dialog and imports all Pasta items from file
importPasta
{ "repo_name": "whisp91/CopyPasta", "path": "src/main/java/model/PastaManager.java", "license": "mit", "size": 16225 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,098,467
LOG.info("test full restore on a single table empty table"); List<TableName> tables = Lists.newArrayList(table1); String backupId = fullTableBackup(tables); assertTrue(checkSucceeded(backupId)); LOG.info("backup complete"); int numRows = TEST_UTIL.countRows(table1); HBaseAdmin hba = TEST_UT...
LOG.info(STR); List<TableName> tables = Lists.newArrayList(table1); String backupId = fullTableBackup(tables); assertTrue(checkSucceeded(backupId)); LOG.info(STR); int numRows = TEST_UTIL.countRows(table1); HBaseAdmin hba = TEST_UTIL.getHBaseAdmin(); try (Table table = TEST_UTIL.getConnection().getTable(table1);) { Del...
/** * Verify that load data- backup - delete some data - restore works as expected - deleted data get * restored. * @throws Exception */
Verify that load data- backup - delete some data - restore works as expected - deleted data get restored
testBackupDeleteRestore
{ "repo_name": "gustavoanatoly/hbase", "path": "hbase-server/src/test/java/org/apache/hadoop/hbase/backup/TestBackupDeleteRestore.java", "license": "apache-2.0", "size": 2823 }
[ "java.util.List", "org.apache.hadoop.hbase.TableName", "org.apache.hadoop.hbase.backup.util.BackupUtils", "org.apache.hadoop.hbase.client.Delete", "org.apache.hadoop.hbase.client.HBaseAdmin", "org.apache.hadoop.hbase.client.Table", "org.apache.hadoop.hbase.shaded.com.google.common.collect.Lists", "org...
import java.util.List; import org.apache.hadoop.hbase.TableName; import org.apache.hadoop.hbase.backup.util.BackupUtils; import org.apache.hadoop.hbase.client.Delete; import org.apache.hadoop.hbase.client.HBaseAdmin; import org.apache.hadoop.hbase.client.Table; import org.apache.hadoop.hbase.shaded.com.google.common.co...
import java.util.*; import org.apache.hadoop.hbase.*; import org.apache.hadoop.hbase.backup.util.*; import org.apache.hadoop.hbase.client.*; import org.apache.hadoop.hbase.shaded.com.google.common.collect.*; import org.junit.*;
[ "java.util", "org.apache.hadoop", "org.junit" ]
java.util; org.apache.hadoop; org.junit;
1,304,370
public static List<String> removeDuplicateWithOrder(List<String> arlList) { Set set = new HashSet(); List newList = new ArrayList(); for (Iterator iter = arlList.iterator(); iter.hasNext();) { Object element = iter.next(); if (set.add(element)) { newList.add(element); } } arlList.clear(); ar...
static List<String> function(List<String> arlList) { Set set = new HashSet(); List newList = new ArrayList(); for (Iterator iter = arlList.iterator(); iter.hasNext();) { Object element = iter.next(); if (set.add(element)) { newList.add(element); } } arlList.clear(); arlList.addAll(newList); return arlList; }
/** * Removes the duplicate with order. * * @param arlList the arl list * @return the list */
Removes the duplicate with order
removeDuplicateWithOrder
{ "repo_name": "WSO2Telco/component-dep", "path": "components/reporting-service/src/main/java/com/wso2telco/dep/reportingservice/northbound/NbHostObjectUtils.java", "license": "apache-2.0", "size": 117356 }
[ "java.util.ArrayList", "java.util.HashSet", "java.util.Iterator", "java.util.List", "java.util.Set" ]
import java.util.ArrayList; import java.util.HashSet; import java.util.Iterator; import java.util.List; import java.util.Set;
import java.util.*;
[ "java.util" ]
java.util;
2,051,653
public void setViewportView(Component view) { if (!(view instanceof RTextArea)) { throw new IllegalArgumentException("view must be an RTextArea"); } super.setViewportView(view); textArea = (RTextArea)view; if (gutter!=null) { gutter.setTextArea(textArea); } }
void function(Component view) { if (!(view instanceof RTextArea)) { throw new IllegalArgumentException(STR); } super.setViewportView(view); textArea = (RTextArea)view; if (gutter!=null) { gutter.setTextArea(textArea); } }
/** * Sets the view for this scroll pane. This must be an {@link RTextArea}. * * @param view The new view. * @see #getTextArea() */
Sets the view for this scroll pane. This must be an <code>RTextArea</code>
setViewportView
{ "repo_name": "Nanonid/RSyntaxTextArea", "path": "src/org/fife/ui/rtextarea/RTextScrollPane.java", "license": "bsd-3-clause", "size": 6442 }
[ "java.awt.Component" ]
import java.awt.Component;
import java.awt.*;
[ "java.awt" ]
java.awt;
2,469,757
private boolean compressSymbols( File zipfile, SymbolLibrary lib, String type ) { if ( lib == null ) return false; if ( ! (TDFile.getPrivateDir( type )).exists() ) return false; // TDLog.v( "ZIP symbols zip " + zipfile.getPath() ); List< Symbol > symbols = lib.getSymbols(); ZipOutputStream zos =...
boolean function( File zipfile, SymbolLibrary lib, String type ) { if ( lib == null ) return false; if ( ! (TDFile.getPrivateDir( type )).exists() ) return false; List< Symbol > symbols = lib.getSymbols(); ZipOutputStream zos = null; try { zos = new ZipOutputStream( new BufferedOutputStream( new FileOutputStream( zipfi...
/** compress symbol files * @param zipfile compressed zip file * @param lib symbol library * @param type symbols type * @return true if successful */
compress symbol files
compressSymbols
{ "repo_name": "marcocorvi/topodroid", "path": "src/com/topodroid/DistoX/Archiver.java", "license": "gpl-3.0", "size": 30391 }
[ "com.topodroid.utils.TDFile", "com.topodroid.utils.TDLog", "java.io.BufferedOutputStream", "java.io.File", "java.io.FileNotFoundException", "java.io.FileOutputStream", "java.io.IOException", "java.util.List", "java.util.zip.ZipOutputStream" ]
import com.topodroid.utils.TDFile; import com.topodroid.utils.TDLog; import java.io.BufferedOutputStream; import java.io.File; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.util.List; import java.util.zip.ZipOutputStream;
import com.topodroid.utils.*; import java.io.*; import java.util.*; import java.util.zip.*;
[ "com.topodroid.utils", "java.io", "java.util" ]
com.topodroid.utils; java.io; java.util;
1,392,624
Message getMessage(final Event jcrEvent, final javax.jms.Session jmsSession) throws JMSException;
Message getMessage(final Event jcrEvent, final javax.jms.Session jmsSession) throws JMSException;
/** * Produce a JMS message from a JCR event with the * given session * * @param jcrEvent the jcr event * @param jmsSession the jms session * @return JMS message created from a JCR event * @throws JMSException if JMS exception occurred */
Produce a JMS message from a JCR event with the given session
getMessage
{ "repo_name": "fcrepo4/fcrepo4", "path": "fcrepo-jms/src/main/java/org/fcrepo/jms/JMSEventMessageFactory.java", "license": "apache-2.0", "size": 1421 }
[ "javax.jms.JMSException", "javax.jms.Message", "org.fcrepo.kernel.api.observer.Event" ]
import javax.jms.JMSException; import javax.jms.Message; import org.fcrepo.kernel.api.observer.Event;
import javax.jms.*; import org.fcrepo.kernel.api.observer.*;
[ "javax.jms", "org.fcrepo.kernel" ]
javax.jms; org.fcrepo.kernel;
2,360,637
private void setAccessControlHeaders(HttpServletResponse response) { response.setHeader("Access-Control-Allow-Origin", "*"); // Real safe. response.setHeader("Access-Control-Allow-Methods", "DELETE,GET,HEAD,POST"); response.setHeader("Access-Control-Allow-Headers", "Accept,Content-Type"); }
void function(HttpServletResponse response) { response.setHeader(STR, "*"); response.setHeader(STR, STR); response.setHeader(STR, STR); }
/** * Sets access control headers to allow cross-origin resource sharing from * any origin. * * @param response The response to modify. * @see <a href="http://www.w3.org/TR/cors/">http://www.w3.org/TR/cors/</a> */
Sets access control headers to allow cross-origin resource sharing from any origin
setAccessControlHeaders
{ "repo_name": "joshbruning/selenium", "path": "java/server/src/org/openqa/selenium/remote/server/WebDriverServlet.java", "license": "apache-2.0", "size": 9743 }
[ "javax.servlet.http.HttpServletResponse" ]
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.*;
[ "javax.servlet" ]
javax.servlet;
2,901,913
public DataNode setDistanceScalar(double distance);
DataNode function(double distance);
/** * Translation of the sample along the Z-direction of the laboratory coordinate system * <p> * <b>Type:</b> NX_FLOAT * <b>Units:</b> NX_LENGTH * </p> * * @param distance the distance */
Translation of the sample along the Z-direction of the laboratory coordinate system Type: NX_FLOAT Units: NX_LENGTH
setDistanceScalar
{ "repo_name": "jamesmudd/dawnsci", "path": "org.eclipse.dawnsci.nexus/autogen/org/eclipse/dawnsci/nexus/NXsample.java", "license": "epl-1.0", "size": 48938 }
[ "org.eclipse.dawnsci.analysis.api.tree.DataNode" ]
import org.eclipse.dawnsci.analysis.api.tree.DataNode;
import org.eclipse.dawnsci.analysis.api.tree.*;
[ "org.eclipse.dawnsci" ]
org.eclipse.dawnsci;
2,574,813
public void flushBytes() throws IOException { bb.flushBuffer(); }
void function() throws IOException { bb.flushBuffer(); }
/** * Real write - this buffer will be sent to the client */
Real write - this buffer will be sent to the client
flushBytes
{ "repo_name": "plumer/codana", "path": "tomcat_files/6.0.0/OutputBuffer.java", "license": "mit", "size": 12609 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
2,117,401
@Test public void testHexToInt() { final String src = "CDF1F0C10F12345678"; assertEquals(0x00000000, Conversion.hexToInt(src, 0, 0, 0, 0)); assertEquals(0x0000000C, Conversion.hexToInt(src, 0, 0, 0, 1)); assertEquals(0x1C0F1FDC, Conversion.hexToInt(src, 0, 0, 0, 8)); asse...
void function() { final String src = STR; assertEquals(0x00000000, Conversion.hexToInt(src, 0, 0, 0, 0)); assertEquals(0x0000000C, Conversion.hexToInt(src, 0, 0, 0, 1)); assertEquals(0x1C0F1FDC, Conversion.hexToInt(src, 0, 0, 0, 8)); assertEquals(0x01C0F1FD, Conversion.hexToInt(src, 1, 0, 0, 8)); assertEquals(0x1234567...
/** * Tests {@link Conversion#hexToInt(String, int, int, int, int)}. */
Tests <code>Conversion#hexToInt(String, int, int, int, int)</code>
testHexToInt
{ "repo_name": "MuShiiii/commons-lang", "path": "src/test/java/org/apache/commons/lang3/ConversionTest.java", "license": "apache-2.0", "size": 100581 }
[ "org.junit.Assert" ]
import org.junit.Assert;
import org.junit.*;
[ "org.junit" ]
org.junit;
1,676,844
@Test public void test1XSLHomeCreate() throws Exception { SLRa ejb1 = fhome1.create(); assertNotNull("Create EJB was null.", ejb1); ejb1.remove(); }
void function() throws Exception { SLRa ejb1 = fhome1.create(); assertNotNull(STR, ejb1); ejb1.remove(); }
/** * (hcs01) Test Stateless remote home create (no parameters) */
(hcs01) Test Stateless remote home create (no parameters)
test1XSLHomeCreate
{ "repo_name": "kgibm/open-liberty", "path": "dev/com.ibm.ws.ejbcontainer.legacy_fat/test-applications/EJB1XRemoteSpecWeb.war/src/com/ibm/ejb1x/base/spec/slr/web/SLRemoteHomeCreateServlet.java", "license": "epl-1.0", "size": 3859 }
[ "com.ibm.ejb1x.base.spec.slr.ejb.SLRa", "org.junit.Assert" ]
import com.ibm.ejb1x.base.spec.slr.ejb.SLRa; import org.junit.Assert;
import com.ibm.ejb1x.base.spec.slr.ejb.*; import org.junit.*;
[ "com.ibm.ejb1x", "org.junit" ]
com.ibm.ejb1x; org.junit;
2,423,113
protected void setupRequest(URL url, HttpRequestBase httpRequest, HTTPSampleResult res) throws IOException { RequestConfig.Builder rCB = RequestConfig.custom(); // Set up the local address if one exists final InetAddress inetAddr = getIpSourceAddress(); if (inetAddr != null) ...
void function(URL url, HttpRequestBase httpRequest, HTTPSampleResult res) throws IOException { RequestConfig.Builder rCB = RequestConfig.custom(); final InetAddress inetAddr = getIpSourceAddress(); if (inetAddr != null) { rCB.setLocalAddress(inetAddr); } else if (localAddress != null){ rCB.setLocalAddress(localAddress)...
/** * Setup following elements on httpRequest: * <ul> * <li>ConnRoutePNames.LOCAL_ADDRESS enabling IP-SPOOFING</li> * <li>Socket and connection timeout</li> * <li>Redirect handling</li> * <li>Keep Alive header or Connection Close</li> * <li>Calls setConnectionHeaders to setup headers<...
Setup following elements on httpRequest: ConnRoutePNames.LOCAL_ADDRESS enabling IP-SPOOFING Socket and connection timeout Redirect handling Keep Alive header or Connection Close Calls setConnectionHeaders to setup headers Calls setConnectionCookie to setup Cookie
setupRequest
{ "repo_name": "etnetera/jmeter", "path": "src/protocol/http/src/main/java/org/apache/jmeter/protocol/http/sampler/HTTPHC4Impl.java", "license": "apache-2.0", "size": 88525 }
[ "java.io.IOException", "java.net.InetAddress", "org.apache.http.client.config.RequestConfig", "org.apache.http.client.methods.HttpRequestBase", "org.apache.jmeter.protocol.http.util.HTTPConstants" ]
import java.io.IOException; import java.net.InetAddress; import org.apache.http.client.config.RequestConfig; import org.apache.http.client.methods.HttpRequestBase; import org.apache.jmeter.protocol.http.util.HTTPConstants;
import java.io.*; import java.net.*; import org.apache.http.client.config.*; import org.apache.http.client.methods.*; import org.apache.jmeter.protocol.http.util.*;
[ "java.io", "java.net", "org.apache.http", "org.apache.jmeter" ]
java.io; java.net; org.apache.http; org.apache.jmeter;
1,912,933
public ItemStack[] getInventory() { return null; } public void setCurrentItemOrArmor(int slotIn, ItemStack itemStackIn) {}
ItemStack[] function() { return null; } public void setCurrentItemOrArmor(int slotIn, ItemStack itemStackIn) {}
/** * returns the inventory of this entity (only used in EntityPlayerMP it seems) */
returns the inventory of this entity (only used in EntityPlayerMP it seems)
getInventory
{ "repo_name": "Hexeption/Youtube-Hacked-Client-1.8", "path": "minecraft/net/minecraft/entity/Entity.java", "license": "mit", "size": 86467 }
[ "net.minecraft.item.ItemStack" ]
import net.minecraft.item.ItemStack;
import net.minecraft.item.*;
[ "net.minecraft.item" ]
net.minecraft.item;
2,747,856
public static <V> ZooKeeperMap<V> create( ZooKeeperClient zkClient, String nodePath, Function<byte[], V> deserializer, Listener<V> listener) throws InterruptedException, KeeperException, ZooKeeperConnectionException { ZooKeeperMap<V> zkMap = new ZooKeeperMap<V>(zkClient, nodePath, d...
static <V> ZooKeeperMap<V> function( ZooKeeperClient zkClient, String nodePath, Function<byte[], V> deserializer, Listener<V> listener) throws InterruptedException, KeeperException, ZooKeeperConnectionException { ZooKeeperMap<V> zkMap = new ZooKeeperMap<V>(zkClient, nodePath, deserializer, listener); zkMap.init(); retu...
/** * Returns an initialized ZooKeeperMap. The given path must exist at the time of * creation or a {@link KeeperException} will be thrown. * * @param zkClient a zookeeper client * @param nodePath path to a node whose data will be watched * @param deserializer a function that converts byte[] data fro...
Returns an initialized ZooKeeperMap. The given path must exist at the time of creation or a <code>KeeperException</code> will be thrown
create
{ "repo_name": "Yasumoto/commons", "path": "src/java/com/twitter/common/zookeeper/ZooKeeperMap.java", "license": "apache-2.0", "size": 15552 }
[ "com.google.common.base.Function", "com.twitter.common.zookeeper.ZooKeeperClient", "org.apache.zookeeper.KeeperException" ]
import com.google.common.base.Function; import com.twitter.common.zookeeper.ZooKeeperClient; import org.apache.zookeeper.KeeperException;
import com.google.common.base.*; import com.twitter.common.zookeeper.*; import org.apache.zookeeper.*;
[ "com.google.common", "com.twitter.common", "org.apache.zookeeper" ]
com.google.common; com.twitter.common; org.apache.zookeeper;
1,331,743
@FIXVersion(introduced="4.2") @TagNumRef(tagNum=TagNum.TradSesStatus, required=true) public void setTradSesStatus(TradSesStatus tradSesStatus) { this.tradSesStatus = tradSesStatus; }
@FIXVersion(introduced="4.2") @TagNumRef(tagNum=TagNum.TradSesStatus, required=true) void function(TradSesStatus tradSesStatus) { this.tradSesStatus = tradSesStatus; }
/** * Message field setter. * @param tradSesStatus field value */
Message field setter
setTradSesStatus
{ "repo_name": "marvisan/HadesFIX", "path": "Model/src/main/java/net/hades/fix/message/TradingSessionStatusMsg.java", "license": "gpl-3.0", "size": 30000 }
[ "net.hades.fix.message.anno.FIXVersion", "net.hades.fix.message.anno.TagNumRef", "net.hades.fix.message.type.TagNum", "net.hades.fix.message.type.TradSesStatus" ]
import net.hades.fix.message.anno.FIXVersion; import net.hades.fix.message.anno.TagNumRef; import net.hades.fix.message.type.TagNum; import net.hades.fix.message.type.TradSesStatus;
import net.hades.fix.message.anno.*; import net.hades.fix.message.type.*;
[ "net.hades.fix" ]
net.hades.fix;
1,701,168
String application = getApplication(request); if (application == null) { log.warn("ContextSensitiveHelpMappingServlet could not handle request. URL = " + request.getRequestURI()); //$NON-NLS-1$ return; } String manualPath = getManualDir(getServletConfig()); ...
String application = getApplication(request); if (application == null) { log.warn(STR + request.getRequestURI()); return; } String manualPath = getManualDir(getServletConfig()); List<String> locales = getLocales(new File(manualPath)); ObjectNode appCsh = mapper.createObjectNode(); for (String locale : locales) { File c...
/** * Respond to a GET request for the CSH mapping file. See class Javadoc for the algorithm. * * @see javax.servlet.http.HttpServlet#doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) */
Respond to a GET request for the CSH mapping file. See class Javadoc for the algorithm
doGet
{ "repo_name": "OpenUniversity/ovirt-engine", "path": "backend/manager/modules/docs/src/main/java/org/ovirt/engine/docs/utils/servlet/ContextSensitiveHelpMappingServlet.java", "license": "apache-2.0", "size": 9456 }
[ "java.io.File", "java.io.PrintStream", "java.util.List", "org.codehaus.jackson.JsonNode", "org.codehaus.jackson.node.ObjectNode" ]
import java.io.File; import java.io.PrintStream; import java.util.List; import org.codehaus.jackson.JsonNode; import org.codehaus.jackson.node.ObjectNode;
import java.io.*; import java.util.*; import org.codehaus.jackson.*; import org.codehaus.jackson.node.*;
[ "java.io", "java.util", "org.codehaus.jackson" ]
java.io; java.util; org.codehaus.jackson;
1,184,894
@Test public void testStubsOverwriteAndRelayExpectations() { Story story = Story.create(new Scenario() { { expect(joe).ping(aNonNullOf(Dalton.class), anyOf(String.class), anyOf(String.class)); willReturn(1); expect(jack).ping(...
void function() { Story story = Story.create(new Scenario() { { expect(joe).ping(aNonNullOf(Dalton.class), anyOf(String.class), anyOf(String.class)); willReturn(1); expect(jack).ping(); willReturn(2); } }, new Stubs() { { stub(joe).ping(with(jack), with(STR), anyOf(String.class)); willReturn(0); } }); story.begin(); as...
/** * Verifies that stubs prevail on expectations and relays to expectations if * no stub was found. */
Verifies that stubs prevail on expectations and relays to expectations if no stub was found
testStubsOverwriteAndRelayExpectations
{ "repo_name": "vmware/lmock", "path": "tests/com/vmware/lmock/test/StubTest.java", "license": "apache-2.0", "size": 8451 }
[ "com.vmware.lmock.impl.Scenario", "com.vmware.lmock.impl.Story", "com.vmware.lmock.impl.Stubs", "org.junit.Assert" ]
import com.vmware.lmock.impl.Scenario; import com.vmware.lmock.impl.Story; import com.vmware.lmock.impl.Stubs; import org.junit.Assert;
import com.vmware.lmock.impl.*; import org.junit.*;
[ "com.vmware.lmock", "org.junit" ]
com.vmware.lmock; org.junit;
265,251
private Object readResolve() throws ObjectStreamException { return VALUES[ordinal]; }
Object function() throws ObjectStreamException { return VALUES[ordinal]; }
/** * Used by built-in serialization. * * @return the unserialized object. * @throws ObjectStreamException */
Used by built-in serialization
readResolve
{ "repo_name": "eurekaclinical/protempa", "path": "protempa-framework/src/main/java/org/protempa/proposition/value/RelativeHourUnit.java", "license": "apache-2.0", "size": 3319 }
[ "java.io.ObjectStreamException" ]
import java.io.ObjectStreamException;
import java.io.*;
[ "java.io" ]
java.io;
2,346,334
public SearchContext updateRewriteQuery(Query rewriteQuery) { query = rewriteQuery; queryRewritten = true; return this; }
SearchContext function(Query rewriteQuery) { query = rewriteQuery; queryRewritten = true; return this; }
/** * Rewrites the query and updates it. Only happens once. */
Rewrites the query and updates it. Only happens once
updateRewriteQuery
{ "repo_name": "zuoyebushiwo/elasticsearch-1.5.0", "path": "src/main/java/org/elasticsearch/search/internal/DefaultSearchContext.java", "license": "apache-2.0", "size": 21260 }
[ "org.apache.lucene.search.Query" ]
import org.apache.lucene.search.Query;
import org.apache.lucene.search.*;
[ "org.apache.lucene" ]
org.apache.lucene;
2,806,660
int updateByExample(@Param("record") MappingStockBk record, @Param("example") MappingStockBkExample example);
int updateByExample(@Param(STR) MappingStockBk record, @Param(STR) MappingStockBkExample example);
/** * This method was generated by MyBatis Generator. * This method corresponds to the database table mapping_stock_bk * * @mbggenerated */
This method was generated by MyBatis Generator. This method corresponds to the database table mapping_stock_bk
updateByExample
{ "repo_name": "gubaijin/gplucky", "path": "common/src/main/java/com/gplucky/mybatis/dao/MappingStockBkMapper.java", "license": "apache-2.0", "size": 2828 }
[ "com.gplucky.mybatis.model.MappingStockBk", "com.gplucky.mybatis.model.MappingStockBkExample", "org.apache.ibatis.annotations.Param" ]
import com.gplucky.mybatis.model.MappingStockBk; import com.gplucky.mybatis.model.MappingStockBkExample; import org.apache.ibatis.annotations.Param;
import com.gplucky.mybatis.model.*; import org.apache.ibatis.annotations.*;
[ "com.gplucky.mybatis", "org.apache.ibatis" ]
com.gplucky.mybatis; org.apache.ibatis;
2,374,408
public final IModel<String> getChallengeIdModel() { return challengeId; }
final IModel<String> function() { return challengeId; }
/** * Gets the id for the challenge * * @return The id for the challenge */
Gets the id for the challenge
getChallengeIdModel
{ "repo_name": "mosoft521/wicket", "path": "wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/captcha/CaptchaImageResource.java", "license": "apache-2.0", "size": 11576 }
[ "org.apache.wicket.model.IModel" ]
import org.apache.wicket.model.IModel;
import org.apache.wicket.model.*;
[ "org.apache.wicket" ]
org.apache.wicket;
2,021,017
public void fuelFlight() { boolean flag = this.isClientAirshipBurning(); boolean flag1 = false; //Syncs the server info to the client if(this.world.isRemote) { this.airshipBurnTime = this.getPowered(); this.airshipTotalBurnTime = this.getTotalPowered(...
void function() { boolean flag = this.isClientAirshipBurning(); boolean flag1 = false; if(this.world.isRemote) { this.airshipBurnTime = this.getPowered(); this.airshipTotalBurnTime = this.getTotalPowered(); } if (this.isClientAirshipBurning()) { if(this.getModuleFuelInfinite()) { } else { this.airshipBurnTime = this.ai...
/** * Core fuel logic responsible for flight. */
Core fuel logic responsible for flight
fuelFlight
{ "repo_name": "Weisses/Ebonheart-Mods", "path": "ViesCraft/Archived/zzzsrc/main/java/com/viesis/viescraft/common/entity/airshipcolors/EntityAirshipV1Core.java", "license": "mit", "size": 48880 }
[ "net.minecraft.item.ItemStack" ]
import net.minecraft.item.ItemStack;
import net.minecraft.item.*;
[ "net.minecraft.item" ]
net.minecraft.item;
961,214
public static Future<?> markFeedSeen(final long feedId) { return dbExec.submit(() -> { final PodDBAdapter adapter = PodDBAdapter.getInstance(); adapter.open(); Cursor itemCursor = adapter.getNewItemsIdsCursor(feedId); long[] ids = new long[itemCursor.getCount(...
static Future<?> function(final long feedId) { return dbExec.submit(() -> { final PodDBAdapter adapter = PodDBAdapter.getInstance(); adapter.open(); Cursor itemCursor = adapter.getNewItemsIdsCursor(feedId); long[] ids = new long[itemCursor.getCount()]; itemCursor.moveToFirst(); for (int i = 0; i < ids.length; i++) { id...
/** * Sets the 'read'-attribute of all FeedItems of a specific Feed to true. * * @param feedId ID of the Feed. */
Sets the 'read'-attribute of all FeedItems of a specific Feed to true
markFeedSeen
{ "repo_name": "TomHennen/AntennaPod", "path": "core/src/main/java/de/danoeh/antennapod/core/storage/DBWriter.java", "license": "mit", "size": 42715 }
[ "android.database.Cursor", "de.danoeh.antennapod.core.feed.EventDistributor", "de.danoeh.antennapod.core.feed.FeedItem", "java.util.concurrent.Future" ]
import android.database.Cursor; import de.danoeh.antennapod.core.feed.EventDistributor; import de.danoeh.antennapod.core.feed.FeedItem; import java.util.concurrent.Future;
import android.database.*; import de.danoeh.antennapod.core.feed.*; import java.util.concurrent.*;
[ "android.database", "de.danoeh.antennapod", "java.util" ]
android.database; de.danoeh.antennapod; java.util;
1,775,936
AST ast = null; try { LogicLexer lexer = new LogicLexer(new StringReader(expression)); LogicParser parser = new LogicParser(lexer); Node rootNode; // The root context parser.expr(); ast = parser.getAST(); //new antlr.DumpASTVisi...
AST ast = null; try { LogicLexer lexer = new LogicLexer(new StringReader(expression)); LogicParser parser = new LogicParser(lexer); Node rootNode; parser.expr(); ast = parser.getAST(); if ("or".equals(ast.getText().toLowerCase())) { rootNode = new Or(ast); } else if ("and".equals(ast.getText().toLowerCase())) { rootNod...
/** * Parse a logic expression. * @param expression logic expression */
Parse a logic expression
parse
{ "repo_name": "drhee/toxoMine", "path": "intermine/pathquery/main/src/org/intermine/pathquery/LogicExpression.java", "license": "lgpl-2.1", "size": 20276 }
[ "java.io.StringReader" ]
import java.io.StringReader;
import java.io.*;
[ "java.io" ]
java.io;
804,910
public static Message buildPage(List<String> entries, String title, int pageSize, int pageNumber, int numberStyle, boolean codeBlock, boolean numberedReactions, boolean cancellable, MessageChannel channel, User user) { return buildPage(entries, title, pageSize, pageNumber, numberStyle, codeBlock, numberedReaction...
static Message function(List<String> entries, String title, int pageSize, int pageNumber, int numberStyle, boolean codeBlock, boolean numberedReactions, boolean cancellable, MessageChannel channel, User user) { return buildPage(entries, title, pageSize, pageNumber, numberStyle, codeBlock, numberedReactions, cancellable...
/** * Builds a modular page message for the given parameters * * @param entries An ArrayList<String> that contains all the entries that should be in the page builder * @param title The title to give all the pages * @param pageSize How many entries should be in a specific page ...
Builds a modular page message for the given parameters
buildPage
{ "repo_name": "Vauff/Maunz-Discord", "path": "src/com/vauff/maunzdiscord/core/Util.java", "license": "gpl-3.0", "size": 18185 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
334,141
EList<String> getFacsimileNumbers();
EList<String> getFacsimileNumbers();
/** * Returns the value of the '<em><b>Facsimile Numbers</b></em>' attribute list. * The list contents are of type {@link java.lang.String}. * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Facsimile Numbers</em>' attribute list isn't clear, * there really should be more of a description h...
Returns the value of the 'Facsimile Numbers' attribute list. The list contents are of type <code>java.lang.String</code>. If the meaning of the 'Facsimile Numbers' attribute list isn't clear, there really should be more of a description here...
getFacsimileNumbers
{ "repo_name": "opensourceBIM/BIMserver", "path": "PluginBase/generated/org/bimserver/models/ifc2x3tc1/IfcTelecomAddress.java", "license": "agpl-3.0", "size": 11093 }
[ "org.eclipse.emf.common.util.EList" ]
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.common.util.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
1,254,881
public JPanel getLeftBottomPane() { return this.leftBottomPane; }
JPanel function() { return this.leftBottomPane; }
/** * Method for returning left bottom pane. * @return leftBottomPane as JPanel. */
Method for returning left bottom pane
getLeftBottomPane
{ "repo_name": "ch4rlien/bachelor_thesis", "path": "source/BT/src/GUI/MainContentModel.java", "license": "gpl-2.0", "size": 2986 }
[ "javax.swing.JPanel" ]
import javax.swing.JPanel;
import javax.swing.*;
[ "javax.swing" ]
javax.swing;
927,111
public T addConstraint(Class<? extends Constraint> concept);
T function(Class<? extends Constraint> concept);
/** * Add a constraint to this container - if already added the add will be ignored * @param constraint - constraint class * @return container */
Add a constraint to this container - if already added the add will be ignored
addConstraint
{ "repo_name": "de-jcup/code2doc", "path": "code2doc-core/src/main/java/de/jcup/code2doc/core/define/ElementContainerDefinition.java", "license": "apache-2.0", "size": 3689 }
[ "de.jcup.code2doc.api.Constraint" ]
import de.jcup.code2doc.api.Constraint;
import de.jcup.code2doc.api.*;
[ "de.jcup.code2doc" ]
de.jcup.code2doc;
478,603
@Override public String toString() { return ToStringBuilder.reflectionToString(this, JAXBToStringStyle.DEFAULT_STYLE); }
String function() { return ToStringBuilder.reflectionToString(this, JAXBToStringStyle.DEFAULT_STYLE); }
/** * Generates a String representation of the contents of this type. * This is an extension method, produced by the 'ts' xjc plugin * */
Generates a String representation of the contents of this type. This is an extension method, produced by the 'ts' xjc plugin
toString
{ "repo_name": "fpompermaier/onvif", "path": "onvif-ws-client/src/main/java/org/onvif/ver10/schema/VideoSourceConfiguration.java", "license": "apache-2.0", "size": 5477 }
[ "org.apache.commons.lang3.builder.ToStringBuilder", "org.apache.cxf.xjc.runtime.JAXBToStringStyle" ]
import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.cxf.xjc.runtime.JAXBToStringStyle;
import org.apache.commons.lang3.builder.*; import org.apache.cxf.xjc.runtime.*;
[ "org.apache.commons", "org.apache.cxf" ]
org.apache.commons; org.apache.cxf;
1,602,389
public void setConnectionAutoCommit(Boolean autoCommit) throws SQLException { this.getDBUnitConnection().getConnection().setAutoCommit(autoCommit); }
void function(Boolean autoCommit) throws SQLException { this.getDBUnitConnection().getConnection().setAutoCommit(autoCommit); }
/** * Changes dbunit connection autoCommit * * @param autoCommit * @throws SQLException */
Changes dbunit connection autoCommit
setConnectionAutoCommit
{ "repo_name": "database-rider/database-rider", "path": "rider-core/src/main/java/com/github/database/rider/core/connection/RiderDataSource.java", "license": "apache-2.0", "size": 7529 }
[ "java.sql.SQLException" ]
import java.sql.SQLException;
import java.sql.*;
[ "java.sql" ]
java.sql;
622,211
private static byte[] encodeBytesToBytes( byte[] source ) { byte[] encoded = null; try { encoded = encodeBytesToBytes( source, 0, source.length, Base64.NO_OPTIONS ); } catch( java.io.IOException ex ) { assert false : "IOExceptions only come from GZipping, which is tur...
static byte[] function( byte[] source ) { byte[] encoded = null; try { encoded = encodeBytesToBytes( source, 0, source.length, Base64.NO_OPTIONS ); } catch( java.io.IOException ex ) { assert false : STR + ex.getMessage(); } return encoded; }
/** * Similar to {@link #encodeBytes(byte[])} but returns * a byte array instead of instantiating a String. This is more efficient * if you're working with I/O streams and have large data sets to encode. * * * @param source The data to convert * @return The Base64-encoded data as a by...
Similar to <code>#encodeBytes(byte[])</code> but returns a byte array instead of instantiating a String. This is more efficient if you're working with I/O streams and have large data sets to encode
encodeBytesToBytes
{ "repo_name": "ryanlfoster/httpsig-java", "path": "api/src/main/java/net/adamcin/httpsig/api/Base64.java", "license": "unlicense", "size": 88397 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
2,332,195
public static Class<?> getRawType(Type type, Class<?> implClass) { if (type instanceof Class) { return (Class<?>) type; } if (type instanceof ParameterizedType) { ParameterizedType pType = (ParameterizedType) type; return getRawType(pType.getRawType(...
static Class<?> function(Type type, Class<?> implClass) { if (type instanceof Class) { return (Class<?>) type; } if (type instanceof ParameterizedType) { ParameterizedType pType = (ParameterizedType) type; return getRawType(pType.getRawType(), implClass); } if (type instanceof WildcardType) { WildcardType wType = (Wild...
/** * Returns raw class for given <code>type</code> when implementation class is known * and it makes difference. * @see #resolveVariable(java.lang.reflect.TypeVariable, Class) */
Returns raw class for given <code>type</code> when implementation class is known and it makes difference
getRawType
{ "repo_name": "langhsu/stone-mvc", "path": "src/main/java/stone/mvc/result/TypeResolverUtils.java", "license": "apache-2.0", "size": 4774 }
[ "java.lang.reflect.Array", "java.lang.reflect.GenericArrayType", "java.lang.reflect.ParameterizedType", "java.lang.reflect.Type", "java.lang.reflect.TypeVariable", "java.lang.reflect.WildcardType" ]
import java.lang.reflect.Array; import java.lang.reflect.GenericArrayType; import java.lang.reflect.ParameterizedType; import java.lang.reflect.Type; import java.lang.reflect.TypeVariable; import java.lang.reflect.WildcardType;
import java.lang.reflect.*;
[ "java.lang" ]
java.lang;
1,543,470
public Observable<ServiceResponse<Page<DomainTopicInner>>> listByDomainSinglePageAsync(final String resourceGroupName, final String domainName) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null....
Observable<ServiceResponse<Page<DomainTopicInner>>> function(final String resourceGroupName, final String domainName) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException(STR); } if (resourceGroupName == null) { throw new IllegalArgumentException(STR); } if (domainName == null) { throw new I...
/** * List domain topics. * List all the topics in a domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Domain name. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the PagedList...
List domain topics. List all the topics in a domain
listByDomainSinglePageAsync
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/eventgrid/mgmt-v2020_06_01/src/main/java/com/microsoft/azure/management/eventgrid/v2020_06_01/implementation/DomainTopicsInner.java", "license": "mit", "size": 55458 }
[ "com.microsoft.azure.Page", "com.microsoft.rest.ServiceResponse" ]
import com.microsoft.azure.Page; import com.microsoft.rest.ServiceResponse;
import com.microsoft.azure.*; import com.microsoft.rest.*;
[ "com.microsoft.azure", "com.microsoft.rest" ]
com.microsoft.azure; com.microsoft.rest;
2,633,285
public SnapshotDiffReport diff(final INodesInPath iip, final String snapshotRootPath, final String from, final String to) throws IOException { // Find the source root directory path where the snapshots were taken. // All the check for path has been included in the valueOf method. final INodeDi...
SnapshotDiffReport function(final INodesInPath iip, final String snapshotRootPath, final String from, final String to) throws IOException { final INodeDirectory snapshotRoot = getSnapshottableRoot(iip); if ((from == null from.isEmpty()) && (to == null to.isEmpty())) { return new SnapshotDiffReport(snapshotRootPath, fro...
/** * Compute the difference between two snapshots of a directory, or between a * snapshot of the directory and its current tree. */
Compute the difference between two snapshots of a directory, or between a snapshot of the directory and its current tree
diff
{ "repo_name": "oza/hadoop", "path": "hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/snapshot/SnapshotManager.java", "license": "apache-2.0", "size": 15952 }
[ "java.io.IOException", "java.util.Collections", "org.apache.hadoop.hdfs.protocol.SnapshotDiffReport", "org.apache.hadoop.hdfs.server.namenode.INodeDirectory", "org.apache.hadoop.hdfs.server.namenode.INodesInPath" ]
import java.io.IOException; import java.util.Collections; import org.apache.hadoop.hdfs.protocol.SnapshotDiffReport; import org.apache.hadoop.hdfs.server.namenode.INodeDirectory; import org.apache.hadoop.hdfs.server.namenode.INodesInPath;
import java.io.*; import java.util.*; import org.apache.hadoop.hdfs.protocol.*; import org.apache.hadoop.hdfs.server.namenode.*;
[ "java.io", "java.util", "org.apache.hadoop" ]
java.io; java.util; org.apache.hadoop;
1,524,017
private void testStatus(String testPageName, TestProject testProject, String testCaseName, String status) throws SystemException { String statusInfo; String[] statusLines; statusInfo = teamService.getStatus(testProject, translationService); statusLines = statusInfo.split("\n"); for (String line : ...
void function(String testPageName, TestProject testProject, String testCaseName, String status) throws SystemException { String statusInfo; String[] statusLines; statusInfo = teamService.getStatus(testProject, translationService); statusLines = statusInfo.split("\n"); for (String line : statusLines) { if (line.contains...
/** * test the svn-status of a teststructure. * * @param testPageName * the name of the parentPage * @param testProject * the TestProject * @param testCaseName * the name of the testcase * @param status * the status as string * @throws System...
test the svn-status of a teststructure
testStatus
{ "repo_name": "franzbecker/test-editor", "path": "svn/org.testeditor.teamshare.svn.test/src/org/testeditor/teamshare/svn/SVNTeamShareServiceLocalTest.java", "license": "epl-1.0", "size": 40826 }
[ "org.junit.Assert", "org.junit.Test", "org.testeditor.core.exceptions.SystemException", "org.testeditor.core.model.teststructure.TestProject", "org.testeditor.core.model.teststructure.TestSuite" ]
import org.junit.Assert; import org.junit.Test; import org.testeditor.core.exceptions.SystemException; import org.testeditor.core.model.teststructure.TestProject; import org.testeditor.core.model.teststructure.TestSuite;
import org.junit.*; import org.testeditor.core.exceptions.*; import org.testeditor.core.model.teststructure.*;
[ "org.junit", "org.testeditor.core" ]
org.junit; org.testeditor.core;
1,235,769
@Override public final void walkRelativeFileTree( Path path, EnumSet<FileVisitOption> visitOptions, FileVisitor<Path> fileVisitor) throws IOException { if (!isDirectory(path)) { fileVisitor.visitFile(path, DEFAULT_FILE_ATTRIBUTES); return; } ImmutableCollection<Path> ents...
final void function( Path path, EnumSet<FileVisitOption> visitOptions, FileVisitor<Path> fileVisitor) throws IOException { if (!isDirectory(path)) { fileVisitor.visitFile(path, DEFAULT_FILE_ATTRIBUTES); return; } ImmutableCollection<Path> ents = getDirectoryContents(path); for (Path ent : ents) { if (!isDirectory(ent))...
/** * TODO(natthu): (1) Also traverse the directories. (2) Do not ignore return value of * {@code fileVisitor}. */
TODO(natthu): (1) Also traverse the directories. (2) Do not ignore return value of fileVisitor
walkRelativeFileTree
{ "repo_name": "sdwilsh/buck", "path": "test/com/facebook/buck/testutil/FakeProjectFilesystem.java", "license": "apache-2.0", "size": 26044 }
[ "com.google.common.collect.ImmutableCollection", "java.io.IOException", "java.nio.file.FileVisitOption", "java.nio.file.FileVisitResult", "java.nio.file.FileVisitor", "java.nio.file.Path", "java.util.EnumSet" ]
import com.google.common.collect.ImmutableCollection; import java.io.IOException; import java.nio.file.FileVisitOption; import java.nio.file.FileVisitResult; import java.nio.file.FileVisitor; import java.nio.file.Path; import java.util.EnumSet;
import com.google.common.collect.*; import java.io.*; import java.nio.file.*; import java.util.*;
[ "com.google.common", "java.io", "java.nio", "java.util" ]
com.google.common; java.io; java.nio; java.util;
1,321,420
@Override protected boolean enable(Node[] arr) { if ((arr == null) || (arr.length == 0)) { return false; } for (Node arr1 : arr) { DataObject dataObject = (DataObject) arr1.getCookie(DataObject.class); //Action is disabled for root folder eg:"...
boolean function(Node[] arr) { if ((arr == null) (arr.length == 0)) { return false; } for (Node arr1 : arr) { DataObject dataObject = (DataObject) arr1.getCookie(DataObject.class); if (dataObject == null) { return false; } final FileObject fo = dataObject.getPrimaryFile(); if (fo != null) { File file = FileUtil.toFile(...
/** * Check if this action shall be enabled for the selected nodes * * @param arr the selected nodes * @return boolean true if this action shall be enabled, else false */
Check if this action shall be enabled for the selected nodes
enable
{ "repo_name": "bernhardhuber/netbeansplugins", "path": "nb-gzip/src/org/huberb/nbgzip/GzipNodeAction.java", "license": "apache-2.0", "size": 7057 }
[ "java.io.File", "org.openide.filesystems.FileObject", "org.openide.filesystems.FileStateInvalidException", "org.openide.filesystems.FileUtil", "org.openide.loaders.DataObject", "org.openide.nodes.Node" ]
import java.io.File; import org.openide.filesystems.FileObject; import org.openide.filesystems.FileStateInvalidException; import org.openide.filesystems.FileUtil; import org.openide.loaders.DataObject; import org.openide.nodes.Node;
import java.io.*; import org.openide.filesystems.*; import org.openide.loaders.*; import org.openide.nodes.*;
[ "java.io", "org.openide.filesystems", "org.openide.loaders", "org.openide.nodes" ]
java.io; org.openide.filesystems; org.openide.loaders; org.openide.nodes;
2,116,120
public static BigdataGraph create(final BlueprintsValueFactory vf, final Properties props) throws Exception { final BigdataSail sail = BigdataSailFactory.createSail(); sail.initialize(); return new BigdataGraphEmbedded(sail, vf, props); } // // public static Bigd...
static BigdataGraph function(final BlueprintsValueFactory vf, final Properties props) throws Exception { final BigdataSail sail = BigdataSailFactory.createSail(); sail.initialize(); return new BigdataGraphEmbedded(sail, vf, props); }
/** * Create a new local in-memory bigdata instance with the supplied value * factory. */
Create a new local in-memory bigdata instance with the supplied value factory
create
{ "repo_name": "smalyshev/blazegraph", "path": "bigdata-blueprints/src/java/com/bigdata/blueprints/BigdataGraphFactory.java", "license": "gpl-2.0", "size": 4253 }
[ "com.bigdata.rdf.sail.BigdataSail", "com.bigdata.rdf.sail.remote.BigdataSailFactory", "java.util.Properties" ]
import com.bigdata.rdf.sail.BigdataSail; import com.bigdata.rdf.sail.remote.BigdataSailFactory; import java.util.Properties;
import com.bigdata.rdf.sail.*; import com.bigdata.rdf.sail.remote.*; import java.util.*;
[ "com.bigdata.rdf", "java.util" ]
com.bigdata.rdf; java.util;
594,476
public static ExtensionDescription getDefaultDescription(boolean required, boolean repeatable) { ExtensionDescription desc = ExtensionDescription.getDefaultDescription(UserDefinedField.class); desc.setRequired(required); desc.setRepeatable(repeatable); return desc; }
static ExtensionDescription function(boolean required, boolean repeatable) { ExtensionDescription desc = ExtensionDescription.getDefaultDescription(UserDefinedField.class); desc.setRequired(required); desc.setRepeatable(repeatable); return desc; }
/** * Returns the extension description, specifying whether it is required, and * whether it is repeatable. * * @param required whether it is required * @param repeatable whether it is repeatable * @return extension description */
Returns the extension description, specifying whether it is required, and whether it is repeatable
getDefaultDescription
{ "repo_name": "elhoim/gdata-client-java", "path": "java/src/com/google/gdata/data/contacts/UserDefinedField.java", "license": "apache-2.0", "size": 4426 }
[ "com.google.gdata.data.ExtensionDescription" ]
import com.google.gdata.data.ExtensionDescription;
import com.google.gdata.data.*;
[ "com.google.gdata" ]
com.google.gdata;
2,345,400
Map<String, Service> getServices();
Map<String, Service> getServices();
/** * Gets an immutable map of service ticket and services accessed by this ticket-granting ticket. * * @return an immutable map of service ticket and services accessed by this ticket-granting ticket. */
Gets an immutable map of service ticket and services accessed by this ticket-granting ticket
getServices
{ "repo_name": "zion64/cas-private", "path": "cas-server-core/src/main/java/org/jasig/cas/ticket/TicketGrantingTicket.java", "license": "apache-2.0", "size": 3731 }
[ "java.util.Map", "org.jasig.cas.authentication.principal.Service" ]
import java.util.Map; import org.jasig.cas.authentication.principal.Service;
import java.util.*; import org.jasig.cas.authentication.principal.*;
[ "java.util", "org.jasig.cas" ]
java.util; org.jasig.cas;
2,719,374
public AccountingLine getAccountingLineForValidation() { return accountingLineForValidation; }
AccountingLine function() { return accountingLineForValidation; }
/** * Gets the accountingLineForValidation attribute. * @return Returns the accountingLineForValidation. */
Gets the accountingLineForValidation attribute
getAccountingLineForValidation
{ "repo_name": "ua-eas/ua-kfs-5.3", "path": "work/src/org/kuali/kfs/fp/document/validation/impl/PreEncumbranceRequiredReferenceFieldValidation.java", "license": "agpl-3.0", "size": 3957 }
[ "org.kuali.kfs.sys.businessobject.AccountingLine" ]
import org.kuali.kfs.sys.businessobject.AccountingLine;
import org.kuali.kfs.sys.businessobject.*;
[ "org.kuali.kfs" ]
org.kuali.kfs;
2,498,581
void onCampaignStart(AccessCertificationCampaignType campaign, Task task, OperationResult result);
void onCampaignStart(AccessCertificationCampaignType campaign, Task task, OperationResult result);
/** * This method is called by certification module when a certification campaign starts. * @param campaign TODO * @param task * @param result implementer should report its result here */
This method is called by certification module when a certification campaign starts
onCampaignStart
{ "repo_name": "gureronder/midpoint", "path": "model/certification-api/src/main/java/com/evolveum/midpoint/certification/api/AccessCertificationEventListener.java", "license": "apache-2.0", "size": 5067 }
[ "com.evolveum.midpoint.schema.result.OperationResult", "com.evolveum.midpoint.task.api.Task", "com.evolveum.midpoint.xml.ns._public.common.common_3.AccessCertificationCampaignType" ]
import com.evolveum.midpoint.schema.result.OperationResult; import com.evolveum.midpoint.task.api.Task; import com.evolveum.midpoint.xml.ns._public.common.common_3.AccessCertificationCampaignType;
import com.evolveum.midpoint.schema.result.*; import com.evolveum.midpoint.task.api.*; import com.evolveum.midpoint.xml.ns._public.common.common_3.*;
[ "com.evolveum.midpoint" ]
com.evolveum.midpoint;
1,899,530
public ServiceFuture<List<PacketCaptureResultInner>> listAsync(String resourceGroupName, String networkWatcherName, final ServiceCallback<List<PacketCaptureResultInner>> serviceCallback) { return ServiceFuture.fromResponse(listWithServiceResponseAsync(resourceGroupName, networkWatcherName), serviceCallback)...
ServiceFuture<List<PacketCaptureResultInner>> function(String resourceGroupName, String networkWatcherName, final ServiceCallback<List<PacketCaptureResultInner>> serviceCallback) { return ServiceFuture.fromResponse(listWithServiceResponseAsync(resourceGroupName, networkWatcherName), serviceCallback); }
/** * Lists all packet capture sessions within the specified resource group. * * @param resourceGroupName The name of the resource group. * @param networkWatcherName The name of the Network Watcher resource. * @param serviceCallback the async ServiceCallback to handle successful and failed resp...
Lists all packet capture sessions within the specified resource group
listAsync
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/network/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/PacketCapturesInner.java", "license": "mit", "size": 60415 }
[ "com.microsoft.rest.ServiceCallback", "com.microsoft.rest.ServiceFuture", "java.util.List" ]
import com.microsoft.rest.ServiceCallback; import com.microsoft.rest.ServiceFuture; import java.util.List;
import com.microsoft.rest.*; import java.util.*;
[ "com.microsoft.rest", "java.util" ]
com.microsoft.rest; java.util;
1,210,217
public static FopFactory newInstance(File fopConf) throws SAXException, IOException { return new FopConfParser(fopConf).getFopFactoryBuilder().build(); }
static FopFactory function(File fopConf) throws SAXException, IOException { return new FopConfParser(fopConf).getFopFactoryBuilder().build(); }
/** * Returns a new FopFactory instance that is configured using the {@link FopFactoryConfig} object that * is created when the fopConf is parsed. * * @param fopConf the fop conf configuration file to parse * @return the requested FopFactory instance. * @throws IOException * @throws S...
Returns a new FopFactory instance that is configured using the <code>FopFactoryConfig</code> object that is created when the fopConf is parsed
newInstance
{ "repo_name": "apache/fop", "path": "fop-core/src/main/java/org/apache/fop/apps/FopFactory.java", "license": "apache-2.0", "size": 17647 }
[ "java.io.File", "java.io.IOException", "org.xml.sax.SAXException" ]
import java.io.File; import java.io.IOException; import org.xml.sax.SAXException;
import java.io.*; import org.xml.sax.*;
[ "java.io", "org.xml.sax" ]
java.io; org.xml.sax;
1,680,940
List<IObject> loadPlaneInfo(SecurityContext ctx, long pixelsID, int z, int t, int channel) throws DSOutOfServiceException, DSAccessException { isSessionAlive(ctx); IQueryPrx service = getQueryService(ctx); StringBuilder sb; ParametersI param; sb = new StringBuilder(); param = new ParametersI(); s...
List<IObject> loadPlaneInfo(SecurityContext ctx, long pixelsID, int z, int t, int channel) throws DSOutOfServiceException, DSAccessException { isSessionAlive(ctx); IQueryPrx service = getQueryService(ctx); StringBuilder sb; ParametersI param; sb = new StringBuilder(); param = new ParametersI(); sb.append(STR); sb.appen...
/** * Returns the collection of plane info object related to the specified * pixels set. * * @param ctx The security context. * @param pixelsID The id of the pixels set. * @param z The selected z-section or <code>-1</code>. * @param t The selected time-point or <code>-1</code>. * @param channel T...
Returns the collection of plane info object related to the specified pixels set
loadPlaneInfo
{ "repo_name": "rleigh-dundee/openmicroscopy", "path": "components/insight/SRC/org/openmicroscopy/shoola/env/data/OMEROGateway.java", "license": "gpl-2.0", "size": 268360 }
[ "java.util.ArrayList", "java.util.List", "org.openmicroscopy.shoola.env.data.util.SecurityContext" ]
import java.util.ArrayList; import java.util.List; import org.openmicroscopy.shoola.env.data.util.SecurityContext;
import java.util.*; import org.openmicroscopy.shoola.env.data.util.*;
[ "java.util", "org.openmicroscopy.shoola" ]
java.util; org.openmicroscopy.shoola;
2,068,780
public void getItemOffsets(Rect outRect, int itemPosition, RecyclerView parent) { final BaseLayoutManager lm = (BaseLayoutManager) parent.getLayoutManager(); lm.getLaneForPosition(mTempLaneInfo, itemPosition, Direction.END); final int lane = mTempLaneInfo.startLane; final int laneSp...
void function(Rect outRect, int itemPosition, RecyclerView parent) { final BaseLayoutManager lm = (BaseLayoutManager) parent.getLayoutManager(); lm.getLaneForPosition(mTempLaneInfo, itemPosition, Direction.END); final int lane = mTempLaneInfo.startLane; final int laneSpan = lm.getLaneSpanForPosition(itemPosition); fina...
/** * Computes the offsets based on the vertical and horizontal spacing values. * The spacing computation has to ensure that the lane sizes are the same after * applying the offsets. This means we have to shift the spacing unevenly across * items depending on their position in the layout. */
Computes the offsets based on the vertical and horizontal spacing values. The spacing computation has to ensure that the lane sizes are the same after applying the offsets. This means we have to shift the spacing unevenly across items depending on their position in the layout
getItemOffsets
{ "repo_name": "christoandrew/Gula", "path": "layouts/src/main/java/org/lucasr/twowayview/widget/ItemSpacingOffsets.java", "license": "mit", "size": 5950 }
[ "android.graphics.Rect", "android.support.v7.widget.RecyclerView", "org.lucasr.twowayview.TwoWayLayoutManager" ]
import android.graphics.Rect; import android.support.v7.widget.RecyclerView; import org.lucasr.twowayview.TwoWayLayoutManager;
import android.graphics.*; import android.support.v7.widget.*; import org.lucasr.twowayview.*;
[ "android.graphics", "android.support", "org.lucasr.twowayview" ]
android.graphics; android.support; org.lucasr.twowayview;
2,602,129
@Override public void notifyChanged(Notification notification) { updateChildren(notification); super.notifyChanged(notification); }
void function(Notification notification) { updateChildren(notification); super.notifyChanged(notification); }
/** * This handles model notifications by calling {@link #updateChildren} to update any cached * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */
This handles model notifications by calling <code>#updateChildren</code> to update any cached children and by creating a viewer notification, which it passes to <code>#fireNotifyChanged</code>.
notifyChanged
{ "repo_name": "KAMP-Research/KAMP", "path": "bundles/Toometa/toometa.relations.edit/src/relations/provider/AlternativeObjectItemProvider.java", "license": "apache-2.0", "size": 4595 }
[ "org.eclipse.emf.common.notify.Notification" ]
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
1,372,422
public static String getTreeInfo(CmsObject cms, String key, HttpServletRequest request) { key = cms.getRequestContext().addSiteRoot(cms.getRequestContext().getUri()) + "_" + key; // try to read the tree settings fomr the request String value; value = (String)request.getSession(true...
static String function(CmsObject cms, String key, HttpServletRequest request) { key = cms.getRequestContext().addSiteRoot(cms.getRequestContext().getUri()) + "_" + key; String value; value = (String)request.getSession(true).getAttribute(key); if (value == null) { value = (String)cms.getRequestContext().currentUser().ge...
/** * Returns the tree info for the specified key from the current user's info hash.<p> * @param cms the CmsObject * @param key the key * @param request the current request * * @return the tree info for the specified key * @see #C_USER_INFO_OPENED_CATEGORIES * @see #C_USER_INFO_...
Returns the tree info for the specified key from the current user's info hash
getTreeInfo
{ "repo_name": "gallardo/alkacon-oamp", "path": "com.alkacon.opencms.documentcenter/src/com/alkacon/opencms/documentcenter/CategoryTree.java", "license": "gpl-3.0", "size": 37895 }
[ "javax.servlet.http.HttpServletRequest", "org.opencms.file.CmsObject" ]
import javax.servlet.http.HttpServletRequest; import org.opencms.file.CmsObject;
import javax.servlet.http.*; import org.opencms.file.*;
[ "javax.servlet", "org.opencms.file" ]
javax.servlet; org.opencms.file;
794,720
public void setDomainGridlinePosition(CategoryAnchor position) { ParamChecks.nullNotPermitted(position, "position"); this.domainGridlinePosition = position; fireChangeEvent(); }
void function(CategoryAnchor position) { ParamChecks.nullNotPermitted(position, STR); this.domainGridlinePosition = position; fireChangeEvent(); }
/** * Sets the position used for the domain gridlines and sends a * {@link PlotChangeEvent} to all registered listeners. * * @param position the position (<code>null</code> not permitted). * * @see #getDomainGridlinePosition() */
Sets the position used for the domain gridlines and sends a <code>PlotChangeEvent</code> to all registered listeners
setDomainGridlinePosition
{ "repo_name": "oskopek/jfreechart-fse", "path": "src/main/java/org/jfree/chart/plot/CategoryPlot.java", "license": "lgpl-2.1", "size": 170549 }
[ "org.jfree.chart.axis.CategoryAnchor", "org.jfree.chart.util.ParamChecks" ]
import org.jfree.chart.axis.CategoryAnchor; import org.jfree.chart.util.ParamChecks;
import org.jfree.chart.axis.*; import org.jfree.chart.util.*;
[ "org.jfree.chart" ]
org.jfree.chart;
2,686,834
public Observable<ServiceResponse<Page<PolicyDefinitionInner>>> listSinglePageAsync() { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } if (this.client.apiVersion() == null...
Observable<ServiceResponse<Page<PolicyDefinitionInner>>> function() { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException(STR); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException(STR); }
/** * Gets all the policy definitions for a subscription. * * @throws IllegalArgumentException thrown if parameters fail the validation * @return the PagedList&lt;PolicyDefinitionInner&gt; object wrapped in {@link ServiceResponse} if successful. */
Gets all the policy definitions for a subscription
listSinglePageAsync
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/policy/mgmt-v2016_12_01/src/main/java/com/microsoft/azure/management/policy/v2016_12_01/implementation/PolicyDefinitionsInner.java", "license": "mit", "size": 77819 }
[ "com.microsoft.azure.Page", "com.microsoft.rest.ServiceResponse" ]
import com.microsoft.azure.Page; import com.microsoft.rest.ServiceResponse;
import com.microsoft.azure.*; import com.microsoft.rest.*;
[ "com.microsoft.azure", "com.microsoft.rest" ]
com.microsoft.azure; com.microsoft.rest;
2,680,711
public GVTGlyphVector createGlyphVector(FontRenderContext frc, int[] glyphCodes, CharacterIterator ci) { // costruct a string from the glyphCodes String str = ""; for (int i = 0; i < glyphCodes.length; i+...
GVTGlyphVector function(FontRenderContext frc, int[] glyphCodes, CharacterIterator ci) { String str = ""; for (int i = 0; i < glyphCodes.length; i++) { str += glyphUnicodes[glyphCodes[i]]; } StringCharacterIterator sci = new StringCharacterIterator(str); return createGlyphVector(frc, sci); }
/** * Returns a new GVTGlyphVector object for the glyphs in the * the glyph code array. * * @param frc The current font render context. * @param glyphCodes An array containin the ids of the glyphs that * the glyph vector will represent. * * @return The new glyph vector. */
Returns a new GVTGlyphVector object for the glyphs in the the glyph code array
createGlyphVector
{ "repo_name": "Uni-Sol/batik", "path": "sources/org/apache/batik/bridge/SVGGVTFont.java", "license": "apache-2.0", "size": 32108 }
[ "java.awt.font.FontRenderContext", "java.text.CharacterIterator", "java.text.StringCharacterIterator", "org.apache.batik.gvt.font.GVTGlyphVector" ]
import java.awt.font.FontRenderContext; import java.text.CharacterIterator; import java.text.StringCharacterIterator; import org.apache.batik.gvt.font.GVTGlyphVector;
import java.awt.font.*; import java.text.*; import org.apache.batik.gvt.font.*;
[ "java.awt", "java.text", "org.apache.batik" ]
java.awt; java.text; org.apache.batik;
2,097,511
public void setMapper(Mapper mapper) { this.mapper = mapper; }
void function(Mapper mapper) { this.mapper = mapper; }
/** * Sets the <code>Mapper</code> used by this object content manager. * * @param mapper * mapping solver */
Sets the <code>Mapper</code> used by this object content manager
setMapper
{ "repo_name": "cheetah100/jackrabbit-ocm", "path": "src/main/java/org/apache/jackrabbit/ocm/manager/impl/ObjectContentManagerImpl.java", "license": "apache-2.0", "size": 53031 }
[ "org.apache.jackrabbit.ocm.mapper.Mapper" ]
import org.apache.jackrabbit.ocm.mapper.Mapper;
import org.apache.jackrabbit.ocm.mapper.*;
[ "org.apache.jackrabbit" ]
org.apache.jackrabbit;
1,392,900
private void throwWsException(final JoinPoint jp, final Exception ex) throws WsException { if (log.isDebugEnabled()) { log.debug("Translating exceptions for " + jp); } if (ReflectionUtil.instanceOf(ex, WsException.class)) { throw (WsException) ex; } else if (ReflectionUtil.instanceOf(ex, Appl...
void function(final JoinPoint jp, final Exception ex) throws WsException { if (log.isDebugEnabled()) { log.debug(STR + jp); } if (ReflectionUtil.instanceOf(ex, WsException.class)) { throw (WsException) ex; } else if (ReflectionUtil.instanceOf(ex, ApplicationException.class)) { throw new WsException((ApplicationExceptio...
/** * Translate exceptions for an applicable join point. * * @param jp * @param ex * @throws WsException */
Translate exceptions for an applicable join point
throwWsException
{ "repo_name": "openfurther/further-open-core", "path": "core/core-cxf/src/main/java/edu/utah/further/core/cxf/WsExceptionTranslationAspect.java", "license": "apache-2.0", "size": 4599 }
[ "edu.utah.further.core.api.constant.ErrorCode", "edu.utah.further.core.api.exception.ApplicationException", "edu.utah.further.core.api.exception.WsException", "edu.utah.further.core.api.lang.ReflectionUtil", "org.aspectj.lang.JoinPoint" ]
import edu.utah.further.core.api.constant.ErrorCode; import edu.utah.further.core.api.exception.ApplicationException; import edu.utah.further.core.api.exception.WsException; import edu.utah.further.core.api.lang.ReflectionUtil; import org.aspectj.lang.JoinPoint;
import edu.utah.further.core.api.constant.*; import edu.utah.further.core.api.exception.*; import edu.utah.further.core.api.lang.*; import org.aspectj.lang.*;
[ "edu.utah.further", "org.aspectj.lang" ]
edu.utah.further; org.aspectj.lang;
905,921
public String detail() { Integer id = Integer.parseInt(FacesUtils.getRequestParameter("id")); workingAgreement = manager.getEntityById(id); return SpringUtils.isAclPermissionGranted(workingAgreement, BasePermission.WRITE) ? NavigationResults.EDIT : Navigation...
String function() { Integer id = Integer.parseInt(FacesUtils.getRequestParameter("id")); workingAgreement = manager.getEntityById(id); return SpringUtils.isAclPermissionGranted(workingAgreement, BasePermission.WRITE) ? NavigationResults.EDIT : NavigationResults.DETAIL; }
/** * Go to detail page * * @return forward to DETAIL page */
Go to detail page
detail
{ "repo_name": "terrex/tntconcept-materials-testing", "path": "src/main/java/com/autentia/intra/bean/admin/WorkingAgreementBean.java", "license": "gpl-2.0", "size": 14936 }
[ "com.autentia.intra.bean.NavigationResults", "com.autentia.intra.util.FacesUtils", "com.autentia.intra.util.SpringUtils", "org.acegisecurity.acls.domain.BasePermission" ]
import com.autentia.intra.bean.NavigationResults; import com.autentia.intra.util.FacesUtils; import com.autentia.intra.util.SpringUtils; import org.acegisecurity.acls.domain.BasePermission;
import com.autentia.intra.bean.*; import com.autentia.intra.util.*; import org.acegisecurity.acls.domain.*;
[ "com.autentia.intra", "org.acegisecurity.acls" ]
com.autentia.intra; org.acegisecurity.acls;
1,422,094
@ApiModelProperty(example = "null", value = "Operation result details.") public String getResultDetails() { return resultDetails; }
@ApiModelProperty(example = "null", value = STR) String function() { return resultDetails; }
/** * Operation result details. * @return resultDetails **/
Operation result details
getResultDetails
{ "repo_name": "Muhimbi/PDF-Converter-Services-Online", "path": "clients/v1/java/client/src/main/java/com/muhimbi/online/client/model/OperationResponse.java", "license": "apache-2.0", "size": 6009 }
[ "io.swagger.annotations.ApiModelProperty" ]
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.*;
[ "io.swagger.annotations" ]
io.swagger.annotations;
2,806,215
public static Font getFont(Object key, Locale locale) { Object value = get(key, locale); if (value instanceof Font) return (Font) value; return null; }
static Font function(Object key, Locale locale) { Object value = get(key, locale); if (value instanceof Font) return (Font) value; return null; }
/** * Retrieves a font from the defaults table of the current * LookAndFeel. * * @param key an Object that specifies the font. Typically, * this is a String such as * <code>TitledBorder.font</code>. * @param locale the locale. * * @return The font associated with the given key,...
Retrieves a font from the defaults table of the current LookAndFeel
getFont
{ "repo_name": "ivmai/JCGO", "path": "goclsp/clsp_fix/javax/swing/UIManager.java", "license": "gpl-2.0", "size": 27684 }
[ "java.awt.Font", "java.util.Locale" ]
import java.awt.Font; import java.util.Locale;
import java.awt.*; import java.util.*;
[ "java.awt", "java.util" ]
java.awt; java.util;
2,540,773
private void maybeAddAliasToSymbolTable(Node n, String module) { if (preprocessorSymbolTable != null) { n.putBooleanProp(Node.MODULE_ALIAS, true); // Alias can be used in js types. Types have node type STRING and not NAME so we have to // use their name as string. String nodeName = ...
void function(Node n, String module) { if (preprocessorSymbolTable != null) { n.putBooleanProp(Node.MODULE_ALIAS, true); String nodeName = n.getToken() == Token.STRING ? n.getString() : preprocessorSymbolTable.getQualifiedName(n); String name = STR + module + "_" + nodeName; preprocessorSymbolTable.addReference(n, name...
/** * Add alias nodes to the symbol table as they going to be removed by rewriter. Example aliases: * * const Foo = goog.require('my.project.Foo'); * const bar = goog.require('my.project.baz'); * const {baz} = goog.require('my.project.utils'); */
Add alias nodes to the symbol table as they going to be removed by rewriter. Example aliases: const Foo = goog.require('my.project.Foo'); const bar = goog.require('my.project.baz'); const {baz} = goog.require('my.project.utils')
maybeAddAliasToSymbolTable
{ "repo_name": "tdelmas/closure-compiler", "path": "src/com/google/javascript/jscomp/ClosureRewriteModule.java", "license": "apache-2.0", "size": 70548 }
[ "com.google.javascript.rhino.Node", "com.google.javascript.rhino.Token" ]
import com.google.javascript.rhino.Node; import com.google.javascript.rhino.Token;
import com.google.javascript.rhino.*;
[ "com.google.javascript" ]
com.google.javascript;
1,545,664
@Override public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) { if (childrenFeatures == null) { super.getChildrenFeatures(object); childrenFeatures.add(org_eclipse_smarthome_schemas_config_description_v1__0SimplifiedPackage.Literals.FILTER__CRITERIAS); } return childrenFea...
Collection<? extends EStructuralFeature> function(Object object) { if (childrenFeatures == null) { super.getChildrenFeatures(object); childrenFeatures.add(org_eclipse_smarthome_schemas_config_description_v1__0SimplifiedPackage.Literals.FILTER__CRITERIAS); } return childrenFeatures; }
/** * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. * <!-- begin-user-...
This specifies how to implement <code>#getChildren</code> and is used to deduce an appropriate feature for an <code>org.eclipse.emf.edit.command.AddCommand</code>, <code>org.eclipse.emf.edit.command.RemoveCommand</code> or <code>org.eclipse.emf.edit.command.MoveCommand</code> in <code>#createCommand</code>.
getChildrenFeatures
{ "repo_name": "patrickneubauer/XMLIntellEdit", "path": "xmlintelledit/classes.edit/src/org_eclipse_smarthome_schemas_config_description_v1__0Simplified/provider/FilterItemProvider.java", "license": "mit", "size": 5410 }
[ "java.util.Collection", "org.eclipse.emf.ecore.EStructuralFeature" ]
import java.util.Collection; import org.eclipse.emf.ecore.EStructuralFeature;
import java.util.*; import org.eclipse.emf.ecore.*;
[ "java.util", "org.eclipse.emf" ]
java.util; org.eclipse.emf;
615,081
@SuppressWarnings("unchecked") public <S extends Constraints<S>, U extends GuiComponent<?, ?>> O add(Iterable<U> components, S constraint, BiConsumer<S, Integer> consumer) { Iterator<U> iterator = components.iterator(); for (int i = 0; iterator.hasNext(); i++) { U component = iterator.next(); consumer.acc...
@SuppressWarnings(STR) <S extends Constraints<S>, U extends GuiComponent<?, ?>> O function(Iterable<U> components, S constraint, BiConsumer<S, Integer> consumer) { Iterator<U> iterator = components.iterator(); for (int i = 0; iterator.hasNext(); i++) { U component = iterator.next(); consumer.accept(constraint, i); add(...
/** * Adds every component from the given {@link Iterable} to this container, * The given {@link Constraints} object will be passed to the supplied * consumer for every component, in sequence. * @param components * @param constraint * @param consumer * @return */
Adds every component from the given <code>Iterable</code> to this container, The given <code>Constraints</code> object will be passed to the supplied consumer for every component, in sequence
add
{ "repo_name": "NOVA-Team/NOVA-GUI", "path": "src/main/java/nova/gui/AbstractGuiContainer.java", "license": "lgpl-3.0", "size": 7869 }
[ "java.util.Iterator", "java.util.function.BiConsumer" ]
import java.util.Iterator; import java.util.function.BiConsumer;
import java.util.*; import java.util.function.*;
[ "java.util" ]
java.util;
1,139,247
public GluonConfig processBatchResponse(String result) { ObjectMapper mapper = new ObjectMapper(); GluonConfig response = null; try { log.debug(BATCH_RECEIVED, result); JsonNode jsonNode = mapper.readTree(result); log.info("JSON NODE VALUE ARE: {}", jsonNo...
GluonConfig function(String result) { ObjectMapper mapper = new ObjectMapper(); GluonConfig response = null; try { log.debug(BATCH_RECEIVED, result); JsonNode jsonNode = mapper.readTree(result); log.info(STR, jsonNode); String action = jsonNode.get(GLUON_ACTION).asText(); JsonNode nodes = jsonNode.get(GLUON_NODE).get(G...
/** * Parse and process batch json data which is received from Gluon server. * * @param result batch json data * @return GluonConfig response */
Parse and process batch json data which is received from Gluon server
processBatchResponse
{ "repo_name": "oplinkoms/onos", "path": "apps/gluon/src/main/java/org/onosproject/gluon/rsc/GluonServer.java", "license": "apache-2.0", "size": 22222 }
[ "com.fasterxml.jackson.databind.JsonNode", "com.fasterxml.jackson.databind.ObjectMapper", "java.io.IOException" ]
import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; import java.io.IOException;
import com.fasterxml.jackson.databind.*; import java.io.*;
[ "com.fasterxml.jackson", "java.io" ]
com.fasterxml.jackson; java.io;
20,338
try { Interactive.run(source, Interactive.print()); System.out.println(); } catch (Throwable t) { System.err.print(", "); t.printStackTrace(); } }
try { Interactive.run(source, Interactive.print()); System.out.println(); } catch (Throwable t) { System.err.print(STR); t.printStackTrace(); } }
/** * Run the Iterable with a print attached. * @param source the iterable source * waiting on the observable completion */
Run the Iterable with a print attached
run
{ "repo_name": "akarnokd/reactive4java", "path": "src/test/java/hu/akarnokd/reactive4java/test/old/TestInteractive1.java", "license": "apache-2.0", "size": 2799 }
[ "hu.akarnokd.reactive4java.interactive.Interactive" ]
import hu.akarnokd.reactive4java.interactive.Interactive;
import hu.akarnokd.reactive4java.interactive.*;
[ "hu.akarnokd.reactive4java" ]
hu.akarnokd.reactive4java;
2,268,905
Call<ResponseBody> putArrayValidAsync(List<List<String>> arrayBody, final ServiceCallback<Void> serviceCallback);
Call<ResponseBody> putArrayValidAsync(List<List<String>> arrayBody, final ServiceCallback<Void> serviceCallback);
/** * Put An array of array of strings [['1', '2', '3'], ['4', '5', '6'], ['7', '8', '9']]. * * @param arrayBody the List&lt;List&lt;String&gt;&gt; value * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @return the {@link Call} object */
Put An array of array of strings [['1', '2', '3'], ['4', '5', '6'], ['7', '8', '9']]
putArrayValidAsync
{ "repo_name": "vulcansteel/autorest", "path": "AutoRest/Generators/Java/Java.Tests/src/main/java/fixtures/bodyarray/ArrayOperations.java", "license": "mit", "size": 61287 }
[ "com.microsoft.rest.ServiceCallback", "com.squareup.okhttp.ResponseBody", "java.util.List" ]
import com.microsoft.rest.ServiceCallback; import com.squareup.okhttp.ResponseBody; import java.util.List;
import com.microsoft.rest.*; import com.squareup.okhttp.*; import java.util.*;
[ "com.microsoft.rest", "com.squareup.okhttp", "java.util" ]
com.microsoft.rest; com.squareup.okhttp; java.util;
1,729,188
// Configuration stuff this.saveDefaultConfig(); this.verbose = this.getConfig().getBoolean("settings.verbose"); // Scoreboard this.sb = new ScoreboardWrapper(this); // Listeners this.moveListener = new MoveListener(this); this.getServer().getPluginManager().reg...
this.saveDefaultConfig(); this.verbose = this.getConfig().getBoolean(STR); this.sb = new ScoreboardWrapper(this); this.moveListener = new MoveListener(this); this.getServer().getPluginManager().registerEvents(this.moveListener, this); this.killListener = new KillListener(this); this.getServer().getPluginManager().regis...
/** * Called when Craftbukkit instantiates the plugin. */
Called when Craftbukkit instantiates the plugin
onEnable
{ "repo_name": "brendanashworth/TerrariumScoreboard", "path": "src/main/java/net/boboman13/terrariumscoreboard/TerrariumScoreboard.java", "license": "mit", "size": 3094 }
[ "net.boboman13.terrariumscoreboard.listeners.KillListener", "net.boboman13.terrariumscoreboard.listeners.MoveListener", "net.boboman13.terrariumscoreboard.scoreboard.ScoreboardWrapper" ]
import net.boboman13.terrariumscoreboard.listeners.KillListener; import net.boboman13.terrariumscoreboard.listeners.MoveListener; import net.boboman13.terrariumscoreboard.scoreboard.ScoreboardWrapper;
import net.boboman13.terrariumscoreboard.listeners.*; import net.boboman13.terrariumscoreboard.scoreboard.*;
[ "net.boboman13.terrariumscoreboard" ]
net.boboman13.terrariumscoreboard;
1,817,114
public void setTools(Map<String, Status> toolStatuses) { this.toolStatuses = toolStatuses; }
void function(Map<String, Status> toolStatuses) { this.toolStatuses = toolStatuses; }
/** * The tool statuses. * * @param toolStatuses a {@link java.util.Map} object. */
The tool statuses
setTools
{ "repo_name": "SynthesisProject/server", "path": "synthesis-service/src/main/java/coza/opencollab/synthesis/service/synch/so/SynchStatus.java", "license": "agpl-3.0", "size": 1783 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
2,329,977
private void appendDropPrimaryKey(StringBuilder sb, Table table) { final String tableName = table.getName(); String pkName = table.getPrimaryKey().getName(); // MS-SQL require a constraints name, and the one provided from the mapping is necessarily appropriate // since during da...
void function(StringBuilder sb, Table table) { final String tableName = table.getName(); String pkName = table.getPrimaryKey().getName(); if (this.isMSSQL) { try { pkName = getStore().failSafeExecuteRead(getXWikiContext(), session -> { return (String) session .createSQLQuery(STR + STR) .setParameter(STR, tableName).uni...
/** * Append a drop primary key constraint command for the given table. * * @param sb append the result into this string builder * @param table the table */
Append a drop primary key constraint command for the given table
appendDropPrimaryKey
{ "repo_name": "xwiki/xwiki-platform", "path": "xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/store/migration/hibernate/R40000XWIKI6990DataMigration.java", "license": "lgpl-2.1", "size": 56579 }
[ "org.hibernate.mapping.Table" ]
import org.hibernate.mapping.Table;
import org.hibernate.mapping.*;
[ "org.hibernate.mapping" ]
org.hibernate.mapping;
549,579
public void onItemPickup(Entity p_71001_1_, int p_71001_2_) { super.onItemPickup(p_71001_1_, p_71001_2_); this.openContainer.detectAndSendChanges(); }
void function(Entity p_71001_1_, int p_71001_2_) { super.onItemPickup(p_71001_1_, p_71001_2_); this.openContainer.detectAndSendChanges(); }
/** * Called whenever an item is picked up from walking over it. Args: pickedUpEntity, stackSize */
Called whenever an item is picked up from walking over it. Args: pickedUpEntity, stackSize
onItemPickup
{ "repo_name": "CheeseL0ver/Ore-TTM", "path": "build/tmp/recompSrc/net/minecraft/entity/player/EntityPlayerMP.java", "license": "lgpl-2.1", "size": 46255 }
[ "net.minecraft.entity.Entity" ]
import net.minecraft.entity.Entity;
import net.minecraft.entity.*;
[ "net.minecraft.entity" ]
net.minecraft.entity;
2,703,647
T setFlags(MessageFlag... messageFlags);
T setFlags(MessageFlag... messageFlags);
/** * Sets the message flags of the message. * * @param messageFlags The message flags enum type. * @return The current instance in order to chain call methods. */
Sets the message flags of the message
setFlags
{ "repo_name": "BtoBastian/Javacord", "path": "javacord-api/src/main/java/org/javacord/api/interaction/callback/InteractionMessageBuilderBase.java", "license": "lgpl-3.0", "size": 5233 }
[ "org.javacord.api.entity.message.MessageFlag" ]
import org.javacord.api.entity.message.MessageFlag;
import org.javacord.api.entity.message.*;
[ "org.javacord.api" ]
org.javacord.api;
2,762,389
private static Class[] getClasses(String packageName) throws ClassNotFoundException, IOException { ClassLoader classLoader = Thread.currentThread().getContextClassLoader(); assert classLoader != null; String path = packageName.replace('.', '/'); Enumeration<URL> resources...
static Class[] function(String packageName) throws ClassNotFoundException, IOException { ClassLoader classLoader = Thread.currentThread().getContextClassLoader(); assert classLoader != null; String path = packageName.replace('.', '/'); Enumeration<URL> resources = classLoader.getResources(path); List<File> dirs = new A...
/** * Scans all classes accessible from the context class loader which belong to the given package and subpackages. * * @param packageName The base package * @return The classes * @throws ClassNotFoundException * @throws IOException */
Scans all classes accessible from the context class loader which belong to the given package and subpackages
getClasses
{ "repo_name": "diguage/jdk-source-analysis", "path": "src/main/java/com/diguage/truman/ToolMain.java", "license": "apache-2.0", "size": 3684 }
[ "java.io.File", "java.io.IOException", "java.util.ArrayList", "java.util.Enumeration", "java.util.List" ]
import java.io.File; import java.io.IOException; import java.util.ArrayList; import java.util.Enumeration; import java.util.List;
import java.io.*; import java.util.*;
[ "java.io", "java.util" ]
java.io; java.util;
1,328,476
private boolean checkIfRelatedOperationIsActivated(final CapabilitiesExtensionProvider cep) { final CapabilitiesExtensionKey cek = cep.getCapabilitiesExtensionKey(); final RequestOperatorKey rok = new RequestOperatorKey(cek.getService(), cek.getVersion(), cep.getRelatedOperation()); return R...
boolean function(final CapabilitiesExtensionProvider cep) { final CapabilitiesExtensionKey cek = cep.getCapabilitiesExtensionKey(); final RequestOperatorKey rok = new RequestOperatorKey(cek.getService(), cek.getVersion(), cep.getRelatedOperation()); return RequestOperatorRepository.getInstance().getActiveRequestOperato...
/** * Check if the related operation for the loaded * {@link CapabilitiesExtensionProvider} is active * * @param cep * CapabilitiesExtensionProvider to check * * @return <code>true</code>, if related operation is active */
Check if the related operation for the loaded <code>CapabilitiesExtensionProvider</code> is active
checkIfRelatedOperationIsActivated
{ "repo_name": "ahuarte47/SOS", "path": "core/api/src/main/java/org/n52/sos/ogc/sos/CapabilitiesExtensionRepository.java", "license": "gpl-2.0", "size": 7393 }
[ "org.n52.sos.request.operator.RequestOperatorKey", "org.n52.sos.request.operator.RequestOperatorRepository" ]
import org.n52.sos.request.operator.RequestOperatorKey; import org.n52.sos.request.operator.RequestOperatorRepository;
import org.n52.sos.request.operator.*;
[ "org.n52.sos" ]
org.n52.sos;
2,475,295
public GeneralTimestamp<ThaiSolarCalendar> atTime( int hour, int minute ) { return this.at(PlainTime.of(hour, minute)); }
GeneralTimestamp<ThaiSolarCalendar> function( int hour, int minute ) { return this.at(PlainTime.of(hour, minute)); }
/** * <p>Is equivalent to {@code at(PlainTime.of(hour, minute))}. </p> * * @param hour hour of day in range (0-24) * @param minute minute of hour in range (0-59) * @return general timestamp as composition of this date and given time * @throws IllegalArgumentException if a...
Is equivalent to at(PlainTime.of(hour, minute)).
atTime
{ "repo_name": "MenoData/Time4J", "path": "base/src/main/java/net/time4j/calendar/ThaiSolarCalendar.java", "license": "lgpl-2.1", "size": 43423 }
[ "net.time4j.GeneralTimestamp", "net.time4j.PlainTime" ]
import net.time4j.GeneralTimestamp; import net.time4j.PlainTime;
import net.time4j.*;
[ "net.time4j" ]
net.time4j;
2,572,978
@Transactional public List<ConsolidateDetail> findWhereWhCodeEquals(String whCode) throws ConsolidateDetailDaoException { try { return jdbcTemplate.query("SELECT consolidate_no, packing_no, product_id, product_code, product_name, unit_code, qty_consolidate, user_id, corp_id, wh_code FROM " + getTableName() + ...
List<ConsolidateDetail> function(String whCode) throws ConsolidateDetailDaoException { try { return jdbcTemplate.query(STR + getTableName() + STR, this,whCode); } catch (Exception e) { throw new ConsolidateDetailDaoException(STR, e); } }
/** * Returns all rows from the consolidate_detail table that match the criteria 'wh_code = :whCode'. */
Returns all rows from the consolidate_detail table that match the criteria 'wh_code = :whCode'
findWhereWhCodeEquals
{ "repo_name": "rmage/gnvc-ims", "path": "src/java/com/app/wms/engine/db/dao/spring/ConsolidateDetailDaoImpl.java", "license": "lgpl-3.0", "size": 11135 }
[ "com.app.wms.engine.db.dto.ConsolidateDetail", "com.app.wms.engine.db.exceptions.ConsolidateDetailDaoException", "java.util.List" ]
import com.app.wms.engine.db.dto.ConsolidateDetail; import com.app.wms.engine.db.exceptions.ConsolidateDetailDaoException; import java.util.List;
import com.app.wms.engine.db.dto.*; import com.app.wms.engine.db.exceptions.*; import java.util.*;
[ "com.app.wms", "java.util" ]
com.app.wms; java.util;
849,861
public List<GBDevice> getDevices() { return Collections.unmodifiableList(deviceList); }
List<GBDevice> function() { return Collections.unmodifiableList(deviceList); }
/** * The returned list is final, it will never be recreated. Only its contents change. * This allows direct access to the list from ListAdapters. */
The returned list is final, it will never be recreated. Only its contents change. This allows direct access to the list from ListAdapters
getDevices
{ "repo_name": "scifiswapnil/gadgetbridge_artikcloud", "path": "app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/DeviceManager.java", "license": "agpl-3.0", "size": 6174 }
[ "java.util.Collections", "java.util.List" ]
import java.util.Collections; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,619,839
@Test public void testCategoryAttributesStream() throws IOException { CategoryAttributesStream stream = new CategoryAttributesStream( categoryContainer); // count the number of tokens int nTokens; for (nTokens = 0; stream.incrementToken(); nTokens++) { } assertEquals("Wrong number of...
void function() throws IOException { CategoryAttributesStream stream = new CategoryAttributesStream( categoryContainer); int nTokens; for (nTokens = 0; stream.incrementToken(); nTokens++) { } assertEquals(STR, 3, nTokens); }
/** * Verifies that a {@link CategoryAttributesStream} can be constructed from * {@link CategoryContainer} and produce the correct number of tokens. */
Verifies that a <code>CategoryAttributesStream</code> can be constructed from <code>CategoryContainer</code> and produce the correct number of tokens
testCategoryAttributesStream
{ "repo_name": "terrancesnyder/solr-analytics", "path": "lucene/facet/src/test/org/apache/lucene/facet/index/CategoryContainerTest.java", "license": "apache-2.0", "size": 8933 }
[ "java.io.IOException", "org.apache.lucene.facet.index.streaming.CategoryAttributesStream" ]
import java.io.IOException; import org.apache.lucene.facet.index.streaming.CategoryAttributesStream;
import java.io.*; import org.apache.lucene.facet.index.streaming.*;
[ "java.io", "org.apache.lucene" ]
java.io; org.apache.lucene;
1,925,168
public HostnameBindingInner withCustomHostnameDnsRecordType( CustomHostnameDnsRecordType customHostnameDnsRecordType) { if (this.innerProperties() == null) { this.innerProperties = new HostnameBindingProperties(); } this.innerProperties().withCustomHostnameDnsRecordType(c...
HostnameBindingInner function( CustomHostnameDnsRecordType customHostnameDnsRecordType) { if (this.innerProperties() == null) { this.innerProperties = new HostnameBindingProperties(); } this.innerProperties().withCustomHostnameDnsRecordType(customHostnameDnsRecordType); return this; }
/** * Set the customHostnameDnsRecordType property: Custom DNS record type. * * @param customHostnameDnsRecordType the customHostnameDnsRecordType value to set. * @return the HostnameBindingInner object itself. */
Set the customHostnameDnsRecordType property: Custom DNS record type
withCustomHostnameDnsRecordType
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/resourcemanagerhybrid/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/HostnameBindingInner.java", "license": "mit", "size": 8287 }
[ "com.azure.resourcemanager.appservice.models.CustomHostnameDnsRecordType" ]
import com.azure.resourcemanager.appservice.models.CustomHostnameDnsRecordType;
import com.azure.resourcemanager.appservice.models.*;
[ "com.azure.resourcemanager" ]
com.azure.resourcemanager;
2,592,675