method
stringlengths
13
441k
clean_method
stringlengths
7
313k
doc
stringlengths
17
17.3k
comment
stringlengths
3
1.42k
method_name
stringlengths
1
273
extra
dict
imports
list
imports_info
stringlengths
19
34.8k
cluster_imports_info
stringlengths
15
3.66k
libraries
list
libraries_info
stringlengths
6
661
id
int64
0
2.92M
public AcknowledgedResponse deleteFilter(DeleteFilterRequest request, RequestOptions options) throws IOException { return restHighLevelClient.performRequestAndParseEntity(request, MLRequestConverters::deleteFilter, options, AcknowledgedResponse::fromXContent, ...
AcknowledgedResponse function(DeleteFilterRequest request, RequestOptions options) throws IOException { return restHighLevelClient.performRequestAndParseEntity(request, MLRequestConverters::deleteFilter, options, AcknowledgedResponse::fromXContent, Collections.emptySet()); }
/** * Deletes the given Machine Learning filter * <p> * For additional info * see <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-filter.html"> * ML Delete Filter documentation</a> * * @param request The request to delete the filter * @param...
Deletes the given Machine Learning filter For additional info see ML Delete Filter documentation
deleteFilter
{ "repo_name": "HonzaKral/elasticsearch", "path": "client/rest-high-level/src/main/java/org/elasticsearch/client/MachineLearningClient.java", "license": "apache-2.0", "size": 130306 }
[ "java.io.IOException", "java.util.Collections", "org.elasticsearch.action.support.master.AcknowledgedResponse", "org.elasticsearch.client.ml.DeleteFilterRequest" ]
import java.io.IOException; import java.util.Collections; import org.elasticsearch.action.support.master.AcknowledgedResponse; import org.elasticsearch.client.ml.DeleteFilterRequest;
import java.io.*; import java.util.*; import org.elasticsearch.action.support.master.*; import org.elasticsearch.client.ml.*;
[ "java.io", "java.util", "org.elasticsearch.action", "org.elasticsearch.client" ]
java.io; java.util; org.elasticsearch.action; org.elasticsearch.client;
1,418,742
View containerView = act.getWindow().getDecorView(); return findViewById(containerView, viewId); }
View containerView = act.getWindow().getDecorView(); return findViewById(containerView, viewId); }
/** * This method returns the reference of the View with the given Id in the layout of the * Activity passed as parameter * * @param act The Activity that is using the layout with the given View * @param viewId The id of the View we want to get a reference * @return The View with the given id and t...
This method returns the reference of the View with the given Id in the layout of the Activity passed as parameter
findViewById
{ "repo_name": "HKMOpen/fresco", "path": "samples/scrollperf/src/main/java/com/facebook/samples/scrollperf/util/UI.java", "license": "bsd-3-clause", "size": 1823 }
[ "android.view.View" ]
import android.view.View;
import android.view.*;
[ "android.view" ]
android.view;
1,324,780
default void initAcceptSession(IoSession acceptSession, ServiceProperties properties) { // no behavior by default so an extension can decide where it attaches its behavior }
default void initAcceptSession(IoSession acceptSession, ServiceProperties properties) { }
/** * Whenever a new client connection is received (on the configured "accept") * the extension is giving an opportunity to initialize the associated session. * * @param acceptSession - the accept side of the end-to-end proxy connection * @param properties - the service properties that contain ...
Whenever a new client connection is received (on the configured "accept") the extension is giving an opportunity to initialize the associated session
initAcceptSession
{ "repo_name": "chao-sun-kaazing/gateway", "path": "service/proxy/src/main/java/org/kaazing/gateway/service/proxy/ProxyServiceExtensionSpi.java", "license": "apache-2.0", "size": 2949 }
[ "org.apache.mina.core.session.IoSession", "org.kaazing.gateway.service.ServiceProperties" ]
import org.apache.mina.core.session.IoSession; import org.kaazing.gateway.service.ServiceProperties;
import org.apache.mina.core.session.*; import org.kaazing.gateway.service.*;
[ "org.apache.mina", "org.kaazing.gateway" ]
org.apache.mina; org.kaazing.gateway;
759,643
public Task createCloneAsync(Connection c, String newName) throws BadServerResponse, XenAPIException, XmlRpcException, Types.VmBadPowerState, Types.SrFull, Types.OperationNotAllowed { String method_call = "Async.VM.clone"; String session = c.getSessionRefere...
Task function(Connection c, String newName) throws BadServerResponse, XenAPIException, XmlRpcException, Types.VmBadPowerState, Types.SrFull, Types.OperationNotAllowed { String method_call = STR; String session = c.getSessionReference(); Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this....
/** * Clones the specified VM, making a new VM. Clone automatically exploits the capabilities of the underlying storage repository in which the VM's disk images are stored (e.g. Copy on Write). This function can only be called when the VM is in the Halted State. * * @param newName The name of the clone...
Clones the specified VM, making a new VM. Clone automatically exploits the capabilities of the underlying storage repository in which the VM's disk images are stored (e.g. Copy on Write). This function can only be called when the VM is in the Halted State
createCloneAsync
{ "repo_name": "cinderella/incubator-cloudstack", "path": "deps/XenServerJava/com/xensource/xenapi/VM.java", "license": "apache-2.0", "size": 169722 }
[ "com.xensource.xenapi.Types", "java.util.Map", "org.apache.xmlrpc.XmlRpcException" ]
import com.xensource.xenapi.Types; import java.util.Map; import org.apache.xmlrpc.XmlRpcException;
import com.xensource.xenapi.*; import java.util.*; import org.apache.xmlrpc.*;
[ "com.xensource.xenapi", "java.util", "org.apache.xmlrpc" ]
com.xensource.xenapi; java.util; org.apache.xmlrpc;
1,830,784
@Test public void testHeaderCommentWithBlanks() throws ConfigurationException { builder.addComment(TEST_COMMENT); builder.addComment(null); builder.addComment(TEST_COMMENT); builder.addComment(null); builder.addProperty(TEST_KEY, TEST_VALUE); layout.load(config, b...
void function() throws ConfigurationException { builder.addComment(TEST_COMMENT); builder.addComment(null); builder.addComment(TEST_COMMENT); builder.addComment(null); builder.addProperty(TEST_KEY, TEST_VALUE); layout.load(config, builder.getReader()); assertEquals(STR, TEST_COMMENT + CRNORM + CRNORM + TEST_COMMENT, la...
/** * Tests if a header comment containing blank lines is correctly detected. */
Tests if a header comment containing blank lines is correctly detected
testHeaderCommentWithBlanks
{ "repo_name": "apache/commons-configuration", "path": "src/test/java/org/apache/commons/configuration2/TestPropertiesConfigurationLayout.java", "license": "apache-2.0", "size": 29381 }
[ "org.apache.commons.configuration2.ex.ConfigurationException", "org.junit.Assert" ]
import org.apache.commons.configuration2.ex.ConfigurationException; import org.junit.Assert;
import org.apache.commons.configuration2.ex.*; import org.junit.*;
[ "org.apache.commons", "org.junit" ]
org.apache.commons; org.junit;
2,004,730
void setDefaultDistribs(Set<DistributionType> dists) { this.defaultDistributionSet = dists; }
void setDefaultDistribs(Set<DistributionType> dists) { this.defaultDistributionSet = dists; }
/** * Initializes the default set of distributions for targets in this package. * * <p> TODO(bazel-team): (2011) consider moving the license & distribs info into Metadata--maybe * even in the Build language. */
Initializes the default set of distributions for targets in this package. TODO(bazel-team): (2011) consider moving the license & distribs info into Metadata--maybe even in the Build language
setDefaultDistribs
{ "repo_name": "kamalmarhubi/bazel", "path": "src/main/java/com/google/devtools/build/lib/packages/Package.java", "license": "apache-2.0", "size": 50763 }
[ "com.google.devtools.build.lib.packages.License", "java.util.Set" ]
import com.google.devtools.build.lib.packages.License; import java.util.Set;
import com.google.devtools.build.lib.packages.*; import java.util.*;
[ "com.google.devtools", "java.util" ]
com.google.devtools; java.util;
2,287,584
@SuppressWarnings("unchecked") @Override public Class<Superclass> getSuperclass() { return ReflectionUtil.getParameterizedTypeFromInterface(getClass(), DelegatingSubclassHandler.class, 0); }
@SuppressWarnings(STR) Class<Superclass> function() { return ReflectionUtil.getParameterizedTypeFromInterface(getClass(), DelegatingSubclassHandler.class, 0); }
/** * Uses introspection into the generic interface to determine the superclass plugged into by * this handler * * @see org.openmrs.module.webservices.rest.web.resource.impl.DelegatingSubclassHandler#getSuperclass() */
Uses introspection into the generic interface to determine the superclass plugged into by this handler
getSuperclass
{ "repo_name": "PawelGutkowski/openmrs-module-webservices.rest", "path": "omod-common/src/main/java/org/openmrs/module/webservices/rest/web/resource/impl/BaseDelegatingSubclassHandler.java", "license": "mpl-2.0", "size": 5302 }
[ "org.openmrs.module.webservices.rest.util.ReflectionUtil" ]
import org.openmrs.module.webservices.rest.util.ReflectionUtil;
import org.openmrs.module.webservices.rest.util.*;
[ "org.openmrs.module" ]
org.openmrs.module;
642,342
void showText(String text, PDFont font) throws IOException { COSWriter.writeString(font.encode(text), outputstream); write(" "); writeOperator("Tj"); }
void showText(String text, PDFont font) throws IOException { COSWriter.writeString(font.encode(text), outputstream); write(" "); writeOperator("Tj"); }
/** * Shows the given text at the location specified by the current text matrix. * * @param text The Unicode text to show. * @throws IOException if there is an error writing to the stream. */
Shows the given text at the location specified by the current text matrix
showText
{ "repo_name": "mdamt/PdfBox-Android", "path": "library/src/main/java/org/apache/pdfbox/pdmodel/interactive/form/AppearancePrimitivesComposer.java", "license": "apache-2.0", "size": 5105 }
[ "java.io.IOException", "org.apache.pdfbox.pdfwriter.COSWriter", "org.apache.pdfbox.pdmodel.font.PDFont" ]
import java.io.IOException; import org.apache.pdfbox.pdfwriter.COSWriter; import org.apache.pdfbox.pdmodel.font.PDFont;
import java.io.*; import org.apache.pdfbox.pdfwriter.*; import org.apache.pdfbox.pdmodel.font.*;
[ "java.io", "org.apache.pdfbox" ]
java.io; org.apache.pdfbox;
29,582
public void setValue(final TypedValue<?> value) { requireNonNull(value, "Value type cannot be null"); this.value = value; }
void function(final TypedValue<?> value) { requireNonNull(value, STR); this.value = value; }
/** * Sets the value as provided. * * @param value * the new value * @throws NullPointerException * if the argument is null */
Sets the value as provided
setValue
{ "repo_name": "rohitdubey12/kura", "path": "kura/org.eclipse.kura.api/src/main/java/org/eclipse/kura/driver/DriverRecord.java", "license": "epl-1.0", "size": 7501 }
[ "java.util.Objects", "org.eclipse.kura.type.TypedValue" ]
import java.util.Objects; import org.eclipse.kura.type.TypedValue;
import java.util.*; import org.eclipse.kura.type.*;
[ "java.util", "org.eclipse.kura" ]
java.util; org.eclipse.kura;
1,978,274
private HashMap<String, List<Monitor>> readConfiguration() throws Exception { String[] folders = null; HashMap<String, List<Monitor>> folderMap = null; // read folders folders = requestHelper.getFolders(); if (EpaUtils.getFeedback().isVerboseEnabled(module)) { ...
HashMap<String, List<Monitor>> function() throws Exception { String[] folders = null; HashMap<String, List<Monitor>> folderMap = null; folders = requestHelper.getFolders(); if (EpaUtils.getFeedback().isVerboseEnabled(module)) { StringBuffer buf = new StringBuffer(STR); for (int i = 0; i < folders.length; ++i) { buf.app...
/** * Read the configuration: update folders. monitors and stations * @return map of folders and monitors * @throws Exception an error occurred */
Read the configuration: update folders. monitors and stations
readConfiguration
{ "repo_name": "CA-APM/ca-apm-fieldpack-asm", "path": "asm-monitor/src/main/java/com/ca/apm/swat/epaplugins/asm/AsmReader.java", "license": "epl-1.0", "size": 31019 }
[ "com.ca.apm.swat.epaplugins.asm.monitor.Monitor", "com.ca.apm.swat.epaplugins.utils.AsmMessages", "com.wily.introscope.epagent.EpaUtils", "com.wily.util.feedback.SeverityLevel", "java.util.Date", "java.util.HashMap", "java.util.Iterator", "java.util.List", "java.util.Set", "java.util.TreeSet" ]
import com.ca.apm.swat.epaplugins.asm.monitor.Monitor; import com.ca.apm.swat.epaplugins.utils.AsmMessages; import com.wily.introscope.epagent.EpaUtils; import com.wily.util.feedback.SeverityLevel; import java.util.Date; import java.util.HashMap; import java.util.Iterator; import java.util.List; import java.util.Set; i...
import com.ca.apm.swat.epaplugins.asm.monitor.*; import com.ca.apm.swat.epaplugins.utils.*; import com.wily.introscope.epagent.*; import com.wily.util.feedback.*; import java.util.*;
[ "com.ca.apm", "com.wily.introscope", "com.wily.util", "java.util" ]
com.ca.apm; com.wily.introscope; com.wily.util; java.util;
1,162,259
YDatadescription getDatadescription();
YDatadescription getDatadescription();
/** * Returns the value of the '<em><b>Datadescription</b></em>' reference. * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Datadescription</em>' reference isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @return the value of the '<em>Data...
Returns the value of the 'Datadescription' reference. If the meaning of the 'Datadescription' reference isn't clear, there really should be more of a description here...
getDatadescription
{ "repo_name": "lunifera/lunifera-ecview", "path": "org.lunifera.ecview.core.extension.model/src/org/lunifera/ecview/core/extension/model/extension/YLabel.java", "license": "epl-1.0", "size": 3104 }
[ "org.lunifera.ecview.core.common.model.datatypes.YDatadescription" ]
import org.lunifera.ecview.core.common.model.datatypes.YDatadescription;
import org.lunifera.ecview.core.common.model.datatypes.*;
[ "org.lunifera.ecview" ]
org.lunifera.ecview;
364,030
public GlyphTester getIgnoreTester ( int flags ) { if ( ( flags & GlyphSubtable.LF_IGNORE_BASE ) != 0 ) { if ( ( flags & (GlyphSubtable.LF_IGNORE_LIGATURE | GlyphSubtable.LF_IGNORE_MARK) ) == 0 ) { return ignoreBase; } else { return getCombinedIgnoreTe...
GlyphTester function ( int flags ) { if ( ( flags & GlyphSubtable.LF_IGNORE_BASE ) != 0 ) { if ( ( flags & (GlyphSubtable.LF_IGNORE_LIGATURE GlyphSubtable.LF_IGNORE_MARK) ) == 0 ) { return ignoreBase; } else { return getCombinedIgnoreTester ( flags ); } } if ( ( flags & GlyphSubtable.LF_IGNORE_LIGATURE ) != 0 ) { if ( ...
/** * Obtain an ignored glyph tester that corresponds to the specified lookup flags. * @param flags lookup flags * @return a glyph tester */
Obtain an ignored glyph tester that corresponds to the specified lookup flags
getIgnoreTester
{ "repo_name": "pellcorp/fop", "path": "src/java/org/apache/fop/complexscripts/fonts/GlyphProcessingState.java", "license": "apache-2.0", "size": 45993 }
[ "org.apache.fop.complexscripts.util.GlyphTester" ]
import org.apache.fop.complexscripts.util.GlyphTester;
import org.apache.fop.complexscripts.util.*;
[ "org.apache.fop" ]
org.apache.fop;
2,479,179
@Test public void testKafkaTailNone() { // shorten the max wait time so we do not have to wait so long global.put(KafkaFunctions.MAX_WAIT_PROPERTY, 2000); // use a unique topic name for this test final String topicName = testName.getMethodName(); variables.put("topic", topicName); // put ...
void function() { global.put(KafkaFunctions.MAX_WAIT_PROPERTY, 2000); final String topicName = testName.getMethodName(); variables.put("topic", topicName); run(STR); assertEquals(Collections.emptyList(), run(STR)); }
/** * KAFKA_TAIL should always seek to end of the topic. If no messages arrives after the 'seek to end' * then no messages will be returned. */
KAFKA_TAIL should always seek to end of the topic. If no messages arrives after the 'seek to end' then no messages will be returned
testKafkaTailNone
{ "repo_name": "kylerichardson/incubator-metron", "path": "metron-platform/metron-management/src/test/java/org/apache/metron/management/KafkaFunctionsIntegrationTest.java", "license": "apache-2.0", "size": 25069 }
[ "java.util.Collections", "org.junit.Assert" ]
import java.util.Collections; import org.junit.Assert;
import java.util.*; import org.junit.*;
[ "java.util", "org.junit" ]
java.util; org.junit;
560,858
public JsonElement set(JsonElement source, String jpath, String value) { JsonElement jsonValue = Objects.isNull(value) ? JsonNull.INSTANCE : new JsonPrimitive(value); return set(source, jpath, jsonValue); }
JsonElement function(JsonElement source, String jpath, String value) { JsonElement jsonValue = Objects.isNull(value) ? JsonNull.INSTANCE : new JsonPrimitive(value); return set(source, jpath, jsonValue); }
/** * Sets the string at the specified jpath. * * @param source the source * @param jpath the fully qualified json path to the field required. eg set({'a': {'b': {'c': [1, * 2, 3, 4]}}}, "a.b.c.1", "5"]) is {'a': {'b': {'c': [1, "5", 3, 4]}}}. Strings that can be * casted to numerals are presu...
Sets the string at the specified jpath
set
{ "repo_name": "balajeetm/json-mystique", "path": "json-mystique-utils/gson-utils/src/main/java/com/balajeetm/mystique/util/gson/lever/JsonLever.java", "license": "apache-2.0", "size": 77289 }
[ "com.google.gson.JsonElement", "com.google.gson.JsonNull", "com.google.gson.JsonPrimitive", "java.util.Objects" ]
import com.google.gson.JsonElement; import com.google.gson.JsonNull; import com.google.gson.JsonPrimitive; import java.util.Objects;
import com.google.gson.*; import java.util.*;
[ "com.google.gson", "java.util" ]
com.google.gson; java.util;
2,740,899
public DataValidationEvent[] validateDataSourceBackendData() throws DataSourceFailedDataValidationException, DataSourceValidationIncompleteException { KnowledgeSource knowledgeSource = getKnowledgeSource(); List<DataValidationEvent> validationEvents = new ArrayList<>(); ...
DataValidationEvent[] function() throws DataSourceFailedDataValidationException, DataSourceValidationIncompleteException { KnowledgeSource knowledgeSource = getKnowledgeSource(); List<DataValidationEvent> validationEvents = new ArrayList<>(); try { for (DataSourceBackend backend : getDataSource().getBackends()) { Colle...
/** * Runs each data source backend's data validation routine. * * @throws DataSourceFailedDataValidationException if validation failed. * @throws DataSourceValidationIncompleteException if an error occurred * during validation that prevented its completion. */
Runs each data source backend's data validation routine
validateDataSourceBackendData
{ "repo_name": "eurekaclinical/protempa", "path": "protempa-framework/src/main/java/org/protempa/Protempa.java", "license": "apache-2.0", "size": 12104 }
[ "java.util.ArrayList", "java.util.List", "org.apache.commons.collections4.CollectionUtils", "org.protempa.backend.DataSourceBackendFailedDataValidationException", "org.protempa.backend.dsb.DataSourceBackend", "org.protempa.backend.dsb.DataValidationEvent" ]
import java.util.ArrayList; import java.util.List; import org.apache.commons.collections4.CollectionUtils; import org.protempa.backend.DataSourceBackendFailedDataValidationException; import org.protempa.backend.dsb.DataSourceBackend; import org.protempa.backend.dsb.DataValidationEvent;
import java.util.*; import org.apache.commons.collections4.*; import org.protempa.backend.*; import org.protempa.backend.dsb.*;
[ "java.util", "org.apache.commons", "org.protempa.backend" ]
java.util; org.apache.commons; org.protempa.backend;
875,484
public void writeByte(int v) throws IOException, CardTerminalException { this.write(v); }
void function(int v) throws IOException, CardTerminalException { this.write(v); }
/** Writes a byte. * * @param v * The byte to write. * @exception java.io.IOException * Thrown if an I/O error has occurred. * @exception opencard.core.terminal.CardTerminalException * Thrown when the smart card has been removed. */
Writes a byte
writeByte
{ "repo_name": "zeroDenial/CNSReader", "path": "ocf/opencard/opt/iso/fs/CardRandomByteAccess.java", "license": "gpl-2.0", "size": 23305 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
1,202,041
@Test public void noMatchingViewException() { expectedException.expect(NoMatchingViewException.class); expectedException.expect(stackTraceContainsThisClass()); onView(withMatchesThatReturns(false)).check(matches(not(isDisplayed()))); }
void function() { expectedException.expect(NoMatchingViewException.class); expectedException.expect(stackTraceContainsThisClass()); onView(withMatchesThatReturns(false)).check(matches(not(isDisplayed()))); }
/** * Test only passes if run in isolation. Unless Gradle supports a single instrumentation per test * this test is ignored" */
Test only passes if run in isolation. Unless Gradle supports a single instrumentation per test this test is ignored"
noMatchingViewException
{ "repo_name": "android/android-test", "path": "espresso/core/javatests/androidx/test/espresso/base/DefaultFailureHandlerTest.java", "license": "apache-2.0", "size": 5506 }
[ "androidx.test.espresso.Espresso", "androidx.test.espresso.NoMatchingViewException" ]
import androidx.test.espresso.Espresso; import androidx.test.espresso.NoMatchingViewException;
import androidx.test.espresso.*;
[ "androidx.test" ]
androidx.test;
8,251
public IntVar getHoster() { return hoster; }
IntVar function() { return hoster; }
/** * Get the slice hoster. * * @return a variable indicating the node index */
Get the slice hoster
getHoster
{ "repo_name": "btrplace/scheduler", "path": "choco/src/main/java/org/btrplace/scheduler/choco/Slice.java", "license": "lgpl-3.0", "size": 2357 }
[ "org.chocosolver.solver.variables.IntVar" ]
import org.chocosolver.solver.variables.IntVar;
import org.chocosolver.solver.variables.*;
[ "org.chocosolver.solver" ]
org.chocosolver.solver;
1,341,978
return new Builder(); } @Deprecated public FailOnTimeout(Statement statement, long timeoutMillis) { this(builder().withTimeout(timeoutMillis, TimeUnit.MILLISECONDS), statement); } private FailOnTimeout(Builder builder, Statement statement) { originalStatement = statement; ...
return new Builder(); } FailOnTimeout(Statement statement, long timeoutMillis) { this(builder().withTimeout(timeoutMillis, TimeUnit.MILLISECONDS), statement); } private FailOnTimeout(Builder function, Statement statement) { originalStatement = statement; timeout = builder.timeout; timeUnit = builder.unit; lookForStuckT...
/** * Returns a new builder for building an instance. * * @since 4.12 */
Returns a new builder for building an instance
builder
{ "repo_name": "junit-team/junit4", "path": "src/main/java/org/junit/internal/runners/statements/FailOnTimeout.java", "license": "epl-1.0", "size": 12253 }
[ "java.util.concurrent.TimeUnit", "org.junit.runners.model.Statement" ]
import java.util.concurrent.TimeUnit; import org.junit.runners.model.Statement;
import java.util.concurrent.*; import org.junit.runners.model.*;
[ "java.util", "org.junit.runners" ]
java.util; org.junit.runners;
1,566,763
@Message(id = 144, value = "No active step") IllegalStateException noActiveStep(); // // @Message(id = 145, value = "No active tx found for id %d") // RuntimeException noActiveTransaction(int id); // // @Message(id = 146, value = "No child registry for (%s, %s)") // String noChildRegistry(...
@Message(id = 144, value = STR) IllegalStateException noActiveStep();
/** * Creates an exception indicating there is no active step. * * @return an {@link IllegalStateException} for the error. */
Creates an exception indicating there is no active step
noActiveStep
{ "repo_name": "aloubyansky/wildfly-core", "path": "controller/src/main/java/org/jboss/as/controller/logging/ControllerLogger.java", "license": "lgpl-2.1", "size": 164970 }
[ "org.jboss.logging.annotations.Message" ]
import org.jboss.logging.annotations.Message;
import org.jboss.logging.annotations.*;
[ "org.jboss.logging" ]
org.jboss.logging;
79,131
public static String getQualifiedMethodName(Method method) { return getQualifiedMethodName(method, null); }
static String function(Method method) { return getQualifiedMethodName(method, null); }
/** * Return the qualified name of the given method, consisting of * fully qualified interface/class name + "." + method name. * @param method the method * @return the qualified name of the method */
Return the qualified name of the given method, consisting of fully qualified interface/class name + "." + method name
getQualifiedMethodName
{ "repo_name": "lamsfoundation/lams", "path": "3rdParty_sources/spring/org/springframework/util/ClassUtils.java", "license": "gpl-2.0", "size": 47662 }
[ "java.lang.reflect.Method" ]
import java.lang.reflect.Method;
import java.lang.reflect.*;
[ "java.lang" ]
java.lang;
2,173,668
private void addClassIfTestCase(Class testCaseClass) { if (TestCase.class.isAssignableFrom(testCaseClass) && !TestAll.class.isAssignableFrom(testCaseClass) && !Modifier.isAbstract(testCaseClass.getModifiers())) { classList.add(testCaseClass); } }
void function(Class testCaseClass) { if (TestCase.class.isAssignableFrom(testCaseClass) && !TestAll.class.isAssignableFrom(testCaseClass) && !Modifier.isAbstract(testCaseClass.getModifiers())) { classList.add(testCaseClass); } }
/** * Adds testCaseClass to the list of classes if the class extends TestCase and it's not abstract. * @param testCaseClass class to test */
Adds testCaseClass to the list of classes if the class extends TestCase and it's not abstract
addClassIfTestCase
{ "repo_name": "9fevrier/displaytag", "path": "displaytag/src/test/java/org/displaytag/test/TestAll.java", "license": "artistic-2.0", "size": 8748 }
[ "java.lang.reflect.Modifier", "junit.framework.TestCase" ]
import java.lang.reflect.Modifier; import junit.framework.TestCase;
import java.lang.reflect.*; import junit.framework.*;
[ "java.lang", "junit.framework" ]
java.lang; junit.framework;
474,498
void processBuilders(List<Builder> builders, Job job, Set<Job> processedJobs) { this.processBuilders(builders, job, "", processedJobs); }
void processBuilders(List<Builder> builders, Job job, Set<Job> processedJobs) { this.processBuilders(builders, job, "", processedJobs); }
/** * Internal API * Processes and prepares Job's children for future use - internal flow * * @param builders Job's builders * @param job Job to process * @param processedJobs previously processed Jobs in this Job's hierarchical chain in order to break the recursive flows ...
Internal API Processes and prepares Job's children for future use - internal flow
processBuilders
{ "repo_name": "bamh/hpe-application-automation-tools-plugin", "path": "src/main/java/com/hpe/application/automation/tools/octane/model/processors/projects/AbstractProjectProcessor.java", "license": "mit", "size": 7932 }
[ "hudson.model.Job", "hudson.tasks.Builder", "java.util.List", "java.util.Set" ]
import hudson.model.Job; import hudson.tasks.Builder; import java.util.List; import java.util.Set;
import hudson.model.*; import hudson.tasks.*; import java.util.*;
[ "hudson.model", "hudson.tasks", "java.util" ]
hudson.model; hudson.tasks; java.util;
2,144,839
public void setSessionAttributeFilter(String sessionAttributeFilter) { if (sessionAttributeFilter == null || sessionAttributeFilter.trim().equals("")) { this.sessionAttributeFilter = null; sessionAttributePattern = null; } else { this.sessionAttributeF...
void function(String sessionAttributeFilter) { if (sessionAttributeFilter == null sessionAttributeFilter.trim().equals("")) { this.sessionAttributeFilter = null; sessionAttributePattern = null; } else { this.sessionAttributeFilter = sessionAttributeFilter; sessionAttributePattern = Pattern.compile(sessionAttributeFilte...
/** * Set the pattern used for including session attributes to replication. * If not set, all session attributes will be eligible for replication. * <p> * E.g. <code>^(userName|sessionHistory)$</code> * </p> * * @param sessionAttributeFilter * the filter name pattern t...
Set the pattern used for including session attributes to replication. If not set, all session attributes will be eligible for replication. E.g. <code>^(userName|sessionHistory)$</code>
setSessionAttributeFilter
{ "repo_name": "plumer/codana", "path": "tomcat_files/8.0.0/ClusterManagerBase.java", "license": "mit", "size": 6447 }
[ "java.util.regex.Pattern" ]
import java.util.regex.Pattern;
import java.util.regex.*;
[ "java.util" ]
java.util;
2,232,721
public Map<String, String> getXmlNs(String namespaceUri) { return Collections.emptyMap(); }
Map<String, String> function(String namespaceUri) { return Collections.emptyMap(); }
/** * Not implemented in the compile-time model. */
Not implemented in the compile-time model
getXmlNs
{ "repo_name": "TheTypoMaster/Scaper", "path": "openjdk/jaxws/drop_included/jaxws_src/src/com/sun/tools/internal/xjc/model/Model.java", "license": "gpl-2.0", "size": 15728 }
[ "java.util.Collections", "java.util.Map" ]
import java.util.Collections; import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
2,911,857
return time; } /** * Sets the value of the time property. * * @param value * allowed object is * {@link XMLGregorianCalendar }
return time; } /** * Sets the value of the time property. * * @param value * allowed object is * {@link XMLGregorianCalendar }
/** * Gets the value of the time property. * * @return * possible object is * {@link XMLGregorianCalendar } * */
Gets the value of the time property
getTime
{ "repo_name": "lewismc/akomantoso-lib", "path": "src/main/java/org/akomantoso/schema/v3/csd07/Time.java", "license": "apache-2.0", "size": 1958 }
[ "javax.xml.datatype.XMLGregorianCalendar" ]
import javax.xml.datatype.XMLGregorianCalendar;
import javax.xml.datatype.*;
[ "javax.xml" ]
javax.xml;
282,944
@Test public void testSetClientID() throws Exception { Connection conn = createConnection(); conn.setClientID("myID"); String clientID = conn.getClientID(); ProxyAssertSupport.assertEquals("Invalid ClientID", "myID", clientID); }
void function() throws Exception { Connection conn = createConnection(); conn.setClientID("myID"); String clientID = conn.getClientID(); ProxyAssertSupport.assertEquals(STR, "myID", clientID); }
/** * Try setting client ID */
Try setting client ID
testSetClientID
{ "repo_name": "lburgazzoli/apache-activemq-artemis", "path": "tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/SecurityTest.java", "license": "apache-2.0", "size": 4992 }
[ "javax.jms.Connection", "org.apache.activemq.artemis.jms.tests.util.ProxyAssertSupport" ]
import javax.jms.Connection; import org.apache.activemq.artemis.jms.tests.util.ProxyAssertSupport;
import javax.jms.*; import org.apache.activemq.artemis.jms.tests.util.*;
[ "javax.jms", "org.apache.activemq" ]
javax.jms; org.apache.activemq;
1,451,003
@JsonGetter(value = "caption") public String getCaption() { return this.caption; }
@JsonGetter(value = STR) String function() { return this.caption; }
/** * Get the caption of the display item. * * @return String with the caption of the display item. */
Get the caption of the display item
getCaption
{ "repo_name": "CitrineInformatics/jpif", "path": "src/main/java/io/citrine/jpif/obj/common/DisplayItem.java", "license": "apache-2.0", "size": 4035 }
[ "com.fasterxml.jackson.annotation.JsonGetter" ]
import com.fasterxml.jackson.annotation.JsonGetter;
import com.fasterxml.jackson.annotation.*;
[ "com.fasterxml.jackson" ]
com.fasterxml.jackson;
2,548,793
public KualiDecimal getFinancialDocumentOneCentAmount() { return financialDocumentOneCentAmount; }
KualiDecimal function() { return financialDocumentOneCentAmount; }
/** * Gets the financialDocumentOneCentAmount attribute. * * @return Returns the financialDocumentOneCentAmount */
Gets the financialDocumentOneCentAmount attribute
getFinancialDocumentOneCentAmount
{ "repo_name": "ua-eas/kfs-devops-automation-fork", "path": "kfs-core/src/main/java/org/kuali/kfs/fp/businessobject/CoinDetail.java", "license": "agpl-3.0", "size": 28331 }
[ "org.kuali.rice.core.api.util.type.KualiDecimal" ]
import org.kuali.rice.core.api.util.type.KualiDecimal;
import org.kuali.rice.core.api.util.type.*;
[ "org.kuali.rice" ]
org.kuali.rice;
2,174,971
public GeoDistanceSortBuilder point(double lat, double lon) { points.add(new GeoPoint(lat, lon)); return this; }
GeoDistanceSortBuilder function(double lat, double lon) { points.add(new GeoPoint(lat, lon)); return this; }
/** * The point to create the range distance facets from. * * @param lat latitude. * @param lon longitude. */
The point to create the range distance facets from
point
{ "repo_name": "mmaracic/elasticsearch", "path": "core/src/main/java/org/elasticsearch/search/sort/GeoDistanceSortBuilder.java", "license": "apache-2.0", "size": 25488 }
[ "org.elasticsearch.common.geo.GeoPoint" ]
import org.elasticsearch.common.geo.GeoPoint;
import org.elasticsearch.common.geo.*;
[ "org.elasticsearch.common" ]
org.elasticsearch.common;
869,025
public AccountingDocument getAccountingDocumentForValidation() { return accountingDocumentForValidation; }
AccountingDocument function() { return accountingDocumentForValidation; }
/** * Gets the accountingDocumentForValidation attribute. * * @return Returns the accountingDocumentForValidation. */
Gets the accountingDocumentForValidation attribute
getAccountingDocumentForValidation
{ "repo_name": "ua-eas/ua-kfs-5.3", "path": "work/src/org/kuali/kfs/fp/document/validation/impl/DisbursementVoucherPayeeStateCodeValidation.java", "license": "agpl-3.0", "size": 5179 }
[ "org.kuali.kfs.sys.document.AccountingDocument" ]
import org.kuali.kfs.sys.document.AccountingDocument;
import org.kuali.kfs.sys.document.*;
[ "org.kuali.kfs" ]
org.kuali.kfs;
1,891,529
EClass getFunctionScope();
EClass getFunctionScope();
/** * Returns the meta object for class '{@link org.xtext.example.delphi.astm.FunctionScope <em>Function Scope</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for class '<em>Function Scope</em>'. * @see org.xtext.example.delphi.astm.FunctionScope * @generated */
Returns the meta object for class '<code>org.xtext.example.delphi.astm.FunctionScope Function Scope</code>'.
getFunctionScope
{ "repo_name": "adolfosbh/cs2as", "path": "org.xtext.example.delphi/emf-gen/org/xtext/example/delphi/astm/AstmPackage.java", "license": "epl-1.0", "size": 670467 }
[ "org.eclipse.emf.ecore.EClass" ]
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
2,037,424
@Override protected EdgeFunctions<Unit, Value, SootMethod, BasePropagationValue> createEdgeFunctionsFactory() { return new EdgeFunctions<Unit, Value, SootMethod, BasePropagationValue>() {
EdgeFunctions<Unit, Value, SootMethod, BasePropagationValue> function() { return new EdgeFunctions<Unit, Value, SootMethod, BasePropagationValue>() {
/** * Factory for edge functions. * * @return The edge functions. */
Factory for edge functions
createEdgeFunctionsFactory
{ "repo_name": "siis/coal", "path": "src/main/java/edu/psu/cse/siis/coal/PropagationProblem.java", "license": "apache-2.0", "size": 6720 }
[ "edu.psu.cse.siis.coal.values.BasePropagationValue" ]
import edu.psu.cse.siis.coal.values.BasePropagationValue;
import edu.psu.cse.siis.coal.values.*;
[ "edu.psu.cse" ]
edu.psu.cse;
1,847,161
public void forceRemoveCompletion() { if (!replicatingNodes.isEmpty() || !tokenMetadata.getLeavingEndpoints().isEmpty()) { logger.warn("Removal not confirmed for for {}", StringUtils.join(this.replicatingNodes, ",")); for (InetAddress endpoint : tokenMetadata.getLeavingE...
void function() { if (!replicatingNodes.isEmpty() !tokenMetadata.getLeavingEndpoints().isEmpty()) { logger.warn(STR, StringUtils.join(this.replicatingNodes, ",")); for (InetAddress endpoint : tokenMetadata.getLeavingEndpoints()) { UUID hostId = tokenMetadata.getHostId(endpoint); Gossiper.instance.advertiseTokenRemoved(...
/** * Force a remove operation to complete. This may be necessary if a remove operation * blocks forever due to node/stream failure. removeToken() must be called * first, this is a last resort measure. No further attempt will be made to restore replicas. */
Force a remove operation to complete. This may be necessary if a remove operation blocks forever due to node/stream failure. removeToken() must be called first, this is a last resort measure. No further attempt will be made to restore replicas
forceRemoveCompletion
{ "repo_name": "DICL/cassandra", "path": "src/java/org/apache/cassandra/service/StorageService.java", "license": "apache-2.0", "size": 184345 }
[ "java.net.InetAddress", "org.apache.cassandra.gms.Gossiper", "org.apache.commons.lang3.StringUtils" ]
import java.net.InetAddress; import org.apache.cassandra.gms.Gossiper; import org.apache.commons.lang3.StringUtils;
import java.net.*; import org.apache.cassandra.gms.*; import org.apache.commons.lang3.*;
[ "java.net", "org.apache.cassandra", "org.apache.commons" ]
java.net; org.apache.cassandra; org.apache.commons;
1,130,808
public void executeAction(CmsWorkflowAction actionKey) { (new CmsPublishAction(actionKey)).execute(); }
void function(CmsWorkflowAction actionKey) { (new CmsPublishAction(actionKey)).execute(); }
/** * Executes the specified action for the selected resources.<p> * * @param actionKey the workflow action */
Executes the specified action for the selected resources
executeAction
{ "repo_name": "ggiudetti/opencms-core", "path": "src-gwt/org/opencms/ade/publish/client/CmsPublishDialog.java", "license": "lgpl-2.1", "size": 21376 }
[ "org.opencms.ade.publish.shared.CmsWorkflowAction" ]
import org.opencms.ade.publish.shared.CmsWorkflowAction;
import org.opencms.ade.publish.shared.*;
[ "org.opencms.ade" ]
org.opencms.ade;
924,572
public synchronized Atom read(InputStream in) throws IOException { return read(null, in); }
synchronized Atom function(InputStream in) throws IOException { return read(null, in); }
/** * Read one root (parent-less) Atom from an InputStream. */
Read one root (parent-less) Atom from an InputStream
read
{ "repo_name": "mickleness/pumpernickel", "path": "src/main/java/com/pump/animation/quicktime/atom/AtomReader.java", "license": "mit", "size": 9198 }
[ "java.io.IOException", "java.io.InputStream" ]
import java.io.IOException; import java.io.InputStream;
import java.io.*;
[ "java.io" ]
java.io;
1,060,395
public void testParentChildDeepLock() throws Exception { // create new nodes Node n1 = testRootNode.addNode(nodeName1, testNodeType); ensureMixinType(n1, mixLockable); Node n2 = n1.addNode(nodeName2, testNodeType); ensureMixinType(n2, mixLockable); testRootNode.getSes...
void function() throws Exception { Node n1 = testRootNode.addNode(nodeName1, testNodeType); ensureMixinType(n1, mixLockable); Node n2 = n1.addNode(nodeName2, testNodeType); ensureMixinType(n2, mixLockable); testRootNode.getSession().save(); n2.lock(false, true); try { n1.lock(true, true); fail(STR); } catch (LockExcept...
/** * Test parent/child lock */
Test parent/child lock
testParentChildDeepLock
{ "repo_name": "sdmcraft/jackrabbit", "path": "jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/lock/LockTest.java", "license": "apache-2.0", "size": 24652 }
[ "javax.jcr.Node", "javax.jcr.lock.LockException" ]
import javax.jcr.Node; import javax.jcr.lock.LockException;
import javax.jcr.*; import javax.jcr.lock.*;
[ "javax.jcr" ]
javax.jcr;
2,528,818
protected String dump() { Locks.lockIfCondition(read, mutable); try { StringBuilder sb = new StringBuilder(); sb.append("Dump for " + getClass().getSimpleName() + " " + id); sb.append("\n"); sb.append("------"); sb.append("\n"); ...
String function() { Locks.lockIfCondition(read, mutable); try { StringBuilder sb = new StringBuilder(); sb.append(STR + getClass().getSimpleName() + " " + id); sb.append("\n"); sb.append(STR); sb.append("\n"); if(mutable) { for (Revision<L, K, V> revision : revisions) { sb.append(revision); sb.append("\n"); } } else { ...
/** * Return a dump of the revisions in the block as a String. This method * primarily exists for debugging using the {@link DumpToolCli} tool. * <p> * NOTE: This method will map an entire immutable block into memory, so * please use with caution. * </p> * * @return a string dum...
Return a dump of the revisions in the block as a String. This method primarily exists for debugging using the <code>DumpToolCli</code> tool. please use with caution.
dump
{ "repo_name": "hcuffy/concourse", "path": "concourse-server/src/main/java/com/cinchapi/concourse/server/storage/db/Block.java", "license": "apache-2.0", "size": 30849 }
[ "com.cinchapi.concourse.server.concurrent.Locks", "com.cinchapi.concourse.server.io.ByteableCollections", "com.cinchapi.concourse.server.io.Byteables", "com.cinchapi.concourse.server.io.FileSystem", "java.nio.ByteBuffer", "java.nio.channels.FileChannel", "java.util.Iterator" ]
import com.cinchapi.concourse.server.concurrent.Locks; import com.cinchapi.concourse.server.io.ByteableCollections; import com.cinchapi.concourse.server.io.Byteables; import com.cinchapi.concourse.server.io.FileSystem; import java.nio.ByteBuffer; import java.nio.channels.FileChannel; import java.util.Iterator;
import com.cinchapi.concourse.server.concurrent.*; import com.cinchapi.concourse.server.io.*; import java.nio.*; import java.nio.channels.*; import java.util.*;
[ "com.cinchapi.concourse", "java.nio", "java.util" ]
com.cinchapi.concourse; java.nio; java.util;
232,525
void commit(boolean block) throws ActiveMQException;
void commit(boolean block) throws ActiveMQException;
/** * Commits the current transaction. * * @param block if the commit will be blocking or not. * @throws ActiveMQException if an exception occurs while committing the transaction */
Commits the current transaction
commit
{ "repo_name": "tabish121/activemq-artemis", "path": "artemis-core-client/src/main/java/org/apache/activemq/artemis/api/core/client/ClientSession.java", "license": "apache-2.0", "size": 54407 }
[ "org.apache.activemq.artemis.api.core.ActiveMQException" ]
import org.apache.activemq.artemis.api.core.ActiveMQException;
import org.apache.activemq.artemis.api.core.*;
[ "org.apache.activemq" ]
org.apache.activemq;
1,555,962
public long getLastMillisecond(Calendar calendar) { int eom = SerialDate.lastDayOfMonth(this.month, this.year); calendar.set(this.year, this.month - 1, eom, 23, 59, 59); calendar.set(Calendar.MILLISECOND, 999); // in the following line, we'd rather call calendar.getTimeInMillis()...
long function(Calendar calendar) { int eom = SerialDate.lastDayOfMonth(this.month, this.year); calendar.set(this.year, this.month - 1, eom, 23, 59, 59); calendar.set(Calendar.MILLISECOND, 999); return calendar.getTime().getTime(); }
/** * Returns the last millisecond of the month, evaluated using the supplied * calendar (which determines the time zone). * * @param calendar the calendar (<code>null</code> not permitted). * * @return The last millisecond of the month. * * @throws NullPointerException ...
Returns the last millisecond of the month, evaluated using the supplied calendar (which determines the time zone)
getLastMillisecond
{ "repo_name": "integrated/jfreechart", "path": "source/org/jfree/data/time/Month.java", "license": "lgpl-2.1", "size": 18158 }
[ "java.util.Calendar", "org.jfree.date.SerialDate" ]
import java.util.Calendar; import org.jfree.date.SerialDate;
import java.util.*; import org.jfree.date.*;
[ "java.util", "org.jfree.date" ]
java.util; org.jfree.date;
2,766,849
@Test public void testDeleteDirWithFile() throws IOException { // Test delete a file Path file = Files.createTempFile("testDeleteFile", "txt"); Assert.assertEquals(true, FileUtils.deleteDir(file.toFile(), true)); Assert.assertFalse(file.toFile().exists()); }
void function() throws IOException { Path file = Files.createTempFile(STR, "txt"); Assert.assertEquals(true, FileUtils.deleteDir(file.toFile(), true)); Assert.assertFalse(file.toFile().exists()); }
/** * Method: deleteDir(File file) */
Method: deleteDir(File file)
testDeleteDirWithFile
{ "repo_name": "mycFelix/heron", "path": "heron/common/tests/java/org/apache/heron/common/basics/FileUtilsTest.java", "license": "apache-2.0", "size": 5838 }
[ "java.io.IOException", "java.nio.file.Files", "java.nio.file.Path", "org.junit.Assert" ]
import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; import org.junit.Assert;
import java.io.*; import java.nio.file.*; import org.junit.*;
[ "java.io", "java.nio", "org.junit" ]
java.io; java.nio; org.junit;
1,024,206
public static CommandRegistry getCommandRegistry() { return COMMANDS; }
static CommandRegistry function() { return COMMANDS; }
/** * Returns the command registry. * * @return the command registry */
Returns the command registry
getCommandRegistry
{ "repo_name": "kkashi01/appinventor-sources", "path": "appinventor/appengine/src/com/google/appinventor/client/Ode.java", "license": "apache-2.0", "size": 99174 }
[ "com.google.appinventor.client.explorer.commands.CommandRegistry" ]
import com.google.appinventor.client.explorer.commands.CommandRegistry;
import com.google.appinventor.client.explorer.commands.*;
[ "com.google.appinventor" ]
com.google.appinventor;
1,342,741
public Item getItemDropped(IBlockState state, Random rand, int fortune) { return Item.getItemFromBlock(this); }
Item function(IBlockState state, Random rand, int fortune) { return Item.getItemFromBlock(this); }
/** * Get the Item that this Block should drop when harvested. */
Get the Item that this Block should drop when harvested
getItemDropped
{ "repo_name": "TorchPowered/Thallium", "path": "src/main/java/net/minecraft/block/Block.java", "license": "mit", "size": 66867 }
[ "java.util.Random", "net.minecraft.block.state.IBlockState", "net.minecraft.item.Item" ]
import java.util.Random; import net.minecraft.block.state.IBlockState; import net.minecraft.item.Item;
import java.util.*; import net.minecraft.block.state.*; import net.minecraft.item.*;
[ "java.util", "net.minecraft.block", "net.minecraft.item" ]
java.util; net.minecraft.block; net.minecraft.item;
340,395
@Override protected FileType doGetType() throws Exception { if (part == null) { return FileType.IMAGINARY; } if (isMultipart()) { // we cant have children ... return FileType.FILE_OR_FOLDER; } return FileType.FILE;...
FileType function() throws Exception { if (part == null) { return FileType.IMAGINARY; } if (isMultipart()) { return FileType.FILE_OR_FOLDER; } return FileType.FILE; }
/** * Determines the type of the file, returns null if the file does not * exist. */
Determines the type of the file, returns null if the file does not exist
doGetType
{ "repo_name": "EsupPortail/commons-vfs2-project-2.0", "path": "sandbox/src/main/java/org/apache/commons/vfs2/provider/mime/MimeFileObject.java", "license": "apache-2.0", "size": 8914 }
[ "org.apache.commons.vfs2.FileType" ]
import org.apache.commons.vfs2.FileType;
import org.apache.commons.vfs2.*;
[ "org.apache.commons" ]
org.apache.commons;
2,721,168
private String getBeaconId(BeaconDevice bd) { return bd.getMajor()+":"+bd.getMinor(); }
String function(BeaconDevice bd) { return bd.getMajor()+":"+bd.getMinor(); }
/** * Created the string id required by the API * @param bd * @return */
Created the string id required by the API
getBeaconId
{ "repo_name": "kantega/tech-ex-2015", "path": "android/src/no/kantega/techex/android/tools/BeaconMonitorListener.java", "license": "mit", "size": 15249 }
[ "com.kontakt.sdk.android.device.BeaconDevice" ]
import com.kontakt.sdk.android.device.BeaconDevice;
import com.kontakt.sdk.android.device.*;
[ "com.kontakt.sdk" ]
com.kontakt.sdk;
2,773,274
Acceptor acceptor(String host, int port, Handler handler) throws IOException;
Acceptor acceptor(String host, int port, Handler handler) throws IOException;
/** * Creates a new acceptor. This acceptor listens for in-bound connections. * @param host the host name or address of the NIC to listen on. * @param port the port number to listen on. * @param handler if non-<code>null</code> this handler is registered with * each new connecti...
Creates a new acceptor. This acceptor listens for in-bound connections
acceptor
{ "repo_name": "gemmellr/qpid-proton-j", "path": "proton-j/src/main/java/org/apache/qpid/proton/reactor/Reactor.java", "license": "apache-2.0", "size": 12785 }
[ "java.io.IOException", "org.apache.qpid.proton.engine.Handler" ]
import java.io.IOException; import org.apache.qpid.proton.engine.Handler;
import java.io.*; import org.apache.qpid.proton.engine.*;
[ "java.io", "org.apache.qpid" ]
java.io; org.apache.qpid;
1,735,334
public void setDistPollerDao(DistPollerDao _distPollerDao) { distPollerDao = _distPollerDao; } private OssDao ossDao; // TODO remove // private static boolean ossDaoIsInitialised=false; // TODO - may want this in the spring initialisation
void function(DistPollerDao _distPollerDao) { distPollerDao = _distPollerDao; } private OssDao ossDao;
/** * Used by Spring Application context to pass in distPollerDao; * * @param _distPollerDao a {@link org.opennms.netmgt.dao.api.DistPollerDao} object. */
Used by Spring Application context to pass in distPollerDao
setDistPollerDao
{ "repo_name": "tdefilip/opennms", "path": "opennms-tools/opennms-qosdaemon/src/main/java/org/openoss/opennms/spring/qosdrx/QoSDrxAlarmEventReceiverEventHandlerImpl2.java", "license": "agpl-3.0", "size": 28448 }
[ "org.opennms.netmgt.dao.api.DistPollerDao", "org.openoss.opennms.spring.dao.OssDao" ]
import org.opennms.netmgt.dao.api.DistPollerDao; import org.openoss.opennms.spring.dao.OssDao;
import org.opennms.netmgt.dao.api.*; import org.openoss.opennms.spring.dao.*;
[ "org.opennms.netmgt", "org.openoss.opennms" ]
org.opennms.netmgt; org.openoss.opennms;
672,381
static Map<String, Object> parseParameters(String args[]) throws Exception { Utils.debug(DEBUG_STANDARD, "TestRoot::parseParameters: Start"); HashMap<String, Object> map = new HashMap<>(); for ( int i = 0; i < args.length; i++ ) { if ( args[i].trim().startsWith("-") ) { ...
static Map<String, Object> parseParameters(String args[]) throws Exception { Utils.debug(DEBUG_STANDARD, STR); HashMap<String, Object> map = new HashMap<>(); for ( int i = 0; i < args.length; i++ ) { if ( args[i].trim().startsWith("-") ) { if ((i+1) < args.length && !args[i+1].startsWith("-") ) { Utils.debug(DEBUG_STAN...
/** * Reproduces the original parsing and collection of test parameters * from the DTonga JMX test suite. * * Collects passed args and returns them in a map(argname, value) structure, * which will be then propagated as necessary to various called methods. */
Reproduces the original parsing and collection of test parameters from the DTonga JMX test suite. Collects passed args and returns them in a map(argname, value) structure, which will be then propagated as necessary to various called methods
parseParameters
{ "repo_name": "md-5/jdk10", "path": "test/jdk/javax/management/mxbean/Utils.java", "license": "gpl-2.0", "size": 9715 }
[ "java.util.HashMap", "java.util.Map" ]
import java.util.HashMap; import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
1,446,748
public static List<RunningCompaction> getCompactionsRunningOnCompactors(ClientContext context) { final List<RunningCompactionFuture> rcFutures = new ArrayList<>(); final ExecutorService executor = ThreadPools.createFixedThreadPool(16, "CompactorRunningCompactions", false); getCompactorAddrs(conte...
static List<RunningCompaction> function(ClientContext context) { final List<RunningCompactionFuture> rcFutures = new ArrayList<>(); final ExecutorService executor = ThreadPools.createFixedThreadPool(16, STR, false); getCompactorAddrs(context).forEach((q, hp) -> { hp.forEach(hostAndPort -> { rcFutures.add(new RunningCom...
/** * This method returns information from the Compactor about the job that is currently running. The * RunningCompactions are not fully populated. This method is used from the CompactionCoordinator * on a restart to re-populate the set of running compactions on the compactors. * * @param context * ...
This method returns information from the Compactor about the job that is currently running. The RunningCompactions are not fully populated. This method is used from the CompactionCoordinator on a restart to re-populate the set of running compactions on the compactors
getCompactionsRunningOnCompactors
{ "repo_name": "ctubbsii/accumulo", "path": "core/src/main/java/org/apache/accumulo/core/util/compaction/ExternalCompactionUtil.java", "license": "apache-2.0", "size": 11613 }
[ "java.util.ArrayList", "java.util.List", "java.util.concurrent.ExecutionException", "java.util.concurrent.ExecutorService", "org.apache.accumulo.core.clientImpl.ClientContext", "org.apache.accumulo.core.tabletserver.thrift.TExternalCompactionJob", "org.apache.accumulo.core.util.threads.ThreadPools" ]
import java.util.ArrayList; import java.util.List; import java.util.concurrent.ExecutionException; import java.util.concurrent.ExecutorService; import org.apache.accumulo.core.clientImpl.ClientContext; import org.apache.accumulo.core.tabletserver.thrift.TExternalCompactionJob; import org.apache.accumulo.core.util.threa...
import java.util.*; import java.util.concurrent.*; import org.apache.accumulo.core.*; import org.apache.accumulo.core.tabletserver.thrift.*; import org.apache.accumulo.core.util.threads.*;
[ "java.util", "org.apache.accumulo" ]
java.util; org.apache.accumulo;
2,488,627
MatchResult combineNotSameObjects(MatchResult[] results) { // assumption all results have same graphs and same objects ArrayList<Object> srcObjectsAll = new ArrayList<Object>(); ArrayList<Object> trgObjectsAll = new ArrayList<Object>(); for (int i = 0; i < results.length; i++) { // must exist otherwise ...
MatchResult combineNotSameObjects(MatchResult[] results) { ArrayList<Object> srcObjectsAll = new ArrayList<Object>(); ArrayList<Object> trgObjectsAll = new ArrayList<Object>(); for (int i = 0; i < results.length; i++) { srcObjectsAll.addAll(results[i].getSrcObjects()); trgObjectsAll.addAll(results[i].getTrgObjects()); ...
/** * executes the specified combination for the given results * - for results where some are using arrays and others database * @param results * @return new match result containing the combined correspondences */
executes the specified combination for the given results - for results where some are using arrays and others database
combineNotSameObjects
{ "repo_name": "epu-ntua/FITMAN-SeMa", "path": "coma-engine/src/main/java/de/wdilab/coma/matching/Combination.java", "license": "agpl-3.0", "size": 32562 }
[ "de.wdilab.coma.structure.MatchResult", "de.wdilab.coma.structure.MatchResultArray", "java.util.ArrayList" ]
import de.wdilab.coma.structure.MatchResult; import de.wdilab.coma.structure.MatchResultArray; import java.util.ArrayList;
import de.wdilab.coma.structure.*; import java.util.*;
[ "de.wdilab.coma", "java.util" ]
de.wdilab.coma; java.util;
1,301,927
public void println(PrintWriter w) { Printer.print(this, w); }
void function(PrintWriter w) { Printer.print(this, w); }
/** * Prints the stack table map. */
Prints the stack table map
println
{ "repo_name": "alpapad/HotswapAgent", "path": "hotswap-agent-core/src/main/java/org/hotswap/agent/javassist/bytecode/StackMapTable.java", "license": "gpl-2.0", "size": 29169 }
[ "java.io.PrintWriter" ]
import java.io.PrintWriter;
import java.io.*;
[ "java.io" ]
java.io;
1,831,741
public boolean isZeroDimRadical() { if (this.isZERO()) { return false; } if (this.isONE()) { return false; // not 0-dim } if (list.ring.coFac.characteristic().signum() > 0 && !list.ring.coFac.isFinite()) { logger.warn("radical only for char...
boolean function() { if (this.isZERO()) { return false; } if (this.isONE()) { return false; } if (list.ring.coFac.characteristic().signum() > 0 && !list.ring.coFac.isFinite()) { logger.warn(STR + list.ring.coFac.toScript()); } for (int i = list.ring.nvar - 1; i >= 0; i--) { GenPolynomial<C> u = constructUnivariate(i); ...
/** * Test for Zero dimensional radical. See Seidenbergs lemma 92, and BWK * lemma 8.13. * @return true if this is an zero dimensional radical ideal, else false */
Test for Zero dimensional radical. See Seidenbergs lemma 92, and BWK lemma 8.13
isZeroDimRadical
{ "repo_name": "breandan/java-algebra-system", "path": "src/edu/jas/application/Ideal.java", "license": "gpl-2.0", "size": 106207 }
[ "edu.jas.poly.GenPolynomial" ]
import edu.jas.poly.GenPolynomial;
import edu.jas.poly.*;
[ "edu.jas.poly" ]
edu.jas.poly;
2,448,402
public static ECSigner newSHA512Signer(String privateKey, String kid, CryptoProvider cryptoProvider) { return new ECSigner(Algorithm.ES512, privateKey, kid, cryptoProvider); }
static ECSigner function(String privateKey, String kid, CryptoProvider cryptoProvider) { return new ECSigner(Algorithm.ES512, privateKey, kid, cryptoProvider); }
/** * Build a new EC signer using a SHA-512 hash. * * @param privateKey The private key PEM expected to be in PKCS#1 or PKCS#8 format. * @param kid The key identifier. This will be used by the JWTEncoder to write the 'kid' header. * @param cryptoProvider The crypto provider used to get the...
Build a new EC signer using a SHA-512 hash
newSHA512Signer
{ "repo_name": "inversoft/prime-jwt", "path": "src/main/java/io/fusionauth/jwt/ec/ECSigner.java", "license": "apache-2.0", "size": 8753 }
[ "io.fusionauth.jwt.domain.Algorithm", "io.fusionauth.security.CryptoProvider" ]
import io.fusionauth.jwt.domain.Algorithm; import io.fusionauth.security.CryptoProvider;
import io.fusionauth.jwt.domain.*; import io.fusionauth.security.*;
[ "io.fusionauth.jwt", "io.fusionauth.security" ]
io.fusionauth.jwt; io.fusionauth.security;
841,384
@SuppressWarnings("ConstantConditions") void onTopologyChanged(AffinityTopologyVersion topVer) { synchronized (scMap) { Iterator<T3<UUID, Integer, AffinityTopologyVersion>> it = scMap.keySet().iterator(); while (it.hasNext()) { T3<UUID, Integer, AffinityTopologyV...
@SuppressWarnings(STR) void onTopologyChanged(AffinityTopologyVersion topVer) { synchronized (scMap) { Iterator<T3<UUID, Integer, AffinityTopologyVersion>> it = scMap.keySet().iterator(); while (it.hasNext()) { T3<UUID, Integer, AffinityTopologyVersion> t = it.next(); if (topVer.compareTo(t.get3()) > 0) { clearContext(...
/** * Handles new topology. * * @param topVer Topology version. */
Handles new topology
onTopologyChanged
{ "repo_name": "vadopolski/ignite", "path": "modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/preloader/GridDhtPartitionSupplier.java", "license": "apache-2.0", "size": 20902 }
[ "java.util.Iterator", "org.apache.ignite.internal.processors.affinity.AffinityTopologyVersion" ]
import java.util.Iterator; import org.apache.ignite.internal.processors.affinity.AffinityTopologyVersion;
import java.util.*; import org.apache.ignite.internal.processors.affinity.*;
[ "java.util", "org.apache.ignite" ]
java.util; org.apache.ignite;
692,660
private String extractElements(I_CmsXmlDocument xmlDoc) { StringBuffer result = new StringBuffer(); if (xmlDoc instanceof CmsXmlPage) { List locales = xmlDoc.getLocales(); Iterator i = locales.iterator(); boolean firstIter = true; while (i.hasN...
String function(I_CmsXmlDocument xmlDoc) { StringBuffer result = new StringBuffer(); if (xmlDoc instanceof CmsXmlPage) { List locales = xmlDoc.getLocales(); Iterator i = locales.iterator(); boolean firstIter = true; while (i.hasNext()) { if (!firstIter) { result.append(STR); } Locale locale = (Locale)i.next(); result.a...
/** * Returns the content of all elements of an xml document appended.<p> * * @param xmlDoc the xml document to extract the elements from * @return the content of all elements of an xml document appended */
Returns the content of all elements of an xml document appended
extractElements
{ "repo_name": "comundus/opencms-comundus", "path": "src/main/java/org/opencms/workplace/comparison/CmsResourceComparisonDialog.java", "license": "lgpl-2.1", "size": 29860 }
[ "java.util.Iterator", "java.util.List", "java.util.Locale", "org.opencms.workplace.commons.CmsResourceInfoDialog", "org.opencms.xml.CmsXmlException", "org.opencms.xml.content.CmsXmlContent", "org.opencms.xml.page.CmsXmlPage" ]
import java.util.Iterator; import java.util.List; import java.util.Locale; import org.opencms.workplace.commons.CmsResourceInfoDialog; import org.opencms.xml.CmsXmlException; import org.opencms.xml.content.CmsXmlContent; import org.opencms.xml.page.CmsXmlPage;
import java.util.*; import org.opencms.workplace.commons.*; import org.opencms.xml.*; import org.opencms.xml.content.*; import org.opencms.xml.page.*;
[ "java.util", "org.opencms.workplace", "org.opencms.xml" ]
java.util; org.opencms.workplace; org.opencms.xml;
170,454
public static Expression parse(final InputStream in, Charset encoding) { return simplifiedParse(EXPRESSION, provider(in, encoding)); }
static Expression function(final InputStream in, Charset encoding) { return simplifiedParse(EXPRESSION, provider(in, encoding)); }
/** * Parses the Java code contained in the {@link InputStream} and returns a * {@link Expression} that represents it. * * @param in {@link InputStream} containing Java source code. It will be closed after parsing. * @param encoding encoding of the source code * @return Expression represen...
Parses the Java code contained in the <code>InputStream</code> and returns a <code>Expression</code> that represents it
parse
{ "repo_name": "romartin/drools", "path": "drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/MvelParser.java", "license": "apache-2.0", "size": 14679 }
[ "com.github.javaparser.ast.expr.Expression", "java.io.InputStream", "java.nio.charset.Charset", "org.drools.mvel.parser.Providers" ]
import com.github.javaparser.ast.expr.Expression; import java.io.InputStream; import java.nio.charset.Charset; import org.drools.mvel.parser.Providers;
import com.github.javaparser.ast.expr.*; import java.io.*; import java.nio.charset.*; import org.drools.mvel.parser.*;
[ "com.github.javaparser", "java.io", "java.nio", "org.drools.mvel" ]
com.github.javaparser; java.io; java.nio; org.drools.mvel;
642,586
protected void validateJars(String path) throws Exception { setState(STATE_VALIDATING_PACKAGES); percentage = 80; float percentageParts = 10f / urlList.length; // percentage for each file out of 10% for (int i = 0; i < urlList.length - nativeJarCount; i++) { debug_sleep(1000); // if...
void function(String path) throws Exception { setState(STATE_VALIDATING_PACKAGES); percentage = 80; float percentageParts = 10f / urlList.length; for (int i = 0; i < urlList.length - nativeJarCount; i++) { debug_sleep(1000); if (fileSizes[i] == -2) continue; subtaskMessage = STR + getJarName(urlList[i]); File file = ne...
/** * Check and validate jars which will be loaded into the classloader to make * sure that they are not corrupt. This ensures corrupt files are never marked * as successful downloadeds by the cache system. * * @param path - where the jars are stored * @throws Exception if a corrupt jar is found *...
Check and validate jars which will be loaded into the classloader to make sure that they are not corrupt. This ensures corrupt files are never marked as successful downloadeds by the cache system
validateJars
{ "repo_name": "eriqadams/computer-graphics", "path": "lib/lwjgl-2.9.1/lwjgl-source-2.9.1/src/java/org/lwjgl/util/applet/AppletLoader.java", "license": "mit", "size": 68898 }
[ "java.io.File" ]
import java.io.File;
import java.io.*;
[ "java.io" ]
java.io;
542,862
public Observable<ServiceResponse<Void>> startWithServiceResponseAsync(String resourceGroupName, String labAccountName, String labName, String environmentSettingName, String environmentName) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.s...
Observable<ServiceResponse<Void>> function(String resourceGroupName, String labAccountName, String labName, String environmentSettingName, String environmentName) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException(STR); } if (resourceGroupName == null) { throw new IllegalArgumentException(...
/** * Starts an environment by starting all resources inside the environment. This operation can take a while to complete. * * @param resourceGroupName The name of the resource group. * @param labAccountName The name of the lab Account. * @param labName The name of the lab. * @param enviro...
Starts an environment by starting all resources inside the environment. This operation can take a while to complete
startWithServiceResponseAsync
{ "repo_name": "navalev/azure-sdk-for-java", "path": "sdk/labservices/mgmt-v2018_10_15/src/main/java/com/microsoft/azure/management/labservices/v2018_10_15/implementation/EnvironmentsInner.java", "license": "mit", "size": 119994 }
[ "com.google.common.reflect.TypeToken", "com.microsoft.rest.ServiceResponse" ]
import com.google.common.reflect.TypeToken; import com.microsoft.rest.ServiceResponse;
import com.google.common.reflect.*; import com.microsoft.rest.*;
[ "com.google.common", "com.microsoft.rest" ]
com.google.common; com.microsoft.rest;
1,175,344
@SuppressLint("Override") public int getMaxLines(){ return maxLines; }
@SuppressLint(STR) int function(){ return maxLines; }
/** * Gets the max lines. * * @return the max lines */
Gets the max lines
getMaxLines
{ "repo_name": "JinBuHanLin/eshow-android", "path": "eshow_framwork/src/cn/org/eshow/framwork/view/sample/AbTextView.java", "license": "apache-2.0", "size": 10934 }
[ "android.annotation.SuppressLint" ]
import android.annotation.SuppressLint;
import android.annotation.*;
[ "android.annotation" ]
android.annotation;
1,904,062
CLIConfig config = getCLIControllerConfig(); ClientConfig clientConfig = new ClientConfig(); clientConfig.register(JacksonJsonProvider.class); clientConfig.property("sun.net.http.allowRestrictedHeaders", "true"); ClientBuilder builder = ClientBuilder.newBuilder().withConfig(clientConfig...
CLIConfig config = getCLIControllerConfig(); ClientConfig clientConfig = new ClientConfig(); clientConfig.register(JacksonJsonProvider.class); clientConfig.property(STR, "true"); ClientBuilder builder = ClientBuilder.newBuilder().withConfig(clientConfig); if (config.isTlsEnabled()) { SSLContext tlsContext; try { KeySto...
/** * Creates a context for child classes consisting of a REST client to execute calls against the Controller. * * @return REST client. */
Creates a context for child classes consisting of a REST client to execute calls against the Controller
createContext
{ "repo_name": "pravega/pravega", "path": "cli/admin/src/main/java/io/pravega/cli/admin/controller/ControllerCommand.java", "license": "apache-2.0", "size": 5460 }
[ "io.pravega.cli.admin.utils.CLIConfig", "io.pravega.common.util.CertificateUtils", "io.pravega.controller.server.rest.generated.api.JacksonJsonProvider", "java.io.IOException", "java.security.KeyManagementException", "java.security.KeyStore", "java.security.KeyStoreException", "java.security.NoSuchAlg...
import io.pravega.cli.admin.utils.CLIConfig; import io.pravega.common.util.CertificateUtils; import io.pravega.controller.server.rest.generated.api.JacksonJsonProvider; import java.io.IOException; import java.security.KeyManagementException; import java.security.KeyStore; import java.security.KeyStoreException; import ...
import io.pravega.cli.admin.utils.*; import io.pravega.common.util.*; import io.pravega.controller.server.rest.generated.api.*; import java.io.*; import java.security.*; import java.security.cert.*; import javax.net.ssl.*; import javax.ws.rs.client.*; import org.glassfish.jersey.client.*; import org.glassfish.jersey.cl...
[ "io.pravega.cli", "io.pravega.common", "io.pravega.controller", "java.io", "java.security", "javax.net", "javax.ws", "org.glassfish.jersey" ]
io.pravega.cli; io.pravega.common; io.pravega.controller; java.io; java.security; javax.net; javax.ws; org.glassfish.jersey;
601,917
//------------------------- AUTOGENERATED START ------------------------- ///CLOVER:OFF public static StarlingToolContextComponentFactory.Meta meta() { return StarlingToolContextComponentFactory.Meta.INSTANCE; } static { JodaBeanUtils.registerMetaBean(StarlingToolContextComponentFactory.Meta.INSTANC...
static StarlingToolContextComponentFactory.Meta function() { return StarlingToolContextComponentFactory.Meta.INSTANCE; } static { JodaBeanUtils.registerMetaBean(StarlingToolContextComponentFactory.Meta.INSTANCE); }
/** * The meta-bean for {@code StarlingToolContextComponentFactory}. * @return the meta-bean, not null */
The meta-bean for StarlingToolContextComponentFactory
meta
{ "repo_name": "McLeodMoores/starling", "path": "projects/starling-client/src/main/java/com/mcleodmoores/starling/client/component/StarlingToolContextComponentFactory.java", "license": "apache-2.0", "size": 19948 }
[ "org.joda.beans.JodaBeanUtils" ]
import org.joda.beans.JodaBeanUtils;
import org.joda.beans.*;
[ "org.joda.beans" ]
org.joda.beans;
2,634,347
private JPanel buildControlsPane() { JPanel p = new JPanel(); p.setBackground(UIUtilities.BACKGROUND_COLOR); p.setLayout(new GridBagLayout()); GridBagConstraints c = new GridBagConstraints(); c.anchor = GridBagConstraints.WEST; c.insets = new Insets(0, 2, 2, 0); c.gridy = 0...
JPanel function() { JPanel p = new JPanel(); p.setBackground(UIUtilities.BACKGROUND_COLOR); p.setLayout(new GridBagLayout()); GridBagConstraints c = new GridBagConstraints(); c.anchor = GridBagConstraints.WEST; c.insets = new Insets(0, 2, 2, 0); c.gridy = 0; JPanel comp; comp = buildSliderPane(bitDepthSlider, bitDepthL...
/** * Builds the pane hosting the main rendering controls. * * @return See above. */
Builds the pane hosting the main rendering controls
buildControlsPane
{ "repo_name": "joshmoore/openmicroscopy", "path": "components/insight/SRC/org/openmicroscopy/shoola/agents/metadata/rnd/DomainPane.java", "license": "gpl-2.0", "size": 37797 }
[ "java.awt.GridBagConstraints", "java.awt.GridBagLayout", "java.awt.Insets", "javax.swing.JPanel", "org.openmicroscopy.shoola.util.ui.UIUtilities" ]
import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.Insets; import javax.swing.JPanel; import org.openmicroscopy.shoola.util.ui.UIUtilities;
import java.awt.*; import javax.swing.*; import org.openmicroscopy.shoola.util.ui.*;
[ "java.awt", "javax.swing", "org.openmicroscopy.shoola" ]
java.awt; javax.swing; org.openmicroscopy.shoola;
1,074,134
@Bean public MessageSource messageSource() { ResourceBundleMessageSource messageSource = new ResourceBundleMessageSource(); messageSource.setBasename("messages"); return messageSource; }
MessageSource function() { ResourceBundleMessageSource messageSource = new ResourceBundleMessageSource(); messageSource.setBasename(STR); return messageSource; }
/** * Configure MessageSource to lookup any validation/error message in internationalized property files */
Configure MessageSource to lookup any validation/error message in internationalized property files
messageSource
{ "repo_name": "mustafamym/FeedbackCollectionAndMgmtSystem", "path": "src/main/java/com/lict/feedback/configuration/AppConfig.java", "license": "apache-2.0", "size": 4408 }
[ "org.springframework.context.MessageSource", "org.springframework.context.support.ResourceBundleMessageSource" ]
import org.springframework.context.MessageSource; import org.springframework.context.support.ResourceBundleMessageSource;
import org.springframework.context.*; import org.springframework.context.support.*;
[ "org.springframework.context" ]
org.springframework.context;
938,204
protected PersonVO[] doUpdateKontextGetPersonen(final RequestResources req) { PersonVO[] personenVO = null; try { RolleId rolleId = new RolleId(req.getId(Parameters.ROLLE_ID)); OrganisationsEinheitId oeId = new OrganisationsEinheitId( ...
PersonVO[] function(final RequestResources req) { PersonVO[] personenVO = null; try { RolleId rolleId = new RolleId(req.getId(Parameters.ROLLE_ID)); OrganisationsEinheitId oeId = new OrganisationsEinheitId( req.getId(Parameters.OE_ID)); personenVO = daoPerson.findPersonenByRolleInOrganisationseinheit( rolleId, oeId); }...
/** * Laedt die Personen, die waehrend des Updates der Kontext-Liste geupdatet * werden sollen * * @return */
Laedt die Personen, die waehrend des Updates der Kontext-Liste geupdatet werden sollen
doUpdateKontextGetPersonen
{ "repo_name": "schakko/zabos", "path": "src/zabos/src/main/java/de/ecw/zabos/frontend/controllers/OrganisationseinheitController.java", "license": "gpl-3.0", "size": 39767 }
[ "de.ecw.zabos.exceptions.StdException", "de.ecw.zabos.frontend.Parameters", "de.ecw.zabos.frontend.ressources.RequestResources", "de.ecw.zabos.sql.vo.PersonVO", "de.ecw.zabos.types.id.OrganisationsEinheitId", "de.ecw.zabos.types.id.RolleId" ]
import de.ecw.zabos.exceptions.StdException; import de.ecw.zabos.frontend.Parameters; import de.ecw.zabos.frontend.ressources.RequestResources; import de.ecw.zabos.sql.vo.PersonVO; import de.ecw.zabos.types.id.OrganisationsEinheitId; import de.ecw.zabos.types.id.RolleId;
import de.ecw.zabos.exceptions.*; import de.ecw.zabos.frontend.*; import de.ecw.zabos.frontend.ressources.*; import de.ecw.zabos.sql.vo.*; import de.ecw.zabos.types.id.*;
[ "de.ecw.zabos" ]
de.ecw.zabos;
878,903
public boolean isOnlyAgent() { final boolean result = (_resourceObjects.size() == 1 && _resourceObjects.get(0) instanceof ResourceSupportsOnePhaseCommit); if (tc.isDebugEnabled()) Tr.debug(tc, "isOnlyAgent", result); return result; }
boolean function() { final boolean result = (_resourceObjects.size() == 1 && _resourceObjects.get(0) instanceof ResourceSupportsOnePhaseCommit); if (tc.isDebugEnabled()) Tr.debug(tc, STR, result); return result; }
/** * Informs the caller if a single 1PC CAPABLE resource is enlisted in this unit of work. */
Informs the caller if a single 1PC CAPABLE resource is enlisted in this unit of work
isOnlyAgent
{ "repo_name": "OpenLiberty/open-liberty", "path": "dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/RegisteredResources.java", "license": "epl-1.0", "size": 124704 }
[ "com.ibm.websphere.ras.Tr", "com.ibm.ws.Transaction" ]
import com.ibm.websphere.ras.Tr; import com.ibm.ws.Transaction;
import com.ibm.websphere.ras.*; import com.ibm.ws.*;
[ "com.ibm.websphere", "com.ibm.ws" ]
com.ibm.websphere; com.ibm.ws;
930,009
public HttpServletRequest getRequest() { return request; }
HttpServletRequest function() { return request; }
/** * Method may be used to access original request object (in edge cases). * * @return original request object (before any redirection) * @see #getUrl() for original request URI * @see #getRootUrl() for root mapping url */
Method may be used to access original request object (in edge cases)
getRequest
{ "repo_name": "xvik/dropwizard-guicey-ext", "path": "guicey-server-pages/src/main/java/ru/vyarus/guicey/gsp/views/template/TemplateContext.java", "license": "mit", "size": 12681 }
[ "javax.servlet.http.HttpServletRequest" ]
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.*;
[ "javax.servlet" ]
javax.servlet;
2,909,354
void onHistoricalReceived(int requestID, LocalDate date, double close, double high, double low, double open, int volume, double adjustedClose);
void onHistoricalReceived(int requestID, LocalDate date, double close, double high, double low, double open, int volume, double adjustedClose);
/** * <p> * Method streams appropriate historical events from Yahoo Finance API. * </p> * * @param requestID * Same as RequestID provided to * {@link Session#reqHistoricalData(int, Contract, LocalDate, LocalDate, TimePeriod)} call. * @param date * Historical data date...
Method streams appropriate historical events from Yahoo Finance API.
onHistoricalReceived
{ "repo_name": "hilemz/yahoo-finance-api", "path": "yahoo-finance-api/src/main/java/pl/hilemz/yahoofinanceapi/DataReceiver.java", "license": "apache-2.0", "size": 8779 }
[ "java.time.LocalDate" ]
import java.time.LocalDate;
import java.time.*;
[ "java.time" ]
java.time;
1,910,790
public final void removeFromInodeMap(List<? extends INode> inodes) { if (inodes != null) { for (INode inode : inodes) { if (inode != null && inode instanceof INodeWithAdditionalFields) { inodeMap.remove(inode); ezManager.removeEncryptionZone(inode.getId()); } } ...
final void function(List<? extends INode> inodes) { if (inodes != null) { for (INode inode : inodes) { if (inode != null && inode instanceof INodeWithAdditionalFields) { inodeMap.remove(inode); ezManager.removeEncryptionZone(inode.getId()); } } } }
/** * This method is always called with writeLock of FSDirectory held. */
This method is always called with writeLock of FSDirectory held
removeFromInodeMap
{ "repo_name": "steveloughran/hadoop", "path": "hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSDirectory.java", "license": "apache-2.0", "size": 76272 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
622,434
protected void setChannel(final ReadableByteChannel channel) { this.channel = channel; } // ----------------------------------------------------------------------------------------------------------------- private ReadableByteChannel channel;
void function(final ReadableByteChannel channel) { this.channel = channel; } private ReadableByteChannel channel;
/** * Replaces the current value of {@code channel} attribute with specified value. * * @param channel new value for {@code channel} attribute. */
Replaces the current value of channel attribute with specified value
setChannel
{ "repo_name": "jinahya/bit-io", "path": "src/main/java/com/github/jinahya/bit/io/ChannelByteInput.java", "license": "apache-2.0", "size": 4777 }
[ "java.nio.channels.ReadableByteChannel" ]
import java.nio.channels.ReadableByteChannel;
import java.nio.channels.*;
[ "java.nio" ]
java.nio;
295,197
@ServiceMethod(returns = ReturnType.SINGLE) Mono<Void> deleteAtSubscriptionLevelAsync(String lockName);
@ServiceMethod(returns = ReturnType.SINGLE) Mono<Void> deleteAtSubscriptionLevelAsync(String lockName);
/** * To delete management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* * actions. Of the built-in roles, only Owner and User Access Administrator are granted those actions. * * @param lockName The name of lock to delete. * @throws IllegalArgumentE...
To delete management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks actions. Of the built-in roles, only Owner and User Access Administrator are granted those actions
deleteAtSubscriptionLevelAsync
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/resourcemanager/azure-resourcemanager-resources/src/main/java/com/azure/resourcemanager/resources/fluent/ManagementLocksClient.java", "license": "mit", "size": 66646 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod;
import com.azure.core.annotation.*;
[ "com.azure.core" ]
com.azure.core;
231,864
private JMenuItem createMenuItem(String text, String iconName, String toolTip, int mnemonicKeycode, String actionCommand){ JMenuItem item = new JMenuItem(text, new ImageIcon( this.getClass().getClassLoader().getResource("15p/" + iconName + ".png"))); item.setMnemonic(mnemonicKeycode); item.setToolTipTe...
JMenuItem function(String text, String iconName, String toolTip, int mnemonicKeycode, String actionCommand){ JMenuItem item = new JMenuItem(text, new ImageIcon( this.getClass().getClassLoader().getResource("15p/" + iconName + ".png"))); item.setMnemonic(mnemonicKeycode); item.setToolTipText(toolTip); item.setActionComm...
/** * Utility method for creating menu items based on the specified * parameters. * * @param text the menu item's text. * @param iconName the menu item's icon. * @param toolTip the menu item's tool tip text. * @param mnemonicKeycode the menu item's mnemonic keycode. * @param actionCommand the menu item...
Utility method for creating menu items based on the specified parameters
createMenuItem
{ "repo_name": "craigmiller160/StockMarket-2.0", "path": "src/main/java/io/craigmiller160/stockmarket/gui/MenuBar.java", "license": "apache-2.0", "size": 9470 }
[ "javax.swing.ImageIcon", "javax.swing.JMenuItem" ]
import javax.swing.ImageIcon; import javax.swing.JMenuItem;
import javax.swing.*;
[ "javax.swing" ]
javax.swing;
384,462
public static void addSpacer(Composite parent) { addSpacer(2, false, parent); }
static void function(Composite parent) { addSpacer(2, false, parent); }
/** * Add some empty horizontal space to the page. * This is equivalent to calling: addSpacer(2, false, parent); * @param parent parent component */
Add some empty horizontal space to the page. This is equivalent to calling: addSpacer(2, false, parent)
addSpacer
{ "repo_name": "rondiplomatico/texlipse", "path": "source/net/sourceforge/texlipse/properties/TexlipsePreferencePage.java", "license": "epl-1.0", "size": 5446 }
[ "org.eclipse.swt.widgets.Composite" ]
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.*;
[ "org.eclipse.swt" ]
org.eclipse.swt;
987,685
static TimeoutHandler create(long timeout) { return new TimeoutHandlerImpl(timeout); }
static TimeoutHandler create(long timeout) { return new TimeoutHandlerImpl(timeout); }
/** * Create a handler * * @param timeout the timeout, in ms * @return the handler */
Create a handler
create
{ "repo_name": "remi128/vertx-apex_old", "path": "src/main/java/io/vertx/ext/apex/handler/TimeoutHandler.java", "license": "apache-2.0", "size": 1485 }
[ "io.vertx.ext.apex.handler.impl.TimeoutHandlerImpl" ]
import io.vertx.ext.apex.handler.impl.TimeoutHandlerImpl;
import io.vertx.ext.apex.handler.impl.*;
[ "io.vertx.ext" ]
io.vertx.ext;
155,858
protected String convertImagePropertyValueToUrl(String text) { if (text.length() > 0) { ProjectNode asset = getAssetNode(text); if (asset != null) { return StorageUtil.getFileUrl(asset.getProjectId(), asset.getFileId()); } } return null; }
String function(String text) { if (text.length() > 0) { ProjectNode asset = getAssetNode(text); if (asset != null) { return StorageUtil.getFileUrl(asset.getProjectId(), asset.getFileId()); } } return null; }
/** * Converts the given image property value to an image url. * Returns null if the image property value is blank or not recognized as an * asset. */
Converts the given image property value to an image url. Returns null if the image property value is blank or not recognized as an asset
convertImagePropertyValueToUrl
{ "repo_name": "cjessica/aifoo", "path": "appinventor/appengine/src/com/google/appinventor/client/editor/simple/components/MockComponent.java", "license": "mit", "size": 28495 }
[ "com.google.appinventor.shared.rpc.project.ProjectNode", "com.google.appinventor.shared.storage.StorageUtil" ]
import com.google.appinventor.shared.rpc.project.ProjectNode; import com.google.appinventor.shared.storage.StorageUtil;
import com.google.appinventor.shared.rpc.project.*; import com.google.appinventor.shared.storage.*;
[ "com.google.appinventor" ]
com.google.appinventor;
2,073,400
public Set<RHSConceptChange> getRHSDirectlyGeneralised() { Set<RHSConceptChange> output = new HashSet<RHSConceptChange>(); output.addAll(getRHSPurelyDirectlyGeneralised()); output.addAll(getRHSMixedGeneralised()); return output; }
Set<RHSConceptChange> function() { Set<RHSConceptChange> output = new HashSet<RHSConceptChange>(); output.addAll(getRHSPurelyDirectlyGeneralised()); output.addAll(getRHSMixedGeneralised()); return output; }
/** * Get the directly generalised concepts in ontology 2 * @return Set of directly generalised concepts in ontology 2 */
Get the directly generalised concepts in ontology 2
getRHSDirectlyGeneralised
{ "repo_name": "rsgoncalves/ecco", "path": "src/main/java/uk/ac/manchester/cs/diff/concept/changeset/ConceptChangeSet.java", "license": "lgpl-3.0", "size": 24670 }
[ "java.util.HashSet", "java.util.Set", "uk.ac.manchester.cs.diff.concept.change.RHSConceptChange" ]
import java.util.HashSet; import java.util.Set; import uk.ac.manchester.cs.diff.concept.change.RHSConceptChange;
import java.util.*; import uk.ac.manchester.cs.diff.concept.change.*;
[ "java.util", "uk.ac.manchester" ]
java.util; uk.ac.manchester;
2,599,359
public void testSetCertificateCheckingLjava_X509Certificate() throws CertificateException { X509CRLSelector selector = new X509CRLSelector(); CertificateFactory certFact = CertificateFactory.getInstance("X509"); X509Certificate cert = (X509Certificate) certFact ....
void function() throws CertificateException { X509CRLSelector selector = new X509CRLSelector(); CertificateFactory certFact = CertificateFactory.getInstance("X509"); X509Certificate cert = (X509Certificate) certFact .generateCertificate(new ByteArrayInputStream(TestUtils .getX509Certificate_v3())); TestCRL crl = new Te...
/** * setCertificateChecking(X509Certificate) method testing. */
setCertificateChecking(X509Certificate) method testing
testSetCertificateCheckingLjava_X509Certificate
{ "repo_name": "AdmireTheDistance/android_libcore", "path": "luni/src/test/java/tests/security/cert/X509CRLSelector2Test.java", "license": "gpl-2.0", "size": 23916 }
[ "java.io.ByteArrayInputStream", "java.security.cert.CertificateException", "java.security.cert.CertificateFactory", "java.security.cert.X509CRLSelector", "java.security.cert.X509Certificate", "org.apache.harmony.security.tests.support.cert.TestUtils" ]
import java.io.ByteArrayInputStream; import java.security.cert.CertificateException; import java.security.cert.CertificateFactory; import java.security.cert.X509CRLSelector; import java.security.cert.X509Certificate; import org.apache.harmony.security.tests.support.cert.TestUtils;
import java.io.*; import java.security.cert.*; import org.apache.harmony.security.tests.support.cert.*;
[ "java.io", "java.security", "org.apache.harmony" ]
java.io; java.security; org.apache.harmony;
868,057
public List<InstructorAttributes> getInstructorsForGoogleId(String googleId, boolean omitArchived) { Assumption.assertNotNull(Const.StatusCodes.DBLEVEL_NULL_INPUT, googleId); return makeAttributes(getInstructorEntitiesForGoogleId(googleId, omitArchived)); }
List<InstructorAttributes> function(String googleId, boolean omitArchived) { Assumption.assertNotNull(Const.StatusCodes.DBLEVEL_NULL_INPUT, googleId); return makeAttributes(getInstructorEntitiesForGoogleId(googleId, omitArchived)); }
/** * Preconditions: <br> * * All parameters are non-null. * * @return empty list if no matching objects. */
Preconditions: All parameters are non-null
getInstructorsForGoogleId
{ "repo_name": "Mynk96/teammates", "path": "src/main/java/teammates/storage/api/InstructorsDb.java", "license": "gpl-2.0", "size": 16889 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,553,734
spaceIndex = 0; if (maximums == null) { maximums = new List[3]; maximums[0] = new ArrayList<Point2D_I16>(); maximums[1] = new ArrayList<Point2D_I16>(); maximums[2] = new ArrayList<Point2D_I16>(); } foundPoints.clear(); // compute feature intensity in each level for (int i = 0; i < ss.getNumLaye...
spaceIndex = 0; if (maximums == null) { maximums = new List[3]; maximums[0] = new ArrayList<Point2D_I16>(); maximums[1] = new ArrayList<Point2D_I16>(); maximums[2] = new ArrayList<Point2D_I16>(); } foundPoints.clear(); for (int i = 0; i < ss.getNumLayers(); i++) { if (i > 0 && i < ss.getNumLayers() - 1) detectCandidate...
/** * Searches for features inside the provided scale space * * @param ss Scale space of an image */
Searches for features inside the provided scale space
detect
{ "repo_name": "intrack/BoofCV-master", "path": "main/feature/src/boofcv/alg/feature/detect/interest/FeatureLaplacePyramid.java", "license": "apache-2.0", "size": 8148 }
[ "java.util.ArrayList", "java.util.List" ]
import java.util.ArrayList; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,300,811
void smoothScrollByOffset(int position) { int index = -1; if (position < 0) { index = getFirstVisiblePosition(); } else if (position > 0) { index = getLastVisiblePosition(); } if (index > -1) { View child = getChildAt(index - getFirstVisib...
void smoothScrollByOffset(int position) { int index = -1; if (position < 0) { index = getFirstVisiblePosition(); } else if (position > 0) { index = getLastVisiblePosition(); } if (index > -1) { View child = getChildAt(index - getFirstVisiblePosition()); if (child != null) { Rect visibleRect = new Rect(); if (child.getG...
/** * Allows RemoteViews to scroll relatively to a position. */
Allows RemoteViews to scroll relatively to a position
smoothScrollByOffset
{ "repo_name": "JSDemos/android-sdk-20", "path": "src/android/widget/AbsListView.java", "license": "apache-2.0", "size": 253340 }
[ "android.graphics.Rect", "android.view.View" ]
import android.graphics.Rect; import android.view.View;
import android.graphics.*; import android.view.*;
[ "android.graphics", "android.view" ]
android.graphics; android.view;
174,740
public List<ChildCollisionShape> getChildren() { return children; }
List<ChildCollisionShape> function() { return children; }
/** * Access the list of children. * * @return the pre-existing list (not null) */
Access the list of children
getChildren
{ "repo_name": "zzuegg/jmonkeyengine", "path": "jme3-bullet/src/main/java/com/jme3/bullet/collision/shapes/CompoundCollisionShape.java", "license": "bsd-3-clause", "size": 7393 }
[ "com.jme3.bullet.collision.shapes.infos.ChildCollisionShape", "java.util.List" ]
import com.jme3.bullet.collision.shapes.infos.ChildCollisionShape; import java.util.List;
import com.jme3.bullet.collision.shapes.infos.*; import java.util.*;
[ "com.jme3.bullet", "java.util" ]
com.jme3.bullet; java.util;
494,685
public void uninstallUI(JComponent c) { // The default implementation does not change any properties. }
void function(JComponent c) { }
/** * Puts the specified component into the state it had before * {@link #installUI} was called. * * @param c the component for which this delegate has provided * services. * * @see #installUI * @see javax.swing.JComponent#setUI * @see javax.swing.JComponent#updateUI */
Puts the specified component into the state it had before <code>#installUI</code> was called
uninstallUI
{ "repo_name": "unofficial-opensource-apple/gcc_40", "path": "libjava/javax/swing/plaf/ComponentUI.java", "license": "gpl-2.0", "size": 11655 }
[ "javax.swing.JComponent" ]
import javax.swing.JComponent;
import javax.swing.*;
[ "javax.swing" ]
javax.swing;
2,732,608
@Override protected OverlayItem createItem(int i) { return mOverlays.get(i); }
OverlayItem function(int i) { return mOverlays.get(i); }
/** * Given index returns OverLayItem in array(non-Javadoc) * @see com.google.android.maps.ItemizedOverlay#createItem(int) * @param array index * @return Overlay item in the array */
Given index returns OverLayItem in array(non-Javadoc)
createItem
{ "repo_name": "sumeetsinghani/bus-stop-alarm", "path": "src/com/busstopalarm/ItemizedOverlayHelper.java", "license": "mit", "size": 3677 }
[ "com.google.android.maps.OverlayItem" ]
import com.google.android.maps.OverlayItem;
import com.google.android.maps.*;
[ "com.google.android" ]
com.google.android;
743,526
@Auditable(parameters = {"rule"}) public void disableRule(Rule rule);
@Auditable(parameters = {"rule"}) void function(Rule rule);
/** * Disables a rule, preventing it from being fired. * * @see #enableRule(Rule) * * @param rule the rule to disable */
Disables a rule, preventing it from being fired
disableRule
{ "repo_name": "Alfresco/alfresco-repository", "path": "src/main/java/org/alfresco/service/cmr/rule/RuleService.java", "license": "lgpl-3.0", "size": 10793 }
[ "org.alfresco.service.Auditable" ]
import org.alfresco.service.Auditable;
import org.alfresco.service.*;
[ "org.alfresco.service" ]
org.alfresco.service;
15,479
public void deleteObject(OioUrl url, ObjectDeletionOptions options, RequestContext reqCtx) throws OioException { checkArgument(url != null, INVALID_URL_MSG); checkArgument(options != null, INVALID_OPTIONS_MSG); RequestBuilder request = http.post( format(DELETE_OBJ...
void function(OioUrl url, ObjectDeletionOptions options, RequestContext reqCtx) throws OioException { checkArgument(url != null, INVALID_URL_MSG); checkArgument(options != null, INVALID_OPTIONS_MSG); RequestBuilder request = http.post( format(DELETE_OBJECT_FORMAT, settings.url(), settings.ns(), Strings.urlEncode(url.ac...
/** * Deletes an object from its container * * @param url * the url of the object to delete * @param options * the version to delete (could be {@code null} to delete latest * version) * @param reqCtx * common paramters to all reque...
Deletes an object from its container
deleteObject
{ "repo_name": "open-io/oio-api-java", "path": "src/main/java/io/openio/sds/proxy/ProxyClient.java", "license": "lgpl-3.0", "size": 69667 }
[ "io.openio.sds.RequestContext", "io.openio.sds.common.Check", "io.openio.sds.common.Strings", "io.openio.sds.exceptions.OioException", "io.openio.sds.http.OioHttp", "io.openio.sds.models.ObjectDeletionOptions", "io.openio.sds.models.OioUrl", "java.lang.String" ]
import io.openio.sds.RequestContext; import io.openio.sds.common.Check; import io.openio.sds.common.Strings; import io.openio.sds.exceptions.OioException; import io.openio.sds.http.OioHttp; import io.openio.sds.models.ObjectDeletionOptions; import io.openio.sds.models.OioUrl; import java.lang.String;
import io.openio.sds.*; import io.openio.sds.common.*; import io.openio.sds.exceptions.*; import io.openio.sds.http.*; import io.openio.sds.models.*; import java.lang.*;
[ "io.openio.sds", "java.lang" ]
io.openio.sds; java.lang;
454,449
public Player getEnchanter() { return enchanter; }
Player function() { return enchanter; }
/** * Gets the player enchanting the item * * @return enchanting player */
Gets the player enchanting the item
getEnchanter
{ "repo_name": "SpannaProject/SpannaAPI", "path": "src/main/java/org/spanna/event/enchantment/EnchantItemEvent.java", "license": "apache-2.0", "size": 3112 }
[ "org.spanna.entity.Player" ]
import org.spanna.entity.Player;
import org.spanna.entity.*;
[ "org.spanna.entity" ]
org.spanna.entity;
1,701,877
public static void createZipFile( Map<String,String> entryToContent, File targetZipFile ) throws IOException { ZipOutputStream zos = null; try { zos = new ZipOutputStream( new FileOutputStream( targetZipFile )); for( Map.Entry<String,String> entry : entryToContent.entrySet()) { zos.putNextEntry( new Z...
static void function( Map<String,String> entryToContent, File targetZipFile ) throws IOException { ZipOutputStream zos = null; try { zos = new ZipOutputStream( new FileOutputStream( targetZipFile )); for( Map.Entry<String,String> entry : entryToContent.entrySet()) { zos.putNextEntry( new ZipEntry( entry.getKey())); if(...
/** * Creates a ZIP file from the map. * @param entryToContent a map (key = ZIP entry, value = entry content, null for a directory) * @param targetZipFile */
Creates a ZIP file from the map
createZipFile
{ "repo_name": "vincent-zurczak/roboconf-platform", "path": "core/roboconf-core/src/test/java/net/roboconf/core/internal/tests/TestUtils.java", "license": "apache-2.0", "size": 9643 }
[ "java.io.ByteArrayInputStream", "java.io.File", "java.io.FileOutputStream", "java.io.IOException", "java.util.Map", "java.util.zip.ZipEntry", "java.util.zip.ZipOutputStream", "net.roboconf.core.utils.Utils" ]
import java.io.ByteArrayInputStream; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.util.Map; import java.util.zip.ZipEntry; import java.util.zip.ZipOutputStream; import net.roboconf.core.utils.Utils;
import java.io.*; import java.util.*; import java.util.zip.*; import net.roboconf.core.utils.*;
[ "java.io", "java.util", "net.roboconf.core" ]
java.io; java.util; net.roboconf.core;
1,482,839
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public PollerFlux<PollResult<Void>, Void> beginPowerOffAsync( String resourceGroupName, String vmName, Boolean skipShutdown) { Mono<Response<Flux<ByteBuffer>>> mono = powerOffWithResponseAsync(resourceGroupName, vmName, skipShutdown); ...
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) PollerFlux<PollResult<Void>, Void> function( String resourceGroupName, String vmName, Boolean skipShutdown) { Mono<Response<Flux<ByteBuffer>>> mono = powerOffWithResponseAsync(resourceGroupName, vmName, skipShutdown); return this .client .<Void, Void>getLroRes...
/** * The operation to power off (stop) a virtual machine. The virtual machine can be restarted with the same * provisioned resources. You are still charged for this virtual machine. * * @param resourceGroupName The name of the resource group. * @param vmName The name of the virtual machine. ...
The operation to power off (stop) a virtual machine. The virtual machine can be restarted with the same provisioned resources. You are still charged for this virtual machine
beginPowerOffAsync
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachinesClientImpl.java", "license": "mit", "size": 333925 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.http.rest.Response", "com.azure.core.management.polling.PollResult", "com.azure.core.util.polling.PollerFlux", "java.nio.ByteBuffer" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.Response; import com.azure.core.management.polling.PollResult; import com.azure.core.util.polling.PollerFlux; import java.nio.ByteBuffer;
import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.core.management.polling.*; import com.azure.core.util.polling.*; import java.nio.*;
[ "com.azure.core", "java.nio" ]
com.azure.core; java.nio;
902,658
public static Condition buildCondition(final byte[] row, final byte[] family, final byte[] qualifier, final CompareOperator op, final byte[] value, final Filter filter, final TimeRange timeRange) throws IOException { Condition.Builder builder = Condition.newBuilder().setRow(UnsafeByteOperations.unsafeWra...
static Condition function(final byte[] row, final byte[] family, final byte[] qualifier, final CompareOperator op, final byte[] value, final Filter filter, final TimeRange timeRange) throws IOException { Condition.Builder builder = Condition.newBuilder().setRow(UnsafeByteOperations.unsafeWrap(row)); if (filter != null)...
/** * Create a protocol buffer Condition * * @return a Condition * @throws IOException */
Create a protocol buffer Condition
buildCondition
{ "repo_name": "francisliu/hbase", "path": "hbase-client/src/main/java/org/apache/hadoop/hbase/shaded/protobuf/RequestConverter.java", "license": "apache-2.0", "size": 74688 }
[ "java.io.IOException", "org.apache.hadoop.hbase.CompareOperator", "org.apache.hadoop.hbase.HConstants", "org.apache.hadoop.hbase.filter.BinaryComparator", "org.apache.hadoop.hbase.filter.Filter", "org.apache.hadoop.hbase.io.TimeRange", "org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos", ...
import java.io.IOException; import org.apache.hadoop.hbase.CompareOperator; import org.apache.hadoop.hbase.HConstants; import org.apache.hadoop.hbase.filter.BinaryComparator; import org.apache.hadoop.hbase.filter.Filter; import org.apache.hadoop.hbase.io.TimeRange; import org.apache.hadoop.hbase.shaded.protobuf.generat...
import java.io.*; import org.apache.hadoop.hbase.*; import org.apache.hadoop.hbase.filter.*; import org.apache.hadoop.hbase.io.*; import org.apache.hadoop.hbase.shaded.protobuf.generated.*; import org.apache.hbase.thirdparty.com.google.protobuf.*;
[ "java.io", "org.apache.hadoop", "org.apache.hbase" ]
java.io; org.apache.hadoop; org.apache.hbase;
17,081
@Override public void cleanup() { DatagramSocket s = _socket; _socket = null; if (s != null) { s.close(); } }
void function() { DatagramSocket s = _socket; _socket = null; if (s != null) { s.close(); } }
/** * Implements the EnvCleanup interface. */
Implements the EnvCleanup interface
cleanup
{ "repo_name": "CleverCloud/Bianca", "path": "bianca/src/main/java/com/clevercloud/bianca/lib/file/UdpInputOutput.java", "license": "gpl-2.0", "size": 4160 }
[ "java.net.DatagramSocket" ]
import java.net.DatagramSocket;
import java.net.*;
[ "java.net" ]
java.net;
1,184,030
private int readEncryptedData(final ByteBuffer dst, final int pending) { final int bioRead; if (dst.isDirect() && dst.remaining() >= pending) { final int pos = dst.position(); final long addr = Buffer.address(dst) + pos; bioRead = SSL.readFromBIO(networkBIO, addr...
int function(final ByteBuffer dst, final int pending) { final int bioRead; if (dst.isDirect() && dst.remaining() >= pending) { final int pos = dst.position(); final long addr = Buffer.address(dst) + pos; bioRead = SSL.readFromBIO(networkBIO, addr, pending); if (bioRead > 0) { dst.position(pos + bioRead); return bioRead...
/** * Read encrypted data from the OpenSSL network BIO */
Read encrypted data from the OpenSSL network BIO
readEncryptedData
{ "repo_name": "maliqq/netty", "path": "handler/src/main/java/io/netty/handler/ssl/ReferenceCountedOpenSslEngine.java", "license": "apache-2.0", "size": 81972 }
[ "io.netty.buffer.ByteBuf", "io.netty.handler.ssl.OpenSsl", "java.nio.ByteBuffer", "org.apache.tomcat.jni.Buffer", "org.apache.tomcat.jni.SSL" ]
import io.netty.buffer.ByteBuf; import io.netty.handler.ssl.OpenSsl; import java.nio.ByteBuffer; import org.apache.tomcat.jni.Buffer; import org.apache.tomcat.jni.SSL;
import io.netty.buffer.*; import io.netty.handler.ssl.*; import java.nio.*; import org.apache.tomcat.jni.*;
[ "io.netty.buffer", "io.netty.handler", "java.nio", "org.apache.tomcat" ]
io.netty.buffer; io.netty.handler; java.nio; org.apache.tomcat;
2,199,415
protected Connection getConnection(User ticket, Call call, InetSocketAddress addr) throws IOException { if (!running.get()) throw new StoppedRpcClientException(); Connection connection; ConnectionId remoteId = new ConnectionId(ticket, call.md.getService().getName(), addr); synchronized (connec...
Connection function(User ticket, Call call, InetSocketAddress addr) throws IOException { if (!running.get()) throw new StoppedRpcClientException(); Connection connection; ConnectionId remoteId = new ConnectionId(ticket, call.md.getService().getName(), addr); synchronized (connections) { connection = connections.get(rem...
/** * Get a connection from the pool, or create a new one and add it to the * pool. Connections to a given host/port are reused. */
Get a connection from the pool, or create a new one and add it to the pool. Connections to a given host/port are reused
getConnection
{ "repo_name": "juwi/hbase", "path": "hbase-client/src/main/java/org/apache/hadoop/hbase/ipc/RpcClientImpl.java", "license": "apache-2.0", "size": 50492 }
[ "java.io.IOException", "java.net.InetSocketAddress", "org.apache.hadoop.hbase.security.User" ]
import java.io.IOException; import java.net.InetSocketAddress; import org.apache.hadoop.hbase.security.User;
import java.io.*; import java.net.*; import org.apache.hadoop.hbase.security.*;
[ "java.io", "java.net", "org.apache.hadoop" ]
java.io; java.net; org.apache.hadoop;
255,446
public static List<DossierFolder2Role> toModels( DossierFolder2RoleSoap[] soapModels) { if (soapModels == null) { return null; } List<DossierFolder2Role> models = new ArrayList<DossierFolder2Role>(soapModels.length); for (DossierFolder2RoleSoap soapModel : soapModels) { models.add(toModel(soapModel...
static List<DossierFolder2Role> function( DossierFolder2RoleSoap[] soapModels) { if (soapModels == null) { return null; } List<DossierFolder2Role> models = new ArrayList<DossierFolder2Role>(soapModels.length); for (DossierFolder2RoleSoap soapModel : soapModels) { models.add(toModel(soapModel)); } return models; } publi...
/** * Converts the soap model instances into normal model instances. * * @param soapModels the soap model instances to convert * @return the normal model instances */
Converts the soap model instances into normal model instances
toModels
{ "repo_name": "thongdv/OEPv2", "path": "portlets/oep-core-dossiermgt-portlet/docroot/WEB-INF/src/org/oep/core/dossiermgt/model/impl/DossierFolder2RoleModelImpl.java", "license": "apache-2.0", "size": 11192 }
[ "com.liferay.portal.kernel.util.GetterUtil", "java.util.ArrayList", "java.util.List", "org.oep.core.dossiermgt.model.DossierFolder2Role", "org.oep.core.dossiermgt.model.DossierFolder2RoleSoap" ]
import com.liferay.portal.kernel.util.GetterUtil; import java.util.ArrayList; import java.util.List; import org.oep.core.dossiermgt.model.DossierFolder2Role; import org.oep.core.dossiermgt.model.DossierFolder2RoleSoap;
import com.liferay.portal.kernel.util.*; import java.util.*; import org.oep.core.dossiermgt.model.*;
[ "com.liferay.portal", "java.util", "org.oep.core" ]
com.liferay.portal; java.util; org.oep.core;
2,439,266
synchronized final void deleteNewFiles(Collection<String> files) throws IOException { deleter.deleteNewFiles(files); }
synchronized final void deleteNewFiles(Collection<String> files) throws IOException { deleter.deleteNewFiles(files); }
/** * Tries to delete the given files if unreferenced * @param files the files to delete * @throws IOException if an {@link IOException} occurs * @see IndexFileDeleter#deleteNewFiles(Collection) */
Tries to delete the given files if unreferenced
deleteNewFiles
{ "repo_name": "pengzong1111/solr4", "path": "lucene/core/src/java/org/apache/lucene/index/IndexWriter.java", "license": "apache-2.0", "size": 176670 }
[ "java.io.IOException", "java.util.Collection" ]
import java.io.IOException; import java.util.Collection;
import java.io.*; import java.util.*;
[ "java.io", "java.util" ]
java.io; java.util;
2,852,476
double get_double() throws TypeMismatch, InvalidValue;
double get_double() throws TypeMismatch, InvalidValue;
/** * Extract the <code>double</code> value that is expected to be stored in * this DynAny. * * @throws TypeMismatch if this DynAny holds the value of the different type. */
Extract the <code>double</code> value that is expected to be stored in this DynAny
get_double
{ "repo_name": "SanDisk-Open-Source/SSD_Dashboard", "path": "uefi/gcc/gcc-4.6.3/libjava/classpath/org/omg/DynamicAny/DynAnyOperations.java", "license": "gpl-2.0", "size": 17564 }
[ "org.omg.DynamicAny" ]
import org.omg.DynamicAny;
import org.omg.*;
[ "org.omg" ]
org.omg;
1,610,571
protected File fileFor( String id ) { assert id.startsWith(DELIMITER); if (id.endsWith(DELIMITER)) { id = id.substring(0, id.length() - DELIMITER.length()); } if (isContentNode(id)) { id = id.substring(0, id.length() - JCR_CONTENT_SUFFIX_LENGTH); } ...
File function( String id ) { assert id.startsWith(DELIMITER); if (id.endsWith(DELIMITER)) { id = id.substring(0, id.length() - DELIMITER.length()); } if (isContentNode(id)) { id = id.substring(0, id.length() - JCR_CONTENT_SUFFIX_LENGTH); } return new File(directory, id); }
/** * Utility method for obtaining the {@link File} object that corresponds to the supplied identifier. Subclasses may override * this method to change the format of the identifiers, but in that case should also override the {@link #isRoot(String)}, * {@link #isContentNode(String)}, and {@link #idFor(Fil...
Utility method for obtaining the <code>File</code> object that corresponds to the supplied identifier. Subclasses may override this method to change the format of the identifiers, but in that case should also override the <code>#isRoot(String)</code>, <code>#isContentNode(String)</code>, and <code>#idFor(File)</code> m...
fileFor
{ "repo_name": "DICE-UNC/jargon-modeshape", "path": "irods-connector/attic/FileSystemConnector.java", "license": "bsd-3-clause", "size": 35541 }
[ "java.io.File" ]
import java.io.File;
import java.io.*;
[ "java.io" ]
java.io;
750,039
boolean evaluate(int majorVersion, int id0, int id1, int id2, int id3); } private static final String TAG = "Id3Decoder"; public static final int ID3_TAG = Util.getIntegerCodeForString("ID3"); public static final int ID3_HEADER_LENGTH = 10; private static final int FRAME_FLAG_V3_IS_COMPRESSED = ...
boolean evaluate(int majorVersion, int id0, int id1, int id2, int id3); } private static final String TAG = STR; public static final int ID3_TAG = Util.getIntegerCodeForString("ID3"); public static final int ID3_HEADER_LENGTH = 10; private static final int FRAME_FLAG_V3_IS_COMPRESSED = 0x0080; private static final int ...
/** * Returns whether a frame with the specified parameters should be decoded. * * @param majorVersion The major version of the ID3 tag. * @param id0 The first byte of the frame ID. * @param id1 The second byte of the frame ID. * @param id2 The third byte of the frame ID. * @param id3...
Returns whether a frame with the specified parameters should be decoded
evaluate
{ "repo_name": "kiall/ExoPlayer", "path": "library/core/src/main/java/com/google/android/exoplayer2/metadata/id3/Id3Decoder.java", "license": "apache-2.0", "size": 29399 }
[ "com.google.android.exoplayer2.util.Util" ]
import com.google.android.exoplayer2.util.Util;
import com.google.android.exoplayer2.util.*;
[ "com.google.android" ]
com.google.android;
2,578,277
@Override public ArrayList<String> getDumpInfo() { ArrayList<String> tmpDumpList; tmpDumpList = new ArrayList<>(); // Format the fields // We only transform the detail records, and leave the others alone if (RECORD_TYPE == PixipRecord.DETAIL_RECORD) { tmpDumpList.add("============ BEGIN ...
ArrayList<String> function() { ArrayList<String> tmpDumpList; tmpDumpList = new ArrayList<>(); if (RECORD_TYPE == PixipRecord.DETAIL_RECORD) { tmpDumpList.add(STR); tmpDumpList.add(STR + recordNumber + ">"); tmpDumpList.add(STR + recordId + ">"); tmpDumpList.add(STR + outputs + ">"); tmpDumpList.add(STR); tmpDumpList.a...
/** * Return the dump-ready data * * @return The dump info strings */
Return the dump-ready data
getDumpInfo
{ "repo_name": "isparkes/ORPixip", "path": "src/main/java/Pixip/PixipRecord.java", "license": "gpl-2.0", "size": 25728 }
[ "java.util.ArrayList" ]
import java.util.ArrayList;
import java.util.*;
[ "java.util" ]
java.util;
1,980,605
public static void cleanUp(long timeout){ long nowMinusTimeout = Calendar.getInstance().getTime().getTime()-timeout; Set keys = DataStore.store.keySet(); for (Iterator iter = keys.iterator(); iter.hasNext();) { DataIdentifier id = (DataIdentifier) iter.next(); if(((Data)DataStore.store.get(id)).isTouched...
static void function(long timeout){ long nowMinusTimeout = Calendar.getInstance().getTime().getTime()-timeout; Set keys = DataStore.store.keySet(); for (Iterator iter = keys.iterator(); iter.hasNext();) { DataIdentifier id = (DataIdentifier) iter.next(); if(((Data)DataStore.store.get(id)).isTouchedAfter(nowMinusTimeout...
/** * Method to do a datstore cleanup for data not touched * for a period greather than given timeout * @param timeout */
Method to do a datstore cleanup for data not touched for a period greather than given timeout
cleanUp
{ "repo_name": "qafedev/qafe-platform", "path": "qafe-core/src/main/java/com/qualogy/qafe/core/datastore/DataStore.java", "license": "apache-2.0", "size": 9484 }
[ "java.util.Calendar", "java.util.Iterator", "java.util.Set" ]
import java.util.Calendar; import java.util.Iterator; import java.util.Set;
import java.util.*;
[ "java.util" ]
java.util;
2,060,007
public YEmbeddableValueEndpoint createValueEndpoint() { YEmbeddableValueEndpoint ep = CoreModelFactory.eINSTANCE .createYEmbeddableValueEndpoint(); ep.setElement(this); return ep; }
YEmbeddableValueEndpoint function() { YEmbeddableValueEndpoint ep = CoreModelFactory.eINSTANCE .createYEmbeddableValueEndpoint(); ep.setElement(this); return ep; }
/** * Creates a new instance of value endpoint with a reference to that * embeddable. * * @generated NOT */
Creates a new instance of value endpoint with a reference to that embeddable
createValueEndpoint
{ "repo_name": "lunifera/lunifera-ecview", "path": "org.lunifera.ecview.core.extension.model/src/org/lunifera/ecview/core/extension/model/extension/impl/YTextFieldImpl.java", "license": "epl-1.0", "size": 15539 }
[ "org.lunifera.ecview.core.common.model.core.CoreModelFactory", "org.lunifera.ecview.core.common.model.core.YEmbeddableValueEndpoint" ]
import org.lunifera.ecview.core.common.model.core.CoreModelFactory; import org.lunifera.ecview.core.common.model.core.YEmbeddableValueEndpoint;
import org.lunifera.ecview.core.common.model.core.*;
[ "org.lunifera.ecview" ]
org.lunifera.ecview;
1,504,677
private void handleMappingSelection(ISelection selection) { if (!selection.isEmpty() && selection instanceof IStructuredSelection) { Iterator<?> selectedElements = ((IStructuredSelection)selection).iterator(); if (selectedElements.hasNext()) { Object selectedElement = selectedElements.next()...
void function(ISelection selection) { if (!selection.isEmpty() && selection instanceof IStructuredSelection) { Iterator<?> selectedElements = ((IStructuredSelection)selection).iterator(); if (selectedElements.hasNext()) { Object selectedElement = selectedElements.next(); if (selectedElement instanceof OpenMappingRow) {...
/** * tell the Mapper Editor which mapping has been selected, so it will open * on that mapping * @param selection the selection of a row in this view */
tell the Mapper Editor which mapping has been selected, so it will open on that mapping
handleMappingSelection
{ "repo_name": "openmapsoftware/mappingtools", "path": "openmap-mapper-editor/src/main/java/com/openMap1/mapper/views/MappingsView.java", "license": "epl-1.0", "size": 10988 }
[ "java.util.ArrayList", "java.util.Iterator", "org.eclipse.jface.viewers.ISelection", "org.eclipse.jface.viewers.IStructuredSelection", "org.eclipse.jface.viewers.StructuredSelection" ]
import java.util.ArrayList; import java.util.Iterator; import org.eclipse.jface.viewers.ISelection; import org.eclipse.jface.viewers.IStructuredSelection; import org.eclipse.jface.viewers.StructuredSelection;
import java.util.*; import org.eclipse.jface.viewers.*;
[ "java.util", "org.eclipse.jface" ]
java.util; org.eclipse.jface;
2,670,493