text:
// See LICENSE for license details.

#pragma once

/* EGIntersectType */

enum EGIntersectType
{
    kGKIntersectNotIntersecting,
    kGKIntersectIntersecting,
    kGKIntersectCoincident,
    kGKIntersectContains
};

/* EGMath */

class EGMath
{
public:
    static const EGfloat Pi;
    static const EGfloat Rad2Deg;
    static const EGfloat Deg2Rad;
    static const EGfloat Epsilon;

    static EGfloat dot2f(EGfloat a[3], EGfloat b[3]);
    static EGfloat dot3f(EGfloat a[3], EGfloat b[3]);
    static EGfloat dot4f(EGfloat a[4], EGfloat b[4]);
    static void normalize2f(EGfloat v[]);
    static void normalize3f(EGfloat v[]);
    static void multMat2fMat2f(EGfloat r[4], const EGfloat a[4], const EGfloat b[4]);
    static void multMat2fVec2f(EGfloat r[2], const EGfloat v[2], const EGfloat m[4]);
    static void multMat3fMat3f(EGfloat r[9], const EGfloat a[9], const EGfloat b[9]);
    static void multMat3fVec3f(EGfloat r[3], const EGfloat v[3], const EGfloat m[9]);
    static void multMat4fMat4f(EGfloat r[16], const EGfloat a[16], const EGfloat b[16]);
    static void multMat4fVec4f(EGfloat r[4], const EGfloat v[4], const EGfloat m[16]);
    static void multMat4fVec4fHomogenousDivide(EGfloat r[4], const EGfloat v[4], const EGfloat m[16]);
    static void multMat4f(EGfloat m[16], const EGfloat l[16]);
    static void identityMat3f(EGfloat m[9]);
    static void identityMat4f(EGfloat m[16]);
    static void makeScaleMat4f(EGfloat m[16], EGfloat x, EGfloat y, EGfloat z);
    static void scaleMat4f(EGfloat m[16], EGfloat x, EGfloat y, EGfloat z);
    static void makeTranslateMat4f(EGfloat m[16], EGfloat x, EGfloat y, EGfloat z);
    static void translateMat4f(EGfloat m[16], EGfloat x, EGfloat y, EGfloat z);
    static void rotateMat4f(EGfloat m[16], EGfloat angle, EGfloat ax, EGfloat ay, EGfloat az);
    static void makeFrustumMat4f(EGfloat m[16], EGfloat left, EGfloat right, EGfloat bottom, EGfloat top, EGfloat zNear, EGfloat zFar);
    static void frustumMat4f(EGfloat m[16], EGfloat left, EGfloat right, EGfloat bottom, EGfloat top, EGfloat zNear, EGfloat zFar);
    static void makeLookAtMat4f(EGfloat m[16], EGfloat eyex, EGfloat eyey, EGfloat eyez, EGfloat centerx, EGfloat centery, EGfloat centerz, EGfloat upx, EGfloat upy, EGfloat upz);
    static void lookAtMat4f(EGfloat m[16], EGfloat eyex, EGfloat eyey, EGfloat eyez, EGfloat centerx, EGfloat centery, EGfloat centerz, EGfloat upx, EGfloat upy, EGfloat upz);
    static void transposeMat3f(EGfloat r[9], EGfloat m[9]);
    static void transposeMat3f(EGfloat m[9]);
    static void transposeMat4f(EGfloat r[16], EGfloat m[16]);
    static void transposeMat4f(EGfloat m[16]);
    static int invertMat3f(EGfloat inverse[9], const EGfloat src[9]);
    static int invertMat4f(EGfloat inverse[16], const EGfloat src[16]);
    static void mat4toMat3f(EGfloat r[9], EGfloat m[16]);
    static void makeRotateMat3f(EGfloat rot[9], EGfloat angle, EGfloat ax, EGfloat ay, EGfloat az);
    static void makeRotateMat4f(EGfloat rot[16], EGfloat angle, EGfloat ax, EGfloat ay, EGfloat az);
    static void rotateMat3f(EGfloat r[9], EGfloat mat[16], EGfloat angle, EGfloat ax, EGfloat ay, EGfloat az);
    static void rotateMat4f(EGfloat r[16], EGfloat mat[16], EGfloat angle, EGfloat ax, EGfloat ay, EGfloat az);
    static void rot4fToQuat4f(EGfloat q[4], EGfloat r[4]);
    static void quat4fToRot4f(EGfloat rot[4], EGfloat q[4]);
    static void mat3fToQuat4f(EGfloat q[4], EGfloat mat[9]);
    static void quat4fToMat3f(EGfloat mat[9], EGfloat q[4]);
    static void scaleQuat4f(EGfloat r[4], EGfloat q[4], EGfloat m);
    static void multQuat4fQuat4f(EGfloat r[4], EGfloat q1[4], EGfloat q2[4]);
    static void addQuat4fQuat4f(EGfloat r[4], EGfloat q1[4], EGfloat q2[4]);
    static void conjugateQuat4f(EGfloat r[4], EGfloat q[4]);
    static void normalizeQuat4f(EGfloat q[4]);
    static void lerpQuat4f(EGfloat r[4], EGfloat q1[4], EGfloat q2[4], EGfloat t);
    static void slerpQuat4f(EGfloat r[4], EGfloat q1[4], EGfloat q2[4], EGfloat t);
    static EGfloat slerpAngleQuat4f(EGfloat q1[4], EGfloat q2[4]);
    static void project(EGfloat r[3], const EGfloat v[3], const EGfloat finalMatrix[16]);
    static void sub3f(EGfloat r[3], const EGfloat v1[3], const EGfloat v2[3]);
    static void cross3f(EGfloat n[3], const EGfloat v1[3], const EGfloat v2[3]);
    static void cross3f(EGfloat n[3], const EGfloat a[3], const EGfloat b[3], const EGfloat c[3]);
    static EGfloat cross3fz(const EGfloat a[3], const EGfloat b[3], const EGfloat c[3]);
    static EGIntersectType intersectPoint2DBox2D(EGfloat a[2], EGfloat b_lo[2], EGfloat b_hi[2]);
    static EGIntersectType intersectBox2DBox2D(EGfloat a_lo[2], EGfloat a_hi[2], EGfloat b_lo[2], EGfloat b_hi[2]);
    static EGIntersectType intersectPoint3DBox3D(EGfloat a[3], EGfloat b_lo[3], EGfloat b_hi[3]);
    static EGIntersectType intersectBox3DBox3D(EGfloat a_lo[3], EGfloat a_hi[3], EGfloat b_lo[3], EGfloat b_hi[3]);
    static EGIntersectType intersectLines(EGfloat a1x, EGfloat a1y, EGfloat a2x, EGfloat a2y,
                                          EGfloat b1x, EGfloat b1y, EGfloat b2x, EGfloat b2y,
                                          EGfloat *ix, EGfloat *iy);
    static int intersectRayTriangle(EGfloat orig[3], EGfloat dir[3],
                                    EGfloat vert0[3], EGfloat vert1[3], EGfloat vert2[3],
                                    EGfloat *t, EGfloat *u, EGfloat *v);
    static EGfloat haversine(EGfloat lat1, EGfloat lon1, EGfloat lat2, EGfloat lon2);
};


text:
/* this ALWAYS GENERATED file contains the definitions for the interfaces */

 /* File created by MIDL compiler version 6.00.0366 */
/* Compiler settings for wbemtran.idl:
    Oicf, W1, Zp8, env=Win32 (32b run)
    protocol : dce , ms_ext, c_ext, robust
    error checks: allocation ref bounds_check enum stub_data
    VC __declspec() decoration level:
         __declspec(uuid()), __declspec(selectany), __declspec(novtable)
         DECLSPEC_UUID(), MIDL_INTERFACE()
*/
//@@MIDL_FILE_HEADING(  )

#pragma warning( disable: 4049 )  /* more than 64k source lines */

/* verify that the <rpcndr.h> version is high enough to compile this file*/
#ifndef __REQUIRED_RPCNDR_H_VERSION__
#define __REQUIRED_RPCNDR_H_VERSION__ 475
#endif

#include "rpc.h"
#include "rpcndr.h"

#ifndef __RPCNDR_H_VERSION__
#error this stub requires an updated version of <rpcndr.h>
#endif // __RPCNDR_H_VERSION__

#ifndef COM_NO_WINDOWS_H
#include "windows.h"
#include "ole2.h"
#endif /*COM_NO_WINDOWS_H*/

#ifndef __wbemtran_h__
#define __wbemtran_h__

#if defined(_MSC_VER) && (_MSC_VER >= 1020)
#pragma once
#endif

/* Forward Declarations */

#ifndef __IWbemTransport_FWD_DEFINED__
#define __IWbemTransport_FWD_DEFINED__
typedef interface IWbemTransport IWbemTransport;
#endif 	/* __IWbemTransport_FWD_DEFINED__ */

#ifndef __IWbemLevel1Login_FWD_DEFINED__
#define __IWbemLevel1Login_FWD_DEFINED__
typedef interface IWbemLevel1Login IWbemLevel1Login;
#endif 	/* __IWbemLevel1Login_FWD_DEFINED__ */

#ifndef __IWbemConnectorLogin_FWD_DEFINED__
#define __IWbemConnectorLogin_FWD_DEFINED__
typedef interface IWbemConnectorLogin IWbemConnectorLogin;
#endif 	/* __IWbemConnectorLogin_FWD_DEFINED__ */

#ifndef __IWbemAddressResolution_FWD_DEFINED__
#define __IWbemAddressResolution_FWD_DEFINED__
typedef interface IWbemAddressResolution IWbemAddressResolution;
#endif 	/* __IWbemAddressResolution_FWD_DEFINED__ */

#ifndef __WbemLevel1Login_FWD_DEFINED__
#define __WbemLevel1Login_FWD_DEFINED__

#ifdef __cplusplus
typedef class WbemLevel1Login WbemLevel1Login;
#else
typedef struct WbemLevel1Login WbemLevel1Login;
#endif /* __cplusplus */

#endif 	/* __WbemLevel1Login_FWD_DEFINED__ */

#ifndef __WbemLocalAddrRes_FWD_DEFINED__
#define __WbemLocalAddrRes_FWD_DEFINED__

#ifdef __cplusplus
typedef class WbemLocalAddrRes WbemLocalAddrRes;
#else
typedef struct WbemLocalAddrRes WbemLocalAddrRes;
#endif /* __cplusplus */

#endif 	/* __WbemLocalAddrRes_FWD_DEFINED__ */

#ifndef __WbemUninitializedClassObject_FWD_DEFINED__
#define __WbemUninitializedClassObject_FWD_DEFINED__

#ifdef __cplusplus
typedef class WbemUninitializedClassObject WbemUninitializedClassObject;
#else
typedef struct WbemUninitializedClassObject WbemUninitializedClassObject;
#endif /* __cplusplus */

#endif 	/* __WbemUninitializedClassObject_FWD_DEFINED__ */

#ifndef __IWbemClientTransport_FWD_DEFINED__
#define __IWbemClientTransport_FWD_DEFINED__
typedef interface IWbemClientTransport IWbemClientTransport;
#endif 	/* __IWbemClientTransport_FWD_DEFINED__ */

#ifndef __IWbemClientConnectionTransport_FWD_DEFINED__
#define __IWbemClientConnectionTransport_FWD_DEFINED__
typedef interface IWbemClientConnectionTransport IWbemClientConnectionTransport;
#endif 	/* __IWbemClientConnectionTransport_FWD_DEFINED__ */

#ifndef __WbemDCOMTransport_FWD_DEFINED__
#define __WbemDCOMTransport_FWD_DEFINED__

#ifdef __cplusplus
typedef class WbemDCOMTransport WbemDCOMTransport;
#else
typedef struct WbemDCOMTransport WbemDCOMTransport;
#endif /* __cplusplus */

#endif 	/* __WbemDCOMTransport_FWD_DEFINED__ */

#ifndef __IWbemLevel1Login_FWD_DEFINED__
#define __IWbemLevel1Login_FWD_DEFINED__
typedef interface IWbemLevel1Login IWbemLevel1Login;
#endif 	/* __IWbemLevel1Login_FWD_DEFINED__ */

#ifndef __IWbemConnectorLogin_FWD_DEFINED__
#define __IWbemConnectorLogin_FWD_DEFINED__
typedef interface IWbemConnectorLogin IWbemConnectorLogin;
#endif 	/* __IWbemConnectorLogin_FWD_DEFINED__ */

