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 String readToString() throws IOException, InterruptedException { return act(new ReadToString()); }
String function() throws IOException, InterruptedException { return act(new ReadToString()); }
/** * Reads this file into a string, by using the current system encoding on the remote machine. */
Reads this file into a string, by using the current system encoding on the remote machine
readToString
{ "repo_name": "recena/jenkins", "path": "core/src/main/java/hudson/FilePath.java", "license": "mit", "size": 134702 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
556,350
@Override public String toPNML() { //id 0 //idref 0 //attributes 0 //sons 1 Boolean prettyPrintStatus = ModelRepository.getInstance().isPrettyPrintActive(); String retline = ""; String headline = ""; PrettyPrintData prpd = null; if (prettyPrintStatus) { retline = "\n"; prpd = ModelRepositor...
String function() { Boolean prettyPrintStatus = ModelRepository.getInstance().isPrettyPrintActive(); String retline = STRSTR\nSTR<scalarproductSTR>STR<STRsubtermSTR>STR</STRsubtermSTR>STR</scalarproduct>STR>STR/>"); } return sb.toString(); }
/** * Return the string containing the pnml output */
Return the string containing the pnml output
toPNML
{ "repo_name": "lhillah/pnmlframework", "path": "pnmlFw-HLPN/src/fr/lip6/move/pnml/hlpn/multisets/impl/ScalarProductImpl.java", "license": "epl-1.0", "size": 21854 }
[ "fr.lip6.move.pnml.framework.utils.ModelRepository" ]
import fr.lip6.move.pnml.framework.utils.ModelRepository;
import fr.lip6.move.pnml.framework.utils.*;
[ "fr.lip6.move" ]
fr.lip6.move;
770,480
public void buildTEXT() throws Exception { System.err.println("-- Building the Vocabulary index"); termIdIndex = new HashMap<String, String>(); idTermIndex = new HashMap<String, String>(); String readline; String term; String avterm; String id; InputStreamReader is = new InputStreamReader(new Fil...
void function() throws Exception { System.err.println(STR); termIdIndex = new HashMap<String, String>(); idTermIndex = new HashMap<String, String>(); String readline; String term; String avterm; String id; InputStreamReader is = new InputStreamReader(new FileInputStream(EN)); BufferedReader br = new BufferedReader(is);...
/** * Builds the vocabulary index from the text files. */
Builds the vocabulary index from the text files
buildTEXT
{ "repo_name": "datadryad/hive-mrc", "path": "hive-core/src/maui/vocab/VocabularyJena.java", "license": "bsd-3-clause", "size": 17333 }
[ "java.io.BufferedReader", "java.io.FileInputStream", "java.io.InputStreamReader", "java.util.HashMap" ]
import java.io.BufferedReader; import java.io.FileInputStream; import java.io.InputStreamReader; import java.util.HashMap;
import java.io.*; import java.util.*;
[ "java.io", "java.util" ]
java.io; java.util;
503,412
public void init(final ServletConfig config) throws ServletException { try { Context ic = new InitialContext(); userTransaction = (UserTransaction) ic.lookup("java:comp/UserTransaction"); URL wsdlLocation = new URL("http://" + getLocalHost() + ":8080/txbridge...
void function(final ServletConfig config) throws ServletException { try { Context ic = new InitialContext(); userTransaction = (UserTransaction) ic.lookup(STR); URL wsdlLocation = new URL(STRhttp: Service service = Service.create(wsdlLocation, serviceName); testService = service.getPort(TestService.class); BindingProvi...
/** * Initialise the servlet. * * @param config The servlet configuration. */
Initialise the servlet
init
{ "repo_name": "gytis/narayana", "path": "txbridge/src/test/java/org/jboss/jbossts/txbridge/tests/outbound/client/TestClient.java", "license": "lgpl-2.1", "size": 5420 }
[ "com.arjuna.mw.wst11.client.JaxWSHeaderContextProcessor", "java.util.ArrayList", "java.util.List", "javax.naming.Context", "javax.naming.InitialContext", "javax.servlet.ServletConfig", "javax.servlet.ServletException", "javax.transaction.UserTransaction", "javax.xml.ws.BindingProvider", "javax.xml...
import com.arjuna.mw.wst11.client.JaxWSHeaderContextProcessor; import java.util.ArrayList; import java.util.List; import javax.naming.Context; import javax.naming.InitialContext; import javax.servlet.ServletConfig; import javax.servlet.ServletException; import javax.transaction.UserTransaction; import javax.xml.ws.Bind...
import com.arjuna.mw.wst11.client.*; import java.util.*; import javax.naming.*; import javax.servlet.*; import javax.transaction.*; import javax.xml.ws.*; import javax.xml.ws.handler.*; import org.jboss.jbossts.txbridge.outbound.*;
[ "com.arjuna.mw", "java.util", "javax.naming", "javax.servlet", "javax.transaction", "javax.xml", "org.jboss.jbossts" ]
com.arjuna.mw; java.util; javax.naming; javax.servlet; javax.transaction; javax.xml; org.jboss.jbossts;
1,307,990
private ChannelSelection createChannelSelection( StyleFactoryImpl styleFactory, ContrastMethod contrastMethod) { ContrastEnhancement contrastEnhancement = (ContrastEnhancement) styleFactory.contrastEnhancement(null, contrastMethod.name()); FilterFactory ff = CommonFactor...
ChannelSelection function( StyleFactoryImpl styleFactory, ContrastMethod contrastMethod) { ContrastEnhancement contrastEnhancement = (ContrastEnhancement) styleFactory.contrastEnhancement(null, contrastMethod.name()); FilterFactory ff = CommonFactoryFinder.getFilterFactory(); Map<String, Expression> options = contrastE...
/** * Creates the channel selection object. * * @param styleFactory the style factory * @param contrastMethod the contrast method * @return the channel selection */
Creates the channel selection object
createChannelSelection
{ "repo_name": "robward-scisys/sldeditor", "path": "modules/application/src/test/java/com/sldeditor/test/unit/ui/detail/vendor/geoserver/raster/VOGeoServerContrastEnhancementNormalizeBlueTest.java", "license": "gpl-3.0", "size": 8692 }
[ "java.util.Map", "org.geotools.factory.CommonFactoryFinder", "org.geotools.styling.ChannelSelection", "org.geotools.styling.ContrastEnhancement", "org.geotools.styling.SelectedChannelType", "org.geotools.styling.StyleFactoryImpl", "org.opengis.filter.FilterFactory", "org.opengis.filter.expression.Expr...
import java.util.Map; import org.geotools.factory.CommonFactoryFinder; import org.geotools.styling.ChannelSelection; import org.geotools.styling.ContrastEnhancement; import org.geotools.styling.SelectedChannelType; import org.geotools.styling.StyleFactoryImpl; import org.opengis.filter.FilterFactory; import org.opengis...
import java.util.*; import org.geotools.factory.*; import org.geotools.styling.*; import org.opengis.filter.*; import org.opengis.filter.expression.*; import org.opengis.style.*;
[ "java.util", "org.geotools.factory", "org.geotools.styling", "org.opengis.filter", "org.opengis.style" ]
java.util; org.geotools.factory; org.geotools.styling; org.opengis.filter; org.opengis.style;
2,268,389
private BufferBuilder getBufferBuilder(int targetChannel) throws IOException, InterruptedException { if (bufferBuilders[targetChannel].isPresent()) { return bufferBuilders[targetChannel].get(); } else { return requestNewBufferBuilder(targetChannel); } }
BufferBuilder function(int targetChannel) throws IOException, InterruptedException { if (bufferBuilders[targetChannel].isPresent()) { return bufferBuilders[targetChannel].get(); } else { return requestNewBufferBuilder(targetChannel); } }
/** * The {@link BufferBuilder} may already exist if not filled up last time, otherwise we need * request a new one for this target channel. */
The <code>BufferBuilder</code> may already exist if not filled up last time, otherwise we need request a new one for this target channel
getBufferBuilder
{ "repo_name": "fhueske/flink", "path": "flink-runtime/src/main/java/org/apache/flink/runtime/io/network/api/writer/RecordWriter.java", "license": "apache-2.0", "size": 11619 }
[ "java.io.IOException", "org.apache.flink.runtime.io.network.buffer.BufferBuilder" ]
import java.io.IOException; import org.apache.flink.runtime.io.network.buffer.BufferBuilder;
import java.io.*; import org.apache.flink.runtime.io.network.buffer.*;
[ "java.io", "org.apache.flink" ]
java.io; org.apache.flink;
748,033
@Override public String getAddColumnStatement( String tablename, ValueMetaInterface v, String tk, boolean useAutoinc, String pk, boolean semicolon ) { return "ALTER TABLE " + tablename + " ADD " + getFieldDefinition( v, tk, pk, useAutoinc, true, false ); }
String function( String tablename, ValueMetaInterface v, String tk, boolean useAutoinc, String pk, boolean semicolon ) { return STR + tablename + STR + getFieldDefinition( v, tk, pk, useAutoinc, true, false ); }
/** * Generates the SQL statement to add a column to the specified table For this generic type, i set it to the most * common possibility. * * @param tablename * The table to add * @param v * The column defined as a value * @param tk * the name of the technical key ...
Generates the SQL statement to add a column to the specified table For this generic type, i set it to the most common possibility
getAddColumnStatement
{ "repo_name": "wseyler/pentaho-kettle", "path": "core/src/main/java/org/pentaho/di/core/database/DerbyDatabaseMeta.java", "license": "apache-2.0", "size": 10814 }
[ "org.pentaho.di.core.row.ValueMetaInterface" ]
import org.pentaho.di.core.row.ValueMetaInterface;
import org.pentaho.di.core.row.*;
[ "org.pentaho.di" ]
org.pentaho.di;
45,740
@Override public ResultIterator<Type> iterator() { try { return new ResultSetResultIterator<Type>(mapper, jdbiStatement, stmt, context); } catch (SQLException e) { throw new ResultSetException("Exception thrown while attempting to traverse the result set", e, ...
ResultIterator<Type> function() { try { return new ResultSetResultIterator<Type>(mapper, jdbiStatement, stmt, context); } catch (SQLException e) { throw new ResultSetException(STR, e, context); } } /** * Used to execute the query and traverse the generated keys with a accumulator. * <a href="http: * keys involves invok...
/** * Returns a iterator over all generated keys. * * @return The key iterator */
Returns a iterator over all generated keys
iterator
{ "repo_name": "omidp/jdbi", "path": "src/main/java/org/skife/jdbi/v2/GeneratedKeys.java", "license": "apache-2.0", "size": 6287 }
[ "java.sql.ResultSet", "java.sql.SQLException", "org.skife.jdbi.v2.exceptions.ResultSetException" ]
import java.sql.ResultSet; import java.sql.SQLException; import org.skife.jdbi.v2.exceptions.ResultSetException;
import java.sql.*; import org.skife.jdbi.v2.exceptions.*;
[ "java.sql", "org.skife.jdbi" ]
java.sql; org.skife.jdbi;
486,565
public void closeStream(HadoopIgfsStreamDelegate delegate) throws IOException;
void function(HadoopIgfsStreamDelegate delegate) throws IOException;
/** * Close server stream. * * @param delegate Stream delegate. * @throws IOException If failed. */
Close server stream
closeStream
{ "repo_name": "SomeFire/ignite", "path": "modules/hadoop/src/main/java/org/apache/ignite/internal/processors/hadoop/impl/igfs/HadoopIgfsEx.java", "license": "apache-2.0", "size": 3786 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
2,176,138
@WrapToScript public Session loadExistingSession(IProject project) { Option<ModelingProject> modelingProject = ModelingProject.asModelingProject(project); if (modelingProject.some()) { return modelingProject.get().getSession(); } else { return null; } }
Session function(IProject project) { Option<ModelingProject> modelingProject = ModelingProject.asModelingProject(project); if (modelingProject.some()) { return modelingProject.get().getSession(); } else { return null; } }
/** * Load the Sirius {@link Session} already opened in the given project. * @param project * @return the session, or <code>null</code> if none */
Load the Sirius <code>Session</code> already opened in the given project
loadExistingSession
{ "repo_name": "alainbernard/ease-sirius", "path": "org.eclipse.sirius.ease/src/org/eclipse/sirius/ease/SiriusModule.java", "license": "epl-1.0", "size": 13827 }
[ "org.eclipse.core.resources.IProject", "org.eclipse.sirius.business.api.modelingproject.ModelingProject", "org.eclipse.sirius.business.api.session.Session", "org.eclipse.sirius.ext.base.Option" ]
import org.eclipse.core.resources.IProject; import org.eclipse.sirius.business.api.modelingproject.ModelingProject; import org.eclipse.sirius.business.api.session.Session; import org.eclipse.sirius.ext.base.Option;
import org.eclipse.core.resources.*; import org.eclipse.sirius.business.api.modelingproject.*; import org.eclipse.sirius.business.api.session.*; import org.eclipse.sirius.ext.base.*;
[ "org.eclipse.core", "org.eclipse.sirius" ]
org.eclipse.core; org.eclipse.sirius;
1,714,861
public Network inspectNetwork(String netId) throws IOException { return inspectNetwork(InspectNetworkParams.create(netId)); }
Network function(String netId) throws IOException { return inspectNetwork(InspectNetworkParams.create(netId)); }
/** * Returns docker network matching provided id * * @throws IOException * when problems occurs with docker api calls */
Returns docker network matching provided id
inspectNetwork
{ "repo_name": "slemeur/che", "path": "plugins/plugin-docker/che-plugin-docker-client/src/main/java/org/eclipse/che/plugin/docker/client/DockerConnector.java", "license": "epl-1.0", "size": 67150 }
[ "java.io.IOException", "org.eclipse.che.plugin.docker.client.json.network.Network", "org.eclipse.che.plugin.docker.client.params.network.InspectNetworkParams" ]
import java.io.IOException; import org.eclipse.che.plugin.docker.client.json.network.Network; import org.eclipse.che.plugin.docker.client.params.network.InspectNetworkParams;
import java.io.*; import org.eclipse.che.plugin.docker.client.json.network.*; import org.eclipse.che.plugin.docker.client.params.network.*;
[ "java.io", "org.eclipse.che" ]
java.io; org.eclipse.che;
2,693,307
private CloseableHttpClient getHttpClient() { CredentialsProvider credentialsProvider = new BasicCredentialsProvider(); credentialsProvider.setCredentials(new AuthScope(AuthScope.ANY_HOST, AuthScope.ANY_PORT, AuthScope.ANY_REALM), new UsernamePasswordCredentials(username, password));...
CloseableHttpClient function() { CredentialsProvider credentialsProvider = new BasicCredentialsProvider(); credentialsProvider.setCredentials(new AuthScope(AuthScope.ANY_HOST, AuthScope.ANY_PORT, AuthScope.ANY_REALM), new UsernamePasswordCredentials(username, password)); RequestConfig requestConfig = RequestConfig.cust...
/** * Returns the {@code CloseableHttpClient} to use. * * @return {@code CloseableHttpClient} to use. */
Returns the CloseableHttpClient to use
getHttpClient
{ "repo_name": "steuyfish/aem-data-exporter", "path": "src/main/java/aem/dataexporter/http/HttpReader.java", "license": "apache-2.0", "size": 10950 }
[ "org.apache.http.auth.AuthScope", "org.apache.http.auth.UsernamePasswordCredentials", "org.apache.http.client.CredentialsProvider", "org.apache.http.client.config.RequestConfig", "org.apache.http.impl.client.BasicCredentialsProvider", "org.apache.http.impl.client.CloseableHttpClient", "org.apache.http.i...
import org.apache.http.auth.AuthScope; import org.apache.http.auth.UsernamePasswordCredentials; import org.apache.http.client.CredentialsProvider; import org.apache.http.client.config.RequestConfig; import org.apache.http.impl.client.BasicCredentialsProvider; import org.apache.http.impl.client.CloseableHttpClient; impo...
import org.apache.http.auth.*; import org.apache.http.client.*; import org.apache.http.client.config.*; import org.apache.http.impl.client.*;
[ "org.apache.http" ]
org.apache.http;
1,732,026
@BeforeAll public static void setUpBeforeClass() throws Exception { testConnection = new GeoServerConnection(); testConnection.setConnectionName("Test Connection"); URL url = new URL(TEST_GEOSERVER_INSTANCE); testConnection.setUrl(url); testConnection.setUserName(TEST_G...
static void function() throws Exception { testConnection = new GeoServerConnection(); testConnection.setConnectionName(STR); URL url = new URL(TEST_GEOSERVER_INSTANCE); testConnection.setUrl(url); testConnection.setUserName(TEST_GEOSERVER_USERNAME); testConnection.setPassword(TEST_GEOSERVER_PASSWORD); }
/** * Sets the up before class. * * @throws Exception the exception */
Sets the up before class
setUpBeforeClass
{ "repo_name": "robward-scisys/sldeditor", "path": "modules/application/src/test/java/com/sldeditor/test/unit/extension/filesystem/geoserver/client/GeoServerClientTest.java", "license": "gpl-3.0", "size": 15355 }
[ "com.sldeditor.common.data.GeoServerConnection" ]
import com.sldeditor.common.data.GeoServerConnection;
import com.sldeditor.common.data.*;
[ "com.sldeditor.common" ]
com.sldeditor.common;
2,092,636
EReference getTile_Subtiles();
EReference getTile_Subtiles();
/** * Returns the meta object for the containment reference list '{@link guizmo.tiles.Tile#getSubtiles <em>Subtiles</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for the containment reference list '<em>Subtiles</em>'. * @see guizmo.tiles.Tile#getSubtiles() * @see #getTi...
Returns the meta object for the containment reference list '<code>guizmo.tiles.Tile#getSubtiles Subtiles</code>'.
getTile_Subtiles
{ "repo_name": "osanchezUM/guizmo", "path": "src/guizmo/tiles/TilesPackage.java", "license": "apache-2.0", "size": 66296 }
[ "org.eclipse.emf.ecore.EReference" ]
import org.eclipse.emf.ecore.EReference;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
530,473
private void validateClassDeclaration(Node n, boolean isAmbient) { validateClassHelper(n, isAmbient); validateName(n.getFirstChild()); }
void function(Node n, boolean isAmbient) { validateClassHelper(n, isAmbient); validateName(n.getFirstChild()); }
/** * In a class declaration, unlike a class expression, * the class name is required. */
In a class declaration, unlike a class expression, the class name is required
validateClassDeclaration
{ "repo_name": "selkhateeb/closure-compiler", "path": "src/com/google/javascript/jscomp/AstValidator.java", "license": "apache-2.0", "size": 39991 }
[ "com.google.javascript.rhino.Node" ]
import com.google.javascript.rhino.Node;
import com.google.javascript.rhino.*;
[ "com.google.javascript" ]
com.google.javascript;
2,271,543
@Test public void testFindBestMove_CheckmateInFive() throws Exception { assertFindMoveAtDepth(Move.create(KNIGHT, F7_IDX, H6_IDX), FEN_CHECKMATE_2_4, 5); }
void function() throws Exception { assertFindMoveAtDepth(Move.create(KNIGHT, F7_IDX, H6_IDX), FEN_CHECKMATE_2_4, 5); }
/** * Tests calling findBestMove with positions that result in mate in five moves. */
Tests calling findBestMove with positions that result in mate in five moves
testFindBestMove_CheckmateInFive
{ "repo_name": "dykstrom/ronja", "path": "src/test/java/se/dykstrom/ronja/engine/core/AlphaBetaFinderTest.java", "license": "gpl-3.0", "size": 13679 }
[ "se.dykstrom.ronja.common.model.Move", "se.dykstrom.ronja.test.TestUtils" ]
import se.dykstrom.ronja.common.model.Move; import se.dykstrom.ronja.test.TestUtils;
import se.dykstrom.ronja.common.model.*; import se.dykstrom.ronja.test.*;
[ "se.dykstrom.ronja" ]
se.dykstrom.ronja;
944,406
@SuppressWarnings("deprecation") private void unpack(Path source, Path destination, FileSystem sourceFileSystem, FileSystem destinationFileSystem) throws IOException, InterruptedException, ExecutionException { try (InputStream inputStream = sourceFileSystem.open...
@SuppressWarnings(STR) void function(Path source, Path destination, FileSystem sourceFileSystem, FileSystem destinationFileSystem) throws IOException, InterruptedException, ExecutionException { try (InputStream inputStream = sourceFileSystem.open(source)) { File dst = new File(destination.toUri()); String lowerDst = St...
/** * Do the localization action on the input stream. * We use the deprecated method RunJar.unJarAndSave for compatibility reasons. * We should use the more efficient RunJar.unJar in the future. * @param source Source path * @param destination Destination pth * @param sourceFileSystem Source filesyste...
Do the localization action on the input stream. We use the deprecated method RunJar.unJarAndSave for compatibility reasons. We should use the more efficient RunJar.unJar in the future
unpack
{ "repo_name": "lukmajercak/hadoop", "path": "hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/util/FSDownload.java", "license": "apache-2.0", "size": 17549 }
[ "java.io.File", "java.io.IOException", "java.io.InputStream", "java.io.OutputStream", "java.util.concurrent.ExecutionException", "java.util.regex.Pattern", "org.apache.commons.io.IOUtils", "org.apache.hadoop.fs.FileSystem", "org.apache.hadoop.fs.FileUtil", "org.apache.hadoop.fs.Path", "org.apach...
import java.io.File; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.util.concurrent.ExecutionException; import java.util.regex.Pattern; import org.apache.commons.io.IOUtils; import org.apache.hadoop.fs.FileSystem; import org.apache.hadoop.fs.FileUtil; import org.apache....
import java.io.*; import java.util.concurrent.*; import java.util.regex.*; import org.apache.commons.io.*; import org.apache.hadoop.fs.*; import org.apache.hadoop.util.*;
[ "java.io", "java.util", "org.apache.commons", "org.apache.hadoop" ]
java.io; java.util; org.apache.commons; org.apache.hadoop;
2,872,078
public PackageState state() { return this.state; }
PackageState function() { return this.state; }
/** * Get the state value. * * @return the state value */
Get the state value
state
{ "repo_name": "anudeepsharma/azure-sdk-for-java", "path": "azure-mgmt-batch/src/main/java/com/microsoft/azure/management/batch/implementation/ApplicationPackageInner.java", "license": "mit", "size": 4903 }
[ "com.microsoft.azure.management.batch.PackageState" ]
import com.microsoft.azure.management.batch.PackageState;
import com.microsoft.azure.management.batch.*;
[ "com.microsoft.azure" ]
com.microsoft.azure;
2,258,687
public List<SecurityRoleType<ApplicationDescriptor>> getAllSecurityRole() { List<SecurityRoleType<ApplicationDescriptor>> list = new ArrayList<SecurityRoleType<ApplicationDescriptor>>(); List<Node> nodeList = model.get("security-role"); for(Node node: nodeList) { SecurityRoleType<...
List<SecurityRoleType<ApplicationDescriptor>> function() { List<SecurityRoleType<ApplicationDescriptor>> list = new ArrayList<SecurityRoleType<ApplicationDescriptor>>(); List<Node> nodeList = model.get(STR); for(Node node: nodeList) { SecurityRoleType<ApplicationDescriptor> type = new SecurityRoleTypeImpl<ApplicationDe...
/** * Returns all <code>security-role</code> elements * @return list of <code>security-role</code> */
Returns all <code>security-role</code> elements
getAllSecurityRole
{ "repo_name": "forge/javaee-descriptors", "path": "impl/src/main/java/org/jboss/shrinkwrap/descriptor/impl/application6/ApplicationDescriptorImpl.java", "license": "epl-1.0", "size": 49252 }
[ "java.util.ArrayList", "java.util.List", "org.jboss.shrinkwrap.descriptor.api.application6.ApplicationDescriptor", "org.jboss.shrinkwrap.descriptor.api.javaee6.SecurityRoleType", "org.jboss.shrinkwrap.descriptor.impl.javaee6.SecurityRoleTypeImpl", "org.jboss.shrinkwrap.descriptor.spi.node.Node" ]
import java.util.ArrayList; import java.util.List; import org.jboss.shrinkwrap.descriptor.api.application6.ApplicationDescriptor; import org.jboss.shrinkwrap.descriptor.api.javaee6.SecurityRoleType; import org.jboss.shrinkwrap.descriptor.impl.javaee6.SecurityRoleTypeImpl; import org.jboss.shrinkwrap.descriptor.spi.node...
import java.util.*; import org.jboss.shrinkwrap.descriptor.api.application6.*; import org.jboss.shrinkwrap.descriptor.api.javaee6.*; import org.jboss.shrinkwrap.descriptor.impl.javaee6.*; import org.jboss.shrinkwrap.descriptor.spi.node.*;
[ "java.util", "org.jboss.shrinkwrap" ]
java.util; org.jboss.shrinkwrap;
2,159,790
private Composite createGroup(int numColum,final Composite parent){ Composite group = new Composite(parent, SWT.NONE); group.setLayoutData(SWTUtil.createFillHorizontallyGridData()); GridLayout groupInputGridLayout = new GridLayout(); groupInputGridLayout.numColumns = numColum; group.setLayout(groupInp...
Composite function(int numColum,final Composite parent){ Composite group = new Composite(parent, SWT.NONE); group.setLayoutData(SWTUtil.createFillHorizontallyGridData()); GridLayout groupInputGridLayout = new GridLayout(); groupInputGridLayout.numColumns = numColum; group.setLayout(groupInputGridLayout); return group; ...
/** * Creates the Composite for the Inner Group * @param numColum The Number of Columns in this Composite * @param parent The Parent Composite for this Composite * @return The Group Composite */
Creates the Composite for the Inner Group
createGroup
{ "repo_name": "WiednerF/ARXPlugin", "path": "src/org/deidentifier/arx/kettle/define/ViewCriteriaListField.java", "license": "apache-2.0", "size": 22884 }
[ "org.deidentifier.arx.kettle.common.SWTUtil", "org.eclipse.swt.layout.GridLayout", "org.eclipse.swt.widgets.Composite" ]
import org.deidentifier.arx.kettle.common.SWTUtil; import org.eclipse.swt.layout.GridLayout; import org.eclipse.swt.widgets.Composite;
import org.deidentifier.arx.kettle.common.*; import org.eclipse.swt.layout.*; import org.eclipse.swt.widgets.*;
[ "org.deidentifier.arx", "org.eclipse.swt" ]
org.deidentifier.arx; org.eclipse.swt;
498,500
private String findVIVOUriForDOI(RDFService rdfService, String doi) { // First, find a resource that already defines the DOI if (!StringUtils.isEmpty(doi)) { final List<String> works = new ArrayList<>(); String query = "SELECT ?work\n" + "WHERE\n" + ...
String function(RDFService rdfService, String doi) { if (!StringUtils.isEmpty(doi)) { final List<String> works = new ArrayList<>(); String query = STR + STR + "{\n" + STR + STR }\nSTR UNION\n" + STR + STR }\nSTR UNION\n" + STR + STR }\nSTR UNION\n" + STR + STR }\nSTR UNION\n" + STR + STR }\nSTR}\n";
/** * Find a Uri for a DOI * * @param rdfService * @param doi * @return */
Find a Uri for a DOI
findVIVOUriForDOI
{ "repo_name": "vivo-project/VIVO", "path": "api/src/main/java/org/vivoweb/webapp/controller/freemarker/CreateAndLinkResourceController.java", "license": "bsd-3-clause", "size": 89641 }
[ "edu.cornell.mannlib.vitro.webapp.rdfservice.RDFService", "java.util.ArrayList", "java.util.List", "org.apache.commons.lang3.StringUtils" ]
import edu.cornell.mannlib.vitro.webapp.rdfservice.RDFService; import java.util.ArrayList; import java.util.List; import org.apache.commons.lang3.StringUtils;
import edu.cornell.mannlib.vitro.webapp.rdfservice.*; import java.util.*; import org.apache.commons.lang3.*;
[ "edu.cornell.mannlib", "java.util", "org.apache.commons" ]
edu.cornell.mannlib; java.util; org.apache.commons;
2,067,369
public Node getPreviousSibling() { return previousSibling; }
Node function() { return previousSibling; }
/** * Returns the previous sibling of this node, or <code>null</code> * if this node has no previous sibling. * * @return the previous sibling, as a <code>Node</code>, or * <code>null</code>. */
Returns the previous sibling of this node, or <code>null</code> if this node has no previous sibling
getPreviousSibling
{ "repo_name": "andreagenso/java2scala", "path": "test/J2s/java/openjdk-6-src-b27/jdk/src/share/classes/javax/imageio/metadata/IIOMetadataNode.java", "license": "apache-2.0", "size": 29864 }
[ "org.w3c.dom.Node" ]
import org.w3c.dom.Node;
import org.w3c.dom.*;
[ "org.w3c.dom" ]
org.w3c.dom;
832,732
@ServiceMethod(returns = ReturnType.SINGLE) Mono<Response<Flux<ByteBuffer>>> getStatusWithResponseAsync( String resourceGroupName, String networkWatcherName, String packetCaptureName);
@ServiceMethod(returns = ReturnType.SINGLE) Mono<Response<Flux<ByteBuffer>>> getStatusWithResponseAsync( String resourceGroupName, String networkWatcherName, String packetCaptureName);
/** * Query the status of a running packet capture session. * * @param resourceGroupName The name of the resource group. * @param networkWatcherName The name of the Network Watcher resource. * @param packetCaptureName The name given to the packet capture session. * @throws IllegalArgumentE...
Query the status of a running packet capture session
getStatusWithResponseAsync
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/PacketCapturesClient.java", "license": "mit", "size": 32519 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.http.rest.Response", "java.nio.ByteBuffer" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.Response; import java.nio.ByteBuffer;
import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import java.nio.*;
[ "com.azure.core", "java.nio" ]
com.azure.core; java.nio;
265,926
@Override public boolean onCreateActionMode(ActionMode mode, Menu menu) { // Setting title mode.setTitle("Selected Authors"); // Inflate the menu for the CAB MenuInflater inflater = mode.getMenuInflater(); inflater.inflate(R.menu.contextual_menu, menu); contextual...
boolean function(ActionMode mode, Menu menu) { mode.setTitle(STR); MenuInflater inflater = mode.getMenuInflater(); inflater.inflate(R.menu.contextual_menu, menu); contextualMenu = menu; actionMode = mode; return true; }
/** * Called when action mode is first created. The menu supplied will be used to * generate action buttons for the action mode. * * @param mode ActionMode being created * @param menu Menu used to populate action buttons * @return true if the action mode should be created, false if enterin...
Called when action mode is first created. The menu supplied will be used to generate action buttons for the action mode
onCreateActionMode
{ "repo_name": "androoid/androoid-proofs", "path": "LibraryProof-maven/src/main/java/io/androoid/libraryproof/activities/authors/AuthorListActivity.java", "license": "apache-2.0", "size": 10513 }
[ "android.view.ActionMode", "android.view.Menu", "android.view.MenuInflater" ]
import android.view.ActionMode; import android.view.Menu; import android.view.MenuInflater;
import android.view.*;
[ "android.view" ]
android.view;
24,811
private void initTransportMode() { Objects.requireNonNull(settings.getClusterName()); Objects.requireNonNull(settings.getClusterNodes()); Settings.Builder tcSettings = Settings.settingsBuilder(); tcSettings.put("cluster.name", settings.getClusterName()); TransportClient cl ...
void function() { Objects.requireNonNull(settings.getClusterName()); Objects.requireNonNull(settings.getClusterNodes()); Settings.Builder tcSettings = Settings.settingsBuilder(); tcSettings.put(STR, settings.getClusterName()); TransportClient cl = TransportClient.builder() .settings(tcSettings).build(); settings.getClu...
/** * Starts client mode in {@link TransportClient} remote mode */
Starts client mode in <code>TransportClient</code> remote mode
initTransportMode
{ "repo_name": "CarstenHollmann/iceland", "path": "statistics/core/src/main/java/org/n52/iceland/statistics/impl/ElasticsearchAdminHandler.java", "license": "apache-2.0", "size": 14621 }
[ "java.net.InetAddress", "java.net.UnknownHostException", "java.util.Objects", "org.elasticsearch.client.transport.TransportClient", "org.elasticsearch.common.settings.Settings", "org.elasticsearch.common.transport.InetSocketTransportAddress" ]
import java.net.InetAddress; import java.net.UnknownHostException; import java.util.Objects; import org.elasticsearch.client.transport.TransportClient; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.common.transport.InetSocketTransportAddress;
import java.net.*; import java.util.*; import org.elasticsearch.client.transport.*; import org.elasticsearch.common.settings.*; import org.elasticsearch.common.transport.*;
[ "java.net", "java.util", "org.elasticsearch.client", "org.elasticsearch.common" ]
java.net; java.util; org.elasticsearch.client; org.elasticsearch.common;
1,493,513
@SuppressWarnings("unchecked") @Test public void testSetScriptActiveDoesNotDeactivateWhatWasJustActivated() { String filter = "name:type"; Calendar now = Calendar.getInstance(); Row<String, String> row0 = mockRow(); ColumnList<String>...
@SuppressWarnings(STR) void function() { String filter = STR; Calendar now = Calendar.getInstance(); Row<String, String> row0 = mockRow(); ColumnList<String> columnList0 = mockColumnList(row0); mockColumn(columnList0, STR, filter); mockColumn(columnList0, STR, 3L); mockColumn(columnList0, STR, true); mockColumn(columnL...
/** * If 8 is active, and the user tries to activate it again, don't de-activate it in the post-activation cleanup. */
If 8 is active, and the user tries to activate it again, don't de-activate it in the post-activation cleanup
testSetScriptActiveDoesNotDeactivateWhatWasJustActivated
{ "repo_name": "yeungbo/zuul", "path": "zuul-netflix/src/main/java/com/netflix/zuul/scriptManager/ZuulFilterDAOCassandra.java", "license": "apache-2.0", "size": 73663 }
[ "com.netflix.astyanax.model.ColumnList", "com.netflix.astyanax.model.Row", "java.util.Calendar", "java.util.HashMap", "java.util.Iterator", "java.util.Map", "org.mockito.InOrder", "org.mockito.Mockito" ]
import com.netflix.astyanax.model.ColumnList; import com.netflix.astyanax.model.Row; import java.util.Calendar; import java.util.HashMap; import java.util.Iterator; import java.util.Map; import org.mockito.InOrder; import org.mockito.Mockito;
import com.netflix.astyanax.model.*; import java.util.*; import org.mockito.*;
[ "com.netflix.astyanax", "java.util", "org.mockito" ]
com.netflix.astyanax; java.util; org.mockito;
1,503,220
@ServiceMethod(returns = ReturnType.SINGLE) private Mono<Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync( String resourceGroupName, String environmentName, EnvironmentCreateOrUpdateParameters parameters) { if (this.client.getEndpoint() == null) { return Mono ...
@ServiceMethod(returns = ReturnType.SINGLE) Mono<Response<Flux<ByteBuffer>>> function( String resourceGroupName, String environmentName, EnvironmentCreateOrUpdateParameters parameters) { if (this.client.getEndpoint() == null) { return Mono .error( new IllegalArgumentException( STR)); } if (this.client.getSubscriptionId...
/** * Create or update an environment in the specified subscription and resource group. * * @param resourceGroupName Name of an Azure Resource group. * @param environmentName Name of the environment. * @param parameters Parameters for creating an environment resource. * @throws IllegalArgu...
Create or update an environment in the specified subscription and resource group
createOrUpdateWithResponseAsync
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/timeseriesinsights/azure-resourcemanager-timeseriesinsights/src/main/java/com/azure/resourcemanager/timeseriesinsights/implementation/EnvironmentsClientImpl.java", "license": "mit", "size": 69389 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.http.rest.Response", "com.azure.core.util.FluxUtil", "com.azure.resourcemanager.timeseriesinsights.models.EnvironmentCreateOrUpdateParameters", "java.nio.ByteBuffer" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.Response; import com.azure.core.util.FluxUtil; import com.azure.resourcemanager.timeseriesinsights.models.EnvironmentCreateOrUpdateParameters; import java.nio.ByteBuffer;
import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.core.util.*; import com.azure.resourcemanager.timeseriesinsights.models.*; import java.nio.*;
[ "com.azure.core", "com.azure.resourcemanager", "java.nio" ]
com.azure.core; com.azure.resourcemanager; java.nio;
1,982,866
@Override public void die() { // kills the active value setActive(false); } /** * <i><b>getCurrentAnimationFrame</b></i> * <pre> public BufferedImage getCurrentAnimationFrame()</pre> * <p>Gets from the Animation 'texture' the current frame.</p> * @param None * @return BufferedImage *...
void function() { setActive(false); } /** * <i><b>getCurrentAnimationFrame</b></i> * <pre> public BufferedImage getCurrentAnimationFrame()</pre> * <p>Gets from the Animation 'texture' the current frame.</p> * @param None * @return BufferedImage * @see {@link dev.lucas.game.gfx.Animation Animation}
/** * <i><b>die</b></i> * <pre> public die()</pre> * <p>Sets the active variable to false</p> * @param None * @return None * **/
die <code> public die()</code> Sets the active variable to false
die
{ "repo_name": "VilePoison/JavaGame", "path": "Game/src/dev/lucas/game/entities/projectiles/Arrow.java", "license": "gpl-3.0", "size": 5100 }
[ "dev.lucas.game.gfx.Animation", "java.awt.image.BufferedImage" ]
import dev.lucas.game.gfx.Animation; import java.awt.image.BufferedImage;
import dev.lucas.game.gfx.*; import java.awt.image.*;
[ "dev.lucas.game", "java.awt" ]
dev.lucas.game; java.awt;
2,342,538
public boolean[] getStarJoinVector() { int count = joinSpecs.size(); if (!table.isFlat() || (!useStarJoin && count > 1 && joinSpecs.get(count - 1).getType() != JoinType.Left && joinSpe...
boolean[] function() { int count = joinSpecs.size(); if (!table.isFlat() (!useStarJoin && count > 1 && joinSpecs.get(count - 1).getType() != JoinType.Left && joinSpecs.get(count - 1).getType() != JoinType.Semi && joinSpecs.get(count - 1).getType() != JoinType.Anti && !joinSpecs.get(count - 1).isSingleValueOnly())) retu...
/** * Returns a boolean vector indicating whether the evaluation of join expressions * can be evaluated at an early stage if the input JoinSpec can be taken as a * star join. Otherwise returns null. * @return a boolean vector for a star join; or null for non star join. */
Returns a boolean vector indicating whether the evaluation of join expressions can be evaluated at an early stage if the input JoinSpec can be taken as a star join. Otherwise returns null
getStarJoinVector
{ "repo_name": "AakashPradeep/phoenix", "path": "phoenix-core/src/main/java/org/apache/phoenix/compile/JoinCompiler.java", "license": "apache-2.0", "size": 58051 }
[ "java.util.Iterator", "org.apache.phoenix.parse.JoinTableNode", "org.apache.phoenix.schema.TableRef" ]
import java.util.Iterator; import org.apache.phoenix.parse.JoinTableNode; import org.apache.phoenix.schema.TableRef;
import java.util.*; import org.apache.phoenix.parse.*; import org.apache.phoenix.schema.*;
[ "java.util", "org.apache.phoenix" ]
java.util; org.apache.phoenix;
214,750
protected Object validateId(final JsonObject element) { if (element == null) { throw new IllegalArgumentException("The entity cannot be null."); } else { updateIdProperty(element); if (element.has("id")) { JsonElement idElement = element.get("id")...
Object function(final JsonObject element) { if (element == null) { throw new IllegalArgumentException(STR); } else { updateIdProperty(element); if (element.has("id")) { JsonElement idElement = element.get("id"); if (isStringType(idElement)) { String id = getStringValue(idElement); if (!isValidStringId(id) isDefaultStri...
/** * Validates the id property from a JsonObject on Lookup/Update/Delete * action * * @param element The JsonObject to validate */
Validates the id property from a JsonObject on Lookup/Update/Delete action
validateId
{ "repo_name": "daemun/azure-mobile-services", "path": "sdk/android/src/sdk/src/main/java/com/microsoft/windowsazure/mobileservices/table/MobileServiceTableBase.java", "license": "apache-2.0", "size": 34721 }
[ "com.google.gson.JsonElement", "com.google.gson.JsonObject" ]
import com.google.gson.JsonElement; import com.google.gson.JsonObject;
import com.google.gson.*;
[ "com.google.gson" ]
com.google.gson;
1,835,893
public void seek(int position) throws IllegalStateException, OperationNotSupportedException { // add this pending seek operation to the list pendingOperations.add(new SeekRunnable(position)); cancelDeferredStop(); ensurePullAndPushRunning(); }
void function(int position) throws IllegalStateException, OperationNotSupportedException { pendingOperations.add(new SeekRunnable(position)); cancelDeferredStop(); ensurePullAndPushRunning(); }
/** * Seek to a given position * * @param position * Position * @throws IllegalStateException * If stream is in stopped state * @throws OperationNotSupportedException * If this object doesn't support the operation. */
Seek to a given position
seek
{ "repo_name": "maritelle/red5-server-common", "path": "src/main/java/org/red5/server/stream/PlayEngine.java", "license": "apache-2.0", "size": 82267 }
[ "org.red5.server.api.stream.OperationNotSupportedException" ]
import org.red5.server.api.stream.OperationNotSupportedException;
import org.red5.server.api.stream.*;
[ "org.red5.server" ]
org.red5.server;
594,941
protected String getContentTypeFromPage(URL pageURL) { String output = null; InputStream in = null; InputStreamReader isr = null; BufferedReader br = null; try { in = pageURL.openStream(); isr = new InputStreamReader(in, "ISO-8859-1"); br =...
String function(URL pageURL) { String output = null; InputStream in = null; InputStreamReader isr = null; BufferedReader br = null; try { in = pageURL.openStream(); isr = new InputStreamReader(in, STR); br = new BufferedReader(isr); String line = null; while ((line = br.readLine()) != null) { String lineLower = line.to...
/** ** Extract value of ContentType meta data from specified URL. ** the format of header is as follows: ** <head> ** <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> ** </head> ** <body>.... **/
Extract value of ContentType meta data from specified URL. the format of header is as follows: ...
getContentTypeFromPage
{ "repo_name": "kgibm/open-liberty", "path": "dev/com.ibm.ws.security.spnego/src/com/ibm/ws/security/spnego/PageLoader.java", "license": "epl-1.0", "size": 12398 }
[ "com.ibm.websphere.ras.Tr", "com.ibm.websphere.ras.TraceComponent", "java.io.BufferedReader", "java.io.IOException", "java.io.InputStream", "java.io.InputStreamReader", "java.io.UnsupportedEncodingException", "java.util.Locale" ]
import com.ibm.websphere.ras.Tr; import com.ibm.websphere.ras.TraceComponent; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.UnsupportedEncodingException; import java.util.Locale;
import com.ibm.websphere.ras.*; import java.io.*; import java.util.*;
[ "com.ibm.websphere", "java.io", "java.util" ]
com.ibm.websphere; java.io; java.util;
2,192,442
public CrawlerPack addCookie(String domain, String name, String value, String path, Date expires, boolean secure) { if( null == name ) { log.warn("addCookie: Cookie name null."); return this; } cookies.add(new Cookie(domain, name, val...
CrawlerPack function(String domain, String name, String value, String path, Date expires, boolean secure) { if( null == name ) { log.warn(STR); return this; } cookies.add(new Cookie(domain, name, value, path, expires, secure)); return this; }
/** * Creates a cookie with the given name, value, domain attribute, * path attribute, expiration attribute, and secure attribute * * @param name the cookie name * @param value the cookie value * @param domain the domain this cookie can be sent to * @param path the path prefi...
Creates a cookie with the given name, value, domain attribute, path attribute, expiration attribute, and secure attribute
addCookie
{ "repo_name": "abola/CrawlerPack", "path": "src/main/java/com/github/abola/crawler/CrawlerPack.java", "license": "apache-2.0", "size": 13777 }
[ "java.util.Date", "org.apache.commons.httpclient.Cookie" ]
import java.util.Date; import org.apache.commons.httpclient.Cookie;
import java.util.*; import org.apache.commons.httpclient.*;
[ "java.util", "org.apache.commons" ]
java.util; org.apache.commons;
747,704
private void endTask() { lock.lock(); try { runningTasks--; if (isTerminated()) { termination.signalAll(); } } finally { lock.unlock(); } } } /** * Creates an {@link ExecutorService} whose {@code submit} and {@code * invokeAll} methods...
void function() { lock.lock(); try { runningTasks--; if (isTerminated()) { termination.signalAll(); } } finally { lock.unlock(); } } } /** * Creates an {@link ExecutorService} whose {@code submit} and { * invokeAll} methods submit {@link ListenableFutureTask} instances to the * given delegate executor. Those methods, a...
/** * Decrements the running task count. */
Decrements the running task count
endTask
{ "repo_name": "baratali/guava", "path": "guava/src/com/google/common/util/concurrent/MoreExecutors.java", "license": "apache-2.0", "size": 33396 }
[ "java.util.concurrent.ExecutorService" ]
import java.util.concurrent.ExecutorService;
import java.util.concurrent.*;
[ "java.util" ]
java.util;
1,852,337
public Optional<MapGraphic> getMapGrapic(final String mgName) { return map.mapGraphics.stream() .filter(mapGraphic -> mapGraphic.getName() .equalsIgnoreCase(mgName)).findFirst(); }// getVariant()
Optional<MapGraphic> function(final String mgName) { return map.mapGraphics.stream() .filter(mapGraphic -> mapGraphic.getName() .equalsIgnoreCase(mgName)).findFirst(); }
/** * Finds the MapGraphic by name; case insensitive. */
Finds the MapGraphic by name; case insensitive
getMapGrapic
{ "repo_name": "takaki/jdip", "path": "src/main/java/dip/world/variant/data/Variant.java", "license": "gpl-2.0", "size": 15195 }
[ "java.util.Optional" ]
import java.util.Optional;
import java.util.*;
[ "java.util" ]
java.util;
1,147,889
public static RyaClient build( final AccumuloConnectionDetails connectionDetails, final Connector connector) { requireNonNull(connectionDetails); requireNonNull(connector); // Build the RyaCommands option with the initialized commands. return new RyaClient( ...
static RyaClient function( final AccumuloConnectionDetails connectionDetails, final Connector connector) { requireNonNull(connectionDetails); requireNonNull(connector); return new RyaClient( new AccumuloInstall(connectionDetails, connector), new AccumuloCreatePCJ(connectionDetails, connector), new AccumuloDeletePCJ(con...
/** * Initialize a set of {@link RyaClient} that will interact with an instance of * Rya that is hosted by an Accumulo cluster. * * @param connectionDetails - Details about the values that were used to create the connector to the cluster. (not null) * @param connector - The Accumulo connector t...
Initialize a set of <code>RyaClient</code> that will interact with an instance of Rya that is hosted by an Accumulo cluster
build
{ "repo_name": "pujav65/incubator-rya", "path": "extras/indexing/src/main/java/org/apache/rya/api/client/accumulo/AccumuloRyaClientFactory.java", "license": "apache-2.0", "size": 2825 }
[ "java.util.Objects", "org.apache.accumulo.core.client.Connector", "org.apache.rya.api.client.RyaClient" ]
import java.util.Objects; import org.apache.accumulo.core.client.Connector; import org.apache.rya.api.client.RyaClient;
import java.util.*; import org.apache.accumulo.core.client.*; import org.apache.rya.api.client.*;
[ "java.util", "org.apache.accumulo", "org.apache.rya" ]
java.util; org.apache.accumulo; org.apache.rya;
1,349,004
public int count(String node) { Deque<NetworkClient.InFlightRequest> queue = requests.get(node); return queue == null ? 0 : queue.size(); }
int function(String node) { Deque<NetworkClient.InFlightRequest> queue = requests.get(node); return queue == null ? 0 : queue.size(); }
/** * Return the number of in-flight requests directed at the given node * @param node The node * @return The request count. */
Return the number of in-flight requests directed at the given node
count
{ "repo_name": "sebadiaz/kafka", "path": "clients/src/main/java/org/apache/kafka/clients/InFlightRequests.java", "license": "apache-2.0", "size": 7026 }
[ "java.util.Deque" ]
import java.util.Deque;
import java.util.*;
[ "java.util" ]
java.util;
1,684,544
public void stopWork() { if (DEBUG) { CLog.d(LOG_TAG, "work_status: stopWork %s", this); } mExitTasksEarly = true; setPause(false); flushFileCache(); }
void function() { if (DEBUG) { CLog.d(LOG_TAG, STR, this); } mExitTasksEarly = true; setPause(false); flushFileCache(); }
/** * Drop all the work, and leave it in the work list. */
Drop all the work, and leave it in the work list
stopWork
{ "repo_name": "muxiaolin/cube-sdk-dev", "path": "core/src/in/srain/cube/image/ImageLoader.java", "license": "apache-2.0", "size": 17447 }
[ "in.srain.cube.util.CLog" ]
import in.srain.cube.util.CLog;
import in.srain.cube.util.*;
[ "in.srain.cube" ]
in.srain.cube;
1,748,831
private void addAvuMetadataAsProperty(DocumentWriter writer, MetaDataAndDomainData metadataValue) { Map<Name, Property> properties = new HashMap<Name, Property>(); writer.setPrimaryType(JCR_IRODS_AVU); Property property = new BasicSingleValueProperty(new BasicName( "http://www.irods.org/jcr/irods/1.0"...
void function(DocumentWriter writer, MetaDataAndDomainData metadataValue) { Map<Name, Property> properties = new HashMap<Name, Property>(); writer.setPrimaryType(JCR_IRODS_AVU); Property property = new BasicSingleValueProperty(new BasicName( STRhttp: metadataValue.getAvuValue()); properties.put(property.getName(), prop...
/** * Given a child document to contain the AVU, add the AVU values as * properties in this child object * * @param writer * {@link DocumentWriter} that is creating the irods:avu document * @param metadataValue * {@link MetaDataAndDomainData} that represents the iRODS AVU */
Given a child document to contain the AVU, add the AVU values as properties in this child object
addAvuMetadataAsProperty
{ "repo_name": "DICE-UNC/jargon-modeshape", "path": "irods-connector/attic/IRODSWriteableConnector.java", "license": "bsd-3-clause", "size": 45386 }
[ "java.util.HashMap", "java.util.Map", "org.irods.jargon.core.query.MetaDataAndDomainData", "org.modeshape.jcr.spi.federation.DocumentWriter", "org.modeshape.jcr.value.Name", "org.modeshape.jcr.value.Property", "org.modeshape.jcr.value.basic.BasicName", "org.modeshape.jcr.value.basic.BasicSingleValuePr...
import java.util.HashMap; import java.util.Map; import org.irods.jargon.core.query.MetaDataAndDomainData; import org.modeshape.jcr.spi.federation.DocumentWriter; import org.modeshape.jcr.value.Name; import org.modeshape.jcr.value.Property; import org.modeshape.jcr.value.basic.BasicName; import org.modeshape.jcr.value.b...
import java.util.*; import org.irods.jargon.core.query.*; import org.modeshape.jcr.spi.federation.*; import org.modeshape.jcr.value.*; import org.modeshape.jcr.value.basic.*;
[ "java.util", "org.irods.jargon", "org.modeshape.jcr" ]
java.util; org.irods.jargon; org.modeshape.jcr;
834,704
@Override public APISubscriptionResults searchApplicationsForUser(String searchAttribute, String searchString, int offset, int limit, String username) throws APIMgtDAOException { return null; }
APISubscriptionResults function(String searchAttribute, String searchString, int offset, int limit, String username) throws APIMgtDAOException { return null; }
/** * Retrieves all available API Subscriptions that match the given search criteria. This method supports * result pagination and ensures results returned belong to the specified username * * @param searchAttribute The attribute of a Subscription against which the search will be performed * @p...
Retrieves all available API Subscriptions that match the given search criteria. This method supports result pagination and ensures results returned belong to the specified username
searchApplicationsForUser
{ "repo_name": "rswijesena/carbon-apimgt", "path": "components/apimgt/org.wso2.carbon.apimgt.core/src/main/java/org/wso2/carbon/apimgt/core/dao/impl/APISubscriptionDAOImpl.java", "license": "apache-2.0", "size": 39123 }
[ "org.wso2.carbon.apimgt.core.exception.APIMgtDAOException", "org.wso2.carbon.apimgt.core.models.APISubscriptionResults" ]
import org.wso2.carbon.apimgt.core.exception.APIMgtDAOException; import org.wso2.carbon.apimgt.core.models.APISubscriptionResults;
import org.wso2.carbon.apimgt.core.exception.*; import org.wso2.carbon.apimgt.core.models.*;
[ "org.wso2.carbon" ]
org.wso2.carbon;
2,816,716
private CmsValidationResult validate(String validator, String value, String config) throws Exception { I_CmsValidationService validationService = getValidationService(validator); return validationService.validate(getCmsObject(), value, config); }
CmsValidationResult function(String validator, String value, String config) throws Exception { I_CmsValidationService validationService = getValidationService(validator); return validationService.validate(getCmsObject(), value, config); }
/** * Internal helper method for validating a single value.<p> * * @param validator the class name of the validation service * @param value the value to validate * @param config the configuration for the validation service * * @return the result of the validation * * ...
Internal helper method for validating a single value
validate
{ "repo_name": "serrapos/opencms-core", "path": "src/org/opencms/gwt/CmsCoreService.java", "license": "lgpl-2.1", "size": 50473 }
[ "org.opencms.gwt.shared.CmsValidationResult" ]
import org.opencms.gwt.shared.CmsValidationResult;
import org.opencms.gwt.shared.*;
[ "org.opencms.gwt" ]
org.opencms.gwt;
996,307
public void downloadImageToFileSystem(String file, SuccessCallback<Image> onSuccess, FailureCallback<Image> onFail) { downloadImageToFileSystem(file, onSuccess, onFail, true); }
void function(String file, SuccessCallback<Image> onSuccess, FailureCallback<Image> onFail) { downloadImageToFileSystem(file, onSuccess, onFail, true); }
/** * Downloads an image to a the file system asynchronously and calls the onSuccessCallback with the resulting image. * This will first try to load the image from Storage if it exists. * * @param file The storage file where the file should be saved. * @param onSuccess Callback called if the...
Downloads an image to a the file system asynchronously and calls the onSuccessCallback with the resulting image. This will first try to load the image from Storage if it exists
downloadImageToFileSystem
{ "repo_name": "codenameone/CodenameOne", "path": "CodenameOne/src/com/codename1/io/ConnectionRequest.java", "license": "gpl-2.0", "size": 108017 }
[ "com.codename1.ui.Image", "com.codename1.util.FailureCallback", "com.codename1.util.SuccessCallback" ]
import com.codename1.ui.Image; import com.codename1.util.FailureCallback; import com.codename1.util.SuccessCallback;
import com.codename1.ui.*; import com.codename1.util.*;
[ "com.codename1.ui", "com.codename1.util" ]
com.codename1.ui; com.codename1.util;
937,707
public void encode(JSONObject jsonobject) throws JSONException { generate(); writeJSON(jsonobject); }
void function(JSONObject jsonobject) throws JSONException { generate(); writeJSON(jsonobject); }
/** * Encode a JSONObject. * * @param jsonobject The JSONObject. * @throws JSONException */
Encode a JSONObject
encode
{ "repo_name": "manuelsagra/nuevapartida", "path": "util/src/org/json/zip/Zipper.java", "license": "mit", "size": 14214 }
[ "org.json.JSONException", "org.json.JSONObject" ]
import org.json.JSONException; import org.json.JSONObject;
import org.json.*;
[ "org.json" ]
org.json;
2,667,879
public static String convertStreamToString(InputStream is) { Scanner s = new Scanner(is); String ret; StringBuilder builder = new StringBuilder(); while (s.hasNextLine()) { builder.append(s.nextLine()).append("\n"); } ret = builder.toString(); System.out.println(ret); s.close(); ...
static String function(InputStream is) { Scanner s = new Scanner(is); String ret; StringBuilder builder = new StringBuilder(); while (s.hasNextLine()) { builder.append(s.nextLine()).append("\n"); } ret = builder.toString(); System.out.println(ret); s.close(); return ret; }
/** * This method converts a file given as an InputStream to a string containing the content of the * file * * @param is a InputStream from a file we want to read. * @return the content from the file as a string * @author jannis blueml */
This method converts a file given as an InputStream to a string containing the content of the file
convertStreamToString
{ "repo_name": "BluemlJ/GSAT", "path": "p_GSAT/src/main/java/gui/GUIUtils.java", "license": "lgpl-3.0", "size": 20633 }
[ "java.io.InputStream", "java.util.Scanner" ]
import java.io.InputStream; import java.util.Scanner;
import java.io.*; import java.util.*;
[ "java.io", "java.util" ]
java.io; java.util;
1,597,550
public boolean saveImage(OutputStream output, String format, double scale) { try { // get an image to draw into Dimension d = new Dimension((int)(scale*getWidth()), (int)(scale*getHeight())); BufferedImage img = getNewOffscreenB...
boolean function(OutputStream output, String format, double scale) { try { Dimension d = new Dimension((int)(scale*getWidth()), (int)(scale*getHeight())); BufferedImage img = getNewOffscreenBuffer(d.width, d.height); Graphics2D g = (Graphics2D)img.getGraphics(); Point2D p = new Point2D.Double(0,0); zoom(p, scale); bool...
/** * Saves a copy of this display as an image to the specified output stream. * @param output the output stream to write to. * @param format the image format (e.g., "JPG", "PNG"). The number and kind * of available formats varies by platform. See * {@link javax.imageio.ImageIO} and related cla...
Saves a copy of this display as an image to the specified output stream
saveImage
{ "repo_name": "ezegarra/microbrowser", "path": "src/prefuse/Display.java", "license": "bsd-3-clause", "size": 80487 }
[ "java.awt.Dimension", "java.awt.Graphics2D", "java.awt.geom.Point2D", "java.awt.image.BufferedImage", "java.io.OutputStream", "javax.imageio.ImageIO" ]
import java.awt.Dimension; import java.awt.Graphics2D; import java.awt.geom.Point2D; import java.awt.image.BufferedImage; import java.io.OutputStream; import javax.imageio.ImageIO;
import java.awt.*; import java.awt.geom.*; import java.awt.image.*; import java.io.*; import javax.imageio.*;
[ "java.awt", "java.io", "javax.imageio" ]
java.awt; java.io; javax.imageio;
2,449,289
@Column(name="timestamp") public long getTimestamp() { return this.timestamp; }
@Column(name=STR) long function() { return this.timestamp; }
/** * standard getter for the attribute timestamp * * @return the timestamp the action did occur */
standard getter for the attribute timestamp
getTimestamp
{ "repo_name": "LemoProject/Lemo-Data-Management-Server", "path": "src/main/java/de/lemo/dms/connectors/lemo_0_8/mapping/ScormLogLMS.java", "license": "gpl-3.0", "size": 4718 }
[ "javax.persistence.Column" ]
import javax.persistence.Column;
import javax.persistence.*;
[ "javax.persistence" ]
javax.persistence;
1,162,547
@Nullable public static String readScaleAndWriteImage(@NonNull final String filePath, final int maxXY) { if (maxXY <= 0) { return filePath; } final Bitmap image = readDownsampledImage(filePath, maxXY, maxXY); if (image == null) { return null; } ...
static String function(@NonNull final String filePath, final int maxXY) { if (maxXY <= 0) { return filePath; } final Bitmap image = readDownsampledImage(filePath, maxXY, maxXY); if (image == null) { return null; } final BitmapDrawable scaledImage = scaleBitmapTo(image, maxXY, maxXY); final File tempImageFile = getOutpu...
/** * Scales an image to the desired bounds and encodes to file. * * @param filePath * Image to read * @param maxXY * bounds * @return filename and path, <tt>null</tt> if something fails */
Scales an image to the desired bounds and encodes to file
readScaleAndWriteImage
{ "repo_name": "SammysHP/cgeo", "path": "main/src/cgeo/geocaching/utils/ImageUtils.java", "license": "apache-2.0", "size": 19511 }
[ "android.graphics.Bitmap", "android.graphics.drawable.BitmapDrawable", "java.io.File", "org.eclipse.jdt.annotation.NonNull" ]
import android.graphics.Bitmap; import android.graphics.drawable.BitmapDrawable; import java.io.File; import org.eclipse.jdt.annotation.NonNull;
import android.graphics.*; import android.graphics.drawable.*; import java.io.*; import org.eclipse.jdt.annotation.*;
[ "android.graphics", "java.io", "org.eclipse.jdt" ]
android.graphics; java.io; org.eclipse.jdt;
2,065,318
public HashMap<StatsField, Long> getStatisticsForLevel(int level) { if (level >= m_levelCount) return null; return m_levels.get(level); }
HashMap<StatsField, Long> function(int level) { if (level >= m_levelCount) return null; return m_levels.get(level); }
/** * Get the map field names to values for a particular level. * * @param level The number of network hops from the root plannonde. * @return The map of field names to values for a particular level. */
Get the map field names to values for a particular level
getStatisticsForLevel
{ "repo_name": "kobronson/cs-voltdb", "path": "src/frontend/org/voltdb/planner/PlanStatistics.java", "license": "agpl-3.0", "size": 5119 }
[ "java.util.HashMap" ]
import java.util.HashMap;
import java.util.*;
[ "java.util" ]
java.util;
2,175,981
public static CancellableTask declineActivity(long activityId, SimpleRequestTask afterTask){ String action = String.format(URL_DECLINE, activityId); RequestParams params = new RequestParams() .setAuthKey(JoetzApplication.getContext().getLoginManager().getAuthKey()); return ...
static CancellableTask function(long activityId, SimpleRequestTask afterTask){ String action = String.format(URL_DECLINE, activityId); RequestParams params = new RequestParams() .setAuthKey(JoetzApplication.getContext().getLoginManager().getAuthKey()); return ApiConnection.delete(action, JsonUtils.createSimpleUserTask(...
/** * Declines the activity for the user * @param activityId The activity ID of the activity the user wants to decline * @param afterTask The task to be executed when the request is finished * @return The task */
Declines the activity for the user
declineActivity
{ "repo_name": "ProjectGroep1/Joetz-Android-V2", "path": "Joetz_Android_V2/app/src/main/java/com/example/jens/myapplication/apimanager/manager/ActivityManager.java", "license": "gpl-2.0", "size": 6446 }
[ "com.example.jens.myapplication.apimanager.ApiConnection", "com.example.jens.myapplication.apimanager.CancellableTask", "com.example.jens.myapplication.apimanager.RequestParams", "com.example.jens.myapplication.apimanager.SimpleRequestTask", "com.example.jens.myapplication.sam.JoetzApplication", "com.exam...
import com.example.jens.myapplication.apimanager.ApiConnection; import com.example.jens.myapplication.apimanager.CancellableTask; import com.example.jens.myapplication.apimanager.RequestParams; import com.example.jens.myapplication.apimanager.SimpleRequestTask; import com.example.jens.myapplication.sam.JoetzApplication...
import com.example.jens.myapplication.apimanager.*; import com.example.jens.myapplication.sam.*; import com.example.jens.myapplication.util.*;
[ "com.example.jens" ]
com.example.jens;
1,024,865
private long findHighestId() { return this.registeredServices.stream().map(RegisteredService::getId).max(Comparator.naturalOrder()).orElse(0L); }
long function() { return this.registeredServices.stream().map(RegisteredService::getId).max(Comparator.naturalOrder()).orElse(0L); }
/** * This isn't super-fast but we don't expect thousands of services. * * @return the highest service id in the list of registered services */
This isn't super-fast but we don't expect thousands of services
findHighestId
{ "repo_name": "fogbeam/cas_mirror", "path": "core/cas-server-core-services-registry/src/main/java/org/apereo/cas/services/InMemoryServiceRegistry.java", "license": "apache-2.0", "size": 3375 }
[ "java.util.Comparator" ]
import java.util.Comparator;
import java.util.*;
[ "java.util" ]
java.util;
1,452,817
@Override protected void finalizeList() { String header; super.finalizeList(); if (m_List.size() > 0) { header = "Actor,"; header += "Tag(s)"; m_List.add(0, header); } }
void function() { String header; super.finalizeList(); if (m_List.size() > 0) { header = STR; header += STR; m_List.add(0, header); } }
/** * Finishes up the list. */
Finishes up the list
finalizeList
{ "repo_name": "automenta/adams-core", "path": "src/main/java/adams/flow/processor/ListAnnotationTags.java", "license": "gpl-3.0", "size": 4910 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,834,016
public static PredicateOperation predicate(Operator operator, ImmutableList<Expression<?>> args) { return new PredicateOperation(operator, args); }
static PredicateOperation function(Operator operator, ImmutableList<Expression<?>> args) { return new PredicateOperation(operator, args); }
/** * Create a new Operation expression * * @param operator operator * @param args operation arguments * @return operation expression */
Create a new Operation expression
predicate
{ "repo_name": "dharaburda/querydsl", "path": "querydsl-core/src/main/java/com/querydsl/core/types/ExpressionUtils.java", "license": "apache-2.0", "size": 26720 }
[ "com.google.common.collect.ImmutableList" ]
import com.google.common.collect.ImmutableList;
import com.google.common.collect.*;
[ "com.google.common" ]
com.google.common;
2,687,057
public String toString() { StringWriter sw = new StringWriter(); print(Indent.NONE, new PrintWriter(sw)); return sw.toString(); }
String function() { StringWriter sw = new StringWriter(); print(Indent.NONE, new PrintWriter(sw)); return sw.toString(); }
/** * Return a string representation of this Tag and all its children * recursively. */
Return a string representation of this Tag and all its children recursively
toString
{ "repo_name": "mcculls/bnd", "path": "org.osgi.impl.bundle.repoindex.lib/src/org/osgi/service/indexer/impl/util/Tag.java", "license": "apache-2.0", "size": 11450 }
[ "java.io.PrintWriter", "java.io.StringWriter" ]
import java.io.PrintWriter; import java.io.StringWriter;
import java.io.*;
[ "java.io" ]
java.io;
557,592
public final ListSharedAlbumsPagedResponse listSharedAlbums() { return super.listSharedAlbums(false); } /** * Searches for media items in a user's Google Photos library. If no filters are set, then all * media items in the user's library are returned. If an album is set, all media items in the * spe...
final ListSharedAlbumsPagedResponse function() { return super.listSharedAlbums(false); } /** * Searches for media items in a user's Google Photos library. If no filters are set, then all * media items in the user's library are returned. If an album is set, all media items in the * specified album are returned. If filte...
/** * Lists all shared albums available in the Sharing tab of the user's Google Photos app. * * <p>Calls {@link #listSharedAlbums(boolean)} with excludeNonAppCreateData set to false. */
Lists all shared albums available in the Sharing tab of the user's Google Photos app. Calls <code>#listSharedAlbums(boolean)</code> with excludeNonAppCreateData set to false
listSharedAlbums
{ "repo_name": "google/java-photoslibrary", "path": "photoslibraryapi/src/main/java/com/google/photos/library/v1/PhotosLibraryClient.java", "license": "apache-2.0", "size": 16650 }
[ "com.google.photos.library.v1.internal.InternalPhotosLibraryClient", "com.google.photos.library.v1.proto.Filters", "com.google.photos.library.v1.util.OrderBy", "com.google.photos.types.proto.MediaItem" ]
import com.google.photos.library.v1.internal.InternalPhotosLibraryClient; import com.google.photos.library.v1.proto.Filters; import com.google.photos.library.v1.util.OrderBy; import com.google.photos.types.proto.MediaItem;
import com.google.photos.library.v1.internal.*; import com.google.photos.library.v1.proto.*; import com.google.photos.library.v1.util.*; import com.google.photos.types.proto.*;
[ "com.google.photos" ]
com.google.photos;
1,945,336
public double getDouble(double def) { Double d = MathHelper.castDouble(value); if (d != null) { return d; } if (this.value == null) { this.setValue(def, true); } return def; }
double function(double def) { Double d = MathHelper.castDouble(value); if (d != null) { return d; } if (this.value == null) { this.setValue(def, true); } return def; }
/** * Gets this node's value as a double. * @param def Default if the value isn't set. * @return This node's double value. */
Gets this node's value as a double
getDouble
{ "repo_name": "good2000mo/OpenClassicAPI", "path": "src/main/java/ch/spacebase/openclassic/api/config/ConfigurationNode.java", "license": "mit", "size": 8172 }
[ "ch.spacebase.openclassic.api.math.MathHelper" ]
import ch.spacebase.openclassic.api.math.MathHelper;
import ch.spacebase.openclassic.api.math.*;
[ "ch.spacebase.openclassic" ]
ch.spacebase.openclassic;
2,039,581
private static String runSshCopyId(String pathKey, String user, String password, String host) throws Exception { StringBuilder _command = new StringBuilder(); StringBuilder _ssh_command = new StringBuilder(); _ssh_command.append("ssh-copy-id -i "); _ssh_command.append(" "); _s...
static String function(String pathKey, String user, String password, String host) throws Exception { StringBuilder _command = new StringBuilder(); StringBuilder _ssh_command = new StringBuilder(); _ssh_command.append(STR); _ssh_command.append(" "); _ssh_command.append(pathKey); _ssh_command.append(" "); _ssh_command.ap...
/** * Ejecuta un comando de transferencia de ficheros remota mediante scp * @param command * @param user * @param password * @param host * @return * @throws Exception */
Ejecuta un comando de transferencia de ficheros remota mediante scp
runSshCopyId
{ "repo_name": "WhiteBearSolutions/WBSAirback", "path": "src/com/whitebearsolutions/imagine/wbsairback/net/ReplicationManager.java", "license": "apache-2.0", "size": 60855 }
[ "com.whitebearsolutions.util.Command" ]
import com.whitebearsolutions.util.Command;
import com.whitebearsolutions.util.*;
[ "com.whitebearsolutions.util" ]
com.whitebearsolutions.util;
739,114
public Map<Object, List<AbstractRecord>> getDataResults() { return this.dataResults; }
Map<Object, List<AbstractRecord>> function() { return this.dataResults; }
/** * INTERNAL: * Return temporary list of rows from parent batch query per batched mapping. * This is used for IN batching in batches. */
Return temporary list of rows from parent batch query per batched mapping. This is used for IN batching in batches
getDataResults
{ "repo_name": "RallySoftware/eclipselink.runtime", "path": "foundation/org.eclipse.persistence.core/src/org/eclipse/persistence/queries/BatchFetchPolicy.java", "license": "epl-1.0", "size": 9999 }
[ "java.util.List", "java.util.Map", "org.eclipse.persistence.internal.sessions.AbstractRecord" ]
import java.util.List; import java.util.Map; import org.eclipse.persistence.internal.sessions.AbstractRecord;
import java.util.*; import org.eclipse.persistence.internal.sessions.*;
[ "java.util", "org.eclipse.persistence" ]
java.util; org.eclipse.persistence;
989,628
public void writeTo(OutputStream out) throws IOException { out.write(buf, 0, count); }
void function(OutputStream out) throws IOException { out.write(buf, 0, count); }
/** * Writes the complete contents of this byte array output stream to * the specified output stream argument, as if by calling the output * stream's write method using <code>out.write(buf, 0, count)</code>. * * @param out the output stream to which to write the data. * @throws IOException...
Writes the complete contents of this byte array output stream to the specified output stream argument, as if by calling the output stream's write method using <code>out.write(buf, 0, count)</code>
writeTo
{ "repo_name": "jprante/elasticsearch-client", "path": "elasticsearch-client-common/src/main/java/org/elasticsearch/common/io/FastByteArrayOutputStream.java", "license": "apache-2.0", "size": 7059 }
[ "java.io.IOException", "java.io.OutputStream" ]
import java.io.IOException; import java.io.OutputStream;
import java.io.*;
[ "java.io" ]
java.io;
2,340,573
private void configureSecurityContextChain(final Map<String, String> principals, final Map<String, String> credentials, final IPerson person, final ISecurityContext securityContext, final String baseContextName) throws PortalSecurityException { this.setContextParameters(principals, c...
void function(final Map<String, String> principals, final Map<String, String> credentials, final IPerson person, final ISecurityContext securityContext, final String baseContextName) throws PortalSecurityException { this.setContextParameters(principals, credentials, baseContextName, securityContext, person); for (final...
/** * Recurse through the {@link ISecurityContext} chain, setting the credentials for each. * TODO This functionality should be moved into the {@link org.apereo.portal.security.provider.ChainingSecurityContext}. * * @param principals * @param credentials * @param person * @param secur...
Recurse through the <code>ISecurityContext</code> chain, setting the credentials for each. TODO This functionality should be moved into the <code>org.apereo.portal.security.provider.ChainingSecurityContext</code>
configureSecurityContextChain
{ "repo_name": "apetro/uPortal", "path": "uportal-war/src/main/java/org/apereo/portal/services/Authentication.java", "license": "apache-2.0", "size": 17458 }
[ "java.util.Enumeration", "java.util.Map", "org.apereo.portal.security.IPerson", "org.apereo.portal.security.ISecurityContext", "org.apereo.portal.security.PortalSecurityException" ]
import java.util.Enumeration; import java.util.Map; import org.apereo.portal.security.IPerson; import org.apereo.portal.security.ISecurityContext; import org.apereo.portal.security.PortalSecurityException;
import java.util.*; import org.apereo.portal.security.*;
[ "java.util", "org.apereo.portal" ]
java.util; org.apereo.portal;
2,605,958
private void setupDataTestDirOnTestFS() throws IOException { if (dataTestDirOnTestFS != null) { LOG.warn("Data test on test fs dir already setup in " + dataTestDirOnTestFS.toString()); return; } dataTestDirOnTestFS = getNewDataTestDirOnTestFS(); }
void function() throws IOException { if (dataTestDirOnTestFS != null) { LOG.warn(STR + dataTestDirOnTestFS.toString()); return; } dataTestDirOnTestFS = getNewDataTestDirOnTestFS(); }
/** * Sets up a path in test filesystem to be used by tests. * Creates a new directory if not already setup. */
Sets up a path in test filesystem to be used by tests. Creates a new directory if not already setup
setupDataTestDirOnTestFS
{ "repo_name": "amyvmiwei/hbase", "path": "hbase-server/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java", "license": "apache-2.0", "size": 143059 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
898,450
protected JComponent _createSearchToolbar() { this._searchField = new JTextField(); this._searchPgBar = new JProgressBar(); this._searchPgBar.setVisible(false); this._searchButton = UIUtils.makeButton("Search", "search", this._cmdButtonListener, COMMAND_SEARCH); GridBagPanel findBar = new GridBa...
JComponent function() { this._searchField = new JTextField(); this._searchPgBar = new JProgressBar(); this._searchPgBar.setVisible(false); this._searchButton = UIUtils.makeButton(STR, STR, this._cmdButtonListener, COMMAND_SEARCH); GridBagPanel findBar = new GridBagPanel(); findBar.setOpaque(false); findBar.add(this._se...
/** * Creates the Search toolbar that sits at the bottom of * the control. * * @return The newly created Search toolbar */
Creates the Search toolbar that sits at the bottom of the control
_createSearchToolbar
{ "repo_name": "goc9000/UniArchive", "path": "src/uniarchive/widgets/ConversationsView.java", "license": "gpl-3.0", "size": 13798 }
[ "javax.swing.JComponent", "javax.swing.JProgressBar", "javax.swing.JTextField" ]
import javax.swing.JComponent; import javax.swing.JProgressBar; import javax.swing.JTextField;
import javax.swing.*;
[ "javax.swing" ]
javax.swing;
1,928,970
public void setPhantomJsBinaryPath(String phantomJsBinaryPath) { Validate.notNull(phantomJsBinaryPath, "Parameter phantomJsBinaryPath must not be null."); if (!this.phantomJsBinaryPath.equals(phantomJsBinaryPath)) { this.phantomJsBinaryPath = phantomJsBinaryPath; saveAndSet...
void function(String phantomJsBinaryPath) { Validate.notNull(phantomJsBinaryPath, STR); if (!this.phantomJsBinaryPath.equals(phantomJsBinaryPath)) { this.phantomJsBinaryPath = phantomJsBinaryPath; saveAndSetSystemProperty( PHANTOM_JS_BINARY_KEY, PHANTOM_JS_BINARY_SYSTEM_PROPERTY, phantomJsBinaryPath); } }
/** * Sets the path to PhantomJS binary. * * @param phantomJsBinaryPath the path to PhantomJS binary, or empty if not known. * @throws IllegalArgumentException if {@code phantomJsBinaryPath} is {@code null}. */
Sets the path to PhantomJS binary
setPhantomJsBinaryPath
{ "repo_name": "kingthorin/zap-extensions", "path": "addOns/selenium/src/main/java/org/zaproxy/zap/extension/selenium/SeleniumOptions.java", "license": "apache-2.0", "size": 16873 }
[ "org.apache.commons.lang.Validate" ]
import org.apache.commons.lang.Validate;
import org.apache.commons.lang.*;
[ "org.apache.commons" ]
org.apache.commons;
1,194,865
public List<Result<BlobInfo>> gets() { return getResult; }
List<Result<BlobInfo>> function() { return getResult; }
/** * Returns the results for the get operations using the request order. */
Returns the results for the get operations using the request order
gets
{ "repo_name": "dgv3/googlecloudjava", "path": "gcloud-java-storage/src/main/java/com/google/gcloud/storage/BatchResponse.java", "license": "apache-2.0", "size": 4258 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,819,508
public boolean supportsStatementPooling() throws SQLException { return false; }
boolean function() throws SQLException { return false; }
/** * Retrieves weather this database supports statement pooling. * * @return <code>true</code> is so; <code>false</code> otherwise * @throws SQLExcpetion if a database access error occurs * @since 1.4 */
Retrieves weather this database supports statement pooling
supportsStatementPooling
{ "repo_name": "hornn/interviews", "path": "src/pl/pljava/src/java/pljava/org/postgresql/pljava/jdbc/SPIDatabaseMetaData.java", "license": "apache-2.0", "size": 140347 }
[ "java.sql.SQLException" ]
import java.sql.SQLException;
import java.sql.*;
[ "java.sql" ]
java.sql;
1,270,979
public EAttribute getEquivalentInjection_MaxP() { return (EAttribute)getEquivalentInjection().getEStructuralFeatures().get(1); }
EAttribute function() { return (EAttribute)getEquivalentInjection().getEStructuralFeatures().get(1); }
/** * Returns the meta object for the attribute '{@link CIM15.IEC61970.Equivalents.EquivalentInjection#getMaxP <em>Max P</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for the attribute '<em>Max P</em>'. * @see CIM15.IEC61970.Equivalents.EquivalentInjection#getMaxP() * @...
Returns the meta object for the attribute '<code>CIM15.IEC61970.Equivalents.EquivalentInjection#getMaxP Max P</code>'.
getEquivalentInjection_MaxP
{ "repo_name": "SES-fortiss/SmartGridCoSimulation", "path": "core/cim15/src/CIM15/IEC61970/Equivalents/EquivalentsPackage.java", "license": "apache-2.0", "size": 86298 }
[ "org.eclipse.emf.ecore.EAttribute" ]
import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
990,225
private int getStatusBarHeight() { if (statusBarHeight == 0) { try { Class<?> c = Class.forName("com.android.internal.R$dimen"); Object o = c.newInstance(); Field field = c.getField("status_bar_height"); int x = (Integer) field.get(...
int function() { if (statusBarHeight == 0) { try { Class<?> c = Class.forName(STR); Object o = c.newInstance(); Field field = c.getField(STR); int x = (Integer) field.get(o); statusBarHeight = getResources().getDimensionPixelSize(x); } catch (Exception e) { e.printStackTrace(); } } return statusBarHeight; } private boo...
/** * get status bar height * * @return */
get status bar height
getStatusBarHeight
{ "repo_name": "wogua/LJAndroidStudy", "path": "app/src/main/java/com/lijun/androidstudy/floatmeltitask/NoteWindowView.java", "license": "gpl-3.0", "size": 17084 }
[ "java.lang.reflect.Field" ]
import java.lang.reflect.Field;
import java.lang.reflect.*;
[ "java.lang" ]
java.lang;
2,887,309
EAttribute getPWRSteamSupply_CoreHTLagTC1();
EAttribute getPWRSteamSupply_CoreHTLagTC1();
/** * Returns the meta object for the attribute '{@link CIM.IEC61970.Generation.GenerationDynamics.PWRSteamSupply#getCoreHTLagTC1 <em>Core HT Lag TC1</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for the attribute '<em>Core HT Lag TC1</em>'. * @see CIM.IEC61970.Generation...
Returns the meta object for the attribute '<code>CIM.IEC61970.Generation.GenerationDynamics.PWRSteamSupply#getCoreHTLagTC1 Core HT Lag TC1</code>'.
getPWRSteamSupply_CoreHTLagTC1
{ "repo_name": "georghinkel/ttc2017smartGrids", "path": "solutions/ModelJoin/src/main/java/CIM/IEC61970/Generation/GenerationDynamics/GenerationDynamicsPackage.java", "license": "mit", "size": 239957 }
[ "org.eclipse.emf.ecore.EAttribute" ]
import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
1,752,047
@Test(expected = AccessHelper.Failure.class) @Expect( message = "invocation target failure", matcher = Expect.Matcher.STARTS_WITH, cause = @Expect.Cause( type = IllegalArgumentException.class, message = "expected...
@Test(expected = AccessHelper.Failure.class) @Expect( message = STR, matcher = Expect.Matcher.STARTS_WITH, cause = @Expect.Cause( type = IllegalArgumentException.class, message = STR ) ) void function() { AccessHelper.Objects.create(CLASS_ATOM, TYPES_ATOM, }
/** * Test failed creation without expected exception. */
Test failed creation without expected exception
createWithNullExpect
{ "repo_name": "gwynlavin/jactors-junit", "path": "src/test/java/org/jactors/junit/PropertyTest.java", "license": "mit", "size": 24690 }
[ "org.jactors.junit.helper.AccessHelper", "org.junit.Test" ]
import org.jactors.junit.helper.AccessHelper; import org.junit.Test;
import org.jactors.junit.helper.*; import org.junit.*;
[ "org.jactors.junit", "org.junit" ]
org.jactors.junit; org.junit;
929,901
public void reLayoutWindow(View view, WindowManager.LayoutParams wlp) { mWindowManager.updateViewLayout(view, wlp); }
void function(View view, WindowManager.LayoutParams wlp) { mWindowManager.updateViewLayout(view, wlp); }
/** * Triggers a Window undergo a screen measurement and layout pass with the provided * {@link android.view.WindowManager.LayoutParams}. * * @param view the Window containing this view will have its LayoutParams set to {@code wlp}. * @param wlp the new LayoutParams to set on the Window. *...
Triggers a Window undergo a screen measurement and layout pass with the provided <code>android.view.WindowManager.LayoutParams</code>
reLayoutWindow
{ "repo_name": "cngu/shades", "path": "app/src/main/java/com/cngu/shades/manager/WindowViewManager.java", "license": "mit", "size": 1433 }
[ "android.view.View", "android.view.WindowManager" ]
import android.view.View; import android.view.WindowManager;
import android.view.*;
[ "android.view" ]
android.view;
861,329
@Override void close(); class Result { private final ImmutableMap<PackageIdentifier, PackageOrException> loadedPackages; private final ImmutableList<Event> events; Result( ImmutableMap<PackageIdentifier, PackageOrException> loadedPackages, ImmutableList<Event> events) { this...
void close(); class Result { private final ImmutableMap<PackageIdentifier, PackageOrException> loadedPackages; private final ImmutableList<Event> events; Result( ImmutableMap<PackageIdentifier, PackageOrException> loadedPackages, ImmutableList<Event> events) { this.loadedPackages = loadedPackages; this.events = events;...
/** * Shut down the internal threadpools used by the {@link PackageLoader}. * * <p>Call this method when you are completely done with the {@link PackageLoader} instance, * otherwise there may be resource leaks. */
Shut down the internal threadpools used by the <code>PackageLoader</code>. Call this method when you are completely done with the <code>PackageLoader</code> instance, otherwise there may be resource leaks
close
{ "repo_name": "twitter-forks/bazel", "path": "src/main/java/com/google/devtools/build/lib/skyframe/packages/PackageLoader.java", "license": "apache-2.0", "size": 3448 }
[ "com.google.common.collect.ImmutableList", "com.google.common.collect.ImmutableMap", "com.google.devtools.build.lib.cmdline.PackageIdentifier", "com.google.devtools.build.lib.events.Event" ]
import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; import com.google.devtools.build.lib.cmdline.PackageIdentifier; import com.google.devtools.build.lib.events.Event;
import com.google.common.collect.*; import com.google.devtools.build.lib.cmdline.*; import com.google.devtools.build.lib.events.*;
[ "com.google.common", "com.google.devtools" ]
com.google.common; com.google.devtools;
1,649,182
private BPOfferService getBPOSForBlock(ExtendedBlock block) throws IOException { Preconditions.checkNotNull(block); BPOfferService bpos = blockPoolManager.get(block.getBlockPoolId()); if (bpos == null) { throw new IOException("cannot locate OfferService thread for bp="+ block.getBloc...
BPOfferService function(ExtendedBlock block) throws IOException { Preconditions.checkNotNull(block); BPOfferService bpos = blockPoolManager.get(block.getBlockPoolId()); if (bpos == null) { throw new IOException(STR+ block.getBlockPoolId()); } return bpos; }
/** * Return the BPOfferService instance corresponding to the given block. * @return the BPOS * @throws IOException if no such BPOS can be found */
Return the BPOfferService instance corresponding to the given block
getBPOSForBlock
{ "repo_name": "gilv/hadoop", "path": "hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/DataNode.java", "license": "apache-2.0", "size": 120360 }
[ "com.google.common.base.Preconditions", "java.io.IOException", "org.apache.hadoop.hdfs.protocol.ExtendedBlock" ]
import com.google.common.base.Preconditions; import java.io.IOException; import org.apache.hadoop.hdfs.protocol.ExtendedBlock;
import com.google.common.base.*; import java.io.*; import org.apache.hadoop.hdfs.protocol.*;
[ "com.google.common", "java.io", "org.apache.hadoop" ]
com.google.common; java.io; org.apache.hadoop;
1,897,469
public static EuclidianVector subtract(EuclidianVector a, EuclidianVector b) { throwIfUnequalDimensions(a, b); DoubleArrayList deltas = new DoubleArrayList(a.getDimensions()); for (int i = 0; i < a.getDimensions(); i++) { deltas.add(a.get(i) - b.get(i)); } return...
static EuclidianVector function(EuclidianVector a, EuclidianVector b) { throwIfUnequalDimensions(a, b); DoubleArrayList deltas = new DoubleArrayList(a.getDimensions()); for (int i = 0; i < a.getDimensions(); i++) { deltas.add(a.get(i) - b.get(i)); } return createUsingBacking(deltas); }
/** * Subtract N-Dimensional vector b from a. a and b must have the same number of dimensions * @param a * @param b * @return */
Subtract N-Dimensional vector b from a. a and b must have the same number of dimensions
subtract
{ "repo_name": "steveash/jTribesPSO", "path": "src/main/java/com/github/steveash/jtribespso/EuclidianVector.java", "license": "apache-2.0", "size": 5944 }
[ "com.carrotsearch.hppc.DoubleArrayList" ]
import com.carrotsearch.hppc.DoubleArrayList;
import com.carrotsearch.hppc.*;
[ "com.carrotsearch.hppc" ]
com.carrotsearch.hppc;
1,131,005
private FunctionType tryMergeFunctionPiecewise( FunctionType other, boolean leastSuper) { Node newParamsNode = null; if (call.hasEqualParameters(other.call, EquivalenceMethod.IDENTITY, EqCache.create())) { newParamsNode = call.parameters; } else { // If the parameters are not equal, don'...
FunctionType function( FunctionType other, boolean leastSuper) { Node newParamsNode = null; if (call.hasEqualParameters(other.call, EquivalenceMethod.IDENTITY, EqCache.create())) { newParamsNode = call.parameters; } else { return null; } JSType newReturnType = leastSuper ? call.returnType.getLeastSupertype(other.call.r...
/** * Try to get the sup/inf of two functions by looking at the * piecewise components. */
Try to get the sup/inf of two functions by looking at the piecewise components
tryMergeFunctionPiecewise
{ "repo_name": "selkhateeb/closure-compiler", "path": "src/com/google/javascript/rhino/jstype/FunctionType.java", "license": "apache-2.0", "size": 48352 }
[ "com.google.javascript.rhino.Node" ]
import com.google.javascript.rhino.Node;
import com.google.javascript.rhino.*;
[ "com.google.javascript" ]
com.google.javascript;
76,000
public Collection<ColumnDefinition> getColumnDefs();
Collection<ColumnDefinition> function();
/** * Returns the column definitions in position order. * @return the column definitions in position order. */
Returns the column definitions in position order
getColumnDefs
{ "repo_name": "gdusbabek/cassandra", "path": "src/java/org/apache/cassandra/cql3/restrictions/Restriction.java", "license": "apache-2.0", "size": 5559 }
[ "java.util.Collection", "org.apache.cassandra.config.ColumnDefinition" ]
import java.util.Collection; import org.apache.cassandra.config.ColumnDefinition;
import java.util.*; import org.apache.cassandra.config.*;
[ "java.util", "org.apache.cassandra" ]
java.util; org.apache.cassandra;
2,691,360
@Override public String getDictionaryValueForKey(int surrogateKey) { String dictionaryValue = null; if (surrogateKey < MINIMUM_SURROGATE_KEY) { return dictionaryValue; } byte[] dictionaryValueInBytes = getDictionaryBytesFromSurrogate(surrogateKey); if (null != dictionaryValueInBytes) { ...
@Override String function(int surrogateKey) { String dictionaryValue = null; if (surrogateKey < MINIMUM_SURROGATE_KEY) { return dictionaryValue; } byte[] dictionaryValueInBytes = getDictionaryBytesFromSurrogate(surrogateKey); if (null != dictionaryValueInBytes) { dictionaryValue = new String(dictionaryValueInBytes, Car...
/** * This method will find and return the dictionary value for a given surrogate key. * Applicable scenarios: * 1. Query final result preparation : While convert the final result which will * be surrogate key back to original dictionary values this method will be used * * @param surrogateKey a unique...
This method will find and return the dictionary value for a given surrogate key. Applicable scenarios: 1. Query final result preparation : While convert the final result which will be surrogate key back to original dictionary values this method will be used
getDictionaryValueForKey
{ "repo_name": "jatin9896/incubator-carbondata", "path": "core/src/main/java/org/apache/carbondata/core/cache/dictionary/AbstractColumnDictionaryInfo.java", "license": "apache-2.0", "size": 9680 }
[ "org.apache.carbondata.core.constants.CarbonCommonConstants" ]
import org.apache.carbondata.core.constants.CarbonCommonConstants;
import org.apache.carbondata.core.constants.*;
[ "org.apache.carbondata" ]
org.apache.carbondata;
2,378,841
public int getNumberInterruptions(DBHelper dbHelper) throws PomodroidException { List<Event> result = null; try { result = Event.getAllInterruptions(this, dbHelper); } catch (Exception e) { Log.e("Activity.getNumberInterruptions()", "Problem: " + e.toString()); ...
int function(DBHelper dbHelper) throws PomodroidException { List<Event> result = null; try { result = Event.getAllInterruptions(this, dbHelper); } catch (Exception e) { Log.e(STR, STR + e.toString()); throw new PomodroidException(STR + e.toString()); } finally { dbHelper.commit(); } if (result != null) return result.si...
/** * Deletes an activity * * @param dbHelper * @throws PomodroidException */
Deletes an activity
getNumberInterruptions
{ "repo_name": "dgraziotin/openpomo", "path": "src/it/unibz/pomodroid/models/Activity.java", "license": "gpl-3.0", "size": 22882 }
[ "android.util.Log", "it.unibz.pomodroid.exceptions.PomodroidException", "java.util.List" ]
import android.util.Log; import it.unibz.pomodroid.exceptions.PomodroidException; import java.util.List;
import android.util.*; import it.unibz.pomodroid.exceptions.*; import java.util.*;
[ "android.util", "it.unibz.pomodroid", "java.util" ]
android.util; it.unibz.pomodroid; java.util;
2,878,923
public DrawerBuilder addDrawerItems(@NonNull IDrawerItem... drawerItems) { this.getAdapter().addDrawerItems(drawerItems); return this; } // always visible list in drawer protected ArrayList<IDrawerItem> mStickyDrawerItems = new ArrayList<>();
DrawerBuilder function(@NonNull IDrawerItem... drawerItems) { this.getAdapter().addDrawerItems(drawerItems); return this; } protected ArrayList<IDrawerItem> mStickyDrawerItems = new ArrayList<>();
/** * Add a initial DrawerItem or a DrawerItem Array for the Drawer * * @param drawerItems * @return */
Add a initial DrawerItem or a DrawerItem Array for the Drawer
addDrawerItems
{ "repo_name": "heriproj/MaterialDrawer", "path": "library/src/main/java/com/mikepenz/materialdrawer/DrawerBuilder.java", "license": "apache-2.0", "size": 55508 }
[ "android.support.annotation.NonNull", "com.mikepenz.materialdrawer.model.interfaces.IDrawerItem", "java.util.ArrayList" ]
import android.support.annotation.NonNull; import com.mikepenz.materialdrawer.model.interfaces.IDrawerItem; import java.util.ArrayList;
import android.support.annotation.*; import com.mikepenz.materialdrawer.model.interfaces.*; import java.util.*;
[ "android.support", "com.mikepenz.materialdrawer", "java.util" ]
android.support; com.mikepenz.materialdrawer; java.util;
1,576,932
public VerifyAccountResponse verifyAccountWithCode(String verificationCode, String signalingKey, int signalProtocolRegistrationId, boolean fetchesMessages, String pin, String registrationLock, byte[] unidentified...
VerifyAccountResponse function(String verificationCode, String signalingKey, int signalProtocolRegistrationId, boolean fetchesMessages, String pin, String registrationLock, byte[] unidentifiedAccessKey, boolean unrestrictedUnidentifiedAccess, AccountAttributes.Capabilities capabilities, boolean discoverableByPhoneNumbe...
/** * Verify a Signal Service account with a received SMS or voice verification code. * * @param verificationCode The verification code received via SMS or Voice * (see {@link #requestSmsVerificationCode} and * {@link #requestVoiceVerificationCode}). * @...
Verify a Signal Service account with a received SMS or voice verification code
verifyAccountWithCode
{ "repo_name": "WhisperSystems/TextSecure", "path": "libsignal/service/src/main/java/org/whispersystems/signalservice/api/SignalServiceAccountManager.java", "license": "gpl-3.0", "size": 33021 }
[ "java.io.IOException", "org.whispersystems.signalservice.api.account.AccountAttributes", "org.whispersystems.signalservice.internal.push.VerifyAccountResponse" ]
import java.io.IOException; import org.whispersystems.signalservice.api.account.AccountAttributes; import org.whispersystems.signalservice.internal.push.VerifyAccountResponse;
import java.io.*; import org.whispersystems.signalservice.api.account.*; import org.whispersystems.signalservice.internal.push.*;
[ "java.io", "org.whispersystems.signalservice" ]
java.io; org.whispersystems.signalservice;
2,423,348
public Set<DeployedCard> updateField(Field field, DeployedCard toPlay, DeployedCardComparator cardComparator);
Set<DeployedCard> function(Field field, DeployedCard toPlay, DeployedCardComparator cardComparator);
/** * This method takes in a field, a card to play, and card comparator and * uses them to determine which cards to capture, returning those as a set. * * @param field * The current state of the game. * @param toPlay * The card just played (but not yet added to the state of t...
This method takes in a field, a card to play, and card comparator and uses them to determine which cards to capture, returning those as a set
updateField
{ "repo_name": "slaymaker1907/triple-triad-ai", "path": "TRIPLE_TRIAD_ENGINE/src/com/dyllongagnier/triad/core/functions/CardPlayFunction.java", "license": "gpl-2.0", "size": 13137 }
[ "com.dyllongagnier.triad.card.DeployedCard", "com.dyllongagnier.triad.core.Field", "java.util.Set" ]
import com.dyllongagnier.triad.card.DeployedCard; import com.dyllongagnier.triad.core.Field; import java.util.Set;
import com.dyllongagnier.triad.card.*; import com.dyllongagnier.triad.core.*; import java.util.*;
[ "com.dyllongagnier.triad", "java.util" ]
com.dyllongagnier.triad; java.util;
413,852
public void testIsolatedMode() throws Exception { processIsolatedModeTest(DeploymentMode.ISOLATED); }
void function() throws Exception { processIsolatedModeTest(DeploymentMode.ISOLATED); }
/** * Test GridDeploymentMode.ISOLATED mode. * * @throws Exception if error occur. */
Test GridDeploymentMode.ISOLATED mode
testIsolatedMode
{ "repo_name": "pperalta/ignite", "path": "modules/core/src/test/java/org/apache/ignite/p2p/GridP2PLocalDeploymentSelfTest.java", "license": "apache-2.0", "size": 8956 }
[ "org.apache.ignite.configuration.DeploymentMode" ]
import org.apache.ignite.configuration.DeploymentMode;
import org.apache.ignite.configuration.*;
[ "org.apache.ignite" ]
org.apache.ignite;
1,380,333
public BlockPos getPos2() { return pos2; }
BlockPos function() { return pos2; }
/** * Gets the pos2 marker. * * @return The marker or <code>null</code> if it is unset. */
Gets the pos2 marker
getPos2
{ "repo_name": "iAmRinzler/minebot", "path": "Minebot/src/net/famzangl/minecraft/minebot/ai/AIHelper.java", "license": "gpl-3.0", "size": 30434 }
[ "net.minecraft.util.BlockPos" ]
import net.minecraft.util.BlockPos;
import net.minecraft.util.*;
[ "net.minecraft.util" ]
net.minecraft.util;
1,970,823
void setAdministratorPrivilege(PrincipalUser user, boolean isPrivileged);
void setAdministratorPrivilege(PrincipalUser user, boolean isPrivileged);
/** * Grants or revokes administrator privileges to a user. * * @param user The user to modify. * @param isPrivileged Indicates whether privileges should be granted or revoked. */
Grants or revokes administrator privileges to a user
setAdministratorPrivilege
{ "repo_name": "rmelick/Argus", "path": "ArgusCore/src/main/java/com/salesforce/dva/argus/service/ManagementService.java", "license": "bsd-3-clause", "size": 5114 }
[ "com.salesforce.dva.argus.entity.PrincipalUser" ]
import com.salesforce.dva.argus.entity.PrincipalUser;
import com.salesforce.dva.argus.entity.*;
[ "com.salesforce.dva" ]
com.salesforce.dva;
1,768,293
T visitMultiKeyMessageModifier(@NotNull DuroParser.MultiKeyMessageModifierContext ctx);
T visitMultiKeyMessageModifier(@NotNull DuroParser.MultiKeyMessageModifierContext ctx);
/** * Visit a parse tree produced by {@link DuroParser#multiKeyMessageModifier}. * @param ctx the parse tree * @return the visitor result */
Visit a parse tree produced by <code>DuroParser#multiKeyMessageModifier</code>
visitMultiKeyMessageModifier
{ "repo_name": "jakobehmsen/duro", "path": "eclipse/src/duro/reflang/antlr4/DuroVisitor.java", "license": "mit", "size": 11411 }
[ "org.antlr.v4.runtime.misc.NotNull" ]
import org.antlr.v4.runtime.misc.NotNull;
import org.antlr.v4.runtime.misc.*;
[ "org.antlr.v4" ]
org.antlr.v4;
1,341,082
List<Authorizable> realGroups = new ArrayList<Authorizable>(); for (Iterator<Group> memberOf = au.memberOf(authorizableManager); memberOf.hasNext();) { Authorizable group = memberOf.next(); if (group.isGroup() && isUserFacing(group, false)) { realGroups.add(group); } } return r...
List<Authorizable> realGroups = new ArrayList<Authorizable>(); for (Iterator<Group> memberOf = au.memberOf(authorizableManager); memberOf.hasNext();) { Authorizable group = memberOf.next(); if (group.isGroup() && isUserFacing(group, false)) { realGroups.add(group); } } return realGroups; }
/** * Lists the Groups this authorizable is a member of excluding everyone. Includes group that the member is indirectly a memberOf * @param au the authorizable * @param authorizableManager * @return list of unique groups the authorizable is a member of, including indirect and intermediage membership. * ...
Lists the Groups this authorizable is a member of excluding everyone. Includes group that the member is indirectly a memberOf
getUserFacingGroups
{ "repo_name": "dylanswartz/nakamura", "path": "bundles/user/api/src/main/java/org/sakaiproject/nakamura/api/user/AuthorizableUtil.java", "license": "apache-2.0", "size": 7013 }
[ "java.util.ArrayList", "java.util.Iterator", "java.util.List", "org.sakaiproject.nakamura.api.lite.authorizable.Authorizable", "org.sakaiproject.nakamura.api.lite.authorizable.Group" ]
import java.util.ArrayList; import java.util.Iterator; import java.util.List; import org.sakaiproject.nakamura.api.lite.authorizable.Authorizable; import org.sakaiproject.nakamura.api.lite.authorizable.Group;
import java.util.*; import org.sakaiproject.nakamura.api.lite.authorizable.*;
[ "java.util", "org.sakaiproject.nakamura" ]
java.util; org.sakaiproject.nakamura;
2,524,522
public List<FeedbackQuestionAttributes> getFeedbackQuestionsForSession( String feedbackSessionName, String courseId) { List<FeedbackQuestionAttributes> questions = fqDb.getFeedbackQuestionsForSession(feedbackSessionName, courseId); questions.sort(null); // check...
List<FeedbackQuestionAttributes> function( String feedbackSessionName, String courseId) { List<FeedbackQuestionAttributes> questions = fqDb.getFeedbackQuestionsForSession(feedbackSessionName, courseId); questions.sort(null); if (questions.size() > 1 && !areQuestionNumbersConsistent(questions)) { log.severe(courseId + S...
/** * Gets a {@link List} of every FeedbackQuestion in the given session. */
Gets a <code>List</code> of every FeedbackQuestion in the given session
getFeedbackQuestionsForSession
{ "repo_name": "xpdavid/teammates", "path": "src/main/java/teammates/logic/core/FeedbackQuestionsLogic.java", "license": "gpl-2.0", "size": 36204 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
154,892
return getGenreList(language, MethodSub.MOVIE_LIST); }
return getGenreList(language, MethodSub.MOVIE_LIST); }
/** * Get the list of movie genres. * * @param language * @return * @throws MovieDbException */
Get the list of movie genres
getGenreMovieList
{ "repo_name": "mebrah2/api-themoviedb", "path": "src/main/java/com/omertron/themoviedbapi/methods/TmdbGenres.java", "license": "gpl-3.0", "size": 4532 }
[ "com.omertron.themoviedbapi.tools.MethodSub" ]
import com.omertron.themoviedbapi.tools.MethodSub;
import com.omertron.themoviedbapi.tools.*;
[ "com.omertron.themoviedbapi" ]
com.omertron.themoviedbapi;
1,113,070
public boolean isTermNameUnique ( String termCode, String termName, boolean extended ) { // true if empty name if ( termName.isEmpty() ) return true; String query = "select TERM_ID from APP.TERM where "; // check on the correct field if ( extended ) query = query + "TERM_EXTENDED_NAME = ? ";...
boolean function ( String termCode, String termName, boolean extended ) { if ( termName.isEmpty() ) return true; String query = STR; if ( extended ) query = query + STR; else query = query + STR; query = query + STR; try (Connection con = catalogue.getConnection(); PreparedStatement stmt = con.prepareStatement( query )...
/** * check if the term name was already used before by other terms in the DB * (Different from the one considered by the termCode) * @param termName * @param extended, should extended name or short name be considered? * @return */
check if the term name was already used before by other terms in the DB (Different from the one considered by the termCode)
isTermNameUnique
{ "repo_name": "openefsa/CatalogueBrowser", "path": "src/catalogue_browser_dao/TermDAO.java", "license": "lgpl-3.0", "size": 10552 }
[ "java.sql.Connection", "java.sql.PreparedStatement", "java.sql.ResultSet", "java.sql.SQLException" ]
import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException;
import java.sql.*;
[ "java.sql" ]
java.sql;
2,708,125
public static IDataType createDataType(String objectType, String attributeName) { return component.core().createDataType(objectType, attributeName); }
static IDataType function(String objectType, String attributeName) { return component.core().createDataType(objectType, attributeName); }
/** * Creates a DataType based on an object type and a attribute name * @param objectType the object type (format: "ModuleName.EntityName"). * @param attributeName the attribute to create the IDataType for (should be a member of above object type) * @return the resulting IDataType */
Creates a DataType based on an object type and a attribute name
createDataType
{ "repo_name": "tieniber/FileDocumentLink", "path": "test/javasource/com/mendix/core/Core.java", "license": "apache-2.0", "size": 77610 }
[ "com.mendix.systemwideinterfaces.core.IDataType" ]
import com.mendix.systemwideinterfaces.core.IDataType;
import com.mendix.systemwideinterfaces.core.*;
[ "com.mendix.systemwideinterfaces" ]
com.mendix.systemwideinterfaces;
2,264,519
static public Object Map (Object[] list, Visitor visitor, Object[] ret) { List<Object> l2 = new ArrayList<Object>(list.length); for( Object n : list) { l2.add(n); } return Map ( l2, visitor , ret); }
static Object function (Object[] list, Visitor visitor, Object[] ret) { List<Object> l2 = new ArrayList<Object>(list.length); for( Object n : list) { l2.add(n); } return Map ( l2, visitor , ret); }
/** * Map the visitor "visitor" on the list "list" and return the result as a list. If the list argument * is passed (ret) the result is returned as an array of the results, otherwise it is a list. * * @param list the list of objects * @param visitor the visitor * @param ret the array class to convert th...
Map the visitor "visitor" on the list "list" and return the result as a list. If the list argument is passed (ret) the result is returned as an array of the results, otherwise it is a list
Map
{ "repo_name": "splinter/developer-studio", "path": "bps/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/util/ListMap.java", "license": "apache-2.0", "size": 3952 }
[ "java.util.ArrayList", "java.util.List" ]
import java.util.ArrayList; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,391,693
public TransactionConcurrency getDefaultTxConcurrency() { return dfltConcurrency; }
TransactionConcurrency function() { return dfltConcurrency; }
/** * Default cache transaction concurrency to use when one is not explicitly * specified. Default value is defined by {@link #DFLT_TX_CONCURRENCY}. * * @return Default cache transaction concurrency. * @see Transaction */
Default cache transaction concurrency to use when one is not explicitly specified. Default value is defined by <code>#DFLT_TX_CONCURRENCY</code>
getDefaultTxConcurrency
{ "repo_name": "agura/incubator-ignite", "path": "modules/core/src/main/java/org/apache/ignite/configuration/TransactionConfiguration.java", "license": "apache-2.0", "size": 9826 }
[ "org.apache.ignite.transactions.TransactionConcurrency" ]
import org.apache.ignite.transactions.TransactionConcurrency;
import org.apache.ignite.transactions.*;
[ "org.apache.ignite" ]
org.apache.ignite;
2,465,328
public static final Chart toggleVisibility_PieChart( ) { ChartWithoutAxes cwoaPie = ChartWithoutAxesImpl.create( ); // Chart Type cwoaPie.setType( "Pie Chart" ); // Title cwoaPie.getTitle( ).getLabel( ).getCaption( ).setValue( "Sample Pie Chart" ); cwoaPie.getBlock( ).setBounds( BoundsImpl.create(...
static final Chart function( ) { ChartWithoutAxes cwoaPie = ChartWithoutAxesImpl.create( ); cwoaPie.setType( STR ); cwoaPie.getTitle( ).getLabel( ).getCaption( ).setValue( STR ); cwoaPie.getBlock( ).setBounds( BoundsImpl.create( 0, 0, 252, 288 ) ); cwoaPie.getBlock( ).getOutline( ).setVisible( true ); cwoaPie.getPlot( ...
/** * Creates a bar chart model as a reference implementation * * @return An instance of the simulated runtime chart model (containing * filled datasets) */
Creates a bar chart model as a reference implementation
toggleVisibility_PieChart
{ "repo_name": "sguan-actuate/birt", "path": "testsuites/org.eclipse.birt.report.tests.chart/src/org/eclipse/birt/report/tests/chart/regression/Regression_117865_svg.java", "license": "epl-1.0", "size": 10580 }
[ "org.eclipse.birt.chart.model.Chart", "org.eclipse.birt.chart.model.ChartWithoutAxes", "org.eclipse.birt.chart.model.attribute.ActionType", "org.eclipse.birt.chart.model.attribute.Anchor", "org.eclipse.birt.chart.model.attribute.LeaderLineStyle", "org.eclipse.birt.chart.model.attribute.LegendItemType", ...
import org.eclipse.birt.chart.model.Chart; import org.eclipse.birt.chart.model.ChartWithoutAxes; import org.eclipse.birt.chart.model.attribute.ActionType; import org.eclipse.birt.chart.model.attribute.Anchor; import org.eclipse.birt.chart.model.attribute.LeaderLineStyle; import org.eclipse.birt.chart.model.attribute.Le...
import org.eclipse.birt.chart.model.*; import org.eclipse.birt.chart.model.attribute.*; import org.eclipse.birt.chart.model.attribute.impl.*; import org.eclipse.birt.chart.model.component.*; import org.eclipse.birt.chart.model.component.impl.*; import org.eclipse.birt.chart.model.data.*; import org.eclipse.birt.chart.m...
[ "org.eclipse.birt" ]
org.eclipse.birt;
2,365,091
private void addThreadID(EmailContainer container, String threadID) { if(container == null) { return; } EmailMessage message = container.getMessage(); if(message != null) { message.setMessageThreadID(threadID); } if(container....
void function(EmailContainer container, String threadID) { if(container == null) { return; } EmailMessage message = container.getMessage(); if(message != null) { message.setMessageThreadID(threadID); } if(container.hasChildren()) { for(EmailContainer child: container.getChildren()) { addThreadID(child, threadID); } } }...
/** * Recursively walk container's children adding the thread ID to * the EmailMessage objects. * * @param container The root container of a set of related container objects * @param threadID The String to assign as the "threadId" for this set of * messages */
Recursively walk container's children adding the thread ID to the EmailMessage objects
addThreadID
{ "repo_name": "esaunders/autopsy", "path": "thunderbirdparser/src/org/sleuthkit/autopsy/thunderbirdparser/EmailMessageThreader.java", "license": "apache-2.0", "size": 25509 }
[ "java.util.Set" ]
import java.util.Set;
import java.util.*;
[ "java.util" ]
java.util;
84,775
public Manifest findManifest(TFile war) throws ModuleManagementToolException;
Manifest function(TFile war) throws ModuleManagementToolException;
/** * Finds a war manifest file. * @since 5.1 * @param war the war * @return Manifest * @throws ModuleManagementToolException */
Finds a war manifest file
findManifest
{ "repo_name": "daniel-he/community-edition", "path": "projects/repository/source/java/org/alfresco/repo/module/tool/WarHelper.java", "license": "lgpl-3.0", "size": 2965 }
[ "de.schlichtherle.truezip.file.TFile", "java.util.jar.Manifest" ]
import de.schlichtherle.truezip.file.TFile; import java.util.jar.Manifest;
import de.schlichtherle.truezip.file.*; import java.util.jar.*;
[ "de.schlichtherle.truezip", "java.util" ]
de.schlichtherle.truezip; java.util;
443,903
public static QuotaSettings unthrottleTable(final TableName tableName) { return throttle(null, tableName, null, null, null, 0, null, QuotaScope.MACHINE); }
static QuotaSettings function(final TableName tableName) { return throttle(null, tableName, null, null, null, 0, null, QuotaScope.MACHINE); }
/** * Remove the throttling for the specified table. * * @param tableName the table * @return the quota settings */
Remove the throttling for the specified table
unthrottleTable
{ "repo_name": "ultratendency/hbase", "path": "hbase-client/src/main/java/org/apache/hadoop/hbase/quotas/QuotaSettingsFactory.java", "license": "apache-2.0", "size": 21922 }
[ "org.apache.hadoop.hbase.TableName" ]
import org.apache.hadoop.hbase.TableName;
import org.apache.hadoop.hbase.*;
[ "org.apache.hadoop" ]
org.apache.hadoop;
1,480,610
public void failingTestGetChecksumNotStoredFile() { File file = new File(STORE_CHECKSUM_DIR, STORABLE_FILES[0]); // do nothing with file - e.g. not storing it // thus checksum reference table should not contain an entry for // the file, i.e. getCheckSum() should return null: ...
void function() { File file = new File(STORE_CHECKSUM_DIR, STORABLE_FILES[0]); try { AdminFactory.getInstance().getCheckSum(file.getName()); fail(STR); } catch (UnknownID e) { } }
/** * Tests that Controller.getCheckSum() behaves as expected when using a * reference to a non-stored file. */
Tests that Controller.getCheckSum() behaves as expected when using a reference to a non-stored file
failingTestGetChecksumNotStoredFile
{ "repo_name": "netarchivesuite/netarchivesuite-svngit-migration", "path": "tests/dk/netarkivet/archive/arcrepository/ArcRepositoryDatabaseTester.java", "license": "lgpl-2.1", "size": 31499 }
[ "dk.netarkivet.archive.arcrepositoryadmin.AdminFactory", "dk.netarkivet.common.exceptions.UnknownID", "java.io.File" ]
import dk.netarkivet.archive.arcrepositoryadmin.AdminFactory; import dk.netarkivet.common.exceptions.UnknownID; import java.io.File;
import dk.netarkivet.archive.arcrepositoryadmin.*; import dk.netarkivet.common.exceptions.*; import java.io.*;
[ "dk.netarkivet.archive", "dk.netarkivet.common", "java.io" ]
dk.netarkivet.archive; dk.netarkivet.common; java.io;
1,332,493
@ServiceMethod(returns = ReturnType.SINGLE) Mono<NetworkInterfaceIpConfigurationInner> getVirtualMachineScaleSetIpConfigurationAsync( String resourceGroupName, String virtualMachineScaleSetName, String virtualmachineIndex, String networkInterfaceName, String ipConfigurati...
@ServiceMethod(returns = ReturnType.SINGLE) Mono<NetworkInterfaceIpConfigurationInner> getVirtualMachineScaleSetIpConfigurationAsync( String resourceGroupName, String virtualMachineScaleSetName, String virtualmachineIndex, String networkInterfaceName, String ipConfigurationName, String expand);
/** * Get the specified network interface ip configuration in a virtual machine scale set. * * @param resourceGroupName The name of the resource group. * @param virtualMachineScaleSetName The name of the virtual machine scale set. * @param virtualmachineIndex The virtual machine index. * @...
Get the specified network interface ip configuration in a virtual machine scale set
getVirtualMachineScaleSetIpConfigurationAsync
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/resourcemanagerhybrid/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkInterfacesClient.java", "license": "mit", "size": 60151 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.resourcemanager.network.fluent.models.NetworkInterfaceIpConfigurationInner" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.resourcemanager.network.fluent.models.NetworkInterfaceIpConfigurationInner;
import com.azure.core.annotation.*; import com.azure.resourcemanager.network.fluent.models.*;
[ "com.azure.core", "com.azure.resourcemanager" ]
com.azure.core; com.azure.resourcemanager;
355,179
public void printStackTrace(PrintStream s) { if (!isJDK14OrAbove && causeOnJDK13OrBelow != null) { printStackTrace0(new PrintWriter(s)); } else { super.printStackTrace(s); } }
void function(PrintStream s) { if (!isJDK14OrAbove && causeOnJDK13OrBelow != null) { printStackTrace0(new PrintWriter(s)); } else { super.printStackTrace(s); } }
/** * Print the the trace of methods from where the error * originated. This will trace all nested exception * objects, as well as this object. * @param s The stream where the dump will be sent to. */
Print the the trace of methods from where the error originated. This will trace all nested exception objects, as well as this object
printStackTrace
{ "repo_name": "svn2github/xerces-xml-commons", "path": "java/external/src/javax/xml/datatype/DatatypeConfigurationException.java", "license": "apache-2.0", "size": 5655 }
[ "java.io.PrintStream", "java.io.PrintWriter" ]
import java.io.PrintStream; import java.io.PrintWriter;
import java.io.*;
[ "java.io" ]
java.io;
1,404,770
public void checkScheme(URI uri, String supportedScheme) { String scheme = uri.getScheme(); if (scheme == null) { throw new HadoopIllegalArgumentException("Uri without scheme: " + uri); } if (!scheme.equals(supportedScheme)) { throw new HadoopIllegalArgumentException("Uri scheme " + uri ...
void function(URI uri, String supportedScheme) { String scheme = uri.getScheme(); if (scheme == null) { throw new HadoopIllegalArgumentException(STR + uri); } if (!scheme.equals(supportedScheme)) { throw new HadoopIllegalArgumentException(STR + uri + STR + supportedScheme); } }
/** * Check that the Uri's scheme matches * @param uri * @param supportedScheme */
Check that the Uri's scheme matches
checkScheme
{ "repo_name": "tseen/Federated-HDFS", "path": "tseenliu/FedHDFS-hadoop-src/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/AbstractFileSystem.java", "license": "apache-2.0", "size": 46160 }
[ "org.apache.hadoop.HadoopIllegalArgumentException" ]
import org.apache.hadoop.HadoopIllegalArgumentException;
import org.apache.hadoop.*;
[ "org.apache.hadoop" ]
org.apache.hadoop;
1,544,067
private static <T extends Document> void readDocumentFromJson(@NotNull JsopTokenizer json, @NotNull T doc) { if (!json.matches('}')) { do { String key = json.readString(); json.read(':'); Object value = JSON.parse(json); doc.put(key...
static <T extends Document> void function(@NotNull JsopTokenizer json, @NotNull T doc) { if (!json.matches('}')) { do { String key = json.readString(); json.read(':'); Object value = JSON.parse(json); doc.put(key, value); } while (json.matches(',')); json.read('}'); } } private static byte[] GZIPSIG = { 31, -117 };
/** * Reads from an opened JSON stream ("{" already consumed) into a document. */
Reads from an opened JSON stream ("{" already consumed) into a document
readDocumentFromJson
{ "repo_name": "alexkli/jackrabbit-oak", "path": "oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/rdb/RDBDocumentSerializer.java", "license": "apache-2.0", "size": 13529 }
[ "org.apache.jackrabbit.oak.commons.json.JsopTokenizer", "org.apache.jackrabbit.oak.plugins.document.Document", "org.jetbrains.annotations.NotNull" ]
import org.apache.jackrabbit.oak.commons.json.JsopTokenizer; import org.apache.jackrabbit.oak.plugins.document.Document; import org.jetbrains.annotations.NotNull;
import org.apache.jackrabbit.oak.commons.json.*; import org.apache.jackrabbit.oak.plugins.document.*; import org.jetbrains.annotations.*;
[ "org.apache.jackrabbit", "org.jetbrains.annotations" ]
org.apache.jackrabbit; org.jetbrains.annotations;
2,901,150
RTBroadcaster rtBroadcaster = RTBroadcaster.getInstance(); if (rtBroadcaster != null) { LocalBTCallback lbtc = rtBroadcaster.getLocalBTCallback(); lbtc.clear(); rtBroadcaster.sendDiscover(); new Sleeper(1500).sleep(); URI[] uris = (URI[]) l...
RTBroadcaster rtBroadcaster = RTBroadcaster.getInstance(); if (rtBroadcaster != null) { LocalBTCallback lbtc = rtBroadcaster.getLocalBTCallback(); lbtc.clear(); rtBroadcaster.sendDiscover(); new Sleeper(1500).sleep(); URI[] uris = (URI[]) lbtc.getKnowRuntimes().toArray(new URI[] {}).clone(); return uris; } else { retur...
/** * Discover urls of runtimes that are on the same multicast group * A multicast group is defined using the * {@link CentralPAPropertyRepository#PA_RUNTIME_BROADCAST_ADDRESS} and * {@link CentralPAPropertyRepository#PA_RUNTIME_BROADCAST_PORT}. * @return an array of uris of the ProActive Runti...
Discover urls of runtimes that are on the same multicast group A multicast group is defined using the <code>CentralPAPropertyRepository#PA_RUNTIME_BROADCAST_ADDRESS</code> and <code>CentralPAPropertyRepository#PA_RUNTIME_BROADCAST_PORT</code>
findRuntimesURI
{ "repo_name": "jrochas/scale-proactive", "path": "src/Core/org/objectweb/proactive/api/PARuntime.java", "license": "agpl-3.0", "size": 4526 }
[ "org.objectweb.proactive.core.runtime.broadcast.LocalBTCallback", "org.objectweb.proactive.core.runtime.broadcast.RTBroadcaster", "org.objectweb.proactive.utils.Sleeper" ]
import org.objectweb.proactive.core.runtime.broadcast.LocalBTCallback; import org.objectweb.proactive.core.runtime.broadcast.RTBroadcaster; import org.objectweb.proactive.utils.Sleeper;
import org.objectweb.proactive.core.runtime.broadcast.*; import org.objectweb.proactive.utils.*;
[ "org.objectweb.proactive" ]
org.objectweb.proactive;
2,826,321