method
stringlengths
13
441k
clean_method
stringlengths
7
313k
doc
stringlengths
17
17.3k
comment
stringlengths
3
1.42k
method_name
stringlengths
1
273
extra
dict
imports
list
imports_info
stringlengths
19
34.8k
cluster_imports_info
stringlengths
15
3.66k
libraries
list
libraries_info
stringlengths
6
661
id
int64
0
2.92M
public Alarm findAlarm(String objectPath) { TimeSampleServer.sendMessage(context, TimeSampleServer.ALARM_EVENT_ACTION, getObjectPath(), "AlarmFactory findAlarm request"); for (Alarm alarm : alarms) { if (alarm.getObjectPath().equals(objectPath)) { return alarm; ...
Alarm function(String objectPath) { TimeSampleServer.sendMessage(context, TimeSampleServer.ALARM_EVENT_ACTION, getObjectPath(), STR); for (Alarm alarm : alarms) { if (alarm.getObjectPath().equals(objectPath)) { return alarm; } } return null; }
/** * Search for an Alarm in the Alarm list. * @param Object path of the Alarm to be searched * @return The found Alarm or NULL if the Alarm wasn't found */
Search for an Alarm in the Alarm list
findAlarm
{ "repo_name": "octoblu/alljoyn", "path": "alljoyn/services/time/java/sample_apps/android/TimeServiceSampleServer/src/org/allseen/timeservice/sample/server/logic/ServerAlarmFactory.java", "license": "isc", "size": 4515 }
[ "org.allseen.timeservice.sample.server.ui.TimeSampleServer", "org.allseen.timeservice.server.Alarm" ]
import org.allseen.timeservice.sample.server.ui.TimeSampleServer; import org.allseen.timeservice.server.Alarm;
import org.allseen.timeservice.sample.server.ui.*; import org.allseen.timeservice.server.*;
[ "org.allseen.timeservice" ]
org.allseen.timeservice;
2,486,365
public static void validateRetentionConfig(TableConfig tableConfig) { SegmentsValidationAndRetentionConfig segmentsConfig = tableConfig.getValidationConfig(); String tableName = tableConfig.getTableName(); if (segmentsConfig == null) { throw new IllegalStateException( String.format("Table...
static void function(TableConfig tableConfig) { SegmentsValidationAndRetentionConfig segmentsConfig = tableConfig.getValidationConfig(); String tableName = tableConfig.getTableName(); if (segmentsConfig == null) { throw new IllegalStateException( String.format(STRsegmentsConfig\STR, tableName)); } String segmentPushTyp...
/** * Validates retention config. Checks for following things: * - Valid segmentPushType * - Valid retentionTimeUnit */
Validates retention config. Checks for following things: - Valid segmentPushType - Valid retentionTimeUnit
validateRetentionConfig
{ "repo_name": "linkedin/pinot", "path": "pinot-core/src/main/java/org/apache/pinot/core/util/TableConfigUtils.java", "license": "apache-2.0", "size": 27813 }
[ "java.util.concurrent.TimeUnit", "org.apache.pinot.spi.config.table.SegmentsValidationAndRetentionConfig", "org.apache.pinot.spi.config.table.TableConfig", "org.apache.pinot.spi.config.table.TableType", "org.apache.pinot.spi.utils.IngestionConfigUtils" ]
import java.util.concurrent.TimeUnit; import org.apache.pinot.spi.config.table.SegmentsValidationAndRetentionConfig; import org.apache.pinot.spi.config.table.TableConfig; import org.apache.pinot.spi.config.table.TableType; import org.apache.pinot.spi.utils.IngestionConfigUtils;
import java.util.concurrent.*; import org.apache.pinot.spi.config.table.*; import org.apache.pinot.spi.utils.*;
[ "java.util", "org.apache.pinot" ]
java.util; org.apache.pinot;
1,035,418
@SuppressWarnings("unchecked") @Test public void testContainerReturnsExpectedName() throws Exception { // create container containerInstanceInfo = dockerHelper.createContainer(session, randomId, defaultImageInfo); containerInfo = containerInstanceInfo.getContainerInfo(); // setup context context...
@SuppressWarnings(STR) void function() throws Exception { containerInstanceInfo = dockerHelper.createContainer(session, randomId, defaultImageInfo); containerInfo = containerInstanceInfo.getContainerInfo(); context.put(EXECUTIONRESULT_KEY, executionResult); context.put(SESSION_KEY, session); context.put(CONTAINER_INFO_...
/** * Test that container built from default image (CentOS) returns expected name. * * The name is prefixed with a "/". */
Test that container built from default image (CentOS) returns expected name. The name is prefixed with a "/"
testContainerReturnsExpectedName
{ "repo_name": "athrane/pineapple", "path": "support/pineapple-docker-support/src/test/java/com/alpha/pineapple/docker/command/InspectContainerCommandSystemTest.java", "license": "gpl-3.0", "size": 10961 }
[ "com.alpha.pineapple.docker.model.rest.ContainerJson", "org.junit.Assert" ]
import com.alpha.pineapple.docker.model.rest.ContainerJson; import org.junit.Assert;
import com.alpha.pineapple.docker.model.rest.*; import org.junit.*;
[ "com.alpha.pineapple", "org.junit" ]
com.alpha.pineapple; org.junit;
530,183
public void testAddAll3() { NavigableSet q = set0(); Integer[] ints = new Integer[SIZE]; for (int i = 0; i < SIZE - 1; ++i) ints[i] = new Integer(i + SIZE); try { q.addAll(Arrays.asList(ints)); shouldThrow(); } catch (NullPointerException s...
void function() { NavigableSet q = set0(); Integer[] ints = new Integer[SIZE]; for (int i = 0; i < SIZE - 1; ++i) ints[i] = new Integer(i + SIZE); try { q.addAll(Arrays.asList(ints)); shouldThrow(); } catch (NullPointerException success) {} }
/** * addAll of a collection with any null elements throws NPE after * possibly adding some elements */
addAll of a collection with any null elements throws NPE after possibly adding some elements
testAddAll3
{ "repo_name": "life-beam/j2objc", "path": "jre_emul/android/platform/libcore/jsr166-tests/src/test/java/jsr166/TreeSubSetTest.java", "license": "apache-2.0", "size": 31113 }
[ "java.util.Arrays", "java.util.NavigableSet" ]
import java.util.Arrays; import java.util.NavigableSet;
import java.util.*;
[ "java.util" ]
java.util;
2,187,893
public String getExplorerFilesUri() { String body = "explorer_files.jsp?mode=explorerview"; if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(m_uri)) { body = m_uri; } return getJsp().link(body); }
String function() { String body = STR; if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(m_uri)) { body = m_uri; } return getJsp().link(body); }
/** * Returns the explorer files frame content uri.<p> * * Used by the explorer_body_fs.jsp.<p> * * @return the explorer files frame content uri */
Returns the explorer files frame content uri. Used by the explorer_body_fs.jsp
getExplorerFilesUri
{ "repo_name": "alkacon/opencms-core", "path": "src-modules/org/opencms/workplace/explorer/CmsExplorer.java", "license": "lgpl-2.1", "size": 33769 }
[ "org.opencms.util.CmsStringUtil" ]
import org.opencms.util.CmsStringUtil;
import org.opencms.util.*;
[ "org.opencms.util" ]
org.opencms.util;
2,729,364
private void createComposite1() { GridData gridData1 = new GridData(); gridData1.horizontalAlignment = org.eclipse.swt.layout.GridData.CENTER; GridLayout gridLayout1 = new GridLayout(); gridLayout1.numColumns = 2; composite1 = new Composite(sShell, SWT.NONE); composite1.setLayout(gridLayout1); c...
void function() { GridData gridData1 = new GridData(); gridData1.horizontalAlignment = org.eclipse.swt.layout.GridData.CENTER; GridLayout gridLayout1 = new GridLayout(); gridLayout1.numColumns = 2; composite1 = new Composite(sShell, SWT.NONE); composite1.setLayout(gridLayout1); composite1.setLayoutData(gridData1); butt...
/** * This method initializes composite1 * */
This method initializes composite1
createComposite1
{ "repo_name": "ckaestne/CIDE", "path": "CIDE2/src/de/ovgu/cide/alternativefeatures/MetaExpressionEditor.java", "license": "gpl-3.0", "size": 8907 }
[ "org.eclipse.swt.layout.GridData", "org.eclipse.swt.layout.GridLayout", "org.eclipse.swt.widgets.Button", "org.eclipse.swt.widgets.Composite" ]
import org.eclipse.swt.layout.GridData; import org.eclipse.swt.layout.GridLayout; import org.eclipse.swt.widgets.Button; import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.layout.*; import org.eclipse.swt.widgets.*;
[ "org.eclipse.swt" ]
org.eclipse.swt;
2,748,084
public static List<Topic> prepareTopics(List<Topic> topics) { UserSession userSession = SessionFacade.getUserSession(); long lastVisit = userSession.getLastVisit().getTime(); int hotBegin = SystemGlobals.getIntValue(ConfigKeys.HOT_TOPIC_BEGIN); int postsPerPage = SystemGlobals.getIntValue(ConfigKeys.POSTS_...
static List<Topic> function(List<Topic> topics) { UserSession userSession = SessionFacade.getUserSession(); long lastVisit = userSession.getLastVisit().getTime(); int hotBegin = SystemGlobals.getIntValue(ConfigKeys.HOT_TOPIC_BEGIN); int postsPerPage = SystemGlobals.getIntValue(ConfigKeys.POSTS_PER_PAGE); List<Topic> ne...
/** * Prepare the topics for listing. * This method does some preparation for a set ot <code>net.jforum.entities.Topic</code> * instances for the current user, like verification if the user already * read the topic, if pagination is a need and so on. * * @param topics The topics to process * @return The ...
Prepare the topics for listing. This method does some preparation for a set ot <code>net.jforum.entities.Topic</code> instances for the current user, like verification if the user already read the topic, if pagination is a need and so on
prepareTopics
{ "repo_name": "javadan/jforum", "path": "src/main/java/net/jforum/view/forum/common/TopicsCommon.java", "license": "bsd-3-clause", "size": 12127 }
[ "java.util.ArrayList", "java.util.Iterator", "java.util.List", "java.util.Map", "net.jforum.SessionFacade", "net.jforum.entities.Topic", "net.jforum.entities.UserSession", "net.jforum.util.preferences.ConfigKeys", "net.jforum.util.preferences.SystemGlobals" ]
import java.util.ArrayList; import java.util.Iterator; import java.util.List; import java.util.Map; import net.jforum.SessionFacade; import net.jforum.entities.Topic; import net.jforum.entities.UserSession; import net.jforum.util.preferences.ConfigKeys; import net.jforum.util.preferences.SystemGlobals;
import java.util.*; import net.jforum.*; import net.jforum.entities.*; import net.jforum.util.preferences.*;
[ "java.util", "net.jforum", "net.jforum.entities", "net.jforum.util" ]
java.util; net.jforum; net.jforum.entities; net.jforum.util;
1,655,511
@Nonnull Set<StateHandleID> getSharedStateHandleIDs();
Set<StateHandleID> getSharedStateHandleIDs();
/** * Returns a set of ids of all registered shared states in the backend at the time this was * created. */
Returns a set of ids of all registered shared states in the backend at the time this was created
getSharedStateHandleIDs
{ "repo_name": "tillrohrmann/flink", "path": "flink-runtime/src/main/java/org/apache/flink/runtime/state/IncrementalKeyedStateHandle.java", "license": "apache-2.0", "size": 1504 }
[ "java.util.Set" ]
import java.util.Set;
import java.util.*;
[ "java.util" ]
java.util;
1,350,352
public void setCumulatedAmtLL (BigDecimal CumulatedAmtLL) { set_Value (COLUMNNAME_CumulatedAmtLL, CumulatedAmtLL); }
void function (BigDecimal CumulatedAmtLL) { set_Value (COLUMNNAME_CumulatedAmtLL, CumulatedAmtLL); }
/** Set Accumulated Amt LL. @param CumulatedAmtLL Total Amount */
Set Accumulated Amt LL
setCumulatedAmtLL
{ "repo_name": "neuroidss/adempiere", "path": "base/src/org/compiere/model/X_M_CostDetail.java", "license": "gpl-2.0", "size": 28060 }
[ "java.math.BigDecimal" ]
import java.math.BigDecimal;
import java.math.*;
[ "java.math" ]
java.math;
2,493,267
public static UncaughtExceptionHandler getDefaultUncaughtExceptionHandler() { Scheduler.dumpStack(); throw new Error("TODO"); }
static UncaughtExceptionHandler function() { Scheduler.dumpStack(); throw new Error("TODO"); }
/** * <p> * Returns the default exception handler that's executed when uncaught * exception terminates a thread. * </p> * * @return An {@link UncaughtExceptionHandler} or <code>null</code> if * none exists. * @since 1.5 */
Returns the default exception handler that's executed when uncaught exception terminates a thread.
getDefaultUncaughtExceptionHandler
{ "repo_name": "ut-osa/laminar", "path": "jikesrvm-3.0.0/libraryInterface/Harmony/ASF/src/java/lang/Thread.java", "license": "bsd-3-clause", "size": 31815 }
[ "org.jikesrvm.scheduler.Scheduler" ]
import org.jikesrvm.scheduler.Scheduler;
import org.jikesrvm.scheduler.*;
[ "org.jikesrvm.scheduler" ]
org.jikesrvm.scheduler;
1,948,204
Day getWeekDay(Date date);
Day getWeekDay(Date date);
/** * Get week date from date * * @param date * @return */
Get week date from date
getWeekDay
{ "repo_name": "m-wrona/gwt-medicapital", "path": "common/com/medicapital/common/date/DateManager.java", "license": "mit", "size": 3393 }
[ "com.medicapital.common.entities.Day", "java.util.Date" ]
import com.medicapital.common.entities.Day; import java.util.Date;
import com.medicapital.common.entities.*; import java.util.*;
[ "com.medicapital.common", "java.util" ]
com.medicapital.common; java.util;
1,594,622
public void handleContentOutlineSelection(ISelection selection) { if (currentViewerPane != null && !selection.isEmpty() && selection instanceof IStructuredSelection) { Iterator<?> selectedElements = ((IStructuredSelection)selection).iterator(); if (selectedElements.hasNext()) { // Get the first selected ...
void function(ISelection selection) { if (currentViewerPane != null && !selection.isEmpty() && selection instanceof IStructuredSelection) { Iterator<?> selectedElements = ((IStructuredSelection)selection).iterator(); if (selectedElements.hasNext()) { ArrayList<Object> selectionList = new ArrayList<Object>(); selectionL...
/** * This deals with how we want selection in the outliner to affect the other views. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */
This deals with how we want selection in the outliner to affect the other views.
handleContentOutlineSelection
{ "repo_name": "francoispfister/diagraph", "path": "org.isoe.diagraph.megamodel.editor/src/org/isoe/diagraph/megamodel/presentation/MegamodelEditor.java", "license": "epl-1.0", "size": 53772 }
[ "java.util.ArrayList", "java.util.Iterator", "org.eclipse.jface.viewers.ISelection", "org.eclipse.jface.viewers.IStructuredSelection" ]
import java.util.ArrayList; import java.util.Iterator; import org.eclipse.jface.viewers.ISelection; import org.eclipse.jface.viewers.IStructuredSelection;
import java.util.*; import org.eclipse.jface.viewers.*;
[ "java.util", "org.eclipse.jface" ]
java.util; org.eclipse.jface;
1,691,161
@Template("<span id='{0}' style='display: inline-block; padding: 2px;'>{1}</span>") SafeHtml bookmarkItem(String id, String text);
@Template(STR) SafeHtml bookmarkItem(String id, String text);
/** * Creates a bookmark-item HTML * * @param text * the bookmark title */
Creates a bookmark-item HTML
bookmarkItem
{ "repo_name": "jtux270/translate", "path": "ovirt/frontend/webadmin/modules/webadmin/src/main/java/org/ovirt/engine/ui/webadmin/ApplicationTemplates.java", "license": "gpl-3.0", "size": 8199 }
[ "com.google.gwt.safehtml.shared.SafeHtml" ]
import com.google.gwt.safehtml.shared.SafeHtml;
import com.google.gwt.safehtml.shared.*;
[ "com.google.gwt" ]
com.google.gwt;
1,435,223
EList<Equation> getElseif_eqs();
EList<Equation> getElseif_eqs();
/** * Returns the value of the '<em><b>Elseif eqs</b></em>' containment reference list. * The list contents are of type {@link xmodelica.modelica.Equation}. * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Elseif eqs</em>' containment reference list isn't clear, * there really should be mo...
Returns the value of the 'Elseif eqs' containment reference list. The list contents are of type <code>xmodelica.modelica.Equation</code>. If the meaning of the 'Elseif eqs' containment reference list isn't clear, there really should be more of a description here...
getElseif_eqs
{ "repo_name": "jgoppert/xmodelica", "path": "xmodelica/src-gen/xmodelica/modelica/IfEquation.java", "license": "bsd-3-clause", "size": 4269 }
[ "org.eclipse.emf.common.util.EList" ]
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.common.util.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
812,801
public static <T> Multibinder<T> newSetBinder( Binder binder, TypeLiteral<T> type, Annotation annotation) { binder = binder.skipSources(RealMultibinder.class, Multibinder.class); RealMultibinder<T> result = new RealMultibinder<T>(binder, type, annotation.toString(), Key.get(Multibinder.<T>setOf(...
static <T> Multibinder<T> function( Binder binder, TypeLiteral<T> type, Annotation annotation) { binder = binder.skipSources(RealMultibinder.class, Multibinder.class); RealMultibinder<T> result = new RealMultibinder<T>(binder, type, annotation.toString(), Key.get(Multibinder.<T>setOf(type), annotation)); binder.install...
/** * Returns a new multibinder that collects instances of {@code type} in a {@link Set} that is * itself bound with {@code annotation}. */
Returns a new multibinder that collects instances of type in a <code>Set</code> that is itself bound with annotation
newSetBinder
{ "repo_name": "jstrachan/guicey", "path": "extensions/multibindings/src/com/google/inject/multibindings/Multibinder.java", "license": "apache-2.0", "size": 11963 }
[ "com.google.inject.Binder", "com.google.inject.Key", "com.google.inject.TypeLiteral", "java.lang.annotation.Annotation" ]
import com.google.inject.Binder; import com.google.inject.Key; import com.google.inject.TypeLiteral; import java.lang.annotation.Annotation;
import com.google.inject.*; import java.lang.annotation.*;
[ "com.google.inject", "java.lang" ]
com.google.inject; java.lang;
1,744,386
@PutMapping("/{key}/projects/{projectKey}") public ResponseEntity<String> addUserFavProject( @PathVariable("key") String key, @PathVariable("projectKey") String projectKey) { log.info("Adding Favorite Project to user"); return updateArrayAttr(key, "favoriteProjects", projectKey, "$push"); }
@PutMapping(STR) ResponseEntity<String> function( @PathVariable("key") String key, @PathVariable(STR) String projectKey) { log.info(STR); return updateArrayAttr(key, STR, projectKey, "$push"); }
/** * Add a favorite project to an existing user. */
Add a favorite project to an existing user
addUserFavProject
{ "repo_name": "AO-StreetArt/Adrestia", "path": "src/main/java/com/ao/adrestia/controller/UsersController.java", "license": "apache-2.0", "size": 12965 }
[ "org.springframework.http.ResponseEntity", "org.springframework.web.bind.annotation.PathVariable", "org.springframework.web.bind.annotation.PutMapping" ]
import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.http.*; import org.springframework.web.bind.annotation.*;
[ "org.springframework.http", "org.springframework.web" ]
org.springframework.http; org.springframework.web;
942,682
public HandlerRegistration addColumnVisibilityChangeHandler( ColumnVisibilityChangeHandler<T> handler) { return addHandler(handler, ColumnVisibilityChangeEvent.getType()); }
HandlerRegistration function( ColumnVisibilityChangeHandler<T> handler) { return addHandler(handler, ColumnVisibilityChangeEvent.getType()); }
/** * Register a column visibility change handler to this Grid. The event for * this handler is fired when the Grid's columns change visibility. * * @since 7.5.0 * @param handler * the handler for the event * @return the registration for the event */
Register a column visibility change handler to this Grid. The event for this handler is fired when the Grid's columns change visibility
addColumnVisibilityChangeHandler
{ "repo_name": "kironapublic/vaadin", "path": "client/src/main/java/com/vaadin/client/widgets/Grid.java", "license": "apache-2.0", "size": 330612 }
[ "com.google.gwt.event.shared.HandlerRegistration", "com.vaadin.client.widget.grid.events.ColumnVisibilityChangeEvent", "com.vaadin.client.widget.grid.events.ColumnVisibilityChangeHandler" ]
import com.google.gwt.event.shared.HandlerRegistration; import com.vaadin.client.widget.grid.events.ColumnVisibilityChangeEvent; import com.vaadin.client.widget.grid.events.ColumnVisibilityChangeHandler;
import com.google.gwt.event.shared.*; import com.vaadin.client.widget.grid.events.*;
[ "com.google.gwt", "com.vaadin.client" ]
com.google.gwt; com.vaadin.client;
839,238
private IgfsFileWorkerBatch newBatch(final IgfsPath path, OutputStream out) throws IgniteCheckedException { assert path != null; assert out != null;
IgfsFileWorkerBatch function(final IgfsPath path, OutputStream out) throws IgniteCheckedException { assert path != null; assert out != null;
/** * Create batch for the file. * * @param path File path in the secondary file system. * @param out Output stream to that file. * @return Created batch. * @throws IgniteCheckedException In case new batch cannot be created. */
Create batch for the file
newBatch
{ "repo_name": "ryanzz/ignite", "path": "modules/core/src/main/java/org/apache/ignite/internal/processors/igfs/IgfsImpl.java", "license": "apache-2.0", "size": 70806 }
[ "java.io.OutputStream", "org.apache.ignite.IgniteCheckedException", "org.apache.ignite.igfs.IgfsPath" ]
import java.io.OutputStream; import org.apache.ignite.IgniteCheckedException; import org.apache.ignite.igfs.IgfsPath;
import java.io.*; import org.apache.ignite.*; import org.apache.ignite.igfs.*;
[ "java.io", "org.apache.ignite" ]
java.io; org.apache.ignite;
219,411
public static Schema readSchema(String path, boolean validateSchema, Configuration conf) throws IOException { if (path.endsWith(INDEX_FILE_EXT)) { return readSchemaFromIndexFile(path, conf); } else if (path.endsWith(CARBON_DATA_EXT)) { return readSchemaFromDataFile(path, conf); } else if...
static Schema function(String path, boolean validateSchema, Configuration conf) throws IOException { if (path.endsWith(INDEX_FILE_EXT)) { return readSchemaFromIndexFile(path, conf); } else if (path.endsWith(CARBON_DATA_EXT)) { return readSchemaFromDataFile(path, conf); } else if (validateSchema) { CarbonFile[] carbonIn...
/** * read schema from path, * path can be folder path, carbonindex file path, and carbondata file path * and user can decide whether check all files schema * * @param path file/folder path * @param validateSchema whether check all files schema * @param conf hadoop configuration...
read schema from path, path can be folder path, carbonindex file path, and carbondata file path and user can decide whether check all files schema
readSchema
{ "repo_name": "ravipesala/incubator-carbondata", "path": "store/sdk/src/main/java/org/apache/carbondata/sdk/file/CarbonSchemaReader.java", "license": "apache-2.0", "size": 11391 }
[ "java.io.IOException", "org.apache.carbondata.core.datastore.filesystem.CarbonFile", "org.apache.carbondata.processing.loading.exception.CarbonDataLoadingException", "org.apache.hadoop.conf.Configuration" ]
import java.io.IOException; import org.apache.carbondata.core.datastore.filesystem.CarbonFile; import org.apache.carbondata.processing.loading.exception.CarbonDataLoadingException; import org.apache.hadoop.conf.Configuration;
import java.io.*; import org.apache.carbondata.core.datastore.filesystem.*; import org.apache.carbondata.processing.loading.exception.*; import org.apache.hadoop.conf.*;
[ "java.io", "org.apache.carbondata", "org.apache.hadoop" ]
java.io; org.apache.carbondata; org.apache.hadoop;
1,417,646
public float computeTableUnit(PercentBaseContext percentBaseContext, int contentAreaIPD) { int sumCols = 0; float factors = 0; float unit = 0; for (Iterator i = colWidths.iterator(); i.hasNext();) { Length colWidth = (Length) i.next(); if (colWidth ...
float function(PercentBaseContext percentBaseContext, int contentAreaIPD) { int sumCols = 0; float factors = 0; float unit = 0; for (Iterator i = colWidths.iterator(); i.hasNext();) { Length colWidth = (Length) i.next(); if (colWidth != null) { sumCols += colWidth.getValue(percentBaseContext); if (colWidth instanceof R...
/** * Works out the base unit for resolving proportional-column-width() * [p-c-w(x) = x * base_unit_ipd] * * @param percentBaseContext the percent base context for relative values * @param contentAreaIPD the IPD of the available content area * @return the computed base unit (in millipoints...
Works out the base unit for resolving proportional-column-width() [p-c-w(x) = x * base_unit_ipd]
computeTableUnit
{ "repo_name": "spepping/fop-cs", "path": "src/java/org/apache/fop/layoutmgr/table/ColumnSetup.java", "license": "apache-2.0", "size": 11394 }
[ "java.util.Iterator", "org.apache.fop.datatypes.Length", "org.apache.fop.datatypes.PercentBaseContext", "org.apache.fop.fo.expr.RelativeNumericProperty", "org.apache.fop.fo.properties.TableColLength" ]
import java.util.Iterator; import org.apache.fop.datatypes.Length; import org.apache.fop.datatypes.PercentBaseContext; import org.apache.fop.fo.expr.RelativeNumericProperty; import org.apache.fop.fo.properties.TableColLength;
import java.util.*; import org.apache.fop.datatypes.*; import org.apache.fop.fo.expr.*; import org.apache.fop.fo.properties.*;
[ "java.util", "org.apache.fop" ]
java.util; org.apache.fop;
246,297
@Deprecated public ShapelessRecipe removeIngredient(Material ingredient, int rawdata) { return removeIngredient(1, ingredient, rawdata); }
ShapelessRecipe function(Material ingredient, int rawdata) { return removeIngredient(1, ingredient, rawdata); }
/** * Removes an ingredient from the list. If the ingredient occurs multiple * times, only one instance of it is removed. If the data value is -1, * only ingredients with a -1 data value will be removed. * * @param ingredient The ingredient to remove * @param rawdata The data value; *...
Removes an ingredient from the list. If the ingredient occurs multiple times, only one instance of it is removed. If the data value is -1, only ingredients with a -1 data value will be removed
removeIngredient
{ "repo_name": "Scrik/Cauldron-1", "path": "eclipse/cauldron/src/main/java/org/bukkit/inventory/ShapelessRecipe.java", "license": "gpl-3.0", "size": 7842 }
[ "org.bukkit.Material" ]
import org.bukkit.Material;
import org.bukkit.*;
[ "org.bukkit" ]
org.bukkit;
2,868,565
public static BinTools forProduction(BlazeDirectories directories) throws IOException { ImmutableList.Builder<String> builder = ImmutableList.builder(); scanDirectoryRecursively(builder, directories.getEmbeddedBinariesRoot(), ""); return new BinTools(directories, builder.build()); }
static BinTools function(BlazeDirectories directories) throws IOException { ImmutableList.Builder<String> builder = ImmutableList.builder(); scanDirectoryRecursively(builder, directories.getEmbeddedBinariesRoot(), ""); return new BinTools(directories, builder.build()); }
/** * Creates an instance with the list of embedded tools obtained from scanning the directory * into which said binaries were extracted by the launcher. */
Creates an instance with the list of embedded tools obtained from scanning the directory into which said binaries were extracted by the launcher
forProduction
{ "repo_name": "juhalindfors/bazel-patches", "path": "src/main/java/com/google/devtools/build/lib/analysis/config/BinTools.java", "license": "apache-2.0", "size": 8496 }
[ "com.google.common.collect.ImmutableList", "com.google.devtools.build.lib.analysis.BlazeDirectories", "java.io.IOException" ]
import com.google.common.collect.ImmutableList; import com.google.devtools.build.lib.analysis.BlazeDirectories; import java.io.IOException;
import com.google.common.collect.*; import com.google.devtools.build.lib.analysis.*; import java.io.*;
[ "com.google.common", "com.google.devtools", "java.io" ]
com.google.common; com.google.devtools; java.io;
2,029,473
public void checkAlphabeticRow(final INattableModelManager currentManager) { // Check the index style AbstractHeaderAxisConfiguration headerConfiguration = HeaderAxisConfigurationManagementUtils.getRowAbstractHeaderAxisInTable(currentManager.getTable()); if (null == headerConfiguration) { headerConfiguratio...
void function(final INattableModelManager currentManager) { AbstractHeaderAxisConfiguration headerConfiguration = HeaderAxisConfigurationManagementUtils.getRowAbstractHeaderAxisInTable(currentManager.getTable()); if (null == headerConfiguration) { headerConfiguration = HeaderAxisConfigurationManagementUtils.getRowAbstr...
/** * This allow to check the alphabetic row * * @param currentManager * The nattable model manager. */
This allow to check the alphabetic row
checkAlphabeticRow
{ "repo_name": "bmaggi/Papyrus-SysML11", "path": "tests/org.eclipse.papyrus.sysml.nattable.requirement.tests/src/org/eclipse/papyrus/sysml/nattable/requirement/tests/bugs/AbstractAxisChangeIndexTest.java", "license": "epl-1.0", "size": 14591 }
[ "org.eclipse.nebula.widgets.nattable.grid.layer.RowHeaderLayer", "org.eclipse.nebula.widgets.nattable.layer.AbstractLayer", "org.eclipse.papyrus.infra.nattable.manager.table.INattableModelManager", "org.eclipse.papyrus.infra.nattable.manager.table.NattableModelManager", "org.eclipse.papyrus.infra.nattable.m...
import org.eclipse.nebula.widgets.nattable.grid.layer.RowHeaderLayer; import org.eclipse.nebula.widgets.nattable.layer.AbstractLayer; import org.eclipse.papyrus.infra.nattable.manager.table.INattableModelManager; import org.eclipse.papyrus.infra.nattable.manager.table.NattableModelManager; import org.eclipse.papyrus.in...
import org.eclipse.nebula.widgets.nattable.grid.layer.*; import org.eclipse.nebula.widgets.nattable.layer.*; import org.eclipse.papyrus.infra.nattable.manager.table.*; import org.eclipse.papyrus.infra.nattable.model.nattable.nattableaxisconfiguration.*; import org.eclipse.papyrus.infra.nattable.utils.*; import org.juni...
[ "org.eclipse.nebula", "org.eclipse.papyrus", "org.junit" ]
org.eclipse.nebula; org.eclipse.papyrus; org.junit;
1,453,070
@Override public String getAttribute( String attributeName ) { if ( this.attributes == null ) { this.attributes = new HashMap<String, String>(); } String attrValue = this.attributes.get(attributeName); if (attrValue == null) { attrValue = this.context.executeJavascript(this.getHTMLPoint...
String function( String attributeName ) { if ( this.attributes == null ) { this.attributes = new HashMap<String, String>(); } String attrValue = this.attributes.get(attributeName); if (attrValue == null) { attrValue = this.context.executeJavascript(this.getHTMLPointer() + "." + attributeName ); if ( attrValue == null )...
/** * Get the value of the specified attribute. * * @param attributeName * @return value of the attribute, or empty string if it doesn't exists */
Get the value of the specified attribute
getAttribute
{ "repo_name": "noushadali/uiunit-core", "path": "src/java/com/cordys/cm/uiunit/elements/finder/internal/DefaultElement.java", "license": "apache-2.0", "size": 7947 }
[ "java.util.HashMap" ]
import java.util.HashMap;
import java.util.*;
[ "java.util" ]
java.util;
1,803,174
public Short getShortEnvVar(String arg1) throws NamingException;
Short function(String arg1) throws NamingException;
/** * get Short environment variable using java:comp/env */
get Short environment variable using java:comp/env
getShortEnvVar
{ "repo_name": "OpenLiberty/open-liberty", "path": "dev/com.ibm.ws.ejbcontainer.legacy_fat/test-applications/EJB2XSFLocalSpecEJB.jar/src/com/ibm/ejb2x/base/spec/sfl/ejb/SFLa.java", "license": "epl-1.0", "size": 8578 }
[ "javax.naming.NamingException" ]
import javax.naming.NamingException;
import javax.naming.*;
[ "javax.naming" ]
javax.naming;
494,804
public AzureWorkloadRestoreRequest withPropertyBag(Map<String, String> propertyBag) { this.propertyBag = propertyBag; return this; }
AzureWorkloadRestoreRequest function(Map<String, String> propertyBag) { this.propertyBag = propertyBag; return this; }
/** * Set workload specific property bag. * * @param propertyBag the propertyBag value to set * @return the AzureWorkloadRestoreRequest object itself. */
Set workload specific property bag
withPropertyBag
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/recoveryservices.backup/mgmt-v2017_07_01/src/main/java/com/microsoft/azure/management/recoveryservices/backup/v2017_07_01/AzureWorkloadRestoreRequest.java", "license": "mit", "size": 3449 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
2,004,905
@SuppressWarnings("deprecation") public String toDeploymentString() { logger.debug(LOG_ENTRY, "toDeploymentString"); StringBuilder sb = new StringBuilder(_package); // Note that the RESOLUTION_DIRECTIVE is set in this map, so it will be // output automatically. p41 of the OSGi Core Spec v4.2 include...
@SuppressWarnings(STR) String function() { logger.debug(LOG_ENTRY, STR); StringBuilder sb = new StringBuilder(_package); for (Map.Entry<String, String> entry : _attributes.entrySet()) { String key = entry.getKey(); String value = entry.getValue(); if (!key.equals(Constants.BUNDLE_SYMBOLICNAME_ATTRIBUTE) && !key.equals(...
/** * This method turns an {@link ImportedPackageImpl} into a string suitable for a * Provision-Bundle style package import. * It will not include ;bundle-symbolic-name=bundleName;bundle-version=version attribute pairs * @return A String */
This method turns an <code>ImportedPackageImpl</code> into a string suitable for a Provision-Bundle style package import. It will not include ;bundle-symbolic-name=bundleName;bundle-version=version attribute pairs
toDeploymentString
{ "repo_name": "WouterBanckenACA/aries", "path": "application/application-modeller/src/main/java/org/apache/aries/application/modelling/impl/ImportedPackageImpl.java", "license": "apache-2.0", "size": 9620 }
[ "java.util.Map", "org.apache.aries.application.modelling.ResourceType", "org.osgi.framework.Constants" ]
import java.util.Map; import org.apache.aries.application.modelling.ResourceType; import org.osgi.framework.Constants;
import java.util.*; import org.apache.aries.application.modelling.*; import org.osgi.framework.*;
[ "java.util", "org.apache.aries", "org.osgi.framework" ]
java.util; org.apache.aries; org.osgi.framework;
2,447,851
public long getPos() throws IOException { return in.getPos(); }
long function() throws IOException { return in.getPos(); }
/** * Returns the current position in the file. * * @return The long of the current position in the file. */
Returns the current position in the file
getPos
{ "repo_name": "supermy/nutch2", "path": "src/java/org/apache/nutch/tools/arc/ArcRecordReader.java", "license": "apache-2.0", "size": 9258 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
2,528,645
HttpURLConnection getHTTPConnection(String pathInfo, boolean preAuthHeader) throws IOException, RepositoryException;
HttpURLConnection getHTTPConnection(String pathInfo, boolean preAuthHeader) throws IOException, RepositoryException;
/** * Use this function only if there are no query parameters. Use * {@link #getHTTPConnection(String, String, boolean)} otherwise. * * @param pathInfo * should look like 'RAWS/...' without a '/' in front. Furthermore the pathInfo * should NOT be encoded. This will be done by this func...
Use this function only if there are no query parameters. Use <code>#getHTTPConnection(String, String, boolean)</code> otherwise
getHTTPConnection
{ "repo_name": "boob-sbcm/3838438", "path": "src/main/java/com/rapidminer/repository/internal/remote/RemoteRepository.java", "license": "agpl-3.0", "size": 7378 }
[ "com.rapidminer.repository.RepositoryException", "java.io.IOException", "java.net.HttpURLConnection" ]
import com.rapidminer.repository.RepositoryException; import java.io.IOException; import java.net.HttpURLConnection;
import com.rapidminer.repository.*; import java.io.*; import java.net.*;
[ "com.rapidminer.repository", "java.io", "java.net" ]
com.rapidminer.repository; java.io; java.net;
2,230,797
public String getProperty(final String property){ Resource resource = new ClassPathResource("properties-test/test-config.properties"); Properties props = null; try { props = PropertiesLoaderUtils.loadProperties(resource); } catch (IOException e) { //e.printSta...
String function(final String property){ Resource resource = new ClassPathResource(STR); Properties props = null; try { props = PropertiesLoaderUtils.loadProperties(resource); } catch (IOException e) { log.error(e); } return props.getProperty(property); }
/** * Get Property. * @param property * @return */
Get Property
getProperty
{ "repo_name": "cristiani/encuestame", "path": "enme-persistence/enme-dao/src/test/java/org/encuestame/test/config/AbstractBase.java", "license": "apache-2.0", "size": 90063 }
[ "java.io.IOException", "java.util.Properties", "org.springframework.core.io.ClassPathResource", "org.springframework.core.io.Resource", "org.springframework.core.io.support.PropertiesLoaderUtils" ]
import java.io.IOException; import java.util.Properties; import org.springframework.core.io.ClassPathResource; import org.springframework.core.io.Resource; import org.springframework.core.io.support.PropertiesLoaderUtils;
import java.io.*; import java.util.*; import org.springframework.core.io.*; import org.springframework.core.io.support.*;
[ "java.io", "java.util", "org.springframework.core" ]
java.io; java.util; org.springframework.core;
1,263,133
public void computeDiffTree(List<UseResult> useResults, FDCompareResult compareResult) { // First clear old results. this.diffs.clear(); // The hotSpotDiffs list points to diff structures for all used hot spots. Single hot spot diffs // may appear several times in this list....
void function(List<UseResult> useResults, FDCompareResult compareResult) { this.diffs.clear(); for (FDifference hsDiff : this.hotSpotDiffs) { FDifference clonedParentDiff = this.computeClonedParentPath(hsDiff.clone(true), hsDiff); this.mergeDiffs(this.diffs, clonedParentDiff); if (hsDiff.getSource() instanceof HotSpot)...
/** * Compute the diff tree that only contains relevant changes. * * @param compareResult * - The complete compare result that contains all changes found. */
Compute the diff tree that only contains relevant changes
computeDiffTree
{ "repo_name": "fchrist/companian", "path": "cpweb/src/main/java/de/fct/companian/ccc/CompatibilityResult.java", "license": "apache-2.0", "size": 8003 }
[ "de.fct.companian.compare.FDCompareResult", "de.fct.companian.use.UseResult", "de.fct.fdmm.FDKind", "de.fct.fdmm.FDifference", "de.fct.fdmm.architecturedl.behaviordl.HotSpotGroupCall", "de.fct.fdmm.core.BehaviorView", "de.fct.fdmm.hotspot.HotSpot", "java.util.List" ]
import de.fct.companian.compare.FDCompareResult; import de.fct.companian.use.UseResult; import de.fct.fdmm.FDKind; import de.fct.fdmm.FDifference; import de.fct.fdmm.architecturedl.behaviordl.HotSpotGroupCall; import de.fct.fdmm.core.BehaviorView; import de.fct.fdmm.hotspot.HotSpot; import java.util.List;
import de.fct.companian.compare.*; import de.fct.companian.use.*; import de.fct.fdmm.*; import de.fct.fdmm.architecturedl.behaviordl.*; import de.fct.fdmm.core.*; import de.fct.fdmm.hotspot.*; import java.util.*;
[ "de.fct.companian", "de.fct.fdmm", "java.util" ]
de.fct.companian; de.fct.fdmm; java.util;
364,762
public static Image getCardBack() { if (cardBack==null) return null; return cardBack; }
static Image function() { if (cardBack==null) return null; return cardBack; }
/** * Returns the back of the card.<br> * Pre: ImageGrab.loadCards() has been called to initialize the cardback-image */
Returns the back of the card. Pre: ImageGrab.loadCards() has been called to initialize the cardback-image
getCardBack
{ "repo_name": "AOODProject1/MilleBornes", "path": "MilleBornes/src/millebornes/util/ImageGrab.java", "license": "gpl-3.0", "size": 1978 }
[ "java.awt.Image" ]
import java.awt.Image;
import java.awt.*;
[ "java.awt" ]
java.awt;
829,043
@param other The {@link XMLDocumentType} to compare with. @return A result as defined by {@link Comparable#compareTo(Object)}. */ public int compareTo(XMLDocumentType other) { int elementsCmp = Utils.compare(elements, other.elements()); if (elementsCmp != 0) { return elementsCmp; } int attlists...
@param other The {@link XMLDocumentType} to compare with. @return A result as defined by { Comparable#compareTo(Object)}. */ int function(XMLDocumentType other) { int elementsCmp = Utils.compare(elements, other.elements()); if (elementsCmp != 0) { return elementsCmp; } int attlistsCmp = Utils.compare(attlists, other.at...
/** Implement {@link Comparable#compareTo(Object)}. @param other The {@link XMLDocumentType} to compare with. @return A result as defined by {@link Comparable#compareTo(Object)}. */
Implement <code>Comparable#compareTo(Object)</code>
compareTo
{ "repo_name": "conormcd/exemplar", "path": "src/com/mcdermottroe/exemplar/model/XMLDocumentType.java", "license": "bsd-3-clause", "size": 7960 }
[ "com.mcdermottroe.exemplar.Utils" ]
import com.mcdermottroe.exemplar.Utils;
import com.mcdermottroe.exemplar.*;
[ "com.mcdermottroe.exemplar" ]
com.mcdermottroe.exemplar;
1,415,163
public static void toastLong(Context context, String msg) { //single instance if (sToast == null) { //create an Toast object without showing out sToast = Toast.makeText(context, "", Toast.LENGTH_LONG); } //set text to be displayed sToast.setText(msg); //show this toast ...
static void function(Context context, String msg) { if (sToast == null) { sToast = Toast.makeText(context, "", Toast.LENGTH_LONG); } sToast.setText(msg); sToast.show(); }
/** * show a toast in a long time * @param context a context * @param msg the message to be displayed */
show a toast in a long time
toastLong
{ "repo_name": "fantasymaker-cn/LSQ-Android-Utils", "path": "src/cn/fantasymaker/lsqandroidutils/utils/ToastUtil.java", "license": "apache-2.0", "size": 1412 }
[ "android.content.Context", "android.widget.Toast" ]
import android.content.Context; import android.widget.Toast;
import android.content.*; import android.widget.*;
[ "android.content", "android.widget" ]
android.content; android.widget;
1,443,933
public static void upsertMessageBody(UCSDto<MessageBody> dto, SqlSession sqlSession, boolean insert){ try{ for(MessageBody messageBody : dto.getListT()) { int updated = sqlSession.insert("updateMessageBody", messageBody); if(insert && updated == 0 ){ updated = sqlSession.insert("insertMessageBody"...
static void function(UCSDto<MessageBody> dto, SqlSession sqlSession, boolean insert){ try{ for(MessageBody messageBody : dto.getListT()) { int updated = sqlSession.insert(STR, messageBody); if(insert && updated == 0 ){ updated = sqlSession.insert(STR, messageBody); } if(updated == 0){ dto.getMsgs().put(DTOMessageType.W...
/** * Will update MessageBody * If insert == true then if the MessageBody does not exist it will be inserted. * NOTE: IMPORTANT: The SqlSession and Transaction will need to be controlled by the caller * @param dto */
Will update MessageBody If insert == true then if the MessageBody does not exist it will be inserted
upsertMessageBody
{ "repo_name": "SocraticGrid/Services-Backup", "path": "VACDS-UCS-Engine-RI/src/main/java/org/socraticgrid/hl7/services/uc/db/UCSDataService.java", "license": "apache-2.0", "size": 61162 }
[ "org.apache.ibatis.session.SqlSession", "org.socraticgrid.hl7.services.uc.db.dto.DTOMessageType", "org.socraticgrid.hl7.services.uc.db.dto.UCSDto", "org.socraticgrid.hl7.services.uc.model.MessageBody" ]
import org.apache.ibatis.session.SqlSession; import org.socraticgrid.hl7.services.uc.db.dto.DTOMessageType; import org.socraticgrid.hl7.services.uc.db.dto.UCSDto; import org.socraticgrid.hl7.services.uc.model.MessageBody;
import org.apache.ibatis.session.*; import org.socraticgrid.hl7.services.uc.db.dto.*; import org.socraticgrid.hl7.services.uc.model.*;
[ "org.apache.ibatis", "org.socraticgrid.hl7" ]
org.apache.ibatis; org.socraticgrid.hl7;
1,103,544
Optional<ReadOnlyTaskManager> readAddressBook() throws DataConversionException, IOException;
Optional<ReadOnlyTaskManager> readAddressBook() throws DataConversionException, IOException;
/** * Returns AddressBook data as a {@link ReadOnlyTaskManager}. * Returns {@code Optional.empty()} if storage file is not found. * @throws DataConversionException if the data in storage is not in the expected format. * @throws IOException if there was any problem when reading from the storage. ...
Returns AddressBook data as a <code>ReadOnlyTaskManager</code>. Returns Optional.empty() if storage file is not found
readAddressBook
{ "repo_name": "CS2103JAN2017-T09-B3/main", "path": "src/main/java/seedu/mypotato/storage/TaskManagerStorage.java", "license": "mit", "size": 1494 }
[ "java.io.IOException", "java.util.Optional" ]
import java.io.IOException; import java.util.Optional;
import java.io.*; import java.util.*;
[ "java.io", "java.util" ]
java.io; java.util;
1,926,125
public void add(Class<? extends Term> termClass) throws InvocationTargetException, NoSuchMethodException, InstantiationException, IllegalAccessException { Term term = instantiate(termClass); this.termMap.put(term.getStartEnclosingString(), termClass); }
void function(Class<? extends Term> termClass) throws InvocationTargetException, NoSuchMethodException, InstantiationException, IllegalAccessException { Term term = instantiate(termClass); this.termMap.put(term.getStartEnclosingString(), termClass); }
/** * Adds the. * * @param termClass * the term class * @throws InvocationTargetException * the invocation target exception * @throws NoSuchMethodException * the no such method exception * @throws InstantiationException * the instantiation exc...
Adds the
add
{ "repo_name": "MyCoRe-Org/MyVidCoRe", "path": "src/main/java/org/mycore/vidconv/common/TextResolver.java", "license": "gpl-3.0", "size": 27508 }
[ "java.lang.reflect.InvocationTargetException" ]
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.*;
[ "java.lang" ]
java.lang;
2,722,101
protected void uploadWar(PrintWriter writer, HttpServletRequest request, File war, StringManager smClient) throws IOException { if (war.exists() && !war.delete()) { String msg = smClient.getString("managerServlet.deleteFail", war); throw new IOException(msg); ...
void function(PrintWriter writer, HttpServletRequest request, File war, StringManager smClient) throws IOException { if (war.exists() && !war.delete()) { String msg = smClient.getString(STR, war); throw new IOException(msg); } ServletInputStream istream = null; BufferedOutputStream ostream = null; try { istream = reque...
/** * Upload the WAR file included in this request, and store it at the * specified file location. * * @param writer Writer to render to * @param request The servlet request we are processing * @param war The file into which we should store the uploaded WAR * @param ...
Upload the WAR file included in this request, and store it at the specified file location
uploadWar
{ "repo_name": "pistolove/sourcecode4junit", "path": "Source4Tomcat/src/org/apache/catalina/manager/ManagerServlet.java", "license": "apache-2.0", "size": 61389 }
[ "java.io.BufferedOutputStream", "java.io.File", "java.io.FileOutputStream", "java.io.IOException", "java.io.PrintWriter", "javax.servlet.ServletInputStream", "javax.servlet.http.HttpServletRequest", "org.apache.tomcat.util.ExceptionUtils", "org.apache.tomcat.util.res.StringManager" ]
import java.io.BufferedOutputStream; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.PrintWriter; import javax.servlet.ServletInputStream; import javax.servlet.http.HttpServletRequest; import org.apache.tomcat.util.ExceptionUtils; import org.apache.tomcat.util.res.String...
import java.io.*; import javax.servlet.*; import javax.servlet.http.*; import org.apache.tomcat.util.*; import org.apache.tomcat.util.res.*;
[ "java.io", "javax.servlet", "org.apache.tomcat" ]
java.io; javax.servlet; org.apache.tomcat;
724,830
HttpResponse newHttpResponse(StatusLine statusline, HttpContext context);
HttpResponse newHttpResponse(StatusLine statusline, HttpContext context);
/** * Creates a new response from a status line. * * @param statusline the status line * @param context the context from which to determine the locale * for looking up a reason phrase if the status code * is updated, or * ...
Creates a new response from a status line
newHttpResponse
{ "repo_name": "0x90sled/droidtowers", "path": "main/source/org/apach3/http/HttpResponseFactory.java", "license": "mit", "size": 2579 }
[ "org.apach3.http.protocol.HttpContext" ]
import org.apach3.http.protocol.HttpContext;
import org.apach3.http.protocol.*;
[ "org.apach3.http" ]
org.apach3.http;
1,616,872
@Test public void testNumberOfFields() { SelectStatement statementWithTwoFields = new SelectStatement(new FieldReference("assetCost"), new FieldReference("agreementNumber")).from( new TableReference("Schedule")).where(Criterion.eq(new FieldReference(new TableReference("Schedule"), "agreementNumber"), "...
void function() { SelectStatement statementWithTwoFields = new SelectStatement(new FieldReference(STR), new FieldReference(STR)).from( new TableReference(STR)).where(Criterion.eq(new FieldReference(new TableReference(STR), STR), STR)); try { new FieldFromSelect(statementWithTwoFields); fail(STR); } catch (IllegalArgume...
/** * Verify that field from select can only have one field in the select * statement. */
Verify that field from select can only have one field in the select statement
testNumberOfFields
{ "repo_name": "alfasoftware/morf", "path": "morf-core/src/test/java/org/alfasoftware/morf/sql/element/TestFieldFromSelect.java", "license": "apache-2.0", "size": 4796 }
[ "org.alfasoftware.morf.sql.SelectStatement", "org.junit.Assert" ]
import org.alfasoftware.morf.sql.SelectStatement; import org.junit.Assert;
import org.alfasoftware.morf.sql.*; import org.junit.*;
[ "org.alfasoftware.morf", "org.junit" ]
org.alfasoftware.morf; org.junit;
1,713,622
private static int hexDecode( String string, int begin, int length, String prefix, String section, String field) { int result = 0; for (int i = begin; i < begin + length; i++) { if (i >= string.length()) { throw new HumanReadableException( ".buckconfig: %s:%s: " + "Input ends i...
static int function( String string, int begin, int length, String prefix, String section, String field) { int result = 0; for (int i = begin; i < begin + length; i++) { if (i >= string.length()) { throw new HumanReadableException( STR + STR, section, field, prefix, string.substring(begin)); } char c = string.charAt(i);...
/** * Decodes hexadecimal digits from a string. * * @param string the string to decode the digits from * @param begin position to start decoding from * @param length number of digits to decode * @param prefix characters before the hexadecimal digits (e.g. "\\x") * @param section section name in con...
Decodes hexadecimal digits from a string
hexDecode
{ "repo_name": "facebook/buck", "path": "src/com/facebook/buck/util/config/Config.java", "license": "apache-2.0", "size": 23205 }
[ "com.facebook.buck.core.exceptions.HumanReadableException" ]
import com.facebook.buck.core.exceptions.HumanReadableException;
import com.facebook.buck.core.exceptions.*;
[ "com.facebook.buck" ]
com.facebook.buck;
821,337
public Chart getChartOfAccounts() { return chartOfAccounts; }
Chart function() { return chartOfAccounts; }
/** * Gets the chartOfAccounts attribute. * * @return Returns the chartOfAccounts */
Gets the chartOfAccounts attribute
getChartOfAccounts
{ "repo_name": "ua-eas/ua-kfs-5.3", "path": "work/src/org/kuali/kfs/module/cam/businessobject/AssetObjectCode.java", "license": "agpl-3.0", "size": 10872 }
[ "org.kuali.kfs.coa.businessobject.Chart" ]
import org.kuali.kfs.coa.businessobject.Chart;
import org.kuali.kfs.coa.businessobject.*;
[ "org.kuali.kfs" ]
org.kuali.kfs;
2,409,228
public Element getBPELChildElementByLocalName(Element parentElement, String localName) { NodeList children = parentElement.getChildNodes(); for (int i = 0; i < children.getLength(); i++) { Node node = children.item(i); if (localName.equals(node.getLocalName()) && isBPELElement(node)) { return (...
Element function(Element parentElement, String localName) { NodeList children = parentElement.getChildNodes(); for (int i = 0; i < children.getLength(); i++) { Node node = children.item(i); if (localName.equals(node.getLocalName()) && isBPELElement(node)) { return (Element) node; } } return null; }
/** * Returns the first child node of <code>parentElement</code> that is an * {@link Element} with a BPEL namespace and the given * <code>localName</code>, or <code>null</code> if a matching element is not * found. * * @param parentElement * the element to find the children of * @param local...
Returns the first child node of <code>parentElement</code> that is an <code>Element</code> with a BPEL namespace and the given <code>localName</code>, or <code>null</code> if a matching element is not found
getBPELChildElementByLocalName
{ "repo_name": "chorsystem/middleware", "path": "chorDataModel/src/main/java/org/eclipse/bpel/model/resource/BPELReader2.java", "license": "mit", "size": 57396 }
[ "org.w3c.dom.Element", "org.w3c.dom.Node", "org.w3c.dom.NodeList" ]
import org.w3c.dom.Element; import org.w3c.dom.Node; import org.w3c.dom.NodeList;
import org.w3c.dom.*;
[ "org.w3c.dom" ]
org.w3c.dom;
1,097,693
@Column(name = "state", nullable = false, length = 128) public String getState();
@Column(name = "state", nullable = false, length = 128) String function();
/** * Getter for <code>cattle.cluster.state</code>. */
Getter for <code>cattle.cluster.state</code>
getState
{ "repo_name": "rancherio/cattle", "path": "modules/model/src/main/java/io/cattle/platform/core/model/Cluster.java", "license": "apache-2.0", "size": 4840 }
[ "javax.persistence.Column" ]
import javax.persistence.Column;
import javax.persistence.*;
[ "javax.persistence" ]
javax.persistence;
1,007,731
protected void storeAssociation( AssociationKey key, org.hibernate.ogm.datastore.redis.dialect.value.Association association) { String associationId = associationId( key ); connection.del( associationId ); List<Object> rows = association.getRows(); if ( rows.isEmpty() ) { return; } String[] ...
void function( AssociationKey key, org.hibernate.ogm.datastore.redis.dialect.value.Association association) { String associationId = associationId( key ); connection.del( associationId ); List<Object> rows = association.getRows(); if ( rows.isEmpty() ) { return; } String[] serializedRows = new String[rows.size()]; int ...
/** * Store an association to a Redis List or Redis Set, depending on the association type. * * @param key the association key * @param association the association document */
Store an association to a Redis List or Redis Set, depending on the association type
storeAssociation
{ "repo_name": "DavideD/hibernate-ogm-contrib", "path": "redis/src/main/java/org/hibernate/ogm/datastore/redis/AbstractRedisDialect.java", "license": "lgpl-2.1", "size": 15017 }
[ "java.util.List", "org.hibernate.ogm.model.key.spi.AssociationKey", "org.hibernate.ogm.model.key.spi.AssociationType" ]
import java.util.List; import org.hibernate.ogm.model.key.spi.AssociationKey; import org.hibernate.ogm.model.key.spi.AssociationType;
import java.util.*; import org.hibernate.ogm.model.key.spi.*;
[ "java.util", "org.hibernate.ogm" ]
java.util; org.hibernate.ogm;
2,278,143
private MethodInfo generateStaticInitializer() throws IOException { MethodInfo minfo = new MethodInfo( "<clinit>", "()V", ACC_STATIC); int localSlot0 = 1; short pc, tryBegin = 0, tryEnd; DataOutputStream out = new DataOutputStream(minfo.code); for (List<ProxyMe...
MethodInfo function() throws IOException { MethodInfo minfo = new MethodInfo( STR, "()V", ACC_STATIC); int localSlot0 = 1; short pc, tryBegin = 0, tryEnd; DataOutputStream out = new DataOutputStream(minfo.code); for (List<ProxyMethod> sigmethods : proxyMethods.values()) { for (ProxyMethod pm : sigmethods) { pm.codeFiel...
/** * Generate the static initializer method for the proxy class. */
Generate the static initializer method for the proxy class
generateStaticInitializer
{ "repo_name": "md-5/jdk10", "path": "src/java.base/share/classes/java/lang/reflect/ProxyGenerator_v49.java", "license": "gpl-2.0", "size": 80238 }
[ "java.io.DataOutputStream", "java.io.IOException", "java.util.List" ]
import java.io.DataOutputStream; import java.io.IOException; import java.util.List;
import java.io.*; import java.util.*;
[ "java.io", "java.util" ]
java.io; java.util;
1,609,846
void createProperty(String name, Object[] values) throws RepositoryException; /** * Create a file and a resource node. * After the nodes have been created, the current node is the resource node. * So this method call should be followed by two calls to {@link #finishNode()}
void createProperty(String name, Object[] values) throws RepositoryException; /** * Create a file and a resource node. * After the nodes have been created, the current node is the resource node. * So this method call should be followed by two calls to {@link #finishNode()}
/** * Add a new multi value property to the current node. * * @param name The property name. * @param values The values. * @throws RepositoryException */
Add a new multi value property to the current node
createProperty
{ "repo_name": "tmaret/sling", "path": "bundles/jcr/contentloader/src/main/java/org/apache/sling/jcr/contentloader/ContentCreator.java", "license": "apache-2.0", "size": 6958 }
[ "javax.jcr.RepositoryException" ]
import javax.jcr.RepositoryException;
import javax.jcr.*;
[ "javax.jcr" ]
javax.jcr;
560,620
manager.workloadNetworks().deleteVMGroup("group1", "vmGroup1", "cloud1", Context.NONE); }
manager.workloadNetworks().deleteVMGroup(STR, STR, STR, Context.NONE); }
/** * Sample code: WorkloadNetworks_DeleteVMGroup. * * @param manager Entry point to AvsManager. */
Sample code: WorkloadNetworks_DeleteVMGroup
workloadNetworksDeleteVMGroup
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksDeleteVMGroupSamples.java", "license": "mit", "size": 844 }
[ "com.azure.core.util.Context" ]
import com.azure.core.util.Context;
import com.azure.core.util.*;
[ "com.azure.core" ]
com.azure.core;
2,574,554
public List<CubeFactTable> getAllFacts() throws HiveException { List<CubeFactTable> facts = new ArrayList<CubeFactTable>(); try { for (String table : getAllHiveTableNames()) { CubeFactTable fact = getCubeFact(table); if (fact != null) { facts.add(fact); } } } ...
List<CubeFactTable> function() throws HiveException { List<CubeFactTable> facts = new ArrayList<CubeFactTable>(); try { for (String table : getAllHiveTableNames()) { CubeFactTable fact = getCubeFact(table); if (fact != null) { facts.add(fact); } } } catch (HiveException e) { throw new HiveException(STR, e); } return fa...
/** * Get all facts in metastore * * @return List of Cube Fact Table objects * * @throws HiveException */
Get all facts in metastore
getAllFacts
{ "repo_name": "rajubairishetti/incubator-lens", "path": "lens-cube/src/main/java/org/apache/lens/cube/metadata/CubeMetastoreClient.java", "license": "apache-2.0", "size": 51955 }
[ "java.util.ArrayList", "java.util.List", "org.apache.hadoop.hive.ql.metadata.HiveException" ]
import java.util.ArrayList; import java.util.List; import org.apache.hadoop.hive.ql.metadata.HiveException;
import java.util.*; import org.apache.hadoop.hive.ql.metadata.*;
[ "java.util", "org.apache.hadoop" ]
java.util; org.apache.hadoop;
2,488,397
public void setDefaultLong(long newDefaultLong) { defaultLong = new Long(newDefaultLong); register(new LongConverter(defaultLong), Long.TYPE); register(new LongConverter(defaultLong), Long.class); } private static Short defaultShort = new Short((short) 0);
void function(long newDefaultLong) { defaultLong = new Long(newDefaultLong); register(new LongConverter(defaultLong), Long.TYPE); register(new LongConverter(defaultLong), Long.class); } private static Short defaultShort = new Short((short) 0);
/** * Sets the default value for Long conversions. * @param newDefaultLong The default Long value * @deprecated Register replacement converters for Long.TYPE and * Long.class instead */
Sets the default value for Long conversions
setDefaultLong
{ "repo_name": "vorburger/apache-commons-beanutils", "path": "src/main/java/org/apache/commons/beanutils/ConvertUtilsBean.java", "license": "apache-2.0", "size": 37406 }
[ "org.apache.commons.beanutils.converters.LongConverter" ]
import org.apache.commons.beanutils.converters.LongConverter;
import org.apache.commons.beanutils.converters.*;
[ "org.apache.commons" ]
org.apache.commons;
1,614,343
public void onItemPickup(Entity entityIn, int quantity) { super.onItemPickup(entityIn, quantity); this.openContainer.detectAndSendChanges(); }
void function(Entity entityIn, int quantity) { super.onItemPickup(entityIn, quantity); this.openContainer.detectAndSendChanges(); }
/** * Called when the entity picks up an item. */
Called when the entity picks up an item
onItemPickup
{ "repo_name": "danielyc/test-1.9.4", "path": "build/tmp/recompileMc/sources/net/minecraft/entity/player/EntityPlayerMP.java", "license": "gpl-3.0", "size": 50433 }
[ "net.minecraft.entity.Entity" ]
import net.minecraft.entity.Entity;
import net.minecraft.entity.*;
[ "net.minecraft.entity" ]
net.minecraft.entity;
69,428
protected void setHorizontalTraceLine(Line2D line) { this.horizontalTraceLine = line; }
void function(Line2D line) { this.horizontalTraceLine = line; }
/** * Sets the horizontal trace line. * * @param line the line (<code>null</code> permitted). */
Sets the horizontal trace line
setHorizontalTraceLine
{ "repo_name": "ibestvina/multithread-centiscape", "path": "CentiScaPe2.1/src/main/java/org/jfree/chart/ChartPanel.java", "license": "mit", "size": 88952 }
[ "java.awt.geom.Line2D" ]
import java.awt.geom.Line2D;
import java.awt.geom.*;
[ "java.awt" ]
java.awt;
485,919
public MediaPeriodInfo getUpdatedMediaPeriodInfo(Timeline timeline, MediaPeriodInfo info) { MediaPeriodId id = info.id; boolean isLastInPeriod = isLastInPeriod(id); boolean isLastInWindow = isLastInWindow(timeline, id); boolean isLastInTimeline = isLastInTimeline(timeline, id, isLastInPeriod); tim...
MediaPeriodInfo function(Timeline timeline, MediaPeriodInfo info) { MediaPeriodId id = info.id; boolean isLastInPeriod = isLastInPeriod(id); boolean isLastInWindow = isLastInWindow(timeline, id); boolean isLastInTimeline = isLastInTimeline(timeline, id, isLastInPeriod); timeline.getPeriodByUid(info.id.periodUid, period...
/** * Returns new media period info based on specified {@code mediaPeriodInfo} but taking into * account the current timeline. This method must only be called if the period is still part of * the current timeline. * * @param timeline The current timeline used to update the media period. * @param info ...
Returns new media period info based on specified mediaPeriodInfo but taking into account the current timeline. This method must only be called if the period is still part of the current timeline
getUpdatedMediaPeriodInfo
{ "repo_name": "google/ExoPlayer", "path": "library/core/src/main/java/com/google/android/exoplayer2/MediaPeriodQueue.java", "license": "apache-2.0", "size": 41608 }
[ "com.google.android.exoplayer2.source.MediaSource" ]
import com.google.android.exoplayer2.source.MediaSource;
import com.google.android.exoplayer2.source.*;
[ "com.google.android" ]
com.google.android;
818,274
public static String encode(String s) { try { return URLEncoder.encode(s, "UTF-8"); } catch (UnsupportedEncodingException e) { return s; } }
static String function(String s) { try { return URLEncoder.encode(s, "UTF-8"); } catch (UnsupportedEncodingException e) { return s; } }
/** * Returns a non-exception casting version of URLEncode.encode() in UTF-8 * @param s the string to encode * @return the encoded string */
Returns a non-exception casting version of URLEncode.encode() in UTF-8
encode
{ "repo_name": "dma-dk/MsiProxy", "path": "msiproxy-common/src/main/java/dk/dma/msiproxy/common/util/WebUtils.java", "license": "apache-2.0", "size": 4272 }
[ "java.io.UnsupportedEncodingException", "java.net.URLEncoder" ]
import java.io.UnsupportedEncodingException; import java.net.URLEncoder;
import java.io.*; import java.net.*;
[ "java.io", "java.net" ]
java.io; java.net;
2,885,572
@Test public void testTriggerAndDeclineCheckpointSimple() { try { final JobID jid = new JobID(); final long timestamp = System.currentTimeMillis(); // create some mock Execution vertices that receive the checkpoint trigger messages final ExecutionAttemptID attemptID1 = new ExecutionAttemptID(); fi...
void function() { try { final JobID jid = new JobID(); final long timestamp = System.currentTimeMillis(); final ExecutionAttemptID attemptID1 = new ExecutionAttemptID(); final ExecutionAttemptID attemptID2 = new ExecutionAttemptID(); ExecutionVertex vertex1 = mockExecutionVertex(attemptID1); ExecutionVertex vertex2 = m...
/** * This test triggers a checkpoint and then sends a decline checkpoint message from * one of the tasks. The expected behaviour is that said checkpoint is discarded and a new * checkpoint is triggered. */
This test triggers a checkpoint and then sends a decline checkpoint message from one of the tasks. The expected behaviour is that said checkpoint is discarded and a new checkpoint is triggered
testTriggerAndDeclineCheckpointSimple
{ "repo_name": "zohar-mizrahi/flink", "path": "flink-runtime/src/test/java/org/apache/flink/runtime/checkpoint/CheckpointCoordinatorTest.java", "license": "apache-2.0", "size": 149088 }
[ "org.apache.flink.api.common.JobID", "org.apache.flink.runtime.concurrent.Executors", "org.apache.flink.runtime.executiongraph.ExecutionAttemptID", "org.apache.flink.runtime.executiongraph.ExecutionVertex", "org.apache.flink.runtime.jobgraph.JobStatus", "org.apache.flink.runtime.jobgraph.tasks.Externalize...
import org.apache.flink.api.common.JobID; import org.apache.flink.runtime.concurrent.Executors; import org.apache.flink.runtime.executiongraph.ExecutionAttemptID; import org.apache.flink.runtime.executiongraph.ExecutionVertex; import org.apache.flink.runtime.jobgraph.JobStatus; import org.apache.flink.runtime.jobgraph....
import org.apache.flink.api.common.*; import org.apache.flink.runtime.concurrent.*; import org.apache.flink.runtime.executiongraph.*; import org.apache.flink.runtime.jobgraph.*; import org.apache.flink.runtime.jobgraph.tasks.*; import org.apache.flink.runtime.messages.checkpoint.*; import org.apache.flink.runtime.state...
[ "org.apache.flink", "org.junit", "org.mockito" ]
org.apache.flink; org.junit; org.mockito;
1,859,134
void onMessage(NakFlyweight nakMessage);
void onMessage(NakFlyweight nakMessage);
/** * Handle a NAK Frame * * @param nakMessage wrapping the receive buffer. */
Handle a NAK Frame
onMessage
{ "repo_name": "jessefugitt/Aeron", "path": "aeron-driver/src/main/java/uk/co/real_logic/aeron/driver/NakMessageHandler.java", "license": "apache-2.0", "size": 911 }
[ "uk.co.real_logic.aeron.common.protocol.NakFlyweight" ]
import uk.co.real_logic.aeron.common.protocol.NakFlyweight;
import uk.co.real_logic.aeron.common.protocol.*;
[ "uk.co.real_logic" ]
uk.co.real_logic;
1,141,705
protected void generateViewDateControl(UIBranchContainer parent, String rsfId, String binding, Boolean viewResultsSetting, Boolean useDateTime, boolean sameViewDateForAll) { if (viewResultsSetting == null || viewResultsSetting) { // only show something if this on or configurable ...
void function(UIBranchContainer parent, String rsfId, String binding, Boolean viewResultsSetting, Boolean useDateTime, boolean sameViewDateForAll) { if (viewResultsSetting == null viewResultsSetting) { if (sameViewDateForAll) { UIMessage.make(parent, rsfId + STR, STR); } else { UIInput dateInput = UIInput.make(parent, ...
/** * Reduces code duplication<br/> * This will render the view date picker control or a message depending on various system settings<br/> * <b>NOTE:</b> the rsfId should not include the ":" even though it must appear in the template with a colon<br/> * <b>NOTE:</b> the label for this message must u...
Reduces code duplication This will render the view date picker control or a message depending on various system settings
generateViewDateControl
{ "repo_name": "payten/nyu-sakai-10.4", "path": "evaluation/tool/src/java/org/sakaiproject/evaluation/tool/producers/EvaluationSettingsProducer.java", "license": "apache-2.0", "size": 38733 }
[ "uk.org.ponder.rsf.components.UIBranchContainer", "uk.org.ponder.rsf.components.UIInput", "uk.org.ponder.rsf.components.UIMessage", "uk.org.ponder.rsf.evolvers.FormatAwareDateInputEvolver" ]
import uk.org.ponder.rsf.components.UIBranchContainer; import uk.org.ponder.rsf.components.UIInput; import uk.org.ponder.rsf.components.UIMessage; import uk.org.ponder.rsf.evolvers.FormatAwareDateInputEvolver;
import uk.org.ponder.rsf.components.*; import uk.org.ponder.rsf.evolvers.*;
[ "uk.org.ponder" ]
uk.org.ponder;
111,057
@Test public void processing() throws BusinessException { when(recordingProperties.getRecordingDataProcessors()).thenReturn(Collections.singleton(dataProcessor)); cmrStorageRecorder.startOrScheduleRecording(storageWriter, recordingProperties); assertThat(cmrStorageRecorder.isRecordingOn(), is(true)); Defau...
void function() throws BusinessException { when(recordingProperties.getRecordingDataProcessors()).thenReturn(Collections.singleton(dataProcessor)); cmrStorageRecorder.startOrScheduleRecording(storageWriter, recordingProperties); assertThat(cmrStorageRecorder.isRecordingOn(), is(true)); DefaultData defaultData = mock(De...
/** * Test that start of recording and processing of data is correct. */
Test that start of recording and processing of data is correct
processing
{ "repo_name": "inspectIT/inspectIT", "path": "inspectit.server/src/test/java/rocks/inspectit/server/storage/CmrStorageRecorderTest.java", "license": "agpl-3.0", "size": 6702 }
[ "java.util.Collections", "org.hamcrest.MatcherAssert", "org.hamcrest.Matchers", "org.mockito.Mockito", "rocks.inspectit.shared.all.communication.DefaultData", "rocks.inspectit.shared.all.exception.BusinessException" ]
import java.util.Collections; import org.hamcrest.MatcherAssert; import org.hamcrest.Matchers; import org.mockito.Mockito; import rocks.inspectit.shared.all.communication.DefaultData; import rocks.inspectit.shared.all.exception.BusinessException;
import java.util.*; import org.hamcrest.*; import org.mockito.*; import rocks.inspectit.shared.all.communication.*; import rocks.inspectit.shared.all.exception.*;
[ "java.util", "org.hamcrest", "org.mockito", "rocks.inspectit.shared" ]
java.util; org.hamcrest; org.mockito; rocks.inspectit.shared;
1,230,052
public int damageDropped(IBlockState state) { return ((BlockPlanks.EnumType)state.getValue(VARIANT)).getMetadata(); } static final class SwitchEnumAxis { static final int[] AXIS_LOOKUP = new int[BlockLog.EnumAxis.values().length]; private static final String __OB...
int function(IBlockState state) { return ((BlockPlanks.EnumType)state.getValue(VARIANT)).getMetadata(); } static final class SwitchEnumAxis { static final int[] AXIS_LOOKUP = new int[BlockLog.EnumAxis.values().length]; private static final String __OBFID = STR; static { try { AXIS_LOOKUP[BlockLog.EnumAxis.X.ordinal()] ...
/** * Get the damage value that this Block should drop */
Get the damage value that this Block should drop
damageDropped
{ "repo_name": "trixmot/mod1", "path": "build/tmp/recompileMc/sources/net/minecraft/block/BlockOldLog.java", "license": "lgpl-2.1", "size": 4736 }
[ "net.minecraft.block.state.IBlockState" ]
import net.minecraft.block.state.IBlockState;
import net.minecraft.block.state.*;
[ "net.minecraft.block" ]
net.minecraft.block;
533,851
Position position = new Position(3222, 3222, 3); Assert.assertEquals(3, position.getHeight()); }
Position position = new Position(3222, 3222, 3); Assert.assertEquals(3, position.getHeight()); }
/** * Tests the {@link Position#getHeight()} method. */
Tests the <code>Position#getHeight()</code> method
testGetHeight
{ "repo_name": "garyttierney/apollo", "path": "game/src/test/org/apollo/game/model/TestPosition.java", "license": "isc", "size": 829 }
[ "org.junit.Assert" ]
import org.junit.Assert;
import org.junit.*;
[ "org.junit" ]
org.junit;
1,222,411
public static boolean isCglibRenamedMethod(Method renamedMethod) { String name = renamedMethod.getName(); if (name.startsWith(CGLIB_RENAMED_METHOD_PREFIX)) { int i = name.length() - 1; while (i >= 0 && Character.isDigit(name.charAt(i))) { i--; } return (i > CGLIB_RENAMED_METHOD_PREFIX.length() &&...
static boolean function(Method renamedMethod) { String name = renamedMethod.getName(); if (name.startsWith(CGLIB_RENAMED_METHOD_PREFIX)) { int i = name.length() - 1; while (i >= 0 && Character.isDigit(name.charAt(i))) { i--; } return (i > CGLIB_RENAMED_METHOD_PREFIX.length() && (i < name.length() - 1) && name.charAt(i)...
/** * Determine whether the given method is a CGLIB 'renamed' method, * following the pattern "CGLIB$methodName$0". * @param renamedMethod the method to check */
Determine whether the given method is a CGLIB 'renamed' method, following the pattern "CGLIB$methodName$0"
isCglibRenamedMethod
{ "repo_name": "spring-projects/spring-framework", "path": "spring-core/src/main/java/org/springframework/util/ReflectionUtils.java", "license": "apache-2.0", "size": 31556 }
[ "java.lang.reflect.Method" ]
import java.lang.reflect.Method;
import java.lang.reflect.*;
[ "java.lang" ]
java.lang;
2,872,653
public boolean supports(Class<?> clazz) { return FilterInvocation.class.isAssignableFrom(clazz); } // our methods
boolean function(Class<?> clazz) { return FilterInvocation.class.isAssignableFrom(clazz); }
/** * Returns true if the secure object is a * {@link FilterInvocation}. */
Returns true if the secure object is a <code>FilterInvocation</code>
supports
{ "repo_name": "Eisler/cosmo", "path": "cosmo-core/src/main/java/org/unitedinternet/cosmo/dav/acegisecurity/DavAccessDecisionManager.java", "license": "apache-2.0", "size": 9918 }
[ "org.springframework.security.web.FilterInvocation" ]
import org.springframework.security.web.FilterInvocation;
import org.springframework.security.web.*;
[ "org.springframework.security" ]
org.springframework.security;
1,614,795
public void setColorScheme(int colorRes1, int colorRes2, int colorRes3, int colorRes4) { final Resources res = getResources(); final int color1 = res.getColor(colorRes1); final int color2 = res.getColor(colorRes2); final int color3 = res.getColor(colorRes3); final int color4 ...
void function(int colorRes1, int colorRes2, int colorRes3, int colorRes4) { final Resources res = getResources(); final int color1 = res.getColor(colorRes1); final int color2 = res.getColor(colorRes2); final int color3 = res.getColor(colorRes3); final int color4 = res.getColor(colorRes4); mProgressBar.setColorScheme(co...
/** * Set the four colors used in the progress animation. The first color will * also be the color of the bar that grows in response to a user swipe * gesture. * * @param colorRes1 Color resource. * @param colorRes2 Color resource. * @param colorRes3 Color resource. * @param colo...
Set the four colors used in the progress animation. The first color will also be the color of the bar that grows in response to a user swipe gesture
setColorScheme
{ "repo_name": "Naiqus/SwipeRefreshDemo", "path": "samples/src/main/java/com/mzba/swiperefresh/LoadDataLayout.java", "license": "apache-2.0", "size": 3097 }
[ "android.content.res.Resources" ]
import android.content.res.Resources;
import android.content.res.*;
[ "android.content" ]
android.content;
390,739
public static Resource newSystemResource(String resource) throws IOException { URL url = null; // try to format as a URL ClassLoader loader = Thread.currentThread().getContextClassLoader(); if (null != loader) { try { url = loader.getResource(resource); ...
static Resource function(String resource) throws IOException { URL url = null; ClassLoader loader = Thread.currentThread().getContextClassLoader(); if (null != loader) { try { url = loader.getResource(resource); if (null == url && resource.startsWith("/")) url = loader.getResource(resource.substring(1)); } catch (Illeg...
/** * Construct a system resource from a string. * The resource is tried as classloader resource before being treated as a * normal resource. * * @param resource Resource as string representation * @return The new resource * * @throws IOException Problem accessing resource. ...
Construct a system resource from a string. The resource is tried as classloader resource before being treated as a normal resource
newSystemResource
{ "repo_name": "keyhom/molecule", "path": "util/src/main/java/org/molecule/util/resource/Resource.java", "license": "apache-2.0", "size": 11211 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
148,538
public CallHandle createExperimenters(SecurityContext ctx, AdminObject object, AgentEventListener observer);
CallHandle function(SecurityContext ctx, AdminObject object, AgentEventListener observer);
/** * Creates and returns the experimenters. * * @param ctx The security context. * @param object The object hosting information about the experimenters * to create. * @param observer Call-back handler. * @return A handle that can be used to cancel the call. */
Creates and returns the experimenters
createExperimenters
{ "repo_name": "dominikl/openmicroscopy", "path": "components/insight/SRC/org/openmicroscopy/shoola/env/data/views/AdminView.java", "license": "gpl-2.0", "size": 9346 }
[ "org.openmicroscopy.shoola.env.data.model.AdminObject", "org.openmicroscopy.shoola.env.event.AgentEventListener" ]
import org.openmicroscopy.shoola.env.data.model.AdminObject; import org.openmicroscopy.shoola.env.event.AgentEventListener;
import org.openmicroscopy.shoola.env.data.model.*; import org.openmicroscopy.shoola.env.event.*;
[ "org.openmicroscopy.shoola" ]
org.openmicroscopy.shoola;
2,784,844
public String firstMatch(String pattern, int group) { Matcher stderrMatcher = Pattern.compile(pattern, Pattern.MULTILINE) .matcher(stderr); Matcher stdoutMatcher = Pattern.compile(pattern, Pattern.MULTILINE) .matcher(stdout); if (stderrMatcher.find()) { ...
String function(String pattern, int group) { Matcher stderrMatcher = Pattern.compile(pattern, Pattern.MULTILINE) .matcher(stderr); Matcher stdoutMatcher = Pattern.compile(pattern, Pattern.MULTILINE) .matcher(stdout); if (stderrMatcher.find()) { return stderrMatcher.group(group); } if (stdoutMatcher.find()) { return std...
/** * Get the captured group of the first string matching the pattern. stderr * is searched before stdout. * * @param pattern * The multi-line pattern to match * @param group * The group to capture * @return The matched string or null if no match was found ...
Get the captured group of the first string matching the pattern. stderr is searched before stdout
firstMatch
{ "repo_name": "openjdk/jdk7u", "path": "jdk/test/lib/testlibrary/jdk/testlibrary/OutputAnalyzer.java", "license": "gpl-2.0", "size": 14401 }
[ "java.util.regex.Matcher", "java.util.regex.Pattern" ]
import java.util.regex.Matcher; import java.util.regex.Pattern;
import java.util.regex.*;
[ "java.util" ]
java.util;
1,722,002
if(path.startsWith("/")) path=path.substring(1); String[] parts=path.split("/"); if(parts.length==1) throw new ExistException("Cannot store in root directory"); List<String> fullpath=new ArrayList<String>(); for(int i=0;i<parts.length;i++) { if("".equals(parts[i])) // Repeated slash, ignore conti...
if(path.startsWith("/")) path=path.substring(1); String[] parts=path.split("/"); if(parts.length==1) throw new ExistException(STR); List<String> fullpath=new ArrayList<String>(); for(int i=0;i<parts.length;i++) { if(STR[^A-Za-z0-9_,.-]","STR[^A-Za-z0-9_,.-]","STR.json"); }
/** Generate a file from a path. * * @param path the path * @return the file * @throws UnderlyingStorageException * @throws ExistException */
Generate a file from a path
fileFromPath
{ "repo_name": "cherryhill/collectionspace-application", "path": "cspi-file/src/main/java/org/collectionspace/chain/csp/persistence/file/StubJSONStore.java", "license": "apache-2.0", "size": 7814 }
[ "java.util.ArrayList", "java.util.List", "org.collectionspace.csp.api.persistence.ExistException" ]
import java.util.ArrayList; import java.util.List; import org.collectionspace.csp.api.persistence.ExistException;
import java.util.*; import org.collectionspace.csp.api.persistence.*;
[ "java.util", "org.collectionspace.csp" ]
java.util; org.collectionspace.csp;
959,395
private String readDatabaseData(AssessmentForm assessmentForm, HttpServletRequest request, ToolAccessMode mode) throws ServletException { Long contentId = WebUtil.readLongParam(request, AssessmentConstants.PARAM_TOOL_CONTENT_ID); // initial Session Map SessionMap<String, Object> sessionMap = new SessionMap...
String function(AssessmentForm assessmentForm, HttpServletRequest request, ToolAccessMode mode) throws ServletException { Long contentId = WebUtil.readLongParam(request, AssessmentConstants.PARAM_TOOL_CONTENT_ID); SessionMap<String, Object> sessionMap = new SessionMap<>(); request.getSession().setAttribute(sessionMap.g...
/** * Common method for "start" and "defineLater" */
Common method for "start" and "defineLater"
readDatabaseData
{ "repo_name": "lamsfoundation/lams", "path": "lams_tool_assessment/src/java/org/lamsfoundation/lams/tool/assessment/web/controller/AuthoringController.java", "license": "gpl-2.0", "size": 44143 }
[ "java.util.List", "java.util.SortedSet", "javax.servlet.ServletException", "javax.servlet.http.HttpServletRequest", "org.apache.commons.lang.StringUtils", "org.lamsfoundation.lams.tool.ToolAccessMode", "org.lamsfoundation.lams.tool.assessment.AssessmentConstants", "org.lamsfoundation.lams.tool.assessm...
import java.util.List; import java.util.SortedSet; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import org.apache.commons.lang.StringUtils; import org.lamsfoundation.lams.tool.ToolAccessMode; import org.lamsfoundation.lams.tool.assessment.AssessmentConstants; import org.lamsfound...
import java.util.*; import javax.servlet.*; import javax.servlet.http.*; import org.apache.commons.lang.*; import org.lamsfoundation.lams.tool.*; import org.lamsfoundation.lams.tool.assessment.*; import org.lamsfoundation.lams.tool.assessment.model.*; import org.lamsfoundation.lams.tool.assessment.web.form.*; import or...
[ "java.util", "javax.servlet", "org.apache.commons", "org.lamsfoundation.lams" ]
java.util; javax.servlet; org.apache.commons; org.lamsfoundation.lams;
793,690
public static LogEvent decode(LogBuffer buffer, LogHeader header, LogContext context) throws IOException { FormatDescriptionLogEvent descriptionEvent = context.getFormatDescription(); LogPosition logPosition = context.getLogPosition(); // from qifeng by shuo...
static LogEvent function(LogBuffer buffer, LogHeader header, LogContext context) throws IOException { FormatDescriptionLogEvent descriptionEvent = context.getFormatDescription(); LogPosition logPosition = context.getLogPosition(); int checksumAlg = LogEvent.BINLOG_CHECKSUM_ALG_UNDEF; if (header.getType() != LogEvent.FO...
/** * Deserialize an event from buffer. * * @return <code>UknownLogEvent</code> if event type is unknown or skipped. */
Deserialize an event from buffer
decode
{ "repo_name": "bucketli/bird", "path": "bird-core/src/main/java/com/taobao/bird/extractor/binlog/LogDecoder.java", "license": "gpl-2.0", "size": 18078 }
[ "com.taobao.bird.extractor.binlog.event.AppendBlockLogEvent", "com.taobao.bird.extractor.binlog.event.BeginLoadQueryLogEvent", "com.taobao.bird.extractor.binlog.event.CreateFileLogEvent", "com.taobao.bird.extractor.binlog.event.DeleteFileLogEvent", "com.taobao.bird.extractor.binlog.event.DeleteRowsLogEvent"...
import com.taobao.bird.extractor.binlog.event.AppendBlockLogEvent; import com.taobao.bird.extractor.binlog.event.BeginLoadQueryLogEvent; import com.taobao.bird.extractor.binlog.event.CreateFileLogEvent; import com.taobao.bird.extractor.binlog.event.DeleteFileLogEvent; import com.taobao.bird.extractor.binlog.event.Delet...
import com.taobao.bird.extractor.binlog.event.*; import java.io.*;
[ "com.taobao.bird", "java.io" ]
com.taobao.bird; java.io;
2,773,548
private void manualPurge( List<String> includes ) throws MojoExecutionException { for ( String gavPattern : includes ) { if ( StringUtils.isEmpty( gavPattern ) ) { getLog().debug( "Skipping empty gav pattern: " + gavPattern ); conti...
void function( List<String> includes ) throws MojoExecutionException { for ( String gavPattern : includes ) { if ( StringUtils.isEmpty( gavPattern ) ) { getLog().debug( STR + gavPattern ); continue; } String relativePath = gavToPath( gavPattern ); if ( StringUtils.isEmpty( relativePath ) ) { continue; } File purgeDir =...
/** * Purge/Delete artifacts from the local repository according to the given patterns. * * @param inclusionPatterns * @throws MojoExecutionException */
Purge/Delete artifacts from the local repository according to the given patterns
manualPurge
{ "repo_name": "HubSpot/maven-plugins", "path": "maven-dependency-plugin/src/main/java/org/apache/maven/plugins/dependency/PurgeLocalRepositoryMojo.java", "license": "apache-2.0", "size": 22917 }
[ "java.io.File", "java.io.IOException", "java.util.List", "org.apache.maven.plugin.MojoExecutionException", "org.codehaus.plexus.util.FileUtils", "org.codehaus.plexus.util.StringUtils" ]
import java.io.File; import java.io.IOException; import java.util.List; import org.apache.maven.plugin.MojoExecutionException; import org.codehaus.plexus.util.FileUtils; import org.codehaus.plexus.util.StringUtils;
import java.io.*; import java.util.*; import org.apache.maven.plugin.*; import org.codehaus.plexus.util.*;
[ "java.io", "java.util", "org.apache.maven", "org.codehaus.plexus" ]
java.io; java.util; org.apache.maven; org.codehaus.plexus;
1,869,589
public void write ( InputOutput io ) throws IOException { io.writeByte (_depth); // Depth. io.writeByte (_bitsPerPixel); // Bits per pixel. io.writeByte (_scanlinePad); // Scanline pad. io.writePadBytes (5); // Unused. }
void function ( InputOutput io ) throws IOException { io.writeByte (_depth); io.writeByte (_bitsPerPixel); io.writeByte (_scanlinePad); io.writePadBytes (5); }
/** * Write details of the format. * * @param io The input/output stream. * @throws IOException */
Write details of the format
write
{ "repo_name": "SumiTomohiko/android-nexec-client", "path": "app/src/main/java/au/com/darkside/XServer/Format.java", "license": "mit", "size": 1015 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
1,542,418
public PropertyChangeListener[] getPropertyChangeListeners() { return this.pcs.getPropertyChangeListeners(); } /** * Executes the commands. * * @param ctx * The {@link SecurityContext}
PropertyChangeListener[] function() { return this.pcs.getPropertyChangeListeners(); } /** * Executes the commands. * * @param ctx * The {@link SecurityContext}
/** * Get the {@link PropertyChangeListener}s * @return See above */
Get the <code>PropertyChangeListener</code>s
getPropertyChangeListeners
{ "repo_name": "knabar/openmicroscopy", "path": "components/blitz/src/omero/gateway/Gateway.java", "license": "gpl-2.0", "size": 59329 }
[ "java.beans.PropertyChangeListener" ]
import java.beans.PropertyChangeListener;
import java.beans.*;
[ "java.beans" ]
java.beans;
103,193
public RVFDatum<L,F> getL1NormalizedTFIDFDatum(Datum<L,F> datum,Counter<F> featureDocCounts){ Counter<F> tfidfFeatures = new ClassicCounter<F>(); for(F feature : datum.asFeatures()){ if(featureDocCounts.containsKey(feature)) tfidfFeatures.incrementCount(feature,1.0); } double...
RVFDatum<L,F> function(Datum<L,F> datum,Counter<F> featureDocCounts){ Counter<F> tfidfFeatures = new ClassicCounter<F>(); for(F feature : datum.asFeatures()){ if(featureDocCounts.containsKey(feature)) tfidfFeatures.incrementCount(feature,1.0); } double l1norm = 0; for(F feature: tfidfFeatures.keySet()){ double idf = Ma...
/** * Method to convert features from counts to L1-normalized TFIDF based features * @param datum with a collection of features. * @param featureDocCounts a counter of doc-count for each feature. * @return RVFDatum with l1-normalized tf-idf features. */
Method to convert features from counts to L1-normalized TFIDF based features
getL1NormalizedTFIDFDatum
{ "repo_name": "mayukuntian/stanford-ner", "path": "src/edu/stanford/nlp/classify/Dataset.java", "license": "gpl-2.0", "size": 23570 }
[ "edu.stanford.nlp.ling.Datum", "edu.stanford.nlp.ling.RVFDatum", "edu.stanford.nlp.stats.ClassicCounter", "edu.stanford.nlp.stats.Counter" ]
import edu.stanford.nlp.ling.Datum; import edu.stanford.nlp.ling.RVFDatum; import edu.stanford.nlp.stats.ClassicCounter; import edu.stanford.nlp.stats.Counter;
import edu.stanford.nlp.ling.*; import edu.stanford.nlp.stats.*;
[ "edu.stanford.nlp" ]
edu.stanford.nlp;
1,416,804
private Set<RootedPath> assertNoError(String pathString) throws Exception { SequentialBuildDriver driver = makeDriver(); SkyKey key = skyKey(pathString); EvaluationResult<FileValue> result; result = driver.evaluate( ImmutableList.of(key), false, DEFAULT_THREAD_COUNT, NullEventHandl...
Set<RootedPath> function(String pathString) throws Exception { SequentialBuildDriver driver = makeDriver(); SkyKey key = skyKey(pathString); EvaluationResult<FileValue> result; result = driver.evaluate( ImmutableList.of(key), false, DEFAULT_THREAD_COUNT, NullEventHandler.INSTANCE); assertWithMessage( STR + pathString +...
/** * Asserts that trying to construct a FileValue for {@code path} succeeds. Returns the paths of * all files seen. */
Asserts that trying to construct a FileValue for path succeeds. Returns the paths of all files seen
assertNoError
{ "repo_name": "spxtr/bazel", "path": "src/test/java/com/google/devtools/build/lib/skyframe/FileFunctionTest.java", "license": "apache-2.0", "size": 65819 }
[ "com.google.common.collect.ImmutableList", "com.google.common.truth.Truth", "com.google.devtools.build.lib.events.NullEventHandler", "com.google.devtools.build.lib.vfs.RootedPath", "com.google.devtools.build.skyframe.EvaluationResult", "com.google.devtools.build.skyframe.SequentialBuildDriver", "com.goo...
import com.google.common.collect.ImmutableList; import com.google.common.truth.Truth; import com.google.devtools.build.lib.events.NullEventHandler; import com.google.devtools.build.lib.vfs.RootedPath; import com.google.devtools.build.skyframe.EvaluationResult; import com.google.devtools.build.skyframe.SequentialBuildDr...
import com.google.common.collect.*; import com.google.common.truth.*; import com.google.devtools.build.lib.events.*; import com.google.devtools.build.lib.vfs.*; import com.google.devtools.build.skyframe.*; import java.util.*;
[ "com.google.common", "com.google.devtools", "java.util" ]
com.google.common; com.google.devtools; java.util;
1,422,954
@Test(expectedExceptions = IllegalArgumentException.class) public void testNegativeSpotLag() { VanillaOisGenerator.builder().withSpotLag(-1); }
@Test(expectedExceptions = IllegalArgumentException.class) void function() { VanillaOisGenerator.builder().withSpotLag(-1); }
/** * Tests that the spot lag must be positive. */
Tests that the spot lag must be positive
testNegativeSpotLag
{ "repo_name": "McLeodMoores/starling", "path": "projects/analytics/src/test/java/com/mcleodmoores/analytics/financial/generator/interestrate/VanillaOisGeneratorTest.java", "license": "apache-2.0", "size": 17799 }
[ "com.mcleodmoores.analytics.financial.generator.interestrate.VanillaOisGenerator", "org.testng.annotations.Test" ]
import com.mcleodmoores.analytics.financial.generator.interestrate.VanillaOisGenerator; import org.testng.annotations.Test;
import com.mcleodmoores.analytics.financial.generator.interestrate.*; import org.testng.annotations.*;
[ "com.mcleodmoores.analytics", "org.testng.annotations" ]
com.mcleodmoores.analytics; org.testng.annotations;
1,904,558
public static ArrayList<RecognizedBarCode> readBarcodeFromLocalImage(String localFilePath, String remoteFolderPath, BarcodeTypeEnum type, String storageName, String folderName) throws InvalidKeyException, NoSuchAlgorithmException, IOException { ArrayList<RecognizedBarCode> ba...
static ArrayList<RecognizedBarCode> function(String localFilePath, String remoteFolderPath, BarcodeTypeEnum type, String storageName, String folderName) throws InvalidKeyException, NoSuchAlgorithmException, IOException { ArrayList<RecognizedBarCode> barcodes = null; if(localFilePath == null localFilePath.length() == 0)...
/** * Read Barcode from local image * @param localFilePath Path to file stored on device * @param remoteFolderPath Store file at this path on cloud * @param type If this parameter is empty, autodetection of all supported types is used. Please check BarcodeTypeEnum class for valid values * @param storageName T...
Read Barcode from local image
readBarcodeFromLocalImage
{ "repo_name": "asposeforcloud/Aspose_Cloud_SDK_For_Android", "path": "asposecloudsdk/src/main/java/com/aspose/cloud/sdk/barcode/api/BarcodeRecognition.java", "license": "mit", "size": 14405 }
[ "android.net.Uri", "com.aspose.cloud.sdk.barcode.model.BarcodeTypeEnum", "com.aspose.cloud.sdk.barcode.model.RecognitionResponse", "com.aspose.cloud.sdk.common.Utils", "com.aspose.cloud.sdk.storage.api.Folder", "com.google.gson.Gson", "java.io.File", "java.io.IOException", "java.io.InputStream", "...
import android.net.Uri; import com.aspose.cloud.sdk.barcode.model.BarcodeTypeEnum; import com.aspose.cloud.sdk.barcode.model.RecognitionResponse; import com.aspose.cloud.sdk.common.Utils; import com.aspose.cloud.sdk.storage.api.Folder; import com.google.gson.Gson; import java.io.File; import java.io.IOException; import...
import android.net.*; import com.aspose.cloud.sdk.barcode.model.*; import com.aspose.cloud.sdk.common.*; import com.aspose.cloud.sdk.storage.api.*; import com.google.gson.*; import java.io.*; import java.security.*; import java.util.*;
[ "android.net", "com.aspose.cloud", "com.google.gson", "java.io", "java.security", "java.util" ]
android.net; com.aspose.cloud; com.google.gson; java.io; java.security; java.util;
1,414,009
BillingProfile createOrUpdate( String billingAccountName, String billingProfileName, BillingProfileInner parameters, Context context);
BillingProfile createOrUpdate( String billingAccountName, String billingProfileName, BillingProfileInner parameters, Context context);
/** * Creates or updates a billing profile. The operation is supported for billing accounts with agreement type * Microsoft Customer Agreement or Microsoft Partner Agreement. * * @param billingAccountName The ID that uniquely identifies a billing account. * @param billingProfileName The ID that...
Creates or updates a billing profile. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement or Microsoft Partner Agreement
createOrUpdate
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/BillingProfiles.java", "license": "mit", "size": 5778 }
[ "com.azure.core.util.Context", "com.azure.resourcemanager.billing.fluent.models.BillingProfileInner" ]
import com.azure.core.util.Context; import com.azure.resourcemanager.billing.fluent.models.BillingProfileInner;
import com.azure.core.util.*; import com.azure.resourcemanager.billing.fluent.models.*;
[ "com.azure.core", "com.azure.resourcemanager" ]
com.azure.core; com.azure.resourcemanager;
1,674,547
private static String toCurl(HttpUriRequest request, boolean logAuthToken) throws IOException { StringBuilder builder = new StringBuilder(); builder.append("curl "); for (Header header: request.getAllHeaders()) { builder.append("--header \""); if (!logAuthToken ...
static String function(HttpUriRequest request, boolean logAuthToken) throws IOException { StringBuilder builder = new StringBuilder(); builder.append(STR); for (Header header: request.getAllHeaders()) { builder.append(STRSTRAuthorizationSTRCookieSTR: STR${token}STR\" "); } URI uri = request.getURI(); if (request instan...
/** * Generates a cURL command equivalent to the given request. */
Generates a cURL command equivalent to the given request
toCurl
{ "repo_name": "s20121035/rk3288_android5.1_repo", "path": "packages/apps/Exchange/src/com/android/exchange/utility/CurlLogger.java", "license": "gpl-3.0", "size": 3947 }
[ "java.io.IOException", "org.apache.http.Header", "org.apache.http.HttpRequest", "org.apache.http.client.methods.HttpUriRequest", "org.apache.http.impl.client.RequestWrapper" ]
import java.io.IOException; import org.apache.http.Header; import org.apache.http.HttpRequest; import org.apache.http.client.methods.HttpUriRequest; import org.apache.http.impl.client.RequestWrapper;
import java.io.*; import org.apache.http.*; import org.apache.http.client.methods.*; import org.apache.http.impl.client.*;
[ "java.io", "org.apache.http" ]
java.io; org.apache.http;
1,562,730
private static void mergeJar(JarOutputStream jarFile, String jar, String prefix, Map<String, String> contents) throws FileNotFoundException, IOException { JarInputStream jarInput = new JarInputStream(new FileInputStream(jar)); log.debug("Adding jar " + jar + (prefix != null ? " for prefi...
static void function(JarOutputStream jarFile, String jar, String prefix, Map<String, String> contents) throws FileNotFoundException, IOException { JarInputStream jarInput = new JarInputStream(new FileInputStream(jar)); log.debug(STR + jar + (prefix != null ? STR+prefix : STR to job jar" ); mergeJar(jarFile, jarInput, p...
/** * Merge one Jar file into another. * * @param jarFile * the stream of the target jar file. * @param jar * the name of the jar file to be merged. * @param prefix * if not null, only entries in jar that start with this prefix will be merged. ...
Merge one Jar file into another
mergeJar
{ "repo_name": "kaituo/sedge", "path": "trunk/src/org/apache/pig/impl/util/JarManager.java", "license": "mit", "size": 11690 }
[ "java.io.FileInputStream", "java.io.FileNotFoundException", "java.io.IOException", "java.util.Map", "java.util.jar.JarInputStream", "java.util.jar.JarOutputStream" ]
import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.util.Map; import java.util.jar.JarInputStream; import java.util.jar.JarOutputStream;
import java.io.*; import java.util.*; import java.util.jar.*;
[ "java.io", "java.util" ]
java.io; java.util;
2,816,432
private void renderBodyContents(FacesContext context, UIColumn primaryColumn) throws IOException { // render the primary column if (primaryColumn != null && primaryColumn.getChildCount() != 0) { Utils.encodeRecursive(context, primaryColumn); } ...
void function(FacesContext context, UIColumn primaryColumn) throws IOException { if (primaryColumn != null && primaryColumn.getChildCount() != 0) { Utils.encodeRecursive(context, primaryColumn); } } }
/** * Renders the body contents for the bubble using the given primary coumn * * @param context Faces context * @param primaryColumn The primary column holding the message text */
Renders the body contents for the bubble using the given primary coumn
renderBodyContents
{ "repo_name": "nguyentienlong/community-edition", "path": "projects/web-client/source/java/org/alfresco/web/bean/forums/ForumsBean.java", "license": "lgpl-3.0", "size": 47022 }
[ "java.io.IOException", "javax.faces.context.FacesContext", "org.alfresco.web.ui.common.Utils", "org.alfresco.web.ui.common.component.data.UIColumn" ]
import java.io.IOException; import javax.faces.context.FacesContext; import org.alfresco.web.ui.common.Utils; import org.alfresco.web.ui.common.component.data.UIColumn;
import java.io.*; import javax.faces.context.*; import org.alfresco.web.ui.common.*; import org.alfresco.web.ui.common.component.data.*;
[ "java.io", "javax.faces", "org.alfresco.web" ]
java.io; javax.faces; org.alfresco.web;
1,442,072
public void actualizarIncidencia(IncidenciaEJB objetivo,int page,String idUsuario){ try{ remoteIncidencia.actualizarIncidencia(objetivo); obtenerDatos(page,idUsuario); }catch(Exception e){ System.out.println("Error al actualizar la incidencia"); System...
void function(IncidenciaEJB objetivo,int page,String idUsuario){ try{ remoteIncidencia.actualizarIncidencia(objetivo); obtenerDatos(page,idUsuario); }catch(Exception e){ System.out.println(STR); System.out.println(e.getMessage()); } }
/** * Actualiza los datos de la incidencia * @param objetivo incidencia a actualizar * @param page pagina a retornar * @param idUsuario id del usuario */
Actualiza los datos de la incidencia
actualizarIncidencia
{ "repo_name": "lokiteitor/ProyectosUPSLP", "path": "CallCenterClient/src/main/java/mx/edu/upslp/callcenterclient/gui/datos/Incidencia.java", "license": "gpl-3.0", "size": 11995 }
[ "mx.edu.upslp.callserver.incidencia.IncidenciaEJB" ]
import mx.edu.upslp.callserver.incidencia.IncidenciaEJB;
import mx.edu.upslp.callserver.incidencia.*;
[ "mx.edu.upslp" ]
mx.edu.upslp;
2,406,805
// @author Micheal S. Hewett hewett@cs.stanford.edu public LispNumber div (LispValue args) { BigInteger quotient = this.getBigIntegerValue(); BigInteger quotientAndRem[]; BigInteger term_value; LispNumber term; int argCount = 1; while (args != NIL) { ...
LispNumber function (LispValue args) { BigInteger quotient = this.getBigIntegerValue(); BigInteger quotientAndRem[]; BigInteger term_value; LispNumber term; int argCount = 1; while (args != NIL) { term = assertNumber(car(args)); ++argCount; if (term instanceof LispReal) { LispReal realValue = real(quotient.doubleValue(...
/** * DIVIDE adds any combination of real or integer numbers. * * @see LispReal * @see LispInteger * */
DIVIDE adds any combination of real or integer numbers
div
{ "repo_name": "yuriy-chumak/jatha", "path": "src/org/jatha/dynatype/StandardLispBignum.java", "license": "lgpl-2.1", "size": 9908 }
[ "java.math.BigInteger" ]
import java.math.BigInteger;
import java.math.*;
[ "java.math" ]
java.math;
1,006,832
BigDecimal getThreshold();
BigDecimal getThreshold();
/** * Returns the value of the '<em><b>Threshold</b></em>' attribute. * The default value is <code>"0"</code>. * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Threshold</em>' attribute isn't clear, * there really should be more of a description here... * </p> * <!-- ...
Returns the value of the 'Threshold' attribute. The default value is <code>"0"</code>. If the meaning of the 'Threshold' attribute isn't clear, there really should be more of a description here...
getThreshold
{ "repo_name": "paolodenti/openhab", "path": "bundles/binding/org.openhab.binding.tinkerforge/src/main/java/org/openhab/binding/tinkerforge/internal/model/IndustrialDualAnalogInDevice.java", "license": "epl-1.0", "size": 2604 }
[ "java.math.BigDecimal" ]
import java.math.BigDecimal;
import java.math.*;
[ "java.math" ]
java.math;
473,040
private void drawSelectedFeatureBox(Graphics2D g, Rectangle fbox, Rectangle dbox){ g.setColor(Color.red); g.drawRect(fbox.x-3, dbox.y-1, fbox.width+5, dbox.height+1); }
void function(Graphics2D g, Rectangle fbox, Rectangle dbox){ g.setColor(Color.red); g.drawRect(fbox.x-3, dbox.y-1, fbox.width+5, dbox.height+1); }
/** * Highlight the selected feature. */
Highlight the selected feature
drawSelectedFeatureBox
{ "repo_name": "pgdurand/Bioinformatics-UI-API", "path": "src/bzh/plealog/bioinfo/ui/carto/drawer/BasicFeatureDrawingLane.java", "license": "agpl-3.0", "size": 11066 }
[ "java.awt.Color", "java.awt.Graphics2D", "java.awt.Rectangle" ]
import java.awt.Color; import java.awt.Graphics2D; import java.awt.Rectangle;
import java.awt.*;
[ "java.awt" ]
java.awt;
2,529,578
boolean isRequestAuthorized(HttpServletRequest request);
boolean isRequestAuthorized(HttpServletRequest request);
/** * Called after a user is successfully authenticated against the Flowable identity-management. The logged in user can be retrieved from the request's clientInfo object. * * @return true, if the user is authorised to perform the request. Return false, if the request is not authorised for the given user. ...
Called after a user is successfully authenticated against the Flowable identity-management. The logged in user can be retrieved from the request's clientInfo object
isRequestAuthorized
{ "repo_name": "motorina0/flowable-engine", "path": "modules/flowable-common-rest/src/main/java/org/flowable/rest/filter/RestAuthenticator.java", "license": "apache-2.0", "size": 1770 }
[ "javax.servlet.http.HttpServletRequest" ]
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.*;
[ "javax.servlet" ]
javax.servlet;
1,160,324
public static int getSecond(Date date) { return getCalendar(date).get(Calendar.SECOND); }
static int function(Date date) { return getCalendar(date).get(Calendar.SECOND); }
/** * Return second from a {@link Date}. * @author Crow * @date 2015年9月20日 * @param date * @return */
Return second from a <code>Date</code>
getSecond
{ "repo_name": "RisingWonderland/Lotus", "path": "src/org/rw/crow/commons/DateUtils.java", "license": "mit", "size": 16090 }
[ "java.util.Calendar", "java.util.Date" ]
import java.util.Calendar; import java.util.Date;
import java.util.*;
[ "java.util" ]
java.util;
301,424
private List<String> updateStatus(List<String> unsentRegIds, Map<String, Result> allResults, MulticastResult multicastResult) { List<Result> results = multicastResult.getResults(); if (results.size() != unsentRegIds.size()) { // should never happen, unless there is a flaw in the algorithm th...
List<String> function(List<String> unsentRegIds, Map<String, Result> allResults, MulticastResult multicastResult) { List<Result> results = multicastResult.getResults(); if (results.size() != unsentRegIds.size()) { throw new RuntimeException(STR + STR + results + STR + unsentRegIds); } List<String> newUnsentRegIds = new...
/** * Updates the status of the messages sent to devices and the list of devices * that should be retried. * * @param unsentRegIds list of devices that are still pending an update. * @param allResults map of status that will be updated. * @param multicastResult result of the last multicast sent. * ...
Updates the status of the messages sent to devices and the list of devices that should be retried
updateStatus
{ "repo_name": "xuwei-k/gcm-old", "path": "src/main/scala/com/google/android/gcm/server/Sender.java", "license": "apache-2.0", "size": 24302 }
[ "java.util.ArrayList", "java.util.List", "java.util.Map" ]
import java.util.ArrayList; import java.util.List; import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
9,268
public Map<?,?> getOptions();
Map<?,?> function();
/** * Returns a map of options. The keys are the names of the options, the values are * arbitrary objects that provide additional information or logic for the option. */
Returns a map of options. The keys are the names of the options, the values are arbitrary objects that provide additional information or logic for the option
getOptions
{ "repo_name": "HyVar/DarwinSPL", "path": "plugins/eu.hyvar.mspl.manifest.resource.hymanifest/src-gen/eu/hyvar/mspl/manifest/resource/hymanifest/IHymanifestOptionProvider.java", "license": "apache-2.0", "size": 487 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
105,915
EReference getCOREFeatureModel_DefaultConfiguration();
EReference getCOREFeatureModel_DefaultConfiguration();
/** * Returns the meta object for the reference '{@link ca.mcgill.sel.core.COREFeatureModel#getDefaultConfiguration <em>Default Configuration</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for the reference '<em>Default Configuration</em>'. * @see ca.mcgill....
Returns the meta object for the reference '<code>ca.mcgill.sel.core.COREFeatureModel#getDefaultConfiguration Default Configuration</code>'.
getCOREFeatureModel_DefaultConfiguration
{ "repo_name": "sacooper/ECSE-429-Project-Group1", "path": "ca.mcgill.sel.core/src/ca/mcgill/sel/core/CorePackage.java", "license": "gpl-2.0", "size": 112990 }
[ "org.eclipse.emf.ecore.EReference" ]
import org.eclipse.emf.ecore.EReference;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
2,307,388
public static int compareLocales(Locale l1, Locale l2) { int result = -1; if (l1.getLanguage().equals(l2.getLanguage())) { result += 1; if (l1.getCountry().equals(l2.getCountry())) { result += 1; if (l1.ge...
static int function(Locale l1, Locale l2) { int result = -1; if (l1.getLanguage().equals(l2.getLanguage())) { result += 1; if (l1.getCountry().equals(l2.getCountry())) { result += 1; if (l1.getVariant().equals(l2.getVariant())) { result += 1; } } } return result; }
/** * Compares two locals. Return value is negative * if they're different, and more positive the more * fields that match. */
Compares two locals. Return value is negative if they're different, and more positive the more fields that match
compareLocales
{ "repo_name": "lylysa/quickdic-dictionary.dictionary", "path": "jars/icu4j-52_1/demos/src/com/ibm/icu/dev/demo/impl/DemoUtility.java", "license": "apache-2.0", "size": 4743 }
[ "java.util.Locale" ]
import java.util.Locale;
import java.util.*;
[ "java.util" ]
java.util;
2,873,709
public synchronized Map<D,EdgeFunction<L>> reverseLookup(N target, D targetVal) { assert target!=null; assert targetVal!=null; Map<D,EdgeFunction<L>> res = nonEmptyReverseLookup.get(target,targetVal); if(res==null) return Collections.emptyMap(); return res; }
synchronized Map<D,EdgeFunction<L>> function(N target, D targetVal) { assert target!=null; assert targetVal!=null; Map<D,EdgeFunction<L>> res = nonEmptyReverseLookup.get(target,targetVal); if(res==null) return Collections.emptyMap(); return res; }
/** * Returns, for a given target statement and value all associated * source values, and for each the associated edge function. * The return value is a mapping from source value to function. */
Returns, for a given target statement and value all associated source values, and for each the associated edge function. The return value is a mapping from source value to function
reverseLookup
{ "repo_name": "StevenArzt/heros", "path": "src/heros/solver/JumpFunctions.java", "license": "lgpl-2.1", "size": 8592 }
[ "java.util.Collections", "java.util.Map" ]
import java.util.Collections; import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
148,293
@ConfigAttributeGetter(name = ENABLE_CLUSTER_CONFIGURATION) boolean getEnableClusterConfiguration(); @ConfigAttribute(type = Boolean.class) String ENABLE_CLUSTER_CONFIGURATION_NAME = ENABLE_CLUSTER_CONFIGURATION; boolean DEFAULT_ENABLE_CLUSTER_CONFIGURATION = true; /** * Sets the value for {@lin...
@ConfigAttributeGetter(name = ENABLE_CLUSTER_CONFIGURATION) boolean getEnableClusterConfiguration(); @ConfigAttribute(type = Boolean.class) String ENABLE_CLUSTER_CONFIGURATION_NAME = ENABLE_CLUSTER_CONFIGURATION; boolean DEFAULT_ENABLE_CLUSTER_CONFIGURATION = true; /** * Sets the value for {@link ConfigurationPropertie...
/** * Returns the value of {@link ConfigurationProperties#ENABLE_CLUSTER_CONFIGURATION} property */
Returns the value of <code>ConfigurationProperties#ENABLE_CLUSTER_CONFIGURATION</code> property
getEnableClusterConfiguration
{ "repo_name": "jdeppe-pivotal/geode", "path": "geode-core/src/main/java/org/apache/geode/distributed/internal/DistributionConfig.java", "license": "apache-2.0", "size": 188411 }
[ "org.apache.geode.distributed.ConfigurationProperties" ]
import org.apache.geode.distributed.ConfigurationProperties;
import org.apache.geode.distributed.*;
[ "org.apache.geode" ]
org.apache.geode;
2,906,153
public static CmsSlideAnimation slideOut(Element element, Command callback, int duration) { CmsSlideAnimation animation = new CmsSlideAnimation(element, false, callback); animation.run(duration); return animation; }
static CmsSlideAnimation function(Element element, Command callback, int duration) { CmsSlideAnimation animation = new CmsSlideAnimation(element, false, callback); animation.run(duration); return animation; }
/** * Slides the given element out of view executing the callback afterwards.<p> * * @param element the element to slide out * @param callback the callback * @param duration the animation duration * * @return the running animation object */
Slides the given element out of view executing the callback afterwards
slideOut
{ "repo_name": "it-tavis/opencms-core", "path": "src-gwt/org/opencms/gwt/client/util/CmsSlideAnimation.java", "license": "lgpl-2.1", "size": 5544 }
[ "com.google.gwt.dom.client.Element", "com.google.gwt.user.client.Command" ]
import com.google.gwt.dom.client.Element; import com.google.gwt.user.client.Command;
import com.google.gwt.dom.client.*; import com.google.gwt.user.client.*;
[ "com.google.gwt" ]
com.google.gwt;
737,373
public static ListenerAdapter getListenerFor(InstanceIdentifier path) { return listenersByInstanceIdentifier.get(path); }
static ListenerAdapter function(InstanceIdentifier path) { return listenersByInstanceIdentifier.get(path); }
/** * Gets {@link ListenerAdapter} listener specified by * {@link InstanceIdentifier} path. * * @param path * Path to data in data repository. * @return ListenerAdapter */
Gets <code>ListenerAdapter</code> listener specified by <code>InstanceIdentifier</code> path
getListenerFor
{ "repo_name": "niuqg/controller", "path": "opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/streams/listeners/Notificator.java", "license": "epl-1.0", "size": 4986 }
[ "org.opendaylight.yangtools.yang.data.api.InstanceIdentifier" ]
import org.opendaylight.yangtools.yang.data.api.InstanceIdentifier;
import org.opendaylight.yangtools.yang.data.api.*;
[ "org.opendaylight.yangtools" ]
org.opendaylight.yangtools;
2,248,449
@Deprecated boolean isExcluded(Resource reference);
boolean isExcluded(Resource reference);
/** * Returns true if the referenced resource is indexed and excluded. * * @since 2.6 * @deprecated since 4.2 Excluded resources are not indexed. */
Returns true if the referenced resource is indexed and excluded
isExcluded
{ "repo_name": "ayondeep/sonarqube", "path": "sonar-plugin-api/src/main/java/org/sonar/api/batch/SensorContext.java", "license": "lgpl-3.0", "size": 6787 }
[ "org.sonar.api.resources.Resource" ]
import org.sonar.api.resources.Resource;
import org.sonar.api.resources.*;
[ "org.sonar.api" ]
org.sonar.api;
971,044
private static List<Square> filterPawnCapturingMoves(final List<Square> squareList, final Position position) { List<Square> capturingSquares = new ArrayList<>(); for (Square square : squareList) { if (PositionUtils.hasOppositePiece(square, position) || positio...
static List<Square> function(final List<Square> squareList, final Position position) { List<Square> capturingSquares = new ArrayList<>(); for (Square square : squareList) { if (PositionUtils.hasOppositePiece(square, position) position.getEnPassant() == square) { capturingSquares.add(square); } } return capturingSquares...
/** * Function to filter valid capturing pawn moves. * Square should be en passant square or have enemy piece. * * @param squareList * the list of capturing squares. * @param position * the current position. * @return the valid moves. */
Function to filter valid capturing pawn moves. Square should be en passant square or have enemy piece
filterPawnCapturingMoves
{ "repo_name": "johnathana/magnus4j", "path": "src/main/java/magnus4j/chess/logic/PawnMoves.java", "license": "mit", "size": 3704 }
[ "java.util.ArrayList", "java.util.List" ]
import java.util.ArrayList; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,246,842
IJavaScriptUnit getCompilationUnit();
IJavaScriptUnit getCompilationUnit();
/** * Returns the compilation unit corresponding to the document on which the annotation is set * or <code>null</code> if no corresponding compilation unit exists. */
Returns the compilation unit corresponding to the document on which the annotation is set or <code>null</code> if no corresponding compilation unit exists
getCompilationUnit
{ "repo_name": "boniatillo-com/PhaserEditor", "path": "source/thirdparty/jsdt/org.eclipse.wst.jsdt.ui/src/org/eclipse/wst/jsdt/internal/ui/javaeditor/IJavaAnnotation.java", "license": "epl-1.0", "size": 3329 }
[ "org.eclipse.wst.jsdt.core.IJavaScriptUnit" ]
import org.eclipse.wst.jsdt.core.IJavaScriptUnit;
import org.eclipse.wst.jsdt.core.*;
[ "org.eclipse.wst" ]
org.eclipse.wst;
911,711
public void testNoStartState() throws Exception { StateTransitionMap map = new StateTransitionMap(); map.addState(new State("END", StateType.END)); try { map.build(); throw new Exception( "Able to build state machine with no start state...
void function() throws Exception { StateTransitionMap map = new StateTransitionMap(); map.addState(new State("END", StateType.END)); try { map.build(); throw new Exception( STR); } catch (FiniteStateException e) { } }
/** * State machine map throws a FiniteStateException if you attempt to build a * state machine with no start state. */
State machine map throws a FiniteStateException if you attempt to build a state machine with no start state
testNoStartState
{ "repo_name": "anomalizer/tungsten-fsm", "path": "test/java/com/continuent/tungsten/commons/patterns/fsm/test/StateMachineTest.java", "license": "gpl-2.0", "size": 51917 }
[ "com.continuent.tungsten.commons.patterns.fsm.FiniteStateException", "com.continuent.tungsten.commons.patterns.fsm.State", "com.continuent.tungsten.commons.patterns.fsm.StateTransitionMap", "com.continuent.tungsten.commons.patterns.fsm.StateType" ]
import com.continuent.tungsten.commons.patterns.fsm.FiniteStateException; import com.continuent.tungsten.commons.patterns.fsm.State; import com.continuent.tungsten.commons.patterns.fsm.StateTransitionMap; import com.continuent.tungsten.commons.patterns.fsm.StateType;
import com.continuent.tungsten.commons.patterns.fsm.*;
[ "com.continuent.tungsten" ]
com.continuent.tungsten;
856,553
public int readUnsignedByte() throws IOException, EOFException { return in.read(); }
int function() throws IOException, EOFException { return in.read(); }
/** * Invokes the delegate's <code>read()</code> method. * @return the byte read or -1 if the end of stream * @throws EOFException if an end of file is reached unexpectedly * @throws IOException if an I/O error occurs */
Invokes the delegate's <code>read()</code> method
readUnsignedByte
{ "repo_name": "wiyarmir/GPT-Organize", "path": "src/org/apache/commons/io/input/SwappedDataInputStream.java", "license": "gpl-3.0", "size": 7948 }
[ "java.io.EOFException", "java.io.IOException" ]
import java.io.EOFException; import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
1,476,322
public Date getRegtime() { return regtime; }
Date function() { return regtime; }
/** * This method was generated by MyBatis Generator. * This method returns the value of the database column t_user.regTime * * @return the value of t_user.regTime * * @mbggenerated Fri Apr 24 11:32:18 CST 2015 */
This method was generated by MyBatis Generator. This method returns the value of the database column t_user.regTime
getRegtime
{ "repo_name": "liushukai/crab_ssm", "path": "crab_ssm/src/com/crab/entity/User.java", "license": "apache-2.0", "size": 13715 }
[ "java.util.Date" ]
import java.util.Date;
import java.util.*;
[ "java.util" ]
java.util;
372,806