#ifndef __IWbemAddressResolution_FWD_DEFINED__
#define __IWbemAddressResolution_FWD_DEFINED__
typedef interface IWbemAddressResolution IWbemAddressResolution;
#endif 	/* __IWbemAddressResolution_FWD_DEFINED__ */

#ifndef __IWbemTransport_FWD_DEFINED__
#define __IWbemTransport_FWD_DEFINED__
typedef interface IWbemTransport IWbemTransport;
#endif 	/* __IWbemTransport_FWD_DEFINED__ */

#ifndef __IWbemConstructClassObject_FWD_DEFINED__
#define __IWbemConstructClassObject_FWD_DEFINED__
typedef interface IWbemConstructClassObject IWbemConstructClassObject;
#endif 	/* __IWbemConstructClassObject_FWD_DEFINED__ */

#ifndef __IWbemClientTransport_FWD_DEFINED__
#define __IWbemClientTransport_FWD_DEFINED__
typedef interface IWbemClientTransport IWbemClientTransport;
#endif 	/* __IWbemClientTransport_FWD_DEFINED__ */

#ifndef __IWbemClientConnectionTransport_FWD_DEFINED__
#define __IWbemClientConnectionTransport_FWD_DEFINED__
typedef interface IWbemClientConnectionTransport IWbemClientConnectionTransport;
#endif 	/* __IWbemClientConnectionTransport_FWD_DEFINED__ */

/* header files for imported files */
#include "objidl.h"
#include "oleidl.h"
#include "oaidl.h"
#include "wbemcli.h"

#ifdef __cplusplus
extern "C"{
#endif

void * __RPC_USER MIDL_user_allocate(size_t);
void __RPC_USER MIDL_user_free( void * );

/* interface __MIDL_itf_wbemtran_0000 */
/* [local] */

/*******************************************************************************/
/*                                                                             */
/*    Copyright © Microsoft Corporation.  All rights reserved.                 */
/*                                                                             */
/*    This IDL file contains interfaces needed only by implementors of custom  */
/*    transports and custom security systems. These interfaces are not needed  */
/*    for either client or provider access to CIMOM.                           */
/*                                                                             */
/*    See WBEMCLI.IDL for client interfaces, and WBEMPROV.IDL for provider     */
/*    extensions                                                               */
/*                                                                             */
/*******************************************************************************/

extern RPC_IF_HANDLE __MIDL_itf_wbemtran_0000_v0_0_c_ifspec;
extern RPC_IF_HANDLE __MIDL_itf_wbemtran_0000_v0_0_s_ifspec;

#ifndef __WbemTransports_v1_LIBRARY_DEFINED__
#define __WbemTransports_v1_LIBRARY_DEFINED__

/* library WbemTransports_v1 */
/* [uuid] */

typedef
enum tag_WBEM_LOGIN_TYPE
    {	WBEM_FLAG_INPROC_LOGIN	= 0,
	WBEM_FLAG_LOCAL_LOGIN	= 1,
	WBEM_FLAG_REMOTE_LOGIN	= 2,
	WBEM_AUTHENTICATION_METHOD_MASK	= 0xf,
	WBEM_FLAG_USE_MULTIPLE_CHALLENGES	= 0x10
    } 	WBEM_LOGIN_TYPE;

typedef /* [length_is][size_is] */ BYTE *WBEM_128BITS;

EXTERN_C const IID LIBID_WbemTransports_v1;

#ifndef __IWbemTransport_INTERFACE_DEFINED__
#define __IWbemTransport_INTERFACE_DEFINED__

/* interface IWbemTransport */
/* [uuid][object][local][restricted] */

EXTERN_C const IID IID_IWbemTransport;

#if defined(__cplusplus) && !defined(CINTERFACE)

    MIDL_INTERFACE("553fe584-2156-11d0-b6ae-00aa003240c7")
    IWbemTransport : public IUnknown
    {
    public:
        virtual HRESULT STDMETHODCALLTYPE Initialize( void) = 0;

    };

#else 	/* C style interface */

    typedef struct IWbemTransportVtbl
    {
        BEGIN_INTERFACE

        HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
            IWbemTransport * This,
            /* [in] */ REFIID riid,
            /* [iid_is][out] */ void **ppvObject);

        ULONG ( STDMETHODCALLTYPE *AddRef )(
            IWbemTransport * This);

        ULONG ( STDMETHODCALLTYPE *Release )(
            IWbemTransport * This);

        HRESULT ( STDMETHODCALLTYPE *Initialize )(
            IWbemTransport * This);

        END_INTERFACE
    } IWbemTransportVtbl;

    interface IWbemTransport
    {
        CONST_VTBL struct IWbemTransportVtbl *lpVtbl;
    };

#ifdef COBJMACROS

#define IWbemTransport_QueryInterface(This,riid,ppvObject)	\
    (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)

#define IWbemTransport_AddRef(This)	\
    (This)->lpVtbl -> AddRef(This)

#define IWbemTransport_Release(This)	\
    (This)->lpVtbl -> Release(This)

#define IWbemTransport_Initialize(This)	\
    (This)->lpVtbl -> Initialize(This)

#endif /* COBJMACROS */

#endif 	/* C style interface */

HRESULT STDMETHODCALLTYPE IWbemTransport_Initialize_Proxy(
    IWbemTransport * This);

void __RPC_STUB IWbemTransport_Initialize_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);

#endif 	/* __IWbemTransport_INTERFACE_DEFINED__ */

#ifndef __IWbemLevel1Login_INTERFACE_DEFINED__
#define __IWbemLevel1Login_INTERFACE_DEFINED__

/* interface IWbemLevel1Login */
/* [unique][uuid][restricted][object] */

EXTERN_C const IID IID_IWbemLevel1Login;

#if defined(__cplusplus) && !defined(CINTERFACE)

    MIDL_INTERFACE("F309AD18-D86A-11d0-A075-00C04FB68820")
    IWbemLevel1Login : public IUnknown
    {
    public:
        virtual HRESULT STDMETHODCALLTYPE EstablishPosition(
            /* [string][unique][in] */ LPWSTR wszClientMachineName,
            /* [in] */ DWORD dwProcessId,
            /* [out] */ DWORD *phAuthEventHandle) = 0;

        virtual HRESULT STDMETHODCALLTYPE RequestChallenge(
            /* [string][unique][in] */ LPWSTR wszNetworkResource,
            /* [string][unique][in] */ LPWSTR wszUser,
            /* [out] */ WBEM_128BITS Nonce) = 0;

        virtual HRESULT STDMETHODCALLTYPE WBEMLogin(
            /* [string][unique][in] */ LPWSTR wszPreferredLocale,
            /* [unique][in] */ WBEM_128BITS AccessToken,
            /* [in] */ long lFlags,
            /* [in] */ IWbemContext *pCtx,
            /* [out] */ IWbemServices **ppNamespace) = 0;

        virtual HRESULT STDMETHODCALLTYPE NTLMLogin(
            /* [string][unique][in] */ LPWSTR wszNetworkResource,
            /* [string][unique][in] */ LPWSTR wszPreferredLocale,
            /* [in] */ long lFlags,
            /* [in] */ IWbemContext *pCtx,
            /* [out] */ IWbemServices **ppNamespace) = 0;

    };

#else 	/* C style interface */

    typedef struct IWbemLevel1LoginVtbl
    {
        BEGIN_INTERFACE

        HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
            IWbemLevel1Login * This,
            /* [in] */ REFIID riid,
            /* [iid_is][out] */ void **ppvObject);

        ULONG ( STDMETHODCALLTYPE *AddRef )(
            IWbemLevel1Login * This);

        ULONG ( STDMETHODCALLTYPE *Release )(
            IWbemLevel1Login * This);

        HRESULT ( STDMETHODCALLTYPE *EstablishPosition )(
            IWbemLevel1Login * This,
            /* [string][unique][in] */ LPWSTR wszClientMachineName,
            /* [in] */ DWORD dwProcessId,
            /* [out] */ DWORD *phAuthEventHandle);

        HRESULT ( STDMETHODCALLTYPE *RequestChallenge )(
            IWbemLevel1Login * This,
            /* [string][unique][in] */ LPWSTR wszNetworkResource,
            /* [string][unique][in] */ LPWSTR wszUser,
            /* [out] */ WBEM_128BITS Nonce);

        HRESULT ( STDMETHODCALLTYPE *WBEMLogin )(
            IWbemLevel1Login * This,
            /* [string][unique][in] */ LPWSTR wszPreferredLocale,
            /* [unique][in] */ WBEM_128BITS AccessToken,
            /* [in] */ long lFlags,
            /* [in] */ IWbemContext *pCtx,
            /* [out] */ IWbemServices **ppNamespace);

        HRESULT ( STDMETHODCALLTYPE *NTLMLogin )(
            IWbemLevel1Login * This,
            /* [string][unique][in] */ LPWSTR wszNetworkResource,
            /* [string][unique][in] */ LPWSTR wszPreferredLocale,
            /* [in] */ long lFlags,
            /* [in] */ IWbemContext *pCtx,
            /* [out] */ IWbemServices **ppNamespace);

        END_INTERFACE
    } IWbemLevel1LoginVtbl;

    interface IWbemLevel1Login
    {
        CONST_VTBL struct IWbemLevel1LoginVtbl *lpVtbl;
    };

#ifdef COBJMACROS

#define IWbemLevel1Login_QueryInterface(This,riid,ppvObject)	\
    (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)

#define IWbemLevel1Login_AddRef(This)	\
    (This)->lpVtbl -> AddRef(This)

#define IWbemLevel1Login_Release(This)	\
    (This)->lpVtbl -> Release(This)

#define IWbemLevel1Login_EstablishPosition(This,wszClientMachineName,dwProcessId,phAuthEventHandle)	\
    (This)->lpVtbl -> EstablishPosition(This,wszClientMachineName,dwProcessId,phAuthEventHandle)

#define IWbemLevel1Login_RequestChallenge(This,wszNetworkResource,wszUser,Nonce)	\
    (This)->lpVtbl -> RequestChallenge(This,wszNetworkResource,wszUser,Nonce)

#define IWbemLevel1Login_WBEMLogin(This,wszPreferredLocale,AccessToken,lFlags,pCtx,ppNamespace)	\
    (This)->lpVtbl -> WBEMLogin(This,wszPreferredLocale,AccessToken,lFlags,pCtx,ppNamespace)

#define IWbemLevel1Login_NTLMLogin(This,wszNetworkResource,wszPreferredLocale,lFlags,pCtx,ppNamespace)	\
    (This)->lpVtbl -> NTLMLogin(This,wszNetworkResource,wszPreferredLocale,lFlags,pCtx,ppNamespace)

#endif /* COBJMACROS */

#endif 	/* C style interface */

HRESULT STDMETHODCALLTYPE IWbemLevel1Login_EstablishPosition_Proxy(
    IWbemLevel1Login * This,
    /* [string][unique][in] */ LPWSTR wszClientMachineName,
    /* [in] */ DWORD dwProcessId,
    /* [out] */ DWORD *phAuthEventHandle);

void __RPC_STUB IWbemLevel1Login_EstablishPosition_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);

HRESULT STDMETHODCALLTYPE IWbemLevel1Login_RequestChallenge_Proxy(
    IWbemLevel1Login * This,
    /* [string][unique][in] */ LPWSTR wszNetworkResource,
    /* [string][unique][in] */ LPWSTR wszUser,
    /* [out] */ WBEM_128BITS Nonce);

void __RPC_STUB IWbemLevel1Login_RequestChallenge_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);

HRESULT STDMETHODCALLTYPE IWbemLevel1Login_WBEMLogin_Proxy(
    IWbemLevel1Login * This,
    /* [string][unique][in] */ LPWSTR wszPreferredLocale,
    /* [unique][in] */ WBEM_128BITS AccessToken,
    /* [in] */ long lFlags,
    /* [in] */ IWbemContext *pCtx,
    /* [out] */ IWbemServices **ppNamespace);

void __RPC_STUB IWbemLevel1Login_WBEMLogin_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);

HRESULT STDMETHODCALLTYPE IWbemLevel1Login_NTLMLogin_Proxy(
    IWbemLevel1Login * This,
    /* [string][unique][in] */ LPWSTR wszNetworkResource,
    /* [string][unique][in] */ LPWSTR wszPreferredLocale,
    /* [in] */ long lFlags,
    /* [in] */ IWbemContext *pCtx,
    /* [out] */ IWbemServices **ppNamespace);

void __RPC_STUB IWbemLevel1Login_NTLMLogin_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);

#endif 	/* __IWbemLevel1Login_INTERFACE_DEFINED__ */

