method
stringlengths
13
441k
clean_method
stringlengths
7
313k
doc
stringlengths
17
17.3k
comment
stringlengths
3
1.42k
method_name
stringlengths
1
273
extra
dict
imports
list
imports_info
stringlengths
19
34.8k
cluster_imports_info
stringlengths
15
3.66k
libraries
list
libraries_info
stringlengths
6
661
id
int64
0
2.92M
public void setPositionPatterns(DefaultComboBoxModel<String> positionPatterns) { this.positionPatterns = positionPatterns; }
void function(DefaultComboBoxModel<String> positionPatterns) { this.positionPatterns = positionPatterns; }
/** * <p>Setter for the field <code>positionPatterns</code>.</p> * * @param positionPatterns a {@link javax.swing.DefaultComboBoxModel} object. */
Setter for the field <code>positionPatterns</code>
setPositionPatterns
{ "repo_name": "EHJ-52n/sos-importer", "path": "wizard/src/main/java/org/n52/sos/importer/view/combobox/EditableComboBoxItems.java", "license": "gpl-2.0", "size": 14178 }
[ "javax.swing.DefaultComboBoxModel" ]
import javax.swing.DefaultComboBoxModel;
import javax.swing.*;
[ "javax.swing" ]
javax.swing;
2,135,839
public static <T> List<T> toList(T... array) { PreCon.notNull(array); ArrayList<T> result = new ArrayList<>(array.length + 5); Collections.addAll(result, array); return result; }
static <T> List<T> function(T... array) { PreCon.notNull(array); ArrayList<T> result = new ArrayList<>(array.length + 5); Collections.addAll(result, array); return result; }
/** * Convert an array to an array list. * * @param array The array to convert. */
Convert an array to an array list
toList
{ "repo_name": "JCThePants/NucleusFramework", "path": "src/com/jcwhatever/nucleus/utils/ArrayUtils.java", "license": "mit", "size": 83295 }
[ "java.util.ArrayList", "java.util.Collections", "java.util.List" ]
import java.util.ArrayList; import java.util.Collections; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,472,181
public Path resolvePath(final Path p) throws IOException { checkPath(p); return getFileStatus(p).getPath(); }
Path function(final Path p) throws IOException { checkPath(p); return getFileStatus(p).getPath(); }
/** * Return the fully-qualified path of path f resolving the path * through any symlinks or mount point * @param p path to be resolved * @return fully qualified path * @throws FileNotFoundException */
Return the fully-qualified path of path f resolving the path through any symlinks or mount point
resolvePath
{ "repo_name": "joyghosh/hadoop", "path": "hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileSystem.java", "license": "gpl-3.0", "size": 116427 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
1,307,752
public void flip(X11ComponentPeer peer, Component target, VolatileImage xBackBuffer, int x1, int y1, int x2, int y2, BufferCapabilities.FlipContents flipAction) { long window = peer.getContentWindow(); int swapAction = getSwapAction(...
void function(X11ComponentPeer peer, Component target, VolatileImage xBackBuffer, int x1, int y1, int x2, int y2, BufferCapabilities.FlipContents flipAction) { long window = peer.getContentWindow(); int swapAction = getSwapAction(flipAction); swapBuffers(window, swapAction); }
/** * Performs the native XDBE flip operation for the given target Component. */
Performs the native XDBE flip operation for the given target Component
flip
{ "repo_name": "shchiu/openjdk", "path": "jdk/src/solaris/classes/sun/awt/X11GraphicsConfig.java", "license": "gpl-2.0", "size": 16021 }
[ "java.awt.BufferCapabilities", "java.awt.Component", "java.awt.image.VolatileImage" ]
import java.awt.BufferCapabilities; import java.awt.Component; import java.awt.image.VolatileImage;
import java.awt.*; import java.awt.image.*;
[ "java.awt" ]
java.awt;
2,397,495
public void stop() { m_debugger.removeListener(m_debuglistener); final ProcessManager processManager = m_debugger.getProcessManager(); processManager.removeListener(m_processListener); for (final TargetProcessThread thread : processManager.getThreads()) { thread.removeListener(m_threadEventListe...
void function() { m_debugger.removeListener(m_debuglistener); final ProcessManager processManager = m_debugger.getProcessManager(); processManager.removeListener(m_processListener); for (final TargetProcessThread thread : processManager.getThreads()) { thread.removeListener(m_threadEventListener); } }
/** * Stops the event notifier. */
Stops the event notifier
stop
{ "repo_name": "guiquanz/binnavi", "path": "src/main/java/com/google/security/zynamics/binnavi/Gui/Debug/Notifier/CDebugEventNotifier.java", "license": "apache-2.0", "size": 22858 }
[ "com.google.security.zynamics.binnavi.debug.models.processmanager.ProcessManager", "com.google.security.zynamics.binnavi.debug.models.processmanager.TargetProcessThread" ]
import com.google.security.zynamics.binnavi.debug.models.processmanager.ProcessManager; import com.google.security.zynamics.binnavi.debug.models.processmanager.TargetProcessThread;
import com.google.security.zynamics.binnavi.debug.models.processmanager.*;
[ "com.google.security" ]
com.google.security;
2,360,780
private void createProject() { // Checks the form completion. if (!formPanel.isValid()) { MessageBox.alert(I18N.CONSTANTS.createFormIncomplete(), I18N.MESSAGES.createFormIncompleteDetails(I18N.CONSTANTS.project()), null); return; } // Gets values. final String name = na...
void function() { if (!formPanel.isValid()) { MessageBox.alert(I18N.CONSTANTS.createFormIncomplete(), I18N.MESSAGES.createFormIncompleteDetails(I18N.CONSTANTS.project()), null); return; } final String name = nameField.getValue(); final String fullName = fullNameField.getValue(); Double budget = 0.0; if (!Mode.TEST.equa...
/** * Creates a project for the given fields. */
Creates a project for the given fields
createProject
{ "repo_name": "Polfo/sigma-h", "path": "sigmah/src/main/java/org/sigmah/client/page/dashboard/CreateProjectWindow.java", "license": "gpl-3.0", "size": 30600 }
[ "com.allen_sauer.gwt.log.client.Log", "com.extjs.gxt.ui.client.widget.MessageBox", "com.google.gwt.user.client.rpc.AsyncCallback", "java.util.HashMap", "org.sigmah.shared.command.CreateEntity", "org.sigmah.shared.command.result.CreateResult" ]
import com.allen_sauer.gwt.log.client.Log; import com.extjs.gxt.ui.client.widget.MessageBox; import com.google.gwt.user.client.rpc.AsyncCallback; import java.util.HashMap; import org.sigmah.shared.command.CreateEntity; import org.sigmah.shared.command.result.CreateResult;
import com.allen_sauer.gwt.log.client.*; import com.extjs.gxt.ui.client.widget.*; import com.google.gwt.user.client.rpc.*; import java.util.*; import org.sigmah.shared.command.*; import org.sigmah.shared.command.result.*;
[ "com.allen_sauer.gwt", "com.extjs.gxt", "com.google.gwt", "java.util", "org.sigmah.shared" ]
com.allen_sauer.gwt; com.extjs.gxt; com.google.gwt; java.util; org.sigmah.shared;
374,832
public static OFGroup createMPLSSwapLabel(U32 index) { //9 return OFGroup.of(0 | (index.getRaw() & 0x00ffFFff) | (MPLSSubType.MPLS_SWAP_LABEL << 24) | (OFDPAGroupType.MPLS_LABEL << 28)); }
static OFGroup function(U32 index) { return OFGroup.of(0 (index.getRaw() & 0x00ffFFff) (MPLSSubType.MPLS_SWAP_LABEL << 24) (OFDPAGroupType.MPLS_LABEL << 28)); }
/** * Only bits 0-23 of index are used. Bits 24-31 are ignored. * @param index * @return */
Only bits 0-23 of index are used. Bits 24-31 are ignored
createMPLSSwapLabel
{ "repo_name": "chinhnc/floodlight", "path": "src/main/java/net/floodlightcontroller/util/OFDPAUtils.java", "license": "apache-2.0", "size": 32338 }
[ "org.projectfloodlight.openflow.types.OFGroup" ]
import org.projectfloodlight.openflow.types.OFGroup;
import org.projectfloodlight.openflow.types.*;
[ "org.projectfloodlight.openflow" ]
org.projectfloodlight.openflow;
2,003,116
void setExtraHeaders(Map<String,String> headers);
void setExtraHeaders(Map<String,String> headers);
/** * Sets the extra headers, that are added to the requests to the remote repository. */
Sets the extra headers, that are added to the requests to the remote repository
setExtraHeaders
{ "repo_name": "olamy/archiva", "path": "archiva-modules/archiva-base/archiva-repository-api/src/main/java/org/apache/archiva/repository/EditableRemoteRepository.java", "license": "apache-2.0", "size": 2510 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
2,520,373
@ServiceMethod(returns = ReturnType.SINGLE) public Response<DocumentResultCollection<RecognizeEntitiesResult>> recognizeEntitiesWithResponse( List<String> textInputs, String language, Context context) { return client.recognizeEntityAsyncClient.recognizeEntitiesWithResponse(textInputs, language, ...
@ServiceMethod(returns = ReturnType.SINGLE) Response<DocumentResultCollection<RecognizeEntitiesResult>> function( List<String> textInputs, String language, Context context) { return client.recognizeEntityAsyncClient.recognizeEntitiesWithResponse(textInputs, language, context).block(); }
/** * Returns a list of general named entities for the provided list of texts. * * @param textInputs A list of texts to recognize entities for. * @param language The 2 letter ISO 639-1 representation of language. If not set, uses "en" for English as default. * @param context Additional context ...
Returns a list of general named entities for the provided list of texts
recognizeEntitiesWithResponse
{ "repo_name": "navalev/azure-sdk-for-java", "path": "sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/TextAnalyticsClient.java", "license": "mit", "size": 35653 }
[ "com.azure.ai.textanalytics.models.DocumentResultCollection", "com.azure.ai.textanalytics.models.RecognizeEntitiesResult", "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.http.rest.Response", "com.azure.core.util.Context", "java.util.List" ]
import com.azure.ai.textanalytics.models.DocumentResultCollection; import com.azure.ai.textanalytics.models.RecognizeEntitiesResult; import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.Response; import com.azure.core.util.Context; import java.util...
import com.azure.ai.textanalytics.models.*; import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.core.util.*; import java.util.*;
[ "com.azure.ai", "com.azure.core", "java.util" ]
com.azure.ai; com.azure.core; java.util;
628,338
@ServiceMethod(returns = ReturnType.SINGLE) Response<Void> simulateEvictionWithResponse( String resourceGroupName, String vmScaleSetName, String instanceId, Context context);
@ServiceMethod(returns = ReturnType.SINGLE) Response<Void> simulateEvictionWithResponse( String resourceGroupName, String vmScaleSetName, String instanceId, Context context);
/** * The operation to simulate the eviction of spot virtual machine in a VM scale set. The eviction will occur within * 30 minutes of calling the API. * * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set. * @param instanceId The...
The operation to simulate the eviction of spot virtual machine in a VM scale set. The eviction will occur within 30 minutes of calling the API
simulateEvictionWithResponse
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/VirtualMachineScaleSetVMsClient.java", "license": "mit", "size": 89951 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.http.rest.Response", "com.azure.core.util.Context" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.Response; import com.azure.core.util.Context;
import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.core.util.*;
[ "com.azure.core" ]
com.azure.core;
1,740,669
// <editor-fold defaultstate="collapsed" // desc="HttpServlet methods. Click on the + sign on the left to edit the code."> @Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { processRequest(request, response); }
void function(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { processRequest(request, response); }
/** * Handles the HTTP <code>GET</code> method. * * @param request * servlet request * @param response * servlet response * @throws ServletException * if a servlet-specific error occurs * @throws IOException * if an I/O error occurs */
Handles the HTTP <code>GET</code> method
doGet
{ "repo_name": "myunimol/webapp", "path": "src/java/rocks/teammolise/myunimol/webapp/exams/GetEnrolledExamsServlet.java", "license": "gpl-2.0", "size": 3583 }
[ "java.io.IOException", "javax.servlet.ServletException", "javax.servlet.http.HttpServletRequest", "javax.servlet.http.HttpServletResponse" ]
import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse;
import java.io.*; import javax.servlet.*; import javax.servlet.http.*;
[ "java.io", "javax.servlet" ]
java.io; javax.servlet;
2,158,814
long count = 0; for (Object entry : list) { if (entry == null) { count++; } } return count; } /** * Get the number of non-null entries in a {@link List}
long count = 0; for (Object entry : list) { if (entry == null) { count++; } } return count; } /** * Get the number of non-null entries in a {@link List}
/** * Get the number of null entries in a {@link List} * * @param list the {@link List} * @return the number of null entries */
Get the number of null entries in a <code>List</code>
countNull
{ "repo_name": "RangerRick/opennms", "path": "opennms-util/src/main/java/org/opennms/core/utils/CollectionMath.java", "license": "gpl-2.0", "size": 7066 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,672,003
public AxisState draw(Graphics2D g2, double cursor, Rectangle2D plotArea, Rectangle2D dataArea, RectangleEdge edge, PlotRenderingInfo plotState) { AxisState ret = sup...
AxisState function(Graphics2D g2, double cursor, Rectangle2D plotArea, Rectangle2D dataArea, RectangleEdge edge, PlotRenderingInfo plotState) { AxisState ret = super.draw( g2, cursor, plotArea, dataArea, edge, plotState ); if (isAdvanceLineVisible()) { double xx = valueToJava2D( getRange().getUpperBound(), dataArea, ed...
/** * Draws the axis. * * @param g2 the graphics device (<code>null</code> not permitted). * @param cursor the cursor position. * @param plotArea the plot area (<code>null</code> not permitted). * @param dataArea the data area (<code>null</code> not permitted). * @param edge the...
Draws the axis
draw
{ "repo_name": "raedle/univis", "path": "lib/jfreechart-1.0.1/src/org/jfree/chart/axis/CyclicNumberAxis.java", "license": "lgpl-2.1", "size": 42414 }
[ "java.awt.Graphics2D", "java.awt.geom.Line2D", "java.awt.geom.Rectangle2D", "org.jfree.chart.plot.PlotRenderingInfo", "org.jfree.ui.RectangleEdge" ]
import java.awt.Graphics2D; import java.awt.geom.Line2D; import java.awt.geom.Rectangle2D; import org.jfree.chart.plot.PlotRenderingInfo; import org.jfree.ui.RectangleEdge;
import java.awt.*; import java.awt.geom.*; import org.jfree.chart.plot.*; import org.jfree.ui.*;
[ "java.awt", "org.jfree.chart", "org.jfree.ui" ]
java.awt; org.jfree.chart; org.jfree.ui;
1,224,860
public static String filenameEncode(final String name) { // Use url encoding String url = WebUtils.urlEncode(name); // extra clarity -- don't encode if we can avoid it url = url.replace("%3D", "="); // safety // url-code for . would be %2E url = url.replace("..", ".%2E"); // no jumping up a directory ...
static String function(final String name) { String url = WebUtils.urlEncode(name); url = url.replace("%3DSTR=STR..STR.%2ESTR;STR%3BSTR%2FSTR/"); url = url.replace(STR_STR__STR%STR_STR/STRfilenameEncode oddSTR/STR dbl = true; } } } StrUtils.pop(path, dbl ? 2 : 1); if (url.endsWith("/")) { path.append('/'); } return path...
/** * Convert a string so that it can safely be used as a filename. one-to-one * mapping * * @param name * @param if false, will remove /s and \s */
Convert a string so that it can safely be used as a filename. one-to-one mapping
filenameEncode
{ "repo_name": "sodash/open-code", "path": "winterwell.utils/src/com/winterwell/utils/io/FileUtils.java", "license": "mit", "size": 50747 }
[ "com.winterwell.utils.StrUtils", "com.winterwell.utils.web.WebUtils" ]
import com.winterwell.utils.StrUtils; import com.winterwell.utils.web.WebUtils;
import com.winterwell.utils.*; import com.winterwell.utils.web.*;
[ "com.winterwell.utils" ]
com.winterwell.utils;
1,738,217
public void initialize(ServerConfiguration config, ConfigElement params) throws InvalidConfigurationException { // Get the alfresco configuration section, required to get hold of various services/components AlfrescoConfigSection alfrescoConfig = (AlfrescoConfigSection) config.getCon...
void function(ServerConfiguration config, ConfigElement params) throws InvalidConfigurationException { AlfrescoConfigSection alfrescoConfig = (AlfrescoConfigSection) config.getConfigSection( AlfrescoConfigSection.SectionName); setAuthenticationComponent(alfrescoConfig.getAuthenticationComponent()); setAuthenticationSer...
/** * Initialize the authenticator. * * @param config * ServerConfiguration * @param params * ConfigElement * @throws InvalidConfigurationException * the invalid configuration exception * @exception InvalidConfigurationException ...
Initialize the authenticator
initialize
{ "repo_name": "Alfresco/community-edition", "path": "projects/repository/source/java/org/alfresco/filesys/auth/cifs/CifsAuthenticatorBase.java", "license": "lgpl-3.0", "size": 22690 }
[ "org.alfresco.filesys.AlfrescoConfigSection", "org.alfresco.jlan.server.config.InvalidConfigurationException", "org.alfresco.jlan.server.config.ServerConfiguration", "org.springframework.extensions.config.ConfigElement" ]
import org.alfresco.filesys.AlfrescoConfigSection; import org.alfresco.jlan.server.config.InvalidConfigurationException; import org.alfresco.jlan.server.config.ServerConfiguration; import org.springframework.extensions.config.ConfigElement;
import org.alfresco.filesys.*; import org.alfresco.jlan.server.config.*; import org.springframework.extensions.config.*;
[ "org.alfresco.filesys", "org.alfresco.jlan", "org.springframework.extensions" ]
org.alfresco.filesys; org.alfresco.jlan; org.springframework.extensions;
1,891,344
public void resetColumn(Attribute attribute) { updateColumn(attribute.getTableIndex(), attribute); columns[attribute.getTableIndex()].ensure(sizeLimit); }
void function(Attribute attribute) { updateColumn(attribute.getTableIndex(), attribute); columns[attribute.getTableIndex()].ensure(sizeLimit); }
/** * Resets the column associated with the attribute. The reset is necessary if there were already * rows added in case auto columns are used because this overwrites the values, so the automatic * detection needs to be reset. * * @param attribute * the attribute whose column should be reset */
Resets the column associated with the attribute. The reset is necessary if there were already rows added in case auto columns are used because this overwrites the values, so the automatic detection needs to be reset
resetColumn
{ "repo_name": "rapidminer/rapidminer-studio", "path": "src/main/java/com/rapidminer/example/table/internal/ColumnarExampleTable.java", "license": "agpl-3.0", "size": 13045 }
[ "com.rapidminer.example.Attribute" ]
import com.rapidminer.example.Attribute;
import com.rapidminer.example.*;
[ "com.rapidminer.example" ]
com.rapidminer.example;
514,212
ChildMctsCsv findRecordById(Long id);
ChildMctsCsv findRecordById(Long id);
/** * gets ChildMctsCsv object based by id * * @param id primary key of the record * @return ChildMctsCsv type object */
gets ChildMctsCsv object based by id
findRecordById
{ "repo_name": "motech-implementations/bbc-nms", "path": "kilkari/src/main/java/org/motechproject/nms/kilkari/service/ChildMctsCsvService.java", "license": "bsd-3-clause", "size": 567 }
[ "org.motechproject.nms.kilkari.domain.ChildMctsCsv" ]
import org.motechproject.nms.kilkari.domain.ChildMctsCsv;
import org.motechproject.nms.kilkari.domain.*;
[ "org.motechproject.nms" ]
org.motechproject.nms;
967,931
protected boolean getPropertyValue(Element root, String propertyName, boolean ignoreValue) { LogFactory.getLog(getClass()).debug(String.format("[%s].get('%s')", object.getName(), propertyName)); if (PROP_CREATION_DATE.equals(propertyName)) { return addCreationDateProperty(root, ignoreValue); } else ...
boolean function(Element root, String propertyName, boolean ignoreValue) { LogFactory.getLog(getClass()).debug(String.format(STR, object.getName(), propertyName)); if (PROP_CREATION_DATE.equals(propertyName)) { return addCreationDateProperty(root, ignoreValue); } else if (PROP_DISPLAY_NAME.equals(propertyName)) { retur...
/** * Add the value for a given property to the result document. If the value * is missing or can not be added for some reason it will return false to * indicate a missing property. * * @param root the root element for the result document fragment * @param propertyName the property name to que...
Add the value for a given property to the result document. If the value is missing or can not be added for some reason it will return false to indicate a missing property
getPropertyValue
{ "repo_name": "thinkberg/moxo", "path": "modules/webdav/src/main/java/com/thinkberg/webdav/data/DavResource.java", "license": "apache-2.0", "size": 9946 }
[ "org.apache.commons.logging.LogFactory", "org.apache.commons.vfs.FileSystemException", "org.dom4j.Document", "org.dom4j.DocumentException", "org.dom4j.DocumentHelper", "org.dom4j.Element" ]
import org.apache.commons.logging.LogFactory; import org.apache.commons.vfs.FileSystemException; import org.dom4j.Document; import org.dom4j.DocumentException; import org.dom4j.DocumentHelper; import org.dom4j.Element;
import org.apache.commons.logging.*; import org.apache.commons.vfs.*; import org.dom4j.*;
[ "org.apache.commons", "org.dom4j" ]
org.apache.commons; org.dom4j;
37,822
public synchronized void cancelAllDownloads(Context context) { Log.d(TAG, "Cancelling all running downloads"); context.sendBroadcast(new Intent( DownloadService.ACTION_CANCEL_ALL_DOWNLOADS)); }
synchronized void function(Context context) { Log.d(TAG, STR); context.sendBroadcast(new Intent( DownloadService.ACTION_CANCEL_ALL_DOWNLOADS)); }
/** * Cancels all running downloads */
Cancels all running downloads
cancelAllDownloads
{ "repo_name": "TeodorKostadinov/PodcastApp", "path": "core/src/main/java/de/danoeh/antennapod/core/storage/DownloadRequester.java", "license": "mit", "size": 14521 }
[ "android.content.Context", "android.content.Intent", "android.util.Log", "de.danoeh.antennapod.core.service.download.DownloadService" ]
import android.content.Context; import android.content.Intent; import android.util.Log; import de.danoeh.antennapod.core.service.download.DownloadService;
import android.content.*; import android.util.*; import de.danoeh.antennapod.core.service.download.*;
[ "android.content", "android.util", "de.danoeh.antennapod" ]
android.content; android.util; de.danoeh.antennapod;
2,166,751
protected boolean checkExpirationDate(MaintenanceDocument maintenanceDocument) { LOG.info("checkExpirationDate called"); boolean success = true; Date oldExpDate = oldAccount.getAccountExpirationDate(); Date newExpDate = newAccount.getAccountExpirationDate(); Date today = n...
boolean function(MaintenanceDocument maintenanceDocument) { LOG.info(STR); boolean success = true; Date oldExpDate = oldAccount.getAccountExpirationDate(); Date newExpDate = newAccount.getAccountExpirationDate(); Date today = new Date(getDateTimeService().getCurrentTimestamp().getTime()); today.setTime(DateUtils.trunca...
/** * This method checks to see if any expiration date field rules were violated * * @param maintenanceDocument * @return false on rules violation */
This method checks to see if any expiration date field rules were violated
checkExpirationDate
{ "repo_name": "Ariah-Group/Finance", "path": "af_webapp/src/main/java/org/kuali/kfs/coa/document/validation/impl/AccountRule.java", "license": "apache-2.0", "size": 65081 }
[ "java.sql.Date", "java.util.Calendar", "org.apache.commons.lang.StringUtils", "org.apache.commons.lang.time.DateUtils", "org.kuali.kfs.coa.businessobject.Account", "org.kuali.kfs.sys.KFSKeyConstants", "org.kuali.rice.kns.document.MaintenanceDocument", "org.kuali.rice.krad.util.ObjectUtils" ]
import java.sql.Date; import java.util.Calendar; import org.apache.commons.lang.StringUtils; import org.apache.commons.lang.time.DateUtils; import org.kuali.kfs.coa.businessobject.Account; import org.kuali.kfs.sys.KFSKeyConstants; import org.kuali.rice.kns.document.MaintenanceDocument; import org.kuali.rice.krad.util.O...
import java.sql.*; import java.util.*; import org.apache.commons.lang.*; import org.apache.commons.lang.time.*; import org.kuali.kfs.coa.businessobject.*; import org.kuali.kfs.sys.*; import org.kuali.rice.kns.document.*; import org.kuali.rice.krad.util.*;
[ "java.sql", "java.util", "org.apache.commons", "org.kuali.kfs", "org.kuali.rice" ]
java.sql; java.util; org.apache.commons; org.kuali.kfs; org.kuali.rice;
1,818,384
public static String cleanPath(String path) { if (path == null) { return null; } String pathToUse = replace(path, WINDOWS_FOLDER_SEPARATOR, FOLDER_SEPARATOR); // Strip prefix from path to analyze, to not treat it as part of the // first path element. This is necessary to correctly parse paths like //...
static String function(String path) { if (path == null) { return null; } String pathToUse = replace(path, WINDOWS_FOLDER_SEPARATOR, FOLDER_SEPARATOR); int prefixIndex = pathToUse.indexOf(":"); String prefix = ""; if (prefixIndex != -1) { prefix = pathToUse.substring(0, prefixIndex + 1); pathToUse = pathToUse.substring(...
/** * Normalize the path by suppressing sequences like "path/.." and * inner simple dots. * <p>The result is convenient for path comparison. For other uses, * notice that Windows separators ("\") are replaced by simple slashes. * @param path the original path * @return the normalized path */
Normalize the path by suppressing sequences like "path/.." and inner simple dots. The result is convenient for path comparison. For other uses, notice that Windows separators ("\") are replaced by simple slashes
cleanPath
{ "repo_name": "PizzaGames/emulio", "path": "core/src/main/org/springframework/util/StringUtils.java", "license": "gpl-3.0", "size": 37974 }
[ "java.util.LinkedList", "java.util.List" ]
import java.util.LinkedList; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,022,944
public final Property<Boolean> cloneResults() { return metaBean().cloneResults().createProperty(this); }
final Property<Boolean> function() { return metaBean().cloneResults().createProperty(this); }
/** * Gets the the {@code cloneResults} property. * @return the property, not null */
Gets the the cloneResults property
cloneResults
{ "repo_name": "DevStreet/FinanceAnalytics", "path": "projects/OG-Component/src/main/java/com/opengamma/component/factory/master/InMemoryPositionMasterComponentFactory.java", "license": "apache-2.0", "size": 11800 }
[ "org.joda.beans.Property" ]
import org.joda.beans.Property;
import org.joda.beans.*;
[ "org.joda.beans" ]
org.joda.beans;
185,269
public NamespaceDeclaration createDocument(String namespaceFQN, View view) { NamespaceDeclaration nsd = view.language().plugin(Factory.class).createNamespaceDeclaration(namespaceFQN); createDocument(nsd); return nsd; }
NamespaceDeclaration function(String namespaceFQN, View view) { NamespaceDeclaration nsd = view.language().plugin(Factory.class).createNamespaceDeclaration(namespaceFQN); createDocument(nsd); return nsd; }
/** * Create a new document for placement in the namespace with the * given fully qualified name and return its namespace declaration * for the root namespace. * * The document is not attached to a parent! The view is needed * to obtain a factory for crating the namespace declaration. * ...
Create a new document for placement in the namespace with the given fully qualified name and return its namespace declaration for the root namespace. The document is not attached to a parent! The view is needed to obtain a factory for crating the namespace declaration
createDocument
{ "repo_name": "markovandooren/chameleon", "path": "src/org/aikodi/chameleon/builder/DocumentFactory.java", "license": "mit", "size": 2123 }
[ "org.aikodi.chameleon.core.factory.Factory", "org.aikodi.chameleon.core.namespacedeclaration.NamespaceDeclaration", "org.aikodi.chameleon.workspace.View" ]
import org.aikodi.chameleon.core.factory.Factory; import org.aikodi.chameleon.core.namespacedeclaration.NamespaceDeclaration; import org.aikodi.chameleon.workspace.View;
import org.aikodi.chameleon.core.factory.*; import org.aikodi.chameleon.core.namespacedeclaration.*; import org.aikodi.chameleon.workspace.*;
[ "org.aikodi.chameleon" ]
org.aikodi.chameleon;
2,209,765
private void checkMachineServers(KubernetesMachine machine) throws InfrastructureException, InterruptedException { final ServersChecker check = serverCheckerFactory.create( getContext().getIdentity(), machine.getName(), machine.getServers()); check.startAsync(new ServerReadinessHandl...
void function(KubernetesMachine machine) throws InfrastructureException, InterruptedException { final ServersChecker check = serverCheckerFactory.create( getContext().getIdentity(), machine.getName(), machine.getServers()); check.startAsync(new ServerReadinessHandler(machine.getName())); check.await(); probeScheduler.s...
/** * Checks whether machine servers are ready. * * @param machine the Kubernetes machine instance * @throws InfrastructureException when any error while server checks occur * @throws InterruptedException when process of server check was interrupted */
Checks whether machine servers are ready
checkMachineServers
{ "repo_name": "sleshchenko/che", "path": "infrastructures/kubernetes/src/main/java/org/eclipse/che/workspace/infrastructure/kubernetes/KubernetesInternalRuntime.java", "license": "epl-1.0", "size": 18149 }
[ "java.util.function.Consumer", "org.eclipse.che.api.workspace.server.hc.ServersChecker", "org.eclipse.che.api.workspace.server.spi.InfrastructureException" ]
import java.util.function.Consumer; import org.eclipse.che.api.workspace.server.hc.ServersChecker; import org.eclipse.che.api.workspace.server.spi.InfrastructureException;
import java.util.function.*; import org.eclipse.che.api.workspace.server.hc.*; import org.eclipse.che.api.workspace.server.spi.*;
[ "java.util", "org.eclipse.che" ]
java.util; org.eclipse.che;
1,910,234
public JsonElement readFileAsJson(File file) { return new JsonParser().parse(readFileAsString(file)); }
JsonElement function(File file) { return new JsonParser().parse(readFileAsString(file)); }
/** * Read from file and return as a JSON element * * @param file The file on the local filesystem * * @return JSON representation of file contents */
Read from file and return as a JSON element
readFileAsJson
{ "repo_name": "3sidedcube/Android-LightningUtil", "path": "library/src/main/java/com/cube/storm/util/lib/manager/FileManager.java", "license": "apache-2.0", "size": 8496 }
[ "com.google.gson.JsonElement", "com.google.gson.JsonParser", "java.io.File" ]
import com.google.gson.JsonElement; import com.google.gson.JsonParser; import java.io.File;
import com.google.gson.*; import java.io.*;
[ "com.google.gson", "java.io" ]
com.google.gson; java.io;
2,163,137
private boolean initFromIntent(final Intent intent) { boolean startedByExternalIntent = false; final String action = intent.getAction(); if (Intent.ACTION_VIEW.equals(action) || Intent.ACTION_SENDTO.equals(action)) { startedByExternalIntent = true; if (...
boolean function(final Intent intent) { boolean startedByExternalIntent = false; final String action = intent.getAction(); if (Intent.ACTION_VIEW.equals(action) Intent.ACTION_SENDTO.equals(action)) { startedByExternalIntent = true; if (intent.getData() != null) { Uri uri = intent.getData(); if (STR.equals(uri.getScheme...
/** * Handle external intents that trigger the message compose activity. * * <p> * Supported external intents: * <ul> * <li>{@link Intent#ACTION_VIEW}</li> * <li>{@link Intent#ACTION_SENDTO}</li> * <li>{@link Intent#ACTION_SEND}</li> * <li>{@link Intent#ACTION_SEND_M...
Handle external intents that trigger the message compose activity. Supported external intents: <code>Intent#ACTION_VIEW</code> <code>Intent#ACTION_SENDTO</code> <code>Intent#ACTION_SEND</code> <code>Intent#ACTION_SEND_MULTIPLE</code>
initFromIntent
{ "repo_name": "hoverkey/honeybee", "path": "sdk/examples/k9mail/src/com/fsck/k9/activity/MessageCompose.java", "license": "lgpl-3.0", "size": 152924 }
[ "android.content.Intent", "android.net.Uri", "android.os.Parcelable", "java.util.ArrayList", "java.util.Arrays" ]
import android.content.Intent; import android.net.Uri; import android.os.Parcelable; import java.util.ArrayList; import java.util.Arrays;
import android.content.*; import android.net.*; import android.os.*; import java.util.*;
[ "android.content", "android.net", "android.os", "java.util" ]
android.content; android.net; android.os; java.util;
2,710,603
public static OpenRegionRequest buildOpenRegionRequest(final List<Triple<HRegionInfo, Integer, List<ServerName>>> regionOpenInfos) { OpenRegionRequest.Builder builder = OpenRegionRequest.newBuilder(); for (Triple<HRegionInfo, Integer, List<ServerName>> regionOpenInfo: regionOpenInfos) { Intege...
static OpenRegionRequest function(final List<Triple<HRegionInfo, Integer, List<ServerName>>> regionOpenInfos) { OpenRegionRequest.Builder builder = OpenRegionRequest.newBuilder(); for (Triple<HRegionInfo, Integer, List<ServerName>> regionOpenInfo: regionOpenInfos) { Integer second = regionOpenInfo.getSecond(); int vers...
/** * Create a protocol buffer OpenRegionRequest to open a list of regions * * @param regionOpenInfos info of a list of regions to open * @return a protocol buffer OpenRegionRequest */
Create a protocol buffer OpenRegionRequest to open a list of regions
buildOpenRegionRequest
{ "repo_name": "lilonglai/hbase-0.96.2", "path": "hbase-client/src/main/java/org/apache/hadoop/hbase/protobuf/RequestConverter.java", "license": "apache-2.0", "size": 57605 }
[ "java.util.List", "org.apache.hadoop.hbase.HRegionInfo", "org.apache.hadoop.hbase.ServerName", "org.apache.hadoop.hbase.protobuf.generated.AdminProtos", "org.apache.hadoop.hbase.util.Triple" ]
import java.util.List; import org.apache.hadoop.hbase.HRegionInfo; import org.apache.hadoop.hbase.ServerName; import org.apache.hadoop.hbase.protobuf.generated.AdminProtos; import org.apache.hadoop.hbase.util.Triple;
import java.util.*; import org.apache.hadoop.hbase.*; import org.apache.hadoop.hbase.protobuf.generated.*; import org.apache.hadoop.hbase.util.*;
[ "java.util", "org.apache.hadoop" ]
java.util; org.apache.hadoop;
1,842,525
@Before public void setUp() { dict.put(UserRegistryServiceImpl.CFG_KEY_REFID, new String[] { "basic1" }); basicConfigMap.put(UserRegistryService.REGISTRY_TYPE, "Basic"); final BundleContext mockBundleContext = mock.mock(BundleContext.class); mock.checking(new Expectations() { ...
void function() { dict.put(UserRegistryServiceImpl.CFG_KEY_REFID, new String[] { STR }); basicConfigMap.put(UserRegistryService.REGISTRY_TYPE, "Basic"); final BundleContext mockBundleContext = mock.mock(BundleContext.class); mock.checking(new Expectations() { { allowing(ur1Ref).getProperty(UserRegistryServiceImpl.KEY_C...
/** * Perform some setup to simulate the service starting. */
Perform some setup to simulate the service starting
setUp
{ "repo_name": "OpenLiberty/open-liberty", "path": "dev/com.ibm.ws.security.registry/test/com/ibm/ws/security/registry/internal/UserRegistryServiceImplWithExplicitConfigurationTest.java", "license": "epl-1.0", "size": 20869 }
[ "com.ibm.ws.security.registry.UserRegistryService", "org.jmock.Expectations", "org.osgi.framework.BundleContext", "org.osgi.framework.Constants" ]
import com.ibm.ws.security.registry.UserRegistryService; import org.jmock.Expectations; import org.osgi.framework.BundleContext; import org.osgi.framework.Constants;
import com.ibm.ws.security.registry.*; import org.jmock.*; import org.osgi.framework.*;
[ "com.ibm.ws", "org.jmock", "org.osgi.framework" ]
com.ibm.ws; org.jmock; org.osgi.framework;
2,132,839
public void setConfiguration(String basePath, boolean verifySsl, boolean debugging, int connectionTimeout, int readTimeout, int writeTimeout) throws ApiException { ApiClient client = Configuration.getDefaultApiClient() //ApiClient client = new ApiClient() ...
void function(String basePath, boolean verifySsl, boolean debugging, int connectionTimeout, int readTimeout, int writeTimeout) throws ApiException { ApiClient client = Configuration.getDefaultApiClient() .setBasePath(basePath) .setVerifyingSsl(verifySsl) .setConnectTimeout(connectionTimeout) .setReadTimeout(readTimeout...
/** * Configure the default http client * * @param basePath set the basePath * @param verifySsl set theverifySsl * @param debugging set the debugging * @param connectionTimeout set the connectionTimeout * @param readTimeout set the readTimeout * @param writeTimeout set t...
Configure the default http client
setConfiguration
{ "repo_name": "hermannpencole/nifi-config", "path": "src/main/java/com/github/hermannpencole/nifi/config/service/AccessService.java", "license": "apache-2.0", "size": 2422 }
[ "com.github.hermannpencole.nifi.swagger.ApiClient", "com.github.hermannpencole.nifi.swagger.ApiException", "com.github.hermannpencole.nifi.swagger.Configuration" ]
import com.github.hermannpencole.nifi.swagger.ApiClient; import com.github.hermannpencole.nifi.swagger.ApiException; import com.github.hermannpencole.nifi.swagger.Configuration;
import com.github.hermannpencole.nifi.swagger.*;
[ "com.github.hermannpencole" ]
com.github.hermannpencole;
1,842,572
private boolean setQuota(String[] parameters, int i) throws IOException { long nsQuota = HdfsConstants.QUOTA_DONT_SET; long ssQuota = HdfsConstants.QUOTA_DONT_SET; String mount = parameters[i++]; while (i < parameters.length) { if (parameters[i].equals("-nsQuota")) { i++; try { ...
boolean function(String[] parameters, int i) throws IOException { long nsQuota = HdfsConstants.QUOTA_DONT_SET; long ssQuota = HdfsConstants.QUOTA_DONT_SET; String mount = parameters[i++]; while (i < parameters.length) { if (parameters[i].equals(STR)) { i++; try { nsQuota = Long.parseLong(parameters[i]); } catch (Except...
/** * Set quota for a mount table entry. * * @param parameters Parameters of the quota. * @param i Index in the parameters. */
Set quota for a mount table entry
setQuota
{ "repo_name": "dennishuo/hadoop", "path": "hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/tools/federation/RouterAdmin.java", "license": "apache-2.0", "size": 22130 }
[ "java.io.IOException", "org.apache.hadoop.hdfs.protocol.HdfsConstants", "org.apache.hadoop.util.StringUtils" ]
import java.io.IOException; import org.apache.hadoop.hdfs.protocol.HdfsConstants; import org.apache.hadoop.util.StringUtils;
import java.io.*; import org.apache.hadoop.hdfs.protocol.*; import org.apache.hadoop.util.*;
[ "java.io", "org.apache.hadoop" ]
java.io; org.apache.hadoop;
1,854,036
@ServiceMethod(returns = ReturnType.SINGLE) public void deleteAuthorizationRule(String resourceGroupName, String namespaceName, String authorizationRuleName) { deleteAuthorizationRuleAsync(resourceGroupName, namespaceName, authorizationRuleName).block(); }
@ServiceMethod(returns = ReturnType.SINGLE) void function(String resourceGroupName, String namespaceName, String authorizationRuleName) { deleteAuthorizationRuleAsync(resourceGroupName, namespaceName, authorizationRuleName).block(); }
/** * Deletes an AuthorizationRule for a Namespace. * * @param resourceGroupName Name of the resource group within the azure subscription. * @param namespaceName The Namespace name. * @param authorizationRuleName The authorization rule name. * @throws IllegalArgumentException thrown if par...
Deletes an AuthorizationRule for a Namespace
deleteAuthorizationRule
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/resourcemanagerhybrid/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/implementation/NamespacesClientImpl.java", "license": "mit", "size": 172558 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod;
import com.azure.core.annotation.*;
[ "com.azure.core" ]
com.azure.core;
1,032,281
private static ActionList deobfuscateActionList(List<DisassemblyListener> listeners, ActionList actions, int version, int ip, String path) throws IOException, InterruptedException { if (actions.isEmpty()) { return actions; } Action lastAction = actions.get(actions.size() - 1); ...
static ActionList function(List<DisassemblyListener> listeners, ActionList actions, int version, int ip, String path) throws IOException, InterruptedException { if (actions.isEmpty()) { return actions; } Action lastAction = actions.get(actions.size() - 1); int endIp = (int) lastAction.getAddress(); List<Action> retMap ...
/** * Reads list of actions from the stream. Reading ends with * ActionEndFlag(=0) or end of the stream. * * @param listeners * @param actions * @param version * @param ip * @param path * @return List of actions * @throws IOException * @throws java.lang.Interrupted...
Reads list of actions from the stream. Reading ends with ActionEndFlag(=0) or end of the stream
deobfuscateActionList
{ "repo_name": "realmaster42/jpexs-decompiler", "path": "libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/ActionListReader.java", "license": "gpl-3.0", "size": 42724 }
[ "com.jpexs.decompiler.flash.DisassemblyListener", "com.jpexs.decompiler.flash.action.model.ConstantPool", "com.jpexs.decompiler.flash.action.swf4.ActionIf", "com.jpexs.decompiler.graph.GraphSourceItemContainer", "com.jpexs.decompiler.graph.GraphTargetItem", "com.jpexs.decompiler.graph.TranslateStack", "...
import com.jpexs.decompiler.flash.DisassemblyListener; import com.jpexs.decompiler.flash.action.model.ConstantPool; import com.jpexs.decompiler.flash.action.swf4.ActionIf; import com.jpexs.decompiler.graph.GraphSourceItemContainer; import com.jpexs.decompiler.graph.GraphTargetItem; import com.jpexs.decompiler.graph.Tra...
import com.jpexs.decompiler.flash.*; import com.jpexs.decompiler.flash.action.model.*; import com.jpexs.decompiler.flash.action.swf4.*; import com.jpexs.decompiler.graph.*; import java.io.*; import java.util.*;
[ "com.jpexs.decompiler", "java.io", "java.util" ]
com.jpexs.decompiler; java.io; java.util;
2,117,867
@StyleRes public static int getDialogTheme(final Context context) { return isLightThemeSelected(context) ? R.style.LightDialogTheme : R.style.DarkDialogTheme; }
static int function(final Context context) { return isLightThemeSelected(context) ? R.style.LightDialogTheme : R.style.DarkDialogTheme; }
/** * Return a dialog theme styled according to the (default) selected theme. * * @param context context to get the selected theme * @return the dialog style (the default one) */
Return a dialog theme styled according to the (default) selected theme
getDialogTheme
{ "repo_name": "theScrabi/NewPipe", "path": "app/src/main/java/org/schabi/newpipe/util/ThemeHelper.java", "license": "gpl-3.0", "size": 9419 }
[ "android.content.Context" ]
import android.content.Context;
import android.content.*;
[ "android.content" ]
android.content;
592,137
@JsonSetter(value = "title") public DisplayItem setTitle(final String title) { this.title = title; return this; }
@JsonSetter(value = "title") DisplayItem function(final String title) { this.title = title; return this; }
/** * Set the title of the display item. * * @param title String with the title of the display item. * @return This object. */
Set the title of the display item
setTitle
{ "repo_name": "CitrineInformatics/jpif", "path": "src/main/java/io/citrine/jpif/obj/common/DisplayItem.java", "license": "apache-2.0", "size": 4035 }
[ "com.fasterxml.jackson.annotation.JsonSetter" ]
import com.fasterxml.jackson.annotation.JsonSetter;
import com.fasterxml.jackson.annotation.*;
[ "com.fasterxml.jackson" ]
com.fasterxml.jackson;
2,548,790
public BigDecimal getAssetValueAmt () { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_AssetValueAmt); if (bd == null) return Env.ZERO; return bd; }
BigDecimal function () { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_AssetValueAmt); if (bd == null) return Env.ZERO; return bd; }
/** Get Asset value. @return Book Value of the asset */
Get Asset value
getAssetValueAmt
{ "repo_name": "erpcya/adempierePOS", "path": "base/src/org/compiere/model/X_A_Asset_Retirement.java", "license": "gpl-2.0", "size": 6102 }
[ "java.math.BigDecimal", "org.compiere.util.Env" ]
import java.math.BigDecimal; import org.compiere.util.Env;
import java.math.*; import org.compiere.util.*;
[ "java.math", "org.compiere.util" ]
java.math; org.compiere.util;
1,448,602
private SelectionBuilder buildSimpleSelection(Uri uri) { final SelectionBuilder builder = new SelectionBuilder(); final int match = sUriMatcher.match(uri); switch (match) { case BLOCKS: { return builder.table(Tables.BLOCKS); } case BLOCKS_I...
SelectionBuilder function(Uri uri) { final SelectionBuilder builder = new SelectionBuilder(); final int match = sUriMatcher.match(uri); switch (match) { case BLOCKS: { return builder.table(Tables.BLOCKS); } case BLOCKS_ID: { final String blockId = Blocks.getBlockId(uri); return builder.table(Tables.BLOCKS) .where(Block...
/** * Build a simple {@link SelectionBuilder} to match the requested * {@link Uri}. This is usually enough to support {@link #insert}, * {@link #update}, and {@link #delete} operations. */
Build a simple <code>SelectionBuilder</code> to match the requested <code>Uri</code>. This is usually enough to support <code>#insert</code>, <code>#update</code>, and <code>#delete</code> operations
buildSimpleSelection
{ "repo_name": "helmuthb/devfestsched", "path": "android/src/com/google/android/apps/iosched/provider/ScheduleProvider.java", "license": "apache-2.0", "size": 39853 }
[ "android.net.Uri", "com.google.android.apps.iosched.provider.ScheduleContract", "com.google.android.apps.iosched.provider.ScheduleDatabase", "com.google.android.apps.iosched.util.SelectionBuilder" ]
import android.net.Uri; import com.google.android.apps.iosched.provider.ScheduleContract; import com.google.android.apps.iosched.provider.ScheduleDatabase; import com.google.android.apps.iosched.util.SelectionBuilder;
import android.net.*; import com.google.android.apps.iosched.provider.*; import com.google.android.apps.iosched.util.*;
[ "android.net", "com.google.android" ]
android.net; com.google.android;
613,418
@Override public GreenThread dequeue() { GreenThread t = head; if (t == null) { if (debugName != null) { VM.sysWriteln(debugName,": dequeueing null"); } return null; } head = t.getNext(); t.setNext(null); if (head == null) { tail = null; } if (debugNam...
GreenThread function() { GreenThread t = head; if (t == null) { if (debugName != null) { VM.sysWriteln(debugName,STR); } return null; } head = t.getNext(); t.setNext(null); if (head == null) { tail = null; } if (debugName != null) { VM.sysWriteln(debugName,STR,t.getIndex()); } if (VM.VerifyAssertions) VM._assert(t.isQu...
/** * Remove a thread from the head of the queue. * @return the thread (null --> queue is empty) */
Remove a thread from the head of the queue
dequeue
{ "repo_name": "ut-osa/laminar", "path": "jikesrvm-3.0.0/rvm/src/org/jikesrvm/scheduler/greenthreads/GreenThreadQueue.java", "license": "bsd-3-clause", "size": 6719 }
[ "org.jikesrvm.VM" ]
import org.jikesrvm.VM;
import org.jikesrvm.*;
[ "org.jikesrvm" ]
org.jikesrvm;
2,398,380
@ServiceMethod(returns = ReturnType.SINGLE) DefaultAccountPayloadInner get(UUID scopeTenantId, ScopeType scopeType);
@ServiceMethod(returns = ReturnType.SINGLE) DefaultAccountPayloadInner get(UUID scopeTenantId, ScopeType scopeType);
/** * Get the default account for the scope. * * @param scopeTenantId The tenant ID. * @param scopeType The scope for the default account. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown i...
Get the default account for the scope
get
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/purview/azure-resourcemanager-purview/src/main/java/com/azure/resourcemanager/purview/fluent/DefaultAccountsClient.java", "license": "mit", "size": 5210 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.resourcemanager.purview.fluent.models.DefaultAccountPayloadInner", "com.azure.resourcemanager.purview.models.ScopeType" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.resourcemanager.purview.fluent.models.DefaultAccountPayloadInner; import com.azure.resourcemanager.purview.models.ScopeType;
import com.azure.core.annotation.*; import com.azure.resourcemanager.purview.fluent.models.*; import com.azure.resourcemanager.purview.models.*;
[ "com.azure.core", "com.azure.resourcemanager" ]
com.azure.core; com.azure.resourcemanager;
1,978,084
private Pair<Boolean, BlockStoreLocation> requestSpaceInternal(long blockId, long additionalBytes) throws BlockDoesNotExistException { // NOTE: a temp block is supposed to be visible for its own writer, unnecessary to acquire // block lock here since no sharing try (LockResource r = new LockResource...
Pair<Boolean, BlockStoreLocation> function(long blockId, long additionalBytes) throws BlockDoesNotExistException { try (LockResource r = new LockResource(mMetadataWriteLock)) { TempBlockMeta tempBlockMeta = mMetaManager.getTempBlockMeta(blockId); if (tempBlockMeta.getParentDir().getAvailableBytes() < additionalBytes) {...
/** * Increases the temp block size only if this temp block's parent dir has enough available space. * * @param blockId block id * @param additionalBytes additional bytes to request for this block * @return a pair of boolean and {@link BlockStoreLocation}. The boolean indicates if the * operat...
Increases the temp block size only if this temp block's parent dir has enough available space
requestSpaceInternal
{ "repo_name": "ChangerYoung/alluxio", "path": "core/server/worker/src/main/java/alluxio/worker/block/TieredBlockStore.java", "license": "apache-2.0", "size": 37444 }
[ "com.google.common.base.Throwables" ]
import com.google.common.base.Throwables;
import com.google.common.base.*;
[ "com.google.common" ]
com.google.common;
1,295,225
private void delete(OperationRequest operation, OperationContext context, ParticipantId participant, ObservableConversation conversation) throws InvalidRequestException { Preconditions.checkArgument( OperationUtil.getOperationType(operation) == OperationType.BLIP_DELETE, "Unsupported o...
void function(OperationRequest operation, OperationContext context, ParticipantId participant, ObservableConversation conversation) throws InvalidRequestException { Preconditions.checkArgument( OperationUtil.getOperationType(operation) == OperationType.BLIP_DELETE, STR + operation); String blipId = OperationUtil.getReq...
/** * Implementation for the {@link OperationType#BLIP_DELETE} method. It deletes * the blip specified in the operation. * * @param operation the operation to execute. * @param context the context of the operation. * @param participant the participant performing this operation. * @param conversatio...
Implementation for the <code>OperationType#BLIP_DELETE</code> method. It deletes the blip specified in the operation
delete
{ "repo_name": "gburd/wave", "path": "src/org/waveprotocol/box/server/robots/operations/BlipOperationServices.java", "license": "apache-2.0", "size": 19284 }
[ "com.google.common.base.Preconditions", "com.google.common.collect.Maps", "com.google.wave.api.InvalidRequestException", "com.google.wave.api.JsonRpcConstant", "com.google.wave.api.OperationRequest", "com.google.wave.api.OperationType", "org.waveprotocol.box.server.robots.OperationContext", "org.wavep...
import com.google.common.base.Preconditions; import com.google.common.collect.Maps; import com.google.wave.api.InvalidRequestException; import com.google.wave.api.JsonRpcConstant; import com.google.wave.api.OperationRequest; import com.google.wave.api.OperationType; import org.waveprotocol.box.server.robots.OperationCo...
import com.google.common.base.*; import com.google.common.collect.*; import com.google.wave.api.*; import org.waveprotocol.box.server.robots.*; import org.waveprotocol.box.server.robots.util.*; import org.waveprotocol.wave.model.conversation.*; import org.waveprotocol.wave.model.wave.*;
[ "com.google.common", "com.google.wave", "org.waveprotocol.box", "org.waveprotocol.wave" ]
com.google.common; com.google.wave; org.waveprotocol.box; org.waveprotocol.wave;
1,521,977
ServiceCall get200Model204NoModelDefaultError200ValidAsync(final ServiceCallback<A> serviceCallback) throws IllegalArgumentException;
ServiceCall get200Model204NoModelDefaultError200ValidAsync(final ServiceCallback<A> serviceCallback) throws IllegalArgumentException;
/** * Send a 200 response with valid payload: {'statusCode': '200'}. * * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if callback is null * @return the {@link ServiceCall} object */
Send a 200 response with valid payload: {'statusCode': '200'}
get200Model204NoModelDefaultError200ValidAsync
{ "repo_name": "brodyberg/autorest", "path": "AutoRest/Generators/Java/Java.Tests/src/main/java/fixtures/http/MultipleResponsesOperations.java", "license": "mit", "size": 29440 }
[ "com.microsoft.rest.ServiceCall", "com.microsoft.rest.ServiceCallback" ]
import com.microsoft.rest.ServiceCall; import com.microsoft.rest.ServiceCallback;
import com.microsoft.rest.*;
[ "com.microsoft.rest" ]
com.microsoft.rest;
2,102,740
synchronized Value computeValue(Session session, Row row) { computeTableFilter.setSession(session); computeTableFilter.set(row); return defaultExpression.getValue(session); }
synchronized Value computeValue(Session session, Row row) { computeTableFilter.setSession(session); computeTableFilter.set(row); return defaultExpression.getValue(session); }
/** * Compute the value of this computed column. * * @param session the session * @param row the row * @return the value */
Compute the value of this computed column
computeValue
{ "repo_name": "miloszpiglas/h2mod", "path": "src/main/org/h2/table/Column.java", "license": "mpl-2.0", "size": 22753 }
[ "org.h2.engine.Session", "org.h2.result.Row", "org.h2.value.Value" ]
import org.h2.engine.Session; import org.h2.result.Row; import org.h2.value.Value;
import org.h2.engine.*; import org.h2.result.*; import org.h2.value.*;
[ "org.h2.engine", "org.h2.result", "org.h2.value" ]
org.h2.engine; org.h2.result; org.h2.value;
2,406,904
private String obtainMatchingRedirect(Set<String> redirectUris, String requestedRedirect) { Assert.notEmpty(redirectUris, "Redirect URIs cannot be empty"); if (redirectUris.size() == 1 && requestedRedirect == null) { return redirectUris.iterator().next(); } for (String redirectUri : redirectUris) { if...
String function(Set<String> redirectUris, String requestedRedirect) { Assert.notEmpty(redirectUris, STR); if (redirectUris.size() == 1 && requestedRedirect == null) { return redirectUris.iterator().next(); } for (String redirectUri : redirectUris) { if (requestedRedirect != null && redirectMatches(requestedRedirect, re...
/** * Attempt to match one of the registered URIs to the that of the requested one. * * @param redirectUris the set of the registered URIs to try and find a match. This cannot be null or empty. * @param requestedRedirect the URI used as part of the request * @return the matching URI * @throws RedirectMisma...
Attempt to match one of the registered URIs to the that of the requested one
obtainMatchingRedirect
{ "repo_name": "Fitzoh/spring-security-oauth", "path": "spring-security-oauth2/src/main/java/org/springframework/security/oauth2/provider/endpoint/DefaultRedirectResolver.java", "license": "apache-2.0", "size": 6476 }
[ "java.util.Set", "org.springframework.security.oauth2.common.exceptions.RedirectMismatchException", "org.springframework.util.Assert" ]
import java.util.Set; import org.springframework.security.oauth2.common.exceptions.RedirectMismatchException; import org.springframework.util.Assert;
import java.util.*; import org.springframework.security.oauth2.common.exceptions.*; import org.springframework.util.*;
[ "java.util", "org.springframework.security", "org.springframework.util" ]
java.util; org.springframework.security; org.springframework.util;
690,657
private static byte[] getSequenceS(String algorithm, byte[] digestA, byte[] salt) throws NoSuchAlgorithmException { // 20. produce byte sequence S of the same length as the salt string where // // a) for each block of 32 or 64 bytes of length of the salt string // the entire digest D...
static byte[] function(String algorithm, byte[] digestA, byte[] salt) throws NoSuchAlgorithmException { byte[] sequenceS = new byte[salt.length]; byte[] digestDSResult = getDigestDS(algorithm, digestA, salt); ByteBuffer bufferSequenceS = ByteBuffer.wrap(sequenceS); int numberOfBlocksSalt = salt.length / getInputSize(al...
/** * Calculates the "sequence S", based on a given "digest A" * * @param digestA the digest A * @return the sequence S * @throws NoSuchAlgorithmException */
Calculates the "sequence S", based on a given "digest A"
getSequenceS
{ "repo_name": "sguilhen/wildfly-elytron", "path": "src/main/java/org/wildfly/security/password/impl/UnixSHACryptPasswordImpl.java", "license": "apache-2.0", "size": 17780 }
[ "java.nio.ByteBuffer", "java.security.NoSuchAlgorithmException", "java.util.Arrays" ]
import java.nio.ByteBuffer; import java.security.NoSuchAlgorithmException; import java.util.Arrays;
import java.nio.*; import java.security.*; import java.util.*;
[ "java.nio", "java.security", "java.util" ]
java.nio; java.security; java.util;
1,904,568
public static void writeByteArray(RandomAccessFile file, byte[] datas, int offset, int length) throws IOException { file.write(datas, offset, length); }
static void function(RandomAccessFile file, byte[] datas, int offset, int length) throws IOException { file.write(datas, offset, length); }
/** * Write a part of a <code>byte[]</code> into the file. * @param file a file to read in. * @param datas a <code>byte[]</code> to write into the file. * @param offset offset from the start of the <code>byte[]</code>. * @param length number of bytes to be written starting from the offset of the <code>byte[]<...
Write a part of a <code>byte[]</code> into the file
writeByteArray
{ "repo_name": "jerome-jouvie/NativeFmod", "path": "src-java/org/jouvieje/Fmod/Misc/FileWriterUtils.java", "license": "lgpl-2.1", "size": 8376 }
[ "java.io.IOException", "java.io.RandomAccessFile" ]
import java.io.IOException; import java.io.RandomAccessFile;
import java.io.*;
[ "java.io" ]
java.io;
1,376,861
EClass getGenerationTask();
EClass getGenerationTask();
/** * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.GenerationTask <em>Generation Task</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for class '<em>Generation Task</em>'. * @see hu.bme.mit.inf.dslreason...
Returns the meta object for class '<code>hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.GenerationTask Generation Task</code>'.
getGenerationTask
{ "repo_name": "viatra/VIATRA-Generator", "path": "Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/ApplicationConfigurationPackage.java", "license": "epl-1.0", "size": 236178 }
[ "org.eclipse.emf.ecore.EClass" ]
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
1,261,781
@SuppressWarnings("rawtypes") @Override protected IBindingSet resolve(final Object obj) { final byte[] key = ((ITuple<?>) obj).getKey(); // if results are reported, we need to decode up to subject + object, // otherwise decoding up to the subject...
@SuppressWarnings(STR) IBindingSet function(final Object obj) { final byte[] key = ((ITuple<?>) obj).getKey(); final IV[] ivs = IVUtility.decode(key, extractToPosition); final IBindingSet bs = incomingBindingSet.clone(); bs.set(var, new Constant<IV>(ivs[subjectPos])); if (requiresObjectDereferencing) { final Object[] c...
/** * Resolve tuple to IV. */
Resolve tuple to IV
resolve
{ "repo_name": "wikimedia/wikidata-query-blazegraph", "path": "bigdata-core/bigdata-rdf/src/java/com/bigdata/rdf/sparql/ast/eval/GeoSpatialServiceFactory.java", "license": "gpl-2.0", "size": 105474 }
[ "com.bigdata.bop.Constant", "com.bigdata.bop.IBindingSet", "com.bigdata.btree.ITuple", "com.bigdata.rdf.internal.IVUtility", "com.bigdata.rdf.internal.gis.CoordinateDD", "com.bigdata.rdf.internal.impl.literal.LiteralExtensionIV", "com.bigdata.rdf.sparql.ast.DummyConstantNode", "com.bigdata.rdf.store.A...
import com.bigdata.bop.Constant; import com.bigdata.bop.IBindingSet; import com.bigdata.btree.ITuple; import com.bigdata.rdf.internal.IVUtility; import com.bigdata.rdf.internal.gis.CoordinateDD; import com.bigdata.rdf.internal.impl.literal.LiteralExtensionIV; import com.bigdata.rdf.sparql.ast.DummyConstantNode; import ...
import com.bigdata.bop.*; import com.bigdata.btree.*; import com.bigdata.rdf.internal.*; import com.bigdata.rdf.internal.gis.*; import com.bigdata.rdf.internal.impl.literal.*; import com.bigdata.rdf.sparql.ast.*; import com.bigdata.rdf.store.*;
[ "com.bigdata.bop", "com.bigdata.btree", "com.bigdata.rdf" ]
com.bigdata.bop; com.bigdata.btree; com.bigdata.rdf;
2,547,771
public void setRangeTickBandPaint(Paint paint) { this.rangeTickBandPaint = paint; fireChangeEvent(); }
void function(Paint paint) { this.rangeTickBandPaint = paint; fireChangeEvent(); }
/** * Sets the paint for the range tick bands. * * @param paint the paint (<code>null</code> permitted). * * @see #getRangeTickBandPaint() */
Sets the paint for the range tick bands
setRangeTickBandPaint
{ "repo_name": "Epsilon2/Memetic-Algorithm-for-TSP", "path": "jfreechart-1.0.16/source/org/jfree/chart/plot/XYPlot.java", "license": "mit", "size": 199979 }
[ "java.awt.Paint" ]
import java.awt.Paint;
import java.awt.*;
[ "java.awt" ]
java.awt;
2,198,097
public static RemoteDestroyMessage prepareSend( final InternalDistributedSystem sys, final InternalDistributedMember recipient, final LocalRegion r, final EntryEventImpl event, final Object expectedOldValue, boolean cacheWrite, boolean useOriginRemote, boolean possibleDuplicate) { // recip...
static RemoteDestroyMessage function( final InternalDistributedSystem sys, final InternalDistributedMember recipient, final LocalRegion r, final EntryEventImpl event, final Object expectedOldValue, boolean cacheWrite, boolean useOriginRemote, boolean possibleDuplicate) { final RemoteDestroyReplyProcessor p = new Remote...
/** * Prepares a RemoteDestroyMessage * {@link com.gemstone.gemfire.cache.Region#destroy(Object)} for sending to * the recipient * * @param sys * the distributed system * @param recipient * the recipient of the message * @param r * the ReplicateRegion for which ...
Prepares a RemoteDestroyMessage <code>com.gemstone.gemfire.cache.Region#destroy(Object)</code> for sending to the recipient
prepareSend
{ "repo_name": "papicella/snappy-store", "path": "gemfire-core/src/main/java/com/gemstone/gemfire/internal/cache/RemoteDestroyMessage.java", "license": "apache-2.0", "size": 28374 }
[ "com.gemstone.gemfire.cache.CacheException", "com.gemstone.gemfire.distributed.internal.InternalDistributedSystem", "com.gemstone.gemfire.distributed.internal.membership.InternalDistributedMember" ]
import com.gemstone.gemfire.cache.CacheException; import com.gemstone.gemfire.distributed.internal.InternalDistributedSystem; import com.gemstone.gemfire.distributed.internal.membership.InternalDistributedMember;
import com.gemstone.gemfire.cache.*; import com.gemstone.gemfire.distributed.internal.*; import com.gemstone.gemfire.distributed.internal.membership.*;
[ "com.gemstone.gemfire" ]
com.gemstone.gemfire;
1,324,309
private static void processFile(File aFile, AnalysisEngine aAE, CAS aCAS) throws IOException, AnalysisEngineProcessException { System.out.println("Processing file " + aFile.getName()); String document = FileUtils.file2String(aFile); document = document.trim(); // put document text in CAS ...
static void function(File aFile, AnalysisEngine aAE, CAS aCAS) throws IOException, AnalysisEngineProcessException { System.out.println(STR + aFile.getName()); String document = FileUtils.file2String(aFile); document = document.trim(); aCAS.setDocumentText(document); aAE.process(aCAS); PrintAnnotations.printAnnotations(...
/** * Processes a single XML file and prints annotations to System.out * * @param aFile * file to process * @param aAE * Analysis Engine that will process the file * @param aCAS * CAS that will be used to hold analysis results */
Processes a single XML file and prints annotations to System.out
processFile
{ "repo_name": "apache/uima-uimaj", "path": "uimaj-examples/src/main/java/org/apache/uima/examples/ExampleApplication.java", "license": "apache-2.0", "size": 4344 }
[ "java.io.File", "java.io.IOException", "org.apache.uima.analysis_engine.AnalysisEngine", "org.apache.uima.analysis_engine.AnalysisEngineProcessException", "org.apache.uima.util.FileUtils" ]
import java.io.File; import java.io.IOException; import org.apache.uima.analysis_engine.AnalysisEngine; import org.apache.uima.analysis_engine.AnalysisEngineProcessException; import org.apache.uima.util.FileUtils;
import java.io.*; import org.apache.uima.analysis_engine.*; import org.apache.uima.util.*;
[ "java.io", "org.apache.uima" ]
java.io; org.apache.uima;
2,880,036
public boolean getBoolean(String key,boolean defaultValue) throws TypeMismatchException { Objects.requireNonNull(key, "null key"); Object value=properties.get(key); if (value==null) return defaultValue; if (value.getClass()!=Boolean.class) throw new TypeMismatchException(); return (Boolean)value; }
boolean function(String key,boolean defaultValue) throws TypeMismatchException { Objects.requireNonNull(key, STR); Object value=properties.get(key); if (value==null) return defaultValue; if (value.getClass()!=Boolean.class) throw new TypeMismatchException(); return (Boolean)value; }
/** * Returns the value of the boolean property identified by the given key. If * the key doesn't denote a property, the given default value is returned. * @param key the key of the property to retrieve * @param defaultValue the value to return if no property with the given key exists * @return the value of t...
Returns the value of the boolean property identified by the given key. If the key doesn't denote a property, the given default value is returned
getBoolean
{ "repo_name": "kazocsaba/memento", "path": "src/main/java/hu/kazocsaba/memento/Memento.java", "license": "mit", "size": 28722 }
[ "java.util.Objects" ]
import java.util.Objects;
import java.util.*;
[ "java.util" ]
java.util;
50,867
Availability getAvailabilty(String docUid);
Availability getAvailabilty(String docUid);
/** * Return availability of document in this Storage instance. * * @param docUid Unique ID * @return */
Return availability of document in this Storage instance
getAvailabilty
{ "repo_name": "medicayun/medicayundicom", "path": "dcm4chee-docstore/trunk/dcm4chee-docstore-store/src/main/java/org/dcm4chee/docstore/spi/DocumentStorage.java", "license": "apache-2.0", "size": 8714 }
[ "org.dcm4chee.docstore.Availability" ]
import org.dcm4chee.docstore.Availability;
import org.dcm4chee.docstore.*;
[ "org.dcm4chee.docstore" ]
org.dcm4chee.docstore;
1,617,678
private static List<TariffValue> filterTariffValues(final List<LightValue> source, final Map<Integer, DeviceOutputSetting> dosMap, final DomainType allowedDomainType) { final List<TariffValue> filteredValues = new ArrayList<>(); if (allowedDomainType != DomainType.TARIFF_SWITCHING) { ...
static List<TariffValue> function(final List<LightValue> source, final Map<Integer, DeviceOutputSetting> dosMap, final DomainType allowedDomainType) { final List<TariffValue> filteredValues = new ArrayList<>(); if (allowedDomainType != DomainType.TARIFF_SWITCHING) { return filteredValues; } for (final LightValue lv : s...
/** * Filter light values based on TariffSwitching domain. Only matching values will be returned. * * @param source * list to filter * @param dosMap * mapping of output settings * @param allowedDomainType * type of domain allowed * @return li...
Filter light values based on TariffSwitching domain. Only matching values will be returned
filterTariffValues
{ "repo_name": "wernerb/Platform", "path": "osgp-adapter-domain-core/src/main/java/com/alliander/osgp/adapter/domain/core/application/services/DeviceInstallationService.java", "license": "apache-2.0", "size": 9472 }
[ "com.alliander.osgp.domain.core.entities.DeviceOutputSetting", "com.alliander.osgp.domain.core.valueobjects.DomainType", "com.alliander.osgp.domain.core.valueobjects.LightValue", "com.alliander.osgp.domain.core.valueobjects.RelayType", "com.alliander.osgp.domain.core.valueobjects.TariffValue", "java.util....
import com.alliander.osgp.domain.core.entities.DeviceOutputSetting; import com.alliander.osgp.domain.core.valueobjects.DomainType; import com.alliander.osgp.domain.core.valueobjects.LightValue; import com.alliander.osgp.domain.core.valueobjects.RelayType; import com.alliander.osgp.domain.core.valueobjects.TariffValue; ...
import com.alliander.osgp.domain.core.entities.*; import com.alliander.osgp.domain.core.valueobjects.*; import java.util.*;
[ "com.alliander.osgp", "java.util" ]
com.alliander.osgp; java.util;
384,654
public void createTrack(String trackUUID) { ContentValues initialValues = new ContentValues(); initialValues.put(KEY_TRACKUUID, trackUUID); mDb.insert(DATABASE_TABLE_TRACKS, null, initialValues); }
void function(String trackUUID) { ContentValues initialValues = new ContentValues(); initialValues.put(KEY_TRACKUUID, trackUUID); mDb.insert(DATABASE_TABLE_TRACKS, null, initialValues); }
/** * Create / start a track * * @param trackUUID */
Create / start a track
createTrack
{ "repo_name": "pellekrogholt/noxdroidandroidapp", "path": "src/dk/itu/noxdroid/database/NoxDroidDbAdapter.java", "license": "mit", "size": 13969 }
[ "android.content.ContentValues" ]
import android.content.ContentValues;
import android.content.*;
[ "android.content" ]
android.content;
2,077,888
public void displayDataForDate(Date date) { this.logger.debug("Trying to find entry for date " + date.toString()); this.currentDate = date; Entry entry = DataAccess.getEntryForDateFromDirectory(date, this.metadata, this.contentDirectory); if (entry == null) { this.txtHeading.setText(bundle.getS...
void function(Date date) { this.logger.debug(STR + date.toString()); this.currentDate = date; Entry entry = DataAccess.getEntryForDateFromDirectory(date, this.metadata, this.contentDirectory); if (entry == null) { this.txtHeading.setText(bundle.getString(STR)); this.txtText.setText(""); this.cbxRead.setSelected(false);...
/** * Display data for a specific date. * * @param date the date to display data for. */
Display data for a specific date
displayDataForDate
{ "repo_name": "jeremybrooks/readsy-desktop", "path": "src/main/java/net/jeremybrooks/readsy/gui/TabPanel.java", "license": "gpl-3.0", "size": 20634 }
[ "java.util.Date", "net.jeremybrooks.readsy.DataAccess", "net.jeremybrooks.readsy.bo.Entry" ]
import java.util.Date; import net.jeremybrooks.readsy.DataAccess; import net.jeremybrooks.readsy.bo.Entry;
import java.util.*; import net.jeremybrooks.readsy.*; import net.jeremybrooks.readsy.bo.*;
[ "java.util", "net.jeremybrooks.readsy" ]
java.util; net.jeremybrooks.readsy;
972,007
public static Locale getLocale(String localString) throws IllegalArgumentException{ Locale ret; String[] locstr = localString.split("_"); switch(locstr.length){ case 1: ret = new Locale(locstr[0]); break; case 2: ret = new Locale(locstr[0], locstr[1]); break; case 3: ret = new Locale(locstr[...
static Locale function(String localString) throws IllegalArgumentException{ Locale ret; String[] locstr = localString.split("_"); switch(locstr.length){ case 1: ret = new Locale(locstr[0]); break; case 2: ret = new Locale(locstr[0], locstr[1]); break; case 3: ret = new Locale(locstr[0], locstr[1], locstr[2]); break; de...
/** * Parses and returns Locale by given String localString like <code>en_EN</code> or <code>de_DE</code>. * * @return Locale */
Parses and returns Locale by given String localString like <code>en_EN</code> or <code>de_DE</code>
getLocale
{ "repo_name": "tedvals/mywms", "path": "server.app/los.inventory-ejb/src/de/linogistix/los/inventory/res/InventoryBundleResolver.java", "license": "gpl-3.0", "size": 2168 }
[ "java.util.Locale" ]
import java.util.Locale;
import java.util.*;
[ "java.util" ]
java.util;
490,653
@Override protected String doExecute() { String result; Object fileObj; File file; Properties props; result = null; fileObj = m_InputToken.getPayload(); if (fileObj instanceof File) file = (File) fileObj; else file = new PlaceholderFile((String) fileObj); try {...
String function() { String result; Object fileObj; File file; Properties props; result = null; fileObj = m_InputToken.getPayload(); if (fileObj instanceof File) file = (File) fileObj; else file = new PlaceholderFile((String) fileObj); try { props = new Properties(); if (props.load(file.getAbsolutePath())) m_OutputToken...
/** * Executes the flow item. * * @return null if everything is fine, otherwise error message */
Executes the flow item
doExecute
{ "repo_name": "automenta/adams-core", "path": "src/main/java/adams/flow/transformer/PropertiesFileReader.java", "license": "gpl-3.0", "size": 4222 }
[ "java.io.File" ]
import java.io.File;
import java.io.*;
[ "java.io" ]
java.io;
2,561,518
public BigInteger getP() { return p; }
BigInteger function() { return p; }
/** * Returns the <i>prime modulus</i> <code>p</code>. * * @return the prime modulus <code>p</code>. */
Returns the prime modulus <code>p</code>
getP
{ "repo_name": "freeVM/freeVM", "path": "enhanced/java/classlib/modules/crypto/src/main/java/javax/crypto/spec/DHPrivateKeySpec.java", "license": "apache-2.0", "size": 2241 }
[ "java.math.BigInteger" ]
import java.math.BigInteger;
import java.math.*;
[ "java.math" ]
java.math;
2,507,721
private void noteMarriage(String cmdLine) { if (DEBUG) { System.out.println("\n" + cmdLine + "\n"); } // Create an array of Strings to send to main StringTokenizer st = new StringTokenizer(cmdLine); String[] args = new String[st.countTokens()]; for (int i = 0; st.hasMoreTokens(); i++) {...
void function(String cmdLine) { if (DEBUG) { System.out.println("\n" + cmdLine + "\n"); } StringTokenizer st = new StringTokenizer(cmdLine); String[] args = new String[st.countTokens()]; for (int i = 0; st.hasMoreTokens(); i++) { args[i] = st.nextToken(); } NoteMarriage.main(args); reset(NoteMarriage.class); }
/** * Invokes the main method of NoteMarriage with the given command line * string */
Invokes the main method of NoteMarriage with the given command line string
noteMarriage
{ "repo_name": "DavidWhitlock/PortlandStateJava", "path": "family/src/test/java/edu/pdx/cs410J/family/AddPersonTest.java", "license": "apache-2.0", "size": 4465 }
[ "java.util.StringTokenizer" ]
import java.util.StringTokenizer;
import java.util.*;
[ "java.util" ]
java.util;
676,237
@Override @SuppressWarnings("unchecked") public Set<ObjectName> queryNames(final ObjectName objectName, final QueryExp queryExpression) { final Link link = findLink(MBEAN_QUERY_LINK_RELATION); if (link != null) { final ClientHttpRequest request = createHttpRequest(link); request.setContent(n...
@SuppressWarnings(STR) Set<ObjectName> function(final ObjectName objectName, final QueryExp queryExpression) { final Link link = findLink(MBEAN_QUERY_LINK_RELATION); if (link != null) { final ClientHttpRequest request = createHttpRequest(link); request.setContent(new QueryParameterSource(objectName, queryExpression)); ...
/** * This method searches the MBean server, based on the OperationsInvoker's JMX-based or remoting capable MBean server * connection, for MBeans matching a specific ObjectName or matching an ObjectName pattern along with satisfying * criteria from the Query expression. * * @param objectName the ObjectN...
This method searches the MBean server, based on the OperationsInvoker's JMX-based or remoting capable MBean server connection, for MBeans matching a specific ObjectName or matching an ObjectName pattern along with satisfying criteria from the Query expression
queryNames
{ "repo_name": "ameybarve15/incubator-geode", "path": "gemfire-core/src/main/java/com/gemstone/gemfire/management/internal/web/shell/AbstractHttpOperationInvoker.java", "license": "apache-2.0", "size": 35164 }
[ "com.gemstone.gemfire.internal.util.IOUtils", "com.gemstone.gemfire.management.internal.web.domain.Link", "com.gemstone.gemfire.management.internal.web.domain.QueryParameterSource", "com.gemstone.gemfire.management.internal.web.http.ClientHttpRequest", "java.util.Set", "javax.management.ObjectName", "ja...
import com.gemstone.gemfire.internal.util.IOUtils; import com.gemstone.gemfire.management.internal.web.domain.Link; import com.gemstone.gemfire.management.internal.web.domain.QueryParameterSource; import com.gemstone.gemfire.management.internal.web.http.ClientHttpRequest; import java.util.Set; import javax.management.O...
import com.gemstone.gemfire.internal.util.*; import com.gemstone.gemfire.management.internal.web.domain.*; import com.gemstone.gemfire.management.internal.web.http.*; import java.util.*; import javax.management.*; import org.springframework.http.*;
[ "com.gemstone.gemfire", "java.util", "javax.management", "org.springframework.http" ]
com.gemstone.gemfire; java.util; javax.management; org.springframework.http;
137,529
void setComments(Map<Long, ICommentTrackable> comments);
void setComments(Map<Long, ICommentTrackable> comments);
/** * Sets the comments that are added to the task. At the creation time of * course null * * @param comments * - a map of comments, default null * @see ICommentTrackable */
Sets the comments that are added to the task. At the creation time of course null
setComments
{ "repo_name": "tita/tita", "path": "tita-issuetracker-integration/src/main/java/at/ac/tuwien/ifs/tita/issuetracker/interfaces/ITaskTrackable.java", "license": "apache-2.0", "size": 6417 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
1,514,882
public Map<Object,Object> getSystemProperties() throws IOException, InterruptedException { return RemotingDiagnostics.getSystemProperties(channel); }
Map<Object,Object> function() throws IOException, InterruptedException { return RemotingDiagnostics.getSystemProperties(channel); }
/** * Gets the system properties of the JVM on this computer. * If this is the master, it returns the system property of the master computer. */
Gets the system properties of the JVM on this computer. If this is the master, it returns the system property of the master computer
getSystemProperties
{ "repo_name": "pantheon-systems/jenkins", "path": "maven-plugin/src/main/java/hudson/maven/MavenProbeAction.java", "license": "mit", "size": 4232 }
[ "hudson.util.RemotingDiagnostics", "java.io.IOException", "java.util.Map" ]
import hudson.util.RemotingDiagnostics; import java.io.IOException; import java.util.Map;
import hudson.util.*; import java.io.*; import java.util.*;
[ "hudson.util", "java.io", "java.util" ]
hudson.util; java.io; java.util;
1,989,056
public String getSectionAsString(Section section, boolean withComments, String delimiter, String dbSuffix) { List<String> sectionList = getSectionContents(section, withComments, dbSuffix); if (sectionList == null) { return null; } return Joiner.o...
String function(Section section, boolean withComments, String delimiter, String dbSuffix) { List<String> sectionList = getSectionContents(section, withComments, dbSuffix); if (sectionList == null) { return null; } return Joiner.on(delimiter).join(sectionList); }
/** * Returns a section concatenated into a single string, with the supplied delimiter * used to separate each line. */
Returns a section concatenated into a single string, with the supplied delimiter used to separate each line
getSectionAsString
{ "repo_name": "cloudera/Impala", "path": "fe/src/test/java/org/apache/impala/testutil/TestFileParser.java", "license": "apache-2.0", "size": 12403 }
[ "com.google.common.base.Joiner", "java.util.List" ]
import com.google.common.base.Joiner; import java.util.List;
import com.google.common.base.*; import java.util.*;
[ "com.google.common", "java.util" ]
com.google.common; java.util;
696,645
public void setCoursesPaid(List<Course> coursesPaid) { this.coursesPaid = coursesPaid; }
void function(List<Course> coursesPaid) { this.coursesPaid = coursesPaid; }
/** * Setze die Liste der schon bezahlten Kurse des Patienten. */
Setze die Liste der schon bezahlten Kurse des Patienten
setCoursesPaid
{ "repo_name": "MoonShade/YADBA", "path": "src/model/Patient.java", "license": "gpl-3.0", "size": 6254 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,259,530
PackagingType getPackagingType();
PackagingType getPackagingType();
/** * Packaging type of the project * * @return Packaging type of the project */
Packaging type of the project
getPackagingType
{ "repo_name": "shrinkwrap/resolver", "path": "maven/api-maven/src/main/java/org/jboss/shrinkwrap/resolver/api/maven/pom/ParsedPomFile.java", "license": "apache-2.0", "size": 5016 }
[ "org.jboss.shrinkwrap.resolver.api.maven.PackagingType" ]
import org.jboss.shrinkwrap.resolver.api.maven.PackagingType;
import org.jboss.shrinkwrap.resolver.api.maven.*;
[ "org.jboss.shrinkwrap" ]
org.jboss.shrinkwrap;
2,676,511
@Override public void onCheckedChanged(CompoundButton switchView, boolean isChecked) { if (!isResumed()) { // very important, setCheched(...) is called automatically during // Fragment recreation on device rotations return; } ...
void function(CompoundButton switchView, boolean isChecked) { if (!isResumed()) { return; } if (isChecked) { ((FileActivity) getActivity()).getFileOperationsHelper(). requestPasswordForShareViaLink(mFile, false); } else { ((FileActivity) getActivity()).getFileOperationsHelper(). setPasswordToShareViaLink(mFile, ""); } ...
/** * Called by R.id.shareViaLinkPasswordSwitch to set or clear the password. * * @param switchView {@link Switch} toggled by the user, R.id.shareViaLinkPasswordSwitch * @param isChecked New switch state. */
Called by R.id.shareViaLinkPasswordSwitch to set or clear the password
onCheckedChanged
{ "repo_name": "ekeitho/android", "path": "src/com/owncloud/android/ui/fragment/ShareFileFragment.java", "license": "gpl-2.0", "size": 29299 }
[ "android.widget.CompoundButton", "com.owncloud.android.ui.activity.FileActivity" ]
import android.widget.CompoundButton; import com.owncloud.android.ui.activity.FileActivity;
import android.widget.*; import com.owncloud.android.ui.activity.*;
[ "android.widget", "com.owncloud.android" ]
android.widget; com.owncloud.android;
1,664,705
public void testInitLuteceProperties( ) { assertNotNull( AppPropertiesService.getProperty( "lutece.page.root" ) ); assertNotNull( AppPropertiesService.getProperty( "lutece.root.name" ) ); }
void function( ) { assertNotNull( AppPropertiesService.getProperty( STR ) ); assertNotNull( AppPropertiesService.getProperty( STR ) ); }
/** * Check some keys from lutece.properties */
Check some keys from lutece.properties
testInitLuteceProperties
{ "repo_name": "rzara/lutece-core", "path": "src/test/java/fr/paris/lutece/portal/util/AppInitTest.java", "license": "bsd-3-clause", "size": 3407 }
[ "fr.paris.lutece.portal.service.util.AppPropertiesService" ]
import fr.paris.lutece.portal.service.util.AppPropertiesService;
import fr.paris.lutece.portal.service.util.*;
[ "fr.paris.lutece" ]
fr.paris.lutece;
2,245,834
public boolean SaveRasterImageAsLocalFile(JavaPairRDD<Integer, ImageSerializableWrapper> distributedImage, String outputPath, ImageType imageType) throws Exception { List<Tuple2<Integer, ImageSerializableWrapper>> imagePartitions = distributedImage.collect(); for (Tuple2<Integer, Ima...
boolean function(JavaPairRDD<Integer, ImageSerializableWrapper> distributedImage, String outputPath, ImageType imageType) throws Exception { List<Tuple2<Integer, ImageSerializableWrapper>> imagePartitions = distributedImage.collect(); for (Tuple2<Integer, ImageSerializableWrapper> imagePartition : imagePartitions) { Sa...
/** * Save raster image as local file. * * @param distributedImage the distributed image * @param outputPath the output path * @param imageType the image type * @return true, if successful * @throws Exception the exception */
Save raster image as local file
SaveRasterImageAsLocalFile
{ "repo_name": "zongsizhang/GeoSpark", "path": "viz/src/main/java/org/datasyslab/geosparkviz/core/ImageGenerator.java", "license": "mit", "size": 16860 }
[ "java.util.List", "org.apache.spark.api.java.JavaPairRDD", "org.datasyslab.geosparkviz.utils.ImageType" ]
import java.util.List; import org.apache.spark.api.java.JavaPairRDD; import org.datasyslab.geosparkviz.utils.ImageType;
import java.util.*; import org.apache.spark.api.java.*; import org.datasyslab.geosparkviz.utils.*;
[ "java.util", "org.apache.spark", "org.datasyslab.geosparkviz" ]
java.util; org.apache.spark; org.datasyslab.geosparkviz;
1,778,033
@Deprecated public double solve(final UnivariateRealFunction f, final double min, final double max, final double initial) throws MaxIterationsExceededException, FunctionEvaluationException { // check for zeros before verifying bracketing if (f.value(min) == 0.0) ...
double function(final UnivariateRealFunction f, final double min, final double max, final double initial) throws MaxIterationsExceededException, FunctionEvaluationException { if (f.value(min) == 0.0) { return min; } if (f.value(max) == 0.0) { return max; } if (f.value(initial) == 0.0) { return initial; } verifyBracketi...
/** * Find a real root in the given interval with initial value. * <p> * Requires bracketing condition.</p> * * @param f the function to solve * @param min the lower bound for the interval * @param max the upper bound for the interval * @param initial the start value to use ...
Find a real root in the given interval with initial value. Requires bracketing condition
solve
{ "repo_name": "haisamido/SFDaaS", "path": "src/org/apache/commons/math/analysis/solvers/MullerSolver.java", "license": "lgpl-3.0", "size": 17915 }
[ "org.apache.commons.math.FunctionEvaluationException", "org.apache.commons.math.MaxIterationsExceededException", "org.apache.commons.math.analysis.UnivariateRealFunction" ]
import org.apache.commons.math.FunctionEvaluationException; import org.apache.commons.math.MaxIterationsExceededException; import org.apache.commons.math.analysis.UnivariateRealFunction;
import org.apache.commons.math.*; import org.apache.commons.math.analysis.*;
[ "org.apache.commons" ]
org.apache.commons;
352,107
public static void deduceCollations( List<RelCollation> outputCollations, final int sourceCount, List<RexLocalRef> refs, List<RelCollation> inputCollations) { int[] targets = new int[sourceCount]; Arrays.fill(targets, -1); for (int i = 0; i < refs.size(); i++) { final RexLoca...
static void function( List<RelCollation> outputCollations, final int sourceCount, List<RexLocalRef> refs, List<RelCollation> inputCollations) { int[] targets = new int[sourceCount]; Arrays.fill(targets, -1); for (int i = 0; i < refs.size(); i++) { final RexLocalRef ref = refs.get(i); final int source = ref.getIndex(); ...
/** * Given a list of expressions and a description of which are ordered, * computes a list of collations. The result is mutable. */
Given a list of expressions and a description of which are ordered, computes a list of collations. The result is mutable
deduceCollations
{ "repo_name": "mehant/incubator-calcite", "path": "core/src/main/java/org/apache/calcite/rex/RexProgram.java", "license": "apache-2.0", "size": 30444 }
[ "java.util.ArrayList", "java.util.Arrays", "java.util.List", "org.apache.calcite.rel.RelCollation", "org.apache.calcite.rel.RelCollationImpl", "org.apache.calcite.rel.RelFieldCollation" ]
import java.util.ArrayList; import java.util.Arrays; import java.util.List; import org.apache.calcite.rel.RelCollation; import org.apache.calcite.rel.RelCollationImpl; import org.apache.calcite.rel.RelFieldCollation;
import java.util.*; import org.apache.calcite.rel.*;
[ "java.util", "org.apache.calcite" ]
java.util; org.apache.calcite;
939,467
public void setURLRegexp(String pattern) { if (! pattern.endsWith("$")) pattern = pattern + "$"; if (! pattern.startsWith("^")) pattern = "^" + pattern; if (CauchoSystem.isCaseInsensitive()) _urlRegexp = Pattern.compile(pattern, Pattern.CASE_INSENSITIVE); else _urlRegexp = P...
void function(String pattern) { if (! pattern.endsWith("$")) pattern = pattern + "$"; if (! pattern.startsWith("^")) pattern = "^" + pattern; if (CauchoSystem.isCaseInsensitive()) _urlRegexp = Pattern.compile(pattern, Pattern.CASE_INSENSITIVE); else _urlRegexp = Pattern.compile(pattern); }
/** * Sets the url-regexp */
Sets the url-regexp
setURLRegexp
{ "repo_name": "christianchristensen/resin", "path": "modules/resin/src/com/caucho/server/webapp/WebAppConfig.java", "license": "gpl-2.0", "size": 3898 }
[ "com.caucho.server.util.CauchoSystem", "java.util.regex.Pattern" ]
import com.caucho.server.util.CauchoSystem; import java.util.regex.Pattern;
import com.caucho.server.util.*; import java.util.regex.*;
[ "com.caucho.server", "java.util" ]
com.caucho.server; java.util;
1,546,927
public void testSetters() { ValueInteger vs = new ValueInteger(0); vs.setString("unknown"); assertEquals(0, vs.getInteger()); vs.setString("-4.0"); assertEquals(0, vs.getInteger()); vs.setString("-4"); assertEquals(-4, vs.getInteger()); vs.setString("0"); assertEquals(0, vs.getInte...
void function() { ValueInteger vs = new ValueInteger(0); vs.setString(STR); assertEquals(0, vs.getInteger()); vs.setString("-4.0"); assertEquals(0, vs.getInteger()); vs.setString("-4"); assertEquals(-4, vs.getInteger()); vs.setString("0"); assertEquals(0, vs.getInteger()); vs.setString("3"); assertEquals(3, vs.getInteg...
/** * Test the setters of ValueInteger */
Test the setters of ValueInteger
testSetters
{ "repo_name": "ontometrics/ontokettle", "path": "test/java/be/ibridge/kettle/core/values/ValueIntegerTest.java", "license": "lgpl-2.1", "size": 4772 }
[ "be.ibridge.kettle.core.value.ValueInteger", "java.math.BigDecimal", "java.text.ParseException", "java.text.SimpleDateFormat", "java.util.Date", "java.util.Locale" ]
import be.ibridge.kettle.core.value.ValueInteger; import java.math.BigDecimal; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; import java.util.Locale;
import be.ibridge.kettle.core.value.*; import java.math.*; import java.text.*; import java.util.*;
[ "be.ibridge.kettle", "java.math", "java.text", "java.util" ]
be.ibridge.kettle; java.math; java.text; java.util;
1,115,324
interface WithTemplateParameters { WithCreate withTemplateParameters(List<ParameterContract> templateParameters); } interface WithCreate extends Creatable<OperationContract>, DefinitionStages.WithDescription, DefinitionStages.WithPolicies, DefinitionStages.With...
interface WithTemplateParameters { WithCreate withTemplateParameters(List<ParameterContract> templateParameters); } interface WithCreate extends Creatable<OperationContract>, DefinitionStages.WithDescription, DefinitionStages.WithPolicies, DefinitionStages.WithRequest, DefinitionStages.WithResponses, DefinitionStages.W...
/** * Specifies templateParameters. * @param templateParameters Collection of URL template parameters * @return the next definition stage */
Specifies templateParameters
withTemplateParameters
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/apimanagement/mgmt-v2019_01_01/src/main/java/com/microsoft/azure/management/apimanagement/v2019_01_01/OperationContract.java", "license": "mit", "size": 10599 }
[ "com.microsoft.azure.arm.model.Appliable", "com.microsoft.azure.arm.model.Creatable", "java.util.List" ]
import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; import java.util.List;
import com.microsoft.azure.arm.model.*; import java.util.*;
[ "com.microsoft.azure", "java.util" ]
com.microsoft.azure; java.util;
2,781,615
public Iterator getSortedIterator() { return (new TreeSet(nodes)).iterator(); }
Iterator function() { return (new TreeSet(nodes)).iterator(); }
/** * Get an Iterator for the nodes of this row, sorted by their natural * order. * * @return Iterator for sorted nodes */
Get an Iterator for the nodes of this row, sorted by their natural order
getSortedIterator
{ "repo_name": "NCIP/cagrid", "path": "cagrid/Software/core/caGrid/projects/graph/src/gov/nih/nci/cagrid/graph/uml/classdiagram/ClassdiagramLayouter.java", "license": "bsd-3-clause", "size": 20481 }
[ "java.util.Iterator", "java.util.TreeSet" ]
import java.util.Iterator; import java.util.TreeSet;
import java.util.*;
[ "java.util" ]
java.util;
2,758,658
return new ArrayList<RMContainer>(liveContainers.values()); }
return new ArrayList<RMContainer>(liveContainers.values()); }
/** * Get the live containers of the application. * @return live containers of the application */
Get the live containers of the application
getLiveContainers
{ "repo_name": "bysslord/hadoop", "path": "hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/SchedulerApplicationAttempt.java", "license": "apache-2.0", "size": 24893 }
[ "java.util.ArrayList", "org.apache.hadoop.yarn.server.resourcemanager.rmcontainer.RMContainer" ]
import java.util.ArrayList; import org.apache.hadoop.yarn.server.resourcemanager.rmcontainer.RMContainer;
import java.util.*; import org.apache.hadoop.yarn.server.resourcemanager.rmcontainer.*;
[ "java.util", "org.apache.hadoop" ]
java.util; org.apache.hadoop;
2,715,749
public void toggleKeyboard() { ((InputMethodManager) ctx.getSystemService(Context.INPUT_METHOD_SERVICE)).toggleSoftInput(0, 0); }
void function() { ((InputMethodManager) ctx.getSystemService(Context.INPUT_METHOD_SERVICE)).toggleSoftInput(0, 0); }
/** * Shows the keayboard if it's hidden and hides it if it's shown */
Shows the keayboard if it's hidden and hides it if it's shown
toggleKeyboard
{ "repo_name": "tmalahie/aQuery", "path": "main/java/aquery/com/aquery/$Utils.java", "license": "lgpl-3.0", "size": 65615 }
[ "android.content.Context", "android.view.inputmethod.InputMethodManager" ]
import android.content.Context; import android.view.inputmethod.InputMethodManager;
import android.content.*; import android.view.inputmethod.*;
[ "android.content", "android.view" ]
android.content; android.view;
2,280,469
public void checkoutBranch(String refName) throws CoreException { new BranchOperation(repository, refName).execute(null); }
void function(String refName) throws CoreException { new BranchOperation(repository, refName).execute(null); }
/** * Checkouts branch * * @param refName * full name of branch * @throws CoreException */
Checkouts branch
checkoutBranch
{ "repo_name": "blizzy78/egit", "path": "org.eclipse.egit.core.test/src/org/eclipse/egit/core/test/TestRepository.java", "license": "epl-1.0", "size": 15610 }
[ "org.eclipse.core.runtime.CoreException", "org.eclipse.egit.core.op.BranchOperation" ]
import org.eclipse.core.runtime.CoreException; import org.eclipse.egit.core.op.BranchOperation;
import org.eclipse.core.runtime.*; import org.eclipse.egit.core.op.*;
[ "org.eclipse.core", "org.eclipse.egit" ]
org.eclipse.core; org.eclipse.egit;
2,538,426
public void test011LocalDestroyRegion() throws Exception { PartitionedRegion pr = (PartitionedRegion)PartitionedRegionTestHelper .createPartitionedRegion("testClose", String.valueOf(200), 0); pr.put("K1", "V1"); pr.get("K1"); pr.localDestroyRegion(); if (pr.isClosed || !pr.isDestroyed())...
void function() throws Exception { PartitionedRegion pr = (PartitionedRegion)PartitionedRegionTestHelper .createPartitionedRegion(STR, String.valueOf(200), 0); pr.put("K1", "V1"); pr.get("K1"); pr.localDestroyRegion(); if (pr.isClosed !pr.isDestroyed()) fail(STR + pr.isClosed + STR + pr.isDestroyed()); try { pr.put("K2...
/** * Tests localDestroyRegion() API of PR. It should locallyDestroy the accessor, data store and meta-data. * */
Tests localDestroyRegion() API of PR. It should locallyDestroy the accessor, data store and meta-data
test011LocalDestroyRegion
{ "repo_name": "gemxd/gemfirexd-oss", "path": "tests/core/src/main/java/com/gemstone/gemfire/internal/cache/PartitionedRegionSingleNodeOperationsJUnitTest.java", "license": "apache-2.0", "size": 51852 }
[ "com.gemstone.gemfire.cache.RegionDestroyedException" ]
import com.gemstone.gemfire.cache.RegionDestroyedException;
import com.gemstone.gemfire.cache.*;
[ "com.gemstone.gemfire" ]
com.gemstone.gemfire;
2,580,461
public boolean isCollapsed(TreePath path) { return !isExpanded(path); }
boolean function(TreePath path) { return !isExpanded(path); }
/** * Returns true if the value identified by path is currently collapsed, * this will return false if any of the values in path are currently * not being displayed. * * @param path the <code>TreePath</code> to check * @return true if any of the nodes in the node's path are collapsed, ...
Returns true if the value identified by path is currently collapsed, this will return false if any of the values in path are currently not being displayed
isCollapsed
{ "repo_name": "mirkosertic/Bytecoder", "path": "classlib/java.desktop/src/main/resources/META-INF/modules/java.desktop/classes/javax/swing/JTree.java", "license": "apache-2.0", "size": 215008 }
[ "javax.swing.tree.TreePath" ]
import javax.swing.tree.TreePath;
import javax.swing.tree.*;
[ "javax.swing" ]
javax.swing;
1,403,423
protected File getWorkingDirectory() { return workingDirectory; }
File function() { return workingDirectory; }
/** * Gets derived CGI working directory * * @return working directory * */
Gets derived CGI working directory
getWorkingDirectory
{ "repo_name": "jasonleaster/TheWayToJava", "path": "HowTomcatWorks/src/main/java/org/apache/catalina/servlets/CGIServlet.java", "license": "gpl-3.0", "size": 67201 }
[ "java.io.File" ]
import java.io.File;
import java.io.*;
[ "java.io" ]
java.io;
1,110,632
void setRootEditor(AbstractRootEditor rootEditor);
void setRootEditor(AbstractRootEditor rootEditor);
/** * Sets the root editor for this sub view. This is needed for event handling purposes or the * access to the preference area. * * @param rootEditor * The root editor. */
Sets the root editor for this sub view. This is needed for event handling purposes or the access to the preference area
setRootEditor
{ "repo_name": "kugelr/inspectIT", "path": "inspectIT/src/info/novatec/inspectit/rcp/editor/ISubView.java", "license": "agpl-3.0", "size": 4743 }
[ "info.novatec.inspectit.rcp.editor.root.AbstractRootEditor" ]
import info.novatec.inspectit.rcp.editor.root.AbstractRootEditor;
import info.novatec.inspectit.rcp.editor.root.*;
[ "info.novatec.inspectit" ]
info.novatec.inspectit;
1,261,190
@Before(stages=LifecycleStage.HandlerResolution) public void addHandlerResolutionAttribute() { context.getRequest().setAttribute("HandlerResolution", "HandlerResolutionAttribute"); context.getRequest().getSession().setAttribute("HandlerResolution", "HandlerResolutionAttribute"); }
@Before(stages=LifecycleStage.HandlerResolution) void function() { context.getRequest().setAttribute(STR, STR); context.getRequest().getSession().setAttribute(STR, STR); }
/** * Add an attribute that name matches stage. */
Add an attribute that name matches stage
addHandlerResolutionAttribute
{ "repo_name": "StripesFramework/stripes-stuff", "path": "src/test/java/org/stripesstuff/tests/waitpage/action/RequestTestActionBean.java", "license": "apache-2.0", "size": 5926 }
[ "net.sourceforge.stripes.action.Before", "net.sourceforge.stripes.controller.LifecycleStage" ]
import net.sourceforge.stripes.action.Before; import net.sourceforge.stripes.controller.LifecycleStage;
import net.sourceforge.stripes.action.*; import net.sourceforge.stripes.controller.*;
[ "net.sourceforge.stripes" ]
net.sourceforge.stripes;
1,671,213
public void reportJSException(String instanceId, String function, String exception) { if (WXEnvironment.isApkDebugable()) { WXLogUtils.e("reportJSException >>>> instanceId:" + instanceId + ", exception function:" + function + ", exception:" ...
void function(String instanceId, String function, String exception) { if (WXEnvironment.isApkDebugable()) { WXLogUtils.e(STR + instanceId + STR + function + STR + exception); } WXSDKInstance instance; if (instanceId != null && (instance = WXSDKManager.getInstance().getSDKInstance(instanceId)) != null) { instance.onJSEx...
/** * Report JavaScript Exception */
Report JavaScript Exception
reportJSException
{ "repo_name": "zhangquan/weex", "path": "android/sdk/src/main/java/com/taobao/weex/bridge/WXBridgeManager.java", "license": "apache-2.0", "size": 49439 }
[ "com.taobao.weex.WXEnvironment", "com.taobao.weex.WXSDKInstance", "com.taobao.weex.WXSDKManager", "com.taobao.weex.common.WXErrorCode", "com.taobao.weex.utils.WXLogUtils" ]
import com.taobao.weex.WXEnvironment; import com.taobao.weex.WXSDKInstance; import com.taobao.weex.WXSDKManager; import com.taobao.weex.common.WXErrorCode; import com.taobao.weex.utils.WXLogUtils;
import com.taobao.weex.*; import com.taobao.weex.common.*; import com.taobao.weex.utils.*;
[ "com.taobao.weex" ]
com.taobao.weex;
1,714,117
public Response post(String path, String contentType, byte[] content, Header extraHdr) throws IOException { return post(cluster, path, contentType, content, extraHdr); }
Response function(String path, String contentType, byte[] content, Header extraHdr) throws IOException { return post(cluster, path, contentType, content, extraHdr); }
/** * Send a POST request * @param path the path or URI * @param contentType the content MIME type * @param content the content bytes * @param extraHdr additional Header to send * @return a Response object with response detail * @throws IOException */
Send a POST request
post
{ "repo_name": "Eshcar/hbase", "path": "hbase-rest/src/main/java/org/apache/hadoop/hbase/rest/client/Client.java", "license": "apache-2.0", "size": 24202 }
[ "java.io.IOException", "org.apache.http.Header" ]
import java.io.IOException; import org.apache.http.Header;
import java.io.*; import org.apache.http.*;
[ "java.io", "org.apache.http" ]
java.io; org.apache.http;
1,639,704
protected boolean skipSpaces() throws IOException { // load more characters, if needed if (fCurrentEntity.position == fCurrentEntity.count) { load(0, true, true); } //we are doing this check only in skipSpace() because it is called by //fMiscDispatcher and we w...
boolean function() throws IOException { if (fCurrentEntity.position == fCurrentEntity.count) { load(0, true, true); } if(fCurrentEntity == null){ return false ; } int c = fCurrentEntity.ch[fCurrentEntity.position]; int offset = fCurrentEntity.position - 1; if (fCurrentEntity.isExternal()) { if (XML11Char.isXML11Space(c...
/** * 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 error occu...
Skips space characters appearing immediately on the input. Note: The characters are consumed only if they are space characters
skipSpaces
{ "repo_name": "openjdk/jdk7u", "path": "jaxp/src/com/sun/org/apache/xerces/internal/impl/XML11EntityScanner.java", "license": "gpl-2.0", "size": 52996 }
[ "com.sun.org.apache.xerces.internal.util.XML11Char", "com.sun.org.apache.xerces.internal.util.XMLChar", "java.io.IOException" ]
import com.sun.org.apache.xerces.internal.util.XML11Char; import com.sun.org.apache.xerces.internal.util.XMLChar; import java.io.IOException;
import com.sun.org.apache.xerces.internal.util.*; import java.io.*;
[ "com.sun.org", "java.io" ]
com.sun.org; java.io;
183,676
KieServerSetup connect(KieServerInfo serverInfo);
KieServerSetup connect(KieServerInfo serverInfo);
/** * Entry point for for KieServer to connect(and register if done for the first time). At the same time, when given KieServerInstance * has been already added a KieServerSetup with data will be returned. Otherwise empty (or default) KieServerSetup will be provided. * @param serverInfo representation of...
Entry point for for KieServer to connect(and register if done for the first time). At the same time, when given KieServerInstance has been already added a KieServerSetup with data will be returned. Otherwise empty (or default) KieServerSetup will be provided
connect
{ "repo_name": "BeatCoding/droolsjbpm-integration", "path": "kie-server-parent/kie-server-controller/kie-server-controller-api/src/main/java/org/kie/server/controller/api/KieServerController.java", "license": "apache-2.0", "size": 1648 }
[ "org.kie.server.api.model.KieServerInfo", "org.kie.server.controller.api.model.KieServerSetup" ]
import org.kie.server.api.model.KieServerInfo; import org.kie.server.controller.api.model.KieServerSetup;
import org.kie.server.api.model.*; import org.kie.server.controller.api.model.*;
[ "org.kie.server" ]
org.kie.server;
354,809
public Type getDataType() { if ( super.getDataType() == null ) { super.setDataType( resolveDataType() ); } return super.getDataType(); }
Type function() { if ( super.getDataType() == null ) { super.setDataType( resolveDataType() ); } return super.getDataType(); }
/** * Figure out the type of the binary expression by looking at * the types of the operands. Sometimes we don't know both types, * if, for example, one is a parameter. */
Figure out the type of the binary expression by looking at the types of the operands. Sometimes we don't know both types, if, for example, one is a parameter
getDataType
{ "repo_name": "renmeng8875/projects", "path": "Hibernate-source/源代码及重要说明/Hibernate相关资料/hibernate-3.2.0.ga/hibernate-3.2/src/org/hibernate/hql/ast/tree/BinaryArithmeticOperatorNode.java", "license": "apache-2.0", "size": 6883 }
[ "org.hibernate.type.Type" ]
import org.hibernate.type.Type;
import org.hibernate.type.*;
[ "org.hibernate.type" ]
org.hibernate.type;
2,006,908
@Query(value = FIND_UNUSED_APPLICATIONS_QUERY, nativeQuery = true) Set<Long> findUnusedApplications( @Param("createdThreshold") Instant createdThreshold, @Param("limit") int limit );
@Query(value = FIND_UNUSED_APPLICATIONS_QUERY, nativeQuery = true) Set<Long> findUnusedApplications( @Param(STR) Instant createdThreshold, @Param("limit") int limit );
/** * Delete any application records where it's not linked to any jobs and it's not linked to any commands and was * created before the given time. * * @param createdThreshold The instant in time before which records should be considered for deletion. Exclusive. * @param limit Maximu...
Delete any application records where it's not linked to any jobs and it's not linked to any commands and was created before the given time
findUnusedApplications
{ "repo_name": "tgianos/genie", "path": "genie-web/src/main/java/com/netflix/genie/web/data/services/impl/jpa/repositories/JpaApplicationRepository.java", "license": "apache-2.0", "size": 4135 }
[ "java.time.Instant", "java.util.Set", "org.springframework.data.jpa.repository.Query", "org.springframework.data.repository.query.Param" ]
import java.time.Instant; import java.util.Set; import org.springframework.data.jpa.repository.Query; import org.springframework.data.repository.query.Param;
import java.time.*; import java.util.*; import org.springframework.data.jpa.repository.*; import org.springframework.data.repository.query.*;
[ "java.time", "java.util", "org.springframework.data" ]
java.time; java.util; org.springframework.data;
2,884,208
List<FileAnnotationData> getTabularData() { StructuredDataResults data = parent.getStructuredData(); List<FileAnnotationData> l = new ArrayList<FileAnnotationData>(); if (data == null) return l; Collection<FileAnnotationData> attachments = data.getAttachments(); if (attachments == null) return l; Iter...
List<FileAnnotationData> getTabularData() { StructuredDataResults data = parent.getStructuredData(); List<FileAnnotationData> l = new ArrayList<FileAnnotationData>(); if (data == null) return l; Collection<FileAnnotationData> attachments = data.getAttachments(); if (attachments == null) return l; Iterator<FileAnnotatio...
/** * Returns the collection of the attachments linked to the * <code>DataObject</code>. * * @return See above. */
Returns the collection of the attachments linked to the <code>DataObject</code>
getTabularData
{ "repo_name": "stelfrich/openmicroscopy", "path": "components/insight/SRC/org/openmicroscopy/shoola/agents/metadata/editor/EditorModel.java", "license": "gpl-2.0", "size": 125983 }
[ "java.util.ArrayList", "java.util.Collection", "java.util.Iterator", "java.util.List", "org.openmicroscopy.shoola.env.data.util.StructuredDataResults" ]
import java.util.ArrayList; import java.util.Collection; import java.util.Iterator; import java.util.List; import org.openmicroscopy.shoola.env.data.util.StructuredDataResults;
import java.util.*; import org.openmicroscopy.shoola.env.data.util.*;
[ "java.util", "org.openmicroscopy.shoola" ]
java.util; org.openmicroscopy.shoola;
771,008
public java.util.List<fr.lip6.move.pnml.symmetricnet.multisets.hlapi.CardinalityOfHLAPI> getSubterm_multisets_CardinalityOfHLAPI(){ java.util.List<fr.lip6.move.pnml.symmetricnet.multisets.hlapi.CardinalityOfHLAPI> retour = new ArrayList<fr.lip6.move.pnml.symmetricnet.multisets.hlapi.CardinalityOfHLAPI>(); fo...
java.util.List<fr.lip6.move.pnml.symmetricnet.multisets.hlapi.CardinalityOfHLAPI> function(){ java.util.List<fr.lip6.move.pnml.symmetricnet.multisets.hlapi.CardinalityOfHLAPI> retour = new ArrayList<fr.lip6.move.pnml.symmetricnet.multisets.hlapi.CardinalityOfHLAPI>(); for (Term elemnt : getSubterm()) { if(elemnt.getCla...
/** * This accessor return a list of encapsulated subelement, only of CardinalityOfHLAPI kind. * WARNING : this method can creates a lot of new object in memory. */
This accessor return a list of encapsulated subelement, only of CardinalityOfHLAPI kind. WARNING : this method can creates a lot of new object in memory
getSubterm_multisets_CardinalityOfHLAPI
{ "repo_name": "lhillah/pnmlframework", "path": "pnmlFw-SNNet/src/fr/lip6/move/pnml/symmetricnet/booleans/hlapi/BooleanConstantHLAPI.java", "license": "epl-1.0", "size": 91863 }
[ "fr.lip6.move.pnml.symmetricnet.terms.Term", "java.util.ArrayList", "java.util.List" ]
import fr.lip6.move.pnml.symmetricnet.terms.Term; import java.util.ArrayList; import java.util.List;
import fr.lip6.move.pnml.symmetricnet.terms.*; import java.util.*;
[ "fr.lip6.move", "java.util" ]
fr.lip6.move; java.util;
1,844,122
public static GuardedInvocation lookupPrimitive(final LinkRequest request, final Class<?> receiverClass, final ScriptObject wrappedReceiver, final MethodHandle wrapFilter, final MethodHandle protoFilter) { ...
static GuardedInvocation function(final LinkRequest request, final Class<?> receiverClass, final ScriptObject wrappedReceiver, final MethodHandle wrapFilter, final MethodHandle protoFilter) { return lookupPrimitive(request, Guards.getInstanceOfGuard(receiverClass), wrappedReceiver, wrapFilter, protoFilter); }
/** * Returns a guarded invocation representing the linkage for a dynamic operation on a primitive Java value. * @param request the link request for the dynamic call site. * @param receiverClass the class of the receiver value (e.g., {@link java.lang.Boolean}, {@link java.lang.String} etc.) * @param...
Returns a guarded invocation representing the linkage for a dynamic operation on a primitive Java value
lookupPrimitive
{ "repo_name": "bloodstars/OpenJDK", "path": "nashorn/src/jdk/nashorn/internal/runtime/linker/PrimitiveLookup.java", "license": "gpl-2.0", "size": 8386 }
[ "java.lang.invoke.MethodHandle" ]
import java.lang.invoke.MethodHandle;
import java.lang.invoke.*;
[ "java.lang" ]
java.lang;
1,637,170
@SimpleFunction(description = "Set the current tacho count to zero.") public void ResetTachoCount() { String functionName = "ResetTachoCount"; try { clearOutputCount(functionName, 0, motorPortBitField); // assume layer = 0 } catch (IllegalArgumentException e) { form.dispatchErrorOccurredEven...
@SimpleFunction(description = STR) void function() { String functionName = STR; try { clearOutputCount(functionName, 0, motorPortBitField); } catch (IllegalArgumentException e) { form.dispatchErrorOccurredEvent(this, functionName, ErrorMessages.ERROR_EV3_ILLEGAL_ARGUMENT, functionName); } }
/** * Set the current tacho count to zero. */
Set the current tacho count to zero
ResetTachoCount
{ "repo_name": "farxinu/appinventor-sources", "path": "appinventor/components/src/com/google/appinventor/components/runtime/Ev3Motors.java", "license": "apache-2.0", "size": 31159 }
[ "com.google.appinventor.components.annotations.SimpleFunction", "com.google.appinventor.components.runtime.util.ErrorMessages" ]
import com.google.appinventor.components.annotations.SimpleFunction; import com.google.appinventor.components.runtime.util.ErrorMessages;
import com.google.appinventor.components.annotations.*; import com.google.appinventor.components.runtime.util.*;
[ "com.google.appinventor" ]
com.google.appinventor;
2,138,073
public static Boolean isAuthentication() { UserBase user = threadLocal.get(); if (user == null) { return false; } return user.isAuthentication(); }
static Boolean function() { UserBase user = threadLocal.get(); if (user == null) { return false; } return user.isAuthentication(); }
/** * Checks if is authentication. * * @return the boolean */
Checks if is authentication
isAuthentication
{ "repo_name": "clstoulouse/motu", "path": "motu-library-cas/src/main/java/fr/cls/atoll/motu/library/cas/util/MotuUserHolder.java", "license": "lgpl-3.0", "size": 4022 }
[ "fr.cls.atoll.motu.library.cas.UserBase" ]
import fr.cls.atoll.motu.library.cas.UserBase;
import fr.cls.atoll.motu.library.cas.*;
[ "fr.cls.atoll" ]
fr.cls.atoll;
1,853,470
public static ABStory createAchillesHector(String sceneLabel, boolean variant, boolean hasContext, String contextRelation) { ABStory story = new ABStory(); story.add("$CreateScene " + sceneLabel + " CloseOthers With Instances w_c_bai20 'Hector', w_c_bai20 'Achilles'")...
static ABStory function(String sceneLabel, boolean variant, boolean hasContext, String contextRelation) { ABStory story = new ABStory(); story.add(STR + sceneLabel + STR); if (hasContext) { story.add(STR + contextRelation + STR); } story.add(STR); story.add(STR); story.add(STR); if (!variant) { story.add(STR); } else {...
/** * Creates a story of achilles and hector in several variations * @param sceneLabel * @param variant * @param hasContext * @param contextRelation TODO * @return */
Creates a story of achilles and hector in several variations
createAchillesHector
{ "repo_name": "Xapagy/Xapagy", "path": "src/test/java/org/xapagy/recall/testRecall.java", "license": "agpl-3.0", "size": 7481 }
[ "org.xapagy.autobiography.ABStory" ]
import org.xapagy.autobiography.ABStory;
import org.xapagy.autobiography.*;
[ "org.xapagy.autobiography" ]
org.xapagy.autobiography;
2,032,920
@Override public void setPrice (java.math.BigDecimal Price) { set_Value (COLUMNNAME_Price, Price); }
void function (java.math.BigDecimal Price) { set_Value (COLUMNNAME_Price, Price); }
/** Set Preis. @param Price Price */
Set Preis
setPrice
{ "repo_name": "klst-com/metasfresh", "path": "de.metas.rfq/src/main/java-gen/de/metas/rfq/model/X_C_RfQResponse.java", "license": "gpl-2.0", "size": 15418 }
[ "java.math.BigDecimal" ]
import java.math.BigDecimal;
import java.math.*;
[ "java.math" ]
java.math;
2,795,137
protected boolean isPersisted(Resource resource) { boolean result = false; try { InputStream stream = editingDomain.getResourceSet().getURIConverter().createInputStream(resource.getURI()); if (stream != null) { result = true; stream.close(); } } catch (IOException e) { // Ignore } ret...
boolean function(Resource resource) { boolean result = false; try { InputStream stream = editingDomain.getResourceSet().getURIConverter().createInputStream(resource.getURI()); if (stream != null) { result = true; stream.close(); } } catch (IOException e) { } return result; }
/** * This returns whether something has been persisted to the URI of the specified resource. * The implementation uses the URI converter from the editor's resource set to try to open an input stream. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */
This returns whether something has been persisted to the URI of the specified resource. The implementation uses the URI converter from the editor's resource set to try to open an input stream.
isPersisted
{ "repo_name": "mbats/mindstorms", "path": "plugins/fr.obeo.dsl.mindstorms.editor/src-gen/fr/obeo/dsl/mindstorms/presentation/MindstormsEditor.java", "license": "epl-1.0", "size": 54945 }
[ "java.io.IOException", "java.io.InputStream", "org.eclipse.emf.ecore.resource.Resource" ]
import java.io.IOException; import java.io.InputStream; import org.eclipse.emf.ecore.resource.Resource;
import java.io.*; import org.eclipse.emf.ecore.resource.*;
[ "java.io", "org.eclipse.emf" ]
java.io; org.eclipse.emf;
2,339,886
private Object readResolve() throws ObjectStreamException{ log.info("Using DataStrippingSampleSender for this run"); return this; }
Object function() throws ObjectStreamException{ log.info(STR); return this; }
/** * Processed by the RMI server code; acts as testStarted(). * * @return this * @throws ObjectStreamException * never */
Processed by the RMI server code; acts as testStarted()
readResolve
{ "repo_name": "ubikfsabbe/jmeter", "path": "src/core/org/apache/jmeter/samplers/DataStrippingSampleSender.java", "license": "apache-2.0", "size": 3895 }
[ "java.io.ObjectStreamException" ]
import java.io.ObjectStreamException;
import java.io.*;
[ "java.io" ]
java.io;
2,853,066
protected final boolean exists(Attribute attr) { return exists(attr.getID()); }
final boolean function(Attribute attr) { return exists(attr.getID()); }
/** * Checks if an entry has a specific attribute. * * This method simply calls exists(String) with the attribute name. * * @param attr the attribute to check. * @return true if attribute exists in entry. */
Checks if an entry has a specific attribute. This method simply calls exists(String) with the attribute name
exists
{ "repo_name": "n8rogers/spring-ldap", "path": "core/src/main/java/org/springframework/ldap/core/DirContextAdapter.java", "license": "apache-2.0", "size": 39263 }
[ "javax.naming.directory.Attribute" ]
import javax.naming.directory.Attribute;
import javax.naming.directory.*;
[ "javax.naming" ]
javax.naming;
1,246,661
@Query(value = "segID = g.v(segment).segmentID;" + "double baseLoad = g.v(market).out('SEGMENT_LOAD').as('x').out('SEGMENTLOAD_SEGMENT').filter{it.segmentID==segID}.back('x').baseLoad.next();" + "return baseLoad", type = QueryType.Gremlin) public double returnSegmentBaseLoadBySegmentAndM...
@Query(value = STR + STR + STR, type = QueryType.Gremlin) double function(@Param(STR) Segment segment, @Param(STR) ElectricitySpotMarket market);
/** * Finds the segment load for a certain segment and market * * @param segment * the segment to find the load for * @param market * the market to find the load for * @return */
Finds the segment load for a certain segment and market
returnSegmentBaseLoadBySegmentAndMarket
{ "repo_name": "asmkhan/emlab-generation", "path": "emlab-generation/src/main/java/emlab/gen/repository/SegmentLoadRepository.java", "license": "apache-2.0", "size": 2859 }
[ "org.springframework.data.neo4j.annotation.Query", "org.springframework.data.neo4j.annotation.QueryType", "org.springframework.data.repository.query.Param" ]
import org.springframework.data.neo4j.annotation.Query; import org.springframework.data.neo4j.annotation.QueryType; import org.springframework.data.repository.query.Param;
import org.springframework.data.neo4j.annotation.*; import org.springframework.data.repository.query.*;
[ "org.springframework.data" ]
org.springframework.data;
1,158,961
@Test void login_nullPassword() throws LoginException { this.callbackHandler = new UsernamePasswordCallbackHandler("Guest", null); this.options.put("debug", "true"); this.loginModule.initialize(this.subject, this.callbackHandler, null, this.options); Assertions.assertTrue(this.lo...
void login_nullPassword() throws LoginException { this.callbackHandler = new UsernamePasswordCallbackHandler("Guest", null); this.options.put("debug", "true"); this.loginModule.initialize(this.subject, this.callbackHandler, null, this.options); Assertions.assertTrue(this.loginModule.isAllowGuestLogin()); Assertions.ass...
/** * Login_null password. * * @throws LoginException * the login exception */
Login_null password
login_nullPassword
{ "repo_name": "hazendaz/waffle", "path": "Source/JNA/waffle-jna-jakarta/src/test/java/waffle/jaas/WindowsLoginModuleTest.java", "license": "mit", "size": 11427 }
[ "javax.security.auth.login.LoginException", "org.junit.jupiter.api.Assertions" ]
import javax.security.auth.login.LoginException; import org.junit.jupiter.api.Assertions;
import javax.security.auth.login.*; import org.junit.jupiter.api.*;
[ "javax.security", "org.junit.jupiter" ]
javax.security; org.junit.jupiter;
2,346,188