signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class Clock { /** * Defines the Paint object that will be used to draw the border of the clock .
* Usually this is a Color object .
* @ param PAINT */
public void setBorderPaint ( final Paint PAINT ) { } } | if ( null == borderPaint ) { _borderPaint = PAINT ; fireUpdateEvent ( REDRAW_EVENT ) ; } else { borderPaint . set ( PAINT ) ; } |
public class RsXslt { /** * Make a transformer from this stylesheet .
* @ param factory Transformer factory
* @ param stylesheet The stylesheet
* @ return Transformer
* @ throws TransformerConfigurationException If fails */
private static Transformer transformer ( final TransformerFactory factory , final Source... | final Transformer tnfr = factory . newTransformer ( stylesheet ) ; if ( tnfr == null ) { throw new TransformerConfigurationException ( String . format ( "%s failed to create new XSL transformer for '%s'" , factory . getClass ( ) , stylesheet . getSystemId ( ) ) ) ; } return tnfr ; |
public class GaussianGmm_F64 { /** * Helper function for computing Gaussian parameters . Adds the point to mean and weight . */
public void addMean ( double [ ] point , double responsibility ) { } } | for ( int i = 0 ; i < mean . numRows ; i ++ ) { mean . data [ i ] += responsibility * point [ i ] ; } weight += responsibility ; |
public class FlakeView { /** * Subtract the specified number of droidflakes . We just take them off the end of the
* list , leaving the others unchanged . */
void subtractFlakes ( int quantity ) { } } | for ( int i = 0 ; i < quantity ; ++ i ) { int index = numFlakes - i - 1 ; flakes . remove ( index ) ; } setNumFlakes ( numFlakes - quantity ) ; |
public class WhitelistWarningsGuard { /** * TODO ( nicksantos ) : This is a weird API . */
static Set < String > loadWhitelistedJsWarnings ( Reader reader ) throws IOException { } } | checkNotNull ( reader ) ; Set < String > result = new HashSet < > ( ) ; result . addAll ( CharStreams . readLines ( reader ) ) ; return result ; |
public class Base64VLQ { /** * Decodes the next base 64 VLQ value from the given string and returns the value and the rest of the string via the out parameter .
* @ return */
static Base64VLQResult decode ( String aStr , int aIndex ) { } } | int strLen = aStr . length ( ) ; int result = 0 ; int shift = 0 ; boolean continuation ; int digit ; do { if ( aIndex >= strLen ) { throw new Error ( "Expected more digits in base 64 VLQ value." ) ; } digit = Base64 . decode ( aStr . charAt ( aIndex ++ ) ) ; if ( digit == - 1 ) { throw new Error ( "Invalid base64 digit... |
public class PdfCollectionSort { /** * Defines the sort order of the field ( ascending or descending ) .
* @ param ascendingtrue is the default , use false for descending order */
public void setSortOrder ( boolean ascending ) { } } | PdfObject o = get ( PdfName . S ) ; if ( o instanceof PdfName ) { put ( PdfName . A , new PdfBoolean ( ascending ) ) ; } else { throw new IllegalArgumentException ( "You have to define a boolean array for this collection sort dictionary." ) ; } |
public class AcraToChiliprojectSyncer { /** * Starts the synchronization between Acra reports Google spreadsheet and Chiliproject
* bugtracker .
* @ throws IOException
* @ throws ServiceException
* @ throws RedmineException
* @ throws NotFoundException
* @ throws AuthenticationException
* @ throws ParseEx... | // retrieve new issues
final List < EditableAcraReport > listReports = retrieveUnsyncedElements ( ) ; // update Chiliproject
for ( final EditableAcraReport report : listReports ) { final Issue issue = getIssueForStack ( report . getStacktraceMD5 ( ) ) ; try { if ( null == issue ) { LOGGER . debug ( "Got a new bugreport... |
public class HTODDependencyTable { /** * This reduces the DependencyToEntryTable size by offloading some dependencies to the disk . */
private int reduceTableSize ( ) { } } | int returnCode = HTODDynacache . NO_EXCEPTION ; int count = this . entryRemove ; if ( count > 0 ) { int removeSize = 5 ; while ( count > 0 ) { int minSize = Integer . MAX_VALUE ; Iterator < Map . Entry < Object , Set < Object > > > e = dependencyToEntryTable . entrySet ( ) . iterator ( ) ; while ( e . hasNext ( ) ) { M... |
public class FieldMask { /** * Creates a FieldMask from the provided field paths .
* @ param fieldPaths A list of field paths .
* @ return A { @ code FieldMask } that describes a subset of fields . */
@ Nonnull public static FieldMask of ( String ... fieldPaths ) { } } | List < FieldPath > paths = new ArrayList < > ( ) ; for ( String fieldPath : fieldPaths ) { paths . add ( FieldPath . fromDotSeparatedString ( fieldPath ) ) ; } return new FieldMask ( paths ) ; |
public class AbstractBlueprintBeanDefinitionParser { /** * < p > addPropertyReferenceForMap . < / p >
* @ param id a { @ link java . lang . String } object .
* @ param context a { @ link org . apache . aries . blueprint . ParserContext } object .
* @ param beanMetadata a { @ link org . apache . aries . blueprint ... | MutableMapMetadata mapMetadata = context . createMetadata ( MutableMapMetadata . class ) ; for ( Entry < String , String > value : values . entrySet ( ) ) { mapMetadata . addEntry ( createStringValue ( context , value . getKey ( ) ) , createStringValue ( context , value . getValue ( ) ) ) ; } beanMetadata . addProperty... |
public class OpenAPIConnection { /** * Downloads contents of URL and converts them to a string
* @ return string containing contents of a url */
public String download ( ) { } } | try { HttpURLConnection conn = getConnection ( ) ; return readConnection ( conn ) ; } catch ( Exception e ) { Assert . fail ( e . getMessage ( ) ) ; } return null ; |
public class Pattern { /** * matchMany , false if it was ended by running out of tokens . */
private boolean getClause ( Iterator tokens , List clause ) { } } | while ( tokens . hasNext ( ) ) { Object token = tokens . next ( ) ; if ( token == matchMany ) return true ; clause . add ( token ) ; } return false ; |
public class MtasDataCollectorResult { /** * Gets the list .
* @ param reduce the reduce
* @ return the list
* @ throws IOException Signals that an I / O exception has occurred . */
public final SortedMap < String , MtasDataItem < T1 , T2 > > getList ( boolean reduce ) throws IOException { } } | if ( collectorType . equals ( DataCollector . COLLECTOR_TYPE_LIST ) ) { if ( reduce && startKey != null && endKey != null ) { return list . subMap ( startKey , endKey ) ; } else { return list ; } } else { throw new IOException ( "type " + collectorType + " not supported" ) ; } |
public class NetworkEnvironmentConfiguration { /** * Parses the configuration to get the page size and validates the value .
* @ param configuration configuration object
* @ return size of memory segment */
public static int getPageSize ( Configuration configuration ) { } } | final int pageSize = checkedDownCast ( MemorySize . parse ( configuration . getString ( TaskManagerOptions . MEMORY_SEGMENT_SIZE ) ) . getBytes ( ) ) ; // check page size of for minimum size
ConfigurationParserUtils . checkConfigParameter ( pageSize >= MemoryManager . MIN_PAGE_SIZE , pageSize , TaskManagerOptions . MEM... |
public class SmbNamedPipe { /** * Return the < code > InputStream < / code > used to read information
* from this pipe instance . Presumably data would first be written
* to the < code > OutputStream < / code > associated with this Named
* Pipe instance although this is not a requirement ( e . g . a
* read - on... | if ( pipeIn == null ) { if ( ( pipeType & PIPE_TYPE_CALL ) == PIPE_TYPE_CALL || ( pipeType & PIPE_TYPE_TRANSACT ) == PIPE_TYPE_TRANSACT ) { pipeIn = new TransactNamedPipeInputStream ( this ) ; } else { pipeIn = new SmbFileInputStream ( this , ( pipeType & 0xFFFF00FF ) | SmbFile . O_EXCL ) ; } } return pipeIn ; |
public class SwitchableObservable { /** * { @ inheritDoc } */
@ Override public void removeObservableListener ( ObservableListener < T > listener ) { } } | support . removeObservableListener ( listener ) ; super . removeObservableListener ( listener ) ; |
public class CnvBnRsToEntity { /** * < p > Get from RS simple ID - able value . < / p >
* @ param pFieldType Field Type
* @ param pFrom from RS
* @ param pColumnAlias Column Alias
* @ return simple ID value
* @ throws Exception - an exception */
public final Object getSimpleId ( final Class < ? > pFieldType ,... | if ( Integer . class == pFieldType ) { return pFrom . getInteger ( pColumnAlias ) ; } else if ( Long . class == pFieldType ) { return pFrom . getLong ( pColumnAlias ) ; } else if ( String . class == pFieldType ) { return pFrom . getString ( pColumnAlias ) ; } else { String msg = "There is no rule to get column ID-able ... |
public class FrameworkManager { /** * Attach a shutdown hook to make sure that the framework is shutdown nicely
* in most cases . There are ways of shutting a JVM down that don ' t use the
* shutdown hook , but this catches most cases . */
private void addShutdownHook ( boolean isClient ) { } } | if ( shutdownHook == null ) { shutdownHook = new ShutdownHook ( isClient ) ; Runtime . getRuntime ( ) . addShutdownHook ( shutdownHook ) ; } |
public class ModifyInstanceCreditSpecificationResult { /** * Information about the instances whose credit option for CPU usage was successfully modified .
* @ param successfulInstanceCreditSpecifications
* Information about the instances whose credit option for CPU usage was successfully modified . */
public void s... | if ( successfulInstanceCreditSpecifications == null ) { this . successfulInstanceCreditSpecifications = null ; return ; } this . successfulInstanceCreditSpecifications = new com . amazonaws . internal . SdkInternalList < SuccessfulInstanceCreditSpecificationItem > ( successfulInstanceCreditSpecifications ) ; |
public class ConvertNumberHandler { /** * Returns a new NumberConverter
* @ see NumberConverter
* @ see org . apache . myfaces . view . facelets . tag . jsf . ConverterHandler # createConverter ( javax . faces . view . facelets . FaceletContext ) */
protected Converter createConverter ( FaceletContext ctx ) throws ... | return ctx . getFacesContext ( ) . getApplication ( ) . createConverter ( NumberConverter . CONVERTER_ID ) ; |
public class JournalImpl { /** * Writes the send to the journal . The queryRef values are not
* saved , because restoring them does not make sense . */
@ Override public void writeSend ( StubAmp actor , String methodName , Object [ ] args , InboxAmp inbox ) { } } | try ( OutputStream os = openItem ( inbox ) ) { // XXX : should keep open
try ( OutH3 out = _serializer . out ( os ) ) { String key = actor . journalKey ( ) ; out . writeLong ( CODE_SEND ) ; out . writeString ( key ) ; out . writeString ( methodName ) ; out . writeLong ( args . length ) ; for ( Object arg : args ) { out... |
public class CommerceAccountUserRelUtil { /** * Returns the last commerce account user rel in the ordered set where commerceAccountId = & # 63 ; .
* @ param commerceAccountId the commerce account ID
* @ param orderByComparator the comparator to order the set by ( optionally < code > null < / code > )
* @ return t... | return getPersistence ( ) . fetchByCommerceAccountId_Last ( commerceAccountId , orderByComparator ) ; |
public class PsLinkedin { /** * Make identity from JSON object .
* @ param json JSON received from Github
* @ return Identity found */
private static Identity parse ( final JsonObject json ) { } } | final String fname = "firstName" ; final String lname = "lastName" ; final String unknown = "?" ; final Map < String , String > props = new HashMap < > ( json . size ( ) ) ; props . put ( fname , json . getString ( fname , unknown ) ) ; props . put ( lname , json . getString ( lname , unknown ) ) ; return new Identity ... |
public class DelimitedInputFormat { /** * Opens the given input split . This method opens the input stream to the specified file , allocates read buffers
* and positions the stream at the correct position , making sure that any partial record at the beginning is skipped .
* @ param split The input split to open .
... | super . open ( split ) ; this . bufferSize = this . bufferSize <= 0 ? DEFAULT_READ_BUFFER_SIZE : this . bufferSize ; if ( this . readBuffer == null || this . readBuffer . length != this . bufferSize ) { this . readBuffer = new byte [ this . bufferSize ] ; } if ( this . wrapBuffer == null || this . wrapBuffer . length <... |
public class PriorityBlockingQueue { /** * Inserts item x at position k , maintaining heap invariant by
* demoting x down the tree repeatedly until it is less than or
* equal to its children or is a leaf .
* @ param k the position to fill
* @ param x the item to insert
* @ param array the heap array
* @ par... | if ( n > 0 ) { Comparable < ? super T > key = ( Comparable < ? super T > ) x ; int half = n >>> 1 ; // loop while a non - leaf
while ( k < half ) { int child = ( k << 1 ) + 1 ; // assume left child is least
Object c = array [ child ] ; int right = child + 1 ; if ( right < n && ( ( Comparable < ? super T > ) c ) . compa... |
public class NameSpaceBinderImpl { /** * This method is provided for tWas and is not used for Liberty .
* Just return the bindingObject for now . */
@ Override public EJBBinding createJavaBindingObject ( HomeRecord hr , HomeWrapperSet homeSet , String interfaceName , int interfaceIndex , boolean local , EJBBinding bi... | return bindingObject ; |
public class JBBPMapper { /** * Set a value to a field of a class instance . Can ' t be used for static
* fields !
* @ param classInstance a class instance
* @ param classField a mapping class field which should be set by the value ,
* must not be null
* @ param binField a parsed bin field which value will be... | try { classField . set ( classInstance , value ) ; } catch ( IllegalArgumentException ex ) { throw new JBBPMapperException ( "Can't set value to a mapping field" , binField , classInstance . getClass ( ) , classField , ex ) ; } catch ( IllegalAccessException ex ) { throw new JBBPMapperException ( "Can't get access to a... |
public class ParameterReplacer { /** * - - - - - JDBC 2.0 - - - - - */
public void registerOutParameter ( int parameterIndex , int sqlType , String typeName ) { } } | record ( parameterIndex , getDeclaredMethod ( CallableStatement . class , "registerOutParameter" , int . class , int . class , int . class ) , parameterIndex , sqlType , typeName ) ; |
public class TopicTemplate { /** * Create a topic definition from this template */
public TopicDefinition createTopicDefinition ( String topicName , boolean temporary ) { } } | TopicDefinition def = new TopicDefinition ( ) ; def . setName ( topicName ) ; def . setTemporary ( temporary ) ; copyAttributesTo ( def ) ; def . setSubscriberFailurePolicy ( subscriberFailurePolicy ) ; def . setSubscriberOverflowPolicy ( subscriberOverflowPolicy ) ; def . setPartitionsKeysToIndex ( partitionsKeysToInd... |
public class StringUtils { /** * Encodes an array of bytes as String representation of hexadecimal .
* @ param bytes an array of bytes to convert to a hex string .
* @ return generated hex string . */
public static String encodeHex ( byte [ ] bytes ) { } } | char [ ] hexChars = new char [ bytes . length * 2 ] ; for ( int j = 0 ; j < bytes . length ; j ++ ) { int v = bytes [ j ] & 0xFF ; hexChars [ j * 2 ] = HEX_CHARS [ v >>> 4 ] ; hexChars [ j * 2 + 1 ] = HEX_CHARS [ v & 0x0F ] ; } return new String ( hexChars ) ; |
public class Ifc4PackageImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ Override public EClass getIfcDimensionalExponents ( ) { } } | if ( ifcDimensionalExponentsEClass == null ) { ifcDimensionalExponentsEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( Ifc4Package . eNS_URI ) . getEClassifiers ( ) . get ( 174 ) ; } return ifcDimensionalExponentsEClass ; |
public class DocumentQuery { /** * TBD expr public IDocumentQuery < T > WhereGreaterThanOrEqual < TValue > ( Expression < Func < T , TValue > > propertySelector , TValue value , bool exact = false ) */
public IDocumentQuery < T > whereLessThan ( String fieldName , Object value ) { } } | return whereLessThan ( fieldName , value , false ) ; |
public class AIStream { /** * Insert a get request at tick t . Every tick from latestTick + 1 to t - 1 is set to rejected . In general ,
* trying to insert the tick could be denied because there may be a previous L / R in the stream
* that needs to turn to L / D . However , in the latest design the RME does not rej... | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "insertRequest" , new Object [ ] { rt , Long . valueOf ( tick ) , Long . valueOf ( timeout ) } ) ; long rejectStart = _latestTick + 1 ; if ( rejectStart < tick ) { // Notice that the ticks have recovery = false , but the req... |
public class ManagedInstanceTdeCertificatesInner { /** * Creates a TDE certificate for a given server .
* @ 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 managedInstanceName The name of the ... | return ServiceFuture . fromResponse ( beginCreateWithServiceResponseAsync ( resourceGroupName , managedInstanceName , parameters ) , serviceCallback ) ; |
public class StorageAccountCredentialsInner { /** * Creates or updates the storage account credential .
* @ param deviceName The device name .
* @ param name The storage account credential name .
* @ param resourceGroupName The resource group name .
* @ param storageAccountCredential The storage account credent... | return createOrUpdateWithServiceResponseAsync ( deviceName , name , resourceGroupName , storageAccountCredential ) . toBlocking ( ) . last ( ) . body ( ) ; |
public class XRTreeFragSelectWrapper { /** * For support of literal objects in xpaths .
* @ param xctxt The XPath execution context .
* @ return the result of executing the select expression
* @ throws javax . xml . transform . TransformerException */
public XObject execute ( XPathContext xctxt ) throws javax . x... | XObject m_selected ; m_selected = ( ( Expression ) m_obj ) . execute ( xctxt ) ; m_selected . allowDetachToRelease ( m_allowRelease ) ; if ( m_selected . getType ( ) == CLASS_STRING ) return m_selected ; else return new XString ( m_selected . str ( ) ) ; |
public class ToDoubleBiFunctions { /** * Composes the given functions
* @ param < T > The first argument type
* @ param < U > The second argument type
* @ param < R > The first result type
* @ param biFunction The { @ link BiFunction }
* @ param function The { @ link ToDoubleFunction }
* @ return The result... | return ( x , y ) -> function . applyAsDouble ( biFunction . apply ( x , y ) ) ; |
public class AlipayLogger { /** * 通讯错误日志 */
private static void _logCommError ( Exception e , HttpURLConnection conn , String url , String appKey , String method , Map < String , String > params ) { } } | DateFormat df = new SimpleDateFormat ( AlipayConstants . DATE_TIME_FORMAT ) ; df . setTimeZone ( TimeZone . getTimeZone ( AlipayConstants . DATE_TIMEZONE ) ) ; String sdkName = AlipayConstants . SDK_VERSION ; String urlStr = null ; String rspCode = "" ; if ( conn != null ) { try { urlStr = conn . getURL ( ) . toString ... |
public class MazeDecoratorImplementation { /** * Calculate the number of cells on the shortest path between ( x1 , z1 ) and ( x2 , z2)
* @ param x1
* @ param z1
* @ param x2
* @ param z2
* @ param bAllowDiags Whether the cells are 8 - connected or 4 - connected .
* @ return The number of cells on the shorte... | // Total cells is the sum of the distances we need to travel along the x and the z axes , plus one for the end cell .
int w = Math . abs ( x2 - x1 ) ; int h = Math . abs ( z2 - z1 ) ; if ( bAllowDiags ) { // Diagonal movement allows us ignore the shorter of w and h :
if ( w < h ) w = 0 ; else h = 0 ; } return w + h + 1... |
public class Pattern4 { /** * Creates a pattern that matches when all four observable sequences have an available element .
* @ param other
* Observable sequence to match with the three previous sequences .
* @ return Pattern object that matches when all observable sequences have an available element . */
public ... | if ( other == null ) { throw new NullPointerException ( ) ; } return new Pattern5 < T1 , T2 , T3 , T4 , T5 > ( o1 , o2 , o3 , o4 , other ) ; |
public class Alignments { /** * Factory method which constructs a pairwise sequence aligner .
* @ param < S > each { @ link Sequence } of an alignment pair is of type S
* @ param < C > each element of an { @ link AlignedSequence } is a { @ link Compound } of type C
* @ param query the first { @ link Sequence } to... | if ( ! query . getCompoundSet ( ) . equals ( target . getCompoundSet ( ) ) ) { throw new IllegalArgumentException ( "Sequence compound sets must be the same" ) ; } switch ( type ) { default : case GLOBAL : return new NeedlemanWunsch < S , C > ( query , target , gapPenalty , subMatrix ) ; case LOCAL : return new SmithWa... |
public class Base64Coder { /** * Encodes a byte array into Base64 format .
* No blanks or line breaks are inserted .
* @ param in an array containing the data bytes to be encoded .
* @ param ilen number of bytes to process in < code > in < / code > .
* @ return A character array with the Base64 encoded data . *... | // output length without padding
final int oDataLen = ( ilen * 4 + 2 ) / 3 ; // output length including padding
final int oLen = ( ( ilen + 2 ) / 3 ) * 4 ; final char [ ] out = new char [ oLen ] ; int ip = 0 ; int op = 0 ; while ( ip < ilen ) { final int i0 = in [ ip ++ ] & 0xff ; final int i1 = ip < ilen ? in [ ip ++ ... |
public class ResourceInformation { /** * Converts the given id to a string .
* @ param id id
* @ return stringified id */
public String toIdString ( Object id ) { } } | if ( id == null ) { return null ; } return idStringMapper . toString ( id ) ; |
public class AutomaticTimerBean { /** * F743-506 , F743-14447 RTC109678 */
public ParsedScheduleExpression parseScheduleExpression ( TimerMethodData . AutomaticTimer timer ) { } } | ScheduleExpression schedule = timer . getSchedule ( ) ; String start = timer . getStart ( ) ; String end = timer . getEnd ( ) ; try { if ( start != null ) { schedule . start ( parseXSDDateTime ( "start" , start ) ) ; } if ( end != null ) { schedule . end ( parseXSDDateTime ( "end" , end ) ) ; } return ScheduleExpressio... |
public class StringPickerDialogFragment { /** * Create a new instance of that picker dialog
* @ param pickerId The id of the item picker
* @ param title The title for the dialog
* @ param positiveButtonText The text of the positive button
* @ param negativeButtonText The text of the negative button
* @ param ... | StringPickerDialogFragment f = new StringPickerDialogFragment ( ) ; Bundle args = buildCommonArgsBundle ( pickerId , title , positiveButtonText , negativeButtonText , enableMultipleSelection , selectedItemIndices ) ; args . putStringArrayList ( ARG_AVAILABLE_ITEMS , availableItems ) ; f . setArguments ( args ) ; return... |
public class Common { /** * Format a balance to a readable string .
* @ param worldName The world Name associated with this balance
* @ param currency The currency instance associated with this balance .
* @ param balance The balance .
* @ param format the display format to use
* @ return A pretty String show... | StringBuilder string = new StringBuilder ( ) ; if ( worldName != null && ! worldName . equals ( WorldGroupsManager . DEFAULT_GROUP_NAME ) ) { // We put the world name if the conf is true
string . append ( worldName ) . append ( ": " ) ; } if ( currency != null ) { // We removes some cents if it ' s something like 20.20... |
public class AspectJSimulatorAdapterImpl { /** * { @ inheritDoc } */
public Object invoke ( ProceedingJoinPoint pjp , Class < ? extends Object > testClass , boolean useRootRelativePath ) throws Exception { } } | String resource = new StringBuilder ( ) . append ( testClass . getSimpleName ( ) ) . append ( ".class" ) . toString ( ) ; return invoke ( pjp , new File ( testClass . getResource ( resource ) . getPath ( ) ) . getParentFile ( ) . getPath ( ) , useRootRelativePath ) ; |
public class BasicThreadInformation { /** * Format the StackTraceElements .
* @ param sb The StringBuilder .
* @ param trace The stack trace element array to format . */
@ Override public void printStack ( final StringBuilder sb , final StackTraceElement [ ] trace ) { } } | for ( final StackTraceElement element : trace ) { sb . append ( "\tat " ) . append ( element ) . append ( '\n' ) ; } |
public class UserCredentialsFileRepository { /** * Parses a file of credentials
* @ throws IOException Error reading the file */
private void readFile ( ) throws IOException { } } | BufferedReader reader = null ; try { reader = new BufferedReader ( new InputStreamReader ( new FileInputStream ( file ) , PcsUtils . UTF8 ) ) ; LOGGER . debug ( "Reading credentials file {}" , file ) ; String line ; int index = 1 ; while ( ( line = reader . readLine ( ) ) != null ) { line = line . trim ( ) ; if ( line ... |
public class GVRSceneObject { /** * Tests the { @ link GVRSceneObject } s hierarchical bounding volume against
* the specified ray .
* The ray is defined by its origin { @ code [ ox , oy , oz ] } and its direction
* { @ code [ dx , dy , dz ] } .
* The ray origin may be [ 0 , 0 , 0 ] and the direction components... | return NativeSceneObject . rayIntersectsBoundingVolume ( getNative ( ) , ox , oy , oz , dx , dy , dz ) ; |
public class InternalPureXbaseParser { /** * InternalPureXbase . g : 1884:1 : ruleXMultiplicativeExpression returns [ EObject current = null ] : ( this _ XUnaryOperation _ 0 = ruleXUnaryOperation ( ( ( ( ( ) ( ( ruleOpMulti ) ) ) ) = > ( ( ) ( ( ruleOpMulti ) ) ) ) ( ( lv _ rightOperand _ 3_0 = ruleXUnaryOperation ) ) ... | EObject current = null ; EObject this_XUnaryOperation_0 = null ; EObject lv_rightOperand_3_0 = null ; enterRule ( ) ; try { // InternalPureXbase . g : 1890:2 : ( ( this _ XUnaryOperation _ 0 = ruleXUnaryOperation ( ( ( ( ( ) ( ( ruleOpMulti ) ) ) ) = > ( ( ) ( ( ruleOpMulti ) ) ) ) ( ( lv _ rightOperand _ 3_0 = ruleXUn... |
public class rewriteglobal_rewritepolicy_binding { /** * Use this API to fetch a rewriteglobal _ rewritepolicy _ binding resources . */
public static rewriteglobal_rewritepolicy_binding [ ] get ( nitro_service service ) throws Exception { } } | rewriteglobal_rewritepolicy_binding obj = new rewriteglobal_rewritepolicy_binding ( ) ; rewriteglobal_rewritepolicy_binding response [ ] = ( rewriteglobal_rewritepolicy_binding [ ] ) obj . get_resources ( service ) ; return response ; |
public class ManagedDatabaseVulnerabilityAssessmentRuleBaselinesInner { /** * Creates or updates a database ' s vulnerability assessment rule baseline .
* @ 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 .... | return createOrUpdateWithServiceResponseAsync ( resourceGroupName , managedInstanceName , databaseName , ruleId , baselineName , baselineResults ) . toBlocking ( ) . single ( ) . body ( ) ; |
public class DefaultBlitz4jConfig { /** * ( non - Javadoc )
* @ see com . netflix . blitz4j . BlitzConfig # shouldGenerateBlitz4jLocationInfo ( ) */
@ Override public boolean shouldGenerateBlitz4jLocationInfo ( ) { } } | return CONFIGURATION . getBooleanProperty ( GENERATE_BLITZ4J_LOCATIONINFO , Boolean . valueOf ( this . getPropertyValue ( GENERATE_BLITZ4J_LOCATIONINFO , "true" ) ) ) . get ( ) ; |
public class NumericEditText { /** * Return numeric value represented by the text field
* @ return numeric value */
public double getNumericValue ( ) { } } | String original = getText ( ) . toString ( ) . replaceAll ( mNumberFilterRegex , "" ) ; if ( hasCustomDecimalSeparator ) { // swap custom decimal separator with locale one to allow parsing
original = StringUtils . replace ( original , String . valueOf ( mDecimalSeparator ) , String . valueOf ( DECIMAL_SEPARATOR ) ) ; }... |
public class ExtSSInfoImpl { /** * ( non - Javadoc )
* @ see org . restcomm . protocols . ss7 . map . primitives . MAPAsnPrimitive # getTag ( ) */
public int getTag ( ) throws MAPException { } } | if ( forwardingInfo != null ) { return _TAG_forwardingInfo ; } else if ( callBarringInfo != null ) { return _TAG_callBarringInfo ; } else if ( cugInfo != null ) { return _TAG_cugInfo ; } else if ( ssData != null ) { return _TAG_ssData ; } else if ( emlppInfo != null ) { return _TAG_emlppInfo ; } else { throw new MAPExc... |
public class RequestSigning { /** * Signs a set of request parameters .
* Generates additional parameters to represent the timestamp and generated signature .
* Uses the supplied pre - shared secret key to generate the signature .
* @ param params List of NameValuePair instances containing the query parameters fo... | // First , inject a ' timestamp = ' parameter containing the current time in seconds since Jan 1st 1970
params . add ( new BasicNameValuePair ( PARAM_TIMESTAMP , Long . toString ( currentTimeSeconds ) ) ) ; Map < String , String > sortedParams = new TreeMap < > ( ) ; for ( NameValuePair param : params ) { String name =... |
public class MeasureSetType { /** * Gets the value of the measure property .
* This accessor method returns a reference to the live list ,
* not a snapshot . Therefore any modification you make to the
* returned list will be present inside the JAXB object .
* This is why there is not a < CODE > set < / CODE > m... | if ( measure == null ) { measure = new ArrayList < MeasureSetType . Measure > ( ) ; } return this . measure ; |
public class BiLevelCacheMap { /** * This operation is very expensive . A full copy of the Map is created */
public Object remove ( Object key ) { } } | synchronized ( _cacheL2 ) { if ( ! _cacheL1 . containsKey ( key ) && ! _cacheL2 . containsKey ( key ) ) { // nothing to remove
return null ; } Object retval ; Map newMap ; synchronized ( _cacheL1 ) { // " dummy " synchronization to guarantee _ cacheL1 will be assigned after fully initialized
// at least until JVM 1.5 w... |
public class VirtualMachineExtensionImagesInner { /** * Gets a list of virtual machine extension image versions .
* @ param location The name of a supported Azure region .
* @ param publisherName the String value
* @ param type the String value
* @ throws IllegalArgumentException thrown if parameters fail the v... | return listVersionsWithServiceResponseAsync ( location , publisherName , type ) . map ( new Func1 < ServiceResponse < List < VirtualMachineExtensionImageInner > > , List < VirtualMachineExtensionImageInner > > ( ) { @ Override public List < VirtualMachineExtensionImageInner > call ( ServiceResponse < List < VirtualMach... |
public class CommerceShipmentItemPersistenceImpl { /** * Returns all the commerce shipment items .
* @ return the commerce shipment items */
@ Override public List < CommerceShipmentItem > findAll ( ) { } } | return findAll ( QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; |
public class CookieManager { /** * Retrieves and stores cookies returned by the host on the other side of the the open
* java . net . URLConnection .
* The connection MUST have been opened using the connect ( ) method or a IOException will be
* thrown .
* @ param conn a java . net . URLConnection - must be open... | // let ' s determine the domain from where these cookies are being sent
String domain = getDomainFromHost ( conn . getURL ( ) . getHost ( ) ) ; Map < String , Map < String , String > > domainStore ; // this is where we will store cookies for this domain
// now let ' s check the store to see if we have an entry for this... |
public class TaskTagsHandler { /** * Returns the defined priorities .
* @ return the defined priorities . */
public Collection < String > getAvailablePriorities ( ) { } } | // FIXME : l10n
ArrayList < String > priorities = new ArrayList < String > ( ) ; if ( StringUtils . isNotEmpty ( high ) ) { priorities . add ( StringUtils . capitalize ( StringUtils . lowerCase ( Priority . HIGH . name ( ) ) ) ) ; } if ( StringUtils . isNotEmpty ( normal ) ) { priorities . add ( StringUtils . capitaliz... |
public class AssetsInner { /** * List the Asset URLs .
* Lists storage container URLs with shared access signatures ( SAS ) for uploading and downloading Asset content . The signatures are derived from the storage account keys .
* @ param resourceGroupName The name of the resource group within the Azure subscriptio... | if ( this . client . subscriptionId ( ) == null ) { throw new IllegalArgumentException ( "Parameter this.client.subscriptionId() is required and cannot be null." ) ; } if ( resourceGroupName == null ) { throw new IllegalArgumentException ( "Parameter resourceGroupName is required and cannot be null." ) ; } if ( account... |
public class RtfProperty { /** * Set the value of the property identified by the parameter .
* @ param propertyName The property name to set
* @ param propertyValueNew The object to set the property value to
* @ return < code > true < / code > for handled or < code > false < / code > if < code > propertyName < / ... | if ( propertyName == null ) return false ; Object propertyValueOld = getProperty ( propertyName ) ; if ( propertyValueOld instanceof Integer ) { int valueOld = ( ( Integer ) propertyValueOld ) . intValue ( ) ; if ( valueOld == propertyValueNew ) return true ; } beforeChange ( propertyName ) ; properties . put ( propert... |
public class StringContext { /** * Tokenize the given string with the given token . This will return an array
* of strings containing each token delimited by the given value .
* @ param string The string to tokenize
* @ param token The token delimiter to delimit on
* @ return The array of tokens based on the de... | String [ ] result ; try { StringTokenizer st = new StringTokenizer ( string , token ) ; List < String > list = new ArrayList < String > ( ) ; while ( st . hasMoreTokens ( ) ) { list . add ( st . nextToken ( ) ) ; } result = list . toArray ( new String [ list . size ( ) ] ) ; } catch ( Exception e ) { result = null ; } ... |
public class SQLMultiScopeRecoveryLog { /** * This method retrieves a system property named
* com . ibm . ws . recoverylog . custom . jdbc . impl . TransientRetrySleepTime
* which allows a value to be specified for the time we should
* sleep between attempts to get a connection and retry SQL work
* in the face ... | if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "getTransientSQLErrorRetrySleepTime" ) ; Integer transientSqlRetrySleepTime = null ; try { transientSqlRetrySleepTime = AccessController . doPrivileged ( new PrivilegedExceptionAction < Integer > ( ) { @ Override public Integer run ( ) { return Integer . getInteger ( "co... |
public class IntentUtils { /** * Checks whether there are applications installed which are able to handle the given action / type .
* @ param context the current context
* @ param action the action to check
* @ param mimeType the MIME type of the content ( may be null )
* @ return true if there are apps which w... | final Intent intent = new Intent ( action ) ; if ( mimeType != null ) { intent . setType ( mimeType ) ; } List < ResolveInfo > list = context . getPackageManager ( ) . queryIntentActivities ( intent , PackageManager . MATCH_DEFAULT_ONLY ) ; return ! list . isEmpty ( ) ; |
public class SDMath { /** * As per { @ link # eye ( String , int , int , int . . . ) } bit with the number of rows / columns specified as scalar SDVariables ,
* and the batch dimension specified as a 1D SDVariable */
public SDVariable eye ( String name , SDVariable rows , SDVariable cols , SDVariable batchDimension )... | SDVariable eye = new Eye ( sd , rows , cols , batchDimension ) . outputVariable ( ) ; return updateVariableNameAndReference ( eye , name ) ; |
public class AbstractAddStepHandler { /** * Populate the given resource in the persistent configuration model based on the values in the given operation .
* This method is invoked during { @ link org . jboss . as . controller . OperationContext . Stage # MODEL } .
* This default implementation simply calls { @ link... | populateModel ( operation , resource . getModel ( ) ) ; |
public class XStringForFSB { /** * Copies characters from this string into the destination character
* array .
* @ param srcBegin index of the first character in the string
* to copy .
* @ param srcEnd index after the last character in the string
* to copy .
* @ param dst the destination array .
* @ param... | // % OPT % Need to call this on FSB when it is implemented .
// % UNTESTED % ( I don ' t think anyone calls this yet ? )
int n = srcEnd - srcBegin ; if ( n > m_length ) n = m_length ; if ( n > ( dst . length - dstBegin ) ) n = ( dst . length - dstBegin ) ; int end = srcBegin + m_start + n ; int d = dstBegin ; FastStrin... |
public class BTreeDir { /** * Returns the block number of the B - tree leaf block that contains the
* specified search key .
* @ param searchKey
* the search key
* @ param leafFileName
* the file name of the B - tree leaf file
* @ param purpose
* the purpose of searching ( defined in BTreeIndex )
* @ re... | if ( purpose == SearchPurpose . READ ) return searchForRead ( searchKey , leafFileName ) ; else if ( purpose == SearchPurpose . INSERT ) return searchForInsert ( searchKey , leafFileName ) ; else if ( purpose == SearchPurpose . DELETE ) return searchForDelete ( searchKey , leafFileName ) ; else throw new UnsupportedOpe... |
public class OmsJsonFeatureReader { /** * Fast read access mode .
* @ param path the properties file path .
* @ return the read { @ link FeatureCollection } .
* @ throws Exception */
public static SimpleFeatureCollection readJsonfile ( String path ) throws Exception { } } | OmsJsonFeatureReader reader = new OmsJsonFeatureReader ( ) ; reader . file = path ; reader . readFeatureCollection ( ) ; return reader . geodata ; |
public class NumericNameLexer { /** * Check if the next token provided by yylex ( ) is null .
* @ return true or false */
public boolean hasNextToken ( ) { } } | if ( this . nextToken == null ) { try { this . nextToken = this . jlexer . yylex ( ) ; } catch ( final IOException e ) { // TODO Auto - generated catch block
e . printStackTrace ( ) ; } } return this . nextToken != null ; |
public class IIMFile { /** * Checks all data sets in a given record for constraint violations .
* @ param record
* IIM record ( 1,2,3 , . . . ) to check
* @ return list of constraint violations , empty set if IIM file is valid */
public Set < ConstraintViolation > validate ( int record ) { } } | Set < ConstraintViolation > errors = new LinkedHashSet < ConstraintViolation > ( ) ; for ( int ds = 0 ; ds < 250 ; ++ ds ) { try { DataSetInfo dataSetInfo = dsiFactory . create ( IIM . DS ( record , ds ) ) ; errors . addAll ( validate ( dataSetInfo ) ) ; } catch ( InvalidDataSetException ignored ) { // DataSetFactory d... |
public class ApiOvhEmaildomain { /** * Get this object properties
* REST : GET / email / domain / { domain } / task / mailinglist / { id }
* @ param domain [ required ] Name of your domain name
* @ param id [ required ] */
public OvhTaskMl domain_task_mailinglist_id_GET ( String domain , Long id ) throws IOExcept... | String qPath = "/email/domain/{domain}/task/mailinglist/{id}" ; StringBuilder sb = path ( qPath , domain , id ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , OvhTaskMl . class ) ; |
public class nsevents { /** * Use this API to fetch all the nsevents resources that are configured on netscaler . */
public static nsevents [ ] get ( nitro_service service , options option ) throws Exception { } } | nsevents obj = new nsevents ( ) ; nsevents [ ] response = ( nsevents [ ] ) obj . get_resources ( service , option ) ; return response ; |
public class CalligraphyUtils { /** * Tries to pull the Font Path from the Text Appearance .
* @ param context Activity Context
* @ param attrs View Attributes
* @ param attributeId if - 1 returns null .
* @ return returns null if attribute is not defined or if no TextAppearance is found . */
static String pull... | if ( attributeId == null || attrs == null ) { return null ; } int textAppearanceId = - 1 ; final TypedArray typedArrayAttr = context . obtainStyledAttributes ( attrs , ANDROID_ATTR_TEXT_APPEARANCE ) ; if ( typedArrayAttr != null ) { try { textAppearanceId = typedArrayAttr . getResourceId ( 0 , - 1 ) ; } catch ( Excepti... |
public class CmsDateBox { /** * Returns the value of the date box as String in form of a long . < p >
* @ see org . opencms . gwt . client . ui . input . I _ CmsFormWidget # getFormValueAsString ( ) */
public String getFormValueAsString ( ) { } } | Date value = getValue ( ) ; if ( value == null ) { return "" ; } else if ( allowInvalidValue ( ) && value . equals ( INVALID_DATE ) ) { return "INVALID_DATE" ; } return String . valueOf ( getValue ( ) . getTime ( ) ) ; |
public class SchemaGeneratorHelper { /** * We support the basic types as directive types
* @ param value the value to use
* @ return a graphql input type */
public GraphQLInputType buildDirectiveInputType ( Value value ) { } } | if ( value instanceof NullValue ) { return Scalars . GraphQLString ; } if ( value instanceof FloatValue ) { return Scalars . GraphQLFloat ; } if ( value instanceof StringValue ) { return Scalars . GraphQLString ; } if ( value instanceof IntValue ) { return Scalars . GraphQLInt ; } if ( value instanceof BooleanValue ) {... |
public class BeanId { /** * d145400.1 */
protected static byte [ ] getJ2EENameBytes ( byte [ ] bytes ) throws CSIException { } } | // * * * * Important Note * * * * * : Much of this code was copied to com . ibm . ejs . oa . EJBOAKeyImpl . java
// in ecutils and modified slightly . Changes to this code may also
// require corresponding changes to that code .
boolean isHome = false ; byte [ ] j2eeNameBytes = null ; // Match up the header with the ne... |
public class CmsSessionManager { /** * Returns the OpenCms user session info for the given request ,
* or < code > null < / code > if no user session is available . < p >
* @ param req the current request
* @ return the OpenCms user session info for the given request , or < code > null < / code > if no user sessi... | HttpSession session = req . getSession ( false ) ; if ( session == null ) { // special case for accessing a session from " outside " requests ( e . g . upload applet )
String sessionId = req . getHeader ( CmsRequestUtil . HEADER_JSESSIONID ) ; return sessionId == null ? null : getSessionInfo ( sessionId ) ; } return ge... |
public class CardinalityCompositeSpec { /** * Recursively walk the spec input tree . */
private static List < CardinalitySpec > createChildren ( Map < String , Object > rawSpec ) { } } | List < CardinalitySpec > children = new ArrayList < > ( ) ; Set < String > actualKeys = new HashSet < > ( ) ; for ( String keyString : rawSpec . keySet ( ) ) { Object rawRhs = rawSpec . get ( keyString ) ; CardinalitySpec childSpec ; if ( rawRhs instanceof Map ) { childSpec = new CardinalityCompositeSpec ( keyString , ... |
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link Object } { @ code > }
* @ param value
* Java instance representing xml element ' s value .
* @ return
* the new instance of { @ link JAXBElement } { @ code < } { @ link Object } { @ code > } */
@ XmlElementDecl... | return new JAXBElement < Object > ( __GenericApplicationPropertyOfTexture_QNAME , Object . class , null , value ) ; |
public class SubFileFilter { /** * Called when a change is the record status is about to happen / has happened .
* On an add or lock , makes sure the main key field is set to the current main target field
* so it will be a child of the current main record .
* @ param field If this file change is due to a field , ... | // Read a valid record
int iErrorCode = DBConstants . NORMAL_RETURN ; switch ( iChangeType ) { case DBConstants . LOCK_TYPE : if ( this . getMainRecord ( ) != null ) iErrorCode = this . getMainRecord ( ) . handleRecordChange ( this . getMainFileKeyField ( false ) , DBConstants . FIELD_CHANGED_TYPE , bDisplayOption ) ; ... |
public class TileBasedLayerClient { /** * Create a new OSM layer with the given ID and tile configuration . The layer will be configured
* with the default OSM tile services so you don ' t have to specify these URLs yourself .
* @ param id The unique ID of the layer .
* @ param conf The tile configuration .
* @... | OsmLayer layer = new OsmLayer ( id , createOsmTileConfiguration ( nrOfLevels ) ) ; layer . addUrls ( Arrays . asList ( DEFAULT_OSM_URLS ) ) ; return layer ; |
public class GetDocumentationVersionRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( GetDocumentationVersionRequest getDocumentationVersionRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( getDocumentationVersionRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( getDocumentationVersionRequest . getRestApiId ( ) , RESTAPIID_BINDING ) ; protocolMarshaller . marshall ( getDocumentationVersionRequest . getDocumentatio... |
public class PassiveRole { /** * Truncates uncommitted entries from the log . */
private void truncateUncommittedEntries ( ) { } } | if ( role ( ) == RaftServer . Role . PASSIVE ) { final RaftLogWriter writer = raft . getLogWriter ( ) ; writer . truncate ( raft . getCommitIndex ( ) ) ; } |
public class Utils { /** * Creates a { @ link ResourceLocation } from the specified name . < br >
* The name is split on ' : ' to find the modid . < br >
* If the modid is not specified , the current active mod container is used , or " minecraft " if none is found .
* @ param name the name
* @ return the resour... | int index = name . lastIndexOf ( ':' ) ; String res = null ; String modid = null ; if ( index == - 1 ) { ModContainer container = Loader . instance ( ) . activeModContainer ( ) ; modid = container != null ? container . getModId ( ) : "minecraft" ; res = name ; } else { modid = name . substring ( 0 , index ) ; res = nam... |
public class BaseCountdown { /** * get all view width
* @ return all view width */
public int getAllContentWidth ( ) { } } | float width = getAllContentWidthBase ( mTimeTextWidth ) ; if ( ! isConvertDaysToHours && isShowDay ) { if ( isDayLargeNinetyNine ) { Rect rect = new Rect ( ) ; String tempDay = String . valueOf ( mDay ) ; mTimeTextPaint . getTextBounds ( tempDay , 0 , tempDay . length ( ) , rect ) ; mDayTimeTextWidth = rect . width ( )... |
public class WrappedByteBuffer { /** * Set the byte order for this buffer
* @ param o ByteOrder
* @ return the ByteOrder specified
* @ deprecated Will return WrappedByteBuffer in future releases to match java . nio . ByteBuffer */
public ByteOrder order ( ByteOrder o ) { } } | // TODO : In the next release , return WrappedByteBuffer - use return _ buf . order ( o )
_isBigEndian = "BIG_ENDIAN" . equals ( o . toString ( ) ) ; _buf . order ( o ) ; return o ; |
public class DefaultPageBook { /** * Page registration ( internal ) APIs */
public Page serviceAt ( String uri , Class < ? > pageClass ) { } } | // Handle subpaths , registering each as a separate instance of the page
// tuple .
for ( Method method : pageClass . getDeclaredMethods ( ) ) { if ( method . isAnnotationPresent ( At . class ) ) { // This is a subpath expression .
At at = method . getAnnotation ( At . class ) ; String subpath = at . value ( ) ; // Val... |
public class Binder { /** * Specifies the master properties that are part of the binding .
* @ param masters Master properties .
* @ param < MO > Type of value to be read from the master properties .
* @ return DSL object . */
public static < MO > MultipleMasterBinding < MO , Collection < MO > > read ( Collection... | return new MultipleMasterBinding < MO , Collection < MO > > ( masters , null ) ; |
public class TypesafeConfigUtils { /** * Get a configuration as String . Return { @ code null } if missing or wrong type .
* @ param config
* @ param path
* @ return */
public static Optional < String > getStringOptional ( Config config , String path ) { } } | return Optional . ofNullable ( getString ( config , path ) ) ; |
public class RestApiExceptionHandler { /** * TODO - Figure out why this method is not being called */
@ ExceptionHandler ( UnrecognizedPropertyException . class ) public ResponseEntity < ? > handleUnrecognizedProperty ( UnrecognizedPropertyException ex , HttpServletRequest request ) { } } | ErrorResponse response = new ErrorResponse ( ) ; response . addFieldError ( ex . getPropertyName ( ) , ex . getMessage ( ) ) ; return ResponseEntity . status ( HttpStatus . BAD_REQUEST ) . body ( response ) ; |
public class CursorUtils { /** * Checks if the column value is null or not .
* @ see android . database . Cursor # isNull ( int ) .
* @ see android . database . Cursor # getColumnIndex ( String ) .
* @ param cursor the cursor .
* @ param columnName the column name .
* @ return true if the column value is null... | return cursor != null && cursor . isNull ( cursor . getColumnIndex ( columnName ) ) ; |
public class MockServletContext { /** * ( non - Javadoc )
* @ see javax . servlet . ServletContext # getResourceAsStream ( java . lang . String ) */
public InputStream getResourceAsStream ( String path ) { } } | path = path . replace ( '/' , File . separatorChar ) ; InputStream is = null ; try { is = new FileInputStream ( new File ( baseDir , path ) ) ; } catch ( FileNotFoundException e ) { logger . info ( "File for path : '" + path + "' not found using baseDir '" + baseDir + "'" ) ; } return is ; |
public class StreamExecutionEnvironment { /** * Creates a new data stream that contains the strings received infinitely from a socket . Received strings are
* decoded by the system ' s default character set . On the termination of the socket server connection retries can be
* initiated .
* < p > Let us note that ... | return socketTextStream ( hostname , port , String . valueOf ( delimiter ) , maxRetry ) ; |
public class TransitionsConfig { /** * Import all tiles from their nodes .
* @ param nodesTileRef The tiles nodes ( must not be < code > null < / code > ) .
* @ return The imported tiles ref . */
private static Collection < TileRef > importTiles ( Collection < Xml > nodesTileRef ) { } } | final Collection < TileRef > tilesRef = new HashSet < > ( nodesTileRef . size ( ) ) ; for ( final Xml nodeTileRef : nodesTileRef ) { final TileRef tileRef = TileConfig . imports ( nodeTileRef ) ; tilesRef . add ( tileRef ) ; } return tilesRef ; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.