#ifndef __IWbemConnectorLogin_INTERFACE_DEFINED__
#define __IWbemConnectorLogin_INTERFACE_DEFINED__

/* interface IWbemConnectorLogin */
/* [unique][uuid][restricted][object] */

EXTERN_C const IID IID_IWbemConnectorLogin;

#if defined(__cplusplus) && !defined(CINTERFACE)

    MIDL_INTERFACE("d8ec9cb1-b135-4f10-8b1b-c7188bb0d186")
    IWbemConnectorLogin : public IUnknown
    {
    public:
        virtual HRESULT STDMETHODCALLTYPE ConnectorLogin(
            /* [string][unique][in] */ LPWSTR wszNetworkResource,
            /* [string][unique][in] */ LPWSTR wszPreferredLocale,
            /* [in] */ long lFlags,
            /* [in] */ IWbemContext *pCtx,
            /* [in] */ REFIID riid,
            /* [iid_is][out] */ void **pInterface) = 0;

    };

#else 	/* C style interface */

    typedef struct IWbemConnectorLoginVtbl
    {
        BEGIN_INTERFACE

        HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
            IWbemConnectorLogin * This,
            /* [in] */ REFIID riid,
            /* [iid_is][out] */ void **ppvObject);

        ULONG ( STDMETHODCALLTYPE *AddRef )(
            IWbemConnectorLogin * This);

        ULONG ( STDMETHODCALLTYPE *Release )(
            IWbemConnectorLogin * This);

        HRESULT ( STDMETHODCALLTYPE *ConnectorLogin )(
            IWbemConnectorLogin * This,
            /* [string][unique][in] */ LPWSTR wszNetworkResource,
            /* [string][unique][in] */ LPWSTR wszPreferredLocale,
            /* [in] */ long lFlags,
            /* [in] */ IWbemContext *pCtx,
            /* [in] */ REFIID riid,
            /* [iid_is][out] */ void **pInterface);

        END_INTERFACE
    } IWbemConnectorLoginVtbl;

    interface IWbemConnectorLogin
    {
        CONST_VTBL struct IWbemConnectorLoginVtbl *lpVtbl;
    };

#ifdef COBJMACROS

#define IWbemConnectorLogin_QueryInterface(This,riid,ppvObject)	\
    (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)

#define IWbemConnectorLogin_AddRef(This)	\
    (This)->lpVtbl -> AddRef(This)

#define IWbemConnectorLogin_Release(This)	\
    (This)->lpVtbl -> Release(This)

#define IWbemConnectorLogin_ConnectorLogin(This,wszNetworkResource,wszPreferredLocale,lFlags,pCtx,riid,pInterface)	\
    (This)->lpVtbl -> ConnectorLogin(This,wszNetworkResource,wszPreferredLocale,lFlags,pCtx,riid,pInterface)

#endif /* COBJMACROS */

#endif 	/* C style interface */

HRESULT STDMETHODCALLTYPE IWbemConnectorLogin_ConnectorLogin_Proxy(
    IWbemConnectorLogin * This,
    /* [string][unique][in] */ LPWSTR wszNetworkResource,
    /* [string][unique][in] */ LPWSTR wszPreferredLocale,
    /* [in] */ long lFlags,
    /* [in] */ IWbemContext *pCtx,
    /* [in] */ REFIID riid,
    /* [iid_is][out] */ void **pInterface);

void __RPC_STUB IWbemConnectorLogin_ConnectorLogin_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);

#endif 	/* __IWbemConnectorLogin_INTERFACE_DEFINED__ */

#ifndef __IWbemAddressResolution_INTERFACE_DEFINED__
#define __IWbemAddressResolution_INTERFACE_DEFINED__

/* interface IWbemAddressResolution */
/* [unique][restricted][uuid][local][object] */

EXTERN_C const IID IID_IWbemAddressResolution;

#if defined(__cplusplus) && !defined(CINTERFACE)

    MIDL_INTERFACE("F7CE2E12-8C90-11d1-9E7B-00C04FC324A8")
    IWbemAddressResolution : public IUnknown
    {
    public:
        virtual HRESULT STDMETHODCALLTYPE Resolve(
            /* [in] */ LPWSTR wszNamespacePath,
            /* [out] */ LPWSTR wszAddressType,
            /* [out] */ DWORD *pdwAddressLength,
            /* [size_is][size_is][out] */ BYTE **pabBinaryAddress) = 0;

    };

#else 	/* C style interface */

    typedef struct IWbemAddressResolutionVtbl
    {
        BEGIN_INTERFACE

        HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
            IWbemAddressResolution * This,
            /* [in] */ REFIID riid,
            /* [iid_is][out] */ void **ppvObject);

        ULONG ( STDMETHODCALLTYPE *AddRef )(
            IWbemAddressResolution * This);

        ULONG ( STDMETHODCALLTYPE *Release )(
            IWbemAddressResolution * This);

        HRESULT ( STDMETHODCALLTYPE *Resolve )(
            IWbemAddressResolution * This,
            /* [in] */ LPWSTR wszNamespacePath,
            /* [out] */ LPWSTR wszAddressType,
            /* [out] */ DWORD *pdwAddressLength,
            /* [size_is][size_is][out] */ BYTE **pabBinaryAddress);

        END_INTERFACE
    } IWbemAddressResolutionVtbl;

    interface IWbemAddressResolution
    {
        CONST_VTBL struct IWbemAddressResolutionVtbl *lpVtbl;
    };

#ifdef COBJMACROS

#define IWbemAddressResolution_QueryInterface(This,riid,ppvObject)	\
    (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)

#define IWbemAddressResolution_AddRef(This)	\
    (This)->lpVtbl -> AddRef(This)

#define IWbemAddressResolution_Release(This)	\
    (This)->lpVtbl -> Release(This)

#define IWbemAddressResolution_Resolve(This,wszNamespacePath,wszAddressType,pdwAddressLength,pabBinaryAddress)	\
    (This)->lpVtbl -> Resolve(This,wszNamespacePath,wszAddressType,pdwAddressLength,pabBinaryAddress)

#endif /* COBJMACROS */

#endif 	/* C style interface */

HRESULT STDMETHODCALLTYPE IWbemAddressResolution_Resolve_Proxy(
    IWbemAddressResolution * This,
    /* [in] */ LPWSTR wszNamespacePath,
    /* [out] */ LPWSTR wszAddressType,
    /* [out] */ DWORD *pdwAddressLength,
    /* [size_is][size_is][out] */ BYTE **pabBinaryAddress);

void __RPC_STUB IWbemAddressResolution_Resolve_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);

#endif 	/* __IWbemAddressResolution_INTERFACE_DEFINED__ */

EXTERN_C const CLSID CLSID_WbemLevel1Login;

#ifdef __cplusplus

class DECLSPEC_UUID("8BC3F05E-D86B-11d0-A075-00C04FB68820")
WbemLevel1Login;
#endif

EXTERN_C const CLSID CLSID_WbemLocalAddrRes;

#ifdef __cplusplus

class DECLSPEC_UUID("A1044801-8F7E-11d1-9E7C-00C04FC324A8")
WbemLocalAddrRes;
#endif

EXTERN_C const CLSID CLSID_WbemUninitializedClassObject;

#ifdef __cplusplus

class DECLSPEC_UUID("7a0227f6-7108-11d1-ad90-00c04fd8fdff")
WbemUninitializedClassObject;
#endif

#ifndef __IWbemClientTransport_INTERFACE_DEFINED__
#define __IWbemClientTransport_INTERFACE_DEFINED__

/* interface IWbemClientTransport */
/* [unique][restricted][uuid][local][object] */

EXTERN_C const IID IID_IWbemClientTransport;

#if defined(__cplusplus) && !defined(CINTERFACE)

    MIDL_INTERFACE("F7CE2E11-8C90-11d1-9E7B-00C04FC324A8")
    IWbemClientTransport : public IUnknown
    {
    public:
        virtual HRESULT STDMETHODCALLTYPE ConnectServer(
            /* [in] */ BSTR strAddressType,
            /* [in] */ DWORD dwBinaryAddressLength,
            /* [size_is][in] */ BYTE *abBinaryAddress,
            /* [in] */ BSTR strNetworkResource,
            /* [in] */ BSTR strUser,
            /* [in] */ BSTR strPassword,
            /* [in] */ BSTR strLocale,
            /* [in] */ long lSecurityFlags,
            /* [in] */ BSTR strAuthority,
            /* [in] */ IWbemContext *pCtx,
            /* [out] */ IWbemServices **ppNamespace) = 0;

    };

#else 	/* C style interface */

    typedef struct IWbemClientTransportVtbl
    {
        BEGIN_INTERFACE

        HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
            IWbemClientTransport * This,
            /* [in] */ REFIID riid,
            /* [iid_is][out] */ void **ppvObject);

        ULONG ( STDMETHODCALLTYPE *AddRef )(
            IWbemClientTransport * This);

        ULONG ( STDMETHODCALLTYPE *Release )(
            IWbemClientTransport * This);

        HRESULT ( STDMETHODCALLTYPE *ConnectServer )(
            IWbemClientTransport * This,
            /* [in] */ BSTR strAddressType,
            /* [in] */ DWORD dwBinaryAddressLength,
            /* [size_is][in] */ BYTE *abBinaryAddress,
            /* [in] */ BSTR strNetworkResource,
            /* [in] */ BSTR strUser,
            /* [in] */ BSTR strPassword,
            /* [in] */ BSTR strLocale,
            /* [in] */ long lSecurityFlags,
            /* [in] */ BSTR strAuthority,
            /* [in] */ IWbemContext *pCtx,
            /* [out] */ IWbemServices **ppNamespace);

        END_INTERFACE
    } IWbemClientTransportVtbl;

    interface IWbemClientTransport
    {
        CONST_VTBL struct IWbemClientTransportVtbl *lpVtbl;
    };

#ifdef COBJMACROS

#define IWbemClientTransport_QueryInterface(This,riid,ppvObject)	\
    (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)

#define IWbemClientTransport_AddRef(This)	\
    (This)->lpVtbl -> AddRef(This)

#define IWbemClientTransport_Release(This)	\
    (This)->lpVtbl -> Release(This)

#define IWbemClientTransport_ConnectServer(This,strAddressType,dwBinaryAddressLength,abBinaryAddress,strNetworkResource,strUser,strPassword,strLocale,lSecurityFlags,strAuthority,pCtx,ppNamespace)	\
    (This)->lpVtbl -> ConnectServer(This,strAddressType,dwBinaryAddressLength,abBinaryAddress,strNetworkResource,strUser,strPassword,strLocale,lSecurityFlags,strAuthority,pCtx,ppNamespace)

#endif /* COBJMACROS */

#endif 	/* C style interface */

HRESULT STDMETHODCALLTYPE IWbemClientTransport_ConnectServer_Proxy(
    IWbemClientTransport * This,
    /* [in] */ BSTR strAddressType,
    /* [in] */ DWORD dwBinaryAddressLength,
    /* [size_is][in] */ BYTE *abBinaryAddress,
    /* [in] */ BSTR strNetworkResource,
    /* [in] */ BSTR strUser,
    /* [in] */ BSTR strPassword,
    /* [in] */ BSTR strLocale,
    /* [in] */ long lSecurityFlags,
    /* [in] */ BSTR strAuthority,
    /* [in] */ IWbemContext *pCtx,
    /* [out] */ IWbemServices **ppNamespace);

void __RPC_STUB IWbemClientTransport_ConnectServer_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);

#endif 	/* __IWbemClientTransport_INTERFACE_DEFINED__ */

#ifndef __IWbemClientConnectionTransport_INTERFACE_DEFINED__
#define __IWbemClientConnectionTransport_INTERFACE_DEFINED__

/* interface IWbemClientConnectionTransport */
/* [unique][restricted][uuid][local][object] */

EXTERN_C const IID IID_IWbemClientConnectionTransport;

