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 boolean unlock(final CmsUUID structureId) {
// lock the sitemap
CmsRpcAction<String> unlockAction = new CmsRpcAction<String>() { | boolean function(final CmsUUID structureId) { CmsRpcAction<String> unlockAction = new CmsRpcAction<String>() { | /**
* Unlocks the given resource, synchronously.<p>
*
* @param structureId the resource structure id
*
* @return <code>true</code> if succeeded, if not a a warning is already shown to the user
*/ | Unlocks the given resource, synchronously | unlock | {
"repo_name": "sbonoc/opencms-core",
"path": "src-gwt/org/opencms/gwt/client/CmsCoreProvider.java",
"license": "lgpl-2.1",
"size": 22330
} | [
"org.opencms.gwt.client.rpc.CmsRpcAction",
"org.opencms.util.CmsUUID"
] | import org.opencms.gwt.client.rpc.CmsRpcAction; import org.opencms.util.CmsUUID; | import org.opencms.gwt.client.rpc.*; import org.opencms.util.*; | [
"org.opencms.gwt",
"org.opencms.util"
] | org.opencms.gwt; org.opencms.util; | 204,236 |
public static int processBatch( final int n, final int[] source, final int[] target, final File tempDir, final List<File> batches ) throws IOException {
IntArrays.radixSort( source, target, 0, n );
final File batchFile = File.createTempFile( "batch", ".bitstream", tempDir );
batchFile.deleteOnExit();
batch... | static int function( final int n, final int[] source, final int[] target, final File tempDir, final List<File> batches ) throws IOException { IntArrays.radixSort( source, target, 0, n ); final File batchFile = File.createTempFile( "batch", STR, tempDir ); batchFile.deleteOnExit(); batches.add( batchFile ); final Output... | /** Sorts the given source and target arrays w.r.t. the target and stores them in a temporary file.
*
* @param n the index of the last element to be sorted (exclusive).
* @param source the source array.
* @param target the target array.
* @param tempDir a temporary directory where to store the sorted array... | Sorts the given source and target arrays w.r.t. the target and stores them in a temporary file | processBatch | {
"repo_name": "lhelwerd/WebGraph",
"path": "src/it/unimi/dsi/webgraph/Transform.java",
"license": "gpl-3.0",
"size": 97942
} | [
"it.unimi.dsi.fastutil.ints.IntArrays",
"it.unimi.dsi.io.OutputBitStream",
"java.io.File",
"java.io.IOException",
"java.util.List"
] | import it.unimi.dsi.fastutil.ints.IntArrays; import it.unimi.dsi.io.OutputBitStream; import java.io.File; import java.io.IOException; import java.util.List; | import it.unimi.dsi.fastutil.ints.*; import it.unimi.dsi.io.*; import java.io.*; import java.util.*; | [
"it.unimi.dsi",
"java.io",
"java.util"
] | it.unimi.dsi; java.io; java.util; | 1,796,404 |
@SuppressWarnings("UnusedDeclaration")
public static Projection sqlGroupProjection(String sql, String groupBy, String[] columnAliases, Type[] types) {
return new SQLProjection(sql, groupBy, columnAliases, types);
}
private Projections() {
//cannot be instantiated
} | @SuppressWarnings(STR) static Projection function(String sql, String groupBy, String[] columnAliases, Type[] types) { return new SQLProjection(sql, groupBy, columnAliases, types); } private Projections() { } | /**
* A grouping SQL projection, specifying both select clause and group by clause fragments
*
* @param sql The SQL SELECT fragment
* @param groupBy The SQL GROUP BY fragment
* @param columnAliases The column aliases
* @param types The resulting types
*
* @return The SQL projection
*
* @see SQLProje... | A grouping SQL projection, specifying both select clause and group by clause fragments | sqlGroupProjection | {
"repo_name": "1fechner/FeatureExtractor",
"path": "sources/FeatureExtractor/lib/hibernate-release-5.1.0.Final/project/hibernate-core/src/main/java/org/hibernate/criterion/Projections.java",
"license": "lgpl-2.1",
"size": 5622
} | [
"org.hibernate.type.Type"
] | import org.hibernate.type.Type; | import org.hibernate.type.*; | [
"org.hibernate.type"
] | org.hibernate.type; | 1,441,547 |
@Test
public void testNamedAttributes() throws Exception {
setXmlFile(findFile("namedAttributes.xml"));
Class keyConstraint = String.class;
Class valueConstraint = Integer.class;
String id = "id1";
String regionName = "root";
Cache cache = getCache();
RegionAttributes attrs = cache.get... | void function() throws Exception { setXmlFile(findFile(STR)); Class keyConstraint = String.class; Class valueConstraint = Integer.class; String id = "id1"; String regionName = "root"; Cache cache = getCache(); RegionAttributes attrs = cache.getRegionAttributes(id); assertEquals(keyConstraint, attrs.getKeyConstraint());... | /**
* Tests that a region created with a named attributes has the correct attributes.
*/ | Tests that a region created with a named attributes has the correct attributes | testNamedAttributes | {
"repo_name": "deepakddixit/incubator-geode",
"path": "geode-core/src/distributedTest/java/org/apache/geode/cache30/CacheXml66DUnitTest.java",
"license": "apache-2.0",
"size": 167383
} | [
"org.apache.geode.cache.Cache",
"org.apache.geode.cache.ExpirationAction",
"org.apache.geode.cache.Region",
"org.apache.geode.cache.RegionAttributes",
"org.junit.Assert"
] | import org.apache.geode.cache.Cache; import org.apache.geode.cache.ExpirationAction; import org.apache.geode.cache.Region; import org.apache.geode.cache.RegionAttributes; import org.junit.Assert; | import org.apache.geode.cache.*; import org.junit.*; | [
"org.apache.geode",
"org.junit"
] | org.apache.geode; org.junit; | 1,443,303 |
private static void reorder(List<BaseFilterOperator> operators) {
final Map<Operator, Integer> operatorPriorityMap = new HashMap<Operator, Integer>();
for (Operator operator : operators) {
Integer priority = Integer.MAX_VALUE;
if (operator instanceof SortedInvertedIndexBasedFilterOperator) {
... | static void function(List<BaseFilterOperator> operators) { final Map<Operator, Integer> operatorPriorityMap = new HashMap<Operator, Integer>(); for (Operator operator : operators) { Integer priority = Integer.MAX_VALUE; if (operator instanceof SortedInvertedIndexBasedFilterOperator) { priority = 0; } else if (operator ... | /**
* Re orders operators, puts Sorted -> Inverted and then Raw scan. TODO: With Inverted, we can
* further optimize based on cardinality
* @param operators
*/ | further optimize based on cardinality | reorder | {
"repo_name": "sajavadi/pinot",
"path": "pinot-core/src/main/java/com/linkedin/pinot/core/plan/FilterPlanNode.java",
"license": "apache-2.0",
"size": 9749
} | [
"com.linkedin.pinot.core.common.Operator",
"com.linkedin.pinot.core.operator.filter.AndOperator",
"com.linkedin.pinot.core.operator.filter.BaseFilterOperator",
"com.linkedin.pinot.core.operator.filter.BitmapBasedFilterOperator",
"com.linkedin.pinot.core.operator.filter.OrOperator",
"com.linkedin.pinot.cor... | import com.linkedin.pinot.core.common.Operator; import com.linkedin.pinot.core.operator.filter.AndOperator; import com.linkedin.pinot.core.operator.filter.BaseFilterOperator; import com.linkedin.pinot.core.operator.filter.BitmapBasedFilterOperator; import com.linkedin.pinot.core.operator.filter.OrOperator; import com.l... | import com.linkedin.pinot.core.common.*; import com.linkedin.pinot.core.operator.filter.*; import java.util.*; | [
"com.linkedin.pinot",
"java.util"
] | com.linkedin.pinot; java.util; | 1,656,918 |
Var evalPop(ParserRuleContext ctx) {
exec.visit(ctx);
if (!exec.stack.isEmpty()) {
return exec.stackPop();
}
return Var.Empty;
} | Var evalPop(ParserRuleContext ctx) { exec.visit(ctx); if (!exec.stack.isEmpty()) { return exec.stackPop(); } return Var.Empty; } | /**
* Evaluate the expression and pop value from the stack
*/ | Evaluate the expression and pop value from the stack | evalPop | {
"repo_name": "alanfgates/hive",
"path": "hplsql/src/main/java/org/apache/hive/hplsql/Cmp.java",
"license": "apache-2.0",
"size": 9633
} | [
"org.antlr.v4.runtime.ParserRuleContext"
] | import org.antlr.v4.runtime.ParserRuleContext; | import org.antlr.v4.runtime.*; | [
"org.antlr.v4"
] | org.antlr.v4; | 2,899,530 |
public static void writeInt32(OutputStream in_stream, int in_value) throws IOException
{
byte[] bytes = new byte[4];
bytes[0] = (byte)(in_value & 0xFF);
bytes[1] = (byte)(in_value >>> 8 & 0xFF);
bytes[2] = (byte)(in_value >>> 16 & 0xFF);
bytes[3] = (byte)(in_value >>> 24 & 0xFF);
in_stream.write(b... | static void function(OutputStream in_stream, int in_value) throws IOException { byte[] bytes = new byte[4]; bytes[0] = (byte)(in_value & 0xFF); bytes[1] = (byte)(in_value >>> 8 & 0xFF); bytes[2] = (byte)(in_value >>> 16 & 0xFF); bytes[3] = (byte)(in_value >>> 24 & 0xFF); in_stream.write(bytes); } | /**
* Writes a signed 32-bit integer value to the given output stream. The value
* will be converted to little endian before being written.
*
* @param in_stream - The stream to write the value to.
* @param in_value - The value to write to the stream.
*
* @throws IOException - Any IO Exception thrown by... | Writes a signed 32-bit integer value to the given output stream. The value will be converted to little endian before being written | writeInt32 | {
"repo_name": "ChilliWorks/ChilliSource",
"path": "Projects/Tools/CoreUtils/src/com/chilliworks/chillisource/coreutils/LittleEndianWriterUtils.java",
"license": "mit",
"size": 5727
} | [
"java.io.IOException",
"java.io.OutputStream"
] | import java.io.IOException; import java.io.OutputStream; | import java.io.*; | [
"java.io"
] | java.io; | 340,196 |
@Override
protected void configureEnhancerEvent()
{
ArrayList<AddLoaderListener> listeners = getLoaderListeners();
for (int i = 0;
listeners != null && i < listeners.size();
i++) {
AddLoaderListener listener = listeners.get(i);
if (listener.isEnhancer())
listeners.g... | void function() { ArrayList<AddLoaderListener> listeners = getLoaderListeners(); for (int i = 0; listeners != null && i < listeners.size(); i++) { AddLoaderListener listener = listeners.get(i); if (listener.isEnhancer()) listeners.get(i).addLoader(this); } } | /**
* Adds a listener to detect class loader changes.
*/ | Adds a listener to detect class loader changes | configureEnhancerEvent | {
"repo_name": "CleverCloud/Quercus",
"path": "resin/src/main/java/com/caucho/loader/EnvironmentClassLoader.java",
"license": "gpl-2.0",
"size": 22803
} | [
"java.util.ArrayList"
] | import java.util.ArrayList; | import java.util.*; | [
"java.util"
] | java.util; | 294,909 |
public static EntityId getEntityId(Object obj,
long propertyId,
int member,
int index)
{
switch(getPropertyMappingKind(obj.getTypeId(),propertyId,member))
{
case MappedToN... | static EntityId function(Object obj, long propertyId, int member, int index) { switch(getPropertyMappingKind(obj.getTypeId(),propertyId,member)) { case MappedToNull: throw new NullException(STR); case MappedToParameter: { long[] paramClassTypeId=new long[1]; int[] paramIndex=new int[1]; int[] valueIndex=new int[1]; Ker... | /**
* Get an EntityId property member from the object using a property.
*
* @param obj The object to read from.
* @param propertyId TypeId of the property to use.
* @param member Index of the property member to read from.
* @param index Array index.
*
* @return The value of the m... | Get an EntityId property member from the object using a property | getEntityId | {
"repo_name": "SafirSDK/safir-sdk-core",
"path": "src/dots/dots_java.ss/src/com.saabgroup.safir.dob.typesystem/src/com/saabgroup/safir/dob/typesystem/Properties.java",
"license": "gpl-3.0",
"size": 83391
} | [
"com.saabgroup.safir.dob.typesystem.Object"
] | import com.saabgroup.safir.dob.typesystem.Object; | import com.saabgroup.safir.dob.typesystem.*; | [
"com.saabgroup.safir"
] | com.saabgroup.safir; | 1,592,735 |
private void checkFailedNodesList() {
List<TcpDiscoveryNodeFailedMessage> msgs = null;
synchronized (mux) {
if (!failedNodes.isEmpty()) {
for (Iterator<Map.Entry<TcpDiscoveryNode, UUID>> it = failedNodes.entrySet().iterator(); it.hasNext(); ) {
... | void function() { List<TcpDiscoveryNodeFailedMessage> msgs = null; synchronized (mux) { if (!failedNodes.isEmpty()) { for (Iterator<Map.Entry<TcpDiscoveryNode, UUID>> it = failedNodes.entrySet().iterator(); it.hasNext(); ) { Map.Entry<TcpDiscoveryNode, UUID> e = it.next(); TcpDiscoveryNode node = e.getKey(); UUID failS... | /**
* Checks failed nodes list and sends {@link TcpDiscoveryNodeFailedMessage} if failed node is still in the
* ring and node detected failure left ring.
*/ | Checks failed nodes list and sends <code>TcpDiscoveryNodeFailedMessage</code> if failed node is still in the ring and node detected failure left ring | checkFailedNodesList | {
"repo_name": "ptupitsyn/ignite",
"path": "modules/core/src/main/java/org/apache/ignite/spi/discovery/tcp/ServerImpl.java",
"license": "apache-2.0",
"size": 307693
} | [
"java.util.ArrayList",
"java.util.Iterator",
"java.util.List",
"java.util.Map",
"org.apache.ignite.internal.util.typedef.internal.U",
"org.apache.ignite.spi.discovery.tcp.internal.TcpDiscoveryNode",
"org.apache.ignite.spi.discovery.tcp.messages.TcpDiscoveryNodeFailedMessage"
] | import java.util.ArrayList; import java.util.Iterator; import java.util.List; import java.util.Map; import org.apache.ignite.internal.util.typedef.internal.U; import org.apache.ignite.spi.discovery.tcp.internal.TcpDiscoveryNode; import org.apache.ignite.spi.discovery.tcp.messages.TcpDiscoveryNodeFailedMessage; | import java.util.*; import org.apache.ignite.internal.util.typedef.internal.*; import org.apache.ignite.spi.discovery.tcp.internal.*; import org.apache.ignite.spi.discovery.tcp.messages.*; | [
"java.util",
"org.apache.ignite"
] | java.util; org.apache.ignite; | 899,275 |
public static BookmarkId addBookmarkSilently(
Context context, BookmarkModel bookmarkModel, String title, String url) {
BookmarkId parent = getLastUsedParent(context);
if (parent == null || !bookmarkModel.doesBookmarkExist(parent)) {
parent = bookmarkModel.getDefaultFolder();... | static BookmarkId function( Context context, BookmarkModel bookmarkModel, String title, String url) { BookmarkId parent = getLastUsedParent(context); if (parent == null !bookmarkModel.doesBookmarkExist(parent)) { parent = bookmarkModel.getDefaultFolder(); } return bookmarkModel.addBookmark(parent, bookmarkModel.getChil... | /**
* Adds a bookmark with the given title and url to the last used parent folder. Provides
* no visual feedback that a bookmark has been added.
*
* @param title The title of the bookmark.
* @param url The URL of the new bookmark.
*/ | Adds a bookmark with the given title and url to the last used parent folder. Provides no visual feedback that a bookmark has been added | addBookmarkSilently | {
"repo_name": "heke123/chromium-crosswalk",
"path": "chrome/android/java/src/org/chromium/chrome/browser/bookmarks/BookmarkUtils.java",
"license": "bsd-3-clause",
"size": 13021
} | [
"android.content.Context",
"org.chromium.components.bookmarks.BookmarkId"
] | import android.content.Context; import org.chromium.components.bookmarks.BookmarkId; | import android.content.*; import org.chromium.components.bookmarks.*; | [
"android.content",
"org.chromium.components"
] | android.content; org.chromium.components; | 2,806,961 |
public static int getLo(long value) throws AllowInlinedPragma {
return (int)(value & 0x00000000FFFFFFFFL);
}
// to test system clock changes, mock up changing the system clock in Java.
private static int debugClockAdjustmentsLo;
private static int debugClockAdjustmentsHi; | static int function(long value) throws AllowInlinedPragma { return (int)(value & 0x00000000FFFFFFFFL); } private static int debugClockAdjustmentsLo; private static int debugClockAdjustmentsHi; | /**
* Return the low word of a Java long
*
* @param value 64-bit value
* @return the low 32-bits of value
*/ | Return the low word of a Java long | getLo | {
"repo_name": "nejads/MqttMoped",
"path": "squawk/cldc/src/com/sun/squawk/VM.java",
"license": "gpl-2.0",
"size": 178144
} | [
"com.sun.squawk.pragma.AllowInlinedPragma"
] | import com.sun.squawk.pragma.AllowInlinedPragma; | import com.sun.squawk.pragma.*; | [
"com.sun.squawk"
] | com.sun.squawk; | 2,517,912 |
@RequestMapping(value = "/entity/{id}/binary/{binary-name}/metadata",
method = RequestMethod.POST,
consumes = "multipart/form-data")
@ResponseStatus(HttpStatus.CREATED)
public String addBinaryMetadataHtml(@PathVariable("id") final String entityId,
@PathVariable("binary-na... | @RequestMapping(value = STR, method = RequestMethod.POST, consumes = STR) @ResponseStatus(HttpStatus.CREATED) String function(@PathVariable("id") final String entityId, @PathVariable(STR) final String binaryName, @RequestParam("name") final String mdName, @RequestParam("type") final String type, @RequestParam(value = S... | /**
* Controller method for adding {@link de.escidocng.model.Metadata} with a given name to an
* {@link de.escidocng.model.Binary} using a HTTP POST with multipart/form-data
*
* @param entityId The is of the Entity to which the Metadata should be added
* @param binaryName the name of the binar... | Controller method for adding <code>de.escidocng.model.Metadata</code> with a given name to an <code>de.escidocng.model.Binary</code> using a HTTP POST with multipart/form-data | addBinaryMetadataHtml | {
"repo_name": "escidoc-ng/escidoc-ng",
"path": "escidocng-frontend/src/main/java/de/escidocng/frontend/controller/MetadataController.java",
"license": "apache-2.0",
"size": 12811
} | [
"java.io.IOException",
"org.apache.http.HttpEntity",
"org.apache.http.entity.ContentType",
"org.apache.http.entity.mime.MultipartEntityBuilder",
"org.springframework.http.HttpStatus",
"org.springframework.web.bind.annotation.PathVariable",
"org.springframework.web.bind.annotation.RequestMapping",
"org... | import java.io.IOException; import org.apache.http.HttpEntity; import org.apache.http.entity.ContentType; import org.apache.http.entity.mime.MultipartEntityBuilder; import org.springframework.http.HttpStatus; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.Req... | import java.io.*; import org.apache.http.*; import org.apache.http.entity.*; import org.apache.http.entity.mime.*; import org.springframework.http.*; import org.springframework.web.bind.annotation.*; import org.springframework.web.multipart.*; | [
"java.io",
"org.apache.http",
"org.springframework.http",
"org.springframework.web"
] | java.io; org.apache.http; org.springframework.http; org.springframework.web; | 2,263,975 |
private void prepareButtonListener() {
dto.getBirthdayIconImage().setOnClickListener(view -> {
int year = 1980;
int month = Calendar.JANUARY;
int day = 1;
if( dto.getBirthdayCalendar() != null ) {
year = dto.getBirthdayCalendar().get(Calenda... | void function() { dto.getBirthdayIconImage().setOnClickListener(view -> { int year = 1980; int month = Calendar.JANUARY; int day = 1; if( dto.getBirthdayCalendar() != null ) { year = dto.getBirthdayCalendar().get(Calendar.YEAR); month = dto.getBirthdayCalendar().get(Calendar.MONTH); day = dto.getBirthdayCalendar().get(... | /**
*
* Prepare ImageButton Listener
*
* <p>
* Overview:<br>
* Define and set the event when ImageButton is clicked.
* </p>
*/ | Prepare ImageButton Listener Overview: Define and set the event when ImageButton is clicked. | prepareButtonListener | {
"repo_name": "manavista/LessonManager",
"path": "app/src/main/java/jp/manavista/lessonmanager/fragment/MemberFragment.java",
"license": "apache-2.0",
"size": 10645
} | [
"android.app.DatePickerDialog",
"android.content.Intent",
"java.util.Calendar"
] | import android.app.DatePickerDialog; import android.content.Intent; import java.util.Calendar; | import android.app.*; import android.content.*; import java.util.*; | [
"android.app",
"android.content",
"java.util"
] | android.app; android.content; java.util; | 1,684,908 |
public final void setPersistenceStructureService(PersistenceStructureService persistenceStructureService) {
this.persistenceStructureService = persistenceStructureService;
}
| final void function(PersistenceStructureService persistenceStructureService) { this.persistenceStructureService = persistenceStructureService; } | /**
* Sets the persistenceStructureService attribute value.
*
* @param persistenceStructureService The persistenceStructureService to set.
*/ | Sets the persistenceStructureService attribute value | setPersistenceStructureService | {
"repo_name": "ua-eas/ksd-kc5.2.1-rice2.3.6-ua",
"path": "rice-middleware/kns/src/main/java/org/kuali/rice/kns/maintenance/rules/MaintenanceDocumentRuleBase.java",
"license": "apache-2.0",
"size": 69628
} | [
"org.kuali.rice.krad.service.PersistenceStructureService"
] | import org.kuali.rice.krad.service.PersistenceStructureService; | import org.kuali.rice.krad.service.*; | [
"org.kuali.rice"
] | org.kuali.rice; | 1,947,596 |
@Override
public VirtualMachineExtensionCreateOrUpdateResponse beginCreatingOrUpdating(String resourceGroupName, String vmName, VirtualMachineExtension extensionParameters) throws IOException, ServiceException, URISyntaxException {
// Validate
if (resourceGroupName == null) {
throw n... | VirtualMachineExtensionCreateOrUpdateResponse function(String resourceGroupName, String vmName, VirtualMachineExtension extensionParameters) throws IOException, ServiceException, URISyntaxException { if (resourceGroupName == null) { throw new NullPointerException(STR); } if (vmName == null) { throw new NullPointerExcep... | /**
* The operation to create or update the extension.
*
* @param resourceGroupName Required. The name of the resource group.
* @param vmName Required. The name of the virtual machine where the
* extension should be create or updated.
* @param extensionParameters Required. Parameters supplied to... | The operation to create or update the extension | beginCreatingOrUpdating | {
"repo_name": "southworkscom/azure-sdk-for-java",
"path": "resource-management/azure-mgmt-compute/src/main/java/com/microsoft/azure/management/compute/VirtualMachineExtensionOperationsImpl.java",
"license": "apache-2.0",
"size": 92704
} | [
"com.microsoft.azure.management.compute.models.VirtualMachineExtension",
"com.microsoft.azure.management.compute.models.VirtualMachineExtensionCreateOrUpdateResponse",
"com.microsoft.windowsazure.exception.ServiceException",
"com.microsoft.windowsazure.tracing.CloudTracing",
"java.io.IOException",
"java.n... | import com.microsoft.azure.management.compute.models.VirtualMachineExtension; import com.microsoft.azure.management.compute.models.VirtualMachineExtensionCreateOrUpdateResponse; import com.microsoft.windowsazure.exception.ServiceException; import com.microsoft.windowsazure.tracing.CloudTracing; import java.io.IOExcepti... | import com.microsoft.azure.management.compute.models.*; import com.microsoft.windowsazure.exception.*; import com.microsoft.windowsazure.tracing.*; import java.io.*; import java.net.*; import java.util.*; | [
"com.microsoft.azure",
"com.microsoft.windowsazure",
"java.io",
"java.net",
"java.util"
] | com.microsoft.azure; com.microsoft.windowsazure; java.io; java.net; java.util; | 733,743 |
Map map = new HashMap();
for (Enumeration keys = rb.getKeys(); keys.hasMoreElements();) {
String key = (String) keys.nextElement();
map.put(key, rb.getString(key));
}
return map;
}
| Map map = new HashMap(); for (Enumeration keys = rb.getKeys(); keys.hasMoreElements();) { String key = (String) keys.nextElement(); map.put(key, rb.getString(key)); } return map; } | /**
* Method to convert a ResourceBundle to a Map object.
* @param rb a given resource bundle
* @return Map a populated map
*/ | Method to convert a ResourceBundle to a Map object | convertBundleToMap | {
"repo_name": "zhonghuali/fjj",
"path": "src/main/java/com/fjj/utils/ConvertUtil.java",
"license": "apache-2.0",
"size": 3745
} | [
"java.util.Enumeration",
"java.util.HashMap",
"java.util.Map"
] | import java.util.Enumeration; import java.util.HashMap; import java.util.Map; | import java.util.*; | [
"java.util"
] | java.util; | 2,523,884 |
public StatisticService flowStats() {
return flowStatsService;
} | StatisticService function() { return flowStatsService; } | /**
* Returns a reference to the flow statistics service.
*
* @return flow statistics service reference
*/ | Returns a reference to the flow statistics service | flowStats | {
"repo_name": "LorenzReinhart/ONOSnew",
"path": "web/gui/src/main/java/org/onosproject/ui/impl/topo/util/ServicesBundle.java",
"license": "apache-2.0",
"size": 5424
} | [
"org.onosproject.net.statistic.StatisticService"
] | import org.onosproject.net.statistic.StatisticService; | import org.onosproject.net.statistic.*; | [
"org.onosproject.net"
] | org.onosproject.net; | 2,531,943 |
public Element create(String prefix, Document doc) {
return new SVGOMFEMergeElement(prefix, (AbstractDocument)doc);
}
}
protected static class FeMergeNodeElementFactory
implements ElementFactory {
public FeMergeNodeElementFactory() {} | Element function(String prefix, Document doc) { return new SVGOMFEMergeElement(prefix, (AbstractDocument)doc); } } protected static class FeMergeNodeElementFactory implements ElementFactory { public FeMergeNodeElementFactory() {} | /**
* Creates an instance of the associated element type.
*/ | Creates an instance of the associated element type | create | {
"repo_name": "SlavaRa/flex-sdk",
"path": "modules/thirdparty/batik/sources/org/apache/flex/forks/batik/dom/svg/SVGDOMImplementation.java",
"license": "apache-2.0",
"size": 54290
} | [
"org.apache.flex.forks.batik.dom.AbstractDocument",
"org.w3c.dom.Document",
"org.w3c.dom.Element"
] | import org.apache.flex.forks.batik.dom.AbstractDocument; import org.w3c.dom.Document; import org.w3c.dom.Element; | import org.apache.flex.forks.batik.dom.*; import org.w3c.dom.*; | [
"org.apache.flex",
"org.w3c.dom"
] | org.apache.flex; org.w3c.dom; | 1,786,974 |
public Parameter getParameter(final int index);
| Parameter function(final int index); | /**
* Parameter on index i.
* @param index
* @return
*/ | Parameter on index i | getParameter | {
"repo_name": "Dahie/imageflow",
"path": "src/de/danielsenff/imageflow/models/unit/ProcessingUnit.java",
"license": "gpl-2.0",
"size": 2879
} | [
"de.danielsenff.imageflow.models.parameter.Parameter"
] | import de.danielsenff.imageflow.models.parameter.Parameter; | import de.danielsenff.imageflow.models.parameter.*; | [
"de.danielsenff.imageflow"
] | de.danielsenff.imageflow; | 2,513,772 |
public static boolean isValidFileName(Object value) {
try {
String sCharRegEx = "([^\\w \\-\\_\\.\\@])";
Pattern pCharPattern = Pattern.compile(sCharRegEx);
return !pCharPattern.matcher((String) value).find();
} catch (Exception e) {
return false;
... | static boolean function(Object value) { try { String sCharRegEx = STR; Pattern pCharPattern = Pattern.compile(sCharRegEx); return !pCharPattern.matcher((String) value).find(); } catch (Exception e) { return false; } } | /**
* Checks to see if the string is valid file name
* @param value the name to check
* @return true if it is a valid filename
*/ | Checks to see if the string is valid file name | isValidFileName | {
"repo_name": "asaladino/foldermonitor",
"path": "src/Utilities/Validation.java",
"license": "mit",
"size": 26258
} | [
"java.util.regex.Pattern"
] | import java.util.regex.Pattern; | import java.util.regex.*; | [
"java.util"
] | java.util; | 873,991 |
public void exportDotFile() throws SQLException, IOException {
Connection con = null;
Statement stmt = null;
ResultSet rs = null;
PrintWriter out = null;
try {
out = new PrintWriter(new BufferedWriter(new FileWriter(dotFile)));
out.println("digraph " +... | void function() throws SQLException, IOException { Connection con = null; Statement stmt = null; ResultSet rs = null; PrintWriter out = null; try { out = new PrintWriter(new BufferedWriter(new FileWriter(dotFile))); out.println(STR + project.getName()); out.println("{"); List<MungeProcess> mps = project.getValidatingMu... | /**
* Saves a dot file representing the current contents of the match
* result table.
*
* @throws SQLObjectRuntimeException If there are any problems accessing
* the SQLObjects of the {@link #project}.
*/ | Saves a dot file representing the current contents of the match result table | exportDotFile | {
"repo_name": "SQLPower/power-matchmaker",
"path": "src/ca/sqlpower/matchmaker/graph/MatchPoolDotExport.java",
"license": "gpl-3.0",
"size": 12497
} | [
"ca.sqlpower.architect.ddl.DDLUtils",
"ca.sqlpower.matchmaker.munge.MungeProcess",
"ca.sqlpower.sql.SQL",
"java.io.BufferedWriter",
"java.io.FileWriter",
"java.io.IOException",
"java.io.PrintWriter",
"java.sql.Connection",
"java.sql.ResultSet",
"java.sql.SQLException",
"java.sql.Statement",
"j... | import ca.sqlpower.architect.ddl.DDLUtils; import ca.sqlpower.matchmaker.munge.MungeProcess; import ca.sqlpower.sql.SQL; import java.io.BufferedWriter; import java.io.FileWriter; import java.io.IOException; import java.io.PrintWriter; import java.sql.Connection; import java.sql.ResultSet; import java.sql.SQLException; ... | import ca.sqlpower.architect.ddl.*; import ca.sqlpower.matchmaker.munge.*; import ca.sqlpower.sql.*; import java.io.*; import java.sql.*; import java.util.*; | [
"ca.sqlpower.architect",
"ca.sqlpower.matchmaker",
"ca.sqlpower.sql",
"java.io",
"java.sql",
"java.util"
] | ca.sqlpower.architect; ca.sqlpower.matchmaker; ca.sqlpower.sql; java.io; java.sql; java.util; | 596,763 |
@Override
public void validate(Object obj, Errors errors) {
final RadiologyReport radiologyReport = (RadiologyReport) obj;
if (radiologyReport == null) {
errors.reject("error.general");
} else {
ValidationUtils.rejectIfEmptyOrWhitespace(errors, "principalResultsIn... | void function(Object obj, Errors errors) { final RadiologyReport radiologyReport = (RadiologyReport) obj; if (radiologyReport == null) { errors.reject(STR); } else { ValidationUtils.rejectIfEmptyOrWhitespace(errors, STR, STR, STR); ValidationUtils.rejectIfEmptyOrWhitespace(errors, "body", STR, STR); } } | /**
* Checks the form object for any inconsistencies/errors
*
* @see org.springframework.validation.Validator#validate(Object, Errors)
* @should fail validation if radiology report is null
* @should fail validation if principal results interpreter is null or empty or whitespaces only
* @sh... | Checks the form object for any inconsistencies/errors | validate | {
"repo_name": "openmrs/openmrs-module-radiologydcm4chee",
"path": "api/src/main/java/org/openmrs/module/radiology/report/RadiologyReportValidator.java",
"license": "mpl-2.0",
"size": 2461
} | [
"org.springframework.validation.Errors",
"org.springframework.validation.ValidationUtils"
] | import org.springframework.validation.Errors; import org.springframework.validation.ValidationUtils; | import org.springframework.validation.*; | [
"org.springframework.validation"
] | org.springframework.validation; | 2,730,675 |
public Tuple encodedBitDescription(int bitOffset, boolean formatted) {
//Find which field it's in
List<Tuple> description = getDescription();
int len = description.size();
String prevFieldName = null;
int prevFieldOffset = -1;
int offset = -1;
for(int i = 0;i < len;i++) {
Tuple t = description.get(i... | Tuple function(int bitOffset, boolean formatted) { List<Tuple> description = getDescription(); int len = description.size(); String prevFieldName = null; int prevFieldOffset = -1; int offset = -1; for(int i = 0;i < len;i++) { Tuple t = description.get(i); if(formatted) { offset = ((int)t.get(1)) + 1; if(bitOffset == of... | /**
* Return a description of the given bit in the encoded output.
* This will include the field name and the offset within the field.
* @param bitOffset Offset of the bit to get the description of
* @param formatted If True, the bitOffset is w.r.t. formatted output,
* which i... | Return a description of the given bit in the encoded output. This will include the field name and the offset within the field | encodedBitDescription | {
"repo_name": "antidata/htm.java",
"path": "src/main/java/org/numenta/nupic/encoders/Encoder.java",
"license": "agpl-3.0",
"size": 41162
} | [
"java.util.List",
"org.numenta.nupic.util.Tuple"
] | import java.util.List; import org.numenta.nupic.util.Tuple; | import java.util.*; import org.numenta.nupic.util.*; | [
"java.util",
"org.numenta.nupic"
] | java.util; org.numenta.nupic; | 527,021 |
public ContainerServiceOrchestratorProfile orchestratorProfile() {
return this.orchestratorProfile;
} | ContainerServiceOrchestratorProfile function() { return this.orchestratorProfile; } | /**
* Get the orchestratorProfile property: Profile for the container service orchestrator.
*
* @return the orchestratorProfile value.
*/ | Get the orchestratorProfile property: Profile for the container service orchestrator | orchestratorProfile | {
"repo_name": "selvasingh/azure-sdk-for-java",
"path": "sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ContainerServiceInner.java",
"license": "mit",
"size": 10379
} | [
"com.azure.resourcemanager.containerservice.models.ContainerServiceOrchestratorProfile"
] | import com.azure.resourcemanager.containerservice.models.ContainerServiceOrchestratorProfile; | import com.azure.resourcemanager.containerservice.models.*; | [
"com.azure.resourcemanager"
] | com.azure.resourcemanager; | 1,606,041 |
public void testCreateBigIndex() throws IOException {
ArrayList<String> images = FileUtils.getAllImages(new File(testExtensive), true);
indexFiles("ColorHist: ", images, DocumentBuilderFactory.getColorHistogramDocumentBuilder(), indexPath + "-extensive");
indexFiles("CEDD: ", images, Docu... | void function() throws IOException { ArrayList<String> images = FileUtils.getAllImages(new File(testExtensive), true); indexFiles(STR, images, DocumentBuilderFactory.getColorHistogramDocumentBuilder(), indexPath + STR); indexFiles(STR, images, DocumentBuilderFactory.getCEDDDocumentBuilder(), indexPath + STR); indexFile... | /**
* Tests the runtime for creating an index based on the Wang data set.
*
* @throws IOException
*/ | Tests the runtime for creating an index based on the Wang data set | testCreateBigIndex | {
"repo_name": "kreyssel/lire",
"path": "core/src/test/java/net/semanticmetadata/lire/RuntimeTest.java",
"license": "gpl-2.0",
"size": 9712
} | [
"java.io.File",
"java.io.IOException",
"java.util.ArrayList",
"net.semanticmetadata.lire.utils.FileUtils"
] | import java.io.File; import java.io.IOException; import java.util.ArrayList; import net.semanticmetadata.lire.utils.FileUtils; | import java.io.*; import java.util.*; import net.semanticmetadata.lire.utils.*; | [
"java.io",
"java.util",
"net.semanticmetadata.lire"
] | java.io; java.util; net.semanticmetadata.lire; | 2,318,198 |
public void lock(Contentlet contentlet, User user, boolean respectFrontendRoles)throws DotDataException, DotSecurityException, DotContentletStateException;
| void function(Contentlet contentlet, User user, boolean respectFrontendRoles)throws DotDataException, DotSecurityException, DotContentletStateException; | /**
* Use to lock a contentlet
* @param contentlet
* @param user
* @param respectFrontendRoles
* @throws DotDataException
* @throws DotSecurityException
* @throws DotContentletStateException - if the contentlet is null
*/ | Use to lock a contentlet | lock | {
"repo_name": "zhiqinghuang/core",
"path": "src/com/dotmarketing/portlets/contentlet/business/ContentletAPI.java",
"license": "gpl-3.0",
"size": 64036
} | [
"com.dotmarketing.exception.DotDataException",
"com.dotmarketing.exception.DotSecurityException",
"com.dotmarketing.portlets.contentlet.model.Contentlet",
"com.liferay.portal.model.User"
] | import com.dotmarketing.exception.DotDataException; import com.dotmarketing.exception.DotSecurityException; import com.dotmarketing.portlets.contentlet.model.Contentlet; import com.liferay.portal.model.User; | import com.dotmarketing.exception.*; import com.dotmarketing.portlets.contentlet.model.*; import com.liferay.portal.model.*; | [
"com.dotmarketing.exception",
"com.dotmarketing.portlets",
"com.liferay.portal"
] | com.dotmarketing.exception; com.dotmarketing.portlets; com.liferay.portal; | 1,733,277 |
public Principal pushRole(Principal user, String role); | Principal function(Principal user, String role); | /** Push role onto a Principal.
* This method is used to add a role to an existing principal.
* @param user An existing UserPrincipal or null for an anonymous user.
* @param role The role to add.
* @return A new UserPrincipal object that wraps the passed user, but
* with the added role.
*/ | Push role onto a Principal. This method is used to add a role to an existing principal | pushRole | {
"repo_name": "nagyistoce/Wilma",
"path": "browsermob-proxy/src/main/java/net/lightbody/bmp/proxy/jetty/http/UserRealm.java",
"license": "gpl-3.0",
"size": 5310
} | [
"java.security.Principal"
] | import java.security.Principal; | import java.security.*; | [
"java.security"
] | java.security; | 66,374 |
Observable<ComapiResult<Map<String, Object>>> doGetProfile(@NonNull final String token, @NonNull final String profileId) {
return wrapObservable(service.getProfile(AuthManager.addAuthPrefix(token), apiSpaceId, profileId).map(mapToComapiResult()), log, "Getting profile " + profileId);
} | Observable<ComapiResult<Map<String, Object>>> doGetProfile(@NonNull final String token, @NonNull final String profileId) { return wrapObservable(service.getProfile(AuthManager.addAuthPrefix(token), apiSpaceId, profileId).map(mapToComapiResult()), log, STR + profileId); } | /**
* Get profile details from the service.
*
* @param token Comapi access token.
* @param profileId Profile Id of the user.
* @return Profile details from the service.
*/ | Get profile details from the service | doGetProfile | {
"repo_name": "comapi/comapi-sdk-android",
"path": "COMAPI/foundation/src/main/java/com/comapi/internal/network/ServiceApiWrapper.java",
"license": "mit",
"size": 18279
} | [
"android.support.annotation.NonNull",
"java.util.Map"
] | import android.support.annotation.NonNull; import java.util.Map; | import android.support.annotation.*; import java.util.*; | [
"android.support",
"java.util"
] | android.support; java.util; | 37,091 |
public static URI getClientIpFromRequest(final HttpServletRequest request,
final HawkbitSecurityProperties securityProperties) {
return getClientIpFromRequest(request, securityProperties.getClients().getRemoteIpHeader(),
securityProperties.getClients().isTrackRemoteIp());
}
... | static URI function(final HttpServletRequest request, final HawkbitSecurityProperties securityProperties) { return getClientIpFromRequest(request, securityProperties.getClients().getRemoteIpHeader(), securityProperties.getClients().isTrackRemoteIp()); } /** * Retrieves the string based IP address from a given * {@link ... | /**
* Retrieves the string based IP address from a given
* {@link HttpServletRequest} by either the
* {@link HttpHeaders#X_FORWARDED_FOR} or by the
* {@link HttpServletRequest#getRemoteAddr()} methods.
*
* @param request
* the {@link HttpServletRequest} to determine the IP ... | Retrieves the string based IP address from a given <code>HttpServletRequest</code> by either the <code>HttpHeaders#X_FORWARDED_FOR</code> or by the <code>HttpServletRequest#getRemoteAddr()</code> methods | getClientIpFromRequest | {
"repo_name": "StBurcher/hawkbit",
"path": "hawkbit-security-core/src/main/java/org/eclipse/hawkbit/util/IpUtil.java",
"license": "epl-1.0",
"size": 6447
} | [
"com.google.common.net.HttpHeaders",
"javax.servlet.http.HttpServletRequest",
"org.eclipse.hawkbit.security.HawkbitSecurityProperties"
] | import com.google.common.net.HttpHeaders; import javax.servlet.http.HttpServletRequest; import org.eclipse.hawkbit.security.HawkbitSecurityProperties; | import com.google.common.net.*; import javax.servlet.http.*; import org.eclipse.hawkbit.security.*; | [
"com.google.common",
"javax.servlet",
"org.eclipse.hawkbit"
] | com.google.common; javax.servlet; org.eclipse.hawkbit; | 1,814,685 |
public void setTListTypeKey(ObjectKey key) throws TorqueException
{
setCategory(new Integer(((NumberKey) key).intValue()));
}
private static List<String> fieldNames = null; | void function(ObjectKey key) throws TorqueException { setCategory(new Integer(((NumberKey) key).intValue())); } private static List<String> fieldNames = null; | /**
* Provides convenient way to set a relationship based on a
* ObjectKey, for example
* <code>bar.setFooKey(foo.getPrimaryKey())</code>
*
*/ | Provides convenient way to set a relationship based on a ObjectKey, for example <code>bar.setFooKey(foo.getPrimaryKey())</code> | setTListTypeKey | {
"repo_name": "trackplus/Genji",
"path": "src/main/java/com/aurel/track/persist/BaseTWorkFlowCategory.java",
"license": "gpl-3.0",
"size": 27582
} | [
"java.util.List",
"org.apache.torque.TorqueException",
"org.apache.torque.om.NumberKey",
"org.apache.torque.om.ObjectKey"
] | import java.util.List; import org.apache.torque.TorqueException; import org.apache.torque.om.NumberKey; import org.apache.torque.om.ObjectKey; | import java.util.*; import org.apache.torque.*; import org.apache.torque.om.*; | [
"java.util",
"org.apache.torque"
] | java.util; org.apache.torque; | 1,195,891 |
private void postGuiInit()
{
this.minSNPCountSpinner.setModel(this.minSNPCountSpinnerModel);
this.minStrainCountSpinner.setModel(this.minStrainCountSpinnerModel);
this.helpButton.addActionListener(new ActionListener()
{
/**
* {@inheritDoc} | void function() { this.minSNPCountSpinner.setModel(this.minSNPCountSpinnerModel); this.minStrainCountSpinner.setModel(this.minStrainCountSpinnerModel); this.helpButton.addActionListener(new ActionListener() { /** * {@inheritDoc} | /**
* do the initialization that the GUI builder doesn't handle
*/ | do the initialization that the GUI builder doesn't handle | postGuiInit | {
"repo_name": "cgd/bham",
"path": "modules/main/src/java/org/jax/bham/infer/InferHaplotypeBlocksDialog.java",
"license": "gpl-3.0",
"size": 12075
} | [
"java.awt.event.ActionListener"
] | import java.awt.event.ActionListener; | import java.awt.event.*; | [
"java.awt"
] | java.awt; | 599,142 |
public void deleteObject(Integer id) throws NoConnectionException, BDException {
objectDao.delete(id);
} | void function(Integer id) throws NoConnectionException, BDException { objectDao.delete(id); } | /** Deletes a object
*
* @param id
* @throws NoConnectionException
* @throws BDException
*/ | Deletes a object | deleteObject | {
"repo_name": "OurMap/OurMap",
"path": "OurMap/src/com/bnmi/ourmap/control/EasyManager.java",
"license": "bsd-3-clause",
"size": 68811
} | [
"com.inga.exception.BDException",
"com.inga.exception.NoConnectionException"
] | import com.inga.exception.BDException; import com.inga.exception.NoConnectionException; | import com.inga.exception.*; | [
"com.inga.exception"
] | com.inga.exception; | 2,553,582 |
//-------------------//
// intersectedGlyphs //
//-------------------//
public static Set<Glyph> intersectedGlyphs (Collection<? extends Glyph> collection,
Area area)
{
Set<Glyph> set = new LinkedHashSet<>();
if (collection !=... | static Set<Glyph> function (Collection<? extends Glyph> collection, Area area) { Set<Glyph> set = new LinkedHashSet<>(); if (collection != null) { for (Glyph glyph : collection) { if (area.intersects(glyph.getBounds())) { set.add(glyph); } } } return set; } | /**
* Look up in a collection of glyph instances for <b>all</b> glyph
* instances intersected by a provided area.
*
* @param collection the collection of glyph instances to be browsed
* @param area the intersecting area
* @return the glyph instances found, which may be an empty... | Look up in a collection of glyph instances for all glyph instances intersected by a provided area | intersectedGlyphs | {
"repo_name": "Audiveris/audiveris",
"path": "src/main/org/audiveris/omr/glyph/Glyphs.java",
"license": "agpl-3.0",
"size": 22866
} | [
"java.awt.geom.Area",
"java.util.Collection",
"java.util.LinkedHashSet",
"java.util.Set"
] | import java.awt.geom.Area; import java.util.Collection; import java.util.LinkedHashSet; import java.util.Set; | import java.awt.geom.*; import java.util.*; | [
"java.awt",
"java.util"
] | java.awt; java.util; | 1,882,972 |
public PrecisionMethod getPrecisionMethod() {
return filterSettings.getPrecisionMethod();
} | PrecisionMethod function() { return filterSettings.getPrecisionMethod(); } | /**
* Gets the precision method used to calculate the precision.
*
* @return the precision method
*/ | Gets the precision method used to calculate the precision | getPrecisionMethod | {
"repo_name": "aherbert/GDSC-SMLM",
"path": "src/main/java/uk/ac/sussex/gdsc/smlm/engine/FitConfiguration.java",
"license": "gpl-3.0",
"size": 133615
} | [
"uk.ac.sussex.gdsc.smlm.data.config.FitProtos"
] | import uk.ac.sussex.gdsc.smlm.data.config.FitProtos; | import uk.ac.sussex.gdsc.smlm.data.config.*; | [
"uk.ac.sussex"
] | uk.ac.sussex; | 203,986 |
public TGetAllCatalogObjectsResponse getCatalogObjects(long fromVersion) {
TGetAllCatalogObjectsResponse resp = new TGetAllCatalogObjectsResponse();
resp.setObjects(new ArrayList<TCatalogObject>());
resp.setMax_catalog_version(Catalog.INITIAL_CATALOG_VERSION);
// Take a lock on the catalog to ensure ... | TGetAllCatalogObjectsResponse function(long fromVersion) { TGetAllCatalogObjectsResponse resp = new TGetAllCatalogObjectsResponse(); resp.setObjects(new ArrayList<TCatalogObject>()); resp.setMax_catalog_version(Catalog.INITIAL_CATALOG_VERSION); catalogLock_.readLock().lock(); try { for (String dbName: getDbNames(null))... | /**
* Returns all known objects in the Catalog (Tables, Views, Databases, and
* Functions). Some metadata may be skipped for objects that have a catalog
* version < the specified "fromVersion".
* Skips builtins.
*/ | Returns all known objects in the Catalog (Tables, Views, Databases, and Functions). Some metadata may be skipped for objects that have a catalog version < the specified "fromVersion". Skips builtins | getCatalogObjects | {
"repo_name": "cloudera/recordservice",
"path": "fe/src/main/java/com/cloudera/impala/catalog/CatalogServiceCatalog.java",
"license": "apache-2.0",
"size": 47559
} | [
"com.cloudera.impala.thrift.TCatalog",
"com.cloudera.impala.thrift.TCatalogObject",
"com.cloudera.impala.thrift.TCatalogObjectType",
"com.cloudera.impala.thrift.TGetAllCatalogObjectsResponse",
"com.cloudera.impala.thrift.TTable",
"com.cloudera.impala.util.PatternMatcher",
"java.util.ArrayList"
] | import com.cloudera.impala.thrift.TCatalog; import com.cloudera.impala.thrift.TCatalogObject; import com.cloudera.impala.thrift.TCatalogObjectType; import com.cloudera.impala.thrift.TGetAllCatalogObjectsResponse; import com.cloudera.impala.thrift.TTable; import com.cloudera.impala.util.PatternMatcher; import java.util.... | import com.cloudera.impala.thrift.*; import com.cloudera.impala.util.*; import java.util.*; | [
"com.cloudera.impala",
"java.util"
] | com.cloudera.impala; java.util; | 2,369,597 |
@Override
public void showOnboarding(boolean useDialogOnboarding, String experimentIds,
Map<String, String> parameters, Callback<Integer> callback) {
hideOnboarding();
if (useDialogOnboarding) {
mOnboardingCoordinator =
mOnboardingCoordinatorFactory.cr... | void function(boolean useDialogOnboarding, String experimentIds, Map<String, String> parameters, Callback<Integer> callback) { hideOnboarding(); if (useDialogOnboarding) { mOnboardingCoordinator = mOnboardingCoordinatorFactory.createDialogOnboardingCoordinator( experimentIds, parameters); } else { mOnboardingCoordinato... | /**
* Shows the onboarding to the user. Also takes ownership of the shown overlay coordinator after
* the onboarding is finished such that the regular startup can reuse it.
*/ | Shows the onboarding to the user. Also takes ownership of the shown overlay coordinator after the onboarding is finished such that the regular startup can reuse it | showOnboarding | {
"repo_name": "nwjs/chromium.src",
"path": "chrome/android/features/autofill_assistant/java/src/org/chromium/chrome/browser/autofill_assistant/AssistantDependenciesImpl.java",
"license": "bsd-3-clause",
"size": 6593
} | [
"java.util.Map",
"org.chromium.base.Callback",
"org.chromium.chrome.browser.autofill_assistant.onboarding.AssistantOnboardingResult"
] | import java.util.Map; import org.chromium.base.Callback; import org.chromium.chrome.browser.autofill_assistant.onboarding.AssistantOnboardingResult; | import java.util.*; import org.chromium.base.*; import org.chromium.chrome.browser.autofill_assistant.onboarding.*; | [
"java.util",
"org.chromium.base",
"org.chromium.chrome"
] | java.util; org.chromium.base; org.chromium.chrome; | 2,027,215 |
public static void main(String[] args)
{
}
private final static ScheduledExecutorService executor = Executors.newSingleThreadScheduledExecutor();
private static final long tickUnit = Long.parseLong(System.getProperty("notify.systimer.tick", "10"));
private static volatile long time = System.currentTime... | static void function(String[] args) { } private final static ScheduledExecutorService executor = Executors.newSingleThreadScheduledExecutor(); private static final long tickUnit = Long.parseLong(System.getProperty(STR, "10")); private static volatile long time = System.currentTimeMillis(); private static class TimerTic... | /**
* The main method.
*
* @param args the arguments
*/ | The main method | main | {
"repo_name": "tywo45/talent-aio",
"path": "core/talent-aio-common/src/main/java/com/talent/aio/common/utils/SystemTimer.java",
"license": "lgpl-2.1",
"size": 2287
} | [
"java.util.concurrent.Executors",
"java.util.concurrent.ScheduledExecutorService"
] | import java.util.concurrent.Executors; import java.util.concurrent.ScheduledExecutorService; | import java.util.concurrent.*; | [
"java.util"
] | java.util; | 496,452 |
public void setClassPropertyResolutionStyle(Configuration.PropertyResolutionStyle classPropertyResolutionStyle)
{
this.classPropertyResolutionStyle = classPropertyResolutionStyle;
}
}
public static class Logging implements Serializable
{
private bool... | void function(Configuration.PropertyResolutionStyle classPropertyResolutionStyle) { this.classPropertyResolutionStyle = classPropertyResolutionStyle; } } public static class Logging implements Serializable { private boolean enableExecutionDebug; private boolean enableTimerDebug; private boolean enableQueryPlan; private... | /**
* Sets the property resolution style to use for resolving property names
* of Java classes.
* @param classPropertyResolutionStyle style of property resolution
*/ | Sets the property resolution style to use for resolving property names of Java classes | setClassPropertyResolutionStyle | {
"repo_name": "intelie/esper",
"path": "esper/src/main/java/com/espertech/esper/client/ConfigurationEngineDefaults.java",
"license": "gpl-2.0",
"size": 54621
} | [
"java.io.Serializable"
] | import java.io.Serializable; | import java.io.*; | [
"java.io"
] | java.io; | 553,712 |
public Adapter createOrganizationLocationAdapter() {
return null;
} | Adapter function() { return null; } | /**
* Creates a new adapter for an object of class '{@link de.oklab.leipzig.oparl.OrganizationLocation <em>Organization Location</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cas... | Creates a new adapter for an object of class '<code>de.oklab.leipzig.oparl.OrganizationLocation Organization Location</code>'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. | createOrganizationLocationAdapter | {
"repo_name": "joergreichert/stadtratmonitor-utils",
"path": "plugins/de.oklab.leipzig.oparl.model/src-gen/de/oklab/leipzig/oparl/util/OparlAdapterFactory.java",
"license": "epl-1.0",
"size": 24385
} | [
"org.eclipse.emf.common.notify.Adapter"
] | import org.eclipse.emf.common.notify.Adapter; | import org.eclipse.emf.common.notify.*; | [
"org.eclipse.emf"
] | org.eclipse.emf; | 1,649,508 |
@Override
public Adapter createLocalTranslationAdapter() {
if (localTranslationItemProvider == null) {
localTranslationItemProvider = new LocalTranslationItemProvider(this);
}
return localTranslationItemProvider;
}
protected TranslationsItemProvider translationsItemProvider; | Adapter function() { if (localTranslationItemProvider == null) { localTranslationItemProvider = new LocalTranslationItemProvider(this); } return localTranslationItemProvider; } protected TranslationsItemProvider translationsItemProvider; | /**
* This creates an adapter for a {@link com.odcgroup.translation.translationDsl.LocalTranslation}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/ | This creates an adapter for a <code>com.odcgroup.translation.translationDsl.LocalTranslation</code>. | createLocalTranslationAdapter | {
"repo_name": "debabratahazra/DS",
"path": "designstudio/components/workbench/core/com.odcgroup.translation.dsl.edit/src/com/odcgroup/translation/translationDsl/provider/TranslationDslItemProviderAdapterFactory.java",
"license": "epl-1.0",
"size": 7486
} | [
"org.eclipse.emf.common.notify.Adapter"
] | import org.eclipse.emf.common.notify.Adapter; | import org.eclipse.emf.common.notify.*; | [
"org.eclipse.emf"
] | org.eclipse.emf; | 2,480,076 |
public void cachePublishedResources(String cacheKey, List<CmsPublishedResource> publishedResources) {
if (m_disabled.get(CacheType.PUBLISHED_RESOURCES) != null) {
return;
}
m_cachePublishedResources.put(cacheKey, publishedResources);
} | void function(String cacheKey, List<CmsPublishedResource> publishedResources) { if (m_disabled.get(CacheType.PUBLISHED_RESOURCES) != null) { return; } m_cachePublishedResources.put(cacheKey, publishedResources); } | /**
* Caches the given published resources list under the given cache key.<p>
*
* @param cacheKey the cache key
* @param publishedResources the published resources list to cache
*/ | Caches the given published resources list under the given cache key | cachePublishedResources | {
"repo_name": "serrapos/opencms-core",
"path": "src/org/opencms/monitor/CmsMemoryMonitor.java",
"license": "lgpl-2.1",
"size": 86746
} | [
"java.util.List",
"org.opencms.db.CmsPublishedResource"
] | import java.util.List; import org.opencms.db.CmsPublishedResource; | import java.util.*; import org.opencms.db.*; | [
"java.util",
"org.opencms.db"
] | java.util; org.opencms.db; | 1,035,162 |
static int staticLevel(Symbol sym) {
int level = 0;
do {
if ((sym.flags() & STATIC) != 0)
level++;
sym = sym.owner;
} while (sym.kind != PCK);
return level;
} | static int staticLevel(Symbol sym) { int level = 0; do { if ((sym.flags() & STATIC) != 0) level++; sym = sym.owner; } while (sym.kind != PCK); return level; } | /**
* The static level of a symbol is the number of prefixing static flags for
* the symbol and any enclosing class or member declarations.
*/ | The static level of a symbol is the number of prefixing static flags for the symbol and any enclosing class or member declarations | staticLevel | {
"repo_name": "nileshpatelksy/hello-pod-cast",
"path": "archive/FILE/Compiler/java_GJC1.42_src/src/com/sun/tools/javac/v8/comp/Resolve.java",
"license": "apache-2.0",
"size": 42456
} | [
"com.sun.tools.javac.v8.code.Symbol"
] | import com.sun.tools.javac.v8.code.Symbol; | import com.sun.tools.javac.v8.code.*; | [
"com.sun.tools"
] | com.sun.tools; | 2,693,576 |
public static boolean hasKerberosKeyTab(Subject subject) {
return !subject.getPrivateCredentials(KeyTab.class).isEmpty();
} | static boolean function(Subject subject) { return !subject.getPrivateCredentials(KeyTab.class).isEmpty(); } | /**
* Check if the subject contains Kerberos keytab related objects.
* The Kerberos keytab object attached in subject has been changed
* from KerberosKey (JDK 7) to KeyTab (JDK 8)
*
*
* @param subject subject to be checked
* @return true if the subject contains Kerberos keytab
*/ | Check if the subject contains Kerberos keytab related objects. The Kerberos keytab object attached in subject has been changed from KerberosKey (JDK 7) to KeyTab (JDK 8) | hasKerberosKeyTab | {
"repo_name": "apurtell/hadoop",
"path": "hadoop-common-project/hadoop-auth/src/main/java/org/apache/hadoop/security/authentication/util/KerberosUtil.java",
"license": "apache-2.0",
"size": 15869
} | [
"javax.security.auth.Subject",
"javax.security.auth.kerberos.KeyTab"
] | import javax.security.auth.Subject; import javax.security.auth.kerberos.KeyTab; | import javax.security.auth.*; import javax.security.auth.kerberos.*; | [
"javax.security"
] | javax.security; | 1,440,029 |
public void removeListener(INotifyChangedListener notifyChangedListener) {
changeNotifier.removeListener(notifyChangedListener);
}
| void function(INotifyChangedListener notifyChangedListener) { changeNotifier.removeListener(notifyChangedListener); } | /**
* This removes a listener.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/ | This removes a listener. | removeListener | {
"repo_name": "openmapsoftware/mappingtools",
"path": "openmap-mapper-edit/src/main/java/com/openMap1/mapper/provider/MapperItemProviderAdapterFactory.java",
"license": "epl-1.0",
"size": 26253
} | [
"org.eclipse.emf.edit.provider.INotifyChangedListener"
] | import org.eclipse.emf.edit.provider.INotifyChangedListener; | import org.eclipse.emf.edit.provider.*; | [
"org.eclipse.emf"
] | org.eclipse.emf; | 2,588,707 |
protected void importRelations(CmsResource resource, Element parentElement) {
// Get the nodes for the relations
List relationElements = parentElement.selectNodes("./" + A_CmsImport.N_RELATIONS + "/" + A_CmsImport.N_RELATION);
List relations = new ArrayList();
// iterate ov... | void function(CmsResource resource, Element parentElement) { List relationElements = parentElement.selectNodes("./" + A_CmsImport.N_RELATIONS + "/" + A_CmsImport.N_RELATION); List relations = new ArrayList(); Iterator itRelations = relationElements.iterator(); while (itRelations.hasNext()) { Element relationElement = (... | /**
* Reads all the relations of the resource from the <code>manifest.xml</code> file
* and adds them to the according resource.<p>
*
* @param resource the resource to import the relations for
* @param parentElement the current element
*/ | Reads all the relations of the resource from the <code>manifest.xml</code> file and adds them to the according resource | importRelations | {
"repo_name": "serrapos/opencms-core",
"path": "src/org/opencms/importexport/CmsImportVersion5.java",
"license": "lgpl-2.1",
"size": 35724
} | [
"java.util.ArrayList",
"java.util.Iterator",
"java.util.List",
"org.dom4j.Element",
"org.opencms.file.CmsResource",
"org.opencms.relations.CmsRelation",
"org.opencms.relations.CmsRelationType",
"org.opencms.util.CmsUUID"
] | import java.util.ArrayList; import java.util.Iterator; import java.util.List; import org.dom4j.Element; import org.opencms.file.CmsResource; import org.opencms.relations.CmsRelation; import org.opencms.relations.CmsRelationType; import org.opencms.util.CmsUUID; | import java.util.*; import org.dom4j.*; import org.opencms.file.*; import org.opencms.relations.*; import org.opencms.util.*; | [
"java.util",
"org.dom4j",
"org.opencms.file",
"org.opencms.relations",
"org.opencms.util"
] | java.util; org.dom4j; org.opencms.file; org.opencms.relations; org.opencms.util; | 2,907,596 |
public List getContributors() {
return (_contributors==null) ? (_contributors=new ArrayList()) : _contributors;
}
| List function() { return (_contributors==null) ? (_contributors=new ArrayList()) : _contributors; } | /**
* Returns the entry contributors.
* <p>
* @return a list of Person elements with the entry contributors,
* an empty list if none.
*
*/ | Returns the entry contributors. | getContributors | {
"repo_name": "OpenNTF/collaborationtoday",
"path": "DOTSFeedMonster/org.openntf.rome/org.openntf.rome/src/com/sun/syndication/feed/atom/Entry.java",
"license": "apache-2.0",
"size": 14309
} | [
"java.util.ArrayList",
"java.util.List"
] | import java.util.ArrayList; import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 65,497 |
public RetryPolicy retryOn(List<Class<? extends Throwable>> failures);
/**
* Specifies that a retry should occur if the {@code failurePredicate} | RetryPolicy function(List<Class<? extends Throwable>> failures); /** * Specifies that a retry should occur if the {@code failurePredicate} | /**
* Specifies the failures to retry on. Any failure that is assignable from
* the {@code failures} will be retried.
*
* @throws NullPointerException
* if {@code failures} is null
* @throws IllegalArgumentException
* if failures is null or empty
*/ | Specifies the failures to retry on. Any failure that is assignable from the failures will be retried | retryOn | {
"repo_name": "Emily-Jiang/microprofile-faultTolerance-incubation",
"path": "src/main/java/org/eclipse/microprofile/faulttolerance/RetryPolicy.java",
"license": "apache-2.0",
"size": 12267
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 1,359,189 |
protected final double toRoundedDouble(double numToRound, int decimalPlaces) {
final BigDecimal bd = BigDecimal.valueOf(numToRound).setScale(
decimalPlaces, RoundingMode.HALF_EVEN);
return bd.doubleValue();
} | final double function(double numToRound, int decimalPlaces) { final BigDecimal bd = BigDecimal.valueOf(numToRound).setScale( decimalPlaces, RoundingMode.HALF_EVEN); return bd.doubleValue(); } | /**
* self-explanatory method for rounding to a specified number of decimal
* places
*
* @param numToRound
* @return double
*/ | self-explanatory method for rounding to a specified number of decimal places | toRoundedDouble | {
"repo_name": "openmainframeproject/ade",
"path": "ade-ext/src/main/java/org/openmainframe/ade/ext/stats/PeriodicStats.java",
"license": "gpl-3.0",
"size": 7810
} | [
"java.math.BigDecimal",
"java.math.RoundingMode"
] | import java.math.BigDecimal; import java.math.RoundingMode; | import java.math.*; | [
"java.math"
] | java.math; | 2,240,458 |
void flush(String tableName) throws AccumuloException, AccumuloSecurityException; | void flush(String tableName) throws AccumuloException, AccumuloSecurityException; | /**
* Initiate a flush of a table's data that is in memory. To specify a range or to wait for flush
* to complete use {@link #flush(String, Text, Text, boolean)}.
*
* @param tableName
* the name of the table
* @throws AccumuloException
* if a general error occurs. Wrapped TableNo... | Initiate a flush of a table's data that is in memory. To specify a range or to wait for flush to complete use <code>#flush(String, Text, Text, boolean)</code> | flush | {
"repo_name": "ivakegg/accumulo",
"path": "core/src/main/java/org/apache/accumulo/core/client/admin/TableOperations.java",
"license": "apache-2.0",
"size": 43874
} | [
"org.apache.accumulo.core.client.AccumuloException",
"org.apache.accumulo.core.client.AccumuloSecurityException"
] | import org.apache.accumulo.core.client.AccumuloException; import org.apache.accumulo.core.client.AccumuloSecurityException; | import org.apache.accumulo.core.client.*; | [
"org.apache.accumulo"
] | org.apache.accumulo; | 1,752,756 |
public ProtectedTransportEndpointDescription description() {
return description;
} | ProtectedTransportEndpointDescription function() { return description; } | /**
* Returns the description of this protection endpoint.
*
* @return the description
*/ | Returns the description of this protection endpoint | description | {
"repo_name": "donNewtonAlpha/onos",
"path": "core/api/src/main/java/org/onosproject/net/intent/ProtectionEndpointIntent.java",
"license": "apache-2.0",
"size": 7015
} | [
"org.onosproject.net.behaviour.protection.ProtectedTransportEndpointDescription"
] | import org.onosproject.net.behaviour.protection.ProtectedTransportEndpointDescription; | import org.onosproject.net.behaviour.protection.*; | [
"org.onosproject.net"
] | org.onosproject.net; | 1,616,942 |
public static <R, C, V> TreeBasedTable<R, C, V> create(TreeBasedTable<R, C, ? extends V> table) {
TreeBasedTable<R, C, V> result =
new TreeBasedTable<R, C, V>(table.rowComparator(), table.columnComparator());
result.putAll(table);
return result;
}
TreeBasedTable(Comparator<? super R> rowCompa... | static <R, C, V> TreeBasedTable<R, C, V> function(TreeBasedTable<R, C, ? extends V> table) { TreeBasedTable<R, C, V> result = new TreeBasedTable<R, C, V>(table.rowComparator(), table.columnComparator()); result.putAll(table); return result; } TreeBasedTable(Comparator<? super R> rowComparator, Comparator<? super C> col... | /**
* Creates a {@code TreeBasedTable} with the same mappings and sort order
* as the specified {@code TreeBasedTable}.
*/ | Creates a TreeBasedTable with the same mappings and sort order as the specified TreeBasedTable | create | {
"repo_name": "DavesMan/guava",
"path": "guava/src/com/google/common/collect/TreeBasedTable.java",
"license": "apache-2.0",
"size": 11781
} | [
"java.util.Comparator",
"java.util.Map",
"java.util.TreeMap"
] | import java.util.Comparator; import java.util.Map; import java.util.TreeMap; | import java.util.*; | [
"java.util"
] | java.util; | 552,745 |
@Test
public void getBlockIdByIndex() throws Exception {
InodeFile inodeFile = createInodeFile(1);
List<Long> blockIds = new ArrayList<>();
final int NUM_BLOCKS = 3;
for (int i = 0; i < NUM_BLOCKS; i++) {
blockIds.add(inodeFile.getNewBlockId());
}
for (int i = 0; i < NUM_BLOCKS; i++) {... | void function() throws Exception { InodeFile inodeFile = createInodeFile(1); List<Long> blockIds = new ArrayList<>(); final int NUM_BLOCKS = 3; for (int i = 0; i < NUM_BLOCKS; i++) { blockIds.add(inodeFile.getNewBlockId()); } for (int i = 0; i < NUM_BLOCKS; i++) { Assert.assertEquals(blockIds.get(i), (Long) inodeFile.g... | /**
* Tests the {@link InodeFile#getBlockIdByIndex(int)} method.
*/ | Tests the <code>InodeFile#getBlockIdByIndex(int)</code> method | getBlockIdByIndex | {
"repo_name": "yuluo-ding/alluxio",
"path": "core/server/master/src/test/java/alluxio/master/file/meta/InodeFileTest.java",
"license": "apache-2.0",
"size": 12808
} | [
"java.util.ArrayList",
"java.util.List",
"org.junit.Assert"
] | import java.util.ArrayList; import java.util.List; import org.junit.Assert; | import java.util.*; import org.junit.*; | [
"java.util",
"org.junit"
] | java.util; org.junit; | 1,724,806 |
private static Double getMaxNDVForJoinSelectivity(JoinLeafPredicateInfo jlpi,
ImmutableMap<Integer, Double> colStatMap) {
Double maxNDVSoFar = 1.0;
maxNDVSoFar = getMaxNDVFromProjections(colStatMap,
jlpi.getProjsFromLeftPartOfJoinKeysInJoinSchema(), maxNDVSoFar);
maxNDVSoFar = getMaxNDVFrom... | static Double function(JoinLeafPredicateInfo jlpi, ImmutableMap<Integer, Double> colStatMap) { Double maxNDVSoFar = 1.0; maxNDVSoFar = getMaxNDVFromProjections(colStatMap, jlpi.getProjsFromLeftPartOfJoinKeysInJoinSchema(), maxNDVSoFar); maxNDVSoFar = getMaxNDVFromProjections(colStatMap, jlpi.getProjsFromRightPartOfJoin... | /**
* Compute Max NDV to determine Join Selectivity.
*
* @param jlpi
* @param colStatMap
* Immutable Map of Projection Index (in Join Schema) to Column Stat
* @param rightProjOffSet
* @return
*/ | Compute Max NDV to determine Join Selectivity | getMaxNDVForJoinSelectivity | {
"repo_name": "nishantmonu51/hive",
"path": "ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/stats/HiveRelMdSelectivity.java",
"license": "apache-2.0",
"size": 11584
} | [
"com.google.common.collect.ImmutableMap",
"org.apache.hadoop.hive.ql.optimizer.calcite.HiveCalciteUtil"
] | import com.google.common.collect.ImmutableMap; import org.apache.hadoop.hive.ql.optimizer.calcite.HiveCalciteUtil; | import com.google.common.collect.*; import org.apache.hadoop.hive.ql.optimizer.calcite.*; | [
"com.google.common",
"org.apache.hadoop"
] | com.google.common; org.apache.hadoop; | 1,735,734 |
protected Unit getUnit() {
return unit;
}
| Unit function() { return unit; } | /**
* Gets the unit.
*
* @return unit.
*/ | Gets the unit | getUnit | {
"repo_name": "mars-sim/mars-sim",
"path": "mars-sim-ui/src/main/java/org/mars_sim/msp/ui/swing/unit_window/TabPanel.java",
"license": "gpl-3.0",
"size": 8983
} | [
"org.mars_sim.msp.core.Unit"
] | import org.mars_sim.msp.core.Unit; | import org.mars_sim.msp.core.*; | [
"org.mars_sim.msp"
] | org.mars_sim.msp; | 432,659 |
protected EJBLocalObject getSessionBeanInstance() throws NamingException, InvocationTargetException {
return newSessionBeanInstance();
} | EJBLocalObject function() throws NamingException, InvocationTargetException { return newSessionBeanInstance(); } | /**
* Return an EJB instance to delegate the call to.
* Default implementation delegates to newSessionBeanInstance.
* @throws NamingException if thrown by JNDI
* @throws InvocationTargetException if thrown by the create method
* @see #newSessionBeanInstance
*/ | Return an EJB instance to delegate the call to. Default implementation delegates to newSessionBeanInstance | getSessionBeanInstance | {
"repo_name": "mattxia/spring-2.5-analysis",
"path": "src/org/springframework/ejb/access/LocalSlsbInvokerInterceptor.java",
"license": "apache-2.0",
"size": 5650
} | [
"java.lang.reflect.InvocationTargetException",
"javax.ejb.EJBLocalObject",
"javax.naming.NamingException"
] | import java.lang.reflect.InvocationTargetException; import javax.ejb.EJBLocalObject; import javax.naming.NamingException; | import java.lang.reflect.*; import javax.ejb.*; import javax.naming.*; | [
"java.lang",
"javax.ejb",
"javax.naming"
] | java.lang; javax.ejb; javax.naming; | 1,933,690 |
public void save(BdsThread bdsThread) {
try {
// Open compressed output file
PrintStream outFile = new PrintStream(new GZIPOutputStream(new FileOutputStream(fileName)));
// Save version
outFile.print(Bds.class.getSimpleName() + "\t" + Bds.VERSION_SHORT + "\n");
// Save main thread
outFile.print... | void function(BdsThread bdsThread) { try { PrintStream outFile = new PrintStream(new GZIPOutputStream(new FileOutputStream(fileName))); outFile.print(Bds.class.getSimpleName() + "\t" + Bds.VERSION_SHORT + "\n"); outFile.print(this.serializeSave(bdsThread)); outFile.close(); } catch (IOException e) { throw new RuntimeEx... | /**
* Save data to file
*/ | Save data to file | save | {
"repo_name": "leepc12/BigDataScript",
"path": "src/org/bds/serialize/BdsSerializer.java",
"license": "apache-2.0",
"size": 17145
} | [
"java.io.FileOutputStream",
"java.io.IOException",
"java.io.PrintStream",
"java.util.zip.GZIPOutputStream",
"org.bds.Bds",
"org.bds.run.BdsThread"
] | import java.io.FileOutputStream; import java.io.IOException; import java.io.PrintStream; import java.util.zip.GZIPOutputStream; import org.bds.Bds; import org.bds.run.BdsThread; | import java.io.*; import java.util.zip.*; import org.bds.*; import org.bds.run.*; | [
"java.io",
"java.util",
"org.bds",
"org.bds.run"
] | java.io; java.util; org.bds; org.bds.run; | 2,136,802 |
public DcmElement putPN(int tag, String value) {
return put(value != null && value.length() != 0 ? StringElement
.createPN(tag, new PersonNameImpl(value, false),
getSpecificCharacterSet()) : StringElement
.createPN(tag));
} | DcmElement function(int tag, String value) { return put(value != null && value.length() != 0 ? StringElement .createPN(tag, new PersonNameImpl(value, false), getSpecificCharacterSet()) : StringElement .createPN(tag)); } | /**
* Description of the Method
*
* @param tag
* Description of the Parameter
* @param value
* Description of the Parameter
* @return Description of the Return Value
*/ | Description of the Method | putPN | {
"repo_name": "medicayun/medicayundicom",
"path": "dcm4che14/trunk/src/java/org/dcm4cheri/data/DcmObjectImpl.java",
"license": "apache-2.0",
"size": 86569
} | [
"org.dcm4che.data.DcmElement"
] | import org.dcm4che.data.DcmElement; | import org.dcm4che.data.*; | [
"org.dcm4che.data"
] | org.dcm4che.data; | 2,405,974 |
private static boolean hasDevicesChanged(SyncResponse syncResponse) {
return (null != syncResponse.deviceLists)
&& (null != syncResponse.deviceLists.changed)
&& (syncResponse.deviceLists.changed.size() > 0);
}
public static class SyncDelayReceiver extends Broad... | static boolean function(SyncResponse syncResponse) { return (null != syncResponse.deviceLists) && (null != syncResponse.deviceLists.changed) && (syncResponse.deviceLists.changed.size() > 0); } public static class SyncDelayReceiver extends BroadcastReceiver { public static final String EXTRA_INSTANCE_ID = STR; | /**
* Tells if a sync request contains some changed devices.
*
* @param syncResponse the sync response
* @return true if the response contains some changed devices.
*/ | Tells if a sync request contains some changed devices | hasDevicesChanged | {
"repo_name": "matrix-org/matrix-android-sdk",
"path": "matrix-sdk/src/main/java/org/matrix/androidsdk/sync/EventsThread.java",
"license": "apache-2.0",
"size": 27337
} | [
"android.content.BroadcastReceiver",
"org.matrix.androidsdk.rest.model.sync.SyncResponse"
] | import android.content.BroadcastReceiver; import org.matrix.androidsdk.rest.model.sync.SyncResponse; | import android.content.*; import org.matrix.androidsdk.rest.model.sync.*; | [
"android.content",
"org.matrix.androidsdk"
] | android.content; org.matrix.androidsdk; | 784,515 |
@Test
public void testGlobalFailureConcurrentToLocalFailover() throws Exception {
// the logic in this test is as follows:
// - start a job
// - cause a task failure and delay the local recovery action via the manual executor
// - cause a global failure
// - resume in local recovery action
// - va... | void function() throws Exception { final JobID jid = new JobID(); final int parallelism = 2; final SimpleSlotProvider slotProvider = new SimpleSlotProvider(jid, parallelism); final ExecutionGraph graph = createSampleGraph( jid, TestRestartPipelinedRegionStrategy::new, TestRestartStrategy.directExecuting(), slotProvider... | /**
* Tests that a terminal global failure concurrent to a local failover
* leads to a properly failed state.
*/ | Tests that a terminal global failure concurrent to a local failover leads to a properly failed state | testGlobalFailureConcurrentToLocalFailover | {
"repo_name": "fhueske/flink",
"path": "flink-runtime/src/test/java/org/apache/flink/runtime/executiongraph/ConcurrentFailoverStrategyExecutionGraphTest.java",
"license": "apache-2.0",
"size": 22265
} | [
"java.util.concurrent.CompletableFuture",
"org.apache.flink.api.common.JobID",
"org.apache.flink.runtime.execution.ExecutionState",
"org.apache.flink.runtime.execution.SuppressRestartsException",
"org.apache.flink.runtime.executiongraph.utils.SimpleSlotProvider",
"org.apache.flink.runtime.jobgraph.JobStat... | import java.util.concurrent.CompletableFuture; import org.apache.flink.api.common.JobID; import org.apache.flink.runtime.execution.ExecutionState; import org.apache.flink.runtime.execution.SuppressRestartsException; import org.apache.flink.runtime.executiongraph.utils.SimpleSlotProvider; import org.apache.flink.runtime... | import java.util.concurrent.*; import org.apache.flink.api.common.*; import org.apache.flink.runtime.execution.*; import org.apache.flink.runtime.executiongraph.utils.*; import org.apache.flink.runtime.jobgraph.*; import org.junit.*; | [
"java.util",
"org.apache.flink",
"org.junit"
] | java.util; org.apache.flink; org.junit; | 421,948 |
@Test
public void whenSubFiveMinusTwoThenThree() {
Calculator calc = new Calculator();
calc.sub(5D, 2D);
double result = calc.getResult();
double expected = 3D;
assertThat(result, is(expected));
} | void function() { Calculator calc = new Calculator(); calc.sub(5D, 2D); double result = calc.getResult(); double expected = 3D; assertThat(result, is(expected)); } | /**
* * Test.
* *
* * @author Artem Lipatov
* */ | Test. @author Artem Lipatov | whenSubFiveMinusTwoThenThree | {
"repo_name": "Clydeside/ALipatov",
"path": "chapter_001/src/test/java/ru/job4j/calculator/CalculatorTest.java",
"license": "apache-2.0",
"size": 1553
} | [
"org.hamcrest.core.Is",
"org.junit.Assert"
] | import org.hamcrest.core.Is; import org.junit.Assert; | import org.hamcrest.core.*; import org.junit.*; | [
"org.hamcrest.core",
"org.junit"
] | org.hamcrest.core; org.junit; | 255,292 |
public static MozuClient<com.mozu.api.contracts.commerceruntime.orders.Order> createOrderClient(com.mozu.api.contracts.commerceruntime.orders.Order order, String responseFields) throws Exception
{
MozuUrl url = com.mozu.api.urls.commerce.OrderUrl.createOrderUrl(responseFields);
String verb = "POST";
Class<?> ... | static MozuClient<com.mozu.api.contracts.commerceruntime.orders.Order> function(com.mozu.api.contracts.commerceruntime.orders.Order order, String responseFields) throws Exception { MozuUrl url = com.mozu.api.urls.commerce.OrderUrl.createOrderUrl(responseFields); String verb = "POST"; Class<?> clz = com.mozu.api.contrac... | /**
* Creates a new order for no-cart quick-ordering scenarios.
* <p><pre><code>
* MozuClient<com.mozu.api.contracts.commerceruntime.orders.Order> mozuClient=CreateOrderClient( order, responseFields);
* client.setBaseAddress(url);
* client.executeRequest();
* Order order = client.Result();
* </code></pre... | Creates a new order for no-cart quick-ordering scenarios. <code><code> MozuClient mozuClient=CreateOrderClient( order, responseFields); client.setBaseAddress(url); client.executeRequest(); Order order = client.Result(); </code></code> | createOrderClient | {
"repo_name": "bhewett/mozu-java",
"path": "mozu-javaasync-core/src/main/java/com/mozu/api/clients/commerce/OrderClient.java",
"license": "mit",
"size": 32506
} | [
"com.mozu.api.MozuClient",
"com.mozu.api.MozuClientFactory",
"com.mozu.api.MozuUrl"
] | import com.mozu.api.MozuClient; import com.mozu.api.MozuClientFactory; import com.mozu.api.MozuUrl; | import com.mozu.api.*; | [
"com.mozu.api"
] | com.mozu.api; | 175,285 |
@Deprecated
public Result getPreviousResult() {
return previousResult;
} | Result function() { return previousResult; } | /**
* Gets the previous result.
*
* @return the previous Result.
* @deprecated this was moved to Trans to keep the metadata stateless
*/ | Gets the previous result | getPreviousResult | {
"repo_name": "nantunes/pentaho-kettle",
"path": "engine/src/org/pentaho/di/trans/TransMeta.java",
"license": "apache-2.0",
"size": 223158
} | [
"org.pentaho.di.core.Result"
] | import org.pentaho.di.core.Result; | import org.pentaho.di.core.*; | [
"org.pentaho.di"
] | org.pentaho.di; | 1,589,564 |
//-----------------------------------------------------------------------
public DaysAdjustment getFixingDateOffset() {
return fixingDateOffset;
} | DaysAdjustment function() { return fixingDateOffset; } | /**
* Gets the offset of the FX reset fixing date from each adjusted accrual date.
* <p>
* The offset is applied to the base date specified by {@code fixingRelativeTo}.
* The offset is typically a negative number of business days.
* @return the value of the property, not null
*/ | Gets the offset of the FX reset fixing date from each adjusted accrual date. The offset is applied to the base date specified by fixingRelativeTo. The offset is typically a negative number of business days | getFixingDateOffset | {
"repo_name": "nssales/Strata",
"path": "modules/finance/src/main/java/com/opengamma/strata/finance/rate/swap/FxResetCalculation.java",
"license": "apache-2.0",
"size": 21227
} | [
"com.opengamma.strata.basics.date.DaysAdjustment"
] | import com.opengamma.strata.basics.date.DaysAdjustment; | import com.opengamma.strata.basics.date.*; | [
"com.opengamma.strata"
] | com.opengamma.strata; | 516,597 |
Artifact getArtifact(); | Artifact getArtifact(); | /**
* Returns the artifact that is the input of the linker.
*/ | Returns the artifact that is the input of the linker | getArtifact | {
"repo_name": "dhootha/bazel",
"path": "src/main/java/com/google/devtools/build/lib/rules/cpp/LinkerInput.java",
"license": "apache-2.0",
"size": 1778
} | [
"com.google.devtools.build.lib.actions.Artifact"
] | import com.google.devtools.build.lib.actions.Artifact; | import com.google.devtools.build.lib.actions.*; | [
"com.google.devtools"
] | com.google.devtools; | 455,900 |
ICloseableIterator<IBindingSet[]> iterator();
| ICloseableIterator<IBindingSet[]> iterator(); | /**
* Return an iterator which will drain the solutions from the query. The
* query will be cancelled if the iterator is
* {@link ICloseableIterator#close() closed}.
*
* @throws UnsupportedOperationException
* if this is not the query controller.
*/ | Return an iterator which will drain the solutions from the query. The query will be cancelled if the iterator is <code>ICloseableIterator#close() closed</code> | iterator | {
"repo_name": "rac021/blazegraph_1_5_3_cluster_2_nodes",
"path": "bigdata/src/java/com/bigdata/bop/engine/IRunningQuery.java",
"license": "gpl-2.0",
"size": 7124
} | [
"com.bigdata.bop.IBindingSet"
] | import com.bigdata.bop.IBindingSet; | import com.bigdata.bop.*; | [
"com.bigdata.bop"
] | com.bigdata.bop; | 1,500,047 |
String getMetaConf(String key) throws MetaException, TException; | String getMetaConf(String key) throws MetaException, TException; | /**
* get current meta variable
*/ | get current meta variable | getMetaConf | {
"repo_name": "scalingdata/Impala",
"path": "thirdparty/hive-1.2.1.2.3.0.0-2557/src/metastore/src/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java",
"license": "apache-2.0",
"size": 55997
} | [
"org.apache.hadoop.hive.metastore.api.MetaException",
"org.apache.thrift.TException"
] | import org.apache.hadoop.hive.metastore.api.MetaException; import org.apache.thrift.TException; | import org.apache.hadoop.hive.metastore.api.*; import org.apache.thrift.*; | [
"org.apache.hadoop",
"org.apache.thrift"
] | org.apache.hadoop; org.apache.thrift; | 530,889 |
protected final static String join(
final Collection<String> list, final String joinWith) {
Preconditions.checkArgument(list != null, "specified null list");
Preconditions.checkArgument(joinWith != null, "specified null joinWith string");
int cnt = 0;
StringBuilder sb = ... | final static String function( final Collection<String> list, final String joinWith) { Preconditions.checkArgument(list != null, STR); Preconditions.checkArgument(joinWith != null, STR); int cnt = 0; StringBuilder sb = new StringBuilder(); for (String item: list) { if (cnt++ > 0) sb.append(joinWith); sb.append(item); } ... | /**
* Joins the given list of string using the given join string
*
* @param list of strings
* @param joinWith string to join the list with
* @return items of the given list joined with the given join string
*/ | Joins the given list of string using the given join string | join | {
"repo_name": "paulmartel/voltdb",
"path": "src/frontend/org/voltdb/processtools/SFTPSession.java",
"license": "agpl-3.0",
"size": 35500
} | [
"com.google_voltpatches.common.base.Preconditions",
"java.util.Collection"
] | import com.google_voltpatches.common.base.Preconditions; import java.util.Collection; | import com.google_voltpatches.common.base.*; import java.util.*; | [
"com.google_voltpatches.common",
"java.util"
] | com.google_voltpatches.common; java.util; | 859,266 |
void setModelDetail(BigInteger value); | void setModelDetail(BigInteger value); | /**
* Sets the value of the '{@link CIM.IEC61970.Generation.Production.GeneratingUnit#getModelDetail <em>Model Detail</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Model Detail</em>' attribute.
* @see #getModelDetail()
* @generated
*/ | Sets the value of the '<code>CIM.IEC61970.Generation.Production.GeneratingUnit#getModelDetail Model Detail</code>' attribute. | setModelDetail | {
"repo_name": "georghinkel/ttc2017smartGrids",
"path": "solutions/ModelJoin/src/main/java/CIM/IEC61970/Generation/Production/GeneratingUnit.java",
"license": "mit",
"size": 73620
} | [
"java.math.BigInteger"
] | import java.math.BigInteger; | import java.math.*; | [
"java.math"
] | java.math; | 1,826,822 |
public Object getOldValue() {
try {
if (isOriginRemote() && this.region.isProxy()) {
return null;
}
@Unretained
Object ov = handleNotAvailableOldValue();
if (ov != null) {
boolean doCopyOnRead = getRegion().isCopyOnRead();
if (ov instanceof CachedDeserializabl... | Object function() { try { if (isOriginRemote() && this.region.isProxy()) { return null; } Object ov = handleNotAvailableOldValue(); if (ov != null) { boolean doCopyOnRead = getRegion().isCopyOnRead(); if (ov instanceof CachedDeserializable) { return callWithOffHeapLock((CachedDeserializable) ov, oldValueCD -> { if (doC... | /**
* Returns the value in the cache prior to this event. When passed to an event handler after an
* event occurs, this value reflects the value that was in the cache in this VM, not necessarily
* the value that was in the cache VM that initiated the operation.
*
* @return the value in the cache prior to... | Returns the value in the cache prior to this event. When passed to an event handler after an event occurs, this value reflects the value that was in the cache in this VM, not necessarily the value that was in the cache VM that initiated the operation | getOldValue | {
"repo_name": "smanvi-pivotal/geode",
"path": "geode-core/src/main/java/org/apache/geode/internal/cache/EntryEventImpl.java",
"license": "apache-2.0",
"size": 96596
} | [
"org.apache.geode.CopyHelper",
"org.apache.geode.internal.i18n.LocalizedStrings"
] | import org.apache.geode.CopyHelper; import org.apache.geode.internal.i18n.LocalizedStrings; | import org.apache.geode.*; import org.apache.geode.internal.i18n.*; | [
"org.apache.geode"
] | org.apache.geode; | 579,033 |
private static void gatherLocalNames(Node n, Set<String> names) {
if (n.isFunction()) {
if (NodeUtil.isFunctionDeclaration(n)) {
names.add(n.getFirstChild().getString());
}
// Don't traverse into inner function scopes;
return;
} else if (n.isName()) {
switch (n.getParent(... | static void function(Node n, Set<String> names) { if (n.isFunction()) { if (NodeUtil.isFunctionDeclaration(n)) { names.add(n.getFirstChild().getString()); } return; } else if (n.isName()) { switch (n.getParent().getToken()) { case VAR: case LET: case CONST: case CATCH: names.add(n.getString()); break; default: break; }... | /**
* Gather any names declared in the local scope.
*/ | Gather any names declared in the local scope | gatherLocalNames | {
"repo_name": "Yannic/closure-compiler",
"path": "src/com/google/javascript/jscomp/FunctionArgumentInjector.java",
"license": "apache-2.0",
"size": 20415
} | [
"com.google.javascript.rhino.Node",
"java.util.Set"
] | import com.google.javascript.rhino.Node; import java.util.Set; | import com.google.javascript.rhino.*; import java.util.*; | [
"com.google.javascript",
"java.util"
] | com.google.javascript; java.util; | 2,625,526 |
private JScrollPane getJScrollPane() {
if (jScrollPane == null) {
jScrollPane = new JScrollPane();
jScrollPane.setViewportView(getResponse());
}
return jScrollPane;
} | JScrollPane function() { if (jScrollPane == null) { jScrollPane = new JScrollPane(); jScrollPane.setViewportView(getResponse()); } return jScrollPane; } | /**
* This method initializes jScrollPane
*
* @return javax.swing.JScrollPane
*/ | This method initializes jScrollPane | getJScrollPane | {
"repo_name": "NCIP/cagrid-core",
"path": "caGrid/projects/gaards-ui/src/org/cagrid/gaards/ui/dorian/federation/RequestHostCertificateResponseWindow.java",
"license": "bsd-3-clause",
"size": 10427
} | [
"javax.swing.JScrollPane"
] | import javax.swing.JScrollPane; | import javax.swing.*; | [
"javax.swing"
] | javax.swing; | 2,020,461 |
@Override
protected void doOptions(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
resp.setHeader("Allow", "GET, HEAD, POST, PUT, OPTIONS");
} | void function(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { resp.setHeader("Allow", STR); } | /**
* Override default implementation to ensure that TRACE is correctly handled.
*
* @param req
* the {@link HttpServletRequest} object that contains the request the client made of the
* servlet
*
* @param resp
* the {@link HttpServletResponse} object that contains the... | Override default implementation to ensure that TRACE is correctly handled | doOptions | {
"repo_name": "Kurento/kurento-java",
"path": "kurento-repository/kurento-repository-internal/src/main/java/org/kurento/repository/internal/http/RepositoryHttpServlet.java",
"license": "apache-2.0",
"size": 40932
} | [
"java.io.IOException",
"javax.servlet.ServletException",
"javax.servlet.http.HttpServletRequest",
"javax.servlet.http.HttpServletResponse"
] | import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; | import java.io.*; import javax.servlet.*; import javax.servlet.http.*; | [
"java.io",
"javax.servlet"
] | java.io; javax.servlet; | 1,003,447 |
public Object removeFromEnvironment(String propName)
throws NamingException {
return env.remove(propName);
}
| Object function(String propName) throws NamingException { return env.remove(propName); } | /**
* Removes an environment property from the environment of this context.
*
* @param propName the name of the environment property to remove;
* may not be null
* @exception NamingException if a naming exception is encountered
*/ | Removes an environment property from the environment of this context | removeFromEnvironment | {
"repo_name": "c-rainstorm/jerrydog",
"path": "src/main/java/org/apache/naming/NamingContext.java",
"license": "gpl-3.0",
"size": 35764
} | [
"javax.naming.NamingException"
] | import javax.naming.NamingException; | import javax.naming.*; | [
"javax.naming"
] | javax.naming; | 1,155,465 |
Element build(); | Element build(); | /**
* Return Element of the built clipboard button. Adds the Element to the parent Widget.
* If the parent is not defined - adds Element to the parent of resource Widget
*/ | Return Element of the built clipboard button. Adds the Element to the parent Widget. If the parent is not defined - adds Element to the parent of resource Widget | build | {
"repo_name": "aljiru/che-core",
"path": "commons/che-core-commons-gwt/src/main/java/org/eclipse/che/ide/ui/zeroClipboard/ClipboardButtonBuilder.java",
"license": "epl-1.0",
"size": 2725
} | [
"com.google.gwt.dom.client.Element"
] | import com.google.gwt.dom.client.Element; | import com.google.gwt.dom.client.*; | [
"com.google.gwt"
] | com.google.gwt; | 2,002,521 |
@Deprecated
MethodOutcome create(IResource theResource); | MethodOutcome create(IResource theResource); | /**
* Implementation of the "type create" method.
*
* @param theResource
* The resource to create
* @return An outcome
* @deprecated Use {@link #create() fluent method instead}. This method will be removed.
*
*/ | Implementation of the "type create" method | create | {
"repo_name": "dhf0820/hapi-fhir-1.2",
"path": "hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/client/IGenericClient.java",
"license": "apache-2.0",
"size": 14036
} | [
"ca.uhn.fhir.model.api.IResource",
"ca.uhn.fhir.rest.api.MethodOutcome"
] | import ca.uhn.fhir.model.api.IResource; import ca.uhn.fhir.rest.api.MethodOutcome; | import ca.uhn.fhir.model.api.*; import ca.uhn.fhir.rest.api.*; | [
"ca.uhn.fhir"
] | ca.uhn.fhir; | 2,637,286 |
void observedComets(Set<String> comets)
{
synchronized (this)
{
Set<String> known=getKnownComets();
for (String comet : comets)
if (!_url.equals(comet))
observeComet(comet);
known=getKnownComets();
... | void observedComets(Set<String> comets) { synchronized (this) { Set<String> known=getKnownComets(); for (String comet : comets) if (!_url.equals(comet)) observeComet(comet); known=getKnownComets(); if (!comets.containsAll(known)) _bayeux.getChannel(STR,true).publish(_oortClient,known,null); } } | /**
* Pass observed comets.
* <p>
* Called when another comet server publishes it's list of
* known comets to the /oort/cloud channel. If the list contains
* any unknown commets, then {@link #observeComet(String)} is
* called for each.
* @param comets
*/ | Pass observed comets. Called when another comet server publishes it's list of known comets to the /oort/cloud channel. If the list contains any unknown commets, then <code>#observeComet(String)</code> is called for each | observedComets | {
"repo_name": "Groostav/CMPT880-term-project",
"path": "intruder/benchs/cometd/src/main/java/org/cometd/oort/Oort.java",
"license": "apache-2.0",
"size": 12592
} | [
"java.util.Set"
] | import java.util.Set; | import java.util.*; | [
"java.util"
] | java.util; | 1,648,199 |
public GZIPArchive.WriteEntry getEntry( final String name, final String comment, final Date creationDate ) {
crc.reset();
deflater.reset();
deflaterStream.reset();
final GZIPArchive.WriteEntry entry = new GZIPArchive.WriteEntry();
entry.setName( name );
entry.setComment( comment );
entry.deflater ... | GZIPArchive.WriteEntry function( final String name, final String comment, final Date creationDate ) { crc.reset(); deflater.reset(); deflaterStream.reset(); final GZIPArchive.WriteEntry entry = new GZIPArchive.WriteEntry(); entry.setName( name ); entry.setComment( comment ); entry.deflater = new FilterOutputStream( new... | /**
* Returns an object that can be used to write an entry in the GZIP archive.
*
* In order to write the actual entry, one must write the entry content on the {@link GZIPArchive.WriteEntry#deflater} and,
* at the end, call its <code>close()</code> method (to actually write the compressed content).
*
* ... | Returns an object that can be used to write an entry in the GZIP archive. In order to write the actual entry, one must write the entry content on the <code>GZIPArchive.WriteEntry#deflater</code> and, at the end, call its <code>close()</code> method (to actually write the compressed content) | getEntry | {
"repo_name": "MKLab-ITI/reveal-media-webservice",
"path": "src/main/java/it/unimi/di/law/warc/io/gzarc/GZIPArchiveWriter.java",
"license": "apache-2.0",
"size": 5403
} | [
"java.io.FilterOutputStream",
"java.util.Date",
"java.util.zip.DeflaterOutputStream"
] | import java.io.FilterOutputStream; import java.util.Date; import java.util.zip.DeflaterOutputStream; | import java.io.*; import java.util.*; import java.util.zip.*; | [
"java.io",
"java.util"
] | java.io; java.util; | 753,461 |
@Override
public void endElement(String namespaceURI,String localName,String qName) throws SAXException{
println("endElement...\n" + "namespaceURI: " + namespaceURI +
" localName: "+ localName + " qName: " + qName);
} | void function(String namespaceURI,String localName,String qName) throws SAXException{ println(STR + STR + namespaceURI + STR+ localName + STR + qName); } | /**
* Write endElement tag with namespaceURI, localName, qName to the file when
* meet endElement event.
* @throws IOException error happen when writing file.
*/ | Write endElement tag with namespaceURI, localName, qName to the file when meet endElement event | endElement | {
"repo_name": "lostdj/Jaklin-OpenJDK-JAXP",
"path": "test/javax/xml/jaxp/functional/org/xml/sax/ptests/ContentHandlerTest.java",
"license": "gpl-2.0",
"size": 8901
} | [
"org.xml.sax.SAXException"
] | import org.xml.sax.SAXException; | import org.xml.sax.*; | [
"org.xml.sax"
] | org.xml.sax; | 2,246,380 |
public double readDouble() throws IOException
{
switch ( type )
{
case MatDataTypes.miUINT8:
return (double)( buf.get() & 0xFF);
case MatDataTypes.miINT8:
return (double) buf.get();
case MatDataTypes.miUINT16:
re... | double function() throws IOException { switch ( type ) { case MatDataTypes.miUINT8: return (double)( buf.get() & 0xFF); case MatDataTypes.miINT8: return (double) buf.get(); case MatDataTypes.miUINT16: return (double)( buf.getShort() & 0xFFFF); case MatDataTypes.miINT16: return (double) buf.getShort(); case MatDataTypes... | /**
* Reads data (number of bytes red is determined by <i>data type</i>)
* from the stream to <code>double</code>.
*
* @return - double
* @throws IOException
*/ | Reads data (number of bytes red is determined by data type) from the stream to <code>double</code> | readDouble | {
"repo_name": "ESSICS/org.csstudio.display.builder",
"path": "databrowser3/databrowser-plugins/org.csstudio.trends.databrowser3/src/com/jmatio/io/MatFileInputStream.java",
"license": "epl-1.0",
"size": 9583
} | [
"com.jmatio.common.MatDataTypes",
"java.io.IOException"
] | import com.jmatio.common.MatDataTypes; import java.io.IOException; | import com.jmatio.common.*; import java.io.*; | [
"com.jmatio.common",
"java.io"
] | com.jmatio.common; java.io; | 2,711,333 |
protected PropertyChangeListener createPropertyChangeListener(JComponent c)
{
return new PropertyChangeHandler();
} | PropertyChangeListener function(JComponent c) { return new PropertyChangeHandler(); } | /**
* This method creates newPropertyChangeListener to listen to property changes
* occuring in the Menu
*
* @param c the menu to listen to
*
* @return The PropertyChangeListener
*/ | This method creates newPropertyChangeListener to listen to property changes occuring in the Menu | createPropertyChangeListener | {
"repo_name": "shaotuanchen/sunflower_exp",
"path": "tools/source/gcc-4.2.4/libjava/classpath/javax/swing/plaf/basic/BasicMenuUI.java",
"license": "bsd-3-clause",
"size": 15898
} | [
"java.beans.PropertyChangeListener",
"javax.swing.JComponent"
] | import java.beans.PropertyChangeListener; import javax.swing.JComponent; | import java.beans.*; import javax.swing.*; | [
"java.beans",
"javax.swing"
] | java.beans; javax.swing; | 2,520,516 |
private void openBookmarksHistoryActivity() {
Intent i = new Intent(this, BookmarksHistoryActivity.class);
startActivityForResult(i, OPEN_BOOKMARKS_HISTORY_ACTIVITY);
} | void function() { Intent i = new Intent(this, BookmarksHistoryActivity.class); startActivityForResult(i, OPEN_BOOKMARKS_HISTORY_ACTIVITY); } | /**
* Open the bookmark list.
*/ | Open the bookmark list | openBookmarksHistoryActivity | {
"repo_name": "udo-tech-team/ShadowsocksProxy",
"path": "src/org/shadowsocks/zirco/ui/activities/MainActivity.java",
"license": "gpl-3.0",
"size": 55388
} | [
"android.content.Intent"
] | import android.content.Intent; | import android.content.*; | [
"android.content"
] | android.content; | 1,713,245 |
public static void clearAllRenderParameters(ActionResponse response) {
try {
response.setRenderParameters(new HashMap<String, String[]>(0));
}
catch (IllegalStateException ex) {
// Ignore in case sendRedirect was already set.
}
} | static void function(ActionResponse response) { try { response.setRenderParameters(new HashMap<String, String[]>(0)); } catch (IllegalStateException ex) { } } | /**
* Clear all the render parameters from the {@link javax.portlet.ActionResponse}.
* This may not be called when the action will call
* {@link ActionResponse#sendRedirect sendRedirect}.
* @param response the current action response
* @see ActionResponse#setRenderParameters
*/ | Clear all the render parameters from the <code>javax.portlet.ActionResponse</code>. This may not be called when the action will call <code>ActionResponse#sendRedirect sendRedirect</code> | clearAllRenderParameters | {
"repo_name": "kingtang/spring-learn",
"path": "spring-webmvc-portlet/src/main/java/org/springframework/web/portlet/util/PortletUtils.java",
"license": "gpl-3.0",
"size": 21765
} | [
"java.util.HashMap",
"javax.portlet.ActionResponse"
] | import java.util.HashMap; import javax.portlet.ActionResponse; | import java.util.*; import javax.portlet.*; | [
"java.util",
"javax.portlet"
] | java.util; javax.portlet; | 2,183,612 |
public ManagedAccountProfiles managedAccountsProfilesGet(String xProgrammeKey, String authorization, ManagedAccountProfilesFilter request, String xCallref) throws ApiException {
ApiResponse<ManagedAccountProfiles> resp = managedAccountsProfilesGetWithHttpInfo(xProgrammeKey, authorization, request, xCallref)... | ManagedAccountProfiles function(String xProgrammeKey, String authorization, ManagedAccountProfilesFilter request, String xCallref) throws ApiException { ApiResponse<ManagedAccountProfiles> resp = managedAccountsProfilesGetWithHttpInfo(xProgrammeKey, authorization, request, xCallref); return resp.getData(); } | /**
*
* Retrieves the Managed Account Profiles which match all of the criteria specified in the given filter.
* @param xProgrammeKey This identifies your tenant and programme within OPE. The typical format is `tenantId|programmeId`, for example `team-01|3749203750`. (required)
*... | Retrieves the Managed Account Profiles which match all of the criteria specified in the given filter | managedAccountsProfilesGet | {
"repo_name": "ixaris/ope-applicationclients",
"path": "java-client/src/main/java/com/ixaris/ope/applications/client/api/ManagedAccountsApi.java",
"license": "mit",
"size": 56895
} | [
"com.ixaris.ope.applications.client.ApiException",
"com.ixaris.ope.applications.client.ApiResponse",
"com.ixaris.ope.applications.client.model.ManagedAccountProfiles",
"com.ixaris.ope.applications.client.model.ManagedAccountProfilesFilter"
] | import com.ixaris.ope.applications.client.ApiException; import com.ixaris.ope.applications.client.ApiResponse; import com.ixaris.ope.applications.client.model.ManagedAccountProfiles; import com.ixaris.ope.applications.client.model.ManagedAccountProfilesFilter; | import com.ixaris.ope.applications.client.*; import com.ixaris.ope.applications.client.model.*; | [
"com.ixaris.ope"
] | com.ixaris.ope; | 1,143,156 |
String getLastVerifiedGitlogCommitId(@Param(SITE_ID) String siteId,
@Param(CLUSTER_LOCAL_ADDRESS) String localAddress); | String getLastVerifiedGitlogCommitId(@Param(SITE_ID) String siteId, @Param(CLUSTER_LOCAL_ADDRESS) String localAddress); | /**
* Get last verified git log commit id for local studio node
* @param siteId site identifier
* @param localAddress local address
* @return commit id
*/ | Get last verified git log commit id for local studio node | getLastVerifiedGitlogCommitId | {
"repo_name": "craftercms/studio2",
"path": "src/main/java/org/craftercms/studio/api/v1/dal/SiteFeedMapper.java",
"license": "gpl-3.0",
"size": 5107
} | [
"org.apache.ibatis.annotations.Param"
] | import org.apache.ibatis.annotations.Param; | import org.apache.ibatis.annotations.*; | [
"org.apache.ibatis"
] | org.apache.ibatis; | 500,358 |
public HelpAndFeedback createHelpAndFeedback() {
return new HelpAndFeedback();
} | HelpAndFeedback function() { return new HelpAndFeedback(); } | /**
* Returns a new instance of HelpAndFeedback.
*/ | Returns a new instance of HelpAndFeedback | createHelpAndFeedback | {
"repo_name": "Pluto-tv/chromium-crosswalk",
"path": "chrome/android/java/src/org/chromium/chrome/browser/ChromeApplication.java",
"license": "bsd-3-clause",
"size": 38413
} | [
"org.chromium.chrome.browser.help.HelpAndFeedback"
] | import org.chromium.chrome.browser.help.HelpAndFeedback; | import org.chromium.chrome.browser.help.*; | [
"org.chromium.chrome"
] | org.chromium.chrome; | 2,884,344 |
public HTable createTable(byte[] tableName, byte[] family)
throws IOException{
return createTable(TableName.valueOf(tableName), new byte[][]{family});
} | HTable function(byte[] tableName, byte[] family) throws IOException{ return createTable(TableName.valueOf(tableName), new byte[][]{family}); } | /**
* Create a table.
* @param tableName
* @param family
* @return An HTable instance for the created table.
* @throws IOException
*/ | Create a table | createTable | {
"repo_name": "grokcoder/pbase",
"path": "hbase-server/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java",
"license": "apache-2.0",
"size": 132664
} | [
"java.io.IOException",
"org.apache.hadoop.hbase.client.HTable"
] | import java.io.IOException; import org.apache.hadoop.hbase.client.HTable; | import java.io.*; import org.apache.hadoop.hbase.client.*; | [
"java.io",
"org.apache.hadoop"
] | java.io; org.apache.hadoop; | 559,643 |
private void triggerEmergencyBeacon() {
var message = new StringBuilder();
// if the emergency beacon is off
// Question: could the emergency beacon itself be broken ?
message.append("Turned on emergency beacon. Request for towing with status flag(s) :");
message.append(getMissionStatus().stream().m... | void function() { var message = new StringBuilder(); message.append(STR); message.append(getMissionStatus().stream().map(MissionStatus::getName).collect(Collectors.joining(STR))); logger.info(vehicle, 20_000, message.toString()); vehicle.setEmergencyBeacon(true); } | /**
* Trigger the emergency beacon on the Mission vehicle
*/ | Trigger the emergency beacon on the Mission vehicle | triggerEmergencyBeacon | {
"repo_name": "mars-sim/mars-sim",
"path": "mars-sim-core/src/main/java/org/mars_sim/msp/core/person/ai/mission/VehicleMission.java",
"license": "gpl-3.0",
"size": 54214
} | [
"java.util.stream.Collectors"
] | import java.util.stream.Collectors; | import java.util.stream.*; | [
"java.util"
] | java.util; | 1,631,482 |
@RequestMapping(value = SECURITY_FUNCTIONS_URI_PREFIX, method = RequestMethod.POST, consumes = {"application/xml", "application/json"})
@Secured(SecurityFunctions.FN_SECURITY_FUNCTIONS_POST)
public SecurityFunction createSecurityFunction(@RequestBody SecurityFunctionCreateRequest request)
{
retu... | @RequestMapping(value = SECURITY_FUNCTIONS_URI_PREFIX, method = RequestMethod.POST, consumes = {STR, STR}) @Secured(SecurityFunctions.FN_SECURITY_FUNCTIONS_POST) SecurityFunction function(@RequestBody SecurityFunctionCreateRequest request) { return securityFunctionService.createSecurityFunction(request); } | /**
* Creates a new security function.
*
* @param request the information needed to create a security function
*
* @return the created security function
*/ | Creates a new security function | createSecurityFunction | {
"repo_name": "FINRAOS/herd",
"path": "herd-code/herd-rest/src/main/java/org/finra/herd/rest/SecurityFunctionRestController.java",
"license": "apache-2.0",
"size": 4273
} | [
"org.finra.herd.model.api.xml.SecurityFunction",
"org.finra.herd.model.api.xml.SecurityFunctionCreateRequest",
"org.finra.herd.model.dto.SecurityFunctions",
"org.springframework.security.access.annotation.Secured",
"org.springframework.web.bind.annotation.RequestBody",
"org.springframework.web.bind.annota... | import org.finra.herd.model.api.xml.SecurityFunction; import org.finra.herd.model.api.xml.SecurityFunctionCreateRequest; import org.finra.herd.model.dto.SecurityFunctions; import org.springframework.security.access.annotation.Secured; import org.springframework.web.bind.annotation.RequestBody; import org.springframewor... | import org.finra.herd.model.api.xml.*; import org.finra.herd.model.dto.*; import org.springframework.security.access.annotation.*; import org.springframework.web.bind.annotation.*; | [
"org.finra.herd",
"org.springframework.security",
"org.springframework.web"
] | org.finra.herd; org.springframework.security; org.springframework.web; | 2,511,921 |
private Uri updatedUri(Uri uri, boolean syncAdapter, String account, String accountType) {
if (syncAdapter) {
return addSyncQueryParams(uri, account, accountType);
} else {
return uri;
}
} | Uri function(Uri uri, boolean syncAdapter, String account, String accountType) { if (syncAdapter) { return addSyncQueryParams(uri, account, accountType); } else { return uri; } } | /**
* Adds CALLER_IS_SYNCADAPTER to URI if this is a sync adapter operation. Otherwise,
* returns the original URI.
*/ | Adds CALLER_IS_SYNCADAPTER to URI if this is a sync adapter operation. Otherwise, returns the original URI | updatedUri | {
"repo_name": "s20121035/rk3288_android5.1_repo",
"path": "packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/CalendarProvider2Test.java",
"license": "gpl-3.0",
"size": 126950
} | [
"android.net.Uri"
] | import android.net.Uri; | import android.net.*; | [
"android.net"
] | android.net; | 816,363 |
private void openBlock(Channel channel) throws Exception {
BlockReadRequestInternal request = (BlockReadRequestInternal) mRequest;
if (request.mBlockReader != null) {
return;
}
int retryInterval = Constants.SECOND_MS;
RetryPolicy retryPolicy = new TimeoutRetry(UFS_BLOCK_OPEN_TIMEOUT_MS, ret... | void function(Channel channel) throws Exception { BlockReadRequestInternal request = (BlockReadRequestInternal) mRequest; if (request.mBlockReader != null) { return; } int retryInterval = Constants.SECOND_MS; RetryPolicy retryPolicy = new TimeoutRetry(UFS_BLOCK_OPEN_TIMEOUT_MS, retryInterval); if (request.mPromote) { t... | /**
* Opens the block if it is not open.
*
* @param channel the netty channel
* @throws Exception if it fails to open the block
*/ | Opens the block if it is not open | openBlock | {
"repo_name": "ShailShah/alluxio",
"path": "core/server/worker/src/main/java/alluxio/worker/netty/DataServerBlockReadHandler.java",
"license": "apache-2.0",
"size": 9035
} | [
"io.netty.channel.Channel",
"java.nio.channels.FileChannel"
] | import io.netty.channel.Channel; import java.nio.channels.FileChannel; | import io.netty.channel.*; import java.nio.channels.*; | [
"io.netty.channel",
"java.nio"
] | io.netty.channel; java.nio; | 805,030 |
@Test(expected=IllegalArgumentException.class)
public final void testVersionNumberImplStringArrayNull() {
VersionNumberImpl.fromStrings(null);
} | @Test(expected=IllegalArgumentException.class) final void function() { VersionNumberImpl.fromStrings(null); } | /**
* Test method for {@link org.verapdf.VersionNumberImpl#fromStrings(java.lang.String[])}.
*/ | Test method for <code>org.verapdf.VersionNumberImpl#fromStrings(java.lang.String[])</code> | testVersionNumberImplStringArrayNull | {
"repo_name": "carlwilson/veraPDF-library",
"path": "core/src/test/java/org/verapdf/SemanticVersionTest.java",
"license": "mpl-2.0",
"size": 6802
} | [
"org.junit.Test"
] | import org.junit.Test; | import org.junit.*; | [
"org.junit"
] | org.junit; | 1,735,249 |
protected Context getContext (Hashtable objs)
{
fillContextHash (controlContext,objs);
return controlContext;
}
| Context function (Hashtable objs) { fillContextHash (controlContext,objs); return controlContext; } | /**
* Create a new context and fill it with the elements of the
* objs Hashtable. Default objects and objects that comes from
* the properties of this Generator object is also added.
*
* @param objs objects to place in the control context
* @return Context context filled with object... | Create a new context and fill it with the elements of the objs Hashtable. Default objects and objects that comes from the properties of this Generator object is also added | getContext | {
"repo_name": "1CharlesStern/Web-XMLVerifier",
"path": "src/main/java/org/apache/velocity/texen/Generator.java",
"license": "apache-2.0",
"size": 16912
} | [
"java.util.Hashtable",
"org.apache.velocity.context.Context"
] | import java.util.Hashtable; import org.apache.velocity.context.Context; | import java.util.*; import org.apache.velocity.context.*; | [
"java.util",
"org.apache.velocity"
] | java.util; org.apache.velocity; | 2,483,200 |
public void setBaseCollisionBounds(IBlockAccess worldIn, BlockPos pos)
{
if (worldIn.getBlockState(pos).getValue(HALF) == BlockStairs.EnumHalf.TOP)
{
this.setBlockBounds(0.0F, 0.5F, 0.0F, 1.0F, 1.0F, 1.0F);
}
else
{
this.setBlockBounds(0.0F, 0.0F, ... | void function(IBlockAccess worldIn, BlockPos pos) { if (worldIn.getBlockState(pos).getValue(HALF) == BlockStairs.EnumHalf.TOP) { this.setBlockBounds(0.0F, 0.5F, 0.0F, 1.0F, 1.0F, 1.0F); } else { this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 0.5F, 1.0F); } } | /**
* Set the block bounds as the collision bounds for the stairs at the given position
*/ | Set the block bounds as the collision bounds for the stairs at the given position | setBaseCollisionBounds | {
"repo_name": "SkidJava/BaseClient",
"path": "new_1.8.8/net/minecraft/block/BlockStairs.java",
"license": "gpl-2.0",
"size": 29866
} | [
"net.minecraft.util.BlockPos",
"net.minecraft.world.IBlockAccess"
] | import net.minecraft.util.BlockPos; import net.minecraft.world.IBlockAccess; | import net.minecraft.util.*; import net.minecraft.world.*; | [
"net.minecraft.util",
"net.minecraft.world"
] | net.minecraft.util; net.minecraft.world; | 302,781 |
public void render(Entity p_78088_1_, float p_78088_2_, float p_78088_3_, float p_78088_4_, float p_78088_5_, float p_78088_6_, float p_78088_7_)
{
this.setRotationAngles(p_78088_2_, p_78088_3_, p_78088_4_, p_78088_5_, p_78088_6_, p_78088_7_, p_78088_1_);
int var8;
for (var8 = 0; var8 <... | void function(Entity p_78088_1_, float p_78088_2_, float p_78088_3_, float p_78088_4_, float p_78088_5_, float p_78088_6_, float p_78088_7_) { this.setRotationAngles(p_78088_2_, p_78088_3_, p_78088_4_, p_78088_5_, p_78088_6_, p_78088_7_, p_78088_1_); int var8; for (var8 = 0; var8 < this.silverfishBodyParts.length; ++va... | /**
* Sets the models various rotation angles then renders the model.
*/ | Sets the models various rotation angles then renders the model | render | {
"repo_name": "Hexeption/Youtube-Hacked-Client-1.8",
"path": "minecraft/net/minecraft/client/model/ModelSilverfish.java",
"license": "mit",
"size": 4824
} | [
"net.minecraft.entity.Entity"
] | import net.minecraft.entity.Entity; | import net.minecraft.entity.*; | [
"net.minecraft.entity"
] | net.minecraft.entity; | 949,751 |
public Map<String, Object> getParameters()
{
return parameters;
} | Map<String, Object> function() { return parameters; } | /**
* Get the request parameters.
*
* @return The request parameters
*/ | Get the request parameters | getParameters | {
"repo_name": "iritgo/iritgo-aktera",
"path": "aktera-struts/src/main/java/de/iritgo/aktera/struts/BeanRequest.java",
"license": "apache-2.0",
"size": 7021
} | [
"java.util.Map"
] | import java.util.Map; | import java.util.*; | [
"java.util"
] | java.util; | 2,489,832 |
protected FileSystemConfiguration igfsConfiguration(String igniteInstanceName) throws IgniteCheckedException {
FileSystemConfiguration cfg = new FileSystemConfiguration();
cfg.setDataCacheConfiguration(dataCacheConfiguration(igniteInstanceName));
cfg.setMetaCacheConfiguration(metaCacheConfi... | FileSystemConfiguration function(String igniteInstanceName) throws IgniteCheckedException { FileSystemConfiguration cfg = new FileSystemConfiguration(); cfg.setDataCacheConfiguration(dataCacheConfiguration(igniteInstanceName)); cfg.setMetaCacheConfiguration(metaCacheConfiguration(igniteInstanceName)); cfg.setName("igfs... | /**
* Gets IGFS configuration.
*
* @param igniteInstanceName Ignite instance name.
* @return IGFS configuration.
*/ | Gets IGFS configuration | igfsConfiguration | {
"repo_name": "endian675/ignite",
"path": "modules/hadoop/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/igfs/IgniteHadoopFileSystemAbstractSelfTest.java",
"license": "apache-2.0",
"size": 81622
} | [
"org.apache.ignite.IgniteCheckedException",
"org.apache.ignite.configuration.FileSystemConfiguration",
"org.apache.ignite.hadoop.fs.CachingHadoopFileSystemFactory",
"org.apache.ignite.hadoop.fs.IgniteHadoopIgfsSecondaryFileSystem"
] | import org.apache.ignite.IgniteCheckedException; import org.apache.ignite.configuration.FileSystemConfiguration; import org.apache.ignite.hadoop.fs.CachingHadoopFileSystemFactory; import org.apache.ignite.hadoop.fs.IgniteHadoopIgfsSecondaryFileSystem; | import org.apache.ignite.*; import org.apache.ignite.configuration.*; import org.apache.ignite.hadoop.fs.*; | [
"org.apache.ignite"
] | org.apache.ignite; | 968,841 |
private void assignRegisters(String item)
throws BindingConfigParseException {
if (item.startsWith("<")) {
readRegister = Integer.valueOf(item.substring(1, item.length()));
} else if (item.startsWith(">")) {
writeRegister = Integer.valueOf(item.substring(1, item.length()));
} else {
throw ... | void function(String item) throws BindingConfigParseException { if (item.startsWith("<")) { readRegister = Integer.valueOf(item.substring(1, item.length())); } else if (item.startsWith(">")) { writeRegister = Integer.valueOf(item.substring(1, item.length())); } else { throw new BindingConfigParseException(STR); } } } | /**
* Parses register reference string and assigns values to readRegister and writeRegister
* @param item
* @throws BindingConfigParseException if register description is invalid
*/ | Parses register reference string and assigns values to readRegister and writeRegister | assignRegisters | {
"repo_name": "clinique/openhab",
"path": "bundles/binding/org.openhab.binding.modbus/src/main/java/org/openhab/binding/modbus/internal/ModbusGenericBindingProvider.java",
"license": "epl-1.0",
"size": 7278
} | [
"org.openhab.model.item.binding.BindingConfigParseException"
] | import org.openhab.model.item.binding.BindingConfigParseException; | import org.openhab.model.item.binding.*; | [
"org.openhab.model"
] | org.openhab.model; | 853,920 |
interface WithVirtualNetworkTap {
Update withVirtualNetworkTap(VirtualNetworkTapInner virtualNetworkTap);
}
} | interface WithVirtualNetworkTap { Update withVirtualNetworkTap(VirtualNetworkTapInner virtualNetworkTap); } } | /**
* Specifies virtualNetworkTap.
* @param virtualNetworkTap The reference of the Virtual Network Tap resource
* @return the next update stage
*/ | Specifies virtualNetworkTap | withVirtualNetworkTap | {
"repo_name": "selvasingh/azure-sdk-for-java",
"path": "sdk/network/mgmt-v2018_08_01/src/main/java/com/microsoft/azure/management/network/v2018_08_01/NetworkInterfaceTapConfiguration.java",
"license": "mit",
"size": 7111
} | [
"com.microsoft.azure.management.network.v2018_08_01.implementation.VirtualNetworkTapInner"
] | import com.microsoft.azure.management.network.v2018_08_01.implementation.VirtualNetworkTapInner; | import com.microsoft.azure.management.network.v2018_08_01.implementation.*; | [
"com.microsoft.azure"
] | com.microsoft.azure; | 2,615,631 |
public DeliverDetail getUserDeliverDetails(String semester,String subject,int activityIndex,int deliverIndex) throws ExecPelpException,InvalidEngineException,AuthorizationException; | DeliverDetail function(String semester,String subject,int activityIndex,int deliverIndex) throws ExecPelpException,InvalidEngineException,AuthorizationException; | /**
* Get a detailed information for a certain deliver for current user
* @param semester Semester code
* @param subject Subject code
* @param activityIndex Activity index
* @param deliverIndex Deliver index
* @return Object with summary information of the deliver
* @throws ExecPelpEx... | Get a detailed information for a certain deliver for current user | getUserDeliverDetails | {
"repo_name": "UOC/PeLP",
"path": "src/main/java/edu/uoc/pelp/bussines/UOC/UOCPelpBussines.java",
"license": "gpl-3.0",
"size": 21812
} | [
"edu.uoc.pelp.bussines.exception.AuthorizationException",
"edu.uoc.pelp.bussines.exception.InvalidEngineException",
"edu.uoc.pelp.bussines.vo.DeliverDetail",
"edu.uoc.pelp.exception.ExecPelpException"
] | import edu.uoc.pelp.bussines.exception.AuthorizationException; import edu.uoc.pelp.bussines.exception.InvalidEngineException; import edu.uoc.pelp.bussines.vo.DeliverDetail; import edu.uoc.pelp.exception.ExecPelpException; | import edu.uoc.pelp.bussines.exception.*; import edu.uoc.pelp.bussines.vo.*; import edu.uoc.pelp.exception.*; | [
"edu.uoc.pelp"
] | edu.uoc.pelp; | 2,011,131 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.