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 Builder applyToAllUnaryMethods( ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) { super.applyToAllUnaryMethods( getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); return this; }
Builder function( ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) { super.applyToAllUnaryMethods( getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); return this; }
/** * Applies the given settings updater function to all of the unary API methods in this service. * * <p>Note: This method does not support applying settings to streaming methods. */
Applies the given settings updater function to all of the unary API methods in this service. Note: This method does not support applying settings to streaming methods
applyToAllUnaryMethods
{ "repo_name": "googleapis/java-workflows", "path": "google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/WorkflowsSettings.java", "license": "apache-2.0", "size": 10905 }
[ "com.google.api.core.ApiFunction", "com.google.api.gax.rpc.UnaryCallSettings" ]
import com.google.api.core.ApiFunction; import com.google.api.gax.rpc.UnaryCallSettings;
import com.google.api.core.*; import com.google.api.gax.rpc.*;
[ "com.google.api" ]
com.google.api;
692,318
public final int countWifis(final int session) { final Cursor cursor = contentResolver.query(ContentUris.withAppendedId(Uri.withAppendedPath( ContentProvider.CONTENT_URI_WIFI, ContentProvider.CONTENT_URI_OVERVIEW_SUFFIX), session), new String[]{Schema.COL_ID}, null, null, nu...
final int function(final int session) { final Cursor cursor = contentResolver.query(ContentUris.withAppendedId(Uri.withAppendedPath( ContentProvider.CONTENT_URI_WIFI, ContentProvider.CONTENT_URI_OVERVIEW_SUFFIX), session), new String[]{Schema.COL_ID}, null, null, null); final int count = cursor.getCount(); cursor.close...
/** * Counts number of wifis in session. * @param session * @return number of wifis */
Counts number of wifis in session
countWifis
{ "repo_name": "wish7code/openbmap", "path": "android/app/src/main/java/org/openbmap/db/DataHelper.java", "license": "agpl-3.0", "size": 38583 }
[ "android.content.ContentUris", "android.database.Cursor", "android.net.Uri" ]
import android.content.ContentUris; import android.database.Cursor; import android.net.Uri;
import android.content.*; import android.database.*; import android.net.*;
[ "android.content", "android.database", "android.net" ]
android.content; android.database; android.net;
1,154,613
public void setFixture(BodyFixture fixture) { this.fixture = fixture; } /** * Returns the time of impact information. * @return {@link TimeOfImpact}
void function(BodyFixture fixture) { this.fixture = fixture; } /** * Returns the time of impact information. * @return {@link TimeOfImpact}
/** * Sets the fixture on the body with the smallest * time of impact. * @param fixture the fixture */
Sets the fixture on the body with the smallest time of impact
setFixture
{ "repo_name": "yuripourre/etyllica-physics", "path": "src/main/java/org/dyn4j/dynamics/ConvexCastResult.java", "license": "bsd-3-clause", "size": 3795 }
[ "org.dyn4j.collision.continuous.TimeOfImpact" ]
import org.dyn4j.collision.continuous.TimeOfImpact;
import org.dyn4j.collision.continuous.*;
[ "org.dyn4j.collision" ]
org.dyn4j.collision;
95,678
private void loadClassesWithCustomClassLoader() throws ClassNotFoundException { String classPath = System.getProperty("java.class.path"); StringTokenizer st = new StringTokenizer(classPath, ":"); List<URL> urls = new ArrayList<URL>(); while (st.hasMoreTokens()) { String u = st.nextToken(); ...
void function() throws ClassNotFoundException { String classPath = System.getProperty(STR); StringTokenizer st = new StringTokenizer(classPath, ":"); List<URL> urls = new ArrayList<URL>(); while (st.hasMoreTokens()) { String u = st.nextToken(); try { if (!u.endsWith(".jar")) { u += "/"; } URL url = new URL("file: urls....
/** * Load classes (TestCase, @Before and @After with custom class loader. * * @throws ClassNotFoundException the class not found exception */
Load classes (TestCase, @Before and @After with custom class loader
loadClassesWithCustomClassLoader
{ "repo_name": "prasi-in/geode", "path": "extensions/geode-modules-session/src/test/java/org/apache/geode/modules/session/junit/PerTestClassLoaderRunner.java", "license": "apache-2.0", "size": 8077 }
[ "java.net.MalformedURLException", "java.util.ArrayList", "java.util.List", "java.util.StringTokenizer", "org.junit.After", "org.junit.Before", "org.junit.Rule", "org.junit.rules.MethodRule", "org.junit.rules.TestRule", "org.junit.runners.model.TestClass" ]
import java.net.MalformedURLException; import java.util.ArrayList; import java.util.List; import java.util.StringTokenizer; import org.junit.After; import org.junit.Before; import org.junit.Rule; import org.junit.rules.MethodRule; import org.junit.rules.TestRule; import org.junit.runners.model.TestClass;
import java.net.*; import java.util.*; import org.junit.*; import org.junit.rules.*; import org.junit.runners.model.*;
[ "java.net", "java.util", "org.junit", "org.junit.rules", "org.junit.runners" ]
java.net; java.util; org.junit; org.junit.rules; org.junit.runners;
1,831,196
public boolean triggerProjectileHit(ProjectileHitEvent event) { return false; }
boolean function(ProjectileHitEvent event) { return false; }
/** * Triggers projectile hit. * * @param event event * @return true if triggered */
Triggers projectile hit
triggerProjectileHit
{ "repo_name": "andfRa/Saga", "path": "src/org/saga/abilities/Ability.java", "license": "gpl-3.0", "size": 12442 }
[ "org.bukkit.event.entity.ProjectileHitEvent" ]
import org.bukkit.event.entity.ProjectileHitEvent;
import org.bukkit.event.entity.*;
[ "org.bukkit.event" ]
org.bukkit.event;
2,612,447
public void stop(BundleContext bc) throws Exception { context = null; logger.debug("iec6205621meter binding has been stopped."); }
void function(BundleContext bc) throws Exception { context = null; logger.debug(STR); }
/** * Called whenever the OSGi framework stops our bundle */
Called whenever the OSGi framework stops our bundle
stop
{ "repo_name": "MCherifiOSS/openhab", "path": "bundles/binding/org.openhab.binding.iec6205621meter/src/main/java/org/openhab/binding/iec6205621meter/internal/Iec6205621MeterActivator.java", "license": "epl-1.0", "size": 1440 }
[ "org.osgi.framework.BundleContext" ]
import org.osgi.framework.BundleContext;
import org.osgi.framework.*;
[ "org.osgi.framework" ]
org.osgi.framework;
5,202
public void saveNamespace() throws IOException { saveNamespace(0, 0); }
void function() throws IOException { saveNamespace(0, 0); }
/** * Save namespace image. NameNode always does the checkpoint. */
Save namespace image. NameNode always does the checkpoint
saveNamespace
{ "repo_name": "apurtell/hadoop", "path": "hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DistributedFileSystem.java", "license": "apache-2.0", "size": 137033 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
1,122,472
private void checkNodeADD(UndirectedNode node) { if (node.getDegree() >= this.minDegree && !this.richClub.contains(node)) { this.richClub.add(node); for (IElement iEdge : node.getEdges()) { UndirectedEdge ed = (UndirectedEdge) iEdge; Node n = ed.getDifferingNode(node); if (this.richClub.contains(...
void function(UndirectedNode node) { if (node.getDegree() >= this.minDegree && !this.richClub.contains(node)) { this.richClub.add(node); for (IElement iEdge : node.getEdges()) { UndirectedEdge ed = (UndirectedEdge) iEdge; Node n = ed.getDifferingNode(node); if (this.richClub.contains(n)) { this.richClubEdges += 2; } } ...
/** * Check whether the the Degree changes at node has influence on RichClub * * @param node * @return void */
Check whether the the Degree changes at node has influence on RichClub
checkNodeADD
{ "repo_name": "marcel-stud/DNA", "path": "src/dna/metrics/richClubConnectivity/richClubConnectivityForOneDegree/RichClubConnectivityForOneDegreeU.java", "license": "gpl-3.0", "size": 8208 }
[ "dna.graph.IElement", "dna.graph.edges.UndirectedEdge", "dna.graph.nodes.Node", "dna.graph.nodes.UndirectedNode" ]
import dna.graph.IElement; import dna.graph.edges.UndirectedEdge; import dna.graph.nodes.Node; import dna.graph.nodes.UndirectedNode;
import dna.graph.*; import dna.graph.edges.*; import dna.graph.nodes.*;
[ "dna.graph", "dna.graph.edges", "dna.graph.nodes" ]
dna.graph; dna.graph.edges; dna.graph.nodes;
2,525,335
if (expression != null) { definitions.put(variable, PuzzleEventDispatcher.get().parseExpression(this, expression)); Scanner sc = new Scanner(expression); Pattern pattern = Pattern.compile("\"[^\"]*\"|[A-Za-z0-9._]+"); String token = sc.findInLine(pattern); while (token != null) { ...
if (expression != null) { definitions.put(variable, PuzzleEventDispatcher.get().parseExpression(this, expression)); Scanner sc = new Scanner(expression); Pattern pattern = Pattern.compile("\"[^\"]*\" [A-Za-z0-9._]+STR' && token.contains(".")) { this.dependencies.add(token.substring(0, token.lastIndexOf('.'))); } token ...
/** * defines a property * * @param variable name of property * @param expression expression */
defines a property
defineProperty
{ "repo_name": "AntumDeluge/arianne-stendhal", "path": "src/games/stendhal/server/entity/mapstuff/puzzle/PuzzleBuildingBlock.java", "license": "gpl-2.0", "size": 5035 }
[ "java.util.Scanner", "java.util.regex.Pattern" ]
import java.util.Scanner; import java.util.regex.Pattern;
import java.util.*; import java.util.regex.*;
[ "java.util" ]
java.util;
1,603,264
@Override public void updateString(int columnIndex, String x) throws SQLException { synchronized (checkClosed().getConnectionMutex()) { if (!this.onInsertRow) { if (!this.doingUpdates) { this.doingUpdates = true; syncUpdate(); ...
void function(int columnIndex, String x) throws SQLException { synchronized (checkClosed().getConnectionMutex()) { if (!this.onInsertRow) { if (!this.doingUpdates) { this.doingUpdates = true; syncUpdate(); } this.updater.setString(columnIndex, x); } else { this.inserter.setString(columnIndex, x); if (x == null) { this....
/** * JDBC 2.0 Update a column with a String value. The updateXXX() methods are * used to update column values in the current row, or the insert row. The * updateXXX() methods do not update the underlying database, instead the * updateRow() or insertRow() methods are called to update the database. ...
JDBC 2.0 Update a column with a String value. The updateXXX() methods are used to update column values in the current row, or the insert row. The updateXXX() methods do not update the underlying database, instead the updateRow() or insertRow() methods are called to update the database
updateString
{ "repo_name": "scopej/mysql-connector-j", "path": "src/com/mysql/jdbc/UpdatableResultSet.java", "license": "gpl-2.0", "size": 96615 }
[ "java.sql.SQLException" ]
import java.sql.SQLException;
import java.sql.*;
[ "java.sql" ]
java.sql;
13,455
@Exported @QuickSilver public RunT getLastBuild() { SortedMap<Integer, ? extends RunT> runs = _getRuns(); if (runs.isEmpty()) return null; return runs.get(runs.firstKey()); }
RunT function() { SortedMap<Integer, ? extends RunT> runs = _getRuns(); if (runs.isEmpty()) return null; return runs.get(runs.firstKey()); }
/** * Returns the last build. * @see LazyBuildMixIn#getLastBuild */
Returns the last build
getLastBuild
{ "repo_name": "ndeloof/jenkins", "path": "core/src/main/java/hudson/model/Job.java", "license": "mit", "size": 56342 }
[ "java.util.SortedMap" ]
import java.util.SortedMap;
import java.util.*;
[ "java.util" ]
java.util;
462,723
@VisibleForTesting public List<String> getArguments() { return ImmutableList.copyOf(argv.arguments()); }
List<String> function() { return ImmutableList.copyOf(argv.arguments()); }
/** * Returns the (immutable) list of all arguments, including the command name, argv[0]. */
Returns the (immutable) list of all arguments, including the command name, argv[0]
getArguments
{ "repo_name": "vt09/bazel", "path": "src/main/java/com/google/devtools/build/lib/analysis/actions/SpawnAction.java", "license": "apache-2.0", "size": 33167 }
[ "com.google.common.collect.ImmutableList", "java.util.List" ]
import com.google.common.collect.ImmutableList; import java.util.List;
import com.google.common.collect.*; import java.util.*;
[ "com.google.common", "java.util" ]
com.google.common; java.util;
2,071,022
public static void convolve(Kernel kernel, int[] inPixels, int[] outPixels, int width, int height, int edgeAction) { convolve(kernel, inPixels, outPixels, width, height, true, edgeAction); }
static void function(Kernel kernel, int[] inPixels, int[] outPixels, int width, int height, int edgeAction) { convolve(kernel, inPixels, outPixels, width, height, true, edgeAction); }
/** * Convolve a block of pixels. * @param kernel the kernel * @param inPixels the input pixels * @param outPixels the output pixels * @param width the width * @param height the height * @param edgeAction what to do at the edges */
Convolve a block of pixels
convolve
{ "repo_name": "ysaak/wall-creator", "path": "src/main/java/wallmanager/ui/graphics/filters/ConvolveFilter.java", "license": "mit", "size": 12249 }
[ "java.awt.image.Kernel" ]
import java.awt.image.Kernel;
import java.awt.image.*;
[ "java.awt" ]
java.awt;
539,041
@Override public List<OnmsResource> getResourceListById(String id) throws IllegalArgumentException, ObjectRetrievalFailureException { OnmsResource topLevelResource = null; Pattern p = Pattern.compile("([^\\[]+)\\[([^\\]]*)\\](?:\\.|$)"); Matcher m = p.matcher(id); StringBuffer s...
List<OnmsResource> function(String id) throws IllegalArgumentException, ObjectRetrievalFailureException { OnmsResource topLevelResource = null; Pattern p = Pattern.compile(STR); Matcher m = p.matcher(id); StringBuffer sb = new StringBuffer(); while (m.find()) { String resourceTypeName = DefaultResourceDao.decode(m.grou...
/** * Fetch a specific list of resources by string ID. * @return Resources or null if resources cannot be found. * @throws IllegalArgumentException When the resource ID string does not match the expected regex pattern * @throws ObjectRetrievalFailureException If any exceptions are thrown while searc...
Fetch a specific list of resources by string ID
getResourceListById
{ "repo_name": "rfdrake/opennms", "path": "opennms-dao/src/main/java/org/opennms/netmgt/dao/support/DefaultResourceDao.java", "license": "gpl-2.0", "size": 32581 }
[ "java.util.List", "java.util.regex.Matcher", "java.util.regex.Pattern", "org.opennms.netmgt.model.OnmsResource", "org.springframework.orm.ObjectRetrievalFailureException" ]
import java.util.List; import java.util.regex.Matcher; import java.util.regex.Pattern; import org.opennms.netmgt.model.OnmsResource; import org.springframework.orm.ObjectRetrievalFailureException;
import java.util.*; import java.util.regex.*; import org.opennms.netmgt.model.*; import org.springframework.orm.*;
[ "java.util", "org.opennms.netmgt", "org.springframework.orm" ]
java.util; org.opennms.netmgt; org.springframework.orm;
2,459,739
@Deprecated @Override double getDouble(int columnIndex) throws SQLException;
double getDouble(int columnIndex) throws SQLException;
/** * Use {@link #getDoubleOrNull(int)} or {@link #getDoubleOrZero(int)} instead. */
Use <code>#getDoubleOrNull(int)</code> or <code>#getDoubleOrZero(int)</code> instead
getDouble
{ "repo_name": "spincast/spincast-framework", "path": "spincast-plugins/spincast-plugins-jdbc-parent/spincast-plugins-jdbc/src/main/java/org/spincast/plugins/jdbc/SpincastResultSet.java", "license": "apache-2.0", "size": 7942 }
[ "java.sql.SQLException" ]
import java.sql.SQLException;
import java.sql.*;
[ "java.sql" ]
java.sql;
2,568,680
public List<ServiceHandle> query(final Context context, final String host) throws Exception { String urlBase = "http://" + host + "/" + context.getProperties().get(HttpInvokerSilverService.INVOKER_URL) + "/query"; HttpURLConnection con = (HttpURLConnection) new URL(urlBase).openConnection(); con.s...
List<ServiceHandle> function(final Context context, final String host) throws Exception { String urlBase = STRPOST"); con.setDoInput(true); con.setDoOutput(true); con.connect(); JsonWriter jsonWriter = new JsonWriter(con.getOutputStream()); jsonWriter.write(this); JsonReader jsonReader = new JsonReader(con.getInputStre...
/** * Queries host and retrieves all service handles * * @param context * context of a host * @param host * address of a host * @return a list of a service handles * @throws Exception * when something went wrong */
Queries host and retrieves all service handles
query
{ "repo_name": "RadekKoubsky/SilverWare", "path": "microservices/src/main/java/io/silverware/microservices/MicroserviceMetaData.java", "license": "apache-2.0", "size": 7063 }
[ "com.cedarsoftware.util.io.JsonReader", "com.cedarsoftware.util.io.JsonWriter", "io.silverware.microservices.silver.cluster.ServiceHandle", "java.util.List" ]
import com.cedarsoftware.util.io.JsonReader; import com.cedarsoftware.util.io.JsonWriter; import io.silverware.microservices.silver.cluster.ServiceHandle; import java.util.List;
import com.cedarsoftware.util.io.*; import io.silverware.microservices.silver.cluster.*; import java.util.*;
[ "com.cedarsoftware.util", "io.silverware.microservices", "java.util" ]
com.cedarsoftware.util; io.silverware.microservices; java.util;
1,117,955
protected void handleChangedResources() { if (!changedResources.isEmpty() && (!isDirty() || handleDirtyConflict())) { if (isDirty()) { changedResources.addAll(editingDomain.getResourceSet().getResources()); } editingDomain.getCommandStack().flush(); updateProblemIndication = false; for (Resourc...
void function() { if (!changedResources.isEmpty() && (!isDirty() handleDirtyConflict())) { if (isDirty()) { changedResources.addAll(editingDomain.getResourceSet().getResources()); } editingDomain.getCommandStack().flush(); updateProblemIndication = false; for (Resource resource : changedResources) { if (resource.isLoad...
/** * Handles what to do with changed resources on activation. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */
Handles what to do with changed resources on activation.
handleChangedResources
{ "repo_name": "mondo-project/mondo-demo-wt", "path": "DSL-tao/org.mondo.wt.cstudy.editor/src/WTSpec4M/presentation/WTSpec4MEditor.java", "license": "epl-1.0", "size": 54070 }
[ "java.io.IOException", "java.util.Collections", "org.eclipse.emf.ecore.resource.Resource", "org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain", "org.eclipse.jface.viewers.StructuredSelection" ]
import java.io.IOException; import java.util.Collections; import org.eclipse.emf.ecore.resource.Resource; import org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain; import org.eclipse.jface.viewers.StructuredSelection;
import java.io.*; import java.util.*; import org.eclipse.emf.ecore.resource.*; import org.eclipse.emf.edit.domain.*; import org.eclipse.jface.viewers.*;
[ "java.io", "java.util", "org.eclipse.emf", "org.eclipse.jface" ]
java.io; java.util; org.eclipse.emf; org.eclipse.jface;
980,682
public static List<String> getExchangeInBodies( final List<? extends Exchange> exchanges) { final List<String> bodies = CollectionUtil.newList(); for (final Exchange exchange : exchanges) { bodies.add(exchange.getIn().getBody(String.class)); } return bodies; }
static List<String> function( final List<? extends Exchange> exchanges) { final List<String> bodies = CollectionUtil.newList(); for (final Exchange exchange : exchanges) { bodies.add(exchange.getIn().getBody(String.class)); } return bodies; }
/** * Return the list of bodies of the IN parts of a list of exchanges. * * @param exchanges * input message * @return the list [exchanges[0].getIn()'s body,...,exchanges[end].getIn()'s body] */
Return the list of bodies of the IN parts of a list of exchanges
getExchangeInBodies
{ "repo_name": "openfurther/further-open-core", "path": "core/core-camel/src/main/java/edu/utah/further/core/camel/CamelUtil.java", "license": "apache-2.0", "size": 8785 }
[ "edu.utah.further.core.api.collections.CollectionUtil", "java.util.List", "org.apache.camel.Exchange" ]
import edu.utah.further.core.api.collections.CollectionUtil; import java.util.List; import org.apache.camel.Exchange;
import edu.utah.further.core.api.collections.*; import java.util.*; import org.apache.camel.*;
[ "edu.utah.further", "java.util", "org.apache.camel" ]
edu.utah.further; java.util; org.apache.camel;
2,444,167
public static ims.oncology.configuration.domain.objects.OtherClassificationValue extractOtherClassificationValue(ims.domain.ILightweightDomainFactory domainFactory, ims.clinicaladmin.vo.OtherClassificationValueListVo valueObject) { return extractOtherClassificationValue(domainFactory, valueObject, new HashMap...
static ims.oncology.configuration.domain.objects.OtherClassificationValue function(ims.domain.ILightweightDomainFactory domainFactory, ims.clinicaladmin.vo.OtherClassificationValueListVo valueObject) { return extractOtherClassificationValue(domainFactory, valueObject, new HashMap()); }
/** * Create the domain object from the value object. * @param domainFactory - used to create existing (persistent) domain objects. * @param valueObject - extract the domain object fields from this. */
Create the domain object from the value object
extractOtherClassificationValue
{ "repo_name": "FreudianNM/openMAXIMS", "path": "Source Library/openmaxims_workspace/ValueObjects/src/ims/clinicaladmin/vo/domain/OtherClassificationValueListVoAssembler.java", "license": "agpl-3.0", "size": 18299 }
[ "java.util.HashMap" ]
import java.util.HashMap;
import java.util.*;
[ "java.util" ]
java.util;
920,446
private void buildTransition(final CamiRepository cr, final TransitionHLAPI transition) throws CamiException { try { // The transition basic info final Cn camiTransition = MF.createCn(); final int transitionID = createCamiId(transition.getId(), false, cr); camiTransition.setCn("transition", transitionI...
void function(final CamiRepository cr, final TransitionHLAPI transition) throws CamiException { try { final Cn camiTransition = MF.createCn(); final int transitionID = createCamiId(transition.getId(), false, cr); camiTransition.setCn(STR, transitionID); cr.addCommand(camiTransition); if (transition.getNodegraphicsHLAPI...
/** * Buid a Cami transition from a PNML PT transition. * * @param cr * the cami repository of the Cami model being uilt * @param transition * the PNML transition * @throws CamiException * CamiException. */
Buid a Cami transition from a PNML PT transition
buildTransition
{ "repo_name": "lhillah/camipnml", "path": "cpnami2-cpnami2/src/fr/lip6/move/cpnami/pnml/p2c/PTNet2CamiModel.java", "license": "epl-1.0", "size": 22293 }
[ "fr.lip6.move.pnml.cpnami.cami.CamiRepository", "fr.lip6.move.pnml.cpnami.cami.impl.CamiRepositoryImpl", "fr.lip6.move.pnml.cpnami.cami.model.Cn", "fr.lip6.move.pnml.cpnami.cami.model.Po", "fr.lip6.move.pnml.cpnami.exceptions.CamiException", "fr.lip6.move.pnml.ptnet.hlapi.TransitionHLAPI" ]
import fr.lip6.move.pnml.cpnami.cami.CamiRepository; import fr.lip6.move.pnml.cpnami.cami.impl.CamiRepositoryImpl; import fr.lip6.move.pnml.cpnami.cami.model.Cn; import fr.lip6.move.pnml.cpnami.cami.model.Po; import fr.lip6.move.pnml.cpnami.exceptions.CamiException; import fr.lip6.move.pnml.ptnet.hlapi.TransitionHLAPI;
import fr.lip6.move.pnml.cpnami.cami.*; import fr.lip6.move.pnml.cpnami.cami.impl.*; import fr.lip6.move.pnml.cpnami.cami.model.*; import fr.lip6.move.pnml.cpnami.exceptions.*; import fr.lip6.move.pnml.ptnet.hlapi.*;
[ "fr.lip6.move" ]
fr.lip6.move;
458,596
Map<Integer, Color> getActiveChannelsColorMap() { List<Integer> l = getActiveChannels(); Map<Integer, Color> m = new HashMap<Integer, Color>(l.size()); Iterator<Integer> i = l.iterator(); Integer index; while (i.hasNext()) { index = i.next(); m.put(index, getChannelColor(index.intValue())); } r...
Map<Integer, Color> getActiveChannelsColorMap() { List<Integer> l = getActiveChannels(); Map<Integer, Color> m = new HashMap<Integer, Color>(l.size()); Iterator<Integer> i = l.iterator(); Integer index; while (i.hasNext()) { index = i.next(); m.put(index, getChannelColor(index.intValue())); } return m; }
/** * Returns a collection of pairs * (active channel's index, active channel's color). * * @return See above. */
Returns a collection of pairs (active channel's index, active channel's color)
getActiveChannelsColorMap
{ "repo_name": "MontpellierRessourcesImagerie/openmicroscopy", "path": "components/insight/SRC/org/openmicroscopy/shoola/agents/imviewer/view/ImViewerModel.java", "license": "gpl-2.0", "size": 85080 }
[ "java.awt.Color", "java.util.HashMap", "java.util.Iterator", "java.util.List", "java.util.Map" ]
import java.awt.Color; import java.util.HashMap; import java.util.Iterator; import java.util.List; import java.util.Map;
import java.awt.*; import java.util.*;
[ "java.awt", "java.util" ]
java.awt; java.util;
2,881,882
public String getDefaultsPackageContent(OptionsClassProvider optionsProvider) { return ruleClassProvider.getDefaultsPackageContent(optionsProvider); }
String function(OptionsClassProvider optionsProvider) { return ruleClassProvider.getDefaultsPackageContent(optionsProvider); }
/** * Returns the defaults package for the given options taken from an optionsProvider. */
Returns the defaults package for the given options taken from an optionsProvider
getDefaultsPackageContent
{ "repo_name": "joshua0pang/bazel", "path": "src/main/java/com/google/devtools/build/lib/runtime/BlazeRuntime.java", "license": "apache-2.0", "size": 63737 }
[ "com.google.devtools.common.options.OptionsClassProvider" ]
import com.google.devtools.common.options.OptionsClassProvider;
import com.google.devtools.common.options.*;
[ "com.google.devtools" ]
com.google.devtools;
1,140,354
return UtilJdbc.getCellsFromObject(entity, this.jdbcNeo4JDeepJobConfig); }
return UtilJdbc.getCellsFromObject(entity, this.jdbcNeo4JDeepJobConfig); }
/** * Transforms a database row represented as a Map into a Cells object. * @param entity Database row represented as a Map of column name:column value. * @return Cells object with database row data. */
Transforms a database row represented as a Map into a Cells object
transformElement
{ "repo_name": "Stratio/deep-spark", "path": "deep-jdbc/src/main/java/com/stratio/deep/jdbc/extractor/JdbcNeo4JNativeCellExtractor.java", "license": "apache-2.0", "size": 2061 }
[ "com.stratio.deep.jdbc.utils.UtilJdbc" ]
import com.stratio.deep.jdbc.utils.UtilJdbc;
import com.stratio.deep.jdbc.utils.*;
[ "com.stratio.deep" ]
com.stratio.deep;
97,362
private void copyFormat (int AD_PrintFormat_ID, int To_Client_ID) { MPrintFormat pf = MPrintFormat.copyToClient(Env.getCtx(), AD_PrintFormat_ID, To_Client_ID); launchReport (pf); } // copyFormatFromClient
void function (int AD_PrintFormat_ID, int To_Client_ID) { MPrintFormat pf = MPrintFormat.copyToClient(Env.getCtx(), AD_PrintFormat_ID, To_Client_ID); launchReport (pf); }
/** * Copy existing Format * @param AD_PrintFormat_ID print format * @param To_Client_ID to client */
Copy existing Format
copyFormat
{ "repo_name": "erpcya/adempierePOS", "path": "client/src/org/compiere/print/AReport.java", "license": "gpl-2.0", "size": 9150 }
[ "org.compiere.util.Env" ]
import org.compiere.util.Env;
import org.compiere.util.*;
[ "org.compiere.util" ]
org.compiere.util;
2,189,006
public void write(char cbuf[], int off, int len) throws IOException { if (!addedBOM) { super.write(bom,0,1); addedBOM=true; } super.write(cbuf,off,len); }
void function(char cbuf[], int off, int len) throws IOException { if (!addedBOM) { super.write(bom,0,1); addedBOM=true; } super.write(cbuf,off,len); }
/** * Write a portion of an array of characters. * * @param cbuf Array of characters * @param off Offset from which to start writing characters * @param len Number of characters to write * * @exception java.io.IOException If an I/O error occurs */
Write a portion of an array of characters
write
{ "repo_name": "sics-sse/moped", "path": "squawk/phoneme/midp/src/i18n/i18n_main/reference/classes/com/sun/cldc/i18n/j2me/UTF_16_Writer.java", "license": "gpl-2.0", "size": 3315 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
2,003,079
Set<String> getKeys();
Set<String> getKeys();
/** * Returns all property keys as a set. * * @return the property keys * @since 0.9.7 */
Returns all property keys as a set
getKeys
{ "repo_name": "slu-it/webtester-core", "path": "webtester-core/src/main/java/info/novatec/testit/webtester/api/config/Configuration.java", "license": "apache-2.0", "size": 15597 }
[ "java.util.Set" ]
import java.util.Set;
import java.util.*;
[ "java.util" ]
java.util;
2,517,060
public ResultSet getSchemas() throws SQLException { try { debugCodeCall("getSchemas"); checkClosed(); PreparedStatement prep = conn .prepareAutoCloseStatement("SELECT " + "SCHEMA_NAME TABLE_SCHEM, " ...
ResultSet function() throws SQLException { try { debugCodeCall(STR); checkClosed(); PreparedStatement prep = conn .prepareAutoCloseStatement(STR + STR + STR +STR + STR + STR); return prep.executeQuery(); } catch (Exception e) { throw logAndConvert(e); } }
/** * Gets the list of schemas. * The result set is sorted by TABLE_SCHEM. * * <ul> * <li>1 TABLE_SCHEM (String) schema name * </li><li>2 TABLE_CATALOG (String) catalog name * </li><li>3 IS_DEFAULT (boolean) if this is the default schema * </li></ul> * * @return the sch...
Gets the list of schemas. The result set is sorted by TABLE_SCHEM. 1 TABLE_SCHEM (String) schema name 2 TABLE_CATALOG (String) catalog name 3 IS_DEFAULT (boolean) if this is the default schema
getSchemas
{ "repo_name": "titus08/frostwire-desktop", "path": "lib/jars-src/h2-1.3.164/org/h2/jdbc/JdbcDatabaseMetaData.java", "license": "gpl-3.0", "size": 96979 }
[ "java.sql.PreparedStatement", "java.sql.ResultSet", "java.sql.SQLException" ]
import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException;
import java.sql.*;
[ "java.sql" ]
java.sql;
1,924,455
@Override public boolean schemaExists() { LOG.info("Verifying schemas."); TableDescription success = null; if (mapping.getTables().isEmpty()) throw new IllegalStateException("There are not tables defined."); if (preferredSchema == null){ LOG.debug("Verifying schemas"); if (mapping.getTables().isE...
boolean function() { LOG.info(STR); TableDescription success = null; if (mapping.getTables().isEmpty()) throw new IllegalStateException(STR); if (preferredSchema == null){ LOG.debug(STR); if (mapping.getTables().isEmpty()) throw new IllegalStateException(STR); for(String tableName : mapping.getTables().keySet()){ succe...
/** * Verifies if the specified schemas exist * @throws IOException */
Verifies if the specified schemas exist
schemaExists
{ "repo_name": "infospace/gora", "path": "gora-dynamodb/src/main/java/org/apache/gora/dynamodb/store/DynamoDBStore.java", "license": "apache-2.0", "size": 28006 }
[ "com.amazonaws.services.dynamodb.model.TableDescription" ]
import com.amazonaws.services.dynamodb.model.TableDescription;
import com.amazonaws.services.dynamodb.model.*;
[ "com.amazonaws.services" ]
com.amazonaws.services;
2,853,431
public Image getImage() { genImage(); return image; }
Image function() { genImage(); return image; }
/** * Get the image generated for this gradient * * @return The image generated for the gradient */
Get the image generated for this gradient
getImage
{ "repo_name": "dbank-so/fadableUnicodeFont", "path": "src/org/newdawn/slick/svg/Gradient.java", "license": "bsd-3-clause", "size": 6855 }
[ "org.newdawn.slick.Image" ]
import org.newdawn.slick.Image;
import org.newdawn.slick.*;
[ "org.newdawn.slick" ]
org.newdawn.slick;
2,826,421
boolean addImplementedInterface(JSTypeExpression interfaceName) { lazyInitInfo(); if (info.implementedInterfaces == null) { info.implementedInterfaces = new ArrayList<>(2); } if (info.implementedInterfaces.contains(interfaceName)) { return false; } info.implementedInterfaces.add(in...
boolean addImplementedInterface(JSTypeExpression interfaceName) { lazyInitInfo(); if (info.implementedInterfaces == null) { info.implementedInterfaces = new ArrayList<>(2); } if (info.implementedInterfaces.contains(interfaceName)) { return false; } info.implementedInterfaces.add(interfaceName); return true; }
/** * Adds an implemented interface. Returns whether the interface was added. If * the interface was already present in the list, it won't get added again. */
Adds an implemented interface. Returns whether the interface was added. If the interface was already present in the list, it won't get added again
addImplementedInterface
{ "repo_name": "anomaly/closure-compiler", "path": "src/com/google/javascript/rhino/JSDocInfo.java", "license": "apache-2.0", "size": 60966 }
[ "java.util.ArrayList" ]
import java.util.ArrayList;
import java.util.*;
[ "java.util" ]
java.util;
2,057,537
public static boolean setListSelection(DrawerBuilder drawer, int position, boolean fireOnClick, IDrawerItem drawerItem) { if (position >= -1) { //predefine selection (should be the first element if (drawer.mListView != null && (position + drawer.mHeaderOffset) > -1) { ...
static boolean function(DrawerBuilder drawer, int position, boolean fireOnClick, IDrawerItem drawerItem) { if (position >= -1) { if (drawer.mListView != null && (position + drawer.mHeaderOffset) > -1) { drawer.resetStickyFooterSelection(); drawer.mListView.setSelection(position + drawer.mHeaderOffset); drawer.mListView...
/** * helper method to set the selection in the list * * @param drawer * @param position * @param fireOnClick * @param drawerItem * @return */
helper method to set the selection in the list
setListSelection
{ "repo_name": "ekamoto/MaterialDrawerAndroid", "path": "library/src/main/java/com/mikepenz/materialdrawer/DrawerUtils.java", "license": "apache-2.0", "size": 20919 }
[ "com.mikepenz.materialdrawer.model.interfaces.IDrawerItem" ]
import com.mikepenz.materialdrawer.model.interfaces.IDrawerItem;
import com.mikepenz.materialdrawer.model.interfaces.*;
[ "com.mikepenz.materialdrawer" ]
com.mikepenz.materialdrawer;
558,275
public Operation delete(OperationOption... options) { return compute.deleteSubnetwork(getSubnetworkId(), options); }
Operation function(OperationOption... options) { return compute.deleteSubnetwork(getSubnetworkId(), options); }
/** * Deletes this subnetwork. If this subnetwork was auto-generated deletion will fail. * * @return an operation object if delete request was successfully sent, {@code null} if the * subnetwork was not found * @throws ComputeException upon failure */
Deletes this subnetwork. If this subnetwork was auto-generated deletion will fail
delete
{ "repo_name": "shinfan/gcloud-java", "path": "google-cloud-compute/src/main/java/com/google/cloud/compute/Subnetwork.java", "license": "apache-2.0", "size": 5803 }
[ "com.google.cloud.compute.Compute" ]
import com.google.cloud.compute.Compute;
import com.google.cloud.compute.*;
[ "com.google.cloud" ]
com.google.cloud;
560,606
public void setMessageContentEditParams(int seconds, boolean param) { SharedPreferences preferences = getSettings(); SharedPreferences.Editor editor = preferences.edit(); //Firsts Checks if maximum content edit limit is already saved or not if (!preferences.getBoolean(Constants.IS_C...
void function(int seconds, boolean param) { SharedPreferences preferences = getSettings(); SharedPreferences.Editor editor = preferences.edit(); if (!preferences.getBoolean(Constants.IS_CONTENT_EDIT_PARAM_SAVED, false)) { editor.putBoolean(Constants.IS_EDITING_ALLOWED, param); editor.putInt(Constants.MAXIMUM_CONTENT_ED...
/** * Sets message content editing parameters * * @param seconds time limit in seconds for editing message * @param param parameter indicating editing message is allowed or not */
Sets message content editing parameters
setMessageContentEditParams
{ "repo_name": "zulip/zulip-android", "path": "app/src/main/java/com/zulip/android/ZulipApp.java", "license": "apache-2.0", "size": 24182 }
[ "android.content.SharedPreferences", "com.zulip.android.util.Constants" ]
import android.content.SharedPreferences; import com.zulip.android.util.Constants;
import android.content.*; import com.zulip.android.util.*;
[ "android.content", "com.zulip.android" ]
android.content; com.zulip.android;
1,362,031
public void closeAllSubscriptionsBoundToQueue(String storageQueueName) throws AndesException { Query<AndesSubscription> subscriptionQuery = equal(AndesSubscription .STORAGE_QUEUE_NAME, storageQueueName); Iterable<AndesSubscription> subscriptions = subscriptionRegistry...
void function(String storageQueueName) throws AndesException { Query<AndesSubscription> subscriptionQuery = equal(AndesSubscription .STORAGE_QUEUE_NAME, storageQueueName); Iterable<AndesSubscription> subscriptions = subscriptionRegistry.exucuteQuery(subscriptionQuery); for (AndesSubscription subscription : subscription...
/** * Remove all Subscriber Connections and Subscriptions (where necessary) that is bound to the * queue specified. * * @param storageQueueName name of the storageQueue * @throws SubscriptionException */
Remove all Subscriber Connections and Subscriptions (where necessary) that is bound to the queue specified
closeAllSubscriptionsBoundToQueue
{ "repo_name": "a5anka/andes", "path": "modules/andes-core/broker/src/main/java/org/wso2/andes/kernel/subscription/AndesSubscriptionManager.java", "license": "apache-2.0", "size": 51999 }
[ "com.googlecode.cqengine.query.Query", "com.googlecode.cqengine.query.QueryFactory", "org.wso2.andes.kernel.AndesException" ]
import com.googlecode.cqengine.query.Query; import com.googlecode.cqengine.query.QueryFactory; import org.wso2.andes.kernel.AndesException;
import com.googlecode.cqengine.query.*; import org.wso2.andes.kernel.*;
[ "com.googlecode.cqengine", "org.wso2.andes" ]
com.googlecode.cqengine; org.wso2.andes;
2,285,302
public void parseXContent(XContentParser parser, QueryParseContext context, AggregatorParsers aggParsers, Suggesters suggesters) throws IOException { XContentParser.Token token = parser.currentToken(); String currentFieldName = null; if (token != XContentParser.Token.START_OBJECT &&...
void function(XContentParser parser, QueryParseContext context, AggregatorParsers aggParsers, Suggesters suggesters) throws IOException { XContentParser.Token token = parser.currentToken(); String currentFieldName = null; if (token != XContentParser.Token.START_OBJECT && (token = parser.nextToken()) != XContentParser.T...
/** * Parse some xContent into this SearchSourceBuilder, overwriting any values specified in the xContent. Use this if you need to set up * different defaults than a regular SearchSourceBuilder would have and use * {@link #fromXContent(XContentParser, QueryParseContext, AggregatorParsers, Suggesters)} if...
Parse some xContent into this SearchSourceBuilder, overwriting any values specified in the xContent. Use this if you need to set up different defaults than a regular SearchSourceBuilder would have and use <code>#fromXContent(XContentParser, QueryParseContext, AggregatorParsers, Suggesters)</code> if you have normal def...
parseXContent
{ "repo_name": "clintongormley/elasticsearch", "path": "core/src/main/java/org/elasticsearch/search/builder/SearchSourceBuilder.java", "license": "apache-2.0", "size": 56204 }
[ "com.carrotsearch.hppc.ObjectFloatHashMap", "java.io.IOException", "java.util.ArrayList", "org.elasticsearch.common.ParsingException", "org.elasticsearch.common.xcontent.XContentBuilder", "org.elasticsearch.common.xcontent.XContentFactory", "org.elasticsearch.common.xcontent.XContentParser", "org.elas...
import com.carrotsearch.hppc.ObjectFloatHashMap; import java.io.IOException; import java.util.ArrayList; import org.elasticsearch.common.ParsingException; import org.elasticsearch.common.xcontent.XContentBuilder; import org.elasticsearch.common.xcontent.XContentFactory; import org.elasticsearch.common.xcontent.XContent...
import com.carrotsearch.hppc.*; import java.io.*; import java.util.*; import org.elasticsearch.common.*; import org.elasticsearch.common.xcontent.*; import org.elasticsearch.index.query.*; import org.elasticsearch.index.query.support.*; import org.elasticsearch.search.aggregations.*; import org.elasticsearch.search.fet...
[ "com.carrotsearch.hppc", "java.io", "java.util", "org.elasticsearch.common", "org.elasticsearch.index", "org.elasticsearch.search" ]
com.carrotsearch.hppc; java.io; java.util; org.elasticsearch.common; org.elasticsearch.index; org.elasticsearch.search;
401,168
UnsignedLong oUnsignedLong = null; try { oUnsignedLong = new UnsignedLong(value); } catch (Exception e) { // catch the validation exception } // object is not iNstantiated on bad data value assertNull("validation restriction failed [" + String.valueOf(...
UnsignedLong oUnsignedLong = null; try { oUnsignedLong = new UnsignedLong(value); } catch (Exception e) { } assertNull(STR + String.valueOf(value) + STR, oUnsignedLong); }
/** * Run a failure test. value should be invalid. */
Run a failure test. value should be invalid
runFailTest
{ "repo_name": "apache/axis1-java", "path": "axis-rt-core/src/test/java/test/types/TestUnsignedLong.java", "license": "apache-2.0", "size": 2861 }
[ "org.apache.axis.types.UnsignedLong" ]
import org.apache.axis.types.UnsignedLong;
import org.apache.axis.types.*;
[ "org.apache.axis" ]
org.apache.axis;
2,870,475
void setPadRect(Rectangle2D rect);
void setPadRect(Rectangle2D rect);
/** * Set the current rectangle for padding. * @param rect the new rectangle to use for pad. */
Set the current rectangle for padding
setPadRect
{ "repo_name": "adufilie/flex-sdk", "path": "modules/thirdparty/batik/sources/org/apache/flex/forks/batik/ext/awt/image/renderable/PadRable.java", "license": "apache-2.0", "size": 2120 }
[ "java.awt.geom.Rectangle2D" ]
import java.awt.geom.Rectangle2D;
import java.awt.geom.*;
[ "java.awt" ]
java.awt;
2,331,504
protected MockHttpServletResponse getMockHttpServletResponse(ServletResponse response) { if (response instanceof MockHttpServletResponse) { return (MockHttpServletResponse) response; } if (response instanceof HttpServletResponseWrapper) { return getMockHttpServletResponse(((HttpServletResponseWrapper) re...
MockHttpServletResponse function(ServletResponse response) { if (response instanceof MockHttpServletResponse) { return (MockHttpServletResponse) response; } if (response instanceof HttpServletResponseWrapper) { return getMockHttpServletResponse(((HttpServletResponseWrapper) response).getResponse()); } throw new Illegal...
/** * Obtain the underlying {@link MockHttpServletResponse}, unwrapping * {@link HttpServletResponseWrapper} decorators if necessary. */
Obtain the underlying <code>MockHttpServletResponse</code>, unwrapping <code>HttpServletResponseWrapper</code> decorators if necessary
getMockHttpServletResponse
{ "repo_name": "ind9/gocd", "path": "test/http-mocks/src/main/java/com/thoughtworks/go/http/mocks/MockRequestDispatcher.java", "license": "apache-2.0", "size": 3140 }
[ "javax.servlet.ServletResponse", "javax.servlet.http.HttpServletResponseWrapper" ]
import javax.servlet.ServletResponse; import javax.servlet.http.HttpServletResponseWrapper;
import javax.servlet.*; import javax.servlet.http.*;
[ "javax.servlet" ]
javax.servlet;
335,634
private boolean dynInit (WButtonEditor button) throws Exception { m_DocStatus = (String)m_mTab.getValue("DocStatus"); log.config(m_DocStatus); if (m_mTab.getValue("C_BPartner_ID") == null) { FDialog.error(0, this, "SaveErrorRowNotFound"); return false; } // Is the Trx posted? // Str...
boolean function (WButtonEditor button) throws Exception { m_DocStatus = (String)m_mTab.getValue(STR); log.config(m_DocStatus); if (m_mTab.getValue(STR) == null) { FDialog.error(0, this, STR); return false; } m_DocStatus = (String)m_mTab.getValue(STR); if (m_DocStatus == null) m_DocStatus = STRRESTRVOSTRCLSTRCOSTRWPSTR...
/************************************************************************** * Dynamic Init. * B (Cash) (Currency) * K (CreditCard) Type, Number, Exp, Approval * L (DirectDebit) BPartner_Bank * P (PaymentTerm) PaymentTerm * S (Check) (Currency) CheckNo, Routing * * Currencies are shown, i...
Dynamic Init. B (Cash) (Currency) K (CreditCard) Type, Number, Exp, Approval L (DirectDebit) BPartner_Bank P (PaymentTerm) PaymentTerm S (Check) (Currency) CheckNo, Routing Currencies are shown, if member of EMU
dynInit
{ "repo_name": "erpcya/adempierePOS", "path": "zkwebui/WEB-INF/src/org/adempiere/webui/apps/form/WPayment.java", "license": "gpl-2.0", "size": 52856 }
[ "java.sql.PreparedStatement", "java.sql.ResultSet", "java.sql.SQLException", "java.util.logging.Level", "org.adempiere.webui.editor.WButtonEditor", "org.adempiere.webui.window.FDialog", "org.compiere.model.MRole", "org.compiere.util.DB", "org.compiere.util.KeyNamePair" ]
import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.util.logging.Level; import org.adempiere.webui.editor.WButtonEditor; import org.adempiere.webui.window.FDialog; import org.compiere.model.MRole; import org.compiere.util.DB; import org.compiere.util.KeyNamePair;
import java.sql.*; import java.util.logging.*; import org.adempiere.webui.editor.*; import org.adempiere.webui.window.*; import org.compiere.model.*; import org.compiere.util.*;
[ "java.sql", "java.util", "org.adempiere.webui", "org.compiere.model", "org.compiere.util" ]
java.sql; java.util; org.adempiere.webui; org.compiere.model; org.compiere.util;
319,079
@Override @Deprecated public IPageLinkGenerator bypassPermissions() { throw new IllegalStateException("No backward compatibility available"); }
IPageLinkGenerator function() { throw new IllegalStateException(STR); }
/** * Not implemented */
Not implemented
bypassPermissions
{ "repo_name": "openwide-java/owsi-core-parent", "path": "owsi-core/owsi-core-components/owsi-core-component-wicket-more/src/main/java/fr/openwide/core/wicket/more/link/util/InvalidLinkGenerator.java", "license": "apache-2.0", "size": 6300 }
[ "fr.openwide.core.wicket.more.link.descriptor.generator.IPageLinkGenerator" ]
import fr.openwide.core.wicket.more.link.descriptor.generator.IPageLinkGenerator;
import fr.openwide.core.wicket.more.link.descriptor.generator.*;
[ "fr.openwide.core" ]
fr.openwide.core;
216,080
public java.util.List<fr.lip6.move.pnml.hlpn.cyclicEnumerations.hlapi.PredecessorHLAPI> getSubterm_cyclicEnumerations_PredecessorHLAPI(){ java.util.List<fr.lip6.move.pnml.hlpn.cyclicEnumerations.hlapi.PredecessorHLAPI> retour = new ArrayList<fr.lip6.move.pnml.hlpn.cyclicEnumerations.hlapi.PredecessorHLAPI>(); ...
java.util.List<fr.lip6.move.pnml.hlpn.cyclicEnumerations.hlapi.PredecessorHLAPI> function(){ java.util.List<fr.lip6.move.pnml.hlpn.cyclicEnumerations.hlapi.PredecessorHLAPI> retour = new ArrayList<fr.lip6.move.pnml.hlpn.cyclicEnumerations.hlapi.PredecessorHLAPI>(); for (Term elemnt : getSubterm()) { if(elemnt.getClass(...
/** * This accessor return a list of encapsulated subelement, only of PredecessorHLAPI kind. * WARNING : this method can creates a lot of new object in memory. */
This accessor return a list of encapsulated subelement, only of PredecessorHLAPI kind. WARNING : this method can creates a lot of new object in memory
getSubterm_cyclicEnumerations_PredecessorHLAPI
{ "repo_name": "lhillah/pnmlframework", "path": "pnmlFw-HLPN/src/fr/lip6/move/pnml/hlpn/lists/hlapi/MakeListHLAPI.java", "license": "epl-1.0", "size": 113889 }
[ "fr.lip6.move.pnml.hlpn.terms.Term", "java.util.ArrayList", "java.util.List" ]
import fr.lip6.move.pnml.hlpn.terms.Term; import java.util.ArrayList; import java.util.List;
import fr.lip6.move.pnml.hlpn.terms.*; import java.util.*;
[ "fr.lip6.move", "java.util" ]
fr.lip6.move; java.util;
123,448
public void parse(final InputStream inputStream, final String encoding) throws IOException, ResourceStreamNotFoundException { try { xmlReader = new XmlReader(new BufferedInputStream(inputStream, 4000), encoding); input = new FullyBufferedReader(xmlReader); } finally { inputStream.close(); i...
void function(final InputStream inputStream, final String encoding) throws IOException, ResourceStreamNotFoundException { try { xmlReader = new XmlReader(new BufferedInputStream(inputStream, 4000), encoding); input = new FullyBufferedReader(xmlReader); } finally { inputStream.close(); if (xmlReader != null) { xmlReader...
/** * Reads and parses markup from an input stream * * @param inputStream * The input stream to read and parse * @param encoding * The default character encoding of the input * @throws IOException * @throws ResourceStreamNotFoundException */
Reads and parses markup from an input stream
parse
{ "repo_name": "astubbs/wicket.get-portals2", "path": "wicket/src/main/java/org/apache/wicket/markup/parser/XmlPullParser.java", "license": "apache-2.0", "size": 16882 }
[ "java.io.BufferedInputStream", "java.io.IOException", "java.io.InputStream", "org.apache.wicket.util.io.FullyBufferedReader", "org.apache.wicket.util.io.XmlReader", "org.apache.wicket.util.resource.ResourceStreamNotFoundException" ]
import java.io.BufferedInputStream; import java.io.IOException; import java.io.InputStream; import org.apache.wicket.util.io.FullyBufferedReader; import org.apache.wicket.util.io.XmlReader; import org.apache.wicket.util.resource.ResourceStreamNotFoundException;
import java.io.*; import org.apache.wicket.util.io.*; import org.apache.wicket.util.resource.*;
[ "java.io", "org.apache.wicket" ]
java.io; org.apache.wicket;
986,457
void setPeriod(long period, TimeUnit unit);
void setPeriod(long period, TimeUnit unit);
/** * Sets the period. * * @param period * Period to set (can be {@code 0}). * @param unit * TimeUnit period is in. */
Sets the period
setPeriod
{ "repo_name": "dting/JALSE", "path": "src/main/java/jalse/actions/SchedulableActionContext.java", "license": "apache-2.0", "size": 2112 }
[ "java.util.concurrent.TimeUnit" ]
import java.util.concurrent.TimeUnit;
import java.util.concurrent.*;
[ "java.util" ]
java.util;
1,461,745
private Index updateUserProfile(UserProfileManager profileManager) throws GetFailedException, PutFailedException { String randomPID = UUID.randomUUID().toString(); UserProfile userProfile = profileManager.getUserProfile(randomPID, true); Index toDelete = userProfile.getFileById(fileKey); if (toDelete == nul...
Index function(UserProfileManager profileManager) throws GetFailedException, PutFailedException { String randomPID = UUID.randomUUID().toString(); UserProfile userProfile = profileManager.getUserProfile(randomPID, true); Index toDelete = userProfile.getFileById(fileKey); if (toDelete == null) { logger.warn(STR); return...
/** * Removes the {@link FolderIndex} in the user profile * * @param profileManager * @return the removed node */
Removes the <code>FolderIndex</code> in the user profile
updateUserProfile
{ "repo_name": "albu89/Hive2Hive-dev", "path": "org.hive2hive.core/src/main/java/org/hive2hive/core/processes/files/delete/DeleteUserProfileTask.java", "license": "mit", "size": 4496 }
[ "java.util.UUID", "org.hive2hive.core.exceptions.GetFailedException", "org.hive2hive.core.exceptions.PutFailedException", "org.hive2hive.core.model.FolderIndex", "org.hive2hive.core.model.Index", "org.hive2hive.core.model.UserProfile", "org.hive2hive.core.network.data.UserProfileManager" ]
import java.util.UUID; import org.hive2hive.core.exceptions.GetFailedException; import org.hive2hive.core.exceptions.PutFailedException; import org.hive2hive.core.model.FolderIndex; import org.hive2hive.core.model.Index; import org.hive2hive.core.model.UserProfile; import org.hive2hive.core.network.data.UserProfileMana...
import java.util.*; import org.hive2hive.core.exceptions.*; import org.hive2hive.core.model.*; import org.hive2hive.core.network.data.*;
[ "java.util", "org.hive2hive.core" ]
java.util; org.hive2hive.core;
811,644
void setFireworkMeta(FireworkMeta meta);
void setFireworkMeta(FireworkMeta meta);
/** * Apply the provided meta to the fireworks * * @param meta The FireworkMeta to apply */
Apply the provided meta to the fireworks
setFireworkMeta
{ "repo_name": "Scrik/Cauldron-1", "path": "eclipse/cauldron/src/main/java/org/bukkit/entity/Firework.java", "license": "gpl-3.0", "size": 573 }
[ "org.bukkit.inventory.meta.FireworkMeta" ]
import org.bukkit.inventory.meta.FireworkMeta;
import org.bukkit.inventory.meta.*;
[ "org.bukkit.inventory" ]
org.bukkit.inventory;
2,151,025
public void addAndRemoveEventListenerAllEvents() throws Exception { // Create a listener that just adds the events to a list TestActivitiEventListener newListener = new TestActivitiEventListener(); // Add event-listener to dispatcher dispatcher.addEventListener(newListener); ActivitiEntityEventI...
void function() throws Exception { TestActivitiEventListener newListener = new TestActivitiEventListener(); dispatcher.addEventListener(newListener); ActivitiEntityEventImpl event1 = new ActivitiEntityEventImpl(processEngineConfiguration.getTaskEntityManager().create(), ActivitiEventType.ENTITY_CREATED); ActivitiEntity...
/** * Test adding a listener and check if events are sent to it. Also checks that after removal, no events are received. */
Test adding a listener and check if events are sent to it. Also checks that after removal, no events are received
addAndRemoveEventListenerAllEvents
{ "repo_name": "roberthafner/flowable-engine", "path": "modules/flowable-engine/src/test/java/org/activiti/engine/test/api/event/ActivitiEventDispatcherTest.java", "license": "apache-2.0", "size": 11651 }
[ "org.activiti.engine.delegate.event.ActivitiEventType", "org.activiti.engine.delegate.event.impl.ActivitiEntityEventImpl" ]
import org.activiti.engine.delegate.event.ActivitiEventType; import org.activiti.engine.delegate.event.impl.ActivitiEntityEventImpl;
import org.activiti.engine.delegate.event.*; import org.activiti.engine.delegate.event.impl.*;
[ "org.activiti.engine" ]
org.activiti.engine;
2,322,118
public boolean validatePixels_Max(BigInteger pixels, DiagnosticChain diagnostics, Map<Object, Object> context) { boolean result = pixels.compareTo(PIXELS__MAX__VALUE) < 0; if (!result && diagnostics != null) { reportMaxViolation(XhtmlPackage.Literals.PIXELS, pixels, PIXELS__MAX__VALUE, false, diagnostics, ...
boolean function(BigInteger pixels, DiagnosticChain diagnostics, Map<Object, Object> context) { boolean result = pixels.compareTo(PIXELS__MAX__VALUE) < 0; if (!result && diagnostics != null) { reportMaxViolation(XhtmlPackage.Literals.PIXELS, pixels, PIXELS__MAX__VALUE, false, diagnostics, context); } return result; }
/** * Validates the Max constraint of '<em>Pixels</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */
Validates the Max constraint of 'Pixels'.
validatePixels_Max
{ "repo_name": "drbgfc/mdht", "path": "hl7/plugins/org.openhealthtools.mdht.emf.hl7.mif2/src/org/openhealthtools/mdht/emf/w3c/xhtml/util/XhtmlValidator.java", "license": "epl-1.0", "size": 48254 }
[ "java.math.BigInteger", "java.util.Map", "org.eclipse.emf.common.util.DiagnosticChain", "org.openhealthtools.mdht.emf.w3c.xhtml.XhtmlPackage" ]
import java.math.BigInteger; import java.util.Map; import org.eclipse.emf.common.util.DiagnosticChain; import org.openhealthtools.mdht.emf.w3c.xhtml.XhtmlPackage;
import java.math.*; import java.util.*; import org.eclipse.emf.common.util.*; import org.openhealthtools.mdht.emf.w3c.xhtml.*;
[ "java.math", "java.util", "org.eclipse.emf", "org.openhealthtools.mdht" ]
java.math; java.util; org.eclipse.emf; org.openhealthtools.mdht;
524,131
@Override void openDaughterRegion(final Server server, final HRegion daughter) throws IOException, KeeperException { HRegionInfo hri = daughter.getRegionInfo(); LoggingProgressable reporter = server == null ? null : new LoggingProgressable(hri, server.getConfiguration().getLong( "hbase...
void openDaughterRegion(final Server server, final HRegion daughter) throws IOException, KeeperException { HRegionInfo hri = daughter.getRegionInfo(); LoggingProgressable reporter = server == null ? null : new LoggingProgressable(hri, server.getConfiguration().getLong( STR, 10000)); daughter.openHRegion(reporter); } st...
/** * Open daughter regions, add them to online list and update meta. * @param server * @param daughter * @throws IOException * @throws KeeperException */
Open daughter regions, add them to online list and update meta
openDaughterRegion
{ "repo_name": "dawidwys/phoenix", "path": "phoenix-core/src/main/java/org/apache/hadoop/hbase/regionserver/IndexSplitTransaction.java", "license": "apache-2.0", "size": 39073 }
[ "java.io.IOException", "org.apache.hadoop.hbase.HRegionInfo", "org.apache.hadoop.hbase.Server", "org.apache.hadoop.hbase.util.CancelableProgressable", "org.apache.zookeeper.KeeperException" ]
import java.io.IOException; import org.apache.hadoop.hbase.HRegionInfo; import org.apache.hadoop.hbase.Server; import org.apache.hadoop.hbase.util.CancelableProgressable; import org.apache.zookeeper.KeeperException;
import java.io.*; import org.apache.hadoop.hbase.*; import org.apache.hadoop.hbase.util.*; import org.apache.zookeeper.*;
[ "java.io", "org.apache.hadoop", "org.apache.zookeeper" ]
java.io; org.apache.hadoop; org.apache.zookeeper;
2,528,995
@Override public synchronized void acceptDataSet(DataSetEvent e) { // ignore structure only events if (e.isStructureOnly()) { return; } m_visualizeDataSet = new Instances(e.getDataSet()); if (m_visualizeDataSet.classIndex() < 0) { m_visualizeDataSet.setClassIndex(m_visualizeDataSet.n...
synchronized void function(DataSetEvent e) { if (e.isStructureOnly()) { return; } m_visualizeDataSet = new Instances(e.getDataSet()); if (m_visualizeDataSet.classIndex() < 0) { m_visualizeDataSet.setClassIndex(m_visualizeDataSet.numAttributes() - 1); } if (!m_design) { try { setInstances(m_visualizeDataSet); } catch (E...
/** * Accept a data set * * @param e a <code>DataSetEvent</code> value */
Accept a data set
acceptDataSet
{ "repo_name": "ModelWriter/Deliverables", "path": "WP2/D2.5.2_Generation/Jeni/lib/weka-src/src/main/java/weka/gui/beans/DataVisualizer.java", "license": "epl-1.0", "size": 26969 }
[ "java.util.ArrayList", "java.util.EventObject" ]
import java.util.ArrayList; import java.util.EventObject;
import java.util.*;
[ "java.util" ]
java.util;
3,145
public static StreamHeader initialClientToServer(Jid from, Jid to, Locale lang, QName... additionalNamespaces) { // For initial stream headers in both client-to-server and server-to-server communication, the initiating entity MUST include the 'to' attribute and MUST set its value to a domainpart that the i...
static StreamHeader function(Jid from, Jid to, Locale lang, QName... additionalNamespaces) { return initialClientToServer(from, to, lang, STR, additionalNamespaces); }
/** * Creates an initial stream header for client-to-server streams. * * @param from The XMPP identity of the principal controlling the client, i.e., a JID of the form {@code localpart@domainpart>}. * @param to A domainpart that the initiating entity knows or ex...
Creates an initial stream header for client-to-server streams
initialClientToServer
{ "repo_name": "jeozey/XmppServerTester", "path": "xmpp-core/src/main/java/rocks/xmpp/core/stream/model/StreamHeader.java", "license": "mit", "size": 14429 }
[ "java.util.Locale", "javax.xml.namespace.QName", "rocks.xmpp.addr.Jid" ]
import java.util.Locale; import javax.xml.namespace.QName; import rocks.xmpp.addr.Jid;
import java.util.*; import javax.xml.namespace.*; import rocks.xmpp.addr.*;
[ "java.util", "javax.xml", "rocks.xmpp.addr" ]
java.util; javax.xml; rocks.xmpp.addr;
524,646
public static void drawString(JComponent c, Graphics g, String text, int x, int y) { drawString(c, g, text, x, y, false); }
static void function(JComponent c, Graphics g, String text, int x, int y) { drawString(c, g, text, x, y, false); }
/** * Draws the string at the specified location. * * @param c JComponent that will display the string, may be null * @param g Graphics to draw the text to * @param text String to display * @param x X coordinate to draw the text at * @param y Y coordinate to draw the text at */
Draws the string at the specified location
drawString
{ "repo_name": "mirkosertic/Bytecoder", "path": "classlib/java.desktop/src/main/resources/META-INF/modules/java.desktop/classes/sun/swing/SwingUtilities2.java", "license": "apache-2.0", "size": 89457 }
[ "java.awt.Graphics", "javax.swing.JComponent" ]
import java.awt.Graphics; import javax.swing.JComponent;
import java.awt.*; import javax.swing.*;
[ "java.awt", "javax.swing" ]
java.awt; javax.swing;
2,537,560
public List addTabCompletionOptions(ICommandSender p_71516_1_, String[] p_71516_2_) { return p_71516_2_.length == 4 ? getListOfStringsFromIterableMatchingLastWord(p_71516_2_, Block.blockRegistry.getKeys()) : (p_71516_2_.length == 6 ? getListOfStringsMatchingLastWord(p_71516_2_, new String[] {"replace", ...
List function(ICommandSender p_71516_1_, String[] p_71516_2_) { return p_71516_2_.length == 4 ? getListOfStringsFromIterableMatchingLastWord(p_71516_2_, Block.blockRegistry.getKeys()) : (p_71516_2_.length == 6 ? getListOfStringsMatchingLastWord(p_71516_2_, new String[] {STR, STR, "keep"}): null); }
/** * Adds the strings available in this command to the given list of tab completion options. */
Adds the strings available in this command to the given list of tab completion options
addTabCompletionOptions
{ "repo_name": "mviitanen/marsmod", "path": "mcp/src/minecraft_server/net/minecraft/command/server/CommandSetBlock.java", "license": "gpl-2.0", "size": 5052 }
[ "java.util.List", "net.minecraft.block.Block", "net.minecraft.command.ICommandSender" ]
import java.util.List; import net.minecraft.block.Block; import net.minecraft.command.ICommandSender;
import java.util.*; import net.minecraft.block.*; import net.minecraft.command.*;
[ "java.util", "net.minecraft.block", "net.minecraft.command" ]
java.util; net.minecraft.block; net.minecraft.command;
1,178,635
public boolean functionAvailable(String ns, String funcName) throws javax.xml.transform.TransformerException { try { if ( funcName == null ) { String fmsg = XSLMessages.createXPATHMessage( XPATHErrorResources.ER_ARG_CANNOT_BE_NULL, new Object[] {"F...
boolean function(String ns, String funcName) throws javax.xml.transform.TransformerException { try { if ( funcName == null ) { String fmsg = XSLMessages.createXPATHMessage( XPATHErrorResources.ER_ARG_CANNOT_BE_NULL, new Object[] {STR} ); throw new NullPointerException ( fmsg ); } javax.xml.namespace.QName myQName = new...
/** * Is the extension function available? */
Is the extension function available
functionAvailable
{ "repo_name": "shun634501730/java_source_cn", "path": "src_en/com/sun/org/apache/xpath/internal/jaxp/JAXPExtensionsProvider.java", "license": "apache-2.0", "size": 8568 }
[ "com.sun.org.apache.xalan.internal.res.XSLMessages", "com.sun.org.apache.xpath.internal.res.XPATHErrorResources", "javax.xml.namespace.QName", "javax.xml.transform.TransformerException", "javax.xml.xpath.XPathFunction" ]
import com.sun.org.apache.xalan.internal.res.XSLMessages; import com.sun.org.apache.xpath.internal.res.XPATHErrorResources; import javax.xml.namespace.QName; import javax.xml.transform.TransformerException; import javax.xml.xpath.XPathFunction;
import com.sun.org.apache.xalan.internal.res.*; import com.sun.org.apache.xpath.internal.res.*; import javax.xml.namespace.*; import javax.xml.transform.*; import javax.xml.xpath.*;
[ "com.sun.org", "javax.xml" ]
com.sun.org; javax.xml;
521,727
public PhotosMoveQuery move(UserActor actor, int targetAlbumId, int photoId) { return new PhotosMoveQuery(getClient(), actor, targetAlbumId, photoId); }
PhotosMoveQuery function(UserActor actor, int targetAlbumId, int photoId) { return new PhotosMoveQuery(getClient(), actor, targetAlbumId, photoId); }
/** * Moves a photo from one album to another. */
Moves a photo from one album to another
move
{ "repo_name": "kokorin/vk-java-sdk", "path": "sdk/src/main/java/com/vk/api/sdk/actions/Photos.java", "license": "mit", "size": 16647 }
[ "com.vk.api.sdk.client.actors.UserActor", "com.vk.api.sdk.queries.photos.PhotosMoveQuery" ]
import com.vk.api.sdk.client.actors.UserActor; import com.vk.api.sdk.queries.photos.PhotosMoveQuery;
import com.vk.api.sdk.client.actors.*; import com.vk.api.sdk.queries.photos.*;
[ "com.vk.api" ]
com.vk.api;
1,957,939
EList<Widget> getChildren(Sitemap sitemap);
EList<Widget> getChildren(Sitemap sitemap);
/** * this should be used instead of Sitemap.getChildren() as the default * widgets have to be resolved to a concrete widget type. * * @param w the sitemap to retrieve the children for * @return the children of the sitemap */
this should be used instead of Sitemap.getChildren() as the default widgets have to be resolved to a concrete widget type
getChildren
{ "repo_name": "Snickermicker/smarthome", "path": "bundles/ui/org.eclipse.smarthome.ui/src/main/java/org/eclipse/smarthome/ui/items/ItemUIRegistry.java", "license": "epl-1.0", "size": 6496 }
[ "org.eclipse.emf.common.util.EList", "org.eclipse.smarthome.model.sitemap.Sitemap", "org.eclipse.smarthome.model.sitemap.Widget" ]
import org.eclipse.emf.common.util.EList; import org.eclipse.smarthome.model.sitemap.Sitemap; import org.eclipse.smarthome.model.sitemap.Widget;
import org.eclipse.emf.common.util.*; import org.eclipse.smarthome.model.sitemap.*;
[ "org.eclipse.emf", "org.eclipse.smarthome" ]
org.eclipse.emf; org.eclipse.smarthome;
573,203
@TargetApi(VERSION_CODES.GINGERBREAD) public static boolean isExternalStorageRemovable() { if (Utils.hasGingerbread()) { return Environment.isExternalStorageRemovable(); } return true; }
@TargetApi(VERSION_CODES.GINGERBREAD) static boolean function() { if (Utils.hasGingerbread()) { return Environment.isExternalStorageRemovable(); } return true; }
/** * Check if external storage is built-in or removable. * * @return True if external storage is removable (like an SD card), false * otherwise. */
Check if external storage is built-in or removable
isExternalStorageRemovable
{ "repo_name": "hahnjas/DumbDisplayDriver", "path": "Application/src/main/java/se/kth/prodreal/dumbdevices/dumbdisplayhelper/util/ImageCache.java", "license": "apache-2.0", "size": 29264 }
[ "android.annotation.TargetApi", "android.os.Environment" ]
import android.annotation.TargetApi; import android.os.Environment;
import android.annotation.*; import android.os.*;
[ "android.annotation", "android.os" ]
android.annotation; android.os;
2,067,237
public boolean isSuccess() { for (DataTransferProtos.Status reply : proto.getStatusList()) { if (reply != DataTransferProtos.Status.SUCCESS) { return false; } } return true; }
boolean function() { for (DataTransferProtos.Status reply : proto.getStatusList()) { if (reply != DataTransferProtos.Status.SUCCESS) { return false; } } return true; }
/** * Check if this ack contains error status * @return true if all statuses are SUCCESS */
Check if this ack contains error status
isSuccess
{ "repo_name": "ict-carch/hadoop-plus", "path": "hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/protocol/datatransfer/PipelineAck.java", "license": "apache-2.0", "size": 3731 }
[ "org.apache.hadoop.hdfs.protocol.proto.DataTransferProtos" ]
import org.apache.hadoop.hdfs.protocol.proto.DataTransferProtos;
import org.apache.hadoop.hdfs.protocol.proto.*;
[ "org.apache.hadoop" ]
org.apache.hadoop;
1,859,410
public Value removeByNameVariable(String name) { return _byNameVariables.remove(name); }
Value function(String name) { return _byNameVariables.remove(name); }
/** * Removes a variable given the corresponding name * * @param name the variable name * @return the variable value */
Removes a variable given the corresponding name
removeByNameVariable
{ "repo_name": "moriyoshi/quercus-gae", "path": "src/main/java/com/caucho/quercus/lib/db/OracleStatement.java", "license": "gpl-2.0", "size": 5778 }
[ "com.caucho.quercus.env.Value" ]
import com.caucho.quercus.env.Value;
import com.caucho.quercus.env.*;
[ "com.caucho.quercus" ]
com.caucho.quercus;
1,859,821
@Test public void getWithEscapedMappedQueryParams() throws Exception { Map<String, String> inputParams = new HashMap<String, String>(); inputParams.put("name", "us er"); inputParams.put("number", "100"); final Map<String, String> outputParams = new HashMap<String, String>(); ...
void function() throws Exception { Map<String, String> inputParams = new HashMap<String, String>(); inputParams.put("name", STR); inputParams.put(STR, "100"); final Map<String, String> outputParams = new HashMap<String, String>(); final AtomicReference<String> method = new AtomicReference<String>(); handler = new Reque...
/** * Verify GET with escaped query parameters * * @throws Exception */
Verify GET with escaped query parameters
getWithEscapedMappedQueryParams
{ "repo_name": "jiripetrlik/droolsjbpm-integration", "path": "kie-remote/kie-remote-common/src/test/java/org/kie/remote/common/rest/KieRemoteHttpRequestTest.java", "license": "apache-2.0", "size": 77298 }
[ "java.util.HashMap", "java.util.Map", "java.util.concurrent.atomic.AtomicReference" ]
import java.util.HashMap; import java.util.Map; import java.util.concurrent.atomic.AtomicReference;
import java.util.*; import java.util.concurrent.atomic.*;
[ "java.util" ]
java.util;
1,765,911
List<JSONObject> getPages() throws RepositoryException;
List<JSONObject> getPages() throws RepositoryException;
/** * Gets pages. * * @return a list of pages, returns an empty list if not found * @throws RepositoryException repository exception */
Gets pages
getPages
{ "repo_name": "istarvip/solo", "path": "src/main/java/org/b3log/solo/repository/PageRepository.java", "license": "apache-2.0", "size": 2670 }
[ "java.util.List", "org.b3log.latke.repository.RepositoryException", "org.json.JSONObject" ]
import java.util.List; import org.b3log.latke.repository.RepositoryException; import org.json.JSONObject;
import java.util.*; import org.b3log.latke.repository.*; import org.json.*;
[ "java.util", "org.b3log.latke", "org.json" ]
java.util; org.b3log.latke; org.json;
1,734,477
private Iterator<TDigest.Group> iterator(final TDigest.Group start) { return new AbstractIterator<TDigest.Group>() { { stack = Queues.newArrayDeque(); push(GroupTree.this, start); } Deque<GroupTree> stack;
Iterator<TDigest.Group> function(final TDigest.Group start) { return new AbstractIterator<TDigest.Group>() { { stack = Queues.newArrayDeque(); push(GroupTree.this, start); } Deque<GroupTree> stack;
/** * Iterates through all of the Groups in this tree in ascending order of means * @param start The place to start this subset. Remember that Groups are ordered by mean *and* id. * @return An iterator that goes through the groups in order of mean and id starting at or after the * specified Group....
Iterates through all of the Groups in this tree in ascending order of means
iterator
{ "repo_name": "amikey/zongtui-classifier", "path": "src/main/java/com/zongtui/classifier/math/jet/stat/GroupTree.java", "license": "mit", "size": 11467 }
[ "com.google.common.collect.AbstractIterator", "com.google.common.collect.Queues", "java.util.Deque", "java.util.Iterator" ]
import com.google.common.collect.AbstractIterator; import com.google.common.collect.Queues; import java.util.Deque; import java.util.Iterator;
import com.google.common.collect.*; import java.util.*;
[ "com.google.common", "java.util" ]
com.google.common; java.util;
2,907,142
public static ims.core.vo.PatientDiagnosisEDischargeListVo insert(DomainObjectMap map, ims.core.vo.PatientDiagnosisEDischargeListVo valueObject, ims.core.clinical.domain.objects.PatientDiagnosis domainObject) { if (null == domainObject) { return valueObject; } if (null == map) { map...
static ims.core.vo.PatientDiagnosisEDischargeListVo function(DomainObjectMap map, ims.core.vo.PatientDiagnosisEDischargeListVo valueObject, ims.core.clinical.domain.objects.PatientDiagnosis domainObject) { if (null == domainObject) { return valueObject; } if (null == map) { map = new DomainObjectMap(); } valueObject.se...
/** * Update the ValueObject with the Domain Object. * @param map DomainObjectMap of DomainObjects to already created ValueObjects. * @param valueObject to be updated * @param domainObject ims.core.clinical.domain.objects.PatientDiagnosis */
Update the ValueObject with the Domain Object
insert
{ "repo_name": "open-health-hub/openmaxims-linux", "path": "openmaxims_workspace/ValueObjects/src/ims/core/vo/domain/PatientDiagnosisEDischargeListVoAssembler.java", "license": "agpl-3.0", "size": 31148 }
[ "org.hibernate.proxy.HibernateProxy" ]
import org.hibernate.proxy.HibernateProxy;
import org.hibernate.proxy.*;
[ "org.hibernate.proxy" ]
org.hibernate.proxy;
2,517,415
public Builder withCallback(Snackbar.Callback callback) { this.snackbarCallback = callback; return this; }
Builder function(Snackbar.Callback callback) { this.snackbarCallback = callback; return this; }
/** * Adds a callback to handle the snackbar {@code onDismissed} and {@code onShown} events. */
Adds a callback to handle the snackbar onDismissed and onShown events
withCallback
{ "repo_name": "Karumi/Dexter", "path": "dexter/src/main/java/com/karumi/dexter/listener/multi/SnackbarOnAnyPermanentlyDeniedMultiplePermissionsListener.java", "license": "apache-2.0", "size": 4921 }
[ "com.google.android.material.snackbar.Snackbar" ]
import com.google.android.material.snackbar.Snackbar;
import com.google.android.material.snackbar.*;
[ "com.google.android" ]
com.google.android;
1,314,104
ProcessorEntity deleteProcessor(Revision revision, String processorId); // ---------------------------------------- // Connections methods // ----------------------------------------
ProcessorEntity deleteProcessor(Revision revision, String processorId);
/** * Deletes the specified processor. * * @param revision Revision to compare with current base revision * @param processorId The processor id to delete * @return snapshot */
Deletes the specified processor
deleteProcessor
{ "repo_name": "PuspenduBanerjee/nifi", "path": "nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/NiFiServiceFacade.java", "license": "apache-2.0", "size": 53497 }
[ "org.apache.nifi.web.api.entity.ProcessorEntity" ]
import org.apache.nifi.web.api.entity.ProcessorEntity;
import org.apache.nifi.web.api.entity.*;
[ "org.apache.nifi" ]
org.apache.nifi;
1,078,253
public void removeUpdate (DocumentEvent changes, Shape a, ViewFactory f) { // Note: This method is not called when characters from the // end of the document are removed. The reason for this // can be found in the implementation of View.forwardUpdate: // The document event will denote of...
void function (DocumentEvent changes, Shape a, ViewFactory f) { Rectangle r = a instanceof Rectangle ? (Rectangle) a : a.getBounds(); updateDamage(r); } }
/** * This method is called when something is removed from the Document * that this View is displaying. * * @param changes the DocumentEvent for the changes. * @param a the allocation of the View * @param f the ViewFactory used to rebuild */
This method is called when something is removed from the Document that this View is displaying
removeUpdate
{ "repo_name": "taciano-perez/JamVM-PH", "path": "src/classpath/javax/swing/text/WrappedPlainView.java", "license": "gpl-2.0", "size": 25581 }
[ "java.awt.Rectangle", "java.awt.Shape", "javax.swing.event.DocumentEvent" ]
import java.awt.Rectangle; import java.awt.Shape; import javax.swing.event.DocumentEvent;
import java.awt.*; import javax.swing.event.*;
[ "java.awt", "javax.swing" ]
java.awt; javax.swing;
746,383
@SmallTest @Feature({"Browser", "RoundedIconGenerator"}) public void testGetIconTextForUrl() { // Verify valid domains when including private registries. assertEquals("google.com", getIconTextForUrl("https://google.com/", true)); assertEquals("google.com", getIconTextForUrl("https://...
@Feature({STR, STR}) void function() { assertEquals(STR, getIconTextForUrl("https: assertEquals(STR, getIconTextForUrl("https: assertEquals(STR, getIconTextForUrl(STRfoo.appspot.com", getIconTextForUrl(STRappspot.com", getIconTextForUrl(STRchromeSTRchrome: assertEquals("chromeSTRchrome-native: assertEquals("localhostST...
/** * Verifies that RoundedIconGenerator's ability to generate icons based on URLs considers the * appropriate parts of the URL for the icon to generate. */
Verifies that RoundedIconGenerator's ability to generate icons based on URLs considers the appropriate parts of the URL for the icon to generate
testGetIconTextForUrl
{ "repo_name": "guorendong/iridium-browser-ubuntu", "path": "chrome/android/javatests_shell/src/org/chromium/chrome/browser/widget/RoundedIconGeneratorTest.java", "license": "bsd-3-clause", "size": 2412 }
[ "org.chromium.base.test.util.Feature" ]
import org.chromium.base.test.util.Feature;
import org.chromium.base.test.util.*;
[ "org.chromium.base" ]
org.chromium.base;
517,832
public Collection<Shell> getWindows() { return Collections.<Shell> unmodifiableCollection(windows.values()); }
Collection<Shell> function() { return Collections.<Shell> unmodifiableCollection(windows.values()); }
/** * Returns the list of windows managed by this manager. * * @return a List of currently managed windows */
Returns the list of windows managed by this manager
getWindows
{ "repo_name": "griffon/griffon-swt-plugin", "path": "src/main/griffon/swt/WindowManager.java", "license": "apache-2.0", "size": 10070 }
[ "java.util.Collection", "java.util.Collections", "org.eclipse.swt.widgets.Shell" ]
import java.util.Collection; import java.util.Collections; import org.eclipse.swt.widgets.Shell;
import java.util.*; import org.eclipse.swt.widgets.*;
[ "java.util", "org.eclipse.swt" ]
java.util; org.eclipse.swt;
2,612,919
@Test void individualMethodsWithinRecursiveNestedTestClassHierarchiesAreExecuted() { EngineExecutionResults executionResults = executeTests(selectMethod(OuterClass.class, "outer")); executionResults.containerEvents().assertStatistics(stats -> stats.started(2).succeeded(2)); executionResults.testEvents().asser...
void individualMethodsWithinRecursiveNestedTestClassHierarchiesAreExecuted() { EngineExecutionResults executionResults = executeTests(selectMethod(OuterClass.class, "outer")); executionResults.containerEvents().assertStatistics(stats -> stats.started(2).succeeded(2)); executionResults.testEvents().assertStatistics(stat...
/** * NOTE: We do not actually support this as a feature, but we currently only * check for cycles if a class is selected. Thus, the tests in this method * pass, since the selection of a particular method does not result in a * lookup for nested test classes. * * @since 1.6 */
check for cycles if a class is selected. Thus, the tests in this method pass, since the selection of a particular method does not result in a lookup for nested test classes
individualMethodsWithinRecursiveNestedTestClassHierarchiesAreExecuted
{ "repo_name": "sbrannen/junit-lambda", "path": "junit-jupiter-engine/src/test/java/org/junit/jupiter/engine/NestedTestClassesTests.java", "license": "epl-1.0", "size": 11669 }
[ "org.junit.jupiter.engine.NestedTestClassesTests", "org.junit.platform.testkit.engine.EngineExecutionResults" ]
import org.junit.jupiter.engine.NestedTestClassesTests; import org.junit.platform.testkit.engine.EngineExecutionResults;
import org.junit.jupiter.engine.*; import org.junit.platform.testkit.engine.*;
[ "org.junit.jupiter", "org.junit.platform" ]
org.junit.jupiter; org.junit.platform;
1,188,162
public void initializeGame(String title, int width, int height, GameState state, int tickRate) { game = new Game(title, width, height, state, tickRate); soundManager = new SoundManager(); assetManager = new AssetManager(); }
void function(String title, int width, int height, GameState state, int tickRate) { game = new Game(title, width, height, state, tickRate); soundManager = new SoundManager(); assetManager = new AssetManager(); }
/** * Initialize the game. * * @param title The title of the game's window. * @param width The width of the game's window. * @param height The height of the game's window. * @param state A default {@link GameState} object to use. * @param tickRate indicates how fast the gam...
Initialize the game
initializeGame
{ "repo_name": "Vrekt/Lunar", "path": "src/main/java/com/lunar/Lunar.java", "license": "mit", "size": 1855 }
[ "com.lunar.asset.AssetManager", "com.lunar.sound.SoundManager", "com.lunar.state.GameState" ]
import com.lunar.asset.AssetManager; import com.lunar.sound.SoundManager; import com.lunar.state.GameState;
import com.lunar.asset.*; import com.lunar.sound.*; import com.lunar.state.*;
[ "com.lunar.asset", "com.lunar.sound", "com.lunar.state" ]
com.lunar.asset; com.lunar.sound; com.lunar.state;
549,140
public Response addOnePartition(String user, String db, String table, PartitionDesc desc) throws HcatException, NotAuthorizedException, BusyException, ExecuteException, IOException { String exec = String.format("use %s; alter table %s add", db, table); ...
Response function(String user, String db, String table, PartitionDesc desc) throws HcatException, NotAuthorizedException, BusyException, ExecuteException, IOException { String exec = String.format(STR, db, table); if (desc.ifNotExists) exec += STR; exec += String.format(STR, desc.partition); if (TempletonUtils.isset(de...
/** * Add one partition. */
Add one partition
addOnePartition
{ "repo_name": "cloudera/hcatalog", "path": "webhcat/svr/src/main/java/org/apache/hcatalog/templeton/HcatDelegator.java", "license": "apache-2.0", "size": 31761 }
[ "java.io.IOException", "javax.ws.rs.core.Response", "org.apache.commons.exec.ExecuteException", "org.apache.hcatalog.templeton.tool.TempletonUtils" ]
import java.io.IOException; import javax.ws.rs.core.Response; import org.apache.commons.exec.ExecuteException; import org.apache.hcatalog.templeton.tool.TempletonUtils;
import java.io.*; import javax.ws.rs.core.*; import org.apache.commons.exec.*; import org.apache.hcatalog.templeton.tool.*;
[ "java.io", "javax.ws", "org.apache.commons", "org.apache.hcatalog" ]
java.io; javax.ws; org.apache.commons; org.apache.hcatalog;
2,418,181
List<String> findComponentNames(String filter);
List<String> findComponentNames(String filter);
/** * Find all the component names from the Camel catalog that matches the label */
Find all the component names from the Camel catalog that matches the label
findComponentNames
{ "repo_name": "grgrzybek/camel", "path": "platforms/catalog/src/main/java/org/apache/camel/catalog/CamelCatalog.java", "license": "apache-2.0", "size": 6355 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,642,724
public SubAccount getCashOffsetSubAccount() { return cashOffsetSubAccount; }
SubAccount function() { return cashOffsetSubAccount; }
/** * Gets the cashOffsetSubAccount attribute. * * @return Returns the cashOffsetSubAccount. */
Gets the cashOffsetSubAccount attribute
getCashOffsetSubAccount
{ "repo_name": "Ariah-Group/Finance", "path": "af_webapp/src/main/java/org/kuali/kfs/sys/businessobject/Bank.java", "license": "apache-2.0", "size": 13563 }
[ "org.kuali.kfs.coa.businessobject.SubAccount" ]
import org.kuali.kfs.coa.businessobject.SubAccount;
import org.kuali.kfs.coa.businessobject.*;
[ "org.kuali.kfs" ]
org.kuali.kfs;
1,084,833
Boolean editUser(User user) throws CloudCoderAuthenticationException; /** * Update the user and course registration information specified * by given {@link EditedUser} object. The authenticated user must * be an instructor in the course. * * @param editedUser the {@link EditedUs...
Boolean editUser(User user) throws CloudCoderAuthenticationException; /** * Update the user and course registration information specified * by given {@link EditedUser} object. The authenticated user must * be an instructor in the course. * * @param editedUser the {@link EditedUser} * @param course the {@link Course}
/** * Edit the fields of the {@link User} record with the new values. * Use the id field in the given record to locate the record to update. * * @param user * @return */
Edit the fields of the <code>User</code> record with the new values. Use the id field in the given record to locate the record to update
editUser
{ "repo_name": "wicky-info/CloudCoder", "path": "CloudCoder/src/org/cloudcoder/app/client/rpc/UserService.java", "license": "agpl-3.0", "size": 4092 }
[ "org.cloudcoder.app.shared.model.CloudCoderAuthenticationException", "org.cloudcoder.app.shared.model.Course", "org.cloudcoder.app.shared.model.EditedUser", "org.cloudcoder.app.shared.model.User" ]
import org.cloudcoder.app.shared.model.CloudCoderAuthenticationException; import org.cloudcoder.app.shared.model.Course; import org.cloudcoder.app.shared.model.EditedUser; import org.cloudcoder.app.shared.model.User;
import org.cloudcoder.app.shared.model.*;
[ "org.cloudcoder.app" ]
org.cloudcoder.app;
1,389,410
RowKind kind = row.getRowKind(); return kind == RowKind.INSERT || kind == RowKind.UPDATE_AFTER; }
RowKind kind = row.getRowKind(); return kind == RowKind.INSERT kind == RowKind.UPDATE_AFTER; }
/** * Returns true if the message is either {@link RowKind#INSERT} or {@link RowKind#UPDATE_AFTER}, * which refers to an accumulate operation of aggregation. */
Returns true if the message is either <code>RowKind#INSERT</code> or <code>RowKind#UPDATE_AFTER</code>, which refers to an accumulate operation of aggregation
isAccumulateMsg
{ "repo_name": "hequn8128/flink", "path": "flink-table/flink-table-runtime-blink/src/main/java/org/apache/flink/table/data/util/RowDataUtil.java", "license": "apache-2.0", "size": 2247 }
[ "org.apache.flink.types.RowKind" ]
import org.apache.flink.types.RowKind;
import org.apache.flink.types.*;
[ "org.apache.flink" ]
org.apache.flink;
754,782
public Token viewToToken(Point p) { return modelToToken(viewToModel(p)); } private final class MatchedBracketPopupTimer extends Timer implements ActionListener, CaretListener { private MatchedBracketPopup popup; private int origDot; private int matchedBracketOffs; private MatchedBrac...
Token function(Point p) { return modelToToken(viewToModel(p)); } private final class MatchedBracketPopupTimer extends Timer implements ActionListener, CaretListener { private MatchedBracketPopup popup; private int origDot; private int matchedBracketOffs; private MatchedBracketPopupTimer() { super(350, null); addActionL...
/** * Returns the token at the specified position in the view. * * @param p The position in the view. * @return The token, or <code>null</code> if no token is at that * position. * @see #modelToToken(int) */
Returns the token at the specified position in the view
viewToToken
{ "repo_name": "Thecarisma/powertext", "path": "Power Text/src/com/power/text/ui/pteditor/RSyntaxTextArea.java", "license": "gpl-3.0", "size": 102040 }
[ "java.awt.Point", "java.awt.event.ActionListener", "javax.swing.Timer", "javax.swing.event.CaretListener" ]
import java.awt.Point; import java.awt.event.ActionListener; import javax.swing.Timer; import javax.swing.event.CaretListener;
import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.event.*;
[ "java.awt", "javax.swing" ]
java.awt; javax.swing;
1,717,497
public static void encodeHtml(Appendable out, String value) throws IOException { for(int i=0; i<value.length(); i++) { char ch = value.charAt(i); if (ch=='"') { out.append("&quot;"); } else if (ch=='\'') { out.append("&#39;"); } else if (ch=='&') { out.append("...
static void function(Appendable out, String value) throws IOException { for(int i=0; i<value.length(); i++) { char ch = value.charAt(i); if (ch=='STR&quot;STR&#39;STR&amp;STR&lt;STR&gt;STR&#").append(Integer.toString(ch)).append(';'); } else { out.append(ch); } } }
/** * encode characters such that they can be used inside HTML text as well as * inside an element's attribute. In particular the characters @{code * "'&<>} and everything below ASCII space is converted to an encoded * character entity. * * @throws IOException only thrown if the appending to @{code o...
encode characters such that they can be used inside HTML text as well as inside an element's attribute. In particular the characters @{code "'&<>} and everything below ASCII space is converted to an encoded character entity
encodeHtml
{ "repo_name": "HaraldKi/htmlJgen", "path": "src/java/de/pifpafpuf/web/html/TextUtils.java", "license": "apache-2.0", "size": 1720 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
1,588,682
public RemoteList<Back2BackRow> getRows() throws RemoteException;
RemoteList<Back2BackRow> function() throws RemoteException;
/** * Get all added {@link Back2BackRow signal comparison rows}. * * @return get attribute rows * * @throws RemoteException * remote communication problem */
Get all added <code>Back2BackRow signal comparison rows</code>
getRows
{ "repo_name": "jenkinsci/piketec-tpt-plugin", "path": "src/main/java/com/piketec/tpt/api/Back2BackSettings.java", "license": "mit", "size": 14114 }
[ "java.rmi.RemoteException" ]
import java.rmi.RemoteException;
import java.rmi.*;
[ "java.rmi" ]
java.rmi;
1,848,617
private static void printExtraAttributes(ExtendableItem item, PrintWriter out, String prefix) { printExtraAttributes(item.getQualifiedExtraAttributes(), out, prefix); }
static void function(ExtendableItem item, PrintWriter out, String prefix) { printExtraAttributes(item.getQualifiedExtraAttributes(), out, prefix); }
/** * Writes the extra attributes of the given {@link ExtendableItem} to the given * <tt>PrintWriter</tt>. * * @param item * the {@link ExtendableItem}, cannot be <tt>null</tt> * @param out * the writer to use * @param prefix * the string to ...
Writes the extra attributes of the given <code>ExtendableItem</code> to the given PrintWriter
printExtraAttributes
{ "repo_name": "apache/ant-ivy", "path": "src/java/org/apache/ivy/plugins/parser/xml/XmlModuleDescriptorWriter.java", "license": "apache-2.0", "size": 22860 }
[ "java.io.PrintWriter", "org.apache.ivy.util.extendable.ExtendableItem" ]
import java.io.PrintWriter; import org.apache.ivy.util.extendable.ExtendableItem;
import java.io.*; import org.apache.ivy.util.extendable.*;
[ "java.io", "org.apache.ivy" ]
java.io; org.apache.ivy;
2,742,071
public Date getCreated() { return _created; }
Date function() { return _created; }
/** * Returns the entry created date (Atom 0.3 only) * <p> * @return the entry created date, <b>null</b> if none. */
Returns the entry created date (Atom 0.3 only)
getCreated
{ "repo_name": "simeshev/parabuild-ci", "path": "3rdparty/rome08/src/java/com/sun/syndication/feed/atom/Entry.java", "license": "lgpl-3.0", "size": 11607 }
[ "java.util.Date" ]
import java.util.Date;
import java.util.*;
[ "java.util" ]
java.util;
611,789
public int getModifiers() { // more efficient than checking getAST().API_LEVEL if (this.modifiers == null) { // JLS2 behavior - bona fide property return this.modifierFlags; } else { // JLS3 behavior - convenient method // performance could be improved by caching computed flags // but this would...
int function() { if (this.modifiers == null) { return this.modifierFlags; } else { int computedModifierFlags = Modifier.NONE; for (Iterator it = modifiers().iterator(); it.hasNext(); ) { Object x = it.next(); if (x instanceof Modifier) { computedModifierFlags = ((Modifier) x).getKeyword().toFlagValue(); } } return comp...
/** * Returns the modifiers explicitly specified on this declaration. * <p> * In the JLS3 API, this method is a convenience method that * computes these flags from <code>modifiers()</code>. * </p> * * @return the bit-wise or of <code>Modifier</code> constants * @see Modifier */
Returns the modifiers explicitly specified on this declaration. In the JLS3 API, this method is a convenience method that computes these flags from <code>modifiers()</code>.
getModifiers
{ "repo_name": "boniatillo-com/PhaserEditor", "path": "source/thirdparty/jsdt/org.eclipse.wst.jsdt.core/src/org/eclipse/wst/jsdt/core/dom/VariableDeclarationExpression.java", "license": "epl-1.0", "size": 13628 }
[ "java.util.Iterator" ]
import java.util.Iterator;
import java.util.*;
[ "java.util" ]
java.util;
1,067,045
Future<List<Path>> getGlobAsync(String pattern, boolean excludeDirs) throws BadGlobException { Future<List<Path>> cached = globCache.get(Pair.of(pattern, excludeDirs)); if (cached == null) { cached = safeGlob(pattern, excludeDirs); setGlobPaths(pattern, excludeDirs, cached); } return...
Future<List<Path>> getGlobAsync(String pattern, boolean excludeDirs) throws BadGlobException { Future<List<Path>> cached = globCache.get(Pair.of(pattern, excludeDirs)); if (cached == null) { cached = safeGlob(pattern, excludeDirs); setGlobPaths(pattern, excludeDirs, cached); } return cached; }
/** * Returns the future result of evaluating glob "pattern" against this * package's directory, using the package's cache of previously-started * globs if possible. * * @return the list of paths matching the pattern, relative to the package's * directory. * @throws BadGlobException if the glob w...
Returns the future result of evaluating glob "pattern" against this package's directory, using the package's cache of previously-started globs if possible
getGlobAsync
{ "repo_name": "kidaa/bazel", "path": "src/main/java/com/google/devtools/build/lib/packages/GlobCache.java", "license": "apache-2.0", "size": 12815 }
[ "com.google.devtools.build.lib.util.Pair", "com.google.devtools.build.lib.vfs.Path", "java.util.List", "java.util.concurrent.Future" ]
import com.google.devtools.build.lib.util.Pair; import com.google.devtools.build.lib.vfs.Path; import java.util.List; import java.util.concurrent.Future;
import com.google.devtools.build.lib.util.*; import com.google.devtools.build.lib.vfs.*; import java.util.*; import java.util.concurrent.*;
[ "com.google.devtools", "java.util" ]
com.google.devtools; java.util;
1,914,134
public static InteractEntityEvent.Secondary createInteractEntityEventSecondary(Game game, Cause cause, Optional<Vector3d> interactionPoint, Entity targetEntity) { Map<String, Object> values = Maps.newHashMap(); values.put("game", game); values.put("cause", cause); values.put("interac...
static InteractEntityEvent.Secondary function(Game game, Cause cause, Optional<Vector3d> interactionPoint, Entity targetEntity) { Map<String, Object> values = Maps.newHashMap(); values.put("game", game); values.put("cause", cause); values.put(STR, interactionPoint); values.put(STR, targetEntity); return SpongeEventFact...
/** * AUTOMATICALLY GENERATED, DO NOT EDIT. * Creates a new instance of * {@link org.spongepowered.api.event.entity.InteractEntityEvent.Secondary}. * * @param game The game * @param cause The cause * @param interactionPoint The interaction point * @param targetEntity The target ...
AUTOMATICALLY GENERATED, DO NOT EDIT. Creates a new instance of <code>org.spongepowered.api.event.entity.InteractEntityEvent.Secondary</code>
createInteractEntityEventSecondary
{ "repo_name": "jamierocks/SpongeAPI", "path": "src/main/java/org/spongepowered/api/event/SpongeEventFactory.java", "license": "mit", "size": 196993 }
[ "com.flowpowered.math.vector.Vector3d", "com.google.common.collect.Maps", "java.util.Map", "java.util.Optional", "org.spongepowered.api.Game", "org.spongepowered.api.entity.Entity", "org.spongepowered.api.event.cause.Cause", "org.spongepowered.api.event.entity.InteractEntityEvent" ]
import com.flowpowered.math.vector.Vector3d; import com.google.common.collect.Maps; import java.util.Map; import java.util.Optional; import org.spongepowered.api.Game; import org.spongepowered.api.entity.Entity; import org.spongepowered.api.event.cause.Cause; import org.spongepowered.api.event.entity.InteractEntityEven...
import com.flowpowered.math.vector.*; import com.google.common.collect.*; import java.util.*; import org.spongepowered.api.*; import org.spongepowered.api.entity.*; import org.spongepowered.api.event.cause.*; import org.spongepowered.api.event.entity.*;
[ "com.flowpowered.math", "com.google.common", "java.util", "org.spongepowered.api" ]
com.flowpowered.math; com.google.common; java.util; org.spongepowered.api;
2,173,231
@Test public void testMetaModelCreation() { final MetaDataModel model = createTestModel(); // check the available resources and descriptors assertEquals(0, model.getDescriptors().size()); // check the models assertNull(model.getDescriptorModel("NOMODEL")); assertNotNull(model.getDescriptorModel("ID1")...
void function() { final MetaDataModel model = createTestModel(); assertEquals(0, model.getDescriptors().size()); assertNull(model.getDescriptorModel(STR)); assertNotNull(model.getDescriptorModel("ID1")); assertNotNull(model.getDescriptorModel("ID2")); final DescriptorModel<?> dModel1 = model.getDescriptorModel("ID1"); ...
/** * Tests the creation of a {@code MetaDataModel}. */
Tests the creation of a MetaDataModel
testMetaModelCreation
{ "repo_name": "pmeisen/dis-timeintervaldataanalyzer", "path": "test/net/meisen/dissertation/model/data/TestMetaDataModel.java", "license": "bsd-3-clause", "size": 7513 }
[ "net.meisen.dissertation.impl.descriptors.GeneralDescriptor", "net.meisen.dissertation.model.descriptors.DescriptorModel", "org.junit.Assert" ]
import net.meisen.dissertation.impl.descriptors.GeneralDescriptor; import net.meisen.dissertation.model.descriptors.DescriptorModel; import org.junit.Assert;
import net.meisen.dissertation.impl.descriptors.*; import net.meisen.dissertation.model.descriptors.*; import org.junit.*;
[ "net.meisen.dissertation", "org.junit" ]
net.meisen.dissertation; org.junit;
293,898
public void close() throws StandardException { beginTime = getCurrentTimeMillis(); if ( isOpen ) { // we don't want to keep around a pointer to the // row ... so it can be thrown away. // REVISIT: does this need to be in a finally // block, to ensure that it is executed? clearCurrentRow()...
void function() throws StandardException { beginTime = getCurrentTimeMillis(); if ( isOpen ) { clearCurrentRow(); sortResultRow = null; sourceExecIndexRow = null; closeSource(); if (!isInSortedOrder) { tc.dropSort(genericSortId); } super.close(); } else if (SanityManager.DEBUG) SanityManager.DEBUG(STR,STR); closeTime +...
/** * If the result set has been opened, * close the open scan. * * @exception StandardException thrown on error */
If the result set has been opened, close the open scan
close
{ "repo_name": "viaper/DBPlus", "path": "DerbyHodgepodge/java/engine/org/apache/derby/impl/sql/execute/GroupedAggregateResultSet.java", "license": "apache-2.0", "size": 25030 }
[ "org.apache.derby.iapi.error.StandardException", "org.apache.derby.iapi.services.sanity.SanityManager" ]
import org.apache.derby.iapi.error.StandardException; import org.apache.derby.iapi.services.sanity.SanityManager;
import org.apache.derby.iapi.error.*; import org.apache.derby.iapi.services.sanity.*;
[ "org.apache.derby" ]
org.apache.derby;
2,143,232
private void compileOptimizedRuns(final List<OptimizedRun> optimizedRuns, final Map<DateTime, Position> bestGlobalPosition, final double bestGlobalFitness) { // compile the optimized runs and set the slots with the chosen values for (DateTime currentStartTimeOfRun : bestGlobalPosition.keySet()) { Possib...
void function(final List<OptimizedRun> optimizedRuns, final Map<DateTime, Position> bestGlobalPosition, final double bestGlobalFitness) { for (DateTime currentStartTimeOfRun : bestGlobalPosition.keySet()) { PossibleRun currentRun = bestGlobalPosition.get( currentStartTimeOfRun).getPossibleRun(); OptimizedRun optimizedR...
/** * Compile optimized runs. * * @param optimizedRuns * the optimized runs * @param bestGlobalPosition * the best global position * @param bestGlobalFitness * the best global fitness */
Compile optimized runs
compileOptimizedRuns
{ "repo_name": "wolfgang-lausenhammer/Okeanos", "path": "okeanos.control.impl/src/main/java/okeanos/control/internal/algorithms/PSORegenerativeLoadOptimizer.java", "license": "mit", "size": 33731 }
[ "com.google.common.collect.Iterables", "java.util.LinkedList", "java.util.List", "java.util.Map", "javax.measure.quantity.Power", "org.joda.time.DateTime" ]
import com.google.common.collect.Iterables; import java.util.LinkedList; import java.util.List; import java.util.Map; import javax.measure.quantity.Power; import org.joda.time.DateTime;
import com.google.common.collect.*; import java.util.*; import javax.measure.quantity.*; import org.joda.time.*;
[ "com.google.common", "java.util", "javax.measure", "org.joda.time" ]
com.google.common; java.util; javax.measure; org.joda.time;
1,218,199
public static Map<String, Fluid> getRegisteredFluids() { return ImmutableMap.copyOf(fluids); }
static Map<String, Fluid> function() { return ImmutableMap.copyOf(fluids); }
/** * Returns a read-only map containing Fluid Names and their associated Fluids. */
Returns a read-only map containing Fluid Names and their associated Fluids
getRegisteredFluids
{ "repo_name": "boredherobrine13/morefuelsmod-1.10", "path": "build/tmp/recompileMc/sources/net/minecraftforge/fluids/FluidRegistry.java", "license": "lgpl-2.1", "size": 16118 }
[ "com.google.common.collect.ImmutableMap", "java.util.Map" ]
import com.google.common.collect.ImmutableMap; import java.util.Map;
import com.google.common.collect.*; import java.util.*;
[ "com.google.common", "java.util" ]
com.google.common; java.util;
58,974
private static <K extends Object, V extends Object> Set<Entry<K, Collection<V>>> unmodifiableAsMapEntries( Set<Entry<K, Collection<V>>> asMapEntries) { return new UnmodifiableAsMapEntries<K, V>( Collections.unmodifiableSet(asMapEntries)); } static class UnmodifiableAsMapEntries<K extends ...
static <K extends Object, V extends Object> Set<Entry<K, Collection<V>>> function( Set<Entry<K, Collection<V>>> asMapEntries) { return new UnmodifiableAsMapEntries<K, V>( Collections.unmodifiableSet(asMapEntries)); } static class UnmodifiableAsMapEntries<K extends Object, V extends Object> extends ForwardingSet<Entry<K...
/** * Returns an unmodifiable view of the specified set of {@code asMap} entries. * The {@link Entry#setValue} operation throws an {@link * UnsupportedOperationException}, as do any operations that attempt to modify * the returned collection. * * @param asMapEntries the {@code asMap} entries for which...
Returns an unmodifiable view of the specified set of asMap entries. The <code>Entry#setValue</code> operation throws an <code>UnsupportedOperationException</code>, as do any operations that attempt to modify the returned collection
unmodifiableAsMapEntries
{ "repo_name": "biddyweb/checker-framework", "path": "checker/jdk/nullness/src/com/google/common/collect/Multimaps.java", "license": "gpl-2.0", "size": 47645 }
[ "java.util.Collection", "java.util.Collections", "java.util.Map", "java.util.Set" ]
import java.util.Collection; import java.util.Collections; import java.util.Map; import java.util.Set;
import java.util.*;
[ "java.util" ]
java.util;
1,409,187
@Override ClosableIterator<TabletLocationState> iterator();
ClosableIterator<TabletLocationState> iterator();
/** * Scan the information about the tablets covered by this store */
Scan the information about the tablets covered by this store
iterator
{ "repo_name": "milleruntime/accumulo", "path": "server/base/src/main/java/org/apache/accumulo/server/manager/state/TabletStateStore.java", "license": "apache-2.0", "size": 4769 }
[ "org.apache.accumulo.core.metadata.TabletLocationState" ]
import org.apache.accumulo.core.metadata.TabletLocationState;
import org.apache.accumulo.core.metadata.*;
[ "org.apache.accumulo" ]
org.apache.accumulo;
2,214,294
public static java.util.Set extractPatientSet(ims.domain.ILightweightDomainFactory domainFactory, ims.core.vo.PatientEdischargeBatchVoCollection voCollection) { return extractPatientSet(domainFactory, voCollection, null, new HashMap()); }
static java.util.Set function(ims.domain.ILightweightDomainFactory domainFactory, ims.core.vo.PatientEdischargeBatchVoCollection voCollection) { return extractPatientSet(domainFactory, voCollection, null, new HashMap()); }
/** * Create the ims.core.patient.domain.objects.Patient set from the value object collection. * @param domainFactory - used to create existing (persistent) domain objects. * @param voCollection - the collection of value objects */
Create the ims.core.patient.domain.objects.Patient set from the value object collection
extractPatientSet
{ "repo_name": "FreudianNM/openMAXIMS", "path": "Source Library/openmaxims_workspace/ValueObjects/src/ims/core/vo/domain/PatientEdischargeBatchVoAssembler.java", "license": "agpl-3.0", "size": 17873 }
[ "java.util.HashMap" ]
import java.util.HashMap;
import java.util.*;
[ "java.util" ]
java.util;
659,904
@Override public final Bitmap get(String key) { if (key == null) { throw new NullPointerException("key == null"); } synchronized (this) { return map.get(key); } }
final Bitmap function(String key) { if (key == null) { throw new NullPointerException(STR); } synchronized (this) { return map.get(key); } }
/** * Returns the Bitmap for {@code key} if it exists in the cache. If a Bitmap was returned, it is moved to the head * of the queue. This returns null if a Bitmap is not cached. */
Returns the Bitmap for key if it exists in the cache. If a Bitmap was returned, it is moved to the head of the queue. This returns null if a Bitmap is not cached
get
{ "repo_name": "droidranger/xygapp", "path": "xyg-library/src/main/java/com/nostra13/universalimageloader/cache/memory/impl/LruMemoryCache.java", "license": "apache-2.0", "size": 5583 }
[ "android.graphics.Bitmap" ]
import android.graphics.Bitmap;
import android.graphics.*;
[ "android.graphics" ]
android.graphics;
1,280,728
public void setExpireDate(Date expireDate);
void function(Date expireDate);
/** * Sets the expire date of this dossier proc. * * @param expireDate the expire date of this dossier proc */
Sets the expire date of this dossier proc
setExpireDate
{ "repo_name": "thongdv/OEPv2", "path": "portlets/oep-core-dossiermgt-portlet/docroot/WEB-INF/service/org/oep/core/dossiermgt/model/DossierProcModel.java", "license": "apache-2.0", "size": 12617 }
[ "java.util.Date" ]
import java.util.Date;
import java.util.*;
[ "java.util" ]
java.util;
356,141
@Nested public BaseForkOptions getForkOptions() { if (forkOptions == null) { forkOptions = new BaseForkOptions(); } return forkOptions; }
BaseForkOptions function() { if (forkOptions == null) { forkOptions = new BaseForkOptions(); } return forkOptions; }
/** * fork options for the twirl compiler. */
fork options for the twirl compiler
getForkOptions
{ "repo_name": "robinverduijn/gradle", "path": "subprojects/platform-play/src/main/java/org/gradle/play/tasks/TwirlCompile.java", "license": "apache-2.0", "size": 10009 }
[ "org.gradle.api.tasks.compile.BaseForkOptions" ]
import org.gradle.api.tasks.compile.BaseForkOptions;
import org.gradle.api.tasks.compile.*;
[ "org.gradle.api" ]
org.gradle.api;
1,547,659
public InputStream getConfResourceAsInputStream(String name) { try { URL url= getResource(name); if (url == null) { LOG.info(name + " not found"); return null; } else { LOG.info("found resource " + name + " at " + url); } return url.openStream(); } catch...
InputStream function(String name) { try { URL url= getResource(name); if (url == null) { LOG.info(name + STR); return null; } else { LOG.info(STR + name + STR + url); } return url.openStream(); } catch (Exception e) { return null; } }
/** * Get an input stream attached to the configuration resource with the * given <code>name</code>. * * @param name configuration resource name. * @return an input stream attached to the resource. */
Get an input stream attached to the configuration resource with the given <code>name</code>
getConfResourceAsInputStream
{ "repo_name": "simbadzina/hadoop-fcfs", "path": "hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/conf/Configuration.java", "license": "apache-2.0", "size": 103404 }
[ "java.io.InputStream" ]
import java.io.InputStream;
import java.io.*;
[ "java.io" ]
java.io;
2,013,964
public void disconnect() { if (this.connection == null) { return; } try { if (this.rawInputStream == null) { this.rawInputStream = this.connection.getInputStream(); } // We need to manually read from the raw input stream in ca...
void function() { if (this.connection == null) { return; } try { if (this.rawInputStream == null) { this.rawInputStream = this.connection.getInputStream(); } byte[] buffer = new byte[BUFFER_SIZE]; int n = this.rawInputStream.read(buffer); while (n != -1) { n = this.rawInputStream.read(buffer); } this.rawInputStream.clo...
/** * Disconnects this response from the server and frees up any network resources. The body of this response can no * longer be read after it has been disconnected. */
Disconnects this response from the server and frees up any network resources. The body of this response can no longer be read after it has been disconnected
disconnect
{ "repo_name": "itsmanishagarwal/box-java-sdk", "path": "src/main/java/com/box/sdk/BoxAPIResponse.java", "license": "apache-2.0", "size": 11621 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
915,431
@ServiceMethod(returns = ReturnType.SINGLE) Mono<LocalNetworkGatewayInner> updateTagsAsync( String resourceGroupName, String localNetworkGatewayName, TagsObject parameters);
@ServiceMethod(returns = ReturnType.SINGLE) Mono<LocalNetworkGatewayInner> updateTagsAsync( String resourceGroupName, String localNetworkGatewayName, TagsObject parameters);
/** * Updates a local network gateway tags. * * @param resourceGroupName The name of the resource group. * @param localNetworkGatewayName The name of the local network gateway. * @param parameters Parameters supplied to update local network gateway tags. * @throws IllegalArgumentException ...
Updates a local network gateway tags
updateTagsAsync
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/LocalNetworkGatewaysClient.java", "license": "mit", "size": 22790 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.resourcemanager.network.fluent.models.LocalNetworkGatewayInner", "com.azure.resourcemanager.network.models.TagsObject" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.resourcemanager.network.fluent.models.LocalNetworkGatewayInner; import com.azure.resourcemanager.network.models.TagsObject;
import com.azure.core.annotation.*; import com.azure.resourcemanager.network.fluent.models.*; import com.azure.resourcemanager.network.models.*;
[ "com.azure.core", "com.azure.resourcemanager" ]
com.azure.core; com.azure.resourcemanager;
178,762
public void addWarning(Declaration declaration, String text) { if (declaration == null) { this.errors.add(new ValidationMessage(null, text)); } else if (declaration.getPosition() != null) { this.warnings.add(new ValidationMessage(declaration.getPosition(), text)); } else { this.w...
void function(Declaration declaration, String text) { if (declaration == null) { this.errors.add(new ValidationMessage(null, text)); } else if (declaration.getPosition() != null) { this.warnings.add(new ValidationMessage(declaration.getPosition(), text)); } else { this.warnings.add(new ValidationMessage(null, toString(...
/** * Add n warning message. * * @param declaration The position of the warning. * @param text The text of the warning message. */
Add n warning message
addWarning
{ "repo_name": "garyhodgson/enunciate", "path": "core/src/main/java/org/codehaus/enunciate/contract/validation/ValidationResult.java", "license": "apache-2.0", "size": 6666 }
[ "com.sun.mirror.declaration.Declaration" ]
import com.sun.mirror.declaration.Declaration;
import com.sun.mirror.declaration.*;
[ "com.sun.mirror" ]
com.sun.mirror;
2,476,367
public void setRemoteDriver(String url) throws MalformedURLException { this.driver = new RemoteWebDriver(new URL(url),capabilities); setJSDriver(); this.driver = new Augmenter().augment(this.driver); this.driver.manage().timeouts().pageLoadTime...
void function(String url) throws MalformedURLException { this.driver = new RemoteWebDriver(new URL(url),capabilities); setJSDriver(); this.driver = new Augmenter().augment(this.driver); this.driver.manage().timeouts().pageLoadTimeout(MAX_WAIT_S, TimeUnit.SECONDS); this.driver.manage().timeouts().implicitlyWait(MAX_WAIT...
/** * Set the selenium driver as remote (selenium grid or hub) * @param url the web page to process * @throws MalformedURLException */
Set the selenium driver as remote (selenium grid or hub)
setRemoteDriver
{ "repo_name": "openpreserve/pagelyzer", "path": "Pagelyzer/src/main/java/pagelyzer/BrowserRep.java", "license": "apache-2.0", "size": 5833 }
[ "java.net.MalformedURLException", "java.util.concurrent.TimeUnit", "org.openqa.selenium.remote.Augmenter", "org.openqa.selenium.remote.RemoteWebDriver" ]
import java.net.MalformedURLException; import java.util.concurrent.TimeUnit; import org.openqa.selenium.remote.Augmenter; import org.openqa.selenium.remote.RemoteWebDriver;
import java.net.*; import java.util.concurrent.*; import org.openqa.selenium.remote.*;
[ "java.net", "java.util", "org.openqa.selenium" ]
java.net; java.util; org.openqa.selenium;
2,254,943
@GET @Path("/") public Response getClusterConfig(@QueryParam("id") String id, @QueryParam("name") String name, @QueryParam("prod") String prod, @QueryParam("test") String test, @QueryParam("unitTest") String unitTest, @QueryParam("adHoc") String adHoc, @QueryP...
@Path("/") Response function(@QueryParam("id") String id, @QueryParam("name") String name, @QueryParam("prod") String prod, @QueryParam("test") String test, @QueryParam(STR) String unitTest, @QueryParam("adHoc") String adHoc, @QueryParam("sla") String sla, @QueryParam("bonus") String bonus, @QueryParam(STR) String jobT...
/** * Get cluster config based on user params. If empty strings are passed for * prod, test, unitTest, adHoc, sla, bonus and hasStats, they are treated as * nulls (not false). * * @param id * unique id for cluster (can be a pattern) * @param name * cluster n...
Get cluster config based on user params. If empty strings are passed for prod, test, unitTest, adHoc, sla, bonus and hasStats, they are treated as nulls (not false)
getClusterConfig
{ "repo_name": "korrelate/genie", "path": "genie-server/src/main/java/com/netflix/genie/server/resources/ClusterConfigResourceV0.java", "license": "apache-2.0", "size": 9120 }
[ "com.netflix.genie.common.messages.ClusterConfigResponse", "com.netflix.genie.server.util.ResponseUtil", "java.util.List", "javax.ws.rs.DefaultValue", "javax.ws.rs.Path", "javax.ws.rs.QueryParam", "javax.ws.rs.core.Response" ]
import com.netflix.genie.common.messages.ClusterConfigResponse; import com.netflix.genie.server.util.ResponseUtil; import java.util.List; import javax.ws.rs.DefaultValue; import javax.ws.rs.Path; import javax.ws.rs.QueryParam; import javax.ws.rs.core.Response;
import com.netflix.genie.common.messages.*; import com.netflix.genie.server.util.*; import java.util.*; import javax.ws.rs.*; import javax.ws.rs.core.*;
[ "com.netflix.genie", "java.util", "javax.ws" ]
com.netflix.genie; java.util; javax.ws;
2,090,924
EList<FieldBinding> getFieldbindings();
EList<FieldBinding> getFieldbindings();
/** * Returns the value of the '<em><b>Fieldbindings</b></em>' containment reference list. * The list contents are of type {@link org.tetrabox.minijava.model.miniJava.semantics.FieldBinding}. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the value of the '<em>Fieldbindings</em>' containment refe...
Returns the value of the 'Fieldbindings' containment reference list. The list contents are of type <code>org.tetrabox.minijava.model.miniJava.semantics.FieldBinding</code>.
getFieldbindings
{ "repo_name": "tetrabox/minijava", "path": "plugins/org.tetrabox.minijava.model/src/org/tetrabox/minijava/model/miniJava/semantics/ObjectInstance.java", "license": "epl-1.0", "size": 2131 }
[ "org.eclipse.emf.common.util.EList" ]
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.common.util.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
1,998,533
public void unload() { final long timer = PROFILER.startChrono(); try { // DISCONNECT ALL THE NODES for (OMVRBTreeEntryPersistent<K, V> entryPoint : entryPoints.values()) entryPoint.disconnectLinked(true); entryPoints.clear(); cache.clear(); recordsToCommit.cl...
void function() { final long timer = PROFILER.startChrono(); try { for (OMVRBTreeEntryPersistent<K, V> entryPoint : entryPoints.values()) entryPoint.disconnectLinked(true); entryPoints.clear(); cache.clear(); recordsToCommit.clear(); root = null; load(); } catch (Exception e) { OLogManager.instance().error(this, STR + ...
/** * Unload all the in-memory nodes. This is called on transaction rollback. */
Unload all the in-memory nodes. This is called on transaction rollback
unload
{ "repo_name": "redox/OrientDB", "path": "core/src/main/java/com/orientechnologies/orient/core/type/tree/OMVRBTreePersistent.java", "license": "apache-2.0", "size": 32028 }
[ "com.orientechnologies.common.log.OLogManager", "com.orientechnologies.orient.core.exception.OStorageException" ]
import com.orientechnologies.common.log.OLogManager; import com.orientechnologies.orient.core.exception.OStorageException;
import com.orientechnologies.common.log.*; import com.orientechnologies.orient.core.exception.*;
[ "com.orientechnologies.common", "com.orientechnologies.orient" ]
com.orientechnologies.common; com.orientechnologies.orient;
349,721