#if defined(__cplusplus) && !defined(CINTERFACE)

    MIDL_INTERFACE("a889c72a-fcc1-4a9e-af61-ed071333fb5b")
    IWbemClientConnectionTransport : public IUnknown
    {
    public:
        virtual HRESULT STDMETHODCALLTYPE Open(
            /* [in] */ BSTR strAddressType,
            /* [in] */ DWORD dwBinaryAddressLength,
            /* [size_is][in] */ BYTE *abBinaryAddress,
            /* [in] */ const BSTR strObject,
            /* [in] */ const BSTR strUser,
            /* [in] */ const BSTR strPassword,
            /* [in] */ const BSTR strLocale,
            /* [in] */ long lFlags,
            /* [in] */ IWbemContext *pCtx,
            /* [in] */ REFIID riid,
            /* [iid_is][out] */ void **pInterface,
            /* [out] */ IWbemCallResult **pCallRes) = 0;

        virtual HRESULT STDMETHODCALLTYPE OpenAsync(
            /* [in] */ BSTR strAddressType,
            /* [in] */ DWORD dwBinaryAddressLength,
            /* [size_is][in] */ BYTE *abBinaryAddress,
            /* [in] */ const BSTR strObject,
            /* [in] */ const BSTR strUser,
            /* [in] */ const BSTR strPassword,
            /* [in] */ const BSTR strLocale,
            /* [in] */ long lFlags,
            /* [in] */ IWbemContext *pCtx,
            /* [in] */ REFIID riid,
            /* [in] */ IWbemObjectSink *pResponseHandler) = 0;

        virtual HRESULT STDMETHODCALLTYPE Cancel(
            /* [in] */ long lFlags,
            /* [in] */ IWbemObjectSink *pHandler) = 0;

    };

#else 	/* C style interface */

    typedef struct IWbemClientConnectionTransportVtbl
    {
        BEGIN_INTERFACE

        HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
            IWbemClientConnectionTransport * This,
            /* [in] */ REFIID riid,
            /* [iid_is][out] */ void **ppvObject);

        ULONG ( STDMETHODCALLTYPE *AddRef )(
            IWbemClientConnectionTransport * This);

        ULONG ( STDMETHODCALLTYPE *Release )(
            IWbemClientConnectionTransport * This);

        HRESULT ( STDMETHODCALLTYPE *Open )(
            IWbemClientConnectionTransport * This,
            /* [in] */ BSTR strAddressType,
            /* [in] */ DWORD dwBinaryAddressLength,
            /* [size_is][in] */ BYTE *abBinaryAddress,
            /* [in] */ const BSTR strObject,
            /* [in] */ const BSTR strUser,
            /* [in] */ const BSTR strPassword,
            /* [in] */ const BSTR strLocale,
            /* [in] */ long lFlags,
            /* [in] */ IWbemContext *pCtx,
            /* [in] */ REFIID riid,
            /* [iid_is][out] */ void **pInterface,
            /* [out] */ IWbemCallResult **pCallRes);

        HRESULT ( STDMETHODCALLTYPE *OpenAsync )(
            IWbemClientConnectionTransport * This,
            /* [in] */ BSTR strAddressType,
            /* [in] */ DWORD dwBinaryAddressLength,
            /* [size_is][in] */ BYTE *abBinaryAddress,
            /* [in] */ const BSTR strObject,
            /* [in] */ const BSTR strUser,
            /* [in] */ const BSTR strPassword,
            /* [in] */ const BSTR strLocale,
            /* [in] */ long lFlags,
            /* [in] */ IWbemContext *pCtx,
            /* [in] */ REFIID riid,
            /* [in] */ IWbemObjectSink *pResponseHandler);

        HRESULT ( STDMETHODCALLTYPE *Cancel )(
            IWbemClientConnectionTransport * This,
            /* [in] */ long lFlags,
            /* [in] */ IWbemObjectSink *pHandler);

        END_INTERFACE
    } IWbemClientConnectionTransportVtbl;

    interface IWbemClientConnectionTransport
    {
        CONST_VTBL struct IWbemClientConnectionTransportVtbl *lpVtbl;
    };

#ifdef COBJMACROS

#define IWbemClientConnectionTransport_QueryInterface(This,riid,ppvObject)	\
    (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)

#define IWbemClientConnectionTransport_AddRef(This)	\
    (This)->lpVtbl -> AddRef(This)

#define IWbemClientConnectionTransport_Release(This)	\
    (This)->lpVtbl -> Release(This)

#define IWbemClientConnectionTransport_Open(This,strAddressType,dwBinaryAddressLength,abBinaryAddress,strObject,strUser,strPassword,strLocale,lFlags,pCtx,riid,pInterface,pCallRes)	\
    (This)->lpVtbl -> Open(This,strAddressType,dwBinaryAddressLength,abBinaryAddress,strObject,strUser,strPassword,strLocale,lFlags,pCtx,riid,pInterface,pCallRes)

#define IWbemClientConnectionTransport_OpenAsync(This,strAddressType,dwBinaryAddressLength,abBinaryAddress,strObject,strUser,strPassword,strLocale,lFlags,pCtx,riid,pResponseHandler)	\
    (This)->lpVtbl -> OpenAsync(This,strAddressType,dwBinaryAddressLength,abBinaryAddress,strObject,strUser,strPassword,strLocale,lFlags,pCtx,riid,pResponseHandler)

#define IWbemClientConnectionTransport_Cancel(This,lFlags,pHandler)	\
    (This)->lpVtbl -> Cancel(This,lFlags,pHandler)

#endif /* COBJMACROS */

#endif 	/* C style interface */

HRESULT STDMETHODCALLTYPE IWbemClientConnectionTransport_Open_Proxy(
    IWbemClientConnectionTransport * This,
    /* [in] */ BSTR strAddressType,
    /* [in] */ DWORD dwBinaryAddressLength,
    /* [size_is][in] */ BYTE *abBinaryAddress,
    /* [in] */ const BSTR strObject,
    /* [in] */ const BSTR strUser,
    /* [in] */ const BSTR strPassword,
    /* [in] */ const BSTR strLocale,
    /* [in] */ long lFlags,
    /* [in] */ IWbemContext *pCtx,
    /* [in] */ REFIID riid,
    /* [iid_is][out] */ void **pInterface,
    /* [out] */ IWbemCallResult **pCallRes);

void __RPC_STUB IWbemClientConnectionTransport_Open_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);

HRESULT STDMETHODCALLTYPE IWbemClientConnectionTransport_OpenAsync_Proxy(
    IWbemClientConnectionTransport * This,
    /* [in] */ BSTR strAddressType,
    /* [in] */ DWORD dwBinaryAddressLength,
    /* [size_is][in] */ BYTE *abBinaryAddress,
    /* [in] */ const BSTR strObject,
    /* [in] */ const BSTR strUser,
    /* [in] */ const BSTR strPassword,
    /* [in] */ const BSTR strLocale,
    /* [in] */ long lFlags,
    /* [in] */ IWbemContext *pCtx,
    /* [in] */ REFIID riid,
    /* [in] */ IWbemObjectSink *pResponseHandler);

void __RPC_STUB IWbemClientConnectionTransport_OpenAsync_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);

HRESULT STDMETHODCALLTYPE IWbemClientConnectionTransport_Cancel_Proxy(
    IWbemClientConnectionTransport * This,
    /* [in] */ long lFlags,
    /* [in] */ IWbemObjectSink *pHandler);

void __RPC_STUB IWbemClientConnectionTransport_Cancel_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);

#endif 	/* __IWbemClientConnectionTransport_INTERFACE_DEFINED__ */

EXTERN_C const CLSID CLSID_WbemDCOMTransport;

#ifdef __cplusplus

class DECLSPEC_UUID("F7CE2E13-8C90-11d1-9E7B-00C04FC324A8")
WbemDCOMTransport;
#endif
#endif /* __WbemTransports_v1_LIBRARY_DEFINED__ */

#ifndef __IWbemConstructClassObject_INTERFACE_DEFINED__
#define __IWbemConstructClassObject_INTERFACE_DEFINED__

/* interface IWbemConstructClassObject */
/* [uuid][object][local][restricted] */

EXTERN_C const IID IID_IWbemConstructClassObject;

#if defined(__cplusplus) && !defined(CINTERFACE)

    MIDL_INTERFACE("9ef76194-70d5-11d1-ad90-00c04fd8fdff")
    IWbemConstructClassObject : public IUnknown
    {
    public:
        virtual HRESULT STDMETHODCALLTYPE SetInheritanceChain(
            /* [in] */ long lNumAntecedents,
            /* [string][size_is][in] */ LPWSTR *awszAntecedents) = 0;

        virtual HRESULT STDMETHODCALLTYPE SetPropertyOrigin(
            /* [string][in] */ LPCWSTR wszPropertyName,
            /* [in] */ long lOriginIndex) = 0;

        virtual HRESULT STDMETHODCALLTYPE SetMethodOrigin(
            /* [string][in] */ LPCWSTR wszMethodName,
            /* [in] */ long lOriginIndex) = 0;

        virtual HRESULT STDMETHODCALLTYPE SetServerNamespace(
            /* [string][in] */ LPCWSTR wszServer,
            /* [string][in] */ LPCWSTR wszNamespace) = 0;

    };

#else 	/* C style interface */

    typedef struct IWbemConstructClassObjectVtbl
    {
        BEGIN_INTERFACE

        HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
            IWbemConstructClassObject * This,
            /* [in] */ REFIID riid,
            /* [iid_is][out] */ void **ppvObject);

        ULONG ( STDMETHODCALLTYPE *AddRef )(
            IWbemConstructClassObject * This);

        ULONG ( STDMETHODCALLTYPE *Release )(
            IWbemConstructClassObject * This);

        HRESULT ( STDMETHODCALLTYPE *SetInheritanceChain )(
            IWbemConstructClassObject * This,
            /* [in] */ long lNumAntecedents,
            /* [string][size_is][in] */ LPWSTR *awszAntecedents);

        HRESULT ( STDMETHODCALLTYPE *SetPropertyOrigin )(
            IWbemConstructClassObject * This,
            /* [string][in] */ LPCWSTR wszPropertyName,
            /* [in] */ long lOriginIndex);

        HRESULT ( STDMETHODCALLTYPE *SetMethodOrigin )(
            IWbemConstructClassObject * This,
            /* [string][in] */ LPCWSTR wszMethodName,
            /* [in] */ long lOriginIndex);

        HRESULT ( STDMETHODCALLTYPE *SetServerNamespace )(
            IWbemConstructClassObject * This,
            /* [string][in] */ LPCWSTR wszServer,
            /* [string][in] */ LPCWSTR wszNamespace);

        END_INTERFACE
    } IWbemConstructClassObjectVtbl;

    interface IWbemConstructClassObject
    {
        CONST_VTBL struct IWbemConstructClassObjectVtbl *lpVtbl;
    };

#ifdef COBJMACROS

#define IWbemConstructClassObject_QueryInterface(This,riid,ppvObject)	\
    (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)

#define IWbemConstructClassObject_AddRef(This)	\
    (This)->lpVtbl -> AddRef(This)

#define IWbemConstructClassObject_Release(This)	\
    (This)->lpVtbl -> Release(This)

#define IWbemConstructClassObject_SetInheritanceChain(This,lNumAntecedents,awszAntecedents)	\
    (This)->lpVtbl -> SetInheritanceChain(This,lNumAntecedents,awszAntecedents)

#define IWbemConstructClassObject_SetPropertyOrigin(This,wszPropertyName,lOriginIndex)	\
    (This)->lpVtbl -> SetPropertyOrigin(This,wszPropertyName,lOriginIndex)

#define IWbemConstructClassObject_SetMethodOrigin(This,wszMethodName,lOriginIndex)	\
    (This)->lpVtbl -> SetMethodOrigin(This,wszMethodName,lOriginIndex)

#define IWbemConstructClassObject_SetServerNamespace(This,wszServer,wszNamespace)	\
    (This)->lpVtbl -> SetServerNamespace(This,wszServer,wszNamespace)

#endif /* COBJMACROS */

#endif 	/* C style interface */

HRESULT STDMETHODCALLTYPE IWbemConstructClassObject_SetInheritanceChain_Proxy(
    IWbemConstructClassObject * This,
    /* [in] */ long lNumAntecedents,
    /* [string][size_is][in] */ LPWSTR *awszAntecedents);

void __RPC_STUB IWbemConstructClassObject_SetInheritanceChain_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);

HRESULT STDMETHODCALLTYPE IWbemConstructClassObject_SetPropertyOrigin_Proxy(
    IWbemConstructClassObject * This,
    /* [string][in] */ LPCWSTR wszPropertyName,
    /* [in] */ long lOriginIndex);

void __RPC_STUB IWbemConstructClassObject_SetPropertyOrigin_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);

HRESULT STDMETHODCALLTYPE IWbemConstructClassObject_SetMethodOrigin_Proxy(
    IWbemConstructClassObject * This,
    /* [string][in] */ LPCWSTR wszMethodName,
    /* [in] */ long lOriginIndex);

void __RPC_STUB IWbemConstructClassObject_SetMethodOrigin_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);

HRESULT STDMETHODCALLTYPE IWbemConstructClassObject_SetServerNamespace_Proxy(
    IWbemConstructClassObject * This,
    /* [string][in] */ LPCWSTR wszServer,
    /* [string][in] */ LPCWSTR wszNamespace);

