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
protected void preStartUp() { //UIHelper.attachUnhandledException(); // we simply need to create this class, not use it new MacOSAppHandler(this); // Name factories setUpSystemProperties(); }
void function() { new MacOSAppHandler(this); setUpSystemProperties(); }
/** * The very very first step in initializing Specify. */
The very very first step in initializing Specify
preStartUp
{ "repo_name": "specify/specify6", "path": "src/edu/ku/brc/specify/ui/AppBase.java", "license": "gpl-2.0", "size": 43387 }
[ "edu.ku.brc.af.core.MacOSAppHandler" ]
import edu.ku.brc.af.core.MacOSAppHandler;
import edu.ku.brc.af.core.*;
[ "edu.ku.brc" ]
edu.ku.brc;
489,443
private void visitLhsNodes( AmbiguatedFunctionSummary encloserSummary, Scope scope, List<Node> lhsNodes, Predicate<Node> hasLocalRhs) { for (Node lhs : lhsNodes) { if (NodeUtil.isNormalOrOptChainGet(lhs)) { // Although OPTCHAIN_GETPROP can not be an LHS of an ...
void function( AmbiguatedFunctionSummary encloserSummary, Scope scope, List<Node> lhsNodes, Predicate<Node> hasLocalRhs) { for (Node lhs : lhsNodes) { if (NodeUtil.isNormalOrOptChainGet(lhs)) { if (lhs.getFirstChild().isThis()) { encloserSummary.setMutatesThis(); } else { Node objectNode = lhs.getFirstChild(); if (obje...
/** * Record information about the side effects caused by assigning a value to a given LHS. * * <p>If the operation modifies this or taints global state, mark the enclosing function as * having those side effects. * * @param encloserSummary Function side effect record to be updated * ...
Record information about the side effects caused by assigning a value to a given LHS. If the operation modifies this or taints global state, mark the enclosing function as having those side effects
visitLhsNodes
{ "repo_name": "GoogleChromeLabs/chromeos_smart_card_connector", "path": "third_party/closure-compiler/src/src/com/google/javascript/jscomp/PureFunctionIdentifier.java", "license": "apache-2.0", "size": 52308 }
[ "com.google.common.base.Preconditions", "com.google.javascript.rhino.Node", "java.util.List", "java.util.function.Predicate" ]
import com.google.common.base.Preconditions; import com.google.javascript.rhino.Node; import java.util.List; import java.util.function.Predicate;
import com.google.common.base.*; import com.google.javascript.rhino.*; import java.util.*; import java.util.function.*;
[ "com.google.common", "com.google.javascript", "java.util" ]
com.google.common; com.google.javascript; java.util;
1,644,329
Object createWriter(Writer out, Class<? extends SeparatedFileBeanData> beanClass, char separator, String header);
Object createWriter(Writer out, Class<? extends SeparatedFileBeanData> beanClass, char separator, String header);
/** Creates a writer object for persisting SeparateFileBeans. * @param out the writer to use for persisting the file content * @param beanClass * @param separator * @param header * @return the id of the new writer */
Creates a writer object for persisting SeparateFileBeans
createWriter
{ "repo_name": "vbergmann/aludratest", "path": "src/main/java/org/aludratest/content/separated/SeparatedContent.java", "license": "apache-2.0", "size": 2659 }
[ "java.io.Writer", "org.aludratest.content.separated.data.SeparatedFileBeanData" ]
import java.io.Writer; import org.aludratest.content.separated.data.SeparatedFileBeanData;
import java.io.*; import org.aludratest.content.separated.data.*;
[ "java.io", "org.aludratest.content" ]
java.io; org.aludratest.content;
2,191,980
protected static boolean isAddressValid(String address) { Pattern pattern = Pattern.compile(IPADDRESS_PATTERN); return pattern.matcher(address).matches(); }
static boolean function(String address) { Pattern pattern = Pattern.compile(IPADDRESS_PATTERN); return pattern.matcher(address).matches(); }
/** * Utility method. * It validates String as valid IP addresses. * * @param address The address to validate. * @return TRUE if the String represents a valid address. */
Utility method. It validates String as valid IP addresses
isAddressValid
{ "repo_name": "lorenzonodari/jBackup", "path": "src/jbackup/jbconfig/Config.java", "license": "gpl-3.0", "size": 2884 }
[ "java.util.regex.Pattern" ]
import java.util.regex.Pattern;
import java.util.regex.*;
[ "java.util" ]
java.util;
55,601
private static boolean isAccessible(final Class<?> type) { Class<?> cls = type; while (cls != null) { if (!Modifier.isPublic(cls.getModifiers())) { return false; } cls = cls.getEnclosingClass(); } return true; }
static boolean function(final Class<?> type) { Class<?> cls = type; while (cls != null) { if (!Modifier.isPublic(cls.getModifiers())) { return false; } cls = cls.getEnclosingClass(); } return true; }
/** * Learn whether the specified class is generally accessible, i.e. is * declared in an entirely {@code public} manner. * @param type to check * @return {@code true} if {@code type} and any enclosing classes are * {@code public}. */
Learn whether the specified class is generally accessible, i.e. is declared in an entirely public manner
isAccessible
{ "repo_name": "weston100721/commons-lang", "path": "src/main/java/org/apache/commons/lang3/reflect/ConstructorUtils.java", "license": "apache-2.0", "size": 14116 }
[ "java.lang.reflect.Modifier" ]
import java.lang.reflect.Modifier;
import java.lang.reflect.*;
[ "java.lang" ]
java.lang;
879,996
public void addLibrariesToAttributes(Iterable<? extends TransitiveInfoCollection> deps) { // Enforcing strict Java dependencies: when the --strict_java_deps flag is // WARN or ERROR, or is DEFAULT and strict_java_deps attribute is unset, // we use a stricter javac compiler to perform direct deps checks. ...
void function(Iterable<? extends TransitiveInfoCollection> deps) { attributes.setStrictJavaDeps(getStrictJavaDeps()); addLibrariesToAttributesInternal(deps); JavaClasspathMode classpathMode = getJavaConfiguration().getReduceJavaClasspath(); if (isStrict() && classpathMode != JavaClasspathMode.OFF) { List<JavaCompilatio...
/** * Adds the compile time and runtime Java libraries in the transitive closure * of the deps to the attributes. * * @param deps the dependencies to be included as roots of the transitive * closure */
Adds the compile time and runtime Java libraries in the transitive closure of the deps to the attributes
addLibrariesToAttributes
{ "repo_name": "snnn/bazel", "path": "src/main/java/com/google/devtools/build/lib/rules/java/JavaCompilationHelper.java", "license": "apache-2.0", "size": 34730 }
[ "com.google.devtools.build.lib.analysis.TransitiveInfoCollection", "com.google.devtools.build.lib.rules.java.JavaConfiguration", "java.util.LinkedList", "java.util.List" ]
import com.google.devtools.build.lib.analysis.TransitiveInfoCollection; import com.google.devtools.build.lib.rules.java.JavaConfiguration; import java.util.LinkedList; import java.util.List;
import com.google.devtools.build.lib.analysis.*; import com.google.devtools.build.lib.rules.java.*; import java.util.*;
[ "com.google.devtools", "java.util" ]
com.google.devtools; java.util;
2,128,258
double addFile(List<File> list);
double addFile(List<File> list);
/** * Adds a set of files to the storage. The time taken (in seconds) for adding each file can also * be found using {@link File#getTransactionTime()}. * * @param list the files to be added * @return the time taken (in seconds) for adding the specified file or zero if the * file is invalid...
Adds a set of files to the storage. The time taken (in seconds) for adding each file can also be found using <code>File#getTransactionTime()</code>
addFile
{ "repo_name": "dimstav23/cloudsim-plus", "path": "cloudsim-plus/src/main/java/org/cloudbus/cloudsim/resources/FileStorage.java", "license": "gpl-3.0", "size": 5782 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
481,517
public Drawable getSelector() { return mSelector; }
Drawable function() { return mSelector; }
/** * Returns the selector {@link android.graphics.drawable.Drawable} that is used to draw the * selection in the list. * * @return the drawable used to display the selector */
Returns the selector <code>android.graphics.drawable.Drawable</code> that is used to draw the selection in the list
getSelector
{ "repo_name": "yulu/UILibrary", "path": "waterfalllayout/src/main/java/me/littlecheesecake/waterfalllayout/internal/WFAbsListView.java", "license": "mit", "size": 118588 }
[ "android.graphics.drawable.Drawable" ]
import android.graphics.drawable.Drawable;
import android.graphics.drawable.*;
[ "android.graphics" ]
android.graphics;
842,458
protected byte[] newSigningKey(AWSCredentials credentials, String dateStamp, String regionName, String serviceName) { byte[] kSecret = ("AWS4" + credentials.getAWSSecretKey()) .getBytes(Charset.forName("UTF-8")); byte[] kDate = sign(dateStamp, kSecret, SigningAlgorithm.Hm...
byte[] function(AWSCredentials credentials, String dateStamp, String regionName, String serviceName) { byte[] kSecret = ("AWS4" + credentials.getAWSSecretKey()) .getBytes(Charset.forName("UTF-8")); byte[] kDate = sign(dateStamp, kSecret, SigningAlgorithm.HmacSHA256); byte[] kRegion = sign(regionName, kDate, SigningAlgo...
/** * Generates a new signing key from the given parameters and returns it. */
Generates a new signing key from the given parameters and returns it
newSigningKey
{ "repo_name": "aws/aws-sdk-java", "path": "aws-java-sdk-core/src/main/java/com/amazonaws/auth/AWS4Signer.java", "license": "apache-2.0", "size": 25148 }
[ "java.nio.charset.Charset" ]
import java.nio.charset.Charset;
import java.nio.charset.*;
[ "java.nio" ]
java.nio;
2,688,951
public static RhnTimeZone getTimeZone(int id) { Session session = HibernateFactory.getSession(); return (RhnTimeZone) session.getNamedQuery("RhnTimeZone.loadTimeZoneById") .setInteger("tid", id) //Retrieve from cache if there .setCacheable(true) ...
static RhnTimeZone function(int id) { Session session = HibernateFactory.getSession(); return (RhnTimeZone) session.getNamedQuery(STR) .setInteger("tid", id) .setCacheable(true) .uniqueResult(); }
/** * Get the timezone by ID * @param id ID number for timezone * @return TimeZone the requested time zone */
Get the timezone by ID
getTimeZone
{ "repo_name": "aronparsons/spacewalk", "path": "java/code/src/com/redhat/rhn/domain/user/UserFactory.java", "license": "gpl-2.0", "size": 27748 }
[ "com.redhat.rhn.common.hibernate.HibernateFactory", "org.hibernate.Session" ]
import com.redhat.rhn.common.hibernate.HibernateFactory; import org.hibernate.Session;
import com.redhat.rhn.common.hibernate.*; import org.hibernate.*;
[ "com.redhat.rhn", "org.hibernate" ]
com.redhat.rhn; org.hibernate;
1,773,393
protected int scanCharReferenceValue(XMLStringBuffer buf, XMLStringBuffer buf2) throws IOException, XNIException { int initLen = buf.length; // scan hexadecimal value boolean hex = false; if (fEntityScanner.skipChar('x', NameType.REFERENCE)) { if (buf2 != null) { buf2...
int function(XMLStringBuffer buf, XMLStringBuffer buf2) throws IOException, XNIException { int initLen = buf.length; boolean hex = false; if (fEntityScanner.skipChar('x', NameType.REFERENCE)) { if (buf2 != null) { buf2.append('x'); } hex = true; fStringBuffer3.clear(); boolean digit = true; int c = fEntityScanner.peekC...
/** * Scans a character reference and append the corresponding chars to the * specified buffer. * * <p> * <pre> * [66] CharRef ::= '&#' [0-9]+ ';' | '&#x' [0-9a-fA-F]+ ';' * </pre> * * <strong>Note:</strong> This method uses fStringBuffer, anything in it * at the time o...
Scans a character reference and append the corresponding chars to the specified buffer. <code> [66] CharRef ::= '&#' [0-9]+ ';' | '&#x' [0-9a-fA-F]+ ';' </code> Note: This method uses fStringBuffer, anything in it at the time of calling is lost
scanCharReferenceValue
{ "repo_name": "FauxFaux/jdk9-jaxp", "path": "src/java.xml/share/classes/com/sun/org/apache/xerces/internal/impl/XMLScanner.java", "license": "gpl-2.0", "size": 62178 }
[ "com.sun.org.apache.xerces.internal.util.XMLChar", "com.sun.org.apache.xerces.internal.util.XMLStringBuffer", "com.sun.org.apache.xerces.internal.xni.XNIException", "java.io.IOException" ]
import com.sun.org.apache.xerces.internal.util.XMLChar; import com.sun.org.apache.xerces.internal.util.XMLStringBuffer; import com.sun.org.apache.xerces.internal.xni.XNIException; import java.io.IOException;
import com.sun.org.apache.xerces.internal.util.*; import com.sun.org.apache.xerces.internal.xni.*; import java.io.*;
[ "com.sun.org", "java.io" ]
com.sun.org; java.io;
303,965
@Test public void testPutDcBadRequestNoVersion() { Map<String, List<DCResource>> mapData = brandCarMotorcycleData.getData(); Assert.assertTrue(mapData != null && !mapData.isEmpty()); List<DCResource> updatedResource = null; Assert.assertNull(updatedResource); List<DCResource> postedData = api.postAllD...
void function() { Map<String, List<DCResource>> mapData = brandCarMotorcycleData.getData(); Assert.assertTrue(mapData != null && !mapData.isEmpty()); List<DCResource> updatedResource = null; Assert.assertNull(updatedResource); List<DCResource> postedData = api.postAllDataInType(mapData.get( BrandCarMotorcycleModel.BRAN...
/** * URL : /dc/ * HTTP Method : PUT * HTTP Return status : 400 * Trying to update a car with no version * Expected behavior from API : HTTPStatus = 400 (bad request) and return null */
URL : /dc HTTP Method : PUT HTTP Return status : 400 Trying to update a car with no version Expected behavior from API : HTTPStatus = 400 (bad request) and return null
testPutDcBadRequestNoVersion
{ "repo_name": "ozwillo/ozwillo-datacore", "path": "ozwillo-datacore-rest-server/src/test/java/org/oasis/datacore/rest/server/HTTPOperationsTest.java", "license": "agpl-3.0", "size": 42758 }
[ "java.util.ArrayList", "java.util.List", "java.util.Map", "javax.ws.rs.WebApplicationException", "org.junit.Assert", "org.oasis.datacore.rest.api.DCResource", "org.oasis.datacore.rest.api.util.UnitTestHelper", "org.oasis.datacore.rest.client.QueryParameters", "org.oasis.datacore.sample.BrandCarMotor...
import java.util.ArrayList; import java.util.List; import java.util.Map; import javax.ws.rs.WebApplicationException; import org.junit.Assert; import org.oasis.datacore.rest.api.DCResource; import org.oasis.datacore.rest.api.util.UnitTestHelper; import org.oasis.datacore.rest.client.QueryParameters; import org.oasis.dat...
import java.util.*; import javax.ws.rs.*; import org.junit.*; import org.oasis.datacore.rest.api.*; import org.oasis.datacore.rest.api.util.*; import org.oasis.datacore.rest.client.*; import org.oasis.datacore.sample.*;
[ "java.util", "javax.ws", "org.junit", "org.oasis.datacore" ]
java.util; javax.ws; org.junit; org.oasis.datacore;
2,356,713
HeadersMapFactory getHeadersMapFactory();
HeadersMapFactory getHeadersMapFactory();
/** * Gets the {@link HeadersMapFactory} to use. */
Gets the <code>HeadersMapFactory</code> to use
getHeadersMapFactory
{ "repo_name": "christophd/camel", "path": "core/camel-api/src/main/java/org/apache/camel/ExtendedCamelContext.java", "license": "apache-2.0", "size": 29137 }
[ "org.apache.camel.spi.HeadersMapFactory" ]
import org.apache.camel.spi.HeadersMapFactory;
import org.apache.camel.spi.*;
[ "org.apache.camel" ]
org.apache.camel;
2,479,412
@Test public void testBlobServerCleanupCancelledJob() throws IOException { testBlobServerCleanup(TestCase.JOB_IS_CANCELLED); }
void function() throws IOException { testBlobServerCleanup(TestCase.JOB_IS_CANCELLED); }
/** * Test cleanup for a job which is cancelled after submission. */
Test cleanup for a job which is cancelled after submission
testBlobServerCleanupCancelledJob
{ "repo_name": "mylog00/flink", "path": "flink-runtime/src/test/java/org/apache/flink/runtime/jobmanager/JobManagerCleanupITCase.java", "license": "apache-2.0", "size": 10914 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
1,918,656
boolean isAServer = false; long responseTime = -1; try { // Dhcpd.isServer() returns the response time in milliseconds // if the remote host is a DHCP server or -1 if the remote // host is not a DHCP server. responseTime = Dhcpd.isServer(host, timeout, re...
boolean isAServer = false; long responseTime = -1; try { responseTime = Dhcpd.isServer(host, timeout, retries); } catch (final InterruptedIOException ioE) { ioE.fillInStackTrace(); LOG.debug(STR, ioE); } catch (final IOException ioE) { LOG.warn(STR, ioE); isAServer = false; } catch (final Throwable t) { LOG.error(STR, ...
/** * This method is used to test a passed address for DHCP server support. If * the target system is running a DHCP server and responds to the request * then a value of true is returned. * * @param host * The host address to check * @param retries * The ma...
This method is used to test a passed address for DHCP server support. If the target system is running a DHCP server and responds to the request then a value of true is returned
isServer
{ "repo_name": "rfdrake/opennms", "path": "protocols/dhcp/src/main/java/org/opennms/protocols/dhcp/capsd/DhcpPlugin.java", "license": "gpl-2.0", "size": 6365 }
[ "java.io.IOException", "java.io.InterruptedIOException", "org.opennms.netmgt.dhcpd.Dhcpd" ]
import java.io.IOException; import java.io.InterruptedIOException; import org.opennms.netmgt.dhcpd.Dhcpd;
import java.io.*; import org.opennms.netmgt.dhcpd.*;
[ "java.io", "org.opennms.netmgt" ]
java.io; org.opennms.netmgt;
382,664
public PathFragment getDynamicRuntimeSolibDir() { return dynamicRuntimeSolibDir; }
PathFragment function() { return dynamicRuntimeSolibDir; }
/** * Returns the name of the directory where the solib symlinks for the dynamic runtime libraries * live. The directory itself will be under the root of the host configuration in the 'bin' * directory. */
Returns the name of the directory where the solib symlinks for the dynamic runtime libraries live. The directory itself will be under the root of the host configuration in the 'bin' directory
getDynamicRuntimeSolibDir
{ "repo_name": "vt09/bazel", "path": "src/main/java/com/google/devtools/build/lib/rules/cpp/CcToolchainProvider.java", "license": "apache-2.0", "size": 8253 }
[ "com.google.devtools.build.lib.vfs.PathFragment" ]
import com.google.devtools.build.lib.vfs.PathFragment;
import com.google.devtools.build.lib.vfs.*;
[ "com.google.devtools" ]
com.google.devtools;
359,236
public Exchange createOnAcceptAlertNotificationExchange(ExchangePattern exchangePattern, AlertNotification alertNotification) { Exchange exchange = createExchange(exchangePattern); exchange.setProperty(Exchange.BINDING, getBinding()); ...
Exchange function(ExchangePattern exchangePattern, AlertNotification alertNotification) { Exchange exchange = createExchange(exchangePattern); exchange.setProperty(Exchange.BINDING, getBinding()); exchange.setIn(getBinding().createSmppMessage(alertNotification)); return exchange; }
/** * Create a new exchange for communicating with this endpoint from a SMSC * with the specified {@link ExchangePattern} such as whether its going * to be an {@link ExchangePattern#InOnly} or {@link ExchangePattern#InOut} exchange * * @param exchangePattern the message exchange pattern for the...
Create a new exchange for communicating with this endpoint from a SMSC with the specified <code>ExchangePattern</code> such as whether its going to be an <code>ExchangePattern#InOnly</code> or <code>ExchangePattern#InOut</code> exchange
createOnAcceptAlertNotificationExchange
{ "repo_name": "kingargyle/turmeric-bot", "path": "components/camel-smpp/src/main/java/org/apache/camel/component/smpp/SmppEndpoint.java", "license": "apache-2.0", "size": 6801 }
[ "org.apache.camel.Exchange", "org.apache.camel.ExchangePattern", "org.jsmpp.bean.AlertNotification" ]
import org.apache.camel.Exchange; import org.apache.camel.ExchangePattern; import org.jsmpp.bean.AlertNotification;
import org.apache.camel.*; import org.jsmpp.bean.*;
[ "org.apache.camel", "org.jsmpp.bean" ]
org.apache.camel; org.jsmpp.bean;
2,720,503
@ParameterizedTest @ArgumentsSource(SslTransportLayerArgumentsProvider.class) public void testIOExceptionsDuringHandshakeRead(Args args) throws Exception { server = createEchoServer(args, SecurityProtocol.SSL); testIOExceptionsDuringHandshake(args, FailureAction.THROW_IO_EXCEPTION, FailureAc...
@ArgumentsSource(SslTransportLayerArgumentsProvider.class) void function(Args args) throws Exception { server = createEchoServer(args, SecurityProtocol.SSL); testIOExceptionsDuringHandshake(args, FailureAction.THROW_IO_EXCEPTION, FailureAction.NO_OP); }
/** * Tests that IOExceptions from read during SSL handshake are not treated as authentication failures. */
Tests that IOExceptions from read during SSL handshake are not treated as authentication failures
testIOExceptionsDuringHandshakeRead
{ "repo_name": "Chasego/kafka", "path": "clients/src/test/java/org/apache/kafka/common/network/SslTransportLayerTest.java", "license": "apache-2.0", "size": 74847 }
[ "org.apache.kafka.common.security.auth.SecurityProtocol", "org.junit.jupiter.params.provider.ArgumentsSource" ]
import org.apache.kafka.common.security.auth.SecurityProtocol; import org.junit.jupiter.params.provider.ArgumentsSource;
import org.apache.kafka.common.security.auth.*; import org.junit.jupiter.params.provider.*;
[ "org.apache.kafka", "org.junit.jupiter" ]
org.apache.kafka; org.junit.jupiter;
2,629,517
public File getOriginFile() { return originFile; }
File function() { return originFile; }
/** * Returns the file from where this structured field has been * @return */
Returns the file from where this structured field has been
getOriginFile
{ "repo_name": "afpdev/herculesafpeditor", "path": "src/com/mgz/AFPEditor/dom/DOMItem.java", "license": "gpl-3.0", "size": 3367 }
[ "java.io.File" ]
import java.io.File;
import java.io.*;
[ "java.io" ]
java.io;
2,570,259
public void resetSQLAuthProperty() throws SQLException { Connection conn = getConnection(); conn.setAutoCommit(false); CallableStatement setDBP = conn.prepareCall( "CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY(?, ?)"); setDBP.setString(1, "derby.database.sqlAuthorizatio...
void function() throws SQLException { Connection conn = getConnection(); conn.setAutoCommit(false); CallableStatement setDBP = conn.prepareCall( STR); setDBP.setString(1, STR); testPropertyReset(setDBP, "false"); testPropertyReset(setDBP, null); testPropertyReset(setDBP, STR); testPropertyReset(setDBP, "true"); setDBP....
/** * This method tests that once derby.database.sqlAuthorization property * has been set to true, it cannot be reset to any other value. For the * test to be valid, it must follow the test method which sets * derby.database.sqlAuthorization property to true. * * @throws SQLException */
This method tests that once derby.database.sqlAuthorization property has been set to true, it cannot be reset to any other value. For the test to be valid, it must follow the test method which sets derby.database.sqlAuthorization property to true
resetSQLAuthProperty
{ "repo_name": "lpxz/grail-derby104", "path": "java/testing/org/apache/derbyTesting/functionTests/tests/lang/SQLAuthorizationPropTest.java", "license": "apache-2.0", "size": 6138 }
[ "java.sql.CallableStatement", "java.sql.Connection", "java.sql.SQLException" ]
import java.sql.CallableStatement; import java.sql.Connection; import java.sql.SQLException;
import java.sql.*;
[ "java.sql" ]
java.sql;
1,090,139
void modifyAce(Session jcrSession, String resourcePath, String principalId, Map<String, String> privileges, String order ) throws RepositoryException;
void modifyAce(Session jcrSession, String resourcePath, String principalId, Map<String, String> privileges, String order ) throws RepositoryException;
/** * Add or modify the access control entry for the specified user * or group. * * @param jcrSession the JCR session of the user updating the user * @param resourcePath The absolute path of the resource to apply the ACE to (required) * @param principalId The name of the user/group to provision (required)...
Add or modify the access control entry for the specified user or group
modifyAce
{ "repo_name": "cleliameneghin/sling", "path": "bundles/jcr/jackrabbit-accessmanager/src/main/java/org/apache/sling/jcr/jackrabbit/accessmanager/ModifyAce.java", "license": "apache-2.0", "size": 1926 }
[ "java.util.Map", "javax.jcr.RepositoryException", "javax.jcr.Session" ]
import java.util.Map; import javax.jcr.RepositoryException; import javax.jcr.Session;
import java.util.*; import javax.jcr.*;
[ "java.util", "javax.jcr" ]
java.util; javax.jcr;
1,989,385
@Before public void setup() throws IOException { Config.set("exporter.split_records", "false"); person = new Person(0L); // Give person an income to prevent null pointer. person.attributes.put(Person.INCOME, 10000000); Provider mock = Mockito.mock(Provider.class); Mockito.when(mock.getResour...
void function() throws IOException { Config.set(STR, "false"); person = new Person(0L); person.attributes.put(Person.INCOME, 10000000); Provider mock = Mockito.mock(Provider.class); Mockito.when(mock.getResourceID()).thenReturn(STR); for (EncounterType type : EncounterType.values()) { person.setProvider(type, mock); } ...
/** * Setup logic tests. * @throws IOException On File IO errors. */
Setup logic tests
setup
{ "repo_name": "synthetichealth/synthea", "path": "src/test/java/org/mitre/synthea/engine/LogicTest.java", "license": "apache-2.0", "size": 19587 }
[ "com.google.gson.JsonParser", "com.google.gson.stream.JsonReader", "java.io.FileReader", "java.io.IOException", "java.nio.file.Path", "java.nio.file.Paths", "org.mitre.synthea.helpers.Config", "org.mitre.synthea.world.agents.Payer", "org.mitre.synthea.world.agents.Person", "org.mitre.synthea.world...
import com.google.gson.JsonParser; import com.google.gson.stream.JsonReader; import java.io.FileReader; import java.io.IOException; import java.nio.file.Path; import java.nio.file.Paths; import org.mitre.synthea.helpers.Config; import org.mitre.synthea.world.agents.Payer; import org.mitre.synthea.world.agents.Person; i...
import com.google.gson.*; import com.google.gson.stream.*; import java.io.*; import java.nio.file.*; import org.mitre.synthea.helpers.*; import org.mitre.synthea.world.agents.*; import org.mitre.synthea.world.concepts.*; import org.mockito.*;
[ "com.google.gson", "java.io", "java.nio", "org.mitre.synthea", "org.mockito" ]
com.google.gson; java.io; java.nio; org.mitre.synthea; org.mockito;
552,242
private void appendConditionBasic(boolean negate, String attributeName, Operator operator){ appendNegate(negate); dynamicSQLContext.appendSql(' ' + mapper.map(attributeName) ); switch( operator ){ // --- unary operator --- case IS_...
void function(boolean negate, String attributeName, Operator operator){ appendNegate(negate); dynamicSQLContext.appendSql(' ' + mapper.map(attributeName) ); switch( operator ){ case IS_NOT_NULL: dynamicSQLContext.appendSql( STR ); break; case IS_NULL: dynamicSQLContext.appendSql( STR ); break; case EQUALS: dynamicSQLCo...
/** * Appends the basics for any condition to the SQL. * * <p> * This method will also translate the given operator to the equivalent DB operator. * </p> * * @param negate flag which marks if the condition should be negated * @param attributeName...
Appends the basics for any condition to the SQL. This method will also translate the given operator to the equivalent DB operator.
appendConditionBasic
{ "repo_name": "virenpc/nsehistoricaldata", "path": "src/com/smartstream/mfs/filter/extension/ConditionExtensionSqlNode.java", "license": "apache-2.0", "size": 15119 }
[ "com.viren.conditions.Operator" ]
import com.viren.conditions.Operator;
import com.viren.conditions.*;
[ "com.viren.conditions" ]
com.viren.conditions;
2,571,122
private static boolean cancelPotentialDownload(String url, ImageView imageView) { BitmapDownloaderTask bitmapDownloaderTask = getBitmapDownloaderTask(imageView); if (bitmapDownloaderTask != null) { String bitmapUrl = bitmapDownloaderTask.url; if ((bitmapUrl == null) || (!bit...
static boolean function(String url, ImageView imageView) { BitmapDownloaderTask bitmapDownloaderTask = getBitmapDownloaderTask(imageView); if (bitmapDownloaderTask != null) { String bitmapUrl = bitmapDownloaderTask.url; if ((bitmapUrl == null) (!bitmapUrl.equals(url))) { bitmapDownloaderTask.cancel(true); } else { retu...
/** * Returns true if the current download has been canceled or if there was no download in * progress on this image view. * Returns false if the download in progress deals with the same url. The download is not * stopped in that case. */
Returns true if the current download has been canceled or if there was no download in progress on this image view. Returns false if the download in progress deals with the same url. The download is not stopped in that case
cancelPotentialDownload
{ "repo_name": "sroca93/LPRO-MACETA", "path": "AppIntregration/MyApplication/app/src/main/java/adapters/images/ImageDownloader.java", "license": "mit", "size": 14889 }
[ "android.widget.ImageView" ]
import android.widget.ImageView;
import android.widget.*;
[ "android.widget" ]
android.widget;
36,967
void enterStringconstant(@NotNull EsperEPL2GrammarParser.StringconstantContext ctx); void exitStringconstant(@NotNull EsperEPL2GrammarParser.StringconstantContext ctx);
void enterStringconstant(@NotNull EsperEPL2GrammarParser.StringconstantContext ctx); void exitStringconstant(@NotNull EsperEPL2GrammarParser.StringconstantContext ctx);
/** * Exit a parse tree produced by {@link EsperEPL2GrammarParser#stringconstant}. * @param ctx the parse tree */
Exit a parse tree produced by <code>EsperEPL2GrammarParser#stringconstant</code>
exitStringconstant
{ "repo_name": "georgenicoll/esper", "path": "esper/src/main/java/com/espertech/esper/epl/generated/EsperEPL2GrammarListener.java", "license": "gpl-2.0", "size": 114105 }
[ "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;
2,637,059
synchronized void updateProfiles(ParcelUuid[] uuids, ParcelUuid[] localUuids, Collection<LocalBluetoothProfile> profiles, Collection<LocalBluetoothProfile> removedProfiles) { // Copy previous profile list into removedProfiles removedProfiles.clear(); removedProfi...
synchronized void updateProfiles(ParcelUuid[] uuids, ParcelUuid[] localUuids, Collection<LocalBluetoothProfile> profiles, Collection<LocalBluetoothProfile> removedProfiles) { removedProfiles.clear(); removedProfiles.addAll(profiles); profiles.clear(); if (uuids == null) { return; } if (mHeadsetProfile != null) { if ((B...
/** * Fill in a list of LocalBluetoothProfile objects that are supported by * the local device and the remote device. * * @param uuids of the remote device * @param localUuids UUIDs of the local device * @param profiles The list of profiles to fill * @param removedProfiles list...
Fill in a list of LocalBluetoothProfile objects that are supported by the local device and the remote device
updateProfiles
{ "repo_name": "risingsunm/Settings", "path": "src/com/android/settings/bluetooth/LocalBluetoothProfileManager.java", "license": "gpl-2.0", "size": 17405 }
[ "android.bluetooth.BluetoothUuid", "android.os.ParcelUuid", "java.util.Collection" ]
import android.bluetooth.BluetoothUuid; import android.os.ParcelUuid; import java.util.Collection;
import android.bluetooth.*; import android.os.*; import java.util.*;
[ "android.bluetooth", "android.os", "java.util" ]
android.bluetooth; android.os; java.util;
338,374
public void setRoles(List<String> roles) { this.roles = roles; }
void function(List<String> roles) { this.roles = roles; }
/** * Sets the roles. * * @param roles the new roles */
Sets the roles
setRoles
{ "repo_name": "techblue/jasperserver-restclient", "path": "src/main/java/uk/co/techblue/jasperclient/dto/ExportServiceInput.java", "license": "apache-2.0", "size": 2513 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
924,363
public static boolean DeleteFile(String filePath) { return DeleteFile(new File(filePath)); }
static boolean function(String filePath) { return DeleteFile(new File(filePath)); }
/** Deletes a file. * * @param filePath Absolute file path */
Deletes a file
DeleteFile
{ "repo_name": "srp33/ShinyLearner", "path": "Archive/java/src/shinylearner/helper/FileUtilities.java", "license": "mit", "size": 9363 }
[ "java.io.File" ]
import java.io.File;
import java.io.*;
[ "java.io" ]
java.io;
2,308,129
public int getNofCompatibleTypes(final CompilationTimeStamp timestamp, final IType type) { if (type.getTypeRefdLast(timestamp).getIsErroneous(timestamp)) { return 1; } int result = 0; for (int i = 0, size = types.size(); i < size; i++) { if (types.get(i).isCompatible(timestamp, type, null, null, null)...
int function(final CompilationTimeStamp timestamp, final IType type) { if (type.getTypeRefdLast(timestamp).getIsErroneous(timestamp)) { return 1; } int result = 0; for (int i = 0, size = types.size(); i < size; i++) { if (types.get(i).isCompatible(timestamp, type, null, null, null)) { result++; } } return result; }
/** * Calculates the number of types that are compatible with the provided * type. * * @param timestamp the timestamp of the actual semantic check cycle * @param type the type to check against * * @return the number of compatible types * */
Calculates the number of types that are compatible with the provided type
getNofCompatibleTypes
{ "repo_name": "alovassy/titan.EclipsePlug-ins", "path": "org.eclipse.titan.designer/src/org/eclipse/titan/designer/AST/TTCN3/types/TypeSet.java", "license": "epl-1.0", "size": 3478 }
[ "org.eclipse.titan.designer.AST", "org.eclipse.titan.designer.parsers.CompilationTimeStamp" ]
import org.eclipse.titan.designer.AST; import org.eclipse.titan.designer.parsers.CompilationTimeStamp;
import org.eclipse.titan.designer.*; import org.eclipse.titan.designer.parsers.*;
[ "org.eclipse.titan" ]
org.eclipse.titan;
962,207
public void enableService(Context context, boolean isEnable) { getEditor(context).putBoolean(ENABLE, isEnable).commit(); BackupManager bm = new BackupManager(context); bm.dataChanged(); }
void function(Context context, boolean isEnable) { getEditor(context).putBoolean(ENABLE, isEnable).commit(); BackupManager bm = new BackupManager(context); bm.dataChanged(); }
/** * Enable fix services. * * @param context * @param isEnable boolean */
Enable fix services
enableService
{ "repo_name": "kozaxinan/OnePlus-One-Screen-Fix", "path": "app/src/main/java/com/kozaxinan/fixoposcreen/AppSettings.java", "license": "apache-2.0", "size": 3937 }
[ "android.app.backup.BackupManager", "android.content.Context" ]
import android.app.backup.BackupManager; import android.content.Context;
import android.app.backup.*; import android.content.*;
[ "android.app", "android.content" ]
android.app; android.content;
1,493,486
@Override protected CGNode makeFakeRootNode() throws CancelException { return findOrCreateNode(new FakeRootMethod(cha, options, cache), Everywhere.EVERYWHERE); }
CGNode function() throws CancelException { return findOrCreateNode(new FakeRootMethod(cha, options, cache), Everywhere.EVERYWHERE); }
/** * subclasses may wish to override! * * @throws CancelException */
subclasses may wish to override
makeFakeRootNode
{ "repo_name": "nithinvnath/PAVProject", "path": "com.ibm.wala.core/src/com/ibm/wala/ipa/callgraph/impl/ExplicitCallGraph.java", "license": "mit", "size": 15904 }
[ "com.ibm.wala.ipa.callgraph.CGNode", "com.ibm.wala.util.CancelException" ]
import com.ibm.wala.ipa.callgraph.CGNode; import com.ibm.wala.util.CancelException;
import com.ibm.wala.ipa.callgraph.*; import com.ibm.wala.util.*;
[ "com.ibm.wala" ]
com.ibm.wala;
575,878
public static HTMLDocumentationGeneratorConfiguration makeConfiguration(WorkspaceManager workspaceManager, String cmdLine, Logger logger) throws CommandLineException { // split the command line with the quote character, so that we can handle quoted strings differently String[] quoteSepar...
static HTMLDocumentationGeneratorConfiguration function(WorkspaceManager workspaceManager, String cmdLine, Logger logger) throws CommandLineException { String[] quoteSeparatedChunks = cmdLine.split("\"STR\\s"); for (final String bit : bits) { if (bit.length() > 0) { argList.add(bit); } } } inQuotes = !inQuotes; } Strin...
/** * Parses the given command line arguments and constructs a configuration object from them. * @param workspaceManager the workspace manager to be used during documentation generation. * @param cmdLine the command line arguments. * @param logger the logger to use for logging status messages. ...
Parses the given command line arguments and constructs a configuration object from them
makeConfiguration
{ "repo_name": "levans/Open-Quark", "path": "src/CAL_Platform/src/org/openquark/cal/caldoc/CALDocTool.java", "license": "bsd-3-clause", "size": 34303 }
[ "java.util.logging.Logger", "org.openquark.cal.services.WorkspaceManager" ]
import java.util.logging.Logger; import org.openquark.cal.services.WorkspaceManager;
import java.util.logging.*; import org.openquark.cal.services.*;
[ "java.util", "org.openquark.cal" ]
java.util; org.openquark.cal;
825,403
public static boolean verifyInput(LayoutEntity[] entitiesToLayout, LayoutRelationship[] relationshipsToConsider) { boolean stillValid = true; for (int i = 0; i < relationshipsToConsider.length; i++) { LayoutRelationship relationship = relationshipsToConsider[i]; LayoutEntity source = relationship.getSource...
static boolean function(LayoutEntity[] entitiesToLayout, LayoutRelationship[] relationshipsToConsider) { boolean stillValid = true; for (int i = 0; i < relationshipsToConsider.length; i++) { LayoutRelationship relationship = relationshipsToConsider[i]; LayoutEntity source = relationship.getSourceInLayout(); LayoutEntit...
/** * Verifies the endpoints of the relationships are entities in the entitiesToLayout list. * Allows other classes in this package to use this method to verify the input */
Verifies the endpoints of the relationships are entities in the entitiesToLayout list. Allows other classes in this package to use this method to verify the input
verifyInput
{ "repo_name": "uci-sdcl/lighthouse", "path": "deprecated/org.eclipse.zest.layouts/src/org/eclipse/zest/layouts/algorithms/AbstractLayoutAlgorithm.java", "license": "epl-1.0", "size": 38679 }
[ "org.eclipse.zest.layouts.LayoutEntity", "org.eclipse.zest.layouts.LayoutRelationship" ]
import org.eclipse.zest.layouts.LayoutEntity; import org.eclipse.zest.layouts.LayoutRelationship;
import org.eclipse.zest.layouts.*;
[ "org.eclipse.zest" ]
org.eclipse.zest;
2,591,289
private String toString(Position position) { return "P[" + position.getOffset() + "+" + position.getLength() + "]"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ }
String function(Position position) { return "P[" + position.getOffset() + "+" + position.getLength() + "]"; }
/** * Pretty print a <code>Position</code>. * * @param position the position to format * @return a formatted string */
Pretty print a <code>Position</code>
toString
{ "repo_name": "elucash/eclipse-oxygen", "path": "org.eclipse.jface.text/src/org/eclipse/jface/text/rules/FastPartitioner.java", "license": "epl-1.0", "size": 24915 }
[ "org.eclipse.jface.text.Position" ]
import org.eclipse.jface.text.Position;
import org.eclipse.jface.text.*;
[ "org.eclipse.jface" ]
org.eclipse.jface;
1,284,246
public ServiceResponse<Map<String, Integer>> getNull() throws ErrorException, IOException { Call<ResponseBody> call = service.getNull(); return getNullDelegate(call.execute()); }
ServiceResponse<Map<String, Integer>> function() throws ErrorException, IOException { Call<ResponseBody> call = service.getNull(); return getNullDelegate(call.execute()); }
/** * Get null dictionary value. * * @throws ErrorException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @return the Map&lt;String, Integer&gt; object wrapped in {@link ServiceResponse} if successful. */
Get null dictionary value
getNull
{ "repo_name": "stankovski/AutoRest", "path": "AutoRest/Generators/Java/Java.Tests/src/main/java/fixtures/bodydictionary/DictionaryOperationsImpl.java", "license": "mit", "size": 167988 }
[ "com.microsoft.rest.ServiceResponse", "java.io.IOException", "java.util.Map" ]
import com.microsoft.rest.ServiceResponse; import java.io.IOException; import java.util.Map;
import com.microsoft.rest.*; import java.io.*; import java.util.*;
[ "com.microsoft.rest", "java.io", "java.util" ]
com.microsoft.rest; java.io; java.util;
2,032,284
@Test public void testGetBreakIterator() { UniCord instance = new UniCord("あいう"); Object iterType = BreakIterator.getCharacterInstance().getClass(); BreakIterator result = instance.getBreakIterator(); assertThat(result.getClass(), is(iterType)); }
void function() { UniCord instance = new UniCord("あいう"); Object iterType = BreakIterator.getCharacterInstance().getClass(); BreakIterator result = instance.getBreakIterator(); assertThat(result.getClass(), is(iterType)); }
/** * Test of getBreakIterator method, of class UniCord. */
Test of getBreakIterator method, of class UniCord
testGetBreakIterator
{ "repo_name": "enlo/jmt-projects", "path": "jmt-core/src/test/java/info/naiv/lab/java/jmt/text/UniCordTest.java", "license": "mit", "size": 19003 }
[ "java.text.BreakIterator", "org.hamcrest.Matchers", "org.junit.Assert" ]
import java.text.BreakIterator; import org.hamcrest.Matchers; import org.junit.Assert;
import java.text.*; import org.hamcrest.*; import org.junit.*;
[ "java.text", "org.hamcrest", "org.junit" ]
java.text; org.hamcrest; org.junit;
1,120,964
@Override public void run() { try { final StringBufferWriter printBuffer = new StringBufferWriter(); final PrintStream pout = new PrintStream(new WriterOutputStream(printBuffer)); EVAL_ENGINE.setOutPrintStream(pout); final StringBufferWriter buf0 = new StringBufferWriter(); // use ev...
void function() { try { final StringBufferWriter printBuffer = new StringBufferWriter(); final PrintStream pout = new PrintStream(new WriterOutputStream(printBuffer)); EVAL_ENGINE.setOutPrintStream(pout); final StringBufferWriter buf0 = new StringBufferWriter(); final IExpr expr = EVAL.constrainedEval(buf0, command, tr...
/** * Thread run method * * @see java.lang.Runnable#run() */
Thread run method
run
{ "repo_name": "Mindtoeye/Hoop", "path": "src/edu/cmu/cs/in/math/HoopMathPanel.java", "license": "lgpl-3.0", "size": 27112 }
[ "java.io.PrintStream", "org.matheclipse.core.eval.TeXUtilities", "org.matheclipse.core.form.output.StringBufferWriter", "org.matheclipse.core.interfaces.IExpr", "org.matheclipse.core.util.WriterOutputStream", "org.matheclipse.parser.client.math.MathException", "org.scilab.forge.jlatexmath.TeXConstants",...
import java.io.PrintStream; import org.matheclipse.core.eval.TeXUtilities; import org.matheclipse.core.form.output.StringBufferWriter; import org.matheclipse.core.interfaces.IExpr; import org.matheclipse.core.util.WriterOutputStream; import org.matheclipse.parser.client.math.MathException; import org.scilab.forge.jlate...
import java.io.*; import org.matheclipse.core.eval.*; import org.matheclipse.core.form.output.*; import org.matheclipse.core.interfaces.*; import org.matheclipse.core.util.*; import org.matheclipse.parser.client.math.*; import org.scilab.forge.jlatexmath.*;
[ "java.io", "org.matheclipse.core", "org.matheclipse.parser", "org.scilab.forge" ]
java.io; org.matheclipse.core; org.matheclipse.parser; org.scilab.forge;
967,249
public ConfiguredTargetAndData getPrerequisiteConfiguredTargetAndData( String attributeName, Mode mode) { checkAttribute(attributeName, mode); List<ConfiguredTargetAndData> elements = getConfiguredTargetAndTargetDeps(attributeName); if (elements.size() > 1) { throw new IllegalStateException(ge...
ConfiguredTargetAndData function( String attributeName, Mode mode) { checkAttribute(attributeName, mode); List<ConfiguredTargetAndData> elements = getConfiguredTargetAndTargetDeps(attributeName); if (elements.size() > 1) { throw new IllegalStateException(getRuleClassNameForLogging() + STR + attributeName + STR); } retu...
/** * Returns the {@link ConfiguredTargetAndData} that feeds ino this target through the specified * attribute. Note that you need to specify the correct mode for the attribute, otherwise an * assertion will be raised. Returns null if the attribute is empty. */
Returns the <code>ConfiguredTargetAndData</code> that feeds ino this target through the specified attribute. Note that you need to specify the correct mode for the attribute, otherwise an assertion will be raised. Returns null if the attribute is empty
getPrerequisiteConfiguredTargetAndData
{ "repo_name": "ButterflyNetwork/bazel", "path": "src/main/java/com/google/devtools/build/lib/analysis/RuleContext.java", "license": "apache-2.0", "size": 82210 }
[ "com.google.devtools.build.lib.analysis.configuredtargets.RuleConfiguredTarget", "com.google.devtools.build.lib.skyframe.ConfiguredTargetAndData", "java.util.List" ]
import com.google.devtools.build.lib.analysis.configuredtargets.RuleConfiguredTarget; import com.google.devtools.build.lib.skyframe.ConfiguredTargetAndData; import java.util.List;
import com.google.devtools.build.lib.analysis.configuredtargets.*; import com.google.devtools.build.lib.skyframe.*; import java.util.*;
[ "com.google.devtools", "java.util" ]
com.google.devtools; java.util;
19,555
@Override public void emitSwitch(SwitchNode x) { assert x.defaultSuccessor() != null; LabelRef defaultTarget = getLIRBlock(x.defaultSuccessor()); int keyCount = x.keyCount(); if (keyCount == 0) { gen.emitJump(defaultTarget); } else { Variable value...
void function(SwitchNode x) { assert x.defaultSuccessor() != null; LabelRef defaultTarget = getLIRBlock(x.defaultSuccessor()); int keyCount = x.keyCount(); if (keyCount == 0) { gen.emitJump(defaultTarget); } else { Variable value = gen.load(operand(x.value())); if (keyCount == 1) { assert defaultTarget != null; double ...
/** * This method tries to create a switch implementation that is optimal for the given switch. It * will either generate a sequential if/then/else cascade, a set of range tests or a table * switch. * * If the given switch does not contain int keys, it will always create a sequential * imp...
This method tries to create a switch implementation that is optimal for the given switch. It will either generate a sequential if/then/else cascade, a set of range tests or a table switch. If the given switch does not contain int keys, it will always create a sequential implementation
emitSwitch
{ "repo_name": "md-5/jdk10", "path": "src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.core/src/org/graalvm/compiler/core/gen/NodeLIRBuilder.java", "license": "gpl-2.0", "size": 35988 }
[ "org.graalvm.compiler.core.common.LIRKind", "org.graalvm.compiler.core.common.calc.Condition", "org.graalvm.compiler.lir.LabelRef", "org.graalvm.compiler.lir.SwitchStrategy", "org.graalvm.compiler.lir.Variable", "org.graalvm.compiler.nodes.NodeView", "org.graalvm.compiler.nodes.extended.IntegerSwitchNod...
import org.graalvm.compiler.core.common.LIRKind; import org.graalvm.compiler.core.common.calc.Condition; import org.graalvm.compiler.lir.LabelRef; import org.graalvm.compiler.lir.SwitchStrategy; import org.graalvm.compiler.lir.Variable; import org.graalvm.compiler.nodes.NodeView; import org.graalvm.compiler.nodes.exten...
import org.graalvm.compiler.core.common.*; import org.graalvm.compiler.core.common.calc.*; import org.graalvm.compiler.lir.*; import org.graalvm.compiler.nodes.*; import org.graalvm.compiler.nodes.extended.*;
[ "org.graalvm.compiler" ]
org.graalvm.compiler;
615,277
public List<StudySubject> getByIdentifiers( List<Identifier> studySubjectIdentifiers) { List<StudySubject> studySubjects = new ArrayList<StudySubject>(); for (Identifier identifier : studySubjectIdentifiers) { if (identifier instanceof SystemAssignedIdentifier) { studySubjects .addAll(searc...
List<StudySubject> function( List<Identifier> studySubjectIdentifiers) { List<StudySubject> studySubjects = new ArrayList<StudySubject>(); for (Identifier identifier : studySubjectIdentifiers) { if (identifier instanceof SystemAssignedIdentifier) { studySubjects .addAll(searchBySysIdentifier((SystemAssignedIdentifier) ...
/** * Gets study subjects by identifiers. * * @param studySubjectIdentifiers * the study subject identifiers * * @return the by identifiers */
Gets study subjects by identifiers
getByIdentifiers
{ "repo_name": "NCIP/c3pr", "path": "codebase/projects/core/src/java/edu/duke/cabig/c3pr/dao/StudySubjectDao.java", "license": "bsd-3-clause", "size": 54453 }
[ "edu.duke.cabig.c3pr.domain.Identifier", "edu.duke.cabig.c3pr.domain.OrganizationAssignedIdentifier", "edu.duke.cabig.c3pr.domain.StudySubject", "edu.duke.cabig.c3pr.domain.SystemAssignedIdentifier", "java.util.ArrayList", "java.util.LinkedHashSet", "java.util.List", "java.util.Set" ]
import edu.duke.cabig.c3pr.domain.Identifier; import edu.duke.cabig.c3pr.domain.OrganizationAssignedIdentifier; import edu.duke.cabig.c3pr.domain.StudySubject; import edu.duke.cabig.c3pr.domain.SystemAssignedIdentifier; import java.util.ArrayList; import java.util.LinkedHashSet; import java.util.List; import java.util....
import edu.duke.cabig.c3pr.domain.*; import java.util.*;
[ "edu.duke.cabig", "java.util" ]
edu.duke.cabig; java.util;
1,231,776
public Call<ResponseBody> putDateTimeValidAsync(List<DateTime> arrayBody, final ServiceCallback<Void> serviceCallback) { if (arrayBody == null) { serviceCallback.failure(new ServiceException( new IllegalArgumentException("Parameter arrayBody is required and cannot be null."))); ...
Call<ResponseBody> function(List<DateTime> arrayBody, final ServiceCallback<Void> serviceCallback) { if (arrayBody == null) { serviceCallback.failure(new ServiceException( new IllegalArgumentException(STR))); }
/** * Set array value ['2000-12-01t00:00:01z', '1980-01-02T00:11:35+01:00', '1492-10-12T10:15:01-08:00'] * * @param arrayBody the List&lt;DateTime&gt; value * @param serviceCallback the async ServiceCallback to handle successful and failed responses. */
Set array value ['2000-12-01t00:00:01z', '1980-01-02T00:11:35+01:00', '1492-10-12T10:15:01-08:00']
putDateTimeValidAsync
{ "repo_name": "BretJohnson/autorest", "path": "AutoRest/Generators/Java/Java.Tests/src/main/java/fixtures/bodyarray/ArrayImpl.java", "license": "mit", "size": 128720 }
[ "com.microsoft.rest.ServiceCallback", "com.microsoft.rest.ServiceException", "com.squareup.okhttp.ResponseBody", "java.util.List", "org.joda.time.DateTime" ]
import com.microsoft.rest.ServiceCallback; import com.microsoft.rest.ServiceException; import com.squareup.okhttp.ResponseBody; import java.util.List; import org.joda.time.DateTime;
import com.microsoft.rest.*; import com.squareup.okhttp.*; import java.util.*; import org.joda.time.*;
[ "com.microsoft.rest", "com.squareup.okhttp", "java.util", "org.joda.time" ]
com.microsoft.rest; com.squareup.okhttp; java.util; org.joda.time;
1,406,167
public int keyInt(int pos) { return this.key.getInt(pos, ByteOrder.BIG_ENDIAN); }
int function(int pos) { return this.key.getInt(pos, ByteOrder.BIG_ENDIAN); }
/** * Get data from key at current cursor position. * * @param pos byte position * @return int */
Get data from key at current cursor position
keyInt
{ "repo_name": "recoilme/lmdbjni", "path": "lmdbjni/src/main/java/org/fusesource/lmdbjni/BufferCursor.java", "license": "apache-2.0", "size": 23616 }
[ "java.nio.ByteOrder" ]
import java.nio.ByteOrder;
import java.nio.*;
[ "java.nio" ]
java.nio;
1,265,035
private static void extract(final ZipFile zipFile, final String fileName) throws IOException { final File tempFile; final ZipEntry entry; final InputStream zipStream; OutputStream fileStream; tempFile = new File(fileName); if (tempFile.exists()) { return; } else { if (!(new File(tempFile.getPa...
static void function(final ZipFile zipFile, final String fileName) throws IOException { final File tempFile; final ZipEntry entry; final InputStream zipStream; OutputStream fileStream; tempFile = new File(fileName); if (tempFile.exists()) { return; } else { if (!(new File(tempFile.getParent())).exists()) { (new File(te...
/** * Extracts the specified file from the jar file. * * @param zipFile * ZipFile : the jar file to be extracted from. * @param fileName * String : the full path to where the file is extracted to * * @throws IOException */
Extracts the specified file from the jar file
extract
{ "repo_name": "saimoom/phyml", "path": "gui/src/main/java/phyml/UnpackTestDataFile.java", "license": "gpl-2.0", "size": 3818 }
[ "java.io.File", "java.io.FileNotFoundException", "java.io.FileOutputStream", "java.io.IOException", "java.io.InputStream", "java.io.OutputStream", "java.util.zip.ZipEntry", "java.util.zip.ZipFile" ]
import java.io.File; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.util.zip.ZipEntry; import java.util.zip.ZipFile;
import java.io.*; import java.util.zip.*;
[ "java.io", "java.util" ]
java.io; java.util;
937,043
private VNSAccessControlListEntry icmpAclEntry(int icmpType) throws Exception { VNSAccessControlListEntry aclIcmp = new VNSAccessControlListEntry(30, null); aclIcmp.setAction("deny"); aclIcmp.setType("icmp"); aclIcmp.setSrcIp("192.168.1.64"); aclIcmp.setSrcIpMask("255.255.255...
VNSAccessControlListEntry function(int icmpType) throws Exception { VNSAccessControlListEntry aclIcmp = new VNSAccessControlListEntry(30, null); aclIcmp.setAction("deny"); aclIcmp.setType("icmp"); aclIcmp.setSrcIp(STR); aclIcmp.setSrcIpMask(STR); aclIcmp.setDstIp(STR); aclIcmp.setDstIpMask(STR); aclIcmp.setIcmpType(icm...
/** * Create icmp ACL entry */
Create icmp ACL entry
icmpAclEntry
{ "repo_name": "mandeepdhami/netvirt-ctrl", "path": "sdnplatform/src/test/java/org/sdnplatform/netvirt/virtualrouting/internal/VirtualRoutingHintTest.java", "license": "epl-1.0", "size": 19772 }
[ "org.sdnplatform.netvirt.core.VNSAccessControlListEntry" ]
import org.sdnplatform.netvirt.core.VNSAccessControlListEntry;
import org.sdnplatform.netvirt.core.*;
[ "org.sdnplatform.netvirt" ]
org.sdnplatform.netvirt;
1,501,608
@RequestMapping("/{ownerId}") public ModelAndView showOwner(@PathVariable("ownerId") int ownerId) { ModelAndView mav = new ModelAndView("owners/ownerDetails"); mav.addObject(this.clinicService.findOwnerById(ownerId)); return mav; }
@RequestMapping(STR) ModelAndView function(@PathVariable(STR) int ownerId) { ModelAndView mav = new ModelAndView(STR); mav.addObject(this.clinicService.findOwnerById(ownerId)); return mav; }
/** * Custom handler for displaying an owner. * * @param ownerId * the ID of the owner to display * @return a ModelMap with the model attributes for the view */
Custom handler for displaying an owner
showOwner
{ "repo_name": "nfrankel/enhanced-pet-clinic", "path": "src/main/java/sample/ui/web/OwnerController.java", "license": "apache-2.0", "size": 4909 }
[ "org.springframework.web.bind.annotation.PathVariable", "org.springframework.web.bind.annotation.RequestMapping", "org.springframework.web.servlet.ModelAndView" ]
import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.bind.annotation.*; import org.springframework.web.servlet.*;
[ "org.springframework.web" ]
org.springframework.web;
1,824,131
// final int hashCode = nextHashCode++; // // // the math here is just to mix up the counter values a bit. // final byte counter = (byte) ((nextHashCode + 12) % 7); // // return new BlobIV(vte, hashCode, counter); return new TermId(vte, nextTermId++); ...
return new TermId(vte, nextTermId++); }
/** * Factory for {@link IV}s. */
Factory for <code>IV</code>s
newTermId
{ "repo_name": "rac021/blazegraph_1_5_3_cluster_2_nodes", "path": "bigdata-rdf/src/test/com/bigdata/rdf/internal/MockTermIdFactory.java", "license": "gpl-2.0", "size": 3535 }
[ "com.bigdata.rdf.internal.impl.TermId" ]
import com.bigdata.rdf.internal.impl.TermId;
import com.bigdata.rdf.internal.impl.*;
[ "com.bigdata.rdf" ]
com.bigdata.rdf;
205,083
public void check() { final long ts = System.currentTimeMillis(); Hash hash = new Hash(); //~: update the check time this.checkTime = ts; //c: search for changed script files for(Map.Entry<JsFile, Hash> e : hashes.entrySet()) { //~: request hash of the actual content e.getKey().con...
void function() { final long ts = System.currentTimeMillis(); Hash hash = new Hash(); this.checkTime = ts; for(Map.Entry<JsFile, Hash> e : hashes.entrySet()) { e.getKey().content(hash); if(!hash.equals(e.getValue())) { if(e.getKey().equals(this.file)) LU.debug(LOG, STR, this.file.uri().getPath(), "]" ); else LU.debug(L...
/** * Invalidates the engine if source * file content was changed. */
Invalidates the engine if source file content was changed
check
{ "repo_name": "AntonBaukin/embeddy", "path": "springer/sources/net/java/osgi/embeddy/springer/jsx/JsEngine.java", "license": "unlicense", "size": 9530 }
[ "java.util.Map", "net.java.osgi.embeddy.springer.LU", "net.java.osgi.embeddy.springer.support.Hash" ]
import java.util.Map; import net.java.osgi.embeddy.springer.LU; import net.java.osgi.embeddy.springer.support.Hash;
import java.util.*; import net.java.osgi.embeddy.springer.*; import net.java.osgi.embeddy.springer.support.*;
[ "java.util", "net.java.osgi" ]
java.util; net.java.osgi;
1,063,538
public interface ChunkHandler { void handle(ChunkedMessage msg) throws Exception; }
interface ChunkHandler { void function(ChunkedMessage msg) throws Exception; }
/** * This method will be called once for every incoming chunk * * @param msg the current chunk to handle */
This method will be called once for every incoming chunk
handle
{ "repo_name": "smanvi-pivotal/geode", "path": "geode-core/src/main/java/org/apache/geode/cache/client/internal/AbstractOp.java", "license": "apache-2.0", "size": 14915 }
[ "org.apache.geode.internal.cache.tier.sockets.ChunkedMessage" ]
import org.apache.geode.internal.cache.tier.sockets.ChunkedMessage;
import org.apache.geode.internal.cache.tier.sockets.*;
[ "org.apache.geode" ]
org.apache.geode;
1,283,028
private void read_nb_event_platform(final int nbEvent) { System.out.println(String.format("Check if found %d events", nbEvent)); try (Jedis j = this.redisPool.getResource()) { final long nb = j.llen(getPlatformRedisKey()); assertThat(nb).isEqualTo(nbEvent); } }
void function(final int nbEvent) { System.out.println(String.format(STR, nbEvent)); try (Jedis j = this.redisPool.getResource()) { final long nb = j.llen(getPlatformRedisKey()); assertThat(nb).isEqualTo(nbEvent); } }
/** * check number of event. * * @param nbEvent number of event asked */
check number of event
read_nb_event_platform
{ "repo_name": "JordanKergoat/hesperides", "path": "src/test/java/integration/TemplatePackageTest.java", "license": "gpl-3.0", "size": 22064 }
[ "org.assertj.core.api.Java6Assertions", "redis.clients.jedis.Jedis" ]
import org.assertj.core.api.Java6Assertions; import redis.clients.jedis.Jedis;
import org.assertj.core.api.*; import redis.clients.jedis.*;
[ "org.assertj.core", "redis.clients.jedis" ]
org.assertj.core; redis.clients.jedis;
2,101,041
private HeartbeatResponse transmitHeartBeat(long now) throws IOException { // Send Counters in the status once every COUNTER_UPDATE_INTERVAL boolean sendCounters; if (now > (previousUpdate + COUNTER_UPDATE_INTERVAL)) { sendCounters = true; previousUpdate = now; } else { sendCount...
HeartbeatResponse function(long now) throws IOException { boolean sendCounters; if (now > (previousUpdate + COUNTER_UPDATE_INTERVAL)) { sendCounters = true; previousUpdate = now; } else { sendCounters = false; } synchronized (this) { status = new TaskTrackerStatus(taskTrackerName, localHostname, httpPort, cloneAndReset...
/** * Build and transmit the heart beat to the JobTracker * @param now current time * @return false if the tracker was unknown * @throws IOException */
Build and transmit the heart beat to the JobTracker
transmitHeartBeat
{ "repo_name": "ryanobjc/hadoop-cloudera", "path": "src/mapred/org/apache/hadoop/mapred/TaskTracker.java", "license": "apache-2.0", "size": 113404 }
[ "java.io.IOException", "org.apache.hadoop.metrics.MetricsException", "org.apache.hadoop.util.StringUtils" ]
import java.io.IOException; import org.apache.hadoop.metrics.MetricsException; import org.apache.hadoop.util.StringUtils;
import java.io.*; import org.apache.hadoop.metrics.*; import org.apache.hadoop.util.*;
[ "java.io", "org.apache.hadoop" ]
java.io; org.apache.hadoop;
1,935,972
// this is used in tests, when we want to override the default bundled plugins with .hpl versions if (System.getProperty("hudson.bundled.plugins") != null) { return Collections.emptySet(); } Set<String> names = new HashSet<String>(); for( String path : Util.fixNull((Set<Str...
if (System.getProperty(STR) != null) { return Collections.emptySet(); } Set<String> names = new HashSet<String>(); for( String path : Util.fixNull((Set<String>)hudson.servletContext.getResourcePaths(STR))) { String fileName = path.substring(path.lastIndexOf('/')+1); if(fileName.length()==0) { continue; } try { names.ad...
/** * If the war file has any "/WEB-INF/plugins/*.hpi", extract them into the plugin directory. * * @return * File names of the bundled plugins. Like {"ssh-slaves.hpi","subvesrion.hpi"} */
If the war file has any "/WEB-INF/plugins/*.hpi", extract them into the plugin directory
loadBundledPlugins
{ "repo_name": "sincere520/testGitRepo", "path": "hudson-core/src/main/java/hudson/LocalPluginManager.java", "license": "mit", "size": 3226 }
[ "java.io.IOException", "java.util.Collections", "java.util.HashSet", "java.util.Set", "java.util.logging.Level", "java.util.logging.Logger" ]
import java.io.IOException; import java.util.Collections; import java.util.HashSet; import java.util.Set; import java.util.logging.Level; import java.util.logging.Logger;
import java.io.*; import java.util.*; import java.util.logging.*;
[ "java.io", "java.util" ]
java.io; java.util;
1,626,370
private void buildSegmentList_nonRoot(List<Object> list) { // TODO get rid of this test if (!prefix.isRoot()) prefix.buildSegmentList_nonRoot(list); list.add(segment); }
void function(List<Object> list) { if (!prefix.isRoot()) prefix.buildSegmentList_nonRoot(list); list.add(segment); }
/** * Assumes this path is NOT root. * * @param list * The list to append to. Not null. */
Assumes this path is NOT root
buildSegmentList_nonRoot
{ "repo_name": "jehanson4/livedata", "path": "org.jehanson.livedata/src/org/jehanson/livedata/LDPath.java", "license": "epl-1.0", "size": 6020 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,200,609
private TableResult createTableResult(TablePrx table, String key, long id) throws DSAccessException { if (table == null) return null; try { key = "("+key+"==%d)"; long totalRowCount = table.getNumberOfRows(); long[] rows = table.getWhereList(String.format(key, id), null, 0, totalRowCount, 1L); ...
TableResult function(TablePrx table, String key, long id) throws DSAccessException { if (table == null) return null; try { key = "("+key+"==%d)"; long totalRowCount = table.getNumberOfRows(); long[] rows = table.getWhereList(String.format(key, id), null, 0, totalRowCount, 1L); return createTableResult(table, rows); } c...
/** * Transforms the passed table data for a given image. * * @param table The table to convert. * @param key The key of the <code>where</code> clause. * @param id The identifier of the object to retrieve rows for. * @return See above * @throws DSAccessException If an error occurred while trying to * ...
Transforms the passed table data for a given image
createTableResult
{ "repo_name": "jballanc/openmicroscopy", "path": "components/insight/SRC/org/openmicroscopy/shoola/env/data/OMEROGateway.java", "license": "gpl-2.0", "size": 286379 }
[ "org.openmicroscopy.shoola.env.data.model.TableResult" ]
import org.openmicroscopy.shoola.env.data.model.TableResult;
import org.openmicroscopy.shoola.env.data.model.*;
[ "org.openmicroscopy.shoola" ]
org.openmicroscopy.shoola;
2,598,101
private void ensureSortedByValue() { if (currentSortOrder != SORT_ORDER_BY_VALUE) { Collections.sort(samples, VALUE_COMPARATOR); currentSortOrder = SORT_ORDER_BY_VALUE; } } private static class Sample { public int index; public int weight; public float value; }
void function() { if (currentSortOrder != SORT_ORDER_BY_VALUE) { Collections.sort(samples, VALUE_COMPARATOR); currentSortOrder = SORT_ORDER_BY_VALUE; } } private static class Sample { public int index; public int weight; public float value; }
/** * Sort the samples by value, if not already. */
Sort the samples by value, if not already
ensureSortedByValue
{ "repo_name": "amirlotfi/Nikagram", "path": "app/src/main/java/ir/nikagram/messenger/exoplayer/util/SlidingPercentile.java", "license": "gpl-2.0", "size": 5134 }
[ "java.util.Collections" ]
import java.util.Collections;
import java.util.*;
[ "java.util" ]
java.util;
1,571,230
public void handleClick(int x, int y, PlotRenderingInfo info) { Rectangle2D dataArea = info.getDataArea(); if (dataArea.contains(x, y)) { for (int i = 0; i < this.subplots.size(); i++) { CategoryPlot subplot = (CategoryPlot) this.subplots.get(i); Pl...
void function(int x, int y, PlotRenderingInfo info) { Rectangle2D dataArea = info.getDataArea(); if (dataArea.contains(x, y)) { for (int i = 0; i < this.subplots.size(); i++) { CategoryPlot subplot = (CategoryPlot) this.subplots.get(i); PlotRenderingInfo subplotInfo = info.getSubplotInfo(i); subplot.handleClick(x, y, s...
/** * Handles a 'click' on the plot. * * @param x x-coordinate of the click. * @param y y-coordinate of the click. * @param info information about the plot's dimensions. * */
Handles a 'click' on the plot
handleClick
{ "repo_name": "apetresc/JFreeChart", "path": "src/main/java/org/jfree/chart/plot/CombinedDomainCategoryPlot.java", "license": "lgpl-2.1", "size": 24721 }
[ "java.awt.geom.Rectangle2D" ]
import java.awt.geom.Rectangle2D;
import java.awt.geom.*;
[ "java.awt" ]
java.awt;
1,568,447
public interface OnConsumeMultiFinishedListener { public void onConsumeMultiFinished(List<Purchase> purchases, List<IabResult> results); }
interface OnConsumeMultiFinishedListener { public void function(List<Purchase> purchases, List<IabResult> results); }
/** * Called to notify that a consumption of multiple items has finished. * * @param purchases The purchases that were (or were to be) consumed. * @param results The results of each consumption operation, corresponding to each * sku. */
Called to notify that a consumption of multiple items has finished
onConsumeMultiFinished
{ "repo_name": "StarIslandGames/ANE-In-App-Purchase", "path": "android/src/com/example/android/trivialdrivesample/util/IabHelper.java", "license": "apache-2.0", "size": 45048 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
26,349
@AtMostOnce String createSnapshot(String snapshotRoot, String snapshotName) throws IOException;
String createSnapshot(String snapshotRoot, String snapshotName) throws IOException;
/** * Create a snapshot. * @param snapshotRoot the path that is being snapshotted * @param snapshotName name of the snapshot created * @return the snapshot path. * @throws IOException */
Create a snapshot
createSnapshot
{ "repo_name": "apurtell/hadoop", "path": "hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/protocol/ClientProtocol.java", "license": "apache-2.0", "size": 71843 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
2,595,444
Optional<Achievement> getParent();
Optional<Achievement> getParent();
/** * Returns the parent of this achievement, if there is one. * * @return The parent of this achievement */
Returns the parent of this achievement, if there is one
getParent
{ "repo_name": "frogocomics/SpongeAPI", "path": "src/main/java/org/spongepowered/api/stats/achievement/Achievement.java", "license": "mit", "size": 2940 }
[ "com.google.common.base.Optional" ]
import com.google.common.base.Optional;
import com.google.common.base.*;
[ "com.google.common" ]
com.google.common;
123,178
@OverridingMethodsMustInvokeSuper void init(@Nonnull Parameters parameter);
void init(@Nonnull Parameters parameter);
/** * Init the Controller. You can assume that bind() has been called for all other controls on the screen. * * @param parameter this contains all attributes of the controlDefinition as well as attributes from the control tag * (where you actually placed the control). Please note that t...
Init the Controller. You can assume that bind() has been called for all other controls on the screen
init
{ "repo_name": "mkaring/nifty-gui", "path": "nifty-core/src/main/java/de/lessvoid/nifty/controls/Controller.java", "license": "bsd-2-clause", "size": 2739 }
[ "javax.annotation.Nonnull" ]
import javax.annotation.Nonnull;
import javax.annotation.*;
[ "javax.annotation" ]
javax.annotation;
2,518,002
public void setSide(final PortSide theside) { if (theside == null) { throw new NullPointerException(); } this.side = theside; }
void function(final PortSide theside) { if (theside == null) { throw new NullPointerException(); } this.side = theside; }
/** * Sets the node side on which the port is drawn. * * @param theside the side to set */
Sets the node side on which the port is drawn
setSide
{ "repo_name": "ExplorViz/ExplorViz", "path": "src-external/de/cau/cs/kieler/klay/layered/graph/LPort.java", "license": "apache-2.0", "size": 10850 }
[ "de.cau.cs.kieler.kiml.options.PortSide" ]
import de.cau.cs.kieler.kiml.options.PortSide;
import de.cau.cs.kieler.kiml.options.*;
[ "de.cau.cs" ]
de.cau.cs;
1,245,677
HoverAction.ShowText createShowText(Message<?> text);
HoverAction.ShowText createShowText(Message<?> text);
/** * Creates a new * {@link org.spongepowered.api.text.action.HoverAction.ShowText} instance * that will show text when it is hovered. * * @param text The message to show * @return The created hover action instance */
Creates a new <code>org.spongepowered.api.text.action.HoverAction.ShowText</code> instance that will show text when it is hovered
createShowText
{ "repo_name": "Fozie/SpongeAPI", "path": "src/main/java/org/spongepowered/api/text/action/TextActionFactory.java", "license": "mit", "size": 4370 }
[ "org.spongepowered.api.text.message.Message" ]
import org.spongepowered.api.text.message.Message;
import org.spongepowered.api.text.message.*;
[ "org.spongepowered.api" ]
org.spongepowered.api;
1,632,998
private static void sanitizeRadioControls(FormElement form) { Map<String, Element> controlsByName = new HashMap<String, Element>(); for (Element control : form.elements()) { // cannot use Element.select since Element.hashCode collapses like elements if ("radio".equals(control.attr("type")) && control...
static void function(FormElement form) { Map<String, Element> controlsByName = new HashMap<String, Element>(); for (Element control : form.elements()) { if ("radio".equals(control.attr("type")) && control.hasAttr(STR)) { String name = control.attr("name"); if (controlsByName.containsKey(name)) { controlsByName.get(name...
/** * Ensures that radio controls are mutually exclusive within control groups. */
Ensures that radio controls are mutually exclusive within control groups
sanitizeRadioControls
{ "repo_name": "markhobson/microbrowser", "path": "jsoup/src/main/java/org/hobsoft/microbrowser/jsoup/JsoupMicrodataDocument.java", "license": "apache-2.0", "size": 6937 }
[ "java.util.HashMap", "java.util.Map", "org.jsoup.nodes.Element", "org.jsoup.nodes.FormElement" ]
import java.util.HashMap; import java.util.Map; import org.jsoup.nodes.Element; import org.jsoup.nodes.FormElement;
import java.util.*; import org.jsoup.nodes.*;
[ "java.util", "org.jsoup.nodes" ]
java.util; org.jsoup.nodes;
567,008
@ServiceMethod(returns = ReturnType.SINGLE) private Mono<ComputePolicyInner> createOrUpdateAsync( String resourceGroupName, String accountName, String computePolicyName, CreateOrUpdateComputePolicyParameters parameters) { return createOrUpdateWithResponseAsync(resourceGro...
@ServiceMethod(returns = ReturnType.SINGLE) Mono<ComputePolicyInner> function( String resourceGroupName, String accountName, String computePolicyName, CreateOrUpdateComputePolicyParameters parameters) { return createOrUpdateWithResponseAsync(resourceGroupName, accountName, computePolicyName, parameters) .flatMap( (Resp...
/** * Creates or updates the specified compute policy. During update, the compute policy with the specified name will * be replaced with this new compute policy. An account supports, at most, 50 policies. * * @param resourceGroupName The name of the Azure resource group. * @param accountName Th...
Creates or updates the specified compute policy. During update, the compute policy with the specified name will be replaced with this new compute policy. An account supports, at most, 50 policies
createOrUpdateAsync
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/implementation/ComputePoliciesClientImpl.java", "license": "mit", "size": 57622 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.http.rest.Response", "com.azure.resourcemanager.datalakeanalytics.fluent.models.ComputePolicyInner", "com.azure.resourcemanager.datalakeanalytics.models.CreateOrUpdateComputePolicyParameters" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.Response; import com.azure.resourcemanager.datalakeanalytics.fluent.models.ComputePolicyInner; import com.azure.resourcemanager.datalakeanalytics.models.CreateOrUpdateComputePolicyParameters;
import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.resourcemanager.datalakeanalytics.fluent.models.*; import com.azure.resourcemanager.datalakeanalytics.models.*;
[ "com.azure.core", "com.azure.resourcemanager" ]
com.azure.core; com.azure.resourcemanager;
890,460
public NamingEnumeration<NameClassPair> list(String name) throws NamingException { return list_common(convertNameFromStringForm(name), NAME_CLASS_SWT); }
NamingEnumeration<NameClassPair> function(String name) throws NamingException { return list_common(convertNameFromStringForm(name), NAME_CLASS_SWT); }
/** * Lists all names along with corresponding class names contained by given * context. * * @param name * context name to list * @return enumeration of <code>NameClassPair</code> objects * @throws NamingException * if an error was encountered ...
Lists all names along with corresponding class names contained by given context
list
{ "repo_name": "skyHALud/codenameone", "path": "Ports/iOSPort/xmlvm/apache-harmony-6.0-src-r991881/classlib/modules/jndi/src/main/java/org/apache/harmony/jndi/provider/dns/DNSContext.java", "license": "gpl-2.0", "size": 84425 }
[ "javax.naming.NameClassPair", "javax.naming.NamingEnumeration", "javax.naming.NamingException" ]
import javax.naming.NameClassPair; import javax.naming.NamingEnumeration; import javax.naming.NamingException;
import javax.naming.*;
[ "javax.naming" ]
javax.naming;
2,908,418
User findByEmail(String email);
User findByEmail(String email);
/** * Fetches user by given email. * * @param email email to fetch user * @return user or null */
Fetches user by given email
findByEmail
{ "repo_name": "wildpascal/SWUser", "path": "src/main/java/com/sw/user/dao/UserDao.java", "license": "mit", "size": 988 }
[ "com.sw.user.model.User" ]
import com.sw.user.model.User;
import com.sw.user.model.*;
[ "com.sw.user" ]
com.sw.user;
1,599,082
public static Future<Double> retrieveXPathQueryAggregateAsyncDouble(IContext context, String xpathQuery) { return component.core().retrieveXPathQueryAggregateAsyncDouble(context, xpathQuery); }
static Future<Double> function(IContext context, String xpathQuery) { return component.core().retrieveXPathQueryAggregateAsyncDouble(context, xpathQuery); }
/** * Retrieves long value based on the given query (query should have an aggregate function as root element) * @param context * @param xpathQuery * @return returns Future object for action control and return of action result */
Retrieves long value based on the given query (query should have an aggregate function as root element)
retrieveXPathQueryAggregateAsyncDouble
{ "repo_name": "mendix/circle-diagram-widget", "path": "test/javasource/com/mendix/core/Core.java", "license": "apache-2.0", "size": 76608 }
[ "com.mendix.systemwideinterfaces.core.IContext", "java.util.concurrent.Future" ]
import com.mendix.systemwideinterfaces.core.IContext; import java.util.concurrent.Future;
import com.mendix.systemwideinterfaces.core.*; import java.util.concurrent.*;
[ "com.mendix.systemwideinterfaces", "java.util" ]
com.mendix.systemwideinterfaces; java.util;
1,494,585
@Override public String getDefault() { OdfElement parentElement = (OdfElement)getOwnerElement(); String defaultValue = null; if (parentElement != null) { defaultValue=DEFAULT_VALUE; } return defaultValue; }
String function() { OdfElement parentElement = (OdfElement)getOwnerElement(); String defaultValue = null; if (parentElement != null) { defaultValue=DEFAULT_VALUE; } return defaultValue; }
/** * Returns the default value of {@odf.attribute table:use-first-column-styles}. * * @return the default value as <code>String</code> dependent of its element name * return <code>null</code> if the default value does not exist */
Returns the default value of
getDefault
{ "repo_name": "jbjonesjr/geoproponis", "path": "external/odfdom-java-0.8.10-incubating-sources/org/odftoolkit/odfdom/dom/attribute/table/TableUseFirstColumnStylesAttribute.java", "license": "gpl-2.0", "size": 3840 }
[ "org.odftoolkit.odfdom.pkg.OdfElement" ]
import org.odftoolkit.odfdom.pkg.OdfElement;
import org.odftoolkit.odfdom.pkg.*;
[ "org.odftoolkit.odfdom" ]
org.odftoolkit.odfdom;
1,623,684
private void buildReplacementNodesFromTranslation(MsgNode msg, SoyMsg translation) { currReplacementNodes = Lists.newArrayList(); for (SoyMsgPart msgPart : translation.getParts()) { if (msgPart instanceof SoyMsgRawTextPart) { // Append a new RawTextNode to the currReplacementNodes list. ...
void function(MsgNode msg, SoyMsg translation) { currReplacementNodes = Lists.newArrayList(); for (SoyMsgPart msgPart : translation.getParts()) { if (msgPart instanceof SoyMsgRawTextPart) { String rawText = ((SoyMsgRawTextPart) msgPart).getRawText(); currReplacementNodes.add( new RawTextNode(nodeIdGen.genId(), rawText,...
/** * Private helper for visitMsgFallbackGroupNode() to build the list of replacement nodes for a * message from its translation. */
Private helper for visitMsgFallbackGroupNode() to build the list of replacement nodes for a message from its translation
buildReplacementNodesFromTranslation
{ "repo_name": "yext/closure-templates", "path": "java/src/com/google/template/soy/msgs/internal/InsertMsgsVisitor.java", "license": "apache-2.0", "size": 9856 }
[ "com.google.common.collect.Lists", "com.google.template.soy.base.SourceLocation", "com.google.template.soy.msgs.restricted.SoyMsg", "com.google.template.soy.msgs.restricted.SoyMsgPart", "com.google.template.soy.msgs.restricted.SoyMsgPlaceholderPart", "com.google.template.soy.msgs.restricted.SoyMsgRawTextP...
import com.google.common.collect.Lists; import com.google.template.soy.base.SourceLocation; import com.google.template.soy.msgs.restricted.SoyMsg; import com.google.template.soy.msgs.restricted.SoyMsgPart; import com.google.template.soy.msgs.restricted.SoyMsgPlaceholderPart; import com.google.template.soy.msgs.restrict...
import com.google.common.collect.*; import com.google.template.soy.base.*; import com.google.template.soy.msgs.restricted.*; import com.google.template.soy.soytree.*;
[ "com.google.common", "com.google.template" ]
com.google.common; com.google.template;
2,287,916
public void setElement(final DefaultTelephone metadata) { this.metadata = metadata; }
void function(final DefaultTelephone metadata) { this.metadata = metadata; }
/** * Invoked by JAXB at unmarshalling time for storing the result temporarily. * * @param metadata the unmarshalled metadata. */
Invoked by JAXB at unmarshalling time for storing the result temporarily
setElement
{ "repo_name": "Geomatys/sis", "path": "core/sis-metadata/src/main/java/org/apache/sis/internal/jaxb/metadata/CI_Telephone.java", "license": "apache-2.0", "size": 3159 }
[ "org.apache.sis.metadata.iso.citation.DefaultTelephone" ]
import org.apache.sis.metadata.iso.citation.DefaultTelephone;
import org.apache.sis.metadata.iso.citation.*;
[ "org.apache.sis" ]
org.apache.sis;
2,839,069
public Optional<DottedVersion> getXcodeVersion() { return xcodeVersion; }
Optional<DottedVersion> function() { return xcodeVersion; }
/** * Returns the xcode version, or {@link Optional#absent} if the xcode version is unknown. */
Returns the xcode version, or <code>Optional#absent</code> if the xcode version is unknown
getXcodeVersion
{ "repo_name": "mikelikespie/bazel", "path": "src/main/java/com/google/devtools/build/lib/rules/apple/XcodeVersionProperties.java", "license": "apache-2.0", "size": 5752 }
[ "com.google.common.base.Optional" ]
import com.google.common.base.Optional;
import com.google.common.base.*;
[ "com.google.common" ]
com.google.common;
2,295,711
public void checkRole(CmsRequestContext context, CmsRole role) throws CmsRoleViolationException { CmsDbContext dbc = m_dbContextFactory.getDbContext(context); try { checkRole(dbc, role); } finally { dbc.clear(); } }
void function(CmsRequestContext context, CmsRole role) throws CmsRoleViolationException { CmsDbContext dbc = m_dbContextFactory.getDbContext(context); try { checkRole(dbc, role); } finally { dbc.clear(); } }
/** * Checks if the user of the current context has permissions to impersonate the given role.<p> * * If the organizational unit is <code>null</code>, this method will check if the * given user has the given role for at least one organizational unit.<p> * * @param context the cur...
Checks if the user of the current context has permissions to impersonate the given role. If the organizational unit is <code>null</code>, this method will check if the given user has the given role for at least one organizational unit
checkRole
{ "repo_name": "comundus/opencms-comundus", "path": "src/main/java/org/opencms/db/CmsSecurityManager.java", "license": "lgpl-2.1", "size": 242914 }
[ "org.opencms.file.CmsRequestContext", "org.opencms.security.CmsRole", "org.opencms.security.CmsRoleViolationException" ]
import org.opencms.file.CmsRequestContext; import org.opencms.security.CmsRole; import org.opencms.security.CmsRoleViolationException;
import org.opencms.file.*; import org.opencms.security.*;
[ "org.opencms.file", "org.opencms.security" ]
org.opencms.file; org.opencms.security;
1,940,017
public Consumer<ValuesSourceRegistry.Builder> getAggregatorRegistrar() { return aggregatorRegistrar; }
Consumer<ValuesSourceRegistry.Builder> function() { return aggregatorRegistrar; }
/** * Get the function to register the {@link org.elasticsearch.search.aggregations.support.ValuesSource} to aggregator mappings for * this aggregation */
Get the function to register the <code>org.elasticsearch.search.aggregations.support.ValuesSource</code> to aggregator mappings for this aggregation
getAggregatorRegistrar
{ "repo_name": "robin13/elasticsearch", "path": "server/src/main/java/org/elasticsearch/plugins/SearchPlugin.java", "license": "apache-2.0", "size": 26277 }
[ "java.util.function.Consumer", "org.elasticsearch.search.aggregations.support.ValuesSourceRegistry" ]
import java.util.function.Consumer; import org.elasticsearch.search.aggregations.support.ValuesSourceRegistry;
import java.util.function.*; import org.elasticsearch.search.aggregations.support.*;
[ "java.util", "org.elasticsearch.search" ]
java.util; org.elasticsearch.search;
2,878,163
public boolean isButtonForSitePresent(String siteName, ButtonType button) { try { findButtonForSite(siteName, button.getValue()); return true; } catch (PageException e) { return false; } }
boolean function(String siteName, ButtonType button) { try { findButtonForSite(siteName, button.getValue()); return true; } catch (PageException e) { return false; } }
/** * Checks weather button is present for a given site name. * * @param siteName * @param button * @return */
Checks weather button is present for a given site name
isButtonForSitePresent
{ "repo_name": "loftuxab/community-edition-old", "path": "projects/share-po/src/main/java/org/alfresco/po/share/site/SiteFinderPage.java", "license": "lgpl-3.0", "size": 15774 }
[ "org.alfresco.webdrone.exception.PageException" ]
import org.alfresco.webdrone.exception.PageException;
import org.alfresco.webdrone.exception.*;
[ "org.alfresco.webdrone" ]
org.alfresco.webdrone;
956,079
protected void simpleTest() { try { Ignite srv = startGrid("server"); Ignite client = startClientGrid("client"); awaitPartitionMapExchange(); assertEquals(2, srv.cluster().nodes().size()); assertEquals(2, client.cluster().nodes().size()); ...
void function() { try { Ignite srv = startGrid(STR); Ignite client = startClientGrid(STR); awaitPartitionMapExchange(); assertEquals(2, srv.cluster().nodes().size()); assertEquals(2, client.cluster().nodes().size()); assertTrue(connCnt.get() >= 2); srv.getOrCreateCache(DEFAULT_CACHE_NAME).put(1, 1); assertEquals(1, cli...
/** * Some simple sanity check with the Server and Client * It is expected that both client and server could successfully perform Discovery Procedure when there is * unknown (test) server in the ipFinder list. */
Some simple sanity check with the Server and Client It is expected that both client and server could successfully perform Discovery Procedure when there is unknown (test) server in the ipFinder list
simpleTest
{ "repo_name": "ascherbakoff/ignite", "path": "modules/core/src/test/java/org/apache/ignite/spi/discovery/tcp/TcpDiscoveryWithWrongServerTest.java", "license": "apache-2.0", "size": 11458 }
[ "org.apache.ignite.Ignite" ]
import org.apache.ignite.Ignite;
import org.apache.ignite.*;
[ "org.apache.ignite" ]
org.apache.ignite;
2,333,280
public static boolean loadPendingToCurrent(Context context) { // retrieve the preference pending RCPreference prefPending = getRCPreference(context); prefPending.setPendingMode(true); // retrieve all data from the pending preference Map<String, ?> mapPrefPending = prefPendin...
static boolean function(Context context) { RCPreference prefPending = getRCPreference(context); prefPending.setPendingMode(true); Map<String, ?> mapPrefPending = prefPending.getSP().getAll(); if (mapPrefPending != null && mapPrefPending.size() > 0) { Set<String> set = mapPrefPending.keySet(); RCEditor editorPrefNow = g...
/** * Load pending data to store it on current data * * @param context * A context to retrieve the preference data * @return true if some data has been retrieve and store to the current preference */
Load pending data to store it on current data
loadPendingToCurrent
{ "repo_name": "StanKocken/RCPreference", "path": "src/com/skocken/rclibrary/RCPreference.java", "license": "apache-2.0", "size": 24424 }
[ "android.content.Context", "java.util.Map", "java.util.Set" ]
import android.content.Context; import java.util.Map; import java.util.Set;
import android.content.*; import java.util.*;
[ "android.content", "java.util" ]
android.content; java.util;
744,921
//@snippet-start FlowShop_4 @Override public Result execute() { int[] timeMachine = new int[fs.nbMachine]; long time = System.currentTimeMillis(); long nbPerm = 1; // int[] cutbacks = new int[fs.jobs.length]; int nbLoop = 0; int theLastJobFixed = curr...
Result function() { int[] timeMachine = new int[fs.nbMachine]; long time = System.currentTimeMillis(); long nbPerm = 1; int nbLoop = 0; int theLastJobFixed = currentPerm[depth - 1]; boolean mustSplit = ((depth < 2) && ((currentPerm.length - depth) > 2)); if (com) { this.bestKnownSolution = fsr; r.setSolution(fsr); this...
/** * Explore all permutation between currentPerm and lastPerm. May decide * also to split in sub Task. * * @see org.objectweb.proactive.extra.branchnbound.core.Task#execute() */
Explore all permutation between currentPerm and lastPerm. May decide also to split in sub Task
execute
{ "repo_name": "nmpgaspar/PainlessProActive", "path": "src/Examples/org/objectweb/proactive/examples/flowshop/FlowShopTask.java", "license": "agpl-3.0", "size": 16856 }
[ "org.objectweb.proactive.api.PAActiveObject", "org.objectweb.proactive.extra.branchnbound.core.Result" ]
import org.objectweb.proactive.api.PAActiveObject; import org.objectweb.proactive.extra.branchnbound.core.Result;
import org.objectweb.proactive.api.*; import org.objectweb.proactive.extra.branchnbound.core.*;
[ "org.objectweb.proactive" ]
org.objectweb.proactive;
306,816
public List<? extends Coder<?>> getComponents() { List<? extends Coder<?>> coderArguments = getCoderArguments(); if (coderArguments == null) { return Collections.emptyList(); } else { return coderArguments; } } /** * {@inheritDoc}
List<? extends Coder<?>> function() { List<? extends Coder<?>> coderArguments = getCoderArguments(); if (coderArguments == null) { return Collections.emptyList(); } else { return coderArguments; } } /** * {@inheritDoc}
/** * Returns the list of {@link Coder Coders} that are components of this {@link Coder}. */
Returns the list of <code>Coder Coders</code> that are components of this <code>Coder</code>
getComponents
{ "repo_name": "axbaretto/beam", "path": "sdks/java/core/src/main/java/org/apache/beam/sdk/coders/StandardCoder.java", "license": "apache-2.0", "size": 9169 }
[ "java.util.Collections", "java.util.List" ]
import java.util.Collections; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,596,175
static String[] getParts(String mimeType) { return mimeType.split("/"); } // Reset title if we see non-standard HTTP header "Content-Disposition". // It's a good indication that content provider wants filename therein // be used as the title of this url. // Patterns used to extract filename from possi...
static String[] getParts(String mimeType) { return mimeType.split("/"); } private PatternMatcher matcher = new Perl5Matcher(); private Configuration conf; static Perl5Pattern patterns[] = { null, null }; static { Perl5Compiler compiler = new Perl5Compiler(); try { patterns[0] = (Perl5Pattern) compiler .compile(STR](.+)...
/** * Utility method for splitting mime type into type and subtype. * * @param mimeType * @return */
Utility method for splitting mime type into type and subtype
getParts
{ "repo_name": "supermy/nutch2", "path": "src/plugin/index-more/src/java/org/apache/nutch/indexer/more/MoreIndexingFilter.java", "license": "apache-2.0", "size": 9311 }
[ "org.apache.hadoop.conf.Configuration", "org.apache.oro.text.regex.MalformedPatternException", "org.apache.oro.text.regex.PatternMatcher", "org.apache.oro.text.regex.Perl5Compiler", "org.apache.oro.text.regex.Perl5Matcher", "org.apache.oro.text.regex.Perl5Pattern" ]
import org.apache.hadoop.conf.Configuration; import org.apache.oro.text.regex.MalformedPatternException; import org.apache.oro.text.regex.PatternMatcher; import org.apache.oro.text.regex.Perl5Compiler; import org.apache.oro.text.regex.Perl5Matcher; import org.apache.oro.text.regex.Perl5Pattern;
import org.apache.hadoop.conf.*; import org.apache.oro.text.regex.*;
[ "org.apache.hadoop", "org.apache.oro" ]
org.apache.hadoop; org.apache.oro;
1,605,469
public ManagedPrivateEndpointsClient getManagedPrivateEndpoints() { return this.managedPrivateEndpoints; } private final DatabasePrincipalAssignmentsClient databasePrincipalAssignments;
ManagedPrivateEndpointsClient function() { return this.managedPrivateEndpoints; } private final DatabasePrincipalAssignmentsClient databasePrincipalAssignments;
/** * Gets the ManagedPrivateEndpointsClient object to access its operations. * * @return the ManagedPrivateEndpointsClient object. */
Gets the ManagedPrivateEndpointsClient object to access its operations
getManagedPrivateEndpoints
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/KustoManagementClientImpl.java", "license": "mit", "size": 17273 }
[ "com.azure.resourcemanager.kusto.fluent.DatabasePrincipalAssignmentsClient", "com.azure.resourcemanager.kusto.fluent.ManagedPrivateEndpointsClient" ]
import com.azure.resourcemanager.kusto.fluent.DatabasePrincipalAssignmentsClient; import com.azure.resourcemanager.kusto.fluent.ManagedPrivateEndpointsClient;
import com.azure.resourcemanager.kusto.fluent.*;
[ "com.azure.resourcemanager" ]
com.azure.resourcemanager;
2,370,626
public BasicType getColumnType() { if (!this.isMatrix()) { throw new UnsupportedOperationException( "Type" + this.toString() + " does not have a column type"); } if (Arrays.asList(BasicType.MAT2X2, BasicType.MAT3X2, BasicType.MAT4X2).contains(this)) { return VEC2; } if (Array...
BasicType function() { if (!this.isMatrix()) { throw new UnsupportedOperationException( "Type" + this.toString() + STR); } if (Arrays.asList(BasicType.MAT2X2, BasicType.MAT3X2, BasicType.MAT4X2).contains(this)) { return VEC2; } if (Arrays.asList(BasicType.MAT2X3, BasicType.MAT3X3, BasicType.MAT4X3).contains(this)) { re...
/** * Determines the vector type of the columns in the matrix. For example, accessing a column of a * mat2x2 would give you a variable of type vec2. Can only be invoked on a matrix type. * * @return the type that represents that the matrix type has. * @throws UnsupportedOperationException if the type is ...
Determines the vector type of the columns in the matrix. For example, accessing a column of a mat2x2 would give you a variable of type vec2. Can only be invoked on a matrix type
getColumnType
{ "repo_name": "google/graphicsfuzz", "path": "ast/src/main/java/com/graphicsfuzz/common/ast/type/BasicType.java", "license": "apache-2.0", "size": 15821 }
[ "java.util.Arrays" ]
import java.util.Arrays;
import java.util.*;
[ "java.util" ]
java.util;
1,030,226
protected SenderTask newSenderTask(final Semaphore semaphore) { final SenderTask task = new SenderTask(new CanalStreet(this, semaphore)); task.setMessageStore(messageStore); task.setReportManager(reportManager); task.setSenderManager(messageSenderManager); task.setValidationManager(val...
SenderTask function(final Semaphore semaphore) { final SenderTask task = new SenderTask(new CanalStreet(this, semaphore)); task.setMessageStore(messageStore); task.setReportManager(reportManager); task.setSenderManager(messageSenderManager); task.setValidationManager(validationManager); task.setSequenceManager(sequence...
/** * Gets a new instance of a {@link org.perfcake.message.generator.SenderTask}. * The provided semaphore can be used to control parallel execution of sender tasks in multiple threads. * * @param semaphore * Semaphore that will be released upon completion of the sender task. Can be null. ...
Gets a new instance of a <code>org.perfcake.message.generator.SenderTask</code>. The provided semaphore can be used to control parallel execution of sender tasks in multiple threads
newSenderTask
{ "repo_name": "vjuranek/PerfCake", "path": "perfcake/src/main/java/org/perfcake/message/generator/AbstractMessageGenerator.java", "license": "apache-2.0", "size": 8224 }
[ "java.util.concurrent.Semaphore" ]
import java.util.concurrent.Semaphore;
import java.util.concurrent.*;
[ "java.util" ]
java.util;
694,602
public static String getDataTypeNameFromClass(Class<?> c, boolean highlightNameSpaces) { if (c.equals(Object.class)) { return "unknown"; } else if (c.equals(String.class)) { return "string"; } else if (c.equals(Integer.class)) { return "int"; } else if (c.equals(Boolean.class)) { ...
static String function(Class<?> c, boolean highlightNameSpaces) { if (c.equals(Object.class)) { return STR; } else if (c.equals(String.class)) { return STR; } else if (c.equals(Integer.class)) { return "int"; } else if (c.equals(Boolean.class)) { return "bool"; } else if (c.equals(Void.TYPE) c.equals(Runtime.NoneType.c...
/** * Returns a pretty name for the datatype equivalent of class 'c' in the Build language. * @param highlightNameSpaces Determines whether the result should also contain a special comment * when the given class identifies a Skylark name space. */
Returns a pretty name for the datatype equivalent of class 'c' in the Build language
getDataTypeNameFromClass
{ "repo_name": "wakashige/bazel", "path": "src/main/java/com/google/devtools/build/lib/syntax/EvalUtils.java", "license": "apache-2.0", "size": 16574 }
[ "com.google.devtools.build.lib.collect.nestedset.NestedSet", "java.util.List", "java.util.Map" ]
import com.google.devtools.build.lib.collect.nestedset.NestedSet; import java.util.List; import java.util.Map;
import com.google.devtools.build.lib.collect.nestedset.*; import java.util.*;
[ "com.google.devtools", "java.util" ]
com.google.devtools; java.util;
32,565
protected void matchOne(MemoryFactory.Memory<E> rows, PartitionState<E> partitionState, Consumer<PartialMatch<E>> resultMatches) { List<PartialMatch<E>> matches = matchOneWithSymbols(rows, partitionState); for (PartialMatch<E> pm : matches) { resultMatches.accept(pm); } }
void function(MemoryFactory.Memory<E> rows, PartitionState<E> partitionState, Consumer<PartialMatch<E>> resultMatches) { List<PartialMatch<E>> matches = matchOneWithSymbols(rows, partitionState); for (PartialMatch<E> pm : matches) { resultMatches.accept(pm); } }
/** * Feeds a single input row into the given partition state, * and writes the resulting output rows (if any). * This method ignores the symbols that caused a transition. */
Feeds a single input row into the given partition state, and writes the resulting output rows (if any). This method ignores the symbols that caused a transition
matchOne
{ "repo_name": "googleinterns/calcite", "path": "core/src/main/java/org/apache/calcite/runtime/Matcher.java", "license": "apache-2.0", "size": 11850 }
[ "java.util.List", "java.util.function.Consumer", "org.apache.calcite.linq4j.MemoryFactory" ]
import java.util.List; import java.util.function.Consumer; import org.apache.calcite.linq4j.MemoryFactory;
import java.util.*; import java.util.function.*; import org.apache.calcite.linq4j.*;
[ "java.util", "org.apache.calcite" ]
java.util; org.apache.calcite;
1,481,923
public String getSensorRecordValue(String deviceId, String sensorName) throws DeviceControllerException { DeviceRecord deviceRecord = deviceRecords.get(deviceId); if (deviceRecord != null) { SensorRecord sensorRecord = deviceRecord.getSensorDataList().get(sensorName); if (sen...
String function(String deviceId, String sensorName) throws DeviceControllerException { DeviceRecord deviceRecord = deviceRecords.get(deviceId); if (deviceRecord != null) { SensorRecord sensorRecord = deviceRecord.getSensorDataList().get(sensorName); if (sensorRecord != null) { return sensorRecord.getSensorValue(); } th...
/** * Returns last updated sensor value for a device's sensor * * @param deviceId * @param sensorName * @return sensor reading */
Returns last updated sensor value for a device's sensor
getSensorRecordValue
{ "repo_name": "wso2-incubator/iot-server-extensions", "path": "components/iotserver-mgt/org.wso2.carbon.device.mgt.iot.common/src/main/java/org/wso2/carbon/device/mgt/iot/common/sensormgt/SensorDataManager.java", "license": "apache-2.0", "size": 5190 }
[ "org.wso2.carbon.device.mgt.iot.common.exception.DeviceControllerException" ]
import org.wso2.carbon.device.mgt.iot.common.exception.DeviceControllerException;
import org.wso2.carbon.device.mgt.iot.common.exception.*;
[ "org.wso2.carbon" ]
org.wso2.carbon;
1,354,732
private void createFileInfoFromItemStream(FileItemStream itemStream, File file) { // gather attributes from file upload stream. String fileName = itemStream.getName(); String fieldName = itemStream.getFieldName(); // create internal structure FileInfo fileInfo = new FileInfo(...
void function(FileItemStream itemStream, File file) { String fileName = itemStream.getName(); String fieldName = itemStream.getFieldName(); FileInfo fileInfo = new FileInfo(file, itemStream.getContentType(), fileName); if (!fileInfos.containsKey(fieldName)) { List<FileInfo> infos = new ArrayList<FileInfo>(); infos.add(...
/** * Creates an internal <code>FileInfo</code> structure used to pass information * to the <code>FileUploadInterceptor</code> during the interceptor stack * invocation process. * * @param itemStream * @param file */
Creates an internal <code>FileInfo</code> structure used to pass information to the <code>FileUploadInterceptor</code> during the interceptor stack invocation process
createFileInfoFromItemStream
{ "repo_name": "TheTypoMaster/struts-2.3.24", "path": "src/core/src/main/java/org/apache/struts2/dispatcher/multipart/JakartaStreamMultiPartRequest.java", "license": "apache-2.0", "size": 19694 }
[ "java.io.File", "java.util.ArrayList", "java.util.List", "org.apache.commons.fileupload.FileItemStream" ]
import java.io.File; import java.util.ArrayList; import java.util.List; import org.apache.commons.fileupload.FileItemStream;
import java.io.*; import java.util.*; import org.apache.commons.fileupload.*;
[ "java.io", "java.util", "org.apache.commons" ]
java.io; java.util; org.apache.commons;
977,599
public DataLakeFileSystemClientBuilder endpoint(String endpoint) { // Ensure endpoint provided is dfs endpoint endpoint = DataLakeImplUtils.endpointToDesiredEndpoint(endpoint, "dfs", "blob"); blobContainerClientBuilder.endpoint(DataLakeImplUtils.endpointToDesiredEndpoint(endpoint, "blob", "d...
DataLakeFileSystemClientBuilder function(String endpoint) { endpoint = DataLakeImplUtils.endpointToDesiredEndpoint(endpoint, "dfs", "blob"); blobContainerClientBuilder.endpoint(DataLakeImplUtils.endpointToDesiredEndpoint(endpoint, "blob", "dfs")); try { URL url = new URL(endpoint); BlobUrlParts parts = BlobUrlParts.par...
/** * Sets the service endpoint, additionally parses it for information (SAS token, file system name) * * @param endpoint URL of the service * @return the updated DataLakeFileSystemClientBuilder object * @throws IllegalArgumentException If {@code endpoint} is {@code null} or is a malformed URL....
Sets the service endpoint, additionally parses it for information (SAS token, file system name)
endpoint
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeFileSystemClientBuilder.java", "license": "mit", "size": 14921 }
[ "com.azure.core.util.CoreUtils", "com.azure.storage.blob.BlobUrlParts", "com.azure.storage.file.datalake.implementation.util.BuilderHelper", "com.azure.storage.file.datalake.implementation.util.DataLakeImplUtils", "java.net.MalformedURLException" ]
import com.azure.core.util.CoreUtils; import com.azure.storage.blob.BlobUrlParts; import com.azure.storage.file.datalake.implementation.util.BuilderHelper; import com.azure.storage.file.datalake.implementation.util.DataLakeImplUtils; import java.net.MalformedURLException;
import com.azure.core.util.*; import com.azure.storage.blob.*; import com.azure.storage.file.datalake.implementation.util.*; import java.net.*;
[ "com.azure.core", "com.azure.storage", "java.net" ]
com.azure.core; com.azure.storage; java.net;
1,397,018
@Test @OAuth2ContextConfiguration(FormClientCredentials.class) public void testPostForTokenWithForm() throws Exception { OAuth2AccessToken token = context.getAccessToken(); assertNull(token.getRefreshToken()); }
@OAuth2ContextConfiguration(FormClientCredentials.class) void function() throws Exception { OAuth2AccessToken token = context.getAccessToken(); assertNull(token.getRefreshToken()); }
/** * tests the basic provider */
tests the basic provider
testPostForTokenWithForm
{ "repo_name": "bnguyen82/stuff-projects", "path": "oauth-samples/oauth2/sparklr/src/test/java/org/springframework/security/oauth2/provider/TestClientCredentialsProvider.java", "license": "mit", "size": 5518 }
[ "org.junit.Assert", "org.springframework.security.oauth2.client.test.OAuth2ContextConfiguration", "org.springframework.security.oauth2.common.OAuth2AccessToken" ]
import org.junit.Assert; import org.springframework.security.oauth2.client.test.OAuth2ContextConfiguration; import org.springframework.security.oauth2.common.OAuth2AccessToken;
import org.junit.*; import org.springframework.security.oauth2.client.test.*; import org.springframework.security.oauth2.common.*;
[ "org.junit", "org.springframework.security" ]
org.junit; org.springframework.security;
2,042,150
for (int i = 0; i < commands.length; i++) { actions[i] = new TexInsertMathSymbolAction(commands[i]); } } public TexEditorActionContributor() { super(); greekSmall = new TexInsertMathSymbolAction[TexCommandContainer.greekSmall.length]; greekCapital = new TexInsertMath...
for (int i = 0; i < commands.length; i++) { actions[i] = new TexInsertMathSymbolAction(commands[i]); } } TexEditorActionContributor() { super(); greekSmall = new TexInsertMathSymbolAction[TexCommandContainer.greekSmall.length]; greekCapital = new TexInsertMathSymbolAction[TexCommandContainer.greekCapital.length]; arrow...
/** * Fills the actions array with the TexCommandEntries from commands * * @param actions * @param commands */
Fills the actions array with the TexCommandEntries from commands
createMathActions
{ "repo_name": "rondiplomatico/texlipse", "path": "source/net/sourceforge/texlipse/editor/TexEditorActionContributor.java", "license": "epl-1.0", "size": 6064 }
[ "net.sourceforge.texlipse.actions.TexInsertMathSymbolAction", "net.sourceforge.texlipse.model.TexCommandContainer" ]
import net.sourceforge.texlipse.actions.TexInsertMathSymbolAction; import net.sourceforge.texlipse.model.TexCommandContainer;
import net.sourceforge.texlipse.actions.*; import net.sourceforge.texlipse.model.*;
[ "net.sourceforge.texlipse" ]
net.sourceforge.texlipse;
1,248,445
public void link(final CCTask task, final File outputFile, final String[] sourceFiles, final CommandLineLinkerConfiguration config) { // // delete any existing library outputFile.delete(); // // build a new library super.link(task, out...
void function(final CCTask task, final File outputFile, final String[] sourceFiles, final CommandLineLinkerConfiguration config) { outputFile.delete(); super.link(task, outputFile, sourceFiles, config); }
/** * Builds a library. * @param task task * @param outputFile generated library * @param sourceFiles object files * @param config linker configuration */
Builds a library
link
{ "repo_name": "dscho/cpptasks", "path": "src/main/java/net/sf/antcontrib/cpptasks/openwatcom/OpenWatcomLibrarian.java", "license": "apache-2.0", "size": 7164 }
[ "java.io.File", "net.sf.antcontrib.cpptasks.CCTask", "net.sf.antcontrib.cpptasks.compiler.CommandLineLinkerConfiguration" ]
import java.io.File; import net.sf.antcontrib.cpptasks.CCTask; import net.sf.antcontrib.cpptasks.compiler.CommandLineLinkerConfiguration;
import java.io.*; import net.sf.antcontrib.cpptasks.*; import net.sf.antcontrib.cpptasks.compiler.*;
[ "java.io", "net.sf.antcontrib" ]
java.io; net.sf.antcontrib;
2,583,697
public static GwtPermission convert(Permission permission) { return new GwtPermission(convertDomain(permission.getDomain()), convert(permission.getAction()), convert(permission.getTargetScopeId()), convert(permission.getGroupId())); } /** * Conve...
static GwtPermission function(Permission permission) { return new GwtPermission(convertDomain(permission.getDomain()), convert(permission.getAction()), convert(permission.getTargetScopeId()), convert(permission.getGroupId())); } /** * Converts a {@link Action} into a {@link GwtAction} * * @param action * The {@link Act...
/** * Converts a {@link Permission} into a {@link GwtPermission} object for GWT usage. * * @param permission * The {@link Permission} to convert. * @return The converted {@link GwtPermission}. * @since 1.0.0 */
Converts a <code>Permission</code> into a <code>GwtPermission</code> object for GWT usage
convert
{ "repo_name": "cbaerikebc/kapua", "path": "console/src/main/java/org/eclipse/kapua/app/console/shared/util/KapuaGwtModelConverter.java", "license": "epl-1.0", "size": 23459 }
[ "org.eclipse.kapua.app.console.shared.model.GwtPermission", "org.eclipse.kapua.service.authorization.permission.Action", "org.eclipse.kapua.service.authorization.permission.Permission" ]
import org.eclipse.kapua.app.console.shared.model.GwtPermission; import org.eclipse.kapua.service.authorization.permission.Action; import org.eclipse.kapua.service.authorization.permission.Permission;
import org.eclipse.kapua.app.console.shared.model.*; import org.eclipse.kapua.service.authorization.permission.*;
[ "org.eclipse.kapua" ]
org.eclipse.kapua;
2,012,059
public ItemStack splitStack(int var1, int var2) { if (this.inventory[var1] != null) { ItemStack var3; if (this.inventory[var1].count <= var2) { var3 = this.inventory[var1]; this.inventory[var1] = null; return va...
ItemStack function(int var1, int var2) { if (this.inventory[var1] != null) { ItemStack var3; if (this.inventory[var1].count <= var2) { var3 = this.inventory[var1]; this.inventory[var1] = null; return var3; } else { var3 = this.inventory[var1].a(var2); if (this.inventory[var1].count == 0) { this.inventory[var1] = null; ...
/** * Decrease the size of the stack in slot (first int arg) by the amount of the second int arg. Returns the new * stack. */
Decrease the size of the stack in slot (first int arg) by the amount of the second int arg. Returns the new stack
splitStack
{ "repo_name": "mushroomhostage/ic2-nuclear-control", "path": "1.1.9bukkit/TileEntityInfoPanel.java", "license": "bsd-3-clause", "size": 16476 }
[ "net.minecraft.server.ItemStack" ]
import net.minecraft.server.ItemStack;
import net.minecraft.server.*;
[ "net.minecraft.server" ]
net.minecraft.server;
2,691,420
private void executePlayerCommand(String playerCommandLine, Object commandParams) { String[] commandParts = playerCommandLine.split(":"); String playerId = commandParts[0]; String playerCommand = commandParts[1]; MPD daemon = findMPDInstance(playerId); if (daemon == null) { ...
void function(String playerCommandLine, Object commandParams) { String[] commandParts = playerCommandLine.split(":"); String playerId = commandParts[0]; String playerCommand = commandParts[1]; MPD daemon = findMPDInstance(playerId); if (daemon == null) { reconnect(playerId); } if (daemon != null) { PlayerCommandTypeMap...
/** * Executes the given <code>playerCommandLine</code> on the MPD. The * <code>playerCommandLine</code> is split into its properties * <code>playerId</code> and <code>playerCommand</code>. * * @param playerCommandLine the complete commandLine which gets splitted into * its prop...
Executes the given <code>playerCommandLine</code> on the MPD. The <code>playerCommandLine</code> is split into its properties <code>playerId</code> and <code>playerCommand</code>
executePlayerCommand
{ "repo_name": "druciak/openhab", "path": "bundles/binding/org.openhab.binding.mpd/src/main/java/org/openhab/binding/mpd/internal/MpdBinding.java", "license": "epl-1.0", "size": 29990 }
[ "java.util.Collection", "java.util.Iterator", "org.bff.javampd.MPDAdmin", "org.bff.javampd.MPDDatabase", "org.bff.javampd.MPDFile", "org.bff.javampd.MPDOutput", "org.bff.javampd.MPDPlayer", "org.bff.javampd.MPDPlaylist", "org.bff.javampd.exception.MPDPlayerException", "org.bff.javampd.objects.MPDS...
import java.util.Collection; import java.util.Iterator; import org.bff.javampd.MPDAdmin; import org.bff.javampd.MPDDatabase; import org.bff.javampd.MPDFile; import org.bff.javampd.MPDOutput; import org.bff.javampd.MPDPlayer; import org.bff.javampd.MPDPlaylist; import org.bff.javampd.exception.MPDPlayerException; import...
import java.util.*; import org.bff.javampd.*; import org.bff.javampd.exception.*; import org.bff.javampd.objects.*; import org.openhab.core.library.types.*;
[ "java.util", "org.bff.javampd", "org.openhab.core" ]
java.util; org.bff.javampd; org.openhab.core;
464,992
@Override public void toPNML(FileChannel fc);
void function(FileChannel fc);
/** * Write the PNML xml tree of this object into file */
Write the PNML xml tree of this object into file
toPNML
{ "repo_name": "lhillah/pnmlframework", "path": "pnmlFw-SNNet/src/fr/lip6/move/pnml/symmetricnet/multisets/Add.java", "license": "epl-1.0", "size": 2786 }
[ "java.nio.channels.FileChannel" ]
import java.nio.channels.FileChannel;
import java.nio.channels.*;
[ "java.nio" ]
java.nio;
2,232,966
public void engineStore(OutputStream stream, char[] password) throws IOException, NoSuchAlgorithmException, CertificateException { throw new UnsupportedOperationException(); }
void function(OutputStream stream, char[] password) throws IOException, NoSuchAlgorithmException, CertificateException { throw new UnsupportedOperationException(); }
/** * Stores this keystore to the given output stream, and protects its * integrity with the given password. * * @param stream the output stream to which this keystore is written. * @param password the password to generate the keystore integrity check * @throws java.io.IOException if the...
Stores this keystore to the given output stream, and protects its integrity with the given password
engineStore
{ "repo_name": "turtlebender/crux-security-core", "path": "ssl-proxy/src/test/java/org/globus/security/provider/MockKeyStore.java", "license": "apache-2.0", "size": 13825 }
[ "java.io.IOException", "java.io.OutputStream", "java.security.NoSuchAlgorithmException", "java.security.cert.CertificateException" ]
import java.io.IOException; import java.io.OutputStream; import java.security.NoSuchAlgorithmException; import java.security.cert.CertificateException;
import java.io.*; import java.security.*; import java.security.cert.*;
[ "java.io", "java.security" ]
java.io; java.security;
74,530
protected void addDisplayLegendPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_Axis_displayLegend_feature"), getString("_UI_PropertyDescript...
void function(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString(STR), getString(STR, STR, STR), EnquiryPackage.Literals.AXIS__DISPLAY_LEGEND, true, false, false, ItemPropertyDescriptor.BOOLEAN_...
/** * This adds a property descriptor for the Display Legend feature. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */
This adds a property descriptor for the Display Legend feature.
addDisplayLegendPropertyDescriptor
{ "repo_name": "debabratahazra/DS", "path": "designstudio/components/t24/core/com.odcgroup.t24.enquiry.model.edit/src/com/odcgroup/t24/enquiry/enquiry/provider/AxisItemProvider.java", "license": "epl-1.0", "size": 6055 }
[ "com.odcgroup.t24.enquiry.enquiry.EnquiryPackage", "org.eclipse.emf.edit.provider.ComposeableAdapterFactory", "org.eclipse.emf.edit.provider.ItemPropertyDescriptor" ]
import com.odcgroup.t24.enquiry.enquiry.EnquiryPackage; import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import com.odcgroup.t24.enquiry.enquiry.*; import org.eclipse.emf.edit.provider.*;
[ "com.odcgroup.t24", "org.eclipse.emf" ]
com.odcgroup.t24; org.eclipse.emf;
1,433,901
public void setProperties(final Property[] properties) { this.properties = properties; preprops = new LinkedList(); for (int i = 0; i < properties.length; i++) preprops.add(properties[i]); dirty = true; }
void function(final Property[] properties) { this.properties = properties; preprops = new LinkedList(); for (int i = 0; i < properties.length; i++) preprops.add(properties[i]); dirty = true; }
/** * <p>Sets this section's properties. Any former values are overwritten.</p> * * @param properties This section's new properties. */
Sets this section's properties. Any former values are overwritten
setProperties
{ "repo_name": "ximenesuk/bioformats", "path": "components/forks/poi/src/loci/poi/hpsf/MutableSection.java", "license": "gpl-2.0", "size": 23408 }
[ "java.util.LinkedList" ]
import java.util.LinkedList;
import java.util.*;
[ "java.util" ]
java.util;
1,457,479
public static <T extends TableFactory> T find( Class<T> factoryClass, Map<String, String> propertyMap) { return findSingleInternal(factoryClass, propertyMap, Optional.empty()); }
static <T extends TableFactory> T function( Class<T> factoryClass, Map<String, String> propertyMap) { return findSingleInternal(factoryClass, propertyMap, Optional.empty()); }
/** * Finds a table factory of the given class and property map. * * @param factoryClass desired factory class * @param propertyMap properties that describe the factory configuration * @param <T> factory class type * @return the matching factory */
Finds a table factory of the given class and property map
find
{ "repo_name": "StephanEwen/incubator-flink", "path": "flink-table/flink-table-common/src/main/java/org/apache/flink/table/factories/TableFactoryService.java", "license": "apache-2.0", "size": 20338 }
[ "java.util.Map", "java.util.Optional" ]
import java.util.Map; import java.util.Optional;
import java.util.*;
[ "java.util" ]
java.util;
2,191,999
public CQLQueryResults getCQLResultsById(String className, String idAttrName, String id, String url, GlobusCredential cred) { Object target = createTarget(className, createIdConstraint(idAttrName, id)); return executeCQL(createCQLQuery(target), url, cr...
CQLQueryResults function(String className, String idAttrName, String id, String url, GlobusCredential cred) { Object target = createTarget(className, createIdConstraint(idAttrName, id)); return executeCQL(createCQLQuery(target), url, cred); }
/** * Creates and executes CQL to get object of given id. * * @param className the target class * @param idAttrName the name of the id attribute in the class * @param id the id of the desired object * @param url the service url * @param cred security credentials * @retur...
Creates and executes CQL to get object of given id
getCQLResultsById
{ "repo_name": "NCIP/cab2b", "path": "software/cab2b/src/java/server/edu/wustl/cab2b/server/queryengine/resulttransformers/QueryResultTransformerUtil.java", "license": "bsd-3-clause", "size": 6522 }
[ "gov.nih.nci.cagrid.cqlquery.Object", "gov.nih.nci.cagrid.cqlresultset.CQLQueryResults", "org.globus.gsi.GlobusCredential" ]
import gov.nih.nci.cagrid.cqlquery.Object; import gov.nih.nci.cagrid.cqlresultset.CQLQueryResults; import org.globus.gsi.GlobusCredential;
import gov.nih.nci.cagrid.cqlquery.*; import gov.nih.nci.cagrid.cqlresultset.*; import org.globus.gsi.*;
[ "gov.nih.nci", "org.globus.gsi" ]
gov.nih.nci; org.globus.gsi;
614,061
public static File leftShift(File file, byte[] bytes) throws IOException { append(file, bytes); return file; } /** * Append binary data to the file. See {@link #append(java.io.File, java.io.InputStream)}
static File function(File file, byte[] bytes) throws IOException { append(file, bytes); return file; } /** * Append binary data to the file. See {@link #append(java.io.File, java.io.InputStream)}
/** * Write bytes to a File. * * @param file a File * @param bytes the byte array to append to the end of the File * @return the original file * @throws IOException if an IOException occurs. * @since 1.5.0 */
Write bytes to a File
leftShift
{ "repo_name": "avafanasiev/groovy", "path": "src/main/org/codehaus/groovy/runtime/ResourceGroovyMethods.java", "license": "apache-2.0", "size": 117823 }
[ "java.io.File", "java.io.IOException", "java.io.InputStream" ]
import java.io.File; import java.io.IOException; import java.io.InputStream;
import java.io.*;
[ "java.io" ]
java.io;
218,691
public Scroll scroll() { return scroll; }
Scroll function() { return scroll; }
/** * If set, will enable scrolling of the search request. */
If set, will enable scrolling of the search request
scroll
{ "repo_name": "xuzha/elasticsearch", "path": "core/src/main/java/org/elasticsearch/action/search/SearchScrollRequest.java", "license": "apache-2.0", "size": 3524 }
[ "org.elasticsearch.search.Scroll" ]
import org.elasticsearch.search.Scroll;
import org.elasticsearch.search.*;
[ "org.elasticsearch.search" ]
org.elasticsearch.search;
703,440