text
stringlengths
63
450k
public byte [ ] digest ( ) { byte [ ] b ; b = digest . digest ( ) ; if ( log . level >= 5 ) { log . println ( "digest: " ) ; Hexdump . hexdump ( log , b , 0 , b . length ) ; log . flush ( ) ; } updates = 0 ; return b ; }
@ Override public CmsMenuItemVisibilityMode getVisibility ( I_CmsDialogContext context ) { if ( ! ( context instanceof I_CmsEditPropertyContext ) || ! ( ( I_CmsEditPropertyContext ) context ) . isPropertyEditable ( m_propertyId ) ) { return CmsMenuItemVisibilityMode . VISIBILITY_INVISIBLE ; } else { return getVisibility ( context . getCms ( ) , context . getResources ( ) ) ; } }
static float vDist ( float [ ] v1 , float [ ] v2 ) { float dx = v2 [ 0 ] - v1 [ 0 ] ; float dy = v2 [ 1 ] - v1 [ 1 ] ; float dz = v2 [ 2 ] - v1 [ 2 ] ; return ( float ) Math . sqrt ( dx * dx + dy * dy + dz * dz ) ; }
public static TYPE_1 < TYPE_2 > METHOD_1 ( String VAR_1 , TYPE_3 VAR_2 , TYPE_4 < ? > VAR_3 ) { TYPE_5 < TYPE_6 > VAR_4 = null ; TYPE_5 < TYPE_7 > VAR_5 = null ; TYPE_5 < TYPE_8 > VAR_6 = null ; for ( final TYPE_3 VAR_7 : VAR_3 ) { boolean VAR_8 = false ; if ( VAR_7 instanceof TYPE_6 ) { if ( VAR_4 == null ) { VAR_4 = TYPE_9 . METHOD_2 ( ) ; } VAR_4 . add ( ( TYPE_6 ) VAR_7 ) ; VAR_8 = true ; } if ( VAR_7 instanceof TYPE_7 ) { if ( VAR_5 == null ) { VAR_5 = TYPE_9 . METHOD_2 ( ) ; } VAR_5 . add ( ( TYPE_7 ) VAR_7 ) ; VAR_8 = true ; } if ( VAR_7 instanceof TYPE_8 ) { if ( VAR_6 == null ) { VAR_6 = TYPE_9 . METHOD_2 ( ) ; } VAR_6 . add ( ( TYPE_8 ) VAR_7 ) ; VAR_8 = true ; } if ( ! VAR_8 ) { throw new TYPE_10 ( VAR_7 . getClass ( ) . getName ( ) + STRING_1 ) ; } } final TYPE_1 < TYPE_6 > VAR_9 = VAR_4 != null ? VAR_4 . build ( ) : TYPE_9 . METHOD_3 ( ) ; final TYPE_1 < TYPE_7 > VAR_10 = VAR_5 != null ? VAR_5 . build ( ) : TYPE_9 . METHOD_3 ( ) ; final TYPE_1 < TYPE_8 > VAR_11 = VAR_6 != null ? VAR_6 . build ( ) : TYPE_9 . METHOD_3 ( ) ; final TYPE_1 < TYPE_11 > VAR_12 = METHOD_4 ( VAR_2 ) ; return VAR_12 . METHOD_5 ( ) . METHOD_6 ( ( TYPE_11 method ) - > METHOD_7 ( VAR_1 , VAR_2 , method , VAR_9 , VAR_10 , VAR_11 ) ) . METHOD_8 ( METHOD_9 ( ) ) ; }
protected Component parseRangeExpr ( TokenStream tokens ) { Component result = parseAdditiveExpr ( tokens ) ; if ( tokens . matches ( "to" ) ) { throw new ParsingException ( tokens . nextPosition ( ) , "XPath range expressions with 'to' are not supported" ) ; } return result ; }
ANNOTATION_1 public TYPE_1 METHOD_1 ( TYPE_2 VAR_1 ) throws TYPE_3 { TYPE_4 VAR_2 = VAR_1 . METHOD_2 ( ) ; String value ; if ( VAR_3 . equals ( STRING_1 ) ) { value = VAR_2 . METHOD_3 ( ) ; } else { value = VAR_2 . METHOD_4 ( VAR_3 ) ; } TYPE_5 VAR_4 = null ; if ( TYPE_6 . METHOD_5 ( value ) ) { VAR_4 = TYPE_7 . METHOD_6 ( value ) ; } if ( VAR_4 == null ) { VAR_4 = TYPE_7 . METHOD_6 ( STRING_2 ) ; if ( VAR_4 == null ) { throw new TYPE_8 ( STRING_3 + value + STRING_4 ) ; } } return VAR_4 . METHOD_1 ( VAR_1 ) ; }
@ Override public Date deserialize ( final JsonParser jp , final DeserializationContext ctxt ) throws IOException { final String valueAsString = jp . getValueAsString ( ) ; if ( valueAsString != null && valueAsString . length ( ) > 0 ) { for ( final SimpleDateFormat format : DATE_FORMATS ) { try { return format . parse ( valueAsString ) ; } catch ( final ParseException e ) { // Ignore, and try the next format. } } throw new JsonParseException ( jp , "Date-time unparseable: \"" + valueAsString + "\"." , jp . getCurrentLocation ( ) ) ; } return null ; }
MappingRecord getMappingFromPrefix ( String prefix ) { final Stack stack = ( Stack ) m_namespaces . get ( prefix ) ; return stack != null && ! stack . isEmpty ( ) ? ( ( MappingRecord ) stack . peek ( ) ) : null ; }
@ Override public Object getPropertyValue ( PropertyInfo propInfo ) { PropertyInfoEx propInfoEx = ( PropertyInfoEx ) propInfo ; List < String > val = new ArrayList < String > ( ) ; propertyService . fetchValue ( toProperty ( propInfoEx ) , val ) ; return val . isEmpty ( ) ? null : propInfoEx . fromSource ( val . get ( 0 ) ) ; }
private static ArrayFilters parse ( List < Document > arrayFilters , Document updateQuery ) { Map < String , Object > arrayFilterMap = new LinkedHashMap <> ( ) ; for ( Document arrayFilter : arrayFilters ) { if ( arrayFilter . isEmpty ( ) ) { throw new FailedToParseException ( "Cannot use an expression without a top-level field name in arrayFilters" ) ; } if ( arrayFilter . size ( ) > 1 ) { List < String > keys = new ArrayList <> ( arrayFilter . keySet ( ) ) ; throw new FailedToParseException ( "Error parsing array filter :: caused by ::" + " Expected a single top-level field name, found '" + keys . get ( 0 ) + "' and '" + keys . get ( 1 ) + "'" ) ; } Entry < String , Object > entry = arrayFilter . entrySet ( ) . iterator ( ) . next ( ) ; List < String > pathFragments = splitPath ( entry . getKey ( ) ) ; String identifier = pathFragments . get ( 0 ) ; if ( ! identifier . matches ( "^[a-zA-Z0-9]+$" ) ) { throw new BadValueException ( "Error parsing array filter :: caused by :: The top-level field name must be an alphanumeric string beginning with a lowercase letter, found '" + identifier + "'" ) ; } Object query = entry . getValue ( ) ; Object filter = createFilter ( pathFragments , query ) ; if ( arrayFilterMap . put ( identifier , filter ) != null ) { throw new FailedToParseException ( "Found multiple array filters with the same top-level field name " + identifier ) ; } } if ( ! arrayFilterMap . isEmpty ( ) ) { validate ( updateQuery , arrayFilterMap ) ; } return new ArrayFilters ( arrayFilterMap ) ; }
public static TYPE_1 METHOD_1 ( String value ) { try { TYPE_1 i = TYPE_1 . METHOD_1 ( value ) ; if ( i < INT_1 && i > - INT_2 ) { return i ; } } catch ( TYPE_2 VAR_1 ) { try { return ( int ) TYPE_3 . METHOD_2 ( TYPE_4 . METHOD_3 ( value ) ) ; } catch ( TYPE_2 VAR_2 ) { ; } } return null ; }
private void selectImports ( ) { while ( ! todo . isEmpty ( ) ) { resolveUsage ( todo . removeLast ( ) ) ; } imports . asMap ( ) . forEach ( ( name , usages ) -> { usages . forEach ( usage -> { resolutions . put ( usage , name ) ; } ) ; } ) ; }
private void METHOD_1 ( final TYPE_1 VAR_1 , final TYPE_2 writer ) { writer . VAR_2 ( STRING_1 ) ; METHOD_2 ( VAR_1 , writer ) ; METHOD_3 ( VAR_1 , writer ) ; writer . VAR_3 ( ) ; }
public static BaasDocument create ( String collection , String id ) { BaasDocument doc = new BaasDocument ( collection ) ; doc . id = id ; return doc ; }
ANNOTATION_1 ( STRING_1 ) public static String METHOD_1 ( final TYPE_1 context ) { String VAR_1 = STRING_2 ; if ( METHOD_2 ( context ) ) { if ( METHOD_3 ( context ) ) { VAR_1 += STRING_3 ; } VAR_1 += STRING_4 ; } return VAR_1 ; }
@ Override public void readData ( ObjectDataInput in ) throws IOException { super . readData ( in ) ; includeValue = in . readBoolean ( ) ; }
private static Criteria addCriteriaForOjbConcreteClasses ( ClassDescriptor cld , Criteria crit ) { /** * 1. check if this class has a ojbConcreteClass attribute */ Criteria concreteClassDiscriminator = null ; Collection classes = getExtentClasses ( cld ) ; /** * 1. create a new Criteria for objConcreteClass */ if ( ! classes . isEmpty ( ) ) { concreteClassDiscriminator = new Criteria ( ) ; if ( classes . size ( ) > 1 ) { concreteClassDiscriminator = new Criteria ( ) ; concreteClassDiscriminator . addIn ( ClassDescriptor . OJB_CONCRETE_CLASS , classes ) ; } else { concreteClassDiscriminator . addEqualTo ( ClassDescriptor . OJB_CONCRETE_CLASS , classes . toArray ( ) [ 0 ] ) ; } } /** * 2. only add the AND (objConcreteClass = "some.class" OR....) if we've actually found concrete * classes. */ if ( concreteClassDiscriminator != null ) { /** * it's possible there is no criteria attached to the query, and in this * case we still have to add the IN/EqualTo criteria for the concrete class type * so check if the crit is null and then create a blank one if needed. */ if ( crit == null ) { crit = new Criteria ( ) ; } crit . addAndCriteria ( concreteClassDiscriminator ) ; } /** * will just return the passed in criteria if no OJB concrete class is attribute is found. */ return crit ; }
public void inlineToDocx ( WordprocessingMLPackage wordPackage , Text text , Object paramValue , Matcher matcher ) { try { R run = ( R ) text . getParent ( ) ; wordPackage . getContentTypeManager ( ) . addDefaultContentType ( "xhtml" , "text/xhtml" ) ; MainDocumentPart mainDocumentPart = wordPackage . getMainDocumentPart ( ) ; mainDocumentPart . addAltChunk ( AltChunkType . Xhtml , paramValue . toString ( ) . getBytes ( ) , run ) ; text . setValue ( "" ) ; } catch ( Exception e ) { throw new ReportFormattingException ( "An error occurred while inserting html to docx file" , e ) ; } }
protected String METHOD_1 ( TYPE_1 VAR_1 ) { if ( VAR_1 == null ) { return VAR_2 ; } final TYPE_2 VAR_3 = METHOD_2 ( ) ; if ( VAR_1 instanceof TYPE_3 ) { return METHOD_3 ( VAR_3 ) ; } else if ( VAR_1 instanceof TYPE_4 ) { return METHOD_4 ( VAR_3 ) ; } else if ( VAR_1 instanceof TYPE_5 ) { return METHOD_5 ( VAR_3 ) ; } else if ( VAR_1 instanceof TYPE_6 . VAR_4 ) { return METHOD_4 ( VAR_3 ) ; } else if ( VAR_1 instanceof TYPE_6 . VAR_5 ) { return METHOD_5 ( VAR_3 ) ; } else if ( VAR_1 instanceof TYPE_7 . VAR_6 ) { return METHOD_3 ( VAR_3 ) ; } else { return VAR_2 ; } }
@ Override public BendableLongScore multiply ( double multiplicand ) { long [ ] newHardScores = new long [ hardScores . length ] ; long [ ] newSoftScores = new long [ softScores . length ] ; for ( int i = 0 ; i < newHardScores . length ; i ++ ) { newHardScores [ i ] = ( long ) Math . floor ( hardScores [ i ] * multiplicand ) ; } for ( int i = 0 ; i < newSoftScores . length ; i ++ ) { newSoftScores [ i ] = ( long ) Math . floor ( softScores [ i ] * multiplicand ) ; } return new BendableLongScore ( ( int ) Math . floor ( initScore * multiplicand ) , newHardScores , newSoftScores ) ; }
public EJSLocalWrapper createWrapper_Local ( BeanId id ) throws CreateException , RemoteException , CSIException { homeEnabled ( ) ; EJSLocalWrapper result = null ; //------------------------------------------------------------------------ // This is the method used by Stateless and Message home create methods // to check and see if their singleton wrapper is already registered. //------------------------------------------------------------------------ // If the wrapper has been created, and is still in the wrapper cache, // then just return the local wrapper from the singleton WrapperCommon. // Note that 'inCache' will 'touch' the wrapper in the Wrapper Cache, // updating the LRU data. d196581.1 if ( ivStatelessWrappers != null && ivStatelessWrappers . inCache ( ) ) { result = ( EJSLocalWrapper ) ivStatelessWrappers . getLocalObject ( ) ; } else { // The singleton wrapper has either not been created yet, or is not // currently in the wrapper cache. So, getting it from the Wrapper // Manager will cause it to be created (if needed) and faulted into // the Wrapper Cache. d196581.1 // Use a cached instance beanId... for stateless and message beans all // instances have the same id. d140003.26 if ( statelessSessionHome || messageDrivenHome ) { // Since this is is one of the home types with a singleton wrapper, // then set the local cached value now that it has been created // and inserted into the Wrapper Cache. It cannot be cached // locally until inserted into the Wrapper Cache, as the insert // updates the wrapper with a reference to the bucket. d233983 ivStatelessWrappers = wrapperManager . getWrapper ( ivStatelessId ) ; result = ( EJSLocalWrapper ) ivStatelessWrappers . getLocalObject ( ) ; } } return result ; }
public void writeTo ( com . google . protobuf . CodedOutputStream output ) throws java . io . IOException { if ( ! getAllocatorNameBytes ( ) . isEmpty ( ) ) { com . google . protobuf . GeneratedMessageV3 . writeString ( output , 1 , allocatorName_ ) ; } if ( totalBytes_ != 0L ) { output . writeInt64 ( 2 , totalBytes_ ) ; } if ( peakBytes_ != 0L ) { output . writeInt64 ( 3 , peakBytes_ ) ; } }
public String getURMapOutputPropertyInRealm ( String outputProperty ) { Object propMapping = get ( outputProperty ) ; String returnProp = null ; if ( propMapping != null ) returnProp = ( ( String [ ] ) get ( outputProperty ) ) [ 1 ] ; return returnProp ; }
@ Override @ FFDCIgnore ( Exception . class ) public String getUserSecurityName ( String inputUniqueUserId ) throws EntryNotFoundException , RegistryException { HashMap < String , String > result = null ; // New:: Change to Input/Output property try { result = uniqueBridge . getUniqueUserId ( parseUserId ( inputUniqueUserId ) ) ; String returnValue = result . get ( "RESULT" ) ; if ( ! inputUniqueUserId . equalsIgnoreCase ( returnValue ) ) { inputUniqueUserId = returnValue ; } } catch ( Exception excp ) { /* Ignore and assume that inputUniqueUserId really is the uniqueUserId. */ } try { // bridge the APIs String id = inputUniqueUserId ; if ( id . startsWith ( "user:" ) || id . startsWith ( "group:" ) ) { // New method added as an alternative of getUserFromUniqueId method of WSSecurityPropagationHelper id = getUserFromUniqueID ( id ) ; } return securityBridge . getUserSecurityName ( id ) ; } catch ( Exception excp ) { if ( excp instanceof EntryNotFoundException ) throw ( EntryNotFoundException ) excp ; else throw new RegistryException ( excp . getMessage ( ) , excp ) ; } }
@ BetaApi ( "The surface for long-running operations is not stable yet and may change in the future." ) public final OperationFuture < Empty , OperationMetadata > deleteInstanceAsync ( String name ) { DeleteInstanceRequest request = DeleteInstanceRequest . newBuilder ( ) . setName ( name ) . build ( ) ; return deleteInstanceAsync ( request ) ; }
public void METHOD_1 ( String VAR_1 ) { TYPE_1 . METHOD_2 ( VAR_1 , STRING_1 ) ; TYPE_2 info = METHOD_3 ( VAR_1 ) ; if ( info != null ) { info . VAR_2 ( ) ; } }
ANNOTATION_1 public TYPE_1 METHOD_1 ( ) { if ( VAR_1 == null ) { VAR_1 = new TYPE_2 ( ) ; } else { VAR_1 . append ( STRING_1 ) ; } return new TYPE_3 ( VAR_1 ) ; }
ANNOTATION_1 ( method = VAR_1 . VAR_2 ) public TYPE_1 METHOD_1 ( final TYPE_2 VAR_3 ) { final TYPE_3 < String , TYPE_4 > VAR_4 = new TYPE_5 < > ( ) ; final TYPE_6 data = new TYPE_6 ( ) ; final TYPE_7 [ ] VAR_5 = VAR_3 . METHOD_2 ( ) ; if ( VAR_5 != null ) { for ( final TYPE_7 VAR_6 : VAR_5 ) { if ( VAR_6 . getName ( ) . equals ( VAR_7 . VAR_8 ) ) { data . VAR_9 ( VAR_6 . getValue ( ) ) ; } } } VAR_4 . put ( STRING_1 , data ) ; VAR_4 . put ( STRING_2 , METHOD_3 ( ) ) ; return new TYPE_1 ( STRING_3 , VAR_4 ) ; }
public int METHOD_1 ( TYPE_1 VAR_1 , int VAR_2 ) { int VAR_3 , n , VAR_4 , VAR_5 , VAR_6 , VAR_7 ; TYPE_2 VAR_8 ; int VAR_9 , VAR_10 ; VAR_1 . append ( STRING_1 + VAR_11 . VAR_12 [ VAR_13 [ VAR_2 ] ] ) ; int VAR_14 = VAR_11 . VAR_15 [ VAR_13 [ VAR_2 ] ] ; int VAR_16 = VAR_2 ; if ( VAR_14 != VAR_17 . VAR_18 ) { VAR_2 ++ ; switch ( VAR_14 ) { case VAR_17 . VAR_19 : break ; case VAR_17 . VAR_20 : VAR_1 . append ( STRING_2 + VAR_13 [ VAR_2 ] + STRING_3 ) ; VAR_2 += VAR_21 . VAR_20 ; break ; case VAR_17 . VAR_22 : VAR_1 . append ( STRING_2 + VAR_13 [ VAR_2 ] + STRING_3 ) ; VAR_2 += VAR_21 . VAR_22 ; break ; case VAR_17 . VAR_23 : VAR_1 . append ( STRING_4 + VAR_13 [ VAR_2 ] ) ; VAR_2 += VAR_21 . VAR_23 ; break ; case VAR_17 . VAR_24 : VAR_1 . append ( STRING_4 + VAR_13 [ VAR_2 ] ) ; VAR_2 += VAR_21 . VAR_24 ; break ; case VAR_17 . VAR_25 : VAR_1 . append ( STRING_4 + VAR_13 [ VAR_2 ] ) ; VAR_2 += VAR_21 . VAR_25 ; break ; case VAR_17 . VAR_26 : VAR_1 . append ( STRING_4 + VAR_13 [ VAR_2 ] ) ; VAR_2 += VAR_21 . VAR_26 ; break ; } } else { switch ( VAR_13 [ VAR_2 ++ ] ) { case VAR_11 . VAR_27 : case VAR_11 . VAR_28 : case VAR_11 . VAR_29 : METHOD_2 ( VAR_1 , 1 , VAR_2 ++ ) ; break ; case VAR_11 . VAR_30 : METHOD_2 ( VAR_1 , INT_1 , VAR_2 ) ; VAR_2 += INT_1 ; break ; case VAR_11 . VAR_31 : METHOD_2 ( VAR_1 , INT_2 , VAR_2 ) ; VAR_2 += INT_2 ; break ; case VAR_11 . VAR_32 : METHOD_2 ( VAR_1 , INT_3 , VAR_2 ) ; VAR_2 += INT_3 ; break ; case VAR_11 . VAR_33 : METHOD_2 ( VAR_1 , INT_4 , VAR_2 ) ; VAR_2 += INT_4 ; break ; case VAR_11 . VAR_34 : VAR_3 = VAR_13 [ VAR_2 ] ; VAR_2 += VAR_21 . VAR_23 ; if ( VAR_35 . VAR_36 ) { VAR_9 = VAR_13 [ VAR_2 ] ; VAR_2 += VAR_21 . VAR_37 ; VAR_10 = VAR_13 [ VAR_2 ] ; VAR_2 += VAR_21 . VAR_37 ; METHOD_3 ( VAR_1 , VAR_3 , 1 , VAR_38 [ VAR_9 ] , VAR_10 ) ; } else { METHOD_4 ( VAR_1 , VAR_3 , 1 , VAR_2 ) ; VAR_2 += VAR_3 ; } break ; case VAR_11 . VAR_39 : METHOD_2 ( VAR_1 , INT_1 , VAR_2 ) ; VAR_2 += INT_1 ; break ; case VAR_11 . VAR_40 : METHOD_2 ( VAR_1 , INT_3 , VAR_2 ) ; VAR_2 += INT_3 ; break ; case VAR_11 . VAR_41 : METHOD_2 ( VAR_1 , INT_5 , VAR_2 ) ; VAR_2 += INT_5 ; break ; case VAR_11 . VAR_42 : VAR_3 = VAR_13 [ VAR_2 ] ; VAR_2 += VAR_21 . VAR_23 ; if ( VAR_35 . VAR_36 ) { VAR_9 = VAR_13 [ VAR_2 ] ; VAR_2 += VAR_21 . VAR_37 ; VAR_10 = VAR_13 [ VAR_2 ] ; VAR_2 += VAR_21 . VAR_37 ; METHOD_3 ( VAR_1 , VAR_3 , INT_1 , VAR_38 [ VAR_9 ] , VAR_10 ) ; } else { METHOD_4 ( VAR_1 , VAR_3 , INT_1 , VAR_2 ) ; VAR_2 += VAR_3 * INT_1 ; } break ; case VAR_11 . VAR_43 : VAR_3 = VAR_13 [ VAR_2 ] ; VAR_2 += VAR_21 . VAR_23 ; if ( VAR_35 . VAR_36 ) { VAR_9 = VAR_13 [ VAR_2 ] ; VAR_2 += VAR_21 . VAR_37 ; VAR_10 = VAR_13 [ VAR_2 ] ; VAR_2 += VAR_21 . VAR_37 ; METHOD_3 ( VAR_1 , VAR_3 , INT_2 , VAR_38 [ VAR_9 ] , VAR_10 ) ; } else { METHOD_4 ( VAR_1 , VAR_3 , INT_2 , VAR_2 ) ; VAR_2 += VAR_3 * INT_2 ; } break ; case VAR_11 . VAR_44 : int VAR_45 = VAR_13 [ VAR_2 ] ; VAR_2 += VAR_21 . VAR_23 ; VAR_3 = VAR_13 [ VAR_2 ] ; VAR_2 += VAR_21 . VAR_23 ; n = VAR_3 * VAR_45 ; if ( VAR_35 . VAR_36 ) { VAR_9 = VAR_13 [ VAR_2 ] ; VAR_2 += VAR_21 . VAR_37 ; VAR_10 = VAR_13 [ VAR_2 ] ; VAR_2 += VAR_21 . VAR_37 ; VAR_1 . append ( STRING_5 + VAR_45 + STRING_4 + VAR_3 + STRING_4 ) ; while ( n -- > 0 ) VAR_1 . append ( new String ( VAR_38 [ VAR_9 ] , VAR_10 ++ , 1 ) ) ; } else { VAR_1 . append ( STRING_4 + VAR_45 + STRING_4 + VAR_3 + STRING_4 ) ; while ( n -- > 0 ) VAR_1 . append ( new String ( new byte [ ] { ( byte ) VAR_13 [ VAR_2 ++ ] } ) ) ; } break ; case VAR_11 . VAR_46 : case VAR_11 . VAR_47 : final int VAR_48 = INT_5 ; byte [ ] VAR_49 = new byte [ VAR_48 ] ; for ( int i = 0 ; VAR_2 + i < VAR_13 . length && i < VAR_48 ; i ++ ) VAR_49 [ i ] = ( byte ) VAR_13 [ VAR_2 + i ] ; VAR_3 = VAR_50 . length ( VAR_49 , 0 , VAR_48 ) ; METHOD_2 ( VAR_1 , VAR_3 , VAR_2 ) ; VAR_2 += VAR_3 ; break ; case VAR_11 . VAR_51 : case VAR_11 . VAR_52 : VAR_3 = VAR_13 [ VAR_2 ] ; VAR_2 += VAR_21 . VAR_23 ; if ( VAR_35 . VAR_36 ) { VAR_9 = VAR_13 [ VAR_2 ] ; VAR_2 += VAR_21 . VAR_37 ; VAR_10 = VAR_13 [ VAR_2 ] ; VAR_2 += VAR_21 . VAR_37 ; METHOD_3 ( VAR_1 , VAR_3 , 1 , VAR_38 [ VAR_9 ] , VAR_10 ) ; } else { METHOD_4 ( VAR_1 , VAR_3 , 1 , VAR_2 ) ; VAR_2 += VAR_3 ; } break ; case VAR_11 . VAR_53 : VAR_8 = new TYPE_2 ( ) ; TYPE_3 . METHOD_5 ( VAR_13 , VAR_2 , VAR_8 . VAR_54 , 0 , TYPE_2 . VAR_55 ) ; n = VAR_8 . METHOD_6 ( ) ; VAR_2 += TYPE_2 . VAR_55 ; VAR_1 . append ( STRING_4 + n ) ; break ; case VAR_11 . VAR_56 : VAR_8 = new TYPE_2 ( ) ; TYPE_3 . METHOD_5 ( VAR_13 , VAR_2 , VAR_8 . VAR_54 , 0 , TYPE_2 . VAR_55 ) ; n = VAR_8 . METHOD_6 ( ) ; VAR_2 += TYPE_2 . VAR_55 ; VAR_1 . append ( STRING_4 + n ) ; break ; case VAR_11 . VAR_57 : case VAR_11 . VAR_58 : VAR_3 = VAR_13 [ VAR_2 ] ; VAR_2 += VAR_21 . VAR_23 ; VAR_7 = VAR_13 [ VAR_2 ] ; VAR_2 += VAR_3 ; VAR_1 . append ( STRING_4 + VAR_7 + STRING_4 + VAR_3 ) ; break ; case VAR_11 . VAR_59 : case VAR_11 . VAR_60 : VAR_8 = new TYPE_2 ( ) ; TYPE_3 . METHOD_5 ( VAR_13 , VAR_2 , VAR_8 . VAR_54 , 0 , TYPE_2 . VAR_55 ) ; n = VAR_8 . METHOD_6 ( ) ; VAR_2 += TYPE_2 . VAR_55 ; VAR_3 = VAR_13 [ VAR_2 ] ; VAR_2 += VAR_21 . VAR_23 ; VAR_7 = VAR_13 [ VAR_2 ] ; VAR_2 += VAR_3 ; VAR_1 . append ( STRING_4 + n + STRING_4 + VAR_7 + STRING_4 + VAR_3 ) ; break ; case VAR_11 . VAR_61 : VAR_4 = VAR_13 [ VAR_2 ] ; VAR_2 += VAR_21 . VAR_24 ; VAR_1 . append ( STRING_4 + VAR_4 ) ; break ; case VAR_11 . VAR_62 : case VAR_11 . VAR_63 : VAR_1 . append ( STRING_6 ) ; VAR_3 = VAR_13 [ VAR_2 ] ; VAR_2 += VAR_21 . VAR_23 ; for ( int i = 0 ; i < VAR_3 ; i ++ ) { VAR_4 = VAR_13 [ VAR_2 ] ; VAR_2 += VAR_21 . VAR_24 ; if ( i > 0 ) VAR_1 . append ( STRING_7 ) ; VAR_1 . append ( VAR_4 ) ; } break ; case VAR_11 . VAR_64 : { int VAR_65 = VAR_13 [ VAR_2 ] ; VAR_2 += VAR_21 . VAR_25 ; VAR_1 . append ( STRING_4 + VAR_65 ) ; int VAR_66 = VAR_13 [ VAR_2 ] ; VAR_2 += VAR_21 . VAR_23 ; VAR_1 . append ( STRING_4 + VAR_66 ) ; VAR_1 . append ( STRING_6 ) ; VAR_3 = VAR_13 [ VAR_2 ] ; VAR_2 += VAR_21 . VAR_23 ; for ( int i = 0 ; i < VAR_3 ; i ++ ) { VAR_4 = VAR_13 [ VAR_2 ] ; VAR_2 += VAR_21 . VAR_24 ; if ( i > 0 ) VAR_1 . append ( STRING_7 ) ; VAR_1 . append ( VAR_4 ) ; } break ; } case VAR_11 . VAR_67 : case VAR_11 . VAR_68 : VAR_4 = VAR_13 [ VAR_2 ] ; VAR_2 += VAR_21 . VAR_24 ; VAR_5 = VAR_13 [ VAR_2 ] ; VAR_2 += VAR_21 . VAR_20 ; VAR_1 . append ( STRING_4 + VAR_4 + STRING_4 + VAR_5 ) ; break ; case VAR_11 . VAR_69 : case VAR_11 . VAR_70 : VAR_5 = VAR_13 [ VAR_2 ] ; VAR_2 += VAR_21 . VAR_20 ; VAR_1 . append ( STRING_2 + VAR_5 + STRING_3 ) ; METHOD_2 ( VAR_1 , 1 , VAR_2 ) ; VAR_2 ++ ; break ; case VAR_11 . VAR_71 : VAR_3 = VAR_13 [ VAR_2 ] ; VAR_2 += VAR_21 . VAR_23 ; VAR_1 . append ( STRING_4 + VAR_3 ) ; break ; case VAR_11 . VAR_72 : VAR_5 = VAR_13 [ VAR_2 ] ; VAR_2 += VAR_21 . VAR_20 ; VAR_3 = VAR_13 [ VAR_2 ] ; VAR_2 += VAR_21 . VAR_23 ; VAR_1 . append ( STRING_4 + VAR_3 + STRING_2 + VAR_5 + STRING_3 ) ; break ; case VAR_11 . VAR_73 : case VAR_11 . VAR_74 : VAR_6 = VAR_13 [ VAR_2 ] ; VAR_2 += VAR_21 . VAR_75 ; VAR_5 = VAR_13 [ VAR_2 ] ; VAR_2 += VAR_21 . VAR_20 ; VAR_1 . append ( STRING_4 + VAR_6 + STRING_2 + VAR_5 + STRING_3 ) ; break ; case VAR_11 . VAR_76 : VAR_4 = VAR_13 [ VAR_2 ] ; VAR_2 += VAR_21 . VAR_24 ; VAR_5 = VAR_13 [ VAR_2 ] ; VAR_2 += VAR_21 . VAR_20 ; VAR_1 . append ( STRING_4 + VAR_4 + STRING_4 + VAR_5 ) ; break ; default : throw new TYPE_4 ( STRING_8 + VAR_13 [ -- VAR_2 ] ) ; } } VAR_1 . append ( STRING_9 ) ; if ( VAR_35 . VAR_77 ) VAR_1 . append ( STRING_10 + VAR_16 + STRING_11 + ( VAR_2 - VAR_16 ) + STRING_3 ) ; return VAR_2 ; }
@ Override public K lastKey ( ) { Entry < K , V > entry = lastEntry ( ) ; if ( entry == null ) { throw new NoSuchElementException ( ) ; } else { return entry . getKey ( ) ; } }
private void doAddMixin ( NodeTypeData type ) throws NoSuchNodeTypeException , ConstraintViolationException , VersionException , LockException , RepositoryException { // Add both to mixinNodeTypes and to jcr:mixinTypes property // Prepare mixin values InternalQName [ ] mixinTypes = nodeData ( ) . getMixinTypeNames ( ) ; List < InternalQName > newMixin = new ArrayList < InternalQName > ( mixinTypes . length + 1 ) ; List < ValueData > values = new ArrayList < ValueData > ( mixinTypes . length + 1 ) ; for ( int i = 0 ; i < mixinTypes . length ; i ++ ) { InternalQName cn = mixinTypes [ i ] ; newMixin . add ( cn ) ; values . add ( new TransientValueData ( cn ) ) ; } newMixin . add ( type . getName ( ) ) ; values . add ( new TransientValueData ( type . getName ( ) ) ) ; PropertyData prop = ( PropertyData ) dataManager . getItemData ( ( ( NodeData ) getData ( ) ) , new QPathEntry ( Constants . JCR_MIXINTYPES , 0 ) , ItemType . PROPERTY , false ) ; ItemState state ; if ( prop != null ) { // there was mixin prop prop = new TransientPropertyData ( prop . getQPath ( ) , prop . getIdentifier ( ) , prop . getPersistedVersion ( ) , prop . getType ( ) , prop . getParentIdentifier ( ) , prop . isMultiValued ( ) , values ) ; state = ItemState . createUpdatedState ( prop ) ; } else { prop = TransientPropertyData . createPropertyData ( this . nodeData ( ) , Constants . JCR_MIXINTYPES , PropertyType . NAME , true , values ) ; state = ItemState . createAddedState ( prop ) ; } NodeTypeDataManager ntmanager = session . getWorkspace ( ) . getNodeTypesHolder ( ) ; // change ACL for ( PropertyDefinitionData def : ntmanager . getAllPropertyDefinitions ( type . getName ( ) ) ) { if ( ntmanager . isNodeType ( Constants . EXO_OWNEABLE , new InternalQName [ ] { type . getName ( ) } ) && def . getName ( ) . equals ( Constants . EXO_OWNER ) ) { AccessControlList acl = new AccessControlList ( session . getUserID ( ) , ( ( NodeData ) data ) . getACL ( ) . getPermissionEntries ( ) ) ; setACL ( acl ) ; } } updateMixin ( newMixin ) ; dataManager . update ( state , false ) ; // Should register jcr:mixinTypes and autocreated items if node is not added ItemAutocreator itemAutocreator = new ItemAutocreator ( ntmanager , valueFactory , dataManager , false ) ; PlainChangesLog changes = itemAutocreator . makeAutoCreatedItems ( nodeData ( ) , type . getName ( ) , dataManager , session . getUserID ( ) ) ; for ( ItemState autoCreatedState : changes . getAllStates ( ) ) { dataManager . update ( autoCreatedState , false ) ; } // launch event session . getActionHandler ( ) . postAddMixin ( this , type . getName ( ) ) ; if ( LOG . isDebugEnabled ( ) ) { LOG . debug ( "Node.addMixin Property " + prop . getQPath ( ) . getAsString ( ) + " values " + mixinTypes . length ) ; } }
protected TYPE_1 METHOD_1 ( String value ) { if ( value != null && value . trim ( ) . startsWith ( STRING_1 ) ) { METHOD_2 ( ) . info ( String . format ( STRING_2 , VAR_1 , value ) ) ; return TYPE_1 . METHOD_3 ( ) ; } TYPE_2 obj = null ; try { obj = TYPE_3 . METHOD_4 ( value , VAR_1 ) ; } catch ( TYPE_4 VAR_2 ) { } catch ( TYPE_5 VAR_3 ) { String error ; if ( VAR_3 . METHOD_5 ( ) . METHOD_6 ( STRING_3 ) ) { error = STRING_4 ; } else { error = STRING_5 + VAR_3 . METHOD_5 ( ) + STRING_6 ; } String message = String . format ( STRING_7 , VAR_1 , value , error ) ; METHOD_2 ( ) . info ( message ) ; return TYPE_1 . METHOD_3 ( ) ; } if ( obj instanceof TYPE_6 || obj instanceof String || obj instanceof TYPE_7 ) { value = String . VAR_4 ( obj ) ; } else if ( obj instanceof TYPE_8 || obj instanceof TYPE_9 ) { value = TYPE_10 . METHOD_7 ( obj ) ; } else { value = null ; } return VAR_5 . METHOD_8 ( value ) ; }
public static boolean init ( TYPE_1 context , TYPE_2 VAR_1 , TYPE_3 view ) { if ( view == null ) { if ( VAR_2 ) { TYPE_4 . METHOD_1 ( TYPE_5 . class . METHOD_2 ( ) , STRING_1 ) ; } return false ; } TYPE_6 VAR_3 = context . VAR_4 ( ) ; if ( VAR_3 == null ) { if ( VAR_2 ) { TYPE_4 . METHOD_3 ( TYPE_5 . class . METHOD_2 ( ) , STRING_2 ) ; } return false ; } TYPE_7 a = VAR_3 . METHOD_4 ( VAR_1 , VAR_5 . VAR_6 . VAR_7 , 0 , 0 ) ; if ( a == null ) { if ( VAR_2 ) { TYPE_4 . METHOD_3 ( TYPE_5 . class . METHOD_2 ( ) , STRING_3 ) ; } return false ; } try { METHOD_5 ( context , view , a ) ; if ( VAR_8 . VAR_9 . VAR_10 >= VAR_8 . VAR_11 . VAR_12 ) { METHOD_6 ( context , view , a ) ; } } finally { a . VAR_13 ( ) ; } return true ; }
public static String METHOD_1 ( TYPE_1 text ) { final String VAR_1 = METHOD_2 ( METHOD_3 ( text ) ) ; return ( VAR_1 == null || VAR_1 . trim ( ) . isEmpty ( ) ) ? null : VAR_1 ; }
@ Override public Pair < Gradient , INDArray > backpropGradient ( INDArray epsilon , LayerWorkspaceMgr workspaceMgr ) { assertInputSet ( true ) ; INDArray outEpsilon ; try ( MemoryWorkspace ws = workspaceMgr . notifyScopeBorrowed ( ArrayType . ACTIVATION_GRAD ) ) { outEpsilon = Nd4j . sum ( epsilon , 2 ) ; } Gradient gradient = new DefaultGradient ( ) ; return new Pair <> ( gradient , outEpsilon ) ; }
protected void writeSmsFallbackUrl ( final URI smsFallbackUrl , final JsonObject object ) { if ( smsFallbackUrl != null ) { object . addProperty ( "sms_fallback_url" , smsFallbackUrl . toString ( ) ) ; } else { object . add ( "sms_fallback_url" , JsonNull . INSTANCE ) ; } }
public TYPE_1 METHOD_1 ( String VAR_1 ) { VAR_2 . info ( STRING_1 , VAR_1 ) ; String VAR_3 = VAR_4 . METHOD_2 ( VAR_1 ) ; TYPE_1 VAR_5 = new TYPE_1 ( ) ; VAR_5 . METHOD_3 ( VAR_3 ) ; VAR_5 . METHOD_4 ( METHOD_5 ( VAR_3 , VAR_6 ) ) ; VAR_5 . METHOD_6 ( METHOD_7 ( VAR_3 , VAR_6 ) ) ; return VAR_5 ; }
public boolean authenticate ( String userName , String password , PasswordEncrypter pe ) throws Exception { Session session = service . getStorageSession ( ) ; try { return authenticate ( session , userName , password , pe ) ; } finally { session . logout ( ) ; } }
public static List < String > readFromFile ( String fileName ) { final List < String > lines = new ArrayList <> ( ) ; try ( final FileInputStream fstream = new FileInputStream ( new File ( fileName ) ) ; final DataInputStream in = new DataInputStream ( fstream ) ; final InputStreamReader inputStreamReader = new InputStreamReader ( in ) ; final BufferedReader br = new BufferedReader ( inputStreamReader ) ) { String strLine ; StringBuilder aString = new StringBuilder ( ) ; int i = 0 ; boolean youAreInAMultiLineComment = false ; while ( ( strLine = br . readLine ( ) ) != null ) { //ignore multi line comments if ( youAreInAMultiLineComment ) { if ( strLine . contains ( "*/" ) ) { int indx = strLine . indexOf ( "*/" ) ; strLine = strLine . substring ( indx + 2 ) ; youAreInAMultiLineComment = false ; } else { continue ; } } if ( strLine . contains ( "/*" ) ) { int indx = strLine . indexOf ( "/*" ) ; String firstPart = strLine . substring ( 0 , indx ) ; String secondPart = strLine . substring ( indx + 2 ) ; strLine = firstPart ; youAreInAMultiLineComment = true ; if ( secondPart . contains ( "*/" ) ) { //the comment starts and ends in the middle of the line indx = secondPart . indexOf ( "*/" ) ; secondPart = secondPart . substring ( indx + 2 ) ; youAreInAMultiLineComment = false ; strLine += secondPart ; } } //ignore one line comments if ( strLine . contains ( "--" ) ) { int indx = strLine . indexOf ( "--" ) ; strLine = strLine . substring ( 0 , indx ) ; } //ignore empty lines if ( 0 == strLine . length ( ) ) { continue ; } //consider if a SQL statement is separated in different lines. eg, //create table employee( // first varchar(15)); //if a sql command finishes in one line, add in commands if ( strLine . endsWith ( SEMI_COLON ) ) { //get rid of ';',otherwise the operation will fail on Oracle database int indx = strLine . indexOf ( SEMI_COLON , 0 ) ; strLine = strLine . substring ( 0 , indx ) ; //if the command has only one line if ( i == 0 ) { lines . add ( strLine ) ; } //if the command has multiple lines else { aString . append ( strLine ) ; lines . add ( aString . toString ( ) ) ; aString = new StringBuilder ( ) ; i = 0 ; } } else { //if a line doesn't finish with a ';', it means the sql commands is not finished aString . append ( strLine ) . append ( " " ) ; i ++ ; } } } catch ( Exception e ) { e . printStackTrace ( ) ; //todo return Collections . emptyList ( ) ; } return lines ; }
public static TYPE_1 METHOD_1 ( boolean VAR_1 , String VAR_2 , TYPE_2 VAR_3 ) { final TYPE_1 op = METHOD_2 ( VAR_4 , VAR_3 ) ; op . get ( STRING_1 ) . set ( VAR_1 ) ; op . get ( VAR_5 ) . set ( VAR_2 ) ; return op ; }
@ Override protected void onSizeChanged ( int w , int h , int oldw , int oldh ) { super . onSizeChanged ( w , h , oldw , oldh ) ; if ( mProgressBar != null ) { setupProgressBarBounds ( ) ; } }
private void METHOD_1 ( TYPE_1 VAR_1 ) { VAR_2 . info ( STRING_1 + VAR_1 . getName ( ) ) ; TYPE_2 VAR_3 = new TYPE_2 ( ) ; String VAR_4 = TYPE_3 . METHOD_2 ( ) . METHOD_3 ( ) . METHOD_4 ( ) ; VAR_3 . METHOD_5 ( VAR_4 ) ; VAR_3 . METHOD_6 ( VAR_1 . getName ( ) ) ; VAR_3 . METHOD_7 ( VAR_1 . getId ( ) ) ; VAR_3 . METHOD_8 ( VAR_1 . METHOD_9 ( ) ) ; VAR_3 . METHOD_10 ( VAR_1 . METHOD_11 ( ) ) ; VAR_3 . METHOD_12 ( VAR_1 . METHOD_13 ( ) ) ; VAR_3 . METHOD_14 ( VAR_1 . METHOD_15 ( ) ) ; VAR_3 . METHOD_16 ( VAR_1 . METHOD_17 ( ) . METHOD_18 ( ) ) ; VAR_3 . METHOD_19 ( VAR_1 . METHOD_20 ( ) ) ; TYPE_4 < String , TYPE_5 > VAR_5 = VAR_1 . METHOD_21 ( ) ; String VAR_6 = ( String ) VAR_5 . get ( VAR_7 ) ; VAR_3 . METHOD_22 ( ( String ) VAR_5 . get ( VAR_8 ) ) ; VAR_3 . METHOD_23 ( ( String ) VAR_5 . get ( VAR_9 ) ) ; VAR_3 . METHOD_24 ( VAR_6 ) ; VAR_3 . METHOD_25 ( ( String ) VAR_5 . get ( VAR_10 ) ) ; VAR_3 . METHOD_26 ( ( String ) VAR_5 . get ( VAR_11 ) ) ; VAR_3 . METHOD_27 ( ( String ) VAR_5 . get ( VAR_12 ) ) ; if ( VAR_6 != null ) { String VAR_13 = VAR_1 . METHOD_17 ( ) . METHOD_28 ( ) . METHOD_29 ( ) . METHOD_30 ( VAR_6 ) ; VAR_2 . info ( VAR_13 . substring ( 0 , INT_1 ) ) ; VAR_3 . METHOD_31 ( VAR_13 ) ; } else { VAR_2 . info ( STRING_2 ) ; } VAR_14 . METHOD_32 ( VAR_3 ) ; VAR_1 . METHOD_33 ( VAR_15 , VAR_4 ) ; }
public static void multRow ( Matrix A , int i , double c ) { multRow ( A , i , 0 , A . cols ( ) , c ) ; }
@ Override public void setWARClassesContainerData ( String name , Container warClassesContainer ) { this . warClassesContainerData = new ContainerData ( name , warClassesContainer ) ; }
ANNOTATION_1 public TYPE_1 METHOD_1 ( TYPE_2 < TYPE_1 > VAR_1 ) throws TYPE_3 { if ( VAR_1 == null || VAR_1 . isEmpty ( ) ) { throw new TYPE_3 ( STRING_1 ) ; } TYPE_2 < TYPE_4 > VAR_2 = VAR_3 . METHOD_2 ( ) ; TYPE_2 < TYPE_5 > VAR_4 = VAR_3 . METHOD_3 ( ) ; TYPE_2 < String > VAR_5 = METHOD_4 ( VAR_3 . METHOD_5 ( ) . METHOD_6 ( VAR_6 . VAR_7 ) ) ; TYPE_2 < TYPE_1 > VAR_8 = METHOD_7 ( VAR_2 , VAR_4 , VAR_5 ) ; TYPE_2 < TYPE_6 > VAR_9 = new TYPE_7 < TYPE_6 > ( ) ; for ( TYPE_1 VAR_10 : VAR_8 ) { for ( TYPE_1 var : VAR_1 ) { TYPE_4 VAR_11 = var . VAR_12 ( ) ; TYPE_5 VAR_13 = var . VAR_14 ( ) ; String VAR_15 = var . VAR_16 ( ) ; boolean VAR_17 = VAR_11 == null || VAR_10 . METHOD_8 ( ) . METHOD_9 ( VAR_11 ) ; if ( VAR_17 ) { METHOD_10 ( VAR_9 , VAR_6 . VAR_18 ) ; } boolean VAR_19 = VAR_13 == null || METHOD_11 ( VAR_10 . METHOD_12 ( ) , VAR_13 ) ; if ( VAR_19 ) { METHOD_10 ( VAR_9 , VAR_6 . VAR_20 ) ; } boolean VAR_21 = VAR_5 . isEmpty ( ) || VAR_15 == null || METHOD_13 ( VAR_10 . METHOD_14 ( ) , VAR_15 ) ; if ( VAR_21 ) { METHOD_10 ( VAR_9 , VAR_6 . VAR_7 ) ; } if ( VAR_17 && VAR_21 && VAR_19 ) { METHOD_15 ( VAR_9 ) ; return var ; } } } return null ; }
public Counter < L > logProbabilityOf ( Datum < L , F > example ) { if ( example instanceof RVFDatum < ? , ? > ) return logProbabilityOfRVFDatum ( ( RVFDatum < L , F > ) example ) ; Counter < L > scores = scoresOf ( example ) ; Counters . logNormalizeInPlace ( scores ) ; return scores ; }
@ Override public long getMinUsed ( String intervalName ) { long ret = 0L ; for ( MemoryPoolStats s : realStats ) { ret += s . getMinUsed ( intervalName ) ; } return ret ; }
@ Override public List < org . fcrepo . server . types . gen . Datastream > getDatastreams ( String pid , String asOfDateTime , String dsState ) { assertInitialized ( ) ; try { MessageContext ctx = context . getMessageContext ( ) ; org . fcrepo . server . storage . types . Datastream [ ] intDatastreams = m_management . getDatastreams ( ReadOnlyContext . getSoapContext ( ctx ) , pid , DateUtility . parseDateOrNull ( asOfDateTime ) , dsState ) ; return getGenDatastreams ( intDatastreams ) ; } catch ( Throwable th ) { LOG . error ( "Error getting datastreams" , th ) ; throw CXFUtility . getFault ( th ) ; } }
public static TYPE_1 METHOD_1 ( TYPE_2 id , String VAR_1 ) { try { TYPE_1 VAR_2 = new TYPE_1 ( ) ; VAR_2 . put ( STRING_1 , STRING_2 ) ; VAR_2 . put ( STRING_3 , new TYPE_1 ( ) . put ( STRING_4 , id . getId ( ) ) . put ( STRING_5 , VAR_1 ) ) ; return VAR_2 ; } catch ( TYPE_3 VAR_3 ) { throw new TYPE_4 ( VAR_3 ) ; } }
ANNOTATION_1 public void METHOD_1 ( ) { TYPE_1 < TYPE_2 < ? > , TYPE_3 > VAR_1 = METHOD_2 ( METHOD_3 ( ) , STRING_1 ) ; METHOD_4 ( VAR_1 ) ; VAR_2 . remove ( ) ; VAR_3 . remove ( ) ; VAR_4 . METHOD_5 ( STRING_2 ) ; }
ANNOTATION_1 ( "unchecked" ) public TYPE_1 start ( final String VAR_1 , final String VAR_2 , final TYPE_2 VAR_3 , final TYPE_3 VAR_4 ) throws TYPE_4 { VAR_4 . METHOD_1 ( VAR_2 , VAR_3 ) ; String id = VAR_3 . getValue ( "id" ) ; String VAR_5 = VAR_3 . getValue ( STRING_1 ) ; TYPE_5 VAR_6 = ( TYPE_5 ) VAR_4 . getData ( ) ; TYPE_6 < String , TYPE_7 > VAR_7 = ( TYPE_6 < String , TYPE_7 > ) VAR_6 . METHOD_2 ( VAR_8 . VAR_9 ) ; if ( VAR_7 == null ) { VAR_7 = new TYPE_8 < String , TYPE_7 > ( ) ; VAR_6 . METHOD_3 ( VAR_8 . VAR_9 , VAR_7 ) ; } TYPE_7 VAR_10 = new TYPE_7 ( id , VAR_5 ) ; VAR_7 . put ( id , VAR_10 ) ; return VAR_10 ; }
public static TYPE_1 METHOD_1 ( String VAR_1 , String VAR_2 , TYPE_1 VAR_3 , TYPE_2 < String , String > VAR_4 ) throws TYPE_3 { TYPE_4 VAR_5 = TYPE_5 . METHOD_2 ( ) . METHOD_3 ( STRING_1 ) ; try { return VAR_5 . METHOD_4 ( null , VAR_2 , STRING_2 , VAR_1 , VAR_3 , VAR_4 ) ; } catch ( TYPE_6 VAR_6 ) { throw new TYPE_3 ( STRING_3 , VAR_6 ) ; } }
@ Override protected void doGet ( HttpServletRequest req , HttpServletResponse resp ) throws ServletException , IOException { LOG . info ( "GET from address: " + req . getRemoteAddr ( ) ) ; PrintWriter out = resp . getWriter ( ) ; Reconfigurable reconf = getReconfigurable ( req ) ; String nodeName = reconf . getClass ( ) . getCanonicalName ( ) ; printHeader ( out , nodeName ) ; printConf ( out , reconf ) ; printFooter ( out ) ; }
public static IOFileFilter getRegexFileFilter ( String regex ) { // Inner class defining the RegexFileFilter class RegexFileFilter implements IOFileFilter { Pattern pattern ; protected RegexFileFilter ( String re ) { pattern = Pattern . compile ( re ) ; } public boolean accept ( File pathname ) { return pattern . matcher ( pathname . getName ( ) ) . matches ( ) ; } public boolean accept ( File dir , String name ) { return accept ( new File ( dir , name ) ) ; } } return new RegexFileFilter ( regex ) ; }
ANNOTATION_1 public TYPE_1 METHOD_1 ( TYPE_2 . VAR_1 . VAR_2 . VAR_3 VAR_4 ) { if ( ( VAR_5 == null ) || ( VAR_5 . size ( ) == 0 ) ) { return super . METHOD_1 ( VAR_4 ) ; } else { TYPE_3 VAR_6 = new TYPE_3 ( STRING_1 ) ; VAR_6 . append ( METHOD_2 ( ) ) ; if ( METHOD_3 ( ) != null ) { VAR_6 . append ( STRING_2 ) ; VAR_6 . append ( METHOD_3 ( ) ) ; VAR_6 . append ( CHAR_1 ) ; } VAR_6 . append ( CHAR_2 ) ; for ( TYPE_4 item : VAR_5 ) { VAR_6 . append ( item . VAR_7 ( ) ) ; } VAR_6 . append ( STRING_3 ) ; VAR_6 . append ( METHOD_2 ( ) ) ; VAR_6 . append ( CHAR_2 ) ; return VAR_6 . toString ( ) ; } }
public void METHOD_1 ( String VAR_1 , String VAR_2 , String VAR_3 , String VAR_4 ) { if ( TYPE_1 . METHOD_2 ( VAR_1 ) ) { throw new TYPE_2 ( STRING_1 ) ; } if ( TYPE_1 . METHOD_2 ( VAR_2 ) ) { throw new TYPE_2 ( STRING_2 ) ; } if ( TYPE_1 . METHOD_2 ( VAR_3 ) ) { throw new TYPE_2 ( STRING_3 ) ; } if ( TYPE_1 . METHOD_2 ( VAR_4 ) ) { throw new TYPE_2 ( STRING_4 ) ; } if ( VAR_1 . METHOD_3 ( VAR_3 ) && VAR_2 . equals ( VAR_4 ) ) { return ; } TYPE_3 VAR_5 = VAR_6 . getValue ( VAR_1 ) ; if ( VAR_5 != null && VAR_7 . contains ( VAR_5 . METHOD_4 ( ) ) ) { METHOD_5 ( VAR_1 , VAR_2 , STRING_5 , VAR_3 , VAR_1 ) ; } TYPE_3 VAR_8 = VAR_6 . getValue ( VAR_3 ) ; if ( VAR_8 != null && VAR_7 . contains ( VAR_8 . METHOD_4 ( ) ) ) { METHOD_5 ( VAR_1 , VAR_2 , STRING_5 , VAR_3 , VAR_3 ) ; } if ( VAR_9 . METHOD_6 ( TYPE_4 . METHOD_7 ( VAR_1 , VAR_10 . VAR_11 , VAR_2 ) ) ) { METHOD_8 ( VAR_1 , VAR_2 , STRING_5 , STRING_6 ) ; } if ( VAR_9 . METHOD_6 ( TYPE_4 . METHOD_7 ( VAR_1 , VAR_10 . VAR_12 , VAR_2 ) ) ) { METHOD_8 ( VAR_1 , VAR_2 , STRING_5 , STRING_7 ) ; } if ( VAR_9 . METHOD_6 ( TYPE_4 . METHOD_7 ( VAR_3 , VAR_10 . VAR_11 , VAR_4 ) ) ) { METHOD_8 ( VAR_3 , VAR_4 , STRING_5 , STRING_6 ) ; } if ( VAR_9 . METHOD_6 ( TYPE_4 . METHOD_7 ( VAR_3 , VAR_10 . VAR_12 , VAR_4 ) ) ) { METHOD_8 ( VAR_3 , VAR_4 , STRING_5 , STRING_7 ) ; } METHOD_9 ( new TYPE_5 ( VAR_1 , VAR_2 , VAR_3 , VAR_4 , null ) ) ; }
public void setMediaController ( MediaController controller ) { if ( mMediaController != null ) { mMediaController . hide ( ) ; } mMediaController = controller ; attachMediaController ( ) ; }
private void METHOD_1 ( final TYPE_1 VAR_1 , final String name , final TYPE_2 value ) { assert ! ( value instanceof TYPE_3 ) ; final TYPE_1 VAR_2 = new TYPE_1 ( ) ; VAR_2 . name ( name ) ; final TYPE_4 VAR_3 = METHOD_2 ( VAR_2 , value ) ; VAR_1 . METHOD_3 ( VAR_3 ) ; }
ANNOTATION_1 public void METHOD_1 ( String name , TYPE_1 value ) throws TYPE_2 { if ( name . equals ( STRING_1 ) ) this . METHOD_2 ( ) . add ( METHOD_3 ( value ) ) ; else if ( name . equals ( STRING_2 ) ) this . status = new TYPE_3 ( ) . METHOD_4 ( value ) ; else if ( name . equals ( STRING_3 ) ) this . VAR_1 = ( TYPE_4 ) value ; else if ( name . equals ( STRING_4 ) ) this . VAR_2 = METHOD_5 ( value ) ; else if ( name . equals ( STRING_5 ) ) this . VAR_3 = METHOD_5 ( value ) ; else if ( name . equals ( STRING_6 ) ) this . VAR_4 = ( TYPE_4 ) value ; else if ( name . equals ( STRING_7 ) ) this . VAR_5 = METHOD_5 ( value ) ; else if ( name . equals ( STRING_8 ) ) this . VAR_6 = METHOD_5 ( value ) ; else if ( name . equals ( STRING_9 ) ) this . VAR_7 = METHOD_6 ( value ) ; else if ( name . equals ( STRING_10 ) ) this . METHOD_7 ( ) . add ( METHOD_8 ( value ) ) ; else if ( name . equals ( STRING_11 ) ) this . METHOD_9 ( ) . add ( METHOD_8 ( value ) ) ; else if ( name . equals ( STRING_12 ) ) this . METHOD_10 ( ) . add ( METHOD_5 ( value ) ) ; else if ( name . equals ( STRING_13 ) ) this . METHOD_11 ( ) . add ( METHOD_12 ( value ) ) ; else if ( name . equals ( STRING_14 ) ) this . VAR_8 = ( TYPE_5 ) value ; else super . METHOD_1 ( name , value ) ; }
public String removeSystemUnderTest ( Vector < Object > systemUnderTestParams , Vector < Object > repositoryParams ) { try { SystemUnderTest sutToDelete = XmlRpcDataMarshaller . toSystemUnderTest ( systemUnderTestParams ) ; sutToDelete = SystemUnderTest . newInstance ( ( String ) systemUnderTestParams . get ( SUT_NAME_IDX ) ) ; @ SuppressWarnings ( "unchecked" ) Vector < Object > projectParams = ( Vector < Object > ) systemUnderTestParams . get ( SUT_PROJECT_IDX ) ; Project project = Project . newInstance ( ( String ) projectParams . get ( PROJECT_NAME_IDX ) ) ; sutToDelete . setProject ( project ) ; Repository repository = Repository . newInstance ( ( String ) repositoryParams . get ( REPOSITORY_UID_IDX ) ) ; repository . setName ( ( String ) repositoryParams . get ( REPOSITORY_NAME_IDX ) ) ; service . removeSystemUnderTest ( sutToDelete , repository ) ; log . debug ( "Removed SystemUnderTest: " + sutToDelete . getName ( ) ) ; return SUCCESS ; } catch ( Exception e ) { return errorAsString ( e , SUT_DELETE_FAILED ) ; } }
public static TYPE_1 get ( TYPE_2 VAR_1 , String name , int VAR_2 ) { switch ( VAR_2 ) { case TYPE_2 . VAR_3 : return VAR_1 . METHOD_1 ( name + VAR_4 , VAR_2 ) ; case TYPE_2 . VAR_5 : return VAR_1 . METHOD_1 ( name + VAR_6 , VAR_2 ) ; case TYPE_2 . VAR_7 : return get ( VAR_1 . METHOD_2 ( ) , name ) ; case TYPE_2 . VAR_8 : return VAR_1 . METHOD_1 ( name + VAR_9 , VAR_2 ) ; default : throw new TYPE_3 ( STRING_1 ) ; } }
private static XAnnotation findAnnotation ( XtendAnnotationTarget target , JvmType suppressWarningsAnnotation ) { for ( final XAnnotation annotation : target . getAnnotations ( ) ) { if ( Objects . equals ( annotation . getAnnotationType ( ) . getQualifiedName ( ) , suppressWarningsAnnotation . getIdentifier ( ) ) ) { return annotation ; } } return null ; }
@ Override protected Object call ( ) { CacheService cacheService = getService ( CacheService . SERVICE_NAME ) ; CacheContext cacheContext = cacheService . getOrCreateCacheContext ( parameters . name ) ; NearCacheInvalidationListener listener = new NearCacheInvalidationListener ( endpoint , cacheContext , nodeEngine . getLocalMember ( ) . getUuid ( ) , clientMessage . getCorrelationId ( ) ) ; String registrationId = cacheService . addInvalidationListener ( parameters . name , listener , parameters . localOnly ) ; endpoint . addListenerDestroyAction ( CacheService . SERVICE_NAME , parameters . name , registrationId ) ; return registrationId ; }
protected TYPE_1 METHOD_1 ( final TYPE_2 VAR_1 , final TYPE_2 VAR_2 , final TYPE_3 VAR_3 ) { final TYPE_1 item = new TYPE_1 ( ) ; final TYPE_2 title = VAR_2 . METHOD_2 ( STRING_1 , METHOD_3 ( ) ) ; if ( title != null ) { item . VAR_4 ( title . getText ( ) ) ; } final TYPE_2 VAR_5 = VAR_2 . METHOD_2 ( STRING_2 , METHOD_3 ( ) ) ; if ( VAR_5 != null ) { item . VAR_6 ( VAR_5 . getText ( ) ) ; item . VAR_7 ( VAR_5 . getText ( ) ) ; } item . VAR_8 ( METHOD_4 ( VAR_2 , VAR_3 ) ) ; final TYPE_4 < TYPE_2 > VAR_9 = METHOD_5 ( VAR_2 , item , METHOD_3 ( ) ) ; final TYPE_5 < TYPE_2 > iterator = VAR_9 . iterator ( ) ; while ( iterator . VAR_10 ( ) ) { final TYPE_2 element = iterator . VAR_11 ( ) ; final TYPE_6 VAR_12 = element . VAR_13 ( ) ; final String VAR_14 = element . getName ( ) ; if ( METHOD_6 ( ) . equals ( VAR_12 ) && VAR_14 . equals ( STRING_3 ) ) { iterator . remove ( ) ; } } if ( ! VAR_9 . isEmpty ( ) ) { item . VAR_15 ( VAR_9 ) ; } return item ; }
public java . util . List < com . google . cloud . talent . v4beta1 . Tenant > getTenantsList ( ) { return tenants_ ; }
@ SuppressWarnings ( "unchecked" ) @ Override public void subscribe ( String eventName , IGenericEvent < ? > subscriber ) { if ( subscriptions . addSubscriber ( eventName , ( IGenericEvent < Object > ) subscriber ) == 1 ) { hostSubscribe ( eventName , true ) ; } }
public static void METHOD_1 ( final TYPE_1 writer , TYPE_2 VAR_1 ) throws TYPE_3 { TYPE_4 VAR_2 = VAR_1 . METHOD_2 ( ) ; METHOD_3 ( writer , "id" , VAR_2 , TYPE_2 . VAR_3 ) ; METHOD_3 ( writer , STRING_1 , VAR_2 , TYPE_2 . VAR_4 ) ; METHOD_3 ( writer , STRING_2 , VAR_2 , TYPE_2 . VAR_5 ) ; METHOD_3 ( writer , STRING_3 , VAR_2 , TYPE_2 . VAR_6 ) ; METHOD_3 ( writer , STRING_4 , VAR_2 , TYPE_2 . VAR_7 ) ; METHOD_3 ( writer , STRING_5 , VAR_2 , TYPE_2 . VAR_8 ) ; METHOD_3 ( writer , STRING_6 , VAR_2 , TYPE_2 . VAR_9 ) ; METHOD_3 ( writer , STRING_7 , VAR_2 , TYPE_2 . VAR_10 ) ; METHOD_4 ( writer , STRING_8 , VAR_2 , TYPE_2 . VAR_11 ) ; METHOD_4 ( writer , STRING_9 , VAR_2 , TYPE_2 . VAR_12 ) ; METHOD_3 ( writer , STRING_10 , VAR_2 , TYPE_2 . VAR_13 ) ; METHOD_3 ( writer , STRING_11 , VAR_2 , TYPE_2 . VAR_14 ) ; METHOD_3 ( writer , STRING_12 , VAR_2 , TYPE_2 . VAR_15 ) ; METHOD_5 ( writer , VAR_1 . METHOD_6 ( ) ) ; }
@ Override public JdbcStringBasedStoreConfigurationBuilder withProperties ( Properties props ) { Map < Object , Object > unrecognized = XmlConfigHelper . setAttributes ( attributes , props , false , false ) ; unrecognized = XmlConfigHelper . setAttributes ( table . attributes ( ) , unrecognized , false , false ) ; XmlConfigHelper . showUnrecognizedAttributes ( unrecognized ) ; attributes . attribute ( PROPERTIES ) . set ( TypedProperties . toTypedProperties ( props ) ) ; return this ; }
private TYPE_1 METHOD_1 ( final String name , final TYPE_2 VAR_1 ) { final String VAR_2 = METHOD_2 ( STRING_1 , VAR_1 . METHOD_3 ( ) ) ; final int VAR_3 = METHOD_4 ( STRING_2 , VAR_1 . METHOD_5 ( ) ) ; final TYPE_3 < TYPE_4 . VAR_4 . VAR_5 . TYPE_2 . VAR_6 > VAR_7 = VAR_1 . METHOD_6 ( ) ; final TYPE_5 [ ] VAR_8 ; if ( VAR_7 . isEmpty ( ) ) { VAR_8 = null ; } else { VAR_8 = new TYPE_5 [ VAR_7 . size ( ) ] ; for ( int i = 0 ; i < VAR_8 . length ; i ++ ) { final TYPE_4 . VAR_4 . VAR_5 . TYPE_2 . VAR_6 VAR_9 = VAR_7 . get ( i ) ; final String VAR_10 = VAR_9 . getName ( ) ; final TYPE_3 < TYPE_4 . VAR_4 . VAR_5 . TYPE_2 . VAR_6 . TYPE_6 > VAR_11 = VAR_9 . METHOD_7 ( ) ; final String [ ] VAR_12 = new String [ VAR_11 . size ( ) ] ; final TYPE_7 [ ] VAR_13 = new TYPE_7 [ VAR_11 . size ( ) ] ; for ( int j = 0 ; j < VAR_13 . length ; j ++ ) { final TYPE_6 VAR_14 = VAR_11 . get ( j ) ; final String VAR_15 ; final String VAR_16 = VAR_14 . METHOD_8 ( ) ; if ( TYPE_8 . METHOD_9 ( VAR_16 ) ) { VAR_15 = VAR_14 . getName ( ) ; } else { VAR_15 = VAR_16 + STRING_3 + VAR_14 . getName ( ) ; } final String VAR_17 = VAR_14 . getType ( ) ; final TYPE_7 VAR_18 ; if ( TYPE_9 . METHOD_9 ( VAR_17 ) ) { VAR_18 = TYPE_7 . VAR_19 ; } else { VAR_18 = TYPE_10 . METHOD_10 ( VAR_17 ) ; } VAR_12 [ j ] = VAR_15 ; VAR_13 [ j ] = VAR_18 ; } VAR_8 [ i ] = new TYPE_5 ( VAR_10 , VAR_12 , VAR_13 ) ; } } return new TYPE_11 ( name , VAR_2 , VAR_3 , VAR_8 ) ; }
public void put ( final int id , final String VAR_1 ) { final String VAR_2 = TYPE_1 . METHOD_1 ( VAR_1 ) ; for ( int i = 0 ; i < VAR_2 . length ( ) ; i ++ ) { final TYPE_2 state = TYPE_2 . get ( VAR_2 . METHOD_2 ( i ) ) ; if ( state != TYPE_2 . VAR_3 ) { put ( i , id , state ) ; } } }
public void addText ( @ Nonnull @ Nonempty final String sText ) { ValueEnforcer . notEmpty ( sText , "Text" ) ; m_aContent . add ( sText ) ; }
public boolean remove ( Object key ) { int oldSize = size ( ) ; super . removeObject ( key , true ) ; return oldSize != size ( ) ; }
public static < T > T assertNotNull ( T object , String fieldName ) throws IllegalArgumentException { if ( object == null ) { throw new IllegalArgumentException ( String . format ( "%s cannot be null" , fieldName ) ) ; } return object ; }
@ Override public void addTextNode ( ITextNode textNode ) { textNodeList . add ( textNode ) ; textNode . setParent ( this ) ; fireTextNodeAdded ( textNode ) ; }
public static TYPE_1 METHOD_1 ( TYPE_2 type , String name , String ... VAR_1 ) { return TYPE_3 . METHOD_2 ( TYPE_3 . METHOD_3 ( METHOD_4 ( type , TYPE_1 . class , VAR_2 . VAR_3 ) , method - > getName ( method ) . equals ( name ) && METHOD_5 ( method , VAR_1 ) ) , null ) ; }
public boolean METHOD_1 ( String VAR_1 ) { String VAR_2 = new TYPE_1 ( ) . METHOD_2 ( VAR_1 ) ; return new TYPE_2 ( ) . METHOD_3 ( content , VAR_2 ) ; }
public static ArrowLocation findPopOverArrowLocation ( Node view ) { Bounds localBounds = view . getBoundsInLocal ( ) ; Bounds entryBounds = view . localToScreen ( localBounds ) ; ObservableList < Screen > screens = Screen . getScreensForRectangle ( entryBounds . getMinX ( ) , entryBounds . getMinY ( ) , entryBounds . getWidth ( ) , entryBounds . getHeight ( ) ) ; Rectangle2D screenBounds = screens . get ( 0 ) . getVisualBounds ( ) ; double spaceLeft = entryBounds . getMinX ( ) ; double spaceRight = screenBounds . getWidth ( ) - entryBounds . getMaxX ( ) ; double spaceTop = entryBounds . getMinY ( ) ; double spaceBottom = screenBounds . getHeight ( ) - entryBounds . getMaxY ( ) ; if ( spaceLeft > spaceRight ) { if ( spaceTop > spaceBottom ) { return ArrowLocation . RIGHT_BOTTOM ; } return ArrowLocation . RIGHT_TOP ; } if ( spaceTop > spaceBottom ) { return ArrowLocation . LEFT_BOTTOM ; } return ArrowLocation . LEFT_TOP ; }
ANNOTATION_1 public TYPE_1 < TYPE_2 > METHOD_1 ( String VAR_1 ) { int VAR_2 = METHOD_2 ( VAR_1 ) ; METHOD_3 ( VAR_2 , VAR_1 ) ; return METHOD_4 ( VAR_2 ) ; }
public void METHOD_1 ( TYPE_1 < String , TYPE_2 < String > > VAR_1 ) { for ( TYPE_3 listener : METHOD_2 ( ) ) { try { listener . VAR_2 ( VAR_3 , VAR_1 ) ; } catch ( TYPE_4 t ) { METHOD_3 ( listener , t ) ; } } }
public void readExternal ( ObjectInput in ) throws IOException , ClassNotFoundException { super . readExternal ( in ) ; this . sinks = ( LeftTupleSinkNodeList ) in . readObject ( ) ; }
public static String [ ] getOutputFileSwitch ( final String outPath ) { final StringBuffer buf = new StringBuffer ( "/fo=" ) ; if ( outPath . indexOf ( ' ' ) >= 0 ) { buf . append ( ' ' ) ; buf . append ( outPath ) ; buf . append ( ' ' ) ; } else { buf . append ( outPath ) ; } final String [ ] retval = new String [ ] { buf . toString ( ) } ; return retval ; }
private long skipFromFileChannel ( long n ) throws IOException { long currentFilePosition = fileChannel . position ( ) ; long size = fileChannel . size ( ) ; if ( n > size - currentFilePosition ) { fileChannel . position ( size ) ; return size - currentFilePosition ; } else { fileChannel . position ( currentFilePosition + n ) ; return n ; } }
public void setForecastResultsByTime ( java . util . Collection < ForecastResult > forecastResultsByTime ) { if ( forecastResultsByTime == null ) { this . forecastResultsByTime = null ; return ; } this . forecastResultsByTime = new java . util . ArrayList < ForecastResult > ( forecastResultsByTime ) ; }
public static void main ( String [ ] args ) throws InterruptedException { final Dimension size = WebcamResolution . VGA . getSize ( ) ; final Webcam webcam = Webcam . getDefault ( ) ; webcam . setViewSize ( size ) ; webcam . open ( ) ; final ImageSupplier supplier = new ImageSupplier ( ) { private final int [ ] imageOffset = new int [ ] { 0 } ; private final int [ ] bandOffsets = new int [ ] { 0 , 1 , 2 } ; private final int [ ] bits = { 8 , 8 , 8 } ; private final int dataType = DataBuffer . TYPE_BYTE ; private final int length = size . width * size . height * 3 ; private final ComponentSampleModel sampleModel = new ComponentSampleModel ( dataType , size . width , size . height , 3 , size . width * 3 , bandOffsets ) ; private final ColorSpace colorSpace = ColorSpace . getInstance ( ColorSpace . CS_sRGB ) ; private final ComponentColorModel colorModel = new ComponentColorModel ( colorSpace , bits , false , false , Transparency . OPAQUE , dataType ) ; private final ByteBuffer buffer = ByteBuffer . allocateDirect ( length ) ; @ Override public BufferedImage get ( ) { webcam . getImageBytes ( buffer ) ; final byte [ ] bytes = new byte [ length ] ; final byte [ ] [ ] data = new byte [ ] [ ] { bytes } ; buffer . get ( bytes ) ; buffer . clear ( ) ; final DataBufferByte dataBuffer = new DataBufferByte ( data , bytes . length , imageOffset ) ; final WritableRaster raster = Raster . createWritableRaster ( sampleModel , dataBuffer , null ) ; final BufferedImage image = new BufferedImage ( colorModel , raster , false , null ) ; return image ; } } ; final WebcamPanel panel = new WebcamPanel ( webcam , size , true , supplier ) ; panel . setFPSDisplayed ( true ) ; panel . setDisplayDebugInfo ( true ) ; panel . setImageSizeDisplayed ( true ) ; panel . setMirrored ( true ) ; final JFrame window = new JFrame ( "Test webcam panel" ) ; window . add ( panel ) ; window . setResizable ( true ) ; window . setDefaultCloseOperation ( JFrame . EXIT_ON_CLOSE ) ; window . pack ( ) ; window . setVisible ( true ) ; }
private ActorRef createBridge ( final MediaAttributes mediaAttributes ) { final Props props = new Props ( new UntypedActorFactory ( ) { private static final long serialVersionUID = 1L ; @ Override public UntypedActor create ( ) throws Exception { return new Bridge ( factory , mediaAttributes ) ; } } ) ; return getContext ( ) . actorOf ( props ) ; }
@ Override public CPDefinitionInventory findByCPDefinitionId ( long CPDefinitionId ) throws NoSuchCPDefinitionInventoryException { CPDefinitionInventory cpDefinitionInventory = fetchByCPDefinitionId ( CPDefinitionId ) ; if ( cpDefinitionInventory == null ) { StringBundler msg = new StringBundler ( 4 ) ; msg . append ( _NO_SUCH_ENTITY_WITH_KEY ) ; msg . append ( "CPDefinitionId=" ) ; msg . append ( CPDefinitionId ) ; msg . append ( "}" ) ; if ( _log . isDebugEnabled ( ) ) { _log . debug ( msg . toString ( ) ) ; } throw new NoSuchCPDefinitionInventoryException ( msg . toString ( ) ) ; } return cpDefinitionInventory ; }
public static void delayArchiveDeploy ( final String serverURL , long startupTimeout , long checkPeriod , final URLChecker checker ) throws Exception { if ( serverURL == null ) { throw new IllegalArgumentException ( "Null server url" ) ; } final URL server = new URL ( serverURL ) ; log . info ( String . format ( "Pinging server url: %s [%ss]" , serverURL , startupTimeout ) ) ; final Checker c = new Checker ( ) { public boolean check ( ) { return checker . check ( server ) ; } @ Override public String toString ( ) { return serverURL ; } } ; delay ( startupTimeout , checkPeriod , c ) ; }
public int setString ( String strValue , boolean bDisplayOption , int iMoveMode ) { try { strValue = this . encodeString ( strValue ) ; } catch ( Exception ex ) { Task task = ( ( BaseField ) this . getField ( ) ) . getRecord ( ) . getRecordOwner ( ) . getTask ( ) ; return task . setLastError ( ex . getMessage ( ) ) ; } return super . setString ( strValue , bDisplayOption , iMoveMode ) ; }
private TYPE_1 METHOD_1 ( final String VAR_1 , final TYPE_2 context ) throws TYPE_3 { String VAR_2 = TYPE_4 . METHOD_2 ( VAR_1 , new TYPE_5 < String , TYPE_6 > ( ) , true ) ; if ( VAR_2 . startsWith ( TYPE_7 ) ) { return new TYPE_8 ( VAR_2 . substring ( TYPE_7 . length ( ) ) ) ; } else if ( VAR_2 . startsWith ( TYPE_9 ) ) { return getClass ( ) . METHOD_3 ( VAR_2 . substring ( TYPE_9 . length ( ) ) ) ; } else { if ( VAR_2 . startsWith ( TYPE_10 ) ) { VAR_2 = VAR_2 . substring ( TYPE_10 . length ( ) ) ; } return context . VAR_3 ( VAR_2 ) ; } }
private boolean METHOD_1 ( final String [ ] VAR_1 , final int VAR_2 , final String VAR_3 ) { for ( int i = VAR_2 ; i < VAR_1 . length ; i ++ ) { String line = VAR_1 [ i ] . trim ( ) ; if ( line . startsWith ( STRING_1 ) ) { if ( VAR_3 . equals ( METHOD_2 ( line ) ) ) { return true ; } } } return false ; }
@ Override protected void configure ( ) { bind ( Props . class ) . toInstance ( this . props ) ; bind ( MetricRegistry . class ) . in ( Scopes . SINGLETON ) ; }
private String transformMaxTimeNanos ( long maxTime , TimeUnit timeUnit ) { if ( maxTime == Constants . MAX_TIME_DEFAULT ) return "NoR" ; return String . valueOf ( timeUnit . transformNanos ( maxTime ) ) ; }
@ Override public void readExternal ( ObjectInput in ) throws IOException , ClassNotFoundException { tail = ( CharSequence ) in . readObject ( ) ; tailIndex = ( TailIndex ) in . readObject ( ) ; }
@ Override public void onApplicationEvent ( ApplicationEvent event ) { if ( event instanceof ApplicationEnvironmentPreparedEvent ) { onApplicationEnvironmentPreparedEvent ( ( ApplicationEnvironmentPreparedEvent ) event ) ; } if ( event instanceof ApplicationPreparedEvent ) { onApplicationPreparedEvent ( event ) ; } }
private static Bitmap . CompressFormat getOutputFormat ( @ Nullable final ImageFormat format ) { if ( format == null ) { return Bitmap . CompressFormat . JPEG ; } if ( format == DefaultImageFormats . JPEG ) { return Bitmap . CompressFormat . JPEG ; } else if ( format == DefaultImageFormats . PNG ) { return Bitmap . CompressFormat . PNG ; } else { if ( Build . VERSION . SDK_INT >= Build . VERSION_CODES . ICE_CREAM_SANDWICH && DefaultImageFormats . isStaticWebpFormat ( format ) ) { return Bitmap . CompressFormat . WEBP ; } return Bitmap . CompressFormat . JPEG ; } }
protected static Number findMultiplicationPattern ( BigDecimal [ ] numbers ) { if ( numbers == null || numbers . length < MIN_NUMBER_OF_RESTRICTIONS ) { return null ; } try { BigDecimal gap = null ; Number missingNumber = null ; BigDecimal a = numbers [ 0 ] ; BigDecimal b = numbers [ 1 ] ; BigDecimal c = numbers [ 2 ] ; BigDecimal d = numbers [ 3 ] ; // Uses first four numbers to check if there is a pattern and to // calculate the gap between them. One missing value is allowed. if ( b . divide ( a ) . equals ( c . divide ( b ) ) ) { gap = b . divide ( a ) ; } else if ( c . divide ( b ) . equals ( d . divide ( c ) ) ) { gap = c . divide ( b ) ; } else if ( b . divide ( a ) . equals ( d . divide ( c ) ) ) { gap = b . divide ( a ) ; } else { // No pattern found. return null ; } BigDecimal first = null ; BigDecimal second = null ; for ( int i = 0 ; i < ( numbers . length - 1 ) ; i ++ ) { first = numbers [ i ] ; second = numbers [ i + 1 ] ; if ( missingNumber == null && ! second . divide ( first ) . equals ( gap ) ) { missingNumber = first . multiply ( gap ) ; } else if ( ! second . divide ( first ) . equals ( gap ) && missingNumber != null ) { // Happends if there is no pattern found, or more than 1 // missing number. return null ; } } return missingNumber ; } catch ( Exception e ) { return null ; } }
private void METHOD_1 ( TYPE_1 VAR_1 ) throws TYPE_2 { TYPE_2 VAR_2 = null ; TYPE_3 . METHOD_2 ( STRING_1 ) ; VAR_3 = TYPE_4 . METHOD_3 ( ) ; if ( VAR_1 != null ) { try { VAR_1 . METHOD_4 ( ) ; } catch ( TYPE_2 VAR_4 ) { TYPE_3 . METHOD_5 ( STRING_2 , VAR_2 ) ; VAR_2 = VAR_4 ; } } METHOD_6 ( ) . METHOD_4 ( ) ; METHOD_7 ( null ) ; try { VAR_5 . METHOD_4 ( ) ; } catch ( TYPE_2 VAR_4 ) { TYPE_3 . METHOD_5 ( STRING_3 , VAR_2 ) ; VAR_2 = VAR_4 ; } VAR_5 = null ; if ( VAR_2 != null ) { throw VAR_2 ; } }
private void METHOD_1 ( String path ) { TYPE_1 c = new TYPE_1 ( ) ; METHOD_2 ( path , c ) ; TYPE_2 VAR_1 = new TYPE_2 ( ) ; VAR_1 . METHOD_3 ( c . VAR_2 ) ; VAR_1 . METHOD_4 ( c . count ) ; String VAR_3 = VAR_4 . VAR_5 + path + STRING_1 + VAR_4 . VAR_6 ; TYPE_3 node = METHOD_5 ( VAR_3 ) ; if ( node == null ) { TYPE_4 . METHOD_6 ( STRING_2 + VAR_3 ) ; return ; } synchronized ( node ) { node . data = VAR_1 . toString ( ) . METHOD_7 ( ) ; } }
public void setNumRows ( final int rowCount ) { final int old = getRowCount ( ) ; if ( old == rowCount ) { return ; } this . dataVector . setSize ( rowCount ) ; if ( rowCount <= old ) { fireTableRowsDeleted ( rowCount , old - 1 ) ; } else { justifyRows ( old , rowCount ) ; fireTableRowsInserted ( old , rowCount - 1 ) ; } }
private void METHOD_1 ( final String VAR_1 , final TYPE_1 VAR_2 , final TYPE_2 VAR_3 , final TYPE_3 VAR_4 ) { TYPE_4 VAR_5 = new TYPE_4 ( ) . METHOD_2 ( new TYPE_5 ( ) . METHOD_3 ( VAR_3 ) ) . METHOD_4 ( VAR_4 ) . METHOD_5 ( VAR_6 ) . METHOD_6 ( VAR_6 ) ; TYPE_6 VAR_7 = new TYPE_6 ( ) . METHOD_7 ( VAR_8 . VAR_9 ) . METHOD_8 ( VAR_2 ) . METHOD_9 ( VAR_1 ) . METHOD_10 ( STRING_1 + VAR_2 . name ( ) + STRING_2 ) . METHOD_11 ( VAR_10 . VAR_11 ) . METHOD_12 ( VAR_5 ) ; final String VAR_12 ; try { VAR_12 = VAR_13 . METHOD_13 ( VAR_7 ) . METHOD_14 ( ) ; } catch ( TYPE_7 VAR_14 ) { throw new TYPE_8 ( STRING_3 , VAR_14 ) ; } TYPE_9 VAR_15 = new TYPE_9 ( ) . METHOD_7 ( VAR_8 . VAR_9 ) . METHOD_8 ( VAR_2 ) . METHOD_9 ( VAR_1 ) ; try { VAR_13 . METHOD_15 ( VAR_15 ) . METHOD_16 ( ) . METHOD_17 ( ) . METHOD_18 ( VAR_16 - > VAR_16 . METHOD_14 ( ) . equals ( VAR_12 ) ) . METHOD_19 ( ) . METHOD_20 ( ( ) - > new TYPE_8 ( STRING_4 ) ) ; } catch ( TYPE_7 VAR_14 ) { throw new TYPE_8 ( STRING_5 , VAR_14 ) ; } }