void __RPC_STUB IWbemConstructClassObject_SetServerNamespace_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);

#endif 	/* __IWbemConstructClassObject_INTERFACE_DEFINED__ */

/* Additional Prototypes for ALL interfaces */

/* end of Additional Prototypes */

#ifdef __cplusplus
}
#endif

#endif

redpajama_set_name: RedPajamaGithub


text:
"""Tests for model_conversion_beam_utils."""

import os

from absl.testing import absltest
import tensorflow as tf

from non_semantic_speech_benchmark.export_model import model_conversion_beam_utils

class ModelConversionBeamUtilsTest(absltest.TestCase):

  def setUp(self):
    super(ModelConversionBeamUtilsTest, self).setUp()
    self.xids = ['12321', '23123', '32123']
    self.folders = [
        '1-al=8.0,ap=False,lr=0.0001,ms=large,n_required=80000,tbs=8',
        '2-al=8.0,ap=False,lr=0.0001,ms=large,n_required=80000,tbs=16',
        '3-al=8.0,ap=False,lr=0.0001,ms=large,n_required=80000,tbs=32',
    ]
    self.base_experiment_dir = os.path.join(
        absltest.get_default_test_tmpdir(), 'base_dir')
    self.output_dir = os.path.join(absltest.get_default_test_tmpdir(), 'out')
    self.conversion_types = ['tflite', 'savedmodel']

    # Make files.
    for xid in self.xids:
      for folder in self.folders:
        tf.io.gfile.makedirs(
            os.path.join(self.base_experiment_dir, xid, folder))

  def test_metadata_correctness(self):
    # Get metadata.
    metadata = model_conversion_beam_utils.get_pipeline_metadata(
        self.base_experiment_dir, self.xids, self.output_dir,
        self.conversion_types, 'suffix')

    # Check correctness.
    self.assertLen(
        metadata,
        len(self.xids) * len(self.folders) * len(self.conversion_types))
    xid_counts = {k: 0 for k in self.xids}
    model_num_counts = {k: 0 for k in range(len(self.folders))}
    conversion_type_counts = {k: 0 for k in self.conversion_types}
    for m in metadata:
      xid_counts[m.xid] += 1
      model_num_counts[m.model_num] += 1
      conversion_type_counts[m.conversion_type] += 1

    for xid in self.xids:
      self.assertEqual(xid_counts[xid], 6)
    for k in range(3):
      self.assertEqual(model_num_counts[k], 6)
    for ctype in conversion_type_counts:
      self.assertEqual(conversion_type_counts[ctype], 9)

    # Check output uniqueness.
    all_output_filenames = [m.output_filename for m in metadata]
    self.assertEqual(len(set(all_output_filenames)), len(all_output_filenames))

  def test_metadata_sanity(self):
    # Get metadata.
    metadata = model_conversion_beam_utils.get_pipeline_metadata(
        self.base_experiment_dir, self.xids, self.output_dir,
        self.conversion_types)

    for m in metadata:
      model_conversion_beam_utils.sanity_check_output_filename(
          m.output_filename)

if __name__ == '__main__':
  absltest.main()


text:
INTN
EFIAPI
ShellAppMain (
  IN UINTN Argc,
  IN CHAR16 **Argv
  )
{
	EFI_STATUS Status = 0;
	EFI_STATUS RStatus = 0;
	EFI_SHELL_PROTOCOL            *mEfiShellProtocol;
	CHAR16* Environment[] = { L"Var1=1", L"Var2=2", 0};
	Status = gBS -> LocateProtocol( &gEfiShellProtocolGuid, NULL, &mEfiShellProtocol);
	Status = mEfiShellProtocol -> Execute(&gImageHandle, L"-nomap ls fs0:",  NULL, &RStatus);
	Print(L"Execute return %r with Status %d\n", Status, RStatus);
	Status = mEfiShellProtocol -> Execute(&gImageHandle, L"-nomap -noversion -nostartup exit 1",  NULL, &RStatus);
	Print(L"Execute return %r with Status %d\n", Status, RStatus);
	Status = mEfiShellProtocol -> Execute(&gImageHandle, L"-nomap -noversion echo Var = %Var1%",  Environment, &RStatus);
	Print(L"Execute return %r with Status %d\n", Status, RStatus);
	return Status;
}


text:
<!doctype html>

  <meta charset="utf-8">
  <title>AMP Analytics</title>
  <link rel="canonical" href="analytics.amp.html" >
  <meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1">

  Google

  Internal URL

    Localhost Url

  GitHub

Integer dapibus egestas arcu. Nunc vitae velit congue, placerat augue quis, suscipit nisi. Donec suscipit imperdiet turpis pharetra feugiat. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Phasellus aliquam eleifend dolor, at lacinia orci semper vel. Nunc semper sem vel tincidunt posuere. Nunc lobortis velit vitae condimentum mollis. Morbi eu ullamcorper mauris. Pellentesque ac eros maximus, pulvinar sapien vitae, semper nisi. Curabitur imperdiet non mauris vitae sollicitudin.

Nam posuere velit euismod risus pulvinar, in sollicitudin sapien consectetur. Vestibulum nec ex odio. Quisque at elit nec nunc ultricies lacinia nec non lorem. Maecenas porttitor consequat mauris, vitae porttitor ligula pellentesque ut. Pellentesque rhoncus diam vel lacus lobortis imperdiet. Sed maximus dictum hendrerit. Vivamus ornare, purus in laoreet sagittis, est ante pretium mauris, vel vulputate arcu erat eget mauris. Suspendisse eu lorem metus. Aliquam tempus aliquet urna, vitae mollis lacus pretium vitae. Etiam semper gravida commodo. Maecenas at pulvinar quam. Nullam dolor ipsum, ornare a sollicitudin et, sodales porttitor neque.

Integer in felis at lacus mattis facilisis. Curabitur tincidunt, felis porttitor mollis finibus, tortor elit elementum dolor, vel vulputate lorem dui id ante. Vivamus in velit at lectus blandit gravida vitae quis arcu. Nam et magna magna. Fusce condimentum diam lacus, ac ullamcorper purus malesuada eu. Mauris ullamcorper elit et venenatis faucibus. Nullam lobortis molestie purus quis pellentesque. Sed at libero id nisi rhoncus tincidunt. Praesent vestibulum vehicula tristique. Etiam rutrum, nunc id porta interdum, nulla nisi molestie leo, at fermentum justo dolor at lorem. Duis in egestas sapien.

<amp-analytics type="_ping_">

</amp-analytics>

click me


text:
const _ = require("lodash");

const Transform = require("./transform");
const normalizeEntities = require("./normalize-entities");
const entityTypeDefinitions = require("../entity-types").definitions;

const storeValues = require("../stores/values");
const storeEntities = require("../stores/entities");
const storeEntityTypes = require("../stores/entity-types");
const storeMiddleware = require("../stores/middleware");

/**
 * @param {Object} store
 * @param {Object} items
 * @param {boolean} override
 */
function addToStore(store, items, override) {
  _.forOwn(items, (value, key) => {
    store.add(key, value, override);
  });
}

/**
 * setup store
 */
function addEntitiesToStore(store, entities) {
  const entitySpecs = _.defaultTo(entities, {});
  const specs = normalizeEntities.normalize(entitySpecs);

  _.forOwn(specs, specItem => {
    store.add(specItem.id, specItem.spec);
  });

  return store;
}

function create(spec) {
  const options = _.defaultTo(spec, {
    values: {},
    entities: {},
    entityTypes: {}
  });

  const entityTypes = storeEntityTypes.create();

  const manager = {
    middleware: storeMiddleware.create(),
    values: storeValues.create(),
    entities: storeEntities.create(entityTypes),
    entityTypes
  };

  // add single item (singular)
  manager.addValue = manager.values.add;

  manager.addEntityType = manager.entityTypes.add;
  // add multiple entity types
  manager.addEntityTypes = addToStore.bind(null, manager.entityTypes);

  manager.use = manager.middleware.use;

  // add collection of items (plural)
  manager.addEntities = addEntitiesToStore.bind(null, manager.entities);

  // built-in entity types
  _.forOwn(entityTypeDefinitions, (entityType, key) => {
    manager.addEntityType(key.toLowerCase(), entityType);
  });

  addToStore(manager.values, options.values, true);

  manager.addEntityTypes(options.entityTypes, true);
  manager.addEntities(options.entities);

  // supports currying
  manager.resolve = Transform.resolve(manager);
  // does not support currying
  manager.transform = Transform.transform.bind(null, manager);
  // does not support currying
  manager.resolveFromAccumulator = Transform.resolveFromAccumulator.bind(
    null,
    manager
  );

  return manager;
}

module.exports.create = create;


text:
package dbhandler

import "github.com/chandanchowdhury/HSPC/models"

//Team Score

func teamscoreCreate(teamscore models.TeamScore) int64 {
	//TODO: complete the logic

	return 0
}

func teamscoreRead(teamscore_id int64) models.TeamScore {
	var teamscore = models.TeamScore{}

	//TODO: complete the logic

	return teamscore
}

func teamscoreUpdate(teamscore models.TeamScore) int64 {
	//TODO: complete the logic

	return 0
}

func teamscoreDelete(teamscore_id int64) int64 {
	//TODO: complete the logic

	return 0
}


text:
Given /^I have set up a inventory for warehouse "(.*?)"$/ do |warehouse_name|
  w = FactoryBot.create(:warehouse)
  w.name = warehouse_name
  w.save
  i = FactoryBot.create(:inventory)
  i.warehouse_id=w.id
  i.save
  inventory = Inventory.find_by_warehouse_id w.id
  assert_equal i.id, inventory.id
end

Given /^I click edit link for inventory in warehouse "(.*?)" for "(.*?)"$/ do |warehouse_name, o|
  w = Warehouse.find_by_name warehouse_name
  i = Inventory.find_by_warehouse_id w.id
  assert_equal i.warehouse.name, warehouse_name
  edit_link = first(:xpath, "//a[contains(@href,'#{inventory_path(o, i)}')]")
  edit_link.click
end

def inventory_valid_form_data
  select "test warehouse", from: 'inventory_warehouse_id'
  find(:xpath, "//input[@id='inventory_inventory_date']").set "2014-10-01"
end

def inventory_invalid_form_data
  select "", from: 'inventory_warehouse_id'
  find(:xpath, "//input[@id='inventory_inventory_date']").set "2014-10-01"
end


text:
    Multithread read of data
    Add /resource key to REST interface that returns data for all resources and pids.
    Implement streaming of json output
    Fix bug where pid data is ignored because of incorrect path

# 2.1.0

    Make API container privileged such that protected files such as /proc/<pid>/smaps
    can be read. This has security concerns but specifying cap_add in docker-compose
    file or setcap the python3 executable did not work.

# 2.0.0

    REST API

# 1.0.0

    First viable release


text:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <artifactId>ee8-jsf-search-expression</artifactId>
    <packaging>war</packaging>

    <name>JSF 2.3: Search Expression Sample</name>

    <parent>
        <groupId>com.hantsylabs.example.ee8</groupId>
        <artifactId>ee8-sandbox</artifactId>
        <version>1.0-SNAPSHOT</version>
        <relativePath>../</relativePath>
    </parent>

    <dependencies>

        <!-- JSF 2.3 dependencies -->
		<dependency>
			<groupId>org.glassfish</groupId>
			<artifactId>jakarta.faces</artifactId>
			<scope>provided</scope>
		</dependency>

    </dependencies>
</project>


text:
@interface YLiveModel : YBaseModel

@property (copy, nonatomic) NSString *stream_addr;
@property (assign, nonatomic) NSUInteger online_users;
@property (copy, nonatomic) NSString *city;
@property (strong, nonatomic) YCreatorModel *creator;
@property (assign, nonatomic) NSUInteger _id;

@end


text:
<?php
namespace Home\Model;
use Think\Model;

class EquipmentModel extends Model {

}


text:
<?php
/*
Template Name: FAQ Template
*/
?>

<?php while (have_posts()) : the_post(); ?>
  <?php get_template_part('templates/page', 'header'); ?>
  <?php get_template_part('templates/content', 'faq'); ?>
<?php endwhile; ?>


text:
#ifndef SHARED_DATA_H
#define SHARED_DATA_H

#include "cmsat/Vec.h"
#include "cmsat/SolverTypes.h"

#include <vector>

namespace CMSat {

class SharedData
{
    public:
        vec<lbool> value;
        std::vector<std::vector<Lit> > bins;
};

}

