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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
@Nullable
@Override
public TokenInfo createToken(@NotNull Credentials credentials) {
Credentials creds = extractCredentials(credentials);
String uid = (creds != null) ? credentialsSupport.getUserId(creds) : null;
TokenInfo tokenInfo = null;
if (uid != null) {
Map... | TokenInfo function(@NotNull Credentials credentials) { Credentials creds = extractCredentials(credentials); String uid = (creds != null) ? credentialsSupport.getUserId(creds) : null; TokenInfo tokenInfo = null; if (uid != null) { Map<String, ?> attributes = credentialsSupport.getAttributes(creds); tokenInfo = createTok... | /**
* Create a separate token node underneath a dedicated token store within
* the user home node. That token node contains the hashed token, the
* expiration time and additional mandatory attributes that will be verified
* during login.
*
* @param credentials The current credentials.
... | Create a separate token node underneath a dedicated token store within the user home node. That token node contains the hashed token, the expiration time and additional mandatory attributes that will be verified during login | createToken | {
"repo_name": "trekawek/jackrabbit-oak",
"path": "oak-core/src/main/java/org/apache/jackrabbit/oak/security/authentication/token/TokenProviderImpl.java",
"license": "apache-2.0",
"size": 28393
} | [
"com.google.common.collect.ImmutableMap",
"java.util.Map",
"javax.jcr.Credentials",
"org.apache.jackrabbit.oak.spi.security.authentication.token.TokenInfo",
"org.jetbrains.annotations.NotNull"
] | import com.google.common.collect.ImmutableMap; import java.util.Map; import javax.jcr.Credentials; import org.apache.jackrabbit.oak.spi.security.authentication.token.TokenInfo; import org.jetbrains.annotations.NotNull; | import com.google.common.collect.*; import java.util.*; import javax.jcr.*; import org.apache.jackrabbit.oak.spi.security.authentication.token.*; import org.jetbrains.annotations.*; | [
"com.google.common",
"java.util",
"javax.jcr",
"org.apache.jackrabbit",
"org.jetbrains.annotations"
] | com.google.common; java.util; javax.jcr; org.apache.jackrabbit; org.jetbrains.annotations; | 1,303,096 |
protected void updateAnimatedValue(AnimatableValue val) {
if (val == null) {
hasAnimVal = false;
} else {
hasAnimVal = true;
AnimatableRectValue animRect = (AnimatableRectValue) val;
if (animVal == null) {
animVal = new AnimSVGRect();
... | void function(AnimatableValue val) { if (val == null) { hasAnimVal = false; } else { hasAnimVal = true; AnimatableRectValue animRect = (AnimatableRectValue) val; if (animVal == null) { animVal = new AnimSVGRect(); } animVal.setAnimatedValue(animRect.getX(), animRect.getY(), animRect.getWidth(), animRect.getHeight()); }... | /**
* Updates the animated value with the given {@link AnimatableValue}.
*/ | Updates the animated value with the given <code>AnimatableValue</code> | updateAnimatedValue | {
"repo_name": "git-moss/Push2Display",
"path": "lib/batik-1.8/sources/org/apache/batik/anim/dom/SVGOMAnimatedRect.java",
"license": "lgpl-3.0",
"size": 11359
} | [
"org.apache.batik.anim.values.AnimatableRectValue",
"org.apache.batik.anim.values.AnimatableValue"
] | import org.apache.batik.anim.values.AnimatableRectValue; import org.apache.batik.anim.values.AnimatableValue; | import org.apache.batik.anim.values.*; | [
"org.apache.batik"
] | org.apache.batik; | 1,092,826 |
@Subscribe
public void handleNewPlatformUnready(PlatformUnreadyEvent event) {
preferences.forEach((cap, platform) -> cap.unready(this, platform));
} | void function(PlatformUnreadyEvent event) { preferences.forEach((cap, platform) -> cap.unready(this, platform)); } | /**
* Internal, do not call.
*/ | Internal, do not call | handleNewPlatformUnready | {
"repo_name": "HolodeckOne-Minecraft/WorldEdit",
"path": "worldedit-core/src/main/java/com/sk89q/worldedit/extension/platform/PlatformManager.java",
"license": "gpl-3.0",
"size": 16719
} | [
"com.sk89q.worldedit.event.platform.PlatformUnreadyEvent"
] | import com.sk89q.worldedit.event.platform.PlatformUnreadyEvent; | import com.sk89q.worldedit.event.platform.*; | [
"com.sk89q.worldedit"
] | com.sk89q.worldedit; | 1,272,407 |
public Set getRealClientIDs(Collection integerIDs) {
return clientMap.getRealIDs(integerIDs);
} | Set function(Collection integerIDs) { return clientMap.getRealIDs(integerIDs); } | /**
* given a collection of on-wire identifiers, this returns a set of the client/server identifiers
* for each client or durable queue
*
* @param integerIDs the integer ids of the clients/queues
* @return the translated identifiers
*/ | given a collection of on-wire identifiers, this returns a set of the client/server identifiers for each client or durable queue | getRealClientIDs | {
"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.Collection",
"java.util.Set"
] | import java.util.Collection; import java.util.Set; | import java.util.*; | [
"java.util"
] | java.util; | 1,840,396 |
public void readFromParcel(Parcel in) {
x = in.readFloat();
y = in.readFloat();
} | void function(Parcel in) { x = in.readFloat(); y = in.readFloat(); } | /**
* Set the point's coordinates from the data stored in the specified
* parcel. To write a point to a parcel, call writeToParcel().
*
* @param in The parcel to read the point's coordinates from
*/ | Set the point's coordinates from the data stored in the specified parcel. To write a point to a parcel, call writeToParcel() | readFromParcel | {
"repo_name": "JSDemos/android-sdk-20",
"path": "src/android/graphics/PointF.java",
"license": "apache-2.0",
"size": 4059
} | [
"android.os.Parcel"
] | import android.os.Parcel; | import android.os.*; | [
"android.os"
] | android.os; | 1,916,750 |
@Override
public short getShort(String columnLabel) throws SQLException {
try {
debugCodeCall("getShort", columnLabel);
return get(columnLabel).getShort();
} catch (Exception e) {
throw logAndConvert(e);
}
} | short function(String columnLabel) throws SQLException { try { debugCodeCall(STR, columnLabel); return get(columnLabel).getShort(); } catch (Exception e) { throw logAndConvert(e); } } | /**
* Returns the value of the specified column as a short.
*
* @param columnLabel the column label
* @return the value
* @throws SQLException if the column is not found or if the result set is
* closed
*/ | Returns the value of the specified column as a short | getShort | {
"repo_name": "wizardofos/Protozoo",
"path": "extra/h2/src/main/java/org/h2/jdbc/JdbcResultSet.java",
"license": "mit",
"size": 120208
} | [
"java.sql.SQLException"
] | import java.sql.SQLException; | import java.sql.*; | [
"java.sql"
] | java.sql; | 1,839,147 |
ActionFuture<UpgradeResponse> upgrade(UpgradeRequest request); | ActionFuture<UpgradeResponse> upgrade(UpgradeRequest request); | /**
* Explicitly upgrade one or more indices
*
* @param request The upgrade request
* @return A result future
* @see org.elasticsearch.client.Requests#upgradeRequest(String...)
*/ | Explicitly upgrade one or more indices | upgrade | {
"repo_name": "qwerty4030/elasticsearch",
"path": "server/src/main/java/org/elasticsearch/client/IndicesAdminClient.java",
"license": "apache-2.0",
"size": 31749
} | [
"org.elasticsearch.action.ActionFuture",
"org.elasticsearch.action.admin.indices.upgrade.post.UpgradeRequest",
"org.elasticsearch.action.admin.indices.upgrade.post.UpgradeResponse"
] | import org.elasticsearch.action.ActionFuture; import org.elasticsearch.action.admin.indices.upgrade.post.UpgradeRequest; import org.elasticsearch.action.admin.indices.upgrade.post.UpgradeResponse; | import org.elasticsearch.action.*; import org.elasticsearch.action.admin.indices.upgrade.post.*; | [
"org.elasticsearch.action"
] | org.elasticsearch.action; | 2,787,204 |
public Vector doAltNameSearch(String acIdseq, String detlName, String CD_ID, String sOrigin, String sFor)
{
ResultSet rs = null;
CallableStatement cstmt = null;
Vector vList = new Vector();
HttpSession session = m_classReq.getSession();
try
{
if (m_se... | Vector function(String acIdseq, String detlName, String CD_ID, String sOrigin, String sFor) { ResultSet rs = null; CallableStatement cstmt = null; Vector vList = new Vector(); HttpSession session = m_classReq.getSession(); try { if (m_servlet.getConn() == null) m_servlet.ErrorLogin(m_classReq, m_classRes); else { cstmt... | /**
* To get the alternate names for the selected AC from the database.
*
* calls oracle stored procedure "{call SBREXT_CDE_CURATOR_PKG.GET_ALTERNATE_NAMES(AC_IDSEQ, detl_name,
* OracleTypes.CURSOR)}"
*
* loop through the ResultSet and add them to ALT_NAME bean
*
* @param acId... | To get the alternate names for the selected AC from the database. calls oracle stored procedure "{call SBREXT_CDE_CURATOR_PKG.GET_ALTERNATE_NAMES(AC_IDSEQ, detl_name, OracleTypes.CURSOR)}" loop through the ResultSet and add them to ALT_NAME bean | doAltNameSearch | {
"repo_name": "NCIP/cadsr-cdecurate",
"path": "src/gov/nih/nci/cadsr/cdecurate/tool/GetACSearch.java",
"license": "bsd-3-clause",
"size": 517161
} | [
"gov.nih.nci.cadsr.cdecurate.database.SQLHelper",
"java.sql.CallableStatement",
"java.sql.ResultSet",
"java.util.Vector",
"javax.servlet.http.HttpSession",
"oracle.jdbc.driver.OracleTypes"
] | import gov.nih.nci.cadsr.cdecurate.database.SQLHelper; import java.sql.CallableStatement; import java.sql.ResultSet; import java.util.Vector; import javax.servlet.http.HttpSession; import oracle.jdbc.driver.OracleTypes; | import gov.nih.nci.cadsr.cdecurate.database.*; import java.sql.*; import java.util.*; import javax.servlet.http.*; import oracle.jdbc.driver.*; | [
"gov.nih.nci",
"java.sql",
"java.util",
"javax.servlet",
"oracle.jdbc.driver"
] | gov.nih.nci; java.sql; java.util; javax.servlet; oracle.jdbc.driver; | 1,007,979 |
public CreateCollectionOptions indexOptionDefaults(final IndexOptionDefaults indexOptionDefaults) {
this.indexOptionDefaults = notNull("indexOptionDefaults", indexOptionDefaults);
return this;
} | CreateCollectionOptions function(final IndexOptionDefaults indexOptionDefaults) { this.indexOptionDefaults = notNull(STR, indexOptionDefaults); return this; } | /**
* Sets the index option defaults for the collection.
*
* @param indexOptionDefaults the index option defaults
* @return this
* @since 3.2
* @mongodb.server.release 3.2
*/ | Sets the index option defaults for the collection | indexOptionDefaults | {
"repo_name": "rozza/mongo-java-driver",
"path": "driver-core/src/main/com/mongodb/client/model/CreateCollectionOptions.java",
"license": "apache-2.0",
"size": 8859
} | [
"com.mongodb.assertions.Assertions"
] | import com.mongodb.assertions.Assertions; | import com.mongodb.assertions.*; | [
"com.mongodb.assertions"
] | com.mongodb.assertions; | 1,667,216 |
public String getColumnLabel(int column) throws SQLException {
if (this.useOldAliasBehavior) {
return getColumnName(column);
}
return getField(column).getColumnLabel();
} | String function(int column) throws SQLException { if (this.useOldAliasBehavior) { return getColumnName(column); } return getField(column).getColumnLabel(); } | /**
* What is the suggested column title for use in printouts and displays?
*
* @param column
* the first column is 1, the second is 2, etc.
*
* @return the column label
*
* @throws SQLException
* if a database access error occurs
*/ | What is the suggested column title for use in printouts and displays | getColumnLabel | {
"repo_name": "shubhanshu-gupta/Apache-Solr",
"path": "example/solr/collection1/lib/mysql-connector-java-5.1.32/src/com/mysql/jdbc/ResultSetMetaData.java",
"license": "apache-2.0",
"size": 22984
} | [
"java.sql.SQLException"
] | import java.sql.SQLException; | import java.sql.*; | [
"java.sql"
] | java.sql; | 1,293,737 |
@Override
public SipSession getProxySession(boolean create) {
//TODO was not supposed to be executed here! we need to understand
//why we create and invoke to a servlet an outgoing response (on doresponse)
//and not an incomnig one
return getTransactionUser().getSipSession(create);
} | SipSession function(boolean create) { return getTransactionUser().getSipSession(create); } | /**
* Overrides the method in SipServletMessage to add the ability to get
* Session by the To tag that is usefull in the Derived Session state
* @see javax.servlet.sip.SipServletMessage#getSession(boolean)
* @param create
* @return
*/ | Overrides the method in SipServletMessage to add the ability to get Session by the To tag that is usefull in the Derived Session state | getProxySession | {
"repo_name": "OpenLiberty/open-liberty",
"path": "dev/com.ibm.ws.sipcontainer/src/com/ibm/ws/sip/container/servlets/OutgoingSipServletResponse.java",
"license": "epl-1.0",
"size": 30177
} | [
"javax.servlet.sip.SipSession"
] | import javax.servlet.sip.SipSession; | import javax.servlet.sip.*; | [
"javax.servlet"
] | javax.servlet; | 1,302,669 |
private void parseFile(PDFPassword password) throws IOException {
// start at the begining of the file
this.buf.rewind();
String versionLine = readLine();
if (versionLine.startsWith(VERSION_COMMENT)) {
processVersion(versionLine.substring(VERSION_COMMENT.length()))... | void function(PDFPassword password) throws IOException { this.buf.rewind(); String versionLine = readLine(); if (versionLine.startsWith(VERSION_COMMENT)) { processVersion(versionLine.substring(VERSION_COMMENT.length())); } this.buf.rewind(); byte[] scan = new byte[32]; int scanPos = this.buf.remaining() - scan.length; ... | /**
* build the PDFFile reference table. Nothing in the PDFFile actually
* gets parsed, despite the name of this function. Things only get
* read and parsed when they're needed.
* @param password
*/ | build the PDFFile reference table. Nothing in the PDFFile actually gets parsed, despite the name of this function. Things only get read and parsed when they're needed | parseFile | {
"repo_name": "katjas/PDFrenderer",
"path": "src/com/sun/pdfview/PDFFile.java",
"license": "lgpl-2.1",
"size": 72428
} | [
"com.sun.pdfview.decrypt.PDFPassword",
"com.sun.pdfview.decrypt.UnsupportedEncryptionException",
"java.io.IOException"
] | import com.sun.pdfview.decrypt.PDFPassword; import com.sun.pdfview.decrypt.UnsupportedEncryptionException; import java.io.IOException; | import com.sun.pdfview.decrypt.*; import java.io.*; | [
"com.sun.pdfview",
"java.io"
] | com.sun.pdfview; java.io; | 268,448 |
public String getHeaderKey()
{ String result = null;
// general
if(this==GENERAL_RANK)
result = GuiKeys.COMMON_STATISTICS_PLAYER_COMMON_HEADER_RANK;
else if(this==GENERAL_EVOLUTION)
result = GuiKeys.COMMON_STATISTICS_PLAYER_COMMON_HEADER_EVOLUTION;
else if(this==GENERAL_PORTRAIT)
result ... | String function() { String result = null; if(this==GENERAL_RANK) result = GuiKeys.COMMON_STATISTICS_PLAYER_COMMON_HEADER_RANK; else if(this==GENERAL_EVOLUTION) result = GuiKeys.COMMON_STATISTICS_PLAYER_COMMON_HEADER_EVOLUTION; else if(this==GENERAL_PORTRAIT) result = GuiKeys.COMMON_STATISTICS_PLAYER_COMMON_HEADER_PORTR... | /**
* Returns the GUI key for the
* header of this column.
*
* @return
* A GUI key.
*/ | Returns the GUI key for the header of this column | getHeaderKey | {
"repo_name": "vlabatut/totalboumboum",
"path": "src/org/totalboumboum/gui/common/content/subpanel/statistics/StatisticColumn.java",
"license": "gpl-2.0",
"size": 30221
} | [
"org.totalboumboum.gui.tools.GuiKeys"
] | import org.totalboumboum.gui.tools.GuiKeys; | import org.totalboumboum.gui.tools.*; | [
"org.totalboumboum.gui"
] | org.totalboumboum.gui; | 1,696,002 |
@Override
public String toString() {
return in.toString();
}
/**
* Indicates whether the {@link #close()} method
* should propagate to the underling {@link InputStream}.
*
* @return {@code true} if calling {@link #close()} | String function() { return in.toString(); } /** * Indicates whether the {@link #close()} method * should propagate to the underling {@link InputStream}. * * @return {@code true} if calling {@link #close()} | /**
* Invokes the delegate's <code>readString()</code> method.
*
* @return the delegate's <code>readString()</code>
*/ | Invokes the delegate's <code>readString()</code> method | toString | {
"repo_name": "gitaiQAQ/SmsCodeHelper",
"path": "app/src/main/java/me/gitai/library/utils/io/BoundedInputStream.java",
"license": "lgpl-3.0",
"size": 7298
} | [
"java.io.InputStream"
] | import java.io.InputStream; | import java.io.*; | [
"java.io"
] | java.io; | 2,788,101 |
public Tuple<String, String> getBeforeAndAfterMatchingChars(char c) {
final int initial = getAbsoluteCursorOffset();
int curr = initial - 1;
IDocument doc = getDoc();
FastStringBuffer buf = new FastStringBuffer(10);
int length = doc.getLength();
while (curr >= 0 && c... | Tuple<String, String> function(char c) { final int initial = getAbsoluteCursorOffset(); int curr = initial - 1; IDocument doc = getDoc(); FastStringBuffer buf = new FastStringBuffer(10); int length = doc.getLength(); while (curr >= 0 && curr < length) { char gotten; try { gotten = doc.getChar(curr); } catch (BadLocatio... | /**
* Helpful for having a '|' where the cursor == | and pressing a backspace and deleting both chars.
*/ | Helpful for having a '|' where the cursor == | and pressing a backspace and deleting both chars | getBeforeAndAfterMatchingChars | {
"repo_name": "fabioz/Pydev",
"path": "plugins/org.python.pydev.shared_core/src/org/python/pydev/shared_core/string/TextSelectionUtils.java",
"license": "epl-1.0",
"size": 40147
} | [
"org.eclipse.jface.text.BadLocationException",
"org.eclipse.jface.text.IDocument",
"org.python.pydev.shared_core.structure.Tuple"
] | import org.eclipse.jface.text.BadLocationException; import org.eclipse.jface.text.IDocument; import org.python.pydev.shared_core.structure.Tuple; | import org.eclipse.jface.text.*; import org.python.pydev.shared_core.structure.*; | [
"org.eclipse.jface",
"org.python.pydev"
] | org.eclipse.jface; org.python.pydev; | 313,043 |
private void validateStorageUnitNotificationFilter(StorageUnitNotificationFilter filter)
{
Assert.notNull(filter, "A storage unit notification filter must be specified.");
validateStorageUnitNotificationFilterBusinessObjectDefinitionFields(filter);
trimStorageUnitNotificationFilterBusi... | void function(StorageUnitNotificationFilter filter) { Assert.notNull(filter, STR); validateStorageUnitNotificationFilterBusinessObjectDefinitionFields(filter); trimStorageUnitNotificationFilterBusinessObjectFormatFields(filter); Assert.hasText(filter.getStorageName(), STR); filter.setStorageName(filter.getStorageName()... | /**
* Validates the storage unit notification filter. This method also trims the filter parameters.
*
* @param filter the storage unit notification filter
*/ | Validates the storage unit notification filter. This method also trims the filter parameters | validateStorageUnitNotificationFilter | {
"repo_name": "kusid/herd",
"path": "herd-code/herd-service/src/main/java/org/finra/herd/service/impl/StorageUnitNotificationRegistrationServiceImpl.java",
"license": "apache-2.0",
"size": 36682
} | [
"org.apache.commons.lang3.StringUtils",
"org.finra.herd.model.api.xml.StorageUnitNotificationFilter",
"org.springframework.util.Assert"
] | import org.apache.commons.lang3.StringUtils; import org.finra.herd.model.api.xml.StorageUnitNotificationFilter; import org.springframework.util.Assert; | import org.apache.commons.lang3.*; import org.finra.herd.model.api.xml.*; import org.springframework.util.*; | [
"org.apache.commons",
"org.finra.herd",
"org.springframework.util"
] | org.apache.commons; org.finra.herd; org.springframework.util; | 2,791,963 |
public Object[] sample(int sampleSize) throws NotStrictlyPositiveException {
if (sampleSize <= 0) {
throw new NotStrictlyPositiveException(LocalizedFormats.NUMBER_OF_SAMPLES,
sampleSize);
}
final Object[] out = new Object[sampleSize];
for (int i = 0;... | Object[] function(int sampleSize) throws NotStrictlyPositiveException { if (sampleSize <= 0) { throw new NotStrictlyPositiveException(LocalizedFormats.NUMBER_OF_SAMPLES, sampleSize); } final Object[] out = new Object[sampleSize]; for (int i = 0; i < sampleSize; i++) { out[i] = sample(); } return out; } | /**
* Generate a random sample from the distribution.
*
* @param sampleSize the number of random values to generate.
* @return an array representing the random sample.
* @throws NotStrictlyPositiveException if {@code sampleSize} is not
* positive.
*/ | Generate a random sample from the distribution | sample | {
"repo_name": "venkateshamurthy/java-quantiles",
"path": "src/main/java/org/apache/commons/math3/distribution/EnumeratedDistribution.java",
"license": "apache-2.0",
"size": 10940
} | [
"org.apache.commons.math3.exception.NotStrictlyPositiveException",
"org.apache.commons.math3.exception.util.LocalizedFormats"
] | import org.apache.commons.math3.exception.NotStrictlyPositiveException; import org.apache.commons.math3.exception.util.LocalizedFormats; | import org.apache.commons.math3.exception.*; import org.apache.commons.math3.exception.util.*; | [
"org.apache.commons"
] | org.apache.commons; | 2,557,782 |
public void showDialog(Color inStartColour)
{
// Initialise sliders
_rgbSliders[0].setValue(inStartColour.getRed());
_rgbSliders[1].setValue(inStartColour.getGreen());
_rgbSliders[2].setValue(inStartColour.getBlue());
updatePatch();
_dialog.setLocationRelativeTo(_dialog.getParent());
_dialog.setVisibl... | void function(Color inStartColour) { _rgbSliders[0].setValue(inStartColour.getRed()); _rgbSliders[1].setValue(inStartColour.getGreen()); _rgbSliders[2].setValue(inStartColour.getBlue()); updatePatch(); _dialog.setLocationRelativeTo(_dialog.getParent()); _dialog.setVisible(true); } | /**
* Show the dialog to choose a colour
* @param inStartColour current colour
*/ | Show the dialog to choose a colour | showDialog | {
"repo_name": "sebastic/GpsPrune",
"path": "tim/prune/gui/colour/ColourChooser.java",
"license": "gpl-2.0",
"size": 4462
} | [
"java.awt.Color"
] | import java.awt.Color; | import java.awt.*; | [
"java.awt"
] | java.awt; | 975,489 |
public static BpmnDiPackage init() {
if (isInited)
return (BpmnDiPackage) EPackage.Registry.INSTANCE.getEPackage(BpmnDiPackage.eNS_URI);
initializeRegistryHelpers();
// Obtain or create and register package
Object registeredBpmnDiPackage = EPackage.Registry.INSTANCE.get(eNS_URI);
BpmnDiPackageImpl the... | static BpmnDiPackage function() { if (isInited) return (BpmnDiPackage) EPackage.Registry.INSTANCE.getEPackage(BpmnDiPackage.eNS_URI); initializeRegistryHelpers(); Object registeredBpmnDiPackage = EPackage.Registry.INSTANCE.get(eNS_URI); BpmnDiPackageImpl theBpmnDiPackage = registeredBpmnDiPackage instanceof BpmnDiPacka... | /**
* Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
*
* <p>This method is used to initialize {@link BpmnDiPackage#eINSTANCE} when that field is accessed.
* Clients should not invoke it directly. Instead, they should simply access that field to o... | Creates, registers, and initializes the Package for this model, and for any others upon which it depends. This method is used to initialize <code>BpmnDiPackage#eINSTANCE</code> when that field is accessed. Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. | init | {
"repo_name": "porcelli-forks/kie-wb-common",
"path": "kie-wb-common-stunner/kie-wb-common-stunner-sets/kie-wb-common-stunner-bpmn/kie-wb-common-stunner-bpmn-emf/src/main/java/org/eclipse/bpmn2/di/impl/BpmnDiPackageImpl.java",
"license": "apache-2.0",
"size": 35206
} | [
"org.eclipse.bpmn2.Bpmn2Package",
"org.eclipse.bpmn2.di.BpmnDiPackage",
"org.eclipse.bpmn2.impl.Bpmn2PackageImpl",
"org.eclipse.dd.dc.DcPackage",
"org.eclipse.dd.dc.impl.DcPackageImpl",
"org.eclipse.dd.di.DiPackage",
"org.eclipse.dd.di.impl.DiPackageImpl",
"org.eclipse.emf.ecore.EPackage"
] | import org.eclipse.bpmn2.Bpmn2Package; import org.eclipse.bpmn2.di.BpmnDiPackage; import org.eclipse.bpmn2.impl.Bpmn2PackageImpl; import org.eclipse.dd.dc.DcPackage; import org.eclipse.dd.dc.impl.DcPackageImpl; import org.eclipse.dd.di.DiPackage; import org.eclipse.dd.di.impl.DiPackageImpl; import org.eclipse.emf.ecore... | import org.eclipse.bpmn2.*; import org.eclipse.bpmn2.di.*; import org.eclipse.bpmn2.impl.*; import org.eclipse.dd.dc.*; import org.eclipse.dd.dc.impl.*; import org.eclipse.dd.di.*; import org.eclipse.dd.di.impl.*; import org.eclipse.emf.ecore.*; | [
"org.eclipse.bpmn2",
"org.eclipse.dd",
"org.eclipse.emf"
] | org.eclipse.bpmn2; org.eclipse.dd; org.eclipse.emf; | 2,379,928 |
return new TestSuite(PeriodAxisLabelInfoTests.class);
}
public PeriodAxisLabelInfoTests(String name) {
super(name);
} | return new TestSuite(PeriodAxisLabelInfoTests.class); } public PeriodAxisLabelInfoTests(String name) { super(name); } | /**
* Returns the tests as a test suite.
*
* @return The test suite.
*/ | Returns the tests as a test suite | suite | {
"repo_name": "JSansalone/JFreeChart",
"path": "tests/org/jfree/chart/axis/junit/PeriodAxisLabelInfoTests.java",
"license": "lgpl-2.1",
"size": 7805
} | [
"junit.framework.TestSuite"
] | import junit.framework.TestSuite; | import junit.framework.*; | [
"junit.framework"
] | junit.framework; | 2,218,083 |
private static void zipDir(File directory, ZipOutputStream out,
String parentDirectoryName)
throws Exception
{
File[] entries = directory.listFiles();
byte[] buffer = new byte[4096]; // Create a buffer for copying
int bytesRead;
FileInputStream in = null;
File f;
... | static void function(File directory, ZipOutputStream out, String parentDirectoryName) throws Exception { File[] entries = directory.listFiles(); byte[] buffer = new byte[4096]; int bytesRead; FileInputStream in = null; File f; for (int i = 0; i < entries.length; i++) { try { f = entries[i]; if (f.isHidden()) continue; ... | /**
* Zips directory.
*
* @param directory The directory to zip.
* @param out The output stream.
* @throws Exception Thrown if an error occurred during the operation.
*/ | Zips directory | zipDir | {
"repo_name": "tp81/openmicroscopy",
"path": "components/insight/SRC/org/openmicroscopy/shoola/util/file/IOUtil.java",
"license": "gpl-2.0",
"size": 12307
} | [
"java.io.File",
"java.io.FileInputStream",
"java.util.zip.ZipEntry",
"java.util.zip.ZipOutputStream",
"org.apache.commons.io.FilenameUtils",
"org.openmicroscopy.shoola.util.CommonsLangUtils"
] | import java.io.File; import java.io.FileInputStream; import java.util.zip.ZipEntry; import java.util.zip.ZipOutputStream; import org.apache.commons.io.FilenameUtils; import org.openmicroscopy.shoola.util.CommonsLangUtils; | import java.io.*; import java.util.zip.*; import org.apache.commons.io.*; import org.openmicroscopy.shoola.util.*; | [
"java.io",
"java.util",
"org.apache.commons",
"org.openmicroscopy.shoola"
] | java.io; java.util; org.apache.commons; org.openmicroscopy.shoola; | 268,181 |
@SuppressWarnings("unchecked")
public List<SEntity> getAnnotations() {
return (List<SEntity>) annots.clone();
} | @SuppressWarnings(STR) List<SEntity> function() { return (List<SEntity>) annots.clone(); } | /**
* Get any additional data written to the serial stream by a
* writeObject method in the class or any of its ancestors.
*/ | Get any additional data written to the serial stream by a writeObject method in the class or any of its ancestors | getAnnotations | {
"repo_name": "frohoff/serialysis",
"path": "src/net/mcmanus/eamonn/serialysis/SObject.java",
"license": "gpl-2.0",
"size": 4803
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 1,245,129 |
public TransactionTemplate getTransactionTemplate() {
return _transactionTemplate;
} | TransactionTemplate function() { return _transactionTemplate; } | /**
* Gets the transaction template.
* <p>
* This is shared between all users of this object and must not be further configured.
*
* @return the transaction template, may be null
*/ | Gets the transaction template. This is shared between all users of this object and must not be further configured | getTransactionTemplate | {
"repo_name": "codeaudit/OG-Platform",
"path": "projects/OG-UtilDB/src/main/java/com/opengamma/util/db/DbConnector.java",
"license": "apache-2.0",
"size": 13108
} | [
"org.springframework.transaction.support.TransactionTemplate"
] | import org.springframework.transaction.support.TransactionTemplate; | import org.springframework.transaction.support.*; | [
"org.springframework.transaction"
] | org.springframework.transaction; | 1,838,870 |
@Test
public void createPaymentMethodTest() throws IOException {
PaymentMethodDTO paymentMethod = factory.manufacturePojo(PaymentMethodDTO.class);
Cookie cookieSessionId = login(username, password);
Response response = target
.request().cookie(cookieSessionId)
... | void function() throws IOException { PaymentMethodDTO paymentMethod = factory.manufacturePojo(PaymentMethodDTO.class); Cookie cookieSessionId = login(username, password); Response response = target .request().cookie(cookieSessionId) .post(Entity.entity(paymentMethod, MediaType.APPLICATION_JSON)); PaymentMethodDTO payme... | /**
* Prueba para crear un PaymentMethod
*
* @throws java.io.IOException
* @generated
*/ | Prueba para crear un PaymentMethod | createPaymentMethodTest | {
"repo_name": "Uniandes-MISO4203/turism-201620-2",
"path": "turism-api/src/test/java/co/edu/uniandes/csw/turism/tests/rest/PaymentMethodTest.java",
"license": "mit",
"size": 11631
} | [
"co.edu.uniandes.csw.turism.dtos.minimum.PaymentMethodDTO",
"co.edu.uniandes.csw.turism.entities.PaymentMethodEntity",
"java.io.IOException",
"javax.ws.rs.client.Entity",
"javax.ws.rs.core.Cookie",
"javax.ws.rs.core.MediaType",
"javax.ws.rs.core.Response",
"org.junit.Assert"
] | import co.edu.uniandes.csw.turism.dtos.minimum.PaymentMethodDTO; import co.edu.uniandes.csw.turism.entities.PaymentMethodEntity; import java.io.IOException; import javax.ws.rs.client.Entity; import javax.ws.rs.core.Cookie; import javax.ws.rs.core.MediaType; import javax.ws.rs.core.Response; import org.junit.Assert; | import co.edu.uniandes.csw.turism.dtos.minimum.*; import co.edu.uniandes.csw.turism.entities.*; import java.io.*; import javax.ws.rs.client.*; import javax.ws.rs.core.*; import org.junit.*; | [
"co.edu.uniandes",
"java.io",
"javax.ws",
"org.junit"
] | co.edu.uniandes; java.io; javax.ws; org.junit; | 183,147 |
public static String getReplacement(String text, String variable, String replacement) {
variable = Pattern.quote(variable);
return text.replaceAll(variable, replacement);
} | static String function(String text, String variable, String replacement) { variable = Pattern.quote(variable); return text.replaceAll(variable, replacement); } | /**
* Helper function to perform a regex replacement on a string
*
* @param text A string containing the text to process
* @param variable A string containing the variable name
* @param replacement A string containing the replacement text of variable
* @return A string containing the proc... | Helper function to perform a regex replacement on a string | getReplacement | {
"repo_name": "AndBicScadMedia/NBDrupalDevel",
"path": "src/org/netbeans/modules/php/drupaldevel/libraryParser.java",
"license": "gpl-2.0",
"size": 6472
} | [
"java.util.regex.Pattern"
] | import java.util.regex.Pattern; | import java.util.regex.*; | [
"java.util"
] | java.util; | 1,183,957 |
@Nonnull
public GroupSettingTemplateCollectionRequest count(final boolean value) {
addCountOption(value);
return this;
} | GroupSettingTemplateCollectionRequest function(final boolean value) { addCountOption(value); return this; } | /**
* Sets the count value for the request
*
* @param value whether or not to return the count of objects with the request
* @return the updated request
*/ | Sets the count value for the request | count | {
"repo_name": "microsoftgraph/msgraph-sdk-java",
"path": "src/main/java/com/microsoft/graph/requests/GroupSettingTemplateCollectionRequest.java",
"license": "mit",
"size": 6124
} | [
"com.microsoft.graph.requests.GroupSettingTemplateCollectionRequest"
] | import com.microsoft.graph.requests.GroupSettingTemplateCollectionRequest; | import com.microsoft.graph.requests.*; | [
"com.microsoft.graph"
] | com.microsoft.graph; | 1,060,446 |
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<Void>, Void> beginDelete(String resourceGroupName, String serverName); | @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller<PollResult<Void>, Void> beginDelete(String resourceGroupName, String serverName); | /**
* Deletes a server.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.Manageme... | Deletes a server | beginDelete | {
"repo_name": "Azure/azure-sdk-for-java",
"path": "sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/com/azure/resourcemanager/postgresqlflexibleserver/fluent/ServersClient.java",
"license": "mit",
"size": 23788
} | [
"com.azure.core.annotation.ReturnType",
"com.azure.core.annotation.ServiceMethod",
"com.azure.core.management.polling.PollResult",
"com.azure.core.util.polling.SyncPoller"
] | import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.management.polling.PollResult; import com.azure.core.util.polling.SyncPoller; | import com.azure.core.annotation.*; import com.azure.core.management.polling.*; import com.azure.core.util.polling.*; | [
"com.azure.core"
] | com.azure.core; | 892,842 |
private JComboBox buildLogLevelCB(LogTypeHelper initialLevel) {
JComboBox temp;
// Add the ComboBox for the log level
LogTypeHelper[] types = LogTypeHelper.values();
int t=0;
temp = new JComboBox(types);
// Build the renderer for the combo boxes
LogTypeRenderer rendererCB ... | JComboBox function(LogTypeHelper initialLevel) { JComboBox temp; LogTypeHelper[] types = LogTypeHelper.values(); int t=0; temp = new JComboBox(types); LogTypeRenderer rendererCB = new LogTypeRenderer(); if (initialLevel!=null) { temp.setSelectedItem(initialLevel); } else { temp.setSelectedItem(LogTypeHelper.TRACE); } t... | /**
* Build a log level combobox.
*
* @param initialLevel The initial log level
* @return The log level CB
*/ | Build a log level combobox | buildLogLevelCB | {
"repo_name": "jbarriosc/ACSUFRO",
"path": "LGPL/CommonSoftware/acsGUIs/jlog/src/alma/acs/logging/archive/zoom/ZoomPrefsDlg.java",
"license": "lgpl-2.1",
"size": 8271
} | [
"com.cosylab.logging.engine.log.LogTypeHelper",
"com.cosylab.logging.settings.LogTypeRenderer",
"javax.swing.JComboBox"
] | import com.cosylab.logging.engine.log.LogTypeHelper; import com.cosylab.logging.settings.LogTypeRenderer; import javax.swing.JComboBox; | import com.cosylab.logging.engine.log.*; import com.cosylab.logging.settings.*; import javax.swing.*; | [
"com.cosylab.logging",
"javax.swing"
] | com.cosylab.logging; javax.swing; | 2,687,368 |
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux<PollResult<OperationJobExtendedInfoInner>, OperationJobExtendedInfoInner>
beginTriggerRestoreAsync(
String vaultName,
String resourceGroupName,
String backupInstanceName,
AzureB... | @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) PollerFlux<PollResult<OperationJobExtendedInfoInner>, OperationJobExtendedInfoInner> function( String vaultName, String resourceGroupName, String backupInstanceName, AzureBackupRestoreRequest parameters) { Mono<Response<Flux<ByteBuffer>>> mono = triggerRestore... | /**
* Triggers restore for a BackupInstance.
*
* @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
* @param backupInstanceName The name of the backup instance.
* @param parameters Request body for ope... | Triggers restore for a BackupInstance | beginTriggerRestoreAsync | {
"repo_name": "Azure/azure-sdk-for-java",
"path": "sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupInstancesClientImpl.java",
"license": "mit",
"size": 135868
} | [
"com.azure.core.annotation.ReturnType",
"com.azure.core.annotation.ServiceMethod",
"com.azure.core.http.rest.Response",
"com.azure.core.management.polling.PollResult",
"com.azure.core.util.Context",
"com.azure.core.util.polling.PollerFlux",
"com.azure.resourcemanager.dataprotection.fluent.models.Operati... | import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.Response; import com.azure.core.management.polling.PollResult; import com.azure.core.util.Context; import com.azure.core.util.polling.PollerFlux; import com.azure.resourcemanager.dataprotection.f... | import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.core.management.polling.*; import com.azure.core.util.*; import com.azure.core.util.polling.*; import com.azure.resourcemanager.dataprotection.fluent.models.*; import com.azure.resourcemanager.dataprotection.models.*; import java.ni... | [
"com.azure.core",
"com.azure.resourcemanager",
"java.nio"
] | com.azure.core; com.azure.resourcemanager; java.nio; | 2,756,480 |
public ManyToMany<T> removeOrderBy()
{
childNode.removeChildren("order-by");
return this;
}
// --------------------------------------------------------------------------------------------------------||
// ClassName: ManyToMany ElementName: orm:map-key ElementType : map-key
// MaxOccurs:... | ManyToMany<T> function() { childNode.removeChildren(STR); return this; } | /**
* Removes the <code>order-by</code> element
* @return the current instance of <code>ManyToMany<T></code>
*/ | Removes the <code>order-by</code> element | removeOrderBy | {
"repo_name": "forge/javaee-descriptors",
"path": "impl/src/main/java/org/jboss/shrinkwrap/descriptor/impl/orm10/ManyToManyImpl.java",
"license": "epl-1.0",
"size": 11572
} | [
"org.jboss.shrinkwrap.descriptor.api.orm10.ManyToMany"
] | import org.jboss.shrinkwrap.descriptor.api.orm10.ManyToMany; | import org.jboss.shrinkwrap.descriptor.api.orm10.*; | [
"org.jboss.shrinkwrap"
] | org.jboss.shrinkwrap; | 1,597,124 |
static int computePreferredBufferSize(int dataLength) {
if (dataLength > DEFAULT_BUFFER_SIZE) {
return DEFAULT_BUFFER_SIZE;
}
return dataLength;
}
private CodedOutputStream(final byte[] buffer, final int offset,
final int length) {
output = null;
this.buffer ... | static int computePreferredBufferSize(int dataLength) { if (dataLength > DEFAULT_BUFFER_SIZE) { return DEFAULT_BUFFER_SIZE; } return dataLength; } private CodedOutputStream(final byte[] buffer, final int offset, final int length) { output = null; this.buffer = buffer; position = offset; limit = offset + length; } priva... | /**
* Returns the buffer size to efficiently write dataLength bytes to this
* CodedOutputStream. Used by AbstractMessageLite.
*
* @return the buffer size to efficiently write dataLength bytes to this
* CodedOutputStream.
*/ | Returns the buffer size to efficiently write dataLength bytes to this CodedOutputStream. Used by AbstractMessageLite | computePreferredBufferSize | {
"repo_name": "spotify/ffwd-java",
"path": "protobuf250/src/main/java/com/spotify/ffwd/protobuf250/CodedOutputStream.java",
"license": "apache-2.0",
"size": 38935
} | [
"java.io.OutputStream"
] | import java.io.OutputStream; | import java.io.*; | [
"java.io"
] | java.io; | 417,827 |
@Message(id = 11442, value = "Parameter %s is empty")
IllegalArgumentException emptyParameter(String parameterName); | @Message(id = 11442, value = STR) IllegalArgumentException emptyParameter(String parameterName); | /**
* Creates an exception indicating the parameter, likely a collection, is empty.
*
* @param parameterName the parameter name.
* @return an {@link IllegalArgumentException} for the error.
*/ | Creates an exception indicating the parameter, likely a collection, is empty | emptyParameter | {
"repo_name": "jipijapa/jipijapa",
"path": "hibernate4_1/src/main/java/org/jboss/as/jpa/hibernate4/JpaMessages.java",
"license": "apache-2.0",
"size": 2955
} | [
"org.jboss.logging.annotations.Message"
] | import org.jboss.logging.annotations.Message; | import org.jboss.logging.annotations.*; | [
"org.jboss.logging"
] | org.jboss.logging; | 2,830,382 |
@Override
public void toStream(ObjectOutput out) throws CacheLoaderException {
try {
Set<InternalCacheEntry> loadAll = loadAll();
int count = 0;
for (InternalCacheEntry entry : loadAll) {
getMarshaller().objectToObjectStream(entry, out);
count++;
}... | void function(ObjectOutput out) throws CacheLoaderException { try { Set<InternalCacheEntry> loadAll = loadAll(); int count = 0; for (InternalCacheEntry entry : loadAll) { getMarshaller().objectToObjectStream(entry, out); count++; } getMarshaller().objectToObjectStream(null, out); } catch (IOException e) { throw new Cac... | /**
* Loads all entries from the cache and marshalls them to an object stream.
*
* @param out
* the output stream to marshall the entries to
*/ | Loads all entries from the cache and marshalls them to an object stream | toStream | {
"repo_name": "nmldiegues/stibt",
"path": "infinispan/cachestore/hbase/src/main/java/org/infinispan/loaders/hbase/HBaseCacheStore.java",
"license": "apache-2.0",
"size": 18600
} | [
"java.io.IOException",
"java.io.ObjectOutput",
"java.util.Set",
"org.infinispan.container.entries.InternalCacheEntry",
"org.infinispan.loaders.CacheLoaderException"
] | import java.io.IOException; import java.io.ObjectOutput; import java.util.Set; import org.infinispan.container.entries.InternalCacheEntry; import org.infinispan.loaders.CacheLoaderException; | import java.io.*; import java.util.*; import org.infinispan.container.entries.*; import org.infinispan.loaders.*; | [
"java.io",
"java.util",
"org.infinispan.container",
"org.infinispan.loaders"
] | java.io; java.util; org.infinispan.container; org.infinispan.loaders; | 2,510,062 |
protected Node exitElementType(Production node)
throws ParseException {
return node;
} | Node function(Production node) throws ParseException { return node; } | /**
* Called when exiting a parse tree node.
*
* @param node the node being exited
*
* @return the node to add to the parse tree, or
* null if no parse tree should be created
*
* @throws ParseException if the node analysis discovered errors
*/ | Called when exiting a parse tree node | exitElementType | {
"repo_name": "richb-hanover/mibble-2.9.2",
"path": "src/java/net/percederberg/mibble/asn1/Asn1Analyzer.java",
"license": "gpl-2.0",
"size": 275483
} | [
"net.percederberg.grammatica.parser.Node",
"net.percederberg.grammatica.parser.ParseException",
"net.percederberg.grammatica.parser.Production"
] | import net.percederberg.grammatica.parser.Node; import net.percederberg.grammatica.parser.ParseException; import net.percederberg.grammatica.parser.Production; | import net.percederberg.grammatica.parser.*; | [
"net.percederberg.grammatica"
] | net.percederberg.grammatica; | 447,640 |
interface Aws2Ec2ComponentBuilder
extends
ComponentBuilder<AWS2EC2Component> {
default Aws2Ec2ComponentBuilder autoDiscoverClient(
boolean autoDiscoverClient) {
doSetProperty("autoDiscoverClient", autoDiscoverClient);
return this;
... | interface Aws2Ec2ComponentBuilder extends ComponentBuilder<AWS2EC2Component> { default Aws2Ec2ComponentBuilder autoDiscoverClient( boolean autoDiscoverClient) { doSetProperty(STR, autoDiscoverClient); return this; } | /**
* Setting the autoDiscoverClient mechanism, if true, the component will
* look for a client instance in the registry automatically otherwise it
* will skip that checking.
*
* The option is a: <code>boolean</code> type.
*
* Default: true
* Gro... | Setting the autoDiscoverClient mechanism, if true, the component will look for a client instance in the registry automatically otherwise it will skip that checking. The option is a: <code>boolean</code> type. Default: true Group: common | autoDiscoverClient | {
"repo_name": "adessaigne/camel",
"path": "core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/Aws2Ec2ComponentBuilderFactory.java",
"license": "apache-2.0",
"size": 12057
} | [
"org.apache.camel.builder.component.ComponentBuilder",
"org.apache.camel.component.aws2.ec2.AWS2EC2Component"
] | import org.apache.camel.builder.component.ComponentBuilder; import org.apache.camel.component.aws2.ec2.AWS2EC2Component; | import org.apache.camel.builder.component.*; import org.apache.camel.component.aws2.ec2.*; | [
"org.apache.camel"
] | org.apache.camel; | 562,887 |
public static void loadDefaults() {
// Sets the default preferences if no value is set yet
try {
Map<UCPreferenceSettings, Object> defaultPrefs = new HashMap<UCPreferenceSettings, Object>();
UCPreferenceSettings[] values = UCPreferenceSettings.values();
int cc = values.length;
for (int i = 0; i... | static void function() { try { Map<UCPreferenceSettings, Object> defaultPrefs = new HashMap<UCPreferenceSettings, Object>(); UCPreferenceSettings[] values = UCPreferenceSettings.values(); int cc = values.length; for (int i = 0; i < cc; i++) { defaultPrefs.put(values[i], values[i].getDefaultValue()); } savePreferences(d... | /**
* Method that initializes the defaults preferences of the application.
*/ | Method that initializes the defaults preferences of the application | loadDefaults | {
"repo_name": "sosoyiyi/ucan",
"path": "src/com/ucan/app/common/utils/UCPreferences.java",
"license": "gpl-2.0",
"size": 5818
} | [
"com.ucan.app.common.enums.UCPreferenceSettings",
"java.util.HashMap",
"java.util.Map"
] | import com.ucan.app.common.enums.UCPreferenceSettings; import java.util.HashMap; import java.util.Map; | import com.ucan.app.common.enums.*; import java.util.*; | [
"com.ucan.app",
"java.util"
] | com.ucan.app; java.util; | 621,580 |
public void getDriverRides(final String userID) {
// Get all user rides from the database
AsyncController controller = new AsyncController(context);
try {
JsonArray queryResults = controller.getAllFromIndexFiltered("ride", "driver", userID);
for (JsonElement result : ... | void function(final String userID) { AsyncController controller = new AsyncController(context); try { JsonArray queryResults = controller.getAllFromIndexFiltered("ride", STR, userID); for (JsonElement result : queryResults) { try { rides.add(new Ride(result.getAsJsonObject().getAsJsonObject(STR))); } catch (Exception e... | /**
* Gets all rides for a driver from the server
* If a parsing a ride fails log it.
* @param userID the user id
*/ | Gets all rides for a driver from the server If a parsing a ride fails log it | getDriverRides | {
"repo_name": "CMPUT301F16T04/Ridr",
"path": "app/src/main/java/ca/ualberta/ridr/RideController.java",
"license": "lgpl-3.0",
"size": 7254
} | [
"android.util.Log",
"com.google.gson.JsonArray",
"com.google.gson.JsonElement"
] | import android.util.Log; import com.google.gson.JsonArray; import com.google.gson.JsonElement; | import android.util.*; import com.google.gson.*; | [
"android.util",
"com.google.gson"
] | android.util; com.google.gson; | 2,057,297 |
Set<Pair<Object, LegalEntityFilter<LegalEntity>>> getIssuers(); | Set<Pair<Object, LegalEntityFilter<LegalEntity>>> getIssuers(); | /**
* Gets all issuers represented in this bundle.
* @return The issuers
*/ | Gets all issuers represented in this bundle | getIssuers | {
"repo_name": "jeorme/OG-Platform",
"path": "projects/OG-Analytics/src/main/java/com/opengamma/analytics/financial/provider/description/interestrate/IssuerProviderInterface.java",
"license": "apache-2.0",
"size": 2178
} | [
"com.opengamma.analytics.financial.legalentity.LegalEntity",
"com.opengamma.analytics.financial.legalentity.LegalEntityFilter",
"com.opengamma.util.tuple.Pair",
"java.util.Set"
] | import com.opengamma.analytics.financial.legalentity.LegalEntity; import com.opengamma.analytics.financial.legalentity.LegalEntityFilter; import com.opengamma.util.tuple.Pair; import java.util.Set; | import com.opengamma.analytics.financial.legalentity.*; import com.opengamma.util.tuple.*; import java.util.*; | [
"com.opengamma.analytics",
"com.opengamma.util",
"java.util"
] | com.opengamma.analytics; com.opengamma.util; java.util; | 2,880,591 |
public String getInvitationId() {
if (!mGoogleApiClient.isConnected()) {
Log.w(TAG,
"Warning: getInvitationId() should only be called when signed in, "
+ "that is, after getting onSignInSuceeded()");
}
return mInvitation == null ? n... | String function() { if (!mGoogleApiClient.isConnected()) { Log.w(TAG, STR + STR); } return mInvitation == null ? null : mInvitation.getInvitationId(); } | /**
* Returns the invitation ID received through an invitation notification.
* This should be called from your GameHelperListener's
*
* @link{GameHelperListener#onSignInSucceeded method, to check if there's an
* invitation available. In that
* ... | Returns the invitation ID received through an invitation notification. This should be called from your GameHelperListener's | getInvitationId | {
"repo_name": "iRail/BeTrains-for-Android",
"path": "BeTrains/src/main/java/tof/cv/mpp/Utils/GameHelper.java",
"license": "apache-2.0",
"size": 38420
} | [
"android.util.Log"
] | import android.util.Log; | import android.util.*; | [
"android.util"
] | android.util; | 2,334,711 |
public void setEnabled(boolean enable, String disableMessage) {
if (m_enabled && !enable) {
Iterator<Widget> it = iterator();
while (it.hasNext()) {
Widget w = it.next();
if (w instanceof CmsPushButton) {
((CmsPushButton)w).disable... | void function(boolean enable, String disableMessage) { if (m_enabled && !enable) { Iterator<Widget> it = iterator(); while (it.hasNext()) { Widget w = it.next(); if (w instanceof CmsPushButton) { ((CmsPushButton)w).disable(disableMessage); } } } else if (!m_enabled && enable) { Iterator<Widget> it = iterator(); while (... | /**
* Sets the buttons of the hoverbar enabled.<p>
*
* @param enable if <code>true</code> the buttons will be enabled
* @param disableMessage message for disabling buttons
*/ | Sets the buttons of the hoverbar enabled | setEnabled | {
"repo_name": "serrapos/opencms-core",
"path": "src-gwt/org/opencms/ade/sitemap/client/hoverbar/CmsSitemapHoverbar.java",
"license": "lgpl-2.1",
"size": 8134
} | [
"com.google.gwt.user.client.ui.Widget",
"java.util.Iterator",
"org.opencms.gwt.client.ui.CmsPushButton"
] | import com.google.gwt.user.client.ui.Widget; import java.util.Iterator; import org.opencms.gwt.client.ui.CmsPushButton; | import com.google.gwt.user.client.ui.*; import java.util.*; import org.opencms.gwt.client.ui.*; | [
"com.google.gwt",
"java.util",
"org.opencms.gwt"
] | com.google.gwt; java.util; org.opencms.gwt; | 499,534 |
protected void verifyDigestPassword(UsernameToken usernameToken,
RequestData data) throws WSSecurityException {
if (data.getCallbackHandler() == null) {
throw new WSSecurityException(WSSecurityException.ErrorCode.FAILURE, "noCallback");
}
... | void function(UsernameToken usernameToken, RequestData data) throws WSSecurityException { if (data.getCallbackHandler() == null) { throw new WSSecurityException(WSSecurityException.ErrorCode.FAILURE, STR); } String user = usernameToken.getName(); String password = usernameToken.getPassword(); String nonce = usernameTok... | /**
* Verify a UsernameToken containing a password digest. It does this by querying a
* CallbackHandler instance to obtain a password for the given username, and then comparing
* it against the received password.
* @param usernameToken The UsernameToken instance to verify
* @throws WSSecurityE... | Verify a UsernameToken containing a password digest. It does this by querying a CallbackHandler instance to obtain a password for the given username, and then comparing it against the received password | verifyDigestPassword | {
"repo_name": "asoldano/wss4j",
"path": "ws-security-dom/src/main/java/org/apache/wss4j/dom/validate/UsernameTokenValidator.java",
"license": "apache-2.0",
"size": 10281
} | [
"java.io.IOException",
"javax.security.auth.callback.Callback",
"javax.security.auth.callback.UnsupportedCallbackException",
"org.apache.wss4j.common.ext.WSPasswordCallback",
"org.apache.wss4j.common.ext.WSSecurityException",
"org.apache.wss4j.dom.handler.RequestData",
"org.apache.wss4j.dom.message.toke... | import java.io.IOException; import javax.security.auth.callback.Callback; import javax.security.auth.callback.UnsupportedCallbackException; import org.apache.wss4j.common.ext.WSPasswordCallback; import org.apache.wss4j.common.ext.WSSecurityException; import org.apache.wss4j.dom.handler.RequestData; import org.apache.ws... | import java.io.*; import javax.security.auth.callback.*; import org.apache.wss4j.common.ext.*; import org.apache.wss4j.dom.handler.*; import org.apache.wss4j.dom.message.token.*; import org.apache.xml.security.exceptions.*; import org.apache.xml.security.utils.*; | [
"java.io",
"javax.security",
"org.apache.wss4j",
"org.apache.xml"
] | java.io; javax.security; org.apache.wss4j; org.apache.xml; | 2,646,968 |
public JSONObject put(String key, Map<?, ?> value) throws JSONException {
this.put(key, new JSONObject(value));
return this;
}
| JSONObject function(String key, Map<?, ?> value) throws JSONException { this.put(key, new JSONObject(value)); return this; } | /**
* Put a key/value pair in the JSONObject, where the value will be a
* JSONObject which is produced from a Map.
*
* @param key
* A key string.
* @param value
* A Map value.
* @return this.
* @throws JSONException
*/ | Put a key/value pair in the JSONObject, where the value will be a JSONObject which is produced from a Map | put | {
"repo_name": "houkx/nettythrift",
"path": "io.nettythrift/src/main/java/io/nettythrift/utils/json/JSONObject.java",
"license": "apache-2.0",
"size": 58638
} | [
"java.util.Map"
] | import java.util.Map; | import java.util.*; | [
"java.util"
] | java.util; | 2,231,141 |
@Test
public void testGetRepositoryDescription() throws Exception {
assertEquals("Test get repository description", "Providing OpenNMS community reports from local disk.", m_legacyLocalReportRepository.getRepositoryDescription());
} | void function() throws Exception { assertEquals(STR, STR, m_legacyLocalReportRepository.getRepositoryDescription()); } | /**
* <p>testGetRepositoryDescription</p>
* <p/>
* Test get local repository description
*
* @throws Exception
*/ | testGetRepositoryDescription Test get local repository description | testGetRepositoryDescription | {
"repo_name": "rfdrake/opennms",
"path": "features/reporting/repository/src/test/java/org/opennms/features/reporting/repository/local/LegacyLocalReportRepositoryTest.java",
"license": "gpl-2.0",
"size": 9536
} | [
"junit.framework.Assert"
] | import junit.framework.Assert; | import junit.framework.*; | [
"junit.framework"
] | junit.framework; | 980,273 |
public interface EntityInstantiationStatement extends InstantiationStatement {
EntityReference getName(); | interface EntityInstantiationStatement extends InstantiationStatement { EntityReference function(); | /**
* Returns the value of the '<em><b>Name</b></em>' containment reference.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Name</em>' containment reference isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Na... | Returns the value of the 'Name' containment reference. If the meaning of the 'Name' containment reference isn't clear, there really should be more of a description here... | getName | {
"repo_name": "mlanoe/x-vhdl",
"path": "plugins/net.mlanoe.language.vhdl/src-gen/net/mlanoe/language/vhdl/statement/EntityInstantiationStatement.java",
"license": "gpl-3.0",
"size": 1744
} | [
"net.mlanoe.language.vhdl.EntityReference"
] | import net.mlanoe.language.vhdl.EntityReference; | import net.mlanoe.language.vhdl.*; | [
"net.mlanoe.language"
] | net.mlanoe.language; | 967,117 |
@Override
@SuppressFBWarnings("EI_EXPOSE_REP")
public CFTypeRef[] getArray() {
if (array == null) {
array = super.getArray();
}
return array;
} | @SuppressFBWarnings(STR) CFTypeRef[] function() { if (array == null) { array = super.getArray(); } return array; } | /**
* Returns a cached array of {@link CFTypeRef}s. This is a copy of the
* referenced memory and any changes will not be reflected in the referenced
* memory.
*
* @return An array containing the values of the referenced {@link CFTypeRef} array.
*/ | Returns a cached array of <code>CFTypeRef</code>s. This is a copy of the referenced memory and any changes will not be reflected in the referenced memory | getArray | {
"repo_name": "Sami32/DigitalMediaServer",
"path": "src/main/java/net/pms/util/jna/macos/corefoundation/CFTypeArrayRef.java",
"license": "gpl-2.0",
"size": 5237
} | [
"edu.umd.cs.findbugs.annotations.SuppressFBWarnings",
"net.pms.util.jna.macos.corefoundation.CoreFoundation"
] | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; import net.pms.util.jna.macos.corefoundation.CoreFoundation; | import edu.umd.cs.findbugs.annotations.*; import net.pms.util.jna.macos.corefoundation.*; | [
"edu.umd.cs",
"net.pms.util"
] | edu.umd.cs; net.pms.util; | 482,723 |
@Deprecated
public static MibObj unmarshal(final Reader reader) throws MarshalException, ValidationException {
return (MibObj)Unmarshaller.unmarshal(MibObj.class, reader);
} | static MibObj function(final Reader reader) throws MarshalException, ValidationException { return (MibObj)Unmarshaller.unmarshal(MibObj.class, reader); } | /**
* Method unmarshal.
*
* @param reader
* @throws MarshalException if object is
* null or if any SAXException is thrown during marshaling
* @throws ValidationException if this
* object is an invalid instance according to the schema
* @return the unmarshaled
* MibObj
... | Method unmarshal | unmarshal | {
"repo_name": "rfdrake/opennms",
"path": "opennms-config-model/src/main/java/org/opennms/netmgt/config/datacollection/MibObj.java",
"license": "gpl-2.0",
"size": 15311
} | [
"java.io.Reader",
"org.exolab.castor.xml.MarshalException",
"org.exolab.castor.xml.Unmarshaller",
"org.exolab.castor.xml.ValidationException"
] | import java.io.Reader; import org.exolab.castor.xml.MarshalException; import org.exolab.castor.xml.Unmarshaller; import org.exolab.castor.xml.ValidationException; | import java.io.*; import org.exolab.castor.xml.*; | [
"java.io",
"org.exolab.castor"
] | java.io; org.exolab.castor; | 2,603,568 |
public String shareToLAN(GameType type, boolean allowCheats)
{
return "";
} | String function(GameType type, boolean allowCheats) { return ""; } | /**
* On dedicated does nothing. On integrated, sets commandsAllowedForAll, gameType and allows external connections.
*/ | On dedicated does nothing. On integrated, sets commandsAllowedForAll, gameType and allows external connections | shareToLAN | {
"repo_name": "TheGreatAndPowerfulWeegee/wipunknown",
"path": "build/tmp/recompileMc/sources/net/minecraft/server/dedicated/DedicatedServer.java",
"license": "gpl-3.0",
"size": 26365
} | [
"net.minecraft.world.GameType"
] | import net.minecraft.world.GameType; | import net.minecraft.world.*; | [
"net.minecraft.world"
] | net.minecraft.world; | 2,466,155 |
Optional<String> getContentType(); | Optional<String> getContentType(); | /**
* Gets the content type (mime-type) of this object.
*/ | Gets the content type (mime-type) of this object | getContentType | {
"repo_name": "ElderByte-/josc",
"path": "josc-api/src/main/java/com/elderbyte/josc/api/BlobObject.java",
"license": "mit",
"size": 2141
} | [
"java.util.Optional"
] | import java.util.Optional; | import java.util.*; | [
"java.util"
] | java.util; | 1,286,155 |
public static DocumentSingleFieldConverter createBodyConverter()
{
return new DocumentSingleFieldConverter(
AbstractDocument.BODY_FIELD_NAME);
} | static DocumentSingleFieldConverter function() { return new DocumentSingleFieldConverter( AbstractDocument.BODY_FIELD_NAME); } | /**
* Creates a document text converter that extracts the body field.
*
* @return
* A new document text converter for the body field.
*/ | Creates a document text converter that extracts the body field | createBodyConverter | {
"repo_name": "codeaudit/Foundry",
"path": "Components/TextCore/Source/gov/sandia/cognition/text/convert/CommonDocumentTextualConverterFactory.java",
"license": "bsd-3-clause",
"size": 2247
} | [
"gov.sandia.cognition.text.document.AbstractDocument"
] | import gov.sandia.cognition.text.document.AbstractDocument; | import gov.sandia.cognition.text.document.*; | [
"gov.sandia.cognition"
] | gov.sandia.cognition; | 73,486 |
public void createComment(Comment comment);
| void function(Comment comment); | /**
* Crea una tupla nel database tramite un oggetto di tipo comment
*
* @param comment da memorizzare nel database.
*/ | Crea una tupla nel database tramite un oggetto di tipo comment | createComment | {
"repo_name": "grzegorzbrze/Conpartir0.2",
"path": "Conpartir-ejb/src/java/org/conpartir/sessionBean/CommentMagangerLocal.java",
"license": "gpl-3.0",
"size": 2524
} | [
"org.conpartir.entity.Comment"
] | import org.conpartir.entity.Comment; | import org.conpartir.entity.*; | [
"org.conpartir.entity"
] | org.conpartir.entity; | 1,233,175 |
@CalledByNative
private void addToNavigationHistory(Object history, int index, String url, String virtualUrl,
String originalUrl, String title, Bitmap favicon) {
NavigationEntry entry = new NavigationEntry(
index, url, virtualUrl, originalUrl, title, favicon);
((Navig... | void function(Object history, int index, String url, String virtualUrl, String originalUrl, String title, Bitmap favicon) { NavigationEntry entry = new NavigationEntry( index, url, virtualUrl, originalUrl, title, favicon); ((NavigationHistory) history).addEntry(entry); } | /**
* Callback factory method for nativeGetNavigationHistory().
*/ | Callback factory method for nativeGetNavigationHistory() | addToNavigationHistory | {
"repo_name": "openresearch/android-chromium-view",
"path": "content/src/org/chromium/content/browser/ContentViewCore.java",
"license": "mit",
"size": 125712
} | [
"android.graphics.Bitmap"
] | import android.graphics.Bitmap; | import android.graphics.*; | [
"android.graphics"
] | android.graphics; | 1,807,510 |
protected void generateRequest(String templateName, String namespace,
String eicontinue){
String uS = "";
try {
if (eicontinue == null) {
uS = "/api.php?action=query&list=embeddedin"
+ "&titles=" + URLEncoder.encode(templateName, MediaWikiBot.CHARSET)
+ ((namespace!=... | void function(String templateName, String namespace, String eicontinue){ String uS = STR/api.php?action=query&list=embeddedinSTR&titles=STR&einamespace=STRSTR&eilimit=STR&format=xmlSTR/api.php?action=query&list=embeddedinSTR&eicontinue=STR&eilimit=STR&format=xml"; } msgs.add(new GetMethod(uS)); } catch (UnsupportedEnco... | /**
* generates the next MediaWiki-request (GetMethod) and adds it to msgs.
*
* @param templateName the name of the template,
* may only be null if eicontinue is not null
* @param namespace the namespace(s) that will be searched for links,
* as a string ... | generates the next MediaWiki-request (GetMethod) and adds it to msgs | generateRequest | {
"repo_name": "kralisch/jams",
"path": "JAMSWikiDoc/JAMSWikiBot/src/net/sourceforge/jwbf/actions/http/mw/api/GetTemplateUserTitles.java",
"license": "lgpl-3.0",
"size": 5673
} | [
"java.io.UnsupportedEncodingException",
"org.apache.commons.httpclient.methods.GetMethod"
] | import java.io.UnsupportedEncodingException; import org.apache.commons.httpclient.methods.GetMethod; | import java.io.*; import org.apache.commons.httpclient.methods.*; | [
"java.io",
"org.apache.commons"
] | java.io; org.apache.commons; | 76,868 |
protected OutputStream getStdInAsOutputStream() {
return pythonProcess.getOutputStream();
}
| OutputStream function() { return pythonProcess.getOutputStream(); } | /**
* Gets the StdIn stream as OutputStream to which data can be written.
*
* @return StdIn as OutputStream
*/ | Gets the StdIn stream as OutputStream to which data can be written | getStdInAsOutputStream | {
"repo_name": "anu-doi/anudc",
"path": "DataCommons/src/main/java/au/edu/anu/datacommons/storage/completer/fido/PythonExecutor.java",
"license": "gpl-3.0",
"size": 6050
} | [
"java.io.OutputStream"
] | import java.io.OutputStream; | import java.io.*; | [
"java.io"
] | java.io; | 2,406,862 |
public static boolean isAccessControlEnabled() {
boolean accessControlEnabled = false;
APIManagerConfiguration config = ServiceReferenceHolder.getInstance().
getAPIManagerConfigurationService().getAPIManagerConfiguration();
if (config.getFirstProperty(
APICon... | static boolean function() { boolean accessControlEnabled = false; APIManagerConfiguration config = ServiceReferenceHolder.getInstance(). getAPIManagerConfigurationService().getAPIManagerConfiguration(); if (config.getFirstProperty( APIConstants.API_PUBLISHER_ENABLE_ACCESS_CONTROL_LEVELS) != null && config.getFirstPrope... | /**
* Returns whether API Publisher Access Control is enabled or not
*
* @return true if publisher access control enabled
*/ | Returns whether API Publisher Access Control is enabled or not | isAccessControlEnabled | {
"repo_name": "tharikaGitHub/carbon-apimgt",
"path": "components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/utils/APIUtil.java",
"license": "apache-2.0",
"size": 563590
} | [
"org.wso2.carbon.apimgt.impl.APIConstants",
"org.wso2.carbon.apimgt.impl.APIManagerConfiguration",
"org.wso2.carbon.apimgt.impl.internal.ServiceReferenceHolder"
] | import org.wso2.carbon.apimgt.impl.APIConstants; import org.wso2.carbon.apimgt.impl.APIManagerConfiguration; import org.wso2.carbon.apimgt.impl.internal.ServiceReferenceHolder; | import org.wso2.carbon.apimgt.impl.*; import org.wso2.carbon.apimgt.impl.internal.*; | [
"org.wso2.carbon"
] | org.wso2.carbon; | 1,323,743 |
protected void processOperation(java.util.List<ResponseTime> rts,
ServiceDefinition sdef, InterfaceDefinition idef, OperationDefinition opdef) {
if (opdef.getRequestResponse() != null) {
processMEP(rts, sdef, idef, opdef, opdef.getRequestResponse());
}
for (... | void function(java.util.List<ResponseTime> rts, ServiceDefinition sdef, InterfaceDefinition idef, OperationDefinition opdef) { if (opdef.getRequestResponse() != null) { processMEP(rts, sdef, idef, opdef, opdef.getRequestResponse()); } for (int i=0; i < opdef.getRequestFaults().size(); i++) { processMEP(rts, sdef, idef,... | /**
* This method processes the operation definition to extract the
* response time information.
*
* @param rts The response time list
* @param sdef The service definition
* @param idef The interface definition
* @param opdef The operation definition
*/ | This method processes the operation definition to extract the response time information | processOperation | {
"repo_name": "jorgemoralespou/rtgov",
"path": "content/epn-osgi/src/main/java/org/overlord/rtgov/content/epn/ServiceResponseTimeProcessor.java",
"license": "apache-2.0",
"size": 4508
} | [
"org.overlord.rtgov.analytics.service.InterfaceDefinition",
"org.overlord.rtgov.analytics.service.OperationDefinition",
"org.overlord.rtgov.analytics.service.ResponseTime",
"org.overlord.rtgov.analytics.service.ServiceDefinition"
] | import org.overlord.rtgov.analytics.service.InterfaceDefinition; import org.overlord.rtgov.analytics.service.OperationDefinition; import org.overlord.rtgov.analytics.service.ResponseTime; import org.overlord.rtgov.analytics.service.ServiceDefinition; | import org.overlord.rtgov.analytics.service.*; | [
"org.overlord.rtgov"
] | org.overlord.rtgov; | 2,109,691 |
@BeforeClass
public static void onceExecutedBeforeAll()
{
GeoSparkTestBase.initialize(JoinQueryCorrectnessChecker.class.getSimpleName());
// Define the user data saved in window objects and data objects
testPolygonWindowSet = new ArrayList<>();
testInsidePolygonSet = new Arr... | static void function() { GeoSparkTestBase.initialize(JoinQueryCorrectnessChecker.class.getSimpleName()); testPolygonWindowSet = new ArrayList<>(); testInsidePolygonSet = new ArrayList<>(); testOverlappedPolygonSet = new ArrayList<>(); testOutsidePolygonSet = new ArrayList<>(); testInsideLineStringSet = new ArrayList<>(... | /**
* Once executed before all.
*/ | Once executed before all | onceExecutedBeforeAll | {
"repo_name": "zongsizhang/GeoSpark",
"path": "core/src/test/java/org/datasyslab/geospark/spatialOperator/JoinQueryCorrectnessChecker.java",
"license": "mit",
"size": 20237
} | [
"java.util.ArrayList",
"org.datasyslab.geospark.GeoSparkTestBase"
] | import java.util.ArrayList; import org.datasyslab.geospark.GeoSparkTestBase; | import java.util.*; import org.datasyslab.geospark.*; | [
"java.util",
"org.datasyslab.geospark"
] | java.util; org.datasyslab.geospark; | 167,115 |
@Override
protected boolean doSetLastModifiedTime(final long modtime) throws FileSystemException
{
return file.setLastModified(modtime);
} | boolean function(final long modtime) throws FileSystemException { return file.setLastModified(modtime); } | /**
* Sets the last modified time of this file.
* @since 2.0
*/ | Sets the last modified time of this file | doSetLastModifiedTime | {
"repo_name": "kichenko/apache-vfs2-fix",
"path": "core/src/main/java/org/apache/commons/vfs2/provider/local/LocalFile.java",
"license": "apache-2.0",
"size": 8370
} | [
"org.apache.commons.vfs2.FileSystemException"
] | import org.apache.commons.vfs2.FileSystemException; | import org.apache.commons.vfs2.*; | [
"org.apache.commons"
] | org.apache.commons; | 875,413 |
EList<EObject> getGenericApplicationPropertyOfWaterObject(); | EList<EObject> getGenericApplicationPropertyOfWaterObject(); | /**
* Returns the value of the '<em><b>Generic Application Property Of Water Object</b></em>' containment reference list.
* The list contents are of type {@link org.eclipse.emf.ecore.EObject}.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Generic Application Property Of Water Object</em>' conta... | Returns the value of the 'Generic Application Property Of Water Object' containment reference list. The list contents are of type <code>org.eclipse.emf.ecore.EObject</code>. If the meaning of the 'Generic Application Property Of Water Object' containment reference list isn't clear, there really should be more of a desc... | getGenericApplicationPropertyOfWaterObject | {
"repo_name": "markus1978/citygml4emf",
"path": "de.hub.citygml.emf.ecore/src/net/opengis/citygml/waterbody/AbstractWaterObjectType.java",
"license": "apache-2.0",
"size": 3506
} | [
"org.eclipse.emf.common.util.EList",
"org.eclipse.emf.ecore.EObject"
] | import org.eclipse.emf.common.util.EList; import org.eclipse.emf.ecore.EObject; | import org.eclipse.emf.common.util.*; import org.eclipse.emf.ecore.*; | [
"org.eclipse.emf"
] | org.eclipse.emf; | 1,500,842 |
public static void translateButtonToolTipText(JButton button){
String title;
String name;
name = button.getName();
if(name != null){
title = SunsetBundle.getInstance().getProperty(name);
if(title != null){
button.setToolTipText(title);
}
}
}
| static void function(JButton button){ String title; String name; name = button.getName(); if(name != null){ title = SunsetBundle.getInstance().getProperty(name); if(title != null){ button.setToolTipText(title); } } } | /**
* Translates Tooltiptext of a Button
* @param button
*/ | Translates Tooltiptext of a Button | translateButtonToolTipText | {
"repo_name": "stefan-rass/sunset-ffapl",
"path": "src/sunset/gui/util/TranslateGUIElements.java",
"license": "gpl-3.0",
"size": 4642
} | [
"javax.swing.JButton"
] | import javax.swing.JButton; | import javax.swing.*; | [
"javax.swing"
] | javax.swing; | 361,877 |
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
panelLeft = new javax.swing.JPanel();
jScrollPane1 = new javax.swing.JScrollPane();
jTable1 = new javax.swing.JTable();
pa... | @SuppressWarnings(STR) void function() { panelLeft = new javax.swing.JPanel(); jScrollPane1 = new javax.swing.JScrollPane(); jTable1 = new javax.swing.JTable(); panelRight = new javax.swing.JPanel(); jSplitPane1 = new javax.swing.JSplitPane(); panelMsgOne = new javax.swing.JPanel(); jSplitPane2 = new javax.swing.JSplit... | /**
* This method is called from within the constructor to initialize the form.
* WARNING: Do NOT modify this code. The content of this method is always
* regenerated by the Form Editor.
*/ | This method is called from within the constructor to initialize the form. regenerated by the Form Editor | initComponents | {
"repo_name": "dobin/BurpSentinel",
"path": "src/replayer/gui/ReplayerMain/ReplayerMainUi.java",
"license": "gpl-3.0",
"size": 17703
} | [
"java.awt.BorderLayout",
"javax.swing.JTable"
] | import java.awt.BorderLayout; import javax.swing.JTable; | import java.awt.*; import javax.swing.*; | [
"java.awt",
"javax.swing"
] | java.awt; javax.swing; | 760,256 |
@SuppressWarnings("unchecked")
protected final <T extends Object> boolean off(
final String event,
final Consumer<T> consumer
) {
return this.application.radio().off(event, consumer);
} | @SuppressWarnings(STR) final <T extends Object> boolean function( final String event, final Consumer<T> consumer ) { return this.application.radio().off(event, consumer); } | /**
* Detach a {@link Consumer} from the specified event.
*
* @param <T> The type of data to utilize in {@link Consumer Consumers}.
* @param event The name of the event to detach the {@link Consumer} from.
* @param consumer The {@link Consumer} to detach from the specified event.
* @return ... | Detach a <code>Consumer</code> from the specified event | off | {
"repo_name": "kasperisager/swing-mvc",
"path": "src/app/framework/Controller.java",
"license": "mit",
"size": 6165
} | [
"java.util.function.Consumer"
] | import java.util.function.Consumer; | import java.util.function.*; | [
"java.util"
] | java.util; | 697,639 |
static String encode(CharSequence str)
{
if (str == null)
{
return null;
}
return Strings.replaceAll(str, "]", "]^").toString();
} | static String encode(CharSequence str) { if (str == null) { return null; } return Strings.replaceAll(str, "]", "]^").toString(); } | /**
* Encodes a string so it is safe to use inside CDATA blocks
*
* @param str
* the string to encode.
* @return encoded string
*/ | Encodes a string so it is safe to use inside CDATA blocks | encode | {
"repo_name": "zwsong/wicket",
"path": "wicket-core/src/main/java/org/apache/wicket/ajax/AbstractAjaxResponse.java",
"license": "apache-2.0",
"size": 19977
} | [
"org.apache.wicket.util.string.Strings"
] | import org.apache.wicket.util.string.Strings; | import org.apache.wicket.util.string.*; | [
"org.apache.wicket"
] | org.apache.wicket; | 1,509,882 |
@Override
public AssociationRoleBuilder setName(final GenericName name) {
super.setName(name);
return this;
} | AssociationRoleBuilder function(final GenericName name) { super.setName(name); return this; } | /**
* Sets the {@code FeatureAssociationRole} name as a generic name.
* If another name was defined before this method call, that previous value will be discarded.
*
* @return {@code this} for allowing method calls chaining.
*/ | Sets the FeatureAssociationRole name as a generic name. If another name was defined before this method call, that previous value will be discarded | setName | {
"repo_name": "apache/sis",
"path": "core/sis-feature/src/main/java/org/apache/sis/feature/builder/AssociationRoleBuilder.java",
"license": "apache-2.0",
"size": 10800
} | [
"org.opengis.util.GenericName"
] | import org.opengis.util.GenericName; | import org.opengis.util.*; | [
"org.opengis.util"
] | org.opengis.util; | 813,073 |
public void assertMediaType(String name, String main, String sub,
boolean concrete) {
MediaType type;
type = new MediaType(name);
assertEquals(main, type.getMainType());
assertEquals(sub, type.getSubType());
assertEquals(concrete, type.isConcrete());
} | void function(String name, String main, String sub, boolean concrete) { MediaType type; type = new MediaType(name); assertEquals(main, type.getMainType()); assertEquals(sub, type.getSubType()); assertEquals(concrete, type.isConcrete()); } | /**
* Makes sure that a {@link MediaType} instance initialized on the specified
* name has the expected values.
*
* @param name
* type to analyze.
* @param main
* expected main type.
* @param sub
* expected subtype.
* @param concrete
... | Makes sure that a <code>MediaType</code> instance initialized on the specified name has the expected values | assertMediaType | {
"repo_name": "alastrina123/debrief",
"path": "org.mwc.asset.comms/docs/restlet_src/org.restlet.test/org/restlet/test/data/MediaTypeTestCase.java",
"license": "epl-1.0",
"size": 11545
} | [
"org.restlet.data.MediaType"
] | import org.restlet.data.MediaType; | import org.restlet.data.*; | [
"org.restlet.data"
] | org.restlet.data; | 224,536 |
public void setFeedback(EvaluationDescriptorContainer feedback) {
this.feedback = feedback;
if (feedback != null) {
feedback.setFeedbacked(this);
}
} | void function(EvaluationDescriptorContainer feedback) { this.feedback = feedback; if (feedback != null) { feedback.setFeedbacked(this); } } | /**
* set the feedback description
*
* @param feedback s list of EvaluationDescriptor
*/ | set the feedback description | setFeedback | {
"repo_name": "Heigvd/Wegas",
"path": "wegas-core/src/main/java/com/wegas/reviewing/persistence/PeerReviewDescriptor.java",
"license": "mit",
"size": 11349
} | [
"com.wegas.reviewing.persistence.evaluation.EvaluationDescriptorContainer"
] | import com.wegas.reviewing.persistence.evaluation.EvaluationDescriptorContainer; | import com.wegas.reviewing.persistence.evaluation.*; | [
"com.wegas.reviewing"
] | com.wegas.reviewing; | 2,193,683 |
@Test
public void testScheduleAppointmentVisitorLimitExceeded() throws Exception {
// construct a schedule owner
MockCalendarAccount ownerAccount = new MockCalendarAccount();
ownerAccount.setUsername("user1");
ownerAccount.setEmailAddress("owner@domain.com");
ownerAccount.setDisplayName("OWNER OWNER");
... | void function() throws Exception { MockCalendarAccount ownerAccount = new MockCalendarAccount(); ownerAccount.setUsername("user1"); ownerAccount.setEmailAddress(STR); ownerAccount.setDisplayName(STR); DefaultScheduleOwnerImpl owner = new DefaultScheduleOwnerImpl(ownerAccount, 1); MockCalendarAccount visitorAccount = ne... | /**
* Expect a SchedulingException
* @throws Exception
*/ | Expect a SchedulingException | testScheduleAppointmentVisitorLimitExceeded | {
"repo_name": "Jasig/sched-assist",
"path": "sched-assist-spi/src/test/java/org/jasig/schedassist/impl/SchedulingAssistantServiceImplTest.java",
"license": "apache-2.0",
"size": 23358
} | [
"junit.framework.Assert",
"net.fortuna.ical4j.model.component.VEvent",
"org.easymock.EasyMock",
"org.jasig.schedassist.ICalendarDataDao",
"org.jasig.schedassist.NullAffiliationSourceImpl",
"org.jasig.schedassist.SchedulingException",
"org.jasig.schedassist.impl.owner.AvailableScheduleDao",
"org.jasig.... | import junit.framework.Assert; import net.fortuna.ical4j.model.component.VEvent; import org.easymock.EasyMock; import org.jasig.schedassist.ICalendarDataDao; import org.jasig.schedassist.NullAffiliationSourceImpl; import org.jasig.schedassist.SchedulingException; import org.jasig.schedassist.impl.owner.AvailableSchedul... | import junit.framework.*; import net.fortuna.ical4j.model.component.*; import org.easymock.*; import org.jasig.schedassist.*; import org.jasig.schedassist.impl.owner.*; import org.jasig.schedassist.impl.visitor.*; import org.jasig.schedassist.model.*; import org.jasig.schedassist.model.mock.*; | [
"junit.framework",
"net.fortuna.ical4j",
"org.easymock",
"org.jasig.schedassist"
] | junit.framework; net.fortuna.ical4j; org.easymock; org.jasig.schedassist; | 1,564,799 |
protected void sendDataToClients() {
NBTTagCompound nbt = new NBTTagCompound ();
this.writeToNBT(nbt);
AmunRa.packetPipeline.sendToDimension(new PacketSimpleAR(EnumSimplePacket.C_MOTHERSHIP_DATA, dimensionId, nbt), dimensionId);
} | void function() { NBTTagCompound nbt = new NBTTagCompound (); this.writeToNBT(nbt); AmunRa.packetPipeline.sendToDimension(new PacketSimpleAR(EnumSimplePacket.C_MOTHERSHIP_DATA, dimensionId, nbt), dimensionId); } | /**
* Sends my current data to all clients in my dimension, as-is
*/ | Sends my current data to all clients in my dimension, as-is | sendDataToClients | {
"repo_name": "katzenpapst/amunra",
"path": "src/main/java/de/katzenpapst/amunra/mothership/MothershipWorldProvider.java",
"license": "mit",
"size": 32068
} | [
"de.katzenpapst.amunra.AmunRa",
"de.katzenpapst.amunra.network.packet.PacketSimpleAR",
"net.minecraft.nbt.NBTTagCompound"
] | import de.katzenpapst.amunra.AmunRa; import de.katzenpapst.amunra.network.packet.PacketSimpleAR; import net.minecraft.nbt.NBTTagCompound; | import de.katzenpapst.amunra.*; import de.katzenpapst.amunra.network.packet.*; import net.minecraft.nbt.*; | [
"de.katzenpapst.amunra",
"net.minecraft.nbt"
] | de.katzenpapst.amunra; net.minecraft.nbt; | 950,690 |
@Override
public String toString() {
// Create a string formatter
StringWriter os = new StringWriter();
// Write out data properties
if (this.getComment() != null)
os.write("Comments = " + this.getComment());
os.write("PV Logger ID = ... | String function() { StringWriter os = new StringWriter(); if (this.getComment() != null) os.write(STR + this.getComment()); os.write(STR + Integer.toString(this.getPvLoggerId()) + "\n"); os.write(STR + this.getDeviceId() + "\n"); os.write(STR + this.getDeviceType()+ "\n"); os.write(STR); os.write(STR); for (Angle view ... | /**
* Write out the contents of this data structure to a string.
*
* @see java.lang.Object#toString()
*/ | Write out the contents of this data structure to a string | toString | {
"repo_name": "EuropeanSpallationSource/openxal",
"path": "extensions/wirescan/src/main/java/xal/extension/wirescan/profile/ProfileData.java",
"license": "bsd-3-clause",
"size": 32856
} | [
"java.io.StringWriter"
] | import java.io.StringWriter; | import java.io.*; | [
"java.io"
] | java.io; | 998,915 |
public void testEmbeddedImageInImageItem( ) throws Exception
{
openDesign( "LibraryStructureTest_3.xml" ); //$NON-NLS-1$
assertNotNull( designHandle );
libraryHandle = designHandle.getLibrary( "Lib1" ); //$NON-NLS-1$
assertNotNull( libraryHandle );
PropertyHandle images = libraryHandle
.getPropertyHa... | void function( ) throws Exception { openDesign( STR ); assertNotNull( designHandle ); libraryHandle = designHandle.getLibrary( "Lib1" ); assertNotNull( libraryHandle ); PropertyHandle images = libraryHandle .getPropertyHandle( Module.IMAGES_PROP ); ImageHandle imageHandle = (ImageHandle) designHandle .findElement( "ima... | /**
* Tests the getEmbeddedImage() in ImageHandle when extending or virtual
* extending.
*
* @throws Exception
*/ | Tests the getEmbeddedImage() in ImageHandle when extending or virtual extending | testEmbeddedImageInImageItem | {
"repo_name": "sguan-actuate/birt",
"path": "model/org.eclipse.birt.report.model.tests/test/org/eclipse/birt/report/model/library/LibraryStructureTest.java",
"license": "epl-1.0",
"size": 13259
} | [
"org.eclipse.birt.report.model.api.GridHandle",
"org.eclipse.birt.report.model.api.ImageHandle",
"org.eclipse.birt.report.model.api.PropertyHandle",
"org.eclipse.birt.report.model.core.Module",
"org.eclipse.birt.report.model.elements.interfaces.IImageItemModel"
] | import org.eclipse.birt.report.model.api.GridHandle; import org.eclipse.birt.report.model.api.ImageHandle; import org.eclipse.birt.report.model.api.PropertyHandle; import org.eclipse.birt.report.model.core.Module; import org.eclipse.birt.report.model.elements.interfaces.IImageItemModel; | import org.eclipse.birt.report.model.api.*; import org.eclipse.birt.report.model.core.*; import org.eclipse.birt.report.model.elements.interfaces.*; | [
"org.eclipse.birt"
] | org.eclipse.birt; | 1,415,714 |
Set<String> getOptions(); | Set<String> getOptions(); | /**
* Returns the set of options that are mutually synonymous.
* @return the options
*/ | Returns the set of options that are mutually synonymous | getOptions | {
"repo_name": "rokn/Count_Words_2015",
"path": "testing/spring-boot-master/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/options/OptionHelp.java",
"license": "mit",
"size": 1023
} | [
"java.util.Set"
] | import java.util.Set; | import java.util.*; | [
"java.util"
] | java.util; | 2,759,316 |
void setValue(String inColumnName, boolean inDescending, int inPosition) throws VInvalidSortCriteriaException, VInvalidValueException;
| void setValue(String inColumnName, boolean inDescending, int inPosition) throws VInvalidSortCriteriaException, VInvalidValueException; | /**
* This method sets a order item (i.e. column) with the specified name
* and sort order at the specified position.
*
* @param inColumnName java.lang.String
* @param inDescending boolean
* @param inPosition int
* @throws org.hip.kernel.util.VInvalidSortCriteriaException
* @throws org.hip.kerne... | This method sets a order item (i.e. column) with the specified name and sort order at the specified position | setValue | {
"repo_name": "aktion-hip/viffw",
"path": "org.hip.viffw/src/org/hip/kernel/bom/OrderObject.java",
"license": "lgpl-2.1",
"size": 2293
} | [
"org.hip.kernel.util.VInvalidSortCriteriaException",
"org.hip.kernel.util.VInvalidValueException"
] | import org.hip.kernel.util.VInvalidSortCriteriaException; import org.hip.kernel.util.VInvalidValueException; | import org.hip.kernel.util.*; | [
"org.hip.kernel"
] | org.hip.kernel; | 595,639 |
public static XmlSerializableTaskList loadDataFromSaveFile(File file) throws DataConversionException,
FileNotFoundException {
try {
return XmlUtil.getDataFromFile(file, XmlSerializableTaskList.class);
} catch (JA... | static XmlSerializableTaskList function(File file) throws DataConversionException, FileNotFoundException { try { return XmlUtil.getDataFromFile(file, XmlSerializableTaskList.class); } catch (JAXBException e) { throw new DataConversionException(e); } } | /**
* Returns task list in the file or an empty task list
*/ | Returns task list in the file or an empty task list | loadDataFromSaveFile | {
"repo_name": "CS2103AUG2016-F09-C1/main",
"path": "src/main/java/seedu/tasklist/storage/XmlFileStorage.java",
"license": "mit",
"size": 1191
} | [
"java.io.File",
"java.io.FileNotFoundException",
"javax.xml.bind.JAXBException"
] | import java.io.File; import java.io.FileNotFoundException; import javax.xml.bind.JAXBException; | import java.io.*; import javax.xml.bind.*; | [
"java.io",
"javax.xml"
] | java.io; javax.xml; | 1,027,079 |
try {
if (!SpellChecker.SPELLING_ERROR_MARKER_TYPE.equals(marker.getType())) {
return null;
}
} catch (CoreException e) {
return null;
}
String[] proposals = SpellChecker.getProposals(marker);
if (proposals == null || p... | try { if (!SpellChecker.SPELLING_ERROR_MARKER_TYPE.equals(marker.getType())) { return null; } } catch (CoreException e) { return null; } String[] proposals = SpellChecker.getProposals(marker); if (proposals == null proposals.length == 0) { return null; } IDocument doc = getProviderDocument(); IMarkerResolution[] res = ... | /**
* Generate resolutions for the given error marker.
* Marker type must be SpellChecker.SPELLING_ERROR_MARKER_TYPE.
*
* @param marker marker for the error
* @return an array of resolutions for the given marker
* or null if an error occurs or the marker is of wrong type
*/ | Generate resolutions for the given error marker. Marker type must be SpellChecker.SPELLING_ERROR_MARKER_TYPE | getResolutions | {
"repo_name": "rondiplomatico/texlipse",
"path": "source/net/sourceforge/texlipse/spelling/SpellingResolutionGenerator.java",
"license": "epl-1.0",
"size": 2754
} | [
"org.eclipse.core.runtime.CoreException",
"org.eclipse.jface.text.IDocument",
"org.eclipse.ui.IMarkerResolution"
] | import org.eclipse.core.runtime.CoreException; import org.eclipse.jface.text.IDocument; import org.eclipse.ui.IMarkerResolution; | import org.eclipse.core.runtime.*; import org.eclipse.jface.text.*; import org.eclipse.ui.*; | [
"org.eclipse.core",
"org.eclipse.jface",
"org.eclipse.ui"
] | org.eclipse.core; org.eclipse.jface; org.eclipse.ui; | 379,304 |
public ServiceFuture<DdosProtectionPlanInner> createOrUpdateAsync(String resourceGroupName, String ddosProtectionPlanName, DdosProtectionPlanInner parameters, final ServiceCallback<DdosProtectionPlanInner> serviceCallback) {
return ServiceFuture.fromResponse(createOrUpdateWithServiceResponseAsync(resourceGr... | ServiceFuture<DdosProtectionPlanInner> function(String resourceGroupName, String ddosProtectionPlanName, DdosProtectionPlanInner parameters, final ServiceCallback<DdosProtectionPlanInner> serviceCallback) { return ServiceFuture.fromResponse(createOrUpdateWithServiceResponseAsync(resourceGroupName, ddosProtectionPlanNam... | /**
* Creates or updates a DDoS protection plan.
*
* @param resourceGroupName The name of the resource group.
* @param ddosProtectionPlanName The name of the DDoS protection plan.
* @param parameters Parameters supplied to the create or update operation.
* @param serviceCallback the async ... | Creates or updates a DDoS protection plan | createOrUpdateAsync | {
"repo_name": "selvasingh/azure-sdk-for-java",
"path": "sdk/network/mgmt-v2018_04_01/src/main/java/com/microsoft/azure/management/network/v2018_04_01/implementation/DdosProtectionPlansInner.java",
"license": "mit",
"size": 55944
} | [
"com.microsoft.rest.ServiceCallback",
"com.microsoft.rest.ServiceFuture"
] | import com.microsoft.rest.ServiceCallback; import com.microsoft.rest.ServiceFuture; | import com.microsoft.rest.*; | [
"com.microsoft.rest"
] | com.microsoft.rest; | 609,891 |
public final String toString() {
StringBuffer sb = new StringBuffer();
sb.append(name);
sb.append(": static final long serialVersionUID = ");
sb.append(Long.toString(suid));
sb.append("L;");
return sb.toString();
}
private ObjectStreamClass(java.lang.Cl... | final String function() { StringBuffer sb = new StringBuffer(); sb.append(name); sb.append(STR); sb.append(Long.toString(suid)); sb.append("L;"); return sb.toString(); } private ObjectStreamClass(java.lang.Class cl, ObjectStreamClass superdesc, boolean serial, boolean extern) { ofClass = cl; if (Proxy.isProxyClass(cl))... | /**
* Return a string describing this ObjectStreamClass.
*/ | Return a string describing this ObjectStreamClass | toString | {
"repo_name": "rokn/Count_Words_2015",
"path": "testing/openjdk2/corba/src/share/classes/com/sun/corba/se/impl/io/ObjectStreamClass.java",
"license": "mit",
"size": 65819
} | [
"java.lang.reflect.Proxy"
] | import java.lang.reflect.Proxy; | import java.lang.reflect.*; | [
"java.lang"
] | java.lang; | 2,461,262 |
public static native @Nullable UpdateInfo nativeGetUpdateInfo(@Nullable String root); | static native @Nullable UpdateInfo function(@Nullable String root); | /**
* Returns info about updatable data under given {@code root} or null on error.
*/ | Returns info about updatable data under given root or null on error | nativeGetUpdateInfo | {
"repo_name": "goblinr/omim",
"path": "android/src/com/mapswithme/maps/downloader/MapManager.java",
"license": "apache-2.0",
"size": 16095
} | [
"android.support.annotation.Nullable"
] | import android.support.annotation.Nullable; | import android.support.annotation.*; | [
"android.support"
] | android.support; | 2,214,011 |
protected void setCalendarHour(Calendar cal, int hour) {
cal.set(java.util.Calendar.HOUR_OF_DAY, hour);
if (cal.get(java.util.Calendar.HOUR_OF_DAY) != hour && hour != 24) {
cal.set(java.util.Calendar.HOUR_OF_DAY, hour + 1);
}
} | void function(Calendar cal, int hour) { cal.set(java.util.Calendar.HOUR_OF_DAY, hour); if (cal.get(java.util.Calendar.HOUR_OF_DAY) != hour && hour != 24) { cal.set(java.util.Calendar.HOUR_OF_DAY, hour + 1); } } | /**
* Advance the calendar to the particular hour paying particular attention to daylight saving problems.
*/ | Advance the calendar to the particular hour paying particular attention to daylight saving problems | setCalendarHour | {
"repo_name": "scmod/nexus-public",
"path": "components/nexus-scheduler/src/main/java/org/sonatype/scheduling/iterators/cron/CronExpression.java",
"license": "epl-1.0",
"size": 50308
} | [
"java.util.Calendar"
] | import java.util.Calendar; | import java.util.*; | [
"java.util"
] | java.util; | 482,676 |
private Set<String> getPostScriptNames(String postScriptName)
{
Set<String> names = new HashSet<>();
// built-in PostScript name
names.add(postScriptName);
// remove hyphens (e.g. Arial-Black -> ArialBlack)
names.add(postScriptName.replace("-", ""));
return nam... | Set<String> function(String postScriptName) { Set<String> names = new HashSet<>(); names.add(postScriptName); names.add(postScriptName.replace("-", "")); return names; } | /**
* Gets alternative names, as seen in some PDFs, e.g. PDFBOX-142.
*/ | Gets alternative names, as seen in some PDFs, e.g. PDFBOX-142 | getPostScriptNames | {
"repo_name": "torakiki/sambox",
"path": "src/main/java/org/sejda/sambox/pdmodel/font/FontMapperImpl.java",
"license": "apache-2.0",
"size": 24843
} | [
"java.util.HashSet",
"java.util.Set"
] | import java.util.HashSet; import java.util.Set; | import java.util.*; | [
"java.util"
] | java.util; | 1,572,089 |
EReference getWMLMacroDefine_Expressions(); | EReference getWMLMacroDefine_Expressions(); | /**
* Returns the meta object for the containment reference list '{@link org.wesnoth.wml.WMLMacroDefine#getExpressions <em>Expressions</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference list '<em>Expressions</em>'.
* @see org.wesnoth.wml.WMLM... | Returns the meta object for the containment reference list '<code>org.wesnoth.wml.WMLMacroDefine#getExpressions Expressions</code>'. | getWMLMacroDefine_Expressions | {
"repo_name": "jstitch/wesnoth",
"path": "utils/umc_dev/org.wesnoth/src-gen/org/wesnoth/wml/WmlPackage.java",
"license": "gpl-2.0",
"size": 61552
} | [
"org.eclipse.emf.ecore.EReference"
] | import org.eclipse.emf.ecore.EReference; | import org.eclipse.emf.ecore.*; | [
"org.eclipse.emf"
] | org.eclipse.emf; | 541,337 |
@Nonnull
public java.util.concurrent.CompletableFuture<FieldValueSet> postAsync(@Nonnull final FieldValueSet newFieldValueSet) {
return sendAsync(HttpMethod.POST, newFieldValueSet);
} | java.util.concurrent.CompletableFuture<FieldValueSet> function(@Nonnull final FieldValueSet newFieldValueSet) { return sendAsync(HttpMethod.POST, newFieldValueSet); } | /**
* Creates a FieldValueSet with a new object
*
* @param newFieldValueSet the new object to create
* @return a future with the result
*/ | Creates a FieldValueSet with a new object | postAsync | {
"repo_name": "microsoftgraph/msgraph-sdk-java",
"path": "src/main/java/com/microsoft/graph/requests/FieldValueSetRequest.java",
"license": "mit",
"size": 5828
} | [
"com.microsoft.graph.http.HttpMethod",
"com.microsoft.graph.models.FieldValueSet",
"javax.annotation.Nonnull"
] | import com.microsoft.graph.http.HttpMethod; import com.microsoft.graph.models.FieldValueSet; import javax.annotation.Nonnull; | import com.microsoft.graph.http.*; import com.microsoft.graph.models.*; import javax.annotation.*; | [
"com.microsoft.graph",
"javax.annotation"
] | com.microsoft.graph; javax.annotation; | 1,980,330 |
protected void processICCBasedColorSpace(PDColorSpace colorSpace)
{
PDICCBased iccBased = (PDICCBased) colorSpace;
try
{
ICC_Profile iccp;
try (InputStream is = iccBased.getPDStream().createInputStream())
{
// check that ICC profile loa... | void function(PDColorSpace colorSpace) { PDICCBased iccBased = (PDICCBased) colorSpace; try { ICC_Profile iccp; try (InputStream is = iccBased.getPDStream().createInputStream()) { iccp = ICC_Profile.getInstance(is); } PDColorSpace altpdcs = iccBased.getAlternateColorSpace(); if (altpdcs != null) { ColorSpaces altCsId =... | /**
* Method called by the processAllColorSpace if the ColorSpace to check is a ICCBased color space. Because this kind
* of ColorSpace can have alternate color space, the processAllColorSpace is called to check this alternate color
* space. (Pattern is forbidden as Alternate Color Space)
*
* ... | Method called by the processAllColorSpace if the ColorSpace to check is a ICCBased color space. Because this kind of ColorSpace can have alternate color space, the processAllColorSpace is called to check this alternate color space. (Pattern is forbidden as Alternate Color Space) | processICCBasedColorSpace | {
"repo_name": "kalaspuffar/pdfbox",
"path": "preflight/src/main/java/org/apache/pdfbox/preflight/graphic/StandardColorSpaceHelper.java",
"license": "apache-2.0",
"size": 22979
} | [
"java.io.IOException",
"java.io.InputStream",
"org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace",
"org.apache.pdfbox.pdmodel.graphics.color.PDICCBased",
"org.apache.pdfbox.preflight.ValidationResult"
] | import java.io.IOException; import java.io.InputStream; import org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace; import org.apache.pdfbox.pdmodel.graphics.color.PDICCBased; import org.apache.pdfbox.preflight.ValidationResult; | import java.io.*; import org.apache.pdfbox.pdmodel.graphics.color.*; import org.apache.pdfbox.preflight.*; | [
"java.io",
"org.apache.pdfbox"
] | java.io; org.apache.pdfbox; | 148,878 |
public static void main(String[] args) {
EventQueue.invokeLater(new Server());
} | static void function(String[] args) { EventQueue.invokeLater(new Server()); } | /**
* Invoca o mundo magico do java
*
* @param args
*/ | Invoca o mundo magico do java | main | {
"repo_name": "arthurgregorio/exemplos",
"path": "JChat/src/jchat/Server.java",
"license": "apache-2.0",
"size": 1272
} | [
"java.awt.EventQueue"
] | import java.awt.EventQueue; | import java.awt.*; | [
"java.awt"
] | java.awt; | 2,208,026 |
private String getNextLine() throws IOException {
if (isClosed()) {
hasNext = false;
return null;
}
if (!this.linesSkiped) {
for (int i = 0; i < skipLines; i++) {
lineReader.readLine();
}
this.linesSkiped = true;
... | String function() throws IOException { if (isClosed()) { hasNext = false; return null; } if (!this.linesSkiped) { for (int i = 0; i < skipLines; i++) { lineReader.readLine(); } this.linesSkiped = true; } String nextLine = lineReader.readLine(); if (nextLine == null) { hasNext = false; } return hasNext ? nextLine : null... | /**
* Reads the next line from the file.
*
* @return the next line from the file without trailing newline
* @throws IOException if bad things happen during the read
*/ | Reads the next line from the file | getNextLine | {
"repo_name": "dbeaver/dbeaver",
"path": "bundles/org.jkiss.utils/src/org/jkiss/utils/csv/CSVReader.java",
"license": "apache-2.0",
"size": 14394
} | [
"java.io.IOException"
] | import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 2,332,357 |
public void logMkDir(String path, INode newNode) {
PermissionStatus permissions = newNode.getPermissionStatus();
MkdirOp op = MkdirOp.getInstance(cache.get())
.setInodeId(newNode.getId())
.setPath(path)
.setTimestamp(newNode.getModificationTime())
.setPermissionStatus(permissions);
... | void function(String path, INode newNode) { PermissionStatus permissions = newNode.getPermissionStatus(); MkdirOp op = MkdirOp.getInstance(cache.get()) .setInodeId(newNode.getId()) .setPath(path) .setTimestamp(newNode.getModificationTime()) .setPermissionStatus(permissions); AclFeature f = newNode.getAclFeature(); if (... | /**
* Add create directory record to edit log
*/ | Add create directory record to edit log | logMkDir | {
"repo_name": "jiayuhan-it/yarn-jyhtest",
"path": "hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSEditLog.java",
"license": "apache-2.0",
"size": 54047
} | [
"org.apache.hadoop.fs.permission.PermissionStatus",
"org.apache.hadoop.hdfs.server.namenode.FSEditLogOp"
] | import org.apache.hadoop.fs.permission.PermissionStatus; import org.apache.hadoop.hdfs.server.namenode.FSEditLogOp; | import org.apache.hadoop.fs.permission.*; import org.apache.hadoop.hdfs.server.namenode.*; | [
"org.apache.hadoop"
] | org.apache.hadoop; | 1,811,567 |
JavaPairRDD<Tuple2<Integer,Integer>,Double> testUserProductValues = | JavaPairRDD<Tuple2<Integer,Integer>,Double> testUserProductValues = | /**
* Computes root mean squared error of {@link Rating#rating()} versus predicted value.
*/ | Computes root mean squared error of <code>Rating#rating()</code> versus predicted value | rmse | {
"repo_name": "nvoron23/oryx",
"path": "oryx-app-mllib/src/main/java/com/cloudera/oryx/app/mllib/als/Evaluation.java",
"license": "apache-2.0",
"size": 6882
} | [
"org.apache.spark.api.java.JavaPairRDD"
] | import org.apache.spark.api.java.JavaPairRDD; | import org.apache.spark.api.java.*; | [
"org.apache.spark"
] | org.apache.spark; | 2,820,583 |
private int getQueueID(final String destinationQueueName) throws SQLException {
int queueID = -1;
Connection connection = null;
PreparedStatement preparedStatement = null;
ResultSet resultSet = null;
Context contextRead = MetricManager.timer(Level.INFO, MetricsConstants.DB_R... | int function(final String destinationQueueName) throws SQLException { int queueID = -1; Connection connection = null; PreparedStatement preparedStatement = null; ResultSet resultSet = null; Context contextRead = MetricManager.timer(Level.INFO, MetricsConstants.DB_READ).start(); try { connection = getConnection(); prepa... | /**
* Retrieved the queue ID from DB. If the ID is not present create a new queue and get the id.
*
* @param destinationQueueName queue name
* @return queue id
* @throws SQLException
*/ | Retrieved the queue ID from DB. If the ID is not present create a new queue and get the id | getQueueID | {
"repo_name": "prabathariyaratna/andes",
"path": "modules/andes-core/broker/src/main/java/org/wso2/andes/store/rdbms/RDBMSMessageStoreImpl.java",
"license": "apache-2.0",
"size": 97650
} | [
"java.sql.Connection",
"java.sql.PreparedStatement",
"java.sql.ResultSet",
"java.sql.SQLException",
"org.wso2.andes.metrics.MetricsConstants",
"org.wso2.carbon.metrics.manager.Level",
"org.wso2.carbon.metrics.manager.MetricManager",
"org.wso2.carbon.metrics.manager.Timer"
] | import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import org.wso2.andes.metrics.MetricsConstants; import org.wso2.carbon.metrics.manager.Level; import org.wso2.carbon.metrics.manager.MetricManager; import org.wso2.carbon.metrics.manager.Timer; | import java.sql.*; import org.wso2.andes.metrics.*; import org.wso2.carbon.metrics.manager.*; | [
"java.sql",
"org.wso2.andes",
"org.wso2.carbon"
] | java.sql; org.wso2.andes; org.wso2.carbon; | 2,885,867 |
@Select("SELECT * FROM " + Tables.CAMERAS
+ " WHERE " + CamerasColumns.CAMERA_ID
+ " = {cameraId}")
void getCamera(String cameraId, ListCallback<GenericRow> callback);
| @Select(STR + Tables.CAMERAS + STR + CamerasColumns.CAMERA_ID + STR) void getCamera(String cameraId, ListCallback<GenericRow> callback); | /**
* Retrieve individual camera.
*
* @param routeId
* @param callback
*/ | Retrieve individual camera | getCamera | {
"repo_name": "chrxn/wsdot-mobile-app",
"path": "src/main/java/gov/wa/wsdot/mobile/client/service/WSDOTDataService.java",
"license": "gpl-3.0",
"size": 26789
} | [
"com.google.code.gwt.database.client.GenericRow",
"com.google.code.gwt.database.client.service.ListCallback",
"com.google.code.gwt.database.client.service.Select",
"gov.wa.wsdot.mobile.client.service.WSDOTContract"
] | import com.google.code.gwt.database.client.GenericRow; import com.google.code.gwt.database.client.service.ListCallback; import com.google.code.gwt.database.client.service.Select; import gov.wa.wsdot.mobile.client.service.WSDOTContract; | import com.google.code.gwt.database.client.*; import com.google.code.gwt.database.client.service.*; import gov.wa.wsdot.mobile.client.service.*; | [
"com.google.code",
"gov.wa.wsdot"
] | com.google.code; gov.wa.wsdot; | 993,972 |
public int quantityDropped(Random par1Random)
{
return 1;
} | int function(Random par1Random) { return 1; } | /**
* Returns the quantity of items to drop on block destruction.
*/ | Returns the quantity of items to drop on block destruction | quantityDropped | {
"repo_name": "Neil5043/Minetweak",
"path": "src/main/java/net/minecraft/src/Block.java",
"license": "lgpl-3.0",
"size": 67040
} | [
"java.util.Random"
] | import java.util.Random; | import java.util.*; | [
"java.util"
] | java.util; | 1,357,192 |
protected void callImpliesNPE(ProtectionDomain pd, Permission pm,
String msg) throws TestException {
try {
policy.implies(pd, pm);
throw new TestException(Util.fail(msg, NOException, NPE));
} catch (NullPointerException npe) {
logger.log(Level.FINE, Ut... | void function(ProtectionDomain pd, Permission pm, String msg) throws TestException { try { policy.implies(pd, pm); throw new TestException(Util.fail(msg, NOException, NPE)); } catch (NullPointerException npe) { logger.log(Level.FINE, Util.pass(msg, npe)); } catch (TestException qae) { throw qae; } catch (Exception e) {... | /**
* Call implies() on PolicyFileProvider and verify that
* NullPointerException is thrown.
*
* @param pd the ProtectionDomain or null.
* @param pm permission or null.
* @param msg string to format log message.
*
* @throws TestException if failed
*
*/ | Call implies() on PolicyFileProvider and verify that NullPointerException is thrown | callImpliesNPE | {
"repo_name": "cdegroot/river",
"path": "qa/src/com/sun/jini/test/spec/policyprovider/policyFileProvider/PolicyFileProviderTestBase.java",
"license": "apache-2.0",
"size": 28508
} | [
"com.sun.jini.qa.harness.TestException",
"com.sun.jini.test.spec.policyprovider.util.Util",
"java.security.Permission",
"java.security.ProtectionDomain",
"java.util.logging.Level"
] | import com.sun.jini.qa.harness.TestException; import com.sun.jini.test.spec.policyprovider.util.Util; import java.security.Permission; import java.security.ProtectionDomain; import java.util.logging.Level; | import com.sun.jini.qa.harness.*; import com.sun.jini.test.spec.policyprovider.util.*; import java.security.*; import java.util.logging.*; | [
"com.sun.jini",
"java.security",
"java.util"
] | com.sun.jini; java.security; java.util; | 29,596 |
private void adjustLabels() {
// Filter name
((TextView)findViewById(R.id.report_filter_name)).setText(reportData.getFilterName());
// Period
((TextView)findViewById(R.id.report_period)).setText(reportData.getPeriodLengthString(this));
}
| void function() { ((TextView)findViewById(R.id.report_filter_name)).setText(reportData.getFilterName()); ((TextView)findViewById(R.id.report_period)).setText(reportData.getPeriodLengthString(this)); } | /**
* Adjust labels after changing report parameters
*/ | Adjust labels after changing report parameters | adjustLabels | {
"repo_name": "bigbadhacker/financisto",
"path": "Financisto/src/main/java/ru/orangesoftware/financisto2/activity/Report2DChartActivity.java",
"license": "gpl-2.0",
"size": 17031
} | [
"android.widget.TextView"
] | import android.widget.TextView; | import android.widget.*; | [
"android.widget"
] | android.widget; | 861,515 |
public void setSize(Dimension d) {
if(d.width < getParent().getSize().width) {
d.width = getParent().getSize().width;
}
super.setSize(d);
}
private class StyleUpdater implements Runnable {
private StyledDocument doc;
private int offset;
private int len;
private SyntaxPane syntaxPane;
pu... | void function(Dimension d) { if(d.width < getParent().getSize().width) { d.width = getParent().getSize().width; } super.setSize(d); } private class StyleUpdater implements Runnable { private StyledDocument doc; private int offset; private int len; private SyntaxPane syntaxPane; public StyleUpdater(SyntaxPane panel, Sty... | /**
* overridden from JEditorPane
* to suppress line wraps
*
* @see getScrollableTracksViewportWidth
*/ | overridden from JEditorPane to suppress line wraps | setSize | {
"repo_name": "ari/kafenio",
"path": "src/de/xeinfach/kafenio/component/SyntaxPane.java",
"license": "lgpl-2.1",
"size": 8824
} | [
"java.awt.Dimension",
"javax.swing.text.StyledDocument"
] | import java.awt.Dimension; import javax.swing.text.StyledDocument; | import java.awt.*; import javax.swing.text.*; | [
"java.awt",
"javax.swing"
] | java.awt; javax.swing; | 2,684,067 |
@Override
public Adapter createResourceCreationTaskAdapter()
{
if (resourceCreationTaskItemProvider == null)
{
resourceCreationTaskItemProvider = new ResourceCreationTaskItemProvider(this);
}
return resourceCreationTaskItemProvider;
}
protected ResourceExtractTaskItemProvider resour... | Adapter function() { if (resourceCreationTaskItemProvider == null) { resourceCreationTaskItemProvider = new ResourceCreationTaskItemProvider(this); } return resourceCreationTaskItemProvider; } protected ResourceExtractTaskItemProvider resourceExtractTaskItemProvider; | /**
* This creates an adapter for a {@link org.eclipse.oomph.setup.ResourceCreationTask}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/ | This creates an adapter for a <code>org.eclipse.oomph.setup.ResourceCreationTask</code>. | createResourceCreationTaskAdapter | {
"repo_name": "peterkir/org.eclipse.oomph",
"path": "plugins/org.eclipse.oomph.setup.edit/src/org/eclipse/oomph/setup/provider/SetupItemProviderAdapterFactory.java",
"license": "epl-1.0",
"size": 39182
} | [
"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; | 266,084 |
private void showOrHideEmptyMessage(List<Medicament> medicamentList, boolean isEmptyUserList) {
if (isEmptyUserList) {
if (medicamentList != null && getActivity() != null) {
TextView emptyText = (TextView) getView().findViewById(R.id.empty_medicament_list);
if (em... | void function(List<Medicament> medicamentList, boolean isEmptyUserList) { if (isEmptyUserList) { if (medicamentList != null && getActivity() != null) { TextView emptyText = (TextView) getView().findViewById(R.id.empty_medicament_list); if (emptyText != null) emptyText.setVisibility(View.VISIBLE); } } else { if (medicam... | /**
* Shows a message if no medicament in database
*
* @param medicamentList the medicament list to show if not empty
* @param isEmptyUserList true if list is empty or null otherwise false
*/ | Shows a message if no medicament in database | showOrHideEmptyMessage | {
"repo_name": "lidox/reaction-test",
"path": "ReactionTest/app/src/main/java/com/artursworld/reactiontest/view/user/MedicamentListFragment.java",
"license": "mit",
"size": 7795
} | [
"android.view.View",
"android.widget.TextView",
"com.artursworld.reactiontest.model.entity.Medicament",
"java.util.List"
] | import android.view.View; import android.widget.TextView; import com.artursworld.reactiontest.model.entity.Medicament; import java.util.List; | import android.view.*; import android.widget.*; import com.artursworld.reactiontest.model.entity.*; import java.util.*; | [
"android.view",
"android.widget",
"com.artursworld.reactiontest",
"java.util"
] | android.view; android.widget; com.artursworld.reactiontest; java.util; | 308,696 |
@Test
public void testGetPercentComplete() {
TaskSeriesCollection c = createCollection2();
assertEquals(new Double(0.10), c.getPercentComplete("S1", "Task 1"));
assertEquals(new Double(0.20), c.getPercentComplete("S1", "Task 2"));
assertEquals(new Double(0.30), c.getPercentComple... | void function() { TaskSeriesCollection c = createCollection2(); assertEquals(new Double(0.10), c.getPercentComplete("S1", STR)); assertEquals(new Double(0.20), c.getPercentComplete("S1", STR)); assertEquals(new Double(0.30), c.getPercentComplete("S2", STR)); assertEquals(new Double(0.10), c.getPercentComplete(0, 0)); a... | /**
* Some tests for the getPercentComplete() method.
*/ | Some tests for the getPercentComplete() method | testGetPercentComplete | {
"repo_name": "simon04/jfreechart",
"path": "src/test/java/org/jfree/data/gantt/TaskSeriesCollectionTest.java",
"license": "lgpl-2.1",
"size": 23212
} | [
"org.junit.Assert"
] | import org.junit.Assert; | import org.junit.*; | [
"org.junit"
] | org.junit; | 1,099,330 |
byte[] execProcedureWithReturn(String signature, String instance, Map<String, String> props)
throws IOException; | byte[] execProcedureWithReturn(String signature, String instance, Map<String, String> props) throws IOException; | /**
* Execute a distributed procedure on a cluster.
*
* @param signature A distributed procedure is uniquely identified by its signature (default the
* root ZK node name of the procedure).
* @param instance The instance name of the procedure. For some procedures, this parameter is
* optional.
* @pa... | Execute a distributed procedure on a cluster | execProcedureWithReturn | {
"repo_name": "vincentpoon/hbase",
"path": "hbase-client/src/main/java/org/apache/hadoop/hbase/client/Admin.java",
"license": "apache-2.0",
"size": 104154
} | [
"java.io.IOException",
"java.util.Map"
] | import java.io.IOException; import java.util.Map; | import java.io.*; import java.util.*; | [
"java.io",
"java.util"
] | java.io; java.util; | 2,668,814 |
public boolean hasStatements(RepositoryConnection conn, Resource subj, URI pred, Value obj, Resource...contexts) throws RepositoryException;
| boolean function(RepositoryConnection conn, Resource subj, URI pred, Value obj, Resource...contexts) throws RepositoryException; | /**
* Check if the repository can return results for the given triple pattern represented
* by subj, pred and obj
*
* @param conn
* @param subj
* @param pred
* @param obj
* @param contexts
* @return
* @throws RepositoryException
*/ | Check if the repository can return results for the given triple pattern represented by subj, pred and obj | hasStatements | {
"repo_name": "semagrow/fork-fedX",
"path": "src/com/fluidops/fedx/evaluation/TripleSource.java",
"license": "agpl-3.0",
"size": 7086
} | [
"org.openrdf.model.Resource",
"org.openrdf.model.Value",
"org.openrdf.repository.RepositoryConnection",
"org.openrdf.repository.RepositoryException"
] | import org.openrdf.model.Resource; import org.openrdf.model.Value; import org.openrdf.repository.RepositoryConnection; import org.openrdf.repository.RepositoryException; | import org.openrdf.model.*; import org.openrdf.repository.*; | [
"org.openrdf.model",
"org.openrdf.repository"
] | org.openrdf.model; org.openrdf.repository; | 2,534,147 |
public void setResolver( Resolver resolver )
{
synchronized (resolverLock) {
this.resolver = resolver ;
}
} | void function( Resolver resolver ) { synchronized (resolverLock) { this.resolver = resolver ; } } | /** Set the resolver used in this ORB. This resolver will be used for list_initial_services
* and resolve_initial_references.
*/ | Set the resolver used in this ORB. This resolver will be used for list_initial_services and resolve_initial_references | setResolver | {
"repo_name": "rokn/Count_Words_2015",
"path": "testing/openjdk/corba/src/share/classes/com/sun/corba/se/impl/orb/ORBImpl.java",
"license": "mit",
"size": 65792
} | [
"com.sun.corba.se.spi.resolver.Resolver"
] | import com.sun.corba.se.spi.resolver.Resolver; | import com.sun.corba.se.spi.resolver.*; | [
"com.sun.corba"
] | com.sun.corba; | 1,064,995 |
@Override
public Text getKind() {
return kind;
} | Text function() { return kind; } | /**
* Return the delegation token kind
* @return returns the delegation token kind
*/ | Return the delegation token kind | getKind | {
"repo_name": "ZhangXFeng/hadoop",
"path": "src/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/delegation/web/DelegationTokenIdentifier.java",
"license": "apache-2.0",
"size": 2117
} | [
"org.apache.hadoop.io.Text"
] | import org.apache.hadoop.io.Text; | import org.apache.hadoop.io.*; | [
"org.apache.hadoop"
] | org.apache.hadoop; | 1,824,415 |
public byte[] getTBSRequest()
throws OCSPException
{
try
{
return req.getTbsRequest().getEncoded();
}
catch (IOException e)
{
throw new OCSPException("problem encoding tbsRequest", e);
}
} | byte[] function() throws OCSPException { try { return req.getTbsRequest().getEncoded(); } catch (IOException e) { throw new OCSPException(STR, e); } } | /**
* Return the DER encoding of the tbsRequest field.
* @return DER encoding of tbsRequest
* @throws OCSPException in the event of an encoding error.
*/ | Return the DER encoding of the tbsRequest field | getTBSRequest | {
"repo_name": "bullda/DroidText",
"path": "src/bouncycastle/repack/org/bouncycastle/ocsp/OCSPReq.java",
"license": "lgpl-3.0",
"size": 11720
} | [
"java.io.IOException"
] | import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 1,402,514 |
public static void addDepiction(Model model,
org.ontoware.rdf2go.model.node.Resource instanceResource,
Image value) {
Base.add(model, instanceResource, DEPICTION, value);
} | static void function(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, Image value) { Base.add(model, instanceResource, DEPICTION, value); } | /**
* Adds a value to property Depiction from an instance of Image
*
* @param model an RDF2Go model
* @param resource an RDF2Go resource [Generated from RDFReactor template
* rule #add3static]
*/ | Adds a value to property Depiction from an instance of Image | addDepiction | {
"repo_name": "m0ep/master-thesis",
"path": "source/apis/rdf2go/rdf2go-foaf/src/main/java/com/xmlns/foaf/Thing.java",
"license": "mit",
"size": 274766
} | [
"org.ontoware.rdf2go.model.Model",
"org.ontoware.rdfreactor.runtime.Base"
] | import org.ontoware.rdf2go.model.Model; import org.ontoware.rdfreactor.runtime.Base; | import org.ontoware.rdf2go.model.*; import org.ontoware.rdfreactor.runtime.*; | [
"org.ontoware.rdf2go",
"org.ontoware.rdfreactor"
] | org.ontoware.rdf2go; org.ontoware.rdfreactor; | 2,809,826 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.