method stringlengths 13 441k | clean_method stringlengths 7 313k | doc stringlengths 17 17.3k | comment stringlengths 3 1.42k | method_name stringlengths 1 273 | extra dict | imports list | imports_info stringlengths 19 34.8k | cluster_imports_info stringlengths 15 3.66k | libraries list | libraries_info stringlengths 6 661 | id int64 0 2.92M |
|---|---|---|---|---|---|---|---|---|---|---|---|
public void testLazyMapNestedExceedLimit() throws Throwable {
//map max nesting level is one less because it uses an additional separator
checkExtendedLimitExceeded(EXTENDED_LEVEL_THRESHOLD - 1, ObjectInspector.Category.MAP);
} | void function() throws Throwable { checkExtendedLimitExceeded(EXTENDED_LEVEL_THRESHOLD - 1, ObjectInspector.Category.MAP); } | /**
* Test the LazyMap class with multiple levels of nesting
*/ | Test the LazyMap class with multiple levels of nesting | testLazyMapNestedExceedLimit | {
"repo_name": "winningsix/hive",
"path": "serde/src/test/org/apache/hadoop/hive/serde2/lazy/TestLazyArrayMapStruct.java",
"license": "apache-2.0",
"size": 31412
} | [
"org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector"
] | import org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector; | import org.apache.hadoop.hive.serde2.objectinspector.*; | [
"org.apache.hadoop"
] | org.apache.hadoop; | 1,134,140 |
protected void notifyEvaluation(Chromosome chromosome) {
for (SearchListener listener : listeners) {
listener.fitnessEvaluation(chromosome);
}
} | void function(Chromosome chromosome) { for (SearchListener listener : listeners) { listener.fitnessEvaluation(chromosome); } } | /**
* Notify all search listeners of fitness evaluation
*
* @param chromosome
* a {@link org.evosuite.ga.Chromosome} object.
*/ | Notify all search listeners of fitness evaluation | notifyEvaluation | {
"repo_name": "sefaakca/EvoSuite-Sefa",
"path": "client/src/main/java/org/evosuite/ga/metaheuristics/GeneticAlgorithm.java",
"license": "lgpl-3.0",
"size": 39060
} | [
"org.evosuite.ga.Chromosome"
] | import org.evosuite.ga.Chromosome; | import org.evosuite.ga.*; | [
"org.evosuite.ga"
] | org.evosuite.ga; | 1,927,172 |
public static void updatePermissionCache(String username) throws UserStoreException {
String tenantDomain = MultitenantUtils.getTenantDomain(username);
int tenantId = ServiceReferenceHolder.getInstance().getRealmService().getTenantManager().getTenantId(tenantDomain);
PermissionUpdateUtil.upd... | static void function(String username) throws UserStoreException { String tenantDomain = MultitenantUtils.getTenantDomain(username); int tenantId = ServiceReferenceHolder.getInstance().getRealmService().getTenantManager().getTenantId(tenantDomain); PermissionUpdateUtil.updatePermissionTree(tenantId); } | /**
* This method will update the permission cache of the tenant which is related to the given usename
*
* @param username User name to find the relevant tenant
* @throws UserStoreException if the permission update failed
*/ | This method will update the permission cache of the tenant which is related to the given usename | updatePermissionCache | {
"repo_name": "susinda/carbon-apimgt",
"path": "components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/utils/APIUtil.java",
"license": "apache-2.0",
"size": 251683
} | [
"org.wso2.carbon.apimgt.impl.internal.ServiceReferenceHolder",
"org.wso2.carbon.core.util.PermissionUpdateUtil",
"org.wso2.carbon.user.api.UserStoreException",
"org.wso2.carbon.utils.multitenancy.MultitenantUtils"
] | import org.wso2.carbon.apimgt.impl.internal.ServiceReferenceHolder; import org.wso2.carbon.core.util.PermissionUpdateUtil; import org.wso2.carbon.user.api.UserStoreException; import org.wso2.carbon.utils.multitenancy.MultitenantUtils; | import org.wso2.carbon.apimgt.impl.internal.*; import org.wso2.carbon.core.util.*; import org.wso2.carbon.user.api.*; import org.wso2.carbon.utils.multitenancy.*; | [
"org.wso2.carbon"
] | org.wso2.carbon; | 1,327,090 |
public IFile getFileForURI(URI uri) {
if (uri == null) {
return null;
}
IWorkspace workspace = ResourcesPlugin.getWorkspace();
IWorkspaceRoot workspaceRoot = workspace.getRoot();
String platformString = uri.toPlatformString(true);
// If the URI is not a platform URI, we cannot determine the file.
if... | IFile function(URI uri) { if (uri == null) { return null; } IWorkspace workspace = ResourcesPlugin.getWorkspace(); IWorkspaceRoot workspaceRoot = workspace.getRoot(); String platformString = uri.toPlatformString(true); if (platformString == null) { return null; } Path path = new Path(platformString); return workspaceRo... | /**
* Returns the file that corresponds to the given URI. If the URI does not
* correspond to a file (e.g., because it is not a platform URI or because it is
* <code>null</code>), <code>null</code> is returned.
*/ | Returns the file that corresponds to the given URI. If the URI does not correspond to a file (e.g., because it is not a platform URI or because it is <code>null</code>), <code>null</code> is returned | getFileForURI | {
"repo_name": "HyVar/DarwinSPL",
"path": "plugins/eu.hyvar.feature.expression.resource.hyexpression/src-gen/eu/hyvar/feature/expression/resource/hyexpression/util/HyexpressionEclipseProxy.java",
"license": "apache-2.0",
"size": 11447
} | [
"org.eclipse.core.resources.IFile",
"org.eclipse.core.resources.IWorkspace",
"org.eclipse.core.resources.IWorkspaceRoot",
"org.eclipse.core.resources.ResourcesPlugin",
"org.eclipse.core.runtime.Path"
] | import org.eclipse.core.resources.IFile; import org.eclipse.core.resources.IWorkspace; import org.eclipse.core.resources.IWorkspaceRoot; import org.eclipse.core.resources.ResourcesPlugin; import org.eclipse.core.runtime.Path; | import org.eclipse.core.resources.*; import org.eclipse.core.runtime.*; | [
"org.eclipse.core"
] | org.eclipse.core; | 1,623,786 |
@ServiceMethod(returns = ReturnType.SINGLE)
public SyncPoller<PollResult<NamedValueContractInner>, NamedValueContractInner> beginCreateOrUpdate(
String resourceGroupName,
String serviceName,
String namedValueId,
NamedValueCreateContract parameters,
String ifMatch,
... | @ServiceMethod(returns = ReturnType.SINGLE) SyncPoller<PollResult<NamedValueContractInner>, NamedValueContractInner> function( String resourceGroupName, String serviceName, String namedValueId, NamedValueCreateContract parameters, String ifMatch, Context context) { return beginCreateOrUpdateAsync(resourceGroupName, ser... | /**
* Creates or updates named value.
*
* @param resourceGroupName The name of the resource group.
* @param serviceName The name of the API Management service.
* @param namedValueId Identifier of the NamedValue.
* @param parameters Create parameters.
* @param ifMatch ETag of the Entit... | Creates or updates named value | beginCreateOrUpdate | {
"repo_name": "Azure/azure-sdk-for-java",
"path": "sdk/apimanagement/azure-resourcemanager-apimanagement/src/main/java/com/azure/resourcemanager/apimanagement/implementation/NamedValuesClientImpl.java",
"license": "mit",
"size": 110327
} | [
"com.azure.core.annotation.ReturnType",
"com.azure.core.annotation.ServiceMethod",
"com.azure.core.management.polling.PollResult",
"com.azure.core.util.Context",
"com.azure.core.util.polling.SyncPoller",
"com.azure.resourcemanager.apimanagement.fluent.models.NamedValueContractInner",
"com.azure.resource... | import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.management.polling.PollResult; import com.azure.core.util.Context; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.apimanagement.fluent.models.NamedValueContractInner; impor... | import com.azure.core.annotation.*; import com.azure.core.management.polling.*; import com.azure.core.util.*; import com.azure.core.util.polling.*; import com.azure.resourcemanager.apimanagement.fluent.models.*; import com.azure.resourcemanager.apimanagement.models.*; | [
"com.azure.core",
"com.azure.resourcemanager"
] | com.azure.core; com.azure.resourcemanager; | 1,688,587 |
public void keyReleased(KeyEvent evt);
}
protected Keyboard keyboard;
protected transient List<KeyboardListener> listeners = new ArrayList<KeyboardListener>();
| void function(KeyEvent evt); } protected Keyboard keyboard; protected transient List<KeyboardListener> listeners = new ArrayList<KeyboardListener>(); | /**
* Key released.
*
* @param evt
* the evt
*/ | Key released | keyReleased | {
"repo_name": "synergynet/synergynet2.5",
"path": "synergynet2.5/src/main/java/apps/conceptmap/graphcomponents/nodes/KeyboardNode.java",
"license": "bsd-3-clause",
"size": 5561
} | [
"java.awt.event.KeyEvent",
"java.util.ArrayList",
"java.util.List"
] | import java.awt.event.KeyEvent; import java.util.ArrayList; import java.util.List; | import java.awt.event.*; import java.util.*; | [
"java.awt",
"java.util"
] | java.awt; java.util; | 924,398 |
public static CoderProvider getCoderProvider() {
return new ProtoCoderProvider();
}
static final TypeDescriptor<Message> MESSAGE_TYPE = new TypeDescriptor<Message>() {};
private static class ProtoCoderProvider extends CoderProvider { | static CoderProvider function() { return new ProtoCoderProvider(); } static final TypeDescriptor<Message> MESSAGE_TYPE = new TypeDescriptor<Message>() {}; private static class ProtoCoderProvider extends CoderProvider { | /**
* Returns a {@link CoderProvider} which uses the {@link ProtoCoder} for
* {@link Message proto messages}.
*
* <p>This method is invoked reflectively from {@link DefaultCoder}.
*/ | Returns a <code>CoderProvider</code> which uses the <code>ProtoCoder</code> for <code>Message proto messages</code>. This method is invoked reflectively from <code>DefaultCoder</code> | getCoderProvider | {
"repo_name": "tgroh/incubator-beam",
"path": "sdks/java/extensions/protobuf/src/main/java/org/apache/beam/sdk/extensions/protobuf/ProtoCoder.java",
"license": "apache-2.0",
"size": 13093
} | [
"com.google.protobuf.Message",
"org.apache.beam.sdk.coders.CoderProvider",
"org.apache.beam.sdk.values.TypeDescriptor"
] | import com.google.protobuf.Message; import org.apache.beam.sdk.coders.CoderProvider; import org.apache.beam.sdk.values.TypeDescriptor; | import com.google.protobuf.*; import org.apache.beam.sdk.coders.*; import org.apache.beam.sdk.values.*; | [
"com.google.protobuf",
"org.apache.beam"
] | com.google.protobuf; org.apache.beam; | 2,381,981 |
protected B frameListener(Http2FrameListener frameListener) {
this.frameListener = checkNotNull(frameListener, "frameListener");
return self();
} | B function(Http2FrameListener frameListener) { this.frameListener = checkNotNull(frameListener, STR); return self(); } | /**
* Sets the listener of inbound frames.
* This listener will only be set if the decoder's listener is {@code null}.
*/ | Sets the listener of inbound frames. This listener will only be set if the decoder's listener is null | frameListener | {
"repo_name": "s-gheldd/netty",
"path": "codec-http2/src/main/java/io/netty/handler/codec/http2/AbstractHttp2ConnectionHandlerBuilder.java",
"license": "apache-2.0",
"size": 18039
} | [
"io.netty.util.internal.ObjectUtil"
] | import io.netty.util.internal.ObjectUtil; | import io.netty.util.internal.*; | [
"io.netty.util"
] | io.netty.util; | 704,649 |
static String getLegacyProperty( Properties props, String property, String defaultValue ) {
String result = props.getProperty( property, null );
if( result == null )
result = props.getProperty( LEGACY_PREFIX + property, defaultValue );
return result;
} | static String getLegacyProperty( Properties props, String property, String defaultValue ) { String result = props.getProperty( property, null ); if( result == null ) result = props.getProperty( LEGACY_PREFIX + property, defaultValue ); return result; } | /**
* Gets a property value while supporting legacy ones.
* @param props non-null properties
* @param property a non-null property name (not legacy)
* @param defaultValue the default value if the property is not found
* @return a non-null string if the property was found, the default value otherwise
*/ | Gets a property value while supporting legacy ones | getLegacyProperty | {
"repo_name": "vincent-zurczak/roboconf-platform",
"path": "core/roboconf-core/src/main/java/net/roboconf/core/model/ApplicationTemplateDescriptor.java",
"license": "apache-2.0",
"size": 10058
} | [
"java.util.Properties"
] | import java.util.Properties; | import java.util.*; | [
"java.util"
] | java.util; | 2,821,498 |
public void addStartElement(final String pTagName, final Map<String, String> pAttributes) throws XMLStreamException {
XMLEvent tmpEvent = eventFactory.createStartElement(StringUtils.EMPTY, StringUtils.EMPTY, pTagName);
writer.add(tmpEvent);
if (pAttributes != null) {
Set<Entry<String, String>> attributes =... | void function(final String pTagName, final Map<String, String> pAttributes) throws XMLStreamException { XMLEvent tmpEvent = eventFactory.createStartElement(StringUtils.EMPTY, StringUtils.EMPTY, pTagName); writer.add(tmpEvent); if (pAttributes != null) { Set<Entry<String, String>> attributes = pAttributes.entrySet(); fo... | /**
* Add a start tag to the current buffer.
*
* @param pTagName
* name of the tag.
* @param pAttributes
* map containing the attributes of the tag.
* @throws XMLStreamException
*/ | Add a start tag to the current buffer | addStartElement | {
"repo_name": "chrismattmann/grobid",
"path": "grobid-core/src/main/java/org/grobid/core/utilities/XMLWriter.java",
"license": "apache-2.0",
"size": 7786
} | [
"java.util.Map",
"java.util.Set",
"javax.xml.stream.XMLStreamException",
"javax.xml.stream.events.XMLEvent",
"org.apache.commons.lang3.StringUtils"
] | import java.util.Map; import java.util.Set; import javax.xml.stream.XMLStreamException; import javax.xml.stream.events.XMLEvent; import org.apache.commons.lang3.StringUtils; | import java.util.*; import javax.xml.stream.*; import javax.xml.stream.events.*; import org.apache.commons.lang3.*; | [
"java.util",
"javax.xml",
"org.apache.commons"
] | java.util; javax.xml; org.apache.commons; | 252,019 |
EClass getSarlFormalParameter(); | EClass getSarlFormalParameter(); | /**
* Returns the meta object for class '{@link io.sarl.lang.sarl.SarlFormalParameter <em>Formal Parameter</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Formal Parameter</em>'.
* @see io.sarl.lang.sarl.SarlFormalParameter
* @generated
*/ | Returns the meta object for class '<code>io.sarl.lang.sarl.SarlFormalParameter Formal Parameter</code>'. | getSarlFormalParameter | {
"repo_name": "jgfoster/sarl",
"path": "main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/sarl/SarlPackage.java",
"license": "apache-2.0",
"size": 73008
} | [
"org.eclipse.emf.ecore.EClass"
] | import org.eclipse.emf.ecore.EClass; | import org.eclipse.emf.ecore.*; | [
"org.eclipse.emf"
] | org.eclipse.emf; | 2,762,998 |
public void setDomStorageEnabled(boolean flag) {
if (TRACE) Log.i(LOGTAG, "setDomStorageEnabled=" + flag);
synchronized (mAwSettingsLock) {
if (mDomStorageEnabled != flag) {
mDomStorageEnabled = flag;
mEventHandler.updateWebkitPreferencesLocked();
... | void function(boolean flag) { if (TRACE) Log.i(LOGTAG, STR + flag); synchronized (mAwSettingsLock) { if (mDomStorageEnabled != flag) { mDomStorageEnabled = flag; mEventHandler.updateWebkitPreferencesLocked(); } } } | /**
* See {@link android.webkit.WebSettings#setDomStorageEnabled}.
*/ | See <code>android.webkit.WebSettings#setDomStorageEnabled</code> | setDomStorageEnabled | {
"repo_name": "ric2b/Vivaldi-browser",
"path": "chromium/android_webview/java/src/org/chromium/android_webview/AwSettings.java",
"license": "bsd-3-clause",
"size": 65230
} | [
"android.util.Log"
] | import android.util.Log; | import android.util.*; | [
"android.util"
] | android.util; | 1,318,903 |
public boolean isCharacters() {
return fEventType == XMLEvent.CHARACTERS ;
} | boolean function() { return fEventType == XMLEvent.CHARACTERS ; } | /** Returns true if the cursor points to a character data event
* @return true if the cursor points to character data, false otherwise
*/ | Returns true if the cursor points to a character data event | isCharacters | {
"repo_name": "PrincetonUniversity/NVJVM",
"path": "build/linux-amd64/jaxp/drop/jaxp_src/src/com/sun/org/apache/xerces/internal/impl/XMLStreamReaderImpl.java",
"license": "gpl-2.0",
"size": 58364
} | [
"javax.xml.stream.events.XMLEvent"
] | import javax.xml.stream.events.XMLEvent; | import javax.xml.stream.events.*; | [
"javax.xml"
] | javax.xml; | 650,353 |
public final static void combineHELM2notation(HELM2Notation helm2notation, HELM2Notation newHELM2Notation) throws NotationException {
HELM2NotationUtils.helm2notation = helm2notation;
Map<String, String> mapIds = generateMapChangeIds(newHELM2Notation.getPolymerAndGroupingIDs());
section1... | final static void function(HELM2Notation helm2notation, HELM2Notation newHELM2Notation) throws NotationException { HELM2NotationUtils.helm2notation = helm2notation; Map<String, String> mapIds = generateMapChangeIds(newHELM2Notation.getPolymerAndGroupingIDs()); section1(newHELM2Notation.getListOfPolymers(), mapIds); sec... | /**
* method to add a new HELMNotation to another HELM2Notation, the new
* HELM2Notation will be merged to the first HELM2Notation
*
* @param helm2notation HELM2Notation
* @param newHELM2Notation new HELMNotation
* @throws NotationException if the HELMNotation is not valid
*/ | method to add a new HELMNotation to another HELM2Notation, the new HELM2Notation will be merged to the first HELM2Notation | combineHELM2notation | {
"repo_name": "PistoiaHELM/HELM2NotationToolkit",
"path": "src/main/java/org/helm/notation2/tools/HELM2NotationUtils.java",
"license": "mit",
"size": 26582
} | [
"java.util.Map",
"org.helm.notation2.parser.exceptionparser.NotationException",
"org.helm.notation2.parser.notation.HELM2Notation"
] | import java.util.Map; import org.helm.notation2.parser.exceptionparser.NotationException; import org.helm.notation2.parser.notation.HELM2Notation; | import java.util.*; import org.helm.notation2.parser.exceptionparser.*; import org.helm.notation2.parser.notation.*; | [
"java.util",
"org.helm.notation2"
] | java.util; org.helm.notation2; | 201,275 |
public static Builder builder() {
return new Builder();
}
public enum Direction {
AUTO("auto"),
LEFT_TO_RIGHT("ltr"),
RIGHT_TO_LEFT("rtl");
final String value;
Direction(String value) {
this.value = value;
}
}
public static class Action {
@Key("action")
priv... | static Builder function() { return new Builder(); } public enum Direction { AUTO("auto"), LEFT_TO_RIGHT("ltr"), RIGHT_TO_LEFT("rtl"); final String value; Direction(String value) { this.value = value; } } public static class Action { @Key(STR) private final String action; @Key("title") private final String title; @Key("... | /**
* Creates a new {@link WebpushNotification.Builder}.
*
* @return A {@link WebpushNotification.Builder} instance.
*/ | Creates a new <code>WebpushNotification.Builder</code> | builder | {
"repo_name": "firebase/firebase-admin-java",
"path": "src/main/java/com/google/firebase/messaging/WebpushNotification.java",
"license": "apache-2.0",
"size": 11513
} | [
"com.google.api.client.util.Key",
"com.google.common.base.Preconditions",
"com.google.common.base.Strings",
"com.google.firebase.internal.Nullable",
"java.util.ArrayList",
"java.util.HashMap",
"java.util.List",
"java.util.Map"
] | import com.google.api.client.util.Key; import com.google.common.base.Preconditions; import com.google.common.base.Strings; import com.google.firebase.internal.Nullable; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; | import com.google.api.client.util.*; import com.google.common.base.*; import com.google.firebase.internal.*; import java.util.*; | [
"com.google.api",
"com.google.common",
"com.google.firebase",
"java.util"
] | com.google.api; com.google.common; com.google.firebase; java.util; | 1,684,523 |
protected void close() {
int rowcount = -1;
try {
cancelCancelTask();
if (moreWorkTask != null) {
moreWorkTask.cancel(false);
moreWorkTask = null;
}
if (this.resultsBuffer != null) {
if (this.processor != null) {
this.processor.closeProcessing();
if (LogManager.isMessageToB... | void function() { int rowcount = -1; try { cancelCancelTask(); if (moreWorkTask != null) { moreWorkTask.cancel(false); moreWorkTask = null; } if (this.resultsBuffer != null) { if (this.processor != null) { this.processor.closeProcessing(); if (LogManager.isMessageToBeRecorded(LogConstants.CTX_DQP, MessageLevel.DETAIL))... | /**
* Client close is currently implemented as asynch.
* Any errors that occur will not make it to the client, instead we just log them here.
*/ | Client close is currently implemented as asynch. Any errors that occur will not make it to the client, instead we just log them here | close | {
"repo_name": "kenweezy/teiid",
"path": "engine/src/main/java/org/teiid/dqp/internal/process/RequestWorkItem.java",
"license": "lgpl-2.1",
"size": 49558
} | [
"java.util.ArrayList",
"java.util.List",
"org.teiid.client.xa.XATransactionException",
"org.teiid.dqp.service.TransactionContext",
"org.teiid.logging.CommandLogMessage",
"org.teiid.logging.LogConstants",
"org.teiid.logging.LogManager",
"org.teiid.logging.MessageLevel",
"org.teiid.query.QueryPlugin",... | import java.util.ArrayList; import java.util.List; import org.teiid.client.xa.XATransactionException; import org.teiid.dqp.service.TransactionContext; import org.teiid.logging.CommandLogMessage; import org.teiid.logging.LogConstants; import org.teiid.logging.LogManager; import org.teiid.logging.MessageLevel; import org... | import java.util.*; import org.teiid.client.xa.*; import org.teiid.dqp.service.*; import org.teiid.logging.*; import org.teiid.query.*; import org.teiid.query.util.*; | [
"java.util",
"org.teiid.client",
"org.teiid.dqp",
"org.teiid.logging",
"org.teiid.query"
] | java.util; org.teiid.client; org.teiid.dqp; org.teiid.logging; org.teiid.query; | 2,270,826 |
ActionFuture<PendingClusterTasksResponse> pendingClusterTasks(PendingClusterTasksRequest request); | ActionFuture<PendingClusterTasksResponse> pendingClusterTasks(PendingClusterTasksRequest request); | /**
* Returns a list of the pending cluster tasks, that are scheduled to be executed. This includes operations
* that update the cluster state (for example, a create index operation)
*/ | Returns a list of the pending cluster tasks, that are scheduled to be executed. This includes operations that update the cluster state (for example, a create index operation) | pendingClusterTasks | {
"repo_name": "coding0011/elasticsearch",
"path": "server/src/main/java/org/elasticsearch/client/ClusterAdminClient.java",
"license": "apache-2.0",
"size": 26995
} | [
"org.elasticsearch.action.ActionFuture",
"org.elasticsearch.action.admin.cluster.tasks.PendingClusterTasksRequest",
"org.elasticsearch.action.admin.cluster.tasks.PendingClusterTasksResponse"
] | import org.elasticsearch.action.ActionFuture; import org.elasticsearch.action.admin.cluster.tasks.PendingClusterTasksRequest; import org.elasticsearch.action.admin.cluster.tasks.PendingClusterTasksResponse; | import org.elasticsearch.action.*; import org.elasticsearch.action.admin.cluster.tasks.*; | [
"org.elasticsearch.action"
] | org.elasticsearch.action; | 2,036,639 |
private AcceleratorSeq export(Subsystem parentSystem, Collection<Subsystem> systems, double parentsCurrentPosition,
Comparator<Subsystem> comparator) {
String parentSystemName = parentSystem != null ? parentSystem.getName().toUpperCase() : null;
AcceleratorSeq seq = new AcceleratorSeq... | AcceleratorSeq function(Subsystem parentSystem, Collection<Subsystem> systems, double parentsCurrentPosition, Comparator<Subsystem> comparator) { String parentSystemName = parentSystem != null ? parentSystem.getName().toUpperCase() : null; AcceleratorSeq seq = new AcceleratorSeq(parentSystemName); double currentPositio... | /**
* Main recursive exporting/conversion procedure to SMF.
*
* @param parentSystem system for which data will be exported
* @param systems all BLED systems
* @param parentsCurrentPosition position of parent system
* @return AcceleratorSeq exported openxal accelerator sequence
... | Main recursive exporting/conversion procedure to SMF | export | {
"repo_name": "EuropeanSpallationSource/openxal",
"path": "extensions/tracewin/src/main/java/xal/extension/tracewinimporter/openxalexporter/OpenXalExporter.java",
"license": "bsd-3-clause",
"size": 28608
} | [
"eu.ess.bled.Subsystem",
"eu.ess.bled.devices.lattice.BeamlineElement",
"eu.ess.bled.devices.lattice.Bend",
"eu.ess.bled.devices.lattice.Corrector",
"eu.ess.bled.devices.lattice.DTLCell",
"eu.ess.bled.devices.lattice.Drift",
"eu.ess.bled.devices.lattice.FieldMap",
"eu.ess.bled.devices.lattice.LatticeC... | import eu.ess.bled.Subsystem; import eu.ess.bled.devices.lattice.BeamlineElement; import eu.ess.bled.devices.lattice.Bend; import eu.ess.bled.devices.lattice.Corrector; import eu.ess.bled.devices.lattice.DTLCell; import eu.ess.bled.devices.lattice.Drift; import eu.ess.bled.devices.lattice.FieldMap; import eu.ess.bled.d... | import eu.ess.bled.*; import eu.ess.bled.devices.lattice.*; import java.util.*; | [
"eu.ess.bled",
"java.util"
] | eu.ess.bled; java.util; | 2,774,656 |
public int user(final String username) throws IOException
{
return sendCommand(FTPCmd.USER, username);
} | int function(final String username) throws IOException { return sendCommand(FTPCmd.USER, username); } | /**
* A convenience method to send the FTP USER command to the server,
* receive the reply, and return the reply code.
*
* @param username The username to login under.
* @return The reply code received from the server.
* @throws FTPConnectionClosedException
* If the FTP server p... | A convenience method to send the FTP USER command to the server, receive the reply, and return the reply code | user | {
"repo_name": "apache/commons-net",
"path": "src/main/java/org/apache/commons/net/ftp/FTP.java",
"license": "apache-2.0",
"size": 80585
} | [
"java.io.IOException"
] | import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 2,111,599 |
AttributeDefinition getAttributeDefinition(); | AttributeDefinition getAttributeDefinition(); | /**
* Return attributes definition which is represented by the module
*
* @return attribute definition
*
*/ | Return attributes definition which is represented by the module | getAttributeDefinition | {
"repo_name": "Natrezim/perun",
"path": "perun-core/src/main/java/cz/metacentrum/perun/core/implApi/modules/attributes/AttributesModuleImplApi.java",
"license": "bsd-2-clause",
"size": 1057
} | [
"cz.metacentrum.perun.core.api.AttributeDefinition"
] | import cz.metacentrum.perun.core.api.AttributeDefinition; | import cz.metacentrum.perun.core.api.*; | [
"cz.metacentrum.perun"
] | cz.metacentrum.perun; | 1,022,443 |
public static void validateOwner(String userId, String groupId, APIConsumer apiConsumer)
throws APIManagementException {
Subscriber subscriber = apiConsumer.getSubscriber(userId);
try {
if (subscriber == null && !APIUtil.isPermissionCheckDisabled()) {
APIUtil.... | static void function(String userId, String groupId, APIConsumer apiConsumer) throws APIManagementException { Subscriber subscriber = apiConsumer.getSubscriber(userId); try { if (subscriber == null && !APIUtil.isPermissionCheckDisabled()) { APIUtil.checkPermission(userId, APIConstants.Permissions.API_SUBSCRIBE); apiCons... | /**
* Check whether a provided userId corresponds to a valid consumer of the store and subscribe if valid
*
* @param userId Username of the Owner
* @param groupId The groupId to which the target subscriber belongs to
* @param apiConsumer API Consumer
* @throws APIManagementExcepti... | Check whether a provided userId corresponds to a valid consumer of the store and subscribe if valid | validateOwner | {
"repo_name": "wso2/carbon-apimgt",
"path": "components/apimgt/org.wso2.carbon.apimgt.rest.api.store.v1/src/main/java/org/wso2/carbon/apimgt/rest/api/store/v1/utils/ImportUtils.java",
"license": "apache-2.0",
"size": 16995
} | [
"org.wso2.carbon.apimgt.api.APIConsumer",
"org.wso2.carbon.apimgt.api.APIManagementException",
"org.wso2.carbon.apimgt.api.model.Subscriber",
"org.wso2.carbon.apimgt.impl.APIConstants",
"org.wso2.carbon.apimgt.impl.utils.APIUtil"
] | import org.wso2.carbon.apimgt.api.APIConsumer; import org.wso2.carbon.apimgt.api.APIManagementException; import org.wso2.carbon.apimgt.api.model.Subscriber; import org.wso2.carbon.apimgt.impl.APIConstants; import org.wso2.carbon.apimgt.impl.utils.APIUtil; | import org.wso2.carbon.apimgt.api.*; import org.wso2.carbon.apimgt.api.model.*; import org.wso2.carbon.apimgt.impl.*; import org.wso2.carbon.apimgt.impl.utils.*; | [
"org.wso2.carbon"
] | org.wso2.carbon; | 1,052,997 |
public void setViewBounds(Rectangle bounds) {
fView = bounds;
repaint();
} | void function(Rectangle bounds) { fView = bounds; repaint(); } | /**
* Sets the bounds of the visible fView. Used by a SDSrcollPane-Object.
*
* @param bounds
* the bounds of the actual visible fView
*/ | Sets the bounds of the visible fView. Used by a SDSrcollPane-Object | setViewBounds | {
"repo_name": "vnu-dse/rtl",
"path": "src/gui/org/tzi/use/gui/views/seqDiag/SequenceDiagram.java",
"license": "gpl-2.0",
"size": 156112
} | [
"java.awt.Rectangle"
] | import java.awt.Rectangle; | import java.awt.*; | [
"java.awt"
] | java.awt; | 1,672,471 |
public void setSelectedTabIndicatorColor(@ColorInt int color) {
mTabStrip.setSelectedIndicatorColor(color);
} | void function(@ColorInt int color) { mTabStrip.setSelectedIndicatorColor(color); } | /**
* Sets the tab indicator's color for the currently selected tab.
*
* @param color color to use for the indicator
* @attr ref android.support.design.R.styleable#TabLayout_tabIndicatorColor
*/ | Sets the tab indicator's color for the currently selected tab | setSelectedTabIndicatorColor | {
"repo_name": "qwertyezi/Test",
"path": "text/app/src/main/java/com/yezi/text/widget/mytablayout/MyTabLayout.java",
"license": "apache-2.0",
"size": 87196
} | [
"android.support.annotation.ColorInt"
] | import android.support.annotation.ColorInt; | import android.support.annotation.*; | [
"android.support"
] | android.support; | 1,536,374 |
@Override
public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {
if(key.equals("sensitivity_3D")) {
sMouseSensitivity3d = Float.parseFloat(sharedPreferences.getString(key, "2000.0"));
} else {
sMouseSensitivity2d = Float.parseFloat(shared... | void function(SharedPreferences sharedPreferences, String key) { if(key.equals(STR)) { sMouseSensitivity3d = Float.parseFloat(sharedPreferences.getString(key, STR)); } else { sMouseSensitivity2d = Float.parseFloat(sharedPreferences.getString(key, "1.5")); } SharedPreferences.Editor editor = sSharedPrefs.edit(); editor.... | /**
* Overrides the
* <code>
* OnSharedPreferenceChangeListener.onSharedPreferenceChanged
* (SharedPreferences, String)
* </code>
* method of the Android API.
*
* @param sharedPreferences the <code>SharedPreferences</code>
* that received the... | Overrides the <code> OnSharedPreferenceChangeListener.onSharedPreferenceChanged (SharedPreferences, String) </code> method of the Android API | onSharedPreferenceChanged | {
"repo_name": "montimaj/Remouse",
"path": "app/src/main/java/project/android/SettingsActivity.java",
"license": "gpl-3.0",
"size": 4819
} | [
"android.content.SharedPreferences"
] | import android.content.SharedPreferences; | import android.content.*; | [
"android.content"
] | android.content; | 2,477,998 |
void scan(AndroidBackend androidBackend, Method method, Class<?> glueCodeClass) {
for (Class<? extends Annotation> cucumberAnnotationClass : mCucumberAnnotationClasses) {
Annotation annotation = method.getAnnotation(cucumberAnnotationClass);
if (annotation != null) {
... | void scan(AndroidBackend androidBackend, Method method, Class<?> glueCodeClass) { for (Class<? extends Annotation> cucumberAnnotationClass : mCucumberAnnotationClasses) { Annotation annotation = method.getAnnotation(cucumberAnnotationClass); if (annotation != null) { if (!method.getDeclaringClass().isAssignableFrom(glu... | /**
* Registers step definitions and hooks.
*
* @param androidBackend the backend where stepdefs and hooks will be registered.
* @param method a candidate for being a stepdef or hook.
* @param glueCodeClass the class where the method is declared.
*/ | Registers step definitions and hooks | scan | {
"repo_name": "polok/CucumberAndroidGradle",
"path": "project_libs/cucumber-android/src/cucumber/runtime/android/AndroidClasspathMethodScanner.java",
"license": "apache-2.0",
"size": 4552
} | [
"java.lang.annotation.Annotation",
"java.lang.reflect.Method"
] | import java.lang.annotation.Annotation; import java.lang.reflect.Method; | import java.lang.annotation.*; import java.lang.reflect.*; | [
"java.lang"
] | java.lang; | 1,925,540 |
private Rule loadRule(String className, String message,
Properties properties) throws ConQATException {
try {
Class<?> ruleClass = Class.forName(className);
Rule rule = (Rule) ruleClass.newInstance();
rule.setMessage(message);
if (properties != null) {
for (Object key : properties.keySet()) {
... | Rule function(String className, String message, Properties properties) throws ConQATException { try { Class<?> ruleClass = Class.forName(className); Rule rule = (Rule) ruleClass.newInstance(); rule.setMessage(message); if (properties != null) { for (Object key : properties.keySet()) { String value = properties.getPrope... | /**
* Load a rule using reflection.
*
* @throws ConQATException
* if loading failed.
*/ | Load a rule using reflection | loadRule | {
"repo_name": "vimaier/conqat",
"path": "org.conqat.engine.java/src/org/conqat/engine/java/analyzer/PMDAnalyzerDelegate.java",
"license": "apache-2.0",
"size": 9760
} | [
"java.util.Properties",
"net.sourceforge.pmd.Rule",
"net.sourceforge.pmd.lang.rule.properties.StringProperty",
"org.conqat.engine.core.core.ConQATException"
] | import java.util.Properties; import net.sourceforge.pmd.Rule; import net.sourceforge.pmd.lang.rule.properties.StringProperty; import org.conqat.engine.core.core.ConQATException; | import java.util.*; import net.sourceforge.pmd.*; import net.sourceforge.pmd.lang.rule.properties.*; import org.conqat.engine.core.core.*; | [
"java.util",
"net.sourceforge.pmd",
"org.conqat.engine"
] | java.util; net.sourceforge.pmd; org.conqat.engine; | 1,200,634 |
public final void setTransformationMethod(TransformationMethod method)
{
if (method == mTransformation)
{
// Avoid the setText() below if the transformation is
// the same.
return;
}
if (mTransformation != null)
{
if (mText instanceof Spannable)
{
((Spannable) mText).removeSpan(mTransfo... | final void function(TransformationMethod method) { if (method == mTransformation) { return; } if (mTransformation != null) { if (mText instanceof Spannable) { ((Spannable) mText).removeSpan(mTransformation); } } mTransformation = method; if (method instanceof TransformationMethod2) { TransformationMethod2 method2 = (Tr... | /**
* Sets the transformation that is applied to the text that this
* TextView is displaying.
*
* @attr ref android.R.styleable#TextView_password
* @attr ref android.R.styleable#TextView_singleLine
*/ | Sets the transformation that is applied to the text that this TextView is displaying | setTransformationMethod | {
"repo_name": "haikuowuya/android_system_code",
"path": "src/android/widget/TextView.java",
"license": "apache-2.0",
"size": 271830
} | [
"android.text.Editable",
"android.text.Spannable",
"android.text.method.TransformationMethod",
"android.text.method.TransformationMethod2"
] | import android.text.Editable; import android.text.Spannable; import android.text.method.TransformationMethod; import android.text.method.TransformationMethod2; | import android.text.*; import android.text.method.*; | [
"android.text"
] | android.text; | 31,399 |
public int binarySearch(char value) {
int idx = Arrays.binarySearch(data, 0, this.size, value);
return idx;
} | int function(char value) { int idx = Arrays.binarySearch(data, 0, this.size, value); return idx; } | /** Search for the index of a value in this sorted list
* @param value the value to search for in this list
* @return the index of the search value if it is contained in this list;
* otherwise, <tt>(-(<i>insertion point</i>) - 1)</tt>. The <i>insertion point</i> is defined
* as the point at which the key would... | Search for the index of a value in this sorted list | binarySearch | {
"repo_name": "TeamworkGuy2/JPrimitiveCollections",
"path": "src/twg2/collections/primitiveCollections/CharListSorted.java",
"license": "mit",
"size": 12773
} | [
"java.util.Arrays"
] | import java.util.Arrays; | import java.util.*; | [
"java.util"
] | java.util; | 2,482,352 |
protected List getBeansToUpdate(Class beanType) {
final ApplicationContext ac = getApplicationContext();
final List listeners = new ArrayList();
if( ac != null ) {
if( logger.isDebugEnabled() )
logger.debug( "Constructing list of beans to notify; bean type=" + be... | List function(Class beanType) { final ApplicationContext ac = getApplicationContext(); final List listeners = new ArrayList(); if( ac != null ) { if( logger.isDebugEnabled() ) logger.debug( STR + beanType.getName() ); final Map map = ac.getBeansOfType( beanType, false, true ); if( logger.isDebugEnabled() ) logger.debug... | /**
* Construct the list of all the beans we need to update.
* @param beanType Type of bean to locate
* @return List of all beans to udpate.
*/ | Construct the list of all the beans we need to update | getBeansToUpdate | {
"repo_name": "springrichclient/springrcp",
"path": "spring-richclient-core/src/main/java/org/springframework/richclient/security/SecurityAwareConfigurer.java",
"license": "apache-2.0",
"size": 10850
} | [
"java.util.ArrayList",
"java.util.List",
"java.util.Map",
"org.springframework.context.ApplicationContext"
] | import java.util.ArrayList; import java.util.List; import java.util.Map; import org.springframework.context.ApplicationContext; | import java.util.*; import org.springframework.context.*; | [
"java.util",
"org.springframework.context"
] | java.util; org.springframework.context; | 703,149 |
public boolean onWrench(World world, int x, int y, int z, EntityPlayer player, int side, float hitX, float hitY, float hitZ);
| boolean function(World world, int x, int y, int z, EntityPlayer player, int side, float hitX, float hitY, float hitZ); | /**
* Called when the wrench is used on this block
* @param world the world
* @param x the x position
* @param y the y position
* @param z the z position
* @param player the player
* @param side the side hit
* @param hitX the x position of the side hit
* @param hitY the y position of the side hit
* ... | Called when the wrench is used on this block | onWrench | {
"repo_name": "TeamCoderCraft/EnergizedPower",
"path": "src/api/java/com/codecraft/energizedpower/api/IWrenchableBlock.java",
"license": "lgpl-3.0",
"size": 2039
} | [
"net.minecraft.entity.player.EntityPlayer",
"net.minecraft.world.World"
] | import net.minecraft.entity.player.EntityPlayer; import net.minecraft.world.World; | import net.minecraft.entity.player.*; import net.minecraft.world.*; | [
"net.minecraft.entity",
"net.minecraft.world"
] | net.minecraft.entity; net.minecraft.world; | 232,349 |
@ApiModelProperty(value = "A map of additional properties, keyed on the property name (private). Must match the names and types defined in the template for this type, or be an extra not from the template")
public Map<String, Property> getAdditionalProperties() {
return additionalProperties;
} | @ApiModelProperty(value = STR) Map<String, Property> function() { return additionalProperties; } | /**
* A map of additional properties, keyed on the property name (private). Must match the names and types defined in the template for this type, or be an extra not from the template
* @return additionalProperties
**/ | A map of additional properties, keyed on the property name (private). Must match the names and types defined in the template for this type, or be an extra not from the template | getAdditionalProperties | {
"repo_name": "knetikmedia/knetikcloud-java-client",
"path": "src/main/java/com/knetikcloud/model/GroupMemberResource.java",
"license": "apache-2.0",
"size": 8388
} | [
"com.knetikcloud.model.Property",
"io.swagger.annotations.ApiModelProperty",
"java.util.Map"
] | import com.knetikcloud.model.Property; import io.swagger.annotations.ApiModelProperty; import java.util.Map; | import com.knetikcloud.model.*; import io.swagger.annotations.*; import java.util.*; | [
"com.knetikcloud.model",
"io.swagger.annotations",
"java.util"
] | com.knetikcloud.model; io.swagger.annotations; java.util; | 604,605 |
public static Function<Object, List<Class>> interfaceAncestors( ) {
return InterfaceBreadthFirstTransitiveClosure.INSTANCE;
} | static Function<Object, List<Class>> function( ) { return InterfaceBreadthFirstTransitiveClosure.INSTANCE; } | /**
* Function for getting a linearized breadth-first list of classes which belong to the
* transitive-closure of
* interfaces implemented by {@code Object o}.
*
* @param o
* @return
*/ | Function for getting a linearized breadth-first list of classes which belong to the transitive-closure of interfaces implemented by Object o | interfaceAncestors | {
"repo_name": "sosilent/euca",
"path": "clc/modules/msgs/src/main/java/com/eucalyptus/util/Classes.java",
"license": "gpl-3.0",
"size": 18130
} | [
"com.google.common.base.Function",
"java.util.List"
] | import com.google.common.base.Function; import java.util.List; | import com.google.common.base.*; import java.util.*; | [
"com.google.common",
"java.util"
] | com.google.common; java.util; | 845,247 |
ReadableUser findByUserName(String userName, String storeCode, Language lang); | ReadableUser findByUserName(String userName, String storeCode, Language lang); | /**
* Finds a User by userName
*
* @return
* @throws Exception
*/ | Finds a User by userName | findByUserName | {
"repo_name": "shopizer-ecommerce/shopizer",
"path": "sm-shop-model/src/main/java/com/salesmanager/shop/store/controller/user/facade/UserFacade.java",
"license": "apache-2.0",
"size": 4129
} | [
"com.salesmanager.core.model.reference.language.Language",
"com.salesmanager.shop.model.user.ReadableUser"
] | import com.salesmanager.core.model.reference.language.Language; import com.salesmanager.shop.model.user.ReadableUser; | import com.salesmanager.core.model.reference.language.*; import com.salesmanager.shop.model.user.*; | [
"com.salesmanager.core",
"com.salesmanager.shop"
] | com.salesmanager.core; com.salesmanager.shop; | 1,652,240 |
if (e.getParameter() != null) {
throw new InvalidUsageException(msg.getString("exception.argument.missing", e.getParameter().getName()),
context.getCommand(), context.getAliasStack(), false, e);
}
throw new InvalidUsageException(msg.getString("exception.argument.missing.unknown"), context.getCom... | if (e.getParameter() != null) { throw new InvalidUsageException(msg.getString(STR, e.getParameter().getName()), context.getCommand(), context.getAliasStack(), false, e); } throw new InvalidUsageException(msg.getString(STR), context.getCommand(), context.getAliasStack(), false, e); } | /**
* Converts a MissingArgumentException to an InvalidUsageException.
*
* @param e the MissingArgumentException
* @param context the context {@code e} was thrown in
* @throws InvalidUsageException the converted exception
*/ | Converts a MissingArgumentException to an InvalidUsageException | convert | {
"repo_name": "TheE/MyWarp",
"path": "mywarp-core/src/main/java/io/github/mywarp/mywarp/command/parametric/ExceptionConverter.java",
"license": "gpl-3.0",
"size": 7392
} | [
"com.sk89q.intake.InvalidUsageException"
] | import com.sk89q.intake.InvalidUsageException; | import com.sk89q.intake.*; | [
"com.sk89q.intake"
] | com.sk89q.intake; | 793,857 |
public void flushFile()
throws IOException {
}
| void function() throws IOException { } | /**
* Flush any buffered output to the file
*
* @throws IOException
*/ | Flush any buffered output to the file | flushFile | {
"repo_name": "arcusys/Liferay-CIFS",
"path": "source/java/org/alfresco/jlan/server/filesys/db/DirectoryNetworkFile.java",
"license": "gpl-3.0",
"size": 3353
} | [
"java.io.IOException"
] | import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 1,679,695 |
public void unregisterAll() throws ProActiveException {
// Keep a reference for debug
@SuppressWarnings("unchecked")
LinkedHashMap<URI, InternalRemoteRemoteObject> cloned = (LinkedHashMap<URI, InternalRemoteRemoteObject>) this.activeRemoteRemoteObjects
.clone();
for ... | void function() throws ProActiveException { @SuppressWarnings(STR) LinkedHashMap<URI, InternalRemoteRemoteObject> cloned = (LinkedHashMap<URI, InternalRemoteRemoteObject>) this.activeRemoteRemoteObjects .clone(); for (URI uri : cloned.keySet()) { try { PARemoteObject.unregister(uri); } catch (ProActiveException e) { LO... | /**
* unregister all the remote references on the remote object.
*/ | unregister all the remote references on the remote object | unregisterAll | {
"repo_name": "lpellegr/programming",
"path": "programming-core/src/main/java/org/objectweb/proactive/core/remoteobject/RemoteObjectExposer.java",
"license": "agpl-3.0",
"size": 16435
} | [
"java.util.LinkedHashMap",
"org.objectweb.proactive.api.PARemoteObject",
"org.objectweb.proactive.core.ProActiveException"
] | import java.util.LinkedHashMap; import org.objectweb.proactive.api.PARemoteObject; import org.objectweb.proactive.core.ProActiveException; | import java.util.*; import org.objectweb.proactive.api.*; import org.objectweb.proactive.core.*; | [
"java.util",
"org.objectweb.proactive"
] | java.util; org.objectweb.proactive; | 2,793,065 |
@Override
public void contributeToMenu(IMenuManager menuManager) {
super.contributeToMenu(menuManager);
IMenuManager submenuManager = new MenuManager(TurtlebotmissionEditorPlugin.INSTANCE.getString("_UI_TurtlebotmissionEditor_menu"), "turtlebotmissionMenuID");
menuManager.insertAfter("additions", submen... | void function(IMenuManager menuManager) { super.contributeToMenu(menuManager); IMenuManager submenuManager = new MenuManager(TurtlebotmissionEditorPlugin.INSTANCE.getString(STR), STR); menuManager.insertAfter(STR, submenuManager); submenuManager.add(new Separator(STR)); submenuManager.add(new Separator(STR)); submenuMa... | /**
* This adds to the menu bar a menu and some separators for editor additions,
* as well as the sub-menus for object creation items.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/ | This adds to the menu bar a menu and some separators for editor additions, as well as the sub-menus for object creation items. | contributeToMenu | {
"repo_name": "kribe48/wasp-mbse",
"path": "WASP-turtlebot-DSL/CodeFrame/se.chalmers.turtlebotmission.editor/src/turtlebotmission/presentation/TurtlebotmissionActionBarContributor.java",
"license": "mit",
"size": 14508
} | [
"org.eclipse.jface.action.IMenuManager",
"org.eclipse.jface.action.MenuManager",
"org.eclipse.jface.action.Separator"
] | import org.eclipse.jface.action.IMenuManager; import org.eclipse.jface.action.MenuManager; import org.eclipse.jface.action.Separator; | import org.eclipse.jface.action.*; | [
"org.eclipse.jface"
] | org.eclipse.jface; | 522,497 |
private void writeObject(ObjectOutputStream out) throws IOException {
maybeParse();
out.defaultWriteObject();
} | void function(ObjectOutputStream out) throws IOException { maybeParse(); out.defaultWriteObject(); } | /**
* Ensure object is fully parsed before invoking java serialization. The backing byte array
* is transient so if the object has parseLazy = true and hasn't invoked checkParse yet
* then data will be lost during serialization.
*/ | Ensure object is fully parsed before invoking java serialization. The backing byte array is transient so if the object has parseLazy = true and hasn't invoked checkParse yet then data will be lost during serialization | writeObject | {
"repo_name": "kris-davison/fuelcoinj",
"path": "core/src/main/java/com/fuelcoinj/core/TransactionOutPoint.java",
"license": "apache-2.0",
"size": 8859
} | [
"java.io.IOException",
"java.io.ObjectOutputStream"
] | import java.io.IOException; import java.io.ObjectOutputStream; | import java.io.*; | [
"java.io"
] | java.io; | 209,241 |
@JsonSerialize(include = Inclusion.NON_NULL)
public String getUpstreamDuplicates() {
return upstreamDuplicates;
} | @JsonSerialize(include = Inclusion.NON_NULL) String function() { return upstreamDuplicates; } | /**
* Gets the IRIs identifying objects that this object's content duplicates.
*
* @return A JSON Array of one or more absolute IRIs
*/ | Gets the IRIs identifying objects that this object's content duplicates | getUpstreamDuplicates | {
"repo_name": "RobertWalsh/apigee-android-sdk",
"path": "source/src/main/java/com/apigee/sdk/data/client/entities/Activity.java",
"license": "apache-2.0",
"size": 29588
} | [
"com.fasterxml.jackson.databind.annotation.JsonSerialize"
] | import com.fasterxml.jackson.databind.annotation.JsonSerialize; | import com.fasterxml.jackson.databind.annotation.*; | [
"com.fasterxml.jackson"
] | com.fasterxml.jackson; | 1,217,412 |
synchronized Set copySafeToDeleteFiles() {
if (safeToDeleteFiles.size() == 0) {
return null;
} else {
return new HashSet(safeToDeleteFiles);
}
} | synchronized Set copySafeToDeleteFiles() { if (safeToDeleteFiles.size() == 0) { return null; } else { return new HashSet(safeToDeleteFiles); } } | /**
* Returns a copy of the safe-to-delete files.
*/ | Returns a copy of the safe-to-delete files | copySafeToDeleteFiles | {
"repo_name": "nologic/nabs",
"path": "client/trunk/shared/libraries/je-3.2.44/src/com/sleepycat/je/cleaner/FileSelector.java",
"license": "gpl-2.0",
"size": 18185
} | [
"java.util.HashSet",
"java.util.Set"
] | import java.util.HashSet; import java.util.Set; | import java.util.*; | [
"java.util"
] | java.util; | 1,157,260 |
public void setContentAction(Action act) {
if (act.entry != null && act.entry != this) {
Log.e(TAG, "setContentAction failed. Already applied to another notification - " +
act.entry.ID + ". Current notification is " + ID);
return;
}
this.contentActio... | void function(Action act) { if (act.entry != null && act.entry != this) { Log.e(TAG, STR + act.entry.ID + STR + ID); return; } this.contentAction = act; this.contentAction.entry = this; this.contentAction.title = STR; } | /**
* Set a action to be fired when the notification content gets clicked.
*
* @param act
*/ | Set a action to be fired when the notification content gets clicked | setContentAction | {
"repo_name": "lamydev/Android-Notification",
"path": "core/src/zemin/notification/NotificationEntry.java",
"license": "apache-2.0",
"size": 27354
} | [
"android.util.Log"
] | import android.util.Log; | import android.util.*; | [
"android.util"
] | android.util; | 2,600,877 |
StringBuilder sb = new StringBuilder("");
setWordCharacters(word);
for(int i = 0; i < wordCharacters.length; i++){
if(wordCharacters[i].matches("[a-zA-Z]")){
Integer val = (characterValues.get(wordCharacters[i]) + (characterValues.get(keyCharacters[i % keyCharacters.length]))) % 26;
for(HashMap.Entry<S... | StringBuilder sb = new StringBuilder(STR[a-zA-Z]")){ Integer val = (characterValues.get(wordCharacters[i]) + (characterValues.get(keyCharacters[i % keyCharacters.length]))) % 26; for(HashMap.Entry<String, Integer> letterValuePair : characterValues.entrySet()){ if(val.equals(letterValuePair.getValue())){ sb.append(lette... | /** Encrypts the plaintext.
* NOTE: Although non-alphabetical characters aren't shifted, the position of the key will move as if it had been. e.g. "A@B" with key: "Ab" would be encrypted to "A@B"
*
* @param word The plaintext to be encrypted.
*/ | Encrypts the plaintext | encrypt | {
"repo_name": "JRIngram/CipherCollection",
"path": "src/ingram/jr/cipherCollection/ciphers/Vigenere.java",
"license": "mit",
"size": 3215
} | [
"java.util.HashMap"
] | import java.util.HashMap; | import java.util.*; | [
"java.util"
] | java.util; | 142,864 |
@Override
public synchronized void updateObject(String columnName, Object x, int scale) throws SQLException {
updateObject(findColumn(columnName), x);
} | synchronized void function(String columnName, Object x, int scale) throws SQLException { updateObject(findColumn(columnName), x); } | /**
* JDBC 2.0 Update a column with an Object value. The updateXXX() methods
* are used to update column values in the current row, or the insert row.
* The updateXXX() methods do not update the underlying database, instead
* the updateRow() or insertRow() methods are called to update the database.
... | JDBC 2.0 Update a column with an Object value. The updateXXX() methods are used to update column values in the current row, or the insert row. The updateXXX() methods do not update the underlying database, instead the updateRow() or insertRow() methods are called to update the database | updateObject | {
"repo_name": "slockhart/sql-app",
"path": "mysql-connector-java-5.1.34/src/com/mysql/jdbc/UpdatableResultSet.java",
"license": "gpl-2.0",
"size": 93047
} | [
"java.sql.SQLException"
] | import java.sql.SQLException; | import java.sql.*; | [
"java.sql"
] | java.sql; | 2,284,264 |
private UnicodeSet applyPropertyPattern(String pattern, ParsePosition ppos, SymbolTable symbols) {
int pos = ppos.getIndex();
// On entry, ppos should point to one of the following locations:
// Minimum length is 5 characters, e.g. \p{L}
if ((pos+5) > pattern.length()) {
... | UnicodeSet function(String pattern, ParsePosition ppos, SymbolTable symbols) { int pos = ppos.getIndex(); if ((pos+5) > pattern.length()) { return null; } boolean posix = false; boolean isName = false; boolean invert = false; if (pattern.regionMatches(pos, "[:", 0, 2)) { posix = true; pos = Utility.skipWhitespace(patte... | /**
* Parse the given property pattern at the given parse position.
* @param symbols TODO
*/ | Parse the given property pattern at the given parse position | applyPropertyPattern | {
"repo_name": "Taichi-SHINDO/jdk9-jdk",
"path": "src/java.base/share/classes/sun/text/normalizer/UnicodeSet.java",
"license": "gpl-2.0",
"size": 70611
} | [
"java.text.ParsePosition"
] | import java.text.ParsePosition; | import java.text.*; | [
"java.text"
] | java.text; | 1,818,808 |
List<Game> getLastGame(); | List<Game> getLastGame(); | /**
* Retrieve the last inserted game.
*
* @return The last inserted game.
*/ | Retrieve the last inserted game | getLastGame | {
"repo_name": "EaW1805/data",
"path": "src/main/java/com/eaw1805/data/managers/beans/GameManagerBean.java",
"license": "mit",
"size": 2978
} | [
"com.eaw1805.data.model.Game",
"java.util.List"
] | import com.eaw1805.data.model.Game; import java.util.List; | import com.eaw1805.data.model.*; import java.util.*; | [
"com.eaw1805.data",
"java.util"
] | com.eaw1805.data; java.util; | 451,399 |
@VisibleForTesting
@CalledByNativeUnchecked("BookmarkNode")
public void addChild(BookmarkNode child) {
mChildren.add(child);
} | @CalledByNativeUnchecked(STR) void function(BookmarkNode child) { mChildren.add(child); } | /**
* Adds a child to this node.
*
* <p>
* Used solely by the native code.
*/ | Adds a child to this node. Used solely by the native code | addChild | {
"repo_name": "ds-hwang/chromium-crosswalk",
"path": "chrome/android/java/src/org/chromium/chrome/browser/provider/ChromeBrowserProvider.java",
"license": "bsd-3-clause",
"size": 60744
} | [
"org.chromium.base.annotations.CalledByNativeUnchecked"
] | import org.chromium.base.annotations.CalledByNativeUnchecked; | import org.chromium.base.annotations.*; | [
"org.chromium.base"
] | org.chromium.base; | 1,739,865 |
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
return inflater.inflate(R.layout.fragment_agenda, container, false);
} | View function(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { return inflater.inflate(R.layout.fragment_agenda, container, false); } | /**
* infla el Fragmento AgendaFragment
*/ | infla el Fragmento AgendaFragment | onCreateView | {
"repo_name": "Capriatto/campusUQ",
"path": "app/src/main/java/co/edu/uniquindio/android/electiva/practica_navegation_drawer/Activity/fragment/AgendaFragment.java",
"license": "cc0-1.0",
"size": 3340
} | [
"android.os.Bundle",
"android.view.LayoutInflater",
"android.view.View",
"android.view.ViewGroup"
] | import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; | import android.os.*; import android.view.*; | [
"android.os",
"android.view"
] | android.os; android.view; | 192,420 |
public void setSubject(Subject subject) {
_subject = subject;
} | void function(Subject subject) { _subject = subject; } | /**
* Set remote subject explicitly
*/ | Set remote subject explicitly | setSubject | {
"repo_name": "erikdw/storm",
"path": "storm-client/src/jvm/org/apache/storm/security/auth/ReqContext.java",
"license": "apache-2.0",
"size": 4655
} | [
"javax.security.auth.Subject"
] | import javax.security.auth.Subject; | import javax.security.auth.*; | [
"javax.security"
] | javax.security; | 1,792,854 |
protected void readStructureFromNBT(NBTTagCompound tagCompound)
{
super.readStructureFromNBT(tagCompound);
this.isRoofAccessible = tagCompound.getBoolean("Terrace");
} | void function(NBTTagCompound tagCompound) { super.readStructureFromNBT(tagCompound); this.isRoofAccessible = tagCompound.getBoolean(STR); } | /**
* (abstract) Helper method to read subclass data from NBT
*/ | (abstract) Helper method to read subclass data from NBT | readStructureFromNBT | {
"repo_name": "aebert1/BigTransport",
"path": "build/tmp/recompileMc/sources/net/minecraft/world/gen/structure/StructureVillagePieces.java",
"license": "gpl-3.0",
"size": 130983
} | [
"net.minecraft.nbt.NBTTagCompound"
] | import net.minecraft.nbt.NBTTagCompound; | import net.minecraft.nbt.*; | [
"net.minecraft.nbt"
] | net.minecraft.nbt; | 2,841,848 |
public static java.util.Set extractCatsReferralSet(ims.domain.ILightweightDomainFactory domainFactory, ims.RefMan.vo.CatsReferralRttDateForTheatreListVoCollection voCollection)
{
return extractCatsReferralSet(domainFactory, voCollection, null, new HashMap());
}
| static java.util.Set function(ims.domain.ILightweightDomainFactory domainFactory, ims.RefMan.vo.CatsReferralRttDateForTheatreListVoCollection voCollection) { return extractCatsReferralSet(domainFactory, voCollection, null, new HashMap()); } | /**
* Create the ims.RefMan.domain.objects.CatsReferral set from the value object collection.
* @param domainFactory - used to create existing (persistent) domain objects.
* @param voCollection - the collection of value objects
*/ | Create the ims.RefMan.domain.objects.CatsReferral set from the value object collection | extractCatsReferralSet | {
"repo_name": "FreudianNM/openMAXIMS",
"path": "Source Library/openmaxims_workspace/ValueObjects/src/ims/RefMan/vo/domain/CatsReferralRttDateForTheatreListVoAssembler.java",
"license": "agpl-3.0",
"size": 17440
} | [
"java.util.HashMap"
] | import java.util.HashMap; | import java.util.*; | [
"java.util"
] | java.util; | 401,747 |
private XYSeries createSeries1() {
XYSeries series1 = new XYSeries("Series 1", true, false);
series1.add(1.0, 1.0);
series1.add(2.0, 1.0);
series1.add(4.0, 1.0);
series1.add(5.0, 1.0);
return series1;
} | XYSeries function() { XYSeries series1 = new XYSeries(STR, true, false); series1.add(1.0, 1.0); series1.add(2.0, 1.0); series1.add(4.0, 1.0); series1.add(5.0, 1.0); return series1; } | /**
* Creates a series for testing.
*
* @return A series.
*/ | Creates a series for testing | createSeries1 | {
"repo_name": "martingwhite/astor",
"path": "examples/chart_11/tests/org/jfree/data/xy/junit/TableXYDatasetTests.java",
"license": "gpl-2.0",
"size": 9737
} | [
"org.jfree.data.xy.XYSeries"
] | import org.jfree.data.xy.XYSeries; | import org.jfree.data.xy.*; | [
"org.jfree.data"
] | org.jfree.data; | 2,400,928 |
public List<Bucket> getBuckets() {
return bucketDao.getBuckets();
} | List<Bucket> function() { return bucketDao.getBuckets(); } | /**
* Returns all available buckets
* @return
*/ | Returns all available buckets | getBuckets | {
"repo_name": "butfriendly/friendly-dam",
"path": "src/main/java/de/soulworks/dam/webservice/service/BucketService.java",
"license": "isc",
"size": 3472
} | [
"de.soulworks.dam.domain.Bucket",
"java.util.List"
] | import de.soulworks.dam.domain.Bucket; import java.util.List; | import de.soulworks.dam.domain.*; import java.util.*; | [
"de.soulworks.dam",
"java.util"
] | de.soulworks.dam; java.util; | 187,864 |
@Generated
@Selector("setMenu:")
public native void setMenu(UIMenu value); | @Selector(STR) native void function(UIMenu value); | /**
* When non-nil the menu is presented, the gesture used to trigger the menu is based on if the bar button item would normally trigger an action when tapped.
*/ | When non-nil the menu is presented, the gesture used to trigger the menu is based on if the bar button item would normally trigger an action when tapped | setMenu | {
"repo_name": "multi-os-engine/moe-core",
"path": "moe.apple/moe.platform.ios/src/main/java/apple/uikit/UIBarButtonItem.java",
"license": "apache-2.0",
"size": 20997
} | [
"org.moe.natj.objc.ann.Selector"
] | import org.moe.natj.objc.ann.Selector; | import org.moe.natj.objc.ann.*; | [
"org.moe.natj"
] | org.moe.natj; | 1,949,874 |
@Test
@Ignore // TODO: Log4J2 - This test works within an IDE, but not from Maven. We need to figure out why.
public void testDeleteDirectoryAssertMultiObjectDeleteExceptionLogged() throws Exception
{
// Inject mock
S3Operations mockS3Operations = mock(S3Operations.class);
S3Oper... | @Ignore void function() throws Exception { S3Operations mockS3Operations = mock(S3Operations.class); S3Operations originalS3Operations = (S3Operations) ReflectionTestUtils.getField(s3Dao, STR); ReflectionTestUtils.setField(s3Dao, STR, mockS3Operations); String loggerName = S3DaoImpl.class.getName(); LogLevel originalLo... | /**
* Asserts that when delete directory is called but S3 throws MultiObjectDeleteException, the exception is logged properly.
*/ | Asserts that when delete directory is called but S3 throws MultiObjectDeleteException, the exception is logged properly | testDeleteDirectoryAssertMultiObjectDeleteExceptionLogged | {
"repo_name": "kusid/herd",
"path": "herd-code/herd-dao/src/test/java/org/finra/herd/dao/S3DaoTest.java",
"license": "apache-2.0",
"size": 138716
} | [
"com.amazonaws.services.s3.model.DeleteObjectsResult",
"com.amazonaws.services.s3.model.MultiObjectDeleteException",
"com.amazonaws.services.s3.model.S3VersionSummary",
"com.amazonaws.services.s3.model.VersionListing",
"java.io.StringWriter",
"java.util.ArrayList",
"java.util.Arrays",
"java.util.List"... | import com.amazonaws.services.s3.model.DeleteObjectsResult; import com.amazonaws.services.s3.model.MultiObjectDeleteException; import com.amazonaws.services.s3.model.S3VersionSummary; import com.amazonaws.services.s3.model.VersionListing; import java.io.StringWriter; import java.util.ArrayList; import java.util.Arrays;... | import com.amazonaws.services.s3.model.*; import java.io.*; import java.util.*; import org.finra.herd.core.helper.*; import org.finra.herd.dao.impl.*; import org.finra.herd.model.dto.*; import org.junit.*; import org.mockito.*; import org.springframework.test.util.*; | [
"com.amazonaws.services",
"java.io",
"java.util",
"org.finra.herd",
"org.junit",
"org.mockito",
"org.springframework.test"
] | com.amazonaws.services; java.io; java.util; org.finra.herd; org.junit; org.mockito; org.springframework.test; | 911,157 |
@Override
protected void startInternal() throws LifecycleException {
if(log.isInfoEnabled())
log.info(sm.getString("standardService.start.name", this.name));
setState(LifecycleState.STARTING);
// Start our defined Container first
if (container != null) {
... | void function() throws LifecycleException { if(log.isInfoEnabled()) log.info(sm.getString(STR, this.name)); setState(LifecycleState.STARTING); if (container != null) { synchronized (container) { container.start(); } } synchronized (executors) { for (Executor executor: executors) { executor.start(); } } mapperListener.s... | /**
* Start nested components ({@link Executor}s, {@link Connector}s and
* {@link Container}s) and implement the requirements of
* {@link org.apache.catalina.util.LifecycleBase#startInternal()}.
*
* @exception LifecycleException if this component detects a fatal error
* that prevent... | Start nested components (<code>Executor</code>s, <code>Connector</code>s and <code>Container</code>s) and implement the requirements of <code>org.apache.catalina.util.LifecycleBase#startInternal()</code> | startInternal | {
"repo_name": "wenzhucjy/tomcat_source",
"path": "tomcat-8.0.9-sourcecode/java/org/apache/catalina/core/StandardService.java",
"license": "apache-2.0",
"size": 19225
} | [
"org.apache.catalina.Executor",
"org.apache.catalina.LifecycleException",
"org.apache.catalina.LifecycleState",
"org.apache.catalina.connector.Connector"
] | import org.apache.catalina.Executor; import org.apache.catalina.LifecycleException; import org.apache.catalina.LifecycleState; import org.apache.catalina.connector.Connector; | import org.apache.catalina.*; import org.apache.catalina.connector.*; | [
"org.apache.catalina"
] | org.apache.catalina; | 1,636,554 |
@Override
public void addServletContainerInitializer(
ServletContainerInitializer sci, Set<Class<?>> classes) {
initializers.put(sci, classes);
} | void function( ServletContainerInitializer sci, Set<Class<?>> classes) { initializers.put(sci, classes); } | /**
* Add a ServletContainerInitializer instance to this web application.
*
* @param sci The instance to add
* @param classes The classes in which the initializer expressed an
* interest
*/ | Add a ServletContainerInitializer instance to this web application | addServletContainerInitializer | {
"repo_name": "WhiteBearSolutions/WBSAirback",
"path": "packages/wbsairback-tomcat/wbsairback-tomcat-7.0.22/java/org/apache/catalina/core/StandardContext.java",
"license": "apache-2.0",
"size": 198551
} | [
"java.util.Set",
"javax.servlet.ServletContainerInitializer"
] | import java.util.Set; import javax.servlet.ServletContainerInitializer; | import java.util.*; import javax.servlet.*; | [
"java.util",
"javax.servlet"
] | java.util; javax.servlet; | 1,555,148 |
public static HdfsFileFormat fromHdfsInputFormatClass(String inputFormatClass) {
Preconditions.checkNotNull(inputFormatClass);
return VALID_INPUT_FORMATS.get(inputFormatClass);
} | static HdfsFileFormat function(String inputFormatClass) { Preconditions.checkNotNull(inputFormatClass); return VALID_INPUT_FORMATS.get(inputFormatClass); } | /**
* Returns the file format associated with the input format class, or null if
* the input format class is not supported.
*/ | Returns the file format associated with the input format class, or null if the input format class is not supported | fromHdfsInputFormatClass | {
"repo_name": "cloudera/recordservice",
"path": "fe/src/main/java/com/cloudera/impala/catalog/HdfsFileFormat.java",
"license": "apache-2.0",
"size": 9082
} | [
"com.google.common.base.Preconditions"
] | import com.google.common.base.Preconditions; | import com.google.common.base.*; | [
"com.google.common"
] | com.google.common; | 2,798,141 |
EReference getProperty_Presence(); | EReference getProperty_Presence(); | /**
* Returns the meta object for the containment reference '{@link org.eclipse.vorto.core.api.model.datatype.Property#getPresence <em>Presence</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference '<em>Presence</em>'.
* @see org.eclipse.vorto.core.a... | Returns the meta object for the containment reference '<code>org.eclipse.vorto.core.api.model.datatype.Property#getPresence Presence</code>'. | getProperty_Presence | {
"repo_name": "nagavijays/vorto",
"path": "bundles/org.eclipse.vorto.core/src/org/eclipse/vorto/core/api/model/datatype/DatatypePackage.java",
"license": "epl-1.0",
"size": 49779
} | [
"org.eclipse.emf.ecore.EReference"
] | import org.eclipse.emf.ecore.EReference; | import org.eclipse.emf.ecore.*; | [
"org.eclipse.emf"
] | org.eclipse.emf; | 1,928,717 |
void deleteById(String recId) throws ServiceException;
| void deleteById(String recId) throws ServiceException; | /**
* Delete an record from table by its id
*
* @param recId
* Record id to be deleted
* @throws ServiceException
* When runtime error occur
*/ | Delete an record from table by its id | deleteById | {
"repo_name": "dangokuson/Harvest-JP",
"path": "harvest/src/main/java/com/nec/harvest/service/PettyCashService.java",
"license": "apache-2.0",
"size": 5098
} | [
"com.nec.harvest.exception.ServiceException"
] | import com.nec.harvest.exception.ServiceException; | import com.nec.harvest.exception.*; | [
"com.nec.harvest"
] | com.nec.harvest; | 1,439,037 |
@ServiceMethod(returns = ReturnType.SINGLE)
public void deleteDnsService(String resourceGroupName, String dnsServiceId, String privateCloudName) {
deleteDnsServiceAsync(resourceGroupName, dnsServiceId, privateCloudName).block();
} | @ServiceMethod(returns = ReturnType.SINGLE) void function(String resourceGroupName, String dnsServiceId, String privateCloudName) { deleteDnsServiceAsync(resourceGroupName, dnsServiceId, privateCloudName).block(); } | /**
* Delete a DNS service by id in a private cloud workload network.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param dnsServiceId NSX DNS Service identifier. Generally the same as the DNS Service's display name.
* @param privateCloudName Name... | Delete a DNS service by id in a private cloud workload network | deleteDnsService | {
"repo_name": "Azure/azure-sdk-for-java",
"path": "sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/WorkloadNetworksClientImpl.java",
"license": "mit",
"size": 538828
} | [
"com.azure.core.annotation.ReturnType",
"com.azure.core.annotation.ServiceMethod"
] | import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; | import com.azure.core.annotation.*; | [
"com.azure.core"
] | com.azure.core; | 1,416,541 |
public void println() {
if (addNewlines) {
try {
out.write("\n");
} catch(IOException ioe) {
throw new GroovyRuntimeException(ioe);
}
}
} | void function() { if (addNewlines) { try { out.write("\n"); } catch(IOException ioe) { throw new GroovyRuntimeException(ioe); } } } | /**
* Prints an end-of-line character (if enabled via addNewLines property).
* Defaults to outputting a single '\n' character but by using a custom
* Writer, e.g. PlatformLineWriter, you can get platform-specific
* end-of-line characters.
*
* @see #IndentPrinter(Writer, String, boolean)
... | Prints an end-of-line character (if enabled via addNewLines property). Defaults to outputting a single '\n' character but by using a custom Writer, e.g. PlatformLineWriter, you can get platform-specific end-of-line characters | println | {
"repo_name": "komalsukhani/debian-groovy2",
"path": "src/main/groovy/util/IndentPrinter.java",
"license": "apache-2.0",
"size": 6572
} | [
"groovy.lang.GroovyRuntimeException",
"java.io.IOException"
] | import groovy.lang.GroovyRuntimeException; import java.io.IOException; | import groovy.lang.*; import java.io.*; | [
"groovy.lang",
"java.io"
] | groovy.lang; java.io; | 2,355,532 |
public static Theme getRegisteredTheme(String name) {
return REGISTERED_THEMES.get(name);
} | static Theme function(String name) { return REGISTERED_THEMES.get(name); } | /**
* Returns the {@link Theme} registered with this class under {@code name}, or {@code null} if there is no such
* registration.
* @param name Name of the theme to retrieve
* @return {@link Theme} registered with the supplied name, or {@code null} if none
*/ | Returns the <code>Theme</code> registered with this class under name, or null if there is no such registration | getRegisteredTheme | {
"repo_name": "mabe02/lanterna",
"path": "src/main/java/com/googlecode/lanterna/bundle/LanternaThemes.java",
"license": "lgpl-3.0",
"size": 5388
} | [
"com.googlecode.lanterna.graphics.Theme"
] | import com.googlecode.lanterna.graphics.Theme; | import com.googlecode.lanterna.graphics.*; | [
"com.googlecode.lanterna"
] | com.googlecode.lanterna; | 1,406,578 |
public void setFixedRangeAxisSpace(AxisSpace space) {
setFixedRangeAxisSpace(space, true);
} | void function(AxisSpace space) { setFixedRangeAxisSpace(space, true); } | /**
* Sets the fixed range axis space and sends a {@link PlotChangeEvent} to
* all registered listeners.
*
* @param space the space (<code>null</code> permitted).
*
* @see #getFixedRangeAxisSpace()
*/ | Sets the fixed range axis space and sends a <code>PlotChangeEvent</code> to all registered listeners | setFixedRangeAxisSpace | {
"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.AxisSpace"
] | import org.jfree.chart.axis.AxisSpace; | import org.jfree.chart.axis.*; | [
"org.jfree.chart"
] | org.jfree.chart; | 2,686,922 |
List<ProductRelease> findAll();
| List<ProductRelease> findAll(); | /**
* Retrieve all ProductRelease created in the system.
*
* @return the existent product instances.
*/ | Retrieve all ProductRelease created in the system | findAll | {
"repo_name": "hmunfru/fiware-paas",
"path": "core/src/main/java/com/telefonica/euro_iaas/paasmanager/manager/ProductReleaseManager.java",
"license": "apache-2.0",
"size": 3028
} | [
"com.telefonica.euro_iaas.paasmanager.model.ProductRelease",
"java.util.List"
] | import com.telefonica.euro_iaas.paasmanager.model.ProductRelease; import java.util.List; | import com.telefonica.euro_iaas.paasmanager.model.*; import java.util.*; | [
"com.telefonica.euro_iaas",
"java.util"
] | com.telefonica.euro_iaas; java.util; | 709,320 |
@Override
@TargetApi(17)
public void replaceFragment(int containerResId, @NotNull BaseFragment fragment, @Nullable String fragmentTag) {
FragmentManager mgr = getChildFragmentManager();
FragmentUtils.replaceFragment(mgr, containerResId, fragment, fragmentTag);
} | @TargetApi(17) void function(int containerResId, @NotNull BaseFragment fragment, @Nullable String fragmentTag) { FragmentManager mgr = getChildFragmentManager(); FragmentUtils.replaceFragment(mgr, containerResId, fragment, fragmentTag); } | /**
* Replaces container's Fragment with the specified Fragment using the Child Fragment Manager.
* Call requires api level 17.
*/ | Replaces container's Fragment with the specified Fragment using the Child Fragment Manager. Call requires api level 17 | replaceFragment | {
"repo_name": "mokalab/Butler",
"path": "ButlerLibrary/src/main/java/com/mokalab/butler/fragments/BaseFragment.java",
"license": "apache-2.0",
"size": 6328
} | [
"android.annotation.TargetApi",
"android.support.v4.app.FragmentManager",
"com.mokalab.butler.util.FragmentUtils",
"org.jetbrains.annotations.NotNull",
"org.jetbrains.annotations.Nullable"
] | import android.annotation.TargetApi; import android.support.v4.app.FragmentManager; import com.mokalab.butler.util.FragmentUtils; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; | import android.annotation.*; import android.support.v4.app.*; import com.mokalab.butler.util.*; import org.jetbrains.annotations.*; | [
"android.annotation",
"android.support",
"com.mokalab.butler",
"org.jetbrains.annotations"
] | android.annotation; android.support; com.mokalab.butler; org.jetbrains.annotations; | 2,489,912 |
public static int getErrno(@Nullable String errorMessage) {
if (errorMessage == null) {
return 0;
}
int tagPos = errorMessage.indexOf("(errno ");
if (tagPos == -1) {
return 0;
}
int start = tagPos + "(errno ".length();
if (start >= errorMessage.length()) {
return 0;
}... | static int function(@Nullable String errorMessage) { if (errorMessage == null) { return 0; } int tagPos = errorMessage.indexOf(STR); if (tagPos == -1) { return 0; } int start = tagPos + STR.length(); if (start >= errorMessage.length()) { return 0; } int end = errorMessage.indexOf(')', start); if (end == -1) { return 0;... | /**
* Extracts the MySQL errno from a Vitess error message, if any.
*
* <p>
* If no errno information is found, it returns {@code 0}.
*/ | Extracts the MySQL errno from a Vitess error message, if any. If no errno information is found, it returns 0 | getErrno | {
"repo_name": "danielmt/vshard",
"path": "vendor/github.com/youtube/vitess/java/client/src/main/java/com/youtube/vitess/client/Proto.java",
"license": "mit",
"size": 9775
} | [
"javax.annotation.Nullable"
] | import javax.annotation.Nullable; | import javax.annotation.*; | [
"javax.annotation"
] | javax.annotation; | 2,191,292 |
private static List<Map<Number160, PeerStatistic>> initFixedMap(final int bagSize, final boolean caching) {
List<Map<Number160, PeerStatistic>> tmp = new ArrayList<Map<Number160, PeerStatistic>>();
for (int i = 0; i < Number160.BITS; i++) {
// I made some experiments here and concurrent ... | static List<Map<Number160, PeerStatistic>> function(final int bagSize, final boolean caching) { List<Map<Number160, PeerStatistic>> tmp = new ArrayList<Map<Number160, PeerStatistic>>(); for (int i = 0; i < Number160.BITS; i++) { if (caching) { tmp.add(new CacheMap<Number160, PeerStatistic>(bagSize, true)); } else { fin... | /**
* Create a fixed size bag with an unmodifiable map.
*
* @param bagSize
* The bag size
* @param caching
* If a caching map should be created
* @return The list of bags containing an unmodifiable map
*/ | Create a fixed size bag with an unmodifiable map | initFixedMap | {
"repo_name": "Biocodr/TomP2P",
"path": "core/src/main/java/net/tomp2p/peers/PeerMap.java",
"license": "apache-2.0",
"size": 31138
} | [
"java.util.ArrayList",
"java.util.Collections",
"java.util.HashMap",
"java.util.List",
"java.util.Map",
"net.tomp2p.utils.CacheMap"
] | import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map; import net.tomp2p.utils.CacheMap; | import java.util.*; import net.tomp2p.utils.*; | [
"java.util",
"net.tomp2p.utils"
] | java.util; net.tomp2p.utils; | 2,285,740 |
EAttribute getProduction_Label(); | EAttribute getProduction_Label(); | /**
* Returns the meta object for the attribute '{@link org_sl_planet_bgfSimplified.Production#getLabel <em>Label</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Label</em>'.
* @see org_sl_planet_bgfSimplified.Production#getLabel()
* @see #getProduc... | Returns the meta object for the attribute '<code>org_sl_planet_bgfSimplified.Production#getLabel Label</code>'. | getProduction_Label | {
"repo_name": "patrickneubauer/XMLIntellEdit",
"path": "xmlintelledit/xmltext/src/main/java/org_sl_planet_bgfSimplified/Org_sl_planet_bgfSimplifiedPackage.java",
"license": "mit",
"size": 58776
} | [
"org.eclipse.emf.ecore.EAttribute"
] | import org.eclipse.emf.ecore.EAttribute; | import org.eclipse.emf.ecore.*; | [
"org.eclipse.emf"
] | org.eclipse.emf; | 912,442 |
public Resource json(InputStream inputStream, Resource parentResource, String childName) {
return json(inputStream, parentResource.getPath() + "/" + childName);
} | Resource function(InputStream inputStream, Resource parentResource, String childName) { return json(inputStream, parentResource.getPath() + "/" + childName); } | /**
* Import content of JSON file into repository.
* @param inputStream Input stream with JSON content
* @param parentResource Parent resource
* @param childName Name of child resource to create with JSON content
* @return Resource
*/ | Import content of JSON file into repository | json | {
"repo_name": "gutsy/sling",
"path": "testing/mocks/sling-mock/src/main/java/org/apache/sling/testing/mock/sling/loader/ContentLoader.java",
"license": "apache-2.0",
"size": 25307
} | [
"java.io.InputStream",
"org.apache.sling.api.resource.Resource"
] | import java.io.InputStream; import org.apache.sling.api.resource.Resource; | import java.io.*; import org.apache.sling.api.resource.*; | [
"java.io",
"org.apache.sling"
] | java.io; org.apache.sling; | 2,067,851 |
private static float getContrastForColor(int color) {
float bgR = Color.red(color) / 255f;
float bgG = Color.green(color) / 255f;
float bgB = Color.blue(color) / 255f;
bgR = (bgR < 0.03928f) ? bgR / 12.92f : (float) Math.pow((bgR + 0.055f) / 1.055f, 2.4f);
bgG = (bgG < 0.0392... | static float function(int color) { float bgR = Color.red(color) / 255f; float bgG = Color.green(color) / 255f; float bgB = Color.blue(color) / 255f; bgR = (bgR < 0.03928f) ? bgR / 12.92f : (float) Math.pow((bgR + 0.055f) / 1.055f, 2.4f); bgG = (bgG < 0.03928f) ? bgG / 12.92f : (float) Math.pow((bgG + 0.055f) / 1.055f, ... | /**
* Calculates the contrast between the given color and white, using the algorithm provided by
* the WCAG v1 in http://www.w3.org/TR/WCAG20/#contrast-ratiodef.
*/ | Calculates the contrast between the given color and white, using the algorithm provided by the WCAG v1 in HREF | getContrastForColor | {
"repo_name": "ric2b/Vivaldi-browser",
"path": "chromium/chrome/android/webapk/shell_apk/src/org/chromium/webapk/shell_apk/WebApkUtils.java",
"license": "bsd-3-clause",
"size": 14229
} | [
"android.graphics.Color"
] | import android.graphics.Color; | import android.graphics.*; | [
"android.graphics"
] | android.graphics; | 2,576,579 |
private void addValueObject(JsonSchema parent, JsonElement valueObject) {
if(valueObject instanceof JsonObject){
Set<Entry<String, JsonElement>> contentEntrySet = valueObject.getAsJsonObject().entrySet();
for (Entry<String, JsonElement> contentEntry : contentEntrySet) {
String contentKey = contentEntry.g... | void function(JsonSchema parent, JsonElement valueObject) { if(valueObject instanceof JsonObject){ Set<Entry<String, JsonElement>> contentEntrySet = valueObject.getAsJsonObject().entrySet(); for (Entry<String, JsonElement> contentEntry : contentEntrySet) { String contentKey = contentEntry.getKey(); if (contentKey.equal... | /**
* Adds the value object
* @param parent
* @param valueObject
*/ | Adds the value object | addValueObject | {
"repo_name": "nwnpallewela/devstudio-tooling-esb",
"path": "plugins/org.wso2.developerstudio.visualdatamapper.diagram/src/org/wso2/developerstudio/datamapper/diagram/schemagen/util/SchemaBuilder.java",
"license": "apache-2.0",
"size": 22710
} | [
"com.google.gson.JsonElement",
"com.google.gson.JsonObject",
"com.google.gson.JsonPrimitive",
"java.util.Map",
"java.util.Set",
"org.wso2.developerstudio.datamapper.diagram.schemagen.util.SchemaBuilder"
] | import com.google.gson.JsonElement; import com.google.gson.JsonObject; import com.google.gson.JsonPrimitive; import java.util.Map; import java.util.Set; import org.wso2.developerstudio.datamapper.diagram.schemagen.util.SchemaBuilder; | import com.google.gson.*; import java.util.*; import org.wso2.developerstudio.datamapper.diagram.schemagen.util.*; | [
"com.google.gson",
"java.util",
"org.wso2.developerstudio"
] | com.google.gson; java.util; org.wso2.developerstudio; | 1,716,329 |
int i = 0;
if (!isDiscret()) {
return -1;
}
Enumeration enum2 = values.elements();
while (enum2.hasMoreElements()) {
String element = (String) enum2.nextElement();
if (element.equalsIgnoreCase(value)) {
return i;
}
i++;
}
return -1;
... | int i = 0; if (!isDiscret()) { return -1; } Enumeration enum2 = values.elements(); while (enum2.hasMoreElements()) { String element = (String) enum2.nextElement(); if (element.equalsIgnoreCase(value)) { return i; } i++; } return -1; } | /** Function to get the index of a value in the list of values.
*
* @param value The value.
*
* @return The index of the value.
*/ | Function to get the index of a value in the list of values | valueIndex | {
"repo_name": "SCI2SUGR/KEEL",
"path": "src/keel/Algorithms/Genetic_Rule_Learning/PART/MyAttribute.java",
"license": "gpl-3.0",
"size": 6671
} | [
"java.util.Enumeration"
] | import java.util.Enumeration; | import java.util.*; | [
"java.util"
] | java.util; | 403,021 |
private void drawResultPoints(Bitmap barcode, Result rawResult) {
ResultPoint[] points = rawResult.getResultPoints();
if (points != null && points.length > 0) {
Canvas canvas = new Canvas(barcode);
Paint paint = new Paint();
paint.setColor(getResources().getColor(R.color.result_image_border)... | void function(Bitmap barcode, Result rawResult) { ResultPoint[] points = rawResult.getResultPoints(); if (points != null && points.length > 0) { Canvas canvas = new Canvas(barcode); Paint paint = new Paint(); paint.setColor(getResources().getColor(R.color.result_image_border)); paint.setStrokeWidth(3.0f); paint.setStyl... | /**
* Superimpose a line for 1D or dots for 2D to highlight the key features of the barcode.
*
* @param barcode A bitmap of the captured image.
* @param rawResult The decoded results which contains the points to draw.
*/ | Superimpose a line for 1D or dots for 2D to highlight the key features of the barcode | drawResultPoints | {
"repo_name": "wzhsunn/ZXing2.0ForAndroid",
"path": "android/src/com/google/zxing/client/android/CaptureActivity.java",
"license": "apache-2.0",
"size": 31926
} | [
"android.graphics.Bitmap",
"android.graphics.Canvas",
"android.graphics.Paint",
"android.graphics.Rect",
"com.google.zxing.BarcodeFormat",
"com.google.zxing.Result",
"com.google.zxing.ResultPoint"
] | import android.graphics.Bitmap; import android.graphics.Canvas; import android.graphics.Paint; import android.graphics.Rect; import com.google.zxing.BarcodeFormat; import com.google.zxing.Result; import com.google.zxing.ResultPoint; | import android.graphics.*; import com.google.zxing.*; | [
"android.graphics",
"com.google.zxing"
] | android.graphics; com.google.zxing; | 771,408 |
protected int runCommand(final CCTask task, final File workingDir, final String[] cmdline) throws BuildException {
return CUtil.runCommand(task, workingDir, cmdline, this.newEnvironment, this.env);
} | int function(final CCTask task, final File workingDir, final String[] cmdline) throws BuildException { return CUtil.runCommand(task, workingDir, cmdline, this.newEnvironment, this.env); } | /**
* This method is exposed so test classes can overload and test the
* arguments without actually spawning the compiler
*/ | This method is exposed so test classes can overload and test the arguments without actually spawning the compiler | runCommand | {
"repo_name": "Oneplus/nar-maven-plugin",
"path": "src/main/java/com/github/maven_nar/cpptasks/compiler/CommandLineCompiler.java",
"license": "apache-2.0",
"size": 20699
} | [
"com.github.maven_nar.cpptasks.CCTask",
"com.github.maven_nar.cpptasks.CUtil",
"java.io.File",
"org.apache.tools.ant.BuildException"
] | import com.github.maven_nar.cpptasks.CCTask; import com.github.maven_nar.cpptasks.CUtil; import java.io.File; import org.apache.tools.ant.BuildException; | import com.github.maven_nar.cpptasks.*; import java.io.*; import org.apache.tools.ant.*; | [
"com.github.maven_nar",
"java.io",
"org.apache.tools"
] | com.github.maven_nar; java.io; org.apache.tools; | 1,345,183 |
private void logDoneMessage() {
this.loggedDoneMessage = true;
StartupStatus.startup(LocalizedStrings.CreatePersistentRegionProcessor_DONE_WAITING_FOR_BUCKET_MEMBERS, new Object[] {this.region, TransformUtils.persistentMemberIdToLogEntryTransformer.transform(this.thisMember)});
} | void function() { this.loggedDoneMessage = true; StartupStatus.startup(LocalizedStrings.CreatePersistentRegionProcessor_DONE_WAITING_FOR_BUCKET_MEMBERS, new Object[] {this.region, TransformUtils.persistentMemberIdToLogEntryTransformer.transform(this.thisMember)}); } | /**
* Prints a recovery completion message to the log.
*/ | Prints a recovery completion message to the log | logDoneMessage | {
"repo_name": "ameybarve15/incubator-geode",
"path": "gemfire-core/src/main/java/com/gemstone/gemfire/internal/cache/partitioned/RedundancyLogger.java",
"license": "apache-2.0",
"size": 13698
} | [
"com.gemstone.gemfire.internal.i18n.LocalizedStrings",
"com.gemstone.gemfire.internal.process.StartupStatus",
"com.gemstone.gemfire.internal.util.TransformUtils"
] | import com.gemstone.gemfire.internal.i18n.LocalizedStrings; import com.gemstone.gemfire.internal.process.StartupStatus; import com.gemstone.gemfire.internal.util.TransformUtils; | import com.gemstone.gemfire.internal.i18n.*; import com.gemstone.gemfire.internal.process.*; import com.gemstone.gemfire.internal.util.*; | [
"com.gemstone.gemfire"
] | com.gemstone.gemfire; | 2,866,553 |
void addEventListener(ActivitiEventListener listenerToAdd); | void addEventListener(ActivitiEventListener listenerToAdd); | /**
* Adds an event-listener which will be notified of ALL events by the
* dispatcher.
*
* @param listenerToAdd
* the listener to add
*/ | Adds an event-listener which will be notified of ALL events by the dispatcher | addEventListener | {
"repo_name": "ahwxl/deep",
"path": "src/main/java/org/activiti/engine/RuntimeService.java",
"license": "apache-2.0",
"size": 40262
} | [
"org.activiti.engine.delegate.event.ActivitiEventListener"
] | import org.activiti.engine.delegate.event.ActivitiEventListener; | import org.activiti.engine.delegate.event.*; | [
"org.activiti.engine"
] | org.activiti.engine; | 1,092,083 |
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono<PagedResponse<OperationResultInner>> listSinglePageAsync(Context context) {
if (this.client.getEndpoint() == null) {
return Mono
.error(
new IllegalArgumentException(
"Paramet... | @ServiceMethod(returns = ReturnType.SINGLE) Mono<PagedResponse<OperationResultInner>> function(Context context) { if (this.client.getEndpoint() == null) { return Mono .error( new IllegalArgumentException( STR)); } final String accept = STR; context = this.client.mergeContext(context); return service .list(this.client.g... | /**
* List all operations provided by Microsoft.Logz.
*
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeEx... | List all operations provided by Microsoft.Logz | listSinglePageAsync | {
"repo_name": "Azure/azure-sdk-for-java",
"path": "sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/implementation/OperationsClientImpl.java",
"license": "mit",
"size": 12002
} | [
"com.azure.core.annotation.ReturnType",
"com.azure.core.annotation.ServiceMethod",
"com.azure.core.http.rest.PagedResponse",
"com.azure.core.http.rest.PagedResponseBase",
"com.azure.core.util.Context",
"com.azure.resourcemanager.logz.fluent.models.OperationResultInner"
] | import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.PagedResponse; import com.azure.core.http.rest.PagedResponseBase; import com.azure.core.util.Context; import com.azure.resourcemanager.logz.fluent.models.OperationResultInner; | import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.core.util.*; import com.azure.resourcemanager.logz.fluent.models.*; | [
"com.azure.core",
"com.azure.resourcemanager"
] | com.azure.core; com.azure.resourcemanager; | 374,416 |
IncomingMessageFormValidator createIncomingMessageFormValidator(); | IncomingMessageFormValidator createIncomingMessageFormValidator(); | /**
* Returns the spring managed instance of IncomingMessageFormParameter
*
* @return the created IncomingMessageFormParameter
*/ | Returns the spring managed instance of IncomingMessageFormParameter | createIncomingMessageFormValidator | {
"repo_name": "motech/MOTECH-Mobile",
"path": "motech-mobile-imp/src/main/java/org/motechproject/mobile/imp/manager/IMPManager.java",
"license": "bsd-3-clause",
"size": 3201
} | [
"org.motechproject.mobile.imp.util.IncomingMessageFormValidator"
] | import org.motechproject.mobile.imp.util.IncomingMessageFormValidator; | import org.motechproject.mobile.imp.util.*; | [
"org.motechproject.mobile"
] | org.motechproject.mobile; | 2,391,199 |
@Test
public void errorFormattedStringWithThreeInts() {
logger.errorf("%d + %d = %d", 1, 2, 3);
if (errorEnabled) {
verify(provider).log(eq(2), isNull(), eq(Level.ERROR), same(null), any(PrintfStyleFormatter.class), eq("%d + %d = %d"), eq(1),
eq(2), eq(3));
} else {
verify(provider, never()).log(a... | void function() { logger.errorf(STR, 1, 2, 3); if (errorEnabled) { verify(provider).log(eq(2), isNull(), eq(Level.ERROR), same(null), any(PrintfStyleFormatter.class), eq(STR), eq(1), eq(2), eq(3)); } else { verify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any()); } } | /**
* Verifies that a formatted string with three integer arguments will be logged correctly at {@link Level#ERROR
* ERROR} level.
*/ | Verifies that a formatted string with three integer arguments will be logged correctly at <code>Level#ERROR ERROR</code> level | errorFormattedStringWithThreeInts | {
"repo_name": "pmwmedia/tinylog",
"path": "jboss-tinylog/src/test/java/org/tinylog/jboss/TinylogLoggerTest.java",
"license": "apache-2.0",
"size": 189291
} | [
"org.mockito.ArgumentMatchers",
"org.mockito.Mockito",
"org.tinylog.Level",
"org.tinylog.format.PrintfStyleFormatter"
] | import org.mockito.ArgumentMatchers; import org.mockito.Mockito; import org.tinylog.Level; import org.tinylog.format.PrintfStyleFormatter; | import org.mockito.*; import org.tinylog.*; import org.tinylog.format.*; | [
"org.mockito",
"org.tinylog",
"org.tinylog.format"
] | org.mockito; org.tinylog; org.tinylog.format; | 1,061,236 |
public static int getFlowgraphViewCount(final List<INaviView> views) {
return Iterables.size(getViewsByType(views, GraphType.FLOWGRAPH));
} | static int function(final List<INaviView> views) { return Iterables.size(getViewsByType(views, GraphType.FLOWGRAPH)); } | /**
* Returns the number of views of type FLOWGRAPH.
*
* @param views The list of views.
* @return The number of views of type FLOWGRAPH:
*/ | Returns the number of views of type FLOWGRAPH | getFlowgraphViewCount | {
"repo_name": "chubbymaggie/binnavi",
"path": "src/main/java/com/google/security/zynamics/binnavi/disassembly/views/CViewFilter.java",
"license": "apache-2.0",
"size": 4327
} | [
"com.google.common.collect.Iterables",
"com.google.security.zynamics.zylib.disassembly.GraphType",
"java.util.List"
] | import com.google.common.collect.Iterables; import com.google.security.zynamics.zylib.disassembly.GraphType; import java.util.List; | import com.google.common.collect.*; import com.google.security.zynamics.zylib.disassembly.*; import java.util.*; | [
"com.google.common",
"com.google.security",
"java.util"
] | com.google.common; com.google.security; java.util; | 68,547 |
public static String toCsv(final List<String> list) {
StringBuilder result = new StringBuilder();
int i = 0;
for (String str: list) {
if (!str.contains("\"") && !str.contains(",")) {
// Just append the string with a comma.
result.append(str);
... | static String function(final List<String> list) { StringBuilder result = new StringBuilder(); int i = 0; for (String str: list) { if (!str.contains("\"STR,STR\STR,STR\STR\STR\"STR\STR') { result.append("\"STR\STR,"); } i++; } return result.toString(); } | /**
* Write a list of strings to on line of RFC4180 comma-separated values
* (CSV).
*
* @param list the list of strings
* @return the CSV line, without any line terminators
*/ | Write a list of strings to on line of RFC4180 comma-separated values (CSV) | toCsv | {
"repo_name": "klamonte/jexer",
"path": "src/jexer/bits/StringUtils.java",
"license": "mit",
"size": 27559
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 1,190,658 |
private void cacheBlock(String bpid, long blockId) {
FsVolumeImpl volume;
String blockFileName;
long length, genstamp;
Executor volumeExecutor;
synchronized (this) {
ReplicaInfo info = volumeMap.get(bpid, blockId);
boolean success = false;
try {
if (info == null) {
... | void function(String bpid, long blockId) { FsVolumeImpl volume; String blockFileName; long length, genstamp; Executor volumeExecutor; synchronized (this) { ReplicaInfo info = volumeMap.get(bpid, blockId); boolean success = false; try { if (info == null) { LOG.warn(STR + blockId + STR + bpid + STR); return; } if (info.g... | /**
* Asynchronously attempts to cache a single block via {@link FsDatasetCache}.
*/ | Asynchronously attempts to cache a single block via <code>FsDatasetCache</code> | cacheBlock | {
"repo_name": "MeiSheng/hadoop",
"path": "hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/impl/FsDatasetImpl.java",
"license": "apache-2.0",
"size": 112841
} | [
"java.util.concurrent.Executor",
"org.apache.hadoop.hdfs.server.common.HdfsServerConstants",
"org.apache.hadoop.hdfs.server.datanode.ReplicaInfo"
] | import java.util.concurrent.Executor; import org.apache.hadoop.hdfs.server.common.HdfsServerConstants; import org.apache.hadoop.hdfs.server.datanode.ReplicaInfo; | import java.util.concurrent.*; import org.apache.hadoop.hdfs.server.common.*; import org.apache.hadoop.hdfs.server.datanode.*; | [
"java.util",
"org.apache.hadoop"
] | java.util; org.apache.hadoop; | 212,752 |
public ErpPerson getErpPerson() {
if (erpPerson != null && erpPerson.eIsProxy()) {
InternalEObject oldErpPerson = (InternalEObject)erpPerson;
erpPerson = (ErpPerson)eResolveProxy(oldErpPerson);
if (erpPerson != oldErpPerson) {
}
}
return erpPerson;
} | ErpPerson function() { if (erpPerson != null && erpPerson.eIsProxy()) { InternalEObject oldErpPerson = (InternalEObject)erpPerson; erpPerson = (ErpPerson)eResolveProxy(oldErpPerson); if (erpPerson != oldErpPerson) { } } return erpPerson; } | /**
* Returns the value of the '<em><b>Erp Person</b></em>' reference.
* It is bidirectional and its opposite is '{@link CIM15.IEC61970.Informative.InfERPSupport.ErpPerson#getErpOrganisationRoles <em>Erp Organisation Roles</em>}'.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Erp Person</em>' r... | Returns the value of the 'Erp Person' reference. It is bidirectional and its opposite is '<code>CIM15.IEC61970.Informative.InfERPSupport.ErpPerson#getErpOrganisationRoles Erp Organisation Roles</code>'. If the meaning of the 'Erp Person' reference isn't clear, there really should be more of a description here... | getErpPerson | {
"repo_name": "SES-fortiss/SmartGridCoSimulation",
"path": "core/cim15/src/CIM15/IEC61970/Informative/InfERPSupport/OrgErpPersonRole.java",
"license": "apache-2.0",
"size": 12769
} | [
"org.eclipse.emf.ecore.InternalEObject"
] | import org.eclipse.emf.ecore.InternalEObject; | import org.eclipse.emf.ecore.*; | [
"org.eclipse.emf"
] | org.eclipse.emf; | 476,450 |
public VdsDao getVdsDao() {
return getDao(VdsDao.class);
} | VdsDao function() { return getDao(VdsDao.class); } | /**
* Returns the singleton instance of {@link VdsDao}.
*
* @return the dao
*/ | Returns the singleton instance of <code>VdsDao</code> | getVdsDao | {
"repo_name": "jtux270/translate",
"path": "ovirt/3.6_source/backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dal/dbbroker/DbFacade.java",
"license": "gpl-3.0",
"size": 42484
} | [
"org.ovirt.engine.core.dao.VdsDao"
] | import org.ovirt.engine.core.dao.VdsDao; | import org.ovirt.engine.core.dao.*; | [
"org.ovirt.engine"
] | org.ovirt.engine; | 2,876,137 |
public OptionsDialog getOptionsDialog(File optionsFile) throws JAXBException, IOException, SAXException {
OptionsScriptProxy optionsScriptProxy = requestFactory.getOptionsScriptProxy(optionsFile);
OptionsController optionsController = initOptionsController(optionsScriptProxy);
UndoManager... | OptionsDialog function(File optionsFile) throws JAXBException, IOException, SAXException { OptionsScriptProxy optionsScriptProxy = requestFactory.getOptionsScriptProxy(optionsFile); OptionsController optionsController = initOptionsController(optionsScriptProxy); UndoManager undoManager = new UndoManager(); DirPath opti... | /**
* This method returns an OptionsDialog for an Options script that is saved to disk.
* @param optionsFile
* @return OptionsDialog
* @throws JAXBException
* @throws SAXException
* @throws IOException
*/ | This method returns an OptionsDialog for an Options script that is saved to disk | getOptionsDialog | {
"repo_name": "darmstrong1/filecopier",
"path": "filecopier-gui/src/main/java/net/sf/fc/gui/factory/MVCRequestFactory.java",
"license": "apache-2.0",
"size": 18015
} | [
"java.io.File",
"java.io.IOException",
"javax.swing.undo.UndoManager",
"javax.xml.bind.JAXBException",
"net.sf.fc.cfg.DirPath",
"net.sf.fc.gui.c.options.OptionsController",
"net.sf.fc.gui.v.options.OptionsDialog",
"net.sf.fc.script.OptionsScriptProxy",
"org.xml.sax.SAXException"
] | import java.io.File; import java.io.IOException; import javax.swing.undo.UndoManager; import javax.xml.bind.JAXBException; import net.sf.fc.cfg.DirPath; import net.sf.fc.gui.c.options.OptionsController; import net.sf.fc.gui.v.options.OptionsDialog; import net.sf.fc.script.OptionsScriptProxy; import org.xml.sax.SAXExcep... | import java.io.*; import javax.swing.undo.*; import javax.xml.bind.*; import net.sf.fc.cfg.*; import net.sf.fc.gui.c.options.*; import net.sf.fc.gui.v.options.*; import net.sf.fc.script.*; import org.xml.sax.*; | [
"java.io",
"javax.swing",
"javax.xml",
"net.sf.fc",
"org.xml.sax"
] | java.io; javax.swing; javax.xml; net.sf.fc; org.xml.sax; | 2,212,920 |
private void postPlugin(boolean isPing) throws IOException {
// Server software specific section
PluginDescriptionFile description = plugin.getDescription();
String pluginName = description.getName();
boolean onlineMode = Bukkit.getServer().getOnlineMode(); // TRUE if online mode is ... | void function(boolean isPing) throws IOException { PluginDescriptionFile description = plugin.getDescription(); String pluginName = description.getName(); boolean onlineMode = Bukkit.getServer().getOnlineMode(); String pluginVersion = description.getVersion(); String serverVersion = Bukkit.getVersion(); int playersOnli... | /**
* Generic method that posts a plugin to the metrics website
*/ | Generic method that posts a plugin to the metrics website | postPlugin | {
"repo_name": "caoli5288/account",
"path": "account-plugin/src/main/java/com/mengcraft/account/util/MetricsLite.java",
"license": "gpl-2.0",
"size": 18286
} | [
"java.io.BufferedReader",
"java.io.IOException",
"java.io.InputStreamReader",
"java.io.OutputStream",
"java.net.Proxy",
"java.net.URLConnection",
"org.bukkit.Bukkit",
"org.bukkit.plugin.PluginDescriptionFile"
] | import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.OutputStream; import java.net.Proxy; import java.net.URLConnection; import org.bukkit.Bukkit; import org.bukkit.plugin.PluginDescriptionFile; | import java.io.*; import java.net.*; import org.bukkit.*; import org.bukkit.plugin.*; | [
"java.io",
"java.net",
"org.bukkit",
"org.bukkit.plugin"
] | java.io; java.net; org.bukkit; org.bukkit.plugin; | 167,150 |
@Override
void deleteIndex(DbTransaction xa, byte []block, int rowOffset)
throws SQLException
{
BTree index = getIndex();
if (index != null)
index.remove(block, rowOffset + _columnOffset, getLength());
} | void deleteIndex(DbTransaction xa, byte []block, int rowOffset) throws SQLException { BTree index = getIndex(); if (index != null) index.remove(block, rowOffset + _columnOffset, getLength()); } | /**
* Deleting the row, based on the column.
*
* @param block the block's buffer
* @param rowOffset the offset of the row in the block
* @param expr the expression to store
*/ | Deleting the row, based on the column | deleteIndex | {
"repo_name": "dlitz/resin",
"path": "modules/resin/src/com/caucho/db/table/StringColumn.java",
"license": "gpl-2.0",
"size": 9515
} | [
"com.caucho.db.index.BTree",
"com.caucho.db.xa.DbTransaction",
"java.sql.SQLException"
] | import com.caucho.db.index.BTree; import com.caucho.db.xa.DbTransaction; import java.sql.SQLException; | import com.caucho.db.index.*; import com.caucho.db.xa.*; import java.sql.*; | [
"com.caucho.db",
"java.sql"
] | com.caucho.db; java.sql; | 1,474,830 |
public int getPhoneCount() {
int phoneCount = 1;
switch (getMultiSimConfiguration()) {
case UNKNOWN:
phoneCount = 1;
break;
case DSDS:
case DSDA:
phoneCount = PhoneConstants.MAX_PHONE_COUNT_DUAL_SIM;
... | int function() { int phoneCount = 1; switch (getMultiSimConfiguration()) { case UNKNOWN: phoneCount = 1; break; case DSDS: case DSDA: phoneCount = PhoneConstants.MAX_PHONE_COUNT_DUAL_SIM; break; case TSTS: phoneCount = PhoneConstants.MAX_PHONE_COUNT_TRI_SIM; break; } return phoneCount; } | /**
* Returns the number of phones available.
* Returns 1 for Single standby mode (Single SIM functionality)
* Returns 2 for Dual standby mode.(Dual SIM functionality)
*/ | Returns the number of phones available. Returns 1 for Single standby mode (Single SIM functionality) Returns 2 for Dual standby mode.(Dual SIM functionality) | getPhoneCount | {
"repo_name": "syslover33/ctank",
"path": "java/android-sdk-linux_r24.4.1_src/sources/android-23/android/telephony/TelephonyManager.java",
"license": "gpl-3.0",
"size": 165169
} | [
"com.android.internal.telephony.PhoneConstants"
] | import com.android.internal.telephony.PhoneConstants; | import com.android.internal.telephony.*; | [
"com.android.internal"
] | com.android.internal; | 228,128 |
@Test
@SuppressWarnings("boxing")
public void should_provision_acceptors_if_not_AlreadyDefined() throws RollbackedException, IOException {
// First response states that the messaging extension is already defined, second states that
// the subsystem extension is already defined, the
// next four ones are for ... | @SuppressWarnings(STR) void function() throws RollbackedException, IOException { mockControllerResponses(true, true, STR, STR, false, false, false, false, true, true); provisioner.provisionSubsystem(new JmsSubsystemModel()); ArgumentCaptor<ModelNode> controllerCaptor = ArgumentCaptor.forClass(ModelNode.class); Mockito.... | /**
* If the acceptors aren't already provisioned, they should be.
*
* @throws RollbackedException
* thrown on unsuccessful controller execution
* @throws IOException
* thrown if the test file can't be read
*/ | If the acceptors aren't already provisioned, they should be | should_provision_acceptors_if_not_AlreadyDefined | {
"repo_name": "SirmaITT/conservation-space-1.7.0",
"path": "docker/sirma-platform/platform/seip-parent/extensions/seip-wildlfy-integration/src/test/java/com/sirma/itt/seip/wildfly/WildflyHornetQJMSProvisionerTest.java",
"license": "lgpl-3.0",
"size": 15480
} | [
"com.sirma.itt.seip.exception.RollbackedException",
"com.sirmaenterprise.sep.jms.provision.JmsSubsystemModel",
"java.io.IOException",
"org.jboss.dmr.ModelNode",
"org.mockito.ArgumentCaptor",
"org.mockito.Mockito"
] | import com.sirma.itt.seip.exception.RollbackedException; import com.sirmaenterprise.sep.jms.provision.JmsSubsystemModel; import java.io.IOException; import org.jboss.dmr.ModelNode; import org.mockito.ArgumentCaptor; import org.mockito.Mockito; | import com.sirma.itt.seip.exception.*; import com.sirmaenterprise.sep.jms.provision.*; import java.io.*; import org.jboss.dmr.*; import org.mockito.*; | [
"com.sirma.itt",
"com.sirmaenterprise.sep",
"java.io",
"org.jboss.dmr",
"org.mockito"
] | com.sirma.itt; com.sirmaenterprise.sep; java.io; org.jboss.dmr; org.mockito; | 23,855 |
void enterMais_variaveis(@NotNull LAParser.Mais_variaveisContext ctx);
void exitMais_variaveis(@NotNull LAParser.Mais_variaveisContext ctx); | void enterMais_variaveis(@NotNull LAParser.Mais_variaveisContext ctx); void exitMais_variaveis(@NotNull LAParser.Mais_variaveisContext ctx); | /**
* Exit a parse tree produced by {@link LAParser#mais_variaveis}.
* @param ctx the parse tree
*/ | Exit a parse tree produced by <code>LAParser#mais_variaveis</code> | exitMais_variaveis | {
"repo_name": "g-v/Compilador-para-LA",
"path": "src/trabalho1/parser/LAListener.java",
"license": "mit",
"size": 21375
} | [
"org.antlr.v4.runtime.misc.NotNull"
] | import org.antlr.v4.runtime.misc.NotNull; | import org.antlr.v4.runtime.misc.*; | [
"org.antlr.v4"
] | org.antlr.v4; | 860,968 |
void setTagToExecution(long id, String tag) throws CerberusException; | void setTagToExecution(long id, String tag) throws CerberusException; | /**
* Set Tag to an Execution
*
* @param id : ID of the execution to tag
* @param tag : Tag to apply to the execution
* @throws CerberusException when exception occur during the update.
*/ | Set Tag to an Execution | setTagToExecution | {
"repo_name": "vertigo17/Cerberus",
"path": "source/src/main/java/org/cerberus/crud/service/ITestCaseExecutionService.java",
"license": "gpl-3.0",
"size": 9331
} | [
"org.cerberus.exception.CerberusException"
] | import org.cerberus.exception.CerberusException; | import org.cerberus.exception.*; | [
"org.cerberus.exception"
] | org.cerberus.exception; | 296,122 |
protected MimeType createMimeType(String contentFormat) {
try {
return MimeType.valueOf(contentFormat);
} catch (ParseException e) {
LOGGER.error("Error parsing MimeType from \"{}\": {}", contentFormat, e.getMessage());
LOGGER.trace("", e);
}
return MimeType.ANYANY;
} | MimeType function(String contentFormat) { try { return MimeType.valueOf(contentFormat); } catch (ParseException e) { LOGGER.error(STR{}\STR, contentFormat, e.getMessage()); LOGGER.trace("", e); } return MimeType.ANYANY; } | /**
* For internal use only, creates the {@link MimeType} that is stored in
* {@code this.mimeType}.
*
* @param contentFormat the {@code protocolInfo} {@code contentFormat} to
* parse.
* @return A new {@link MimeType} instance.
*/ | For internal use only, creates the <code>MimeType</code> that is stored in this.mimeType | createMimeType | {
"repo_name": "DigitalMediaServer/DigitalMediaServer",
"path": "src/main/java/net/pms/dlna/protocolinfo/ProtocolInfo.java",
"license": "gpl-2.0",
"size": 29508
} | [
"net.pms.exception.ParseException"
] | import net.pms.exception.ParseException; | import net.pms.exception.*; | [
"net.pms.exception"
] | net.pms.exception; | 1,959,246 |
public ObjectOutputStream createObjectOutputStream(OutputStream out, String rootNodeName)
throws IOException {
return createObjectOutputStream(
hierarchicalStreamDriver.createWriter(out), rootNodeName);
} | ObjectOutputStream function(OutputStream out, String rootNodeName) throws IOException { return createObjectOutputStream( hierarchicalStreamDriver.createWriter(out), rootNodeName); } | /**
* Creates an ObjectOutputStream that serializes a stream of objects to the OutputStream
* using XStream.
*
* @see #createObjectOutputStream(com.thoughtworks.xstream.io.HierarchicalStreamWriter,
* String)
* @see #createObjectInputStream(com.thoughtworks.xstream.io.HierarchicalStre... | Creates an ObjectOutputStream that serializes a stream of objects to the OutputStream using XStream | createObjectOutputStream | {
"repo_name": "lamsfoundation/lams",
"path": "3rdParty_sources/xstream/com/thoughtworks/xstream/XStream.java",
"license": "gpl-2.0",
"size": 111818
} | [
"java.io.IOException",
"java.io.ObjectOutputStream",
"java.io.OutputStream"
] | import java.io.IOException; import java.io.ObjectOutputStream; import java.io.OutputStream; | import java.io.*; | [
"java.io"
] | java.io; | 2,078,285 |
@Deprecated
public void setFillColor(@ColorInt int fillColor) {
if (fillColor == mFillColor) {
return;
}
mFillColor = fillColor;
mFillPaint.setColor(fillColor);
invalidate();
} | void function(@ColorInt int fillColor) { if (fillColor == mFillColor) { return; } mFillColor = fillColor; mFillPaint.setColor(fillColor); invalidate(); } | /**
* Set a color to be drawn behind the circle-shaped drawable. Note that
* this has no effect if the drawable is opaque or no drawable is set.
*
* @param fillColor The color to be drawn behind the drawable
*
* @deprecated Fill color support is going to be removed in the future
*/ | Set a color to be drawn behind the circle-shaped drawable. Note that this has no effect if the drawable is opaque or no drawable is set | setFillColor | {
"repo_name": "BMambaYe/SkinExpert",
"path": "app/src/main/java/com/zhanghao/skinexpert/view/CircleImageView.java",
"license": "apache-2.0",
"size": 12723
} | [
"android.support.annotation.ColorInt"
] | import android.support.annotation.ColorInt; | import android.support.annotation.*; | [
"android.support"
] | android.support; | 1,148,665 |
@Test
public void testIncompleteImmediateImportQuote() throws IOException {
CharArrayReader reader = new CharArrayReader("#import \"foo.h ".toCharArray());
parser.parse(reader);
String[] includes = parser.getIncludes();
assertEquals(includes.length, 0);
} | void function() throws IOException { CharArrayReader reader = new CharArrayReader(STRfoo.h ".toCharArray()); parser.parse(reader); String[] includes = parser.getIncludes(); assertEquals(includes.length, 0); } | /**
* Checks parsing of #import "foo.h.
*
*
* @throws IOException test fails on IOException
*/ | Checks parsing of #import "foo.h | testIncompleteImmediateImportQuote | {
"repo_name": "dougm/ant-contrib-cpptasks",
"path": "src/test/java/net/sf/antcontrib/cpptasks/parser/TestCParser.java",
"license": "apache-2.0",
"size": 6388
} | [
"java.io.CharArrayReader",
"java.io.IOException",
"org.junit.Assert"
] | import java.io.CharArrayReader; import java.io.IOException; import org.junit.Assert; | import java.io.*; import org.junit.*; | [
"java.io",
"org.junit"
] | java.io; org.junit; | 324,535 |
public void setDestdir(File destdir)
{
this.destdir = destdir;
} | void function(File destdir) { this.destdir = destdir; } | /**
* Sets the destination directory into which the report files should be exported.
*
* @param destdir destination directory
*/ | Sets the destination directory into which the report files should be exported | setDestdir | {
"repo_name": "aleatorio12/ProVentasConnector",
"path": "jasperreports-6.2.1-project/jasperreports-6.2.1/src/net/sf/jasperreports/ant/JRAntXmlExportTask.java",
"license": "gpl-3.0",
"size": 8163
} | [
"java.io.File"
] | import java.io.File; | import java.io.*; | [
"java.io"
] | java.io; | 1,404,563 |
public DeliverableDissemination findDisseminationByPhaseAndDeliverable(Phase phase, Deliverable deliverable);
| DeliverableDissemination function(Phase phase, Deliverable deliverable); | /**
* This method gets a deliverableDissemination object by a given deliverableDissemination phase and deliverable.
*
* @return a DeliverableDissemination object.
*/ | This method gets a deliverableDissemination object by a given deliverableDissemination phase and deliverable | findDisseminationByPhaseAndDeliverable | {
"repo_name": "CCAFS/MARLO",
"path": "marlo-data/src/main/java/org/cgiar/ccafs/marlo/data/dao/DeliverableDisseminationDAO.java",
"license": "gpl-3.0",
"size": 3277
} | [
"org.cgiar.ccafs.marlo.data.model.Deliverable",
"org.cgiar.ccafs.marlo.data.model.DeliverableDissemination",
"org.cgiar.ccafs.marlo.data.model.Phase"
] | import org.cgiar.ccafs.marlo.data.model.Deliverable; import org.cgiar.ccafs.marlo.data.model.DeliverableDissemination; import org.cgiar.ccafs.marlo.data.model.Phase; | import org.cgiar.ccafs.marlo.data.model.*; | [
"org.cgiar.ccafs"
] | org.cgiar.ccafs; | 2,776,066 |
public Charset getCharset() {
return Charset.forName(inputCharset);
}
} | Charset function() { return Charset.forName(inputCharset); } } | /**
* Get the Charset specifying how we're supposed to read the file
* in off disk and into UTF-16. This is stored as a strong to allow
* SourceFile to be serialized.
* @return Charset object representing charset to use.
*/ | Get the Charset specifying how we're supposed to read the file in off disk and into UTF-16. This is stored as a strong to allow SourceFile to be serialized | getCharset | {
"repo_name": "Dandandan/wikiprogramming",
"path": "jsrepl/tools/closure-compiler/trunk/src/com/google/javascript/jscomp/SourceFile.java",
"license": "mit",
"size": 14191
} | [
"java.nio.charset.Charset"
] | import java.nio.charset.Charset; | import java.nio.charset.*; | [
"java.nio"
] | java.nio; | 2,680,430 |
protected void decodeChild(mxCodec dec, Node child, Object obj)
{
String fieldname = getFieldName(((Element) child).getAttribute("as"));
if (fieldname == null || !isExcluded(obj, fieldname, child, false))
{
Object template = getFieldTemplate(obj, fieldname, child);
Object value = null;
if (child.ge... | void function(mxCodec dec, Node child, Object obj) { String fieldname = getFieldName(((Element) child).getAttribute("as")); if (fieldname == null !isExcluded(obj, fieldname, child, false)) { Object template = getFieldTemplate(obj, fieldname, child); Object value = null; if (child.getNodeName().equals("add")) { value = ... | /**
* Reads the specified child into the given object.
*/ | Reads the specified child into the given object | decodeChild | {
"repo_name": "3w3rt0n/AmeacasInternas",
"path": "src/com/mxgraph/io/mxObjectCodec.java",
"license": "apache-2.0",
"size": 32194
} | [
"org.w3c.dom.Element",
"org.w3c.dom.Node"
] | import org.w3c.dom.Element; import org.w3c.dom.Node; | import org.w3c.dom.*; | [
"org.w3c.dom"
] | org.w3c.dom; | 1,331,714 |
public Result testGetNameParserString() {
return verify("getNameParser", new Class[] { String.class },
new Object[] { compNameStr }, null);
} | Result function() { return verify(STR, new Class[] { String.class }, new Object[] { compNameStr }, null); } | /**
* Test for the method getNameParser(java.lang.String)
*
* @see javax.naming#getNameParser(java.lang.String)
*/ | Test for the method getNameParser(java.lang.String) | testGetNameParserString | {
"repo_name": "freeVM/freeVM",
"path": "enhanced/buildtest/tests/functional/src/test/functional/org/apache/harmony/test/func/api/javax/naming/provider/rmi/FederationSupportRefTest.java",
"license": "apache-2.0",
"size": 13276
} | [
"org.apache.harmony.share.Result"
] | import org.apache.harmony.share.Result; | import org.apache.harmony.share.*; | [
"org.apache.harmony"
] | org.apache.harmony; | 1,027,798 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.