#endif //SHARED_DATA_H


text:
module.exports = (function() {
    var ele = document.getElementById("content");
    ele.innerHTML = "my content update by external demo1.js file.";
    ele.style.color = "yellow";
})();


text:
var iconList = document.querySelector('.icon--list');
iconList.addEventListener('click', function() {
  console.log(this.parentNode);
  this.parentNode.classList.toggle('nav--show');
})

hljs.initHighlightingOnLoad();


text:
<?xml version="1.0" encoding="utf-8"?>

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    android:padding="20dp">

    <TextView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="20dp"
        android:background="@android:color/holo_orange_dark"
        android:padding="5dp"
        android:text="Range Notification:"
        android:textColor="@android:color/white"
        android:textSize="18dp" />

    <TextView
        android:id="@+id/status"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="@android:color/holo_orange_light"
        android:padding="5dp"
        android:text="None"
        android:textColor="@android:color/black"
        android:textSize="18dp" />

    <TextView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="20dp"
        android:background="@android:color/holo_blue_dark"
        android:padding="5dp"
        android:text="CO2 Status:"
        android:textColor="@android:color/white"
        android:textSize="18dp" />

    <TextView
        android:id="@+id/co2status"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="@android:color/holo_blue_light"
        android:padding="5dp"
        android:text="Co2"
        android:textColor="@android:color/black"
        android:textSize="18dp" />

    <TextView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="20dp"
        android:background="@android:color/holo_red_dark"
        android:padding="5dp"
        android:text="Temperature Status:"
        android:textColor="@android:color/white"
        android:textSize="18dp" />

    <TextView
        android:id="@+id/temperaturestatus"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="@android:color/holo_red_light"
        android:padding="5dp"
        android:text="None"
        android:textColor="@android:color/black"
        android:textSize="18dp" />

    <TextView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="20dp"
        android:background="@android:color/holo_green_dark"
        android:padding="5dp"
        android:text="Battery Status:"
        android:textColor="@android:color/white"
        android:textSize="18dp" />

    <TextView
        android:id="@+id/batterystatus"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="@android:color/holo_green_light"
        android:padding="5dp"
        android:text="None"
        android:textColor="@android:color/black"
        android:textSize="18dp" />
</LinearLayout><!-- From: file:/Users/Taimoor/Desktop/myo-android-sdk-0.6.0%202/samples/HelloWorld/src/main/res/layout/notify_demo.xml -->


text:
<?php
declare(strict_types=1);

namespace Limesharp\Stockists\Controller\Adminhtml\Stores;

use \Limesharp\Stockists\Controller\Adminhtml\Stores as StockistController;

class Index extends StockistController
{
    /**
     * Stockists list.
     *
     * @return \Magento\Backend\Model\View\Result\Page
     */
    public function execute()
    {
        /** @var \Magento\Backend\Model\View\Result\Page $resultPage */
        $resultPage = $this->resultPageFactory->create();
        $resultPage->setActiveMenu('Limesharp_Stockists::stores');
        $resultPage->getConfig()->getTitle()->prepend(__('Stockists'));
        $resultPage->addBreadcrumb(__('Stockists'), __('Stockists'));
        return $resultPage;
    }
}


text:
import {Component, Inject, OnInit} from '@angular/core';
import {Organisation, OrganisationService} from "../../../services/organisation.service";
import {ErrorHandlingService} from "../../../services/error-handling.service";
import {MAT_DIALOG_DATA, MatDialogRef} from "@angular/material";

@Component({
  selector: 'app-organisation',
  templateUrl: './organisation.component.html',
  styleUrls: ['./organisation.component.css']
})
export class OrganisationComponent implements OnInit {

  constructor(
    private organisationService: OrganisationService,
    private errorHandlingService: ErrorHandlingService,
    public dialogRef: MatDialogRef<OrganisationComponent>,
    @Inject(MAT_DIALOG_DATA) public data: any) { }

  creationDescription: String = "To create a new organisation, please enter a few details";

  editMode: boolean = false;
  submitText: string = "CREATE";

  ngOnInit() {

    if(this.data.item !== undefined) {
      this.organisationDetails.name = this.data.item.name;
      this.organisationDetails.address = this.data.item.address;
      this.organisationDetails.domain = this.data.item.domain;
      this.organisationDetails.urlFragment = this.data.item.urlFragment;
      this.organisationDetails.postcode = this.data.item.postcode;
      this.organisationDetails.id = this.data.item.id;

      this.editMode = true;
      this.submitText = "SAVE";
      this.creationDescription = "This allows the user admin to modify the details for the organisation"
    }
  }

  organisationDetails = {
    name: '',
    address: '',
    domain: '',
    urlFragment: '',
    postcode: '',
    id: -1
  };

  makeOrganisationChange() {
    let organisation : Organisation = {
      name: this.organisationDetails.name,
      address: this.organisationDetails.address,
      domain: this.organisationDetails.domain,
      urlFragment: this.organisationDetails.urlFragment,
      postcode: this.organisationDetails.postcode,
      id: this.organisationDetails.id
    };

    if(this.editMode === true) {
      this.editOrganisation(organisation)
    } else {
      this.addOrganisation(organisation)
    }
  }

  addOrganisation(organisation) {
    this.organisationService.createOne(organisation)
      .subscribe(success => {
        if (success) {
          this.closeWindow(true);
        }
      }, err => {
        this.errorHandlingService.handleError(err);
      });
  }

  editOrganisation(organisation) {
    this.organisationService.updateOne(organisation.id, organisation)
      .subscribe(success => {
        if (success) {
          this.closeWindow(true);
        }
      }, err => {
        this.errorHandlingService.handleError(err);
      });
  }

  cancel() {
    this.closeWindow(false)
  }

  closeWindow(requiresUpdate: boolean) {
    this.dialogRef.close(requiresUpdate);
  }
}


text:
#pragma once

#include <arrow-glib/arrow-glib.h>

#include <parquet-glib/version.h>

G_BEGIN_DECLS

#define GPARQUET_TYPE_WRITER_PROPERTIES         \
  (gparquet_writer_properties_get_type())
G_DECLARE_DERIVABLE_TYPE(GParquetWriterProperties,
                         gparquet_writer_properties,
                         GPARQUET,
                         WRITER_PROPERTIES,
                         GObject)
struct _GParquetWriterPropertiesClass
{
  GObjectClass parent_class;
};

GPARQUET_AVAILABLE_IN_0_17
GParquetWriterProperties *gparquet_writer_properties_new(void);
GPARQUET_AVAILABLE_IN_0_17
void
gparquet_writer_properties_set_compression(GParquetWriterProperties *properties,
                                           GArrowCompressionType compression_type,
                                           const gchar *path);
GPARQUET_AVAILABLE_IN_0_17
GArrowCompressionType
gparquet_writer_properties_get_compression_path(GParquetWriterProperties *properties,
                                                const gchar *path);
GPARQUET_AVAILABLE_IN_0_17
void
gparquet_writer_properties_enable_dictionary(GParquetWriterProperties *properties,
                                             const gchar *path);
GPARQUET_AVAILABLE_IN_0_17
void
gparquet_writer_properties_disable_dictionary(GParquetWriterProperties *properties,
                                              const gchar *path);
GPARQUET_AVAILABLE_IN_0_17
gboolean
gparquet_writer_properties_is_dictionary_enabled(GParquetWriterProperties *properties,
                                                 const gchar *path);
GPARQUET_AVAILABLE_IN_0_17
void
gparquet_writer_properties_set_dictionary_page_size_limit(GParquetWriterProperties *properties,
                                                          gint64 limit);
GPARQUET_AVAILABLE_IN_0_17
gint64
gparquet_writer_properties_get_dictionary_page_size_limit(GParquetWriterProperties *properties);
GPARQUET_AVAILABLE_IN_0_17
void
gparquet_writer_properties_set_batch_size(GParquetWriterProperties *properties,
                                          gint64 batch_size);
GPARQUET_AVAILABLE_IN_0_17
gint64
gparquet_writer_properties_get_batch_size(GParquetWriterProperties *properties);
GPARQUET_AVAILABLE_IN_0_17
void
gparquet_writer_properties_set_max_row_group_length(GParquetWriterProperties *properties,
                                                    gint64 length);
GPARQUET_AVAILABLE_IN_0_17
gint64
gparquet_writer_properties_get_max_row_group_length(GParquetWriterProperties *properties);
GPARQUET_AVAILABLE_IN_0_17
void
gparquet_writer_properties_set_data_page_size(GParquetWriterProperties *properties,
                                              gint64 data_page_size);
GPARQUET_AVAILABLE_IN_0_17
gint64
gparquet_writer_properties_get_data_page_size(GParquetWriterProperties *properties);

#define GPARQUET_TYPE_ARROW_FILE_WRITER (gparquet_arrow_file_writer_get_type())
G_DECLARE_DERIVABLE_TYPE(GParquetArrowFileWriter,
                         gparquet_arrow_file_writer,
                         GPARQUET,
                         ARROW_FILE_WRITER,
                         GObject)
struct _GParquetArrowFileWriterClass
{
  GObjectClass parent_class;
};

GParquetArrowFileWriter *
gparquet_arrow_file_writer_new_arrow(GArrowSchema *schema,
                                     GArrowOutputStream *sink,
                                     GParquetWriterProperties *writer_properties,
                                     GError **error);
GParquetArrowFileWriter *
gparquet_arrow_file_writer_new_path(GArrowSchema *schema,
                                    const gchar *path,
                                    GParquetWriterProperties *writer_properties,
                                    GError **error);

gboolean
gparquet_arrow_file_writer_write_table(GParquetArrowFileWriter *writer,
                                       GArrowTable *table,
                                       guint64 chunk_size,
                                       GError **error);

gboolean
gparquet_arrow_file_writer_close(GParquetArrowFileWriter *writer,
                                 GError **error);

G_END_DECLS


text:
'use strict';

const assert = require('assert');

const test = require('../lib/test');
const {Browser, By, logging} = require('..');

