method
stringlengths
13
441k
clean_method
stringlengths
7
313k
doc
stringlengths
17
17.3k
comment
stringlengths
3
1.42k
method_name
stringlengths
1
273
extra
dict
imports
list
imports_info
stringlengths
19
34.8k
cluster_imports_info
stringlengths
15
3.66k
libraries
list
libraries_info
stringlengths
6
661
id
int64
0
2.92M
public void setPriceList (BigDecimal PriceList);
void function (BigDecimal PriceList);
/** Set List Price. * List Price */
Set List Price. List Price
setPriceList
{ "repo_name": "pplatek/adempiere", "path": "base/src/org/compiere/model/I_I_Product.java", "license": "gpl-2.0", "size": 21372 }
[ "java.math.BigDecimal" ]
import java.math.BigDecimal;
import java.math.*;
[ "java.math" ]
java.math;
1,612,900
public Schema getProjectionSchema() { return asyncScanner.getProjectionSchema(); }
Schema function() { return asyncScanner.getProjectionSchema(); }
/** * Returns the projection schema of this scanner. If specific columns were * not specified during scanner creation, the table schema is returned. * @return the projection schema for this scanner */
Returns the projection schema of this scanner. If specific columns were not specified during scanner creation, the table schema is returned
getProjectionSchema
{ "repo_name": "InspurUSA/kudu", "path": "java/kudu-client/src/main/java/org/apache/kudu/client/KuduScanner.java", "license": "apache-2.0", "size": 7481 }
[ "org.apache.kudu.Schema" ]
import org.apache.kudu.Schema;
import org.apache.kudu.*;
[ "org.apache.kudu" ]
org.apache.kudu;
1,484,288
private JPanel getJPanel4() { if (jPanel4 == null) { jPanel4 = new JPanel(); jPanel4.setLayout(null); jPanel4.setBorder(javax.swing.BorderFactory.createTitledBorder( null, PluginServices.getText(this, "layer_name"), javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.T...
JPanel function() { if (jPanel4 == null) { jPanel4 = new JPanel(); jPanel4.setLayout(null); jPanel4.setBorder(javax.swing.BorderFactory.createTitledBorder( null, PluginServices.getText(this, STR), javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, null, null)); jPan...
/** * This method initializes jPanel4 * * @return Panel */
This method initializes jPanel4
getJPanel4
{ "repo_name": "iCarto/siga", "path": "extWMS/src/com/iver/cit/gvsig/gui/panels/WMSParamsPanel.java", "license": "gpl-3.0", "size": 47608 }
[ "com.iver.andami.PluginServices", "javax.swing.JPanel" ]
import com.iver.andami.PluginServices; import javax.swing.JPanel;
import com.iver.andami.*; import javax.swing.*;
[ "com.iver.andami", "javax.swing" ]
com.iver.andami; javax.swing;
1,670,643
public Map<String, Object> toMap() { final Map<String, Object> map = new TreeMap<String, Object>(); map.put("owner", this.getOwner()); map.put("name", this.getName()); map.put("value", this.getValue()); map.put("location", this.getLocation()); return map; } ...
Map<String, Object> function() { final Map<String, Object> map = new TreeMap<String, Object>(); map.put("owner", this.getOwner()); map.put("name", this.getName()); map.put("value", this.getValue()); map.put(STR, this.getLocation()); return map; } /** * {@inheritDoc}
/** * This method creates a map representation of this struct. * * <p> * Each key is the name of a field. * Each value is the result of calling the key field's getter. * </p> * * @return a map containing the entries in this struct. */
This method creates a map representation of this struct. Each key is the name of a field. Each value is the result of calling the key field's getter.
toMap
{ "repo_name": "Mackenzie-High/autumn", "path": "src/autumn/lang/compiler/ast/nodes/SetFieldExpression.java", "license": "apache-2.0", "size": 7621 }
[ "java.util.Map", "java.util.TreeMap" ]
import java.util.Map; import java.util.TreeMap;
import java.util.*;
[ "java.util" ]
java.util;
2,861,221
public LeaseState leaseState() { return this.leaseState; }
LeaseState function() { return this.leaseState; }
/** * Get lease state of the container. Possible values include: 'Available', 'Leased', 'Expired', 'Breaking', 'Broken'. * * @return the leaseState value */
Get lease state of the container. Possible values include: 'Available', 'Leased', 'Expired', 'Breaking', 'Broken'
leaseState
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/storage/mgmt-v2019_06_01/src/main/java/com/microsoft/azure/management/storage/v2019_06_01/implementation/ListContainerItemInner.java", "license": "mit", "size": 10955 }
[ "com.microsoft.azure.management.storage.v2019_06_01.LeaseState" ]
import com.microsoft.azure.management.storage.v2019_06_01.LeaseState;
import com.microsoft.azure.management.storage.v2019_06_01.*;
[ "com.microsoft.azure" ]
com.microsoft.azure;
819,347
@Nonnull SlickMusicHandle loadMusic(SoundSystem soundSystem, String filename) throws SlickLoadMusicException;
SlickMusicHandle loadMusic(SoundSystem soundSystem, String filename) throws SlickLoadMusicException;
/** * Load some music. * * @param soundSystem the Nifty sound system that is going to manage the load music * @param filename the name of the file that stores the music * @return the loaded music * @throws SlickLoadMusicException in case loading the music failed */
Load some music
loadMusic
{ "repo_name": "void256/nifty-gui", "path": "nifty-renderer-slick2d/src/main/java/de/lessvoid/nifty/slick2d/sound/music/loader/SlickMusicLoader.java", "license": "bsd-2-clause", "size": 889 }
[ "de.lessvoid.nifty.slick2d.sound.music.SlickLoadMusicException", "de.lessvoid.nifty.slick2d.sound.music.SlickMusicHandle", "de.lessvoid.nifty.sound.SoundSystem" ]
import de.lessvoid.nifty.slick2d.sound.music.SlickLoadMusicException; import de.lessvoid.nifty.slick2d.sound.music.SlickMusicHandle; import de.lessvoid.nifty.sound.SoundSystem;
import de.lessvoid.nifty.slick2d.sound.music.*; import de.lessvoid.nifty.sound.*;
[ "de.lessvoid.nifty" ]
de.lessvoid.nifty;
795,350
Map<String, String[]> copyMap(Map<String, String[]> orig) { if (orig == null) return (new HashMap<String, String[]>()); HashMap<String, String[]> dest = new HashMap<String, String[]>(); for (Map.Entry<String, String[]> entry : orig.entrySet()) { dest.put(ent...
Map<String, String[]> copyMap(Map<String, String[]> orig) { if (orig == null) return (new HashMap<String, String[]>()); HashMap<String, String[]> dest = new HashMap<String, String[]>(); for (Map.Entry<String, String[]> entry : orig.entrySet()) { dest.put(entry.getKey(), entry.getValue()); } return (dest); }
/** * Perform a shallow copy of the specified Map, and return the result. * * @param orig Origin Map to be copied */
Perform a shallow copy of the specified Map, and return the result
copyMap
{ "repo_name": "kabir/jbw-play", "path": "src/main/java/org/apache/catalina/core/ApplicationHttpRequest.java", "license": "apache-2.0", "size": 26334 }
[ "java.util.HashMap", "java.util.Map" ]
import java.util.HashMap; import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
1,321,697
public static AnnuityDefinition<CouponIborCompoundingDefinition> couponIborCompounding(final ZonedDateTime settlementDate, final ZonedDateTime maturityDate, final Period paymentPeriod, final double notional, final IborIndex index, final StubType stubCompound, final boolean isPayer, final BusinessDayConven...
static AnnuityDefinition<CouponIborCompoundingDefinition> function(final ZonedDateTime settlementDate, final ZonedDateTime maturityDate, final Period paymentPeriod, final double notional, final IborIndex index, final StubType stubCompound, final boolean isPayer, final BusinessDayConvention businessDayConvention, final ...
/** * Annuity of compounded coupon ibor without spread. * * @param settlementDate * The settlement date. * @param maturityDate * The annuity maturity date. * @param paymentPeriod * The payment period. * @param notional * The notional. * @param index ...
Annuity of compounded coupon ibor without spread
couponIborCompounding
{ "repo_name": "McLeodMoores/starling", "path": "projects/analytics/src/main/java/com/opengamma/analytics/financial/instrument/annuity/AnnuityDefinitionBuilder.java", "license": "apache-2.0", "size": 104360 }
[ "com.opengamma.analytics.financial.instrument.index.IborIndex", "com.opengamma.analytics.financial.instrument.payment.CouponIborCompoundingDefinition", "com.opengamma.analytics.financial.schedule.ScheduleCalculator", "com.opengamma.financial.convention.StubType", "com.opengamma.financial.convention.business...
import com.opengamma.analytics.financial.instrument.index.IborIndex; import com.opengamma.analytics.financial.instrument.payment.CouponIborCompoundingDefinition; import com.opengamma.analytics.financial.schedule.ScheduleCalculator; import com.opengamma.financial.convention.StubType; import com.opengamma.financial.conve...
import com.opengamma.analytics.financial.instrument.index.*; import com.opengamma.analytics.financial.instrument.payment.*; import com.opengamma.analytics.financial.schedule.*; import com.opengamma.financial.convention.*; import com.opengamma.financial.convention.businessday.*; import com.opengamma.financial.convention...
[ "com.opengamma.analytics", "com.opengamma.financial", "com.opengamma.util", "org.threeten.bp" ]
com.opengamma.analytics; com.opengamma.financial; com.opengamma.util; org.threeten.bp;
731,801
void loadNodesFromImports(final List<DMNIncludedModel> includedModels, final ServiceCallback<List<DMNIncludedNode>> callback);
void loadNodesFromImports(final List<DMNIncludedModel> includedModels, final ServiceCallback<List<DMNIncludedNode>> callback);
/** * This method loads all nodes for the included DMN models. * @param includedModels represents all DMN imports that provide the list of nodes. * @param callback Invoked with a list of {@link DMNIncludedNode}s. */
This method loads all nodes for the included DMN models
loadNodesFromImports
{ "repo_name": "romartin/kie-wb-common", "path": "kie-wb-common-dmn/kie-wb-common-dmn-client/src/main/java/org/kie/workbench/common/dmn/client/service/DMNClientServicesProxy.java", "license": "apache-2.0", "size": 5349 }
[ "java.util.List", "org.kie.workbench.common.dmn.api.editors.included.DMNIncludedModel", "org.kie.workbench.common.dmn.api.editors.included.DMNIncludedNode", "org.kie.workbench.common.stunner.core.client.service.ServiceCallback" ]
import java.util.List; import org.kie.workbench.common.dmn.api.editors.included.DMNIncludedModel; import org.kie.workbench.common.dmn.api.editors.included.DMNIncludedNode; import org.kie.workbench.common.stunner.core.client.service.ServiceCallback;
import java.util.*; import org.kie.workbench.common.dmn.api.editors.included.*; import org.kie.workbench.common.stunner.core.client.service.*;
[ "java.util", "org.kie.workbench" ]
java.util; org.kie.workbench;
611,851
@Override protected boolean wantsReindexAllDependentObjects(final PFUserDO obj, final PFUserDO dbObj) { if (super.wantsReindexAllDependentObjects(obj, dbObj) == false) { return false; } return StringUtils.equals(obj.getUsername(), dbObj.getUsername()) == false || StringUtils.equals(obj.g...
boolean function(final PFUserDO obj, final PFUserDO dbObj) { if (super.wantsReindexAllDependentObjects(obj, dbObj) == false) { return false; } return StringUtils.equals(obj.getUsername(), dbObj.getUsername()) == false StringUtils.equals(obj.getFirstname(), dbObj.getFirstname()) == false StringUtils.equals(obj.getLastna...
/** * Re-index all dependent objects only if the username, first or last name was changed. * @see org.projectforge.core.BaseDao#wantsReindexAllDependentObjects(org.projectforge.core.ExtendedBaseDO, * org.projectforge.core.ExtendedBaseDO) */
Re-index all dependent objects only if the username, first or last name was changed
wantsReindexAllDependentObjects
{ "repo_name": "micromata/projectforge-webapp", "path": "src/main/java/org/projectforge/user/UserDao.java", "license": "gpl-3.0", "size": 27447 }
[ "org.apache.commons.lang.StringUtils" ]
import org.apache.commons.lang.StringUtils;
import org.apache.commons.lang.*;
[ "org.apache.commons" ]
org.apache.commons;
1,753,415
private LinkedList<DataPoint> updateIfChanged(final LinkedList<DataPoint> changes, final DataPoint dp) { LinkedList<DataPoint> didNotChange = new LinkedList<>(); for (DataPoint toCtrlDP : changes) { DataPoint ctrlDP = triggerManager.check...
LinkedList<DataPoint> function(final LinkedList<DataPoint> changes, final DataPoint dp) { LinkedList<DataPoint> didNotChange = new LinkedList<>(); for (DataPoint toCtrlDP : changes) { DataPoint ctrlDP = triggerManager.checkCtrlTriggers(toCtrlDP); if (!insertInCurrentDPMapIfNotExists(ctrlDP, currentDPMap)) { DataPoint c...
/** * Run control triggers on the new dp, then check if it exists * a current value. update if changed or does not exist, nothing otherwise * * @return the list of dp which did not changed */
Run control triggers on the new dp, then check if it exists a current value. update if changed or does not exist, nothing otherwise
updateIfChanged
{ "repo_name": "jackybourgeois/active-home", "path": "org.active-home.context/src/main/java/org/activehome/context/Context.java", "license": "gpl-3.0", "size": 22644 }
[ "java.util.LinkedList", "org.activehome.context.data.DataPoint", "org.activehome.context.data.DiscreteDataPoint" ]
import java.util.LinkedList; import org.activehome.context.data.DataPoint; import org.activehome.context.data.DiscreteDataPoint;
import java.util.*; import org.activehome.context.data.*;
[ "java.util", "org.activehome.context" ]
java.util; org.activehome.context;
252,649
@LogMessageDocs({ @LogMessageDoc(level="ERROR", message="BufferId is not and packet data is null. " + "Cannot send packetOut. " + "srcSwitch={dpid} inPort={port} outPort={port}", explanation="The switch send a malformed packet-in." + ...
@LogMessageDocs({ @LogMessageDoc(level="ERROR", message=STR + STR + STR, explanation=STR + STR, recommendation=LogMessageDoc.REPORT_SWITCH_BUG), @LogMessageDoc(level="ERROR", message=STR, explanation=STR + STR, recommendation=LogMessageDoc.CHECK_SWITCH) }) void function(IPacket packet, IOFSwitch sw, int bufferId, short...
/** * Pushes a packet-out to a switch. If bufferId != BUFFER_ID_NONE we * assume that the packetOut switch is the same as the packetIn switch * and we will use the bufferId * Caller needs to make sure that inPort and outPort differs * @param packet packet data to send * @param sw ...
Pushes a packet-out to a switch. If bufferId != BUFFER_ID_NONE we assume that the packetOut switch is the same as the packetIn switch and we will use the bufferId Caller needs to make sure that inPort and outPort differs
pushPacket
{ "repo_name": "sdnlab/floodlight-0.90", "path": "src/main/java/net/floodlightcontroller/routing/ForwardingBase.java", "license": "apache-2.0", "size": 26970 }
[ "java.io.IOException", "java.util.ArrayList", "java.util.List", "net.floodlightcontroller.core.FloodlightContext", "net.floodlightcontroller.core.IOFSwitch", "net.floodlightcontroller.core.annotations.LogMessageDoc", "net.floodlightcontroller.core.annotations.LogMessageDocs", "net.floodlightcontroller...
import java.io.IOException; import java.util.ArrayList; import java.util.List; import net.floodlightcontroller.core.FloodlightContext; import net.floodlightcontroller.core.IOFSwitch; import net.floodlightcontroller.core.annotations.LogMessageDoc; import net.floodlightcontroller.core.annotations.LogMessageDocs; import n...
import java.io.*; import java.util.*; import net.floodlightcontroller.core.*; import net.floodlightcontroller.core.annotations.*; import net.floodlightcontroller.packet.*; import org.openflow.protocol.*; import org.openflow.protocol.action.*;
[ "java.io", "java.util", "net.floodlightcontroller.core", "net.floodlightcontroller.packet", "org.openflow.protocol" ]
java.io; java.util; net.floodlightcontroller.core; net.floodlightcontroller.packet; org.openflow.protocol;
2,397,041
public Object stringToObject(String value, Class type, String flavour, Context context) { if (value == null || "".equals(value)) { return ""; } return ConvertUtils.convert(value, type); }
Object function(String value, Class type, String flavour, Context context) { if (value == null STR"; } return ConvertUtils.convert(value, type); }
/** * Converts an object to a string representation using ConvertUtils. * This implementation ignores null and empty string values (rather than converting them). * * @param value the String to be converted, not null * @param type the property class to be returned (if possible), not null * @param...
Converts an object to a string representation using ConvertUtils. This implementation ignores null and empty string values (rather than converting them)
stringToObject
{ "repo_name": "ripdajacker/commons-betwixt", "path": "src/java/org/apache/commons/betwixt/strategy/ConvertUtilsObjectStringConverter.java", "license": "apache-2.0", "size": 2614 }
[ "org.apache.commons.beanutils.ConvertUtils", "org.apache.commons.betwixt.expression.Context" ]
import org.apache.commons.beanutils.ConvertUtils; import org.apache.commons.betwixt.expression.Context;
import org.apache.commons.beanutils.*; import org.apache.commons.betwixt.expression.*;
[ "org.apache.commons" ]
org.apache.commons;
1,911,032
public Set<String> getRequirementsUserHasApprovals(String userId, List<String> accessRequirementIds);
Set<String> function(String userId, List<String> accessRequirementIds);
/** * Retrieve a set of AccessRequirement ID that userId has access approval for within the provided accessRequirementIds * * @param userId * @param accessRequirementIds * @return */
Retrieve a set of AccessRequirement ID that userId has access approval for within the provided accessRequirementIds
getRequirementsUserHasApprovals
{ "repo_name": "hhu94/Synapse-Repository-Services", "path": "lib/models/src/main/java/org/sagebionetworks/repo/model/AccessApprovalDAO.java", "license": "apache-2.0", "size": 4013 }
[ "java.util.List", "java.util.Set" ]
import java.util.List; import java.util.Set;
import java.util.*;
[ "java.util" ]
java.util;
716,021
Xlog.d(TAG, "showCameraGuide()"); mSharedPrefs = activity.getSharedPreferences(SHARED_PREFERENCE_NAME, Context.MODE_WORLD_WRITEABLE); if (FeatureOption.MTK_LCA_ROM_OPTIMIZE || mSharedPrefs.getBoolean(KEY_CAMERA_GUIDE, false)) { Xlog.d(TAG, "already show camera guide, return")...
Xlog.d(TAG, STR); mSharedPrefs = activity.getSharedPreferences(SHARED_PREFERENCE_NAME, Context.MODE_WORLD_WRITEABLE); if (FeatureOption.MTK_LCA_ROM_OPTIMIZE mSharedPrefs.getBoolean(KEY_CAMERA_GUIDE, false)) { Xlog.d(TAG, STR); return; } Dialog dialog = new AppGuideDialog(activity); dialog.requestWindowFeature(Window.FE...
/** * Called when the app want to show camera guide * @param type: The app type, such as "PHONE/CONTACTS/MMS/CAMERA" */
Called when the app want to show camera guide
showCameraGuide
{ "repo_name": "rex-xxx/mt6572_x201", "path": "mediatek/packages/apps/ApplicationGuide/src/com/mediatek/appguide/plugin/camera/ScrollAndZoomExt.java", "license": "gpl-2.0", "size": 14075 }
[ "android.app.Activity", "android.app.Dialog", "android.content.Context", "android.media.MediaPlayer", "android.os.PowerManager", "android.view.SurfaceHolder", "android.view.SurfaceView", "android.view.View", "android.view.Window", "android.view.WindowManager", "android.widget.Button", "android...
import android.app.Activity; import android.app.Dialog; import android.content.Context; import android.media.MediaPlayer; import android.os.PowerManager; import android.view.SurfaceHolder; import android.view.SurfaceView; import android.view.View; import android.view.Window; import android.view.WindowManager; import an...
import android.app.*; import android.content.*; import android.media.*; import android.os.*; import android.view.*; import android.widget.*; import com.mediatek.common.featureoption.*; import com.mediatek.xlog.*;
[ "android.app", "android.content", "android.media", "android.os", "android.view", "android.widget", "com.mediatek.common", "com.mediatek.xlog" ]
android.app; android.content; android.media; android.os; android.view; android.widget; com.mediatek.common; com.mediatek.xlog;
1,042,058
public final PJsonObject getJSONObject(final String key) { final JSONObject val = this.obj.optJSONObject(key); if (val == null) { throw new ObjectMissingException(this, key); } return new PJsonObject(this, val, key); }
final PJsonObject function(final String key) { final JSONObject val = this.obj.optJSONObject(key); if (val == null) { throw new ObjectMissingException(this, key); } return new PJsonObject(this, val, key); }
/** * Get a property as a json object or throw exception. * @param key the property name */
Get a property as a json object or throw exception
getJSONObject
{ "repo_name": "tsauerwein/mapfish-print", "path": "core/src/main/java/org/mapfish/print/wrapper/json/PJsonObject.java", "license": "mit", "size": 7533 }
[ "org.json.JSONObject", "org.mapfish.print.wrapper.ObjectMissingException" ]
import org.json.JSONObject; import org.mapfish.print.wrapper.ObjectMissingException;
import org.json.*; import org.mapfish.print.wrapper.*;
[ "org.json", "org.mapfish.print" ]
org.json; org.mapfish.print;
1,623,655
public void intercept(final ServiceResources<T> resources) { try { final Object moduleInstance = Modifier.isStatic(interceptMethod.getModifiers()) ? null : resources.getResource(moduleClass); final Object[] parameters = InternalUtils.calculateParameters(resources, interceptMethod); interceptMethod.in...
void function(final ServiceResources<T> resources) { try { final Object moduleInstance = Modifier.isStatic(interceptMethod.getModifiers()) ? null : resources.getResource(moduleClass); final Object[] parameters = InternalUtils.calculateParameters(resources, interceptMethod); interceptMethod.invoke(moduleInstance, parame...
/** * {@inheritDoc} It intercepts service by invoking configured module method. */
It intercepts service by invoking configured module method
intercept
{ "repo_name": "sody/greatage", "path": "labs/greatage-inject/src/main/java/org/greatage/inject/internal/ServiceInterceptorImpl.java", "license": "apache-2.0", "size": 3294 }
[ "java.lang.reflect.Modifier", "org.greatage.inject.ApplicationException", "org.greatage.inject.services.ServiceResources" ]
import java.lang.reflect.Modifier; import org.greatage.inject.ApplicationException; import org.greatage.inject.services.ServiceResources;
import java.lang.reflect.*; import org.greatage.inject.*; import org.greatage.inject.services.*;
[ "java.lang", "org.greatage.inject" ]
java.lang; org.greatage.inject;
2,236,428
public void changeField(Field oldField, Field newField) throws xBaseJException, IOException { int i, j; Field tField; for (i = 0; i < fldcount; i++) { tField = getField(i); if (oldField.getName().equalsIgnoreCase(tField.getName())) break; } ...
void function(Field oldField, Field newField) throws xBaseJException, IOException { int i, j; Field tField; for (i = 0; i < fldcount; i++) { tField = getField(i); if (oldField.getName().equalsIgnoreCase(tField.getName())) break; } if (i > fldcount) throw new xBaseJException(STR + oldField.getName() + STR); for (j = 0; ...
/** * changes a Field in a database NOT FULLY IMPLEMENTED * * @param oldField * a Field object * @param newField * a Field object * @see Field * @throws xBaseJException * org.xBaseJ error caused by called methods * @throws IOException ...
changes a Field in a database NOT FULLY IMPLEMENTED
changeField
{ "repo_name": "datacleaner/metamodel_extras", "path": "dbase/src/main/java/org/xBaseJ/DBF.java", "license": "lgpl-3.0", "size": 73588 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
2,218,905
private Result pHexQuad(final int yyStart) throws IOException { int yyC; int yyIndex; Void yyValue; ParseError yyError = ParseError.DUMMY; // Alternative 1. yyC = character(yyStart); if (-1 != yyC) { yyIndex = yyStart + 1; switch (yyC) { case '0': ...
Result function(final int yyStart) throws IOException { int yyC; int yyIndex; Void yyValue; ParseError yyError = ParseError.DUMMY; yyC = character(yyStart); if (-1 != yyC) { yyIndex = yyStart + 1; switch (yyC) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': case 'A'...
/** * Parse nonterminal xtc.lang.CConstant.HexQuad. * * @param yyStart The index. * @return The result. * @throws IOException Signals an I/O error. */
Parse nonterminal xtc.lang.CConstant.HexQuad
pHexQuad
{ "repo_name": "wandoulabs/xtc-rats", "path": "xtc-core/src/main/java/xtc/lang/jeannie/JeannieParser.java", "license": "lgpl-2.1", "size": 647687 }
[ "java.io.IOException", "xtc.parser.ParseError", "xtc.parser.Result", "xtc.parser.SemanticValue" ]
import java.io.IOException; import xtc.parser.ParseError; import xtc.parser.Result; import xtc.parser.SemanticValue;
import java.io.*; import xtc.parser.*;
[ "java.io", "xtc.parser" ]
java.io; xtc.parser;
2,001,345
public static TargetWorldEvent createTargetWorldEvent(Game game, World targetWorld) { Map<String, Object> values = Maps.newHashMap(); values.put("game", game); values.put("targetWorld", targetWorld); return SpongeEventFactoryUtils.createEventImpl(TargetWorldEvent.class, values); ...
static TargetWorldEvent function(Game game, World targetWorld) { Map<String, Object> values = Maps.newHashMap(); values.put("game", game); values.put(STR, targetWorld); return SpongeEventFactoryUtils.createEventImpl(TargetWorldEvent.class, values); }
/** * AUTOMATICALLY GENERATED, DO NOT EDIT. * Creates a new instance of * {@link org.spongepowered.api.event.world.TargetWorldEvent}. * * @param game The game * @param targetWorld The target world * @return A new target world event */
AUTOMATICALLY GENERATED, DO NOT EDIT. Creates a new instance of <code>org.spongepowered.api.event.world.TargetWorldEvent</code>
createTargetWorldEvent
{ "repo_name": "jamierocks/SpongeAPI", "path": "src/main/java/org/spongepowered/api/event/SpongeEventFactory.java", "license": "mit", "size": 196993 }
[ "com.google.common.collect.Maps", "java.util.Map", "org.spongepowered.api.Game", "org.spongepowered.api.event.world.TargetWorldEvent", "org.spongepowered.api.world.World" ]
import com.google.common.collect.Maps; import java.util.Map; import org.spongepowered.api.Game; import org.spongepowered.api.event.world.TargetWorldEvent; import org.spongepowered.api.world.World;
import com.google.common.collect.*; import java.util.*; import org.spongepowered.api.*; import org.spongepowered.api.event.world.*; import org.spongepowered.api.world.*;
[ "com.google.common", "java.util", "org.spongepowered.api" ]
com.google.common; java.util; org.spongepowered.api;
2,173,329
public void setInquiryPrimaryKeys(Map<String, String> inquiryPrimaryKeys) { this.inquiryPrimaryKeys = inquiryPrimaryKeys; }
void function(Map<String, String> inquiryPrimaryKeys) { this.inquiryPrimaryKeys = inquiryPrimaryKeys; }
/** * Sets the map used to pass primary key values between invocations of the inquiry screens after the start method has been called. * * @param inquiryPrimaryKeys */
Sets the map used to pass primary key values between invocations of the inquiry screens after the start method has been called
setInquiryPrimaryKeys
{ "repo_name": "ua-eas/ksd-kc5.2.1-rice2.3.6-ua", "path": "rice-middleware/kns/src/main/java/org/kuali/rice/kns/web/struts/form/InquiryForm.java", "license": "apache-2.0", "size": 17990 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
2,808,815
@Path("/{id}") @DELETE @Produces(MediaType.APPLICATION_JSON) @NoCache public Response logout(@PathParam("id") String id) { auth.require(AccountRoles.MANAGE_ACCOUNT); UserSessionModel userSession = session.sessions().getUserSession(realm, id); if (userSession != null && userSe...
@Path("/{id}") @Produces(MediaType.APPLICATION_JSON) Response function(@PathParam("id") String id) { auth.require(AccountRoles.MANAGE_ACCOUNT); UserSessionModel userSession = session.sessions().getUserSession(realm, id); if (userSession != null && userSession.getUser().equals(user)) { AuthenticationManager.backchannelL...
/** * Remove a specific session * * @param id a specific session to remove * @return */
Remove a specific session
logout
{ "repo_name": "thomasdarimont/keycloak", "path": "services/src/main/java/org/keycloak/services/resources/account/SessionResource.java", "license": "apache-2.0", "size": 7335 }
[ "javax.ws.rs.Path", "javax.ws.rs.PathParam", "javax.ws.rs.Produces", "javax.ws.rs.core.MediaType", "javax.ws.rs.core.Response", "org.keycloak.models.AccountRoles", "org.keycloak.models.UserSessionModel", "org.keycloak.services.managers.AuthenticationManager" ]
import javax.ws.rs.Path; import javax.ws.rs.PathParam; import javax.ws.rs.Produces; import javax.ws.rs.core.MediaType; import javax.ws.rs.core.Response; import org.keycloak.models.AccountRoles; import org.keycloak.models.UserSessionModel; import org.keycloak.services.managers.AuthenticationManager;
import javax.ws.rs.*; import javax.ws.rs.core.*; import org.keycloak.models.*; import org.keycloak.services.managers.*;
[ "javax.ws", "org.keycloak.models", "org.keycloak.services" ]
javax.ws; org.keycloak.models; org.keycloak.services;
1,034,351
Schema getConfigSchema(); /** * Returns the configuration file name. This configuration file may * be used by {@link TransportService} to initialize and configure * the corresponding {@link Transport}
Schema getConfigSchema(); /** * Returns the configuration file name. This configuration file may * be used by {@link TransportService} to initialize and configure * the corresponding {@link Transport}
/** * Returns the avro schema of the {@link Transport} configuration. * * @return the avro schema of the {@link Transport} configuration */
Returns the avro schema of the <code>Transport</code> configuration
getConfigSchema
{ "repo_name": "sashadidukh/kaa", "path": "server/common/transport-shared/src/main/java/org/kaaproject/kaa/server/transport/TransportConfig.java", "license": "apache-2.0", "size": 1747 }
[ "org.apache.avro.Schema" ]
import org.apache.avro.Schema;
import org.apache.avro.*;
[ "org.apache.avro" ]
org.apache.avro;
402,047
public Comment[] getComments(APIIdentifier identifier) throws APIManagementException { List<Comment> commentList = new ArrayList<Comment>(); Connection connection = null; ResultSet resultSet = null; PreparedStatement prepStmt = null; String sqlQuery = SQLConstants.GET_COMMEN...
Comment[] function(APIIdentifier identifier) throws APIManagementException { List<Comment> commentList = new ArrayList<Comment>(); Connection connection = null; ResultSet resultSet = null; PreparedStatement prepStmt = null; String sqlQuery = SQLConstants.GET_COMMENTS_SQL; try { connection = APIMgtDBUtil.getConnection()...
/** * Returns all the Comments on an API * * @param identifier API Identifier * @return Comment Array * @throws APIManagementException */
Returns all the Comments on an API
getComments
{ "repo_name": "Rajith90/carbon-apimgt", "path": "components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/dao/ApiMgtDAO.java", "license": "apache-2.0", "size": 811404 }
[ "java.sql.Connection", "java.sql.PreparedStatement", "java.sql.ResultSet", "java.sql.SQLException", "java.util.ArrayList", "java.util.List", "org.wso2.carbon.apimgt.api.APIManagementException", "org.wso2.carbon.apimgt.api.model.APIIdentifier", "org.wso2.carbon.apimgt.api.model.Comment", "org.wso2....
import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.util.ArrayList; import java.util.List; import org.wso2.carbon.apimgt.api.APIManagementException; import org.wso2.carbon.apimgt.api.model.APIIdentifier; import org.wso2.carbon.apimgt.api.mo...
import java.sql.*; import java.util.*; import org.wso2.carbon.apimgt.api.*; import org.wso2.carbon.apimgt.api.model.*; import org.wso2.carbon.apimgt.impl.dao.constants.*; import org.wso2.carbon.apimgt.impl.utils.*;
[ "java.sql", "java.util", "org.wso2.carbon" ]
java.sql; java.util; org.wso2.carbon;
1,772,972
@Deprecated Mono<Long> sinter(ValueStreamingChannel<V> channel, K... keys);
Mono<Long> sinter(ValueStreamingChannel<V> channel, K... keys);
/** * Intersect multiple sets. * * @param channel the channel. * @param keys the keys. * @return Long count of members of the resulting set. * @deprecated since 6.0 in favor of consuming large results through the {@link org.reactivestreams.Publisher} returned by {@link #sinter}. */
Intersect multiple sets
sinter
{ "repo_name": "lettuce-io/lettuce-core", "path": "src/main/java/io/lettuce/core/api/reactive/RedisSetReactiveCommands.java", "license": "apache-2.0", "size": 11750 }
[ "io.lettuce.core.output.ValueStreamingChannel" ]
import io.lettuce.core.output.ValueStreamingChannel;
import io.lettuce.core.output.*;
[ "io.lettuce.core" ]
io.lettuce.core;
88,325
public String getInstructions(WebSession s) { String instructions = ""; if (!getLessonTracker(s).getCompleted()) { String stage = getStage(s); if (STAGE1.equals(stage)) { instructions = "Stage 1: Use String SQL Injection to bypass authentication. " + "The goal here is to login as...
String function(WebSession s) { String instructions = STRStage 1: Use String SQL Injection to bypass authentication. STRThe goal here is to login as the user STR, who is in the Admin group. STRYou do not have the password, but the form is SQL injectable. STRView the EMPLOYEE_LOGIN stored procedure and see if you can ST...
/** * Gets the instructions attribute of the ParameterInjection object * * @return The instructions value */
Gets the instructions attribute of the ParameterInjection object
getInstructions
{ "repo_name": "paulnguyen/cmpe279", "path": "eclipse/Webgoat/src/org/owasp/webgoat/lessons/DBSQLInjection/DBSQLInjection.java", "license": "apache-2.0", "size": 8777 }
[ "org.owasp.webgoat.session.WebSession" ]
import org.owasp.webgoat.session.WebSession;
import org.owasp.webgoat.session.*;
[ "org.owasp.webgoat" ]
org.owasp.webgoat;
453,028
public Date getLastupdated_unsafe() { return lastupdated; }
Date function() { return lastupdated; }
/** * Retrieves the <code>Lastupdated</code> value, without locking, * for this <code>Contact</code> <code>Persistent</code>. * * see org.melati.poem.prepro.FieldDef#generateBaseMethods * @return the Date lastupdated */
Retrieves the <code>Lastupdated</code> value, without locking, for this <code>Contact</code> <code>Persistent</code>. see org.melati.poem.prepro.FieldDef#generateBaseMethods
getLastupdated_unsafe
{ "repo_name": "timp21337/melati-old", "path": "melati-example-contacts/src/main/java/org/melati/example/contacts/generated/ContactBase.java", "license": "gpl-2.0", "size": 24794 }
[ "java.sql.Date" ]
import java.sql.Date;
import java.sql.*;
[ "java.sql" ]
java.sql;
2,342,328
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { doPost(request,response); }
void function(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { doPost(request,response); }
/** * The doGet method of the servlet. <br> * * This method is called when a form has its tag value method equals to get. * * @param request the request send by the client to the server * @param response the response send by the server to the client * @throws ServletException if an error occurred ...
The doGet method of the servlet. This method is called when a form has its tag value method equals to get
doGet
{ "repo_name": "zning1994/paper", "path": "数据库与飞机大战/名片管理系统/Card/src/com/user/servlet/SuggestServlet.java", "license": "gpl-2.0", "size": 2599 }
[ "java.io.IOException", "javax.servlet.ServletException", "javax.servlet.http.HttpServletRequest", "javax.servlet.http.HttpServletResponse" ]
import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse;
import java.io.*; import javax.servlet.*; import javax.servlet.http.*;
[ "java.io", "javax.servlet" ]
java.io; javax.servlet;
656,401
public void setHandler(RequestType t, FileBasedCache<Set<Long>> handler) { ArgumentNotValid.checkNotNull(t, "RequestType t"); ArgumentNotValid.checkNotNull(handler, "FileBasedCache<Set<Long>> handler"); log.info("Setting handle...
void function(RequestType t, FileBasedCache<Set<Long>> handler) { ArgumentNotValid.checkNotNull(t, STR); ArgumentNotValid.checkNotNull(handler, STR); log.info(STR + t); handlers.put(t, handler); }
/** Set handler for certain type of index request. If called more than once, * new handler overwrites old one. * * @param t The type of index requested * @param handler The handler that should handle this request. */
Set handler for certain type of index request. If called more than once, new handler overwrites old one
setHandler
{ "repo_name": "netarchivesuite/netarchivesuite-svngit-migration", "path": "src/dk/netarkivet/harvester/indexserver/distribute/TestIndexRequestServer.java", "license": "lgpl-2.1", "size": 24035 }
[ "dk.netarkivet.common.distribute.indexserver.RequestType", "dk.netarkivet.common.exceptions.ArgumentNotValid", "dk.netarkivet.harvester.indexserver.FileBasedCache", "java.util.Set" ]
import dk.netarkivet.common.distribute.indexserver.RequestType; import dk.netarkivet.common.exceptions.ArgumentNotValid; import dk.netarkivet.harvester.indexserver.FileBasedCache; import java.util.Set;
import dk.netarkivet.common.distribute.indexserver.*; import dk.netarkivet.common.exceptions.*; import dk.netarkivet.harvester.indexserver.*; import java.util.*;
[ "dk.netarkivet.common", "dk.netarkivet.harvester", "java.util" ]
dk.netarkivet.common; dk.netarkivet.harvester; java.util;
561,755
@SuppressWarnings("unchecked") public Set<String> getResourcePaths(String parentPath) { ServletContext delegatee = getServletContext(); if (delegatee != null) { return delegatee.getResourcePaths(parentPath); } return null; } /** * Returns the real file ...
@SuppressWarnings(STR) Set<String> function(String parentPath) { ServletContext delegatee = getServletContext(); if (delegatee != null) { return delegatee.getResourcePaths(parentPath); } return null; } /** * Returns the real file inside the web application to which the given path * maps or <code>null</code> if no such ...
/** * Returns a set of names for path entries considered children of the given * path. This method calls on the <code>ServletContext</code> in which the * {@link SlingMainServlet} is running. */
Returns a set of names for path entries considered children of the given path. This method calls on the <code>ServletContext</code> in which the <code>SlingMainServlet</code> is running
getResourcePaths
{ "repo_name": "MRivas-XumaK/slingBuild", "path": "bundles/engine/src/main/java/org/apache/sling/engine/impl/helper/SlingServletContext.java", "license": "apache-2.0", "size": 15983 }
[ "java.util.Set", "javax.servlet.ServletContext", "org.apache.sling.engine.impl.SlingMainServlet" ]
import java.util.Set; import javax.servlet.ServletContext; import org.apache.sling.engine.impl.SlingMainServlet;
import java.util.*; import javax.servlet.*; import org.apache.sling.engine.impl.*;
[ "java.util", "javax.servlet", "org.apache.sling" ]
java.util; javax.servlet; org.apache.sling;
2,689,280
@Override public void createEndState(final Flow flow, final String id, final ViewFactory viewFactory) { try { if (containsFlowState(flow, id)) { logger.debug("Flow {} already contains a definition for state id {}", flow.getId(), id); return; } ...
void function(final Flow flow, final String id, final ViewFactory viewFactory) { try { if (containsFlowState(flow, id)) { logger.debug(STR, flow.getId(), id); return; } final EndState endState = new EndState(flow, id); final Action finalResponseAction = new ViewFactoryActionAdapter(viewFactory); endState.setFinalRespon...
/** * Add end state backed by view. * * @param flow the flow * @param id the id * @param viewFactory the view factory */
Add end state backed by view
createEndState
{ "repo_name": "yisiqi/cas", "path": "cas-server-core-webflow/src/main/java/org/apereo/cas/web/flow/AbstractCasWebflowConfigurer.java", "license": "apache-2.0", "size": 24245 }
[ "org.springframework.webflow.action.ViewFactoryActionAdapter", "org.springframework.webflow.engine.EndState", "org.springframework.webflow.engine.Flow", "org.springframework.webflow.execution.Action", "org.springframework.webflow.execution.ViewFactory" ]
import org.springframework.webflow.action.ViewFactoryActionAdapter; import org.springframework.webflow.engine.EndState; import org.springframework.webflow.engine.Flow; import org.springframework.webflow.execution.Action; import org.springframework.webflow.execution.ViewFactory;
import org.springframework.webflow.action.*; import org.springframework.webflow.engine.*; import org.springframework.webflow.execution.*;
[ "org.springframework.webflow" ]
org.springframework.webflow;
1,744,317
private Set<ConditionsTreeNode> getLeafSet(Set<ConditionsTreeNode> leafSet) { if (mLeft == null && mRight == null) { // if we ended up in a leaf, add ourself and return leafSet.add(this); return leafSet; } // we didn't end up in a leaf if (mLeft !...
Set<ConditionsTreeNode> function(Set<ConditionsTreeNode> leafSet) { if (mLeft == null && mRight == null) { leafSet.add(this); return leafSet; } if (mLeft != null) { mLeft.getLeafSet(leafSet); } if (mRight != null) { mRight.getLeafSet(leafSet); } return leafSet; }
/** * Recursive function to gather all the leaves in the subtree of which * this node is the root. * * @param leafSet Leafset that's being built. * @return Set of leaves being completed. */
Recursive function to gather all the leaves in the subtree of which this node is the root
getLeafSet
{ "repo_name": "Valodim/k-9", "path": "k9mail/src/main/java/com/fsck/k9/search/ConditionsTreeNode.java", "license": "bsd-3-clause", "size": 13514 }
[ "java.util.Set" ]
import java.util.Set;
import java.util.*;
[ "java.util" ]
java.util;
732,308
@Override public void looseUnmarshal(OpenWireFormat wireFormat, Object o, DataInput dataIn) throws IOException { super.looseUnmarshal(wireFormat, o, dataIn); }
void function(OpenWireFormat wireFormat, Object o, DataInput dataIn) throws IOException { super.looseUnmarshal(wireFormat, o, dataIn); }
/** * Un-marshal an object instance from the data input stream * * @param o * the object to un-marshal * @param dataIn * the data input stream to build the object from * @throws IOException */
Un-marshal an object instance from the data input stream
looseUnmarshal
{ "repo_name": "tabish121/OpenWire", "path": "openwire-legacy/src/main/java/io/openwire/codec/v4/OpenWireTempQueueMarshaller.java", "license": "apache-2.0", "size": 3481 }
[ "io.openwire.codec.OpenWireFormat", "java.io.DataInput", "java.io.IOException" ]
import io.openwire.codec.OpenWireFormat; import java.io.DataInput; import java.io.IOException;
import io.openwire.codec.*; import java.io.*;
[ "io.openwire.codec", "java.io" ]
io.openwire.codec; java.io;
1,677,911
public void testRedundancyMgmtInPartitionedRegion() throws Throwable { AdminDistributedSystem adminDS = null; try { final Host host = Host.getHost(0); final VM dataStore0 = host.getVM(0); final VM dataStore1 = host.getVM(1); final VM dataStore2 = host.getVM(2); adminDS = creat...
void function() throws Throwable { AdminDistributedSystem adminDS = null; try { final Host host = Host.getHost(0); final VM dataStore0 = host.getVM(0); final VM dataStore1 = host.getVM(1); final VM dataStore2 = host.getVM(2); adminDS = createAdminDistributedSystem(AlertLevel.WARNING); TestAlertListener tal = TestAlertL...
/** * Confirm that a Partitioned Region with redundantCopies=1 will * refuse creating buckets when there is not enough resources and then * accept creating bucket when new resources have been added. */
Confirm that a Partitioned Region with redundantCopies=1 will refuse creating buckets when there is not enough resources and then accept creating bucket when new resources have been added
testRedundancyMgmtInPartitionedRegion
{ "repo_name": "papicella/snappy-store", "path": "tests/core/src/main/java/com/gemstone/gemfire/internal/cache/PartitionedRegionHARedundancyMgmtDUnitTest.java", "license": "apache-2.0", "size": 33205 }
[ "com.gemstone.gemfire.LogWriter", "com.gemstone.gemfire.admin.AdminDistributedSystem", "com.gemstone.gemfire.admin.Alert", "com.gemstone.gemfire.admin.AlertLevel", "com.gemstone.gemfire.internal.cache.PartitionedRegionSystemMemberRegionListenerDUnitTest" ]
import com.gemstone.gemfire.LogWriter; import com.gemstone.gemfire.admin.AdminDistributedSystem; import com.gemstone.gemfire.admin.Alert; import com.gemstone.gemfire.admin.AlertLevel; import com.gemstone.gemfire.internal.cache.PartitionedRegionSystemMemberRegionListenerDUnitTest;
import com.gemstone.gemfire.*; import com.gemstone.gemfire.admin.*; import com.gemstone.gemfire.internal.cache.*;
[ "com.gemstone.gemfire" ]
com.gemstone.gemfire;
1,057,192
public void setAnimationPlaceholderView(View view) { mAnimationPlaceholderView = view; // The accessibility focus ring also gets clipped by the SurfaceView 'hole', so // make sure the animation placeholder view is in place if touch exploration is on. mIsTouchExplorationEnabled = mAc...
void function(View view) { mAnimationPlaceholderView = view; mIsTouchExplorationEnabled = mAccessibilityManager.isTouchExplorationEnabled(); refreshWillNotDraw(); mTouchExplorationMonitor = new TouchExplorationMonitor(); }
/** * Set the animation placeholder view, which we set to 'draw' during animations, such that * animations aren't clipped by the SurfaceView 'hole'. This can be the SurfaceView itself * or a view directly on top of it. This could be extended to many views if we ever need it. */
Set the animation placeholder view, which we set to 'draw' during animations, such that animations aren't clipped by the SurfaceView 'hole'. This can be the SurfaceView itself or a view directly on top of it. This could be extended to many views if we ever need it
setAnimationPlaceholderView
{ "repo_name": "endlessm/chromium-browser", "path": "ui/android/java/src/org/chromium/ui/base/WindowAndroid.java", "license": "bsd-3-clause", "size": 40520 }
[ "android.view.View" ]
import android.view.View;
import android.view.*;
[ "android.view" ]
android.view;
1,630,101
public void mutateRow(final RowMutations rm) throws IOException;
void function(final RowMutations rm) throws IOException;
/** * Performs multiple mutations atomically on a single row. Currently * {@link Put} and {@link Delete} are supported. * * @param arm object that specifies the set of mutations to perform * atomically * @throws IOException */
Performs multiple mutations atomically on a single row. Currently <code>Put</code> and <code>Delete</code> are supported
mutateRow
{ "repo_name": "indi60/hbase-pmc", "path": "target/hbase-0.94.1/hbase-0.94.1/src/main/java/org/apache/hadoop/hbase/client/HTableInterface.java", "license": "apache-2.0", "size": 19025 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
1,723,505
private static Action schedulePackageAction(User scheduler, Server srvr, RhnSet pkgs, ActionType type, Date earliestAction) { List packages = new LinkedList(); Iterator i = pkgs.getElements().iterator(); while (i.hasNext()) { RhnSetElement rse = (RhnSetElement) i.nex...
static Action function(User scheduler, Server srvr, RhnSet pkgs, ActionType type, Date earliestAction) { List packages = new LinkedList(); Iterator i = pkgs.getElements().iterator(); while (i.hasNext()) { RhnSetElement rse = (RhnSetElement) i.next(); Map row = new HashMap(); row.put(STR, rse.getElement()); row.put(STR,...
/** * Schedules the appropriate package action * @param scheduler User scheduling the action. * @param srvr Server for which the action affects. * @param pkgs The set of packages to be removed. * @param type The Action Type * @param earliestAction Date of earliest action to be executed ...
Schedules the appropriate package action
schedulePackageAction
{ "repo_name": "colloquium/spacewalk", "path": "java/code/src/com/redhat/rhn/manager/action/ActionManager.java", "license": "gpl-2.0", "size": 73734 }
[ "com.redhat.rhn.domain.action.Action", "com.redhat.rhn.domain.action.ActionType", "com.redhat.rhn.domain.rhnset.RhnSet", "com.redhat.rhn.domain.rhnset.RhnSetElement", "com.redhat.rhn.domain.server.Server", "com.redhat.rhn.domain.user.User", "java.util.Date", "java.util.HashMap", "java.util.Iterator"...
import com.redhat.rhn.domain.action.Action; import com.redhat.rhn.domain.action.ActionType; import com.redhat.rhn.domain.rhnset.RhnSet; import com.redhat.rhn.domain.rhnset.RhnSetElement; import com.redhat.rhn.domain.server.Server; import com.redhat.rhn.domain.user.User; import java.util.Date; import java.util.HashMap; ...
import com.redhat.rhn.domain.action.*; import com.redhat.rhn.domain.rhnset.*; import com.redhat.rhn.domain.server.*; import com.redhat.rhn.domain.user.*; import java.util.*;
[ "com.redhat.rhn", "java.util" ]
com.redhat.rhn; java.util;
2,616,926
private void setMediaVisible(){ mPlayImageButton.setVisibility(View.VISIBLE); mNextImageButton.setVisibility(View.VISIBLE); mPrevImageButton.setVisibility(View.VISIBLE); mStopImageButton.setVisibility(View.VISIBLE); mPrevListImageButton.setVisibility(View.VISIBLE); mShuffleImageButton.setVisibility...
void function(){ mPlayImageButton.setVisibility(View.VISIBLE); mNextImageButton.setVisibility(View.VISIBLE); mPrevImageButton.setVisibility(View.VISIBLE); mStopImageButton.setVisibility(View.VISIBLE); mPrevListImageButton.setVisibility(View.VISIBLE); mShuffleImageButton.setVisibility(View.VISIBLE); mRepeatImageButton.s...
/** * Makes 4-way media visible */
Makes 4-way media visible
setMediaVisible
{ "repo_name": "way-peng/android---jamendo", "path": "src/com/teleca/jamendo/activity/PlayerActivity.java", "license": "apache-2.0", "size": 29469 }
[ "android.view.View" ]
import android.view.View;
import android.view.*;
[ "android.view" ]
android.view;
276,802
public static String getPath(final List pathStack, final char separatorChar) { final StringBuffer buffer = new StringBuffer(); final Iterator iter = pathStack.iterator(); if (iter.hasNext()) { buffer.append(iter.next()); } while (iter.hasNext()) { buf...
static String function(final List pathStack, final char separatorChar) { final StringBuffer buffer = new StringBuffer(); final Iterator iter = pathStack.iterator(); if (iter.hasNext()) { buffer.append(iter.next()); } while (iter.hasNext()) { buffer.append(separatorChar); buffer.append(iter.next()); } return buffer.toSt...
/** * Gets path from a <code>List</code> of <code>String</code>s. * * @param pathStack <code>List</code> of <code>String</code>s to be concated as a path. * @param separatorChar <code>char</code> to be used as separator between names in path * @return <code>String</code>, never <code>null</code...
Gets path from a <code>List</code> of <code>String</code>s
getPath
{ "repo_name": "BIORIMP/biorimp", "path": "BIO-RIMP/test_data/code/antapache/src/main/org/apache/tools/ant/util/FileUtils.java", "license": "gpl-2.0", "size": 67096 }
[ "java.util.Iterator", "java.util.List" ]
import java.util.Iterator; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,842,553
// Add a listener for dialog window events addWindowListener(new WindowAdapter() { @Override public void windowClosing(WindowEvent we) { // Send a button press event for the dialog's close/cancel // button. This allows the ...
addWindowListener(new WindowAdapter() { void function(WindowEvent we) { exitButton.doClick(); } }); setResizable(resizable); pack(); setLocationRelativeTo(parent); if (resizable && !minimumSizeSet) { setMinimumSize(new Dimension(getSize().width, getSize().height)); } setVisible(true); return buttonSelected; }
/****************************************************************** * Handle the dialog frame close button press event *****************************************************************/
Handle the dialog frame close button press event
windowClosing
{ "repo_name": "CACTUS-Mission/TRAPSat", "path": "TRAPSat_cFS/cfs/cfe/tools/perfutils-java/src/CFSPerformanceMonitor/CPMDialogHandler.java", "license": "mit", "size": 57337 }
[ "java.awt.Dimension", "java.awt.event.WindowAdapter", "java.awt.event.WindowEvent" ]
import java.awt.Dimension; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent;
import java.awt.*; import java.awt.event.*;
[ "java.awt" ]
java.awt;
1,329,720
void data(boolean outFinished, int streamId, Buffer source, int byteCount) throws IOException;
void data(boolean outFinished, int streamId, Buffer source, int byteCount) throws IOException;
/** * {@code source.length} may be longer than the max length of the variant's data frame. * Implementations must send multiple frames as necessary. * * @param source the buffer to draw bytes from. May be null if byteCount is 0. * @param byteCount must be between 0 and the minimum of {code sour...
source.length may be longer than the max length of the variant's data frame. Implementations must send multiple frames as necessary
data
{ "repo_name": "WeiDianzhao1989/AndroidAppLib", "path": "network/src/main/java/com/koudai/net/kernal/internal/framed/FrameWriter.java", "license": "apache-2.0", "size": 3863 }
[ "com.koudai.net.io.Buffer", "java.io.IOException" ]
import com.koudai.net.io.Buffer; import java.io.IOException;
import com.koudai.net.io.*; import java.io.*;
[ "com.koudai.net", "java.io" ]
com.koudai.net; java.io;
681,079
private int[] createTentativeProlongation(List<Set<Integer>> C, int n) { int[] pt = new int[n]; Arrays.fill(pt, -1); for (int i = 0; i < C.size(); ++i) for (int j : C.get(i)) pt[j] = i; return pt; }
int[] function(List<Set<Integer>> C, int n) { int[] pt = new int[n]; Arrays.fill(pt, -1); for (int i = 0; i < C.size(); ++i) for (int j : C.get(i)) pt[j] = i; return pt; }
/** * Creates the tentative prolongation operator. Since the columns are * all disjoint, and its entries are binary, it is possible to store it * in a single array. Its length equals the number of fine nodes, and * the entries are the indices to the corresponding aggregate (C-set). ...
Creates the tentative prolongation operator. Since the columns are all disjoint, and its entries are binary, it is possible to store it in a single array. Its length equals the number of fine nodes, and the entries are the indices to the corresponding aggregate (C-set)
createTentativeProlongation
{ "repo_name": "jpalves/matrix-toolkits-java", "path": "src/main/java/no/uib/cipr/matrix/sparse/AMG.java", "license": "lgpl-3.0", "size": 28593 }
[ "java.util.Arrays", "java.util.List", "java.util.Set" ]
import java.util.Arrays; import java.util.List; import java.util.Set;
import java.util.*;
[ "java.util" ]
java.util;
25,118
public StringArray getDecoration() { return (StringArray) (_getFeatureValueNc(wrapGetIntCatchException(_FH_decoration))); }
StringArray function() { return (StringArray) (_getFeatureValueNc(wrapGetIntCatchException(_FH_decoration))); }
/** * getter for decoration - gets Decoration applied to the text. For example, [italic, bold, * underline, strikethrough, small, superscript, subscript]. * * @generated * @return value of the feature */
getter for decoration - gets Decoration applied to the text. For example, [italic, bold, underline, strikethrough, small, superscript, subscript]
getDecoration
{ "repo_name": "dstl/baleen", "path": "baleen-uima/src/main/java/uk/gov/dstl/baleen/types/structure/Style.java", "license": "apache-2.0", "size": 6504 }
[ "org.apache.uima.jcas.cas.StringArray" ]
import org.apache.uima.jcas.cas.StringArray;
import org.apache.uima.jcas.cas.*;
[ "org.apache.uima" ]
org.apache.uima;
1,393,396
public void setIterator(final int index, final Iterator iterator) throws IndexOutOfBoundsException { checkLocked(); if ( iterator == null ) { throw new NullPointerException( "Iterator must not be null" ); } this.iteratorChain.set( index, ...
void function(final int index, final Iterator iterator) throws IndexOutOfBoundsException { checkLocked(); if ( iterator == null ) { throw new NullPointerException( STR ); } this.iteratorChain.set( index, iterator ); }
/** * Set the Iterator at the given index * * @param index * index of the Iterator to replace * @param iterator * Iterator to place at the given index * @throws IndexOutOfBoundsException * if index &lt; 0 or index &gt; size() * @th...
Set the Iterator at the given index
setIterator
{ "repo_name": "bobmcwhirter/drools", "path": "drools-core/src/main/java/org/drools/util/IteratorChain.java", "license": "apache-2.0", "size": 10636 }
[ "java.util.Iterator" ]
import java.util.Iterator;
import java.util.*;
[ "java.util" ]
java.util;
311,499
public void setTargetId(Identifier targetId) { this.targetId = targetId; }
void function(Identifier targetId) { this.targetId = targetId; }
/** * Identifier of the target datatype to search for. * * @param targetId * the Identifier. */
Identifier of the target datatype to search for
setTargetId
{ "repo_name": "NABUCCO/org.nabucco.framework.base", "path": "org.nabucco.framework.base.facade.message/src/main/man/org/nabucco/framework/base/facade/message/componentrelation/ComponentRelationSearchRq.java", "license": "epl-1.0", "size": 4590 }
[ "org.nabucco.framework.base.facade.datatype.Identifier" ]
import org.nabucco.framework.base.facade.datatype.Identifier;
import org.nabucco.framework.base.facade.datatype.*;
[ "org.nabucco.framework" ]
org.nabucco.framework;
66,679
private void loadWorlds() { int x = 0; for (String s : WorldSettings.worlds) { for (World w : Bukkit.getWorlds()) { if (s.equalsIgnoreCase(w.getName())) { writeLog("EntityManager is enabled in the world: (" + s + ")"); x++; } } } writeLog("A total of " + x + " world(s) were fou...
void function() { int x = 0; for (String s : WorldSettings.worlds) { for (World w : Bukkit.getWorlds()) { if (s.equalsIgnoreCase(w.getName())) { writeLog(STR + s + ")"); x++; } } } writeLog(STR + x + STR + Bukkit.getWorlds().size() + STR); }
/** * Load worlds. */
Load worlds
loadWorlds
{ "repo_name": "Mitsugaru/EntityManager", "path": "src/net/milkycraft/EntityManager.java", "license": "isc", "size": 11524 }
[ "net.milkycraft.configuration.WorldSettings", "org.bukkit.Bukkit", "org.bukkit.World" ]
import net.milkycraft.configuration.WorldSettings; import org.bukkit.Bukkit; import org.bukkit.World;
import net.milkycraft.configuration.*; import org.bukkit.*;
[ "net.milkycraft.configuration", "org.bukkit" ]
net.milkycraft.configuration; org.bukkit;
2,107,621
@Test public void testCreateActiveParticipant() { String userId = "test1"; String altUserId = "John"; String userName = "Thomas John Smith"; Boolean userIsReq = true; ActiveParticipant expResult = new ActiveParticipant(); expResult.setAlternativeUserID(altUserId)...
void function() { String userId = "test1"; String altUserId = "John"; String userName = STR; Boolean userIsReq = true; ActiveParticipant expResult = new ActiveParticipant(); expResult.setAlternativeUserID(altUserId); expResult.setUserID(userId); expResult.setUserName(userName); ActiveParticipant result = AuditDataTrans...
/** * Test of createActiveParticipant method, of class AuditDataTransformHelper. */
Test of createActiveParticipant method, of class AuditDataTransformHelper
testCreateActiveParticipant
{ "repo_name": "beiyuxinke/CONNECT", "path": "Product/Production/Common/CONNECTCoreLib/src/test/java/gov/hhs/fha/nhinc/transform/audit/AuditDataTransformHelperTest.java", "license": "bsd-3-clause", "size": 13841 }
[ "com.services.nhinc.schema.auditmessage.AuditMessageType", "org.junit.Assert" ]
import com.services.nhinc.schema.auditmessage.AuditMessageType; import org.junit.Assert;
import com.services.nhinc.schema.auditmessage.*; import org.junit.*;
[ "com.services.nhinc", "org.junit" ]
com.services.nhinc; org.junit;
602,523
RedisFuture<List<Object>> role();
RedisFuture<List<Object>> role();
/** * Return the role of the instance in the context of replication. * * @return List&lt;Object&gt; array-reply where the first element is one of master, slave, sentinel and the additional * elements are role-specific. */
Return the role of the instance in the context of replication
role
{ "repo_name": "lettuce-io/lettuce-core", "path": "src/main/java/io/lettuce/core/api/async/BaseRedisAsyncCommands.java", "license": "apache-2.0", "size": 6037 }
[ "io.lettuce.core.RedisFuture", "java.util.List" ]
import io.lettuce.core.RedisFuture; import java.util.List;
import io.lettuce.core.*; import java.util.*;
[ "io.lettuce.core", "java.util" ]
io.lettuce.core; java.util;
79,743
private void emailMe() { SendEMailDialog semd = new SendEMailDialog(this, session,conicalPath); }
void function() { SendEMailDialog semd = new SendEMailDialog(this, session,conicalPath); }
/** * E-mail the information after export */
E-mail the information after export
emailMe
{ "repo_name": "zenovalle/tn5250j", "path": "src/org/tn5250j/spoolfile/SpoolExportWizard.java", "license": "gpl-2.0", "size": 35187 }
[ "org.tn5250j.mailtools.SendEMailDialog" ]
import org.tn5250j.mailtools.SendEMailDialog;
import org.tn5250j.mailtools.*;
[ "org.tn5250j.mailtools" ]
org.tn5250j.mailtools;
1,252,042
@ServiceMethod(returns = ReturnType.SINGLE) public Response<LinkedWorkspaceInner> getWithResponse( String resourceGroupName, String automationAccountName, Context context) { return getWithResponseAsync(resourceGroupName, automationAccountName, context).block(); }
@ServiceMethod(returns = ReturnType.SINGLE) Response<LinkedWorkspaceInner> function( String resourceGroupName, String automationAccountName, Context context) { return getWithResponseAsync(resourceGroupName, automationAccountName, context).block(); }
/** * Retrieve the linked workspace for the account id. * * @param resourceGroupName Name of an Azure Resource group. * @param automationAccountName The name of the automation account. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown ...
Retrieve the linked workspace for the account id
getWithResponse
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/automation/azure-resourcemanager-automation/src/main/java/com/azure/resourcemanager/automation/implementation/LinkedWorkspacesClientImpl.java", "license": "mit", "size": 10456 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.http.rest.Response", "com.azure.core.util.Context", "com.azure.resourcemanager.automation.fluent.models.LinkedWorkspaceInner" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.Response; import com.azure.core.util.Context; import com.azure.resourcemanager.automation.fluent.models.LinkedWorkspaceInner;
import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.core.util.*; import com.azure.resourcemanager.automation.fluent.models.*;
[ "com.azure.core", "com.azure.resourcemanager" ]
com.azure.core; com.azure.resourcemanager;
637,366
static public void updateConfWithFakeGroupMapping (Configuration conf, Map<String, String []> map) { if(map!=null) { MockUnixGroupsMapping.fakeUser2GroupsMap = map; } // fake mapping user to groups conf.setClass(CommonConfigurationKeys.HADOOP_SECURITY_GROUP_MAPPING, DFSTestUtil....
static void function (Configuration conf, Map<String, String []> map) { if(map!=null) { MockUnixGroupsMapping.fakeUser2GroupsMap = map; } conf.setClass(CommonConfigurationKeys.HADOOP_SECURITY_GROUP_MAPPING, DFSTestUtil.MockUnixGroupsMapping.class, ShellBasedUnixGroupsMapping.class); }
/** * update the configuration with fake class for mapping user to groups * @param conf * @param map - user to groups mapping */
update the configuration with fake class for mapping user to groups
updateConfWithFakeGroupMapping
{ "repo_name": "odpi/hadoop", "path": "hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/DFSTestUtil.java", "license": "apache-2.0", "size": 67458 }
[ "java.util.Map", "org.apache.hadoop.conf.Configuration", "org.apache.hadoop.fs.CommonConfigurationKeys", "org.apache.hadoop.security.ShellBasedUnixGroupsMapping" ]
import java.util.Map; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.CommonConfigurationKeys; import org.apache.hadoop.security.ShellBasedUnixGroupsMapping;
import java.util.*; import org.apache.hadoop.conf.*; import org.apache.hadoop.fs.*; import org.apache.hadoop.security.*;
[ "java.util", "org.apache.hadoop" ]
java.util; org.apache.hadoop;
1,705,508
protected List<Message> getMessages(int batchSize, int waitTimeSeconds) throws JMSException { assert batchSize > 0; ReceiveMessageRequest receiveMessageRequest = new ReceiveMessageRequest(queueUrl) .withMaxNumberOfMessages(batchSize) ...
List<Message> function(int batchSize, int waitTimeSeconds) throws JMSException { assert batchSize > 0; ReceiveMessageRequest receiveMessageRequest = new ReceiveMessageRequest(queueUrl) .withMaxNumberOfMessages(batchSize) .withAttributeNames(ALL) .withMessageAttributeNames(ALL) .withWaitTimeSeconds(waitTimeSeconds); if ...
/** * Call <code>receiveMessage</code> with the given wait time. */
Call <code>receiveMessage</code> with the given wait time
getMessages
{ "repo_name": "awslabs/amazon-sqs-java-messaging-lib", "path": "src/main/java/com/amazon/sqs/javamessaging/SQSMessageConsumerPrefetch.java", "license": "apache-2.0", "size": 23749 }
[ "com.amazonaws.services.sqs.model.Message", "com.amazonaws.services.sqs.model.ReceiveMessageRequest", "com.amazonaws.services.sqs.model.ReceiveMessageResult", "java.util.List", "java.util.UUID", "javax.jms.JMSException" ]
import com.amazonaws.services.sqs.model.Message; import com.amazonaws.services.sqs.model.ReceiveMessageRequest; import com.amazonaws.services.sqs.model.ReceiveMessageResult; import java.util.List; import java.util.UUID; import javax.jms.JMSException;
import com.amazonaws.services.sqs.model.*; import java.util.*; import javax.jms.*;
[ "com.amazonaws.services", "java.util", "javax.jms" ]
com.amazonaws.services; java.util; javax.jms;
1,987,973
public ConnectionAnchor getSourceConnectionAnchor(Request request) { // TODO: Translate point to figure, call other method return null; }
ConnectionAnchor function(Request request) { return null; }
/** * Returns the connection anchor of a source connection which * is at the given point. * * @return ConnectionAnchor. */
Returns the connection anchor of a source connection which is at the given point
getSourceConnectionAnchor
{ "repo_name": "Drifftr/devstudio-tooling-bps", "path": "plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/editparts/ElseIfEditPart.java", "license": "apache-2.0", "size": 11659 }
[ "org.eclipse.draw2d.ConnectionAnchor", "org.eclipse.gef.Request" ]
import org.eclipse.draw2d.ConnectionAnchor; import org.eclipse.gef.Request;
import org.eclipse.draw2d.*; import org.eclipse.gef.*;
[ "org.eclipse.draw2d", "org.eclipse.gef" ]
org.eclipse.draw2d; org.eclipse.gef;
778,157
public Settings getNodeSettings() { return nodeSettings; }
Settings function() { return nodeSettings; }
/** * Returns the node settings. The settings returned from {@link #getSettings()} are a merged version of the * index settings and the node settings where node settings are overwritten by index settings. */
Returns the node settings. The settings returned from <code>#getSettings()</code> are a merged version of the index settings and the node settings where node settings are overwritten by index settings
getNodeSettings
{ "repo_name": "jprante/elasticsearch", "path": "core/src/main/java/org/elasticsearch/index/IndexSettings.java", "license": "apache-2.0", "size": 27296 }
[ "org.elasticsearch.common.settings.Settings" ]
import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.common.settings.*;
[ "org.elasticsearch.common" ]
org.elasticsearch.common;
662,429
public static String insertItem(String playlistId, String videoId) throws IOException { // Define a resourceId that identifies the video being added to the // playlist. ResourceId resourceId = new ResourceId(); resourceId.setKind("youtube#video"); resourceId.setVideoId(videoId); // Set fields includ...
static String function(String playlistId, String videoId) throws IOException { ResourceId resourceId = new ResourceId(); resourceId.setKind(STR); resourceId.setVideoId(videoId); PlaylistItemSnippet playlistItemSnippet = new PlaylistItemSnippet(); playlistItemSnippet.setTitle(STR + Calendar.getInstance().getTime()); pla...
/** * Create a playlist item with the specified video ID and add it to the * specified playlist. * * @param playlistId * assign to newly created playlistitem * @param videoId * YouTube video id to add to playlistitem * @return The ID that YouTube uses to uniquely identify the play...
Create a playlist item with the specified video ID and add it to the specified playlist
insertItem
{ "repo_name": "KurentoLegacy/kurento-media-framework", "path": "kmf-samples/kmf-content-demo/src/main/java/com/kurento/demo/cpbrazil/youtube/Playlists.java", "license": "lgpl-2.1", "size": 4663 }
[ "com.google.api.services.youtube.YouTube", "com.google.api.services.youtube.model.PlaylistItem", "com.google.api.services.youtube.model.PlaylistItemSnippet", "com.google.api.services.youtube.model.ResourceId", "java.io.IOException", "java.util.Calendar" ]
import com.google.api.services.youtube.YouTube; import com.google.api.services.youtube.model.PlaylistItem; import com.google.api.services.youtube.model.PlaylistItemSnippet; import com.google.api.services.youtube.model.ResourceId; import java.io.IOException; import java.util.Calendar;
import com.google.api.services.youtube.*; import com.google.api.services.youtube.model.*; import java.io.*; import java.util.*;
[ "com.google.api", "java.io", "java.util" ]
com.google.api; java.io; java.util;
2,076,379
public int numColumnsInFamily(final byte[] key, final byte[] family) { final Bytes.ByteMap<Bytes.ByteMap<TreeMap<Long, byte[]>>> row = storage.get(key); if (row == null) { return -1; } final Bytes.ByteMap<TreeMap<Long, byte[]>> cf = row.get(family); if (cf == null) { return -1...
int function(final byte[] key, final byte[] family) { final Bytes.ByteMap<Bytes.ByteMap<TreeMap<Long, byte[]>>> row = storage.get(key); if (row == null) { return -1; } final Bytes.ByteMap<TreeMap<Long, byte[]>> cf = row.get(family); if (cf == null) { return -1; } return cf.size(); }
/** * Return the total number of columns for a specific row and family * @param key The row to search for * @param family The column family to search for * @return -1 if the row did not exist, otherwise the number of columns. */
Return the total number of columns for a specific row and family
numColumnsInFamily
{ "repo_name": "kuake/myOpenTsdb", "path": "test/storage/MockBase.java", "license": "gpl-3.0", "size": 38497 }
[ "java.util.TreeMap", "org.hbase.async.Bytes" ]
import java.util.TreeMap; import org.hbase.async.Bytes;
import java.util.*; import org.hbase.async.*;
[ "java.util", "org.hbase.async" ]
java.util; org.hbase.async;
712,100
protected void handleModCommands( Element contextNode, Element node ) { for ( Element cmdNode : node.getChildren() ) { boolean handled = false; if ( cmdNode.getNamespace().equals( modNS ) ) { // Handle nested finds. List<Element> matchedNodes = handleModFind( contextNode, cmdNode ); if ( match...
void function( Element contextNode, Element node ) { for ( Element cmdNode : node.getChildren() ) { boolean handled = false; if ( cmdNode.getNamespace().equals( modNS ) ) { List<Element> matchedNodes = handleModFind( contextNode, cmdNode ); if ( matchedNodes != null ) { handled = true; for ( Element matchedNode : match...
/** * Performs child mod-commands under node, against contextNode. * * TODO: Maybe have handleModCommand() returning null when unrecognized, * or an object with flags to continue or stop looping commands at * contextNode (e.g., halting after removeTag). */
Performs child mod-commands under node, against contextNode. or an object with flags to continue or stop looping commands at contextNode (e.g., halting after removeTag)
handleModCommands
{ "repo_name": "eric-stanley/Slipstream-Mod-Manager", "path": "src/main/java/net/vhati/modmanager/core/XMLPatcher.java", "license": "gpl-2.0", "size": 20949 }
[ "java.util.List", "org.jdom2.Attribute", "org.jdom2.Element" ]
import java.util.List; import org.jdom2.Attribute; import org.jdom2.Element;
import java.util.*; import org.jdom2.*;
[ "java.util", "org.jdom2" ]
java.util; org.jdom2;
1,156,285
@Test public void testErrorCount() { MessageMap testMap = new MessageMap(); testMap.putError("accountNbr", RiceKeyConstants.ERROR_INACTIVE); assertTrue(testMap.getErrorCount() == 1); testMap.putError("accountNbr", RiceKeyConstants.ERROR_INVALID_FORMAT); assertTrue(testMap.getE...
@Test void function() { MessageMap testMap = new MessageMap(); testMap.putError(STR, RiceKeyConstants.ERROR_INACTIVE); assertTrue(testMap.getErrorCount() == 1); testMap.putError(STR, RiceKeyConstants.ERROR_INVALID_FORMAT); assertTrue(testMap.getErrorCount() == 2); testMap.putError(STR, RiceKeyConstants.ERROR_INVALID_FO...
/** * Test all errors are getting added and counted correctly. */
Test all errors are getting added and counted correctly
testErrorCount
{ "repo_name": "bhutchinson/rice", "path": "rice-framework/krad-app-framework/src/test/java/org/kuali/rice/krad/util/MessageMapTest.java", "license": "apache-2.0", "size": 17538 }
[ "org.junit.Assert", "org.junit.Test", "org.kuali.rice.core.api.util.RiceKeyConstants" ]
import org.junit.Assert; import org.junit.Test; import org.kuali.rice.core.api.util.RiceKeyConstants;
import org.junit.*; import org.kuali.rice.core.api.util.*;
[ "org.junit", "org.kuali.rice" ]
org.junit; org.kuali.rice;
267,745
private void pushBack(int num) throws IOException { if (debug) { System.out.println("pushing back " + num + " bytes"); } cbLock.lock(); try { iis.seek(iis.getStreamPosition()-num); // The buffer is clear after this, so no need to set haveSeeked. ...
void function(int num) throws IOException { if (debug) { System.out.println(STR + num + STR); } cbLock.lock(); try { iis.seek(iis.getStreamPosition()-num); } finally { cbLock.unlock(); } }
/** * Push back the given number of bytes to the input stream. * Called by the native code at the end of each image so * that the next one can be identified from Java. */
Push back the given number of bytes to the input stream. Called by the native code at the end of each image so that the next one can be identified from Java
pushBack
{ "repo_name": "openjdk/jdk8u", "path": "jdk/src/share/classes/com/sun/imageio/plugins/jpeg/JPEGImageReader.java", "license": "gpl-2.0", "size": 65260 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
1,905,936
public ImmutableMap<String, Attribute> getAttributes() { return attributes; }
ImmutableMap<String, Attribute> function() { return attributes; }
/** * Returns the attributes of the aspect in the form of a String -&gt; {@link Attribute} map. * * <p>All attributes are either implicit or late-bound. */
Returns the attributes of the aspect in the form of a String -&gt; <code>Attribute</code> map. All attributes are either implicit or late-bound
getAttributes
{ "repo_name": "hermione521/bazel", "path": "src/main/java/com/google/devtools/build/lib/packages/AspectDefinition.java", "license": "apache-2.0", "size": 15921 }
[ "com.google.common.collect.ImmutableMap" ]
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.*;
[ "com.google.common" ]
com.google.common;
2,558,391
static MessageType mergeInto(MessageType toMerge, MessageType mergedSchema, boolean strict) { if (mergedSchema == null) { return toMerge; } return mergedSchema.union(toMerge, strict); }
static MessageType mergeInto(MessageType toMerge, MessageType mergedSchema, boolean strict) { if (mergedSchema == null) { return toMerge; } return mergedSchema.union(toMerge, strict); }
/** * will return the result of merging toMerge into mergedSchema * @param toMerge the schema to merge into mergedSchema * @param mergedSchema the schema to append the fields to * @param strict should schema primitive types match * @return the resulting schema */
will return the result of merging toMerge into mergedSchema
mergeInto
{ "repo_name": "rdblue/parquet-mr", "path": "parquet-hadoop/src/main/java/org/apache/parquet/hadoop/ParquetFileWriter.java", "license": "apache-2.0", "size": 34129 }
[ "org.apache.parquet.schema.MessageType" ]
import org.apache.parquet.schema.MessageType;
import org.apache.parquet.schema.*;
[ "org.apache.parquet" ]
org.apache.parquet;
2,859,364
public Transfer transfersIdGet(Long id, String xProgrammeKey, String authorization, String xCallref) throws ApiException { ApiResponse<Transfer> resp = transfersIdGetWithHttpInfo(id, xProgrammeKey, authorization, xCallref); return resp.getData(); }
Transfer function(Long id, String xProgrammeKey, String authorization, String xCallref) throws ApiException { ApiResponse<Transfer> resp = transfersIdGetWithHttpInfo(id, xProgrammeKey, authorization, xCallref); return resp.getData(); }
/** * * Retrieve the transfer transaction identified by the given ID. * @param id The transfer transaction identified by the given ID. (required) * @param xProgrammeKey This identifies your tenant and programme within OPE. The typical format is &#x60;tenantId|programmeId&#x60;, for example &#x60;te...
Retrieve the transfer transaction identified by the given ID
transfersIdGet
{ "repo_name": "ixaris/ope-applicationclients", "path": "java-client/src/main/java/com/ixaris/ope/applications/client/api/TransfersApi.java", "license": "mit", "size": 46041 }
[ "com.ixaris.ope.applications.client.ApiException", "com.ixaris.ope.applications.client.ApiResponse", "com.ixaris.ope.applications.client.model.Transfer" ]
import com.ixaris.ope.applications.client.ApiException; import com.ixaris.ope.applications.client.ApiResponse; import com.ixaris.ope.applications.client.model.Transfer;
import com.ixaris.ope.applications.client.*; import com.ixaris.ope.applications.client.model.*;
[ "com.ixaris.ope" ]
com.ixaris.ope;
1,319,938
Connection openConnection() throws SQLException;
Connection openConnection() throws SQLException;
/** * Opens a new JDBC {@link Connection} to this store. * * @throws UnsupportedOperationException if this store doesn't support JDBC */
Opens a new JDBC <code>Connection</code> to this store
openConnection
{ "repo_name": "sonatype/nexus-public", "path": "components/nexus-datastore-api/src/main/java/org/sonatype/nexus/datastore/api/DataStore.java", "license": "epl-1.0", "size": 2910 }
[ "java.sql.Connection", "java.sql.SQLException" ]
import java.sql.Connection; import java.sql.SQLException;
import java.sql.*;
[ "java.sql" ]
java.sql;
101,811
public Stream<DomsItem> getReadyForManual(String deliveryFilter) { return repository.query(domsModule.providesWorkToDoQuerySpecification( pastEvents, thisEvent, "", itemType), false) .filter(ts -> ts.getPath().contains(deliveryFilter)); }
Stream<DomsItem> function(String deliveryFilter) { return repository.query(domsModule.providesWorkToDoQuerySpecification( pastEvents, thisEvent, "", itemType), false) .filter(ts -> ts.getPath().contains(deliveryFilter)); }
/** * Get a list of deliveries, which are ready for manual inspections * * @param deliveryFilter * @return */
Get a list of deliveries, which are ready for manual inspections
getReadyForManual
{ "repo_name": "statsbiblioteket/digital-pligtaflevering-aviser-tools", "path": "tools/dpa-manualcontrol/src/main/java/org/statsbiblioteket/digital_pligtaflevering_aviser/ui/datamodel/serializers/DeliveryFedoraCommunication.java", "license": "apache-2.0", "size": 14786 }
[ "dk.statsbiblioteket.digital_pligtaflevering_aviser.doms.DomsItem", "java.util.stream.Stream" ]
import dk.statsbiblioteket.digital_pligtaflevering_aviser.doms.DomsItem; import java.util.stream.Stream;
import dk.statsbiblioteket.digital_pligtaflevering_aviser.doms.*; import java.util.stream.*;
[ "dk.statsbiblioteket.digital_pligtaflevering_aviser", "java.util" ]
dk.statsbiblioteket.digital_pligtaflevering_aviser; java.util;
155,586
public static GridLayout createDetailsGridLayout( boolean makeColumnsEqualWidth, int numColumns ) { GridLayout layout = new GridLayout(); layout.marginHeight = 0; layout.marginWidth = 0; layout.marginTop = 0; layout.marginBottom = 0; int marginLeft = 20; ma...
static GridLayout function( boolean makeColumnsEqualWidth, int numColumns ) { GridLayout layout = new GridLayout(); layout.marginHeight = 0; layout.marginWidth = 0; layout.marginTop = 0; layout.marginBottom = 0; int marginLeft = 20; marginLeft = marginLeft / 2; marginLeft--; layout.marginLeft = marginLeft; layout.margi...
/** * Creates the GridLayout used in the details section of the AEP page * * @param makeColumnsEqualWidth * @param numColumns * @return */
Creates the GridLayout used in the details section of the AEP page
createDetailsGridLayout
{ "repo_name": "blackberry/Eclipse-JDE", "path": "net.rim.ejde/src/net/rim/ejde/internal/ui/editors/model/LayoutFactory.java", "license": "epl-1.0", "size": 9038 }
[ "org.eclipse.swt.layout.GridLayout" ]
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.layout.*;
[ "org.eclipse.swt" ]
org.eclipse.swt;
352,918
//----------------------------------------------------------------------- public long add(long instant, long duration, int scalar) { if (duration == 0 || scalar == 0) { return instant; } long add = FieldUtils.safeMultiply(duration, scalar); return FieldUtils.safeAdd(...
long function(long instant, long duration, int scalar) { if (duration == 0 scalar == 0) { return instant; } long add = FieldUtils.safeMultiply(duration, scalar); return FieldUtils.safeAdd(instant, add); }
/** * Adds the duration to the instant, specifying the number of times to add. * * @param instant the instant to add to * @param duration the duration to add * @param scalar the number of times to add * @return the updated instant */
Adds the duration to the instant, specifying the number of times to add
add
{ "repo_name": "aparo/scalajs-joda", "path": "src/main/scala/org/joda/time/chrono/BaseChronology.java", "license": "apache-2.0", "size": 24594 }
[ "org.joda.time.field.FieldUtils" ]
import org.joda.time.field.FieldUtils;
import org.joda.time.field.*;
[ "org.joda.time" ]
org.joda.time;
1,469,638
public static BinaryType typeProxy(BinaryContext ctx, BinaryObjectEx obj) { if (ctx == null) throw new BinaryObjectException("BinaryContext is not set for the object."); String clsName = obj instanceof BinaryEnumObjectImpl ? ((BinaryEnumObjectImpl)obj).className() : null; retur...
static BinaryType function(BinaryContext ctx, BinaryObjectEx obj) { if (ctx == null) throw new BinaryObjectException(STR); String clsName = obj instanceof BinaryEnumObjectImpl ? ((BinaryEnumObjectImpl)obj).className() : null; return new BinaryTypeProxy(ctx, obj.typeId(), clsName); }
/** * Create binary type proxy. * * @param ctx Context. * @param obj Binary object. * @return Binary type proxy. */
Create binary type proxy
typeProxy
{ "repo_name": "irudyak/ignite", "path": "modules/core/src/main/java/org/apache/ignite/internal/binary/BinaryUtils.java", "license": "apache-2.0", "size": 83062 }
[ "org.apache.ignite.binary.BinaryObjectException", "org.apache.ignite.binary.BinaryType" ]
import org.apache.ignite.binary.BinaryObjectException; import org.apache.ignite.binary.BinaryType;
import org.apache.ignite.binary.*;
[ "org.apache.ignite" ]
org.apache.ignite;
497,552
public static boolean mcrypt_module_is_block_mode(Env env, String mode, @Optional String libDir) { try { Mcrypt mcrypt = new Mcrypt(env, "des", mode); return mcrypt.is_block_mode(); } catch (...
static boolean function(Env env, String mode, @Optional String libDir) { try { Mcrypt mcrypt = new Mcrypt(env, "des", mode); return mcrypt.is_block_mode(); } catch (Exception e) { env.error(e); return false; } }
/** * Returns true for block modes */
Returns true for block modes
mcrypt_module_is_block_mode
{ "repo_name": "christianchristensen/resin", "path": "modules/quercus/src/com/caucho/quercus/lib/mcrypt/McryptModule.java", "license": "gpl-2.0", "size": 17158 }
[ "com.caucho.quercus.annotation.Optional", "com.caucho.quercus.env.Env" ]
import com.caucho.quercus.annotation.Optional; import com.caucho.quercus.env.Env;
import com.caucho.quercus.annotation.*; import com.caucho.quercus.env.*;
[ "com.caucho.quercus" ]
com.caucho.quercus;
2,017,087
@Override public void run() { logger.debug("Starting Z-Wave thread: Receive"); try { // Send a NAK to resynchronise communications sendResponse(NAK); // If we want to do a soft reset on the serial interfaces, do it here. // It seems there's no response to this message, so sending it throug...
void function() { logger.debug(STR); try { sendResponse(NAK); if(softReset == true) { try { synchronized (serialPort.getOutputStream()) { SerialMessage resetMsg = new SerialApiSoftResetMessageClass().doRequest(); byte[] buffer = resetMsg.getMessageBuffer(); serialPort.getOutputStream().write(buffer); serialPort.getOutp...
/** * Run method. Runs the actual receiving process. */
Run method. Runs the actual receiving process
run
{ "repo_name": "cschneider/openhab", "path": "bundles/binding/org.openhab.binding.zwave/src/main/java/org/openhab/binding/zwave/internal/protocol/ZWaveController.java", "license": "epl-1.0", "size": 55071 }
[ "java.io.IOException", "java.util.TimerTask", "org.openhab.binding.zwave.internal.protocol.serialmessage.SerialApiSoftResetMessageClass", "org.slf4j.Logger", "org.slf4j.LoggerFactory" ]
import java.io.IOException; import java.util.TimerTask; import org.openhab.binding.zwave.internal.protocol.serialmessage.SerialApiSoftResetMessageClass; import org.slf4j.Logger; import org.slf4j.LoggerFactory;
import java.io.*; import java.util.*; import org.openhab.binding.zwave.internal.protocol.serialmessage.*; import org.slf4j.*;
[ "java.io", "java.util", "org.openhab.binding", "org.slf4j" ]
java.io; java.util; org.openhab.binding; org.slf4j;
1,478,616
@BeforeClass public static void createTestData(){ testTweets = new ArrayList<Tweet>(); testGroup = new TweetGroup("testTitle", "testDescription"); Tweet tweet = new Tweet("1478-12-12 00:12", "testTweet1", "imageUrl1", 5.22f, 6.56f); testTweets.add(tweet); //tweet with imgUrl and geo-location twee...
static void function(){ testTweets = new ArrayList<Tweet>(); testGroup = new TweetGroup(STR, STR); Tweet tweet = new Tweet(STR, STR, STR, 5.22f, 6.56f); testTweets.add(tweet); tweet = new Tweet(STR, STR, STR, 5f, 66f); testTweets.add(tweet); tweet = new Tweet(STR, STR); testTweets.add(tweet); tweet = new Tweet(STR, STR...
/** * create test data */
create test data
createTestData
{ "repo_name": "spinfo/autoChirp", "path": "src/test/java/workflowTests/DBInputOutputTest.java", "license": "epl-1.0", "size": 8125 }
[ "java.util.ArrayList" ]
import java.util.ArrayList;
import java.util.*;
[ "java.util" ]
java.util;
1,230,729
private void mockExistingDatasetExpirationTimes(ApiGcpBigQueryDatasetUpdateParameters params) { mockExistingDataset .setDefaultTableExpirationMs( BigQueryApiConversions.toBqExpirationTime(params.getDefaultTableLifetime())) .setDefaultPartitionExpirationMs( BigQueryApiConver...
void function(ApiGcpBigQueryDatasetUpdateParameters params) { mockExistingDataset .setDefaultTableExpirationMs( BigQueryApiConversions.toBqExpirationTime(params.getDefaultTableLifetime())) .setDefaultPartitionExpirationMs( BigQueryApiConversions.toBqExpirationTime(params.getDefaultPartitionLifetime())); }
/** * Setup the mock return value for fetching the dataset to match the given table/partition * expiration times. */
Setup the mock return value for fetching the dataset to match the given table/partition expiration times
mockExistingDatasetExpirationTimes
{ "repo_name": "DataBiosphere/terra-workspace-manager", "path": "service/src/test/java/bio/terra/workspace/service/resource/controlled/cloud/gcp/bqdataset/UpdateBigQueryDatasetStepTest.java", "license": "bsd-3-clause", "size": 7874 }
[ "bio.terra.workspace.generated.model.ApiGcpBigQueryDatasetUpdateParameters" ]
import bio.terra.workspace.generated.model.ApiGcpBigQueryDatasetUpdateParameters;
import bio.terra.workspace.generated.model.*;
[ "bio.terra.workspace" ]
bio.terra.workspace;
40,454
@PUT @Path("freeze") @Produces("application/json") boolean freezeScheduler(@HeaderParam("sessionid") final String sessionId) throws NotConnectedRestException, PermissionRestException;
@Path(STR) @Produces(STR) boolean freezeScheduler(@HeaderParam(STR) final String sessionId) throws NotConnectedRestException, PermissionRestException;
/** * freezes the scheduler * * @param sessionId * a valid session id * @return true if success, false otherwise * @throws NotConnectedRestException * @throws PermissionRestException */
freezes the scheduler
freezeScheduler
{ "repo_name": "zeineb/scheduling", "path": "rest/rest-api/src/main/java/org/ow2/proactive_grid_cloud_portal/common/SchedulerRestInterface.java", "license": "agpl-3.0", "size": 79398 }
[ "javax.ws.rs.HeaderParam", "javax.ws.rs.Path", "javax.ws.rs.Produces", "org.ow2.proactive_grid_cloud_portal.scheduler.exception.NotConnectedRestException", "org.ow2.proactive_grid_cloud_portal.scheduler.exception.PermissionRestException" ]
import javax.ws.rs.HeaderParam; import javax.ws.rs.Path; import javax.ws.rs.Produces; import org.ow2.proactive_grid_cloud_portal.scheduler.exception.NotConnectedRestException; import org.ow2.proactive_grid_cloud_portal.scheduler.exception.PermissionRestException;
import javax.ws.rs.*; import org.ow2.proactive_grid_cloud_portal.scheduler.exception.*;
[ "javax.ws", "org.ow2.proactive_grid_cloud_portal" ]
javax.ws; org.ow2.proactive_grid_cloud_portal;
1,736,542
private void load() { DefaultTableModel model = (DefaultTableModel) tblCountries.getModel(); int rows=tblCountries.getRowCount(); for(int i=0;i<rows;i++) model.removeRow(0); cTCountries.fillTableAll((DefaultTableModel) tblCountries.getModel()); }
void function() { DefaultTableModel model = (DefaultTableModel) tblCountries.getModel(); int rows=tblCountries.getRowCount(); for(int i=0;i<rows;i++) model.removeRow(0); cTCountries.fillTableAll((DefaultTableModel) tblCountries.getModel()); }
/** * Method that update table with the countries */
Method that update table with the countries
load
{ "repo_name": "CIAT-DAPA/cwr_occurrencesvalidation", "path": "OccurrencesValidation/src/Views/Desktop/FrmCountries.java", "license": "gpl-3.0", "size": 13449 }
[ "javax.swing.table.DefaultTableModel" ]
import javax.swing.table.DefaultTableModel;
import javax.swing.table.*;
[ "javax.swing" ]
javax.swing;
1,949,413
@Override public boolean sameValue (final Object value1, final Object value2) { return ((BigDecimal) value1).compareTo ((BigDecimal) value2) == 0; }
boolean function (final Object value1, final Object value2) { return ((BigDecimal) value1).compareTo ((BigDecimal) value2) == 0; }
/** * BigDecimal.equals considers objects distinct if they have the different * scales but the same mathematical value. Similarly for hashCode. */
BigDecimal.equals considers objects distinct if they have the different scales but the same mathematical value. Similarly for hashCode
sameValue
{ "repo_name": "lsimons/phloc-schematron-standalone", "path": "phloc-schematron/jing/src/main/java/com/thaiopensource/datatype/xsd/DecimalDatatype.java", "license": "apache-2.0", "size": 2038 }
[ "java.math.BigDecimal" ]
import java.math.BigDecimal;
import java.math.*;
[ "java.math" ]
java.math;
2,381,603
public static Class<?>[] resolveRawArguments(Type genericType, Class<?> subType) { Class<?>[] result = null; Class<?> functionalInterface = null; // Handle lambdas if (RESOLVES_LAMBDAS && subType.isSynthetic()) { Class<?> fi = genericType instanceof ParameterizedType ...
static Class<?>[] function(Type genericType, Class<?> subType) { Class<?>[] result = null; Class<?> functionalInterface = null; if (RESOLVES_LAMBDAS && subType.isSynthetic()) { Class<?> fi = genericType instanceof ParameterizedType && ((ParameterizedType) genericType).getRawType() instanceof Class ? (Class<?>) ((Parame...
/** * Returns an array of raw classes representing arguments for the {@code genericType} using type variable information * from the {@code subType}. Arguments for {@code genericType} that cannot be resolved are returned as * {@code Unknown.class}. If no arguments can be resolved then {@code null} is retu...
Returns an array of raw classes representing arguments for the genericType using type variable information from the subType. Arguments for genericType that cannot be resolved are returned as Unknown.class. If no arguments can be resolved then null is returned
resolveRawArguments
{ "repo_name": "cgfork/cgtools", "path": "tools-common/src/main/java/org/cgfork/tools/common/reflect/TypeResolver.java", "license": "apache-2.0", "size": 22844 }
[ "java.lang.reflect.ParameterizedType", "java.lang.reflect.Type", "java.lang.reflect.TypeVariable" ]
import java.lang.reflect.ParameterizedType; import java.lang.reflect.Type; import java.lang.reflect.TypeVariable;
import java.lang.reflect.*;
[ "java.lang" ]
java.lang;
507,808
EAttribute getMove_Speed();
EAttribute getMove_Speed();
/** * Returns the meta object for the attribute '{@link dk.dtu.se2.animation.Move#getSpeed <em>Speed</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for the attribute '<em>Speed</em>'. * @see dk.dtu.se2.animation.Move#getSpeed() * @see #getMove() * @generated */
Returns the meta object for the attribute '<code>dk.dtu.se2.animation.Move#getSpeed Speed</code>'.
getMove_Speed
{ "repo_name": "albertfdp/petrinet", "path": "src/dk.dtu.se2.animation/src/dk/dtu/se2/animation/AnimationPackage.java", "license": "mit", "size": 12159 }
[ "org.eclipse.emf.ecore.EAttribute" ]
import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
2,572,352
public MetaProperty<String> name() { return _name; }
MetaProperty<String> function() { return _name; }
/** * The meta-property for the {@code name} property. * @return the meta-property, not null */
The meta-property for the name property
name
{ "repo_name": "McLeodMoores/starling", "path": "projects/master-db/src/test/java/com/opengamma/masterdb/marketdatasnapshot/MockNamedSnapshot.java", "license": "apache-2.0", "size": 12065 }
[ "org.joda.beans.MetaProperty" ]
import org.joda.beans.MetaProperty;
import org.joda.beans.*;
[ "org.joda.beans" ]
org.joda.beans;
713,492
public boolean tryClick(File patternImage, float similarity) { boolean clickPerformed = false; try { screen.click(new Pattern(patternImage.getAbsolutePath()).similar(similarity), 0); clickPerformed = true; } catch(FindFailed e) { clickPerformed = false; } return clickPerformed; }
boolean function(File patternImage, float similarity) { boolean clickPerformed = false; try { screen.click(new Pattern(patternImage.getAbsolutePath()).similar(similarity), 0); clickPerformed = true; } catch(FindFailed e) { clickPerformed = false; } return clickPerformed; }
/** * Try to click on the image given through parameter. * * @param patternImage * @param similarity * @return True if the pattern is found and click. False otherwise */
Try to click on the image given through parameter
tryClick
{ "repo_name": "mbordas/qualify", "path": "src/main/java/qualify/tools/TestToolSikuli.java", "license": "bsd-3-clause", "size": 38343 }
[ "java.io.File", "org.sikuli.script.FindFailed", "org.sikuli.script.Pattern" ]
import java.io.File; import org.sikuli.script.FindFailed; import org.sikuli.script.Pattern;
import java.io.*; import org.sikuli.script.*;
[ "java.io", "org.sikuli.script" ]
java.io; org.sikuli.script;
60,823
public static MethodDescriptor getMethodDescriptor(Class<?> clazz, String methodName, Class<?>... parameterTypes) { return getBeanDescriptor( clazz ).getConstraintsForMethod( methodName, parameterTypes ); }
static MethodDescriptor function(Class<?> clazz, String methodName, Class<?>... parameterTypes) { return getBeanDescriptor( clazz ).getConstraintsForMethod( methodName, parameterTypes ); }
/** * Returns the {@code MethodDescriptor} for the given method signature in the given class. * * @param clazz The class. * @param methodName The method name. * @param parameterTypes The method parameter types. * * @return an instance of {@code MethodDescriptor} for the given method signature or {@code nu...
Returns the MethodDescriptor for the given method signature in the given class
getMethodDescriptor
{ "repo_name": "shahramgdz/hibernate-validator", "path": "engine/src/test/java/org/hibernate/validator/testutils/ValidatorUtil.java", "license": "apache-2.0", "size": 9143 }
[ "javax.validation.metadata.MethodDescriptor" ]
import javax.validation.metadata.MethodDescriptor;
import javax.validation.metadata.*;
[ "javax.validation" ]
javax.validation;
671,421
@Test public void test410DeleteJack() throws Exception { final String TEST_NAME = "test410DeleteJack"; TestUtil.displayTestTile(this, TEST_NAME); // GIVEN Task task = taskManager.createTaskInstance(TestModelServiceContract.class.getName() + "." + TEST_NAME); OperationResult re...
void function() throws Exception { final String TEST_NAME = STR; TestUtil.displayTestTile(this, TEST_NAME); Task task = taskManager.createTaskInstance(TestModelServiceContract.class.getName() + "." + TEST_NAME); OperationResult result = task.getResult(); assumeAssignmentPolicy(AssignmentPolicyEnforcementType.FULL); dum...
/** * Delete user jack. See that Jack's tasks are still there (although they may be broken) */
Delete user jack. See that Jack's tasks are still there (although they may be broken)
test410DeleteJack
{ "repo_name": "gureronder/midpoint", "path": "model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/TestStrangeCases.java", "license": "apache-2.0", "size": 40419 }
[ "com.evolveum.midpoint.prism.PrismObject", "com.evolveum.midpoint.schema.result.OperationResult", "com.evolveum.midpoint.task.api.Task", "com.evolveum.midpoint.test.IntegrationTestTools", "com.evolveum.midpoint.test.util.TestUtil", "com.evolveum.midpoint.xml.ns._public.common.common_3.AssignmentPolicyEnfo...
import com.evolveum.midpoint.prism.PrismObject; import com.evolveum.midpoint.schema.result.OperationResult; import com.evolveum.midpoint.task.api.Task; import com.evolveum.midpoint.test.IntegrationTestTools; import com.evolveum.midpoint.test.util.TestUtil; import com.evolveum.midpoint.xml.ns._public.common.common_3.Ass...
import com.evolveum.midpoint.prism.*; import com.evolveum.midpoint.schema.result.*; import com.evolveum.midpoint.task.api.*; import com.evolveum.midpoint.test.*; import com.evolveum.midpoint.test.util.*; import com.evolveum.midpoint.xml.ns._public.common.common_3.*; import java.util.*; import org.testng.*;
[ "com.evolveum.midpoint", "java.util", "org.testng" ]
com.evolveum.midpoint; java.util; org.testng;
1,586,120
IUser getUser(int session);
IUser getUser(int session);
/** * Retrieves the user with the given session ID. * @param session An integer ID identifying a user's session. See {@link IUser#getSession()}. * @return A user with the given session, or null if not found. */
Retrieves the user with the given session ID
getUser
{ "repo_name": "Morlunk/Jumble", "path": "src/main/java/com/morlunk/jumble/IJumbleSession.java", "license": "gpl-3.0", "size": 6190 }
[ "com.morlunk.jumble.model.IUser" ]
import com.morlunk.jumble.model.IUser;
import com.morlunk.jumble.model.*;
[ "com.morlunk.jumble" ]
com.morlunk.jumble;
2,192,528
public String getName() { return dict.getString(COSName.NAME); }
String function() { return dict.getString(COSName.NAME); }
/** * Returns the name of the optional content group. * @return the name */
Returns the name of the optional content group
getName
{ "repo_name": "TomRoush/PdfBox-Android", "path": "library/src/main/java/com/tom_roush/pdfbox/pdmodel/graphics/optionalcontent/PDOptionalContentGroup.java", "license": "apache-2.0", "size": 4685 }
[ "com.tom_roush.pdfbox.cos.COSName" ]
import com.tom_roush.pdfbox.cos.COSName;
import com.tom_roush.pdfbox.cos.*;
[ "com.tom_roush.pdfbox" ]
com.tom_roush.pdfbox;
615,703
protected GeoPointFieldMapper.GeoPointFieldType geoPointField(String name) { return new GeoPointFieldMapper.GeoPointFieldType(name); }
GeoPointFieldMapper.GeoPointFieldType function(String name) { return new GeoPointFieldMapper.GeoPointFieldType(name); }
/** * Make a {@linkplain GeoPointFieldMapper.GeoPointFieldType} for a {@code geo_point}. */
Make a GeoPointFieldMapper.GeoPointFieldType for a geo_point
geoPointField
{ "repo_name": "ern/elasticsearch", "path": "test/framework/src/main/java/org/elasticsearch/search/aggregations/AggregatorTestCase.java", "license": "apache-2.0", "size": 56240 }
[ "org.elasticsearch.index.mapper.GeoPointFieldMapper" ]
import org.elasticsearch.index.mapper.GeoPointFieldMapper;
import org.elasticsearch.index.mapper.*;
[ "org.elasticsearch.index" ]
org.elasticsearch.index;
337,750
public void loadAllEggGroups() { // fail safe 0th index of types: eggGroups[0] = new EggGroup("Egg Group"); Cursor cursor = database.query(EGG_GROUPS_TABLE, null, null, null, null, null, null); cursor.moveToFirst(); int eggGroupNameColumn = cursor.getColumnIndex(NAME); ...
void function() { eggGroups[0] = new EggGroup(STR); Cursor cursor = database.query(EGG_GROUPS_TABLE, null, null, null, null, null, null); cursor.moveToFirst(); int eggGroupNameColumn = cursor.getColumnIndex(NAME); int i = 1; do { eggGroups[i] = new EggGroup(cursor.getString(eggGroupNameColumn)); i++; }while(cursor.move...
/** * Loads all the EggGroups into memory. Should be done at program start (during splash screen) */
Loads all the EggGroups into memory. Should be done at program start (during splash screen)
loadAllEggGroups
{ "repo_name": "foxtrot94/ECE-Pokedex", "path": "app/src/main/java/me/quadphase/qpdex/databaseAccess/PokemonFactory.java", "license": "mit", "size": 61549 }
[ "android.database.Cursor", "me.quadphase.qpdex.pokemon.EggGroup" ]
import android.database.Cursor; import me.quadphase.qpdex.pokemon.EggGroup;
import android.database.*; import me.quadphase.qpdex.pokemon.*;
[ "android.database", "me.quadphase.qpdex" ]
android.database; me.quadphase.qpdex;
1,159,399
public int read(byte b[]) throws IOException { return read(b, 0, b.length); }
int function(byte b[]) throws IOException { return read(b, 0, b.length); }
/** * Reads into a byte array data from the socket. * @param b the buffer into which the data is read * @return the actual number of bytes read, -1 is * returned when the end of the stream is reached. * @exception IOException If an I/O error has occurred. */
Reads into a byte array data from the socket
read
{ "repo_name": "mdavid/IKVM.NET-cvs-clone", "path": "openjdk/java/net/SocketInputStream.java", "license": "gpl-2.0", "size": 8003 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
522,994
List<ListenerMethod> getSubscribers(Object event) { if (event != null) { Class<?> eventType = event.getClass(); // loop through the registry to get all subscribed method if (registry.containsKey(eventType)) { return registry.get(eventType); } ...
List<ListenerMethod> getSubscribers(Object event) { if (event != null) { Class<?> eventType = event.getClass(); if (registry.containsKey(eventType)) { return registry.get(eventType); } } return null; }
/** * Get all registered subscriber information for an event. * */
Get all registered subscriber information for an event
getSubscribers
{ "repo_name": "dizitart/jbus", "path": "src/main/java/org/dizitart/jbus/ListenersRegistry.java", "license": "apache-2.0", "size": 12443 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
850,173
@Test @MediumTest @Features.EnableFeatures(PageInfoFeatures.PAGE_INFO_HISTORY_NAME) @ParameterAnnotations.UseMethodParameter(HistorySummaryTestParams.class) public void testHistorySummaryText(long timestamp, String expectedSummary) throws IOException { StubbedHistoryProvider historyProvider ...
@Features.EnableFeatures(PageInfoFeatures.PAGE_INFO_HISTORY_NAME) @ParameterAnnotations.UseMethodParameter(HistorySummaryTestParams.class) void function(long timestamp, String expectedSummary) throws IOException { StubbedHistoryProvider historyProvider = new StubbedHistoryProvider(); historyProvider.addItem(StubbedHist...
/** * Tests the summary string of the history page of the PageInfo UI. */
Tests the summary string of the history page of the PageInfo UI
testHistorySummaryText
{ "repo_name": "chromium/chromium", "path": "chrome/android/javatests/src/org/chromium/chrome/browser/page_info/PageInfoViewTest.java", "license": "bsd-3-clause", "size": 36581 }
[ "androidx.test.espresso.matcher.ViewMatchers", "java.io.IOException", "org.chromium.base.test.params.ParameterAnnotations", "org.chromium.chrome.browser.history.StubbedHistoryProvider", "org.chromium.chrome.test.util.browser.Features", "org.chromium.components.page_info.PageInfoFeatures", "org.chromium....
import androidx.test.espresso.matcher.ViewMatchers; import java.io.IOException; import org.chromium.base.test.params.ParameterAnnotations; import org.chromium.chrome.browser.history.StubbedHistoryProvider; import org.chromium.chrome.test.util.browser.Features; import org.chromium.components.page_info.PageInfoFeatures; ...
import androidx.test.espresso.matcher.*; import java.io.*; import org.chromium.base.test.params.*; import org.chromium.chrome.browser.history.*; import org.chromium.chrome.test.util.browser.*; import org.chromium.components.page_info.*; import org.chromium.ui.test.util.*;
[ "androidx.test", "java.io", "org.chromium.base", "org.chromium.chrome", "org.chromium.components", "org.chromium.ui" ]
androidx.test; java.io; org.chromium.base; org.chromium.chrome; org.chromium.components; org.chromium.ui;
2,626,564
protected UResourceBundle handleGet(int index, HashMap<String, String> table, UResourceBundle requested) { return null; }
UResourceBundle function(int index, HashMap<String, String> table, UResourceBundle requested) { return null; }
/** * {@icu} Actual worker method for fetching a resource based on the given index. * Sub classes must override this method if they support arrays of resources. * @param index the index of the resource to be fetched * @param table hashtable object to hold references of resources already seen * ...
Actual worker method for fetching a resource based on the given index. Sub classes must override this method if they support arrays of resources
handleGet
{ "repo_name": "UweTrottmann/QuickDic-Dictionary", "path": "jars/icu4j-4_8_1_1/main/classes/core/src/com/ibm/icu/util/UResourceBundle.java", "license": "apache-2.0", "size": 41392 }
[ "java.util.HashMap" ]
import java.util.HashMap;
import java.util.*;
[ "java.util" ]
java.util;
1,363,748
protected static Widget getAssociatedWidget(Element e) { try { EventListener listener = DOM.getEventListener((com.google.gwt.user.client.Element) e); // No listener attached to the element, so no widget exist for this element if (listener == null) { return null; } if (listene...
static Widget function(Element e) { try { EventListener listener = DOM.getEventListener((com.google.gwt.user.client.Element) e); if (listener == null) { return null; } if (listener instanceof Widget) { return (Widget) listener; } else if (listener instanceof EventsListener) { EventsListener gQueryListener = (EventsList...
/** * We will use the fact as GWT use the widget itself as EventListener ! If no Widget associated * with the element, this method returns null. */
We will use the fact as GWT use the widget itself as EventListener ! If no Widget associated with the element, this method returns null
getAssociatedWidget
{ "repo_name": "manolo/gquery", "path": "gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java", "license": "mit", "size": 164596 }
[ "com.google.gwt.dom.client.Element", "com.google.gwt.query.client.plugins.events.EventsListener", "com.google.gwt.user.client.DOM", "com.google.gwt.user.client.EventListener", "com.google.gwt.user.client.ui.Widget" ]
import com.google.gwt.dom.client.Element; import com.google.gwt.query.client.plugins.events.EventsListener; import com.google.gwt.user.client.DOM; import com.google.gwt.user.client.EventListener; import com.google.gwt.user.client.ui.Widget;
import com.google.gwt.dom.client.*; import com.google.gwt.query.client.plugins.events.*; import com.google.gwt.user.client.*; import com.google.gwt.user.client.ui.*;
[ "com.google.gwt" ]
com.google.gwt;
1,162,088
@Test(expected = NullPointerException.class) public void testConstructionWithNullSubstring() { new ForbidSubStr(new String[] { null }); }
@Test(expected = NullPointerException.class) void function() { new ForbidSubStr(new String[] { null }); }
/** * Tests construction with a null array (should throw an Exception). */
Tests construction with a null array (should throw an Exception)
testConstructionWithNullSubstring
{ "repo_name": "liwei5365/super-csv", "path": "super-csv/src/test/java/org/supercsv/cellprocessor/constraint/ForbidSubStrTest.java", "license": "apache-2.0", "size": 4633 }
[ "org.junit.Test" ]
import org.junit.Test;
import org.junit.*;
[ "org.junit" ]
org.junit;
1,592,044
public Map<String, I_CmsFormatterBean> getFormatterSelection( String containerType, int containerWidth, boolean allowNested) { Map<String, I_CmsFormatterBean> result = new LinkedHashMap<String, I_CmsFormatterBean>(); boolean hasSchemaFormatter = false; for (I_CmsForm...
Map<String, I_CmsFormatterBean> function( String containerType, int containerWidth, boolean allowNested) { Map<String, I_CmsFormatterBean> result = new LinkedHashMap<String, I_CmsFormatterBean>(); boolean hasSchemaFormatter = false; for (I_CmsFormatterBean formatter : Collections2.filter(m_allFormatters, new MatchesTyp...
/** * Returns the formatters available for selection for the given container type and width.<p> * * @param containerType the container type * @param containerWidth the container width * @param allowNested if nested containers are allowed * * @return the list of available formatter...
Returns the formatters available for selection for the given container type and width
getFormatterSelection
{ "repo_name": "sbonoc/opencms-core", "path": "src/org/opencms/xml/containerpage/CmsFormatterConfiguration.java", "license": "lgpl-2.1", "size": 19834 }
[ "com.google.common.collect.Collections2", "java.util.LinkedHashMap", "java.util.Map", "org.opencms.ade.containerpage.shared.CmsFormatterConfig" ]
import com.google.common.collect.Collections2; import java.util.LinkedHashMap; import java.util.Map; import org.opencms.ade.containerpage.shared.CmsFormatterConfig;
import com.google.common.collect.*; import java.util.*; import org.opencms.ade.containerpage.shared.*;
[ "com.google.common", "java.util", "org.opencms.ade" ]
com.google.common; java.util; org.opencms.ade;
257,171
public static String extractNodeStyleFromGraphics(PNComponent type, NodeGraphics nodeGraphics, AnnotationGraphics annotationGraphics) throws PropertyException, IOException { Validate.notNull(nodeGraphics); Validate.notNull(annotationGraphics); Hashtable<String, Object> style = new Hashtable<String, Object>(...
static String function(PNComponent type, NodeGraphics nodeGraphics, AnnotationGraphics annotationGraphics) throws PropertyException, IOException { Validate.notNull(nodeGraphics); Validate.notNull(annotationGraphics); Hashtable<String, Object> style = new Hashtable<String, Object>(); switch (type) { case PLACE: style.pu...
/** * Defines the style of newly introduced (possibly copied!!!) PN nodes.<br> * In case of copied nodes, the annotation- and node-graphics might be non-empty.<br> In case of new nodes without copy, all content must be obtained from EditorProperties. * @param type * @param nodeGraphics * @param annotationGra...
Defines the style of newly introduced (possibly copied!!!) PN nodes. In case of copied nodes, the annotation- and node-graphics might be non-empty
extractNodeStyleFromGraphics
{ "repo_name": "iig-uni-freiburg/WOLFGANG", "path": "src/de/uni/freiburg/iig/telematik/wolfgang/graph/util/MXConstants.java", "license": "bsd-3-clause", "size": 18830 }
[ "de.invation.code.toval.properties.PropertyException", "de.invation.code.toval.validate.Validate", "de.uni.freiburg.iig.telematik.sepia.graphic.netgraphics.AnnotationGraphics", "de.uni.freiburg.iig.telematik.sepia.graphic.netgraphics.NodeGraphics", "de.uni.freiburg.iig.telematik.sepia.graphic.netgraphics.at...
import de.invation.code.toval.properties.PropertyException; import de.invation.code.toval.validate.Validate; import de.uni.freiburg.iig.telematik.sepia.graphic.netgraphics.AnnotationGraphics; import de.uni.freiburg.iig.telematik.sepia.graphic.netgraphics.NodeGraphics; import de.uni.freiburg.iig.telematik.sepia.graphic....
import de.invation.code.toval.properties.*; import de.invation.code.toval.validate.*; import de.uni.freiburg.iig.telematik.sepia.graphic.netgraphics.*; import de.uni.freiburg.iig.telematik.sepia.graphic.netgraphics.attributes.*; import de.uni.freiburg.iig.telematik.wolfgang.properties.view.*; import java.io.*; import j...
[ "de.invation.code", "de.uni.freiburg", "java.io", "java.net", "java.util", "javax.swing" ]
de.invation.code; de.uni.freiburg; java.io; java.net; java.util; javax.swing;
2,281,122
private JMenu createAboutMenu() { final JMenu menu = new JMenu("Help"); final JFrame parent = getParent(); menu.setMnemonic('H'); menu.add(new JMenuItem(new CActionHelp(parent))); menu.add(new JMenuItem(new CActionContextHelp(parent))); menu.addSeparator(); menu.add(new JMenuItem(new CS...
JMenu function() { final JMenu menu = new JMenu("Help"); final JFrame parent = getParent(); menu.setMnemonic('H'); menu.add(new JMenuItem(new CActionHelp(parent))); menu.add(new JMenuItem(new CActionContextHelp(parent))); menu.addSeparator(); menu.add(new JMenuItem(new CStartTutorialAction(parent))); menu.addSeparator(...
/** * Creates the About menu. * * @return The created menu. */
Creates the About menu
createAboutMenu
{ "repo_name": "guiquanz/binnavi", "path": "src/main/java/com/google/security/zynamics/binnavi/Gui/MainWindow/ProjectTree/Nodes/CAbstractMenuBuilder.java", "license": "apache-2.0", "size": 9007 }
[ "com.google.security.zynamics.binnavi.Gui", "javax.swing.JFrame", "javax.swing.JMenu", "javax.swing.JMenuItem" ]
import com.google.security.zynamics.binnavi.Gui; import javax.swing.JFrame; import javax.swing.JMenu; import javax.swing.JMenuItem;
import com.google.security.zynamics.binnavi.*; import javax.swing.*;
[ "com.google.security", "javax.swing" ]
com.google.security; javax.swing;
2,597,789
public static void putString(final String key, final String value) { final Editor editor = getPreferences().edit(); editor.putString(key, value); editor.apply(); }
static void function(final String key, final String value) { final Editor editor = getPreferences().edit(); editor.putString(key, value); editor.apply(); }
/** * Stores a String value. * * @param key The name of the preference to modify. * @param value The new value for the preference. * @see android.content.SharedPreferences.Editor#putString(String, String) */
Stores a String value
putString
{ "repo_name": "Pixplicity/EasyPreferences", "path": "library/src/main/java/com/pixplicity/easyprefs/library/Prefs.java", "license": "apache-2.0", "size": 22380 }
[ "android.content.SharedPreferences" ]
import android.content.SharedPreferences;
import android.content.*;
[ "android.content" ]
android.content;
2,898,874
@Operation(desc = "Create a JMS ConnectionFactory", impact = MBeanOperationInfo.ACTION) void createConnectionFactory(@Parameter(name = "name") String name, @Parameter(name = "ha") boolean ha, @Parameter(name = "useDiscovery", desc = "should we use di...
@Operation(desc = STR, impact = MBeanOperationInfo.ACTION) void createConnectionFactory(@Parameter(name = "name") String name, @Parameter(name = "ha") boolean ha, @Parameter(name = STR, desc = STR) boolean useDiscovery, @Parameter(name = STR, desc = STR) int cfType, @Parameter(name = STR, desc = STR) String connectors,...
/** * Create a JMS ConnectionFactory with the specified name connected to a single live-backup pair of servers. * <br> * The ConnectionFactory is bound to JNDI for all the specified bindings Strings. */
Create a JMS ConnectionFactory with the specified name connected to a single live-backup pair of servers. The ConnectionFactory is bound to JNDI for all the specified bindings Strings
createConnectionFactory
{ "repo_name": "paulgallagher75/activemq-artemis", "path": "artemis-jms-client/src/main/java/org/apache/activemq/artemis/api/jms/management/JMSServerControl.java", "license": "apache-2.0", "size": 24627 }
[ "javax.management.MBeanOperationInfo", "org.apache.activemq.artemis.api.core.management.Operation", "org.apache.activemq.artemis.api.core.management.Parameter" ]
import javax.management.MBeanOperationInfo; import org.apache.activemq.artemis.api.core.management.Operation; import org.apache.activemq.artemis.api.core.management.Parameter;
import javax.management.*; import org.apache.activemq.artemis.api.core.management.*;
[ "javax.management", "org.apache.activemq" ]
javax.management; org.apache.activemq;
2,482,080
public Collection<Partition> getPartitions() { return _partitionMap.values(); }
Collection<Partition> function() { return _partitionMap.values(); }
/** * Get the partitions of this resource * @return {@link Partition} objects */
Get the partitions of this resource
getPartitions
{ "repo_name": "Teino1978-Corp/Teino1978-Corp-helix", "path": "helix-core/src/main/java/org/apache/helix/model/Resource.java", "license": "apache-2.0", "size": 4579 }
[ "java.util.Collection" ]
import java.util.Collection;
import java.util.*;
[ "java.util" ]
java.util;
957,549
List<Tproject> loadOrigManRespProjects(Integer personID, int[] projectStates, List<Integer> exceptProjects);
List<Tproject> loadOrigManRespProjects(Integer personID, int[] projectStates, List<Integer> exceptProjects);
/** * Load the not closed projects where the user has * originator/manager/responsible role for at least one workItem except the * exceptProjects * * @param personID * @param projectStates * @param exceptProjects * @return */
Load the not closed projects where the user has originator/manager/responsible role for at least one workItem except the exceptProjects
loadOrigManRespProjects
{ "repo_name": "trackplus/Genji", "path": "src/main/java/com/trackplus/dao/ProjectDAO.java", "license": "gpl-3.0", "size": 12200 }
[ "com.trackplus.model.Tproject", "java.util.List" ]
import com.trackplus.model.Tproject; import java.util.List;
import com.trackplus.model.*; import java.util.*;
[ "com.trackplus.model", "java.util" ]
com.trackplus.model; java.util;
912,759
public EmptyToken visitEmpty(EditsElement e) throws IOException { return (EmptyToken)visit(tokenizer.read(new EmptyToken(e))); }
EmptyToken function(EditsElement e) throws IOException { return (EmptyToken)visit(tokenizer.read(new EmptyToken(e))); }
/** * Convenience shortcut method to parse a specific token type */
Convenience shortcut method to parse a specific token type
visitEmpty
{ "repo_name": "moreus/hadoop", "path": "hadoop-0.23.10/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/offlineEditsViewer/EditsVisitor.java", "license": "apache-2.0", "size": 6249 }
[ "java.io.IOException", "org.apache.hadoop.hdfs.tools.offlineEditsViewer.Tokenizer" ]
import java.io.IOException; import org.apache.hadoop.hdfs.tools.offlineEditsViewer.Tokenizer;
import java.io.*; import org.apache.hadoop.hdfs.tools.*;
[ "java.io", "org.apache.hadoop" ]
java.io; org.apache.hadoop;
1,226,615
public boolean isSupported(DateTimeFieldType type) { return (indexOf(type) != -1); }
boolean function(DateTimeFieldType type) { return (indexOf(type) != -1); }
/** * Checks whether the field specified is supported by this partial. * * @param type the type to check, may be null which returns false * @return true if the field is supported */
Checks whether the field specified is supported by this partial
isSupported
{ "repo_name": "aparo/scalajs-joda", "path": "src/main/scala/org/joda/time/base/AbstractPartial.java", "license": "apache-2.0", "size": 14959 }
[ "org.joda.time.DateTimeFieldType" ]
import org.joda.time.DateTimeFieldType;
import org.joda.time.*;
[ "org.joda.time" ]
org.joda.time;
2,091,932
@Test void testNullClassCritical() { assertThrows(() -> Verbose.critical(null, "test", "test"), Check.ERROR_NULL); }
void testNullClassCritical() { assertThrows(() -> Verbose.critical(null, "test", "test"), Check.ERROR_NULL); }
/** * Test <code>null</code> class warning. */
Test <code>null</code> class warning
testNullClassCritical
{ "repo_name": "b3dgs/lionengine", "path": "lionengine-core/src/test/java/com/b3dgs/lionengine/VerboseTest.java", "license": "gpl-3.0", "size": 6520 }
[ "com.b3dgs.lionengine.UtilAssert" ]
import com.b3dgs.lionengine.UtilAssert;
import com.b3dgs.lionengine.*;
[ "com.b3dgs.lionengine" ]
com.b3dgs.lionengine;
343,108