method
stringlengths
13
441k
clean_method
stringlengths
7
313k
doc
stringlengths
17
17.3k
comment
stringlengths
3
1.42k
method_name
stringlengths
1
273
extra
dict
imports
list
imports_info
stringlengths
19
34.8k
cluster_imports_info
stringlengths
15
3.66k
libraries
list
libraries_info
stringlengths
6
661
id
int64
0
2.92M
public List<Comment> getComments(Integer repositoryId, String revision, Integer page, Integer perPage) { URLBuilder url = new URLBuilder(host, "/api/" + repositoryId + "/comments.xml") .addFieldValuePair("revision", revision) .addFieldValuePair("page", page) ....
List<Comment> function(Integer repositoryId, String revision, Integer page, Integer perPage) { URLBuilder url = new URLBuilder(host, "/api/" + repositoryId + STR) .addFieldValuePair(STR, revision) .addFieldValuePair("page", page) .addFieldValuePair(STR, perPage); InputStream httpStream = httpConnection.doGet(url.toURL(...
/** * Find all comments for specific changeset * * @param repositoryId * @param revision * @return */
Find all comments for specific changeset
getComments
{ "repo_name": "raupachz/beanstalk4j", "path": "src/main/java/org/beanstalk4j/BeanstalkApi.java", "license": "apache-2.0", "size": 38861 }
[ "java.io.InputStream", "java.util.List", "org.beanstalk4j.http.URLBuilder", "org.beanstalk4j.model.Comment" ]
import java.io.InputStream; import java.util.List; import org.beanstalk4j.http.URLBuilder; import org.beanstalk4j.model.Comment;
import java.io.*; import java.util.*; import org.beanstalk4j.http.*; import org.beanstalk4j.model.*;
[ "java.io", "java.util", "org.beanstalk4j.http", "org.beanstalk4j.model" ]
java.io; java.util; org.beanstalk4j.http; org.beanstalk4j.model;
2,582,932
public static MozuUrl updateChannelGroupUrl(String code, String responseFields) { UrlFormatter formatter = new UrlFormatter("/api/commerce/channelgroups/{code}?responseFields={responseFields}"); formatter.formatUrl("code", code); formatter.formatUrl("responseFields", responseFields); return new MozuUrl(form...
static MozuUrl function(String code, String responseFields) { UrlFormatter formatter = new UrlFormatter(STR); formatter.formatUrl("code", code); formatter.formatUrl(STR, responseFields); return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ; }
/** * Get Resource Url for UpdateChannelGroup * @param code User-defined code that uniqely identifies the channel group. * @param responseFields Use this field to include those fields which are not included by default. * @return String Resource Url */
Get Resource Url for UpdateChannelGroup
updateChannelGroupUrl
{ "repo_name": "bhewett/mozu-java", "path": "mozu-javaasync-core/src/main/java/com/mozu/api/urls/commerce/ChannelGroupUrl.java", "license": "mit", "size": 4466 }
[ "com.mozu.api.MozuUrl", "com.mozu.api.utils.UrlFormatter" ]
import com.mozu.api.MozuUrl; import com.mozu.api.utils.UrlFormatter;
import com.mozu.api.*; import com.mozu.api.utils.*;
[ "com.mozu.api" ]
com.mozu.api;
505,631
//========================================== // Do we have a custom message to display? //========================================== String message = "404 - Page not found"; String customMessage = context.variables() .getAsString(SpincastCons...
String message = STR; String customMessage = context.variables() .getAsString(SpincastConstants.RequestScopedVariables.NOT_FOUND_PUBLIC_MESSAGE); if(!StringUtils.isBlank(customMessage)) { message = customMessage; } context.response().getModel().set(STR, message); List<String> htmlSectionClasses = context.variables().ge...
/** * Not Found (404) handler */
Not Found (404) handler
notFoundHandler
{ "repo_name": "spincast/spincast-framework", "path": "spincast-website/src/main/java/org/spincast/website/controllers/ErrorController.java", "license": "apache-2.0", "size": 3610 }
[ "com.google.inject.Key", "com.google.inject.TypeLiteral", "java.util.ArrayList", "java.util.List", "org.spincast.core.config.SpincastConstants", "org.spincast.shaded.org.apache.commons.lang3.StringUtils", "org.spincast.website.AppConstants" ]
import com.google.inject.Key; import com.google.inject.TypeLiteral; import java.util.ArrayList; import java.util.List; import org.spincast.core.config.SpincastConstants; import org.spincast.shaded.org.apache.commons.lang3.StringUtils; import org.spincast.website.AppConstants;
import com.google.inject.*; import java.util.*; import org.spincast.core.config.*; import org.spincast.shaded.org.apache.commons.lang3.*; import org.spincast.website.*;
[ "com.google.inject", "java.util", "org.spincast.core", "org.spincast.shaded", "org.spincast.website" ]
com.google.inject; java.util; org.spincast.core; org.spincast.shaded; org.spincast.website;
2,869,610
@Override public TeTopologyKey teTopologyKey() { return new TeTopologyKey(providerId(), clientId(), topologyId()); }
TeTopologyKey function() { return new TeTopologyKey(providerId(), clientId(), topologyId()); }
/** * Returns the key of the TE Topology to which this link TP belongs. * * @return the TE topology key */
Returns the key of the TE Topology to which this link TP belongs
teTopologyKey
{ "repo_name": "donNewtonAlpha/onos", "path": "apps/tetopology/api/src/main/java/org/onosproject/tetopology/management/api/link/TeLinkTpGlobalKey.java", "license": "apache-2.0", "size": 4448 }
[ "org.onosproject.tetopology.management.api.TeTopologyKey" ]
import org.onosproject.tetopology.management.api.TeTopologyKey;
import org.onosproject.tetopology.management.api.*;
[ "org.onosproject.tetopology" ]
org.onosproject.tetopology;
219,605
private boolean pvHasSortableColumns(DBSDataTable pDataTable){ UIComponent xParent = DBSFaces.getParentFirstChild(pDataTable, DBSDataTableColumn.class); if (xParent != null) { for (UIComponent xC : xParent.getChildren()){ if (xC instanceof DBSDataTableColumn){ DBSDataTableColumn xDTC = (DBSDataTableC...
boolean function(DBSDataTable pDataTable){ UIComponent xParent = DBSFaces.getParentFirstChild(pDataTable, DBSDataTableColumn.class); if (xParent != null) { for (UIComponent xC : xParent.getChildren()){ if (xC instanceof DBSDataTableColumn){ DBSDataTableColumn xDTC = (DBSDataTableColumn) xC; if (xDTC.getSortable()){ ret...
/** * Retorna se exibe alguma coluna com sort * @param pDataTable * @return */
Retorna se exibe alguma coluna com sort
pvHasSortableColumns
{ "repo_name": "dbsoftcombr/dbsfaces", "path": "src/main/java/br/com/dbsoft/ui/component/datatable/DBSDataTableRenderer.java", "license": "mit", "size": 26074 }
[ "br.com.dbsoft.ui.core.DBSFaces", "javax.faces.component.UIComponent" ]
import br.com.dbsoft.ui.core.DBSFaces; import javax.faces.component.UIComponent;
import br.com.dbsoft.ui.core.*; import javax.faces.component.*;
[ "br.com.dbsoft", "javax.faces" ]
br.com.dbsoft; javax.faces;
2,436,650
public File showFileDialogOutputFile();
File function();
/** * shows the output file dialog * * @return the chosen file */
shows the output file dialog
showFileDialogOutputFile
{ "repo_name": "fhaer/BPMN-XPDL-to-AristaFlow", "path": "src/de/bpmnaftool/view/View.java", "license": "gpl-3.0", "size": 3431 }
[ "java.io.File" ]
import java.io.File;
import java.io.*;
[ "java.io" ]
java.io;
516,404
private static void useSpaceMethods(File f) { System.out.println("getFreeSpace: " + f.getFreeSpace()); System.out.println("getFreeSpace: " + new File(f.getAbsolutePath()).getFreeSpace()); System.out.println("getFreeSpace: " + findRoot(f).getFreeSpace()); System.out.println("getTotalSpace: " + f.ge...
static void function(File f) { System.out.println(STR + f.getFreeSpace()); System.out.println(STR + new File(f.getAbsolutePath()).getFreeSpace()); System.out.println(STR + findRoot(f).getFreeSpace()); System.out.println(STR + f.getTotalSpace()); System.out.println(STR + new File(f.getAbsolutePath()).getTotalSpace()); S...
/** * Collection of space query methods. * * @param f */
Collection of space query methods
useSpaceMethods
{ "repo_name": "antalpeti/Java-Tutorial", "path": "src/com/tutorialspoint/filesandio/FileDemo.java", "license": "mit", "size": 7023 }
[ "java.io.File" ]
import java.io.File;
import java.io.*;
[ "java.io" ]
java.io;
2,373,068
@Then("^I enter \"(.*?)\" to \"(.*?)\"$") public static void iSet(String text, String locator){ sendKeys(text, locator); }
@Then(STR(.*?)\STR(.*?)\"$") static void function(String text, String locator){ sendKeys(text, locator); }
/** * Sets the text of a application element. Use the text parameter to specify the text to set. * * Identify the edit field object using the <i>Object Repository</i> or an XPath expression. * * @param text the text to insert in the edit field * @param locator the object identifier * ...
Sets the text of a application element. Use the text parameter to specify the text to set. Identify the edit field object using the Object Repository or an XPath expression
iSet
{ "repo_name": "Project-Quantum/Quantum", "path": "src/main/java/com/quantum/steps/PerfectoApplicationSteps.java", "license": "mit", "size": 26664 }
[ "com.qmetry.qaf.automation.step.CommonStep" ]
import com.qmetry.qaf.automation.step.CommonStep;
import com.qmetry.qaf.automation.step.*;
[ "com.qmetry.qaf" ]
com.qmetry.qaf;
1,836,316
public static void pop(@NonNull final FragmentManager fm, final boolean isImmediate) { if (isImmediate) { fm.popBackStackImmediate(); } else { fm.popBackStack(); } }
static void function(@NonNull final FragmentManager fm, final boolean isImmediate) { if (isImmediate) { fm.popBackStackImmediate(); } else { fm.popBackStack(); } }
/** * Pop fragment. * * @param fm The manager of fragment. * @param isImmediate True to pop immediately, false otherwise. */
Pop fragment
pop
{ "repo_name": "Blankj/AndroidUtilCode", "path": "lib/utilcode/src/main/java/com/blankj/utilcode/util/FragmentUtils.java", "license": "apache-2.0", "size": 82362 }
[ "androidx.annotation.NonNull", "androidx.fragment.app.FragmentManager" ]
import androidx.annotation.NonNull; import androidx.fragment.app.FragmentManager;
import androidx.annotation.*; import androidx.fragment.app.*;
[ "androidx.annotation", "androidx.fragment" ]
androidx.annotation; androidx.fragment;
2,038,108
public BooleanExpression is(DBInteger column) { return super.is(column); }
BooleanExpression function(DBInteger column) { return super.is(column); }
/** * Create an expression to compare this column to the other column using * EQUALS. * * @param column the value to compare against * <p style="color: #F90;">Support DBvolution at * <a href="http://patreon.com/dbvolution" target=new>Patreon</a></p> * * @return a BooleanExpression */
Create an expression to compare this column to the other column using EQUALS
is
{ "repo_name": "gregorydgraham/DBvolution", "path": "src/main/java/nz/co/gregs/dbvolution/columns/NumberColumn.java", "license": "apache-2.0", "size": 4012 }
[ "nz.co.gregs.dbvolution.datatypes.DBInteger", "nz.co.gregs.dbvolution.expressions.BooleanExpression" ]
import nz.co.gregs.dbvolution.datatypes.DBInteger; import nz.co.gregs.dbvolution.expressions.BooleanExpression;
import nz.co.gregs.dbvolution.datatypes.*; import nz.co.gregs.dbvolution.expressions.*;
[ "nz.co.gregs" ]
nz.co.gregs;
2,736,354
//sets up the targetLine to use for capturing audio DataLine.Info sourceInfo = new DataLine.Info(SourceDataLine.class, format); sourceLine = (SourceDataLine) AudioSystem.getLine(sourceInfo); sourceLine.open(format); }
DataLine.Info sourceInfo = new DataLine.Info(SourceDataLine.class, format); sourceLine = (SourceDataLine) AudioSystem.getLine(sourceInfo); sourceLine.open(format); }
/** * Method to create and open audio recording and playback * DataLines with correct audio format * @throws LineUnavailableException * @see DataLine */
Method to create and open audio recording and playback DataLines with correct audio format
setupAudio
{ "repo_name": "jaGilbertson/PiTechSuppRemote", "path": "RemotePiManager/src/RPI/manager/TechCall.java", "license": "gpl-3.0", "size": 11585 }
[ "javax.sound.sampled.AudioSystem", "javax.sound.sampled.DataLine", "javax.sound.sampled.SourceDataLine" ]
import javax.sound.sampled.AudioSystem; import javax.sound.sampled.DataLine; import javax.sound.sampled.SourceDataLine;
import javax.sound.sampled.*;
[ "javax.sound" ]
javax.sound;
1,115,151
public Identifier getRelatedIdentifier(Contentlet contentlet, String relationshipType, User user, boolean respectFrontendRoles) throws DotDataException, DotSecurityException;
Identifier function(Contentlet contentlet, String relationshipType, User user, boolean respectFrontendRoles) throws DotDataException, DotSecurityException;
/** * Gets a file with a specific relationship type to the passed in contentlet * @param contentlet * @param relationshipType * @param user * @param respectFrontendRoles * @return * @throws DotDataException * @throws DotSecurityException */
Gets a file with a specific relationship type to the passed in contentlet
getRelatedIdentifier
{ "repo_name": "guhb/core", "path": "src/com/dotmarketing/portlets/contentlet/business/ContentletAPI.java", "license": "gpl-3.0", "size": 64730 }
[ "com.dotmarketing.beans.Identifier", "com.dotmarketing.exception.DotDataException", "com.dotmarketing.exception.DotSecurityException", "com.dotmarketing.portlets.contentlet.model.Contentlet", "com.liferay.portal.model.User" ]
import com.dotmarketing.beans.Identifier; import com.dotmarketing.exception.DotDataException; import com.dotmarketing.exception.DotSecurityException; import com.dotmarketing.portlets.contentlet.model.Contentlet; import com.liferay.portal.model.User;
import com.dotmarketing.beans.*; import com.dotmarketing.exception.*; import com.dotmarketing.portlets.contentlet.model.*; import com.liferay.portal.model.*;
[ "com.dotmarketing.beans", "com.dotmarketing.exception", "com.dotmarketing.portlets", "com.liferay.portal" ]
com.dotmarketing.beans; com.dotmarketing.exception; com.dotmarketing.portlets; com.liferay.portal;
290,496
public float predict(Mat samples, Mat results) { return predict_1(nativeObj, samples.nativeObj, results.nativeObj); }
float function(Mat samples, Mat results) { return predict_1(nativeObj, samples.nativeObj, results.nativeObj); }
/** * Predicts responses for input samples and returns a float type. * * @param samples The input data for the prediction algorithm. Matrix [m x n], where each row * contains variables (features) of one object being classified. Should have data type CV_32F. * @param results Pred...
Predicts responses for input samples and returns a float type
predict
{ "repo_name": "donaldmunro/AARemu", "path": "OpenCV/src/main/java/org/opencv/ml/LogisticRegression.java", "license": "apache-2.0", "size": 10983 }
[ "org.opencv.core.Mat" ]
import org.opencv.core.Mat;
import org.opencv.core.*;
[ "org.opencv.core" ]
org.opencv.core;
146,537
private JPanel getTextPanel(String typeName, Undomanager manager) { // Button init JButton addObject = new JButton(new ImageIcon(getClass().getClassLoader().getResource("images/table_relationship.png"))); JButton addCondition = new JButton(new ImageIcon(getClass().getClassLoader().getResource("images/script...
JPanel function(String typeName, Undomanager manager) { JButton addObject = new JButton(new ImageIcon(getClass().getClassLoader().getResource(STR))); JButton addCondition = new JButton(new ImageIcon(getClass().getClassLoader().getResource(STR))); addObject.setToolTipText(Main.myLang.getString(STR)); addCondition.setToo...
/** * Die Methode initialisiert die Text Panel * mit bestimten Text Areas * * Besteht: aus Label, Text Area und Toolbar mit 2 Button "addObject, addCondition" * * @return javax.swing.JPanel */
Die Methode initialisiert die Text Panel mit bestimten Text Areas Besteht: aus Label, Text Area und Toolbar mit 2 Button "addObject, addCondition"
getTextPanel
{ "repo_name": "JabRef/CrossRefX", "path": "src/main/java/gui/EntryPanel.java", "license": "apache-2.0", "size": 32218 }
[ "java.awt.Dimension", "javax.swing.BorderFactory", "javax.swing.BoxLayout", "javax.swing.ImageIcon", "javax.swing.JButton", "javax.swing.JLabel", "javax.swing.JPanel", "javax.swing.JScrollPane", "javax.swing.JToolBar" ]
import java.awt.Dimension; import javax.swing.BorderFactory; import javax.swing.BoxLayout; import javax.swing.ImageIcon; import javax.swing.JButton; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JScrollPane; import javax.swing.JToolBar;
import java.awt.*; import javax.swing.*;
[ "java.awt", "javax.swing" ]
java.awt; javax.swing;
528,941
public static Object[] toObjectArray(Object source) { if (source instanceof Object[]) { return (Object[]) source; } if (source == null) { return new Object[0]; } if (!source.getClass().isArray()) { throw new IllegalArgumentException("Source is not an array: " + source); } int length = Array.ge...
static Object[] function(Object source) { if (source instanceof Object[]) { return (Object[]) source; } if (source == null) { return new Object[0]; } if (!source.getClass().isArray()) { throw new IllegalArgumentException(STR + source); } int length = Array.getLength(source); if (length == 0) { return new Object[0]; } C...
/** * Convert the given array (which may be a primitive array) to an * object array (if necessary of primitive wrapper objects). * <p>A <code>null</code> source value will be converted to an * empty Object array. * * @param source the (potentially primitive) array * @return the corresponding object array ...
Convert the given array (which may be a primitive array) to an object array (if necessary of primitive wrapper objects). A <code>null</code> source value will be converted to an empty Object array
toObjectArray
{ "repo_name": "EldadDor/AnnoRefPlugin", "path": "src/main/java/com/idi/intellij/plugin/query/annoref/util/ObjectUtils.java", "license": "gpl-2.0", "size": 25669 }
[ "java.lang.reflect.Array" ]
import java.lang.reflect.Array;
import java.lang.reflect.*;
[ "java.lang" ]
java.lang;
2,156,454
public String toString() { return traceID; } } final class SocketConnector implements Runnable { // socket on which connection attempt would be made private final Socket socket; // the socketFinder associated with this connector private final SocketFinder socketFinder; // inetSoc...
String function() { return traceID; } } final class SocketConnector implements Runnable { private final Socket socket; private final SocketFinder socketFinder; private final InetSocketAddress inetSocketAddress; private final int timeoutInMilliseconds; private static final Logger logger = Logger.getLogger(STR); private ...
/** * Used fof tracing * * @return traceID string */
Used fof tracing
toString
{ "repo_name": "v-nisidh/mssql-jdbc", "path": "src/main/java/com/microsoft/sqlserver/jdbc/IOBuffer.java", "license": "mit", "size": 321012 }
[ "java.net.InetSocketAddress", "java.net.Socket", "java.util.logging.Logger" ]
import java.net.InetSocketAddress; import java.net.Socket; import java.util.logging.Logger;
import java.net.*; import java.util.logging.*;
[ "java.net", "java.util" ]
java.net; java.util;
1,355,137
AuthenticationBuilder setAttributes(Map<String, Object> attributes);
AuthenticationBuilder setAttributes(Map<String, Object> attributes);
/** * Sets the authentication metadata attributes. * * @param attributes Non-null map of authentication metadata attributes. * @return This builder instance. */
Sets the authentication metadata attributes
setAttributes
{ "repo_name": "creamer/cas", "path": "api/cas-server-core-api-authentication/src/main/java/org/apereo/cas/authentication/AuthenticationBuilder.java", "license": "apache-2.0", "size": 4728 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
2,804,976
private static FlagPolicyWithContext getSetValueSubflagAsPolicy( OptionDescription subflagDesc, List<String> subflagValue, OptionInstanceOrigin subflagOrigin, FlagPolicyWithContext originalPolicy) { // Some sanity checks. OptionDefinition subflag = subflagDesc.getOptionDefinition(); ...
static FlagPolicyWithContext function( OptionDescription subflagDesc, List<String> subflagValue, OptionInstanceOrigin subflagOrigin, FlagPolicyWithContext originalPolicy) { OptionDefinition subflag = subflagDesc.getOptionDefinition(); Verify.verify(originalPolicy.policy.getOperationCase().equals(OperationCase.SET_VALUE...
/** * Expand a SetValue flag policy on a repeatable flag. SetValue operations are the only flag * policies that set the flag, and so interact with repeatable flags, flags that can be set * multiple times, in subtle ways. * * @param subflagDesc, the description of the flag the SetValue'd expansion flag ex...
Expand a SetValue flag policy on a repeatable flag. SetValue operations are the only flag policies that set the flag, and so interact with repeatable flags, flags that can be set multiple times, in subtle ways
getSetValueSubflagAsPolicy
{ "repo_name": "damienmg/bazel", "path": "src/main/java/com/google/devtools/common/options/InvocationPolicyEnforcer.java", "license": "apache-2.0", "size": 36422 }
[ "com.google.common.base.Verify", "com.google.devtools.build.lib.runtime.proto.InvocationPolicyOuterClass", "com.google.devtools.common.options.OptionsParser", "java.util.List" ]
import com.google.common.base.Verify; import com.google.devtools.build.lib.runtime.proto.InvocationPolicyOuterClass; import com.google.devtools.common.options.OptionsParser; import java.util.List;
import com.google.common.base.*; import com.google.devtools.build.lib.runtime.proto.*; import com.google.devtools.common.options.*; import java.util.*;
[ "com.google.common", "com.google.devtools", "java.util" ]
com.google.common; com.google.devtools; java.util;
968,522
@Test public void testCloseWithoutHarvest() { TupleMetadata schema = new SchemaBuilder() .add("a", MinorType.INT) .add("b", MinorType.VARCHAR) .buildSchema(); ResultSetLoaderImpl.ResultSetOptions options = new ResultSetOptionBuilder() .readerSchema(schema) .rowCountLi...
void function() { TupleMetadata schema = new SchemaBuilder() .add("a", MinorType.INT) .add("b", MinorType.VARCHAR) .buildSchema(); ResultSetLoaderImpl.ResultSetOptions options = new ResultSetOptionBuilder() .readerSchema(schema) .rowCountLimit(ValueVector.MAX_ROW_COUNT) .build(); ResultSetLoader rsLoader = new ResultSe...
/** * Test that memory is released if the loader is closed with an active * batch (that is, before the batch is harvested.) */
Test that memory is released if the loader is closed with an active batch (that is, before the batch is harvested.)
testCloseWithoutHarvest
{ "repo_name": "apache/drill", "path": "exec/java-exec/src/test/java/org/apache/drill/exec/physical/resultSet/impl/TestResultSetLoaderProtocol.java", "license": "apache-2.0", "size": 25757 }
[ "org.apache.drill.common.types.TypeProtos", "org.apache.drill.exec.physical.resultSet.ResultSetLoader", "org.apache.drill.exec.physical.resultSet.RowSetLoader", "org.apache.drill.exec.record.metadata.SchemaBuilder", "org.apache.drill.exec.record.metadata.TupleMetadata", "org.apache.drill.exec.vector.Value...
import org.apache.drill.common.types.TypeProtos; import org.apache.drill.exec.physical.resultSet.ResultSetLoader; import org.apache.drill.exec.physical.resultSet.RowSetLoader; import org.apache.drill.exec.record.metadata.SchemaBuilder; import org.apache.drill.exec.record.metadata.TupleMetadata; import org.apache.drill....
import org.apache.drill.common.types.*; import org.apache.drill.exec.physical.*; import org.apache.drill.exec.record.metadata.*; import org.apache.drill.exec.vector.*;
[ "org.apache.drill" ]
org.apache.drill;
648,621
protected static ErrorPage findErrorPage (Context context, Throwable exception) { if (exception == null) return (null); Class clazz = exception.getClass(); String name = clazz.getName(); while (!"java.lang.Object".equals(clazz)) { ErrorPage errorPage ...
static ErrorPage function (Context context, Throwable exception) { if (exception == null) return (null); Class clazz = exception.getClass(); String name = clazz.getName(); while (!STR.equals(clazz)) { ErrorPage errorPage = context.findErrorPage(name); if (errorPage != null) return (errorPage); clazz = clazz.getSupercla...
/** * Find and return the ErrorPage instance for the specified exception's * class, or an ErrorPage instance for the closest superclass for which * there is such a definition. If no associated ErrorPage instance is * found, return <code>null</code>. * * @param context The Context in which...
Find and return the ErrorPage instance for the specified exception's class, or an ErrorPage instance for the closest superclass for which there is such a definition. If no associated ErrorPage instance is found, return <code>null</code>
findErrorPage
{ "repo_name": "devjin24/howtomcatworks", "path": "bookrefer/jakarta-tomcat-5.0.18-src/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/core/StandardHostValve.java", "license": "apache-2.0", "size": 18759 }
[ "org.apache.catalina.Context", "org.apache.catalina.deploy.ErrorPage" ]
import org.apache.catalina.Context; import org.apache.catalina.deploy.ErrorPage;
import org.apache.catalina.*; import org.apache.catalina.deploy.*;
[ "org.apache.catalina" ]
org.apache.catalina;
1,335,762
@Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); switch (requestCode) { case REQ_CODE_SPEECH_INPUT: { if (resultCode == RESULT_OK && null != data) { A...
void function(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); switch (requestCode) { case REQ_CODE_SPEECH_INPUT: { if (resultCode == RESULT_OK && null != data) { ArrayList<String> result = data.getStringArrayListExtra(RecognizerIntent.EXTRA_RESULTS); edtSearch.setT...
/** * Receiving speech input */
Receiving speech input
onActivityResult
{ "repo_name": "mhome527/lvn", "path": "java/teach/vietnam/asia/activity/SearchWordsActivity.java", "license": "apache-2.0", "size": 5986 }
[ "android.content.Intent", "android.speech.RecognizerIntent", "java.util.ArrayList" ]
import android.content.Intent; import android.speech.RecognizerIntent; import java.util.ArrayList;
import android.content.*; import android.speech.*; import java.util.*;
[ "android.content", "android.speech", "java.util" ]
android.content; android.speech; java.util;
831,597
public static ShoppingCartItem makeItem(Integer cartLocation, String productId, BigDecimal selectedAmount, BigDecimal quantity, BigDecimal unitPrice, Timestamp reservStart, BigDecimal reservLength, BigDecimal reservPersons, Timestamp shipBeforeDate, Timestamp shipAfterDate, Map<String, Gener...
static ShoppingCartItem function(Integer cartLocation, String productId, BigDecimal selectedAmount, BigDecimal quantity, BigDecimal unitPrice, Timestamp reservStart, BigDecimal reservLength, BigDecimal reservPersons, Timestamp shipBeforeDate, Timestamp shipAfterDate, Map<String, GenericValue> additionalProductFeatureAn...
/** * Makes a ShoppingCartItem and adds it to the cart. * NOTE: This method will get the product entity and check to make sure it can be purchased. * * @param cartLocation The location to place this item; null will place at the end * @param productId The primary key of the product being added ...
Makes a ShoppingCartItem and adds it to the cart
makeItem
{ "repo_name": "rohankarthik/Ofbiz", "path": "applications/order/src/main/java/org/apache/ofbiz/order/shoppingcart/ShoppingCartItem.java", "license": "apache-2.0", "size": 126382 }
[ "java.math.BigDecimal", "java.sql.Timestamp", "java.util.Map", "org.apache.ofbiz.entity.GenericValue", "org.apache.ofbiz.order.shoppingcart.ShoppingCart", "org.apache.ofbiz.product.config.ProductConfigWrapper", "org.apache.ofbiz.service.LocalDispatcher" ]
import java.math.BigDecimal; import java.sql.Timestamp; import java.util.Map; import org.apache.ofbiz.entity.GenericValue; import org.apache.ofbiz.order.shoppingcart.ShoppingCart; import org.apache.ofbiz.product.config.ProductConfigWrapper; import org.apache.ofbiz.service.LocalDispatcher;
import java.math.*; import java.sql.*; import java.util.*; import org.apache.ofbiz.entity.*; import org.apache.ofbiz.order.shoppingcart.*; import org.apache.ofbiz.product.config.*; import org.apache.ofbiz.service.*;
[ "java.math", "java.sql", "java.util", "org.apache.ofbiz" ]
java.math; java.sql; java.util; org.apache.ofbiz;
1,548,181
public void addParameterValue(int parameterIndex, String value) { if (!parameterValues.isPresent()) { parameterValues = Optional.of(new HashMap<Integer, String>()); } parameterValues.map(p -> p.put(parameterIndex, value)); }
void function(int parameterIndex, String value) { if (!parameterValues.isPresent()) { parameterValues = Optional.of(new HashMap<Integer, String>()); } parameterValues.map(p -> p.put(parameterIndex, value)); }
/** * Adds a parameter value. * * @param parameterIndex * index of the corresponding parameter in the method signature * (first parameter has an index of 1) * @param value * String representation of the parameter value */
Adds a parameter value
addParameterValue
{ "repo_name": "diagnoseIT/CTA", "path": "cta/cta.default.impl/src/main/java/rocks/cta/dflt/impl/core/callables/MethodInvocationImpl.java", "license": "agpl-3.0", "size": 6937 }
[ "java.util.HashMap", "java.util.Optional" ]
import java.util.HashMap; import java.util.Optional;
import java.util.*;
[ "java.util" ]
java.util;
663,734
public MenuManager getMenuManager() { return this.menuManager; }
MenuManager function() { return this.menuManager; }
/** * Gets the {@link com.aeonicdev.xephyr.bukkit.menu.MenuManager} that this bootstrapper uses. * * @return The MenuManager instance. */
Gets the <code>com.aeonicdev.xephyr.bukkit.menu.MenuManager</code> that this bootstrapper uses
getMenuManager
{ "repo_name": "AeonicDev/Xephyr", "path": "src/main/java/com/aeonicdev/xephyr/bukkit/plugin/PluginBootstrapper.java", "license": "bsd-3-clause", "size": 3175 }
[ "com.aeonicdev.xephyr.bukkit.menu.MenuManager" ]
import com.aeonicdev.xephyr.bukkit.menu.MenuManager;
import com.aeonicdev.xephyr.bukkit.menu.*;
[ "com.aeonicdev.xephyr" ]
com.aeonicdev.xephyr;
2,260,216
@PreAuthorize("hasPermission(#pageId, 'org.apache.rave.model.Page', 'read') and " + "hasPermission(#moveAfterPageId, 'org.apache.rave.model.Page', 'read')") Page movePage(String pageId, String moveAfterPageId);
@PreAuthorize(STR + STR) Page movePage(String pageId, String moveAfterPageId);
/** * Moves a page to be rendered after another page in order for a user * * @param pageId the pageId of the page to move * @param moveAfterPageId the pageId of the page you want to move after or * -1 if you want this to be the first page * @return the...
Moves a page to be rendered after another page in order for a user
movePage
{ "repo_name": "svn2github/rave", "path": "rave-components/rave-core/src/main/java/org/apache/rave/portal/service/PageService.java", "license": "apache-2.0", "size": 15272 }
[ "org.apache.rave.model.Page", "org.springframework.security.access.prepost.PreAuthorize" ]
import org.apache.rave.model.Page; import org.springframework.security.access.prepost.PreAuthorize;
import org.apache.rave.model.*; import org.springframework.security.access.prepost.*;
[ "org.apache.rave", "org.springframework.security" ]
org.apache.rave; org.springframework.security;
759,460
private final void removeAllChannels() { synchronized (_channels) { _channels = new Hashtable(); } }
final void function() { synchronized (_channels) { _channels = new Hashtable(); } }
/** * Removes all channels from our memory of users. */
Removes all channels from our memory of users
removeAllChannels
{ "repo_name": "logscl/pircbot", "path": "src/main/java/org/jibble/pircbot/PircBot.java", "license": "gpl-2.0", "size": 120418 }
[ "java.util.Hashtable" ]
import java.util.Hashtable;
import java.util.*;
[ "java.util" ]
java.util;
2,256,494
void afterCommit(CommitContext context, Set<Entity> result); }
void afterCommit(CommitContext context, Set<Entity> result); }
/** * Called after a successful commit to the middleware. * * @param context commit context * @param result set of committed entities returning from the middleware service */
Called after a successful commit to the middleware
afterCommit
{ "repo_name": "cuba-platform/cuba", "path": "modules/gui/src/com/haulmont/cuba/gui/data/DsContext.java", "license": "apache-2.0", "size": 7593 }
[ "com.haulmont.cuba.core.entity.Entity", "com.haulmont.cuba.core.global.CommitContext", "java.util.Set" ]
import com.haulmont.cuba.core.entity.Entity; import com.haulmont.cuba.core.global.CommitContext; import java.util.Set;
import com.haulmont.cuba.core.entity.*; import com.haulmont.cuba.core.global.*; import java.util.*;
[ "com.haulmont.cuba", "java.util" ]
com.haulmont.cuba; java.util;
209,340
this.runtimeContextFactory = Objects.requireNonNull(runtimeContextFactory); return this; }
this.runtimeContextFactory = Objects.requireNonNull(runtimeContextFactory); return this; }
/** * Sets the runtime-context provider of this builder. * * <p>By default, a newly created {@link DSLRuntimeContextFactory} will be used. * * @param runtimeContextFactory runtime-context provider * @return this builder */
Sets the runtime-context provider of this builder. By default, a newly created <code>DSLRuntimeContextFactory</code> will be used
setRuntimeContextFactory
{ "repo_name": "fschopp/cloudkeeper", "path": "cloudkeeper-core/cloudkeeper-basic/src/main/java/xyz/cloudkeeper/simple/SimpleInstanceProvider.java", "license": "apache-2.0", "size": 2640 }
[ "java.util.Objects" ]
import java.util.Objects;
import java.util.*;
[ "java.util" ]
java.util;
1,552,939
public void writeDataMat(String filename) throws IOException { int offset = 0; if(points.length == 123) { offset = 1; } (new MatFile(filename)).write(points, offset); }
void function(String filename) throws IOException { int offset = 0; if(points.length == 123) { offset = 1; } (new MatFile(filename)).write(points, offset); }
/** * writeDataMat - creates a MATLAB file with the data contained in this model * * @param filename the name of the file to write to */
writeDataMat - creates a MATLAB file with the data contained in this model
writeDataMat
{ "repo_name": "RaineForest/ECG-Viewer", "path": "ECGModel.java", "license": "gpl-2.0", "size": 23970 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
724,280
public NamedOperator getContainerNamedOperator(){ return item.getContainerNamedOperator(); }
NamedOperator function(){ return item.getContainerNamedOperator(); }
/** * Return the encapsulate Low Level API object. */
Return the encapsulate Low Level API object
getContainerNamedOperator
{ "repo_name": "lhillah/pnmlframework", "path": "pnmlFw-HLPN/src/fr/lip6/move/pnml/hlpn/strings/hlapi/GreaterThanHLAPI.java", "license": "epl-1.0", "size": 108533 }
[ "fr.lip6.move.pnml.hlpn.terms.NamedOperator" ]
import fr.lip6.move.pnml.hlpn.terms.NamedOperator;
import fr.lip6.move.pnml.hlpn.terms.*;
[ "fr.lip6.move" ]
fr.lip6.move;
1,394,538
public void endElement(String name) throws org.xml.sax.SAXException { endElement(null, null, name); }
void function(String name) throws org.xml.sax.SAXException { endElement(null, null, name); }
/** * Receive notification of the end of an element. * @param name The element type name * @throws org.xml.sax.SAXException Any SAX exception, possibly * wrapping another exception. */
Receive notification of the end of an element
endElement
{ "repo_name": "kcsl/immutability-benchmark", "path": "benchmark-applications/reiminfer-oopsla-2012/source/Xalan/src/org/apache/xml/serializer/ToStream.java", "license": "mit", "size": 128146 }
[ "org.xml.sax.SAXException" ]
import org.xml.sax.SAXException;
import org.xml.sax.*;
[ "org.xml.sax" ]
org.xml.sax;
1,921,695
private void startLeaving() { Gossiper.instance.addLocalApplicationState(ApplicationState.STATUS, valueFactory.leaving(getLocalTokens())); tokenMetadata.addLeavingEndpoint(FBUtilities.getBroadcastAddress()); PendingRangeCalculatorService.instance.update(); }
void function() { Gossiper.instance.addLocalApplicationState(ApplicationState.STATUS, valueFactory.leaving(getLocalTokens())); tokenMetadata.addLeavingEndpoint(FBUtilities.getBroadcastAddress()); PendingRangeCalculatorService.instance.update(); }
/** * Broadcast leaving status and update local tokenMetadata accordingly */
Broadcast leaving status and update local tokenMetadata accordingly
startLeaving
{ "repo_name": "guanxi55nba/key-value-store", "path": "src/java/org/apache/cassandra/service/StorageService.java", "license": "apache-2.0", "size": 171991 }
[ "org.apache.cassandra.gms.ApplicationState", "org.apache.cassandra.gms.Gossiper", "org.apache.cassandra.utils.FBUtilities" ]
import org.apache.cassandra.gms.ApplicationState; import org.apache.cassandra.gms.Gossiper; import org.apache.cassandra.utils.FBUtilities;
import org.apache.cassandra.gms.*; import org.apache.cassandra.utils.*;
[ "org.apache.cassandra" ]
org.apache.cassandra;
29,149
Method getMethod();
Method getMethod();
/** * Gets the method being called. * * <p>This method is a frienly implementation of the {@link * Joinpoint#getStaticPart()} method (same result). * * @return the method being called. */
Gets the method being called. This method is a frienly implementation of the <code>Joinpoint#getStaticPart()</code> method (same result)
getMethod
{ "repo_name": "PinaeOS/simba", "path": "src/main/java/org/aopalliance/intercept/MethodInvocation.java", "license": "apache-2.0", "size": 629 }
[ "java.lang.reflect.Method" ]
import java.lang.reflect.Method;
import java.lang.reflect.*;
[ "java.lang" ]
java.lang;
2,199,530
@Override public boolean rowInserted() throws SQLException { try { debugCodeCall("rowInserted"); return false; } catch (Exception e) { throw logAndConvert(e); } }
boolean function() throws SQLException { try { debugCodeCall(STR); return false; } catch (Exception e) { throw logAndConvert(e); } }
/** * Detects if the row was inserted. * * @return false because this driver does not detect this */
Detects if the row was inserted
rowInserted
{ "repo_name": "wizardofos/Protozoo", "path": "extra/h2/src/main/java/org/h2/jdbc/JdbcResultSet.java", "license": "mit", "size": 120208 }
[ "java.sql.SQLException" ]
import java.sql.SQLException;
import java.sql.*;
[ "java.sql" ]
java.sql;
1,839,269
private String[] halfMatchI(String longtext, String shorttext, int i) { // Start with a 1/4 length substring at position i as a seed. String seed = longtext.substring(i, i + longtext.length() / 4); int j = -1; String best_common = ""; String best_longtext_a = "", best_longtex...
String[] function(String longtext, String shorttext, int i) { String seed = longtext.substring(i, i + longtext.length() / 4); int j = -1; String best_common = STRSTRSTRSTR"; while ((j = shorttext.indexOf(seed, j + 1)) != -1) { int prefixLength = commonPrefix(longtext.substring(i), shorttext.substring(j)); int suffixLen...
/** * Does a substring of shorttext exist within longtext such that the * substring is at least half the length of longtext? * @param longtext Longer string. * @param shorttext Shorter string. * @param i Start index of quarter length substring within longtext. * @return Five element String...
Does a substring of shorttext exist within longtext such that the substring is at least half the length of longtext
halfMatchI
{ "repo_name": "morimekta/android-util", "path": "diff-util/src/main/java/net/morimekta/diff/DiffBase.java", "license": "apache-2.0", "size": 58172 }
[ "net.morimekta.util.Strings" ]
import net.morimekta.util.Strings;
import net.morimekta.util.*;
[ "net.morimekta.util" ]
net.morimekta.util;
200,650
public Collection<String> getLanguages() { return languages; }
Collection<String> function() { return languages; }
/** * Returns a {@link Collection} of identified languages in the analyzed * content * * @return */
Returns a <code>Collection</code> of identified languages in the analyzed content
getLanguages
{ "repo_name": "zaizi/apache-stanbol-client", "path": "src/main/java/org/apache/stanbol/client/enhancer/model/EnhancementStructure.java", "license": "apache-2.0", "size": 19038 }
[ "java.util.Collection" ]
import java.util.Collection;
import java.util.*;
[ "java.util" ]
java.util;
1,324,306
protected void hookLabelProvider() { final StructuredViewer viewer = getViewer(); // We use this special class so we can detect if the label provider is already hooked up. class DecoratingLabelProvider extends DelegatingStyledCellLabelProvider.FontAndColorProvider { public DecoratingLabelProv...
void function() { final StructuredViewer viewer = getViewer(); class DecoratingLabelProvider extends DelegatingStyledCellLabelProvider.FontAndColorProvider { public DecoratingLabelProvider(IStyledLabelProvider styledLabelProvider) { super(styledLabelProvider); } } final ILabelProvider labelProvider = (ILabelProvider)vi...
/** * This sets up a special label provider in the viewer to be able to highlight the scope and show the selected match. */
This sets up a special label provider in the viewer to be able to highlight the scope and show the selected match
hookLabelProvider
{ "repo_name": "peterkir/org.eclipse.oomph", "path": "plugins/org.eclipse.oomph.ui/src/org/eclipse/oomph/internal/ui/FindAndReplaceTarget.java", "license": "epl-1.0", "size": 71440 }
[ "org.eclipse.emf.common.ui.viewer.IStyledLabelDecorator", "org.eclipse.emf.edit.ui.provider.DecoratingColumLabelProvider", "org.eclipse.emf.edit.ui.provider.DelegatingStyledCellLabelProvider", "org.eclipse.jface.viewers.DelegatingStyledCellLabelProvider", "org.eclipse.jface.viewers.ILabelProvider", "org.e...
import org.eclipse.emf.common.ui.viewer.IStyledLabelDecorator; import org.eclipse.emf.edit.ui.provider.DecoratingColumLabelProvider; import org.eclipse.emf.edit.ui.provider.DelegatingStyledCellLabelProvider; import org.eclipse.jface.viewers.DelegatingStyledCellLabelProvider; import org.eclipse.jface.viewers.ILabelProvi...
import org.eclipse.emf.common.ui.viewer.*; import org.eclipse.emf.edit.ui.provider.*; import org.eclipse.jface.viewers.*; import org.eclipse.swt.graphics.*;
[ "org.eclipse.emf", "org.eclipse.jface", "org.eclipse.swt" ]
org.eclipse.emf; org.eclipse.jface; org.eclipse.swt;
425,747
@Optional @Input public String getDsl() { return isNullOrEmpty(dsl) ? BuildInitDsl.GROOVY.getId() : dsl; }
String function() { return isNullOrEmpty(dsl) ? BuildInitDsl.GROOVY.getId() : dsl; }
/** * The desired DSL of build scripts to create, defaults to 'groovy'. * * This property can be set via command-line option '--dsl'. * * @since 4.5 */
The desired DSL of build scripts to create, defaults to 'groovy'. This property can be set via command-line option '--dsl'
getDsl
{ "repo_name": "gradle/gradle", "path": "subprojects/build-init/src/main/java/org/gradle/buildinit/tasks/InitBuild.java", "license": "apache-2.0", "size": 15248 }
[ "com.google.common.base.Strings", "org.gradle.buildinit.plugins.internal.modifiers.BuildInitDsl" ]
import com.google.common.base.Strings; import org.gradle.buildinit.plugins.internal.modifiers.BuildInitDsl;
import com.google.common.base.*; import org.gradle.buildinit.plugins.internal.modifiers.*;
[ "com.google.common", "org.gradle.buildinit" ]
com.google.common; org.gradle.buildinit;
1,418,639
private SearchResult runSearch(QueryContext context_, SearchParams params_) throws ParseException, IOException { _log.info("Running text query..."); _log.finer(params_.toString()); Date start = new Date(); final Filter filter = getFilterForSearch(params_); TopDocs docs; if (para...
SearchResult function(QueryContext context_, SearchParams params_) throws ParseException, IOException { _log.info(STR); _log.finer(params_.toString()); Date start = new Date(); final Filter filter = getFilterForSearch(params_); TopDocs docs; if (params_.isSetRange()) { docs = rangedSearch(context_.get(), filter, (int) ...
/** * Does a full text search. * * @param context_ query context. * @param params_ search parameters. * @return search query result. * @throws ParseException * @throws IOException */
Does a full text search
runSearch
{ "repo_name": "bruntib/CodeCompass", "path": "plugins/search/service/search-java/src/cc/search/service/app/service/SearchHandler.java", "license": "gpl-3.0", "size": 7786 }
[ "cc.search.analysis.AdvancedTagQueryParser", "cc.search.analysis.QueryAnalyzer", "cc.search.common.config.CommonOptions", "cc.search.match.QueryContext", "cc.search.suggestion.SuggestionHandler", "cc.service.search.SearchParams", "cc.service.search.SearchResult", "cc.service.search.SearchResultEntry",...
import cc.search.analysis.AdvancedTagQueryParser; import cc.search.analysis.QueryAnalyzer; import cc.search.common.config.CommonOptions; import cc.search.match.QueryContext; import cc.search.suggestion.SuggestionHandler; import cc.service.search.SearchParams; import cc.service.search.SearchResult; import cc.service.sea...
import cc.search.analysis.*; import cc.search.common.config.*; import cc.search.match.*; import cc.search.suggestion.*; import cc.service.search.*; import java.io.*; import java.util.*; import java.util.logging.*; import org.apache.lucene.analysis.*; import org.apache.lucene.queryparser.classic.*; import org.apache.luc...
[ "cc.search.analysis", "cc.search.common", "cc.search.match", "cc.search.suggestion", "cc.service.search", "java.io", "java.util", "org.apache.lucene" ]
cc.search.analysis; cc.search.common; cc.search.match; cc.search.suggestion; cc.service.search; java.io; java.util; org.apache.lucene;
2,227,425
public void setAutoSwapSlotName(final String autoSwapSlotNameValue) { this.autoSwapSlotName = autoSwapSlotNameValue; } private ArrayList<ConnectionStringInfo> connectionStrings;
void function(final String autoSwapSlotNameValue) { this.autoSwapSlotName = autoSwapSlotNameValue; } private ArrayList<ConnectionStringInfo> connectionStrings;
/** * Optional. Sets the slot name to swap with after successful deployment. * @param autoSwapSlotNameValue The AutoSwapSlotName value. */
Optional. Sets the slot name to swap with after successful deployment
setAutoSwapSlotName
{ "repo_name": "southworkscom/azure-sdk-for-java", "path": "resource-management/azure-mgmt-websites/src/main/java/com/microsoft/azure/management/websites/models/WebSiteUpdateConfigurationDetails.java", "license": "apache-2.0", "size": 19422 }
[ "java.util.ArrayList" ]
import java.util.ArrayList;
import java.util.*;
[ "java.util" ]
java.util;
847,788
public BaseDiskDao getBaseDiskDao() { return getDAO(BaseDiskDao.class); }
BaseDiskDao function() { return getDAO(BaseDiskDao.class); }
/** * Returns the singleton instance of {@link BaseDiskDao}. * * @return the dao */
Returns the singleton instance of <code>BaseDiskDao</code>
getBaseDiskDao
{ "repo_name": "derekhiggins/ovirt-engine", "path": "backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dal/dbbroker/DbFacade.java", "license": "apache-2.0", "size": 28652 }
[ "org.ovirt.engine.core.dao.BaseDiskDao" ]
import org.ovirt.engine.core.dao.BaseDiskDao;
import org.ovirt.engine.core.dao.*;
[ "org.ovirt.engine" ]
org.ovirt.engine;
2,636,316
int open(String path, int flags, int mode) throws LastErrorException;
int open(String path, int flags, int mode) throws LastErrorException;
/** * Try to open (or create) a file from the specified path. * @param path Path to try to open. * @param flags Open mode; typically O_RDONLY/O_WRONLY/O_RDWR combined with other modifiers (see POSIX). * @param mode Permissions to be set on the file if it is going to be created (O_CREAT). * @ret...
Try to open (or create) a file from the specified path
open
{ "repo_name": "ev3dev-lang-java/ev3dev-lang-java", "path": "src/main/java/ev3dev/utils/io/ILibc.java", "license": "mit", "size": 6778 }
[ "com.sun.jna.LastErrorException" ]
import com.sun.jna.LastErrorException;
import com.sun.jna.*;
[ "com.sun.jna" ]
com.sun.jna;
359,411
public MarshalledObject<?> getData() { return data; }
MarshalledObject<?> function() { return data; }
/** * Returns the group's initialization data. * @return the group's initialization data * @since 1.2 */
Returns the group's initialization data
getData
{ "repo_name": "jgaltidor/VarJ", "path": "analyzed_libs/jdk1.6.0_06_src/java/rmi/activation/ActivationGroupDesc.java", "license": "mit", "size": 10424 }
[ "java.rmi.MarshalledObject" ]
import java.rmi.MarshalledObject;
import java.rmi.*;
[ "java.rmi" ]
java.rmi;
393,236
public void stopReplicationSlave() throws SQLException { if (shutdownInitiated) { // The boot thread has failed or stopReplicationSlave has // already been called. There is nothing more to do to // stop slave replication mode. return; } ...
void function() throws SQLException { if (shutdownInitiated) { return; } if (!inReplicationSlaveMode) { StandardException se = StandardException. newException(SQLState.REPLICATION_NOT_IN_SLAVE_MODE); throw PublicAPI.wrapStandardException(se); } try { slaveFac.stopSlave(false); } catch (StandardException se) { throw Pub...
/** * Stop replication slave mode if replication slave mode is active and * the network connection with the master is down * * @exception SQLException Thrown on error, if not in replication * slave mode or if the network connection with the master is not down */
Stop replication slave mode if replication slave mode is active and the network connection with the master is down
stopReplicationSlave
{ "repo_name": "SnappyDataInc/snappy-store", "path": "gemfirexd/core/src/main/java/com/pivotal/gemfirexd/internal/impl/db/SlaveDatabase.java", "license": "apache-2.0", "size": 17041 }
[ "com.pivotal.gemfirexd.internal.iapi.error.PublicAPI", "com.pivotal.gemfirexd.internal.iapi.error.StandardException", "com.pivotal.gemfirexd.internal.iapi.reference.SQLState", "java.sql.SQLException" ]
import com.pivotal.gemfirexd.internal.iapi.error.PublicAPI; import com.pivotal.gemfirexd.internal.iapi.error.StandardException; import com.pivotal.gemfirexd.internal.iapi.reference.SQLState; import java.sql.SQLException;
import com.pivotal.gemfirexd.internal.iapi.error.*; import com.pivotal.gemfirexd.internal.iapi.reference.*; import java.sql.*;
[ "com.pivotal.gemfirexd", "java.sql" ]
com.pivotal.gemfirexd; java.sql;
487,775
public HttpResponse getStatementForHttpResponse( String accessToken, String xeroTenantId, UUID statementId) throws IOException { // verify the required parameter 'xeroTenantId' is set if (xeroTenantId == null) { throw new IllegalArgumentException( "Missing the required parameter 'xeroTen...
HttpResponse function( String accessToken, String xeroTenantId, UUID statementId) throws IOException { if (xeroTenantId == null) { throw new IllegalArgumentException( STR); } if (statementId == null) { throw new IllegalArgumentException( STR); } if (accessToken == null) { throw new IllegalArgumentException( STR); } Htt...
/** * Retrieve single statement based on unique id provided By passing in a statement id, you can * search for matching statements * * <p><b>200</b> - search results matching id for single statement * * <p><b>404</b> - Statement not found * * @param xeroTenantId Xero identifier for Tenant * @...
Retrieve single statement based on unique id provided By passing in a statement id, you can search for matching statements 200 - search results matching id for single statement 404 - Statement not found
getStatementForHttpResponse
{ "repo_name": "XeroAPI/Xero-Java", "path": "src/main/java/com/xero/api/client/BankFeedsApi.java", "license": "mit", "size": 35862 }
[ "com.google.api.client.auth.oauth2.BearerToken", "com.google.api.client.auth.oauth2.Credential", "com.google.api.client.http.GenericUrl", "com.google.api.client.http.HttpContent", "com.google.api.client.http.HttpHeaders", "com.google.api.client.http.HttpMethods", "com.google.api.client.http.HttpRequestF...
import com.google.api.client.auth.oauth2.BearerToken; import com.google.api.client.auth.oauth2.Credential; import com.google.api.client.http.GenericUrl; import com.google.api.client.http.HttpContent; import com.google.api.client.http.HttpHeaders; import com.google.api.client.http.HttpMethods; import com.google.api.clie...
import com.google.api.client.auth.oauth2.*; import com.google.api.client.http.*; import java.io.*; import java.util.*; import javax.ws.rs.core.*;
[ "com.google.api", "java.io", "java.util", "javax.ws" ]
com.google.api; java.io; java.util; javax.ws;
1,159,569
@Override public WatchService newWatchService() throws IOException { throw new UnsupportedOperationException(); }
WatchService function() throws IOException { throw new UnsupportedOperationException(); }
/** * Unsupported, this wrapper does not provide a watch service yet. */
Unsupported, this wrapper does not provide a watch service yet
newWatchService
{ "repo_name": "apache/sis", "path": "cloud/sis-cloud-S3/src/main/java/org/apache/sis/cloud/aws/s3/ClientFileSystem.java", "license": "apache-2.0", "size": 8510 }
[ "java.io.IOException", "java.nio.file.WatchService" ]
import java.io.IOException; import java.nio.file.WatchService;
import java.io.*; import java.nio.file.*;
[ "java.io", "java.nio" ]
java.io; java.nio;
1,391,334
public static <T> T first(T[] self) { if (self.length == 0) { throw new NoSuchElementException("Cannot access first() element from an empty List"); } return self[0]; }
static <T> T function(T[] self) { if (self.length == 0) { throw new NoSuchElementException(STR); } return self[0]; }
/** * Returns the first item from the Object array. * <pre class="groovyTestCase">def array = [3, 4, 2].toArray() * assert array.first() == 3</pre> * * @param self an Object array * @return the first item from the Object array * @throws NoSuchElementException if the array is empty and...
Returns the first item from the Object array. def array = [3, 4, 2].toArray() assert array.first() == 3</code>
first
{ "repo_name": "xien777/yajsw", "path": "yajsw/wrapper/src/main/java/org/codehaus/groovy/runtime/DefaultGroovyMethods.java", "license": "lgpl-2.1", "size": 704150 }
[ "java.util.NoSuchElementException" ]
import java.util.NoSuchElementException;
import java.util.*;
[ "java.util" ]
java.util;
2,415,840
@Override public int read() throws IOException { return sourceStream.read(); }
int function() throws IOException { return sourceStream.read(); }
/** Read a byte. */
Read a byte
read
{ "repo_name": "buddhikaDilhan/GSoC_buddhika", "path": "framework/core/src/main/java/org/apache/manifoldcf/core/common/DeflateInputStream.java", "license": "apache-2.0", "size": 5858 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
1,437,549
@Test(timeout = 20000) public void testRaceBetweenReplicaRecoveryAndFinalizeBlock() throws Exception { tearDown();// Stop the Mocked DN started in startup() Configuration conf = new HdfsConfiguration(); conf.set(DFSConfigKeys.DFS_DATANODE_XCEIVER_STOP_TIMEOUT_MILLIS_KEY, "1000"); MiniDFSCluster clu...
@Test(timeout = 20000) void function() throws Exception { tearDown(); Configuration conf = new HdfsConfiguration(); conf.set(DFSConfigKeys.DFS_DATANODE_XCEIVER_STOP_TIMEOUT_MILLIS_KEY, "1000"); MiniDFSCluster cluster = new MiniDFSCluster.Builder(conf) .numDataNodes(1).build(); try { cluster.waitClusterUp(); Distributed...
/** * Test to verify the race between finalizeBlock and Lease recovery * * @throws Exception */
Test to verify the race between finalizeBlock and Lease recovery
testRaceBetweenReplicaRecoveryAndFinalizeBlock
{ "repo_name": "oza/hadoop", "path": "hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/TestBlockRecovery.java", "license": "apache-2.0", "size": 24952 }
[ "java.util.List", "org.apache.hadoop.conf.Configuration", "org.apache.hadoop.fs.FSDataOutputStream", "org.apache.hadoop.fs.Path", "org.apache.hadoop.hdfs.DFSConfigKeys", "org.apache.hadoop.hdfs.DFSTestUtil", "org.apache.hadoop.hdfs.DistributedFileSystem", "org.apache.hadoop.hdfs.HdfsConfiguration", ...
import java.util.List; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.FSDataOutputStream; import org.apache.hadoop.fs.Path; import org.apache.hadoop.hdfs.DFSConfigKeys; import org.apache.hadoop.hdfs.DFSTestUtil; import org.apache.hadoop.hdfs.DistributedFileSystem; import org.apache.hadoop.hdfs...
import java.util.*; import org.apache.hadoop.conf.*; import org.apache.hadoop.fs.*; import org.apache.hadoop.hdfs.*; import org.apache.hadoop.hdfs.protocol.*; import org.junit.*;
[ "java.util", "org.apache.hadoop", "org.junit" ]
java.util; org.apache.hadoop; org.junit;
681,340
@SubscribeEvent public void onSignEdit(SignEditEvent e) { if (APIRegistry.scripts.runEventScripts(signeditKey, e.editor, new SignInfo(e.editor.dimension, e.pos, e.text, e))) { e.setCanceled(true); } if (!PermissionAPI.hasPermission(e.editor, COLORIZE_PERM)) ...
void function(SignEditEvent e) { if (APIRegistry.scripts.runEventScripts(signeditKey, e.editor, new SignInfo(e.editor.dimension, e.pos, e.text, e))) { e.setCanceled(true); } if (!PermissionAPI.hasPermission(e.editor, COLORIZE_PERM)) { return; } else { for (int i = 0; i < e.text.length; i++) { if (e.text[i].contains("&"...
/** * works the same as the old /colorize command * * @param e */
works the same as the old /colorize command
onSignEdit
{ "repo_name": "ForgeEssentials/ForgeEssentials", "path": "src/main/java/com/forgeessentials/signtools/SignToolsModule.java", "license": "gpl-3.0", "size": 6745 }
[ "com.forgeessentials.api.APIRegistry", "com.forgeessentials.util.output.ChatOutputHandler", "net.minecraft.util.text.TextComponentString", "net.minecraftforge.fe.event.world.SignEditEvent", "net.minecraftforge.server.permission.PermissionAPI" ]
import com.forgeessentials.api.APIRegistry; import com.forgeessentials.util.output.ChatOutputHandler; import net.minecraft.util.text.TextComponentString; import net.minecraftforge.fe.event.world.SignEditEvent; import net.minecraftforge.server.permission.PermissionAPI;
import com.forgeessentials.api.*; import com.forgeessentials.util.output.*; import net.minecraft.util.text.*; import net.minecraftforge.fe.event.world.*; import net.minecraftforge.server.permission.*;
[ "com.forgeessentials.api", "com.forgeessentials.util", "net.minecraft.util", "net.minecraftforge.fe", "net.minecraftforge.server" ]
com.forgeessentials.api; com.forgeessentials.util; net.minecraft.util; net.minecraftforge.fe; net.minecraftforge.server;
920,413
@Override public void notifyObservers(final Object arg) { Object[] arrLocal; if (!changed) { return; } synchronized (this) { arrLocal = obs.toArray(); } changed = false; for (int i = arrLocal.length - 1; i >= 0; i--) { ((Observer) arrLocal[i]).update((Observable) this, arg); } }
void function(final Object arg) { Object[] arrLocal; if (!changed) { return; } synchronized (this) { arrLocal = obs.toArray(); } changed = false; for (int i = arrLocal.length - 1; i >= 0; i--) { ((Observer) arrLocal[i]).update((Observable) this, arg); } }
/** * Notifies all observers. * * @see com.funkydonkies.interfaces.Observable#notifyObservers(java.lang.Object) * @param arg * the object */
Notifies all observers
notifyObservers
{ "repo_name": "Denpeer/ContextProject", "path": "src/main/java/com/funkydonkies/gamestates/DifficultyState.java", "license": "gpl-2.0", "size": 6968 }
[ "com.funkydonkies.interfaces.Observable", "com.funkydonkies.interfaces.Observer" ]
import com.funkydonkies.interfaces.Observable; import com.funkydonkies.interfaces.Observer;
import com.funkydonkies.interfaces.*;
[ "com.funkydonkies.interfaces" ]
com.funkydonkies.interfaces;
430,381
public void setAfpSet(List<AFP> afpSet) { this.afpSet = afpSet; }
void function(List<AFP> afpSet) { this.afpSet = afpSet; }
/** * Set the set of AFPs for this alignment. * An AFP is a local ungapped alignment between the two peptides. * * AFPs are set before the final optimization step. To get the final * alignment, look at the aligned pairs from {@link #getOptAln()}. */
Set the set of AFPs for this alignment. An AFP is a local ungapped alignment between the two peptides. AFPs are set before the final optimization step. To get the final alignment, look at the aligned pairs from <code>#getOptAln()</code>
setAfpSet
{ "repo_name": "sbliven/biojava", "path": "biojava3-structure/src/main/java/org/biojava/bio/structure/align/model/AFPChain.java", "license": "lgpl-2.1", "size": 29241 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,832,138
public ArrayList<Location> getValid(Location loc) { Grid<Actor> gr = getGrid(); if (gr == null) { return null; } ArrayList<Location> valid = new ArrayList<Location>(); ArrayList<Actor> neighbors = gr.getNeighbors(getLocation()); // get the neighbors ...
ArrayList<Location> function(Location loc) { Grid<Actor> gr = getGrid(); if (gr == null) { return null; } ArrayList<Location> valid = new ArrayList<Location>(); ArrayList<Actor> neighbors = gr.getNeighbors(getLocation()); getNeigbors(neighbors, valid); for (Location temp : gr.getEmptyAdjacentLocations(loc)) { int tempr...
/** * Find all positions that can be move to. * * @param loc * the location to detect. * @return List of positions. */
Find all positions that can be move to
getValid
{ "repo_name": "sujy/GridWorld", "path": "mazebug/RandomMazeBug.java", "license": "gpl-2.0", "size": 6041 }
[ "info.gridworld.actor.Actor", "info.gridworld.grid.Grid", "info.gridworld.grid.Location", "java.util.ArrayList" ]
import info.gridworld.actor.Actor; import info.gridworld.grid.Grid; import info.gridworld.grid.Location; import java.util.ArrayList;
import info.gridworld.actor.*; import info.gridworld.grid.*; import java.util.*;
[ "info.gridworld.actor", "info.gridworld.grid", "java.util" ]
info.gridworld.actor; info.gridworld.grid; java.util;
2,378,178
protected AutoCompletion getAutoCompletionFor(RSyntaxTextArea textArea) { return textAreaToAutoCompletion.get(textArea); } /** * {@inheritDoc}
AutoCompletion function(RSyntaxTextArea textArea) { return textAreaToAutoCompletion.get(textArea); } /** * {@inheritDoc}
/** * Returns the auto completion instance used by a text area. * * @param textArea The text area. * @return The auto completion instance, or <code>null</code> if none * is installed on the text area. */
Returns the auto completion instance used by a text area
getAutoCompletionFor
{ "repo_name": "meteoinfo/meteoinfolab", "path": "src/org/meteoinfo/laboratory/codecomplete/AbstractLanguageSupport.java", "license": "lgpl-3.0", "size": 8637 }
[ "org.fife.ui.autocomplete.AutoCompletion", "org.fife.ui.rsyntaxtextarea.RSyntaxTextArea" ]
import org.fife.ui.autocomplete.AutoCompletion; import org.fife.ui.rsyntaxtextarea.RSyntaxTextArea;
import org.fife.ui.autocomplete.*; import org.fife.ui.rsyntaxtextarea.*;
[ "org.fife.ui" ]
org.fife.ui;
1,186,997
Message getNextMessage() throws MessagingException;
Message getNextMessage() throws MessagingException;
/** * Returns next Message object or null if there are no new Messages. * * @return Next Message object or null if there are no new Messages * @throws MessagingException If there were problems with the imap connection. */
Returns next Message object or null if there are no new Messages
getNextMessage
{ "repo_name": "ohtuprojekti/OKKoPa_all", "path": "OKKoPa_core/src/main/java/fi/helsinki/cs/okkopa/mail/read/EmailRead.java", "license": "mit", "size": 1956 }
[ "javax.mail.Message", "javax.mail.MessagingException" ]
import javax.mail.Message; import javax.mail.MessagingException;
import javax.mail.*;
[ "javax.mail" ]
javax.mail;
2,726,074
protected void processRelationships(final ParserData parserData) { // Process the level relationships for (final Map.Entry<String, List<Relationship>> entry : parserData.getLevelRelationships().entrySet()) { final String levelId = entry.getKey(); final Level level = parserDat...
void function(final ParserData parserData) { for (final Map.Entry<String, List<Relationship>> entry : parserData.getLevelRelationships().entrySet()) { final String levelId = entry.getKey(); final Level level = parserData.getLevels().get(levelId); assert level != null; for (final Relationship relationship : entry.getVal...
/** * Process the relationships without logging any errors. * * @param parserData */
Process the relationships without logging any errors
processRelationships
{ "repo_name": "pressgang-ccms/PressGangCCMSContentSpecProcessor", "path": "src/main/java/org/jboss/pressgang/ccms/contentspec/processor/ContentSpecParser.java", "license": "gpl-3.0", "size": 111420 }
[ "java.util.List", "java.util.Map", "org.jboss.pressgang.ccms.contentspec.Level", "org.jboss.pressgang.ccms.contentspec.SpecTopic", "org.jboss.pressgang.ccms.contentspec.entities.Relationship" ]
import java.util.List; import java.util.Map; import org.jboss.pressgang.ccms.contentspec.Level; import org.jboss.pressgang.ccms.contentspec.SpecTopic; import org.jboss.pressgang.ccms.contentspec.entities.Relationship;
import java.util.*; import org.jboss.pressgang.ccms.contentspec.*; import org.jboss.pressgang.ccms.contentspec.entities.*;
[ "java.util", "org.jboss.pressgang" ]
java.util; org.jboss.pressgang;
1,172,174
public synchronized void append(String text, AttributeSet a) { StyledDocument doc; doc = getStyledDocument(); try { doc.insertString(doc.getLength(), text, a); } catch (Exception e) { System.err.println("Failed to insert text: " + text); e.printStackTrace(); } setCaretPo...
synchronized void function(String text, AttributeSet a) { StyledDocument doc; doc = getStyledDocument(); try { doc.insertString(doc.getLength(), text, a); } catch (Exception e) { System.err.println(STR + text); e.printStackTrace(); } setCaretPosition(doc.getLength()); }
/** * Appends the text at the end. * * @param text the text to append * @param a the attribute set, null if to use current */
Appends the text at the end
append
{ "repo_name": "waikato-datamining/adams-base", "path": "adams-core/src/main/java/adams/gui/core/BaseTextPane.java", "license": "gpl-3.0", "size": 9397 }
[ "javax.swing.text.AttributeSet", "javax.swing.text.StyledDocument" ]
import javax.swing.text.AttributeSet; import javax.swing.text.StyledDocument;
import javax.swing.text.*;
[ "javax.swing" ]
javax.swing;
223,071
@Test public void operationsNodeUpdateTest() { LOG.info("BootstrapNodeUpdateTest started"); DynamicLoadManager dm = getDynamicLoadManager(); OperationsNodeInfo nodeInfo = generateOperationsNodeInfo("localhost", 1200, 9898, ByteBuffer.wrap("Just array modified".getBytes()), 1); ...
void function() { LOG.info(STR); DynamicLoadManager dm = getDynamicLoadManager(); OperationsNodeInfo nodeInfo = generateOperationsNodeInfo(STR, 1200, 9898, ByteBuffer.wrap(STR.getBytes()), 1); dm.onNodeUpdated(nodeInfo); LOG.info(STR, nodeInfo.toString()); OperationsNodeInfo nodeInfo2 = generateOperationsNodeInfo(STR, ...
/** * Test Operations Node Update Update with two phases, one with same * ConnectionInfo DNS Name, second with changed ConnectionInfo DNS Name */
Test Operations Node Update Update with two phases, one with same ConnectionInfo DNS Name, second with changed ConnectionInfo DNS Name
operationsNodeUpdateTest
{ "repo_name": "kallelzied/kaa", "path": "server/control/src/test/java/org/kaaproject/kaa/server/control/service/loadmgmt/TestDynamicLoadManagerIT.java", "license": "apache-2.0", "size": 17803 }
[ "java.nio.ByteBuffer", "org.junit.Assert", "org.kaaproject.kaa.server.common.zk.gen.BootstrapNodeInfo", "org.kaaproject.kaa.server.common.zk.gen.ConnectionInfo", "org.kaaproject.kaa.server.common.zk.gen.OperationsNodeInfo" ]
import java.nio.ByteBuffer; import org.junit.Assert; import org.kaaproject.kaa.server.common.zk.gen.BootstrapNodeInfo; import org.kaaproject.kaa.server.common.zk.gen.ConnectionInfo; import org.kaaproject.kaa.server.common.zk.gen.OperationsNodeInfo;
import java.nio.*; import org.junit.*; import org.kaaproject.kaa.server.common.zk.gen.*;
[ "java.nio", "org.junit", "org.kaaproject.kaa" ]
java.nio; org.junit; org.kaaproject.kaa;
2,152,815
public static Path getWindupCacheDir() { return getWindupSubdirectory(CACHE_DIRECTORY_NAME); }
static Path function() { return getWindupSubdirectory(CACHE_DIRECTORY_NAME); }
/** * The path $WINDUP_HOME/cache */
The path $WINDUP_HOME/cache
getWindupCacheDir
{ "repo_name": "lincolnthree/windup", "path": "utils/src/main/java/org/jboss/windup/util/PathUtil.java", "license": "epl-1.0", "size": 6532 }
[ "java.nio.file.Path" ]
import java.nio.file.Path;
import java.nio.file.*;
[ "java.nio" ]
java.nio;
2,904,538
public static Point getSize(String path) { BitmapFactory.Options options = new BitmapFactory.Options(); options.inJustDecodeBounds = true; BitmapFactory.decodeFile(path, options); int width = options.outWidth; int height = options.outHeight; return new Point(width, he...
static Point function(String path) { BitmapFactory.Options options = new BitmapFactory.Options(); options.inJustDecodeBounds = true; BitmapFactory.decodeFile(path, options); int width = options.outWidth; int height = options.outHeight; return new Point(width, height); }
/** * Get width and height of the bitmap specified with the file path. * * @param path the bitmap file path. * @return the size. */
Get width and height of the bitmap specified with the file path
getSize
{ "repo_name": "richardradics/RxAndroidBootstrap", "path": "commons/src/main/java/com/richardradics/commons/util/BitmapUtil.java", "license": "apache-2.0", "size": 11530 }
[ "android.graphics.BitmapFactory", "android.graphics.Point" ]
import android.graphics.BitmapFactory; import android.graphics.Point;
import android.graphics.*;
[ "android.graphics" ]
android.graphics;
728,537
private List<Value> getDaughterValues(Axis axis, Value mother) { List<Value> values = axis.getValues(); String motherId = mother.getPK().getId(); List<Value> daughterValues = new ArrayList<Value>(); Value value = null; // values which are under the current axe // read the list of daughter values ...
List<Value> function(Axis axis, Value mother) { List<Value> values = axis.getValues(); String motherId = mother.getPK().getId(); List<Value> daughterValues = new ArrayList<Value>(); Value value = null; Iterator<Value> it = values.iterator(); while (it.hasNext()) { value = it.next(); if (value.getMotherId().equals(mothe...
/** * Search daughters values of a Value from an axe. * @param axis - A primary or secondary list of axes * @param mother - a value of the axe * @return the list of daughters */
Search daughters values of a Value from an axe
getDaughterValues
{ "repo_name": "ebonnet/Silverpeas-Core", "path": "core-war/src/main/java/org/silverpeas/web/pdc/servlets/PdcRequestRouter.java", "license": "agpl-3.0", "size": 35889 }
[ "java.util.ArrayList", "java.util.Iterator", "java.util.List", "org.silverpeas.core.pdc.pdc.model.Axis", "org.silverpeas.core.pdc.pdc.model.Value" ]
import java.util.ArrayList; import java.util.Iterator; import java.util.List; import org.silverpeas.core.pdc.pdc.model.Axis; import org.silverpeas.core.pdc.pdc.model.Value;
import java.util.*; import org.silverpeas.core.pdc.pdc.model.*;
[ "java.util", "org.silverpeas.core" ]
java.util; org.silverpeas.core;
2,419,254
private static int getTextType() { boolean blob = hasOption("blob"); boolean clob = hasOption("clob"); if (blob && clob) { System.err.println("Cannot specify both 'blob' and 'clob'"); printUsage(System.err); System.exit(1); } if (blob) { ...
static int function() { boolean blob = hasOption("blob"); boolean clob = hasOption("clob"); if (blob && clob) { System.err.println(STR); printUsage(System.err); System.exit(1); } if (blob) { return Types.BLOB; } if (clob) { return Types.CLOB; } return Types.VARCHAR; }
/** * Get the data type to be used for sr_select and sr_update types of load. * * @return one of the {@code java.sql.Types} data type constants */
Get the data type to be used for sr_select and sr_update types of load
getTextType
{ "repo_name": "kavin256/Derby", "path": "java/testing/org/apache/derbyTesting/perf/clients/Runner.java", "license": "apache-2.0", "size": 16736 }
[ "java.sql.Types" ]
import java.sql.Types;
import java.sql.*;
[ "java.sql" ]
java.sql;
542,642
@Deprecated public ArrayList<Topic> getAllTopics(int p_gameId) { String findAllGames = "SELECT * FROM topics WHERE F_gameId = " + p_gameId; ResultSet resultSet = null; try { PreparedStatement statement = m_connection.prepareStatement(findAllGames); ...
ArrayList<Topic> function(int p_gameId) { String findAllGames = STR + p_gameId; ResultSet resultSet = null; try { PreparedStatement statement = m_connection.prepareStatement(findAllGames); resultSet = statement.executeQuery(); } catch (SQLException e) { e.printStackTrace(); } ArrayList<Topic> topics = new ArrayList<Top...
/** * Gets all topics in the database. * @return A collection of topics, or an empty collection if no results were found. * TODO this has the potential to return unlimited number of entries! Should be limited! */
Gets all topics in the database
getAllTopics
{ "repo_name": "mirrormind/mo-test-eam", "path": "mo-test-eam/src/moeam/db/query/QueryTopic.java", "license": "apache-2.0", "size": 4854 }
[ "java.sql.PreparedStatement", "java.sql.ResultSet", "java.sql.SQLException", "java.util.ArrayList" ]
import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.util.ArrayList;
import java.sql.*; import java.util.*;
[ "java.sql", "java.util" ]
java.sql; java.util;
2,511,694
public SelectItem[] getAvailablesContentFilterLanguages(NodeRef translation, boolean returnTranslationLanguage) { // get the list of missing translation of this node List<Locale> missingLocales = getMultilingualContentService().getMissingTranslations(translation, returnTranslationLanguage); // ...
SelectItem[] function(NodeRef translation, boolean returnTranslationLanguage) { List<Locale> missingLocales = getMultilingualContentService().getMissingTranslations(translation, returnTranslationLanguage); SelectItem[] items = new SelectItem[missingLocales.size()]; int idx = 0; for(Locale locale : missingLocales) { Str...
/** * return the list of languages in which the given node hasn't be translated yet. * * @param translation the translatable node ref * @param returnTranslationLanguage if true, return the language of the given translation. * @return the list of languages */
return the list of languages in which the given node hasn't be translated yet
getAvailablesContentFilterLanguages
{ "repo_name": "nguyentienlong/community-edition", "path": "projects/web-client/source/java/org/alfresco/web/bean/users/UserPreferencesBean.java", "license": "lgpl-3.0", "size": 13513 }
[ "java.util.List", "java.util.Locale", "javax.faces.model.SelectItem", "org.alfresco.service.cmr.repository.NodeRef" ]
import java.util.List; import java.util.Locale; import javax.faces.model.SelectItem; import org.alfresco.service.cmr.repository.NodeRef;
import java.util.*; import javax.faces.model.*; import org.alfresco.service.cmr.repository.*;
[ "java.util", "javax.faces", "org.alfresco.service" ]
java.util; javax.faces; org.alfresco.service;
892,453
public DiameterServletRequest createRequest(SipApplicationSession appSession, ApplicationId id, DiameterCommand command, String destinationRealm, String destinationHost);
DiameterServletRequest function(SipApplicationSession appSession, ApplicationId id, DiameterCommand command, String destinationRealm, String destinationHost);
/** * Returns a new diameter request object with the specified command, application identifier, * destination realm and destination host. The returned request object exists in a new * <code>DiameterSession</code> which belongs to the specified * <code>SipApplicationSession</code>. * * The container is resp...
Returns a new diameter request object with the specified command, application identifier, destination realm and destination host. The returned request object exists in a new <code>DiameterSession</code> which belongs to the specified <code>SipApplicationSession</code>. The container is responsible for assigning the req...
createRequest
{ "repo_name": "bpdavis-scratch/cipango", "path": "cipango-diameter/src/main/java/org/cipango/diameter/api/DiameterFactory.java", "license": "apache-2.0", "size": 3442 }
[ "javax.servlet.sip.SipApplicationSession", "org.cipango.diameter.ApplicationId", "org.cipango.diameter.DiameterCommand" ]
import javax.servlet.sip.SipApplicationSession; import org.cipango.diameter.ApplicationId; import org.cipango.diameter.DiameterCommand;
import javax.servlet.sip.*; import org.cipango.diameter.*;
[ "javax.servlet", "org.cipango.diameter" ]
javax.servlet; org.cipango.diameter;
2,730,846
public Object clone() { Block otherBlock = this.loopBlock.clone(); Query otherQuery = (Query)this.query.clone(); LoopStatement ls = new LoopStatement(otherBlock, otherQuery, this.cursorName); ls.setLabel(label); return ls; }
Object function() { Block otherBlock = this.loopBlock.clone(); Query otherQuery = (Query)this.query.clone(); LoopStatement ls = new LoopStatement(otherBlock, otherQuery, this.cursorName); ls.setLabel(label); return ls; }
/** * Deep clone statement to produce a new identical statement. * @return Deep clone */
Deep clone statement to produce a new identical statement
clone
{ "repo_name": "jagazee/teiid-8.7", "path": "engine/src/main/java/org/teiid/query/sql/proc/LoopStatement.java", "license": "lgpl-2.1", "size": 5533 }
[ "org.teiid.query.sql.lang.Query" ]
import org.teiid.query.sql.lang.Query;
import org.teiid.query.sql.lang.*;
[ "org.teiid.query" ]
org.teiid.query;
8,694
@SuppressWarnings({"unchecked", "PMD" }) @SkipValidation public String addUsers() throws CSTransactionException, CSObjectNotFoundException { if (getUsers() != null && !getUsers().isEmpty()) { ServiceLocatorFactory.getPermissionsManagementService().addUsers(getTargetGroup(), getUsers(...
@SuppressWarnings({STR, "PMD" }) String function() throws CSTransactionException, CSObjectNotFoundException { if (getUsers() != null && !getUsers().isEmpty()) { ServiceLocatorFactory.getPermissionsManagementService().addUsers(getTargetGroup(), getUsers()); String s = "Users"; if (getUsers().size() == 1) { User u = Secu...
/** * Adds the selected users to the current collaborator group. * @return success * @throws CSTransactionException on CSM error * @throws CSObjectNotFoundException on CSM error */
Adds the selected users to the current collaborator group
addUsers
{ "repo_name": "NCIP/caarray", "path": "software/caarray.war/src/main/java/gov/nih/nci/caarray/web/action/CollaboratorsAction.java", "license": "bsd-3-clause", "size": 9915 }
[ "com.fiveamsolutions.nci.commons.web.struts2.action.ActionHelper", "com.opensymphony.xwork2.Action", "gov.nih.nci.caarray.application.ServiceLocatorFactory", "gov.nih.nci.caarray.security.SecurityUtils", "gov.nih.nci.security.authorization.domainobjects.User", "gov.nih.nci.security.exceptions.CSObjectNotF...
import com.fiveamsolutions.nci.commons.web.struts2.action.ActionHelper; import com.opensymphony.xwork2.Action; import gov.nih.nci.caarray.application.ServiceLocatorFactory; import gov.nih.nci.caarray.security.SecurityUtils; import gov.nih.nci.security.authorization.domainobjects.User; import gov.nih.nci.security.except...
import com.fiveamsolutions.nci.commons.web.struts2.action.*; import com.opensymphony.xwork2.*; import gov.nih.nci.caarray.application.*; import gov.nih.nci.caarray.security.*; import gov.nih.nci.security.authorization.domainobjects.*; import gov.nih.nci.security.exceptions.*; import java.util.*; import org.apache.commo...
[ "com.fiveamsolutions.nci", "com.opensymphony.xwork2", "gov.nih.nci", "java.util", "org.apache.commons" ]
com.fiveamsolutions.nci; com.opensymphony.xwork2; gov.nih.nci; java.util; org.apache.commons;
2,494,924
EClass getMapping();
EClass getMapping();
/** * Returns the meta object for class '{@link fr.inria.diverse.melange.metamodel.melange.Mapping <em>Mapping</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for class '<em>Mapping</em>'. * @see fr.inria.diverse.melange.metamodel.melange.Mapping * @generated */
Returns the meta object for class '<code>fr.inria.diverse.melange.metamodel.melange.Mapping Mapping</code>'.
getMapping
{ "repo_name": "diverse-project/melange", "path": "plugins/fr.inria.diverse.melange.metamodel/src/main/java/fr/inria/diverse/melange/metamodel/melange/MelangePackage.java", "license": "epl-1.0", "size": 113615 }
[ "org.eclipse.emf.ecore.EClass" ]
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
359,551
public static <T> Iterable<T> createReverseIterable(List<T> list) { // When the list is empty we can use the "forward" iterable (i.e. the // list itself) also as the reverseIterable as it will do nothing. if (list.size() == 0) { return list; } return new ReverseI...
static <T> Iterable<T> function(List<T> list) { if (list.size() == 0) { return list; } return new ReverseIterable<T>(list); } ; private static class ReverseIterable<T> implements Iterable<T> { private List<T> list; public ReverseIterable(List<T> list) { this.list = list; }
/** * Returns an {@link Iterable} with an iterator iterating the given list * from the end to the start. * <p> * I.e. the iterator does the reverse of the {@link List#iterator()}. * @param <T> * @param list * @return a reverse {@link Iterable} of the list */
Returns an <code>Iterable</code> with an iterator iterating the given list from the end to the start. I.e. the iterator does the reverse of the <code>List#iterator()</code>
createReverseIterable
{ "repo_name": "karreiro/uberfire", "path": "uberfire-extensions/uberfire-wires/uberfire-wires-core/uberfire-wires-core-trees/src/main/java/org/uberfire/ext/wires/core/trees/client/layout/treelayout/util/IterableUtil.java", "license": "apache-2.0", "size": 1955 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
342,243
public void setRefsortHLAPI( SortHLAPI elem){ if(elem!=null) item.setRefsort((Sort)elem.getContainedItem()); }
void function( SortHLAPI elem){ if(elem!=null) item.setRefsort((Sort)elem.getContainedItem()); }
/** * set Refsort */
set Refsort
setRefsortHLAPI
{ "repo_name": "lhillah/pnmlframework", "path": "pnmlFw-HLPN/src/fr/lip6/move/pnml/hlpn/multisets/hlapi/EmptyHLAPI.java", "license": "epl-1.0", "size": 113920 }
[ "fr.lip6.move.pnml.hlpn.terms.Sort", "fr.lip6.move.pnml.hlpn.terms.hlapi.SortHLAPI" ]
import fr.lip6.move.pnml.hlpn.terms.Sort; import fr.lip6.move.pnml.hlpn.terms.hlapi.SortHLAPI;
import fr.lip6.move.pnml.hlpn.terms.*; import fr.lip6.move.pnml.hlpn.terms.hlapi.*;
[ "fr.lip6.move" ]
fr.lip6.move;
1,442,548
public Task destroyAsync(Connection c) throws BadServerResponse, XenAPIException, XmlRpcException { String method_call = "Async.VDI.destroy"; String session = c.getSessionReference(); Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)...
Task function(Connection c) throws BadServerResponse, XenAPIException, XmlRpcException { String method_call = STR; String session = c.getSessionReference(); Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)}; Map response = c.dispatch(method_call, method_params); Object result = re...
/** * Destroy the specified VDI instance. * * @return Task */
Destroy the specified VDI instance
destroyAsync
{ "repo_name": "mufaddalq/cloudstack-datera-driver", "path": "deps/XenServerJava/src/com/xensource/xenapi/VDI.java", "license": "apache-2.0", "size": 84941 }
[ "com.xensource.xenapi.Types", "java.util.Map", "org.apache.xmlrpc.XmlRpcException" ]
import com.xensource.xenapi.Types; import java.util.Map; import org.apache.xmlrpc.XmlRpcException;
import com.xensource.xenapi.*; import java.util.*; import org.apache.xmlrpc.*;
[ "com.xensource.xenapi", "java.util", "org.apache.xmlrpc" ]
com.xensource.xenapi; java.util; org.apache.xmlrpc;
962,944
public void setValidity(String startTime, String endTime) { for (Cluster cluster : this.getClusters().getClusters()) { cluster.getValidity().setStart(TimeUtil.oozieDateToDate(startTime).toDate()); cluster.getValidity().setEnd(TimeUtil.oozieDateToDate(endTime).toDate()); } ...
void function(String startTime, String endTime) { for (Cluster cluster : this.getClusters().getClusters()) { cluster.getValidity().setStart(TimeUtil.oozieDateToDate(startTime).toDate()); cluster.getValidity().setEnd(TimeUtil.oozieDateToDate(endTime).toDate()); } }
/** * Sets new process validity on all the process clusters. * * @param startTime start of process validity * @param endTime end of process validity */
Sets new process validity on all the process clusters
setValidity
{ "repo_name": "kenneththo/incubator-falcon", "path": "falcon-regression/merlin-core/src/main/java/org/apache/falcon/regression/Entities/ProcessMerlin.java", "license": "apache-2.0", "size": 14136 }
[ "org.apache.falcon.entity.v0.process.Cluster", "org.apache.falcon.regression.core.util.TimeUtil" ]
import org.apache.falcon.entity.v0.process.Cluster; import org.apache.falcon.regression.core.util.TimeUtil;
import org.apache.falcon.entity.v0.process.*; import org.apache.falcon.regression.core.util.*;
[ "org.apache.falcon" ]
org.apache.falcon;
2,249,851
Drawable getDrawable(Context context);
Drawable getDrawable(Context context);
/** * Get the drawable for this snekFood * * @param context The context used for Drawable retrieval * @return A snekFood drawable */
Get the drawable for this snekFood
getDrawable
{ "repo_name": "Want100Cookies/GyroSnek", "path": "app/src/main/java/nl/drewez/gyrosnek/SnekFood/ISnekFood.java", "license": "mit", "size": 645 }
[ "android.content.Context", "android.graphics.drawable.Drawable" ]
import android.content.Context; import android.graphics.drawable.Drawable;
import android.content.*; import android.graphics.drawable.*;
[ "android.content", "android.graphics" ]
android.content; android.graphics;
861,361
//------------------------------------------------------------------------- public Security getSecurity() { return _securityLink.getTarget(); }
Security function() { return _securityLink.getTarget(); }
/** * Gets the resolved security from the link. * * @return the security from the link, null if not resolve */
Gets the resolved security from the link
getSecurity
{ "repo_name": "McLeodMoores/starling", "path": "projects/master/src/main/java/com/opengamma/master/position/ManageablePosition.java", "license": "apache-2.0", "size": 27645 }
[ "com.opengamma.core.security.Security" ]
import com.opengamma.core.security.Security;
import com.opengamma.core.security.*;
[ "com.opengamma.core" ]
com.opengamma.core;
1,486,413
@SuppressWarnings("deprecation") protected void submitToWorkflow(final String site, final ZonedDateTime launchDate, final String label, final List<String> paths, final MultiChannelPublishingContext mcpContext) throws ServiceException { _submit(site, launch...
@SuppressWarnings(STR) void function(final String site, final ZonedDateTime launchDate, final String label, final List<String> paths, final MultiChannelPublishingContext mcpContext) throws ServiceException { _submit(site, launchDate, label, paths, mcpContext); }
/** * submit the given list of paths to workflow * * @param site * @param launchDate * @param label * @param paths */
submit the given list of paths to workflow
submitToWorkflow
{ "repo_name": "sumerjabri/studio", "path": "src/main/java/org/craftercms/studio/impl/v1/service/workflow/WorkflowServiceImpl.java", "license": "gpl-3.0", "size": 120098 }
[ "java.time.ZonedDateTime", "java.util.List", "org.craftercms.studio.api.v1.exception.ServiceException", "org.craftercms.studio.api.v1.service.workflow.context.MultiChannelPublishingContext" ]
import java.time.ZonedDateTime; import java.util.List; import org.craftercms.studio.api.v1.exception.ServiceException; import org.craftercms.studio.api.v1.service.workflow.context.MultiChannelPublishingContext;
import java.time.*; import java.util.*; import org.craftercms.studio.api.v1.exception.*; import org.craftercms.studio.api.v1.service.workflow.context.*;
[ "java.time", "java.util", "org.craftercms.studio" ]
java.time; java.util; org.craftercms.studio;
846,273
public B validate(final ValidationContext.Builder<?, ?> validationContext) { this.validationContexts.add(validationContext); return self; }
B function(final ValidationContext.Builder<?, ?> validationContext) { this.validationContexts.add(validationContext); return self; }
/** * Adds a validation context. * @param validationContext * @return */
Adds a validation context
validate
{ "repo_name": "christophd/citrus", "path": "core/citrus-base/src/main/java/com/consol/citrus/actions/ReceiveMessageAction.java", "license": "apache-2.0", "size": 34875 }
[ "com.consol.citrus.validation.context.ValidationContext" ]
import com.consol.citrus.validation.context.ValidationContext;
import com.consol.citrus.validation.context.*;
[ "com.consol.citrus" ]
com.consol.citrus;
2,596,917
public void deletePerson(Person p) throws PersonHasMoviesException { personDAO.deletePerson(p); }
void function(Person p) throws PersonHasMoviesException { personDAO.deletePerson(p); }
/** * This will delete a person if the person is not involved in any * relations. * * @param p * the person to be deleted * @throws com.themangoproject.model.PersonDAO.PersonHasMoviesException * if the person exists in other relations. */
This will delete a person if the person is not involved in any relations
deletePerson
{ "repo_name": "posborne/mango-movie-manager", "path": "src/com/themangoproject/model/MangoController.java", "license": "mit", "size": 20444 }
[ "com.themangoproject.model.PersonDAO" ]
import com.themangoproject.model.PersonDAO;
import com.themangoproject.model.*;
[ "com.themangoproject.model" ]
com.themangoproject.model;
775,889
static public void saveLongLongLut( final TLongLongHashMap lut, final File file, final String dataset, final int blockSize ) { final IHDF5Writer writer = HDF5Factory.open( file ); saveLongLongLut( lut, writer, dataset, blockSize ); writer.close(); }
static void function( final TLongLongHashMap lut, final File file, final String dataset, final int blockSize ) { final IHDF5Writer writer = HDF5Factory.open( file ); saveLongLongLut( lut, writer, dataset, blockSize ); writer.close(); }
/** * Save a long to long lookup table into an HDF5 uint64 dataset. * * @param lut * @param file * @param dataset * @param cellDimensions */
Save a long to long lookup table into an HDF5 uint64 dataset
saveLongLongLut
{ "repo_name": "hanslovsky/bigcat", "path": "src/main/java/bdv/img/h5/H5Utils.java", "license": "gpl-2.0", "size": 51530 }
[ "ch.systemsx.cisd.hdf5.HDF5Factory", "ch.systemsx.cisd.hdf5.IHDF5Writer", "gnu.trove.map.hash.TLongLongHashMap", "java.io.File" ]
import ch.systemsx.cisd.hdf5.HDF5Factory; import ch.systemsx.cisd.hdf5.IHDF5Writer; import gnu.trove.map.hash.TLongLongHashMap; import java.io.File;
import ch.systemsx.cisd.hdf5.*; import gnu.trove.map.hash.*; import java.io.*;
[ "ch.systemsx.cisd", "gnu.trove.map", "java.io" ]
ch.systemsx.cisd; gnu.trove.map; java.io;
2,574,975
void setRequirements(FabricRequirements requirements) throws IOException;
void setRequirements(FabricRequirements requirements) throws IOException;
/** * Stores the fabric provisioning requirements */
Stores the fabric provisioning requirements
setRequirements
{ "repo_name": "janstey/fuse", "path": "fabric/fabric-api/src/main/java/org/fusesource/fabric/api/FabricService.java", "license": "apache-2.0", "size": 8305 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
602,454
EList<Fulfillment> getFulfillments();
EList<Fulfillment> getFulfillments();
/** * Returns the value of the '<em><b>Fulfillments</b></em>' containment reference list. * The list contents are of type {@link crom_l1_composed.Fulfillment}. * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Fulfillments</em>' containment reference list isn't clear, * there really should be mor...
Returns the value of the 'Fulfillments' containment reference list. The list contents are of type <code>crom_l1_composed.Fulfillment</code>. If the meaning of the 'Fulfillments' containment reference list isn't clear, there really should be more of a description here...
getFulfillments
{ "repo_name": "max-leuthaeuser/SCROLLGen", "path": "core/src/main/java/crom_l1_composed/CompartmentType.java", "license": "lgpl-3.0", "size": 5155 }
[ "org.eclipse.emf.common.util.EList" ]
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.common.util.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
1,694,150
File createDestinationFileName(File source) { File tempDirectory = coreRuntimeDirectoryProvider.getTempDirectory(); // create destination file String destinationFileName = new StringBuilder().append(this.getClass().getCanonicalName()).append("-") .append(source.getName()).toString(); File destinat...
File createDestinationFileName(File source) { File tempDirectory = coreRuntimeDirectoryProvider.getTempDirectory(); String destinationFileName = new StringBuilder().append(this.getClass().getCanonicalName()).append("-") .append(source.getName()).toString(); File destinationFile = new File(tempDirectory, destinationFile...
/** * Create destination file name. The destination file will be placed in the used * temp directory. * * @param source * source file. * * @return path to destination file which is located in the used temp directory. */
Create destination file name. The destination file will be placed in the used temp directory
createDestinationFileName
{ "repo_name": "athrane/pineapple", "path": "modules/pineapple-core/src/main/java/com/alpha/pineapple/substitution/VariableSubstitutionProviderImpl.java", "license": "gpl-3.0", "size": 13558 }
[ "java.io.File" ]
import java.io.File;
import java.io.*;
[ "java.io" ]
java.io;
932,576
void exitCatchFormalParameter(@NotNull Java8Parser.CatchFormalParameterContext ctx);
void exitCatchFormalParameter(@NotNull Java8Parser.CatchFormalParameterContext ctx);
/** * Exit a parse tree produced by {@link Java8Parser#catchFormalParameter}. * * @param ctx the parse tree */
Exit a parse tree produced by <code>Java8Parser#catchFormalParameter</code>
exitCatchFormalParameter
{ "repo_name": "BigDaddy-Germany/WHOAMI", "path": "WHOAMI/src/de/aima13/whoami/modules/syntaxcheck/languages/antlrgen/Java8Listener.java", "license": "mit", "size": 97945 }
[ "org.antlr.v4.runtime.misc.NotNull" ]
import org.antlr.v4.runtime.misc.NotNull;
import org.antlr.v4.runtime.misc.*;
[ "org.antlr.v4" ]
org.antlr.v4;
100,543
List<HierarchicalConfiguration<T>> childConfigurationsAt(String key);
List<HierarchicalConfiguration<T>> childConfigurationsAt(String key);
/** * Returns a list with sub configurations for all child nodes of the node * selected by the given key. This method works like * {@link #immutableChildConfigurationsAt(String)}, but returns a list with * mutable configuration objects. The configuration objects returned are * <strong>not</stro...
Returns a list with sub configurations for all child nodes of the node selected by the given key. This method works like <code>#immutableChildConfigurationsAt(String)</code>, but returns a list with mutable configuration objects. The configuration objects returned are not connected to the parent configuration
childConfigurationsAt
{ "repo_name": "mohanaraosv/commons-configuration", "path": "src/main/java/org/apache/commons/configuration2/HierarchicalConfiguration.java", "license": "apache-2.0", "size": 10068 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,702,041
public static KeyStore loadCacertsKeyStore() { return loadCacertsKeyStore(null); }
static KeyStore function() { return loadCacertsKeyStore(null); }
/** * Loads the default root certificates at &lt;java.home&gt;/lib/security/cacerts * with the default provider. * @return a <CODE>KeyStore</CODE> */
Loads the default root certificates at &lt;java.home&gt;/lib/security/cacerts with the default provider
loadCacertsKeyStore
{ "repo_name": "bullda/DroidText", "path": "src/core/com/lowagie/text/pdf/PdfPKCS7.java", "license": "lgpl-3.0", "size": 68093 }
[ "java.security.KeyStore" ]
import java.security.KeyStore;
import java.security.*;
[ "java.security" ]
java.security;
2,785,569
public PopOver getPopOver() { return popOver; }
PopOver function() { return popOver; }
/** * Returns the popover in which the content will be shown. * * @return the popover */
Returns the popover in which the content will be shown
getPopOver
{ "repo_name": "dlemmermann/CalendarFX", "path": "CalendarFXView/src/main/java/com/calendarfx/view/DateControl.java", "license": "apache-2.0", "size": 106855 }
[ "org.controlsfx.control.PopOver" ]
import org.controlsfx.control.PopOver;
import org.controlsfx.control.*;
[ "org.controlsfx.control" ]
org.controlsfx.control;
1,993,036
private void unbind(int key) { KeyboardHandler.getInstance().removeKeyPressedListener(key, INSTANCE); }
void function(int key) { KeyboardHandler.getInstance().removeKeyPressedListener(key, INSTANCE); }
/** * Unbinds the key from the listener * * @param key - The key to unbind */
Unbinds the key from the listener
unbind
{ "repo_name": "simo415/spc", "path": "src/com/sijobe/spc/command/Bind.java", "license": "lgpl-3.0", "size": 7492 }
[ "com.sijobe.spc.util.KeyboardHandler" ]
import com.sijobe.spc.util.KeyboardHandler;
import com.sijobe.spc.util.*;
[ "com.sijobe.spc" ]
com.sijobe.spc;
1,837,136
@Test public void TestNoCoalesce() { String str = "This is a test\rto see if\nwhitespace is handled \n\r unusually\r\n by our tokenizer\n\n\n!!!plus some other odd ones like \ttab\ttab\ttab\nand form\ffeed\ffoo.\n"; String delims = " \t\n\r\f\ud800\udc00"; java.util.StringTokenizer jt...
void function() { String str = STR; String delims = STR; java.util.StringTokenizer jt = new java.util.StringTokenizer(str, delims, true); android.icu.util.StringTokenizer it = new android.icu.util.StringTokenizer(str, delims, true); int n = 0; while (jt.hasMoreTokens() && it.hasMoreTokens()) { assertEquals("[" + String...
/** * Test java compatibility, except we support surrogates. */
Test java compatibility, except we support surrogates
TestNoCoalesce
{ "repo_name": "mirego/j2objc", "path": "jre_emul/android/platform/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/StringTokenizerTest.java", "license": "apache-2.0", "size": 43389 }
[ "android.icu.util.StringTokenizer" ]
import android.icu.util.StringTokenizer;
import android.icu.util.*;
[ "android.icu" ]
android.icu;
1,669,853
public synchronized Job get(int[] location) { NamedNode n = nodeAt(location); return (n == null ? null : n.contents); }
synchronized Job function(int[] location) { NamedNode n = nodeAt(location); return (n == null ? null : n.contents); }
/** * Get the job object at the specified index array * * @param location * @return Job at the specified location or null if no such job was found */
Get the job object at the specified index array
get
{ "repo_name": "apache/incubator-taverna-engine", "path": "taverna-workflowmodel-api/src/main/java/org/apache/taverna/invocation/TreeCache.java", "license": "apache-2.0", "size": 5384 }
[ "org.apache.taverna.workflowmodel.processor.activity.Job" ]
import org.apache.taverna.workflowmodel.processor.activity.Job;
import org.apache.taverna.workflowmodel.processor.activity.*;
[ "org.apache.taverna" ]
org.apache.taverna;
2,908,627
@Override protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { setOrientation(LinearLayout.HORIZONTAL); mSpace.setVisibility(View.GONE); super.onMeasure(widthMeasureSpec, heightMeasureSpec); final int contentWidth = getMeasuredWidth() - getPaddingLeft() - getP...
void function(int widthMeasureSpec, int heightMeasureSpec) { setOrientation(LinearLayout.HORIZONTAL); mSpace.setVisibility(View.GONE); super.onMeasure(widthMeasureSpec, heightMeasureSpec); final int contentWidth = getMeasuredWidth() - getPaddingLeft() - getPaddingRight(); final int count = getChildCount(); int totalChi...
/** * Ask all children to measure themselves and compute the measurement of this * layout based on the children. */
Ask all children to measure themselves and compute the measurement of this layout based on the children
onMeasure
{ "repo_name": "kingslou/qksms", "path": "QKSMS/src/main/java/com/moez/QKSMS/ui/view/WrapLayout.java", "license": "gpl-3.0", "size": 1963 }
[ "android.view.View", "android.widget.LinearLayout" ]
import android.view.View; import android.widget.LinearLayout;
import android.view.*; import android.widget.*;
[ "android.view", "android.widget" ]
android.view; android.widget;
418,294
@Test public void testQueryParseAndBuildFilterSuccess() { String[] queries = new String[] { "@cluster = \"cluster1\" and @datacenter = \"dc1\"", "@cluster = \"cluster1\" and @datacenter = \"dc1\" and @jobID = \"job_1234\""...
void function() { String[] queries = new String[] { STRcluster1\STRdc1\"", STRcluster1\STRdc1\" and @jobID = \STR", STRcluster1\STRdc1\" and @jobID = \STRquoted_pig_job_name_value\\\"\"", STRcluster1\STRdc1\" and @jobID in (\STR,\STR)", STRcluster1\STRdc1\" and @jobID in (1234,\STR)", STRcluster1\STRdc1\" and @jobID in...
/** * Should success without exception */
Should success without exception
testQueryParseAndBuildFilterSuccess
{ "repo_name": "1haodian/eagle", "path": "eagle-core/eagle-query/eagle-entity-base/src/test/java/org/apache/eagle/log/entity/filter/TestHBaseFilterBuilder.java", "license": "apache-2.0", "size": 16629 }
[ "org.apache.eagle.query.parser.EagleQueryParseException", "org.apache.hadoop.hbase.filter.Filter", "org.junit.Assert" ]
import org.apache.eagle.query.parser.EagleQueryParseException; import org.apache.hadoop.hbase.filter.Filter; import org.junit.Assert;
import org.apache.eagle.query.parser.*; import org.apache.hadoop.hbase.filter.*; import org.junit.*;
[ "org.apache.eagle", "org.apache.hadoop", "org.junit" ]
org.apache.eagle; org.apache.hadoop; org.junit;
465,093
@Deprecated public void shutdownHibernate(XWikiContext inputxcontext) throws HibernateException { this.store.shutdownHibernate(); }
void function(XWikiContext inputxcontext) throws HibernateException { this.store.shutdownHibernate(); }
/** * Allows to shut down the hibernate configuration Closing all pools and connections * * @param inputxcontext * @throws HibernateException * @deprecated automatically done when the {@link HibernateSessionFactory} component is disposed */
Allows to shut down the hibernate configuration Closing all pools and connections
shutdownHibernate
{ "repo_name": "xwiki/xwiki-platform", "path": "xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/store/XWikiHibernateBaseStore.java", "license": "lgpl-2.1", "size": 33783 }
[ "com.xpn.xwiki.XWikiContext", "org.hibernate.HibernateException" ]
import com.xpn.xwiki.XWikiContext; import org.hibernate.HibernateException;
import com.xpn.xwiki.*; import org.hibernate.*;
[ "com.xpn.xwiki", "org.hibernate" ]
com.xpn.xwiki; org.hibernate;
1,035,062
@Override @XmlElement(name = "softwareDevelopmentFileFormat") public String getSoftwareDevelopmentFileFormat() { return softwareDevelopmentFileFormat; }
@XmlElement(name = STR) String function() { return softwareDevelopmentFileFormat; }
/** * Software dependent format used for the application schema software dependent file. * * @return Format used for the application schema software file, or {@code null}. */
Software dependent format used for the application schema software dependent file
getSoftwareDevelopmentFileFormat
{ "repo_name": "desruisseaux/sis", "path": "core/sis-metadata/src/main/java/org/apache/sis/metadata/iso/DefaultApplicationSchemaInformation.java", "license": "apache-2.0", "size": 10834 }
[ "javax.xml.bind.annotation.XmlElement" ]
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.*;
[ "javax.xml" ]
javax.xml;
473,892
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeString(getTitle()); dest.writeString(getCategory().toString()); dest.writeString(getSoundType().toString()); dest.writeInt(getLengthSec()); dest.writeByte((byte) (getIsFavorite() ? 1 : 0)); de...
void function(Parcel dest, int flags) { dest.writeString(getTitle()); dest.writeString(getCategory().toString()); dest.writeString(getSoundType().toString()); dest.writeInt(getLengthSec()); dest.writeByte((byte) (getIsFavorite() ? 1 : 0)); dest.writeByte((byte) (getIsRecording() ? 1 : 0)); dest.writeString(getFileName(...
/** * Implementation for Parcelable interface. * Only write the necessary fields for Soundscapes, * no need for anything else (might not even exist, when handling favorites). * * @param dest Destination Parcel * @param flags Parcel flags */
Implementation for Parcelable interface. Only write the necessary fields for Soundscapes, no need for anything else (might not even exist, when handling favorites)
writeToParcel
{ "repo_name": "mikkopiu/android-adv-project", "path": "app/src/main/java/fi/metropolia/yellow_spaceship/androidadvproject/models/DAMSound.java", "license": "mit", "size": 9404 }
[ "android.os.Parcel", "android.os.Parcelable" ]
import android.os.Parcel; import android.os.Parcelable;
import android.os.*;
[ "android.os" ]
android.os;
1,024,684
public int countByQuery(DbSession dbSession, QProfileChangeQuery query) { return mapper(dbSession).countByQuery(query); }
int function(DbSession dbSession, QProfileChangeQuery query) { return mapper(dbSession).countByQuery(query); }
/** * Note: offset and limit of the query object will be ignored */
Note: offset and limit of the query object will be ignored
countByQuery
{ "repo_name": "Godin/sonar", "path": "server/sonar-db-dao/src/main/java/org/sonar/db/qualityprofile/QProfileChangeDao.java", "license": "lgpl-3.0", "size": 2479 }
[ "org.sonar.db.DbSession" ]
import org.sonar.db.DbSession;
import org.sonar.db.*;
[ "org.sonar.db" ]
org.sonar.db;
1,110,850
public Graph getGraphRenderer() { return getGraphRenderer(getGraphType(), null); }
Graph function() { return getGraphRenderer(getGraphType(), null); }
/** * Returns the graph renderer of the current graph. * * @return the graph renderer of the current graph */
Returns the graph renderer of the current graph
getGraphRenderer
{ "repo_name": "amuniz/analysis-core-plugin", "path": "src/main/java/hudson/plugins/analysis/graph/GraphConfigurationView.java", "license": "mit", "size": 11077 }
[ "hudson.util.Graph" ]
import hudson.util.Graph;
import hudson.util.*;
[ "hudson.util" ]
hudson.util;
1,279,875
void setStep(BigDecimal value);
void setStep(BigDecimal value);
/** * Sets the value of the '{@link org.openhab.model.sitemap.Setpoint#getStep <em>Step</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @param value the new value of the '<em>Step</em>' attribute. * @see #getStep() * @generated */
Sets the value of the '<code>org.openhab.model.sitemap.Setpoint#getStep Step</code>' attribute.
setStep
{ "repo_name": "dvanherbergen/openhab-core", "path": "bundles/org.openhab.core.compat1x/src/main/java/org/openhab/model/sitemap/Setpoint.java", "license": "epl-1.0", "size": 3501 }
[ "java.math.BigDecimal" ]
import java.math.BigDecimal;
import java.math.*;
[ "java.math" ]
java.math;
1,587,762
public JavaRDD<String> toJavaRDDStringCSV() { return MLContextConversionUtil.matrixObjectToJavaRDDStringCSV(matrixObject); }
JavaRDD<String> function() { return MLContextConversionUtil.matrixObjectToJavaRDDStringCSV(matrixObject); }
/** * Obtain the matrix as a {@code JavaRDD<String>} in CSV format * * @return the matrix as a {@code JavaRDD<String>} in CSV format */
Obtain the matrix as a JavaRDD in CSV format
toJavaRDDStringCSV
{ "repo_name": "niketanpansare/incubator-systemml", "path": "src/main/java/org/apache/sysml/api/mlcontext/Matrix.java", "license": "apache-2.0", "size": 9514 }
[ "org.apache.spark.api.java.JavaRDD" ]
import org.apache.spark.api.java.JavaRDD;
import org.apache.spark.api.java.*;
[ "org.apache.spark" ]
org.apache.spark;
120,707
public void add(Node node) { values = LessUtils.initList(values, 2); values.add(node); evaluate |= node.needsEval(); }
void function(Node node) { values = LessUtils.initList(values, 2); values.add(node); evaluate = node.needsEval(); }
/** * Adds a node to the list of values. */
Adds a node to the list of values
add
{ "repo_name": "Squarespace/less-compiler", "path": "src/main/java/com/squarespace/less/model/Expression.java", "license": "apache-2.0", "size": 3687 }
[ "com.squarespace.less.core.LessUtils" ]
import com.squarespace.less.core.LessUtils;
import com.squarespace.less.core.*;
[ "com.squarespace.less" ]
com.squarespace.less;
1,030,485
public Matrix getMatrix() { return matrix; } } private @NonNull List<FlutterMutator> mutators; private List<Path> finalClippingPaths; private Matrix finalMatrix; public FlutterMutatorsStack() { this.mutators = new ArrayList<FlutterMutator>(); finalMatrix = new Matrix(); finalCl...
Matrix function() { return matrix; } } private @NonNull List<FlutterMutator> mutators; private List<Path> finalClippingPaths; private Matrix finalMatrix; public FlutterMutatorsStack() { this.mutators = new ArrayList<FlutterMutator>(); finalMatrix = new Matrix(); finalClippingPaths = new ArrayList<Path>(); }
/** * Get the matrix of the mutator if the {@link #getType()} returns FlutterMutatorType.TRANSFORM. * * @return the matrix if the type is FlutterMutatorType.TRANSFORM; otherwise null. */
Get the matrix of the mutator if the <code>#getType()</code> returns FlutterMutatorType.TRANSFORM
getMatrix
{ "repo_name": "rmacnak-google/engine", "path": "shell/platform/android/io/flutter/embedding/engine/mutatorsstack/FlutterMutatorsStack.java", "license": "bsd-3-clause", "size": 6643 }
[ "android.graphics.Matrix", "android.graphics.Path", "androidx.annotation.NonNull", "java.util.ArrayList", "java.util.List" ]
import android.graphics.Matrix; import android.graphics.Path; import androidx.annotation.NonNull; import java.util.ArrayList; import java.util.List;
import android.graphics.*; import androidx.annotation.*; import java.util.*;
[ "android.graphics", "androidx.annotation", "java.util" ]
android.graphics; androidx.annotation; java.util;
1,287,812
DBSObject getChild(@NotNull DBRProgressMonitor monitor, @NotNull String childName) throws DBException;
DBSObject getChild(@NotNull DBRProgressMonitor monitor, @NotNull String childName) throws DBException;
/** * Gets child object by its name. * In most cases object name have to be case insensitive. * * @param monitor progress monitor * @param childName name of child object * @throws DBException on any DB error * @return child object or null */
Gets child object by its name. In most cases object name have to be case insensitive
getChild
{ "repo_name": "ruspl-afed/dbeaver", "path": "plugins/org.jkiss.dbeaver.model/src/org/jkiss/dbeaver/model/struct/DBSObjectContainer.java", "license": "apache-2.0", "size": 2991 }
[ "org.jkiss.code.NotNull", "org.jkiss.dbeaver.DBException", "org.jkiss.dbeaver.model.runtime.DBRProgressMonitor" ]
import org.jkiss.code.NotNull; import org.jkiss.dbeaver.DBException; import org.jkiss.dbeaver.model.runtime.DBRProgressMonitor;
import org.jkiss.code.*; import org.jkiss.dbeaver.*; import org.jkiss.dbeaver.model.runtime.*;
[ "org.jkiss.code", "org.jkiss.dbeaver" ]
org.jkiss.code; org.jkiss.dbeaver;
2,788,690