method
stringlengths
13
441k
clean_method
stringlengths
7
313k
doc
stringlengths
17
17.3k
comment
stringlengths
3
1.42k
method_name
stringlengths
1
273
extra
dict
imports
list
imports_info
stringlengths
19
34.8k
cluster_imports_info
stringlengths
15
3.66k
libraries
list
libraries_info
stringlengths
6
661
id
int64
0
2.92M
public String getQColumnExpression( boolean applyVdm ) throws BindingNotFoundException { List<String> sCE = getSplitColumnExpression(applyVdm); return BindingUtils.addTableAlias(sCE, getTableAlias()); }
String function( boolean applyVdm ) throws BindingNotFoundException { List<String> sCE = getSplitColumnExpression(applyVdm); return BindingUtils.addTableAlias(sCE, getTableAlias()); }
/** * Return the column expression with the table alias * @param applyVdm If false, virtual dimension members are ignored here * @return */
Return the column expression with the table alias
getQColumnExpression
{ "repo_name": "businesscode/BCD-UI", "path": "Server/src/main/java/de/businesscode/bcdui/wrs/load/WrqBindingItem.java", "license": "apache-2.0", "size": 27148 }
[ "de.businesscode.bcdui.binding.BindingUtils", "de.businesscode.bcdui.binding.exc.BindingNotFoundException", "java.util.List" ]
import de.businesscode.bcdui.binding.BindingUtils; import de.businesscode.bcdui.binding.exc.BindingNotFoundException; import java.util.List;
import de.businesscode.bcdui.binding.*; import de.businesscode.bcdui.binding.exc.*; import java.util.*;
[ "de.businesscode.bcdui", "java.util" ]
de.businesscode.bcdui; java.util;
164,102
protected ResponseEntity<Object> handleHttpMediaTypeNotAcceptable(HttpMediaTypeNotAcceptableException ex, HttpHeaders headers, HttpStatus status, WebRequest request) { return handleExceptionInternal(ex, null, headers, status, request); }
ResponseEntity<Object> function(HttpMediaTypeNotAcceptableException ex, HttpHeaders headers, HttpStatus status, WebRequest request) { return handleExceptionInternal(ex, null, headers, status, request); }
/** * Customize the response for HttpMediaTypeNotAcceptableException. * This method delegates to {@link #handleExceptionInternal(Exception, Object, HttpHeaders, HttpStatus, WebRequest)}. * @param ex the exception * @param headers the headers to be written to the response * @param status the selected response ...
Customize the response for HttpMediaTypeNotAcceptableException. This method delegates to <code>#handleExceptionInternal(Exception, Object, HttpHeaders, HttpStatus, WebRequest)</code>
handleHttpMediaTypeNotAcceptable
{ "repo_name": "leogoing/spring_jeesite", "path": "spring-webmvc-4.0/org/springframework/web/servlet/mvc/method/annotation/ResponseEntityExceptionHandler.java", "license": "apache-2.0", "size": 18606 }
[ "org.springframework.http.HttpHeaders", "org.springframework.http.HttpStatus", "org.springframework.http.ResponseEntity", "org.springframework.web.HttpMediaTypeNotAcceptableException", "org.springframework.web.context.request.WebRequest" ]
import org.springframework.http.HttpHeaders; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.web.HttpMediaTypeNotAcceptableException; import org.springframework.web.context.request.WebRequest;
import org.springframework.http.*; import org.springframework.web.*; import org.springframework.web.context.request.*;
[ "org.springframework.http", "org.springframework.web" ]
org.springframework.http; org.springframework.web;
1,849,177
public void dropInv() { if(this.worldObj.isRemote) { for (int x = 2; x < 20; ++x) { if(this.inventory.getStackInSlot(x) != null) { ItemStack test = this.inventory.getStackInSlot(x); test = null; } } } else { for (int x = 2; x < 20; ++x) { if(this.inventory...
void function() { if(this.worldObj.isRemote) { for (int x = 2; x < 20; ++x) { if(this.inventory.getStackInSlot(x) != null) { ItemStack test = this.inventory.getStackInSlot(x); test = null; } } } else { for (int x = 2; x < 20; ++x) { if(this.inventory.getStackInSlot(x) != null) { ItemStack test = this.inventory.getStack...
/** * Drops inventory contents only from airship (not fuel/module). */
Drops inventory contents only from airship (not fuel/module)
dropInv
{ "repo_name": "Weisses/Ebonheart-Mods", "path": "ViesCraft/Archived/1.9.4 - 1976/src/main/java/com/viesis/viescraft/common/entity/airshipcolors/EntityAirshipV4Core.java", "license": "mit", "size": 43707 }
[ "net.minecraft.inventory.InventoryHelper", "net.minecraft.item.ItemStack" ]
import net.minecraft.inventory.InventoryHelper; import net.minecraft.item.ItemStack;
import net.minecraft.inventory.*; import net.minecraft.item.*;
[ "net.minecraft.inventory", "net.minecraft.item" ]
net.minecraft.inventory; net.minecraft.item;
2,195,786
private String findSkeletonReplaceValue(final String skeletonId, final List<String> keyToDelete) { StringBuilder replaceString = new StringBuilder(); if (skeletonMap.containsKey(skeletonId)) { replaceString.append(skeletonMap.get(skeletonId)); keyToDelete.add(skeletonId); } else { int idCount = 1;...
String function(final String skeletonId, final List<String> keyToDelete) { StringBuilder replaceString = new StringBuilder(); if (skeletonMap.containsKey(skeletonId)) { replaceString.append(skeletonMap.get(skeletonId)); keyToDelete.add(skeletonId); } else { int idCount = 1; String newSkeletonId = skeletonId + "-" + idC...
/** * Retrieves the skeleton text from the map, corresponding to a specific ID. * If many incremental ID exist for that ID, then all those texts are * concatenated. * * @param skeletonId * the skeleton ID * @param keyToDelete * the list containing all the skeleton keys to be delet...
Retrieves the skeleton text from the map, corresponding to a specific ID. If many incremental ID exist for that ID, then all those texts are concatenated
findSkeletonReplaceValue
{ "repo_name": "freme-project/e-Internationalization", "path": "src/main/java/eu/freme/i18n/okapi/nif/filter/NifSkeletonWriterFilter.java", "license": "apache-2.0", "size": 23632 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
466,248
public ExceptionHandlingConfigurer<H> accessDeniedHandler(AccessDeniedHandler accessDeniedHandler) { this.accessDeniedHandler = accessDeniedHandler; return this; } /** * Sets a default {@link AccessDeniedHandler} to be used which prefers being invoked * for the provided {@link RequestMatcher}. If only a s...
ExceptionHandlingConfigurer<H> function(AccessDeniedHandler accessDeniedHandler) { this.accessDeniedHandler = accessDeniedHandler; return this; } /** * Sets a default {@link AccessDeniedHandler} to be used which prefers being invoked * for the provided {@link RequestMatcher}. If only a single default * {@link AccessDen...
/** * Specifies the {@link AccessDeniedHandler} to be used * @param accessDeniedHandler the {@link AccessDeniedHandler} to be used * @return the {@link ExceptionHandlingConfigurer} for further customization */
Specifies the <code>AccessDeniedHandler</code> to be used
accessDeniedHandler
{ "repo_name": "djechelon/spring-security", "path": "config/src/main/java/org/springframework/security/config/annotation/web/configurers/ExceptionHandlingConfigurer.java", "license": "apache-2.0", "size": 10547 }
[ "org.springframework.security.web.access.AccessDeniedHandler", "org.springframework.security.web.access.RequestMatcherDelegatingAccessDeniedHandler", "org.springframework.security.web.util.matcher.RequestMatcher" ]
import org.springframework.security.web.access.AccessDeniedHandler; import org.springframework.security.web.access.RequestMatcherDelegatingAccessDeniedHandler; import org.springframework.security.web.util.matcher.RequestMatcher;
import org.springframework.security.web.access.*; import org.springframework.security.web.util.matcher.*;
[ "org.springframework.security" ]
org.springframework.security;
2,218,004
@Test public void testOutOfOrderSplit() throws Exception { PDFStructElem structElem = mock(PDFStructElem.class); for (int num = 50; num < 53; num++) { parentTree.addToNums(num, structElem); } assertEquals(getArrayNumber(50), 2); PDFNumberTreeNode treeNode = (P...
void function() throws Exception { PDFStructElem structElem = mock(PDFStructElem.class); for (int num = 50; num < 53; num++) { parentTree.addToNums(num, structElem); } assertEquals(getArrayNumber(50), 2); PDFNumberTreeNode treeNode = (PDFNumberTreeNode) parentTree.getKids().get(0); for (int num = 0; num < 50; num++) { ...
/** * Ensures that items added out of order get added to the correct nums array * @throws Exception */
Ensures that items added out of order get added to the correct nums array
testOutOfOrderSplit
{ "repo_name": "StrategyObject/fop", "path": "test/java/org/apache/fop/pdf/PDFParentTreeTestCase.java", "license": "apache-2.0", "size": 3644 }
[ "org.junit.Assert", "org.mockito.Mockito" ]
import org.junit.Assert; import org.mockito.Mockito;
import org.junit.*; import org.mockito.*;
[ "org.junit", "org.mockito" ]
org.junit; org.mockito;
999,522
public Bitmap getBitmapFromCache(String key) { return mCache.get(key); } private Handler mHandler = new Handler() {
Bitmap function(String key) { return mCache.get(key); } private Handler mHandler = new Handler() {
/** * get bitmap from cache<p/> * * @param key * @return */
get bitmap from cache
getBitmapFromCache
{ "repo_name": "lxbyes/AndroidDemo", "path": "app/src/main/java/me/leckie/demo/util/ImageLoader.java", "license": "apache-2.0", "size": 5204 }
[ "android.graphics.Bitmap", "android.os.Handler" ]
import android.graphics.Bitmap; import android.os.Handler;
import android.graphics.*; import android.os.*;
[ "android.graphics", "android.os" ]
android.graphics; android.os;
2,682,311
private void initializeFromProperties() { if ( properties != null ) { // The follow properties are required. fire an exception for any problem try { Long millis = Long.valueOf((String)properties.get( DataManager.PROJECT_DATE_KEY )); creationDate = new Date( millis.longValue() ); String pro...
void function() { if ( properties != null ) { try { Long millis = Long.valueOf((String)properties.get( DataManager.PROJECT_DATE_KEY )); creationDate = new Date( millis.longValue() ); String projectPath = (String)properties.get( DataManager.PROJECT_HOME_KEY ); projectHome = new File( projectPath ); Boolean bool = Boolea...
/** * Attempt to initialize this project from the current properties. * */
Attempt to initialize this project from the current properties
initializeFromProperties
{ "repo_name": "NCIP/visda", "path": "visda/VISDA-Developer/Month-7-yr1/visdaDev-V0.3/src/edu/vt/cbil/visda/data/Project.java", "license": "bsd-3-clause", "size": 15141 }
[ "edu.vt.cbil.visda.util.UserCancelException", "java.io.File", "java.io.IOException", "java.util.Date" ]
import edu.vt.cbil.visda.util.UserCancelException; import java.io.File; import java.io.IOException; import java.util.Date;
import edu.vt.cbil.visda.util.*; import java.io.*; import java.util.*;
[ "edu.vt.cbil", "java.io", "java.util" ]
edu.vt.cbil; java.io; java.util;
1,363,934
private String getBaseName(final File file) { final String fullName = file.getName(); final int index = fullName.lastIndexOf('.'); return index < 0 ? fullName : fullName.substring(0, index); }
String function(final File file) { final String fullName = file.getName(); final int index = fullName.lastIndexOf('.'); return index < 0 ? fullName : fullName.substring(0, index); }
/** * Gets the 'base' name of the file (i.e. without the extension) * <p> * If a filename contains multiple extensions (e.g. abc.txt.zip) * only the final extension is removed. */
Gets the 'base' name of the file (i.e. without the extension) If a filename contains multiple extensions (e.g. abc.txt.zip) only the final extension is removed
getBaseName
{ "repo_name": "nhs-ciao/ciao-docs-parser", "path": "ciao-docs-parser-kings/src/main/java/uk/nhs/ciao/docs/parser/kings/KingsDischargeSummaryParser.java", "license": "apache-2.0", "size": 7665 }
[ "java.io.File" ]
import java.io.File;
import java.io.*;
[ "java.io" ]
java.io;
1,061,707
public Properties getProperties(String key, Properties defaults) { String[] tokens = getStringArray(key); // Each token is of the form 'key=value'. Properties props = new Properties(defaults); for (int i = 0; i < tokens.length; i++) { String token = tokens...
Properties function(String key, Properties defaults) { String[] tokens = getStringArray(key); Properties props = new Properties(defaults); for (int i = 0; i < tokens.length; i++) { String token = tokens[i]; int equalSign = token.indexOf('='); if (equalSign > 0) { String pkey = token.substring(0, equalSign).trim(); Stri...
/** * Get a list of properties associated with the given * configuration key. * * @param key The configuration key. * @return The associated properties if key is found. * @throws ClassCastException is thrown if the key maps to an * object that is not a String/List. * @thr...
Get a list of properties associated with the given configuration key
getProperties
{ "repo_name": "sabob/ratel", "path": "ratel/src/org/apache/commons/collections/ExtendedProperties.java", "license": "apache-2.0", "size": 58798 }
[ "java.util.Properties" ]
import java.util.Properties;
import java.util.*;
[ "java.util" ]
java.util;
2,517,766
ActivityStack moveTaskToStackUncheckedLocked( TaskRecord task, int stackId, boolean toTop, boolean forceFocus, String reason) { if (StackId.isMultiWindowStack(stackId) && !mService.mSupportsMultiWindow) { throw new IllegalStateException("moveTaskToStackUncheckedLocked: Device doesn'...
ActivityStack moveTaskToStackUncheckedLocked( TaskRecord task, int stackId, boolean toTop, boolean forceFocus, String reason) { if (StackId.isMultiWindowStack(stackId) && !mService.mSupportsMultiWindow) { throw new IllegalStateException(STR + STR + task + STR + stackId); } final ActivityRecord r = task.topRunningActivi...
/** * Moves the specified task record to the input stack id. * WARNING: This method performs an unchecked/raw move of the task and * can leave the system in an unstable state if used incorrectly. * Use {@link #moveTaskToStackLocked} to perform safe task movement to a stack. * @param task Task t...
Moves the specified task record to the input stack id. can leave the system in an unstable state if used incorrectly. Use <code>#moveTaskToStackLocked</code> to perform safe task movement to a stack
moveTaskToStackUncheckedLocked
{ "repo_name": "daiqiquan/framework-base", "path": "services/core/java/com/android/server/am/ActivityStackSupervisor.java", "license": "apache-2.0", "size": 202437 }
[ "android.app.ActivityManager", "android.util.Slog" ]
import android.app.ActivityManager; import android.util.Slog;
import android.app.*; import android.util.*;
[ "android.app", "android.util" ]
android.app; android.util;
2,010,922
public SecretKey getSymmetricKey() { return this.symmetricKey; }
SecretKey function() { return this.symmetricKey; }
/** * Returns the symmetric key stored in this EncryptionMaterials object. * * @return the symmetric key stored in this EncryptionMaterials object. */
Returns the symmetric key stored in this EncryptionMaterials object
getSymmetricKey
{ "repo_name": "trasa/aws-sdk-java", "path": "aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/EncryptionMaterials.java", "license": "apache-2.0", "size": 4044 }
[ "javax.crypto.SecretKey" ]
import javax.crypto.SecretKey;
import javax.crypto.*;
[ "javax.crypto" ]
javax.crypto;
1,487,058
public void setMarketDataSnapshotSource(MarketDataSnapshotSource marketDataSnapshotSource) { this._marketDataSnapshotSource = marketDataSnapshotSource; }
void function(MarketDataSnapshotSource marketDataSnapshotSource) { this._marketDataSnapshotSource = marketDataSnapshotSource; }
/** * Sets the snapshot source. * @param marketDataSnapshotSource the new value of the property */
Sets the snapshot source
setMarketDataSnapshotSource
{ "repo_name": "McLeodMoores/starling", "path": "projects/financial/src/main/java/com/opengamma/financial/tool/ToolContext.java", "license": "apache-2.0", "size": 69098 }
[ "com.opengamma.core.marketdatasnapshot.MarketDataSnapshotSource" ]
import com.opengamma.core.marketdatasnapshot.MarketDataSnapshotSource;
import com.opengamma.core.marketdatasnapshot.*;
[ "com.opengamma.core" ]
com.opengamma.core;
74,895
public static StateMachine.Builder fromJson(String json) { try { return MAPPER.readValue(json, StateMachine.Builder.class); } catch (IOException e) { throw new SdkClientException( String.format("Could not deserialize state machine.\n%s", json), e); ...
static StateMachine.Builder function(String json) { try { return MAPPER.readValue(json, StateMachine.Builder.class); } catch (IOException e) { throw new SdkClientException( String.format(STR, json), e); } }
/** * Deserializes a JSON representation of a state machine into a {@link StateMachine.Builder} . * * @param json JSON representing State machine. * @return Mutable {@link StateMachine.Builder} deserialized from JSON representation. */
Deserializes a JSON representation of a state machine into a <code>StateMachine.Builder</code>
fromJson
{ "repo_name": "dagnir/aws-sdk-java", "path": "aws-java-sdk-stepfunctions/src/main/java/com/amazonaws/services/stepfunctions/builder/StateMachine.java", "license": "apache-2.0", "size": 7584 }
[ "com.amazonaws.SdkClientException", "java.io.IOException" ]
import com.amazonaws.SdkClientException; import java.io.IOException;
import com.amazonaws.*; import java.io.*;
[ "com.amazonaws", "java.io" ]
com.amazonaws; java.io;
1,315,836
public static void itemHasAmount(Item item, Object errorMessage) { if (item.getAmount() == 0) { throw new IllegalStateException(String.valueOf(errorMessage)); } }
static void function(Item item, Object errorMessage) { if (item.getAmount() == 0) { throw new IllegalStateException(String.valueOf(errorMessage)); } }
/** * Checks if the item has an amount * * @param item The Item to check * @param errorMessage The error message to use if the check fails * * @throws IllegalStateException if {@code item} has an amount of 0 */
Checks if the item has an amount
itemHasAmount
{ "repo_name": "Larry1123/CanaryUtil", "path": "src/main/java/net/larry1123/util/api/err/ItemChecks.java", "license": "apache-2.0", "size": 2282 }
[ "net.canarymod.api.inventory.Item" ]
import net.canarymod.api.inventory.Item;
import net.canarymod.api.inventory.*;
[ "net.canarymod.api" ]
net.canarymod.api;
2,240,841
public List<String> authors() { return this.innerProperties() == null ? null : this.innerProperties().authors(); }
List<String> function() { return this.innerProperties() == null ? null : this.innerProperties().authors(); }
/** * Get the authors property: List of authors. * * @return the authors value. */
Get the authors property: List of authors
authors
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/resourcemanagerhybrid/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SiteExtensionInfoInner.java", "license": "mit", "size": 16715 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,469,401
public static boolean isEnabled(Config cfg) { return cfg.hasPath(ConfigurationKeys.METRICS_ENABLED_KEY) ? cfg.getBoolean(ConfigurationKeys.METRICS_ENABLED_KEY) : Boolean.parseBoolean(ConfigurationKeys.DEFAULT_METRICS_ENABLED); }
static boolean function(Config cfg) { return cfg.hasPath(ConfigurationKeys.METRICS_ENABLED_KEY) ? cfg.getBoolean(ConfigurationKeys.METRICS_ENABLED_KEY) : Boolean.parseBoolean(ConfigurationKeys.DEFAULT_METRICS_ENABLED); }
/** * Check whether metrics collection and reporting are enabled or not. * * @param cfg a {@link State} object containing configuration properties * @return whether metrics collection and reporting are enabled */
Check whether metrics collection and reporting are enabled or not
isEnabled
{ "repo_name": "arjun4084346/gobblin", "path": "gobblin-metrics-libs/gobblin-metrics/src/main/java/org/apache/gobblin/metrics/GobblinMetrics.java", "license": "apache-2.0", "size": 36488 }
[ "com.typesafe.config.Config", "org.apache.gobblin.configuration.ConfigurationKeys" ]
import com.typesafe.config.Config; import org.apache.gobblin.configuration.ConfigurationKeys;
import com.typesafe.config.*; import org.apache.gobblin.configuration.*;
[ "com.typesafe.config", "org.apache.gobblin" ]
com.typesafe.config; org.apache.gobblin;
233,124
public byte[] readBytes(int count, String name) throws IOException { if (count <= 0) { return BYTE_ARRAY_EMPTY; } newDumpLevel(name, "bytes"); byte[] ret = new byte[count]; int i = 0; try { for (i = 0; i < count; i++) { ret[i] =...
byte[] function(int count, String name) throws IOException { if (count <= 0) { return BYTE_ARRAY_EMPTY; } newDumpLevel(name, "bytes"); byte[] ret = new byte[count]; int i = 0; try { for (i = 0; i < count; i++) { ret[i] = (byte) readEx(); } } catch (EOFException EndOfStreamException ex) { ret = Arrays.copyOf(ret, i); lo...
/** * Reads bytes from the stream * * @param count Number of bytes to read * @param name * @return Array of read bytes * @throws IOException */
Reads bytes from the stream
readBytes
{ "repo_name": "crimefire/jpexs-decompiler", "path": "libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/SWFInputStream.java", "license": "gpl-3.0", "size": 128299 }
[ "java.io.EOFException", "java.io.IOException", "java.util.Arrays", "java.util.logging.Level" ]
import java.io.EOFException; import java.io.IOException; import java.util.Arrays; import java.util.logging.Level;
import java.io.*; import java.util.*; import java.util.logging.*;
[ "java.io", "java.util" ]
java.io; java.util;
1,365,441
protected void handleRenameAction(SolrQueryRequest req, SolrQueryResponse rsp) throws SolrException { SolrParams params = req.getParams(); String name = params.get(CoreAdminParams.OTHER); String cname = params.get(CoreAdminParams.CORE); if (cname.equals(name)) return; coreContainer.rename(cname...
void function(SolrQueryRequest req, SolrQueryResponse rsp) throws SolrException { SolrParams params = req.getParams(); String name = params.get(CoreAdminParams.OTHER); String cname = params.get(CoreAdminParams.CORE); if (cname.equals(name)) return; coreContainer.rename(cname, name); }
/** * Handle "RENAME" Action */
Handle "RENAME" Action
handleRenameAction
{ "repo_name": "williamchengit/TestRepo", "path": "solr/core/src/java/org/apache/solr/handler/admin/CoreAdminHandler.java", "license": "apache-2.0", "size": 52146 }
[ "org.apache.solr.common.SolrException", "org.apache.solr.common.params.CoreAdminParams", "org.apache.solr.common.params.SolrParams", "org.apache.solr.request.SolrQueryRequest", "org.apache.solr.response.SolrQueryResponse" ]
import org.apache.solr.common.SolrException; import org.apache.solr.common.params.CoreAdminParams; import org.apache.solr.common.params.SolrParams; import org.apache.solr.request.SolrQueryRequest; import org.apache.solr.response.SolrQueryResponse;
import org.apache.solr.common.*; import org.apache.solr.common.params.*; import org.apache.solr.request.*; import org.apache.solr.response.*;
[ "org.apache.solr" ]
org.apache.solr;
2,148,860
public void defaultConsequence(RuleDescrBuilder rule) { try { int first = input.index(); Token t = match(input, DRL6Lexer.ID, DroolsSoftKeywords.THEN, null, DroolsEditorType.KEYWORD); if (stat...
void function(RuleDescrBuilder rule) { try { int first = input.index(); Token t = match(input, DRL6Lexer.ID, DroolsSoftKeywords.THEN, null, DroolsEditorType.KEYWORD); if (state.failed) return; if (state.backtracking == 0) { rule.getDescr().setConsequenceLocation(t.getLine(), t.getCharPositionInLine()); helper.emit(Loca...
/** * defaultConsequence := THEN chunk * @param rule */
defaultConsequence := THEN chunk
defaultConsequence
{ "repo_name": "reynoldsm88/drools", "path": "drools-compiler/src/main/java/org/drools/compiler/lang/DRL6Parser.java", "license": "apache-2.0", "size": 174758 }
[ "org.antlr.runtime.RecognitionException", "org.antlr.runtime.Token", "org.drools.compiler.lang.api.RuleDescrBuilder" ]
import org.antlr.runtime.RecognitionException; import org.antlr.runtime.Token; import org.drools.compiler.lang.api.RuleDescrBuilder;
import org.antlr.runtime.*; import org.drools.compiler.lang.api.*;
[ "org.antlr.runtime", "org.drools.compiler" ]
org.antlr.runtime; org.drools.compiler;
1,943,566
public boolean isThemeFolder(ExecutionContext executionContext, String folderUri);
boolean function(ExecutionContext executionContext, String folderUri);
/** * Returns true if a given folder is theme folder for the current or any child tenant * @param executionContext * @param folderUri * @return */
Returns true if a given folder is theme folder for the current or any child tenant
isThemeFolder
{ "repo_name": "leocockroach/JasperServer5.6", "path": "jasperserver-war-jar/src/main/java/com/jaspersoft/jasperserver/war/themes/ThemeService.java", "license": "gpl-2.0", "size": 3873 }
[ "com.jaspersoft.jasperserver.api.common.domain.ExecutionContext" ]
import com.jaspersoft.jasperserver.api.common.domain.ExecutionContext;
import com.jaspersoft.jasperserver.api.common.domain.*;
[ "com.jaspersoft.jasperserver" ]
com.jaspersoft.jasperserver;
2,880,976
EList<II> getTemplateIds();
EList<II> getTemplateIds();
/** * Returns the value of the '<em><b>Template Id</b></em>' containment reference list. * The list contents are of type {@link org.openhealthtools.mdht.uml.hl7.datatypes.II}. * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Template Id</em>' containment reference list isn't clear, * there...
Returns the value of the 'Template Id' containment reference list. The list contents are of type <code>org.openhealthtools.mdht.uml.hl7.datatypes.II</code>. If the meaning of the 'Template Id' containment reference list isn't clear, there really should be more of a description here...
getTemplateIds
{ "repo_name": "drbgfc/mdht", "path": "cda/plugins/org.openhealthtools.mdht.uml.cda/src/org/openhealthtools/mdht/uml/cda/Observation.java", "license": "epl-1.0", "size": 34888 }
[ "org.eclipse.emf.common.util.EList" ]
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.common.util.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
1,241,755
private HRegionInfo createRegion(Configuration conf, final HTableDescriptor htd, byte[] startKey, byte[] endKey) throws IOException { HTable meta = new HTable(conf, TableName.META_TABLE_NAME, executorService); HRegionInfo hri = new HRegionInfo(htd.getTableName(), startKey, endKey); MetaEditor....
HRegionInfo function(Configuration conf, final HTableDescriptor htd, byte[] startKey, byte[] endKey) throws IOException { HTable meta = new HTable(conf, TableName.META_TABLE_NAME, executorService); HRegionInfo hri = new HRegionInfo(htd.getTableName(), startKey, endKey); MetaEditor.addRegionToMeta(meta, hri); meta.close...
/** * Create a new region in META. */
Create a new region in META
createRegion
{ "repo_name": "alipayhuber/hack-hbase", "path": "hbase-server/src/test/java/org/apache/hadoop/hbase/util/TestHBaseFsck.java", "license": "apache-2.0", "size": 83176 }
[ "java.io.IOException", "org.apache.hadoop.conf.Configuration", "org.apache.hadoop.hbase.HRegionInfo", "org.apache.hadoop.hbase.HTableDescriptor", "org.apache.hadoop.hbase.TableName", "org.apache.hadoop.hbase.catalog.MetaEditor", "org.apache.hadoop.hbase.client.HTable" ]
import java.io.IOException; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.hbase.HRegionInfo; import org.apache.hadoop.hbase.HTableDescriptor; import org.apache.hadoop.hbase.TableName; import org.apache.hadoop.hbase.catalog.MetaEditor; import org.apache.hadoop.hbase.client.HTable;
import java.io.*; import org.apache.hadoop.conf.*; import org.apache.hadoop.hbase.*; import org.apache.hadoop.hbase.catalog.*; import org.apache.hadoop.hbase.client.*;
[ "java.io", "org.apache.hadoop" ]
java.io; org.apache.hadoop;
2,348,036
@Nullable public synchronized CloseableReference<Bitmap> cloneUnderlyingBitmapReference() { return CloseableReference.cloneOrNull(mBitmapReference); }
synchronized CloseableReference<Bitmap> function() { return CloseableReference.cloneOrNull(mBitmapReference); }
/** * Get a cloned bitmap reference for the underlying original CloseableReference&lt;Bitmap&gt;. * * <p>After calling this method, this object can still be used. See {@link * #convertToBitmapReference()} for an alternative that detaches the original reference instead. * * @return the cloned bitmap re...
Get a cloned bitmap reference for the underlying original CloseableReference&lt;Bitmap&gt;. After calling this method, this object can still be used. See <code>#convertToBitmapReference()</code> for an alternative that detaches the original reference instead
cloneUnderlyingBitmapReference
{ "repo_name": "facebook/fresco", "path": "imagepipeline-base/src/main/java/com/facebook/imagepipeline/image/CloseableStaticBitmap.java", "license": "mit", "size": 6828 }
[ "android.graphics.Bitmap", "com.facebook.common.references.CloseableReference" ]
import android.graphics.Bitmap; import com.facebook.common.references.CloseableReference;
import android.graphics.*; import com.facebook.common.references.*;
[ "android.graphics", "com.facebook.common" ]
android.graphics; com.facebook.common;
1,315,231
public SwegonVentilationCommandType getCommandType(String itemName);
SwegonVentilationCommandType function(String itemName);
/** * Returns the command type to the given <code>itemName</code>. * * @param itemName * the item for which to find a command type. * * @return the corresponding command type to the given <code>itemName</code> * . */
Returns the command type to the given <code>itemName</code>
getCommandType
{ "repo_name": "openhab/openhab", "path": "bundles/binding/org.openhab.binding.swegonventilation/src/main/java/org/openhab/binding/swegonventilation/SwegonVentilationBindingProvider.java", "license": "epl-1.0", "size": 1527 }
[ "org.openhab.binding.swegonventilation.internal.SwegonVentilationCommandType" ]
import org.openhab.binding.swegonventilation.internal.SwegonVentilationCommandType;
import org.openhab.binding.swegonventilation.internal.*;
[ "org.openhab.binding" ]
org.openhab.binding;
2,686,709
private void btnAddPoorChemActionPerformed(final java.awt.event.ActionEvent evt) { //GEN-FIRST:event_btnAddPoorChemActionPerformed dlgPoorChemCataloge.pack(); StaticSwingTools.showDialog(StaticSwingTools.getParentFrame(this), dlgPoorChemCataloge, true); } ...
void function(final java.awt.event.ActionEvent evt) { dlgPoorChemCataloge.pack(); StaticSwingTools.showDialog(StaticSwingTools.getParentFrame(this), dlgPoorChemCataloge, true); }
/** * DOCUMENT ME! * * @param evt DOCUMENT ME! */
DOCUMENT ME
btnAddPoorChemActionPerformed
{ "repo_name": "cismet/cids-custom-wrrl-db-mv", "path": "src/main/java/de/cismet/cids/custom/objecteditors/wrrl_db_mv/WkGwPanThree.java", "license": "lgpl-3.0", "size": 44457 }
[ "de.cismet.tools.gui.StaticSwingTools" ]
import de.cismet.tools.gui.StaticSwingTools;
import de.cismet.tools.gui.*;
[ "de.cismet.tools" ]
de.cismet.tools;
2,383,390
@Override public void execute(final AddToList command) { referenceKeeper.cleanReferenceCache(); if (couldBeExecuted(command)) { executor.execute(command); } else { keepReferenceIfObservable(command.getValue()); } }
void function(final AddToList command) { referenceKeeper.cleanReferenceCache(); if (couldBeExecuted(command)) { executor.execute(command); } else { keepReferenceIfObservable(command.getValue()); } }
/** * Filters the passed command and passes it to the executor when it is approved. * * @param command * The command to filter */
Filters the passed command and passes it to the executor when it is approved
execute
{ "repo_name": "saxsys/SynchronizeFX", "path": "synchronizefx-core/src/main/java/de/saxsys/synchronizefx/core/metamodel/executors/lists/ListPropertyCommandFilter.java", "license": "lgpl-3.0", "size": 6246 }
[ "de.saxsys.synchronizefx.core.metamodel.commands.AddToList" ]
import de.saxsys.synchronizefx.core.metamodel.commands.AddToList;
import de.saxsys.synchronizefx.core.metamodel.commands.*;
[ "de.saxsys.synchronizefx" ]
de.saxsys.synchronizefx;
92,589
ClusterClientProvider<T> deployJobCluster( final ClusterSpecification clusterSpecification, final JobGraph jobGraph, final boolean detached) throws ClusterDeploymentException;
ClusterClientProvider<T> deployJobCluster( final ClusterSpecification clusterSpecification, final JobGraph jobGraph, final boolean detached) throws ClusterDeploymentException;
/** * Deploys a per-job cluster with the given job on the cluster. * * @param clusterSpecification Initial cluster specification with which the Flink cluster is launched * @param jobGraph JobGraph with which the job cluster is started * @param detached true if the cluster should be stopped after the job compl...
Deploys a per-job cluster with the given job on the cluster
deployJobCluster
{ "repo_name": "bowenli86/flink", "path": "flink-clients/src/main/java/org/apache/flink/client/deployment/ClusterDescriptor.java", "license": "apache-2.0", "size": 3044 }
[ "org.apache.flink.client.program.ClusterClientProvider", "org.apache.flink.runtime.jobgraph.JobGraph" ]
import org.apache.flink.client.program.ClusterClientProvider; import org.apache.flink.runtime.jobgraph.JobGraph;
import org.apache.flink.client.program.*; import org.apache.flink.runtime.jobgraph.*;
[ "org.apache.flink" ]
org.apache.flink;
899,171
@Override public void mouseReleased(MouseEvent e) { if (e.getButton() == MouseEvent.BUTTON2) { closeFrame(getSelectedFrame()); } if (e.isPopupTrigger()) { final int index = tabbedPane.indexAtLocation(e.getX(), e.getY()); ...
void function(MouseEvent e) { if (e.getButton() == MouseEvent.BUTTON2) { closeFrame(getSelectedFrame()); } if (e.isPopupTrigger()) { final int index = tabbedPane.indexAtLocation(e.getX(), e.getY()); if (index >= 0) { final Component component = tabbedPane.getComponentAt(index); if (component instanceof InternalFramePro...
/** * Invoked when a mouse button has been released on a component. */
Invoked when a mouse button has been released on a component
mouseReleased
{ "repo_name": "bcdev/beam", "path": "beam-ui/src/main/java/com/bc/swing/desktop/TabbedDesktopPane.java", "license": "gpl-3.0", "size": 20847 }
[ "java.awt.Component", "java.awt.event.MouseEvent", "javax.swing.JInternalFrame" ]
import java.awt.Component; import java.awt.event.MouseEvent; import javax.swing.JInternalFrame;
import java.awt.*; import java.awt.event.*; import javax.swing.*;
[ "java.awt", "javax.swing" ]
java.awt; javax.swing;
2,591,696
public void setMenuView(View view, LayoutParams params) { mMenuView = view; mMenuContainer.removeAllViews(); mMenuContainer.addView(view, params); }
void function(View view, LayoutParams params) { mMenuView = view; mMenuContainer.removeAllViews(); mMenuContainer.addView(view, params); }
/** * Set the menu view to an explicit view. * * @param view * The menu view. * @param params * Layout parameters for the view. */
Set the menu view to an explicit view
setMenuView
{ "repo_name": "KouChengjian/CamelCrown_Map", "path": "CamelCrown/CamelCrown/src/com/camel/redpenguin/view/slidingdrawer/MenuDrawer.java", "license": "gpl-2.0", "size": 41948 }
[ "android.view.View" ]
import android.view.View;
import android.view.*;
[ "android.view" ]
android.view;
1,325,362
public XObject execute(XPathContext xctxt) throws javax.xml.transform.TransformerException { String prefix; String namespace; String methName; String fullName = m_arg0.execute(xctxt).str(); int indexOfNSSep = fullName.indexOf(':'); if (indexOfNSSep < 0) { prefix = ""; name...
XObject function(XPathContext xctxt) throws javax.xml.transform.TransformerException { String prefix; String namespace; String methName; String fullName = m_arg0.execute(xctxt).str(); int indexOfNSSep = fullName.indexOf(':'); if (indexOfNSSep < 0) { prefix = ""; namespace = Constants.S_XSLNAMESPACEURL; methName = fullN...
/** * Execute the function. The function must return * a valid object. * @param xctxt The current execution context. * @return A valid XObject. * * @throws javax.xml.transform.TransformerException */
Execute the function. The function must return a valid object
execute
{ "repo_name": "md-5/jdk10", "path": "src/java.xml/share/classes/com/sun/org/apache/xpath/internal/functions/FuncExtElementAvailable.java", "license": "gpl-2.0", "size": 3316 }
[ "com.sun.org.apache.xalan.internal.templates.Constants", "com.sun.org.apache.xpath.internal.ExtensionsProvider", "com.sun.org.apache.xpath.internal.XPathContext", "com.sun.org.apache.xpath.internal.objects.XBoolean", "com.sun.org.apache.xpath.internal.objects.XObject" ]
import com.sun.org.apache.xalan.internal.templates.Constants; import com.sun.org.apache.xpath.internal.ExtensionsProvider; import com.sun.org.apache.xpath.internal.XPathContext; import com.sun.org.apache.xpath.internal.objects.XBoolean; import com.sun.org.apache.xpath.internal.objects.XObject;
import com.sun.org.apache.xalan.internal.templates.*; import com.sun.org.apache.xpath.internal.*; import com.sun.org.apache.xpath.internal.objects.*;
[ "com.sun.org" ]
com.sun.org;
2,301,020
@Override public User getRelatedUser(User user, String relation, String peasId) throws WorkflowException { UserSettings settings = this.getUserSettings(user.getUserId(), peasId); if (settings == null) { throw new WorkflowException("UserManagerImpl.getRelatedUser", "workflowEngine.EXP_N...
User function(User user, String relation, String peasId) throws WorkflowException { UserSettings settings = this.getUserSettings(user.getUserId(), peasId); if (settings == null) { throw new WorkflowException(STR, STR, STR + user.getUserId()); } UserInfo info = settings.getUserInfo(relation); if (info == null) { throw n...
/** * Get a user from a given user and relation * @param user reference user * @param relation relation between given user and searched user * @param peasId the id of workflow peas associated to that information * @return the user that has the given relation with given user * @throws WorkflowException...
Get a user from a given user and relation
getRelatedUser
{ "repo_name": "auroreallibe/Silverpeas-Core", "path": "core-services/workflow/src/main/java/org/silverpeas/core/workflow/engine/user/UserManagerImpl.java", "license": "agpl-3.0", "size": 10022 }
[ "org.silverpeas.core.workflow.api.WorkflowException", "org.silverpeas.core.workflow.api.user.User", "org.silverpeas.core.workflow.api.user.UserInfo", "org.silverpeas.core.workflow.api.user.UserSettings" ]
import org.silverpeas.core.workflow.api.WorkflowException; import org.silverpeas.core.workflow.api.user.User; import org.silverpeas.core.workflow.api.user.UserInfo; import org.silverpeas.core.workflow.api.user.UserSettings;
import org.silverpeas.core.workflow.api.*; import org.silverpeas.core.workflow.api.user.*;
[ "org.silverpeas.core" ]
org.silverpeas.core;
729,411
public static <InputT> KeyByBuilder<InputT> of(Dataset<InputT> input) { return new Builder<>(null).of(input); }
static <InputT> KeyByBuilder<InputT> function(Dataset<InputT> input) { return new Builder<>(null).of(input); }
/** * Starts building a nameless {@link CountByKey} operator to process the given input dataset. * * @param <InputT> the type of elements of the input dataset * @param input the input data set to be processed * @return a builder to complete the setup of the new operator * @see #named(String) * @see...
Starts building a nameless <code>CountByKey</code> operator to process the given input dataset
of
{ "repo_name": "rangadi/beam", "path": "sdks/java/extensions/euphoria/src/main/java/org/apache/beam/sdk/extensions/euphoria/core/client/operator/CountByKey.java", "license": "apache-2.0", "size": 10764 }
[ "org.apache.beam.sdk.extensions.euphoria.core.client.dataset.Dataset" ]
import org.apache.beam.sdk.extensions.euphoria.core.client.dataset.Dataset;
import org.apache.beam.sdk.extensions.euphoria.core.client.dataset.*;
[ "org.apache.beam" ]
org.apache.beam;
2,786,555
@JsonProperty("aws_owner_id") public void setAwsOwnerId( String awsOwnerId ) { this.awsOwnerId = awsOwnerId; }
@JsonProperty(STR) public void setAwsOwnerId( String awsOwnerId ) { this.awsOwnerId = awsOwnerId; }
/** * Gets aws owner id. * * @return the aws owner id */
Gets aws owner id
getAwsOwnerId
{ "repo_name": "tenable/Tenable.io-SDK-for-Java", "path": "src/main/java/com/tenable/io/api/assetImport/models/AssetImport.java", "license": "mit", "size": 9399 }
[ "com.fasterxml.jackson.annotation.JsonProperty" ]
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.*;
[ "com.fasterxml.jackson" ]
com.fasterxml.jackson;
705,898
public String createAndStartEmulator(EmulatorParameters desiredDeviceParameters) throws IOException, CommandFailedException { String emulatorName = getNewEmulatorName(); createEmulator(emulatorName, desiredDeviceParameters); Process startedEmulatorProcess = startEmulator...
String function(EmulatorParameters desiredDeviceParameters) throws IOException, CommandFailedException { String emulatorName = getNewEmulatorName(); createEmulator(emulatorName, desiredDeviceParameters); Process startedEmulatorProcess = startEmulator(emulatorName, desiredDeviceParameters); startedEmulatorsProcess.put(e...
/** * Creates and starts a new emulator device fulfilling the desired device parameters. * * @param desiredDeviceParameters * - desired device parameters. * @return the name of the created emulator. * @throws IOException * thrown when an I/O exception of some sort has o...
Creates and starts a new emulator device fulfilling the desired device parameters
createAndStartEmulator
{ "repo_name": "MusalaSoft/atmosphere-agent", "path": "src/main/java/com/musala/atmosphere/agent/EmulatorManager.java", "license": "gpl-3.0", "size": 15471 }
[ "com.musala.atmosphere.commons.exceptions.CommandFailedException", "com.musala.atmosphere.commons.sa.EmulatorParameters", "java.io.IOException" ]
import com.musala.atmosphere.commons.exceptions.CommandFailedException; import com.musala.atmosphere.commons.sa.EmulatorParameters; import java.io.IOException;
import com.musala.atmosphere.commons.exceptions.*; import com.musala.atmosphere.commons.sa.*; import java.io.*;
[ "com.musala.atmosphere", "java.io" ]
com.musala.atmosphere; java.io;
983,388
Reference<V> reference = this.map.get(key); if (reference == null) { return null; } V value = reference.get(); if (value == null) { this.map.remove(key); } return value; }
Reference<V> reference = this.map.get(key); if (reference == null) { return null; } V value = reference.get(); if (value == null) { this.map.remove(key); } return value; }
/** * Returns a value to which the specified {@code key} is mapped, * or {@code null} if this map contains no mapping for the {@code key}. * * @param key the key whose associated value is returned * @return a value to which the specified {@code key} is mapped */
Returns a value to which the specified key is mapped, or null if this map contains no mapping for the key
get
{ "repo_name": "jimwhite/jdk7-introspector", "path": "src/org/ifcx/backportbeans/finder/WeakCache.java", "license": "gpl-2.0", "size": 3243 }
[ "java.lang.ref.Reference" ]
import java.lang.ref.Reference;
import java.lang.ref.*;
[ "java.lang" ]
java.lang;
1,908,137
return create(consumer, ObjectType.ENTITY); }
return create(consumer, ObjectType.ENTITY); }
/** * Default version creates an Entity ACL. */
Default version creates an Entity ACL
create
{ "repo_name": "zimingd/Synapse-Repository-Services", "path": "lib/jdomodels/src/main/java/org/sagebionetworks/repo/model/helper/AccessControlListObjectHelper.java", "license": "apache-2.0", "size": 1415 }
[ "org.sagebionetworks.repo.model.ObjectType" ]
import org.sagebionetworks.repo.model.ObjectType;
import org.sagebionetworks.repo.model.*;
[ "org.sagebionetworks.repo" ]
org.sagebionetworks.repo;
1,545,274
@NotNull(message = "{NotNull.gov.nih.nci.calims2.domain.administration.Word.maximumLength}") public Integer getMaximumLength() { return maximumLength; }
@NotNull(message = STR) Integer function() { return maximumLength; }
/** * Retrieves the value of the maximumLength attribute. * @return maximumLength **/
Retrieves the value of the maximumLength attribute
getMaximumLength
{ "repo_name": "NCIP/calims", "path": "calims2-model/src/java/gov/nih/nci/calims2/domain/administration/Word.java", "license": "bsd-3-clause", "size": 7400 }
[ "javax.validation.constraints.NotNull" ]
import javax.validation.constraints.NotNull;
import javax.validation.constraints.*;
[ "javax.validation" ]
javax.validation;
1,883,895
@Override public ArrayList<String> processOption(AbstractArgumentOption option) { ArrayList<String> result; Object currValue; Object currValues; int i; if ((option.isVariableAttached() && !m_OutputVariableValues) || !(option.getBaseClass() == CallableActorReference.class)) { result = ...
ArrayList<String> function(AbstractArgumentOption option) { ArrayList<String> result; Object currValue; Object currValues; int i; if ((option.isVariableAttached() && !m_OutputVariableValues) !(option.getBaseClass() == CallableActorReference.class)) { result = super.processOption(option); } else { result = new ArrayList...
/** * Visits an argument option. * * @param option the argument option * @return the last internal data structure that was generated */
Visits an argument option
processOption
{ "repo_name": "waikato-datamining/adams-base", "path": "adams-core/src/main/java/adams/core/option/MaterializedArrayProducer.java", "license": "gpl-3.0", "size": 4187 }
[ "java.lang.reflect.Array", "java.util.ArrayList" ]
import java.lang.reflect.Array; import java.util.ArrayList;
import java.lang.reflect.*; import java.util.*;
[ "java.lang", "java.util" ]
java.lang; java.util;
1,184,068
void launchSettingsActivity(Context context);
void launchSettingsActivity(Context context);
/** * Launches a Settings Activity with the default (top-level) fragment. * * @param context The current Activity, or an application context if no Activity is available. */
Launches a Settings Activity with the default (top-level) fragment
launchSettingsActivity
{ "repo_name": "scheib/chromium", "path": "components/browser_ui/settings/android/java/src/org/chromium/components/browser_ui/settings/SettingsLauncher.java", "license": "bsd-3-clause", "size": 2511 }
[ "android.content.Context" ]
import android.content.Context;
import android.content.*;
[ "android.content" ]
android.content;
1,282,105
public final void setButtonIcon(float width, float height, String texturePath) { if (icon == null) { icon = new Element( screen, this.getUID() + ":btnIcon", new Vector2f((getWidth()/2)-(width/2),(getHeight()/2)-(height/2)), new Vector2f(width,height), new Vector4f(0,0,0,0), texturePat...
final void function(float width, float height, String texturePath) { if (icon == null) { icon = new Element( screen, this.getUID() + STR, new Vector2f((getWidth()/2)-(width/2),(getHeight()/2)-(height/2)), new Vector2f(width,height), new Vector4f(0,0,0,0), texturePath ); icon.setIgnoreMouse(true); icon.setDocking(Dockin...
/** * If called, an overlay icon is added to the button. This icon is centered by default * * @param width width to display icon * @param height to display icon * @param texturePath The path of the image to use as the icon overlay */
If called, an overlay icon is added to the button. This icon is centered by default
setButtonIcon
{ "repo_name": "repetti/jmegui", "path": "src/main/java/tonegod/gui/controls/buttons/Button.java", "license": "bsd-2-clause", "size": 26955 }
[ "com.jme3.math.Vector2f", "com.jme3.math.Vector4f" ]
import com.jme3.math.Vector2f; import com.jme3.math.Vector4f;
import com.jme3.math.*;
[ "com.jme3.math" ]
com.jme3.math;
2,892,217
public boolean reconnectStoreIfClosed() throws MessagingException { boolean storeReconnected = false; // the folder is empty when the message is not loaded from IMAP server, but from a file Folder imapFolder = message.getFolder(); if (imapFolder == null) { imapFolder = ...
boolean function() throws MessagingException { boolean storeReconnected = false; Folder imapFolder = message.getFolder(); if (imapFolder == null) { imapFolder = this.partOfImapFolder; } else { partOfImapFolder = imapFolder; } if (imapFolder != null) { Store store = imapFolder.getStore(); if (store != null) { if (!store...
/** * Reconnects if connection is closed. * <b>Note</b>Internal method * @return true if store re-connection is performed and this means that close should be closed after the work is done * @throws MessagingException */
Reconnects if connection is closed. NoteInternal method
reconnectStoreIfClosed
{ "repo_name": "Axway/ats-framework", "path": "actionlibrary/src/main/java/com/axway/ats/action/objects/MimePackage.java", "license": "apache-2.0", "size": 81890 }
[ "javax.mail.Folder", "javax.mail.MessagingException", "javax.mail.Store" ]
import javax.mail.Folder; import javax.mail.MessagingException; import javax.mail.Store;
import javax.mail.*;
[ "javax.mail" ]
javax.mail;
2,201,434
SqlNode convertCall(RexCall call);
SqlNode convertCall(RexCall call);
/** * Converts a {@link RexCall} to a {@link SqlNode} expression. * * @param call RexCall to translate * @return SqlNode, or null if no translation was available */
Converts a <code>RexCall</code> to a <code>SqlNode</code> expression
convertCall
{ "repo_name": "googleinterns/calcite", "path": "core/src/main/java/org/apache/calcite/rex/RexToSqlNodeConverter.java", "license": "apache-2.0", "size": 2330 }
[ "org.apache.calcite.sql.SqlNode" ]
import org.apache.calcite.sql.SqlNode;
import org.apache.calcite.sql.*;
[ "org.apache.calcite" ]
org.apache.calcite;
2,158,122
public void setMemStats(List<Float> memStats) { this.memStats = memStats; }
void function(List<Float> memStats) { this.memStats = memStats; }
/** * Sets the mem stats. * * @param memStats the memStats to set */
Sets the mem stats
setMemStats
{ "repo_name": "impetus-opensource/jumbune", "path": "common/src/main/java/org/jumbune/common/beans/IntervalStats.java", "license": "lgpl-3.0", "size": 852 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,097,183
public List<FilterData> getExcitationFilters() { FilterSet f = (FilterSet) asIObject(); if (excitationFilters == null && f.sizeOfExcitationFilterLink() > 0) { excitationFilters = new ArrayList<FilterData>(); List<FilterSetExcitationFilterLink> l = f.copyExcitationFilterLi...
List<FilterData> function() { FilterSet f = (FilterSet) asIObject(); if (excitationFilters == null && f.sizeOfExcitationFilterLink() > 0) { excitationFilters = new ArrayList<FilterData>(); List<FilterSetExcitationFilterLink> l = f.copyExcitationFilterLink(); Iterator<FilterSetExcitationFilterLink> i = l.iterator(); whi...
/** * Returns the collections of excitation filters if any. * * @return See above. */
Returns the collections of excitation filters if any
getExcitationFilters
{ "repo_name": "simleo/openmicroscopy", "path": "components/blitz/src/omero/gateway/model/FilterSetData.java", "license": "gpl-2.0", "size": 4952 }
[ "java.util.ArrayList", "java.util.Iterator", "java.util.List" ]
import java.util.ArrayList; import java.util.Iterator; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,637,626
private void calculateXYOffset(Point mousePosition) { // No mouse click, so increment position by 10,10 if(mousePosition == null) { fXOffSet += 10; fYOffSet += 10; return; } // Find leftmost and topmost origin of top level copied o...
void function(Point mousePosition) { if(mousePosition == null) { fXOffSet += 10; fYOffSet += 10; return; } Point ptSmallest = getMinimumPoint(fOriginalToSnapshotComponentsMapping.keySet()); if(ptSmallest != null) { fXOffSet = mousePosition.x - ptSmallest.x; fYOffSet = mousePosition.y - ptSmallest.y; } }
/** * Calculate x,y origin offset based on mouse click for paste action. */
Calculate x,y origin offset based on mouse click for paste action
calculateXYOffset
{ "repo_name": "archimatetool/archi", "path": "com.archimatetool.editor/src/com/archimatetool/editor/diagram/actions/CopySnapshot.java", "license": "mit", "size": 41045 }
[ "org.eclipse.draw2d.geometry.Point" ]
import org.eclipse.draw2d.geometry.Point;
import org.eclipse.draw2d.geometry.*;
[ "org.eclipse.draw2d" ]
org.eclipse.draw2d;
361,606
List<Attribute> getRequiredAttributes(PerunSession sess, Facility facility);
List<Attribute> getRequiredAttributes(PerunSession sess, Facility facility);
/** * Get facility attributes which are required by all services which are connected to this facility. * * @param sess perun session * @param facility you get attributes for this facility * @return list of facility attributes which are required by all services which are connected to this facility. * * @t...
Get facility attributes which are required by all services which are connected to this facility
getRequiredAttributes
{ "repo_name": "zlamalp/perun", "path": "perun-core/src/main/java/cz/metacentrum/perun/core/bl/AttributesManagerBl.java", "license": "bsd-2-clause", "size": 244560 }
[ "cz.metacentrum.perun.core.api.Attribute", "cz.metacentrum.perun.core.api.Facility", "cz.metacentrum.perun.core.api.PerunSession", "java.util.List" ]
import cz.metacentrum.perun.core.api.Attribute; import cz.metacentrum.perun.core.api.Facility; import cz.metacentrum.perun.core.api.PerunSession; import java.util.List;
import cz.metacentrum.perun.core.api.*; import java.util.*;
[ "cz.metacentrum.perun", "java.util" ]
cz.metacentrum.perun; java.util;
1,814,034
@Override public void handleCommand(ChannelUID channelUID, Command command) { try { boolean commandSent = false; boolean unknownCommand = false; if (channelUID.getId().contains(PioneerAvrBindingConstants.POWER_CHANNEL)) { commandSent = connection.sen...
void function(ChannelUID channelUID, Command command) { try { boolean commandSent = false; boolean unknownCommand = false; if (channelUID.getId().contains(PioneerAvrBindingConstants.POWER_CHANNEL)) { commandSent = connection.sendPowerCommand(command, getZoneFromChannelUID(channelUID.getId())); } else if (channelUID.get...
/** * Send a command to the AVR based on the openHAB command received. */
Send a command to the AVR based on the openHAB command received
handleCommand
{ "repo_name": "sebmarchand/openhab2-addons", "path": "addons/binding/org.openhab.binding.pioneeravr/src/main/java/org/openhab/binding/pioneeravr/internal/handler/AbstractAvrHandler.java", "license": "epl-1.0", "size": 12824 }
[ "org.eclipse.smarthome.core.thing.ChannelUID", "org.eclipse.smarthome.core.types.Command", "org.openhab.binding.pioneeravr.PioneerAvrBindingConstants", "org.openhab.binding.pioneeravr.protocol.CommandTypeNotSupportedException" ]
import org.eclipse.smarthome.core.thing.ChannelUID; import org.eclipse.smarthome.core.types.Command; import org.openhab.binding.pioneeravr.PioneerAvrBindingConstants; import org.openhab.binding.pioneeravr.protocol.CommandTypeNotSupportedException;
import org.eclipse.smarthome.core.thing.*; import org.eclipse.smarthome.core.types.*; import org.openhab.binding.pioneeravr.*; import org.openhab.binding.pioneeravr.protocol.*;
[ "org.eclipse.smarthome", "org.openhab.binding" ]
org.eclipse.smarthome; org.openhab.binding;
274,018
public FeatureResultSet queryFeaturesForChunk(String[] columns, String where, String[] whereArgs, int limit) { return queryFeaturesForChunk(columns, where, whereArgs, getPkColumnName(), limit); }
FeatureResultSet function(String[] columns, String where, String[] whereArgs, int limit) { return queryFeaturesForChunk(columns, where, whereArgs, getPkColumnName(), limit); }
/** * Query for features ordered by id, starting at the offset and returning no * more than the limit * * @param columns * columns * @param where * where clause * @param whereArgs * where arguments * @param limit * chunk limit * * @return feature r...
Query for features ordered by id, starting at the offset and returning no more than the limit
queryFeaturesForChunk
{ "repo_name": "ngageoint/geopackage-java", "path": "src/main/java/mil/nga/geopackage/extension/rtree/RTreeIndexTableDao.java", "license": "mit", "size": 349361 }
[ "mil.nga.geopackage.features.user.FeatureResultSet" ]
import mil.nga.geopackage.features.user.FeatureResultSet;
import mil.nga.geopackage.features.user.*;
[ "mil.nga.geopackage" ]
mil.nga.geopackage;
1,962,464
// Create a resource and initialize it SafetyReportRulesManagementResource resource = (SafetyReportRulesManagementResource) createNewInstance(); // Create the resource properties bean so that the resource can use it to hold the resource property values SafetyReportRulesManagementResourceProperties props = new ...
SafetyReportRulesManagementResource resource = (SafetyReportRulesManagementResource) createNewInstance(); SafetyReportRulesManagementResourceProperties props = new SafetyReportRulesManagementResourceProperties(); Object id = UUIDGEN.nextUUID(); ResourceKey key = new SimpleResourceKey(getKeyTypeName(), id); resource.set...
/** * Creates a new Resource, adds it to the list of resources managed by this resource home, * and returns the key to the resource. */
Creates a new Resource, adds it to the list of resources managed by this resource home, and returns the key to the resource
createResource
{ "repo_name": "NCIP/caaers", "path": "caAERS/software/grid/introduce/SafetyReportingEnterpriseService/src/gov/nih/nci/ess/safetyreporting/rules/service/globus/resource/SafetyReportRulesManagementResourceHome.java", "license": "bsd-3-clause", "size": 4140 }
[ "gov.nih.nci.ess.safetyreporting.rules.common.SafetyReportRulesManagementConstants", "gov.nih.nci.ess.safetyreporting.rules.stubs.SafetyReportRulesManagementResourceProperties", "org.globus.wsrf.ResourceKey", "org.globus.wsrf.impl.SimpleResourceKey" ]
import gov.nih.nci.ess.safetyreporting.rules.common.SafetyReportRulesManagementConstants; import gov.nih.nci.ess.safetyreporting.rules.stubs.SafetyReportRulesManagementResourceProperties; import org.globus.wsrf.ResourceKey; import org.globus.wsrf.impl.SimpleResourceKey;
import gov.nih.nci.ess.safetyreporting.rules.common.*; import gov.nih.nci.ess.safetyreporting.rules.stubs.*; import org.globus.wsrf.*; import org.globus.wsrf.impl.*;
[ "gov.nih.nci", "org.globus.wsrf" ]
gov.nih.nci; org.globus.wsrf;
1,401,189
@Benchmark public void concurrentHashMap(Blackhole hole) { runAgainst(concurrentHashMap, hole); }
void function(Blackhole hole) { runAgainst(concurrentHashMap, hole); }
/** * Will put, get and remove a {@code FastMoneyPrice} using a {@code * ConcurrentHashMap}. * * @param hole black hole provided by JHM */
Will put, get and remove a FastMoneyPrice using a ConcurrentHashMap
concurrentHashMap
{ "repo_name": "MartinanderssonDotcom/money-profiling", "path": "src/test/java/com/martinandersson/money/benchmark/ChronicleMapBaselineBenchmark.java", "license": "mit", "size": 5650 }
[ "org.openjdk.jmh.infra.Blackhole" ]
import org.openjdk.jmh.infra.Blackhole;
import org.openjdk.jmh.infra.*;
[ "org.openjdk.jmh" ]
org.openjdk.jmh;
2,797,503
public void viewObject(int id) { Bundle b = new Bundle(); b.putString("org.dronin.androidgcs.ObjectName", allObjects.get(selected_index).getName()); b.putLong("org.dronin.androidgcs.ObjectId", allObjects.get(selected_index).getObjID()); b.putLong("org.dronin.androidgcs.InstId", allObjects.get(selected_index)...
void function(int id) { Bundle b = new Bundle(); b.putString(STR, allObjects.get(selected_index).getName()); b.putLong(STR, allObjects.get(selected_index).getObjID()); b.putLong(STR, allObjects.get(selected_index).getInstID()); Fragment newFrag = new ObjectViewer(); newFrag.setArguments(b); if (displayMode == DisplayMo...
/** * Display the fragment to view this object * @param id */
Display the fragment to view this object
viewObject
{ "repo_name": "jpbarraca/dRonin", "path": "androidgcs/src/org/dronin/androidgcs/ObjectBrowser.java", "license": "gpl-3.0", "size": 8912 }
[ "android.app.Fragment", "android.app.FragmentTransaction", "android.os.Bundle", "org.dronin.androidgcs.fragments.ObjectViewer" ]
import android.app.Fragment; import android.app.FragmentTransaction; import android.os.Bundle; import org.dronin.androidgcs.fragments.ObjectViewer;
import android.app.*; import android.os.*; import org.dronin.androidgcs.fragments.*;
[ "android.app", "android.os", "org.dronin.androidgcs" ]
android.app; android.os; org.dronin.androidgcs;
525,304
protected void setupEventWriter(JobId jobId, AMStartedEvent amStartedEvent) throws IOException { if (stagingDirPath == null) { LOG.error("Log Directory is null, returning"); throw new IOException("Missing Log Directory for History"); } MetaInfo oldFi = fileMap.get(jobId); Configurat...
void function(JobId jobId, AMStartedEvent amStartedEvent) throws IOException { if (stagingDirPath == null) { LOG.error(STR); throw new IOException(STR); } MetaInfo oldFi = fileMap.get(jobId); Configuration conf = getConfig(); Path historyFile = JobHistoryUtils.getStagingJobHistoryFile( stagingDirPath, jobId, startCount...
/** * Create an event writer for the Job represented by the jobID. * Writes out the job configuration to the log directory. * This should be the first call to history for a job * * @param jobId the jobId. * @param amStartedEvent * @throws IOException */
Create an event writer for the Job represented by the jobID. Writes out the job configuration to the log directory. This should be the first call to history for a job
setupEventWriter
{ "repo_name": "cnfire/hadoop", "path": "hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-app/src/main/java/org/apache/hadoop/mapreduce/jobhistory/JobHistoryEventHandler.java", "license": "apache-2.0", "size": 56764 }
[ "java.io.IOException", "org.apache.hadoop.conf.Configuration", "org.apache.hadoop.fs.FSDataOutputStream", "org.apache.hadoop.fs.Path", "org.apache.hadoop.mapred.JobConf", "org.apache.hadoop.mapreduce.MRJobConfig", "org.apache.hadoop.mapreduce.v2.api.records.JobId", "org.apache.hadoop.mapreduce.v2.jobh...
import java.io.IOException; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.FSDataOutputStream; import org.apache.hadoop.fs.Path; import org.apache.hadoop.mapred.JobConf; import org.apache.hadoop.mapreduce.MRJobConfig; import org.apache.hadoop.mapreduce.v2.api.records.JobId; import org.apache.h...
import java.io.*; import org.apache.hadoop.conf.*; import org.apache.hadoop.fs.*; import org.apache.hadoop.mapred.*; import org.apache.hadoop.mapreduce.*; import org.apache.hadoop.mapreduce.v2.api.records.*; import org.apache.hadoop.mapreduce.v2.jobhistory.*; import org.apache.hadoop.security.*;
[ "java.io", "org.apache.hadoop" ]
java.io; org.apache.hadoop;
111,739
AdminService.BlockingInterface getAdminForMaster() throws IOException;
AdminService.BlockingInterface getAdminForMaster() throws IOException;
/** * Get the admin service for master. */
Get the admin service for master
getAdminForMaster
{ "repo_name": "HubSpot/hbase", "path": "hbase-client/src/main/java/org/apache/hadoop/hbase/client/ClusterConnection.java", "license": "apache-2.0", "size": 11928 }
[ "java.io.IOException", "org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos" ]
import java.io.IOException; import org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos;
import java.io.*; import org.apache.hadoop.hbase.shaded.protobuf.generated.*;
[ "java.io", "org.apache.hadoop" ]
java.io; org.apache.hadoop;
2,426,045
@SuppressWarnings("unchecked") @Autowired(required=false) public void setDataExporters(Collection<IDataExporter<? extends Object>> dataExporters) { final Map<String, IDataExporter<Object>> dataExportersMap = new LinkedHashMap<String, IDataExporter<Object>>(); final Set<IPortalDataTy...
@SuppressWarnings(STR) @Autowired(required=false) void function(Collection<IDataExporter<? extends Object>> dataExporters) { final Map<String, IDataExporter<Object>> dataExportersMap = new LinkedHashMap<String, IDataExporter<Object>>(); final Set<IPortalDataType> portalDataTypes = new LinkedHashSet<IPortalDataType>(); ...
/** * {@link IDataExporter} implementations to delegate export operations to. */
<code>IDataExporter</code> implementations to delegate export operations to
setDataExporters
{ "repo_name": "ASU-Capstone/uPortal-Forked", "path": "uportal-war/src/main/java/org/jasig/portal/io/xml/JaxbPortalDataHandlerService.java", "license": "apache-2.0", "size": 53496 }
[ "java.util.Collection", "java.util.Collections", "java.util.LinkedHashMap", "java.util.LinkedHashSet", "java.util.Map", "java.util.Set", "org.springframework.beans.factory.annotation.Autowired" ]
import java.util.Collection; import java.util.Collections; import java.util.LinkedHashMap; import java.util.LinkedHashSet; import java.util.Map; import java.util.Set; import org.springframework.beans.factory.annotation.Autowired;
import java.util.*; import org.springframework.beans.factory.annotation.*;
[ "java.util", "org.springframework.beans" ]
java.util; org.springframework.beans;
726,148
if (duration == null) { return 60 * 60 * 24 * 30; } int toAdd = -1; if (days.matcher(duration).matches()) { Matcher matcher = days.matcher(duration); matcher.matches(); toAdd = Integer.parseInt(matcher.group(1)) * (60 * 60) * 24; } else if ...
if (duration == null) { return 60 * 60 * 24 * 30; } int toAdd = -1; if (days.matcher(duration).matches()) { Matcher matcher = days.matcher(duration); matcher.matches(); toAdd = Integer.parseInt(matcher.group(1)) * (60 * 60) * 24; } else if (hours.matcher(duration).matches()) { Matcher matcher = hours.matcher(duration);...
/** * Parse a duration * * @param duration 3h, 2mn, 7s * @return The number of seconds */
Parse a duration
parseDuration
{ "repo_name": "icode/ameba-utils", "path": "src/main/java/ameba/util/Times.java", "license": "mit", "size": 2443 }
[ "java.util.regex.Matcher" ]
import java.util.regex.Matcher;
import java.util.regex.*;
[ "java.util" ]
java.util;
568,635
traceContext(e, ContextUtil.getContext()); }
traceContext(e, ContextUtil.getContext()); }
/** * Trace provided {@link Throwable} to the resource entry in current context. * * @param e exception to record */
Trace provided <code>Throwable</code> to the resource entry in current context
trace
{ "repo_name": "alibaba/Sentinel", "path": "sentinel-core/src/main/java/com/alibaba/csp/sentinel/Tracer.java", "license": "apache-2.0", "size": 7115 }
[ "com.alibaba.csp.sentinel.context.ContextUtil" ]
import com.alibaba.csp.sentinel.context.ContextUtil;
import com.alibaba.csp.sentinel.context.*;
[ "com.alibaba.csp" ]
com.alibaba.csp;
790,214
EReference getModel_NestedModel();
EReference getModel_NestedModel();
/** * Returns the meta object for the containment reference list '{@link org.eclipse.xtext.parser.unorderedGroups.unorderedGroupsTestLanguage.Model#getNestedModel <em>Nested Model</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for the containment reference list '<em>Nest...
Returns the meta object for the containment reference list '<code>org.eclipse.xtext.parser.unorderedGroups.unorderedGroupsTestLanguage.Model#getNestedModel Nested Model</code>'.
getModel_NestedModel
{ "repo_name": "miklossy/xtext-core", "path": "org.eclipse.xtext.tests/src-gen/org/eclipse/xtext/parser/unorderedGroups/unorderedGroupsTestLanguage/UnorderedGroupsTestLanguagePackage.java", "license": "epl-1.0", "size": 25772 }
[ "org.eclipse.emf.ecore.EReference" ]
import org.eclipse.emf.ecore.EReference;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
2,523,128
public void testDumpSupplementaryCharacter() throws UnsupportedEncodingException { String supplementary = "\ud83d\ude48"; Yaml yaml = new Yaml(); String output = yaml.dump(supplementary); assertEquals("!!binary |-\n 8J+ZiA==\n", output); byte[] binary = (byte[]) yaml.load(ou...
void function() throws UnsupportedEncodingException { String supplementary = STR; Yaml yaml = new Yaml(); String output = yaml.dump(supplementary); assertEquals(STR, output); byte[] binary = (byte[]) yaml.load(output); String binString = new String(binary, "UTF-8"); assertEquals(supplementary, binString); }
/** * Supplementary Characters are dumped as binary */
Supplementary Characters are dumped as binary
testDumpSupplementaryCharacter
{ "repo_name": "PRECISE/ROSLab", "path": "lib/snakeyaml-src/src/test/java/org/yaml/snakeyaml/issues/issue137/SupplementaryCharactersTest.java", "license": "apache-2.0", "size": 2148 }
[ "java.io.UnsupportedEncodingException", "org.yaml.snakeyaml.Yaml" ]
import java.io.UnsupportedEncodingException; import org.yaml.snakeyaml.Yaml;
import java.io.*; import org.yaml.snakeyaml.*;
[ "java.io", "org.yaml.snakeyaml" ]
java.io; org.yaml.snakeyaml;
639,009
void processModuleLibrary(String serviceName, YangModuleLibrary library);
void processModuleLibrary(String serviceName, YangModuleLibrary library);
/** * Process module library for a registered service. * * @param serviceName service class name * @param library YANG module library */
Process module library for a registered service
processModuleLibrary
{ "repo_name": "kuujo/onos", "path": "apps/yms/app/src/main/java/org/onosproject/yms/app/ysr/YangSchemaRegistry.java", "license": "apache-2.0", "size": 5266 }
[ "org.onosproject.yms.ysr.YangModuleLibrary" ]
import org.onosproject.yms.ysr.YangModuleLibrary;
import org.onosproject.yms.ysr.*;
[ "org.onosproject.yms" ]
org.onosproject.yms;
2,723,650
static boolean isBlockScopedDeclaration(Node n) { if (n.isName()) { switch (n.getParent().getToken()) { case LET: case CONST: case CATCH: return true; case CLASS: return n.getParent().getFirstChild() == n; case FUNCTION: return isBlockSco...
static boolean isBlockScopedDeclaration(Node n) { if (n.isName()) { switch (n.getParent().getToken()) { case LET: case CONST: case CATCH: return true; case CLASS: return n.getParent().getFirstChild() == n; case FUNCTION: return isBlockScopedFunctionDeclaration(n.getParent()); default: break; } } return false; }
/** * Is this node the name of a block-scoped declaration? * Checks for let, const, class, or block-scoped function declarations. * * @param n The node * @return True if {@code n} is the NAME of a block-scoped declaration. */
Is this node the name of a block-scoped declaration? Checks for let, const, class, or block-scoped function declarations
isBlockScopedDeclaration
{ "repo_name": "Yannic/closure-compiler", "path": "src/com/google/javascript/jscomp/NodeUtil.java", "license": "apache-2.0", "size": 170457 }
[ "com.google.javascript.rhino.Node" ]
import com.google.javascript.rhino.Node;
import com.google.javascript.rhino.*;
[ "com.google.javascript" ]
com.google.javascript;
2,364,054
public static final Parcelable.Creator<AudioAttributes> CREATOR = new Parcelable.Creator<AudioAttributes>() { public AudioAttributes createFromParcel(Parcel p) { return new AudioAttributes(p); }
static final Parcelable.Creator<AudioAttributes> CREATOR = new Parcelable.Creator<AudioAttributes>() { public AudioAttributes function(Parcel p) { return new AudioAttributes(p); }
/** * Rebuilds an AudioAttributes previously stored with writeToParcel(). * @param p Parcel object to read the AudioAttributes from * @return a new AudioAttributes created from the data in the parcel */
Rebuilds an AudioAttributes previously stored with writeToParcel()
createFromParcel
{ "repo_name": "s20121035/rk3288_android5.1_repo", "path": "frameworks/base/media/java/android/media/AudioAttributes.java", "license": "gpl-3.0", "size": 31336 }
[ "android.os.Parcel", "android.os.Parcelable" ]
import android.os.Parcel; import android.os.Parcelable;
import android.os.*;
[ "android.os" ]
android.os;
2,453,026
private XTextRange getBookmarkRange(String name) throws NoSuchElementException, WrappedTargetException { XNameAccess xNamedBookmarks = getBookmarks(); // retrieve bookmark by name if (!xNamedBookmarks.hasByName(name)) { return null; } Object foundBookmark = xName...
XTextRange function(String name) throws NoSuchElementException, WrappedTargetException { XNameAccess xNamedBookmarks = getBookmarks(); if (!xNamedBookmarks.hasByName(name)) { return null; } Object foundBookmark = xNamedBookmarks.getByName(name); XTextContent xFoundBookmark = UnoRuntime.queryInterface(XTextContent.class...
/** * Get the XTextRange corresponding to the named bookmark. * @param name The name of the bookmark to find. * @return The XTextRange for the bookmark. * @throws WrappedTargetException * @throws NoSuchElementException */
Get the XTextRange corresponding to the named bookmark
getBookmarkRange
{ "repo_name": "ambro2/jabref", "path": "src/main/java/net/sf/jabref/gui/openoffice/OOBibBase.java", "license": "gpl-2.0", "size": 63862 }
[ "com.sun.star.container.NoSuchElementException", "com.sun.star.container.XNameAccess", "com.sun.star.lang.WrappedTargetException", "com.sun.star.text.XTextContent", "com.sun.star.text.XTextRange", "com.sun.star.uno.UnoRuntime" ]
import com.sun.star.container.NoSuchElementException; import com.sun.star.container.XNameAccess; import com.sun.star.lang.WrappedTargetException; import com.sun.star.text.XTextContent; import com.sun.star.text.XTextRange; import com.sun.star.uno.UnoRuntime;
import com.sun.star.container.*; import com.sun.star.lang.*; import com.sun.star.text.*; import com.sun.star.uno.*;
[ "com.sun.star" ]
com.sun.star;
2,726,568
public GroovyClassLoader getGroovyClassLoader() { synchronized (this.scriptClassMonitor) { if (this.groovyClassLoader == null) { this.groovyClassLoader = buildGroovyClassLoader(ClassUtils.getDefaultClassLoader()); } return this.groovyClassLoader; } }
GroovyClassLoader function() { synchronized (this.scriptClassMonitor) { if (this.groovyClassLoader == null) { this.groovyClassLoader = buildGroovyClassLoader(ClassUtils.getDefaultClassLoader()); } return this.groovyClassLoader; } }
/** * Return the GroovyClassLoader used by this script factory. */
Return the GroovyClassLoader used by this script factory
getGroovyClassLoader
{ "repo_name": "boggad/jdk9-sample", "path": "sample-catalog/src/main/spring.context/org/springframework/scripting/groovy/GroovyScriptFactory.java", "license": "mit", "size": 12395 }
[ "groovy.lang.GroovyClassLoader", "org.springframework.util.ClassUtils" ]
import groovy.lang.GroovyClassLoader; import org.springframework.util.ClassUtils;
import groovy.lang.*; import org.springframework.util.*;
[ "groovy.lang", "org.springframework.util" ]
groovy.lang; org.springframework.util;
620,432
public void addSubstitute(String match, String replace) { if (!substitutes.containsKey(match)) { substitutes.put(match, new ArrayList<>()); } substitutes.get(match).add(replace); }
void function(String match, String replace) { if (!substitutes.containsKey(match)) { substitutes.put(match, new ArrayList<>()); } substitutes.get(match).add(replace); }
/** * Adds a top-priority substitute for the given font. * * @param match PostScript name of the font to match * @param replace PostScript name of the font to use as a replacement */
Adds a top-priority substitute for the given font
addSubstitute
{ "repo_name": "kalaspuffar/pdfbox", "path": "pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/FontMapperImpl.java", "license": "apache-2.0", "size": 27339 }
[ "java.util.ArrayList" ]
import java.util.ArrayList;
import java.util.*;
[ "java.util" ]
java.util;
1,198,596
private void annotateResponse(String hostname, HeartBeatResponse response) throws AmbariException { for (Cluster cl : clusterFsm.getClustersForHost(hostname)) { response.setClusterSize(cl.getClusterSize()); List<ServiceComponentHost> scHosts = cl.getServiceComponentHosts(hostname); if (scHosts ...
void function(String hostname, HeartBeatResponse response) throws AmbariException { for (Cluster cl : clusterFsm.getClustersForHost(hostname)) { response.setClusterSize(cl.getClusterSize()); List<ServiceComponentHost> scHosts = cl.getServiceComponentHosts(hostname); if (scHosts != null && scHosts.size() > 0) { response...
/** * Annotate the response with some housekeeping details. * hasMappedComponents - indicates if any components are mapped to the host * hasPendingTasks - indicates if any tasks are pending for the host (they may not be sent yet) * clusterSize - indicates the number of hosts that form the cluster * @para...
Annotate the response with some housekeeping details. hasMappedComponents - indicates if any components are mapped to the host hasPendingTasks - indicates if any tasks are pending for the host (they may not be sent yet) clusterSize - indicates the number of hosts that form the cluster
annotateResponse
{ "repo_name": "alexryndin/ambari", "path": "ambari-server/src/main/java/org/apache/ambari/server/agent/HeartBeatHandler.java", "license": "apache-2.0", "size": 29141 }
[ "java.util.List", "org.apache.ambari.server.AmbariException", "org.apache.ambari.server.state.Cluster", "org.apache.ambari.server.state.ServiceComponentHost" ]
import java.util.List; import org.apache.ambari.server.AmbariException; import org.apache.ambari.server.state.Cluster; import org.apache.ambari.server.state.ServiceComponentHost;
import java.util.*; import org.apache.ambari.server.*; import org.apache.ambari.server.state.*;
[ "java.util", "org.apache.ambari" ]
java.util; org.apache.ambari;
289,164
String launcherTypeValue = sysProps.getProperty(ConfigurationKeys.JOB_LAUNCHER_TYPE_KEY, JobLauncherType.LOCAL.name()); Optional<JobLauncherType> launcherType = Enums.getIfPresent(JobLauncherType.class, launcherTypeValue); if (launcherType.isPresent()) { switch (launcherType.get()) { ...
String launcherTypeValue = sysProps.getProperty(ConfigurationKeys.JOB_LAUNCHER_TYPE_KEY, JobLauncherType.LOCAL.name()); Optional<JobLauncherType> launcherType = Enums.getIfPresent(JobLauncherType.class, launcherTypeValue); if (launcherType.isPresent()) { switch (launcherType.get()) { case LOCAL: return new LocalJobLaun...
/** * Create a new {@link JobLauncher}. * * <p> * This method will never return a {@code null}. * </p> * * @param sysProps system configuration properties * @param jobProps job configuration properties * @return newly created {@link JobLauncher} */
Create a new <code>JobLauncher</code>. This method will never return a null.
newJobLauncher
{ "repo_name": "liyinan926/gobblin", "path": "gobblin-runtime/src/main/java/gobblin/runtime/JobLauncherFactory.java", "license": "apache-2.0", "size": 2588 }
[ "com.google.common.base.Enums", "com.google.common.base.Optional", "java.util.Properties" ]
import com.google.common.base.Enums; import com.google.common.base.Optional; import java.util.Properties;
import com.google.common.base.*; import java.util.*;
[ "com.google.common", "java.util" ]
com.google.common; java.util;
2,778,903
List<CertificateAuthorityEntity> listActiveCertificateAuthorities();
List<CertificateAuthorityEntity> listActiveCertificateAuthorities();
/** * Gives back a list of all certificate authorities that have an active CRL * cache. * * @return */
Gives back a list of all certificate authorities that have an active CRL cache
listActiveCertificateAuthorities
{ "repo_name": "Renaud-V/eid-trust-service", "path": "eid-trust-service-model/src/main/java/be/fedict/trust/service/dao/CertificateAuthorityDAO.java", "license": "gpl-3.0", "size": 3997 }
[ "be.fedict.trust.service.entity.CertificateAuthorityEntity", "java.util.List" ]
import be.fedict.trust.service.entity.CertificateAuthorityEntity; import java.util.List;
import be.fedict.trust.service.entity.*; import java.util.*;
[ "be.fedict.trust", "java.util" ]
be.fedict.trust; java.util;
1,681,095
public DateHistogramInterval getInterval() { return interval; }
DateHistogramInterval function() { return interval; }
/** * Get the date interval */
Get the date interval
getInterval
{ "repo_name": "nknize/elasticsearch", "path": "x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/rollup/RollupActionDateHistogramGroupConfig.java", "license": "apache-2.0", "size": 13381 }
[ "org.elasticsearch.search.aggregations.bucket.histogram.DateHistogramInterval" ]
import org.elasticsearch.search.aggregations.bucket.histogram.DateHistogramInterval;
import org.elasticsearch.search.aggregations.bucket.histogram.*;
[ "org.elasticsearch.search" ]
org.elasticsearch.search;
2,004,838
@Test public void testRefactorCaseBlockAdd() throws Exception { VariationPoint vp = RefactoringTestUtil.getBlockAddCase(VariabilityType.OPTXOR); IfStaticConfigClassBlock refactoring = new IfStaticConfigClassBlock(); refactoring.refactor(vp, null); // location has one member ...
void function() throws Exception { VariationPoint vp = RefactoringTestUtil.getBlockAddCase(VariabilityType.OPTXOR); IfStaticConfigClassBlock refactoring = new IfStaticConfigClassBlock(); refactoring.refactor(vp, null); MemberContainer vpLocation = (MemberContainer) ((JaMoPPJavaSoftwareElement) vp.getLocation()).getJamo...
/** * Tests whether the refactoring adds a missing class from the integration variant to the base * correctly. * * @throws Exception * In case of an unexpected exception. */
Tests whether the refactoring adds a missing class from the integration variant to the base correctly
testRefactorCaseBlockAdd
{ "repo_name": "kopl/SPLevo", "path": "JaMoPPCartridge/org.splevo.jamopp.refactoring.java.ifelse.tests/src/org/splevo/jamopp/refactoring/java/ifelse/tests/IfStaticConfigClassBlockTest.java", "license": "epl-1.0", "size": 6771 }
[ "org.emftext.language.java.members.MemberContainer", "org.emftext.language.java.statements.Block", "org.emftext.language.java.statements.ExpressionStatement", "org.hamcrest.CoreMatchers", "org.junit.Assert", "org.splevo.jamopp.refactoring.java.ifelse.IfStaticConfigClassBlock", "org.splevo.jamopp.refacto...
import org.emftext.language.java.members.MemberContainer; import org.emftext.language.java.statements.Block; import org.emftext.language.java.statements.ExpressionStatement; import org.hamcrest.CoreMatchers; import org.junit.Assert; import org.splevo.jamopp.refactoring.java.ifelse.IfStaticConfigClassBlock; import org.s...
import org.emftext.language.java.members.*; import org.emftext.language.java.statements.*; import org.hamcrest.*; import org.junit.*; import org.splevo.jamopp.refactoring.java.ifelse.*; import org.splevo.jamopp.refactoring.java.ifelse.tests.util.*; import org.splevo.jamopp.vpm.software.*; import org.splevo.vpm.variabil...
[ "org.emftext.language", "org.hamcrest", "org.junit", "org.splevo.jamopp", "org.splevo.vpm" ]
org.emftext.language; org.hamcrest; org.junit; org.splevo.jamopp; org.splevo.vpm;
2,640,317
return Collections.singleton(this); }
return Collections.singleton(this); }
/** * Returns an unmodifiable set that contains only this variable. * * @return an unmodifiable set that contains only this variable. */
Returns an unmodifiable set that contains only this variable
getVariables
{ "repo_name": "ferjorosa/Voltric", "path": "src/main/java/voltric/variables/ContinuousVariable.java", "license": "apache-2.0", "size": 1864 }
[ "java.util.Collections" ]
import java.util.Collections;
import java.util.*;
[ "java.util" ]
java.util;
65,484
@Override public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { if (table != null && table.getTableHeader() != null) { JTableHeader header = table.getTableHead...
Component function(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { if (table != null && table.getTableHeader() != null) { JTableHeader header = table.getTableHeader(); setForeground(header.getForeground()); setBackground(header.getBackground()); setFont(header.getFont()); } else...
/** * Retrieves a label used for rendering a field name and its type icon. * The label will have a dark gray background if the field is not editable. * @see javax.swing.table.TableCellRenderer#getTableCellRendererComponent(javax.swing.JTable, java.lang.Object, boolean, boolea...
Retrieves a label used for rendering a field name and its type icon. The label will have a dark gray background if the field is not editable
getTableCellRendererComponent
{ "repo_name": "levans/Open-Quark", "path": "src/Quark_Gems/src/org/openquark/gems/client/valueentry/RecordValueEditor.java", "license": "bsd-3-clause", "size": 94830 }
[ "java.awt.Component", "javax.swing.JTable", "javax.swing.UIManager", "javax.swing.table.DefaultTableModel", "javax.swing.table.JTableHeader" ]
import java.awt.Component; import javax.swing.JTable; import javax.swing.UIManager; import javax.swing.table.DefaultTableModel; import javax.swing.table.JTableHeader;
import java.awt.*; import javax.swing.*; import javax.swing.table.*;
[ "java.awt", "javax.swing" ]
java.awt; javax.swing;
2,865,747
@Override public String toString() { return (getName()); } private static final LineStyle[] TYPE_VALUES = new LineStyle[5]; static { for (LineStyle e : EnumSet.range(LineStyle.NONE, LineStyle.DASHED)) { TYPE_VALUES[e.getValue()] = e; } } p...
@Override String function() { return (getName()); } private static final LineStyle[] TYPE_VALUES = new LineStyle[5]; static { for (LineStyle e : EnumSet.range(LineStyle.NONE, LineStyle.DASHED)) { TYPE_VALUES[e.getValue()] = e; } } private int m_value; private String m_name;
/** * Retrieve the String representation of this line style. * * @return String representation of this line style */
Retrieve the String representation of this line style
toString
{ "repo_name": "srnsw/xena", "path": "plugins/project/ext/src/mpxj/src/net/sf/mpxj/mpp/LineStyle.java", "license": "gpl-3.0", "size": 3313 }
[ "java.util.EnumSet" ]
import java.util.EnumSet;
import java.util.*;
[ "java.util" ]
java.util;
2,631,309
EList<Facet> getMinExclusive();
EList<Facet> getMinExclusive();
/** * Returns the value of the '<em><b>Min Exclusive</b></em>' containment reference list. * The list contents are of type {@link org.w3._2001.schema.Facet}. * <!-- begin-user-doc --> * <!-- end-user-doc --> * <!-- begin-model-doc --> * * <!-- end-model-doc --> * @return the value of the '<em>Min Exclu...
Returns the value of the 'Min Exclusive' containment reference list. The list contents are of type <code>org.w3._2001.schema.Facet</code>.
getMinExclusive
{ "repo_name": "geotools/geotools", "path": "modules/ogc/net.opengis.wps/src/org/w3/_2001/schema/RestrictionType1.java", "license": "lgpl-2.1", "size": 12522 }
[ "org.eclipse.emf.common.util.EList" ]
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.common.util.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
1,087,030
OzoneConfiguration conf = new OzoneConfiguration(); conf.set(OzoneConfigKeys.OZONE_HANDLER_TYPE_KEY, OzoneConsts.OZONE_HANDLER_DISTRIBUTED); conf.setInt(ScmConfigKeys.OZONE_SCM_CONTAINER_PROVISION_BATCH_SIZE, 1); cluster = MiniOzoneCluster.newBuilder(conf).setNumDatanodes(10).build(); cluster.wa...
OzoneConfiguration conf = new OzoneConfiguration(); conf.set(OzoneConfigKeys.OZONE_HANDLER_TYPE_KEY, OzoneConsts.OZONE_HANDLER_DISTRIBUTED); conf.setInt(ScmConfigKeys.OZONE_SCM_CONTAINER_PROVISION_BATCH_SIZE, 1); cluster = MiniOzoneCluster.newBuilder(conf).setNumDatanodes(10).build(); cluster.waitForClusterToBeReady();...
/** * Create a MiniOzoneCluster for testing. * <p> * Ozone is made active by setting OZONE_ENABLED = true and * OZONE_HANDLER_TYPE_KEY = "distributed" * * @throws IOException */
Create a MiniOzoneCluster for testing. Ozone is made active by setting OZONE_ENABLED = true and OZONE_HANDLER_TYPE_KEY = "distributed"
init
{ "repo_name": "GeLiXin/hadoop", "path": "hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/client/rpc/TestOzoneRpcClient.java", "license": "apache-2.0", "size": 33968 }
[ "org.apache.hadoop.hdds.conf.OzoneConfiguration", "org.apache.hadoop.hdds.scm.ScmConfigKeys", "org.apache.hadoop.ozone.MiniOzoneCluster", "org.apache.hadoop.ozone.OzoneConfigKeys", "org.apache.hadoop.ozone.OzoneConsts", "org.apache.hadoop.ozone.client.OzoneClientFactory" ]
import org.apache.hadoop.hdds.conf.OzoneConfiguration; import org.apache.hadoop.hdds.scm.ScmConfigKeys; import org.apache.hadoop.ozone.MiniOzoneCluster; import org.apache.hadoop.ozone.OzoneConfigKeys; import org.apache.hadoop.ozone.OzoneConsts; import org.apache.hadoop.ozone.client.OzoneClientFactory;
import org.apache.hadoop.hdds.conf.*; import org.apache.hadoop.hdds.scm.*; import org.apache.hadoop.ozone.*; import org.apache.hadoop.ozone.client.*;
[ "org.apache.hadoop" ]
org.apache.hadoop;
39,998
void keyReleased(KeyEvent keyEvent);
void keyReleased(KeyEvent keyEvent);
/** * Key released event. * * @param keyEvent the key event */
Key released event
keyReleased
{ "repo_name": "KronosDesign/runelite", "path": "runelite-api/src/main/java/net/runelite/api/hooks/Callbacks.java", "license": "bsd-2-clause", "size": 5085 }
[ "java.awt.event.KeyEvent" ]
import java.awt.event.KeyEvent;
import java.awt.event.*;
[ "java.awt" ]
java.awt;
1,445,921
public Decision canAllocate(RoutingNode node, RoutingAllocation allocation) { return Decision.ALWAYS; }
Decision function(RoutingNode node, RoutingAllocation allocation) { return Decision.ALWAYS; }
/** * Returns a {@link Decision} whether the given node can allow any allocation at all at this state of the * {@link RoutingAllocation}. The default is {@link Decision#ALWAYS}. */
Returns a <code>Decision</code> whether the given node can allow any allocation at all at this state of the <code>RoutingAllocation</code>. The default is <code>Decision#ALWAYS</code>
canAllocate
{ "repo_name": "corochoone/elasticsearch", "path": "src/main/java/org/elasticsearch/cluster/routing/allocation/decider/AllocationDecider.java", "license": "apache-2.0", "size": 3199 }
[ "org.elasticsearch.cluster.routing.RoutingNode", "org.elasticsearch.cluster.routing.allocation.RoutingAllocation" ]
import org.elasticsearch.cluster.routing.RoutingNode; import org.elasticsearch.cluster.routing.allocation.RoutingAllocation;
import org.elasticsearch.cluster.routing.*; import org.elasticsearch.cluster.routing.allocation.*;
[ "org.elasticsearch.cluster" ]
org.elasticsearch.cluster;
2,670,185
public void setBrowserAccessibilityManager(BrowserAccessibilityManager manager) { mBrowserAccessibilityManager = manager; if (mBrowserAccessibilityManager != null && mRenderCoordinates.hasFrameInfo()) { mBrowserAccessibilityManager.notifyFrameInfoInitialized(); } }
void function(BrowserAccessibilityManager manager) { mBrowserAccessibilityManager = manager; if (mBrowserAccessibilityManager != null && mRenderCoordinates.hasFrameInfo()) { mBrowserAccessibilityManager.notifyFrameInfoInitialized(); } }
/** * Set the BrowserAccessibilityManager, used for native accessibility * (not script injection). This is only set when system accessibility * has been enabled. * @param manager The new BrowserAccessibilityManager. */
Set the BrowserAccessibilityManager, used for native accessibility (not script injection). This is only set when system accessibility has been enabled
setBrowserAccessibilityManager
{ "repo_name": "SaschaMester/delicium", "path": "content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java", "license": "bsd-3-clause", "size": 129220 }
[ "org.chromium.content.browser.accessibility.BrowserAccessibilityManager" ]
import org.chromium.content.browser.accessibility.BrowserAccessibilityManager;
import org.chromium.content.browser.accessibility.*;
[ "org.chromium.content" ]
org.chromium.content;
2,795,999
public static Store newInstance(Account account, Context context) throws MessagingException { return new Pop3Store(context, account); } private Pop3Store(Context context, Account account) throws MessagingException { mContext = context; mAccount = account; HostAuth recv...
static Store function(Account account, Context context) throws MessagingException { return new Pop3Store(context, account); } private Pop3Store(Context context, Account account) throws MessagingException { mContext = context; mAccount = account; HostAuth recvAuth = account.getOrCreateHostAuthRecv(context); if (recvAuth...
/** * Static named constructor. */
Static named constructor
newInstance
{ "repo_name": "craigacgomez/flaming_monkey_packages_apps_Email", "path": "src/com/android/email/mail/store/Pop3Store.java", "license": "apache-2.0", "size": 42331 }
[ "android.content.Context", "com.android.email.mail.Store", "com.android.email.mail.Transport", "com.android.email.mail.transport.MailTransport", "com.android.emailcommon.mail.MessagingException", "com.android.emailcommon.provider.Account", "com.android.emailcommon.provider.HostAuth" ]
import android.content.Context; import com.android.email.mail.Store; import com.android.email.mail.Transport; import com.android.email.mail.transport.MailTransport; import com.android.emailcommon.mail.MessagingException; import com.android.emailcommon.provider.Account; import com.android.emailcommon.provider.HostAuth;
import android.content.*; import com.android.email.mail.*; import com.android.email.mail.transport.*; import com.android.emailcommon.mail.*; import com.android.emailcommon.provider.*;
[ "android.content", "com.android.email", "com.android.emailcommon" ]
android.content; com.android.email; com.android.emailcommon;
291,285
@Override protected boolean saveValues() { IProfileManager manager = getProfileManager(); PreferenceKey profilesKey = manager.getProfilesKey(); if (manager.isDirty()) { final IProfileStore store = manager.getProfileStore(); try { String value = ((ProfileStore) store).writeProfiles(manager.getS...
boolean function() { IProfileManager manager = getProfileManager(); PreferenceKey profilesKey = manager.getProfilesKey(); if (manager.isDirty()) { final IProfileStore store = manager.getProfileStore(); try { String value = ((ProfileStore) store).writeProfiles(manager.getSortedProfiles()); profilesKey.setStoredValue(Ins...
/** * Saves the values for all the profiles. */
Saves the values for all the profiles
saveValues
{ "repo_name": "HossainKhademian/Studio3", "path": "plugins/com.aptana.formatter.ui.epl/src/com/aptana/formatter/ui/preferences/AbstractFormatterSelectionBlock.java", "license": "gpl-3.0", "size": 28544 }
[ "com.aptana.core.logging.IdeLog", "com.aptana.formatter.IDebugScopes", "com.aptana.formatter.preferences.PreferenceKey", "com.aptana.formatter.preferences.profile.IProfile", "com.aptana.formatter.preferences.profile.IProfileManager", "com.aptana.formatter.preferences.profile.IProfileStore", "com.aptana....
import com.aptana.core.logging.IdeLog; import com.aptana.formatter.IDebugScopes; import com.aptana.formatter.preferences.PreferenceKey; import com.aptana.formatter.preferences.profile.IProfile; import com.aptana.formatter.preferences.profile.IProfileManager; import com.aptana.formatter.preferences.profile.IProfileStore...
import com.aptana.core.logging.*; import com.aptana.formatter.*; import com.aptana.formatter.preferences.*; import com.aptana.formatter.preferences.profile.*; import com.aptana.formatter.ui.epl.*; import org.eclipse.core.resources.*; import org.eclipse.core.runtime.*; import org.eclipse.core.runtime.preferences.*;
[ "com.aptana.core", "com.aptana.formatter", "org.eclipse.core" ]
com.aptana.core; com.aptana.formatter; org.eclipse.core;
363,656
void setVariables(String taskId, Map<String, ? extends Object> variables);
void setVariables(String taskId, Map<String, ? extends Object> variables);
/** * set variables on a task. If the variable is not already existing, it will be created in the most outer scope. This means the process instance in case this task is related to an execution. */
set variables on a task. If the variable is not already existing, it will be created in the most outer scope. This means the process instance in case this task is related to an execution
setVariables
{ "repo_name": "roberthafner/flowable-engine", "path": "modules/flowable-engine/src/main/java/org/activiti/engine/TaskService.java", "license": "apache-2.0", "size": 31097 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
117,754
private void checkAndFixConsistency() throws IOException, KeeperException, InterruptedException { // Divide the checks in two phases. One for default/primary replicas and another // for the non-primary ones. Keeps code cleaner this way. for (java.util.Map.Entry<String, HbckInfo> e: regionInfoMap.entrySe...
void function() throws IOException, KeeperException, InterruptedException { for (java.util.Map.Entry<String, HbckInfo> e: regionInfoMap.entrySet()) { if (e.getValue().getReplicaId() == HRegionInfo.DEFAULT_REPLICA_ID) { checkRegionConsistency(e.getKey(), e.getValue()); } } boolean prevHdfsCheck = shouldCheckHdfs(); setC...
/** * Check consistency of all regions that have been found in previous phases. */
Check consistency of all regions that have been found in previous phases
checkAndFixConsistency
{ "repo_name": "StackVista/hbase", "path": "hbase-server/src/main/java/org/apache/hadoop/hbase/util/HBaseFsck.java", "license": "apache-2.0", "size": 172348 }
[ "java.io.IOException", "java.util.Map", "org.apache.hadoop.hbase.HRegionInfo", "org.apache.zookeeper.KeeperException" ]
import java.io.IOException; import java.util.Map; import org.apache.hadoop.hbase.HRegionInfo; import org.apache.zookeeper.KeeperException;
import java.io.*; import java.util.*; import org.apache.hadoop.hbase.*; import org.apache.zookeeper.*;
[ "java.io", "java.util", "org.apache.hadoop", "org.apache.zookeeper" ]
java.io; java.util; org.apache.hadoop; org.apache.zookeeper;
1,482,065
@ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable<OperationInner> list() { return new PagedIterable<>(listAsync()); }
@ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable<OperationInner> function() { return new PagedIterable<>(listAsync()); }
/** * Lists all of the available Cosmos DB Resource Provider operations. * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return result of the request to list Resource...
Lists all of the available Cosmos DB Resource Provider operations
list
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/resourcemanager/azure-resourcemanager-cosmos/src/main/java/com/azure/resourcemanager/cosmos/implementation/OperationsClientImpl.java", "license": "mit", "size": 11354 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.http.rest.PagedIterable", "com.azure.resourcemanager.cosmos.fluent.models.OperationInner" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.PagedIterable; import com.azure.resourcemanager.cosmos.fluent.models.OperationInner;
import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.resourcemanager.cosmos.fluent.models.*;
[ "com.azure.core", "com.azure.resourcemanager" ]
com.azure.core; com.azure.resourcemanager;
2,606,945
public void close() { flush(); try { out.close(); } catch (IOException e) { e.printStackTrace(); } }
void function() { flush(); try { out.close(); } catch (IOException e) { e.printStackTrace(); } }
/** * Closes and flushes the binary output stream. * Once it is closed, bits can no longer be written. */
Closes and flushes the binary output stream. Once it is closed, bits can no longer be written
close
{ "repo_name": "nkhuyu/algs4", "path": "src/main/java/edu/princeton/cs/algs4/BinaryOut.java", "license": "gpl-3.0", "size": 11077 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
1,831,328
public static ContentResource getContent(String name) throws ResourceNotFoundException, ParseErrorException, Exception { return RuntimeSingleton.getContent( name ); }
static ContentResource function(String name) throws ResourceNotFoundException, ParseErrorException, Exception { return RuntimeSingleton.getContent( name ); }
/** * Returns a static content resource from the * resource manager. Uses the current value * if INPUT_ENCODING as the character encoding. * * @param name Name of content resource to get * @return parsed ContentResource object ready for use * @throws ResourceNotFoundException if temp...
Returns a static content resource from the resource manager. Uses the current value if INPUT_ENCODING as the character encoding
getContent
{ "repo_name": "gogamoga/velocity-engine-1.6.4", "path": "src/java/org/apache/velocity/runtime/Runtime.java", "license": "apache-2.0", "size": 17907 }
[ "org.apache.velocity.exception.ParseErrorException", "org.apache.velocity.exception.ResourceNotFoundException", "org.apache.velocity.runtime.resource.ContentResource" ]
import org.apache.velocity.exception.ParseErrorException; import org.apache.velocity.exception.ResourceNotFoundException; import org.apache.velocity.runtime.resource.ContentResource;
import org.apache.velocity.exception.*; import org.apache.velocity.runtime.resource.*;
[ "org.apache.velocity" ]
org.apache.velocity;
95,521
void sendInternal(int messageId, String topic, int qos, ByteBuf payload, boolean retain, boolean internal) throws Exception { synchronized (lock) { ServerMessage serverMessage = MQTTUtil.createServerMessageFromByteBuf(session, topic, retain, qos, payload); if (qos > 0) { serverMe...
void sendInternal(int messageId, String topic, int qos, ByteBuf payload, boolean retain, boolean internal) throws Exception { synchronized (lock) { ServerMessage serverMessage = MQTTUtil.createServerMessageFromByteBuf(session, topic, retain, qos, payload); if (qos > 0) { serverMessage.setDurable(MQTTUtil.DURABLE_MESSAG...
/** * Sends a message either on behalf of the client or on behalf of the broker (Will Messages) * @param messageId * @param topic * @param qos * @param payload * @param retain * @param internal if true means on behalf of the broker (skips authorisation) and does not return ack. * @throws...
Sends a message either on behalf of the client or on behalf of the broker (Will Messages)
sendInternal
{ "repo_name": "okalmanRH/jboss-activemq-artemis", "path": "artemis-protocols/artemis-mqtt-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/mqtt/MQTTPublishManager.java", "license": "apache-2.0", "size": 11587 }
[ "io.netty.buffer.ByteBuf", "io.netty.buffer.EmptyByteBuf", "org.apache.activemq.artemis.core.server.ServerMessage", "org.apache.activemq.artemis.core.transaction.Transaction" ]
import io.netty.buffer.ByteBuf; import io.netty.buffer.EmptyByteBuf; import org.apache.activemq.artemis.core.server.ServerMessage; import org.apache.activemq.artemis.core.transaction.Transaction;
import io.netty.buffer.*; import org.apache.activemq.artemis.core.server.*; import org.apache.activemq.artemis.core.transaction.*;
[ "io.netty.buffer", "org.apache.activemq" ]
io.netty.buffer; org.apache.activemq;
1,786,746
private void getValControllerStruct(final JsonObject controller, final IpcStruct valControllerStruct) { LOG.trace("Start getValControllerStruct"); byte validBit; validBit = valControllerStruct.getByte(VtnServiceIpcConsts.VALID, UncPhysicalStructIndexEnum.UpplValCtrIndex.kIdxDescription .ordinal())...
void function(final JsonObject controller, final IpcStruct valControllerStruct) { LOG.trace(STR); byte validBit; validBit = valControllerStruct.getByte(VtnServiceIpcConsts.VALID, UncPhysicalStructIndexEnum.UpplValCtrIndex.kIdxDescription .ordinal()); if (validBit != (byte) UncStructIndexEnum.Valid.UNC_VF_INVALID .ordin...
/** * Method to get Val Ctr structure for Get API. * */
Method to get Val Ctr structure for Get API
getValControllerStruct
{ "repo_name": "opendaylight/vtn", "path": "coordinator/java/vtn-javaapi/src/org/opendaylight/vtn/javaapi/ipc/conversion/IpcPhysicalResponseFactory.java", "license": "epl-1.0", "size": 169279 }
[ "com.google.gson.JsonObject", "org.opendaylight.vtn.core.ipc.IpcStruct", "org.opendaylight.vtn.javaapi.constants.VtnServiceConsts", "org.opendaylight.vtn.javaapi.constants.VtnServiceIpcConsts", "org.opendaylight.vtn.javaapi.constants.VtnServiceJsonConsts", "org.opendaylight.vtn.javaapi.init.VtnServiceInit...
import com.google.gson.JsonObject; import org.opendaylight.vtn.core.ipc.IpcStruct; import org.opendaylight.vtn.javaapi.constants.VtnServiceConsts; import org.opendaylight.vtn.javaapi.constants.VtnServiceIpcConsts; import org.opendaylight.vtn.javaapi.constants.VtnServiceJsonConsts; import org.opendaylight.vtn.javaapi.in...
import com.google.gson.*; import org.opendaylight.vtn.core.ipc.*; import org.opendaylight.vtn.javaapi.constants.*; import org.opendaylight.vtn.javaapi.init.*; import org.opendaylight.vtn.javaapi.ipc.conversion.*; import org.opendaylight.vtn.javaapi.ipc.enums.*;
[ "com.google.gson", "org.opendaylight.vtn" ]
com.google.gson; org.opendaylight.vtn;
1,022,753
public void addResultToProject() { // Add new peakList to the project project.addPeakList(resultPeakList); // Load previous applied methods for (PeakListAppliedMethod proc : peakList.getAppliedMethods()) { resultPeakList.addDescriptionOfAppliedTask(proc); } // Add task descrip...
void function() { project.addPeakList(resultPeakList); for (PeakListAppliedMethod proc : peakList.getAppliedMethods()) { resultPeakList.addDescriptionOfAppliedTask(proc); } resultPeakList .addDescriptionOfAppliedTask(new SimplePeakListAppliedMethod(STR, parameters)); if (removeOriginal) project.removePeakList(peakList)...
/** * Add peaklist to project, delete old if requested, add description to result */
Add peaklist to project, delete old if requested, add description to result
addResultToProject
{ "repo_name": "du-lab/mzmine2", "path": "src/main/java/net/sf/mzmine/modules/peaklistmethods/basiclearner/PeakLearnerTask.java", "license": "gpl-2.0", "size": 6747 }
[ "net.sf.mzmine.datamodel.PeakList", "net.sf.mzmine.datamodel.impl.SimplePeakListAppliedMethod" ]
import net.sf.mzmine.datamodel.PeakList; import net.sf.mzmine.datamodel.impl.SimplePeakListAppliedMethod;
import net.sf.mzmine.datamodel.*; import net.sf.mzmine.datamodel.impl.*;
[ "net.sf.mzmine" ]
net.sf.mzmine;
586,494
private Document parseDocument( String xmlText ) throws XMLParsingException { Document doc = null; try { String dec = URLDecoder.decode( xmlText, "UTF-8" ); doc = instantiateParser().parse( new InputSource( new StringReader( dec ) ) ); } c...
Document function( String xmlText ) throws XMLParsingException { Document doc = null; try { String dec = URLDecoder.decode( xmlText, "UTF-8" ); doc = instantiateParser().parse( new InputSource( new StringReader( dec ) ) ); } catch ( Exception e ) { throw new XMLParsingException( STR + e.getLocalizedMessage() ); } retur...
/** * Converts a given xml string to a document * * @param xmlText * @return Document */
Converts a given xml string to a document
parseDocument
{ "repo_name": "lat-lon/deegree2-base", "path": "deegree2-core/src/main/java/org/deegree/enterprise/servlet/OWSWatch.java", "license": "lgpl-2.1", "size": 28018 }
[ "java.io.StringReader", "java.net.URLDecoder", "org.deegree.framework.xml.XMLParsingException", "org.w3c.dom.Document", "org.xml.sax.InputSource" ]
import java.io.StringReader; import java.net.URLDecoder; import org.deegree.framework.xml.XMLParsingException; import org.w3c.dom.Document; import org.xml.sax.InputSource;
import java.io.*; import java.net.*; import org.deegree.framework.xml.*; import org.w3c.dom.*; import org.xml.sax.*;
[ "java.io", "java.net", "org.deegree.framework", "org.w3c.dom", "org.xml.sax" ]
java.io; java.net; org.deegree.framework; org.w3c.dom; org.xml.sax;
2,717,553
public static <T> String join(T[] strs, String separator) { return join(Arrays.asList(strs), separator); }
static <T> String function(T[] strs, String separator) { return join(Arrays.asList(strs), separator); }
/** * Create a string representation of an array joined by the given separator * @param strs The array of items * @param separator The separator * @return The string representation. */
Create a string representation of an array joined by the given separator
join
{ "repo_name": "ollie314/kafka", "path": "clients/src/main/java/org/apache/kafka/common/utils/Utils.java", "license": "apache-2.0", "size": 36102 }
[ "java.util.Arrays" ]
import java.util.Arrays;
import java.util.*;
[ "java.util" ]
java.util;
1,010,173
protected List<ConfigIssue> init() { return new ArrayList<>(); }
List<ConfigIssue> function() { return new ArrayList<>(); }
/** * Initializes the stage. Subclasses should override this method for stage initialization. * <p/> * This implementation is a no-operation. * * @return the list of configuration issues found during initialization, an empty list if none. */
Initializes the stage. Subclasses should override this method for stage initialization. This implementation is a no-operation
init
{ "repo_name": "streamsets/datacollector-api", "path": "src/main/java/com/streamsets/pipeline/api/base/BaseStage.java", "license": "apache-2.0", "size": 2943 }
[ "java.util.ArrayList", "java.util.List" ]
import java.util.ArrayList; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,148,920
protected void fillArc(Graphics2D g2, Rectangle2D area, double minValue, double maxValue, Paint paint, boolean dial) { if (paint == null) { throw new IllegalArgumentException("Null 'paint' argument"); } double startAngle...
void function(Graphics2D g2, Rectangle2D area, double minValue, double maxValue, Paint paint, boolean dial) { if (paint == null) { throw new IllegalArgumentException(STR); } double startAngle = valueToAngle(maxValue); double endAngle = valueToAngle(minValue); double extent = endAngle - startAngle; double x = area.getX(...
/** * Fills an arc on the dial between the given values. * * @param g2 the graphics device. * @param area the plot area. * @param minValue the minimum data value. * @param maxValue the maximum data value. * @param paint the background paint (<code>null</code> not permitted...
Fills an arc on the dial between the given values
fillArc
{ "repo_name": "fluidware/Eastwood-Charts", "path": "source/org/jfree/chart/plot/MeterPlot.java", "license": "lgpl-2.1", "size": 44826 }
[ "java.awt.Graphics2D", "java.awt.Paint", "java.awt.geom.Arc2D", "java.awt.geom.Rectangle2D" ]
import java.awt.Graphics2D; import java.awt.Paint; import java.awt.geom.Arc2D; import java.awt.geom.Rectangle2D;
import java.awt.*; import java.awt.geom.*;
[ "java.awt" ]
java.awt;
2,719,103
public List<Edge> getEdges() { return edges; }
List<Edge> function() { return edges; }
/** * Every relationship between any two resources in the catalog, which may have been made with chaining arrows, metaparameters, or the require * function * * @return the edges */
Every relationship between any two resources in the catalog, which may have been made with chaining arrows, metaparameters, or the require function
getEdges
{ "repo_name": "thallgren/puppetdb-javaclient", "path": "src/main/java/com/puppetlabs/puppetdb/javaclient/model/Catalog.java", "license": "apache-2.0", "size": 5443 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,825,189
protected void populateModel () { ((DefaultTableModel)getModel()).setRowCount (0); final BitSet columnVisible = columnVisibility (assocTable); for (int modelColumnIndex = 0; modelColumnIndex < assocTable.getModel().getColumnCount(); modelColumnIndex++) { final Vector<Object> columnState = new Vector<Object...
void function () { ((DefaultTableModel)getModel()).setRowCount (0); final BitSet columnVisible = columnVisibility (assocTable); for (int modelColumnIndex = 0; modelColumnIndex < assocTable.getModel().getColumnCount(); modelColumnIndex++) { final Vector<Object> columnState = new Vector<Object> (); columnState.add (assoc...
/** * Fill this table's model with data from the associated JTable's column info */
Fill this table's model with data from the associated JTable's column info
populateModel
{ "repo_name": "martingraham/JSwingPlus", "path": "src/swingPlus/parcoord/JColumnList.java", "license": "apache-2.0", "size": 10496 }
[ "java.util.BitSet", "java.util.Vector", "javax.swing.table.DefaultTableModel" ]
import java.util.BitSet; import java.util.Vector; import javax.swing.table.DefaultTableModel;
import java.util.*; import javax.swing.table.*;
[ "java.util", "javax.swing" ]
java.util; javax.swing;
1,984,122
public static void disposeFonts() { // clear fonts for (Font font : m_fontMap.values()) { font.dispose(); } m_fontMap.clear(); // clear bold fonts for (Font font : m_fontToBoldFontMap.values()) { font.dispose(); } m_fontToBoldFontMap.clear(); }
static void function() { for (Font font : m_fontMap.values()) { font.dispose(); } m_fontMap.clear(); for (Font font : m_fontToBoldFontMap.values()) { font.dispose(); } m_fontToBoldFontMap.clear(); }
/** * Dispose all of the cached {@link Font}'s. */
Dispose all of the cached <code>Font</code>'s
disposeFonts
{ "repo_name": "7xMatthx2/E4Training", "path": "com.sii.rental.ui/src/org/eclipse/wb/swt/SWTResourceManager.java", "license": "epl-1.0", "size": 14556 }
[ "org.eclipse.swt.graphics.Font" ]
import org.eclipse.swt.graphics.Font;
import org.eclipse.swt.graphics.*;
[ "org.eclipse.swt" ]
org.eclipse.swt;
2,692,247
@Override public void enterQuestionRule(@NotNull PJParser.QuestionRuleContext ctx) { }
@Override public void enterQuestionRule(@NotNull PJParser.QuestionRuleContext ctx) { }
/** * {@inheritDoc} * * <p>The default implementation does nothing.</p> */
The default implementation does nothing
exitGenericConstructorDeclaration
{ "repo_name": "Diolor/PJ", "path": "src/main/java/com/lorentzos/pj/PJBaseListener.java", "license": "mit", "size": 73292 }
[ "org.antlr.v4.runtime.misc.NotNull" ]
import org.antlr.v4.runtime.misc.NotNull;
import org.antlr.v4.runtime.misc.*;
[ "org.antlr.v4" ]
org.antlr.v4;
782,572
private Iterator<TDigest.Group> iterator(final TDigest.Group start) { return new AbstractIterator<TDigest.Group>() { { stack = new ArrayDeque<GroupTree>(); push(GroupTree.this, start); } Deque<GroupTree> stack;
Iterator<TDigest.Group> function(final TDigest.Group start) { return new AbstractIterator<TDigest.Group>() { { stack = new ArrayDeque<GroupTree>(); push(GroupTree.this, start); } Deque<GroupTree> stack;
/** * Iterates through all of the Groups in this tree in ascending order of means * * @param start The place to start this subset. Remember that Groups are ordered by mean *and* id. * @return An iterator that goes through the groups in order of mean and id starting at or after the * specified ...
Iterates through all of the Groups in this tree in ascending order of means
iterator
{ "repo_name": "DemandCube/NeverwinterDP-Commons", "path": "yara/core/src/main/java/com/neverwinterdp/yara/quantile/GroupTree.java", "license": "agpl-3.0", "size": 12290 }
[ "com.neverwinterdp.yara.quantile.util.AbstractIterator", "java.util.ArrayDeque", "java.util.Deque", "java.util.Iterator" ]
import com.neverwinterdp.yara.quantile.util.AbstractIterator; import java.util.ArrayDeque; import java.util.Deque; import java.util.Iterator;
import com.neverwinterdp.yara.quantile.util.*; import java.util.*;
[ "com.neverwinterdp.yara", "java.util" ]
com.neverwinterdp.yara; java.util;
565,131
public void setImplementation(Object implementation) throws NotCompliantMBeanException { if (implementation == null) throw new IllegalArgumentException("implementation is null"); if (isMXBean()) { this.mbean = new MXBeanSupport(implementation, Ut...
void function(Object implementation) throws NotCompliantMBeanException { if (implementation == null) throw new IllegalArgumentException(STR); if (isMXBean()) { this.mbean = new MXBeanSupport(implementation, Util.<Class<Object>>cast(getMBeanInterface())); } else { this.mbean = new StandardMBeanSupport(implementation, Ut...
/** * <p>Replace the implementation object wrapped in this object.</p> * * @param implementation The new implementation of this Standard MBean * (or MXBean). The <code>implementation</code> object must implement * the Standard MBean (or MXBean) interface that was supplied when this * <code...
Replace the implementation object wrapped in this object
setImplementation
{ "repo_name": "shun634501730/java_source_cn", "path": "src_en/javax/management/StandardMBean.java", "license": "apache-2.0", "size": 50773 }
[ "com.sun.jmx.mbeanserver.MXBeanSupport", "com.sun.jmx.mbeanserver.StandardMBeanSupport", "com.sun.jmx.mbeanserver.Util" ]
import com.sun.jmx.mbeanserver.MXBeanSupport; import com.sun.jmx.mbeanserver.StandardMBeanSupport; import com.sun.jmx.mbeanserver.Util;
import com.sun.jmx.mbeanserver.*;
[ "com.sun.jmx" ]
com.sun.jmx;
712,490
@PUT @Path("{id}") @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) public Response updateNetwork(@PathParam("id") String id, InputStream input) { log.trace(String.format(MESSAGE, "UPDATE " + id)); final NeutronNetwork net = readNetwork(input); adm...
@Path("{id}") @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) Response function(@PathParam("id") String id, InputStream input) { log.trace(String.format(MESSAGE, STR + id)); final NeutronNetwork net = readNetwork(input); adminService.updateNetwork(net); return status(Response.Status.OK).buil...
/** * Updates the network with the specified identifier. * * @param id network identifier * @param input network JSON input stream * @return 200 OK with the updated network, 400 BAD_REQUEST if the requested * network does not exist */
Updates the network with the specified identifier
updateNetwork
{ "repo_name": "LorenzReinhart/ONOSnew", "path": "apps/openstacknetworking/src/main/java/org/onosproject/openstacknetworking/web/OpenstackNetworkWebResource.java", "license": "apache-2.0", "size": 4645 }
[ "java.io.InputStream", "javax.ws.rs.Consumes", "javax.ws.rs.Path", "javax.ws.rs.PathParam", "javax.ws.rs.Produces", "javax.ws.rs.core.MediaType", "javax.ws.rs.core.Response", "org.openstack4j.openstack.networking.domain.NeutronNetwork" ]
import java.io.InputStream; import javax.ws.rs.Consumes; import javax.ws.rs.Path; import javax.ws.rs.PathParam; import javax.ws.rs.Produces; import javax.ws.rs.core.MediaType; import javax.ws.rs.core.Response; import org.openstack4j.openstack.networking.domain.NeutronNetwork;
import java.io.*; import javax.ws.rs.*; import javax.ws.rs.core.*; import org.openstack4j.openstack.networking.domain.*;
[ "java.io", "javax.ws", "org.openstack4j.openstack" ]
java.io; javax.ws; org.openstack4j.openstack;
232,736
private void registerFactoryMbean(MBeanServer srv) throws IgniteCheckedException { if(U.IGNITE_MBEANS_DISABLED) return; assert srv != null; synchronized (mbeans) { GridMBeanServerData data = mbeans.get(srv); if (data == null)...
void function(MBeanServer srv) throws IgniteCheckedException { if(U.IGNITE_MBEANS_DISABLED) return; assert srv != null; synchronized (mbeans) { GridMBeanServerData data = mbeans.get(srv); if (data == null) { try { IgnitionMXBean mbean = new IgnitionMXBeanAdapter(); ObjectName objName = U.makeMBeanName( null, STR, Ignit...
/** * Registers delegate Mbean instance for {@link Ignition}. * * @param srv MBeanServer where mbean should be registered. * @throws IgniteCheckedException If registration failed. */
Registers delegate Mbean instance for <code>Ignition</code>
registerFactoryMbean
{ "repo_name": "andrey-kuznetsov/ignite", "path": "modules/core/src/main/java/org/apache/ignite/internal/IgnitionEx.java", "license": "apache-2.0", "size": 124141 }
[ "javax.management.JMException", "javax.management.MBeanServer", "javax.management.ObjectName", "org.apache.ignite.IgniteCheckedException", "org.apache.ignite.Ignition", "org.apache.ignite.internal.util.typedef.internal.U", "org.apache.ignite.mxbean.IgnitionMXBean" ]
import javax.management.JMException; import javax.management.MBeanServer; import javax.management.ObjectName; import org.apache.ignite.IgniteCheckedException; import org.apache.ignite.Ignition; import org.apache.ignite.internal.util.typedef.internal.U; import org.apache.ignite.mxbean.IgnitionMXBean;
import javax.management.*; import org.apache.ignite.*; import org.apache.ignite.internal.util.typedef.internal.*; import org.apache.ignite.mxbean.*;
[ "javax.management", "org.apache.ignite" ]
javax.management; org.apache.ignite;
512,426