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
Map<String,Entry<Long,Long>> getTableSpaceUtilization();
Map<String,Entry<Long,Long>> getTableSpaceUtilization();
/** * Gets the space usage and limit for each table. */
Gets the space usage and limit for each table
getTableSpaceUtilization
{ "repo_name": "francisliu/hbase", "path": "hbase-hadoop-compat/src/main/java/org/apache/hadoop/hbase/master/MetricsMasterWrapper.java", "license": "apache-2.0", "size": 3531 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
649,864
public void triggerDetector(FeFillRangeDetector detect) { throw new SubclassResponsibilityException(); }
void function(FeFillRangeDetector detect) { throw new SubclassResponsibilityException(); }
/** * A Detector has been added to my parent. Walk down and trigger it on all non-partial stuff */
A Detector has been added to my parent. Walk down and trigger it on all non-partial stuff
triggerDetector
{ "repo_name": "jonesd/udanax-gold2java", "path": "abora-gold/src/generated-sources/translator/info/dgjones/abora/gold/be/ents/OrglRoot.java", "license": "mit", "size": 23521 }
[ "info.dgjones.abora.gold.detect.FeFillRangeDetector", "info.dgjones.abora.gold.java.exception.SubclassResponsibilityException" ]
import info.dgjones.abora.gold.detect.FeFillRangeDetector; import info.dgjones.abora.gold.java.exception.SubclassResponsibilityException;
import info.dgjones.abora.gold.detect.*; import info.dgjones.abora.gold.java.exception.*;
[ "info.dgjones.abora" ]
info.dgjones.abora;
1,485,327
private static double builtin( double[] a, int ai, final double init, final int len, Builtin aggop ) { double val = init; for( int i=0; i<len; i++, ai++ ) val = aggop.execute2( val, a[ ai ] ); return val; }
static double function( double[] a, int ai, final double init, final int len, Builtin aggop ) { double val = init; for( int i=0; i<len; i++, ai++ ) val = aggop.execute2( val, a[ ai ] ); return val; }
/** * Meant for builtin function ops (min, max) * * @param a * @param ai * @param init * @param len * @param aggop * @return * @throws DMLRuntimeException */
Meant for builtin function ops (min, max)
builtin
{ "repo_name": "dusenberrymw/systemml_old", "path": "system-ml/src/main/java/com/ibm/bi/dml/runtime/matrix/data/LibMatrixAgg.java", "license": "apache-2.0", "size": 58653 }
[ "com.ibm.bi.dml.runtime.functionobjects.Builtin" ]
import com.ibm.bi.dml.runtime.functionobjects.Builtin;
import com.ibm.bi.dml.runtime.functionobjects.*;
[ "com.ibm.bi" ]
com.ibm.bi;
1,148,627
private int getDestinationOffset(List<String> args) { if (args.size() > 2) { return 1; } else { return 0; } }
int function(List<String> args) { if (args.size() > 2) { return 1; } else { return 0; } }
/** * gets the index offset for the destination * * @param args arguments * @return 0 if there is no name, 1 otherwise */
gets the index offset for the destination
getDestinationOffset
{ "repo_name": "AntumDeluge/arianne-stendhal", "path": "src/games/stendhal/server/script/AdminPortal.java", "license": "gpl-2.0", "size": 3583 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
725,994
FlowFile removeAttribute(FlowFile flowFile, String key);
FlowFile removeAttribute(FlowFile flowFile, String key);
/** * Removes the given FlowFile attribute with the given key. If the key is * named {@code uuid}, this method will return the same FlowFile without * removing any attribute. * * @param flowFile to update * @param key of attribute * @return FlowFile the updated FlowFile * @throws...
Removes the given FlowFile attribute with the given key. If the key is named uuid, this method will return the same FlowFile without removing any attribute
removeAttribute
{ "repo_name": "pvillard31/nifi", "path": "nifi-api/src/main/java/org/apache/nifi/processor/ProcessSession.java", "license": "apache-2.0", "size": 54052 }
[ "org.apache.nifi.flowfile.FlowFile" ]
import org.apache.nifi.flowfile.FlowFile;
import org.apache.nifi.flowfile.*;
[ "org.apache.nifi" ]
org.apache.nifi;
1,133,798
public whp_site_danger_list fetchByPrimaryKey(long whp_site_danger_list_id) throws SystemException { whp_site_danger_list whp_site_danger_list = (whp_site_danger_list)EntityCacheUtil.getResult(whp_site_danger_listModelImpl.ENTITY_CACHE_ENABLED, whp_site_danger_listImpl.class, whp_site_danger_list_id); if ...
whp_site_danger_list function(long whp_site_danger_list_id) throws SystemException { whp_site_danger_list whp_site_danger_list = (whp_site_danger_list)EntityCacheUtil.getResult(whp_site_danger_listModelImpl.ENTITY_CACHE_ENABLED, whp_site_danger_listImpl.class, whp_site_danger_list_id); if (whp_site_danger_list == _null...
/** * Returns the whp_site_danger_list with the primary key or returns <code>null</code> if it could not be found. * * @param whp_site_danger_list_id the primary key of the whp_site_danger_list * @return the whp_site_danger_list, or <code>null</code> if a whp_site_danger_list with the primary key could not be f...
Returns the whp_site_danger_list with the primary key or returns <code>null</code> if it could not be found
fetchByPrimaryKey
{ "repo_name": "iucn-whp/world-heritage-outlook", "path": "portlets/iucn-dbservice-portlet/docroot/WEB-INF/src/com/iucn/whp/dbservice/service/persistence/whp_site_danger_listPersistenceImpl.java", "license": "gpl-2.0", "size": 59667 }
[ "com.liferay.portal.kernel.dao.orm.EntityCacheUtil", "com.liferay.portal.kernel.dao.orm.Session", "com.liferay.portal.kernel.exception.SystemException" ]
import com.liferay.portal.kernel.dao.orm.EntityCacheUtil; import com.liferay.portal.kernel.dao.orm.Session; import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.dao.orm.*; import com.liferay.portal.kernel.exception.*;
[ "com.liferay.portal" ]
com.liferay.portal;
633,241
if (!dataSolverMap.containsKey(dataSolver)) { try { AbstractPlotDataSolver plotDataSolver = dataSolver.getDataSolverImplementation().newInstance(); dataSolverMap.put(dataSolver, plotDataSolver); } catch (Exception e) { throw new RuntimeException(e); } } return dataSolverMap.get(dataSolver); ...
if (!dataSolverMap.containsKey(dataSolver)) { try { AbstractPlotDataSolver plotDataSolver = dataSolver.getDataSolverImplementation().newInstance(); dataSolverMap.put(dataSolver, plotDataSolver); } catch (Exception e) { throw new RuntimeException(e); } } return dataSolverMap.get(dataSolver); } private static PlotDataSol...
/** * Returns a {@link AbstractPlotDataSolver} implementation of the given {@link EPlotDataSolver}. * There is only one instance of each dataSolver which is stored in the {@link #dataSolverMap}. * If there is no instance of the desired implementation, a new one is created and stored in the * map. * * @param...
Returns a <code>AbstractPlotDataSolver</code> implementation of the given <code>EPlotDataSolver</code>. There is only one instance of each dataSolver which is stored in the <code>#dataSolverMap</code>. If there is no instance of the desired implementation, a new one is created and stored in the map
getDataSolverInstance
{ "repo_name": "inspectIT/inspectIT", "path": "inspectit.ui.rcp/src/main/java/rocks/inspectit/ui/rcp/editor/graph/plot/datasolver/impl/PlotDataSolverFactory.java", "license": "agpl-3.0", "size": 2956 }
[ "rocks.inspectit.ui.rcp.editor.graph.plot.datasolver.AbstractPlotDataSolver" ]
import rocks.inspectit.ui.rcp.editor.graph.plot.datasolver.AbstractPlotDataSolver;
import rocks.inspectit.ui.rcp.editor.graph.plot.datasolver.*;
[ "rocks.inspectit.ui" ]
rocks.inspectit.ui;
2,267,462
public JwkSourceReactiveJwtDecoderBuilder jwsAlgorithm(JwsAlgorithm jwsAlgorithm) { Assert.notNull(jwsAlgorithm, "jwsAlgorithm cannot be null"); this.jwsAlgorithm = JWSAlgorithm.parse(jwsAlgorithm.getName()); return this; }
JwkSourceReactiveJwtDecoderBuilder function(JwsAlgorithm jwsAlgorithm) { Assert.notNull(jwsAlgorithm, STR); this.jwsAlgorithm = JWSAlgorithm.parse(jwsAlgorithm.getName()); return this; }
/** * Use the given signing * <a href="https://tools.ietf.org/html/rfc7515#section-4.1.1" target= * "_blank">algorithm</a>. * @param jwsAlgorithm the algorithm to use * @return a {@link JwkSourceReactiveJwtDecoderBuilder} for further configurations */
Use the given signing algorithm
jwsAlgorithm
{ "repo_name": "fhanik/spring-security", "path": "oauth2/oauth2-jose/src/main/java/org/springframework/security/oauth2/jwt/NimbusReactiveJwtDecoder.java", "license": "apache-2.0", "size": 24122 }
[ "com.nimbusds.jose.JWSAlgorithm", "org.springframework.security.oauth2.jose.jws.JwsAlgorithm", "org.springframework.util.Assert" ]
import com.nimbusds.jose.JWSAlgorithm; import org.springframework.security.oauth2.jose.jws.JwsAlgorithm; import org.springframework.util.Assert;
import com.nimbusds.jose.*; import org.springframework.security.oauth2.jose.jws.*; import org.springframework.util.*;
[ "com.nimbusds.jose", "org.springframework.security", "org.springframework.util" ]
com.nimbusds.jose; org.springframework.security; org.springframework.util;
177,646
EAttribute getIsExpression_Op();
EAttribute getIsExpression_Op();
/** * Returns the meta object for the attribute '{@link com.euclideanspace.spad.editor.IsExpression#getOp <em>Op</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for the attribute '<em>Op</em>'. * @see com.euclideanspace.spad.editor.IsExpression#getOp() * @see #getIs...
Returns the meta object for the attribute '<code>com.euclideanspace.spad.editor.IsExpression#getOp Op</code>'.
getIsExpression_Op
{ "repo_name": "martinbaker/euclideanspace", "path": "com.euclideanspace.spad/src-gen/com/euclideanspace/spad/editor/EditorPackage.java", "license": "agpl-3.0", "size": 593321 }
[ "org.eclipse.emf.ecore.EAttribute" ]
import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
1,228,852
public static String getBackReferenceFileName(final Path dirPath) { return dirPath.getName().substring(BACK_REFERENCES_DIRECTORY_PREFIX.length()); }
static String function(final Path dirPath) { return dirPath.getName().substring(BACK_REFERENCES_DIRECTORY_PREFIX.length()); }
/** * Get the referenced file name from the reference link directory path. * * @param dirPath Link references directory path * @return Name of the file referenced */
Get the referenced file name from the reference link directory path
getBackReferenceFileName
{ "repo_name": "grokcoder/pbase", "path": "hbase-server/src/main/java/org/apache/hadoop/hbase/io/FileLink.java", "license": "apache-2.0", "size": 15620 }
[ "org.apache.hadoop.fs.Path" ]
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.fs.*;
[ "org.apache.hadoop" ]
org.apache.hadoop;
941,339
@SuppressLint("SetJavaScriptEnabled") private void initUIWidgets() { mViewFlipper = (ViewFlipper) findViewById(R.id.viewFlipper); mBackgroundImageView = (ImageView) findViewById(R.id.background); mTitleView = (TextView) findViewById(R.id.title); mLeftTitleButton = (Button) findV...
@SuppressLint(STR) void function() { mViewFlipper = (ViewFlipper) findViewById(R.id.viewFlipper); mBackgroundImageView = (ImageView) findViewById(R.id.background); mTitleView = (TextView) findViewById(R.id.title); mLeftTitleButton = (Button) findViewById(R.id.left_title_button); mRightTitleButton = (Button) findViewByI...
/** * Sets up the primary UI widgets (spinner and buttons), and how to * handle interactions. */
Sets up the primary UI widgets (spinner and buttons), and how to handle interactions
initUIWidgets
{ "repo_name": "Sillson/roundware-android", "path": "rwapp/src/main/java/org/roundware/rwapp/RwSpeakActivity.java", "license": "gpl-3.0", "size": 45337 }
[ "android.annotation.SuppressLint", "android.webkit.WebSettings", "android.webkit.WebView", "android.widget.Button", "android.widget.ImageView", "android.widget.TextView", "android.widget.ViewFlipper" ]
import android.annotation.SuppressLint; import android.webkit.WebSettings; import android.webkit.WebView; import android.widget.Button; import android.widget.ImageView; import android.widget.TextView; import android.widget.ViewFlipper;
import android.annotation.*; import android.webkit.*; import android.widget.*;
[ "android.annotation", "android.webkit", "android.widget" ]
android.annotation; android.webkit; android.widget;
1,871,293
public StyleKeyFactory getKeyFactory() { return keyFactory; }
StyleKeyFactory function() { return keyFactory; }
/** * Returns the factory. * * @return The factory. */
Returns the factory
getKeyFactory
{ "repo_name": "EgorZhuk/pentaho-reporting", "path": "engine/core/src/main/java/org/pentaho/reporting/engine/classic/core/modules/misc/referencedoc/StyleKeyReferenceTableModel.java", "license": "lgpl-2.1", "size": 6356 }
[ "org.pentaho.reporting.engine.classic.core.modules.parser.ext.factory.stylekey.StyleKeyFactory" ]
import org.pentaho.reporting.engine.classic.core.modules.parser.ext.factory.stylekey.StyleKeyFactory;
import org.pentaho.reporting.engine.classic.core.modules.parser.ext.factory.stylekey.*;
[ "org.pentaho.reporting" ]
org.pentaho.reporting;
1,220,945
azure .accessManagement() .roleAssignments() .manager() .roleServiceClient() .getRoleAssignments() .listByResourceGroup("testrg", null, null, Context.NONE); }
azure .accessManagement() .roleAssignments() .manager() .roleServiceClient() .getRoleAssignments() .listByResourceGroup(STR, null, null, Context.NONE); }
/** * Sample code: List role assignments for resource group. * * @param azure The entry point for accessing resource management APIs in Azure. */
Sample code: List role assignments for resource group
listRoleAssignmentsForResourceGroup
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/authorization/generated/RoleAssignmentsListByResourceGroupSamples.java", "license": "mit", "size": 1092 }
[ "com.azure.core.util.Context" ]
import com.azure.core.util.Context;
import com.azure.core.util.*;
[ "com.azure.core" ]
com.azure.core;
726,440
private void wakeWhenReady(int keyCode) { if (DBG_WAKE) Log.d(TAG, "wakeWhenReady(" + keyCode + ")"); mWakeAndHandOff.acquire(); Message msg = mHandler.obtainMessage(WAKE_WHEN_READY, keyCode, 0); mHandler.sendMessage(msg); }
void function(int keyCode) { if (DBG_WAKE) Log.d(TAG, STR + keyCode + ")"); mWakeAndHandOff.acquire(); Message msg = mHandler.obtainMessage(WAKE_WHEN_READY, keyCode, 0); mHandler.sendMessage(msg); }
/** * Send message to keyguard telling it about a wake key so it can adjust * its state accordingly and then poke the wake lock when it is ready. * @param keyCode The wake key. * @see #handleWakeWhenReady * @see #onWakeKeyWhenKeyguardShowingTq(int) */
Send message to keyguard telling it about a wake key so it can adjust its state accordingly and then poke the wake lock when it is ready
wakeWhenReady
{ "repo_name": "haikuowuya/android_system_code", "path": "src/com/android/internal/policy/impl/keyguard/KeyguardViewMediator.java", "license": "apache-2.0", "size": 54599 }
[ "android.os.Message", "android.util.Log" ]
import android.os.Message; import android.util.Log;
import android.os.*; import android.util.*;
[ "android.os", "android.util" ]
android.os; android.util;
2,332,495
OutputParameters generateOutputParametersQuery(final String pathValue, final String pathOperation) ;
OutputParameters generateOutputParametersQuery(final String pathValue, final String pathOperation) ;
/** * Generate all the output query parameters * @param pathValue with the path value * @param pathOperation with the path operation * @return the output parameters */
Generate all the output query parameters
generateOutputParametersQuery
{ "repo_name": "BBVA-CIB/APIRestGenerator", "path": "core/src/main/java/com/bbva/kltt/apirest/core/generator/output/language/IOutputLanguageParameters.java", "license": "apache-2.0", "size": 4775 }
[ "com.bbva.kltt.apirest.core.generator.output.parameters.OutputParameters" ]
import com.bbva.kltt.apirest.core.generator.output.parameters.OutputParameters;
import com.bbva.kltt.apirest.core.generator.output.parameters.*;
[ "com.bbva.kltt" ]
com.bbva.kltt;
1,224,174
@Test public void testGetUsers() { List<User> users = User.getUsers(); assertNotNull(users); assertEquals(1, users.size()); }
void function() { List<User> users = User.getUsers(); assertNotNull(users); assertEquals(1, users.size()); }
/** * Verifies that the list of users can be successfully retrieved */
Verifies that the list of users can be successfully retrieved
testGetUsers
{ "repo_name": "philmbailey/fridgester", "path": "app/src/androidTest/java/com/fridgester/fridgester/UserInstrumentedTest.java", "license": "mit", "size": 5542 }
[ "java.util.List", "junit.framework.Assert" ]
import java.util.List; import junit.framework.Assert;
import java.util.*; import junit.framework.*;
[ "java.util", "junit.framework" ]
java.util; junit.framework;
1,060,345
Map<String, String> getAllStorageResourceIdList() throws AppCatalogException;
Map<String, String> getAllStorageResourceIdList() throws AppCatalogException;
/** * This method will retrieve all the storage resource id with it's name * @return map of storage resource ids + name * @throws AppCatalogException */
This method will retrieve all the storage resource id with it's name
getAllStorageResourceIdList
{ "repo_name": "gouravshenoy/airavata", "path": "modules/registry/registry-cpi/src/main/java/org/apache/airavata/registry/cpi/StorageResource.java", "license": "apache-2.0", "size": 3613 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
609,963
public DfaValue create(DfaValue left, DfaValue right, DfaMemoryState state, DfIntegralType resultType, LongRangeBinOp op) { if (op == null) return myFactory.getUnknown(); DfaValue value = doCreate(left, right, state, resultType, op); if (value != null) { return value; } DfInteg...
DfaValue function(DfaValue left, DfaValue right, DfaMemoryState state, DfIntegralType resultType, LongRangeBinOp op) { if (op == null) return myFactory.getUnknown(); DfaValue value = doCreate(left, right, state, resultType, op); if (value != null) { return value; } DfIntegralType leftType = ObjectUtils.tryCast(state.ge...
/** * Create a new value as a result of applying binary operation op to left and right values * @param left left value * @param right right value * @param state memory state * @param resultType declared result type * @param op operation to apply * @return a value that represents a com...
Create a new value as a result of applying binary operation op to left and right values
create
{ "repo_name": "mdaniel/intellij-community", "path": "platform/analysis-api/src/com/intellij/codeInspection/dataFlow/value/DfaBinOpValue.java", "license": "apache-2.0", "size": 11918 }
[ "com.intellij.codeInspection.dataFlow.memory.DfaMemoryState", "com.intellij.codeInspection.dataFlow.rangeSet.LongRangeBinOp", "com.intellij.codeInspection.dataFlow.rangeSet.LongRangeSet", "com.intellij.codeInspection.dataFlow.types.DfIntegralType", "com.intellij.codeInspection.dataFlow.types.DfType", "com...
import com.intellij.codeInspection.dataFlow.memory.DfaMemoryState; import com.intellij.codeInspection.dataFlow.rangeSet.LongRangeBinOp; import com.intellij.codeInspection.dataFlow.rangeSet.LongRangeSet; import com.intellij.codeInspection.dataFlow.types.DfIntegralType; import com.intellij.codeInspection.dataFlow.types.D...
import com.intellij.*; import com.intellij.util.*;
[ "com.intellij", "com.intellij.util" ]
com.intellij; com.intellij.util;
1,098,490
public List<String> getNamesOfAllQueuesBound() { List<String> queueNames = new ArrayList<>(); List<StorageQueue> queuesList = getAllBoundQueues(); for (StorageQueue queue : queuesList) { queueNames.add(queue.getName()); } return queueNames; }
List<String> function() { List<String> queueNames = new ArrayList<>(); List<StorageQueue> queuesList = getAllBoundQueues(); for (StorageQueue queue : queuesList) { queueNames.add(queue.getName()); } return queueNames; }
/** * Get names of all queues bound to this message router * * @return List of queues */
Get names of all queues bound to this message router
getNamesOfAllQueuesBound
{ "repo_name": "hastef88/andes", "path": "modules/andes-core/broker/src/main/java/org/wso2/andes/kernel/router/AndesMessageRouter.java", "license": "apache-2.0", "size": 8147 }
[ "java.util.ArrayList", "java.util.List", "org.wso2.andes.kernel.subscription.StorageQueue" ]
import java.util.ArrayList; import java.util.List; import org.wso2.andes.kernel.subscription.StorageQueue;
import java.util.*; import org.wso2.andes.kernel.subscription.*;
[ "java.util", "org.wso2.andes" ]
java.util; org.wso2.andes;
1,517,839
void refreshDirectoriesOrStoredObjects(Container container, Directory parent, SwiftCallback callback);
void refreshDirectoriesOrStoredObjects(Container container, Directory parent, SwiftCallback callback);
/** * refreshes the directories and stored object list in the given container under the given parent. * @param container the container. * @param parent the parent directory. * @param callback the callback to call when done. */
refreshes the directories and stored object list in the given container under the given parent
refreshDirectoriesOrStoredObjects
{ "repo_name": "webs86/swift-explorer", "path": "src/main/java/org/swiftexplorer/swift/operations/SwiftOperations.java", "license": "apache-2.0", "size": 15340 }
[ "org.javaswift.joss.model.Container", "org.javaswift.joss.model.Directory" ]
import org.javaswift.joss.model.Container; import org.javaswift.joss.model.Directory;
import org.javaswift.joss.model.*;
[ "org.javaswift.joss" ]
org.javaswift.joss;
1,087,934
public void initializeMap(final MapPresenter mapPresenter, String applicationId, String id, final DefaultMapWidget... mapWidgets) { GwtCommand commandRequest = new GwtCommand(GetMapConfigurationRequest.COMMAND); commandRequest.setCommandRequest(new GetMapConfigurationRequest(id, applicationId)); commandServ...
void function(final MapPresenter mapPresenter, String applicationId, String id, final DefaultMapWidget... mapWidgets) { GwtCommand commandRequest = new GwtCommand(GetMapConfigurationRequest.COMMAND); commandRequest.setCommandRequest(new GetMapConfigurationRequest(id, applicationId)); commandService.execute(commandReque...
/** * Initialize the map by fetching a configuration on the server. * * @param mapPresenter The map to initialize. * @param applicationId The application ID in the backend configuration. * @param id The map ID in the backend configuration. * @param mapWidgets A set of widgets that should be added to the ma...
Initialize the map by fetching a configuration on the server
initializeMap
{ "repo_name": "geomajas/geomajas-project-client-gwt2", "path": "server-extension/src/main/java/org/geomajas/gwt2/client/GeomajasServerExtension.java", "license": "agpl-3.0", "size": 10248 }
[ "org.geomajas.command.dto.GetMapConfigurationRequest", "org.geomajas.command.dto.GetMapConfigurationResponse", "org.geomajas.gwt.client.command.AbstractCommandCallback", "org.geomajas.gwt.client.command.GwtCommand", "org.geomajas.gwt2.client.map.MapPresenter", "org.geomajas.gwt2.client.widget.DefaultMapWi...
import org.geomajas.command.dto.GetMapConfigurationRequest; import org.geomajas.command.dto.GetMapConfigurationResponse; import org.geomajas.gwt.client.command.AbstractCommandCallback; import org.geomajas.gwt.client.command.GwtCommand; import org.geomajas.gwt2.client.map.MapPresenter; import org.geomajas.gwt2.client.wi...
import org.geomajas.command.dto.*; import org.geomajas.gwt.client.command.*; import org.geomajas.gwt2.client.map.*; import org.geomajas.gwt2.client.widget.*;
[ "org.geomajas.command", "org.geomajas.gwt", "org.geomajas.gwt2" ]
org.geomajas.command; org.geomajas.gwt; org.geomajas.gwt2;
1,091,425
long countByExample(BranchExample example);
long countByExample(BranchExample example);
/** * This method was generated by MyBatis Generator. * This method corresponds to the database table p_branch * * @mbg.generated Tue Jun 13 20:24:59 CST 2017 */
This method was generated by MyBatis Generator. This method corresponds to the database table p_branch
countByExample
{ "repo_name": "freeman0432/ssmfw", "path": "src/main/java/com/freeman/project/sm/dao/BranchMapper.java", "license": "apache-2.0", "size": 3779 }
[ "com.freeman.project.sm.po.BranchExample" ]
import com.freeman.project.sm.po.BranchExample;
import com.freeman.project.sm.po.*;
[ "com.freeman.project" ]
com.freeman.project;
72,307
public synchronized void flush() throws IOException { checkNotClosed(); trimToSize(); journalWriter.flush(); }
synchronized void function() throws IOException { checkNotClosed(); trimToSize(); journalWriter.flush(); }
/** * Force buffered operations to the filesystem. */
Force buffered operations to the filesystem
flush
{ "repo_name": "goodev/android-discourse", "path": "discourse2/src/main/java/com/squareup/okhttp/internal/DiskLruCache.java", "license": "apache-2.0", "size": 33969 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
2,252,578
@Test public void testClose_with_normal_FileInputStream() throws Exception { rpcInputStream.close(); assertThrows(IOException.class, () -> { byte[] targetBytes = new byte[1001]; rpcInputStream.read(targetBytes); }); }
void function() throws Exception { rpcInputStream.close(); assertThrows(IOException.class, () -> { byte[] targetBytes = new byte[1001]; rpcInputStream.read(targetBytes); }); }
/** * Method: close() */
Method: close()
testClose_with_normal_FileInputStream
{ "repo_name": "groboclown/p4ic4idea", "path": "p4java/src/test/java/com/perforce/p4java/impl/mapbased/rpc/sys/RpcInputStreamTest.java", "license": "apache-2.0", "size": 9201 }
[ "java.io.IOException", "org.junit.jupiter.api.Assertions" ]
import java.io.IOException; import org.junit.jupiter.api.Assertions;
import java.io.*; import org.junit.jupiter.api.*;
[ "java.io", "org.junit.jupiter" ]
java.io; org.junit.jupiter;
2,765,492
long getKey(SearchRow row, long ifEmpty, long ifNull) { if (row == null) { return ifEmpty; } Value v = row.getValue(mainIndexColumn); if (v == null) { throw DbException.throwInternalError(row.toString()); } else if (v == ValueNull.INSTANCE) { ...
long getKey(SearchRow row, long ifEmpty, long ifNull) { if (row == null) { return ifEmpty; } Value v = row.getValue(mainIndexColumn); if (v == null) { throw DbException.throwInternalError(row.toString()); } else if (v == ValueNull.INSTANCE) { return ifNull; } return v.getLong(); }
/** * Get the key from the row. * * @param row the row * @param ifEmpty the value to use if the row is empty * @param ifNull the value to use if the column is NULL * @return the key */
Get the key from the row
getKey
{ "repo_name": "paulnguyen/data", "path": "sqldbs/h2java/src/main/org/h2/index/PageDataIndex.java", "license": "apache-2.0", "size": 17812 }
[ "org.h2.message.DbException", "org.h2.result.SearchRow", "org.h2.value.Value", "org.h2.value.ValueNull" ]
import org.h2.message.DbException; import org.h2.result.SearchRow; import org.h2.value.Value; import org.h2.value.ValueNull;
import org.h2.message.*; import org.h2.result.*; import org.h2.value.*;
[ "org.h2.message", "org.h2.result", "org.h2.value" ]
org.h2.message; org.h2.result; org.h2.value;
838,979
public static BundleContext getContext() { return context; }
static BundleContext function() { return context; }
/** * Returns the bundle context of this bundle * * @return the bundle context */
Returns the bundle context of this bundle
getContext
{ "repo_name": "computergeek1507/openhab", "path": "bundles/binding/org.openhab.binding.xpl/src/main/java/org/openhab/binding/xpl/internal/XplActivator.java", "license": "epl-1.0", "size": 1502 }
[ "org.osgi.framework.BundleContext" ]
import org.osgi.framework.BundleContext;
import org.osgi.framework.*;
[ "org.osgi.framework" ]
org.osgi.framework;
4,797
List<Alignment> alignmentList = new ArrayList<Alignment>(); Alignmentlist al = AlMarshallerUnmarshaller.getInstance().unmarshal(reader); for (net.loomchild.maligna.util.bind.al.Alignment a : al.getAlignment()) { List<String> sourceSegmentList = createSegmentList(a.getSourcelist()); List<String> targ...
List<Alignment> alignmentList = new ArrayList<Alignment>(); Alignmentlist al = AlMarshallerUnmarshaller.getInstance().unmarshal(reader); for (net.loomchild.maligna.util.bind.al.Alignment a : al.getAlignment()) { List<String> sourceSegmentList = createSegmentList(a.getSourcelist()); List<String> targetSegmentList = crea...
/** * Parses a document into a list of alignments. * Retrieves all information stored in this format including score. */
Parses a document into a list of alignments. Retrieves all information stored in this format including score
parse
{ "repo_name": "loomchild/maligna", "path": "maligna/src/main/java/net/loomchild/maligna/parser/AlParser.java", "license": "mit", "size": 1629 }
[ "java.util.ArrayList", "java.util.List", "net.loomchild.maligna.coretypes.Alignment", "net.loomchild.maligna.util.bind.AlMarshallerUnmarshaller", "net.loomchild.maligna.util.bind.al.Alignmentlist" ]
import java.util.ArrayList; import java.util.List; import net.loomchild.maligna.coretypes.Alignment; import net.loomchild.maligna.util.bind.AlMarshallerUnmarshaller; import net.loomchild.maligna.util.bind.al.Alignmentlist;
import java.util.*; import net.loomchild.maligna.coretypes.*; import net.loomchild.maligna.util.bind.*; import net.loomchild.maligna.util.bind.al.*;
[ "java.util", "net.loomchild.maligna" ]
java.util; net.loomchild.maligna;
2,014,461
public Set<String> getTextAnnotationWords() { HashSet<String> result = new HashSet<String>(); StringTokenizer tok = new StringTokenizer(getAnnotationText(), " \t\r\n\f.,:;-"); while (tok.hasMoreTokens()) { result.add(tok.nextToken()); } return result; }
Set<String> function() { HashSet<String> result = new HashSet<String>(); StringTokenizer tok = new StringTokenizer(getAnnotationText(), STR); while (tok.hasMoreTokens()) { result.add(tok.nextToken()); } return result; }
/** * Get set of words in the text annotation. */
Get set of words in the text annotation
getTextAnnotationWords
{ "repo_name": "jesusaplsoft/FindAllBugs", "path": "findbugs/src/java/edu/umd/cs/findbugs/BugInstance.java", "license": "gpl-2.0", "size": 96981 }
[ "java.util.HashSet", "java.util.Set", "java.util.StringTokenizer" ]
import java.util.HashSet; import java.util.Set; import java.util.StringTokenizer;
import java.util.*;
[ "java.util" ]
java.util;
464,638
private void cleanupDetachDir(File detachDir) throws IOException { if (!DataNodeLayoutVersion.supports( LayoutVersion.Feature.APPEND_RBW_DIR, layoutVersion) && detachDir.exists() && detachDir.isDirectory() ) { if (FileUtil.list(detachDir).length != 0 ) { throw new IOExcept...
void function(File detachDir) throws IOException { if (!DataNodeLayoutVersion.supports( LayoutVersion.Feature.APPEND_RBW_DIR, layoutVersion) && detachDir.exists() && detachDir.isDirectory() ) { if (FileUtil.list(detachDir).length != 0 ) { throw new IOException(STR + detachDir + STR + STR + STR); } else if (!detachDir.d...
/** * Cleanup the detachDir. * * If the directory is not empty report an error; * Otherwise remove the directory. * * @param detachDir detach directory * @throws IOException if the directory is not empty or it can not be removed */
Cleanup the detachDir. If the directory is not empty report an error; Otherwise remove the directory
cleanupDetachDir
{ "repo_name": "vesense/hadoop", "path": "hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/DataStorage.java", "license": "apache-2.0", "size": 48697 }
[ "java.io.File", "java.io.IOException", "org.apache.hadoop.fs.FileUtil", "org.apache.hadoop.hdfs.protocol.LayoutVersion" ]
import java.io.File; import java.io.IOException; import org.apache.hadoop.fs.FileUtil; import org.apache.hadoop.hdfs.protocol.LayoutVersion;
import java.io.*; import org.apache.hadoop.fs.*; import org.apache.hadoop.hdfs.protocol.*;
[ "java.io", "org.apache.hadoop" ]
java.io; org.apache.hadoop;
1,278,498
@ApiModelProperty(value = "URL of contributor") @JsonProperty("url") public String getUrl() { return url; }
@ApiModelProperty(value = STR) @JsonProperty("url") String function() { return url; }
/** * URL of contributor **/
URL of contributor
getUrl
{ "repo_name": "EMResearch/EMB", "path": "jdk_8_maven/cs/rest/original/catwatch/catwatch-backend/src/main/java/org/zalando/catwatch/backend/model/Contributor.java", "license": "apache-2.0", "size": 5225 }
[ "com.fasterxml.jackson.annotation.JsonProperty", "io.swagger.annotations.ApiModelProperty" ]
import com.fasterxml.jackson.annotation.JsonProperty; import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.*; import io.swagger.annotations.*;
[ "com.fasterxml.jackson", "io.swagger.annotations" ]
com.fasterxml.jackson; io.swagger.annotations;
771,771
public JsStatement destroy() { return new JsQuery(this).$().chain("autocomplete", "'destroy'"); }
JsStatement function() { return new JsQuery(this).$().chain(STR, STR); }
/** * Method to destroy the autocomplete This will return the element back to its * pre-init state. * * @return the associated JsStatement */
Method to destroy the autocomplete This will return the element back to its pre-init state
destroy
{ "repo_name": "WiQuery/wiquery", "path": "wiquery-jquery-ui/src/main/java/org/odlabs/wiquery/ui/autocomplete/Autocomplete.java", "license": "mit", "size": 15118 }
[ "org.odlabs.wiquery.core.javascript.JsQuery", "org.odlabs.wiquery.core.javascript.JsStatement" ]
import org.odlabs.wiquery.core.javascript.JsQuery; import org.odlabs.wiquery.core.javascript.JsStatement;
import org.odlabs.wiquery.core.javascript.*;
[ "org.odlabs.wiquery" ]
org.odlabs.wiquery;
2,782,573
public static MockAM launchAM(RMApp app, MockRM rm, MockNM nm) throws Exception { rm.drainEventsImplicitly(); RMAppAttempt attempt = waitForAttemptScheduled(app, rm); LOG.info("Launch AM " + attempt.getAppAttemptId()); nm.nodeHeartbeat(true); rm.drainEventsImplicitly(); MockAM am = rm.se...
static MockAM function(RMApp app, MockRM rm, MockNM nm) throws Exception { rm.drainEventsImplicitly(); RMAppAttempt attempt = waitForAttemptScheduled(app, rm); LOG.info(STR + attempt.getAppAttemptId()); nm.nodeHeartbeat(true); rm.drainEventsImplicitly(); MockAM am = rm.sendAMLaunched(attempt.getAppAttemptId()); rm.wait...
/** * NOTE: nm.nodeHeartbeat is explicitly invoked, * don't invoke it before calling launchAM */
don't invoke it before calling launchAM
launchAM
{ "repo_name": "WIgor/hadoop", "path": "hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/MockRM.java", "license": "apache-2.0", "size": 50169 }
[ "org.apache.hadoop.yarn.server.resourcemanager.rmapp.RMApp", "org.apache.hadoop.yarn.server.resourcemanager.rmapp.attempt.RMAppAttempt", "org.apache.hadoop.yarn.server.resourcemanager.rmapp.attempt.RMAppAttemptState" ]
import org.apache.hadoop.yarn.server.resourcemanager.rmapp.RMApp; import org.apache.hadoop.yarn.server.resourcemanager.rmapp.attempt.RMAppAttempt; import org.apache.hadoop.yarn.server.resourcemanager.rmapp.attempt.RMAppAttemptState;
import org.apache.hadoop.yarn.server.resourcemanager.rmapp.*; import org.apache.hadoop.yarn.server.resourcemanager.rmapp.attempt.*;
[ "org.apache.hadoop" ]
org.apache.hadoop;
1,132,956
public static UpdateStatusEventNotificationTemplateBuilder updateStatus(int id, EventNotificationTemplateStatus status) { return new UpdateStatusEventNotificationTemplateBuilder(id, status); }
static UpdateStatusEventNotificationTemplateBuilder function(int id, EventNotificationTemplateStatus status) { return new UpdateStatusEventNotificationTemplateBuilder(id, status); }
/** * Update event notification template status by id * * @param id * @param status */
Update event notification template status by id
updateStatus
{ "repo_name": "kaltura/KalturaGeneratedAPIClientsJava", "path": "src/main/java/com/kaltura/client/services/EventNotificationTemplateService.java", "license": "agpl-3.0", "size": 14914 }
[ "com.kaltura.client.enums.EventNotificationTemplateStatus" ]
import com.kaltura.client.enums.EventNotificationTemplateStatus;
import com.kaltura.client.enums.*;
[ "com.kaltura.client" ]
com.kaltura.client;
1,521,520
public void onDisconnect(ITextComponent reason) { LOGGER.info("{} lost connection: {}", new Object[] {this.getConnectionInfo(), reason.getUnformattedText()}); }
void function(ITextComponent reason) { LOGGER.info(STR, new Object[] {this.getConnectionInfo(), reason.getUnformattedText()}); }
/** * Invoked when disconnecting, the parameter is a ChatComponent describing the reason for termination */
Invoked when disconnecting, the parameter is a ChatComponent describing the reason for termination
onDisconnect
{ "repo_name": "MartyParty21/AwakenDreamsClient", "path": "mcp/src/minecraft/net/minecraft/server/network/NetHandlerLoginServer.java", "license": "gpl-3.0", "size": 11260 }
[ "net.minecraft.util.text.ITextComponent" ]
import net.minecraft.util.text.ITextComponent;
import net.minecraft.util.text.*;
[ "net.minecraft.util" ]
net.minecraft.util;
134,633
public static List<String> getStringList(List<? extends Object> list) { List<String> stringList = new ArrayList<>(); for (Object o : list) { stringList.add(o.toString()); } return stringList; }
static List<String> function(List<? extends Object> list) { List<String> stringList = new ArrayList<>(); for (Object o : list) { stringList.add(o.toString()); } return stringList; }
/** * Returns a list containing the string representations of the elements of the given list * @param list the list where each element should be converted to a string * @return a list containing the string representations of the elments of the given list * @since 1.28 */
Returns a list containing the string representations of the elements of the given list
getStringList
{ "repo_name": "eveCSS/eveCSS", "path": "bundles/de.ptb.epics.eve.util/src/de/ptb/epics/eve/util/io/StringUtil.java", "license": "epl-1.0", "size": 3722 }
[ "java.util.ArrayList", "java.util.List" ]
import java.util.ArrayList; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,504,693
public boolean supportsGroupByUnrelated() throws SQLException { return true; }
boolean function() throws SQLException { return true; }
/** * Retrieves whether this database supports using a column that is * not in the <code>SELECT</code> statement in a * <code>GROUP BY</code> clause. * * <!-- start release-specific documentation --> * <div class="ReleaseSpecificDocumentation"> * <h3>HSQLDB-Specific Information:</h3> ...
Retrieves whether this database supports using a column that is not in the <code>SELECT</code> statement in a <code>GROUP BY</code> clause. HSQLDB-Specific Information: HSQLDB supports using a column that is not in the <code>SELECT</code> statement in a <code>GROUP BY</code> clause; this method always returns <code>tru...
supportsGroupByUnrelated
{ "repo_name": "ThangBK2009/android-source-browsing.platform--external--hsqldb", "path": "src/org/hsqldb/jdbc/JDBCDatabaseMetaData.java", "license": "bsd-3-clause", "size": 263631 }
[ "java.sql.SQLException" ]
import java.sql.SQLException;
import java.sql.*;
[ "java.sql" ]
java.sql;
765,462
public static Intent createAddToHomeIntent(Context context, String url, String title, Bitmap favicon, int rValue, int gValue, int bValue) { Intent i = new Intent(INSTALL_SHORTCUT); Intent shortcutIntent = createShortcutIntent(context, url); i.putExtra(Intent.EXTRA_SHORTCUT_INTENT...
static Intent function(Context context, String url, String title, Bitmap favicon, int rValue, int gValue, int bValue) { Intent i = new Intent(INSTALL_SHORTCUT); Intent shortcutIntent = createShortcutIntent(context, url); i.putExtra(Intent.EXTRA_SHORTCUT_INTENT, shortcutIntent); i.putExtra(Intent.EXTRA_SHORTCUT_NAME, ti...
/** * Creates an intent that will add a shortcut to the home screen. * @param context Context used to create the intent. * @param url Url of the bookmark. * @param title Title of the bookmark. * @param favicon Bookmark favicon. * @param rValue Red component of the dominant favicon color. ...
Creates an intent that will add a shortcut to the home screen
createAddToHomeIntent
{ "repo_name": "junmin-zhu/chromium-rivertrail", "path": "chrome/android/java/src/org/chromium/chrome/browser/BookmarkUtils.java", "license": "bsd-3-clause", "size": 11530 }
[ "android.content.Context", "android.content.Intent", "android.graphics.Bitmap" ]
import android.content.Context; import android.content.Intent; import android.graphics.Bitmap;
import android.content.*; import android.graphics.*;
[ "android.content", "android.graphics" ]
android.content; android.graphics;
2,593,078
public static <E,T> IterableReadProtocol<E,Vector<T>> vector(ReadProtocol<E,T> inner) { return SeqProtocol.read(inner, Vector.empty()); }
static <E,T> IterableReadProtocol<E,Vector<T>> function(ReadProtocol<E,T> inner) { return SeqProtocol.read(inner, Vector.empty()); }
/** * Reads an inner protocol multiple times. On reading, creates a {@link io.vavr.collection.Vector} to represent it. */
Reads an inner protocol multiple times. On reading, creates a <code>io.vavr.collection.Vector</code> to represent it
vector
{ "repo_name": "Tradeshift/ts-reaktive", "path": "ts-reaktive-marshal/src/main/java/com/tradeshift/reaktive/marshal/Protocol.java", "license": "mit", "size": 10747 }
[ "com.tradeshift.reaktive.marshal.IterableProtocol", "io.vavr.collection.Vector" ]
import com.tradeshift.reaktive.marshal.IterableProtocol; import io.vavr.collection.Vector;
import com.tradeshift.reaktive.marshal.*; import io.vavr.collection.*;
[ "com.tradeshift.reaktive", "io.vavr.collection" ]
com.tradeshift.reaktive; io.vavr.collection;
2,628,783
return newSetBinder(binder, type, Key.get(providerOf(type))); } /** * Returns a new multibinder that collects instances of {@code type} in a {@link java.util.Set}
return newSetBinder(binder, type, Key.get(providerOf(type))); } /** * Returns a new multibinder that collects instances of {@code type} in a {@link java.util.Set}
/** * Returns a new multibinder that collects instances of {@code type} in a {@link java.util.Set} * that is itself bound with no binding annotation. */
Returns a new multibinder that collects instances of type in a <code>java.util.Set</code> that is itself bound with no binding annotation
newSetBinder
{ "repo_name": "semeiskii/google-gin", "path": "src/com/google/gwt/inject/client/multibindings/GinMultibinder.java", "license": "apache-2.0", "size": 6360 }
[ "com.google.inject.Key" ]
import com.google.inject.Key;
import com.google.inject.*;
[ "com.google.inject" ]
com.google.inject;
846,815
protected void addPatientAgeDaysPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_ClinicalDecision_patientAgeDays_feature"), ...
void function(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString(STR), getString(STR, STR, STR), ApplicationPackage.Literals.CLINICAL_DECISION__PATIENT_AGE_DAYS, true, false, false, ItemProperty...
/** * This adds a property descriptor for the Patient Age Days feature. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */
This adds a property descriptor for the Patient Age Days feature.
addPatientAgeDaysPropertyDescriptor
{ "repo_name": "mdean77/Model-Driven-Decision-Support", "path": "edu.utah.dcc.e4.application.xcore.model/src/application/provider/ClinicalDecisionItemProvider.java", "license": "epl-1.0", "size": 19634 }
[ "org.eclipse.emf.edit.provider.ComposeableAdapterFactory", "org.eclipse.emf.edit.provider.ItemPropertyDescriptor" ]
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
2,003,323
public static void main(String args[]) { Pose3D p = new Pose3D(100.0, 10.0, 20.0, 3.45, -2.34, 1.23); Pose3D q = new Pose3D(p.getTransform()); RealMatrix m = p.getTransform(); RealMatrix t = MatrixUtils.createRealMatrix(new double[][] { {-0.23248, -0.51489, -0.82512, 100...
static void function(String args[]) { Pose3D p = new Pose3D(100.0, 10.0, 20.0, 3.45, -2.34, 1.23); Pose3D q = new Pose3D(p.getTransform()); RealMatrix m = p.getTransform(); RealMatrix t = MatrixUtils.createRealMatrix(new double[][] { {-0.23248, -0.51489, -0.82512, 100.0}, {-0.71846, 0.66274, -0.21113, 10.0}, { 0.65556,...
/** * Executes a series of unit tests to ensure the functionality of the * Pose2D class, mostly testing conversion functions. * @param args all command line arguments are ignored. */
Executes a series of unit tests to ensure the functionality of the Pose2D class, mostly testing conversion functions
main
{ "repo_name": "psigen/robotutils", "path": "src/main/java/robotutils/Pose3D.java", "license": "mit", "size": 12357 }
[ "org.apache.commons.math3.linear.MatrixUtils", "org.apache.commons.math3.linear.RealMatrix" ]
import org.apache.commons.math3.linear.MatrixUtils; import org.apache.commons.math3.linear.RealMatrix;
import org.apache.commons.math3.linear.*;
[ "org.apache.commons" ]
org.apache.commons;
715,335
public void searchAsync(SearchRequest searchRequest, ActionListener<SearchResponse> listener, Header... headers) { performRequestAsyncAndParseEntity(searchRequest, Request::search, SearchResponse::fromXContent, listener, emptySet(), headers); }
void function(SearchRequest searchRequest, ActionListener<SearchResponse> listener, Header... headers) { performRequestAsyncAndParseEntity(searchRequest, Request::search, SearchResponse::fromXContent, listener, emptySet(), headers); }
/** * Asynchronously executes a search using the Search api * * See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-search.html">Search API on elastic.co</a> */
Asynchronously executes a search using the Search api See Search API on elastic.co
searchAsync
{ "repo_name": "LeoYao/elasticsearch", "path": "client/rest-high-level/src/main/java/org/elasticsearch/client/RestHighLevelClient.java", "license": "apache-2.0", "size": 36103 }
[ "java.util.Collections", "org.apache.http.Header", "org.elasticsearch.action.ActionListener", "org.elasticsearch.action.search.SearchRequest", "org.elasticsearch.action.search.SearchResponse" ]
import java.util.Collections; import org.apache.http.Header; import org.elasticsearch.action.ActionListener; import org.elasticsearch.action.search.SearchRequest; import org.elasticsearch.action.search.SearchResponse;
import java.util.*; import org.apache.http.*; import org.elasticsearch.action.*; import org.elasticsearch.action.search.*;
[ "java.util", "org.apache.http", "org.elasticsearch.action" ]
java.util; org.apache.http; org.elasticsearch.action;
2,866,028
public AzureFirewallInner withVirtualHub(SubResource virtualHub) { if (this.innerProperties() == null) { this.innerProperties = new AzureFirewallPropertiesFormat(); } this.innerProperties().withVirtualHub(virtualHub); return this; }
AzureFirewallInner function(SubResource virtualHub) { if (this.innerProperties() == null) { this.innerProperties = new AzureFirewallPropertiesFormat(); } this.innerProperties().withVirtualHub(virtualHub); return this; }
/** * Set the virtualHub property: The virtualHub to which the firewall belongs. * * @param virtualHub the virtualHub value to set. * @return the AzureFirewallInner object itself. */
Set the virtualHub property: The virtualHub to which the firewall belongs
withVirtualHub
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AzureFirewallInner.java", "license": "mit", "size": 14546 }
[ "com.azure.core.management.SubResource" ]
import com.azure.core.management.SubResource;
import com.azure.core.management.*;
[ "com.azure.core" ]
com.azure.core;
2,263,430
public Value readPropertyValue(Collection<ObjectLabel> objlabels, String propertyname, Set<ObjectLabel> collect) { return readPropertyValue(objlabels, Value.makeTemporaryStr(propertyname), collect); }
Value function(Collection<ObjectLabel> objlabels, String propertyname, Set<ObjectLabel> collect) { return readPropertyValue(objlabels, Value.makeTemporaryStr(propertyname), collect); }
/** * 8.6.2.1 [[Get]] * Returns the value of the given property in the given objects. * The internal prototype chains are used. * Absent is converted to undefined. Attributes are set to bottom. * * @param collect if non-null, collect the objects where the property may be found */
8.6.2.1 [[Get]] Returns the value of the given property in the given objects. The internal prototype chains are used. Absent is converted to undefined. Attributes are set to bottom
readPropertyValue
{ "repo_name": "cs-au-dk/TAJS", "path": "src/dk/brics/tajs/analysis/PropVarOperations.java", "license": "apache-2.0", "size": 65791 }
[ "dk.brics.tajs.lattice.ObjectLabel", "dk.brics.tajs.lattice.Value", "java.util.Collection", "java.util.Set" ]
import dk.brics.tajs.lattice.ObjectLabel; import dk.brics.tajs.lattice.Value; import java.util.Collection; import java.util.Set;
import dk.brics.tajs.lattice.*; import java.util.*;
[ "dk.brics.tajs", "java.util" ]
dk.brics.tajs; java.util;
1,272,128
public void setCurrentFile(FileInfo file) { if (file == null) { this.currentFile = null; } else { if (!file.file.exists()) { System.err.println("File does not exist: " + file.file); return; } this.currentFile = file; addRecentProject(file); } File curFile = (curren...
void function(FileInfo file) { if (file == null) { this.currentFile = null; } else { if (!file.file.exists()) { System.err.println(STR + file.file); return; } this.currentFile = file; addRecentProject(file); } File curFile = (currentFile == null) ? null : currentFile.file; for (CurrentFileListener listener : currentFil...
/** * Sets the current file */
Sets the current file
setCurrentFile
{ "repo_name": "monadius/hol-ssreflect", "path": "src/edu/pitt/math/hol_ssreflect/ssreflect/gui/FileManager.java", "license": "mit", "size": 9819 }
[ "java.io.File" ]
import java.io.File;
import java.io.*;
[ "java.io" ]
java.io;
2,561,224
@Override public void handleRequest(SolrQueryRequest req, SolrQueryResponse rsp) { SolrRequestHandler handler = _handler; if (handler == null) { handler = getWrappedHandler(); } handler.handleRequest( req, rsp ); }
void function(SolrQueryRequest req, SolrQueryResponse rsp) { SolrRequestHandler handler = _handler; if (handler == null) { handler = getWrappedHandler(); } handler.handleRequest( req, rsp ); }
/** * Wait for the first request before initializing the wrapped handler */
Wait for the first request before initializing the wrapped handler
handleRequest
{ "repo_name": "kankedong/solr_reading", "path": "solr/core/src/java/org/apache/solr/core/RequestHandlers.java", "license": "apache-2.0", "size": 10678 }
[ "org.apache.solr.request.SolrQueryRequest", "org.apache.solr.request.SolrRequestHandler", "org.apache.solr.response.SolrQueryResponse" ]
import org.apache.solr.request.SolrQueryRequest; import org.apache.solr.request.SolrRequestHandler; import org.apache.solr.response.SolrQueryResponse;
import org.apache.solr.request.*; import org.apache.solr.response.*;
[ "org.apache.solr" ]
org.apache.solr;
641,579
public DateTimeField dayOfWeek() { return UnsupportedDateTimeField.getInstance(DateTimeFieldType.dayOfWeek(), days()); }
DateTimeField function() { return UnsupportedDateTimeField.getInstance(DateTimeFieldType.dayOfWeek(), days()); }
/** * Get the day of week field for this chronology. * * <p>DayOfWeek values are defined in * {@link org.joda.time.DateTimeConstants DateTimeConstants}. * They use the ISO definitions, where 1 is Monday and 7 is Sunday. * * @return DateTimeField or UnsupportedDateTimeField if unsuppo...
Get the day of week field for this chronology. DayOfWeek values are defined in <code>org.joda.time.DateTimeConstants DateTimeConstants</code>. They use the ISO definitions, where 1 is Monday and 7 is Sunday
dayOfWeek
{ "repo_name": "aparo/scalajs-joda", "path": "src/main/scala/org/joda/time/chrono/BaseChronology.java", "license": "apache-2.0", "size": 24594 }
[ "org.joda.time.DateTimeField", "org.joda.time.DateTimeFieldType", "org.joda.time.field.UnsupportedDateTimeField" ]
import org.joda.time.DateTimeField; import org.joda.time.DateTimeFieldType; import org.joda.time.field.UnsupportedDateTimeField;
import org.joda.time.*; import org.joda.time.field.*;
[ "org.joda.time" ]
org.joda.time;
1,469,656
@Override public GetApplicationReportResponse getApplicationReport( GetApplicationReportRequest request) throws YarnException { ApplicationId applicationId = request.getApplicationId(); UserGroupInformation callerUGI; try { callerUGI = UserGroupInformation.getCurrentUser(); } catch (IOE...
GetApplicationReportResponse function( GetApplicationReportRequest request) throws YarnException { ApplicationId applicationId = request.getApplicationId(); UserGroupInformation callerUGI; try { callerUGI = UserGroupInformation.getCurrentUser(); } catch (IOException ie) { LOG.info(STR, ie); throw RPCUtil.getRemoteExcep...
/** * It gives response which includes application report if the application * present otherwise throws ApplicationNotFoundException. */
It gives response which includes application report if the application present otherwise throws ApplicationNotFoundException
getApplicationReport
{ "repo_name": "yelshater/hadoop-2.3.0", "path": "hadoop-yarn-server-resourcemanager-2.3.0-cdh5.1.0/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/ClientRMService.java", "license": "apache-2.0", "size": 34059 }
[ "java.io.IOException", "org.apache.hadoop.security.UserGroupInformation", "org.apache.hadoop.yarn.api.protocolrecords.GetApplicationReportRequest", "org.apache.hadoop.yarn.api.protocolrecords.GetApplicationReportResponse", "org.apache.hadoop.yarn.api.records.ApplicationAccessType", "org.apache.hadoop.yarn...
import java.io.IOException; import org.apache.hadoop.security.UserGroupInformation; import org.apache.hadoop.yarn.api.protocolrecords.GetApplicationReportRequest; import org.apache.hadoop.yarn.api.protocolrecords.GetApplicationReportResponse; import org.apache.hadoop.yarn.api.records.ApplicationAccessType; import org.a...
import java.io.*; import org.apache.hadoop.security.*; import org.apache.hadoop.yarn.api.protocolrecords.*; import org.apache.hadoop.yarn.api.records.*; import org.apache.hadoop.yarn.exceptions.*; import org.apache.hadoop.yarn.ipc.*; import org.apache.hadoop.yarn.server.resourcemanager.rmapp.*;
[ "java.io", "org.apache.hadoop" ]
java.io; org.apache.hadoop;
1,762,910
@NotNull List<MeasurementTo> listMeasurements(Long pTankID);
List<MeasurementTo> listMeasurements(Long pTankID);
/** * Lists measurements of a specific tank. * * @param pTankID identifies the tank for which the the measurement were taken. * @return List of measurements, maybe empty but never null. */
Lists measurements of a specific tank
listMeasurements
{ "repo_name": "StefanSchubert/sabi", "path": "sabi-server/src/main/java/de/bluewhale/sabi/services/MeasurementService.java", "license": "mit", "size": 4673 }
[ "de.bluewhale.sabi.model.MeasurementTo", "java.util.List" ]
import de.bluewhale.sabi.model.MeasurementTo; import java.util.List;
import de.bluewhale.sabi.model.*; import java.util.*;
[ "de.bluewhale.sabi", "java.util" ]
de.bluewhale.sabi; java.util;
425,638
protected boolean computeScrollHelper() { if (mScroller.computeScrollOffset()) { if (getScrollX() != mScroller.getCurrX() || getScrollY() != mScroller.getCurrY() || mOverScrollX != mScroller.getCurrX()) { scrollTo(mScroller.getCurrX(),...
boolean function() { if (mScroller.computeScrollOffset()) { if (getScrollX() != mScroller.getCurrX() getScrollY() != mScroller.getCurrY() mOverScrollX != mScroller.getCurrX()) { scrollTo(mScroller.getCurrX(), mScroller.getCurrY()); } invalidate(); return true; } else if (mNextFirstVisibleChildIndex != INVALID_CHILD_IND...
/** * We moved this functionality to a helper function so * SmoothPagedView can reuse it. * * @return True means complete scroll, false not. */
We moved this functionality to a helper function so SmoothPagedView can reuse it
computeScrollHelper
{ "repo_name": "mingming-killer/K7UI", "path": "K7UI/src/com/eebbk/mingming/k7ui/ScrollContainer.java", "license": "apache-2.0", "size": 44806 }
[ "com.eebbk.mingming.k7utils.LogUtils" ]
import com.eebbk.mingming.k7utils.LogUtils;
import com.eebbk.mingming.k7utils.*;
[ "com.eebbk.mingming" ]
com.eebbk.mingming;
1,629,679
public SlotSwapStatus slotSwapStatus() { return this.slotSwapStatus; }
SlotSwapStatus function() { return this.slotSwapStatus; }
/** * Get the slotSwapStatus value. * * @return the slotSwapStatus value */
Get the slotSwapStatus value
slotSwapStatus
{ "repo_name": "pomortaz/azure-sdk-for-java", "path": "azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/SiteInner.java", "license": "mit", "size": 19264 }
[ "com.microsoft.azure.management.appservice.SlotSwapStatus" ]
import com.microsoft.azure.management.appservice.SlotSwapStatus;
import com.microsoft.azure.management.appservice.*;
[ "com.microsoft.azure" ]
com.microsoft.azure;
1,046,319
@Validate public void validate() { // Disable the service pController = false; // Setup the peer contact pContact = new PeerContact(pDirectory, this, pLogger); // Prepare the JSON serializer pSerializer = new JSONSerializer(); try { pSeriali...
void function() { pController = false; pContact = new PeerContact(pDirectory, this, pLogger); pSerializer = new JSONSerializer(); try { pSerializer.registerDefaultSerializers(); } catch (final Exception ex) { pLogger.log(LogService.LOG_ERROR, STR + ex, ex); return; } final HttpReceiverServlet servlet = new HttpReceiver...
/** * Component validated */
Component validated
validate
{ "repo_name": "isandlaTech/cohorte-herald", "path": "java/org.cohorte.herald.http/src/org/cohorte/herald/http/impl/HttpReceiver.java", "license": "apache-2.0", "size": 15561 }
[ "javax.servlet.ServletException", "org.cohorte.herald.http.HTTPAccess", "org.cohorte.herald.http.IHttpConstants", "org.cohorte.herald.transport.PeerContact", "org.jabsorb.ng.JSONSerializer", "org.osgi.service.http.NamespaceException", "org.osgi.service.log.LogService" ]
import javax.servlet.ServletException; import org.cohorte.herald.http.HTTPAccess; import org.cohorte.herald.http.IHttpConstants; import org.cohorte.herald.transport.PeerContact; import org.jabsorb.ng.JSONSerializer; import org.osgi.service.http.NamespaceException; import org.osgi.service.log.LogService;
import javax.servlet.*; import org.cohorte.herald.http.*; import org.cohorte.herald.transport.*; import org.jabsorb.ng.*; import org.osgi.service.http.*; import org.osgi.service.log.*;
[ "javax.servlet", "org.cohorte.herald", "org.jabsorb.ng", "org.osgi.service" ]
javax.servlet; org.cohorte.herald; org.jabsorb.ng; org.osgi.service;
571,930
public double valueToJava2D(double value, Rectangle2D area, RectangleEdge edge) { Range range = getRange(); double axisMin = range.getLowerBound(); double axisMax = range.getUpperBound(); double min = 0.0; double max = 0.0; i...
double function(double value, Rectangle2D area, RectangleEdge edge) { Range range = getRange(); double axisMin = range.getLowerBound(); double axisMax = range.getUpperBound(); double min = 0.0; double max = 0.0; if (RectangleEdge.isTopOrBottom(edge)) { min = area.getX(); max = area.getMaxX(); } else if (RectangleEdge.i...
/** * Converts a data value to a coordinate in Java2D space, assuming that the * axis runs along one edge of the specified dataArea. * <p> * Note that it is possible for the coordinate to fall outside the plotArea. * * @param value the data value. * @param area the area for p...
Converts a data value to a coordinate in Java2D space, assuming that the axis runs along one edge of the specified dataArea. Note that it is possible for the coordinate to fall outside the plotArea
valueToJava2D
{ "repo_name": "ilyessou/jfreechart", "path": "source/org/jfree/chart/axis/NumberAxis.java", "license": "lgpl-2.1", "size": 57325 }
[ "java.awt.geom.Rectangle2D", "org.jfree.chart.util.RectangleEdge", "org.jfree.data.Range" ]
import java.awt.geom.Rectangle2D; import org.jfree.chart.util.RectangleEdge; import org.jfree.data.Range;
import java.awt.geom.*; import org.jfree.chart.util.*; import org.jfree.data.*;
[ "java.awt", "org.jfree.chart", "org.jfree.data" ]
java.awt; org.jfree.chart; org.jfree.data;
1,448,889
@JsonProperty("id") public String getId() { return id; }
@JsonProperty("id") String function() { return id; }
/** * Release ID * <p> * An identifier for this particular release of information. A release identifier must be unique within the scope * of its related contracting process (defined by a common ocid), and unique within any release package it * appears in. A release identifier must not contain t...
Release ID An identifier for this particular release of information. A release identifier must be unique within the scope of its related contracting process (defined by a common ocid), and unique within any release package it appears in. A release identifier must not contain the # character. (Required)
getId
{ "repo_name": "devgateway/ocua", "path": "persistence-mongodb/src/main/java/org/devgateway/ocds/persistence/mongo/Release.java", "license": "mit", "size": 24880 }
[ "com.fasterxml.jackson.annotation.JsonProperty" ]
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.*;
[ "com.fasterxml.jackson" ]
com.fasterxml.jackson;
956,740
protected void handleCollision(CmsPositionBean p1, CmsPositionBean p2) { CmsPositionBean positionToChange = p1; if (p1.getTop() <= p2.getTop()) { positionToChange = p2; } positionToChange.setTop(positionToChange.getTop() + 25); }
void function(CmsPositionBean p1, CmsPositionBean p2) { CmsPositionBean positionToChange = p1; if (p1.getTop() <= p2.getTop()) { positionToChange = p2; } positionToChange.setTop(positionToChange.getTop() + 25); }
/** * Handles a collision by moving the lower position down.<p> * * @param p1 the first position * @param p2 the second position */
Handles a collision by moving the lower position down
handleCollision
{ "repo_name": "mediaworx/opencms-core", "path": "src-gwt/org/opencms/ade/editprovider/client/CmsEditablePositionCalculator.java", "license": "lgpl-2.1", "size": 6419 }
[ "org.opencms.gwt.client.util.CmsPositionBean" ]
import org.opencms.gwt.client.util.CmsPositionBean;
import org.opencms.gwt.client.util.*;
[ "org.opencms.gwt" ]
org.opencms.gwt;
305,742
private boolean isCorrectAnswer2(String answerText, ArrayList correctLabels) { if (answerText == null || correctLabels == null) { return false; } else { String [] data = answerText.split(":::"); if (correctLabels.indexOf(data[0]) == -1) { return false; } } return t...
boolean function(String answerText, ArrayList correctLabels) { if (answerText == null correctLabels == null) { return false; } else { String [] data = answerText.split(":::"); if (correctLabels.indexOf(data[0]) == -1) { return false; } } return true; }
/** * Respondus questions */
Respondus questions
isCorrectAnswer2
{ "repo_name": "eemirtekin/Sakai-10.6-TR", "path": "samigo/samigo-qti/src/java/org/sakaiproject/tool/assessment/qti/helper/ExtractionHelper.java", "license": "apache-2.0", "size": 112403 }
[ "java.util.ArrayList" ]
import java.util.ArrayList;
import java.util.*;
[ "java.util" ]
java.util;
986,336
public void processPendingResponses() throws MessagingException { List pendingResponses = null; List handlerList = null; synchronized(this) { if (queuedResponses.isEmpty()) { return; } pendingResponses = queuedResponses; queued...
void function() throws MessagingException { List pendingResponses = null; List handlerList = null; synchronized(this) { if (queuedResponses.isEmpty()) { return; } pendingResponses = queuedResponses; queuedResponses = new LinkedList(); handlerList = (List)responseHandlers.clone(); } for (int i = 0; i < pendingResponses....
/** * Process any untagged responses in the queue. This will clear out * the queue, and send each response to the registered * untagged response handlers. */
Process any untagged responses in the queue. This will clear out the queue, and send each response to the registered untagged response handlers
processPendingResponses
{ "repo_name": "apache/geronimo-javamail", "path": "geronimo-javamail_1.5/geronimo-javamail_1.5_provider/src/main/java/org/apache/geronimo/javamail/store/imap/connection/IMAPConnection.java", "license": "apache-2.0", "size": 74258 }
[ "java.util.LinkedList", "java.util.List", "javax.mail.MessagingException" ]
import java.util.LinkedList; import java.util.List; import javax.mail.MessagingException;
import java.util.*; import javax.mail.*;
[ "java.util", "javax.mail" ]
java.util; javax.mail;
1,161,554
private String generateInumForNewScopeImpl() throws Exception { String orgInum = organizationService.getInumForOrganization(); return orgInum + OxTrustConstants.inumDelimiter + "0009" + OxTrustConstants.inumDelimiter + INumGenerator.generate(2); }
String function() throws Exception { String orgInum = organizationService.getInumForOrganization(); return orgInum + OxTrustConstants.inumDelimiter + "0009" + OxTrustConstants.inumDelimiter + INumGenerator.generate(2); }
/** * Generate new inum for Scope * * @return New inum for Scope * @throws Exception */
Generate new inum for Scope
generateInumForNewScopeImpl
{ "repo_name": "madumlao/oxTrust", "path": "server/src/main/java/org/gluu/oxtrust/ldap/service/ScopeService.java", "license": "mit", "size": 5096 }
[ "org.gluu.oxtrust.util.OxTrustConstants", "org.xdi.util.INumGenerator" ]
import org.gluu.oxtrust.util.OxTrustConstants; import org.xdi.util.INumGenerator;
import org.gluu.oxtrust.util.*; import org.xdi.util.*;
[ "org.gluu.oxtrust", "org.xdi.util" ]
org.gluu.oxtrust; org.xdi.util;
1,672,247
public Collection<String> getSubKeys() { WINBASE.FILETIME lpftLastWriteTime; TreeSet<String> subKeys = new TreeSet<>(); char[] lpName = new char[256]; IntByReference lpcName = new IntByReference(256); lpftLastWriteTime = new WINBASE.FILETIME(); int dwIndex = 0; ...
Collection<String> function() { WINBASE.FILETIME lpftLastWriteTime; TreeSet<String> subKeys = new TreeSet<>(); char[] lpName = new char[256]; IntByReference lpcName = new IntByReference(256); lpftLastWriteTime = new WINBASE.FILETIME(); int dwIndex = 0; while (Advapi32.INSTANCE.RegEnumKeyEx(handle, dwIndex, lpName, lpcN...
/** * Get all sub keys of a key. * * @return array with all sub key names */
Get all sub keys of a key
getSubKeys
{ "repo_name": "batmat/jenkins", "path": "core/src/main/java/hudson/util/jna/RegistryKey.java", "license": "mit", "size": 8889 }
[ "com.sun.jna.ptr.IntByReference", "java.util.Collection", "java.util.TreeSet" ]
import com.sun.jna.ptr.IntByReference; import java.util.Collection; import java.util.TreeSet;
import com.sun.jna.ptr.*; import java.util.*;
[ "com.sun.jna", "java.util" ]
com.sun.jna; java.util;
755,090
public static void readAndCloseStream(InputStream is) { final byte[] bytes = new byte[DEFAULT_BUFFER_SIZE]; try { while (is.read(bytes, 0, DEFAULT_BUFFER_SIZE) != -1) { } } catch (IOException e) { // Do nothing } finally { closeSilently...
static void function(InputStream is) { final byte[] bytes = new byte[DEFAULT_BUFFER_SIZE]; try { while (is.read(bytes, 0, DEFAULT_BUFFER_SIZE) != -1) { } } catch (IOException e) { } finally { closeSilently(is); } }
/** * Reads all data from stream and close it silently * * @param is Input stream */
Reads all data from stream and close it silently
readAndCloseStream
{ "repo_name": "cowthan/AyoWeibo", "path": "ayosdk/src/main/java/org/ayo/file/FileUtils1.java", "license": "apache-2.0", "size": 20250 }
[ "java.io.IOException", "java.io.InputStream" ]
import java.io.IOException; import java.io.InputStream;
import java.io.*;
[ "java.io" ]
java.io;
1,942,624
@SkylarkCallable(name = "strip_executable", structField = true, doc = "Path to GNU binutils 'strip' binary") public PathFragment getStripExecutable() { return getToolPathFragment(CppConfiguration.Tool.STRIP); }
@SkylarkCallable(name = STR, structField = true, doc = STR) PathFragment function() { return getToolPathFragment(CppConfiguration.Tool.STRIP); }
/** * Returns the path to the GNU binutils 'strip' executable that should be used * by this build. Relative paths are relative to the execution root. */
Returns the path to the GNU binutils 'strip' executable that should be used by this build. Relative paths are relative to the execution root
getStripExecutable
{ "repo_name": "iamthearm/bazel", "path": "src/main/java/com/google/devtools/build/lib/rules/cpp/CppConfiguration.java", "license": "apache-2.0", "size": 77120 }
[ "com.google.devtools.build.lib.skylarkinterface.SkylarkCallable", "com.google.devtools.build.lib.vfs.PathFragment" ]
import com.google.devtools.build.lib.skylarkinterface.SkylarkCallable; import com.google.devtools.build.lib.vfs.PathFragment;
import com.google.devtools.build.lib.skylarkinterface.*; import com.google.devtools.build.lib.vfs.*;
[ "com.google.devtools" ]
com.google.devtools;
62,912
protected PolicySourceModel createSourceModel(NamespaceVersion nsVersion, String id, String name) { return PolicySourceModel.createPolicySourceModel(nsVersion, id, name); }
PolicySourceModel function(NamespaceVersion nsVersion, String id, String name) { return PolicySourceModel.createPolicySourceModel(nsVersion, id, name); }
/** * Allow derived classes to pass in a custom instance of PolicySourceModel. * * @param nsVersion * @param id * @param name * @return */
Allow derived classes to pass in a custom instance of PolicySourceModel
createSourceModel
{ "repo_name": "rokn/Count_Words_2015", "path": "testing/openjdk2/jaxws/src/share/jaxws_classes/com/sun/xml/internal/ws/policy/sourcemodel/XmlPolicyModelUnmarshaller.java", "license": "mit", "size": 18103 }
[ "com.sun.xml.internal.ws.policy.sourcemodel.wspolicy.NamespaceVersion" ]
import com.sun.xml.internal.ws.policy.sourcemodel.wspolicy.NamespaceVersion;
import com.sun.xml.internal.ws.policy.sourcemodel.wspolicy.*;
[ "com.sun.xml" ]
com.sun.xml;
1,670,235
@SuppressWarnings("unchecked") public T run() { switch (action) { case GET_SYSTEM_PROPERTY: return (T)System.getProperty((String) arg1, (String) arg2); case GET_SECURITY_PROPERTY: return (T)Security.getProperty((String) arg1); case GET_SECURITY_POLICY: ...
@SuppressWarnings(STR) T function() { switch (action) { case GET_SYSTEM_PROPERTY: return (T)System.getProperty((String) arg1, (String) arg2); case GET_SECURITY_PROPERTY: return (T)Security.getProperty((String) arg1); case GET_SECURITY_POLICY: return (T)Policy.getPolicy(); case SET_ACCESSIBLE: ((AccessibleObject) arg1)....
/** * Performs the actual privileged computation as defined by the constructor. * * @see java.security.PrivilegedAction#run() */
Performs the actual privileged computation as defined by the constructor
run
{ "repo_name": "openweave/openweave-core", "path": "third_party/android/platform-libcore/android-platform-libcore/luni/src/main/java/org/apache/harmony/luni/util/PriviAction.java", "license": "apache-2.0", "size": 4135 }
[ "java.lang.reflect.AccessibleObject", "java.security.Policy", "java.security.Security" ]
import java.lang.reflect.AccessibleObject; import java.security.Policy; import java.security.Security;
import java.lang.reflect.*; import java.security.*;
[ "java.lang", "java.security" ]
java.lang; java.security;
2,171,021
public static String getString(String key, String... params) { FacesContext context = FacesContext.getCurrentInstance(); return getString(key, context, params); }
static String function(String key, String... params) { FacesContext context = FacesContext.getCurrentInstance(); return getString(key, context, params); }
/** * Returns the internationalized string associated with a specified key in the systems * message.properties file. The string can contain place holders, which will be replaced by the * given parameters. If current FacesContext is available getString(String, Object, * FacesContext) is to prefer. ...
Returns the internationalized string associated with a specified key in the systems message.properties file. The string can contain place holders, which will be replaced by the given parameters. If current FacesContext is available getString(String, Object, FacesContext) is to prefer
getString
{ "repo_name": "EEXCESS/cgwap", "path": "src/java/util/i18n/StringProvider.java", "license": "mit", "size": 2339 }
[ "javax.faces.context.FacesContext" ]
import javax.faces.context.FacesContext;
import javax.faces.context.*;
[ "javax.faces" ]
javax.faces;
842,627
private static synchronized void checkAndCreateUploadDir(final Path uploadDir, final Logger log) throws IOException { if (Files.exists(uploadDir) && Files.isWritable(uploadDir)) { log.info("Using directory {} for file uploads.", uploadDir); } else if (Files.isWritable(Files.createDirectories(uploadDir))) { ...
static synchronized void function(final Path uploadDir, final Logger log) throws IOException { if (Files.exists(uploadDir) && Files.isWritable(uploadDir)) { log.info(STR, uploadDir); } else if (Files.isWritable(Files.createDirectories(uploadDir))) { log.info(STR, uploadDir); } else { log.warn(STR, uploadDir); throw new...
/** * Checks whether the given directory exists and is writable. If it doesn't exist, this method * will attempt to create it. * * @param uploadDir directory to check * @param log logger used for logging output * @throws IOException if the directory does not exist and cannot be created, or if the * ...
Checks whether the given directory exists and is writable. If it doesn't exist, this method will attempt to create it
checkAndCreateUploadDir
{ "repo_name": "ueshin/apache-flink", "path": "flink-runtime/src/main/java/org/apache/flink/runtime/rest/RestServerEndpoint.java", "license": "apache-2.0", "size": 19614 }
[ "java.io.IOException", "java.io.Serializable", "java.nio.file.Files", "java.nio.file.Path", "java.util.Comparator", "org.apache.flink.api.java.tuple.Tuple2", "org.apache.flink.runtime.rest.handler.RestHandlerSpecification", "org.apache.flink.runtime.rest.versioning.RestAPIVersion", "org.apache.flink...
import java.io.IOException; import java.io.Serializable; import java.nio.file.Files; import java.nio.file.Path; import java.util.Comparator; import org.apache.flink.api.java.tuple.Tuple2; import org.apache.flink.runtime.rest.handler.RestHandlerSpecification; import org.apache.flink.runtime.rest.versioning.RestAPIVersio...
import java.io.*; import java.nio.file.*; import java.util.*; import org.apache.flink.api.java.tuple.*; import org.apache.flink.runtime.rest.handler.*; import org.apache.flink.runtime.rest.versioning.*; import org.apache.flink.shaded.netty4.io.netty.channel.*; import org.slf4j.*;
[ "java.io", "java.nio", "java.util", "org.apache.flink", "org.slf4j" ]
java.io; java.nio; java.util; org.apache.flink; org.slf4j;
1,661,536
public static ParboiledFilterSpecifier parse(String input) { ParsingResult<AstNode> result = new ReportingParseRunner<AstNode>(Parser.instance().getInputRule(Grammar.FILTER_SPECIFIER)) .run(input); if (!result.parseErrors.isEmpty()) { throw new IllegalArgumentException( Pa...
static ParboiledFilterSpecifier function(String input) { ParsingResult<AstNode> result = new ReportingParseRunner<AstNode>(Parser.instance().getInputRule(Grammar.FILTER_SPECIFIER)) .run(input); if (!result.parseErrors.isEmpty()) { throw new IllegalArgumentException( ParserUtils.getErrorString( input, Grammar.FILTER_SPE...
/** * Returns an {@link FilterSpecifier} based on {@code input} which is parsed as {@link * Grammar#FILTER_SPECIFIER}. * * @throws IllegalArgumentException if the parsing fails or does not produce the expected AST */
Returns an <code>FilterSpecifier</code> based on input which is parsed as <code>Grammar#FILTER_SPECIFIER</code>
parse
{ "repo_name": "batfish/batfish", "path": "projects/batfish-common-protocol/src/main/java/org/batfish/specifier/parboiled/ParboiledFilterSpecifier.java", "license": "apache-2.0", "size": 5955 }
[ "com.google.common.base.Preconditions", "org.parboiled.errors.InvalidInputError", "org.parboiled.parserunners.ReportingParseRunner", "org.parboiled.support.ParsingResult" ]
import com.google.common.base.Preconditions; import org.parboiled.errors.InvalidInputError; import org.parboiled.parserunners.ReportingParseRunner; import org.parboiled.support.ParsingResult;
import com.google.common.base.*; import org.parboiled.errors.*; import org.parboiled.parserunners.*; import org.parboiled.support.*;
[ "com.google.common", "org.parboiled.errors", "org.parboiled.parserunners", "org.parboiled.support" ]
com.google.common; org.parboiled.errors; org.parboiled.parserunners; org.parboiled.support;
1,319,418
@Override public int compareTo(Consultant other) { return name.compareTo(other.getName()); } private static class SerializationProxy implements Serializable { private static final long serialVersionUID = -2799316872787696645L; private String x, y, z; SerializationProxy(final Consul...
int function(Consultant other) { return name.compareTo(other.getName()); } private static class SerializationProxy implements Serializable { private static final long serialVersionUID = -2799316872787696645L; private String x, y, z; SerializationProxy(final Consultant consultant) { final PersonalName name = consultant....
/** * Compares this Consultant object with the specified object for order. Returns a * negative integer, zero, or a positive integer as this object is less than, equal to, * or greater than the specified object, the consultant name is used to perform the comparison. * @param other - the Object to be compa...
Compares this Consultant object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object, the consultant name is used to perform the comparison
compareTo
{ "repo_name": "bkstamm67/java", "path": "old/session2/assignment5/scg/domain/Consultant.java", "license": "mit", "size": 2575 }
[ "com.scg.util.PersonalName", "java.io.Serializable" ]
import com.scg.util.PersonalName; import java.io.Serializable;
import com.scg.util.*; import java.io.*;
[ "com.scg.util", "java.io" ]
com.scg.util; java.io;
283,685
WeaponDTO getWeaponById(Long id);
WeaponDTO getWeaponById(Long id);
/** * Finds weaponDTO of given id. * * @param id unique integer identification of Weapon entity. * @return found weaponDTO */
Finds weaponDTO of given id
getWeaponById
{ "repo_name": "Vaculik/creatures-hunting", "path": "ApiLayer/src/main/java/cz/muni/fi/pa165/facade/WeaponFacade.java", "license": "gpl-2.0", "size": 2198 }
[ "cz.muni.fi.pa165.dto.WeaponDTO" ]
import cz.muni.fi.pa165.dto.WeaponDTO;
import cz.muni.fi.pa165.dto.*;
[ "cz.muni.fi" ]
cz.muni.fi;
1,848,770
public static void identifyOutliers(Worksheet worksheet, String predictedType, HNodePath path, Tag outlierTag, ISemanticTypeModelHandler modelHandler, SuperSelection sel) { Collection<Node> nodes = new ArrayList<>(); worksheet.getDataTable().collectNodes(path, nodes, sel); // Identify the top semantic type...
static void function(Worksheet worksheet, String predictedType, HNodePath path, Tag outlierTag, ISemanticTypeModelHandler modelHandler, SuperSelection sel) { Collection<Node> nodes = new ArrayList<>(); worksheet.getDataTable().collectNodes(path, nodes, sel); Set<String> allNodeIds = new HashSet<>(); Set<String> outlier...
/** * Identifies the outlier nodes (table cells) for a given column. * * @param worksheet * Target worksheet * @param predictedType * Type which was user-assigned or predicted by the CRF model for * the given column. If the type for a given node is different * ...
Identifies the outlier nodes (table cells) for a given column
identifyOutliers
{ "repo_name": "usc-isi-i2/Web-Karma", "path": "karma-common/src/main/java/edu/isi/karma/modeling/semantictypes/SemanticTypeUtil.java", "license": "apache-2.0", "size": 16748 }
[ "edu.isi.karma.controller.command.selection.SuperSelection", "edu.isi.karma.rep.HNodePath", "edu.isi.karma.rep.Node", "edu.isi.karma.rep.Worksheet", "edu.isi.karma.rep.metadata.Tag", "java.util.ArrayList", "java.util.Collection", "java.util.HashSet", "java.util.List", "java.util.Set" ]
import edu.isi.karma.controller.command.selection.SuperSelection; import edu.isi.karma.rep.HNodePath; import edu.isi.karma.rep.Node; import edu.isi.karma.rep.Worksheet; import edu.isi.karma.rep.metadata.Tag; import java.util.ArrayList; import java.util.Collection; import java.util.HashSet; import java.util.List; import...
import edu.isi.karma.controller.command.selection.*; import edu.isi.karma.rep.*; import edu.isi.karma.rep.metadata.*; import java.util.*;
[ "edu.isi.karma", "java.util" ]
edu.isi.karma; java.util;
1,680,199
@Override public Range getDomainBounds(boolean includeInterval) { if (includeInterval) { return this.intervalDelegate.getDomainBounds(includeInterval); } else { return DatasetUtilities.iterateDomainBounds(this, includeInterval); } }
Range function(boolean includeInterval) { if (includeInterval) { return this.intervalDelegate.getDomainBounds(includeInterval); } else { return DatasetUtilities.iterateDomainBounds(this, includeInterval); } }
/** * Returns the range of the values in this dataset's domain. * * @param includeInterval a flag that determines whether or not the * x-interval is taken into account. * * @return The range. */
Returns the range of the values in this dataset's domain
getDomainBounds
{ "repo_name": "greearb/jfreechart-fse-ct", "path": "src/main/java/org/jfree/data/xy/CategoryTableXYDataset.java", "license": "lgpl-2.1", "size": 13958 }
[ "org.jfree.data.Range", "org.jfree.data.general.DatasetUtilities" ]
import org.jfree.data.Range; import org.jfree.data.general.DatasetUtilities;
import org.jfree.data.*; import org.jfree.data.general.*;
[ "org.jfree.data" ]
org.jfree.data;
1,115,320
public PublicationType getPublicationCompleteById(String pubId, String componentId) throws ImportExportException { PublicationType publicationType = new PublicationType(); try { CompletePublication pubComplete = getCompletePublication(new PublicationPK(pubId, getCurrentComponentId())); ...
PublicationType function(String pubId, String componentId) throws ImportExportException { PublicationType publicationType = new PublicationType(); try { CompletePublication pubComplete = getCompletePublication(new PublicationPK(pubId, getCurrentComponentId())); PublicationDetail publicationDetail = pubComplete.getPubli...
/** * Methode de recuperation de la publication complete utilisee pour l'exportation * * @param pubId * @param componentId * @return * @throws ImportExportException */
Methode de recuperation de la publication complete utilisee pour l'exportation
getPublicationCompleteById
{ "repo_name": "CecileBONIN/Silverpeas-Core", "path": "web-core/src/main/java/com/silverpeas/importExport/control/GEDImportExport.java", "license": "agpl-3.0", "size": 43338 }
[ "com.silverpeas.form.importExport.XMLField", "com.silverpeas.importExport.model.ImportExportException", "com.silverpeas.importExport.model.PublicationType", "com.silverpeas.publication.importExport.PublicationContentType", "com.silverpeas.publication.importExport.XMLModelContentType", "com.silverpeas.util...
import com.silverpeas.form.importExport.XMLField; import com.silverpeas.importExport.model.ImportExportException; import com.silverpeas.importExport.model.PublicationType; import com.silverpeas.publication.importExport.PublicationContentType; import com.silverpeas.publication.importExport.XMLModelContentType; import co...
import com.silverpeas.*; import com.silverpeas.form.*; import com.silverpeas.publication.*; import com.silverpeas.util.*; import com.silverpeas.util.i18n.*; import com.silverpeas.wysiwyg.*; import com.stratelia.silverpeas.silvertrace.*; import com.stratelia.webactiv.beans.admin.*; import com.stratelia.webactiv.util.pub...
[ "com.silverpeas", "com.silverpeas.form", "com.silverpeas.publication", "com.silverpeas.util", "com.silverpeas.wysiwyg", "com.stratelia.silverpeas", "com.stratelia.webactiv", "java.util", "org.silverpeas.wysiwyg" ]
com.silverpeas; com.silverpeas.form; com.silverpeas.publication; com.silverpeas.util; com.silverpeas.wysiwyg; com.stratelia.silverpeas; com.stratelia.webactiv; java.util; org.silverpeas.wysiwyg;
306,793
@Override public void refreshUsersOrGroupsListFromServer() { // Show loading showLoadingDialog(R.string.common_loading); // Get Users and Groups GetShareWithUsersAsyncTask getTask = new GetShareWithUsersAsyncTask(this); Object[] params = {getFile(), getAccount(), getStora...
void function() { showLoadingDialog(R.string.common_loading); GetShareWithUsersAsyncTask getTask = new GetShareWithUsersAsyncTask(this); Object[] params = {getFile(), getAccount(), getStorageManager()}; getTask.execute(params); }
/** * Get users and groups from the server to fill in the "share with" list */
Get users and groups from the server to fill in the "share with" list
refreshUsersOrGroupsListFromServer
{ "repo_name": "jujojujoju/android", "path": "src/com/owncloud/android/ui/activity/ShareActivity.java", "license": "gpl-2.0", "size": 14536 }
[ "com.owncloud.android.utils.GetShareWithUsersAsyncTask" ]
import com.owncloud.android.utils.GetShareWithUsersAsyncTask;
import com.owncloud.android.utils.*;
[ "com.owncloud.android" ]
com.owncloud.android;
854,342
protected void consumeStream(NonBlockingInputStream stream) throws IOException { // Do nothing. }
void function(NonBlockingInputStream stream) throws IOException { }
/** * Invoked by {@link #consume()}. Implementations may override this method if they wish to * consume the loaded data at this point. * <p> * The default implementation is a no-op. * * @param stream The stream of loaded data. * @throws IOException If an error occurs consuming the loaded dat...
Invoked by <code>#consume()</code>. Implementations may override this method if they wish to consume the loaded data at this point. The default implementation is a no-op
consumeStream
{ "repo_name": "tyazid/Exoplayer_VLC", "path": "Studio_Project/ExoPlayerLib/src/main/java/com/google/android/exoplayer/chunk/Chunk.java", "license": "apache-2.0", "size": 6027 }
[ "com.google.android.exoplayer.upstream.NonBlockingInputStream", "java.io.IOException" ]
import com.google.android.exoplayer.upstream.NonBlockingInputStream; import java.io.IOException;
import com.google.android.exoplayer.upstream.*; import java.io.*;
[ "com.google.android", "java.io" ]
com.google.android; java.io;
2,783,430
public Button getResetButton() { return _resetButton; }
Button function() { return _resetButton; }
/** * Gets the reset button. * * @return the reset button */
Gets the reset button
getResetButton
{ "repo_name": "Governance/dtgov", "path": "dtgov-ui-war/src/main/java/org/overlord/dtgov/ui/client/local/pages/TargetPage.java", "license": "apache-2.0", "size": 23891 }
[ "com.google.gwt.user.client.ui.Button" ]
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.*;
[ "com.google.gwt" ]
com.google.gwt;
2,912,489
@Test public void testDisconnectedSecond() throws Exception { ClusterTierActiveEntity activeEntity = new ClusterTierActiveEntity(defaultRegistry, defaultConfiguration, DEFAULT_MAPPER, SYNC_GETS_EXECUTOR); ClientDescriptor client1 = TestClientDescriptor.newClient(); activeEntity.connected(client1); ...
void function() throws Exception { ClusterTierActiveEntity activeEntity = new ClusterTierActiveEntity(defaultRegistry, defaultConfiguration, DEFAULT_MAPPER, SYNC_GETS_EXECUTOR); ClientDescriptor client1 = TestClientDescriptor.newClient(); activeEntity.connected(client1); ClientDescriptor client2 = TestClientDescriptor....
/** * Ensures the disconnect of a connected client is properly tracked and does not affect others. */
Ensures the disconnect of a connected client is properly tracked and does not affect others
testDisconnectedSecond
{ "repo_name": "ljacomet/ehcache3", "path": "clustered/server/ehcache-entity/src/test/java/org/ehcache/clustered/server/store/ClusterTierActiveEntityTest.java", "license": "apache-2.0", "size": 72370 }
[ "java.util.Set", "org.ehcache.clustered.server.TestClientDescriptor", "org.hamcrest.MatcherAssert", "org.hamcrest.Matchers", "org.terracotta.entity.ClientDescriptor" ]
import java.util.Set; import org.ehcache.clustered.server.TestClientDescriptor; import org.hamcrest.MatcherAssert; import org.hamcrest.Matchers; import org.terracotta.entity.ClientDescriptor;
import java.util.*; import org.ehcache.clustered.server.*; import org.hamcrest.*; import org.terracotta.entity.*;
[ "java.util", "org.ehcache.clustered", "org.hamcrest", "org.terracotta.entity" ]
java.util; org.ehcache.clustered; org.hamcrest; org.terracotta.entity;
10,225
private static Step createStartupProgressStep(EditLogInputStream edits) throws IOException { long length = edits.length(); String name = edits.getCurrentStreamName(); return length != -1 ? new Step(name, length) : new Step(name); }
static Step function(EditLogInputStream edits) throws IOException { long length = edits.length(); String name = edits.getCurrentStreamName(); return length != -1 ? new Step(name, length) : new Step(name); }
/** * Creates a Step used for updating startup progress, populated with * information from the given edits. The step always includes the log's name. * If the log has a known length, then the length is included in the step too. * * @param edits EditLogInputStream to use for populating step * @return ...
Creates a Step used for updating startup progress, populated with information from the given edits. The step always includes the log's name. If the log has a known length, then the length is included in the step too
createStartupProgressStep
{ "repo_name": "JoeChien23/hadoop", "path": "hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSEditLogLoader.java", "license": "apache-2.0", "size": 52657 }
[ "java.io.IOException", "org.apache.hadoop.hdfs.server.namenode.startupprogress.Step" ]
import java.io.IOException; import org.apache.hadoop.hdfs.server.namenode.startupprogress.Step;
import java.io.*; import org.apache.hadoop.hdfs.server.namenode.startupprogress.*;
[ "java.io", "org.apache.hadoop" ]
java.io; org.apache.hadoop;
352,607
private List<RemoteLocation> getQuotaRemoteLocations(String path) throws IOException { List<RemoteLocation> locations = new ArrayList<>(); RouterQuotaManager manager = this.router.getQuotaManager(); if (manager != null) { Set<String> childrenPaths = manager.getPaths(path); for (String ch...
List<RemoteLocation> function(String path) throws IOException { List<RemoteLocation> locations = new ArrayList<>(); RouterQuotaManager manager = this.router.getQuotaManager(); if (manager != null) { Set<String> childrenPaths = manager.getPaths(path); for (String childPath : childrenPaths) { locations.addAll( rpcServer....
/** * Get all quota remote locations across subclusters under given * federation path. * @param path Federation path. * @return List of quota remote locations. * @throws IOException */
Get all quota remote locations across subclusters under given federation path
getQuotaRemoteLocations
{ "repo_name": "JingchengDu/hadoop", "path": "hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/router/Quota.java", "license": "apache-2.0", "size": 13812 }
[ "java.io.IOException", "java.util.ArrayList", "java.util.List", "java.util.Set", "org.apache.hadoop.hdfs.server.federation.resolver.RemoteLocation" ]
import java.io.IOException; import java.util.ArrayList; import java.util.List; import java.util.Set; import org.apache.hadoop.hdfs.server.federation.resolver.RemoteLocation;
import java.io.*; import java.util.*; import org.apache.hadoop.hdfs.server.federation.resolver.*;
[ "java.io", "java.util", "org.apache.hadoop" ]
java.io; java.util; org.apache.hadoop;
235,957
public Path getPath() { return _path; }
Path function() { return _path; }
/** * Returns the path. */
Returns the path
getPath
{ "repo_name": "moriyoshi/quercus-gae", "path": "src/main/java/com/caucho/quercus/lib/file/FileValue.java", "license": "gpl-2.0", "size": 2761 }
[ "com.caucho.vfs.Path" ]
import com.caucho.vfs.Path;
import com.caucho.vfs.*;
[ "com.caucho.vfs" ]
com.caucho.vfs;
1,980,615
GenericTableCell<String> tableCell = new GenericTableCell<String>(); assertNotNull(tableCell); String cellValue = ""; assertEquals(cellValue, tableCell.setValue(cellValue).getValue()); log.info("tableCell : {}", tableCell); }
GenericTableCell<String> tableCell = new GenericTableCell<String>(); assertNotNull(tableCell); String cellValue = STRtableCell : {}", tableCell); }
/** * Unit test to table cell. */
Unit test to table cell
testTableCell
{ "repo_name": "Martin-Spamer/java-coaching", "path": "src/test/java/coaching/generics/TableCellTest.java", "license": "gpl-3.0", "size": 666 }
[ "org.junit.Assert" ]
import org.junit.Assert;
import org.junit.*;
[ "org.junit" ]
org.junit;
21,454
JsonNodeFactory factory=getFactory(); ObjectNode node = factory.objectNode(); ArrayNode arr=factory.arrayNode(); int seq=0; for(Response x:entries) { ObjectNode entryNode=factory.objectNode(); entryNode.set("seq",factory.numberNode(seq++)); entryNode.s...
JsonNodeFactory factory=getFactory(); ObjectNode node = factory.objectNode(); ArrayNode arr=factory.arrayNode(); int seq=0; for(Response x:entries) { ObjectNode entryNode=factory.objectNode(); entryNode.set("seq",factory.numberNode(seq++)); entryNode.set(STR,x.toJson()); arr.add(entryNode); } node.put(STR, arr); return...
/** * Returns a JSON representation of this */
Returns a JSON representation of this
toJson
{ "repo_name": "jewzaam/lightblue-core", "path": "crud/src/main/java/com/redhat/lightblue/crud/BulkResponse.java", "license": "gpl-3.0", "size": 1927 }
[ "com.fasterxml.jackson.databind.node.ArrayNode", "com.fasterxml.jackson.databind.node.JsonNodeFactory", "com.fasterxml.jackson.databind.node.ObjectNode", "com.redhat.lightblue.Response" ]
import com.fasterxml.jackson.databind.node.ArrayNode; import com.fasterxml.jackson.databind.node.JsonNodeFactory; import com.fasterxml.jackson.databind.node.ObjectNode; import com.redhat.lightblue.Response;
import com.fasterxml.jackson.databind.node.*; import com.redhat.lightblue.*;
[ "com.fasterxml.jackson", "com.redhat.lightblue" ]
com.fasterxml.jackson; com.redhat.lightblue;
2,843,617
public List getEmbeddedFDFs() throws IOException { List retval = null; COSArray embeddedArray = (COSArray) fdf.getDictionaryObject(COSName.EMBEDDED_FDFS); if (embeddedArray != null) { List<PDFileSpecification> embedded = new ArrayList<PDFileSpecification>(); for (int i = 0; i < embeddedArray.s...
List function() throws IOException { List retval = null; COSArray embeddedArray = (COSArray) fdf.getDictionaryObject(COSName.EMBEDDED_FDFS); if (embeddedArray != null) { List<PDFileSpecification> embedded = new ArrayList<PDFileSpecification>(); for (int i = 0; i < embeddedArray.size(); i++) { embedded.add(PDFileSpecifi...
/** * This will get the list of embedded FDF entries, or null if the entry is null. This will return a list of PDFileSpecification objects. * * @return A list of embedded FDF files. * * @throws IOException If there is an error creating the file spec. */
This will get the list of embedded FDF entries, or null if the entry is null. This will return a list of PDFileSpecification objects
getEmbeddedFDFs
{ "repo_name": "sencko/NALB", "path": "nalb2013/src/org/apache/pdfbox/pdmodel/fdf/FDFDictionary.java", "license": "gpl-2.0", "size": 12850 }
[ "java.io.IOException", "java.util.ArrayList", "java.util.List", "org.apache.pdfbox.cos.COSArray", "org.apache.pdfbox.cos.COSName", "org.apache.pdfbox.pdmodel.common.COSArrayList", "org.apache.pdfbox.pdmodel.common.filespecification.PDFileSpecification" ]
import java.io.IOException; import java.util.ArrayList; import java.util.List; import org.apache.pdfbox.cos.COSArray; import org.apache.pdfbox.cos.COSName; import org.apache.pdfbox.pdmodel.common.COSArrayList; import org.apache.pdfbox.pdmodel.common.filespecification.PDFileSpecification;
import java.io.*; import java.util.*; import org.apache.pdfbox.cos.*; import org.apache.pdfbox.pdmodel.common.*; import org.apache.pdfbox.pdmodel.common.filespecification.*;
[ "java.io", "java.util", "org.apache.pdfbox" ]
java.io; java.util; org.apache.pdfbox;
2,851,765
if (null == messages) { throw new Exception("Messages param is null"); } final File socketFile = new File(getSocketFullPath()); if (!socketFile.exists()) { throw new IOException("Missing socket file:" + getSocketFullPath()); } final AFUNIXSocket ...
if (null == messages) { throw new Exception(STR); } final File socketFile = new File(getSocketFullPath()); if (!socketFile.exists()) { throw new IOException(STR + getSocketFullPath()); } final AFUNIXSocket sock = AFUNIXSocket.newInstance(); try { sock.connect(new AFUNIXSocketAddress(socketFile)); } catch (final Throwab...
/** * Send message. * * @param messages the messages * @throws Exception the exception */
Send message
sendMessage
{ "repo_name": "c3riley/Testah", "path": "testah-junit/src/main/java/org/testah/util/StrongSwanClient.java", "license": "mit", "size": 3520 }
[ "java.io.File", "java.io.IOException", "java.io.InputStream", "java.io.OutputStream", "java.nio.charset.Charset", "org.newsclub.net.unix.AFUNIXSocket", "org.newsclub.net.unix.AFUNIXSocketAddress", "org.testah.TS" ]
import java.io.File; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.nio.charset.Charset; import org.newsclub.net.unix.AFUNIXSocket; import org.newsclub.net.unix.AFUNIXSocketAddress; import org.testah.TS;
import java.io.*; import java.nio.charset.*; import org.newsclub.net.unix.*; import org.testah.*;
[ "java.io", "java.nio", "org.newsclub.net", "org.testah" ]
java.io; java.nio; org.newsclub.net; org.testah;
691,195
public void testReadFolder() { RemoteOperationResult result = mActivity.readFile(mFullPathToFolder); assertTrue(result.isSuccess()); assertTrue(result.getData() != null && result.getData().size() > 1); assertTrue(result.getData().size() == 4); // TODO assert more properties about the result }
void function() { RemoteOperationResult result = mActivity.readFile(mFullPathToFolder); assertTrue(result.isSuccess()); assertTrue(result.getData() != null && result.getData().size() > 1); assertTrue(result.getData().size() == 4); }
/** * Test Read Folder */
Test Read Folder
testReadFolder
{ "repo_name": "cloudcopy/owncloud-android-library", "path": "test_client/tests/src/com/owncloud/android/lib/test_project/test/ReadFolderTest.java", "license": "mit", "size": 3344 }
[ "com.owncloud.android.lib.common.operations.RemoteOperationResult" ]
import com.owncloud.android.lib.common.operations.RemoteOperationResult;
import com.owncloud.android.lib.common.operations.*;
[ "com.owncloud.android" ]
com.owncloud.android;
162,773
public boolean validateTableIDValue() { if (!isTableID()) return false; String tableName = getName(); int AD_Column_ID = DB.getSQLValue(null, "SELECT MAX(c.AD_Column_ID) " + "FROM AD_Table t" + " INNER JOIN AD_Column c ON (t.AD_Table_ID=c.AD_Table_ID) " + "WHERE t.TableName='" + tableName + "'" ...
boolean function() { if (!isTableID()) return false; String tableName = getName(); int AD_Column_ID = DB.getSQLValue(null, STR + STR + STR + STR + tableName + "'" + STR + tableName + "_ID'"); if (AD_Column_ID <= 0) return false; int IDRangeEnd = 0; if (system.getIDRangeEnd() != null) IDRangeEnd = system.getIDRangeEnd()...
/** * Validate Table Sequence Values * @return true if updated */
Validate Table Sequence Values
validateTableIDValue
{ "repo_name": "arthurmelo88/palmetalADP", "path": "adempierelbr/base/src/org/compiere/model/MSequence.java", "license": "gpl-2.0", "size": 48531 }
[ "org.compiere.util.DB" ]
import org.compiere.util.DB;
import org.compiere.util.*;
[ "org.compiere.util" ]
org.compiere.util;
1,686,439
public void updateBottomBarButtons(CustomButtonParams params) { ImageButton button = (ImageButton) getBottomBarView().findViewById(params.getId()); button.setContentDescription(params.getDescription()); button.setImageDrawable(params.getIcon(mActivity)); }
void function(CustomButtonParams params) { ImageButton button = (ImageButton) getBottomBarView().findViewById(params.getId()); button.setContentDescription(params.getDescription()); button.setImageDrawable(params.getIcon(mActivity)); }
/** * Updates the custom buttons on bottom bar area. * @param params The {@link CustomButtonParams} that describes the button to update. */
Updates the custom buttons on bottom bar area
updateBottomBarButtons
{ "repo_name": "endlessm/chromium-browser", "path": "chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabBottomBarDelegate.java", "license": "bsd-3-clause", "size": 15890 }
[ "android.widget.ImageButton" ]
import android.widget.ImageButton;
import android.widget.*;
[ "android.widget" ]
android.widget;
767,266
return INSTANCE; } private OdeLogBox() { super(MESSAGES.odeLogBoxCaption(), 500, true, // minimizable false, // removable false); // startMinimized setContent(OdeLog.getOdeLog()); }
return INSTANCE; } private OdeLogBox() { super(MESSAGES.odeLogBoxCaption(), 500, true, false, false); setContent(OdeLog.getOdeLog()); }
/** * Return the singleton ODE log box. * * @return log box */
Return the singleton ODE log box
getOdeLogBox
{ "repo_name": "AppScale/appinventor", "path": "src/com/google/appinventor/client/boxes/OdeLogBox.java", "license": "mit", "size": 1136 }
[ "com.google.appinventor.client.Ode", "com.google.appinventor.client.output.OdeLog" ]
import com.google.appinventor.client.Ode; import com.google.appinventor.client.output.OdeLog;
import com.google.appinventor.client.*; import com.google.appinventor.client.output.*;
[ "com.google.appinventor" ]
com.google.appinventor;
2,312,914
public List<Double> getRadiusList() { return _radList; }
List<Double> function() { return _radList; }
/** * Get radius list * * @return Radius list */
Get radius list
getRadiusList
{ "repo_name": "meteoinfo/meteoinfolib", "path": "src/org/meteoinfo/geoprocess/analysis/InterpolationSetting.java", "license": "lgpl-3.0", "size": 5971 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,040,165
@MediumTest public void testDuplicateTabIDsKillsOldActivities() throws Exception { launchThreeTabs(); final DocumentTabModelSelector selector = ChromeApplication.getDocumentTabModelSelector(); final int lastTabId = selector.getCurrentTabId(); final Activity lastT...
void function() throws Exception { launchThreeTabs(); final DocumentTabModelSelector selector = ChromeApplication.getDocumentTabModelSelector(); final int lastTabId = selector.getCurrentTabId(); final Activity lastTrackedActivity = ApplicationStatus.getLastTrackedFocusedActivity(); ApplicationTestUtils.fireHomeScreenIn...
/** * Confirm that firing an Intent for a document that has an ID for an already existing Tab kills * the original. */
Confirm that firing an Intent for a document that has an ID for an already existing Tab kills the original
testDuplicateTabIDsKillsOldActivities
{ "repo_name": "hujiajie/chromium-crosswalk", "path": "chrome/android/javatests/src/org/chromium/chrome/browser/document/DocumentModeTest.java", "license": "bsd-3-clause", "size": 32066 }
[ "android.app.Activity", "android.content.Intent", "android.net.Uri", "org.chromium.base.ApplicationStatus", "org.chromium.chrome.browser.ChromeApplication", "org.chromium.chrome.browser.tabmodel.document.DocumentTabModelSelector", "org.chromium.chrome.test.util.ApplicationTestUtils" ]
import android.app.Activity; import android.content.Intent; import android.net.Uri; import org.chromium.base.ApplicationStatus; import org.chromium.chrome.browser.ChromeApplication; import org.chromium.chrome.browser.tabmodel.document.DocumentTabModelSelector; import org.chromium.chrome.test.util.ApplicationTestUtils;
import android.app.*; import android.content.*; import android.net.*; import org.chromium.base.*; import org.chromium.chrome.browser.*; import org.chromium.chrome.browser.tabmodel.document.*; import org.chromium.chrome.test.util.*;
[ "android.app", "android.content", "android.net", "org.chromium.base", "org.chromium.chrome" ]
android.app; android.content; android.net; org.chromium.base; org.chromium.chrome;
1,031,866
private boolean qualifiesAndNode(final IAbstractCriteriumTreeNode node, final NaviNode naviNode) { final List<? extends IAbstractCriteriumTreeNode> children = node.getChildren(); if (children.size() < 2) { throw new IllegalStateException("IE01120: AND operator has less than two child criteria."...
boolean function(final IAbstractCriteriumTreeNode node, final NaviNode naviNode) { final List<? extends IAbstractCriteriumTreeNode> children = node.getChildren(); if (children.size() < 2) { throw new IllegalStateException(STR); } for (final IAbstractCriteriumTreeNode child : node.getChildren()) { if (!qualifies(child, ...
/** * Checks whether a given AND node matches a formula. * * @param node The root node of the formula. * @param naviNode The node to match. * * @return True, if the node matches the formula. False, otherwise. */
Checks whether a given AND node matches a formula
qualifiesAndNode
{ "repo_name": "crowell/binnavi", "path": "src/main/java/com/google/security/zynamics/binnavi/Gui/CriteriaDialog/Conditions/CCriteriumExecuter.java", "license": "apache-2.0", "size": 6998 }
[ "com.google.security.zynamics.binnavi.Gui", "com.google.security.zynamics.binnavi.yfileswrap.zygraph.NaviNode", "java.util.List" ]
import com.google.security.zynamics.binnavi.Gui; import com.google.security.zynamics.binnavi.yfileswrap.zygraph.NaviNode; import java.util.List;
import com.google.security.zynamics.binnavi.*; import com.google.security.zynamics.binnavi.yfileswrap.zygraph.*; import java.util.*;
[ "com.google.security", "java.util" ]
com.google.security; java.util;
2,320,243
public void addDatePropertyMatch(String sourceProp, String targetProp) { if (!dateProps.contains(sourceProp, targetProp)) { dateProps.add(sourceProp, targetProp, 1); sourceDateProps.add(sourceProp); targetDateProps.add(targetProp); aMatchWasSet = true; ...
void function(String sourceProp, String targetProp) { if (!dateProps.contains(sourceProp, targetProp)) { dateProps.add(sourceProp, targetProp, 1); sourceDateProps.add(sourceProp); targetDateProps.add(targetProp); aMatchWasSet = true; PairSimilar<String> pair = new PairSimilar<String>(sourceProp, targetProp); if (!dateP...
/** * Add a match between two date properties. * * @param sourceProp * Name of the property of the source knowledge base. * @param targetProp * Name of the property of the target knowledge base. */
Add a match between two date properties
addDatePropertyMatch
{ "repo_name": "AKSW/LIMES-CORE", "path": "limes-core/src/main/java/org/aksw/limes/core/ml/algorithm/eagle/util/PropertyMapping.java", "license": "gpl-2.0", "size": 9767 }
[ "org.aksw.limes.core.datastrutures.PairSimilar" ]
import org.aksw.limes.core.datastrutures.PairSimilar;
import org.aksw.limes.core.datastrutures.*;
[ "org.aksw.limes" ]
org.aksw.limes;
2,181,450
public WaveReady getWaveReady() { return this.waveReady; }
WaveReady function() { return this.waveReady; }
/** * Gets the wave ready. * * @return Returns the waveReady. */
Gets the wave ready
getWaveReady
{ "repo_name": "amischler/JRebirth", "path": "org.jrebirth/core/src/main/java/org/jrebirth/core/link/WaveHandler.java", "license": "apache-2.0", "size": 1985 }
[ "org.jrebirth.core.facade.WaveReady" ]
import org.jrebirth.core.facade.WaveReady;
import org.jrebirth.core.facade.*;
[ "org.jrebirth.core" ]
org.jrebirth.core;
2,453,527
private static boolean isJAXBAnnotation(Annotation a) { return ANNOTATION_NUMBER_MAP.containsKey(a.annotationType()); }
static boolean function(Annotation a) { return ANNOTATION_NUMBER_MAP.containsKey(a.annotationType()); }
/** * Returns true if a given annotation is a JAXB annotation. */
Returns true if a given annotation is a JAXB annotation
isJAXBAnnotation
{ "repo_name": "rokn/Count_Words_2015", "path": "testing/openjdk2/jaxws/src/share/jaxws_classes/com/sun/xml/internal/bind/v2/model/impl/ClassInfoImpl.java", "license": "mit", "size": 48045 }
[ "java.lang.annotation.Annotation" ]
import java.lang.annotation.Annotation;
import java.lang.annotation.*;
[ "java.lang" ]
java.lang;
374,334
private void assign(String var, String expression) { executor.assign(var, expression, Collections.emptyMap()); }
void function(String var, String expression) { executor.assign(var, expression, Collections.emptyMap()); }
/** * Assign a value to the result of an expression. * * @param var The variable to assign. * @param expression The expression to execute. */
Assign a value to the result of an expression
assign
{ "repo_name": "kylerichardson/metron", "path": "metron-analytics/metron-profiler/src/test/java/org/apache/metron/profiler/integration/ProfilerIntegrationTest.java", "license": "apache-2.0", "size": 20549 }
[ "java.util.Collections" ]
import java.util.Collections;
import java.util.*;
[ "java.util" ]
java.util;
1,078,195
protected void checkPermissions( CmsRequestContext context, CmsResource resource, CmsPermissionSet requiredPermissions, I_CmsPermissionHandler.CmsPermissionCheckResult permissions) throws CmsSecurityException, CmsLockException, CmsVfsResourceNotFoundException { if...
void function( CmsRequestContext context, CmsResource resource, CmsPermissionSet requiredPermissions, I_CmsPermissionHandler.CmsPermissionCheckResult permissions) throws CmsSecurityException, CmsLockException, CmsVfsResourceNotFoundException { if (permissions == I_CmsPermissionHandler.PERM_FILTERED) { throw new CmsVfsR...
/** * Applies the permission check result of a previous call * to {@link #hasPermissions(CmsRequestContext, CmsResource, CmsPermissionSet, boolean, CmsResourceFilter)}.<p> * * @param context the current request context * @param resource the resource on which permissions are required ...
Applies the permission check result of a previous call to <code>#hasPermissions(CmsRequestContext, CmsResource, CmsPermissionSet, boolean, CmsResourceFilter)</code>
checkPermissions
{ "repo_name": "comundus/opencms-comundus", "path": "src/main/java/org/opencms/db/CmsSecurityManager.java", "license": "lgpl-2.1", "size": 242914 }
[ "org.opencms.file.CmsRequestContext", "org.opencms.file.CmsResource", "org.opencms.file.CmsVfsResourceNotFoundException", "org.opencms.lock.CmsLockException", "org.opencms.security.CmsPermissionSet", "org.opencms.security.CmsPermissionViolationException", "org.opencms.security.CmsSecurityException" ]
import org.opencms.file.CmsRequestContext; import org.opencms.file.CmsResource; import org.opencms.file.CmsVfsResourceNotFoundException; import org.opencms.lock.CmsLockException; import org.opencms.security.CmsPermissionSet; import org.opencms.security.CmsPermissionViolationException; import org.opencms.security.CmsSec...
import org.opencms.file.*; import org.opencms.lock.*; import org.opencms.security.*;
[ "org.opencms.file", "org.opencms.lock", "org.opencms.security" ]
org.opencms.file; org.opencms.lock; org.opencms.security;
1,940,145
@Override public Adapter createRequirementAdapter() { if (requirementItemProvider == null) { requirementItemProvider = new RequirementItemProvider(this); } return requirementItemProvider; } protected WarningItemProvider warningItemProvider;
Adapter function() { if (requirementItemProvider == null) { requirementItemProvider = new RequirementItemProvider(this); } return requirementItemProvider; } protected WarningItemProvider warningItemProvider;
/** * This creates an adapter for a {@link eu.cloudscaleproject.env.method.common.method.Requirement}. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */
This creates an adapter for a <code>eu.cloudscaleproject.env.method.common.method.Requirement</code>.
createRequirementAdapter
{ "repo_name": "CloudScale-Project/Environment", "path": "plugins/eu.cloudscaleproject.env.method.editor/src/eu/cloudscaleproject/env/method/common/method/provider/MethodItemProviderAdapterFactory.java", "license": "epl-1.0", "size": 12037 }
[ "org.eclipse.emf.common.notify.Adapter" ]
import org.eclipse.emf.common.notify.Adapter;
import org.eclipse.emf.common.notify.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
2,258,872
private void doFireEvent(final ProgressEvent event) { final Integer hash = getKeyHash(); synchronized (INSTANCES_LOCK) { final WeakHashMap<AbstractModelManager, Object> mMap = INSTANCES.get(hash); if (mMap != null) { for (final AbstractModelManager instance :...
void function(final ProgressEvent event) { final Integer hash = getKeyHash(); synchronized (INSTANCES_LOCK) { final WeakHashMap<AbstractModelManager, Object> mMap = INSTANCES.get(hash); if (mMap != null) { for (final AbstractModelManager instance : mMap.keySet()) { instance.progressSupport.fireEvent(event); } } } }
/** * DOCUMENT ME! * * @param event DOCUMENT ME! */
DOCUMENT ME
doFireEvent
{ "repo_name": "cismet/cids-custom-sudplan", "path": "src/main/java/de/cismet/cids/custom/sudplan/AbstractModelManager.java", "license": "lgpl-3.0", "size": 26008 }
[ "de.cismet.commons.utils.ProgressEvent", "java.util.WeakHashMap" ]
import de.cismet.commons.utils.ProgressEvent; import java.util.WeakHashMap;
import de.cismet.commons.utils.*; import java.util.*;
[ "de.cismet.commons", "java.util" ]
de.cismet.commons; java.util;
2,088,276
protected void handleSESSION_CREATED(SessionMessage msg,Member sender) { counterReceive_EVT_SESSION_CREATED++; if (log.isDebugEnabled()) log.debug(sm.getString("deltaManager.receiveMessage.createNewSession",getName(), msg.getSessionID())); DeltaSession session = (DeltaSession) createEmptySes...
void function(SessionMessage msg,Member sender) { counterReceive_EVT_SESSION_CREATED++; if (log.isDebugEnabled()) log.debug(sm.getString(STR,getName(), msg.getSessionID())); DeltaSession session = (DeltaSession) createEmptySession(); session.setManager(this); session.setValid(true); session.setPrimarySession(false); se...
/** * handle receive new session is created at other node (create backup - primary false) * @param msg * @param sender */
handle receive new session is created at other node (create backup - primary false)
handleSESSION_CREATED
{ "repo_name": "deathspeeder/class-guard", "path": "apache-tomcat-7.0.53-src/java/org/apache/catalina/ha/session/DeltaManager.java", "license": "gpl-2.0", "size": 58979 }
[ "org.apache.catalina.tribes.Member" ]
import org.apache.catalina.tribes.Member;
import org.apache.catalina.tribes.*;
[ "org.apache.catalina" ]
org.apache.catalina;
1,604,004
public long readRawVarint64() throws IOException { int shift = 0; long result = 0; while (shift < 64) { final byte b = readRawByte(); result |= (long) (b & 0x7F) << shift; if ((b & 0x80) == 0) { return result; ...
long function() throws IOException { int shift = 0; long result = 0; while (shift < 64) { final byte b = readRawByte(); result = (long) (b & 0x7F) << shift; if ((b & 0x80) == 0) { return result; } shift += 7; } throw ProtobufException.malformedVarint(); }
/** * Read a raw Varint from the stream. */
Read a raw Varint from the stream
readRawVarint64
{ "repo_name": "Shvid/protostuff", "path": "protostuff-core/src/main/java/io/protostuff/CodedInput.java", "license": "apache-2.0", "size": 40683 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
2,027,072
public synchronized CandidateKeyPartIdentifier[] generateCandidates(byte[][] candidateKeys, float entropy) throws InternalApplicationException { if (candidateKeys == null) throw new IllegalArgumentException("candidateKeys can not be null" + (remoteIdentifier != null ? " [" + remoteIdentifier + "]" : ""...
synchronized CandidateKeyPartIdentifier[] function(byte[][] candidateKeys, float entropy) throws InternalApplicationException { if (candidateKeys == null) throw new IllegalArgumentException(STR + (remoteIdentifier != null ? STR + remoteIdentifier + "]" : STRLength of new key set is larger than the history size" + (remo...
/** Generate a list of candidate key parts out of key parts. This also stores the * list in recentKeyParts. * @param candidateKeys The list of candidate key parts for the current round. * @param entropy The estimated entropy of this set of candidates. * @return A list of candidate key parts that should be sent ...
Generate a list of candidate key parts out of key parts. This also stores the list in recentKeyParts
generateCandidates
{ "repo_name": "mobilesec/openuat", "path": "src/org/openuat/authentication/CandidateKeyProtocol.java", "license": "lgpl-3.0", "size": 92128 }
[ "org.apache.commons.codec.binary.Hex", "org.openuat.authentication.exceptions.InternalApplicationException" ]
import org.apache.commons.codec.binary.Hex; import org.openuat.authentication.exceptions.InternalApplicationException;
import org.apache.commons.codec.binary.*; import org.openuat.authentication.exceptions.*;
[ "org.apache.commons", "org.openuat.authentication" ]
org.apache.commons; org.openuat.authentication;
2,407,054
public void println(double x) throws IOException{ print(x); println(); }
void function(double x) throws IOException{ print(x); println(); }
/** * Print a double-precision floating-point number and then terminate the * line. This method behaves as though it invokes <code>{@link * #print(double)}</code> and then <code>{@link #println()}</code>. * * @throws IOException */
Print a double-precision floating-point number and then terminate the line. This method behaves as though it invokes <code><code>#print(double)</code></code> and then <code><code>#println()</code></code>
println
{ "repo_name": "ist-dresden/sling", "path": "bundles/scripting/jsp/src/main/java/org/apache/sling/scripting/jsp/jasper/runtime/BodyContentImpl.java", "license": "apache-2.0", "size": 19589 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
1,991,700