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
Observable<ServiceResponse<Map<String, LocalDate>>> getDateInvalidNullWithServiceResponseAsync();
Observable<ServiceResponse<Map<String, LocalDate>>> getDateInvalidNullWithServiceResponseAsync();
/** * Get date dictionary value {"0": "2012-01-01", "1": null, "2": "1776-07-04"}. * * @return the observable to the Map&lt;String, LocalDate&gt; object */
Get date dictionary value {"0": "2012-01-01", "1": null, "2": "1776-07-04"}
getDateInvalidNullWithServiceResponseAsync
{ "repo_name": "anudeepsharma/autorest", "path": "src/generator/AutoRest.Java.Tests/src/main/java/fixtures/bodydictionary/Dictionarys.java", "license": "mit", "size": 79030 }
[ "com.microsoft.rest.ServiceResponse", "java.util.Map", "org.joda.time.LocalDate" ]
import com.microsoft.rest.ServiceResponse; import java.util.Map; import org.joda.time.LocalDate;
import com.microsoft.rest.*; import java.util.*; import org.joda.time.*;
[ "com.microsoft.rest", "java.util", "org.joda.time" ]
com.microsoft.rest; java.util; org.joda.time;
788,806
public String zipDirectory(String path, boolean publishedFS) { List<AttachmentState> attachmentStates = getAllowedStates(path, publishedFS); String zipName = Paths.get(path).getFileName().toString() + ".zip"; FileOutputStream fos = null; try { byte[] buffer = new byte[1024]; fos = tempF...
String function(String path, boolean publishedFS) { List<AttachmentState> attachmentStates = getAllowedStates(path, publishedFS); String zipName = Paths.get(path).getFileName().toString() + ".zip"; FileOutputStream fos = null; try { byte[] buffer = new byte[1024]; fos = tempFileService.getFileOutputStreamFromFile(zipNa...
/** * Creates a zipped file of the path and it's subdirectories/files * * @param path * @param publishedFS * @return */
Creates a zipped file of the path and it's subdirectories/files
zipDirectory
{ "repo_name": "obiba/mica2", "path": "mica-core/src/main/java/org/obiba/mica/file/service/FileSystemService.java", "license": "gpl-3.0", "size": 34162 }
[ "com.google.common.base.Throwables", "java.io.File", "java.io.FileOutputStream", "java.io.IOException", "java.io.InputStream", "java.nio.file.Paths", "java.util.List", "java.util.zip.ZipEntry", "java.util.zip.ZipOutputStream", "org.apache.commons.io.IOUtils", "org.obiba.mica.file.AttachmentState...
import com.google.common.base.Throwables; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.nio.file.Paths; import java.util.List; import java.util.zip.ZipEntry; import java.util.zip.ZipOutputStream; import org.apache.commons.io.IOUtils; import org...
import com.google.common.base.*; import java.io.*; import java.nio.file.*; import java.util.*; import java.util.zip.*; import org.apache.commons.io.*; import org.obiba.mica.file.*;
[ "com.google.common", "java.io", "java.nio", "java.util", "org.apache.commons", "org.obiba.mica" ]
com.google.common; java.io; java.nio; java.util; org.apache.commons; org.obiba.mica;
1,843,356
public void fixupVariables(java.util.Vector vars, int globalsSize) { m_fixUpWasCalled = true; int sz = vars.size(); for (int i = vars.size()-1; i >= 0; i--) { QName qn = (QName)vars.elementAt(i); // System.out.println("qn: "+qn); if(qn.equals(m_qname)) { if(i < glob...
void function(java.util.Vector vars, int globalsSize) { m_fixUpWasCalled = true; int sz = vars.size(); for (int i = vars.size()-1; i >= 0; i--) { QName qn = (QName)vars.elementAt(i); if(qn.equals(m_qname)) { if(i < globalsSize) { m_isGlobal = true; m_index = i; } else { m_index = i-globalsSize; } return; } } java.lang....
/** * This function is used to fixup variables from QNames to stack frame * indexes at stylesheet build time. * @param vars List of QNames that correspond to variables. This list * should be searched backwards for the first qualified name that * corresponds to the variable reference qname. The position...
This function is used to fixup variables from QNames to stack frame indexes at stylesheet build time
fixupVariables
{ "repo_name": "itgeeker/jdk", "path": "src/com/sun/org/apache/xpath/internal/operations/Variable.java", "license": "apache-2.0", "size": 12477 }
[ "com.sun.org.apache.xalan.internal.res.XSLMessages", "com.sun.org.apache.xml.internal.utils.QName", "com.sun.org.apache.xpath.internal.res.XPATHErrorResources", "javax.xml.transform.TransformerException" ]
import com.sun.org.apache.xalan.internal.res.XSLMessages; import com.sun.org.apache.xml.internal.utils.QName; import com.sun.org.apache.xpath.internal.res.XPATHErrorResources; import javax.xml.transform.TransformerException;
import com.sun.org.apache.xalan.internal.res.*; import com.sun.org.apache.xml.internal.utils.*; import com.sun.org.apache.xpath.internal.res.*; import javax.xml.transform.*;
[ "com.sun.org", "javax.xml" ]
com.sun.org; javax.xml;
86,038
private void addSuppliers() { Set suppliers = views.getSupplierSet(); if (suppliers.isEmpty()) { System.out.println("Adding Suppliers"); suppliers.add(new Supplier("S1", "Smith", 20, "London")); suppliers.add(new Supplier("S2", "Jones", 10, "Paris")); ...
void function() { Set suppliers = views.getSupplierSet(); if (suppliers.isEmpty()) { System.out.println(STR); suppliers.add(new Supplier("S1", "Smith", 20, STR)); suppliers.add(new Supplier("S2", "Jones", 10, "Paris")); suppliers.add(new Supplier("S3", "Blake", 30, "Paris")); suppliers.add(new Supplier("S4", "Clark", 2...
/** * Populate the supplier entities in the database. If the supplier set is * not empty, assume that this has already been done. */
Populate the supplier entities in the database. If the supplier set is not empty, assume that this has already been done
addSuppliers
{ "repo_name": "bjorndm/prebake", "path": "code/third_party/bdb/examples/collections/ship/marshal/Sample.java", "license": "apache-2.0", "size": 8103 }
[ "java.util.Set" ]
import java.util.Set;
import java.util.*;
[ "java.util" ]
java.util;
1,825,686
public boolean recordModifies(Set<String> modifies) { if (!hasAnySingletonSideEffectTags() && currentInfo.setModifies(modifies)) { populated = true; return true; } else { return false; } }
boolean function(Set<String> modifies) { if (!hasAnySingletonSideEffectTags() && currentInfo.setModifies(modifies)) { populated = true; return true; } else { return false; } }
/** * Records the list of modifies warnings. */
Records the list of modifies warnings
recordModifies
{ "repo_name": "Medium/closure-compiler", "path": "src/com/google/javascript/rhino/JSDocInfoBuilder.java", "license": "apache-2.0", "size": 38665 }
[ "java.util.Set" ]
import java.util.Set;
import java.util.*;
[ "java.util" ]
java.util;
2,066,946
public static void deleteFile(String chemin) throws UtilException { File directory = new File(chemin); boolean result = FileUtils.deleteQuietly(directory); if (!result) { SilverTrace .error("util", "FileFolderManager.deleteFile", "util.EX_DELETE_FILE_ERROR", chemin); throw new UtilEx...
static void function(String chemin) throws UtilException { File directory = new File(chemin); boolean result = FileUtils.deleteQuietly(directory); if (!result) { SilverTrace .error("util", STR, STR, chemin); throw new UtilException(STR, STR, chemin); } }
/** * Deletes a file. * @Param chemin : path to the file */
Deletes a file
deleteFile
{ "repo_name": "auroreallibe/Silverpeas-Core", "path": "core-library/src/main/java/org/silverpeas/core/util/file/FileFolderManager.java", "license": "agpl-3.0", "size": 12690 }
[ "java.io.File", "org.apache.commons.io.FileUtils", "org.silverpeas.core.exception.UtilException", "org.silverpeas.core.silvertrace.SilverTrace" ]
import java.io.File; import org.apache.commons.io.FileUtils; import org.silverpeas.core.exception.UtilException; import org.silverpeas.core.silvertrace.SilverTrace;
import java.io.*; import org.apache.commons.io.*; import org.silverpeas.core.exception.*; import org.silverpeas.core.silvertrace.*;
[ "java.io", "org.apache.commons", "org.silverpeas.core" ]
java.io; org.apache.commons; org.silverpeas.core;
2,804,291
public void testNvWriteItem() { try { if (isSimCardPresent()) { TelephonyManager.getDefault().nvWriteItem(0, ""); fail("Expected SecurityException. App doesn't have carrier privileges."); } } catch (SecurityException expected) { } }
void function() { try { if (isSimCardPresent()) { TelephonyManager.getDefault().nvWriteItem(0, STRExpected SecurityException. App doesn't have carrier privileges."); } } catch (SecurityException expected) { } }
/** * Tests the TelephonyManager.nvWriteItem() API. This makes a call to nvWriteItem() API and * expects a SecurityException since the test apk is not signed by a certificate on the SIM. */
Tests the TelephonyManager.nvWriteItem() API. This makes a call to nvWriteItem() API and expects a SecurityException since the test apk is not signed by a certificate on the SIM
testNvWriteItem
{ "repo_name": "s20121035/rk3288_android5.1_repo", "path": "cts/tests/tests/telephony/src/android/telephony/cts/SimRestrictedApisTest.java", "license": "gpl-3.0", "size": 10226 }
[ "android.telephony.TelephonyManager" ]
import android.telephony.TelephonyManager;
import android.telephony.*;
[ "android.telephony" ]
android.telephony;
2,515,078
public Missile getSaucerMissile() { return saucerMissile; }
Missile function() { return saucerMissile; }
/** * Get the missile that can be fired by the FlyingSaucer * * @return */
Get the missile that can be fired by the FlyingSaucer
getSaucerMissile
{ "repo_name": "wjsrobertson/j2menace", "path": "AsteroidBelt/src/com/rattat/micro/game/aster/mvc/Model.java", "license": "apache-2.0", "size": 7959 }
[ "com.rattat.micro.game.aster.elements.Missile" ]
import com.rattat.micro.game.aster.elements.Missile;
import com.rattat.micro.game.aster.elements.*;
[ "com.rattat.micro" ]
com.rattat.micro;
1,485,999
public void testUnionAll() throws NoConnectionsException, IOException, ProcCallException { Client client = this.getClient(); VoltTable vt; client.callProcedure("InsertA", 0, 1); //In the final result set client.callProcedure("InsertB", 1, 1); //In the final result set client....
void function() throws NoConnectionsException, IOException, ProcCallException { Client client = this.getClient(); VoltTable vt; client.callProcedure(STR, 0, 1); client.callProcedure(STR, 1, 1); client.callProcedure(STR, 2, 1); client.callProcedure(STR, 1, 2); client.callProcedure(STR, 2, 3); vt = client.callProcedure(S...
/** * Three table Union ALL - A.PKEY, B.I and C.I * @throws NoConnectionsException * @throws IOException * @throws ProcCallException */
Three table Union ALL - A.PKEY, B.I and C.I
testUnionAll
{ "repo_name": "deerwalk/voltdb", "path": "tests/frontend/org/voltdb/regressionsuites/TestUnionSuite.java", "license": "agpl-3.0", "size": 42913 }
[ "java.io.IOException", "org.voltdb.VoltTable", "org.voltdb.client.Client", "org.voltdb.client.NoConnectionsException", "org.voltdb.client.ProcCallException" ]
import java.io.IOException; import org.voltdb.VoltTable; import org.voltdb.client.Client; import org.voltdb.client.NoConnectionsException; import org.voltdb.client.ProcCallException;
import java.io.*; import org.voltdb.*; import org.voltdb.client.*;
[ "java.io", "org.voltdb", "org.voltdb.client" ]
java.io; org.voltdb; org.voltdb.client;
1,313,496
public void typeInvalid(final String type) { this.addStatusMessage( ProtocolConstants.StatusCodes.Delete.TYPE_INVALID, "\"" + type + "\" is not a valid delete request type. Use \"" + DeleteRequestType.USER.getIdentifier() + "\" to delete a user, \"" + DeleteRequestType.FOLLOW.getIdentifie...
void function(final String type) { this.addStatusMessage( ProtocolConstants.StatusCodes.Delete.TYPE_INVALID, "\"STR\STRSTR\STRSTR\STRSTR\STR); }
/** * add status message: delete request type invalid * * @param type * delete request type passed */
add status message: delete request type invalid
typeInvalid
{ "repo_name": "Metalcon/newsFeedServer", "path": "src/main/java/de/metalcon/server/tomcat/NSSP/delete/DeleteResponse.java", "license": "gpl-3.0", "size": 1386 }
[ "de.metalcon.server.tomcat.NSSP" ]
import de.metalcon.server.tomcat.NSSP;
import de.metalcon.server.tomcat.*;
[ "de.metalcon.server" ]
de.metalcon.server;
1,977,172
public void setPublishRelatedResourcesMode(String publishRelatedResourcesMode) { m_publishRelatedResourcesMode = CmsPublishRelatedResourcesMode.valueOf(publishRelatedResourcesMode); if ((m_publishRelatedResourcesMode != null) && CmsLog.INIT.isInfoEnabled()) { CmsLog.INIT.info(Messag...
void function(String publishRelatedResourcesMode) { m_publishRelatedResourcesMode = CmsPublishRelatedResourcesMode.valueOf(publishRelatedResourcesMode); if ((m_publishRelatedResourcesMode != null) && CmsLog.INIT.isInfoEnabled()) { CmsLog.INIT.info(Messages.get().getBundle().key( Messages.INIT_PUBLISH_RELATED_RESOURCES_...
/** * Sets the publish related resources mode.<p> * * @param publishRelatedResourcesMode the publish related resources mode to set */
Sets the publish related resources mode
setPublishRelatedResourcesMode
{ "repo_name": "comundus/opencms-comundus", "path": "src/main/java/org/opencms/configuration/CmsDefaultUserSettings.java", "license": "lgpl-2.1", "size": 35643 }
[ "org.opencms.main.CmsLog" ]
import org.opencms.main.CmsLog;
import org.opencms.main.*;
[ "org.opencms.main" ]
org.opencms.main;
1,901,623
startUnderlying(); prepareConfiguration(); IgniteHadoopIgfsSecondaryFileSystem second = new IgniteHadoopIgfsSecondaryFileSystem(secondaryUri, secondaryConfFullPath); FileSystem fileSystem = second.fileSystem(); igfsSecondary = new HadoopFileSystemUniversalFileSystemAdapte...
startUnderlying(); prepareConfiguration(); IgniteHadoopIgfsSecondaryFileSystem second = new IgniteHadoopIgfsSecondaryFileSystem(secondaryUri, secondaryConfFullPath); FileSystem fileSystem = second.fileSystem(); igfsSecondary = new HadoopFileSystemUniversalFileSystemAdapter(fileSystem); return second; }
/** * Creates secondary filesystems. * @return IgfsSecondaryFileSystem * @throws Exception On failure. */
Creates secondary filesystems
createSecondaryFileSystemStack
{ "repo_name": "agoncharuk/ignite", "path": "modules/hadoop/src/test/java/org/apache/ignite/igfs/Hadoop1DualAbstractTest.java", "license": "apache-2.0", "size": 4110 }
[ "org.apache.hadoop.fs.FileSystem", "org.apache.ignite.hadoop.fs.IgniteHadoopIgfsSecondaryFileSystem" ]
import org.apache.hadoop.fs.FileSystem; import org.apache.ignite.hadoop.fs.IgniteHadoopIgfsSecondaryFileSystem;
import org.apache.hadoop.fs.*; import org.apache.ignite.hadoop.fs.*;
[ "org.apache.hadoop", "org.apache.ignite" ]
org.apache.hadoop; org.apache.ignite;
415,727
public static ListFormatter getInstance(ULocale locale, Style style) { return cache.get(locale, style.getName()); }
static ListFormatter function(ULocale locale, Style style) { return cache.get(locale, style.getName()); }
/** * Create a list formatter that is appropriate for a locale and style. * * @param locale the locale in question. * @param style the style * @return ListFormatter * @internal * @deprecated This API is ICU internal only. */
Create a list formatter that is appropriate for a locale and style
getInstance
{ "repo_name": "Miracle121/quickdic-dictionary.dictionary", "path": "jars/icu4j-52_1/main/classes/core/src/com/ibm/icu/text/ListFormatter.java", "license": "apache-2.0", "size": 10232 }
[ "com.ibm.icu.util.ULocale" ]
import com.ibm.icu.util.ULocale;
import com.ibm.icu.util.*;
[ "com.ibm.icu" ]
com.ibm.icu;
2,535,763
BaseData setMergedConfiguration(List<EndpointGroupStateDto> egsList, BaseData mergedConfiguration);
BaseData setMergedConfiguration(List<EndpointGroupStateDto> egsList, BaseData mergedConfiguration);
/** * Sets the merged configuration. * * @param egsList the egs list * @param mergedConfiguration the merged configuration * @return the string */
Sets the merged configuration
setMergedConfiguration
{ "repo_name": "Oleh-Kravchenko/kaa", "path": "server/node/src/main/java/org/kaaproject/kaa/server/operations/service/cache/CacheService.java", "license": "apache-2.0", "size": 12774 }
[ "java.util.List", "org.kaaproject.kaa.common.dto.EndpointGroupStateDto", "org.kaaproject.kaa.server.common.core.configuration.BaseData" ]
import java.util.List; import org.kaaproject.kaa.common.dto.EndpointGroupStateDto; import org.kaaproject.kaa.server.common.core.configuration.BaseData;
import java.util.*; import org.kaaproject.kaa.common.dto.*; import org.kaaproject.kaa.server.common.core.configuration.*;
[ "java.util", "org.kaaproject.kaa" ]
java.util; org.kaaproject.kaa;
2,183,820
public void addElement(String parentRef, JSONObject element, Integer index) { if (element == null || TextUtils.isEmpty(parentRef)) { return; } Message msg = Message.obtain(); WXDomTask task = new WXDomTask(); task.instanceId = mWXSDKInstance.getInstanceId(); task.args = new Array...
void function(String parentRef, JSONObject element, Integer index) { if (element == null TextUtils.isEmpty(parentRef)) { return; } Message msg = Message.obtain(); WXDomTask task = new WXDomTask(); task.instanceId = mWXSDKInstance.getInstanceId(); task.args = new ArrayList<>(); task.args.add(parentRef); task.args.add(el...
/** * Add a {@link WXDomObject} to the specified parent as its given n-th child. * @param parentRef reference of the parent. * @param element the node to be added * @param index the expected index that the new dom in its new parent */
Add a <code>WXDomObject</code> to the specified parent as its given n-th child
addElement
{ "repo_name": "Hanks10100/weex", "path": "android/sdk/src/main/java/com/taobao/weex/dom/WXDomModule.java", "license": "apache-2.0", "size": 27997 }
[ "android.os.Message", "android.text.TextUtils", "com.alibaba.fastjson.JSONObject", "com.taobao.weex.WXSDKManager", "java.util.ArrayList" ]
import android.os.Message; import android.text.TextUtils; import com.alibaba.fastjson.JSONObject; import com.taobao.weex.WXSDKManager; import java.util.ArrayList;
import android.os.*; import android.text.*; import com.alibaba.fastjson.*; import com.taobao.weex.*; import java.util.*;
[ "android.os", "android.text", "com.alibaba.fastjson", "com.taobao.weex", "java.util" ]
android.os; android.text; com.alibaba.fastjson; com.taobao.weex; java.util;
753,953
public static BreakIterator getCharacterInstance(Locale locale) { return getBreakInstance(locale, CHARACTER_INDEX, "CharacterData", "CharacterDictionary"); }
static BreakIterator function(Locale locale) { return getBreakInstance(locale, CHARACTER_INDEX, STR, STR); }
/** * Returns a new <code>BreakIterator</code> instance * for <a href="#character">character breaks</a> * for the given locale. * @param locale the desired locale * @return A break iterator for character breaks * @exception NullPointerException if <code>locale</code> is null */
Returns a new <code>BreakIterator</code> instance for character breaks for the given locale
getCharacterInstance
{ "repo_name": "neelance/jre4ruby", "path": "jre4ruby/src/share/java/text/BreakIterator.java", "license": "gpl-2.0", "size": 27590 }
[ "java.util.Locale" ]
import java.util.Locale;
import java.util.*;
[ "java.util" ]
java.util;
703,906
public void highlightTextBorder(int i) { this.textCharDecrypted[i].setEnabled(true); this.textCharDecrypted[i].setBorder(BorderFactory.createLineBorder(Color.blue, 5)); }
void function(int i) { this.textCharDecrypted[i].setEnabled(true); this.textCharDecrypted[i].setBorder(BorderFactory.createLineBorder(Color.blue, 5)); }
/** * hightlights the given textfield * @param i */
hightlights the given textfield
highlightTextBorder
{ "repo_name": "matthiasplappert/Cryptographics", "path": "cg_implementierung/src/edu/kit/iks/Cryptographics/Vigenere/Experiment/FirstExperimentView.java", "license": "mit", "size": 12260 }
[ "java.awt.Color", "javax.swing.BorderFactory" ]
import java.awt.Color; import javax.swing.BorderFactory;
import java.awt.*; import javax.swing.*;
[ "java.awt", "javax.swing" ]
java.awt; javax.swing;
1,542,243
// Start process, forcing error on job-execution ProcessInstance processInstance = runtimeService.startProcessInstanceByKey("timerProcess", Collections.singletonMap("error", (Object) Boolean.TRUE)); Job timerJob = managementService.createTimerJobQuery().processInstanceId(processInstance.getId()).singleResult()...
ProcessInstance processInstance = runtimeService.startProcessInstanceByKey(STR, Collections.singletonMap("error", (Object) Boolean.TRUE)); Job timerJob = managementService.createTimerJobQuery().processInstanceId(processInstance.getId()).singleResult(); assertNotNull(timerJob); try { managementService.moveTimerToExecuta...
/** * Test getting the stacktrace for a failed job */
Test getting the stacktrace for a failed job
testGetJobStacktrace
{ "repo_name": "roberthafner/flowable-engine", "path": "modules/flowable-rest/src/test/java/org/activiti/rest/service/api/management/JobExceptionStacktraceResourceTest.java", "license": "apache-2.0", "size": 3477 }
[ "java.util.Calendar", "java.util.Collections", "org.activiti.engine.ActivitiException", "org.activiti.engine.runtime.Job", "org.activiti.engine.runtime.ProcessInstance", "org.activiti.rest.service.api.RestUrls", "org.apache.commons.io.IOUtils", "org.apache.http.HttpStatus", "org.apache.http.client.m...
import java.util.Calendar; import java.util.Collections; import org.activiti.engine.ActivitiException; import org.activiti.engine.runtime.Job; import org.activiti.engine.runtime.ProcessInstance; import org.activiti.rest.service.api.RestUrls; import org.apache.commons.io.IOUtils; import org.apache.http.HttpStatus; impor...
import java.util.*; import org.activiti.engine.*; import org.activiti.engine.runtime.*; import org.activiti.rest.service.api.*; import org.apache.commons.io.*; import org.apache.http.*; import org.apache.http.client.methods.*;
[ "java.util", "org.activiti.engine", "org.activiti.rest", "org.apache.commons", "org.apache.http" ]
java.util; org.activiti.engine; org.activiti.rest; org.apache.commons; org.apache.http;
2,693,700
@EntityCustomAction(action = "channelMessages", viewKey = EntityView.VIEW_LIST) public List<Object> getMailArchiveMessagesForChannel(EntityView view, Map<String, Object> params) { log.info(" getMailArchiveMessagesForChannel "); List<Object> rv = new ArrayList<Object>(); // get currentUserId for permissi...
@EntityCustomAction(action = STR, viewKey = EntityView.VIEW_LIST) List<Object> function(EntityView view, Map<String, Object> params) { log.info(STR); List<Object> rv = new ArrayList<Object>(); String currentUserId = sessionManager.getCurrentSessionUserId(); String siteId = view.getPathSegment(2); String channelId = vie...
/** * get MailArchiveMessageChannel object for given site * */
get MailArchiveMessageChannel object for given site
getMailArchiveMessagesForChannel
{ "repo_name": "OpenCollabZA/sakai", "path": "mailarchive/mailarchive-tool/tool/src/java/org/sakaiproject/mailarchive/entityprovider/MailArchiveEntityProvider.java", "license": "apache-2.0", "size": 24168 }
[ "java.util.ArrayList", "java.util.List", "java.util.Map", "org.sakaiproject.entitybroker.EntityView", "org.sakaiproject.entitybroker.entityprovider.annotations.EntityCustomAction", "org.sakaiproject.exception.IdUnusedException", "org.sakaiproject.exception.PermissionException", "org.sakaiproject.maila...
import java.util.ArrayList; import java.util.List; import java.util.Map; import org.sakaiproject.entitybroker.EntityView; import org.sakaiproject.entitybroker.entityprovider.annotations.EntityCustomAction; import org.sakaiproject.exception.IdUnusedException; import org.sakaiproject.exception.PermissionException; import...
import java.util.*; import org.sakaiproject.entitybroker.*; import org.sakaiproject.entitybroker.entityprovider.annotations.*; import org.sakaiproject.exception.*; import org.sakaiproject.mailarchive.api.*; import org.sakaiproject.message.api.*;
[ "java.util", "org.sakaiproject.entitybroker", "org.sakaiproject.exception", "org.sakaiproject.mailarchive", "org.sakaiproject.message" ]
java.util; org.sakaiproject.entitybroker; org.sakaiproject.exception; org.sakaiproject.mailarchive; org.sakaiproject.message;
470,492
public ContentPreviewerFactoryBuilder disable(MediaType... mediaTypes) { return disable(ImmutableList.copyOf(requireNonNull(mediaTypes, "mediaTypes"))); }
ContentPreviewerFactoryBuilder function(MediaType... mediaTypes) { return disable(ImmutableList.copyOf(requireNonNull(mediaTypes, STR))); }
/** * Sets the specified {@link MediaType}s <b>NOT</b> to produce the preview when the content type of the * {@link RequestHeaders} or {@link ResponseHeaders} is one of the {@link MediaType}s. */
Sets the specified <code>MediaType</code>s NOT to produce the preview when the content type of the <code>RequestHeaders</code> or <code>ResponseHeaders</code> is one of the <code>MediaType</code>s
disable
{ "repo_name": "anuraaga/armeria", "path": "core/src/main/java/com/linecorp/armeria/common/logging/ContentPreviewerFactoryBuilder.java", "license": "apache-2.0", "size": 8987 }
[ "com.google.common.collect.ImmutableList", "com.linecorp.armeria.common.MediaType" ]
import com.google.common.collect.ImmutableList; import com.linecorp.armeria.common.MediaType;
import com.google.common.collect.*; import com.linecorp.armeria.common.*;
[ "com.google.common", "com.linecorp.armeria" ]
com.google.common; com.linecorp.armeria;
2,733,889
public static java.util.List extractActivityStatusToPathwayEventList(ims.domain.ILightweightDomainFactory domainFactory, ims.scheduling.vo.ProfileActivityEventVoCollection voCollection) { return extractActivityStatusToPathwayEventList(domainFactory, voCollection, null, new HashMap()); }
static java.util.List function(ims.domain.ILightweightDomainFactory domainFactory, ims.scheduling.vo.ProfileActivityEventVoCollection voCollection) { return extractActivityStatusToPathwayEventList(domainFactory, voCollection, null, new HashMap()); }
/** * Create the ims.scheduling.domain.objects.ActivityStatusToPathwayEvent list from the value object collection. * @param domainFactory - used to create existing (persistent) domain objects. * @param voCollection - the collection of value objects */
Create the ims.scheduling.domain.objects.ActivityStatusToPathwayEvent list from the value object collection
extractActivityStatusToPathwayEventList
{ "repo_name": "FreudianNM/openMAXIMS", "path": "Source Library/openmaxims_workspace/ValueObjects/src/ims/scheduling/vo/domain/ProfileActivityEventVoAssembler.java", "license": "agpl-3.0", "size": 19549 }
[ "java.util.HashMap" ]
import java.util.HashMap;
import java.util.*;
[ "java.util" ]
java.util;
1,936,233
private void buffCodecLog(StringBuilder sb, String codec, short prio) { if (prio > 0 && Log.getLogLevel() >= 4) { sb.append(codec); sb.append(" ("); sb.append(prio); sb.append(") - "); } }
void function(StringBuilder sb, String codec, short prio) { if (prio > 0 && Log.getLogLevel() >= 4) { sb.append(codec); sb.append(STR); sb.append(prio); sb.append(STR); } }
/** * Append log for the codec in String builder * * @param sb the buffer to be appended with the codec info * @param codec the codec name * @param prio the priority of the codec */
Append log for the codec in String builder
buffCodecLog
{ "repo_name": "WonderFannn/EntranceSystem", "path": "src/com/csipsimple/pjsip/PjSipService.java", "license": "lgpl-3.0", "size": 97922 }
[ "com.csipsimple.utils.Log" ]
import com.csipsimple.utils.Log;
import com.csipsimple.utils.*;
[ "com.csipsimple.utils" ]
com.csipsimple.utils;
37,690
public void assimilate(MultiblockControllerBase other) { CoordTriplet otherReferenceCoord = other.getReferenceCoord(); if(otherReferenceCoord != null && getReferenceCoord().compareTo(otherReferenceCoord) >= 0) { throw new IllegalArgumentException("The controller with the lowest minimum-coord value must consum...
void function(MultiblockControllerBase other) { CoordTriplet otherReferenceCoord = other.getReferenceCoord(); if(otherReferenceCoord != null && getReferenceCoord().compareTo(otherReferenceCoord) >= 0) { throw new IllegalArgumentException(STR); } TileEntity te; Set<IMultiblockPart> partsToAcquire = new HashSet<IMultiblo...
/** * Assimilate another controller into this controller. * Acquire all of the other controller's blocks and attach them * to this one. * * @param other The controller to merge into this one. */
Assimilate another controller into this controller. Acquire all of the other controller's blocks and attach them to this one
assimilate
{ "repo_name": "P3pp3rF1y/BigMachines", "path": "src/main/java/com/p3pp3rf1y/beefcore/multiblock/MultiblockControllerBase.java", "license": "gpl-3.0", "size": 31988 }
[ "com.p3pp3rf1y.beefcore.common.CoordTriplet", "java.util.HashSet", "java.util.Set", "net.minecraft.tileentity.TileEntity" ]
import com.p3pp3rf1y.beefcore.common.CoordTriplet; import java.util.HashSet; import java.util.Set; import net.minecraft.tileentity.TileEntity;
import com.p3pp3rf1y.beefcore.common.*; import java.util.*; import net.minecraft.tileentity.*;
[ "com.p3pp3rf1y.beefcore", "java.util", "net.minecraft.tileentity" ]
com.p3pp3rf1y.beefcore; java.util; net.minecraft.tileentity;
582,918
public static String getMenuItemIconUrl(String url) { if (url == null) { return null; } String contextPath = Stapler.getCurrentRequest().getContextPath(); return (StringUtils.isBlank(contextPath)? "" : contextPath) + (url.startsWith("images/") ? Functions....
static String function(String url) { if (url == null) { return null; } String contextPath = Stapler.getCurrentRequest().getContextPath(); return (StringUtils.isBlank(contextPath)? STRimages/STRSTR/") ? url : '/' + url); } /** * Navigate the signature changes in different versions of {@link IconSet}. * * @param spec the...
/** * Converts a regular icon url into a menu item icon url * * @param url the "regular" icon url. * @return the url for a menu item. */
Converts a regular icon url into a menu item icon url
getMenuItemIconUrl
{ "repo_name": "jenkinsci/credentials-plugin", "path": "src/main/java/com/cloudbees/plugins/credentials/ContextMenuIconUtils.java", "license": "mit", "size": 10181 }
[ "org.apache.commons.lang.StringUtils", "org.jenkins.ui.icon.Icon", "org.jenkins.ui.icon.IconSet", "org.kohsuke.stapler.Stapler" ]
import org.apache.commons.lang.StringUtils; import org.jenkins.ui.icon.Icon; import org.jenkins.ui.icon.IconSet; import org.kohsuke.stapler.Stapler;
import org.apache.commons.lang.*; import org.jenkins.ui.icon.*; import org.kohsuke.stapler.*;
[ "org.apache.commons", "org.jenkins.ui", "org.kohsuke.stapler" ]
org.apache.commons; org.jenkins.ui; org.kohsuke.stapler;
1,248,436
public void performBeforeBuild(IProgressMonitor monitor) throws CoreException { // capture current state of build and temp folder tracking.refreshSnapshots(sourceDir, monitor); // use temp files from previous build restoreTempFiles(monitor); }
void function(IProgressMonitor monitor) throws CoreException { tracking.refreshSnapshots(sourceDir, monitor); restoreTempFiles(monitor); }
/** * Performs actions before a LaTeX document is built; namely: * <ul> * <li>memorizing which files are present in the temporary and build source * folder, and</li> * <li>moving temporary files from their folder into the build folder, so * the build process has access to them.</li> ...
Performs actions before a LaTeX document is built; namely: memorizing which files are present in the temporary and build source folder, and moving temporary files from their folder into the build folder, so the build process has access to them.
performBeforeBuild
{ "repo_name": "rondiplomatico/texlipse", "path": "source/net/sourceforge/texlipse/builder/OutputFileManager.java", "license": "epl-1.0", "size": 28451 }
[ "org.eclipse.core.runtime.CoreException", "org.eclipse.core.runtime.IProgressMonitor" ]
import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.*;
[ "org.eclipse.core" ]
org.eclipse.core;
1,573,737
public void addAllIfNotExist(Properties properties) { for (String key : properties.stringPropertyNames()) { if (!this.specProperties.containsKey(key) && !this.commonProperties.containsKey(key)) { this.specProperties.setProperty(key, properties.getProperty(key)); } } }
void function(Properties properties) { for (String key : properties.stringPropertyNames()) { if (!this.specProperties.containsKey(key) && !this.commonProperties.containsKey(key)) { this.specProperties.setProperty(key, properties.getProperty(key)); } } }
/** * Add properties in a {@link Properties} instance that are not in the current instance. * * @param properties a {@link Properties} instance */
Add properties in a <code>Properties</code> instance that are not in the current instance
addAllIfNotExist
{ "repo_name": "shirshanka/gobblin", "path": "gobblin-api/src/main/java/org/apache/gobblin/configuration/State.java", "license": "apache-2.0", "size": 19065 }
[ "java.util.Properties" ]
import java.util.Properties;
import java.util.*;
[ "java.util" ]
java.util;
2,375,404
// TODO: Create "cache dictionary" to cache fresh words for frequently updated dictionaries, // considering performance regression. protected void addWord(final String word, final String shortcutTarget, final int frequency) { if (shortcutTarget == null) { mFusionDictionary.add(word, freq...
void function(final String word, final String shortcutTarget, final int frequency) { if (shortcutTarget == null) { mFusionDictionary.add(word, frequency, null); } else { final ArrayList<WeightedString> shortcutTargets = new ArrayList<WeightedString>(); shortcutTargets.add(new WeightedString(shortcutTarget, frequency));...
/** * Adds a word unigram to the fusion dictionary. Call updateBinaryDictionary when all changes * are done to update the binary dictionary. */
Adds a word unigram to the fusion dictionary. Call updateBinaryDictionary when all changes are done to update the binary dictionary
addWord
{ "repo_name": "klukonin/aosp-morelang-ime", "path": "java/src/com/marcosdiez/keyboard/latin/ExpandableBinaryDictionary.java", "license": "gpl-2.0", "size": 19022 }
[ "com.marcosdiez.keyboard.latin.makedict.FusionDictionary", "java.util.ArrayList" ]
import com.marcosdiez.keyboard.latin.makedict.FusionDictionary; import java.util.ArrayList;
import com.marcosdiez.keyboard.latin.makedict.*; import java.util.*;
[ "com.marcosdiez.keyboard", "java.util" ]
com.marcosdiez.keyboard; java.util;
2,736,777
final Map<CharSequence, Integer> innerCounter = new HashMap<CharSequence, Integer>(); for (CharSequence token : tokens) { if (innerCounter.containsKey(token)) { int value = innerCounter.get(token); innerCounter.put(token, ++value); } else { ...
final Map<CharSequence, Integer> innerCounter = new HashMap<CharSequence, Integer>(); for (CharSequence token : tokens) { if (innerCounter.containsKey(token)) { int value = innerCounter.get(token); innerCounter.put(token, ++value); } else { innerCounter.put(token, 1); } } return innerCounter; }
/** * It counts how many times each element provided occurred in an array and * returns a dict with the element as key and the count as value. * * @param tokens array of tokens * @return dict, where the elements are key, and the count the value */
It counts how many times each element provided occurred in an array and returns a dict with the element as key and the count as value
of
{ "repo_name": "VijayKrishna/text", "path": "src/main/java/org/apache/commons/text/similarity/Counter.java", "license": "apache-2.0", "size": 2182 }
[ "java.util.HashMap", "java.util.Map" ]
import java.util.HashMap; import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
391,672
EReference getSarlBehaviorUnit_Expression();
EReference getSarlBehaviorUnit_Expression();
/** * Returns the meta object for the containment reference '{@link io.sarl.lang.sarl.SarlBehaviorUnit#getExpression <em>Expression</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for the containment reference '<em>Expression</em>'. * @see io.sarl.lang.sarl.SarlBehaviorUnit...
Returns the meta object for the containment reference '<code>io.sarl.lang.sarl.SarlBehaviorUnit#getExpression Expression</code>'.
getSarlBehaviorUnit_Expression
{ "repo_name": "sarl/sarl", "path": "main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/sarl/SarlPackage.java", "license": "apache-2.0", "size": 83913 }
[ "org.eclipse.emf.ecore.EReference" ]
import org.eclipse.emf.ecore.EReference;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
2,695,050
public void selectionUpdated(GroupEvent groupEvent, Array<Actor> selection) { }
void function(GroupEvent groupEvent, Array<Actor> selection) { }
/** * /** The selection has been updated * * @param groupEvent * the event * @param selection * the elements selected */
The selection has been updated
selectionUpdated
{ "repo_name": "e-ucm/ead", "path": "editor/core/src/main/java/es/eucm/ead/editor/view/widgets/groupeditor/GroupEditor.java", "license": "lgpl-3.0", "size": 13233 }
[ "com.badlogic.gdx.scenes.scene2d.Actor", "com.badlogic.gdx.utils.Array" ]
import com.badlogic.gdx.scenes.scene2d.Actor; import com.badlogic.gdx.utils.Array;
import com.badlogic.gdx.scenes.scene2d.*; import com.badlogic.gdx.utils.*;
[ "com.badlogic.gdx" ]
com.badlogic.gdx;
2,036,416
if (param instanceof Object[]) { Object[] params = partition.partition((Object[]) param); for (int i = 0; i < params.length; i++) { children.add(copyStack(this.substack)); } stack.push(new MergeInst(merge, strace)); return params; } els...
if (param instanceof Object[]) { Object[] params = partition.partition((Object[]) param); for (int i = 0; i < params.length; i++) { children.add(copyStack(this.substack)); } stack.push(new MergeInst(merge, strace)); return params; } else { throw new IllegalStateException(STR + param.getClass()); } }
/** * Subdivides param using the {@link Split} muscle, and then a stack is copied for each subparam. * <p> * {@inheritDoc} */
Subdivides param using the <code>Split</code> muscle, and then a stack is copied for each subparam.
interpret
{ "repo_name": "mackeprm/Skandium", "path": "core/src/main/java/cl/niclabs/skandium/kmeans/hybridpartition/PartitionInstruction.java", "license": "gpl-3.0", "size": 1663 }
[ "cl.niclabs.skandium.instructions.MergeInst" ]
import cl.niclabs.skandium.instructions.MergeInst;
import cl.niclabs.skandium.instructions.*;
[ "cl.niclabs.skandium" ]
cl.niclabs.skandium;
1,311,063
Id getNodeId();
Id getNodeId();
/** * Get the node id to be indexed. In the case of a "TARGET" entity location, this would be the sourceId. In the case of the "SOURCE" entity location, this would be the targetId. * Ultimately this should be the other side of the edge from the entity getting searched * @return */
Get the node id to be indexed. In the case of a "TARGET" entity location, this would be the sourceId. In the case of the "SOURCE" entity location, this would be the targetId. Ultimately this should be the other side of the edge from the entity getting searched
getNodeId
{ "repo_name": "mdunker/usergrid", "path": "stack/corepersistence/queryindex/src/main/java/org/apache/usergrid/persistence/index/SearchEdge.java", "license": "apache-2.0", "size": 1835 }
[ "org.apache.usergrid.persistence.model.entity.Id" ]
import org.apache.usergrid.persistence.model.entity.Id;
import org.apache.usergrid.persistence.model.entity.*;
[ "org.apache.usergrid" ]
org.apache.usergrid;
1,278,993
public IStatus addStartRestartCommands(boolean doReset, List<String> commandsList);
IStatus function(boolean doReset, List<String> commandsList);
/** * Used by both FinalLaunchSequence & RestartProcessSequence. * * @param attributes * @param doReset * @param programPath * @param commandsList * @return */
Used by both FinalLaunchSequence & RestartProcessSequence
addStartRestartCommands
{ "repo_name": "gnuarmeclipse/plug-ins", "path": "plugins/ilg.gnumcueclipse.debug.gdbjtag/src/ilg/gnumcueclipse/debug/gdbjtag/services/IGnuMcuDebuggerCommandsService.java", "license": "epl-1.0", "size": 2276 }
[ "java.util.List", "org.eclipse.core.runtime.IStatus" ]
import java.util.List; import org.eclipse.core.runtime.IStatus;
import java.util.*; import org.eclipse.core.runtime.*;
[ "java.util", "org.eclipse.core" ]
java.util; org.eclipse.core;
1,115,053
public void lookUp(Object id, List<Pair<String, String>> parameters, final TableOperationCallback<E> callback) { mInternalTable.lookUp(id, parameters, new ParseResultOperationCallback(callback)); }
void function(Object id, List<Pair<String, String>> parameters, final TableOperationCallback<E> callback) { mInternalTable.lookUp(id, parameters, new ParseResultOperationCallback(callback)); }
/** * Looks up a row in the table. Deserializes the row using the given class. * * @param id * The id of the row * @param clazz * The class used to deserialize the row * @param parameters * A list of user-defined parameters and values to include in the request URI query...
Looks up a row in the table. Deserializes the row using the given class
lookUp
{ "repo_name": "AzureADQuickStarts/B2C-NativeClient-Android", "path": "TaskApplication/src/main/java/com/azure/webapi/MobileServiceTable.java", "license": "apache-2.0", "size": 8386 }
[ "android.util.Pair", "java.util.List" ]
import android.util.Pair; import java.util.List;
import android.util.*; import java.util.*;
[ "android.util", "java.util" ]
android.util; java.util;
718,965
List<String> getTokens(String text, PosTag[] posTags) throws ApiException;
List<String> getTokens(String text, PosTag[] posTags) throws ApiException;
/** * Retrieve a list of lists of tokens for the input model: a list of sentences containing lists of * tokens. * @param text : input text. * @param posTags : array of pos tags used in the token generation. * @return : a list of tokens. * @throws ApiException : if there are server or co...
Retrieve a list of lists of tokens for the input model: a list of sentences containing lists of tokens
getTokens
{ "repo_name": "cortical-io/java-client-sdk", "path": "retina-service-java-api-client/src/main/java/io/cortical/services/Texts.java", "license": "bsd-2-clause", "size": 4824 }
[ "io.cortical.services.api.client.ApiException", "java.util.List" ]
import io.cortical.services.api.client.ApiException; import java.util.List;
import io.cortical.services.api.client.*; import java.util.*;
[ "io.cortical.services", "java.util" ]
io.cortical.services; java.util;
972,911
@ServiceMethod(returns = ReturnType.SINGLE) public Mono<Response<CalculateBaselineResponseInner>> calculateBaselineWithResponseAsync( String resourceUri, TimeSeriesInformation timeSeriesInformation) { if (this.client.getEndpoint() == null) { return Mono .error( ...
@ServiceMethod(returns = ReturnType.SINGLE) Mono<Response<CalculateBaselineResponseInner>> function( String resourceUri, TimeSeriesInformation timeSeriesInformation) { if (this.client.getEndpoint() == null) { return Mono .error( new IllegalArgumentException( STR)); } if (resourceUri == null) { return Mono.error(new Ill...
/** * **Lists the baseline values for a resource**. * * @param resourceUri The identifier of the resource. It has the following structure: * subscriptions/{subscriptionName}/resourceGroups/{resourceGroupName}/providers/{providerName}/{resourceName}. * For example: * subscriptio...
Lists the baseline values for a resource**
calculateBaselineWithResponseAsync
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/resourcemanager/azure-resourcemanager-monitor/src/main/java/com/azure/resourcemanager/monitor/implementation/MetricBaselinesClientImpl.java", "license": "mit", "size": 24984 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.http.rest.Response", "com.azure.core.util.FluxUtil", "com.azure.resourcemanager.monitor.fluent.models.CalculateBaselineResponseInner", "com.azure.resourcemanager.monitor.models.TimeSeriesInformation" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.Response; import com.azure.core.util.FluxUtil; import com.azure.resourcemanager.monitor.fluent.models.CalculateBaselineResponseInner; import com.azure.resourcemanager.monitor.models.TimeSeriesInf...
import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.core.util.*; import com.azure.resourcemanager.monitor.fluent.models.*; import com.azure.resourcemanager.monitor.models.*;
[ "com.azure.core", "com.azure.resourcemanager" ]
com.azure.core; com.azure.resourcemanager;
2,025,590
@Test public void testBlockIdCK() throws Exception { final short REPL_FACTOR = 2; short NUM_DN = 2; final long blockSize = 512; String [] racks = {"/rack1", "/rack2"}; String [] hosts = {"host1", "host2"}; Configuration conf = new Configuration(); conf.setLong(DFSConfigKeys.DFS_BLOCK_...
void function() throws Exception { final short REPL_FACTOR = 2; short NUM_DN = 2; final long blockSize = 512; String [] racks = {STR, STR}; String [] hosts = {"host1", "host2"}; Configuration conf = new Configuration(); conf.setLong(DFSConfigKeys.DFS_BLOCK_SIZE_KEY, blockSize); conf.setInt(DFSConfigKeys.DFS_REPLICATION...
/** * Test for blockIdCK */
Test for blockIdCK
testBlockIdCK
{ "repo_name": "lightslife/hadoop", "path": "hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestFsck.java", "license": "apache-2.0", "size": 62536 }
[ "org.apache.hadoop.conf.Configuration", "org.apache.hadoop.fs.Path", "org.apache.hadoop.hdfs.DFSConfigKeys", "org.apache.hadoop.hdfs.DFSTestUtil", "org.apache.hadoop.hdfs.DistributedFileSystem", "org.apache.hadoop.hdfs.MiniDFSCluster", "org.apache.hadoop.hdfs.protocol.LocatedBlock", "org.junit.Assert"...
import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.Path; import org.apache.hadoop.hdfs.DFSConfigKeys; import org.apache.hadoop.hdfs.DFSTestUtil; import org.apache.hadoop.hdfs.DistributedFileSystem; import org.apache.hadoop.hdfs.MiniDFSCluster; import org.apache.hadoop.hdfs.protocol.LocatedBlock; i...
import org.apache.hadoop.conf.*; import org.apache.hadoop.fs.*; import org.apache.hadoop.hdfs.*; import org.apache.hadoop.hdfs.protocol.*; import org.junit.*;
[ "org.apache.hadoop", "org.junit" ]
org.apache.hadoop; org.junit;
57,027
protected void writeRemoteInvocation(RemoteInvocation invocation, OutputStream os) throws IOException { ObjectOutputStream oos = new ObjectOutputStream(os); try { oos.writeObject(invocation); oos.flush(); } finally { oos.close(); } }
void function(RemoteInvocation invocation, OutputStream os) throws IOException { ObjectOutputStream oos = new ObjectOutputStream(os); try { oos.writeObject(invocation); oos.flush(); } finally { oos.close(); } }
/** * Serialize the given RemoteInvocation to the given OutputStream. * @param invocation the RemoteInvocation object * @param os the OutputStream to write to * @throws IOException if thrown by I/O methods */
Serialize the given RemoteInvocation to the given OutputStream
writeRemoteInvocation
{ "repo_name": "dachengxi/spring1.1.1_source", "path": "src/org/springframework/remoting/httpinvoker/AbstractHttpInvokerRequestExecutor.java", "license": "mit", "size": 4825 }
[ "java.io.IOException", "java.io.ObjectOutputStream", "java.io.OutputStream", "org.springframework.remoting.support.RemoteInvocation" ]
import java.io.IOException; import java.io.ObjectOutputStream; import java.io.OutputStream; import org.springframework.remoting.support.RemoteInvocation;
import java.io.*; import org.springframework.remoting.support.*;
[ "java.io", "org.springframework.remoting" ]
java.io; org.springframework.remoting;
2,792,735
@SmallTest @Feature({"Sync"}) public void testDefaultEncryptionOptions() throws Exception { setupTestAccountAndSignInToSync(CLIENT_ID); SyncTestUtil.waitForSyncActive(mContext); SyncCustomizationFragment fragment = startSyncCustomizationFragment(); Preference encryption = get...
@Feature({"Sync"}) void function() throws Exception { setupTestAccountAndSignInToSync(CLIENT_ID); SyncTestUtil.waitForSyncActive(mContext); SyncCustomizationFragment fragment = startSyncCustomizationFragment(); Preference encryption = getEncryption(fragment); clickPreference(encryption); PassphraseTypeDialogFragment ty...
/** * Make sure that the encryption UI presents the correct options. * * By default it should show the CUSTOM and KEYSTORE options, in that order. * KEYSTORE should be selected but both should be enabled. */
Make sure that the encryption UI presents the correct options. By default it should show the CUSTOM and KEYSTORE options, in that order. KEYSTORE should be selected but both should be enabled
testDefaultEncryptionOptions
{ "repo_name": "TheTypoMaster/chromium-crosswalk", "path": "chrome/android/sync_shell/javatests/src/org/chromium/chrome/browser/sync/SyncCustomizationFragmentTest.java", "license": "bsd-3-clause", "size": 22488 }
[ "android.preference.Preference", "android.view.View", "android.widget.ListView", "org.chromium.base.test.util.Feature", "org.chromium.chrome.browser.sync.ui.PassphraseTypeDialogFragment", "org.chromium.chrome.browser.sync.ui.SyncCustomizationFragment", "org.chromium.chrome.test.util.browser.sync.SyncTes...
import android.preference.Preference; import android.view.View; import android.widget.ListView; import org.chromium.base.test.util.Feature; import org.chromium.chrome.browser.sync.ui.PassphraseTypeDialogFragment; import org.chromium.chrome.browser.sync.ui.SyncCustomizationFragment; import org.chromium.chrome.test.util....
import android.preference.*; import android.view.*; import android.widget.*; import org.chromium.base.test.util.*; import org.chromium.chrome.browser.sync.ui.*; import org.chromium.chrome.test.util.browser.sync.*; import org.chromium.sync.internal_api.pub.*;
[ "android.preference", "android.view", "android.widget", "org.chromium.base", "org.chromium.chrome", "org.chromium.sync" ]
android.preference; android.view; android.widget; org.chromium.base; org.chromium.chrome; org.chromium.sync;
2,839,753
public ListCellRenderer getRenderer() { return renderer; }
ListCellRenderer function() { return renderer; }
/** * Returns the renderer which is used to draw list elements * * @return the renderer which is used to draw list elements */
Returns the renderer which is used to draw list elements
getRenderer
{ "repo_name": "diamonddevgroup/CodenameOne", "path": "CodenameOne/src/com/codename1/ui/List.java", "license": "gpl-2.0", "size": 84951 }
[ "com.codename1.ui.list.ListCellRenderer" ]
import com.codename1.ui.list.ListCellRenderer;
import com.codename1.ui.list.*;
[ "com.codename1.ui" ]
com.codename1.ui;
1,679,563
@Test public void transformWithSameSideAndMainInput() { Components components = Components.newBuilder() .putPcollections("read_pc", RunnerApi.PCollection.getDefaultInstance()) .putPcollections("pardo_out", RunnerApi.PCollection.getDefaultInstance()) .putTransforms( ...
void function() { Components components = Components.newBuilder() .putPcollections(STR, RunnerApi.PCollection.getDefaultInstance()) .putPcollections(STR, RunnerApi.PCollection.getDefaultInstance()) .putTransforms( "root", PTransform.newBuilder() .setSpec( FunctionSpec.newBuilder() .setUrn(PTransformTranslation.IMPULSE_...
/** * Tests that inputs that are both side inputs and main inputs are returned from {@link * QueryablePipeline#getPerElementConsumers(PCollectionNode)} and {@link * QueryablePipeline#getSideInputs(PTransformNode)}. */
Tests that inputs that are both side inputs and main inputs are returned from <code>QueryablePipeline#getPerElementConsumers(PCollectionNode)</code> and <code>QueryablePipeline#getSideInputs(PTransformNode)</code>
transformWithSameSideAndMainInput
{ "repo_name": "RyanSkraba/beam", "path": "runners/core-construction-java/src/test/java/org/apache/beam/runners/core/construction/graph/QueryablePipelineTest.java", "license": "apache-2.0", "size": 18986 }
[ "org.apache.beam.model.pipeline.v1.RunnerApi", "org.apache.beam.runners.core.construction.PTransformTranslation", "org.apache.beam.runners.core.construction.graph.PipelineNode", "org.apache.beam.sdk.values.PCollection", "org.hamcrest.Matchers", "org.junit.Assert" ]
import org.apache.beam.model.pipeline.v1.RunnerApi; import org.apache.beam.runners.core.construction.PTransformTranslation; import org.apache.beam.runners.core.construction.graph.PipelineNode; import org.apache.beam.sdk.values.PCollection; import org.hamcrest.Matchers; import org.junit.Assert;
import org.apache.beam.model.pipeline.v1.*; import org.apache.beam.runners.core.construction.*; import org.apache.beam.runners.core.construction.graph.*; import org.apache.beam.sdk.values.*; import org.hamcrest.*; import org.junit.*;
[ "org.apache.beam", "org.hamcrest", "org.junit" ]
org.apache.beam; org.hamcrest; org.junit;
391,659
protected Icon getIcon() { return m_scaledIcon; }
Icon function() { return m_scaledIcon; }
/** * Gets the icon for this bean * * @return the icon for this bean */
Gets the icon for this bean
getIcon
{ "repo_name": "dsibournemouth/autoweka", "path": "weka-3.7.7/src/main/java/weka/gui/beans/KnowledgeFlowApp.java", "license": "gpl-3.0", "size": 225820 }
[ "javax.swing.Icon" ]
import javax.swing.Icon;
import javax.swing.*;
[ "javax.swing" ]
javax.swing;
1,231,839
@SuppressWarnings("deprecation") boolean trackMotionScroll(int deltaY, int incrementalDeltaY) { final int childCount = getChildCount(); if (childCount == 0) { return true; } final int firstTop = getScrollChildTop(); //check scroll. final int lastBottom = getS...
@SuppressWarnings(STR) boolean trackMotionScroll(int deltaY, int incrementalDeltaY) { final int childCount = getChildCount(); if (childCount == 0) { return true; } final int firstTop = getScrollChildTop(); final int lastBottom = getScrollChildBottom(); final Rect listPadding = mListPadding; final int end = getHeight() ...
/** * Track a motion scroll * * @param deltaY Amount to offset mMotionView. This is the accumulated delta since the motion * began. Positive numbers mean the user's finger is moving down the screen. * @param incrementalDeltaY Change in deltaY from the previous event. * @return true ...
Track a motion scroll
trackMotionScroll
{ "repo_name": "susong0618/EasyFrame", "path": "library/src/main/java/com/dream/library/widgets/pla/PLA_AbsListView.java", "license": "apache-2.0", "size": 121012 }
[ "android.graphics.Rect", "android.view.View", "android.view.ViewDebug" ]
import android.graphics.Rect; import android.view.View; import android.view.ViewDebug;
import android.graphics.*; import android.view.*;
[ "android.graphics", "android.view" ]
android.graphics; android.view;
2,523,853
protected void addTargetDimensionsPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_DocumentRoot_targetDimensions_feature"), getString("_UI_Pr...
void function(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString(STR), getString(STR, STR, STR), GmlPackage.eINSTANCE.getDocumentRoot_TargetDimensions(), true, false, false, ItemPropertyDescript...
/** * This adds a property descriptor for the Target Dimensions feature. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */
This adds a property descriptor for the Target Dimensions feature.
addTargetDimensionsPropertyDescriptor
{ "repo_name": "markus1978/citygml4emf", "path": "de.hub.citygml.emf.ecore.edit/src/net/opengis/gml/provider/DocumentRootItemProvider.java", "license": "apache-2.0", "size": 218886 }
[ "net.opengis.gml.GmlPackage", "org.eclipse.emf.edit.provider.ComposeableAdapterFactory", "org.eclipse.emf.edit.provider.ItemPropertyDescriptor" ]
import net.opengis.gml.GmlPackage; import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import net.opengis.gml.*; import org.eclipse.emf.edit.provider.*;
[ "net.opengis.gml", "org.eclipse.emf" ]
net.opengis.gml; org.eclipse.emf;
1,356,678
public ImageIcon getSmallIcon() { if (icons[0] != null) { return icons[0]; } else { return icons[1]; } } /** * Returns a regular sized icon * * @return a 24x24 px icon, or {@code null}
ImageIcon function() { if (icons[0] != null) { return icons[0]; } else { return icons[1]; } } /** * Returns a regular sized icon * * @return a 24x24 px icon, or {@code null}
/** * Returns a small icon * * @return a 16x16 if available, a 24x24 px or {@code null} otherwise */
Returns a small icon
getSmallIcon
{ "repo_name": "rapidminer/rapidminer-studio", "path": "src/main/java/com/rapidminer/operator/OperatorDescription.java", "license": "agpl-3.0", "size": 20357 }
[ "javax.swing.ImageIcon" ]
import javax.swing.ImageIcon;
import javax.swing.*;
[ "javax.swing" ]
javax.swing;
1,325,539
@Test public void inspectionSimpleGetterLevelAnnotation() throws Throwable { assertThat("'age' in model", this.props.stream().anyMatch(x -> x.getName().equals("age")), is(true)); PropertyDescriptor prop = this.props.stream().filter(x -> x.getName().equals("age")).findFirst().get(); asser...
void function() throws Throwable { assertThat(STR, this.props.stream().anyMatch(x -> x.getName().equals("age")), is(true)); PropertyDescriptor prop = this.props.stream().filter(x -> x.getName().equals("age")).findFirst().get(); assertThat(STR, this.model.getComparator(prop).getComparator().getClass(), is(IgnoreComparat...
/** * 'Age' property descriptor is annotated at getter level with * * @throws Throwable * @SimpleAnnotation and @IgnoreComparison, * jEntityTest should ignore SimpleAnnotation, and should use only IgnoreComparator */
'Age' property descriptor is annotated at getter level with
inspectionSimpleGetterLevelAnnotation
{ "repo_name": "TestMonkeys/jEntityTest", "path": "src/test/java/org/testmonkeys/jentitytest/test/unit/model/InspectionTestMultiFrameworkAnnotations.java", "license": "apache-2.0", "size": 3389 }
[ "java.beans.PropertyDescriptor", "org.hamcrest.CoreMatchers", "org.junit.Assert", "org.testmonkeys.jentitytest.comparison.strategies.IgnoreComparator" ]
import java.beans.PropertyDescriptor; import org.hamcrest.CoreMatchers; import org.junit.Assert; import org.testmonkeys.jentitytest.comparison.strategies.IgnoreComparator;
import java.beans.*; import org.hamcrest.*; import org.junit.*; import org.testmonkeys.jentitytest.comparison.strategies.*;
[ "java.beans", "org.hamcrest", "org.junit", "org.testmonkeys.jentitytest" ]
java.beans; org.hamcrest; org.junit; org.testmonkeys.jentitytest;
398,443
public void handleError(XmlRpcRequest pRequest, Throwable pError);
void function(XmlRpcRequest pRequest, Throwable pError);
/** Something went wrong, handle error. * @param pRequest The request being performed. * @param pError The error being thrown. */
Something went wrong, handle error
handleError
{ "repo_name": "ninadmore/xmlrpc", "path": "src/main/java/edu/ucsd/xmlrpc/xmlrpc/client/AsyncCallback.java", "license": "apache-2.0", "size": 1474 }
[ "edu.ucsd.xmlrpc.xmlrpc.XmlRpcRequest" ]
import edu.ucsd.xmlrpc.xmlrpc.XmlRpcRequest;
import edu.ucsd.xmlrpc.xmlrpc.*;
[ "edu.ucsd.xmlrpc" ]
edu.ucsd.xmlrpc;
757,425
public boolean registerAsset(String ftpServletUrl, String assetId, File file) throws IOException { if (file.length() > FtpServerServlet.MAX_FILE_SIZE) { throw new IOException("Unable to upload file larger than 5MB"); } uploader.uploadFile(ftpServletUrl, assetId, file, ""); return true; }
boolean function(String ftpServletUrl, String assetId, File file) throws IOException { if (file.length() > FtpServerServlet.MAX_FILE_SIZE) { throw new IOException(STR); } uploader.uploadFile(ftpServletUrl, assetId, file, ""); return true; }
/** * Register asset. * * @param ftpServletUrl * the ftp servlet url * @param assetId * the asset id * @param file * the file * @return true, if successful * @throws IOException * Signals that an I/O exception has occurred. */
Register asset
registerAsset
{ "repo_name": "synergynet/synergynet2.5", "path": "synergynet2.5/src/main/java/apps/mtdesktop/fileutility/AssetRegistry.java", "license": "bsd-3-clause", "size": 4257 }
[ "java.io.File", "java.io.IOException" ]
import java.io.File; import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
1,543,601
@Override public void clear() { TableViewer tableviewer = getTableView(); if( tableviewer != null ) { tableviewer.getTable().removeAll(); } setHasData( false ); updateToolbar(); } protected class VarLabelProvider extends AbstractTreeOwn...
void function() { TableViewer tableviewer = getTableView(); if( tableviewer != null ) { tableviewer.getTable().removeAll(); } setHasData( false ); updateToolbar(); } protected class VarLabelProvider extends AbstractTreeOwnerDrawLabelProvider { public VarLabelProvider( TableViewer viewer ) { super( viewer ); }
/** * (no java doc) * * @see IBasicActions#clear() */
(no java doc)
clear
{ "repo_name": "blackberry/Eclipse-JDE", "path": "net.rim.ejde/src/net/rim/ejde/internal/ui/views/VarContentDebugView.java", "license": "epl-1.0", "size": 21221 }
[ "org.eclipse.jface.viewers.TableViewer" ]
import org.eclipse.jface.viewers.TableViewer;
import org.eclipse.jface.viewers.*;
[ "org.eclipse.jface" ]
org.eclipse.jface;
1,679,502
public List<String> listServerGroups(final CliClient client) { List<String> list = new ArrayList<String>(); ModelNode hostMasterResponse = client.executeForResponse("/:read-children-names(child-type=server-group)"); List<ModelNode> serverNameList = hostMasterResponse.get("result").asList(); ...
List<String> function(final CliClient client) { List<String> list = new ArrayList<String>(); ModelNode hostMasterResponse = client.executeForResponse(STR); List<ModelNode> serverNameList = hostMasterResponse.get(STR).asList(); for (ModelNode serverName : serverNameList) { list.add(serverName.asString()); } return list;...
/** * List all server groups in domain * * @param client cli client to use for running cli operations * @return list of all server groups in domain */
List all server groups in domain
listServerGroups
{ "repo_name": "hpehl/testsuite", "path": "common/src/main/java/org/jboss/hal/testsuite/cli/DomainManager.java", "license": "lgpl-2.1", "size": 22106 }
[ "java.util.ArrayList", "java.util.List", "org.jboss.dmr.ModelNode" ]
import java.util.ArrayList; import java.util.List; import org.jboss.dmr.ModelNode;
import java.util.*; import org.jboss.dmr.*;
[ "java.util", "org.jboss.dmr" ]
java.util; org.jboss.dmr;
2,379,980
static <T> List<T> concurrencyTest(@NotNull Supplier<? extends T> action, int concurrency) { Requires.notNull(action, "action"); if (concurrency == -1) { concurrency = Math.min(Runtime.getRuntime().availableProcessors(), ForkJoinPool.getCommonPoolParallelism()); } Assume.assumeTrue("The test machine does...
static <T> List<T> concurrencyTest(@NotNull Supplier<? extends T> action, int concurrency) { Requires.notNull(action, STR); if (concurrency == -1) { concurrency = Math.min(Runtime.getRuntime().availableProcessors(), ForkJoinPool.getCommonPoolParallelism()); } Assume.assumeTrue(STR + concurrency, Runtime.getRuntime().av...
/** * Executes the specified function on multiple threads simultaneously. * * @param <T> The type of the value returned by the specified function. * @param action The function to invoke concurrently. * @param concurrency The level of concurrency. */
Executes the specified function on multiple threads simultaneously
concurrencyTest
{ "repo_name": "tunnelvisionlabs/java-threading", "path": "test/com/tunnelvisionlabs/util/concurrent/TestUtilities.java", "license": "mit", "size": 9266 }
[ "com.tunnelvisionlabs.util.validation.NotNull", "com.tunnelvisionlabs.util.validation.Requires", "java.util.ArrayList", "java.util.List", "java.util.concurrent.BrokenBarrierException", "java.util.concurrent.CompletableFuture", "java.util.concurrent.CyclicBarrier", "java.util.concurrent.ForkJoinPool", ...
import com.tunnelvisionlabs.util.validation.NotNull; import com.tunnelvisionlabs.util.validation.Requires; import java.util.ArrayList; import java.util.List; import java.util.concurrent.BrokenBarrierException; import java.util.concurrent.CompletableFuture; import java.util.concurrent.CyclicBarrier; import java.util.con...
import com.tunnelvisionlabs.util.validation.*; import java.util.*; import java.util.concurrent.*; import java.util.function.*; import java.util.stream.*; import org.junit.*;
[ "com.tunnelvisionlabs.util", "java.util", "org.junit" ]
com.tunnelvisionlabs.util; java.util; org.junit;
43,718
public GutterIconInfo addOffsetTrackingIcon(int offs, Icon icon, String tip) throws BadLocationException { return iconArea.addOffsetTrackingIcon(offs, icon, tip); }
GutterIconInfo function(int offs, Icon icon, String tip) throws BadLocationException { return iconArea.addOffsetTrackingIcon(offs, icon, tip); }
/** * Adds an icon that tracks an offset in the document, and is displayed * adjacent to the line numbers. This is useful for marking things such * as source code errors. * * @param offs The offset to track. * @param icon The icon to display. This should be small (say 16x16). * @param tip An opti...
Adds an icon that tracks an offset in the document, and is displayed adjacent to the line numbers. This is useful for marking things such as source code errors
addOffsetTrackingIcon
{ "repo_name": "fanruan/finereport-design", "path": "designer_base/src/com/fr/design/gui/syntax/ui/rtextarea/Gutter.java", "license": "gpl-3.0", "size": 26284 }
[ "javax.swing.Icon", "javax.swing.text.BadLocationException" ]
import javax.swing.Icon; import javax.swing.text.BadLocationException;
import javax.swing.*; import javax.swing.text.*;
[ "javax.swing" ]
javax.swing;
2,129,736
public void onViewCaptured(View capturedChild, int activePointerId) { }
void function(View capturedChild, int activePointerId) { }
/** * Called when a child view is captured for dragging or settling. The ID * of the pointer currently dragging the captured view is supplied. If * activePointerId is identified as {@link #INVALID_POINTER} the capture * is programmatic instead of pointer-initiated. * * @param capturedChild * ...
Called when a child view is captured for dragging or settling. The ID of the pointer currently dragging the captured view is supplied. If activePointerId is identified as <code>#INVALID_POINTER</code> the capture is programmatic instead of pointer-initiated
onViewCaptured
{ "repo_name": "Consoar/zhangshangwuda", "path": "src/imid/swipebacklayout/lib/ViewDragHelper.java", "license": "apache-2.0", "size": 53630 }
[ "android.view.View" ]
import android.view.View;
import android.view.*;
[ "android.view" ]
android.view;
1,179,215
ListTasksRequestBuilder prepareListTasks(String... nodesIds);
ListTasksRequestBuilder prepareListTasks(String... nodesIds);
/** * List active tasks */
List active tasks
prepareListTasks
{ "repo_name": "coding0011/elasticsearch", "path": "server/src/main/java/org/elasticsearch/client/ClusterAdminClient.java", "license": "apache-2.0", "size": 26995 }
[ "org.elasticsearch.action.admin.cluster.node.tasks.list.ListTasksRequestBuilder" ]
import org.elasticsearch.action.admin.cluster.node.tasks.list.ListTasksRequestBuilder;
import org.elasticsearch.action.admin.cluster.node.tasks.list.*;
[ "org.elasticsearch.action" ]
org.elasticsearch.action;
2,036,599
public Iterator<Row> iterator() { return _rows.iterator(); }
Iterator<Row> function() { return _rows.iterator(); }
/** * Gets a row iterator. * * @return an iterator over the rows */
Gets a row iterator
iterator
{ "repo_name": "jimmoores/quandl4j", "path": "core/src/main/java/com/jimmoores/quandl/TabularResult.java", "license": "apache-2.0", "size": 3554 }
[ "java.util.Iterator" ]
import java.util.Iterator;
import java.util.*;
[ "java.util" ]
java.util;
1,645,585
public Timestamp getCreated(); public static final String COLUMNNAME_CreatedBy = "CreatedBy";
Timestamp function(); public static final String COLUMNNAME_CreatedBy = STR;
/** Get Created. * Date this record was created */
Get Created. Date this record was created
getCreated
{ "repo_name": "pplatek/adempiere", "path": "base/src/org/compiere/model/I_M_Product_Category_Acct.java", "license": "gpl-2.0", "size": 16636 }
[ "java.sql.Timestamp" ]
import java.sql.Timestamp;
import java.sql.*;
[ "java.sql" ]
java.sql;
2,094,379
protected static String getLocation(final HttpResponse response) { return response.getFirstHeader("Location").getValue(); }
static String function(final HttpResponse response) { return response.getFirstHeader(STR).getValue(); }
/** * Retrieve the value of the first Location header from an open HTTP response. * * @param response the open response * @return the value of the first Location header in the response */
Retrieve the value of the first Location header from an open HTTP response
getLocation
{ "repo_name": "bseeger/fcrepo4", "path": "fcrepo-http-api/src/test/java/org/fcrepo/integration/http/api/AbstractResourceIT.java", "license": "apache-2.0", "size": 26030 }
[ "org.apache.http.HttpResponse" ]
import org.apache.http.HttpResponse;
import org.apache.http.*;
[ "org.apache.http" ]
org.apache.http;
891,208
private HttpResponse execute(HttpRequestBase request) throws IOException { // execute! try { if (mConnection == null) { SchemeRegistry registry = new SchemeRegistry(); try { registry.register(new Scheme("http", PlainSocketFactory.getSo...
HttpResponse function(HttpRequestBase request) throws IOException { try { if (mConnection == null) { SchemeRegistry registry = new SchemeRegistry(); try { registry.register(new Scheme("http", PlainSocketFactory.getSocketFactory(), 80)); boolean acceptAnyCertificate = Preferences.getAcceptAnyCertificate(mContext); regis...
/** * Executes the given request. * * @param request * the request * @return the response * @throws IOException */
Executes the given request
execute
{ "repo_name": "igorexax3mal/androidclient", "path": "app/src/main/java/org/kontalk/upload/KontalkBoxUploadConnection.java", "license": "gpl-3.0", "size": 9621 }
[ "java.io.IOException", "org.apache.http.HttpResponse", "org.apache.http.client.ClientProtocolException", "org.apache.http.client.methods.HttpRequestBase", "org.apache.http.client.params.ClientPNames", "org.apache.http.conn.ClientConnectionManager", "org.apache.http.conn.scheme.PlainSocketFactory", "or...
import java.io.IOException; import org.apache.http.HttpResponse; import org.apache.http.client.ClientProtocolException; import org.apache.http.client.methods.HttpRequestBase; import org.apache.http.client.params.ClientPNames; import org.apache.http.conn.ClientConnectionManager; import org.apache.http.conn.scheme.PlainS...
import java.io.*; import org.apache.http.*; import org.apache.http.client.*; import org.apache.http.client.methods.*; import org.apache.http.client.params.*; import org.apache.http.conn.*; import org.apache.http.conn.scheme.*; import org.apache.http.impl.client.*; import org.apache.http.impl.conn.*; import org.apache.h...
[ "java.io", "org.apache.http", "org.kontalk.client", "org.kontalk.util" ]
java.io; org.apache.http; org.kontalk.client; org.kontalk.util;
2,110,503
public HudsonUpgradeJob getHudsonJob() { List<UpdateCenterJob> jobList = getJobs(); Collections.reverse(jobList); for (UpdateCenterJob job : jobList) if (job instanceof HudsonUpgradeJob) return (HudsonUpgradeJob)job; return null; }
HudsonUpgradeJob function() { List<UpdateCenterJob> jobList = getJobs(); Collections.reverse(jobList); for (UpdateCenterJob job : jobList) if (job instanceof HudsonUpgradeJob) return (HudsonUpgradeJob)job; return null; }
/** * Returns latest Jenkins upgrade job. * @return HudsonUpgradeJob or null if not found */
Returns latest Jenkins upgrade job
getHudsonJob
{ "repo_name": "damianszczepanik/jenkins", "path": "core/src/main/java/hudson/model/UpdateCenter.java", "license": "mit", "size": 97521 }
[ "java.util.Collections", "java.util.List" ]
import java.util.Collections; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,112,607
public void addProfileInfo(ProfileInfo info) { computeStatistics( info.getSkylarkUserFunctionTasks(), info.getCompiledSkylarkUserFunctionTasks(), info.getSkylarkBuiltinFunctionTasks()); }
void function(ProfileInfo info) { computeStatistics( info.getSkylarkUserFunctionTasks(), info.getCompiledSkylarkUserFunctionTasks(), info.getSkylarkBuiltinFunctionTasks()); }
/** * Adds Skylark function task durations from a {@link ProfileInfo} file. */
Adds Skylark function task durations from a <code>ProfileInfo</code> file
addProfileInfo
{ "repo_name": "aehlig/bazel", "path": "src/main/java/com/google/devtools/build/lib/profiler/statistics/SkylarkStatistics.java", "license": "apache-2.0", "size": 9273 }
[ "com.google.devtools.build.lib.profiler.analysis.ProfileInfo" ]
import com.google.devtools.build.lib.profiler.analysis.ProfileInfo;
import com.google.devtools.build.lib.profiler.analysis.*;
[ "com.google.devtools" ]
com.google.devtools;
113,505
public int readShort() throws IOException { return (readByte() << 8 | readByte()); }
int function() throws IOException { return (readByte() << 8 readByte()); }
/** * <P> * Read a 'short' off the input stream. * </P> * * @return The short from the input stream. * @exception java.io.IOException * Thrown if the end-of-file is encountered trying to read * the next short. * @throws java.io.IOException if an...
Read a 'short' off the input stream.
readShort
{ "repo_name": "tharindum/opennms_dashboard", "path": "opennms-provision/opennms-detector-datagram/src/main/java/org/opennms/netmgt/provision/support/dns/DNSInputStream.java", "license": "gpl-2.0", "size": 8184 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
2,599,300
@Test public void testMessageOrderPersistence_2() throws Exception { Connection conn = null; try { conn = createConnection(); Session sessSend = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageProducer prod = sessSend.createProducer(queue1); TextMessag...
void function() throws Exception { Connection conn = null; try { conn = createConnection(); Session sessSend = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageProducer prod = sessSend.createProducer(queue1); TextMessage m0 = sessSend.createTextMessage("a"); TextMessage m1 = sessSend.createTextMessage("b"); ...
/** * Second test that message order survives a restart */
Second test that message order survives a restart
testMessageOrderPersistence_2
{ "repo_name": "clebertsuconic/activemq-artemis", "path": "tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/PersistenceTest.java", "license": "apache-2.0", "size": 17472 }
[ "javax.jms.Connection", "javax.jms.DeliveryMode", "javax.jms.MessageConsumer", "javax.jms.MessageProducer", "javax.jms.Session", "javax.jms.TextMessage", "org.apache.activemq.artemis.jms.tests.util.ProxyAssertSupport" ]
import javax.jms.Connection; import javax.jms.DeliveryMode; import javax.jms.MessageConsumer; import javax.jms.MessageProducer; import javax.jms.Session; import javax.jms.TextMessage; import org.apache.activemq.artemis.jms.tests.util.ProxyAssertSupport;
import javax.jms.*; import org.apache.activemq.artemis.jms.tests.util.*;
[ "javax.jms", "org.apache.activemq" ]
javax.jms; org.apache.activemq;
2,842,128
public static BrewingEvent.Finish createBrewingEventFinish(Cause cause, List<ItemStackSnapshot> brewedItemStacks, ItemStackSnapshot ingredient, BrewingStand targetTile) { HashMap<String, Object> values = new HashMap<>(); values.put("cause", cause); values.put("brewedItemStacks", brewedItemSt...
static BrewingEvent.Finish function(Cause cause, List<ItemStackSnapshot> brewedItemStacks, ItemStackSnapshot ingredient, BrewingStand targetTile) { HashMap<String, Object> values = new HashMap<>(); values.put("cause", cause); values.put(STR, brewedItemStacks); values.put(STR, ingredient); values.put(STR, targetTile); r...
/** * AUTOMATICALLY GENERATED, DO NOT EDIT. * Creates a new instance of * {@link org.spongepowered.api.event.block.tileentity.BrewingEvent.Finish}. * * @param cause The cause * @param brewedItemStacks The brewed item stacks * @param ingredient The ingredient * @param targetTile T...
AUTOMATICALLY GENERATED, DO NOT EDIT. Creates a new instance of <code>org.spongepowered.api.event.block.tileentity.BrewingEvent.Finish</code>
createBrewingEventFinish
{ "repo_name": "kashike/SpongeAPI", "path": "src/main/java/org/spongepowered/api/event/SpongeEventFactory.java", "license": "mit", "size": 215110 }
[ "java.util.HashMap", "java.util.List", "org.spongepowered.api.block.tileentity.carrier.BrewingStand", "org.spongepowered.api.event.block.tileentity.BrewingEvent", "org.spongepowered.api.event.cause.Cause", "org.spongepowered.api.item.inventory.ItemStackSnapshot" ]
import java.util.HashMap; import java.util.List; import org.spongepowered.api.block.tileentity.carrier.BrewingStand; import org.spongepowered.api.event.block.tileentity.BrewingEvent; import org.spongepowered.api.event.cause.Cause; import org.spongepowered.api.item.inventory.ItemStackSnapshot;
import java.util.*; import org.spongepowered.api.block.tileentity.carrier.*; import org.spongepowered.api.event.block.tileentity.*; import org.spongepowered.api.event.cause.*; import org.spongepowered.api.item.inventory.*;
[ "java.util", "org.spongepowered.api" ]
java.util; org.spongepowered.api;
1,946,656
public void markBlockReplicasAsCorrupt(Block oldBlock, BlockInfo block, long oldGenerationStamp, long oldNumBytes, DatanodeStorageInfo[] newStorages) throws IOException { assert namesystem.hasWriteLock(); BlockToMarkCorrupt b = null; if (block.getGenerationStamp() != oldGenerationStamp)...
void function(Block oldBlock, BlockInfo block, long oldGenerationStamp, long oldNumBytes, DatanodeStorageInfo[] newStorages) throws IOException { assert namesystem.hasWriteLock(); BlockToMarkCorrupt b = null; if (block.getGenerationStamp() != oldGenerationStamp) { b = new BlockToMarkCorrupt(oldBlock, block, oldGenerati...
/** * Mark block replicas as corrupt except those on the storages in * newStorages list. */
Mark block replicas as corrupt except those on the storages in newStorages list
markBlockReplicasAsCorrupt
{ "repo_name": "dierobotsdie/hadoop", "path": "hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/BlockManager.java", "license": "apache-2.0", "size": 194556 }
[ "java.io.IOException", "org.apache.hadoop.hdfs.protocol.Block", "org.apache.hadoop.hdfs.server.blockmanagement.CorruptReplicasMap" ]
import java.io.IOException; import org.apache.hadoop.hdfs.protocol.Block; import org.apache.hadoop.hdfs.server.blockmanagement.CorruptReplicasMap;
import java.io.*; import org.apache.hadoop.hdfs.protocol.*; import org.apache.hadoop.hdfs.server.blockmanagement.*;
[ "java.io", "org.apache.hadoop" ]
java.io; org.apache.hadoop;
2,519,362
public int getMaxAvailableHeight(View anchor, int yOffset, boolean ignoreBottomDecorations) { final Rect displayFrame = new Rect(); anchor.getWindowVisibleDisplayFrame(displayFrame); final int[] anchorPos = mDrawingLocation; anchor.getLocationOnScreen(anchorPos); int bottomEdge = displayFrame.bottom; ...
int function(View anchor, int yOffset, boolean ignoreBottomDecorations) { final Rect displayFrame = new Rect(); anchor.getWindowVisibleDisplayFrame(displayFrame); final int[] anchorPos = mDrawingLocation; anchor.getLocationOnScreen(anchorPos); int bottomEdge = displayFrame.bottom; if (ignoreBottomDecorations) { Resourc...
/** * Returns the maximum height that is available for the popup to be * completely shown, optionally ignoring any bottom decorations such as * the input method. It is recommended that this height be the maximum for * the popup's height, otherwise it is possible that the popup will be * clipped. * * @par...
Returns the maximum height that is available for the popup to be completely shown, optionally ignoring any bottom decorations such as the input method. It is recommended that this height be the maximum for the popup's height, otherwise it is possible that the popup will be clipped
getMaxAvailableHeight
{ "repo_name": "haikuowuya/android_system_code", "path": "src/android/widget/PopupWindow.java", "license": "apache-2.0", "size": 51980 }
[ "android.content.res.Resources", "android.graphics.Rect", "android.view.View" ]
import android.content.res.Resources; import android.graphics.Rect; import android.view.View;
import android.content.res.*; import android.graphics.*; import android.view.*;
[ "android.content", "android.graphics", "android.view" ]
android.content; android.graphics; android.view;
1,797,164
public Provider<T> getDelegate() { return delegate; }
Provider<T> function() { return delegate; }
/** * Returns the delegate provider, or {@code null} if it has not yet been initialized. The delegate * will be initialized when this element is processed, or otherwise used to create an injector. */
Returns the delegate provider, or null if it has not yet been initialized. The delegate will be initialized when this element is processed, or otherwise used to create an injector
getDelegate
{ "repo_name": "emmby/guice", "path": "core/src/com/google/inject/spi/ProviderLookup.java", "license": "apache-2.0", "size": 3524 }
[ "com.google.inject.Provider" ]
import com.google.inject.Provider;
import com.google.inject.*;
[ "com.google.inject" ]
com.google.inject;
965,075
public void centerFrame() { final Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); final Dimension frameSize = this.getSize(); if (frameSize.height > screenSize.height) { frameSize.height = screenSize.height; } if (frameSize.width > screenSize.width) { frameSize.width = screenSize....
void function() { final Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); final Dimension frameSize = this.getSize(); if (frameSize.height > screenSize.height) { frameSize.height = screenSize.height; } if (frameSize.width > screenSize.width) { frameSize.width = screenSize.width; } this.setLocation((sc...
/** * Centre this frame. * */
Centre this frame
centerFrame
{ "repo_name": "GillesMoris/OSS", "path": "src/org/parosproxy/paros/view/AbstractFrame.java", "license": "apache-2.0", "size": 10722 }
[ "java.awt.Dimension", "java.awt.Toolkit", "javax.swing.JFrame" ]
import java.awt.Dimension; import java.awt.Toolkit; import javax.swing.JFrame;
import java.awt.*; import javax.swing.*;
[ "java.awt", "javax.swing" ]
java.awt; javax.swing;
1,284,969
private void processRelease(Vertex release) { for (Edge edge : release.getEdges(OUT, "HAS_SCHEMA_VERSION")) { edge.setProperty("active", true); edge.setProperty("migrationStatus", "COMPLETED"); } for (Edge edge : release.getEdges(OUT, "HAS_MICROSCHEMA_VERSION")) { edge.setProperty("active", true); ...
void function(Vertex release) { for (Edge edge : release.getEdges(OUT, STR)) { edge.setProperty(STR, true); edge.setProperty(STR, STR); } for (Edge edge : release.getEdges(OUT, STR)) { edge.setProperty(STR, true); edge.setProperty(STR, STR); } }
/** * Add the new properties to the schema and microschema version edges * * @param release */
Add the new properties to the schema and microschema version edges
processRelease
{ "repo_name": "gentics/mesh", "path": "changelog-system/src/main/java/com/gentics/mesh/changelog/changes/UpdateReleaseSchemaEdge.java", "license": "apache-2.0", "size": 1842 }
[ "com.tinkerpop.blueprints.Edge", "com.tinkerpop.blueprints.Vertex" ]
import com.tinkerpop.blueprints.Edge; import com.tinkerpop.blueprints.Vertex;
import com.tinkerpop.blueprints.*;
[ "com.tinkerpop.blueprints" ]
com.tinkerpop.blueprints;
958,365
//----------------------------------------------------------------------- public boolean equals(Object obj) { if (obj == this) { return true; } if (obj instanceof IntList) { IntList other = (IntList) obj; if (size() != other.size()) { ...
boolean function(Object obj) { if (obj == this) { return true; } if (obj instanceof IntList) { IntList other = (IntList) obj; if (size() != other.size()) { return false; } IntIterator it1 = listIterator(); IntIterator it2 = other.listIterator(); while (it1.hasNext() && it2.hasNext()) { if (it1.nextInt() != it2.nextInt(...
/** * Compares this list to another as per the contract of <code>List</code>. * * @param obj the object to compare to * @return <code>true</code> if the lists are equal */
Compares this list to another as per the contract of <code>List</code>
equals
{ "repo_name": "fengshao0907/joda-primitives", "path": "src/main/java/org/joda/primitives/list/impl/AbstractIntList.java", "license": "apache-2.0", "size": 30958 }
[ "java.util.Iterator", "java.util.List", "org.joda.primitives.iterator.IntIterator", "org.joda.primitives.list.IntList" ]
import java.util.Iterator; import java.util.List; import org.joda.primitives.iterator.IntIterator; import org.joda.primitives.list.IntList;
import java.util.*; import org.joda.primitives.iterator.*; import org.joda.primitives.list.*;
[ "java.util", "org.joda.primitives" ]
java.util; org.joda.primitives;
1,168,043
@ReactMethod public void getBase64ForTag(String uri, Callback success, Callback error) { new GetBase64Task(getReactApplicationContext(), uri, success, error) .executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR); } private class GetBase64Task extends GuardedAsyncTask<Void, Void> { private final St...
void function(String uri, Callback success, Callback error) { new GetBase64Task(getReactApplicationContext(), uri, success, error) .executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR); } private class GetBase64Task extends GuardedAsyncTask<Void, Void> { private final String mUri; private final Callback mSuccess; private ...
/** * Calculate the base64 representation for an image. The "tag" comes from iOS naming. * * @param uri the URI of the image, file:// or content:// * @param success callback to be invoked with the base64 string as the only argument * @param error callback to be invoked on error (e.g. file not found, not ...
Calculate the base64 representation for an image. The "tag" comes from iOS naming
getBase64ForTag
{ "repo_name": "Bhullnatik/react-native", "path": "ReactAndroid/src/main/java/com/facebook/react/modules/camera/ImageStoreManager.java", "license": "bsd-3-clause", "size": 3637 }
[ "android.os.AsyncTask", "com.facebook.react.bridge.Callback", "com.facebook.react.bridge.GuardedAsyncTask", "com.facebook.react.bridge.ReactContext" ]
import android.os.AsyncTask; import com.facebook.react.bridge.Callback; import com.facebook.react.bridge.GuardedAsyncTask; import com.facebook.react.bridge.ReactContext;
import android.os.*; import com.facebook.react.bridge.*;
[ "android.os", "com.facebook.react" ]
android.os; com.facebook.react;
890,088
public CodeSigner[] getCodeSigners() { final SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkPermission(new VirtualFilePermission(getPathName(), "read")); } final VFS.Mount mount = VFS.getMount(this); return mount.getFileSystem().getCod...
CodeSigner[] function() { final SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkPermission(new VirtualFilePermission(getPathName(), "read")); } final VFS.Mount mount = VFS.getMount(this); return mount.getFileSystem().getCodeSigners(mount.getMountPoint(), this); }
/** * Get the {@link CodeSigner}s for a the virtual file. * * @return the {@link CodeSigner}s for the virtual file, or {@code null} if not signed */
Get the <code>CodeSigner</code>s for a the virtual file
getCodeSigners
{ "repo_name": "psakar/jboss-vfs", "path": "src/main/java/org/jboss/vfs/VirtualFile.java", "license": "apache-2.0", "size": 22046 }
[ "java.security.CodeSigner" ]
import java.security.CodeSigner;
import java.security.*;
[ "java.security" ]
java.security;
759,746
SampleStream getStream();
SampleStream getStream();
/** * Returns the {@link SampleStream} being consumed, or null if the renderer is disabled. */
Returns the <code>SampleStream</code> being consumed, or null if the renderer is disabled
getStream
{ "repo_name": "rchookan/parsigram", "path": "TMessagesProj/src/main/java/org/telegram/messenger/exoplayer2/Renderer.java", "license": "gpl-2.0", "size": 9820 }
[ "org.telegram.messenger.exoplayer2.source.SampleStream" ]
import org.telegram.messenger.exoplayer2.source.SampleStream;
import org.telegram.messenger.exoplayer2.source.*;
[ "org.telegram.messenger" ]
org.telegram.messenger;
1,078,697
public boolean startDrag(int position, int dragFlags, int deltaX, int deltaY) { if (!mInTouchEvent || mFloatViewManager == null) { return false; } View v = mFloatViewManager.onCreateFloatView(position); if (v == null) { return false; } else { ...
boolean function(int position, int dragFlags, int deltaX, int deltaY) { if (!mInTouchEvent mFloatViewManager == null) { return false; } View v = mFloatViewManager.onCreateFloatView(position); if (v == null) { return false; } else { return startDrag(position, v, dragFlags, deltaX, deltaY); } }
/** * Start a drag of item at <code>position</code> using the * registered FloatViewManager. Calls through * to {@link #startDrag(int,View,int,int,int)} after obtaining * the floating View from the FloatViewManager. * * @param position Item to drag. * @param dragFlags Flags that restr...
Start a drag of item at <code>position</code> using the registered FloatViewManager. Calls through to <code>#startDrag(int,View,int,int,int)</code> after obtaining the floating View from the FloatViewManager
startDrag
{ "repo_name": "nibdev/otrta", "path": "src/com/nibdev/otrtav2/view/custom/dslv/DragSortListView.java", "license": "mit", "size": 100490 }
[ "android.view.View" ]
import android.view.View;
import android.view.*;
[ "android.view" ]
android.view;
2,318,076
protected List<File> internalFind(final String aFileName) { final List<File> foundFiles = new ArrayList<File>(); // Test on each PSEM2M root directory for (final File rootDir : pPlatformDirs.getPlatformRootDirs()) { final File testFile = new File(rootDir, aFileName); ...
List<File> function(final String aFileName) { final List<File> foundFiles = new ArrayList<File>(); for (final File rootDir : pPlatformDirs.getPlatformRootDirs()) { final File testFile = new File(rootDir, aFileName); if (testFile.exists()) { foundFiles.add(testFile); } } final File testFile = new File(aFileName); if (te...
/** * Tries to find the given file in the platform directories. Never returns * null. * * @param aFileName * Name of the file to search for * @return The list of the corresponding files (never null, can be empty) */
Tries to find the given file in the platform directories. Never returns null
internalFind
{ "repo_name": "isandlaTech/cohorte-runtime", "path": "java/boot/org.psem2m.isolates.base/src/org/psem2m/isolates/base/dirs/impl/CFileFinderSvc.java", "license": "apache-2.0", "size": 5362 }
[ "java.io.File", "java.util.ArrayList", "java.util.List" ]
import java.io.File; import java.util.ArrayList; import java.util.List;
import java.io.*; import java.util.*;
[ "java.io", "java.util" ]
java.io; java.util;
1,519,369
public File getConfigFile() { // I believe the easiest way to get the base folder (e.g craftbukkit set via -P) for plugins to use // is to abuse the plugin object we already have // plugin.getDataFolder() => base/plugins/PluginA/ // pluginsFolder => base/plugins/ // The base ...
File function() { File pluginsFolder = plugin.getDataFolder().getParentFile(); return new File(new File(pluginsFolder, STR), STR); }
/** * Gets the File object of the config file that should be used to store data such as the GUID and opt-out status * * @return the File object for the config file */
Gets the File object of the config file that should be used to store data such as the GUID and opt-out status
getConfigFile
{ "repo_name": "codebucketdev/BungeeSigns", "path": "src/org/mcstats/Metrics.java", "license": "gpl-3.0", "size": 24818 }
[ "java.io.File" ]
import java.io.File;
import java.io.*;
[ "java.io" ]
java.io;
580,087
public void authenticate(GSSCredential credential) throws IOException, ServerException { authenticate(credential, null); }
void function(GSSCredential credential) throws IOException, ServerException { authenticate(credential, null); }
/** * Performs authentication with specified user credentials. * * @param credential user credentials to use. * @throws IOException on i/o error * @throws ServerException on server refusal or faulty server behavior */
Performs authentication with specified user credentials
authenticate
{ "repo_name": "jglobus/JGlobus", "path": "gridftp/src/main/java/org/globus/ftp/extended/GridFTPControlChannel.java", "license": "apache-2.0", "size": 10669 }
[ "java.io.IOException", "org.globus.ftp.exception.ServerException", "org.ietf.jgss.GSSCredential" ]
import java.io.IOException; import org.globus.ftp.exception.ServerException; import org.ietf.jgss.GSSCredential;
import java.io.*; import org.globus.ftp.exception.*; import org.ietf.jgss.*;
[ "java.io", "org.globus.ftp", "org.ietf.jgss" ]
java.io; org.globus.ftp; org.ietf.jgss;
1,369,020
public boolean skipSpaces() throws IOException { // load more characters, if needed if (fCurrentEntity.position == fCurrentEntity.count) { load(0, true); } // skip spaces int c = fCurrentEntity.ch[fCurrentEntity.position]; // External ...
boolean function() throws IOException { if (fCurrentEntity.position == fCurrentEntity.count) { load(0, true); } int c = fCurrentEntity.ch[fCurrentEntity.position]; if (fCurrentEntity.isExternal()) { if (XML11Char.isXML11Space(c)) { do { boolean entityChanged = false; if (c == '\n' c == '\r' c == 0x85 c == 0x2028) { fCu...
/** * Skips space characters appearing immediately on the input. * <p> * <strong>Note:</strong> The characters are consumed only if they are * space characters. * * @return Returns true if at least one space character was skipped. * * @throws IOException Thrown if i/o er...
Skips space characters appearing immediately on the input. Note: The characters are consumed only if they are space characters
skipSpaces
{ "repo_name": "machine16/xerces-for-android", "path": "src/mf/org/apache/xerces/impl/XML11EntityScanner.java", "license": "apache-2.0", "size": 61087 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
1,478,637
@Column(name = "last_update", nullable = false) public Timestamp getLastUpdate() { return (Timestamp) getValue(11); }
@Column(name = STR, nullable = false) Timestamp function() { return (Timestamp) getValue(11); }
/** * Getter for <code>public.film.last_update</code>. */
Getter for <code>public.film.last_update</code>
getLastUpdate
{ "repo_name": "mesan/fag-ark-persistering-test-jooq", "path": "fag-ark-persistering-test-jooq-spring/src/main/java/no/mesan/ark/persistering/generated/tables/records/FilmRecord.java", "license": "unlicense", "size": 12941 }
[ "java.sql.Timestamp", "javax.persistence.Column" ]
import java.sql.Timestamp; import javax.persistence.Column;
import java.sql.*; import javax.persistence.*;
[ "java.sql", "javax.persistence" ]
java.sql; javax.persistence;
1,983,512
public final SortField sortField( NumericType targetNumericType, Object missingValue, MultiValueMode sortMode, Nested nested, boolean reverse ) { XFieldComparatorSource source = comparatorSource(targetNumericType, missingValue, sortMode, nested); ...
final SortField function( NumericType targetNumericType, Object missingValue, MultiValueMode sortMode, Nested nested, boolean reverse ) { XFieldComparatorSource source = comparatorSource(targetNumericType, missingValue, sortMode, nested); if (sortRequiresCustomComparator() nested != null (sortMode != MultiValueMode.MAX...
/** * Returns the {@link SortField} to used for sorting. * Values are casted to the provided <code>targetNumericType</code> type if it doesn't * match the field's <code>numericType</code>. */
Returns the <code>SortField</code> to used for sorting. Values are casted to the provided <code>targetNumericType</code> type if it doesn't match the field's <code>numericType</code>
sortField
{ "repo_name": "ern/elasticsearch", "path": "server/src/main/java/org/elasticsearch/index/fielddata/IndexNumericFieldData.java", "license": "apache-2.0", "size": 8853 }
[ "org.apache.lucene.search.SortField", "org.apache.lucene.search.SortedNumericSelector", "org.apache.lucene.search.SortedNumericSortField", "org.elasticsearch.index.fielddata.IndexFieldData", "org.elasticsearch.search.MultiValueMode" ]
import org.apache.lucene.search.SortField; import org.apache.lucene.search.SortedNumericSelector; import org.apache.lucene.search.SortedNumericSortField; import org.elasticsearch.index.fielddata.IndexFieldData; import org.elasticsearch.search.MultiValueMode;
import org.apache.lucene.search.*; import org.elasticsearch.index.fielddata.*; import org.elasticsearch.search.*;
[ "org.apache.lucene", "org.elasticsearch.index", "org.elasticsearch.search" ]
org.apache.lucene; org.elasticsearch.index; org.elasticsearch.search;
409,123
public Observable<ServiceResponse<Page<ResourceMetricInner>>> listWorkerPoolInstanceMetricsNextSinglePageAsync(final String nextPageLink) { if (nextPageLink == null) { throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); }
Observable<ServiceResponse<Page<ResourceMetricInner>>> function(final String nextPageLink) { if (nextPageLink == null) { throw new IllegalArgumentException(STR); }
/** * Get metrics for a specific instance of a worker pool of an App Service Environment. * Get metrics for a specific instance of a worker pool of an App Service Environment. * ServiceResponse<PageImpl<ResourceMetricInner>> * @param nextPageLink The NextLink from the previous successful call to List...
Get metrics for a specific instance of a worker pool of an App Service Environment. Get metrics for a specific instance of a worker pool of an App Service Environment
listWorkerPoolInstanceMetricsNextSinglePageAsync
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/appservice/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/AppServiceEnvironmentsInner.java", "license": "mit", "size": 664956 }
[ "com.microsoft.azure.Page", "com.microsoft.rest.ServiceResponse" ]
import com.microsoft.azure.Page; import com.microsoft.rest.ServiceResponse;
import com.microsoft.azure.*; import com.microsoft.rest.*;
[ "com.microsoft.azure", "com.microsoft.rest" ]
com.microsoft.azure; com.microsoft.rest;
2,440,124
void checkResultByFile(@TestDataFile @NonNls String expectedFile);
void checkResultByFile(@TestDataFile @NonNls String expectedFile);
/** * Compares the contents of the in-memory editor with the specified file. The trailing whitespaces are not ignored * by the comparison. * * @param expectedFile path to file to check against, relative to the testdata path. */
Compares the contents of the in-memory editor with the specified file. The trailing whitespaces are not ignored by the comparison
checkResultByFile
{ "repo_name": "android-ia/platform_tools_idea", "path": "platform/testFramework/src/com/intellij/testFramework/fixtures/CodeInsightTestFixture.java", "license": "apache-2.0", "size": 18792 }
[ "com.intellij.testFramework.TestDataFile", "org.jetbrains.annotations.NonNls" ]
import com.intellij.testFramework.TestDataFile; import org.jetbrains.annotations.NonNls;
import com.intellij.*; import org.jetbrains.annotations.*;
[ "com.intellij", "org.jetbrains.annotations" ]
com.intellij; org.jetbrains.annotations;
2,161,947
private void performIteration(GridClientData data) throws GridClientException { if (rnd.nextDouble() <= WRITE_PROB) data.put(rnd.nextInt(KEY_COUNT), values[rnd.nextInt(KEY_COUNT)]); else data.get(rnd.nextInt(KEY_COUNT)); iters++; } ...
void function(GridClientData data) throws GridClientException { if (rnd.nextDouble() <= WRITE_PROB) data.put(rnd.nextInt(KEY_COUNT), values[rnd.nextInt(KEY_COUNT)]); else data.get(rnd.nextInt(KEY_COUNT)); iters++; } }
/** * Performs test iteration. * @param data client data to operate on. * @throws GridClientException If failed. */
Performs test iteration
performIteration
{ "repo_name": "chandresh-pancholi/ignite", "path": "modules/clients/src/test/java/org/apache/ignite/loadtests/client/ClientCacheBenchmark.java", "license": "apache-2.0", "size": 8504 }
[ "org.apache.ignite.internal.client.GridClientData", "org.apache.ignite.internal.client.GridClientException" ]
import org.apache.ignite.internal.client.GridClientData; import org.apache.ignite.internal.client.GridClientException;
import org.apache.ignite.internal.client.*;
[ "org.apache.ignite" ]
org.apache.ignite;
1,182,079
@javax.annotation.Nullable @ApiModelProperty( value = "PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is beta-level, gated by the NonPreemptingPriority feature-gate.") public String g...
@javax.annotation.Nullable @ApiModelProperty( value = STR) String function() { return preemptionPolicy; }
/** * PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, * PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is beta-level, * gated by the NonPreemptingPriority feature-gate. * * @return preemptionPolicy */
PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is beta-level, gated by the NonPreemptingPriority feature-gate
getPreemptionPolicy
{ "repo_name": "kubernetes-client/java", "path": "kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClass.java", "license": "apache-2.0", "size": 9963 }
[ "io.swagger.annotations.ApiModelProperty" ]
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.*;
[ "io.swagger.annotations" ]
io.swagger.annotations;
2,776,812
@Test public void testFlushingWhenLogRolling() throws Exception { TableName tableName = TableName.valueOf("testFlushingWhenLogRolling"); Configuration conf = TEST_UTIL.getConfiguration(); conf.setLong(HConstants.HREGION_MEMSTORE_FLUSH_SIZE, 128 * 1024 * 1024); conf.set(FlushPolicyFactory.HBASE_FLUSH...
void function() throws Exception { TableName tableName = TableName.valueOf(STR); Configuration conf = TEST_UTIL.getConfiguration(); conf.setLong(HConstants.HREGION_MEMSTORE_FLUSH_SIZE, 128 * 1024 * 1024); conf.set(FlushPolicyFactory.HBASE_FLUSH_POLICY_KEY, FlushAllLargeStoresPolicy.class.getName()); long cfFlushSizeLow...
/** * When a log roll is about to happen, we do a flush of the regions who will be affected by the * log roll. These flushes cannot be a selective flushes, otherwise we cannot roll the logs. This * test ensures that we do a full-flush in that scenario. */
When a log roll is about to happen, we do a flush of the regions who will be affected by the log roll. These flushes cannot be a selective flushes, otherwise we cannot roll the logs. This test ensures that we do a full-flush in that scenario
testFlushingWhenLogRolling
{ "repo_name": "ndimiduk/hbase", "path": "hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestPerColumnFamilyFlush.java", "license": "apache-2.0", "size": 29226 }
[ "org.apache.hadoop.conf.Configuration", "org.apache.hadoop.hbase.HConstants", "org.apache.hadoop.hbase.TableName", "org.apache.hadoop.hbase.Waiter", "org.apache.hadoop.hbase.client.Table", "org.apache.hadoop.hbase.util.Pair", "org.junit.Assert" ]
import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.hbase.HConstants; import org.apache.hadoop.hbase.TableName; import org.apache.hadoop.hbase.Waiter; import org.apache.hadoop.hbase.client.Table; import org.apache.hadoop.hbase.util.Pair; import org.junit.Assert;
import org.apache.hadoop.conf.*; import org.apache.hadoop.hbase.*; import org.apache.hadoop.hbase.client.*; import org.apache.hadoop.hbase.util.*; import org.junit.*;
[ "org.apache.hadoop", "org.junit" ]
org.apache.hadoop; org.junit;
1,705,170
public final static void decode(byte[] base64Data, OutputStream os) throws Base64DecodingException, IOException { // remove white spaces int len = removeWhiteSpace(base64Data); if (len%FOURBYTE != 0) { throw new Base64DecodingException("decoding.divisible.four"); //should be divi...
final static void function(byte[] base64Data, OutputStream os) throws Base64DecodingException, IOException { int len = removeWhiteSpace(base64Data); if (len%FOURBYTE != 0) { throw new Base64DecodingException(STR); } int numberQuadruple = (len/FOURBYTE ); if (numberQuadruple == 0) return; byte b1=0,b2=0,b3=0, b4=0; int ...
/** * Decodes Base64 data into outputstream * * @param base64Data Byte array containing Base64 data * @param os the outputstream * @throws IOException * @throws Base64DecodingException */
Decodes Base64 data into outputstream
decode
{ "repo_name": "shchiu/openjdk", "path": "jdk/src/share/classes/com/sun/org/apache/xml/internal/security/utils/Base64.java", "license": "gpl-2.0", "size": 27062 }
[ "com.sun.org.apache.xml.internal.security.exceptions.Base64DecodingException", "java.io.IOException", "java.io.OutputStream" ]
import com.sun.org.apache.xml.internal.security.exceptions.Base64DecodingException; import java.io.IOException; import java.io.OutputStream;
import com.sun.org.apache.xml.internal.security.exceptions.*; import java.io.*;
[ "com.sun.org", "java.io" ]
com.sun.org; java.io;
957,189
public List<String> getBeanValidationGroups();
List<String> function();
/** * Get the beanValidationGroups. * * @return the beanValidationGroups. */
Get the beanValidationGroups
getBeanValidationGroups
{ "repo_name": "darranl/ironjacamar", "path": "common/src/main/java/org/ironjacamar/common/api/metadata/resourceadapter/Activation.java", "license": "epl-1.0", "size": 2503 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,598,923
public boolean inPaintedArea(Point2D pt){ if ((paint == null) || (shape == null)) return false; return shape.contains(pt); }
boolean function(Point2D pt){ if ((paint == null) (shape == null)) return false; return shape.contains(pt); }
/** * Returns true if pt is in the area painted by this shape painter */
Returns true if pt is in the area painted by this shape painter
inPaintedArea
{ "repo_name": "sflyphotobooks/crp-batik", "path": "sources/org/apache/batik/gvt/FillShapePainter.java", "license": "apache-2.0", "size": 4313 }
[ "java.awt.geom.Point2D" ]
import java.awt.geom.Point2D;
import java.awt.geom.*;
[ "java.awt" ]
java.awt;
1,222,601
public Map<WebService, Map<String, String>> getServicesWithOutputContainedInModel( edu.isi.karma.rep.model.Model semanticModel, Integer serviceLimit) { List<Source> serviceList = getSourcesDetailedInfo(serviceLimit); Map<WebService, Map<String, String>> servicesAndMappings = new HashMap<WebServi...
Map<WebService, Map<String, String>> function( edu.isi.karma.rep.model.Model semanticModel, Integer serviceLimit) { List<Source> serviceList = getSourcesDetailedInfo(serviceLimit); Map<WebService, Map<String, String>> servicesAndMappings = new HashMap<WebService, Map<String,String>>(); Model jenaModel = semanticModel.g...
/** * Searches the repository to find the services whose output model is contained in the semantic model parameter. * Note that the services in the return list only include the operations that match the model parameter. * @param semanticModel The input model whose pattern will be searched in the repository * @r...
Searches the repository to find the services whose output model is contained in the semantic model parameter. Note that the services in the return list only include the operations that match the model parameter
getServicesWithOutputContainedInModel
{ "repo_name": "rpiotti/Web-Karma", "path": "karma-common/src/main/java/edu/isi/karma/model/serialization/WebServiceLoader.java", "license": "apache-2.0", "size": 33906 }
[ "com.hp.hpl.jena.rdf.model.Model", "edu.isi.karma.rep.sources.Source", "edu.isi.karma.rep.sources.WebService", "java.util.HashMap", "java.util.Iterator", "java.util.List", "java.util.Map" ]
import com.hp.hpl.jena.rdf.model.Model; import edu.isi.karma.rep.sources.Source; import edu.isi.karma.rep.sources.WebService; import java.util.HashMap; import java.util.Iterator; import java.util.List; import java.util.Map;
import com.hp.hpl.jena.rdf.model.*; import edu.isi.karma.rep.sources.*; import java.util.*;
[ "com.hp.hpl", "edu.isi.karma", "java.util" ]
com.hp.hpl; edu.isi.karma; java.util;
2,155,789
public List<Pair<String, String>> generateAlignment(BufferedReader inMSA, BufferedReader inNuc) { List<Pair<String,String>> result = new ArrayList<>(); // Creates the temporary data structure to store the resulting new alignment List<Pair<String, String>> msa = readSeqs(inMSA); // Reads input protein...
List<Pair<String, String>> function(BufferedReader inMSA, BufferedReader inNuc) { List<Pair<String,String>> result = new ArrayList<>(); List<Pair<String, String>> msa = readSeqs(inMSA); Map<String, String> nuc_hash = readNucMap(inNuc); this.checkLengths(msa, nuc_hash); for (Pair<String, String> pair : msa) { Pair<Strin...
/** * Creates the new alignment * @param inMSA a buffer with the input template MSA * @param inNuc a buffer with the input nucleic acid sequences * @return */
Creates the new alignment
generateAlignment
{ "repo_name": "javieriserte/XI-bio-seq", "path": "XI-Bio-Seq/src/org/jiserte/bioseq/alignnucbyprot/AlignNucByProt.java", "license": "gpl-2.0", "size": 10582 }
[ "java.io.BufferedReader", "java.util.ArrayList", "java.util.List", "java.util.Map" ]
import java.io.BufferedReader; import java.util.ArrayList; import java.util.List; import java.util.Map;
import java.io.*; import java.util.*;
[ "java.io", "java.util" ]
java.io; java.util;
933,257
@Override public ContourMesh getContourMesh(IContourColoringPolicy policy, int xRes, int yRes, double sortedLevels[], float planeAxe, boolean writeText) { for (int n = 1; n < sortedLevels.length; n++) { if (sortedLevels[n] < sortedLevels[n - 1]) { throw new RuntimeException("Levels sent to getContourStrips...
ContourMesh function(IContourColoringPolicy policy, int xRes, int yRes, double sortedLevels[], float planeAxe, boolean writeText) { for (int n = 1; n < sortedLevels.length; n++) { if (sortedLevels[n] < sortedLevels[n - 1]) { throw new RuntimeException(STR); } } double[][] contours = computeContour(xRes, yRes, sortedLev...
/** * Extracts contour lines from the contour dots matrix of contours at * user-defined Heigths in sortedLevels * **/
Extracts contour lines from the contour dots matrix of contours at user-defined Heigths in sortedLevels
getContourMesh
{ "repo_name": "jzy3d/jzy3d-api-0.8.4", "path": "src/api/org/jzy3d/contour/MapperContourMeshGenerator.java", "license": "bsd-3-clause", "size": 6341 }
[ "org.jzy3d.plot3d.primitives.contour.ContourMesh" ]
import org.jzy3d.plot3d.primitives.contour.ContourMesh;
import org.jzy3d.plot3d.primitives.contour.*;
[ "org.jzy3d.plot3d" ]
org.jzy3d.plot3d;
349,861
public static GapPolicy parse(SearchContext context, String text, XContentLocation tokenLocation) { GapPolicy result = null; for (GapPolicy policy : values()) { if (policy.parseField.match(text)) { if (result == null) { result =...
static GapPolicy function(SearchContext context, String text, XContentLocation tokenLocation) { GapPolicy result = null; for (GapPolicy policy : values()) { if (policy.parseField.match(text)) { if (result == null) { result = policy; } else { throw new IllegalStateException(STR + text + STR + STR + Arrays.asList(result,...
/** * Parse a string GapPolicy into the byte enum * * @param context SearchContext this is taking place in * @param text GapPolicy in string format (e.g. "ignore") * @return GapPolicy enum */
Parse a string GapPolicy into the byte enum
parse
{ "repo_name": "wangyuxue/elasticsearch", "path": "core/src/main/java/org/elasticsearch/search/aggregations/pipeline/BucketHelpers.java", "license": "apache-2.0", "size": 8624 }
[ "java.util.ArrayList", "java.util.Arrays", "java.util.List", "org.elasticsearch.common.ParseField", "org.elasticsearch.common.xcontent.XContentLocation", "org.elasticsearch.search.SearchParseException", "org.elasticsearch.search.internal.SearchContext" ]
import java.util.ArrayList; import java.util.Arrays; import java.util.List; import org.elasticsearch.common.ParseField; import org.elasticsearch.common.xcontent.XContentLocation; import org.elasticsearch.search.SearchParseException; import org.elasticsearch.search.internal.SearchContext;
import java.util.*; import org.elasticsearch.common.*; import org.elasticsearch.common.xcontent.*; import org.elasticsearch.search.*; import org.elasticsearch.search.internal.*;
[ "java.util", "org.elasticsearch.common", "org.elasticsearch.search" ]
java.util; org.elasticsearch.common; org.elasticsearch.search;
880,265
public static <A extends AutoCloseable, B extends AutoCloseable, C extends AutoCloseable, D> Try<D> withResources( Fn0<? extends A> fn0, Fn1<? super A, ? extends B> bFn, Fn1<? super B, ? extends C> cFn, Fn1<? super C, ? extends Try<? extends D>> fn) { return w...
static <A extends AutoCloseable, B extends AutoCloseable, C extends AutoCloseable, D> Try<D> function( Fn0<? extends A> fn0, Fn1<? super A, ? extends B> bFn, Fn1<? super B, ? extends C> cFn, Fn1<? super C, ? extends Try<? extends D>> fn) { return withResources(fn0, bFn, b -> withResources(() -> cFn.apply(b), fn::apply)...
/** * Convenience overload of {@link Try#withResources(Fn0, Fn1, Fn1) withResources} that * cascades * two dependent resource creations via nested calls. * * @param fn0 the first resource supplier * @param bFn the second resource function * @param cFn the final resource function ...
Convenience overload of <code>Try#withResources(Fn0, Fn1, Fn1) withResources</code> that cascades two dependent resource creations via nested calls
withResources
{ "repo_name": "palatable/lambda", "path": "src/main/java/com/jnape/palatable/lambda/adt/Try.java", "license": "mit", "size": 18193 }
[ "com.jnape.palatable.lambda.functions.Fn0", "com.jnape.palatable.lambda.functions.Fn1" ]
import com.jnape.palatable.lambda.functions.Fn0; import com.jnape.palatable.lambda.functions.Fn1;
import com.jnape.palatable.lambda.functions.*;
[ "com.jnape.palatable" ]
com.jnape.palatable;
1,292,471
public TimeValue getMaxTaskWaitTime() { if (getQueue().size() == 0) { return NO_WAIT_TIME_VALUE; } long now = System.nanoTime(); long oldestCreationDateInNanos = now; for (Runnable queuedRunnable : getQueue()) { if (queuedRunnable instanceof Prioritiz...
TimeValue function() { if (getQueue().size() == 0) { return NO_WAIT_TIME_VALUE; } long now = System.nanoTime(); long oldestCreationDateInNanos = now; for (Runnable queuedRunnable : getQueue()) { if (queuedRunnable instanceof PrioritizedRunnable) { oldestCreationDateInNanos = Math.min(oldestCreationDateInNanos, ((Priori...
/** * Returns the waiting time of the first task in the queue */
Returns the waiting time of the first task in the queue
getMaxTaskWaitTime
{ "repo_name": "bestwpw/elasticsearch", "path": "core/src/main/java/org/elasticsearch/common/util/concurrent/PrioritizedEsThreadPoolExecutor.java", "license": "apache-2.0", "size": 11006 }
[ "org.elasticsearch.common.unit.TimeValue" ]
import org.elasticsearch.common.unit.TimeValue;
import org.elasticsearch.common.unit.*;
[ "org.elasticsearch.common" ]
org.elasticsearch.common;
402,460
@Override @PostLoad public void postLoad() { if (this.scopes == null) { this.scopes = new HashSet<>(); } }
void function() { if (this.scopes == null) { this.scopes = new HashSet<>(); } }
/** * Initializes the registered service with default values * for fields that are unspecified. Only triggered by JPA. */
Initializes the registered service with default values for fields that are unspecified. Only triggered by JPA
postLoad
{ "repo_name": "dodok1/cas", "path": "support/cas-server-support-oidc-services/src/main/java/org/apereo/cas/services/OidcRegisteredService.java", "license": "apache-2.0", "size": 4265 }
[ "java.util.HashSet" ]
import java.util.HashSet;
import java.util.*;
[ "java.util" ]
java.util;
642,131
public void addViolation(String propertyName, String message, Map<String, Object> messageParameters) { violationOccurred = true; getContextWithMessageParameters(messageParameters) .buildConstraintViolationWithTemplate(message) .addPropertyNode(propertyName) ...
void function(String propertyName, String message, Map<String, Object> messageParameters) { violationOccurred = true; getContextWithMessageParameters(messageParameters) .buildConstraintViolationWithTemplate(message) .addPropertyNode(propertyName) .addConstraintViolation(); }
/** * Adds a new violation to this collector. This also sets {@code violationOccurred} to {@code true}. * * @param propertyName the name of the property * @param message the message of the violation * @param messageParameters a map of message parameters which can be interpolated ...
Adds a new violation to this collector. This also sets violationOccurred to true
addViolation
{ "repo_name": "dropwizard/dropwizard", "path": "dropwizard-validation/src/main/java/io/dropwizard/validation/selfvalidating/ViolationCollector.java", "license": "apache-2.0", "size": 7782 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
2,206,544
public void doJump() { if (this.isJumping) { this.rabbit.startJumping(); this.isJumping = false; } } } static class RabbitMoveHelper extends EntityMoveHelper { private final EntityRabbit rabbit; ...
void function() { if (this.isJumping) { this.rabbit.startJumping(); this.isJumping = false; } } } static class RabbitMoveHelper extends EntityMoveHelper { private final EntityRabbit rabbit; private double nextJumpSpeed; public RabbitMoveHelper(EntityRabbit rabbit) { super(rabbit); this.rabbit = rabbit; }
/** * Called to actually make the entity jump if isJumping is true. */
Called to actually make the entity jump if isJumping is true
doJump
{ "repo_name": "TheGreatAndPowerfulWeegee/wipunknown", "path": "build/tmp/recompileMc/sources/net/minecraft/entity/passive/EntityRabbit.java", "license": "gpl-3.0", "size": 24853 }
[ "net.minecraft.entity.ai.EntityMoveHelper" ]
import net.minecraft.entity.ai.EntityMoveHelper;
import net.minecraft.entity.ai.*;
[ "net.minecraft.entity" ]
net.minecraft.entity;
1,792,075
@AfterClass public static void tearDownAfterClass() throws Exception { ZookeeperUtils.recursiveDelete(zk, "/GolenOrb"); }
static void function() throws Exception { ZookeeperUtils.recursiveDelete(zk, STR); }
/** * Remove nodes used for testing * * @throws Exception */
Remove nodes used for testing
tearDownAfterClass
{ "repo_name": "jzachr/goldenorb", "path": "webapp/src/test/java/org/goldenorb/server/TestLeaderGroupMemberMonitor.java", "license": "apache-2.0", "size": 6126 }
[ "org.goldenorb.zookeeper.ZookeeperUtils" ]
import org.goldenorb.zookeeper.ZookeeperUtils;
import org.goldenorb.zookeeper.*;
[ "org.goldenorb.zookeeper" ]
org.goldenorb.zookeeper;
131,454
@Override public T getValue() { try { Object object = instance; for (Method m : getMethods) { object = m.invoke(object); if (object == null) { return null; } } return (T) object; }...
T function() { try { Object object = instance; for (Method m : getMethods) { object = m.invoke(object); if (object == null) { return null; } } return (T) object; } catch (final Throwable e) { throw new MethodException(this, e); } }
/** * Gets the value stored in the Property. The value is resolved by calling * the specified getter method with the argument specified at instantiation. * * @return the value of the Property */
Gets the value stored in the Property. The value is resolved by calling the specified getter method with the argument specified at instantiation
getValue
{ "repo_name": "jdahlstrom/vaadin.react", "path": "server/src/main/java/com/vaadin/data/util/NestedMethodProperty.java", "license": "apache-2.0", "size": 9182 }
[ "com.vaadin.data.util.MethodProperty", "java.lang.reflect.Method" ]
import com.vaadin.data.util.MethodProperty; import java.lang.reflect.Method;
import com.vaadin.data.util.*; import java.lang.reflect.*;
[ "com.vaadin.data", "java.lang" ]
com.vaadin.data; java.lang;
287,720
public Set<String> sarchForAvailableLanguagesInJarFile(File jarFile, boolean checkForExecutables) { Set<String> foundLanguages = new TreeSet<String>(); JarFile jar; try { jar = new JarFile(jarFile); Enumeration<JarEntry> jarEntries = jar.entries(); while (jarEntries.hasMoreElements()) { JarEntry j...
Set<String> function(File jarFile, boolean checkForExecutables) { Set<String> foundLanguages = new TreeSet<String>(); JarFile jar; try { jar = new JarFile(jarFile); Enumeration<JarEntry> jarEntries = jar.entries(); while (jarEntries.hasMoreElements()) { JarEntry jarEntry = jarEntries.nextElement(); String jarEntryName ...
/** * Searches within a jar file for available languages. * * @param jarFile * @param checkForExecutables true: check if jar contains java or class files and return an empty set if such executable files are found; false don't check or care * @return Set of language keys, can be empty but never null */
Searches within a jar file for available languages
sarchForAvailableLanguagesInJarFile
{ "repo_name": "RLDevOps/Demo", "path": "src/main/java/org/olat/core/util/i18n/I18nManager.java", "license": "apache-2.0", "size": 82947 }
[ "java.io.File", "java.io.IOException", "java.util.Enumeration", "java.util.Set", "java.util.TreeSet", "java.util.jar.JarEntry", "java.util.jar.JarFile", "org.olat.core.logging.OLATRuntimeException" ]
import java.io.File; import java.io.IOException; import java.util.Enumeration; import java.util.Set; import java.util.TreeSet; import java.util.jar.JarEntry; import java.util.jar.JarFile; import org.olat.core.logging.OLATRuntimeException;
import java.io.*; import java.util.*; import java.util.jar.*; import org.olat.core.logging.*;
[ "java.io", "java.util", "org.olat.core" ]
java.io; java.util; org.olat.core;
1,884,562
public void loadError( LoadEventInfo loadEventInfo, MediaLoadData mediaLoadData, IOException error, boolean wasCanceled) { for (ListenerAndHandler listenerAndHandler : listenerAndHandlers) { MediaSourceEventListener listener = listenerAndHandler.listener; postOr...
void function( LoadEventInfo loadEventInfo, MediaLoadData mediaLoadData, IOException error, boolean wasCanceled) { for (ListenerAndHandler listenerAndHandler : listenerAndHandlers) { MediaSourceEventListener listener = listenerAndHandler.listener; postOrRun( listenerAndHandler.handler, () -> listener.onLoadError( windo...
/** * Dispatches {@link #onLoadError(int, MediaPeriodId, LoadEventInfo, MediaLoadData, IOException, * boolean)}. */
Dispatches <code>#onLoadError(int, MediaPeriodId, LoadEventInfo, MediaLoadData, IOException, boolean)</code>
loadError
{ "repo_name": "amzn/exoplayer-amazon-port", "path": "library/core/src/main/java/com/google/android/exoplayer2/source/MediaSourceEventListener.java", "license": "apache-2.0", "size": 19648 }
[ "com.google.android.exoplayer2.util.Util", "java.io.IOException" ]
import com.google.android.exoplayer2.util.Util; import java.io.IOException;
import com.google.android.exoplayer2.util.*; import java.io.*;
[ "com.google.android", "java.io" ]
com.google.android; java.io;
687,773