signature
stringlengths
43
39.1k
implementation
stringlengths
0
450k
public class FSDataset { /** * Register the FSDataset MBean using the name * " hadoop : service = DataNode , name = FSDatasetState - < storageid > " */ void registerMBean ( final String storageId ) { } }
// We wrap to bypass standard mbean naming convetion . // This wraping can be removed in java 6 as it is more flexible in // package naming for mbeans and their impl . StandardMBean bean ; String storageName ; if ( storageId == null || storageId . equals ( "" ) ) { // Temp fix for the uninitialized storage storageName ...
public class AppsImpl { /** * Gets the available application domains . * @ throws IllegalArgumentException thrown if parameters fail the validation * @ return the observable to the List & lt ; String & gt ; object */ public Observable < List < String > > listDomainsAsync ( ) { } }
return listDomainsWithServiceResponseAsync ( ) . map ( new Func1 < ServiceResponse < List < String > > , List < String > > ( ) { @ Override public List < String > call ( ServiceResponse < List < String > > response ) { return response . body ( ) ; } } ) ;
public class GSEAConverter { /** * Converts model to GSEA ( GMT ) and writes to out . * See class declaration for more information . * @ param model Model * @ param out output stream to write the result to * @ throws IOException when there ' s an output stream error */ public void writeToGSEA ( final Model mode...
Collection < GMTEntry > entries = convert ( model ) ; if ( entries . size ( ) > 0 ) { Writer writer = new OutputStreamWriter ( out ) ; for ( GMTEntry entry : entries ) { if ( ( minNumOfGenesPerEntry <= 1 && ! entry . identifiers ( ) . isEmpty ( ) ) || entry . identifiers ( ) . size ( ) >= minNumOfGenesPerEntry ) { writ...
public class JBBPDslBuilder { /** * Add named unsigned byte array which size calculated through expression . * @ param name name of the field , it can be null for anonymous one * @ param sizeExpression expression to calculate array size , must ot be null or empty . * @ return the builder instance , must not be nu...
final Item item = new Item ( BinType . UBYTE_ARRAY , name , this . byteOrder ) ; item . sizeExpression = assertExpressionChars ( sizeExpression ) ; this . addItem ( item ) ; return this ;
public class JCudaDriver { /** * Sets device memory . * < pre > * CUresult cuMemsetD16Async ( * CUdeviceptr dstDevice , * unsigned short us , * size _ t N , * CUstream hStream ) * < / pre > * < div > * < p > Sets device memory . Sets the memory * range of < tt > N < / tt > 16 - bit values to the spe...
return checkResult ( cuMemsetD16AsyncNative ( dstDevice , us , N , hStream ) ) ;
public class ThrottledApiHandler { /** * Get a specific mastery * This method does not count towards the rate limit and is not affected by the throttle * @ param id The id of the mastery * @ param data Additional information to retrieve * @ return The mastery * @ see < a href = https : / / developer . riotgam...
return new DummyFuture < > ( handler . getMastery ( id , data ) ) ;
public class Event { /** * Returns the events to be thrown when this event has completed * ( see { @ link # isDone ( ) } ) . * @ return the completed events */ public Set < Event < ? > > completionEvents ( ) { } }
return completionEvents == null ? Collections . emptySet ( ) : Collections . unmodifiableSet ( completionEvents ) ;
public class ProtoParser { /** * Parse a named { @ code . proto } schema . The { @ code InputStream } is not closed . */ public static ProtoFile parseUtf8 ( String name , InputStream is ) throws IOException { } }
return parse ( name , new InputStreamReader ( is , UTF_8 ) ) ;
public class JsApiMessageImpl { /** * Provide the contribution of this part to the estimated encoded length * This contributes the API properties . */ @ Override int guessApproxLength ( ) { } }
int total = super . guessApproxLength ( ) ; int size = 0 ; List props ; // Assume 40 bytes per property ( string name + value ) // Each property map may be cached in a transient , or in the base JMF ( or both ! ) // If there are no properties , the names may be represented by the EMPTY // JMF List , in which case we do...
public class ParaClient { /** * Invoke a GET request to the Para API . * @ param resourcePath the subpath after ' / v1 / ' , should not start with ' / ' * @ param params query parameters * @ return a { @ link Response } object */ public Response invokeGet ( String resourcePath , MultivaluedMap < String , String >...
logger . debug ( "GET {}, params: {}" , getFullPath ( resourcePath ) , params ) ; return invokeSignedRequest ( getApiClient ( ) , accessKey , key ( ! JWT_PATH . equals ( resourcePath ) ) , GET , getEndpoint ( ) , getFullPath ( resourcePath ) , null , params , new byte [ 0 ] ) ;
public class CommandHelper { /** * Convert the value according the type of DeviceData . * @ param deviceDataArgout * the DeviceData attribute to read * @ return Long , the result in Long format * @ throws DevFailed */ public static Long extractToLong ( final DeviceData deviceDataArgout ) throws DevFailed { } }
final Object value = CommandHelper . extract ( deviceDataArgout ) ; Long argout = null ; if ( value instanceof Short ) { argout = Long . valueOf ( ( ( Short ) value ) . longValue ( ) ) ; } else if ( value instanceof String ) { try { argout = Long . valueOf ( ( String ) value ) ; } catch ( final Exception e ) { Except ....
public class LocalPathUtils { /** * { @ inheritDoc } */ @ Override public Map < List < String > , String [ ] > getSimpleColumnsMaster ( String [ ] masterLabels , int [ ] joinColumnNo , String path , String separator ) throws IOException , URISyntaxException { } }
Map < List < String > , String [ ] > m = new HashMap < List < String > , String [ ] > ( ) ; File file = new File ( path ) ; if ( ! file . exists ( ) ) { return null ; } BufferedReader br = new BufferedReader ( new InputStreamReader ( new FileInputStream ( file ) ) ) ; String line ; while ( ( line = br . readLine ( ) ) ...
public class XpathRenderer { /** * { @ inheritDoc } */ @ Override public void render ( DriverRequest httpRequest , String src , Writer out ) throws IOException { } }
try { HtmlDocumentBuilder htmlDocumentBuilder = new HtmlDocumentBuilder ( ) ; htmlDocumentBuilder . setDoctypeExpectation ( DoctypeExpectation . NO_DOCTYPE_ERRORS ) ; Document document = htmlDocumentBuilder . parse ( new InputSource ( new StringReader ( src ) ) ) ; NodeList matchingNodes = ( NodeList ) expr . evaluate ...
public class ProcessStarter { /** * Includes the given Environment Variable as part of the start . * @ param name The Environment Variable Name . * @ param value The Environment Variable Value . This will have toString ( ) invoked on it . * @ return This object instance . */ public ProcessStarter env ( String nam...
this . builder . environment ( ) . put ( name , value . toString ( ) ) ; return this ;
public class RadialPercentageTileSkin { /** * * * * * * Methods * * * * * */ @ Override protected void handleEvents ( final String EVENT_TYPE ) { } }
super . handleEvents ( EVENT_TYPE ) ; if ( "RECALC" . equals ( EVENT_TYPE ) ) { referenceValue = tile . getReferenceValue ( ) < maxValue ? maxValue : tile . getReferenceValue ( ) ; angleStep = ANGLE_RANGE / range ; sum = dataList . stream ( ) . mapToDouble ( ChartData :: getValue ) . sum ( ) ; sections = tile . getSect...
public class XmlStreamReaderUtils { /** * Returns the value of an attribute as a int . If the attribute is empty , this method throws an * exception . * @ param reader * < code > XMLStreamReader < / code > that contains attribute values . * @ param namespace * namespace * @ param localName * the local nam...
final String value = reader . getAttributeValue ( namespace , localName ) ; if ( value != null ) { return Integer . parseInt ( value ) ; } throw new XMLStreamException ( MessageFormat . format ( "Attribute {0}:{1} is required" , namespace , localName ) ) ;
public class CommonUtils { /** * - - - ANNOTATION TO JSON CONVERTER - - - */ public static final void convertAnnotations ( Tree config , Annotation [ ] annotations ) throws IllegalAccessException , IllegalArgumentException , InvocationTargetException { } }
for ( Annotation annotation : annotations ) { // Create entry for annotation String annotationName = annotation . toString ( ) ; int i = annotationName . lastIndexOf ( '.' ) ; if ( i > - 1 ) { annotationName = annotationName . substring ( i + 1 ) ; } i = annotationName . indexOf ( '(' ) ; if ( i > - 1 ) { annotationNam...
public class AWSSecurityHubClient { /** * Lists the results of the Security Hub insight specified by the insight ARN . * @ param getInsightResultsRequest * @ return Result of the GetInsightResults operation returned by the service . * @ throws InternalException * Internal server error . * @ throws InvalidInpu...
request = beforeClientExecution ( request ) ; return executeGetInsightResults ( request ) ;
public class DomainsInner { /** * Creates an ownership identifier for a domain or updates identifier details for an existing identifer . * Creates an ownership identifier for a domain or updates identifier details for an existing identifer . * @ param resourceGroupName Name of the resource group to which the resour...
return createOrUpdateOwnershipIdentifierWithServiceResponseAsync ( resourceGroupName , domainName , name , domainOwnershipIdentifier ) . toBlocking ( ) . single ( ) . body ( ) ;
public class ArrayUtils { /** * Returns whether or not the given array contains all the given elements to check for . * < pre > * ArrayUtils . containsAll ( new String [ ] { } , Collections . emptyList ( ) ) = true ; * ArrayUtils . containsAll ( new String [ ] { " a " } , Lists . newArrayList ( " a " ) ) = true ;...
return IterableUtils . containsAll ( Arrays . asList ( arrayToCheck ) , elementsToCheckFor ) ;
public class ObjectPoolPartition { /** * set the scavenge interval carefully */ public synchronized void scavenge ( ) throws InterruptedException { } }
int delta = this . totalCount - config . getMinSize ( ) ; if ( delta <= 0 ) return ; int removed = 0 ; long now = System . currentTimeMillis ( ) ; Poolable < T > obj ; while ( delta -- > 0 && ( obj = objectQueue . poll ( ) ) != null ) { // performance trade off : delta always decrease even if the queue is empty , // so...
public class WaveformDetailComponent { /** * Determine the color to use to draw a cue list entry . Hot cues are green , ordinary memory points are red , * and loops are orange . * @ param entry the entry being drawn * @ return the color with which it should be represented . */ public static Color cueColor ( CueLi...
if ( entry . hotCueNumber > 0 ) { return Color . GREEN ; } if ( entry . isLoop ) { return Color . ORANGE ; } return Color . RED ;
public class StreamletImpl { /** * Returns a new Streamlet that is the union of this and the ‘ other ’ streamlet . Essentially * the new streamlet will contain tuples belonging to both Streamlets */ @ Override public Streamlet < R > union ( Streamlet < ? extends R > otherStreamlet ) { } }
checkNotNull ( otherStreamlet , "otherStreamlet cannot be null" ) ; StreamletImpl < ? extends R > joinee = ( StreamletImpl < ? extends R > ) otherStreamlet ; UnionStreamlet < R > retval = new UnionStreamlet < > ( this , joinee ) ; addChild ( retval ) ; joinee . addChild ( retval ) ; return retval ;
public class CPDefinitionOptionRelPersistenceImpl { /** * Returns the last cp definition option rel in the ordered set where companyId = & # 63 ; . * @ param companyId the company ID * @ param orderByComparator the comparator to order the set by ( optionally < code > null < / code > ) * @ return the last matching...
CPDefinitionOptionRel cpDefinitionOptionRel = fetchByCompanyId_Last ( companyId , orderByComparator ) ; if ( cpDefinitionOptionRel != null ) { return cpDefinitionOptionRel ; } StringBundler msg = new StringBundler ( 4 ) ; msg . append ( _NO_SUCH_ENTITY_WITH_KEY ) ; msg . append ( "companyId=" ) ; msg . append ( company...
public class TypeImporter { /** * Determines whether the given non - wildcard import should be added . * By default , this returns false if the simple name is a built - in Java language type name . */ private boolean shouldImport ( TypeName typeName ) { } }
// don ' t import classes from the java . lang package String pkg = typeName . getPackageName ( ) ; String simpleName = typeName . getSimpleName ( ) ; boolean exclude = ( pkg . equals ( "java.lang" ) || pkg . equals ( "" ) ) && getJavaDefaultTypes ( ) . contains ( simpleName ) ; return ! exclude ;
public class GrammaticalStructure { /** * Read in a file containing a CoNLL - X dependency treebank and return a * corresponding list of GrammaticalStructures . * @ throws IOException */ public static List < GrammaticalStructure > readCoNLLXGrammaticStructureCollection ( String fileName , Map < String , Grammatical...
LineNumberReader reader = new LineNumberReader ( new FileReader ( fileName ) ) ; List < GrammaticalStructure > gsList = new LinkedList < GrammaticalStructure > ( ) ; List < List < String > > tokenFields = new ArrayList < List < String > > ( ) ; for ( String inline = reader . readLine ( ) ; inline != null ; inline = rea...
public class CheckArg { /** * Check that the argument is negative ( < 0 ) . * @ param argument The argument * @ param name The name of the argument * @ throws IllegalArgumentException If argument is non - negative ( > = 0) */ public static void isNegative ( int argument , String name ) { } }
if ( argument >= 0 ) { throw new IllegalArgumentException ( CommonI18n . argumentMustBeNegative . text ( name , argument ) ) ; }
public class TaxinvoiceServiceImp { /** * ( non - Javadoc ) * @ see com . popbill . api . TaxinvoiceService # attachStatement ( java . lang . String , com . popbill . api . taxinvoice . MgtKeyType , java . lang . String , int , java . lang . String ) */ @ Override public Response attachStatement ( String CorpNum , Mg...
DocRequest request = new DocRequest ( ) ; request . ItemCode = Integer . toString ( SubItemCode ) ; request . MgtKey = SubMgtKey ; String PostData = toJsonString ( request ) ; return httppost ( "/Taxinvoice/" + KeyType . name ( ) + "/" + MgtKey + "/AttachStmt" , CorpNum , PostData , null , "" , Response . class ) ;
public class ConcurrentLinkedHashMap { /** * Drains the buffers up to the amortized threshold and applies the pending * operations . */ void drainBuffers ( ) { } }
// A mostly strict ordering is achieved by observing that each buffer // contains tasks in a weakly sorted order starting from the last drain . // The buffers can be merged into a sorted array in O ( n ) time by using // counting sort and chaining on a collision . // Moves the tasks into the output array , applies them...
public class MetamodelUtil { /** * Retrieves cascade from metamodel attribute on a xToMany relation . * @ param attribute given singular attribute * @ return an empty collection if no jpa relation annotation can be found . */ public Collection < CascadeType > getCascades ( SingularAttribute < ? , ? > attribute ) { ...
if ( attribute . getJavaMember ( ) instanceof AccessibleObject ) { AccessibleObject accessibleObject = ( AccessibleObject ) attribute . getJavaMember ( ) ; OneToOne oneToOne = accessibleObject . getAnnotation ( OneToOne . class ) ; if ( oneToOne != null ) { return newArrayList ( oneToOne . cascade ( ) ) ; } ManyToOne m...
public class AbstractWebAppMojo { /** * region Telemetry Configuration Interface */ @ Override public Map < String , String > getTelemetryProperties ( ) { } }
final Map < String , String > map = super . getTelemetryProperties ( ) ; final WebAppConfiguration webAppConfiguration ; try { webAppConfiguration = getWebAppConfiguration ( ) ; } catch ( Exception e ) { map . put ( INVALID_CONFIG_KEY , e . getMessage ( ) ) ; return map ; } if ( webAppConfiguration . getImage ( ) != nu...
public class Connection { /** * { @ inheritDoc } */ public String getClientInfo ( String name ) throws SQLException { } }
if ( this . closed ) { throw new SQLClientInfoException ( ) ; } // end of if return this . clientInfo . getProperty ( name ) ;
public class Cover { /** * non - parallelized utility method for use by other procedures */ public static Stream < Relationship > coverNodes ( Collection < Node > nodes ) { } }
return nodes . stream ( ) . flatMap ( n -> StreamSupport . stream ( n . getRelationships ( Direction . OUTGOING ) . spliterator ( ) , false ) . filter ( r -> nodes . contains ( r . getEndNode ( ) ) ) ) ;
public class AbstractGreenPepperMacro { /** * { @ inheritDoc } */ public String execute ( Map < String , String > parameters , String body , ConversionContext context ) throws MacroExecutionException { } }
try { return execute ( parameters , body , context . getPageContext ( ) ) ; } catch ( MacroException e ) { throw new MacroExecutionException ( e ) ; }
public class ApiOvhHostingreseller { /** * Set new reverse to ip * REST : POST / hosting / reseller / { serviceName } / reverse * @ param serviceName [ required ] The internal name of your reseller service * @ param reverse [ required ] Domain to set the ip reverse */ public String serviceName_reverse_POST ( Stri...
String qPath = "/hosting/reseller/{serviceName}/reverse" ; StringBuilder sb = path ( qPath , serviceName ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "reverse" , reverse ) ; String resp = exec ( qPath , "POST" , sb . toString ( ) , o ) ; return convertTo ( resp , String . clas...
public class Tap13Parser { /** * Called after the rest of the stream has been processed . */ private void onFinish ( ) { } }
if ( planRequired && state . getTestSet ( ) . getPlan ( ) == null ) { throw new ParserException ( "Missing TAP Plan." ) ; } parseDiagnostics ( ) ; while ( ! states . isEmpty ( ) && state . getIndentationLevel ( ) > baseIndentation ) { state = states . pop ( ) ; }
public class PersistentCookieStore { /** * Serializes Cookie object into String * @ param cookie cookie to be encoded , can be null * @ return cookie encoded as String */ protected String encodeCookie ( SerializableHttpCookie cookie ) { } }
if ( cookie == null ) return null ; ByteArrayOutputStream os = new ByteArrayOutputStream ( ) ; try { ObjectOutputStream outputStream = new ObjectOutputStream ( os ) ; outputStream . writeObject ( cookie ) ; } catch ( IOException e ) { Util . log ( "IOException in encodeCookie" , e ) ; return null ; } return byteArrayTo...
public class XMLGISElementUtil { /** * Write the XML description for the given container of map elements . * @ param xmlNode is the XML node to fill with the container data . * @ param primitive is the container of map elements to output . * @ param elementNodeName is the name of the XML node that should contains...
URL url ; boolean saveElements = true ; url = primitive . getElementGeometrySourceURL ( ) ; if ( url != null ) { xmlNode . setAttribute ( MapElementLayer . ATTR_ELEMENT_GEOMETRY_URL , resources . add ( url , MimeName . MIME_SHAPE_FILE . getMimeConstant ( ) ) ) ; saveElements = false ; } MapMetricProjection mapProjectio...
public class ApiServicesRetryStrategy { /** * Decides the actual wait time in milliseconds , by applying a random multiplier to * retryAfterSeconds . */ private long getWaitUntilMillis ( int retryAfterSeconds ) { } }
double multiplier = waitTimeNoiseFactor . get ( ) . nextDouble ( ) ; multiplier = multiplier * ( MAX_WAIT_TIME_MULTIPLIER - MIN_WAIT_TIME_MULTIPLIER ) + MIN_WAIT_TIME_MULTIPLIER ; double result = SECONDS . toMillis ( retryAfterSeconds ) * multiplier ; return ( long ) result ;
public class MembershipTypeHandlerImpl { /** * Removes related membership entity . */ private void removeMemberships ( Node membershipTypeNode ) throws Exception { } }
PropertyIterator refTypes = membershipTypeNode . getReferences ( ) ; while ( refTypes . hasNext ( ) ) { Property refTypeProp = refTypes . nextProperty ( ) ; Node refTypeNode = refTypeProp . getParent ( ) ; Node refUserNode = refTypeNode . getParent ( ) ; membershipHandler . removeMembership ( refUserNode , refTypeNode ...
public class Ifc2x3tc1PackageImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ public EClass getIfcPermit ( ) { } }
if ( ifcPermitEClass == null ) { ifcPermitEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( Ifc2x3tc1Package . eNS_URI ) . getEClassifiers ( ) . get ( 348 ) ; } return ifcPermitEClass ;
public class CaptureActivity { /** * Briefly show the contents of the barcode , then handle the result outside Barcode Scanner . */ private void handleDecodeExternally ( Result rawResult , ResultHandler resultHandler , Bitmap barcode ) { } }
if ( barcode != null ) { viewfinderView . drawResultBitmap ( barcode ) ; } long resultDurationMS ; if ( getIntent ( ) == null ) { resultDurationMS = DEFAULT_INTENT_RESULT_DURATION_MS ; } else { resultDurationMS = getIntent ( ) . getLongExtra ( Intents . Scan . RESULT_DISPLAY_DURATION_MS , DEFAULT_INTENT_RESULT_DURATION...
public class FactoryReplicatorXmlHttp { /** * < p > Create a bean . < / p > * @ param pAddParam additional param * @ return M request ( or ) scoped bean * @ throws Exception - an exception */ @ Override public final ReplicatorXmlHttp < RS > create ( final Map < String , Object > pAddParam ) throws Exception { } }
ReplicatorXmlHttp < RS > srvGetDbCopyXml = new ReplicatorXmlHttp < RS > ( ) ; SrvEntityReaderXml srvEntityReaderXml = new SrvEntityReaderXml ( ) ; srvEntityReaderXml . setUtilXml ( this . factoryAppBeans . lazyGetUtilXml ( ) ) ; SrvEntityFieldFillerStd srvEntityFieldFillerStd = new SrvEntityFieldFillerStd ( ) ; srvEnti...
public class Script { /** * Gets the count of regular SigOps in the script program ( counting multisig ops as 20) */ public static int getSigOpCount ( byte [ ] program ) throws ScriptException { } }
Script script = new Script ( ) ; try { script . parse ( program ) ; } catch ( ScriptException e ) { // Ignore errors and count up to the parse - able length } return getSigOpCount ( script . chunks , false ) ;
public class FileLogHeader { /** * Initialise the FileLogHeader from a RandomAccessFile . * @ param java . io . RandomAceessFile * the stream that connects to the log . * @ author IBM Corporation * @ throws LogFileExhaustedException * if there are no more logrecords left to read . * @ throws PermanentIOExce...
if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , "readHeader" , new Object [ ] { logFile } ) ; boolean validHeader = false ; // True if the header is valid try { logFile . seek ( 0 ) ; // Start reading at the head of the file . byte [ ] headerBytes = new byte [ head...
public class Code { /** * Returns the value in { @ code result } to the calling method . After a return * it is an error to define further instructions after a return without * first { @ link # mark marking } an existing unmarked label . */ public void returnValue ( Local < ? > result ) { } }
if ( ! result . type . equals ( method . returnType ) ) { // TODO : this is probably too strict . throw new IllegalArgumentException ( "declared " + method . returnType + " but returned " + result . type ) ; } addInstruction ( new PlainInsn ( Rops . opReturn ( result . type . ropType ) , sourcePosition , null , Registe...
public class JDBCRepository { /** * Attempts to close a DataSource by searching for a " close " method . For * some reason , there ' s no standard way to close a DataSource . * @ return false if DataSource doesn ' t have a close method . */ public static boolean closeDataSource ( DataSource ds ) throws SQLException...
try { Method closeMethod = ds . getClass ( ) . getMethod ( "close" ) ; try { closeMethod . invoke ( ds ) ; } catch ( Throwable e ) { ThrowUnchecked . fireFirstDeclaredCause ( e , SQLException . class ) ; } return true ; } catch ( NoSuchMethodException e ) { return false ; }
public class SingletonRuntimeManager { /** * Retrieves session id from serialized file named jbpmSessionId . ser from given location . * @ param location directory where jbpmSessionId . ser file should be * @ param identifier of the manager owning this ksessionId * @ return sessionId if file was found otherwise 0...
File sessionIdStore = new File ( location + File . separator + identifier + "-jbpmSessionId.ser" ) ; if ( sessionIdStore . exists ( ) ) { Long knownSessionId = null ; FileInputStream fis = null ; ObjectInputStream in = null ; try { fis = new FileInputStream ( sessionIdStore ) ; in = new ObjectInputStream ( fis ) ; Obje...
public class ScmRepositoriesParser { /** * / * - - - Static methods - - - */ public Collection < ScmConfiguration > parseRepositoriesFile ( String fileName , String scmType , String scmPpk , String scmUser , String scmPassword ) { } }
try ( InputStream is = new FileInputStream ( fileName ) ) { String jsonText = IOUtils . toString ( is ) ; JSONObject json = new JSONObject ( jsonText ) ; JSONArray arr = json . getJSONArray ( SCM_REPOSITORIES ) ; List < ScmConfiguration > configurationList = new LinkedList < > ( ) ; arr . forEach ( scm -> { JSONObject ...
public class SyncAgentsInner { /** * Creates or updates a sync agent . * @ param resourceGroupName The name of the resource group that contains the resource . You can obtain this value from the Azure Resource Manager API or the portal . * @ param serverName The name of the server on which the sync agent is hosted ....
return createOrUpdateWithServiceResponseAsync ( resourceGroupName , serverName , syncAgentName , syncDatabaseId ) . toBlocking ( ) . last ( ) . body ( ) ;
public class StaticClassTransformer { /** * Trigger the process to add entry hooks to a class ( and all its parents ) . * @ param features specification what to mock */ < T > void mockClass ( MockFeatures < T > features ) { } }
boolean subclassingRequired = ! features . interfaces . isEmpty ( ) || Modifier . isAbstract ( features . mockedType . getModifiers ( ) ) ; if ( subclassingRequired && ! features . mockedType . isArray ( ) && ! features . mockedType . isPrimitive ( ) && Modifier . isFinal ( features . mockedType . getModifiers ( ) ) ) ...
public class SimpleXmlWriter { /** * Writes ' / > \ n ' . */ public void openCloseElement ( String elementName ) throws IOException { } }
assert ( elementNames . size ( ) > 0 ) ; assert ( elementNames . get ( elementNames . size ( ) - 1 ) . equals ( elementName ) ) ; writer . write ( "/>\n" ) ; removeElementName ( elementName ) ;
public class AsciiString { /** * Returns { @ code true } if both { @ link CharSequence } ' s are equals when ignore the case . This only supports 8 - bit * ASCII . */ public static boolean contentEqualsIgnoreCase ( CharSequence a , CharSequence b ) { } }
if ( a == null || b == null ) { return a == b ; } if ( a . getClass ( ) == AsciiString . class ) { return ( ( AsciiString ) a ) . contentEqualsIgnoreCase ( b ) ; } if ( b . getClass ( ) == AsciiString . class ) { return ( ( AsciiString ) b ) . contentEqualsIgnoreCase ( a ) ; } if ( a . length ( ) != b . length ( ) ) { ...
public class HttpRequest { /** * 获取指定的header的long值 , 没有返回默认long值 * @ param radix 进制数 * @ param name header名 * @ param defaultValue 默认long值 * @ return header值 */ public long getLongHeader ( int radix , String name , long defaultValue ) { } }
return header . getLongValue ( radix , name , defaultValue ) ;
public class MultiLayerNetwork { /** * Provide the output of the specified layer , detached from any workspace . This is most commonly used at inference / test * time , and is more memory efficient than { @ link # ffToLayerActivationsDetached ( boolean , FwdPassType , boolean , int , INDArray , INDArray , INDArray , ...
setInput ( input ) ; setLayerMaskArrays ( featureMask , labelsMask ) ; /* Idea here : we want to minimize memory , and return only the final array Approach to do this : keep activations in memory only as long as we need them . In MultiLayerNetwork , the output activations of layer X are used as input to layer X + 1...
public class ArrayUtil { /** * 将原始类型数组包装为包装类型 * @ param values 原始类型数组 * @ return 包装类型数组 */ public static Boolean [ ] wrap ( boolean ... values ) { } }
if ( null == values ) { return null ; } final int length = values . length ; if ( 0 == length ) { return new Boolean [ 0 ] ; } final Boolean [ ] array = new Boolean [ length ] ; for ( int i = 0 ; i < length ; i ++ ) { array [ i ] = Boolean . valueOf ( values [ i ] ) ; } return array ;
public class BucketManager { /** * 查询异步抓取任务 * @ param region 抓取任务所在bucket区域 华东 z0 华北 z1 华南 z2 北美 na0 东南亚 as0 * @ param fetchWorkId 抓取任务id * @ return Response * @ throws QiniuException */ public Response checkAsynFetchid ( String region , String fetchWorkId ) throws QiniuException { } }
String path = String . format ( "http://api-%s.qiniu.com/sisyphus/fetch?id=%s" , region , fetchWorkId ) ; return client . get ( path , auth . authorization ( path ) ) ;
public class ByteConverter { /** * Parses a long value from the byte array . * @ param bytes The byte array to parse . * @ param idx The starting index of the parse in the byte array . * @ return parsed long value . */ public static long int8 ( byte [ ] bytes , int idx ) { } }
return ( ( long ) ( bytes [ idx + 0 ] & 255 ) << 56 ) + ( ( long ) ( bytes [ idx + 1 ] & 255 ) << 48 ) + ( ( long ) ( bytes [ idx + 2 ] & 255 ) << 40 ) + ( ( long ) ( bytes [ idx + 3 ] & 255 ) << 32 ) + ( ( long ) ( bytes [ idx + 4 ] & 255 ) << 24 ) + ( ( long ) ( bytes [ idx + 5 ] & 255 ) << 16 ) + ( ( long ) ( bytes ...
public class GVRScriptFile { /** * Invokes a function defined in the script . * @ param funcName * The function name . * @ param params * The parameter array . * @ return * A boolean value representing whether the function is * executed correctly . If the function cannot be found , or * parameters don '...
// Run script if it is dirty . This makes sure the script is run // on the same thread as the caller ( suppose the caller is always // calling from the same thread ) . checkDirty ( ) ; // Skip bad functions if ( isBadFunction ( funcName ) ) { return false ; } String statement = getInvokeStatementCached ( funcName , par...
public class csvserver_lbvserver_binding { /** * Use this API to fetch csvserver _ lbvserver _ binding resources of given name . */ public static csvserver_lbvserver_binding [ ] get ( nitro_service service , String name ) throws Exception { } }
csvserver_lbvserver_binding obj = new csvserver_lbvserver_binding ( ) ; obj . set_name ( name ) ; csvserver_lbvserver_binding response [ ] = ( csvserver_lbvserver_binding [ ] ) obj . get_resources ( service ) ; return response ;
public class DynamicPipelineServiceImpl { /** * Filters out builds from the dashboard ' s job that used a different repository . * Builds picked up by a jenkins job might refer to different repositories if users * changed the job around at one point . We are only interested in the repository * that all of our com...
List < Build > rt = new ArrayList < Build > ( ) ; String urlNoNull = url != null ? url : "" ; // String branchNoNull = branch ! = null ? branch : " " ; for ( Build build : builds ) { boolean added = false ; // TODO this is not reliable for ( RepoBranch repo : build . getCodeRepos ( ) ) { String rurl = repo . getUrl ( )...
public class Grid { /** * Cleanup models and grid */ @ Override protected Futures remove_impl ( final Futures fs ) { } }
for ( Key < Model > k : _models . values ( ) ) k . remove ( fs ) ; _models . clear ( ) ; return fs ;
public class KTypeVTypeHashMap { /** * Creates a hash map from two index - aligned arrays of key - value pairs . */ public static < KType , VType > KTypeVTypeHashMap < KType , VType > from ( KType [ ] keys , VType [ ] values ) { } }
if ( keys . length != values . length ) { throw new IllegalArgumentException ( "Arrays of keys and values must have an identical length." ) ; } KTypeVTypeHashMap < KType , VType > map = new KTypeVTypeHashMap < > ( keys . length ) ; for ( int i = 0 ; i < keys . length ; i ++ ) { map . put ( keys [ i ] , values [ i ] ) ;...
public class UploadWebOperation { /** * Download file from storage with content - disposition * @ param params { group : " . . . default is GROUP . . . " , id : " . . . " , name : " . . . default will be taken from FileMetaBean . name . . . " } * @ param response */ @ WebOperationMethod public Map < String , Object...
String database = Objects . get ( params , "database" ) ; String collection = Objects . get ( params , "collection" , COLLECTION ) ; String id = Objects . get ( params , "id" ) ; String name = Objects . get ( params , "name" ) ; FileStorage . FileReadBean b = null ; try { b = FileStorage . read ( new Id ( database , co...
public class BaseX { /** * Adds the values for the given characters to the value lookup table . * @ param chars * the list of characters to process . */ private void addChars ( String chars ) { } }
for ( int i = 0 ; i < chars . length ( ) ; i ++ ) { int c = chars . codePointAt ( i ) - min ; if ( values [ c ] != - 1 && values [ c ] != i ) { throw new IllegalArgumentException ( "Duplicate characters in the encoding alphabet" ) ; } values [ c ] = i ; }
public class AWTEventProviderIT { /** * Parameterizes the test instances . * @ return Collection of parameters for the constructor of * { @ link EventProviderTestBase } . */ @ Parameters public static final Collection < Object [ ] > getParameters ( ) { } }
return Arrays . asList ( new Object [ ] { ( Function < ListenerStore , ? extends EventProvider > ) store -> new AWTEventProvider ( store , true ) , ( Supplier < ListenerStore > ) ( ) -> PerformanceListenerStore . create ( ) . synchronizedView ( ) } , new Object [ ] { ( Function < ListenerStore , ? extends EventProvider...
public class JsonModelCoder { /** * Encodes the given value into the JSON format , and appends it into the given stream using { @ link JsonPullParser # DEFAULT _ CHARSET } . < br > * This method is an alias of { @ link # encodeListNullToBlank ( Writer , List ) } . * @ param out { @ link OutputStream } to be written...
OutputStreamWriter writer = new OutputStreamWriter ( out , JsonPullParser . DEFAULT_CHARSET ) ; encodeNullToBlank ( writer , obj ) ;
public class StatisticsJDBCStorageConnection { /** * { @ inheritDoc } */ public void rename ( NodeData data ) throws RepositoryException , UnsupportedOperationException , InvalidItemStateException , IllegalStateException { } }
Statistics s = ALL_STATISTICS . get ( RENAME_NODE_DATA_DESCR ) ; try { s . begin ( ) ; wcs . rename ( data ) ; } finally { s . end ( ) ; }
public class CPMeasurementUnitPersistenceImpl { /** * Returns the last cp measurement unit in the ordered set where uuid = & # 63 ; and companyId = & # 63 ; . * @ param uuid the uuid * @ param companyId the company ID * @ param orderByComparator the comparator to order the set by ( optionally < code > null < / co...
CPMeasurementUnit cpMeasurementUnit = fetchByUuid_C_Last ( uuid , companyId , orderByComparator ) ; if ( cpMeasurementUnit != null ) { return cpMeasurementUnit ; } StringBundler msg = new StringBundler ( 6 ) ; msg . append ( _NO_SUCH_ENTITY_WITH_KEY ) ; msg . append ( "uuid=" ) ; msg . append ( uuid ) ; msg . append ( ...
public class Reflection { /** * Utility method that allows to extract actual annotation from method , bypassing LibGDX annotation wrapper . * Returns null if annotation is not present . * @ param method method that might be annotated . * @ param annotationType class of the annotation . * @ return an instance of...
if ( isAnnotationPresent ( method , annotationType ) ) { return method . getDeclaredAnnotation ( annotationType ) . getAnnotation ( annotationType ) ; } return null ;
public class CommerceTierPriceEntryUtil { /** * Returns the last commerce tier price entry in the ordered set where commercePriceEntryId = & # 63 ; and minQuantity & le ; & # 63 ; . * @ param commercePriceEntryId the commerce price entry ID * @ param minQuantity the min quantity * @ param orderByComparator the co...
return getPersistence ( ) . fetchByC_LtM_Last ( commercePriceEntryId , minQuantity , orderByComparator ) ;
public class FormPanel { /** * Adds a form entry to the panel * @ param mainLabelText * @ param minorLabelText * @ param component */ public void addFormEntry ( String mainLabelText , final String minorLabelText , final JComponent component ) { } }
if ( ! mainLabelText . endsWith ( ":" ) ) { mainLabelText += ":" ; } final DCLabel mainLabel = DCLabel . dark ( mainLabelText ) ; mainLabel . setFont ( WidgetUtils . FONT_NORMAL ) ; mainLabel . setBorder ( new EmptyBorder ( 6 , 0 , 0 , 0 ) ) ; final JXLabel minorLabel ; if ( StringUtils . isNullOrEmpty ( minorLabelText...
public class GlueHiveMetastore { /** * < pre > * Ex : Partition keys = [ ' a ' , ' b ' , ' c ' ] * Valid partition values : * [ ' 1 ' , ' 2 ' , ' 3 ' ] or * < / pre > * @ param parts Full or partial list of partition values to filter on . Keys without filter will be empty strings . * @ return a list of part...
Table table = getTableOrElseThrow ( databaseName , tableName ) ; String expression = buildGlueExpression ( table . getPartitionColumns ( ) , parts ) ; List < Partition > partitions = getPartitions ( databaseName , tableName , expression ) ; return Optional . of ( buildPartitionNames ( table . getPartitionColumns ( ) , ...
public class ConditionalOptional { /** * If the passed FieldCase equals { @ link FieldCase # NULL } , { @ code null } is returned . If * { @ link # isMandatory ( ) } is { @ code true } the field value is generated depending on the * Fieldcase . If the { @ link # isMandatory ( ) } is { @ code false } the constraint ...
if ( c == FieldCase . NULL ) { return null ; } if ( c != null || isMandatory ( ) || choice . isNext ( ) ) { return constraint . initValues ( c ) ; } return constraint . initValues ( FieldCase . NULL ) ;
public class Expressions { /** * Create a new Template expression * @ param cl type of expression * @ param template template * @ param args template parameters * @ return template expression */ public static < T > SimpleTemplate < T > simpleTemplate ( Class < ? extends T > cl , String template , Object ... arg...
return simpleTemplate ( cl , createTemplate ( template ) , ImmutableList . copyOf ( args ) ) ;
public class ExpressRouteLinksInner { /** * Retrieves the specified ExpressRouteLink resource . * @ param resourceGroupName The name of the resource group . * @ param expressRoutePortName The name of the ExpressRoutePort resource . * @ param linkName The name of the ExpressRouteLink resource . * @ param service...
return ServiceFuture . fromResponse ( getWithServiceResponseAsync ( resourceGroupName , expressRoutePortName , linkName ) , serviceCallback ) ;
public class FilterConsensus { /** * Main . * @ param args command line args */ public static void main ( final String [ ] args ) { } }
Switch about = new Switch ( "a" , "about" , "display about message" ) ; Switch help = new Switch ( "h" , "help" , "display help message" ) ; FileArgument bamFile = new FileArgument ( "i" , "bam-file" , "input BAM file of consensus sequences" , true ) ; FileArgument bedFile = new FileArgument ( "x" , "bed-file" , "input...
public class RemoteTaskRunner { /** * When a ephemeral worker node disappears from ZK , incomplete running tasks will be retried by * the logic in the status listener . We still have to make sure there are no tasks assigned * to the worker but not yet running . * @ param worker - the removed worker */ private voi...
log . info ( "Kaboom! Worker[%s] removed!" , worker . getHost ( ) ) ; final ZkWorker zkWorker = zkWorkers . get ( worker . getHost ( ) ) ; if ( zkWorker != null ) { try { scheduleTasksCleanupForWorker ( worker . getHost ( ) , getAssignedTasks ( worker ) ) ; } catch ( Exception e ) { throw new RuntimeException ( e ) ; }...
public class InstancesController { /** * List all registered instances with name * @ param name the name to search for * @ return application list */ @ GetMapping ( path = "/instances" , produces = MediaType . APPLICATION_JSON_VALUE , params = "name" ) public Flux < Instance > instances ( @ RequestParam ( "name" ) ...
return registry . getInstances ( name ) . filter ( Instance :: isRegistered ) ;
public class QueryFilterSet { /** * Applied across all filters in the set . * { @ inheritDoc } */ @ Override public boolean include ( T result ) { } }
boolean include = true ; for ( IQueryFilter < T > dataFilter : filters ) { include &= dataFilter . include ( result ) ; if ( ! include ) { break ; } } return include ;
public class MapLazyScrollUpdateOutputHandler { /** * { @ inheritDoc } */ public MapLazyScrollUpdateOutputHandler handle ( List < QueryParameters > outputList ) throws MjdbcException { } }
if ( outputList instanceof QueryParametersLazyList ) { return new MapLazyScrollUpdateOutputHandler ( this . processor , ( QueryParametersLazyList ) outputList ) ; } else { throw new MjdbcRuntimeException ( "LazyOutputHandler can be used only together with LazyStatementHandler. \n" + "Please assign LazyStatementHandler ...
public class ExcelUtils { /** * 单sheet导出 */ private SheetTemplate exportExcelByModuleHandler ( String templatePath , int sheetIndex , List < ? > data , Map < String , String > extendMap , Class clazz , boolean isWriteHeader ) throws Excel4JException { } }
SheetTemplate template = SheetTemplateHandler . sheetTemplateBuilder ( templatePath ) ; generateSheet ( sheetIndex , data , extendMap , clazz , isWriteHeader , template ) ; return template ;
public class NodeTypes { /** * Determine if the node and property definitions of the supplied primary type and mixin types allow the item with the * supplied name to be removed . * @ param primaryTypeNameOfParent the name of the primary type for the parent node ; may not be null * @ param mixinTypeNamesOfParent t...
// First look in the primary type for a matching property definition . . . JcrNodeType primaryType = getNodeType ( primaryTypeNameOfParent ) ; if ( primaryType != null ) { for ( JcrPropertyDefinition definition : primaryType . allPropertyDefinitions ( itemName ) ) { // Skip protected definitions . . . if ( skipProtecte...
public class Objects { /** * Checks whether { @ code obj } is one of the elements of { @ code array } . */ public static boolean in ( Object obj , Object ... array ) { } }
for ( Object expected : array ) { if ( obj == expected ) { return true ; } } return false ;
public class Optionals { /** * Gets an optional of { @ code object } if { @ code object } is an instance of { @ code type } , or an empty optional . * @ param object the object * @ param type the type * @ param < T > the type * @ return the optional */ public static < T > @ NonNull Optional < T > cast ( final @...
return type . isInstance ( object ) ? Optional . of ( ( T ) object ) : Optional . empty ( ) ;
public class PlaceManager { /** * Called by the place manager after the place object has been successfully created . */ public void startup ( PlaceObject plobj ) { } }
// keep track of this _plobj = plobj ; // we usually want to create and register a speaker service instance that clients can use // to speak in this place if ( shouldCreateSpeakService ( ) ) { plobj . setSpeakService ( addProvider ( createSpeakHandler ( plobj ) , SpeakMarshaller . class ) ) ; } // we ' ll need to hear ...
public class JvmGenericTypeImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ @ SuppressWarnings ( "unchecked" ) @ Override public void eSet ( int featureID , Object newValue ) { } }
switch ( featureID ) { case TypesPackage . JVM_GENERIC_TYPE__TYPE_PARAMETERS : getTypeParameters ( ) . clear ( ) ; getTypeParameters ( ) . addAll ( ( Collection < ? extends JvmTypeParameter > ) newValue ) ; return ; case TypesPackage . JVM_GENERIC_TYPE__INTERFACE : setInterface ( ( Boolean ) newValue ) ; return ; case ...
public class ExpressionParser { /** * adds and deletes characters to aid in the creation of the binary expression tree */ private String formatString ( String exp ) { } }
exp = exp . replaceAll ( "\\s" , "" ) ; // why exp = exp . toLowerCase ( ) ; int count = 0 ; if ( exp . substring ( 0 , 1 ) . equals ( "-" ) ) { // if expression starts with a minus sign , it is a unary one exp = "$" + exp . substring ( 1 ) ; // replace } for ( int i = 0 ; i < exp . length ( ) ; i ++ ) { if ( exp . sub...
public class AlignmentUtils { /** * Calculates score of alignment * @ param seq1 target sequence * @ param seq1Range aligned range * @ param mutations mutations ( alignment ) * @ param scoring scoring * @ param < S > sequence type * @ return score */ public static < S extends Sequence < S > > int calculateS...
if ( ! mutations . isEmpty ( ) && mutations . getPositionByIndex ( 0 ) < seq1Range . getFrom ( ) - 1 ) throw new IllegalArgumentException ( ) ; final AlignmentIteratorForward < S > iterator = new AlignmentIteratorForward < > ( mutations , seq1Range ) ; int score = 0 ; while ( iterator . advance ( ) ) { final int mut = ...
public class LaxURI { /** * IA OVERRIDDEN IN LaxURI TO INCLUDE FIX FOR * http : / / issues . apache . org / jira / browse / HTTPCLIENT - 588 * AND * http : / / webteam . archive . org / jira / browse / HER - 1268 * In order to avoid any possilbity of conflict with non - ASCII characters , * Parse a URI refere...
// validate and contruct the URI character sequence if ( original == null ) { throw new URIException ( "URI-Reference required" ) ; } String tmp = original . trim ( ) ; /* * The length of the string sequence of characters . * It may not be equal to the length of the byte array . */ int length = tmp . length ( ) ; /* ...
public class LoggingPropertyOracle { /** * Try to find a counterexample to the given hypothesis , and log whenever such a spurious counterexample is found . * @ see PropertyOracle # findCounterExample ( Object , Collection ) */ @ Nullable @ Override public DefaultQuery < I , D > doFindCounterExample ( A hypothesis , ...
final DefaultQuery < I , D > result = propertyOracle . findCounterExample ( hypothesis , inputs ) ; if ( result != null ) { LOGGER . logEvent ( "Spurious counterexample found for property: '" + toString ( ) + "'" ) ; LOGGER . logCounterexample ( "Spurious counterexample: " + result ) ; } return result ;
public class Query { /** * < pre > * { field : < field > , regex : < ^ string $ > , caseInsensitive : true , . . . } * < / pre > */ public static Query withStringIgnoreCase ( String field , String value ) { } }
return Query . withString ( field , value , true ) ;
public class SeekableInMemoryByteChannel { /** * { @ inheritDoc } * @ see java . nio . channels . SeekableByteChannel # write ( java . nio . ByteBuffer ) */ @ Override public int write ( final ByteBuffer source ) throws IOException { } }
// Precondition checks this . checkClosed ( ) ; if ( source == null ) { throw new IllegalArgumentException ( "Source buffer must be supplied" ) ; } // Put the bytes to be written into a byte [ ] final int totalBytes = source . remaining ( ) ; final byte [ ] readContents = new byte [ totalBytes ] ; source . get ( readCo...
public class CmsHtmlList { /** * Generates the need html code for ending a list . < p > * @ return html code */ protected String htmlEnd ( ) { } }
StringBuffer html = new StringBuffer ( 512 ) ; html . append ( "\t\t\t</td></tr>\n" ) ; html . append ( "\t\t</table>\n" ) ; if ( isBoxed ( ) ) { html . append ( getWp ( ) . dialogBlock ( CmsWorkplace . HTML_END , m_name . key ( getWp ( ) . getLocale ( ) ) , false ) ) ; } html . append ( "</div>\n" ) ; return html . to...
public class ApiOvhXdsl { /** * Alter this object properties * REST : PUT / xdsl / { serviceName } / modem / wifi / { wifiName } * @ param body [ required ] New object properties * @ param serviceName [ required ] The internal name of your XDSL offer * @ param wifiName [ required ] Name of the Wifi */ public vo...
String qPath = "/xdsl/{serviceName}/modem/wifi/{wifiName}" ; StringBuilder sb = path ( qPath , serviceName , wifiName ) ; exec ( qPath , "PUT" , sb . toString ( ) , body ) ;
public class MemcachedConnection { /** * Log a exception to different levels depending on the state . * Exceptions get logged at debug level when happening during shutdown , but * at warning level when operating normally . * @ param e the exception to log . */ private void logRunException ( final Exception e ) { ...
if ( shutDown ) { getLogger ( ) . debug ( "Exception occurred during shutdown" , e ) ; } else { getLogger ( ) . warn ( "Problem handling memcached IO" , e ) ; }
public class TimestampUtils { /** * < p > Given a UTC timestamp { @ code millis } finds another point in time that is rendered in given time * zone { @ code tz } exactly as " millis in UTC " . < / p > * < p > For instance , given 7 Jan 16:00 UTC and tz = GMT + 02:00 it returns 7 Jan 14:00 UTC = = 7 Jan 16:00 * GM...
if ( tz == null ) { // If client did not provide us with time zone , we use system default time zone tz = getDefaultTz ( ) ; } // The story here : // Backend provided us with something like ' 2015-10-04 13:40 ' and it did NOT provide us with a // time zone . // On top of that , user asked us to treat the timestamp as i...
public class SqlApplicationConfigurationUpdate { /** * The array of < a > ReferenceDataSourceUpdate < / a > objects describing the new reference data sources used by the * application . * < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use * { @ link # setReferenceDataSourceU...
if ( this . referenceDataSourceUpdates == null ) { setReferenceDataSourceUpdates ( new java . util . ArrayList < ReferenceDataSourceUpdate > ( referenceDataSourceUpdates . length ) ) ; } for ( ReferenceDataSourceUpdate ele : referenceDataSourceUpdates ) { this . referenceDataSourceUpdates . add ( ele ) ; } return this ...
public class SpiderService { /** * Delete all CFs used by the given application . */ @ Override public void deleteApplication ( ApplicationDefinition appDef ) { } }
checkServiceState ( ) ; deleteApplicationCFs ( appDef ) ; m_shardCache . clear ( appDef ) ;
public class InternalPureXbaseParser { /** * InternalPureXbase . g : 5033:1 : entryRuleXConstructorCall returns [ EObject current = null ] : iv _ ruleXConstructorCall = ruleXConstructorCall EOF ; */ public final EObject entryRuleXConstructorCall ( ) throws RecognitionException { } }
EObject current = null ; EObject iv_ruleXConstructorCall = null ; try { // InternalPureXbase . g : 5033:57 : ( iv _ ruleXConstructorCall = ruleXConstructorCall EOF ) // InternalPureXbase . g : 5034:2 : iv _ ruleXConstructorCall = ruleXConstructorCall EOF { if ( state . backtracking == 0 ) { newCompositeNode ( grammarAc...