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 IDecorator getDecor() { try { return (IDecorator) mod.newInstance(); } catch (InstantiationException | IllegalAccessException ex) { Logger.getLogger(EnumPowerupTypes.class.getName()).log(Level.SEVERE, null, ex); } return null; }
IDecorator function() { try { return (IDecorator) mod.newInstance(); } catch (InstantiationException IllegalAccessException ex) { Logger.getLogger(EnumPowerupTypes.class.getName()).log(Level.SEVERE, null, ex); } return null; }
/** * Get the decorator. * * @return the decorator. */
Get the decorator
getDecor
{ "repo_name": "JoshCode/SEM", "path": "src/main/java/nl/joshuaslik/tudelft/SEM/control/gameObjects/pickup/powerup/EnumPowerupTypes.java", "license": "apache-2.0", "size": 3601 }
[ "java.util.logging.Level", "java.util.logging.Logger" ]
import java.util.logging.Level; import java.util.logging.Logger;
import java.util.logging.*;
[ "java.util" ]
java.util;
776,614
Set<String> sendDocuments(Collection<ContentToSend> contentsToSend, AadressType[] recipients, AadressType sender, SendDocumentsDokumentCallback callback, SendDocumentsRequestCallback requestCallback);
Set<String> sendDocuments(Collection<ContentToSend> contentsToSend, AadressType[] recipients, AadressType sender, SendDocumentsDokumentCallback callback, SendDocumentsRequestCallback requestCallback);
/** * Composes and sends document to given recipients. * * @param contentsToSend - wrapper containing input stream of data with file name and mimeType to be assigned to the DVK document to be sent. * @param recipients * @param sender * @param callback - optional callBack implementation to...
Composes and sends document to given recipients
sendDocuments
{ "repo_name": "raulpiiber/j-road", "path": "client-service/dhl/src/main/java/com/nortal/jroad/client/dhl/DhlXTeeService.java", "license": "apache-2.0", "size": 18452 }
[ "com.nortal.jroad.client.dhl.types.ee.riik.schemas.dhl.AadressType", "java.util.Collection", "java.util.Set" ]
import com.nortal.jroad.client.dhl.types.ee.riik.schemas.dhl.AadressType; import java.util.Collection; import java.util.Set;
import com.nortal.jroad.client.dhl.types.ee.riik.schemas.dhl.*; import java.util.*;
[ "com.nortal.jroad", "java.util" ]
com.nortal.jroad; java.util;
2,806,728
public Set<HierarchyNodeSerialized> getAccessAdminNodesForUser(String userId);
Set<HierarchyNodeSerialized> function(String userId);
/** * Returns a set of hierarchy nodes that the user has been assigned accessAdmin privileges for. * @param userId * @return */
Returns a set of hierarchy nodes that the user has been assigned accessAdmin privileges for
getAccessAdminNodesForUser
{ "repo_name": "sakai-mirror/delegatedaccess", "path": "api/src/java/org/sakaiproject/delegatedaccess/logic/ProjectLogic.java", "license": "apache-2.0", "size": 11471 }
[ "java.util.Set", "org.sakaiproject.delegatedaccess.model.HierarchyNodeSerialized" ]
import java.util.Set; import org.sakaiproject.delegatedaccess.model.HierarchyNodeSerialized;
import java.util.*; import org.sakaiproject.delegatedaccess.model.*;
[ "java.util", "org.sakaiproject.delegatedaccess" ]
java.util; org.sakaiproject.delegatedaccess;
93,587
public AuthorizationData getAuthorizationData() { return authorizationData; }
AuthorizationData function() { return authorizationData; }
/** * Gets the authorization data for the user performing the operation. */
Gets the authorization data for the user performing the operation
getAuthorizationData
{ "repo_name": "JeffRisberg/BING01", "path": "src/main/java/com/microsoft/bingads/v10/bulk/BulkServiceManager.java", "license": "mit", "size": 30236 }
[ "com.microsoft.bingads.AuthorizationData" ]
import com.microsoft.bingads.AuthorizationData;
import com.microsoft.bingads.*;
[ "com.microsoft.bingads" ]
com.microsoft.bingads;
1,842,955
public static void createEmptyFile(Path path) throws IOException { path.getOutputStream().close(); }
static void function(Path path) throws IOException { path.getOutputStream().close(); }
/** * Creates an empty regular file with the name of the current path, following * symbolic links. * * @throws IOException if the file could not be created for any reason * (including that there was already a file at that location) */
Creates an empty regular file with the name of the current path, following symbolic links
createEmptyFile
{ "repo_name": "perezd/bazel", "path": "src/main/java/com/google/devtools/build/lib/vfs/FileSystemUtils.java", "license": "apache-2.0", "size": 34789 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
847,851
@FromAnyThread public synchronized void addOnFinishLoading(@NotNull final Runnable runnable) { this.onFinishLoading.add(runnable); }
synchronized void function(@NotNull final Runnable runnable) { this.onFinishLoading.add(runnable); }
/** * Do some things before when the editor is ready to work. * * @param runnable the action. */
Do some things before when the editor is ready to work
addOnFinishLoading
{ "repo_name": "JavaSaBr/jME3-SpaceShift-Editor", "path": "src/main/java/com/ss/editor/manager/InitializationManager.java", "license": "apache-2.0", "size": 4386 }
[ "org.jetbrains.annotations.NotNull" ]
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.*;
[ "org.jetbrains.annotations" ]
org.jetbrains.annotations;
271,234
public Builder withRoles(String... roles) { if (roles != null) { this.roles.addAll(Arrays.asList(roles)); } return this; }
Builder function(String... roles) { if (roles != null) { this.roles.addAll(Arrays.asList(roles)); } return this; }
/** * Add given roles to the builder. It doesn't replace existing roles, but it adds given roles to them. */
Add given roles to the builder. It doesn't replace existing roles, but it adds given roles to them
withRoles
{ "repo_name": "xasx/wildfly", "path": "testsuite/shared/src/main/java/org/wildfly/test/security/common/elytron/UserWithRoles.java", "license": "lgpl-2.1", "size": 3731 }
[ "java.util.Arrays" ]
import java.util.Arrays;
import java.util.*;
[ "java.util" ]
java.util;
2,474,634
@Override public Adapter createRecordMetaDataAdapter() { if (recordMetaDataItemProvider == null) { recordMetaDataItemProvider = new RecordMetaDataItemProvider(this); } return recordMetaDataItemProvider; } protected FieldMetaDataItemProvider fieldMetaDataItemProvider;
Adapter function() { if (recordMetaDataItemProvider == null) { recordMetaDataItemProvider = new RecordMetaDataItemProvider(this); } return recordMetaDataItemProvider; } protected FieldMetaDataItemProvider fieldMetaDataItemProvider;
/** * This creates an adapter for a {@link org.fusesource.camel.component.sap.model.rfc.RecordMetaData}. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */
This creates an adapter for a <code>org.fusesource.camel.component.sap.model.rfc.RecordMetaData</code>.
createRecordMetaDataAdapter
{ "repo_name": "janstey/fuse-1", "path": "components/camel-sap/org.fusesource.camel.component.sap.model.edit/src/org/fusesource/camel/component/sap/model/rfc/provider/RfcItemProviderAdapterFactory.java", "license": "apache-2.0", "size": 25729 }
[ "org.eclipse.emf.common.notify.Adapter" ]
import org.eclipse.emf.common.notify.Adapter;
import org.eclipse.emf.common.notify.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
191,861
EReference getFileReferenceLanguage_Filer();
EReference getFileReferenceLanguage_Filer();
/** * Returns the meta object for the containment reference '{@link org.nasdanika.amur.lang.FileReferenceLanguage#getFiler <em>Filer</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for the containment reference '<em>Filer</em>'. * @see org.nasdanika.amur.lang.FileReferenceL...
Returns the meta object for the containment reference '<code>org.nasdanika.amur.lang.FileReferenceLanguage#getFiler Filer</code>'.
getFileReferenceLanguage_Filer
{ "repo_name": "Nasdanika/amur-lang", "path": "org.nasdanika.amur.lang/src/org/nasdanika/amur/lang/LangPackage.java", "license": "epl-1.0", "size": 45409 }
[ "org.eclipse.emf.ecore.EReference" ]
import org.eclipse.emf.ecore.EReference;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
2,873,918
public String getName() throws ModelspaceException { return getPropertyValue( RelationalConstants.COMMON_DDL_PROPERTY_KEYS.NAME ).toString(); }
String function() throws ModelspaceException { return getPropertyValue( RelationalConstants.COMMON_DDL_PROPERTY_KEYS.NAME ).toString(); }
/** * Get the object name * * @return name * @throws ModelspaceException * if an error occurs */
Get the object name
getName
{ "repo_name": "Polyglotter/chrysalix", "path": "modelspace/modelspace-ddl/src/main/java/org/modelspace/ddl/relational/RelationalObject.java", "license": "lgpl-2.1", "size": 9872 }
[ "org.modelspace.ModelspaceException" ]
import org.modelspace.ModelspaceException;
import org.modelspace.*;
[ "org.modelspace" ]
org.modelspace;
2,289,719
@Override public JComponent getPreferredFocusedComponent() { if (tabPanel != null) { final int i = getSelectedTabIndex(); final Component tab = tabPanel.getComponentAt(i); if (tab instanceof FocusableTabPage) { return ((FocusableTabPage) tab).getPrefer...
JComponent function() { if (tabPanel != null) { final int i = getSelectedTabIndex(); final Component tab = tabPanel.getComponentAt(i); if (tab instanceof FocusableTabPage) { return ((FocusableTabPage) tab).getPreferredFocusedComponent(); } return tabPanel; } return super.getPreferredFocusedComponent(); }
/** * This method returns the correct JComponent to set focus on from within the selected tab. */
This method returns the correct JComponent to set focus on from within the selected tab
getPreferredFocusedComponent
{ "repo_name": "timofeyi/vso-intellij", "path": "plugin.idea/src/com/microsoft/alm/plugin/idea/ui/common/BaseDialogImpl.java", "license": "mit", "size": 6105 }
[ "java.awt.Component", "javax.swing.JComponent" ]
import java.awt.Component; import javax.swing.JComponent;
import java.awt.*; import javax.swing.*;
[ "java.awt", "javax.swing" ]
java.awt; javax.swing;
999,810
EAttribute getAcceptVersionsType_Version();
EAttribute getAcceptVersionsType_Version();
/** * Returns the meta object for the attribute list '{@link net.opengis.ows11.AcceptVersionsType#getVersion <em>Version</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for the attribute list '<em>Version</em>'. * @see net.opengis.ows11.AcceptVersionsType#getVersion(...
Returns the meta object for the attribute list '<code>net.opengis.ows11.AcceptVersionsType#getVersion Version</code>'.
getAcceptVersionsType_Version
{ "repo_name": "geotools/geotools", "path": "modules/ogc/net.opengis.ows/src/net/opengis/ows11/Ows11Package.java", "license": "lgpl-2.1", "size": 292282 }
[ "org.eclipse.emf.ecore.EAttribute" ]
import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
2,256,779
EventObject createRouteAddedEvent(Route route);
EventObject createRouteAddedEvent(Route route);
/** * Creates an {@link EventObject} for {@link Route} has been added successfully. * * @param route the route * @return the created event */
Creates an <code>EventObject</code> for <code>Route</code> has been added successfully
createRouteAddedEvent
{ "repo_name": "ramonmaruko/camel", "path": "camel-core/src/main/java/org/apache/camel/spi/EventFactory.java", "license": "apache-2.0", "size": 8311 }
[ "java.util.EventObject", "org.apache.camel.Route" ]
import java.util.EventObject; import org.apache.camel.Route;
import java.util.*; import org.apache.camel.*;
[ "java.util", "org.apache.camel" ]
java.util; org.apache.camel;
2,835,047
public long getBaseAddress() { return Pointer.nativeValue(this.mProcess.getBase()); }
long function() { return Pointer.nativeValue(this.mProcess.getBase()); }
/** * Gets the load address of this process module. * * @return The load address of this process module */
Gets the load address of this process module
getBaseAddress
{ "repo_name": "ZabuzaW/Mem-Eater-Bug", "path": "src/de/zabuza/memeaterbug/memory/MemManipulator.java", "license": "gpl-3.0", "size": 8070 }
[ "com.sun.jna.Pointer" ]
import com.sun.jna.Pointer;
import com.sun.jna.*;
[ "com.sun.jna" ]
com.sun.jna;
1,000,243
public static final void entry(TraceComponent tc, String methodName, Object obj) { entry(null, tc, methodName, obj); }
static final void function(TraceComponent tc, String methodName, Object obj) { entry(null, tc, methodName, obj); }
/** * If entry level diagnostic trace is enabled for the specified * <code>TraceComponent</code>, forward an Entry event to all registered * TraceEventListeners. Each registered listener will determine whether to * log or ignore the event. * <p> * @param tc the non-null <code>TraceComponent</code> the...
If entry level diagnostic trace is enabled for the specified <code>TraceComponent</code>, forward an Entry event to all registered TraceEventListeners. Each registered listener will determine whether to log or ignore the event.
entry
{ "repo_name": "OpenLiberty/open-liberty", "path": "dev/com.ibm.ws.messaging.utils/src/com/ibm/ws/sib/utils/ras/SibTr.java", "license": "epl-1.0", "size": 67899 }
[ "com.ibm.websphere.ras.TraceComponent" ]
import com.ibm.websphere.ras.TraceComponent;
import com.ibm.websphere.ras.*;
[ "com.ibm.websphere" ]
com.ibm.websphere;
2,330,834
Date getDateForNewestChecksumEntryForPillar(String pillarID, String collectionID);
Date getDateForNewestChecksumEntryForPillar(String pillarID, String collectionID);
/** * Retrieves the date for the latest checksum entry for a given pillar. * E.g. the date for the latest checksum which has been positively identified as valid on the given pillar. * @param pillarID The pillar whose latest checksum entry is requested. * @param collectionID The ID of the collectio...
Retrieves the date for the latest checksum entry for a given pillar. E.g. the date for the latest checksum which has been positively identified as valid on the given pillar
getDateForNewestChecksumEntryForPillar
{ "repo_name": "bitrepository/reference", "path": "bitrepository-integrity-service/src/main/java/org/bitrepository/integrityservice/cache/IntegrityModel.java", "license": "lgpl-2.1", "size": 10744 }
[ "java.util.Date" ]
import java.util.Date;
import java.util.*;
[ "java.util" ]
java.util;
1,592,922
void getPpuAndCurrency(Message result);
void getPpuAndCurrency(Message result);
/** * used to get price per unit and currency. * * result.obj = AsyncResult ar * ar.exception carries exception on failure * ar.userObject contains the orignal value of result.obj * * ar.result is a String[2] * ar.result[0] contain the value of currency, ex: "GBP" * ar.re...
used to get price per unit and currency. result.obj = AsyncResult ar ar.exception carries exception on failure ar.userObject contains the orignal value of result.obj ar.result is a String[2] ar.result[0] contain the value of currency, ex: "GBP" ar.result[1] contain the value of ppu, ex: "2.66"
getPpuAndCurrency
{ "repo_name": "rex-xxx/mt6572_x201", "path": "frameworks/opt/telephony/src/java/com/android/internal/telephony/Phone.java", "license": "gpl-2.0", "size": 87022 }
[ "android.os.Message" ]
import android.os.Message;
import android.os.*;
[ "android.os" ]
android.os;
1,805,997
public static StAXBuilder getSOAPBuilder(InputStream inStream, String charSetEnc) throws XMLStreamException { XMLStreamReader xmlReader = StAXUtils.createXMLStreamReader(inStream, charSetEnc); try { return new StAXSOAPModelBuilder(xmlReader); } catch (OMException e) {...
static StAXBuilder function(InputStream inStream, String charSetEnc) throws XMLStreamException { XMLStreamReader xmlReader = StAXUtils.createXMLStreamReader(inStream, charSetEnc); try { return new StAXSOAPModelBuilder(xmlReader); } catch (OMException e) { log.info(STR, e); try { log.info(STR + new String(IOUtils.getStr...
/** * Creates an OMBuilder for a SOAP message. * * @param inStream InputStream for a SOAP message * @param charSetEnc Character set encoding to be used * @return Handler to a OMBuilder implementation instance * @throws XMLStreamException */
Creates an OMBuilder for a SOAP message
getSOAPBuilder
{ "repo_name": "intalio/axis2", "path": "modules/kernel/src/org/apache/axis2/builder/BuilderUtil.java", "license": "apache-2.0", "size": 37448 }
[ "java.io.IOException", "java.io.InputStream", "javax.xml.stream.XMLStreamException", "javax.xml.stream.XMLStreamReader", "org.apache.axiom.attachments.utils.IOUtils", "org.apache.axiom.om.OMException", "org.apache.axiom.om.impl.builder.StAXBuilder", "org.apache.axiom.om.util.StAXUtils", "org.apache....
import java.io.IOException; import java.io.InputStream; import javax.xml.stream.XMLStreamException; import javax.xml.stream.XMLStreamReader; import org.apache.axiom.attachments.utils.IOUtils; import org.apache.axiom.om.OMException; import org.apache.axiom.om.impl.builder.StAXBuilder; import org.apache.axiom.om.util.StA...
import java.io.*; import javax.xml.stream.*; import org.apache.axiom.attachments.utils.*; import org.apache.axiom.om.*; import org.apache.axiom.om.impl.builder.*; import org.apache.axiom.om.util.*; import org.apache.axiom.soap.impl.builder.*;
[ "java.io", "javax.xml", "org.apache.axiom" ]
java.io; javax.xml; org.apache.axiom;
2,476,959
public static Date genToday(double utcOffset) { // The result is not adjusted for timezone anymore, following libanki model // Timezone adjustment happens explicitly in Deck.updateCutoff(), but not in Deck.checkDailyStats() SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd"); df...
static Date function(double utcOffset) { SimpleDateFormat df = new SimpleDateFormat(STR); df.setTimeZone(TimeZone.getTimeZone("GMT")); Calendar cal = new GregorianCalendar(TimeZone.getTimeZone("GMT")); cal.setTimeInMillis(System.currentTimeMillis() - (long) utcOffset * 1000l); Date today = Date.valueOf(df.format(cal.ge...
/** * Returns the effective date of the present moment. * If the time is prior the cut-off time (9:00am by default as of 11/02/10) return yesterday, * otherwise today * Note that the Date class is java.sql.Date whose constructor sets hours, minutes etc to zero * * @param utcOffset The ...
Returns the effective date of the present moment. If the time is prior the cut-off time (9:00am by default as of 11/02/10) return yesterday, otherwise today Note that the Date class is java.sql.Date whose constructor sets hours, minutes etc to zero
genToday
{ "repo_name": "stockcode/vicky-learn", "path": "src/main/java/com/ichi2/libanki/Utils.java", "license": "gpl-3.0", "size": 46072 }
[ "java.sql.Date", "java.text.SimpleDateFormat", "java.util.Calendar", "java.util.GregorianCalendar", "java.util.TimeZone" ]
import java.sql.Date; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.GregorianCalendar; import java.util.TimeZone;
import java.sql.*; import java.text.*; import java.util.*;
[ "java.sql", "java.text", "java.util" ]
java.sql; java.text; java.util;
2,160,166
ManagedChannelBuilder<?> newManagedChannelBuilder(String target);
ManagedChannelBuilder<?> newManagedChannelBuilder(String target);
/** * Returns a new gRPC ManagedChannelBuilder with instrumentation. */
Returns a new gRPC ManagedChannelBuilder with instrumentation
newManagedChannelBuilder
{ "repo_name": "dremio/dremio-oss", "path": "services/grpc/src/main/java/com/dremio/service/grpc/GrpcChannelBuilderFactory.java", "license": "apache-2.0", "size": 1866 }
[ "io.grpc.ManagedChannelBuilder" ]
import io.grpc.ManagedChannelBuilder;
import io.grpc.*;
[ "io.grpc" ]
io.grpc;
327,492
public static Path walkFileTree(Path start, FileVisitor<? super Path> visitor) throws IOException { return walkFileTree(start, EnumSet.noneOf(FileVisitOption.class), Integer.MAX_VALUE, visitor); } // --...
static Path function(Path start, FileVisitor<? super Path> visitor) throws IOException { return walkFileTree(start, EnumSet.noneOf(FileVisitOption.class), Integer.MAX_VALUE, visitor); } private static final int BUFFER_SIZE = 8192; /** * Opens a file for reading, returning a {@code BufferedReader} that may be * used to ...
/** * Walks a file tree. * * <p> This method works as if invoking it were equivalent to evaluating the * expression: * <blockquote><pre> * walkFileTree(start, EnumSet.noneOf(FileVisitOption.class), Integer.MAX_VALUE, visitor) * </pre></blockquote> * In other words, it does not fo...
Walks a file tree. This method works as if invoking it were equivalent to evaluating the expression: <code> walkFileTree(start, EnumSet.noneOf(FileVisitOption.class), Integer.MAX_VALUE, visitor) </code> In other words, it does not follow symbolic links, and visits all levels of the file tree
walkFileTree
{ "repo_name": "34benma/openjdk", "path": "jdk/src/java.base/share/classes/java/nio/file/Files.java", "license": "gpl-2.0", "size": 176442 }
[ "java.io.BufferedReader", "java.io.IOException", "java.io.Reader", "java.util.EnumSet" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.Reader; import java.util.EnumSet;
import java.io.*; import java.util.*;
[ "java.io", "java.util" ]
java.io; java.util;
197,193
protected boolean isSplitable(FileSystem fs, Path filename) { return true; }
boolean function(FileSystem fs, Path filename) { return true; }
/** * Is the given filename splitable? Usually, true, but if the file is stream * compressed, it will not be. * * <code>FileInputFormat</code> implementations can override this and return * <code>false</code> to ensure that individual input files are never * split-up so that {@link Mapper}s process entire ...
Is the given filename splitable? Usually, true, but if the file is stream compressed, it will not be. <code>FileInputFormat</code> implementations can override this and return <code>false</code> to ensure that individual input files are never split-up so that <code>Mapper</code>s process entire files
isSplitable
{ "repo_name": "shot/hadoop-source-reading", "path": "src/mapred/org/apache/hadoop/mapred/FileInputFormat.java", "license": "apache-2.0", "size": 18708 }
[ "org.apache.hadoop.fs.FileSystem", "org.apache.hadoop.fs.Path" ]
import org.apache.hadoop.fs.FileSystem; import org.apache.hadoop.fs.Path;
import org.apache.hadoop.fs.*;
[ "org.apache.hadoop" ]
org.apache.hadoop;
2,560,067
void invokeClientInterceptorEndingPoint( ClientRequestInfoImpl info ) { // If invocation is not yet enabled, don't do anything. if( enabled ) { try { // NOTE: It is assumed someplace else prepared a // fresh TSC slot table. info.setCurrent...
void invokeClientInterceptorEndingPoint( ClientRequestInfoImpl info ) { if( enabled ) { try { info.setCurrentExecutionPoint( info.EXECUTION_POINT_ENDING ); ClientRequestInterceptor[] clientInterceptors = (ClientRequestInterceptor[])interceptorList. getInterceptors( InterceptorList.INTERCEPTOR_TYPE_CLIENT ); int flowSta...
/** * Invokes either receive_reply, receive_exception, or receive_other, * depending on the value of info.getEndingPointCall() */
Invokes either receive_reply, receive_exception, or receive_other, depending on the value of info.getEndingPointCall()
invokeClientInterceptorEndingPoint
{ "repo_name": "rokn/Count_Words_2015", "path": "testing/openjdk2/corba/src/share/classes/com/sun/corba/se/impl/interceptors/InterceptorInvoker.java", "license": "mit", "size": 29716 }
[ "org.omg.CORBA", "org.omg.PortableInterceptor" ]
import org.omg.CORBA; import org.omg.PortableInterceptor;
import org.omg.*;
[ "org.omg" ]
org.omg;
1,941,814
public String get(String key) throws GUIDNotFoundException { try { FutureGet futureGet = peer.get(Number160.createHash(key)).start(); futureGet.awaitUninterruptibly(); // TODO: use non-blocking? if(futureGet.isSuccess() && futureGet.data() != null) { return futureGet.data().object().toStr...
String function(String key) throws GUIDNotFoundException { try { FutureGet futureGet = peer.get(Number160.createHash(key)).start(); futureGet.awaitUninterruptibly(); if(futureGet.isSuccess() && futureGet.data() != null) { return futureGet.data().object().toString(); } else { throw new GUIDNotFoundException(STR); } } ca...
/** * Retrieves the social record from the DHT. * * @param key * @return the social record * @throws ClassNotFoundException * @throws IOException * @throws GUIDNotFoundException */
Retrieves the social record from the DHT
get
{ "repo_name": "reTHINK-project/dev-registry-global", "path": "src/main/java/eu/rethink/globalregistry/dht/DHTManager.java", "license": "apache-2.0", "size": 4253 }
[ "java.io.IOException", "net.tomp2p.dht.FutureGet", "net.tomp2p.peers.Number160" ]
import java.io.IOException; import net.tomp2p.dht.FutureGet; import net.tomp2p.peers.Number160;
import java.io.*; import net.tomp2p.dht.*; import net.tomp2p.peers.*;
[ "java.io", "net.tomp2p.dht", "net.tomp2p.peers" ]
java.io; net.tomp2p.dht; net.tomp2p.peers;
2,386,587
List<RichMember> getParentGroupRichMembers(PerunSession sess, Group group) throws InternalErrorException;
List<RichMember> getParentGroupRichMembers(PerunSession sess, Group group) throws InternalErrorException;
/** * Get members form the parent group in RichMember format. * @param sess * @param group * @return list of parent group rich members * @throws InternalErrorException */
Get members form the parent group in RichMember format
getParentGroupRichMembers
{ "repo_name": "ondrejvelisek/perun", "path": "perun-core/src/main/java/cz/metacentrum/perun/core/bl/GroupsManagerBl.java", "license": "bsd-2-clause", "size": 43190 }
[ "cz.metacentrum.perun.core.api.Group", "cz.metacentrum.perun.core.api.PerunSession", "cz.metacentrum.perun.core.api.RichMember", "cz.metacentrum.perun.core.api.exceptions.InternalErrorException", "java.util.List" ]
import cz.metacentrum.perun.core.api.Group; import cz.metacentrum.perun.core.api.PerunSession; import cz.metacentrum.perun.core.api.RichMember; import cz.metacentrum.perun.core.api.exceptions.InternalErrorException; import java.util.List;
import cz.metacentrum.perun.core.api.*; import cz.metacentrum.perun.core.api.exceptions.*; import java.util.*;
[ "cz.metacentrum.perun", "java.util" ]
cz.metacentrum.perun; java.util;
335,689
public File getLdapsCertificateFile() { return ldapsCertificateFile; }
File function() { return ldapsCertificateFile; }
/** * Returns the path of the X509 (or JKS) certificate file for LDAPS. * The default value is <tt>"&lt;WORKDIR&gt;/certificates/server.cert"</tt>. */
Returns the path of the X509 (or JKS) certificate file for LDAPS. The default value is "&lt;WORKDIR&gt;/certificates/server.cert"
getLdapsCertificateFile
{ "repo_name": "openthinclient/openthinclient-manager", "path": "thirdparty/apacheds-server-jndi/src/main/java/org/apache/directory/server/configuration/ServerStartupConfiguration.java", "license": "gpl-2.0", "size": 8412 }
[ "java.io.File" ]
import java.io.File;
import java.io.*;
[ "java.io" ]
java.io;
2,335,441
void removeHosts(PerunSession sess, List<Host> hosts, Facility facility) throws InternalErrorException, HostAlreadyRemovedException;
void removeHosts(PerunSession sess, List<Host> hosts, Facility facility) throws InternalErrorException, HostAlreadyRemovedException;
/** * Remove hosts from the Facility. * * @param sess * @param hosts * @param facility * * @throws InternalErrorException * @throws HostAlreadyRemovedException if there is at least 1 not removed host (not affected by removing from DB) */
Remove hosts from the Facility
removeHosts
{ "repo_name": "Holdo/perun", "path": "perun-core/src/main/java/cz/metacentrum/perun/core/bl/FacilitiesManagerBl.java", "license": "bsd-2-clause", "size": 34151 }
[ "cz.metacentrum.perun.core.api.Facility", "cz.metacentrum.perun.core.api.Host", "cz.metacentrum.perun.core.api.PerunSession", "cz.metacentrum.perun.core.api.exceptions.HostAlreadyRemovedException", "cz.metacentrum.perun.core.api.exceptions.InternalErrorException", "java.util.List" ]
import cz.metacentrum.perun.core.api.Facility; import cz.metacentrum.perun.core.api.Host; import cz.metacentrum.perun.core.api.PerunSession; import cz.metacentrum.perun.core.api.exceptions.HostAlreadyRemovedException; import cz.metacentrum.perun.core.api.exceptions.InternalErrorException; import java.util.List;
import cz.metacentrum.perun.core.api.*; import cz.metacentrum.perun.core.api.exceptions.*; import java.util.*;
[ "cz.metacentrum.perun", "java.util" ]
cz.metacentrum.perun; java.util;
1,452,996
public static Date getWeekEnd(final Date date, final TimeZone timeZone, final Locale locale) { return getDayEnd(add(getWeekStart(date, timeZone, locale), Calendar.DATE, 6), timeZone); }
static Date function(final Date date, final TimeZone timeZone, final Locale locale) { return getDayEnd(add(getWeekStart(date, timeZone, locale), Calendar.DATE, 6), timeZone); }
/** * Gets the week end (SUNDAY or SATURDAY, etc.) according to the locale calendar * * @param date * the date * @param timeZone * the time zone * @param locale * the locale * @return the week start (SUNDAY or SATURDAY depending on the locale) */
Gets the week end (SUNDAY or SATURDAY, etc.) according to the locale calendar
getWeekEnd
{ "repo_name": "thexman/commons", "path": "src/main/java/com/a9ski/utils/DateUtils.java", "license": "apache-2.0", "size": 24945 }
[ "java.util.Calendar", "java.util.Date", "java.util.Locale", "java.util.TimeZone" ]
import java.util.Calendar; import java.util.Date; import java.util.Locale; import java.util.TimeZone;
import java.util.*;
[ "java.util" ]
java.util;
2,412,201
StatusFragment fragment = new StatusFragment(); Bundle args = new Bundle(); args.putParcelable(STATUS, status); args.putParcelableArrayList(COMMENTS, comments); fragment.setArguments(args); return fragment; } public StatusFragment() { // Required empty public con...
StatusFragment fragment = new StatusFragment(); Bundle args = new Bundle(); args.putParcelable(STATUS, status); args.putParcelableArrayList(COMMENTS, comments); fragment.setArguments(args); return fragment; } public StatusFragment() { }
/** * Use this factory method to create a new instance of * this fragment using the provided parameters. * * @param status * @param comments * @return A new instance of fragment StatusFragment. */
Use this factory method to create a new instance of this fragment using the provided parameters
newInstance
{ "repo_name": "lutianming/weibo", "path": "app/src/main/java/com/lambda/weibo/fragments/StatusFragment.java", "license": "gpl-2.0", "size": 4864 }
[ "android.os.Bundle" ]
import android.os.Bundle;
import android.os.*;
[ "android.os" ]
android.os;
935,351
protected String doHttpRequest(final CloseableHttpClient httpClient, final URL url, int expectedStatus) throws URISyntaxException, IOException, ClientProtocolException, UnsupportedEncodingException { return doHttpRequestFormAuthn(httpClient, url, false, null, null, expectedStatus); }
String function(final CloseableHttpClient httpClient, final URL url, int expectedStatus) throws URISyntaxException, IOException, ClientProtocolException, UnsupportedEncodingException { return doHttpRequestFormAuthn(httpClient, url, false, null, null, expectedStatus); }
/** * Do HTTP GET request with given client. * * @param httpClient * @param url * @param expectedStatus expected status coe * @return response body */
Do HTTP GET request with given client
doHttpRequest
{ "repo_name": "rhusar/wildfly", "path": "testsuite/integration/manualmode/src/test/java/org/wildfly/test/manual/elytron/seccontext/AbstractSecurityContextPropagationTestBase.java", "license": "lgpl-2.1", "size": 37808 }
[ "java.io.IOException", "java.io.UnsupportedEncodingException", "java.net.URISyntaxException", "org.apache.http.client.ClientProtocolException", "org.apache.http.impl.client.CloseableHttpClient" ]
import java.io.IOException; import java.io.UnsupportedEncodingException; import java.net.URISyntaxException; import org.apache.http.client.ClientProtocolException; import org.apache.http.impl.client.CloseableHttpClient;
import java.io.*; import java.net.*; import org.apache.http.client.*; import org.apache.http.impl.client.*;
[ "java.io", "java.net", "org.apache.http" ]
java.io; java.net; org.apache.http;
1,705,259
final Person currentUser = GlobalVariables.getUserSession().getPerson(); if (accountingDocumentForValidation instanceof Correctable) { final String errorDocumentNumber = ((FinancialSystemDocumentHeader)accountingDocumentForValidation.getDocumentHeader()).getFinancialDocumentInErrorNumber();...
final Person currentUser = GlobalVariables.getUserSession().getPerson(); if (accountingDocumentForValidation instanceof Correctable) { final String errorDocumentNumber = ((FinancialSystemDocumentHeader)accountingDocumentForValidation.getDocumentHeader()).getFinancialDocumentInErrorNumber(); if (StringUtils.isNotBlank(e...
/** * Validates that the given accounting line is accessible for editing by the current user. * <strong>This method expects a document as the first parameter and an accounting line as the second</strong> * @see org.kuali.kfs.sys.document.validation.Validation#validate(java.lang.Object[]) */
Validates that the given accounting line is accessible for editing by the current user. This method expects a document as the first parameter and an accounting line as the second
validate
{ "repo_name": "bhutchinson/kfs", "path": "kfs-core/src/main/java/org/kuali/kfs/fp/document/validation/impl/ServiceBillingAccountingLineAccessibleValidation.java", "license": "agpl-3.0", "size": 7771 }
[ "org.apache.commons.lang.StringUtils", "org.kuali.kfs.fp.document.authorization.ServiceBillingDocumentAuthorizer", "org.kuali.kfs.sys.KFSPropertyConstants", "org.kuali.kfs.sys.businessobject.FinancialSystemDocumentHeader", "org.kuali.kfs.sys.document.Correctable", "org.kuali.rice.kew.api.WorkflowDocument"...
import org.apache.commons.lang.StringUtils; import org.kuali.kfs.fp.document.authorization.ServiceBillingDocumentAuthorizer; import org.kuali.kfs.sys.KFSPropertyConstants; import org.kuali.kfs.sys.businessobject.FinancialSystemDocumentHeader; import org.kuali.kfs.sys.document.Correctable; import org.kuali.rice.kew.api....
import org.apache.commons.lang.*; import org.kuali.kfs.fp.document.authorization.*; import org.kuali.kfs.sys.*; import org.kuali.kfs.sys.businessobject.*; import org.kuali.kfs.sys.document.*; import org.kuali.rice.kew.api.*; import org.kuali.rice.kim.api.identity.*; import org.kuali.rice.krad.util.*;
[ "org.apache.commons", "org.kuali.kfs", "org.kuali.rice" ]
org.apache.commons; org.kuali.kfs; org.kuali.rice;
1,771,040
static <K extends Comparable<K>, V> SmallSortedMap<K, V> newInstanceForTest( int arraySize) { return new SmallSortedMap<K, V>(arraySize); } private final int maxArraySize; // The "entry array" is actually a List because generic arrays are not // allowed. ArrayList also nicely handles the entry shif...
static <K extends Comparable<K>, V> SmallSortedMap<K, V> newInstanceForTest( int arraySize) { return new SmallSortedMap<K, V>(arraySize); } private final int maxArraySize; private List<Entry> entryList; private Map<K, V> overflowEntries; private boolean isImmutable; private volatile EntrySet lazyEntrySet; private Small...
/** * Creates a new instance for testing. * * @param arraySize The size of the entry array containing the * lexicographically smallest mappings. */
Creates a new instance for testing
newInstanceForTest
{ "repo_name": "gustavoanatoly/hbase", "path": "hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/SmallSortedMap.java", "license": "apache-2.0", "size": 20484 }
[ "java.util.Collections", "java.util.List", "java.util.Map" ]
import java.util.Collections; import java.util.List; import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
1,209,939
private void bindSummaryToStringValue(final int key) { final Preference pref = getPreference(key); if (pref == null) { return; } final String value = PreferenceManager .getDefaultSharedPreferences(pref.getContext()) .getString(pref.getKey...
void function(final int key) { final Preference pref = getPreference(key); if (pref == null) { return; } final String value = PreferenceManager .getDefaultSharedPreferences(pref.getContext()) .getString(pref.getKey(), ""); bindSummaryToValue(pref, value); }
/** * auto-care for the summary of the preference of string type with this key */
auto-care for the summary of the preference of string type with this key
bindSummaryToStringValue
{ "repo_name": "rsudev/c-geo-opensource", "path": "main/src/cgeo/geocaching/settings/SettingsActivity.java", "license": "apache-2.0", "size": 52319 }
[ "android.preference.Preference", "android.preference.PreferenceManager" ]
import android.preference.Preference; import android.preference.PreferenceManager;
import android.preference.*;
[ "android.preference" ]
android.preference;
1,842,480
public EList<CustomerAgreement> getCustomerAgreements() { if (customerAgreements == null) { customerAgreements = new BasicInternalEList<CustomerAgreement>(CustomerAgreement.class); } return customerAgreements; }
EList<CustomerAgreement> function() { if (customerAgreements == null) { customerAgreements = new BasicInternalEList<CustomerAgreement>(CustomerAgreement.class); } return customerAgreements; }
/** * Returns the value of the '<em><b>Customer Agreements</b></em>' reference list. * The list contents are of type {@link CIM15.IEC61968.Customers.CustomerAgreement}. * It is bidirectional and its opposite is '{@link CIM15.IEC61968.Customers.CustomerAgreement#getEquipments <em>Equipments</em>}'. * <!-- begin-...
Returns the value of the 'Customer Agreements' reference list. The list contents are of type <code>CIM15.IEC61968.Customers.CustomerAgreement</code>. It is bidirectional and its opposite is '<code>CIM15.IEC61968.Customers.CustomerAgreement#getEquipments Equipments</code>'. If the meaning of the 'Customer Agreements' re...
getCustomerAgreements
{ "repo_name": "SES-fortiss/SmartGridCoSimulation", "path": "core/cim15/src/CIM15/IEC61970/Core/Equipment.java", "license": "apache-2.0", "size": 17181 }
[ "org.eclipse.emf.common.util.EList", "org.eclipse.emf.ecore.util.BasicInternalEList" ]
import org.eclipse.emf.common.util.EList; import org.eclipse.emf.ecore.util.BasicInternalEList;
import org.eclipse.emf.common.util.*; import org.eclipse.emf.ecore.util.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
88,400
public StatusHistoryDTO getProcessGroupStatusHistory(final String groupId) { final String searchId = groupId.equals(ROOT_GROUP_ID_ALIAS) ? flowController.getRootGroupId() : groupId; final ProcessGroup root = flowController.getGroup(flowController.getRootGroupId()); final ProcessGroup group =...
StatusHistoryDTO function(final String groupId) { final String searchId = groupId.equals(ROOT_GROUP_ID_ALIAS) ? flowController.getRootGroupId() : groupId; final ProcessGroup root = flowController.getGroup(flowController.getRootGroupId()); final ProcessGroup group = root.findProcessGroup(searchId); if (group == null) { ...
/** * Returns the status history for the specified process group. * * @param groupId group id * @return status history */
Returns the status history for the specified process group
getProcessGroupStatusHistory
{ "repo_name": "zhengsg/nifi", "path": "nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/controller/ControllerFacade.java", "license": "apache-2.0", "size": 73055 }
[ "org.apache.nifi.authorization.RequestAction", "org.apache.nifi.authorization.user.NiFiUserUtils", "org.apache.nifi.controller.status.history.ComponentStatusRepository", "org.apache.nifi.groups.ProcessGroup", "org.apache.nifi.web.ResourceNotFoundException", "org.apache.nifi.web.api.dto.status.StatusHistor...
import org.apache.nifi.authorization.RequestAction; import org.apache.nifi.authorization.user.NiFiUserUtils; import org.apache.nifi.controller.status.history.ComponentStatusRepository; import org.apache.nifi.groups.ProcessGroup; import org.apache.nifi.web.ResourceNotFoundException; import org.apache.nifi.web.api.dto.st...
import org.apache.nifi.authorization.*; import org.apache.nifi.authorization.user.*; import org.apache.nifi.controller.status.history.*; import org.apache.nifi.groups.*; import org.apache.nifi.web.*; import org.apache.nifi.web.api.dto.status.*;
[ "org.apache.nifi" ]
org.apache.nifi;
618,425
public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof CombinedRangeCategoryPlot)) { return false; } CombinedRangeCategoryPlot that = (CombinedRangeCategoryPlot) obj; if (this.gap != that.gap) { ...
boolean function(Object obj) { if (obj == this) { return true; } if (!(obj instanceof CombinedRangeCategoryPlot)) { return false; } CombinedRangeCategoryPlot that = (CombinedRangeCategoryPlot) obj; if (this.gap != that.gap) { return false; } if (!ObjectUtilities.equal(this.subplots, that.subplots)) { return false; } re...
/** * Tests the plot for equality with an arbitrary object. * * @param obj the object (<code>null</code> permitted). * * @return <code>true</code> or <code>false</code>. */
Tests the plot for equality with an arbitrary object
equals
{ "repo_name": "apetresc/JFreeChart", "path": "src/main/java/org/jfree/chart/plot/CombinedRangeCategoryPlot.java", "license": "lgpl-2.1", "size": 20064 }
[ "org.jfree.util.ObjectUtilities" ]
import org.jfree.util.ObjectUtilities;
import org.jfree.util.*;
[ "org.jfree.util" ]
org.jfree.util;
354,616
private void saveImageToTmpFile(BufferedImage im) { File outputfile = new File( testName.getMethodName() + "_image.png"); System.out.println("Image file is at " + outputfile.getAbsolutePath()); System.out.println("Sizes -> " + im.getWidth() + "x" + im.getHeight()); try { ImageIO.write(im, "png...
void function(BufferedImage im) { File outputfile = new File( testName.getMethodName() + STR); System.out.println(STR + outputfile.getAbsolutePath()); System.out.println(STR + im.getWidth() + "x" + im.getHeight()); try { ImageIO.write(im, "png", outputfile); } catch (IOException e) { fail(STR + e.getMessage()); } }
/** * Simple helper to save screenshot to tmp file. For debug purposes. * * @param im image */
Simple helper to save screenshot to tmp file. For debug purposes
saveImageToTmpFile
{ "repo_name": "rplevka/selenium", "path": "java/client/test/org/openqa/selenium/TakesScreenshotTest.java", "license": "apache-2.0", "size": 20705 }
[ "java.awt.image.BufferedImage", "java.io.File", "java.io.IOException", "javax.imageio.ImageIO", "org.junit.Assert" ]
import java.awt.image.BufferedImage; import java.io.File; import java.io.IOException; import javax.imageio.ImageIO; import org.junit.Assert;
import java.awt.image.*; import java.io.*; import javax.imageio.*; import org.junit.*;
[ "java.awt", "java.io", "javax.imageio", "org.junit" ]
java.awt; java.io; javax.imageio; org.junit;
2,326,706
public Promise<Response> get(URI uri);
Promise<Response> function(URI uri);
/** * Performs a GET request * @param uri the URI against which to make the GET request * @return a Promise with the contents of the response */
Performs a GET request
get
{ "repo_name": "dmcpl/clj-http-client", "path": "src/java/com/puppetlabs/http/client/AsyncHttpClient.java", "license": "apache-2.0", "size": 6379 }
[ "com.puppetlabs.http.client.impl.Promise" ]
import com.puppetlabs.http.client.impl.Promise;
import com.puppetlabs.http.client.impl.*;
[ "com.puppetlabs.http" ]
com.puppetlabs.http;
699,298
public VenueLocation getMapLocation() { VenueLocation loc = new VenueLocation(""); MapPosition mp = mMap.getMapPosition(); loc.setLongitude(mp.getLongitude()); loc.setLatitude(mp.getLatitude()); loc.setFloor(mCurrentFloor); return loc; }
VenueLocation function() { VenueLocation loc = new VenueLocation(""); MapPosition mp = mMap.getMapPosition(); loc.setLongitude(mp.getLongitude()); loc.setLatitude(mp.getLatitude()); loc.setFloor(mCurrentFloor); return loc; }
/** * Get map location * @return */
Get map location
getMapLocation
{ "repo_name": "geolys/geolys-android-sdk-vtm", "path": "src/com/tevolys/geolys/sdk/map/VenueMap.java", "license": "gpl-3.0", "size": 14979 }
[ "com.tevolys.geolys.sdk.model.VenueLocation", "org.oscim.core.MapPosition" ]
import com.tevolys.geolys.sdk.model.VenueLocation; import org.oscim.core.MapPosition;
import com.tevolys.geolys.sdk.model.*; import org.oscim.core.*;
[ "com.tevolys.geolys", "org.oscim.core" ]
com.tevolys.geolys; org.oscim.core;
1,529,263
@Override public String getText(Object object) { String label = ((SwitchCaseBranchOutputConnector)object).getCaseRegex(); return label == null || label.length() == 0 ? getString("_UI_SwitchCaseBranchOutputConnector_type") : getString("_UI_SwitchCaseBranchOutputConnect...
String function(Object object) { String label = ((SwitchCaseBranchOutputConnector)object).getCaseRegex(); return label == null label.length() == 0 ? getString(STR) : getString(STR) + "\t\t" + label; }
/** * This returns the label text for the adapted class. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated NOT */
This returns the label text for the adapted class.
getText
{ "repo_name": "prabushi/devstudio-tooling-esb", "path": "plugins/org.wso2.developerstudio.eclipse.gmf.esb.edit/src/org/wso2/developerstudio/eclipse/gmf/esb/provider/SwitchCaseBranchOutputConnectorItemProvider.java", "license": "apache-2.0", "size": 5016 }
[ "org.wso2.developerstudio.eclipse.gmf.esb.SwitchCaseBranchOutputConnector" ]
import org.wso2.developerstudio.eclipse.gmf.esb.SwitchCaseBranchOutputConnector;
import org.wso2.developerstudio.eclipse.gmf.esb.*;
[ "org.wso2.developerstudio" ]
org.wso2.developerstudio;
2,500,529
public void setDocument(Document newDocument) { if (newDocument != document) { NotificationChain msgs = null; if (document != null) msgs = ((InternalEObject)document).eInverseRemove(this, CommonPackage.DOCUMENT__ERP_ORGANISATION_ROLES, Document.class, msgs); if (newDocument != null) msgs = ((Inter...
void function(Document newDocument) { if (newDocument != document) { NotificationChain msgs = null; if (document != null) msgs = ((InternalEObject)document).eInverseRemove(this, CommonPackage.DOCUMENT__ERP_ORGANISATION_ROLES, Document.class, msgs); if (newDocument != null) msgs = ((InternalEObject)newDocument).eInverse...
/** * Sets the value of the '{@link CIM15.IEC61970.Informative.InfERPSupport.DocOrgRole#getDocument <em>Document</em>}' reference. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @param value the new value of the '<em>Document</em>' reference. * @see #getDocument() * @generated */
Sets the value of the '<code>CIM15.IEC61970.Informative.InfERPSupport.DocOrgRole#getDocument Document</code>' reference.
setDocument
{ "repo_name": "SES-fortiss/SmartGridCoSimulation", "path": "core/cim15/src/CIM15/IEC61970/Informative/InfERPSupport/DocOrgRole.java", "license": "apache-2.0", "size": 9198 }
[ "org.eclipse.emf.common.notify.NotificationChain", "org.eclipse.emf.ecore.InternalEObject" ]
import org.eclipse.emf.common.notify.NotificationChain; import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.common.notify.*; import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
255,503
protected File parseFileMetaData(final String line, final int lineNumber) throws ParsingException { final File file; if (line.matches(ProcessorConstants.FILE_ID_REGEX)) { file = new File(Integer.parseInt(line)); } else if (FILE_ID_LONG_PATTERN.matcher(line).matches()) { ...
File function(final String line, final int lineNumber) throws ParsingException { final File file; if (line.matches(ProcessorConstants.FILE_ID_REGEX)) { file = new File(Integer.parseInt(line)); } else if (FILE_ID_LONG_PATTERN.matcher(line).matches()) { final Matcher matcher = FILE_ID_LONG_PATTERN.matcher(line); matcher....
/** * Parse a File MetaData component into a {@link org.jboss.pressgang.ccms.contentspec.File} object. * * @param line The line to be parsed. * @param lineNumber The line number of the line being parsed. * @return A file object initialised with the data from the line. * @throws Parsi...
Parse a File MetaData component into a <code>org.jboss.pressgang.ccms.contentspec.File</code> object
parseFileMetaData
{ "repo_name": "pressgang-ccms/PressGangCCMSContentSpecProcessor", "path": "src/main/java/org/jboss/pressgang/ccms/contentspec/processor/ContentSpecParser.java", "license": "gpl-3.0", "size": 111420 }
[ "com.google.code.regexp.Matcher", "org.jboss.pressgang.ccms.contentspec.File", "org.jboss.pressgang.ccms.contentspec.exceptions.ParsingException", "org.jboss.pressgang.ccms.contentspec.processor.constants.ProcessorConstants" ]
import com.google.code.regexp.Matcher; import org.jboss.pressgang.ccms.contentspec.File; import org.jboss.pressgang.ccms.contentspec.exceptions.ParsingException; import org.jboss.pressgang.ccms.contentspec.processor.constants.ProcessorConstants;
import com.google.code.regexp.*; import org.jboss.pressgang.ccms.contentspec.*; import org.jboss.pressgang.ccms.contentspec.exceptions.*; import org.jboss.pressgang.ccms.contentspec.processor.constants.*;
[ "com.google.code", "org.jboss.pressgang" ]
com.google.code; org.jboss.pressgang;
1,172,159
public static ApproximateHistogram fromBytesSparse(ByteBuffer buf) { int size = buf.getInt(); int binCount = -1 * buf.getInt(); float[] positions = new float[size]; long[] bins = new long[size]; for (int i = 0; i < binCount; ++i) { positions[i] = buf.getFloat(); } for (int i = 0;...
static ApproximateHistogram function(ByteBuffer buf) { int size = buf.getInt(); int binCount = -1 * buf.getInt(); float[] positions = new float[size]; long[] bins = new long[size]; for (int i = 0; i < binCount; ++i) { positions[i] = buf.getFloat(); } for (int i = 0; i < binCount; ++i) { bins[i] = buf.getLong(); } float...
/** * Constructs an ApproximateHistogram object from the given dense byte-buffer representation * * @param buf ByteBuffer to construct an ApproximateHistogram from * * @return ApproximateHistogram constructed from the given ByteBuffer */
Constructs an ApproximateHistogram object from the given dense byte-buffer representation
fromBytesSparse
{ "repo_name": "solimant/druid", "path": "extensions-core/histogram/src/main/java/io/druid/query/aggregation/histogram/ApproximateHistogram.java", "license": "apache-2.0", "size": 50055 }
[ "java.nio.ByteBuffer" ]
import java.nio.ByteBuffer;
import java.nio.*;
[ "java.nio" ]
java.nio;
1,040,487
private String printMessage(String type, String file) { String message = null; try { message = FileUtils.readFileToString(new File(file), Charset.defaultCharset()).trim(); LOG.info(" Advisor script {}: {}", type, message); } catch (IOException io) { LOG.error("Error in reading script ...
String function(String type, String file) { String message = null; try { message = FileUtils.readFileToString(new File(file), Charset.defaultCharset()).trim(); LOG.info(STR, type, message); } catch (IOException io) { LOG.error(STR, io); } return message; }
/** * Logs messages from the output/error file. * @param type Severity type, stdout or stderr * @param file File path * @return File to a String */
Logs messages from the output/error file
printMessage
{ "repo_name": "sekikn/ambari", "path": "ambari-server/src/main/java/org/apache/ambari/server/api/services/stackadvisor/StackAdvisorRunner.java", "license": "apache-2.0", "size": 9245 }
[ "java.io.File", "java.io.IOException", "java.nio.charset.Charset", "org.apache.commons.io.FileUtils" ]
import java.io.File; import java.io.IOException; import java.nio.charset.Charset; import org.apache.commons.io.FileUtils;
import java.io.*; import java.nio.charset.*; import org.apache.commons.io.*;
[ "java.io", "java.nio", "org.apache.commons" ]
java.io; java.nio; org.apache.commons;
1,707,317
private Writer fileNameToOutputWriter2(String fileName) throws IOException { if (fileName == null) { return null; } if (testMode) { return new StringWriter(); } return streamToOutputWriter2(filenameToOutputStream(fileName)); }
Writer function(String fileName) throws IOException { if (fileName == null) { return null; } if (testMode) { return new StringWriter(); } return streamToOutputWriter2(filenameToOutputStream(fileName)); }
/** * Converts a file name into a Writer taking in account the output charset. * Returns null if the file name is null. */
Converts a file name into a Writer taking in account the output charset. Returns null if the file name is null
fileNameToOutputWriter2
{ "repo_name": "wenzowski/closure-compiler", "path": "src/com/google/javascript/jscomp/AbstractCommandLineRunner.java", "license": "apache-2.0", "size": 65519 }
[ "java.io.IOException", "java.io.StringWriter", "java.io.Writer" ]
import java.io.IOException; import java.io.StringWriter; import java.io.Writer;
import java.io.*;
[ "java.io" ]
java.io;
2,026,287
@Override public void writeTo(DataOutput output) throws IOException { output.writeByte((byte) nFields); if (shouldSort) { // First write the fields that need to be sorted BDataOutput o = (BDataOutput) output; int startLength = o.cb.getEnd(); if (fieldsToSort != null) { o.skipBytes(2 * fieldsToS...
void function(DataOutput output) throws IOException { output.writeByte((byte) nFields); if (shouldSort) { BDataOutput o = (BDataOutput) output; int startLength = o.cb.getEnd(); if (fieldsToSort != null) { o.skipBytes(2 * fieldsToSort.length); int currentPosition = o.cb.getEnd(); for (int i = 0; i < fieldsToSort.length;...
/** * Writes the new serialized tuple (the one that also contains extra * information about how it should be sorted) into a data output stream --- * only if those information are specified upwards, otherwise it will simply * write the tuple as it is. */
Writes the new serialized tuple (the one that also contains extra information about how it should be sorted) into a data output stream --- only if those information are specified upwards, otherwise it will simply write the tuple as it is
writeTo
{ "repo_name": "jrbn/ajira", "path": "src/nl/vu/cs/ajira/buckets/WritableTuple.java", "license": "apache-2.0", "size": 5946 }
[ "java.io.DataOutput", "java.io.IOException", "nl.vu.cs.ajira.data.types.bytearray.BDataOutput" ]
import java.io.DataOutput; import java.io.IOException; import nl.vu.cs.ajira.data.types.bytearray.BDataOutput;
import java.io.*; import nl.vu.cs.ajira.data.types.bytearray.*;
[ "java.io", "nl.vu.cs" ]
java.io; nl.vu.cs;
1,990,346
@RequestMapping(value = "/buy", method = RequestMethod.GET, produces = "text/html") public String shopBuy(Model model, @RequestParam("id") int id, @RequestParam("type") ItemType type, ShopForm form, RedirectAttributes redirectAttrs) { PlayersCharacter pc = playerService.findById(form.getPlayerId()); if (pc =...
@RequestMapping(value = "/buy", method = RequestMethod.GET, produces = STR) String function(Model model, @RequestParam("id") int id, @RequestParam("type") ItemType type, ShopForm form, RedirectAttributes redirectAttrs) { PlayersCharacter pc = playerService.findById(form.getPlayerId()); if (pc == null) { log.error(STR);...
/** * Handling item buying submission. * * @param model the model * @param id the chracter id * @param type the item type * @param form the shop form * @param redirectAttrs the redirect attributes * @return the view name */
Handling item buying submission
shopBuy
{ "repo_name": "valesz91/DR2", "path": "dungeon-raider/dungeon-raider-web/src/main/java/hu/inf/unideb/dungeonraider/web/ShopController.java", "license": "gpl-3.0", "size": 8543 }
[ "hu.inf.unideb.dungeonraider.domain.ItemType", "hu.inf.unideb.dungeonraider.domain.PlayersCharacter", "hu.inf.unideb.dungeonraider.service.ItemException", "hu.inf.unideb.dungeonraider.service.MissingEntityException", "org.springframework.ui.Model", "org.springframework.web.bind.annotation.RequestMapping",...
import hu.inf.unideb.dungeonraider.domain.ItemType; import hu.inf.unideb.dungeonraider.domain.PlayersCharacter; import hu.inf.unideb.dungeonraider.service.ItemException; import hu.inf.unideb.dungeonraider.service.MissingEntityException; import org.springframework.ui.Model; import org.springframework.web.bind.annotation...
import hu.inf.unideb.dungeonraider.domain.*; import hu.inf.unideb.dungeonraider.service.*; import org.springframework.ui.*; import org.springframework.web.bind.annotation.*; import org.springframework.web.servlet.mvc.support.*;
[ "hu.inf.unideb", "org.springframework.ui", "org.springframework.web" ]
hu.inf.unideb; org.springframework.ui; org.springframework.web;
847,426
protected ResponseEntity<?> getResponseEntity(UriComponentsBuilder builder, HttpMethod method, HttpEntity<?> httpEntity,Class<?> clazz){ String url = builder.build().encode().toUri().toString().replaceFirst("www.", ""); logger.debug("uri to exchange {}", url); return restTemplate.exchange(url, method, httpE...
ResponseEntity<?> function(UriComponentsBuilder builder, HttpMethod method, HttpEntity<?> httpEntity,Class<?> clazz){ String url = builder.build().encode().toUri().toString().replaceFirst("www.", STRuri to exchange {}", url); return restTemplate.exchange(url, method, httpEntity, clazz); }
/** * Realiza a chamada 'REST' * * @param builder * @param method * @param httpEntity * @param clazz * */
Realiza a chamada 'REST'
getResponseEntity
{ "repo_name": "chmulato/helianto-seed", "path": "src/main/java/com/iservport/tfs/controller/AbstractServiceClass.java", "license": "apache-2.0", "size": 2662 }
[ "org.springframework.http.HttpEntity", "org.springframework.http.HttpMethod", "org.springframework.http.ResponseEntity", "org.springframework.web.util.UriComponentsBuilder" ]
import org.springframework.http.HttpEntity; import org.springframework.http.HttpMethod; import org.springframework.http.ResponseEntity; import org.springframework.web.util.UriComponentsBuilder;
import org.springframework.http.*; import org.springframework.web.util.*;
[ "org.springframework.http", "org.springframework.web" ]
org.springframework.http; org.springframework.web;
1,014,068
void onDecodedData(DeviceInfo deviceInfo, ISktScanDecodedData decodedData);
void onDecodedData(DeviceInfo deviceInfo, ISktScanDecodedData decodedData);
/** * called each time ScanAPI receives decoded data from scanner * * @param deviceInfo contains the device information from which * the data has been decoded * @param decodedData contains the decoded data information */
called each time ScanAPI receives decoded data from scanner
onDecodedData
{ "repo_name": "SocketMobile/samples-android", "path": "warrantyChecker/src/main/java/com/example/socketmobile/android/scanapi/ScanApiHelper.java", "license": "apache-2.0", "size": 54630 }
[ "com.socketmobile.scanapi.ISktScanDecodedData" ]
import com.socketmobile.scanapi.ISktScanDecodedData;
import com.socketmobile.scanapi.*;
[ "com.socketmobile.scanapi" ]
com.socketmobile.scanapi;
1,101,548
protected void assertNiceColorSpace(final PDFColorSpace cs) throws PDFIOException, PDFSecurityException, PDFInvalidDocumentException { assertTrue(cs instanceof PDFColorSpaceICCBased); assertEquals(3, cs.getNumberOfComponents()); assertEquals(ASName.k_ICCBased, cs.getName(...
void function(final PDFColorSpace cs) throws PDFIOException, PDFSecurityException, PDFInvalidDocumentException { assertTrue(cs instanceof PDFColorSpaceICCBased); assertEquals(3, cs.getNumberOfComponents()); assertEquals(ASName.k_ICCBased, cs.getName()); if (cs instanceof PDFColorSpaceICCBased) { final PDFICCProfile icc...
/** * Assert that the color space is a nice color space. * * <p> * Basically must be ICC-based with three components, and verify that the ICC profile is flate compressed. * * @param cs the {@link PDFColorSpace} to test * @throws PDFSecurityException some general security issue occurre...
Assert that the color space is a nice color space. Basically must be ICC-based with three components, and verify that the ICC profile is flate compressed
assertNiceColorSpace
{ "repo_name": "datalogics-coreyy/pdf-java-toolkit-samples", "path": "src/test/java/com/datalogics/pdf/samples/SampleTest.java", "license": "mit", "size": 19934 }
[ "com.adobe.pdfjt.core.exceptions.PDFIOException", "com.adobe.pdfjt.core.exceptions.PDFInvalidDocumentException", "com.adobe.pdfjt.core.exceptions.PDFSecurityException", "com.adobe.pdfjt.core.types.ASName", "com.adobe.pdfjt.pdf.document.PDFDocument", "com.adobe.pdfjt.pdf.filters.PDFFilter", "com.adobe.pd...
import com.adobe.pdfjt.core.exceptions.PDFIOException; import com.adobe.pdfjt.core.exceptions.PDFInvalidDocumentException; import com.adobe.pdfjt.core.exceptions.PDFSecurityException; import com.adobe.pdfjt.core.types.ASName; import com.adobe.pdfjt.pdf.document.PDFDocument; import com.adobe.pdfjt.pdf.filters.PDFFilter;...
import com.adobe.pdfjt.core.exceptions.*; import com.adobe.pdfjt.core.types.*; import com.adobe.pdfjt.pdf.document.*; import com.adobe.pdfjt.pdf.filters.*; import com.adobe.pdfjt.pdf.graphics.colorspaces.*; import org.junit.*;
[ "com.adobe.pdfjt", "org.junit" ]
com.adobe.pdfjt; org.junit;
2,332,732
public LocalDateTime getUpdatedAt() { return updatedAt; }
LocalDateTime function() { return updatedAt; }
/** * This method was generated by MyBatis Generator. * This method returns the value of the database column ASYNC_PROCESS_FILE_RESULT_DETAIL.UPDATED_AT * * @return the value of ASYNC_PROCESS_FILE_RESULT_DETAIL.UPDATED_AT * * @mbggenerated */
This method was generated by MyBatis Generator. This method returns the value of the database column ASYNC_PROCESS_FILE_RESULT_DETAIL.UPDATED_AT
getUpdatedAt
{ "repo_name": "agwlvssainokuni/sqlapp", "path": "src/generated/java/cherry/sqlapp/db/gen/dto/AsyncProcessFileResultDetail.java", "license": "apache-2.0", "size": 11684 }
[ "org.joda.time.LocalDateTime" ]
import org.joda.time.LocalDateTime;
import org.joda.time.*;
[ "org.joda.time" ]
org.joda.time;
2,879,434
public static ExtensionDescription getDefaultDescription(boolean required, boolean repeatable) { ExtensionDescription desc = ExtensionDescription.getDefaultDescription(Summary.class); desc.setRequired(required); desc.setRepeatable(repeatable); return desc; }
static ExtensionDescription function(boolean required, boolean repeatable) { ExtensionDescription desc = ExtensionDescription.getDefaultDescription(Summary.class); desc.setRequired(required); desc.setRepeatable(repeatable); return desc; }
/** * Returns the extension description, specifying whether it is required, and * whether it is repeatable. * * @param required whether it is required * @param repeatable whether it is repeatable * @return extension description */
Returns the extension description, specifying whether it is required, and whether it is repeatable
getDefaultDescription
{ "repo_name": "simonrrr/gdata-java-client", "path": "java/src/com/google/gdata/data/projecthosting/Summary.java", "license": "apache-2.0", "size": 2054 }
[ "com.google.gdata.data.ExtensionDescription" ]
import com.google.gdata.data.ExtensionDescription;
import com.google.gdata.data.*;
[ "com.google.gdata" ]
com.google.gdata;
2,387,929
ProcessingUnitInstanceRemovedEventManager getProcessingUnitInstanceRemoved();
ProcessingUnitInstanceRemovedEventManager getProcessingUnitInstanceRemoved();
/** * Returns an event manager allowing to register {@link org.openspaces.admin.pu.events.ProcessingUnitRemovedEventListener}s * for processing unit instances removed on this virtual machine. */
Returns an event manager allowing to register <code>org.openspaces.admin.pu.events.ProcessingUnitRemovedEventListener</code>s for processing unit instances removed on this virtual machine
getProcessingUnitInstanceRemoved
{ "repo_name": "Gigaspaces/xap-openspaces", "path": "src/main/java/org/openspaces/admin/vm/VirtualMachine.java", "license": "apache-2.0", "size": 6306 }
[ "org.openspaces.admin.pu.events.ProcessingUnitInstanceRemovedEventManager" ]
import org.openspaces.admin.pu.events.ProcessingUnitInstanceRemovedEventManager;
import org.openspaces.admin.pu.events.*;
[ "org.openspaces.admin" ]
org.openspaces.admin;
1,664,174
public boolean destroyCache0(String cacheName, boolean sql) throws CacheException;
boolean function(String cacheName, boolean sql) throws CacheException;
/** * Stops dynamically started cache. * * @param cacheName Cache name to stop. * @param sql {@code true} if only cache created with SQL command {@code CREATE TABLE} should be affected, * {@code false} otherwise. * @return {@code true} if cache has been stopped as the result of this ca...
Stops dynamically started cache
destroyCache0
{ "repo_name": "vadopolski/ignite", "path": "modules/core/src/main/java/org/apache/ignite/internal/IgniteEx.java", "license": "apache-2.0", "size": 5896 }
[ "javax.cache.CacheException" ]
import javax.cache.CacheException;
import javax.cache.*;
[ "javax.cache" ]
javax.cache;
1,045,154
private boolean validateIdPIssuerName(IdentityProvider currentIdP, IdentityProvider newIdP, int tenantId, String tenantDomain) throws IdentityProviderManagementException { String newIdPIssuerName = null; IdentityProviderProperty[] identityProvid...
boolean function(IdentityProvider currentIdP, IdentityProvider newIdP, int tenantId, String tenantDomain) throws IdentityProviderManagementException { String newIdPIssuerName = null; IdentityProviderProperty[] identityProviderProperties = newIdP.getIdpProperties(); if (!ArrayUtils.isEmpty(identityProviderProperties)) {...
/** * Method to validate the uniqueness of the IDP Issuer Name. * Ideally used when updating a IDP. * If the provided two IDP configs have the same Issuer Name validation is passed. * * @param currentIdP Existing Identity Provider config. * @param newIdP Updated Identity Provider config. ...
Method to validate the uniqueness of the IDP Issuer Name. Ideally used when updating a IDP. If the provided two IDP configs have the same Issuer Name validation is passed
validateIdPIssuerName
{ "repo_name": "wso2/carbon-identity-framework", "path": "components/idp-mgt/org.wso2.carbon.idp.mgt/src/main/java/org/wso2/carbon/idp/mgt/IdentityProviderManager.java", "license": "apache-2.0", "size": 149641 }
[ "org.apache.commons.lang.ArrayUtils", "org.apache.commons.lang.StringUtils", "org.wso2.carbon.identity.application.common.model.IdentityProvider", "org.wso2.carbon.identity.application.common.model.IdentityProviderProperty", "org.wso2.carbon.identity.application.common.util.IdentityApplicationConstants" ]
import org.apache.commons.lang.ArrayUtils; import org.apache.commons.lang.StringUtils; import org.wso2.carbon.identity.application.common.model.IdentityProvider; import org.wso2.carbon.identity.application.common.model.IdentityProviderProperty; import org.wso2.carbon.identity.application.common.util.IdentityApplication...
import org.apache.commons.lang.*; import org.wso2.carbon.identity.application.common.model.*; import org.wso2.carbon.identity.application.common.util.*;
[ "org.apache.commons", "org.wso2.carbon" ]
org.apache.commons; org.wso2.carbon;
1,933,550
private int determineHttpStatusCode(MessageContext msgContext, HttpResponse response) { int httpStatus = HttpStatus.SC_OK; // retrieve original status code (if present) if (response.getStatusLine() != null) { httpStatus = response.getStatusLine().getStatusCode()...
int function(MessageContext msgContext, HttpResponse response) { int httpStatus = HttpStatus.SC_OK; if (response.getStatusLine() != null) { httpStatus = response.getStatusLine().getStatusCode(); } if (msgContext.isPropertyTrue(NhttpConstants.SC_ACCEPTED)) { httpStatus = HttpStatus.SC_ACCEPTED; } else { boolean handleFa...
/** * Determine the HttpStatusCodedepending on the message type processed <br> * (normal response versus fault response) as well as Axis2 message context properties set * via Synapse configuration or MessageBuilders. * * @see org.apache.synapse.transport.nhttp.NhttpConstants#FAULTS_AS_HTTP_200...
Determine the HttpStatusCodedepending on the message type processed (normal response versus fault response) as well as Axis2 message context properties set via Synapse configuration or MessageBuilders
determineHttpStatusCode
{ "repo_name": "maheshika/wso2-synapse", "path": "modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/nhttp/HttpCoreNIOSender.java", "license": "apache-2.0", "size": 38139 }
[ "org.apache.axis2.context.MessageContext", "org.apache.http.HttpResponse", "org.apache.http.HttpStatus" ]
import org.apache.axis2.context.MessageContext; import org.apache.http.HttpResponse; import org.apache.http.HttpStatus;
import org.apache.axis2.context.*; import org.apache.http.*;
[ "org.apache.axis2", "org.apache.http" ]
org.apache.axis2; org.apache.http;
794,420
public static boolean isLocalFileUri(Uri uri) { String scheme = uri.getScheme(); return TextUtils.isEmpty(scheme) || scheme.equals("file"); }
static boolean function(Uri uri) { String scheme = uri.getScheme(); return TextUtils.isEmpty(scheme) scheme.equals("file"); }
/** * Returns true if the URI is a path to a local file or a reference to a local file. * * @param uri The uri to test. */
Returns true if the URI is a path to a local file or a reference to a local file
isLocalFileUri
{ "repo_name": "JungleTian/Telegram", "path": "TMessagesProj/src/main/java/org/telegram/messenger/exoplayer2/util/Util.java", "license": "gpl-2.0", "size": 45286 }
[ "android.net.Uri", "android.text.TextUtils" ]
import android.net.Uri; import android.text.TextUtils;
import android.net.*; import android.text.*;
[ "android.net", "android.text" ]
android.net; android.text;
1,299,438
public Severity getSeverity() { return severity; }
Severity function() { return severity; }
/** * The severity of the message */
The severity of the message
getSeverity
{ "repo_name": "flightwatching/wilco-api", "path": "java/src/main/java/com/fw/wilco/api/InputMessageV3IO.java", "license": "apache-2.0", "size": 6943 }
[ "com.fw.wilco.api.constants.Severity" ]
import com.fw.wilco.api.constants.Severity;
import com.fw.wilco.api.constants.*;
[ "com.fw.wilco" ]
com.fw.wilco;
1,457,020
public String getContainer(String property) { if ("@graph".equals(property)) { return "@set"; } if (JsonLdUtils.isKeyword(property)) { return property; } final Map<String, Object> td = (Map<String, Object>) termDefinitions.get(property); ...
String function(String property) { if (STR.equals(property)) { return "@set"; } if (JsonLdUtils.isKeyword(property)) { return property; } final Map<String, Object> td = (Map<String, Object>) termDefinitions.get(property); if (td == null) { return null; } return (String) td.get(STR); }
/** * Retrieve container mapping. * * @param property * The Property to get a container mapping for. * @return The container mapping */
Retrieve container mapping
getContainer
{ "repo_name": "giorgos1987/jsonld-java", "path": "core/src/main/java/com/github/jsonldjava/core/Context.java", "license": "bsd-3-clause", "size": 43857 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
2,355,741
public TableDataMap createAndRegisterDataMap(AbsoluteTableIdentifier identifier, String factoryClassName, String dataMapName) { String table = identifier.uniqueName(); List<TableDataMap> tableDataMaps = allDataMaps.get(table); if (tableDataMaps == null) { tableDataMaps = new ArrayList<>(); ...
TableDataMap function(AbsoluteTableIdentifier identifier, String factoryClassName, String dataMapName) { String table = identifier.uniqueName(); List<TableDataMap> tableDataMaps = allDataMaps.get(table); if (tableDataMaps == null) { tableDataMaps = new ArrayList<>(); } TableDataMap dataMap = getTableDataMap(dataMapName...
/** * Return a new datamap instance and registered in the store manager. * The datamap is created using datamap name, datamap factory class and table identifier. */
Return a new datamap instance and registered in the store manager. The datamap is created using datamap name, datamap factory class and table identifier
createAndRegisterDataMap
{ "repo_name": "aniketadnaik/carbondataStreamIngest", "path": "core/src/main/java/org/apache/carbondata/core/datamap/DataMapStoreManager.java", "license": "apache-2.0", "size": 5071 }
[ "java.util.ArrayList", "java.util.List", "org.apache.carbondata.core.datamap.dev.DataMapFactory", "org.apache.carbondata.core.metadata.AbsoluteTableIdentifier" ]
import java.util.ArrayList; import java.util.List; import org.apache.carbondata.core.datamap.dev.DataMapFactory; import org.apache.carbondata.core.metadata.AbsoluteTableIdentifier;
import java.util.*; import org.apache.carbondata.core.datamap.dev.*; import org.apache.carbondata.core.metadata.*;
[ "java.util", "org.apache.carbondata" ]
java.util; org.apache.carbondata;
1,653,248
@ApiModelProperty(example = "null", value = "") public NullableInt64 getInstrumentId() { return instrumentId; }
@ApiModelProperty(example = "null", value = "") NullableInt64 function() { return instrumentId; }
/** * Get instrumentId * @return instrumentId **/
Get instrumentId
getInstrumentId
{ "repo_name": "ixaris/ope-applicationclients", "path": "java-client/src/main/java/com/ixaris/ope/applications/client/model/TransactionFilter.java", "license": "mit", "size": 7585 }
[ "com.ixaris.ope.applications.client.model.NullableInt64", "io.swagger.annotations.ApiModelProperty" ]
import com.ixaris.ope.applications.client.model.NullableInt64; import io.swagger.annotations.ApiModelProperty;
import com.ixaris.ope.applications.client.model.*; import io.swagger.annotations.*;
[ "com.ixaris.ope", "io.swagger.annotations" ]
com.ixaris.ope; io.swagger.annotations;
2,895,397
@Test public void basicJavabean() { BasicUser basicUser = new BasicUser(); basicUser.uid = 12345L; basicUser.name = "Fred"; String json = createJsonMapper().toJson(basicUser); Assert.assertTrue("{\"uid\":12345,\"name\":\"Fred\"}".equals(json)); }
void function() { BasicUser basicUser = new BasicUser(); basicUser.uid = 12345L; basicUser.name = "Fred"; String json = createJsonMapper().toJson(basicUser); Assert.assertTrue("{\"uid\STRname\":\"Fred\"}".equals(json)); }
/** * Can we handle a basic Javabean? */
Can we handle a basic Javabean
basicJavabean
{ "repo_name": "oleke/Gender-Mining", "path": "restfb/source/test/com/restfb/JsonMapperToJsonTest.java", "license": "apache-2.0", "size": 8259 }
[ "org.junit.Assert" ]
import org.junit.Assert;
import org.junit.*;
[ "org.junit" ]
org.junit;
901,698
public void processQueuedFilterProfileMsgs(List msgs) { final boolean isDebugEnabled = logger.isDebugEnabled(); if (msgs != null) { Iterator iter = msgs.iterator(); while (iter.hasNext()) { try { OperationMessage msg = (OperationMessage) iter.next(); if (isDebugEnabled...
void function(List msgs) { final boolean isDebugEnabled = logger.isDebugEnabled(); if (msgs != null) { Iterator iter = msgs.iterator(); while (iter.hasNext()) { try { OperationMessage msg = (OperationMessage) iter.next(); if (isDebugEnabled) { logger.debug(STR, msg); } msg.processRequest(this); } catch (Exception ex) {...
/** * Process the filter profile messages. */
Process the filter profile messages
processQueuedFilterProfileMsgs
{ "repo_name": "prasi-in/geode", "path": "geode-core/src/main/java/org/apache/geode/internal/cache/FilterProfile.java", "license": "apache-2.0", "size": 78357 }
[ "java.util.Iterator", "java.util.List", "org.apache.geode.cache.query.internal.cq.ServerCQ", "org.apache.geode.distributed.internal.HighPriorityDistributionMessage", "org.apache.geode.distributed.internal.MessageWithReply" ]
import java.util.Iterator; import java.util.List; import org.apache.geode.cache.query.internal.cq.ServerCQ; import org.apache.geode.distributed.internal.HighPriorityDistributionMessage; import org.apache.geode.distributed.internal.MessageWithReply;
import java.util.*; import org.apache.geode.cache.query.internal.cq.*; import org.apache.geode.distributed.internal.*;
[ "java.util", "org.apache.geode" ]
java.util; org.apache.geode;
1,840,402
GitLabApiForm formData = new GitLabApiForm() .withParam("merge_requests_events", getMergeRequestsEvents()) .withParam(COMMIT_EVENTS_PROP, getCommitEvents()) .withParam(URL_PROP, getUrl(), true) .withParam(API_URL_PROP, getApiUrl()) .withParam(PROJECT_KEY_...
GitLabApiForm formData = new GitLabApiForm() .withParam(STR, getMergeRequestsEvents()) .withParam(COMMIT_EVENTS_PROP, getCommitEvents()) .withParam(URL_PROP, getUrl(), true) .withParam(API_URL_PROP, getApiUrl()) .withParam(PROJECT_KEY_PROP, getProjectKey()) .withParam(USERNAME_PROP, getUsername(), true) .withParam(STR,...
/** * Get the form data for this service based on it's properties. * * @return the form data for this service based on it's properties */
Get the form data for this service based on it's properties
servicePropertiesForm
{ "repo_name": "gmessner/gitlab4j-api", "path": "src/main/java/org/gitlab4j/api/services/JiraService.java", "license": "mit", "size": 5053 }
[ "org.gitlab4j.api.GitLabApiForm" ]
import org.gitlab4j.api.GitLabApiForm;
import org.gitlab4j.api.*;
[ "org.gitlab4j.api" ]
org.gitlab4j.api;
1,197,620
public void applySettingsToWindow(JFrame frame) { if (position != null) { if (!isMaximized) position.translate(20, 20); frame.setLocation(position); } if (dimension != null) { frame.setSize(dimension); } if (isMaximized) { frame.setExtendedState(Frame.MAXIMIZED_HORIZ | Frame.MAX...
void function(JFrame frame) { if (position != null) { if (!isMaximized) position.translate(20, 20); frame.setLocation(position); } if (dimension != null) { frame.setSize(dimension); } if (isMaximized) { frame.setExtendedState(Frame.MAXIMIZED_HORIZ Frame.MAXIMIZED_VERT); } }
/** * Set window size and position according to the values in this instance */
Set window size and position according to the values in this instance
applySettingsToWindow
{ "repo_name": "DavidARivkin/mzmine2", "path": "src/main/java/net/sf/mzmine/parameters/parametertypes/WindowSettingsParameter.java", "license": "gpl-2.0", "size": 5414 }
[ "java.awt.Frame", "javax.swing.JFrame" ]
import java.awt.Frame; import javax.swing.JFrame;
import java.awt.*; import javax.swing.*;
[ "java.awt", "javax.swing" ]
java.awt; javax.swing;
850,963
private void checkReturnType(Method method) { TypeVariable<Method> typeParameter = getTypeParameter(method); Type genericReturnType = method.getGenericReturnType(); assertEquals(typeParameter, genericReturnType); assertInstanceOf(TypeVariable.class, genericReturnType); assert...
void function(Method method) { TypeVariable<Method> typeParameter = getTypeParameter(method); Type genericReturnType = method.getGenericReturnType(); assertEquals(typeParameter, genericReturnType); assertInstanceOf(TypeVariable.class, genericReturnType); assertEquals(method, ((TypeVariable<?>) genericReturnType).getGen...
/** * Tests whether the type of the return type is the declared type parameter. * @param method the declaring method */
Tests whether the type of the return type is the declared type parameter
checkReturnType
{ "repo_name": "xdajog/samsung_sources_i927", "path": "libcore/luni/src/test/java/tests/api/java/lang/reflect/GenericMethodsTests.java", "license": "gpl-2.0", "size": 4513 }
[ "java.lang.reflect.Method", "java.lang.reflect.Type", "java.lang.reflect.TypeVariable" ]
import java.lang.reflect.Method; import java.lang.reflect.Type; import java.lang.reflect.TypeVariable;
import java.lang.reflect.*;
[ "java.lang" ]
java.lang;
1,544,199
public static String getText(Node node) { StringBuffer reply = new StringBuffer(); NodeList children = node.getChildNodes(); for (int i = 0; i < children.getLength(); i++) { Node child = children.item(i); if ((child instanceof CharacterData && !(child in...
static String function(Node node) { StringBuffer reply = new StringBuffer(); NodeList children = node.getChildNodes(); for (int i = 0; i < children.getLength(); i++) { Node child = children.item(i); if ((child instanceof CharacterData && !(child instanceof Comment)) child instanceof EntityReference) { reply.append(chil...
/** * Extract the textual content from a Node. * This is rather like the XPath value of a Node. * @param node The node to extract the text from * @return The textual value of the node */
Extract the textual content from a Node. This is rather like the XPath value of a Node
getText
{ "repo_name": "TheOpenCloudEngine/metaworks", "path": "metaworks-dwr/core/api/main/java/org/directwebremoting/util/DomUtil.java", "license": "mit", "size": 1820 }
[ "org.w3c.dom.CharacterData", "org.w3c.dom.Comment", "org.w3c.dom.EntityReference", "org.w3c.dom.Node", "org.w3c.dom.NodeList" ]
import org.w3c.dom.CharacterData; import org.w3c.dom.Comment; import org.w3c.dom.EntityReference; import org.w3c.dom.Node; import org.w3c.dom.NodeList;
import org.w3c.dom.*;
[ "org.w3c.dom" ]
org.w3c.dom;
1,630,592
private Result pLexerScala$xmlPITarget(final int yyStart) throws IOException { Result yyResult; Result yyPredResult; boolean yyPredMatched; Void yyValue; ParseError yyError = ParseError.DUMMY; // Alternative 1. yyPredMatched = false; yyPredResult = pLexerScala...
private Result pLexerScala$xmlPITarget(final int yyStart) throws IOException { Result yyResult; Result yyPredResult; boolean yyPredMatched; Void yyValue; ParseError yyError = ParseError.DUMMY; yyPredMatched = false; yyPredResult = pLexerScala$xmlPITarget$$Choice1(yyStart); if (yyPredResult.hasValue()) { yyPredMatched =...
/** * Parse nonterminal * org.netbeans.modules.scala.core.rats.LexerScala.xmlPITarget. * * @param yyStart The index. * @return The result. * @throws IOException Signals an I/O error. */
Parse nonterminal org.netbeans.modules.scala.core.rats.LexerScala.xmlPITarget
pLexerScala$xmlPITarget
{ "repo_name": "vnkmr7620/kojo", "path": "ScalaEditorLite/src/org/netbeans/modules/scala/core/rats/LexerScala.java", "license": "gpl-3.0", "size": 391546 }
[ "java.io.IOException", "xtc.parser.ParseError", "xtc.parser.Result" ]
import java.io.IOException; import xtc.parser.ParseError; import xtc.parser.Result;
import java.io.*; import xtc.parser.*;
[ "java.io", "xtc.parser" ]
java.io; xtc.parser;
1,635,060
private static long getRootId(AbstractFile file) { long id = -1; Content parent = null; try { parent = file.getParent(); while (parent != null) { if (parent instanceof Volume || parent instanceof Image) { id = parent.getId(); ...
static long function(AbstractFile file) { long id = -1; Content parent = null; try { parent = file.getParent(); while (parent != null) { if (parent instanceof Volume parent instanceof Image) { id = parent.getId(); break; } parent = parent.getParent(); } } catch (TskCoreException ex) { logger.log(Level.SEVERE, STR, ex);...
/** * Finds the root Volume or Image of the AbstractFile passed in. * * @param file The file we want to find the root parent for * @return The ID of the root parent Volume or Image */
Finds the root Volume or Image of the AbstractFile passed in
getRootId
{ "repo_name": "sidheshenator/autopsy", "path": "Core/src/org/sleuthkit/autopsy/modules/photoreccarver/PhotoRecCarverFileIngestModule.java", "license": "apache-2.0", "size": 15897 }
[ "java.util.logging.Level", "org.sleuthkit.datamodel.AbstractFile", "org.sleuthkit.datamodel.Content", "org.sleuthkit.datamodel.Image", "org.sleuthkit.datamodel.TskCoreException", "org.sleuthkit.datamodel.Volume" ]
import java.util.logging.Level; import org.sleuthkit.datamodel.AbstractFile; import org.sleuthkit.datamodel.Content; import org.sleuthkit.datamodel.Image; import org.sleuthkit.datamodel.TskCoreException; import org.sleuthkit.datamodel.Volume;
import java.util.logging.*; import org.sleuthkit.datamodel.*;
[ "java.util", "org.sleuthkit.datamodel" ]
java.util; org.sleuthkit.datamodel;
645,276
final DescriptorComperator cmp = new DescriptorComperator("myId", null); assertEquals("myId", cmp.getId()); assertFalse(cmp.containsWildchar()); assertNull(cmp.getRawValue()); assertNull(cmp.getValue()); assertTrue(cmp.matches(null)); assertFalse(cmp.matches("")); }
final DescriptorComperator cmp = new DescriptorComperator("myId", null); assertEquals("myId", cmp.getId()); assertFalse(cmp.containsWildchar()); assertNull(cmp.getRawValue()); assertNull(cmp.getValue()); assertTrue(cmp.matches(null)); assertFalse(cmp.matches("")); }
/** * Tests the usage of a {@code null} text. */
Tests the usage of a null text
testNullComperator
{ "repo_name": "pmeisen/dis-timeintervaldataanalyzer", "path": "test/net/meisen/dissertation/impl/parser/query/select/TestDescriptorComperator.java", "license": "bsd-3-clause", "size": 6525 }
[ "org.junit.Assert" ]
import org.junit.Assert;
import org.junit.*;
[ "org.junit" ]
org.junit;
2,646,750
@Override public void startup() { if (gdb == null) { gdb = new GraphDatabaseFactory().newEmbeddedDatabaseBuilder(dbpath) .setConfig(GraphDatabaseSettings.nodestore_mapped_memory_size, "10M") .setConfig(GraphDatabaseSettings.string_block_size, "60") .setConfig(GraphDatabaseSettings.array_block_si...
void function() { if (gdb == null) { gdb = new GraphDatabaseFactory().newEmbeddedDatabaseBuilder(dbpath) .setConfig(GraphDatabaseSettings.nodestore_mapped_memory_size, "10M") .setConfig(GraphDatabaseSettings.string_block_size, "60") .setConfig(GraphDatabaseSettings.array_block_size, "300").newGraphDatabase(); engine = ...
/** * Startup the embedded database server. * * @author manbaum * @since Oct 12, 2014 * @see com.dnw.neo.NeoAccessor#startup() */
Startup the embedded database server
startup
{ "repo_name": "manbaum/dnw-depmap", "path": "src/main/java/com/dnw/neo/EmbeddedNeoAccessor.java", "license": "epl-1.0", "size": 3756 }
[ "org.neo4j.cypher.javacompat.ExecutionEngine", "org.neo4j.graphdb.factory.GraphDatabaseFactory", "org.neo4j.graphdb.factory.GraphDatabaseSettings" ]
import org.neo4j.cypher.javacompat.ExecutionEngine; import org.neo4j.graphdb.factory.GraphDatabaseFactory; import org.neo4j.graphdb.factory.GraphDatabaseSettings;
import org.neo4j.cypher.javacompat.*; import org.neo4j.graphdb.factory.*;
[ "org.neo4j.cypher", "org.neo4j.graphdb" ]
org.neo4j.cypher; org.neo4j.graphdb;
318,312
Collection<FileAnnotationData> getAttachments() { StructuredDataResults data = parent.getStructuredData(); List<FileAnnotationData> l = new ArrayList<FileAnnotationData>(); if (data == null) return l; Collection<FileAnnotationData> attachements = data.getAttachments(); if (attachements == null) return l...
Collection<FileAnnotationData> getAttachments() { StructuredDataResults data = parent.getStructuredData(); List<FileAnnotationData> l = new ArrayList<FileAnnotationData>(); if (data == null) return l; Collection<FileAnnotationData> attachements = data.getAttachments(); if (attachements == null) return l; Iterator<FileA...
/** * Returns the collection of the attachments linked to the * <code>DataObject</code>. * * @return See above. */
Returns the collection of the attachments linked to the <code>DataObject</code>
getAttachments
{ "repo_name": "joshmoore/openmicroscopy", "path": "components/insight/SRC/org/openmicroscopy/shoola/agents/metadata/editor/EditorModel.java", "license": "gpl-2.0", "size": 77037 }
[ "java.util.ArrayList", "java.util.Collection", "java.util.Iterator", "java.util.List", "org.openmicroscopy.shoola.env.data.util.StructuredDataResults" ]
import java.util.ArrayList; import java.util.Collection; import java.util.Iterator; import java.util.List; import org.openmicroscopy.shoola.env.data.util.StructuredDataResults;
import java.util.*; import org.openmicroscopy.shoola.env.data.util.*;
[ "java.util", "org.openmicroscopy.shoola" ]
java.util; org.openmicroscopy.shoola;
369,814
Map<String, String> mergeDocuments(ForeignPK originalForeignKey, ForeignPK cloneForeignKey, DocumentType type);
Map<String, String> mergeDocuments(ForeignPK originalForeignKey, ForeignPK cloneForeignKey, DocumentType type);
/** * Merges the documents of cloned container with the original documents. * * @param originalForeignKey * @param cloneForeignKey * @param type * @return a map with the cloned document id as key and the original document id as value. */
Merges the documents of cloned container with the original documents
mergeDocuments
{ "repo_name": "ebonnet/Silverpeas-Core", "path": "core-library/src/main/java/org/silverpeas/core/contribution/attachment/AttachmentService.java", "license": "agpl-3.0", "size": 17914 }
[ "java.util.Map", "org.silverpeas.core.ForeignPK", "org.silverpeas.core.contribution.attachment.model.DocumentType" ]
import java.util.Map; import org.silverpeas.core.ForeignPK; import org.silverpeas.core.contribution.attachment.model.DocumentType;
import java.util.*; import org.silverpeas.core.*; import org.silverpeas.core.contribution.attachment.model.*;
[ "java.util", "org.silverpeas.core" ]
java.util; org.silverpeas.core;
224,086
public int getCurrentPlayerColor() { if (game != null && game.getState() != RiskGame.STATE_NEW_GAME) { return ((Player)game.getCurrentPlayer()).getColor(); } else { return 0; } }
int function() { if (game != null && game.getState() != RiskGame.STATE_NEW_GAME) { return ((Player)game.getCurrentPlayer()).getColor(); } else { return 0; } }
/** * Get the colour of the current player * @return Color Return the colour of the current player in the game */
Get the colour of the current player
getCurrentPlayerColor
{ "repo_name": "hernol/ConuWar", "path": "Game/src/net/yura/domination/engine/Risk.java", "license": "gpl-3.0", "size": 123876 }
[ "net.yura.domination.engine.core.Player", "net.yura.domination.engine.core.RiskGame" ]
import net.yura.domination.engine.core.Player; import net.yura.domination.engine.core.RiskGame;
import net.yura.domination.engine.core.*;
[ "net.yura.domination" ]
net.yura.domination;
715,769
public static String convertSourceCodeIntoUtf8( RecordingInputStream recis, String charset) throws IOException { ByteArrayOutputStream baos = null; try { if (!charset.equalsIgnoreCase(DEFAULT_CHARSET)) { Charset utf8charset = Charset.forName(DEFAUL...
static String function( RecordingInputStream recis, String charset) throws IOException { ByteArrayOutputStream baos = null; try { if (!charset.equalsIgnoreCase(DEFAULT_CHARSET)) { Charset utf8charset = Charset.forName(DEFAULT_CHARSET); Charset incomingCharset = Charset.forName(charset); baos = new ByteArrayOutputStream...
/** * This method converts the sourceCode into UTF-8 charset to ensure the * charset compatibility with the source and the charset used for the * persistence. * @param recis * @param charset * @return * @throws IOException */
This method converts the sourceCode into UTF-8 charset to ensure the charset compatibility with the source and the charset used for the persistence
convertSourceCodeIntoUtf8
{ "repo_name": "medsob/Tanaguru", "path": "engine/crawler/src/main/java/org/tanaguru/crawler/util/CrawlUtils.java", "license": "agpl-3.0", "size": 6000 }
[ "java.io.ByteArrayOutputStream", "java.io.IOException", "java.nio.ByteBuffer", "java.nio.CharBuffer", "java.nio.charset.Charset", "org.apache.commons.io.IOUtils", "org.archive.io.RecordingInputStream" ]
import java.io.ByteArrayOutputStream; import java.io.IOException; import java.nio.ByteBuffer; import java.nio.CharBuffer; import java.nio.charset.Charset; import org.apache.commons.io.IOUtils; import org.archive.io.RecordingInputStream;
import java.io.*; import java.nio.*; import java.nio.charset.*; import org.apache.commons.io.*; import org.archive.io.*;
[ "java.io", "java.nio", "org.apache.commons", "org.archive.io" ]
java.io; java.nio; org.apache.commons; org.archive.io;
1,522,822
@Override protected void processGeometry(Geometry geometry, GeometryTypeOptions options, Reader reader, Writer writer) throws Exception { writer.write(geometry.getGeometryType()); } public static class GeometryTypeOptions extends GeometryOptions { }
void function(Geometry geometry, GeometryTypeOptions options, Reader reader, Writer writer) throws Exception { writer.write(geometry.getGeometryType()); } public static class GeometryTypeOptions extends GeometryOptions { }
/** * Count the number of Points in the input Geometry. * @param geometry The input Geometry * @param options The GeometryTypeOptions * @param reader The java.io.Reader * @param writer The java.io.Writer * @throws Exception if an error occurs */
Count the number of Points in the input Geometry
processGeometry
{ "repo_name": "jericks/geometrycommands", "path": "src/main/java/org/geometrycommands/GeometryTypeCommand.java", "license": "mit", "size": 1566 }
[ "java.io.Reader", "java.io.Writer", "org.geometrycommands.GeometryTypeCommand", "org.locationtech.jts.geom.Geometry" ]
import java.io.Reader; import java.io.Writer; import org.geometrycommands.GeometryTypeCommand; import org.locationtech.jts.geom.Geometry;
import java.io.*; import org.geometrycommands.*; import org.locationtech.jts.geom.*;
[ "java.io", "org.geometrycommands", "org.locationtech.jts" ]
java.io; org.geometrycommands; org.locationtech.jts;
2,244,565
public int find(byte[] buffer, int length) { for (int i = 0; i < length; i++) { System.arraycopy(searchBuffer, 1, searchBuffer, 0, searchBuffer.length - 1); searchBuffer[searchBuffer.length - 1] = buffer[i]; available = Math.min(available + 1, searchBuffer.length); ...
int function(byte[] buffer, int length) { for (int i = 0; i < length; i++) { System.arraycopy(searchBuffer, 1, searchBuffer, 0, searchBuffer.length - 1); searchBuffer[searchBuffer.length - 1] = buffer[i]; available = Math.min(available + 1, searchBuffer.length); if (ByteBuffer.wrap(searchBuffer, searchBuffer.length - a...
/** * Find the marker in the byte buffer. Returns the index of the end of the marker in the * buffer. If the marker is not found, returns -1. * * <p>State is maintained between calls. If the marker was partially matched, a subsequent * call to find will resume matching the marker. ...
Find the marker in the byte buffer. Returns the index of the end of the marker in the buffer. If the marker is not found, returns -1. State is maintained between calls. If the marker was partially matched, a subsequent call to find will resume matching the marker
find
{ "repo_name": "lukecwik/incubator-beam", "path": "sdks/java/core/src/main/java/org/apache/beam/sdk/io/AvroSource.java", "license": "apache-2.0", "size": 37436 }
[ "java.nio.ByteBuffer" ]
import java.nio.ByteBuffer;
import java.nio.*;
[ "java.nio" ]
java.nio;
2,339,450
@ServiceMethod(returns = ReturnType.SINGLE) public VirtualMachineRunCommandInner getByVirtualMachine( String resourceGroupName, String vmName, String runCommandName) { final String expand = null; return getByVirtualMachineAsync(resourceGroupName, vmName, runCommandName, expand).block(); ...
@ServiceMethod(returns = ReturnType.SINGLE) VirtualMachineRunCommandInner function( String resourceGroupName, String vmName, String runCommandName) { final String expand = null; return getByVirtualMachineAsync(resourceGroupName, vmName, runCommandName, expand).block(); }
/** * The operation to get the run command. * * @param resourceGroupName The name of the resource group. * @param vmName The name of the virtual machine containing the run command. * @param runCommandName The name of the virtual machine run command. * @throws IllegalArgumentException throw...
The operation to get the run command
getByVirtualMachine
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineRunCommandsClientImpl.java", "license": "mit", "size": 99235 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.resourcemanager.compute.fluent.models.VirtualMachineRunCommandInner" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.resourcemanager.compute.fluent.models.VirtualMachineRunCommandInner;
import com.azure.core.annotation.*; import com.azure.resourcemanager.compute.fluent.models.*;
[ "com.azure.core", "com.azure.resourcemanager" ]
com.azure.core; com.azure.resourcemanager;
1,367,259
private void removeFabLabels() { getFabUpload().setTitle(null); getFabMkdir().setTitle(null); ((TextView) getFabUpload().getTag(com.getbase.floatingactionbutton.R.id.fab_label)).setVisibility(View.GONE); ((TextView) getFabMkdir().getTag(com.getbase.floatingactionbutton.R.id.fab_label...
void function() { getFabUpload().setTitle(null); getFabMkdir().setTitle(null); ((TextView) getFabUpload().getTag(com.getbase.floatingactionbutton.R.id.fab_label)).setVisibility(View.GONE); ((TextView) getFabMkdir().getTag(com.getbase.floatingactionbutton.R.id.fab_label)).setVisibility(View.GONE); }
/** * removes the labels on all known min FABs. */
removes the labels on all known min FABs
removeFabLabels
{ "repo_name": "owncloud/android", "path": "owncloudApp/src/main/java/com/owncloud/android/ui/fragment/OCFileListFragment.java", "license": "gpl-2.0", "size": 51319 }
[ "android.view.View", "android.widget.TextView" ]
import android.view.View; import android.widget.TextView;
import android.view.*; import android.widget.*;
[ "android.view", "android.widget" ]
android.view; android.widget;
2,414,099
private void removeExistingTransportConfigurationEntries() { // Removing any existing sub-entries for (String Item : PropertiesUtil.stringPropertyNames(this)) { if ( Item.startsWith(HttpPrefix) || Item.startsWith(Http2Prefix) || Item.startsWith(TcpPrefix) || Item.startsWith(Multicas...
void function() { for (String Item : PropertiesUtil.stringPropertyNames(this)) { if ( Item.startsWith(HttpPrefix) Item.startsWith(Http2Prefix) Item.startsWith(TcpPrefix) Item.startsWith(MulticastPrefix) ) { this.remove(Item); } } }
/** * Removing any existing transport configuration sub-entries. */
Removing any existing transport configuration sub-entries
removeExistingTransportConfigurationEntries
{ "repo_name": "johnjianfang/jxse", "path": "src/main/java/net/jxse/configuration/JxsePeerConfiguration.java", "license": "apache-2.0", "size": 38745 }
[ "net.jxta.configuration.PropertiesUtil" ]
import net.jxta.configuration.PropertiesUtil;
import net.jxta.configuration.*;
[ "net.jxta.configuration" ]
net.jxta.configuration;
2,292,342
public IgniteInternalFuture<?> nextAffinityReadyFuture(AffinityTopologyVersion curVer) { if (curVer == null) return null; AffinityTopologyVersion nextVer = new AffinityTopologyVersion(curVer.topologyVersion() + 1); IgniteInternalFuture<?> fut = exchMgr.affinityReadyFuture(nextV...
IgniteInternalFuture<?> function(AffinityTopologyVersion curVer) { if (curVer == null) return null; AffinityTopologyVersion nextVer = new AffinityTopologyVersion(curVer.topologyVersion() + 1); IgniteInternalFuture<?> fut = exchMgr.affinityReadyFuture(nextVer); return fut == null ? new GridFinishedFuture<>() : fut; }
/** * Gets ready future for the next affinity topology version (used in cases when a node leaves grid). * * @param curVer Current topology version (before a node left grid). * @return Ready future. */
Gets ready future for the next affinity topology version (used in cases when a node leaves grid)
nextAffinityReadyFuture
{ "repo_name": "leveyj/ignite", "path": "modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheSharedContext.java", "license": "apache-2.0", "size": 23334 }
[ "org.apache.ignite.internal.IgniteInternalFuture", "org.apache.ignite.internal.processors.affinity.AffinityTopologyVersion", "org.apache.ignite.internal.util.future.GridFinishedFuture" ]
import org.apache.ignite.internal.IgniteInternalFuture; import org.apache.ignite.internal.processors.affinity.AffinityTopologyVersion; import org.apache.ignite.internal.util.future.GridFinishedFuture;
import org.apache.ignite.internal.*; import org.apache.ignite.internal.processors.affinity.*; import org.apache.ignite.internal.util.future.*;
[ "org.apache.ignite" ]
org.apache.ignite;
1,693,040
public void execute(Runnable job) { try { executor.execute(job); } catch (RejectedExecutionException e) { log.warnf(e, "Job rejected: %s", job); } }
void function(Runnable job) { try { executor.execute(job); } catch (RejectedExecutionException e) { log.warnf(e, STR, job); } }
/** * Execute a job * @param job The job */
Execute a job
execute
{ "repo_name": "jandsu/ironjacamar", "path": "web/src/main/java/org/ironjacamar/web/ExecutorThreadPool.java", "license": "epl-1.0", "size": 3249 }
[ "java.util.concurrent.RejectedExecutionException" ]
import java.util.concurrent.RejectedExecutionException;
import java.util.concurrent.*;
[ "java.util" ]
java.util;
4,616
File getDir() { if (subDirs == null) { return null; } StringBuilder sb = new StringBuilder(); for (int i : subDirs) { sb.append(DataStorage.BLOCK_SUBDIR_PREFIX); sb.append(i); sb.append("/"); } File ret = new File(baseDir, sb.toString()); return ret; }
File getDir() { if (subDirs == null) { return null; } StringBuilder sb = new StringBuilder(); for (int i : subDirs) { sb.append(DataStorage.BLOCK_SUBDIR_PREFIX); sb.append(i); sb.append("/"); } File ret = new File(baseDir, sb.toString()); return ret; }
/** * Return the parent directory path where this replica is located * @return the parent directory path where this replica is located */
Return the parent directory path where this replica is located
getDir
{ "repo_name": "fyqls/hadoop-2.4.0", "path": "hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/ReplicaInfo.java", "license": "apache-2.0", "size": 10256 }
[ "java.io.File" ]
import java.io.File;
import java.io.*;
[ "java.io" ]
java.io;
2,265,339
public static List<DuplicateSystemGrouping> listDuplicatesByIP(User user, long inactiveHours) { List<String> ignoreIps = new ArrayList<String>(); ignoreIps.add("127.0.0.1"); ignoreIps.add("127.0.0.01"); ignoreIps.add("0"); return listDuplicates(user, "duplicate_sy...
static List<DuplicateSystemGrouping> function(User user, long inactiveHours) { List<String> ignoreIps = new ArrayList<String>(); ignoreIps.add(STR); ignoreIps.add(STR); ignoreIps.add("0"); return listDuplicates(user, STR, ignoreIps, inactiveHours); }
/** * List duplicate systems by ip address * @param user the user doing the search * @param inactiveHours the number of hours a system hasn't checked in * to consider it inactive * @return List of DuplicateSystemGrouping objects */
List duplicate systems by ip address
listDuplicatesByIP
{ "repo_name": "renner/spacewalk", "path": "java/code/src/com/redhat/rhn/manager/system/SystemManager.java", "license": "gpl-2.0", "size": 132498 }
[ "com.redhat.rhn.domain.user.User", "java.util.ArrayList", "java.util.List" ]
import com.redhat.rhn.domain.user.User; import java.util.ArrayList; import java.util.List;
import com.redhat.rhn.domain.user.*; import java.util.*;
[ "com.redhat.rhn", "java.util" ]
com.redhat.rhn; java.util;
1,058,452
protected String getUserComment(){ IfdData ifdData=mIfdDatas[IfdId.TYPE_IFD_0]; if(ifdData == null){ return null; } ExifTag tag=ifdData.getTag(ExifInterface.getTrueTagKey(ExifInterface.TAG_USER_COMMENT)); if(tag == null){ return null; } if(tag.getComponentCount() < 8){ return...
String function(){ IfdData ifdData=mIfdDatas[IfdId.TYPE_IFD_0]; if(ifdData == null){ return null; } ExifTag tag=ifdData.getTag(ExifInterface.getTrueTagKey(ExifInterface.TAG_USER_COMMENT)); if(tag == null){ return null; } if(tag.getComponentCount() < 8){ return null; } byte[] buf=new byte[tag.getComponentCount()]; tag.g...
/** * Decodes the user comment tag into string as specified in the EXIF * standard. Returns null if decoding failed. */
Decodes the user comment tag into string as specified in the EXIF standard. Returns null if decoding failed
getUserComment
{ "repo_name": "hikelee/projector", "path": "android/master/src/com/android/gallery3d/exif/ExifData.java", "license": "mit", "size": 9334 }
[ "android.util.Log", "java.io.UnsupportedEncodingException", "java.util.Arrays" ]
import android.util.Log; import java.io.UnsupportedEncodingException; import java.util.Arrays;
import android.util.*; import java.io.*; import java.util.*;
[ "android.util", "java.io", "java.util" ]
android.util; java.io; java.util;
2,074,678
public static void setTestDisabled(String fullUUID, String rootScenarioName, boolean disabled, boolean onlyCache) { Properties allProps = getScenarioProperties(rootScenarioName); String key = fullUUID + "." + RunningProperties.IS_DISABLED; allProps.put(key, "" + disabled); try { saveScenarioPropertiesT...
static void function(String fullUUID, String rootScenarioName, boolean disabled, boolean onlyCache) { Properties allProps = getScenarioProperties(rootScenarioName); String key = fullUUID + "." + RunningProperties.IS_DISABLED; allProps.put(key, "" + disabled); try { saveScenarioPropertiesToSrcAndClass(allProps, rootScen...
/** * Mark test as disabled\enabled * * @param fullUUID * the Test full unique ID * @param rootScenarioName * the root name * @param disabled * if True then mark as disabled, otherwise mark as enabled * @param onlyCache * if True then change will not be s...
Mark test as disabled\enabled
setTestDisabled
{ "repo_name": "Top-Q/jsystem", "path": "jsystem-core-projects/jsystemCore/src/main/java/jsystem/framework/scenario/ScenarioHelpers.java", "license": "apache-2.0", "size": 56370 }
[ "java.util.Properties" ]
import java.util.Properties;
import java.util.*;
[ "java.util" ]
java.util;
888,454
public void saveDatabaseMetaJobEntryAttribute( ObjectId id_job, ObjectId id_jobentry, String nameCode, String idCode, DatabaseMeta database ) throws KettleException;
void function( ObjectId id_job, ObjectId id_jobentry, String nameCode, String idCode, DatabaseMeta database ) throws KettleException;
/** * This method saves the object ID of the database object (if not null) in the job entry attributes * * @param id_job * @param id_jobentry * @param idCode * @param database */
This method saves the object ID of the database object (if not null) in the job entry attributes
saveDatabaseMetaJobEntryAttribute
{ "repo_name": "roboguy/pentaho-kettle", "path": "engine/src/main/java/org/pentaho/di/repository/Repository.java", "license": "apache-2.0", "size": 30305 }
[ "org.pentaho.di.core.database.DatabaseMeta", "org.pentaho.di.core.exception.KettleException" ]
import org.pentaho.di.core.database.DatabaseMeta; import org.pentaho.di.core.exception.KettleException;
import org.pentaho.di.core.database.*; import org.pentaho.di.core.exception.*;
[ "org.pentaho.di" ]
org.pentaho.di;
1,315,108
@Override public ConfigurableEnvironment getEnvironment() { if (this.environment == null) { this.environment = createEnvironment(); } return this.environment; }
ConfigurableEnvironment function() { if (this.environment == null) { this.environment = createEnvironment(); } return this.environment; }
/** * Return the {@link Environment} associated with this servlet. * <p>If none specified, a default environment will be initialized via * {@link #createEnvironment()}. */
Return the <code>Environment</code> associated with this servlet. If none specified, a default environment will be initialized via <code>#createEnvironment()</code>
getEnvironment
{ "repo_name": "lamsfoundation/lams", "path": "3rdParty_sources/spring/org/springframework/web/servlet/HttpServletBean.java", "license": "gpl-2.0", "size": 9541 }
[ "org.springframework.core.env.ConfigurableEnvironment" ]
import org.springframework.core.env.ConfigurableEnvironment;
import org.springframework.core.env.*;
[ "org.springframework.core" ]
org.springframework.core;
1,734,100
EAttribute getDocumentRoot_GridOrigin();
EAttribute getDocumentRoot_GridOrigin();
/** * Returns the meta object for the attribute '{@link net.opengis.wcs11.DocumentRoot#getGridOrigin <em>Grid Origin</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for the attribute '<em>Grid Origin</em>'. * @see net.opengis.wcs11.DocumentRoot#getGridOrigin() * @see #get...
Returns the meta object for the attribute '<code>net.opengis.wcs11.DocumentRoot#getGridOrigin Grid Origin</code>'.
getDocumentRoot_GridOrigin
{ "repo_name": "geotools/geotools", "path": "modules/ogc/net.opengis.wcs/src/net/opengis/wcs11/Wcs11Package.java", "license": "lgpl-2.1", "size": 160605 }
[ "org.eclipse.emf.ecore.EAttribute" ]
import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
895,616
static Node newName(AbstractCompiler compiler, String name, Node srcref) { return newName(compiler, name).srcref(srcref); }
static Node newName(AbstractCompiler compiler, String name, Node srcref) { return newName(compiler, name).srcref(srcref); }
/** * Creates a new node representing an *existing* name, copying over the source * location information from the basis node. * * @param name The name for the new NAME node. * @param srcref The node that represents the name as currently found in * the AST. * * @return The node created. */
Creates a new node representing an *existing* name, copying over the source location information from the basis node
newName
{ "repo_name": "tntim96/closure-compiler", "path": "src/com/google/javascript/jscomp/NodeUtil.java", "license": "apache-2.0", "size": 117627 }
[ "com.google.javascript.rhino.Node" ]
import com.google.javascript.rhino.Node;
import com.google.javascript.rhino.*;
[ "com.google.javascript" ]
com.google.javascript;
16,935
@Override public void processChallenge( final Header header) throws MalformedChallengeException { super.processChallenge(header); this.complete = true; }
void function( final Header header) throws MalformedChallengeException { super.processChallenge(header); this.complete = true; }
/** * Processes the Basic challenge. * * @param header the challenge header * * @throws MalformedChallengeException is thrown if the authentication challenge * is malformed */
Processes the Basic challenge
processChallenge
{ "repo_name": "SxdsF/Visit", "path": "src/org/apache/http/impl/auth/BasicSchemeHC4.java", "license": "apache-2.0", "size": 7270 }
[ "org.apache.http.Header", "org.apache.http.auth.MalformedChallengeException" ]
import org.apache.http.Header; import org.apache.http.auth.MalformedChallengeException;
import org.apache.http.*; import org.apache.http.auth.*;
[ "org.apache.http" ]
org.apache.http;
605,445
public void setAllocatedPosition( int ax, int ay ) { if ( hasBoxProperty ) { x = ax + PropertyUtil.getDimensionValue( style .getProperty( StyleConstants.STYLE_MARGIN_LEFT ) ); y = ay + PropertyUtil.getDimensionValue( style .getProperty( StyleConstants.STYLE_MARGIN_TOP ) ); } el...
void function( int ax, int ay ) { if ( hasBoxProperty ) { x = ax + PropertyUtil.getDimensionValue( style .getProperty( StyleConstants.STYLE_MARGIN_LEFT ) ); y = ay + PropertyUtil.getDimensionValue( style .getProperty( StyleConstants.STYLE_MARGIN_TOP ) ); } else { x = ax; y = ay; } }
/** * set allocated position * * @param ax * @param ay */
set allocated position
setAllocatedPosition
{ "repo_name": "Charling-Huang/birt", "path": "engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/layout/area/impl/AbstractArea.java", "license": "epl-1.0", "size": 11112 }
[ "org.eclipse.birt.report.engine.css.engine.StyleConstants", "org.eclipse.birt.report.engine.layout.pdf.util.PropertyUtil" ]
import org.eclipse.birt.report.engine.css.engine.StyleConstants; import org.eclipse.birt.report.engine.layout.pdf.util.PropertyUtil;
import org.eclipse.birt.report.engine.css.engine.*; import org.eclipse.birt.report.engine.layout.pdf.util.*;
[ "org.eclipse.birt" ]
org.eclipse.birt;
2,835,935
public YRDB getRdb(String partitionDir, boolean readOnly) { if (partitionDir == null) { return db; } else { try { return rdbFactory.getRdb(partitionDir, readOnly); } catch (IOException e) { throw new YarchException(e); }...
YRDB function(String partitionDir, boolean readOnly) { if (partitionDir == null) { return db; } else { try { return rdbFactory.getRdb(partitionDir, readOnly); } catch (IOException e) { throw new YarchException(e); } } }
/** * (Creates) and returns a database in the given partition directory. If the directory is null, return then main * tablespace db * * @param partitionDir * @param readOnly */
(Creates) and returns a database in the given partition directory. If the directory is null, return then main tablespace db
getRdb
{ "repo_name": "fqqb/yamcs", "path": "yamcs-core/src/main/java/org/yamcs/yarch/rocksdb/Tablespace.java", "license": "agpl-3.0", "size": 28750 }
[ "java.io.IOException", "org.yamcs.yarch.YarchException" ]
import java.io.IOException; import org.yamcs.yarch.YarchException;
import java.io.*; import org.yamcs.yarch.*;
[ "java.io", "org.yamcs.yarch" ]
java.io; org.yamcs.yarch;
314,603
protected String inferExperimentType(Set<String> protocolTypes, String piName) { // extraction + sequencing + reverse transcription - ChIP = RTPCR // extraction + sequencing - reverse transcription - ChIP = RNA-seq if (containsMatch(protocolTypes, "nucleic_acid_extraction|RNA extraction") ...
String function(Set<String> protocolTypes, String piName) { if (containsMatch(protocolTypes, STR) && containsMatch(protocolTypes, STR) && !containsMatch(protocolTypes, STR)) { if (containsMatch(protocolTypes, STR)) { return "RTPCR"; } else { return STR; } } if (containsMatch(protocolTypes, STR) && containsMatch(protoco...
/** * Work out an experiment type give the combination of protocols used for the * submission. e.g. *immunoprecipitation + hybridization = chIP-chip * @param protocolTypes the protocol types * @param piName name of PI * @return a short experiment type */
Work out an experiment type give the combination of protocols used for the submission. e.g. *immunoprecipitation + hybridization = chIP-chip
inferExperimentType
{ "repo_name": "tomck/intermine", "path": "bio/sources/chado-db/main/src/org/intermine/bio/dataconversion/ModEncodeMetaDataProcessor.java", "license": "lgpl-2.1", "size": 176582 }
[ "java.util.Set" ]
import java.util.Set;
import java.util.*;
[ "java.util" ]
java.util;
2,873,483
@NotNull public static EnhancedMimeType create(@NotNull final String primary, @NotNull final String sub, final Charset encoding, final String version) { return create(primary, sub, encoding, version, new HashMap<String, String>()); }
static EnhancedMimeType function(@NotNull final String primary, @NotNull final String sub, final Charset encoding, final String version) { return create(primary, sub, encoding, version, new HashMap<String, String>()); }
/** * Creates an instance with primary, sub type, encoding and version. Exceptions are wrapped to runtime * exceptions. * * @param primary * Primary type. * @param sub * Sub type. * @param encoding * Encoding. * @param version * ...
Creates an instance with primary, sub type, encoding and version. Exceptions are wrapped to runtime exceptions
create
{ "repo_name": "fuinorg/event-store-commons", "path": "spi/src/main/java/org/fuin/esc/spi/EnhancedMimeType.java", "license": "lgpl-3.0", "size": 10755 }
[ "jakarta.validation.constraints.NotNull", "java.nio.charset.Charset", "java.util.HashMap" ]
import jakarta.validation.constraints.NotNull; import java.nio.charset.Charset; import java.util.HashMap;
import jakarta.validation.constraints.*; import java.nio.charset.*; import java.util.*;
[ "jakarta.validation.constraints", "java.nio", "java.util" ]
jakarta.validation.constraints; java.nio; java.util;
693,975
protected void handleLogging(Exception e) { if (logCategory != null) { if (categoryLogger == null) { // init category logger categoryLogger = LoggerFactory.getLogger(logCategory); } doLog(categoryLogger, e); } else { doLog(LOG, e); } }
void function(Exception e) { if (logCategory != null) { if (categoryLogger == null) { categoryLogger = LoggerFactory.getLogger(logCategory); } doLog(categoryLogger, e); } else { doLog(LOG, e); } }
/** * Handles the logging of the exception. * * @param e the exception to log. */
Handles the logging of the exception
handleLogging
{ "repo_name": "WillJiang/WillJiang", "path": "src/xwork-core/src/main/java/com/opensymphony/xwork2/interceptor/ExceptionMappingInterceptor.java", "license": "apache-2.0", "size": 12517 }
[ "com.opensymphony.xwork2.util.logging.LoggerFactory" ]
import com.opensymphony.xwork2.util.logging.LoggerFactory;
import com.opensymphony.xwork2.util.logging.*;
[ "com.opensymphony.xwork2" ]
com.opensymphony.xwork2;
101,302
public List<SearchResult> findWidthText(Context context, Locale locale, final String text){ List<SearchResult> ret = new ArrayList<SearchResult>(); for(AppLevel level : levels){ if(ret.size() < SEARCH_LIMIT) ret.addAll(level.findWidthText(context, locale, text)); } return ret; }
List<SearchResult> function(Context context, Locale locale, final String text){ List<SearchResult> ret = new ArrayList<SearchResult>(); for(AppLevel level : levels){ if(ret.size() < SEARCH_LIMIT) ret.addAll(level.findWidthText(context, locale, text)); } return ret; }
/** * Returns a list with all search results * @param context * @param locale * @param text * @return */
Returns a list with all search results
findWidthText
{ "repo_name": "emobc/emobc-android", "path": "src/com/emobc/android/ApplicationData.java", "license": "agpl-3.0", "size": 20539 }
[ "android.content.Context", "com.emobc.android.levels.AppLevel", "java.util.ArrayList", "java.util.List", "java.util.Locale" ]
import android.content.Context; import com.emobc.android.levels.AppLevel; import java.util.ArrayList; import java.util.List; import java.util.Locale;
import android.content.*; import com.emobc.android.levels.*; import java.util.*;
[ "android.content", "com.emobc.android", "java.util" ]
android.content; com.emobc.android; java.util;
1,354,360
@Nullable public Date getDate() { return date; }
Date function() { return date; }
/** * Returns the selected date. * * @return The selected date. */
Returns the selected date
getDate
{ "repo_name": "Gericop/Android-Support-Preference-V7-Fix", "path": "preferencex-datetimepicker/src/main/java/com/takisoft/preferencex/DatePickerPreference.java", "license": "apache-2.0", "size": 15865 }
[ "java.util.Date" ]
import java.util.Date;
import java.util.*;
[ "java.util" ]
java.util;
1,772,286
public Map<String, Object> getProperties() { return propMap; }
Map<String, Object> function() { return propMap; }
/** * Get all properties as map. */
Get all properties as map
getProperties
{ "repo_name": "fogbeam/Heceta_solr", "path": "solr/solrj/src/java/org/apache/solr/common/cloud/ZkNodeProps.java", "license": "apache-2.0", "size": 4172 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
614,558
@Override public boolean equals(final Object aThat) { Object proxyThat = aThat; if ( this == aThat ) { return true; } if (aThat instanceof HibernateProxy) { // narrow down the proxy to the class we are dealing with. try { proxyThat = ((HibernateProxy) aThat).getHibernateLazyInitialize...
boolean function(final Object aThat) { Object proxyThat = aThat; if ( this == aThat ) { return true; } if (aThat instanceof HibernateProxy) { try { proxyThat = ((HibernateProxy) aThat).getHibernateLazyInitializer().getImplementation(); } catch (org.hibernate.ObjectNotFoundException e) { return false; } } if (aThat == n...
/** Equals implementation. * @see java.lang.Object#equals(java.lang.Object) * @param aThat Object to compare with * @return true/false */
Equals implementation
equals
{ "repo_name": "servinglynk/hmis-lynk-open-source", "path": "hmis-model-v2015/src/main/java/com/servinglynk/hmis/warehouse/model/v2015/RhybcpStatus.java", "license": "mpl-2.0", "size": 11748 }
[ "org.hibernate.proxy.HibernateProxy" ]
import org.hibernate.proxy.HibernateProxy;
import org.hibernate.proxy.*;
[ "org.hibernate.proxy" ]
org.hibernate.proxy;
55,760