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 getVisibilit... |
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 = ... |
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... |
@ 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... |
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 ( ... |
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-le... |
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 objC... |
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 . getMainDocumentPa... |
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 ) ; } ... |
@ 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 ] * multipli... |
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 ch... |
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_ )... |
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 ( inputUniqueU... |
@ 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 deleteIn... |
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 ( ) ... |
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 ++... |
@ 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 ( ) ... |
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 ) { } cat... |
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 (... |
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 g... |
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 InputSt... |
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_... |
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 ( ) . ME... |
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 .... |
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 ( )... |
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 (... |
@ 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 (... |
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 . match... |
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... |
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... |
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_... |
public String removeSystemUnderTest ( Vector < Object > systemUnderTestParams , Vector < Object > repositoryParams ) { try { SystemUnderTest sutToDelete = XmlRpcDataMarshaller . toSystemUnderTest ( systemUnderTestParams ) ; sutToDelete = SystemUnderTest . newInstance ( ( String ) systemUnderTestParams . get ( SUT_NAME_... |
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_... |
private static XAnnotation findAnnotation ( XtendAnnotationTarget target , JvmType suppressWarningsAnnotation ) { for ( final XAnnotation annotation : target . getAnnotations ( ) ) { if ( Objects . equals ( annotation . getAnnotationType ( ) . getQualifiedName ( ) , suppressWarningsAnnotation . getIdentifier ( ) ) ) { ... |
@ Override protected Object call ( ) { CacheService cacheService = getService ( CacheService . SERVICE_NAME ) ; CacheContext cacheContext = cacheService . getOrCreateCacheContext ( parameters . name ) ; NearCacheInvalidationListener listener = new NearCacheInvalidationListener ( endpoint , cacheContext , nodeEngine . g... |
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_... |
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 ... |
@ Override public JdbcStringBasedStoreConfigurationBuilder withProperties ( Properties props ) { Map < Object , Object > unrecognized = XmlConfigHelper . setAttributes ( attributes , props , false , false ) ; unrecognized = XmlConfigHelper . setAttributes ( table . attributes ( ) , unrecognized , false , false ) ; XmlC... |
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 ( ... |
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 . ... |
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 [ ] {... |
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 ( currentFilePositio... |
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 [ ] imageOf... |
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 getConte... |
@ Override public CPDefinitionInventory findByCPDefinitionId ( long CPDefinitionId ) throws NoSuchCPDefinitionInventoryException { CPDefinitionInventory cpDefinitionInventory = fetchByCPDefinitionId ( CPDefinitionId ) ; if ( cpDefinitionInventory == null ) { StringBundler msg = new StringBundler ( 4 ) ; msg . append ( ... |
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 ( "Pingi... |
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 ( ) ) ; }... |
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 ... |
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 . Com... |
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 ] ... |
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... |
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 .... |
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 ) . MET... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.