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
@Test public void checksLogLevel() { LogManager.getRootLogger().setLevel(org.apache.log4j.Level.INFO); MatcherAssert.assertThat( Logger.isEnabled(Level.INFO, LogManager.getRootLogger()), Matchers.is(true) ); MatcherAssert.assertThat( Logger.isE...
void function() { LogManager.getRootLogger().setLevel(org.apache.log4j.Level.INFO); MatcherAssert.assertThat( Logger.isEnabled(Level.INFO, LogManager.getRootLogger()), Matchers.is(true) ); MatcherAssert.assertThat( Logger.isEnabled(Level.FINEST, LogManager.getRootLogger()), Matchers.is(false) ); }
/** * Logger can correctly check the current logging level. */
Logger can correctly check the current logging level
checksLogLevel
{ "repo_name": "prondzyn/jcabi-log", "path": "src/test/java/com/jcabi/log/LoggerTest.java", "license": "bsd-3-clause", "size": 5181 }
[ "java.util.logging.Level", "org.apache.log4j.LogManager", "org.hamcrest.MatcherAssert", "org.hamcrest.Matchers" ]
import java.util.logging.Level; import org.apache.log4j.LogManager; import org.hamcrest.MatcherAssert; import org.hamcrest.Matchers;
import java.util.logging.*; import org.apache.log4j.*; import org.hamcrest.*;
[ "java.util", "org.apache.log4j", "org.hamcrest" ]
java.util; org.apache.log4j; org.hamcrest;
438,075
TextInput textInput = (TextInput) event.getTargetComponent(); if (textInput.isFocused() && textInput.isEditable() && !MOUSE_BUTTON_LEFT.isPressed()) { String str = cpToStr(event.getCodepoint()); TextState textState = textInput.getTextState(); String oldText = textState.getTex...
TextInput textInput = (TextInput) event.getTargetComponent(); if (textInput.isFocused() && textInput.isEditable() && !MOUSE_BUTTON_LEFT.isPressed()) { String str = cpToStr(event.getCodepoint()); TextState textState = textInput.getTextState(); String oldText = textState.getText(); int start = textInput.getStartSelection...
/** * Used to handle {@link CharEvent}. * * @param event event to handle. */
Used to handle <code>CharEvent</code>
process
{ "repo_name": "LiquidEngine/legui", "path": "src/main/java/org/liquidengine/legui/component/misc/listener/textinput/TextInputCharEventListener.java", "license": "bsd-3-clause", "size": 2594 }
[ "org.liquidengine.legui.component.TextInput", "org.liquidengine.legui.component.event.textinput.TextInputContentChangeEvent", "org.liquidengine.legui.component.optional.TextState", "org.liquidengine.legui.listener.processor.EventProcessorProvider", "org.liquidengine.legui.util.TextUtil" ]
import org.liquidengine.legui.component.TextInput; import org.liquidengine.legui.component.event.textinput.TextInputContentChangeEvent; import org.liquidengine.legui.component.optional.TextState; import org.liquidengine.legui.listener.processor.EventProcessorProvider; import org.liquidengine.legui.util.TextUtil;
import org.liquidengine.legui.component.*; import org.liquidengine.legui.component.event.textinput.*; import org.liquidengine.legui.component.optional.*; import org.liquidengine.legui.listener.processor.*; import org.liquidengine.legui.util.*;
[ "org.liquidengine.legui" ]
org.liquidengine.legui;
1,954,845
protected ActionForward dispatchMethod(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response, String name) throws Exception { // Make sure we have a valid method name to call. // This may be null if the user hacks the query string. if (name == null) { return thi...
ActionForward function(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response, String name) throws Exception { if (name == null) { return this.unspecified(mapping, form, request, response); } Method method = null; try { method = getMethod(name); } catch (NoSuchMethodException e...
/** * Dispatch to the specified method. * * @param mapping * The ActionMapping used to select this instance * @param form * The optional ActionForm bean for this request (if any) * @param request * The non-HTTP request we are processing * @param response * ...
Dispatch to the specified method
dispatchMethod
{ "repo_name": "jreadstone/zsyproject", "path": "src/org/g4studio/core/mvc/xstruts/actions/DispatchAction.java", "license": "gpl-2.0", "size": 10477 }
[ "java.lang.reflect.InvocationTargetException", "java.lang.reflect.Method", "javax.servlet.ServletException", "javax.servlet.http.HttpServletRequest", "javax.servlet.http.HttpServletResponse", "org.g4studio.core.mvc.xstruts.action.ActionForm", "org.g4studio.core.mvc.xstruts.action.ActionForward", "org....
import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.g4studio.core.mvc.xstruts.action.ActionForm; import org.g4studio.core.mvc.xstruts.action.Act...
import java.lang.reflect.*; import javax.servlet.*; import javax.servlet.http.*; import org.g4studio.core.mvc.xstruts.action.*;
[ "java.lang", "javax.servlet", "org.g4studio.core" ]
java.lang; javax.servlet; org.g4studio.core;
1,735,169
public void testGetCompanionStudySite() { simpleStudy.setCompanionIndicator(false); CompanionStudyAssociation association = registerMockFor(CompanionStudyAssociation.class); association.setParentStudyVersion(simpleStudy.getStudyVersion()); List<StudySite> listStudySite = new ArrayList<StudySite>(); ...
void function() { simpleStudy.setCompanionIndicator(false); CompanionStudyAssociation association = registerMockFor(CompanionStudyAssociation.class); association.setParentStudyVersion(simpleStudy.getStudyVersion()); List<StudySite> listStudySite = new ArrayList<StudySite>(); StudySite studySite = registerMockFor(StudyS...
/** * Test get companion study site by nci identifier * */
Test get companion study site by nci identifier
testGetCompanionStudySite
{ "repo_name": "NCIP/c3pr", "path": "codebase/projects/core/test/src/java/edu/duke/cabig/c3pr/domain/StudyTestCase.java", "license": "bsd-3-clause", "size": 75546 }
[ "java.util.ArrayList", "java.util.List", "org.easymock.classextension.EasyMock" ]
import java.util.ArrayList; import java.util.List; import org.easymock.classextension.EasyMock;
import java.util.*; import org.easymock.classextension.*;
[ "java.util", "org.easymock.classextension" ]
java.util; org.easymock.classextension;
36,037
public void addResidentIdP(IdentityProvider identityProvider, String tenantDomain) throws IdentityApplicationManagementException { if (StringUtils.isEmpty(identityProvider.getHomeRealmId())) { String msg = "Invalid argument: Resident Identity Provider Home Realm Identifier value is ...
void function(IdentityProvider identityProvider, String tenantDomain) throws IdentityApplicationManagementException { if (StringUtils.isEmpty(identityProvider.getHomeRealmId())) { String msg = STR; log.error(msg); throw new IdentityApplicationManagementException(msg); } if (identityProvider.getFederatedAuthenticatorCon...
/** * Add Resident Identity provider for a given tenant * * @param identityProvider <code>IdentityProvider</code> * @param tenantDomain Tenant domain whose resident IdP is requested * @throws IdentityApplicationManagementException Error when adding Resident Identity Provider */
Add Resident Identity provider for a given tenant
addResidentIdP
{ "repo_name": "omindu/carbon-identity", "path": "components/idp-mgt/org.wso2.carbon.idp.mgt/src/main/java/org/wso2/carbon/idp/mgt/IdentityProviderManager.java", "license": "apache-2.0", "size": 60124 }
[ "java.util.Arrays", "java.util.List", "org.apache.commons.lang.StringUtils", "org.wso2.carbon.identity.application.common.IdentityApplicationManagementException", "org.wso2.carbon.identity.application.common.model.FederatedAuthenticatorConfig", "org.wso2.carbon.identity.application.common.model.IdentityPr...
import java.util.Arrays; import java.util.List; import org.apache.commons.lang.StringUtils; import org.wso2.carbon.identity.application.common.IdentityApplicationManagementException; import org.wso2.carbon.identity.application.common.model.FederatedAuthenticatorConfig; import org.wso2.carbon.identity.application.common...
import java.util.*; import org.apache.commons.lang.*; import org.wso2.carbon.identity.application.common.*; import org.wso2.carbon.identity.application.common.model.*; import org.wso2.carbon.identity.application.common.util.*; import org.wso2.carbon.idp.mgt.util.*;
[ "java.util", "org.apache.commons", "org.wso2.carbon" ]
java.util; org.apache.commons; org.wso2.carbon;
1,602,902
@WebMethod(operationName = "YellowAndRedCardsTotal") @WebResult(name = "YellowAndRedCardsTotalResult", targetNamespace = "http://footballpool.dataaccess.eu") @RequestWrapper(localName = "YellowAndRedCardsTotal", targetNamespace = "http://footballpool.dataaccess.eu", className = "support.YellowAndRedCardsTot...
@WebMethod(operationName = STR) @WebResult(name = STR, targetNamespace = "http: @RequestWrapper(localName = STR, targetNamespace = "http: @ResponseWrapper(localName = "YellowAndRedCardsTotalResponseSTRhttp: TCards function();
/** * Returns a combination of the total number of yellow and red cards given during this tournament (so far) * * @return * returns support.TCards */
Returns a combination of the total number of yellow and red cards given during this tournament (so far)
yellowAndRedCardsTotal
{ "repo_name": "pietrodn/middleware-exe", "path": "webservices/TestFootballService/src/support/InfoSoapType.java", "license": "gpl-3.0", "size": 32295 }
[ "javax.jws.WebMethod", "javax.jws.WebResult", "javax.xml.ws.RequestWrapper", "javax.xml.ws.ResponseWrapper" ]
import javax.jws.WebMethod; import javax.jws.WebResult; import javax.xml.ws.RequestWrapper; import javax.xml.ws.ResponseWrapper;
import javax.jws.*; import javax.xml.ws.*;
[ "javax.jws", "javax.xml" ]
javax.jws; javax.xml;
843,106
public void notify(RunNotifier notifier);
void function(RunNotifier notifier);
/** * Notify a run notifier of this notification. * @param notifier */
Notify a run notifier of this notification
notify
{ "repo_name": "RallySoftware/eclipselink.runtime", "path": "jpa/eclipselink.jpa.wdf.test/src/org/eclipse/persistence/testing/framework/wdf/server/Notification.java", "license": "epl-1.0", "size": 1052 }
[ "org.junit.runner.notification.RunNotifier" ]
import org.junit.runner.notification.RunNotifier;
import org.junit.runner.notification.*;
[ "org.junit.runner" ]
org.junit.runner;
1,185,902
public static void logException(final Throwable exception) { NaviLogger.severe("Reason" + ": " + exception.getLocalizedMessage()); NaviLogger.severe(StackTrace.toString(exception.getStackTrace())); }
static void function(final Throwable exception) { NaviLogger.severe(STR + STR + exception.getLocalizedMessage()); NaviLogger.severe(StackTrace.toString(exception.getStackTrace())); }
/** * Logs an exception to the default log file. * * @param exception The exception to log. */
Logs an exception to the default log file
logException
{ "repo_name": "dgrif/binnavi", "path": "src/main/java/com/google/security/zynamics/binnavi/CUtilityFunctions.java", "license": "apache-2.0", "size": 2556 }
[ "com.google.security.zynamics.binnavi.Log", "com.google.security.zynamics.zylib.general.StackTrace" ]
import com.google.security.zynamics.binnavi.Log; import com.google.security.zynamics.zylib.general.StackTrace;
import com.google.security.zynamics.binnavi.*; import com.google.security.zynamics.zylib.general.*;
[ "com.google.security" ]
com.google.security;
285,636
public BigInteger nextBigInteger() { return nextBigInteger(integerRadix); } /** * Returns the next token as a {@code BigInteger} with the specified radix. * This method will block if input is being read. If the next token can be * translated into a {@code BigInteger} the following is done: All * {@code ...
BigInteger function() { return nextBigInteger(integerRadix); } /** * Returns the next token as a {@code BigInteger} with the specified radix. * This method will block if input is being read. If the next token can be * translated into a {@code BigInteger} the following is done: All * {@code Locale}-specific prefixes, gr...
/** * Returns the next token as a {@code BigInteger}. This method will block if * input is being read. Equivalent to {@code nextBigInteger(DEFAULT_RADIX)}. * * @return the next token as {@code BigInteger}. * @throws IllegalStateException * if this {@code Scanner} has been closed. * @throws No...
Returns the next token as a BigInteger. This method will block if input is being read. Equivalent to nextBigInteger(DEFAULT_RADIX)
nextBigInteger
{ "repo_name": "webos21/xi", "path": "java/jcl/src/java/java/util/Scanner.java", "license": "apache-2.0", "size": 71379 }
[ "java.math.BigInteger" ]
import java.math.BigInteger;
import java.math.*;
[ "java.math" ]
java.math;
1,417,843
private static String getLogManagerLoggerName(final String name) { return (name.equals(RESOURCE_NAME) ? CommonAttributes.ROOT_LOGGER_NAME : name); }
static String function(final String name) { return (name.equals(RESOURCE_NAME) ? CommonAttributes.ROOT_LOGGER_NAME : name); }
/** * Returns the logger name that should be used in the log manager. * * @param name the name of the logger from the resource * * @return the name of the logger */
Returns the logger name that should be used in the log manager
getLogManagerLoggerName
{ "repo_name": "aloubyansky/wildfly-core", "path": "logging/src/main/java/org/jboss/as/logging/loggers/LoggerOperations.java", "license": "lgpl-2.1", "size": 19282 }
[ "org.jboss.as.logging.CommonAttributes" ]
import org.jboss.as.logging.CommonAttributes;
import org.jboss.as.logging.*;
[ "org.jboss.as" ]
org.jboss.as;
729,425
private void checkColumn(int column) throws SQLException { if (column < 1 || column > columnCount) { throw Util.sqlException(Trace.COLUMN_NOT_FOUND, String.valueOf(column)); } } //#ifdef JAVA6 //#endif JAVA6
void function(int column) throws SQLException { if (column < 1 column > columnCount) { throw Util.sqlException(Trace.COLUMN_NOT_FOUND, String.valueOf(column)); } }
/** * Performs an internal check for column index validity. <p> * * @param column index of column to check * @throws SQLException when this object's parent ResultSet has * no such column */
Performs an internal check for column index validity.
checkColumn
{ "repo_name": "ckaestne/LEADT", "path": "workspace/hsqldb/src/org/hsqldb/jdbc/jdbcResultSetMetaData.java", "license": "gpl-3.0", "size": 46948 }
[ "java.sql.SQLException", "org.hsqldb.Trace" ]
import java.sql.SQLException; import org.hsqldb.Trace;
import java.sql.*; import org.hsqldb.*;
[ "java.sql", "org.hsqldb" ]
java.sql; org.hsqldb;
1,162,543
public static void saveAndConnect() { String alias = ((JTextField) inputFields[Inputs.alias.getId()]).getText(); String dbName = ((JTextField) inputFields[Inputs.dbName.getId()]).getText(); String dbAddress = ((JTextField) inputFields[Inputs.dbUrl.getId()]).getText(); String dbUsername = ((JTextField) inputF...
static void function() { String alias = ((JTextField) inputFields[Inputs.alias.getId()]).getText(); String dbName = ((JTextField) inputFields[Inputs.dbName.getId()]).getText(); String dbAddress = ((JTextField) inputFields[Inputs.dbUrl.getId()]).getText(); String dbUsername = ((JTextField) inputFields[Inputs.username.ge...
/** * Save alias to file. * * @author Nick Madden */
Save alias to file
saveAndConnect
{ "repo_name": "rsanchez-wsu/sp16-ceg3120", "path": "src/edu/wright/cs/sp16/ceg3120/gui/tabs/components/NewConnectionDetailsPane.java", "license": "gpl-3.0", "size": 11085 }
[ "edu.wright.cs.sp16.ceg3120.gui.other.Inputs", "javax.swing.JCheckBox", "javax.swing.JComboBox", "javax.swing.JOptionPane", "javax.swing.JTextField", "javax.swing.UIManager" ]
import edu.wright.cs.sp16.ceg3120.gui.other.Inputs; import javax.swing.JCheckBox; import javax.swing.JComboBox; import javax.swing.JOptionPane; import javax.swing.JTextField; import javax.swing.UIManager;
import edu.wright.cs.sp16.ceg3120.gui.other.*; import javax.swing.*;
[ "edu.wright.cs", "javax.swing" ]
edu.wright.cs; javax.swing;
183,797
public void addApp(AstObj astObj) throws AstiveException;
void function(AstObj astObj) throws AstiveException;
/** * Use to add apps to the database index. The final implementation must * ensure that a new app don't override old app URL's. * * @param astObj object to add. */
Use to add apps to the database index. The final implementation must ensure that a new app don't override old app URL's
addApp
{ "repo_name": "fonoster/astivetoolkit", "path": "astive-server/src/main/java/com/fonoster/astive/server/AstDB.java", "license": "apache-2.0", "size": 2219 }
[ "com.fonoster.astive.AstiveException" ]
import com.fonoster.astive.AstiveException;
import com.fonoster.astive.*;
[ "com.fonoster.astive" ]
com.fonoster.astive;
453,106
EClass getResourceBid();
EClass getResourceBid();
/** * Returns the meta object for class '{@link CIM.IEC61970.Informative.MarketOperations.ResourceBid <em>Resource Bid</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for class '<em>Resource Bid</em>'. * @see CIM.IEC61970.Informative.MarketOperations.ResourceBid * @genera...
Returns the meta object for class '<code>CIM.IEC61970.Informative.MarketOperations.ResourceBid Resource Bid</code>'.
getResourceBid
{ "repo_name": "georghinkel/ttc2017smartGrids", "path": "solutions/ModelJoin/src/main/java/CIM/IEC61970/Informative/MarketOperations/MarketOperationsPackage.java", "license": "mit", "size": 688294 }
[ "org.eclipse.emf.ecore.EClass" ]
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
2,431,907
public Header getResponseHeader(final String headerName) { if (headerName == null) { return null; } return getResponseHeaderGroup().getCondensedHeader(headerName); }
Header function(final String headerName) { if (headerName == null) { return null; } return getResponseHeaderGroup().getCondensedHeader(headerName); }
/** * Gets the response header associated with the given name. Header name matching is * case insensitive. <tt>null</tt> will be returned if either <i>headerName</i> is * <tt>null</tt> or there is no matching header for <i>headerName</i>. * * @param headerName * the header name to match * *...
Gets the response header associated with the given name. Header name matching is case insensitive. null will be returned if either headerName is null or there is no matching header for headerName
getResponseHeader
{ "repo_name": "openfurther/further-open-core", "path": "core/core-ws/src/main/java/edu/utah/further/core/ws/HttpResponseTo.java", "license": "apache-2.0", "size": 14314 }
[ "org.apache.commons.httpclient.Header" ]
import org.apache.commons.httpclient.Header;
import org.apache.commons.httpclient.*;
[ "org.apache.commons" ]
org.apache.commons;
197,967
// <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 { Filial filial = new Filial(); ...
void function(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { Filial filial = new Filial(); Integer id = identificarEdicao(request); boolean edicao = false; try { if (id != null) { filial = FilialDAO.consultarPorId(id); edicao = true; } else { id = FilialDAO.maxId(); fil...
/** * 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": "nickFelix/Projeto-Alan", "path": "Alan/src/main/java/servlets/CadastroFilial.java", "license": "apache-2.0", "size": 4723 }
[ "java.io.IOException", "java.sql.SQLException", "javax.servlet.ServletException", "javax.servlet.http.HttpServletRequest", "javax.servlet.http.HttpServletResponse" ]
import java.io.IOException; import java.sql.SQLException; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse;
import java.io.*; import java.sql.*; import javax.servlet.*; import javax.servlet.http.*;
[ "java.io", "java.sql", "javax.servlet" ]
java.io; java.sql; javax.servlet;
2,088,926
List<String> getStrongDependencies();
List<String> getStrongDependencies();
/** * Return all modules which are needed to correct check (for strong dependencies do another step at initializing) * * @return list of modules we need to correct check */
Return all modules which are needed to correct check (for strong dependencies do another step at initializing)
getStrongDependencies
{ "repo_name": "Natrezim/perun", "path": "perun-core/src/main/java/cz/metacentrum/perun/core/implApi/modules/attributes/AttributesModuleImplApi.java", "license": "bsd-2-clause", "size": 1057 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,022,441
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jScrollPane1 = new javax.swing.JScrollPane(); m_tableinventory = new javax.swing.JTable(); jPanel1 = new javax.swing.JPanel(); m_jTotal = new javax.swing.JLa...
void function() { jScrollPane1 = new javax.swing.JScrollPane(); m_tableinventory = new javax.swing.JTable(); jPanel1 = new javax.swing.JPanel(); m_jTotal = new javax.swing.JLabel(); m_jLblTotal = new javax.swing.JLabel(); setLayout(new java.awt.BorderLayout()); m_tableinventory.setAutoCreateColumnsFromModel(false); m_t...
/** * This method is called from within the constructor to initialize the form. * WARNING: Do NOT modify this code. The content of this method is always * regenerated by the Form Editor. */
This method is called from within the constructor to initialize the form. regenerated by the Form Editor
initComponents
{ "repo_name": "nordpos/nordpos", "path": "src-pos/com/openbravo/pos/inventory/JInventoryLines.java", "license": "gpl-3.0", "size": 13151 }
[ "com.openbravo.pos.forms.AppLocal", "javax.swing.JLabel", "javax.swing.JTable" ]
import com.openbravo.pos.forms.AppLocal; import javax.swing.JLabel; import javax.swing.JTable;
import com.openbravo.pos.forms.*; import javax.swing.*;
[ "com.openbravo.pos", "javax.swing" ]
com.openbravo.pos; javax.swing;
361,291
public boolean equals(Object obj) { if (obj == this) return true; if (obj == null || !(obj.getClass().equals(GroupValue.class))) return false; GroupValue gv = (GroupValue) obj; for (String fldname : vals.keySet()) { Constant v1 = vals.get(fldname); Constant v2 = gv.getVal(fldname); if...
boolean function(Object obj) { if (obj == this) return true; if (obj == null !(obj.getClass().equals(GroupValue.class))) return false; GroupValue gv = (GroupValue) obj; for (String fldname : vals.keySet()) { Constant v1 = vals.get(fldname); Constant v2 = gv.getVal(fldname); if (!v1.equals(v2)) return false; } return tr...
/** * Two GroupValue objects are equal if they have the same values for their * grouping fields. * * @see java.lang.Object#equals(java.lang.Object) */
Two GroupValue objects are equal if they have the same values for their grouping fields
equals
{ "repo_name": "vanilladb/vanillacore", "path": "src/main/java/org/vanilladb/core/query/algebra/materialize/GroupValue.java", "license": "apache-2.0", "size": 2870 }
[ "org.vanilladb.core.sql.Constant" ]
import org.vanilladb.core.sql.Constant;
import org.vanilladb.core.sql.*;
[ "org.vanilladb.core" ]
org.vanilladb.core;
1,126,852
public static void ensureIndexCompatibility(final Version nodeVersion, Metadata metadata) { Version supportedIndexVersion = nodeVersion.minimumIndexCompatibilityVersion(); // we ensure that all indices in the cluster we join are compatible with us no matter if they are // closed or not we ca...
static void function(final Version nodeVersion, Metadata metadata) { Version supportedIndexVersion = nodeVersion.minimumIndexCompatibilityVersion(); for (IndexMetadata idxMetadata : metadata) { if (idxMetadata.getCreationVersion().after(nodeVersion)) { throw new IllegalStateException( STR + idxMetadata.getIndex() + STR...
/** * Ensures that all indices are compatible with the given node version. This will ensure that all indices in the given metadata * will not be created with a newer version of elasticsearch as well as that all indices are newer or equal to the minimum index * compatibility version. * @see Version#m...
Ensures that all indices are compatible with the given node version. This will ensure that all indices in the given metadata will not be created with a newer version of elasticsearch as well as that all indices are newer or equal to the minimum index compatibility version
ensureIndexCompatibility
{ "repo_name": "GlenRSmith/elasticsearch", "path": "server/src/main/java/org/elasticsearch/cluster/coordination/JoinTaskExecutor.java", "license": "apache-2.0", "size": 17909 }
[ "org.elasticsearch.Version", "org.elasticsearch.cluster.metadata.IndexMetadata", "org.elasticsearch.cluster.metadata.Metadata" ]
import org.elasticsearch.Version; import org.elasticsearch.cluster.metadata.IndexMetadata; import org.elasticsearch.cluster.metadata.Metadata;
import org.elasticsearch.*; import org.elasticsearch.cluster.metadata.*;
[ "org.elasticsearch", "org.elasticsearch.cluster" ]
org.elasticsearch; org.elasticsearch.cluster;
1,834,016
private void updateProfil(final String username, final String email, final String password, View view) {
void function(final String username, final String email, final String password, View view) {
/** * Fonction qui modifie les informations du profil * */
Fonction qui modifie les informations du profil
updateProfil
{ "repo_name": "Mushu2a/smartbus", "path": "app/src/main/java/com/m1/lesbuteurs/smartbus/fragment/ProfilFragment.java", "license": "gpl-3.0", "size": 7174 }
[ "android.view.View" ]
import android.view.View;
import android.view.*;
[ "android.view" ]
android.view;
2,455,032
@Test public void testGetDbDriverClass() { assertTrue(Configuration.getDbDriverClass()==testDbDriver); }
void function() { assertTrue(Configuration.getDbDriverClass()==testDbDriver); }
/** * Test db driver class string correctly provided */
Test db driver class string correctly provided
testGetDbDriverClass
{ "repo_name": "Aula13/A-WMS", "path": "test/org/wms/config/ConfigurationUnitTest.java", "license": "cc0-1.0", "size": 3443 }
[ "org.junit.Assert" ]
import org.junit.Assert;
import org.junit.*;
[ "org.junit" ]
org.junit;
355,294
public static <T extends Annotation> boolean hasAnnotation(Object o, Class<T> annCls) { return o != null && hasAnnotation(o.getClass(), annCls); }
static <T extends Annotation> boolean function(Object o, Class<T> annCls) { return o != null && hasAnnotation(o.getClass(), annCls); }
/** * Indicates if class has given annotation. * * @param o Object to get annotation from. * @param annCls Annotation to get. * @return {@code true} if class has annotation or {@code false} otherwise. */
Indicates if class has given annotation
hasAnnotation
{ "repo_name": "shurun19851206/ignite", "path": "modules/core/src/main/java/org/apache/ignite/internal/util/IgniteUtils.java", "license": "apache-2.0", "size": 289056 }
[ "java.lang.annotation.Annotation" ]
import java.lang.annotation.Annotation;
import java.lang.annotation.*;
[ "java.lang" ]
java.lang;
1,743,031
public void calibrate(InputUI ui) { final int training_size = TRAINING_WINDOWS_PER_STATE * TRAINING_OFFSET + (TRAINING_WINDOW - TRAINING_OFFSET); ui.showMessage("<html><center>Calibrating.<br>Think a neutral thought.</center></html>"); //flush(); List<dou...
void function(InputUI ui) { final int training_size = TRAINING_WINDOWS_PER_STATE * TRAINING_OFFSET + (TRAINING_WINDOW - TRAINING_OFFSET); ui.showMessage(STR); List<double[]> neutral = new ArrayList<double[]>(training_size); awaitData(neutral, training_size); ui.showMessage(STR); List<double[]> active = new ArrayList<do...
/** * Guides the user through the calibration process. * * @param ui Graphical interface to user */
Guides the user through the calibration process
calibrate
{ "repo_name": "jgm55/FrigidWaters", "path": "src/edu/drexel/cci/hiyh/bci/SignalDetector.java", "license": "gpl-2.0", "size": 6873 }
[ "edu.drexel.cci.hiyh.ui.InputUI", "java.util.ArrayList", "java.util.List" ]
import edu.drexel.cci.hiyh.ui.InputUI; import java.util.ArrayList; import java.util.List;
import edu.drexel.cci.hiyh.ui.*; import java.util.*;
[ "edu.drexel.cci", "java.util" ]
edu.drexel.cci; java.util;
2,666,078
private static void addPoolableDataSource( LogChannelInterface log, DatabaseMeta databaseMeta, String partitionId, int initialSize, int maximumSize ) throws KettleDatabaseException { if ( log.isBasic() ) { log.logBasic( BaseMessages.getString( PKG, "Database.CreatingConnectionPool", databaseMeta.getNa...
static void function( LogChannelInterface log, DatabaseMeta databaseMeta, String partitionId, int initialSize, int maximumSize ) throws KettleDatabaseException { if ( log.isBasic() ) { log.logBasic( BaseMessages.getString( PKG, STR, databaseMeta.getName() ) ); } BasicDataSource ds = new BasicDataSource(); configureData...
/** * This methods adds a new data source to cache * * @param log * @param databaseMeta * @param partitionId * @param initialSize * @param maximumSize * @throws KettleDatabaseException */
This methods adds a new data source to cache
addPoolableDataSource
{ "repo_name": "ddiroma/pentaho-kettle", "path": "core/src/main/java/org/pentaho/di/core/database/ConnectionPoolUtil.java", "license": "apache-2.0", "size": 13283 }
[ "org.apache.commons.dbcp.BasicDataSource", "org.pentaho.di.core.exception.KettleDatabaseException", "org.pentaho.di.core.logging.LogChannelInterface", "org.pentaho.di.i18n.BaseMessages" ]
import org.apache.commons.dbcp.BasicDataSource; import org.pentaho.di.core.exception.KettleDatabaseException; import org.pentaho.di.core.logging.LogChannelInterface; import org.pentaho.di.i18n.BaseMessages;
import org.apache.commons.dbcp.*; import org.pentaho.di.core.exception.*; import org.pentaho.di.core.logging.*; import org.pentaho.di.i18n.*;
[ "org.apache.commons", "org.pentaho.di" ]
org.apache.commons; org.pentaho.di;
2,761,160
public MetaProperty<StubConvention> stubConvention() { return stubConvention; }
MetaProperty<StubConvention> function() { return stubConvention; }
/** * The meta-property for the {@code stubConvention} property. * @return the meta-property, not null */
The meta-property for the stubConvention property
stubConvention
{ "repo_name": "nssales/Strata", "path": "modules/finance/src/main/java/com/opengamma/strata/finance/rate/swap/type/IborRateSwapLegConvention.java", "license": "apache-2.0", "size": 58626 }
[ "com.opengamma.strata.basics.schedule.StubConvention", "org.joda.beans.MetaProperty" ]
import com.opengamma.strata.basics.schedule.StubConvention; import org.joda.beans.MetaProperty;
import com.opengamma.strata.basics.schedule.*; import org.joda.beans.*;
[ "com.opengamma.strata", "org.joda.beans" ]
com.opengamma.strata; org.joda.beans;
1,749,220
if (mapToSet != null && map != null && session != null) { for (Map.Entry<String, Object> entry : mapToSet.entrySet()) { if (entry.getKey() != null && entry.getValue() != null) map.put(entry.getKey(), entry.getValue()); } } }
if (mapToSet != null && map != null && session != null) { for (Map.Entry<String, Object> entry : mapToSet.entrySet()) { if (entry.getKey() != null && entry.getValue() != null) map.put(entry.getKey(), entry.getValue()); } } }
/** * Settea los valores al model map y este en la session * @param mapToSet * @param map * @param session */
Settea los valores al model map y este en la session
setValuesToModelMap
{ "repo_name": "Juanjors/LeagueOfSummoners", "path": "src/main/java/com/leagueofsummoners/model/utils/CacheUtils.java", "license": "gpl-2.0", "size": 1806 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
2,570,229
public static TypeAdapterFactory newTypeHierarchyFactory( Class<?> hierarchyType, Object typeAdapter) { return new SingleTypeFactory(typeAdapter, null, false, hierarchyType); } private static class SingleTypeFactory implements TypeAdapterFactory { private final TypeToken<?> exactType; private f...
static TypeAdapterFactory function( Class<?> hierarchyType, Object typeAdapter) { return new SingleTypeFactory(typeAdapter, null, false, hierarchyType); } private static class SingleTypeFactory implements TypeAdapterFactory { private final TypeToken<?> exactType; private final boolean matchRawType; private final Class<...
/** * Returns a new factory that will match each type's raw type for assignability * to {@code hierarchyType}. */
Returns a new factory that will match each type's raw type for assignability to hierarchyType
newTypeHierarchyFactory
{ "repo_name": "kunonx/DesignFramework", "path": "src/main/java/io/github/kunonx/DesignFramework/gson/TreeTypeAdapter.java", "license": "mit", "size": 5271 }
[ "io.github.kunonx.DesignFramework" ]
import io.github.kunonx.DesignFramework;
import io.github.kunonx.*;
[ "io.github.kunonx" ]
io.github.kunonx;
858,673
private boolean addInterfaceToProcessedList(VdsNetworkInterface iface) { if (ifaceByNames.containsKey(iface.getName())) { addViolation(EngineMessage.NETWORK_INTERFACES_ALREADY_SPECIFIED, iface.getName()); return false; } ifaceByNames.put(iface.getName(), iface); ...
boolean function(VdsNetworkInterface iface) { if (ifaceByNames.containsKey(iface.getName())) { addViolation(EngineMessage.NETWORK_INTERFACES_ALREADY_SPECIFIED, iface.getName()); return false; } ifaceByNames.put(iface.getName(), iface); return true; }
/** * Add the given interface to the list of processed interfaces, failing if it already existed. * * @param iface * The interface to add. * @return <code>true</code> if interface wasn't in the list and was added to it, otherwise <code>false</code>. */
Add the given interface to the list of processed interfaces, failing if it already existed
addInterfaceToProcessedList
{ "repo_name": "jtux270/translate", "path": "ovirt/3.6_source/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/network/host/SetupNetworksHelper.java", "license": "gpl-3.0", "size": 42072 }
[ "org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface", "org.ovirt.engine.core.common.errors.EngineMessage" ]
import org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface; import org.ovirt.engine.core.common.errors.EngineMessage;
import org.ovirt.engine.core.common.businessentities.network.*; import org.ovirt.engine.core.common.errors.*;
[ "org.ovirt.engine" ]
org.ovirt.engine;
1,148,025
protected void dispatchMouseEvent(String eventType, GraphicsNodeMouseEvent evt, boolean cancelable) { Point clientXY = evt.getClientPoint(); GraphicsNode node = evt.getGraphicsNode(); Element ...
void function(String eventType, GraphicsNodeMouseEvent evt, boolean cancelable) { Point clientXY = evt.getClientPoint(); GraphicsNode node = evt.getGraphicsNode(); Element targetElement = getEventTarget (node, new Point2D.Float(evt.getX(), evt.getY())); Element relatedElement = getRelatedElement(evt); dispatchMouseEven...
/** * Dispatches a DOM MouseEvent according to the specified * parameters. * * @param eventType the event type * @param evt the GVT GraphicsNodeMouseEvent * @param cancelable true means the event is cancelable */
Dispatches a DOM MouseEvent according to the specified parameters
dispatchMouseEvent
{ "repo_name": "Uni-Sol/batik", "path": "sources/org/apache/batik/bridge/BridgeEventSupport.java", "license": "apache-2.0", "size": 19477 }
[ "java.awt.Point", "java.awt.geom.Point2D", "org.apache.batik.gvt.GraphicsNode", "org.apache.batik.gvt.event.GraphicsNodeMouseEvent", "org.w3c.dom.Element" ]
import java.awt.Point; import java.awt.geom.Point2D; import org.apache.batik.gvt.GraphicsNode; import org.apache.batik.gvt.event.GraphicsNodeMouseEvent; import org.w3c.dom.Element;
import java.awt.*; import java.awt.geom.*; import org.apache.batik.gvt.*; import org.apache.batik.gvt.event.*; import org.w3c.dom.*;
[ "java.awt", "org.apache.batik", "org.w3c.dom" ]
java.awt; org.apache.batik; org.w3c.dom;
1,746,974
public static Map<String, byte[]> getPostMap(HttpServletRequest request) { Map<String, byte[]> map = new HashMap<>(); Map<String, String[]> pm = request.getParameterMap(); if (pm != null && pm.size() > 0) { for (Map.Entry<String, String[]> entry: pm.entrySet()) { ...
static Map<String, byte[]> function(HttpServletRequest request) { Map<String, byte[]> map = new HashMap<>(); Map<String, String[]> pm = request.getParameterMap(); if (pm != null && pm.size() > 0) { for (Map.Entry<String, String[]> entry: pm.entrySet()) { String[] v = entry.getValue(); if (v != null && v.length > 0) map...
/** * translate the post map * TODO: make this protected. servlets should not use this method. * The query map is transfered in the Query object, * there is no need to call this method inside a servlet. * @param request * @return the POST request objects/files */
translate the post map The query map is transfered in the Query object, there is no need to call this method inside a servlet
getPostMap
{ "repo_name": "DravitLochan/susi_server", "path": "src/ai/susi/server/RemoteAccess.java", "license": "lgpl-2.1", "size": 11671 }
[ "java.io.ByteArrayOutputStream", "java.io.IOException", "java.io.InputStream", "java.nio.charset.StandardCharsets", "java.util.HashMap", "java.util.Map", "javax.servlet.ServletException", "javax.servlet.http.HttpServletRequest", "javax.servlet.http.Part" ]
import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; import java.nio.charset.StandardCharsets; import java.util.HashMap; import java.util.Map; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.Part;
import java.io.*; import java.nio.charset.*; import java.util.*; import javax.servlet.*; import javax.servlet.http.*;
[ "java.io", "java.nio", "java.util", "javax.servlet" ]
java.io; java.nio; java.util; javax.servlet;
2,820,066
Question updateQuestion(Survey survey, CreateQuestionCommand command, Question question);
Question updateQuestion(Survey survey, CreateQuestionCommand command, Question question);
/** * Update the Question from the given command object. DOES NOT update * choices. * * @param survey * The Survey to affect * @param command * Command data * @param question * The question to update * @return */
Update the Question from the given command object. DOES NOT update choices
updateQuestion
{ "repo_name": "onlyasurvey/OAS_workspace", "path": "tags/1.0.0-SNAPSHOT/OnlyASurvey/OnlyASurveyWeb/src/main/java/com/oas/service/SurveyService.java", "license": "agpl-3.0", "size": 9044 }
[ "com.oas.command.model.CreateQuestionCommand", "com.oas.model.Question", "com.oas.model.Survey" ]
import com.oas.command.model.CreateQuestionCommand; import com.oas.model.Question; import com.oas.model.Survey;
import com.oas.command.model.*; import com.oas.model.*;
[ "com.oas.command", "com.oas.model" ]
com.oas.command; com.oas.model;
2,304,101
public long getLastModified(Object templateSource); /** * Returns the character stream of a template represented by the specified * template source. This method is possibly called for multiple times for the * same template source object, and it must always return a {@link Reader} that *...
long function(Object templateSource); /** * Returns the character stream of a template represented by the specified * template source. This method is possibly called for multiple times for the * same template source object, and it must always return a {@link Reader} that * reads the template from its beginning. Before ...
/** * Returns the time of last modification of the specified template source. * This method is called after <code>findTemplateSource()</code>. * @param templateSource an object representing a template source, obtained * through a prior call to {@link #findTemplateSource(String)}. * @return the ...
Returns the time of last modification of the specified template source. This method is called after <code>findTemplateSource()</code>
getLastModified
{ "repo_name": "ekollof/DarkUniverse", "path": "lib/Freemarker/source/src/main/java/freemarker/cache/TemplateLoader.java", "license": "bsd-2-clause", "size": 8744 }
[ "java.io.Reader" ]
import java.io.Reader;
import java.io.*;
[ "java.io" ]
java.io;
1,933,834
void safeAddToDuplicateCounterMap(long dpKey, DuplicateCounter counter) { DuplicateCounter existingDC = m_duplicateCounters.get(dpKey); if (existingDC != null) { // this is a collision and is bad existingDC.logWithCollidingDuplicateCounters(counter); VoltDB.crashG...
void safeAddToDuplicateCounterMap(long dpKey, DuplicateCounter counter) { DuplicateCounter existingDC = m_duplicateCounters.get(dpKey); if (existingDC != null) { existingDC.logWithCollidingDuplicateCounters(counter); VoltDB.crashGlobalVoltDB(STR, true, null); } else { m_duplicateCounters.put(dpKey, counter); } }
/** * Just using "put" on the dup counter map is unsafe. * It won't detect the case where keys collide from two different transactions. */
Just using "put" on the dup counter map is unsafe. It won't detect the case where keys collide from two different transactions
safeAddToDuplicateCounterMap
{ "repo_name": "simonzhangsm/voltdb", "path": "src/frontend/org/voltdb/iv2/MpScheduler.java", "license": "agpl-3.0", "size": 26105 }
[ "org.voltdb.VoltDB" ]
import org.voltdb.VoltDB;
import org.voltdb.*;
[ "org.voltdb" ]
org.voltdb;
1,046,987
public static void activateSelectPropertiesMode(boolean mode){ for(JButton b:buttonList_)b.setVisible(mode); }
static void function(boolean mode){ for(JButton b:buttonList_)b.setVisible(mode); }
/** * a method to activate the scenario creation mode buttons on the left */
a method to activate the scenario creation mode buttons on the left
activateSelectPropertiesMode
{ "repo_name": "VanetSim/VanetSim", "path": "src/vanetsim/gui/controlpanels/EditVehicleControlPanel.java", "license": "gpl-3.0", "size": 35778 }
[ "javax.swing.JButton" ]
import javax.swing.JButton;
import javax.swing.*;
[ "javax.swing" ]
javax.swing;
2,858,519
public static boolean isSimpleType(Class<?> cls) { return Number.class.isAssignableFrom(cls) || cls == int.class || cls == long.class || cls == double.class || cls == short.class || cls == String.class || cls == Calendar.class || cls == Identifiable.class ...
static boolean function(Class<?> cls) { return Number.class.isAssignableFrom(cls) cls == int.class cls == long.class cls == double.class cls == short.class cls == String.class cls == Calendar.class cls == Identifiable.class cls == Boolean.class cls == boolean.class Collection.class.isAssignableFrom(cls) cls == Class.cl...
/** * Whether or not this class is a simple type which can be stored with the setProperty method. * @param cls * @return */
Whether or not this class is a simple type which can be stored with the setProperty method
isSimpleType
{ "repo_name": "genjosanzo/galaxy-ce", "path": "core/src/main/java/org/mule/galaxy/impl/jcr/JcrUtil.java", "license": "gpl-2.0", "size": 19210 }
[ "java.util.Calendar", "java.util.Collection", "javax.xml.namespace.QName", "org.mule.galaxy.Identifiable" ]
import java.util.Calendar; import java.util.Collection; import javax.xml.namespace.QName; import org.mule.galaxy.Identifiable;
import java.util.*; import javax.xml.namespace.*; import org.mule.galaxy.*;
[ "java.util", "javax.xml", "org.mule.galaxy" ]
java.util; javax.xml; org.mule.galaxy;
2,837,177
public int exitValue() { final IntByReference exitCodeRef = new IntByReference(); // Retrieves the termination status of the specified process boolean success = Kernel32.INSTANCE.GetExitCodeProcess(this.handle, exitCodeRef); if (!success) { win32ErrorRuntime("GetExitCod...
int function() { final IntByReference exitCodeRef = new IntByReference(); boolean success = Kernel32.INSTANCE.GetExitCodeProcess(this.handle, exitCodeRef); if (!success) { win32ErrorRuntime(STR); } int exitCode = exitCodeRef.getValue(); if (exitCode == WinBase.STILL_ACTIVE) { throw new IllegalThreadStateException(STR);...
/** * Returns the exit value for the subprocess. * * @return the exit value of the subprocess represented by this * <code>WindowsProcess</code> object. by convention, the value * <code>0</code> indicates normal termination. * @exception IllegalThreadStateException if...
Returns the exit value for the subprocess
exitValue
{ "repo_name": "acontes/programming", "path": "src/Extensions/org/objectweb/proactive/extensions/processbuilder/WindowsProcess.java", "license": "agpl-3.0", "size": 57759 }
[ "com.sun.jna.platform.win32.Kernel32", "com.sun.jna.platform.win32.WinBase", "com.sun.jna.ptr.IntByReference" ]
import com.sun.jna.platform.win32.Kernel32; import com.sun.jna.platform.win32.WinBase; import com.sun.jna.ptr.IntByReference;
import com.sun.jna.platform.win32.*; import com.sun.jna.ptr.*;
[ "com.sun.jna" ]
com.sun.jna;
2,096,346
void broadcastIntent(@Nullable String uri, @Nullable String action, @Nullable String data, @Nullable String mimeType, Collection<String> categories, Map<String, Object> extras, @Nullable String component, int flags);
void broadcastIntent(@Nullable String uri, @Nullable String action, @Nullable String data, @Nullable String mimeType, Collection<String> categories, Map<String, Object> extras, @Nullable String component, int flags);
/** * Send a broadcast intent to the device. * * @param uri the URI for the Intent * @param action the action for the Intent * @param data the data URI for the Intent * @param mimeType the mime type for the Intent * @param categories the category names for the Intent * @param ext...
Send a broadcast intent to the device
broadcastIntent
{ "repo_name": "z7z8th/aster", "path": "src/com/android/chimpchat/core/IChimpDevice.java", "license": "apache-2.0", "size": 6899 }
[ "java.util.Collection", "java.util.Map", "javax.annotation.Nullable" ]
import java.util.Collection; import java.util.Map; import javax.annotation.Nullable;
import java.util.*; import javax.annotation.*;
[ "java.util", "javax.annotation" ]
java.util; javax.annotation;
1,327,405
public static <E, C extends Comparator<E>> E maximum(Iterator<E> iterator, C comparator, E init) { return Reductions.reduce(iterator, BinaryOperator.maxBy(comparator), init); }
static <E, C extends Comparator<E>> E function(Iterator<E> iterator, C comparator, E init) { return Reductions.reduce(iterator, BinaryOperator.maxBy(comparator), init); }
/** * Returns the max element contained in the iterator * * @param <E> the iterator element type parameter * @param <C> the comparator type parameter * @param iterator the iterator to be consumed * @param comparator the comparator to be used to evaluate the max element * @param init t...
Returns the max element contained in the iterator
maximum
{ "repo_name": "emaze/emaze-dysfunctional", "path": "src/main/java/net/emaze/dysfunctional/Reductions.java", "license": "bsd-3-clause", "size": 9830 }
[ "java.util.Comparator", "java.util.Iterator", "java.util.function.BinaryOperator" ]
import java.util.Comparator; import java.util.Iterator; import java.util.function.BinaryOperator;
import java.util.*; import java.util.function.*;
[ "java.util" ]
java.util;
2,114,230
private void initJobMetrics() { GiraphMetricsRegistry jobMetrics = GiraphMetrics.get().perJobOptional(); wcPreAppTimer = new GiraphTimer(jobMetrics, "worker-context-pre-app", TimeUnit.MILLISECONDS); wcPostAppTimer = new GiraphTimer(jobMetrics, "worker-context-post-app", TimeUnit.MILLISECON...
void function() { GiraphMetricsRegistry jobMetrics = GiraphMetrics.get().perJobOptional(); wcPreAppTimer = new GiraphTimer(jobMetrics, STR, TimeUnit.MILLISECONDS); wcPostAppTimer = new GiraphTimer(jobMetrics, STR, TimeUnit.MILLISECONDS); }
/** * Initialize job-level metrics used by this class. */
Initialize job-level metrics used by this class
initJobMetrics
{ "repo_name": "zfighter/giraph-research", "path": "giraph-core/src/main/java/org/apache/giraph/graph/GraphTaskManager.java", "license": "apache-2.0", "size": 35166 }
[ "java.util.concurrent.TimeUnit", "org.apache.giraph.metrics.GiraphMetrics", "org.apache.giraph.metrics.GiraphMetricsRegistry", "org.apache.giraph.metrics.GiraphTimer" ]
import java.util.concurrent.TimeUnit; import org.apache.giraph.metrics.GiraphMetrics; import org.apache.giraph.metrics.GiraphMetricsRegistry; import org.apache.giraph.metrics.GiraphTimer;
import java.util.concurrent.*; import org.apache.giraph.metrics.*;
[ "java.util", "org.apache.giraph" ]
java.util; org.apache.giraph;
19,717
private void decrypt(long position, byte[] buffer, int offset, int length) throws IOException { ByteBuffer localInBuffer = null; ByteBuffer localOutBuffer = null; Decryptor decryptor = null; try { localInBuffer = getBuffer(); localOutBuffer = getBuffer(); decryptor = getDecryp...
void function(long position, byte[] buffer, int offset, int length) throws IOException { ByteBuffer localInBuffer = null; ByteBuffer localOutBuffer = null; Decryptor decryptor = null; try { localInBuffer = getBuffer(); localOutBuffer = getBuffer(); decryptor = getDecryptor(); byte[] iv = initIV.clone(); updateDecryptor...
/** * Decrypt length bytes in buffer starting at offset. Output is also put * into buffer starting at offset. It is thread-safe. */
Decrypt length bytes in buffer starting at offset. Output is also put into buffer starting at offset. It is thread-safe
decrypt
{ "repo_name": "plusplusjiajia/hadoop", "path": "hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/crypto/CryptoInputStream.java", "license": "apache-2.0", "size": 28663 }
[ "java.io.IOException", "java.nio.ByteBuffer" ]
import java.io.IOException; import java.nio.ByteBuffer;
import java.io.*; import java.nio.*;
[ "java.io", "java.nio" ]
java.io; java.nio;
2,418,386
protected void extr(int size, Register dst, Register src1, Register src2, int lsb) { assert !dst.equals(sp); assert !src1.equals(sp); assert !src2.equals(sp); InstructionType type = generalFromSize(size); assert lsb >= 0 && lsb < type.width; int sf = type == Gene...
void function(int size, Register dst, Register src1, Register src2, int lsb) { assert !dst.equals(sp); assert !src1.equals(sp); assert !src2.equals(sp); InstructionType type = generalFromSize(size); assert lsb >= 0 && lsb < type.width; int sf = type == General64 ? 1 << ImmediateSizeOffset : 0; emitInt(type.encoding EXT...
/** * Extract. dst = src1:src2<lsb+31:lsb> * * @param size register size. Has to be 32 or 64. * @param dst general purpose register. May not be null or stackpointer. * @param src1 general purpose register. May not be null or stackpointer. * @param src2 general purpose register. May not be ...
Extract. dst = src1:src2
extr
{ "repo_name": "md-5/jdk10", "path": "src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.asm.aarch64/src/org/graalvm/compiler/asm/aarch64/AArch64Assembler.java", "license": "gpl-2.0", "size": 131187 }
[ "org.graalvm.compiler.asm.aarch64.AArch64Assembler" ]
import org.graalvm.compiler.asm.aarch64.AArch64Assembler;
import org.graalvm.compiler.asm.aarch64.*;
[ "org.graalvm.compiler" ]
org.graalvm.compiler;
344,091
private Message getRollMessage(int start, int end, String senderId) { boolean isUserRoll = isUserRoll(senderId); int point = this.probabilityControl(start, end); if (isUserRoll) { String img = System.getenv("ROOT_PATH") + "/API/img/" + point; return new ImageMessage(img, img); } else { int siz...
Message function(int start, int end, String senderId) { boolean isUserRoll = isUserRoll(senderId); int point = this.probabilityControl(start, end); if (isUserRoll) { String img = System.getenv(STR) + STR + point; return new ImageMessage(img, img); } else { int size = wowBossMaster.getBosses().size(); Random randBoss = ...
/** * get roll number message * * @param start * @param end * @return */
get roll number message
getRollMessage
{ "repo_name": "eatnoodles/LineBotCC", "path": "spring-boot-cc/src/main/java/com/cc/service/impl/NudoCCServiceImpl.java", "license": "apache-2.0", "size": 16393 }
[ "com.linecorp.bot.model.message.ImageMessage", "com.linecorp.bot.model.message.Message", "com.linecorp.bot.model.message.TextMessage", "com.utils.NudoCCUtil", "java.util.Random" ]
import com.linecorp.bot.model.message.ImageMessage; import com.linecorp.bot.model.message.Message; import com.linecorp.bot.model.message.TextMessage; import com.utils.NudoCCUtil; import java.util.Random;
import com.linecorp.bot.model.message.*; import com.utils.*; import java.util.*;
[ "com.linecorp.bot", "com.utils", "java.util" ]
com.linecorp.bot; com.utils; java.util;
2,625,548
void update(CourseProcessedContent courseProcessedContent);
void update(CourseProcessedContent courseProcessedContent);
/** * This is used to update an existing CourseProcessedContent Object * * @param courseProcessedContent new Object to be persisted in the system */
This is used to update an existing CourseProcessedContent Object
update
{ "repo_name": "motech-implementations/bbc-nms", "path": "mobileacademy/src/main/java/org/motechproject/nms/mobileacademy/service/CourseProcessedContentService.java", "license": "bsd-3-clause", "size": 1547 }
[ "org.motechproject.nms.mobileacademy.domain.CourseProcessedContent" ]
import org.motechproject.nms.mobileacademy.domain.CourseProcessedContent;
import org.motechproject.nms.mobileacademy.domain.*;
[ "org.motechproject.nms" ]
org.motechproject.nms;
1,986,221
protected Collection<Suggestion> getSuggestions() { return this.daySuggestions; }
Collection<Suggestion> function() { return this.daySuggestions; }
/** * Gets a list of suggested days. * * @return the suggestions */
Gets a list of suggested days
getSuggestions
{ "repo_name": "govind487/pa-ewsapi-3.0", "path": "src/main/java/microsoft/exchange/webservices/data/SuggestionsResponse.java", "license": "mit", "size": 2562 }
[ "java.util.Collection" ]
import java.util.Collection;
import java.util.*;
[ "java.util" ]
java.util;
1,881,435
private String getStringFromArrayList(ArrayList<String> aStringArrayList,boolean createQuotes) { String aList="["; if (aStringArrayList.size() > 0) { int i = 0; for (String aString : aStringArrayList){ if(i>0) aList+= ","; if(createQuotes){ ...
String function(ArrayList<String> aStringArrayList,boolean createQuotes) { String aList="["; if (aStringArrayList.size() > 0) { int i = 0; for (String aString : aStringArrayList){ if(i>0) aList+= ","; if(createQuotes){ aList += "\"STR\STR]"; return aList; }
/** * Helper method that retrieves a String representation of a ArrayList of strings. * * @parm aStringArrayList the String ArrayList to convert to a String representation. * @parm createQuotes tells if quotes should/should not be added in the process. * @return String representation of aString...
Helper method that retrieves a String representation of a ArrayList of strings
getStringFromArrayList
{ "repo_name": "kernsuite-debian/lofar", "path": "SAS/OTB/OTB/src/nl/astron/lofar/sas/otbcomponents/bbs/stepmanagement/BBSStepDataManager.java", "license": "gpl-3.0", "size": 50925 }
[ "java.util.ArrayList" ]
import java.util.ArrayList;
import java.util.*;
[ "java.util" ]
java.util;
320,806
public void initialize(ResourceCalculatorPlugin monitor, long totalHeapUsageInMB) { long maxPhysicalMemoryInMB = monitor.getPhysicalMemorySize() / ONE_MB ; if(maxPhysicalMemoryInMB < totalHeapUsageInMB) { throw new RuntimeException("Total heap the can be used is " ...
void function(ResourceCalculatorPlugin monitor, long totalHeapUsageInMB) { long maxPhysicalMemoryInMB = monitor.getPhysicalMemorySize() / ONE_MB ; if(maxPhysicalMemoryInMB < totalHeapUsageInMB) { throw new RuntimeException(STR + maxPhysicalMemoryInMB + STR + totalHeapUsageInMB + STR); } }
/** * This will initialize the core and check if the core can emulate the * desired target on the underlying hardware. */
This will initialize the core and check if the core can emulate the desired target on the underlying hardware
initialize
{ "repo_name": "legend-hua/hadoop", "path": "hadoop-tools/hadoop-gridmix/src/main/java/org/apache/hadoop/mapred/gridmix/emulators/resourceusage/TotalHeapUsageEmulatorPlugin.java", "license": "apache-2.0", "size": 10079 }
[ "org.apache.hadoop.yarn.util.ResourceCalculatorPlugin" ]
import org.apache.hadoop.yarn.util.ResourceCalculatorPlugin;
import org.apache.hadoop.yarn.util.*;
[ "org.apache.hadoop" ]
org.apache.hadoop;
2,491,335
private long computeAnd( AndNode node, PartitionSearchResult searchResult ) throws Exception { int minIndex = 0; long minValue = Long.MAX_VALUE; long value = Long.MAX_VALUE; final List<ExprNode> children = node.getChildren(); for ( int i = 0; i < children.size(...
long function( AndNode node, PartitionSearchResult searchResult ) throws Exception { int minIndex = 0; long minValue = Long.MAX_VALUE; long value = Long.MAX_VALUE; final List<ExprNode> children = node.getChildren(); for ( int i = 0; i < children.size(); i++ ) { ExprNode child = children.get( i ); Object count = child.g...
/** * Creates an AndCursor over a conjunction expression branch node. * * @param node a conjunction expression branch node * @return Cursor over the conjunction expression * @throws Exception on db access failures */
Creates an AndCursor over a conjunction expression branch node
computeAnd
{ "repo_name": "darranl/directory-server", "path": "xdbm-partition/src/main/java/org/apache/directory/server/xdbm/search/impl/CursorBuilder.java", "license": "apache-2.0", "size": 26981 }
[ "java.util.List", "org.apache.directory.api.ldap.model.filter.AndNode", "org.apache.directory.api.ldap.model.filter.ExprNode", "org.apache.directory.server.xdbm.search.PartitionSearchResult" ]
import java.util.List; import org.apache.directory.api.ldap.model.filter.AndNode; import org.apache.directory.api.ldap.model.filter.ExprNode; import org.apache.directory.server.xdbm.search.PartitionSearchResult;
import java.util.*; import org.apache.directory.api.ldap.model.filter.*; import org.apache.directory.server.xdbm.search.*;
[ "java.util", "org.apache.directory" ]
java.util; org.apache.directory;
81,703
public static void storageAccountCreateUserAssignedEncryptionIdentityWithCMK( com.azure.resourcemanager.AzureResourceManager azure) { azure .storageAccounts() .manager() .serviceClient() .getStorageAccounts() .create( "...
static void function( com.azure.resourcemanager.AzureResourceManager azure) { azure .storageAccounts() .manager() .serviceClient() .getStorageAccounts() .create( STR, STR, new StorageAccountCreateParameters() .withSku(new Sku().withName(SkuName.STANDARD_LRS)) .withKind(Kind.STORAGE) .withLocation(STR) .withIdentity( ne...
/** * Sample code: StorageAccountCreateUserAssignedEncryptionIdentityWithCMK. * * @param azure The entry point for accessing resource management APIs in Azure. */
Sample code: StorageAccountCreateUserAssignedEncryptionIdentityWithCMK
storageAccountCreateUserAssignedEncryptionIdentityWithCMK
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/storage/generated/StorageAccountsCreateSamples.java", "license": "mit", "size": 24361 }
[ "com.azure.core.util.Context", "com.azure.resourcemanager.storage.models.Encryption", "com.azure.resourcemanager.storage.models.EncryptionIdentity", "com.azure.resourcemanager.storage.models.EncryptionService", "com.azure.resourcemanager.storage.models.EncryptionServices", "com.azure.resourcemanager.stora...
import com.azure.core.util.Context; import com.azure.resourcemanager.storage.models.Encryption; import com.azure.resourcemanager.storage.models.EncryptionIdentity; import com.azure.resourcemanager.storage.models.EncryptionService; import com.azure.resourcemanager.storage.models.EncryptionServices; import com.azure.reso...
import com.azure.core.util.*; import com.azure.resourcemanager.storage.models.*;
[ "com.azure.core", "com.azure.resourcemanager" ]
com.azure.core; com.azure.resourcemanager;
1,939,476
@Contract("null, _ -> null; !null, _ -> !null") String collapsePath(@Nullable String text, boolean recursively);
@Contract(STR) String collapsePath(@Nullable String text, boolean recursively);
/** * Convert paths inside {@code text} to portable form by replacing all values of path variables by their names. * @param recursively if {@code true} all occurrences of paths inside {@code text} will be processed, otherwise {@code text} will be converted * only if its entire content is a p...
Convert paths inside text to portable form by replacing all values of path variables by their names
collapsePath
{ "repo_name": "asedunov/intellij-community", "path": "platform/projectModel-impl/src/com/intellij/openapi/components/PathMacroSubstitutor.java", "license": "apache-2.0", "size": 2734 }
[ "org.jetbrains.annotations.Contract", "org.jetbrains.annotations.Nullable" ]
import org.jetbrains.annotations.Contract; import org.jetbrains.annotations.Nullable;
import org.jetbrains.annotations.*;
[ "org.jetbrains.annotations" ]
org.jetbrains.annotations;
1,010,827
private Object supressSerialization(Object obj) { SerializableProxy res = new SerializableProxy(UUID.randomUUID()); serializedObj.put(res.uuid, obj); return res; }
Object function(Object obj) { SerializableProxy res = new SerializableProxy(UUID.randomUUID()); serializedObj.put(res.uuid, obj); return res; }
/** * Returns an object that should be returned from writeReplace() method. * * @param obj Object that must not be changed after serialization/deserialization. * @return An object to return from writeReplace() */
Returns an object that should be returned from writeReplace() method
supressSerialization
{ "repo_name": "WilliamDo/ignite", "path": "modules/core/src/test/java/org/apache/ignite/testframework/junits/GridAbstractTest.java", "license": "apache-2.0", "size": 76816 }
[ "java.util.UUID" ]
import java.util.UUID;
import java.util.*;
[ "java.util" ]
java.util;
632,549
public void setByteStream( final InputStream byteStream ) { throw new UnsupportedOperationException(); }
void function( final InputStream byteStream ) { throw new UnsupportedOperationException(); }
/** * Set the byte stream for this input source. * * @param byteStream A byte stream containing an XML document or other entity. */
Set the byte stream for this input source
setByteStream
{ "repo_name": "mbatchelor/pentaho-reporting", "path": "libraries/libxml/src/main/java/org/pentaho/reporting/libraries/xmlns/parser/ResourceDataInputSource.java", "license": "lgpl-2.1", "size": 3870 }
[ "java.io.InputStream" ]
import java.io.InputStream;
import java.io.*;
[ "java.io" ]
java.io;
1,306,419
public static void disposeImages() { // dispose loaded images { for (Image image : m_imageMap.values()) { image.dispose(); } m_imageMap.clear(); } // dispose decorated images for (int i = 0; i < m_decoratedImageMap.length; i++) { Map<Image, Map<Image, Image>> cornerDecoratedImageMap = m_dec...
static void function() { { for (Image image : m_imageMap.values()) { image.dispose(); } m_imageMap.clear(); } for (int i = 0; i < m_decoratedImageMap.length; i++) { Map<Image, Map<Image, Image>> cornerDecoratedImageMap = m_decoratedImageMap[i]; if (cornerDecoratedImageMap != null) { for (Map<Image, Image> decoratedMap ...
/** * Dispose all of the cached {@link Image}'s. */
Dispose all of the cached <code>Image</code>'s
disposeImages
{ "repo_name": "boniatillo-com/PhaserEditor", "path": "source/phasereditor/phasereditor.project.ui/src/org/eclipse/wb/swt/SWTResourceManager.java", "license": "epl-1.0", "size": 15882 }
[ "java.util.HashMap", "java.util.Map", "org.eclipse.swt.graphics.Font", "org.eclipse.swt.graphics.Image" ]
import java.util.HashMap; import java.util.Map; import org.eclipse.swt.graphics.Font; import org.eclipse.swt.graphics.Image;
import java.util.*; import org.eclipse.swt.graphics.*;
[ "java.util", "org.eclipse.swt" ]
java.util; org.eclipse.swt;
1,371,768
public IdentifierImpl findIdentifier(InternalIdentifier id) { for (Identifier identifier : mIdentifiers) { if (id.sameAs(identifier)) { return (IdentifierImpl)identifier; } } return null; }
IdentifierImpl function(InternalIdentifier id) { for (Identifier identifier : mIdentifiers) { if (id.sameAs(identifier)) { return (IdentifierImpl)identifier; } } return null; }
/** * Searches the graph for an {@link IdentifierImpl} representation of the * {@link InternalIdentifier} passed as argument. * @param id {@link InternalIdentifier} to look for. * @return * {@link IdentifierImpl} representation of the {@link InternalIdentifier} passed as argument. * Null otherwise. */
Searches the graph for an <code>IdentifierImpl</code> representation of the <code>InternalIdentifier</code> passed as argument
findIdentifier
{ "repo_name": "trustathsh/visitmeta", "path": "dataservice/src/main/java/de/hshannover/f4/trust/visitmeta/dataservice/graphservice/IdentifierGraphImpl.java", "license": "apache-2.0", "size": 3740 }
[ "de.hshannover.f4.trust.visitmeta.dataservice.internalDatatypes.InternalIdentifier", "de.hshannover.f4.trust.visitmeta.interfaces.Identifier" ]
import de.hshannover.f4.trust.visitmeta.dataservice.internalDatatypes.InternalIdentifier; import de.hshannover.f4.trust.visitmeta.interfaces.Identifier;
import de.hshannover.f4.trust.visitmeta.dataservice.*; import de.hshannover.f4.trust.visitmeta.interfaces.*;
[ "de.hshannover.f4" ]
de.hshannover.f4;
2,271,061
public WrappedGameProfile getProfile() { return handle.getGameProfiles().read(0); }
WrappedGameProfile function() { return handle.getGameProfiles().read(0); }
/** * Retrieve the initial game profile. * <p> * Note that the UUID is NULL. * * @return The current profile. */
Retrieve the initial game profile. Note that the UUID is NULL
getProfile
{ "repo_name": "TribeServer/ItemPlus", "path": "src/main/java/com/comphenix/PacketWrapper/WrapperLoginClientStart.java", "license": "gpl-3.0", "size": 1039 }
[ "com.comphenix.protocol.wrappers.WrappedGameProfile" ]
import com.comphenix.protocol.wrappers.WrappedGameProfile;
import com.comphenix.protocol.wrappers.*;
[ "com.comphenix.protocol" ]
com.comphenix.protocol;
967,097
@Deprecated public void insertFinished( PreparedStatement ps, boolean batch ) throws KettleDatabaseException { boolean isBatchUpdate = false; try { if ( ps != null ) { if ( !isAutoCommit() ) { // Execute the batch or just perform a commit. if ( batch && getDatabaseMetaData(...
void function( PreparedStatement ps, boolean batch ) throws KettleDatabaseException { boolean isBatchUpdate = false; try { if ( ps != null ) { if ( !isAutoCommit() ) { if ( batch && getDatabaseMetaData().supportsBatchUpdates() ) { isBatchUpdate = true; ps.executeBatch(); commit(); } else { commit(); } } } } catch ( Bat...
/** * Close the prepared statement of the insert statement. * * @param ps * The prepared statement to empty and close. * @param batch * true if you are using batch processing (typically true for this method) * @param psBatchCounter * The number of rows on the batch que...
Close the prepared statement of the insert statement
insertFinished
{ "repo_name": "andrei-viaryshka/pentaho-kettle", "path": "core/src/org/pentaho/di/core/database/Database.java", "license": "apache-2.0", "size": 162372 }
[ "java.sql.BatchUpdateException", "java.sql.PreparedStatement", "java.sql.SQLException", "org.pentaho.di.core.exception.KettleDatabaseException" ]
import java.sql.BatchUpdateException; import java.sql.PreparedStatement; import java.sql.SQLException; import org.pentaho.di.core.exception.KettleDatabaseException;
import java.sql.*; import org.pentaho.di.core.exception.*;
[ "java.sql", "org.pentaho.di" ]
java.sql; org.pentaho.di;
95,222
@Test @LocalAlluxioClusterResource.Config(confParams = { PropertyKey.Name.WORKER_NETWORK_KEEPALIVE_TIME_MS, "1sec"}) public void heartbeat1() throws Exception { String uniqPath = PathUtils.uniqPath(); int size = 100; AlluxioURI uri = new AlluxioURI(uniqPath + "/file_" + size); FileSystemTest...
@LocalAlluxioClusterResource.Config(confParams = { PropertyKey.Name.WORKER_NETWORK_KEEPALIVE_TIME_MS, "1sec"}) void function() throws Exception { String uniqPath = PathUtils.uniqPath(); int size = 100; AlluxioURI uri = new AlluxioURI(uniqPath + STR + size); FileSystemTestUtils.createByteFile(mFileSystem, uri, mWriteUnd...
/** * Tests the read API from a remote location after a delay longer than the netty heartbeat * timeout. */
Tests the read API from a remote location after a delay longer than the netty heartbeat timeout
heartbeat1
{ "repo_name": "bf8086/alluxio", "path": "tests/src/test/java/alluxio/client/fs/RemoteReadIntegrationTest.java", "license": "apache-2.0", "size": 22015 }
[ "org.junit.Assert" ]
import org.junit.Assert;
import org.junit.*;
[ "org.junit" ]
org.junit;
2,401,327
public Map<String, List<Object>> batchLoad(Map<Class<?>, List<KeyPair>> itemsToGet) { return batchLoad(itemsToGet, this.config); } /** * * Retrieves the attributes for multiple items from multiple tables using * their primary keys. * {@link AmazonDynamoDB#batchGetItem(Ba...
Map<String, List<Object>> function(Map<Class<?>, List<KeyPair>> itemsToGet) { return batchLoad(itemsToGet, this.config); } /** * * Retrieves the attributes for multiple items from multiple tables using * their primary keys. * {@link AmazonDynamoDB#batchGetItem(BatchGetItemRequest)} API. * * @param itemsToGet * Containe...
/** * Retrieves the attributes for multiple items from multiple tables using * their primary keys. * {@link AmazonDynamoDB#batchGetItem(BatchGetItemRequest)} API. * * @see DynamoDBMapper#batchLoad(Map, List, DynamoDBMapperConfig) */
Retrieves the attributes for multiple items from multiple tables using their primary keys. <code>AmazonDynamoDB#batchGetItem(BatchGetItemRequest)</code> API
batchLoad
{ "repo_name": "XidongHuang/aws-sdk-for-java", "path": "src/main/java/com/amazonaws/services/dynamodb/datamodeling/DynamoDBMapper.java", "license": "apache-2.0", "size": 54208 }
[ "com.amazonaws.services.dynamodb.AmazonDynamoDB", "com.amazonaws.services.dynamodb.model.BatchGetItemRequest", "java.util.List", "java.util.Map" ]
import com.amazonaws.services.dynamodb.AmazonDynamoDB; import com.amazonaws.services.dynamodb.model.BatchGetItemRequest; import java.util.List; import java.util.Map;
import com.amazonaws.services.dynamodb.*; import com.amazonaws.services.dynamodb.model.*; import java.util.*;
[ "com.amazonaws.services", "java.util" ]
com.amazonaws.services; java.util;
867,428
public void printHelp(PrintWriter pw, int width, String cmdLineSyntax, String header, Options options, int leftPad, int descPad, String footer) { printHelp(pw, width, cmdLineSyntax, header, options, leftPad, descPad, footer, false); }
void function(PrintWriter pw, int width, String cmdLineSyntax, String header, Options options, int leftPad, int descPad, String footer) { printHelp(pw, width, cmdLineSyntax, header, options, leftPad, descPad, footer, false); }
/** * Print the help for <code>options</code> with the specified * command line syntax. * * @param pw the writer to which the help will be written * @param width the number of characters to be displayed on each line * @param cmdLineSyntax the syntax for this application * @param heade...
Print the help for <code>options</code> with the specified command line syntax
printHelp
{ "repo_name": "Szperak/bytecode-viewer", "path": "src/org/apache/commons/cli/HelpFormatter.java", "license": "gpl-3.0", "size": 34199 }
[ "java.io.PrintWriter" ]
import java.io.PrintWriter;
import java.io.*;
[ "java.io" ]
java.io;
1,819,615
public List<Entity> mediate(Ontology sourceOntology, Ontology targetOntology, Entity data) throws ComponentException, UnsupportedOperationException;
List<Entity> function(Ontology sourceOntology, Ontology targetOntology, Entity data) throws ComponentException, UnsupportedOperationException;
/** * Transforms a give source ontology instance into instances of the target ontology. * * @param sourceOntology the source ontology * @param targetOntology the target ontology * @param data contains the subject of medition, an instance in terms of source ontology * @return the mediate...
Transforms a give source ontology instance into instances of the target ontology
mediate
{ "repo_name": "herculeshssj/unirio-ppgi-goalservice", "path": "GoalService/core/src/api/org/wsmo/execution/common/component/DataMediator.java", "license": "lgpl-2.1", "size": 3624 }
[ "java.util.List", "org.omwg.ontology.Ontology", "org.wsmo.common.Entity", "org.wsmo.execution.common.exception.ComponentException" ]
import java.util.List; import org.omwg.ontology.Ontology; import org.wsmo.common.Entity; import org.wsmo.execution.common.exception.ComponentException;
import java.util.*; import org.omwg.ontology.*; import org.wsmo.common.*; import org.wsmo.execution.common.exception.*;
[ "java.util", "org.omwg.ontology", "org.wsmo.common", "org.wsmo.execution" ]
java.util; org.omwg.ontology; org.wsmo.common; org.wsmo.execution;
1,901,592
@Test public void testSlotRequestWithResourceAllocationFailure() throws Exception { final ResourceManagerId resourceManagerId = ResourceManagerId.generate(); final ResourceProfile resourceProfile = new ResourceProfile(42.0, 1337); final SlotRequest slotRequest = new SlotRequest( new JobID(), new Allocat...
void function() throws Exception { final ResourceManagerId resourceManagerId = ResourceManagerId.generate(); final ResourceProfile resourceProfile = new ResourceProfile(42.0, 1337); final SlotRequest slotRequest = new SlotRequest( new JobID(), new AllocationID(), resourceProfile, STR); ResourceManagerActions resourceMa...
/** * Tests that the slot request fails if we cannot allocate more resources. */
Tests that the slot request fails if we cannot allocate more resources
testSlotRequestWithResourceAllocationFailure
{ "repo_name": "PangZhi/flink", "path": "flink-runtime/src/test/java/org/apache/flink/runtime/resourcemanager/slotmanager/SlotManagerTest.java", "license": "apache-2.0", "size": 41815 }
[ "org.apache.flink.api.common.JobID", "org.apache.flink.runtime.clusterframework.types.AllocationID", "org.apache.flink.runtime.clusterframework.types.ResourceProfile", "org.apache.flink.runtime.resourcemanager.ResourceManagerId", "org.apache.flink.runtime.resourcemanager.SlotRequest", "org.apache.flink.ru...
import org.apache.flink.api.common.JobID; import org.apache.flink.runtime.clusterframework.types.AllocationID; import org.apache.flink.runtime.clusterframework.types.ResourceProfile; import org.apache.flink.runtime.resourcemanager.ResourceManagerId; import org.apache.flink.runtime.resourcemanager.SlotRequest; import or...
import org.apache.flink.api.common.*; import org.apache.flink.runtime.clusterframework.types.*; import org.apache.flink.runtime.resourcemanager.*; import org.apache.flink.runtime.resourcemanager.exceptions.*; import org.junit.*; import org.mockito.*;
[ "org.apache.flink", "org.junit", "org.mockito" ]
org.apache.flink; org.junit; org.mockito;
54,424
private double simplePropertyEstimation(ComparisonExpression comparisonExpression) { QueryComparable lhs = comparisonExpression.getLhs(); QueryComparable rhs = comparisonExpression.getRhs(); Comparator comp = comparisonExpression.getComparator(); // "normalize" the comparison so that the selector is o...
double function(ComparisonExpression comparisonExpression) { QueryComparable lhs = comparisonExpression.getLhs(); QueryComparable rhs = comparisonExpression.getRhs(); Comparator comp = comparisonExpression.getComparator(); if (rhs instanceof PropertySelectorComparable) { QueryComparable t = lhs; lhs = rhs; rhs = t; com...
/** * Computes the estimation of the probability that a comparison between a property * selector and a constant holds * * @param comparisonExpression comparison * @return estimation of the probability that the comparison holds */
Computes the estimation of the probability that a comparison between a property selector and a constant holds
simplePropertyEstimation
{ "repo_name": "galpha/gradoop", "path": "gradoop-temporal/src/main/java/org/gradoop/temporal/model/impl/operators/matching/single/cypher/planning/estimation/CNFEstimation.java", "license": "apache-2.0", "size": 24335 }
[ "java.util.Optional", "org.gradoop.common.model.impl.properties.PropertyValue", "org.gradoop.flink.model.impl.operators.matching.common.query.predicates.QueryComparable", "org.gradoop.flink.model.impl.operators.matching.common.query.predicates.comparables.LiteralComparable", "org.gradoop.flink.model.impl.op...
import java.util.Optional; import org.gradoop.common.model.impl.properties.PropertyValue; import org.gradoop.flink.model.impl.operators.matching.common.query.predicates.QueryComparable; import org.gradoop.flink.model.impl.operators.matching.common.query.predicates.comparables.LiteralComparable; import org.gradoop.flink...
import java.util.*; import org.gradoop.common.model.impl.properties.*; import org.gradoop.flink.model.impl.operators.matching.common.query.predicates.*; import org.gradoop.flink.model.impl.operators.matching.common.query.predicates.comparables.*; import org.gradoop.flink.model.impl.operators.matching.common.query.predi...
[ "java.util", "org.gradoop.common", "org.gradoop.flink", "org.gradoop.gdl", "org.gradoop.temporal" ]
java.util; org.gradoop.common; org.gradoop.flink; org.gradoop.gdl; org.gradoop.temporal;
2,139,771
private static void drawArrow( Canvas canvas, GameState.Direction dir, int r ) { Path path = new Path(); path.moveTo( ( -r + 3 ), ( r - 3 ) ); path.lineTo( ( r - 3 ), ( r - 3 ) ); path.lineTo( 0, ( -r + 5 ) ); canvas.save(); switch ( dir ...
static void function( Canvas canvas, GameState.Direction dir, int r ) { Path path = new Path(); path.moveTo( ( -r + 3 ), ( r - 3 ) ); path.lineTo( ( r - 3 ), ( r - 3 ) ); path.lineTo( 0, ( -r + 5 ) ); canvas.save(); switch ( dir ) { case DOWN: { canvas.rotate( 180.0f ); } break; case RIGHT: { canvas.rotate( 90.0f ); } ...
/** * Draws an arrow on the given canvas. * * @param canvas the canvas to draw to (also translated to the proper * drawing location) * @param dir the direction of the arrow * @param r the radius of the square */
Draws an arrow on the given canvas
drawArrow
{ "repo_name": "EricMountain/droid-atomix", "path": "src/edu/rit/poe/atomix/view/AtomicView.java", "license": "gpl-2.0", "size": 44796 }
[ "android.graphics.Canvas", "android.graphics.Color", "android.graphics.Paint", "android.graphics.Path", "edu.rit.poe.atomix.game.GameState" ]
import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.graphics.Path; import edu.rit.poe.atomix.game.GameState;
import android.graphics.*; import edu.rit.poe.atomix.game.*;
[ "android.graphics", "edu.rit.poe" ]
android.graphics; edu.rit.poe;
418,203
@ServiceMethod(returns = ReturnType.SINGLE) HubVirtualNetworkConnectionInner get(String resourceGroupName, String virtualHubName, String connectionName);
@ServiceMethod(returns = ReturnType.SINGLE) HubVirtualNetworkConnectionInner get(String resourceGroupName, String virtualHubName, String connectionName);
/** * Retrieves the details of a HubVirtualNetworkConnection. * * @param resourceGroupName The resource group name of the VirtualHub. * @param virtualHubName The name of the VirtualHub. * @param connectionName The name of the vpn connection. * @throws IllegalArgumentException thrown if par...
Retrieves the details of a HubVirtualNetworkConnection
get
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/resourcemanagerhybrid/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/HubVirtualNetworkConnectionsClient.java", "license": "mit", "size": 6573 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.resourcemanager.network.fluent.models.HubVirtualNetworkConnectionInner" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.resourcemanager.network.fluent.models.HubVirtualNetworkConnectionInner;
import com.azure.core.annotation.*; import com.azure.resourcemanager.network.fluent.models.*;
[ "com.azure.core", "com.azure.resourcemanager" ]
com.azure.core; com.azure.resourcemanager;
2,164,702
ArgumentChecker.notNull(callbackId, "url"); synchronized (_lock) { if (_continuation != null) { try { sendUpdate(formatUpdate(callbackId)); } catch (JSONException e) { // this shouldn't ever happen s_logger.warn("Unable to format callback ID as JSON: " + callbackI...
ArgumentChecker.notNull(callbackId, "url"); synchronized (_lock) { if (_continuation != null) { try { sendUpdate(formatUpdate(callbackId)); } catch (JSONException e) { s_logger.warn(STR + callbackId, e); } } else { _updates.add(callbackId); } } }
/** * Publishes {@code url} to the client as JSON. If the client is connected (i.e. this listener has a * continuation) the URL is sent immediately. If the client isn't connected it is queued until the * connection is re-established. * @param callbackId REST URL of the item that has been updated */
Publishes url to the client as JSON. If the client is connected (i.e. this listener has a continuation) the URL is sent immediately. If the client isn't connected it is queued until the connection is re-established
itemUpdated
{ "repo_name": "DevStreet/FinanceAnalytics", "path": "projects/OG-Web/src/main/java/com/opengamma/web/analytics/push/LongPollingUpdateListener.java", "license": "apache-2.0", "size": 6466 }
[ "com.opengamma.util.ArgumentChecker", "org.json.JSONException" ]
import com.opengamma.util.ArgumentChecker; import org.json.JSONException;
import com.opengamma.util.*; import org.json.*;
[ "com.opengamma.util", "org.json" ]
com.opengamma.util; org.json;
1,537,223
List<MessageMeta> getMessages(String targetSystem, Collection<Long> ids);
List<MessageMeta> getMessages(String targetSystem, Collection<Long> ids);
/** * Get messages for delivery to the target system. * <p/> * Will mark the messages as delivered. * <p> * Will load the message bodies for all message metas. * * * @param targetSystem * @param ids to get * @return list of messages with the given ids b...
Get messages for delivery to the target system. Will mark the messages as delivered. Will load the message bodies for all message metas
getMessages
{ "repo_name": "skltp/mt", "path": "composites/svc/src/main/java/se/skltp/mb/svc/services/MessageService.java", "license": "lgpl-3.0", "size": 3876 }
[ "java.util.Collection", "java.util.List", "se.skltp.mb.types.entity.MessageMeta" ]
import java.util.Collection; import java.util.List; import se.skltp.mb.types.entity.MessageMeta;
import java.util.*; import se.skltp.mb.types.entity.*;
[ "java.util", "se.skltp.mb" ]
java.util; se.skltp.mb;
706,548
protected void copyDeploymentsIntoGit(Git git, File baseDir, Set<String> bundles, Set<Feature> features) throws Exception { List<String> webAppFilesToDelete = filesToDelete(baseDir, webAppDir); List<String> deployDirFilesToDelete = filesToDelete(baseDir, deployDir); LOG.debug("Deploying int...
void function(Git git, File baseDir, Set<String> bundles, Set<Feature> features) throws Exception { List<String> webAppFilesToDelete = filesToDelete(baseDir, webAppDir); List<String> deployDirFilesToDelete = filesToDelete(baseDir, deployDir); LOG.debug(STR + container.getId() + STR + features + STR + bundles); Map<Stri...
/** * Lets download all the deployments and copy them into the {@link #webAppDir} or {@link #deployDir} in git */
Lets download all the deployments and copy them into the <code>#webAppDir</code> or <code>#deployDir</code> in git
copyDeploymentsIntoGit
{ "repo_name": "janstey/fuse", "path": "fabric/fabric-openshift/src/main/java/org/fusesource/fabric/openshift/agent/DeploymentUpdater.java", "license": "apache-2.0", "size": 14379 }
[ "java.io.File", "java.util.Collections", "java.util.List", "java.util.Map", "java.util.Set", "org.apache.karaf.features.Feature", "org.eclipse.jgit.api.Git", "org.fusesource.fabric.agent.utils.AgentUtils", "org.fusesource.fabric.utils.Files" ]
import java.io.File; import java.util.Collections; import java.util.List; import java.util.Map; import java.util.Set; import org.apache.karaf.features.Feature; import org.eclipse.jgit.api.Git; import org.fusesource.fabric.agent.utils.AgentUtils; import org.fusesource.fabric.utils.Files;
import java.io.*; import java.util.*; import org.apache.karaf.features.*; import org.eclipse.jgit.api.*; import org.fusesource.fabric.agent.utils.*; import org.fusesource.fabric.utils.*;
[ "java.io", "java.util", "org.apache.karaf", "org.eclipse.jgit", "org.fusesource.fabric" ]
java.io; java.util; org.apache.karaf; org.eclipse.jgit; org.fusesource.fabric;
1,737,453
public final ContentSummary computeAndConvertContentSummary( ContentSummaryComputationContext summary) { Content.Counts counts = computeContentSummary(summary).getCounts(); final Quota.Counts q = getQuotaCounts(); return new ContentSummary(counts.get(Content.LENGTH), counts.get(Content.FILE)...
final ContentSummary function( ContentSummaryComputationContext summary) { Content.Counts counts = computeContentSummary(summary).getCounts(); final Quota.Counts q = getQuotaCounts(); return new ContentSummary(counts.get(Content.LENGTH), counts.get(Content.FILE) + counts.get(Content.SYMLINK), counts.get(Content.DIRECTO...
/** * Compute {@link ContentSummary}. */
Compute <code>ContentSummary</code>
computeAndConvertContentSummary
{ "repo_name": "vesense/hadoop", "path": "hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/INode.java", "license": "apache-2.0", "size": 27105 }
[ "org.apache.hadoop.fs.ContentSummary" ]
import org.apache.hadoop.fs.ContentSummary;
import org.apache.hadoop.fs.*;
[ "org.apache.hadoop" ]
org.apache.hadoop;
2,188,152
protected void addSnippetTypePropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_SnippetTransformation_snippetType_feature"), getString("_UI_Pro...
void function(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString(STR), getString(STR, STR, STR), TransformModelPackage.Literals.SNIPPET_TRANSFORMATION__SNIPPET_TYPE, true, false, true, null, nul...
/** * This adds a property descriptor for the Snippet Type feature. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */
This adds a property descriptor for the Snippet Type feature.
addSnippetTypePropertyDescriptor
{ "repo_name": "debabratahazra/DS", "path": "designstudio/components/page/ui/com.odcgroup.page.edit/src/generated/java/com/odcgroup/page/transformmodel/provider/SnippetTransformationItemProvider.java", "license": "epl-1.0", "size": 4243 }
[ "com.odcgroup.page.transformmodel.TransformModelPackage", "org.eclipse.emf.edit.provider.ComposeableAdapterFactory" ]
import com.odcgroup.page.transformmodel.TransformModelPackage; import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
import com.odcgroup.page.transformmodel.*; import org.eclipse.emf.edit.provider.*;
[ "com.odcgroup.page", "org.eclipse.emf" ]
com.odcgroup.page; org.eclipse.emf;
1,836,611
public List<NetworkInterfaceIPConfigurationInner> ipConfigurations() { return this.ipConfigurations; }
List<NetworkInterfaceIPConfigurationInner> function() { return this.ipConfigurations; }
/** * Get a list of IPConfigurations of the network interface. * * @return the ipConfigurations value */
Get a list of IPConfigurations of the network interface
ipConfigurations
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/network/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/network/v2020_03_01/implementation/NetworkInterfaceInner.java", "license": "mit", "size": 9525 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
651,341
public Rectangle2D createIntersection(Rectangle2D r) { // Favor runtime type of other rectangle. Rectangle2D res = r.getBounds2D(); intersect(this, r, res); return res; }
Rectangle2D function(Rectangle2D r) { Rectangle2D res = r.getBounds2D(); intersect(this, r, res); return res; }
/** * Determines the rectangle which is formed by the intersection of this * rectangle with the specified rectangle. If the two do not intersect, * an empty rectangle will be returned (meaning the width and/or height * will be non-positive). * * @param r the rectange to calculate the intersection with...
Determines the rectangle which is formed by the intersection of this rectangle with the specified rectangle. If the two do not intersect, an empty rectangle will be returned (meaning the width and/or height will be non-positive)
createIntersection
{ "repo_name": "shaotuanchen/sunflower_exp", "path": "tools/source/gcc-4.2.4/libjava/classpath/java/awt/Rectangle.java", "license": "bsd-3-clause", "size": 21370 }
[ "java.awt.geom.Rectangle2D" ]
import java.awt.geom.Rectangle2D;
import java.awt.geom.*;
[ "java.awt" ]
java.awt;
2,812,660
void cleanupForClient(CacheClientNotifier clientNotifier, ClientProxyMembershipID client) { if (this.cache.isClosed() || this.isDestroyed) { return; } this.filterProfile.cleanupForClient(clientNotifier, client); for (Object regionObject : new SubregionsSet(false)) { LocalRegion region = ...
void cleanupForClient(CacheClientNotifier clientNotifier, ClientProxyMembershipID client) { if (this.cache.isClosed() this.isDestroyed) { return; } this.filterProfile.cleanupForClient(clientNotifier, client); for (Object regionObject : new SubregionsSet(false)) { LocalRegion region = (LocalRegion) regionObject; region....
/** * Called by ccn when a client goes away * * @since GemFire 5.7 */
Called by ccn when a client goes away
cleanupForClient
{ "repo_name": "shankarh/geode", "path": "geode-core/src/main/java/org/apache/geode/internal/cache/LocalRegion.java", "license": "apache-2.0", "size": 428183 }
[ "org.apache.geode.internal.cache.tier.sockets.CacheClientNotifier", "org.apache.geode.internal.cache.tier.sockets.ClientProxyMembershipID" ]
import org.apache.geode.internal.cache.tier.sockets.CacheClientNotifier; import org.apache.geode.internal.cache.tier.sockets.ClientProxyMembershipID;
import org.apache.geode.internal.cache.tier.sockets.*;
[ "org.apache.geode" ]
org.apache.geode;
2,553,072
public DataNode setDescription(IDataset description);
DataNode function(IDataset description);
/** * This should describe the reason for including this reference. * For example: The dataset in this group was normalised using the method * which is described in detail in this reference. * <p> * <b>Type:</b> NX_CHAR * </p> * * @param description the description */
This should describe the reason for including this reference. For example: The dataset in this group was normalised using the method which is described in detail in this reference. Type: NX_CHAR
setDescription
{ "repo_name": "xen-0/dawnsci", "path": "org.eclipse.dawnsci.nexus/autogen/org/eclipse/dawnsci/nexus/NXcite.java", "license": "epl-1.0", "size": 5339 }
[ "org.eclipse.dawnsci.analysis.api.tree.DataNode", "org.eclipse.january.dataset.IDataset" ]
import org.eclipse.dawnsci.analysis.api.tree.DataNode; import org.eclipse.january.dataset.IDataset;
import org.eclipse.dawnsci.analysis.api.tree.*; import org.eclipse.january.dataset.*;
[ "org.eclipse.dawnsci", "org.eclipse.january" ]
org.eclipse.dawnsci; org.eclipse.january;
491,549
public UnaryCallSettings< ApproveDisplayVideo360AdvertiserLinkProposalRequest, ApproveDisplayVideo360AdvertiserLinkProposalResponse> approveDisplayVideo360AdvertiserLinkProposalSettings() { return ((AnalyticsAdminServiceStubSettings) getStubSettings()) .approveDisplayVideo360Adve...
UnaryCallSettings< ApproveDisplayVideo360AdvertiserLinkProposalRequest, ApproveDisplayVideo360AdvertiserLinkProposalResponse> function() { return ((AnalyticsAdminServiceStubSettings) getStubSettings()) .approveDisplayVideo360AdvertiserLinkProposalSettings(); }
/** * Returns the object with the settings used for calls to * approveDisplayVideo360AdvertiserLinkProposal. */
Returns the object with the settings used for calls to approveDisplayVideo360AdvertiserLinkProposal
approveDisplayVideo360AdvertiserLinkProposalSettings
{ "repo_name": "googleapis/java-analytics-admin", "path": "google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceSettings.java", "license": "apache-2.0", "size": 62796 }
[ "com.google.analytics.admin.v1alpha.stub.AnalyticsAdminServiceStubSettings", "com.google.api.gax.rpc.UnaryCallSettings" ]
import com.google.analytics.admin.v1alpha.stub.AnalyticsAdminServiceStubSettings; import com.google.api.gax.rpc.UnaryCallSettings;
import com.google.analytics.admin.v1alpha.stub.*; import com.google.api.gax.rpc.*;
[ "com.google.analytics", "com.google.api" ]
com.google.analytics; com.google.api;
908,841
private static String resolveUriPath(String name) { // compact the path and use / as separator as that's used for loading resources on the classpath return FileUtil.compactPath(name, '/'); }
static String function(String name) { return FileUtil.compactPath(name, '/'); }
/** * Helper operation used to remove relative path notation from resources. Most critical for resources on the * Classpath as resource loaders will not resolve the relative paths correctly. * * @param name the name of the resource to load * @return the modified or unmodified string if th...
Helper operation used to remove relative path notation from resources. Most critical for resources on the Classpath as resource loaders will not resolve the relative paths correctly
resolveUriPath
{ "repo_name": "pax95/camel", "path": "core/camel-support/src/main/java/org/apache/camel/support/ResourceHelper.java", "license": "apache-2.0", "size": 12081 }
[ "org.apache.camel.util.FileUtil" ]
import org.apache.camel.util.FileUtil;
import org.apache.camel.util.*;
[ "org.apache.camel" ]
org.apache.camel;
2,126,204
public String getMessageCommunityIdFromRequest(AssertionType assertion, NhinTargetSystemType target, String direction, String _interface) { // if a request is going outbound, then the current audit is in the requesting side boolean isAuditInRequestingSide = NhincConstants.AUDIT_LOG_OUTBOUND...
String function(AssertionType assertion, NhinTargetSystemType target, String direction, String _interface) { boolean isAuditInRequestingSide = NhincConstants.AUDIT_LOG_OUTBOUND_DIRECTION.equalsIgnoreCase(direction); return getMessageCommunityId(assertion, target, _interface, isAuditInRequestingSide); }
/** * Retrieves the community id for auditing when the message being audited is a request message. For example, this * method should be used when the message being audited is an ProvideAndRegister request. * * @param assertion the assertion containing a homecommunity id * @param target the dest...
Retrieves the community id for auditing when the message being audited is a request message. For example, this method should be used when the message being audited is an ProvideAndRegister request
getMessageCommunityIdFromRequest
{ "repo_name": "AurionProject/Aurion", "path": "Product/Production/Common/CONNECTCoreLib/src/main/java/gov/hhs/fha/nhinc/transform/audit/XDRTransforms.java", "license": "bsd-3-clause", "size": 63934 }
[ "gov.hhs.fha.nhinc.common.nhinccommon.AssertionType", "gov.hhs.fha.nhinc.common.nhinccommon.NhinTargetSystemType", "gov.hhs.fha.nhinc.nhinclib.NhincConstants" ]
import gov.hhs.fha.nhinc.common.nhinccommon.AssertionType; import gov.hhs.fha.nhinc.common.nhinccommon.NhinTargetSystemType; import gov.hhs.fha.nhinc.nhinclib.NhincConstants;
import gov.hhs.fha.nhinc.common.nhinccommon.*; import gov.hhs.fha.nhinc.nhinclib.*;
[ "gov.hhs.fha" ]
gov.hhs.fha;
6,559
long findCountByCondition(String entityName, EntityCondition whereEntityCondition, EntityCondition havingEntityCondition, EntityFindOptions findOptions) throws GenericEntityException;
long findCountByCondition(String entityName, EntityCondition whereEntityCondition, EntityCondition havingEntityCondition, EntityFindOptions findOptions) throws GenericEntityException;
/** * Gets the hit count of GenericValues for the given EntityCondition objects. * * @param entityName * @param whereEntityCondition * @param havingEntityCondition * @param findOptions * @return long value with hit count * @throws GenericEntityException */
Gets the hit count of GenericValues for the given EntityCondition objects
findCountByCondition
{ "repo_name": "ilscipio/scipio-erp", "path": "framework/entity/src/org/ofbiz/entity/Delegator.java", "license": "apache-2.0", "size": 49437 }
[ "org.ofbiz.entity.condition.EntityCondition", "org.ofbiz.entity.util.EntityFindOptions" ]
import org.ofbiz.entity.condition.EntityCondition; import org.ofbiz.entity.util.EntityFindOptions;
import org.ofbiz.entity.condition.*; import org.ofbiz.entity.util.*;
[ "org.ofbiz.entity" ]
org.ofbiz.entity;
1,750,794
public static Object deserializeObject(Document source) throws Exception { List<?> objList = source.getRootElement().getChildren(); Map<Object, Object> table = new HashMap<Object, Object>(); createInstances(table, objList); assignFieldValues(table, objList); return table.get("0"); }
static Object function(Document source) throws Exception { List<?> objList = source.getRootElement().getChildren(); Map<Object, Object> table = new HashMap<Object, Object>(); createInstances(table, objList); assignFieldValues(table, objList); return table.get("0"); }
/** * Deserialize object. * * @param source * the source * @return the object * @throws Exception * the exception */
Deserialize object
deserializeObject
{ "repo_name": "haint/jgentle", "path": "src/org/jgentleframework/utils/Serialize.java", "license": "apache-2.0", "size": 10227 }
[ "java.util.HashMap", "java.util.List", "java.util.Map", "org.jdom.Document" ]
import java.util.HashMap; import java.util.List; import java.util.Map; import org.jdom.Document;
import java.util.*; import org.jdom.*;
[ "java.util", "org.jdom" ]
java.util; org.jdom;
1,450,959
public static String msgType2String(int type) { switch (type) { case AbstractMessage.CONNECT: return "CONNECT"; case AbstractMessage.CONNACK: return "CONNACK"; case AbstractMessage.PUBLISH: return "PUBLISH"; case AbstractMessage.PUBACK: return "PUBACK"; ...
static String function(int type) { switch (type) { case AbstractMessage.CONNECT: return STR; case AbstractMessage.CONNACK: return STR; case AbstractMessage.PUBLISH: return STR; case AbstractMessage.PUBACK: return STR; case AbstractMessage.PUBREC: return STR; case AbstractMessage.PUBREL: return STR; case AbstractMessage...
/** * Converts MQTT message type to a textual description. * */
Converts MQTT message type to a textual description
msgType2String
{ "repo_name": "taojiaenx/moquette", "path": "parser_commons/src/main/java/org/eclipse/moquette/proto/Utils.java", "license": "apache-2.0", "size": 7080 }
[ "org.eclipse.moquette.proto.messages.AbstractMessage" ]
import org.eclipse.moquette.proto.messages.AbstractMessage;
import org.eclipse.moquette.proto.messages.*;
[ "org.eclipse.moquette" ]
org.eclipse.moquette;
221,215
public LearningActivityTry[] findByActIdStarted_PrevAndNext(long latId, long actId, OrderByComparator orderByComparator) throws NoSuchLearningActivityTryException, SystemException { LearningActivityTry learningActivityTry = findByPrimaryKey(latId); Session session = null; try { session = openSession()...
LearningActivityTry[] function(long latId, long actId, OrderByComparator orderByComparator) throws NoSuchLearningActivityTryException, SystemException { LearningActivityTry learningActivityTry = findByPrimaryKey(latId); Session session = null; try { session = openSession(); LearningActivityTry[] array = new LearningAct...
/** * Returns the learning activity tries before and after the current learning activity try in the ordered set where actId = &#63;. * * @param latId the primary key of the current learning activity try * @param actId the act ID * @param orderByComparator the comparator to order the set by (optionally <code>n...
Returns the learning activity tries before and after the current learning activity try in the ordered set where actId = &#63;
findByActIdStarted_PrevAndNext
{ "repo_name": "TelefonicaED/liferaylms-portlet", "path": "docroot/WEB-INF/src/com/liferay/lms/service/persistence/LearningActivityTryPersistenceImpl.java", "license": "agpl-3.0", "size": 155464 }
[ "com.liferay.lms.NoSuchLearningActivityTryException", "com.liferay.lms.model.LearningActivityTry", "com.liferay.lms.model.impl.LearningActivityTryImpl", "com.liferay.portal.kernel.dao.orm.Session", "com.liferay.portal.kernel.exception.SystemException", "com.liferay.portal.kernel.util.OrderByComparator" ]
import com.liferay.lms.NoSuchLearningActivityTryException; import com.liferay.lms.model.LearningActivityTry; import com.liferay.lms.model.impl.LearningActivityTryImpl; import com.liferay.portal.kernel.dao.orm.Session; import com.liferay.portal.kernel.exception.SystemException; import com.liferay.portal.kernel.util.Orde...
import com.liferay.lms.*; import com.liferay.lms.model.*; import com.liferay.lms.model.impl.*; import com.liferay.portal.kernel.dao.orm.*; import com.liferay.portal.kernel.exception.*; import com.liferay.portal.kernel.util.*;
[ "com.liferay.lms", "com.liferay.portal" ]
com.liferay.lms; com.liferay.portal;
544,715
Bindings getBindingsForAddress(SimpleString address) throws Exception;
Bindings getBindingsForAddress(SimpleString address) throws Exception;
/** * Differently to lookupBindings, this will always create a new element on the Queue if non-existent * @param address * @throws Exception */
Differently to lookupBindings, this will always create a new element on the Queue if non-existent
getBindingsForAddress
{ "repo_name": "jbertram/activemq-artemis-old", "path": "artemis-server/src/main/java/org/apache/activemq/artemis/core/postoffice/PostOffice.java", "license": "apache-2.0", "size": 4179 }
[ "org.apache.activemq.artemis.api.core.SimpleString" ]
import org.apache.activemq.artemis.api.core.SimpleString;
import org.apache.activemq.artemis.api.core.*;
[ "org.apache.activemq" ]
org.apache.activemq;
443,978
public void callAndAssertReturns(boolean expected, String methodName, Object... arguments) throws Exception { checkNotNull(methodName); checkNotNull(arguments); sendRequest(methodName, arguments); assertEquals(expected, getResponse(methodName).getResult()); }
void function(boolean expected, String methodName, Object... arguments) throws Exception { checkNotNull(methodName); checkNotNull(arguments); sendRequest(methodName, arguments); assertEquals(expected, getResponse(methodName).getResult()); }
/** * Causes this thread to call the named method, and asserts that the call returns the expected * boolean value. */
Causes this thread to call the named method, and asserts that the call returns the expected boolean value
callAndAssertReturns
{ "repo_name": "google/guava", "path": "android/guava-tests/test/com/google/common/util/concurrent/TestThread.java", "license": "apache-2.0", "size": 11071 }
[ "com.google.common.base.Preconditions", "junit.framework.Assert" ]
import com.google.common.base.Preconditions; import junit.framework.Assert;
import com.google.common.base.*; import junit.framework.*;
[ "com.google.common", "junit.framework" ]
com.google.common; junit.framework;
1,964,369
public void setBusinessObjectService(BusinessObjectService businessObjectService) { this.businessObjectService = businessObjectService; }
void function(BusinessObjectService businessObjectService) { this.businessObjectService = businessObjectService; }
/** * Sets the businessObjectService attribute value. * * @param businessObjectService The businessObjectService to set. */
Sets the businessObjectService attribute value
setBusinessObjectService
{ "repo_name": "ua-eas/kfs-devops-automation-fork", "path": "kfs-kc/src/main/java/org/kuali/kfs/module/external/kc/service/impl/AccountCreationServiceImpl.java", "license": "agpl-3.0", "size": 39076 }
[ "org.kuali.rice.krad.service.BusinessObjectService" ]
import org.kuali.rice.krad.service.BusinessObjectService;
import org.kuali.rice.krad.service.*;
[ "org.kuali.rice" ]
org.kuali.rice;
227,075
public ItemStack getStackInRowAndColumn(int p_70463_1_, int p_70463_2_) { if (p_70463_1_ >= 0 && p_70463_1_ < this.inventoryWidth) { int var3 = p_70463_1_ + p_70463_2_ * this.inventoryWidth; return this.getStackInSlot(var3); } else { re...
ItemStack function(int p_70463_1_, int p_70463_2_) { if (p_70463_1_ >= 0 && p_70463_1_ < this.inventoryWidth) { int var3 = p_70463_1_ + p_70463_2_ * this.inventoryWidth; return this.getStackInSlot(var3); } else { return null; } }
/** * Returns the itemstack in the slot specified (Top left is 0, 0). Args: row, column */
Returns the itemstack in the slot specified (Top left is 0, 0). Args: row, column
getStackInRowAndColumn
{ "repo_name": "Myrninvollo/Server", "path": "src/net/minecraft/inventory/InventoryCrafting.java", "license": "gpl-2.0", "size": 4672 }
[ "net.minecraft.item.ItemStack" ]
import net.minecraft.item.ItemStack;
import net.minecraft.item.*;
[ "net.minecraft.item" ]
net.minecraft.item;
1,523,737
public static int dateToOrdinal(Date date) { // BigDate.toOrdinal returns the ordinal since 1970, so we add up the days from 01/01/01 to 1970 return BigDate.toOrdinal(date.getYear() + 1900, date.getMonth() + 1, date.getDate()) + DAYS_BEFORE_1970; }
static int function(Date date) { return BigDate.toOrdinal(date.getYear() + 1900, date.getMonth() + 1, date.getDate()) + DAYS_BEFORE_1970; }
/** * Returns the proleptic Gregorian ordinal of the date, where January 1 of year 1 has ordinal 1. * @param date Date to convert to ordinal, since 01/01/01 * @return The ordinal representing the date */
Returns the proleptic Gregorian ordinal of the date, where January 1 of year 1 has ordinal 1
dateToOrdinal
{ "repo_name": "wchristian/Anki-Android", "path": "src/com/ichi2/libanki/Utils.java", "license": "gpl-3.0", "size": 46048 }
[ "com.mindprod.common11.BigDate", "java.sql.Date" ]
import com.mindprod.common11.BigDate; import java.sql.Date;
import com.mindprod.common11.*; import java.sql.*;
[ "com.mindprod.common11", "java.sql" ]
com.mindprod.common11; java.sql;
1,732,744
public @Nonnull NetworkFirewallCapabilities getCapabilities() throws CloudException, InternalException;
@Nonnull NetworkFirewallCapabilities function() throws CloudException, InternalException;
/** * Provides access to meta-data about load balancer capabilities in the current region of this cloud. * @return a description of the features supported by this region of this cloud * @throws InternalException an error occurred within the Dasein Cloud API implementation * @throws CloudException an...
Provides access to meta-data about load balancer capabilities in the current region of this cloud
getCapabilities
{ "repo_name": "vladmunthiu/dasein-cloud-core-GR-fork", "path": "src/main/java/org/dasein/cloud/network/NetworkFirewallSupport.java", "license": "apache-2.0", "size": 20098 }
[ "javax.annotation.Nonnull", "org.dasein.cloud.CloudException", "org.dasein.cloud.InternalException" ]
import javax.annotation.Nonnull; import org.dasein.cloud.CloudException; import org.dasein.cloud.InternalException;
import javax.annotation.*; import org.dasein.cloud.*;
[ "javax.annotation", "org.dasein.cloud" ]
javax.annotation; org.dasein.cloud;
554,277
private String parseCpuInfo() { String info; try { info = parseFileLine(ctx.getResources().getString(R.string.CPUINFO_FILE), 1); return info.split(": ")[1]; } catch (IOException e) { Log.e(UserLoggerManager.LOGNAME, e.getMessage(), e); } return null; }
String function() { String info; try { info = parseFileLine(ctx.getResources().getString(R.string.CPUINFO_FILE), 1); return info.split(STR)[1]; } catch (IOException e) { Log.e(UserLoggerManager.LOGNAME, e.getMessage(), e); } return null; }
/** * Returns device CPU information. * * @return CPU info */
Returns device CPU information
parseCpuInfo
{ "repo_name": "Morzeux/BiosecLogger", "path": "src/com/morzeux/bioseclogger/logic/HardwareInfo.java", "license": "apache-2.0", "size": 8359 }
[ "android.util.Log", "java.io.IOException" ]
import android.util.Log; import java.io.IOException;
import android.util.*; import java.io.*;
[ "android.util", "java.io" ]
android.util; java.io;
1,094,184
public String getLocalizedName() { return I18n.translateToLocal((this.getUnlocalizedName() + ".name").replaceAll("tile", "item")); }
String function() { return I18n.translateToLocal((this.getUnlocalizedName() + ".name").replaceAll("tile", "item")); }
/** * Gets the localized name of this block. Used for the statistics page. */
Gets the localized name of this block. Used for the statistics page
getLocalizedName
{ "repo_name": "danielyc/test-1.9.4", "path": "build/tmp/recompileMc/sources/net/minecraft/block/BlockDoor.java", "license": "gpl-3.0", "size": 17104 }
[ "net.minecraft.util.text.translation.I18n" ]
import net.minecraft.util.text.translation.I18n;
import net.minecraft.util.text.translation.*;
[ "net.minecraft.util" ]
net.minecraft.util;
801,490
private int deriveSinkParallelism( ParallelismProvider parallelismProvider, int inputParallelism) { final Optional<Integer> parallelismOptional = parallelismProvider.getParallelism(); if (parallelismOptional.isPresent()) { int sinkParallelism = parallelismOptional.get(); ...
int function( ParallelismProvider parallelismProvider, int inputParallelism) { final Optional<Integer> parallelismOptional = parallelismProvider.getParallelism(); if (parallelismOptional.isPresent()) { int sinkParallelism = parallelismOptional.get(); if (sinkParallelism <= 0) { throw new TableException( String.format( ...
/** * Returns the parallelism of sink operator, it assumes the sink runtime provider implements * {@link ParallelismProvider}. It returns parallelism defined in {@link ParallelismProvider} if * the parallelism is provided, otherwise it uses parallelism of input transformation. */
Returns the parallelism of sink operator, it assumes the sink runtime provider implements <code>ParallelismProvider</code>. It returns parallelism defined in <code>ParallelismProvider</code> if the parallelism is provided, otherwise it uses parallelism of input transformation
deriveSinkParallelism
{ "repo_name": "rmetzger/flink", "path": "flink-table/flink-table-planner-blink/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/common/CommonExecSink.java", "license": "apache-2.0", "size": 16056 }
[ "java.util.Optional", "org.apache.flink.table.api.TableException", "org.apache.flink.table.connector.ParallelismProvider" ]
import java.util.Optional; import org.apache.flink.table.api.TableException; import org.apache.flink.table.connector.ParallelismProvider;
import java.util.*; import org.apache.flink.table.api.*; import org.apache.flink.table.connector.*;
[ "java.util", "org.apache.flink" ]
java.util; org.apache.flink;
2,767,377
public void removeActionListener(ActionListener l) { mv.removeActionListener(l); }
void function(ActionListener l) { mv.removeActionListener(l); }
/** * Fires when a change is made to the month view of this component * * @param l listener to remove */
Fires when a change is made to the month view of this component
removeActionListener
{ "repo_name": "skyHALud/codenameone", "path": "CodenameOne/src/com/codename1/ui/Calendar.java", "license": "gpl-2.0", "size": 27145 }
[ "com.codename1.ui.events.ActionListener" ]
import com.codename1.ui.events.ActionListener;
import com.codename1.ui.events.*;
[ "com.codename1.ui" ]
com.codename1.ui;
2,283,535
public void test_getChangesSinceHandlesFirstRun() throws Exception { final int changeListID = starTeam.getChangesSince(ChangeList.UNSAVED_ID); assertTrue(changeListID > 0); }
void function() throws Exception { final int changeListID = starTeam.getChangesSince(ChangeList.UNSAVED_ID); assertTrue(changeListID > 0); }
/** * Tests getting change list * * @throws Exception */
Tests getting change list
test_getChangesSinceHandlesFirstRun
{ "repo_name": "simeshev/parabuild-ci", "path": "test/src/org/parabuild/ci/versioncontrol/SSTestStarTeamSourceControl.java", "license": "lgpl-3.0", "size": 12049 }
[ "org.parabuild.ci.object.ChangeList" ]
import org.parabuild.ci.object.ChangeList;
import org.parabuild.ci.object.*;
[ "org.parabuild.ci" ]
org.parabuild.ci;
629,899
private JoinableResourceBundle buildCompositeResourcebundle(ResourceBundleDefinition definition, List<JoinableResourceBundle> childBundles) { if (LOGGER.isDebugEnabled()) LOGGER.debug("Init composite bundle with id:" + definition.getBundleId()); validateBundleId(definition); InclusionPattern include =...
JoinableResourceBundle function(ResourceBundleDefinition definition, List<JoinableResourceBundle> childBundles) { if (LOGGER.isDebugEnabled()) LOGGER.debug(STR + definition.getBundleId()); validateBundleId(definition); InclusionPattern include = new InclusionPattern(definition.isGlobal(), definition.getInclusionOrder()...
/** * Build a Composite resource bundle using a ResourceBundleDefinition * * @param definition * the bundle definition * @param childBundles * the list of child bundles * @return a Composite resource bundle */
Build a Composite resource bundle using a ResourceBundleDefinition
buildCompositeResourcebundle
{ "repo_name": "davidwebster48/jawr-main-repo", "path": "jawr/jawr-core/src/main/java/net/jawr/web/resource/bundle/factory/BundlesHandlerFactory.java", "license": "apache-2.0", "size": 37490 }
[ "java.util.List", "net.jawr.web.resource.bundle.CompositeResourceBundle", "net.jawr.web.resource.bundle.DebugInclusion", "net.jawr.web.resource.bundle.InclusionPattern", "net.jawr.web.resource.bundle.JoinableResourceBundle", "net.jawr.web.resource.bundle.factory.util.ResourceBundleDefinition" ]
import java.util.List; import net.jawr.web.resource.bundle.CompositeResourceBundle; import net.jawr.web.resource.bundle.DebugInclusion; import net.jawr.web.resource.bundle.InclusionPattern; import net.jawr.web.resource.bundle.JoinableResourceBundle; import net.jawr.web.resource.bundle.factory.util.ResourceBundleDefinit...
import java.util.*; import net.jawr.web.resource.bundle.*; import net.jawr.web.resource.bundle.factory.util.*;
[ "java.util", "net.jawr.web" ]
java.util; net.jawr.web;
1,735,548
protected Document createDocument(TranscoderOutput output) { // Use SVGGraphics2D to generate SVG content Document doc; if (output.getDocument() == null) { DOMImplementation domImpl = SVGDOMImplementation.getDOMImplementation(); doc = domImpl.createDocument(SVG_NAMESPA...
Document function(TranscoderOutput output) { Document doc; if (output.getDocument() == null) { DOMImplementation domImpl = SVGDOMImplementation.getDOMImplementation(); doc = domImpl.createDocument(SVG_NAMESPACE_URI, SVG_SVG_TAG, null); } else { doc = output.getDocument(); } return doc; }
/** Create an empty Document from a TranscoderOutput. * <ul> * <li>If the TranscoderOutput already contains an empty Document : returns this * Document</li> * <li>else create a new empty DOM Document</li> * </ul> */
Create an empty Document from a TranscoderOutput. If the TranscoderOutput already contains an empty Document : returns this Document else create a new empty DOM Document
createDocument
{ "repo_name": "apache/batik", "path": "batik-transcoder/src/main/java/org/apache/batik/transcoder/ToSVGAbstractTranscoder.java", "license": "apache-2.0", "size": 8161 }
[ "org.apache.batik.anim.dom.SVGDOMImplementation", "org.w3c.dom.DOMImplementation", "org.w3c.dom.Document" ]
import org.apache.batik.anim.dom.SVGDOMImplementation; import org.w3c.dom.DOMImplementation; import org.w3c.dom.Document;
import org.apache.batik.anim.dom.*; import org.w3c.dom.*;
[ "org.apache.batik", "org.w3c.dom" ]
org.apache.batik; org.w3c.dom;
479,447
public Date getEndTime() { return endTime; }
Date function() { return endTime; }
/** * Get the time when the build finished. * The build duration can be determined by the difference * between the endTime and the startTime. * * @return the end time */
Get the time when the build finished. The build duration can be determined by the difference between the endTime and the startTime
getEndTime
{ "repo_name": "jdcasey/pnc", "path": "model/src/main/java/org/jboss/pnc/model/BuildRecord.java", "license": "apache-2.0", "size": 33507 }
[ "java.util.Date" ]
import java.util.Date;
import java.util.*;
[ "java.util" ]
java.util;
1,616,318
public static boolean exportDatabase() { String state = Environment.getExternalStorageState(); if (!Environment.MEDIA_MOUNTED.equals(state)) { return false; } else { //We use our own directory for saving our .csv file. int[] currTime = Utils.getCurrentDate(); WeatherStation.exportFileP...
static boolean function() { String state = Environment.getExternalStorageState(); if (!Environment.MEDIA_MOUNTED.equals(state)) { return false; } else { int[] currTime = Utils.getCurrentDate(); WeatherStation.exportFilePath = WeatherStation.path + Integer.toString(currTime[2]) + "-" + Integer.toString(currTime[1]) + "-...
/** * Read all entries from the database and write them in CSV format to the external storage * File is saved in /WeatherStation/MM-dd-WeatherStation.csv * MM = month * dd = today's day * * @return <code>boolean</code> * true if file could be created * false if there was an err...
Read all entries from the database and write them in CSV format to the external storage File is saved in /WeatherStation/MM-dd-WeatherStation.csv MM = month dd = today's day
exportDatabase
{ "repo_name": "beegee-tokyo/WeatherStation", "path": "app/src/main/java/tk/giesecke/weatherstation/WSDatabaseHelper.java", "license": "gpl-2.0", "size": 19246 }
[ "android.database.Cursor", "android.os.Environment", "android.util.Log", "java.io.File", "java.io.FileWriter", "java.io.PrintWriter" ]
import android.database.Cursor; import android.os.Environment; import android.util.Log; import java.io.File; import java.io.FileWriter; import java.io.PrintWriter;
import android.database.*; import android.os.*; import android.util.*; import java.io.*;
[ "android.database", "android.os", "android.util", "java.io" ]
android.database; android.os; android.util; java.io;
297,039
public void skipBits(int numberOfBits) { Assertions.checkState(getPosition() + numberOfBits <= limit); byteOffset += numberOfBits / 8; bitOffset += numberOfBits % 8; if (bitOffset > 7) { byteOffset++; bitOffset -= 8; } }
void function(int numberOfBits) { Assertions.checkState(getPosition() + numberOfBits <= limit); byteOffset += numberOfBits / 8; bitOffset += numberOfBits % 8; if (bitOffset > 7) { byteOffset++; bitOffset -= 8; } }
/** * Skips {@code numberOfBits} bits. * * @param numberOfBits the number of bits to skip. */
Skips numberOfBits bits
skipBits
{ "repo_name": "Lee-Wills/-tv", "path": "mmd/library/src/main/java/com/google/android/exoplayer/extractor/ogg/VorbisBitArray.java", "license": "gpl-3.0", "size": 4098 }
[ "com.google.android.exoplayer.util.Assertions" ]
import com.google.android.exoplayer.util.Assertions;
import com.google.android.exoplayer.util.*;
[ "com.google.android" ]
com.google.android;
2,888,890
// TODO(bazel-team): Allow analysis to return null so the value builder can exit and wait for a // restart deps are not present. private static boolean getWorkspaceStatusValues(Environment env, BuildConfiguration config) throws InterruptedException { env.getValue(WorkspaceStatusValue.SKY_KEY); Map<B...
static boolean function(Environment env, BuildConfiguration config) throws InterruptedException { env.getValue(WorkspaceStatusValue.SKY_KEY); Map<BuildInfoKey, BuildInfoFactory> buildInfoFactories = PrecomputedValue.BUILD_INFO_FACTORIES.get(env); if (buildInfoFactories == null) { return false; } List<SkyKey> depKeys = ...
/** * Because we don't know what build-info artifacts this configured target may request, we * conservatively register a dep on all of them. */
Because we don't know what build-info artifacts this configured target may request, we conservatively register a dep on all of them
getWorkspaceStatusValues
{ "repo_name": "iamthearm/bazel", "path": "src/main/java/com/google/devtools/build/lib/skyframe/SkyframeBuildView.java", "license": "apache-2.0", "size": 28747 }
[ "com.google.common.collect.Lists", "com.google.devtools.build.lib.analysis.buildinfo.BuildInfoFactory", "com.google.devtools.build.lib.analysis.config.BuildConfiguration", "com.google.devtools.build.lib.skyframe.BuildInfoCollectionValue", "com.google.devtools.build.skyframe.SkyFunction", "com.google.devto...
import com.google.common.collect.Lists; import com.google.devtools.build.lib.analysis.buildinfo.BuildInfoFactory; import com.google.devtools.build.lib.analysis.config.BuildConfiguration; import com.google.devtools.build.lib.skyframe.BuildInfoCollectionValue; import com.google.devtools.build.skyframe.SkyFunction; import...
import com.google.common.collect.*; import com.google.devtools.build.lib.analysis.buildinfo.*; import com.google.devtools.build.lib.analysis.config.*; import com.google.devtools.build.lib.skyframe.*; import com.google.devtools.build.skyframe.*; import java.util.*;
[ "com.google.common", "com.google.devtools", "java.util" ]
com.google.common; com.google.devtools; java.util;
572,545
static int hashCodeAsciiSafe(byte[] bytes, int startPos, int length) { int hash = HASH_CODE_ASCII_SEED; final int remainingBytes = length & 7; final int end = startPos + remainingBytes; for (int i = startPos - 8 + length; i >= end; i -= 8) { hash = PlatformDependent0.hash...
static int hashCodeAsciiSafe(byte[] bytes, int startPos, int length) { int hash = HASH_CODE_ASCII_SEED; final int remainingBytes = length & 7; final int end = startPos + remainingBytes; for (int i = startPos - 8 + length; i >= end; i -= 8) { hash = PlatformDependent0.hashCodeAsciiCompute(getLongSafe(bytes, i), hash); }...
/** * Package private for testing purposes only! */
Package private for testing purposes only
hashCodeAsciiSafe
{ "repo_name": "zer0se7en/netty", "path": "common/src/main/java/io/netty/util/internal/PlatformDependent.java", "license": "apache-2.0", "size": 59919 }
[ "io.netty.util.internal.PlatformDependent0" ]
import io.netty.util.internal.PlatformDependent0;
import io.netty.util.internal.*;
[ "io.netty.util" ]
io.netty.util;
429,448
public ByteBuffer[] getBuffers() { return this.buffers; }
ByteBuffer[] function() { return this.buffers; }
/** * Gets the byte buffer array associated with the IO operation. * * @return The buffer array associated with the IO operation. */
Gets the byte buffer array associated with the IO operation
getBuffers
{ "repo_name": "OpenLiberty/open-liberty", "path": "dev/com.ibm.ws.channelfw/src/com/ibm/io/async/AsyncFuture.java", "license": "epl-1.0", "size": 9452 }
[ "java.nio.ByteBuffer" ]
import java.nio.ByteBuffer;
import java.nio.*;
[ "java.nio" ]
java.nio;
2,905,945
public static Number mod(Number left, Number right) { return NumberMath.mod(left, right); }
static Number function(Number left, Number right) { return NumberMath.mod(left, right); }
/** * Performs a division modulus operation. Called by the '%' operator. * * @param left a Number * @param right another Number to mod * @return the modulus result * @since 1.0 */
Performs a division modulus operation. Called by the '%' operator
mod
{ "repo_name": "xien777/yajsw", "path": "yajsw/wrapper/src/main/java/org/codehaus/groovy/runtime/DefaultGroovyMethods.java", "license": "lgpl-2.1", "size": 704150 }
[ "org.codehaus.groovy.runtime.typehandling.NumberMath" ]
import org.codehaus.groovy.runtime.typehandling.NumberMath;
import org.codehaus.groovy.runtime.typehandling.*;
[ "org.codehaus.groovy" ]
org.codehaus.groovy;
2,416,011