test.suite(function(env) {
  // Logging API is not supported in IE.
  // Logging API not supported in Marionette.
  // Logging API not supported in Safari.
  test.ignore(env.browsers(Browser.IE, Browser.SAFARI, Browser.FIREFOX)).
  describe('logging', function() {
    var driver;

    beforeEach(function() {
      driver = null;
    });

    afterEach(async function() {
      if (driver) {
        return driver.quit();
      }
    });

    it('can be disabled', async function() {
      var prefs = new logging.Preferences();
      prefs.setLevel(logging.Type.BROWSER, logging.Level.OFF);

      driver = await env.builder()
          .setLoggingPrefs(prefs)
          .build();

      await driver.get(dataUrl(
          '<!DOCTYPE html><script>',
          'console.info("hello");',
          'console.warn("this is a warning");',
          'console.error("and this is an error");',
          '</script>'));
      return driver.manage().logs().get(logging.Type.BROWSER)
          .then(entries => assert.equal(entries.length, 0));
    });

    // Firefox does not capture JS error console log messages.
    test.ignore(env.browsers(Browser.FIREFOX, 'legacy-firefox')).
    it('can be turned down', async function() {
      var prefs = new logging.Preferences();
      prefs.setLevel(logging.Type.BROWSER, logging.Level.SEVERE);

      driver = await env.builder()
          .setLoggingPrefs(prefs)
          .build();

      await driver.get(dataUrl(
          '<!DOCTYPE html><script>',
          'console.info("hello");',
          'console.warn("this is a warning");',
          'console.error("and this is an error");',
          '</script>'));
      return driver.manage().logs().get(logging.Type.BROWSER)
          .then(function(entries) {
            assert.equal(entries.length, 1);
            assert.equal(entries[0].level.name, 'SEVERE');
            assert.ok(/.*\"?and this is an error\"?/.test(entries[0].message));
          });
    });

    // Firefox does not capture JS error console log messages.
    test.ignore(env.browsers(Browser.FIREFOX, 'legacy-firefox')).
    it('can be made verbose', async function() {
      var prefs = new logging.Preferences();
      prefs.setLevel(logging.Type.BROWSER, logging.Level.DEBUG);

      driver = await env.builder()
          .setLoggingPrefs(prefs)
          .build();

      await driver.get(dataUrl(
          '<!DOCTYPE html><script>',
          'console.debug("hello");',
          'console.warn("this is a warning");',
          'console.error("and this is an error");',
          '</script>'));
      return driver.manage().logs().get(logging.Type.BROWSER)
          .then(function(entries) {
            assert.equal(entries.length, 3);
            assert.equal(entries[0].level.name, 'DEBUG');
            assert.ok(/.*\"?hello\"?/.test(entries[0].message));

            assert.equal(entries[1].level.name, 'WARNING');
            assert.ok(/.*\"?this is a warning\"?/.test(entries[1].message));

            assert.equal(entries[2].level.name, 'SEVERE');
            assert.ok(/.*\"?and this is an error\"?/.test(entries[2].message));
          });
    });

    // Firefox does not capture JS error console log messages.
    test.ignore(env.browsers(Browser.FIREFOX, 'legacy-firefox')).
    it('clears records after retrieval', async function() {
      var prefs = new logging.Preferences();
      prefs.setLevel(logging.Type.BROWSER, logging.Level.DEBUG);

      driver = await env.builder()
          .setLoggingPrefs(prefs)
          .build();

      await driver.get(dataUrl(
          '<!DOCTYPE html><script>',
          'console.debug("hello");',
          'console.warn("this is a warning");',
          'console.error("and this is an error");',
          '</script>'));
      await driver.manage().logs().get(logging.Type.BROWSER)
          .then(entries => assert.equal(entries.length, 3));
      return driver.manage().logs().get(logging.Type.BROWSER)
          .then(entries => assert.equal(entries.length, 0));
    });

    it('does not mix log types', async function() {
      var prefs = new logging.Preferences();
      prefs.setLevel(logging.Type.BROWSER, logging.Level.DEBUG);
      prefs.setLevel(logging.Type.DRIVER, logging.Level.SEVERE);

      driver = await env.builder()
          .setLoggingPrefs(prefs)
          .build();

      await driver.get(dataUrl(
          '<!DOCTYPE html><script>',
          'console.debug("hello");',
          'console.warn("this is a warning");',
          'console.error("and this is an error");',
          '</script>'));
      return driver.manage().logs().get(logging.Type.DRIVER)
          .then(entries => assert.equal(entries.length, 0));
    });
  });

  function dataUrl(...args) {
    return 'data:text/html,' + args.join('');
  }
});


text:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<TITLE>
Uses of Class org.openxava.mapping.ModelMapping (OpenXava 4.9.1 API)
</TITLE>

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">

      Overview
      Package
      Class
    Use
      Tree
      Deprecated
      Index
      Help

 PREV
 NEXT

  FRAMES
 NO FRAMES

  All Classes

Uses of Class
org.openxava.mapping.ModelMapping

Packages that use ModelMapping

org.openxava.mapping

org.openxava.model.meta

Uses of ModelMapping in org.openxava.mapping

Subclasses of ModelMapping in org.openxava.mapping

 class
AggregateMapping

 class
EntityMapping

Methods in org.openxava.mapping that return ModelMapping

 ModelMapping
ReferenceMapping.getContainer()

Methods in org.openxava.mapping with parameters of type ModelMapping

 void
ReferenceMapping.setContainer(ModelMapping container)

Constructors in org.openxava.mapping with parameters of type ModelMapping

PropertyMapping(ModelMapping parent)

Uses of ModelMapping in org.openxava.model.meta

Methods in org.openxava.model.meta that return ModelMapping

 ModelMapping
MetaAggregateForCollection.getMapping()

 ModelMapping
MetaAggregateForReference.getMapping()

 ModelMapping
MetaEntity.getMapping()

abstract  ModelMapping
MetaModel.getMapping()

      Overview
      Package
      Class
    Use
      Tree
      Deprecated
      Index
      Help

 PREV
 NEXT

  FRAMES
 NO FRAMES

  All Classes


text:
import warnings

from mpl_toolkits.mplot3d import Axes3D
from mpl_toolkits.mplot3d.art3d import Line3DCollection
import matplotlib.pyplot as plt
import numpy as np

class VisMatplotlib:
    def __init__(self):
        self.fig = plt.figure()
        self.ax = self.fig.add_subplot(111, projection='3d')
        self.ax.set_xlim([-5, 5])
        self.ax.set_ylim([-5, 5])
        self.ax.set_zlim([0, 3])
        self.ax.set_xlabel("X")
        self.ax.set_ylabel("Y")
        self.ax.set_zlabel("Z")
        self.plot = None
        self.timeAnnotation = self.ax.annotate("Time", xy=(0, 0), xycoords='axes fraction', fontsize=12, ha='right', va='bottom')

        self.line_color = 0.3 * np.ones(3)

        # Lazy-constructed data for connectivity graph gfx.
        self.graph_edges = None
        self.graph_lines = None
        self.graph = None

    def setGraph(self, edges):
        """Set edges of graph visualization - sequence of (i,j) tuples."""

        # Only allocate new memory if we need to.
        n_edges = len(edges)
        if self.graph_edges is None or n_edges != len(self.graph_edges):
            self.graph_lines = np.zeros((n_edges, 2, 3))
        self.graph_edges = edges

        # Lazily construct Matplotlib object for graph.
        if self.graph is None:
            self.graph = Line3DCollection(self.graph_lines, edgecolor=self.line_color)
            self.ax.add_collection(self.graph)

    def showEllipsoids(self, radii):
        warnings.warn("showEllipsoids not implemented in Matplotlib visualizer.")

    def update(self, t, crazyflies):
        xs = []
        ys = []
        zs = []
        cs = []
        for cf in crazyflies:
            x, y, z = cf.position()
            color = cf.ledRGB
            xs.append(x)
            ys.append(y)
            zs.append(z)
            cs.append(color)

        if self.plot is None:
            self.plot = self.ax.scatter(xs, ys, zs, c=cs)
        else:
            # TODO: Don't use protected members.
            self.plot._offsets3d = (xs, ys, zs)
            self.plot.set_facecolors(cs)
            self.plot.set_edgecolors(cs)
            self.plot._facecolor3d = self.plot.get_facecolor()
            self.plot._edgecolor3d = self.plot.get_edgecolor()

        if self.graph is not None:
            # Update graph line segments to match new Crazyflie positions.
            for k, (i, j) in enumerate(self.graph_edges):
                self.graph_lines[k, 0, :] = xs[i], ys[i], zs[i]
                self.graph_lines[k, 1, :] = xs[j], ys[j], zs[j]
                self.graph.set_segments(self.graph_lines)

        self.timeAnnotation.set_text("{} s".format(t))
        plt.pause(0.0001)

    def render(self):
        warnings.warn("Rendering video not supported in VisMatplotlib yet.")
        return None


text:
package org.wso2.carbon.sample.server;

import org.apache.log4j.Logger;
import org.wso2.carbon.databridge.commons.Credentials;
import org.wso2.carbon.databridge.commons.Event;
import org.wso2.carbon.databridge.commons.StreamDefinition;
import org.wso2.carbon.databridge.commons.thrift.utils.HostAddressFinder;
import org.wso2.carbon.databridge.core.AgentCallback;
import org.wso2.carbon.databridge.core.DataBridge;
import org.wso2.carbon.databridge.core.Utils.AgentSession;
import org.wso2.carbon.databridge.core.definitionstore.InMemoryStreamDefinitionStore;
import org.wso2.carbon.databridge.core.exception.DataBridgeException;
import org.wso2.carbon.databridge.core.internal.authentication.AuthenticationHandler;
import org.wso2.carbon.databridge.receiver.thrift.ThriftDataReceiver;
import org.wso2.carbon.user.api.UserStoreException;

import java.net.SocketException;
import java.util.List;

public class TestWso2EventServer {
    Logger log = Logger.getLogger(TestWso2EventServer.class);
    ThriftDataReceiver thriftDataReceiver;
    static final TestWso2EventServer testServer = new TestWso2EventServer();

    public static void main(String[] args) throws DataBridgeException {
        testServer.start(args[0],Integer.parseInt(args[1]));
        synchronized (testServer) {
            try {
                testServer.wait();
            } catch (InterruptedException ignored) {

            }
        }
    }

    public void start(String host,int receiverPort) throws DataBridgeException {
        KeyStoreUtil.setKeyStoreParams();
        DataBridge databridge = new DataBridge(new AuthenticationHandler() {
            @Override
            public boolean authenticate(String userName,
                                        String password) {
                return true;// allays authenticate to true

            }

            @Override
            public String getTenantDomain(String userName) {
                return "admin";
            }

            @Override
            public int getTenantId(String s) throws UserStoreException {
                return -1234;
            }

            @Override
            public void initContext(AgentSession agentSession) {

            }

            @Override
            public void destroyContext(AgentSession agentSession) {

            }

            public void setThreadLocalContext(AgentSession agentSession) {
                //To change body of implemented methods use File | Settings | File Templates.
            }
        }, new InMemoryStreamDefinitionStore());

        thriftDataReceiver = new ThriftDataReceiver(receiverPort, databridge);

        databridge.subscribe(new AgentCallback() {
            int totalSize = 0;

            public void definedStream(StreamDefinition streamDefinition,
                                      int tenantID) {
                log.info("StreamDefinition " + streamDefinition);
            }

            @Override
            public void removeStream(StreamDefinition streamDefinition,int tenantID) {
                //To change body of implemented methods use File | Settings | File Templates.
            }

            @Override
            public void receive(List<Event> eventList, Credentials credentials) {
                log.info("eventListSize=" + eventList.size() + " eventList " + eventList + " for username " + credentials.getUsername());
            }

        });

        try {
            String address = HostAddressFinder.findAddress(host);
            log.info("Test Server starting on " + address);
            thriftDataReceiver.start(address);
            log.info("Test Server Started");
        } catch (SocketException e) {
            log.error("Test Server not started !", e);
        }
    }

    public void stop() {
        thriftDataReceiver.stop();
        log.info("Test Server Stopped");
    }
}


text:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<title>GNU Compiler Collection (GCC) Internals: Miscellaneous Register Hooks</title>

<meta name="description" content="GNU Compiler Collection (GCC) Internals: Miscellaneous Register Hooks">
<meta name="keywords" content="GNU Compiler Collection (GCC) Internals: Miscellaneous Register Hooks">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="Generator" content="makeinfo">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="index.html#Top" rel="start" title="Top">
<link href="Option-Index.html#Option-Index" rel="index" title="Option Index">
<link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
<link href="Stack-and-Calling.html#Stack-and-Calling" rel="up" title="Stack and Calling">
<link href="Varargs.html#Varargs" rel="next" title="Varargs">
<link href="Stack-Smashing-Protection.html#Stack-Smashing-Protection" rel="prev" title="Stack Smashing Protection">

Previous: Stack Smashing Protection, Up: Stack and Calling   [Contents][Index]

17.9.15 Miscellaneous register hooks

Target Hook: bool TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS

Set to true if each call that binds to a local definition explicitly
clobbers or sets all non-fixed registers modified by performing the call.
That is, by the call pattern itself, or by code that might be inserted by the
linker (e.g. stubs, veneers, branch islands), but not including those
modifiable by the callee.  The affected registers may be mentioned explicitly
in the call pattern, or included as clobbers in CALL_INSN_FUNCTION_USAGE.
The default version of this hook is set to false.  The purpose of this hook
is to enable the fipa-ra optimization.


text:
<TITLE>Review for Men of Honor (2000)</TITLE>
<LINK REL="STYLESHEET" TYPE="text/css" HREF="/ramr.css">

Men of Honor (2000)

reviewed by
Edward Johnson-Ott

Men of Honor (2000)
Robert De Niro, Cuba Gooding Jr., Charlize Theron, Aunjanue Ellis, Hal
Holbrook, David Keith, Michael Rapaport, Powers Boothe, Joshua Leonard,
David Conrad, Glynn Turman, Holt McCallany, Lonette McKee, Carl Lumbly.
Screenplay by Scott Marshall Smith, based on the life of Carl Brashear.
Directed by George Tillman Jr. 129 minutes.
Rated PG-13, 3 stars (out of five stars)

Review by Ed Johnson-Ott, NUVO Newsweekly
www.nuvo.com
Archive reviews at
http://us.imdb.com/ReviewsBy?Edward+Johnson-Ott
To receive reviews by e-mail at no charge, send subscription requests to
ejohnsonott@prodigy.net or e-mail ejohnsonott-subscribe@onelist.com with
the word "subscribe" in the subject line.

Once in a while, I refer to a movie as a "chick flick," triggering a
handful of angry letters from people who find the term demeaning to
women. Hopefully, this review will help even things out. "Men of Honor"
is a "dick flick," the kind of movie that male best friends slap in the
VCR while drinking a few beers. "Dick flicks" focus on men following
their dreams, manly men who never give up because, damn it, they are
made of the right stuff! Invariably, the lead character has issues with
his father that are either resolved in a cathartic face to face with Dad
or through a significant encounter with a father figure. Almost always,
dick flicks include a horrific accident or a death, with tears and male
bonding galore. These moments come late in the film, giving the best
buddy viewers time to down enough beer to comfortably sniffle along with
the characters onscreen.

"Men of Honor" is far from being a great movie. The production is
generally overwrought, the dialogue is trite, it's about 25 minutes too
long and it includes that most dreaded of clichés, the climactic
courtroom scene, complete with an emotionally manipulative score. As
someone who earns his living reviewing films, it is my duty to point out
these things and treat them with disdain.

But I must tell you, in the dick flick genre, overwrought is good and
trite dialogue is forgivable (after all, it's easier to quote on repeat
viewings). As long as the film packs a macho punch, there is no such
thing as too long, and courtroom scenes are welcome because they lead to
speechifying, and best friends watching a flick and drinking beer
absolutely love speechifying.

This particular overwrought story is "based on the life" of Carl
Brashear, which means that his onscreen heroism is probably close to the
truth, while all the secondary characters are suspect. Cuba Gooding Jr.
handles the inspirational role quite well, which is no big surprise,
since the Oscar winning "Jerry Maguire" star is essentially a
motivational speech given human form.

We meet Brashear in Sonora, Kentucky in 1943, as his hard-working,
extremely poor father implores him to better himself. Years later, the
young man joins the Navy, with visions of becoming a diver. Instead, he
ends up slicing potatoes in the kitchen, as a coworker explains that
there are only three options for a black man in the Navy: be a cook, an
officer's valet, or get out of the military.

He doesn't give up, of course, and his speed in the water earns him a
spot on the Search and Rescue team. After much work, he becomes the
first black accepted in the Naval diving school. But, although
desegregation is the rule, discrimination remains the norm. Save for
one, all of the other men refuse to bunk with him and, to make matters
worse; his instructor is Master Chief Billy Sunday, a world-class bigot.

As Billy Sunday, Robert De Niro gives a terrific performance. Snappy and
fast, De Niro creates a completely new man, instead of merely playing a
variant of his standard tough guy persona, as has been his wont in
recent years. Sunday, who also came from humble beginnings, is an
alcoholic cracker with a redwood-sized chip on his shoulder. He also is
very good at his job.

Like "Remember the Titans," "Men of Honor" deals with determination in
the face of racism, but in a more believable fashion than the Disney
film. Certain characters make inroads towards conquering their bigotry,
and they manage to do so without breaking into any song and dance
numbers, thank God. The film also boasts genuinely tense face-offs, as
well as some nicely shot underwater action scenes. Standouts include a
submerged test sequence and a gripping bit of nastiness involving a
rogue submarine.

While Gooding remains front and center for the entire film and De Niro
is given ample opportunity to flesh out Billy Sunday, the supporting
characters are given short shrift. Aunjanue Ellis has a few juicy
moments as Jo, Brashear's love interest, but is mostly relegated to the
background. Charlize Theron breezes in and out as Sunday's wife and
Michael Rapaport stutters sympathetically, while David Keith, Hal
Holbrook and Powers Boothe barely get their faces onscreen.

As an inspirational drama, "Men of Honor" is generic and poky, redeemed
only somewhat by the two leads and the periodic effective segments. The
film will not go down in the dick flick hall of fame either, but it gets
the job done in that department. My suggestion: Wait until it comes out
on video, invite your best pal over, drink a few beers together and be
ready to have a fine, uncritical, overwrought evening.

© 2000 Ed Johnson-Ott

The review above was posted to the
rec.arts.movies.reviews newsgroup (de.rec.film.kritiken for German reviews).

The Internet Movie Database accepts no responsibility for the contents of the
review and has no editorial control. Unless stated otherwise, the copyright
belongs to the author.

Please direct comments/criticisms of the review to relevant newsgroups.

Broken URLs inthe reviews are the responsibility of the author.

The formatting of the review is likely to differ from the original due
to ASCII to HTML conversion.

Related links: index of all rec.arts.movies.reviews reviews


text:
package main

import (
	"encoding/json"
	"github.com/garyburd/redigo/redis"
	"log"
	"time"
)

var ErrCacheNotFound = redis.ErrNil

type Cache interface {
	Set(string, interface{}) error
	Get(string, interface{}) error
	Del(string) error
	Init() error
}

type RedisCache struct {
	Prefix string `json:"prefix"`
	Host   string `json:"host"`
	pool   *redis.Pool
}

func (r *RedisCache) Init() error {
	r.pool = &redis.Pool{
		MaxIdle:     3,
		IdleTimeout: 240 * time.Second,
		Dial: func() (redis.Conn, error) {
			c, err := redis.Dial("tcp", r.Host)
			if err != nil {
				log.Fatal(err)
			}
			return c, err
		},
		TestOnBorrow: func(c redis.Conn, t time.Time) error {
			_, err := c.Do("PING")
			return err
		},
	}
	return nil
}

func (r *RedisCache) Set(key string, data interface{}) error {
	conn := r.pool.Get()
	defer conn.Close()
	j, err := json.Marshal(data)
	if err != nil {
		return err
	}
	_, err = conn.Do("SET", r.Prefix+key, j)
	return err
}

func (r *RedisCache) Get(key string, container interface{}) error {
	conn := r.pool.Get()
	defer conn.Close()
	data, err := conn.Do("GET", r.Prefix+key)
	if err != nil {
		return err
	}
	if data == nil {
		return ErrCacheNotFound
	}
	return json.Unmarshal(data.([]byte), container)
}

func (r *RedisCache) Del(key string) error {
	conn := r.pool.Get()
	defer conn.Close()
	_, err := conn.Do("DEL", r.Prefix+key)
	return err
}


text:
// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

package org.chromium.chrome.browser.ui.default_browser_promo;

import android.annotation.SuppressLint;
import android.app.Activity;
import android.app.role.RoleManager;
import android.content.Context;
import android.content.Intent;

import org.chromium.chrome.browser.ui.default_browser_promo.DefaultBrowserPromoUtils.DefaultBrowserState;
import org.chromium.ui.base.WindowAndroid;

/**
 * Manage all types of default browser promo dialogs and listen to the activity state change to
 * trigger dialogs.
 */
public class DefaultBrowserPromoManager {
    private final Activity mActivity;
    private final @DefaultBrowserState int mCurrentState;
    private final WindowAndroid mWindowAndroid;

    /**
     * @param activity Activity to show promo dialogs.
     * @param windowAndroid The {@link WindowAndroid} for sending an intent.
     * @param currentState The current {@link DefaultBrowserState} in the system.
     */
    public DefaultBrowserPromoManager(
            Activity activity, WindowAndroid windowAndroid, @DefaultBrowserState int currentState) {
        mActivity = activity;
        mWindowAndroid = windowAndroid;
        mCurrentState = currentState;
    }

    @SuppressLint({"WrongConstant", "NewApi"})
    void promoByRoleManager() {
        RoleManager roleManager = (RoleManager) mActivity.getSystemService(Context.ROLE_SERVICE);

        Intent intent = roleManager.createRequestRoleIntent(RoleManager.ROLE_BROWSER);
        mWindowAndroid.showCancelableIntent(intent, (resultCode, data) -> {}, null);
    }
}


text:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema targetNamespace="http://mySchema"
        xmlns:xs="http://www.w3.org/2001/XMLSchema"
        xmlns:my="http://mySchema">

    <xs:element name="myElement" type="my:TYPE"/>
    <xs:simpleType name="TYPE" id="TYPE">
        <xs:restriction base="xs:integer">
            <xs:minInclusive value="0" id="nonNegativeInteger.minInclusive"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="T" id="T">
        <xs:restriction base="xs:integer">
            <xs:minInclusive value="0" id="id"/>
        </xs:restriction>
    </xs:simpleType>
</x<caret>s:schema>


text:
<!DOCTYPE html>

<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta charset="utf-8">
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><meta name="generator" content="Hugo 0.57.2" />
<meta property="og:title" content="Location" />
<meta name="twitter:title" content="location"/>
<meta itemprop="name" content="location"><meta property="og:description" content="We are happy to be hosting our event at The Overture Center for the Arts for our second year. Please check this space closer to the event for information on hotels, parking, transportation and evening event location.
 " />
  <meta name="twitter:description" content="We are happy to be hosting our event at The Overture Center for the Arts for our second year. Please check this space closer to the event for information on hotels, parking, transportation and evening event location.
 " />
  <meta itemprop="description" content="We are happy to be hosting our event at The Overture Center for the Arts for our second year. Please check this space closer to the event for information on hotels, parking, transportation and evening event location.
 "><meta name="twitter:site" content="@devopsdays">
<meta property="og:type" content="event" />
<meta property="og:url" content="/events/2017-madison/location/" /><meta name="twitter:creator" content="@devopsdaysmsn" /><meta name="twitter:label1" value="Event" />
  <meta name="twitter:data1" value="devopsdays Madison 2017" /><meta name="twitter:label2" value="Dates" />
    <meta name="twitter:data2" value="October 30 - 31, 2017" /><meta property="og:image" content="https://www.devopsdays.org/img/sharing.jpg" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:image" content="https://www.devopsdays.org/img/sharing.jpg" />
<meta itemprop="image" content="https://www.devopsdays.org/img/sharing.jpg" />
<meta property="fb:app_id" content="1904065206497317" /><meta itemprop="wordCount" content="37">
<title>devopsdays Madison 2017 - location information
</title>

<link href="/css/site.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Roboto+Condensed:300,400,700" rel="stylesheet"><link rel="apple-touch-icon" sizes="57x57" href="/apple-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="/apple-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="/apple-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="/apple-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="/apple-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="/apple-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="/apple-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="/apple-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="/apple-icon-180x180.png">
<link rel="icon" type="image/png" sizes="192x192"  href="/android-icon-192x192.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="96x96" href="/favicon-96x96.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/manifest.json">
<meta name="msapplication-TileColor" content="#ffffff">
<meta name="msapplication-TileImage" content="/ms-icon-144x144.png">
<meta name="theme-color" content="#ffffff">

      <link href="/events/index.xml" rel="alternate" type="application/rss+xml" title="DevOpsDays" />
      <link href="/events/index.xml" rel="feed" type="application/rss+xml" title="DevOpsDays" />

  DevOpsDays

<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">

</button>

events

blog

sponsor

speaking

organizing

about

  Madison
  <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbar2">

</button>

                  location

                  registration

                  program

                  speakers

                  sponsor

                  contact

                  conduct

devopsdays Madison - location

We are happy to be hosting our event at The Overture Center for the Arts for our second year. Please check this space closer to the event for information on hotels, parking, transportation and evening event location.

Gold Sponsors

Silver Sponsors

Bronze Sponsors

Community Sponsors

@DEVOPSDAYS

BLOG

10 years of devopsdays

by Kris Buytaert - 10 May, 2019

It’s hard to believe but it is almost 10 years ago since #devopsdays happened for the first time in Gent. Back then there were almost 70 of us talking about topics that were of interest to both Operations and Development, we were exchanging our ideas and experiences `on how we were improving the quality of software delivery.
Our ideas got started on the crossroads of Open Source, Agile and early Cloud Adoption.

Blogs

10 May, 2019

Feed

CFP OPEN
Campinas
Macapá
Shanghai
Recife
Charlotte
Prague
Tokyo
Salt Lake City

Propose a talk at an event near you!

About

    devopsdays is a worldwide community conference series for anyone interested in IT improvement.

    About devopsdays

    Privacy Policy

    Code of Conduct


text:
package dev.jee6demo.cdipd;

import org.jboss.weld.environment.se.Weld;
import org.jboss.weld.environment.se.WeldContainer;
import org.junit.runners.BlockJUnit4ClassRunner;
import org.junit.runners.model.InitializationError;

public class WeldJUnit4Runner extends BlockJUnit4ClassRunner {

    private final Class<?> klass;
    private final Weld weld;
    private final WeldContainer container;

    public WeldJUnit4Runner(final Class<Object> klass) throws InitializationError {
        super(klass);
        this.klass = klass;
        this.weld = new Weld();
        Runtime.getRuntime().addShutdownHook(new ShutdownHook(weld));
        this.container = weld.initialize();
    }

    @Override
    protected Object createTest() throws Exception {
        final Object test = container.instance().select(klass).get();
        return test;
    }
    /**
     * @see https://github.com/weld/core/pull/444
     *
     */
    static class ShutdownHook extends Thread {
        private final Weld weld;

        ShutdownHook(Weld weld) {
            this.weld = weld;
        }

        public void run() {
            weld.shutdown();
        }
    }
}