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 readFromNBT(NBTTagCompound par1NBTTagCompound) { super.readFromNBT(par1NBTTagCompound); NBTTagList nbttaglist = par1NBTTagCompound.getTagList("Items"); this.furnaceItemStacks = new ItemStack[this.getSizeInventory()]; for (int i = 0; i < nbttaglist.tagCount(); ++i) ...
void function(NBTTagCompound par1NBTTagCompound) { super.readFromNBT(par1NBTTagCompound); NBTTagList nbttaglist = par1NBTTagCompound.getTagList("Items"); this.furnaceItemStacks = new ItemStack[this.getSizeInventory()]; for (int i = 0; i < nbttaglist.tagCount(); ++i) { NBTTagCompound nbttagcompound1 = (NBTTagCompound)nb...
/** * Reads a tile entity from NBT. */
Reads a tile entity from NBT
readFromNBT
{ "repo_name": "Virtuoel/Unreal-1.5.2", "path": "src/minecraft/virtuoel/unreal/tileentity/TileEntityEviscerator.java", "license": "lgpl-3.0", "size": 16283 }
[ "net.minecraft.item.ItemStack", "net.minecraft.nbt.NBTTagCompound", "net.minecraft.nbt.NBTTagList" ]
import net.minecraft.item.ItemStack; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.nbt.NBTTagList;
import net.minecraft.item.*; import net.minecraft.nbt.*;
[ "net.minecraft.item", "net.minecraft.nbt" ]
net.minecraft.item; net.minecraft.nbt;
19,262
private void addVertices() { for(int i=0; i<1000; i++){ String currentVert = "{" + "\"name\":\"11.11.11.11:1111_to_22.22.22.22:" + i + "\"," + "\"_type\":\"vertex\","+ "\"source\":\"test\","+ "\"vertexType\":\"flow_...
void function() { for(int i=0; i<1000; i++){ String currentVert = "{" + "\"name\":\"11.11.11.11:1111_to_22.22.22.22:STR\"," + "\"_type\":\"vertex\","+ "\"source\":\"test\","+ "\"vertexType\":\"flow_STR\STR}"; conn.addVertex(conn.jsonVertToMap(new JSONObject(currentVert))); } }
/** * add 1000 vertices */
add 1000 vertices
addVertices
{ "repo_name": "stucco/graph-db-connection", "path": "src/test/java/gov/pnnl/stucco/dbconnect/orientdb/DBConnectionIndexerTest.java", "license": "mit", "size": 6745 }
[ "org.json.JSONObject" ]
import org.json.JSONObject;
import org.json.*;
[ "org.json" ]
org.json;
1,476,881
private boolean matchesEntityTypeFilter(MetadataReader reader, MetadataReaderFactory readerFactory) throws IOException { if (this.entityTypeFilters != null) { for (TypeFilter filter : this.entityTypeFilters) { if (filter.match(reader, readerFactory)) { return true; } } } return false; }
boolean function(MetadataReader reader, MetadataReaderFactory readerFactory) throws IOException { if (this.entityTypeFilters != null) { for (TypeFilter filter : this.entityTypeFilters) { if (filter.match(reader, readerFactory)) { return true; } } } return false; }
/** * Check whether any of the configured entity type filters matches * the current class descriptor contained in the metadata reader. */
Check whether any of the configured entity type filters matches the current class descriptor contained in the metadata reader
matchesEntityTypeFilter
{ "repo_name": "kingtang/spring-learn", "path": "spring-orm/src/main/java/org/springframework/orm/hibernate3/annotation/AnnotationSessionFactoryBean.java", "license": "gpl-3.0", "size": 9655 }
[ "java.io.IOException", "org.springframework.core.type.classreading.MetadataReader", "org.springframework.core.type.classreading.MetadataReaderFactory", "org.springframework.core.type.filter.TypeFilter" ]
import java.io.IOException; import org.springframework.core.type.classreading.MetadataReader; import org.springframework.core.type.classreading.MetadataReaderFactory; import org.springframework.core.type.filter.TypeFilter;
import java.io.*; import org.springframework.core.type.classreading.*; import org.springframework.core.type.filter.*;
[ "java.io", "org.springframework.core" ]
java.io; org.springframework.core;
307,887
@Test public void testMergingWithCloseTrigger() throws Exception { ReduceFnTester<Integer, Iterable<Integer>, IntervalWindow> tester = ReduceFnTester.nonCombining(Sessions.withGapDuration(Duration.millis(10)), mockTriggerStateMachine, AccumulationMode.DISC...
void function() throws Exception { ReduceFnTester<Integer, Iterable<Integer>, IntervalWindow> tester = ReduceFnTester.nonCombining(Sessions.withGapDuration(Duration.millis(10)), mockTriggerStateMachine, AccumulationMode.DISCARDING_FIRED_PANES, Duration.millis(50), ClosingBehavior.FIRE_IF_NON_EMPTY); tester.injectElemen...
/** * Ensure a closed trigger has its state recorded in the merge result window. */
Ensure a closed trigger has its state recorded in the merge result window
testMergingWithCloseTrigger
{ "repo_name": "wtanaka/beam", "path": "runners/core-java/src/test/java/org/apache/beam/runners/core/ReduceFnRunnerTest.java", "license": "apache-2.0", "size": 72659 }
[ "org.apache.beam.sdk.transforms.windowing.IntervalWindow", "org.apache.beam.sdk.transforms.windowing.Sessions", "org.apache.beam.sdk.transforms.windowing.Window", "org.apache.beam.sdk.values.TimestampedValue", "org.apache.beam.sdk.values.WindowingStrategy", "org.joda.time.Duration", "org.joda.time.Insta...
import org.apache.beam.sdk.transforms.windowing.IntervalWindow; import org.apache.beam.sdk.transforms.windowing.Sessions; import org.apache.beam.sdk.transforms.windowing.Window; import org.apache.beam.sdk.values.TimestampedValue; import org.apache.beam.sdk.values.WindowingStrategy; import org.joda.time.Duration; import...
import org.apache.beam.sdk.transforms.windowing.*; import org.apache.beam.sdk.values.*; import org.joda.time.*; import org.junit.*; import org.mockito.*;
[ "org.apache.beam", "org.joda.time", "org.junit", "org.mockito" ]
org.apache.beam; org.joda.time; org.junit; org.mockito;
943,576
public boolean equals(String pass) { return Arrays.toString(PBKDF2(pass, new String(salt), iterations, hash.length)).equals(Arrays.toString(this.hash)); }
boolean function(String pass) { return Arrays.toString(PBKDF2(pass, new String(salt), iterations, hash.length)).equals(Arrays.toString(this.hash)); }
/** * Compares a string-formatted password with this one using the given salt. * @param pass The password to compare in string form. * @return Whether or not the passwords are the same. */
Compares a string-formatted password with this one using the given salt
equals
{ "repo_name": "YellowLineSoftworks/VIPER-Engine", "path": "src/crypto/Password.java", "license": "bsd-3-clause", "size": 5384 }
[ "java.util.Arrays" ]
import java.util.Arrays;
import java.util.*;
[ "java.util" ]
java.util;
1,328,771
EReference getRuleResolutionInfo_AllInvolvedRules();
EReference getRuleResolutionInfo_AllInvolvedRules();
/** * Returns the meta object for the reference list '{@link anatlyzer.atlext.ATL.RuleResolutionInfo#getAllInvolvedRules <em>All Involved Rules</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for the reference list '<em>All Involved Rules</em>'. * @see anatlyzer.atlext.ATL....
Returns the meta object for the reference list '<code>anatlyzer.atlext.ATL.RuleResolutionInfo#getAllInvolvedRules All Involved Rules</code>'.
getRuleResolutionInfo_AllInvolvedRules
{ "repo_name": "jesusc/anatlyzer", "path": "plugins/anatlyzer.atl.typing/src-gen/anatlyzer/atlext/ATL/ATLPackage.java", "license": "epl-1.0", "size": 222096 }
[ "org.eclipse.emf.ecore.EReference" ]
import org.eclipse.emf.ecore.EReference;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
570,118
ObjectNode instances(List<UiClusterMember> instances) { NodeId local = clusterService.getLocalNode().id(); ObjectNode payload = objectNode(); ArrayNode members = arrayNode(); payload.set("members", members); for (UiClusterMember member : instances) { members.add(...
ObjectNode instances(List<UiClusterMember> instances) { NodeId local = clusterService.getLocalNode().id(); ObjectNode payload = objectNode(); ArrayNode members = arrayNode(); payload.set(STR, members); for (UiClusterMember member : instances) { members.add(json(member, member.id().equals(local))); } return payload; }
/** * Returns a JSON representation of the cluster members (ONOS instances). * * @param instances the instance model objects * @return a JSON representation of the data */
Returns a JSON representation of the cluster members (ONOS instances)
instances
{ "repo_name": "sdnwiselab/onos", "path": "web/gui/src/main/java/org/onosproject/ui/impl/topo/Topo2Jsonifier.java", "license": "apache-2.0", "size": 26082 }
[ "com.fasterxml.jackson.databind.node.ArrayNode", "com.fasterxml.jackson.databind.node.ObjectNode", "java.util.List", "org.onosproject.cluster.NodeId", "org.onosproject.ui.model.topo.UiClusterMember" ]
import com.fasterxml.jackson.databind.node.ArrayNode; import com.fasterxml.jackson.databind.node.ObjectNode; import java.util.List; import org.onosproject.cluster.NodeId; import org.onosproject.ui.model.topo.UiClusterMember;
import com.fasterxml.jackson.databind.node.*; import java.util.*; import org.onosproject.cluster.*; import org.onosproject.ui.model.topo.*;
[ "com.fasterxml.jackson", "java.util", "org.onosproject.cluster", "org.onosproject.ui" ]
com.fasterxml.jackson; java.util; org.onosproject.cluster; org.onosproject.ui;
1,552,597
public void setName2Node(HashMap name2Node) { this.name2Node = name2Node; }
void function(HashMap name2Node) { this.name2Node = name2Node; }
/** * Sets the mapping of full names to nodes. * * @param name2Node * the mapping of full names to nodes */
Sets the mapping of full names to nodes
setName2Node
{ "repo_name": "shitalm/jsignpdf2", "path": "src/main/java/com/lowagie/text/pdf/XfaForm.java", "license": "gpl-2.0", "size": 32977 }
[ "java.util.HashMap" ]
import java.util.HashMap;
import java.util.*;
[ "java.util" ]
java.util;
1,857,464
public final List<Double> getQuantileListValues() { List<Quantile> list = this.getQuantileList(); List<Double> values = null; if(list != null && !list.isEmpty()) { values = new ArrayList<Double>(list.size()); for (Quantile node : quantileList) { ...
final List<Double> function() { List<Quantile> list = this.getQuantileList(); List<Double> values = null; if(list != null && !list.isEmpty()) { values = new ArrayList<Double>(list.size()); for (Quantile node : quantileList) { values.add(node.getValue()); } } return values; }
/** * Gets the quantile list values. * * @return the quantile list values */
Gets the quantile list values
getQuantileListValues
{ "repo_name": "SampleSizeShop/WebServiceCommon", "path": "src/edu/ucdenver/bios/webservice/common/domain/StudyDesign.java", "license": "gpl-2.0", "size": 37979 }
[ "java.util.ArrayList", "java.util.List" ]
import java.util.ArrayList; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
897,654
public static HostAndPort fromParts(String host, int port) { checkArgument(isValidPort(port)); HostAndPort parsedHost = fromString(host); checkArgument(!parsedHost.hasPort()); return new HostAndPort(parsedHost.host, port, parsedHost.hasBracketlessColons); } private static final Pattern BRACKET_PA...
static HostAndPort function(String host, int port) { checkArgument(isValidPort(port)); HostAndPort parsedHost = fromString(host); checkArgument(!parsedHost.hasPort()); return new HostAndPort(parsedHost.host, port, parsedHost.hasBracketlessColons); } private static final Pattern BRACKET_PATTERN = Pattern.compile(STR);
/** * Build a HostAndPort instance from separate host and port values. * * <p>Note: Non-bracketed IPv6 literals are allowed. * Use {@link #requireBracketsForIPv6()} to prohibit these. * * @param host the host string to parse. Must not contain a port number. * @param port a port number from [0..655...
Build a HostAndPort instance from separate host and port values. Note: Non-bracketed IPv6 literals are allowed. Use <code>#requireBracketsForIPv6()</code> to prohibit these
fromParts
{ "repo_name": "user234/setyon-guava-libraries-clone", "path": "guava/src/com/google/common/net/HostAndPort.java", "license": "apache-2.0", "size": 9416 }
[ "com.google.common.base.Preconditions", "java.util.regex.Pattern" ]
import com.google.common.base.Preconditions; import java.util.regex.Pattern;
import com.google.common.base.*; import java.util.regex.*;
[ "com.google.common", "java.util" ]
com.google.common; java.util;
2,791,891
public String getLiquidation() throws EFapsException { if (liquidation == null && instance != null && instance.isValid()) { final QueryBuilder attrQueryBldr = new QueryBuilder(CISales.FundsToBeSettledBalance2FundsToBeSettledReceipt); attrQueryBldr....
String function() throws EFapsException { if (liquidation == null && instance != null && instance.isValid()) { final QueryBuilder attrQueryBldr = new QueryBuilder(CISales.FundsToBeSettledBalance2FundsToBeSettledReceipt); attrQueryBldr.addType(CISales.FundsToBeSettledBalance2IncomingCreditNote); attrQueryBldr.addWhereAt...
/** * Gets the liquidation. * * @return the liquidation * @throws EFapsException on error */
Gets the liquidation
getLiquidation
{ "repo_name": "eFaps/eFapsApp-Sales", "path": "src/main/efaps/ESJP/org/efaps/esjp/sales/report/AccountFundsToBeSettledReport_Base.java", "license": "apache-2.0", "size": 38204 }
[ "org.efaps.admin.dbproperty.DBProperties", "org.efaps.db.AttributeQuery", "org.efaps.db.MultiPrintQuery", "org.efaps.db.QueryBuilder", "org.efaps.esjp.ci.CISales", "org.efaps.util.EFapsException" ]
import org.efaps.admin.dbproperty.DBProperties; import org.efaps.db.AttributeQuery; import org.efaps.db.MultiPrintQuery; import org.efaps.db.QueryBuilder; import org.efaps.esjp.ci.CISales; import org.efaps.util.EFapsException;
import org.efaps.admin.dbproperty.*; import org.efaps.db.*; import org.efaps.esjp.ci.*; import org.efaps.util.*;
[ "org.efaps.admin", "org.efaps.db", "org.efaps.esjp", "org.efaps.util" ]
org.efaps.admin; org.efaps.db; org.efaps.esjp; org.efaps.util;
2,499,499
public List<String> listNames( IMetaStore metastore ) throws MetaStoreException { MetaStoreFactory<NamedCluster> factory = getMetaStoreFactory( metastore ); return factory.getElementNames(); }
List<String> function( IMetaStore metastore ) throws MetaStoreException { MetaStoreFactory<NamedCluster> factory = getMetaStoreFactory( metastore ); return factory.getElementNames(); }
/** * This method returns the list of NamedCluster names in the IMetaStore * * @param metastore the IMetaStore to operate with * @return the list of NamedCluster names (Strings) * @throws MetaStoreException */
This method returns the list of NamedCluster names in the IMetaStore
listNames
{ "repo_name": "bytekast/big-data-plugin", "path": "legacy/src/main/java/org/pentaho/di/core/namedcluster/NamedClusterManager.java", "license": "apache-2.0", "size": 12910 }
[ "java.util.List", "org.pentaho.di.core.namedcluster.model.NamedCluster", "org.pentaho.metastore.api.IMetaStore", "org.pentaho.metastore.api.exceptions.MetaStoreException", "org.pentaho.metastore.persist.MetaStoreFactory" ]
import java.util.List; import org.pentaho.di.core.namedcluster.model.NamedCluster; import org.pentaho.metastore.api.IMetaStore; import org.pentaho.metastore.api.exceptions.MetaStoreException; import org.pentaho.metastore.persist.MetaStoreFactory;
import java.util.*; import org.pentaho.di.core.namedcluster.model.*; import org.pentaho.metastore.api.*; import org.pentaho.metastore.api.exceptions.*; import org.pentaho.metastore.persist.*;
[ "java.util", "org.pentaho.di", "org.pentaho.metastore" ]
java.util; org.pentaho.di; org.pentaho.metastore;
1,453,285
public static boolean isLaunchConfigurationStarted(ILaunchConfiguration configuration) { ILaunchManager launchManager = DebugPlugin.getDefault().getLaunchManager(); ILaunch[] launches = launchManager.getLaunches(); for (int i = 0; i < launches.length; ++i) { ILaunch launch = launches[i]; // System.out.p...
static boolean function(ILaunchConfiguration configuration) { ILaunchManager launchManager = DebugPlugin.getDefault().getLaunchManager(); ILaunch[] launches = launchManager.getLaunches(); for (int i = 0; i < launches.length; ++i) { ILaunch launch = launches[i]; if (!launch.isTerminated() && (launch.getLaunchConfigurati...
/** * Test if the launch configuration is already started. Enumerate all launches * and check by name and non terminated status. * * @param configuration * @return true if already present. */
Test if the launch configuration is already started. Enumerate all launches and check by name and non terminated status
isLaunchConfigurationStarted
{ "repo_name": "gnuarmeclipse/plug-ins", "path": "plugins/ilg.gnumcueclipse.debug.gdbjtag/src/ilg/gnumcueclipse/debug/gdbjtag/DebugUtils.java", "license": "epl-1.0", "size": 23432 }
[ "org.eclipse.debug.core.DebugPlugin", "org.eclipse.debug.core.ILaunch", "org.eclipse.debug.core.ILaunchConfiguration", "org.eclipse.debug.core.ILaunchManager" ]
import org.eclipse.debug.core.DebugPlugin; import org.eclipse.debug.core.ILaunch; import org.eclipse.debug.core.ILaunchConfiguration; import org.eclipse.debug.core.ILaunchManager;
import org.eclipse.debug.core.*;
[ "org.eclipse.debug" ]
org.eclipse.debug;
2,897,736
protected void initView() { mMonthTitlePaint = new Paint(); mMonthTitlePaint.setFakeBoldText(true); mMonthTitlePaint.setAntiAlias(true); mMonthTitlePaint.setTextSize(MONTH_LABEL_TEXT_SIZE); mMonthTitlePaint.setTypeface(Typeface.create(mMonthTitleTypeface, Typeface.BOLD)); mMonthTitlePaint.setColor(mDayTe...
void function() { mMonthTitlePaint = new Paint(); mMonthTitlePaint.setFakeBoldText(true); mMonthTitlePaint.setAntiAlias(true); mMonthTitlePaint.setTextSize(MONTH_LABEL_TEXT_SIZE); mMonthTitlePaint.setTypeface(Typeface.create(mMonthTitleTypeface, Typeface.BOLD)); mMonthTitlePaint.setColor(mDayTextColor); mMonthTitlePain...
/** * Sets up the text and style properties for painting. Override this if you * want to use a different paint. */
Sets up the text and style properties for painting. Override this if you want to use a different paint
initView
{ "repo_name": "MichaelArchangel/ArchangelKit", "path": "materialDateTimePicker/src/main/java/com/wdullaer/materialdatetimepicker/date/MonthView.java", "license": "mit", "size": 26566 }
[ "android.graphics.Paint", "android.graphics.Typeface", "com.wdullaer.materialdatetimepicker.TypefaceHelper" ]
import android.graphics.Paint; import android.graphics.Typeface; import com.wdullaer.materialdatetimepicker.TypefaceHelper;
import android.graphics.*; import com.wdullaer.materialdatetimepicker.*;
[ "android.graphics", "com.wdullaer.materialdatetimepicker" ]
android.graphics; com.wdullaer.materialdatetimepicker;
208,288
public void generate() throws GenerationException { if (resultCollector != null) { log.info("Flushing result collector before report Generation"); resultCollector.flushFile(); } log.debug("Start report generation"); File tmpDir = configuration.getTempDirecto...
void function() throws GenerationException { if (resultCollector != null) { log.info(STR); resultCollector.flushFile(); } log.debug(STR); File tmpDir = configuration.getTempDirectory(); boolean tmpDirCreated = createTempDir(tmpDir); SampleContext sampleContext = new SampleContext(); sampleContext.setWorkingDirectory(tm...
/** * Generate dashboard reports using the data from the specified CSV File. * * @throws GenerationException * when the generation failed */
Generate dashboard reports using the data from the specified CSV File
generate
{ "repo_name": "ra0077/jmeter", "path": "src/core/org/apache/jmeter/report/dashboard/ReportGenerator.java", "license": "apache-2.0", "size": 25617 }
[ "java.io.File", "java.util.Map", "org.apache.jmeter.report.config.ExporterConfiguration", "org.apache.jmeter.report.config.GraphConfiguration", "org.apache.jmeter.report.core.SampleException", "org.apache.jmeter.report.processor.CsvFileSampleSource", "org.apache.jmeter.report.processor.FilterConsumer", ...
import java.io.File; import java.util.Map; import org.apache.jmeter.report.config.ExporterConfiguration; import org.apache.jmeter.report.config.GraphConfiguration; import org.apache.jmeter.report.core.SampleException; import org.apache.jmeter.report.processor.CsvFileSampleSource; import org.apache.jmeter.report.process...
import java.io.*; import java.util.*; import org.apache.jmeter.report.config.*; import org.apache.jmeter.report.core.*; import org.apache.jmeter.report.processor.*;
[ "java.io", "java.util", "org.apache.jmeter" ]
java.io; java.util; org.apache.jmeter;
171,153
@Override public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { if (request.getParameter("goBack") != null) { return mapping.findForward("back"); } ...
ActionForward function(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { if (request.getParameter(STR) != null) { return mapping.findForward("back"); } HttpSession session = request.getSession(); Profile profile = SessionMethods.getProfile(session); Int...
/** * Action to save a bag from the bagUploadConfirm page into the user profile. * @param mapping The ActionMapping used to select this instance * @param form The optional ActionForm bean for this request (if any) * @param request The HTTP request we are processing * @param response The HTTP re...
Action to save a bag from the bagUploadConfirm page into the user profile
execute
{ "repo_name": "drhee/toxoMine", "path": "intermine/web/main/src/org/intermine/web/struts/BagUploadConfirmAction.java", "license": "lgpl-2.1", "size": 4930 }
[ "javax.servlet.http.HttpServletRequest", "javax.servlet.http.HttpServletResponse", "javax.servlet.http.HttpSession", "org.apache.struts.action.ActionForm", "org.apache.struts.action.ActionForward", "org.apache.struts.action.ActionMapping", "org.intermine.api.InterMineAPI", "org.intermine.api.profile.P...
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping; import org.intermine.api.InterMineAPI; import org....
import javax.servlet.http.*; import org.apache.struts.action.*; import org.intermine.api.*; import org.intermine.api.profile.*; import org.intermine.web.logic.session.*;
[ "javax.servlet", "org.apache.struts", "org.intermine.api", "org.intermine.web" ]
javax.servlet; org.apache.struts; org.intermine.api; org.intermine.web;
1,571,519
@Override public void onLoaderReset(Loader<Cursor> loader) { mAdapter.swapCursor(null); }
void function(Loader<Cursor> loader) { mAdapter.swapCursor(null); }
/** * Called when a previously created loader is being reset, and thus * making its data unavailable. * onLoaderReset removes any references this activity had to the loader's data. * * @param loader The Loader that is being reset. */
Called when a previously created loader is being reset, and thus making its data unavailable. onLoaderReset removes any references this activity had to the loader's data
onLoaderReset
{ "repo_name": "aberdean/ud851-Exercises", "path": "Lesson09-ToDo-List/T09.05-Exercise-QueryAllTasks/app/src/main/java/com/example/android/todolist/MainActivity.java", "license": "apache-2.0", "size": 7266 }
[ "android.database.Cursor", "android.support.v4.content.Loader" ]
import android.database.Cursor; import android.support.v4.content.Loader;
import android.database.*; import android.support.v4.content.*;
[ "android.database", "android.support" ]
android.database; android.support;
1,119,968
@Override public void ctableOperations(Operator op, double scalarThat, double scalarThat2, CTableMap resultMap, MatrixBlock resultBlock) { CTable ctable = CTable.getCTableFnObject(); double v2 = scalarThat; double w = scalarThat2; //sparse-unsafe ctable execution //(because input values of 0 are in...
void function(Operator op, double scalarThat, double scalarThat2, CTableMap resultMap, MatrixBlock resultBlock) { CTable ctable = CTable.getCTableFnObject(); double v2 = scalarThat; double w = scalarThat2; for( int i=0; i<rlen; i++ ) for( int j=0; j<clen; j++ ) { double v1 = this.quickGetValue(i, j); ctable.execute(v1,...
/** * D = ctable(A,v2,w) * this &lt;- A; scalar_that &lt;- v2; scalar_that2 &lt;- w; result &lt;- D * * (i1,j1,v1) from input1 (this) * (v2) from sclar_input2 (scalarThat) * (w) from scalar_input3 (scalarThat2) */
D = ctable(A,v2,w) this &lt;- A; scalar_that &lt;- v2; scalar_that2 &lt;- w; result &lt;- D (i1,j1,v1) from input1 (this) (v2) from sclar_input2 (scalarThat) (w) from scalar_input3 (scalarThat2)
ctableOperations
{ "repo_name": "apache/incubator-systemml", "path": "src/main/java/org/apache/sysds/runtime/matrix/data/MatrixBlock.java", "license": "apache-2.0", "size": 196683 }
[ "org.apache.sysds.runtime.functionobjects.CTable", "org.apache.sysds.runtime.matrix.operators.Operator" ]
import org.apache.sysds.runtime.functionobjects.CTable; import org.apache.sysds.runtime.matrix.operators.Operator;
import org.apache.sysds.runtime.functionobjects.*; import org.apache.sysds.runtime.matrix.operators.*;
[ "org.apache.sysds" ]
org.apache.sysds;
29,111
protected void processEvent(AWTEvent e) { if (e instanceof ContainerEvent) processContainerEvent((ContainerEvent) e); else super.processEvent(e); }
void function(AWTEvent e) { if (e instanceof ContainerEvent) processContainerEvent((ContainerEvent) e); else super.processEvent(e); }
/** * Processes the specified event. This method calls * <code>processContainerEvent()</code> if this method is a * <code>ContainerEvent</code>, otherwise it calls the superclass * method. * * @param event The event to be processed. */
Processes the specified event. This method calls <code>processContainerEvent()</code> if this method is a <code>ContainerEvent</code>, otherwise it calls the superclass method
processEvent
{ "repo_name": "aosm/gcc_40", "path": "libjava/java/awt/Container.java", "license": "gpl-2.0", "size": 59564 }
[ "java.awt.event.ContainerEvent" ]
import java.awt.event.ContainerEvent;
import java.awt.event.*;
[ "java.awt" ]
java.awt;
41,708
public void pause(long bytes) { if (bytes == 1) { return; } // TODO: this is purely instantaneous rate; maybe we // should also offer decayed recent history one? final long targetNS = lastNS = lastNS + ((long) (bytes * nsPerByte)); long curNS = System.nanoTime(); if (lastNS...
void function(long bytes) { if (bytes == 1) { return; } final long targetNS = lastNS = lastNS + ((long) (bytes * nsPerByte)); long curNS = System.nanoTime(); if (lastNS < curNS) { lastNS = curNS; } while(true) { final long pauseNS = targetNS - curNS; if (pauseNS > 0) { try { Thread.sleep((int) (pauseNS/1000000), (int) ...
/** Pauses, if necessary, to keep the instantaneous IO * rate at or below the target. NOTE: multiple threads * may safely use this, however the implementation is * not perfectly thread safe but likely in practice this * is harmless (just means in some rare cases the rate * might exceed the targ...
Pauses, if necessary, to keep the instantaneous IO may safely use this, however the implementation is not perfectly thread safe but likely in practice this is harmless (just means in some rare cases the rate might exceed the target). It's best to call this
pause
{ "repo_name": "terrancesnyder/solr-analytics", "path": "lucene/core/src/java/org/apache/lucene/store/RateLimiter.java", "license": "apache-2.0", "size": 3189 }
[ "org.apache.lucene.util.ThreadInterruptedException" ]
import org.apache.lucene.util.ThreadInterruptedException;
import org.apache.lucene.util.*;
[ "org.apache.lucene" ]
org.apache.lucene;
1,403,098
public static void close(@Nullable Connection con) { close(con, null); }
static void function(@Nullable Connection con) { close(con, null); }
/** * Closes the given connection and just logs any exception. * * @param con The {@link java.sql.Connection} to close. */
Closes the given connection and just logs any exception
close
{ "repo_name": "alancnet/artifactory", "path": "storage/db/src/main/java/org/artifactory/storage/db/util/DbUtils.java", "license": "apache-2.0", "size": 8671 }
[ "java.sql.Connection", "javax.annotation.Nullable" ]
import java.sql.Connection; import javax.annotation.Nullable;
import java.sql.*; import javax.annotation.*;
[ "java.sql", "javax.annotation" ]
java.sql; javax.annotation;
545,129
public BaseViewHolder setMax(int viewId, int max) { ProgressBar view = getView(viewId); view.setMax(max); return this; }
BaseViewHolder function(int viewId, int max) { ProgressBar view = getView(viewId); view.setMax(max); return this; }
/** * Sets the range of a ProgressBar to 0...max. * * @param viewId The view id. * @param max The max value of a ProgressBar. * @return The BaseViewHolder for chaining. */
Sets the range of a ProgressBar to 0...max
setMax
{ "repo_name": "lhalcyon/basic-adapter", "path": "library/src/main/java/com/lhalcyon/adapter/base/BaseViewHolder.java", "license": "mit", "size": 13883 }
[ "android.widget.ProgressBar" ]
import android.widget.ProgressBar;
import android.widget.*;
[ "android.widget" ]
android.widget;
1,782,636
public boolean findFieldByName(String name) { if (raw) throw new BinaryObjectException("Failed to read named field because reader is in raw mode."); assert dataStart != start; if (footerLen == 0) return false; if (userType) { int order; ...
boolean function(String name) { if (raw) throw new BinaryObjectException(STR); assert dataStart != start; if (footerLen == 0) return false; if (userType) { int order; if (matching) { int expOrder = matchingOrder++; BinarySchema.Confirmation confirm = schema.confirmOrder(expOrder, name); switch (confirm) { case CONFIRME...
/** * Try finding the field by name. * * @param name Field name. * @return Offset. */
Try finding the field by name
findFieldByName
{ "repo_name": "andrey-kuznetsov/ignite", "path": "modules/core/src/main/java/org/apache/ignite/internal/binary/BinaryReaderExImpl.java", "license": "apache-2.0", "size": 72843 }
[ "org.apache.ignite.binary.BinaryObjectException" ]
import org.apache.ignite.binary.BinaryObjectException;
import org.apache.ignite.binary.*;
[ "org.apache.ignite" ]
org.apache.ignite;
1,130,391
public static Field createListMap(LinkedHashMap<String, Field> v) { return new Field(Type.LIST_MAP, v); }
static Field function(LinkedHashMap<String, Field> v) { return new Field(Type.LIST_MAP, v); }
/** * Creates a <code>LIST_MAP</code> field. The keys of the ordered Map must be of <code>String</code> type and the * values must be of <code>Field</code> type, <code>NULL</code> values are not allowed as key or values. * <p/> * This method performs a deep copy of the ordered Map. * * @param v value....
Creates a <code>LIST_MAP</code> field. The keys of the ordered Map must be of <code>String</code> type and the values must be of <code>Field</code> type, <code>NULL</code> values are not allowed as key or values. This method performs a deep copy of the ordered Map
createListMap
{ "repo_name": "streamsets/datacollector-api", "path": "src/main/java/com/streamsets/pipeline/api/Field.java", "license": "apache-2.0", "size": 23850 }
[ "java.util.LinkedHashMap" ]
import java.util.LinkedHashMap;
import java.util.*;
[ "java.util" ]
java.util;
2,738,360
public SearchResultList findConceptsForSearchCriteria(String terminology, String version, String query, SearchCriteriaList criteria, PfsParameter pfs) throws Exception;
SearchResultList function(String terminology, String version, String query, SearchCriteriaList criteria, PfsParameter pfs) throws Exception;
/** * Find concepts for search criteria. * * @param terminology the terminology * @param version the version * @param query the query * @param criteria the criteria * @param pfs the pfs * @return the search result list * @throws Exception the exception */
Find concepts for search criteria
findConceptsForSearchCriteria
{ "repo_name": "WestCoastInformatics/SNOMED-Terminology-Server", "path": "services/src/main/java/org/ihtsdo/otf/ts/services/ContentService.java", "license": "apache-2.0", "size": 38037 }
[ "org.ihtsdo.otf.ts.helpers.PfsParameter", "org.ihtsdo.otf.ts.helpers.SearchCriteriaList", "org.ihtsdo.otf.ts.helpers.SearchResultList" ]
import org.ihtsdo.otf.ts.helpers.PfsParameter; import org.ihtsdo.otf.ts.helpers.SearchCriteriaList; import org.ihtsdo.otf.ts.helpers.SearchResultList;
import org.ihtsdo.otf.ts.helpers.*;
[ "org.ihtsdo.otf" ]
org.ihtsdo.otf;
784,396
protected byte[] getBytesRepresentationForBatch(int parameterIndex, int commandIndex) throws SQLException { synchronized (checkClosed().getConnectionMutex()) { Object batchedArg = this.batchedArgs.get(commandIndex); if (batchedArg instanceof String) { try { ...
byte[] function(int parameterIndex, int commandIndex) throws SQLException { synchronized (checkClosed().getConnectionMutex()) { Object batchedArg = this.batchedArgs.get(commandIndex); if (batchedArg instanceof String) { try { return (StringUtils.getBytes((String) batchedArg, this.charEncoding)); } catch (UnsupportedEnc...
/** * Get bytes representation for a parameter in a statement batch. * * @param parameterIndex * @param commandIndex * @throws SQLException */
Get bytes representation for a parameter in a statement batch
getBytesRepresentationForBatch
{ "repo_name": "swankjesse/mysql-connector-j", "path": "src/com/mysql/jdbc/PreparedStatement.java", "license": "gpl-2.0", "size": 198268 }
[ "java.io.UnsupportedEncodingException", "java.sql.SQLException" ]
import java.io.UnsupportedEncodingException; import java.sql.SQLException;
import java.io.*; import java.sql.*;
[ "java.io", "java.sql" ]
java.io; java.sql;
2,904,655
@Override protected void addOtherElements(SemanticElement element, RelationshipView view) { List<SemanticElementRelationship> relationships = getRelationships(element); if (relationships == null || relationships.size() == 0) { return; } // top-left corner of first "relationship" Point topLef...
void function(SemanticElement element, RelationshipView view) { List<SemanticElementRelationship> relationships = getRelationships(element); if (relationships == null relationships.size() == 0) { return; } Point topLeft = new Point( m_seShape.getXmax() + s_horizontalGap, m_seShape.getY() + (m_seShape.getHeight() - s_el...
/** Add shapes to show relationships, their semantic element, * the corresponding data type (right to left) * @param toElement * @param point top-left corner of MessageElement * @param shapes */
Add shapes to show relationships, their semantic element, the corresponding data type (right to left)
addOtherElements
{ "repo_name": "MDMI/mdmimapeditor", "path": "org.mdmi.editor/src/org/openhealthtools/mdht/mdmi/editor/map/tools/ViewSemanticElementRelationships.java", "license": "epl-1.0", "size": 5878 }
[ "java.awt.Font", "java.awt.Point", "java.util.List", "org.openhealthtools.mdht.mdmi.editor.common.layout.Link", "org.openhealthtools.mdht.mdmi.editor.common.layout.RelationshipView", "org.openhealthtools.mdht.mdmi.editor.common.layout.Shape", "org.openhealthtools.mdht.mdmi.editor.common.layout.Shapes", ...
import java.awt.Font; import java.awt.Point; import java.util.List; import org.openhealthtools.mdht.mdmi.editor.common.layout.Link; import org.openhealthtools.mdht.mdmi.editor.common.layout.RelationshipView; import org.openhealthtools.mdht.mdmi.editor.common.layout.Shape; import org.openhealthtools.mdht.mdmi.editor.com...
import java.awt.*; import java.util.*; import org.openhealthtools.mdht.mdmi.editor.common.layout.*; import org.openhealthtools.mdht.mdmi.model.*;
[ "java.awt", "java.util", "org.openhealthtools.mdht" ]
java.awt; java.util; org.openhealthtools.mdht;
1,011,128
@Nullable Collection<? extends DBSEntityConstraint> getConstraints(@NotNull DBRProgressMonitor monitor) throws DBException;
Collection<? extends DBSEntityConstraint> getConstraints(@NotNull DBRProgressMonitor monitor) throws DBException;
/** * Gets this entity constraints * @return association list * @throws org.jkiss.dbeaver.DBException on any DB error * @param monitor progress monitor */
Gets this entity constraints
getConstraints
{ "repo_name": "Sargul/dbeaver", "path": "plugins/org.jkiss.dbeaver.model/src/org/jkiss/dbeaver/model/struct/DBSEntity.java", "license": "apache-2.0", "size": 2801 }
[ "java.util.Collection", "org.jkiss.code.NotNull", "org.jkiss.dbeaver.DBException", "org.jkiss.dbeaver.model.runtime.DBRProgressMonitor" ]
import java.util.Collection; import org.jkiss.code.NotNull; import org.jkiss.dbeaver.DBException; import org.jkiss.dbeaver.model.runtime.DBRProgressMonitor;
import java.util.*; import org.jkiss.code.*; import org.jkiss.dbeaver.*; import org.jkiss.dbeaver.model.runtime.*;
[ "java.util", "org.jkiss.code", "org.jkiss.dbeaver" ]
java.util; org.jkiss.code; org.jkiss.dbeaver;
200,099
@Override public Result<K, T> execute(Query<K, T> query) { DynamoDBQuery<K, T> dynamoDBQuery = buildDynamoDBQuery(query); DynamoDBMapper mapper = new DynamoDBMapper(dynamoDBClient); List<T> objList = null; if (DynamoDBQuery.getType().equals(DynamoDBQuery.RANGE_QUERY)) objList = mapper.query(pe...
Result<K, T> function(Query<K, T> query) { DynamoDBQuery<K, T> dynamoDBQuery = buildDynamoDBQuery(query); DynamoDBMapper mapper = new DynamoDBMapper(dynamoDBClient); List<T> objList = null; if (DynamoDBQuery.getType().equals(DynamoDBQuery.RANGE_QUERY)) objList = mapper.query(persistentClass, (DynamoDBQueryExpression)dy...
/** * Executes a query after building a DynamoDB specific query based on the received one */
Executes a query after building a DynamoDB specific query based on the received one
execute
{ "repo_name": "SwathiMystery/gora", "path": "gora-dynamodb/src/main/java/org/apache/gora/dynamodb/store/DynamoDBStore.java", "license": "apache-2.0", "size": 27918 }
[ "com.amazonaws.services.dynamodb.datamodeling.DynamoDBMapper", "com.amazonaws.services.dynamodb.datamodeling.DynamoDBQueryExpression", "com.amazonaws.services.dynamodb.datamodeling.DynamoDBScanExpression", "java.util.List", "org.apache.gora.dynamodb.query.DynamoDBQuery", "org.apache.gora.dynamodb.query.Dy...
import com.amazonaws.services.dynamodb.datamodeling.DynamoDBMapper; import com.amazonaws.services.dynamodb.datamodeling.DynamoDBQueryExpression; import com.amazonaws.services.dynamodb.datamodeling.DynamoDBScanExpression; import java.util.List; import org.apache.gora.dynamodb.query.DynamoDBQuery; import org.apache.gora....
import com.amazonaws.services.dynamodb.datamodeling.*; import java.util.*; import org.apache.gora.dynamodb.query.*; import org.apache.gora.query.*;
[ "com.amazonaws.services", "java.util", "org.apache.gora" ]
com.amazonaws.services; java.util; org.apache.gora;
1,761,837
public static PlatformApi fromOAuth(String secret, String code) throws IOException { HttpRequest request = new HttpRequest(HttpRequest.Method.POST, HOST_ID + "/oauth/token"); request.setParameter("grant_type", "authorization_code"); request.setParameter("code", code); request.setParameter("client_secret", se...
static PlatformApi function(String secret, String code) throws IOException { HttpRequest request = new HttpRequest(HttpRequest.Method.POST, HOST_ID + STR); request.setParameter(STR, STR); request.setParameter("code", code); request.setParameter(STR, secret); Transport tran = TransportFactory.createDefaultTransport(); H...
/** * Authenticate with OAuth grant code */
Authenticate with OAuth grant code
fromOAuth
{ "repo_name": "shunjikonishi/heroku-platform-api", "path": "src/main/java/jp/co/flect/heroku/platformapi/PlatformApi.java", "license": "mit", "size": 44756 }
[ "java.io.IOException", "jp.co.flect.heroku.HerokuException", "jp.co.flect.heroku.transport.HttpRequest", "jp.co.flect.heroku.transport.HttpResponse", "jp.co.flect.heroku.transport.Transport", "jp.co.flect.heroku.transport.TransportFactory" ]
import java.io.IOException; import jp.co.flect.heroku.HerokuException; import jp.co.flect.heroku.transport.HttpRequest; import jp.co.flect.heroku.transport.HttpResponse; import jp.co.flect.heroku.transport.Transport; import jp.co.flect.heroku.transport.TransportFactory;
import java.io.*; import jp.co.flect.heroku.*; import jp.co.flect.heroku.transport.*;
[ "java.io", "jp.co.flect" ]
java.io; jp.co.flect;
1,868,184
public static FakePlayer get(WorldServer world, GameProfile username) { if (!fakePlayers.containsKey(username)) { FakePlayer fakePlayer = new FakePlayer(world, username); fakePlayers.put(username, fakePlayer); } return fakePlayers.get(username); }
static FakePlayer function(WorldServer world, GameProfile username) { if (!fakePlayers.containsKey(username)) { FakePlayer fakePlayer = new FakePlayer(world, username); fakePlayers.put(username, fakePlayer); } return fakePlayers.get(username); }
/** * Get a fake player with a given username, * Mods should either hold weak references to the return value, or listen for a * WorldEvent.Unload and kill all references to prevent worlds staying in memory. */
Get a fake player with a given username, Mods should either hold weak references to the return value, or listen for a WorldEvent.Unload and kill all references to prevent worlds staying in memory
get
{ "repo_name": "jdpadrnos/MinecraftForge", "path": "src/main/java/net/minecraftforge/common/util/FakePlayerFactory.java", "license": "lgpl-2.1", "size": 2756 }
[ "com.mojang.authlib.GameProfile", "net.minecraft.world.WorldServer" ]
import com.mojang.authlib.GameProfile; import net.minecraft.world.WorldServer;
import com.mojang.authlib.*; import net.minecraft.world.*;
[ "com.mojang.authlib", "net.minecraft.world" ]
com.mojang.authlib; net.minecraft.world;
1,456,701
public static void parseUnknownTypeWithBody(Type_body_stmtsContext typeBody, TypeAwareBuilder parent, QName prefixedQName, ModuleBuilder moduleBuilder, QName moduleQName, SchemaPath actualPath) { final int line = typeBody.getStart().getLine(); List<RangeConstraint> rangeStatements = get...
static void function(Type_body_stmtsContext typeBody, TypeAwareBuilder parent, QName prefixedQName, ModuleBuilder moduleBuilder, QName moduleQName, SchemaPath actualPath) { final int line = typeBody.getStart().getLine(); List<RangeConstraint> rangeStatements = getRangeConstraints(typeBody, moduleBuilder.getName()); Lis...
/** * Parse unknown type with body. * * @param typeBody * type body * @param parent * current node parent * @param prefixedQName * type qname with prefix * @param moduleBuilder * current module builder * @param moduleQNam...
Parse unknown type with body
parseUnknownTypeWithBody
{ "repo_name": "522986491/yangtools", "path": "yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/impl/ParserListenerUtils.java", "license": "epl-1.0", "size": 73469 }
[ "java.util.List", "org.opendaylight.yangtools.yang.common.QName", "org.opendaylight.yangtools.yang.model.api.SchemaPath", "org.opendaylight.yangtools.yang.model.api.type.LengthConstraint", "org.opendaylight.yangtools.yang.model.api.type.PatternConstraint", "org.opendaylight.yangtools.yang.model.api.type.R...
import java.util.List; import org.opendaylight.yangtools.yang.common.QName; import org.opendaylight.yangtools.yang.model.api.SchemaPath; import org.opendaylight.yangtools.yang.model.api.type.LengthConstraint; import org.opendaylight.yangtools.yang.model.api.type.PatternConstraint; import org.opendaylight.yangtools.yang...
import java.util.*; import org.opendaylight.yangtools.yang.common.*; import org.opendaylight.yangtools.yang.model.api.*; import org.opendaylight.yangtools.yang.model.api.type.*; import org.opendaylight.yangtools.yang.parser.builder.api.*; import org.opendaylight.yangtools.yang.parser.builder.impl.*;
[ "java.util", "org.opendaylight.yangtools" ]
java.util; org.opendaylight.yangtools;
2,601,424
public Observable<ServiceResponse<VirtualMachineInner>> beginUpdateWithServiceResponseAsync(String resourceGroupName, String vmName, VirtualMachineUpdate parameters) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null....
Observable<ServiceResponse<VirtualMachineInner>> function(String resourceGroupName, String vmName, VirtualMachineUpdate parameters) { if (resourceGroupName == null) { throw new IllegalArgumentException(STR); } if (vmName == null) { throw new IllegalArgumentException(STR); } if (this.client.subscriptionId() == null) { t...
/** * The operation to update a virtual machine. * * @param resourceGroupName The name of the resource group. * @param vmName The name of the virtual machine. * @param parameters Parameters supplied to the Update Virtual Machine operation. * @throws IllegalArgumentException thrown if param...
The operation to update a virtual machine
beginUpdateWithServiceResponseAsync
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/compute/mgmt-v2020_06_01/src/main/java/com/microsoft/azure/management/compute/v2020_06_01/implementation/VirtualMachinesInner.java", "license": "mit", "size": 261375 }
[ "com.microsoft.azure.management.compute.v2020_06_01.VirtualMachineUpdate", "com.microsoft.rest.ServiceResponse" ]
import com.microsoft.azure.management.compute.v2020_06_01.VirtualMachineUpdate; import com.microsoft.rest.ServiceResponse;
import com.microsoft.azure.management.compute.v2020_06_01.*; import com.microsoft.rest.*;
[ "com.microsoft.azure", "com.microsoft.rest" ]
com.microsoft.azure; com.microsoft.rest;
1,926,573
static void moveSubNodes(final DNodeContainer oldDiagramElementContainer, final EObject containerDroppedElement, final ContainerDropDescription tool, final DNodeContainer newDiagramElementContainer) { final EList<DDiagramElement> ownedDiagramElementsToDrop = oldDiagramElementContainer.getOwnedDi...
static void moveSubNodes(final DNodeContainer oldDiagramElementContainer, final EObject containerDroppedElement, final ContainerDropDescription tool, final DNodeContainer newDiagramElementContainer) { final EList<DDiagramElement> ownedDiagramElementsToDrop = oldDiagramElementContainer.getOwnedDiagramElements(); for (DD...
/** * Move the subNodes in case of drag'n'drop of a container. * * @param droppedDiagramElement * @param containerDroppedElement * @param tool * @param diagramElementContainer */
Move the subNodes in case of drag'n'drop of a container
moveSubNodes
{ "repo_name": "FTSRG/iq-sirius-integration", "path": "host/org.eclipse.sirius.diagram/src-core/org/eclipse/sirius/diagram/business/internal/helper/task/DnDTasksOperations.java", "license": "epl-1.0", "size": 22507 }
[ "org.eclipse.emf.common.util.EList", "org.eclipse.emf.ecore.EObject", "org.eclipse.sirius.diagram.DDiagramElement", "org.eclipse.sirius.diagram.DNodeContainer", "org.eclipse.sirius.diagram.business.internal.metamodel.operations.DDiagramElementContainerSpecOperations", "org.eclipse.sirius.diagram.descripti...
import org.eclipse.emf.common.util.EList; import org.eclipse.emf.ecore.EObject; import org.eclipse.sirius.diagram.DDiagramElement; import org.eclipse.sirius.diagram.DNodeContainer; import org.eclipse.sirius.diagram.business.internal.metamodel.operations.DDiagramElementContainerSpecOperations; import org.eclipse.sirius....
import org.eclipse.emf.common.util.*; import org.eclipse.emf.ecore.*; import org.eclipse.sirius.diagram.*; import org.eclipse.sirius.diagram.business.internal.metamodel.operations.*; import org.eclipse.sirius.diagram.description.*; import org.eclipse.sirius.diagram.description.tool.*; import org.eclipse.sirius.ecore.ex...
[ "org.eclipse.emf", "org.eclipse.sirius" ]
org.eclipse.emf; org.eclipse.sirius;
2,394,270
@Test public void testBuildReportChunkSuccessfull1() { instance.buildReportChunk(dchunk, doc, true); ArrayList<Object[]> events = docListener.getCapturedEvents(); assertTrue(events.size() == 5); Object[] event = events.get(0); confirmParagraphAdded(event, "CON...
void function() { instance.buildReportChunk(dchunk, doc, true); ArrayList<Object[]> events = docListener.getCapturedEvents(); assertTrue(events.size() == 5); Object[] event = events.get(0); confirmParagraphAdded(event, STR); event = events.get(1); confirmParagraphAdded(event, STR + group); event = events.get(2); confir...
/** * Test of buildReportChunk method, of class RTFDataChunkBuilder. * Test case: successfull execution - single data content */
Test of buildReportChunk method, of class RTFDataChunkBuilder. Test case: successfull execution - single data content
testBuildReportChunkSuccessfull1
{ "repo_name": "anikijevcanin/jeff", "path": "src/test/java/org/goodoldai/jeff/report/rtf/RTFDataChunkBuilderTest.java", "license": "lgpl-3.0", "size": 18656 }
[ "java.util.ArrayList", "org.junit.Assert" ]
import java.util.ArrayList; import org.junit.Assert;
import java.util.*; import org.junit.*;
[ "java.util", "org.junit" ]
java.util; org.junit;
1,418,331
@MessageExceptionHandler @SendToUser("/queue/errors") public MsgErrorNotification handleException(ExternalServiceException ex) { LOG.error("ExternalServiceException in EventsController", ex); return new MsgErrorNotification("Verbindung zu externem Dienst fehlgeschlagen, Ereignisse konnten nicht geladen werden!...
@SendToUser(STR) MsgErrorNotification function(ExternalServiceException ex) { LOG.error(STR, ex); return new MsgErrorNotification(STR); }
/** * This method catches ExternalServiceException objects thrown by the mapping methods. * It sends an error notification to /queue/error (user specific) to notify the user of the failure. * * @param ex Caught exception * @return Error notification message */
This method catches ExternalServiceException objects thrown by the mapping methods. It sends an error notification to /queue/error (user specific) to notify the user of the failure
handleException
{ "repo_name": "decoit/siem-gui-simu", "path": "src/main/java/de/decoit/siemgui/websocket/ChartsController.java", "license": "agpl-3.0", "size": 4121 }
[ "de.decoit.siemgui.exception.ExternalServiceException", "de.decoit.siemgui.stomp.msgs.outgoing.MsgErrorNotification", "org.springframework.messaging.simp.annotation.SendToUser" ]
import de.decoit.siemgui.exception.ExternalServiceException; import de.decoit.siemgui.stomp.msgs.outgoing.MsgErrorNotification; import org.springframework.messaging.simp.annotation.SendToUser;
import de.decoit.siemgui.exception.*; import de.decoit.siemgui.stomp.msgs.outgoing.*; import org.springframework.messaging.simp.annotation.*;
[ "de.decoit.siemgui", "org.springframework.messaging" ]
de.decoit.siemgui; org.springframework.messaging;
1,529,437
public Iterator instanceVariables() { return this.instanceVariables(this.attributes()); }
Iterator function() { return this.instanceVariables(this.attributes()); }
/** * as opposed to class variables and constants */
as opposed to class variables and constants
instanceVariables
{ "repo_name": "RallySoftware/eclipselink.runtime", "path": "utils/eclipselink.utils.workbench/mappingsmodel/source/org/eclipse/persistence/tools/workbench/mappingsmodel/meta/MWClass.java", "license": "epl-1.0", "size": 121989 }
[ "java.util.Iterator" ]
import java.util.Iterator;
import java.util.*;
[ "java.util" ]
java.util;
88
public static <K, V> PredicatedSortedMap<K, V> predicatedSortedMap(final SortedMap<K, V> map, final Predicate<? super K> keyPredicate, final Predicate<? super V> valuePredicate) { return new PredicatedSortedMap<K, V>(map, keyPredicate, valuePredicate); } //------------------------------...
static <K, V> PredicatedSortedMap<K, V> function(final SortedMap<K, V> map, final Predicate<? super K> keyPredicate, final Predicate<? super V> valuePredicate) { return new PredicatedSortedMap<K, V>(map, keyPredicate, valuePredicate); } protected PredicatedSortedMap(final SortedMap<K, V> map, final Predicate<? super K>...
/** * Factory method to create a predicated (validating) sorted map. * <p> * If there are any elements already in the list being decorated, they * are validated. * * @param <K> the key type * @param <V> the value type * @param map the map to decorate, must not be null * @...
Factory method to create a predicated (validating) sorted map. If there are any elements already in the list being decorated, they are validated
predicatedSortedMap
{ "repo_name": "AffogatoLang/Moka", "path": "lib/Apache_Commons_Collections/src/main/java/org/apache/commons/collections4/map/PredicatedSortedMap.java", "license": "bsd-3-clause", "size": 5147 }
[ "java.util.SortedMap", "org.apache.commons.collections4.Predicate" ]
import java.util.SortedMap; import org.apache.commons.collections4.Predicate;
import java.util.*; import org.apache.commons.collections4.*;
[ "java.util", "org.apache.commons" ]
java.util; org.apache.commons;
171,847
@JRubyMethod(rest=true) public static IRubyObject to_json_raw(ThreadContext context, IRubyObject vSelf, IRubyObject[] args) { RubyHash obj = toJsonRawObject(context, Utils.ensureString(vSelf)); return Generator.generateJson(context, obj, Genera...
@JRubyMethod(rest=true) static IRubyObject function(ThreadContext context, IRubyObject vSelf, IRubyObject[] args) { RubyHash obj = toJsonRawObject(context, Utils.ensureString(vSelf)); return Generator.generateJson(context, obj, Generator.HASH_HANDLER, args); }
/** * <code>{@link RubyString String}#to_json_raw(*)</code> * * <p>This method creates a JSON text from the result of a call to * {@link #to_json_raw_object} of this String. */
<code><code>RubyString String</code>#to_json_raw(*)</code> This method creates a JSON text from the result of a call to <code>#to_json_raw_object</code> of this String
to_json_raw
{ "repo_name": "mzemel/kpsu.org", "path": "vendor/gems/ruby/1.8/gems/json-1.5.3/java/src/json/ext/GeneratorMethods.java", "license": "gpl-3.0", "size": 8910 }
[ "org.jruby.RubyHash", "org.jruby.anno.JRubyMethod", "org.jruby.runtime.ThreadContext", "org.jruby.runtime.builtin.IRubyObject" ]
import org.jruby.RubyHash; import org.jruby.anno.JRubyMethod; import org.jruby.runtime.ThreadContext; import org.jruby.runtime.builtin.IRubyObject;
import org.jruby.*; import org.jruby.anno.*; import org.jruby.runtime.*; import org.jruby.runtime.builtin.*;
[ "org.jruby", "org.jruby.anno", "org.jruby.runtime" ]
org.jruby; org.jruby.anno; org.jruby.runtime;
863,246
public Builder addCustom(final Class clazz, final SerializerShim serializer) { addOrOverrideRegistration(clazz, id -> GryoTypeReg.of(clazz, id, serializer)); return this; }
Builder function(final Class clazz, final SerializerShim serializer) { addOrOverrideRegistration(clazz, id -> GryoTypeReg.of(clazz, id, serializer)); return this; }
/** * Register custom class to serialize with a custom serialization shim. */
Register custom class to serialize with a custom serialization shim
addCustom
{ "repo_name": "newkek/incubator-tinkerpop", "path": "gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/gryo/GryoMapper.java", "license": "apache-2.0", "size": 31608 }
[ "org.apache.tinkerpop.gremlin.structure.io.gryo.kryoshim.SerializerShim" ]
import org.apache.tinkerpop.gremlin.structure.io.gryo.kryoshim.SerializerShim;
import org.apache.tinkerpop.gremlin.structure.io.gryo.kryoshim.*;
[ "org.apache.tinkerpop" ]
org.apache.tinkerpop;
108,496
public String toString(DocTree tag) { return ""; }
String function(DocTree tag) { return ""; }
/** * No-op. Not currently used. * @param tag The tag to embed to the disk format table. */
No-op. Not currently used
toString
{ "repo_name": "apache/derby", "path": "java/build/org/apache/derbyBuild/javadoc/EndFormatTaglet.java", "license": "apache-2.0", "size": 2451 }
[ "com.sun.source.doctree.DocTree" ]
import com.sun.source.doctree.DocTree;
import com.sun.source.doctree.*;
[ "com.sun.source" ]
com.sun.source;
2,868,346
public boolean hasObjectPropertyWithValue(ObjectProperty aProperty, OInstance aValue) { List<OInstance> instances = getObjectPropertyValues(aProperty); for(OInstance i : instances) { if(i.equals(aValue)) { return true; } } return false; }
boolean function(ObjectProperty aProperty, OInstance aValue) { List<OInstance> instances = getObjectPropertyValues(aProperty); for(OInstance i : instances) { if(i.equals(aValue)) { return true; } } return false; }
/** * Checks if the resource has the provided object property set on it * with the specified value. * * @param aProperty * @param aValue * @return */
Checks if the resource has the provided object property set on it with the specified value
hasObjectPropertyWithValue
{ "repo_name": "Network-of-BioThings/GettinCRAFTy", "path": "src/main/resources/gate/plugins/Ontology/src/gate/creole/ontology/impl/OInstanceImpl.java", "license": "apache-2.0", "size": 23784 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,835,001
protected void renderTotals(PageContext pageContext, Tag parentTag) throws JspException { int cellCount = getWidthInCells(); List<? extends TotalDefinition> groupTotals = groupDefinition.getTotals(); for (TotalDefinition definition : groupTotals) { if (definition instanceof Nest...
void function(PageContext pageContext, Tag parentTag) throws JspException { int cellCount = getWidthInCells(); List<? extends TotalDefinition> groupTotals = groupDefinition.getTotals(); for (TotalDefinition definition : groupTotals) { if (definition instanceof NestedFieldTotaling) { NestedFieldTotaling nestedFieldTotal...
/** * Renders all of the totals required by the group total definition * * @param groupDefinition the accounting line view group definition * @param lines the lines that will be rendered - so we can count how many cells we're rendering * @throws JspException thrown if something goes w...
Renders all of the totals required by the group total definition
renderTotals
{ "repo_name": "quikkian-ua-devops/will-financials", "path": "kfs-core/src/main/java/org/kuali/kfs/sys/document/web/DefaultAccountingLineGroupImpl.java", "license": "agpl-3.0", "size": 19938 }
[ "java.util.List", "javax.servlet.jsp.JspException", "javax.servlet.jsp.PageContext", "javax.servlet.jsp.tagext.Tag", "org.kuali.kfs.sys.document.datadictionary.TotalDefinition", "org.kuali.kfs.sys.document.web.renderers.CellCountCurious", "org.kuali.kfs.sys.document.web.renderers.CollectionPropertiesCur...
import java.util.List; import javax.servlet.jsp.JspException; import javax.servlet.jsp.PageContext; import javax.servlet.jsp.tagext.Tag; import org.kuali.kfs.sys.document.datadictionary.TotalDefinition; import org.kuali.kfs.sys.document.web.renderers.CellCountCurious; import org.kuali.kfs.sys.document.web.renderers.Col...
import java.util.*; import javax.servlet.jsp.*; import javax.servlet.jsp.tagext.*; import org.kuali.kfs.sys.document.datadictionary.*; import org.kuali.kfs.sys.document.web.renderers.*;
[ "java.util", "javax.servlet", "org.kuali.kfs" ]
java.util; javax.servlet; org.kuali.kfs;
1,447,278
public static final void getAnnotationsForSecurity(Method[] beanMethods, ArrayList<String>[] rolesAllowed, boolean[] denyAll, boolean[] permitAll) thro...
static final void function(Method[] beanMethods, ArrayList<String>[] rolesAllowed, boolean[] denyAll, boolean[] permitAll) throws EJBConfigurationException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, STR); RolesAllowed classRolesAllowed = null; Ro...
/** * Check all methods for method-level Security annotations. Specifically * <code>RolesAllowed</code>, <code>PermitAll</code> and<code>DenyAll</code>. * If no Roles are defined via annotations or XML, then default to PermitAll. * * @param beanMethods Array of methods for this EJB. * @pa...
Check all methods for method-level Security annotations. Specifically <code>RolesAllowed</code>, <code>PermitAll</code> and<code>DenyAll</code>. If no Roles are defined via annotations or XML, then default to PermitAll
getAnnotationsForSecurity
{ "repo_name": "kgibm/open-liberty", "path": "dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/util/MethodAttribUtils.java", "license": "epl-1.0", "size": 131178 }
[ "com.ibm.ejs.container.EJBConfigurationException", "com.ibm.websphere.ras.Tr", "com.ibm.websphere.ras.TraceComponent", "java.lang.reflect.Method", "java.util.ArrayList", "java.util.Arrays", "javax.annotation.security.DenyAll", "javax.annotation.security.PermitAll", "javax.annotation.security.RolesAl...
import com.ibm.ejs.container.EJBConfigurationException; import com.ibm.websphere.ras.Tr; import com.ibm.websphere.ras.TraceComponent; import java.lang.reflect.Method; import java.util.ArrayList; import java.util.Arrays; import javax.annotation.security.DenyAll; import javax.annotation.security.PermitAll; import javax.a...
import com.ibm.ejs.container.*; import com.ibm.websphere.ras.*; import java.lang.reflect.*; import java.util.*; import javax.annotation.security.*;
[ "com.ibm.ejs", "com.ibm.websphere", "java.lang", "java.util", "javax.annotation" ]
com.ibm.ejs; com.ibm.websphere; java.lang; java.util; javax.annotation;
1,144,421
public void setStatModules(List<String> stats) { if (stats != null) { this.stats = stats; } }
void function(List<String> stats) { if (stats != null) { this.stats = stats; } }
/** * Set the StatModules * * @param stats the StatModulesStringList */
Set the StatModules
setStatModules
{ "repo_name": "lsinfo3/ofcprobe", "path": "src/main/java/de/uniwuerzburg/info3/ofcprobe/vswitch/main/config/StatConfig.java", "license": "apache-2.0", "size": 2394 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,898,275
void setCdmaRoamingPreference(int cdmaRoamingType, Message response);
void setCdmaRoamingPreference(int cdmaRoamingType, Message response);
/** * Requests to set the CDMA roaming preference * @param cdmaRoamingType one of CDMA_RM_* * @param response is callback message */
Requests to set the CDMA roaming preference
setCdmaRoamingPreference
{ "repo_name": "rex-xxx/mt6572_x201", "path": "frameworks/opt/telephony/src/java/com/android/internal/telephony/CommandsInterface.java", "license": "gpl-2.0", "size": 86787 }
[ "android.os.Message" ]
import android.os.Message;
import android.os.*;
[ "android.os" ]
android.os;
2,014,762
public final void setPigLogger(PigLogger pigLogger) { this.pigLogger = pigLogger; }
final void function(PigLogger pigLogger) { this.pigLogger = pigLogger; }
/** * Set the PigLogger object. Called by Pig to provide a reference * to the UDF. * @param pigLogger PigLogger object. */
Set the PigLogger object. Called by Pig to provide a reference to the UDF
setPigLogger
{ "repo_name": "miyakawataku/piggybank-ltsv", "path": "src/org/apache/pig/EvalFunc.java", "license": "apache-2.0", "size": 13285 }
[ "org.apache.pig.backend.hadoop.executionengine.physicalLayer.PigLogger" ]
import org.apache.pig.backend.hadoop.executionengine.physicalLayer.PigLogger;
import org.apache.pig.backend.hadoop.executionengine.*;
[ "org.apache.pig" ]
org.apache.pig;
623,143
public String getString(int index) throws IOException { InputStream in = newInputStream(index); return in != null ? inputStreamToString(in) : null; }
String function(int index) throws IOException { InputStream in = newInputStream(index); return in != null ? inputStreamToString(in) : null; }
/** * Returns the last committed value as a string, or null if no value * has been committed. */
Returns the last committed value as a string, or null if no value has been committed
getString
{ "repo_name": "tinyvampirepudge/Android_Basis_Demo", "path": "Android_Basis_Demo/app/src/main/java/com/tiny/demo/firstlinecode/kfysts/chapter12/ryg/DiskLruCache.java", "license": "apache-2.0", "size": 33936 }
[ "java.io.IOException", "java.io.InputStream" ]
import java.io.IOException; import java.io.InputStream;
import java.io.*;
[ "java.io" ]
java.io;
1,912,791
@GuardedBy("Segment.this") void recordWrite(ReferenceEntry<K, V> entry, int weight, long now) { // we are already under lock, so drain the recency queue immediately drainRecencyQueue(); totalWeight += weight; if (map.recordsAccess()) { entry.setAccessTime(now); } if ...
@GuardedBy(STR) void recordWrite(ReferenceEntry<K, V> entry, int weight, long now) { drainRecencyQueue(); totalWeight += weight; if (map.recordsAccess()) { entry.setAccessTime(now); } if (map.recordsWrite()) { entry.setWriteTime(now); } accessQueue.add(entry); writeQueue.add(entry); }
/** * Updates eviction metadata that {@code entry} was just written. This currently amounts to * adding {@code entry} to relevant eviction lists. */
Updates eviction metadata that entry was just written. This currently amounts to adding entry to relevant eviction lists
recordWrite
{ "repo_name": "sensui/guava-libraries", "path": "guava/src/com/google/common/cache/LocalCache.java", "license": "apache-2.0", "size": 145799 }
[ "javax.annotation.concurrent.GuardedBy" ]
import javax.annotation.concurrent.GuardedBy;
import javax.annotation.concurrent.*;
[ "javax.annotation" ]
javax.annotation;
990,731
@Override public RecoverableDatabaseListResponse list(String serverName) throws IOException, ServiceException, ParserConfigurationException, SAXException { // Validate if (serverName == null) { throw new NullPointerException("serverName"); } // Tracing ...
RecoverableDatabaseListResponse function(String serverName) throws IOException, ServiceException, ParserConfigurationException, SAXException { if (serverName == null) { throw new NullPointerException(STR); } boolean shouldTrace = CloudTracing.getIsEnabled(); String invocationId = null; if (shouldTrace) { invocationId =...
/** * Returns a collection of databases that can be recovered from a specified * server. * * @param serverName Required. The name of the Azure SQL Database Server on * which the databases were hosted. * @throws IOException Signals that an I/O exception of some sort has * occurred. This class...
Returns a collection of databases that can be recovered from a specified server
list
{ "repo_name": "southworkscom/azure-sdk-for-java", "path": "service-management/azure-svc-mgmt-sql/src/main/java/com/microsoft/windowsazure/management/sql/RecoverableDatabaseOperationsImpl.java", "license": "apache-2.0", "size": 22557 }
[ "com.microsoft.windowsazure.core.utils.XmlUtility", "com.microsoft.windowsazure.exception.ServiceException", "com.microsoft.windowsazure.management.sql.models.RecoverableDatabase", "com.microsoft.windowsazure.management.sql.models.RecoverableDatabaseListResponse", "com.microsoft.windowsazure.tracing.CloudTr...
import com.microsoft.windowsazure.core.utils.XmlUtility; import com.microsoft.windowsazure.exception.ServiceException; import com.microsoft.windowsazure.management.sql.models.RecoverableDatabase; import com.microsoft.windowsazure.management.sql.models.RecoverableDatabaseListResponse; import com.microsoft.windowsazure.t...
import com.microsoft.windowsazure.core.utils.*; import com.microsoft.windowsazure.exception.*; import com.microsoft.windowsazure.management.sql.models.*; import com.microsoft.windowsazure.tracing.*; import java.io.*; import java.util.*; import javax.xml.bind.*; import javax.xml.parsers.*; import org.w3c.dom.*; import o...
[ "com.microsoft.windowsazure", "java.io", "java.util", "javax.xml", "org.w3c.dom", "org.xml.sax" ]
com.microsoft.windowsazure; java.io; java.util; javax.xml; org.w3c.dom; org.xml.sax;
2,203,636
@Override public AuthenticationPrincipal retrieveUser(final String userName) { return new AuthenticationPrincipal(userName, passwords.get(userName), roles.get(userName)); }
AuthenticationPrincipal function(final String userName) { return new AuthenticationPrincipal(userName, passwords.get(userName), roles.get(userName)); }
/** * Retrieve an authenticated user */
Retrieve an authenticated user
retrieveUser
{ "repo_name": "geronimo-iia/winstone", "path": "winstone/src/main/java/net/winstone/core/authentication/realm/FileRealm.java", "license": "lgpl-2.1", "size": 5978 }
[ "net.winstone.core.authentication.AuthenticationPrincipal" ]
import net.winstone.core.authentication.AuthenticationPrincipal;
import net.winstone.core.authentication.*;
[ "net.winstone.core" ]
net.winstone.core;
1,475,736
public List<MarcContentTypeFieldMapper> getByRecordType(char recordType);
List<MarcContentTypeFieldMapper> function(char recordType);
/** * Get the mapper by record type * * @param record type - leader 06 record type * @return list of record types attached to marc content type fields */
Get the mapper by record type
getByRecordType
{ "repo_name": "nate-rcl/irplus", "path": "ir_core/src/edu/ur/ir/item/metadata/marc/MarcContentTypeFieldMapperService.java", "license": "apache-2.0", "size": 2052 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,043,023
public static String sortedBaseNamesOf(Iterable<Artifact> artifacts) { List<String> baseNames = baseArtifactNames(artifacts); Collections.sort(baseNames); return Joiner.on(' ').join(baseNames); }
static String function(Iterable<Artifact> artifacts) { List<String> baseNames = baseArtifactNames(artifacts); Collections.sort(baseNames); return Joiner.on(' ').join(baseNames); }
/** * For a bunch of actions, gets the basenames of the paths, sorts them in alphabetical * order and accumulates them in a space separated string, for example * <code>bar.o baz.a foo.o</code>. */
For a bunch of actions, gets the basenames of the paths, sorts them in alphabetical order and accumulates them in a space separated string, for example <code>bar.o baz.a foo.o</code>
sortedBaseNamesOf
{ "repo_name": "mrdomino/bazel", "path": "src/test/java/com/google/devtools/build/lib/actions/util/ActionsTestUtil.java", "license": "apache-2.0", "size": 20064 }
[ "com.google.common.base.Joiner", "com.google.devtools.build.lib.actions.Artifact", "java.util.Collections", "java.util.List" ]
import com.google.common.base.Joiner; import com.google.devtools.build.lib.actions.Artifact; import java.util.Collections; import java.util.List;
import com.google.common.base.*; import com.google.devtools.build.lib.actions.*; import java.util.*;
[ "com.google.common", "com.google.devtools", "java.util" ]
com.google.common; com.google.devtools; java.util;
707,819
public static MozuClient<com.mozu.api.contracts.productadmin.ProductInCatalogInfo> updateProductInCatalogClient(com.mozu.api.DataViewMode dataViewMode, com.mozu.api.contracts.productadmin.ProductInCatalogInfo productInCatalogInfoIn, String productCode, Integer catalogId, String responseFields) throws Exception { ...
static MozuClient<com.mozu.api.contracts.productadmin.ProductInCatalogInfo> function(com.mozu.api.DataViewMode dataViewMode, com.mozu.api.contracts.productadmin.ProductInCatalogInfo productInCatalogInfoIn, String productCode, Integer catalogId, String responseFields) throws Exception { MozuUrl url = com.mozu.api.urls.c...
/** * Updates one or more properties of a product associated with a specific catalog. * <p><pre><code> * MozuClient<com.mozu.api.contracts.productadmin.ProductInCatalogInfo> mozuClient=UpdateProductInCatalogClient(dataViewMode, productInCatalogInfoIn, productCode, catalogId, responseFields); * client.setBas...
Updates one or more properties of a product associated with a specific catalog. <code><code> MozuClient mozuClient=UpdateProductInCatalogClient(dataViewMode, productInCatalogInfoIn, productCode, catalogId, responseFields); client.setBaseAddress(url); client.executeRequest(); ProductInCatalogInfo productInCatalogInfo = ...
updateProductInCatalogClient
{ "repo_name": "sanjaymandadi/mozu-java", "path": "mozu-javaasync-core/src/main/java/com/mozu/api/clients/commerce/catalog/admin/ProductClient.java", "license": "mit", "size": 27820 }
[ "com.mozu.api.DataViewMode", "com.mozu.api.Headers", "com.mozu.api.MozuClient", "com.mozu.api.MozuClientFactory", "com.mozu.api.MozuUrl" ]
import com.mozu.api.DataViewMode; import com.mozu.api.Headers; import com.mozu.api.MozuClient; import com.mozu.api.MozuClientFactory; import com.mozu.api.MozuUrl;
import com.mozu.api.*;
[ "com.mozu.api" ]
com.mozu.api;
2,306,028
ActionFuture<PendingClusterTasksResponse> pendingClusterTasks(PendingClusterTasksRequest request);
ActionFuture<PendingClusterTasksResponse> pendingClusterTasks(PendingClusterTasksRequest request);
/** * Returns a list of the pending cluster tasks, that are scheduled to be executed. This includes operations * that update the cluster state (for example, a create index operation) */
Returns a list of the pending cluster tasks, that are scheduled to be executed. This includes operations that update the cluster state (for example, a create index operation)
pendingClusterTasks
{ "repo_name": "nezirus/elasticsearch", "path": "core/src/main/java/org/elasticsearch/client/ClusterAdminClient.java", "license": "apache-2.0", "size": 26945 }
[ "org.elasticsearch.action.ActionFuture", "org.elasticsearch.action.admin.cluster.tasks.PendingClusterTasksRequest", "org.elasticsearch.action.admin.cluster.tasks.PendingClusterTasksResponse" ]
import org.elasticsearch.action.ActionFuture; import org.elasticsearch.action.admin.cluster.tasks.PendingClusterTasksRequest; import org.elasticsearch.action.admin.cluster.tasks.PendingClusterTasksResponse;
import org.elasticsearch.action.*; import org.elasticsearch.action.admin.cluster.tasks.*;
[ "org.elasticsearch.action" ]
org.elasticsearch.action;
127,613
public String jsModuleNames() { List<String> moduleNames = sortModules(getAvailableModules().values()); StringBuffer jsCode = new StringBuffer(1024); jsCode.append("\t// an array from 1...n holding the module package names\n"); jsCode.append("\tvar modulePackageNames = new Array(");...
String function() { List<String> moduleNames = sortModules(getAvailableModules().values()); StringBuffer jsCode = new StringBuffer(1024); jsCode.append(STR\tvar modulePackageNames = new Array(STR);\nSTR\tmodulePackageNames[STR] = \STR\";\n"); } jsCode.append("\n\n"); return jsCode.toString(); }
/** * Returns js code with array definition for the available module names.<p> * * @return js code */
Returns js code with array definition for the available module names
jsModuleNames
{ "repo_name": "mediaworx/opencms-core", "path": "src-setup/org/opencms/setup/CmsSetupBean.java", "license": "lgpl-2.1", "size": 115587 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,027,430
EAttribute getProcess_IsExecutable();
EAttribute getProcess_IsExecutable();
/** * Returns the meta object for the attribute '{@link org.eclipse.bpmn2.Process#isIsExecutable <em>Is Executable</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for the attribute '<em>Is Executable</em>'. * @see org.eclipse.bpmn2.Process#isIsExecutable() ...
Returns the meta object for the attribute '<code>org.eclipse.bpmn2.Process#isIsExecutable Is Executable</code>'.
getProcess_IsExecutable
{ "repo_name": "lqjack/fixflow", "path": "modules/fixflow-core/src/main/java/org/eclipse/bpmn2/Bpmn2Package.java", "license": "apache-2.0", "size": 1014933 }
[ "org.eclipse.emf.ecore.EAttribute" ]
import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
1,408,299
private static boolean isIntentSupported(Intent intent) { Context context = MyApplication.getAppContext(); List<ResolveInfo> apps = context.getPackageManager().queryIntentActivities(intent, 0); return (apps.size() != 0); }
static boolean function(Intent intent) { Context context = MyApplication.getAppContext(); List<ResolveInfo> apps = context.getPackageManager().queryIntentActivities(intent, 0); return (apps.size() != 0); }
/** * Checks whether there is an activity registered that can handle the given intent. */
Checks whether there is an activity registered that can handle the given intent
isIntentSupported
{ "repo_name": "pablanco/taskManager", "path": "Android/FlexibleClient/src/com/artech/common/PhoneHelper.java", "license": "gpl-2.0", "size": 16470 }
[ "android.content.Context", "android.content.Intent", "android.content.pm.ResolveInfo", "com.artech.application.MyApplication", "java.util.List" ]
import android.content.Context; import android.content.Intent; import android.content.pm.ResolveInfo; import com.artech.application.MyApplication; import java.util.List;
import android.content.*; import android.content.pm.*; import com.artech.application.*; import java.util.*;
[ "android.content", "com.artech.application", "java.util" ]
android.content; com.artech.application; java.util;
192,693
public static MozuUrl getEntityContainerUrl(String entityListFullName, String id, String responseFields) { UrlFormatter formatter = new UrlFormatter("/api/platform/entitylists/{entityListFullName}/entityContainers/{id}?responseFields={responseFields}"); formatter.formatUrl("entityListFullName", entityListFullNa...
static MozuUrl function(String entityListFullName, String id, String responseFields) { UrlFormatter formatter = new UrlFormatter(STR); formatter.formatUrl(STR, entityListFullName); formatter.formatUrl("id", id); formatter.formatUrl(STR, responseFields); return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation...
/** * Get Resource Url for GetEntityContainer * @param entityListFullName The full name of the EntityList including namespace in name@nameSpace format * @param id Unique identifier of the customer segment to retrieve. * @param responseFields Use this field to include those fields which are not included by defau...
Get Resource Url for GetEntityContainer
getEntityContainerUrl
{ "repo_name": "lakshmi-nair/mozu-java", "path": "mozu-javaasync-core/src/main/java/com/mozu/api/urls/platform/entitylists/EntityContainerUrl.java", "license": "mit", "size": 3503 }
[ "com.mozu.api.MozuUrl", "com.mozu.api.utils.UrlFormatter" ]
import com.mozu.api.MozuUrl; import com.mozu.api.utils.UrlFormatter;
import com.mozu.api.*; import com.mozu.api.utils.*;
[ "com.mozu.api" ]
com.mozu.api;
2,691,137
public void animateBgAlpha(float finalAlpha, int duration) { int finalAlphaI = (int) (finalAlpha * 255f); if (getAlpha() != finalAlphaI) { mBackgroundAnim = cancelAnimator(mBackgroundAnim); mBackgroundAnim = ObjectAnimator.ofInt(this, "alpha", finalAlphaI); mBackg...
void function(float finalAlpha, int duration) { int finalAlphaI = (int) (finalAlpha * 255f); if (getAlpha() != finalAlphaI) { mBackgroundAnim = cancelAnimator(mBackgroundAnim); mBackgroundAnim = ObjectAnimator.ofInt(this, "alpha", finalAlphaI); mBackgroundAnim.setDuration(duration); mBackgroundAnim.start(); } }
/** * Animates the background alpha. */
Animates the background alpha
animateBgAlpha
{ "repo_name": "Mr-lin930819/SimplOS", "path": "src/com/android/simplo_launcher3/allapps/AllAppsBackgroundDrawable.java", "license": "gpl-3.0", "size": 6289 }
[ "android.animation.ObjectAnimator" ]
import android.animation.ObjectAnimator;
import android.animation.*;
[ "android.animation" ]
android.animation;
1,400,061
public Adapter createActionAdapter() { return null; }
Adapter function() { return null; }
/** * Creates a new adapter for an object of class '{@link org.casa.dsltesting.Qt48Xmlschema.Action <em>Action</em>}'. * <!-- begin-user-doc --> * This default implementation returns null so that we can easily ignore cases; * it's useful to ignore a case when inheritance will catch all the cases anyway. * <!-...
Creates a new adapter for an object of class '<code>org.casa.dsltesting.Qt48Xmlschema.Action Action</code>'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
createActionAdapter
{ "repo_name": "pedromateo/tug_qt_unit_testing_fw", "path": "qt48_model/src/org/casa/dsltesting/Qt48Xmlschema/util/Qt48XmlschemaAdapterFactory.java", "license": "gpl-3.0", "size": 46616 }
[ "org.eclipse.emf.common.notify.Adapter" ]
import org.eclipse.emf.common.notify.Adapter;
import org.eclipse.emf.common.notify.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
33,077
public static MozuUrl getCheckoutSettingsUrl(String responseFields) { UrlFormatter formatter = new UrlFormatter("/api/commerce/settings/checkout/?responseFields={responseFields}"); formatter.formatUrl("responseFields", responseFields); return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TEN...
static MozuUrl function(String responseFields) { UrlFormatter formatter = new UrlFormatter(STR); formatter.formatUrl(STR, responseFields); return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ; }
/** * Get Resource Url for GetCheckoutSettings * @param responseFields Filtering syntax appended to an API call to increase or decrease the amount of data returned inside a JSON object. This parameter should only be used to retrieve data. Attempting to update data using this parameter may cause data loss. * @r...
Get Resource Url for GetCheckoutSettings
getCheckoutSettingsUrl
{ "repo_name": "Mozu/mozu-java", "path": "mozu-javaasync-core/src/main/java/com/mozu/api/urls/commerce/settings/CheckoutSettingsUrl.java", "license": "mit", "size": 1069 }
[ "com.mozu.api.MozuUrl", "com.mozu.api.utils.UrlFormatter" ]
import com.mozu.api.MozuUrl; import com.mozu.api.utils.UrlFormatter;
import com.mozu.api.*; import com.mozu.api.utils.*;
[ "com.mozu.api" ]
com.mozu.api;
144,476
EReference getMarkovPartitionScheduler_States();
EReference getMarkovPartitionScheduler_States();
/** * Returns the meta object for the containment reference list '{@link turnus.model.analysis.scheduling.MarkovPartitionScheduler#getStates <em>States</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for the containment reference list '<em>States</em>'. * @see turnus.model....
Returns the meta object for the containment reference list '<code>turnus.model.analysis.scheduling.MarkovPartitionScheduler#getStates States</code>'.
getMarkovPartitionScheduler_States
{ "repo_name": "turnus/turnus", "path": "turnus.model/src/turnus/model/analysis/scheduling/SchedulingPackage.java", "license": "gpl-3.0", "size": 80069 }
[ "org.eclipse.emf.ecore.EReference" ]
import org.eclipse.emf.ecore.EReference;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
518,447
public BooleanDt getPrimary() { if (myPrimary == null) { myPrimary = new BooleanDt(); } return myPrimary; }
BooleanDt function() { if (myPrimary == null) { myPrimary = new BooleanDt(); } return myPrimary; }
/** * Gets the value(s) for <b>primary</b> (If this code was chosen directly by the user). creating it if it does not exist. Will not return <code>null</code>. * * <p> * <b>Definition:</b> Indicates that this code was chosen by a user directly - i.e. off a pick list of available items (codes or displays) * </...
Gets the value(s) for primary (If this code was chosen directly by the user). creating it if it does not exist. Will not return <code>null</code>. Definition: Indicates that this code was chosen by a user directly - i.e. off a pick list of available items (codes or displays)
getPrimary
{ "repo_name": "bjornna/hapi-fhir", "path": "hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/param/InternalCodingDt.java", "license": "apache-2.0", "size": 10856 }
[ "ca.uhn.fhir.model.primitive.BooleanDt" ]
import ca.uhn.fhir.model.primitive.BooleanDt;
import ca.uhn.fhir.model.primitive.*;
[ "ca.uhn.fhir" ]
ca.uhn.fhir;
1,539,689
@Override // FSDatasetInterface public BlockListAsLongs getBlockReport(String bpid) { int size = volumeMap.size(bpid); ArrayList<ReplicaInfo> finalized = new ArrayList<ReplicaInfo>(size); ArrayList<ReplicaInfo> uc = new ArrayList<ReplicaInfo>(); if (size == 0) { return new BlockListAsLongs(fi...
@Override BlockListAsLongs function(String bpid) { int size = volumeMap.size(bpid); ArrayList<ReplicaInfo> finalized = new ArrayList<ReplicaInfo>(size); ArrayList<ReplicaInfo> uc = new ArrayList<ReplicaInfo>(); if (size == 0) { return new BlockListAsLongs(finalized, uc); } synchronized(this) { for (ReplicaInfo b : volu...
/** * Generates a block report from the in-memory block map. */
Generates a block report from the in-memory block map
getBlockReport
{ "repo_name": "steveloughran/hadoop-hdfs", "path": "src/java/org/apache/hadoop/hdfs/server/datanode/FSDataset.java", "license": "apache-2.0", "size": 91655 }
[ "java.util.ArrayList", "org.apache.hadoop.hdfs.protocol.BlockListAsLongs" ]
import java.util.ArrayList; import org.apache.hadoop.hdfs.protocol.BlockListAsLongs;
import java.util.*; import org.apache.hadoop.hdfs.protocol.*;
[ "java.util", "org.apache.hadoop" ]
java.util; org.apache.hadoop;
1,684,878
@ApiModelProperty(value = "The response") public String getResponse() { return response; }
@ApiModelProperty(value = STR) String function() { return response; }
/** * The response * @return response **/
The response
getResponse
{ "repo_name": "knetikmedia/knetikcloud-java-client", "path": "src/main/java/com/knetikcloud/model/TransactionResource.java", "license": "apache-2.0", "size": 10670 }
[ "io.swagger.annotations.ApiModelProperty" ]
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.*;
[ "io.swagger.annotations" ]
io.swagger.annotations;
193,743
ProcessorRunner getProcessRunner(Processor processor) { return new ProcessorRunner.Builder(HiveMetadataDProcessor.class, processor) .setOnRecordError(OnRecordError.TO_ERROR) .addOutputLane("hdfs") .addOutputLane("hive") .build(); }
ProcessorRunner getProcessRunner(Processor processor) { return new ProcessorRunner.Builder(HiveMetadataDProcessor.class, processor) .setOnRecordError(OnRecordError.TO_ERROR) .addOutputLane("hdfs") .addOutputLane("hive") .build(); }
/** * Utility function to build a ProcessRunner * @param processor Processor to build a ProcessRunner * @return Generated ProcessRunner */
Utility function to build a ProcessRunner
getProcessRunner
{ "repo_name": "studanshu/datacollector", "path": "hive-protolib/src/test/java/com/streamsets/pipeline/stage/processor/hive/TestHiveMetadataProcessor.java", "license": "apache-2.0", "size": 28589 }
[ "com.streamsets.pipeline.api.OnRecordError", "com.streamsets.pipeline.api.Processor", "com.streamsets.pipeline.sdk.ProcessorRunner" ]
import com.streamsets.pipeline.api.OnRecordError; import com.streamsets.pipeline.api.Processor; import com.streamsets.pipeline.sdk.ProcessorRunner;
import com.streamsets.pipeline.api.*; import com.streamsets.pipeline.sdk.*;
[ "com.streamsets.pipeline" ]
com.streamsets.pipeline;
1,281,080
public void deleteQueries() { boolean queryDeleted = false; List<SavedQueryDTO> temp = new ArrayList<SavedQueryDTO>(); for (SavedQueryDTO dto : (List<SavedQueryDTO>) savedQueries.getWrappedData()) { if (dto.isDelete()) { temp.add(dto); queryDelete...
void function() { boolean queryDeleted = false; List<SavedQueryDTO> temp = new ArrayList<SavedQueryDTO>(); for (SavedQueryDTO dto : (List<SavedQueryDTO>) savedQueries.getWrappedData()) { if (dto.isDelete()) { temp.add(dto); queryDeleted = true; } } QueryStorageManager man = (QueryStorageManager)SpringApplicationContext...
/** * Deletes the selected saved queries. * */
Deletes the selected saved queries
deleteQueries
{ "repo_name": "NCIP/national-biomedical-image-archive", "path": "software/nbia-web/src/gov/nih/nci/nbia/beans/savedquery/SavedQueryBean.java", "license": "bsd-3-clause", "size": 16587 }
[ "gov.nih.nci.nbia.dto.SavedQueryDTO", "gov.nih.nci.nbia.querystorage.QueryStorageManager", "gov.nih.nci.nbia.util.MessageUtil", "gov.nih.nci.nbia.util.SpringApplicationContext", "java.util.ArrayList", "java.util.List" ]
import gov.nih.nci.nbia.dto.SavedQueryDTO; import gov.nih.nci.nbia.querystorage.QueryStorageManager; import gov.nih.nci.nbia.util.MessageUtil; import gov.nih.nci.nbia.util.SpringApplicationContext; import java.util.ArrayList; import java.util.List;
import gov.nih.nci.nbia.dto.*; import gov.nih.nci.nbia.querystorage.*; import gov.nih.nci.nbia.util.*; import java.util.*;
[ "gov.nih.nci", "java.util" ]
gov.nih.nci; java.util;
2,558,082
default AdvancedWeb3jEndpointConsumerBuilder exchangePattern( ExchangePattern exchangePattern) { doSetProperty("exchangePattern", exchangePattern); return this; }
default AdvancedWeb3jEndpointConsumerBuilder exchangePattern( ExchangePattern exchangePattern) { doSetProperty(STR, exchangePattern); return this; }
/** * Sets the exchange pattern when the consumer creates an exchange. * * The option is a: <code>org.apache.camel.ExchangePattern</code> type. * * Group: consumer (advanced) */
Sets the exchange pattern when the consumer creates an exchange. The option is a: <code>org.apache.camel.ExchangePattern</code> type. Group: consumer (advanced)
exchangePattern
{ "repo_name": "nicolaferraro/camel", "path": "core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/Web3jEndpointBuilderFactory.java", "license": "apache-2.0", "size": 48011 }
[ "org.apache.camel.ExchangePattern" ]
import org.apache.camel.ExchangePattern;
import org.apache.camel.*;
[ "org.apache.camel" ]
org.apache.camel;
289,129
public void skippedEntity(String name) throws SAXException { contentHandler.skippedEntity(name); }
void function(String name) throws SAXException { contentHandler.skippedEntity(name); }
/** * Receive notification of a skipped entity. * * @param name The name of the skipped entity. If it is a parameter * entity, the name will begin with '%'. */
Receive notification of a skipped entity
skippedEntity
{ "repo_name": "apache/cocoon", "path": "core/cocoon-pipeline/cocoon-pipeline-impl/src/main/java/org/apache/cocoon/xml/AbstractXMLPipe.java", "license": "apache-2.0", "size": 7438 }
[ "org.xml.sax.SAXException" ]
import org.xml.sax.SAXException;
import org.xml.sax.*;
[ "org.xml.sax" ]
org.xml.sax;
911,667
public TupleTagList and(List<TupleTag<?>> tags) { return new TupleTagList( new ImmutableList.Builder<TupleTag<?>>().addAll(tupleTags).addAll(tags).build()); }
TupleTagList function(List<TupleTag<?>> tags) { return new TupleTagList( new ImmutableList.Builder<TupleTag<?>>().addAll(tupleTags).addAll(tags).build()); }
/** * Returns a new {@link TupleTagList} that has all the {@link TupleTag TupleTags} of this {@link * TupleTagList} plus the given {@link TupleTag TupleTags} appended to the end, in order. */
Returns a new <code>TupleTagList</code> that has all the <code>TupleTag TupleTags</code> of this <code>TupleTagList</code> plus the given <code>TupleTag TupleTags</code> appended to the end, in order
and
{ "repo_name": "lukecwik/incubator-beam", "path": "sdks/java/core/src/main/java/org/apache/beam/sdk/values/TupleTagList.java", "license": "apache-2.0", "size": 4753 }
[ "java.util.List", "org.apache.beam.vendor.guava.v26_0_jre.com.google.common.collect.ImmutableList" ]
import java.util.List; import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.collect.ImmutableList;
import java.util.*; import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.collect.*;
[ "java.util", "org.apache.beam" ]
java.util; org.apache.beam;
2,329,152
JsonRpcError createError(@Assisted("code") int code, @Assisted("message") String message);
JsonRpcError createError(@Assisted("code") int code, @Assisted(STR) String message);
/** * Create a JSON RPC error instance by passing corresponding values * * @param code * error code * @param message * error message * * @return JSON RPC error */
Create a JSON RPC error instance by passing corresponding values
createError
{ "repo_name": "gazarenkov/che-sketch", "path": "ide/commons-gwt/src/main/java/org/eclipse/che/ide/jsonrpc/JsonRpcFactory.java", "license": "epl-1.0", "size": 5447 }
[ "com.google.inject.assistedinject.Assisted" ]
import com.google.inject.assistedinject.Assisted;
import com.google.inject.assistedinject.*;
[ "com.google.inject" ]
com.google.inject;
1,116,824
default SftpEndpointBuilder keyPair(KeyPair keyPair) { setProperty("keyPair", keyPair); return this; }
default SftpEndpointBuilder keyPair(KeyPair keyPair) { setProperty(STR, keyPair); return this; }
/** * Sets a key pair of the public and private key so to that the SFTP * endpoint can do public/private key verification. * * The option is a: <code>java.security.KeyPair</code> type. * * Group: security */
Sets a key pair of the public and private key so to that the SFTP endpoint can do public/private key verification. The option is a: <code>java.security.KeyPair</code> type. Group: security
keyPair
{ "repo_name": "davidkarlsen/camel", "path": "core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/SftpEndpointBuilderFactory.java", "license": "apache-2.0", "size": 214729 }
[ "java.security.KeyPair" ]
import java.security.KeyPair;
import java.security.*;
[ "java.security" ]
java.security;
1,739,751
interface WithWriteReplication { WithCreate withWriteReplication(Region region); }
interface WithWriteReplication { WithCreate withWriteReplication(Region region); }
/** * A georeplication location for the DocumentDB account. * @param region the region for the location * @return the next stage */
A georeplication location for the DocumentDB account
withWriteReplication
{ "repo_name": "jianghaolu/azure-sdk-for-java", "path": "azure-mgmt-documentdb/src/main/java/com/microsoft/azure/management/documentdb/DocumentDBAccount.java", "license": "mit", "size": 11496 }
[ "com.microsoft.azure.management.resources.fluentcore.arm.Region" ]
import com.microsoft.azure.management.resources.fluentcore.arm.Region;
import com.microsoft.azure.management.resources.fluentcore.arm.*;
[ "com.microsoft.azure" ]
com.microsoft.azure;
1,835,497
@ServiceMethod(returns = ReturnType.SINGLE) public PrivateCloudInner createOrUpdate( String resourceGroupName, String privateCloudName, PrivateCloudInner privateCloud) { return createOrUpdateAsync(resourceGroupName, privateCloudName, privateCloud).block(); }
@ServiceMethod(returns = ReturnType.SINGLE) PrivateCloudInner function( String resourceGroupName, String privateCloudName, PrivateCloudInner privateCloud) { return createOrUpdateAsync(resourceGroupName, privateCloudName, privateCloud).block(); }
/** * Create or update a private cloud. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. * @param privateCloud The private cloud. * @throws IllegalArgumentException thrown if parameters fail the ...
Create or update a private cloud
createOrUpdate
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/PrivateCloudsClientImpl.java", "license": "mit", "size": 106842 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.resourcemanager.avs.fluent.models.PrivateCloudInner" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.resourcemanager.avs.fluent.models.PrivateCloudInner;
import com.azure.core.annotation.*; import com.azure.resourcemanager.avs.fluent.models.*;
[ "com.azure.core", "com.azure.resourcemanager" ]
com.azure.core; com.azure.resourcemanager;
1,926,073
private static void printUsage(String error, CmdLineParser parser) { System.out.println(error); System.out.print("Usage: DataSetMain "); parser.printSingleLineUsage(System.out); System.out.println(""); return; }
static void function(String error, CmdLineParser parser) { System.out.println(error); System.out.print(STR); parser.printSingleLineUsage(System.out); System.out.println(""); return; }
/** * Prints the usage of main. * @param error The error message that triggered the usage message. * @param parser The args4j parser. */
Prints the usage of main
printUsage
{ "repo_name": "MackMendes/ExperimentsPapers", "path": "DescobrindoPadroesdeBugJS/BugAID/src/ca/ubc/ece/salt/pangor/js/learn/StatementAnalysisMain.java", "license": "mit", "size": 5543 }
[ "org.kohsuke.args4j.CmdLineParser" ]
import org.kohsuke.args4j.CmdLineParser;
import org.kohsuke.args4j.*;
[ "org.kohsuke.args4j" ]
org.kohsuke.args4j;
939,775
public Templates getTemplates() { return _templates; }
Templates function() { return _templates; }
/** * Implements javax.xml.transform.sax.TemplatesHandler.getTemplates() * When a TemplatesHandler object is used as a ContentHandler or * DocumentHandler for the parsing of transformation instructions, it * creates a Templates object, which the caller can get once the SAX * events have been co...
Implements javax.xml.transform.sax.TemplatesHandler.getTemplates() When a TemplatesHandler object is used as a ContentHandler or DocumentHandler for the parsing of transformation instructions, it creates a Templates object, which the caller can get once the SAX events have been completed
getTemplates
{ "repo_name": "axDev-JDK/jaxp", "path": "src/com/sun/org/apache/xalan/internal/xsltc/trax/TemplatesHandlerImpl.java", "license": "gpl-2.0", "size": 11586 }
[ "javax.xml.transform.Templates" ]
import javax.xml.transform.Templates;
import javax.xml.transform.*;
[ "javax.xml" ]
javax.xml;
2,217,586
private boolean checkUDFInput(PhysicalOperator po) { if (po instanceof PORelationToExprProject) { return checkUDFInput(po.getInputs().get(0)); } if (po instanceof POProject) { if(po.getInputs() == null ) return true; else ...
boolean function(PhysicalOperator po) { if (po instanceof PORelationToExprProject) { return checkUDFInput(po.getInputs().get(0)); } if (po instanceof POProject) { if(po.getInputs() == null ) return true; else return checkUDFInput(po.getInputs().get(0)); } if (po instanceof ConstantExpression) { return true; } if (po in...
/** * Check operators under POUserFunc to verify if this * is a valid UDF to run as accumulator. The inputs to * <code>POUserFunc</code> must be in the following list. * If the operator has sub-operators, they must also belong * to this list. * * <li>PORelationToExprProject</li> ...
Check operators under POUserFunc to verify if this is a valid UDF to run as accumulator. The inputs to <code>POUserFunc</code> must be in the following list. If the operator has sub-operators, they must also belong to this list. PORelationToExprProject ConstantExpression POProject POCase UnaryExpressionOperator BinaryE...
checkUDFInput
{ "repo_name": "kaituo/sedge", "path": "trunk/src/org/apache/pig/backend/hadoop/executionengine/mapReduceLayer/AccumulatorOptimizer.java", "license": "mit", "size": 10792 }
[ "java.util.List", "org.apache.pig.backend.hadoop.executionengine.physicalLayer.PhysicalOperator", "org.apache.pig.backend.hadoop.executionengine.physicalLayer.expressionOperators.BinaryExpressionOperator", "org.apache.pig.backend.hadoop.executionengine.physicalLayer.expressionOperators.ConstantExpression", ...
import java.util.List; import org.apache.pig.backend.hadoop.executionengine.physicalLayer.PhysicalOperator; import org.apache.pig.backend.hadoop.executionengine.physicalLayer.expressionOperators.BinaryExpressionOperator; import org.apache.pig.backend.hadoop.executionengine.physicalLayer.expressionOperators.ConstantExpr...
import java.util.*; import org.apache.pig.backend.hadoop.executionengine.*;
[ "java.util", "org.apache.pig" ]
java.util; org.apache.pig;
2,220,692
public static int getMonthInInt(final String monthName) { DateFormatSymbols dfs = new DateFormatSymbols(); String[] months = dfs.getMonths(); int i = 0; for (; months.length > 12; i++) { if (months[i].equals(monthName)) { i++; break; } } return i; }
static int function(final String monthName) { DateFormatSymbols dfs = new DateFormatSymbols(); String[] months = dfs.getMonths(); int i = 0; for (; months.length > 12; i++) { if (months[i].equals(monthName)) { i++; break; } } return i; }
/** * This method will convert month name to an int value. * * @param monthName * @return integer value of month */
This method will convert month name to an int value
getMonthInInt
{ "repo_name": "gcolin/socialauth-4-glassfish", "path": "src/main/java/org/brickred/socialauth/util/SocialAuthUtil.java", "license": "apache-2.0", "size": 2308 }
[ "java.text.DateFormatSymbols" ]
import java.text.DateFormatSymbols;
import java.text.*;
[ "java.text" ]
java.text;
1,142,438
private List<Object> parseArray(List<XmlElement> elements) throws Exception { ArrayList<Object> list = new ArrayList<Object>(elements.size()); for (XmlElement element : elements) { list.add(parseElementRaw(element)); } return list; }
List<Object> function(List<XmlElement> elements) throws Exception { ArrayList<Object> list = new ArrayList<Object>(elements.size()); for (XmlElement element : elements) { list.add(parseElementRaw(element)); } return list; }
/** * Parse a list of xml elements as a plist array. * * @param elements the elements to parse. * @return the array deserialized as a list. * @throws Exception if there are any problems deserializing the list. */
Parse a list of xml elements as a plist array
parseArray
{ "repo_name": "archienz/universal-media-server", "path": "src/main/java/net/pms/xmlwise/Plist.java", "license": "gpl-2.0", "size": 14158 }
[ "java.util.ArrayList", "java.util.List" ]
import java.util.ArrayList; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,649,086
List<MObject> linkedObjects();
List<MObject> linkedObjects();
/** * Returns the set of objects participating in this link. * * @return Set(MObject). */
Returns the set of objects participating in this link
linkedObjects
{ "repo_name": "vnu-dse/rtl", "path": "src/main/org/tzi/use/uml/sys/MLink.java", "license": "gpl-2.0", "size": 1838 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
213,278
public static Pair<Integer, Integer> parseAudioSpecificConfig(byte[] audioSpecificConfig) { int audioObjectType = (audioSpecificConfig[0] >> 3) & 0x1F; int byteOffset = audioObjectType == 5 || audioObjectType == 29 ? 1 : 0; int frequencyIndex = (audioSpecificConfig[byteOffset] & 0x7) << ...
static Pair<Integer, Integer> function(byte[] audioSpecificConfig) { int audioObjectType = (audioSpecificConfig[0] >> 3) & 0x1F; int byteOffset = audioObjectType == 5 audioObjectType == 29 ? 1 : 0; int frequencyIndex = (audioSpecificConfig[byteOffset] & 0x7) << 1 ((audioSpecificConfig[byteOffset + 1] >> 7) & 0x1); Asse...
/** * Parses an AudioSpecificConfig, as defined in ISO 14496-3 1.6.2.1 * * @param audioSpecificConfig * @return A pair consisting of the sample rate in Hz and the channel count. */
Parses an AudioSpecificConfig, as defined in ISO 14496-3 1.6.2.1
parseAudioSpecificConfig
{ "repo_name": "summerpulse/amlexo", "path": "src/com/google/android/exoplayer/parser/mp4/CodecSpecificDataUtil.java", "license": "apache-2.0", "size": 9697 }
[ "android.util.Pair", "com.google.android.exoplayer.util.Assertions" ]
import android.util.Pair; import com.google.android.exoplayer.util.Assertions;
import android.util.*; import com.google.android.exoplayer.util.*;
[ "android.util", "com.google.android" ]
android.util; com.google.android;
2,074,384
public LinkedList<Patch> patch_make(String text1, String text2, LinkedList<Diff> diffs) { return patch_make(text1, diffs); }
LinkedList<Patch> function(String text1, String text2, LinkedList<Diff> diffs) { return patch_make(text1, diffs); }
/** * Compute a list of patches to turn text1 into text2. * text2 is ignored, diffs are the delta between text1 and text2. * @param text1 Old text * @param text2 Ignored. * @param diffs Array of diff tuples for text1 to text2. * @return LinkedList of Patch objects. * @deprecated Prefer patch_make(S...
Compute a list of patches to turn text1 into text2. text2 is ignored, diffs are the delta between text1 and text2
patch_make
{ "repo_name": "ZsZs/ProcessPuzzleCommons", "path": "Implementation/DomainTier/Source/com/processpuzzle/commons/text/TextDifferencer.java", "license": "agpl-3.0", "size": 81623 }
[ "java.util.LinkedList" ]
import java.util.LinkedList;
import java.util.*;
[ "java.util" ]
java.util;
1,792,124
public static int deleteConceptDB(String concept) { String conceptQuery; String deleteConceptQuery; String deleteAsociationQuery; int conceptKey = -1; try { Statement stmt = conn.createStatement(); //Hacemos lo mismo con el concepto conceptQuery = "SELECT * FROM Concept WHERE word ...
static int function(String concept) { String conceptQuery; String deleteConceptQuery; String deleteAsociationQuery; int conceptKey = -1; try { Statement stmt = conn.createStatement(); conceptQuery = STRSTR\STRidSTRDELETE FROM Asociated WHERE concept = \STR\STRDELETE FROM Concept WHERE word = \"STR\""; stmt.executeUpdat...
/** * Delete concept database. * * @param concept the concept * * @return the int */
Delete concept database
deleteConceptDB
{ "repo_name": "hendyyou/FST", "path": "src/tico/imageGallery/dataBase/TIGDataBase.java", "license": "gpl-3.0", "size": 24328 }
[ "java.sql.Statement" ]
import java.sql.Statement;
import java.sql.*;
[ "java.sql" ]
java.sql;
370,092
@Nullable @Incubating EclipseJavaSourceSettings getJavaSourceSettings() throws UnsupportedMethodException; /** * The gradle project that is associated with this project. * Typically, a single Eclipse project corresponds to a single gradle project. * <p> * See {@link HasGradleProject}
@Nullable EclipseJavaSourceSettings getJavaSourceSettings() throws UnsupportedMethodException; /** * The gradle project that is associated with this project. * Typically, a single Eclipse project corresponds to a single gradle project. * <p> * See {@link HasGradleProject}
/** * Returns the Java source settings for this project. * * @return the settings for Java sources or {@code null} if not a Java element. * @throws UnsupportedMethodException For Gradle versions older than 2.10, where this method is not supported. * @since 2.10 */
Returns the Java source settings for this project
getJavaSourceSettings
{ "repo_name": "gstevey/gradle", "path": "subprojects/tooling-api/src/main/java/org/gradle/tooling/model/eclipse/EclipseProject.java", "license": "apache-2.0", "size": 4951 }
[ "javax.annotation.Nullable", "org.gradle.tooling.model.HasGradleProject", "org.gradle.tooling.model.UnsupportedMethodException" ]
import javax.annotation.Nullable; import org.gradle.tooling.model.HasGradleProject; import org.gradle.tooling.model.UnsupportedMethodException;
import javax.annotation.*; import org.gradle.tooling.model.*;
[ "javax.annotation", "org.gradle.tooling" ]
javax.annotation; org.gradle.tooling;
1,311,370
public static TypedRead<TableRow> readTableRows() { return read(new TableRowParser()).withCoder(TableRowJsonCoder.of()); }
static TypedRead<TableRow> function() { return read(new TableRowParser()).withCoder(TableRowJsonCoder.of()); }
/** * Like {@link #read(SerializableFunction)} but represents each row as a {@link TableRow}. * * <p>This method is more convenient to use in some cases, but usually has significantly lower * performance than using {@link #read(SerializableFunction)} directly to parse data into a * domain-specific type, ...
Like <code>#read(SerializableFunction)</code> but represents each row as a <code>TableRow</code>. This method is more convenient to use in some cases, but usually has significantly lower performance than using <code>#read(SerializableFunction)</code> directly to parse data into a domain-specific type, due to the overhe...
readTableRows
{ "repo_name": "iemejia/incubator-beam", "path": "sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigquery/BigQueryIO.java", "license": "apache-2.0", "size": 124580 }
[ "com.google.api.services.bigquery.model.TableRow" ]
import com.google.api.services.bigquery.model.TableRow;
import com.google.api.services.bigquery.model.*;
[ "com.google.api" ]
com.google.api;
1,718,066
@Override public void onTop(BreadCrumbView view, int level, Object data) { int groupPosition = (Integer) view.getTag(R.id.group_position); Uri uri = (Uri) data; if (uri == null) { // top level uri = BrowserContract.Bookmarks.CONTENT_URI_DEFAULT_FOLDER; } ...
void function(BreadCrumbView view, int level, Object data) { int groupPosition = (Integer) view.getTag(R.id.group_position); Uri uri = (Uri) data; if (uri == null) { uri = BrowserContract.Bookmarks.CONTENT_URI_DEFAULT_FOLDER; } loadFolder(groupPosition, uri); if (level <= 1) { view.setVisibility(View.GONE); } else { vi...
/** * BreadCrumb controller callback */
BreadCrumb controller callback
onTop
{ "repo_name": "ChaOSChriS/chaoschrome", "path": "src/com/android/browser/BrowserBookmarksPage.java", "license": "gpl-2.0", "size": 34891 }
[ "android.net.Uri", "android.view.View", "com.android.browser.platformsupport.BrowserContract" ]
import android.net.Uri; import android.view.View; import com.android.browser.platformsupport.BrowserContract;
import android.net.*; import android.view.*; import com.android.browser.platformsupport.*;
[ "android.net", "android.view", "com.android.browser" ]
android.net; android.view; com.android.browser;
2,189,383
public InputStream newInputStream(int index) throws IOException { synchronized (DiskLruCache.this) { if (entry.currentEditor != this) { throw new IllegalStateException(); } if (!entry.readable) { return nul...
InputStream function(int index) throws IOException { synchronized (DiskLruCache.this) { if (entry.currentEditor != this) { throw new IllegalStateException(); } if (!entry.readable) { return null; } return new FileInputStream(entry.getCleanFile(index)); } }
/** * Returns an unbuffered input stream to read the last committed value, * or null if no value has been committed. */
Returns an unbuffered input stream to read the last committed value, or null if no value has been committed
newInputStream
{ "repo_name": "nmcgill/kluster-android", "path": "Kluster/src/com/cs446/kluster/cache/DiskLruCache.java", "license": "apache-2.0", "size": 34832 }
[ "java.io.FileInputStream", "java.io.IOException", "java.io.InputStream" ]
import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream;
import java.io.*;
[ "java.io" ]
java.io;
1,806,465
public void markStoreCorrupted(IOException exception) throws IOException { ensureOpen(); if (!isMarkedCorrupted()) { final String corruptionMarkerName = CORRUPTED_MARKER_NAME_PREFIX + UUIDs.randomBase64UUID(); try (IndexOutput output = this.directory().createOutput(corruption...
void function(IOException exception) throws IOException { ensureOpen(); if (!isMarkedCorrupted()) { final String corruptionMarkerName = CORRUPTED_MARKER_NAME_PREFIX + UUIDs.randomBase64UUID(); try (IndexOutput output = this.directory().createOutput(corruptionMarkerName, IOContext.DEFAULT)) { CodecUtil.writeHeader(outpu...
/** * Marks this store as corrupted. This method writes a {@code corrupted_${uuid}} file containing the given exception * message. If a store contains a {@code corrupted_${uuid}} file {@link #isMarkedCorrupted()} will return <code>true</code>. */
Marks this store as corrupted. This method writes a corrupted_${uuid} file containing the given exception message. If a store contains a corrupted_${uuid} file <code>#isMarkedCorrupted()</code> will return <code>true</code>
markStoreCorrupted
{ "repo_name": "crate/crate", "path": "server/src/main/java/org/elasticsearch/index/store/Store.java", "license": "apache-2.0", "size": 77583 }
[ "java.io.IOException", "java.util.Collections", "org.apache.lucene.codecs.CodecUtil", "org.apache.lucene.store.IOContext", "org.apache.lucene.store.IndexOutput", "org.apache.lucene.util.BytesRef", "org.elasticsearch.common.UUIDs", "org.elasticsearch.common.bytes.BytesReference", "org.elasticsearch.c...
import java.io.IOException; import java.util.Collections; import org.apache.lucene.codecs.CodecUtil; import org.apache.lucene.store.IOContext; import org.apache.lucene.store.IndexOutput; import org.apache.lucene.util.BytesRef; import org.elasticsearch.common.UUIDs; import org.elasticsearch.common.bytes.BytesReference; ...
import java.io.*; import java.util.*; import org.apache.lucene.codecs.*; import org.apache.lucene.store.*; import org.apache.lucene.util.*; import org.elasticsearch.common.*; import org.elasticsearch.common.bytes.*; import org.elasticsearch.common.io.stream.*;
[ "java.io", "java.util", "org.apache.lucene", "org.elasticsearch.common" ]
java.io; java.util; org.apache.lucene; org.elasticsearch.common;
1,956,402
public void setForegroundColorEx(Color color) { setForegroundColor(color); }
void function(Color color) { setForegroundColor(color); }
/** * Sets the foreground color. * * @param color the foreground color. */
Sets the foreground color
setForegroundColorEx
{ "repo_name": "kuriking/testdc2", "path": "net.dependableos.dcase.diagram/src/net/dependableos/dcase/diagram/edit/parts/custom/DcaseNodeEditPart.java", "license": "epl-1.0", "size": 24297 }
[ "org.eclipse.swt.graphics.Color" ]
import org.eclipse.swt.graphics.Color;
import org.eclipse.swt.graphics.*;
[ "org.eclipse.swt" ]
org.eclipse.swt;
1,579,374
@SuppressWarnings("PMD.AvoidInstantiatingObjectsInLoops") public void validate(final Collection<DataSource> sources, final String path) { this.config.setRuleSets("com/qulice/pmd/ruleset.xml"); final Report report = new Report(); report.addListener(this.listener); this.con...
@SuppressWarnings(STR) void function(final Collection<DataSource> sources, final String path) { this.config.setRuleSets(STR); final Report report = new Report(); report.addListener(this.listener); this.context.setReport(report); for (final DataSource source : sources) { final String name = source.getNiceFileName(false,...
/** * Performs validation of the input source files. * @param sources Input source files. * @param path Base path. */
Performs validation of the input source files
validate
{ "repo_name": "jrdalpra/qulice", "path": "qulice-pmd/src/main/java/com/qulice/pmd/SourceValidator.java", "license": "bsd-3-clause", "size": 4401 }
[ "java.io.File", "java.util.Collection", "net.sourceforge.pmd.Report", "net.sourceforge.pmd.util.datasource.DataSource" ]
import java.io.File; import java.util.Collection; import net.sourceforge.pmd.Report; import net.sourceforge.pmd.util.datasource.DataSource;
import java.io.*; import java.util.*; import net.sourceforge.pmd.*; import net.sourceforge.pmd.util.datasource.*;
[ "java.io", "java.util", "net.sourceforge.pmd" ]
java.io; java.util; net.sourceforge.pmd;
1,700,156
protected void scheduleTasks() { long now = System.currentTimeMillis(); if (this.taskScheduler == null) { this.localExecutor = Executors.newSingleThreadScheduledExecutor(); this.taskScheduler = new ConcurrentTaskScheduler(this.localExecutor); } if (this.triggerTasks != null) { for (TriggerTask task...
void function() { long now = System.currentTimeMillis(); if (this.taskScheduler == null) { this.localExecutor = Executors.newSingleThreadScheduledExecutor(); this.taskScheduler = new ConcurrentTaskScheduler(this.localExecutor); } if (this.triggerTasks != null) { for (TriggerTask task : this.triggerTasks) { this.schedul...
/** * Schedule all registered tasks against the underlying {@linkplain * #setTaskScheduler(TaskScheduler) task scheduler}. */
Schedule all registered tasks against the underlying #setTaskScheduler(TaskScheduler) task scheduler
scheduleTasks
{ "repo_name": "kingtang/spring-learn", "path": "spring-context/src/main/java/org/springframework/scheduling/config/ScheduledTaskRegistrar.java", "license": "gpl-3.0", "size": 10962 }
[ "java.util.Date", "java.util.concurrent.Executors", "org.springframework.scheduling.concurrent.ConcurrentTaskScheduler" ]
import java.util.Date; import java.util.concurrent.Executors; import org.springframework.scheduling.concurrent.ConcurrentTaskScheduler;
import java.util.*; import java.util.concurrent.*; import org.springframework.scheduling.concurrent.*;
[ "java.util", "org.springframework.scheduling" ]
java.util; org.springframework.scheduling;
626,425
public Node getPreviousSibling() { List<Node> siblings = parentNode.childNodes; int index = siblingIndex - 1; if (index < 0) { return null; } return siblings.get(index); }
Node function() { List<Node> siblings = parentNode.childNodes; int index = siblingIndex - 1; if (index < 0) { return null; } return siblings.get(index); }
/** * Returns this node's previous sibling of <b>any</b> type * or <code>null</code> if this is the first sibling. */
Returns this node's previous sibling of any type or <code>null</code> if this is the first sibling
getPreviousSibling
{ "repo_name": "vilmospapp/jodd", "path": "jodd-lagarto/src/main/java/jodd/lagarto/dom/Node.java", "license": "bsd-2-clause", "size": 29854 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,781,636
@Override public void close() { try { if (channel != null) { channel.close(); } } catch (IOException e) { // NOPMD // ignore } finally { channel = null; isClosed = true; } }
void function() { try { if (channel != null) { channel.close(); } } catch (IOException e) { } finally { channel = null; isClosed = true; } }
/** * Closes the connection. */
Closes the connection
close
{ "repo_name": "kay-kim/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/connection/AsynchronousSocketChannelStream.java", "license": "apache-2.0", "size": 8478 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
350,104
private void shortcutDocIdsToLoad(SearchContext context) { final int[] docIdsToLoad; int docsOffset = 0; final Suggest suggest = context.queryResult().suggest(); int numSuggestDocs = 0; final List<CompletionSuggestion> completionSuggestions; if (suggest != null && sug...
void function(SearchContext context) { final int[] docIdsToLoad; int docsOffset = 0; final Suggest suggest = context.queryResult().suggest(); int numSuggestDocs = 0; final List<CompletionSuggestion> completionSuggestions; if (suggest != null && suggest.hasScoreDocs()) { completionSuggestions = suggest.filter(Completion...
/** * Shortcut ids to load, we load only "from" and up to "size". The phase controller * handles this as well since the result is always size * shards for Q_A_F */
Shortcut ids to load, we load only "from" and up to "size". The phase controller handles this as well since the result is always size * shards for Q_A_F
shortcutDocIdsToLoad
{ "repo_name": "markwalkom/elasticsearch", "path": "core/src/main/java/org/elasticsearch/search/SearchService.java", "license": "apache-2.0", "size": 46044 }
[ "java.util.Collections", "java.util.List", "org.apache.lucene.search.TopDocs", "org.elasticsearch.search.internal.SearchContext", "org.elasticsearch.search.suggest.Suggest", "org.elasticsearch.search.suggest.completion.CompletionSuggestion" ]
import java.util.Collections; import java.util.List; import org.apache.lucene.search.TopDocs; import org.elasticsearch.search.internal.SearchContext; import org.elasticsearch.search.suggest.Suggest; import org.elasticsearch.search.suggest.completion.CompletionSuggestion;
import java.util.*; import org.apache.lucene.search.*; import org.elasticsearch.search.internal.*; import org.elasticsearch.search.suggest.*; import org.elasticsearch.search.suggest.completion.*;
[ "java.util", "org.apache.lucene", "org.elasticsearch.search" ]
java.util; org.apache.lucene; org.elasticsearch.search;
2,528,721
@Override public void consume(Iterator<KeyMessage<String, String>> updateIterator, Configuration hadoopConf) throws IOException { while (updateIterator.hasNext()) { KeyMessage<String, String> km = updateIterator.next(); String key = km.getKey(); String message = km.getMessage(); Ob...
void function(Iterator<KeyMessage<String, String>> updateIterator, Configuration hadoopConf) throws IOException { while (updateIterator.hasNext()) { KeyMessage<String, String> km = updateIterator.next(); String key = km.getKey(); String message = km.getMessage(); Objects.requireNonNull(key, STR + km); switch (key) { ca...
/** * Called by the framework to initiate a continuous process of reading models, and reading * from the input topic and updating model state in memory, and issuing updates to the * update topic. This will be executed asynchronously and may block. * * @param updateIterator iterator to read models from ...
Called by the framework to initiate a continuous process of reading models, and reading from the input topic and updating model state in memory, and issuing updates to the update topic. This will be executed asynchronously and may block
consume
{ "repo_name": "SevenYoung/oryx", "path": "app/oryx-app-serving/src/main/java/com/cloudera/oryx/app/serving/rdf/model/RDFServingModelManager.java", "license": "apache-2.0", "size": 5471 }
[ "com.cloudera.oryx.api.KeyMessage", "com.cloudera.oryx.app.pmml.AppPMMLUtils", "com.cloudera.oryx.app.rdf.RDFPMMLUtils", "com.cloudera.oryx.app.rdf.predict.CategoricalPrediction", "com.cloudera.oryx.app.rdf.predict.NumericPrediction", "com.cloudera.oryx.app.rdf.tree.DecisionForest", "com.cloudera.oryx.a...
import com.cloudera.oryx.api.KeyMessage; import com.cloudera.oryx.app.pmml.AppPMMLUtils; import com.cloudera.oryx.app.rdf.RDFPMMLUtils; import com.cloudera.oryx.app.rdf.predict.CategoricalPrediction; import com.cloudera.oryx.app.rdf.predict.NumericPrediction; import com.cloudera.oryx.app.rdf.tree.DecisionForest; import...
import com.cloudera.oryx.api.*; import com.cloudera.oryx.app.pmml.*; import com.cloudera.oryx.app.rdf.*; import com.cloudera.oryx.app.rdf.predict.*; import com.cloudera.oryx.app.rdf.tree.*; import com.cloudera.oryx.app.schema.*; import com.cloudera.oryx.common.collection.*; import java.io.*; import java.util.*; import ...
[ "com.cloudera.oryx", "java.io", "java.util", "org.apache.hadoop" ]
com.cloudera.oryx; java.io; java.util; org.apache.hadoop;
2,479,323
TopicProperties toModel(TopicDescription topic);
TopicProperties toModel(TopicDescription topic);
/** * Sets properties on the TopicProperties based on the CreateTopicOptions. * * @param topic The implementation topic. * * @return A new topic with the properties set. */
Sets properties on the TopicProperties based on the CreateTopicOptions
toModel
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/servicebus/azure-messaging-servicebus/src/main/java/com/azure/messaging/servicebus/implementation/EntityHelper.java", "license": "mit", "size": 23903 }
[ "com.azure.messaging.servicebus.administration.models.TopicProperties", "com.azure.messaging.servicebus.implementation.models.TopicDescription" ]
import com.azure.messaging.servicebus.administration.models.TopicProperties; import com.azure.messaging.servicebus.implementation.models.TopicDescription;
import com.azure.messaging.servicebus.administration.models.*; import com.azure.messaging.servicebus.implementation.models.*;
[ "com.azure.messaging" ]
com.azure.messaging;
1,601,529
@Test public void testApplyPredicate_3M_Dimension() { GeometryWrapper geometryWrapper = GeometryWrapper.extract("<http://www.opengis.net/def/crs/EPSG/0/27700> POINT M (90 60 30)", WKTDatatype.URI); CoordinateDimensionPF instance = new CoordinateDimensionPF(); NodeValue expResult = NodeV...
void function() { GeometryWrapper geometryWrapper = GeometryWrapper.extract("<http: CoordinateDimensionPF instance = new CoordinateDimensionPF(); NodeValue expResult = NodeValue.makeNodeInteger(3); NodeValue result = instance.applyPredicate(geometryWrapper); assertEquals(expResult, result); }
/** * Test of applyPredicate method, of class CoordinateDimensionPF. */
Test of applyPredicate method, of class CoordinateDimensionPF
testApplyPredicate_3M_Dimension
{ "repo_name": "apache/jena", "path": "jena-geosparql/src/test/java/org/apache/jena/geosparql/geo/topological/property_functions/geometry_property/CoordinateDimensionPFTest.java", "license": "apache-2.0", "size": 3765 }
[ "org.apache.jena.geosparql.implementation.GeometryWrapper", "org.apache.jena.sparql.expr.NodeValue", "org.junit.Assert" ]
import org.apache.jena.geosparql.implementation.GeometryWrapper; import org.apache.jena.sparql.expr.NodeValue; import org.junit.Assert;
import org.apache.jena.geosparql.implementation.*; import org.apache.jena.sparql.expr.*; import org.junit.*;
[ "org.apache.jena", "org.junit" ]
org.apache.jena; org.junit;
1,545,866
public Observable<ServiceResponse<Page<SharedAccessAuthorizationRuleInner>>> listAuthorizationRulesNextSinglePageAsync(final String nextPageLink) { if (nextPageLink == null) { throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); }
Observable<ServiceResponse<Page<SharedAccessAuthorizationRuleInner>>> function(final String nextPageLink) { if (nextPageLink == null) { throw new IllegalArgumentException(STR); }
/** * Gets all authorization rules for a queue. * ServiceResponse<PageImpl<SharedAccessAuthorizationRuleInner>> * @param nextPageLink The NextLink from the previous successful call to List operation. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the PagedL...
Gets all authorization rules for a queue
listAuthorizationRulesNextSinglePageAsync
{ "repo_name": "jianghaolu/azure-sdk-for-java", "path": "azure-mgmt-servicebus/src/main/java/com/microsoft/azure/management/servicebus/implementation/QueuesInner.java", "license": "mit", "size": 91602 }
[ "com.microsoft.azure.Page", "com.microsoft.rest.ServiceResponse" ]
import com.microsoft.azure.Page; import com.microsoft.rest.ServiceResponse;
import com.microsoft.azure.*; import com.microsoft.rest.*;
[ "com.microsoft.azure", "com.microsoft.rest" ]
com.microsoft.azure; com.microsoft.rest;
2,549,488
@ApiModelProperty( value = "Lists the APIs this Controller Service implements." ) public List<ControllerServiceApiDTO> getControllerServiceApis() { return controllerServiceApis; }
@ApiModelProperty( value = STR ) List<ControllerServiceApiDTO> function() { return controllerServiceApis; }
/** * Lists the APIs this Controller Service implements. * * @return The listing of implemented APIs */
Lists the APIs this Controller Service implements
getControllerServiceApis
{ "repo_name": "qfdk/nifi", "path": "nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/ControllerServiceDTO.java", "license": "apache-2.0", "size": 9171 }
[ "com.wordnik.swagger.annotations.ApiModelProperty", "java.util.List" ]
import com.wordnik.swagger.annotations.ApiModelProperty; import java.util.List;
import com.wordnik.swagger.annotations.*; import java.util.*;
[ "com.wordnik.swagger", "java.util" ]
com.wordnik.swagger; java.util;
927,195