content
stringlengths
7
2.61M
// This function is called during bootup. It waits for devicedb to be up and running to connect to it func CreateDDBRelayConfigClient(ddbConnConfig *DeviceDBConnConfig) (*DDBRelayConfigClient, error) { var totalWaitTime int = 0 var loopWaitTime int = INITIAL_DEVICEDB_STATUS_CHECK_INTERVAL_IN_SECS var err error var tlsConfig *tls.Config if ddbConnConfig == nil { return nil, errors.New("No devicedb connection config available\n") } log.MaestroInfof("MaestroConfig: try-connect to devicedb: uri:%s prefix: %s bucket:%s id:%s cert:%s\n", ddbConnConfig.DeviceDBUri, ddbConnConfig.DeviceDBPrefix, ddbConnConfig.DeviceDBBucket, ddbConnConfig.RelayId, ddbConnConfig.CaChainCert) if len(ddbConnConfig.CaChainCert) > 0 { relayCaChain, err := ioutil.ReadFile(ddbConnConfig.CaChainCert) if err != nil { log.MaestroWarnf("MaestroConfig: Unable to access ca-chain-cert file at: %s\n", ddbConnConfig.CaChainCert) return nil, errors.New(fmt.Sprintf("NetworkManager: Unable to access ca-chain-cert file at: %s, err = %v\n", ddbConnConfig.CaChainCert, err)) } caCerts := x509.NewCertPool() if !caCerts.AppendCertsFromPEM(relayCaChain) { log.MaestroErrorf("CA chain loaded from %s is not valid: %v\n", ddbConnConfig.CaChainCert, err) return nil, errors.New(fmt.Sprintf("CA chain loaded from %s is not valid\n", ddbConnConfig.CaChainCert)) } tlsConfig = &tls.Config{ RootCAs: caCerts, } } else { tlsConfig = &tls.Config{} } ddbConfigClient := NewDDBRelayConfigClient( tlsConfig, ddbConnConfig.DeviceDBUri, ddbConnConfig.RelayId, ddbConnConfig.DeviceDBPrefix, ddbConnConfig.DeviceDBBucket) for totalWaitTime < MAX_DEVICEDB_WAIT_TIME_IN_SECS { log.MaestroInfof("maestroConfig: checking devicedb availability\n") if ddbConfigClient.IsAvailable() { break } else { log.MaestroWarnf("maestroConfig: devicedb is not running. retrying in %d seconds", loopWaitTime) time.Sleep(time.Second * time.Duration(loopWaitTime)) totalWaitTime += loopWaitTime if totalWaitTime > LOOP_WAIT_TIME_INCREMENT_WINDOW { loopWaitTime = INCREASED_DEVICEDB_STATUS_CHECK_INTERVAL_IN_SECS } } if totalWaitTime >= MAX_DEVICEDB_WAIT_TIME_IN_SECS { log.MaestroErrorf("maestroConfig: devicedb is not running, cannot fetch config from devicedb") return nil, errors.New("devicedb is not running, cannot fetch config from devicedb") } } log.MaestroInfof("maestroConfig: successfully connected to devicedb\n") return ddbConfigClient, err }
// Read and unmarshal an protected object file. func LoadProtectedObjects(file string) *list.List { var po_store ProtectedObjectStoreMessage buf, err := ioutil.ReadFile(file) if err != nil { return nil } err = proto.Unmarshal(buf, &po_store) if err != nil { return nil } l := list.New() for _, v := range po_store.ProtectedObjects { o := new(ProtectedObjectMessage) o.ProtectorObjId.ObjName = v.ProtectorObjId.ObjName o.ProtectorObjId.ObjEpoch = v.ProtectorObjId.ObjEpoch o.ProtectedObjId.ObjName = v.ProtectedObjId.ObjName o.ProtectedObjId.ObjEpoch = v.ProtectedObjId.ObjEpoch o.Blob = v.Blob l.PushFront(*o) } return l }
use crate::concept::AString; #[cfg(feature = "python")] use pyo3::prelude::*; use serde::{Deserialize, Serialize}; #[repr(C)] #[cfg_attr(feature = "python", pyclass)] #[derive(PartialEq, Deserialize, Serialize, Debug, Clone, Hash, abi_stable::StableAbi)] pub struct DaskConfig { pub server: AString, pub port: usize, } #[cfg(feature = "python")] #[pymethods] impl DaskConfig { #[new] fn new(server: String, port: usize) -> Self { DaskConfig { server: server.as_str().into(), port, } } #[getter] fn server(&self) -> String { self.server.to_string() } #[getter] fn port(&self) -> usize { self.port } }
Judge Andrew Napolitano reacted on "The Kelly File" tonight to reports that a Hillary Clinton staffer stripped "top secret" classification markings off information on her private email server. Judge Napolitano explained that would constitute two felonies: altering a top secret document and placing a top secret document in an unsecured place, in this case Clinton's server. He said that FBI investigators, now that they have the server, can look and see if the emails had the top secret classification when Clinton received them. "Our colleagues in the intelligence community have told me with certainty that if it was on that server, it can be extracted," Judge Napolitano said. "If 'top secret' was on there, we know she lied, and she committed a felony by possessing and storing top secret information on an insecure server. If 'top secret' was not there, we will know that someone removed it." He agreed with Megyn Kelly that this raises the email scandal to a whole new level, possibly that of a criminal conspiracy. Judge Napolitano noted that earlier today, he said that Clinton's legal problems were gravely serious. "Now, 16 hours later, I don't know what word to use, but they are worse than grave."
Transitions across various continuing care settings. PURPOSE to compare cross-nationally the sources and rates of admission and discharge in nursing homes. METHODS data on admission were used from the Minimum Data Set of the Resident Assessment Instrument as collected in a multi-nation database at the University of Michigan. Additional data containing longitudinal episodes were used from databases in the Netherlands, Switzerland and the USA. RESULTS the sources and rates of admission and discharge in nursing homes vary widely between countries. In Japan 47.5% of the sample was admitted from another long-term care setting, in Italy and the USA 36% and 42% respectively were admitted directly from hospital, while in Denmark and Iceland more than 60% came from home. The longitudinal data show that in the Netherlands, residents' return to home was much more likely than in Geneva or the USA (27% vs 5% vs 10%) and that in the USA a relatively large number of nursing home residents (>45%) was discharged (intermittently) to a hospital within 180 days after first admission as compared to the Netherlands (10%). CONCLUSIONS there are large differences between countries in admission and discharge to and from nursing homes. Various policies, payment schemes, care patterns and routine referrals influence this and can be studied with cross-national data now available.
BEIJING (AFP) -- A Chinese court Monday sentenced a former top official to life in prison for corruption involving millions of dollars, the latest high-profile conviction in President Xi Jinping's crackdown on graft. Su Rong, 66, was a vice chairman of the Chinese People's Political Consultative Conference, a discussion body that is part of the Communist Party-controlled government structure. He was found guilty of bribery, abuse of power and possessing "huge amounts" of assets whose origins he could not explain, said a statement on the verified social media site of the court in Jinan city, capital of the eastern province of Shandong. Graft has become endemic in China and Xi launched a much-publicised drive against corruption after coming to power in 2012, vowing to target both high-level "tigers" and low-ranking "flies". Su was "one of the graft 'tigers'", the official Xinhua news agency said in announcing his expulsion from the Communist Party last February. But analysts say China has failed to implement institutional safeguards against corruption, such as an independent judiciary and free media, leaving anti-graft campaigns subject to political influence. 2014 and possessed more than 80 million additional yuan of unknown provenance, the court statement said. In addition to receiving a life sentence, he was also deprived of his political rights for life and gave up all his personal assets. Su accepted the verdict and would not appeal, it said. Previous reports in Chinese media have connected Su to corrupt land deals in Jiangxi province during his time as party secretary there. Previously, he also served as Communist Party secretary of Qinghai and Gansu provinces. He was a vice chairman of the CPPCC for less than two years. While the post carries political prestige, it is largely a ceremonial job tasked with advising China's rubber-stamp parliament.
<filename>enduser/netmeeting/ui/conf/nmldap.cpp #include "precomp.h" #include "resource.h" #include "pfnwldap.h" #include "conf.h" #include "cr.h" #include <cstring.hpp> #include <ulsreg.h> #include "NmLdap.h" #include "version.h" #include "call.h" #include "confapi.h" #include "confutil.h" #include "dirutil.h" // One global instance CNmLDAP* g_pLDAP = NULL; CPing* g_pPing = NULL; // This flag indicates weather or not we have loaded the LDAP dll ( WLDAP::Init() ) /*static*/ bool CNmLDAP::ms_bLdapDLLLoaded = false; //////////////////////////////////////////////////////////////////////////////////////// // Helper Macros // the ldap_modify function takes an LDAPMod** type // If it took an array of LDAPMod ( an LDAPMod* type ) // Then life would be easier for us to make static lists // Unfortunately, this is not how it works, so we have macros // to pretty things up ( and hopefully not to confuse anyone ) // This is to declare an LDAPMod with one val #define DECLARE_LDAP_MOD( t, x, y )\ LPTSTR aVals_##x[] = { y, NULL };\ LDAPMod LDAPMod_##x = { t, _T(#x), aVals_##x } // This is to declare an LDAPMod with 2 vals #define DECLARE_LDAP_MOD2( t, x, y1, y2 )\ LPTSTR aVals_##x[] = { y1, y2, NULL };\ LDAPMod LDAPMod_##x = { t, _T(#x), aVals_##x } #define LDAP_MOD_ENTRY( x ) &LDAPMod_##x #define LDAP_MOD_ADD_ENTRY( x ) &LDAPMod_add_##x //////////////////////////////////////////////////////////////////////////////////////// // Some helpful deffinitions #define LDAP_REFRESH_BASE_DN _T("objectClass=RTPerson") #define RESOLVE_USER_SEARCH_FILTER _T("(&(objectClass=RTPerson)(cn=%s))") //NOTE: The LDAP_REFRESH_FILTER... notice the sttl=10... aparently, this is how you request the // server to restart the TTL countdown... the sttl= value can be anything BUT '*' ( the value you would // expecte it to be... ) This is a link to the "Dynamir Ldap Extension RFC" if you want more info // http://www.critical-angle.com/ldapworld/draft-ietf-asid-ldapv3ext-04.txt #define LDAP_REFRESH_FILTER _T("(&(objectClass=RTPerson)(cn=%s)(sttl=10))") #define LOGIN_USER_FILTER _T("c=-,o=Microsoft,cn=%s,objectClass=RTPerson") #define IP_ADDRESS_ATTR_NAME _T("sipaddress") #define STTL_ATTR_NAME _T("sttl") #define CNmLDAP_WCNAME _T("CNmLDAP_WCNAME") #define LDAP_MODOP_ADDAPP _T("0") #define LDAP_MODOP_DELETEAPP _T("1") #define LDAP_MODOP_MODIFYUSER _T("2") #define LDAP_MODOP_MODIFYAPP _T("3") #define LDAP_ATTR_FALSE _T("0") #define LDAP_ATTR_TRUE _T("1") #define LDAP_ATTR_BUSINESS _T("2") // We are not using the country name anymore, but we can't leave the country // field blank ( empty string ), it is just the way that SiteServer is written... #define LDAP_ATTR_DUMMY_COUNTRYNAME _T("-") #define INVALID_MSG_ID ((ULONG) -1) // same as ldap_****() #define LDAP_RESULT_ERROR ((ULONG) -1) #define LDAP_RESULT_TIMEOUT 0 // When the bind helper thread function gets the result to bind_s function // it passes it to this thread via PostMessage( m_hWndHidder, WM_USER_BIND_COMPLETE, ret, err ) #define WM_USER_BIND_COMPLETE (WM_APP + 1) // wParam = Return code from bind_s, lParam = GetLastError() #define WM_NEED_RELOGON (WM_APP + 2) CNmLDAP::CNmLDAP() : m_State(Uninitialized), m_pKeepAlive(NULL), m_hWndHidden(NULL), m_pLdap(NULL), m_ResultPollTimer(0), m_LogoffTimer(0), m_uMsgID(INVALID_MSG_ID), m_CurrentOp(Op_NoOp), m_bVisible(true), m_bDirty(false), m_bRefreshAfterBindCompletes(false), m_bLogoffAfterBindCompletes(false), m_bSendInCallAttrWhenDone(false), m_bInCall(false), m_hEventWaitForLogoffDone(NULL), m_hBindThread(NULL), m_iPort(DEFAULT_LDAP_PORT), m_bAudioHardware(false), m_bVideoHardware(false) { DBGENTRY(CNmLDAP::CNmLDAP); SetLoggedOn( false ); DBGEXIT(CNmLDAP::CNmLDAP); } CNmLDAP::~CNmLDAP() { DBGENTRY(CNmLDAP::~CNmLDAP); if (NULL != m_pKeepAlive) { m_pKeepAlive->End(TRUE); // synchronous end m_pKeepAlive = NULL; } if((m_State != Idle) && (m_State != Uninitialized)) { // Make sure that someone at least has already called Logoff() ASSERT((LoggingOff == m_State) || (Op_Logoff == m_CurrentOp)); // We are logging off, but we would like to wait a while to make sure that // all of our async operations are completed... We don't want to wait too long, // Though... Basically we set a timer to pass a message to us... if we get that // message, we signal m_hEventWaitForLogoffDone.... if any of the async operations // complete during this time, they will also signal this event....We make sure to // hawe a message loop ( AtlWaitWithWessageLoop ) so that our wndproc will be called m_hEventWaitForLogoffDone = CreateEvent(NULL,TRUE,FALSE,NULL); if(m_hEventWaitForLogoffDone) { m_LogoffTimer = ::SetTimer(m_hWndHidden, WaitForLogoffTimer, LOGOFF_WAIT_INTERVAL, NULL); if(m_LogoffTimer) { AtlWaitWithMessageLoop(m_hEventWaitForLogoffDone); } CloseHandle(m_hEventWaitForLogoffDone); m_hEventWaitForLogoffDone = NULL; } else { ERROR_OUT(("Create Event failed")); } if( Binding == m_State ) { WARNING_OUT(("Aborting an ldap_bind because we are closing down in ~CNmLDAP")); TerminateThread(m_hBindThread, 0); CloseHandle(m_hBindThread); } else if(Idle != m_State) { WARNING_OUT(("Aborting pending LDAP operation in ~CNmLDAP")); _AbandonAllAndSetToIdle(); } } if( NULL != m_hWndHidden ) { DestroyWindow( m_hWndHidden ); m_hWndHidden = NULL; } m_State = Uninitialized; SetLoggedOn( false ); DBGEXIT(CNmLDAP::~CNmLDAP); } HRESULT CNmLDAP::_bCallChangedHelper() { TRACE_OUT(("CNmLDAP::_bCallChangedHelper:enter: m_State:%d: m_currentOp:%d", m_State, m_CurrentOp)); HRESULT hr = S_OK; if( IsLoggedOn() || IsBusy() ) { if(LoggedIn == m_State) { // We simply have to bind and call ldap_modify m_CurrentOp = Op_Modifying_InCallAttr; hr = _BindAsync(); } else if((SettingAppInfo == m_State) || (ModifyingAttrs == m_State) || (AddingUser == m_State) ) { // the other states will be calling ldap_mod( user Attributes ) which will pick up // the change to m_bInCall. The states listed above are the ones that occur after // the user attributes have been sent to the server... There are also other states // that logoff, so they don't care about sending the update to the user attribute to the server m_bSendInCallAttrWhenDone = true; } } TRACE_OUT(("CNmLDAP::_bCallChangedHelper:exit(0x%08X): m_State:%d: m_currentOp:%d", hr, m_State, m_CurrentOp)); return hr; } HRESULT CNmLDAP::OnCallStarted() { DBGENTRY(CNmLDAP::OnCallStarted); TRACE_OUT(("CNmLDAP::OnCallStarted:enter: m_State:%d: m_currentOp:%d", m_State, m_CurrentOp)); HRESULT hr = S_OK; ASSERT(ms_bLdapDLLLoaded); if( !m_bInCall ) { m_bInCall = true; hr = _bCallChangedHelper(); } TRACE_OUT(("CNmLDAP::OnCallStarted:exit(0x%08X): m_State:%d: m_currentOp:%d", hr, m_State, m_CurrentOp)); DBGEXIT_HR(CNmLDAP::OnCallStarted,hr); return hr; } HRESULT CNmLDAP::OnCallEnded() { DBGENTRY(CNmLDAP::OnCallEnded); TRACE_OUT(("CNmLDAP::OnCallEnded:enter: m_State:%d: m_currentOp:%d", m_State, m_CurrentOp)); HRESULT hr = S_OK; ASSERT(ms_bLdapDLLLoaded); if( m_bInCall ) { m_bInCall = false; hr = _bCallChangedHelper(); } TRACE_OUT(("CNmLDAP::OnCallEnded:exit(0x%08X): m_State:%d: m_currentOp:%d", hr, m_State, m_CurrentOp)); DBGEXIT_HR(CNmLDAP::OnCallEnded,hr); return hr; } bool CNmLDAP::IsLoggedOn() const { DBGENTRY(CNmLDAP::IsLoggedOn); TRACE_OUT(("CNmLDAP::IsLoggedOn:enter: m_State:%d: m_currentOp:%d", m_State, m_CurrentOp)); bool bRet = ( ( LoggedIn == m_State ) || ( ModifyingAttrs == m_State ) || ( Op_Refresh_Logoff == m_CurrentOp ) || ( Op_Modifying_InCallAttr == m_CurrentOp ) ); TRACE_OUT(("CNmLDAP::IsLoggedOn:exit(%d): m_State:%d: m_currentOp:%d", bRet, m_State, m_CurrentOp)); DBGEXIT(CNmLDAP::IsLoggedOn); return bRet; } bool CNmLDAP::IsLoggingOn() const { DBGENTRY(CNmLDAP::IsLoggingOn); TRACE_OUT(("CNmLDAP::IsLoggingOn:enter: m_State:%d: m_currentOp:%d", m_State, m_CurrentOp)); bool bRet = ( ( AddingUser == m_State ) || ( UserAdded == m_State ) || ( SettingAppInfo == m_State ) || ( Op_Logon == m_CurrentOp ) ); TRACE_OUT(("CNmLDAP::IsLoggingOn:exit(%d): m_State:%d: m_currentOp:%d", bRet, m_State, m_CurrentOp)); DBGEXIT(CNmLDAP::IsLoggingOn); return bRet; } bool CNmLDAP::IsBusy() const { DBGENTRY(CNmLDAP::IsBusy); TRACE_OUT(("CNmLDAP::IsBusy:enter: m_State:%d: m_currentOp:%d", m_State, m_CurrentOp)); bool bRet = !((LoggedIn == m_State) || ( Idle == m_State ) || (Uninitialized == m_State)); TRACE_OUT(("CNmLDAP::IsBusy:exit(%d): m_State:%d: m_currentOp:%d", bRet, m_State, m_CurrentOp)); DBGEXIT(CNmLDAP::IsBusy); return bRet; } void CNmLDAP::_MakeStatusText(UINT uResID, LPTSTR psz, UINT cch) const { const TCHAR * const server = CDirectoryManager::get_displayName( m_strCurrentServer ); USES_RES2T; LPCTSTR pszFmt = RES2T(uResID); LPTSTR pszStr = new TCHAR[(lstrlen(pszFmt) + lstrlen(server) - 1)]; if(pszStr) { wsprintf(pszStr, pszFmt, server); lstrcpyn(psz, pszStr, cch); delete [] pszStr; } } HRESULT CNmLDAP::GetStatusText(LPTSTR psz, int cch, UINT *idIcon ) const { DBGENTRY(CNmLDAP::GetStatusText); UINT idDummy; if (NULL == idIcon) { // Just so we don't need to do switches all over the place idIcon = &idDummy; } HRESULT hr = S_OK; TRACE_OUT(("m_State = %d", m_State)); TRACE_OUT(("CNmLDAP::GetStatusText:enter: m_State:%d: m_currentOp:%d", m_State, m_CurrentOp)); if(psz) { if( cch > 1 ) { USES_RES2T switch(m_State) { case LoggedIn: case ModifyingAttrs: *idIcon = IDI_NET; _MakeStatusText(ID_STATUS_LOGGEDON_FORMAT, psz, cch); break; case Binding: { switch(m_CurrentOp) { case Op_Logon: *idIcon = IDS_STATUS_WAITING; _MakeStatusText(ID_STATUS_LOGON_FORMAT, psz, cch); break; case Op_Modifying_InCallAttr: *idIcon = IDI_NET; _MakeStatusText(ID_STATUS_LOGGEDON_FORMAT, psz, cch); break; case Op_Refresh_Logoff: if( lstrcmpi(m_strServer,m_strCurrentServer)) { *idIcon = IDS_STATUS_WAITING; _MakeStatusText(ID_STATUS_LOGOFF_FORMAT, psz, cch); } else { *idIcon = IDI_NET; _MakeStatusText(ID_STATUS_LOGGEDON_FORMAT, psz, cch); } break; case Op_Logoff: *idIcon = IDI_NETGRAY; lstrcpyn(psz, RES2T(ID_STATUS_LOGGEDOFF), cch); break; } break; } case AddingUser: case UserAdded: case SettingAppInfo: *idIcon = IDS_STATUS_WAITING; _MakeStatusText(ID_STATUS_LOGON_FORMAT, psz, cch); break; case LoggingOff: *idIcon = IDS_STATUS_WAITING; _MakeStatusText(ID_STATUS_LOGOFF_FORMAT, psz, cch); break; case Bound: case Idle: case Uninitialized: *idIcon = IDI_NETGRAY; lstrcpyn(psz, RES2T(ID_STATUS_LOGGEDOFF), cch); break; default: ERROR_OUT(("Not a regognized state: %d", m_State)); break; } } else { hr = E_INVALIDARG; } } else { hr = E_POINTER; } TRACE_OUT(("CNmLDAP::GetStatusText:exit(0x%08X): m_State:%d: m_currentOp:%d", hr, m_State, m_CurrentOp)); DBGEXIT_HR(CNmLDAP::GetStatusText,hr); return hr; } HRESULT CNmLDAP::OnSettingsChanged() { DBGENTRY(CNmLDAP::OnSettingsChanged); TRACE_OUT(("CNmLDAP::OnSettingsChanged:enter: m_State:%d: m_currentOp:%d", m_State, m_CurrentOp)); HRESULT hr = S_OK; ASSERT(ms_bLdapDLLLoaded); if(S_OK == _GetUserSettingsFromRegistryAndGlobals()) { hr = OnReLogon(); } TRACE_OUT(("CNmLDAP::OnSettingsChanged:exit(0x%08X): m_State:%d: m_currentOp:%d", hr, m_State, m_CurrentOp)); DBGEXIT_HR(CNmLDAP::OnSettingsChanged,hr); return hr; } HRESULT CNmLDAP::OnReLogon(void) { HRESULT hr = S_OK; ASSERT(ms_bLdapDLLLoaded); m_bDirty = true; if(IsLoggedOn() || IsBusy()) { hr = _RefreshServer(); } return hr; } HRESULT CNmLDAP::_RefreshServer() { DBGENTRY(CNmLDAP::_RefreshServer); TRACE_OUT(("CNmLDAP::_RefreshServer:enter: m_State:%d: m_currentOp:%d", m_State, m_CurrentOp)); HRESULT hr = S_OK; ASSERT(ms_bLdapDLLLoaded); if( m_bDirty ) { if(Binding == m_State) { if(Op_Logon == m_CurrentOp) // we are logging on and haven't sent any user information yet { // Check to see if we have not changed the server name if( !lstrcmpi(m_strServer, CDirectoryManager::get_defaultServer() ) ) { // Simply update the user settings _GetUserSettingsFromRegistryAndGlobals(); } else { // Since the server has changed, we have to do a logoff(from old)/logon(to new) _InternalLogoff(true); } } else if(m_CurrentOp != Op_Logoff) { // If we are in the middle of a bind operation, which happens // in another thread, we just have to wait for it to complete // before we go any further m_bRefreshAfterBindCompletes = true; } } else if(Idle == m_State) { _GetUserSettingsFromRegistryAndGlobals(); LogonAsync(); } else { _InternalLogoff(true); } } TRACE_OUT(("CNmLDAP::_RefreshServer:exit(0x%08X): m_State:%d: m_currentOp:%d", hr, m_State, m_CurrentOp)); DBGEXIT_HR(CNmLDAP::_RefreshServer,hr); return hr; } void CNmLDAP::_AbandonAllAndSetState(eState new_state) { TRACE_OUT(("CNmLDAP::_AbandonAllAndSetState:enter: new_state=%d, m_State:%d: m_currentOp:%d", new_state, m_State, m_CurrentOp)); if(m_ResultPollTimer) { ::KillTimer(m_hWndHidden,m_ResultPollTimer); m_ResultPollTimer = 0; } if(m_pLdap) { if( INVALID_MSG_ID != m_uMsgID ) { WLDAP::ldap_abandon(m_pLdap, m_uMsgID); } WLDAP::ldap_unbind(m_pLdap); } m_pLdap = NULL; m_uMsgID = INVALID_MSG_ID; m_State = new_state; m_CurrentOp = Op_NoOp; SetLoggedOn( IsLoggedOn() ); TRACE_OUT(("CNmLDAP::_AbandonAllAndSetState:exit: m_State:%d: m_currentOp:%d", m_State, m_CurrentOp)); } HRESULT CNmLDAP::_InternalLogoff(bool bRefreshLogoff) { DBGENTRY(CNmLDAP::_InternalLogoff); TRACE_OUT(("CNmLDAP::_InternalLogoff:enter: m_State:%d: m_currentOp:%d", m_State, m_CurrentOp)); HRESULT hr = S_OK; ASSERT(ms_bLdapDLLLoaded); if( ( LoggingOff != m_State ) && ( Idle != m_State ) ) { if(bRefreshLogoff) { m_CurrentOp = Op_Refresh_Logoff; // If the server names are different, this means // that we should display "logging off" XXX if( lstrcmpi(m_strServer, m_strCurrentServer) ) { _OnLoggingOff(); } } else { _OnLoggingOff(); m_CurrentOp = Op_Logoff; } if( LoggedIn == m_State ) { hr = _BindAsync(); } else if( Binding == m_State ) { m_bLogoffAfterBindCompletes = true; } else if( (INVALID_MSG_ID != m_uMsgID ) && (NULL != m_pLdap )) { // Kill the timer ASSERT(m_ResultPollTimer); ::KillTimer(m_hWndHidden,m_ResultPollTimer); m_ResultPollTimer = 0; // Abandon the current op WLDAP::ldap_abandon(m_pLdap, m_uMsgID); m_uMsgID = INVALID_MSG_ID; m_State = Bound; SetLoggedOn( IsLoggedOn() ); } if(Bound == m_State) { ASSERT(m_pLdap); _DeleteUser(); } } TRACE_OUT(("CNmLDAP::_InternalLogoff:exit(0x%08X): m_State:%d: m_currentOp:%d", hr, m_State, m_CurrentOp)); DBGEXIT_HR(CNmLDAP::_InternalLogoff,hr); return hr; } HRESULT CNmLDAP::Logoff() { DBGENTRY(CNmLDAP::Logoff); TRACE_OUT(("CNmLDAP::Logoff:enter: m_State:%d: m_currentOp:%d", m_State, m_CurrentOp)); HRESULT hr = _InternalLogoff(false); TRACE_OUT(("CNmLDAP::Logoff:exit(0x%08X): m_State:%d: m_currentOp:%d", hr, m_State, m_CurrentOp)); DBGEXIT_HR(CNmLDAP::Logoff,hr); return hr; } HRESULT CNmLDAP::Initialize( HINSTANCE hInst ) { HRESULT hr = S_OK; DBGENTRY(CNmLDAP::Initialize); TRACE_OUT(("CNmLDAP::Initialize:enter: m_State:%d: m_currentOp:%d", m_State, m_CurrentOp)); ASSERT( Uninitialized == m_State ); if( ms_bLdapDLLLoaded || SUCCEEDED( hr = WLDAP::Init())) { ms_bLdapDLLLoaded = true; //////////////////////////////////////// // Initialize user data _GetUserSettingsFromRegistryAndGlobals(); //////////////////////////////////////// // Initialize hidden Window WNDCLASS wcHidden = { 0L, _sWndProc, 0, 0, hInst, NULL, NULL, NULL, NULL, CNmLDAP_WCNAME }; if(RegisterClass(&wcHidden)) { m_hWndHidden = ::CreateWindow( CNmLDAP_WCNAME, g_szEmpty, 0, 0, 0, 0, 0, NULL, NULL, hInst, this); if( m_hWndHidden ) { m_State = Idle; SetLoggedOn( IsLoggedOn() ); } else { hr = HRESULT_FROM_WIN32(GetLastError()); } } else { hr = HRESULT_FROM_WIN32(GetLastError()); } } else { ERROR_OUT(("WLDAP::Init failed ( could not load wldap32.dll? )")); } TRACE_OUT(("CNmLDAP::Initialize:exit(0x%08X): m_State:%d: m_currentOp:%d", hr, m_State, m_CurrentOp)); DBGEXIT_HR(CNmLDAP::Initialize,hr); return hr; } HRESULT CNmLDAP::_GetUserSettingsFromRegistryAndGlobals() { DBGENTRY(CNmLDAP::_GetUserSettingsFromRegistryAndGlobals); TRACE_OUT(("CNmLDAP::_GetUserSettingsFromRegistryAndGlobals:enter: m_State:%d: m_currentOp:%d", m_State, m_CurrentOp)); HRESULT hr = S_FALSE; // this would indicate that nothing changed RegEntry reULS(ISAPI_CLIENT_KEY, HKEY_CURRENT_USER); if(lstrcmpi(m_strSurName, reULS.GetString(ULS_REGKEY_LAST_NAME))) { hr = S_OK; m_strSurName = reULS.GetString(ULS_REGKEY_LAST_NAME); } if(lstrcmpi(m_strGivenName, reULS.GetString(ULS_REGKEY_FIRST_NAME))) { hr = S_OK; m_strGivenName = reULS.GetString(ULS_REGKEY_FIRST_NAME); } if(lstrcmpi(m_strEmailName, reULS.GetString(REGVAL_ULS_EMAIL_NAME))) { hr = S_OK; m_strEmailName = reULS.GetString(REGVAL_ULS_EMAIL_NAME); } if(lstrcmpi(m_strComment, reULS.GetString(ULS_REGKEY_COMMENTS))) { hr = S_OK; m_strComment = reULS.GetString(ULS_REGKEY_COMMENTS); } if(lstrcmpi(m_strLocation, reULS.GetString(ULS_REGKEY_LOCATION))) { hr = S_OK; m_strLocation = reULS.GetString(ULS_REGKEY_LOCATION); } if(lstrcmpi(m_strSecurityToken, reULS.GetString(ULS_REGKEY_CLIENT_ID))) { hr = S_OK; m_strSecurityToken = reULS.GetString(ULS_REGKEY_CLIENT_ID); } if(*m_strSecurityToken == '\0') { // The string was not found... // When we log onto the LDAP server, we pass a fairly unique ID // This is passed as the value to the ssecurity attribute // In the case that NetMeeting goes away without actually logging // off of the ILS server, when NetMeeting tries to log back on, // it will pass this unique ID... if the server has not closed the // session account for the user, the server uses this ID to "authenticate" // that we are the same user as the last session... TCHAR szNewClientID[MAX_PATH]; wsprintf(szNewClientID,"%lu", ::GetTickCount()); m_strSecurityToken = szNewClientID; reULS.SetValue(ULS_REGKEY_CLIENT_ID,szNewClientID); hr = S_OK; } if( lstrcmpi(m_strServer, CDirectoryManager::get_defaultServer())) { hr = S_OK; m_strServer = CDirectoryManager::get_defaultServer(); m_iPort = DEFAULT_LDAP_PORT; } if(m_bVisible != (!reULS.GetNumber(ULS_REGKEY_DONT_PUBLISH, REGVAL_ULS_DONT_PUBLISH_DEFAULT))) { m_bVisible = !reULS.GetNumber(ULS_REGKEY_DONT_PUBLISH, REGVAL_ULS_DONT_PUBLISH_DEFAULT); hr = S_OK; } if(m_bAudioHardware != (0 != (g_uMediaCaps & CAPFLAG_SEND_AUDIO))) { m_bAudioHardware = (0 != (g_uMediaCaps & CAPFLAG_SEND_AUDIO)); hr = S_OK; } if(m_bVideoHardware != (0 != (g_uMediaCaps & CAPFLAG_SEND_VIDEO))) { m_bVideoHardware = (0 != (g_uMediaCaps & CAPFLAG_SEND_VIDEO)); hr = S_OK; } TRACE_OUT(("CNmLDAP::_GetUserSettingsFromRegistryAndGlobals:exit(0x%08X): m_State:%d: m_currentOp:%d", hr, m_State, m_CurrentOp)); DBGEXIT_HR(CNmLDAP::_GetUserSettingsFromRegistryAndGlobals,hr); return hr; } HRESULT CNmLDAP::LogonAsync( LPCTSTR pcszServer /*=NULL*/) { HRESULT hr = S_OK; DBGENTRY(CNmLDAP::LogonAsync); TRACE_OUT(("CNmLDAP::LogonAsync:enter: m_State:%d: m_currentOp:%d", m_State, m_CurrentOp)); // Idle // Normal logon //Binding // Op_Logoff // Change it to logon refresh // Bound // ldap_umbind-> Logon normal // LoggingOff // Change to Op_Refresh_Logoff // Uninitialized // return error // AddingUser // do nothing // UserAdded // do nothing // SettingAppInfo // do nothing // ModifyingAttrs // do nothing // LoggedIn // do nothing // Op_Refresh_Logoff // Do nothing // Op_Modifying_InCallAttr // Do Nothing // Op_Logon // Do Nothing if( Uninitialized != m_State) { if(Bound == m_State) { _AbandonAllAndSetToIdle(); } if(Idle == m_State) { if(pcszServer) { m_strServer = pcszServer; m_iPort = DEFAULT_LDAP_PORT; } else { if(!IsLoggedOn()) { _GetUserSettingsFromRegistryAndGlobals(); } } m_strCurrentServer = m_strServer; g_pCCallto->SetIlsServerName( m_strCurrentServer ); TCHAR* szDN = new TCHAR[ lstrlen( LOGIN_USER_FILTER ) + lstrlen(m_strEmailName) + 1 ]; if( szDN ) { wsprintf(szDN, LOGIN_USER_FILTER, (LPCTSTR) m_strEmailName); m_strCurrentDN = szDN; delete [] szDN; m_CurrentOp = Op_Logon; hr = _BindAsync(); if( SUCCEEDED(hr) ) { _OnLoggingOn(); } } else { hr = E_OUTOFMEMORY; } } else if((Op_Logoff == m_CurrentOp) || (LoggingOff == m_State)) { m_CurrentOp = Op_Refresh_Logoff; } } else { hr = E_FAIL; } TRACE_OUT(("CNmLDAP::LogonAsync:exit(0x%08X): m_State:%d: m_currentOp:%d", hr, m_State, m_CurrentOp)); DBGEXIT_HR(CNmLDAP::LogonAsync,hr); return hr; } HRESULT CNmLDAP::_BindAsync() { DBGENTRY(CNmLDAP::_BindAsync); TRACE_OUT(("CNmLDAP::_BindAsync:enter: m_State:%d: m_currentOp:%d", m_State, m_CurrentOp)); ASSERT(( LoggedIn == m_State ) || ( Idle == m_State )); ASSERT( m_CurrentOp != Op_NoOp ); ASSERT(m_hBindThread == NULL); HRESULT hr = S_OK; // Set our state to Binding m_State = Binding; SetLoggedOn( IsLoggedOn() ); // Start the bind in another thread DWORD dwBindThreadID = 0; m_hBindThread = CreateThread(NULL, 0, _sAsyncBindThreadFn, this, 0, &dwBindThreadID); if(NULL == m_hBindThread) { ERROR_OUT(("CreateThread failed")); hr = HRESULT_FROM_WIN32(GetLastError()); WLDAP::ldap_unbind(m_pLdap); m_pLdap = NULL; m_CurrentOp = Op_NoOp; m_State = Idle; } SetLoggedOn( IsLoggedOn() ); TRACE_OUT(("CNmLDAP::_BindAsync:exit(0x%08X): m_State:%d: m_currentOp:%d", hr, m_State, m_CurrentOp)); DBGEXIT_HR(CNmLDAP::_BindAsync,hr); return hr; } /*static*/ DWORD CNmLDAP::_sAsyncBindThreadFn(LPVOID lpParameter) { DBGENTRY(CNmLDAP::_sAsyncBindThreadFn); ASSERT(lpParameter); CNmLDAP* pThis = reinterpret_cast<CNmLDAP*>(lpParameter); ASSERT(pThis); ULONG ulRet = LDAP_OPERATIONS_ERROR; ULONG ulErr = ERROR_INVALID_HANDLE; if( pThis ) { WSADATA wsaData; if( WSAStartup( 0x0101, &wsaData ) == 0 ) { if( wsaData.wVersion > 1 ) { pThis->m_pLdap = WLDAP::ldap_init( const_cast<LPTSTR>((LPCTSTR)pThis->m_strCurrentServer), pThis->m_iPort ); if( pThis->m_pLdap ) { ::SetLastError(NO_ERROR); ulRet = WLDAP::ldap_bind_s(pThis->m_pLdap, const_cast<LPTSTR>(g_szEmpty), const_cast<LPTSTR>(g_szEmpty), LDAP_AUTH_SIMPLE ); if( ulRet == LDAP_SUCCESS ) { ulErr = ::GetLastError(); ::SendMessage(pThis->m_hWndHidden, WM_USER_BIND_COMPLETE, ulRet, ulErr); } else if( pThis->m_iPort == DEFAULT_LDAP_PORT ) { WLDAP::ldap_unbind( pThis->m_pLdap ); pThis->m_pLdap = WLDAP::ldap_init( const_cast<LPTSTR>((LPCTSTR)pThis->m_strCurrentServer), ALTERNATE_LDAP_PORT); // Automatically retry with alternate port... if( pThis->m_pLdap != NULL ) { ::SetLastError(NO_ERROR); ulRet = WLDAP::ldap_bind_s(pThis->m_pLdap, const_cast<LPTSTR>(g_szEmpty), const_cast<LPTSTR>(g_szEmpty), LDAP_AUTH_SIMPLE ); if( ulRet == LDAP_SUCCESS ) { pThis->m_iPort = ALTERNATE_LDAP_PORT; } ulErr = ::GetLastError(); ::SendMessage(pThis->m_hWndHidden, WM_USER_BIND_COMPLETE, ulRet, ulErr); } else { TRACE_OUT(("ldap_init failed")); pThis->m_State = Idle; pThis->m_CurrentOp = Op_NoOp; } } } else { TRACE_OUT(("ldap_init failed")); pThis->m_State = Idle; pThis->m_CurrentOp = Op_NoOp; } } WSACleanup(); } } DBGEXIT(CNmLDAP::_sAsyncBindThreadFn); return ulRet; } LRESULT CNmLDAP::WndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) { LRESULT lr = TRUE; DBGENTRY(CNmLDAP::WndProc); switch( uMsg ) { case WM_USER_BIND_COMPLETE: _OnUserBindComplete((INT)wParam, (DWORD)lParam); break; case WM_TIMER: lr = FALSE; // This means that we handle the message _OnTimer(wParam); break; case WM_NEED_RELOGON: OnReLogon(); break; default: lr = DefWindowProc(hwnd, uMsg, wParam, lParam); break; } DBGEXIT_ULONG(CNmLDAP::WndProc,lr); return lr; } void CNmLDAP::_OnTimer(UINT_PTR TimerID) { DBGENTRY(CNmLDAP::_OnTimer); TRACE_OUT(("CNmLDAP::_OnTimer:enter: m_State:%d: m_currentOp:%d", m_State, m_CurrentOp)); // We check the timer ID values first because we may have killed the timer, // and the message couldv be simply vestigal ( that means left over from an earlier time)... if(m_LogoffTimer && (WaitForLogoffTimer == TimerID)) { // We are waiting in the distructor for an async operation to complete // and we have waited too long... kill the timer and set the m_hEventWaitForLogoffDone event ::KillTimer(m_hWndHidden, m_LogoffTimer); m_LogoffTimer = 0; if(m_hEventWaitForLogoffDone) { SetEvent(m_hEventWaitForLogoffDone); } } else if( (INVALID_MSG_ID != m_uMsgID) && m_ResultPollTimer && (PollForResultTimer == TimerID )) { ASSERT(m_pLdap); ::KillTimer( m_hWndHidden, m_ResultPollTimer ); m_ResultPollTimer = 0; LDAPMessage *pMsg = NULL; LDAP_TIMEVAL TimeoutVal = { 0, 0 }; INT res = WLDAP::ldap_result( m_pLdap, m_uMsgID, LDAP_MSG_ALL, &TimeoutVal, &pMsg ); if( 0 == res ) { // ldap_result timedout m_ResultPollTimer = ::SetTimer( m_hWndHidden, PollForResultTimer, RESULT_POLL_INTERVAL, NULL ); if( !m_ResultPollTimer ) { ERROR_OUT(("SetTimer failed!")); _AbandonAllAndRecoverState(); } } else if( LDAP_RESULT_ERROR == res ) { ERROR_OUT(("ldap_result failed")); _AbandonAllAndRecoverState(); } else { // We got the result, so reset this m_uMsgID = INVALID_MSG_ID; if( AddingUser == m_State ) { _OnAddingUserResult(pMsg->lm_returncode); WLDAP::ldap_msgfree(pMsg); } else if( ( SettingAppInfo == m_State ) || ( ModifyingAttrs == m_State ) ) { _OnSettingAppInfoOrModifyingAttrsResult(pMsg->lm_returncode); WLDAP::ldap_msgfree(pMsg); } else if( LoggingOff == m_State ) { _OnLoggingOffResult(pMsg->lm_returncode); WLDAP::ldap_msgfree(pMsg); } } } TRACE_OUT(("CNmLDAP::_OnTimer:exit: m_State:%d: m_currentOp:%d", m_State, m_CurrentOp)); DBGEXIT(CNmLDAP::_OnTimer); } void CNmLDAP::_OnUserBindComplete(INT LdapResult, DWORD LastError ) { DBGENTRY(CNmLDAP::_OnUserBindComplete); TRACE_OUT(("CNmLDAP::_OnUserBindComplete:enter(%d): m_State:%d: m_currentOp:%d", LdapResult, m_State, m_CurrentOp)); ASSERT(m_hBindThread); ASSERT(Binding == m_State); CloseHandle(m_hBindThread); m_hBindThread = NULL; if(LDAP_SUCCESS == LdapResult) { m_State = Bound; SetLoggedOn( IsLoggedOn() ); if( m_bRefreshAfterBindCompletes ) { // If a refresh is attempted while // the bind operation is in progress // we just wait for the bind to complete // then we well do the refresh m_bRefreshAfterBindCompletes = false; _RefreshServer(); } else if( m_bLogoffAfterBindCompletes ) { m_bLogoffAfterBindCompletes = false; _DeleteUser(); } else { if( Op_Logon == m_CurrentOp ) { m_CurrentOp = Op_NoOp; _AddUser(); } else if( Op_Logoff == m_CurrentOp ) { m_CurrentOp = Op_NoOp; _DeleteUser(); } else if( Op_Refresh_Logoff == m_CurrentOp ) { _DeleteUser(); } else if( Op_Modifying_InCallAttr == m_CurrentOp ) { m_CurrentOp = Op_NoOp; _ModifyInCallAttr(); } } } else { eCurrentOp OldOp = m_CurrentOp; _AbandonAllAndRecoverState(OldOp); if( ( Op_Refresh_Logoff == OldOp ) && ( lstrcmpi( m_strCurrentServer, m_strServer ) ) ) { // If the server names have changed... // Suppose that the server you are logged on to // goes down and then you change the server that you want // to be logged on to ( before you have any indication that // the server has gone down... You want to log off the old server // But the server is not available... We are basically going to // ignore the fact that there was a problem logging off // from the server, and we are going to simply log on to the new server _OnLoggedOff(); LogonAsync(); } else if( Op_Logoff == OldOp ) { // We don't have to put up a message box... _OnLoggedOff(); } else { if( (LDAP_SERVER_DOWN == LdapResult) || (LDAP_TIMEOUT == LdapResult) ) { if (Op_Modifying_InCallAttr == OldOp) { ERROR_OUT(("ldap_bind for InCallAttr returns server-down or timeout")); } else { ::PostConfMsgBox(IDS_ULSLOGON_BADSERVER); _OnLoggedOff(); } } else { ERROR_OUT(("ldap_bind returned error 0x%08x LdapResult, GetLastError == 0x%08x", LdapResult, LastError)); } } } TRACE_OUT(("CNmLDAP::_OnUserBindComplete:exit: m_State:%d: m_currentOp:%d", m_State, m_CurrentOp)); DBGEXIT(CNmLDAP::_OnUserBindComplete); } void CNmLDAP::_OnLoggingOffResult(int Result) { DBGENTRY(CNmLDAP::_OnLoggingOffResult); TRACE_OUT(("CNmLDAP::_OnLoggingOffResult:enter(%d): m_State:%d: m_currentOp:%d", Result, m_State, m_CurrentOp)); if( (LDAP_SUCCESS == Result) || (LDAP_NO_SUCH_OBJECT == Result) || (LDAP_SERVER_DOWN == Result)) { // We are waiting in the destructor for the ldap logof operations to complete // Now that it has, we hawe to signal the destructor unblocks if(m_hEventWaitForLogoffDone) { SetEvent(m_hEventWaitForLogoffDone); } _OnLoggedOff(); } else { ERROR_OUT(("Ldap Error 0x%08x", Result)); } WLDAP::ldap_unbind(m_pLdap); m_State = Idle; m_pLdap = NULL; SetLoggedOn( IsLoggedOn() ); if( Op_Refresh_Logoff == m_CurrentOp ) { m_CurrentOp = Op_NoOp; LogonAsync(); } TRACE_OUT(("CNmLDAP::_OnLoggingOffResult:exit: m_State:%d: m_currentOp:%d", m_State, m_CurrentOp)); DBGEXIT(CNmLDAP::_OnLoggingOffResult); } void CNmLDAP::_OnSettingAppInfoOrModifyingAttrsResult(int Result) { DBGENTRY(CNmLDAP::_OnSettingAppInfoOrModifyingAttrsResult); TRACE_OUT(("CNmLDAP::_OnSettingAppInfoOrModifyingAttrsResult:enter(%d): m_State:%d: m_currentOp:%d", Result, m_State, m_CurrentOp)); if( LDAP_SUCCESS == Result) { // start the keep alive thread if (NULL != m_pKeepAlive) { m_pKeepAlive->Start(); } if(SettingAppInfo == m_State) { m_State = LoggedIn; SetLoggedOn( IsLoggedOn() ); _OnLoggedOn(); } else { m_State = LoggedIn; SetLoggedOn( IsLoggedOn() ); } if( m_bSendInCallAttrWhenDone ) { m_bSendInCallAttrWhenDone = false; _ModifyInCallAttr(); } else { WLDAP::ldap_unbind(m_pLdap); if(m_ResultPollTimer) { ::KillTimer(m_hWndHidden,m_ResultPollTimer); m_ResultPollTimer = 0; } m_uMsgID = INVALID_MSG_ID; m_pLdap = NULL; m_State = LoggedIn; SetLoggedOn( IsLoggedOn() ); } } else { ERROR_OUT( ("Ldap Error 0x%08x, DN=%s", Result, m_strCurrentDN) ); if (ModifyingAttrs == m_State && NULL != m_pKeepAlive) { _AbandonAllAndRecoverState(); if(LDAP_NO_SUCH_OBJECT == Result) { _OnLoggedOff(); LogonAsync(); } } else { _AbandonAllAndSetToIdle(); _OnLoggedOff(); if(LDAP_NO_SUCH_OBJECT == Result) { LogonAsync(); } } } TRACE_OUT(("CNmLDAP::_OnSettingAppInfoOrModifyingAttrsResult:exit: m_State:%d: m_currentOp:%d", m_State, m_CurrentOp)); DBGEXIT(CNmLDAP::_OnSettingAppInfoOrModifyingAttrsResult); } void CNmLDAP::_OnAddingUserResult( int Result) { DBGENTRY(CNmLDAP::_OnAddingUserResult); TRACE_OUT(("CNmLDAP::_OnAddingUserResult:enter(%d): m_State:%d: m_currentOp:%d", Result, m_State, m_CurrentOp)); if( LDAP_SUCCESS == Result ) { m_State = UserAdded; SetLoggedOn( IsLoggedOn() ); _SetAppInfo(); } else { UINT uStringID; switch( Result ) { case LDAP_ALREADY_EXISTS: uStringID = IDS_ULSLOGON_DUPLICATE; break; case LDAP_NAMING_VIOLATION: uStringID = IDS_ULSLOGON_WORD_FILTER; break; case LDAP_UNWILLING_TO_PERFORM: uStringID = IDS_ILLEGALEMAILNAME; break; case LDAP_UNDEFINED_TYPE: case LDAP_SERVER_DOWN: // W2K server returns this under heavy load situations... uStringID = IDS_ULSLOGON_ERROR; break; default: uStringID = IDS_ULSLOGON_ERROR; ERROR_OUT( ("Ldap Error 0x%08x, DN=%s", Result, m_strCurrentDN) ); break; } ::PostConfMsgBox( uStringID ); _OnLoggedOff(); WLDAP::ldap_unbind(m_pLdap); m_pLdap = NULL; m_State = Idle; SetLoggedOn( IsLoggedOn() ); } TRACE_OUT(("CNmLDAP::_OnAddingUserResult:exit: m_State:%d: m_currentOp:%d", m_State, m_CurrentOp)); DBGEXIT(CNmLDAP::_OnAddingUserResult); } /*static*/ LRESULT CNmLDAP::_sWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) { LRESULT lr = 0; if( WM_NCCREATE != uMsg ) { CNmLDAP* pNmLdap = reinterpret_cast<CNmLDAP*>( ::GetWindowLongPtr( hwnd, GWLP_USERDATA ) ); if( pNmLdap ) { lr = pNmLdap->WndProc( hwnd, uMsg, wParam, lParam ); } } else { lr = TRUE; // This means to continue creating the window CREATESTRUCT* pCreateStruct = reinterpret_cast<CREATESTRUCT*>(lParam); if( pCreateStruct ) { ::SetWindowLongPtr( hwnd, GWLP_USERDATA, reinterpret_cast<LONG_PTR>(pCreateStruct->lpCreateParams)); } } return lr; } void CNmLDAP::_SetAppInfo() { DBGENTRY(CNmLDAP::_SetInfo); TRACE_OUT(("CNmLDAP::_SetInfo:enter: m_State:%d: m_currentOp:%d", m_State, m_CurrentOp)); ASSERT(NULL != m_pLdap); ASSERT(UserAdded == m_State); ASSERT(INVALID_MSG_ID == m_uMsgID); // These are the app attribute vals DECLARE_LDAP_MOD(LDAP_MOD_ADD, smodop, LDAP_MODOP_ADDAPP); DECLARE_LDAP_MOD(LDAP_MOD_ADD, sappid, _T("ms-netmeeting")); DECLARE_LDAP_MOD(LDAP_MOD_ADD, smimetype, _T("text/iuls")); DECLARE_LDAP_MOD(LDAP_MOD_ADD, sappguid, _T("008aff194794cf118796444553540000")); DECLARE_LDAP_MOD2(LDAP_MOD_ADD, sprotid, _T("t120"), _T("h323")); DECLARE_LDAP_MOD2(LDAP_MOD_ADD, sprotmimetype, _T("text/t120"), _T("text/h323")); DECLARE_LDAP_MOD2(LDAP_MOD_ADD, sport, _T("1503"), _T("1720")); // This is the app mod array LDAPMod *apModApp[] = { LDAP_MOD_ENTRY(smodop), LDAP_MOD_ENTRY(sappid), LDAP_MOD_ENTRY(smimetype), LDAP_MOD_ENTRY(sappguid), LDAP_MOD_ENTRY(sprotid), LDAP_MOD_ENTRY(sprotmimetype), LDAP_MOD_ENTRY(sport), NULL }; m_uMsgID = WLDAP::ldap_modify( m_pLdap, const_cast<LPTSTR>((LPCTSTR)m_strCurrentDN), apModApp ); if( INVALID_MSG_ID != m_uMsgID ) { m_ResultPollTimer = ::SetTimer( m_hWndHidden, PollForResultTimer, RESULT_POLL_INTERVAL, NULL ); ASSERT(m_ResultPollTimer); m_State = SettingAppInfo; } else { DWORD dwErr; ERROR_OUT(("ldap_modify returned error 0x%08x", (WLDAP::ldap_get_option(m_pLdap, LDAP_OPT_ERROR_NUMBER, &dwErr), dwErr))); WLDAP::ldap_unbind(m_pLdap); m_pLdap = NULL; m_State = Idle; } SetLoggedOn( IsLoggedOn() ); TRACE_OUT(("CNmLDAP::_SetInfo:exit: m_State:%d: m_currentOp:%d", m_State, m_CurrentOp)); DBGEXIT(CNmLDAP::_SetInfo); } void CNmLDAP::_ModifyInCallAttr() { TRACE_OUT(("CNmLDAP::_ModifyInCallAttr:enter: m_State:%d: m_currentOp:%d", m_State, m_CurrentOp)); DECLARE_LDAP_MOD(LDAP_MOD_REPLACE, smodop, LDAP_MODOP_MODIFYUSER); DECLARE_LDAP_MOD(LDAP_MOD_REPLACE, ilsA26214430, m_bInCall ? LDAP_ATTR_TRUE : LDAP_ATTR_FALSE); LDAPMod *apMod[] = { LDAP_MOD_ENTRY(smodop), LDAP_MOD_ENTRY(ilsA26214430), NULL }; TRACE_OUT(("About to modify InCallAttrs for this person: %s", m_strCurrentDN)); m_uMsgID = WLDAP::ldap_modify( m_pLdap, const_cast<LPTSTR>((LPCTSTR)m_strCurrentDN), apMod ); if( INVALID_MSG_ID != m_uMsgID ) { m_ResultPollTimer = ::SetTimer( m_hWndHidden, PollForResultTimer, RESULT_POLL_INTERVAL, NULL ); ASSERT(m_ResultPollTimer); m_State = ModifyingAttrs; } else { DWORD dwErr; ERROR_OUT(("ldap_modify returned error 0x%08x", (WLDAP::ldap_get_option(m_pLdap, LDAP_OPT_ERROR_NUMBER, &dwErr), dwErr))); WLDAP::ldap_unbind(m_pLdap); m_pLdap = NULL; m_State = (NULL != m_pKeepAlive) ? LoggedIn : Idle; // restore the state } SetLoggedOn( IsLoggedOn() ); TRACE_OUT(("CNmLDAP::_ModifyInCallAttr:exit: m_State:%d: m_currentOp:%d", m_State, m_CurrentOp)); } void CNmLDAP::_DeleteUser() { DBGENTRY(CNmLDAP::_DeleteUser); TRACE_OUT(("CNmLDAP::_DeleteUser:enter: m_State:%d: m_currentOp:%d", m_State, m_CurrentOp)); // end the keep alive thread if (NULL != m_pKeepAlive) { m_pKeepAlive->End(); m_pKeepAlive = NULL; } ASSERT(NULL != m_pLdap); ASSERT(Bound == m_State); ASSERT(INVALID_MSG_ID == m_uMsgID); m_uMsgID = WLDAP::ldap_delete(m_pLdap, const_cast<LPTSTR>((LPCTSTR)(m_strCurrentDN))); if( INVALID_MSG_ID != m_uMsgID ) { m_State = LoggingOff; m_ResultPollTimer = ::SetTimer( m_hWndHidden, PollForResultTimer, RESULT_POLL_INTERVAL, NULL ); ASSERT(m_ResultPollTimer); } else { WLDAP::ldap_unbind(m_pLdap); m_pLdap = NULL; m_State = Idle; } SetLoggedOn( IsLoggedOn() ); TRACE_OUT(("CNmLDAP::_DeleteUser:exit: m_State:%d: m_currentOp:%d", m_State, m_CurrentOp)); DBGEXIT(CNmLDAP::_DeleteUser); } void CNmLDAP::_AddUser() { DBGENTRY(CNmLDAP::_AddUser); TRACE_OUT(("CNmLDAP::_AddUser:enter: m_State:%d: m_currentOp:%d", m_State, m_CurrentOp)); ASSERT(NULL != m_pLdap); ASSERT(Bound == m_State); ASSERT(INVALID_MSG_ID == m_uMsgID); // These are the user attribute values DECLARE_LDAP_MOD(LDAP_MOD_ADD, cn, const_cast<LPTSTR>((LPCTSTR)m_strEmailName)); DECLARE_LDAP_MOD(LDAP_MOD_ADD, givenname, const_cast<LPTSTR>((LPCTSTR)m_strGivenName)); DECLARE_LDAP_MOD(LDAP_MOD_ADD, surname, const_cast<LPTSTR>((LPCTSTR)m_strSurName)); DECLARE_LDAP_MOD(LDAP_MOD_ADD, rfc822mailbox, const_cast<LPTSTR>((LPCTSTR)m_strEmailName)); DECLARE_LDAP_MOD(LDAP_MOD_ADD, location, const_cast<LPTSTR>((LPCTSTR)m_strLocation)); DECLARE_LDAP_MOD(LDAP_MOD_ADD, comment, const_cast<LPTSTR>((LPCTSTR)m_strComment)); DECLARE_LDAP_MOD(LDAP_MOD_ADD, sflags, m_bVisible ? LDAP_ATTR_TRUE : LDAP_ATTR_FALSE ); DECLARE_LDAP_MOD(LDAP_MOD_ADD, ilsA26214430, m_bInCall ? LDAP_ATTR_TRUE : LDAP_ATTR_FALSE ); DECLARE_LDAP_MOD(LDAP_MOD_ADD, ilsA32833566, m_bAudioHardware ? LDAP_ATTR_TRUE : LDAP_ATTR_FALSE ); DECLARE_LDAP_MOD(LDAP_MOD_ADD, ilsA32964638, m_bVideoHardware ? LDAP_ATTR_TRUE : LDAP_ATTR_FALSE ); DECLARE_LDAP_MOD(LDAP_MOD_ADD, ilsA39321630, LDAP_ATTR_BUSINESS ); DECLARE_LDAP_MOD(LDAP_MOD_ADD, ssecurity, const_cast<LPTSTR>((LPCTSTR)m_strSecurityToken)); DECLARE_LDAP_MOD(LDAP_MOD_ADD, c, LDAP_ATTR_DUMMY_COUNTRYNAME); // We have to get IP address dynamically TCHAR szIpAddr[MAX_PATH]; szIpAddr[0] = _T('\0'); DWORD dwLocalIPAddress = INADDR_NONE; _GetIpAddressOfLdapSession( szIpAddr, CCHMAX(szIpAddr), &dwLocalIPAddress ); DECLARE_LDAP_MOD(LDAP_MOD_ADD, sipaddress, szIpAddr); // We store the version info on the server TCHAR szVer[MAX_PATH]; wsprintf(szVer,"%lu",VER_PRODUCTVERSION_DW); DECLARE_LDAP_MOD(LDAP_MOD_ADD, ilsA26279966, szVer); // This is the user mod array LDAPMod *apModUser[] = { LDAP_MOD_ENTRY(cn), LDAP_MOD_ENTRY(givenname), LDAP_MOD_ENTRY(surname), LDAP_MOD_ENTRY(rfc822mailbox), LDAP_MOD_ENTRY(location), LDAP_MOD_ENTRY(comment), LDAP_MOD_ENTRY(c), LDAP_MOD_ENTRY(sipaddress), LDAP_MOD_ENTRY(sflags), LDAP_MOD_ENTRY(ssecurity), LDAP_MOD_ENTRY(ilsA26214430), LDAP_MOD_ENTRY(ilsA26279966), LDAP_MOD_ENTRY(ilsA32833566), LDAP_MOD_ENTRY(ilsA32964638), LDAP_MOD_ENTRY(ilsA39321630), NULL }; TCHAR* szDN = new TCHAR[ lstrlen(LOGIN_USER_FILTER) + lstrlen(m_strEmailName) + 1 ]; if( szDN ) { wsprintf(szDN, LOGIN_USER_FILTER, (LPCTSTR) m_strEmailName); m_strCurrentDN = szDN; delete [] szDN; } TCHAR* szRefresh = new TCHAR[ lstrlen(LDAP_REFRESH_FILTER) + lstrlen(m_strEmailName) + 1 ]; if( szRefresh ) { wsprintf(szRefresh, LDAP_REFRESH_FILTER, (LPCTSTR)m_strEmailName); } m_uMsgID = WLDAP::ldap_add( m_pLdap, const_cast<LPTSTR>((LPCTSTR)m_strCurrentDN), apModUser ); if( INVALID_MSG_ID != m_uMsgID ) { m_State = AddingUser; m_ResultPollTimer = ::SetTimer( m_hWndHidden, PollForResultTimer, RESULT_POLL_INTERVAL, NULL ); ASSERT(m_ResultPollTimer); // create the keep alive object if (NULL != m_pKeepAlive) { m_pKeepAlive->End(); m_pKeepAlive = NULL; } BOOL fRet = FALSE; m_pKeepAlive = new CKeepAlive(&fRet, m_hWndHidden, dwLocalIPAddress, m_strCurrentServer, m_iPort, szRefresh); ASSERT(NULL != m_pKeepAlive && fRet); } else { WLDAP::ldap_unbind(m_pLdap); m_pLdap = NULL; m_State = Idle; } delete [] szRefresh; SetLoggedOn( IsLoggedOn() ); TRACE_OUT(("CNmLDAP::_AddUser:exit: m_State:%d: m_currentOp:%d", m_State, m_CurrentOp)); DBGEXIT(CNmLDAP::_AddUser); } void CNmLDAP::_OnLoggedOn() { DBGENTRY(CNmLDAP::_OnLoggedOn); TRACE_OUT(("CNmLDAP::_OnLoggedOn:enter: m_State:%d: m_currentOp:%d", m_State, m_CurrentOp)); ::UpdateUI(CRUI_STATUSBAR | CRUI_CALLANIM, TRUE); TRACE_OUT(("CNmLDAP::_OnLoggedOn:exit: m_State:%d: m_currentOp:%d", m_State, m_CurrentOp)); DBGEXIT(CNmLDAP::_OnLoggedOn); } void CNmLDAP::_OnLoggedOff() { DBGENTRY(CNmLDAP::_OnLoggedOff); TRACE_OUT(("CNmLDAP::_OnLoggedOff:enter: m_State:%d: m_currentOp:%d", m_State, m_CurrentOp)); ::UpdateUI(CRUI_STATUSBAR | CRUI_CALLANIM, TRUE); TRACE_OUT(("CNmLDAP::_OnLoggedOff:exit: m_State:%d: m_currentOp:%d", m_State, m_CurrentOp)); DBGEXIT(CNmLDAP::_OnLoggedOff); } void CNmLDAP::_OnLoggingOn() { DBGENTRY(CNmLDAP::_OnLoggingOn); TRACE_OUT(("CNmLDAP::_OnLoggingOn:enter: m_State:%d: m_currentOp:%d", m_State, m_CurrentOp)); ::UpdateUI(CRUI_STATUSBAR | CRUI_CALLANIM, TRUE); TRACE_OUT(("CNmLDAP::_OnLoggingOn:exit: m_State:%d: m_currentOp:%d", m_State, m_CurrentOp)); DBGEXIT(CNmLDAP::_OnLoggingOn); } void CNmLDAP::_OnLoggingOff() { DBGENTRY(CNmLDAP::_OnLoggingOff); TRACE_OUT(("CNmLDAP::_OnLoggingOff:enter: m_State:%d: m_currentOp:%d", m_State, m_CurrentOp)); ::UpdateUI(CRUI_STATUSBAR | CRUI_CALLANIM, TRUE); TRACE_OUT(("CNmLDAP::_OnLoggingOff:exit: m_State:%d: m_currentOp:%d", m_State, m_CurrentOp)); DBGEXIT(CNmLDAP::_OnLoggingOff); } void CNmLDAP::_GetIpAddressOfLdapSession( LPTSTR szIpAddr, int cchMax, DWORD *pdwIPAddr ) { DBGENTRY(CNmLDAP::_GetIpAddressOfLdapSession); if (NULL != szIpAddr) { szIpAddr[0] = _T('\0'); } SOCKET s = INVALID_SOCKET; if( LDAP_SUCCESS == WLDAP::ldap_get_option(m_pLdap, LDAP_OPT_DESC, &s )) { SOCKADDR_IN addr; int NameLen = sizeof(addr); if(0 == getsockname(s, reinterpret_cast<SOCKADDR*>(&addr), &NameLen)) { if (NULL != szIpAddr) { wsprintf(szIpAddr, "%u", addr.sin_addr.s_addr); } if (NULL != pdwIPAddr) { *pdwIPAddr = addr.sin_addr.s_addr; } } } DBGEXIT(CNmLDAP::_GetIpAddressOfLdapSession); } void InitNmLdapAndLogon() { ASSERT( NULL == g_pLDAP ); g_pLDAP = new CNmLDAP; if(g_pLDAP) { // Initialize the LDAP object... if( SUCCEEDED(g_pLDAP->Initialize( _Module.GetModuleInstance()))) { g_pLDAP->LogonAsync(); } else { delete g_pLDAP; g_pLDAP = NULL; } } else { ERROR_OUT(("new CNmLDAP returned NULL")); } } ///////////////////////////////////////////////////////// // // CKeepAlive // void CALLBACK KeepAliveTimerProc(HWND, UINT, UINT_PTR, DWORD) { // doing nothing at all } DWORD KeepAliveThreadProc(LPVOID pParam) { // make sure we have a valid socket WSADATA wsaData; int iRet = ::WSAStartup(0x0101, &wsaData); ASSERT(! iRet); if (! iRet) { CKeepAlive *pKeepAlive = (CKeepAlive *) pParam; ASSERT(NULL != pKeepAlive); // translate server name into ip address if (pKeepAlive->SetServerIPAddress()) { // start the timer UINT nKeepAliveInterval = INITIAL_REFRESH_INTERVAL_MINUTES; UINT_PTR nTimerID = ::SetTimer(NULL, 0, nKeepAliveInterval * 60 * 1000, KeepAliveTimerProc); ASSERT(nTimerID); // watch for the timer message MSG msg, msg2; while (::GetMessage(&msg, NULL, 0, 0)) { msg2 = msg; // keep a copy of this message // dispatch messages ::DispatchMessage(&msg); // intercept the WM_TIMER message thru msg2 if (WM_TIMER == msg2.message && nTimerID == msg2.wParam) { BOOL fRetry = TRUE; // kill the timer to avoid timer overrun ::KillTimer(NULL, nTimerID); nTimerID = 0; // ping the server in case of dialup networking if (pKeepAlive->Ping()) { // connect to the server LDAP *ld = WLDAP::ldap_open(pKeepAlive->GetServerName(), pKeepAlive->GetServerPortNumber()); if (NULL != ld) { if (pKeepAlive->Bind(ld)) { if (pKeepAlive->KeepAlive(ld, &nKeepAliveInterval)) { // successfully send a keep alive fRetry = FALSE; DWORD dwLocalIPAddress = pKeepAlive->GetLocalIPAddress(ld); if (INADDR_NONE != dwLocalIPAddress) { if (pKeepAlive->GetLocalIPAddress() != dwLocalIPAddress) { pKeepAlive->SetLocalIPAddress(dwLocalIPAddress); pKeepAlive->UpdateIPAddressOnServer(); } } } } WLDAP::ldap_unbind(ld); } } // start the new timer based on the new internal nTimerID = ::SetTimer(NULL, 0, fRetry ? (15 * 1000) : (nKeepAliveInterval * 60 * 1000), KeepAliveTimerProc); ASSERT(nTimerID); } // if wm timer } // while get message if (nTimerID) { ::KillTimer(NULL, nTimerID); } } delete pKeepAlive; ::WSACleanup(); } return 0; } CKeepAlive::CKeepAlive ( BOOL *pfRet, HWND hwndMainThread, DWORD dwLocalIPAddress, const TCHAR * const pcszServerName, UINT nPort, LPTSTR pszKeepAliveFilter ) : m_hwndMainThread(hwndMainThread), m_dwLocalIPAddress(dwLocalIPAddress), m_dwServerIPAddress(INADDR_NONE), m_pszServerName(NULL), m_nPort(nPort), m_pszKeepAliveFilter(NULL), m_hThread(NULL), m_dwThreadID(0), m_fAborted(FALSE) { *pfRet = FALSE; // assume failure // sanity check ASSERT(NULL != hwndMainThread); ASSERT(INADDR_NONE != dwLocalIPAddress && 0 != dwLocalIPAddress); ASSERT(nPort); // create the server name ASSERT(NULL != pcszServerName); ULONG nStrLen = ::lstrlen(pcszServerName) + 1; m_pszServerName = new TCHAR[nStrLen]; if (NULL != m_pszServerName) { ::CopyMemory(m_pszServerName, pcszServerName, nStrLen * sizeof(TCHAR)); TCHAR * const pszPort = StrChr( m_pszServerName, ':' ); if( pszPort != NULL ) { // Truncate the server name here for dns lookup.... // and this port number overrides the nPort parameter... *pszPort = '\0'; HRESULT hrResult = DecimalStringToUINT( pszPort + 1, m_nPort ); ASSERT( hrResult == S_OK ); if( hrResult != S_OK ) { m_nPort = DEFAULT_LDAP_PORT; } } // create the fresh filter ASSERT(NULL != pszKeepAliveFilter); nStrLen = ::lstrlen(pszKeepAliveFilter) + 1; m_pszKeepAliveFilter = new TCHAR[nStrLen]; if (NULL != m_pszKeepAliveFilter) { ::CopyMemory(m_pszKeepAliveFilter, pszKeepAliveFilter, nStrLen * sizeof(TCHAR)); *pfRet = TRUE; } } } CKeepAlive::~CKeepAlive(void) { delete m_pszServerName; delete m_pszKeepAliveFilter; } BOOL CKeepAlive::Start(void) { if (! m_dwThreadID) { ASSERT(NULL == m_hThread); // create the worker thread m_hThread = ::CreateThread(NULL, 0, KeepAliveThreadProc, this, 0, &m_dwThreadID); } ASSERT(NULL != m_hThread); return (NULL != m_hThread); } BOOL CKeepAlive::End(BOOL fSync) { DWORD dwRet = WAIT_OBJECT_0; // cache thread handle and ID HANDLE hThread = m_hThread; DWORD dwThreadID = m_dwThreadID; // abort any pending operation m_fAborted = TRUE; // notify the worker thread to go away if (m_dwThreadID) { ASSERT(NULL != m_hThread); m_dwThreadID = 0; ::PostThreadMessage(dwThreadID, WM_QUIT, 0, 0); } // wait for the worker thread exit for 5 seconds if (NULL != hThread) { // need more work to unblock it if (fSync) { dwRet = ::WaitForSingleObject(hThread, 5000); // 5 second timeout ASSERT(WAIT_TIMEOUT != dwRet); } ::CloseHandle(hThread); } return (WAIT_TIMEOUT != dwRet); } BOOL CKeepAlive::SetServerIPAddress(void) { ASSERT(NULL != m_pszServerName); // check to see if the server name is a dotted IP address string m_dwServerIPAddress = ::inet_addr(m_pszServerName); if (INADDR_NONE == m_dwServerIPAddress) { // it is not a dotted string, it must be a name. // get the host entry by name PHOSTENT phe = ::gethostbyname(m_pszServerName); if (phe != NULL) { // get info from the host entry m_dwServerIPAddress = *(DWORD *) phe->h_addr; } } ASSERT(INADDR_NONE != m_dwServerIPAddress); return (INADDR_NONE != m_dwServerIPAddress); } BOOL CKeepAlive::Ping(void) { BOOL fRet = TRUE; // assume success if (NULL != g_pPing) { if (g_pPing->IsAutodialEnabled()) { ASSERT(INADDR_NONE != m_dwServerIPAddress); HRESULT hr = g_pPing->Ping(m_dwServerIPAddress, PING_TIMEOUT_INTERVAL, PING_RETRIES); fRet = (S_OK == hr); } } return fRet; } BOOL CKeepAlive::Bind(LDAP *ld) { ASSERT(NULL != ld); if (! m_fAborted) { // anonymous bind ULONG nMsgID = WLDAP::ldap_bind(ld, TEXT(""), TEXT(""), LDAP_AUTH_SIMPLE); if (INVALID_MSG_ID != nMsgID) { // poll the result every quarter second const ULONG c_nTimeoutInQuarterSecond = 4 * LDAP_TIMEOUT_IN_SECONDS; for (ULONG i = 0; (i < c_nTimeoutInQuarterSecond) && (! m_fAborted); i++) { // no timeout, if no result, return immediately LDAP_TIMEVAL TimeVal; TimeVal.tv_usec = 0; TimeVal.tv_sec = 0; // check the result LDAPMessage *pMsg = NULL; ULONG nResultType = WLDAP::ldap_result(ld, nMsgID, LDAP_MSG_ALL, &TimeVal, &pMsg); if (nResultType == LDAP_RES_BIND) { ASSERT(NULL != pMsg); WLDAP::ldap_msgfree(pMsg); return TRUE; } // deal with timeout or error if (LDAP_RESULT_TIMEOUT == nResultType) { if (! m_fAborted) { ::Sleep(250); // sleep for a quarter second continue; } } ASSERT(LDAP_RESULT_ERROR != nResultType); break; } // failure, do the cleanup WLDAP::ldap_abandon(ld, nMsgID); } } return FALSE; } DWORD CKeepAlive::GetLocalIPAddress(LDAP *ld) { SOCKET s = INVALID_SOCKET; if (LDAP_SUCCESS == WLDAP::ldap_get_option(ld, LDAP_OPT_DESC, &s)) { SOCKADDR_IN addr; int NameLen = sizeof(addr); if (0 == ::getsockname(s, (SOCKADDR *) &addr, &NameLen)) { return addr.sin_addr.s_addr; } } return INADDR_NONE; } BOOL CKeepAlive::KeepAlive(LDAP *ld, UINT *pnKeepAliveInterval) { LPTSTR aTTLAttr[] = { STTL_ATTR_NAME, NULL }; UINT nMsgID = WLDAP::ldap_search(ld, LDAP_REFRESH_BASE_DN, LDAP_SCOPE_BASE, m_pszKeepAliveFilter, aTTLAttr, FALSE); if (INVALID_MSG_ID != nMsgID) { // poll the result every quarter second const ULONG c_nTimeoutInQuarterSecond = 4 * LDAP_TIMEOUT_IN_SECONDS; BOOL fError = FALSE; for (ULONG i = 0; (i < c_nTimeoutInQuarterSecond) && (! m_fAborted) && (! fError); i++) { // no timeout, if no result, return immediately LDAP_TIMEVAL TimeVal; TimeVal.tv_usec = 0; TimeVal.tv_sec = 0; // check the result LDAPMessage *pMsg = NULL; ULONG nResultType = WLDAP::ldap_result(ld, nMsgID, LDAP_MSG_ALL, &TimeVal, &pMsg); switch (nResultType) { case LDAP_RESULT_TIMEOUT: if (! m_fAborted) { ::Sleep(250); // sleep for a quarter second } break; case LDAP_RESULT_ERROR: fError = TRUE; break; default: ASSERT(LDAP_RES_SEARCH_ENTRY == nResultType || LDAP_RES_SEARCH_RESULT == nResultType); ASSERT(NULL != pMsg); switch (pMsg->lm_returncode) { case LDAP_SUCCESS: GetNewInterval(ld, pMsg, pnKeepAliveInterval); break; case LDAP_NO_SUCH_OBJECT: ReLogon(); fError = TRUE; break; default: break; } WLDAP::ldap_msgfree(pMsg); return (! fError); } } // failure, do the cleanup WLDAP::ldap_abandon(ld, nMsgID); } return FALSE; } void CKeepAlive::GetNewInterval(LDAP *ld, LDAPMessage *pMsg, UINT *pnKeepAliveInterval) { // get the first entry which should contain the new ttl value LDAPMessage *pEntry = WLDAP::ldap_first_entry(ld, pMsg); if (NULL != pEntry) { // get the first attribute which should be the new ttl value BerElement *pElement = NULL; LPTSTR pszAttrib = WLDAP::ldap_first_attribute(ld, pEntry, &pElement); if (NULL != pszAttrib) { // it should be ttl attribute ASSERT(! lstrcmpi(STTL_ATTR_NAME, pszAttrib)); // get the value LPTSTR *ppszTTL = WLDAP::ldap_get_values(ld, pEntry, pszAttrib); if (NULL != ppszTTL) { if (NULL != ppszTTL[0]) { int iRefresh = ::RtStrToInt(ppszTTL[0]) - REFRESH_TIMEOUT_MARGIN; if (iRefresh > 0) { if (iRefresh < MIN_REFRESH_TIMEOUT_INTERVAL_MINUTES) { iRefresh = MIN_REFRESH_TIMEOUT_INTERVAL_MINUTES; } *pnKeepAliveInterval = (UINT) iRefresh; } } WLDAP::ldap_value_free(ppszTTL); } } } } void CKeepAlive::ReLogon(void) { ::PostMessage(m_hwndMainThread, WM_NEED_RELOGON, 0, 0); } void CKeepAlive::UpdateIPAddressOnServer(void) { ::PostMessage(m_hwndMainThread, WM_NEED_RELOGON, 0, 0); } ///////////////////////////////////////////////////////// // // ResolveUser // typedef struct tagResolveInfo { // given DWORD cchMax; LPTSTR pszIPAddress; // created LPTSTR pszSearchFilter; LDAP *ld; } RESOLVE_INFO; void FreeResolveInfo(RESOLVE_INFO *pInfo) { if (NULL != pInfo) { delete pInfo->pszSearchFilter; if (NULL != pInfo->ld) { WLDAP::ldap_unbind(pInfo->ld); } delete pInfo; } } DWORD ResolveUserThreadProc(LPVOID pParam) { RESOLVE_INFO *pInfo = (RESOLVE_INFO *) pParam; ASSERT(NULL != pInfo); // send the search request TCHAR* attrs[] = { IP_ADDRESS_ATTR_NAME, NULL }; ULONG nMsgID = WLDAP::ldap_search(pInfo->ld, TEXT("objectClass=RTPerson"), LDAP_SCOPE_BASE, pInfo->pszSearchFilter, attrs, 0); if (INVALID_MSG_ID != nMsgID) { LDAPMessage *pMsg = NULL; LDAP_TIMEVAL SearchTimeout = { LDAP_TIMEOUT_IN_SECONDS, 0 }; ULONG nResultType = WLDAP::ldap_result(pInfo->ld, nMsgID, LDAP_MSG_ALL, &SearchTimeout, &pMsg); switch (nResultType) { case LDAP_RESULT_TIMEOUT: case LDAP_RESULT_ERROR: WLDAP::ldap_abandon(pInfo->ld, nMsgID); break; default: { ASSERT(LDAP_RES_SEARCH_ENTRY == nResultType || LDAP_RES_SEARCH_RESULT == nResultType); ASSERT(NULL != pMsg); // get the first entry LDAPMessage *pEntry = WLDAP::ldap_first_entry(pInfo->ld, pMsg); if (NULL != pEntry) { BerElement *pElement = NULL; // get the first attribute LPTSTR pszAttrib = WLDAP::ldap_first_attribute(pInfo->ld, pEntry, &pElement); if (NULL != pszAttrib) { ASSERT(! lstrcmpi(IP_ADDRESS_ATTR_NAME, pszAttrib)); // get the value LPTSTR *ppszIPAddress = WLDAP::ldap_get_values(pInfo->ld, pEntry, pszAttrib); if (NULL != ppszIPAddress) { if (NULL != ppszIPAddress[0]) { BYTE temp[sizeof(DWORD)]; *(DWORD *) &temp[0] = ::RtStrToInt(ppszIPAddress[0]); ::wsprintf(pInfo->pszIPAddress, TEXT("%u.%u.%u.%u"), (UINT) temp[0], (UINT) temp[1], (UINT) temp[2], (UINT) temp[3]); } WLDAP::ldap_value_free(ppszIPAddress); } } // if attribute } // if entry WLDAP::ldap_msgfree(pMsg); } break; } // switch } // if msg id return 0; } /*static*/ HRESULT CNmLDAP::ResolveUser( LPCTSTR pcszName, LPCTSTR pcszServer, LPTSTR pszIPAddress, DWORD cchMax, int port ) { HRESULT hr = E_OUTOFMEMORY; RESOLVE_INFO *pInfo = NULL; // clean up the return buffer *pszIPAddress = TEXT('\0'); // make sure the wldap32.dll is loaded if( ms_bLdapDLLLoaded || SUCCEEDED( hr = WLDAP::Init())) { ms_bLdapDLLLoaded = true; // create a resolve info which exchanges info between this thread and a background thread. pInfo = new RESOLVE_INFO; if (NULL != pInfo) { // cleanup ::ZeroMemory(pInfo, sizeof(*pInfo)); // remember return buffer and its size pInfo->pszIPAddress = pszIPAddress; pInfo->cchMax = cchMax; // create search filter ULONG cbFilterSize = ::lstrlen(RESOLVE_USER_SEARCH_FILTER) + ::lstrlen(pcszName) + 2; pInfo->pszSearchFilter = new TCHAR[cbFilterSize]; if (NULL != pInfo->pszSearchFilter) { // construct search filter ::wsprintf(pInfo->pszSearchFilter, RESOLVE_USER_SEARCH_FILTER, pcszName); // create ldap block that is NOT connected to server yet. pInfo->ld = WLDAP::ldap_init(const_cast<LPTSTR>(pcszServer), port); if( pInfo->ld != NULL ) { ULONG ulResult = WLDAP::ldap_bind_s(pInfo->ld, TEXT(""), TEXT(""), LDAP_AUTH_SIMPLE); if( (ulResult != LDAP_SUCCESS) && (port == DEFAULT_LDAP_PORT) ) { WLDAP::ldap_unbind(pInfo->ld); pInfo->ld = WLDAP::ldap_init(const_cast<LPTSTR>(pcszServer), ALTERNATE_LDAP_PORT); // Automatically retry with alternate port... if( pInfo->ld != NULL ) { ulResult = WLDAP::ldap_bind_s(pInfo->ld, TEXT(""), TEXT(""), LDAP_AUTH_SIMPLE); if( ulResult != LDAP_SUCCESS ) { WLDAP::ldap_unbind(pInfo->ld); pInfo->ld = NULL; } } } } ASSERT(NULL != pInfo->ld); if (NULL != pInfo->ld) { DWORD dwThreadID = 0; HANDLE hThread = ::CreateThread(NULL, 0, ResolveUserThreadProc, pInfo, 0, &dwThreadID); if (NULL != hThread) { // wait for the thread to exit hr = ::WaitWithMessageLoop(hThread); DWORD dwIPAddr = ::inet_addr(pszIPAddress); hr = (dwIPAddr && INADDR_NONE != dwIPAddr) ? S_OK : E_FAIL; // close thread ::CloseHandle(hThread); } } // if ld } // if search filter } // if new resolve info } // if init ::FreeResolveInfo(pInfo); return hr; } 
Intermediate and mechanism of hydroxylation of o-iodophenol by salicylate hydroxylase. Salicylate hydroxylase from Pseudomonas putida catalyzes the hydroxylation of salicylate, and also o-aminophenol, o-nitrophenol, and o-halogenophenols, to catechol. The reactions with these o-substituted phenols comprise oxygenative deamination, denitration, and dehalogenation, respectively. The reaction stoichiometry, as to NADH oxidized, oxygen consumed, and catechol formed, is 2 : 1 : 1, respectively. The mechanisms for the deiodination and oxygenation of o-iodophenol were investigated in detail by the use of I(+)-trapping reagents such as DL-methionine, 2-chlorodimedone, and L-tyrosine. The addition of the traps did not change the molar ratio of catechol formed to NADH oxidized, nor iodinated traps produced were in the incubation mixture. The results suggest that I+ was not produced on the deiodination in the hydroxylation of o-iodophenol. On the other hand, L-ascorbate, L-epinephrine, and phenylhydrazine increased the molar ratio. o-Phenylenediamine decreased it, being converted to phenazine. This suggests that o-benzoquinone is formed in the oxidation of o-iodophenol as a nascent product. The quinone was detected spectrophotometrically by means of the stopped-flow method. Kinetic analysis of the reactions revealed that o-benzoquinone is reduced nonenzymatically to catechol by a second molecule of NADH. A mechanism of elimination for the ortho-substituted groups of substrate phenols by the enzyme is proposed and discussed.
<reponame>asar-studio/natural-abh import { AggressiveTokenizer } from './aggressive_tokenizer'; const tokenizer = new AggressiveTokenizer(); const string = 'Аҧсны Аҳәынҭқарра Ашьаустә закәанеидкыла» 10.01.2007 шықәсазтәи N 1555-с-XIV (иаднакылт Аҧсны Жәлар Реизара – Апарламент 2006 ш, ԥхынҷкәынмза 28 рзы) (аредакциа 29.06.2016)'; const tokens = [ 'Аҧсны', 'Аҳәынҭқарра', 'Ашьаустә', 'закәанеидкыла', '10', '01', '2007', 'шықәсазтәи', '1555', 'с', 'иаднакылт', 'Аҧсны', 'Жәлар', 'Реизара', 'Апарламент', '2006', 'ш', 'ԥхынҷкәынмза', '28', 'рзы', 'аредакциа', '29', '06', '2016' ]; test('должен быть инстансом класса AggressiveTokenizer', () => { expect(tokenizer).toBeInstanceOf(AggressiveTokenizer); }); test('должен правильно токенизировать строку', () => { expect(tokenizer.tokenize(string)).toStrictEqual(tokens); });
#if 0 // // Generated by Microsoft (R) HLSL Shader Compiler 10.1 // // // Buffer Definitions: // // cbuffer CB0 // { // // float2 RcpTextureSize; // Offset: 0 Size: 8 [unused] // float ContrastThreshold; // Offset: 8 Size: 4 // float SubpixelRemoval; // Offset: 12 Size: 4 // uint LastQueueIndex; // Offset: 16 Size: 4 // uint2 StartPixel; // Offset: 20 Size: 8 // // } // // // Resource Bindings: // // Name Type Format Dim HLSL Bind Count // ------------------------------ ---------- ------- ----------- -------------- ------ // Color texture float3 2d t0 1 // WorkCount UAV byte r/w u0 1 // WorkQueue UAV byte r/w u1 1 // ColorQueue UAV float3 buf u2 1 // Luma UAV float 2d u3 1 // CB0 cbuffer NA NA cb0 1 // // // // Input signature: // // Name Index Mask Register SysValue Format Used // -------------------- ----- ------ -------- -------- ------- ------ // no Input // // Output signature: // // Name Index Mask Register SysValue Format Used // -------------------- ----- ------ -------- -------- ------- ------ // no Output cs_5_0 dcl_globalFlags refactoringAllowed dcl_constantbuffer CB0[2], immediateIndexed dcl_resource_texture2d (float,float,float,float) t0 dcl_uav_raw u0 dcl_uav_raw u1 dcl_uav_typed_buffer (float,float,float,float) u2 dcl_uav_typed_texture2d (float,float,float,float) u3 dcl_input vThreadIDInGroupFlattened dcl_input vThreadGroupID.xy dcl_input vThreadIDInGroup.xy dcl_input vThreadID.xy dcl_temps 5 dcl_tgsm_structured g0, 4, 100 dcl_thread_group 8, 8, 1 ult r0.x, vThreadIDInGroupFlattened.x, l(50) if_nz r0.x udiv r0.x, r1.x, vThreadIDInGroupFlattened.x, l(10) mov r1.xz, r1.xxxx mov r1.yw, r0.xxxx iadd r0.xyzw, r1.xyzw, cb0[1].yzyz ishl r1.xyzw, vThreadGroupID.xyxy, l(3, 3, 3, 3) iadd r0.xyzw, r0.xyzw, r1.xyzw iadd r0.xyzw, r0.zwxy, l(-1, 4, -1, -1) mov r1.xy, r0.zwzz mov r1.zw, l(0,0,0,0) ld_indexable(texture2d)(float,float,float,float) r2.xyz, r1.xyzw, t0.xyzw dp3 r1.z, r2.xyzx, l(0.212671, 0.715160, 0.072169, 0.000000) mad r1.z, r1.z, l(15.000000), l(1.000000) log r1.z, r1.z mul r1.z, r1.z, l(0.250000) store_uav_typed u3.xyzw, r1.xyyy, r1.zzzz store_structured g0.x, vThreadIDInGroupFlattened.x, l(0), r1.z iadd r1.x, vThreadIDInGroupFlattened.x, l(50) mov r0.zw, l(0,0,0,0) ld_indexable(texture2d)(float,float,float,float) r1.yzw, r0.xyzw, t0.wxyz dp3 r0.z, r1.yzwy, l(0.212671, 0.715160, 0.072169, 0.000000) mad r0.z, r0.z, l(15.000000), l(1.000000) log r0.z, r0.z mul r0.z, r0.z, l(0.250000) store_uav_typed u3.xyzw, r0.xyyy, r0.zzzz store_structured g0.x, r1.x, l(0), r0.z endif sync_g_t iadd r0.x, vThreadIDInGroup.x, l(1) imad r0.x, vThreadIDInGroup.y, l(10), r0.x ld_structured r0.y, r0.x, l(0), g0.xxxx iadd r1.xyzw, r0.xxxx, l(10, 9, 11, 20) ld_structured r0.z, r1.y, l(0), g0.xxxx ld_structured r0.w, r1.x, l(0), g0.xxxx ld_structured r1.x, r1.z, l(0), g0.xxxx ld_structured r1.y, r1.w, l(0), g0.xxxx max r1.z, r0.z, r0.y max r1.w, r0.w, r1.y max r1.w, r1.w, r1.x max r1.z, r1.w, r1.z min r1.w, r0.z, r0.y min r2.x, r0.w, r1.y min r2.x, r1.x, r2.x min r1.w, r1.w, r2.x add r1.z, -r1.w, r1.z lt r1.w, r1.z, cb0[0].z if_nz r1.w ret endif iadd r2.yz, vThreadID.xxyx, cb0[1].yyzy iadd r3.xyzw, r0.xxxx, l(-1, 1, 19, 21) ld_structured r0.x, r3.x, l(0), g0.xxxx ld_structured r1.w, r3.y, l(0), g0.xxxx ld_structured r3.x, r3.z, l(0), g0.xxxx ld_structured r3.y, r3.w, l(0), g0.xxxx add r3.zw, r0.yyyz, r1.yyyx add r4.x, r0.x, r3.x add r4.y, r1.w, r3.y add r3.x, r3.y, r3.x add r0.x, r0.x, r1.w mad r1.w, -r0.z, l(2.000000), r4.x mad r3.y, -r0.w, l(2.000000), r3.z mad r1.w, |r3.y|, l(2.000000), |r1.w| mad r3.y, -r1.x, l(2.000000), r4.y add r1.w, r1.w, |r3.y| mad r3.x, -r1.y, l(2.000000), r3.x mad r3.y, -r0.w, l(2.000000), r3.w mad r3.x, |r3.y|, l(2.000000), |r3.x| mad r0.x, -r0.y, l(2.000000), r0.x add r0.x, |r0.x|, r3.x add r3.x, r3.w, r3.z mad r3.x, r3.x, l(2.000000), r4.x add r3.x, r4.y, r3.x mad r3.x, r3.x, l(0.083333), -r0.w div_sat r1.z, |r3.x|, r1.z mad r3.x, r1.z, l(-2.000000), l(3.000000) mul r1.z, r1.z, r1.z mul r1.z, r1.z, r3.x mul r1.z, r1.z, r1.z dp2_sat r1.z, r1.zzzz, cb0[0].wwww ge r0.x, r1.w, r0.x movc r0.y, r0.x, r0.y, r0.z movc r0.z, r0.x, r1.y, r1.x add r0.yz, -r0.wwww, r0.yyzy ge r0.y, |r0.z|, |r0.y| mul r0.z, r1.z, l(254.000000) ftou r0.z, r0.z and r0.z, r0.z, l(254) ishl r1.xy, r2.zyzz, l(20, 8, 0, 0) or r0.w, r1.y, r1.x iadd r0.z, r0.w, r0.z bfi r0.z, l(1), l(0), r0.y, r0.z if_nz r0.x imm_atomic_iadd r1.x, u0, l(0), l(1) ishl r0.x, r1.x, l(2) store_raw u1.x, r0.x, r0.z bfi r0.x, l(1), l(1), r0.y, l(0) iadd r2.w, r2.z, r0.x iadd r3.xy, r2.ywyy, l(0, -1, 0, 0) mov r3.zw, l(0,0,0,0) ld_indexable(texture2d)(float,float,float,float) r1.yzw, r3.xyzw, t0.wxyz store_uav_typed u2.xyzw, r1.xxxx, r1.yzwy else imm_atomic_iadd r1.x, u0, l(4), l(1) iadd r0.x, -r1.x, cb0[1].x ishl r0.w, r0.x, l(2) store_raw u1.x, r0.w, r0.z bfi r0.y, l(1), l(1), r0.y, l(0) iadd r2.x, r2.y, r0.y iadd r1.xy, r2.xzxx, l(-1, 0, 0, 0) mov r1.zw, l(0,0,0,0) ld_indexable(texture2d)(float,float,float,float) r0.yzw, r1.xyzw, t0.wxyz store_uav_typed u2.xyzw, r0.xxxx, r0.yzwy endif ret // Approximately 116 instruction slots used #endif const BYTE g_pFXAAPass1_RGB2_CS[] = { 68, 88, 66, 67, 243, 75, 95, 186, 102, 104, 126, 144, 78, 75, 161, 29, 240, 12, 125, 8, 1, 0, 0, 0, 76, 19, 0, 0, 6, 0, 0, 0, 56, 0, 0, 0, 112, 3, 0, 0, 128, 3, 0, 0, 144, 3, 0, 0, 236, 17, 0, 0, 136, 18, 0, 0, 82, 68, 69, 70, 48, 3, 0, 0, 1, 0, 0, 0, 44, 1, 0, 0, 6, 0, 0, 0, 60, 0, 0, 0, 0, 5, 83, 67, 0, 1, 0, 0, 8, 3, 0, 0, 82, 68, 49, 49, 60, 0, 0, 0, 24, 0, 0, 0, 32, 0, 0, 0, 40, 0, 0, 0, 36, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 252, 0, 0, 0, 2, 0, 0, 0, 5, 0, 0, 0, 4, 0, 0, 0, 255, 255, 255, 255, 0, 0, 0, 0, 1, 0, 0, 0, 9, 0, 0, 0, 2, 1, 0, 0, 8, 0, 0, 0, 6, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 12, 1, 0, 0, 8, 0, 0, 0, 6, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 22, 1, 0, 0, 4, 0, 0, 0, 5, 0, 0, 0, 1, 0, 0, 0, 255, 255, 255, 255, 2, 0, 0, 0, 1, 0, 0, 0, 9, 0, 0, 0, 33, 1, 0, 0, 4, 0, 0, 0, 5, 0, 0, 0, 4, 0, 0, 0, 255, 255, 255, 255, 3, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 38, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 67, 111, 108, 111, 114, 0, 87, 111, 114, 107, 67, 111, 117, 110, 116, 0, 87, 111, 114, 107, 81, 117, 101, 117, 101, 0, 67, 111, 108, 111, 114, 81, 117, 101, 117, 101, 0, 76, 117, 109, 97, 0, 67, 66, 48, 0, 171, 171, 38, 1, 0, 0, 5, 0, 0, 0, 68, 1, 0, 0, 32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 2, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 36, 2, 0, 0, 0, 0, 0, 0, 255, 255, 255, 255, 0, 0, 0, 0, 255, 255, 255, 255, 0, 0, 0, 0, 72, 2, 0, 0, 8, 0, 0, 0, 4, 0, 0, 0, 2, 0, 0, 0, 96, 2, 0, 0, 0, 0, 0, 0, 255, 255, 255, 255, 0, 0, 0, 0, 255, 255, 255, 255, 0, 0, 0, 0, 132, 2, 0, 0, 12, 0, 0, 0, 4, 0, 0, 0, 2, 0, 0, 0, 96, 2, 0, 0, 0, 0, 0, 0, 255, 255, 255, 255, 0, 0, 0, 0, 255, 255, 255, 255, 0, 0, 0, 0, 148, 2, 0, 0, 16, 0, 0, 0, 4, 0, 0, 0, 2, 0, 0, 0, 172, 2, 0, 0, 0, 0, 0, 0, 255, 255, 255, 255, 0, 0, 0, 0, 255, 255, 255, 255, 0, 0, 0, 0, 208, 2, 0, 0, 20, 0, 0, 0, 8, 0, 0, 0, 2, 0, 0, 0, 228, 2, 0, 0, 0, 0, 0, 0, 255, 255, 255, 255, 0, 0, 0, 0, 255, 255, 255, 255, 0, 0, 0, 0, 82, 99, 112, 84, 101, 120, 116, 117, 114, 101, 83, 105, 122, 101, 0, 102, 108, 111, 97, 116, 50, 0, 171, 171, 1, 0, 3, 0, 1, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 27, 2, 0, 0, 67, 111, 110, 116, 114, 97, 115, 116, 84, 104, 114, 101, 115, 104, 111, 108, 100, 0, 102, 108, 111, 97, 116, 0, 0, 0, 3, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 90, 2, 0, 0, 83, 117, 98, 112, 105, 120, 101, 108, 82, 101, 109, 111, 118, 97, 108, 0, 76, 97, 115, 116, 81, 117, 101, 117, 101, 73, 110, 100, 101, 120, 0, 100, 119, 111, 114, 100, 0, 171, 171, 171, 0, 0, 19, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 163, 2, 0, 0, 83, 116, 97, 114, 116, 80, 105, 120, 101, 108, 0, 117, 105, 110, 116, 50, 0, 171, 171, 171, 1, 0, 19, 0, 1, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 219, 2, 0, 0, 77, 105, 99, 114, 111, 115, 111, 102, 116, 32, 40, 82, 41, 32, 72, 76, 83, 76, 32, 83, 104, 97, 100, 101, 114, 32, 67, 111, 109, 112, 105, 108, 101, 114, 32, 49, 48, 46, 49, 0, 73, 83, 71, 78, 8, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 79, 83, 71, 78, 8, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 83, 72, 69, 88, 84, 14, 0, 0, 80, 0, 5, 0, 149, 3, 0, 0, 106, 8, 0, 1, 89, 0, 0, 4, 70, 142, 32, 0, 0, 0, 0, 0, 2, 0, 0, 0, 88, 24, 0, 4, 0, 112, 16, 0, 0, 0, 0, 0, 85, 85, 0, 0, 157, 0, 0, 3, 0, 224, 17, 0, 0, 0, 0, 0, 157, 0, 0, 3, 0, 224, 17, 0, 1, 0, 0, 0, 156, 8, 0, 4, 0, 224, 17, 0, 2, 0, 0, 0, 85, 85, 0, 0, 156, 24, 0, 4, 0, 224, 17, 0, 3, 0, 0, 0, 85, 85, 0, 0, 95, 0, 0, 2, 0, 64, 2, 0, 95, 0, 0, 2, 50, 16, 2, 0, 95, 0, 0, 2, 50, 32, 2, 0, 95, 0, 0, 2, 50, 0, 2, 0, 104, 0, 0, 2, 5, 0, 0, 0, 160, 0, 0, 5, 0, 240, 17, 0, 0, 0, 0, 0, 4, 0, 0, 0, 100, 0, 0, 0, 155, 0, 0, 4, 8, 0, 0, 0, 8, 0, 0, 0, 1, 0, 0, 0, 79, 0, 0, 6, 18, 0, 16, 0, 0, 0, 0, 0, 10, 64, 2, 0, 1, 64, 0, 0, 50, 0, 0, 0, 31, 0, 4, 3, 10, 0, 16, 0, 0, 0, 0, 0, 78, 0, 0, 8, 18, 0, 16, 0, 0, 0, 0, 0, 18, 0, 16, 0, 1, 0, 0, 0, 10, 64, 2, 0, 1, 64, 0, 0, 10, 0, 0, 0, 54, 0, 0, 5, 82, 0, 16, 0, 1, 0, 0, 0, 6, 0, 16, 0, 1, 0, 0, 0, 54, 0, 0, 5, 162, 0, 16, 0, 1, 0, 0, 0, 6, 0, 16, 0, 0, 0, 0, 0, 30, 0, 0, 8, 242, 0, 16, 0, 0, 0, 0, 0, 70, 14, 16, 0, 1, 0, 0, 0, 150, 137, 32, 0, 0, 0, 0, 0, 1, 0, 0, 0, 41, 0, 0, 9, 242, 0, 16, 0, 1, 0, 0, 0, 70, 20, 2, 0, 2, 64, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 30, 0, 0, 7, 242, 0, 16, 0, 0, 0, 0, 0, 70, 14, 16, 0, 0, 0, 0, 0, 70, 14, 16, 0, 1, 0, 0, 0, 30, 0, 0, 10, 242, 0, 16, 0, 0, 0, 0, 0, 230, 4, 16, 0, 0, 0, 0, 0, 2, 64, 0, 0, 255, 255, 255, 255, 4, 0, 0, 0, 255, 255, 255, 255, 255, 255, 255, 255, 54, 0, 0, 5, 50, 0, 16, 0, 1, 0, 0, 0, 230, 10, 16, 0, 0, 0, 0, 0, 54, 0, 0, 8, 194, 0, 16, 0, 1, 0, 0, 0, 2, 64, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 45, 0, 0, 137, 194, 0, 0, 128, 67, 85, 21, 0, 114, 0, 16, 0, 2, 0, 0, 0, 70, 14, 16, 0, 1, 0, 0, 0, 70, 126, 16, 0, 0, 0, 0, 0, 16, 0, 0, 10, 66, 0, 16, 0, 1, 0, 0, 0, 70, 2, 16, 0, 2, 0, 0, 0, 2, 64, 0, 0, 109, 198, 89, 62, 186, 20, 55, 63, 87, 205, 147, 61, 0, 0, 0, 0, 50, 0, 0, 9, 66, 0, 16, 0, 1, 0, 0, 0, 42, 0, 16, 0, 1, 0, 0, 0, 1, 64, 0, 0, 0, 0, 112, 65, 1, 64, 0, 0, 0, 0, 128, 63, 47, 0, 0, 5, 66, 0, 16, 0, 1, 0, 0, 0, 42, 0, 16, 0, 1, 0, 0, 0, 56, 0, 0, 7, 66, 0, 16, 0, 1, 0, 0, 0, 42, 0, 16, 0, 1, 0, 0, 0, 1, 64, 0, 0, 0, 0, 128, 62, 164, 0, 0, 7, 242, 224, 17, 0, 3, 0, 0, 0, 70, 5, 16, 0, 1, 0, 0, 0, 166, 10, 16, 0, 1, 0, 0, 0, 168, 0, 0, 8, 18, 240, 17, 0, 0, 0, 0, 0, 10, 64, 2, 0, 1, 64, 0, 0, 0, 0, 0, 0, 42, 0, 16, 0, 1, 0, 0, 0, 30, 0, 0, 6, 18, 0, 16, 0, 1, 0, 0, 0, 10, 64, 2, 0, 1, 64, 0, 0, 50, 0, 0, 0, 54, 0, 0, 8, 194, 0, 16, 0, 0, 0, 0, 0, 2, 64, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 45, 0, 0, 137, 194, 0, 0, 128, 67, 85, 21, 0, 226, 0, 16, 0, 1, 0, 0, 0, 70, 14, 16, 0, 0, 0, 0, 0, 54, 121, 16, 0, 0, 0, 0, 0, 16, 0, 0, 10, 66, 0, 16, 0, 0, 0, 0, 0, 150, 7, 16, 0, 1, 0, 0, 0, 2, 64, 0, 0, 109, 198, 89, 62, 186, 20, 55, 63, 87, 205, 147, 61, 0, 0, 0, 0, 50, 0, 0, 9, 66, 0, 16, 0, 0, 0, 0, 0, 42, 0, 16, 0, 0, 0, 0, 0, 1, 64, 0, 0, 0, 0, 112, 65, 1, 64, 0, 0, 0, 0, 128, 63, 47, 0, 0, 5, 66, 0, 16, 0, 0, 0, 0, 0, 42, 0, 16, 0, 0, 0, 0, 0, 56, 0, 0, 7, 66, 0, 16, 0, 0, 0, 0, 0, 42, 0, 16, 0, 0, 0, 0, 0, 1, 64, 0, 0, 0, 0, 128, 62, 164, 0, 0, 7, 242, 224, 17, 0, 3, 0, 0, 0, 70, 5, 16, 0, 0, 0, 0, 0, 166, 10, 16, 0, 0, 0, 0, 0, 168, 0, 0, 9, 18, 240, 17, 0, 0, 0, 0, 0, 10, 0, 16, 0, 1, 0, 0, 0, 1, 64, 0, 0, 0, 0, 0, 0, 42, 0, 16, 0, 0, 0, 0, 0, 21, 0, 0, 1, 190, 24, 0, 1, 30, 0, 0, 6, 18, 0, 16, 0, 0, 0, 0, 0, 10, 32, 2, 0, 1, 64, 0, 0, 1, 0, 0, 0, 35, 0, 0, 8, 18, 0, 16, 0, 0, 0, 0, 0, 26, 32, 2, 0, 1, 64, 0, 0, 10, 0, 0, 0, 10, 0, 16, 0, 0, 0, 0, 0, 167, 0, 0, 9, 34, 0, 16, 0, 0, 0, 0, 0, 10, 0, 16, 0, 0, 0, 0, 0, 1, 64, 0, 0, 0, 0, 0, 0, 6, 240, 17, 0, 0, 0, 0, 0, 30, 0, 0, 10, 242, 0, 16, 0, 1, 0, 0, 0, 6, 0, 16, 0, 0, 0, 0, 0, 2, 64, 0, 0, 10, 0, 0, 0, 9, 0, 0, 0, 11, 0, 0, 0, 20, 0, 0, 0, 167, 0, 0, 9, 66, 0, 16, 0, 0, 0, 0, 0, 26, 0, 16, 0, 1, 0, 0, 0, 1, 64, 0, 0, 0, 0, 0, 0, 6, 240, 17, 0, 0, 0, 0, 0, 167, 0, 0, 9, 130, 0, 16, 0, 0, 0, 0, 0, 10, 0, 16, 0, 1, 0, 0, 0, 1, 64, 0, 0, 0, 0, 0, 0, 6, 240, 17, 0, 0, 0, 0, 0, 167, 0, 0, 9, 18, 0, 16, 0, 1, 0, 0, 0, 42, 0, 16, 0, 1, 0, 0, 0, 1, 64, 0, 0, 0, 0, 0, 0, 6, 240, 17, 0, 0, 0, 0, 0, 167, 0, 0, 9, 34, 0, 16, 0, 1, 0, 0, 0, 58, 0, 16, 0, 1, 0, 0, 0, 1, 64, 0, 0, 0, 0, 0, 0, 6, 240, 17, 0, 0, 0, 0, 0, 52, 0, 0, 7, 66, 0, 16, 0, 1, 0, 0, 0, 42, 0, 16, 0, 0, 0, 0, 0, 26, 0, 16, 0, 0, 0, 0, 0, 52, 0, 0, 7, 130, 0, 16, 0, 1, 0, 0, 0, 58, 0, 16, 0, 0, 0, 0, 0, 26, 0, 16, 0, 1, 0, 0, 0, 52, 0, 0, 7, 130, 0, 16, 0, 1, 0, 0, 0, 58, 0, 16, 0, 1, 0, 0, 0, 10, 0, 16, 0, 1, 0, 0, 0, 52, 0, 0, 7, 66, 0, 16, 0, 1, 0, 0, 0, 58, 0, 16, 0, 1, 0, 0, 0, 42, 0, 16, 0, 1, 0, 0, 0, 51, 0, 0, 7, 130, 0, 16, 0, 1, 0, 0, 0, 42, 0, 16, 0, 0, 0, 0, 0, 26, 0, 16, 0, 0, 0, 0, 0, 51, 0, 0, 7, 18, 0, 16, 0, 2, 0, 0, 0, 58, 0, 16, 0, 0, 0, 0, 0, 26, 0, 16, 0, 1, 0, 0, 0, 51, 0, 0, 7, 18, 0, 16, 0, 2, 0, 0, 0, 10, 0, 16, 0, 1, 0, 0, 0, 10, 0, 16, 0, 2, 0, 0, 0, 51, 0, 0, 7, 130, 0, 16, 0, 1, 0, 0, 0, 58, 0, 16, 0, 1, 0, 0, 0, 10, 0, 16, 0, 2, 0, 0, 0, 0, 0, 0, 8, 66, 0, 16, 0, 1, 0, 0, 0, 58, 0, 16, 128, 65, 0, 0, 0, 1, 0, 0, 0, 42, 0, 16, 0, 1, 0, 0, 0, 49, 0, 0, 8, 130, 0, 16, 0, 1, 0, 0, 0, 42, 0, 16, 0, 1, 0, 0, 0, 42, 128, 32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 31, 0, 4, 3, 58, 0, 16, 0, 1, 0, 0, 0, 62, 0, 0, 1, 21, 0, 0, 1, 30, 0, 0, 7, 98, 0, 16, 0, 2, 0, 0, 0, 6, 1, 2, 0, 86, 134, 32, 0, 0, 0, 0, 0, 1, 0, 0, 0, 30, 0, 0, 10, 242, 0, 16, 0, 3, 0, 0, 0, 6, 0, 16, 0, 0, 0, 0, 0, 2, 64, 0, 0, 255, 255, 255, 255, 1, 0, 0, 0, 19, 0, 0, 0, 21, 0, 0, 0, 167, 0, 0, 9, 18, 0, 16, 0, 0, 0, 0, 0, 10, 0, 16, 0, 3, 0, 0, 0, 1, 64, 0, 0, 0, 0, 0, 0, 6, 240, 17, 0, 0, 0, 0, 0, 167, 0, 0, 9, 130, 0, 16, 0, 1, 0, 0, 0, 26, 0, 16, 0, 3, 0, 0, 0, 1, 64, 0, 0, 0, 0, 0, 0, 6, 240, 17, 0, 0, 0, 0, 0, 167, 0, 0, 9, 18, 0, 16, 0, 3, 0, 0, 0, 42, 0, 16, 0, 3, 0, 0, 0, 1, 64, 0, 0, 0, 0, 0, 0, 6, 240, 17, 0, 0, 0, 0, 0, 167, 0, 0, 9, 34, 0, 16, 0, 3, 0, 0, 0, 58, 0, 16, 0, 3, 0, 0, 0, 1, 64, 0, 0, 0, 0, 0, 0, 6, 240, 17, 0, 0, 0, 0, 0, 0, 0, 0, 7, 194, 0, 16, 0, 3, 0, 0, 0, 86, 9, 16, 0, 0, 0, 0, 0, 86, 1, 16, 0, 1, 0, 0, 0, 0, 0, 0, 7, 18, 0, 16, 0, 4, 0, 0, 0, 10, 0, 16, 0, 0, 0, 0, 0, 10, 0, 16, 0, 3, 0, 0, 0, 0, 0, 0, 7, 34, 0, 16, 0, 4, 0, 0, 0, 58, 0, 16, 0, 1, 0, 0, 0, 26, 0, 16, 0, 3, 0, 0, 0, 0, 0, 0, 7, 18, 0, 16, 0, 3, 0, 0, 0, 26, 0, 16, 0, 3, 0, 0, 0, 10, 0, 16, 0, 3, 0, 0, 0, 0, 0, 0, 7, 18, 0, 16, 0, 0, 0, 0, 0, 10, 0, 16, 0, 0, 0, 0, 0, 58, 0, 16, 0, 1, 0, 0, 0, 50, 0, 0, 10, 130, 0, 16, 0, 1, 0, 0, 0, 42, 0, 16, 128, 65, 0, 0, 0, 0, 0, 0, 0, 1, 64, 0, 0, 0, 0, 0, 64, 10, 0, 16, 0, 4, 0, 0, 0, 50, 0, 0, 10, 34, 0, 16, 0, 3, 0, 0, 0, 58, 0, 16, 128, 65, 0, 0, 0, 0, 0, 0, 0, 1, 64, 0, 0, 0, 0, 0, 64, 42, 0, 16, 0, 3, 0, 0, 0, 50, 0, 0, 11, 130, 0, 16, 0, 1, 0, 0, 0, 26, 0, 16, 128, 129, 0, 0, 0, 3, 0, 0, 0, 1, 64, 0, 0, 0, 0, 0, 64, 58, 0, 16, 128, 129, 0, 0, 0, 1, 0, 0, 0, 50, 0, 0, 10, 34, 0, 16, 0, 3, 0, 0, 0, 10, 0, 16, 128, 65, 0, 0, 0, 1, 0, 0, 0, 1, 64, 0, 0, 0, 0, 0, 64, 26, 0, 16, 0, 4, 0, 0, 0, 0, 0, 0, 8, 130, 0, 16, 0, 1, 0, 0, 0, 58, 0, 16, 0, 1, 0, 0, 0, 26, 0, 16, 128, 129, 0, 0, 0, 3, 0, 0, 0, 50, 0, 0, 10, 18, 0, 16, 0, 3, 0, 0, 0, 26, 0, 16, 128, 65, 0, 0, 0, 1, 0, 0, 0, 1, 64, 0, 0, 0, 0, 0, 64, 10, 0, 16, 0, 3, 0, 0, 0, 50, 0, 0, 10, 34, 0, 16, 0, 3, 0, 0, 0, 58, 0, 16, 128, 65, 0, 0, 0, 0, 0, 0, 0, 1, 64, 0, 0, 0, 0, 0, 64, 58, 0, 16, 0, 3, 0, 0, 0, 50, 0, 0, 11, 18, 0, 16, 0, 3, 0, 0, 0, 26, 0, 16, 128, 129, 0, 0, 0, 3, 0, 0, 0, 1, 64, 0, 0, 0, 0, 0, 64, 10, 0, 16, 128, 129, 0, 0, 0, 3, 0, 0, 0, 50, 0, 0, 10, 18, 0, 16, 0, 0, 0, 0, 0, 26, 0, 16, 128, 65, 0, 0, 0, 0, 0, 0, 0, 1, 64, 0, 0, 0, 0, 0, 64, 10, 0, 16, 0, 0, 0, 0, 0, 0, 0, 0, 8, 18, 0, 16, 0, 0, 0, 0, 0, 10, 0, 16, 128, 129, 0, 0, 0, 0, 0, 0, 0, 10, 0, 16, 0, 3, 0, 0, 0, 0, 0, 0, 7, 18, 0, 16, 0, 3, 0, 0, 0, 58, 0, 16, 0, 3, 0, 0, 0, 42, 0, 16, 0, 3, 0, 0, 0, 50, 0, 0, 9, 18, 0, 16, 0, 3, 0, 0, 0, 10, 0, 16, 0, 3, 0, 0, 0, 1, 64, 0, 0, 0, 0, 0, 64, 10, 0, 16, 0, 4, 0, 0, 0, 0, 0, 0, 7, 18, 0, 16, 0, 3, 0, 0, 0, 26, 0, 16, 0, 4, 0, 0, 0, 10, 0, 16, 0, 3, 0, 0, 0, 50, 0, 0, 10, 18, 0, 16, 0, 3, 0, 0, 0, 10, 0, 16, 0, 3, 0, 0, 0, 1, 64, 0, 0, 171, 170, 170, 61, 58, 0, 16, 128, 65, 0, 0, 0, 0, 0, 0, 0, 14, 32, 0, 8, 66, 0, 16, 0, 1, 0, 0, 0, 10, 0, 16, 128, 129, 0, 0, 0, 3, 0, 0, 0, 42, 0, 16, 0, 1, 0, 0, 0, 50, 0, 0, 9, 18, 0, 16, 0, 3, 0, 0, 0, 42, 0, 16, 0, 1, 0, 0, 0, 1, 64, 0, 0, 0, 0, 0, 192, 1, 64, 0, 0, 0, 0, 64, 64, 56, 0, 0, 7, 66, 0, 16, 0, 1, 0, 0, 0, 42, 0, 16, 0, 1, 0, 0, 0, 42, 0, 16, 0, 1, 0, 0, 0, 56, 0, 0, 7, 66, 0, 16, 0, 1, 0, 0, 0, 42, 0, 16, 0, 1, 0, 0, 0, 10, 0, 16, 0, 3, 0, 0, 0, 56, 0, 0, 7, 66, 0, 16, 0, 1, 0, 0, 0, 42, 0, 16, 0, 1, 0, 0, 0, 42, 0, 16, 0, 1, 0, 0, 0, 15, 32, 0, 8, 66, 0, 16, 0, 1, 0, 0, 0, 166, 10, 16, 0, 1, 0, 0, 0, 246, 143, 32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 29, 0, 0, 7, 18, 0, 16, 0, 0, 0, 0, 0, 58, 0, 16, 0, 1, 0, 0, 0, 10, 0, 16, 0, 0, 0, 0, 0, 55, 0, 0, 9, 34, 0, 16, 0, 0, 0, 0, 0, 10, 0, 16, 0, 0, 0, 0, 0, 26, 0, 16, 0, 0, 0, 0, 0, 42, 0, 16, 0, 0, 0, 0, 0, 55, 0, 0, 9, 66, 0, 16, 0, 0, 0, 0, 0, 10, 0, 16, 0, 0, 0, 0, 0, 26, 0, 16, 0, 1, 0, 0, 0, 10, 0, 16, 0, 1, 0, 0, 0, 0, 0, 0, 8, 98, 0, 16, 0, 0, 0, 0, 0, 246, 15, 16, 128, 65, 0, 0, 0, 0, 0, 0, 0, 86, 6, 16, 0, 0, 0, 0, 0, 29, 0, 0, 9, 34, 0, 16, 0, 0, 0, 0, 0, 42, 0, 16, 128, 129, 0, 0, 0, 0, 0, 0, 0, 26, 0, 16, 128, 129, 0, 0, 0, 0, 0, 0, 0, 56, 0, 0, 7, 66, 0, 16, 0, 0, 0, 0, 0, 42, 0, 16, 0, 1, 0, 0, 0, 1, 64, 0, 0, 0, 0, 126, 67, 28, 0, 0, 5, 66, 0, 16, 0, 0, 0, 0, 0, 42, 0, 16, 0, 0, 0, 0, 0, 1, 0, 0, 7, 66, 0, 16, 0, 0, 0, 0, 0, 42, 0, 16, 0, 0, 0, 0, 0, 1, 64, 0, 0, 254, 0, 0, 0, 41, 0, 0, 10, 50, 0, 16, 0, 1, 0, 0, 0, 102, 10, 16, 0, 2, 0, 0, 0, 2, 64, 0, 0, 20, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 60, 0, 0, 7, 130, 0, 16, 0, 0, 0, 0, 0, 26, 0, 16, 0, 1, 0, 0, 0, 10, 0, 16, 0, 1, 0, 0, 0, 30, 0, 0, 7, 66, 0, 16, 0, 0, 0, 0, 0, 58, 0, 16, 0, 0, 0, 0, 0, 42, 0, 16, 0, 0, 0, 0, 0, 140, 0, 0, 11, 66, 0, 16, 0, 0, 0, 0, 0, 1, 64, 0, 0, 1, 0, 0, 0, 1, 64, 0, 0, 0, 0, 0, 0, 26, 0, 16, 0, 0, 0, 0, 0, 42, 0, 16, 0, 0, 0, 0, 0, 31, 0, 4, 3, 10, 0, 16, 0, 0, 0, 0, 0, 180, 0, 0, 9, 18, 0, 16, 0, 1, 0, 0, 0, 0, 224, 17, 0, 0, 0, 0, 0, 1, 64, 0, 0, 0, 0, 0, 0, 1, 64, 0, 0, 1, 0, 0, 0, 41, 0, 0, 7, 18, 0, 16, 0, 0, 0, 0, 0, 10, 0, 16, 0, 1, 0, 0, 0, 1, 64, 0, 0, 2, 0, 0, 0, 166, 0, 0, 7, 18, 224, 17, 0, 1, 0, 0, 0, 10, 0, 16, 0, 0, 0, 0, 0, 42, 0, 16, 0, 0, 0, 0, 0, 140, 0, 0, 11, 18, 0, 16, 0, 0, 0, 0, 0, 1, 64, 0, 0, 1, 0, 0, 0, 1, 64, 0, 0, 1, 0, 0, 0, 26, 0, 16, 0, 0, 0, 0, 0, 1, 64, 0, 0, 0, 0, 0, 0, 30, 0, 0, 7, 130, 0, 16, 0, 2, 0, 0, 0, 42, 0, 16, 0, 2, 0, 0, 0, 10, 0, 16, 0, 0, 0, 0, 0, 30, 0, 0, 10, 50, 0, 16, 0, 3, 0, 0, 0, 214, 5, 16, 0, 2, 0, 0, 0, 2, 64, 0, 0, 0, 0, 0, 0, 255, 255, 255, 255, 0, 0, 0, 0, 0, 0, 0, 0, 54, 0, 0, 8, 194, 0, 16, 0, 3, 0, 0, 0, 2, 64, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 45, 0, 0, 137, 194, 0, 0, 128, 67, 85, 21, 0, 226, 0, 16, 0, 1, 0, 0, 0, 70, 14, 16, 0, 3, 0, 0, 0, 54, 121, 16, 0, 0, 0, 0, 0, 164, 0, 0, 7, 242, 224, 17, 0, 2, 0, 0, 0, 6, 0, 16, 0, 1, 0, 0, 0, 150, 7, 16, 0, 1, 0, 0, 0, 18, 0, 0, 1, 180, 0, 0, 9, 18, 0, 16, 0, 1, 0, 0, 0, 0, 224, 17, 0, 0, 0, 0, 0, 1, 64, 0, 0, 4, 0, 0, 0, 1, 64, 0, 0, 1, 0, 0, 0, 30, 0, 0, 9, 18, 0, 16, 0, 0, 0, 0, 0, 10, 0, 16, 128, 65, 0, 0, 0, 1, 0, 0, 0, 10, 128, 32, 0, 0, 0, 0, 0, 1, 0, 0, 0, 41, 0, 0, 7, 130, 0, 16, 0, 0, 0, 0, 0, 10, 0, 16, 0, 0, 0, 0, 0, 1, 64, 0, 0, 2, 0, 0, 0, 166, 0, 0, 7, 18, 224, 17, 0, 1, 0, 0, 0, 58, 0, 16, 0, 0, 0, 0, 0, 42, 0, 16, 0, 0, 0, 0, 0, 140, 0, 0, 11, 34, 0, 16, 0, 0, 0, 0, 0, 1, 64, 0, 0, 1, 0, 0, 0, 1, 64, 0, 0, 1, 0, 0, 0, 26, 0, 16, 0, 0, 0, 0, 0, 1, 64, 0, 0, 0, 0, 0, 0, 30, 0, 0, 7, 18, 0, 16, 0, 2, 0, 0, 0, 26, 0, 16, 0, 2, 0, 0, 0, 26, 0, 16, 0, 0, 0, 0, 0, 30, 0, 0, 10, 50, 0, 16, 0, 1, 0, 0, 0, 134, 0, 16, 0, 2, 0, 0, 0, 2, 64, 0, 0, 255, 255, 255, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 54, 0, 0, 8, 194, 0, 16, 0, 1, 0, 0, 0, 2, 64, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 45, 0, 0, 137, 194, 0, 0, 128, 67, 85, 21, 0, 226, 0, 16, 0, 0, 0, 0, 0, 70, 14, 16, 0, 1, 0, 0, 0, 54, 121, 16, 0, 0, 0, 0, 0, 164, 0, 0, 7, 242, 224, 17, 0, 2, 0, 0, 0, 6, 0, 16, 0, 0, 0, 0, 0, 150, 7, 16, 0, 0, 0, 0, 0, 21, 0, 0, 1, 62, 0, 0, 1, 83, 84, 65, 84, 148, 0, 0, 0, 116, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 47, 0, 0, 0, 19, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 2, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 2, 0, 0, 0, 6, 0, 0, 0, 82, 84, 83, 48, 188, 0, 0, 0, 2, 0, 0, 0, 3, 0, 0, 0, 24, 0, 0, 0, 1, 0, 0, 0, 136, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 72, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 104, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 1, 0, 0, 0, 80, 0, 0, 0, 1, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255, 255, 255, 1, 0, 0, 0, 112, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255, 255, 255, 21, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 16, 0, 0, 0, 4, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 255, 255, 127, 127, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
Primary Intestinal Melanoma Presenting as Intussusception - A Rare Case Report Malignant melanomas mostly begin as an oculocutaneous lesion and then metastasise to other sites over time. Gastrointestinal melanomas are rare but primary intestinal melanomas are extremely rare. They account for 1 - 3 % of malignant tumours of GI tract. 1,2 Although few cases have been reported, the existence of primary intestinal melanoma is still doubtful. It is difficult to differentiate between primary and secondary intestinal melanomas based on their clinical picture alone. Some authors believe that the metastatic melanoma into the intestine manifest symptoms in the patient after complete regression of some old cutaneous lesion. 3,4 But some believe that primary melanoma of small intestine originates from Schwannian neuroblast cells, neural crest melanoblasts, or amine-precursor uptake and decarboxylation (APUD) cells through neoplastic changes. 5,6 They are unrecognized until late due to absence of symptoms, but if symptoms occur, they include abdominal pain, gastrointestinal bleeding and sometimes with intestinal obstruction and few present acutely with perforation. By any origin, malignant melanoma is an aggressive tumour with very poor prognosis and low survival rates, even after surgery. Here we report a case of primary intestinal melanoma in a young patient who presented as intussusception of small intestine. A 30-year-old female presented to our emergency unit with the complaints of abdominal pain, dark coloured stools since 2 months and vomiting since 5 days. It was dull aching pain which was insidious in onset, gradually increasing and not relieved with medication. On examination, abdomen was distended with mild tenderness in right iliac fossa and right lumbar area. On per rectal examination, red current jelly stools were seen. She had regular menstrual cycles, two children with no antenatal, intrapartum, or postnatal complications. Her last child birth was 2 years back. Her past medical or surgical history was insignificant. Patient was admitted in our department for further management. Malignant melanomas mostly begin as an oculocutaneous lesion and then metastasise to other sites over time. Gastrointestinal melanomas are rare but primary intestinal melanomas are extremely rare. They account for 1 -3 % of malignant tumours of GI tract. 1,2 Although few cases have been reported, the existence of primary intestinal melanoma is still doubtful. It is difficult to differentiate between primary and secondary intestinal melanomas based on their clinical picture alone. Some authors believe that the metastatic melanoma into the intestine manifest symptoms in the patient after complete regression of some old cutaneous lesion. 3,4 But some believe that primary melanoma of small intestine originates from Schwannian neuroblast cells, neural crest melanoblasts, or amine-precursor uptake and decarboxylation (APUD) cells through neoplastic changes. 5,6 They are unrecognized until late due to absence of symptoms, but if symptoms occur, they include abdominal pain, gastrointestinal bleeding and sometimes with intestinal obstruction and few present acutely with perforation. By any origin, malignant melanoma is an aggressive tumour with very poor prognosis and low survival rates, even after surgery. Here we report a case of primary intestinal melanoma in a young patient who presented as intussusception of small intestine. A 30-year-old female presented to our emergency unit with the complaints of abdominal pain, dark coloured stools since 2 months and vomiting since 5 days. It was dull aching pain which was insidious in onset, gradually increasing and not relieved with medication. On examination, abdomen was distended with mild tenderness in right iliac fossa and right lumbar area. On per rectal examination, red current jelly stools were seen. She had regular menstrual cycles, two children with no antenatal, intrapartum, or postnatal complications. Her last child birth was 2 years back. Her past medical or surgical history was insignificant. Patient was admitted in our department for further management. I n v e s t i g a t i o n s Routine laboratory investigations were found to be normal, Xray abdomen erect shows minimal air fluid level. Ultrasonography (USG) abdomen revealed telescoping of distal ileal segment along with its mesentry into the cecum and ascending colon up to hepatic flexure suggestive of ileo-cecal intussusception. Contrast enhanced computed tomography (CECT) abdomen showed telescoping of part of ileum, cecum along with its mesentry through the ascending colon up to hepatic flexure for a segment of 22 cm with proximal small bowel obstruction. There was ill defined exophytic heterogeneously enhancing mass lesion noted over wall of intussusception measuring 2.7 x 3 cm suggesting neoplastic mass. There were multiple variable sized pleural and parenchymal based enhancing soft tissue density nodules noted diffusely involving bilateral lung largest measuring 2.3 x 2 cm. suggestive of metastatic deposits. CA 125 was slightly raised up to 89.1 U / ml. Other tumour markers including CA 19.9, alpha-fetoprotein (AFP), lactate dehydrogenase (LDH) and human chorionic gonadotropin (HCG) were within normal limits. Uterus and bilateral ovaries appears normal clinically and radiologically. C L I N I C A L D I A G N O SI S Ileo-cecal intussusception with distal ileal neoplastic mass with lung metastasis. D I F F E R E N T I A L D I A G N O S I S 1. Primary small bowel benign or malignant tumour. 2. Small bowel lymphoma. 3. Metastatic small bowel tumour from unknown primary. D I SC U S SI O N O F M A N A G E M E N T After pre anaesthetic check-up, patient was planned for surgery. Intra-operatively, distal ileum was seen protruding along with cecum and its mesentry into ascending colon up to hepatic flexure. Hence, proceeded with right hemicolectomy with end ileostomy. On gross examination, sessile polypoidal growth of size 3 x 2.5 cm, black in colour identified on mucosal surface of intussusceptum, approximately 15 cm proximal to ileo-cecal junction. One more polypoidal growth of size 3 x 2 cm, black in colour seen in distal ileum 25 cm proximal to the ileo-cecal junction. The resected tissue was sent for histopathology. Microscopic examination showed features of invasive melanoma infiltrating up to muscle layer with eight satellite lesions present in both ileum and cecum. Lymphovascular invasion was also present. Three out of sixteen lymph nodes had metastatic tumour deposits. Serosal surface was free of tumour. Tumour infilatrating lymphocytes were not seen. Immunohistochemistry showed tumour cells positive for S-100, HMB 45 and Ki67 was 45 %. Further ophthalmologic and dermatological consultations were made to rule out any lesions in skin, scalp, oral or genital mucosa and eyes which yielded negative results. She was planned for chemotherapy but patient lost follow up. She died after 6 months of surgery, enquired on call. P A T H O L O GI C A L D I SC U S S I O N Gastrointestinal (GI) tract melanomas can be either primary or metastatic. Small intestine and colon doesn't contain melanocytes so the occurrence of melanoma at these places is thought to be due to neural crest cells which migrated to distal ileum through omphalomesentric canal. Although it can arise at any site from oral cavity to anus, small intestine is the most common site in GI tract. 6 There have been many theories to prove a GI melanoma to be primary tumour and not metastatic from a unknown primary lesion. The unknown primary cutaneous sites constitute 26 % of the cases. 7 As proposed by Blecker et al. 8 presence few criterias can diagnose a primary GI melanoma -1. A single mucosal lesion in intestine. 2. Intramucosal melanocytic lesions in the overlying or adjacent intestinal epithelium. 3. Absence of any melanocytic lesion on the skin. Histologically, lymphocytic invasion of dermis with melanophages, blood vessels and fibrosis characterise a metastatic lesion. 9 In our case, there was no primary cutaneous or mucosal lesion at any other site with involvement of intestine as the sole finding. The presence of satellite lesions in adjacent intestinal epithelium, lack of serosal involvement, absence of lymphocytic invasion strengthen our diagnosis of primary intestinal melanoma. Thus, we second the belief of some other authors who claim the existence of primary melanoma of GI tract. 2,10 There is very scarce data on primary intestinal melanomas due to very few cases reported till date. A thorough search into literature yielded few cases of primary small bowel melanoma from which we drew conclusions regarding management of intestinal melanoma. Diagnosis of presence of some mass can be made using ultrasonography, CT scan, endoscopy or colonoscopy. But in study by Hadjinicolaou et al. 11, video capsule endoscopy helped in detecting a jejunal mass when the above investigations failed. Sinagra E et al. 12 reported a case of primary intestinal melanoma in which they found metastasis at 10 th intercostal space along with intestinal melanoma in the absence of any other cutaneous or mucosal lesion. They also gave a review of thirty six cases of primary small bowel melanoma. Besides these we found four more cases including our case through our search. A case reported by Gabali et al. 13 presented like a gastrointestinal stromal tumour. Two cases were studied by Kwan Mo Yang et al. 14 Radical surgery is considered the best treatment option for patients with GI melanoma. In all the cases, surgery was the only definitive treatment. In most of the cases, the patient either failed to follow up or died within 1 year of surgery. In our patient, no primary lesion in skin, eye or mucosal sites could be identified and history was not suggestive of any such lesions in the past or treatment for the same. She died 6 months after surgery. Primary GI melanoma is associated with very poor prognosis and is more aggressive as compared to metastatic melanomas. The five year survival of both primary and secondary melanomas is nearly 10 % and median survival ranges from 4 -6 months only. 15 for primary GI melanomas is yet to be studied given the paucity of cases in literature. F I N A L D I A G N O SI S Primary intestinal melanoma with ileo-cecal intussusception with lung metastasis Image 4. Histopathological Image of Sections of Polypoidal Growth Showing HMB-45 Positive Staining Financial or other competing interests: None. Disclosure forms provided by the authors are available with the full text of this article at jemds.com.
/* Copyright 2015-2016 <NAME> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. Authors: <EMAIL> (<NAME>), <EMAIL> (<NAME>) */ /** * Platform-specific hdef performance clock value. */ #include "perf.h" #if defined(MyHTML_FORCE_RDTSC) /* Force using rdtsc, useful for comparison */ /** * Get CPU rdtsc frequency. * * TODO: I think using rdtsc for measuring user-space counters is not correct: * - rdtsc does not have a constant rate. instead ot is scaled to physical core's internal clock which changes due to power saving modes on modern CPUs * - rdtsc is software-emulated in virtual machines which will introduce an inconsistency in reported ticks * - user space process can be preempted between consecutive rdtsc measures but the physical clock will still tick while it is executing a different thread. * also think what would happen if preempted process will be re-scheduled on a different physical core which has a different tsc value. * - computing rdtsc frequency produces unreliable results (due to all of the above) * * Consider using platform-specific monotonic hperf timers (ftrace/dtrace) or even clock(). */ uint64_t myhtml_hperf_res(void) { #if defined(__APPLE__) && defined(CTL_HW) && defined(HW_CPU_FREQ) unsigned long long freq = 0; /* OSX kernel: sysctl(CTL_HW | HW_CPU_FREQ) */ size_t len = sizeof(freq); int mib[2] = {CTL_HW, HW_CPU_FREQ}; int error = sysctl(mib, 2, &freq, &len, NULL, 0); if (error) return 0; return freq; #elif defined(__linux__) unsigned long long freq = 0; /* Use procfs on linux */ FILE* fp = NULL; fp = fopen("/proc/cpuinfo", "r"); if (fp == NULL) return 0; /* Find 'CPU MHz :' */ char buf[1024] = {0}; double fval = 0.0; while (fgets(buf, sizeof(buf), fp) != NULL) { if (sscanf(buf, "cpu MHz : %lf\n", &fval) == 1) { freq = (unsigned long long)(fval * 1000000ull); break; } } fclose(fp); return freq; #else # warning Cant figure out cpu frequency on this platfrom return 0; #endif /* defined __APPLE__ || __linux__ ... */ } uint64_t myhtml_hperf_clock(void) { uint64_t x; __asm__ volatile ( "cpuid\n\t" /* cpuid serializes any out-of-order prefetches before executing rdtsc (clobbers ebx, ecx, edx) */ "rdtsc\n\t" "shl $32, %%rdx\n\t" "or %%rdx, %%rax" : "=a" (x) : : "rdx", "ebx", "ecx"); return x; } void myhtml_hperf_print(const char *name, uint64_t x, uint64_t y, FILE *fh) { unsigned long long freq = myhtml_hperf_res(); fprintf(fh, "%s: %0.5f\n", name, (((float)(y - x) / (float)freq))); } #elif defined(_POSIX_TIMERS) && defined(_POSIX_CPUTIME) \ && defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 199309L) /* Do we have clock_gettime? */ #define NSEC_PER_SECOND 1000000000ull #define TIMESPEC_TO_USEC(tspec) (((uint64_t)(tspec).tv_sec * NSEC_PER_SECOND) + (tspec).tv_nsec) uint64_t myhtml_hperf_res(void) { struct timespec tspec; int error = clock_getres(CLOCK_PROCESS_CPUTIME_ID, &tspec); if (error) return 0; unsigned long long ticks_per_sec = (unsigned long long)((double)NSEC_PER_SECOND / TIMESPEC_TO_USEC(tspec)); return ticks_per_sec; } uint64_t myhtml_hperf_clock(void) { struct timespec tspec; int error = clock_gettime(CLOCK_MONOTONIC, &tspec); if (error) return 0; return TIMESPEC_TO_USEC(tspec); } double myhtml_absolute_difference(uint64_t start, uint64_t end) { return (double)(end - start) / (double)myhtml_hperf_res(); } #elif defined(__APPLE__) && defined(__MACH__) /* * TODO: on OSX we can use clock_get_time: http://stackoverflow.com/questions/5167269/clock-gettime-alternative-in-mac-os-x * Or this: http://web.archive.org/web/20100517095152/http://www.wand.net.nz/~smr26/wordpress/2009/01/19/monotonic-time-in-mac-os-x/comment-page-1/ */ // TODO: this is incorrect plug for mac os x // look at links before this comment #include <mach/mach_time.h> uint64_t myhtml_hperf_res(void) { unsigned long long freq = 0; size_t len = sizeof(freq); int mib[2] = {CTL_HW, HW_CPU_FREQ}; int error = sysctl(mib, 2, &freq, &len, NULL, 0); if (error) { return 0; } return freq; } uint64_t myhtml_hperf_clock(void) { return mach_absolute_time(); } double myhtml_absolute_difference(uint64_t start, uint64_t end) { uint64_t difference = end - start; static mach_timebase_info_data_t info = {0,0}; if (info.denom == 0) mach_timebase_info(&info); uint64_t elapsednano = difference * (info.numer / info.denom); double sec = elapsednano * 1e-9; return sec + ((double)(elapsednano - (sec * 1e9)) / (double)1e9); } void myhtml_hperf_print(const char *name, uint64_t x, uint64_t y, FILE *fh) { double val = myhtml_absolute_difference(x, y); fprintf(fh, "%s: %0.5f\n", name, val); } #else # warning No hperf implementation for this platform uint64_t myhtml_hperf_res(void) { return 0; } uint64_t myhtml_hperf_clock(void) { return 0; } void myhtml_hperf_print(const char *name, uint64_t x, uint64_t y, FILE *fh) { } #endif /* defined(MyHTML_FORCE_RDTSC) ... */
SAPOHEALTH : A MOBILE FITNESS APPLICATION FOR NUTRITIONAL ASSESSMENT Health problems related to diet, including obesity and cancer, are important concerns in the current society. The main treatment for obesity includes dieting and frequent physical activity. Diet programs keep and cause weight loss over short, medium, or long term. However, to maintain balanced body energy, a frequent physical exercise is required. This paper presents SapoFitness, a mobile health application for a dietary evaluation and the implementation of challenges, alerts, and constantly motivates the user to use the system and keep the diet plan. SapoFitness is customized to its user keeping a daily record of his/her food intake and daily exercise. The main goal of this application is to offer a motivation tool for weight reduction and increase physical activity. SapoFitness includes the ability to share personal achievements with social networks, a very intuitive human-device interaction and control weight, applying not only to control obesity but also to malnutrition problems. The application offers a continuous alert system activity, sending alerts/messages concerning the user diet program taking into account also his/her physical activity. SapoFitness is a challenged mobile application that delivers the action to the user, motivating for a healthier life style.
My daughter’s hair is long and falls in dark waves to the middle of her back. She wears it down most of the time, though she puts it in a ponytail for soccer or when it’s hot outside. She washes and conditions and brushes her hair and takes care of it in a way that I never imagined she would when she was 5 years old and would scream every time I tried to brush it. Though we’ve come a long way in terms of how we see girls and women, gender stereotypes still exist and, for young girls in particular, long hair and pastels are part of the uniform. At a young age, my daughter learned that people often judge others based on appearance and that the pressure to conform is great. Last summer, as she prepared to enter fourth grade, she told us that she was going to grow out her hair to make the transition to the upper-elementary level of her school easier. She was right -- it is easier to look like everyone else and I understood her desire to blend in. The way she dresses did not change with the length of her hair, so she is still a mix of different and same but her long hair seems to have granted her entrance into the not-so-secret society of girlhood. This week, she is at rock and roll camp run by She Rock She Rock, an organization with a mission to empower girls through music. Her first year, she was 8 and seemed so small compared to the electric guitar she carried in her hand. She’d been playing guitar for several months, so she wasn’t nervous about the music but she was nervous about meeting new people. She wondered if she would fit in with the other girls. But rock camp is a magical place where there are girls with short hair and long hair and in all the colors of the rainbow. There are skirts and ripped jeans, bright colors and black and everyone looks different in the best possible way. This is her third year at camp and when I dropped her off at the beginning of the week, she barely looked back at me. She moved into this stream of girls with ease because at rock camp, you can be yourself. At rock camp, there is more than one way to be a girl. For more information about She Rock She Rock visit their website or attend the showcase Friday night to see girls rock. Lessons from my children: What is the definition of a perfect family?
Josh Chafetz is professor of law at Cornell Law School and author of the new book, Congress’s Constitution: Legislative Authority and the Separation of Powers, from which this article draws. Follow him on Twitter @joshchafetz. Donald Trump’s young presidency is already prompting many Americans to dust off their high-school civics knowledge and think again about concepts like the “separation of powers,” interbranch “checks and balances” and the proper functioning of the federal government. At the same time, it is prompting many pundits, especially but not exclusively on the left, to worry that Trump presents an unprecedented threat to the Constitution. Many are asking aloud questions that in recent times had only been whispered: Do the Constitution’s checks and balances still work? Is James Madison’s 18th-century notion that “ambition” could be trusted to “counteract ambition” applicable to an era of partisanship so intense that it’s warping people’s very conceptions of reality? Can the other constitutional branches—and especially Congress—check President Trump? Story Continued Below As it turns out, the answer thus far is—more or less—yes: Congress is providing a check on Trump’s powers. It may not be happening as swiftly or as comprehensively as some Democrats might like, but the legislative branch is making its weight felt in the Trump era in a manner that, if it continues, bids fair to leave Trump with a reputation as an extraordinarily weak modern president. *** To understand why, we need to correct a common misperception about the separation of powers. The (quite brief) written Constitution does not allocate political power between the branches in a fully, or even largely, determinate manner. Instead, it gives each branch a set of potent tools that it can use to battle with the other branches for power in specific political contexts. The Constitution, for instance, is very clear that “No money shall be drawn from the Treasury, but in Consequence of Appropriations made by Law.” In other words, for the federal government to spend money, Congress must have passed a law authorizing that expenditure. But “How is the federal budget passed?” is a question primarily suited for the classroom. (I should know—it’s one I ask my students every year.) By contrast, “Who will decide the government’s spending priorities for the coming year?” is the sort of question that we actually care about in politics, because what we want to know as citizens is how much we will pay in taxes, what the money will be spent on, and who will decide the answer to those questions. Obviously, a classroom understanding of the written Constitution is important to answering that question: If the president could spend money unilaterally, then Congress’ say over expenditures would be much reduced. But the constitutional text, while necessary, is by no means sufficient to understanding how the power is actually allocated. In 2011, the Republican-controlled House was able to force President Barack Obama and the Democratic Senate to make a huge number of concessions to Republican policy priorities as a price for keeping the government open. In 2013, the Republican-controlled House tried the same gambit and actually shut down the government—but this time, it was forced to retreat after a couple of weeks, reopening it almost entirely on Democrats’ terms. The Constitution hadn’t changed in the interim, nor had partisan control of the relevant institutions. What had changed were the political dynamics: The 2010 elections had made clear that the Republicans had the electorate behind them in 2011; the 2012 elections, by contrast, proved that the political winds had shifted. In different political contexts, the same institutions, operating under the same written Constitution, had different levels of power. So how might we relate this deeper understanding of the separation of powers back to the Trump era? First, note the importance of actors’ standing with the public: Republicans controlled the same institution in 2011 and 2013, but what changed was their popularity. In that vein, it’s worth noting that Trump came into office having lost the popular vote by quite a bit, with many of those who did vote for him having done so reluctantly, and his approval rating has been significantly underwater since the second week of his presidency. And he never had much support from GOP elites. The Friday Cover Sign up for POLITICO Magazine’s email of the week’s best, delivered to your inbox every Friday morning. Email Sign Up By signing up you agree to receive email newsletters or alerts from POLITICO. You can unsubscribe at any time. Republicans’ control of both houses of Congress and the Supreme Court means, of course, that opposition to Trump from those institutions will have to overcome significantly higher inertial barriers than it would were at least one of them controlled by Democrats. But partisanship is not a static phenomenon—its forms and patterns change over time. When presidents’ standing in the public sphere is low, they often have trouble getting cooperation even from members of their own party. Think of George W. Bush’s inability to reform Social Security or to get Harriet Miers confirmed to the Supreme Court, or even the trouble that Obama had moving certain nominees (Dawn Johnsen, Goodwin Liu and Debo Adegbile, for example) through Democratic Senates. If Trump remains unpopular—and especially if his unpopularity drags down the reelection prospects of other Republicans, as this year’s special elections thus far suggest he might—then conditions will be especially ripe for Republican pushback. And, at the extreme, if Trump’s presidency at some point really does look like it’s going down in flames, Republicans might sense the chance to develop a bipartisan reputation for heroism by vigorously opposing him. *** So that brings us back to our initial question: Is Congress strong enough to stand up to Trump? Let’s begin with a congressional tool already discussed above: the power of the purse. Republican elites—both governors and members of Congress—have been overwhelmingly critical of the Trump White House’s budget proposals, and it seems apparent that both the deep cuts to many existing programs and a number of the specific programs that Trump does want to fund (the border wall, for example) are unlikely to survive the congressional budget process. Also, Congress appears to be in no hurry to enact much of Trump’s desired legislative agenda. After significant turmoil, the House finally passed the American Health Care Act, but even before its dismal CBO score, a number of Senate Republicans made it clear that the upper chamber would draft its own bill. Senator Richard Burr of North Carolina recently said that he did not think the Senate would pass a health care bill this year—a remarkable on-the-record admission from a member of the majority party. And, of course, even if the Senate passed a health care bill, it would be another herculean struggle to get it through the House again. Nor is health care the only part of Trump’s legislative agenda that has failed to make it through Congress. Neither an infrastructure bill nor a tax reform plan has yet materialized, and Trump faces the very real possibility of having no major legislative accomplishments in his first year in office. Another domain in which Congress might push back against a president is that of personnel. Here, Trump’s record with Congress has in some sense been better. Only one of his Cabinet nominees, Andrew Puzder, nominated as secretary of labor, has failed in the Senate. And by nominating an establishment conservative—the sort of nominee a President Marco Rubio might have chosen—as his Supreme Court pick, Trump ensured that the Senate Republican caucus held together. But in another sense, appointments have been a trouble spot for this administration. The administration has been almost shockingly slow to staff up at the sub-Cabinet level, and the time required to confirm those nominees later will detract still further from Trump’s legislative agenda. Moreover, Trump is certain to face significant trouble getting his choice of a new FBI director confirmed after having fired James Comey—which may partly explain why five candidates have withdrawn from consideration in the past few weeks. Investigations offer another potent means by which Congress can confront a president, especially this president. There are currently four committees investigating links between Russia and the Trump campaign and administration. Many critics of the administration are frustrated by the pace of these investigations. But while there is little doubt they’d be going faster if Democrats controlled one chamber, the extent to which these investigations have proceeded and have damaged the administration is remarkable, especially for an administration less than 150 days old. The March testimony of then-FBI Director Comey and NSA Director Michael Rogers before the House Intelligence Committee generated the headline-making confirmation that the FBI was, indeed, investigating the Trump campaign’s ties to Russia. After Trump fired Comey, the lead story out of acting FBI Director Andrew McCabe’s testimony before the Senate Intelligence Committee was that McCabe denied the White House’s claim that Comey had lost the confidence of the FBI rank and file. And in recent weeks, soon-to-retire House Oversight Committee chairman Jason Chaffetz has become increasingly confrontational toward the administration, insisting that the existence of a special counsel investigation is not sufficient reason for the FBI to withhold documents that have been requested by his committee. Comey, of course, is set to testify before an open session of the Senate Intelligence Committee this week, and both intelligence committees continue to ponder how to respond to former national security adviser Michael Flynn’s invocation of the Fifth Amendment in refusing to turn over various documents under subpoena. All of these investigative moves required Republican buy-in, and none of them are exactly helpful to this administration. So, what is the verdict on Congress’ uses of its tools to push back against Trump? So far, mixed. It certainly has not been a record of unalloyed partisan subservience, but neither has it been one of sustained opposition. But it is worth noting that opposition tends to be self-reinforcing: Insofar as it prevents the administration from getting policy wins, or furthers a narrative of failure, fecklessness or corruption, it will tend to lower the president’s public standing still further. That, in turn, will encourage and embolden congressional opposition, which will, in turn, produce more failures and embarrassments for the administration. Nothing about that dynamic is inevitable, of course. Trump could conceivably turn things around, and an exogenous shock to the system could scramble political incentives and interactions. But the mere fact of unified Republican government does not guarantee Trump a free hand, and Congress has plenty of tools with which to push back, should it choose to do so.
Lisa Smith must be allowed to return to Ireland. The former Defence Forces soldier detained in Syria, as that country's fierce conflict draws to a close, is an Irish citizen in difficulty in a foreign country and she is entitled to support and help to return to her homeland. The issue is all the more urgent because Ms Smith has a two-year-old son in her care. In due course, Ms Smith has questions to answer about her activities in Ireland, in Syria and perhaps elsewhere. But that is a distinct issue to which due process of investigation and legal assessment must be applied. There can be no peremptory denial of Irish citizenship to anyone who correctly holds that basic entitlement. Ireland is a democratic republic which must uphold the rights of citizenship along with other fundamental human rights. What happens in other jurisdictions is a matter for the authorities there. Specifically, the decision of the London government to revoke the British citizenship of a young woman detained in comparable circumstances sets utterly no precedent for Ireland. There is absolutely no obligation upon Ireland to follow any other country's lead in matters such as this. The Irish authorities' first job is to ensure each citizen gets fair play, and those in distress overseas get whatever practical assistance which can be delivered. To do anything less would be to seriously devalue the Irish passport upon which Ms Smith reportedly travelled. The case of Shamima Begum having her citizenship revoked has led to protests that it has created a two-tier system of nationality in the UK. That kind of situation must be avoided at all costs. In the fullness of time, after due process, there may be grounds for serious sanction in cases involving any Irish citizen. But serious penalties - including possible revocation of nationality - can only be taken after due legal procedures and in extremis. Firmly stating all of this does not in any way pre-empt action on other issues surrounding this young woman's remarkable case. Ms Smith's five years of military training in the Irish Defence Forces, and her stint working in the Air Corps which brought her into contact with senior political leaders, may, or may not, be a factor here. The authorities must establish what role, if any, she may have had in the Syrian conflict. And what was the nature, if any, of her links with the radical Islamic grouping Isil. For any Irish citizen, at home or abroad, the rights of nationality and citizenship are no shield against facing the consequences of alleged wrongdoing. Equally, we know that about 30 to 40 Irish passport holders have become embroiled in the Syrian conflict. Some of these were "radicalised" to espouse the cause of those pursuing the tenets of extremists. Ms Smith's experience may help the authorities learn more and further efforts to prevent young people, especially, following that path. But for now, it's a case of first things first, and it's time to help Ms Smith return home.
Antiferromagnetic I-Mn-V semiconductors After decades of research, the low Curie temperature of ferromagnetic semiconductors remains the key problem in the development of magnetic semiconductor spintronic technologies. Removing this roadblock might require a change of the field's basic materials paradigm by looking beyond ferromagnets. Recent studies of relativistic magnetic and magnetotransport anisotropy effects, which in principle are equally well present in materials with ferromagnetically and antiferromagnetically ordered spins, have inspired our search for antiferromagnetic semiconductors suitable for high-temperature spintronics. Since these are not found among the magnetic counterparts of common III-V or II-VI semi- conductors, we turn the attention in this paper to high N \'eel temperature I-II-V magnetic compounds whose electronic structure has not been previously identified. Our combined experimental and theoretical work on LiMnAs provides basic prerequisite for the systematic research of this class of materials by demonstrating the feasibility to grow single crystals of group-I alkali metal compounds by molecular beam epitaxy, by demonstrating the semiconducting band structure of the I-Mn-V's, and by analyzing their spin-orbit coupling characteristics favorable for spintronics. function of the microscopic magnetic moment vector. The concept, whose generic validity has been recently confirmed in transition metal FMs, 4-6 paves a way to spintronics in a wide range of systems beyond FMs, including materials with antiferromagnetically (AFM) coupled moments. 7 When realized in AFM semiconductors, these relativistic spintronic effects can be combined with electric-field gating in spintronic transistor structures. Applications of AFM semiconductors may also include integration of conventional semiconductor micro and optoelectronics functionalities directly in the exchange-biasing AFM layers in common spintronic devices. The aim of this paper is to identify a suitable class of materials for high-temperature AFM semiconductor spintronics. In Fig. 1(a) we illustrate that a strong AFM ground state is from the basic physics perspective much more compatible with a gapped, semiconductor-like band structure than a strong FM state. In the FM case, the gap competes with the exchange spin-splitting of the bands which at strong FM coupling turns the system into a metal. In AFMs, this competition is missing and indeed a large majority of magnetic semiconductors order antiferromagnetically. Our interest is in magnetic compounds which are direct counterparts of the most common non-magnetic semiconductors with eight valence electrons per primitive cell. Fig. 1(b) illustrates a survey of these materials and the search path that has brought our attention to the I-Mn-V compounds. The common non-magnetic semiconductors are derived from the group-IV (Si, Ge) semiconductors by applying the "proton transfer" rule: 8 By imagining a transfer of a proton from one to the other group-IV atom in the primitive cell we obtain the III-V compounds, a transfer of two protons gives the II-VI materials, etc. The magnetic counterpart to the group-II atoms with a half-filled d(f ) shell is Mn 3d 5 4s 2 (Eu 4f 7 6s 2 ) and the neighboring magnetic atom Fe (Gd) can be considered as a group-III element when searching for the magnetic semiconductors. Since there is no direct realization of a magnetic semiconductor within the group-IV crystals we need to proceed to compounds. Here FeAs is an example of AFM semiconductors from the III-V family. As implied by Fig. 1(a), the less frequent FM semiconductors have a better chance to occur among the more localized (less hybridized) f -electron magnetic elements and the lighter anions (wider gap). GdN FM semiconductor belongs to this group of materials. Transition temperatures of all the III-V magnetic semiconductors are below room-temperature and the non half-filled shell of the magnetic element is one of the reasons for weaker magnetic interactions. Indeed, (Ga,Mn)As already suggests that using Mn with the half-filled magnetic shell, i.e. highest moment among the 3d magnetic elements, has a favorable effect on the strength of magnetic coupling. (Recall that the (Ga,Mn)As random alloy is not an intrinsic but rather a heavily doped degenerate semiconductor because Mn Ga is not an isovalent impurity.) Consistent with this trend there is a number of Mn-chalcogenide AFM semiconductors and there are also several FMs among the f -electron and lighter anion II-VI compounds. Still the transition temperatures of II-VI magnetic semiconductors do not safely exceed room temperature. Here the larger anions and more ionic bonds compared to the III-V's result in larger lattice parameters which softens the magnetic interactions. The idea behind our work discussed in the following paragraphs is that by transferring only one proton to the anion and the other proton to a new lattice site should result in I-Mn-V semiconductors which combine the favorable tighter lattice arrangement of the group-V pnictides and the large magnetic moment on Mn. Alkali-metal I-Mn-V compounds are stable materials which have been previously prepared by chemical synthesis in polycrystalline or powder forms. X-ray studies showed that the I-Mn-V's, as well as the non-magnetic I-II-V's, have a similar crystal structure to III-V semiconductors, as illustrated in Fig.1(c). 9-13 Neutron-diffraction measurements identified AFM coupling in the Mn-planes persisting to very high temperatures and a weaker interlayer coupling along the c-axis which persists in most of these compounds above 400 K. 11-13 While the chemists have provided us with the knowledge of these favorable structural and magnetic characteristics of I-Mn-V's, the compounds have been virtually unexplored by the physical materials research community. In particular there is no preexisting information on the electronic structure of I-Mn-V's and on the synthesis of alkali-metal group-I compounds by modern molecular beam epitaxy (MBE) growth techniques. We now proceed to address these two basic problems in the materials science of I-Mn-V compounds. For the epitaxial growth of LiMnAs we used InAs substrate because the crystallographically equivalent As planes in InAs and in LiMnAs have very similar lattice parameters (4.283 in InAs versus 4.267 in LiMnAs), as inferred from X-ray data on the LiMnAs materials prepared previously by chemical synthesis. The comparison between the respective crystal structures (see Fig. 1(c)) further implies that starting from the common As plane, LiMnAs should grow epitaxially under a tensile strain with its Mn planes rotated by 45 with respect to the counterpart In planes of the substrate. Since MnAs is a ferromagnetic metal with a hexagonal crystal structure we have also prepared reference MnAs samples deposited on InAs to highlight the striking consequences of Li incorporation during the growth. For this work we have grown ten LiMnAs/InAs wafers in a Kryovak MBE system equipped with Li, Mn, and As solid sources. Before the growth, the surface oxide on the InAs substrate was desorbed in the As atmosphere at 450 C. The LiMnAs films were deposited directly on the substrate at low temperatures (∼ 150 C) without growing any preceding buffer layer. (by a factor of 1.5-2) suggesting that LiMnAs has a larger band gap than InAs. The incorporation of Li and Mn in the grown epilayers was confirmed ex situ by a series of sputtering and X-ray photoemission measurements which showed, within the experimental scatter, the expected 1:1 ratio of Li and Mn inside the film. X-ray diffraction experiments presented in Fig. 3 prove that the films are epitaxial and single phase LiMnAs crystals. In addition to the InAs substrate peaks, the diffraction curve in Fig. 3(a) shows the full set of oriented LiMnAs reflections and no traces of other phases or orientations. Note that the peaks are slightly shifted to higher angles with respect to the bulk values (denoted by crosses) in agreement with the expected tensile strain in the LiMnAs epilayer on InAs. In order to investigate the epitaxial relationship, we performed azimuthal scans as a function of the wavevector Q (see Fig. 3(b)). The data show that the LiMnAs and InAs reflections are separated by the angle = 26.7 which matches the nominal separation in the case of a 45 in-plane rotation of the LiMnAs unit cell with respect to the substrate. Hence, the LiMnAs direction is parallel to the InAs direction, as illustrated in the schematic 3D diagram in Fig. 3(b). Reciprocal space maps shown in Fig. 3(c) evidence the vertical alignment of the substrate and film peak, i.e., the LiMnAs film is an epitaxial single-crystal fully strained to the InAs substrate. The black and red crosses in the plot denote the expected positions for the substrate and bulk LiMnAs, respectively. Due to the in-plane tensile strain, the out-of-plane parameter is contracted leading to the displacement of the LiMnAs reflection. As a result of this small structural distortion, the unit cell volume of the LiMnAs epilayer is increased by 0.2%. Based on the equivalence between the lattice structure of our LiMnAs single-crystals and of the previously chemically synthesized polycrystalline bulk materials we expect the same AFM structure of the epilayers, as illustrated in Fig. 1(c). Neutron diffraction measurements on thin film epilayers are not routinely available and attempts to perform these magnetic structure experiments on LiMnAs are beyond the scope of this initial work. Instead we performed superconducting quantum interference device (SQUID) measurements of the magnetization which are shown in Fig. 3(d). The ex situ optical transmission measurements of the LiMnAs grown on InAs is shown in Fig. 3(e). The observed transparency of the wafer (up to the band-gap energy of the 0.5 mm thick InAs substrate) complements the above in situ optical demonstration of the semiconducting character of LiMnAs. The optical transparency of LiMnAs is in striking contrast to the control MnAs sample which, due to its metallic band structure, is strongly absorbing over the entire studied spectral range, as shown in Fig. 3(e). We note that the enhanced absorption in LiMnAs/InAs wafer at the low-energy side of the spectrum is due to free carriers introduced by Li diffused into the InAs substrate during the growth. Interstitial Li acts as a shallow donor in InAs and the resulting n-type doping of InAs can be as high as ∼ 10 18 − 10 19 cm −3 under our growth conditions. We made these observations based on our control experiment in which the InAs substrate was exposed in the MBE chamber to the Li flux alone. In the resulting InAs:Li we observe again the enhanced low-energy absorption which is correlated with high dc conductivity of the sample. After annealing the Li out of the InAs, the transparency at low energies is recovered and the conductivity drops to the nominal value of the unprocessed substrate. We now proceed to the theoretical investigation of the electronic structure of the I-Mn-V compounds. We have performed band structure calculations of LiMnAs, NaMnAs, and KMnAs using full-potential density-functional theory. We found that the AFM state has always lower energy than the FM state. In LiMnAs, the difference in GGA is 34.4 mRy/atom (32.7 mRy/atom in LDA) and similarly in NaMnAs and KMnAs the AFM state is lower in energy by 32.9 and 32.5 mRy/atom, resp. Remarkably, these values, which can be used to estimate the Nel temperature T N, are larger in the I-Mn-V's than in metal Mn-based alloys whose T N ∼ 10 3 K. 14 Our calculations therefore reproduce not only the ground state AFM structure of I-Mn-V's but also explain the high T N. The I-Mn-V AFMs are intrinsic semiconductors for the stoichiometric composition 1:1:1 of the constituent elements, as shown by LDA band dispersions in Fig. 4(a)-(d). Note, that the calculated band gaps are likely underestimated by the density functional theory. Besides the common shortcomings of the LDA, the accurate theoretical determination of the band gap is further complicated by correlation effects on Mn d-orbitals. The states are on one hand strongly admixed in the top valence band and bottom conduction band states, as shown by the density of states (DOS) plotted in Fig. 5(a),(b), but on the other hand are still significantly more localized then the sp-states. Accounting for these effects in LiMnAs increases significantly the band gap and suppresses the relative difference between the indirect and direct gaps. In KMnAs, the correlations even change the character of the material from an indirect to a direct gap semiconductor. Fig. 2(c). Similarly, the significantly larger band gap of LiMnAs compared to InAs is consistent with optical measurements on our LiMnAs/InAs epilayers. The magneto-crystalline anisotropy energy (MAE) is an important example of phenomena based on the collective exchange interaction and spin-orbit coupling which are even functions of the microscopic moment vector and are therefore present not only in ferromagnets but also in compensated AFMs. Our relativistic full-potential LDA calculations show that spinorbit coupling on both the magnetic Mn and on the group-V elements contribute to the large net MAE. The uniaxial in-plane vs out-of-plane anisotropy constant in LiMnAs is as high as 0.58 meV per formula unit. The MAE is one of the key parameters determining the interface coupling between a FM and an AFM which is utilized, e.g., for pinning the FM via the exchange bias effect in giant or tunneling magneto-resistance spintronic sensor and memory devices. 1 The coupling can be also used for controlling the staggered moment orientation in the AFM by the exchange spring effect induced by rotating moments in the ferromagnet. 15 In an AFM alone, the MAE can be used to rotate the staggered moments by applying piezoelectric or electrostatic fields. 7 Note that the electrostatic effects are subtle and conceptually difficult to describe in metallic systems due to the strong screening effects of high-density free carriers. The intrinsic or weakly doped semiconductor character of I-Mn-V AFMs makes them particularly suitable and unique systems for achieving large electrostatic gating effects on the MAE. Similar to the MAE, there is a class of anisotropic magneto-transport phenomena in bulk and nanostructured magnetic materials which are an even function of the microscopic moment. In very general terms, the physical origin of these effects is the anisotropy in the DOS with respect to the orientation of magnetic moments. Our DOS calculations shown in Fig. 5(d) imply that these effects can be order of magnitude larger in the I-Mn-V AFMs compared to metal Mn-based AFMs 7 and can be tuned by varying the carrier concentration via doping or electrical gating in field-effect transistor structures. We note that no signficant qualitative differences were found when comparing the magnetic anisotropy effects in LiMnAs calcuated in the LDA and LDA+U. To conclude, we have presented a new class of semiconductor materials which opens the prospect for high-temperature semiconductor spintronics. We have made an observation that the studied I-Mn-V AFM compounds are the simplest magnetic counterparts to conventional eight valence electron semiconductors which offer this prospect. In the experimental part of our study we have demonstrated on LiMnAs that high-quality single-crystals of group-I compounds can be grown by molecular beam epitaxy. Our ab initio calculations confirmed that the I-Mn-V compounds are strong AFMs, confirmed our prediction and experimental indications of the semiconducting band structure of these materials, and unveiled strong spin-orbit coupling character of conduction and valence band states favorable for spintronics. These experimental and theoretical results define a framework for future systematic research of materials properties of the broad family of I-Mn-V compounds and of their utility in semiconductor nanostructures and spintronic devices. exchange spring. Phys. Rev. Lett. 92, 247201. Corresponding author Correspondence and requests for materials should be addressed to Tomas Jungwirth, [email protected], Institute of Physics ASCR,v.v.i.,Cukrovarnick 10,162 53 Praha 6,Czech Republic. These anisotropies are order of magnitude larger than in the metal Mn-based AFMs and vary strongly near the valence band and conduction band edges.
Cardiac dysfunction in congenital diaphragmatic hernia: Pathophysiology, clinical assessment, and management. Cardiac dysfunction is an important consequence of pulmonary hypertension in congenital diaphragmatic hernia and a determinant of disease severity. Increased afterload leads to right ventricular dilatation and diastolic dysfunction. Septal displacement and dysfunction impair left ventricular function, which may also be compromised by fetal hypoplasia. Biventricular failure contributes to systemic hypotension and hypoperfusion. Early and regular echocardiographic assessment of cardiac function and pulmonary artery pressure can guide therapeutic decision-making, including choice and timing of pulmonary vasodilators, cardiotropes, ECMO, and surgery.
<gh_stars>1-10 /* * Copyright (c) 2020 GeekStore. * All rights reserved. */ package io.geekstore.config.promotion.conditions; import io.geekstore.common.ConfigArgValues; import io.geekstore.config.promotion.PromotionCondition; import io.geekstore.entity.OrderEntity; import io.geekstore.entity.OrderLineEntity; import io.geekstore.types.common.ConfigArgDefinition; import com.google.common.collect.ImmutableMap; import java.util.HashMap; import java.util.List; import java.util.Map; /** * Created on Dec, 2020 by @author bobo */ @SuppressWarnings("Duplicates") public class ContainsProductsCondition extends PromotionCondition { private final Map<String, ConfigArgDefinition> argSpec; public ContainsProductsCondition() { super( "contains_products", "Buy at least { minimum } of the specified products" ); Map<String, ConfigArgDefinition> argDefMap = new HashMap<>(); ConfigArgDefinition argDef = new ConfigArgDefinition(); argDef.setType("int"); argDefMap.put("minimum", argDef); argDef = new ConfigArgDefinition(); argDef.setType("ID"); argDef.setList(true); argDef.setUi(ImmutableMap.of("component", "product-selector-form-input")); argDef.setLabel("Product variants"); argDefMap.put("productVariantIds", argDef); argSpec = argDefMap; } @Override public boolean check(OrderEntity orderEntity, ConfigArgValues argValues) { List<Long> ids = argValues.getIdList("productVariantIds"); int matches = 0; for(OrderLineEntity line : orderEntity.getLines()) { if (ids.contains(line.getProductVariantId())) { matches += line.getQuantity(); } } return matches >= argValues.getInteger("minimum"); } @Override public Map<String, ConfigArgDefinition> getArgSpec() { return argSpec; } }
NEW YORKERS are comfortable with sidewalks. So comfortable, in fact, that they're bringing them indoors. Concrete -- the soot-gray sidewalk variety -- is making an inside appearance as fashionable flooring in Chelsea art galleries, retail spaces like Versace on Madison Avenue and Banana Republic in SoHo and now residences from downtown lofts to uptown town houses. Street culture has taken a literal turn. Concrete and cement, the limey stuff that's at the heart of it, might have had an image problem -- mobster men's wear -- but no more. The ex-taxi garages and industrial buildings with the heavy-duty concrete floors that now house upscale businesses like Jeffrey, a 10,000-square-foot boutique that arrived in the meat-packing district last week (stepping over the chicken-blood stains in the sidewalk) have provoked a wave of new floor-pouring. Mr. Parr delayed the opening of his space several months, as two consultants and a second crew with terrazzo-polishing machines massaged the floor to get the surface right. It cost him an extra $7,600. ''We're talking about the oldest, dumbest surface, that people do their garages in because it's cheap,'' Mr. Parr said. Matt Damon and Gwyneth Paltrow's architects, Michael Pierce and D. D. Allen, are talking to them about concrete flooring for their New York addresses. Donna Karan just wrote a check for it in East Hampton. Claire Danes and Robert Redford have already got it. Calvin Klein is selling his home collection off of it in a new advertising campaign. This is not the brute architectural moment typified by Tadao Ando's monastic concrete houses in Japan. Or the polychromatic or the stamped-to-look-like-stone concrete that has become popular as a suburban building material. This is perfectly ordinary concrete -- emphasis on the perfect. But there's nothing plain about it. It is finished to within an inch of its life. The Portland cement mix is selected for shade. Mary Boone, the art dealer, and Rei Kawakubo, the clothing designer, wanted white over gray. The poured surface is stainless-steel troweled by machine, not hand, which produces a clear skin with no browning from metal abrasion. The floor is sealed with Miracle 511 Porous Plus, the chemical product of choice, which gives a subtler shine than silicone. At $200 a gallon, it's the Giaconda's smile. Then the floor is paste-waxed, like furniture. Concrete can cost more than marble, up to $50 a square foot. It is like making a sidewalk out of silk. ''It's something prosaic made to look perfect,'' said Richard Gluckman, an architect with Gluckman Mayner Architects in New York, who is considered by many the king of the concrete floor because of his extensive resume of art gallery renovations. Mr. Gluckman has done spaces for Paula Cooper, Larry Gagosian and Andrea Rosen. The air fare is higher, too. ''Most people's experience with concrete is a sidewalk,'' he said. ''Three dollars a square foot. You come in at 10 times that, they're shocked. They look at you like you're a thief.'' It doesn't rattle Mr. Bouknight's artistic temperament. ''We're taking mud and making it beautiful,'' he said. In its short, sweet celebrity, the trend already has a curve. Ms. Rosen, whose concrete floor on West 24th Street went down a year and a half ago, chose to make it ''as simple as possible,'' she said. ''Middle-range and normal, I didn't want it to be high-end and polished,'' Ms. Rosen explained, citing Ms. Cooper's floor, which went down three years ago, as an example of the ''perfected, controlled'' concrete she didn't want. The contractor gave her the deadpan look. The job was uncosmetic and cheaper. Concrete without makeup looks like concrete, a fact that Ms. Rosen is learning to live with, with expensive help. ''We had a floor person come in who did acid washes to try to get the footprints off,'' she said, referring to what appeared to be permanent tracks in the surface, left by non-salon installers who thought they were installing a concrete floor. Jeffrey Kalinsky, the namesake owner of Jeffrey, on West 14th Street, instructed his architects, Mr. Pierce and Ms. Allen, to do the same. ''It's gorgeous,'' he said, standing in brown satin Alexander McQueen jeans, a diamond and sapphire bracelet on his right wrist and a silver horse-buckle-and-bit bracelet on his left, on a floor that looked more beat-up than Brando in ''On the Waterfront.'' The boutique is a former factory lobby with a fragrance counter where the loading dock was. ''You know how much it would have cost to put in a concrete floor like this today?'' Mr. Kalinsky asked. More than its much-appreciated esthetic modesty would permit it to say. CONCRETE has always had powerful friends in the architectural community: Le Corbusier, Eero Saarinen, more lately, Rem Koolhaas and Maya Lin. Peter Rose, an architect based in Cambridge, Mass., who designed the Canadian Center for Architecture in Montreal, is leaving concrete floors exposed in a town house being completed on the Upper East Side. Though it is his first residential use of concrete, Mr. Rose has no qualms about the rough-and-ready mix material being caught short in an elegant setting. That's a hundred and counting if it stains, which it will find a way to do; it absorbs like a good student. The problem: unlike stone, concrete goes down as a single surface. ''You put marble down in pieces,'' Mr. Bouknight said. ''If anything goes wrong, you put a new piece down. Concrete -- anything goes wrong, you have to patch it.'' Its organic virtues become natural disasters. ''Different batches of sand and cement from different places -- they're different colors. It's going to look patched,'' he said. Except that it's hard as a rock. Something's got to give. It's usually the floor, then the client. Mr. Bers compared concrete floors to the vogue for exposed brick in the 1970's, now an architectural trivia clue. ''I've always wanted to do a black-top floor,'' he said, hedging his bets. But basic concrete hits it off in the right crowd. Roberta Arena, a retired banker, asked her architect, Katherine Chia of Desai Chia Studio in New York, to put concrete down in the bathrooms in her TriBeCa loft, based on a shower stall she saw at a hotel in Lisbon. ''They're terrific,'' Ms. Arena said. ''Never hot or cold; they're not slippery. It's a good pedicure -- they're like walking on sand.'' They're also popular at parties. ''There are always a few guests in there, usually men in suits, who end up in there drinking,'' she said.
Category Shift of Noun Phrases in the Movie Avengers: Infinity War The translation of the film Avengers: Infinity War from English into Indonesian has many category shifts occurrences. This study with the title Category Shift of Noun Phrases in the Movie Avengers: Infinity War has two research problems: (a) what kinds of category shifts can be found in the translation of the film Avengers: Infinity War from English into Indonesian, and (b) how do category shifts applied in the translation of the film Avengers: Infinity War from English into Indonesian. The purposes of this study are to find and describe and analyse the kinds of category shifts occurred in the translation of the film Avengers: Infinity War from English into Indonesian, and to describe how the category shifts occurred in the translation of the film Avengers: Infinity War from English into Indonesian. The data were collected from the film Avengers: Infinity War itself with its Indonesian subtitle. The data were in form of noun phrases, in which category shifts occurred. They were collected using observation and documentation methods. The data were then analysed using descriptive and qualitative method. This study is limited to the analysis of the category shift occurrences of noun phrases in the English-Indonesian subtitle using the theory of translation shift proposed by Catford. The result of this study is that all kinds of category shifts were found in the data, such as shift of structure, shift of class, unit shift and intrasystem shift. Category shifts occurred in the English-Indonesian subtitle due to the different grammatical structure, the different word classes, the different ranks, and the different internal systems of a source language and a target language.
Resonant-tunneling diodes with emitter prewells Resonant-tunneling diodes (RTDs) incorporating an emitter prewell structure are studied both theoretically and experimentally in order to investigate the utility of the emitter region as a device design parameter. The experiments show a tendency for peak bias, current, and the peak-to-valley ratio to increase for wider prewells, behavior likewise seen in both very simple and detailed calculations. Both the simple and more complete models point to interactions between states associated with the prewell and the main quantum well as the reasons for the increase in peak current. These results suggest design guidelines to affect peak bias, current, or the peak-to-valley ratio of RTDs.
Assessment of School Health in Saudi Arabia: The Path to Improved Future Students Health. (Implications of the Saudi School Health Program) Background: The health and wellbeing of school students are of essential value to world communities. In Saudi Arabia (SA), a school health program was initiated with the strategic goal of enhancing the health of the students and the early detection of any health problems. Aims: This study aimed to identify the most common health problems and conditions among school students in SA based on the periodic examination program for school students (PEPSS). Method: A retrospective secondary data analysis from the Ministry of Health (MOH) was based on the program collected in 2018 across four school grades, namely, 1st primary, 4th primary, 1st intermediate, and 1st secondary grade, from 40 school complexes around SA. The collected data included variables related to sociodemographic, family history, past infectious diseases, completion of vaccinations, body mass index (BMI), visual acuity tests, dental examination, scoliosis tests, and attention deficit hyperactivity disorders (ADHD). Data were entered and analyzed using an SPSS program (version 20) where descriptive statistics were calculated, the association between an outcome and some main variables were also calculated, and a p-value of less than 0.05 was considered as significant at a confidence interval of 95%. Results: From the overall 12,032 students, 46.6% were males, and 53.4% were females. The most common health problems reported were tooth decay (62%), low visual acuity (15.3%), overweight (9.7%), and obesity (8.8%). Although almost all students were fully immunized (99.4%), the health status was calculated as less likely lower among males than females (AOR 1.26; 95% CI: 1.17-1.37). Conclusion: The results concluded that dental caries and visual acuity were the highest health problems among students. The widespread prevalence of dental caries indicates the need for more research to appraise the public health implications of this developing problem. Volume 5 | Issue 1 ScholArena | www.scholarena.com ISSN: 2641-8509 J Public Health Dis Prev 2 Volume 5 | Issue 1 ScholArena | www.scholarena.com Introduction Health of school students is essential to all communities. Students are challenged to adopt important health domains required for future. Despite advances in medicine, many diseases affect youths around the globe, some are linked with an unhealthy lifestyle. Several health problems that develop early in a students life can be better prevented and treated if identified earlier, such as vision, dental pain, and mental problems, which considered as health barriers to learning, use their negative effects on the process of development, and attendance of the student. The sedentary lifestyle is constantly increasing leading to further inactivity, obesity and other comorbidities. Globally, the new trend in public health is prevention, rather than treatment, and the best way to accomplish this goal is to train and educate the newer generations to a healthier way of living. Overweight and obesity have been identified in many studies as the underlining cause of many health pathologies during childhood and adulthood. Many programs have been implemented, worldwide, to address the problem and educate the youth. These programs are usually run by governmental agencies and aim to annually monitor specific indices of health of school age children and teens in order to design the best educational interventions for that country. These indices comprise, but are not limited to, weight monitoring, level of activity, dental hygiene, mental health and skeletomuscular problems, depending on the health issues already identified in the country. Saudi Arabia (SA) has one of the highest obesity and overweight prevalence rates among Middle Eastern nations. Tooth decay and vision problems as well are widely common among school students in SA. The preventable nature of these illnesses makes them a prime target for intervention. The collaboration in Saudi Arabia (SA) between the Ministry of Health (MOH) and the Ministry of Education (MOE) is essential in establishing effective school health programs and interventions. For these reasons, the MOH in SA has established the Periodic Examination Program of School Students (PEPSS) designed for constant monitoring and early detection of any abnormal health conditions occurred among SA students.. The present program was just a pilot examination (phase one, 1,413,709 students),conducted in all four school grades in SA. The findings of this study will be provide the basis for the ongoing future school-based health assessment and provide the MOH with a clear vision for any health problem among school children in the country, so any further timely interventions can be implemented. Therefore, the aim of this study was to present the findings of the student-health survey program conducted by the MOH in a cohort of schools in SA. Methodology Study Design and Participants A retrospective secondary data analysis from the Ministry of Health (MOH) was based on the PMEPSS program implemented in 2018, across four school grades namely, 1stprimary, 4th primary, 1st intermediate, and 1st secondary grade of the public schools. Private schools do not report directly to the MOH, thus were not included in this pilot study. There is a total of 30,625 schools in Saudi Arabia, out of which 26,248(86%) are public and 4,377 (14%) are private.
After you've climbed, hiked or biked up the Himalayas, the only remaining way to up the thrill level is to leave the world's highest mountain range behind you altogether. To do that, you'll need a paraglider, and the best place to deploy it is in the Indian state of Himachal Pradesh at the town of Billing — some 7,900 ft. (2,400 m) above sea level. Your destination is the tiny Tibetan settlement of Bir, nearly nine miles (14 km) away. Bir-Billing, as flyers refer to the area, ranks among the world's Top 10 paragliding sites. Between now and early spring, several hundred seasoned flyers will swoop down between the twin towns, drawn by the near perfect conditions. Cross-country flights of up to 120 miles (200 km) are possible, soaring over the vast expanse of the Dhauladhar range, and taking in the stunning countryside of tea plantations, forests and fields. Smoke billows from tin-roofed huts, sheep can be seen grazing and you can make out trekkers trudging like ants up steep ridges. Flyers can soar to an exhilarating — or, if you're a novice, terrifying — 11,500 ft. (3,500 m) while competing with the Himalayan griffon vulture for the right thermal currents. To get to Bir-Billing, head for the hill towns of Palampur or Kangra, then get a cab for the one-hour journey to Bir. You could also make the drive from the popular hill station of Manali, but the journey, at five hours, is far longer. Once in Bir, go to the local tourist office for a flying permit. Get adequate insurance as emergency infrastructure is rudimentary. First-timers are only allowed to go with an experienced paragliding guide. Certified courses and tandem rides are available from Gurpreet Dhindsa and Jyoti Thakur, who run a paragliding school in Bir. Call (91) 9816525205 or (91) 9418112392.
from src.drivers.http.utils import parse_tsv from tests.testcase import BaseTestCase class HttpUtilsTestCase(BaseTestCase): test_values = [b'', b'a\tb\tc'] def test_parse_tsv(self): try: for v in self.test_values: parse_tsv(v) except IndexError: self.fail('"parse_tsv" raised IndexError exception!') except TypeError: self.fail('"parse_tsv" raised TypeError exception!')
THE RELATIONSHIP BETWEEN CALCIFICATION OF HEART VALVES AND AGE Objectives To investigate the relationship between calcification of heart valves and age. Methods 966 patients were divided into 6 groups by age: <50years, 5060years, 6070years, 7080years, 8090years and >90years. All the patients underwent ultrasonic cardiography for assessment of heart valval calcification. The relationship between valval calcification and age was studied by logistic regression analysis. Results 1.The incidence of one valve calcification in six groups was 2.6%, 17.0%, 43.4%, 82.3%, 91.7%, 92.2% respectively, the difference between each group had statistical significance(p<0.001); 2.The incidence of two valves calcification in six groups was 0%, 0%, 1.6%, 7.0%, 18.3%, 31.0% respectively, the difference between each group had statistical significance(p<0.001); 3.Aging (for each additional 10years) predicted valve calcification, HR was 3.663 (95% CI 3.108 to 4.317, p<0.001) by single-factor control and 3.223 (95% CI 2.669 to 3.892, p<0.001) by multiple-factors control. Conclusions The incidence of heart valve calcification increased by aging, people more than 60years old were easier to occur heart valve calcification.
Patrick Dowd, founder and CEO of the Millennial Trains Project, at Union Station in Washington, D.C. on Sept. 9, 2013. (Joshua Yospyn/For The Washington Post) “It’s an outer journey and an inner journey,” says Patrick Dowd, 26. ¶ “Patrick and I connected completely on the power of an abstract idea,” says Sacha Simmons, 26. ¶ “At work I just said, ‘I’m going on a train and I’m going to think about some things,’ ” says Travis Korte, 25. “It kind of takes a paragraph to explain.” ¶ Actually, to explain the Millennial Trains Project it will take several. First, perhaps you’ve noticed that these people are all in their mid-20s. That’s the millennial part; they’re members of a generation often deemed whiny, shiftless and self-obsessed. (“Me me me,” Time taunted them.) ¶ But that is a caricature that doesn’t hold up, at least not in the case of Simmons, Korte and the 22 other millennials who rode with Dowd — the project’s founder and CEO — on a 3,000-mile journey aboard three chartered, mid-century cars, pulled by Amtrak locomotives. That’s the train part. ¶ It was meant to be a rolling business and leadership incubator — and a space for self-discovery. To earn their berths, each of them pitched entrepreneurial and social-improvement projects and raised $5,000 apiece through crowd­sourcing on the Internet. The young travelers, several from Washington, came aboard with innovative ideas about energy, education, data, contraception, food, finance, even happiness — some well-focused, some gauzy. “The new pioneers,” Dowd called those who joined him for a 10-city, 10-day ride that began in San Francisco and ended at Washington’s Union Station in mid-August — the first of three such journeys he has planned. “Three thousand miles to blast a hole in the theory that America is in decline,” goes a video promo for the project. “It’s the ghost of Jack Kerouac staying up all night with the spirit of Steve Jobs.” Minus Jack’s Benzedrine jags and Steve’s LSD excursions, but full of that anything-is-possible sense of moment felt by the Beats, the Hippies, the searchers of any given generation. The rush of simply being young and alive, hopes yet undimmed. The millennials — generally categorized as 18 to 31 in age — certainly need optimism. Their lives have been shaped by terrorist horrors, economic collapse and political stalemate, as Dowd points out. Many are crushed by student-loan debt; many can’t find jobs; many live at home with their parents. If nothing else, Dowd offers his peers an aspirational narrative. “The purpose of these trains is to get America back on track, both literally and figuratively,” he said in one videotaped pitch session, “by reimagining what we can do as a country over the next 10 years.” His manner is earnest and practiced, as you would expect from a former student body leader at Georgetown’s School of Foreign Service. He is also a product of boarding school at Georgetown Prep. His father is in maritime shipping, and his mother is a financial journalist. So, a straight-laced character? Yes and no. After a visit with his family in Boston (by train), Dowd sat down for breakfast at Union Station last week. He explained how this all got started a year and a half ago. He was working as a trainee analyst at JP Morgan in New York, spending 15 hours a day assaying “the equity capital markets for diversified industrials,” he says. It was during the Occupy Wall Street movement. Young people were demonstrating outside his office, many feeling robbed by the Man. And he was the Man! Dowd quit. He was only seven months into the two-year program. He wondered about those young people: Could their dissatisfaction be positively channeled? His mind was tugged back in time, to his travels in India as a Fulbright scholar in 2010-11. “There is no happiness for him who does not travel. . . . The fortune of him who is sitting, sits; it rises when he rises; it sleeps when he sleeps; it moves when he moves. Therefore, wander!” It’s a proverb in the Rigveda, a sacred Indian text, and Dowd, between bites of a bagel, cites it as one of his favorite quotes. Turns out he got the inspiration for his nonprofit project from taking a train journey for aspiring young entrepreneurs in India called Jagriti Yatra. Upward of 20,000 apply for 450 spots on what is billed as a “transformative” journey. Dowd was one of three Westerners on his particular trip. It has a spiritual bent. There’s yoga, singing, dancing. You eat and sleep in very close quarters. Dowd’s third-class berth was a padded plank. Months later, sitting behind his desk at the investment bank examining spreadsheets, he asked himself: Why not a train for millennial entrepreneurs in America? He had no experience running such a project. But innovators, when they blue-sky an idea, don’t dwell on words like “equity” and “business plan,” he says. Instead it’s about “vision and passion” and daring to fail. He needed backers, train cars and passengers. He needed to think creatively, he said, so he wanted to talk to someone with experience in art. (Art = Creativity, in his mind.) This turned out to be Betsy Broun, longtime director of the Smithsonian American Art Museum. He knew her glancingly, he says, but Broun said she was surprised to find him at her office. In any event, she was impressed with his spiel. “I have had a long line of kids show up in my office asking, ‘How can I get a job?’ ” Broun says. “And Patrick comes along with this inspiring idea” to create entrepreneurs and jobs. “He inspired me,” she says. “I thought he was a natural-born leader.” She was happy to provide connections. One of them was the then-director of the U.S. Patent and Trademark Office, which became a supporter of what came to be called the Millennial Trains Project. Dowd enlisted a mix of nonprofit and corporate sponsors, including the Covington & Burling law firm, the Bombardier aircraft company and the Norfolk Southern rail line. He used word of mouth and social media to sell his counter­intuitive idea: A patient, retro mode of travel for an over-caffeinated cohort that dwells in an always-on digital cloud. But invoking rail-splitters from America’s Westward-ho era, as well as early industrial expansion, made sense. It reinforced his “new pioneers” theme and offered an intriguing anachronism: Who travels 3,000 miles by train nowadays? “Train travel is an incomparable way to experience our country,” Dowd said to a small group gathered on a punishingly humid evening last month in Georgetown. He spoke at a salon — yes, they still exist — at the august Evermay estate, owned by the wealthy Japanese scientist-inventors Sachiko Kuno and Ryuji Ueno. Their nonprofit foundation is among the train’s backers. Through a salon series called “Illuminate,” they aim to encourage forward-thinkers and give confidence to budding business leaders such as Dowd. He clearly has pep and moxie: He could have fit into those jittery old newsreels he stitches into his train promos. But Dowd also has New Agey, guru-like traits. Your belief flows from his belief. “Where does faith come from?” he asked his listeners, referencing the faith to pursue an idea. “A lot of good opportunities have already been set into motion. . . . There are things whose time will have come, but in a moment. And you need to sometimes just have faith that what the situation is today is not going be what the situation is tomorrow because the whole mechanics of the universe are just shifting all the time.” Okay, then. Afterward at a coffee-and-cookie reception, Dowd told me, “I think of this project as a campaign that is not trying to elect anyone.” A whistle-stop-style train pulling into Washington with no candidate on board was perfect symbolism, he said. It was impressive at first and then slightly confusing. But I ended the evening thinking: Here is a young man who is Onto Something. He might not save America, but at least he’s trying instead of tweeting drunken #YOLO pictures. The millennial riders didn’t have to rough it. The inaugural train had two 1953 sleepers and a 1948 domed observation car, and excellent onboard chefs who donated their talents, preparing fresh, locavore fare. A typical day included “Idea Mornings” with local entrepreneurs and civic leaders at stops along the way; onboard mentoring with noted professionals; and six hours of free time for participants to spread and sharpen their ideas in meetings with business and community leaders. Travis Korte, who works at a D.C. technology innovation think tank, looked at harnessing the massive data streams that course through modern life. He came away with better ideas for moving from last-generation information technologies to newer ones — such as convincing the IT guy to put data in the cloud instead of “under his desk,” as he put it. Sacha Simmons, a Booz Allen project manager turned fitness evangelist, looked for ways to expand her D.C. exercise business into a global “active and balanced lifestyle brand.” She made connections and picked up techniques in various cities, including Omaha, where she visited a healing arts and meditation center. “I learned there what a sacred space should feel like,” Simmons said. She also shot a workout video on the train. Others pitched plans to improve higher-education access for the disadvantaged and sustain the market for innovative energy sources. Will anything materialize? “I think Patrick and his leadership team will be asked about the point of it all, about whether it did serve a greater purpose,” says passenger Monica Gray, 27, a D.C. video journalist who shot a series about people who serve their communities. You won’t see success data points on spreadsheets, she says, “but I have no doubt that the participants will be able to show tangible takeaways.” Returning to Washington, where he will live, Dowd looked tapped out but glowing: 18 months of hustling had paid off; he knew for certain he could replicate the project. The next millennial train is planned for March, departing from Los Angeles and ending in Miami. Then there’s another scheduled for August, from Portland, Ore., to New York City. Over breakfast, Dowd mentioned that I could find another favorite quote of his just outside the station, chiseled on its magnificent main facade. It was put there with other epigrams 100 years ago when the station symbolized the glory days of rail travel. “He that would bring home the wealth of the Indies must carry the wealth of the Indies with him,” it goes. “So it is in traveling. A man must carry knowledge with him if he would bring home knowledge.” The quote has that stentorian tone that makes you think you might be stupid if you don’t get it. The point is taken: Travel isn’t just about going somewhere. It’s as much about imparting wisdom as it is bringing it back. (I think.) After the third train journey, Dowd has no plan, he says, except this, suitably vague: “What I want to be doing for the rest of my life is taking ideas from the periphery and bringing them to the center.” He went to India, he says, having no clue that he would discover the inspiration for the train. He intends to visit other countries, in search of another idea. “I know it will be there,” he says.
Huawei has partnered with Corning to demonstrate a 3,000 km Ultra Long-Haul (ULH) transmission of 100G coherent Wavelength Division Multiplexing (WDM) technology. The demonstration took place at the Society of Cable and Telecommunications Engineers (SCTE) Cable-Tec Expo in Atlanta, Georgia. The Chinese telecom equipment maker demonstrated 100 Gbps single wavelength coherent technology based on the Corning SMF-28 ULL optical fibre. Corning makes fibre optics and glass for TVs and tablet devices. The company said that the 100 Gbps technology, which is compliant with the Optical Interoperability Forum, comes with Digital Signal Processing (DSP) algorithms and next generation Forward Error Correction (FEC). The technology will allow service providers to maintain the rising demand for bandwidth and extend the reach of their network by 35-40 percent, Huawei said. "As video content and business services drive bandwidth requirements for cable operators, Huawei has developed industry leading 100 Gbps technology to minimizing their total cost of ownership, energy consumption, and telecommunications footprint," said Reg Wilcox, Vice President of Network Marketing for Huawei Technologies USA. "The ultra low-loss optical fibres provided by Corning help operators extend the reach of optical networks without compromising the data rate, allowing considerable savings to be made in the provisioning of amplification in the backbone of the network," he added. Huawei also demonstrated 40 Gbps solutions at 50 GHz channel spacing, it was revealed.
DORCHESTER Town's director of football Shaun Brooks has captured the services of ex-Weymouth defender Roy O'Brien. The Irishman was not offered a new contract by the Terras at the end of last season so the Magpies swooped. O'Brien, who is 32, has signed as a player but he will also be heavily involved in the club's coaching set-up. Brooks said: "Roy O'Brien has signed a one-year deal as a player but he will also be involved in the coaching set up as well. I have known him a long time since he was at AFC Bournemouth and he is the perfect person to bring in. "On the playing side he has fantastic experience but as well as that he also has loads of contacts and he knows lots of players in the area. I think he will be invaluable to me." When asked whether there are any other signings in the pipeline, Brooks added: "Things are ongoing and I am now looking forward to starting pre-season training next Thursday. "I have a lot of players coming down but of course all their agents are going to back their own men and that is why I want to see them with my own eyes. We still need another six or seven players."
Platelet reactivity among patients with acute coronary syndromes and multivessel coronary artery disease Patients with multivessel or complex coronary artery disease (CAD) are at increased risk of atherothrombotic events. It has been suggested that these patients may derive an incremental benefit with more intense antiplatelet strategies, according to prior subgroup analyses from randomized clinical trials. However, whether there is any association between the presence and extension of multivessel CAD and platelet aggregability (PA) in patients with acute coronary syndromes (ACS) is unknown. To analyze the independent association between PA and presence of multivessel CAD in patients with ACS. Patients with ACS on dual antiplatelet therapy (aspirin plus clopidogrel) were included in this study. Multivessel CAD was defined as the presence of significant ≥50% stenosis at two or more major epicardic vessels. Platelet aggregability was assessed by VerifyNow P2Y12 assay expressed in P2Y12 Reactivity Units (PRU) on the day of discharge from the coronary care unit. High On-treatment platelet reactivity (HPR) was defined as PRU ≥208. Stepwise linear and logistic regression models were applied to adjust for confounders. Models were adjusted for: age, sex, race, diabetes, hypertension, smoking, dyslipidemia, prior MI, prior PCI, prior CABG, prior HF, prior stroke and ACS phenotype (STEMI vs. Non-ST-segment elevation ACS). A total of 237 patients were included, among whom 143 (60.3%) had multivessel CAD at the coronary angiogram and 175 (73.8%) were submitted to PCI during index hospitalization. Patients with multivessel disease were older (mean age 64.8±12.1 vs. 58.9±11.2 years; p<0.001) and more likely to have a history of diabetes (47.6% vs. 29.8%; p=0.006) and non-ST-segment elevation ACS as the index event (55.2% vs. 28.7%; p<0.001), compared to patients without multivessel CAD. After adjustments, presence of multivessel CAD was associated with higher PA (mean 161.4±74 PRU in patients with versus 140.3±70.9 PRU in patients without multivessel CAD; adjusted mean difference 23.7 PRU; 95% CI 4.8 to 42.5; p=0.014). Additionally, there was an incremental of 12.5 PRU (95% CI 2.8 to 22.3; adj p=0.012) for each diseased vessel and of 4.67 PRU (95% CI 0.11 to 9.22; adj p=0.045) for each diseased coronary segment. Compared to patients with single-vessel disease, patients with three-vessel disease had higher rates of HPR. (Figure). In patients with ACS, the presence and extension of multivessel CAD were associated with higher levels of platelet aggregability and higher rates of high on-treatment platelet reactivity with clopidogrel. This finding may explain the incremental benefit with more intense antiplatelet therapies seen in this particular subgroup in prior clinical trials. Prevalence of HPR and extension of CAD Type of funding source: Foundation. Main funding source(s): Sao Paulo Research Foundation (FAPESP)
We are living in a New Normal world. Populists such as Nigel Farage, Donald Trump, Marine le Pen and Beppe Grillo are gaining support as economic growth slows and social/political unrest becomes common. My presentation at our annual conference last week in Vienna highlighted some of the key issues, as Jessie Waldheim of ICIS news reports. VIENNA (ICIS)–Markets face a period of increased volatility as political and demographic changes result in a paradigm shift from globalisation to sustainability as the driver for chemical markets, the chairman of consultancy International eChem said on Tuesday. In 1987, then US president Ronald Reagan stood in front of the Berlin Wall in Germany and demanded that it be torn down. In 2017, US president-elect Donald Trump is expected to build a wall. In Europe, the Brexit vote for the UK to leave the EU and the upcoming referendum in Italy could cause further turmoil for the EU. These political changes are being driven by demographic changes which are also going to effect petrochemical and other markets. Essentially, as life expectancies have increased and birth rates have lowered, a larger percentage of populations are older. For example, as the second chart shows, the number of US households in the 25-54 age bracket has been steady while the number in the 55-and-up age bracket has risen by nearly 50%. The older households tend to spend less money, having already made most major purchases. This is in contrast to recent decades, when major population growth in the younger age brackets drove global demand. “We don’t have lots of young people, so you don’t need as much stuff,” Hodges said, speaking at the 15th annual World Aromatics & Derivatives Conference in Vienna, Austria. According to figures from the American Chemistry Council, we’re seeing a drop-off in capacity utilisation, which is the “best single predictor we have” of global GDP, Hodges said. With the capacity utilisation numbers in September 2016 nearly as low as in 2009, we’re likely to see a global recession next year, he added. Our economy has not yet adapted to the new demographics. This adaptation will mean uncertainty and political risk. “We’re seeing the rise of protectionism. Sustainability is replacing globalisation,” Hodges said. Trump has said he has plans to declare China a currency manipulator and to withdraw from or renegotiate trade deals. The Brexit vote is part of this same paradigm shift. “We need to be planning for this,” Hodges said. Companies will need to consider how trade flows will change with China no longer the major importer and manufacturing capital of the world. And companies will need to consider inter-polymer competition from lower polypropylene prices. Businesses models will have to change and restructuring will be inevitable. Key chemical hubs will have to be made more robust, and being near customers may become more important, Hodges said. With the change comes opportunities. For instance, businesses could focus on designing solutions with new materials or by repurposing materials already in the market. “Aging populations are an opportunity. Why are we not developing new services and products for them?” Hodges said.
Comparative computational analysis of SARS-CoV-2 nucleocapsid protein epitopes in taxonomically related coronaviruses Several research lines are currently ongoing to address the multitude of facets of the pandemic COVID-19. In line with the One-Health concept, extending the target of the studies to the animals which humans are continuously interacting with may favor a better understanding of the SARS-CoV-2 biology and pathogenetic mechanisms; thus, helping to adopt the most suitable containment measures. The last two decades have already faced severe manifestations of the coronavirus infection in both humans and animals, thus, circulating epitopes from previous outbreaks might confer partial protection from SARS-CoV-2 infections. In the present study, we provide an in-silico survey of the major nucleocapsid protein epitopes and compare them with the homologues of taxonomically-related coronaviruses with tropism for animal species that are closely inter-related with the human beings population all over the world. Protein sequence alignment provides evidence of high sequence homology for some of the investigated proteins. Moreover, structural epitope mapping by homology modelling revealed a potential immunogenic value also for specific sequences scoring a lower identity with SARS-CoV-2 nucleocapsid proteins. These evidence provide a molecular structural rationale for a potential role in conferring protection from SARS-CoV-2 infection and identifying potential candidates for the development of diagnostic tools and prophylactic-oriented strategies. a b s t r a c t Several research lines are currently ongoing to address the multitude of facets of the pandemic COVID- 19. In line with the One-Health concept, extending the target of the studies to the animals which humans are continuously interacting with may favor a better understanding of the SARS-CoV-2 biology and pathogenetic mechanisms; thus, helping to adopt the most suitable containment measures. The last two decades have already faced severe manifestations of the coronavirus infection in both humans and animals, thus, circulating epitopes from previous outbreaks might confer partial protection from SARS-CoV-2 infections. In the present study, we provide an in-silico survey of the major nucleocapsid protein epitopes and compare them with the homologues of taxonomically-related coronaviruses with tropism for animal species that are closely inter-related with the human beings population all over the world. Protein sequence alignment provides evidence of high sequence homology for some of the investigated proteins. Moreover, structural epitope mapping by homology modelling revealed a potential immunogenic value also for specific sequences scoring a lower identity with SARS-CoV-2 nucleocapsid proteins. These evidence provide a molecular structural rationale for a potential role in conferring protection from SARS-CoV-2 infection and identifying potential candidates for the development of diagnostic tools and prophylactic-oriented strategies. © 2020 Institut Pasteur. Published by Elsevier Masson SAS. All rights reserved. As of 30 March 2020, SARS-CoV-2 diffusion becomes a worldwide issue with nearly all countries of the globe being interested in a steadily growing number of infected subjects and the tendentially increasing mortality rate, by means of the COVID-19, in the newly involved countries. On the other hand, the SARS-CoV-2 diffusion seems to be approaching an end in Wuhan, China, its original epicentre. Here, the registration of new COVID-19 cases is currently near zero, enabling the development of fair and unbiased statistics on the COVID-19 data in the Hubei region. The thorough review of the patient cases describes, besides the common pulmonary issues, a wide variety of sequelae reported by diverse patients from diverse hospitals following the viral infection. These range from hearth injury until hepatic and kidney failure, hindering a clear depiction of the pathogenetic mechanisms of the novel virus and the definition of informative clinical signs pathognomonic of SARS-CoV-2 infection. Although the appropriate consideration of the patient's health status is of crucial importance while assessing COVID-19 impact, it is believed that the severity of COVID-19 depends on a plurality of factors that include, among others, the load of viral particles transmitted between individuals, the transmission route and the individual immune system efficiency. The causal agent of the current pandemic has been timely classified as Severe Acute Respiratory Syndrome Coronavirus 2 (SARS-CoV-2). In humans, coronavirus infections are commonly manifested through weak clinical signs attributable to the seasonal flu-like symptoms. Nevertheless, the last two decades have already seen a couple of severe manifestations of the coronavirus infection. The first outbreak was described as the SARS epidemy registered in 2003 in China ; whereas a second coronavirus outbreak, known as Middle East Respiratory Syndrome (MERS), dates back to 2012 in Saudi Arabia. Besides humans, SARS viruses are able to infecting a wide plethora of animals such as birds and mammals, including synanthropic birds, dogs, camels, dromedaries, and pangolins. SARS-CoV-2 is a member of the genus Betacoronavirus, featured by a positive-sense, single-stranded RNA genome of approximately 30 Kbs. The viral genome encodes for a relatively low number of proteins classified as either structural or nonstructural ones. Among structural proteins, the spike glycoprotein (S), envelope protein (E), membrane protein (M) and the nucleocapsid protein (NC) are the major ones. Nucleocapsid protein is a 50 KDa protein commonly involved in the replication, transcription and packaging of the viral genome, other than hindering the reproductive cycle of the host cell. Also, NC is the most abundant protein in coronaviruses, is highly immunogenic and its amino acid sequence is normally conserved, making of this protein a suitable candidate target for both vaccine formulations and diagnostic assays. Previous studies on SARS-CoV reported NC protein epitopes as capable of eliciting a massive production of antibodies in infected subjects while its prevalence was significantly reduced in convalescent patients, suggesting such epitopes as candidates for the design of diagnostic tools. Contrarywise, epitopes triggering T-cell response might confer prolonged protection, in some cases estimated up to 11 years; thus, representing a valid alternative for the design of prophylactic measures. Acknowledged the recent identification of SARS-CoV-2, several research lines are currently ongoing to address the multitude of facets of this pandemic issue. Among these, defining the immunological features of the SARS-CoV-2 might provide crucial knowledge for the design of efficient diagnostic tools and/or vaccine strategy. In addition, comparing epitopes of taxonomically related viruses can help to track an eventual cross-protection occurring between humans and the domestic animals, meant as the consequence of the continuous interrelation that, for various reasons, occur among the diverse animal species. In the present study, we provide an in-silico survey of the major NC epitopes and compare them with the NC immunological domains of taxonomically related coronaviruses with tropism for synanthropic animal species that are closely inter-related with the human beings population all over the world. Given the ongoing status of the pandemic, both epitopes eliciting antibodies production and T-cell responses will be taken into account, as even the short-term antibody production can be protective for both human and animals; thus, help to weaken the clinical manifestation of the SARS-CoV-2 infection. Data collection The virus species and accession number of the proteins employed in this survey are provided in Table 1. Nucleocapsid protein sequences were downloaded from the NCBI Protein repository (https://www.ncbi.nlm.nih.gov/protein/) except for the Pangolin nucleocapsid protein. The latter was obtained from the recent publication of Zhang et al. (supplementary material:, https://doi.org/10.1016/j.cub.2020.03.022) as no protein sequence for the pangolin coronavirus was available at the time of the study. Computational processing of the protein sequences The selected protein sequences were analyzed by using the Basic Local Alignment Search Tool for protein sequences (pBLAST). This tool implements the BLOSUM62 algorithm to compare protein sequences and calculates the statistical significance of matches as means of e-values. Multiple sequence alignment was performed by keeping default settings. Only the best hit for each coronavirus was considered and hits with alignment length less than or equal to 4 amino acids were manually removed. Statistically significant matches were employed for calculating the similarity tree of the taxonomically-related coronaviruses on the basis of their relative NC protein sequences. Fast minimum evolution algorithm was employed to produce a tree from given distances between sequences by setting a maximum fraction of mismatch between pairs of sequences of 0.85. Structural mapping of epitopes to PDB structures The mapped protein epitopes to SARS-CoV-2 NC protein (YP_009724397.2 |P0DTC9) were also mapped on two available PDB structures using the PyMOL Molecular Graphics System, Version 2.3.4 (Schr€ odinger, LLC.). Briefly, two NC 3D structure available in the RCSB PDB database (6M3M and 2JW8, https://www.rcsb.org/) covering respectively residues number 47e173 and 247e364 were downloaded and mapping epitopes were visualized through PyMOL. Distances between residues representing different sequences located on the surface of the 3D model were measured using the wizard measurement to identify possible areas of crossreactivity and antigen-binding. Results The whole aminoacidic sequences of the nucleocapsid protein from the selected coronavirus representatives were compared to assess the similarity level existing between the conserved protein sequences of the taxonomically related viruses. Fig. 1 depicts the phylogenetic classification of the coronaviruses on the basis of their NC protein. In this view, bat coronavirus RaTG13 is classified as the most similar to the circulating SARS-CoV-2, followed by SARS-CoV and the pangolin NC protein sequence. A separate clade is reserved to MERS-CoV and the NC protein sequences of the coronaviruses with tropism for camels (Camelus bactrianus) and dromedaries (Camelus dromedarius). Nucleocapsid proteins of bovine, canine and human enteric coronaviruses are depicted as sister groups of a third clade with lower similarity in relation to SARS-CoV-2; whereas, the avian coronavirus cluster apart since featured by the lowest similarity with the circulating SARS-CoV-2. Phylogenetic classification Table 2. Nucleocapsid protein sequences were further investigated for the presence of major immunogenic sequences capable of eliciting either antibodies production or eliciting T-cell response (Table 3) according to the evidence reported in Ref.. Epitopes falling within protein sequence domains for which homology modelling based on the experimental crystallographic structure is available are mapped and provided in Fig. 2 and Fig. 3; whereas, the full list of the tested epitopes against the selected viral nucleocapsid protein sequences is provided as Supplementary material (S1). Some of the mapped epitopes are "conserved" between the circulating SARS-CoV-2, the SARS-CoV, bat RaTG13 CoV and the pangolin CoV NC protein, i.e. the clade including the most similar specimens; whereas, other epitopes are "shared" with a multitude of coronavirus, including those from other animals that clustered as dissimilar from the circulating SARS-CoV-2 ( Fig. 1, Table 3 and Table S1). With regard to interspecies distribution, all epitopes are identified in the bat RaTG13 CoV and SARS-CoV, whilst the pangolin NC sequence fail to significatively align two of the epitope sequences classified as B-cells activating. In addition, epitopes sequence comparison highlights that both bat RaTG13 coronavirus and SARS-CoV scored 100% sequence identity with SARS-CoV-2 epitopes, whereas NC protein from pangolin results in a handful of epitopes sharing a lower percentage of identity with the novel 2019 virus (Table 3 and Table S1). Besides the most similar virus specimens, some epitope sequences are also identified in the viruses responsible for previous coronavirus outbreaks and coronaviruses with tropism for synanthropic and domestic animals. Although identity percentage with SARS-CoV-2 is below 100%, high homology levels have been scored for MERS-CoV, camel-CoV, dromedary-CoV. Interestingly, bovine CoV, canine CoV, human enteric CoV and avian-CoV have also shared epitope sequences, despite the dissimilarity highlighted on the basis of the whole NC sequence (Fig. 1, Table 3). Structural mapping of the epitopes listed in Table 3 into two high-fidelity 3D models of the NC protein domains (6M3M and 2JW8 entries of PDB database) shows that a plurality of epitopes is mapped adjacent each other in a well define structural domain which is defined by a radius of approximately 15 (Figs. 2 and 3). Interestingly, these epitopes are coded in distal primary sequence region of the NC protein which forms a conformational immunogenic domain (Figs. 2 and 3). Unfortunately, not all the investigated epitopes can be mapped in the tridimensional model of the NC protein due to the lack of confident model structure for the whole protein length. Discussion The current health emergency raised by the COVID-19 aroused the interest of the world-wide scientific community that actively operates under diverse research lines on the attempt to address the multiple facets of this pandemic issue, including the elucidation of the immunological peculiarities of the novel virus. The present study provides an in-silico survey of the major epitope sequences of the nucleocapsid protein from taxonomically related coronaviruses. Coronavirus infections and outbreaks were already registered in the past decades in both humans and animals. Thus, investigating whether immunological features of taxonomically related viruses are shared with the SARS-CoV-2 might be helpful for planning innovative diagnostic and prophylactic interventions. According to the One-Health approach, defining the distribution of epitopes among viruses capable of infecting synanthropic and/or domestic animals might represent a key strategy for assessing the plausible occurrence of crossprotection elicited by the continuous inter-relation existing between human and animal population. In this view, exposure to epitopes from synanthropic animals might confer partial protection from SARS-CoV-2 infection. This would explain, at least in part, the early detection of class G immunoglobulins in newly infected subjects and the big divergence occurring in the clinical manifestation of the SARS-CoV-2 infections, other than preventing epitopes-exposed subjects from the severe form of COVID-19. Nucleocapsid protein is a highly conserved protein involved in the active phase of the viral infection. Being highly immunogenic is commonly targeted in studies aimed at developing alternative diagnostic tools and prophylactic strategies . Multiple alignments of the whole protein sequences highlight a very high homology between the NC sequence of SARS-CoV-2 and bat RaTG13 CoV. This evidence does not reflect the overall genome alignments recently published where the draft whole-genome sequence of the pangolin coronavirus is clustered as the closest relative to SARS-CoV-2. Our outcomes, instead, highlight a closer functional relationship between the bat RaTG13 and SARS-CoV-2 than the pair pangolin CoV and SARS-CoV-2 when restricting the investigation to a key structural protein. Also, NC protein of pangolin CoV fails to align two epitope sequences, suggesting a separation between the functional adaptation and molecular evolution. Moreover, acknowledged the overall co-share of epitope sequences, the lack of epitope alignments might be of importance for an accurate With regard to epitopes distribution across viruses with tropism for synanthropic and/or domestic animals, the survey highlights that some epitope sequences are more "conserved" among the most related specimens, while other epitopes are shared among a wider ensemble of coronaviruses. Similar outcomes were also described for the spike proteins epitopes. In this view, a detailed description of the epitopes distribution over the viral population might provide valuable information driving future researches aimed at setting efficient prophylactic strategies and/or the design of tool capable of differential diagnosis on the basis of serological tests. The adjacent mapping of the tested epitopes in the tridimensional models of the NC protein domains suggest the mapped area as being highly immunogenic, exposed to the solvent and, consequently, to molecular immune system effectors. Furthermore, this supports the immunogenicity of the selected epitope sequences which is of particular interest for that sequences scoring a lower level of identity in relation to SARS-CoV-2 such as the canine CoV, bovine CoV and the human enteric CoV. Although featured by a lower level of homology with SARS-CoV-2 NC protein and the presence of some mismatches in the epitope sequence, these sequences are mapping in the same structural domains as SARS-CoV-2 epitopes and are likely to be recognized by the host immune system; thus, potentially involved in conferring partial protection against SARS-CoV-2 infection other being considered good candidates for the development of diagnostic tools and prophylacticoriented strategies. To conclude, COVID-19 pandemic is a global issue that stimulates the synergistic cooperation between research groups all over the world. At the same manner, planning studies that seek to address multiple aspects of COVID-19 enable a fast and effective control of the SARS-CoV-2 infections. In line with the One-Health concept, extending the target of the studies to the environment and the animals which humans are continuously interacting with favor a better understanding of this complex phenomenon and help to adopt the most suitable containment measures. Continuing mapping the major epitopes known for the viral proteins is, in our view, a promising strategy. In this light, defining the map of the circulating epitopes among diverse geographical areas and considering the diverse people habits and animal population they are interacting with might also provide unevaluable information for the design of personalized prophylactic and diagnostic strategies, shaped in dependence of the geographical context and the subject's habits. Thus, an incisive focus on these aspects can contribute to a relatively fast control of this pandemic issue.
// Copyright 2020 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/safe_browsing/android/password_reuse_controller_android.h" #include "base/callback.h" #include "chrome/browser/ui/android/safe_browsing/password_reuse_dialog_view_android.h" #include "components/safe_browsing/core/password_protection/metrics_util.h" #include "components/strings/grit/components_strings.h" #include "ui/base/l10n/l10n_util.h" namespace safe_browsing { PasswordReuseControllerAndroid::PasswordReuseControllerAndroid( content::WebContents* web_contents, ChromePasswordProtectionService* service, ReusedPasswordAccountType password_type, OnWarningDone done_callback) : service_(service), url_(web_contents->GetLastCommittedURL()), password_type_(password_type), window_android_(web_contents->GetTopLevelNativeWindow()), done_callback_(std::move(done_callback)) { modal_construction_start_time_ = base::TimeTicks::Now(); service_->AddObserver(this); } PasswordReuseControllerAndroid::~PasswordReuseControllerAndroid() { service_->RemoveObserver(this); dialog_view_.reset(); LogModalWarningDialogLifetime(modal_construction_start_time_); } void PasswordReuseControllerAndroid::ShowDialog() { dialog_view_.reset(new PasswordReuseDialogViewAndroid(this)); DCHECK(window_android_); dialog_view_->Show(window_android_); } void PasswordReuseControllerAndroid::CloseDialog() { if (done_callback_) std::move(done_callback_).Run(WarningAction::CLOSE); delete this; } std::u16string PasswordReuseControllerAndroid::GetButtonText() const { return l10n_util::GetStringUTF16(IDS_CLOSE); } std::u16string PasswordReuseControllerAndroid::GetWarningDetailText( std::vector<size_t>* placeholder_offsets) const { return service_->GetWarningDetailText(password_type_, placeholder_offsets); } std::u16string PasswordReuseControllerAndroid::GetTitle() const { return l10n_util::GetStringUTF16(IDS_PAGE_INFO_CHANGE_PASSWORD_SUMMARY); } const std::vector<std::u16string> PasswordReuseControllerAndroid::GetPlaceholdersForSavedPasswordWarningText() const { return service_->GetPlaceholdersForSavedPasswordWarningText(); } void PasswordReuseControllerAndroid::OnGaiaPasswordChanged() { delete this; // Chrome on Android should not be able to capture Gaia password change // events. NOTREACHED(); } void PasswordReuseControllerAndroid::OnMarkingSiteAsLegitimate( const GURL& url) { if (url_.GetWithEmptyPath() == url.GetWithEmptyPath()) delete this; // Modal dialog on Android is above the screen, this function can't be called. NOTREACHED(); } void PasswordReuseControllerAndroid::InvokeActionForTesting( WarningAction action) { CloseDialog(); } WarningUIType PasswordReuseControllerAndroid::GetObserverType() { return WarningUIType::MODAL_DIALOG; } void PasswordReuseControllerAndroid::WebContentsDestroyed() { delete this; } } // namespace safe_browsing
import numpy as np import scipy as sp from functools import partial #import jax functions #from jax.config import config; config.update("jax_enable_x64", True) import jax.numpy as jnp from jax import grad,value_and_grad, jit, vmap,jacfwd,jacrev,random from jax.scipy.stats import norm from jax.lax import fori_loop from jax.ops import index_update #import package functions from . import mv_copula_density_t as mvcd from .utils.BFGS import minimize_BFGS from .utils.bivariate_copula import ndtri_ ### PREDICTIVE RESAMPLING ### @partial(jit,static_argnums = (4,5)) def predictive_resample_single_loop(key,logcdf_conditionals,logpdf_joints,rho,n,T): #d = jnp.shape(logcdf_conditionals)[1] d = jnp.shape(logcdf_conditionals)[0] #generate uniform random numbers key, subkey = random.split(key) #split key a_rand = random.uniform(subkey,shape = (T,d)) #Append a_rand to empty vn (for correct array size) vT = jnp.concatenate((jnp.zeros((n,d)),a_rand),axis = 0) #run forward loop inputs = vT,logcdf_conditionals,logpdf_joints,rho rng = jnp.arange(n,n+T) outputs,rng = mvcd.update_ptest_single_scan(inputs,rng) vT,logcdf_conditionals,logpdf_joints,rho = outputs return logcdf_conditionals,logpdf_joints ##Multiple samples predictive_resample_loop = jit(vmap(predictive_resample_single_loop,(None,0,0,None,None,None)),static_argnums = (4,5)) #vmap across y_test predictive_resample_loop_B =jit(vmap(predictive_resample_loop,(0,None,None,None,None,None)),static_argnums = (4,5)) #vmap across B posterior samples #### CONVERGENCE CHECKS FOR PR #### def pr_1step_conv(i,inputs): #t = n+i logcdf_conditionals,logpdf_joints,logcdf_conditionals_init,logpdf_joints_init,pdiff,cdiff,rho,n,a_rand = inputs #a is d-dimensional uniform rv n_test = jnp.shape(logcdf_conditionals)[0] d = jnp.shape(logcdf_conditionals)[1] #update pdf/cdf alpha = (2- (1/(n+i+1)))*(1/(n+i+2)) u = jnp.exp(logcdf_conditionals) v = a_rand[i] #cdf of rv is uniformly distributed logcdf_conditionals_new,logpdf_joints_new= mvcd.update_copula(logcdf_conditionals,logpdf_joints,u,v,alpha,rho) #joint density pdiff = index_update(pdiff,i,jnp.mean(jnp.abs(jnp.exp(logpdf_joints_new[:,-1])- jnp.exp(logpdf_joints_init[:,-1])))) #mean density diff from initial cdiff = index_update(cdiff,i,jnp.mean(jnp.abs(jnp.exp(logcdf_conditionals_new[:,0])- jnp.exp(logcdf_conditionals_init[:,0])))) #mean cdf diff from initial (only univariate) outputs = logcdf_conditionals_new,logpdf_joints_new,logcdf_conditionals_init,logpdf_joints_init,pdiff,cdiff,rho,n,a_rand return outputs #loop update for pdf/cdf for xn, starting with average p_n @partial(jit,static_argnums = (4,5)) def pr_loop_conv(key,logcdf_conditionals,logpdf_joints,rho,n,T): d = jnp.shape(logcdf_conditionals)[1] #generate random numbers key, subkey = random.split(key) #split key a_rand = random.uniform(subkey,shape = (T,d)) #Track difference pdiff = jnp.zeros(T) cdiff = jnp.zeros(T) inputs = logcdf_conditionals,logpdf_joints,logcdf_conditionals,logpdf_joints,pdiff,cdiff,rho,n,a_rand #run loop outputs = fori_loop(0,T,pr_1step_conv,inputs) logcdf_conditionals,logpdf_joints,logcdf_conditionals_init,logpdf_joints_init,pdiff,cdiff,rho,n,a_rand = outputs return logcdf_conditionals,logpdf_joints,pdiff,cdiff ##Multiple samples for convergence checks pr_loop_conv_B =jit(vmap(pr_loop_conv,(0,None,None,None,None,None)),static_argnums=(4,5)) #SAMPLING FROM PN #computes error from cdf of a random P_N (through predictive resampling, determined by key) to un, which is a quantile or random sample) @partial(jit,static_argnums = (5)) def calc_pN_av_err2(y0,vn_perm,rho,quantile,key,T): n = jnp.shape(vn_perm)[1] d = jnp.shape(vn_perm)[2] #compute initial p_n(y0) through perm avg quantile = quantile.reshape(1,d) y_test = y0.reshape(1,d) logcdf_conditionals_ytest,logpdf_joints_ytest = mvcd.update_ptest_loop_perm_av(vn_perm,rho,y_test) #compute p_T(y0) # vn = jnp.append(jnp.zeros(n),vT) #ignore first n vn values by setting rng appropriately # carry = vn,logcdf_conditionals_ytest,logpdf_joints_ytest,rho # rng = jnp.arange(n,n+T) # carry,rng = mvcd.update_ptest_scan(carry,rng) # vn,logcdf_conditionals_ytest,logpdf_joints_ytest,rho = carry #compute random p_T(y0) depending on key logcdf_conditionals_ytest,logpdf_joints_ytest = predictive_resample_loop(key,logcdf_conditionals_ytest,logpdf_joints_ytest,rho,n,T) err2 = jnp.sum((jnp.exp(logcdf_conditionals_ytest)- quantile)**2) return err2 grad_pN_av_err2 = jit(grad(calc_pN_av_err2),static_argnums = (5)) #Fit quantile (for univariate) @partial(jit,static_argnums = (4)) def sample_quantile_pN_av(vn_perm,rho,quantile,key,T): #delta = 0.5 works well! d = jnp.shape(vn_perm)[2] #unif rv y0_init = ndtri_(quantile) #function wrappers for BFGS @jit def fun(y0): #wrapper around function evaluation and grad return(calc_pN_av_err2(y0,vn_perm,rho,quantile,key,T)) #fit BFGS y_samp,err2,n_iter,_ = minimize_BFGS(fun,y0_init,delta_B_init = 0.5) # from jax.scipy.optimize import minimize <- slow and crashes # opt = minimize(fun,y0_init, method = "BFGS") # y_samp = opt.x # err2 = opt.fun # n_iter = opt.nit return y_samp,err2,n_iter #OPTIONAL VMAP sample_quantile_pN_av_B = jit(vmap(sample_quantile_pN_av,(None,None,None,0,None)),static_argnums = (4)) #SAMPLING FROM pn @jit def calc_pn_av_err2(y0,vn_perm,rho,quantile): n = jnp.shape(vn_perm)[1] d = jnp.shape(vn_perm)[2] quantile = quantile.reshape(1,d) #compute p_n(y0) through perm avg y_test = y0.reshape(1,d) logcdf_conditionals_ytest,logpdf_joints_ytest = mvcd.update_ptest_loop_perm_av(vn_perm,rho,y_test) #can sample from each permutation independently err2 = jnp.sum((jnp.exp(logcdf_conditionals_ytest)- quantile)**2) return err2 grad_pn_av_err2 = jit(grad(calc_pn_av_err2)) #Find quantile @jit def compute_quantile_pn_av(vn_perm,rho,quantile): #delta = 0.5 works well! d = jnp.shape(vn_perm)[2] #unif rv y0_init = ndtri_(quantile) #function wrappers for BFGS @jit def fun(y0): #wrapper around function evaluation and grad return(calc_pn_av_err2(y0,vn_perm,rho,quantile)) y_samp,err2,n_iter,_ = minimize_BFGS(fun,y0_init,delta_B_init = 0.5) return y_samp,err2,n_iter ### SCIPY IMPLEMENTATIONS from scipy.optimize import minimize as sp_minimize #scipy implementation of quantile for slower run, faster compile but more inaccurate (due to L-BFGS-B) def sp_sample_quantile_pN_av(vn_perm,rho,quantile,key,T): d = jnp.shape(vn_perm)[2] #unif rv y0_init = ndtri_(quantile) ##for scipy optimize def fun_sp(y0): return np.array(calc_pN_av_err2(y0,vn_perm,rho,quantile,key,T),dtype = 'float64') def grad_sp(y0): return np.array(grad_pN_av_err2(y0,vn_perm,rho,quantile,key,T),dtype = 'float64') opt = sp_minimize(fun_sp,y0_init, method = "SLSQP", jac = grad_sp) y_samp = opt.x err2 = opt.fun n_iter = opt.nit return y_samp,err2,n_iter #Find quantile def sp_compute_quantile_pn_av(vn_perm,rho,quantile): #delta = 0.5 works well! d = jnp.shape(vn_perm)[2] #unif rv y0_init = ndtri_(quantile) #for scipy optimize def fun_sp(y0): return np.array(calc_pn_av_err2(y0,vn_perm,rho,quantile),dtype = 'float64') def grad_sp(y0): return np.array(grad_pn_av_err2(y0,vn_perm,rho,quantile),dtype = 'float64') opt = sp_minimize(fun_sp,y0_init, method = "SLSQP", jac = grad_sp) y_samp = opt.x err2 = opt.fun n_iter = opt.nit return y_samp,err2,n_iter
/* * Copyright 2018 InfAI (CC SES) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package lib import ( "log" "net/http" "github.com/SmartEnergyPlatform/util/http/cors" "github.com/SmartEnergyPlatform/util/http/logger" "github.com/SmartEnergyPlatform/util/http/response" "encoding/json" "github.com/SmartEnergyPlatform/jwt-http-router" ) func StartApi() { log.Println("start server on port: ", Config.ServerPort) httpHandler := getRoutes() corseHandler := cors.New(httpHandler) logger := logger.New(corseHandler, Config.LogLevel) log.Println(http.ListenAndServe(":"+Config.ServerPort, logger)) } func getRoutes() (router *jwt_http_router.Router) { router = jwt_http_router.New(jwt_http_router.JwtConfig{ ForceUser: Config.ForceUser == "true", ForceAuth: Config.ForceAuth == "true", PubRsa: Config.JwtPubRsa, }) router.GET("/search/:target/:searchtext/:endpoint", func(res http.ResponseWriter, r *http.Request, ps jwt_http_router.Params, jwt jwt_http_router.Jwt) { target := ps.ByName("target") searchtext := ps.ByName("searchtext") endpoint := ps.ByName("endpoint") result, err := Search(target, searchtext, endpoint, r.URL.Query(), jwt) if err != nil { log.Println("ERROR: ", err) http.Error(res, err.Error(), http.StatusInternalServerError) return } response.To(res).Json(result) }) router.GET("/search/:target/:searchtext/:endpoint/:limit/:offset", func(res http.ResponseWriter, r *http.Request, ps jwt_http_router.Params, jwt jwt_http_router.Jwt) { target := ps.ByName("target") searchtext := ps.ByName("searchtext") endpoint := ps.ByName("endpoint") limit := ps.ByName("limit") offset := ps.ByName("offset") result, err := SearchLimit(target, searchtext, endpoint, r.URL.Query(), jwt, limit, offset) if err != nil { log.Println("ERROR: ", err) http.Error(res, err.Error(), http.StatusInternalServerError) return } response.To(res).Json(result) }) router.GET("/search/:target/:searchtext/:endpoint/:limit/:offset/:order_by/asc", func(res http.ResponseWriter, r *http.Request, ps jwt_http_router.Params, jwt jwt_http_router.Jwt) { target := ps.ByName("target") searchtext := ps.ByName("searchtext") endpoint := ps.ByName("endpoint") limit := ps.ByName("limit") offset := ps.ByName("offset") orderBy := ps.ByName("order_by") result, _, err := SearchSorted(target, searchtext, endpoint, r.URL.Query(), jwt, limit, offset, orderBy, true) if err != nil { log.Println("ERROR: ", err) http.Error(res, err.Error(), http.StatusInternalServerError) return } response.To(res).Json(result) }) router.GET("/search/:target/:searchtext/:endpoint/:limit/:offset/:order_by/desc", func(res http.ResponseWriter, r *http.Request, ps jwt_http_router.Params, jwt jwt_http_router.Jwt) { target := ps.ByName("target") searchtext := ps.ByName("searchtext") endpoint := ps.ByName("endpoint") limit := ps.ByName("limit") offset := ps.ByName("offset") orderBy := ps.ByName("order_by") result, _, err := SearchSorted(target, searchtext, endpoint, r.URL.Query(), jwt, limit, offset, orderBy, false) if err != nil { log.Println("ERROR: ", err) http.Error(res, err.Error(), http.StatusInternalServerError) return } response.To(res).Json(result) }) router.GET("/search/:target/:searchtext/:endpoint/:limit/:offset/:order_by/asc/withtotal", func(res http.ResponseWriter, r *http.Request, ps jwt_http_router.Params, jwt jwt_http_router.Jwt) { target := ps.ByName("target") searchtext := ps.ByName("searchtext") endpoint := ps.ByName("endpoint") limit := ps.ByName("limit") offset := ps.ByName("offset") orderBy := ps.ByName("order_by") result, total, err := SearchSorted(target, searchtext, endpoint, r.URL.Query(), jwt, limit, offset, orderBy, true) if err != nil { log.Println("ERROR: ", err) http.Error(res, err.Error(), http.StatusInternalServerError) return } response.To(res).Json(map[string]interface{}{"total": total, "result": result}) }) router.GET("/search/:target/:searchtext/:endpoint/:limit/:offset/:order_by/desc/withtotal", func(res http.ResponseWriter, r *http.Request, ps jwt_http_router.Params, jwt jwt_http_router.Jwt) { target := ps.ByName("target") searchtext := ps.ByName("searchtext") endpoint := ps.ByName("endpoint") limit := ps.ByName("limit") offset := ps.ByName("offset") orderBy := ps.ByName("order_by") result, total, err := SearchSorted(target, searchtext, endpoint, r.URL.Query(), jwt, limit, offset, orderBy, false) if err != nil { log.Println("ERROR: ", err) http.Error(res, err.Error(), http.StatusInternalServerError) return } response.To(res).Json(map[string]interface{}{"total": total, "result": result}) }) router.GET("/get/:target/:endpoint", func(res http.ResponseWriter, r *http.Request, ps jwt_http_router.Params, jwt jwt_http_router.Jwt) { target := ps.ByName("target") endpoint := ps.ByName("endpoint") result, err := Get(target, endpoint, r.URL.Query(), jwt) if err != nil { log.Println("ERROR: ", err) http.Error(res, err.Error(), http.StatusInternalServerError) return } response.To(res).Json(result) }) router.GET("/get/:target/:endpoint/:limit/:offset", func(res http.ResponseWriter, r *http.Request, ps jwt_http_router.Params, jwt jwt_http_router.Jwt) { target := ps.ByName("target") endpoint := ps.ByName("endpoint") limit := ps.ByName("limit") offset := ps.ByName("offset") result, err := GetLimit(target, endpoint, r.URL.Query(), jwt, limit, offset) if err != nil { log.Println("ERROR: ", err) http.Error(res, err.Error(), http.StatusInternalServerError) return } response.To(res).Json(result) }) router.GET("/get/:target/:endpoint/:limit/:offset/:order_by/asc", func(res http.ResponseWriter, r *http.Request, ps jwt_http_router.Params, jwt jwt_http_router.Jwt) { target := ps.ByName("target") endpoint := ps.ByName("endpoint") limit := ps.ByName("limit") offset := ps.ByName("offset") orderBy := ps.ByName("order_by") result, _, err := GetSorted(target, endpoint, r.URL.Query(), jwt, limit, offset, orderBy, true) if err != nil { log.Println("ERROR: ", err) http.Error(res, err.Error(), http.StatusInternalServerError) return } response.To(res).Json(result) }) router.GET("/get/:target/:endpoint/:limit/:offset/:order_by/desc", func(res http.ResponseWriter, r *http.Request, ps jwt_http_router.Params, jwt jwt_http_router.Jwt) { target := ps.ByName("target") endpoint := ps.ByName("endpoint") limit := ps.ByName("limit") offset := ps.ByName("offset") orderBy := ps.ByName("order_by") result, _, err := GetSorted(target, endpoint, r.URL.Query(), jwt, limit, offset, orderBy, false) if err != nil { log.Println("ERROR: ", err) http.Error(res, err.Error(), http.StatusInternalServerError) return } response.To(res).Json(result) }) router.GET("/get/:target/:endpoint/:limit/:offset/:order_by/desc/withtotal", func(res http.ResponseWriter, r *http.Request, ps jwt_http_router.Params, jwt jwt_http_router.Jwt) { target := ps.ByName("target") endpoint := ps.ByName("endpoint") limit := ps.ByName("limit") offset := ps.ByName("offset") orderBy := ps.ByName("order_by") result, total, err := GetSorted(target, endpoint, r.URL.Query(), jwt, limit, offset, orderBy, false) if err != nil { log.Println("ERROR: ", err) http.Error(res, err.Error(), http.StatusInternalServerError) return } response.To(res).Json(map[string]interface{}{"total": total, "result": result}) }) router.GET("/get/:target/:endpoint/:limit/:offset/:order_by/asc/withtotal", func(res http.ResponseWriter, r *http.Request, ps jwt_http_router.Params, jwt jwt_http_router.Jwt) { target := ps.ByName("target") endpoint := ps.ByName("endpoint") limit := ps.ByName("limit") offset := ps.ByName("offset") orderBy := ps.ByName("order_by") result, total, err := GetSorted(target, endpoint, r.URL.Query(), jwt, limit, offset, orderBy, true) if err != nil { log.Println("ERROR: ", err) http.Error(res, err.Error(), http.StatusInternalServerError) return } response.To(res).Json(map[string]interface{}{"total": total, "result": result}) }) router.GET("/select/field/:target/:endpoint/:field/:value", func(res http.ResponseWriter, r *http.Request, ps jwt_http_router.Params, jwt jwt_http_router.Jwt) { target := ps.ByName("target") endpoint := ps.ByName("endpoint") field := ps.ByName("field") value := ps.ByName("value") result, err := SelectField(target, endpoint, r.URL.Query(), jwt, field, value) if err != nil { log.Println("ERROR: ", err) http.Error(res, err.Error(), http.StatusInternalServerError) return } response.To(res).Json(result) }) router.GET("/select/field/:target/:endpoint/:field/:value/:limit/:offset", func(res http.ResponseWriter, r *http.Request, ps jwt_http_router.Params, jwt jwt_http_router.Jwt) { target := ps.ByName("target") endpoint := ps.ByName("endpoint") limit := ps.ByName("limit") offset := ps.ByName("offset") field := ps.ByName("field") value := ps.ByName("value") result, err := SelectFieldLimit(target, endpoint, r.URL.Query(), jwt, field, value, limit, offset) if err != nil { log.Println("ERROR: ", err) http.Error(res, err.Error(), http.StatusInternalServerError) return } response.To(res).Json(result) }) router.GET("/select/field/:target/:endpoint/:field/:value/:limit/:offset/:order_by/asc", func(res http.ResponseWriter, r *http.Request, ps jwt_http_router.Params, jwt jwt_http_router.Jwt) { target := ps.ByName("target") endpoint := ps.ByName("endpoint") limit := ps.ByName("limit") offset := ps.ByName("offset") orderBy := ps.ByName("order_by") field := ps.ByName("field") value := ps.ByName("value") result, err := SelectFieldSorted(target, endpoint, r.URL.Query(), jwt, field, value, limit, offset, orderBy, true) if err != nil { log.Println("ERROR: ", err) http.Error(res, err.Error(), http.StatusInternalServerError) return } response.To(res).Json(result) }) router.GET("/select/field/:target/:endpoint/:field/:value/:limit/:offset/:order_by/desc", func(res http.ResponseWriter, r *http.Request, ps jwt_http_router.Params, jwt jwt_http_router.Jwt) { target := ps.ByName("target") endpoint := ps.ByName("endpoint") limit := ps.ByName("limit") offset := ps.ByName("offset") orderBy := ps.ByName("order_by") field := ps.ByName("field") value := ps.ByName("value") result, err := SelectFieldSorted(target, endpoint, r.URL.Query(), jwt, field, value, limit, offset, orderBy, false) if err != nil { log.Println("ERROR: ", err) http.Error(res, err.Error(), http.StatusInternalServerError) return } response.To(res).Json(result) }) router.POST("/select/field/:target/:endpoint/:field", func(res http.ResponseWriter, r *http.Request, ps jwt_http_router.Params, jwt jwt_http_router.Jwt) { target := ps.ByName("target") endpoint := ps.ByName("endpoint") field := ps.ByName("field") value := []interface{}{} err := json.NewDecoder(r.Body).Decode(&value) if err != nil { log.Println("WARNING: error in user send data", err) http.Error(res, err.Error(), http.StatusBadRequest) return } result, err := SelectFieldValues(target, endpoint, r.URL.Query(), jwt, field, value) if err != nil { log.Println("ERROR: ", err) http.Error(res, err.Error(), http.StatusInternalServerError) return } response.To(res).Json(result) }) router.POST("/select/field/:target/:endpoint/:field/:limit/:offset", func(res http.ResponseWriter, r *http.Request, ps jwt_http_router.Params, jwt jwt_http_router.Jwt) { target := ps.ByName("target") endpoint := ps.ByName("endpoint") limit := ps.ByName("limit") offset := ps.ByName("offset") field := ps.ByName("field") value := []interface{}{} err := json.NewDecoder(r.Body).Decode(&value) result, err := SelectFieldValuesLimit(target, endpoint, r.URL.Query(), jwt, field, value, limit, offset) if err != nil { log.Println("ERROR: ", err) http.Error(res, err.Error(), http.StatusInternalServerError) return } response.To(res).Json(result) }) router.POST("/select/field/:target/:endpoint/:field/:limit/:offset/:order_by/asc", func(res http.ResponseWriter, r *http.Request, ps jwt_http_router.Params, jwt jwt_http_router.Jwt) { target := ps.ByName("target") endpoint := ps.ByName("endpoint") limit := ps.ByName("limit") offset := ps.ByName("offset") orderBy := ps.ByName("order_by") field := ps.ByName("field") value := []interface{}{} err := json.NewDecoder(r.Body).Decode(&value) result, err := SelectFieldValuesSorted(target, endpoint, r.URL.Query(), jwt, field, value, limit, offset, orderBy, true) if err != nil { log.Println("ERROR: ", err) http.Error(res, err.Error(), http.StatusInternalServerError) return } response.To(res).Json(result) }) router.POST("/select/field/:target/:endpoint/:field/:limit/:offset/:order_by/desc", func(res http.ResponseWriter, r *http.Request, ps jwt_http_router.Params, jwt jwt_http_router.Jwt) { target := ps.ByName("target") endpoint := ps.ByName("endpoint") limit := ps.ByName("limit") offset := ps.ByName("offset") orderBy := ps.ByName("order_by") field := ps.ByName("field") value := []interface{}{} err := json.NewDecoder(r.Body).Decode(&value) result, err := SelectFieldValuesSorted(target, endpoint, r.URL.Query(), jwt, field, value, limit, offset, orderBy, false) if err != nil { log.Println("ERROR: ", err) http.Error(res, err.Error(), http.StatusInternalServerError) return } response.To(res).Json(result) }) return }
<gh_stars>0 package com.ultimatesoftware.aeon.core.command.execution.commands.mobile; import com.ultimatesoftware.aeon.core.command.execution.commands.initialization.ICommandInitializer; import com.ultimatesoftware.aeon.core.common.web.interfaces.IByWeb; import com.ultimatesoftware.aeon.core.framework.abstraction.controls.web.WebControl; import com.ultimatesoftware.aeon.core.framework.abstraction.drivers.IDriver; import com.ultimatesoftware.aeon.core.framework.abstraction.drivers.IMobileDriver; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; import org.mockito.Mock; import org.mockito.junit.jupiter.MockitoExtension; import org.mockito.junit.jupiter.MockitoSettings; import org.mockito.quality.Strictness; import java.util.function.Consumer; import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.mockito.Mockito.times; import static org.mockito.Mockito.verify; @ExtendWith(MockitoExtension.class) @MockitoSettings(strictness = Strictness.STRICT_STUBS) public class LockCommandTests { @Mock private WebControl control; @Mock private Consumer<IDriver> driverConsumer; @Mock private IMobileDriver driver; @Mock private ICommandInitializer commandInitializer; @Mock private IByWeb selector; private LockCommand command; @BeforeEach public void setUp() { command = new LockCommand(); } @Test public void firstConstructor_IsBeingInstantiated_ShouldBeDefinedAndNotNull() { //Arrange command = new LockCommand(); //Act //Assert assertNotNull(command); } @Test public void secondConstructor_IsBeingInstantiated_ShouldBeDefinedAndNotNull() { //Arrange command = new LockCommand(1); //Act //Assert assertNotNull(command); } @Test public void notVisibleCommand_CallsExecute() { //Arrange //Act Consumer<IDriver> action = command.getCommandDelegate(); action.accept(driver); //Assert verify(driver, times(1)).mobileLock(); } @Test public void driverDelegate_ZeroSecondsViaFirstConstructor_DriverShouldLockMobileNoParameters() { //Arrange //Act command.driverDelegate(driver); //Assert verify(driver, times(1)).mobileLock(); } @Test public void driverDelegate_ZeroSecondsViaSecondConstructor_DriverShouldLockMobileNoParameters() { //Arrange int lockTimeSeconds = 0; command = new LockCommand(lockTimeSeconds); //Act command.driverDelegate(driver); //Assert verify(driver, times(1)).mobileLock(); verify(driver, times(0)).mobileLock(lockTimeSeconds); } @Test public void driverDelegate_TwoSecondLockTime_DriverShouldLockMobileForLockTime() { //Arrange int lockTimeSeconds = 2; command = new LockCommand(lockTimeSeconds); //Act command.driverDelegate(driver); //Assert verify(driver, times(1)).mobileLock(lockTimeSeconds); verify(driver, times(0)).mobileLock(); } }
package com.acfapp.acf; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import androidx.appcompat.app.AppCompatActivity; import androidx.databinding.DataBindingUtil; import android.os.Bundle; import android.view.View; import android.widget.ImageView; import android.widget.MediaController; import android.widget.VideoView; import com.acfapp.acf.databinding.ActivityViewMediaBinding; import java.io.File; import java.io.FileInputStream; import java.io.IOException; public class ViewMediaActivity extends BaseActivity { String strFilepath = ""; String strFileType = ""; Bitmap bitmap; private Bitmap bm; ActivityViewMediaBinding binding; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); //setContentView(R.layout.activity_view_media); //setActionBarTitle(); binding = DataBindingUtil.setContentView(this, R.layout.activity_view_media); Bundle bundle = getIntent().getExtras(); if (bundle != null) { strFilepath = bundle.getString("FilePath",""); strFileType = bundle.getString("FileType",""); try { if(strFileType.equalsIgnoreCase("jpg") && !strFilepath.equalsIgnoreCase("")) { binding.imageView.setVisibility(View.VISIBLE); binding.videoView.setVisibility(View.GONE); bitmap = getBitmap(strFilepath); binding.imageView.setImageBitmap(bitmap); }else if(strFileType.equalsIgnoreCase("mp4") && !strFilepath.equalsIgnoreCase("")) { binding.imageView.setVisibility(View.GONE); binding.videoView.setVisibility(View.VISIBLE); MediaController mediaController = new MediaController(this); mediaController.setAnchorView(binding.videoView); binding.videoView.setMediaController(mediaController); binding.videoView.setKeepScreenOn(true); binding.videoView.setVideoPath(strFilepath); binding.videoView.start(); binding.videoView.requestFocus(); } }catch (Exception e) { e.printStackTrace(); } } } public Bitmap getBitmap(String url) { FileInputStream fIn = null; try { //fIn = new FileInputStream(new File(imgData.get(position).toString())); BitmapFactory.Options bfOptions = new BitmapFactory.Options(); bfOptions.inDither = false; //Disable Dithering mode bfOptions.inPurgeable = true; //Tell to gc that whether it needs free memory, the Bitmap can be cleared bfOptions.inInputShareable = true; //Which kind of reference will be used to recover the Bitmap data after being clear, when it will be used in the future bfOptions.inTempStorage = new byte[32 * 1024]; fIn = new FileInputStream(new File(url)); if (fIn != null) { bm = BitmapFactory.decodeFileDescriptor(fIn.getFD(), null, bfOptions); if (bm != null) { } } } catch (IOException e) { e.printStackTrace(); } finally { if (fIn != null) { try { fIn.close(); } catch (IOException e) { e.printStackTrace(); } } } return bm; } }
CHALMETTE, La. (AP) - A 60-year-old man has been sentenced to 10 years in prison after pleading guilty in the death of the owner of the pet cemetery where he worked in 1985 - the year her body was found in the Mississippi River, tied in heavy steel chains. Prosecutors say Nodier was charged in the death of 61-year-old Dorothy Thompson, who owned the Azalea Pet Cemetery. She was reported missing April 13, 1985 - days before a state court hearing in a lawsuit over the property. Her body was found May 2, 1985, when fishermen’s lines tangled in the chains. Nodier had become the cemetery groundskeeper at the pet cemetery in 1980.
Developing a public information and engagement portal of urban waterways with real-time monitoring and modeling. Waterways can contribute to the beauty and livelihood of urban areas, but maintaining their hydro-ecosystem health is challenging because they are often recipients of contaminated water from stormwater runoff and other discharges. Public awareness of local waterways' health and community impacts to these waterways is usually poor due to of lack of easily available information. To improve community awareness of water quality in urban waterways in New Zealand, a web portal was developed featuring a real-time waterways monitoring system, a public forum, historical data, interactive maps, contaminant modelling scenarios, mitigation recommendations, and a prototype contamination alert system. The monitoring system featured in the web portal is unique in the use of wireless mesh network technology, direct integration with online modelling, and a clear target of public engagement. The modelling aims to show the origin of contaminants within the local catchment and to help the community prioritize mitigation efforts to improve water quality in local waterways. The contamination alert system aims to keep managers and community members better informed and to provide a more timely response opportunity to avert any unplanned or accidental contamination of the waterways. Preliminary feedback has been positive and is being supported by local and regional authorities. The system was developed in a cost-effective manner providing a community focussed solution for quantifying and mitigating key contaminants in urban catchments and is applicable and transferable to other cities with similar stormwater challenges.
Cystic fibrosis in the era of genomic medicine Purpose of review The field of cystic fibrosis (CF) is changing dramatically as the scientific knowledge accumulated since the cloning of the cystic fibrosis transmembrane conductance regulator (CFTR) gene is being translated into effective therapies to correct the basic defect and provide better disease models and in-depth understanding of the basic mechanisms of disease. Recent findings This review focuses on three main aspects of the recent advances in the field: understanding the lung disease pathophysiology (in particular, the early events that condition its onset), better definition of the complex microbiology of the CF airway, and therapeutic developments. Although the most recently developed therapies, whether approved or under study, do not constitute a definitive cure, the benefit to patients is already becoming clearly apparent. Summary As the field continues to change rapidly and new therapies are being identified, CF has become a paradigm for the application of concepts such as translational medicine, genomic medicine, and personalized care, with measurable clinical benefit for the patients affected by this disease.
def configure_hooks_feature(self): hooks_folder = getattr(config, "HOOKS_FOLDER", "./hooks") if not os.path.exists(hooks_folder): self.logger.info("Hooks folder '%s' doesn't exist, creating it" % hooks_folder) os.makedirs(hooks_folder) self.hook_files = glob.glob(os.path.join(hooks_folder, "*.py"))
/** * Each interval represents the values in an intersection of one or more columns. This * method adds adds a column to the intersection of the columns. This method modifies the * key of <b>this</b> interval with <b>this.getKey() + cP.getQualifiedName()</b>. * * @param cP */ public void addInvolvedColumnPumper(ColumnPumper<T> cP){ if( !this.intervalColumns.contains(cP) ){ this.intervalColumns.add(cP); this.key = this.key + "---" + cP.getQualifiedName().toString(); } }
In part because it has been almost two years since I began taking them, in part because my old medicine is too expensive in France and Zoloft didn’t seem to be working, in part because I felt it was time to try going without them and in part because I ran out of money: after I finished my box of antidepressants, I didn’t buy more. Of course, if this experiment failed and I even briefly thought of killing myself or remained in bed for a considerable amount of time, I would, after my next paycheck, take my prescription to a pharmacy and that would be that. I can’t identify a time in my life, though, when my mother shouldn’t have been on antidepressants. She must have always thought it perfectly natural that she be unhappy: a divorced immigrant who left poverty in a communist country to ruin her back working in a small town, continuing to live in poverty, losing her father to colon cancer and being an ocean away without the money for a plane ticket, having the miscarriages, and working the shit job as a single mother that would send her home in tears. As far as I know, she has never seen a therapist and she never has tried antidepressants. My mother’s laugh, as you can imagine, is a rare sound, which chirps like the laugh of an astonished child and is reserved for family dinners at Pizza Hut every Thursday, when my brothers and I were a decade younger and we could still make each other laugh so hard that she couldn’t breathe, when she would wipe her eyes and shake her head so we would be sure to know how embarrassed she was at how loud we were. Her laugh is reserved for when I am particularly clever, years ago when she would drive my brother and I to visit our older brother at Cornell and then later, when I was the one being driven to college, when I wanted to re-assure her that she had raised not only two, but three intelligent sons, when I would make inappropriate references to literature and films and she would shake her head. And her laugh, of course, was reserved for watching Robin Williams. The TV room, like the rest of the house, had been a mess since a few years after the divorce and the furniture was stained and falling apart and there was trash piled in one corner and a stack of empty seltzer bottles in another and if the entire family wanted to watch TV two of us would have to sit on the floor, which never bothered me much. We watched Friends or The Drew Carey Show or The Simpsons or Whose Line is it Anyway? and even now I can still see her face the night Robin Williams guest-starred, leaning forward in her seat, eyes bright, biting her lip and smiling but maybe that’s a detail I have since invented, laughing until she cried. I was never amazed then by how well and how quickly my mother learned English, well enough to understand subtle and smart humor and sarcasm, well enough to use it, which she did so often. I remember walking down the aisles of the rental store picking out movies to watch, and because we were in public she seemed happy, but I remember how happy she really was when we watched Good Will Hunting, and Bicentennial Man, Mrs. Doubtfire and Aladdin and Jumanji. The only movie we ever saw as a family in theaters was Mortal Kombat when I was five, and the only time she has tried to go since was the opening night of Flubber. We were driving by and she saw the movie was playing and she parked the car on what must have been a whim and I watched her walk inside. Soon she walked back out and she told us that there were no seats left. She suggested to the ticket counter that we could sit in the aisles, but the aisles were already full. I remember, though, how excited she was when we watched the HBO special with Robin Williams. I remember being amazed at how much that man could make her laugh: by pantomiming cunnilingus on his forearm, by shouting and doing impressions, by being so full of the energy that she never seemed to have. My family was never an active one. There were the soccer practices, and the swim practices, and the Tae Kwon Do lessons, but these were activities for my brother and I. We were never active as a family. Our family time was composed of moments spent being in the same place together: eating while watching TV, talking during long car rides, sitting in silence when she was too tired to talk. And our happiest moments as a family were when we all sat together and watched TV, and she was happiest when we were watching Robin Williams. And I was happy and my brothers were happy because she was happy. I am not devastated that a man I never met has passed away. I am not mourning the loss of what could have been, what this great man could have done had his life not ended so early. I don’t mourn what more joy he could have added to the world. I haven’t watched one of his films for years. I couldn’t tell you the last film he made. But I learned that a man, a famous man my mother loved, died of the disease that has been slowly killing her my entire life. I imagine how my mother must have felt, learning about his passing. I was hungover and had just woken up, sleeping for just “ten more minutes” when my girlfriend told me that Robin Williams died, and even in that blur the first thing I thought of was my mother. Knowing depression for years now and having been treated for two, I can just begin to get a glimpse of what life for my mother must have been like, knowing that however bad it was for me, she has known it for longer than I have been alive. I’ve learned just what those long car-rides where my mother was too tired to talk meant, what the pile of garbage in the corner meant, what the nights spent in front of the television meant, and I’ve come to imagine just how much my mother must have hated being too tired to talk, how much she must have hated having a pile of garbage in the corner, how much she must have hated having the only time she spent with the family she loved so dearly be spent in front of a television. And then I remember that woman watching Robin Williams. I have been in France for a year now, and I haven’t seen her for longer, and I can’t remember the last time I heard my mother laugh.
1. Field of the Invention This invention relates to additives for lubricants and normally liquid fuels. More particularly it relates to additive compositions which are formed by esterifying an alcohol with a high molecular weight carboxylic acid reagent derived from an oxidized, degraded ethylene-propylene interpolymer and a low molecular weight ethylenically unsaturated carboxylic acid reagent. The invention also pertains to lubricant compositions, normally liquid fuel compositions and additive concentrate compositions containing these additive esters. 2. General Background The improvement of performance properties of lubricants and normally liquid fuels by the addition thereto of certain materials known as additives is well known in the art. See for example, Smallheer and Smith "Lubricant Additives" published by Lezius-Hiles Corporation, Cleveland, Ohio, and Gruse "Motor Oils" published by the Reinhold Publishing Corporation of New York, particularly pages 160-203. Specifically, it is well known that a lubricating oil's viscosity-temperature interrelationship can be improved by addition to the oil of a viscosity improving agent. Similarly, it is well known that the ability of an oil or a liquid fuel to disperse the sludge formed in it can be improved by addition to the oil or fuel of certain relatively high molecular weight organo-nitrogen additives. Still further, it is known that the VI and dispersant functions of such additives can be combined in a single molecule composition. One class of such materials which are nitrogen-containing polyacrylates and polymethacrylates are sold by the Rohm and Haas Company of Philadelphia, Pennsylvania, under the trade name "Acryloids". Increasing attention to the problems of air pollution and more specifically those problems arising from combustion of organo-nitrogen compounds has led to a search for effective viscosity improving and sludge dispersing agents in which only carbon, hydrogen and oxygen are present in substantial amounts. One such class of sludge dispersing agents comprising certain succinate esters is disclosed in U.S. Pat. Nos. 3,331,776, 3,346,354 and 3,381,022. Graft copolymers made by reacting unsaturated carboxylic acid esters of alkane diols are also known to be effective carbon-, hydrogen- and oxygen-containing dispersants and VI improvers. See, for example, U.S. Pat. No. 3,687,849. The present invention is directed to a third type of multifunctional viscosity improving, sludge dispersing and cold flow improving additives. 3. Prior Art Patents In addition to the hereinabove-noted patents, the following U.S. Patents provide background for the present invention. U.S. Pat. No. 3,388,067 discloses lubricant compostions containing hydroxylated, degraded ethylene-alphaolefin interpolymers. U.S. Pat. Nos. 3,389,087 and 3,551,336 describe oil compositions containing ethylene-alpha-olefin copolymers with varying distinguishing characteristics such as crystallinity and specific chain conformations. U.S. Pat. No. 3,769,216 discloses lubricant compositions containing additives derived from degraded ehylene propylene copolymers-alkylene polyamines reactions. Finally, U.S. Pat. No. 3,316,177 discloses lubricating oils containing polyamine salts of the reaction product of maleic anhydride and oxidized, degraded ethylene-propylene interpolymers.
<gh_stars>0 def quicksort (lst): if lst == []: return [] else: smallsorted = quicksort([x for x in lst[1:] if x <= lst[0]]) bigsorted = quicksort([x for x in lst[1:] if x > lst[0]]) return smallsorted + [lst[0]] + bigsorted
class Graph: def __init__(self, vertices): self.vertices = vertices self.graph = [[None for i in range(vertices)] for i in range(vertices)] def addEdge(self, u, v, cost): if u < 0 or v < 0 or u >= self.vertices or v >= self.vertices: print("Vertex doesn't exist in the graph") else: self.graph[u][v] = cost self.graph[v][u] = cost def getClosest(self): m = float("inf") node = None for i in range(self.vertices): if self.dist[i] < m and self.mst[i] == False: m = self.dist[i] node = i return node, m def prim(self): self.mst = [False for i in range(self.vertices)] self.dist = [float("inf") for i in range(self.vertices)] self.parent = [i for i in range(self.vertices)] self.dist[0] = 0 self.ans = [] for i in range(self.vertices): node, cost = self.getClosest() self.ans.append([self.parent[node], node, self.graph[self.parent[node]][node]]) self.mst[node] = True for neighbor in range(self.vertices): if (not self.mst[neighbor]) and (self.graph[node][neighbor]) and (self.dist[neighbor]>self.graph[node][neighbor]): self.dist[neighbor] = self.graph[node][neighbor] self.parent[neighbor] = node for row in self.ans: print(row) if __name__ == "__main__": obj = Graph(9) # Create a graph object with number of vertices # We can pass a graph or add individual edges obj.addEdge(0, 1, 4) # Adding edge between 0 & 1 with weight 4 obj.graph = [[0, 4, 0, 0, 0, 0, 0, 8, 0], [4, 0, 8, 0, 0, 0, 0, 11, 0], [0, 8, 0, 7, 0, 4, 0, 0, 2], [0, 0, 7, 0, 9, 14, 0, 0, 0], [0, 0, 0, 9, 0, 10, 0, 0, 0], [0, 0, 4, 14, 10, 0, 2, 0, 0], [0, 0, 0, 0, 0, 2, 0, 1, 6], [8, 11, 0, 0, 0, 0, 1, 0, 6], [0, 0, 2, 0, 0, 0, 6, 7, 0]] obj.prim() # Calling the prim function to print the MST
WAUKEGAN, Ill. & LAS VEGAS--(BUSINESS WIRE)--The SPIDER-MAN game, a new fully immersive slot gaming experience from WMS Gaming Inc., a subsidiary of WMS Industries Inc. (NYSE:WMS), will swing into action at the twelfth annual Global Gaming Expo (G2E®), October 2-4 at the Sands Expo and Convention Center in Las Vegas. The latest Sensory Immersion premium participation slot game to debut from WMS leverages the “spider-sense” tingling performance of the Company’s synchronized motion chair with the advanced sound and graphics powered by WMS’ next-generation CPU-NXT®3 operating platform to bring the thrills, excitement and sense of wonder of Marvel Entertainment’s iconic SUPER HERO™ to casino slot floors. The new SPIDER-MAN slot game is WMS’ second game to feature the Sensory Immersion 2.0 synchronized motion system technology pioneered by D-BOX Technologies (TSX:DBO), following on the heels of the successful Aladdin & The Magic Quest® theme that is proving popular with players across the country and generating superior coin-in performance across casino floors. The SPIDER-MAN game is a “dual-array game” providing reel-spinning video action across two full 5x3 reel layouts with each spin, along with six random “Spider-Sense” features and exciting bonus rounds that include video and audio clips from the original film trilogy. Alternatively, players may experience the advanced graphics and the perfectly synchronized motion of their chair with the video graphics in an exciting bonus battle featuring the GREEN GOBLIN™. The SPIDER-MAN game also features a first-of-its-kind take on Free Spins, enabled only through the increased capabilities of WMS’ new, third-generation CPU-NXT3 operating platform. The pure horsepower of the CPU-NXT3 platform makes it possible to synchronize the movement of the motion chair with the action of the exciting movie clips playing behind the reels during the spins, and also to have as many as eight reel sets spinning simultaneously on each play in the bonus round. Players will find this bonus even more exciting with the possibility of multipliers up to 50x the credits awarded on all reel sets’ line wins. “Following the tremendous player reaction to our recent Aladdin & The Magic Quest game, our exciting new SPIDER-MAN game is a premium participation game that leverages the capabilities and functionality made possible by our next-generation CPU-NXT3 platform,” said Phil Gelber, Senior Vice President, Product Development of WMS Gaming. “The CPU-NXT3 platform is revolutionizing the slot experience by bringing a heightened level of excitement to the casino floor through a fully immersive sensory experience of sound, sight and motion. Our game developers have done an excellent job integrating the proven capabilities of motion chair technology to deliver the thrills and adventure inherent in the iconic SPIDER-MAN brand and feature films. Our Sensory Immersion 2.0 platform with the CPU-NXT3 operating system delivers enhanced graphics and sound, superior play mechanics and advanced touch screen technology, all integrated into the game play. This game demonstrates one of the many unique experiences WMS is able to bring to casino slot floors as we support our customers’ efforts to fully engage players with slot entertainment that increases player loyalty at their favorite casinos.” See the new SPIDER-MAN Sensory Immersion 2.0 game along with more than 100 other new exciting participation and for-sale games that reflect WMS’ commitment to “Engaging Players. Delivering Results.™” that will be on display at G2E 2012 (booth #1118). About WMS WMS serves the gaming industry worldwide by designing, manufacturing and marketing games, video and mechanical reel-spinning gaming machines, video lottery terminals and in gaming operations, which consists of the placement of leased participation gaming machines in legal gaming venues. The Company also develops and markets digital gaming content, products, services and end-to-end solutions that address global online wagering and play-for-fun social, casual and mobile gaming opportunities. WMS is proactively addressing the next stage of casino gaming floor evolution with its WAGE-NET® networked gaming solution, a suite of systems technologies and applications designed to increase customers’ revenue generating capabilities and operational efficiency. More information on WMS can be found at www.wms.com or visit the Company on Facebook®, Twitter® or YouTube®. D-BOX® and D-BOX MOTION CODE® are registered trademarks of D-BOX Technologies. G2E is a registered trademark of the American Gaming Association and Reed Elsevier Inc. Used with permission. SPIDER-MAN, MARVEL, GREEN GOBLIN, SUPER HERO and all related characters, TM & © 2002-2007 Marvel Entertainment, Inc. and its subsidiaries. SPIDER-MAN movies © 2002-2007 Columbia Pictures Industries, Inc. All rights reserved. This press release contains forward-looking statements concerning our future business performance, strategy, outlook, plans, products and liquidity. Forward-looking statements may be typically identified by such words as “may,” “will,” “should,” “expect,” “anticipate,” “plan,” “likely,” “believe,” “estimate,” “project,” and “intend,” among others. These forward-looking statements are subject to risks and uncertainties that could cause our actual results to differ materially from the expectations expressed in the forward-looking statements. Although we believe that the expectations reflected in our forward-looking statements are reasonable, any or all of our forward-looking statements may prove to be incorrect. Consequently, no forward-looking statements may be guaranteed. We undertake no obligation to update such forward looking statements, all of which are made only as of this date, August 6, 2012. Factors that could cause our actual results to differ from expectations include (1) delay or refusal by regulators to approve our new gaming platforms, cabinet designs, game themes and related hardware and software; (2) changes in regulations or regulatory interpretations that may adversely affect existing product placements or future placements; (3) an inability to introduce in a timely manner new games and gaming machines that achieve and maintain market acceptance; (4) a decrease in the desire of casino customers to upgrade gaming machines or allot floor space to leased or participation games, resulting in reduced demand for our products; (5) a reduction in capital spending or interruption in payments by casino customers associated with business weakness or economic uncertainty that adversely affects our customers' ability to make purchases or pay; (6) a greater-than-expected demand for operating leases by customers over outright product sales or sales financing leases that shift revenue recognition from a single period to the term of such operating leases; (7) future costs to restructure our business and other charges that may be higher than currently estimated, including additional charges related to actions at a later time not presently contemplated; (8) ability to realize in full, or part, the anticipated savings and expense reductions from restructuring and lower staffing; (9) adverse affects on product development, innovation and the ability to retain and attract key personnel following the restructuring and reorganization actions taken in fiscal 2011 and 2012; (10) a reduction in play levels of our participation games by casino patrons, whether due to economic conditions or increased placements of competitive product; (11) inability of suppliers of key components to timely meet our pricing or promotional competitive activity that adversely affects our average selling price or product revenues; (13) a failure to obtain and maintain our gaming licenses and regulatory approvals; (14) failure of customers or players to adapt to the new technologies that we introduce in new product concepts; (15) a software anomaly or fraudulent manipulation of our gaming machines and software; (16) a failure to obtain the right to use or an inability to adapt to rapid development of new technologies; (17) an infringement claim seeking to restrict our use of material technologies; (18) risks of doing business in international markets, including political and economic instability, terrorist activity, changes in importation and repatriation regulations such as currently experienced in Argentina, and foreign currency fluctuations; and (19) the unfavorable outcome of any legal proceedings in which we may be requirements to fulfill customer orders; (12) increased involved from time to time. These factors and other factors that could cause actual results to differ from expectations are more fully described under “Item 1. Business”, “Item 1A. Risk Factors” and “Legal Proceedings” in our Annual Report on Form 10-K for the year ended June 30, 2012, and our more recent reports filed with the U.S. Securities and Exchange Commission.
Nicholas Vescera, 25, of 4 Little John Drive, Montville, was charged Saturday with breach of peace, third-degree assault and first-degree burglary. Kelly Nixon Jr., 22, of 328 Dr. Foote Road, Colchester, was charged Friday with sixth-degree larceny and forgery. Anthony Bostich, 23, of 55 Crouch St., Groton, was charged Saturday with driving under the influence of drugs or alcohol, driving with a suspended licence and failure to drive in the proper lane. Davierre Godlewski, 22, of 332 Canterbury Turnpike, Norwich, was charged Saturday with first-degree trespass and having a weapon in a motor vehicle. Nicholas A. Macadie, 21, of 23 Wales Road, Norwich, was charged Saturday with first-degree trespass and having a weapon in a motor vehicle. Jordyn Smith, 18, of 24 Belden St., Apt. 1B, was charged Saturday with third-degree assault. Ethel Smith, 51, of 24 Belden St., Apt. 1B, was charged Saturday with third-degree assault and disorderly conduct. Jonathan Drye, 32, of 29 Talman St, Apt. 3, Norwich, was charged Saturday with second-degree failure to appear in court. Frederick Muscarella, 74, of 47 Federal St. was charged Saturday with driving under the influence of drugs or alcohol and failure to stay in the established lane. John T. Mathieu, 24, of 234 Great Neck Road, Niantic, was charged Sunday with driving under the influence of drugs or alcohol and driving unreasonable fast. Richard H. Watkins, 34, of 143 Oneco Ave., Apt. 2, was charged Sunday with breach of peace and interfering with a police officer. Jermel Jacklin, 32, of 42 Linden St. was charged Sunday with breach of peace and interfering with a police officer. Terry Colonma, age unknown, no certain address, was charged Friday with second-degree breach of peace. Matthew Barfield, 25, of 151 Garfield Ave., New London, was charged Friday with breach of peace. Craig Thibeau, 18, of 6 Laurel Crest Drive, was charged Friday with possession of a dangerous weapon on school grounds, threatening and second-degree reckless endangerment. Joshua Krysiewicz, 19, of 8 Marguy St. was charged Friday with breach of peace. Todd Krysiewicz, 47, of 20 Marguy St. was charged Friday with breach of peace.
#include<stdio.h> #include<stdlib.h> int main() { long int test,temp=0; int j=0; int count=-1; scanf("%ld",&test); int a[test],b[test],mini=1e5; int min1=0; for(long int i=0;i<test;i++) { scanf("%d %d",&a[i],&b[i]); //printf("\n%d",a[i]); //printf("\n%d",b[i]); if(a[i]!=b[i]) { //printf("\n%d %d",a[i],b[i]); count=1; break; } if(a[i]>mini) min1=1; if(a[i]<mini) { mini=a[i]; } } /* for(long int i=1;i<test;i++) { if(a[i]!=b[i]) { //printf("\n%d %d",a[i],b[i]); count=1; break; } } */ if(count==1) { printf("rated"); return 0; } /* for(long int i=1;i<test;i++) { if(a[i]==a[i-1]) { //printf("\n%d %d",a[i],a[i-1]); count=0; break; } if(b[i]==b[i-1]) { //printf("\n%d %d",b[i],b[i-1]); count=0; break; } } if(count==0) { printf("maybe"); return 0; } for(long int i=test-1;i>0;i--) { //printf("%d %d\n",a[i-1],a[i]); if(a[i-1]>a[i]) { temp++; // printf("%ld\n",temp); } if(temp==(test-1)) { count=0; // printf("%ld",temp); printf("maybe"); return 0; } } if(count==-1) { printf("unrated"); }*/ if(min1==1) { printf("unrated"); } else { printf("maybe"); } return 0; }
Understanding your mindset According to psychologist Carol Dweck, a person’s mindset can come in two flavours: fixed and growth. By understanding the difference between the two, we can shed light on why some people are better than others at showing us a good time. In a nutshell, someone with a fixed mindset believes we are what we are, and that things — meaning personality traits, capabilities, beliefs about ourselves, etc. — don’t really change. For example, with a fixed mindset, if I’m bad at maths, then that’s just the way I am. I’ll always be bad at maths. There really isn’t any point in trying to improve my skills. If I believe myself to not be a funny person, then that will continue to be my destiny, etc. On the other hand, an individual with a growth mindset believes in constant evolution. I am what I am now, but that’s different from what I was before, and what I will be in the future. If I’m bad at maths now, I can work at it and potentially become a maths genius — given the proper motivation, of course. If I don’t find myself to be very funny now, I can practice my joke-telling skills and comedic delivery, and maybe I’ll have them rolling in the aisles one day. Everything is a matter of effort. Some people tend more toward a fixed mindset, and others toward that of growth, but it’s not entirely binary. Most of us will shift between the two outlooks depending on our situation. The way we evaluate our personal sense of worth, success and ability differs depending on our mindset. The fixed mindset individual judges themselves against others. In order to feel good at something, they have to be better than everyone else around them, or at least somewhere near the top. When this is the case, fear of failure is ramped up, and they’ll be likely to shy away from challenges, even — in fact especially — in the areas they consider themselves gifted. This is because any failure suffered threatens to jeopardise their “talented” status. One slip up and they’re no longer the genius they, or others, thought they were. Better to not risk it at all. Furthermore, this mindset breeds arrogance, because — looking down from their fiercely protected spot at the top of the heap — a fixed mindset individual genuinely feels superior to the people they surround themselves with. In fact, they need to think in this way in order to feel of worth. The growth mindset individual though, will feel successful, worthy, and purposeful when they’re learning. What this essentially means is that failure, as a concrete idea or our general understanding of it, doesn’t really exist, because the harder a task or an undertaking is, the more we stand to grow as a result of doing it — even if we don’t do it perfectly. With a growth mindset, we welcome challenge because instant success and recognition are not the ultimate goals. Needless to say, in the long run growth-minded people have the potential to go further, and grow bigger, in all aspects of their lives. So how does this apply to being great company? Some fixed-minded people tend to act in a way that can make us feel small, and they seem to relish that outcome. They’re the ones who smirk when we slip up, the ones we wouldn’t want to show an unfinished project to, or see us in tracksuit trousers and a battered t-shirt first thing on a Sunday morning. They’re the ones we wouldn’t want to say anything stupid in front of, and if we did, we would feel the need to justify ourselves to save face. If someone slips into a fixed mindset, suddenly everything and everyone around them begins to function like a mirror. They’re forced into a perpetual state of self-referencing. They ask: “How does this friend, topic, job, choice of music, etc. make me look?” And it can be contagious. Like a bitchy, competitive group of school children, everyone around a fixed person can catch the bug, and end up falling into an uncomfortable pattern of one-upmanship, which can quickly turn ugly. So a fixed-minded friend can be uncomfortable to hang out with because they have the potential to handicap our growth as well. Anticipating judgment causes us to take up a defensive stance, and because we’re busy protecting ourselves, we hold ourselves back. We can’t take on risk when we’re under threat. We can’t stretch ourselves when we’re fearfully clinging to a sense of self-worth that seems to suddenly be under fire.
Chicago aldermen on Thursday put the final touches on a plan to double parking meter rates at 1,100 spaces around Wrigley Field and learned it could have been a whole lot worse for motorists. Chief Financial Officer Carole Brown said she wanted to launch the surge pricing experiment with a sixfold increase in the $2-an-hour parking meter rate to discourage fans from driving to Cubs games. Local Ald. Tom Tunney (44th) said he nixed the idea of charging whatever the market will bear to avoid what happened after former Mayor Richard M. Daley leased Chicago parking meters and empowered the company to implement a steep schedule of rate hikes. “Going from $2 to $4 is a big deal. This is what got us into trouble in the first place — because we never properly priced the meters,” Tunney said. The surge pricing — which could ultimately extend to the streets surrounding the United Center and Soldier Field — is scheduled to take effect at 5 p.m. April 10 after a pair of technical amendments approved Thursday. The first change would align the new fees with “programmed payment increments” used by the pay boxes that replaced Chicago parking meters. Since the pay boxes start on the hour, surge pricing would begin “at the hour nearest to” two hours prior to the Cubs game, Wrigley concert or other special event. If the game starts at 7:05 p.m., as most night games do, surge pricing would begin at 5 p.m. The second change would clarify when surge pricing ends. Paid parking ends on the streets surrounding Wrigley Field at 10 p.m. The new language would allow surge pricing to extend beyond 10 p.m. to include the seven-hour window. Neither change was controversial. But the mere discussion of parking meter rates touched a nerve. “Whenever the city has found a way to make some money, they tend to expand it. A prime example is our red-light cameras. At one point, it was for safety concerns to help prevent accidents. But once it became a revenue source, red-light cameras were all throughout the city,” said West Side Ald. Chris Taliaferro (29th), who cast the only dissenting vote. Taliaferro noted that the mayor is in the process of removing red-light cameras from six intersections and placing them at five other ones. “I don’t think they’ve asked any aldermen for their support. They’re just doing it,” he said. When Traffic Committee Chairman Walter Burnett (27th) joked that only “chump aldermen” are not consulted about such changes, Taliaferro let him have it with a smile. “Ain’t no such thing as a chump alderman. I’m 350 pounds. Ain’t no chump here. … I ain’t no chump. Anybody who knows me will tell you that,” Taliaferro said. The mayor’s original plan called for surge pricing around Wrigley to apply to 820 parking spaces and generate $2.4 million. But the plan has since been expanded to cover 1,100 spaces while the revenue estimate has been lowered to $1.5 million. “Impacted meters include those on arterial streets and wraparound streets,” Molly Poppe, a spokeswoman for the city’s Office of Budget and Management, wrote in an email. The money will be used to offset the annual payment to Chicago Parking Meters LLC for meters taken out of service for construction and special events or used by people with disabilities. The last annual payment for those so-called “true-up” costs amounted to $12 million. Tunney said he has forced the city to spend more on signs than Brown intended to make certain motorists are not blindsided by the new rates. “I have Sunday enforcement on arterials, but not on the wraparounds. There’s gonna be a learning curve. And there are going to be some tickets written, unfortunately,” he said.
. We examined retrospectively the M-mode and two-dimensional echocardiograms performed in our laboratory on 227 patients with pericardial diseases, in order to assess the capabilities and limits of echocardiography in this field. We observed 4 patients with congenital absence of the pericardium, 10 with of constrictive or infiltrative-adhesive pericarditis, 213 pericardial effusions, associated with left pleural effusion in 36 cases and with different kinds of intrapericardial masses in 33 cases. Through qualitative analysis of the echogenicity of such masses some aspects were singled out which may prove useful in identifying intrapericardial fat, as well as tumors. We also suggest new ways of using specific echocardiographic sections to differentiate left pleural effusions from pericardial effusions, and to identify very small pericardial effusions.
def run_graph(self, session, generator, eval_names, post_func, iterations): initialize_uninitialized_vars(session) image_tensor = session.graph.get_tensor_by_name('image_tensor:0') eval_outputs = [] for name in eval_names: op = session.graph.get_operation_by_name(name) eval_outputs.append(op.outputs[0]) counters = {'skipped': 0, 'success': 0} result_list = [] try: for _, input_dict in zip(range(iterations), generator): feed_dict = {image_tensor: input_dict[fields.InputDataFields.image]} try: output_data = session.run(eval_outputs, feed_dict=feed_dict) counters['success'] += 1 export_dict = { fields.InputDataFields.source_id: input_dict[fields.InputDataFields.source_id], fields.InputDataFields.original_image_spatial_shape: input_dict[fields.InputDataFields.original_image_spatial_shape] } export_dict.update(dict(zip(eval_names, output_data))) result_list.append(export_dict) except tf.errors.InvalidArgumentError: counters['skipped'] += 1 except tf.errors.OutOfRangeError: logger.info("Completed evaluation iterations: %i, success: %i, skipped: %i", iterations, counters['success'], counters['skipped']) finally: if post_func is not None: perf = post_func(result_list, self._annotation_file) logger.info("%s", perf) else: perf = result_list return perf
Encapsulation of food ingredients. Microencapsulation is a relatively new technology that is used for protection, stabilization, and slow release of food ingredients. The encapsulating or wall materials used generally consist of starch, starch derivatives, proteins, gums, lipids, or any combination of them. Methods of encapsulation of food ingredients include spray-drying, freeze-drying, fluidized bed-coating, extrusion, cocrystallization, molecular inclusion, and coacervation. This paper reviews techniques for preparation of microencapsulated food ingredients and choices of coating material. Characterization of microcapsules, mechanisms of controlled release, and efficiency of protection/stabilization of encapsulated food ingredients are also presented.
package destinations import ( "github.com/sloonz/uback/lib" "bytes" "encoding/json" "errors" "fmt" "io" "os" "strings" "github.com/gobuffalo/flect" "github.com/sirupsen/logrus" ) var ( ErrCommandMissing = errors.New("command destination: missing command") commandLog = logrus.WithFields(logrus.Fields{ "destination": "fs", }) ) type commandDestination struct { options *uback.Options command []string env []string } func newCommandDestination(options *uback.Options) (uback.Destination, error) { command := options.GetCommand("Command", nil) if len(command) == 0 { return nil, ErrCommandMissing } env := os.Environ() for k, v := range options.String { env = append(env, fmt.Sprintf("UBACK_OPT_%s=%s", flect.New(k).Underscore().ToUpper().String(), v)) } for k, v := range options.StrSlice { jsonVal, err := json.Marshal(v) if err != nil { return nil, err } env = append(env, fmt.Sprintf("UBACK_SOPT_%s=%s", flect.New(k).Underscore().ToUpper().String(), string(jsonVal))) } buf := bytes.NewBuffer(nil) cmd := uback.BuildCommand(command, "destination", "validate-options") cmd.Stdout = buf cmd.Stderr = os.Stderr cmd.Env = env err := cmd.Run() if err != nil { return nil, err } return &commandDestination{options: options, command: command, env: env}, nil } func (d *commandDestination) ListBackups() ([]uback.Backup, error) { var res []uback.Backup buf := bytes.NewBuffer(nil) cmd := uback.BuildCommand(d.command, "destination", "list-backups") cmd.Stdout = buf cmd.Stderr = os.Stderr cmd.Env = d.env err := cmd.Run() if err != nil { return nil, err } for { entry, err := buf.ReadString('\n') if err == io.EOF { break } else if err != nil { return nil, err } entry = strings.TrimSpace(entry) if entry == "" { continue } if strings.HasPrefix(entry, ".") || strings.HasPrefix(entry, "_") { continue } backup, err := uback.ParseBackupFilename(entry, false) if err != nil { commandLog.WithFields(logrus.Fields{ "entry": entry, }) logrus.Warnf("invalid backup file: %v", err) continue } res = append(res, backup) } return res, nil } func (d *commandDestination) RemoveBackup(backup uback.Backup) error { cmd := uback.BuildCommand(d.command, "destination", "remove-backup", backup.FullName()) cmd.Stdout = os.Stderr cmd.Stderr = os.Stderr cmd.Env = d.env return cmd.Run() } func (d *commandDestination) SendBackup(backup uback.Backup, data io.Reader) error { cmd := uback.BuildCommand(d.command, "destination", "send-backup", backup.FullName()) cmd.Stdin = data cmd.Stdout = os.Stderr cmd.Stderr = os.Stderr cmd.Env = d.env return cmd.Run() } func (d *commandDestination) ReceiveBackup(backup uback.Backup) (io.ReadCloser, error) { pr, pw := io.Pipe() cmd := uback.BuildCommand(d.command, "destination", "receive-backup", backup.FullName()) cmd.Stdout = pw cmd.Stderr = os.Stderr cmd.Env = d.env commandLog.Printf("running: %v", cmd.String()) err := cmd.Start() if err != nil { return nil, err } go func() { pw.CloseWithError(cmd.Wait()) }() return pr, nil }
import { Module } from '@nestjs/common'; import { EventsGateway } from './events.gateway'; import { GuestsModule } from '../domain/guests/guests.module'; import { AssessmentsService } from '../domain/assessments/assessments.service'; import { AssessmentsModule } from 'domain/assessments/assessments.module'; @Module({ providers: [EventsGateway], imports: [AssessmentsModule, GuestsModule] }) export class EventsModule {}
<gh_stars>0 import { Component, OnInit, Injector, OnDestroy } from '@angular/core'; import { forEach as _forEach } from 'lodash-es'; import { SalesSummaryDatePeriod, TenantDashboardServiceProxy } from '@shared/service-proxies/service-proxies'; import { DashboardChartBase } from '../dashboard-chart-base'; import { WidgetComponentBaseComponent } from '../widget-component-base'; class SalesSummaryChart extends DashboardChartBase { totalSales = 0; totalSalesCounter = 0; revenue = 0; revenuesCounter = 0; expenses = 0; expensesCounter = 0; growth = 0; growthCounter = 0; selectedDatePeriod: SalesSummaryDatePeriod; data = []; constructor( private _dashboardService: TenantDashboardServiceProxy) { super(); } init(salesSummaryData, totalSales, revenue, expenses, growth) { this.totalSales = totalSales; this.totalSalesCounter = totalSales; this.revenue = revenue; this.expenses = expenses; this.growth = growth; this.setChartData(salesSummaryData); this.hideLoading(); } setChartData(items): void { let sales = []; let profit = []; _forEach(items, (item) => { sales.push({ 'name': item['period'], 'value': item['sales'] }); profit.push({ 'name': item['period'], 'value': item['profit'] }); }); this.data = [ { 'name': 'Sales', 'series': sales }, { 'name': 'Profit', 'series': profit } ]; } reload(datePeriod) { if (this.selectedDatePeriod === datePeriod) { this.hideLoading(); return; } this.selectedDatePeriod = datePeriod; this.showLoading(); this._dashboardService .getSalesSummary(datePeriod) .subscribe(result => { this.setChartData(result.salesSummary); this.hideLoading(); }); } } @Component({ selector: 'app-widget-sales-summary', templateUrl: './widget-sales-summary.component.html', styleUrls: ['./widget-sales-summary.component.css'] }) export class WidgetSalesSummaryComponent extends WidgetComponentBaseComponent implements OnInit, OnDestroy { salesSummaryChart: SalesSummaryChart; appSalesSummaryDateInterval = SalesSummaryDatePeriod; constructor(injector: Injector, private _tenantDashboardServiceProxy: TenantDashboardServiceProxy) { super(injector); this.salesSummaryChart = new SalesSummaryChart(this._tenantDashboardServiceProxy); } ngOnInit(): void { this.subDateRangeFilter(); this.runDelayed(() => { this.salesSummaryChart.reload(SalesSummaryDatePeriod.Daily); }); } onDateRangeFilterChange = (dateRange) => { this.runDelayed(() => { this.salesSummaryChart.reload(SalesSummaryDatePeriod.Daily); }); } subDateRangeFilter() { abp.event.on('app.dashboardFilters.dateRangePicker.onDateChange', this.onDateRangeFilterChange); } unSubDateRangeFilter() { abp.event.off('app.dashboardFilters.dateRangePicker.onDateChange', this.onDateRangeFilterChange); } ngOnDestroy(): void { this.unSubDateRangeFilter(); } }
/* * IPMI SMBIOS firmware handling * * Copyright (c) 2015,2016 Corey Minyard, MontaVista Software, LLC * * This work is licensed under the terms of the GNU GPL, version 2 or later. * See the COPYING file in the top-level directory. */ #include "qemu/osdep.h" #include "hw/ipmi/ipmi.h" #include "hw/smbios/ipmi.h" #include "hw/smbios/smbios.h" #include "qemu/error-report.h" #include "smbios_build.h" /* SMBIOS type 38 - IPMI */ struct smbios_type_38 { struct smbios_structure_header header; uint8_t interface_type; uint8_t ipmi_spec_revision; uint8_t i2c_slave_address; uint8_t nv_storage_device_address; uint64_t base_address; uint8_t base_address_modifier; uint8_t interrupt_number; } QEMU_PACKED; static void smbios_build_one_type_38(IPMIFwInfo *info) { uint64_t baseaddr = info->base_address; SMBIOS_BUILD_TABLE_PRE(38, 0x3000, true); t->interface_type = info->interface_type; t->ipmi_spec_revision = ((info->ipmi_spec_major_revision << 4) | info->ipmi_spec_minor_revision); t->i2c_slave_address = info->i2c_slave_address; t->nv_storage_device_address = 0; assert(info->ipmi_spec_minor_revision <= 15); assert(info->ipmi_spec_major_revision <= 15); /* or 1 to set it to I/O space */ switch (info->memspace) { case IPMI_MEMSPACE_IO: baseaddr |= 1; break; case IPMI_MEMSPACE_MEM32: case IPMI_MEMSPACE_MEM64: break; case IPMI_MEMSPACE_SMBUS: baseaddr <<= 1; break; } t->base_address = cpu_to_le64(baseaddr); t->base_address_modifier = 0; if (info->irq_type == IPMI_LEVEL_IRQ) { t->base_address_modifier |= 1; } switch (info->register_spacing) { case 1: break; case 4: t->base_address_modifier |= 1 << 6; break; case 16: t->base_address_modifier |= 2 << 6; break; default: error_report("IPMI register spacing %d is not compatible with" " SMBIOS, ignoring this entry.", info->register_spacing); return; } t->interrupt_number = info->interrupt_number; SMBIOS_BUILD_TABLE_POST; } static void smbios_add_ipmi_devices(BusState *bus) { BusChild *kid; QTAILQ_FOREACH(kid, &bus->children, sibling) { DeviceState *dev = kid->child; Object *obj = object_dynamic_cast(OBJECT(dev), TYPE_IPMI_INTERFACE); BusState *childbus; if (obj) { IPMIInterface *ii; IPMIInterfaceClass *iic; IPMIFwInfo info; ii = IPMI_INTERFACE(obj); iic = IPMI_INTERFACE_GET_CLASS(obj); memset(&info, 0, sizeof(info)); iic->get_fwinfo(ii, &info); smbios_build_one_type_38(&info); continue; } QLIST_FOREACH(childbus, &dev->child_bus, sibling) { smbios_add_ipmi_devices(childbus); } } } void smbios_build_type_38_table(void) { BusState *bus; bus = sysbus_get_default(); if (bus) { smbios_add_ipmi_devices(bus); } }
Japanese sign language classification based on gathered images and neural networks There are lots of techniques to classify the SL for hand-shape feature extraction, hand and/or finger motion feature extraction, and SL word classification. In the hand-shape feature extraction, Jeballi et al. classified French SL using HMM, Ranga et al. classified American SL using Gobor filter with wavelet transform and CNN, and Tao et al. classified the American SL alphabet using CNN. In the hand and/or finger motion feature extraction, Silanon classified Thai fingerspelling using histograms of the orientation gradient feature and Phitakwinai et al. classified Thai SL using scale-invariant feature transform. In the SL word classification, Pariwat et al. classified Thai SL using SVM. Pigou et al. classified the hand gestures of SL using CNN, Molchanov et al. classified hand gestures using 3D CNN, Mukai et al. classified JSL using SVM, and Takayama and Takashi classified JSL using an improved HMM. It requires a specific size of input data for machine learning technique. Introduction Sign language (SL) is one of the communication tools for humans. In communication between humans and computers, it is important to develop the communication tool and to make SL recognition techniques. SL includes fingerspelling and a hand gesture. In the hand gesture, there are a finger alphabet and a hand motion. There are lots of techniques to classify the SL for hand-shape feature extraction, hand and/or finger motion feature extraction, and SL word classification -. In the hand-shape feature extraction, Jeballi et al. classified French SL using HMM, Ranga et al. classified American SL using Gobor filter with wavelet transform and CNN, and Tao et al. classified the American SL alphabet using CNN. In the hand and/or finger motion feature extraction, Silanon classified Thai fingerspelling using histograms of the orientation gradient feature and Phitakwinai et al. classified Thai SL using scale-invariant feature transform. In the SL word classification, Pariwat et al. classified Thai SL using SVM. Pigou et al. classified the hand gestures of SL using CNN, Molchanov et al. classified hand gestures using 3D CNN, Mukai et al. classified JSL using SVM, and Takayama and Takashi classified JSL using an improved HMM. It requires a specific size of input data for machine learning technique. It is not easy to specify the size because they are differences of SL speed on each human and length of word of SL. Furthermore, Rao et al. classified SL using CNN and used a dataset wherein the sample size was maintained constant. If it is possible to gather information on word of SL, it is no need to specify the size and possible to develop the method to classify SL words without depend on language speed and length of word. Method The proposed method consists of grayscale transformation, mean image creation, gathered image generation, and JSL word classification. Flowchart of JSL words classification method is shown in Fig. 1. Each step is detailed in the following sections. Fig. 2 shows a grayscale transformation. In this preprocessing stage, grayscale images are created by transforming on all images after the video is converted to still images, as follows = 0.299 * + 0.587 * + 0.114 *    Grayscale Transformation for Preprocessing where Gray is grayscale value of each pixel. B, G, and R are the blue-, green-, and red-scale values, respectively. Mean Image Creation A mean image is created by calculating the average value on each block divided into N M pixels as follows: where Mean, GrayImage, x, y, i, and NumImage indicate the mean image, grayscale image, x-coordinate of a block in an image, y-coordinate of a block in an image, image number, and total sample images of a JSL word. Fig. 3 shows the creation of a mean image. The created mean image expresses information concerning the hand motion of a JSL word because the gray value of the hand motion information is thin. Fig. 3. Mean image creation. Gathered image generation In gathered image generation, the difference values of the blocks in an image between the mean image and all images of a JSL word are calculated. Then, the winner blocks that have the maximum difference values are decided. The gathered image consists of the winner blocks, i.e., those that have the calculated maximum difference values. In Fig. 4, MeanImage, GrayImage, maximum, and max_num indicate the created mean image, the grayscale image, the maximum difference value between the created mean image, and the total number of grayscale images in each block, respectively. 5 shows the gathered image generation based on computing the maximum value of difference from the mean image. The generated gathered image highlights the hand motion information of a JSL word due to the embedding of the gray value of the block that has the maximum difference value from the created mean image. Japanese sign language classification It is not easy to extract the features of the generated gathered image because the generated gathered image is complex. CNNs are therefore used for extracting the features of the generated gathered images. The convolutional layers have L L filters. The information in the generated gathered image is compressed using the pooling layer. Then, a dropout function (dropout ratio: Q%) is applied to protect against overtraining. The CNN structure is shown in Fig. 6. Finally, the JSL words are classified using the MSVM and MLP classifiers, respectively. Fig. 7 shows the structure of the MSVM and MLP. The accuracy rate for classifying JSL words is expressed as follows. where Accuracy, CorrectClassification and TotalNum represent the accuracy rate for JSL word classification, the number of correctly classified data, and the total number of gathered images. Results and Discussion We conducted experiments using actual JSL videos. The total number of subjects was 11 healthy persons (3 females and 8 males; mean age = 24.7 years). The number of JSL words was 20 related to greeting and enquiries using JSL during general communication in an information center and/or office. A total of 13,200 images were generated (the numbers of subjects, words and generated gathered images were 11, 20 and 60). The number of classes was 20 (20 JSL words). Some common phrases used by the participants were "excuse me," "I see," "I'm not sure," "where," "when," "please," and "thanks." In JSL, "excuse me" consisted of "talk," "not care," and "could you." "I see," "I'm not sure (not sure)," "when," "please," and "thanks" were single word. "Where" is expressed using two words: "place" and "what." Additionally, some selected greetings consisted of "morning," "afternoon," or "night" with "greeting." The place words used in this experiment were "athenaeum," "hospital," and "information," (a single word). The selected verbs were "go," "say," and "hope," (a single word). C/C++ codes were employed to implement the grayscale transformation, mean image creation, gathered image generation. MATLAB toolbox was used to extract the features using the CNNs and JSL classification using the MSVM and MLP. The gathered image consisted of 108 192 pixels. The size of blocks was 6 (N) and 6 (M), respectively. The size of filters of the first to third hidden layers were six, three and three, respectively. The total numbers of first to third convolutional layers were 64, 64 and 192, respectively. The pooling layer employed the max pooling algorithm. The number of units for the full-connection layer was 1,000. The dropout rate Q was 50. The hidden layer of the MLP had 1,000 units. Training data sets were selected 80% of the datasets randomly. Table 1 shows the mean and standard deviation of the sample number of each Japanese sign for each subject. SubA to SubK in Table 1 represent subjects A to K, respectively. We confirmed that the mean numbers of the sample images were different for each JSL word, and for each subject and that the mean numbers of the sample images were considerably variable. The maximum and minimum means of the sample images were 92.9 for "athenaeum" in the case of subject C and 18.0 for "place" in the case of subject H. In addition, the maximum and minimum standard deviations of the sample images were 19.0 for "go" in the case of subject H and 1.9 for "could you" in the case of subject I. Table 2 shows the recognition accuracy (mean and standard deviation) for 20 JSL words classification., the mean image creation method, and the method of embedding information of the block having the maximum value of difference between the mean image and the grayscale images for the gathered image creation, respectively. In the previous method, the difference values of all blocks between target image and the previous image, and next image, respectively. Information of target image and the block having the maximum value of difference. The information on each block having the maximum value was embedded in all blocks in an image (Fig. 8). This previous method has often been employed to analyze security footage with residual images that express human movements, to visualize sleep conditions (e.g., sound sleep and bad sleep), and to classify 10 JSL words. T indicates the trail number. We confirmed that the maximum mean of the recognition accuracy was 94.1% using the proposed method and the MSVM classifier and that the minimum standard deviation was 1.6%. The mean and the standard deviation of the recognition accuracy using the previous method were 64.3% and 3.9%, respectively, and the mean and standard deviation using mean image creation were 89.3% and 2.9%, respectively. Fig. 9 to Fig. 11 show the generated gathered images for each JSL word for each subject using the previous method, mean image creation, and the proposed method, respectively. In the previous method, the maximum difference for each block was calculated. The information of each block having the maximum difference was embedded in an image to generate the gathered image. The gathered image expresses the most significant action in the hand motion of a JSL word because the gathered image comprises the block information that had maximum difference. "Place" in JSL is a downward motion from the top with the dominant hand open. The significant action of "place" is a downward motion with the dominant hand open. "Afternoon" in JSL is a motion in front of the face with the forefinger and middle finger of the dominant hand. The significant action of "afternoon" is in front of the face with the forefinger and middle finger up. "Greeting" in JSL is expressed by the action of bending the forefingers of both hands in front of one's face. The significant action of "greeting" involves bending the forefingers of both hands in front of one's face. "Could you" in JSL is expressed through a motion that shows the palm of the hand to the person one is conversing with from the state of showing the back of the dominant hand. The significant action for this sign is showing the palm of the dominant hand. "Go" in JSL is a motion where the forefinger of the dominant hand moves from the bottom to the front. The significant action for this sign is moving the forefinger of the dominant International Journal of Advances in Intelligent Informatics ISSN 2442-6571 Vol. 5, No. 3, November 2019, pp. 243-255 hand forward. We confirmed this in Fig. 8 and Fig. 9(b). "Athenaeum" in JSL is a motion that opens the hands from the state of pressing the hands together and then forms a square with both hands. The significant actions of "athenaeum" are opening the hands and making a square. It was difficult to find the opening hands motion in the gathered image. The mean and standard deviation of the previous method were 65% or less and 3.5% or more, as shown in Table 2. These results suggest that the gathered information in the gathered image becomes insufficient when the JSL word includes complex hand motions, as in the case of "athenaeum," and that the recognition accuracy is not high when using the previous method. In mean image creation, the gathered image expressed information of the hand motion of a JSL word even though the gray value of the hand motion information deteriorated. The hand motions of "afternoon," "greeting," "could you," and "go" are shown in Fig. 10(b). A part of the hand motions of "athenaeum" is shown in Fig. 10(b). The gray value of the area related to the hand motion was too thin because the number of sample images was too high. We confirmed that the mean and standard deviations were 85% or more and 3% or less, respectively. From these results, it is difficult to extract features using CNNs when the number of sample images is too large and that it is easy to classify the JSL words when 251 Vol. 5, No. 3, November 2019, pp. 243-255 the number of sample images is small because the created mean image has gathered enough hand motion information. In the proposed method, the gathered image highlighted the hand motion information of the JSL word because the embedded gray value of the blocks contained the maximum difference value from the created mean image. The hand motions of "afternoon," "athenaeum," "greeting," "could you," and "go" are shown in Fig. 11(b). Here, the proposed method is compared to the mean image creation method. Fig. 12 shows samples ("place") of mean images and gathered images using the proposed method. Even though hand motion information can be found in the mean image, the gray values of the areas related to the hand motion were thin. We confirmed that the thin information was highlighted and that the mean and standard deviation were 94% or more and 1.8% or less, respectively (excellent results). These results suggest that it is easy to extract the features of JSL words and classify these words by highlighting the gray values of the areas related to the hand motion in the mean image. In addition, the proposed method had a beneficial effect on extracting the features related to the JSL words and classifying the JSL words. Then, the proposed method employed CNNs (Fig. 6) and the SVM (Fig. 7), obtaining experimental results with high recognition accuracy. These results suggest that the combination of CNNs and the SVM effectively extracts features from complex images and classifies hand motions. Conclusion To solve the issues that language speed during the JSL word motions and length of word were different and that the size of input data for CNNs was specified, this paper employed the gathered image generation technique to make the gathered image to classify JSL words without dependence on language speed and length of word. It was not easy to extract the features to classify the JSL words because the generated gathered image was complex images. The CNNs were employed to features because the CNNs could obtain the features from complex image. This paper proposed the novel approach to classify JSL words. The proposed method consisted of grayscale transformation, mean image creation, gathered image generation, and JSL word classification. In the grayscale transformation, input data were transformed via preprocessing. In the mean image creation, information related to the hand motions of JSL words was gathered. Information related to the hand motions of JSL words was highlighted in the gathered image generation. Then, the CNNs were employed for extracting features of the gathered images. Moreover, the MSVM and the MLP were employed for classifying the 20 JSL words. In the experimental results, we confirmed that the thin information was highlighted and that the mean and standard deviation were 94% or more and 1.8% or less, respectively. The experimental results suggest that it is easy to extract the features of JSL words and classify these words by highlighting the gray values of the areas related to the hand motion in the mean image. In addition, the proposed method had a beneficial effect on extracting the features related to the JSL words and classifying the JSL words. Then, the proposed method employed CNNs and the MSVM, obtaining experimental results with high recognition accuracy. These results suggest that the combination of CNNs and the SVM effectively extracts features from complex images and classifies hand motions. However, the gathered image of the proposed method contains no time-series information of the hand motions. Therefore, we will create the novel gathered image considering the time-series information to improve the classification accuracy.
(1) Field of the Invention The present invention relates to the fabrication methods used for semiconductor devices, and more specifically to an optimized process for creating the interconnecting contact stud, between the active device region and the overlying metallization. (2) Description of Prior Art The trend in the semiconductor industry has been to manufacture silicon chips, featuring increasing device density and performance, while still however reducing, or maintaining costs. This has been accomplished by the ability of the semiconductor industry to continually reduce the size of device features, thus enabling greater densities to be achieved. The decreasing device dimensions have also benefitted performance objectives, in terms of allowing reduced capacitances and resistances to be realized. The ability of the semiconductor industry to reduce critical device dimensions, to the sub-micron range, has largely been attributed to advances in several key semiconductor fabrication disciplines. For example achievements in photolithography, via the use of more sophisticated exposure cameras, as well as the development of more sensitive photoresist materials, have allowed micro-miniaturazation to proceed. In addition the rapid development of anisotropic dry etching procedures have allowed the sub-micron images, in masking photoresist, to be successfully transferred to underlying materials used in silicon chip fabrication processes. Other semiconductor fabrication disciplines, such as ion implantation as well as low pressure chemical vapor deposition, (LPCVD), have also been major contributors to the attainment of micro-miniaturazation. Although these now achievable smaller devices can easily be manufactured, directly reducing cost and improving performance, specific vulnerabilities, in terms of reliability can exist. For example, contact studs, used to interconnect specific silicon device regions to overlying metallizations, can now be formed with diameters in the range of 0.25 to 0.50 micrometers. This reduction in the dimension of a critical device feature, although offering denisty improvements, also can create reliability concerns. For example if an aluminum based metallurgy were used for filling the narrow diameter contacts, the current density in the aluminum filled hole may exceed the capabilities of this material and lead to electromigration failures. In addition the solubility of silicon in aluminum, can lead to deletrious penetration failures, during subsequent processing heat treatments. A material that can be used to successfully fill these small contact holes, without reliability, or penetration risks, is polysilicon. The current carrying capability of this material, and the ability to reduce the resistance of polysilicon, via conventional doping techniques, suggest this materitel as a excellent candidate for filling narrow contact holes. The problem the industry has been attempting to overcome, when using polysilicon contacts, is the ability to remove the unwanted material from areas other then the contact hole region. For example Bersom, et al, in U.S. Pat. No. 5,196,373, and Nakamo, et al, in U.S. Pat. No. 5,183,781, describe polysilicon contact processes, however without showing exact details needed to execute the fabrication of this structure. In addition Boyd, et al, in U.S. Pat. No. 5,316,998, show a polysilicon contact process using a chemical mechanical polishing procedure, used to remove the unwanted residual material. However this process, in addition to being complex, also can add significant cost to the process. This invention will describe a novel process, used to create a polysilicon contact, to a silicon device region, which is easy to implement, and without exhibiting significant process complexity or cost increases.
NEW YORK, N.Y. -- Bernie Sanders says the aim of his political revolution is to bring more people into the political process than President Barack Obama, arguing that he can close a presidential leadership gap that’s persisted over the eight years of the Obama administration. “There’s a huge gap right now between Congress and the American people. What presidential leadership is about closing that gap,” he told MSNBC in an interview Wednesday that will air in full Thursday evening on “The Last Word with Lawrence O’Donnell.” Asked if he believed President Obama had closed that gap, Sanders said: “No, I don’t. I mean, I think he has made the effort. But I think what we need, when I talk about a political revolution, is bringing millions and millions of people into the political process in a way that does not exist right now." Sanders said his strategy for pushing through an ambitious agenda that includes single payer health care and free college tuition would involve mobilizing thousands of people who don’t currently participate in the political process — though he did acknowledge that the president turned out more voters, particularly minorities, than ever before. His remarks come as the Democratic primary turns toward more diverse states like Nevada, with a large Latino population, and particularly South Carolina, where black voters are a majority of the primary electorate. Hillary Clinton has criticized Sanders in the past for being critical of the nation’s first African American president. Sanders "criticized President Obama for taking donations from Wall Street. Sen. Sanders called [Obama] weak, disappointing. He even in 2011 publicly sought someone to run in a primary against President Obama,” Clinton told an audience in Charleston, S.C., earlier this month.
import { Component, OnInit } from '@angular/core'; import { Router, ActivatedRoute, Params } from '@angular/router'; import { Location } from '@angular/common'; //import { SMSBlocked } from '../datatypes/sms'; import { ReportService } from '../report.service'; import * as moment from 'moment'; import 'rxjs/add/operator/switchMap'; @Component({ selector: 'app-report-sms-blocked', templateUrl: './report-sms-blocked.component.html', styleUrls: [ '../../assets/css/members.css', './report-sms-blocked.component.css' ] }) export class ReportSmsBlockedComponent implements OnInit { report: {}; visitorid: {}; public thedate: string = moment().format('YYYY-MM-DD'); thedateChange(newValue) { this.thedate = newValue; this.getSMSBlocked(); } constructor( private router: Router, private reportService: ReportService, private route: ActivatedRoute, private location: Location, ) { } getSMSBlocked(): void { this.reportService.getSMSBlocked(this.visitorid, this.thedate) .subscribe( data => this.report = JSON.parse(data.RequestResult), error => console.log(error), () => { //console.log('Responses Loaded'); //console.log(this.report); }); } setVisitorId(newVisitorID): any { this.visitorid = newVisitorID; return this.visitorid; } ngOnInit(): void { this.route.parent.params.switchMap((params: Params) => this.setVisitorId(params['visitorid'])) .subscribe(data => { }); //console.log(this.route.firstChild.params); this.getSMSBlocked(); } }
Hitherto, there is an air-conditioning apparatus which makes an evaporating temperature and a condensing temperature, which are control target temperatures in a refrigeration cycle, variable in accordance with a load (see Patent Literature 1). The air-conditioning apparatus performs an operation with a low compression ratio at the time of low load by making an evaporating temperature and a condensing temperature, which are control target temperatures, to be variable values in accordance with an air-conditioning load estimated based on an operation mode and the difference between a set temperature and a suction temperature, thereby reducing power consumption. In addition, because of a multi-type, a plurality of indoor units operate under respective load conditions at the same time, and the method is a method in which a condensing temperature and an evaporating temperature of refrigerant are controlled to constant values, not a method in which a blowout temperature of refrigerant is controlled for individual indoor units. In this method, the difference between the suction temperature and the set temperature is monitored. When “suction temperature−set temperature” becomes equal to or less than a predetermined value, it is determined that the air-conditioning load is low. If the operation is a cooling operation, by increasing the evaporating temperature which is a control target, it is possible to decrease the frequency of a compressor to reduce power consumption. In addition, if the operation is a heating operation, by decreasing the condensing temperature which is a control target, it is possible to decrease the frequency to reduce power consumption.
Empirical mode decomposition for respiratory and heart rate estimation from the photoplethysmogram We introduce a method based on empirical mode decomposition (EMD) to estimate both respiratory rate (RR) and heart rate (HR) from the photoplethysmographic (PPG) signal obtained from pulse oximetry. The spectral analysis of the EMD applied to the PPG signal was used to extract two signals, the respiratory and cardiac modulations respectively. On these modulated signals, an additional spectral analysis was applied to calculate their frequency peaks. To improve spectral resolution a parametric power spectral analysis based on autoregressive modelling was selected. The frequency peak found in the respiratory and cardiac signals reflects RR and HR, respectively. The PPG signals were analysed using a 1-min sliding window with 50% overlap. The RR and HR estimation accuracy was assessed using the unnormalized root mean square (RMS) error. Median errors (quartiles) were calculated to account for the non-normal RMS distribution. The test dataset consisted of 8-min PPG and capnometric signals from 29 paediatric and 13 adults cases (42 subjects in total) containing reliable recordings of either spontaneous or controlled breathing. A research assistant manually labelled the signals. The reference RR (from capnogram) and HR (from PPG) were manually extracted. The median RMS error (quartiles) obtained for RR was 3.5 (1.1, 11) breaths/min and for HR was 0.35 (0.2, 0.59) beats/min. Therefore, the spectral analysis of the respiratory and cardiac signals extracted through EMD, introduces a useful method to estimate and monitor RR and HR simultaneously from the PPG signal obtained from pulse oximetry.
Positioning Political Parties: The 2005 UK General Election After identifying the paucity of positioning research relating to political marketing the construct is defined and practical examples of its application in politics provided. The analysis of the 2005 election starts by considering the long term framing of political issues and concludes that this, overall, provided Labour with a competitive advantage. Next the positioning dilemmas facing the three national parties in British politics at the start of the campaign are highlighted. Using a basic positioning model, the positioning strategies followed during the campaign itself are then discussed, both in terms of policies and image/emotional positioning approaches. The attempts by the opposition parties to reposition Labour and the latter's defensive reactions are discussed at this point. Then, the way the wider positioning of the parties was targeted at electoral segments is considered. The paper concludes with an attempt to explain the election result in terms of the relative success or failure of the positioning strategies adopted.
EXTREMUM PROBLEM IN CONVOLUTIONS WITH ADDITIONAL CONDITIONS ON THE AXIS : The research paper deals with a partially overspecified problem with a Noetherian operator in a complex Hilbert space. On the basis of the performed analysis, it was found that the solution of the extremum problem in convolutions in a complex Hilbert space with an additional condition on the axis is urgent, since no complete solution has been provided so far. In this connection, the necessary and sufficient conditions for the solvability of the posed extremum problem are determined, which are obtained by the factorization method and are formulated in terms of the basis of the kernel of the adjoint operator. As a result, it is illustrated as the example that the Wiener-Hopf equation with the sought and given space functions is solvable at an arbitrar-ily positive interval. In case of a negative operator index, the determination problem is solvable in quadratures and has a unique solution. As a result of formulation and solution of an extremum problem in convolutions with an additional condition on the axis, within the scope of complex Hilbert spaces, its solution is obtained in solvable in quadratures. Introduction The research objective is to formulate and solve an extremum problem in convolutions with an additional condition on the axis. The research topicality is determined by the fact that there is no solution to the extremum problem in convolutions with an additional condition on the axis within the scope of complex Hilbert spaces. The reason for the study is the lack of solutions to the extremum problem within the scope of complex Hilbert spaces in contractions with an additional condition on the axis. The scientific value of the study is the formulation of the extremum problem in convolutions with an additional condition on the axis, within the scope of complex Hilbert spaces and its solution obtained for the first time. Necessary and sufficient conditions for its solvability are obtained by the factorization method and formulated in terms of the basis of the kernel of the adjoint operator. As a result of the formulation of the extremum problem in convolutions with an additional condition on the axis, within the scope of complex Hilbert spaces we obtain its solution, which will open up the opportunity for its use in an unlimited range. Theoretical background In, for general curves of twistor spaces, it was shown that the Hilbert scheme of real cohomologically stable curves of a fixed genus and degree P 3 that do not intersect a fixed real line carries a natural pseudo-hyperkhler structure. When the real line is removed from P 3, the result is unsatisfactory; therefore, in the results are given for the case of describing the differential geometry of real and stable projective spatial curves with a fixed genus and degree. It also indicates the possibility of opening subsets with non-trivial geometry only for a very limited range. In, finite-dimensional subsets of any separable Hilbert space described, for which the concept of C-hypercyclicity coincides with the concept of hypercyclicity, where the operator of the set T, which has a dense distribution in a topological vector space X, is hypercyclic. If we consider a linear mapping within the scope of Hilbert spaces, its pattern space will form the natural reproducing core of the Hilbert space, which is a functional space. For any positively definite quadratic function K(p, q) on the set E, there is a uniquely defined reproducing kernel of a Hilbert space admitting the kernel K(p, q). In, the relations generated between positively definite functions of a quadratic form are considered. The problems caused by the constraint, sum and product of positively definite functions of a quadratic form are also considered. Really reproducing kernels are used as input physical data and observations of outputs and calculate the reciprocal values of linear systems. From this relation, we see that the square of the Szeg kernel is an analytic differential, it extends to a double according to Danalite, which is a closed Riemann surface, as in the Bergman kernel. In this sense, the Szeg kernel is a half-differential on a closed Riemann surface, therefore its properties are very important for many-valuedness on a closed Riemann surface. The properties of Szeg kernels consist in the existence of a half differential on a closed Riemann surface. In this case, Szeg kernels are Cauchy-type kernels on a Riemann surface, which is important for the reproducing kernel. In this section, we present some general applications of the general theory of reproducing kernels in Section 3, : Integral Transformations (). Using the basic theorems of reproducing kernels, many particular results can be obtained: for typical integral transformations, with the formulation and solution of inverse problems, integral transformations for some smooth functions, identification of nonlinear transformations on Hilbert spaces and much more. In, stationary properties were studied under optimal control in Hilbert spaces, which are mainly due to the hyperbolic property of the Hamiltonian system, which follows from the Pontryagin's maximum principle. It was shown that for a long time the optimal state, the control and the adjoint vector remain close to the optimally robust most of the time. The results were obtained on the basis of a dichotomous transformation, which is based on solutions of the algebraic equations of Riccati and Lyapunov. Studies using the Wiener-Hopf equation are given in, which are the starting points for this work. At the same time, the possibility of establishing a connection between the integral equation theory and the calculus of variations with the variational derivative of a quadratic functional is noted. The Lagrange multiplier method is applied in physics, economics, mathematics, mechanics, engineering, etc.. In economics and technology, there are many problems that require optimization of a certain volume of data under certain constraints, and therefore the Lagrange multiplier method is applied. The Lagrange multiplier method will also be applied in this paper. Summing up, it can be argued that the solution of the extremum problem in convolutions in a Hilbert space with an additional condition on the axis is topical, since the complete solution has not yet been provided. Results and discussion Let a complex Hilbert space be represented as the orthogonal sum of two halfspaces: H = H + ⊕ H − ; P ± -orthogonal projectors operating from H in H ±. In case when, for a given element g ∈ H and for a given linear operator is unsolvable, we can consider the problem of determining u ∈ H by conditions, or -an extremum problem of a more general form:, where f is the element given in H, A and B are bounded linear operators acting from H in H. Necessary and sufficient conditions for the solvability of these extremum problems are formulated in. In the particular case considered below for the problem,, we apply the factorization method and these conditions take on a simpler form. for any h ∈ H and some > 0, and the operator K ∈ L(H) is Noetherian, the satisfaction of the following condition is necessary and sufficient for the solvability of the problem, : where 1,..., m -kernel basis of the operator K *. The solution of the problem is not unique and contains dim KerK of arbitrary complex constants. Proof. Let us denote through M ⊂ H − the set of all elements w − ∈ M for which the problem of finding u ∈ H is solvable by the conditions Due to the Noetherian property of the operator K w − ∈ M ⇔ ( j, w − ) = − ( j, P + g), j = 1,..., m. Without loss of generality, we assume that the elements j− = P − j, j = 1,..., n; n ≤ m are linearly independent. Indeed, if we assume, for example, that the element 1− is a linear combination of the others, the first condition follows from the remaining conditions or contradicts them. In the first case, it can be excluded from, and in the second -the conditions are incompatible. Let us assume that the condition is not satisfied. Then the conditions are incompatible and the extremum problems, and, are unsolvable. If the condition is satisfied, we show that the extremum problem, has a unique solution −. This will mean that the original problem, is equivalent to equation for w − = −. The solution of the equation (and hence the problem, ) is not unique and contains dim KerK of arbitrary complex constants. Proof. Let us solve the extremum problem, under the assumption that the elements 1−,..., n− are linearly independent. The method of Lagrange multipliers (see, for example, ) leads to the equation with the sought elements w ± ∈ H ± and unknown Lagrange multipliers 1,..., n. Let us denote through and represent the operator D as where X −1 + = X * −. The introduced operators X +, X − ∈ L (H) one-to-one reflect half-spaces H + and H −, respectively (such a decomposition of a positively definite operator was also used in ). From we find Substituting into, we arrive at a linear system of algebraic equations n j=1 j (P − X + l−, P − X + j− ) = (X + l−, P − X + h) + + ( l, P + g), l = 1,..., n to determine the Lagrange multipliers. Let us note that the main determinant of this system is the Gram determinant, composed of elements P − X + j−, j = 1,..., n. We prove the linear independence of these elements from the contrary. Let us assume that not all zero complex numbers j are such that n j=1 j P − X + j− = 0. Hence, n j=1 j P − X −1 For any h ∈ H we will have, a linear dependence of the elements 1−,..., n− follows from, which contradicts our assumption. Thus, the system of equations has a unique solution 1,..., n, since its determinant is the Gram determinant, composed of linearly independent elements. Formula for j = j gives a unique solution − to the extremum problem,. We will find all solutions to the original problem, by solving equation for w − = −. The theorem is proved. Example 1. Find the function u(x) ∈ L 2 (0, ∞) by the conditions All other values are given: -a set of positive measure given on the right semiaxis R + = [0, ∞); g ∈ L 2 (R + ) ; the generalized function k(x) has a continuous, bounded and non-zero Fourier transform on the closed axis the weight function (x) is bounded above and below by positive constants. Let us note that the operator W is Noetherian, its index is (see, for example ). For ≥ 0, the Wiener-Hopf equation is solvable; if > 0, the solution is not unique and is expressed through of arbitrary complex constants. For < 0 the last (11') equation is solvable if and only if its right side is orthogonal to the basis of the kernel of the operator W * : Here, the inverse Fourier transform operator is denoted through F −1, If the equation (11') is solvable, the extremum problem, becomes trivial and equivalent to this equation. If the equation is unsolvable, it follows from Theorem 1 for Theorem 2. Let the characteristic function of the set be (x). If the system of functions is linearly independent, the extremum problem, is solvable. The only solution to the problem can be found from the Wiener-Hopf equation the coefficients j, j = 1,..., || are uniquely determined from the system of equations Let us give an example showing that the condition of Theorem 2 is essential, although the system of functions is linearly independent. Let the following be Hence, and, therefore, system is linearly dependent for any ⊂ [1, ∞). In conclusion, let us indicate two particular cases, where the condition of Theorem 2 is certainly satisfied. is a rational function, the system of functions is linearly independent on any set ⊂ R + (mes > 0). Proof. Suppose that for some A j ∈ C, j = 1,..., ||, the following equality is the case: Let us take advantage of the fact that X − (x) is a rational function analytically continuing to the upper half-plane, the degrees of the polynomials of its numerator and denominator are equal. Representing the right rational function in the form of a sum of simple fractions and using the well-known Fourier transform formulas from we obtain where k -pairwise unequal positive numbers, P k (x) -some polynomials k = 1,..., m. Since is a set of positive measure, It follows that c 1 =... = c || = 0. We proved that equality is satisfied only under condition, which was to be proved. Proof. Let us assume the contrary that there are not all zero complex numbers c 1,..., c || such that where (x) ∈ L 2 (R), sup p(x) ⊂ [, ∞). Let us divide the Fourier transform of equation divided by X − (x). Returning to the original, we obtain where is a generalized function, sup pr(x) ⊂ R +. It follows from, that is c 1 =... = c || = 0, and this contradicts our assumption. The lemma is proved. We note as a consequence that if = , the extremum problem, has a unique solution and is solvable in quadratures for any > 0. The statement is also true for = ∞. An analysis of the problem in this case is given in. Conclusions In this work, a partially overspecified problem with a Noetherian operator in a complex Hilbert space is posed and solved. Necessary and sufficient conditions for its solvability are obtained by the factorization method and formulated in terms of the basis of the kernel of the adjoint operator. As a result, it can be shown as the example that the Wiener-Hopf equation with the sought u and given g functions of the space L 2 (0, ∞), k ∈ L (−∞, ∞) is solvable for arbitrary > 0. In case of a negative index of the operator K, the problem of determination of u is solvable in quadratures and has a unique solution. As a result of the formulation and solution of the extremum problem in convolutions with an additional condition on the axis, within the scope of complex Hilbert spaces, its solution is obtained in an unlimited range.
/** * Indicates whether this user can issue all of the user authority groups in * the given collection. * * @param groups the collection of user authority groups. * @param canGrantOwnUserRole indicates whether this users can grant its own * authority groups to others. */ public boolean canIssueUserRoles( Collection<UserRole> groups, boolean canGrantOwnUserRole ) { for ( UserRole group : groups ) { if ( !canIssueUserRole( group, canGrantOwnUserRole ) ) { return false; } } return true; }
/** * Retrieves the complete list of Providers available on the Directory * service. * * @param isS2G If true, then the method will only request for SPP * connections. * @param directoryURI The Directory service URI * @param authenticationId * @param localNamePrefix * @return The list of providers * @throws org.ccsds.moims.mo.mal.MALException if there is a MAL exception. * @throws java.net.MalformedURLException if the URI is incorrect. * @throws org.ccsds.moims.mo.mal.MALInteractionException if it could not * reach the Directory service. */ public static final ProviderSummaryList retrieveProvidersFromDirectory(final boolean isS2G, final URI directoryURI, final Blob authenticationId, final String localNamePrefix) throws MALException, MalformedURLException, MALInteractionException { if (MALContextFactory.lookupArea(CommonHelper.COMMON_AREA_NAME, CommonHelper.COMMON_AREA_VERSION) == null) { CommonHelper.deepInit(MALContextFactory.getElementFactoryRegistry()); } try { HelperMisc.loadConsumerProperties(); } catch (MalformedURLException ex) { Logger.getLogger(NMFConsumer.class.getName()).log(Level.SEVERE, null, ex); } catch (IOException ex) { } DirectoryConsumerServiceImpl directoryService = new DirectoryConsumerServiceImpl(directoryURI, authenticationId, localNamePrefix); IdentifierList wildcardList = new IdentifierList(); wildcardList.add(new Identifier("*")); ServiceFilter filter = new ServiceFilter(); filter.setDomain(wildcardList); filter.setNetwork(new Identifier("*")); filter.setSessionType(null); if (isS2G) { filter.setSessionName(new Identifier(DirectoryProviderServiceImpl.CHAR_S2G)); } else { filter.setSessionName(new Identifier("*")); } filter.setServiceKey(new ServiceKey(new UShort((short) 0), new UShort((short) 0), new UOctet((short) 0))); filter.setRequiredCapabilities(new UIntegerList()); filter.setServiceProviderName(new Identifier("*")); ProviderSummaryList summaryList; try { summaryList = directoryService.getDirectoryStub().lookupProvider(filter); } catch (MALException | MALInteractionException e) { directoryService.close(); throw e; } return summaryList; }
<filename>pulsar/internal/service_uri_test.go // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use this file except in compliance // with the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. package internal import ( "testing" "github.com/stretchr/testify/assert" ) func TestInvalidServiceUris(t *testing.T) { uris := []string{ "://localhost:6650", // missing scheme "pulsar:///", // missing authority "pulsar://localhost:6650:6651/", // invalid hostname pair "pulsar://localhost:xyz/", // invalid port "pulsar://localhost:-6650/", // negative port "pulsar://fecfdf8:f53e:61e4::18:6650", // missing brackets } for _, uri := range uris { testInvalidServiceURI(t, uri) } } func TestEmptyServiceUriString(t *testing.T) { u, err := NewPulsarServiceURIFromURIString("") assert.Nil(t, u) assert.NotNil(t, err) } func TestNullServiceUrlInstance(t *testing.T) { u, err := NewPulsarServiceURIFromURL(nil) assert.Nil(t, u) assert.NotNil(t, err) } func TestMissingServiceName(t *testing.T) { serviceURI := "//localhost:6650/path/to/namespace" assertServiceURI(t, serviceURI, "", nil, []string{"localhost:6650"}, "/path/to/namespace", "") } func TestEmptyPath(t *testing.T) { serviceURI := "pulsar://localhost:6650" assertServiceURI(t, serviceURI, "pulsar", nil, []string{"localhost:6650"}, "", "") } func TestRootPath(t *testing.T) { serviceURI := "pulsar://localhost:6650/" assertServiceURI(t, serviceURI, "pulsar", nil, []string{"localhost:6650"}, "/", "") } func TestUserInfo(t *testing.T) { serviceURI := "pulsar://pulsaruser@localhost:6650/path/to/namespace" assertServiceURI(t, serviceURI, "pulsar", nil, []string{"localhost:6650"}, "/path/to/namespace", "pulsaruser") } func TestIpv6Uri(t *testing.T) { serviceURI := "pulsar://pulsaruser@[fc00:db20:35b:7399::5]:6650/path/to/namespace" assertServiceURI(t, serviceURI, "pulsar", nil, []string{"[fc00:db20:35b:7399::5]:6650"}, "/path/to/namespace", "pulsaruser") } func TestIpv6UriWithoutPulsarPort(t *testing.T) { serviceURI := "pulsar://[fec0:0:0:ffff::1]/path/to/namespace" assertServiceURI(t, serviceURI, "pulsar", nil, []string{"[fc00:db20:35b:7399::5]:6650"}, "/path/to/namespace", "") } func TestMultiIpv6Uri(t *testing.T) { serviceURI := "pulsar://pulsaruser@[fc00:db20:35b:7399::5]:6650,[fd00:a516:7c1b:17cd:6d81:2137:bd2a:2c5b]:6650;[fc00:db20:35b:7399::5]:6650" + "/path/to/namespace" assertServiceURI(t, serviceURI, "pulsar", nil, []string{"[fc00:db20:35b:7399::5]:6650", "[fd00:a516:7c1b:17cd:6d81:2137:bd2a:2c5b]:6650", "[fc00:db20:35b:7399::5]:6650"}, "/path/to/namespace", "pulsaruser") } func TestMultiIpv6UriWithoutPulsarPort(t *testing.T) { serviceURI := "pulsar://pulsaruser@[fc00:db20:35b:7399::5],[fd00:a516:7c1b:17cd:6d81:2137:bd2a:2c5b];[fc00:db20:35b:7399::5]/path/to/namespace" assertServiceURI(t, serviceURI, "pulsar", nil, []string{"[fc00:db20:35b:7399::5]:6650", "[fd00:a516:7c1b:17cd:6d81:2137:bd2a:2c5b]:6650", "[fc00:db20:35b:7399::5]:6650"}, "/path/to/namespace", "pulsaruser") } func TestMultipleHostsSemiColon(t *testing.T) { serviceURI := "pulsar://host1:6650;host2:6650;host3:6650/path/to/namespace" assertServiceURI(t, serviceURI, "pulsar", nil, []string{"host1:6650", "host2:6650", "host3:6650"}, "/path/to/namespace", "") } func TestMultipleHostsComma(t *testing.T) { serviceURI := "pulsar://host1:6650,host2:6650,host3:6650/path/to/namespace" assertServiceURI(t, serviceURI, "pulsar", nil, []string{"host1:6650", "host2:6650", "host3:6650"}, "/path/to/namespace", "") } func TestMultipleHostsWithoutPulsarPorts(t *testing.T) { serviceURI := "pulsar://host1,host2,host3/path/to/namespace" assertServiceURI(t, serviceURI, "pulsar", nil, []string{"host1:6650", "host2:6650", "host3:6650"}, "/path/to/namespace", "") } func TestMultipleHostsWithoutPulsarTlsPorts(t *testing.T) { serviceURI := "pulsar+ssl://host1,host2,host3/path/to/namespace" assertServiceURI(t, serviceURI, "pulsar", []string{"ssl"}, []string{"host1:6651", "host2:6651", "host3:6651"}, "/path/to/namespace", "") } func TestMultipleHostsWithoutHttpPorts(t *testing.T) { serviceURI := "http://host1,host2,host3/path/to/namespace" assertServiceURI(t, serviceURI, "http", nil, []string{"host1:80", "host2:80", "host3:80"}, "/path/to/namespace", "") } func TestMultipleHostsWithoutHttpsPorts(t *testing.T) { serviceURI := "https://host1,host2,host3/path/to/namespace" assertServiceURI(t, serviceURI, "https", nil, []string{"host1:443", "host2:443", "host3:443"}, "/path/to/namespace", "") } func TestMultipleHostsMixedPorts(t *testing.T) { serviceURI := "pulsar://host1:6640,host2:6650,host3:6660/path/to/namespace" assertServiceURI(t, serviceURI, "pulsar", nil, []string{"host1:6640", "host2:6650", "host3:6660"}, "/path/to/namespace", "") } func TestMultipleHostsMixed(t *testing.T) { serviceURI := "pulsar://host1:6640,host2,host3:6660/path/to/namespace" assertServiceURI(t, serviceURI, "pulsar", nil, []string{"host1:6640", "host2:6650", "host3:6660"}, "/path/to/namespace", "") } func TestUserInfoWithMultipleHosts(t *testing.T) { serviceURI := "pulsar://pulsaruser@host1:6650;host2:6650;host3:6650/path/to/namespace" assertServiceURI(t, serviceURI, "pulsar", nil, []string{"host1:6650", "host2:6650", "host3:6650"}, "/path/to/namespace", "pulsaruser") } func testInvalidServiceURI(t *testing.T, serviceURI string) { u, err := NewPulsarServiceURIFromURIString(serviceURI) t.Logf("testInvalidServiceURI %s", serviceURI) assert.Nil(t, u) assert.NotNil(t, err) } func assertServiceURI(t *testing.T, serviceURI, expectedServiceName string, expectedServiceInfo, expectedServiceHosts []string, expectedServicePath, expectedServiceUser string) { uri, err := NewPulsarServiceURIFromURIString(serviceURI) assert.Nil(t, err) assert.NotNil(t, serviceURI) assert.Equal(t, expectedServiceName, uri.ServiceName) assert.Equal(t, expectedServicePath, uri.servicePath) if expectedServiceUser != "" { assert.Equal(t, expectedServiceUser, uri.URL.User.Username()) } assert.ElementsMatch(t, expectedServiceInfo, uri.ServiceInfos) assert.ElementsMatch(t, expectedServiceHosts, uri.ServiceHosts) }
In Silico Docking of Traditional Chinese Medicine Compounds and Novel Redesigned Ligands to Pseudomonas aeruginosa Quinolone Signaling Proteins PqsA and PqsD Pseudomonas aeruginosa is known to cause a range of nosocomial infections in man. Its growing resistance to antibacterial drugs is achieved by quorum sensing, specifically via the Pseudomonas Quinolone System (PQS). The PQS enzymes PqsA and PqsD were targeted for in silico ligand docking after homology modeling. Ligands with high binding affinity were identified via molecular docking of 6,699 pre-screened molecules from the Traditional Chinese Medicine Systems Pharmacology (TCMSP) database. The top 20 ligands for each target protein were selected based on binding affinity, adherence to Lipinskis Rule of Five, rotatable bond count, and number of hydrophobic and hydrophilic bonds. To further increase the binding affinities, new ligands were designed for each protein by using different combinations of the screened ligands, and modifying them in silico. The top novel ligands with high binding energies for each target protein were selected. MOL006669x011160 is the top ($\Delta G-9.5\mathrm{kcal}/\text{mol}$) redesigned molecule for Pqs A. MOL12761x10194 is the top ($\Delta G-9.6\text{kcal}/\text{mol}$) redesigned molecule for PqsD. These molecules are recommended for further in vitro and in vivo testing for ADMET properties.
package com.edmunds.etm.nitro; public enum NsServiceType { HTTP, FTP, TCP, UDP, SSL, SSL_BRIDGE, SSL_TCP, DTLS, NNTP, DNS, DHCPRA, ANY, SIP_UDP, DNS_TCP, RTSP, PUSH, SSL_PUSH, RADIUS, RDP, MYSQL, MSSQL, DIAMETER, SSL_DIAMETER, TFTP; }
Structure investigation, enrichment analysis and structure-based repurposing of FDA-approved drugs as inhibitors of BET-BRD4 Abstract We report herein detailed structural insights into the ligand recognition modes guiding bromodomain selectivity, enrichment analysis and docking-based database screening for the identification of the FDA-approved drugs that have potential to be the human BRD4 inhibitors. Analysis of multiple X-ray structures prevailed that the lysine-recognition sites are highly conserved, and apparently, the dynamic ZA loop guides the specific ligand-recognition. The proteinligand interaction profiling revealed that both BRD2 and BRD4 shared hydrophobic interaction of bound ligands with PRO-98/PRO-82, PHE-99/PHE-83, LEU-108/LEU-92 and direct H-bonding with ASN-156/ASN-140 (BRD2/BRD4), while on the other hand the water-mediated H-bonding of bound ligands with PRO-82, GLN-85, PRO-86, VAL-87, ASP-88, LEU-92, TYR-97 and MET-132, and aromatic stacking with TRP-81 prevailed as unique interaction in BRD4, and were not observed in BRD2. Subsequently, through ROC curve analysis, the best enrichment was found with PDB-ID 4QZS of BRD4 structures. Finally, through docking-based database screening study, we found that several drugs have better binding affinity than the control candidate lead (+)-JQ1 (Binding affinity=-7.9kcal/mol), a well-known BRD4 inhibitor. Among the top-ranked drugs, azelastine, a selective histamine H1 receptor antagonist, showed the best binding affinity of 9.3kcal/mol and showed interactions with several key residues of the acetyl lysine binding pocket. Azelastine may serve as a promising template for further medicinal chemistry. These insights may serve as basis for structure-based drug design, drug repurposing and the discovery of novel BRD4 inhibitors. Communicated by Ramaswamy H. Sarma
/** * Copyright 2018 Shift Devices AG * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import { Component, h, RenderableProps } from 'preact'; import * as style from './dialog.css'; interface Props { title?: string; small?: boolean; large?: boolean; disableEscape?: boolean; onClose?: (e: Event) => void; } interface State { active: boolean; currentTab: number; } class Dialog extends Component<Props, State> { private modalContent!: HTMLElement; private focusableChildren!: NodeListOf<HTMLElement>; constructor(props: Props) { super(props); this.state = { active: false, currentTab: 0, }; } public componentDidMount() { setTimeout(this.activate, 10); } public componentWillUnmount() { this.deactivate(); } private setModalContent = (element: HTMLElement) => { this.modalContent = element; } private handleFocus = (e: FocusEvent) => { const input = e.target as HTMLElement; const index = input.getAttribute('index'); this.setState({ currentTab: Number(index) }); } private focusWithin = () => { this.focusableChildren = this.modalContent.querySelectorAll('a, button, input, textarea'); const focusables = Array.from(this.focusableChildren); for (const c of focusables) { c.classList.add('tabbable'); c.setAttribute('index', focusables.indexOf(c).toString()); c.addEventListener('focus', this.handleFocus); } document.addEventListener('keydown', this.handleKeyDown); } private focusFirst = () => { const focusables = this.focusableChildren; if (focusables.length) { focusables[0].focus(); } } private updateIndex = (isNext: boolean) => { const target = this.getNextIndex(isNext); this.setState({ currentTab: target }, () => { this.focusableChildren[target].focus(); }); } private getNextIndex(isNext: boolean) { const { currentTab } = this.state; const focusables = Array.from(this.focusableChildren); const arr = isNext ? focusables : focusables.reverse(); const current = isNext ? currentTab : (arr.length - 1) - currentTab; let next = isNext ? currentTab + 1 : arr.length - currentTab; next = arr.findIndex((item, i) => (i >= next && !item.hasAttribute('disabled'))); next = next < 0 ? arr.findIndex((item, i) => (i <= current && !item.hasAttribute('disabled'))) : next; return isNext ? next : (arr.length - 1) - next; } private handleKeyDown = (e: KeyboardEvent) => { const { disableEscape, onClose } = this.props; const isEsc = e.keyCode === 27; const isTab = e.keyCode === 9; if (!disableEscape && isEsc) { if (onClose) { onClose(e); } } else if (isTab) { e.preventDefault(); } if (isTab && e.shiftKey) { this.updateIndex(false); } else if (isTab) { this.updateIndex(true); } } private deactivate = () => { this.setState({ active: false, currentTab: 0, }); document.removeEventListener('keydown', this.handleKeyDown); } private activate = () => { this.setState({ active: true }, () => { this.focusWithin(); this.focusFirst(); }); } public render( { title, small, large, children }: RenderableProps<Props>, { active }: State, ) { const activeClass = active ? style.active : ''; return ( <div class={[style.overlay, activeClass].join(' ')}> <div class={[style.modal, activeClass, small ? style.small : '', large ? style.large : ''].join(' ')}> { title && ( <h3 class={style.modalHeader}>{title}</h3> ) } <div class={[style.modalContent, title ? '' : 'first'].join(' ')} ref={this.setModalContent}> {children} </div> </div> </div> ); } } export { Dialog };
// Test to make sure we could deal with truncated bin hash chunk. TEST(SafeBrowsingProtocolParsingTest, TestTruncatedBinHashChunk) { const char add_chunk[] = "a:1:4:16\n11112222"; SafeBrowsingProtocolParser parser; SBChunkList chunks; bool result = parser.ParseChunk(safe_browsing_util::kBinHashList, add_chunk, static_cast<int>(sizeof(add_chunk)), &chunks); EXPECT_FALSE(result); EXPECT_EQ(chunks.size(), 0U); }
Image: Shutterstock Because Amazon is mostly men, the men's bathrooms were usually crowded. I worked there for four years, in the midst of Amazon's greatest expansion of headcount. Even though the company had just moved to its new office in the South Lake Union area of Seattle, there was barely enough space for everyone. There certainly weren't enough desks. But more pressing, there weren't enough toilets. Even more alarming was the bathroom culture. I can only speak to the men's room, most of which each had two urinals and two stalls. I come from a background where a bathroom is a place where you do a certain kind of business, in silence, and you leave. At Amazon, the men's room is an extension of the office. People chitchat about work in the bathroom, as if it is just another meeting room where you can piss everywhere. The most horrifying moment of my employment at Amazon was the time I was using the toilet and a coworker began talking from the stall next to me. He asked me why I had not responded to his very pressing email. I closed my eyes and pretended this wasn't happening. What email could be so important that it could not wait five minutes for me to use the bathroom? He began tapping on the wall between our stalls, asking why I wouldn't respond, as if inter-stall conversation should be a totally normal, not disgusting means of communication. He became more specific about what he needed—referencing a project I'd never heard of, nor would I ever have involvement in—and I realized he had misidentified me from my shoes. (Many brown dress shoes look alike, apparently.) We both exited our stalls around the same time, and he realized his mistake. He didn't apologize, only explained that he thought I was someone else. As we washed our hands, he just laughed, and I vowed I would never use the stalls on that floor again. I regularly saw people bring their laptops into the bathroom, where they would sit on the toilet and write code From then on, whenever I needed to go to the bathroom, I went to the floors occupied by the rare teams that had more women than men. Amazon Apparel, Amazon Mom, Amazon Baby—these were the places where you had a better shot of getting a free stall in the men's room. If you were really lucky, and your timing was right, you might even get the bathroom to yourself for a moment. It was a relief from the craziness of Amazon's corporate culture. These were the best floors. The worst floors were the ones dominated by engineers. I regularly saw people bring their laptops into the bathroom, where they would sit on the toilet and write code. (I've never seen anyone clean their laptop after leaving the bathroom.) Engineers would talk to each other through stalls. On many occasions, I heard people take phone calls while mid-business. It was hard to tell if someone was groaning because it was difficult to code or difficult to poop. Another Amazon colleague once joked that this gave new meaning to the word "deploy." As with all jobs, you eventually get used to the things that make them difficult. The things that suck eventually become "quirks;" the culture just becomes "the way it is." I had a role that took me to meetings across a number of buildings on campus. Over time, I memorized which teams were on what floors of which building, so I could strategize where I would stop in to use the restroom. One afternoon, I ran into an executive in the elevator. She was the rare person who had been at Amazon for over a decade. I didn't have many friends outside of my own team, but in the few interactions we'd had, she had been encouraging and helpful. I suspected she was the happiest person at Amazon because she knew what to take seriously and what she could let slide. I was heading to the cafeteria, and I asked if she wanted to get lunch. She told me she'd already eaten. She was actually taking the elevator down to the first floor where her favorite bathroom was. Nobody knew about this bathroom, she explained, and she liked it because it was for a single person and it was never occupied. Later that day, I explored the first floor of the building in search of that bathroom. It was tucked away, hidden out of sight, waiting to be discovered by the most intrepid, most adventurous Amazonians. I wondered how many people knew about it, and whether I should tell anyone else. Knowing of its existence felt like a responsibility, a secret that must be closely guarded. This past weekend, the New York Times published a brutal portrait of Amazon's corporate culture. I reflected on my time at Amazon. My experience had not been as bad as those quoted in the piece, but every story rang true. The kicker of the feature comes from Amazon's own recruiting video: "You either fit here or you don't. You love it or you don't. There is no middle ground." This is the perfect embodiment of Amazon's corporate culture: If you don't like it, you are the problem. Weirdly, I did like it. Despite the strangeness of the company's bathroom culture, my experience at Amazon had been a positive one. I'd succeeded in my roles, been promoted once, given multiple raises, and worked on projects that I've been proud of. I left the company on good terms for an even better opportunity. This is rare at Amazon. And the truth is that I probably fit into the company's competitive, aggressive work environment well because I am also that way too, at least more than I'm willing to openly admit. That's probably the reason I never told anyone else about the secret bathroom.
<filename>servicemodels/e2sm_rmet/v1/e2sm-rmet-go/e2sm_rmet.pb.validate.go<gh_stars>0 // Code generated by protoc-gen-validate. DO NOT EDIT. // source: e2sm_rmet/v1/e2sm_rmet.proto package e2sm_rmet_go import ( "bytes" "errors" "fmt" "net" "net/mail" "net/url" "regexp" "sort" "strings" "time" "unicode/utf8" "google.golang.org/protobuf/types/known/anypb" ) // ensure the imports are used var ( _ = bytes.MinRead _ = errors.New("") _ = fmt.Print _ = utf8.UTFMax _ = (*regexp.Regexp)(nil) _ = (*strings.Reader)(nil) _ = net.IPv4len _ = time.Duration(0) _ = (*url.URL)(nil) _ = (*mail.Address)(nil) _ = anypb.Any{} _ = sort.Sort ) // Validate checks the field values on Eutracgi with the rules defined in the // proto definition for this message. If any rules are violated, the first // error encountered is returned, or nil if there are no violations. func (m *Eutracgi) Validate() error { return m.validate(false) } // ValidateAll checks the field values on Eutracgi with the rules defined in // the proto definition for this message. If any rules are violated, the // result is a list of violation errors wrapped in EutracgiMultiError, or nil // if none found. func (m *Eutracgi) ValidateAll() error { return m.validate(true) } func (m *Eutracgi) validate(all bool) error { if m == nil { return nil } var errors []error if all { switch v := interface{}(m.GetPLmnIdentity()).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, EutracgiValidationError{ field: "PLmnIdentity", reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, EutracgiValidationError{ field: "PLmnIdentity", reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(m.GetPLmnIdentity()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return EutracgiValidationError{ field: "PLmnIdentity", reason: "embedded message failed validation", cause: err, } } } if all { switch v := interface{}(m.GetEUtracellIdentity()).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, EutracgiValidationError{ field: "EUtracellIdentity", reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, EutracgiValidationError{ field: "EUtracellIdentity", reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(m.GetEUtracellIdentity()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return EutracgiValidationError{ field: "EUtracellIdentity", reason: "embedded message failed validation", cause: err, } } } if len(errors) > 0 { return EutracgiMultiError(errors) } return nil } // EutracgiMultiError is an error wrapping multiple validation errors returned // by Eutracgi.ValidateAll() if the designated constraints aren't met. type EutracgiMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m EutracgiMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) } return strings.Join(msgs, "; ") } // AllErrors returns a list of validation violation errors. func (m EutracgiMultiError) AllErrors() []error { return m } // EutracgiValidationError is the validation error returned by // Eutracgi.Validate if the designated constraints aren't met. type EutracgiValidationError struct { field string reason string cause error key bool } // Field function returns field value. func (e EutracgiValidationError) Field() string { return e.field } // Reason function returns reason value. func (e EutracgiValidationError) Reason() string { return e.reason } // Cause function returns cause value. func (e EutracgiValidationError) Cause() error { return e.cause } // Key function returns key value. func (e EutracgiValidationError) Key() bool { return e.key } // ErrorName returns error name. func (e EutracgiValidationError) ErrorName() string { return "EutracgiValidationError" } // Error satisfies the builtin error interface func (e EutracgiValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) } key := "" if e.key { key = "key for " } return fmt.Sprintf( "invalid %sEutracgi.%s: %s%s", key, e.field, e.reason, cause) } var _ error = EutracgiValidationError{} var _ interface { Field() string Reason() string Key() bool Cause() error ErrorName() string } = EutracgiValidationError{} // Validate checks the field values on Nrcgi with the rules defined in the // proto definition for this message. If any rules are violated, the first // error encountered is returned, or nil if there are no violations. func (m *Nrcgi) Validate() error { return m.validate(false) } // ValidateAll checks the field values on Nrcgi with the rules defined in the // proto definition for this message. If any rules are violated, the result is // a list of violation errors wrapped in NrcgiMultiError, or nil if none found. func (m *Nrcgi) ValidateAll() error { return m.validate(true) } func (m *Nrcgi) validate(all bool) error { if m == nil { return nil } var errors []error if all { switch v := interface{}(m.GetPLmnIdentity()).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, NrcgiValidationError{ field: "PLmnIdentity", reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, NrcgiValidationError{ field: "PLmnIdentity", reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(m.GetPLmnIdentity()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return NrcgiValidationError{ field: "PLmnIdentity", reason: "embedded message failed validation", cause: err, } } } if all { switch v := interface{}(m.GetNRcellIdentity()).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, NrcgiValidationError{ field: "NRcellIdentity", reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, NrcgiValidationError{ field: "NRcellIdentity", reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(m.GetNRcellIdentity()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return NrcgiValidationError{ field: "NRcellIdentity", reason: "embedded message failed validation", cause: err, } } } if len(errors) > 0 { return NrcgiMultiError(errors) } return nil } // NrcgiMultiError is an error wrapping multiple validation errors returned by // Nrcgi.ValidateAll() if the designated constraints aren't met. type NrcgiMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m NrcgiMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) } return strings.Join(msgs, "; ") } // AllErrors returns a list of validation violation errors. func (m NrcgiMultiError) AllErrors() []error { return m } // NrcgiValidationError is the validation error returned by Nrcgi.Validate if // the designated constraints aren't met. type NrcgiValidationError struct { field string reason string cause error key bool } // Field function returns field value. func (e NrcgiValidationError) Field() string { return e.field } // Reason function returns reason value. func (e NrcgiValidationError) Reason() string { return e.reason } // Cause function returns cause value. func (e NrcgiValidationError) Cause() error { return e.cause } // Key function returns key value. func (e NrcgiValidationError) Key() bool { return e.key } // ErrorName returns error name. func (e NrcgiValidationError) ErrorName() string { return "NrcgiValidationError" } // Error satisfies the builtin error interface func (e NrcgiValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) } key := "" if e.key { key = "key for " } return fmt.Sprintf( "invalid %sNrcgi.%s: %s%s", key, e.field, e.reason, cause) } var _ error = NrcgiValidationError{} var _ interface { Field() string Reason() string Key() bool Cause() error ErrorName() string } = NrcgiValidationError{} // Validate checks the field values on CellGlobalId with the rules defined in // the proto definition for this message. If any rules are violated, the first // error encountered is returned, or nil if there are no violations. func (m *CellGlobalId) Validate() error { return m.validate(false) } // ValidateAll checks the field values on CellGlobalId with the rules defined // in the proto definition for this message. If any rules are violated, the // result is a list of violation errors wrapped in CellGlobalIdMultiError, or // nil if none found. func (m *CellGlobalId) ValidateAll() error { return m.validate(true) } func (m *CellGlobalId) validate(all bool) error { if m == nil { return nil } var errors []error switch m.CellGlobalId.(type) { case *CellGlobalId_NrCgi: if all { switch v := interface{}(m.GetNrCgi()).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, CellGlobalIdValidationError{ field: "NrCgi", reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, CellGlobalIdValidationError{ field: "NrCgi", reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(m.GetNrCgi()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return CellGlobalIdValidationError{ field: "NrCgi", reason: "embedded message failed validation", cause: err, } } } case *CellGlobalId_EUtraCgi: if all { switch v := interface{}(m.GetEUtraCgi()).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, CellGlobalIdValidationError{ field: "EUtraCgi", reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, CellGlobalIdValidationError{ field: "EUtraCgi", reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(m.GetEUtraCgi()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return CellGlobalIdValidationError{ field: "EUtraCgi", reason: "embedded message failed validation", cause: err, } } } } if len(errors) > 0 { return CellGlobalIdMultiError(errors) } return nil } // CellGlobalIdMultiError is an error wrapping multiple validation errors // returned by CellGlobalId.ValidateAll() if the designated constraints aren't met. type CellGlobalIdMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m CellGlobalIdMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) } return strings.Join(msgs, "; ") } // AllErrors returns a list of validation violation errors. func (m CellGlobalIdMultiError) AllErrors() []error { return m } // CellGlobalIdValidationError is the validation error returned by // CellGlobalId.Validate if the designated constraints aren't met. type CellGlobalIdValidationError struct { field string reason string cause error key bool } // Field function returns field value. func (e CellGlobalIdValidationError) Field() string { return e.field } // Reason function returns reason value. func (e CellGlobalIdValidationError) Reason() string { return e.reason } // Cause function returns cause value. func (e CellGlobalIdValidationError) Cause() error { return e.cause } // Key function returns key value. func (e CellGlobalIdValidationError) Key() bool { return e.key } // ErrorName returns error name. func (e CellGlobalIdValidationError) ErrorName() string { return "CellGlobalIdValidationError" } // Error satisfies the builtin error interface func (e CellGlobalIdValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) } key := "" if e.key { key = "key for " } return fmt.Sprintf( "invalid %sCellGlobalId.%s: %s%s", key, e.field, e.reason, cause) } var _ error = CellGlobalIdValidationError{} var _ interface { Field() string Reason() string Key() bool Cause() error ErrorName() string } = CellGlobalIdValidationError{} // Validate checks the field values on Snssai with the rules defined in the // proto definition for this message. If any rules are violated, the first // error encountered is returned, or nil if there are no violations. func (m *Snssai) Validate() error { return m.validate(false) } // ValidateAll checks the field values on Snssai with the rules defined in the // proto definition for this message. If any rules are violated, the result is // a list of violation errors wrapped in SnssaiMultiError, or nil if none found. func (m *Snssai) ValidateAll() error { return m.validate(true) } func (m *Snssai) validate(all bool) error { if m == nil { return nil } var errors []error if len(m.GetSSt()) != 1 { err := SnssaiValidationError{ field: "SSt", reason: "value length must be 1 bytes", } if !all { return err } errors = append(errors, err) } if m.SD != nil { if len(m.GetSD()) != 3 { err := SnssaiValidationError{ field: "SD", reason: "value length must be 3 bytes", } if !all { return err } errors = append(errors, err) } } if len(errors) > 0 { return SnssaiMultiError(errors) } return nil } // SnssaiMultiError is an error wrapping multiple validation errors returned by // Snssai.ValidateAll() if the designated constraints aren't met. type SnssaiMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m SnssaiMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) } return strings.Join(msgs, "; ") } // AllErrors returns a list of validation violation errors. func (m SnssaiMultiError) AllErrors() []error { return m } // SnssaiValidationError is the validation error returned by Snssai.Validate if // the designated constraints aren't met. type SnssaiValidationError struct { field string reason string cause error key bool } // Field function returns field value. func (e SnssaiValidationError) Field() string { return e.field } // Reason function returns reason value. func (e SnssaiValidationError) Reason() string { return e.reason } // Cause function returns cause value. func (e SnssaiValidationError) Cause() error { return e.cause } // Key function returns key value. func (e SnssaiValidationError) Key() bool { return e.key } // ErrorName returns error name. func (e SnssaiValidationError) ErrorName() string { return "SnssaiValidationError" } // Error satisfies the builtin error interface func (e SnssaiValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) } key := "" if e.key { key = "key for " } return fmt.Sprintf( "invalid %sSnssai.%s: %s%s", key, e.field, e.reason, cause) } var _ error = SnssaiValidationError{} var _ interface { Field() string Reason() string Key() bool Cause() error ErrorName() string } = SnssaiValidationError{} // Validate checks the field values on FiveQi with the rules defined in the // proto definition for this message. If any rules are violated, the first // error encountered is returned, or nil if there are no violations. func (m *FiveQi) Validate() error { return m.validate(false) } // ValidateAll checks the field values on FiveQi with the rules defined in the // proto definition for this message. If any rules are violated, the result is // a list of violation errors wrapped in FiveQiMultiError, or nil if none found. func (m *FiveQi) ValidateAll() error { return m.validate(true) } func (m *FiveQi) validate(all bool) error { if m == nil { return nil } var errors []error if val := m.GetValue(); val < 0 || val > 255 { err := FiveQiValidationError{ field: "Value", reason: "value must be inside range [0, 255]", } if !all { return err } errors = append(errors, err) } if len(errors) > 0 { return FiveQiMultiError(errors) } return nil } // FiveQiMultiError is an error wrapping multiple validation errors returned by // FiveQi.ValidateAll() if the designated constraints aren't met. type FiveQiMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m FiveQiMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) } return strings.Join(msgs, "; ") } // AllErrors returns a list of validation violation errors. func (m FiveQiMultiError) AllErrors() []error { return m } // FiveQiValidationError is the validation error returned by FiveQi.Validate if // the designated constraints aren't met. type FiveQiValidationError struct { field string reason string cause error key bool } // Field function returns field value. func (e FiveQiValidationError) Field() string { return e.field } // Reason function returns reason value. func (e FiveQiValidationError) Reason() string { return e.reason } // Cause function returns cause value. func (e FiveQiValidationError) Cause() error { return e.cause } // Key function returns key value. func (e FiveQiValidationError) Key() bool { return e.key } // ErrorName returns error name. func (e FiveQiValidationError) ErrorName() string { return "FiveQiValidationError" } // Error satisfies the builtin error interface func (e FiveQiValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) } key := "" if e.key { key = "key for " } return fmt.Sprintf( "invalid %sFiveQi.%s: %s%s", key, e.field, e.reason, cause) } var _ error = FiveQiValidationError{} var _ interface { Field() string Reason() string Key() bool Cause() error ErrorName() string } = FiveQiValidationError{} // Validate checks the field values on Qci with the rules defined in the proto // definition for this message. If any rules are violated, the first error // encountered is returned, or nil if there are no violations. func (m *Qci) Validate() error { return m.validate(false) } // ValidateAll checks the field values on Qci with the rules defined in the // proto definition for this message. If any rules are violated, the result is // a list of violation errors wrapped in QciMultiError, or nil if none found. func (m *Qci) ValidateAll() error { return m.validate(true) } func (m *Qci) validate(all bool) error { if m == nil { return nil } var errors []error if val := m.GetValue(); val < 0 || val > 255 { err := QciValidationError{ field: "Value", reason: "value must be inside range [0, 255]", } if !all { return err } errors = append(errors, err) } if len(errors) > 0 { return QciMultiError(errors) } return nil } // QciMultiError is an error wrapping multiple validation errors returned by // Qci.ValidateAll() if the designated constraints aren't met. type QciMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m QciMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) } return strings.Join(msgs, "; ") } // AllErrors returns a list of validation violation errors. func (m QciMultiError) AllErrors() []error { return m } // QciValidationError is the validation error returned by Qci.Validate if the // designated constraints aren't met. type QciValidationError struct { field string reason string cause error key bool } // Field function returns field value. func (e QciValidationError) Field() string { return e.field } // Reason function returns reason value. func (e QciValidationError) Reason() string { return e.reason } // Cause function returns cause value. func (e QciValidationError) Cause() error { return e.cause } // Key function returns key value. func (e QciValidationError) Key() bool { return e.key } // ErrorName returns error name. func (e QciValidationError) ErrorName() string { return "QciValidationError" } // Error satisfies the builtin error interface func (e QciValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) } key := "" if e.key { key = "key for " } return fmt.Sprintf( "invalid %sQci.%s: %s%s", key, e.field, e.reason, cause) } var _ error = QciValidationError{} var _ interface { Field() string Reason() string Key() bool Cause() error ErrorName() string } = QciValidationError{} // Validate checks the field values on Arp with the rules defined in the proto // definition for this message. If any rules are violated, the first error // encountered is returned, or nil if there are no violations. func (m *Arp) Validate() error { return m.validate(false) } // ValidateAll checks the field values on Arp with the rules defined in the // proto definition for this message. If any rules are violated, the result is // a list of violation errors wrapped in ArpMultiError, or nil if none found. func (m *Arp) ValidateAll() error { return m.validate(true) } func (m *Arp) validate(all bool) error { if m == nil { return nil } var errors []error if val := m.GetValue(); val < 1 || val > 15 { err := ArpValidationError{ field: "Value", reason: "value must be inside range [1, 15]", } if !all { return err } errors = append(errors, err) } if len(errors) > 0 { return ArpMultiError(errors) } return nil } // ArpMultiError is an error wrapping multiple validation errors returned by // Arp.ValidateAll() if the designated constraints aren't met. type ArpMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m ArpMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) } return strings.Join(msgs, "; ") } // AllErrors returns a list of validation violation errors. func (m ArpMultiError) AllErrors() []error { return m } // ArpValidationError is the validation error returned by Arp.Validate if the // designated constraints aren't met. type ArpValidationError struct { field string reason string cause error key bool } // Field function returns field value. func (e ArpValidationError) Field() string { return e.field } // Reason function returns reason value. func (e ArpValidationError) Reason() string { return e.reason } // Cause function returns cause value. func (e ArpValidationError) Cause() error { return e.cause } // Key function returns key value. func (e ArpValidationError) Key() bool { return e.key } // ErrorName returns error name. func (e ArpValidationError) ErrorName() string { return "ArpValidationError" } // Error satisfies the builtin error interface func (e ArpValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) } key := "" if e.key { key = "key for " } return fmt.Sprintf( "invalid %sArp.%s: %s%s", key, e.field, e.reason, cause) } var _ error = ArpValidationError{} var _ interface { Field() string Reason() string Key() bool Cause() error ErrorName() string } = ArpValidationError{} // Validate checks the field values on GranularityPeriod with the rules defined // in the proto definition for this message. If any rules are violated, the // first error encountered is returned, or nil if there are no violations. func (m *GranularityPeriod) Validate() error { return m.validate(false) } // ValidateAll checks the field values on GranularityPeriod with the rules // defined in the proto definition for this message. If any rules are // violated, the result is a list of violation errors wrapped in // GranularityPeriodMultiError, or nil if none found. func (m *GranularityPeriod) ValidateAll() error { return m.validate(true) } func (m *GranularityPeriod) validate(all bool) error { if m == nil { return nil } var errors []error if val := m.GetValue(); val < 1 || val > 4294967295 { err := GranularityPeriodValidationError{ field: "Value", reason: "value must be inside range [1, 4294967295]", } if !all { return err } errors = append(errors, err) } if len(errors) > 0 { return GranularityPeriodMultiError(errors) } return nil } // GranularityPeriodMultiError is an error wrapping multiple validation errors // returned by GranularityPeriod.ValidateAll() if the designated constraints // aren't met. type GranularityPeriodMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m GranularityPeriodMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) } return strings.Join(msgs, "; ") } // AllErrors returns a list of validation violation errors. func (m GranularityPeriodMultiError) AllErrors() []error { return m } // GranularityPeriodValidationError is the validation error returned by // GranularityPeriod.Validate if the designated constraints aren't met. type GranularityPeriodValidationError struct { field string reason string cause error key bool } // Field function returns field value. func (e GranularityPeriodValidationError) Field() string { return e.field } // Reason function returns reason value. func (e GranularityPeriodValidationError) Reason() string { return e.reason } // Cause function returns cause value. func (e GranularityPeriodValidationError) Cause() error { return e.cause } // Key function returns key value. func (e GranularityPeriodValidationError) Key() bool { return e.key } // ErrorName returns error name. func (e GranularityPeriodValidationError) ErrorName() string { return "GranularityPeriodValidationError" } // Error satisfies the builtin error interface func (e GranularityPeriodValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) } key := "" if e.key { key = "key for " } return fmt.Sprintf( "invalid %sGranularityPeriod.%s: %s%s", key, e.field, e.reason, cause) } var _ error = GranularityPeriodValidationError{} var _ interface { Field() string Reason() string Key() bool Cause() error ErrorName() string } = GranularityPeriodValidationError{} // Validate checks the field values on MeasurementType with the rules defined // in the proto definition for this message. If any rules are violated, the // first error encountered is returned, or nil if there are no violations. func (m *MeasurementType) Validate() error { return m.validate(false) } // ValidateAll checks the field values on MeasurementType with the rules // defined in the proto definition for this message. If any rules are // violated, the result is a list of violation errors wrapped in // MeasurementTypeMultiError, or nil if none found. func (m *MeasurementType) ValidateAll() error { return m.validate(true) } func (m *MeasurementType) validate(all bool) error { if m == nil { return nil } var errors []error switch m.MeasurementType.(type) { case *MeasurementType_MeasName: if all { switch v := interface{}(m.GetMeasName()).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, MeasurementTypeValidationError{ field: "MeasName", reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, MeasurementTypeValidationError{ field: "MeasName", reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(m.GetMeasName()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return MeasurementTypeValidationError{ field: "MeasName", reason: "embedded message failed validation", cause: err, } } } case *MeasurementType_MeasId: if all { switch v := interface{}(m.GetMeasId()).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, MeasurementTypeValidationError{ field: "MeasId", reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, MeasurementTypeValidationError{ field: "MeasId", reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(m.GetMeasId()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return MeasurementTypeValidationError{ field: "MeasId", reason: "embedded message failed validation", cause: err, } } } } if len(errors) > 0 { return MeasurementTypeMultiError(errors) } return nil } // MeasurementTypeMultiError is an error wrapping multiple validation errors // returned by MeasurementType.ValidateAll() if the designated constraints // aren't met. type MeasurementTypeMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m MeasurementTypeMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) } return strings.Join(msgs, "; ") } // AllErrors returns a list of validation violation errors. func (m MeasurementTypeMultiError) AllErrors() []error { return m } // MeasurementTypeValidationError is the validation error returned by // MeasurementType.Validate if the designated constraints aren't met. type MeasurementTypeValidationError struct { field string reason string cause error key bool } // Field function returns field value. func (e MeasurementTypeValidationError) Field() string { return e.field } // Reason function returns reason value. func (e MeasurementTypeValidationError) Reason() string { return e.reason } // Cause function returns cause value. func (e MeasurementTypeValidationError) Cause() error { return e.cause } // Key function returns key value. func (e MeasurementTypeValidationError) Key() bool { return e.key } // ErrorName returns error name. func (e MeasurementTypeValidationError) ErrorName() string { return "MeasurementTypeValidationError" } // Error satisfies the builtin error interface func (e MeasurementTypeValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) } key := "" if e.key { key = "key for " } return fmt.Sprintf( "invalid %sMeasurementType.%s: %s%s", key, e.field, e.reason, cause) } var _ error = MeasurementTypeValidationError{} var _ interface { Field() string Reason() string Key() bool Cause() error ErrorName() string } = MeasurementTypeValidationError{} // Validate checks the field values on MeasurementTypeId with the rules defined // in the proto definition for this message. If any rules are violated, the // first error encountered is returned, or nil if there are no violations. func (m *MeasurementTypeId) Validate() error { return m.validate(false) } // ValidateAll checks the field values on MeasurementTypeId with the rules // defined in the proto definition for this message. If any rules are // violated, the result is a list of violation errors wrapped in // MeasurementTypeIdMultiError, or nil if none found. func (m *MeasurementTypeId) ValidateAll() error { return m.validate(true) } func (m *MeasurementTypeId) validate(all bool) error { if m == nil { return nil } var errors []error if val := m.GetValue(); val < 1 || val > 65536 { err := MeasurementTypeIdValidationError{ field: "Value", reason: "value must be inside range [1, 65536]", } if !all { return err } errors = append(errors, err) } if len(errors) > 0 { return MeasurementTypeIdMultiError(errors) } return nil } // MeasurementTypeIdMultiError is an error wrapping multiple validation errors // returned by MeasurementTypeId.ValidateAll() if the designated constraints // aren't met. type MeasurementTypeIdMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m MeasurementTypeIdMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) } return strings.Join(msgs, "; ") } // AllErrors returns a list of validation violation errors. func (m MeasurementTypeIdMultiError) AllErrors() []error { return m } // MeasurementTypeIdValidationError is the validation error returned by // MeasurementTypeId.Validate if the designated constraints aren't met. type MeasurementTypeIdValidationError struct { field string reason string cause error key bool } // Field function returns field value. func (e MeasurementTypeIdValidationError) Field() string { return e.field } // Reason function returns reason value. func (e MeasurementTypeIdValidationError) Reason() string { return e.reason } // Cause function returns cause value. func (e MeasurementTypeIdValidationError) Cause() error { return e.cause } // Key function returns key value. func (e MeasurementTypeIdValidationError) Key() bool { return e.key } // ErrorName returns error name. func (e MeasurementTypeIdValidationError) ErrorName() string { return "MeasurementTypeIdValidationError" } // Error satisfies the builtin error interface func (e MeasurementTypeIdValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) } key := "" if e.key { key = "key for " } return fmt.Sprintf( "invalid %sMeasurementTypeId.%s: %s%s", key, e.field, e.reason, cause) } var _ error = MeasurementTypeIdValidationError{} var _ interface { Field() string Reason() string Key() bool Cause() error ErrorName() string } = MeasurementTypeIdValidationError{} // Validate checks the field values on SubscriptionId with the rules defined in // the proto definition for this message. If any rules are violated, the first // error encountered is returned, or nil if there are no violations. func (m *SubscriptionId) Validate() error { return m.validate(false) } // ValidateAll checks the field values on SubscriptionId with the rules defined // in the proto definition for this message. If any rules are violated, the // result is a list of violation errors wrapped in SubscriptionIdMultiError, // or nil if none found. func (m *SubscriptionId) ValidateAll() error { return m.validate(true) } func (m *SubscriptionId) validate(all bool) error { if m == nil { return nil } var errors []error if val := m.GetValue(); val < 1 || val > 4294967295 { err := SubscriptionIdValidationError{ field: "Value", reason: "value must be inside range [1, 4294967295]", } if !all { return err } errors = append(errors, err) } if len(errors) > 0 { return SubscriptionIdMultiError(errors) } return nil } // SubscriptionIdMultiError is an error wrapping multiple validation errors // returned by SubscriptionId.ValidateAll() if the designated constraints // aren't met. type SubscriptionIdMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m SubscriptionIdMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) } return strings.Join(msgs, "; ") } // AllErrors returns a list of validation violation errors. func (m SubscriptionIdMultiError) AllErrors() []error { return m } // SubscriptionIdValidationError is the validation error returned by // SubscriptionId.Validate if the designated constraints aren't met. type SubscriptionIdValidationError struct { field string reason string cause error key bool } // Field function returns field value. func (e SubscriptionIdValidationError) Field() string { return e.field } // Reason function returns reason value. func (e SubscriptionIdValidationError) Reason() string { return e.reason } // Cause function returns cause value. func (e SubscriptionIdValidationError) Cause() error { return e.cause } // Key function returns key value. func (e SubscriptionIdValidationError) Key() bool { return e.key } // ErrorName returns error name. func (e SubscriptionIdValidationError) ErrorName() string { return "SubscriptionIdValidationError" } // Error satisfies the builtin error interface func (e SubscriptionIdValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) } key := "" if e.key { key = "key for " } return fmt.Sprintf( "invalid %sSubscriptionId.%s: %s%s", key, e.field, e.reason, cause) } var _ error = SubscriptionIdValidationError{} var _ interface { Field() string Reason() string Key() bool Cause() error ErrorName() string } = SubscriptionIdValidationError{} // Validate checks the field values on GlobalRmetnodeId with the rules defined // in the proto definition for this message. If any rules are violated, the // first error encountered is returned, or nil if there are no violations. func (m *GlobalRmetnodeId) Validate() error { return m.validate(false) } // ValidateAll checks the field values on GlobalRmetnodeId with the rules // defined in the proto definition for this message. If any rules are // violated, the result is a list of violation errors wrapped in // GlobalRmetnodeIdMultiError, or nil if none found. func (m *GlobalRmetnodeId) ValidateAll() error { return m.validate(true) } func (m *GlobalRmetnodeId) validate(all bool) error { if m == nil { return nil } var errors []error switch m.GlobalRmetnodeId.(type) { case *GlobalRmetnodeId_GNb: if all { switch v := interface{}(m.GetGNb()).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, GlobalRmetnodeIdValidationError{ field: "GNb", reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, GlobalRmetnodeIdValidationError{ field: "GNb", reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(m.GetGNb()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return GlobalRmetnodeIdValidationError{ field: "GNb", reason: "embedded message failed validation", cause: err, } } } case *GlobalRmetnodeId_EnGNb: if all { switch v := interface{}(m.GetEnGNb()).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, GlobalRmetnodeIdValidationError{ field: "EnGNb", reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, GlobalRmetnodeIdValidationError{ field: "EnGNb", reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(m.GetEnGNb()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return GlobalRmetnodeIdValidationError{ field: "EnGNb", reason: "embedded message failed validation", cause: err, } } } case *GlobalRmetnodeId_NgENb: if all { switch v := interface{}(m.GetNgENb()).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, GlobalRmetnodeIdValidationError{ field: "NgENb", reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, GlobalRmetnodeIdValidationError{ field: "NgENb", reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(m.GetNgENb()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return GlobalRmetnodeIdValidationError{ field: "NgENb", reason: "embedded message failed validation", cause: err, } } } case *GlobalRmetnodeId_ENb: if all { switch v := interface{}(m.GetENb()).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, GlobalRmetnodeIdValidationError{ field: "ENb", reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, GlobalRmetnodeIdValidationError{ field: "ENb", reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(m.GetENb()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return GlobalRmetnodeIdValidationError{ field: "ENb", reason: "embedded message failed validation", cause: err, } } } } if len(errors) > 0 { return GlobalRmetnodeIdMultiError(errors) } return nil } // GlobalRmetnodeIdMultiError is an error wrapping multiple validation errors // returned by GlobalRmetnodeId.ValidateAll() if the designated constraints // aren't met. type GlobalRmetnodeIdMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m GlobalRmetnodeIdMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) } return strings.Join(msgs, "; ") } // AllErrors returns a list of validation violation errors. func (m GlobalRmetnodeIdMultiError) AllErrors() []error { return m } // GlobalRmetnodeIdValidationError is the validation error returned by // GlobalRmetnodeId.Validate if the designated constraints aren't met. type GlobalRmetnodeIdValidationError struct { field string reason string cause error key bool } // Field function returns field value. func (e GlobalRmetnodeIdValidationError) Field() string { return e.field } // Reason function returns reason value. func (e GlobalRmetnodeIdValidationError) Reason() string { return e.reason } // Cause function returns cause value. func (e GlobalRmetnodeIdValidationError) Cause() error { return e.cause } // Key function returns key value. func (e GlobalRmetnodeIdValidationError) Key() bool { return e.key } // ErrorName returns error name. func (e GlobalRmetnodeIdValidationError) ErrorName() string { return "GlobalRmetnodeIdValidationError" } // Error satisfies the builtin error interface func (e GlobalRmetnodeIdValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) } key := "" if e.key { key = "key for " } return fmt.Sprintf( "invalid %sGlobalRmetnodeId.%s: %s%s", key, e.field, e.reason, cause) } var _ error = GlobalRmetnodeIdValidationError{} var _ interface { Field() string Reason() string Key() bool Cause() error ErrorName() string } = GlobalRmetnodeIdValidationError{} // Validate checks the field values on GlobalRmetnodeGnbId with the rules // defined in the proto definition for this message. If any rules are // violated, the first error encountered is returned, or nil if there are no violations. func (m *GlobalRmetnodeGnbId) Validate() error { return m.validate(false) } // ValidateAll checks the field values on GlobalRmetnodeGnbId with the rules // defined in the proto definition for this message. If any rules are // violated, the result is a list of violation errors wrapped in // GlobalRmetnodeGnbIdMultiError, or nil if none found. func (m *GlobalRmetnodeGnbId) ValidateAll() error { return m.validate(true) } func (m *GlobalRmetnodeGnbId) validate(all bool) error { if m == nil { return nil } var errors []error if all { switch v := interface{}(m.GetGlobalGNbId()).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, GlobalRmetnodeGnbIdValidationError{ field: "GlobalGNbId", reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, GlobalRmetnodeGnbIdValidationError{ field: "GlobalGNbId", reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(m.GetGlobalGNbId()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return GlobalRmetnodeGnbIdValidationError{ field: "GlobalGNbId", reason: "embedded message failed validation", cause: err, } } } if m.GNbCuUpId != nil { if all { switch v := interface{}(m.GetGNbCuUpId()).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, GlobalRmetnodeGnbIdValidationError{ field: "GNbCuUpId", reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, GlobalRmetnodeGnbIdValidationError{ field: "GNbCuUpId", reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(m.GetGNbCuUpId()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return GlobalRmetnodeGnbIdValidationError{ field: "GNbCuUpId", reason: "embedded message failed validation", cause: err, } } } } if m.GNbDuId != nil { if all { switch v := interface{}(m.GetGNbDuId()).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, GlobalRmetnodeGnbIdValidationError{ field: "GNbDuId", reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, GlobalRmetnodeGnbIdValidationError{ field: "GNbDuId", reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(m.GetGNbDuId()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return GlobalRmetnodeGnbIdValidationError{ field: "GNbDuId", reason: "embedded message failed validation", cause: err, } } } } if len(errors) > 0 { return GlobalRmetnodeGnbIdMultiError(errors) } return nil } // GlobalRmetnodeGnbIdMultiError is an error wrapping multiple validation // errors returned by GlobalRmetnodeGnbId.ValidateAll() if the designated // constraints aren't met. type GlobalRmetnodeGnbIdMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m GlobalRmetnodeGnbIdMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) } return strings.Join(msgs, "; ") } // AllErrors returns a list of validation violation errors. func (m GlobalRmetnodeGnbIdMultiError) AllErrors() []error { return m } // GlobalRmetnodeGnbIdValidationError is the validation error returned by // GlobalRmetnodeGnbId.Validate if the designated constraints aren't met. type GlobalRmetnodeGnbIdValidationError struct { field string reason string cause error key bool } // Field function returns field value. func (e GlobalRmetnodeGnbIdValidationError) Field() string { return e.field } // Reason function returns reason value. func (e GlobalRmetnodeGnbIdValidationError) Reason() string { return e.reason } // Cause function returns cause value. func (e GlobalRmetnodeGnbIdValidationError) Cause() error { return e.cause } // Key function returns key value. func (e GlobalRmetnodeGnbIdValidationError) Key() bool { return e.key } // ErrorName returns error name. func (e GlobalRmetnodeGnbIdValidationError) ErrorName() string { return "GlobalRmetnodeGnbIdValidationError" } // Error satisfies the builtin error interface func (e GlobalRmetnodeGnbIdValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) } key := "" if e.key { key = "key for " } return fmt.Sprintf( "invalid %sGlobalRmetnodeGnbId.%s: %s%s", key, e.field, e.reason, cause) } var _ error = GlobalRmetnodeGnbIdValidationError{} var _ interface { Field() string Reason() string Key() bool Cause() error ErrorName() string } = GlobalRmetnodeGnbIdValidationError{} // Validate checks the field values on GlobalgNbId with the rules defined in // the proto definition for this message. If any rules are violated, the first // error encountered is returned, or nil if there are no violations. func (m *GlobalgNbId) Validate() error { return m.validate(false) } // ValidateAll checks the field values on GlobalgNbId with the rules defined in // the proto definition for this message. If any rules are violated, the // result is a list of violation errors wrapped in GlobalgNbIdMultiError, or // nil if none found. func (m *GlobalgNbId) ValidateAll() error { return m.validate(true) } func (m *GlobalgNbId) validate(all bool) error { if m == nil { return nil } var errors []error if all { switch v := interface{}(m.GetPlmnId()).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, GlobalgNbIdValidationError{ field: "PlmnId", reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, GlobalgNbIdValidationError{ field: "PlmnId", reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(m.GetPlmnId()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return GlobalgNbIdValidationError{ field: "PlmnId", reason: "embedded message failed validation", cause: err, } } } if all { switch v := interface{}(m.GetGnbId()).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, GlobalgNbIdValidationError{ field: "GnbId", reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, GlobalgNbIdValidationError{ field: "GnbId", reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(m.GetGnbId()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return GlobalgNbIdValidationError{ field: "GnbId", reason: "embedded message failed validation", cause: err, } } } if len(errors) > 0 { return GlobalgNbIdMultiError(errors) } return nil } // GlobalgNbIdMultiError is an error wrapping multiple validation errors // returned by GlobalgNbId.ValidateAll() if the designated constraints aren't met. type GlobalgNbIdMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m GlobalgNbIdMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) } return strings.Join(msgs, "; ") } // AllErrors returns a list of validation violation errors. func (m GlobalgNbIdMultiError) AllErrors() []error { return m } // GlobalgNbIdValidationError is the validation error returned by // GlobalgNbId.Validate if the designated constraints aren't met. type GlobalgNbIdValidationError struct { field string reason string cause error key bool } // Field function returns field value. func (e GlobalgNbIdValidationError) Field() string { return e.field } // Reason function returns reason value. func (e GlobalgNbIdValidationError) Reason() string { return e.reason } // Cause function returns cause value. func (e GlobalgNbIdValidationError) Cause() error { return e.cause } // Key function returns key value. func (e GlobalgNbIdValidationError) Key() bool { return e.key } // ErrorName returns error name. func (e GlobalgNbIdValidationError) ErrorName() string { return "GlobalgNbIdValidationError" } // Error satisfies the builtin error interface func (e GlobalgNbIdValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) } key := "" if e.key { key = "key for " } return fmt.Sprintf( "invalid %sGlobalgNbId.%s: %s%s", key, e.field, e.reason, cause) } var _ error = GlobalgNbIdValidationError{} var _ interface { Field() string Reason() string Key() bool Cause() error ErrorName() string } = GlobalgNbIdValidationError{} // Validate checks the field values on GnbCuUpId with the rules defined in the // proto definition for this message. If any rules are violated, the first // error encountered is returned, or nil if there are no violations. func (m *GnbCuUpId) Validate() error { return m.validate(false) } // ValidateAll checks the field values on GnbCuUpId with the rules defined in // the proto definition for this message. If any rules are violated, the // result is a list of violation errors wrapped in GnbCuUpIdMultiError, or nil // if none found. func (m *GnbCuUpId) ValidateAll() error { return m.validate(true) } func (m *GnbCuUpId) validate(all bool) error { if m == nil { return nil } var errors []error if val := m.GetValue(); val < 0 || val > 68719476735 { err := GnbCuUpIdValidationError{ field: "Value", reason: "value must be inside range [0, 68719476735]", } if !all { return err } errors = append(errors, err) } if len(errors) > 0 { return GnbCuUpIdMultiError(errors) } return nil } // GnbCuUpIdMultiError is an error wrapping multiple validation errors returned // by GnbCuUpId.ValidateAll() if the designated constraints aren't met. type GnbCuUpIdMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m GnbCuUpIdMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) } return strings.Join(msgs, "; ") } // AllErrors returns a list of validation violation errors. func (m GnbCuUpIdMultiError) AllErrors() []error { return m } // GnbCuUpIdValidationError is the validation error returned by // GnbCuUpId.Validate if the designated constraints aren't met. type GnbCuUpIdValidationError struct { field string reason string cause error key bool } // Field function returns field value. func (e GnbCuUpIdValidationError) Field() string { return e.field } // Reason function returns reason value. func (e GnbCuUpIdValidationError) Reason() string { return e.reason } // Cause function returns cause value. func (e GnbCuUpIdValidationError) Cause() error { return e.cause } // Key function returns key value. func (e GnbCuUpIdValidationError) Key() bool { return e.key } // ErrorName returns error name. func (e GnbCuUpIdValidationError) ErrorName() string { return "GnbCuUpIdValidationError" } // Error satisfies the builtin error interface func (e GnbCuUpIdValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) } key := "" if e.key { key = "key for " } return fmt.Sprintf( "invalid %sGnbCuUpId.%s: %s%s", key, e.field, e.reason, cause) } var _ error = GnbCuUpIdValidationError{} var _ interface { Field() string Reason() string Key() bool Cause() error ErrorName() string } = GnbCuUpIdValidationError{} // Validate checks the field values on GnbDuId with the rules defined in the // proto definition for this message. If any rules are violated, the first // error encountered is returned, or nil if there are no violations. func (m *GnbDuId) Validate() error { return m.validate(false) } // ValidateAll checks the field values on GnbDuId with the rules defined in the // proto definition for this message. If any rules are violated, the result is // a list of violation errors wrapped in GnbDuIdMultiError, or nil if none found. func (m *GnbDuId) ValidateAll() error { return m.validate(true) } func (m *GnbDuId) validate(all bool) error { if m == nil { return nil } var errors []error if val := m.GetValue(); val < 0 || val > 68719476735 { err := GnbDuIdValidationError{ field: "Value", reason: "value must be inside range [0, 68719476735]", } if !all { return err } errors = append(errors, err) } if len(errors) > 0 { return GnbDuIdMultiError(errors) } return nil } // GnbDuIdMultiError is an error wrapping multiple validation errors returned // by GnbDuId.ValidateAll() if the designated constraints aren't met. type GnbDuIdMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m GnbDuIdMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) } return strings.Join(msgs, "; ") } // AllErrors returns a list of validation violation errors. func (m GnbDuIdMultiError) AllErrors() []error { return m } // GnbDuIdValidationError is the validation error returned by GnbDuId.Validate // if the designated constraints aren't met. type GnbDuIdValidationError struct { field string reason string cause error key bool } // Field function returns field value. func (e GnbDuIdValidationError) Field() string { return e.field } // Reason function returns reason value. func (e GnbDuIdValidationError) Reason() string { return e.reason } // Cause function returns cause value. func (e GnbDuIdValidationError) Cause() error { return e.cause } // Key function returns key value. func (e GnbDuIdValidationError) Key() bool { return e.key } // ErrorName returns error name. func (e GnbDuIdValidationError) ErrorName() string { return "GnbDuIdValidationError" } // Error satisfies the builtin error interface func (e GnbDuIdValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) } key := "" if e.key { key = "key for " } return fmt.Sprintf( "invalid %sGnbDuId.%s: %s%s", key, e.field, e.reason, cause) } var _ error = GnbDuIdValidationError{} var _ interface { Field() string Reason() string Key() bool Cause() error ErrorName() string } = GnbDuIdValidationError{} // Validate checks the field values on GnbIdChoice with the rules defined in // the proto definition for this message. If any rules are violated, the first // error encountered is returned, or nil if there are no violations. func (m *GnbIdChoice) Validate() error { return m.validate(false) } // ValidateAll checks the field values on GnbIdChoice with the rules defined in // the proto definition for this message. If any rules are violated, the // result is a list of violation errors wrapped in GnbIdChoiceMultiError, or // nil if none found. func (m *GnbIdChoice) ValidateAll() error { return m.validate(true) } func (m *GnbIdChoice) validate(all bool) error { if m == nil { return nil } var errors []error switch m.GnbIdChoice.(type) { case *GnbIdChoice_GnbId: if all { switch v := interface{}(m.GetGnbId()).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, GnbIdChoiceValidationError{ field: "GnbId", reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, GnbIdChoiceValidationError{ field: "GnbId", reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(m.GetGnbId()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return GnbIdChoiceValidationError{ field: "GnbId", reason: "embedded message failed validation", cause: err, } } } } if len(errors) > 0 { return GnbIdChoiceMultiError(errors) } return nil } // GnbIdChoiceMultiError is an error wrapping multiple validation errors // returned by GnbIdChoice.ValidateAll() if the designated constraints aren't met. type GnbIdChoiceMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m GnbIdChoiceMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) } return strings.Join(msgs, "; ") } // AllErrors returns a list of validation violation errors. func (m GnbIdChoiceMultiError) AllErrors() []error { return m } // GnbIdChoiceValidationError is the validation error returned by // GnbIdChoice.Validate if the designated constraints aren't met. type GnbIdChoiceValidationError struct { field string reason string cause error key bool } // Field function returns field value. func (e GnbIdChoiceValidationError) Field() string { return e.field } // Reason function returns reason value. func (e GnbIdChoiceValidationError) Reason() string { return e.reason } // Cause function returns cause value. func (e GnbIdChoiceValidationError) Cause() error { return e.cause } // Key function returns key value. func (e GnbIdChoiceValidationError) Key() bool { return e.key } // ErrorName returns error name. func (e GnbIdChoiceValidationError) ErrorName() string { return "GnbIdChoiceValidationError" } // Error satisfies the builtin error interface func (e GnbIdChoiceValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) } key := "" if e.key { key = "key for " } return fmt.Sprintf( "invalid %sGnbIdChoice.%s: %s%s", key, e.field, e.reason, cause) } var _ error = GnbIdChoiceValidationError{} var _ interface { Field() string Reason() string Key() bool Cause() error ErrorName() string } = GnbIdChoiceValidationError{} // Validate checks the field values on GlobalRmetnodeEnGnbId with the rules // defined in the proto definition for this message. If any rules are // violated, the first error encountered is returned, or nil if there are no violations. func (m *GlobalRmetnodeEnGnbId) Validate() error { return m.validate(false) } // ValidateAll checks the field values on GlobalRmetnodeEnGnbId with the rules // defined in the proto definition for this message. If any rules are // violated, the result is a list of violation errors wrapped in // GlobalRmetnodeEnGnbIdMultiError, or nil if none found. func (m *GlobalRmetnodeEnGnbId) ValidateAll() error { return m.validate(true) } func (m *GlobalRmetnodeEnGnbId) validate(all bool) error { if m == nil { return nil } var errors []error if all { switch v := interface{}(m.GetGlobalGNbId()).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, GlobalRmetnodeEnGnbIdValidationError{ field: "GlobalGNbId", reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, GlobalRmetnodeEnGnbIdValidationError{ field: "GlobalGNbId", reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(m.GetGlobalGNbId()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return GlobalRmetnodeEnGnbIdValidationError{ field: "GlobalGNbId", reason: "embedded message failed validation", cause: err, } } } if m.GNbCuUpId != nil { if all { switch v := interface{}(m.GetGNbCuUpId()).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, GlobalRmetnodeEnGnbIdValidationError{ field: "GNbCuUpId", reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, GlobalRmetnodeEnGnbIdValidationError{ field: "GNbCuUpId", reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(m.GetGNbCuUpId()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return GlobalRmetnodeEnGnbIdValidationError{ field: "GNbCuUpId", reason: "embedded message failed validation", cause: err, } } } } if m.GNbDuId != nil { if all { switch v := interface{}(m.GetGNbDuId()).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, GlobalRmetnodeEnGnbIdValidationError{ field: "GNbDuId", reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, GlobalRmetnodeEnGnbIdValidationError{ field: "GNbDuId", reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(m.GetGNbDuId()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return GlobalRmetnodeEnGnbIdValidationError{ field: "GNbDuId", reason: "embedded message failed validation", cause: err, } } } } if len(errors) > 0 { return GlobalRmetnodeEnGnbIdMultiError(errors) } return nil } // GlobalRmetnodeEnGnbIdMultiError is an error wrapping multiple validation // errors returned by GlobalRmetnodeEnGnbId.ValidateAll() if the designated // constraints aren't met. type GlobalRmetnodeEnGnbIdMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m GlobalRmetnodeEnGnbIdMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) } return strings.Join(msgs, "; ") } // AllErrors returns a list of validation violation errors. func (m GlobalRmetnodeEnGnbIdMultiError) AllErrors() []error { return m } // GlobalRmetnodeEnGnbIdValidationError is the validation error returned by // GlobalRmetnodeEnGnbId.Validate if the designated constraints aren't met. type GlobalRmetnodeEnGnbIdValidationError struct { field string reason string cause error key bool } // Field function returns field value. func (e GlobalRmetnodeEnGnbIdValidationError) Field() string { return e.field } // Reason function returns reason value. func (e GlobalRmetnodeEnGnbIdValidationError) Reason() string { return e.reason } // Cause function returns cause value. func (e GlobalRmetnodeEnGnbIdValidationError) Cause() error { return e.cause } // Key function returns key value. func (e GlobalRmetnodeEnGnbIdValidationError) Key() bool { return e.key } // ErrorName returns error name. func (e GlobalRmetnodeEnGnbIdValidationError) ErrorName() string { return "GlobalRmetnodeEnGnbIdValidationError" } // Error satisfies the builtin error interface func (e GlobalRmetnodeEnGnbIdValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) } key := "" if e.key { key = "key for " } return fmt.Sprintf( "invalid %sGlobalRmetnodeEnGnbId.%s: %s%s", key, e.field, e.reason, cause) } var _ error = GlobalRmetnodeEnGnbIdValidationError{} var _ interface { Field() string Reason() string Key() bool Cause() error ErrorName() string } = GlobalRmetnodeEnGnbIdValidationError{} // Validate checks the field values on GlobalenGnbId with the rules defined in // the proto definition for this message. If any rules are violated, the first // error encountered is returned, or nil if there are no violations. func (m *GlobalenGnbId) Validate() error { return m.validate(false) } // ValidateAll checks the field values on GlobalenGnbId with the rules defined // in the proto definition for this message. If any rules are violated, the // result is a list of violation errors wrapped in GlobalenGnbIdMultiError, or // nil if none found. func (m *GlobalenGnbId) ValidateAll() error { return m.validate(true) } func (m *GlobalenGnbId) validate(all bool) error { if m == nil { return nil } var errors []error if all { switch v := interface{}(m.GetPLmnIdentity()).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, GlobalenGnbIdValidationError{ field: "PLmnIdentity", reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, GlobalenGnbIdValidationError{ field: "PLmnIdentity", reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(m.GetPLmnIdentity()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return GlobalenGnbIdValidationError{ field: "PLmnIdentity", reason: "embedded message failed validation", cause: err, } } } if all { switch v := interface{}(m.GetGNbId()).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, GlobalenGnbIdValidationError{ field: "GNbId", reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, GlobalenGnbIdValidationError{ field: "GNbId", reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(m.GetGNbId()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return GlobalenGnbIdValidationError{ field: "GNbId", reason: "embedded message failed validation", cause: err, } } } if len(errors) > 0 { return GlobalenGnbIdMultiError(errors) } return nil } // GlobalenGnbIdMultiError is an error wrapping multiple validation errors // returned by GlobalenGnbId.ValidateAll() if the designated constraints // aren't met. type GlobalenGnbIdMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m GlobalenGnbIdMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) } return strings.Join(msgs, "; ") } // AllErrors returns a list of validation violation errors. func (m GlobalenGnbIdMultiError) AllErrors() []error { return m } // GlobalenGnbIdValidationError is the validation error returned by // GlobalenGnbId.Validate if the designated constraints aren't met. type GlobalenGnbIdValidationError struct { field string reason string cause error key bool } // Field function returns field value. func (e GlobalenGnbIdValidationError) Field() string { return e.field } // Reason function returns reason value. func (e GlobalenGnbIdValidationError) Reason() string { return e.reason } // Cause function returns cause value. func (e GlobalenGnbIdValidationError) Cause() error { return e.cause } // Key function returns key value. func (e GlobalenGnbIdValidationError) Key() bool { return e.key } // ErrorName returns error name. func (e GlobalenGnbIdValidationError) ErrorName() string { return "GlobalenGnbIdValidationError" } // Error satisfies the builtin error interface func (e GlobalenGnbIdValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) } key := "" if e.key { key = "key for " } return fmt.Sprintf( "invalid %sGlobalenGnbId.%s: %s%s", key, e.field, e.reason, cause) } var _ error = GlobalenGnbIdValidationError{} var _ interface { Field() string Reason() string Key() bool Cause() error ErrorName() string } = GlobalenGnbIdValidationError{} // Validate checks the field values on EngnbId with the rules defined in the // proto definition for this message. If any rules are violated, the first // error encountered is returned, or nil if there are no violations. func (m *EngnbId) Validate() error { return m.validate(false) } // ValidateAll checks the field values on EngnbId with the rules defined in the // proto definition for this message. If any rules are violated, the result is // a list of violation errors wrapped in EngnbIdMultiError, or nil if none found. func (m *EngnbId) ValidateAll() error { return m.validate(true) } func (m *EngnbId) validate(all bool) error { if m == nil { return nil } var errors []error switch m.EngnbId.(type) { case *EngnbId_GNbId: if all { switch v := interface{}(m.GetGNbId()).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, EngnbIdValidationError{ field: "GNbId", reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, EngnbIdValidationError{ field: "GNbId", reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(m.GetGNbId()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return EngnbIdValidationError{ field: "GNbId", reason: "embedded message failed validation", cause: err, } } } } if len(errors) > 0 { return EngnbIdMultiError(errors) } return nil } // EngnbIdMultiError is an error wrapping multiple validation errors returned // by EngnbId.ValidateAll() if the designated constraints aren't met. type EngnbIdMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m EngnbIdMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) } return strings.Join(msgs, "; ") } // AllErrors returns a list of validation violation errors. func (m EngnbIdMultiError) AllErrors() []error { return m } // EngnbIdValidationError is the validation error returned by EngnbId.Validate // if the designated constraints aren't met. type EngnbIdValidationError struct { field string reason string cause error key bool } // Field function returns field value. func (e EngnbIdValidationError) Field() string { return e.field } // Reason function returns reason value. func (e EngnbIdValidationError) Reason() string { return e.reason } // Cause function returns cause value. func (e EngnbIdValidationError) Cause() error { return e.cause } // Key function returns key value. func (e EngnbIdValidationError) Key() bool { return e.key } // ErrorName returns error name. func (e EngnbIdValidationError) ErrorName() string { return "EngnbIdValidationError" } // Error satisfies the builtin error interface func (e EngnbIdValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) } key := "" if e.key { key = "key for " } return fmt.Sprintf( "invalid %sEngnbId.%s: %s%s", key, e.field, e.reason, cause) } var _ error = EngnbIdValidationError{} var _ interface { Field() string Reason() string Key() bool Cause() error ErrorName() string } = EngnbIdValidationError{} // Validate checks the field values on GlobalRmetnodeNgEnbId with the rules // defined in the proto definition for this message. If any rules are // violated, the first error encountered is returned, or nil if there are no violations. func (m *GlobalRmetnodeNgEnbId) Validate() error { return m.validate(false) } // ValidateAll checks the field values on GlobalRmetnodeNgEnbId with the rules // defined in the proto definition for this message. If any rules are // violated, the result is a list of violation errors wrapped in // GlobalRmetnodeNgEnbIdMultiError, or nil if none found. func (m *GlobalRmetnodeNgEnbId) ValidateAll() error { return m.validate(true) } func (m *GlobalRmetnodeNgEnbId) validate(all bool) error { if m == nil { return nil } var errors []error if all { switch v := interface{}(m.GetGlobalNgENbId()).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, GlobalRmetnodeNgEnbIdValidationError{ field: "GlobalNgENbId", reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, GlobalRmetnodeNgEnbIdValidationError{ field: "GlobalNgENbId", reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(m.GetGlobalNgENbId()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return GlobalRmetnodeNgEnbIdValidationError{ field: "GlobalNgENbId", reason: "embedded message failed validation", cause: err, } } } if m.GNbDuId != nil { if all { switch v := interface{}(m.GetGNbDuId()).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, GlobalRmetnodeNgEnbIdValidationError{ field: "GNbDuId", reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, GlobalRmetnodeNgEnbIdValidationError{ field: "GNbDuId", reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(m.GetGNbDuId()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return GlobalRmetnodeNgEnbIdValidationError{ field: "GNbDuId", reason: "embedded message failed validation", cause: err, } } } } if len(errors) > 0 { return GlobalRmetnodeNgEnbIdMultiError(errors) } return nil } // GlobalRmetnodeNgEnbIdMultiError is an error wrapping multiple validation // errors returned by GlobalRmetnodeNgEnbId.ValidateAll() if the designated // constraints aren't met. type GlobalRmetnodeNgEnbIdMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m GlobalRmetnodeNgEnbIdMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) } return strings.Join(msgs, "; ") } // AllErrors returns a list of validation violation errors. func (m GlobalRmetnodeNgEnbIdMultiError) AllErrors() []error { return m } // GlobalRmetnodeNgEnbIdValidationError is the validation error returned by // GlobalRmetnodeNgEnbId.Validate if the designated constraints aren't met. type GlobalRmetnodeNgEnbIdValidationError struct { field string reason string cause error key bool } // Field function returns field value. func (e GlobalRmetnodeNgEnbIdValidationError) Field() string { return e.field } // Reason function returns reason value. func (e GlobalRmetnodeNgEnbIdValidationError) Reason() string { return e.reason } // Cause function returns cause value. func (e GlobalRmetnodeNgEnbIdValidationError) Cause() error { return e.cause } // Key function returns key value. func (e GlobalRmetnodeNgEnbIdValidationError) Key() bool { return e.key } // ErrorName returns error name. func (e GlobalRmetnodeNgEnbIdValidationError) ErrorName() string { return "GlobalRmetnodeNgEnbIdValidationError" } // Error satisfies the builtin error interface func (e GlobalRmetnodeNgEnbIdValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) } key := "" if e.key { key = "key for " } return fmt.Sprintf( "invalid %sGlobalRmetnodeNgEnbId.%s: %s%s", key, e.field, e.reason, cause) } var _ error = GlobalRmetnodeNgEnbIdValidationError{} var _ interface { Field() string Reason() string Key() bool Cause() error ErrorName() string } = GlobalRmetnodeNgEnbIdValidationError{} // Validate checks the field values on GlobalngeNbId with the rules defined in // the proto definition for this message. If any rules are violated, the first // error encountered is returned, or nil if there are no violations. func (m *GlobalngeNbId) Validate() error { return m.validate(false) } // ValidateAll checks the field values on GlobalngeNbId with the rules defined // in the proto definition for this message. If any rules are violated, the // result is a list of violation errors wrapped in GlobalngeNbIdMultiError, or // nil if none found. func (m *GlobalngeNbId) ValidateAll() error { return m.validate(true) } func (m *GlobalngeNbId) validate(all bool) error { if m == nil { return nil } var errors []error if all { switch v := interface{}(m.GetPlmnId()).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, GlobalngeNbIdValidationError{ field: "PlmnId", reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, GlobalngeNbIdValidationError{ field: "PlmnId", reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(m.GetPlmnId()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return GlobalngeNbIdValidationError{ field: "PlmnId", reason: "embedded message failed validation", cause: err, } } } if all { switch v := interface{}(m.GetEnbId()).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, GlobalngeNbIdValidationError{ field: "EnbId", reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, GlobalngeNbIdValidationError{ field: "EnbId", reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(m.GetEnbId()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return GlobalngeNbIdValidationError{ field: "EnbId", reason: "embedded message failed validation", cause: err, } } } if all { switch v := interface{}(m.GetShortMacroENbId()).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, GlobalngeNbIdValidationError{ field: "ShortMacroENbId", reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, GlobalngeNbIdValidationError{ field: "ShortMacroENbId", reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(m.GetShortMacroENbId()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return GlobalngeNbIdValidationError{ field: "ShortMacroENbId", reason: "embedded message failed validation", cause: err, } } } if all { switch v := interface{}(m.GetLongMacroENbId()).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, GlobalngeNbIdValidationError{ field: "LongMacroENbId", reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, GlobalngeNbIdValidationError{ field: "LongMacroENbId", reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(m.GetLongMacroENbId()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return GlobalngeNbIdValidationError{ field: "LongMacroENbId", reason: "embedded message failed validation", cause: err, } } } if len(errors) > 0 { return GlobalngeNbIdMultiError(errors) } return nil } // GlobalngeNbIdMultiError is an error wrapping multiple validation errors // returned by GlobalngeNbId.ValidateAll() if the designated constraints // aren't met. type GlobalngeNbIdMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m GlobalngeNbIdMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) } return strings.Join(msgs, "; ") } // AllErrors returns a list of validation violation errors. func (m GlobalngeNbIdMultiError) AllErrors() []error { return m } // GlobalngeNbIdValidationError is the validation error returned by // GlobalngeNbId.Validate if the designated constraints aren't met. type GlobalngeNbIdValidationError struct { field string reason string cause error key bool } // Field function returns field value. func (e GlobalngeNbIdValidationError) Field() string { return e.field } // Reason function returns reason value. func (e GlobalngeNbIdValidationError) Reason() string { return e.reason } // Cause function returns cause value. func (e GlobalngeNbIdValidationError) Cause() error { return e.cause } // Key function returns key value. func (e GlobalngeNbIdValidationError) Key() bool { return e.key } // ErrorName returns error name. func (e GlobalngeNbIdValidationError) ErrorName() string { return "GlobalngeNbIdValidationError" } // Error satisfies the builtin error interface func (e GlobalngeNbIdValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) } key := "" if e.key { key = "key for " } return fmt.Sprintf( "invalid %sGlobalngeNbId.%s: %s%s", key, e.field, e.reason, cause) } var _ error = GlobalngeNbIdValidationError{} var _ interface { Field() string Reason() string Key() bool Cause() error ErrorName() string } = GlobalngeNbIdValidationError{} // Validate checks the field values on EnbIdChoice with the rules defined in // the proto definition for this message. If any rules are violated, the first // error encountered is returned, or nil if there are no violations. func (m *EnbIdChoice) Validate() error { return m.validate(false) } // ValidateAll checks the field values on EnbIdChoice with the rules defined in // the proto definition for this message. If any rules are violated, the // result is a list of violation errors wrapped in EnbIdChoiceMultiError, or // nil if none found. func (m *EnbIdChoice) ValidateAll() error { return m.validate(true) } func (m *EnbIdChoice) validate(all bool) error { if m == nil { return nil } var errors []error switch m.EnbIdChoice.(type) { case *EnbIdChoice_EnbIdMacro: if all { switch v := interface{}(m.GetEnbIdMacro()).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, EnbIdChoiceValidationError{ field: "EnbIdMacro", reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, EnbIdChoiceValidationError{ field: "EnbIdMacro", reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(m.GetEnbIdMacro()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return EnbIdChoiceValidationError{ field: "EnbIdMacro", reason: "embedded message failed validation", cause: err, } } } case *EnbIdChoice_EnbIdShortmacro: if all { switch v := interface{}(m.GetEnbIdShortmacro()).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, EnbIdChoiceValidationError{ field: "EnbIdShortmacro", reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, EnbIdChoiceValidationError{ field: "EnbIdShortmacro", reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(m.GetEnbIdShortmacro()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return EnbIdChoiceValidationError{ field: "EnbIdShortmacro", reason: "embedded message failed validation", cause: err, } } } case *EnbIdChoice_EnbIdLongmacro: if all { switch v := interface{}(m.GetEnbIdLongmacro()).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, EnbIdChoiceValidationError{ field: "EnbIdLongmacro", reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, EnbIdChoiceValidationError{ field: "EnbIdLongmacro", reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(m.GetEnbIdLongmacro()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return EnbIdChoiceValidationError{ field: "EnbIdLongmacro", reason: "embedded message failed validation", cause: err, } } } } if len(errors) > 0 { return EnbIdChoiceMultiError(errors) } return nil } // EnbIdChoiceMultiError is an error wrapping multiple validation errors // returned by EnbIdChoice.ValidateAll() if the designated constraints aren't met. type EnbIdChoiceMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m EnbIdChoiceMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) } return strings.Join(msgs, "; ") } // AllErrors returns a list of validation violation errors. func (m EnbIdChoiceMultiError) AllErrors() []error { return m } // EnbIdChoiceValidationError is the validation error returned by // EnbIdChoice.Validate if the designated constraints aren't met. type EnbIdChoiceValidationError struct { field string reason string cause error key bool } // Field function returns field value. func (e EnbIdChoiceValidationError) Field() string { return e.field } // Reason function returns reason value. func (e EnbIdChoiceValidationError) Reason() string { return e.reason } // Cause function returns cause value. func (e EnbIdChoiceValidationError) Cause() error { return e.cause } // Key function returns key value. func (e EnbIdChoiceValidationError) Key() bool { return e.key } // ErrorName returns error name. func (e EnbIdChoiceValidationError) ErrorName() string { return "EnbIdChoiceValidationError" } // Error satisfies the builtin error interface func (e EnbIdChoiceValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) } key := "" if e.key { key = "key for " } return fmt.Sprintf( "invalid %sEnbIdChoice.%s: %s%s", key, e.field, e.reason, cause) } var _ error = EnbIdChoiceValidationError{} var _ interface { Field() string Reason() string Key() bool Cause() error ErrorName() string } = EnbIdChoiceValidationError{} // Validate checks the field values on GlobalRmetnodeEnbId with the rules // defined in the proto definition for this message. If any rules are // violated, the first error encountered is returned, or nil if there are no violations. func (m *GlobalRmetnodeEnbId) Validate() error { return m.validate(false) } // ValidateAll checks the field values on GlobalRmetnodeEnbId with the rules // defined in the proto definition for this message. If any rules are // violated, the result is a list of violation errors wrapped in // GlobalRmetnodeEnbIdMultiError, or nil if none found. func (m *GlobalRmetnodeEnbId) ValidateAll() error { return m.validate(true) } func (m *GlobalRmetnodeEnbId) validate(all bool) error { if m == nil { return nil } var errors []error if all { switch v := interface{}(m.GetGlobalENbId()).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, GlobalRmetnodeEnbIdValidationError{ field: "GlobalENbId", reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, GlobalRmetnodeEnbIdValidationError{ field: "GlobalENbId", reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(m.GetGlobalENbId()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return GlobalRmetnodeEnbIdValidationError{ field: "GlobalENbId", reason: "embedded message failed validation", cause: err, } } } if len(errors) > 0 { return GlobalRmetnodeEnbIdMultiError(errors) } return nil } // GlobalRmetnodeEnbIdMultiError is an error wrapping multiple validation // errors returned by GlobalRmetnodeEnbId.ValidateAll() if the designated // constraints aren't met. type GlobalRmetnodeEnbIdMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m GlobalRmetnodeEnbIdMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) } return strings.Join(msgs, "; ") } // AllErrors returns a list of validation violation errors. func (m GlobalRmetnodeEnbIdMultiError) AllErrors() []error { return m } // GlobalRmetnodeEnbIdValidationError is the validation error returned by // GlobalRmetnodeEnbId.Validate if the designated constraints aren't met. type GlobalRmetnodeEnbIdValidationError struct { field string reason string cause error key bool } // Field function returns field value. func (e GlobalRmetnodeEnbIdValidationError) Field() string { return e.field } // Reason function returns reason value. func (e GlobalRmetnodeEnbIdValidationError) Reason() string { return e.reason } // Cause function returns cause value. func (e GlobalRmetnodeEnbIdValidationError) Cause() error { return e.cause } // Key function returns key value. func (e GlobalRmetnodeEnbIdValidationError) Key() bool { return e.key } // ErrorName returns error name. func (e GlobalRmetnodeEnbIdValidationError) ErrorName() string { return "GlobalRmetnodeEnbIdValidationError" } // Error satisfies the builtin error interface func (e GlobalRmetnodeEnbIdValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) } key := "" if e.key { key = "key for " } return fmt.Sprintf( "invalid %sGlobalRmetnodeEnbId.%s: %s%s", key, e.field, e.reason, cause) } var _ error = GlobalRmetnodeEnbIdValidationError{} var _ interface { Field() string Reason() string Key() bool Cause() error ErrorName() string } = GlobalRmetnodeEnbIdValidationError{} // Validate checks the field values on GlobalEnbId with the rules defined in // the proto definition for this message. If any rules are violated, the first // error encountered is returned, or nil if there are no violations. func (m *GlobalEnbId) Validate() error { return m.validate(false) } // ValidateAll checks the field values on GlobalEnbId with the rules defined in // the proto definition for this message. If any rules are violated, the // result is a list of violation errors wrapped in GlobalEnbIdMultiError, or // nil if none found. func (m *GlobalEnbId) ValidateAll() error { return m.validate(true) } func (m *GlobalEnbId) validate(all bool) error { if m == nil { return nil } var errors []error if all { switch v := interface{}(m.GetPLmnIdentity()).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, GlobalEnbIdValidationError{ field: "PLmnIdentity", reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, GlobalEnbIdValidationError{ field: "PLmnIdentity", reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(m.GetPLmnIdentity()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return GlobalEnbIdValidationError{ field: "PLmnIdentity", reason: "embedded message failed validation", cause: err, } } } if all { switch v := interface{}(m.GetENbId()).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, GlobalEnbIdValidationError{ field: "ENbId", reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, GlobalEnbIdValidationError{ field: "ENbId", reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(m.GetENbId()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return GlobalEnbIdValidationError{ field: "ENbId", reason: "embedded message failed validation", cause: err, } } } if len(errors) > 0 { return GlobalEnbIdMultiError(errors) } return nil } // GlobalEnbIdMultiError is an error wrapping multiple validation errors // returned by GlobalEnbId.ValidateAll() if the designated constraints aren't met. type GlobalEnbIdMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m GlobalEnbIdMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) } return strings.Join(msgs, "; ") } // AllErrors returns a list of validation violation errors. func (m GlobalEnbIdMultiError) AllErrors() []error { return m } // GlobalEnbIdValidationError is the validation error returned by // GlobalEnbId.Validate if the designated constraints aren't met. type GlobalEnbIdValidationError struct { field string reason string cause error key bool } // Field function returns field value. func (e GlobalEnbIdValidationError) Field() string { return e.field } // Reason function returns reason value. func (e GlobalEnbIdValidationError) Reason() string { return e.reason } // Cause function returns cause value. func (e GlobalEnbIdValidationError) Cause() error { return e.cause } // Key function returns key value. func (e GlobalEnbIdValidationError) Key() bool { return e.key } // ErrorName returns error name. func (e GlobalEnbIdValidationError) ErrorName() string { return "GlobalEnbIdValidationError" } // Error satisfies the builtin error interface func (e GlobalEnbIdValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) } key := "" if e.key { key = "key for " } return fmt.Sprintf( "invalid %sGlobalEnbId.%s: %s%s", key, e.field, e.reason, cause) } var _ error = GlobalEnbIdValidationError{} var _ interface { Field() string Reason() string Key() bool Cause() error ErrorName() string } = GlobalEnbIdValidationError{} // Validate checks the field values on EnbId with the rules defined in the // proto definition for this message. If any rules are violated, the first // error encountered is returned, or nil if there are no violations. func (m *EnbId) Validate() error { return m.validate(false) } // ValidateAll checks the field values on EnbId with the rules defined in the // proto definition for this message. If any rules are violated, the result is // a list of violation errors wrapped in EnbIdMultiError, or nil if none found. func (m *EnbId) ValidateAll() error { return m.validate(true) } func (m *EnbId) validate(all bool) error { if m == nil { return nil } var errors []error switch m.EnbId.(type) { case *EnbId_MacroENbId: if all { switch v := interface{}(m.GetMacroENbId()).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, EnbIdValidationError{ field: "MacroENbId", reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, EnbIdValidationError{ field: "MacroENbId", reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(m.GetMacroENbId()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return EnbIdValidationError{ field: "MacroENbId", reason: "embedded message failed validation", cause: err, } } } case *EnbId_HomeENbId: if all { switch v := interface{}(m.GetHomeENbId()).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, EnbIdValidationError{ field: "HomeENbId", reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, EnbIdValidationError{ field: "HomeENbId", reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(m.GetHomeENbId()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return EnbIdValidationError{ field: "HomeENbId", reason: "embedded message failed validation", cause: err, } } } } if len(errors) > 0 { return EnbIdMultiError(errors) } return nil } // EnbIdMultiError is an error wrapping multiple validation errors returned by // EnbId.ValidateAll() if the designated constraints aren't met. type EnbIdMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m EnbIdMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) } return strings.Join(msgs, "; ") } // AllErrors returns a list of validation violation errors. func (m EnbIdMultiError) AllErrors() []error { return m } // EnbIdValidationError is the validation error returned by EnbId.Validate if // the designated constraints aren't met. type EnbIdValidationError struct { field string reason string cause error key bool } // Field function returns field value. func (e EnbIdValidationError) Field() string { return e.field } // Reason function returns reason value. func (e EnbIdValidationError) Reason() string { return e.reason } // Cause function returns cause value. func (e EnbIdValidationError) Cause() error { return e.cause } // Key function returns key value. func (e EnbIdValidationError) Key() bool { return e.key } // ErrorName returns error name. func (e EnbIdValidationError) ErrorName() string { return "EnbIdValidationError" } // Error satisfies the builtin error interface func (e EnbIdValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) } key := "" if e.key { key = "key for " } return fmt.Sprintf( "invalid %sEnbId.%s: %s%s", key, e.field, e.reason, cause) } var _ error = EnbIdValidationError{} var _ interface { Field() string Reason() string Key() bool Cause() error ErrorName() string } = EnbIdValidationError{} // Validate checks the field values on RanfunctionName with the rules defined // in the proto definition for this message. If any rules are violated, the // first error encountered is returned, or nil if there are no violations. func (m *RanfunctionName) Validate() error { return m.validate(false) } // ValidateAll checks the field values on RanfunctionName with the rules // defined in the proto definition for this message. If any rules are // violated, the result is a list of violation errors wrapped in // RanfunctionNameMultiError, or nil if none found. func (m *RanfunctionName) ValidateAll() error { return m.validate(true) } func (m *RanfunctionName) validate(all bool) error { if m == nil { return nil } var errors []error if l := utf8.RuneCountInString(m.GetRanFunctionShortName()); l < 1 || l > 150 { err := RanfunctionNameValidationError{ field: "RanFunctionShortName", reason: "value length must be between 1 and 150 runes, inclusive", } if !all { return err } errors = append(errors, err) } if l := utf8.RuneCountInString(m.GetRanFunctionE2SmOid()); l < 1 || l > 1000 { err := RanfunctionNameValidationError{ field: "RanFunctionE2SmOid", reason: "value length must be between 1 and 1000 runes, inclusive", } if !all { return err } errors = append(errors, err) } if l := utf8.RuneCountInString(m.GetRanFunctionDescription()); l < 1 || l > 150 { err := RanfunctionNameValidationError{ field: "RanFunctionDescription", reason: "value length must be between 1 and 150 runes, inclusive", } if !all { return err } errors = append(errors, err) } if m.RanFunctionInstance != nil { // no validation rules for RanFunctionInstance } if len(errors) > 0 { return RanfunctionNameMultiError(errors) } return nil } // RanfunctionNameMultiError is an error wrapping multiple validation errors // returned by RanfunctionName.ValidateAll() if the designated constraints // aren't met. type RanfunctionNameMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m RanfunctionNameMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) } return strings.Join(msgs, "; ") } // AllErrors returns a list of validation violation errors. func (m RanfunctionNameMultiError) AllErrors() []error { return m } // RanfunctionNameValidationError is the validation error returned by // RanfunctionName.Validate if the designated constraints aren't met. type RanfunctionNameValidationError struct { field string reason string cause error key bool } // Field function returns field value. func (e RanfunctionNameValidationError) Field() string { return e.field } // Reason function returns reason value. func (e RanfunctionNameValidationError) Reason() string { return e.reason } // Cause function returns cause value. func (e RanfunctionNameValidationError) Cause() error { return e.cause } // Key function returns key value. func (e RanfunctionNameValidationError) Key() bool { return e.key } // ErrorName returns error name. func (e RanfunctionNameValidationError) ErrorName() string { return "RanfunctionNameValidationError" } // Error satisfies the builtin error interface func (e RanfunctionNameValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) } key := "" if e.key { key = "key for " } return fmt.Sprintf( "invalid %sRanfunctionName.%s: %s%s", key, e.field, e.reason, cause) } var _ error = RanfunctionNameValidationError{} var _ interface { Field() string Reason() string Key() bool Cause() error ErrorName() string } = RanfunctionNameValidationError{} // Validate checks the field values on RicStyleType with the rules defined in // the proto definition for this message. If any rules are violated, the first // error encountered is returned, or nil if there are no violations. func (m *RicStyleType) Validate() error { return m.validate(false) } // ValidateAll checks the field values on RicStyleType with the rules defined // in the proto definition for this message. If any rules are violated, the // result is a list of violation errors wrapped in RicStyleTypeMultiError, or // nil if none found. func (m *RicStyleType) ValidateAll() error { return m.validate(true) } func (m *RicStyleType) validate(all bool) error { if m == nil { return nil } var errors []error if val := m.GetValue(); val < 0 || val > 255 { err := RicStyleTypeValidationError{ field: "Value", reason: "value must be inside range [0, 255]", } if !all { return err } errors = append(errors, err) } if len(errors) > 0 { return RicStyleTypeMultiError(errors) } return nil } // RicStyleTypeMultiError is an error wrapping multiple validation errors // returned by RicStyleType.ValidateAll() if the designated constraints aren't met. type RicStyleTypeMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m RicStyleTypeMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) } return strings.Join(msgs, "; ") } // AllErrors returns a list of validation violation errors. func (m RicStyleTypeMultiError) AllErrors() []error { return m } // RicStyleTypeValidationError is the validation error returned by // RicStyleType.Validate if the designated constraints aren't met. type RicStyleTypeValidationError struct { field string reason string cause error key bool } // Field function returns field value. func (e RicStyleTypeValidationError) Field() string { return e.field } // Reason function returns reason value. func (e RicStyleTypeValidationError) Reason() string { return e.reason } // Cause function returns cause value. func (e RicStyleTypeValidationError) Cause() error { return e.cause } // Key function returns key value. func (e RicStyleTypeValidationError) Key() bool { return e.key } // ErrorName returns error name. func (e RicStyleTypeValidationError) ErrorName() string { return "RicStyleTypeValidationError" } // Error satisfies the builtin error interface func (e RicStyleTypeValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) } key := "" if e.key { key = "key for " } return fmt.Sprintf( "invalid %sRicStyleType.%s: %s%s", key, e.field, e.reason, cause) } var _ error = RicStyleTypeValidationError{} var _ interface { Field() string Reason() string Key() bool Cause() error ErrorName() string } = RicStyleTypeValidationError{} // Validate checks the field values on RicFormatType with the rules defined in // the proto definition for this message. If any rules are violated, the first // error encountered is returned, or nil if there are no violations. func (m *RicFormatType) Validate() error { return m.validate(false) } // ValidateAll checks the field values on RicFormatType with the rules defined // in the proto definition for this message. If any rules are violated, the // result is a list of violation errors wrapped in RicFormatTypeMultiError, or // nil if none found. func (m *RicFormatType) ValidateAll() error { return m.validate(true) } func (m *RicFormatType) validate(all bool) error { if m == nil { return nil } var errors []error if val := m.GetValue(); val < 0 || val > 255 { err := RicFormatTypeValidationError{ field: "Value", reason: "value must be inside range [0, 255]", } if !all { return err } errors = append(errors, err) } if len(errors) > 0 { return RicFormatTypeMultiError(errors) } return nil } // RicFormatTypeMultiError is an error wrapping multiple validation errors // returned by RicFormatType.ValidateAll() if the designated constraints // aren't met. type RicFormatTypeMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m RicFormatTypeMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) } return strings.Join(msgs, "; ") } // AllErrors returns a list of validation violation errors. func (m RicFormatTypeMultiError) AllErrors() []error { return m } // RicFormatTypeValidationError is the validation error returned by // RicFormatType.Validate if the designated constraints aren't met. type RicFormatTypeValidationError struct { field string reason string cause error key bool } // Field function returns field value. func (e RicFormatTypeValidationError) Field() string { return e.field } // Reason function returns reason value. func (e RicFormatTypeValidationError) Reason() string { return e.reason } // Cause function returns cause value. func (e RicFormatTypeValidationError) Cause() error { return e.cause } // Key function returns key value. func (e RicFormatTypeValidationError) Key() bool { return e.key } // ErrorName returns error name. func (e RicFormatTypeValidationError) ErrorName() string { return "RicFormatTypeValidationError" } // Error satisfies the builtin error interface func (e RicFormatTypeValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) } key := "" if e.key { key = "key for " } return fmt.Sprintf( "invalid %sRicFormatType.%s: %s%s", key, e.field, e.reason, cause) } var _ error = RicFormatTypeValidationError{} var _ interface { Field() string Reason() string Key() bool Cause() error ErrorName() string } = RicFormatTypeValidationError{} // Validate checks the field values on MaxnoofRmetnodes with the rules defined // in the proto definition for this message. If any rules are violated, the // first error encountered is returned, or nil if there are no violations. func (m *MaxnoofRmetnodes) Validate() error { return m.validate(false) } // ValidateAll checks the field values on MaxnoofRmetnodes with the rules // defined in the proto definition for this message. If any rules are // violated, the result is a list of violation errors wrapped in // MaxnoofRmetnodesMultiError, or nil if none found. func (m *MaxnoofRmetnodes) ValidateAll() error { return m.validate(true) } func (m *MaxnoofRmetnodes) validate(all bool) error { if m == nil { return nil } var errors []error if m.GetValue() != 1024 { err := MaxnoofRmetnodesValidationError{ field: "Value", reason: "value must equal 1024", } if !all { return err } errors = append(errors, err) } if len(errors) > 0 { return MaxnoofRmetnodesMultiError(errors) } return nil } // MaxnoofRmetnodesMultiError is an error wrapping multiple validation errors // returned by MaxnoofRmetnodes.ValidateAll() if the designated constraints // aren't met. type MaxnoofRmetnodesMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m MaxnoofRmetnodesMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) } return strings.Join(msgs, "; ") } // AllErrors returns a list of validation violation errors. func (m MaxnoofRmetnodesMultiError) AllErrors() []error { return m } // MaxnoofRmetnodesValidationError is the validation error returned by // MaxnoofRmetnodes.Validate if the designated constraints aren't met. type MaxnoofRmetnodesValidationError struct { field string reason string cause error key bool } // Field function returns field value. func (e MaxnoofRmetnodesValidationError) Field() string { return e.field } // Reason function returns reason value. func (e MaxnoofRmetnodesValidationError) Reason() string { return e.reason } // Cause function returns cause value. func (e MaxnoofRmetnodesValidationError) Cause() error { return e.cause } // Key function returns key value. func (e MaxnoofRmetnodesValidationError) Key() bool { return e.key } // ErrorName returns error name. func (e MaxnoofRmetnodesValidationError) ErrorName() string { return "MaxnoofRmetnodesValidationError" } // Error satisfies the builtin error interface func (e MaxnoofRmetnodesValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) } key := "" if e.key { key = "key for " } return fmt.Sprintf( "invalid %sMaxnoofRmetnodes.%s: %s%s", key, e.field, e.reason, cause) } var _ error = MaxnoofRmetnodesValidationError{} var _ interface { Field() string Reason() string Key() bool Cause() error ErrorName() string } = MaxnoofRmetnodesValidationError{} // Validate checks the field values on MaxnoofCells with the rules defined in // the proto definition for this message. If any rules are violated, the first // error encountered is returned, or nil if there are no violations. func (m *MaxnoofCells) Validate() error { return m.validate(false) } // ValidateAll checks the field values on MaxnoofCells with the rules defined // in the proto definition for this message. If any rules are violated, the // result is a list of violation errors wrapped in MaxnoofCellsMultiError, or // nil if none found. func (m *MaxnoofCells) ValidateAll() error { return m.validate(true) } func (m *MaxnoofCells) validate(all bool) error { if m == nil { return nil } var errors []error if m.GetValue() != 16384 { err := MaxnoofCellsValidationError{ field: "Value", reason: "value must equal 16384", } if !all { return err } errors = append(errors, err) } if len(errors) > 0 { return MaxnoofCellsMultiError(errors) } return nil } // MaxnoofCellsMultiError is an error wrapping multiple validation errors // returned by MaxnoofCells.ValidateAll() if the designated constraints aren't met. type MaxnoofCellsMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m MaxnoofCellsMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) } return strings.Join(msgs, "; ") } // AllErrors returns a list of validation violation errors. func (m MaxnoofCellsMultiError) AllErrors() []error { return m } // MaxnoofCellsValidationError is the validation error returned by // MaxnoofCells.Validate if the designated constraints aren't met. type MaxnoofCellsValidationError struct { field string reason string cause error key bool } // Field function returns field value. func (e MaxnoofCellsValidationError) Field() string { return e.field } // Reason function returns reason value. func (e MaxnoofCellsValidationError) Reason() string { return e.reason } // Cause function returns cause value. func (e MaxnoofCellsValidationError) Cause() error { return e.cause } // Key function returns key value. func (e MaxnoofCellsValidationError) Key() bool { return e.key } // ErrorName returns error name. func (e MaxnoofCellsValidationError) ErrorName() string { return "MaxnoofCellsValidationError" } // Error satisfies the builtin error interface func (e MaxnoofCellsValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) } key := "" if e.key { key = "key for " } return fmt.Sprintf( "invalid %sMaxnoofCells.%s: %s%s", key, e.field, e.reason, cause) } var _ error = MaxnoofCellsValidationError{} var _ interface { Field() string Reason() string Key() bool Cause() error ErrorName() string } = MaxnoofCellsValidationError{} // Validate checks the field values on MaxnoofRicstyles with the rules defined // in the proto definition for this message. If any rules are violated, the // first error encountered is returned, or nil if there are no violations. func (m *MaxnoofRicstyles) Validate() error { return m.validate(false) } // ValidateAll checks the field values on MaxnoofRicstyles with the rules // defined in the proto definition for this message. If any rules are // violated, the result is a list of violation errors wrapped in // MaxnoofRicstylesMultiError, or nil if none found. func (m *MaxnoofRicstyles) ValidateAll() error { return m.validate(true) } func (m *MaxnoofRicstyles) validate(all bool) error { if m == nil { return nil } var errors []error if m.GetValue() != 63 { err := MaxnoofRicstylesValidationError{ field: "Value", reason: "value must equal 63", } if !all { return err } errors = append(errors, err) } if len(errors) > 0 { return MaxnoofRicstylesMultiError(errors) } return nil } // MaxnoofRicstylesMultiError is an error wrapping multiple validation errors // returned by MaxnoofRicstyles.ValidateAll() if the designated constraints // aren't met. type MaxnoofRicstylesMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m MaxnoofRicstylesMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) } return strings.Join(msgs, "; ") } // AllErrors returns a list of validation violation errors. func (m MaxnoofRicstylesMultiError) AllErrors() []error { return m } // MaxnoofRicstylesValidationError is the validation error returned by // MaxnoofRicstyles.Validate if the designated constraints aren't met. type MaxnoofRicstylesValidationError struct { field string reason string cause error key bool } // Field function returns field value. func (e MaxnoofRicstylesValidationError) Field() string { return e.field } // Reason function returns reason value. func (e MaxnoofRicstylesValidationError) Reason() string { return e.reason } // Cause function returns cause value. func (e MaxnoofRicstylesValidationError) Cause() error { return e.cause } // Key function returns key value. func (e MaxnoofRicstylesValidationError) Key() bool { return e.key } // ErrorName returns error name. func (e MaxnoofRicstylesValidationError) ErrorName() string { return "MaxnoofRicstylesValidationError" } // Error satisfies the builtin error interface func (e MaxnoofRicstylesValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) } key := "" if e.key { key = "key for " } return fmt.Sprintf( "invalid %sMaxnoofRicstyles.%s: %s%s", key, e.field, e.reason, cause) } var _ error = MaxnoofRicstylesValidationError{} var _ interface { Field() string Reason() string Key() bool Cause() error ErrorName() string } = MaxnoofRicstylesValidationError{} // Validate checks the field values on MaxnoofMeasurementInfo with the rules // defined in the proto definition for this message. If any rules are // violated, the first error encountered is returned, or nil if there are no violations. func (m *MaxnoofMeasurementInfo) Validate() error { return m.validate(false) } // ValidateAll checks the field values on MaxnoofMeasurementInfo with the rules // defined in the proto definition for this message. If any rules are // violated, the result is a list of violation errors wrapped in // MaxnoofMeasurementInfoMultiError, or nil if none found. func (m *MaxnoofMeasurementInfo) ValidateAll() error { return m.validate(true) } func (m *MaxnoofMeasurementInfo) validate(all bool) error { if m == nil { return nil } var errors []error if m.GetValue() != 65536 { err := MaxnoofMeasurementInfoValidationError{ field: "Value", reason: "value must equal 65536", } if !all { return err } errors = append(errors, err) } if len(errors) > 0 { return MaxnoofMeasurementInfoMultiError(errors) } return nil } // MaxnoofMeasurementInfoMultiError is an error wrapping multiple validation // errors returned by MaxnoofMeasurementInfo.ValidateAll() if the designated // constraints aren't met. type MaxnoofMeasurementInfoMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m MaxnoofMeasurementInfoMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) } return strings.Join(msgs, "; ") } // AllErrors returns a list of validation violation errors. func (m MaxnoofMeasurementInfoMultiError) AllErrors() []error { return m } // MaxnoofMeasurementInfoValidationError is the validation error returned by // MaxnoofMeasurementInfo.Validate if the designated constraints aren't met. type MaxnoofMeasurementInfoValidationError struct { field string reason string cause error key bool } // Field function returns field value. func (e MaxnoofMeasurementInfoValidationError) Field() string { return e.field } // Reason function returns reason value. func (e MaxnoofMeasurementInfoValidationError) Reason() string { return e.reason } // Cause function returns cause value. func (e MaxnoofMeasurementInfoValidationError) Cause() error { return e.cause } // Key function returns key value. func (e MaxnoofMeasurementInfoValidationError) Key() bool { return e.key } // ErrorName returns error name. func (e MaxnoofMeasurementInfoValidationError) ErrorName() string { return "MaxnoofMeasurementInfoValidationError" } // Error satisfies the builtin error interface func (e MaxnoofMeasurementInfoValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) } key := "" if e.key { key = "key for " } return fmt.Sprintf( "invalid %sMaxnoofMeasurementInfo.%s: %s%s", key, e.field, e.reason, cause) } var _ error = MaxnoofMeasurementInfoValidationError{} var _ interface { Field() string Reason() string Key() bool Cause() error ErrorName() string } = MaxnoofMeasurementInfoValidationError{} // Validate checks the field values on MaxnoofMeasurementRecord with the rules // defined in the proto definition for this message. If any rules are // violated, the first error encountered is returned, or nil if there are no violations. func (m *MaxnoofMeasurementRecord) Validate() error { return m.validate(false) } // ValidateAll checks the field values on MaxnoofMeasurementRecord with the // rules defined in the proto definition for this message. If any rules are // violated, the result is a list of violation errors wrapped in // MaxnoofMeasurementRecordMultiError, or nil if none found. func (m *MaxnoofMeasurementRecord) ValidateAll() error { return m.validate(true) } func (m *MaxnoofMeasurementRecord) validate(all bool) error { if m == nil { return nil } var errors []error if m.GetValue() != 65536 { err := MaxnoofMeasurementRecordValidationError{ field: "Value", reason: "value must equal 65536", } if !all { return err } errors = append(errors, err) } if len(errors) > 0 { return MaxnoofMeasurementRecordMultiError(errors) } return nil } // MaxnoofMeasurementRecordMultiError is an error wrapping multiple validation // errors returned by MaxnoofMeasurementRecord.ValidateAll() if the designated // constraints aren't met. type MaxnoofMeasurementRecordMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m MaxnoofMeasurementRecordMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) } return strings.Join(msgs, "; ") } // AllErrors returns a list of validation violation errors. func (m MaxnoofMeasurementRecordMultiError) AllErrors() []error { return m } // MaxnoofMeasurementRecordValidationError is the validation error returned by // MaxnoofMeasurementRecord.Validate if the designated constraints aren't met. type MaxnoofMeasurementRecordValidationError struct { field string reason string cause error key bool } // Field function returns field value. func (e MaxnoofMeasurementRecordValidationError) Field() string { return e.field } // Reason function returns reason value. func (e MaxnoofMeasurementRecordValidationError) Reason() string { return e.reason } // Cause function returns cause value. func (e MaxnoofMeasurementRecordValidationError) Cause() error { return e.cause } // Key function returns key value. func (e MaxnoofMeasurementRecordValidationError) Key() bool { return e.key } // ErrorName returns error name. func (e MaxnoofMeasurementRecordValidationError) ErrorName() string { return "MaxnoofMeasurementRecordValidationError" } // Error satisfies the builtin error interface func (e MaxnoofMeasurementRecordValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) } key := "" if e.key { key = "key for " } return fmt.Sprintf( "invalid %sMaxnoofMeasurementRecord.%s: %s%s", key, e.field, e.reason, cause) } var _ error = MaxnoofMeasurementRecordValidationError{} var _ interface { Field() string Reason() string Key() bool Cause() error ErrorName() string } = MaxnoofMeasurementRecordValidationError{} // Validate checks the field values on MaxnoofMeasurementValue with the rules // defined in the proto definition for this message. If any rules are // violated, the first error encountered is returned, or nil if there are no violations. func (m *MaxnoofMeasurementValue) Validate() error { return m.validate(false) } // ValidateAll checks the field values on MaxnoofMeasurementValue with the // rules defined in the proto definition for this message. If any rules are // violated, the result is a list of violation errors wrapped in // MaxnoofMeasurementValueMultiError, or nil if none found. func (m *MaxnoofMeasurementValue) ValidateAll() error { return m.validate(true) } func (m *MaxnoofMeasurementValue) validate(all bool) error { if m == nil { return nil } var errors []error if m.GetValue() != 65536 { err := MaxnoofMeasurementValueValidationError{ field: "Value", reason: "value must equal 65536", } if !all { return err } errors = append(errors, err) } if len(errors) > 0 { return MaxnoofMeasurementValueMultiError(errors) } return nil } // MaxnoofMeasurementValueMultiError is an error wrapping multiple validation // errors returned by MaxnoofMeasurementValue.ValidateAll() if the designated // constraints aren't met. type MaxnoofMeasurementValueMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m MaxnoofMeasurementValueMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) } return strings.Join(msgs, "; ") } // AllErrors returns a list of validation violation errors. func (m MaxnoofMeasurementValueMultiError) AllErrors() []error { return m } // MaxnoofMeasurementValueValidationError is the validation error returned by // MaxnoofMeasurementValue.Validate if the designated constraints aren't met. type MaxnoofMeasurementValueValidationError struct { field string reason string cause error key bool } // Field function returns field value. func (e MaxnoofMeasurementValueValidationError) Field() string { return e.field } // Reason function returns reason value. func (e MaxnoofMeasurementValueValidationError) Reason() string { return e.reason } // Cause function returns cause value. func (e MaxnoofMeasurementValueValidationError) Cause() error { return e.cause } // Key function returns key value. func (e MaxnoofMeasurementValueValidationError) Key() bool { return e.key } // ErrorName returns error name. func (e MaxnoofMeasurementValueValidationError) ErrorName() string { return "MaxnoofMeasurementValueValidationError" } // Error satisfies the builtin error interface func (e MaxnoofMeasurementValueValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) } key := "" if e.key { key = "key for " } return fmt.Sprintf( "invalid %sMaxnoofMeasurementValue.%s: %s%s", key, e.field, e.reason, cause) } var _ error = MaxnoofMeasurementValueValidationError{} var _ interface { Field() string Reason() string Key() bool Cause() error ErrorName() string } = MaxnoofMeasurementValueValidationError{} // Validate checks the field values on MaxofUe with the rules defined in the // proto definition for this message. If any rules are violated, the first // error encountered is returned, or nil if there are no violations. func (m *MaxofUe) Validate() error { return m.validate(false) } // ValidateAll checks the field values on MaxofUe with the rules defined in the // proto definition for this message. If any rules are violated, the result is // a list of violation errors wrapped in MaxofUeMultiError, or nil if none found. func (m *MaxofUe) ValidateAll() error { return m.validate(true) } func (m *MaxofUe) validate(all bool) error { if m == nil { return nil } var errors []error if m.GetValue() != 65536 { err := MaxofUeValidationError{ field: "Value", reason: "value must equal 65536", } if !all { return err } errors = append(errors, err) } if len(errors) > 0 { return MaxofUeMultiError(errors) } return nil } // MaxofUeMultiError is an error wrapping multiple validation errors returned // by MaxofUe.ValidateAll() if the designated constraints aren't met. type MaxofUeMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m MaxofUeMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) } return strings.Join(msgs, "; ") } // AllErrors returns a list of validation violation errors. func (m MaxofUeMultiError) AllErrors() []error { return m } // MaxofUeValidationError is the validation error returned by MaxofUe.Validate // if the designated constraints aren't met. type MaxofUeValidationError struct { field string reason string cause error key bool } // Field function returns field value. func (e MaxofUeValidationError) Field() string { return e.field } // Reason function returns reason value. func (e MaxofUeValidationError) Reason() string { return e.reason } // Cause function returns cause value. func (e MaxofUeValidationError) Cause() error { return e.cause } // Key function returns key value. func (e MaxofUeValidationError) Key() bool { return e.key } // ErrorName returns error name. func (e MaxofUeValidationError) ErrorName() string { return "MaxofUeValidationError" } // Error satisfies the builtin error interface func (e MaxofUeValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) } key := "" if e.key { key = "key for " } return fmt.Sprintf( "invalid %sMaxofUe.%s: %s%s", key, e.field, e.reason, cause) } var _ error = MaxofUeValidationError{} var _ interface { Field() string Reason() string Key() bool Cause() error ErrorName() string } = MaxofUeValidationError{} // Validate checks the field values on Ueid with the rules defined in the proto // definition for this message. If any rules are violated, the first error // encountered is returned, or nil if there are no violations. func (m *Ueid) Validate() error { return m.validate(false) } // ValidateAll checks the field values on Ueid with the rules defined in the // proto definition for this message. If any rules are violated, the result is // a list of violation errors wrapped in UeidMultiError, or nil if none found. func (m *Ueid) ValidateAll() error { return m.validate(true) } func (m *Ueid) validate(all bool) error { if m == nil { return nil } var errors []error if val := m.GetValue(); val < 1 || val > 4294967295 { err := UeidValidationError{ field: "Value", reason: "value must be inside range [1, 4294967295]", } if !all { return err } errors = append(errors, err) } if len(errors) > 0 { return UeidMultiError(errors) } return nil } // UeidMultiError is an error wrapping multiple validation errors returned by // Ueid.ValidateAll() if the designated constraints aren't met. type UeidMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m UeidMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) } return strings.Join(msgs, "; ") } // AllErrors returns a list of validation violation errors. func (m UeidMultiError) AllErrors() []error { return m } // UeidValidationError is the validation error returned by Ueid.Validate if the // designated constraints aren't met. type UeidValidationError struct { field string reason string cause error key bool } // Field function returns field value. func (e UeidValidationError) Field() string { return e.field } // Reason function returns reason value. func (e UeidValidationError) Reason() string { return e.reason } // Cause function returns cause value. func (e UeidValidationError) Cause() error { return e.cause } // Key function returns key value. func (e UeidValidationError) Key() bool { return e.key } // ErrorName returns error name. func (e UeidValidationError) ErrorName() string { return "UeidValidationError" } // Error satisfies the builtin error interface func (e UeidValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) } key := "" if e.key { key = "key for " } return fmt.Sprintf( "invalid %sUeid.%s: %s%s", key, e.field, e.reason, cause) } var _ error = UeidValidationError{} var _ interface { Field() string Reason() string Key() bool Cause() error ErrorName() string } = UeidValidationError{} // Validate checks the field values on Ueitem with the rules defined in the // proto definition for this message. If any rules are violated, the first // error encountered is returned, or nil if there are no violations. func (m *Ueitem) Validate() error { return m.validate(false) } // ValidateAll checks the field values on Ueitem with the rules defined in the // proto definition for this message. If any rules are violated, the result is // a list of violation errors wrapped in UeitemMultiError, or nil if none found. func (m *Ueitem) ValidateAll() error { return m.validate(true) } func (m *Ueitem) validate(all bool) error { if m == nil { return nil } var errors []error if all { switch v := interface{}(m.GetUeId()).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, UeitemValidationError{ field: "UeId", reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, UeitemValidationError{ field: "UeId", reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(m.GetUeId()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return UeitemValidationError{ field: "UeId", reason: "embedded message failed validation", cause: err, } } } if m.UeTag != nil { if all { switch v := interface{}(m.GetUeTag()).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, UeitemValidationError{ field: "UeTag", reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, UeitemValidationError{ field: "UeTag", reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(m.GetUeTag()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return UeitemValidationError{ field: "UeTag", reason: "embedded message failed validation", cause: err, } } } } if len(errors) > 0 { return UeitemMultiError(errors) } return nil } // UeitemMultiError is an error wrapping multiple validation errors returned by // Ueitem.ValidateAll() if the designated constraints aren't met. type UeitemMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m UeitemMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) } return strings.Join(msgs, "; ") } // AllErrors returns a list of validation violation errors. func (m UeitemMultiError) AllErrors() []error { return m } // UeitemValidationError is the validation error returned by Ueitem.Validate if // the designated constraints aren't met. type UeitemValidationError struct { field string reason string cause error key bool } // Field function returns field value. func (e UeitemValidationError) Field() string { return e.field } // Reason function returns reason value. func (e UeitemValidationError) Reason() string { return e.reason } // Cause function returns cause value. func (e UeitemValidationError) Cause() error { return e.cause } // Key function returns key value. func (e UeitemValidationError) Key() bool { return e.key } // ErrorName returns error name. func (e UeitemValidationError) ErrorName() string { return "UeitemValidationError" } // Error satisfies the builtin error interface func (e UeitemValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) } key := "" if e.key { key = "key for " } return fmt.Sprintf( "invalid %sUeitem.%s: %s%s", key, e.field, e.reason, cause) } var _ error = UeitemValidationError{} var _ interface { Field() string Reason() string Key() bool Cause() error ErrorName() string } = UeitemValidationError{} // Validate checks the field values on Uelist with the rules defined in the // proto definition for this message. If any rules are violated, the first // error encountered is returned, or nil if there are no violations. func (m *Uelist) Validate() error { return m.validate(false) } // ValidateAll checks the field values on Uelist with the rules defined in the // proto definition for this message. If any rules are violated, the result is // a list of violation errors wrapped in UelistMultiError, or nil if none found. func (m *Uelist) ValidateAll() error { return m.validate(true) } func (m *Uelist) validate(all bool) error { if m == nil { return nil } var errors []error for idx, item := range m.GetValue() { _, _ = idx, item if all { switch v := interface{}(item).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, UelistValidationError{ field: fmt.Sprintf("Value[%v]", idx), reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, UelistValidationError{ field: fmt.Sprintf("Value[%v]", idx), reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(item).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return UelistValidationError{ field: fmt.Sprintf("Value[%v]", idx), reason: "embedded message failed validation", cause: err, } } } } if len(errors) > 0 { return UelistMultiError(errors) } return nil } // UelistMultiError is an error wrapping multiple validation errors returned by // Uelist.ValidateAll() if the designated constraints aren't met. type UelistMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m UelistMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) } return strings.Join(msgs, "; ") } // AllErrors returns a list of validation violation errors. func (m UelistMultiError) AllErrors() []error { return m } // UelistValidationError is the validation error returned by Uelist.Validate if // the designated constraints aren't met. type UelistValidationError struct { field string reason string cause error key bool } // Field function returns field value. func (e UelistValidationError) Field() string { return e.field } // Reason function returns reason value. func (e UelistValidationError) Reason() string { return e.reason } // Cause function returns cause value. func (e UelistValidationError) Cause() error { return e.cause } // Key function returns key value. func (e UelistValidationError) Key() bool { return e.key } // ErrorName returns error name. func (e UelistValidationError) ErrorName() string { return "UelistValidationError" } // Error satisfies the builtin error interface func (e UelistValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) } key := "" if e.key { key = "key for " } return fmt.Sprintf( "invalid %sUelist.%s: %s%s", key, e.field, e.reason, cause) } var _ error = UelistValidationError{} var _ interface { Field() string Reason() string Key() bool Cause() error ErrorName() string } = UelistValidationError{} // Validate checks the field values on MeasurementInfoList with the rules // defined in the proto definition for this message. If any rules are // violated, the first error encountered is returned, or nil if there are no violations. func (m *MeasurementInfoList) Validate() error { return m.validate(false) } // ValidateAll checks the field values on MeasurementInfoList with the rules // defined in the proto definition for this message. If any rules are // violated, the result is a list of violation errors wrapped in // MeasurementInfoListMultiError, or nil if none found. func (m *MeasurementInfoList) ValidateAll() error { return m.validate(true) } func (m *MeasurementInfoList) validate(all bool) error { if m == nil { return nil } var errors []error for idx, item := range m.GetValue() { _, _ = idx, item if all { switch v := interface{}(item).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, MeasurementInfoListValidationError{ field: fmt.Sprintf("Value[%v]", idx), reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, MeasurementInfoListValidationError{ field: fmt.Sprintf("Value[%v]", idx), reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(item).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return MeasurementInfoListValidationError{ field: fmt.Sprintf("Value[%v]", idx), reason: "embedded message failed validation", cause: err, } } } } if len(errors) > 0 { return MeasurementInfoListMultiError(errors) } return nil } // MeasurementInfoListMultiError is an error wrapping multiple validation // errors returned by MeasurementInfoList.ValidateAll() if the designated // constraints aren't met. type MeasurementInfoListMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m MeasurementInfoListMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) } return strings.Join(msgs, "; ") } // AllErrors returns a list of validation violation errors. func (m MeasurementInfoListMultiError) AllErrors() []error { return m } // MeasurementInfoListValidationError is the validation error returned by // MeasurementInfoList.Validate if the designated constraints aren't met. type MeasurementInfoListValidationError struct { field string reason string cause error key bool } // Field function returns field value. func (e MeasurementInfoListValidationError) Field() string { return e.field } // Reason function returns reason value. func (e MeasurementInfoListValidationError) Reason() string { return e.reason } // Cause function returns cause value. func (e MeasurementInfoListValidationError) Cause() error { return e.cause } // Key function returns key value. func (e MeasurementInfoListValidationError) Key() bool { return e.key } // ErrorName returns error name. func (e MeasurementInfoListValidationError) ErrorName() string { return "MeasurementInfoListValidationError" } // Error satisfies the builtin error interface func (e MeasurementInfoListValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) } key := "" if e.key { key = "key for " } return fmt.Sprintf( "invalid %sMeasurementInfoList.%s: %s%s", key, e.field, e.reason, cause) } var _ error = MeasurementInfoListValidationError{} var _ interface { Field() string Reason() string Key() bool Cause() error ErrorName() string } = MeasurementInfoListValidationError{} // Validate checks the field values on MeasurementInfoItem with the rules // defined in the proto definition for this message. If any rules are // violated, the first error encountered is returned, or nil if there are no violations. func (m *MeasurementInfoItem) Validate() error { return m.validate(false) } // ValidateAll checks the field values on MeasurementInfoItem with the rules // defined in the proto definition for this message. If any rules are // violated, the result is a list of violation errors wrapped in // MeasurementInfoItemMultiError, or nil if none found. func (m *MeasurementInfoItem) ValidateAll() error { return m.validate(true) } func (m *MeasurementInfoItem) validate(all bool) error { if m == nil { return nil } var errors []error if all { switch v := interface{}(m.GetMeasType()).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, MeasurementInfoItemValidationError{ field: "MeasType", reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, MeasurementInfoItemValidationError{ field: "MeasType", reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(m.GetMeasType()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return MeasurementInfoItemValidationError{ field: "MeasType", reason: "embedded message failed validation", cause: err, } } } if len(errors) > 0 { return MeasurementInfoItemMultiError(errors) } return nil } // MeasurementInfoItemMultiError is an error wrapping multiple validation // errors returned by MeasurementInfoItem.ValidateAll() if the designated // constraints aren't met. type MeasurementInfoItemMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m MeasurementInfoItemMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) } return strings.Join(msgs, "; ") } // AllErrors returns a list of validation violation errors. func (m MeasurementInfoItemMultiError) AllErrors() []error { return m } // MeasurementInfoItemValidationError is the validation error returned by // MeasurementInfoItem.Validate if the designated constraints aren't met. type MeasurementInfoItemValidationError struct { field string reason string cause error key bool } // Field function returns field value. func (e MeasurementInfoItemValidationError) Field() string { return e.field } // Reason function returns reason value. func (e MeasurementInfoItemValidationError) Reason() string { return e.reason } // Cause function returns cause value. func (e MeasurementInfoItemValidationError) Cause() error { return e.cause } // Key function returns key value. func (e MeasurementInfoItemValidationError) Key() bool { return e.key } // ErrorName returns error name. func (e MeasurementInfoItemValidationError) ErrorName() string { return "MeasurementInfoItemValidationError" } // Error satisfies the builtin error interface func (e MeasurementInfoItemValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) } key := "" if e.key { key = "key for " } return fmt.Sprintf( "invalid %sMeasurementInfoItem.%s: %s%s", key, e.field, e.reason, cause) } var _ error = MeasurementInfoItemValidationError{} var _ interface { Field() string Reason() string Key() bool Cause() error ErrorName() string } = MeasurementInfoItemValidationError{} // Validate checks the field values on MeasurementData with the rules defined // in the proto definition for this message. If any rules are violated, the // first error encountered is returned, or nil if there are no violations. func (m *MeasurementData) Validate() error { return m.validate(false) } // ValidateAll checks the field values on MeasurementData with the rules // defined in the proto definition for this message. If any rules are // violated, the result is a list of violation errors wrapped in // MeasurementDataMultiError, or nil if none found. func (m *MeasurementData) ValidateAll() error { return m.validate(true) } func (m *MeasurementData) validate(all bool) error { if m == nil { return nil } var errors []error for idx, item := range m.GetValue() { _, _ = idx, item if all { switch v := interface{}(item).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, MeasurementDataValidationError{ field: fmt.Sprintf("Value[%v]", idx), reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, MeasurementDataValidationError{ field: fmt.Sprintf("Value[%v]", idx), reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(item).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return MeasurementDataValidationError{ field: fmt.Sprintf("Value[%v]", idx), reason: "embedded message failed validation", cause: err, } } } } if len(errors) > 0 { return MeasurementDataMultiError(errors) } return nil } // MeasurementDataMultiError is an error wrapping multiple validation errors // returned by MeasurementData.ValidateAll() if the designated constraints // aren't met. type MeasurementDataMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m MeasurementDataMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) } return strings.Join(msgs, "; ") } // AllErrors returns a list of validation violation errors. func (m MeasurementDataMultiError) AllErrors() []error { return m } // MeasurementDataValidationError is the validation error returned by // MeasurementData.Validate if the designated constraints aren't met. type MeasurementDataValidationError struct { field string reason string cause error key bool } // Field function returns field value. func (e MeasurementDataValidationError) Field() string { return e.field } // Reason function returns reason value. func (e MeasurementDataValidationError) Reason() string { return e.reason } // Cause function returns cause value. func (e MeasurementDataValidationError) Cause() error { return e.cause } // Key function returns key value. func (e MeasurementDataValidationError) Key() bool { return e.key } // ErrorName returns error name. func (e MeasurementDataValidationError) ErrorName() string { return "MeasurementDataValidationError" } // Error satisfies the builtin error interface func (e MeasurementDataValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) } key := "" if e.key { key = "key for " } return fmt.Sprintf( "invalid %sMeasurementData.%s: %s%s", key, e.field, e.reason, cause) } var _ error = MeasurementDataValidationError{} var _ interface { Field() string Reason() string Key() bool Cause() error ErrorName() string } = MeasurementDataValidationError{} // Validate checks the field values on MeasurementRecord with the rules defined // in the proto definition for this message. If any rules are violated, the // first error encountered is returned, or nil if there are no violations. func (m *MeasurementRecord) Validate() error { return m.validate(false) } // ValidateAll checks the field values on MeasurementRecord with the rules // defined in the proto definition for this message. If any rules are // violated, the result is a list of violation errors wrapped in // MeasurementRecordMultiError, or nil if none found. func (m *MeasurementRecord) ValidateAll() error { return m.validate(true) } func (m *MeasurementRecord) validate(all bool) error { if m == nil { return nil } var errors []error if all { switch v := interface{}(m.GetUeId()).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, MeasurementRecordValidationError{ field: "UeId", reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, MeasurementRecordValidationError{ field: "UeId", reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(m.GetUeId()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return MeasurementRecordValidationError{ field: "UeId", reason: "embedded message failed validation", cause: err, } } } if all { switch v := interface{}(m.GetUeTag()).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, MeasurementRecordValidationError{ field: "UeTag", reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, MeasurementRecordValidationError{ field: "UeTag", reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(m.GetUeTag()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return MeasurementRecordValidationError{ field: "UeTag", reason: "embedded message failed validation", cause: err, } } } for idx, item := range m.GetMeasRecordItem() { _, _ = idx, item if all { switch v := interface{}(item).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, MeasurementRecordValidationError{ field: fmt.Sprintf("MeasRecordItem[%v]", idx), reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, MeasurementRecordValidationError{ field: fmt.Sprintf("MeasRecordItem[%v]", idx), reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(item).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return MeasurementRecordValidationError{ field: fmt.Sprintf("MeasRecordItem[%v]", idx), reason: "embedded message failed validation", cause: err, } } } } if len(errors) > 0 { return MeasurementRecordMultiError(errors) } return nil } // MeasurementRecordMultiError is an error wrapping multiple validation errors // returned by MeasurementRecord.ValidateAll() if the designated constraints // aren't met. type MeasurementRecordMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m MeasurementRecordMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) } return strings.Join(msgs, "; ") } // AllErrors returns a list of validation violation errors. func (m MeasurementRecordMultiError) AllErrors() []error { return m } // MeasurementRecordValidationError is the validation error returned by // MeasurementRecord.Validate if the designated constraints aren't met. type MeasurementRecordValidationError struct { field string reason string cause error key bool } // Field function returns field value. func (e MeasurementRecordValidationError) Field() string { return e.field } // Reason function returns reason value. func (e MeasurementRecordValidationError) Reason() string { return e.reason } // Cause function returns cause value. func (e MeasurementRecordValidationError) Cause() error { return e.cause } // Key function returns key value. func (e MeasurementRecordValidationError) Key() bool { return e.key } // ErrorName returns error name. func (e MeasurementRecordValidationError) ErrorName() string { return "MeasurementRecordValidationError" } // Error satisfies the builtin error interface func (e MeasurementRecordValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) } key := "" if e.key { key = "key for " } return fmt.Sprintf( "invalid %sMeasurementRecord.%s: %s%s", key, e.field, e.reason, cause) } var _ error = MeasurementRecordValidationError{} var _ interface { Field() string Reason() string Key() bool Cause() error ErrorName() string } = MeasurementRecordValidationError{} // Validate checks the field values on MeasurementRecordItem with the rules // defined in the proto definition for this message. If any rules are // violated, the first error encountered is returned, or nil if there are no violations. func (m *MeasurementRecordItem) Validate() error { return m.validate(false) } // ValidateAll checks the field values on MeasurementRecordItem with the rules // defined in the proto definition for this message. If any rules are // violated, the result is a list of violation errors wrapped in // MeasurementRecordItemMultiError, or nil if none found. func (m *MeasurementRecordItem) ValidateAll() error { return m.validate(true) } func (m *MeasurementRecordItem) validate(all bool) error { if m == nil { return nil } var errors []error switch m.MeasurementRecordItem.(type) { case *MeasurementRecordItem_Integer: // no validation rules for Integer case *MeasurementRecordItem_Real: // no validation rules for Real case *MeasurementRecordItem_NoValue: // no validation rules for NoValue } if len(errors) > 0 { return MeasurementRecordItemMultiError(errors) } return nil } // MeasurementRecordItemMultiError is an error wrapping multiple validation // errors returned by MeasurementRecordItem.ValidateAll() if the designated // constraints aren't met. type MeasurementRecordItemMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m MeasurementRecordItemMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) } return strings.Join(msgs, "; ") } // AllErrors returns a list of validation violation errors. func (m MeasurementRecordItemMultiError) AllErrors() []error { return m } // MeasurementRecordItemValidationError is the validation error returned by // MeasurementRecordItem.Validate if the designated constraints aren't met. type MeasurementRecordItemValidationError struct { field string reason string cause error key bool } // Field function returns field value. func (e MeasurementRecordItemValidationError) Field() string { return e.field } // Reason function returns reason value. func (e MeasurementRecordItemValidationError) Reason() string { return e.reason } // Cause function returns cause value. func (e MeasurementRecordItemValidationError) Cause() error { return e.cause } // Key function returns key value. func (e MeasurementRecordItemValidationError) Key() bool { return e.key } // ErrorName returns error name. func (e MeasurementRecordItemValidationError) ErrorName() string { return "MeasurementRecordItemValidationError" } // Error satisfies the builtin error interface func (e MeasurementRecordItemValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) } key := "" if e.key { key = "key for " } return fmt.Sprintf( "invalid %sMeasurementRecordItem.%s: %s%s", key, e.field, e.reason, cause) } var _ error = MeasurementRecordItemValidationError{} var _ interface { Field() string Reason() string Key() bool Cause() error ErrorName() string } = MeasurementRecordItemValidationError{} // Validate checks the field values on MeasurementInfoActionList with the rules // defined in the proto definition for this message. If any rules are // violated, the first error encountered is returned, or nil if there are no violations. func (m *MeasurementInfoActionList) Validate() error { return m.validate(false) } // ValidateAll checks the field values on MeasurementInfoActionList with the // rules defined in the proto definition for this message. If any rules are // violated, the result is a list of violation errors wrapped in // MeasurementInfoActionListMultiError, or nil if none found. func (m *MeasurementInfoActionList) ValidateAll() error { return m.validate(true) } func (m *MeasurementInfoActionList) validate(all bool) error { if m == nil { return nil } var errors []error for idx, item := range m.GetValue() { _, _ = idx, item if all { switch v := interface{}(item).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, MeasurementInfoActionListValidationError{ field: fmt.Sprintf("Value[%v]", idx), reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, MeasurementInfoActionListValidationError{ field: fmt.Sprintf("Value[%v]", idx), reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(item).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return MeasurementInfoActionListValidationError{ field: fmt.Sprintf("Value[%v]", idx), reason: "embedded message failed validation", cause: err, } } } } if len(errors) > 0 { return MeasurementInfoActionListMultiError(errors) } return nil } // MeasurementInfoActionListMultiError is an error wrapping multiple validation // errors returned by MeasurementInfoActionList.ValidateAll() if the // designated constraints aren't met. type MeasurementInfoActionListMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m MeasurementInfoActionListMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) } return strings.Join(msgs, "; ") } // AllErrors returns a list of validation violation errors. func (m MeasurementInfoActionListMultiError) AllErrors() []error { return m } // MeasurementInfoActionListValidationError is the validation error returned by // MeasurementInfoActionList.Validate if the designated constraints aren't met. type MeasurementInfoActionListValidationError struct { field string reason string cause error key bool } // Field function returns field value. func (e MeasurementInfoActionListValidationError) Field() string { return e.field } // Reason function returns reason value. func (e MeasurementInfoActionListValidationError) Reason() string { return e.reason } // Cause function returns cause value. func (e MeasurementInfoActionListValidationError) Cause() error { return e.cause } // Key function returns key value. func (e MeasurementInfoActionListValidationError) Key() bool { return e.key } // ErrorName returns error name. func (e MeasurementInfoActionListValidationError) ErrorName() string { return "MeasurementInfoActionListValidationError" } // Error satisfies the builtin error interface func (e MeasurementInfoActionListValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) } key := "" if e.key { key = "key for " } return fmt.Sprintf( "invalid %sMeasurementInfoActionList.%s: %s%s", key, e.field, e.reason, cause) } var _ error = MeasurementInfoActionListValidationError{} var _ interface { Field() string Reason() string Key() bool Cause() error ErrorName() string } = MeasurementInfoActionListValidationError{} // Validate checks the field values on MeasurementInfoActionItem with the rules // defined in the proto definition for this message. If any rules are // violated, the first error encountered is returned, or nil if there are no violations. func (m *MeasurementInfoActionItem) Validate() error { return m.validate(false) } // ValidateAll checks the field values on MeasurementInfoActionItem with the // rules defined in the proto definition for this message. If any rules are // violated, the result is a list of violation errors wrapped in // MeasurementInfoActionItemMultiError, or nil if none found. func (m *MeasurementInfoActionItem) ValidateAll() error { return m.validate(true) } func (m *MeasurementInfoActionItem) validate(all bool) error { if m == nil { return nil } var errors []error if all { switch v := interface{}(m.GetMeasName()).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, MeasurementInfoActionItemValidationError{ field: "MeasName", reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, MeasurementInfoActionItemValidationError{ field: "MeasName", reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(m.GetMeasName()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return MeasurementInfoActionItemValidationError{ field: "MeasName", reason: "embedded message failed validation", cause: err, } } } if m.MeasId != nil { if all { switch v := interface{}(m.GetMeasId()).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, MeasurementInfoActionItemValidationError{ field: "MeasId", reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, MeasurementInfoActionItemValidationError{ field: "MeasId", reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(m.GetMeasId()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return MeasurementInfoActionItemValidationError{ field: "MeasId", reason: "embedded message failed validation", cause: err, } } } } if len(errors) > 0 { return MeasurementInfoActionItemMultiError(errors) } return nil } // MeasurementInfoActionItemMultiError is an error wrapping multiple validation // errors returned by MeasurementInfoActionItem.ValidateAll() if the // designated constraints aren't met. type MeasurementInfoActionItemMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m MeasurementInfoActionItemMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) } return strings.Join(msgs, "; ") } // AllErrors returns a list of validation violation errors. func (m MeasurementInfoActionItemMultiError) AllErrors() []error { return m } // MeasurementInfoActionItemValidationError is the validation error returned by // MeasurementInfoActionItem.Validate if the designated constraints aren't met. type MeasurementInfoActionItemValidationError struct { field string reason string cause error key bool } // Field function returns field value. func (e MeasurementInfoActionItemValidationError) Field() string { return e.field } // Reason function returns reason value. func (e MeasurementInfoActionItemValidationError) Reason() string { return e.reason } // Cause function returns cause value. func (e MeasurementInfoActionItemValidationError) Cause() error { return e.cause } // Key function returns key value. func (e MeasurementInfoActionItemValidationError) Key() bool { return e.key } // ErrorName returns error name. func (e MeasurementInfoActionItemValidationError) ErrorName() string { return "MeasurementInfoActionItemValidationError" } // Error satisfies the builtin error interface func (e MeasurementInfoActionItemValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) } key := "" if e.key { key = "key for " } return fmt.Sprintf( "invalid %sMeasurementInfoActionItem.%s: %s%s", key, e.field, e.reason, cause) } var _ error = MeasurementInfoActionItemValidationError{} var _ interface { Field() string Reason() string Key() bool Cause() error ErrorName() string } = MeasurementInfoActionItemValidationError{} // Validate checks the field values on E2SmRmetEventTriggerDefinition with the // rules defined in the proto definition for this message. If any rules are // violated, the first error encountered is returned, or nil if there are no violations. func (m *E2SmRmetEventTriggerDefinition) Validate() error { return m.validate(false) } // ValidateAll checks the field values on E2SmRmetEventTriggerDefinition with // the rules defined in the proto definition for this message. If any rules // are violated, the result is a list of violation errors wrapped in // E2SmRmetEventTriggerDefinitionMultiError, or nil if none found. func (m *E2SmRmetEventTriggerDefinition) ValidateAll() error { return m.validate(true) } func (m *E2SmRmetEventTriggerDefinition) validate(all bool) error { if m == nil { return nil } var errors []error if all { switch v := interface{}(m.GetEventDefinitionFormats()).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, E2SmRmetEventTriggerDefinitionValidationError{ field: "EventDefinitionFormats", reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, E2SmRmetEventTriggerDefinitionValidationError{ field: "EventDefinitionFormats", reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(m.GetEventDefinitionFormats()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return E2SmRmetEventTriggerDefinitionValidationError{ field: "EventDefinitionFormats", reason: "embedded message failed validation", cause: err, } } } if len(errors) > 0 { return E2SmRmetEventTriggerDefinitionMultiError(errors) } return nil } // E2SmRmetEventTriggerDefinitionMultiError is an error wrapping multiple // validation errors returned by E2SmRmetEventTriggerDefinition.ValidateAll() // if the designated constraints aren't met. type E2SmRmetEventTriggerDefinitionMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m E2SmRmetEventTriggerDefinitionMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) } return strings.Join(msgs, "; ") } // AllErrors returns a list of validation violation errors. func (m E2SmRmetEventTriggerDefinitionMultiError) AllErrors() []error { return m } // E2SmRmetEventTriggerDefinitionValidationError is the validation error // returned by E2SmRmetEventTriggerDefinition.Validate if the designated // constraints aren't met. type E2SmRmetEventTriggerDefinitionValidationError struct { field string reason string cause error key bool } // Field function returns field value. func (e E2SmRmetEventTriggerDefinitionValidationError) Field() string { return e.field } // Reason function returns reason value. func (e E2SmRmetEventTriggerDefinitionValidationError) Reason() string { return e.reason } // Cause function returns cause value. func (e E2SmRmetEventTriggerDefinitionValidationError) Cause() error { return e.cause } // Key function returns key value. func (e E2SmRmetEventTriggerDefinitionValidationError) Key() bool { return e.key } // ErrorName returns error name. func (e E2SmRmetEventTriggerDefinitionValidationError) ErrorName() string { return "E2SmRmetEventTriggerDefinitionValidationError" } // Error satisfies the builtin error interface func (e E2SmRmetEventTriggerDefinitionValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) } key := "" if e.key { key = "key for " } return fmt.Sprintf( "invalid %sE2SmRmetEventTriggerDefinition.%s: %s%s", key, e.field, e.reason, cause) } var _ error = E2SmRmetEventTriggerDefinitionValidationError{} var _ interface { Field() string Reason() string Key() bool Cause() error ErrorName() string } = E2SmRmetEventTriggerDefinitionValidationError{} // Validate checks the field values on EventTriggerDefinitionFormats with the // rules defined in the proto definition for this message. If any rules are // violated, the first error encountered is returned, or nil if there are no violations. func (m *EventTriggerDefinitionFormats) Validate() error { return m.validate(false) } // ValidateAll checks the field values on EventTriggerDefinitionFormats with // the rules defined in the proto definition for this message. If any rules // are violated, the result is a list of violation errors wrapped in // EventTriggerDefinitionFormatsMultiError, or nil if none found. func (m *EventTriggerDefinitionFormats) ValidateAll() error { return m.validate(true) } func (m *EventTriggerDefinitionFormats) validate(all bool) error { if m == nil { return nil } var errors []error switch m.E2SmRmetEventTriggerDefinition.(type) { case *EventTriggerDefinitionFormats_EventDefinitionFormat1: if all { switch v := interface{}(m.GetEventDefinitionFormat1()).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, EventTriggerDefinitionFormatsValidationError{ field: "EventDefinitionFormat1", reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, EventTriggerDefinitionFormatsValidationError{ field: "EventDefinitionFormat1", reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(m.GetEventDefinitionFormat1()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return EventTriggerDefinitionFormatsValidationError{ field: "EventDefinitionFormat1", reason: "embedded message failed validation", cause: err, } } } } if len(errors) > 0 { return EventTriggerDefinitionFormatsMultiError(errors) } return nil } // EventTriggerDefinitionFormatsMultiError is an error wrapping multiple // validation errors returned by EventTriggerDefinitionFormats.ValidateAll() // if the designated constraints aren't met. type EventTriggerDefinitionFormatsMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m EventTriggerDefinitionFormatsMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) } return strings.Join(msgs, "; ") } // AllErrors returns a list of validation violation errors. func (m EventTriggerDefinitionFormatsMultiError) AllErrors() []error { return m } // EventTriggerDefinitionFormatsValidationError is the validation error // returned by EventTriggerDefinitionFormats.Validate if the designated // constraints aren't met. type EventTriggerDefinitionFormatsValidationError struct { field string reason string cause error key bool } // Field function returns field value. func (e EventTriggerDefinitionFormatsValidationError) Field() string { return e.field } // Reason function returns reason value. func (e EventTriggerDefinitionFormatsValidationError) Reason() string { return e.reason } // Cause function returns cause value. func (e EventTriggerDefinitionFormatsValidationError) Cause() error { return e.cause } // Key function returns key value. func (e EventTriggerDefinitionFormatsValidationError) Key() bool { return e.key } // ErrorName returns error name. func (e EventTriggerDefinitionFormatsValidationError) ErrorName() string { return "EventTriggerDefinitionFormatsValidationError" } // Error satisfies the builtin error interface func (e EventTriggerDefinitionFormatsValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) } key := "" if e.key { key = "key for " } return fmt.Sprintf( "invalid %sEventTriggerDefinitionFormats.%s: %s%s", key, e.field, e.reason, cause) } var _ error = EventTriggerDefinitionFormatsValidationError{} var _ interface { Field() string Reason() string Key() bool Cause() error ErrorName() string } = EventTriggerDefinitionFormatsValidationError{} // Validate checks the field values on E2SmRmetEventTriggerDefinitionFormat1 // with the rules defined in the proto definition for this message. If any // rules are violated, the first error encountered is returned, or nil if // there are no violations. func (m *E2SmRmetEventTriggerDefinitionFormat1) Validate() error { return m.validate(false) } // ValidateAll checks the field values on E2SmRmetEventTriggerDefinitionFormat1 // with the rules defined in the proto definition for this message. If any // rules are violated, the result is a list of violation errors wrapped in // E2SmRmetEventTriggerDefinitionFormat1MultiError, or nil if none found. func (m *E2SmRmetEventTriggerDefinitionFormat1) ValidateAll() error { return m.validate(true) } func (m *E2SmRmetEventTriggerDefinitionFormat1) validate(all bool) error { if m == nil { return nil } var errors []error // no validation rules for ReportingPeriod if len(errors) > 0 { return E2SmRmetEventTriggerDefinitionFormat1MultiError(errors) } return nil } // E2SmRmetEventTriggerDefinitionFormat1MultiError is an error wrapping // multiple validation errors returned by // E2SmRmetEventTriggerDefinitionFormat1.ValidateAll() if the designated // constraints aren't met. type E2SmRmetEventTriggerDefinitionFormat1MultiError []error // Error returns a concatenation of all the error messages it wraps. func (m E2SmRmetEventTriggerDefinitionFormat1MultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) } return strings.Join(msgs, "; ") } // AllErrors returns a list of validation violation errors. func (m E2SmRmetEventTriggerDefinitionFormat1MultiError) AllErrors() []error { return m } // E2SmRmetEventTriggerDefinitionFormat1ValidationError is the validation error // returned by E2SmRmetEventTriggerDefinitionFormat1.Validate if the // designated constraints aren't met. type E2SmRmetEventTriggerDefinitionFormat1ValidationError struct { field string reason string cause error key bool } // Field function returns field value. func (e E2SmRmetEventTriggerDefinitionFormat1ValidationError) Field() string { return e.field } // Reason function returns reason value. func (e E2SmRmetEventTriggerDefinitionFormat1ValidationError) Reason() string { return e.reason } // Cause function returns cause value. func (e E2SmRmetEventTriggerDefinitionFormat1ValidationError) Cause() error { return e.cause } // Key function returns key value. func (e E2SmRmetEventTriggerDefinitionFormat1ValidationError) Key() bool { return e.key } // ErrorName returns error name. func (e E2SmRmetEventTriggerDefinitionFormat1ValidationError) ErrorName() string { return "E2SmRmetEventTriggerDefinitionFormat1ValidationError" } // Error satisfies the builtin error interface func (e E2SmRmetEventTriggerDefinitionFormat1ValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) } key := "" if e.key { key = "key for " } return fmt.Sprintf( "invalid %sE2SmRmetEventTriggerDefinitionFormat1.%s: %s%s", key, e.field, e.reason, cause) } var _ error = E2SmRmetEventTriggerDefinitionFormat1ValidationError{} var _ interface { Field() string Reason() string Key() bool Cause() error ErrorName() string } = E2SmRmetEventTriggerDefinitionFormat1ValidationError{} // Validate checks the field values on E2SmRmetActionDefinition with the rules // defined in the proto definition for this message. If any rules are // violated, the first error encountered is returned, or nil if there are no violations. func (m *E2SmRmetActionDefinition) Validate() error { return m.validate(false) } // ValidateAll checks the field values on E2SmRmetActionDefinition with the // rules defined in the proto definition for this message. If any rules are // violated, the result is a list of violation errors wrapped in // E2SmRmetActionDefinitionMultiError, or nil if none found. func (m *E2SmRmetActionDefinition) ValidateAll() error { return m.validate(true) } func (m *E2SmRmetActionDefinition) validate(all bool) error { if m == nil { return nil } var errors []error if all { switch v := interface{}(m.GetRicStyleType()).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, E2SmRmetActionDefinitionValidationError{ field: "RicStyleType", reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, E2SmRmetActionDefinitionValidationError{ field: "RicStyleType", reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(m.GetRicStyleType()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return E2SmRmetActionDefinitionValidationError{ field: "RicStyleType", reason: "embedded message failed validation", cause: err, } } } if all { switch v := interface{}(m.GetActionDefinitionFormats()).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, E2SmRmetActionDefinitionValidationError{ field: "ActionDefinitionFormats", reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, E2SmRmetActionDefinitionValidationError{ field: "ActionDefinitionFormats", reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(m.GetActionDefinitionFormats()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return E2SmRmetActionDefinitionValidationError{ field: "ActionDefinitionFormats", reason: "embedded message failed validation", cause: err, } } } if len(errors) > 0 { return E2SmRmetActionDefinitionMultiError(errors) } return nil } // E2SmRmetActionDefinitionMultiError is an error wrapping multiple validation // errors returned by E2SmRmetActionDefinition.ValidateAll() if the designated // constraints aren't met. type E2SmRmetActionDefinitionMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m E2SmRmetActionDefinitionMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) } return strings.Join(msgs, "; ") } // AllErrors returns a list of validation violation errors. func (m E2SmRmetActionDefinitionMultiError) AllErrors() []error { return m } // E2SmRmetActionDefinitionValidationError is the validation error returned by // E2SmRmetActionDefinition.Validate if the designated constraints aren't met. type E2SmRmetActionDefinitionValidationError struct { field string reason string cause error key bool } // Field function returns field value. func (e E2SmRmetActionDefinitionValidationError) Field() string { return e.field } // Reason function returns reason value. func (e E2SmRmetActionDefinitionValidationError) Reason() string { return e.reason } // Cause function returns cause value. func (e E2SmRmetActionDefinitionValidationError) Cause() error { return e.cause } // Key function returns key value. func (e E2SmRmetActionDefinitionValidationError) Key() bool { return e.key } // ErrorName returns error name. func (e E2SmRmetActionDefinitionValidationError) ErrorName() string { return "E2SmRmetActionDefinitionValidationError" } // Error satisfies the builtin error interface func (e E2SmRmetActionDefinitionValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) } key := "" if e.key { key = "key for " } return fmt.Sprintf( "invalid %sE2SmRmetActionDefinition.%s: %s%s", key, e.field, e.reason, cause) } var _ error = E2SmRmetActionDefinitionValidationError{} var _ interface { Field() string Reason() string Key() bool Cause() error ErrorName() string } = E2SmRmetActionDefinitionValidationError{} // Validate checks the field values on ActionDefinitionFormats with the rules // defined in the proto definition for this message. If any rules are // violated, the first error encountered is returned, or nil if there are no violations. func (m *ActionDefinitionFormats) Validate() error { return m.validate(false) } // ValidateAll checks the field values on ActionDefinitionFormats with the // rules defined in the proto definition for this message. If any rules are // violated, the result is a list of violation errors wrapped in // ActionDefinitionFormatsMultiError, or nil if none found. func (m *ActionDefinitionFormats) ValidateAll() error { return m.validate(true) } func (m *ActionDefinitionFormats) validate(all bool) error { if m == nil { return nil } var errors []error switch m.E2SmRmetActionDefinition.(type) { case *ActionDefinitionFormats_ActionDefinitionFormat1: if all { switch v := interface{}(m.GetActionDefinitionFormat1()).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, ActionDefinitionFormatsValidationError{ field: "ActionDefinitionFormat1", reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, ActionDefinitionFormatsValidationError{ field: "ActionDefinitionFormat1", reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(m.GetActionDefinitionFormat1()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return ActionDefinitionFormatsValidationError{ field: "ActionDefinitionFormat1", reason: "embedded message failed validation", cause: err, } } } } if len(errors) > 0 { return ActionDefinitionFormatsMultiError(errors) } return nil } // ActionDefinitionFormatsMultiError is an error wrapping multiple validation // errors returned by ActionDefinitionFormats.ValidateAll() if the designated // constraints aren't met. type ActionDefinitionFormatsMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m ActionDefinitionFormatsMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) } return strings.Join(msgs, "; ") } // AllErrors returns a list of validation violation errors. func (m ActionDefinitionFormatsMultiError) AllErrors() []error { return m } // ActionDefinitionFormatsValidationError is the validation error returned by // ActionDefinitionFormats.Validate if the designated constraints aren't met. type ActionDefinitionFormatsValidationError struct { field string reason string cause error key bool } // Field function returns field value. func (e ActionDefinitionFormatsValidationError) Field() string { return e.field } // Reason function returns reason value. func (e ActionDefinitionFormatsValidationError) Reason() string { return e.reason } // Cause function returns cause value. func (e ActionDefinitionFormatsValidationError) Cause() error { return e.cause } // Key function returns key value. func (e ActionDefinitionFormatsValidationError) Key() bool { return e.key } // ErrorName returns error name. func (e ActionDefinitionFormatsValidationError) ErrorName() string { return "ActionDefinitionFormatsValidationError" } // Error satisfies the builtin error interface func (e ActionDefinitionFormatsValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) } key := "" if e.key { key = "key for " } return fmt.Sprintf( "invalid %sActionDefinitionFormats.%s: %s%s", key, e.field, e.reason, cause) } var _ error = ActionDefinitionFormatsValidationError{} var _ interface { Field() string Reason() string Key() bool Cause() error ErrorName() string } = ActionDefinitionFormatsValidationError{} // Validate checks the field values on E2SmRmetActionDefinitionFormat1 with the // rules defined in the proto definition for this message. If any rules are // violated, the first error encountered is returned, or nil if there are no violations. func (m *E2SmRmetActionDefinitionFormat1) Validate() error { return m.validate(false) } // ValidateAll checks the field values on E2SmRmetActionDefinitionFormat1 with // the rules defined in the proto definition for this message. If any rules // are violated, the result is a list of violation errors wrapped in // E2SmRmetActionDefinitionFormat1MultiError, or nil if none found. func (m *E2SmRmetActionDefinitionFormat1) ValidateAll() error { return m.validate(true) } func (m *E2SmRmetActionDefinitionFormat1) validate(all bool) error { if m == nil { return nil } var errors []error if all { switch v := interface{}(m.GetCellObjId()).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, E2SmRmetActionDefinitionFormat1ValidationError{ field: "CellObjId", reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, E2SmRmetActionDefinitionFormat1ValidationError{ field: "CellObjId", reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(m.GetCellObjId()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return E2SmRmetActionDefinitionFormat1ValidationError{ field: "CellObjId", reason: "embedded message failed validation", cause: err, } } } if all { switch v := interface{}(m.GetMeasInfoList()).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, E2SmRmetActionDefinitionFormat1ValidationError{ field: "MeasInfoList", reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, E2SmRmetActionDefinitionFormat1ValidationError{ field: "MeasInfoList", reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(m.GetMeasInfoList()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return E2SmRmetActionDefinitionFormat1ValidationError{ field: "MeasInfoList", reason: "embedded message failed validation", cause: err, } } } if all { switch v := interface{}(m.GetGranulPeriod()).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, E2SmRmetActionDefinitionFormat1ValidationError{ field: "GranulPeriod", reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, E2SmRmetActionDefinitionFormat1ValidationError{ field: "GranulPeriod", reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(m.GetGranulPeriod()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return E2SmRmetActionDefinitionFormat1ValidationError{ field: "GranulPeriod", reason: "embedded message failed validation", cause: err, } } } if all { switch v := interface{}(m.GetSubscriptId()).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, E2SmRmetActionDefinitionFormat1ValidationError{ field: "SubscriptId", reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, E2SmRmetActionDefinitionFormat1ValidationError{ field: "SubscriptId", reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(m.GetSubscriptId()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return E2SmRmetActionDefinitionFormat1ValidationError{ field: "SubscriptId", reason: "embedded message failed validation", cause: err, } } } if len(errors) > 0 { return E2SmRmetActionDefinitionFormat1MultiError(errors) } return nil } // E2SmRmetActionDefinitionFormat1MultiError is an error wrapping multiple // validation errors returned by E2SmRmetActionDefinitionFormat1.ValidateAll() // if the designated constraints aren't met. type E2SmRmetActionDefinitionFormat1MultiError []error // Error returns a concatenation of all the error messages it wraps. func (m E2SmRmetActionDefinitionFormat1MultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) } return strings.Join(msgs, "; ") } // AllErrors returns a list of validation violation errors. func (m E2SmRmetActionDefinitionFormat1MultiError) AllErrors() []error { return m } // E2SmRmetActionDefinitionFormat1ValidationError is the validation error // returned by E2SmRmetActionDefinitionFormat1.Validate if the designated // constraints aren't met. type E2SmRmetActionDefinitionFormat1ValidationError struct { field string reason string cause error key bool } // Field function returns field value. func (e E2SmRmetActionDefinitionFormat1ValidationError) Field() string { return e.field } // Reason function returns reason value. func (e E2SmRmetActionDefinitionFormat1ValidationError) Reason() string { return e.reason } // Cause function returns cause value. func (e E2SmRmetActionDefinitionFormat1ValidationError) Cause() error { return e.cause } // Key function returns key value. func (e E2SmRmetActionDefinitionFormat1ValidationError) Key() bool { return e.key } // ErrorName returns error name. func (e E2SmRmetActionDefinitionFormat1ValidationError) ErrorName() string { return "E2SmRmetActionDefinitionFormat1ValidationError" } // Error satisfies the builtin error interface func (e E2SmRmetActionDefinitionFormat1ValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) } key := "" if e.key { key = "key for " } return fmt.Sprintf( "invalid %sE2SmRmetActionDefinitionFormat1.%s: %s%s", key, e.field, e.reason, cause) } var _ error = E2SmRmetActionDefinitionFormat1ValidationError{} var _ interface { Field() string Reason() string Key() bool Cause() error ErrorName() string } = E2SmRmetActionDefinitionFormat1ValidationError{} // Validate checks the field values on E2SmRmetIndicationHeader with the rules // defined in the proto definition for this message. If any rules are // violated, the first error encountered is returned, or nil if there are no violations. func (m *E2SmRmetIndicationHeader) Validate() error { return m.validate(false) } // ValidateAll checks the field values on E2SmRmetIndicationHeader with the // rules defined in the proto definition for this message. If any rules are // violated, the result is a list of violation errors wrapped in // E2SmRmetIndicationHeaderMultiError, or nil if none found. func (m *E2SmRmetIndicationHeader) ValidateAll() error { return m.validate(true) } func (m *E2SmRmetIndicationHeader) validate(all bool) error { if m == nil { return nil } var errors []error if all { switch v := interface{}(m.GetIndicationHeaderFormats()).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, E2SmRmetIndicationHeaderValidationError{ field: "IndicationHeaderFormats", reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, E2SmRmetIndicationHeaderValidationError{ field: "IndicationHeaderFormats", reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(m.GetIndicationHeaderFormats()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return E2SmRmetIndicationHeaderValidationError{ field: "IndicationHeaderFormats", reason: "embedded message failed validation", cause: err, } } } if len(errors) > 0 { return E2SmRmetIndicationHeaderMultiError(errors) } return nil } // E2SmRmetIndicationHeaderMultiError is an error wrapping multiple validation // errors returned by E2SmRmetIndicationHeader.ValidateAll() if the designated // constraints aren't met. type E2SmRmetIndicationHeaderMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m E2SmRmetIndicationHeaderMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) } return strings.Join(msgs, "; ") } // AllErrors returns a list of validation violation errors. func (m E2SmRmetIndicationHeaderMultiError) AllErrors() []error { return m } // E2SmRmetIndicationHeaderValidationError is the validation error returned by // E2SmRmetIndicationHeader.Validate if the designated constraints aren't met. type E2SmRmetIndicationHeaderValidationError struct { field string reason string cause error key bool } // Field function returns field value. func (e E2SmRmetIndicationHeaderValidationError) Field() string { return e.field } // Reason function returns reason value. func (e E2SmRmetIndicationHeaderValidationError) Reason() string { return e.reason } // Cause function returns cause value. func (e E2SmRmetIndicationHeaderValidationError) Cause() error { return e.cause } // Key function returns key value. func (e E2SmRmetIndicationHeaderValidationError) Key() bool { return e.key } // ErrorName returns error name. func (e E2SmRmetIndicationHeaderValidationError) ErrorName() string { return "E2SmRmetIndicationHeaderValidationError" } // Error satisfies the builtin error interface func (e E2SmRmetIndicationHeaderValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) } key := "" if e.key { key = "key for " } return fmt.Sprintf( "invalid %sE2SmRmetIndicationHeader.%s: %s%s", key, e.field, e.reason, cause) } var _ error = E2SmRmetIndicationHeaderValidationError{} var _ interface { Field() string Reason() string Key() bool Cause() error ErrorName() string } = E2SmRmetIndicationHeaderValidationError{} // Validate checks the field values on IndicationHeaderFormats with the rules // defined in the proto definition for this message. If any rules are // violated, the first error encountered is returned, or nil if there are no violations. func (m *IndicationHeaderFormats) Validate() error { return m.validate(false) } // ValidateAll checks the field values on IndicationHeaderFormats with the // rules defined in the proto definition for this message. If any rules are // violated, the result is a list of violation errors wrapped in // IndicationHeaderFormatsMultiError, or nil if none found. func (m *IndicationHeaderFormats) ValidateAll() error { return m.validate(true) } func (m *IndicationHeaderFormats) validate(all bool) error { if m == nil { return nil } var errors []error switch m.E2SmRmetIndicationHeader.(type) { case *IndicationHeaderFormats_IndicationHeaderFormat1: if all { switch v := interface{}(m.GetIndicationHeaderFormat1()).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, IndicationHeaderFormatsValidationError{ field: "IndicationHeaderFormat1", reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, IndicationHeaderFormatsValidationError{ field: "IndicationHeaderFormat1", reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(m.GetIndicationHeaderFormat1()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return IndicationHeaderFormatsValidationError{ field: "IndicationHeaderFormat1", reason: "embedded message failed validation", cause: err, } } } } if len(errors) > 0 { return IndicationHeaderFormatsMultiError(errors) } return nil } // IndicationHeaderFormatsMultiError is an error wrapping multiple validation // errors returned by IndicationHeaderFormats.ValidateAll() if the designated // constraints aren't met. type IndicationHeaderFormatsMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m IndicationHeaderFormatsMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) } return strings.Join(msgs, "; ") } // AllErrors returns a list of validation violation errors. func (m IndicationHeaderFormatsMultiError) AllErrors() []error { return m } // IndicationHeaderFormatsValidationError is the validation error returned by // IndicationHeaderFormats.Validate if the designated constraints aren't met. type IndicationHeaderFormatsValidationError struct { field string reason string cause error key bool } // Field function returns field value. func (e IndicationHeaderFormatsValidationError) Field() string { return e.field } // Reason function returns reason value. func (e IndicationHeaderFormatsValidationError) Reason() string { return e.reason } // Cause function returns cause value. func (e IndicationHeaderFormatsValidationError) Cause() error { return e.cause } // Key function returns key value. func (e IndicationHeaderFormatsValidationError) Key() bool { return e.key } // ErrorName returns error name. func (e IndicationHeaderFormatsValidationError) ErrorName() string { return "IndicationHeaderFormatsValidationError" } // Error satisfies the builtin error interface func (e IndicationHeaderFormatsValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) } key := "" if e.key { key = "key for " } return fmt.Sprintf( "invalid %sIndicationHeaderFormats.%s: %s%s", key, e.field, e.reason, cause) } var _ error = IndicationHeaderFormatsValidationError{} var _ interface { Field() string Reason() string Key() bool Cause() error ErrorName() string } = IndicationHeaderFormatsValidationError{} // Validate checks the field values on E2SmRmetIndicationHeaderFormat1 with the // rules defined in the proto definition for this message. If any rules are // violated, the first error encountered is returned, or nil if there are no violations. func (m *E2SmRmetIndicationHeaderFormat1) Validate() error { return m.validate(false) } // ValidateAll checks the field values on E2SmRmetIndicationHeaderFormat1 with // the rules defined in the proto definition for this message. If any rules // are violated, the result is a list of violation errors wrapped in // E2SmRmetIndicationHeaderFormat1MultiError, or nil if none found. func (m *E2SmRmetIndicationHeaderFormat1) ValidateAll() error { return m.validate(true) } func (m *E2SmRmetIndicationHeaderFormat1) validate(all bool) error { if m == nil { return nil } var errors []error if all { switch v := interface{}(m.GetColletStartTime()).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, E2SmRmetIndicationHeaderFormat1ValidationError{ field: "ColletStartTime", reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, E2SmRmetIndicationHeaderFormat1ValidationError{ field: "ColletStartTime", reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(m.GetColletStartTime()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return E2SmRmetIndicationHeaderFormat1ValidationError{ field: "ColletStartTime", reason: "embedded message failed validation", cause: err, } } } if m.FileFormatversion != nil { if l := utf8.RuneCountInString(m.GetFileFormatversion()); l < 0 || l > 15 { err := E2SmRmetIndicationHeaderFormat1ValidationError{ field: "FileFormatversion", reason: "value length must be between 0 and 15 runes, inclusive", } if !all { return err } errors = append(errors, err) } } if m.SenderName != nil { if l := utf8.RuneCountInString(m.GetSenderName()); l < 0 || l > 400 { err := E2SmRmetIndicationHeaderFormat1ValidationError{ field: "SenderName", reason: "value length must be between 0 and 400 runes, inclusive", } if !all { return err } errors = append(errors, err) } } if m.SenderType != nil { if l := utf8.RuneCountInString(m.GetSenderType()); l < 0 || l > 8 { err := E2SmRmetIndicationHeaderFormat1ValidationError{ field: "SenderType", reason: "value length must be between 0 and 8 runes, inclusive", } if !all { return err } errors = append(errors, err) } } if m.VendorName != nil { if l := utf8.RuneCountInString(m.GetVendorName()); l < 0 || l > 32 { err := E2SmRmetIndicationHeaderFormat1ValidationError{ field: "VendorName", reason: "value length must be between 0 and 32 runes, inclusive", } if !all { return err } errors = append(errors, err) } } if m.RmetNodeId != nil { if all { switch v := interface{}(m.GetRmetNodeId()).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, E2SmRmetIndicationHeaderFormat1ValidationError{ field: "RmetNodeId", reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, E2SmRmetIndicationHeaderFormat1ValidationError{ field: "RmetNodeId", reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(m.GetRmetNodeId()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return E2SmRmetIndicationHeaderFormat1ValidationError{ field: "RmetNodeId", reason: "embedded message failed validation", cause: err, } } } } if len(errors) > 0 { return E2SmRmetIndicationHeaderFormat1MultiError(errors) } return nil } // E2SmRmetIndicationHeaderFormat1MultiError is an error wrapping multiple // validation errors returned by E2SmRmetIndicationHeaderFormat1.ValidateAll() // if the designated constraints aren't met. type E2SmRmetIndicationHeaderFormat1MultiError []error // Error returns a concatenation of all the error messages it wraps. func (m E2SmRmetIndicationHeaderFormat1MultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) } return strings.Join(msgs, "; ") } // AllErrors returns a list of validation violation errors. func (m E2SmRmetIndicationHeaderFormat1MultiError) AllErrors() []error { return m } // E2SmRmetIndicationHeaderFormat1ValidationError is the validation error // returned by E2SmRmetIndicationHeaderFormat1.Validate if the designated // constraints aren't met. type E2SmRmetIndicationHeaderFormat1ValidationError struct { field string reason string cause error key bool } // Field function returns field value. func (e E2SmRmetIndicationHeaderFormat1ValidationError) Field() string { return e.field } // Reason function returns reason value. func (e E2SmRmetIndicationHeaderFormat1ValidationError) Reason() string { return e.reason } // Cause function returns cause value. func (e E2SmRmetIndicationHeaderFormat1ValidationError) Cause() error { return e.cause } // Key function returns key value. func (e E2SmRmetIndicationHeaderFormat1ValidationError) Key() bool { return e.key } // ErrorName returns error name. func (e E2SmRmetIndicationHeaderFormat1ValidationError) ErrorName() string { return "E2SmRmetIndicationHeaderFormat1ValidationError" } // Error satisfies the builtin error interface func (e E2SmRmetIndicationHeaderFormat1ValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) } key := "" if e.key { key = "key for " } return fmt.Sprintf( "invalid %sE2SmRmetIndicationHeaderFormat1.%s: %s%s", key, e.field, e.reason, cause) } var _ error = E2SmRmetIndicationHeaderFormat1ValidationError{} var _ interface { Field() string Reason() string Key() bool Cause() error ErrorName() string } = E2SmRmetIndicationHeaderFormat1ValidationError{} // Validate checks the field values on E2SmRmetIndicationMessage with the rules // defined in the proto definition for this message. If any rules are // violated, the first error encountered is returned, or nil if there are no violations. func (m *E2SmRmetIndicationMessage) Validate() error { return m.validate(false) } // ValidateAll checks the field values on E2SmRmetIndicationMessage with the // rules defined in the proto definition for this message. If any rules are // violated, the result is a list of violation errors wrapped in // E2SmRmetIndicationMessageMultiError, or nil if none found. func (m *E2SmRmetIndicationMessage) ValidateAll() error { return m.validate(true) } func (m *E2SmRmetIndicationMessage) validate(all bool) error { if m == nil { return nil } var errors []error if all { switch v := interface{}(m.GetIndicationMessageFormats()).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, E2SmRmetIndicationMessageValidationError{ field: "IndicationMessageFormats", reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, E2SmRmetIndicationMessageValidationError{ field: "IndicationMessageFormats", reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(m.GetIndicationMessageFormats()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return E2SmRmetIndicationMessageValidationError{ field: "IndicationMessageFormats", reason: "embedded message failed validation", cause: err, } } } if len(errors) > 0 { return E2SmRmetIndicationMessageMultiError(errors) } return nil } // E2SmRmetIndicationMessageMultiError is an error wrapping multiple validation // errors returned by E2SmRmetIndicationMessage.ValidateAll() if the // designated constraints aren't met. type E2SmRmetIndicationMessageMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m E2SmRmetIndicationMessageMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) } return strings.Join(msgs, "; ") } // AllErrors returns a list of validation violation errors. func (m E2SmRmetIndicationMessageMultiError) AllErrors() []error { return m } // E2SmRmetIndicationMessageValidationError is the validation error returned by // E2SmRmetIndicationMessage.Validate if the designated constraints aren't met. type E2SmRmetIndicationMessageValidationError struct { field string reason string cause error key bool } // Field function returns field value. func (e E2SmRmetIndicationMessageValidationError) Field() string { return e.field } // Reason function returns reason value. func (e E2SmRmetIndicationMessageValidationError) Reason() string { return e.reason } // Cause function returns cause value. func (e E2SmRmetIndicationMessageValidationError) Cause() error { return e.cause } // Key function returns key value. func (e E2SmRmetIndicationMessageValidationError) Key() bool { return e.key } // ErrorName returns error name. func (e E2SmRmetIndicationMessageValidationError) ErrorName() string { return "E2SmRmetIndicationMessageValidationError" } // Error satisfies the builtin error interface func (e E2SmRmetIndicationMessageValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) } key := "" if e.key { key = "key for " } return fmt.Sprintf( "invalid %sE2SmRmetIndicationMessage.%s: %s%s", key, e.field, e.reason, cause) } var _ error = E2SmRmetIndicationMessageValidationError{} var _ interface { Field() string Reason() string Key() bool Cause() error ErrorName() string } = E2SmRmetIndicationMessageValidationError{} // Validate checks the field values on IndicationMessageFormats with the rules // defined in the proto definition for this message. If any rules are // violated, the first error encountered is returned, or nil if there are no violations. func (m *IndicationMessageFormats) Validate() error { return m.validate(false) } // ValidateAll checks the field values on IndicationMessageFormats with the // rules defined in the proto definition for this message. If any rules are // violated, the result is a list of violation errors wrapped in // IndicationMessageFormatsMultiError, or nil if none found. func (m *IndicationMessageFormats) ValidateAll() error { return m.validate(true) } func (m *IndicationMessageFormats) validate(all bool) error { if m == nil { return nil } var errors []error switch m.E2SmRmetIndicationMessage.(type) { case *IndicationMessageFormats_IndicationMessageFormat1: if all { switch v := interface{}(m.GetIndicationMessageFormat1()).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, IndicationMessageFormatsValidationError{ field: "IndicationMessageFormat1", reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, IndicationMessageFormatsValidationError{ field: "IndicationMessageFormat1", reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(m.GetIndicationMessageFormat1()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return IndicationMessageFormatsValidationError{ field: "IndicationMessageFormat1", reason: "embedded message failed validation", cause: err, } } } } if len(errors) > 0 { return IndicationMessageFormatsMultiError(errors) } return nil } // IndicationMessageFormatsMultiError is an error wrapping multiple validation // errors returned by IndicationMessageFormats.ValidateAll() if the designated // constraints aren't met. type IndicationMessageFormatsMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m IndicationMessageFormatsMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) } return strings.Join(msgs, "; ") } // AllErrors returns a list of validation violation errors. func (m IndicationMessageFormatsMultiError) AllErrors() []error { return m } // IndicationMessageFormatsValidationError is the validation error returned by // IndicationMessageFormats.Validate if the designated constraints aren't met. type IndicationMessageFormatsValidationError struct { field string reason string cause error key bool } // Field function returns field value. func (e IndicationMessageFormatsValidationError) Field() string { return e.field } // Reason function returns reason value. func (e IndicationMessageFormatsValidationError) Reason() string { return e.reason } // Cause function returns cause value. func (e IndicationMessageFormatsValidationError) Cause() error { return e.cause } // Key function returns key value. func (e IndicationMessageFormatsValidationError) Key() bool { return e.key } // ErrorName returns error name. func (e IndicationMessageFormatsValidationError) ErrorName() string { return "IndicationMessageFormatsValidationError" } // Error satisfies the builtin error interface func (e IndicationMessageFormatsValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) } key := "" if e.key { key = "key for " } return fmt.Sprintf( "invalid %sIndicationMessageFormats.%s: %s%s", key, e.field, e.reason, cause) } var _ error = IndicationMessageFormatsValidationError{} var _ interface { Field() string Reason() string Key() bool Cause() error ErrorName() string } = IndicationMessageFormatsValidationError{} // Validate checks the field values on E2SmRmetIndicationMessageFormat1 with // the rules defined in the proto definition for this message. If any rules // are violated, the first error encountered is returned, or nil if there are // no violations. func (m *E2SmRmetIndicationMessageFormat1) Validate() error { return m.validate(false) } // ValidateAll checks the field values on E2SmRmetIndicationMessageFormat1 with // the rules defined in the proto definition for this message. If any rules // are violated, the result is a list of violation errors wrapped in // E2SmRmetIndicationMessageFormat1MultiError, or nil if none found. func (m *E2SmRmetIndicationMessageFormat1) ValidateAll() error { return m.validate(true) } func (m *E2SmRmetIndicationMessageFormat1) validate(all bool) error { if m == nil { return nil } var errors []error if all { switch v := interface{}(m.GetSubscriptId()).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, E2SmRmetIndicationMessageFormat1ValidationError{ field: "SubscriptId", reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, E2SmRmetIndicationMessageFormat1ValidationError{ field: "SubscriptId", reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(m.GetSubscriptId()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return E2SmRmetIndicationMessageFormat1ValidationError{ field: "SubscriptId", reason: "embedded message failed validation", cause: err, } } } if all { switch v := interface{}(m.GetMeasData()).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, E2SmRmetIndicationMessageFormat1ValidationError{ field: "MeasData", reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, E2SmRmetIndicationMessageFormat1ValidationError{ field: "MeasData", reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(m.GetMeasData()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return E2SmRmetIndicationMessageFormat1ValidationError{ field: "MeasData", reason: "embedded message failed validation", cause: err, } } } if m.CellObjId != nil { if all { switch v := interface{}(m.GetCellObjId()).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, E2SmRmetIndicationMessageFormat1ValidationError{ field: "CellObjId", reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, E2SmRmetIndicationMessageFormat1ValidationError{ field: "CellObjId", reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(m.GetCellObjId()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return E2SmRmetIndicationMessageFormat1ValidationError{ field: "CellObjId", reason: "embedded message failed validation", cause: err, } } } } if m.GranulPeriod != nil { if all { switch v := interface{}(m.GetGranulPeriod()).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, E2SmRmetIndicationMessageFormat1ValidationError{ field: "GranulPeriod", reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, E2SmRmetIndicationMessageFormat1ValidationError{ field: "GranulPeriod", reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(m.GetGranulPeriod()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return E2SmRmetIndicationMessageFormat1ValidationError{ field: "GranulPeriod", reason: "embedded message failed validation", cause: err, } } } } if m.MeasInfoList != nil { if all { switch v := interface{}(m.GetMeasInfoList()).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, E2SmRmetIndicationMessageFormat1ValidationError{ field: "MeasInfoList", reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, E2SmRmetIndicationMessageFormat1ValidationError{ field: "MeasInfoList", reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(m.GetMeasInfoList()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return E2SmRmetIndicationMessageFormat1ValidationError{ field: "MeasInfoList", reason: "embedded message failed validation", cause: err, } } } } if len(errors) > 0 { return E2SmRmetIndicationMessageFormat1MultiError(errors) } return nil } // E2SmRmetIndicationMessageFormat1MultiError is an error wrapping multiple // validation errors returned by // E2SmRmetIndicationMessageFormat1.ValidateAll() if the designated // constraints aren't met. type E2SmRmetIndicationMessageFormat1MultiError []error // Error returns a concatenation of all the error messages it wraps. func (m E2SmRmetIndicationMessageFormat1MultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) } return strings.Join(msgs, "; ") } // AllErrors returns a list of validation violation errors. func (m E2SmRmetIndicationMessageFormat1MultiError) AllErrors() []error { return m } // E2SmRmetIndicationMessageFormat1ValidationError is the validation error // returned by E2SmRmetIndicationMessageFormat1.Validate if the designated // constraints aren't met. type E2SmRmetIndicationMessageFormat1ValidationError struct { field string reason string cause error key bool } // Field function returns field value. func (e E2SmRmetIndicationMessageFormat1ValidationError) Field() string { return e.field } // Reason function returns reason value. func (e E2SmRmetIndicationMessageFormat1ValidationError) Reason() string { return e.reason } // Cause function returns cause value. func (e E2SmRmetIndicationMessageFormat1ValidationError) Cause() error { return e.cause } // Key function returns key value. func (e E2SmRmetIndicationMessageFormat1ValidationError) Key() bool { return e.key } // ErrorName returns error name. func (e E2SmRmetIndicationMessageFormat1ValidationError) ErrorName() string { return "E2SmRmetIndicationMessageFormat1ValidationError" } // Error satisfies the builtin error interface func (e E2SmRmetIndicationMessageFormat1ValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) } key := "" if e.key { key = "key for " } return fmt.Sprintf( "invalid %sE2SmRmetIndicationMessageFormat1.%s: %s%s", key, e.field, e.reason, cause) } var _ error = E2SmRmetIndicationMessageFormat1ValidationError{} var _ interface { Field() string Reason() string Key() bool Cause() error ErrorName() string } = E2SmRmetIndicationMessageFormat1ValidationError{} // Validate checks the field values on E2SmRmetRanfunctionDescription with the // rules defined in the proto definition for this message. If any rules are // violated, the first error encountered is returned, or nil if there are no violations. func (m *E2SmRmetRanfunctionDescription) Validate() error { return m.validate(false) } // ValidateAll checks the field values on E2SmRmetRanfunctionDescription with // the rules defined in the proto definition for this message. If any rules // are violated, the result is a list of violation errors wrapped in // E2SmRmetRanfunctionDescriptionMultiError, or nil if none found. func (m *E2SmRmetRanfunctionDescription) ValidateAll() error { return m.validate(true) } func (m *E2SmRmetRanfunctionDescription) validate(all bool) error { if m == nil { return nil } var errors []error if all { switch v := interface{}(m.GetRanFunctionName()).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, E2SmRmetRanfunctionDescriptionValidationError{ field: "RanFunctionName", reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, E2SmRmetRanfunctionDescriptionValidationError{ field: "RanFunctionName", reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(m.GetRanFunctionName()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return E2SmRmetRanfunctionDescriptionValidationError{ field: "RanFunctionName", reason: "embedded message failed validation", cause: err, } } } if len(m.GetRicRmetNodeList()) > 1024 { err := E2SmRmetRanfunctionDescriptionValidationError{ field: "RicRmetNodeList", reason: "value must contain no more than 1024 item(s)", } if !all { return err } errors = append(errors, err) } for idx, item := range m.GetRicRmetNodeList() { _, _ = idx, item if all { switch v := interface{}(item).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, E2SmRmetRanfunctionDescriptionValidationError{ field: fmt.Sprintf("RicRmetNodeList[%v]", idx), reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, E2SmRmetRanfunctionDescriptionValidationError{ field: fmt.Sprintf("RicRmetNodeList[%v]", idx), reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(item).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return E2SmRmetRanfunctionDescriptionValidationError{ field: fmt.Sprintf("RicRmetNodeList[%v]", idx), reason: "embedded message failed validation", cause: err, } } } } if len(m.GetRicEventTriggerStyleList()) > 63 { err := E2SmRmetRanfunctionDescriptionValidationError{ field: "RicEventTriggerStyleList", reason: "value must contain no more than 63 item(s)", } if !all { return err } errors = append(errors, err) } for idx, item := range m.GetRicEventTriggerStyleList() { _, _ = idx, item if all { switch v := interface{}(item).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, E2SmRmetRanfunctionDescriptionValidationError{ field: fmt.Sprintf("RicEventTriggerStyleList[%v]", idx), reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, E2SmRmetRanfunctionDescriptionValidationError{ field: fmt.Sprintf("RicEventTriggerStyleList[%v]", idx), reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(item).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return E2SmRmetRanfunctionDescriptionValidationError{ field: fmt.Sprintf("RicEventTriggerStyleList[%v]", idx), reason: "embedded message failed validation", cause: err, } } } } if len(m.GetRicReportStyleList()) > 63 { err := E2SmRmetRanfunctionDescriptionValidationError{ field: "RicReportStyleList", reason: "value must contain no more than 63 item(s)", } if !all { return err } errors = append(errors, err) } for idx, item := range m.GetRicReportStyleList() { _, _ = idx, item if all { switch v := interface{}(item).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, E2SmRmetRanfunctionDescriptionValidationError{ field: fmt.Sprintf("RicReportStyleList[%v]", idx), reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, E2SmRmetRanfunctionDescriptionValidationError{ field: fmt.Sprintf("RicReportStyleList[%v]", idx), reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(item).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return E2SmRmetRanfunctionDescriptionValidationError{ field: fmt.Sprintf("RicReportStyleList[%v]", idx), reason: "embedded message failed validation", cause: err, } } } } if len(errors) > 0 { return E2SmRmetRanfunctionDescriptionMultiError(errors) } return nil } // E2SmRmetRanfunctionDescriptionMultiError is an error wrapping multiple // validation errors returned by E2SmRmetRanfunctionDescription.ValidateAll() // if the designated constraints aren't met. type E2SmRmetRanfunctionDescriptionMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m E2SmRmetRanfunctionDescriptionMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) } return strings.Join(msgs, "; ") } // AllErrors returns a list of validation violation errors. func (m E2SmRmetRanfunctionDescriptionMultiError) AllErrors() []error { return m } // E2SmRmetRanfunctionDescriptionValidationError is the validation error // returned by E2SmRmetRanfunctionDescription.Validate if the designated // constraints aren't met. type E2SmRmetRanfunctionDescriptionValidationError struct { field string reason string cause error key bool } // Field function returns field value. func (e E2SmRmetRanfunctionDescriptionValidationError) Field() string { return e.field } // Reason function returns reason value. func (e E2SmRmetRanfunctionDescriptionValidationError) Reason() string { return e.reason } // Cause function returns cause value. func (e E2SmRmetRanfunctionDescriptionValidationError) Cause() error { return e.cause } // Key function returns key value. func (e E2SmRmetRanfunctionDescriptionValidationError) Key() bool { return e.key } // ErrorName returns error name. func (e E2SmRmetRanfunctionDescriptionValidationError) ErrorName() string { return "E2SmRmetRanfunctionDescriptionValidationError" } // Error satisfies the builtin error interface func (e E2SmRmetRanfunctionDescriptionValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) } key := "" if e.key { key = "key for " } return fmt.Sprintf( "invalid %sE2SmRmetRanfunctionDescription.%s: %s%s", key, e.field, e.reason, cause) } var _ error = E2SmRmetRanfunctionDescriptionValidationError{} var _ interface { Field() string Reason() string Key() bool Cause() error ErrorName() string } = E2SmRmetRanfunctionDescriptionValidationError{} // Validate checks the field values on RicRmetnodeItem with the rules defined // in the proto definition for this message. If any rules are violated, the // first error encountered is returned, or nil if there are no violations. func (m *RicRmetnodeItem) Validate() error { return m.validate(false) } // ValidateAll checks the field values on RicRmetnodeItem with the rules // defined in the proto definition for this message. If any rules are // violated, the result is a list of violation errors wrapped in // RicRmetnodeItemMultiError, or nil if none found. func (m *RicRmetnodeItem) ValidateAll() error { return m.validate(true) } func (m *RicRmetnodeItem) validate(all bool) error { if m == nil { return nil } var errors []error if all { switch v := interface{}(m.GetRicRmetnodeType()).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, RicRmetnodeItemValidationError{ field: "RicRmetnodeType", reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, RicRmetnodeItemValidationError{ field: "RicRmetnodeType", reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(m.GetRicRmetnodeType()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return RicRmetnodeItemValidationError{ field: "RicRmetnodeType", reason: "embedded message failed validation", cause: err, } } } if len(m.GetCellMeasurementObjectList()) > 16384 { err := RicRmetnodeItemValidationError{ field: "CellMeasurementObjectList", reason: "value must contain no more than 16384 item(s)", } if !all { return err } errors = append(errors, err) } for idx, item := range m.GetCellMeasurementObjectList() { _, _ = idx, item if all { switch v := interface{}(item).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, RicRmetnodeItemValidationError{ field: fmt.Sprintf("CellMeasurementObjectList[%v]", idx), reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, RicRmetnodeItemValidationError{ field: fmt.Sprintf("CellMeasurementObjectList[%v]", idx), reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(item).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return RicRmetnodeItemValidationError{ field: fmt.Sprintf("CellMeasurementObjectList[%v]", idx), reason: "embedded message failed validation", cause: err, } } } } if len(errors) > 0 { return RicRmetnodeItemMultiError(errors) } return nil } // RicRmetnodeItemMultiError is an error wrapping multiple validation errors // returned by RicRmetnodeItem.ValidateAll() if the designated constraints // aren't met. type RicRmetnodeItemMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m RicRmetnodeItemMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) } return strings.Join(msgs, "; ") } // AllErrors returns a list of validation violation errors. func (m RicRmetnodeItemMultiError) AllErrors() []error { return m } // RicRmetnodeItemValidationError is the validation error returned by // RicRmetnodeItem.Validate if the designated constraints aren't met. type RicRmetnodeItemValidationError struct { field string reason string cause error key bool } // Field function returns field value. func (e RicRmetnodeItemValidationError) Field() string { return e.field } // Reason function returns reason value. func (e RicRmetnodeItemValidationError) Reason() string { return e.reason } // Cause function returns cause value. func (e RicRmetnodeItemValidationError) Cause() error { return e.cause } // Key function returns key value. func (e RicRmetnodeItemValidationError) Key() bool { return e.key } // ErrorName returns error name. func (e RicRmetnodeItemValidationError) ErrorName() string { return "RicRmetnodeItemValidationError" } // Error satisfies the builtin error interface func (e RicRmetnodeItemValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) } key := "" if e.key { key = "key for " } return fmt.Sprintf( "invalid %sRicRmetnodeItem.%s: %s%s", key, e.field, e.reason, cause) } var _ error = RicRmetnodeItemValidationError{} var _ interface { Field() string Reason() string Key() bool Cause() error ErrorName() string } = RicRmetnodeItemValidationError{} // Validate checks the field values on CellMeasurementObjectItem with the rules // defined in the proto definition for this message. If any rules are // violated, the first error encountered is returned, or nil if there are no violations. func (m *CellMeasurementObjectItem) Validate() error { return m.validate(false) } // ValidateAll checks the field values on CellMeasurementObjectItem with the // rules defined in the proto definition for this message. If any rules are // violated, the result is a list of violation errors wrapped in // CellMeasurementObjectItemMultiError, or nil if none found. func (m *CellMeasurementObjectItem) ValidateAll() error { return m.validate(true) } func (m *CellMeasurementObjectItem) validate(all bool) error { if m == nil { return nil } var errors []error if all { switch v := interface{}(m.GetCellObjectId()).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, CellMeasurementObjectItemValidationError{ field: "CellObjectId", reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, CellMeasurementObjectItemValidationError{ field: "CellObjectId", reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(m.GetCellObjectId()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return CellMeasurementObjectItemValidationError{ field: "CellObjectId", reason: "embedded message failed validation", cause: err, } } } if all { switch v := interface{}(m.GetCellGlobalId()).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, CellMeasurementObjectItemValidationError{ field: "CellGlobalId", reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, CellMeasurementObjectItemValidationError{ field: "CellGlobalId", reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(m.GetCellGlobalId()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return CellMeasurementObjectItemValidationError{ field: "CellGlobalId", reason: "embedded message failed validation", cause: err, } } } if len(errors) > 0 { return CellMeasurementObjectItemMultiError(errors) } return nil } // CellMeasurementObjectItemMultiError is an error wrapping multiple validation // errors returned by CellMeasurementObjectItem.ValidateAll() if the // designated constraints aren't met. type CellMeasurementObjectItemMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m CellMeasurementObjectItemMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) } return strings.Join(msgs, "; ") } // AllErrors returns a list of validation violation errors. func (m CellMeasurementObjectItemMultiError) AllErrors() []error { return m } // CellMeasurementObjectItemValidationError is the validation error returned by // CellMeasurementObjectItem.Validate if the designated constraints aren't met. type CellMeasurementObjectItemValidationError struct { field string reason string cause error key bool } // Field function returns field value. func (e CellMeasurementObjectItemValidationError) Field() string { return e.field } // Reason function returns reason value. func (e CellMeasurementObjectItemValidationError) Reason() string { return e.reason } // Cause function returns cause value. func (e CellMeasurementObjectItemValidationError) Cause() error { return e.cause } // Key function returns key value. func (e CellMeasurementObjectItemValidationError) Key() bool { return e.key } // ErrorName returns error name. func (e CellMeasurementObjectItemValidationError) ErrorName() string { return "CellMeasurementObjectItemValidationError" } // Error satisfies the builtin error interface func (e CellMeasurementObjectItemValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) } key := "" if e.key { key = "key for " } return fmt.Sprintf( "invalid %sCellMeasurementObjectItem.%s: %s%s", key, e.field, e.reason, cause) } var _ error = CellMeasurementObjectItemValidationError{} var _ interface { Field() string Reason() string Key() bool Cause() error ErrorName() string } = CellMeasurementObjectItemValidationError{} // Validate checks the field values on RicEventTriggerStyleItem with the rules // defined in the proto definition for this message. If any rules are // violated, the first error encountered is returned, or nil if there are no violations. func (m *RicEventTriggerStyleItem) Validate() error { return m.validate(false) } // ValidateAll checks the field values on RicEventTriggerStyleItem with the // rules defined in the proto definition for this message. If any rules are // violated, the result is a list of violation errors wrapped in // RicEventTriggerStyleItemMultiError, or nil if none found. func (m *RicEventTriggerStyleItem) ValidateAll() error { return m.validate(true) } func (m *RicEventTriggerStyleItem) validate(all bool) error { if m == nil { return nil } var errors []error if all { switch v := interface{}(m.GetRicEventTriggerStyleType()).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, RicEventTriggerStyleItemValidationError{ field: "RicEventTriggerStyleType", reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, RicEventTriggerStyleItemValidationError{ field: "RicEventTriggerStyleType", reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(m.GetRicEventTriggerStyleType()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return RicEventTriggerStyleItemValidationError{ field: "RicEventTriggerStyleType", reason: "embedded message failed validation", cause: err, } } } if all { switch v := interface{}(m.GetRicEventTriggerStyleName()).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, RicEventTriggerStyleItemValidationError{ field: "RicEventTriggerStyleName", reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, RicEventTriggerStyleItemValidationError{ field: "RicEventTriggerStyleName", reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(m.GetRicEventTriggerStyleName()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return RicEventTriggerStyleItemValidationError{ field: "RicEventTriggerStyleName", reason: "embedded message failed validation", cause: err, } } } if all { switch v := interface{}(m.GetRicEventTriggerFormatType()).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, RicEventTriggerStyleItemValidationError{ field: "RicEventTriggerFormatType", reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, RicEventTriggerStyleItemValidationError{ field: "RicEventTriggerFormatType", reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(m.GetRicEventTriggerFormatType()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return RicEventTriggerStyleItemValidationError{ field: "RicEventTriggerFormatType", reason: "embedded message failed validation", cause: err, } } } if len(errors) > 0 { return RicEventTriggerStyleItemMultiError(errors) } return nil } // RicEventTriggerStyleItemMultiError is an error wrapping multiple validation // errors returned by RicEventTriggerStyleItem.ValidateAll() if the designated // constraints aren't met. type RicEventTriggerStyleItemMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m RicEventTriggerStyleItemMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) } return strings.Join(msgs, "; ") } // AllErrors returns a list of validation violation errors. func (m RicEventTriggerStyleItemMultiError) AllErrors() []error { return m } // RicEventTriggerStyleItemValidationError is the validation error returned by // RicEventTriggerStyleItem.Validate if the designated constraints aren't met. type RicEventTriggerStyleItemValidationError struct { field string reason string cause error key bool } // Field function returns field value. func (e RicEventTriggerStyleItemValidationError) Field() string { return e.field } // Reason function returns reason value. func (e RicEventTriggerStyleItemValidationError) Reason() string { return e.reason } // Cause function returns cause value. func (e RicEventTriggerStyleItemValidationError) Cause() error { return e.cause } // Key function returns key value. func (e RicEventTriggerStyleItemValidationError) Key() bool { return e.key } // ErrorName returns error name. func (e RicEventTriggerStyleItemValidationError) ErrorName() string { return "RicEventTriggerStyleItemValidationError" } // Error satisfies the builtin error interface func (e RicEventTriggerStyleItemValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) } key := "" if e.key { key = "key for " } return fmt.Sprintf( "invalid %sRicEventTriggerStyleItem.%s: %s%s", key, e.field, e.reason, cause) } var _ error = RicEventTriggerStyleItemValidationError{} var _ interface { Field() string Reason() string Key() bool Cause() error ErrorName() string } = RicEventTriggerStyleItemValidationError{} // Validate checks the field values on RicReportStyleItem with the rules // defined in the proto definition for this message. If any rules are // violated, the first error encountered is returned, or nil if there are no violations. func (m *RicReportStyleItem) Validate() error { return m.validate(false) } // ValidateAll checks the field values on RicReportStyleItem with the rules // defined in the proto definition for this message. If any rules are // violated, the result is a list of violation errors wrapped in // RicReportStyleItemMultiError, or nil if none found. func (m *RicReportStyleItem) ValidateAll() error { return m.validate(true) } func (m *RicReportStyleItem) validate(all bool) error { if m == nil { return nil } var errors []error if all { switch v := interface{}(m.GetRicReportStyleType()).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, RicReportStyleItemValidationError{ field: "RicReportStyleType", reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, RicReportStyleItemValidationError{ field: "RicReportStyleType", reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(m.GetRicReportStyleType()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return RicReportStyleItemValidationError{ field: "RicReportStyleType", reason: "embedded message failed validation", cause: err, } } } if all { switch v := interface{}(m.GetRicReportStyleName()).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, RicReportStyleItemValidationError{ field: "RicReportStyleName", reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, RicReportStyleItemValidationError{ field: "RicReportStyleName", reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(m.GetRicReportStyleName()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return RicReportStyleItemValidationError{ field: "RicReportStyleName", reason: "embedded message failed validation", cause: err, } } } if all { switch v := interface{}(m.GetRicActionFormatType()).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, RicReportStyleItemValidationError{ field: "RicActionFormatType", reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, RicReportStyleItemValidationError{ field: "RicActionFormatType", reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(m.GetRicActionFormatType()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return RicReportStyleItemValidationError{ field: "RicActionFormatType", reason: "embedded message failed validation", cause: err, } } } if all { switch v := interface{}(m.GetMeasInfoActionList()).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, RicReportStyleItemValidationError{ field: "MeasInfoActionList", reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, RicReportStyleItemValidationError{ field: "MeasInfoActionList", reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(m.GetMeasInfoActionList()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return RicReportStyleItemValidationError{ field: "MeasInfoActionList", reason: "embedded message failed validation", cause: err, } } } if all { switch v := interface{}(m.GetRicIndicationHeaderFormatType()).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, RicReportStyleItemValidationError{ field: "RicIndicationHeaderFormatType", reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, RicReportStyleItemValidationError{ field: "RicIndicationHeaderFormatType", reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(m.GetRicIndicationHeaderFormatType()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return RicReportStyleItemValidationError{ field: "RicIndicationHeaderFormatType", reason: "embedded message failed validation", cause: err, } } } if all { switch v := interface{}(m.GetRicIndicationMessageFormatType()).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, RicReportStyleItemValidationError{ field: "RicIndicationMessageFormatType", reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, RicReportStyleItemValidationError{ field: "RicIndicationMessageFormatType", reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(m.GetRicIndicationMessageFormatType()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return RicReportStyleItemValidationError{ field: "RicIndicationMessageFormatType", reason: "embedded message failed validation", cause: err, } } } if len(errors) > 0 { return RicReportStyleItemMultiError(errors) } return nil } // RicReportStyleItemMultiError is an error wrapping multiple validation errors // returned by RicReportStyleItem.ValidateAll() if the designated constraints // aren't met. type RicReportStyleItemMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m RicReportStyleItemMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) } return strings.Join(msgs, "; ") } // AllErrors returns a list of validation violation errors. func (m RicReportStyleItemMultiError) AllErrors() []error { return m } // RicReportStyleItemValidationError is the validation error returned by // RicReportStyleItem.Validate if the designated constraints aren't met. type RicReportStyleItemValidationError struct { field string reason string cause error key bool } // Field function returns field value. func (e RicReportStyleItemValidationError) Field() string { return e.field } // Reason function returns reason value. func (e RicReportStyleItemValidationError) Reason() string { return e.reason } // Cause function returns cause value. func (e RicReportStyleItemValidationError) Cause() error { return e.cause } // Key function returns key value. func (e RicReportStyleItemValidationError) Key() bool { return e.key } // ErrorName returns error name. func (e RicReportStyleItemValidationError) ErrorName() string { return "RicReportStyleItemValidationError" } // Error satisfies the builtin error interface func (e RicReportStyleItemValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) } key := "" if e.key { key = "key for " } return fmt.Sprintf( "invalid %sRicReportStyleItem.%s: %s%s", key, e.field, e.reason, cause) } var _ error = RicReportStyleItemValidationError{} var _ interface { Field() string Reason() string Key() bool Cause() error ErrorName() string } = RicReportStyleItemValidationError{} // Validate checks the field values on RicStyleName with the rules defined in // the proto definition for this message. If any rules are violated, the first // error encountered is returned, or nil if there are no violations. func (m *RicStyleName) Validate() error { return m.validate(false) } // ValidateAll checks the field values on RicStyleName with the rules defined // in the proto definition for this message. If any rules are violated, the // result is a list of violation errors wrapped in RicStyleNameMultiError, or // nil if none found. func (m *RicStyleName) ValidateAll() error { return m.validate(true) } func (m *RicStyleName) validate(all bool) error { if m == nil { return nil } var errors []error if l := utf8.RuneCountInString(m.GetValue()); l < 1 || l > 150 { err := RicStyleNameValidationError{ field: "Value", reason: "value length must be between 1 and 150 runes, inclusive", } if !all { return err } errors = append(errors, err) } if len(errors) > 0 { return RicStyleNameMultiError(errors) } return nil } // RicStyleNameMultiError is an error wrapping multiple validation errors // returned by RicStyleName.ValidateAll() if the designated constraints aren't met. type RicStyleNameMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m RicStyleNameMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) } return strings.Join(msgs, "; ") } // AllErrors returns a list of validation violation errors. func (m RicStyleNameMultiError) AllErrors() []error { return m } // RicStyleNameValidationError is the validation error returned by // RicStyleName.Validate if the designated constraints aren't met. type RicStyleNameValidationError struct { field string reason string cause error key bool } // Field function returns field value. func (e RicStyleNameValidationError) Field() string { return e.field } // Reason function returns reason value. func (e RicStyleNameValidationError) Reason() string { return e.reason } // Cause function returns cause value. func (e RicStyleNameValidationError) Cause() error { return e.cause } // Key function returns key value. func (e RicStyleNameValidationError) Key() bool { return e.key } // ErrorName returns error name. func (e RicStyleNameValidationError) ErrorName() string { return "RicStyleNameValidationError" } // Error satisfies the builtin error interface func (e RicStyleNameValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) } key := "" if e.key { key = "key for " } return fmt.Sprintf( "invalid %sRicStyleName.%s: %s%s", key, e.field, e.reason, cause) } var _ error = RicStyleNameValidationError{} var _ interface { Field() string Reason() string Key() bool Cause() error ErrorName() string } = RicStyleNameValidationError{} // Validate checks the field values on CellObjectId with the rules defined in // the proto definition for this message. If any rules are violated, the first // error encountered is returned, or nil if there are no violations. func (m *CellObjectId) Validate() error { return m.validate(false) } // ValidateAll checks the field values on CellObjectId with the rules defined // in the proto definition for this message. If any rules are violated, the // result is a list of violation errors wrapped in CellObjectIdMultiError, or // nil if none found. func (m *CellObjectId) ValidateAll() error { return m.validate(true) } func (m *CellObjectId) validate(all bool) error { if m == nil { return nil } var errors []error if l := utf8.RuneCountInString(m.GetValue()); l < 0 || l > 400 { err := CellObjectIdValidationError{ field: "Value", reason: "value length must be between 0 and 400 runes, inclusive", } if !all { return err } errors = append(errors, err) } if len(errors) > 0 { return CellObjectIdMultiError(errors) } return nil } // CellObjectIdMultiError is an error wrapping multiple validation errors // returned by CellObjectId.ValidateAll() if the designated constraints aren't met. type CellObjectIdMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m CellObjectIdMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) } return strings.Join(msgs, "; ") } // AllErrors returns a list of validation violation errors. func (m CellObjectIdMultiError) AllErrors() []error { return m } // CellObjectIdValidationError is the validation error returned by // CellObjectId.Validate if the designated constraints aren't met. type CellObjectIdValidationError struct { field string reason string cause error key bool } // Field function returns field value. func (e CellObjectIdValidationError) Field() string { return e.field } // Reason function returns reason value. func (e CellObjectIdValidationError) Reason() string { return e.reason } // Cause function returns cause value. func (e CellObjectIdValidationError) Cause() error { return e.cause } // Key function returns key value. func (e CellObjectIdValidationError) Key() bool { return e.key } // ErrorName returns error name. func (e CellObjectIdValidationError) ErrorName() string { return "CellObjectIdValidationError" } // Error satisfies the builtin error interface func (e CellObjectIdValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) } key := "" if e.key { key = "key for " } return fmt.Sprintf( "invalid %sCellObjectId.%s: %s%s", key, e.field, e.reason, cause) } var _ error = CellObjectIdValidationError{} var _ interface { Field() string Reason() string Key() bool Cause() error ErrorName() string } = CellObjectIdValidationError{} // Validate checks the field values on MeasurementTypeName with the rules // defined in the proto definition for this message. If any rules are // violated, the first error encountered is returned, or nil if there are no violations. func (m *MeasurementTypeName) Validate() error { return m.validate(false) } // ValidateAll checks the field values on MeasurementTypeName with the rules // defined in the proto definition for this message. If any rules are // violated, the result is a list of violation errors wrapped in // MeasurementTypeNameMultiError, or nil if none found. func (m *MeasurementTypeName) ValidateAll() error { return m.validate(true) } func (m *MeasurementTypeName) validate(all bool) error { if m == nil { return nil } var errors []error if l := utf8.RuneCountInString(m.GetValue()); l < 1 || l > 150 { err := MeasurementTypeNameValidationError{ field: "Value", reason: "value length must be between 1 and 150 runes, inclusive", } if !all { return err } errors = append(errors, err) } if len(errors) > 0 { return MeasurementTypeNameMultiError(errors) } return nil } // MeasurementTypeNameMultiError is an error wrapping multiple validation // errors returned by MeasurementTypeName.ValidateAll() if the designated // constraints aren't met. type MeasurementTypeNameMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m MeasurementTypeNameMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) } return strings.Join(msgs, "; ") } // AllErrors returns a list of validation violation errors. func (m MeasurementTypeNameMultiError) AllErrors() []error { return m } // MeasurementTypeNameValidationError is the validation error returned by // MeasurementTypeName.Validate if the designated constraints aren't met. type MeasurementTypeNameValidationError struct { field string reason string cause error key bool } // Field function returns field value. func (e MeasurementTypeNameValidationError) Field() string { return e.field } // Reason function returns reason value. func (e MeasurementTypeNameValidationError) Reason() string { return e.reason } // Cause function returns cause value. func (e MeasurementTypeNameValidationError) Cause() error { return e.cause } // Key function returns key value. func (e MeasurementTypeNameValidationError) Key() bool { return e.key } // ErrorName returns error name. func (e MeasurementTypeNameValidationError) ErrorName() string { return "MeasurementTypeNameValidationError" } // Error satisfies the builtin error interface func (e MeasurementTypeNameValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) } key := "" if e.key { key = "key for " } return fmt.Sprintf( "invalid %sMeasurementTypeName.%s: %s%s", key, e.field, e.reason, cause) } var _ error = MeasurementTypeNameValidationError{} var _ interface { Field() string Reason() string Key() bool Cause() error ErrorName() string } = MeasurementTypeNameValidationError{} // Validate checks the field values on UeIdentity with the rules defined in the // proto definition for this message. If any rules are violated, the first // error encountered is returned, or nil if there are no violations. func (m *UeIdentity) Validate() error { return m.validate(false) } // ValidateAll checks the field values on UeIdentity with the rules defined in // the proto definition for this message. If any rules are violated, the // result is a list of violation errors wrapped in UeIdentityMultiError, or // nil if none found. func (m *UeIdentity) ValidateAll() error { return m.validate(true) } func (m *UeIdentity) validate(all bool) error { if m == nil { return nil } var errors []error // no validation rules for Value if len(errors) > 0 { return UeIdentityMultiError(errors) } return nil } // UeIdentityMultiError is an error wrapping multiple validation errors // returned by UeIdentity.ValidateAll() if the designated constraints aren't met. type UeIdentityMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m UeIdentityMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) } return strings.Join(msgs, "; ") } // AllErrors returns a list of validation violation errors. func (m UeIdentityMultiError) AllErrors() []error { return m } // UeIdentityValidationError is the validation error returned by // UeIdentity.Validate if the designated constraints aren't met. type UeIdentityValidationError struct { field string reason string cause error key bool } // Field function returns field value. func (e UeIdentityValidationError) Field() string { return e.field } // Reason function returns reason value. func (e UeIdentityValidationError) Reason() string { return e.reason } // Cause function returns cause value. func (e UeIdentityValidationError) Cause() error { return e.cause } // Key function returns key value. func (e UeIdentityValidationError) Key() bool { return e.key } // ErrorName returns error name. func (e UeIdentityValidationError) ErrorName() string { return "UeIdentityValidationError" } // Error satisfies the builtin error interface func (e UeIdentityValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) } key := "" if e.key { key = "key for " } return fmt.Sprintf( "invalid %sUeIdentity.%s: %s%s", key, e.field, e.reason, cause) } var _ error = UeIdentityValidationError{} var _ interface { Field() string Reason() string Key() bool Cause() error ErrorName() string } = UeIdentityValidationError{} // Validate checks the field values on PlmnIdentity with the rules defined in // the proto definition for this message. If any rules are violated, the first // error encountered is returned, or nil if there are no violations. func (m *PlmnIdentity) Validate() error { return m.validate(false) } // ValidateAll checks the field values on PlmnIdentity with the rules defined // in the proto definition for this message. If any rules are violated, the // result is a list of violation errors wrapped in PlmnIdentityMultiError, or // nil if none found. func (m *PlmnIdentity) ValidateAll() error { return m.validate(true) } func (m *PlmnIdentity) validate(all bool) error { if m == nil { return nil } var errors []error if len(m.GetValue()) != 3 { err := PlmnIdentityValidationError{ field: "Value", reason: "value length must be 3 bytes", } if !all { return err } errors = append(errors, err) } if len(errors) > 0 { return PlmnIdentityMultiError(errors) } return nil } // PlmnIdentityMultiError is an error wrapping multiple validation errors // returned by PlmnIdentity.ValidateAll() if the designated constraints aren't met. type PlmnIdentityMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m PlmnIdentityMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) } return strings.Join(msgs, "; ") } // AllErrors returns a list of validation violation errors. func (m PlmnIdentityMultiError) AllErrors() []error { return m } // PlmnIdentityValidationError is the validation error returned by // PlmnIdentity.Validate if the designated constraints aren't met. type PlmnIdentityValidationError struct { field string reason string cause error key bool } // Field function returns field value. func (e PlmnIdentityValidationError) Field() string { return e.field } // Reason function returns reason value. func (e PlmnIdentityValidationError) Reason() string { return e.reason } // Cause function returns cause value. func (e PlmnIdentityValidationError) Cause() error { return e.cause } // Key function returns key value. func (e PlmnIdentityValidationError) Key() bool { return e.key } // ErrorName returns error name. func (e PlmnIdentityValidationError) ErrorName() string { return "PlmnIdentityValidationError" } // Error satisfies the builtin error interface func (e PlmnIdentityValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) } key := "" if e.key { key = "key for " } return fmt.Sprintf( "invalid %sPlmnIdentity.%s: %s%s", key, e.field, e.reason, cause) } var _ error = PlmnIdentityValidationError{} var _ interface { Field() string Reason() string Key() bool Cause() error ErrorName() string } = PlmnIdentityValidationError{} // Validate checks the field values on TimeStamp with the rules defined in the // proto definition for this message. If any rules are violated, the first // error encountered is returned, or nil if there are no violations. func (m *TimeStamp) Validate() error { return m.validate(false) } // ValidateAll checks the field values on TimeStamp with the rules defined in // the proto definition for this message. If any rules are violated, the // result is a list of violation errors wrapped in TimeStampMultiError, or nil // if none found. func (m *TimeStamp) ValidateAll() error { return m.validate(true) } func (m *TimeStamp) validate(all bool) error { if m == nil { return nil } var errors []error if len(m.GetValue()) != 4 { err := TimeStampValidationError{ field: "Value", reason: "value length must be 4 bytes", } if !all { return err } errors = append(errors, err) } if len(errors) > 0 { return TimeStampMultiError(errors) } return nil } // TimeStampMultiError is an error wrapping multiple validation errors returned // by TimeStamp.ValidateAll() if the designated constraints aren't met. type TimeStampMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m TimeStampMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) } return strings.Join(msgs, "; ") } // AllErrors returns a list of validation violation errors. func (m TimeStampMultiError) AllErrors() []error { return m } // TimeStampValidationError is the validation error returned by // TimeStamp.Validate if the designated constraints aren't met. type TimeStampValidationError struct { field string reason string cause error key bool } // Field function returns field value. func (e TimeStampValidationError) Field() string { return e.field } // Reason function returns reason value. func (e TimeStampValidationError) Reason() string { return e.reason } // Cause function returns cause value. func (e TimeStampValidationError) Cause() error { return e.cause } // Key function returns key value. func (e TimeStampValidationError) Key() bool { return e.key } // ErrorName returns error name. func (e TimeStampValidationError) ErrorName() string { return "TimeStampValidationError" } // Error satisfies the builtin error interface func (e TimeStampValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) } key := "" if e.key { key = "key for " } return fmt.Sprintf( "invalid %sTimeStamp.%s: %s%s", key, e.field, e.reason, cause) } var _ error = TimeStampValidationError{} var _ interface { Field() string Reason() string Key() bool Cause() error ErrorName() string } = TimeStampValidationError{} // Validate checks the field values on EutracellIdentity with the rules defined // in the proto definition for this message. If any rules are violated, the // first error encountered is returned, or nil if there are no violations. func (m *EutracellIdentity) Validate() error { return m.validate(false) } // ValidateAll checks the field values on EutracellIdentity with the rules // defined in the proto definition for this message. If any rules are // violated, the result is a list of violation errors wrapped in // EutracellIdentityMultiError, or nil if none found. func (m *EutracellIdentity) ValidateAll() error { return m.validate(true) } func (m *EutracellIdentity) validate(all bool) error { if m == nil { return nil } var errors []error if all { switch v := interface{}(m.GetValue()).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, EutracellIdentityValidationError{ field: "Value", reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, EutracellIdentityValidationError{ field: "Value", reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(m.GetValue()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return EutracellIdentityValidationError{ field: "Value", reason: "embedded message failed validation", cause: err, } } } if len(errors) > 0 { return EutracellIdentityMultiError(errors) } return nil } // EutracellIdentityMultiError is an error wrapping multiple validation errors // returned by EutracellIdentity.ValidateAll() if the designated constraints // aren't met. type EutracellIdentityMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m EutracellIdentityMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) } return strings.Join(msgs, "; ") } // AllErrors returns a list of validation violation errors. func (m EutracellIdentityMultiError) AllErrors() []error { return m } // EutracellIdentityValidationError is the validation error returned by // EutracellIdentity.Validate if the designated constraints aren't met. type EutracellIdentityValidationError struct { field string reason string cause error key bool } // Field function returns field value. func (e EutracellIdentityValidationError) Field() string { return e.field } // Reason function returns reason value. func (e EutracellIdentityValidationError) Reason() string { return e.reason } // Cause function returns cause value. func (e EutracellIdentityValidationError) Cause() error { return e.cause } // Key function returns key value. func (e EutracellIdentityValidationError) Key() bool { return e.key } // ErrorName returns error name. func (e EutracellIdentityValidationError) ErrorName() string { return "EutracellIdentityValidationError" } // Error satisfies the builtin error interface func (e EutracellIdentityValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) } key := "" if e.key { key = "key for " } return fmt.Sprintf( "invalid %sEutracellIdentity.%s: %s%s", key, e.field, e.reason, cause) } var _ error = EutracellIdentityValidationError{} var _ interface { Field() string Reason() string Key() bool Cause() error ErrorName() string } = EutracellIdentityValidationError{} // Validate checks the field values on NrcellIdentity with the rules defined in // the proto definition for this message. If any rules are violated, the first // error encountered is returned, or nil if there are no violations. func (m *NrcellIdentity) Validate() error { return m.validate(false) } // ValidateAll checks the field values on NrcellIdentity with the rules defined // in the proto definition for this message. If any rules are violated, the // result is a list of violation errors wrapped in NrcellIdentityMultiError, // or nil if none found. func (m *NrcellIdentity) ValidateAll() error { return m.validate(true) } func (m *NrcellIdentity) validate(all bool) error { if m == nil { return nil } var errors []error if all { switch v := interface{}(m.GetValue()).(type) { case interface{ ValidateAll() error }: if err := v.ValidateAll(); err != nil { errors = append(errors, NrcellIdentityValidationError{ field: "Value", reason: "embedded message failed validation", cause: err, }) } case interface{ Validate() error }: if err := v.Validate(); err != nil { errors = append(errors, NrcellIdentityValidationError{ field: "Value", reason: "embedded message failed validation", cause: err, }) } } } else if v, ok := interface{}(m.GetValue()).(interface{ Validate() error }); ok { if err := v.Validate(); err != nil { return NrcellIdentityValidationError{ field: "Value", reason: "embedded message failed validation", cause: err, } } } if len(errors) > 0 { return NrcellIdentityMultiError(errors) } return nil } // NrcellIdentityMultiError is an error wrapping multiple validation errors // returned by NrcellIdentity.ValidateAll() if the designated constraints // aren't met. type NrcellIdentityMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m NrcellIdentityMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) } return strings.Join(msgs, "; ") } // AllErrors returns a list of validation violation errors. func (m NrcellIdentityMultiError) AllErrors() []error { return m } // NrcellIdentityValidationError is the validation error returned by // NrcellIdentity.Validate if the designated constraints aren't met. type NrcellIdentityValidationError struct { field string reason string cause error key bool } // Field function returns field value. func (e NrcellIdentityValidationError) Field() string { return e.field } // Reason function returns reason value. func (e NrcellIdentityValidationError) Reason() string { return e.reason } // Cause function returns cause value. func (e NrcellIdentityValidationError) Cause() error { return e.cause } // Key function returns key value. func (e NrcellIdentityValidationError) Key() bool { return e.key } // ErrorName returns error name. func (e NrcellIdentityValidationError) ErrorName() string { return "NrcellIdentityValidationError" } // Error satisfies the builtin error interface func (e NrcellIdentityValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) } key := "" if e.key { key = "key for " } return fmt.Sprintf( "invalid %sNrcellIdentity.%s: %s%s", key, e.field, e.reason, cause) } var _ error = NrcellIdentityValidationError{} var _ interface { Field() string Reason() string Key() bool Cause() error ErrorName() string } = NrcellIdentityValidationError{} // Validate checks the field values on Uetag with the rules defined in the // proto definition for this message. If any rules are violated, the first // error encountered is returned, or nil if there are no violations. func (m *Uetag) Validate() error { return m.validate(false) } // ValidateAll checks the field values on Uetag with the rules defined in the // proto definition for this message. If any rules are violated, the result is // a list of violation errors wrapped in UetagMultiError, or nil if none found. func (m *Uetag) ValidateAll() error { return m.validate(true) } func (m *Uetag) validate(all bool) error { if m == nil { return nil } var errors []error if l := utf8.RuneCountInString(m.GetValue()); l < 0 || l > 150 { err := UetagValidationError{ field: "Value", reason: "value length must be between 0 and 150 runes, inclusive", } if !all { return err } errors = append(errors, err) } if len(errors) > 0 { return UetagMultiError(errors) } return nil } // UetagMultiError is an error wrapping multiple validation errors returned by // Uetag.ValidateAll() if the designated constraints aren't met. type UetagMultiError []error // Error returns a concatenation of all the error messages it wraps. func (m UetagMultiError) Error() string { var msgs []string for _, err := range m { msgs = append(msgs, err.Error()) } return strings.Join(msgs, "; ") } // AllErrors returns a list of validation violation errors. func (m UetagMultiError) AllErrors() []error { return m } // UetagValidationError is the validation error returned by Uetag.Validate if // the designated constraints aren't met. type UetagValidationError struct { field string reason string cause error key bool } // Field function returns field value. func (e UetagValidationError) Field() string { return e.field } // Reason function returns reason value. func (e UetagValidationError) Reason() string { return e.reason } // Cause function returns cause value. func (e UetagValidationError) Cause() error { return e.cause } // Key function returns key value. func (e UetagValidationError) Key() bool { return e.key } // ErrorName returns error name. func (e UetagValidationError) ErrorName() string { return "UetagValidationError" } // Error satisfies the builtin error interface func (e UetagValidationError) Error() string { cause := "" if e.cause != nil { cause = fmt.Sprintf(" | caused by: %v", e.cause) } key := "" if e.key { key = "key for " } return fmt.Sprintf( "invalid %sUetag.%s: %s%s", key, e.field, e.reason, cause) } var _ error = UetagValidationError{} var _ interface { Field() string Reason() string Key() bool Cause() error ErrorName() string } = UetagValidationError{}
Prevesicular herpes zoster lumbar radiculopathy with transient motor paresis Abstract Rationale: Herpes zoster frequently causes dermatomal vesicular rash accompanied by severe neuralgia, and reaching a differential diagnosis may be challenging before the appearance of the vesicular rash. Patient concerns: A 40-year-old male patient visited the emergency department with a complaint of sudden onset motor weakness and ipsilateral radiating neuralgia to the Lt. thigh. He had suffered from chickenpox during childhood. Diagnoses: No skin lesion was present at the initial visit. The reverse Straight Leg Raise test was negative. Magnetic resonance imaging showed asymmetrically swollen dorsal root ganglion with Gadolinium enhancement. The vesicular rash that appeared on the sixth day after the symptom onset led to the diagnosis of herpes zoster. Interventions: Antiviral agent of valacyclovir (1000mg t.i.d.) was administered for 7 days. Outcomes: The patient recovered from motor weaknesses by 2 weeks from the onset of the symptom. Mild degree post-herpetic neuralgia recovered by 2 months. Lessons: A high index of suspicion is necessary to differentiate early herpes zoster radiculitis before the appearance of vesicular rash from compressive radiculopathy. In L23 ipsilateral radiating pain along the dermatome or myotome, the absence of reverse Straight Leg Raise sign may be a possible factor in differentiating herpes zoster radiculitis from compressive radiculopathy. Introduction Herpes zoster is caused by reactivation of the varicella-zoster virus (VZV), which remains latent in the sensory ganglion since its initial activation as chickenpox infection, which often occurs during childhood. Although erythematous vesicular rash and dermatomal distribution are typical symptoms during the initial radiculopathy before appearance, the vesicular rash is diagnostically challenging or confusing. Herpes zoster radiculitis may also involve motor neurons causing motor weakness along with the conventional sensory neuralgia or burning sensation. A few cases of herpetic lumbosacral radiculopathy before the rash eruption have been reported. Here, we present a case of a patient with an early-stage herpes zoster lumbar radiculitis accompanying motor weakness before the vesicular rash. Case A 40-year-old immunocompetent male patient visited the emergency department with a complaint of sudden onset severe radiculopathy to the left thigh-lower extremity for 2 days. His medical history was unremarkable for diabetes, hypertension, tuberculosis, and hepatitis. However, he had suffered from chickenpox during childhood. Radiating pain was present along the left L2-3 dermatome. Motor weakness in American Spine Injury Association Impairment Scale-Muscle Function Grading of hip flexion (V/III), knee extension (V/III), ankle dorsiflexion (V/ VI), great toe dorsiflexion (V/IV), and ankle plantarflexion (V/IV) were noted. Sensory functions were intact. Babinski's sign and clonus at the ankle tests were negative. The Reverse-SLR (Straight Leg Raise) test was negative bilaterally. Lumbar spine magnetic resonance imaging (MRI) presented did not show disc herniation or compressive radiculopathy. MRI showed asymmetric swelling and Gadolinium enhancement at the dorsal root ganglion of the involved side (Fig. 1, A-G). On the sixth day of the symptom onset, the patient presented vesicular rash unilaterally on the trunk and the thigh area along the L2-3 dermatome (Fig. 2, A-C). We diagnosed the patient's condition as varicella-zoster and Discussion VZV causes chickenpox during its initial infection, commonly during childhood. After the resolution of this primary infection, the virus remains latent in the dorsal root ganglia. Varicella-zoster is caused by the reactivation of the varicella-zoster virus after several decades because of a weakened cellular immune response. Lumbosacral radiculopathy due to herpes zoster may pose as a diagnostic challenge, especially before the rash starts to appear. The latent neurotropic VZV in neurons, which initially infects the cells via membrane fusion or endocytosis, is transported retrogradely inside the cell. Its reactivation involves antegrade intra-axonal transport to the synapse. Trans-synaptic transport is also reported to be a possible mechanism in brain herpes simplex virus encephalitis. Motor weakness and MRI enhancement have been shown to imply motor neuron involvement. Antegrade intra-axonal transport from Dorsal Root Ganglion (DRG) and trans-synaptic transports through the intermediate neuron to the anterior horn cell in the spinal cord can affect the motor neuron function. The herpes virus causes acute inflammation in the sensory ganglia and the sensory gray matter of the spinal cord. Although it is typically diagnosed through the dermatological appearance of the vesicular rash, initial acute inflammation before the vesicular rash causes severe radiating pain, making clinicians confuse the diagnosis with compressive radiculopathy. Motor nerve root involvement has been suggested to cause motor weakness. An increasing number of herpes zoster radiculopathy cases have been reported in the past. A selective nerve root block injection may help relieve radiculopathy symptoms. However, beyond clinical symptom relief, scientific evidence elucidating the mode of action of this treatment method remains to be investigated. Teo et al reported a case of a 74-year-old patient with comorbidities of diabetes mellitus, hypertension, and ischemic heart disease. He presented with motor weakness of unilateral hip flexor weakness (Gr III) with L2-3 hyperaesthesia on the 5 to 6th day of the symptom onset, simultaneously showing motor weakness and the vesicular rash, which helped bypass clinical observation for the diagnostic ambiguity. His MRI findings were unremarkable at presentation. Bhushan et al reported acute lumbar herpes zoster radiculopathy with MRI enhancement to the L5-DRG and the nerve root; however, their patient did not present corresponding motor weakness on L5/S1 myotome. Changa and Jain reported a case of a patient with posteruption herpes zoster radiculitis accompanied by motor weakness and MRI enhancement along the extraforaminal nerve root. Some patients may also present with lumbar-postsurgical herpes zoster radiculitis, alerting differentiation from a postsurgical radiating pain. These similarities in symptoms present several challenges in reaching a differential diagnosis between neuropathic vs compressive radiculopathies before the presentation of the vesicular rash in zoster. Sequelae from persistent herpes zoster virus reactivation may lead to demyelination, blindness, facial paralysis, or motor sequelae of foot drop. Postmortem brain study of 37 patients diagnosed with multiple sclerosis using polymerase chain reaction and Southern blot hybridization showed a higher prevalence of herpes simplex virus-1, and -2 infection compared with controls. Based on these reports, it can be hypothesized that persistent herpes virus reactivation causes neural demyelination, directly or by immune-mediated scar formation, eventually causing functional neural loss, markedly in the narrow nerve endings such as the ophthalmic nerve or the facial nerve. Early antiviral treatment with proper management may help reduce the risk of motor paralytic sequelae. Clinical relevance regarding herpes virus reactivation in the DRG and the spinal cord remains to be further investigated. Our patient presented Hip flexion (Grade III) motor weakness, knee extension (Grade III), and sensory neuralgia to the left thigh at the initial onset of the symptom. Initial physical examination of reverse SLR test after suspecting upper lumbar herniation of nucleus pulposus was negative. Lumbar spine MRI evaluation showed no definite evidence of compressive neuropathy corresponding to the symptom. However, asymmetric swelling of the DRG at the L2-3 intervertebral segment was noted with asymmetric Gadolinium contrast enhancement (Fig. 1, A-G). Interestingly, while the patient was initially suspected of upper lumbar disc herniation (eg, L2-3), the patient showed no sign of reverse SLR symptom, as indicated by the absence of compressive radiculopathy on MRI. Our patient with early herpes zoster radiculopathy exhibited a combined presentation of radiculopathy before the rash, presence of motor weakness, asymmetric DRG swelling and enhancement, and motor recovery through antiviral medication. The long-term consequences of the repetitive latent herpes neuritis on the neural tissue or function are not fully understood. The preventive effect through medication needs to be further investigated. In conclusion, we recommend that clinicians should maintain a high index of suspicion to differentiate early herpes zoster radiculitis from compressive radiculopathy before the vesicular rash appearance. In L2-3 ipsilateral radiating pain along the dermatome or myotome, the absence of reverse SLR sign may possibly help differentiate herpes zoster radiculitis from compressive radiculopathy.
use crate::protobuf::gtfs_realtime::{FeedMessage, TripUpdate, VehicleDescriptor}; use chrono::NaiveDate; use log::warn; // used because Equivalent trait is more flexible than Borrow trait. use indexmap::{Equivalent, IndexMap}; use serde::Serialize; #[derive(PartialEq, Eq, Hash)] struct TripUpdateKey(NaiveDate, String); #[derive(PartialEq, Eq, Hash)] struct TripUpdateKeyRef<'a>(NaiveDate, &'a str); impl Equivalent<TripUpdateKey> for TripUpdateKeyRef<'_> { fn equivalent(&self, k: &TripUpdateKey) -> bool { self.0 == k.0 && self.1 == k.1 } } pub struct RealtimeUpdateManager { trip_updates: IndexMap<TripUpdateKey, TripUpdate>, } #[allow(dead_code)] impl RealtimeUpdateManager { pub fn new() -> Self { Self { trip_updates: IndexMap::new(), } } pub fn load_feed(&mut self, feed: FeedMessage) { self.trip_updates.clear(); for entity in feed.entity { if let Some(trip_update) = entity.trip_update { let trip_id = match trip_update.trip.trip_id.clone() { Some(id) => id, None => { warn!("No trip_id found for a TripDescriptor"); continue; } }; let start_date = match &trip_update.trip.start_date { Some(s) => match NaiveDate::parse_from_str(&s, "%Y%m%d") { Ok(d) => d, Err(e) => { warn!("Error parsing date \"{}\": {}", s, e); continue; } }, None => { warn!("No start_date found for a TripDescriptor"); continue; } }; self.trip_updates .insert(TripUpdateKey(start_date, trip_id.clone()), trip_update); } } } pub fn get_realtime_updates<'a, I: IntoIterator<Item = RealtimeQueryKey<'a>>>( &self, keys: I, ) -> Vec<Option<RealtimeUpdate>> { keys.into_iter() .map(|key| { match self .trip_updates .get(&TripUpdateKeyRef(key.start_date, &key.trip_id)) { Some(trip_update) => { let mut realtime_data = RealtimeUpdate { delay: None, schedule_relationship: None, vehicle: None, }; let stop_time_update_opt = trip_update .stop_time_update // Vec<StopTimeUpdate> with all updates for the current trip .iter() .take_while(|s| Some(key.stop_sequence) >= s.stop_sequence) .last(); //dbg!(&trip_update.trip, &trip_update.stop_time_update, &stop_time_update_opt, &key.stop_sequence); if let Some(stop_time_update) = stop_time_update_opt { if let Some(stop_event) = &stop_time_update.departure { if let Some(delay) = stop_event.delay { realtime_data.delay = Some(delay); } } else { if let Some(stop_event) = &stop_time_update.arrival { if let Some(delay) = stop_event.delay { realtime_data.delay = Some(delay); } else { warn!("No departure delay info found"); } } } realtime_data.schedule_relationship = stop_time_update.schedule_relationship; } realtime_data.vehicle = trip_update.vehicle.clone(); Some(realtime_data) } None => None, } }) .collect::<Vec<_>>() } } /// Any better name? pub struct RealtimeQueryKey<'a> { pub start_date: NaiveDate, pub trip_id: &'a str, pub stop_sequence: u32, } #[derive(PartialEq, Debug, Serialize)] pub struct RealtimeUpdate { /// The delay in seconds. pub delay: Option<i32>, pub schedule_relationship: Option<i32>, pub vehicle: Option<VehicleDescriptor>, } #[cfg(test)] mod tests { use super::*; use crate::protobuf::gtfs_realtime::{trip_update::*, *}; fn h() -> FeedHeader { FeedHeader { gtfs_realtime_version: "2.0".into(), incrementality: None, timestamp: None, } } fn tu( ti: &str, start_date: &str, stu: Vec<StopTimeUpdate>, vehicle: Option<VehicleDescriptor>, ) -> FeedEntity { FeedEntity { id: "i".into(), is_deleted: None, vehicle: None, alert: None, trip_update: Some(TripUpdate { trip: TripDescriptor { trip_id: Some(ti.into()), route_id: None, direction_id: None, start_time: None, start_date: Some(start_date.into()), schedule_relationship: None, }, vehicle, stop_time_update: stu, timestamp: None, delay: None, }), } } fn r(start_date: NaiveDate, ti: &str, stop_sequence: u32) -> RealtimeQueryKey { RealtimeQueryKey { start_date, trip_id: ti, stop_sequence, } } fn stu_delay(s: u32, delay: Option<i32>, schedule_relationship: Option<i32>) -> StopTimeUpdate { StopTimeUpdate { stop_sequence: Some(s), stop_id: None, arrival: None, departure: Some(StopTimeEvent { delay, time: None, uncertainty: None, }), schedule_relationship, } } fn v(id: &str, label: &str) -> VehicleDescriptor { VehicleDescriptor { id: Some(id.into()), label: Some(label.into()), license_plate: None, } } #[test] fn delays() { let feed = FeedMessage { header: h(), entity: vec![ tu( "trip1", "20200101", vec![stu_delay(2, Some(20), None), stu_delay(5, Some(-10), None)], None, ), tu( "trip2", "20200101", vec![stu_delay(1, Some(180), Some(0))], None, ), ], }; let mut m = RealtimeUpdateManager::new(); m.load_feed(feed); assert_eq!( m.get_realtime_updates(vec![r(NaiveDate::from_ymd(2020, 1, 1), "trip1", 1)]), vec![Some(RealtimeUpdate { delay: None, schedule_relationship: None, vehicle: None, })] ); assert_eq!( m.get_realtime_updates(vec![r(NaiveDate::from_ymd(2020, 1, 1), "trip1", 3)]), vec![Some(RealtimeUpdate { delay: Some(20), schedule_relationship: None, vehicle: None, })] ); assert_eq!( m.get_realtime_updates(vec![r(NaiveDate::from_ymd(2020, 1, 1), "trip1", 5)]), vec![Some(RealtimeUpdate { delay: Some(-10), schedule_relationship: None, vehicle: None, })] ); assert_eq!( m.get_realtime_updates(vec![r(NaiveDate::from_ymd(2020, 1, 1), "trip2", 3)]), vec![Some(RealtimeUpdate { delay: Some(180), schedule_relationship: Some(0), vehicle: None, })] ); // different date assert_eq!( m.get_realtime_updates(vec![r(NaiveDate::from_ymd(2020, 1, 2), "trip1", 5)]), vec![None] ); } #[test] fn vehicle_data() { let feed = FeedMessage { header: h(), entity: vec![tu("trip1", "20200101", vec![], Some(v("train1", "AT1345")))], }; let mut m = RealtimeUpdateManager::new(); m.load_feed(feed); assert_eq!( m.get_realtime_updates(vec![r(NaiveDate::from_ymd(2020, 1, 1), "trip1", 2)]), vec![Some(RealtimeUpdate { delay: None, schedule_relationship: None, vehicle: Some(v("train1", "AT1345")), })] ); } }
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.flink.statefun.flink.io.kinesis; import static org.apache.flink.statefun.flink.io.testutils.YamlUtils.loadAsJsonFromClassResource; import static org.hamcrest.CoreMatchers.instanceOf; import static org.hamcrest.MatcherAssert.assertThat; import com.google.protobuf.Message; import org.apache.flink.shaded.jackson2.com.fasterxml.jackson.databind.JsonNode; import org.apache.flink.statefun.flink.io.kinesis.polyglot.RoutableProtobufKinesisSourceProvider; import org.apache.flink.statefun.flink.io.spi.JsonIngressSpec; import org.apache.flink.statefun.sdk.io.IngressIdentifier; import org.apache.flink.streaming.api.functions.source.SourceFunction; import org.apache.flink.streaming.connectors.kinesis.FlinkKinesisConsumer; import org.junit.Test; public class RoutableProtobufKinesisSourceProviderTest { @Test public void exampleUsage() { JsonNode ingressDefinition = loadAsJsonFromClassResource( getClass().getClassLoader(), "routable-protobuf-kinesis-ingress.yaml"); JsonIngressSpec<?> spec = new JsonIngressSpec<>( PolyglotKinesisIOTypes.ROUTABLE_PROTOBUF_KINESIS_INGRESS_TYPE, new IngressIdentifier<>(Message.class, "foo", "bar"), ingressDefinition); RoutableProtobufKinesisSourceProvider provider = new RoutableProtobufKinesisSourceProvider(); SourceFunction<?> source = provider.forSpec(spec); assertThat(source, instanceOf(FlinkKinesisConsumer.class)); } }
Meckel's DiverticulumA High-Risk Region for Malignancy in the Ileum: Insights From a Population-Based Epidemiological Study and Implications in Surgical Management BACKGROUND Surgical management of incidental Meckel's diverticulum(MD) is a highly debated controversial issue that has never been discussed from the oncological standpoint. OBJECTIVE To describe the epidemiology and risk of Meckel's diverticulum cancer (MDC) and compare it with other ileal malignancies. METHODS Data were obtained from 163 cases of MDC and 6214 cases of non-Meckelian ileal cancer, between 1973 and 2006, from the Surveillance, Epidemiology, and End Results database. RESULTS Mean annual incidence was 1.44 (± 1.12) per 10 million population,with a 5-fold increase in the last few decades. Incidence increases with age,with a mean age at diagnosis of 60.6 (±15.1) years. Adjusted risk of cancer in the MD was at least 70 times higher than any other ileal site. Disease was localized in 67% at presentation and malignant carcinoids constituted the major histologic type (77%). One-third of patients have had lifetime occurrence of other malignancies and in 13% of these patients, MDC was the first malignancy. Median tumor size was 7 mm. Median overall survival was 173 months (95% confidence interval , 124-221 months), with 1- and 5-year relative survival rates of 85.8% (95% CI, 76.9%-91.4%) and 75.8% (95%CI, 64.9%-83.8%), respectively. Cox proportional hazards model revealed that age, histologic type, and metastatic disease were independent factors affecting survival. CONCLUSIONS MD is a "hot-spot" or high-risk area for cancer in the ileum.With risk that increases with age and high possibility of curative resection with negligible operative mortality, incidental MD is best treated with resection.
import time import numpy as np import pandas as pd def add_new_category(x): """ Aimed at 'trafficSource.keyword' to tidy things up a little """ x = str(x).lower() if x == 'nan': return 'nan' x = ''.join(x.split()) if r'provided' in x: return 'not_provided' if r'youtube' in x or r'you' in x or r'yo' in x or r'tub' in x or r'yout' in x or r'y o u' in x: return 'youtube' if r'google' in x or r'goo' in x or r'gle' in x: return 'google' else: return 'other' # Dump cleaned data to parquets for later. train_df = pd.read_parquet('input/cleaned/train.parquet.gzip') test_df = pd.read_parquet('input/cleaned/test.parquet.gzip') # Remove target col. y_train = train_df['totals.transactionRevenue'].values train_df = train_df.drop(['totals.transactionRevenue'], axis=1) # Join datasets for rowise feature engineering. trn_len = train_df.shape[0] merged_df = pd.concat([train_df, test_df]) num_cols = ["totals.hits", "totals.pageviews", "visitNumber", "visitStartTime"] for col in num_cols: merged_df[col] = merged_df[col].astype(float) merged_df['diff_visitId_time'] = merged_df['visitId'] - merged_df['visitStartTime'] merged_df['diff_visitId_time'] = (merged_df['diff_visitId_time'] != 0).astype(float) merged_df['totals.hits'] = merged_df['totals.hits'].astype(float) # Build Time based features. merged_df['formated_date'] = pd.to_datetime(merged_df['date'], format='%Y%m%d') merged_df['month'] = pd.DatetimeIndex(merged_df['formated_date']).month merged_df['year'] = pd.DatetimeIndex(merged_df['formated_date']).year merged_df['day'] = pd.DatetimeIndex(merged_df['formated_date']).day merged_df['quarter'] = pd.DatetimeIndex(merged_df['formated_date']).quarter merged_df['weekday'] = pd.DatetimeIndex(merged_df['formated_date']).weekday merged_df['weekofyear'] = pd.DatetimeIndex(merged_df['formated_date']).weekofyear merged_df['is_month_start'] = pd.DatetimeIndex(merged_df['formated_date']).is_month_start merged_df['is_month_end'] = pd.DatetimeIndex(merged_df['formated_date']).is_month_end merged_df['is_quarter_start'] = pd.DatetimeIndex(merged_df['formated_date']).is_quarter_start merged_df['is_quarter_end'] = pd.DatetimeIndex(merged_df['formated_date']).is_quarter_end merged_df['is_year_start'] = pd.DatetimeIndex(merged_df['formated_date']).is_year_start merged_df['is_year_end'] = pd.DatetimeIndex(merged_df['formated_date']).is_year_end merged_df['month_unique_user_count'] = merged_df.groupby('month')['fullVisitorId'].transform('nunique') merged_df['day_unique_user_count'] = merged_df.groupby('day')['fullVisitorId'].transform('nunique') merged_df['weekday_unique_user_count'] = merged_df.groupby('weekday')['fullVisitorId'].transform('nunique') merged_df['visitStartTime'] = pd.to_datetime(merged_df['visitStartTime'], unit='s') merged_df['hour'] = pd.DatetimeIndex(merged_df['visitStartTime']).hour merged_df['minute'] = pd.DatetimeIndex(merged_df['visitStartTime']).minute # Cleanup for keywords merged_df['trafficSource.keyword'] = merged_df['trafficSource.keyword'].fillna('nan') merged_df['trafficSource.keyword_groups'] = merged_df['trafficSource.keyword'].apply(add_new_category) merged_df['browser_category'] = merged_df['device.browser'] + '_' + merged_df['device.deviceCategory'] merged_df['browser_operatingSystem'] = merged_df['device.browser'] + '_' + merged_df['device.operatingSystem'] merged_df['source_country'] = merged_df['trafficSource.source'] + '_' + merged_df['geoNetwork.country'] merged_df['log.visitNumber'] = np.log1p(merged_df['visitNumber']) merged_df['log.totals.hits'] = np.log1p(merged_df['totals.hits']) merged_df['totals.pageviews'] = merged_df['totals.pageviews'].astype(float).fillna(0) merged_df['log.totals.pageviews'] = np.log1p(merged_df['totals.pageviews']) merged_df["page_hits_ratio"] = merged_df['visitNumber'] / (merged_df['totals.pageviews'] + 1) # Drop old vars. merged_df = merged_df.drop(['formated_date', 'visitId', 'sessionId', 'visitStartTime'], axis=1) # Split data back to original data sets. train_df = merged_df[:trn_len] test_df = merged_df[trn_len:] del merged_df train_df['totals.transactionRevenue'] = y_train print(set(list(train_df)) - set(list(test_df))) train_df.to_parquet('input/processed/train_static_features.parquet.gzip', compression='gzip') test_df.to_parquet('input/processed/test_static_features.parquet.gzip', compression='gzip')
Michael Crick, Channel 4 News’s political correspondent since 2011, has abruptly parted company with the broadcaster. Multiple sources at the programme said they had no inkling that the prominent reporter was about to depart until an email from the Channel 4 News editor, Ben de Pear, was sent to staff on Wednesday. “This is to let you all know that Michael Crick has left Channel 4 News after seven years,” wrote de Pear. “One of Britain’s most experienced and decorated TV news correspondents, his latest spell with the programme coincides with the busiest period in recent political history and he was recognised as specialist journalist of the year twice at the RTS journalism awards within five years. “In 2018 Michael won the prestigious Charles Wheeler award for excellence in broadcasting for his forensic investigative skills and obsessive eye for detail. His relentless drive has resulted in a string of scoops including most recently the election expenses scandal and changing the very nature of the coverage of the 2017 election campaign. His pursuit of politicians resulted in some of the most memorable and longest doorsteps in television news history. The 60-year-old reporter was in his second stint at Channel 4 News, having been part of the team which launched the programme in November 1982. He was the channel’s Washington correspondent between 1988 and 1990, after which he joined the BBC, where he worked first on Panorama and then on Newsnight, eventually becoming political editor in 2007. He rejoined Channel 4 in 2011, where he was given free rein to pursue niche political stories and was known for his energetic chasing of politicians. He was once hit over the head by the Ukip MEP Godfrey Bloom, who also suggested that he wanted to shoot the journalist. Crick led the way on Channel 4’s investigation into Conservative election expenses, which ultimately resulted in the conviction of a long-standing Conservative aide – although the Conservative MP Craig Mackinlay was acquitted in January this year. After leaving Oxford University in 1980, Crick was offered the chance to contest the safe Labour seat of Bootle in Merseyside, but turned the offer down. Outside politics, he is a supporter of Manchester United, and wrote a biography of the former manager Sir Alex Ferguson in 2002.
export class Endereco { id:string; cep: string; logradouro: string; numero: string bairro: string; uf: string; token: string; }
<filename>quarks/src/main/java/com/ctrip/ferriswheel/quarks/SyntaxContext.java package com.ctrip.ferriswheel.quarks; import java.io.Serializable; public interface SyntaxContext extends Serializable { Symbol getRootSymbol(); Symbol getNumberSymbol(); Symbol getStringSymbol(); Symbol getIdentifierSymbol(); Symbol getTerminatorSymbol(); }
Differential features of motor neuron disease mortality in Spain. BACKGROUND The objective of this study was to describe the temporal and spatial patterns of motor neuron disease (MND) in Spain. METHODS We studied data where MND was stated as the principal cause of death in official statistics from Spain. Time trends were analysed for age-, sex-specific and age-adjusted rates for the period 1951-1990. Age-adjusted mortality and relative risk, obtained by Poisson regression adjusting for age, were calculated for each province from deaths during the period 1975-1988. Maps were constructed using log transformed rates. Statistical significance of spatial aggregation was assessed using the Ohno et al. test. RESULTS The 1951-1990 mortality rate, age- and sex-adjusted to the European population, for the population aged > or = 40 years was 1.49 per 100,000; 1.90 and 1.21 for males and females respectively. In general, mortality increased with age. Age-adjusted rates rose until 1960, dropped by 70% during the 1960s and declined slightly over the 1951-1990 period as a whole. From 1970 onwards MND mortality rose evenly, particularly in the 60-69 age group. A North-South gradient was suggested for both sexes with statistically significant clustering in the Northern coastal regions and--for males alone--in the Midwest provinces. CONCLUSIONS Mortality from MND in Spain displayed a magnitude and recently rising temporal trend similar to that described in several other countries. Specific traits were: a decrease during the 1960s, which has been described for Japan only, as well as spatial heterogeneity and a predominant recent increase among the 60-69 age group. The determinants of these unusual MND mortality patterns are unknown.
import { TickerEntity } from "../tickers/tickers.entity"; import { Column, Entity, JoinColumn, ManyToOne } from "typeorm"; import { nameLength, pricePrecision, priceScale, } from "../constants"; //Entity to create database @Entity('quote') export class QuoteEntity { @Column({type: 'varchar', length: nameLength, primary: true}) name: string; @Column({type: 'integer', primary: true}) timestamp: number; @Column({type: 'numeric', precision: pricePrecision, scale: priceScale}) price: number; //relation between quote and ticker @ManyToOne(() => TickerEntity, ticker => ticker.name) @JoinColumn({name: 'name'}) nameTicker: string; }
<reponame>thenewwazoo/lpc177x_8x #[doc = r" Value read from the register"] pub struct R { bits: u32, } #[doc = r" Value to write to the register"] pub struct W { bits: u32, } impl super::PIN { #[doc = r" Modifies the contents of the register"] #[inline] pub fn modify<F>(&self, f: F) where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W, { let bits = self.register.get(); let r = R { bits: bits }; let mut w = W { bits: bits }; f(&r, &mut w); self.register.set(w.bits); } #[doc = r" Reads the contents of the register"] #[inline] pub fn read(&self) -> R { R { bits: self.register.get(), } } #[doc = r" Writes to the register"] #[inline] pub fn write<F>(&self, f: F) where F: FnOnce(&mut W) -> &mut W, { let mut w = W::reset_value(); f(&mut w); self.register.set(w.bits); } #[doc = r" Writes the reset value to the register"] #[inline] pub fn reset(&self) { self.write(|w| w) } } #[doc = r" Value of the field"] pub struct PINVAL0R { bits: bool, } impl PINVAL0R { #[doc = r" Value of the field as raw bits"] #[inline] pub fn bit(&self) -> bool { self.bits } #[doc = r" Returns `true` if the bit is clear (0)"] #[inline] pub fn bit_is_clear(&self) -> bool { !self.bit() } #[doc = r" Returns `true` if the bit is set (1)"] #[inline] pub fn bit_is_set(&self) -> bool { self.bit() } } #[doc = r" Value of the field"] pub struct PINVAL1R { bits: bool, } impl PINVAL1R { #[doc = r" Value of the field as raw bits"] #[inline] pub fn bit(&self) -> bool { self.bits } #[doc = r" Returns `true` if the bit is clear (0)"] #[inline] pub fn bit_is_clear(&self) -> bool { !self.bit() } #[doc = r" Returns `true` if the bit is set (1)"] #[inline] pub fn bit_is_set(&self) -> bool { self.bit() } } #[doc = r" Value of the field"] pub struct PINVAL2R { bits: bool, } impl PINVAL2R { #[doc = r" Value of the field as raw bits"] #[inline] pub fn bit(&self) -> bool { self.bits } #[doc = r" Returns `true` if the bit is clear (0)"] #[inline] pub fn bit_is_clear(&self) -> bool { !self.bit() } #[doc = r" Returns `true` if the bit is set (1)"] #[inline] pub fn bit_is_set(&self) -> bool { self.bit() } } #[doc = r" Value of the field"] pub struct PINVAL3R { bits: bool, } impl PINVAL3R { #[doc = r" Value of the field as raw bits"] #[inline] pub fn bit(&self) -> bool { self.bits } #[doc = r" Returns `true` if the bit is clear (0)"] #[inline] pub fn bit_is_clear(&self) -> bool { !self.bit() } #[doc = r" Returns `true` if the bit is set (1)"] #[inline] pub fn bit_is_set(&self) -> bool { self.bit() } } #[doc = r" Value of the field"] pub struct PINVAL4R { bits: bool, } impl PINVAL4R { #[doc = r" Value of the field as raw bits"] #[inline] pub fn bit(&self) -> bool { self.bits } #[doc = r" Returns `true` if the bit is clear (0)"] #[inline] pub fn bit_is_clear(&self) -> bool { !self.bit() } #[doc = r" Returns `true` if the bit is set (1)"] #[inline] pub fn bit_is_set(&self) -> bool { self.bit() } } #[doc = r" Value of the field"] pub struct PINVAL5R { bits: bool, } impl PINVAL5R { #[doc = r" Value of the field as raw bits"] #[inline] pub fn bit(&self) -> bool { self.bits } #[doc = r" Returns `true` if the bit is clear (0)"] #[inline] pub fn bit_is_clear(&self) -> bool { !self.bit() } #[doc = r" Returns `true` if the bit is set (1)"] #[inline] pub fn bit_is_set(&self) -> bool { self.bit() } } #[doc = r" Value of the field"] pub struct PINVAL6R { bits: bool, } impl PINVAL6R { #[doc = r" Value of the field as raw bits"] #[inline] pub fn bit(&self) -> bool { self.bits } #[doc = r" Returns `true` if the bit is clear (0)"] #[inline] pub fn bit_is_clear(&self) -> bool { !self.bit() } #[doc = r" Returns `true` if the bit is set (1)"] #[inline] pub fn bit_is_set(&self) -> bool { self.bit() } } #[doc = r" Value of the field"] pub struct PINVAL7R { bits: bool, } impl PINVAL7R { #[doc = r" Value of the field as raw bits"] #[inline] pub fn bit(&self) -> bool { self.bits } #[doc = r" Returns `true` if the bit is clear (0)"] #[inline] pub fn bit_is_clear(&self) -> bool { !self.bit() } #[doc = r" Returns `true` if the bit is set (1)"] #[inline] pub fn bit_is_set(&self) -> bool { self.bit() } } #[doc = r" Value of the field"] pub struct PINVAL8R { bits: bool, } impl PINVAL8R { #[doc = r" Value of the field as raw bits"] #[inline] pub fn bit(&self) -> bool { self.bits } #[doc = r" Returns `true` if the bit is clear (0)"] #[inline] pub fn bit_is_clear(&self) -> bool { !self.bit() } #[doc = r" Returns `true` if the bit is set (1)"] #[inline] pub fn bit_is_set(&self) -> bool { self.bit() } } #[doc = r" Value of the field"] pub struct PINVAL9R { bits: bool, } impl PINVAL9R { #[doc = r" Value of the field as raw bits"] #[inline] pub fn bit(&self) -> bool { self.bits } #[doc = r" Returns `true` if the bit is clear (0)"] #[inline] pub fn bit_is_clear(&self) -> bool { !self.bit() } #[doc = r" Returns `true` if the bit is set (1)"] #[inline] pub fn bit_is_set(&self) -> bool { self.bit() } } #[doc = r" Value of the field"] pub struct PINVAL10R { bits: bool, } impl PINVAL10R { #[doc = r" Value of the field as raw bits"] #[inline] pub fn bit(&self) -> bool { self.bits } #[doc = r" Returns `true` if the bit is clear (0)"] #[inline] pub fn bit_is_clear(&self) -> bool { !self.bit() } #[doc = r" Returns `true` if the bit is set (1)"] #[inline] pub fn bit_is_set(&self) -> bool { self.bit() } } #[doc = r" Value of the field"] pub struct PINVAL11R { bits: bool, } impl PINVAL11R { #[doc = r" Value of the field as raw bits"] #[inline] pub fn bit(&self) -> bool { self.bits } #[doc = r" Returns `true` if the bit is clear (0)"] #[inline] pub fn bit_is_clear(&self) -> bool { !self.bit() } #[doc = r" Returns `true` if the bit is set (1)"] #[inline] pub fn bit_is_set(&self) -> bool { self.bit() } } #[doc = r" Value of the field"] pub struct PINVAL12R { bits: bool, } impl PINVAL12R { #[doc = r" Value of the field as raw bits"] #[inline] pub fn bit(&self) -> bool { self.bits } #[doc = r" Returns `true` if the bit is clear (0)"] #[inline] pub fn bit_is_clear(&self) -> bool { !self.bit() } #[doc = r" Returns `true` if the bit is set (1)"] #[inline] pub fn bit_is_set(&self) -> bool { self.bit() } } #[doc = r" Value of the field"] pub struct PINVAL13R { bits: bool, } impl PINVAL13R { #[doc = r" Value of the field as raw bits"] #[inline] pub fn bit(&self) -> bool { self.bits } #[doc = r" Returns `true` if the bit is clear (0)"] #[inline] pub fn bit_is_clear(&self) -> bool { !self.bit() } #[doc = r" Returns `true` if the bit is set (1)"] #[inline] pub fn bit_is_set(&self) -> bool { self.bit() } } #[doc = r" Value of the field"] pub struct PINVAL14R { bits: bool, } impl PINVAL14R { #[doc = r" Value of the field as raw bits"] #[inline] pub fn bit(&self) -> bool { self.bits } #[doc = r" Returns `true` if the bit is clear (0)"] #[inline] pub fn bit_is_clear(&self) -> bool { !self.bit() } #[doc = r" Returns `true` if the bit is set (1)"] #[inline] pub fn bit_is_set(&self) -> bool { self.bit() } } #[doc = r" Value of the field"] pub struct PINVAL15R { bits: bool, } impl PINVAL15R { #[doc = r" Value of the field as raw bits"] #[inline] pub fn bit(&self) -> bool { self.bits } #[doc = r" Returns `true` if the bit is clear (0)"] #[inline] pub fn bit_is_clear(&self) -> bool { !self.bit() } #[doc = r" Returns `true` if the bit is set (1)"] #[inline] pub fn bit_is_set(&self) -> bool { self.bit() } } #[doc = r" Value of the field"] pub struct PINVAL16R { bits: bool, } impl PINVAL16R { #[doc = r" Value of the field as raw bits"] #[inline] pub fn bit(&self) -> bool { self.bits } #[doc = r" Returns `true` if the bit is clear (0)"] #[inline] pub fn bit_is_clear(&self) -> bool { !self.bit() } #[doc = r" Returns `true` if the bit is set (1)"] #[inline] pub fn bit_is_set(&self) -> bool { self.bit() } } #[doc = r" Value of the field"] pub struct PINVAL17R { bits: bool, } impl PINVAL17R { #[doc = r" Value of the field as raw bits"] #[inline] pub fn bit(&self) -> bool { self.bits } #[doc = r" Returns `true` if the bit is clear (0)"] #[inline] pub fn bit_is_clear(&self) -> bool { !self.bit() } #[doc = r" Returns `true` if the bit is set (1)"] #[inline] pub fn bit_is_set(&self) -> bool { self.bit() } } #[doc = r" Value of the field"] pub struct PINVAL18R { bits: bool, } impl PINVAL18R { #[doc = r" Value of the field as raw bits"] #[inline] pub fn bit(&self) -> bool { self.bits } #[doc = r" Returns `true` if the bit is clear (0)"] #[inline] pub fn bit_is_clear(&self) -> bool { !self.bit() } #[doc = r" Returns `true` if the bit is set (1)"] #[inline] pub fn bit_is_set(&self) -> bool { self.bit() } } #[doc = r" Value of the field"] pub struct PINVAL19R { bits: bool, } impl PINVAL19R { #[doc = r" Value of the field as raw bits"] #[inline] pub fn bit(&self) -> bool { self.bits } #[doc = r" Returns `true` if the bit is clear (0)"] #[inline] pub fn bit_is_clear(&self) -> bool { !self.bit() } #[doc = r" Returns `true` if the bit is set (1)"] #[inline] pub fn bit_is_set(&self) -> bool { self.bit() } } #[doc = r" Value of the field"] pub struct PINVAL20R { bits: bool, } impl PINVAL20R { #[doc = r" Value of the field as raw bits"] #[inline] pub fn bit(&self) -> bool { self.bits } #[doc = r" Returns `true` if the bit is clear (0)"] #[inline] pub fn bit_is_clear(&self) -> bool { !self.bit() } #[doc = r" Returns `true` if the bit is set (1)"] #[inline] pub fn bit_is_set(&self) -> bool { self.bit() } } #[doc = r" Value of the field"] pub struct PINVAL21R { bits: bool, } impl PINVAL21R { #[doc = r" Value of the field as raw bits"] #[inline] pub fn bit(&self) -> bool { self.bits } #[doc = r" Returns `true` if the bit is clear (0)"] #[inline] pub fn bit_is_clear(&self) -> bool { !self.bit() } #[doc = r" Returns `true` if the bit is set (1)"] #[inline] pub fn bit_is_set(&self) -> bool { self.bit() } } #[doc = r" Value of the field"] pub struct PINVAL22R { bits: bool, } impl PINVAL22R { #[doc = r" Value of the field as raw bits"] #[inline] pub fn bit(&self) -> bool { self.bits } #[doc = r" Returns `true` if the bit is clear (0)"] #[inline] pub fn bit_is_clear(&self) -> bool { !self.bit() } #[doc = r" Returns `true` if the bit is set (1)"] #[inline] pub fn bit_is_set(&self) -> bool { self.bit() } } #[doc = r" Value of the field"] pub struct PINVAL23R { bits: bool, } impl PINVAL23R { #[doc = r" Value of the field as raw bits"] #[inline] pub fn bit(&self) -> bool { self.bits } #[doc = r" Returns `true` if the bit is clear (0)"] #[inline] pub fn bit_is_clear(&self) -> bool { !self.bit() } #[doc = r" Returns `true` if the bit is set (1)"] #[inline] pub fn bit_is_set(&self) -> bool { self.bit() } } #[doc = r" Value of the field"] pub struct PINVAL24R { bits: bool, } impl PINVAL24R { #[doc = r" Value of the field as raw bits"] #[inline] pub fn bit(&self) -> bool { self.bits } #[doc = r" Returns `true` if the bit is clear (0)"] #[inline] pub fn bit_is_clear(&self) -> bool { !self.bit() } #[doc = r" Returns `true` if the bit is set (1)"] #[inline] pub fn bit_is_set(&self) -> bool { self.bit() } } #[doc = r" Value of the field"] pub struct PINVAL25R { bits: bool, } impl PINVAL25R { #[doc = r" Value of the field as raw bits"] #[inline] pub fn bit(&self) -> bool { self.bits } #[doc = r" Returns `true` if the bit is clear (0)"] #[inline] pub fn bit_is_clear(&self) -> bool { !self.bit() } #[doc = r" Returns `true` if the bit is set (1)"] #[inline] pub fn bit_is_set(&self) -> bool { self.bit() } } #[doc = r" Value of the field"] pub struct PINVAL26R { bits: bool, } impl PINVAL26R { #[doc = r" Value of the field as raw bits"] #[inline] pub fn bit(&self) -> bool { self.bits } #[doc = r" Returns `true` if the bit is clear (0)"] #[inline] pub fn bit_is_clear(&self) -> bool { !self.bit() } #[doc = r" Returns `true` if the bit is set (1)"] #[inline] pub fn bit_is_set(&self) -> bool { self.bit() } } #[doc = r" Value of the field"] pub struct PINVAL27R { bits: bool, } impl PINVAL27R { #[doc = r" Value of the field as raw bits"] #[inline] pub fn bit(&self) -> bool { self.bits } #[doc = r" Returns `true` if the bit is clear (0)"] #[inline] pub fn bit_is_clear(&self) -> bool { !self.bit() } #[doc = r" Returns `true` if the bit is set (1)"] #[inline] pub fn bit_is_set(&self) -> bool { self.bit() } } #[doc = r" Value of the field"] pub struct PINVAL28R { bits: bool, } impl PINVAL28R { #[doc = r" Value of the field as raw bits"] #[inline] pub fn bit(&self) -> bool { self.bits } #[doc = r" Returns `true` if the bit is clear (0)"] #[inline] pub fn bit_is_clear(&self) -> bool { !self.bit() } #[doc = r" Returns `true` if the bit is set (1)"] #[inline] pub fn bit_is_set(&self) -> bool { self.bit() } } #[doc = r" Value of the field"] pub struct PINVAL29R { bits: bool, } impl PINVAL29R { #[doc = r" Value of the field as raw bits"] #[inline] pub fn bit(&self) -> bool { self.bits } #[doc = r" Returns `true` if the bit is clear (0)"] #[inline] pub fn bit_is_clear(&self) -> bool { !self.bit() } #[doc = r" Returns `true` if the bit is set (1)"] #[inline] pub fn bit_is_set(&self) -> bool { self.bit() } } #[doc = r" Value of the field"] pub struct PINVAL30R { bits: bool, } impl PINVAL30R { #[doc = r" Value of the field as raw bits"] #[inline] pub fn bit(&self) -> bool { self.bits } #[doc = r" Returns `true` if the bit is clear (0)"] #[inline] pub fn bit_is_clear(&self) -> bool { !self.bit() } #[doc = r" Returns `true` if the bit is set (1)"] #[inline] pub fn bit_is_set(&self) -> bool { self.bit() } } #[doc = r" Value of the field"] pub struct PINVAL31R { bits: bool, } impl PINVAL31R { #[doc = r" Value of the field as raw bits"] #[inline] pub fn bit(&self) -> bool { self.bits } #[doc = r" Returns `true` if the bit is clear (0)"] #[inline] pub fn bit_is_clear(&self) -> bool { !self.bit() } #[doc = r" Returns `true` if the bit is set (1)"] #[inline] pub fn bit_is_set(&self) -> bool { self.bit() } } #[doc = r" Proxy"] pub struct _PINVAL0W<'a> { w: &'a mut W, } impl<'a> _PINVAL0W<'a> { #[doc = r" Sets the field bit"] pub fn set_bit(self) -> &'a mut W { self.bit(true) } #[doc = r" Clears the field bit"] pub fn clear_bit(self) -> &'a mut W { self.bit(false) } #[doc = r" Writes raw bits to the field"] #[inline] pub fn bit(self, value: bool) -> &'a mut W { const MASK: bool = true; const OFFSET: u8 = 0; self.w.bits &= !((MASK as u32) << OFFSET); self.w.bits |= ((value & MASK) as u32) << OFFSET; self.w } } #[doc = r" Proxy"] pub struct _PINVAL1W<'a> { w: &'a mut W, } impl<'a> _PINVAL1W<'a> { #[doc = r" Sets the field bit"] pub fn set_bit(self) -> &'a mut W { self.bit(true) } #[doc = r" Clears the field bit"] pub fn clear_bit(self) -> &'a mut W { self.bit(false) } #[doc = r" Writes raw bits to the field"] #[inline] pub fn bit(self, value: bool) -> &'a mut W { const MASK: bool = true; const OFFSET: u8 = 1; self.w.bits &= !((MASK as u32) << OFFSET); self.w.bits |= ((value & MASK) as u32) << OFFSET; self.w } } #[doc = r" Proxy"] pub struct _PINVAL2W<'a> { w: &'a mut W, } impl<'a> _PINVAL2W<'a> { #[doc = r" Sets the field bit"] pub fn set_bit(self) -> &'a mut W { self.bit(true) } #[doc = r" Clears the field bit"] pub fn clear_bit(self) -> &'a mut W { self.bit(false) } #[doc = r" Writes raw bits to the field"] #[inline] pub fn bit(self, value: bool) -> &'a mut W { const MASK: bool = true; const OFFSET: u8 = 2; self.w.bits &= !((MASK as u32) << OFFSET); self.w.bits |= ((value & MASK) as u32) << OFFSET; self.w } } #[doc = r" Proxy"] pub struct _PINVAL3W<'a> { w: &'a mut W, } impl<'a> _PINVAL3W<'a> { #[doc = r" Sets the field bit"] pub fn set_bit(self) -> &'a mut W { self.bit(true) } #[doc = r" Clears the field bit"] pub fn clear_bit(self) -> &'a mut W { self.bit(false) } #[doc = r" Writes raw bits to the field"] #[inline] pub fn bit(self, value: bool) -> &'a mut W { const MASK: bool = true; const OFFSET: u8 = 3; self.w.bits &= !((MASK as u32) << OFFSET); self.w.bits |= ((value & MASK) as u32) << OFFSET; self.w } } #[doc = r" Proxy"] pub struct _PINVAL4W<'a> { w: &'a mut W, } impl<'a> _PINVAL4W<'a> { #[doc = r" Sets the field bit"] pub fn set_bit(self) -> &'a mut W { self.bit(true) } #[doc = r" Clears the field bit"] pub fn clear_bit(self) -> &'a mut W { self.bit(false) } #[doc = r" Writes raw bits to the field"] #[inline] pub fn bit(self, value: bool) -> &'a mut W { const MASK: bool = true; const OFFSET: u8 = 4; self.w.bits &= !((MASK as u32) << OFFSET); self.w.bits |= ((value & MASK) as u32) << OFFSET; self.w } } #[doc = r" Proxy"] pub struct _PINVAL5W<'a> { w: &'a mut W, } impl<'a> _PINVAL5W<'a> { #[doc = r" Sets the field bit"] pub fn set_bit(self) -> &'a mut W { self.bit(true) } #[doc = r" Clears the field bit"] pub fn clear_bit(self) -> &'a mut W { self.bit(false) } #[doc = r" Writes raw bits to the field"] #[inline] pub fn bit(self, value: bool) -> &'a mut W { const MASK: bool = true; const OFFSET: u8 = 5; self.w.bits &= !((MASK as u32) << OFFSET); self.w.bits |= ((value & MASK) as u32) << OFFSET; self.w } } #[doc = r" Proxy"] pub struct _PINVAL6W<'a> { w: &'a mut W, } impl<'a> _PINVAL6W<'a> { #[doc = r" Sets the field bit"] pub fn set_bit(self) -> &'a mut W { self.bit(true) } #[doc = r" Clears the field bit"] pub fn clear_bit(self) -> &'a mut W { self.bit(false) } #[doc = r" Writes raw bits to the field"] #[inline] pub fn bit(self, value: bool) -> &'a mut W { const MASK: bool = true; const OFFSET: u8 = 6; self.w.bits &= !((MASK as u32) << OFFSET); self.w.bits |= ((value & MASK) as u32) << OFFSET; self.w } } #[doc = r" Proxy"] pub struct _PINVAL7W<'a> { w: &'a mut W, } impl<'a> _PINVAL7W<'a> { #[doc = r" Sets the field bit"] pub fn set_bit(self) -> &'a mut W { self.bit(true) } #[doc = r" Clears the field bit"] pub fn clear_bit(self) -> &'a mut W { self.bit(false) } #[doc = r" Writes raw bits to the field"] #[inline] pub fn bit(self, value: bool) -> &'a mut W { const MASK: bool = true; const OFFSET: u8 = 7; self.w.bits &= !((MASK as u32) << OFFSET); self.w.bits |= ((value & MASK) as u32) << OFFSET; self.w } } #[doc = r" Proxy"] pub struct _PINVAL8W<'a> { w: &'a mut W, } impl<'a> _PINVAL8W<'a> { #[doc = r" Sets the field bit"] pub fn set_bit(self) -> &'a mut W { self.bit(true) } #[doc = r" Clears the field bit"] pub fn clear_bit(self) -> &'a mut W { self.bit(false) } #[doc = r" Writes raw bits to the field"] #[inline] pub fn bit(self, value: bool) -> &'a mut W { const MASK: bool = true; const OFFSET: u8 = 8; self.w.bits &= !((MASK as u32) << OFFSET); self.w.bits |= ((value & MASK) as u32) << OFFSET; self.w } } #[doc = r" Proxy"] pub struct _PINVAL9W<'a> { w: &'a mut W, } impl<'a> _PINVAL9W<'a> { #[doc = r" Sets the field bit"] pub fn set_bit(self) -> &'a mut W { self.bit(true) } #[doc = r" Clears the field bit"] pub fn clear_bit(self) -> &'a mut W { self.bit(false) } #[doc = r" Writes raw bits to the field"] #[inline] pub fn bit(self, value: bool) -> &'a mut W { const MASK: bool = true; const OFFSET: u8 = 9; self.w.bits &= !((MASK as u32) << OFFSET); self.w.bits |= ((value & MASK) as u32) << OFFSET; self.w } } #[doc = r" Proxy"] pub struct _PINVAL10W<'a> { w: &'a mut W, } impl<'a> _PINVAL10W<'a> { #[doc = r" Sets the field bit"] pub fn set_bit(self) -> &'a mut W { self.bit(true) } #[doc = r" Clears the field bit"] pub fn clear_bit(self) -> &'a mut W { self.bit(false) } #[doc = r" Writes raw bits to the field"] #[inline] pub fn bit(self, value: bool) -> &'a mut W { const MASK: bool = true; const OFFSET: u8 = 10; self.w.bits &= !((MASK as u32) << OFFSET); self.w.bits |= ((value & MASK) as u32) << OFFSET; self.w } } #[doc = r" Proxy"] pub struct _PINVAL11W<'a> { w: &'a mut W, } impl<'a> _PINVAL11W<'a> { #[doc = r" Sets the field bit"] pub fn set_bit(self) -> &'a mut W { self.bit(true) } #[doc = r" Clears the field bit"] pub fn clear_bit(self) -> &'a mut W { self.bit(false) } #[doc = r" Writes raw bits to the field"] #[inline] pub fn bit(self, value: bool) -> &'a mut W { const MASK: bool = true; const OFFSET: u8 = 11; self.w.bits &= !((MASK as u32) << OFFSET); self.w.bits |= ((value & MASK) as u32) << OFFSET; self.w } } #[doc = r" Proxy"] pub struct _PINVAL12W<'a> { w: &'a mut W, } impl<'a> _PINVAL12W<'a> { #[doc = r" Sets the field bit"] pub fn set_bit(self) -> &'a mut W { self.bit(true) } #[doc = r" Clears the field bit"] pub fn clear_bit(self) -> &'a mut W { self.bit(false) } #[doc = r" Writes raw bits to the field"] #[inline] pub fn bit(self, value: bool) -> &'a mut W { const MASK: bool = true; const OFFSET: u8 = 12; self.w.bits &= !((MASK as u32) << OFFSET); self.w.bits |= ((value & MASK) as u32) << OFFSET; self.w } } #[doc = r" Proxy"] pub struct _PINVAL13W<'a> { w: &'a mut W, } impl<'a> _PINVAL13W<'a> { #[doc = r" Sets the field bit"] pub fn set_bit(self) -> &'a mut W { self.bit(true) } #[doc = r" Clears the field bit"] pub fn clear_bit(self) -> &'a mut W { self.bit(false) } #[doc = r" Writes raw bits to the field"] #[inline] pub fn bit(self, value: bool) -> &'a mut W { const MASK: bool = true; const OFFSET: u8 = 13; self.w.bits &= !((MASK as u32) << OFFSET); self.w.bits |= ((value & MASK) as u32) << OFFSET; self.w } } #[doc = r" Proxy"] pub struct _PINVAL14W<'a> { w: &'a mut W, } impl<'a> _PINVAL14W<'a> { #[doc = r" Sets the field bit"] pub fn set_bit(self) -> &'a mut W { self.bit(true) } #[doc = r" Clears the field bit"] pub fn clear_bit(self) -> &'a mut W { self.bit(false) } #[doc = r" Writes raw bits to the field"] #[inline] pub fn bit(self, value: bool) -> &'a mut W { const MASK: bool = true; const OFFSET: u8 = 14; self.w.bits &= !((MASK as u32) << OFFSET); self.w.bits |= ((value & MASK) as u32) << OFFSET; self.w } } #[doc = r" Proxy"] pub struct _PINVAL15W<'a> { w: &'a mut W, } impl<'a> _PINVAL15W<'a> { #[doc = r" Sets the field bit"] pub fn set_bit(self) -> &'a mut W { self.bit(true) } #[doc = r" Clears the field bit"] pub fn clear_bit(self) -> &'a mut W { self.bit(false) } #[doc = r" Writes raw bits to the field"] #[inline] pub fn bit(self, value: bool) -> &'a mut W { const MASK: bool = true; const OFFSET: u8 = 15; self.w.bits &= !((MASK as u32) << OFFSET); self.w.bits |= ((value & MASK) as u32) << OFFSET; self.w } } #[doc = r" Proxy"] pub struct _PINVAL16W<'a> { w: &'a mut W, } impl<'a> _PINVAL16W<'a> { #[doc = r" Sets the field bit"] pub fn set_bit(self) -> &'a mut W { self.bit(true) } #[doc = r" Clears the field bit"] pub fn clear_bit(self) -> &'a mut W { self.bit(false) } #[doc = r" Writes raw bits to the field"] #[inline] pub fn bit(self, value: bool) -> &'a mut W { const MASK: bool = true; const OFFSET: u8 = 16; self.w.bits &= !((MASK as u32) << OFFSET); self.w.bits |= ((value & MASK) as u32) << OFFSET; self.w } } #[doc = r" Proxy"] pub struct _PINVAL17W<'a> { w: &'a mut W, } impl<'a> _PINVAL17W<'a> { #[doc = r" Sets the field bit"] pub fn set_bit(self) -> &'a mut W { self.bit(true) } #[doc = r" Clears the field bit"] pub fn clear_bit(self) -> &'a mut W { self.bit(false) } #[doc = r" Writes raw bits to the field"] #[inline] pub fn bit(self, value: bool) -> &'a mut W { const MASK: bool = true; const OFFSET: u8 = 17; self.w.bits &= !((MASK as u32) << OFFSET); self.w.bits |= ((value & MASK) as u32) << OFFSET; self.w } } #[doc = r" Proxy"] pub struct _PINVAL18W<'a> { w: &'a mut W, } impl<'a> _PINVAL18W<'a> { #[doc = r" Sets the field bit"] pub fn set_bit(self) -> &'a mut W { self.bit(true) } #[doc = r" Clears the field bit"] pub fn clear_bit(self) -> &'a mut W { self.bit(false) } #[doc = r" Writes raw bits to the field"] #[inline] pub fn bit(self, value: bool) -> &'a mut W { const MASK: bool = true; const OFFSET: u8 = 18; self.w.bits &= !((MASK as u32) << OFFSET); self.w.bits |= ((value & MASK) as u32) << OFFSET; self.w } } #[doc = r" Proxy"] pub struct _PINVAL19W<'a> { w: &'a mut W, } impl<'a> _PINVAL19W<'a> { #[doc = r" Sets the field bit"] pub fn set_bit(self) -> &'a mut W { self.bit(true) } #[doc = r" Clears the field bit"] pub fn clear_bit(self) -> &'a mut W { self.bit(false) } #[doc = r" Writes raw bits to the field"] #[inline] pub fn bit(self, value: bool) -> &'a mut W { const MASK: bool = true; const OFFSET: u8 = 19; self.w.bits &= !((MASK as u32) << OFFSET); self.w.bits |= ((value & MASK) as u32) << OFFSET; self.w } } #[doc = r" Proxy"] pub struct _PINVAL20W<'a> { w: &'a mut W, } impl<'a> _PINVAL20W<'a> { #[doc = r" Sets the field bit"] pub fn set_bit(self) -> &'a mut W { self.bit(true) } #[doc = r" Clears the field bit"] pub fn clear_bit(self) -> &'a mut W { self.bit(false) } #[doc = r" Writes raw bits to the field"] #[inline] pub fn bit(self, value: bool) -> &'a mut W { const MASK: bool = true; const OFFSET: u8 = 20; self.w.bits &= !((MASK as u32) << OFFSET); self.w.bits |= ((value & MASK) as u32) << OFFSET; self.w } } #[doc = r" Proxy"] pub struct _PINVAL21W<'a> { w: &'a mut W, } impl<'a> _PINVAL21W<'a> { #[doc = r" Sets the field bit"] pub fn set_bit(self) -> &'a mut W { self.bit(true) } #[doc = r" Clears the field bit"] pub fn clear_bit(self) -> &'a mut W { self.bit(false) } #[doc = r" Writes raw bits to the field"] #[inline] pub fn bit(self, value: bool) -> &'a mut W { const MASK: bool = true; const OFFSET: u8 = 21; self.w.bits &= !((MASK as u32) << OFFSET); self.w.bits |= ((value & MASK) as u32) << OFFSET; self.w } } #[doc = r" Proxy"] pub struct _PINVAL22W<'a> { w: &'a mut W, } impl<'a> _PINVAL22W<'a> { #[doc = r" Sets the field bit"] pub fn set_bit(self) -> &'a mut W { self.bit(true) } #[doc = r" Clears the field bit"] pub fn clear_bit(self) -> &'a mut W { self.bit(false) } #[doc = r" Writes raw bits to the field"] #[inline] pub fn bit(self, value: bool) -> &'a mut W { const MASK: bool = true; const OFFSET: u8 = 22; self.w.bits &= !((MASK as u32) << OFFSET); self.w.bits |= ((value & MASK) as u32) << OFFSET; self.w } } #[doc = r" Proxy"] pub struct _PINVAL23W<'a> { w: &'a mut W, } impl<'a> _PINVAL23W<'a> { #[doc = r" Sets the field bit"] pub fn set_bit(self) -> &'a mut W { self.bit(true) } #[doc = r" Clears the field bit"] pub fn clear_bit(self) -> &'a mut W { self.bit(false) } #[doc = r" Writes raw bits to the field"] #[inline] pub fn bit(self, value: bool) -> &'a mut W { const MASK: bool = true; const OFFSET: u8 = 23; self.w.bits &= !((MASK as u32) << OFFSET); self.w.bits |= ((value & MASK) as u32) << OFFSET; self.w } } #[doc = r" Proxy"] pub struct _PINVAL24W<'a> { w: &'a mut W, } impl<'a> _PINVAL24W<'a> { #[doc = r" Sets the field bit"] pub fn set_bit(self) -> &'a mut W { self.bit(true) } #[doc = r" Clears the field bit"] pub fn clear_bit(self) -> &'a mut W { self.bit(false) } #[doc = r" Writes raw bits to the field"] #[inline] pub fn bit(self, value: bool) -> &'a mut W { const MASK: bool = true; const OFFSET: u8 = 24; self.w.bits &= !((MASK as u32) << OFFSET); self.w.bits |= ((value & MASK) as u32) << OFFSET; self.w } } #[doc = r" Proxy"] pub struct _PINVAL25W<'a> { w: &'a mut W, } impl<'a> _PINVAL25W<'a> { #[doc = r" Sets the field bit"] pub fn set_bit(self) -> &'a mut W { self.bit(true) } #[doc = r" Clears the field bit"] pub fn clear_bit(self) -> &'a mut W { self.bit(false) } #[doc = r" Writes raw bits to the field"] #[inline] pub fn bit(self, value: bool) -> &'a mut W { const MASK: bool = true; const OFFSET: u8 = 25; self.w.bits &= !((MASK as u32) << OFFSET); self.w.bits |= ((value & MASK) as u32) << OFFSET; self.w } } #[doc = r" Proxy"] pub struct _PINVAL26W<'a> { w: &'a mut W, } impl<'a> _PINVAL26W<'a> { #[doc = r" Sets the field bit"] pub fn set_bit(self) -> &'a mut W { self.bit(true) } #[doc = r" Clears the field bit"] pub fn clear_bit(self) -> &'a mut W { self.bit(false) } #[doc = r" Writes raw bits to the field"] #[inline] pub fn bit(self, value: bool) -> &'a mut W { const MASK: bool = true; const OFFSET: u8 = 26; self.w.bits &= !((MASK as u32) << OFFSET); self.w.bits |= ((value & MASK) as u32) << OFFSET; self.w } } #[doc = r" Proxy"] pub struct _PINVAL27W<'a> { w: &'a mut W, } impl<'a> _PINVAL27W<'a> { #[doc = r" Sets the field bit"] pub fn set_bit(self) -> &'a mut W { self.bit(true) } #[doc = r" Clears the field bit"] pub fn clear_bit(self) -> &'a mut W { self.bit(false) } #[doc = r" Writes raw bits to the field"] #[inline] pub fn bit(self, value: bool) -> &'a mut W { const MASK: bool = true; const OFFSET: u8 = 27; self.w.bits &= !((MASK as u32) << OFFSET); self.w.bits |= ((value & MASK) as u32) << OFFSET; self.w } } #[doc = r" Proxy"] pub struct _PINVAL28W<'a> { w: &'a mut W, } impl<'a> _PINVAL28W<'a> { #[doc = r" Sets the field bit"] pub fn set_bit(self) -> &'a mut W { self.bit(true) } #[doc = r" Clears the field bit"] pub fn clear_bit(self) -> &'a mut W { self.bit(false) } #[doc = r" Writes raw bits to the field"] #[inline] pub fn bit(self, value: bool) -> &'a mut W { const MASK: bool = true; const OFFSET: u8 = 28; self.w.bits &= !((MASK as u32) << OFFSET); self.w.bits |= ((value & MASK) as u32) << OFFSET; self.w } } #[doc = r" Proxy"] pub struct _PINVAL29W<'a> { w: &'a mut W, } impl<'a> _PINVAL29W<'a> { #[doc = r" Sets the field bit"] pub fn set_bit(self) -> &'a mut W { self.bit(true) } #[doc = r" Clears the field bit"] pub fn clear_bit(self) -> &'a mut W { self.bit(false) } #[doc = r" Writes raw bits to the field"] #[inline] pub fn bit(self, value: bool) -> &'a mut W { const MASK: bool = true; const OFFSET: u8 = 29; self.w.bits &= !((MASK as u32) << OFFSET); self.w.bits |= ((value & MASK) as u32) << OFFSET; self.w } } #[doc = r" Proxy"] pub struct _PINVAL30W<'a> { w: &'a mut W, } impl<'a> _PINVAL30W<'a> { #[doc = r" Sets the field bit"] pub fn set_bit(self) -> &'a mut W { self.bit(true) } #[doc = r" Clears the field bit"] pub fn clear_bit(self) -> &'a mut W { self.bit(false) } #[doc = r" Writes raw bits to the field"] #[inline] pub fn bit(self, value: bool) -> &'a mut W { const MASK: bool = true; const OFFSET: u8 = 30; self.w.bits &= !((MASK as u32) << OFFSET); self.w.bits |= ((value & MASK) as u32) << OFFSET; self.w } } #[doc = r" Proxy"] pub struct _PINVAL31W<'a> { w: &'a mut W, } impl<'a> _PINVAL31W<'a> { #[doc = r" Sets the field bit"] pub fn set_bit(self) -> &'a mut W { self.bit(true) } #[doc = r" Clears the field bit"] pub fn clear_bit(self) -> &'a mut W { self.bit(false) } #[doc = r" Writes raw bits to the field"] #[inline] pub fn bit(self, value: bool) -> &'a mut W { const MASK: bool = true; const OFFSET: u8 = 31; self.w.bits &= !((MASK as u32) << OFFSET); self.w.bits |= ((value & MASK) as u32) << OFFSET; self.w } } impl R { #[doc = r" Value of the register as raw bits"] #[inline] pub fn bits(&self) -> u32 { self.bits } #[doc = "Bit 0 - Fast GPIO output value Set bits. Bit 0 in PINx corresponds to pin Px[0], bit 31 in PINx corresponds to pin Px[31]. 0 = Controlled pin output is set to LOW. 1 = Controlled pin output is set to HIGH."] #[inline] pub fn pinval0(&self) -> PINVAL0R { let bits = { const MASK: bool = true; const OFFSET: u8 = 0; ((self.bits >> OFFSET) & MASK as u32) != 0 }; PINVAL0R { bits } } #[doc = "Bit 1 - Fast GPIO output value Set bits. Bit 0 in PINx corresponds to pin Px[0], bit 31 in PINx corresponds to pin Px[31]. 0 = Controlled pin output is set to LOW. 1 = Controlled pin output is set to HIGH."] #[inline] pub fn pinval1(&self) -> PINVAL1R { let bits = { const MASK: bool = true; const OFFSET: u8 = 1; ((self.bits >> OFFSET) & MASK as u32) != 0 }; PINVAL1R { bits } } #[doc = "Bit 2 - Fast GPIO output value Set bits. Bit 0 in PINx corresponds to pin Px[0], bit 31 in PINx corresponds to pin Px[31]. 0 = Controlled pin output is set to LOW. 1 = Controlled pin output is set to HIGH."] #[inline] pub fn pinval2(&self) -> PINVAL2R { let bits = { const MASK: bool = true; const OFFSET: u8 = 2; ((self.bits >> OFFSET) & MASK as u32) != 0 }; PINVAL2R { bits } } #[doc = "Bit 3 - Fast GPIO output value Set bits. Bit 0 in PINx corresponds to pin Px[0], bit 31 in PINx corresponds to pin Px[31]. 0 = Controlled pin output is set to LOW. 1 = Controlled pin output is set to HIGH."] #[inline] pub fn pinval3(&self) -> PINVAL3R { let bits = { const MASK: bool = true; const OFFSET: u8 = 3; ((self.bits >> OFFSET) & MASK as u32) != 0 }; PINVAL3R { bits } } #[doc = "Bit 4 - Fast GPIO output value Set bits. Bit 0 in PINx corresponds to pin Px[0], bit 31 in PINx corresponds to pin Px[31]. 0 = Controlled pin output is set to LOW. 1 = Controlled pin output is set to HIGH."] #[inline] pub fn pinval4(&self) -> PINVAL4R { let bits = { const MASK: bool = true; const OFFSET: u8 = 4; ((self.bits >> OFFSET) & MASK as u32) != 0 }; PINVAL4R { bits } } #[doc = "Bit 5 - Fast GPIO output value Set bits. Bit 0 in PINx corresponds to pin Px[0], bit 31 in PINx corresponds to pin Px[31]. 0 = Controlled pin output is set to LOW. 1 = Controlled pin output is set to HIGH."] #[inline] pub fn pinval5(&self) -> PINVAL5R { let bits = { const MASK: bool = true; const OFFSET: u8 = 5; ((self.bits >> OFFSET) & MASK as u32) != 0 }; PINVAL5R { bits } } #[doc = "Bit 6 - Fast GPIO output value Set bits. Bit 0 in PINx corresponds to pin Px[0], bit 31 in PINx corresponds to pin Px[31]. 0 = Controlled pin output is set to LOW. 1 = Controlled pin output is set to HIGH."] #[inline] pub fn pinval6(&self) -> PINVAL6R { let bits = { const MASK: bool = true; const OFFSET: u8 = 6; ((self.bits >> OFFSET) & MASK as u32) != 0 }; PINVAL6R { bits } } #[doc = "Bit 7 - Fast GPIO output value Set bits. Bit 0 in PINx corresponds to pin Px[0], bit 31 in PINx corresponds to pin Px[31]. 0 = Controlled pin output is set to LOW. 1 = Controlled pin output is set to HIGH."] #[inline] pub fn pinval7(&self) -> PINVAL7R { let bits = { const MASK: bool = true; const OFFSET: u8 = 7; ((self.bits >> OFFSET) & MASK as u32) != 0 }; PINVAL7R { bits } } #[doc = "Bit 8 - Fast GPIO output value Set bits. Bit 0 in PINx corresponds to pin Px[0], bit 31 in PINx corresponds to pin Px[31]. 0 = Controlled pin output is set to LOW. 1 = Controlled pin output is set to HIGH."] #[inline] pub fn pinval8(&self) -> PINVAL8R { let bits = { const MASK: bool = true; const OFFSET: u8 = 8; ((self.bits >> OFFSET) & MASK as u32) != 0 }; PINVAL8R { bits } } #[doc = "Bit 9 - Fast GPIO output value Set bits. Bit 0 in PINx corresponds to pin Px[0], bit 31 in PINx corresponds to pin Px[31]. 0 = Controlled pin output is set to LOW. 1 = Controlled pin output is set to HIGH."] #[inline] pub fn pinval9(&self) -> PINVAL9R { let bits = { const MASK: bool = true; const OFFSET: u8 = 9; ((self.bits >> OFFSET) & MASK as u32) != 0 }; PINVAL9R { bits } } #[doc = "Bit 10 - Fast GPIO output value Set bits. Bit 0 in PINx corresponds to pin Px[0], bit 31 in PINx corresponds to pin Px[31]. 0 = Controlled pin output is set to LOW. 1 = Controlled pin output is set to HIGH."] #[inline] pub fn pinval10(&self) -> PINVAL10R { let bits = { const MASK: bool = true; const OFFSET: u8 = 10; ((self.bits >> OFFSET) & MASK as u32) != 0 }; PINVAL10R { bits } } #[doc = "Bit 11 - Fast GPIO output value Set bits. Bit 0 in PINx corresponds to pin Px[0], bit 31 in PINx corresponds to pin Px[31]. 0 = Controlled pin output is set to LOW. 1 = Controlled pin output is set to HIGH."] #[inline] pub fn pinval11(&self) -> PINVAL11R { let bits = { const MASK: bool = true; const OFFSET: u8 = 11; ((self.bits >> OFFSET) & MASK as u32) != 0 }; PINVAL11R { bits } } #[doc = "Bit 12 - Fast GPIO output value Set bits. Bit 0 in PINx corresponds to pin Px[0], bit 31 in PINx corresponds to pin Px[31]. 0 = Controlled pin output is set to LOW. 1 = Controlled pin output is set to HIGH."] #[inline] pub fn pinval12(&self) -> PINVAL12R { let bits = { const MASK: bool = true; const OFFSET: u8 = 12; ((self.bits >> OFFSET) & MASK as u32) != 0 }; PINVAL12R { bits } } #[doc = "Bit 13 - Fast GPIO output value Set bits. Bit 0 in PINx corresponds to pin Px[0], bit 31 in PINx corresponds to pin Px[31]. 0 = Controlled pin output is set to LOW. 1 = Controlled pin output is set to HIGH."] #[inline] pub fn pinval13(&self) -> PINVAL13R { let bits = { const MASK: bool = true; const OFFSET: u8 = 13; ((self.bits >> OFFSET) & MASK as u32) != 0 }; PINVAL13R { bits } } #[doc = "Bit 14 - Fast GPIO output value Set bits. Bit 0 in PINx corresponds to pin Px[0], bit 31 in PINx corresponds to pin Px[31]. 0 = Controlled pin output is set to LOW. 1 = Controlled pin output is set to HIGH."] #[inline] pub fn pinval14(&self) -> PINVAL14R { let bits = { const MASK: bool = true; const OFFSET: u8 = 14; ((self.bits >> OFFSET) & MASK as u32) != 0 }; PINVAL14R { bits } } #[doc = "Bit 15 - Fast GPIO output value Set bits. Bit 0 in PINx corresponds to pin Px[0], bit 31 in PINx corresponds to pin Px[31]. 0 = Controlled pin output is set to LOW. 1 = Controlled pin output is set to HIGH."] #[inline] pub fn pinval15(&self) -> PINVAL15R { let bits = { const MASK: bool = true; const OFFSET: u8 = 15; ((self.bits >> OFFSET) & MASK as u32) != 0 }; PINVAL15R { bits } } #[doc = "Bit 16 - Fast GPIO output value Set bits. Bit 0 in PINx corresponds to pin Px[0], bit 31 in PINx corresponds to pin Px[31]. 0 = Controlled pin output is set to LOW. 1 = Controlled pin output is set to HIGH."] #[inline] pub fn pinval16(&self) -> PINVAL16R { let bits = { const MASK: bool = true; const OFFSET: u8 = 16; ((self.bits >> OFFSET) & MASK as u32) != 0 }; PINVAL16R { bits } } #[doc = "Bit 17 - Fast GPIO output value Set bits. Bit 0 in PINx corresponds to pin Px[0], bit 31 in PINx corresponds to pin Px[31]. 0 = Controlled pin output is set to LOW. 1 = Controlled pin output is set to HIGH."] #[inline] pub fn pinval17(&self) -> PINVAL17R { let bits = { const MASK: bool = true; const OFFSET: u8 = 17; ((self.bits >> OFFSET) & MASK as u32) != 0 }; PINVAL17R { bits } } #[doc = "Bit 18 - Fast GPIO output value Set bits. Bit 0 in PINx corresponds to pin Px[0], bit 31 in PINx corresponds to pin Px[31]. 0 = Controlled pin output is set to LOW. 1 = Controlled pin output is set to HIGH."] #[inline] pub fn pinval18(&self) -> PINVAL18R { let bits = { const MASK: bool = true; const OFFSET: u8 = 18; ((self.bits >> OFFSET) & MASK as u32) != 0 }; PINVAL18R { bits } } #[doc = "Bit 19 - Fast GPIO output value Set bits. Bit 0 in PINx corresponds to pin Px[0], bit 31 in PINx corresponds to pin Px[31]. 0 = Controlled pin output is set to LOW. 1 = Controlled pin output is set to HIGH."] #[inline] pub fn pinval19(&self) -> PINVAL19R { let bits = { const MASK: bool = true; const OFFSET: u8 = 19; ((self.bits >> OFFSET) & MASK as u32) != 0 }; PINVAL19R { bits } } #[doc = "Bit 20 - Fast GPIO output value Set bits. Bit 0 in PINx corresponds to pin Px[0], bit 31 in PINx corresponds to pin Px[31]. 0 = Controlled pin output is set to LOW. 1 = Controlled pin output is set to HIGH."] #[inline] pub fn pinval20(&self) -> PINVAL20R { let bits = { const MASK: bool = true; const OFFSET: u8 = 20; ((self.bits >> OFFSET) & MASK as u32) != 0 }; PINVAL20R { bits } } #[doc = "Bit 21 - Fast GPIO output value Set bits. Bit 0 in PINx corresponds to pin Px[0], bit 31 in PINx corresponds to pin Px[31]. 0 = Controlled pin output is set to LOW. 1 = Controlled pin output is set to HIGH."] #[inline] pub fn pinval21(&self) -> PINVAL21R { let bits = { const MASK: bool = true; const OFFSET: u8 = 21; ((self.bits >> OFFSET) & MASK as u32) != 0 }; PINVAL21R { bits } } #[doc = "Bit 22 - Fast GPIO output value Set bits. Bit 0 in PINx corresponds to pin Px[0], bit 31 in PINx corresponds to pin Px[31]. 0 = Controlled pin output is set to LOW. 1 = Controlled pin output is set to HIGH."] #[inline] pub fn pinval22(&self) -> PINVAL22R { let bits = { const MASK: bool = true; const OFFSET: u8 = 22; ((self.bits >> OFFSET) & MASK as u32) != 0 }; PINVAL22R { bits } } #[doc = "Bit 23 - Fast GPIO output value Set bits. Bit 0 in PINx corresponds to pin Px[0], bit 31 in PINx corresponds to pin Px[31]. 0 = Controlled pin output is set to LOW. 1 = Controlled pin output is set to HIGH."] #[inline] pub fn pinval23(&self) -> PINVAL23R { let bits = { const MASK: bool = true; const OFFSET: u8 = 23; ((self.bits >> OFFSET) & MASK as u32) != 0 }; PINVAL23R { bits } } #[doc = "Bit 24 - Fast GPIO output value Set bits. Bit 0 in PINx corresponds to pin Px[0], bit 31 in PINx corresponds to pin Px[31]. 0 = Controlled pin output is set to LOW. 1 = Controlled pin output is set to HIGH."] #[inline] pub fn pinval24(&self) -> PINVAL24R { let bits = { const MASK: bool = true; const OFFSET: u8 = 24; ((self.bits >> OFFSET) & MASK as u32) != 0 }; PINVAL24R { bits } } #[doc = "Bit 25 - Fast GPIO output value Set bits. Bit 0 in PINx corresponds to pin Px[0], bit 31 in PINx corresponds to pin Px[31]. 0 = Controlled pin output is set to LOW. 1 = Controlled pin output is set to HIGH."] #[inline] pub fn pinval25(&self) -> PINVAL25R { let bits = { const MASK: bool = true; const OFFSET: u8 = 25; ((self.bits >> OFFSET) & MASK as u32) != 0 }; PINVAL25R { bits } } #[doc = "Bit 26 - Fast GPIO output value Set bits. Bit 0 in PINx corresponds to pin Px[0], bit 31 in PINx corresponds to pin Px[31]. 0 = Controlled pin output is set to LOW. 1 = Controlled pin output is set to HIGH."] #[inline] pub fn pinval26(&self) -> PINVAL26R { let bits = { const MASK: bool = true; const OFFSET: u8 = 26; ((self.bits >> OFFSET) & MASK as u32) != 0 }; PINVAL26R { bits } } #[doc = "Bit 27 - Fast GPIO output value Set bits. Bit 0 in PINx corresponds to pin Px[0], bit 31 in PINx corresponds to pin Px[31]. 0 = Controlled pin output is set to LOW. 1 = Controlled pin output is set to HIGH."] #[inline] pub fn pinval27(&self) -> PINVAL27R { let bits = { const MASK: bool = true; const OFFSET: u8 = 27; ((self.bits >> OFFSET) & MASK as u32) != 0 }; PINVAL27R { bits } } #[doc = "Bit 28 - Fast GPIO output value Set bits. Bit 0 in PINx corresponds to pin Px[0], bit 31 in PINx corresponds to pin Px[31]. 0 = Controlled pin output is set to LOW. 1 = Controlled pin output is set to HIGH."] #[inline] pub fn pinval28(&self) -> PINVAL28R { let bits = { const MASK: bool = true; const OFFSET: u8 = 28; ((self.bits >> OFFSET) & MASK as u32) != 0 }; PINVAL28R { bits } } #[doc = "Bit 29 - Fast GPIO output value Set bits. Bit 0 in PINx corresponds to pin Px[0], bit 31 in PINx corresponds to pin Px[31]. 0 = Controlled pin output is set to LOW. 1 = Controlled pin output is set to HIGH."] #[inline] pub fn pinval29(&self) -> PINVAL29R { let bits = { const MASK: bool = true; const OFFSET: u8 = 29; ((self.bits >> OFFSET) & MASK as u32) != 0 }; PINVAL29R { bits } } #[doc = "Bit 30 - Fast GPIO output value Set bits. Bit 0 in PINx corresponds to pin Px[0], bit 31 in PINx corresponds to pin Px[31]. 0 = Controlled pin output is set to LOW. 1 = Controlled pin output is set to HIGH."] #[inline] pub fn pinval30(&self) -> PINVAL30R { let bits = { const MASK: bool = true; const OFFSET: u8 = 30; ((self.bits >> OFFSET) & MASK as u32) != 0 }; PINVAL30R { bits } } #[doc = "Bit 31 - Fast GPIO output value Set bits. Bit 0 in PINx corresponds to pin Px[0], bit 31 in PINx corresponds to pin Px[31]. 0 = Controlled pin output is set to LOW. 1 = Controlled pin output is set to HIGH."] #[inline] pub fn pinval31(&self) -> PINVAL31R { let bits = { const MASK: bool = true; const OFFSET: u8 = 31; ((self.bits >> OFFSET) & MASK as u32) != 0 }; PINVAL31R { bits } } } impl W { #[doc = r" Reset value of the register"] #[inline] pub fn reset_value() -> W { W { bits: 0 } } #[doc = r" Writes raw bits to the register"] #[inline] pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { self.bits = bits; self } #[doc = "Bit 0 - Fast GPIO output value Set bits. Bit 0 in PINx corresponds to pin Px[0], bit 31 in PINx corresponds to pin Px[31]. 0 = Controlled pin output is set to LOW. 1 = Controlled pin output is set to HIGH."] #[inline] pub fn pinval0(&mut self) -> _PINVAL0W { _PINVAL0W { w: self } } #[doc = "Bit 1 - Fast GPIO output value Set bits. Bit 0 in PINx corresponds to pin Px[0], bit 31 in PINx corresponds to pin Px[31]. 0 = Controlled pin output is set to LOW. 1 = Controlled pin output is set to HIGH."] #[inline] pub fn pinval1(&mut self) -> _PINVAL1W { _PINVAL1W { w: self } } #[doc = "Bit 2 - Fast GPIO output value Set bits. Bit 0 in PINx corresponds to pin Px[0], bit 31 in PINx corresponds to pin Px[31]. 0 = Controlled pin output is set to LOW. 1 = Controlled pin output is set to HIGH."] #[inline] pub fn pinval2(&mut self) -> _PINVAL2W { _PINVAL2W { w: self } } #[doc = "Bit 3 - Fast GPIO output value Set bits. Bit 0 in PINx corresponds to pin Px[0], bit 31 in PINx corresponds to pin Px[31]. 0 = Controlled pin output is set to LOW. 1 = Controlled pin output is set to HIGH."] #[inline] pub fn pinval3(&mut self) -> _PINVAL3W { _PINVAL3W { w: self } } #[doc = "Bit 4 - Fast GPIO output value Set bits. Bit 0 in PINx corresponds to pin Px[0], bit 31 in PINx corresponds to pin Px[31]. 0 = Controlled pin output is set to LOW. 1 = Controlled pin output is set to HIGH."] #[inline] pub fn pinval4(&mut self) -> _PINVAL4W { _PINVAL4W { w: self } } #[doc = "Bit 5 - Fast GPIO output value Set bits. Bit 0 in PINx corresponds to pin Px[0], bit 31 in PINx corresponds to pin Px[31]. 0 = Controlled pin output is set to LOW. 1 = Controlled pin output is set to HIGH."] #[inline] pub fn pinval5(&mut self) -> _PINVAL5W { _PINVAL5W { w: self } } #[doc = "Bit 6 - Fast GPIO output value Set bits. Bit 0 in PINx corresponds to pin Px[0], bit 31 in PINx corresponds to pin Px[31]. 0 = Controlled pin output is set to LOW. 1 = Controlled pin output is set to HIGH."] #[inline] pub fn pinval6(&mut self) -> _PINVAL6W { _PINVAL6W { w: self } } #[doc = "Bit 7 - Fast GPIO output value Set bits. Bit 0 in PINx corresponds to pin Px[0], bit 31 in PINx corresponds to pin Px[31]. 0 = Controlled pin output is set to LOW. 1 = Controlled pin output is set to HIGH."] #[inline] pub fn pinval7(&mut self) -> _PINVAL7W { _PINVAL7W { w: self } } #[doc = "Bit 8 - Fast GPIO output value Set bits. Bit 0 in PINx corresponds to pin Px[0], bit 31 in PINx corresponds to pin Px[31]. 0 = Controlled pin output is set to LOW. 1 = Controlled pin output is set to HIGH."] #[inline] pub fn pinval8(&mut self) -> _PINVAL8W { _PINVAL8W { w: self } } #[doc = "Bit 9 - Fast GPIO output value Set bits. Bit 0 in PINx corresponds to pin Px[0], bit 31 in PINx corresponds to pin Px[31]. 0 = Controlled pin output is set to LOW. 1 = Controlled pin output is set to HIGH."] #[inline] pub fn pinval9(&mut self) -> _PINVAL9W { _PINVAL9W { w: self } } #[doc = "Bit 10 - Fast GPIO output value Set bits. Bit 0 in PINx corresponds to pin Px[0], bit 31 in PINx corresponds to pin Px[31]. 0 = Controlled pin output is set to LOW. 1 = Controlled pin output is set to HIGH."] #[inline] pub fn pinval10(&mut self) -> _PINVAL10W { _PINVAL10W { w: self } } #[doc = "Bit 11 - Fast GPIO output value Set bits. Bit 0 in PINx corresponds to pin Px[0], bit 31 in PINx corresponds to pin Px[31]. 0 = Controlled pin output is set to LOW. 1 = Controlled pin output is set to HIGH."] #[inline] pub fn pinval11(&mut self) -> _PINVAL11W { _PINVAL11W { w: self } } #[doc = "Bit 12 - Fast GPIO output value Set bits. Bit 0 in PINx corresponds to pin Px[0], bit 31 in PINx corresponds to pin Px[31]. 0 = Controlled pin output is set to LOW. 1 = Controlled pin output is set to HIGH."] #[inline] pub fn pinval12(&mut self) -> _PINVAL12W { _PINVAL12W { w: self } } #[doc = "Bit 13 - Fast GPIO output value Set bits. Bit 0 in PINx corresponds to pin Px[0], bit 31 in PINx corresponds to pin Px[31]. 0 = Controlled pin output is set to LOW. 1 = Controlled pin output is set to HIGH."] #[inline] pub fn pinval13(&mut self) -> _PINVAL13W { _PINVAL13W { w: self } } #[doc = "Bit 14 - Fast GPIO output value Set bits. Bit 0 in PINx corresponds to pin Px[0], bit 31 in PINx corresponds to pin Px[31]. 0 = Controlled pin output is set to LOW. 1 = Controlled pin output is set to HIGH."] #[inline] pub fn pinval14(&mut self) -> _PINVAL14W { _PINVAL14W { w: self } } #[doc = "Bit 15 - Fast GPIO output value Set bits. Bit 0 in PINx corresponds to pin Px[0], bit 31 in PINx corresponds to pin Px[31]. 0 = Controlled pin output is set to LOW. 1 = Controlled pin output is set to HIGH."] #[inline] pub fn pinval15(&mut self) -> _PINVAL15W { _PINVAL15W { w: self } } #[doc = "Bit 16 - Fast GPIO output value Set bits. Bit 0 in PINx corresponds to pin Px[0], bit 31 in PINx corresponds to pin Px[31]. 0 = Controlled pin output is set to LOW. 1 = Controlled pin output is set to HIGH."] #[inline] pub fn pinval16(&mut self) -> _PINVAL16W { _PINVAL16W { w: self } } #[doc = "Bit 17 - Fast GPIO output value Set bits. Bit 0 in PINx corresponds to pin Px[0], bit 31 in PINx corresponds to pin Px[31]. 0 = Controlled pin output is set to LOW. 1 = Controlled pin output is set to HIGH."] #[inline] pub fn pinval17(&mut self) -> _PINVAL17W { _PINVAL17W { w: self } } #[doc = "Bit 18 - Fast GPIO output value Set bits. Bit 0 in PINx corresponds to pin Px[0], bit 31 in PINx corresponds to pin Px[31]. 0 = Controlled pin output is set to LOW. 1 = Controlled pin output is set to HIGH."] #[inline] pub fn pinval18(&mut self) -> _PINVAL18W { _PINVAL18W { w: self } } #[doc = "Bit 19 - Fast GPIO output value Set bits. Bit 0 in PINx corresponds to pin Px[0], bit 31 in PINx corresponds to pin Px[31]. 0 = Controlled pin output is set to LOW. 1 = Controlled pin output is set to HIGH."] #[inline] pub fn pinval19(&mut self) -> _PINVAL19W { _PINVAL19W { w: self } } #[doc = "Bit 20 - Fast GPIO output value Set bits. Bit 0 in PINx corresponds to pin Px[0], bit 31 in PINx corresponds to pin Px[31]. 0 = Controlled pin output is set to LOW. 1 = Controlled pin output is set to HIGH."] #[inline] pub fn pinval20(&mut self) -> _PINVAL20W { _PINVAL20W { w: self } } #[doc = "Bit 21 - Fast GPIO output value Set bits. Bit 0 in PINx corresponds to pin Px[0], bit 31 in PINx corresponds to pin Px[31]. 0 = Controlled pin output is set to LOW. 1 = Controlled pin output is set to HIGH."] #[inline] pub fn pinval21(&mut self) -> _PINVAL21W { _PINVAL21W { w: self } } #[doc = "Bit 22 - Fast GPIO output value Set bits. Bit 0 in PINx corresponds to pin Px[0], bit 31 in PINx corresponds to pin Px[31]. 0 = Controlled pin output is set to LOW. 1 = Controlled pin output is set to HIGH."] #[inline] pub fn pinval22(&mut self) -> _PINVAL22W { _PINVAL22W { w: self } } #[doc = "Bit 23 - Fast GPIO output value Set bits. Bit 0 in PINx corresponds to pin Px[0], bit 31 in PINx corresponds to pin Px[31]. 0 = Controlled pin output is set to LOW. 1 = Controlled pin output is set to HIGH."] #[inline] pub fn pinval23(&mut self) -> _PINVAL23W { _PINVAL23W { w: self } } #[doc = "Bit 24 - Fast GPIO output value Set bits. Bit 0 in PINx corresponds to pin Px[0], bit 31 in PINx corresponds to pin Px[31]. 0 = Controlled pin output is set to LOW. 1 = Controlled pin output is set to HIGH."] #[inline] pub fn pinval24(&mut self) -> _PINVAL24W { _PINVAL24W { w: self } } #[doc = "Bit 25 - Fast GPIO output value Set bits. Bit 0 in PINx corresponds to pin Px[0], bit 31 in PINx corresponds to pin Px[31]. 0 = Controlled pin output is set to LOW. 1 = Controlled pin output is set to HIGH."] #[inline] pub fn pinval25(&mut self) -> _PINVAL25W { _PINVAL25W { w: self } } #[doc = "Bit 26 - Fast GPIO output value Set bits. Bit 0 in PINx corresponds to pin Px[0], bit 31 in PINx corresponds to pin Px[31]. 0 = Controlled pin output is set to LOW. 1 = Controlled pin output is set to HIGH."] #[inline] pub fn pinval26(&mut self) -> _PINVAL26W { _PINVAL26W { w: self } } #[doc = "Bit 27 - Fast GPIO output value Set bits. Bit 0 in PINx corresponds to pin Px[0], bit 31 in PINx corresponds to pin Px[31]. 0 = Controlled pin output is set to LOW. 1 = Controlled pin output is set to HIGH."] #[inline] pub fn pinval27(&mut self) -> _PINVAL27W { _PINVAL27W { w: self } } #[doc = "Bit 28 - Fast GPIO output value Set bits. Bit 0 in PINx corresponds to pin Px[0], bit 31 in PINx corresponds to pin Px[31]. 0 = Controlled pin output is set to LOW. 1 = Controlled pin output is set to HIGH."] #[inline] pub fn pinval28(&mut self) -> _PINVAL28W { _PINVAL28W { w: self } } #[doc = "Bit 29 - Fast GPIO output value Set bits. Bit 0 in PINx corresponds to pin Px[0], bit 31 in PINx corresponds to pin Px[31]. 0 = Controlled pin output is set to LOW. 1 = Controlled pin output is set to HIGH."] #[inline] pub fn pinval29(&mut self) -> _PINVAL29W { _PINVAL29W { w: self } } #[doc = "Bit 30 - Fast GPIO output value Set bits. Bit 0 in PINx corresponds to pin Px[0], bit 31 in PINx corresponds to pin Px[31]. 0 = Controlled pin output is set to LOW. 1 = Controlled pin output is set to HIGH."] #[inline] pub fn pinval30(&mut self) -> _PINVAL30W { _PINVAL30W { w: self } } #[doc = "Bit 31 - Fast GPIO output value Set bits. Bit 0 in PINx corresponds to pin Px[0], bit 31 in PINx corresponds to pin Px[31]. 0 = Controlled pin output is set to LOW. 1 = Controlled pin output is set to HIGH."] #[inline] pub fn pinval31(&mut self) -> _PINVAL31W { _PINVAL31W { w: self } } }
William Perlman/The Star-LedgerGiants linebacker Clint Sintim, who is trying to battle his way back from a second major knee injury in as many years, might be waived by the team today. On Wednesday afternoon, Clint Sintim sent out an ominous-sounding tweet. "Change is inevitable....That's (a part) of life," the Giants' linebacker wrote. "How a man responds to change ultimately defines his character...as always...#DontCountMeOut!" Sintim is trying to come back from a second major knee injury in as many years after shredding his patella tendon and anterior cruciate ligament one season after tearing his ACL. Though he's been telling his Twitter followers to not count him out for months now, it seems his time with the Giants could be up. The team released a new roster today and Sintim is not on it. The Giants are in the midst of making a bunch of additions and subtractions to the roster and Sintim, who has been on the physically-unable-to-perform list since the start of camp, is a long way from playing another meaningful down. The 2009 second-round pick would head to injured reserve if and when he's waived. After that, he and the team could reach an injury settlement in this, the final season of his rookie contract. Sintim appeared in 24 games in his first two seasons before suffering his first ACL tear in December 2010. In last year's preseason finale in New England, he went down with a much more severe injury. Sintim had one sack as a rookie and started one game in 2010. Meanwhile, the Giants are working out free-agent defensive tackle Marcus Thomas this morning. It's possible he could be signed by the start of practice this afternoon. Also, former Montclair State defensive tackle Bobby Skinner is a new addition to the roster. Skinner attended Giants rookie camp in the spring on a tryout basis. Some folks have asked about DT Albert Haynesworth, about whom the Giants inquired in the spring. I'm told it's not going to happen. I didn't get a reason but last we heard, his former DL coach Jim Washburn said Haynesworth was likely done. Just had an email forwarded to me listing a bunch of books due for publication in the coming months. One of them is "Earn the Right to Win: How Success in Any Field Starts with Superior Preparation" by Tom Coughlin, in collaboration with David Fisher. Coughlin had a book done after his first Super Bowl that gave a behind-the-scenes look at the team. This one sounds more like a read on his philosophy on coaching and all things in life.
Zn(II) and Co(II) 3D Coordination Polymers Based on 2-Iodoterephtalic Acid and 1,2-bis(4-pyridyl)ethane: Structures and Sorption Properties Metal-organic frameworks (M = Zn(II), Co(II), 2-I-bdc = 2-iodoterephtalic acid, and bpe = 1,2-bis(4-pyridyl)ethane) were prepared and characterized by X-ray diffractometry. Both compounds retain their 3D structure after the removal of guest DMF molecules. Selectivity of sorption of different organic substrates from the gas phase was investigated for both complexes. The sorption ability of MOFs is closely related to the features of supramolecular contacts between organic ligands and guest molecules. These non-covalent interactions can be different. Usually, the main role is played by hydrogen bonding, but reports also appear where other types of supramolecular interactions, in particular, halogen bonding (XB), have a major contribution. These examples are yet rare, but, in our opinion, they demonstrate that this topic can evolve further. Results and Discussion The structures of 1 and 2 are based on similar building blocks. In both cases, there form dimeric paddlewheel-type {M 2 (OOCR) 4 (bpe) 2 } units (Figure 1), very common for carboxylate complexes. The M-O bond lengths in 1 and 2 are 2.029-2.051 and 2.013-2.036, respectively, the M-N bonds are 2.019-2.030 and 2.044, respectively. The iodine atoms of 2-I-bdc ligands are disordered over three positions in both structures (the occupancies are 0.444:0.307:0.249 and 0.641:0.160:0.199, respectively). In structure 1, one of two arene rings in bpe ligand is disordered as well (two positions with 0.68:0.32 occupancy).. Both compounds feature 3D structure; sorption selectivity was investigated and compared for 1 and 2. Results and Discussion The structures of 1 and 2 are based on similar building blocks. In both cases, there form dimeric paddlewheel-type {M2(OOCR)4(bpe)2} units (Figure 1 The {M2(I-bdc)4} secondary building units are further connected via bpe ligands to a cuboid framework with rhombic-rod pores. Previously reported non-iodinated congener, , reveals a tetragonal structure with bpe disordered over eight positions due to its proximity to a special position (4/mmm). Compound 1 comprises more ordered bpe (two crystallographically independent ligands) and two independent I-bdc ligands (Figure 2), thereby exhibiting a less symmetrical structure of ca. 4-fold increased cell volume as compared to . For 1, the non-equivalence of the bpe and Ibdc ligands manifest in a different relative arrangement of the aromatic rings and (in the case of I-bdc) in a different disorder pattern of I atoms. The {M 2 (I-bdc) 4 } secondary building units are further connected via bpe ligands to a cuboid framework with rhombic-rod pores. Previously reported non-iodinated congener, , reveals a tetragonal structure with bpe disordered over eight positions due to its proximity to a special position (4/mmm). Compound 1 comprises more ordered bpe (two crystallographically independent ligands) and two independent I-bdc ligands ( Figure 2), thereby exhibiting a less symmetrical structure of ca. 4-fold increased cell volume as compared to [Zn 2 (bdc) 2 The structure of 2 is more symmetrical (namely, it has fewer translational symmetry elements per the same fragment of the structure), comprising only one independent I-bdc and half of bpe ligand (Figure 3). In structures of 1 and 2, the frameworks show two-fold interpenetration (Figure 4), which reduces the volume of voids accessible for the inclusion of solvate molecules. The potential volume is estimated to be 22% and 25% from the total volume of structures 1 and 2, respectively, although the actual values are higher due to the unaccounted volume taken by the disordered atoms. The topology of MOFs 1 and 2 is shown in Figure 5. The structure of 2 is more symmetrical (namely, it has fewer translational symmetry elements per the same fragment of the structure), comprising only one independent I-bdc and half of bpe ligand (Figure 3). In structures of 1 and 2, the frameworks show two-fold interpenetration (Figure 4), which reduces the volume of voids accessible for the inclusion of solvate molecules. The potential volume is estimated to be 22% and 25% from the tota volume of structures 1 and 2, respectively, although the actual values are higher due to the unaccounted volume taken by the disordered atoms. The topology of MOFs 1 and 2 is shown in Figure 5. The experimental PXRD pattern for 1 resembles that for the sub-structure akin to 2 ( Figure S1); compound 1 retains its structure after the removal of guest DMF molecules (see Experimental for details). The notable difference between the experimental and sim ulated patterns of 1 may arise from a slight change of the structure upon partial loss o solvate molecules under sample preparation and/or due to difference in the temperature of the single-crystal (150 K) and powder (298 K) experiments. To clarify this, we carried temperature patterns for as-synthesized and activated samples ( Figure S1). The same trend was observed for the PXRD patterns of sample 2 (Figures S2 and S4). Upon activation of sample 2, the structure changes more noticeably, which was reflected in the appearance of strong superstructural reflections. Sorption selectivity of 1 and 2 towards different organic substrates was examined using NMR (see Supplementary Information for NMR spectra). Results are given in Table 1. Both 1 and 2 more readily absorbed 1,2-dichloroethane from its mixture with benzene than MOFs of the dabco family. Although the difference was not large, these results are rather inspiring. The best selectivity was demonstrated by 1 for benzene/cyclohexane mixtures-it exceeded one of . Interestingly, the selectivity in 1-butanol/1bromobutane pair was reversed for bpe and dabco series; the reasons for this effect are The experimental PXRD pattern for 1 resembles that for the sub-structure akin to 2 ( Figure S1); compound 1 retains its structure after the removal of guest DMF molecules (see Experimental for details). The notable difference between the experimental and simulated patterns of 1 may arise from a slight change of the structure upon partial loss of solvate molecules under sample preparation and/or due to difference in the temperature of the single-crystal (150 K) and powder (298 K) experiments. To clarify this, we carried out PXRD experiments at 150 K for an as-synthesized sample under a small amount of the mother liquor; the data was in better agreement with the simulated pattern of the sub-structure. A few superstructural reflections were observed; however, they did not correspond to super-structure 1. The presence of sub-and super-structures for the family of MOFs seemed to be common. For instance, related MOFs formulated as (dabco is 1,8-diazabicyclooctane) revealed a variety of cuboid structures of the same topology that differ from each other mainly by spatial geometry of {Zn(bdc)} layers. Relatively poor quality of the PXRD pattern of 1 did not allow us to evaluate the superstructural motif. The PXRD for a sample of 1 dried naturally, measured at 150 K ( Figure S3, SI), slightly differed from that with the mother liquor, implying minor structural transformations upon partial loss of the solvate. It became similar to the room-temperature patterns for as-synthesized and activated samples ( Figure S1). The same trend was observed for the PXRD patterns of sample 2 ( Figures S2 and S4). Upon activation of sample 2, the structure changes more noticeably, which was reflected in the appearance of strong superstructural reflections. Sorption selectivity of 1 and 2 towards different organic substrates was examined using NMR (see Supplementary Information for NMR spectra). Results are given in Table 1. Both 1 and 2 more readily absorbed 1,2-dichloroethane from its mixture with benzene than MOFs of the dabco family. Although the difference was not large, these results are rather inspiring. The best selectivity was demonstrated by 1 for benzene/cyclohexane mixtures-it exceeded one of . Interestingly, the selectivity in 1-butanol/1bromobutane pair was reversed for bpe and dabco series; the reasons for this effect are unclear. Materials and Methods All reagents were obtained from commercial sources and used as purchased. Solvents were purified according to the standard procedures. 2-iodoterephtalic acid was prepared according to the method reported earlier and identified by its 1 H and 13 C NMR spectra. Synthesis of 1 Seventy-four and a half micrograms (0.25 mmol) of Zn(NO 3 ) 2 6H 2 O, 73 mg (0.25 mmol) of 2-I-bdc, 23 mg (0.125 mmol) of bpe, and 8 mL of anhydrous DMF were placed into a glass ampoule which was sealed, kept in an ultrasonic bath for 10 min and kept at 120 C for 48 h with slow cooling to room temperature-forming colorless crystals of 1 with a 79% yield. Sorption of organic substrates The method was identical to one described by us earlier. Prior to sorption experiments, samples of 1 or 2 were kept in excess of acetone for 48 h, followed by drying in vacuo (4 h, 60 C) in order to eliminate guest DMF molecules. After that, the sample of MOF (50 mg) was placed into an open smaller vial, which was then placed into the closed bigger vial containing a mixture of organic substrates in 1:1 M ratio so that the liquid phase level is below the edges of the smaller vial. By this, the MOF sample was allowed to absorb organic substrates from the gas phase. After 48 h, the MOF sample was placed into a DMF:d 6 -DMSO mixture (1:1) and kept for 48 h again in order to desorb the substrates from the pores. The organic solvents and the ratio between the extracted organic substrates were established by comparison of relevant 1 H NMR intensities (see SI). X-ray Diffractometry Data sets for single crystals of 1 and 2 were obtained at 150 K on a Bruker D8 Venture diffractometer (Bruker, Billerica, MA, USA) with a CMOS PHOTON III detector and IS 3.0 source (mirror optics, (MoK) = 0.71073 ). Absorption corrections were applied with the use of the SADABS program. The crystal structures were solved using the SHELXT and were refined using SHELXL programs with OLEX2 GUI. Atomic displacement parameters for non-hydrogen atoms were refined anisotropically. The available volume for solvate molecules is estimated using OLEX2 Solvent Mask Procedure to be minimum 214 3 and 240 3 per formula unit for 1 and 2, respectively; actual space is larger due to the disorder of iodine atoms. Details of XRD experiments are given in SI (Table S1). CCDC 2142027-2142028 contains the supplementary crystallographic data for this paper. Powder X-ray Diffractometry (PXRD) Powder XRD data for the compounds were collected at 150 K by a Bruker D8 Venture diffractometer (Bruker, Billerica, MA, USA) with a CMOS PHOTON III detector and ImS 3.0 microfocus source (CuK radiation, collimating Montel mirrors). Powder samples were mounted on a nylon loop with a small amount of epoxy resin. By -scanning (360 ), Debye diffraction patterns with continuous diffraction arcs were measured. To diminish the effect of the preferred orientations, five scans were made at different positions of a goniometer for from -240 to 0. The external standard (Si) correction and integration were performed using the Dioptas program. At 298 K, PXRD analysis was performed on Shimadzu XRD-7000 diffractometer (Shimadzu Scientific Instruments Incorporated, Kyoto, Japan) (CuK-alpha radiation, Ni-filter, linear One Sight detector, 5-50 2 range, 0.0143 2 step, 2 s per step). NMR Spectroscopy All NMR experiments were performed on a Bruker Avance III 500 MHz spectrometer (Bruker, Billerica, MA, USA) at room temperature (25 C). Conclusions We prepared two new metal-organic frameworks based on M(II), 2-iodoterephtalic acid, and bpe linkers. Both complexes reveal interpenetrating 3D structures. The Zn-based complex 1 features a relatively high gas-phase sorption selectivity for benzene:cyclohexane mixture. Despite the overall structural similarity, their adsorption selectivity towards various organic substrates is different, demonstrating that even minor changes in structure can strongly affect these characteristics. Experiments aiming preparation of other M(II)based MOFs with the same ligand combination, as well as with other iodine-substituted carboxylates, are underway in our group.
This invention relates to insulating oil compositions used in oil-filled or oil-immersed electrical devices. Insulating oil is widely used in various types of electrical devices such as power cables, transformers, capacitors and so on. It has hithereto been customary to use mineral oil or diphenyl chloride as the insulating oil for such electrical devices. Recently, such electrical devices tend to become of greater capacity and more capable of withstanding higher voltages, so that the insulating oil used in them must have characteristics to meet the tendncy. Mineral oil alone, however, is combustible and inferior in such electrical characteristics as dielectric constant and visible gas generating voltage. While diphenyl chloride is incombustible and superior in the above-mentioned characteristics, it is very toxic to the human body so that the use of this compound is undesirable from the view point of environmental pollution. Accordingly, the primary object of the invention is to provide an insulating oil composition which has good characteristics as such oil. Another object of the invention is to provide an insulating oil composition which is superior to mineral oil in electrical characteristics such as dielectric constant, visible gas generating voltage, etc. Another object of the invention is to provide such an insulating oil composition as aforesaid which is incumbustible and has no toxicity to the human as well as animal life. In accordance with the invention there is provided an insulating oil composition which comprises a mixture of trixylenylphosphate (which will be referred to as TXP) and an insulating oil having a viscosity of 5 to 15 centipoises (which will be abbreviated to cp) at 30.degree.C, the amount of of the latter oil to be mixed with TXP being 10% to 40% by volume of the mixture. The insulating oil which has a viscosity of 5 cp to 15 cp can be selected from the following group: mineral oil (to be referred to as MO), alkylbenzene (to be referred to as AB), alkylnaphthalene (to be referred to as AN), diallylalkane (to be referred to as DAA), paraffin hydrocarbon oil (to be referred to as PO), naphthene hydrocarbon oil (to be referred to as NO), 2-diphenylmethylether (to be referred to as DME), 2-diphenylisopropylether (to be referred to as DPE), etc.
//export * from "raven-js"; //import raven = require("raven-js"); export {default} from "raven-js";
#pragma once #include "CoreMinimal.h" #include "Animation/AnimNotifies/AnimNotify.h" #include "EnemyRangedAttackAnimNotify.generated.h" UCLASS(Blueprintable, CollapseCategories) class UEnemyRangedAttackAnimNotify : public UAnimNotify { GENERATED_BODY() public: UEnemyRangedAttackAnimNotify(); };
<reponame>Eskeptor/OpenPad<filename>app/src/main/java/com/eskeptor/openTextViewer/MainFileAdaptor.java package com.eskeptor.openTextViewer; import android.content.SharedPreferences; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Rect; import android.support.annotation.NonNull; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.RelativeLayout; import android.widget.TextView; import com.eskeptor.openTextViewer.datatype.MainFileObject; import java.util.ArrayList; /* * Created by eskeptor on 17. 2. 4. * Copyright (C) 2017 Eskeptor(<NAME>) */ /** * Interface that defined the click action of the main page */ interface ClickAction { void onClick(final View view, final int position); void onLongClick(final View view, final int position); } /** * View holders for main page files */ class MainFileViewHolder extends RecyclerView.ViewHolder { public ImageView mImage; public TextView mTitle; public TextView mContents; public TextView mDate; public View mView; public RelativeLayout mViewForeground; public RelativeLayout mViewBackground; MainFileViewHolder(final View view) { super(view); mView = view; mImage = itemView.findViewById(R.id.item_mainfile_image); mTitle = itemView.findViewById(R.id.item_mainfile_title); mContents = itemView.findViewById(R.id.item_mainfile_context); mDate = itemView.findViewById(R.id.item_mainfile_date); mViewForeground = itemView.findViewById(R.id.item_mainfile_foreground); mViewBackground = itemView.findViewById(R.id.item_mainfile_background); } } /** * For Padding in the RecyclerView */ class RecyclerViewPadding extends RecyclerView.ItemDecoration { private int mBottom; private int mLeft; private int mRight; private int mTop; RecyclerViewPadding(final int bottom, final int right, final int left, final int top) { mBottom = bottom; mRight = right; mLeft = left; mTop = top; } @Override public void getItemOffsets(Rect outRect, View view, RecyclerView parent, RecyclerView.State state) { super.getItemOffsets(outRect, view, parent, state); outRect.bottom = mBottom; outRect.right = mRight; outRect.left = mLeft; outRect.top = mTop; } } /** * Adapter for main file */ public class MainFileAdaptor extends RecyclerView.Adapter<MainFileViewHolder> { private ArrayList<MainFileObject> mMainFiles; private ClickAction mAction; private SharedPreferences mSharedPref; MainFileAdaptor(final ArrayList<MainFileObject> mainFiles, SharedPreferences sharedPref) { this.mMainFiles = mainFiles; mSharedPref = sharedPref; } public void setClickAction(final ClickAction action) { this.mAction = action; } @NonNull @Override public MainFileViewHolder onCreateViewHolder(@NonNull final ViewGroup parent, final int viewType) { View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.item_mainfile_layout, null); return new MainFileViewHolder(view); } @Override public int getItemViewType(final int position) { return mMainFiles.get(position).mFileType.getValue(); } @Override public void onBindViewHolder(@NonNull final MainFileViewHolder holder, final int position) { boolean isViewImage = mSharedPref.getBoolean(Constant.APP_VIEW_IMAGE, true); if (getItemViewType(position) == MainFileObject.FileType.Image.getValue()) { if(isViewImage) { Bitmap bitmap = decodeBitmapFromResource(mMainFiles.get(position).mFilePath, 100, 100); holder.mImage.setImageBitmap(bitmap); holder.mImage.setVisibility(View.VISIBLE); holder.mContents.setVisibility(View.GONE); } else { holder.mImage.setVisibility(View.GONE); holder.mContents.setVisibility(View.VISIBLE); holder.mContents.setText(mMainFiles.get(position).mOneLinePreview); } holder.mTitle.setText(mMainFiles.get(position).mFileTitle); holder.mDate.setText(mMainFiles.get(position).mModifyDate); } else { holder.mTitle.setText(mMainFiles.get(position).mFileTitle); holder.mContents.setText(mMainFiles.get(position).mOneLinePreview); holder.mDate.setText(mMainFiles.get(position).mModifyDate); holder.mImage.setVisibility(View.GONE); } holder.mView.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { if (mAction != null) { mAction.onClick(v, holder.getAdapterPosition()); } } }); holder.mView.setOnLongClickListener(new View.OnLongClickListener() { @Override public boolean onLongClick(View v) { if (mAction != null) { mAction.onLongClick(v, holder.getAdapterPosition()); return true; } return false; } }); } @Override public int getItemCount() { return mMainFiles.size(); } /** * How to calculate the size of a bitmap * @param options Option * @param reqWidth Width * @param reqHeight Height * @return Size */ private static int calculateInBitmapSize(BitmapFactory.Options options, int reqWidth, int reqHeight) { // Raw mBottom and width of image final int height = options.outHeight; final int width = options.outWidth; int inSampleSize = 1; if (height > reqHeight || width > reqWidth) { final int halfHeight = height / 2; final int halfWidth = width / 2; // Calculate the largest inSampleSize value that is a power of 2 and keeps both // mBottom and width larger than the requested mBottom and width. while ((halfHeight / inSampleSize) >= reqHeight && (halfWidth / inSampleSize) >= reqWidth) { inSampleSize *= 2; } } return inSampleSize; } /** * How to Convert Resources to Bitmap * @param bitmap Path to Bitmap * @param reqWidth Width * @param reqHeight Height * @return Bitmap */ private static Bitmap decodeBitmapFromResource(final String bitmap, int reqWidth, int reqHeight) { // First decode with inJustDecodeBounds=true to check dimensions final BitmapFactory.Options options = new BitmapFactory.Options(); options.inJustDecodeBounds = true; BitmapFactory.decodeFile(bitmap, options); // Calculate inSampleSize options.inSampleSize = calculateInBitmapSize(options, reqWidth, reqHeight); // Decode bitmap with inSampleSize set options.inJustDecodeBounds = false; return BitmapFactory.decodeFile(bitmap, options); } }
Electrocardiographic changes associated with beta-blocker toxicity. STUDY OBJECTIVE We sought to characterize the ECG changes associated with symptomatic beta-blocker overdose. METHODS The study population consisted of a prospective cohort of patients reporting to 2 regional poison centers with beta-blocker overdose. Each patient received an ECG on presentation and a structured follow-up. The inclusion criteria for symptomatic overdose included heart rate of less than 60 beats/min or systolic blood pressure of less than 90 mm Hg; symptoms consistent with decreased end-organ perfusion; therapeutic intervention with cardioactive medication; and corroboration by 2 of the authors that this was a clear-cut case of symptomatic beta-blocker overdose with cardiovascular toxicity. Exclusion criteria included cardioactive coingestants, age younger than 6 years, and no available ECG. RESULTS Of 167 patients, 13 were determined to have symptomatic exposures. First-degree heart block (>200 ms) was the most common ECG finding (10/12) and also had the greatest likelihood ratio (5.31) when comparing those with symptomatic exposures with those with asymptomatic exposures. Comparing the asymptomatic with the symptomatic groups, the mean PR interval was 167 ms (95% confidence interval 162 to 171 ms) versus 216 ms (95% CI 193 to 238 ms), the mean QRS interval was 89 ms (95% CI 87 to 91 ms) versus 112 ms (95% CI 92 to 132 ms), the mean QTc interval was 422 ms (95% CI 417 to 428) versus 462 ms (95% CI 434 to 490 ms), and the mean heart rate was 72 beats/min (95% CI 69 to 74 beats/min) versus 66 beats/min (95% CI 59 to 73 beats/min). Two cases of symptomatic acebutolol exposure appeared unique by demonstrating disproportionate prolongation of the QTc interval, an RaVR height of 3 mm or greater, and associated ventricular tachydysrhythmia. CONCLUSION The majority of clinically significant beta-blocker intoxications demonstrate negative dromotropic effects on ECG. Several ECG differences in acebutolol intoxication might reflect unique pathophysiologic processes relative to other beta-blockers.
Tracking the best time series model Mixture of experts algorithms have been shown to achieve a total loss close to the total loss of the best expert over a sequence of examples. We consider the use of the mixture of experts algorithms to track the best parameter settings of a predictor of a time series, especially when the time series is non-stationary. In this paper we introduce a new variant of the fixed-share algorithm "a mixture of experts algorithm" which we call the fixed-share hierarchy (FSH). We demonstrate the successful use of the FSH algorithm in tracking the best mixture of smoothing parameters of the Holt-Winters predictor when applied to a number of weather data sets. We show in a number of experiments that the FSH algorithm had lower total losses compared to the original fixed-share algorithm
def configure_ipv6_dhcp_guard_policy(device, policy_name, device_role=None, trusted_port=False): log.info( "Configuring ipv6 dhcp guard policy {policy_name}, device role {device_role} and trusted port {trusted_port}" .format( policy_name=policy_name, device_role=device_role, trusted_port=trusted_port ) ) try: if device_role and trusted_port: device.configure( [ "ipv6 dhcp guard policy {policy_name}".format(policy_name=policy_name), "device-role {device_role}".format(device_role=device_role), "trusted-port" ]) elif trusted_port: device.configure( ["ipv6 dhcp guard policy {policy_name}".format(policy_name=policy_name), "trusted-port" ] ) elif not trusted_port: device.configure( [ "ipv6 dhcp guard policy {policy_name}".format(policy_name=policy_name), "no trusted-port" ] ) elif device_role: device.configure( [ "ipv6 dhcp guard policy {policy_name}".format(policy_name=policy_name), "device-role {device_role}".format(device_role=device_role) ]) else: device.configure( [ "ipv6 dhcp guard policy {policy_name}".format(policy_name=policy_name), "no trusted-port", "device-role {device_role}".format(device_role=device_role) ] ) except SubCommandFailure: raise SubCommandFailure( "Failed to configure ipv6 dhcp guard policy {policy_name}" .format(policy_name=policy_name) )
/** Limelight Visions System. Used for Tracking Retro-Reflectors */ public static class Limelight { /** The last angle seen by the limelight that wasn't zero */ public static double nonZeroLimelightAngle; // Used to orient bot public static double tx; public static double ty; // This is a enum that is used to set the LEDS of the limelight. public static enum Limelight_Light_States { on, off, blink } /** * This function is used to update the SmartDashboard with the current values of the Limelight */ public static void updateSmartDashboard() { NetworkTable table = NetworkTableInstance.getDefault().getTable("limelight"); double horizontalAngle = table.getEntry("tx").getDouble(0); tx = horizontalAngle; double verticalAngle = table.getEntry("ty").getDouble(0); ty = verticalAngle; if(horizontalAngle != 0) { nonZeroLimelightAngle = horizontalAngle; } SmartDashboard.putNumber("Distance from Hubs",getDistanceFromHubStack()); SmartDashboard.putNumber("Limelight H-Angle",horizontalAngle); SmartDashboard.putNumber("Limelight V-Angle",verticalAngle); SmartDashboard.putNumber("Non Zero Angle", nonZeroLimelightAngle); SmartDashboard.putBoolean("Limelight Target Presence", hubPresent()); SmartDashboard.putNumber("Lower Hub Ball Velocity", Calculations.getDesiredBallVelocity(ValidTargets.lower_hub)); SmartDashboard.putNumber("Upper hub Ball Velocity", Calculations.getDesiredBallVelocity(ValidTargets.upper_hub)); } /** * This function returns the distance from the center of the limelight to the center of the hub stack * * @return The distance from the center of the limelight to the center of the hub stack. */ public static double getDistanceFromHubStack() { NetworkTable table = NetworkTableInstance.getDefault().getTable("limelight"); double verticalAngle = table.getEntry("ty").getDouble(0); return ((RobotInformation.FieldData.upperHubHeightMeters-RobotInformation.RobotData.RobotMeasurement.LimelightHeightMeters) / (Math.tan((RobotInformation.RobotData.RobotMeasurement.LimelightAngleRadians + Math.toRadians(verticalAngle))))); } /** * Is the top hub present in the FOV? * * @return A boolean value. */ public static boolean hubPresent() { NetworkTable table = NetworkTableInstance.getDefault().getTable("limelight"); double targetPresence = table.getEntry("tv").getDouble(0); if(targetPresence == 1) { return true; } else { return false; } } /** * Initialises the Limelight for Top Hub tracking: Sets the LEDS to on, sets the pipeline to 0, and sets the Limelight as a Vision Processor */ public static void init() { setLEDS(Limelight_Light_States.blink); NetworkTableInstance.getDefault().getTable("limelight").getEntry("pipeline").setNumber(0); //Sets the pipeline to 0 NetworkTableInstance.getDefault().getTable("limelight").getEntry("camMode").setNumber(0); //Sets the Limelight as a Vision Proccesor } /** * Sets the pipeline to the value of pipeline * * @param pipeline 0-10 */ public static void setPipeline(double pipeline) { NetworkTableInstance.getDefault().getTable("limelight").getEntry("pipeline").setNumber(pipeline); //Sets the pipeline to pipeline } /** * Code run for limelight when robot is in a disabled state */ public static void disabled() { setLEDS(Limelight_Light_States.off); // Turns off the god damm limelight cause im going to go blind and gouge my eyes out because wtf does it need to be so bright like holy hell } /** * This function sets the LED mode of the limelight * * @param mode Limelight_Light_States on, off, blink */ public static void setLEDS(Limelight_Light_States mode) { switch (mode) { case on: NetworkTableInstance.getDefault().getTable("limelight").getEntry("ledMode").setNumber(3); // light on break; case off: NetworkTableInstance.getDefault().getTable("limelight").getEntry("ledMode").setNumber(1); //light off break; case blink: NetworkTableInstance.getDefault().getTable("limelight").getEntry("ledMode").setNumber(2); //light blinking break; default: NetworkTableInstance.getDefault().getTable("limelight").getEntry("ledMode").setNumber(0); // as per pipeline mode (usually on) } } }
Systematic review and meta-analysis of randomized controlled trials assessing the impact of Baduanjin exercise on cognition and memory in patients with mild cognitive impairment Objective: To determine the effectiveness of Baduanjin exercise in improving cognition and memory in patients with mild cognitive impairment. Data sources: Relevant English- and Chinese-language studies published until 15th September 2020 were retrieved from the PubMed, Web of Science, Cochrane Library, Embase, EBSCOhost, OVID, National Knowledge Infrastructure, WANFANG DATA, VIP Information, and SinoMed databases. Review methods: Randomized controlled trials assessing Baduanjin exercise in patients with mild cognitive impairment were included. Two researchers independently identified eligible studies and extracted data. Risk-of-bias assessment was performed using the Cochrane Risk of Bias Tool. Results: This study included 16 randomized controlled trials (1054 participants) from China that used Chinese versions of standardized tests. Most studies had no significant bias, and only one study had a high risk of bias in the random allocation category. Compared with conventional therapy alone, Baduanjin plus conventional therapy significantly improved the Montreal Cognitive Assessment and Mini-Mental State Examination scores after 6months of treatment (P<0.00001 for both), significantly decreased the tau/A142 ratio in the cerebrospinal fluid (P<0.00001), and significantly improved some dimensional scores on the Wechsler Memory Scale and the auditory verbal learning test scores at 6months (P<0.05 for all). Conclusion: Compared with conventional therapy, Baduanjin plus conventional therapy significantly improved cognitive and memory function in patients with mild cognitive impairment.
<filename>translucentparent/src/main/java/com/cy/translucentparent/StatusBarView.java package com.cy.translucentparent; import android.content.Context; import android.util.AttributeSet; import android.view.View; /** * Created by lenovo on 2017/7/4. */ public class StatusBarView extends View { private Context context; public StatusBarView(Context context) { this(context,null); } public StatusBarView(Context context, AttributeSet attrs) { super(context, attrs); this.context=context; } @Override protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { super.onMeasure(widthMeasureSpec, MeasureSpec.makeMeasureSpec(ScreenUtils.getStatusBarHeight(context), MeasureSpec.EXACTLY)); } }
THE GIRL IN GREEN Derek B. Miller was born and raised in Boston, Massachusetts, and has lived abroad for many years in Norway, Switzerland, the United Kingdom, Hungary, and Israel. Educated at Sarah Lawrence College, the Hebrew University, Georgetown, Oxford, and Geneva (PhD), Miller has worked in international affairs for over two decades with the United Nations, think tanks, and non-government organisations. His work has taken him to conflict and post-conflict zones around the world, including broad travel in the Middle East. His lectures on cultural research, history, policy design, and ethics have been presented to academia, the US military, NATO, and the UN. He continues this work as director of The Policy Lab®. The Girl in Green is Miller's second novel. His first novel was the international bestseller Norwegian by Night. He lives in Oslo with his wife, Camilla, and their two children. For my wife Scribe Publications 18–20 Edward St, Brunswick, Victoria 3056, Australia 2 John Street, Clerkenwell, London, WC1N 2ES, United Kingdom First published in Australia and New Zealand by Scribe 2016 Copyright © Derek B. Miller 2016 All rights reserved. Without limiting the rights under copyright reserved above, no part of this publication may be reproduced, stored in or introduced into a retrieval system, or transmitted, in any form or by any means (electronic, mechanical, photocopying, recording or otherwise) without the prior written permission of the publishers of this book. A CiP record for this title is available from the National Library of Australia. 9781925106954 (paperback) 9781925307726 (e-book) scribepublications.com.au scribepublications.co.uk CONTENTS PART I An Early Spring PART II The Long, Cold, Hard, and Dark of It PART III Other Than Honourable Inspired by many actual events PART I AN EARLY SPRING 1991 1 Arwood Hobbes was bored. Not regular-bored. Not your casual, rainy-day, Cat in the Hat–style bored that arrives with the wet, leaving you with nothing to do. It wasn't post-fun or pre-excitement bored, either. It was, somehow, different. It felt rare and deliberate, entire and complete, industrial and inescapable. It was the kind of bored that had you backstroking in the green mist of eternity wondering about the big questions without searching for answers. And it wasn't in short supply, either, because it was being dispensed like candy on Halloween to Arwood and others like him at Checkpoint Zulu, at the rim of the Euphrates valley, in the heart of Iraq, by the world's largest contractor of boredom: the United States Army. How long had he been bored? How long was he destined to be bored? Arwood couldn't even muster the motivation to care as he melted over his machine gun under the hot, hot sun that was pressing down on the sandy sand around him without a raindrop in sight and no one offering to cheer him up. The M60 machine gun was the perfect height for leaning on. It was probably the perfect height for firing, too, but Arwood had no proof of that because he hadn't fired the gun since qualifying on it, and there was nothing to aim at because everything was far away, apart from a camel; and while he did point the gun at the camel for a while, it ultimately seemed a mean thing to do, so he stopped. That was eons ago. Nothing fun like that had happened since. Even the camel had gone away. It wasn't that Arwood was unfamiliar with being bored and that his resistance was low. After all, Operation Desert Storm — now over — had really been just a month-long air campaign on exposed Iraqi troops, followed by a four-day ground war, which meant there wasn't a lot of ground war for him or his buddies, or much for people on the ground to actually do. For Arwood, the Gulf War primarily involved him doing a lot of nothing for three months, in the sand, jogging expectantly beside an APC with his gun for a few days, only to be told it was 'over'. But at least back then there had been a sense that something might happen. There was a sense of possibility. Not anymore. Possibility was but a popped balloon for Arwood. And at the very moment they were all expected to go home, his company drew the shortest of short straws and they'd been deployed here to Checkpoint Zulu, 240 kilometres from the Kuwaiti border. He had no idea why. This time there was nothing to look forward to but peace. Endless, tedious, nondescript, fluffy-white peace. You could eat a grenade, you really could. It was into this stagnant vortex of quietude and for-nothingness that a form approached Arwood from across the desert. Like everything else in Iraq, it came at him sideways. Arwood didn't look. He sort of liked not knowing. Perhaps it was a guy wearing sandals who had a beard like Jesus. Or maybe it wasn't a man at all. Maybe it was the Ghost of Christmas Yet to Come, who was doing his rounds and was there to let Arwood know that — on account of global warming, acid rain, and El Niño, not to mention the global shortage of decent people and the high price of coal — Christmas was going to be cancelled. Whatever it was was getting bigger, which probably meant it was getting closer. It probably wasn't something dangerous, though; it was approaching from this side of the ceasefire line. But it wasn't going to be anything good, either. It wasn't going to be one of Charlie's Angels. It wasn't going to be Daisy Duke. It wasn't going to be Kelly LeBrock in her blue-and-white panties appearing out of red mist from a doorway. No, it was probably going to be orders. A different mind, a different person, might have welcomed orders because it would have ushered in 'change'. Not Arwood. The only thing worse than boredom was labour, and he didn't want to wash anything, dig anything, move anything, stack anything, fill anything, load anything, unload anything, peel anything, or — and this was critical — smell anything awful. Given that he was twenty-two and a private, rather than, say, fifty and a nuclear physicist, all these things were on the shortlist of the possible. No, he wasn't going to look up. He would cherish the uncertainty for as long as he could. Which fate had decided would end right... about... now. 'Want a cigarette?' asked a man who was now man-sized and to his right. The man stood next to Arwood's sandbags. Arwood considered them his sandbags, not so much because he was manning a machine gun behind them, as because he was the one who had filled them. Arwood accepted the cigarette by opening his mouth. The man placed it in and lit it. Arwood inhaled, grateful only that it gave him a pretext to keep breathing. 'I'm Thomas Benton,' the man said. 'Uh-huh.' 'What's your name?' 'Arwood Hobbes.' 'Hobbes. Interesting name to take into a war zone.' 'Why?' 'No reason. Where are you from?' 'America.' 'Yes, I figured, given the uniform. Any place special?' 'Never felt like it.' 'I'm from a village in Cornwall,' Benton offered. 'I don't know where that is.' 'Cornwall is in England.' 'That's overseas, right?' 'Yes.' Thomas Benton squatted down behind Arwood's sandbags because it was cool and shady there. Benton looked across the desert to the still town a kilometre and a half away. 'You're a journalist?' 'Yes. The Times.' Arwood did not move from his resting position. 'When is this war gonna end?' 'What?' 'The war.' 'It did. The war is over. This is the peace. Now the lawyers are drafting the UN permanent-ceasefire resolution.' 'We're waiting for paperwork?' 'It's the Western way of war. Even Hitler filed his paperwork. Without it we become confused. What's your job?' 'I'm maintaining a vigilant perimeter.' 'Safwan,' Benton said, 'if you're curious, is way back there. That's where your general, Stormin' Norman, met the Iraqi high command. It is also where he made the mistake of letting them fly helicopters, which is what they are using to kill everyone connected to the uprisings down south and up north. It's a bloodbath.' 'I thought that was Safwan,' Arwood said, not bothering to motion to the town at the end of his machine gun. 'That's Samawah.' 'When do I get to go home?' 'The Americans are the ones sticking around the longest, though some of you shipped out on the seventeenth. It could be a while.' Arwood finally moved his head by shaking it. 'It's not fair that we have to sit around here like the Breakfast Club.' Benton shrugged and wiped his face with a red bandana. He was not smoking. He had eaten something in the morning that disagreed with him, and he'd opted not to push his luck further with a cigarette. 'It might not be calm for long. You should try and enjoy it.' Arwood perked up. 'What do you mean?' 'Doesn't your commanding officer explain all this to you?' 'You mean Harvey?' 'I don't know his name.' 'Lieutenant Harvey Morgan. No, he doesn't explain anything. He's full of shit, and never makes sense because he keeps reading quotes from the government, and they speak in riddles. What do you mean it won't be calm for long?' 'The Iraqi civil war. It'll have to get here eventually. You see that green flag over there? On top of that onion-shaped water tower?' Benton pointed to a tower in the middle of the town. 'Yeah. If you watch it really, really closely for hours, it sometimes moves,' Arwood said. 'It's a Shiite flag. That means they've overthrown the Sunni government in the city. It's only a matter of time before Saddam sends troops here to change that back.' 'Uh-huh.' 'You're actually in the eye of a storm. You are the American soldier deepest in Iraqi territory. Did you know that?' 'Why are you here?' Arwood asked. 'At my post?' 'The view, mainly. It's as close as I can get without crossing the demarcation line. I'm embedded in your company. I've been reporting on what's been happening with your fellows.' 'Which is nothing.' 'Well, there was the mass surrender.' 'Yeah. That was fun.' Arwood had enjoyed the mass surrender. Once the war reached its tipping point, all the Iraqi soldiers gave up. A French journalist had reported that Saddam had forbidden his soldiers to wear white underwear lest they use it to surrender. Arwood had wondered about the mechanics of that. Usually you surrender in really dire circumstances, which is not when you want to be taking your pants off. Arwood had become chatty with the POWs when they flowed to his location in late February. That was much farther south, and before they were deployed here. There was a certain affability to the Iraqi conscripts. Sure, they were the enemy and all that, but their accent was endearing, every one of them had a Groucho Marx moustache, and they were incredibly sincere about their desire to give up. There was very little not to like about them once they stopped shooting at you. 'There's nothing happening now, though,' Arwood said. 'Not here. But there is over there. And the world would like to know what it is. Or at least I'd like to think they would.' 'Is being English the same as being British?' Arwood asked. 'No. England is part of Britain. Which is also made up of Wales and—' 'So who banned all that music?' It didn't connect until now, because Arwood had never met anyone British before, but word had gotten down to the troops that their allies — the British — were banning anti-war music back home, and so a good deal of time was spent ragging on them about it in their absence. On the BBC's blackout list were: 'We Gotta Get Out of This Place', by The Animals; 'Walk Like an Egyptian', by The Bangles; 'Killing Me Softly', by Roberta Flack; 'Two Tribes', by Frankie Goes to Hollywood; 'War', by Edwin Starr; and 'Everybody Wants to Rule the World', by Tears for Fears. 'That was you, right?' Arwood said. 'It was the BBC.' 'They really thought a bunch of straight dudes were gonna sing Roberta Flack in the desert?' 'What you have to understand about the BBC—' 'So you're sitting here with me because you want this civil war thing to get started, and you want a front-row seat?' 'Well, no. That's not fair,' Benton said. 'I do have questions, though. The kind that can only be answered over there,' he said, pointing to Samawah. 'Right now, no one knows anything. We're getting our news from radio broadcasts coming out of Iran and Syria. It's all ignorance, rumour, and frustration. I'd like to ask them some questions of my own.' 'Like what?' 'Like what? Really? Well, like... Did you plan this revolution? Are you getting support from Iran? Who is in charge? What are your aspirations? Do you want to see a whole and stable Iraq, or do you want a new state and to see it carved up along religious and ethnic lines? Or no state at all? Is this the return of the Islamic umma? Can you work with the Sunni after the way you were treated by Saddam? Are you prepared to cooperate with the West? Under what conditions? Are you coordinating with the Kurdish resistance up north? If so, how? Is there a unified command structure? Do you see yourself forming one? How well armed are you? What kind of training—' 'Yeah, OK, political stuff. I got it.' 'It's the future of the Middle East. In fact, it's the future of the post-Cold War order. In that town, in the ideas of those people, are the first clues about whether this brave new world of ours will maintain the colonially imposed and Cold War–sustained state system, or—' 'Do Arabs eat ice-cream?' 'That's the question burning a hole in your mind?' 'I have a follow-up.' 'Yes. They do.' 'What kind of ice-cream?' 'The usual stuff. Why?' 'I want one.' 'OK,' said Benton. 'And I've got an idea that I was thinking up while you were talking. You want to report on all that political stuff from that town, right?' 'I suppose I do, yes.' 'I want an ice-cream, and you said they probably have one there.' 'You think it's a good idea for me to go to the town and get you an ice-cream?' 'You sort of implied you might be going.' Benton sat in the sand. He dug grooves in the earth with the heels of his boots. He'd been in the region since 28 February, the day President Bush declared this 'a victory for the United Nations, for all mankind, for the rule of law, and for what is right'. Benton's wife, Vanessa, had argued it was not a good day to leave her or their ten-year-old daughter, Charlotte, behind. Given that the war was over, she'd said, there was no good reason to be there, and it was dangerous. He'd said questions remained that no one was asking, because victory is always exciting and therefore wasn't when people probed for details. He'd said he'd be back in a few weeks. A visit into a rebel-held city — even for a few hours — could justify the cost. Benton looked across the windless landscape to the listless Shiite flag. Something significant had already happened there, and something else was going to. He was sure of it. Saddam had forbidden journalists to enter the country, but so what? He was shy of his fortieth birthday and hadn't won any prizes. It was impressive to be at the Times, but he was among the rank and file, and he'd never distinguished himself. A visit to Samawah could change all that. It was an interesting idea. There was a downside to the plan, though, and being almost forty rather than in his early twenties, like Arwood, Benton still had some reverence for the wider systems of authority and power that made his journalism possible. You fall out with those, and you're out. He was talking to Arwood to manipulate the situation, yes, but he was still on the edge about whether to walk the literal mile. 'I was told not to wander off base, or I'd lose my press credentials,' he said. Arwood field-stripped his spent cigarette and flicked the pieces into what should have been wind. 'If you follow the rules all the time, you don't really have any press credentials, do you?' 'Huh,' said Benton. 'It is my experience — and I learned this the hard way, believe me — that the trick to getting what you want without getting caught — and this is the important part — is not getting caught.' 'And how do you do that?' Benton asked. 'I just told you. Don't get caught.' 'That feels a bit circular.' Arwood never took his eyes off the distant buildings and the absolute nothing that was happening over in the town. Now that he had the idea of an ice-cream firmly planted in his mind — which was seeping down into his very soul and filling it with strawberries — he could picture swarms of ten-year-olds suddenly bursting into the corner store and tearing open every remaining popsicle, leaving nothing for him but sticky wrappers. It was a dark image. 'I have this theory that everything you truly need to know,' Arwood said, 'I mean, deep down and for the duration, can be learned from Ferris Bueller's Day Off. The fact that there was no sequel only proves that there was nothing left to say. To me, the army is Principal Ed Rooney, and you need to be Ferris.' 'If I go, you won't tell anyone?' 'I'm not paid to keep you in. I'm paid to keep them out.' 'They don't have Ben and Jerry's. Mostly popsicles. Also they might not have any. There were economic sanctions after Kuwait was invaded, and there's been a war since. And it could melt by the time I'm back.' 'I'm prepared for you to take that risk.' 'Are you sure you'll be there when I return? I don't want to get shot as I approach the checkpoint. How's your eyesight?' 'Come back the way you came. I'll be here all day. Same bat time, same bat channel.' 'I don't have any money,' Benton said. 'No charge, dude.' 'No, for the ice-cream. I need to buy it. I'm not going to steal an ice-cream, am I?' 'I... hadn't considered that,' said Arwood. 'You don't think he'll be friendly, and give you one?' 'He might, but it's presumptuous. I think it's inappropriate to ask, and if he gives me a gift it's customary practice that I return the gesture with a gift of my own.' 'It really is like a whole different place over here, isn't it?' Arwood was no longer leaning on the gun. He had perked up like a flower exposed to sunlight at the thought of an ice-cream. 'I don't have any money either. What kind of gift?' 'Something of the same value and significance as an ice-cream, otherwise he'll feel further in my debt and want to even things out, which is not what we want here,' Benton said. 'OK...' Arwood bent down and pulled a comic book from his rucksack. 'How about this Amazing Spider-Man #312, Green Goblin versus the Hobgoblin? It's from 1989, and I paid a buck. It isn't current, but the trade is only for an ice-cream, so I think it's fair. There's got to be some kid over there who hasn't read it yet.' 'I don't know if they read comic books.' 'Jesus. How foreign are they?' 'Fine, give it to me,' said Benton, who stood up, dusted himself off, and put the comic book in his own rucksack, beside his camera and incidentals. 'So you're going?' 'It's half-twelve now...' 'Huh?' 'It's twelve-thirty now,' Benton translated, 'and I figure I can walk there in half an hour, spend about three hours or so interviewing, and be back by four o'clock, which is well before dark. You're sure you'll still be here?' 'I'm on until eighteen hundred.' 'I really don't want to get shot coming back.' 'I will not let anything happen to you. I promise.' 'All right then. Audaces fortuna iuvat, right?' said Benton. 'I don't know about that, but Ferris got Mia Sara.' 2 Benton drank from a bottle of water as he walked toward Samawah under the blue dome of heaven. His feet were hot. He wore cheap socks that were woven with nylon and polyester. He knew better, but had still done nothing about it when it came time to pack. They couldn't breathe as he stepped from rock to rock across the broken earth toward the squat city and its muted people. This always put him in a mood. Closer, he found the small city unremarkable. He might have been in Jordan, or the West Bank, or Bahrain as he looked at the flat roofs and the canopy of satellite dishes made dirty from the sand and the winds and the absence of rain or the social pressure to clean them. Around the city was its litter — the discarded refrigerators and tyres, the bed frames and canvas bags. There was no topsoil. There was surely a proper reason for this, but Benton imagined that too many feet had walked here for too long in search of too much. He approached a derelict oil truck in a wide and unused parking zone. Someone had painted, in giant white letters, 'We want Fredum. Bleads help Iraq peple.' Benton put the empty bottle of water back into his satchel, intending to throw it in a bin later. He checked his watch. Dhuhr prayer was around 11.30 a.m., and Asr prayer shouldn't be until around three-ish. He figured he had a workable window to get oriented and at least conduct a few discussions. Towns have eyes in the Middle East. This one, however, felt blind — as though it were resting in the midday sun in preparation for a long stretch of work in the cooling night yet to come. A boy appeared. He was thin, about twelve years old, and carrying a platter of glasses of tea over his shoulder like a French waiter. The boy wore sandals and had thick black hair. He was unhurried, and focussed on his task of delivering tea and lunch to the shopkeepers. When the boy saw Benton, he stopped and fixed himself to the earth, paralysed. Eyes wide, he was motionless until an inner force shot into his limbs, making him jerk erratically. He twitched his head right and left and back to Benton, as though Benton might issue instructions that would end his indecision. Benton could hear the glasses rattle on the thin, silver platter as they amplified the boy's vibrations and started dancing to the arrhythmia of his heart. Soon enough, the cups could not keep up. One by one, the cups fell, smashing themselves on the hard earth, and the sweet water poured from the platter onto the boy's feet, scalding his exposed toes and forcing the boy to join in the dance he had inadvertently started. Hopping in pain, the boy dropped the platter, and he turned and ran as fast as he could, back the way he had come. Not loudly enough, not by a long shot, Benton called out, 'I'm not going to hurt you. I promise.' But the promise never reached the boy's ears, and in a moment he was gone. Alone again, Benton trudged toward the first buildings and into a narrow alley between them. It was shadier between the buildings, and cooler. He paused to scratch one foot with the other through his leather boots. It was unsatisfying. He'd have to take the boot off, and perhaps the sock as well. Kneeling with his shoe untied, Benton heard a rumbling ahead of him, through the mouth of the light and narrow alley. It sounded like water. It was an impossible notion, but he half expected a tidal wave to come bursting into the passageway, a crest of salty white foam gushing around him to his waist, to flood his boots and cool his feet. It was only when they were almost upon him that he understood the sound as a wave of human voices, foreign and excited. His shoe tied, he stood and looked back, unconvinced by either choice of staying or going. The choice was made for him as he deliberated. They poured in as a flood to a wadi. They were silhouetted by the bright light of the Iraqi sun, and in that moment they overtook him and drowned him. Hands gripped him, and he shielded his face as people started pulling him, surrounding him, and pushing him out into the city. They called and yelled in Arabic. His bag was pulled from his shoulder, and he was no longer sure of anything at all. He shouted for them to wait, but his voice failed him for the second time in Samawah. There were too many people, and too much emotion. When his head struck something hard, he fell to the ground. Benton did not pass out. He was, however, bloodied and incapacitated. Two men were holding him up. They smelled bad. Their shirts were made of cotton and were sweaty. He couldn't see their faces. There was blood in his eyes. It came from his head. He raised a hand to find the source. He was pulled into a building and then pushed into a chair. There was a voice. 'American?' Benton couldn't see who'd asked the question. The man was standing too close. The smell of all the people was overpowering. The sunlight was poking through the spaces around the man's face and through the shoulders of those around him. 'American?' the man said. 'I'm British,' Benton said. 'American?' 'British, for Christ's sake.' 'English?' 'Yes, yes. I can't breathe.' The dark face in front of him yelled something in Arabic and then stood up, pushing the other people back. He shushed the people around him, bringing silence, order, and calm. He handed Benton a cloth and a bottle of water. 'Thank you,' Benton said. 'Who are you?' 'I'm Thomas Benton. I'm a journalist with the Times. I'm here to understand what's happened and to learn what you're all going to do next. I'm... I'm hurt. I don't want to upset anyone or get anyone else hurt. Can we talk?' There was mumbling and then Benton said, 'Do you speak English?' 'Yes, yes. Everyone speaks English. Everyone-everyone. You are not American? You are not here to help us?' 'No. I'm a journalist.' In the quiet and uninterrupted moment that followed, Benton was able to look around and see where he was. He wasn't in a cave dwelling or an Iraqi torture chamber. He wasn't even in a boxy apartment with barred windows and a dubbed Western television set playing in the background. He was in a pharmacy — a pharmacy that stocked L'Oréal hair products and Halls lozenges, and was having a twenty per cent–off sale on reading glasses if you used 1.50 magnification and didn't mind wearing orange. The man who had been too close stood back and pulled a white plastic chair across the concrete floor. Sitting, he rubbed his face with a tissue and placed it in his jacket pocket. 'What is going to happen to Saddam?' the man said. 'I beg your pardon?' Benton said, wiping his own face with his red bandana. 'Saddam. We need to know what you are going to do with Saddam. What is our future?' 'I came here to ask you the same question.' The man shook his head. No. This made no sense to him. 'You have an army. Big army. You drive Saddam out of Kuwait. OK. Now what? You take Saddam away?' 'Well... no.' 'Why not?' 'The international coalition was formed to restore Kuwait and secure the borders.' 'OK, OK, but the problem is Saddam. We fought a war with Iran, then Kuwait, then America. Always war because of Saddam. So... now it's time to get rid of Saddam, yes?' 'Isn't that what you're doing?' Benton asked. He felt a cut on his head. 'Why did someone hit me?' 'No, no. Sorry, your head hit the wall. People were very excited to get news. You are a journalist. So... you have news.' 'No. I'm here to get the news from you, and report it in Britain.' 'They don't need the news. We need the news. Are you going to get rid of Saddam?' 'It's our understanding,' Benton tried to explain, 'that you're having a revolution. That you're getting rid of Saddam. I'm here to understand your plans. You've already taken the city. There's a Shiite flag on the water tank. Are you being supported by Iran? Are you hoping—' Another man, wearing the white coat of a pharmacist, interjected. Benton didn't understand what he said, but the crowd started to disperse, and the man he'd been speaking with nodded, stood up from his chair, tapped the arms of a few people, and then walked out. The pharmacist looked at Benton's wound. 'I told them we were not being good hosts, that you need some help first, and that we can discuss this all over some food and tea. Clearly, you want to talk to us, and we want to talk to you. We should do it properly. Times are very delicate. Very delicate. I can tell you this, though: the answers to the questions you are asking don't exist yet. I was educated as a chemist. In chemistry, the answers are out there, waiting to be found. But in life, in politics, in war, the answers aren't there yet. Your whole profession has a very strange theory in the middle.' 'My head hurts,' said Benton, not only feeling a throbbing in his head but starting to hear it, too. 'I'll get you some aspirin, unless you're allergic. The Republican Guard took most of it. We have a few left. I'd like to put a bandage on you, too.' 'Yes. Fine. Thank you.' The pharmacist shooed people out of the shop on his way to a small cabinet. He used a tiny key to unlock it, and removed a white plastic bottle. 'How are you?' Benton asked. 'How am I?' he said. 'Yes. How are you?' 'Worried. Very, very worried. But thank you for asking.' The pharmacist was pressing down on the childproof cap when he stopped and looked at Benton. They could both hear it. It was as if the air were being sucked from the room and pushed back in, quickly and repeatedly. 'What is that?' Benton asked. 3 Arwood had always liked helicopters. When he was a little boy, he'd make them out of Lego with his uncle, who would come over sometimes when his father was 'out' and his mother was indisposed. It has always been one of his fondest and quietest memories from childhood. When Arwood was ten, they moved on to models with glue and paint. Models worked for them as a shared activity, because it set them on a common task and didn't require much talk about why they were together instead of Arwood being with his parents. The less they talked, the more helicopters and other machines they would build. They liked to look up the specifications of the aircraft from a dated copy of Jane's World Air Forces that Uncle Maxwell had bought at a library sale. Now he was twenty-two years old, and from this distance it actually looked like a model. It was about the same size. He felt a thrill at first as the massive gunship floated over the ridge and approached the city. The Mi-24 was a primary component of Iraq's order of battle, and had been used to devastating effect only three years earlier in the war against Iran. It was a Soviet-built brute of a vehicle, with all the charmless industrial hostility that the Cold War could create. It had twin cockpits, one above and behind the other, both encased in glass. To the sides were two massive wings with a twenty-one-foot wingspan. At the front was a 12.7mm Gatling gun with a payload of some 1,500 rounds of ammunition. Under the wings were rocket launchers and mine-dispenser pods. And backing it up, at its six o'clock, was an Aérospatiale Gazelle helicopter, built in France. Together they formed a hunter-killer team. Just like his models. However, the angle of attack proved to Arwood that, unlike in Iran or in his basement, this team was not going to be used for war. It was going to kill people — regular, everyday, soft people. Even at the pinnacle of his earlier boredom, Arwood hadn't been more than a quarter mile away from the base, and had had a radio. Looking back across the worthless space he'd been defending, he could see Lieutenant Harvey Morgan running down the line, fastening his helmet the way most of the enlisted men didn't, because — in the complex language of gestural soldier-speak — it meant I'm a rule-following pussy rather than someone who chewed cigars and shot gooks and Nazis. 'Look alive, dimwits,' he shouted. It did not take long, however, for everyone to realise that the Iraqis weren't heading toward them. The helicopters took their positions over the city. And then, with an experienced and pitiless hand, they opened fire on the hospital. The Mi-24 launched two rockets from under its left wing with perfect military precision, blowing in the sides of the hospital, and killing the injured and infirm and those who had taken the Hippocratic oath to help them. Their work done, the air team moved out toward the train tracks, with the intention of killing each and every man, woman, and child where a makeshift refugee camp had been set up and maintained by those fleeing other towns. Arwood radioed his commanding officer and asked, 'What the fuck, lieutenant?' Off to his right, an Apache helicopter was in the air and taking a defensive position over Checkpoint Zulu. Arwood cocked and trained his weapon. There was nothing to point at except north. Behind him, Arwood's platoon ran the short distance to his position — the deepest legal position into Iraq — and, once there, started shouting ideas. 'Let's take it out!' was the first big idea. It was Corporal Ben Ford. He was from Tampa, Florida, looked like a bulldog, and was almost as refined. However, he was not always wrong. 'Come on, man, let's waste the motherfuckers!' Arwood took one last look down his sights to confirm that there was absolutely nothing whatsoever approaching the checkpoint, and then turned to see Ford appeal to the lieutenant, as though each of them were in the helicopter with a finger on the rocket launcher and the choice was theirs. Whoever did have his finger on that trigger could have taken down the Mi-24 with a gentle squeeze. God only knows what that guy was thinking. The angels and devils must have been going nuts on his shoulders trying to separate their messages. Arwood had heard that Iraqis and Iranians used to have helicopter dogfights. They were the only nations in history that did. It could be done. And how hard could it be? They hovered there like bottles on a cloud, waiting to be knocked down. Lieutenant Harvey Morgan's West Point education was in full puff that evening, though. He did not order them to take out the Mi-24. He not only knew what his orders were, but somehow — against the philosophy, purpose, tradition, expectation, and standard operating procedures of the army — he even knew why. So the second big idea was to not take it out. Proof of the worthiness of this idea came from paperwork. He had loads of it. Arwood hated paperwork. Morgan had a quote from the president. Arwood hated quotes from the president. Morgan considered the words of the president definitive. Arwood considered the bullets blowing out the brains of children definitive. Morgan considered the law to be the foundations of justice Arwood considered justice to be the foundations of the law. Morgan considered Arwood's opinions to be irrelevant. So did Arwood; they did have that in common. Morgan snapped the paper into shape, in a gesture smooth enough to demonstrate how much time he'd spent around the stuff. A group of other guys gathered around. They wanted to hear this, too. One of them was an Arab-American soldier named Rob Husseini who'd been born in Maryland to Moroccan parents. He was twenty-three, and was the only one there who understood Arabic. The Arabic he understood best concerned food and events that take place in kitchens. The Arabic he understood least concerned law, justice, and war. The topics he understood least in any language were law, justice, and war. While Rob didn't understand a great deal of what he heard from the refugees and POWs, he understood enough to make him the most miserable one there. Morgan started reading aloud some of the official puff written by the State Department, which was boring until he reached this part: '... no prospect of US involvement in Iraq's internal conflict unless senior US political officials decide it threatens the coalition's military forces arrayed in defensive positions along a ceasefire line in Iraq south of the Euphrates River'. 'That,' said Morgan, as though he had proved something, 'was the State Department. And those forces are us.' Arwood lit a cigarette. 'Those forces be we,' he said. 'What?' 'We be da force,' Arwood said. Rob shook his head. 'Word is that the Iraqis are dropping leaflets from the helicopters, telling the Shiites that if they don't stop the rebellion they'll drop chemical weapons on them.' Morgan ignored him. 'France says the rebellion is Iraq's problem to solve. Saudi Arabia said they won't touch this. Morocco. Egypt. Canada. The Brits. This is from the Washington Post yesterday,' he said, flipping to another piece of paper. '"There is no stomach in this administration, in the coalition, or in the region to undertake the kind of military involvement that would be necessary to aid the rebel groups in toppling the Saddam government. Such involvement in the internal affairs of another nation" — I'm quoting here, people — "would have enormous, enormous implications for what we are trying to do in the region overall and would, in addition, label the rebels 'lackeys of the United States', making their success more difficult." The guy then says, "We don't want our fingerprints on anyone involved in the rebellions," unquote. More or less.' Morgan looked up. 'That's coming from Dick Cheney, our secretary of defense. If America gets involved, we undermine the integrity of the revolution.' 'Why?' said Rob Husseini. 'Why what?' said Harvey. 'Why would they hate us if we helped them?' 'Because Arabs always have conspiracy theories about the West being involved.' 'But we would be involved. And it wouldn't be a conspiracy. They're asking for help.' 'They don't really want it. They think they want it. What they really want, even more, is a reason to blame us. So we need to avoid giving them one.' 'Aren't we giving them one by not helping?' 'No. We're staying out of their business.' 'You're not making any sense, lieutenant.' 'It's not me, it's Dick Cheney. The State Department believes that if we help these people now, they will hate us later.' 'Right.' 'And if we leave them alone to die, we'll be on better terms with them in the long run.' 'Got it.' Arwood looked at Rob, who turned to watch the helicopters launch rockets at a tent community. 'This sucks,' said Rob. 'We should help these people, or get the fuck out of here.' 'I second that,' Ben said. 'I third that,' Arwood said. 'No one asked either of you. And you can't third something.' 'And yet,' Arwood said, 'it happened.' A kid Arwood didn't know came up, saluted the lieutenant, and said, 'Refugees are coming in to Checkpoints Alfa and Eagle. And there are Iraqi ground forces coming from the north.' 'Refugees are coming here, too,' Arwood said, looking across the desert at people on the move, and at troops emerging from Ural troop transports. 'Looks like if we don't go to them, the civilians are gonna come to us.' Seeing motion in the distance, he manned his weapon again. The rear sight of the M60 created a tall and narrow rectangle that was cut through the middle with a pin for a front sight. Through his sight, they came toward him as though framed by a doorway they would never enter. Some ran. Some were walking wounded, and hobbled. Others couldn't walk at all, and were carried by those who would rather risk death than leave them behind. Morgan used binoculars to scan the approaching refugees. 'We're to receive refugees and patch them up. We take POWs. We do not fire unless fired upon. And then we send them back when we get the pull-out order.' They came for hours. Arwood had never seen people look like this. He had never seen terror on people's faces before. Because he was one of the first people they saw, he was among the first ones they'd talk to. It was shocking to him how many of them spoke English. The whole country seemed to be bilingual. One man carried a dead eighteen-month-old baby. Whoever had shot it in the chest had done so at such close range that there were powder burns on its T-shirt and nappy. It was limp, and looked like rubber. The situation was chaotic. Their lines were being overrun by people — hundreds at first, and thousands later — who gathered around the remnants of the oil refinery inside the American perimeter. Young soldiers started handing out their own Meals, Ready-to-Eat, and people ate like they had never seen food. Not all were refugees. Some were Iraqi conscripts and Republican Guard soldiers who'd surrendered. There were six of them behind Arwood, at a tent, and under guard. One was shirtless, wearing boots and beige standard-issue trousers. He was unshaven, and his head was pressed to the ground in either prayer or despondency or fatigue. Whatever it was, Arwood had no trouble interrupting him. 'Ben, watch this thing for me,' he said, and then walked away from the machine gun to tap the guy on his shoulder. The Arab looked up, tears in his eyes. 'What the hell have you got to complain about?' Arwood said. 'Here you are, all safe and cozy, about to get some food and water, protected by all kinds of laws and nice guys looking out for your welfare. You should be the happiest sonofabitch in the Middle East. Meanwhile,' Arwood said, and then flicked his butt into the cloudless sky, 'I've been meaning to ask one of you fuckwits a question that's been on my mind: What the hell is wrong with you people? I mean, seriously. Who shoots a baby? Who does that? Did you do that? Was that your idea? Do you think there's a God that wants you to shoot a baby? What's going on over there? What's going on in your heads?' 'Saddam. He said the city is unclean. He is giving us 250 dinars to kill babies and women, and up to five thousand dinars for adult males. He said we can kill up to one hundred a day. That's the limit.' Then he said something in Arabic with the word 'Allah' in it, and that was when Arwood switched off. 'Ben,' he said, hopping up over the sandbags, back to his position. 'I've got to do something. I need you to cover for me. I could be a few hours.' 'What could you possibly need to do?' Ben said. 'There's a guy — an English guy. He went into town. He went there to take pictures before the attack. It was sort of my idea. I've got to go look for him.' 'Are you out of your mind?' 'Look, man, I'll zip over, pick him up, and zip out. It's Samawah. It's not like it's Moscow or anything.' 'You'll be AWOL.' 'Honour before orders.' 'You'd better haul arse.' 'Save Ferris.' 4 Less than two kilometres away to the north, Benton lay prone behind the pharmacy countertop with another random victim of the attack. The pharmacist was dead in the middle of the floor. A flying cinder block from a nearby explosion had cracked open his skull. Benton and the other survivor stayed on the floor for hours. To call it cowering would be to demean their sincere effort to live. All they could do was hide and hope. They did not talk. They did not share words of fear, anger, or remorse. They were two human beings controlled by circumstance, with nothing in common except everything. Benton sweated profusely. The man handed him a bottle of water that had been lying next to them on the floor. Benton drank it all. He placed the cap back on top and set it aside. There was no telling whether hiding on the pharmacy floor behind the service counter was a good idea or a bad one. Moment by moment, he told himself he should make a run for it. And yet, with each arriving moment he did not, because fear has an inertia of its own. The windows had already been blown inward, so there was no proper separation between 'in here' and 'out there' anymore. It was a linguistic pretence sustained by convention. Either way, he could not hear the Republican Guard's assault anymore. He heard distant shots and screams and yells, and the wailing grief of loved ones. Soldiers, Benton had believed, didn't do this. Murderers did. It was odd, as he pressed his head to the floor, to think he didn't even have a vocabulary to name the people who might be his killers. What are they, these people? During a lull in the shooting, Benton found the courage to unclench his muscles. He was surprised to find they were as stiff and sore as they'd become after long days trekking with camera equipment on assignment. The fear had made him exhausted. He lifted his head above the countertop and looked between the Halls Mentho-Lyptus drops and the reading glasses. There was smoke. There were dead in the street. There were people sitting dazed and walking slowly, and others running and crying. But there were no killers and no helicopters. They seemed to have moved off. 'Let's go,' he said to the man in the floor. 'Go where?' he replied in English. 'The American base is less than two kilometres away.' 'I have to find my family,' he said. 'Maybe they're already there. I'm sure people are running there.' 'Americans don't like Shiites.' 'You're a non-combatant protected by international law. They won't give a rat's arse whether you're a Shiite, a Sunni, or a Martian.' 'America hates Muslims. America kills Muslims.' 'I'm going. Come.' 'I must stay.' 'Why?' 'You don't understand. You're not from here.' 'I'm going.' 'Go with God.' Determined, Benton abandoned his hiding place, stepped gingerly over the detritus on the floor of the shop, and cast himself into the harsh sunlight of the Iraqi revolution. Samawah had 28,000 residents. It was not a large city. He was only half a kilometre into it, and he knew how to get out again. Route 8 cut through the town from the north, and then turned south-east toward Nasiriyah which, according to the pharmacist, was under the same kind of assault as Samawah. This was not going to be his road. In fact, any road that could accommodate a tank was a road he planned to avoid. South of the al-Sharika road there was a wide-open stretch of land. Benton figured that the troops would be targetting large concentrations of people, and might therefore ignore stray individuals like himself, but that was a comforting speculation only. Also, if he was alone he might be able to yell loudly in English and identify himself, which might stop them from shooting him. In a crowd he'd be an object, not a person. Benton slunk low, and made for a patch of palm trees near a smouldering truck riddled with heavy machine-gun fire. A young girl in a green dress was curled into a ball by the back wheel. He didn't want any more company between where he was and the covering fire of Arwood's M60, but the girl was in the spot he needed to get to, and few other choices remained. The truck was the first destination in a route from here to there. Benton looked east. He could hear the Mi-24, but couldn't see it. Shots were being fired in the city. He knew there were ground forces going from door to door, killing every male over the age of twelve and many others, just for the experience of it, or the pay. But they seemed to be behind him or off in the distance. If he dropped the camera bag and kept only the few rolls of 35mm that he'd taken until now, he could easily jog the rest of the way. Benton stripped the remaining film from the Pentax and tucked it into his front pocket. He paused before his sprint to check for new movement and — momentarily confident — started running. There were concrete buildings to the east about three hundred metres away. It was not until the gunship rose above the walls that he had any idea of how well they masked the sounds of the rotors. He ran faster. When he reached the truck and the girl, he paused by the front wheel to pant. He hadn't covered much ground, but he was winded and scared. As the truck was already smouldering, he figured it wouldn't be a target, but the helicopter pilot was blowing families to pieces with an anti-tank Gatling gun, so perhaps there was a different logic at play. The girl looked at him, and he at her. They regarded one another like strangers at the souk. She was slender and very young. Her head was not covered, though it was possible that in the commotion her scarf had come loose. Her gently tanned skin was flawless and healthy, and her sandy hair was full and lush, the way that women's magazines promised it would be if you used their products. Her eyes were a very light brown. Her accent was thick, and he didn't know whether it was English or Arabic she was speaking when she said, 'America?' 'Britain,' said Benton. 'Going to visit the Americans, though. Perhaps you should come.' The helicopter was now starting to move in their direction. Whatever water Benton had consumed at the pharmacy had become sweat again. The need to decide whether to stay or run vanished when the helicopter sped toward them faster than the speed of choice. The pilot did not shoot. It may have been because he already had a destination that was fifty metres farther away. Also, his line of sight was blocked by the truck, and it was unlikely he saw Benton and the girl. He stopped to hover ten metres off the deck — close enough for Benton to see the side of his helmet-covered head and his exposed chin. The wind pressed down on them as from the wings of a dragon. The pilot was taking aim at a tent village made of families driven from other homes by Saddam, or the rebellion, or Desert Storm itself. History enveloped them like a sandstorm. It didn't matter which event was going to kill them, because now they were going to die. The reasons were immaterial. The helicopter gunship opened up without remorse, or humanity, or mercy, or any heavenly virtue. Benton, from his angle, could see it all. He no longer had a camera. There was no documenting this. There was only submission. It was every war painting he had seen in the British Museum and the Metropolitan Museum of Art. It was the suffering of the saints. It was the inferno. It was the hell that is war, only this was not war. This — it was declared from marble steps — was peace: a world restored, the state system reaffirmed, and the hard faith in law again proclaimed for the benefit of all, except the dying and the dead. 'Come on,' he said, still not knowing how much English the girl spoke. She refused to give him her hand; she resisted any movement at all. Which was why he grabbed it, and pulled her up and started running with her. It was not a sprint. Neither of them was up to it. He felt as though his legs were dragging through a low surf, with the water pulling at his insteps, as in a nightmare. He gripped her hand too tightly — he could feel that, even then — because her delicate fingers were crushed together in his closed palm. There was an American flag ahead. To reach it, they ran over the train tracks and down the slight hill, scurrying like field mice from an owl. As they advanced toward the American lines, Benton saw a lone soldier in US fatigues sprinting toward him. He couldn't be sure from this distance, but it looked like Arwood. Benton had never seen Arwood run. He had, in fact, never seen Arwood's legs, which had been hidden behind the sandbags. And yet his personality came through his body's movements. He ran in a straight line directly toward Benton and the girl. He had no rifle. What he had was purpose. To Benton's left was the helicopter. The smaller French Gazelle was nowhere to be seen. Past the hovering and murdering helicopter were the first buildings of the city, and the soldiers. They were coming. They flowed from the edge of a wall the way darkness runs like smoke from the edge of ruins at nightfall. They were jogging. To Benton, it looked like they were late for something. The girl was slower than him, even though she was younger. Fear can sap strength. He kept pulling her along, despite the soldiers coming ever closer. He ran toward Arwood as though this young man were pulling America behind him. Arwood closed in on them, and once Benton and the girl reached him, he turned and kept running with them. For a few fleeting moments, Benton hoped that the Iraqi soldiers would ignore them and turn to richer targets, and that the three of them could make the American base without confrontation. But those men did turn on them; those men who dressed like soldiers but acted like a gang or tribe were running an intercept course to keep the trio from reaching the American line. 'What are you doing here?' Benton shouted to Arwood over the gunfire, the helicopter rotors, and the voices. So many voices — fewer and fewer, and yet somehow louder because of it. 'I'm here to bring you back.' 'That's insane.' 'It's what you do, man.' After only another minute, Arwood, Benton, and the girl slowed to a jog before stopping entirely. They had been surrounded. They were thirty metres from the ceasefire line. At least fifty US soldiers had their weapons trained on the Iraqis at that distance, but the Iraqis weren't facing the Americans. They were facing Arwood, Benton, and the girl. The man who moved into the centre of the row, with a smile on his face, was the colonel. The colonel, like every other Baathist, sported a thick black moustache. He was tanned, not only because of his race but because he'd been spending some time outside doing the killing himself. Benton figured that to be this highly ranked and yet on a foot patrol meant he was ambitious and ruthless. And yet, those eyes. Like so many Arab men, his eyes were soft and brown like a doe's. They were clear and gentle. One could be lulled into a sense of safety by such eyes. Unfortunately for the world as a whole, this man's serenity was a product of his own inner acceptance of his actions; it was not an implied promise to act decently in the world itself. When the entire complement of soldiers came to rest, Arwood whipped out his Beretta 9mm, chambered a round, and pointed it directly at the forehead of the colonel. He held the weapon like a gangland killer. With a developed diplomatic style that would not change for the rest of his life, he said, 'Apparently we didn't kill enough of you fuckin' douchebags during round one.' The colonel smiled at Arwood. He smiled because he was no mere foot soldier facing the Americans. He smiled because he was a colonel, and he knew that the ceasefire was in place and the Americans had no intention of shooting the Iraqis unless they were fired on themselves. He understood the deeper structures at play, and that all of them were on his side. 'Looks like you're lost,' he said. 'And yet you have found something that belongs to me.' He turned to look at the girl, who was still holding Benton's hand. Strangely, though, she did not look back at him. Instead, she was looking at Arwood as though he were an older brother or a close cousin — someone she could identify with and had learned to trust. And Arwood looked at her. Her body had straightened. She was on the balls of her feet, and she bounced gently. Benton looked between her and Arwood, and he knew that a kind of promise had passed between them. Arwood saw her not as a foreigner, or an Arab, or a Shiite, or a family member of a rebellious tribe, but as a young girl, a girl in junior high school he might have known in Portland, Maine, or Harrisburg, Pennsylvania, or St. Louis, Missouri. She was a cute girl — a girl too young for him, obviously, but cute all the same — who might have smiled at him in the hallway while holding her maths books to her barely developed chest and then looked down quickly because she found him cute, too, but he was an upper-class man and so, later that day, she'd tell her friends about the guy she'd seen and had her first crush on. Whether or not any of this was true for her, Benton couldn't say. It was Arwood's mind — such as it was — that was easier to read. There was no denying, however, that these two young people somehow felt each other. For that moment, they may have been the only people in all of Iraq who looked into each other's eyes across a divide and found themselves in the same place. Arwood looked away from the girl and back to the colonel. How he had such a presence of mind to talk like this, Benton would never know. Clearly, even then, Arwood had what people would later call 'authority issues'. 'Oh, you mean her? Naw, man. She's my cousin. She's an American. Cindy-Lou Who from Whoville. Wandered off after the movie was finished. Mum and Dad asked me to come and get her. Got to bring her home now. So get the fuck out of my way before I splatter your brains and follow the red-brick road all the way home.' The other soldiers looked confused. Based on his experience in Iraq, Benton was reasonably sure that at least some of them understood enough English to follow what Arwood was saying, but his language was so vernacular there may have been no understanding his meaning. They didn't look as though they wanted this kind of trouble. Whatever else their nefarious plans for the day, facing down the sharp edge of Desert Storm was not on their to-do list. If Lieutenant Harvey Morgan hadn't called out at just that moment, there was a chance Arwood's gambit might have worked. The Iraqis might have let Arwood — being crazy — walk off with the girl in green. But he did intervene, and the Iraqis didn't let them go. 'Stand down, private!' Morgan yelled. He was walking briskly toward their position. Behind him, like a phalanx, was the second cavalry, and they were ready to pounce. If Morgan had simply raised a finger, every Iraqi would have been obliterated, and every American would have been delighted to have done it. Rob Husseini probably would have been the first to fire. But Morgan did not give that order, because the paperwork on the subject was clear. The girl bounced on her toes. She no longer held Benton's hand. Rather than stand down, Arwood stood closer to the colonel in the form of pressing his automatic to his forehead and physically pushing him back toward the American position. But that smile never left the colonel's face. 'See how easy it is to obey the man with the gun?' Arwood said. Then he turned to the girl. 'Come on, cuz. Mum and Dad are waiting for us at Checkpoint Zulu. We're gonna have a big homecoming — cake, candy, Roman candles, the works.' Looking at Arwood, and only at Arwood, she started to walk. The colonel stepped to the side, Arwood's automatic still against his forehead, Morgan still telling Arwood to stand down, and the US infantry still ready to pounce. They circled and changed positions. Arwood walked backward and the girl walked beside him, facing forward toward Checkpoint Zulu and the M60 machine gun Arwood had left behind. With his free hand, he took hers. And for a short eternity they were walking toward freedom. Then the colonel withdrew a Soviet-made 9mm Makarov from his belt, and shot the girl in the back. The girl fell to her knees. She did not look down to her body and her heart. She looked at Arwood. His eyes were the last of this world she would know. When it was over, as she lay dead at his feet, still looking up at him, Arwood did regain a place in the moment. Unlike earlier, when he had stood posturing with the weapon in one hand like a gangster in an American movie, now he put two hands on his weapon and raised it in the proper assault position, as he'd been trained to do. Half a second — more or less. That's all Arwood needed to murder the colonel. But Benton took that time away from him: he placed his hand over Arwood's outstretched arms and said, 'We have to go.' 5 It was a short walk back to the safety of Checkpoint Zulu. Lieutenant Harvey Morgan took Arwood by the upper arm as though he were a schoolboy who'd been busted with contraband, and walked him back to the ceasefire line. Though it had been for only a few minutes, Arwood Hobbes had technically abandoned his post, abandoned his weapon, been absent without leave from the base, crossed the ceasefire line in violation of an international agreement and American policy, and then topped it off by pulling a weapon on a military officer from a country with whom the United States — and the entire UN coalition — had a ceasefire agreement. The ceasefire, Lieutenant Morgan reminded Arwood, was between Iraq and everyone else, not among the people in Iraq; that was their problem. Harvey, though he was only twenty-six, next launched a barrage of loosely affiliated words he'd collected over the past six months, sourced from the highest and lowest levels of political discussion: They were held together with spit. Arwood wasn't listening, and wouldn't have given a damn in any case. He was walking back to base without his mind, body, or soul. Benton trailed behind them, escorted by other soldiers who didn't talk to him. 'None of this matters anyway,' Morgan concluded. 'Short of dropping chemical weapons, no one's gonna do anything. I mean, really, what are we supposed to do? Occupy Baghdad? Teach these people how to run a town meeting like we're in fuckin' Vermont?' The moment they crossed the straight and imaginary line that separated one part of Iraq from another, Lieutenant Harvey Morgan stopped, waited for Thomas Benton to approach, and then poked him in the chest, saying, 'You're out of here. Tomorrow morning, you fuck directly off. I want you off this observation post.' Then, as he took Arwood's arm again, he shouted over his shoulder, 'I hope it was worth it.' Arwood was taken to the mess hall. Lieutenant Harvey Morgan had decided to make an example of him, knowing that tensions were running high among his men and that this needed to be stopped. Lashing Arwood, in his view, would ensure that even the dumbest of his company would understand the consequences of doing anything remotely similar to what Arwood had done. And this example needed to be made because the events beyond the perimeter were continuing. The helicopters were still shooting. People were still dying. Men were still being lined up and executed in front of their children to make sure the rebels (if there were any rebels) 'got the message,' which they did. Lieutenant Morgan's rant may have begun as a walk-and-talk lecture, but it did not end as one. 'You are in the worst kind of shit you can possibly imagine,' Harvey yelled in front of everyone. 'You can't even spell the kind of trouble you are in right now. I'm going to have to go home tonight and re-read the entire Uniform Code of Military Justice just to understand what the hell just happened here. Are you getting this, Hobbes?' 'Yes, sir.' Arwood wasn't paying attention. Lieutenant Morgan was speaking to the gallery. Arwood was merely a prop, and he knew it. He didn't care. He was still looking at the girl who was looking at him. Besides, this man wasn't going to take out a pistol and shoot him. This man wasn't going to stare him down with a Makarov pistol on his belt, and mock him. This man wasn't going to shoot a girl in the back. This man, whatever his faults, was not preternaturally evil, and there was nothing he could do to make himself matter in a moment like this compared to what Arwood had just experienced. Or so Arwood thought until Lieutenant Morgan proved him wrong by saying this: 'And for what? For what? You did all that for what? For some fucking Arab bitch.' What struck Arwood in his gut, as a wordless pain that he could not articulate until much later, was a sudden understanding that the only thing worse than evil was deciding that evil didn't matter. And for that reason, and that reason alone, Arwood Hobbes stood up in front of fifty other soldiers, without hesitation or regret, and beat the living shit out of Lieutenant Harvey Morgan. Arwood Hobbes was collected by the military police. Thomas Benton was sent to Harvey Morgan's commanding offer, Major Alan Wilcox, and Wilcox told Benton calmly that he was to now consider himself persona non grata at Checkpoint Zulu. His credentials would be pulled, and he was to go away. Wilcox was a midwesterner, and did not raise his voice or use hysterical language or gestures. He communicated his decisions to Benton, and Benton said that he understood. 'One thing, Major.' 'What?' 'If you court-martial Arwood Hobbes, I'll make sure it's covered in the press. I know people at the Boston Globe, the Baltimore Sun, and the Washington Post — people who cover the Pentagon and the White House. They will ask questions publicly and on the record about why Arwood Hobbes is being prosecuted.' 'The army does not have to answer those questions,' Wilcox said. 'We have procedures. I don't know how it works in Britain, Mr Benton, but in the US those questions will be ignored for reasons of due process.' 'No, Major. They won't be answered. But they won't be ignored. Because it won't be the answers that'll hurt the Bush administration — it'll be the questions.' Later, when Lieutenant Harvey Morgan was sent to the infirmary for general care, stitches, and a cast, he was advised — very quietly and without any hysterical language or gestures — that it would be best for him not to file a report of the incident. The problem, Major Wilcox explained, was that a few days earlier, on the twenty-sixth, General Schwarzkopf had made a major political gaffe by telling David Frost on international news that the US had been 'suckered' into letting the Iraqis fly helicopters in the ceasefire agreement, and that in retrospect he thought the Iraqis had planned to use them against the rebellion the whole time. Now the White House was in full defensive mode over his comments, because every Iraqi civilian death suddenly seemed like America's fault as a result of Stormin' Norman having been hoodwinked by a bunch of carpet salesmen. This was tarnishing America's victory, and was seriously annoying the White House. The simple fact was that there was no way to even describe, let alone explain, Hobbes's actions without using the word 'helicopter.' And that was the word the White House didn't want to hear from the press anymore. Lieutenant Harvey Morgan was purple and tender. He was also angry. 'Let me get this straight. I'm supposed to take a public beating from Arwood fucking Hobbes just so the president doesn't get embarrassed in a press conference?' 'It is my experience that most promotions in the military are the result of making your commanding officers look good, or else keeping them from looking bad,' Major Wilcox told Lieutenant Harvey Morgan. 'Is that true?' 'So far as I know, and I'm a major.' 'What am I supposed to do with him?' 'Something will come up,' said Major Wilcox. Something did come up, and it didn't take long. Benton left as instructed, and opted for the first transport plane leaving the next morning for the north. Two days later he was in Erbil, Iraq. From there he turned around and followed everyone into the mountains when the Kurdish counterattacks against Saddam failed. Benton was now embedded again, but this time with the civilians. He was there almost a week, reporting, meeting people, and sending back stories, before — to his surprise — Arwood arrived. It was not a coincidence: it was poetic justice. The refugee crisis in Turkey was so dire that the UN passed a resolution calling it a 'threat to international peace and security', which opened the floodgates for thousands of American special forces and other troops to assist in the largest humanitarian relief effort since World War II without needing the permission of Iraq to do it. Major Wilcox told Lieutenant Harvey Morgan that this was exactly the sort of place Arwood should go. 'If he wants to help the Arabs so much, then here's his chance.' It didn't bother either of them that the Kurds weren't Arabs. Benton first saw him sitting on a rocky outcropping, his feet dangling like a child's, in an area popular with reporters and staff at the UN High Commissioner for Refugees. Arwood acknowledged him, but at first said little. A press tent had been set up in a flat area at around 1,300 metres in altitude. It contained refreshments and desks, offered familiarity and free information, and so became a natural congregation and propaganda point. Arwood didn't look well. He was thinner to the point of being malnourished. He carried no weapon, and, while still in uniform, seemed disconnected and aloof from the few other troops in the area. It seemed as though he wasn't reporting to anyone, and no one had any particular job for him to do. Benton collected him, then led him into the tent and opened a can of cold Coke. 'Drink,' Benton said, and Arwood did. 'I didn't expect to see you here,' he said to Arwood. 'Major Wilcox heard you were up here, filing stories. He thought it was fitting we be together. Harvey put me on the plane himself.' 'You didn't come find me when you got here. Why not?' 'I haven't been doing much of anything.' 'Do you have an assignment, a mission, a CO?' 'Harvey said they're dropping aid to the refugees. I could catch it.' 'What I mean is, who are you reporting to?' 'No one. He told me to come up here, and that I couldn't come back until they called me, which would be when my company ships off home.' 'I've never heard of such a thing, Arwood.' 'I'm starting to think we don't hear about the weirdest stuff on this planet.' 'I'm in touch with some of the aid agencies here. The Red Cross is here. The Turkish Red Crescent. The High Commissioner for Refugees. I want you to come with me. Get some food and rest. Tomorrow I'm doing an interview. I guess some of the first pallets are going to be dropped — frozen chickens, other sundries. We have equipment to lug around, and some questions for the staff. I'm sure you could be very helpful.' 'Can I ask you something?' Arwood said. 'Of course.' 'Did you know her name?' 'Who?' 'The girl in green. I guess you knew her, right?' 'We'd been crouching behind the same truck. We ran together. I never learned her name.' 'So we'll never be able to tell her family what happened?' 'Arwood,' Benton said, 'I don't think you appreciate the enormity of the catastrophe that's happening here. Tens of thousands, maybe hundreds of thousands, are dead. There are mass graves. Starvation. Exposure. The state of Iraq is ripping itself apart. America thinks the Shiites are backed by Iran, and they're letting them die. And Turkey doesn't want support flowing to the Kurds, lest they create a new Gaza Strip here. Everyone's hoping for a palace coup in Iraq, and it isn't happening. Saddam is trying to hold power by any means necessary that won't draw in the coalition again. It's hell on earth, Arwood.' 'Yeah, but—' 'But what?' 'Well... a person's a person, no matter how small, right?' 'Drink your Coke, Arwood. You need to get some rest.' Arwood sipped his Coke, but did not respond to Benton. Instead he muttered softly to himself, 'I thought that was the whole point.' 6 Märta Ström was a project officer for the UN High Commissioner for Refugees, based in Dohuk. She was Swedish, thirty-four years old, and had been working in humanitarian affairs since graduating with her master's degree from Uppsala University when she was twenty-five. She was scheduled to meet a reporter from the Times, and was killing the time before it happened by leaning against a rock with a cigarette and marvelling at the worst humanitarian disaster since World War II. The British were calling it Operation Safe Haven, and the Americans were calling it Operation Provide Comfort. Märta refused to call it anything but a nightmare. The temperature at altitude was below freezing. The refugees couldn't get farther into Turkey, couldn't return home, had no military protection other than the lightly armed Pershmerga fighters, and the situation was volatile. The death count was untallied. Thousands. Thousands and thousands — a tremendous number of them children. They weren't warm enough. They weren't fed enough. Many had been separated from their families. She had watched a three-year-old boy die of starvation. She couldn't save him. She decided she'd never have children. She could have a cigarette, though. Cigarettes were especially satisfying when the smoke mixed with the cool air. They were best with a stiff drink. There was none of that around, unfortunately. There was an airdrop coming in soon. She'd been tasked with speaking to the press about it. It was not her preferred job. The guy she was to meet — Thomas Something-or-other — was to photograph it and ask her about the general situation. Saddam had been fully victorious by around the fifth, and was now calling the airdrops the 'ostentatious dropping of crumbs' by the West. Whether he was the devil or not, it was hard not to agree with him on that point. Two white men, both clean, approached her from over a small ridge. One was in his forties and the other in his early twenties, or possibly a teenager. She took the older one for the journalist, but couldn't make sense of the younger. He wore a T-shirt that said, If I were an Iraqi POW I'd be home by now. She decided she didn't like him before he'd even stopped moving. The adult one readjusted his shoulder bag and then extended his hand. 'I'm Thomas Benton. You're Ms Ström?' Märta tossed the cigarette away and shook his hand. He was all business, and his handshake was firm. He didn't smile at her, and she didn't smile back. The younger man just stood there, and she decided not only to dislike him but to ignore him entirely. 'This is Arwood Hobbes,' said the Brit, slightly complicating her plan. 'OK,' she said. Arwood Hobbes said nothing. Märta checked her watch. They had a few minutes, assuming the airdrop was on time. 'We could set up over there,' Benton said, pointing to a flat area not far from where an armoured personnel carrier was parked. It was American, and occupied by two men — one black, one white. 'You want to photograph the truck?' she asked. 'No. I want to stand on a flat surface as we talk and I take pictures. It seems a reasonable place. Is that all right?' 'Yes. Of course,' Märta said. As they walked, Benton did not ask questions or make small talk, and Arwood also said nothing. She realised that Benton hadn't explained who Arwood was or what he was doing there. She opted not to ask. 'Just arrive in Iraq?' she said, perhaps a little too loudly. There were many refugees seated and sprawled across the mountain. No one was moving. Everyone was talking. She'd adopted a louder register of speech from the moment she'd arrived three days ago. 'No. I've been here over six weeks. I was in the south.' He didn't elaborate. He had a handsome enough face, but it wasn't especially memorable. He reminded her of a man from a postwar photograph from the 1950s: not the dashing one in the middle with his arms around his buddies; one of the others... toward the back. 'I know some of the other journalists who were out here,' she said. 'Robert Fisk. Martin Woolacott. Jonathan Randal. Nora Boustany. You know them?' 'Yes,' Benton said. He was taciturn, but not sullen. That, she found interesting. For a war correspondent, he didn't present as someone pleased with himself, someone for whom the world's suffering was the backdrop against which to display his own ego. Instead he seemed resigned, attentive, quiet. Though she walked behind him, he turned to check on her, and when he did, he carried an expression of someone trying to fit together two mismatched ends of a home appliance. Benton explained what he planned to do: supplies were coming in by air, and he wanted a shot of it happening and from as close as possible. Airdrops made for dramatic imagery, and that's what was needed to attract media attention and hence gain public support. With that, or so the theory went, came political support. 'That's fine,' she replied. 'Which way are they coming?' he asked her. 'From the north-west,' she said. 'The US Air Force is going to do the drop.' Benton's questions were factual and unpolitical. Märta recited the UNHCR's party line of alleviating the suffering of people caught up in armed conflict and ensuring respect for international humanitarian law. It was nothing he couldn't have learned by phone. Still, she hoped the conversation might produce some sense of urgency, because that was why she'd agreed to the interview in the first place. Looking around her, though, she knew this man would either be moved by what he was seeing or he wouldn't be. Her words would do nothing to change that. 'I did meet a captain and his two lackeys from the air force,' she said, looking up at the sky for the first plane. 'One of them had the nerve to explain that the plan was to drop the food further and further into Iraq so the people would have to start chasing it like squirrels after nuts. I told them that would be illegal, and that forcing people back into a country they fled is called refoulement. I then tried to explain where it was best to position the supplies so that they wouldn't be snatched up by mobs. I said there needed to be a gender-based optic on this so that women wouldn't be muscled out of needed provisions by determined men. I said that order can feed more people than chaos.' 'What did they say?' Benton asked. 'No much.' 'Why not?' 'They were too busy staring at my tits.' Benton nodded. 'Here they come,' she said. As she had anticipated, the air force started pushing pallets out of the transport planes from much too close and much too low. The parachutes opened, but the pallets of frozen chickens did not land well. The air force should have used sling-load helicopters, but they didn't because there was no doctrine to tell them to do so, and pushing pallets out of planes was faster, cheaper, and more dramatic. Some of the pallets were cushioned in their landing by the soft bodies of the Kurds, who were crushed under them and died. As the seals broke on others, the chickens bounced free and chased the uncrushed, who scattered like free-range bowling pins. 'Now, this is special,' Märta said aloud. 'I think,' Benton said, 'that maybe we should find some shelter.' Exposed to the aerial bombing, they ran to the only shelter that made any sense — the US Army's armoured personnel carrier — and banged on the window. 'Open up and let us in,' she said to the black military officer driving it. This was not UNHCR protocol. 'No,' replied the man. 'We are going to be crushed to death by frozen chickens.' 'I am under orders not to allow any non-military personnel into the vehicle. Now step back, please.' 'What's the problem?' Benton asked Märta rather calmly, considering the circumstances. 'You should be crouching down under the truck,' she said to Benton, who was not crouching down. Neither was Arwood Hobbes, who stood with his hands behind his back as though admiring a rainbow. 'I've done enough of that lately,' he said. 'He won't let us in. Orders,' she said. 'Maybe you should go over his head,' Benton suggested casually. 'You know what? That's an excellent idea,' Märta said. She knocked on the window again. 'You — name and rank?' The officer considered this for a moment, and then — though there was no requirement to do so — decided to answer. 'Herb Reston. US Special Forces. Sergeant, first class.' 'Where are you from, Sergeant?' 'What?' There were explosions. The chickens were rolling into unexploded ordnance in a zoned-off area, and shrapnel was flying everywhere — that, and chicken parts, or what Märta hoped were chicken parts. 'Where are you from? That cannot possibly be classified.' Herb was obviously thinking about his reply, and whether a reply was sanctioned or not sanctioned, and what the consequences might be of offering one. 'Kankakee, Illinois,' he finally said. 'Is that a big town or a small town?' 'Small town,' said the large black man to the small blonde woman. 'Reston. Army. Kankakee, Illinois. Here's the thing, Herbert. If I survive this, I'll be going to Silopi, Turkey, in three days. There are three telephones there being used day in and day out by the people at CNN to file stories. When I get there, I'm going to dial 001-800-555-1212 and ask for directory assistance for Kankakee, Illinois, and I'm going to use my calling card to call your mother. I'm going to tell your mother that you refused to allow a woman into the safety of your vehicle during a life-and-death moment and — sorry for the assumption, Herbert, but I'm going to guess from your black, boyish, and sincere face that your mother is a God-fearing woman, and I'm going to describe your actions as very unchristian. And then I'll start to cry. And while I've never met your mother, I'm going to bet my life that my crying is going to make her very sympathetic to me and very angry at you, possibly for a very long time. So I'm going to count to three, and you have to make a choice about whether you want to please the army or please your mother and possibly God. One... two...' On the count of two — as when he was five and his mother laid down the law — Herb opened the door, as much to his own surprise as that of his French passenger, who'd been riding shotgun as part of a NATO observation team. When the back door of the APC opened, Märta, Benton, and Hobbes all climbed inside. With the door closed, it was rather quiet. Two of the chickens bounced harmlessly on the hood of the APC, and another rolled hard against the left front wheel, to no effect. Arwood Hobbes was the first to speak. 'What do you think is the terminal velocity of a falling frozen chicken? It's got to be, like, a hundred miles an hour, don't you think?' The man in the passenger seat turned around. He was in the French military. His English was heavily accented, almost to the point of affectation. 'Shouldn't you be with your unit?' the man said. 'That's where I was going, but then I chickened out.' The man did not reply. 'Chickened out,' Arwood repeated, assuming he hadn't been heard. The French officer made a sound by puffing a bit of air through his dry lips. 'Come on, Tigger, you know I hate that sound,' Herb said. The man called Tigger then shook his head and mumbled something more audible and in French. Only Märta understood him and smiled. 'You speak French?' he asked her. 'I'm based in Geneva.' 'Maybe we can speak later. There are too many Americans here.' 'Why are you called Tigger?' Märta asked. 'That's my fault,' Herb interjected. 'I don't understand,' Märta said. 'I was being ironic and said he was "fun, fun, fun," because, you know, he's not, and somehow Winnie the Pooh came up, and Tigger, and I started calling him Tigger because Tigger's fun, fun, fun, and he said he knows that song, and the best thing about Tigger is that he's the only one, and I agreed it's a good thing there's only one of him and... I don't know. We've been stuck inside this truck for a long time. And now, you know, chickens.' Herb looked up in the sky to see if any more pallets were on their way down. It looked like the C-130 aeroplanes were moving off now, their job done. 'I just don't understand,' he said. 'Who would do something like this?' 'Clearly,' said the French officer, 'it is the air force. This is what I have come to expect from the air force. I expect it because dropping things on people is what the air force does. Drop aid to the refugees. Drop aid on the refugees. One little preposition to separate them, and no doctrine in place to draw the distinction. One little word, and voilà. Crèpe à la Kurd.' 'Maybe Perdue done it,' Arwood said. No one responded. 'Maybe Perdue done it,' Arwood repeated. Herb shook his head. 'That's the motto,' explained Arwood, 'of the Perdue chicken company. They make prepared chicken dishes so you don't have to. Because... Perdue done it.' 'It wasn't Perdue,' Herb said. Arwood was prepared for this possibility. 'How about Colonel Sanders?' Herb Reston was not laughing, though he was likely the only one in the APC who knew who Colonel Sanders was. 'What is wrong with you?' Herb asked. 'You got PTSD or something?' 'Well, there's a phrase. Post-traumatic stress disorder. I wouldn't call it post-traumatic, no,' he said, as three men about twenty metres away grabbed a chicken from a woman who was standing with two small children, and then pushed her to the ground as she tried to resist. 'I admit I've been wondering for the last few days about why I can't sleep, and when I do, I dream of strangling dinosaurs with piano wire. I don't think it's because of something I did. I think it's something I didn't do. I think I have pre-traumatic stress disorder. I think I'm stressed out from not being able to do the right thing. And then, to top it off, the army has decided that my inaction wasn't inactive enough, and by not doing even less I was doing too much. And so I'm getting bad paper when I'm done. I'm not convinced my brain is working on the same frequency as the world around me. I mean, look out the window. How can I be the only one who finds this hilarious?' he asked. He did not laugh, though. Arwood's voice no longer sounded sarcastic. It sounded farther off, as though he were speaking from the far end of an accident. Then he snorted. 'Refoulement,' he said. Märta looked to Benton as Arwood's keeper. As Arwood spoke, though, Thomas Benton turned away and said nothing. The day wasn't over. 7 It was a child. That much was certain. Maybe eight or nine years old, judging by the size of the empty shoes. Everyone had thought it was over. Arwood, Benton, Märta, Herb, and the Frenchman whom Herb called Tigger had all stepped out of the armoured personnel carrier once the aerial bombardment of frozen chickens was over, and the mobs and riots had subsided. After an hour, the explosions had stopped, the panic had relented, and the chorus of normal human misery had resumed its dull lament. From the APC they'd walked to a small ridge that overlooked a wide and flat area. Only a few people were wandering around there. Most of the fighting had stopped. The women had all lost in their melees with the men to collect food, and the medics were already attending to the wounded, beaten, and stabbed. The child had been below them in the wide-open gully. There was a ridge above it where people had started to gather. It was hard to know why that child might have been there. That didn't matter much now, because whatever he'd stepped on had blown him into a thousand mismatching pieces. What did matter was the other child — the one still in the minefield, metres away from the empty shoes, and paralysed with fear. All eyes were on the boy. The American soldiers, who'd arrived the day before, were all shouting to the boy not to move, as they too were not moving. The American soldiers yelled in English. It was unlikely that the nine-year-old boy understood English. And even if the boy didn't move, what then? Nothing about this was productive, and it was Märta who sized up the situation and exerted some leadership. 'You,' said Märta to a man near her, who looked slightly better dressed than some. 'Do you speak English?' 'Yes, OK, OK,' said the man in penny loafers and grey trousers. 'You speak what he speaks?' she asked, pointing to the boy. The man shouted something in Kurdish, which Märta didn't speak. The boy turned around at the sound of the man's voice, which Märta took as an affirmation in response to her question, and immediately told the man to tell the boy not to move. From here on he became Märta's voice, and, like every other Westerner trying to change the world through a translator, Märta had no idea what he was actually saying. While Märta tried to calm the child down by proxy, Tigger calmly explained to Herb that all this was the fault of the Americans. 'Oh, really?' 'Ah, yes. All your compatriots think they are in the Dutch countryside in World War II. They are giving out Hershey bars again. Patting the children on the heads.' 'So we're being friendly to the locals — what of it?' 'They aren't Dutch. They're Kurdish,' explained Tigger. 'They've been taught not to receive a gift without giving one back. So, having nothing, they are scouring the countryside for objects to give back to your soldiers — hand grenades, cluster munitions, anything of equal value to a Hershey bar. Your people have no idea where they are, what they're doing, or what the consequences of their actions might be. None. And now this kid is out there, and I have no idea what we're going to do. I suspect he will die and we will have to watch. As we always watch. Helpless, from the sidelines.' 'I'll get him,' said Arwood, who had been listening to their conversation. 'Don't be ridiculous,' Tigger said. 'No, really. I'll do it,' he said, and without further ado he slipped from the ridge and walked casually past Märta and her penny-loafer-wearing translator, directly into the minefield. 'Wait!' Märta said after a pause that lasted too long. Arwood walked into the contaminated area, his footsteps clear and sharp in the dirt. Benton silently approached Märta, who was still on the ridge. To Märta, Benton seemed more concerned than surprised. Whatever was happening here was the product of something else. Benton and Arwood had come from the south, near Samawah, where the fighting was hot. Something had set Arwood off on this trajectory that she didn't understand, but perhaps — from the expression on his face — Benton did. Arwood walked casually toward the child. His smile was as tender and wholesome as a Tennessee sunrise. When he reached the little boy, Arwood dropped to one knee as though he were taking orders or issuing a small prayer, though both were the furthest from the truth. He looked into the blue eyes of the little boy and said, 'Arwood.' He patted himself on the chest. 'Arwood,' he said again. A piece of shrapnel from the explosion that had killed the other child had lacerated the boy's soft face with a laser-straight cut from his chin up past his left eye. It was deep and bleeding, and would obviously scar, but his eye was unharmed and the blood loss was modest. The boy was in shock. Benton watched from the top of the ridge where, by then, a hundred people had gathered. Herb and Tigger had stopped arguing, and Märta and her translator had stopped talking. The spectacle of Arwood Hobbes crouching in the minefield with the boy had united the refugees and the international staff in a common moment that everyone could understand and no one could explain. 'Arwood,' said Arwood, patting himself gently on the chest again. The boy stared at Arwood. He was traumatised. There was no predicting how he would react. He could just as easily have sprinted off across the minefield. But he didn't. Without a sound, as though released from a cage, the child leap into Arwood's arms and held him as though Arwood were the winged Buraq who would fly them both away on a night journey to a fabled place where they could find whatever had been lost. When the boy was firmly engulfed in Arwood's arms, the ubiquitous silence broke. To Benton, it was as though all the languages of the coalition were being spoken at once, pulling the moment apart by trying to fix it. The hundred people on that ridge had swelled and swelled again. To a million refugees. To all twelve thousand American forces from all four branches. To two thousand French, one thousand Italians, one thousand Dutch, one thousand Turks, four thousand Brits, others from Australia, Belgium, Canada, Germany, Luxembourg, Portugal, and Spain. Their boots all muddy, they were yelling a thousand thoughts in a thousand tongues. Arwood wasn't paying attention to any of this. He didn't have a plan or a motive or a strategy. He was present only in the moment, and responding to its imperatives. He took one step and then another. Arwood carried the child — as thin as a shadow, and vivid as a dream — in his arms by placing each foot that hadn't blown up earlier on the same spot so it wouldn't blow up later. Step by step, unhurried, he walked with the boy back to the ridge and up its slender path, past Tigger and Herb, and close enough to Märta and Benton so they could look into the child's eyes as he was carried past. Arwood handed the child to the people crying most before disappearing into the wailing crowd that surrounded him with hands, arms, and love. Hours later, after dusk fell and the mob had dispersed, Märta went looking for Benton. She found him sitting alone on a rock with a can of Fanta. She said, 'Want to join me in Wonderland?' Benton looked at her. 'I don't know what that's supposed to mean.' 'It's a recreation tent. I want to talk to you about what happened this afternoon with your friend. I haven't been able to focus.' 'It was quite a day.' 'You seem to be taking it well.' 'You don't know me.' Soldiers weren't welcome at Wonderland. It was a recreation space of five large tents arranged into one covered area where the international staff of different non-military agencies would decompress at night after what counted for a day was done. It earned its name from being the place where everyone could wonder out loud what the hell they were doing there. The military lived behind walls. They dug in like Romans. In the Forward Operating Bases, or FOBs, the military served home cooking that agreed with their soldiers' tastes and tummies, played hard rock and hip-hop, and built a colony as hermetically sealed and dissociated as a Marriott hotel on Mars. The command renamed every local road, destination, and object so it was memorable and pronounceable to kids with high school educations. In making life easy, because war is hard, they created a universe so artificial that you could be stationed in Iraq for years and never learn a thing. The humanitarian staff lived in tents on the ground among the people. Listening to the same sounds, they heard the same conversations. There were no walls, no guards, no weapons. They were safe, not because they had defences, but because they'd been invited. That night, Wonderland glowed yellow from the inside. A Honda generator hummed its syncopated beat, and some thirty people were hanging around on the floor and chairs. A few were reclining on an expensive red Roche Bobois sofa that seemed to have dropped from the sky, because no one could account for how it had got there. The majority opinion was that it had belonged to Saddam. The dissenting minority opinion was that Saddam didn't have good enough taste to explain the sofa. The first group was anxious without an explanation, no matter how preposterous. The second group was simply happy not to be wrong. The sofa faced a 19-inch cathode ray-tube television. There was nothing to watch on Iraqi television but the dictator himself, and no one — not even the most media hungry of the student volunteers who might speak Arabic — wanted to watch Saddam. Luckily, though, some enterprising German kid had had the foresight to bring a VCR with him to Kurdistan, as well as the necessary RCA cables to plug it into the back of whatever television set might be found. So, at night, Wonderland lit up like Cinema Paradiso. The German kid's name was Dominik. He came from Kaiserslautern at the edge of the Palatinate Forest. Being near Ramstein Air Base, it sometimes felt overrun by NATO military personnel, all of whom insisted on speaking English. For this reason, it had been an excellent place to get hooked up with English-language videos during the Cold War. The video library at Wonderland in April 1991 consisted of Cheers, Season 3; Magnum, P.I., Seasons 4 and 5; Golden Girls, Season 2; Seinfeld, Season 1; Gremlins; Ghostbusters; and Platoon. There was some debate about what to watch. The universal was Seinfeld. Everyone liked Seinfeld. When Märta had invited Benton to Wonderland she had had designs only on a conversation. She had wanted to see him alone after the minefield incident. She needed to talk, or maybe listen, because she needed to understand. Arwood was nowhere to be found, and he didn't seem like someone who could explain himself when asked. She needed an analysis. She needed to know whether whatever Arwood had might be contagious. Märta had first worked with United Nations Volunteers at the age of twenty-six, starting in Lebanon in 1983. She was offered a job in the system, but the infighting between the Department for Peacekeeping Operations and the UN Development Programme was so vociferous, so intractable, and so counterproductive that she decided on UNHCR instead. UNDP's development work seemed ideological and immune to historical reason. Peacekeeping was a military activity that insisted on universal best practices, even when no practice was universally best. But humanitarian affairs was goal-oriented, legally grounded, morally valid, and logistically adaptable. She was more at home in that sector, but she still hated the way the UN worked, and knew it wouldn't last forever. Though she was an improper fit, she was eventually able to blend with the other professionals. Being smart, though, she was still able to see the experience for what it was: there were a lot of cowboys taking a lot of risks without good reasons. It was a man's world, and as a Swedish woman she knew it would be an uphill battle to gain the respect of a field staff that attracted a lot of people with military backgrounds looking to make the lateral move to civilian life. It all encouraged recklessness as a means of moving up. The problem was that risk — like speed — was relative, and in the humanitarian sector there was no marker to use, because everyone else was climbing without a rope along with you. Arwood was her first clear reality check in a long time. He really scared her. He was the first person she'd seen who was heading toward disaster so obviously that she could measure her own distance from it. Without something to stop her progress, though — some wisdom, some insight, some tool — she was terrified she'd start walking into minefields, too. Not from bravery, but because of a slow acculturation to risk. The TV was on. A girl with a twinkle in her eye was spreading a blanket over the twentysomethings on the floor. Eyes were closing, and hands were on the move. 'The kitchen's in the back,' Märta said, walking past the adolescents. She found a bottle of Jack Daniel's in the refrigerator with a masking-tape label that said, LIQUID COURAGE. It wasn't hers, and she didn't care. There was no ice, though the bottle was cold. She motioned to Benton to follow her to a dark corner of the tent where two black folding chairs faced a table that was too short to use, but they used it anyway and were lucky to have it. 'Not exactly La Rotonde,' she said, 'but it's what we have,' pouring them each a three-finger portion. She raised the white plastic cup to toast. 'Skål,' she said. 'Skål,' Benton answered. They each drank half a cup. The introductory music to Magnum, P.I. played — bum-Bum-BUM BUM! — and someone accompanied the music with a groan that lasted long enough to inspire clapping, followed by laughter that rang itself out. Magnum's deep voice emerged as the remaining sound as he explained how to become a world-class private investigator. 'You wanted to talk?' Benton asked, seated. He was unsure what was happening. He was more concerned about Arwood, but Arwood was missing. No one had seen him after he'd disappeared into the Kurdish crowd. It was when Märta took the drink away from her lips that he noticed her hands were shaky. Her voice, though, was not, and her countenance was grave. 'Your friend scared the shit out of me today.' 'I'm sure you've seen worse.' 'The thing about this line of work,' she said, 'and I'm sure it's similar to yours, is that I know I can leave whenever I want. As much as I sympathise with these people, their problems are not my problems. But with your friend? I think that could happen to me.' 'Arwood's going through some things.' 'Like minefields.' 'That's not what I meant.' 'I'm sorry,' she said. She sipped her drink again. 'What did you mean?' 'It's been an especially hard month for Arwood. He's very young and very inexperienced. I don't think he understood until a few weeks ago what people do to each other on this planet, and how easily and often they do it.' 'How well do you know him?' 'In some ways, I feel like I know him very well. We've been through hell together recently. I haven't known him long, though. I'm not sure that matters.' 'Did something happen during the war?' 'No — afterward. Arwood was stationed with an army unit monitoring the ceasefire. He was in Third Squadron, Second Cavalry Regiment, in a place called Checkpoint Zulu near Samawah. There's nothing there. He was a machine gunner stationed at the northernmost point of the post. It was a terrible place,' Benton said, turning to look at the young people watching Magnum emerge in his swimsuit, moustache, and Rolex from the Hawaiian waters. Märta poured them each another drink. She leaned back afterward and lit a cigarette. 'Anyway... I was there, too, with a couple of other journalists. We weren't doing anything useful. We all wanted to get closer to the civil war itself and report on it, but we couldn't. Saddam had kicked us all out, and we couldn't legally get in. I was feeling headstrong about being manhandled all the time, and wanted to see something else. It was ironic, because the Americans rather cleverly gave us journalists what we all wanted: access. They embedded us in their military units. As a result, we saw the war up close and intimately, but from a one-sided, one perspective angle. The Pentagon outsmarted us. We'd been completely coopted, but it was so exciting that no one noticed. 'Eventually I figured this out. I decided to cross the ceasefire line where Arwood was stationed. I wanted to go into Samawah and see what was happening. Interview some people. Take some pictures. See the war from another side. Get that other perspective. I made him think it was his idea, because he was an earnest kid. I honestly didn't think anything was going to happen. While I was there, the Republican Guard came and killed everybody. Arwood came to get me. Which he also didn't have to do. But it wasn't smooth.' 'What happened?' 'I don't want to go into it. Not just yet. I just...' Benton trailed off and then sipped his bourbon again. 'I think... what happened today with Arwood... that was completely my fault. He wouldn't have been banished up here if it hadn't been for me, and he wouldn't have suffered whatever he's going through were it not for me. Also, it was useless. I dropped the film because it was slowing me down. I can't file the story for half a dozen reasons, including legal ones. So the fact is, Arwood walked through the minefield because I put him there.' 'It can't be that linear,' Märta said. 'It really is.' Märta finished her drink and said nothing. 'I'm starting to think,' he eventually continued, 'that maybe we leave parts of ourselves behind in certain situations — some essential piece of ourselves that we have to cut off, otherwise there's no way out. The future becomes a kind of journey to discover what you might actually have left behind and what you're supposed to do about it. It's more than trauma. It's like a phantom limb, but with a piece of your soul.' Märta watched Benton. She studied his face. She'd known dozens of war journalists and photographers. It was stunning how impressed they were with themselves. A few deserved it, but most were parachute journalists who would drop in, take some pictures, and rush out onto Oprah so they could tell the world about their bravery and close calls, and how committed they all were to the ideal of a free press to support an informed democracy. She liked to say to them, 'You realise that when you're gone, I'm still here, right? Me and the rest of the girls?' And they'd laugh, as though she were speaking through strawberry lip balm. Benton exuded none of this. He seemed sincerely miserable. It was refreshing. Maybe it awakened something in her Swedish soul. 'Why do you do this?' she asked. 'Do what — this job?' he asked. 'Yeah.' 'It's a kind of momentum, isn't it? It's a job. A set of skilled tasks you eventually know how to do, which means you don't know how to do other things, so eventually there you are. When the paper calls and sends me on assignment, this is the kind of assignment they send me on. They don't ask me to do other things like... I don't know... photograph food for the Lifestyles section. In fact, I think I might like working on a cookbook.' Märta smiled. 'Really?' 'Well, sure. It's honest and direct work that requires some creativity and technical skill. You get to see the benefits of your effort immediately. I imagine the people who work on that sort of thing are rather easygoing, and enjoy it. It's useful, but there isn't too much riding on it, really. I wouldn't mind being in that atmosphere. Besides, after taking pictures of gourmet food, you get to eat it. That must be nice.' 'Actually, you can't. A lot of the food is chemically treated. Much of what you see in magazines is entirely inedible. My boyfriend imports food into Sweden. I've been to photography sessions.' 'That's disappointing,' he said. They did not return to the topic of Arwood that night. What she wanted was proof that she wouldn't become like Arwood. Instead she learned that she wasn't alone with her fears. That recognition created an intimacy she needed. Looking at Benton, she realised that she wanted the world to contract for an hour rather than expand, and for her senses to be directed to something specific rather than to be scattered across the terrain of Kurdistan. She put her hand on his. It covered his wedding ring. She felt it press against her palm. He looked down at her hand. He looked surprised, but he did not resist. Instead, he laid his free hand on top of hers. Neither smiled. Before morning they were lovers. The crisis ended with a whimper. The Kurds wouldn't get off the mountains until they could be sure of their safety. But Dohuk was below the 36th parallel, which was the demarcation line of the ceasefire in the north. US Lieutenant Colonel Abigail manoeuvred his companies closer to Dohuk to intimidate the Iraqis so they'd pull out and the Kurds could move back in. General Jay Garner put two American battalions close by. Two different strike scenarios were drawn up. The Marine Expeditionary Unit, backed by other coalition forces, was going to secure the high ground to the north and east of Dohuk. The idea was that the MEU's marine helicopter squadron would fly one marine rifle company to the high ground south of Dohuk, a second company would secure the road to the south-west, and a third, mounted in armoured amphibious vehicles, would pass through the second company and secure a blocking position ten kilometres south of Dohuk on the highway to Mosul. If that worked, and Dohuk was taken without a fight, 45 Commando and the Dutch marines were planning to pass through Abizaid's battalion, enter Dohuk, and secure the town proper, as they had at Zahko. That isn't what happened, though. The US National Security Council screwed it up, calling it all to a halt because they didn't understand the situation, and this signalled weakness to Saddam. He got on television and said that Iraq would fight to defend Dohuk. This meant that no one was going home and that the northern disaster was going to press on and on and on, because there was nowhere to resettle the refugees. Washington tried to blame their field commanders, but that is what people in Washington do, because Washington is the kind of town that attracts the kind of people who do that. As usual, it was the people in the field who sorted it out, while all the members of the National Security Council went on to better jobs later. The press never covered the real story, and the army flowered it over in diplo-speak. What happened was that an American lieutenant colonel named Dick Naab had a long talk with an Iraqi colonel named Nashwan, who explained that Saddam had already issued orders to hold the town and had said so on the national TV, so it would be an insult if they now surrendered it and Saddam had to back down. It was Naab who came up with the idea of having the Iraqis 'invite' non-combat forces into Dohuk to start the repatriation. Nashwan, being pragmatic, saw the logic of the manoeuvre by recognising that it was in Saddam's interests to make the coalition forces go away, which they wouldn't do until the refugees were resettled, having said as much on television in their own countries. So Nashwan took this proposition back to Baghdad, Saddam gave it a think, decided it was a good idea, and the invitation was offered. All that was left to do was move hundreds of thousands of destitute people from the mountains, which is what was done in one of the most remarkable and unsung humanitarian operations of the twentieth century. The end of Operation Provide Comfort was not mentioned in any newspaper in the United States or Britain. Märta went back to Sweden, and slept for three weeks. For the next several months she followed Benton's bylines in the newspaper, but after a year she stopped. She and Erik were engaged, and soon married. What she had had with Benton she considered private, contained, and over: a tryst. She thought the word meant the same as the French triste — 'sad'. It was strange to learn, on looking the words up, that they were only distantly related. PART II THE LONG, COLD, HARD, AND DARK OF IT 22 YEARS LATER 8 The cragged land holds tightly to the last heat of the day. Thomas Benton's collar flaps gently in the late-summer shamal wind. He sits on the bleachers by the Domiz refugee camp, overlooking a pitted and littered playing field as the world fades to a pastel pink under an expanding indigo sky. Iraqi, Kurdish, and Syrian children are kicking and chasing an oblong American football up and down the remains of a once-tended soccer pitch. A well-meaning man from a US aid agency shouts instructions to them about what they are doing wrong. A skinny boy without shoes is covered in dust. Or perhaps he is made of dust. If he is, he is dissolving before Benton's eyes, because behind him is a thick and heavy cloud choking everything slower than himself. By his speed and direction, this means most of the Eastern world. Blacked out, he is a Semitic stick figure of eyes, teeth, and feet. This boy — this genie, this pillar of fire — has somehow gained a measure of control over the foreign ball, and with tremendous timing and balance shoots from the far edge of the pitch. As the ball passes between the two broken and bent tubes that were once the posts, the children — on both teams — all cheer. The applause is as youthful and sincere as it is startling and welcome. Benton watches the children as he opens a Kit Kat chocolate bar he bought from a cold store, and pops open a Fanta bottle scarred opaque from reuse. He is sixty-three years old. It is a poor dinner for an old belly, but its virtue lies in familiarity. He learned long ago that being a successful world traveller means little more than having the ability to eat anything without suffering adverse consequences. A man whom Benton hasn't noticed before is sitting on a lower bench. As the ball passes through the posts, he leaps from the edge of his seat and cheers. He is an Arab. He wears shabby trousers and a blue blazer. His black hair is dirty and poorly cut. From the fit of his jacket, it seems he is wearing donated clothing. That, or he is vanishing. He turns to Benton — the only other person in the bleachers — and smiles. It is not a smile of happiness but of pride, and in this precious moment it runs deeper than an empty well. He looks to Benton because he needs to know if anyone saw what he saw. To Benton, it is a familiar look in the Middle East. Answering the man's unspoken plea, he speaks first. 'That your boy?' 'That is my son. He is better than Beckham. Better than Ronaldo.' His accent is Arabic, and his English is inflected with British intonations rather than American ones. 'He's got talent,' Benton says through a weak smile. 'I would like to see Beckham chase around a ball shaped like that.' 'So would I.' 'Fifty-two aid agencies here. Not one brings a real football for the children. Imagine that.' 'I don't have to,' Benton says. 'Where you from?' the man says. 'England,' Benton says. 'A town in Cornwall. You've never heard of it. Fowey.' 'Is it near Penzance?' 'Further east. Halfway to Plymouth. What do you know about Penzance?' 'I saw the musical with the pirates,' the man says. 'West End. In 1996. It was May. That was very nice.' 'Ninety-six was a better year.' The man puts up his hand. He can't talk about that. 'Why were you in London?' Benton asks. 'I did my master's degree in education at the University of London. When I got back to Damascus, I was made principal of the elementary school where I worked. I liked the theatre. It was too expensive for a foreign student, but there were half-price tickets in Leicester Square the day of the performance, if you weren't too picky about what was left. I was often very lucky back then.' 'You're Syrian?' 'I'm nothing,' he says, the smile gone. He glances back to his son and makes sure he is still there. 'There is no Syria. There are no Syrians. For the first time in three thousand years. I am a ghost. I live in a tent. There is no work here. Nothing for the kids to do all day. I had to pull him out of school. Now he's a year behind, when he was once ahead. I teach him by myself in a tent with no books, no maps, no Internet. I have nothing but my son. But he is worse off. He has only me.' Benton knows he shouldn't ask the next question but does, because it is the only question to ask. 'Your wife?' 'My wife? My wife was eight-months pregnant when a government sniper shot her and my unborn daughter. It went through my daughter's brain and out the back of my thirty-four-year-old wife, a woman whose kindness and gentleness of heart contained more poetry than will ever come from Ali Ahmad Said. They died from the same Russian bullet, provided as a gift by Vladimir Putin. When I got to the hospital, I saw eight other men like me — because that day eight other women were shot the same way. You see, the government snipers were playing a game. They shot pregnant women that day, ones that were near term. And they shot them in the same part of their bodies — through the baby. For target practice. For a laugh. Maybe for a bet. Assad wanted to teach us that we were powerless. He wanted us to know he was in charge. The big man. I haven't told my son. At home, I was still checking under his bed for monsters at night. He was too old for this, I thought. Why at eleven? But now I know he was right to ask me to check. How do I tell a boy who is so sensitive and gentle that his mother has been murdered and that his baby sister will never breathe life? How do you explain to a child that the only place there aren't any monsters is under the bed? I can't explain it to myself. 'My son is waiting for her to come here and meet us. He is excited about the baby coming with her. Every time I try to work up the courage to tell him the truth, I vomit. I don't even have tears. My body cannot accept the truth. It tries to reject it. Coughs it up like an illness that will destroy me. I sob without tears. The air leaves me. Have you ever in your life seen anything like this?' the man asks. His eyes plead for an answer. 'Yes,' Benton says. 'I don't believe you.' 'I wouldn't lie to you.' 'You've been to Syria? You came from there?' 'I saw it here. In '91. In Iraq.' 'Kuwait? Desert Storm?' 'No. After. The civil war.' 'Ah,' he says. 'The Shaaban Intifada. You saw it.' 'In Samawah. I saw it all.' 'Why did you see it?' 'Because I couldn't close my eyes.' The man nods. 'Yes,' he says. 'That's right.' He turns back to watch the boys as he talks. Benton says nothing. The boys have regrouped and are chasing the ball back toward the other end of the dirty pitch. Benton removes a bright red bandana from the inside pocket of his jacket, wipes his face, and returns it there. 'You know what shaaban means?' the man says. 'No.' 'It means "separation". Iraq was splitting apart. He was a weak tyrant after a bad war. Iraq erupted. No plan. No vision. No weapons. Everyone competing. Everyone running away, but not toward. You see the difference? They all hated Saddam, but what did they love? No one knows. Iran making trouble. Like now. But it erupted. Like now,' he says, tilting his head to the west, toward Syria, though possibly toward all of it. 'But then Saddam killed everyone. Everyone-everyone. So fast. No mercy. One hundred thousand. Two hundred thousand. No one knows. He did this in two months. Imagine. No one remembers. Hundreds of thousands. No one remembers.' The man continues to stare ahead. 'How can the world swallow up a hundred thousand people without a trace? I am terrified by this world.' 'I remember,' Benton mutters. 'You speak Arabic?' he asks. 'No,' Benton says. 'A very beautiful language. Filled with nuance and poetry. Many games. Many, many wonderful games. Puns and jokes and allusions. But also contradictions. You see, shaaban is the same word as the eighth month of the Islamic calendar. There is a story that on the fifteenth day of the month of Shaaban, the doors of mercy and forgiveness are thrown open, and those who sincerely repent for their sins are accepted by God. I am not a religious man, but I find this very beautiful. It seems wrong to me that this word should be shared by such events. That the word should be shared by God's forgiveness and also such cruelty. It is wrong. They should not be shared. I can't help but see this. This is my education. And so it is my curse.' The man turns away from Benton and watches the children, who see nothing but the ball. 'Tell me why you're here. You are important? A Big Man?' the man says. 'I'm not important. I'm an old journalist. I'm a dinosaur. They want me gone.' 'You're a journalist. You can tell the story.' 'They're letting me run out a budget line that I asked for so they can fire me when I come up empty. I asked to come here for spurious reasons, and I think they know that. They had to let me because of my seniority, but I've cashed in all my chips. I've given them the excuse they need. This is my last trip.' 'Where is your wife?' 'In the bed of another man.' 'Go back to England, my friend. Make peace with your wife. Forgive her. Forget the work, the newspaper, all of this. It is all dust. We are all dust. Your family is all that matters. Save them, if you can. It is the only way to honour the dead.' 'I have a debt to pay before I go back.' 'Here? In this place?' 'It's an old debt. A friend of mine saw something, and he said he wants to set it right.' 'What did he see?' 'I don't know. A coincidence. An echo. A midday moon in a blue sky.' 'I don't understand.' 'Neither do I. There was a news broadcast,' Benton says to the man on the bleachers, 'about an attack not far from here. They had footage somehow. It was broadcast all over the world. It happens sometimes that there is footage of an incident, it catches the world's attention, and it goes around. Anyway, the man I mentioned... he saw someone in it who looked very familiar and yet who could not have been there, because she was already dead. She died long ago. In March 1991.' 'Ah,' the man says, not sounding surprised. 'He saw a ghost.' 'I don't believe in ghosts,' Benton says. The man shakes his head. 'That doesn't matter. People see things that do not exist all the time. They see hope. They see love. They see trust. They see a future. These things do not exist for many of the people who see them. Ghosts are no different. You see? Whether they exist or not, we see them. Your friend, he saw a ghost.' 'This girl is in a video. She's not a ghost. I've seen it.' 'So you have seen this girl, too.' 'Yes. It can't be her. She's someone else. The resemblance, though, is uncanny.' 'So you have seen proof, like your friend, but deny it.' 'It is proof that there is a girl who was caught in an event who looks like someone I once knew, if briefly. It is not proof of a ghost.' 'Proof. There is nothing more theoretical than proof. The pagans asked the Prophet Muhammad for proof — he split the moon in two, but that was not enough for them. In the West, you stare at the bodies of our dead in fifty thousand photos, all at the hands of Assad. Tens of thousands. You have the photos. High-level Syrians smuggled them to you. They have been forensically analysed. The videos are everywhere. And yet some of you debate whether you have proof — and if you have the proof, what does it mean and what should you do? We have all the proof we need. It is the making sense of it — that's the problem. Deciding what to do about it — that's the problem. You came here to find this person? This girl? To help her? To help your friend?' 'I don't know why I'm here.' 'Ah. Then you're here to suffer. You are in good company.' They watch the boys run for a few more moments. Benton then makes to leave, but as he does, the man says, 'You think we're going to die here? Me and my son?' 'I think,' Benton says, 'that whatever comes next isn't life.' 'That's right,' says the man, turning away again. He nods to himself as he watches the boys. 'That's right,' he whispers. Benton checks his watch. Night falls quickly here. He stands up, dusts off his clothing, and puts the empty bottle and Kit Kat wrapper into his satchel. He'll toss it in a rubbish bin when he finds one. 'Keep your son safe,' Benton says as he leaves. 'Remember us,' the man says. 'Me and my boy, and my wife. My daughter's name was to be Adar. Adar. Remember her for me in Cornwall. Remember her for me so that the earth does not swallow us up and we die twice.' 9 Only three days before, Benton was sitting in his living room, drinking beer from a glass, watching a re-run of The Good Life with Richard Briers. The actor had died in February, and somehow it felt like a national loss. Tom and Barbara had come around for a bath and drink after their chimney 'cleaned itself', leaving them covered in soot. Benton was enjoying the cold drink and the warmth of the show. Vanessa had gone. He'd kicked her out three weeks earlier, on finding her in their bed with another man. Their daughter, Charlotte — a scholar in palaeontology at the University of Bristol — had since been trying to solve their marriage as though it were an evolutionary riddle. Her technique was to study each of her parents' morphologies to find common traits, in order to try to prove that they were, by nature, members of the same family. Benton tolerated it, knowing she couldn't help but arrange dead things into orderly systems. She was not actually helping, though. He had decided he needed a break from her calls, and so gave himself a seventy-two-hour respite from answering them. So when the phone rang as Tom and Barbara headed upstairs to bathe together, he let it ring. The ringing, however, became persistent, and while persistent was in character, Charlotte was never deliberately rude. After fifteen and finally twenty rings, he had to answer it or unplug it. As he didn't have his reading glasses, it made unplugging that damn little plastic thing on the base of the phone all but impossible; and so, with little choice, he opted for his daughter's lecture and answered it. He turned down the volume on the television, but didn't turn it off as he took the call. 'Hello?' he said. 'Did you see her?' said a voice that was not Charlotte's. It was a man's voice. 'Who is this?' 'Come on, Ferris. Who do you think it is?' 'Arwood?' 'Did you see her?' 'Who?' 'It was live on Al Jazeera five hours ago, then it was picked up by everyone. It's on the Web. BBC, CNN, MSNBC. It'll be on The Daily Show if anyone at the White House says something stupid enough about it. They're playing it over and over on the news. The clip is too good not to show. You haven't seen her?' 'No,' Benton said. 'What are you talking about?' 'No need to wait for the loop. Al Jazeera has it on the website. It's on YouTube, too. You know what that is, right?' 'Arwood... Christ. I mean, it's been—' 'Benton, listen, OK? The video. I need you to see her.' Benton rubbed his eyes with his free hand. 'I don't know what you're talking about. I haven't read the papers.' 'The papers. That's quaint.' 'You know what I mean. How did you get this number?' 'You live in the same place and have the same job. Go watch the video. I'll call back in ten minutes.' 'What am I looking for?' 'I'd hate to ruin it. Type in "mortar attack, Kurdistan, green dress, today". You can't miss her.' 'Who?' 'Ten minutes.' Benton sat at his workstation PC, which was old and slow and black. He turned on the speakers, expanded the image until it filled the screen, and sat back to see what had summoned forth the voice of Arwood Hobbes from the silence of twenty-two years. He was right: it was easy to find. More often than not, when the topic and locale are the Middle East, the screen becomes beige. It is a world of earth tones and browns, harsh lighting and harsher angles. When the story turns to the troops — to the Americans, the Brits, to the Iraqi regiments, or the irregulars — they move like matching and replaceable figurines in their dull clothes and camouflage. When the story turns to civilian life, though, their distinctiveness and humanity bursts to the fore in a tapestry of colour. Because of this, the girl in green shone like an emerald against this pallid earth. A newswoman stood close to the camera. It was a bust shot. Behind her was a line of refugee women and their children. Three-quarters of all the people streaming out of Syria and heading for Iraq were women and children. More than half those fleeing the country were children. Al Jazeera was making a point of it, to its credit. The date was 20 September 2013. The refugees had formed an orderly queue. The camera frame did not extend to the front of the line, so Benton could not see what they were collecting. It might have been water or cooking oil. It was a liquid, anyway. They all had buckets, or empty water bottles, or cooking pots — anything that could hold whatever they'd be given. The girl, though... she stole the scene from the camera, in part because she never tried to. It was the way she stood apart from everything around her. Even the most alienated people on earth seemed removed from her. The eye had no choice but to welcome her in and become transfixed. She did not wear a headscarf. Her hair was not black. It was sandy blonde — her complexion that of an Australian surfer. She stood on the balls of her feet like a child, and bounced as though she were cold and waiting for a bus on Oxford Circus. She bounced to a rhythm that was produced by a force deeper than her own heart. Her posture was unselfconscious. She stood as though unseen and unseeable. In this way, she captured the attention of the world for almost twenty whole seconds while performing the most fundamental of civilised acts: she waited her turn. That was when the mortar landed. Someone less familiar with acts of war might have missed it, but Benton's eye was attuned. The presenter was standing in the right third of the screen. The girl in green was in the left third in the upper quadrant, and the mortar came down in almost the dead centre of the viewing frame. A mortar explosion is no larger than an IED, or an unexploded cluster bomb, or an anti-personnel landmine. But unlike the others, the mortar comes from above, and if the angle is right and the frames-per-second of the video are fast enough, you can see it drop. The Zapruder film that caught Kennedy's assassination in 1963 ran at 18.3 frames per second. An iPhone runs at thirty frames per second. This one was at least that fast, and made it possible for Benton to see the thin black line drop from the sky. A falling mortar sounds like a small dropping bomb, which is what it is: the sound falling and the pitch dropping, like an ambulance pulling away and out of sight. We whistle the sound as children. SS... ssss... ssssss... boom. This is because Western children imagine themselves above the bomb. From below, it sounds very different. The air compresses. The bomb becomes louder and the pitch higher until the moment of detonation. BOOM. If you have heard it before and survived, you are primed to hear it again, at any provocation, for the rest of your life. And Benton was primed to hear it. There was a small flash before the audible explosion caused by the mortar landing on dirt. The dust kicked up into the blue sky, and smoke filled the screen. The girl — whatever might have happened to her — was obstructed by the debris. The film ran for forty-eight seconds. He watched it again. And again. And again. He learned the exact moment in the film when he could see her face most clearly. He paused it there. He leaned in to the screen. He stared at her. He stared at her until the phone rang again. Benton answered on the second ring. He didn't say anything. 'Are you looking at her?' the voice said. 'Yes,' Benton said. 'Miraculous, isn't it?' Arwood said. 'It's an uncanny resemblance.' 'Is that what we're calling it?' 'She died in your arms.' 'Yes, she did.' 'It was twenty-two years ago. She was fourteen or fifteen. She'd be thirty-seven years old now if she were still alive, which she isn't, because she died in your arms, and no one knows that better than you do.' 'The dead don't age.' 'This isn't the same girl. You know that.' 'They're saying the Kurds did it. The attack. It's turning public opinion away from them. Plus Barzani's been killing people, and the Kurds are infighting, and maybe this is the moment to pull back on some support.' 'Who's saying that?' 'The news reports. You're in the news business. You don't know this?' 'I'm off today.' 'You don't watch the news?' 'I'm more relaxed when I don't.' 'They're saying the Kurds are attacking the Syrian refugees coming into Kurdistan. This is their proof.' 'That doesn't make sense. The Kurds have no motive for that. It's also not their MO.' 'There's a flight to Baghdad from Heathrow in twelve hours. You transit through Vienna. I've already bought you a ticket — business class. Pick it up at the counter. I assume your office can arrange the visa.' 'Arwood, it wasn't her. It was an unfortunate girl who looks like the girl from '91.' 'It was even the same dress.' 'A lot of girls wear green.' 'Personally, I think it was al-Qaeda,' Arwood said. 'I think they did it to pin it on the Kurds, undermine support, turn northern Iraq into a soft target. It would be helpful if a journalist were to cover it.' 'Arwood, listen,' Benton said, sitting back from his computer. 'Even if I boarded that flight, we couldn't be there for three or four days, at best. I have to get to London, to Vienna, to Baghdad, transfer planes, make my way to the camp, and together we have to get to the site. She either died in the attack itself, was wounded and died later, was wounded and was carried off by others, or suffered one of the other horrible fates that befall children and young women over there.' 'Come on, Ferris. Where's that fighting British spirit?' 'This story won't even exist in twenty-four hours, and by the time we answer the question of who actually did it, a thousand other distractions and stories will have taken over. The fact of Kurdish responsibility will have worked its way into the popular imagination, and there's no backpeddling in a culture with no interest in the past. We'd risk our lives in Iraq for a Twitter feed.' 'Here's an idea,' said Arwood. 'How about we set things right because we want to? Forget the big picture. You come over, cover the story, we visit the site, we go home. And for what it's worth, I think she's alive.' 'You want us to go there? To Iraq?' 'Benton, we never left. Don't you realise that? Gulf War, Operations Provide Comfort, Northern and Southern Watch, Iraqi Freedom, and New Dawn. There has not been a day since '91 we haven't been in Iraq. Not a day. So, yeah, Iraq. That's where the party is. Also, I think you owe me. I think you were planning to go into Samawah, and you got me to think it was my idea. Right?' Benton did not answer quickly enough, though he had had plenty of time to think about it. Arwood took this for the answer it was. 'The thing is, Benton, I now understand that going in was the right thing to do anyway. You had to go. It just didn't turn out well. You still owe me, though. So how 'bout you be a stand-up guy, get over here, file an interesting story for your newspaper, and just maybe we set things right and save that girl's life? I mean, why not? You busy?' 'Iraq feels very far away from where I'm sitting,' Benton said. 'You're a war reporter with thirty years on the road. This is nothing more than another flight and another drive in the desert — nothing you haven't done a hundred times before. I've followed your career. How about you retire with a bang?' 'All right,' Benton said. 'I'll come, but not because I believe it's the same girl or that she's alive.' And as an afterthought, he added, 'Where are you?' 'I'm already here, man. I'm in Dohuk. I'm already here.' 10 Benton walks back from the football pitch to the prefabricated container that has been set up by the International Refugee Support Group as a satellite office in this section of the camp. For a few steps, he accompanies the long line of women in their evening procession to the nearby town where they collect water, night after night. The refugee camp was outfitted for fifteen thousand people. It is now home to more than fifty thousand. By day, the bright blue-and-white tents undulate and glimmer in the intense and cloudless sky south-west of Dohuk. Beige and brown stone buildings squat low and solid on dirt roads. It is remarkably flat here. The sky is enormous. Children are everywhere. Following a small path between tents, he passes women who are busy cooking, cleaning, stacking, carrying, organising, and talking through events with other women, building local strategies to survive. The men, though — who knows what the men are doing all day? Complaining, mostly. Arguing in the way that fish in a bowl might debate the future of the seas. They cannot accept being helpless. Deals are being struck. Lies are being told. Hope is placed on a hook as thin as breath, and in their desperation men bite for it. Still, the camp is calm. Neat, if not clean. Beneath it, in the talk and whispers and the meetings, a new future is being negotiated, but Benton knows the outside world is deaf to it. Benton finds the IRSG container easily enough. It is where Arwood said to meet. It has a flimsy steel door on hinges, two windows on the side, and two wooden steps leading up as in a trailer without wheels in a park. The IRSG logo is stencilled in orange on the door. There is no obvious reason to do so, but Benton knocks. He hears a chair immediately scrape across the plastic floorboards, and then heavy feet advance to the door. The latch turns, and the door opens. A hand is extended from a man with a familiar smile but different eyes. 'Twenty years,' Arwood Hobbes says. 'Twenty-two,' Thomas Benton says. 'Still punctual,' Arwood says. 'I've been told I'm incapable of change.' 'Come on in.' Benton releases Arwood's grip and steps into the office. It is a spartan place, with a sheet-metal desk and a black office chair, and facing the desk are two folding chairs for visitors. A round meeting table sits in the middle, surrounded by bright-orange plastic chairs. There is a public relations calendar set onto the wall, but it is too small to adorn it. Below, a bright-orange power cable runs along the edge of the back wall with three outlets, and each one contains an extension. An expensive uninterrupted power-supply unit, which could power the computer and peripherals for hours if the electricity went off, runs under the desk. On the wall to his right, across from the desk, is a UN High Commissioner for Refugees map of the region, a map of the camp, and various printouts from the UN Mine Action Service with indications of unexploded and abandoned ordnance. Arrows and circles have been drawn all over them. On the far wall, across from the entrance, are a few posters from the NGO itself. Discreetly, someone has also pinned up a Dilbert cartoon strip with Catbert shouting, 'It's not in the budget!' 'Nescafé?' Arwood asks, starting a white kettle with an orange button. 'Sure.' 'A lifetime, right?' Arwood says, opening two brown tubes containing instant coffee mix, and looking in the drawers for some creamer and sugar. 'At least the one.' Arwood puts his feet up on the desk like a colonial magistrate bored with the natives. 'Look at you, all here in Iraq and shit. Was it something I said?' 'How've you been?' 'It's like Joe Walsh said, "I can't complain, but sometimes I still do."' 'Not even a hint?' 'No wife, if that's what you mean,' he says. 'Had a three-year relationship with a nice girl named Rebecca when I was in my thirties. That's long over. No kids. I never really settled into a normal life. I did join the Columbia Record and Tape Club. You know, where they send you a selection every month and you need to say no to it if you don't want to pay? I never said no. Never paid them either, come to think of it. That was kind of normal, kind of Everyman Americana. Then I joined Alcoholics Anonymous, where you need to say no to drinking when people give you drinks. Never said no to that either. I liked the meetings, though. I liked to introduce myself by saying it'd been eighteen minutes since my last drink. The tight-arses got pissed off, but other people laughed, and the girls wanted to be near me just to smell my breath. Happy times.' 'You look OK,' Benton says. The kettle pops sooner than Benton would have suspected, and he takes that to mean the water was already hot. Arwood must have been a few cups into his stay here already. 'Time will tell,' Arwood says, then smiles. Benton smiles, too. Arwood was twenty-two when they last met. He's in his mid-forties now. His face remains boyish, but he carries the years in his eyes. He is still lean. His body is taut. It is not the body of someone who drinks and smokes all day. 'So how is it we're getting to use this space?' Benton finally says. 'I know the programme manager. She's an old friend of mine. We have a free run of it. These are our digs until we make the flatlands out in Ninawa tomorrow.' 'Who is it?' 'Not telling. Not yet. It's my only good surprise.' Arwood hands Benton a coffee. Across his left knuckles is the word LESS. 'Tattoo.' 'Oh, this? Yeah. My first was 'Death Before Dishonour' — put that on my shoulder when I joined the army in 1989. But then, you know, I came back from Desert Storm not dead, and all dishonourabilised.' Arwood makes two fists, and puts them next to one another for Benton to admire. His knuckles are cracked from the dry air. They say MORE and LESS. 'You like them? I think they make a good matching set.' The tattoos are in a serif typeface. They have faded, as though the concepts themselves have been overused. Benton uses a white plastic teaspoon to take sugar from a kilo sack, and stirs it into his mug. 'I've seen GOOD and EVIL,' he says, 'and LOVE and HATE. Never those.' 'Yeah, well... I know what these mean,' Arwood says. The Nescafé is hot, and tastes the same as it does everywhere else, which is its virtue. 'So there was this other guy in the tattoo parlour at the time,' Arwood continues. 'Same deal. Across the knuckles. Guess what his said? YOUR NEXT. Can you believe it? What an arsehole. Didn't even spell it right.' Night falls beyond the shatter-resistant windows like a carnival shutting down. It is best not to be out at night. Teenagers have nothing to do here. These are the world's newest street-corner societies. This is when it gets dangerous: when something new is being formed. Arwood takes a cigarette from a soft pack. He taps it a few times on the table, and lights it as though it should have been lit already. 'I've got a car and driver,' he says, leaning the plastic chair back so it is now on two legs. 'A local kid named Jamal. Works for the IRSG. They're gonna loan him to us for the one ride — there and back. I figure we top him up a hundred bucks, and make it worth his while. It's a week's wage around here, if you're lucky. There are only one or two stops to make.' 'The girl,' Benton says. 'You know exactly where it happened?' 'The mortar attack? Yeah.' 'They weren't specific in the news reports. It was between small villages.' 'The coordinates were in the sitrep from the UN,' Arwood says, pushing two stapled pieces of white paper across the desk. The top reads, 'UN STRICTLY CONFIDENTIAL (File reference: 0009/22-14, Security Information Sensitivity, Classification and Handling) 1600 hrs EST 22 September 2013 DSS-IRAQ Daily Situation Report, Events and information pertaining to UN staff safety and security over the last 24 hours in Iraq...' 'Where'd you get this?' Benton asks. 'The NGO. It's not really confidential. Everyone on the mailing list gets one.' Benton skims the note and slides it back. 'I used it to get more details, and asked around a bit, and I now have very accurate GPS coordinates. I'm off by metres.' 'Made an impression here?' Benton asks. 'No. People know about it because it's on the news, but the internationals aren't interested. Most people here don't think the Kurds did it, but they're so factionalised and unpredictable one never knows. The locals are numb to this stuff. It was one of a dozen attacks this week alone. Only reason it comes up in conversation at all is because it came with art. All eyes are on the Syrian side. Assad's as much of a fuckin' psycho as Saddam ever was. Everyone at the camp here is mostly concerned with what's walking or being dragged across the border. No one understands why we're bothering to go look. I tried to be convincing but I wasn't, so you'll need to come up with an explanation. I can't think of one. And the truth sounds nuts.' 'The truth is nuts. It's comforting to know it sounds that way.' 'What little we know is that everyone hauled arse after the attack. Left the bodies behind. The zone's hot. No one's been back since. Al-Nusra and ISIL are in the area now. They hate each other. You know these guys? ISIL is al-Qaeda, but apparently even al-Qaeda hates them, because they aren't following orders and seem to have their own plans. This story is definitely going to develop.' There are two empty chairs by the table. Benton imagines the girl in green sitting in one of them, flipping through a fashion magazine while sipping a Coke Light from a clear straw as the scent of the fragrant pages wafts upward, casting a spell of glamour and luxury and permanence. He can't decide which of the two girls he's seeing. He doesn't believe they were the same girl. But he doesn't know enough about them to tell them apart. Charlotte, his daughter, was fourteen once, too. That's what she did, sitting at the kitchen table in Fowey, at breakfast, as Benton tried to lay down the law about soft drinks. Vanessa was no help. The women ignored him. Why wouldn't they? Coke Light makes you thinner. 'Kurds didn't do it,' Arwood says. 'Video says they did. The world believes the video.' 'Cameras lie.' 'I thought the line was, "The camera never lies,"' Benton says. 'That's the line, but it's not true. Cameras lie because they're held by people.' 'You've changed,' Benton says. 'It's the mileage.' 'Whose office is this?' Benton asks. 'I don't want to tell you yet,' Arwood says. 'There's not gonna be a lot of fun on this trip. A little. But not much.' 'I'm a little past surprises.' 'Then you're in the wrong place.' 'Tell me. Please.' 'I'll give you a hint: FFCs.' 'What?' 'Flying frozen chickens.' 'That's your hint?' 'You don't remember Perdue's Revenge?' 'Do I remember frozen chickens falling from the sky? Yes.' 'So...What's your guess?' 'Why are you punishing me?' 'Let me make this more simple. Do you remember getting laid that night?' 'You were gone. How do you know what happened that night?' 'As it happens,' Arwood says, 'all those refugees outside who look like props are actually people with eyes and opinions. So... think blondes.' 'You don't mean—' 'Märta Ström. Or however she pronounces it.' 'Märta's here?' 'She could walk in any minute. She knows you're here. I talked to that Spanish assistant of hers. In fact, she was supposed to be here when you arrived. But she's not. If I were you, I'd read something into it.' 'What did she say when you said I'd be here?' 'That's your first question?' 'No. Of course not. Is she well?' 'Yeah. She seems fine-ish. This lifestyle isn't the best for Nordic skin — all the sun and all. At least she doesn't have vitamin D deficiency.' 'You two have stayed in touch all these years?' 'No. I know people in the region, though. She's got a helluva reputation for being hardcore. Unlike you, she has not taken her foot off the throttle. Could have been director at any number of places, but she still prefers the field. I got in touch through channels. Turns out, she remembers us. I think we made an impression.' 'She probably remembers you for walking through a minefield.' 'Yeah, I don't do that anymore. Not literally, anyway.' 'Did she seem... pleased to hear from you?' 'I don't know. She's got a better poker face than the Russians.' 'She was reserved on the outside. Maybe she's still like that.' 'It's because she's blonde,' Arwood says. 'I think it's the eyebrows. Harder to track blonde eyebrows in low-light situations. The proof is that you never have to wonder what the Greeks are feeling. Or the Italians. Or the Spanish. Or the Arabs—' 'I get the idea.' 'Japanese. Jews. Jamaicans—' 'Thank you, Arwood.' 'Anyone south of the Rio Grande—' 'I'm going to take one of your cigarettes,' Benton says. 'Happy, sad, angry, and blank. That's what blondes give you,' Arwood says. 'I didn't know about the dishonourable discharge,' Benton says. 'They call it other-than-honourable, which is nice, because it lets people guess.' 'What happened?' 'You saw what happened.' 'Nothing else?' 'You know what I did to Harvey.' 'They were extraordinary circumstances. If that was the result, then they overreacted.' 'It's the army, Benton. They overreact for a living.' There are no cars at night. No tyres on roads, no teenagers driving too fast, or taxis refusing to let people merge. There is only the hum of the generators. Above, the stars are orderly, and separated by vast distances. One sound catches Benton's attention — a stringed instrument. The player is skilled, and the song is sad. It is coming from a place nearby, out in the night. 'It's a buzuq,' says Arwood quietly, guessing Benton's question. 'Looks like a mandolin with a long neck. He's not half bad, this guy. He's been playing out there for almost a week. Families sometimes go and listen to him.' 'What's the plan tomorrow?' Benton asks. Arwood reaches down into a drab-green rucksack and takes out a neon-green document holder and an iPad. He places both on the table. He removes a foldout map of Iraq, Syria, and Turkey that already has highlighted routes, destinations, and sticky notes on it. 'When did you do all this?' 'Mostly after I saw the news. Same day I called you. As soon as I saw her, I knew we were coming. I started calling in favours and moving money around. Isn't it amazing how much the people in this part of the world remember? When they say they'll never forget something, they don't. And kids... they grow up so fast. I feel like I've got clarity again. Don't you think so, too?' 'Kids grow up fast, yes. I have no clarity, no,' Benton says. Arwood points to the border between Syria and Iraq. 'There's a pontoon bridge that went up in August last year between Syria and Iraq at Peshkhabour. Way up north. Looks like a road over the Tigris. They're streaming in from Aleppo, Efrin, Hassakeh, and Qamishli.' Arwood points to the Syrian cities and villages. 'The video we saw was taken here,' he says, pointing to a spot east-south-east of the bridge. 'It was a humanitarian food convoy. They were dropping off some provisions for a mobile medical unit handing out water and rations to the refugees walking in. There was a lot of food there. Food's a commodity here.' Benton looks at Arwood, and tries to read his face. 'You're still holding to this fantasy that she's alive?' 'It's a big maybe, I admit, but I think she's there. Waiting for us.' 'Maybe? That's what's anchoring our strategy?' 'No. My hunch is what's anchoring it. My gut. My feeling that we've got nothing better to do, so let's go find out.' 'It was three days ago, Arwood. There are rumours stretching all the way to Lebanon about children being abducted and their organs being harvested for international buyers. They abduct ten-year-olds and strap bombs to their chests, telling them that they'll be fine and that only the other people will get hurt. The idea that she's still there and needs us to rescue her is... well, it's lunacy.' Arwood reaches into a bag under the table and takes out a bottle of Johnnie Walker Red and places it next to the Marlboro Lights. He takes two plastic cups and then pours them both generous portions. He's clearly done with Nescafé. 'Listen to me, Thomas,' Arwood says, with an intimacy that pushes away the years. 'I believe that we were called back here. This one single attack. I've checked the numbers, Benton. I've become quite good at numbers over the years. The chances of its being filmed at all, of its being shown, of me seeing it and both of us seeing her... chances that low require a poetic kind of maths. The State Department documented over 6,700 separate terrorist attacks worldwide in 2012 alone. Those 6,700 attacks killed over 11,000 people. More than 21,000 injured. Almost 1,300 taken hostage or kidnapped. These aren't war statistics, man,' Arwood says. 'These are peace statistics. Mission accomplished, and all that.' Benton sips his blended whiskey, and says nothing. 'I'm not even including state-driven slaughter in Syria or the DRC, or Sudan, or Pick-a-stan. And in this year of tears? 2013? Gonna be even worse by the time we're done. But the camera eye caught this one. And we saw it. And we alone know what it means. And to ignore that is to turn your back on this big old goofy world and all its mysteries. So you're coming with me. Because somewhere in that soft belly is that gonzo journalist who once walked into a Shiite stronghold for a story and an ice-cream cone. So let's go into the desert and find what we find, including the girl. That's my speech. You want a better one, you call Bill Murray.' Outside, the stars shine, the men talk, and the buzuq sings a song for which there will never be any words. 11 The interior walls of the prefabricated office are the off-white of a 1970s space station. When the door opens, the whiteness falls away into dead space. The illusion is so complete that Benton is startled not to be pushed into the cosmos. Instead of an astronaut stepping in, though, it is a time traveller. She is still blonde and still attractive, both for the qualities she has and those that remind him of the woman he once knew. She is fuller than when Benton last saw her, which is not unpleasing, and her eyes have turned from a glassy blue to a fine lead crystal. Benton glances at her eyebrows. 'Hello, Märta,' he says. 'Hello, Thomas.' Märta settles into one of the visitor chairs in front of her own desk. She looks at Thomas Benton. He has darkened with time. His face is fractured: it has become more delicate, like old pottery. She smiles. He smiles at her. Neither says a word. 'Oh, come on, people,' Arwood says. 'The line is, "Of all the refugee camps in all the towns in all the world, he walks into mine." It's sitting there like a penny.' 'I forgot you were a movie buff,' Märta says. 'Where have you been?' Arwood asks her, deciding that Benton has passed on his own chance to speak. 'I thought you'd have been here hours ago.' 'I've had a very bad day.' 'Compared to what?' Arwood asks. 'Every other day for the past few months,' she says. Even Arwood has no reply to that. 'What happened?' Benton asks. Benton's voice is as soft as she remembered it. It is familiar, but changed. It is lower. It is older. Which is to be expected. 'This is as bad as I've ever seen it. The Syrian government is performing summary executions in al-Bayda and Baniyas. They're aerial-bombing civilian populations. They're razing entire neighborhoods. Everyone's focussed on the chemical-weapons attacks, but they weren't even the worst atrocities. Aleppo is a nightmare. They're targetting doctors — did you know this? Targetted assassinations of medical personnel, so they can't help the wounded. They're using unprecedented kinds of cluster munitions, supplied by the Russians. They're—' 'We know,' Benton says quietly. 'It bears repeating, though, doesn't it? The World Food Programme is demanding access to get food into areas where the Assad regime is actually besieging and starving to death the local population as a means of warfare. They're collecting people — thousands — and murdering them, documenting it, and lying to the families about their fates. The Guardian is reporting on ten-year-olds having their teeth pulled out with pliers. And then Assad says, on US national television, no less, "No government in the world kills its people unless it's led by a crazy person." They seem to suffer no cognitive dissonance when they say this.' 'We know,' Benton says. 'And meanwhile, these people calling themselves ISIS, or ISIL, or whatever it is—' 'Märta. We really do know.' 'Do we really?' This wasn't the first conversation Benton wanted to have. 'A few months ago,' he says, trying to regain ground, 'one of my colleagues got sick, and they asked me to go to Syria. I had to report on the beheading of a Syrian soldier. I was metres away from it. I was invited. I was there with an Al Jazeera journalist who had witnessed four of them that same day. Maybe he was one of the soldiers you described. Maybe it was an innocent boy. I don't know. What I know is that the crowds were cheering around us, women ululating, children clapping, as a man murdered another man with a small knife and then carved his head off. I couldn't sleep for days. The journalist from Al Jazeera — I called him. He's not the same. We really do know—' 'I had to help one of them today,' she says, interrupting him. 'This morning. Our medical team saved one of their regional commanders.' 'What do you mean?' Arwood asks. 'A commander of ISIL. It was near the Syrian border, but on the Iraqi side, where we have a mobile surgical unit. They limped across. His name is Abu Malik al-Almani.' 'Always Abu,' Arwood says, sipping some booze. 'Abu Abu Abu.' 'What happened?' Benton says. 'A lot of the fighting is in the Syrian north-west. But they come back to Iraq for supplies and recruits, and to stir things up here, too. They know we have medical units on this side of the border but not in Syria, because we're not allowed in, so they bring people to us and other NGOs when they're shot up.' 'Why don't you turn them away?' Arwood asks. 'Well... three reasons. We're obligated by international humanitarian law to treat all non-combatants equally. Their wounded qualify. Also, we can't have access to non-combatants unless we're allowed access by the belligerents. Humanitarian space is negotiated and maintained through relationships with people like this — people who hold territory. And the third reason is that if we don't treat them, they'll kill us.' 'It's nice when things line up, isn't it?' Arwood says. 'The word from some of the refugees here,' Märta says, ignoring Arwood, 'is that al-Almani's group went into a village near the border, gathered up over a hundred women who they said weren't dressed appropriately, and murdered them in front of their families. There was some local resistance, and this one — Abu Malik—' 'Abu Abu Abu,' Arwood says. '—we patched him up,' Märta continues. 'Before he left, he thanked me. I had to shake his hand. He extended it, and his men outside were armed and fresh from killing people. I had no choice. I've been in situations like that before, in Afghanistan with the Taliban. But this was worse. This girl of yours, the one you're both so keen to find — we suspect that her group was coming from a village east of the one that was slaughtered. They must have gotten word of what happened, and decided to risk the walk to Iraq. She survived that, only to die in the mortar attack on this side. So, yeah, sorry I'm late.' 'She's not dead,' Arwood says, kicking back the last of the Johnnie Walker. 'I don't know why everyone keeps saying that. What's that thing with the cat in the box and the nuclear vial of quantum stuff? If that fucking cat isn't actually dead, our girl's not dead.' 'I don't know,' Benton says, 'whether everyone should be drinking a little more or a little less.' 'This trip of yours,' Märta asks, 'it's going to be quick, right? Because — and I'm sorry to say it like this — but this quixotic adventure is not a high priority for me. I'm very happy to see you both and help, but I don't want Jamal out on an unnecessary run for too long. He's my only dedicated driver, and I can't allocate resources because the Times wants a story and Arwood Hobbes needs to satisfy his curiosity. This is a favour for old times' sake.' 'It's a milk run,' Arwood says, standing up, brushing down his jeans, and slurping the last of the whiskey from his cup. 'I'm going back to my tent,' he says. 'It's been nice seeing ya, doll face.' 'No one talks like that anymore, Arwood,' she replies. 'No one does a lot of great stuff anymore.' The door closes behind him, and Märta and Benton are alone. It becomes blessedly quiet. For a long moment, they sit and enjoy it. It is the first time they have been near each other since 1991. 'You look reasonably well, considering,' Märta says, sipping her whiskey from a plastic cup. 'Considering how nervous you make me?' 'I was going to say, "considering you're over sixty now."' 'Gentle.' 'Would it make you feel any better to know I'm glad to see you?' 'I suspect it would.' 'I am glad to see you, Thomas Benton.' 'You're looking—' 'No need to say. You've heard about my day, and I haven't showered yet.' Benton takes the cue. 'Right,' he says, uncrossing his legs and making ready to go. 'I have some packing to do, and Arwood has quite a day planned for us. For some reason, he has us on a strict timeline, and I'm still behind on the details. If I didn't say so already, thank you for letting us use the office and providing so much help. It is kind of you. You obviously don't owe us a thing. I'd invite you for dinner when we get back if there were any place to go.' Benton stands and brushes his jacket. 'Are you still married?' 'What?' 'Married. You still have the ring. Women usually take it off afterward, but not always men. Are you still married?' 'Why?' 'Because I know a good place to eat. Right now. If you're hungry and have no other plans. And there's a shower there.' 'Oh,' Benton says, sitting down again. 'You're shocked.' 'No, no. I'm just... a little less Swedish than you are.' 'Or more British, anyway.' 'That, too.' 'What's her name? Your wife?' 'Vanessa. As it so happens, we're separated.' 'She's there and you're here, that sort of thing?' 'No. More officially than that.' 'Here's the thing, Thomas. I'm fifty-six years old. Erik and I split long ago. I very rarely take on new lovers, but I seldom say no to old ones. Surely that's one of the reasons you're here, right?' 'Um—' Märta, for the first time, looks perplexed, which was not on Arwood's list of facial expressions. 'Or... isn't it?' 'Can I answer that later?' 'Why are you separated?' 'I found her sleeping with another man. Which, in a roundabout way, was probably my fault.' 'Why?' 'I think it has something to do with my personality.' 'When was the last time you cheated on your wife?' 'Well... as it happens, it was with you. So, twenty-two years ago.' 'You haven't been with another woman in twenty-two years, and that woman was me?' 'I like to space out my infidelities.' 'Thomas?' 'Yes?' 'Get in the car.' 12 There is a private security guard posted outside the seven foot-high wall surrounding Märta's house in Dohuk. The yellow headlights wake the guard, who had been dozing. In an effort to prove he's been alert the whole time, he springs from his plastic chair and unlocks the padlock on the sheet-metal gate with elaborate Moorish designs across the top. Smiling, he waves them inside. Märta parks the Land Cruiser on a short and well-paved driveway, and they enter a two-storey house with a flat roof and barred windows that looks the same as every other such house extending from Algeria to Tehran. Inside, the floors are tiled and the furniture simple, aside from a bright-red Victorian wingback in the living room. Benton holds his duffel bag and briefcase. He feels like a schoolboy about to be seduced by a friend's mother. He would stockpile this feeling if he could. 'This isn't so bad,' Benton says, his voice echoing off the walls. 'We're paying three thousand dollars a month for it in a country where the average annual income is six thousand, but that's the industry these days.' 'Is it always like this?' he asks, not knowing what else to say. 'The insane prices? Yeah, pretty much.' 'I meant your accommodations.' 'No. It varies. In Iran, during the Bam earthquake of 2003 — you remember that? I had to stay with Médecins Sans Frontières until we were able to set up a temporary base camp of our own. That was tent and cots. Thirty thousand dead. IRSG was doing family reunification. That was especially grisly.' 'What are you doing here?' 'In Dohuk? You didn't even check the website?' 'This has all come out of nowhere for me. I was watching television when Arwood called. I haven't heard from him this whole time.' 'We're working on child protection and health. We do a little crossover work on community services. It's a good portfolio for us, and I'm glad to be in a stable place. Except when I head to the field and visit the mobile units, like today. Then it's worse. In Iran, everyone was dead. So much grief. Sometimes, though, you bring a child back to its family and the world glows. Without those moments, it can be too harsh. Our turnover rate is high. That's the life, though. You following things in the region?' 'I still cover international. Less fieldwork than before.' 'What's your take on what's happening now?' 'No one ever asks me.' 'Tell me.' 'I think the state system is being rejected like a bad transplant. They haven't developed an independent political philosophy to support it, and they can't go around quoting Rousseau and Locke as convincing authorities against the Koran. So now it's a choice between secular authoritarianism and Islam. And not the nice kind. I'm not hopeful.' 'The bedroom's upstairs on the right. The bathroom's on the left, if you want to shower. I think I left the hot-water heater on. If the red light is glowing, you'll have plenty. If not, you might want to use a cloth instead. It's frigid. I'll shower down here.' The red light, happily, is on, and Benton takes off his clothes carefully to avoid looking in the mirror. The hot water splays down into the peach-coloured bathtub with a water pressure that would be the envy of Kensington. A thin layer of dust forms a perimeter around the spreading water until Benton steps inside and disrupts the flow. As the water pulses down on his face and chest, Benton closes his eyes and imagines he is standing right there. Downstairs, Märta showers quickly and wraps herself in a terrycloth robe as though she were stepping from a Swedish or Finnish sauna. She plugs in her laptop, then her iPhone in the kitchen, and takes a long drink of water from a plastic bottle with a blue top. She runs her fingers over the countertop and sees the dust that's collected there. She has discussed this before with the girl. Yes, dust storms produce dust — no denying it. But the point of the young lady's job is to come by afterward and clean it away. Even where jobs are in poor supply, there always seems to be a reason not to do them. Down the road, the Lebanese have set up a rather impressive supermarket, with many products flown in from the UK, the US, and Egypt. What she can't buy there comes from the souk, which has a far better selection of fresh fruit and vegetables than Stockholm. The fridge is well stocked. She has a chilled Montrose rosé from Provence. It's better than the screwtop suggests. She brings two glasses upstairs. Benton hasn't yet finished with the shower as she turns down the bed and places the glasses and bottle on the nightstand. Like a college girl, she has draped a thin purple scarf over the lamp to create a warmer mood. Wiser than in her youth, she uses a low-wattage bulb to reduce the fire hazard. The master bedroom has glass doors that open onto the roof of the first level. Dohuk is surrounded by the Zagros Mountains. From the roof, she has an unobstructed view of the chiselled edges of the jagged hills, and can watch the snow line descend as the nights shorten. Like everyone else who has a rooftop in Dohuk, she has a plastic dining set so she can benefit from the breezes in summer and the warm tiles and clay on cool nights. She waits there for Benton. She imagines him drying off and sprucing himself up in her poorly lit bathroom, trying to look like James Bond. It makes her smile. She opens her robe to feel the breeze. No one can see her from here. She wants to feel the day slip off. She can still feel that monster's hand in hers as they shook. He looked her in the eye. He tried smiling. It is not only the fresh air that cleanses her. If this were Sweden, if she were on a rooftop in Stockholm, she would not feel so self-conscious about being undressed. In being herself she can rebel against the noose that is slowly drawing around her. It's a shame that much of what once made her Swedish is gone now. But one characteristic she has unapologetically retained is her absolute faith in the fundamental pleasure of a good drink. If she were empress of the Northern Vales, she'd instruct the sages to rewrite the calendars so that time would be measured in liquid — by 'half a bottle ago,' or 'when the vintage has matured'. Poetry would soar again, and music would fill the halls. It might subvert punctuality. But what really matters — birth, love, death — doesn't abide by the clock anyway. Märta pours herself a glass, and lets the wind blow her robe. 'Am I intruding?' asks Benton, stepping onto the rooftop, too, wearing flip-flops too small for his British size-9 feet. She has a few extras for guests, but the Asians don't stock shoe sizes big enough for Western men. His clothes are ridiculous. His sweatshirt is from the 1980s. The stitching on the shoulders droops off the shoulders, making him look like a giant tea cozy. It is also short. The elastic waistband is comically high. It is the pallid grey of an ancient university sweatshirt abandoned for years in a drawer; it looks as though it has internalised the very darkness. It says, in big block letters, PREPARE TO BE FALSIFIED. His dark-blue sweatpants are baggy. They are cottonesque and cleanish. His hair, such as it is, is tussled and wavy. He may have tried using a hair dryer. Perhaps for the first time. As an act of triage, he has brushed his hair back in the hope it will make a difference. In its own way, it has. 'No, not intruding,' she says, closing her robe. 'I was expecting you. Or something like you.' 'I'm older,' Benton says. 'Your clothes, however, are timeless.' 'My daughter got the jumper for me. She's a palaeontologist now, if you can believe it. She specialises in a 300 million-year-old shell called a brachiopod. She rattles on about the wonders of phylogenetic systematics and the pleasures of cladistics. She belongs to the Willie Henning fan club.' 'I don't know what any of that means.' 'It's a method of classifying organisms in the natural sciences on the basis of shared characteristics called synapomorphies. It's quite a new approach to the science of classification, and it's the most accepted now, as it's explicit in its hypothesising, and it's empirical in its methods. Which, given the state of knowledge today, you'd think would disqualify it. Charlotte was studying earth sciences at uni, and was attracted to this as if it were a church.' 'It sounds complicated.' 'The science is, but the logic is admirably simple. Charlotte says that one of the most satisfying parts of her job is knowing for a fact that she is building and contributing to the fundamental wealth of human knowledge. I, on the other hand, am absolutely confident that I am not.' 'You're envious.' 'Envious, yes. Jealous, no. She's earned her peace of mind.' 'It's a cute jumper, all the same,' Märta says. 'I'm told,' Benton says, looking down to his top, 'that it is very funny if you're a scientist.' 'You mean on account of what it says?' 'Ouch.' 'There's a glass and bottle just inside near the bed. Bring them out, will you?' Benton does as he's told. There is a small box on the rooftop, and Märta opens it and then hands Benton a pristine terrycloth and motions that he should clean off the lawn chair before sitting on it. He does this and then takes a seat, folding the cloth and placing it beside himself on the next chair. Märta does the same. He pours himself a glass and tops up hers. 'Skål,' she says. 'Skål,' he replies. After a sip, he stretches out his legs and takes a deep breath. 'Dohuk isn't a bad duty station,' she says. 'The shopping is adequate, they're tolerant of foreigners. Violent crime is low. It's more of a wrong-place, wrong-time problem. Unless, of course, you've come here looking for trouble. Have you?' She leaves the notion hanging for a moment. Benton's countenance is hard to read. 'I found you,' he says, spinning the glass by its stem. 'What are you doing here, honestly? Did you even know I was here? I was sure you did until I saw those clothes.' 'I didn't, if you can believe it. Arwood knew you were here, but he didn't tell me. I really am here about that girl in the video and because of how strongly Arwood feels about it. Which doesn't mean I'm not very happy to see you. It's comforting to know that people from your past are still out there. Still here on the planet with you. Part of getting older, I guess. We're only missing Herb Reston now, and that Frenchman. I forget what everyone called him — something from Winnie-the-Pooh.' 'Tigger.' 'That was it.' 'They're here, too.' 'Of course they are.' 'No, really, they are.' 'What are you talking about?' 'It's not as though they were wandering down the street and I bumped into them. I hired them and brought them here. I hired Tigger first — ages ago. I was at UNHCR when we all met. I worked next for the Red Cross. I asked Tigger to come with me to the IRSG when I took a management position. The support group said I could pick my senior team. Tigger was in French intelligence, got out, did some political analysis as a policy wonk for a while, then wanted to get back into fieldwork. Like me, he found the development people too ideological, and so came over to humanitarian field operations, which is more pragmatic. Tigger and Herb eventually became good friends. I think of them heckling the world stage like those Muppets in the box seats. What were they called?' 'Statler and Waldorf. How are they?' Benton asks. 'Grown up. Both are married. Both have children. Now we're back in Iraq, after the Americans and everyone else has left. They're four weeks on, two weeks off, for six months, and then they return home with a healthy pay packet.' 'How long have you been here?' Benton asks. 'Thomas,' Märta says, ignoring his question, 'if you're wearing those clothes, then you really didn't fly here to see me. In which case, what are you doing? You really need to tell me. It can't be for this story you're talking about. This mortar attack. It's a fly in the ointment around here. There's no way the Times would follow up one crime in ten thousand.' 'Do you remember,' he says, 'when we met in that tent in the mountains—' 'Wonderland.' 'Yes. I told you that something happened in the south before we met, but I didn't want to go into it. What happened was that a girl died in Arwood's arms. It was a girl in a green dress, one who bore a striking resemblance to the girl in the mortar video he's hoping to find. The first girl's death was pointless and cruel. It was also invisible. No one saw it. The girl in the video, though — her death, which was also pointless and cruel, was nevertheless seen by the entire world. The first one happened in front of us. The second one happened in front of us all. We didn't go back for the girl in '91. We left her body behind. We had no choice, but this time we do. I think Arwood is here for the girl in the video because he's fixated, and he's broken, and he needs to either bury this girl or return her body to her family, if that's even possible. That may seem a mad reason for coming to this part of the world. Personally, I don't think it is. I've seen people do a lot more to achieve a lot less. As for me, I'm here for Arwood, because he saved my life, and I ruined his.' 'So you're here out of loyalty?' 'As I said,' Benton says, 'I'm old-fashioned.' 'Do you trust Arwood?' 'I believe he wants to solve this for reasons I understand. So... yes. We'll drive to the spot, confirm her death, see if there's some way to learn her identity — papers, brand of clothing, anything — return her to her family, if we can, and write a story so people know that the images they saw on television didn't end in a dramatic puff of smoke like all the CNN coverage did back in '91 and now all the drone attacks do, too. I want to clear the smoke — maybe for the first time in my pathetic career. As for the details, I won't know until tomorrow, when he briefs me on the mission.' 'There's a mission?' 'It's a turn of phrase.' Benton smiles and then sips his rosé, wishing it were Talisker. 'It's getting cold,' Märta says. The mountains have retreated into the night. There are no lights on the high ground. Nothing is separating them from the sky except the absence of stars. 'Inside, then?' he asks. 'Are you feeling guilty?' 'About Vanessa?' 'Yes.' 'I'm enjoying being with you.' 'When you said "separated"...' 'The morning after I caught her with the other man, I told her I wanted a divorce.' 'Do you?' 'No.' 'Why did you say it?' 'It was the cruellest thing I could think of at the time, and I'm something of a coward.' 'Do you think staying with me tonight will punish her?' 'I think I want to see what's under your robe.' When they finish, Märta does not immediately disappear into the bathroom. She pulls up the blanket and lies back into her pillow. Her left leg touches his right. She has angled her body away from his to make room for her full relaxation. Benton does not interrupt her solitude. He studies the angles of the walls again instead. He measures their thickness by their colour, their temperature by their finish. They are clean, but remind him of too many collapsed buildings, too many twisted steel rods reaching from too many structures in so many cities, like stripped ribs open to the air, the people and families they once protected exposed, and everything vital open to the scavengers. 13 Arwood wakes, stretches his arms, and — to check his sobriety — keeps his eyes closed as he brings a cigarette to his lips with his left hand and lights it with a Zippo from his right. It is actually harder than standing by the side of the road and trying to touch your nose with your finger, because the Zippo can set your nose on fire, whereas the cop isn't allowed to. The other nice thing about starting the day with a cigarette is that, whatever else happens later, at least the first move was yours. It's going to be a good day. Arwood can feel it. Today is the day he's been dreaming about and anticipating for a long, long time. He always knew he'd be back here to finish his business. He'd known ever since his father kicked him out of the house after he got back from Desert Storm. 'What the hell are you doing with yourself?' his father had said to Arwood, who, by late June 1991, had been back from the Gulf for a month. Arwood was deep into a new video game called Civilization. It mainly involved taking over the world by destroying everyone else's. He played it in his boxer shorts and dog tags while chain smoking. 'I'm trying to civilise the world, Dad, the old-fashioned way. Why, what are you doing?' he'd said in the blue light of the cathode ray. His father had come with an agenda and a message, and was in no mood for Arwood's flippant attitude, which the US Army had — implicitly, if not contractually — promised to change when his son enlisted. Instead, they sent him back early, emotionally damaged, and even more obnoxious, because now he wasn't afraid of anything and had no respect for authority, including his father's. 'It's time for you to get out and see the light of day, and maybe even look for work. You're a man, for Christ's sake.' 'I had a job, Dad. I was a soldier. I was paid for it,' Arwood said, not taking his eyes from the glowing monitor. 'I was kicked out, but my need to conquer foreign lands is not yet sated. Ya see, all those little orange people, there to my north-east, are getting a little grabby with the mineral wealth in my sphere of influence, so I've decided to genocide their arses and let that be a lesson to all the other civilisations, especially the purple ones in the south. I don't like their attitude either, but maybe they'll learn to step down once they see the bloodbath I'm inflicting on their orange kinsmen. The thing about this game — and you only know it after you've played it for a really, really, really long time — is that I'm not sure the other civilisations are capable of learning what I'm trying to teach them. How fucked up would it be if I'm spending all this time killing people to send a message they are actually not capable of understanding, because they don't have those algorithms in their brains? I don't have it worked out, but I think I'm on to something.' 'Watch your language.' Arwood turns to his father for the first time. 'Are you serious?' 'You have three days to get your act together, and either get a job or get out. Your mother and I aren't carrying you. You were lazy in high school, so you joined the army. You did the minimum there by specialising in that damn gun rather than something that could have made use of the high IQ that God gave you. And then, when you actually did your service, you dishonoured yourself, your country, and your family. So, yeah, I'm serious.' 'I did my job and then some.' 'The US Army doesn't think so.' 'They don't think at all.' 'You fire that weapon at anybody?' 'No.' 'Then you didn't do a fuckin' thing.' Arwood takes a pull on his cigarette, blows it out, has a languorous scratch where it feels best, and then sits up just in time to let the ash fall onto the sleeping bag rather than into his left eye. Up, alert, and exfoliated, his only regret is that he's alone. The reason he is alone with the cigarette this morning is that he couldn't find a girl to ride pillion last night. After Benton and Märta pulled away, Arwood started looking for company himself. No point in being single, surrounded by the mountains and dust, and not trying to get laid. The fact is, other than complaining and getting drunk, it's really the only sport in town. He'd been working on a girl named Ann. They met at the cafeteria. Ann was in her late twenties and old enough, so his thinking went, to appreciate the value of an older man who wanted to make her intensely happy very briefly. Sadly, Ann was a talker. And while he often liked loquacious women with strong opinions, it did in the end come down to what they said rather than how they said it, and what Ann said was annoying. As best as he can figure it, the reason he woke alone to a cigarette was that the conversation had turned insipid, and Arwood has never been good at recovering from the dizziness caused by thin arguments. Arwood liked to imagine logic as being like a taco shell. Sure, logic is fragile, but the shape is stable and supportive if you're delicate with it and use it correctly. What you can't do is ignore its structure, overstuffing the bottom and squeezing it from the top. Ann worked for a non-governmental organisation called — no shit — Happy Planet®. She was a project officer. For almost twenty minutes last night, Arwood had tried to care. He tried to care about her master's degree in conflict resolution, and about her internship with the United Nations Volunteers, and how the UNV had helped her 'almost' get a job with the UN, and how that failure had led her to Happy Planet®, where, presumably, she would make the planet happier, though Arwood wasn't sure the planet itself was unhappy. What he couldn't get past was how every statement she made about the world was in the form of a question, while everything that should have been a question was presented as a statement. 'You see,' she'd explained to Arwood, who knew that feigning attention to her pet philosophies was the surest path to wearing her thighs as a hat, 'I wrote my thesis on participatory action research? So I'm here to teach people how to transform conflict by empowering them through narrative, so they can better resolve conflict rather than revert to war? It's... well... I guess it falls under conflict transformation, technically, but I think that term is overstretched these days — it's been unpacked too much, if you see what I mean — and I'd rather go back to the more solid work in conflict resolution that takes more seriously the postmodern, post-Foucauldian, and postcolonial assumptions about the status of knowledge. Because, you know, we don't just want to transform conflict, we want to resolve it, but without imposing the solution or anything? I'm especially interested in this new school of thought in development studies, which says that the only solution to our misapplication of power in these instances — given the subaltern status of the participants — is to not even be there.' He had wanted the sex. He really had. He had wanted to receive muffled feedback through a pillow as he massaged her milky-white arse and slapped it red. But he didn't want it that much. Arwood Hobbes was forty-five years old. Having started when he was sixteen, it meant he'd been having sex for almost thirty years. And while sex after thirty years is still totally great, it most often doesn't feel quite as good — not in the long run, not for the memories, not for the big smile — as setting someone straight. This is why he really had no choice but to tell Ann, sincerely and from the heart, that 'technically speaking, war is a conflict-resolution mechanism'. Ann split, and Arwood slept alone, but the Great Taco of Logic remained intact, and in a postmodern world that is no small thing. Up, out, and ready for the day, Arwood doesn't knock on Märta's office door, and instead steps brightly into the prefab to see whether Benton is there yet. It's seven-thirty. He finds both Märta and Benton inside at the conference table. Märta speaks first, and catches him off guard with a phrase no one's ever said to him before: 'Oh good, you're here.' She continues, saying, 'I'm taking you both to see Louise Ballan, who's the head of the International Committee of the Red Cross sub-delegation here. She's Swiss, from Nyon. Very bright. A little intense. Big hair. Try not to stare at it. We're going to see her. She knows a lot, and it never hurts to have a friend with a helicopter. And as for you,' Märta says, pointing to Arwood, 'the only words you speak to Louise are "Good morning," 'Thank you," and 'Goodbye."' 'I want to be on the road by eight-fifteen,' Arwood says. He isn't smiling. 'There's a timeline. We don't have time for lectures.' Märta walks across the room to a pile of equipment on a folding table. She talks as her hands pick up Motorola headsets, and she starts placing batteries and checking the signals. 'All my people,' she says, 'are registered with the UN. They all have DSS call signs, VHF radios, timetables for radio checks, and maps showing where to call in when on the road. We're connected to the Dohuk radio room. You,' she says, handing a Motorola headset to Arwood, 'are Romeo Charlie Niner Two, and you,' she says to Benton, 'are Romeo Charlie Niner Three. Ahmed Haddad is the one on the radio. He's Egyptian, a little on the heavy side. He's well tapped in up here, and he's on the ball. He's young, and he eats too many potato chips, but don't let that throw you. I will let him know you're with us. I'm calling you' — turning to Arwood — 'a consultant. And you,' she says to Benton, 'are a visiting journalist, which happens to be true. You're in the system. Please use it. It'll keep you safe, and remember that your actions are a reflection on me and the International Refugee Support Group.' Arwood watches Märta click the batteries into place. 'Why don't you just use the charging bases for the walkie-talkies?' he asks. 'Because Motorola batteries tend to overheat when you charge them inside the handsets rather than outside, which shortens their life cycles, and anyone who's worked in the field knows that. I know what I'm doing, Arwood, and you two don't. Here,' she says, handing a map to each of them. 'These maps have all the roads in northern Iraq. We don't officially call this place Kurdistan, though everyone does. Each checkpoint is in blue. I'm logging your journey with DSS, and I'm putting a time estimate on it. Ahmed knows exactly how long it is supposed to take to get from one point to the next, and he stays in touch with local authorities, so he even knows if there's traffic. If you do not radio in your location within twenty minutes of each check, he'll call you. And if you don't answer, he'll call me, and then he'll notify the police and we'll have to come look for you. If you veer off your planned journey, you will force everyone to start looking for you, which would divert needed resources from any real emergency. So don't. Are we clear? What's your call sign, Arwood?' 'OU812.' 'Thomas?' 'RC 92 and RC 93. We'll stick to the filed route and abide by procedures.' 'Is it true,' Arwood asks, 'that the French call these "talkie-walkies", not "walkie-talkies"?' 'Yes,' Märta says. 'Isn't that being contrarian? I mean, "walk" and "talk" aren't even French words.' 'The radio room,' Märta continues, 'can be contacted on the handset and also by phone. Here's the number.' She points to the tops of the maps. 'Right now, in front of me, you enter that number into your cell phones. Both of you. Then assign a speed dial to it.' Arwood and Benton do as they're told, while Märta hands Benton an extra phone. 'It isn't protocol, but please take this extra one. It's my personal phone and has an Iraqi SIM card. I charged it last night. I'll use the IRSG's phone. If you lose yours, or it's taken from you, you have a backup. Trust the system, trust Ahmed, and strap this phone to the inside of your leg. 'Now, we need to meet Louise and Ahmed before you leave, so they can put a face to a name in case you two get into trouble.' Benton follows behind Märta and Arwood as they drive through the camp and onto the road that takes them to Dohuk, where the ICRC sub-delegation has its office. Benton looks at the children who are barefoot, in flip-flops, or in Chinese knock-offs of Crocs. A two-year-old is screaming and wriggling in her mother's arms, and the woman has a vacant expression. She and Benton look at each other. When Charlotte was two and a half, she became obsessed with hair clips. She needed to touch them, collect them, put them in the box, take them out of the box, lose them, find them, put them in her hair, take them out of her hair so she could see them, have them in and out of her hair at the same time so she could wear them, and see them and hold them at the same time, and she needed to sleep in them, but she couldn't sleep in them because they had sharp edges and could hurt, so she wasn't allowed to until, finally, he and Vanessa relented after a scream so angry, so long, and so high-pitched that the wavelengths were converted into light and she glowed with the hellfire of a thousand suns at the cosmic injustice of her parents' arbitrary authority, but alas, she couldn't sleep in peace because the sharp edges of the hair clips hurt her head. He can't imagine Charlotte as that child. He should be able to, but it is not possible. Not really. Louise's Red Cross office isn't in a prefab. It has its own two-storey beige building, and there is a large placard outside with its name in French — Comité International de la Croix-Rouge. There is an Arab guard sitting on a white plastic chair out front. He is unarmed. On his matching table is another of the ubiquitous Motorola handsets. Märta waves to him as the Toyota passes through the doors and into the parking lot, where it joins half a dozen other Japanese vehicles with the same colours but different markings. The foyer is clean. There are posters of the ICRC working in different countries. Others contain quotes from the Geneva Conventions. Benton sees Arwood studying the posters as they walk to Louise's office. One reads: 'Prisoners of war must be allowed to use tobacco. (Convention III, Art. 26)' He smiles and points, and tries to get Benton's attention, but Benton ignores him. The doors are all marked with the names and titles of the staff. Märta leads them to the left, past an HP printer and a Xerox machine, past a line of maps showing the region, then Iraq, and then the Middle East in its entirety. There is a plague on the wall commemorating their dead from the 2003 bombings in Baghdad which closed their offices in the capital and in Basra — the town where the uprisings started in 1991. At a desk, in front of a PC, is a young Muslim woman in a fashionable headscarf and Cartier glasses. She is slender. She has elegant cheekbones, thin wrists, long fingers, and perfect fingernails. There is an effortless grace to the way she moves. Headscarves make it a little harder to pin down a woman's age, because hair is more of a cue than we often realise, but Benton puts her at about twenty-seven. Compared to the young British women he works with in London, she seems exceptionally composed. She smiles warmly when they arrive. Märta embraces her, and they kiss on each cheek. 'Farah, this is Thomas Benton and Arwood Hobbes. Benton is a journalist with the Times, and Arwood is a consultant with me. Louise said we could come by for a short chat. They're headed west to al-Qanat near the border.' Farrah extends her hand, and Benton shakes it. It is like holding the wing of a bird. She smiles diplomatically and says, 'Very nice to meet you.' She does the same to Arwood, who shakes as well and — blessedly — says nothing. 'Farrah is from Erbil. She knows this region better than anyone else I know,' Märta says. 'The situation near al-Qanat and al-Rabiaa is not good,' she says, directing her comments to Benton. 'The Ninawa province has certainly not been the worst, not compared to al-Anbar, but there are reports of ISIL groups clashing more and more with the Kurdish Pershmerga and the Shiites. Also, some of the Sunni tribes find ISIL too brutal, so they are turning on them, too. But not all. Deals are being struck. Also, the Kurdish PKK is moving south from Turkey and linking up with other groups. The situation is very fluid. It is best not to go there if you can avoid it.' 'We're going. So if we can get on with this—' Arwood says. Farrah smiles again. It is then Benton realises that her grace is not a form of polished diplomacy, but a highly refined survival skill. Märta raps gently on Louise's door and swings it open enough so that they make eye contact. Benton can see them both from his angle. Louise ushers them in. She's on a call, and the speakerphone is on. She's taking notes on a legal pad with her free hands. 'I'm on with AirOps,' she whispers. 'Give me second.' A dry, humourless, and distinctly Russian voice that channels the collective charm of the former Politburo comes through old speakers on the phone. Disembodied, it says, 'We had three stretcher cases yesterday without stretchers. This created problem for loading and off-loading of wounded and other messy people. Technically this isn't our concern, but the Iraqi Red Crescent — which is not always the most cooperative national society, not that this is news — is using ambulances for collecting patients, and they don't have stretchers for stretcher cases. They only have the one used in the ambulance. This results in blood leaking onto the floor of my aircraft, which is bad for the aircraft. It also smells very bad and irritates me, and makes everything tacky, including my instruments, and I don't like it. I now think if we are carrying bleeding wounded we need a new solution for protecting against blood spillage into, and from, the aircraft. So I'm telling you — my boss.' 'Thanks, Spaz. I'll tell the head of mission, and I'll see what we can do about the sheeting. You're helping save lives, Spaz. We're all grateful.' 'Yeah... OK,' he says, and unceremoniously hangs up. Louise hangs up by pushing an orange button. She opens her palms. 'Busy morning. You know how it is.' 'His name is Spaz?' Arwood asks. 'We don't know his real name.' 'Is that good?' 'It's working so far, which is pretty much the definition of success around here.' 'Louise Ballan,' Märta interjects, 'this is Thomas Benton from the Times, and Arwood Hobbes, who is temporarily with me. They're headed up north for the day. I wanted you to all meet and see if there's anything that wasn't in the UN sitrep this morning.' Turning to the men, she says, 'After I left the UNHCR in 1995, I was with the ICRC myself. They have a network of their own, and they don't share information. So this conversation is not to be repeated.' Louise is in her early forties. She is slender and big-chested, wears heavy and dated glasses, and her hair is the greatest mass of black, tangled curls Benton has ever seen. She sees him looking at it and smiles. 'Hypnotic, isn't it?' 'I didn't mean to stare.' 'Everyone stares. It's hypnotic.' Benton smiles, and reaches out his hand to shake hers. Arwood does the same, and says nothing. 'Where are you going?' Louise asks, sitting down again and ignoring Arwood. Märta is about to speak, but it's Arwood who answers. 'A few kilometres south-east of the Yaaroubiyeh border crossing in al-Qanat. There was an attack three days ago,' he says. 'We're going to the spot — as soon as we're done here. We're going to find the girl. You know the one.' He checks his watch. 'I would recommend against it,' Louise says, starting to shuffle some papers around on her desk. 'There's word that ISIL is targetting Iraqi police and security forces, not only to weaken them but to scare people off from joining them. That area is overlapped by half a dozen unfriendly power players, including the Kurds, Jabhat al-Nusra, and ISIL, at the very least. We have refugees passing through, but we're trying to divert them to better routes or else send them south into Jordan instead, though conditions there are getting very bad. And the Kurds are... unpredictable at this point.' 'Thanks. We're going anyway,' Arwood says, and then, to Benton's embarrassment, makes for the door. Louise and her hair nod. 'Hobbes, huh?' Arwood stops. 'That's my name.' 'Any relation?' 'What difference would it make?' 'OK.' Then she looks at Benton. 'You do know, I assume, that dozens of journalists have been kidnapped by the Syrian government and the Islamist insurgents alike, right? That no one is talking about it on the theory that not publicising it will undercut the motive to do it? Also, the attack you're talking about, the mortar attack — the claim of responsibility by that Kurdish group is unconfirmed. Most people don't think it was the Kurds. I don't think it was. I wouldn't go near the Syrian border now if I were an English journalist travelling with an American.' 'We heard,' says Benton. 'And, perhaps unfortunately, many European governments are regularly paying ransoms to get their journalists back, which means a market has already been created and prices set. In any event, we won't be there long. In and out over the next few hours is the idea. We're going to check the site, take some pictures, and come right back.' 'We've got to get on the road,' Arwood says, clearly growing impatient. 'Thanks for the information.' Arwood, this time, walks out. 'Can I ask you a question?' Louise asks, looking at Benton. 'Of course.' 'This was one attack in a thousand. Over eight thousand Iraqis have been killed this year. It's a blip on the radar. Why is the Times covering it?' 'Because it was on global TV and you remember it,' he says. 'It's not a good reason for something to be a story, but it is a common one.' 'I was told through the grapevine that the Times is trying to turn a profit for the first time in two hundred years. This doesn't seem like the way to do it.' 'It's a big old goofy world,' Benton says. 'It sure is,' Louise says. Märta lingers when Benton has gone. Louise is not smiling. 'None of that sounds right, Märta.' 'I know.' 'The American. Is he CIA?' 'CIA?' she says, sitting down. 'No. No way. He doesn't fit the profile.' 'He's smarter than he looks. He seems very at ease in a conflict zone. He's in shape. He's focussed. He's punctual. He could be Directorate of Operations or a contractor. There's a whole universe I don't even understand.' 'No,' says Märta. 'People from the Directorate of Operations, despite thinking they're all mysterious, are actually pretty easy to spot. They're political moderates, college-educated, have weak religious affiliations, are patriotic but not zealous, are able to work in formal administrative systems and follow instructions, and are not especially materialistic — though boys will be boys, with their cars and TVs. They're all square pegs in square holes, and they love their jobs and hate their bosses. Arwood doesn't fit. He has a bad discharge from the army, and the CIA has grown very competitive and selective since September 11. I don't see him being able to have a boss or a job. Also, my experience is that the CIA, despite crossing almost every conceivable moral line, still respects the boundaries with humanitarian organisations and journalists.' 'We don't know that,' Louise says. 'Maybe they just haven't been caught yet.' 'I don't think,' Märta says, 'that Arwood is working his way up a bureaucratic organisation.' 'They hire assassins, too. And he sort of does fit that profile. Your reputation would go to hell if he's any way connected to that world, and the International Refugee Support Group would lose access to thousands of non-combatants who rely on you. And since we all look the same to most of these people, a lot of other organisations, including the Red Cross, would suffer, too. So you're gambling with the whole system here to help two strange characters follow a non-story and look for a dead girl among eight thousand others. It doesn't add up. Why are you doing this?' 'I don't know, Louise. Maybe it's because their irrational belief that one girl and one story still matter is somehow infectious. It's like a first kiss. I can barely remember feeling that way.' 'It's not our job to feel that way.' 'No. But I still like it.' 14 He introduces himself to Benton and Arwood as 'Jamal'. No last name. No family. No affiliations. He shakes hands with a limp and weak touch common to the region, and which Arwood has always taken as a measure of the gesture's unimportance. Jamal leans against his early-1990s Toyota Corolla as Benton and Arwood get in. The car has heavily worn grey vinyl seats. Like every Toyota in Iraq, it is white. Jamal starts the car and puts the vehicle into third gear far too soon, based on a theory — shared by all — that it will improve petrol mileage and reduce engine wear. As they chug their way out of camp, a box of tissues slides across the black dashboard, threatening to fall, but it never does. Jamal does not glance at it even once. No one speaks. Jamal has been told the destination. When they are on Route 2 and reach their cruising speed, Arwood breaks the silence. 'I love a good road trip!' he says from the backseat as he slaps Jamal on the shoulder and hands him a CD. 'Put this in, man, will you?' 'No CD. Only a tape deck,' says Jamal, without looking at or taking the CD. They left camp in the direction of Dohuk and haven't yet run into the customary early-morning traffic. The haze blends with the pollution in the morning light, obscuring the horizon. There is a musty smell in the air. Benton is seated up front with Jamal, and Arwood is in the back, moving around without a seatbelt, like a lanky teenager on the way to the beach. 'Really? A tape deck?' Arwood says. 'It's a Sony.' 'Sony. Nice.' Arwood tosses the disk out the window. 'So much for Tattoo You.' The ride to Zahko takes only an hour. They pass vistas of dry beige grass and unfinished stone walls erected by men to mark out their property. They look like ruins of the past, but are meant to be the future. Here and there, the ground drops from sight, and wadis open in the earth, full of tall grasses and short trees. After twenty minutes on the road, they come across their first roadblock. Worryingly, Benton sees Arwood's hand disappear inside his satchel and remain there as Jamal rolls down the window. 'What's going on, Jamal?' Benton asks. Jamal says, 'No problem, no problem,' which Benton considers little more than a verbal tic in postcolonial societies. He's as clueless as he was a moment ago. There are two oil drums to the right of the road, and a makeshift pole with a white flag on the end of it. The right end has a counterweight made of scrap metal, and the guard — a beardless boy — is holding a Chinese-made AK-47 with its distinctive plastic stock. He is not pointing it at them. The boy says something in Arabic to Jamal. Jamal answers. The boy speaks again. As they talk, Arwood asks Benton, 'You pick up any Arabic along the way?' 'Words and phrases,' Benton says. 'I can link them up a bit. You?' 'I can say, "Open the door or I'll open your head."' 'I see.' 'I can also say, "The international telephone exchange is presently busy; please hold on and await your turn."' 'That's awfully specific.' 'I was in Israel in 1993. I had a thing for this Italian violinist who was studying there. She was so gorgeous it was maddening. She wore these ripped jeans I can still see. When she left for Rome, I called her all the time. They had a recording on international lines from public phones as you waited for a line to open. They repeated the same thing in Hebrew, Arabic, English, and French, and that's what it said. For some reason, they put the telephone centre inside a student bomb shelter. Do you know what the acoustics of bomb shelters are like?' 'Yes, I do.' 'All those languages trying to rise above each other to get their messages across to people who weren't there. It was obviously a metaphor for something, but I could never figure out what.' 'That was only two years after we met. What were you doing there?' 'Making contacts.' Benton turns away from Arwood when Jamal uses the word 'Habibi', at which point Arwood says, 'Now's a good time to scooch. Down. Scooch down. Now. Like this.' Arwood scooches way down like someone regretting his decision to get on a roller coaster. Benton does the same, but doesn't know why. 'Why are we doing this?' Jamal starts to pull the car away from the checkpoint. 'The guy outside wanted money. Jamal said he'd give him his love instead, and then pulled off. So... we're either about to be shot at or we're not. It's a coin toss, really. So... scooch.' 'There's nothing behind us but sheet metal. Shouldn't we bend over?' 'I'd rather get shot in the head and have it pass through my arse than get shot in the arse and have it pass through my head. Wouldn't you?' 'I've never thought about it.' 'Could be the last decision you ever make.' 'Jamal,' Benton says, 'are we going to be shot at?' 'No problem, no problem.' 'See?' Arwood says. 'Jamal!' Benton says again. 'It's OK. I know his family. His name is Muhammad. He studies engineering. He's trying to make some money. He didn't realise it was me. Roadblocks are popular because of the refugees. The Syrians come with their money, so we take it away. He shouldn't be doing this, but he wants away.' 'Away. Sure. Who doesn't.' 'No, no. Not "away". A Wii. Nintendo. Wii II, actually. Very expensive in Iraq. Have to find someone coming through Dubai. Make special arrangement. I think it's a mistake, though. More games on the old one, and the new one isn't back-compatible.' 'It's true,' Arwood says, sitting up again. 'I would totally get the older one if I lived here.' 'Very hard to find a job here. Very hard. Nothing to do. So people shake up the refugees.' 'Shake down,' Benton says. 'They shake down the refugees.' 'OK.' 'That's not a nice thing to do,' Benton says. Jamal shrugs. 'We run to them, they do it to us, they run back to us, and we do it to them. Everyone knows. They know how much is fair to charge. You overcharge, you fight. You charge fair amount, everyone is OK. Everyone knows everything here.' 'So we're not going to get shot?' Benton asks. 'No problem.' Jamal is driving at sixty kilometres an hour. The road is well paved. Every time Jamal comes up on a car going slower, he honks and flashes his lights. None of the other drivers are bothered by this. 'You know the Middle East?' Jamal asks. Benton notices that this is the first time Jamal has asked a question that isn't directly about the route itself. 'Who, me?' Arwood says, looking out the window, and taking in the cool and dusty morning air. 'Yes.' Arwood laughs as he scans the Iraqiness of the passing countryside. 'Dude, I've been to more places than Johnny Cash, and I've seen more weird stuff than Han Solo. Especially in the Middle East. You know Johnny Cash?' 'He is a soldier, like you?' 'What makes you think I'm a soldier?' Jamal takes his hands off the steering wheel, and makes circles around his own face with his index finger. 'Your eyes.' Arwood ignores this. 'He was a country-music singer. Played guitar. Dead now.' 'Drugs?' 'No, man. He got old.' Jamal doesn't say anything. 'What about you, Jamal?' Benton asks. 'How did you luck into this job with us?' 'Märta told me you wanted a driver. Märta is a very important person. She is very respected here. Speaks Arabic. She said you needed a driver. Said I could trust you.' 'Who, me?' Arwood says. 'No. Not you,' Jamal says, motioning to Benton. 'Him.' The land changes. What was brown becomes green. The mountains now exert their presence. The rising sun has infused the air with the full weight of day. The road starts to climb, and the engine strains as Jamal puts the car into overdrive rather than downshift as he should. Arwood has grown impassive. Benton looks at his right hand dangling down as he rests his elbows on the two front seats. MORE, it says. More what? Benton looks at the hills. The line across the top of them, in the distance, is so crisp they seem to have been shaved flat by a scythe. Well-tended fields line the road. Farmers do not look up as the car passes. Horses with low backs and tyres used around their heads as harnesses pull makeshift wagons in disrepair. Every colour is faded. Every building is squat and forlorn. Something is missing, though. Something that has always been here when he has been here. Something that has always accompanied him. What is it? 'Something's different,' Benton says aloud. Arwood's fingers are tapping his bag. He looks anxious. Busy. Something in four/four time. A rock beat, perhaps. 'What?' he says. 'Something's different,' Benton says again. 'What do you mean?' Arwood asks, the wind blowing his hair, but cooling nothing. 'Different from what?' 'I've been to places like this many times. Something feels different.' 'We're alone,' Arwood says. 'There's no international presence. No UN peacekeeping operation, no US Army, it's all local now, except for the aid agencies.' 'Maybe that's it.' 'Got any tunes?' Arwood shouts to Jamal. 'What do you feed that Sony?' Jamal opens his glove compartment. There are a few Maxells and TDKs slipping around. 'You know Hossam Habib?' he asks. 'No.' 'You know Tamer Hosny?' 'No.' 'You know Yasmine Hamdan?' 'No.' 'You know Nancy Ajram?' 'No.' 'You know Mohamed Mounir?' 'No.' 'Seriously?' 'I want some Western tunes. Got any Stones?' 'I only have this,' Jamal says, taking out a gold-coloured ninety-minute tape, and handing it to Arwood. It's a TDK MA90 Metal Bias. Arwood whistles. 'Damn. I haven't seen one of these since, like, 1988 or something. Whatever's on this was loved. How'd you get it?' 'Passenger left it here. Long time ago. Been here since they made the car.' 'Don't clean out that glove box too often, do you?' Jamal shrugs. 'If there's no tomorrow, why get rid of yesterday?' 'That's deep. What's on it? The label came off.' 'Something loud. Something with birds.' 'Yardbirds?' 'No.' 'Flock of Seagulls?' 'No.' 'The Eagles?' 'No. Something about crows.' 'Sheryl Crow?' 'No.' 'Counting Crows?' 'No.' 'Put it on.' The Sony tape player starts, and for the first few seconds, before the music begins, it feels like the tape deck is actually sucking the ambient sound from air, making everything more silent. And then 'Remedy' by Black Crowes starts playing, and Arwood Hobbes goes bananas. 'Fuck, yeah! We are listening to this until this trip is over. This song is from '92. I was listening to this over and over in Montana when I got back from Desert Storm. I fuckin' love this album. Cosmic voodoo, I'm telling you.' 'There's no coincidence, Arwood. Nothing's coincided with anything else.' 'Yeah, well, that's because I haven't told you everything. There's a coincidence. And now we've got a soundtrack for it from the same year.' 'What haven't you told me?' 'Everything will be illuminated, my warm-beer-drinking friend.' 'Our beer is as cold as everyone else's. I'm tired of that line.' Benton looks at his UN-provided map, and sees that they are coming up on a roundabout designated Echo 23. He checks his watch, and then picks up the Motorola handset. 'Romeo Charlie Niner Two, to Echo Base, over.' The response is immediate. 'This is Echo Base, you are loud and readable, over.' 'Echo Base, we have reached Echo 23, over.' 'Romeo Charlie Niner Two, you are thirty minutes late on your ETA to Echo 23. Do you have anything to report? Over.' Jamal looks back at Benton and shakes his head. 'Please,' he says. 'It's no problem. I'll take care of it. He should have known my car. Muhammad doesn't stop internationals. He didn't know you were here. Don't make trouble.' Benton hesitates and then says, 'Negative, Echo Base. Only some minor traffic. Over.' 'Roger, Romeo Charlie Niner Two. Continue to Echo-22. ETA is twenty-five minutes from present location, over.' 'WILCO Echo base, over and out.' Benton places the radio on the floor, because when he leaves it on the dashboard it has a tendency to slide around, making that grinding vinyl-on-vinyl sound that he finds annoying. He glances at Arwood, who is staring at his fancy watch, which has a GPS inside it. Before, he thought Arwood was simply in a rush to get to the girl. But his continued glances suggest something more to Benton than wanting to hurry. 'Arwood, you said something about a timeline before. Did you mean that literally?' There is a road sign up ahead in English and Arabic with the name of a village off to the right that leads on to the foothills. It is no town Benton has ever heard of. 'Jamal, turn into that village up there,' Arwood says. 'On the right. Don't miss the turn.' 'I thought we were going to Zahko, and then on to the site of the attack?' 'We are. I want to pull in here for a minute first. You want a Fanta and a Kit Kat?' he asks Benton. 'I want a Fanta and a Kit Kat. A trip to Iraq isn't complete without a Fanta.' 'I'm fine for now,' Benton says. 'We have plenty of water.' 'Oh, come on. Jamal? Fanta?' 'We're very close to Zakho. It's safer there. There's a shopping mall if you need anything.' 'Pull in here first. Now, Jamal.' Jamal makes the turn, but does not look pleased. 'This is not a good town. It's a Sunni village. Close ties to the old regime. We do not have good relations with them.' 'They'll love me. There's an intersection with a café on the corner. It has plastic yellow chairs. You park and wait for me there. I won't be long.' Jamal pulls into town. Two men are squatting on the side of the road with their feet flat to the ground, in the way of Asians. Their arms rest on their knees, and their sandals are as dirty as their hands. One of them is smoking a cigarette. The men watch the car proceed down the road toward the centre of the village. 'This is not a good idea,' Jamal says. 'What are we doing here?' Benton asks Arwood. 'We're going to have a Fanta. Now stay in the car.' Arwood opens the door and hops out before the car comes to a complete stop or Benton can even reply. Arwood has taken his rucksack and whatever was inside it. 'Arwood?' Benton says through the window. But Arwood isn't listening. He is looking at his watch as he hurries away. With Arwood gone, Jamal stops the music. The car's engine is running. They are waiting. Neither of the men knows why. 15 When Benton started his work as a war reporter, he thought it would be daring, exciting, and even rebellious work. He immediately learned he was wrong. Like every other reporter in 1982 who was interested in war, he was sent off to the Falklands. The British prime minister, Margaret Thatcher, had an iron grip on the reporting, though, and the only authorised vessel for journalists was the HMS Stanley. When they were finally let off the ship, the journalists were led around by the Royal Marines like the sheep that populated the place, and were told where to film and not to film. Benton was thirty-one years old in 1982 — old enough to object, but too naïve to know where to direct the objection. He made the mistake of lecturing a lieutenant colonel about Roger Fenton and the Crimean War, explaining that, as a reporter for the Times, he couldn't possibly follow in the same footsteps. The Royal Marines had no idea what he was talking about, and they were not bothered by their ignorance. The lieutenant colonel held up a finger, pointed with it, and said, 'That's where you can shoot.' Benton refused. The Royal Marines — who knew exactly where to lodge their objections about Benton — complained to the Times. And Benton was sent off to Lebanon, which was very far away from the Falklands and the Royal Marines. It was a busy time to be in Lebanon. Benton knew that Vanessa didn't understand the mental displacement that comes with being both here and there at the same time — how 'here' and 'there' become meaningless concepts. Of course, you can be in Lebanon and Cornwall at the same time, because you can be mentally present in more than one story. The only difference between here and there, really, is that 'here' we are subject to the forces of gravity. She took him for addle-brained, and once called him a modern-day Walter Mitty. In some ways, she wasn't wrong. He was distracted. He was forgetful. Even as a father to little Charlotte, he was seldom present in her life. What Vanessa got wrong, though, was that he was not a modern version of Walter Mitty dreaming of being a war journalist; he was a war journalist dreaming of being Walter Mitty. Between 1982 and 1991, he covered Grenada, Honduras, the Iran–Iraq war, the American invasion of Panama, and then Desert Storm and the aftermath. During that time, their daughter, Charlotte, grew into a ten-year-old. He remembered looking at her when he came back after the Shaaban Intifada. He didn't see her as a child anymore. He saw her as a kind of automaton. He looked at her in the doorway of their home, and looked through her skin to her skeleton: the jaw, the teeth set inside it; the shape of her skull, and what it would look like if she died now rather than later. It occurred to him that her life was continuing, right then, due to the successful firing of the smallest of electrical impulses telling her heart to pump again... and again... and again. How long could that last? How much faith and love can you invest in the hope that a little impulse will fire again... and again... and again? We say 'God bless you' when a person sneezes, because our forebears thought that, for a moment, the heart stops and the blessings of God, called forth by someone who cares, would start it up again. God bless you. God bless you. God bless you. Could he say that between every beat of her heart? He couldn't see her as a child anymore — only as something that was, eventually, going to break. Little Charlotte stood in the doorway without the resources to make sense of the expression on her father's face, wondering if she'd done something wrong. She was young enough to think that right and wrong were in play. God bless you. He kissed her on the forehead, pretended to smile, and went upstairs for twenty years. Vanessa was harder to isolate. She wasn't a child. She wasn't a developing life force that could be moulded or conditioned. She was a grown woman with a mind that she asserted into their lives and into his own. She could interrupt his inner conversations. She knew how. What he couldn't fathom was why she bothered. Eventually, the nothing he offered them accumulated. It gained as particles to a cloud, and as a cloud to a mass that developed its own gravity. It pulled Vanessa into it. Eventually, she rebelled, and decided she wanted more. So she took it. Good for her. Bad for them. In the Toyota, Benton looks at his watch as he and Jamal wait for Arwood to return. Charlotte is probably at the university lab now. Then she'll be having dinner with her boyfriend, Guy Waters. Guy Waters. The man who will keep Charlotte safe and dry forever in a land of crystal blue so that she can grow old and die, starting now. 'It's been a long time,' Jamal says. 'Too long to buy a Fanta and Kit Kats.' 'How long's it been?' Benton says. 'Seventeen minutes.' 'That's a long time.' 'How did he know the chairs would be yellow?' 'What do you mean?' 'Your friend. He said the chairs at the café would be yellow. Most café chairs are white. Only some are yellow. How did he know they'd be yellow? Has he been here before?' 'I don't know.' 'Have you?' 'No.' 'We are here for a reason that I don't know. Do you know the reason?' 'No,' Benton says. 'How well do you know him?' 'I'm increasingly not sure.' 'Something's not right. That man — over there, in the blue shirt. He's writing down my licence plate.' 'Are we in danger?' 'Yes. Yes, we are in danger. This is how it happens. There are rules. You break the rules, you are in danger. We are breaking a rule.' 'What rule?' 'There are places you go and don't go, depending on who you are. Your family, your religion, your tribe. You cross those lines, everyone knows. They know very quickly. Nothing travels faster than a whisper in Iraq. That is why the winds all have names.' 'You're not responsible for the stupidity of your passengers.' Jamal shakes his head. 'You're not from here. You don't understand.' 'Should I go out and get him?' 'I don't know.' 'I'll go to the shop. If he's in there, I'll get him.' 'Yeah, OK. OK. But don't stay there. And don't go anywhere else. Come right back. I'll have to tell Märta. She's going to be very angry.' 'I'll take care of Märta, don't worry. She knows Arwood can be impulsive.' 'This car is all I have. I have a family. They need me to keep this job. Domiz is safe. I don't want to go to Baghdad.' 'I'm going, and then I'll come right back.' But Benton hasn't gone farther than two metres from the car before Arwood himself comes around the corner. He is clutching a white plastic bag with some bottles in it. They smack against each other violently as he makes for the car. He opens the doors to the Toyota, and gets into the front seat rather than the back one. 'Go.' 'Where the hell have you been?' Benton asks. 'Get the fuck in, and let's go.' Jamal doesn't ask anything. He starts the car in second gear, and drives too fast on the uneven road that is split and cracked from the hard rains of last season and the season before. Jamal looks in the mirror every two seconds. 'This is a big problem. Very big problem.' Arwood is breathing hard. He is tapping his foot like a junkie at a bus stop. 'Arwood,' Benton says as gently as possible, 'I would like you to tell me what just happened.' Jamal turns right onto Route 2. Arwood takes an object from his pocket. His hands are moving too quickly for Benton to see what it is. It's metal. It looks like brass. Jamal shifts into fourth gear as the road evens out. He is passing other vehicles. He is flashing his lights and honking. 'I never thought we'd see him again, Benton. I really didn't. I went home afterward, and drank Jim Beam and played video games before my dad kicked me out. I bought a motorcycle. Got as far as Montana, and then started looking for work. Never occurred to me that the sonofabitch who shot her was still alive, living this parallel life in Iraq. I was an American kid. The world wasn't all globalised back then. Everything seemed so far away. Not anymore, though. I got so sick of watching all of it. Anyway, maybe if he'd been a private or corporal it would have been harder. But a lieutenant colonel, on the ground, in Samawah on 29 March 1991? How many of those could there have been? Turns out, the answer is one. So if you know the right people, and pay a little money, all of a sudden you've got a name and an address and a timeline. He got kicked out of Baghdad when the Americans did that de-Baathification shit, and went to stay with a cousin in the north near Dohuk and south of Zakho. Which, coincidentally — like I said — is the road we needed to travel to get to the girl. So, actually, some things are coinciding. We are at the nexus of some major cosmic voodoo.' 'What have you done, Arwood?' 'Something I was supposed to do a long time ago.' 'Arwood, what have you done?' 'What have I done? What I should have done twenty years ago. What you stopped me from doing. I put a bullet in the motherfucker. Now all that's left is saving the girl. And then everything will be fine. Everything will be the way it was supposed to be.' 16 Jamal's hands clutch the black wheel at the ten o'clock and two o'clock positions. He drives with the intensity of prayer. Before reaching Zakho, he turns left off Route 2 onto a road toward Dayrabun that takes them toward the Syrian border. It is a two-lane road. On the outskirts, they run into refugees again. They have been silent in the car since Arwood's admission. It seems to Benton that Jamal's strategy is to get the day over with as soon as possible and try to forget it ever happened. Benton doesn't have a strategy yet. Arwood is the first to break the lull. 'They have to pay mules for passage across the border,' he says. 'They walk with their children for up to eight to ten hours through the dark. Once across, they get robbed. Then they continue on foot, hoping to reach one of the camps. I don't even want to imagine what's going to happen in the camps when ISIL overruns them.' They drive slowly against the flow of the river. Benton looks at the colours worn by the refugees. They looked brighter on television. He could be home now. He should be home now. He should be with Vanessa. He should invite Charlotte and Guy for dinner. Investigate her life, not this. Ask her questions about her ancient shells that once lined the coasts of forgotten continents that let you walk from Damascus to Fowey. 'Do you still have the gun?' Benton asks, after about twenty more minutes of silence. Arwood smiles. 'Guns aren't helpful out here. You need friends. I've got friends.' He looks at his Suunto GPS watch, and again at his map. He points to a dirt road leading south-west. 'There,' he says to Jamal, then pointing. 'That's the path. Go there.' 'That's ISIL.' 'We're in Kurdistan,' Arwood says. 'ISIL is in al-Anbar in the western desert. They're south of here. Not up north.' Jamal shakes his head. 'That was then. Now is now. After the Sunni tribes unified with the Anbar Awakening, ISIL went to other places. With the Syrian war they have moved back to al-Anbar, but are also in many other places. Here and there. It's a big mess. A very big mess.' Benton cannot read Arwood's mood. He seems remarkably steady. The foot tapping ended once it was clear they weren't being followed. He seems too steady for someone who has just committed premeditated and carefully orchestrated murder — unless that's something he was already comfortable with. Either way, Arwood is beyond Benton's understanding now. Arwood says to Jamal, 'Listen, kid. It's like Chinatown. You see Chinatown? We just need to "find the girl". The rest is noise. We're looking for a spot south of Dayrabun near the foothills. Whoever's there is there. Whoever's not is not. That's the fact of the desert. In fifteen minutes, we'll know.' 'Which means that whatever happens is what happens,' Benton says. Arwood turns around and looks at Benton. 'The girl's alive.' 'The girl is dead,' Benton says loudly, asserting himself. 'She's just as dead as the girl the colonel shot in '91. As dead as all the people we saw die in Samawah. Now as dead as the man you killed, however evil he might have been. We need to get back to Domiz, regroup, and then leave this country before anyone knows we were here, or else we're going to an Iraqi prison, and we're going to die there. No one will come for us — no one. Because we will not only have burned our bridges with Märta, but we'll have put all her work in jeopardy. No one is going to walk across a minefield for us, Arwood.' Arwood looks out the front window. He is unfazed by Benton's scolding. The land has levelled off again. It is bush and rock. It is the cradle of Western civilisation, and nothing grows here. Not a crop. Not an idea. 'Is this why your people are so brutal?' Arwood asks Jamal. 'Because of the land? The land isn't merciful, so you figure your people shouldn't be either?' Jamal does not turn his head, but anger swells in him — anger he was planning to bury and keep hidden until this was over, but Arwood has pushed his button. 'World War II,' Jamal says loudly. 'You kill sixty million people. You kill more people than anyone ever. With bombs and tanks and gas. Then you make Hello Kitty. Think it was always like that. You think you are so special, but you are the worst.' 'Hello Kitty is Japanese. You can't lay that shit on us.' 'My Little Pony. That's American.' 'Shut up and drive.' 'Ms Märta teaches us many things. Things they never teach us in school here.' 'What else does she say?' Benton asks. 'She says America has a big mouth and small ears.' 'That's not right,' Arwood interjects. 'We talk softly and carry a big stick. We have a big stick, not a big mouth.' 'No, no. Big mouth. Small ears.' 'It's a Swedish expression,' Benton explains. 'She's translating from the Swedish. Jamal's right.' 'You know what? Who cares? Because what makes us better than you,' Arwood says to Jamal, 'is that we can imagine a better future. All you can imagine is a better past.' 'Fuck you,' says Jamal. 'Whatever. When this is over, I'm going home to green grass and high tides forever. You're stuck here,' Arwood says. The horizon is so flat that it curves with the edge of the earth. Objects in the distance do not become closer; they grow as though the passage of time itself swells their mass. They drive for more than an hour. Jamal turns off the main road, and then off the secondary road. He follows tyre tracks in the dirt made by some vehicle with massive wheels, and therefore heavier than the Toyota. If the truck did not detonate an anti-vehicle mine, the small white car probably won't either. They pass two men walking. They hold hands in a way Western men do not. Together they watch the car drive by. No one waves or smiles. The land is shattered. The few green strands of grass that do push out and survive are too far apart to form a field or even a bed. What lives is sharp and determined, faceless and eternal. The earth is spent. Whatever it was, whatever civilisations once crossed it and blessed it with art and ideas and possibility, it will never be again. It is barren now. They drive across it in order to leave it behind. The Japanese engine and the wind fill their ears. They are out of conversation, and beyond emotion. In time, they come onto the carcass of the convoy. There are three vehicles. One is a small tanker truck, which has exploded and is on its side, its wheels facing south like a hippo with rigor mortis. The other two are cargo trucks. Both remain standing. The area is utterly motionless. 'Up there,' Benton says. 'What are those?' Arwood looks at his GPS watch again to confirm they are in the right place. 'They're Ural 375s. Russian army. Iraq uses them. Those two are 6×6s. I don't know about the tanker. Get closer,' he says to Jamal. 'I don't like it here.' 'We won't be here long,' he says, pointing ahead. 'Park by the one on the far left.' Jamal parks the Toyota parallel to the first Ural. The canvas tarp covering its back sits like ragged wool over a mammoth. It is mostly intact. There are rips, possibly from shrapnel. It is dark inside. Arwood is the first out of the car. 'Start looking,' is all he says as he walks away. Benton steps out from the car. The sun is high and the air is warm. It is good to stretch. He grinds his foot into the earth to hear the sound. The bones of the Ural don't look to have been picked over by the vultures and nomads yet — otherwise the ground around it would have been littered with jetsam. It is not a good sign that even the local thieves haven't come for the spoils. Below the trucks are the bodies. Their flesh is covered in yellow dirt. Their blood is dried and blackened. They are scattered about. 'We're here,' Arwood says. 'Find the girl.' 'There's nothing alive here, Arwood,' Benton says. 'Nothing has been alive here for days.' Benton watches Arwood and Jamal walk briskly and separately, from body to body, trying to identify the dead and see whether the girl is among them. Benton feels no need to rush the confirmation. There is a certain reward in delaying the moment a little longer, though he knows they have to go. Dusty, tired, and sunburned, Benton takes his camera from his satchel and starts clicking. Since getting on the plane at Heathrow, Benton has been able to convince himself that he was only coming for Arwood. That it was the placement of the mortar which gripped him. Now that he is here, and Jamal and Arwood are counting bodies, he has to accept that this was not the reason. It was the girl. It really was. Not to rescue her, of course — days have passed since the attack. But in coming here, he could at least acknowledge her death. He could return her body to her family, or at least bury her remains. He could offer her some dignity. In doing this, he could live on better terms with himself, which is a skill he's been losing. This might be a strange place to find it, but, as Arwood said, it's also where he lost it. Benton raises a high-resolution digital SLR camera to his eye and shoots some more. The Times will want its money's worth, which it cannot possibly get, so to play out the game he needs to get as close as possible. He sets the camera on automatic so it can make its own decisions. If he doesn't like the results, a kid in the photography department will clean it up in Photoshop. The days of the purists are over. Benton doesn't care. The camera frames are too small to capture reality anyway. But he needs to snap some photos, so he does: here's one for aesthetic value; here's one for romantic associations; here's another with a familiar colonial motif; here's a tragic one of Meals Ready to Eat that children confuse with cluster munitions; and here's a melancholy flower growing beside a corpse. 'This is bullshit,' he mumbles to himself. 'What are you doing, Benton?' Arwood shouts. 'Huh?' 'Let's hurry this up,' Arwood shouts again. 'Yeah. OK.' 'Over there,' Arwood says. 'That one. Go look at that one.' Arwood is pointing at a body about twenty metres away. It is in a foetal position, its back to them. It is far from the others. She must have been one of the walking wounded, and made it that far. Benton turns off the camera and places it back into his satchel as he walks to her body. He kneels to the ground when he reaches her. When he does, he knows. She is smaller than he remembers; smaller than she looked on television. He wants to touch her shoulder, as he would wake Charlotte on school days, but he does not. She is not his daughter. It is the four-day-old corpse of a stranger. The connection is an illusion, and whatever feelings her appearance reignited, the fact is that this girl is another person, another victim, of a war that lives on as a continuum across generations. And yet, his sadness for her is also real, and for a moment he allows himself to feel it, if only because its wellspring is humanity's only hope. You should have been taken to the mghassilchi — the body washer — he thinks. By tradition, she would have been cared for by her co-religionists, and she would have been tended to before her body was laid to rest in the earth, with the expectation that her soul would travel to God, where it belonged. Instead, Thomas Benton sits beside her, dry and dirty, and soon to leave. 'They should all be washed,' he yells, as Arwood pushes over another corpse with his foot to check its face. 'Yeah, OK,' he says. 'You do that.' 'What's happened to you?' 'What's happened to me?' Arwood yells. 'This. And more of this. And a lot more of this. Meanwhile, I'm still the only one I know doing anything about it. Are you going to leave that one and keep looking, please?' 'Arwood,' he says too softly, 'it's her.' Benton walks to the front of her body and looks into her face. She is in a foetal position — knees up, her hands against her belly. She is soaked in dried blood. She was shot in the stomach, walked this far, dropped in pain, and stayed in pain until she was dead. Gently, and carefully, Benton brushes the hair back from her face. It was cut into bangs not so long ago. She and her stylist would have discussed the length. Being a girl, she probably had strong opinions. It is unlikely she would have considered the results perfect, if she was anything like Charlotte in her own teenage years. He studies her face. It is familiar, but not as familiar as he thought it would be. The distance and the angle and the distortion of the camera must all have made her look more like the girl from 1991 than was actually the case. She looks different enough, in fact, that he is surprised he was mystified at all. Surely, death has changed her. And time. And the sun. And the neglect. It doesn't matter — whatever connection he felt with her through the television screen is gone. She is another dead girl. From his bag, he takes a small bottle of water and opens it. He first cleans the earth from his hands. Then he pours some onto his red bandana. He washes her face with the towel, brushing her eyelashes, tracing her cheeks, dabbing the tip of her nose. Her eyes are closed, but there is no peace on her face. Not even in death. If only it would rain. 'I'm so sorry for you,' Benton says to the girl. 'And I am so sorry that more people are not.' Arwood hasn't heard Benton, and has continued his search. Benton is not certain how long he's been alone before he hears Jamal's voice calling him: 'Mr Thomas?' He looks up at Jamal. The poor boy must have turned manic after the morning's events, let alone now, after seeing more than two dozen dead on the ground, abandoned here to dogs. He is smiling, almost laughing, as he calls out to Benton. Mad as a hatter. 'Jamal, calm down. We'll head back now. I'll take a few more photos, and then off we go. But if you don't collect yourself, I won't want you driving. Most deaths in the field are actually caused by traffic accidents—' 'She's alive! The girl — she's in the truck. Mr Arwood found her.' Then he says something in Arabic that might be a prayer, but could just as well be hip-hop lyrics. 'Who's alive?' 'The girl.' 'The girl is dead. She's right here, Jamal. Open your eyes.' 'That girl there,' says Jamal. 'She has a blue dress. The girl in the green dress is OK. She has been living off the rations in the humanitarian truck, just like Mr Arwood said. He is a crazy man, a very crazy man, but he was right. The one in the green dress — she is alive.' 17 Benton stands at the back of the Ural 375 and watches the young girl in the green dress dangle her feet off the back like the teenager she is. Arwood has given her an apple. She has bitten off a piece that's a little too big for her mouth, and she's trying to get an angle on the thing with contorted jaw movements in an effort to work it down to something manageable. Arwood sits next to her. He's rifling through his rucksack. He eventually finds what he's looking for, and removes a juice box — the sort with the little plastic straw glued to the side. In English, it reads, 'Juice Drink' and 'Contains juice.' Without a word, he removes the straw, places it through the little silver button on the top, and hands it to her as though to a little sister before the movie starts. She takes it without looking at him. Jamal is around the front of the truck, for some reason. Arwood looks at Benton and smiles. 'I told you so,' he says. 'You most certainly did, and I have never been more wrong. Is anyone else hiding here? Have we looked about?' 'There aren't a lot of places to look. There's food and water in here, and the canvas kept her cool enough. If we can get her back to Märta, I think she'll be fine.' 'You've had quite the day, Arwood Hobbes. We aren't finished talking about it, not by a long shot, but this goes on the balance sheet. It surely does.' 'Let's go home to the refugee camp, where we belong.' 'All right,' Benton says, taking a quick look around. 'What's her condition?' 'She's very happy to see me.' 'She trusted you? When you looked in the truck?' 'Why wouldn't she?' 'You're a piece of work, I'll hand you that. Look, do you think she might answer a question for me before we leave? I might be able to salvage my job if she does. I can't say I'd given it any thought until now, but given events—' 'What do you want to know?' Arwood calls Jamal over to translate. 'I'd just like to know what happened,' Benton says, taking a recorder from his own jacket. Her eating is voracious. While she doesn't appear starved, there was clearly no fresh food in the truck, and all she's been eating is dried rations and MREs. 'Jamal, ask her what happened here.' Jamal hops down from the truck and dusts his hands off on his jeans. When he translates, he sounds young and kind, like someone's son. The girl talks with her mouth full of apple. Jamal nods, and asks clarifying questions that Benton doesn't understand. The girl points toward a small gully back by the tracks they followed here. She points at her own clothes. Jamal frowns. He points at his own clothes, and repeats the word she used. She nods, and points at two of the dead people. Then Jamal says, 'We have to go. We have to go right now. Right this second. Very dangerous. Very, very dangerous here. Big mess. We have to go. Right now.' Arwood hops down and extends his hand to the girl. She takes it, and walks with him, hand in hand, to the car. 'What did she say?' Benton asks, jogging alongside Jamal. 'Why are we running? No one's here. No one's been here for days.' 'ISIL.' 'I thought we had this discussion.' 'No, no. You don't understand. The girl was near the back of the line. She had the best view on everything. She says it wasn't Kurds. It was men wearing black, like ISIL. She saw them carry the mortar, but didn't know what it was. After the mortar landed, she hid in the truck. She saw two men come out after all the other people ran away. She said they shot the survivors. Everyone. Everyone. And then, when they were finished, they went to the video camera the news people were using, and took something from it. It is over there,' he says, pointing to the spot where the camera once stood on its tripod. 'After they took this disk, they went to the tanker truck and put a big black flag on it. This means it is theirs. They will come for it when they want. Anyone caught near it, or taking from the truck, dies. Maybe they come in a month, in a week, in a minute. We don't want to be here. We must go right now.' 'Why hasn't she run away?' Jamal doesn't translate because he knows the answer for himself: 'Something about cousins. I don't understand. Look, she's fourteen years old!' 'The video camera they picked up, is it still there?' Benton asks. 'You said they took a disk, not the camera.' 'Who cares? Your head is more useful than a camera. Have to go.' They reach the car, and Jamal gets in and starts the engine. 'I'll be right back,' Benton says, seeing that Arwood and the girl haven't reached the car yet. 'You crazy man! Get over here.' 'I'll be right back,' Benton says over his shoulder. There, eighty metres from the Ural, sits the video camera. It's a familiar high-end consumer model with HD video. It is obviously broken, and the lens is cracked. Panting, he collects the camera, which burns the tips of his fingers with the heat of the midday sun. Gingerly, he unscrews the fastening bolt that connects it to the tripod, and drops the dead weight to the ground. Arwood has thrown open the back door, and Benton flops himself onto the hot grey vinyl and pulls the door closed. 'Go,' he says, leaning his head back for a rest, but the vinyl only scorches his neck. He is too tired to move it away. He settles into the burn. 'We're done,' Benton says. The girl sits between the two men. The camera is a grey stone that lies across his lap. Jamal is running the Toyota in third, as usual, and Benton hears the underpowered engine thump like a dated outboard. Jamal is not making a sound. Neither is the radio. There is only the breeze through the window and the breath of one extra passenger who has finally stopped eating. Benton musters the gumption to cock his head left. Arwood, on the far side of the car, is looking very pleased with himself. His eyes are closed. His sunglasses are off. He is enjoying a moment that shouldn't be happening. The girl is quiet. Benton doesn't want to stare, but he has no choice. She is the spitting image of the girl in green. They look at each other and — against all reason — he can't help but wonder if she recognises him. By the truck, he wants to say. We were crouched together, hiding from the helicopter. We ran into the Americans, and you met Arwood, who tried to save you. I had more hair. Do you remember me? 'How are we for petrol?' Benton asks Jamal instead. 'We're good.' Jamal makes contact with the main road heading east and speeds up. They are all quiet in the car. There is little traffic, as people rest during the hottest times of the day. They will open their shops again later; for now, they are home with their families. The speed cools the car. Benton finally peels his neck from the seat, and drinks an entire bottle of water. Sated, he turns to the girl and decides to be sensible. 'Do you speak English?' The girl shakes her head. 'My name is Benton,' he says to her, touching his chest. 'What is your name?' 'Adar,' she says. 'Adar.' 18 Märta stopped smoking ages ago. These days she doesn't smoke, unless she's socialising, drinking, worrying, fundraising, or needs a cigarette. She needs a cigarette now. She does not have one. And so she holds her Bic fountain pen as though it is the cigarette that she ought to have. She is sitting on an orange chair at a white table, listening to a briefing provided by a Swiss-based research organisation concerning affairs in eastern Syria that might affect operations in northern Iraq. It is early evening, and she is already tired. The researcher is young — late twenties. She has blonde hair and eyes that speak of her excitement at being part of something darker than herself, as though proximity to horror somehow might strengthen her own character. In most cases, though, it's the opposite. It unravels us. But Märta isn't about to explain this to her. The girl began her presentation, some thirty minutes ago, by quoting Thierry Lefebvre's 1927 article 'Le vilayet de Mossoul', telling everyone that 'Ninawa is no longer Iraq and not yet Kurdistan'. This remains true, Märta thinks, but, as a piece of analysis, sort of leaves you hanging. The girl then seemed to prove Märta's point — and not her own — by focussing the rest of her talk on change and the future, rather than on continuity and the past, which was the West's first error over here. The Swiss researcher holds a laser pointer, and the red dot dances over the bullet points in PowerPoint. There are twelve other people in the room, each from a different aid agency or governmental mission. Märta wants to feel more magnanimous about the young woman's efforts to explain the Kurdish versus Sunni versus Shiite dynamics in Ninawa, but she feels the girl is misunderstanding what she's otherwise accurately describing. She speaks in a cluster of words that have no organising principle: followed by 'solutions' such as: Märta's national staff once explained to her — after she insisted that their annual report be translated into Arabic for the first time — that almost none of these words have homologues in Arabic. In fact, the ideas themselves are so foreign and often irrelevant that Arabic speakers, in speaking to one another, simply insert the English term into their conversation. This happens directly in front of senior Western diplomats, who are oblivious to its significance. The analysis being once again hors sujet, she checks her watch, and realises that Benton should have radioed in by now. By before, actually. She calls Benton's phone. It rings and activates the voicemail. Why do men build the very systems they refuse to use? Why don't they follow instructions? You look them dead in the eye; you snap your fingers to ensure brain activity; you tell them what you're going to tell them, you tell them, then you tell them what you've told them, but still nothing. She calls Benton's phone again. It rings and activates the voicemail. They do this with their health, too. They think they'll be fine. They aren't. Then they crumble like a dry sandcastle. Benton's phone rings. He answers it. 'Hello?' Märta stands, waves an excuse to the rest of the room, and then ducks out into the hallway before letting Benton have it: 'Where the hell have you been? Why aren't you following instructions? It's late. The radio room can't make contact, and you haven't called in. If you're not on your way back, you better turn that car around—' 'We found her. She's alive. She's sitting next to us.' Märta places her hand against her cheek. 'The little girl? The teenager?' 'The girl in green. The one from the video. The reason Arwood made all this happen. She's in the Toyota with us. She's fine. She's a little malnourished, I think, and she seems to like and trust Arwood, which might suggest shock and trauma, but otherwise she's fine.' 'How?' 'She's been living off the rations that were in the convoy. We're coming back.' 'Have you been listening to the radio-room instructions?' In his silence, Märta finds meaning. She can visualise the look on his face. It is the look that men get after women use such phrases as 'Did you call about that appointment? Did you remember to mail that? Did you unload the dishwasher like I asked?' Every moment waiting for a man to answer such questions is a moment wasted. 'If you had been listening, like you were supposed to, you'd know you need to take the northern route through Zakho and stay there tonight at a DSS-registered and -qualifying hotel if it's after five-thirty. There's a list in the folder I gave you. Where are you?' 'Travelling south, the way we came. Too late to turn north now. Hold on. There's something happening up ahead,' Benton says. His voice sounds far away from the phone. 'Lots of traffic suddenly.' 'There are roadblocks being set up,' she explains, 'which is what you would have known if you'd been maintaining your radio contact. Apparently the police are looking for someone. I don't know the details. You want to stay away from any traffic jams, any official roadblocks, and anything that could constitute a target.' 'What do you mean, a target?' 'Benton, just tell me what you see.' She can hear Jamal shouting something, but his distance from the telephone, coupled with his Arabic accent and high voice, keep her from distinguishing a word. All she can hear is Arwood yelling, in response, 'Turn around. I don't care. Turn us around!' His instructions are the last words she hears before the explosion. 19 Dr Charlotte Benton sits at a private work desk in the Department of Earth Sciences at the University of Bristol. It is mid-afternoon and quiet. The window to the lab is open. Her room is filled with fresh air and suffused with solitude. Her fellowship at the institution has provided her with an assigned workspace, where she stores her papers, reference books, instant coffee, and fossil collection of Silurian-era brachiopods. She takes a moment to send her father her third text message of the day, in an effort to spark a conversation with him. He hasn't responded so far. To the uninitiated, Silurian-era brachiopods look like modern brachiopods, which most people would call shells — the kind you find in spaghetti vongole. To be fair, it's close to the truth; they haven't evolved much in four hundred million years, because they were so wickedly perfect even back then. But these are very old, and they are hers, and so they are special. Many of her fellow graduate students in palaeontology went on to study dinosaurs. Charlotte likes dinosaurs, too, but the trouble with dinosaurs is that everyone likes them. So there's a lot of competition for research grants and university positions. The big problem is that there aren't enough dinosaur bones around. Movies aside, you don't grab a spade and a paintbrush and uncover a T. rex in your backyard, and then rope it off and call the media. With a greater supply of dinosaur scholars than a demand for them in the market, and way more demand for the bones than a ready supply, her buddies are now looking at a professional life filled with longing, searching, hoping, and fundraising. 'You need to be sensible,' she'd told Todd Jenkins, a fellow graduate student. He was choosing his dissertation topic, and not wisely in her view. 'Dinosaurs are not a path to stability and contentment in palaeontology. In your heart, you know this.' Poor Todd. Now he's divorced, because his wife wouldn't move to Nevada to chase early Jurassic bones. But Silurian-era brachiopods? Totally different story. There are thousands and thousands of them within easy reach. All she needs to do is chip away some shale, and there they are: satisfaction by the bucketful. Also, the world was a supercontinent four hundred million years ago. It was called Pangaea. This was the late Paleaozoic era and early Mesozoic. Charlotte's brachiopods were clustered together in what are now very scenic places near wonderful beaches with great coffee, many of them on the Mediterranean and in the Levant. To be an evolutionary biologist with an interest in plate tectonics, and to have specialised in brachiopods, is to be a happy human. At this moment, aside from mild hunger pains, the only thing standing in her way to complete contentment is the fact that her father is trying to divorce her mother because she slept with someone else, and that now he's being a baby by refusing to pick up the phone and talk to her. Messages have been left and words have been spoken into an old Panasonic answering machine — though, apparently, not enough of them. She sends another text. This afternoon, while taking a break from compiling a bibliography, she has committed herself to talking sense into her father and trying to reinvigorate her parents' marriage. Her mother has been dismissive but not resistant, so attention is now on her father. Charlotte is thirty-three years old. She knows she cannot manage her parents' marriage. To some extent, she accepts this. But the circumstance itself doesn't require their separation. There is a possibility here of reconciliation, a chance to live a unified life as they have in the past, if they can both overcome their pride and their vanity, and their apathy, and their unwillingness to compromise. She doesn't see her actions as meddling or naïve; she sincerely believes that rational people can be talked into what's good for them if they can be made to see their situation clearly. And that means she's obliged to try. And there is also the fact that it's never too late to come from a broken home. So she'd rather not. Charlotte removes a brachiopod from under an old-fashioned lab microscope, where she had been using a tiny probe to clear out sand and debris to mask four hundred million years of inner morphology. She blows on it, better exposing the growth lines of the inner brachial valve. How old were you? she wonders aloud. It's not necessary to work this way, but she has recently argued in print that both students and scholars benefit from tactile experience, because — as recent cognitive work has found — it adds to memory retention, and the more ways scholars can experience the old shells, the greater their capacity to make creative associations, thereby advancing the field. Plus, touching shells is fun. And happy people are productive people. 'Just imagine,' she told her students at Bristol, 'holding in the palm of your own hand a tiny shell that has survived intact for four hundred million years. Imagine the near impossibility of two organisms — you, on the one hand, and it, on the other — coming into contact and creating inspiration after all that time. It is as unfathomably unlikely as our existence itself, and almost as wonderful. It is no wonder that Stephen Jay Gould called his book Wonderful Life. That was exactly right.' Charlotte sends her father another text message, and waits. It is ridiculous for him to avoid her. 'What do you think?' she asks the shell. 'Should we call him?' Charlotte calls the Times and asks for her father. She has the number in her mobile. The call is passed through to the editorial department. Someone named Dick answers, and she wonders, again, why anyone would call himself that. 'He is in Iraq,' Dick says. What Charlotte did not tell her students was that, of the few people in the world who know the feeling of holding a 400-million-year-old shell in the palm of their hands, even fewer know the feeling of breaking one. 'Well... shit,' she says. 'No, it's OK,' Dick says flatly. 'He'll be back in a few days. He's at the Domiz refugee camp. Near Dohuk, in the north.' 'Why?' 'You've probably seen that video of the girl in that mortar attack. He's... I guess he's investigating it, or something. I don't have the file. I'm sorry.' 'This was something urgent?' 'Who are you?' 'I'm his daughter — Dr Charlotte Benton.' 'Oh. Well, I wouldn't call it that. Word at the water cooler is that he asked for it. Personally, I don't see any open questions of actual importance to our readers. It's not like any British nationals were in the attack, or anything. But, well, there he is. Should be easy to reach. It's a UN camp, so it has excellent Internet access.' 'Thank you,' she says to Dick, and they end the call. 'Bastard fled the scene,' Charlotte says to the broken shell. 'In all your years, have you ever?' The Domiz refugee camp has its own page on the Internet, and is easy to find. One of the first things she learns is that Eddie Izzard has been there to help draw attention to the needs of children, which was rather good of him. Thankfully, he had been wearing a black UNICEF T-shirt and sporty trousers, rather than his traditional garb as an executive transvestite. Which was probably a good call. Otherwise, the camp looks utterly miserable, and for a moment she is less angry at her father. Charlotte calls the UN office there, and is connected to someone with a heavy Arabic accent. He clicks some keys and shuffles paper. He says her father is registered in with Safety and Security, under a call sign reserved for the International Refugee Support Group — the IRSG. He provides her with a local number at the camp. He cannot connect her. She'll have to call herself. Charlotte calls using an Internet telephony service. If she used her department line, her grant money would be gone after three minutes. It does not ring for long before a young man's cheerful voice answers. He sounds European. She can't place the accent. 'Hello,' he begins. 'This is Miguel, IRSG. How may I help you?' 'Yes, hello. My name is Charlotte Benton. I'm looking for my father, Thomas Benton. I was told he might be with your organisation right now.' Miguel begins to answer her. Or to speak, anyway, because the words flow from him like notes from a tightly wound music box. Charlotte does not know when or how to interrupt Miguel. The conversation turns rapidly from her father, to the NGO, to the camp, to his own motivations for joining the NGO and going there. Maybe she missed a transition, because now Miguel is saying, '... political awakening, for me, was definitely the bombing in Madrid on 11 March 2004. I was eighteen, and until then I had no real interest in politics. It was always something far away from me. Maybe a little dirty. A little cold. I am not sure. So it was both shocking and yet not a surprise to me when my own government blamed the Basque separatists. Not that ETA had not done terrible things in the past, but they did not do this. What my government showed us was that they would use the blood of our citizens to advance their own agendas, rather than seek the truth and act in our best interest. The time of Franco was not so long over. I was so angry. It motivated me into political science, and then into practitioner work, and eventually into humanitarian relief operations. You know?' Charlotte looks down at her broken shell. For a moment, it becomes a broken heart. Mi corazón roto. 'So... do you know where my father is?' she asks. He is in the area, Miguel explains, but he has left the camp. A driver of theirs named Jamal is taking him and Mr Hobbes to the location of an attack that happened a few days ago. 'Who?' she asks. 'Hobbes,' he says. 'Like the philosopher from Oxford who wrote Leviathan and introduced the idea of the social contract. But this man does not seem to be a philosopher.' 'Oh,' she says. 'You never seem to meet people with the names of philosophers, do you?' he asks. 'You never hear, for example, "Would Mr and Mrs Kierkegaard please proceed to Gate 43." I wonder why not.' 'No,' she agrees. 'You never do.' 'I've been to many places. I have never met anyone named Kant, or Machiavelli, or Spinoza, or Wittgenstein, or Aquinas. Have you?' No, she hasn't. But she has met a Marx or two. 'That is true,' says Miguel thoughtfully. Miguel explains that he does not know where her father is at this very moment, but perhaps the radio room knows. Would she like him to check? No, that's fine, she says. So long as someone knows. She does have one question, though: 'Why can't I reach him? He has a telephone.' 'Don't know.' 'Could you ask him to call me, please?' 'Yes, of course. Perhaps later,' Miguel says, rather unexpectedly, 'you could call me on video. I could put you on the iPad. I have an Iraqi SIM card for receiving calls. I could walk you around the camp. Give you a tour. There's a little button in the corner that lets me look at you while you look at the refugee camp.' 'That's a little creepy.' 'Oh, no! We do it for the donors and the fundraising. Many cannot make the trip here, so I have invented something wonderful that permits us to walk around the camp and meet people, eye to eye, and see things as they do, and I can introduce you. It is a little unusual, yes, you will see, but they see your face, and people are happy to know that someone from far away cares about them. Also, many people here know me, and when they see me with the device, they know something very interesting is happening. You should walk with me. Perhaps your father will have returned by then, and we can see him. If not, it is a stroll in the deserts of Babylon. We should do this together. Unless you have something else planned?' It occurs to Charlotte that what she is doing with her shells could ostensibly wait a little longer. Maybe a lot longer. 'That's certainly—' 'Unique and special, yes? Oh, I'm sorry, I interrupted you. Please, continue.' 'I was going to say "different from what I'd planned on doing today", but your description is also apt.' 'So it is a date, then? Good. It is now about five-thirty in the evening here in Iraq. And we are two hours past GMT. So perhaps, when your day is done in a few hours, you will join me for an evening walk — what they call in Italian a passeggiata. Do you have a word for this in Great Britain?' The term 'pub crawl' comes to mind, but Charlotte decides to keep it to herself. 'I... ah... sure.' 'Wonderful,' says Miguel, with what sounds like genuine enthusiasm. 'I look forward to talking to you again and showing you our world. Meanwhile I will follow up with Märta to see where he is, and together we will find him. He will be so happy to see you here. Perhaps the battery on his phone has run down, and he doesn't have a car charger. It happens all the time. But with the VHF handset, we'll be able to find him. And then we can bring all these worlds together, like back when the continents were one. Do you know about this? Our continental drift?' 'Yes,' she says. 'Yes, I do.' 20 Benton drops his phone out of the car window when the bomb detonates seven car-lengths ahead of them at an official roadblock with a heavy police presence. They are in the right lane, moving slowly in the direction of Mosul on Route 1. To their right is rocky desert. To their left is rocky desert with shrubbery. Sand has collected on the side of the road. Up ahead are black smoke and people shooting. 'What part of "turn around" don't you understand?' Arwood says. 'We'll get stuck in the sand. This isn't a 4×4.' 'I'll take my chances. Turn around. And downshift, would you? What it is with you fucking Arabs and fourth gear?' Benton grabs the front headrest with both hands, and slides forward in his seat as two men wearing black headscarves walk up the midline of the road. 'Jamal, try,' says Benton. 'If they're looking for foreigners, they'll kidnap or kill us when they get here. If we try to get away, it'll be the same, but we might get away.' 'OK, OK, I'm going.' 'We should let Adar out of the car,' Arwood says. 'They might not care about her.' He says this too late. Jamal has already turned the wheel to the right and has pressed the accelerator. 'Downshift! Into first,' Arwood yells. 'The wheels will spin. The wheels are bald.' 'Do you have a gun?' Benton asks Arwood as the black-scarved men start to jog toward them. 'There are a dozen arseholes out there with assault rifles. I'm not Jason Bourne. That's not the only play left.' The car skids into the sand and onto rock. The lower gear pulls them over the first hill, as Arwood said it would, but the wheels slip. There's no purchase. The angle is too severe. 'Put it in third, like on ice,' says Benton. 'Like on ice.' 'Ice? There is no ice. What ice?' Jamal yells. The men with the rifles and black headscarves come closer, looking into cars, slapping people, looking at wallets and family names. Some people are yanked from cars. They all look the same — hands up, shoulders up, helpless. There is the sound of occasional gunfire at the front of the line. Benton hears Arwood say into the phone '... no matter what you do', but his own heart is racing too fast and pounding in his chest too loudly, and it blocks his ears from anything that doesn't send signals to the most primitive part of his brain — the part that knows to run from beasts and hide in shadows. He cannot focus on what Arwood is saying. With his remaining time, Benton lifts the video camera and spins it around until he finds what he's looking for: a second SD memory card from a side slot. 'They are coming. They see us,' Jamal shouts. The car is stuck. They're spinning their wheels. The chip is hard to remove. Benton tries pulling it, and it doesn't give. He looks for a button, but doesn't find one. He needs some pliers. 'Push it,' Arwood says, seeing Benton's trouble. 'I want to pull it, not push it.' 'Pushing it does pull it. Trust me.' Benton pushes the thin edge of the chip, and when he releases the pressure, it clicks and rises a bit higher than it was. He removes it and shoves it into his shoe. Adar has assumed a foetal position, and is holding her hands against her ears as the car lurches forward, then back, then forward again as Jamal tries to rock them over some kind of scar in the earth. The men outside are ten metres away. They're interested in the Toyota now. Their car is the only one that has tried to get away. The men are pointing and yelling at them. Benton doesn't understand. They wear tan clothing. They have beards but no moustaches, and on their heads are black scarves. 'Whatever you're going to say,' Benton says to Arwood, 'you'd better say it now. Because we're in big trouble.' The shots are not loud; they are pops absorbed by the sand. The invisible bullets blow out the wheels of their car. The radiator is pierced, and scorching water sprays over their windscreen. The men yank open the doors. They shout at the passengers. Their eyes are doey-brown and have a faraway look, as though they are going through a routine that holds no surprises for them. There is nothing immediate in their eyes — nothing present or soulful or reachable. No, not nihilists, thinks Benton as he is dragged from the car and thrown to the ground. These people are filled with purpose. The only other time Benton has been dragged from a car was in Lebanon in 1982. There was no al-Qaeda in those days. In Beirut there were complex but learnable codes of conduct that made the landscape more stable and traversable. The leadership was better maintained, though the number of factions was staggering. He was released when they learned he was a journalist. Back then, no one wanted bad press. He often thought that his feelings of safety in Beirut had been irrational until, during a visit to Bangkok in the late 1980s, Benton fell into a casual conversation with an Israeli eyeglass designer named Ari who was in Thailand for scuba diving. He'd served in Lebanon, and agreed with Benton. 'When I was there, I knew why people were angry, so I could avoid the violence. When I visit my cousins in Los Angeles... who knows?' Two men pull Benton into the hardscrabble earth by the side of the road. Looking up, he can see that Jamal's hands are resting on his head, his fingers locked together. His shoulders ride high, and his head is slumped, as though this might protect his brainstem from a 7.62 millimetre bullet. Adar is pushed forward and onto her knees. One of the men is pointing to the ground. He wants them all to kneel. Arwood does not kneel and instead makes his move, but not with a gun. 'If you kill them,' he shouts, 'they won't pay for us. It's all or nothing. If you want your money, if you want to get rich and stop taking these shit jobs, you will stop pushing them. No one pays for bodies.' The mercenaries — the terrorists, the killers, the evil-doers, their captors, their executioners; there is no lexicon yet for such men — all look at each other. It is the first pause they have taken in their actions; the first indication that something unexpected or unusual is happening. 'Jamal, translate for me,' Arwood says. 'Tell them what I said.' Without lowering his hands or turning around, Jamal says something. Maybe it's a good translation. Maybe it's not a translation at all. The two men who are deciding whether to kill them are not the only gunmen here. There is a team at work. Civilians are starting to run away from their cars, and sometimes the killers let them. Sometimes they shoot one in the back. As Benton is pushed farther away from the road, he has a better angle on what's going on farther ahead. He sees smoke rising from the black shell of a burning car. Like zombies, the killers do not run in pursuit. They are unhurried in their movements and gestures. Bullets are fast enough for their purposes. To his left, on the next hill closer to the bombsite, are three men kneeling on the ground with their hands over their heads, as Jamal is doing. One turns to look at Benton. His eyes are wide with fear. His lips are open, as if to share a thought. Benton watches as the man is shot. The blood adds to the colour of the land. The executioners are unceremonial. One is filming the murders on a smartphone of some kind. The other shoots the second man in the back twice; he falls forward. The same shooter turns the rifle on the third, who is also on his knees. He, too, is shot twice. His shoulder blades clench together as the scapula tries to protect his spine from further trauma. He tries to stand. He plants one foot and rises. He manages a second step. It is a bold instinct to survive. The gunman, for a moment, lets him — for a moment. Adar sees this, too. It is too close not to see, too loud not to hear. She cries in terror and makes to stand up, but the man behind her forces her to the ground again. Her knees hit the dirt beside Jamal. Benton looks at Adar in the sand, and sees Charlotte. His heart is pounding. He does not want to see this. He does not want to see this little girl get shot again. And then, as ever, Arwood. Arwood drops his shoulders, straightens his shirt, and turns to face the terrorists with one hand up, making the universal motion for two bills being rubbed together. 'We're journalists. Beloved, expensive, handsome, and rich European journalists, whose governments like to pay ransom, just so you guys never have to be without needed funds for killing people. If you shoot us, there will be no money — only bombs landing on your head. My video camera is in the car. Go look. Jamal, tell him.' Jamal says something in Arabic. There is more shooting in the distance. Some of the remaining police cower behind cars and ineffectually shoot back. They are not soldiers, and many of them are young and new to the job. Unlike their assailants, they aren't cold-blooded murderers, either. Most are regular people who need jobs or want to help Iraq, or else they are Shiites who are proud that their tribe is finally in charge of the government backed by the Americans. As Arwood spouts more bullshit, Benton decides that his chances of dying in the next five minutes are very high. As Arwood said in the car, the only real choice left is how to face it. And since no one really knows, Benton decides it really comes down to only one issue. 'Onto your feet, young lady,' he says to her delicately, as he reaches down and puts his right hand under Adar's arm, raising her up and supporting her weight. What are these people? Benton decides they are Stooges. So inspired, he dubs the larger one Larry and his shorter companion Moe. It is Moe who presses his rifle against Benton's chest. Benton remains standing, holding Adar too tightly. He is hurting her. He doesn't know how to hold her more gently. And yet they are on their feet, and the issue is resolved. Waiting to be shot, Benton has an epiphany, and learns that the opposite of brave is not cowardly, but resigned. This is a feeling clearly not shared by Arwood Hobbes. 'That man, right there?' Arwood yells to Larry and Moe. 'That's Ferris Bueller. You know who that is? You caught a big fish — well done. It's time to start placing calls. Luckily for you, I have the number.' This, of all things, is what Jamal adopts as a good idea and chooses to translate. Benton hears him say something-in-Arabic, something-in-Arabic, something-in-Arabic, something-else-in-Arabic, Ferris Bueller, something-in-Arabic, and then baksheesh. Larry and Moe look at each other. Arwood is smiling, and holding his hands wide open in the manner of P.T. Barnum. After Arwood shot the colonel, Benton thought Arwood might be a sociopath. Now he wonders if he might be genuinely insane. Twenty-two years is a long time not to know what someone else has been doing. 'So are we good here, or what?' Arwood asks. Märta dials, dials again, and then dials again. There's nothing. Or Benton isn't answering it. There was definitely an explosion, though. She is new to the use of crowd-sourced real-time intelligence using humanitarian mapping software, but one of the interns has installed Ushahidi, and she's looking for SMS messages or tweets about any incident on the road that Benton is travelling. There is nothing yet, anyway. People might still be burning. Märta feels claustrophobic, and needs both air and a cigarette. Taking her purse, she leaves the briefing and walks quickly to her Land Cruiser. Dusk has arrived. The sun burns orange and heavy on the horizon. The sun does not fall here; it is pushed away by the night. Nothing yields power in Iraq, not even the day. The wind picks up with nightfall, as the air cools faster than the land. She drives along the uneven road between the undulating tents and past children in shabby clothing, as the men smoke and the women gather up their water jugs for the long walk. On her mobile, she calls Ahmed in the radio room. He answers, and she drills him. 'What's going on north-west of Mosul?' 'I'm sending the sitrep memo around soon. There were roadblocks and—' 'I know that part. Skip ahead. What's going on? What blew up?' 'It's unclear. There's been an attack of some kind on one of the roadblocks. The police say there was an explosion and some gunfire. Everyone except your team is either back already or has been diverted to Zakho. I have one UNICEF team inside city limits there, and I expect them to be at the hotel in a few minutes, just before curfew. I will give their names to the police, but I think they are very busy now. They will be of no help right now.' 'Yeah, OK. Thanks, Ahmed.' 'Do any of them have a smartphone?' he asks as an afterthought. 'I could do a Find My Phone. We usually leave those activated here.' 'Benton has an iPhone, but it's my personal one, and I don't think I have that setting on. I'm not very technical.' 'There's nothing else I can do.' 'Keep me abreast of developments out there. I was speaking with Thomas when we got cut off. I think it's when the blast occurred. I think they were there, and close enough to have been hit by it, or at least seriously startled. I think we have a problem. I'm going to be at Louise's office.' 'This is very bad. I have to tell UN security.' 'Yes, it is.' Shukran she says, and hangs up. By the time the call is over, she's inside the foyer at the ICRC's sub-delegation office. Farrah is gone for the night. Like most national staff, she lives in Dohuk, and they want her back before nightfall, too. The lights to the facility are all off, and the space feels hollow and abandoned, except for Louise's single bulb. She works late, and typically sleeps on the sofa. She's unmarried, and this isn't a family duty station. Märta has long suspected that Louise might be slightly OCD. It made her an excellent lawyer before she joined the movement, and she's a good case manager, but she lacks a certain social flexibility — she's a stickler for rules, which is going to be a problem, given what Märta plans to say next. Louise frowns as Märta comes in. 'Shouldn't you be at home? Basking in the warm glow of Netflix?' 'My idiots are missing.' 'The ones from this morning?' 'And the driver, yes. And now there's a girl with them.' Louise pushes back from the desk. She says nothing. 'You want to say "I told you so,"' Märta says, plopping onto the sofa across from Louise's desk. 'I'll say it for you.' 'Are you worried? Communication failures happen all the time.' 'Handset is getting nothing, and Benton's phone went dead during a bomb blast. I don't know how close they were. I can't send anyone to get them.' 'Herb and Tigger would go.' 'I'll bet they would, which is why I won't ask. I don't run a private military company.' 'I can't get involved, for obvious reasons, but I can pass on some numbers. The private military companies are a part of life now,' Louise says, removing a piece of maple sugar candy from a green cardboard box. 'Want a piece?' 'Too sweet.' 'You eat that salty licorice.' 'Salty.' 'Did you give him a backup phone?' Louise asks. 'Who?' 'The older gentleman.' 'Yes, I did.' 'Are you having an affair with him?' 'Yes.' 'How long has it been going on?' 'Two nights, twenty-two years apart.' 'I don't have a label for that,' Louise says. 'Neither do I.' 'What are you doing, Märta?' 'I'm doing what I'm always doing here. I'm trying to protect civilians while doing no harm.' 'You may have to rethink your methods.' 21 They are hostages and alive, off-road, and heading south in another white Toyota Land Cruiser. Moe had put the hood on Benton's head before pushing him into the back seat. He could hear Adar's cries, Jamal's heavy breathing, and Arwood's bullshit, too, until something struck his remaining words out and Arwood finally stopped talking. Larry must be driving, because Benton heard the diesel engine start while Moe was still beside him. Unless there are more than two of them now. Time will tell. There is no good direction to travel in, but south is worst, because south of Ninawa province is al-Anbar and the great western desert where ISIL is retrenching. There are no mapped roads that pass through it. The highway from Mosul to Baghdad is far to the east. As far as Benton knows, nothing passes directly through the desert itself, but he doesn't know much: a map is only a map, and not every road is documented on it. They drive for more than twenty minutes. They are safer inside the car. They can be shot anywhere, so it's unlikely to happen where it will make a mess. The breeze from the open window presses against Benton's hood, filling his nostrils with the fabric, and for a moment he can't breathe. His neck cramps as he turns away. It is only when he lowers his head in defeat that the fabric bunches and he can breathe again through a small gap near the neck. Benton's inner thigh starts to vibrate. His world is black, so he cannot see whether anyone else has noticed. The phone's silent vibrations are muffled between the vinyl seat and his leg. He'd forgotten it was there. His captors didn't search him after taking his primary phone and satchel away, because most men frisk others poorly. Benton lifts his hips to keep the phone from vibrating against anything other than himself. There are wind gusts and engine rumble, tyre buzz, and scree kicking up into the chassis. They harmonise a dull white noise that fills the cabin and insulates the sound. The sun is almost down. He can feel that. Desert voices belong to women. It would be nice to hear Märta's voice, if only he could answer the phone. Hello? he'd say. Thomas? Where are you? Held hostage. I should have listened to you. Would you like to come back? Yes, please. This is the conversation he wants to have. It is not her voice, though, he is hearing. It is Vanessa's. Moe is sitting in the far-back seats. He says something to Larry, the driver, that Benton doesn't understand. It must be something he doesn't mind Adar or Jamal hearing. The vehicle turns. No one else says a word. The driver slows, and later slows further. The light changes. They are behind a hill now, or in a garage, or the sun has set entirely. The temperature drops. Märta — assuming it was Märta — has stopped calling. She tried three times. Could it have been Charlotte? She's been trying to reach him. She's been wanting to tell him he's a cretin for turning on her mother after ignoring them both. She wants to explain to him — he supposes — that he has no right to disappear at a time like this, to place something distant and historical and abstract like peace in the Middle East over something proximate and tangible and immediate like herself and her mother. She will be eloquent in her juxtapositions and her line of reasoning. She will be linear and faithful to logical progression, and she will substantiate her claims on accepted norms of social behaviour among adults, which she learned about from someone other than her father. It couldn't have been Charlotte, though. This isn't his phone. It is Märta's phone. She has called it three times, and he hasn't answered. Now he has to trust that she knows what to do with silence. The Land Cruiser stops after hours on the road and off it. The route has been too complex to memorise, and the sun has set, so Benton is completely without his bearings. All he knows, for certain, is they have gone up. Way up. When the door is opened, cold air rushes in, along with the new danger. It is almost welcome. Moe yells at his hostages to get out, and slaps their heads, giving them a direction to walk. Adar has stopped her crying. There are no city sounds. There's no traffic or village life. They are someplace desolate. Unwitnessed. A third man comes out to meet them. His footfalls are crisp. He shuffles as he walks. He mumbles quietly to the other men. He sounds surprised. He is asking questions. Benton names him Curly. The longer Curly speaks, the angrier he gets at Larry and Moe. Whatever he says, he is saying in front of Jamal and Adar, who surely understand what's being said. Which either means it doesn't matter because it's incidental, or he's going to kill them all anyway, so it's also incidental. Nothing can be deduced here. Even Sherlock Holmes would be lost. Moe grabs Benton's arms and cuffs them behind his back, using a zip cuff. Benton gently pushes his wrists outward as far as possible while Curly tightens them; too tight, but they would have been tighter if Benton hadn't pressed back. Moe pushes and slaps them as they walk blindly. After twenty steps from the car, Benton's feet land on something different from the packed earth. It is smooth and manmade. The pressure on his ears increases. There is an echo. It is even colder. It smells like a musty cellar suffering from water damage. It's into this chamber that Arwood decides to speak. Again. 'I said before that there's money to be made off us. But I forgot to tell you this. If you don't make a deal for our release, you'll be the ones paying the price. My people are watching. I strongly suggest you make a low ransom demand, take your money, and get this done. Because if you don't, you're dead men walking.' At least four distinct voices laugh. So there are four Stooges, who speak English well enough to chuckle at Arwood. Which introduces Shemp as the fourth stooge. And this means that Benton is running out of Stooges faster than they are. When Benton's hood is removed, he sees nothing. His eyelids are sticky, and his vision blurry. The glaring bare bulb on the ceiling is little help. When he does manage to focus, he makes out a square room about five metres by five metres, with slits on the wall in front of him near the ceiling, like in a World War II pillbox. To his right is a door of drab-green sheet metal and rust. It is closed. To his left, there is another that seems more robust and may lead outside. There are two dirty mattresses on the floor behind him, and nothing else. When his eyes focus, he sees that Arwood's hood has been removed as well, his arms bound behind him. Jamal and Adar are there, too, standing in the corner as though they can avoid their circumstance by giving it a wide berth. He turns, and sees that the door to the outside is closed as well. They are all boxed in together. 'Everyone OK?' Benton asks. Jamal nods, and Adar is immobile and hangs her head. Her face has vanished into the darkness of her hair, which shields her. 'We're going to need a plan,' Benton says. 'Oh, I have a plan,' Arwood says. 'I wasn't bluffing. We're being watched. I've got people.' 22 It has been said that the US Army was designed by geniuses to be run by idiots. When Arwood returned to the United States in June 1991 as Operation Provide Comfort wound to a close with a whimper, he wondered what they had been geniuses at doing. He avoided a court-martial somehow, and the mandatory 'bad conduct' or dishonourable discharge that comes with it. Instead, he was given an 'other than honourable' discharge. At first, he had no idea what that meant, and didn't care. His buddies called it 'bad paper', and after that they weren't his buddies anymore. Apparently, bad paper is contagious, and it doesn't matter how you contracted it. He went home to his parents' house, because he had no apartment or job. It was a nondescript white ranch house with three small bedrooms. At first, this was exactly the atmosphere he needed. It was a staid purgatory that demanded nothing of him, gave nothing in return, and offered no judgement, because there was no one around who cared enough to be judgemental. Not until his father chewed him out. After that, Arwood decided to call Veterans Affairs and see if he could get some help from them. He wasn't suicidal or anything, but he wanted to know what they could do to help him out, because he was lower than he'd ever been, felt more alone than he knew was possible, and the furthest into the future he could imagine was reaching for the door handle that led outside. It was kind of interesting speaking with the Department of Veterans Affairs, because Arwood learned that the US government considers eligibility for psychological counselling to be a reward for not really needing it. By excluding veterans with less-than-honourable discharges, they were excluding those who had acted the worst in a war — probably for psychological reasons — and, rather than helping them out, instead set them loose on the general population, resulting in pretty predictable violence, wife-beating, alcoholism, criminality, family disintegration, long-term unemployment, welfare, emergency medical costs, unpaid medical bills, loan defaults, drug use, federal and state drug-enforcement costs, state legal fees for prosecuting criminals, prison costs, and appeal processes, not to mention all the traumatised children they beat the crap out of. But Arwood was told that he wasn't necessarily excluded. His was an in-between case — being other than honourable — that may or may not have been disqualifying, based on the standards set under Title 38 Code of Federal Regulations (C.F.R.) §3.12. Now, as it was explained to Arwood one afternoon by phone in 1991, as he wiped potato-chip crumbs from his AC/DC T-shirt, he still might retain eligibility for VA health-care benefits for service-incurred or service-aggravated disabilities, unless he was subject to one of the statutory bars to benefits set forth in Title 38 United States Code §5303(a), Authority: Section 2 of Public Law 95-126 (Oct. 8, 1977). 'Uh-huh,' he'd said. He might be eligible for pending verification status. 'You have to put in a request for an administrative decision regarding the character of service for VA health-care purposes, and that must be made to the local VA regional office or VARO. Do you know where your VARO is?' 'Um —' 'This request may be submitted using a VA Form 7131, Exchange of Beneficiary Information and Request for Administrative and Adjudicative Action. In making determinations of health-care eligibility, the same criteria will be used as are now applicable to determinations of service connection when there is no character-of-discharge bar. 'Sir? Are you there?' With his savings from the army, Arwood bought a very used red-white-and-blue Yamaha FJ 1100 motorcycle, and disappeared into America at $0.98 a gallon. He realised, in looking at his Rand McNally map, that he'd actually seen less of the country than he'd seen of Iraq, and he'd only seen four towns in Iraq. His goal was simply to put as many miles as possible between himself, his father, and anyone who might understand that phone call. Arwood Hobbes tried working regular jobs — supermarkets, photo labs, record stores. But regular jobs for regular people had in common the element of routine. Routine, he found, could be a great way to hold things together if you're already a together kind of guy, but Arwood was in pieces, and he wanted to do something that might put himself right again. Holding the line was not going to make that happen. He arrived in the Midwest, only in the sense that you can't get anywhere without passing through it, and he had to stop for money for petrol. Amid the flatness, he found hand-written signs for yard sales and flea markets, all of them selling guns. Arwood wasn't a gun nut. He didn't have any happy childhood memories of hunting with his grandpa or learning to track with his daddy. He had never heard lectures on nature and conservation, or on Teddy Roosevelt. Guns were mechanical things he'd been trained to take apart, put back together, and use. They were fun to play with at the outset, but, after basic training and jogging in the desert, what Arwood had come to appreciate about guns was that — more than anything else — they were heavy. What he did like, though, was sales. Supply and demand made sense to him. It was a simple seesaw, a singular philosophy with one fulcrum on an unalterable axis — much like talk radio. Still, though, Arwood was dissatisfied. It wasn't the money he wanted; it was a higher calling, a purpose. He was still pissed off, and he had no way to get over it. In Montana, at one well-attended and well-stocked gun show in the autumn of 1991, Arwood met a large, bearded man named Nick Harwood. Nick ran a booth selling military-surplus items — lots of wool, backpacks, bayonets, gloves, and camping gear. Arwood had been standing next to him, selling re-loads and second-rate small-game rifles at someone else's table for $8.50 an hour plus lunch, minus questions. He and Nick started talking. Like a lot of other guys who look like they could unscrew your head and pour your guts into a bucket, Nick was actually soft-spoken, pleasant, and slightly defeated. Nick lived out of an RV that pulled a trailer full of what he called 'stuff'. He'd buy stuff where there was a lot of it, and then sell the stuff where there was less of it. If he was lucky, petrol prices stayed low, and the people who had it weren't too far from the people who needed it. Lately, though, he'd gotten into a new line, mainly because he had a slipped disk, and driving the RV was literally a pain in his arse he didn't need anymore. That was what he was into now, he said: 'brokering.' 'Like with stocks and stuff?' Arwood asked. 'Same logic, but different stuff. A broker is someone who sits anywhere he wants, and instead of dragging stuff around from place to place with a bad back, he brings supply and demand together for a price, or else a cut. The nice thing is, you never need to take possession of the stuff, or actually move stuff around. You're the connection guy. You can bring anything you have access to to anyone you want to have it — if you've got access to the goods, know the right people, and have the chops to make the deal happen.' 'What's the hard part?' Arwood asked. 'The hard part?' Nick laughed. 'The hard part is matching up the supply with the demand, and gaining the trust of both sides so they think you're the man to be the bridge for them. The more mainstream the goods, the greater the competition. The more unusual or niche or dangerous, the less competition. Most people don't want to take big risks.' 'What if minefields don't bother me?' 'Anything that bothers other people and doesn't bother you is an asset in this life.' 'This is interesting,' Arwood said. 'How do I start?' 'You'll need a phone.' Arwood shook his head as though he were being told he'd need a third hand for his second penis. 'I live on the road. Where am I gonna get a phone?' 'You'll need to stick around someplace, or work the pay phones. I think you should stick around someplace. I'll tell you what,' Nick said, sizing Arwood up and having nothing better to do than take a chance, 'I've got a little place outside Bozeman. It's a cabin, but it's got electricity and a phone line. You want to give it a go, the place is yours for $150 a month.' 'What's in it for you?' '$150 a month.' 'That's a pretty strong argument.' 'You think that's the kind of life you want?' Arwood said it was. It really, really was. Arwood realised quickly that weapons were his game and that the US wasn't his market. As it happened, 1991 was a stellar year to become an arms broker. The Berlin Wall was down, the Warsaw Pact was defunct, all of eastern Europe was begging to join NATO and the EU, and the only thing of marketable value left behind in the former Soviet Union was military hardware. No one was getting paid, the military had nothing to do, and everyone needed jobs because communism wasn't so much being replaced by capitalism as by reality. That was supply taken care of. Transportation wasn't too hard to arrange, either. There were plenty of surplus Soviet air platforms lying around in the newly independent states of the former USSR, and no one had any work for them. If you offered to pay the pilots and some bribes, the planes went wherever you wanted them to. That left only demand. But these were the salad years. Everyone was buying. By the late 1990s, Arwood knew his way around the planet. Planes and a bank account in Geneva were all he needed once he cracked the nut on domestic transport problems in conflict zones, which usually involved hiring the same charter companies the humanitarian organisations used, and simply filling them on their return runs. It all came together. And yet, all through this period, what Arwood Hobbes really wanted was to close the chapter on a piece of old and unfinished business. What he needed was intelligence information, and that was finally what he'd received a few weeks before arriving in Dohuk — before the mortar attack — from a Kurd named Jindar Zafar. The Leopard Room, beneath the Hotel d'Angleterre in Geneva, is a short stroll eastward from the Mandarin on Quai du Mont-Blanc, past the spot where Lake Geneva draws to its south-western tip and the Rhône River is born under the Pont de la Machine — as though it were named for making the river rather than for pumping its water into the public fountains. Like the Thames or the Seine, the Rhône is trimmed by concrete as it runs through the city, but, like Geneva itself, the river has less drama and less majesty. It performs its functions and lives its life as quietly as possible. With its understated and dour birth between the Alps to the south and the hamlet-rich Jura Mountains to the north, one would never suspect that the freshwater river eventually bursts into the spirit-filled Catholic world of the Riviera, swells the grapes on the Côtes du Rhône, dances down to the estuaries near Marseille, and then — as quickly as it came — vanishes from Europe altogether, leaving only the taste of its sweet water to lap the wide shores of North Africa. Geneva was undeniably beautiful. The problem was the Calvinist mood. It was serene here to the point of sterility. In Arwood's view, the collective goal of Swiss life was to get from birth to death without incident. If that wasn't your own philosophy, the city would never be more than a distraction from the life you actually wanted to live. Arwood liked the Leopard Room for business, because it looked colonial and felt smarmy. It was three steps underground, and despite its being only a stone's throw from the lake, you'd never know it was there. It was dark, filled with earth tones and woods. It was as good a place as any to draw green and purple lines on maps, soiled only gently from gin and tonics and the rank egoism of a self-serving philosophy. It really was a top-quality place to sell weapons. Arwood had been drinking a bourbon on the rocks, wearing a black T-shirt and Levi's. He was leafing through a blue-cloth book by Norman Angell written in 1910 that explained how future war in Europe would be futile because it would be economically irrational. Arwood laughed so hard, he spilled his Maker's Mark. He was wiping it off his leather jacket when his associate entered and took a seat beside him to the right of the piano. Jindar Zafar wore an exquisite blue Super 140 suit from Corneliani and a yellow tie by Lanvin. His shoes were J.M. Weston. His watch was IWC. Zafar was in his early fifties, and looked to Arwood as though he knew exactly how much longer his prime would last. He joined Arwood at a table near the back, filled with books used as furniture, topped now by Norman Angell. 'So, Mr Jindar Zafar. Still lookin' like dat.' 'Mr Hobbes.' 'Want a drink?' 'I don't think I'll be here that long.' 'You could have had two already if you'd applied yourself.' 'I'm a Muslim, Mr Hobbes. We don't drink. You wouldn't understand.' 'Really,' Arwood said, tossing the soiled napkin onto the table and calling a waiter to remove it. 'I was sitting in Manama waiting for this arms dealer I know, and while there I learned about how the Saudis drive across that new fancy bridge of theirs and get thousand-dollar hotel rooms at the Meridian, where they have bottles of the finest booze in the world brought up to them by the youngest of Russian hookers. I'm talking fourteen years old. You find them in business class on Emirates — maybe you've seen them. After the Saudis and their guests are done, they drive back across the bridge and tell the West we're corrupt and morally adrift. So what else do you plan to teach me about how you mystical and wise Orientals live your lives that I can't possibly understand?' 'I choose not to drink to honour my religion.' 'Well, that's entirely different, isn't it? Meanwhile, without a beverage, you look like a gangster waiting to get shot. So settle into the chair. You're embarrassing me.' 'Do you have what I want?' Zafar asked. A young man with the physique of a distance runner sat himself down at the piano in the corner of the room. His jacket probably fitted the last guy who wore it, but there was no telling. He started playing 'Smoke Gets in Your Eyes'. No one in the room seemed pleased to hear it. Arwood had to lean in to be heard. 'Do I have what you want? The interesting part is whether you have what I want. People selling information don't always have the information. So let's start with you. Where's the fucking colonel, and when's he gonna be there?' Jindar Zafar straightened his jacket, sat back, and crossed his legs. 'Up north. In a village on the road to Zakho. He has a cousin. After Saddam was killed, he took to hiding there. It's in Kurdistan.' 'Why was he killing people in the south, if he's from the north?' 'He is Sunni. They are Shiite. He is well connected to the network from Tikrit. It is usually easier to kill people farther from home.' 'Uh-huh. I need GPS coordinates and a time window. There's a lot to coordinate.' 'Are you really this driven to kill a man because of a grudge over twenty years old? You'll take that risk, pay this cost, for something so distant?' Arwood removed a photograph from his bag and slid it across the table. It was a picture of himself in Iraq in 1991, taken during the long quiet of the air war and before he was stationed at Checkpoint Zulu. He looked young and handsome. He was in the middle of a hearty laugh beside another young man who looked the same. They were both laughing, because a third man in the middle — his face obscured from view, his black fingers in relief against the white fabric — was holding up a T-shirt that read, I HATE SAND. 'You see this?' Arwood said. 'That's Alan Vicars on the right, and John Griffiths behind the shirt. We were friends once. This is a special picture that I carry around, because it is the last time I remember laughing at something that was meant to be funny. 'The colonel killed a little girl the next day, and she died in my arms. I don't even know who else he slaughtered, but I know about her, and that's all that needs to matter. Since then, in my life—' Arwood put the picture back into his jacket pocket and stopped explaining himself. 'Without a real cause, without something urgent and visible, you risk being seen as a madman.' 'You don't know what happened down there in 1991.' 'I do know what happened,' said Jindar Zafar. 'It happened up north, too. Among my people. You know this. You went there next. Saddam did it to everyone. But if people act on old grudges every day, the world will be bathed in blood. There must be a way to move on. Forgetting, or letting go, or forgiving, is sometimes necessary.' 'Maybe next time.' 'My advice?' Zafar said. 'If there is a sign, if there is a cause that others can understand, then go. If not, take that as a sign, too. The people you are asking to help you in Dohuk and Mosel — they are your friends. You have been good to these people. They will help you. But there is no reason to ask for favours and put people at risk without some greater purpose.' Arwood was unmoved. 'Here is the information you want,' Jindar finally said, pushing a plain envelope across the table. 'It is all here. The time and place are very clear. The village has a café. There are yellow chairs. His is the fourth door on the left. There is a blue tile to the left of the door, with the Arabic number for five on it. Can you read Arabic?' 'I know the numbers.' 'If you are late—' Arwood finished off the bourbon, which by now had lost its bite and only tasted sweet. He could drink it all night. 'If the intelligence is bad, I'll find you.' 'How would you do that, Mr Hobbes?' Arwood laughed. 'You fancy dressers always miss the obvious. How would I find you? I'd wait for you at your fuckin' tailor's, that's how.' 23 'Who makes these?'Arwood asks, regarding the black hood on the floor. He's sitting on the mattress and playing with it on the end of his foot. 'What?' Benton replies. 'Who makes them?' he repeats. 'I've never seen one for sale in London, New York, Milan, or Cape Town. I've never looked in a shop window and seen one over the head of a mannequin. No Christmas sales at Bloomingdale's. No pop-up ads on the Internet.' 'I don't know, Arwood.' 'These are not repurposed items. They're useless for anything other than covering or carrying heads. How do supply and demand find each other? And for real... how much do they cost?' 'I don't know.' 'Has anyone considered that if we simply raided the factories that make these and grabbed hold of their mailing lists, we'd probably have the entire global terrorist network by the balls? Even knowing where the orders have been placed, and for how many, would wrap up the entire intelligence game. Am I the only one who has this figured out?' Adar starts to cry again. Benton looks at the fourteen-year-old child who is traumatised, isolated, and under continued stress. If she even survives this, he knows, she'll never be the same, or whatever she might have otherwise been. 'Is something wrong?' Benton asks Jamal, in the hope it is something specific. 'She knows one of them,' says Jamal, who is still standing in the corner as though he's ready to go at any time. 'One of them was in the convoy attack?' Arwood asks. 'No. One of them is from Shaddad. South of al-Hasakah. West of here and near her village. It is Sunni. She says the village has a dark history. They have been treated very badly by the Shiites. Very bad. She does not know his name, but she knows his family. She says she has heard that the father was murdered by the Shabiha. This is Assad's secret militia. His death squads. They are Alawite tribe. They are Shiite. They hate the Sunni. Adar is Sunni. So she runs away to Iraq to hide.' Arwood pulls up his knees and leans back against the wall. 'If he's all disgruntled, he should be off killing government troops with the rebels. Not blowing up civilians in traffic or murdering cops. This doesn't help us.' 'No, no,' Jamal says. 'That's not what happened. She said he came from a good family. Everyone knows their family. Mother is very nice. Boys are nice. But he became very angry. And then he met someone who explained that these people are heretics. They are infidels, and they are the reason the Muslim people are weak. She says that the boy is like all the others. No one wants to be weak anymore. They are tired of being weak. They want to return to a time when they were strong and united. They cannot stand the humiliation anymore. The West does not understand our humiliation.' 'The fourteen-year-old said all this?' 'No, I say all this.' 'You're not much of a translator,' Arwood says. 'I am a driver.' 'And you think,' Arwood says, 'that if these people felt proud and respected, they'd stop packing ice-cream trucks with explosives to kill as many children as possible? They need jobs and a hug?' 'I'm saying there are reasons.' 'There are always reasons, Jamal, but not justifications. Listen, I've been watching these douchebags for years. These guys aren't choosing between a job in auto mechanics and beheading infidels. Yeah, they're discontented, and maybe they've got a good reason, too. Fair enough. The thing is, there are a lot of hard-luck cases in the world, and a lot of places on the losing side of history. But not all those places celebrate mass murder because they're angry. See, little Johnny Hardluck might feel bad one day and say to his mummy, "Mummy, I feel so bad I'm going to cut somebody's head off." That could happen in Pittsburgh. We have psychos, too. But how Mummy responds is kind of what makes one place different from another. So if his mummy says, "That's a good idea, Johnny, you slice them up real good, and if you die, we'll be extra proud of you," then we know what kind of people we're dealing with. Around here, you kill a hundred children with an exploding ice-cream truck, and your family gets a pension and its own website. That doesn't happen in Pittsburgh. That is not a minor distinction. When we act badly, we at least feel really bad about it, and try to find ways to avoid it later. These people do exactly the opposite. That's why we're better than them. Got it?' 'They are being manipulated by the elites,' Jamal says. Arwood gently bangs the back of his head against the concrete cell. This is not the first time he's had this conversation. But usually, when he does have these conversations, he's trying to get laid. At least this time he can speak his mind. 'Jamal, you can only manipulate ideas that make sense to people already. If an imam gets on his soapbox and tells all the Sunnis to go out and kill all the New York Yankee fans, they wouldn't make much headway. Because it wouldn't make any kind of sense. Go kill the Shiites? That makes sense. Unfortunately, everything happening down the mountain, and even up here, makes sense to people, whether they like it or not. And these Stooges? In there? They aren't gonna stop. You see, it's all explained by Loggins's Law. You know Loggins and Messina? No? Doesn't matter. It's like this, Jamal: we will never get along with anyone — not now, not later, not ever — if their mamas don't dance, and their daddies don't rock and roll. Because it's mind over matter, my friend. And you cannot change people's minds about what matters.' Jamal does not translate any of this for Adar. 'You should both rest,' Benton says, taking a position on the mattress similar to Arwood's. 'You'll need your strength. And if they offer you food and water, don't be proud or stubborn. Take it. You, too,' he says, looking at Arwood. 'Yeah, yeah.' Jamal and Adar don't move. 'What's the name of his family?' Arwood asks. Jamal asks Adar, but she bows her head and says nothing. Benton leans his head back against the wall, and the paint flakes behind him, dropping little pieces down his trousers. The air is dry. It is tinged with a scent of cooking oil and a familiar spice he can't name. Benton cannot hear, but still feels, some manner of village life outside. Over some hills. Gently, as on a breeze, he closes his eyes, and he drifts over the mountain they climbed, turn upon turn upon turn. Charlotte once explained to her father how everything in life was connected. She could tell him which aspects of an organism were connected by evolution to others — either closely or distantly, but unified from common origins. It didn't really matter to her how far apart they had become over time; the shared evolutionary characteristics remained. 'We're not on a ladder of evolution with missing rungs,' she'd explain. 'It's more like a big bush.' When she came home from university and stayed with them in Fowey, she'd try to share her enthusiasm for her studies. She'd read essays aloud from Stephen J. Gould with wonderful names like 'Bully for Brontosaurus' and 'George Canning's Left Buttock and the Origin of Species' and 'A Darwinian Gentleman at Marx's Funeral.' She said the twigs on the branch were expanding and splitting and growing. Some twigs stopped, while others pressed ever outward. In the end, the bush of life is populated by what lives farthest out. 'We are not at the top of the ladder,' she explained. 'We are only the farthest from the centre, on our own fragile and particular twig.' 'Which,' said Benton, trying to get his head around it, 'means that everything still alive after all this time is also a successful twig.' 'Right. Isn't that wonderful? It means we're all connected, and always will be.' He had said 'Yes,' because she obviously thought it was, which was nice. 'We really are out here on our own,' Benton says, aloud. 'We'd better not be, because if we are, we're royally—' Then the Stooges come in. Curly is the first through the door. He speaks English, but his accent is thick and he slurs his speech. 'Where you from?' he says, looking at Benton. 'England,' he says. 'America?' 'No. England. Perhaps you've heard of it.' 'What is your name?' he says. Arwood jumps right in and answers for all of them. He is even helpful enough to spell them out. Benton hopes the man doesn't have the inclination or skills to type them into Google. 'What are you doing in Ninawa?' he asks Arwood. 'I'm here for my health. The climate is good for my allergies. He's a journalist. He's covering the film festival.' Curly ignores Arwood, and takes hold of Jamal and Adar. He pushes them through the rusty green door into the adjacent room as Shemp follows them out, walking backwards, training his rifle on Arwood and Benton, whose hands are still bound. 'Don't you fucking hurt them!' Arwood yells. Shemp is expressionless as he closes the door. The bolt slides into place from the other side, and a padlock is reinstalled. Despite his hands being tied behind him, Arwood hops up like a karate instructor and rushes to the door. He places his ear against it and listens. 'Curly and Shemp locked it,' Benton says, sitting down again, this time with his hands behind him. 'We're locked in.' 'That's what you've named them?' Arwood asks as he wanders around the room, looking closely at it. 'I don't know their real names. I have to call them something to keep them straight in my mind. It's important to remain sorted in these circumstances.' 'Yeah, that's true,' Arwood says, scanning every aspect of the room. 'Stooges, though. That's pretty good. I didn't think of that. 'So, listen,' Arwood says as he walks slowly along the wall, looking for... something. 'Did you get laid last night?' 'That's not an appropriate conversation, and it hardly seems significant, given the circumstances.' 'You mean for a hostage situation?' Benton tips his head and concedes that Arwood may have a point. 'What are you looking for?' 'Usual stuff. A nail, a sharp edge, wire cutters, machine gun, talkie-walkie. Anything useful.' 'I thought you had a plan.' 'Wire cutters won't hurt my plan.' Not finding any, though, Arwood flops down again onto the other mattress. 'Was it any good?' he asks. 'You honestly think I'm going to tell you?' 'The weird thing about my plan is how much it depends on whether or not Märta woke up feeling like she'd stick her neck out for you in a pinch. It's not much of a nail to hang this plan on, I admit, but I still need to know. So how was it?' 'You're a troglodyte.' 'We're in a cave.' Benton is unresponsive. 'Look, I don't need any of the fluid and sticky details, I simply need to know what level of risk Märta is prepared to take to get you back. So was it not nice, nice, very nice, or complex?' 'It was nice and complex,' Benton says. 'We stand a chance, then.' They both face outward into the empty room, which is as large as a two-car garage. There is nothing to look at except the burning bulb and the two machine-gun slits about six feet up the eight-foot wall. 'I'm terrified for those kids. I don't want them to die,' Benton says. 'The Three Stooges were all Jewish,' Arwood says. 'In fact, all four of the Three Stooges were Jews. That's the problem with your labelling scheme. I don't think these guys are Jewish. I suppose we could ask.' 'Probably not,' Benton says. 'I dated a Jewish girl once,' Arwood says. 'Rebecca Caplan. For three whole years.' 'What happened?' 'She came to her senses, obviously.' 'Obviously.' 'The thing about Jews—' 'Arwood, please.' 'No, seriously. The thing about Jews is that they know everyone else who's Jewish. It's a thing with them — people you wouldn't have known were Jewish. Like the Stooges. Or Lou Reed.' 'That's fascinating, Arwood,' Benton says. 'Amy Winehouse.' 'Did anyone see you kill the colonel?' 'Julianna Margulies — you know who she is? The Good Wife? I like that show. Mark Knopfler from Dire Staits. Rebecca would point out Jews like it was a version of punch buggy. Jew. Not a Jew. Like that. Everyone knows Einstein and Kafka and Barbra Streisand, but not necessarily Scarlett Johansson or Harrison Ford.' 'It could be why the security forces set up the roadblock. Because they were looking for you.' 'Jack Black. You see High Fidelity? That was a great movie. I've heard it's a book now, too.' 'And then ISIL attacked the security forces,' Benton says. 'But they did it quickly. So was it a target of opportunity, or a coincidence?' 'Captain Kirk and Mr Spock were both Jewish. Shatner and Nimoy. So was Chekhov, as a matter of fact.' 'You're not answering my questions.' Benton's shoulders are beginning to ache. He lowers his head to stretch, as on long-haul flights. 'OK, you want to talk about this? Fine. I was in the car thinking about what these knuckleheads are up to,' Arwood says, 'and all I can think is that none of this was planned. An attack was probably planned. Killing people was planned. Blowing up the cops, the whole thing. Was it because of me? Who the hell knows? All you need to do to get the emergency services to show up around here is blow something up real good. And if it was a roadblock set up for me, and the Stooges took advantage, what of it? They were obviously planning to do it at some point anyway. But not this part. Capturing us could not have been planned. We didn't even know we were gonna be there, so they sure as shit didn't. They've now got themselves some hostages they don't know what to do with. And I think Abu Shemp got pretty annoyed when the rest of the barber quartet came back with us. I think we're off-book. I think orders are not being upheld. I think this is improv, and we can affect the dynamic. That's what I think.' 'Abu Shemp?' 'Fuck 'em.' 'I was actually reaching a pretty similar conclusion,' Benton says. 'Which means the situation can be influenced.' 'It also means,' Benton says, 'that it can be scrubbed.' 'I don't know what that means.' 'It means they could kill us all, and pretend their error never happened.' 'They could let us go, too,' Arwood says. 'Letting us go has a downside. Killing us doesn't. They're killers, and killers kill people to solve their problems.' 'I see your point,' Arwood says. 'This might be a good time to call back Märta. She called you at least three times.' 'How do you know that?' 'Vibrations through the seat. If Abu Larry—' 'Abu Larry was driving. Abu Curly was in the back.' 'I don't want to play who's on first. I'm just saying that if he'd been sitting next to us, we'd all be dead.' 'I guess we're very lucky people, then.' 'The luckiest,' Arwood says. 'You'll need to get my phone.' 'Isn't it down your pants?' 'No, it's down my trousers. My pants are what I wear under my trousers. You people are making a mess of this language, you know that?' 'Let's hope there's a signal in here.' That is when they hear two gunshots from inside the next room. 24 The Mayflower Chinese restaurant in Bristol does not deliver to the university, for reasons Dr Charlotte Benton cannot explain. It's on Haymarket Walk, which is too far for a pickup, and that's why Guy has offered to bring it to her. The restaurant's takeaway menu is only available from 6.00 p.m. on weekdays and Saturdays, which is a bit later than Charlotte would prefer, and for this reason Guy is hyper-vigilant about placing the order the moment the clock strikes, so he can deliver it to her at the palaeontology lab before her blood sugar drops. Guy rides a 1959 Lambretta scooter. It's turquoise and white. It is, somehow, hipper than he is. She isn't sure how to address this. She's hoping the hipness might rub off and the problem will go away by itself, though she isn't optimistic. He shows up wearing a retro helmet, with the straps hanging unfastened by his ears. He smiles as though he's cooked the food himself. He wants her to be happy. 'Thank you so much,' she says as he takes the roast duck with pineapple and sweet-and-sour wontons from the paper bag. Charlotte is no longer a fan of Westernised Chinese food, but its reassuring sameness evokes nostalgia, and nicely counterbalances the evening's goal of locating her father, who is giving her no reassurance these days. Guy is understanding and accommodating. He smiles as he removes the chopsticks from the bag, and places the folded napkin beside her. He understands she needs to work alone, so he readies to leave. 'You don't mind terribly, do you?' she asks, and of course he shakes his head and helmet. He'll go to the movies, he explains. It starts at ten, so he'll be back late. 'What are you working on?' he asks. 'Revisions to the paper for Cladistics about methodological challenges in theorising phylogeny by inference to morphological data. It's a big topic. I feel like I have to ground the argument in empirical data that lends itself to alternative interpretive possibilities to illustrate the problematic, otherwise it's all a bit abstract.' 'Right.' 'I might add some pictures.' 'Super.' It isn't that she didn't want to have dinner with Guy. It is more that she considers her parents' problems to be a private matter, and while she loves Guy and appreciates his support, she doesn't want his opinion just at the moment, especially in the middle of the process. Better to exclude him from the drama altogether, and report in when there is something to understand. Charlotte knows her mother has cheated on her father, and yet she is on her mother's side. The injustice of this needs to be set right. And finding and talking to her father is the way to begin. The fact that he fled to Iraq at the moment he should have met with her mother to reconcile with her needs to be addressed. And preferably alone. As she watches Guy and his hipster helmet slip from the lab into the hall, she considers that maybe the reason she is not marrying him is that it would mean he'd always be around. Once she hears the old Italian scooter start up and zip away, she double-clicks on Miguel's icon and listens to the computer connect her to the camp in Iraq. Miguel is alone at Märta's desk in the prefab office. Hers is the fastest computer the NGO has, and she doesn't mind him using it. Curfew has fallen, and he's decided to spend the night on the sofa, which he's allowed to do after radio check. From a care package prepared by his mother the last time he went home, he has made himself a cold plate of food with chorizo, Serrano ham, manchego cheese, fresh pita bread from the camp, and olive oil from Greece. He arrays the food on the plate, and lets it breathe. Pity there is no Corte Inglés supermarket here, but, compared to the people outside, he knows he is lucky to have this, and would never think to complain. The computer starts to ring. There is a call. It is Dr Charlotte Benton. It is wonderful timing, though he has bad news. At least he will not have to dine alone. 'Hello? Charlotte? That is you, yes?' 'Hello, Miguel. I'm eating. I'm sorry. My schedule—' 'Oh, I was hoping for this. We can now eat together and become friends.' As Miguel slices a tomato and rubs it on a piece of pita, and applies olive oil and a thin slice of manchego, he sees that Charlotte is thin, with angular features and wide brown eyes. She looks intelligent and calm and — to him — older than her youthful face suggests. Hers is less a striking beauty than a maternal warmth — the kind of face that warms you with its approval and acceptance. Her glasses are round and too big for her face, like those of the librarians he used to lust for in his youth. 'Ms Charlotte, I have some unfortunate news. Your father is not here in the camp now. So we cannot see him. Ms Märta has not given me news yet. So I fear we must put off our walk together until tomorrow morning.' 'Ah. OK.' 'You look sad, Ms Charlotte.' 'You think so?' 'In your eyes. Is it because of your father? You should not be worried.' 'No, no. I'm not worried.' 'No, you are not. The sadness is deeper. Am I intruding? This is indiscreet. I am sorry. Is it because of your father?' 'My parents, actually.' 'Your relations with them are not good?' 'My relations are fine. But they're going through a hard time with each other. I'm concerned for them.' 'I am very sorry to hear that. Why is your father here, so far away, if there is trouble at home? Should he not be there with you and your mother to help?' 'Yes, I think he should.' 'This is why you are looking for him. You are angry at him for his absence.' 'No, I'm not. Well... yes. Actually, I am.' 'Claro. I will help you. Oh my God, what are you eating?' 'Oh, this?' she says, holding it higher in her chopsticks. 'It's a fried wonton.' 'Is it good to put that into your body?' 'Probably not. But it's comforting.' 'I think we must find your father quickly, before you do further harm to yourself.' Charlotte looks at the wonton, and decides there is no way to bite it gracefully. It will crumble onto her shirt. Or, if she treats it like sushi and takes the whole thing in, she could be chewing it for days in front of Miguel. Discreetly, she places it back, and takes a tiny piece of duck instead. 'Why are your parents having the troubles? Has your father taken a lover, and your mother has now learned of it, and the passions are raging?' 'I don't think we should be talking about this.' 'No. Of course not. These things are very private and painful. Is it true? Am I right?' Miguel asks. 'No. Actually, it is my mother who had the affair and, in my view, my father who drove her to it.' 'And to protect his ego and his honour, you think he has run off to Iraq so he might suffer by his own hand and recover his manhood?' 'Well... no. I think he ran off because of his denial and cowardice and unwillingness to face my mother.' 'You are angry at him for not staying to fight for your mother. For not staying to declare his love, and demand she come back to him because of the many years they have shared their lives together. Yes?' 'Yes, actually. That's it.' 'And yet—' Miguel adds. 'And yet what?' 'It sounds almost too selfless. Too detached. Too... how do you say? When something floats above and looks down, but does not emotionally touch?' 'Aloof.' 'That is not a pretty-enough word for such a melancholy and damaged state of being, but OK. Aloof. Have you no feelings about this yourself? How has he driven her to this?' 'Aren't you in the middle of a massive refugee crisis in a war-torn country with terrorists?' Charlotte asks. 'It's dinnertime. Everyone's eating. How did he drive her to this?' 'It was his absence. He was never there.' 'So he was never there for you, either.' Charlotte does not reply to this. She looks over at her meal, and no longer feels hungry. Miguel is right. Nothing about it can be good for her. 'What do you do for a living, Ms Charlotte?' 'It's Doctor, actually. I'm a palaeontologist. I try to understand how things are related to each other.' 'So you do professionally what has been impossible for you to do personally.' 'Look, Miguel, I hadn't quite formulated my thoughts yet. I don't even discuss this with my boyfriend.' 'Ah, you have a boyfriend. Of course, why wouldn't you? What is his name?' 'Guy.' 'Guy?' 'Yes. Guy.' 'This is a name?' 'Yes.' 'I thought it was an English word for "just anyone".' 'It also means that.' 'I see. You would rather settle for the embrace of just anyone rather than risk losing someone specific the way you have lost your father. I understand.' 'Um—' 'There is more to your father's visit here, Dr Charlotte, than perhaps you know. And perhaps, in a way, it will soothe you. Perhaps he was running from the most important aspects of his life, but he has real business here. Ms Märta has told me he is here for the girl in green. Do you know about her?' 'The girl in green?' 'You have seen her, I am sure. The mortar attack in northern Iraq. It is on the news. It was on many stations. My mother, in Barcelona, she says it has played many times. The mortar came down and killed many people, and they show the video on the news. Your father thinks the girl who stood so alone in her green dress may still be alive. He has come, with Mr Arwood, to find her. They left for Ninawa this morning. In fact, I scheduled this call because I thought they would be back before curfew, but they are not. Let us meet again in a few hours. We will know more then. And there are some people I would like you to meet. Do you like children?' 'Sure, Miguel. But before all that, why would my father try to rescue a girl in Iraq? He's a journalist.' 'Perhaps,' Miguel says, 'because it is his way of rescuing you.' 'Honestly, Miguel, I really am not sure whether you have a remarkable insight into the human experience, or whether your certainty in yourself is what makes your arguments so compelling,' she says. 'My mother once said to me, "Miguel, the world is a noisy place. There is little point in mumbling."' 'Of course.' 'Later, after we eat, I will affix the iPad to the walking stick, and then off we will go together in search of your father, who must now return to your mother so you will not be sad anymore and have to eat the fried wontons and marry a man who is like every other man. OK?' At home, Märta leans over the countertop separating the dining area from the kitchen. Her legs are crossed at the ankles, and she is sipping a beer. Tigger arrived moments ago, and is sitting on the sofa with his legs crossed and an outstretched arm. Herb is on a bright-red chair across from the sofa that both he and Tigger refer to as 'the thinking chair,' a term taken from a children's television show they both watched with their kids, called Blue's Clues. 'Let's call the meeting to order,' Märta says. 'I have a question,' Tigger says, raising his hand. 'Already?' 'What the hell were you doing, letting them go out there in one of our vehicles—' '—with Jamal driving?' Herb interjects. 'I was getting to that. Yes, what Herb said.' 'I made a mistake,' Märta concedes. Tigger and Herb glance at each other. Herb points to Tigger, who nods, agreeing to speak for them both. 'Our question is built on the assumption that you made a mistake. We sincerely want to know what you were thinking.' 'I agreed to let Arwood use the office for old times' sake, and because I didn't see any harm in it at first. And I think he played me. He told me Benton was coming, and I wanted to see him. And then it escalated.' 'How?' Tigger says. 'By seeing Thomas.' 'Did you sleep with Thomas Benton last night?' Tigger asks. 'Yes,' Märta says. 'How was it?' 'Nice.' 'So you gave him a car and Jamal, and sent him to a dangerous area because of schoolgirl feelings?' 'I agreed before I slept with him.' 'Which does not disprove my theory, but... why?' Herb says, leaning forward in the thinking chair. 'I felt this sense of possibility I haven't felt in a long time. They wanted to fix something that everyone else had written off for lost. It was... well, it was like the minefield and that boy, remember?' 'Of course we remember,' Tigger says. 'But there is a difference between watching someone walk into a minefield and sending someone—' '—specifically, Jamal,' Herb says. '—in one of our cars. You should have run this by us.' 'You're right, and I was wrong. Is there anything else?' 'No,' says Tigger. 'Herbert and I have been looking into matters for the past two hours. Let's all get started.' 'I guess the first question is, do we know they survived the explosion?' Märta says. 'We don't,' Herb says, 'but we think probably they did. Ahmed, in the radio room, talked to the chief of police in Mosel. The Iraqi police are out in force over there now. They killed four of the attackers, captured one, and if there was anyone else, they're gone. One of the cops found our car a little ways off the road. There were bullet holes in the wheels, but no blood and no bodies. So they are out there. Somewhere.' Herb is in his late forties, and has maintained a soldier's physique. Unlike Tigger, who is long and sinewy, Herb is muscular, big, and athletic. He speaks with a soft and deep voice that Märta has grown to find comforting. 'My read is that they tried to escape in the car, got shot at, got out, and that's when they disappeared,' Herb says. 'There are only two ways to disappear in the desert,' Tigger says, reaching over to the coffee table for a Diet Coke. 'Voluntarily and involuntarily.' Märta drinks her beer with her left hand tucked under her right armpit. She has let her hair down. It falls to her shoulders. She is barefoot. 'We should build out the scenarios,' she says. 'If they got away on their own, they would have called by now,' Herb says. 'Yeah. We should be thinking they're captured and being held.' 'Agreed,' Tigger says. 'Anyone hungry?' 'I don't eat after seven,' Herb says. 'And how can you be thinking of food?' 'I'm always thinking of food. It's the irony of thin people.' Märta reaches behind the counter, extracts a bag of mixed cocktail nuts, and pours them into a small ceramic bowl. She reaches forward and hands them to Tigger, who immediately targets the cashews. 'What groups?' Märta asks. 'They could be criminals looking for money. They could be jihadists,' Tigger says. 'They could be jihadists looking for money. We should hope they are financially motivated. Otherwise, I don't know.' 'Something that's worked for us before in Pakistan with jihadists,' Märta says, 'was contacting some of the Muslim world's more respected scholars of jihad, and having them talk to the kidnappers, to let them know that the notion of Islamic struggle, even at the most extreme, does not apply to the humanitarian organisations. It hasn't always worked, but it has worked. The International Committee of the Red Cross and the local Red Crescent can be helpful here, too. The ICRC has a mandate to serve as a neutral intermediary, and they can extend their good offices and serve as mediators when the time comes. Maybe Louise can back us up. But this isn't the Taliban. Say they were captured by al-Nusra, al-Qaeda, or ISIL. What does that look like?' she asks. Herb looks at the bowl of snacks, and sits further back in his red chair. 'We're not sure whether Nusra and ISIL have broken with al-Qaeda yet. There's so much internecine fighting that looking for a pattern is to overlook the actual pattern that it's all a mess. They're posting their murders and massacres on YouTube. Everyone's jockeying for position.' Märta sits on a stool by the counter, her blue skirt cutting across her shin. She is still holding the beer, but is no longer drinking it. 'Why post that stuff?' she says. 'Why put on display that you're murderers? Aren't they repelling people with their violence?' 'On the contrary,' Tigger says. 'It shows strength and conviction. Maybe not to us, but to many others. Sometimes it is hard to accept that people are fundamentally different, but the simple proof is that foreigners are confusing. The reason it's working, since you asked me, is that in the West we take military action, and then wrap a communications strategy around it to win hearts and minds. The jihadists have a communications strategy, and they wrap a military strategy around it to show they are serious about what they say. You see the difference? Our ways of warfare are not asymmetrical. They are opposite. We are entering a new era of warfare with the non-Western world, with non-Western rules and non-Western methods. We are unprepared.' 'We don't need Big Theory, Tigger,' Herb says. 'I disagree. It would have been good to have a better theory before invading Iraq in the first place. Of course, this is all a pantomime, because we all knew this in 1991, which is why we didn't take Baghdad in the first place.' 'Louise thinks Arwood might be CIA,' Märta interjects. 'Do you?' Tigger asks. 'No.' 'Why not?' Herb asks. 'Yeah. Why not?' Tigger asks. 'I talked to Louise about this already. The CIA is a formal administrative system. I don't think he fits.' 'Whether he's CIA or not, I don't trust him. He's got bad paper,' Herb says. 'What does that mean?' Märta asks. 'It means he's got a dishonourable discharge, or something close enough to it. He was kicked out of the army after Desert Storm. It means that for one reason or another his country thinks he's a disgrace, and I'm not about to question that judgement until I've got a good reason to. I know the army. I gave my career to the army. It gets the benefit of the doubt over Arwood Hobbes.' 'Benton trusts him, and I trust Benton,' Märta says. 'I don't see why,' Herb says. 'I also don't understand their relationship. None of us have been in touch with either one of them, and I haven't been keeping tabs on 'em. You said this morning that Benton hasn't been in touch with Hobbes, so I don't think even he really knows what he's getting into. All we really know for a fact is that Benton's been working a steady job at the newspaper since Margaret Thatcher. Otherwise, I think you're too close to this with your... you know—' 'Vagina?' 'I was going to say "lover," but OK. Vaginas don't scare me. I realise sex doesn't mean a thing to you sophisticated French and Scandinavian types, but my experience tells me differently. Be that as it may, I want to be on record here about one important thing: I'm here because Jamal is missing. The boy's one of ours, and that's what I'm here to help with. The others put themselves in harm's way for whatever reason, and those reasons sound dubious. So that's on them. Meanwhile, Jamal didn't ask for this, and he has a family we know, and he shouldn't have been out there. And, quite frankly, I'm a little sick and tired of national staff being treated like they're disposable or second-class citizens in their own countries that we invaded. And when I say second-class, you know what I'm really saying.' 'That's not fair, Herb.' 'It is fair, Märta. We pay them less. They have less job security. They aren't covered by the same insurance. They usually take bigger risks, they are far more exposed than we are — because everyone knows who they are and what villages they come from — and when we all go home because the situation's become too hot, we leave the natives behind to fend for themselves. After all, this isn't colonisation, it's cooperation! Meanwhile, do you have any idea how many translators and staff hired by the US military we left behind after we pulled out of Iraq and Afghanistan? Tens of thousands. We dragged our feet, didn't process their visas, didn't care for their families. We use people up, and leave them for dead, which many of them become. It is dishonourable and short-sighted, and I don't like it.' 'We're not the US military, Herb. And that's not what's happening here,' Märta says. 'NGOs do more or less the same thing. Unfinished projects, unkept promises, unbalanced pay scales, disrespect for local knowledge and experience — it's close enough to the same thing. And, no, we're not doing that with Jamal, because I'm not going to let it happen. And if anything comes down to the wire, he's my priority.' 'I'll notify the British and American embassies of Benton's and Hobbes's status,' Tigger says. 'And I suggest I call Clip Maxwell at Firefly Consulting. We need to set up a crisis-management group. And then, my friends, we need to sleep. Tomorrow will be a very full day.' 25 Arwood jolts to his feet when he hears the gunshots. Benton rolls onto his knees and presses his head to the mattress, inhaling its body odour and mould, before taking hold of a knee and pushing himself upward to stand. Arwood is already at the door by the time Benton is ready. He has pressed his ear against it. Arwood's face is placid in the harsh light of the solitary bulb. 'What do you hear?' Benton says. 'Shh.' Benton watches Arwood reposition his ear to the left, lower on the door. His face is unchanged. 'If they killed those kids—' Benton mumbles. Arwood moves quickly from the door to Benton, turns himself around, and, with his hands still bound in plastic cuffs, grabs hold of Benton's belt, unbuckles it, unsnaps and unzips his trousers, and thrusts his hands down them to collect the phone. 'They kill children all the time,' Arwood says, ripping the phone from the Velcro. 'Oh, shit. It's an iPhone, isn't it?' 'I don't know. I didn't look. I guess. Why?' 'No buttons — that's what's wrong with it. Ever tried working one of these with your hands tied behind your back?' Arwood slips the phone into his back pocket for now, needing his hands to do up Benton. 'User-centred design, my arse.' Arwood reassembles Benton's trousers. As he does, Benton notices that Arwood has altered his first tattoo from when he enlisted. It now reads Death Before Dishonorabilishness. Finished, Arwood takes the phone out of his pocket and presses the Home button. He turns so Benton can see it. 'Is it on? Is it lighting up?' 'No.' Arwood rotates it in his hands and finds the power button. He depresses it and places his thumb over the speaker, muffling the chime. 'Arwood, what do you do for a living?' 'I solve problems. Is it on?' Benton looks down. 'Whose problems? And, yes, it is.' 'Is it charged? Icon's in the upper right.' 'Yes, it is.' 'We've got a signal?' 'No. Whose problems, and how do you solve them?' 'You know that saying, "Give a man a fish, feed him for a day; teach him to fish, feed him for life"? That's all very sweet until people come to take his fish away and make him a slave. Meanwhile, you give a man a gun, he can get as many fish as he wants. And keep them. We're on the GSM phone network in Iraq. There should be a signal.' 'It could be the concrete walls,' Benton says. 'I'm still wondering why those slats are positioned so high.' 'We're in a bunker or military fortification of some kind. Something old. We need to find a signal in here. I'm going to walk and you're going to follow me, checking the bars. Here we go.' Arwood stoops to raise the phone higher, and Benton stoops to see it. Together they shuffle across the room like two old men with their hands behind their backs as they scan for a signal. 'No one would give me a job when I got back,' Arwood says as they walk. 'With my discharge papers, I couldn't get a job at Denny's or Dairy Queen. Bad paper leaves you worse off than if you were a felon. People don't forgive a bad discharge. They feel like you personally let them down, no matter where you went or what you actually did, or the fact that you served and they didn't, and that their pain doesn't mean shit. It's like being convicted of treason and then being freed rather than facing the firing squad. There are no second chances, no do-overs, and no cleaning that record, no halfway houses, no rehab. Some people deserve that. Some don't. Mainly, I worked flea markets and gun shows across the Midwest.' 'But you now have professional-level knowledge of geography and international affairs. You hadn't heard of the BBC when I met you in '91.' 'I found business better in the Middle East than in the Midwest. Travel really is broadening. Besides, I was never stupid. I just didn't know anything.' Arwood stops by the long wall across from the mattresses and looks up at the slits in the bunker walls. 'Do you really think it's possible,' he says, 'to spill every kind of blood, experience every kind of human emotion, and weep every kind of tear on a piece of land for over six thousand years, and actually leave nothing behind in the soil? A psychic scar of some kind? I don't believe that. I mean, forget the Bible. This place has been populated since the Sumerians. That's six thousand years. You ask me, this land has to be haunted. It has to be. It's a ghost factory.' 'Arwood,' Benton says, standing himself upright. 'If you came here to murder that man, why did you bring me with you? Or Jamal? Why couldn't you have done this nasty business yourself, and left us out of it?' Arwood turns and faces Benton. He looks surprisingly young and sincere. 'I had the intel on the colonel. But the guy I bought it from said something that made me think. So I sat on it. And then the mortar attack happened, and it all came together. That girl is the reason I'm here. But the parallels are impossible to ignore. Even you have to see them. Last time, the colonel lived, and she died. This time, he died, and she's going to live. Last time, we didn't take Baghdad. This time, we did. Last time, we were battling the government; this time, it's the insurgents. It's all inside out, but exactly the same. Don't you see?' 'So you came here to murder him.' 'I came here to confront him. Then he pulled out that same Makarov and pointed it at me, so I blew him away. And you know what? The Klingons are wrong. It's actually much more satisfying to get revenge while you're in the mood for it. That's what happened, and I don't regret it. It is scary and freakish to kill another person, but I swear to God there are times when the pros outweigh the cons. So why are you here? No one put a gun against your thick head.' 'I felt I owed you. You came to get me in Samawah.' Arwood shakes his head. 'You don't owe me anything. I'm the one who convinced you to go look around. I put you there.' 'No, you were right. I needed to do my job. You reminded me of that.' 'I was twenty-two years old. What the hell did I know?' 'You can be right without understanding why. Kids are like that all the time.' 'I don't believe that's why you're here,' Arwood says. 'You must have been looking for any excuse to get out of England, and I gave you one. You said in the car that things are rocky with your wife. So is that it? You're running as far away from yourself as possible? If that's the case, then I've got bad news for you. Buckaroo Banzai was right: no matter where you go, there you are. And so here we are. Again. Back at Checkpoint Zulu.' 'I think,' Benton says, 'that the reason my wife cheated on me is that she was unable to reach me any other way. And I think this was the case because I lost something significant after what happened to us here in '91. Though it may seem cowardly, the reason I'm here is to try to recover what I lost so that I might have a different relationship with my wife and daughter when I get back, if I ever do.' Arwood is quiet for a moment before saying, 'That actually makes sense.' 'Well, thank you.' 'Did you tell your wife this?' 'No.' 'Dude—' 'It's a process,' Benton says. Arwood, with nothing else to say on the matter, spins around and raises his arms to his waist. 'Do you see my watch?' 'Yes,' he says. 'Read our coordinates to me. My hunch is that we're near Kursi in the Sinjar Mountains. You felt how we drove south-west, how it was flat, and then we started bouncing along going up again? How the road got all twisty, like we were in the Alps? My ears even popped. Only reason for roads to twist like that is mountains. There aren't many mountains down here — not on the way to al-Anbar. I think we're west of Tal Afar. This is not a high-rent district.' 'Just... stop moving around. The numbers are very small.' 'In your own time. No reason to rush.' 'OK. It's N36° 23' 15.88", E41°47'32.87" 'Repeat them.' Benton does. 'Remember them.' 'I can't possibly,' Benton says. 'If they take the watch, or we're split up, or I'm killed—' 'It's too many numbers. I'm not a computer. I'm thirsty, I'm tired, I'm in pain, I'm sixty-three years old—' 'It's only eight numbers, not sixteen. You think of a building you know, you place each number in a room.' 'Jamal and Adar might be dead. I'm not in the mood to play memory palace.' 'Fine. Remember the longitude. They'll see it's near the road, and can start looking there. That's the second set of numbers. Forty-one is when Pearl Harbor was bombed. Picture it. Forty-seven was the year the National Security Act was signed by Truman, creating the CIA and the air force. Picture it. Thirty-two... um. That's tougher. Oh, '32 is when Babe Ruth played his last season. Made that called shot against Root. Shut Chicago up for probably the first and last time. We're talking baseball here, not cricket.' 'That didn't happen. I saw a documentary. He was pointing to the dugout. They were heckling him, and he was responding that he only had two strikes. It's myth. Folklore.' 'I saw that video with my own eyes.' 'Yes, Arwood, but you don't know what it meant. Like the shots behind the wall.' 'Stay focussed. Nineteen eighty-seven. I think Ferris Bueller's Day Off was '86, unfortunately. Did you see The Princess Bride? That was '87.' 'No.' 'Mandy Patinkin? Robin Wright? Wallace Shawn? André the Giant?' 'No.' 'You have no memory of Mandy Patinkin as Inigo Montoya saying, "My name is Inigo Montoya, you killed my father, prepare to die"?' 'No.' 'Your life is empty. What about Robocop? That was '87, too.' 'No.' 'Dirty Dancing?' Benton is silent. 'Come on.' 'I might have seen it.' 'Cute little Jewish girl in the Catskill Mountains seduced by the gentile help, and their beatnik ways at the summer resort?' 'I hadn't really—' 'So: Pearl Harbor, air force, Babe Ruth, Dirty Dancing. All-American numbers. See? More coincidence. Makes it easier to remember.' 'You used your American brain to make sense of the numbers, Arwood. That's why they are now American numbers. I'm wondering if you're really OK.' 'We need to send those numbers.' Benton has had enough. There is no way of sending those numbers. No way to type them into the phone. No way to catch a signal and ride it to safety on a moonbeam. He steps backward to the wall, leans back against it, and eases himself to the floor. Once down, he rolls onto his side and massages his left shoulder by kneading it into the mattress, which is thin enough to be a hard surface. Hands would be better — a woman's hands. Vanessa's and Märta's hands are different. Vanessa's are longer, softer, gentler, but she lacks strength in them. He confuses this sometimes with a mental state, as though her fingers lack will. Märta is all purpose. She's structured and orderly in her touch. She works it like a job. It's less sensual, less tender, but more productive. He needs both of them right now. 'Don't quit,' Arwood says. 'I need a second.' 'Does this thing have voice recognition?' Arwood says, wiggling the phone behind his back for emphasis. 'I have no idea, Arwood.' Arwood presses the Home button to wake it up, then presses it again and holds it down. This activates Siri, Apple's chipper, artificially intelligent software. 'Call Märta,' Arwood says loudly, despite the phone being behind his back. 'Kan du upprepa det?' 'What the hell was that?' Arwood says. 'Swedish. It's her phone.' 'I don't speak Swedish.' 'The telephone does,' Benton says. Unable to take the smell anymore, he rolls off the mattress and rubs his shoulder against the floor instead. Arwood mumbles something pejorative about the Stockholm syndrome before concluding, 'You're gonna have to use your nose.' 'What?' 'Your nose. Get on your knees. You can see the Contacts icon, or address book, or whatever it is. Tap it with the end of your nose, then scroll—' 'Scroll?' 'Like a seal pushing a ball. You scroll to Märta's name, and try calling it with your nose.' 'I don't think that—' 'I'm not fucking around, Benton. This is what needs to be done, unless you can type with your dick.' Benton rises to his knees, using the same technique as before, though it requires even more effort now. 'We don't have a signal, and I'm too tired.' 'Someone's coming,' says Arwood, who drops to the mattress and slips the phone under it as quickly as a teenage boy hides a magazine. Benton and Arwood hear a padlock being removed from the other side of the inner door and a deadbolt sliding into the open position. The light overhead is turned off, and the room becomes black. The door is opened slightly. A hand tosses an object into the room, and closes the door again quickly. The locks are reapplied. Above them is the pink of dusk spreading across the ceiling. Below, not far from the door, is a piece of cloth. It appears black — a product coughed up from the void. 'Is that it, or is there something under it?' Benton asks. 'A grenade?' 'I didn't hear anything fall. But if I'm wrong, we'll know in a second.' The fabric has collapsed onto itself and rests, its message as uncertain as its origin. To Benton, it looks organic and as natural in its free-flowing shape as an octopus. It seems to attract the light into its black folds. Benton is the first to say what they both see: 'It's wet. Toward the right.' 'I see it.' 'It's blood.' 'We can't be sure.' 'Of course we can be sure. We can see it, feel it, taste it, smell it. You want to confirm it's blood and not tea, then go ahead.' 'Fine, Benton. It's blood.' 'It's the green dress.' 'What do you mean?' 'It's the girl's green dress, Arwood. The girl's dress is bloody. It's Adar's bloody dress.' Arwood walks over and moves it around gently with his foot. The colour is impossible to make out in this light, but the arms of the dress, and the way the sleeves flare, and the straight edge of the colour under the neck — they are the same. Arwood kneels down and smells it. He puts his tongue in it. 'For the love of God, Arwood.' He spits it out. 'It's blood.' 'So they shot her. And then they proved it.' 'It doesn't mean shit.' 'Are you mad? You're looking at the evidence right in front of you.' 'I'm looking at her bloodied dress. I accept it's hers. And I accept it's blood. But whose blood? Who knows? Do you know? I'm staring right at it, and I don't know. And neither do you. You just explained the same thing to me with baseball!' 'This is different.' 'It's exactly the same,' Arwood says. 'We're looking at something, and we don't know what it means. Welcome to Iraq!' 'You're denying the obvious, because you can't accept it. The kids are dead, and we're next. Maybe you were right. There is some mystical force at work, but not to save her. We're destined to kill this girl over and over and over again.' 'No,' Arwood says. 'The dress tells us nothing. The answer is in the hand that put it there. Why? Think about it. I'll tell you why. To terrorise us. Know how I know that? Because they're fucking terrorists, Benton. Dogs bark, cats meow. These guys do this. If they wanted us to know — really know — she was dead, they'd have walked her into this room, shot her in the head right in front of us, and dragged her body out. They didn't. At the moment, all we know is that she's other-than-here, there's a bloody dress, and these fuckwits are into mind games. That last one — being into mind games — that's a new and important piece of survival information. All of which tipped their hand, not ours. And what about Jamal? Where's his... what was he wearing, anyway?' 'I don't remember. Clothing.' 'Well... you see my point.' 'This is just swell,' Benton says. 'Let's get out of these cuffs.' 'How do we do that?' Benton says. 'Well... I'm thinking we bite through them. I'm thinking you bite through mine.' 'Why? Why not you bite through mine?' 'Because you're too technologically illiterate to work the damn telephone, that's why. And if needed, there's a tiny chance I might put up a good fight. You can't. So my net assessment is that my hands are more useful than your hands. I'll stand. Make it easier for you. Get comfy.' 'I'll be glad when this war is over,' Benton says. 'Haven't you read the papers, Thomas? The war is over. This is the peace.' 26 Charlotte has decided to take the call with Miguel from home, as Guy has gone to see a summer blockbuster that involves superheroes and supervillains engaged in superfighting. He won't be back for hours. Though it is not her routine, Charlotte showers, brushes her teeth, puts on a summer dress of yellows, reds, and oranges, and puts her hair up. When she is done, she has little choice but to ask her reflection in the bathroom mirror a candid question: 'What are you doing? Yes, you. You think this is a date? You tell anyone about this, and so help me,' she says, flicking off the light and leaving her hair down. On her way down to the computer, she puts it up again. Sitting on a chipped Danish chair, she launches the computer application and places the call to Miguel. She could have waited for Miguel to ring at the proper time, but then she would have been a girl waiting by the virtual phone — not even an actual one — and that wouldn't do. But calling him, she thinks as it rings, suggests a certain eagerness, doesn't it? Not when you're calling about a lost father, you dimwit, she says to herself. Charlotte hasn't really been out of Bristol — out of the lab itself, come to think of it — in ages. Aside from the odd visit to her mother in Fowey, she hasn't even been to London in over half a year. That would have been unthinkable in her twenties — nothing she could have admitted to. And yet, now, it's not the same. Routine has set in, and she rather likes it. She's learned, as an adult, that it can be spiritually rejuvenating to exhale London and let it go, like freeing a trapped ghost so it might return to haunt its own terrain. One can actually feel free of London, though its gravitational force and imperial control are always present. Iraq, though. Can one even get there from here? As the computer rings, Charlotte suddenly feels exposed, and wants her neck covered. She yanks out the hair band and lets her hair fall, just as Miguel answers. 'Hello? Is that Charlotte? Buenas noches!' 'Good evening, Miguel.' 'You let your hair down. That's very nice.' 'Ah... no. I usually wear it down. It's... natural.' 'I can see, though, how your hair gently curves toward your neck as it drops down, and then waves itself out again like a flamenco skirt, because only recently it was tied in the back. But no matter. I see you are not eating the fried tom-toms. That is good.' 'Wontons.' Miguel's image is a bit wobbly, and behind him there is a map of Iraq with a UN logo and the letters UNHCR, which mean nothing to her. It strikes her as odd that someone living in a war zone, among tens of thousands of displaced people, can be so cheerful. Before she can interrupt herself, she asks, 'Why are you so happy?' 'I think this will be a very nice walk, don't you?' 'That's not what I mean. You're away from friends and family. A girlfriend, maybe. Everyone around you is miserable. You look like you just landed a research grant.' 'That is the pinnacle of happiness? A research grant?' Isn't it? 'One can't really find happiness in places like this,' he continues. 'You need to take it with you, and hand it out to those who need it.' 'That's sweet, but by that logic, you eventually run out.' 'I hadn't noticed. Maybe my analogy is wrong.' The screen changes as the iPad Miguel is using switches to the forward-facing camera. Miguel and Iraq are gone, and instead there is a view of a small office that reminds Charlotte of the kind she's seen at construction sites where the workmen walk up a few wooden steps into a lorry while removing their hardhats and reaching for a cup of bad coffee. There is a round table and some plastic chairs, an orange extension cord, and more maps on the far wall. Between those maps, though, is a mirror. And as Miguel moves closer to the wall, the contraption he has built comes more clearly into view. She can see him from the waist up now. He is slender and earnest, and has floppy hair. There is an earnestness and boyishness to him. There is no way he is over thirty. In his right hand he holds a broom handle, and at the top of the handle is the bottom part of a dustpan on which he has rested the iPad and secured it with electrical tape. The iPad cover itself is baby blue, like the colour of the UN logo. He is smiling and waving. She waves back. She feels like an idiot waving back, and does not understand how it has come to pass that Miguel gets to set the terms of their goofiness. 'Do you watch the television show Game of Thrones?' he asks. 'No.' 'OK, good. Because many people who watch that television show — and some of the donors do, unfortunately — are unnerved by what comes next,' Miguel says, swivelling the iPad around on the handle to reveal Charlotte's disembodied head impaled on a stick in Iraq. 'In the history of the world,' Miguel says, 'this is the one view of yourself you never get to see. But with the benefit of modern technology, now you can! Meanwhile, introductions are necessary. Dr Charlotte,' he says, 'may I introduce you to Head of Charlotte. You may be in London—' 'Bristol.' 'OK, but Head of Charlotte is here in Iraq with me. You are now in two places at once. Time and distance have been overcome. To the people here, you are here. Isn't that fascinating?' If Miguel were not Spanish and were from, say, Hull, she would classify this as serial-killer behaviour. And yet, for some reason, she doesn't. 'OK, let's get moving,' he says. Miguel has the camera facing the outside world now. Charlotte sits in her kitchen in her sundress facing a laptop, her hair smelling of chamomile, as she watches a world emerge before her as through an alien portal. That world fills her, and her lungs seem to breathe in the exotic air of a land that she has only heard about in passing, and yet that now feels immediate and populated by real people who can see her and know she is there. She cannot see it, but she knows that Miguel's hand holds Head of Charlotte steady as he walks. In her kitchen, and there in Iraq, Charlotte and her doppelgänger bounce to the rhythm of the Spaniard's gait over the uneven and ancient earth. It is dark there, darker than in Bristol, but fires burn, and streetlights shine down through hard yellow dust onto the dark-skinned children running in brightly coloured clothes, all faded by the sun and tattered from overuse. The land is covered with tiny stones and a thick dust that will never be washed away, because there is nowhere for it to go. Miguel's voice accompanies Head of Charlotte. He explains the layout of the camp, who is there, who has come, who is going, who is 'at risk', who is there to help, what might 'build resilience' there, and what is undermining their efforts. From habit, he speaks about what is needed and what might be yet to come if that need is not met. She stares at the brown and filthy tents with the faded UNHCR logos that are identical to the one she saw earlier on the map. Boys wear T-shirts with Western company logos and names of sports teams. Shoes are a mix of flip-flops and Adidas sandals and Chinese knockoffs of Crocs. Many of the children are barefoot. They pass some women who smile at her and Miguel. Some of their heads are covered; many are not. Some children look lower-class, peasantlike, and poor, the way Gypsy beggars on European streets seem born into the clothes they wear. Others look shiny and clean and bright-eyed and incongruous, as though they have come from middle-class lives almost like her own, only to wake up one day to find themselves living in a tent as their country tries to kill them, with their earlier everyday dreams of dolls or soccer balls or boys or video games dismissed as fantasies of former privilege that they will never experience again. These people have never been so close, have never been so real to her, as they are right now. 'Come, I want you to meet Ayman,' Miguel says, in a voice he might use when pointing out Barcelona's hippest shoe stores. 'Ayman is six, and his English is wonderful. He is the best student in the MRE class.' 'The what?' 'Mine risk education. These are the educational activities aimed at reducing the risk of injury from mines and unexploded ordnance by raising awareness and promoting behavioural change through public-information campaigns, education, and training, and liaison with communities.' Miguel says this in the singsong and faraway lilt of aeroplane cabin crews running through safety procedures. It is entirely possible he didn't hear his own answer — it is that automatic. 'Here, come in,' he says, turning a corner when they arrive at a tent that, to Charlotte, is indistinguishable from any other. Miguel knocks on the pole that holds it up. A woman in a purple scarf nods to Miguel and smiles. She also smiles to Head of Charlotte, and does not seem surprised by the contraption. Inside the tent is a boy — Ayman — who is waving to her from the floor where he was, until she interrupted him, colouring something with his stubby crayons. With the new audience, and his friend Miguel there to see him, Ayman reaches into a pile of comic books, and takes a colouring book that he holds up to Head of Charlotte. At first she doesn't understand what she's seeing. The image is clear enough, but it is an image so unexpected it's hard to understand. The colouring book doesn't depict Superman or Spider-Man, but shows pictures of landmines and bombs, and of children standing near minefields, with big Xs over certain pictures where the children are chasing balls past barbed-wire fences, where they will die. Ayman has coloured in the children and the balls and the mines the same way he has coloured in his favourite football heroes. He has drawn circles around the children who will live, because they have done things the right way; he has left uncoloured the children who have done things wrongly, because they cannot be helped, and their lives will exist from this point forward only in outline. 'Ayman and his mother escaped from Syria after their town was attacked by one of the jihadist groups,' Miguel says. 'The government arrested Ayman's father and said he was an insurgent, but he was not. He worked at an electronics store — stereos and televisions, and things like that. They have not seen him since. His big brother is also missing, and he has been very sad. But the MRE class is very nice for him, because he plays with other children who have also lost people, so he no longer feels alone, and it has helped him make new friends here and take an interest in art. He has made this wonderful picture of what his village looked like before the massacre. It is here someplace. Ayman, where is the one with the tall blue building I like so much?' Charlotte smiles at Ayman, who turns away from her to rummage through a stack of papers marked by crayon scratchings. While his back is turned, she moves away from the computer camera for a moment and cries. By the time she looks back, Miguel has taken Head of Charlotte outside again into an even darker environment. To speak with her, he has turned the camera around so they now face each other. 'I'm sorry,' he says. 'I did not mean to upset you. I did not even think it might. I suppose I have lost my common sense with such things. You must understand, it is very good that Ayman is learning these things. They will help him be safe and save other children. People have been putting information like this in cartoon form since World War I. I think the colouring book is new, but the logic is the same.' 'How long do they have to stay there?' 'Things are getting worse, not better. The war in Syria is not ending. Iraq is weak and getting weaker. These new insurgent groups have not touched us here in Kurdistan yet, but it is perhaps a matter of time. We are vulnerable here. There are no defences. The people will stay while it is the safest place to be. Then they will leave. It is the way of survival.' 'Where is my father, Miguel? Have you found him? We haven't talked about this yet.' 'Listen, Dr Charlotte. Something has happened. I only learned of it an hour ago. I'm sorry to have kept it from you, but I wanted you to understand where we are. Your father... he is missing.' 27 By midnight, they are asleep. Märta wanted to keep working, prepping, building out possible models, positioning assets, calling in favours, but Tigger and Herb insisted that the greatest resource would be a full night's sleep, their strength for the next day, and a clear head with which to make sound judgements. Overruled, she went to bed. But she can't sleep. As she lies there, she talks to herself in Swedish. It is how she prefers to mumble. There is no one here to talk to in Swedish. She works in English, and has more professional competence in it because so much of her vocabulary is specific to her profession: explosive remnants of war; unexploded ordnance; protection of civilians; international humanitarian law; small arms and light weapons; antipersonnel landmines; child soldiers; gender-based violence; development; humanitarian action; international humanitarian law; signatories; ratification; internally displaced persons; results-based management; impact indicators; logical frameworks; camp design; evacuation. At home, they call it 'charity work.' God, she says, remonstrating with herself for the insomnia. It's one-thirty in the morning. She's worrying like a wife whose husband is a POW. Her ex used to worry about her, though she told him not to and that she was very safe in most of her jobs, and at least as safe as any beat cop in the others. Now the tables have turned, and she has to play the woman. Why did she agree to let Jamal drive? There used to be helicopters at night. When the Americans were here, they controlled the airspace. They would have shows of force. The distinct sound of Apaches could be heard overhead at all hours. But it is not only the nights that are quieter. The workday is different, too. There are no civil-military coordination meetings. No arguments about CIMIC, and the differences between coordination and cooperation. No armour on the streets. No APCs. Why did she let Jamal drive them? It's now 2.00 a.m. Three hours left to sleep. Shit. Only a drink will do. Why fight it? She swings out her legs, wraps the thin bathrobe around her, and walks on swollen ankles down the tile stairs. Brandy is what her grandmother taught her to drink to calm her nerves. She prefers Torres from Spain. She pours a stiff one. There is a sound behind her. She turns, and sees Herb standing, without a shirt on. It is a wonder how some middle-aged men do it — look that solid. 'Why are you up?' she asks him. 'A text message. There's going to be an offensive tomorrow. The explosion on the road left nine dead, including four police. And the gunfire that followed killed eleven more. The security forces are very, very angry about it, and they have some new weapons from the US they want to try out. I don't know where they're going, but it's in Ninawa province and it's going to be aggressive.' 'How do you know this?' 'The UN Department for Safety and Security just raised the security level to five. Non-essential staff are going to be evacuated tomorrow. ICRC is moving staff from Dohuk and Domiz to Erbil. I checked with some people in Baghdad.' 'What about sleep?' she asks. 'Sleep would be good,' Herb says. The windows are open, and there is a cool breeze blowing through the security bars. The sound of wind through palm trees has always reminded Märta of rain. 'I've been thinking, Herbert. I've decided that I'm not going to use you as our communicator with the hostage-takers, assuming there are any. I want to use someone local.' Herb, normally hard to read, looks crestfallen. 'They'll find you out, Herb. I need a communicator between us and the hostage-takers who can remain totally anonymous. I have no doubt that someone here is reporting to the Iraqi authorities or the opposition. You're a big, black American baritone. And you're the only one here. Your accent, your tone of voice — you're too easy to find. And I don't know what'll need to be said, and I can't put you at risk by asking you to say it.' 'Märta—' 'Also, I need you in the crisis-management team. You, me, Tigger, Clip. I don't like mixing the communicator role with the decision-makers. It's standard ICRC practice, and I've taken it on with IRSG, too.' 'Märta—' 'Plus, you now have that insipid US Supreme Court ruling that makes it illegal for an American citizen to be in contact with terrorist organisations — the "material support law". You could be breaking the law by talking to them, because it could be viewed as providing material support to the terrorists.' 'We're denying material support to ourselves by not talking with the enemy. It's a stupidly written law.' 'Not my country. Not my law. But it's my problem if it exposes you to unnecessary risk.' 'I'm going back to the sofa now,' Herb says. Märta takes the brandy to bed. Benton chews, and Arwood talks. The night is deep, and their prison is black. The bloody dress remains where it was thrown. There's nowhere else to put it. Benton chews on Arwood's restraints, and Arwood talks to fill in the time. 'When I got back, it was midsummer, 1991. There was this huge parade for returning troops in DC. I was persona non grata, obviously, not that I would have gone anyway. So I did what every American man does who returns fucked up from a war. I bought a motorcycle. 'I didn't go so much Hunter Thompson as I went Bob Seger. The hair, the goatee, the swagger, the classic-rock-only mentality, disco sucks, feel uncomfortable in roadhouse bars — that sort of thing. Got an open-faced helmet so I could be slapped in the face by the future. I called my bike the Sopwith Camel. You know, because of Snoopy. Didn't learn until 1996 that it was actually an aeroplane from World War I. How are you supposed to know things like that? Thought the guy who told me was pulling my leg. He swore he wasn't. Told me not to feel bad. Told me that whenever he heard "Woodstock" he immediately thought of the cartoon, not the concert. You meet people like that on the road. It occurred to me after a while that maybe I needed a girl.' Benton isn't listening. He continues with his degrading work. For the first hour, while Arwood was talking, Benton wasn't sure whether he was making any progress at all. The plastic became warm and pliant, but didn't shear. It seemed to be made of fibres, rather than plastic. His lower incisor became instrumental. He thought he could hear tiny fibres breaking every few minutes, but maybe they were only saliva bubbles. All this chewing and salivating meant a loss of liquid, and he started to get thirsty, which made him impatient and frustrated. The only reason he was able to continue like this was that it was better than being terrified. Arwood is digressing from his previous tangent to discuss classic rock-and-roll and the merits of a band called Kansas, which is easy for Benton to ignore. At some point, when the frustration reaches a peak, he says, 'Arwood, you need to try twisting and moving it around. It might respond to some shearing force.' Arwood tries this, and finds that it does not prevent him from talking. 'I stayed in Bozeman, Montana, for a while,' he says, returning to the earlier topic. 'It's a little desolate, but I like it there. Nice people, good air. Food was better than you'd expect. Eventually, they invented the mobile phone, and I became the Once-ler. You know The Lorax? Well, anyway... oh, baby, oh, how my business did grow. I went on the road for years. I left America. I was gone when the Trade Center went down. Saw it on TV in Italy. I remember the first line in the Italian paper. It said, "Today we are all Americans." No shit. It really said that. I cried my eyes out. It said that sort of thing everywhere in Europe. Le Monde, El País. Every major paper. But America didn't thank them. You know who doesn't say thank you to a person who extends a hand when the going gets tough? I'll tell you who: an alcoholic. And not just any alcoholic: one who thinks he's better than other alcoholics, because he's found God and stopped drinking and became president after a five-to-four split vote in the Supreme Court. The kind that knows how best to drive a wedge between people. So... mission accomplished.' Benton stands up and turns. His shoulder hurts. His knees hurt. His jaw is so sore he is forced to whisper: 'I think I softened it in a spot. It might give if you rock back and forth for a while. You understand that once we break these, they'll know? You can't put them back on. And there may be consequences.' Though the room is exquisitely dark, Benton feels as though he can see the expression of bewilderment on Arwood's face. Through that darkness, Arwood says, 'What are they gonna do, put us on double secret probation? I sort of feel like we're on the last rung of the consequence ladder. After this, we're headed for the mystery bag, if you catch my meaning.' 'Right, then. On with it,' Benton says. Benton sits back against the wall and rests his muscles. He watches Arwood contort himself, trying to weaken and snap the restraints. 'Were you listening to me?' Arwood asks. 'Were you saying something?' 'I was pouring my heart out.' 'Can you break it loose?' 'I'm trying,' Arwood says as he twists his wrists. 'It doesn't feel looser.' 'I don't think it will. I think it'll snap or not snap. It isn't a knot.' 'So anyway, I drank and drank and drank, and I found a calling.' 'Good for you.' 'You asked what I was doing. I'm trying to tell you. So listen. After my parents kicked me out of the house for not killing Arabs, I started working at flea markets and gun shows—' Arwood's twisting around isn't breaking the restraint. But maybe twisting or cutting isn't the answer. Maybe the plastic is loose enough already, and all it needs is enough force to pull the ends apart. But the two of them pulling against one another won't do it. Their wrists are too pliant. The plastic fibreglass will cut into the flesh, and the pain is too great. What would Leonardo da Vinci do? 'He wouldn't be in this bloody mess, that's for sure,' Benton mutters to himself. 'What?' asks Arwood. 'Nothing. Go on. Gun shows.' 'I started brokering weapons. I'm an arms broker. I got around. That's why I was able to get your ticket using frequent-flier points.' 'I think we might be able to loop your cuffs around the handle of the door, then I can stand to the other side and pull you. If it's weak enough now, it might give.' 'That's not a bad idea. But you were so interested in what I did for a living, and now I've told you, and... nothing.' 'I've been chewing fibreglass for an hour after the possible murder of our colleagues. I don't have what it takes to negotiate your stories now, Arwood. In some deep sense, and for some reason, I still trust you. But I also don't believe a word you say. So that's all going to have to wait. Let's try to break these,' Benton says, stepping toward the inner door where the Stooges took Adar and Jamal. Arwood follows Benton to the door and finds the handle. Turning around, he wedges the metal cylinder in the space by his wrist near the watch. It is a tight fit. 'No way you can get your fingers in there, too. You'll never reach, anyway. Your shoulders are too wide. I'm going to lean forward as hard as I can, and I want you to grab my belt and pull me even harder. That's both of our bodies and our strength versus the spot you've been chewing on.' 'OK. Try rocking a bit, too. Put as many kinds of stresses on that weak point as possible.' Together, Arwood and Benton lean forward, putting all their weight against Arwood's wrists, the cuffs, and the door handle. Benton knows he is facing the outside door and, in pulling, tries to will himself through it. And, without a sound, Arwood's cuffs snap. Together still, they fall to the floor. Benton lands on his face, breaking his nose. Arwood can feel blood around his wrists, where the plastic has dug into the flesh. 'I think... I think I've really hurt myself,' Benton says, but Arwood isn't listening. He's off to the mattress and recovering the iPhone. He turns it on, and muffles the sound by placing it beneath his armpit. The room glows a pale blue, and Benton whispers 'The light.' Arwood covers the screen until he can hide it beneath a mattress and adjust the brightness. Opening 'Messages', he types one with the coordinates and a brief note. 'We don't have a signal,' Benton says. 'No,' Arwood whispers. 'But we're not going to miraculously get one, either. It's like this, Thomas: either there's a signal a few metres outside that window, or there isn't. You know what a Hail Mary pass is?' Spitting blood from his lips, Benton mutters, 'I can guess.' 'Football. American football. You can either get tackled and lose the game, or hurl the ball into the unknown and hope for the best. You might still lose the game, but the thing about a Hail Mary is that you also just might win.' 'I see where this is going.' 'After you hit "send" on an SMS, it usually says "sending" for a second or two as it looks for a signal and catches the wave. My hunch is that if I hit the button and I hurl it out the slit in the roof, maybe it can catch a signal and send the message before it smashes to bits and it's game over.' 'It's not much of a plan, is it?' 'Not really, but my thinking is that the odds are better than zero, which is what they absolutely are right now if we don't do it. And, like you said, my restraints are off. This is the window of opportunity, no pun intended. So, what do you say?' 'Who are you writing to?' 'Märta. And a local friend.' 'Can you do that?' 'Yeah. You click the little plus thing, and you can add recipients. See?' 'You really think Märta would move the world to come and get us? It wouldn't be a rational choice. That would be a lot of chips to cash in for two people who did this to themselves.' 'Yes, I do. And I'll tell you why. Because people aren't rational actors, Benton. People are themselves. If you want to know what's going to happen next, you don't look at the choice, you look at who's making it. That's what I learned as an arms broker. In this case, it's Märta. I think Märta wants to see you rescued, because she either loves you or close enough to it. And I think she wants to help the underdog, and that means Adar. And I think she wants to protect her own staff, and that means Jamal. And I think she doesn't ask for a lot of favours from other people, so whoever she is going to ask for help is going to say yes. She doesn't care about me, but there should be enough seats on the bus if it comes along.' 'That's quite an analysis.' 'I'd bet your life on it.' 'All right. Get on with it,' Benton says. 'You need to kneel by the window so I can stand on you. I can't reach otherwise.' 'Of course you do.' Benton moves on his hands and knees toward the wall across from the mattresses and between the two doors. There are three slits near the ceiling, each a metre long, separated by small supporting columns. They are too small for a man or a child to slip through, but wide enough for binoculars, a rifle, or an arm to hurl an object the size of a grenade or a mobile telephone. The room has all the qualities of a crypt. It smells like a construction site mixed with cooking spices and bare feet. In the dirt and the dust that coats everything, as Arwood places his right foot in the small of Benton's back, an unexpected thought comes to him, and not one he's entertained before. 'I want to die outside,' Benton says. 'Me, too,' says Arwood, and he now shifts all his weight onto Benton's back. The skin over his old bones slips around like a plucked chicken's. 'I want to get out of here and have a nice long life selling weapons to oppressed people with cash.' 'I don't mean outside this room. I mean outside all rooms. I want my last breath of life to be taken outdoors. A clear shot, so to speak.' 'This window opens to the outside,' Arwood says. 'We seem to be in a small valley, or a canyon, or something. I can't fit my head through. I can see stars above us, but there are rocks or — well, something that blocks out the stars — maybe ten or fifteen metres away. There's no artificial light anywhere. I can't see any buildings. Wherever we are is blacked out.' There is blood dripping from Benton's nose, and he cannot move his hand to wipe it away. All he can do is stare into the floor and listen as Arwood narrates his own movements: 'I'm reaching my hand out to see what's there. The outside wall is smooth, more or less. I can't reach the ground. I can't tell how high up we are. The light is too strange. A metre or two? It doesn't feel like the ground in our room is the same level as the ground outside. I think we're dug in. That's why the slats on the wall are so high.' 'If you have a clear throw, then get on with it. My back—' Arwood falls silent above him. His feet become still. There is a moment when their absurd pose becomes statuesque — a new member in the Garden of the Fugitives, those human statues at Pompeii. Then, without a sound, Arwood's weight shifts to Benton's lower back, rests there a moment, and then shifts forward to his upper back as he hurls the phone with all his might. A silence follows — as complete and warm as a ceasefire — to be replaced by the sound of plastic and metal crashing into an ancient crevasse, echoing outward from the Sinjar Mountains to al-Anbar in the south and Ninawa province to the north, with a message for anyone with the ability to hear it. PART III OTHER THAN HONOURABLE THE NEXT MORNING 28 Märta Ström wakes to the sound of her phone. She checks her watch to confirm the time. She can barely make out the faintly luminous green glow of the watch hands. It doesn't appear to be 5.00 a.m. yet. Which is nice. There is more time for sleep. Her grandmother used to call sleep 'delicious', as though it had a flavour. Her grandmother died almost twenty years ago. Märta would lie in bed with her as a child, after her grandfather had gone off to wherever men went at six in the morning. The bed was still warm. The blanket smelled of wool. The wooden walls of their home, two hours from Stockholm, never entirely lost their smell. Everything in their home was simple. What they needed they had, and what they had they needed. Life was about the relationships between people, and the love that peace allows. She can still feel the knuckles of her grandmother's hand and the way her index finger would curl across all four of her own fingers while they lay in bed, toasty from the neck down, a thin layer of cold over her cheeks from the windows that were not thick enough — not really — to keep out the early-morning chill of a Swedish winter. She can taste it, just like her grandmother said. But it isn't the sleep she can taste. It is the memory. More time to sleep. More time to hold her grandmother's hand and wonder what might be for breakfast. To enjoy this time alone with her. Her parents aren't here now. Or her older brother. They'll be able to talk this morning, just the two of them. There would be nothing preventing them from sharing a stolen moment together this morning, were it not for a question forming off the bow like a storm front. She knows, instinctively, that if she allows the question to take a proper shape, it will disrupt her planned course. She needs to ignore it. Maybe it will go away. She wants to have breakfast with her grandmother, because they love each other and this time is set aside for the two of them. But it nags her. It irks her. It knows her too well. She is not one to avoid a good question. And so it comes: If the sound on her phone wasn't the alarm, what was it? Märta unclenches her hand from her grandmother's, and the bond is broken. Her grandmother's spirit leaves her, and she is alone again. She is older. She looks at her phone. It is an SMS message: N36° 23' 15.88", E41°47'32.87". Held hostage. Need help. In some kind of old building. Probably ISIL. Come get us now. She's up. Phone in hand, she skips the formality of slippers and bathrobe, and pads down the tiled staircase with the agility of an eleven-year-old girl. In the living room, she flips on the light. Herb is lying on his side, fast asleep in his blue boxers, as peaceful as a baby giant. She says, 'Herb,' only once in a quiet tone, and his eyes pop open. 'We got a note. They're alive. Ten minutes. Make coffee. Where's Tigger?' 'In the guest room. He won the coin toss.' Märta is up the stairs quicker than a sound. She opens the guest bedroom door and flicks on the light from the wall switch. Tigger is sleeping face down and naked, his feet toward the head of the bed. 'Tigger?' No reply. 'François Armand?' 'Je ne veux pas aller à l'école. C'est ennuyeux,' he says. 'Réveille-toi. Ils sont vivants.' Tigger raises his head. 'D'accord.' 'Time to go to work.' Märta showers quickly, dresses, and then goes downstairs to meet the two men, who are already dressed in field gear — no more than ten minutes after she woke them. 'What do we have?' Tigger asks her. Märta reads off the coordinates from her cell phone. Herb writes them down, then copies them a second time and hands the second copy to Tigger, who puts them into his pocket without looking up. Tigger spreads out a map of northern Iraq on the kitchen table while Herb fixes three cups of coffee with sugar and no milk. He uses the laptop to find the location of the GPS coordinates, and the program zooms in on the Sinjar Mountains. 'Well... shit,' Tigger says. 'Why?' Herb asks, back at the table in his blue Patagonia field shirt, the sleeves rolled over his forearms and fastened by buttons. 'They're in the mountains. West of Tal Afar. It's a bad place,' Tigger says, pulling out a chair and then sitting down on it. 'Who do we know in Tal Afar?' Herb asks. 'Some of the people we helped in '91 were resettled there,' Märta says. 'This isn't Tal Afar,' Tigger says. 'These are the Sinjar Mountains. They rise out of absolutely nothing. Geographically, they look like they shouldn't even be there, the way Monument Valley rises from nothing. Culturally, those mountains are not even Iraq. They are a different universe. They don't like foreigners. They don't like Shiites. They don't like the government. They won't like us. Mostly Yezidi.' 'I know some of the Yezidi,' Märta says. 'I'm not saying they like foreigners. I'm saying I think they'll answer the phone if I call.' 'The Yezidi worship the devil,' Herb says. 'They don't worship the devil,' Märta says, 'at least not the devil as Christians think of him.' 'How else should I be thinking about devil worshippers?' 'The Yezidi,' Märta says, trying to find out how to explain this even to herself, 'are a very, very old tribe. Older than the Jews. As old as the Zoroastrians. They see the world as being made of opposing forces — right and wrong, good and evil. The Yezidi recognise that they need to come to spiritual terms with them both, and so they engage in worship that somehow involves talking to the darker forces as well. I don't know much about them. No one knows much, because they don't speak of their religion or their identity with foreigners. They've been a brutally persecuted minority, and see themselves as put upon by both the Arabs and the Kurds, and they aren't wrong about that.' 'Arwood said he thinks it's ISIL, not Yezidi,' Tigger says. 'Makes sense,' Herb says. 'The Yezidi are weak, and the land is good for hiding in. It's close to the Syrian border, it's good for attacking farther south into the Sunni regions, and it's easy to defend. The government is using the Sunni tribes again against ISIL. This is high ground. Not a lot of that around.' Märta says, 'The Yezidi are politically sensitive, and they're very attentive to what's happening in their land. It's how they survive.' 'You think they owe you a favour?' Herb says. 'I don't think anyone owes me anything but a paycheque at the end of each month. But some people are grateful nonetheless, and they remember things. Back in the nineties, when I was with UNHCR and then the Red Cross, I used to get out of the office more and actually meet people, rather than fill out funding proposals for junior government staff who have never been in the field. And since I'm considered pretty funny-looking in this part of the world, they tend to remember me. We still have reputation and access as strategic assets. Now would be the time to use them, don't you both think?' she asks. 'We need to make contact,' Tigger says. 'I will speak with Firefly immediately. Get started. Herb should work the government. See if we can negotiate their release.' Herb is looking at the map and considering the location of the Sinjar Mountains in relation to the safe zones. 'Even if we do reach an agreement, we'll still need to get them out of there. If the military is hunting ISIL after that attack, then this zone is going to be very hot. No travelling by ground. That means we'll need a lift. And there are no airfields, so that means helicopters. And if we're flying at only eight hundred metres, we'll be very vulnerable, which means we need to be allowed to fly. Because there's no defence.' 'Tigger, you have thoughts on this?' Märta asks. 'I suggest we put the players on the board, learn what we need to learn, and then see what the world looks like after that. Herb, you do the government, yes? Tell our friend in Baghdad what we know. See what he says.' 'Yeah, all right.' 'Märta, you warm up Louise. We may need her, like you said last night. I'll talk to Clip Maxwell. On y va?' 'You two work from here,' Märta says. 'I need to see Louise in person.' They sleep like the dead until dawn. It is Arwood who wakes first, to the feeling of a boot in his gut. It is Arwood's involuntary grunt, and then his wheezing attempt to inhale, that wake Benton. Hands still cuffed behind him, he opens his eyes. There are two men with AK assault rifles by the door, and one standing above Arwood. Once Arwood has taken a full breath, the man kicks him in the solar plexus again, and again Arwood wheezes for air. 'Stop kicking him,' Benton says from a sitting position. He says it only so that it will have been said. The man — Abu Larry — is wearing a dark tan shirt that falls to his knees over trousers of the same colour and fabric. He wears desert army boots the colour of sand, and has a leather ammunition belt around his thin waist. On his head is the black headscarf of ISIL. On his wrist there's a vintage gold Longines watch with a fine leather strap. He does not carry a gun. Abu Larry crouches down by Benton and studies his face. After a long look, he says something in Arabic, and one of the men by the door quickly kneels on Arwood and binds his hands behind his back again. Then he hits him on the head with the rifle. 'What are you accomplishing? What does this serve?' Larry says nothing. He checks Benton's restraints, sees they are secure, and then removes a rag from his pocket. He pushes Benton to the mattress, kneels on his head, and shoves the rag into Benton's mouth. He ties a bandana around his head to hold it in place. The two other men pull Arwood to his feet. Dizzy and obviously in pain, Arwood is unable to walk by himself. Head bent, he says as loudly as he can, 'We're not alone, Benton. There's still hope. And if they kill us, we'll be avenged. Mark my words. The land remembers. That's the only truth of the Middle East.' The two men drag Arwood from the room, and one of them kicks the door closed. Larry remains crouching by Benton, studying him. His eyes are nothing like Märta's. Or Vanessa's. Or Charlotte's. Benton's broken nose is making it hard for him to breathe. More than fear, he is starting to feel a sense of anxiety and claustrophobia. There isn't enough air. His breaths become more rapid, more shallow. To look at his abductor or to look away — have his options dwindled only to this? Then the man stands and leaves. He does not kick Benton. He does not say a word. He passes through the inner door into a room Benton has never seen. The sliding bolt is engaged, and then the padlock is replaced. A moment later, there is a third gunshot. Dawn again, and the Syrian refugee men in the Domiz refugee camp are already smoking. There is smoke everywhere — smoke from their cigarettes, smoke from the cooking fires, smoke from the makeshift chimneys in the more permanent structures. The drive from Märta's home to the IRSG office at the refugee camp is uneventful. The police only have one roadblock set up, and they're searching cars at random. They wave her through. She pulls into the Red Cross parking space reserved for visitors. Her Land Cruiser is not as well equipped as those from the UN or the ICRC. She has her handset but no HF antenna, no black rod that stretches like a thin roll bar across her vehicle to fasten in the back. In Sierra Leone, when she was posted there, the locals called them 'white rhinos'. She always hoped they were referring to the vehicles. In Pakistan, they laughed at her and said the 'internationals' never leave the Egg: an egg on wheels. It wasn't only the colour of the Land Cruisers that inspired the name: it suggested that Westerners were never really born into the world in which they now lived. She gets out of the car and locks it. It is six-fifteen in the morning. Farrah isn't in yet; she comes in closer to seven. Louise, however, is there. Märta can hear the sound of the BBC streaming through tinny computer speakers. Märta knocks, because people are supposed to knock, and then walks directly in because she wants to. She sits on Louise's sofa. 'Good morning,' Louise says. 'They're alive. I got a text message. They're being held by some ISIL cell in the Sinjar Mountains. I've heard that the security forces are planning some kind of offensive today, west of Mosul. So there's a clock on this.' 'I heard that, too. It's in the sitrep. We've all been told to evacuate the area. I've cleared my people, but the Iraqi Red Crescent is being a little stubborn.' 'Which means,' Märta says, 'this all needs to be over in a few hours. I'll send you a letter for the record, but I'm formally requesting that the ICRC extend its good offices to mediate release. And we're gonna need a ride.' 'Have you made contact yet?' 'No.' 'What's your play?' 'I'm afraid the military knows about this base in the mountains, and they plan to strike it. If they do, they'll kill my people. I also don't want them going underground. I was in that situation in Somalia. They captured our people, they didn't reach out to us for months, and when they did, our nerves were so frayed we agreed to anything. I also can't ask the military if they know about the base, because then they'll definitely bomb it. So all I can do is hurry.' Louise says nothing. 'We have an arrangement with Firefly International. Tigger says he trusts them, and thinks they have systems we can use. Apparently, the IRSG keeps them on retainer. Have you used people like this before?' Märta asks. 'Officially,' Louise says, 'I can't confirm or deny that we've used specialised firms to set up the negotiating structures to secure the successful release of our people in Afghanistan, Pakistan, and Colombia in the last few years. And I can't confirm that I think it's a good idea to follow Tigger's advice. What I can do is tell Spaz that we'll help when the time comes — if all parties accept us, the government is informed, and we can secure a flight path. You realise, though, that to do this I'll have to pull air assets off the relief effort to help your people instead. You want to use my lift during an assault. That'll have consequences.' Märta nods. 'I know.' 'How do you feel about that?' 'I'm going to put off feeling anything about it until it's over.' 'Are you in touch with Geneva on this?' 'I'm putting Miguel in charge of liaison work with headquarters. You know him? My kid from Spain? Big eyes, floppy hair, the voice, the whole thing? I find they're a little afraid to talk to him. The Swiss don't react to his verbal style very well, so they tend to leave me alone if the choice is Miguel or silence. Meanwhile, Herb is working the government to get approval for the pickup, without telling them exactly where it is.' 'That sounds tricky,' Louise says, turning off the radio. Märta explains her gambit in Sinjar. How she needs to contact the kidnappers because of the time pressure, but how she fears surprising them and what the consequences might be. Better for them to reach out first. But she can't risk waiting for them. She has to make decisions without sufficient information or basis for judgement. Some call this 'leadership'. She considers it a failure of preparation, analysis, policy, and systems. You're only on your own once you've been abandoned. So she has to improvise. She says she knows a family in Kursi. If ISIL has a facility there and it's staffed, she reasons, they'll need to shop for food and supplies periodically, just like everyone else does. And since there aren't many places to do that, people in town will know where they go each day. 'I'm going to write an email,' she explains, 'and send it to the family I know there. They'll give it to the son, and the son will drop it off at the market. It will be clearly marked for the hostage-takers. I don't think this will place the shop owner at risk, and if it does, he can say he was given the letter by the IRSG.' Louise thinks it's too risky. 'I know a good man with the Iraqi Red Crescent in Mosul,' she says. 'He can deliver the letter to the shop. You don't have to put the family at risk.' 'I thought the ICRC and the Iraqi Red Crescent weren't getting along so well these days.' 'We're not, but I know who's who. His name is Sharo. He's Assyrian. He's a medic, and knows the area well. He can deliver the message. I think he'll say yes, too.' 'What makes you think so?' 'He loves his motorcycle.' 'I don't see the connection.' 'The road that winds from Route 47 into the mountains is one of the twistiest mountain passes in the world. His wife doesn't let him go riding there, because she says he takes enough risks with his job. This would make it his job.' 'How far is Mosul from the mountains?' Märta asks. 'About an hour and a half, if all goes well.' 'Assuming he leaves immediately,' says Märta, 'and gets there without incident, and they get the letter on arrival, which is a long shot, we're talking two hours from now. That's a lot of time with the clock running down.' 'It's your call, Märta. I think Sharo has the best chance. The Red Crescent can get through. We should use it. If you screw up the approach in a scenario like this, you screw up the entire operation. These things are very delicate. There's no room for heroics.' 'I'm not convinced the Red Crescent or anything that sounds remotely connected to the West has a reputation with ISIL.' 'Me neither. But better to use Sharo and a legitimate regional actor than some boy.' 'We'll be putting one person at risk to save another.' 'Märta,' Louise says, becoming visibly agitated, 'I'm spending time talking to you about your team rather than prepping my people for the influx of refugees from across the border. What we're doing here is diverting emergency resources from their sanctioned purpose to clean up a mess that shouldn't exist.' 'Yes,' Märta says. 'All right. Can I use your computer? I'll write the letter. I don't want to waste any time. You can send it to Sharo from here via email.' Märta launches Word '98 and looks at the blinking black line on the simulated white paper. 'What do you think it should say?' she asks. 29 'François Armand?' says the voice on the phone. 'Yes, Clip, it's me. Bonjour.' Clip is British and comes from London. He has a Sandhurst affectation and attitude and, like Tigger and Herb, is in his late forties. One quality that Tigger appreciates in Clip is that he listens. 'I received and reviewed all your briefings and notes,' Clip says. 'Correct me if I'm wrong about any of the following points. Looks to be ISIL, but we're not sure?' 'ISIL is what we are supposing. It could be al-Qaeda, and it could be that there is no difference between the two. It could also be someone else.' 'If we're lucky, this will be an express kidnapping. They'll ask for a reasonable sum that you can pay, then you pay it, and we call it a day and debate the ethics afterward. Have they contacted you?' 'No. No one has reached out to us at all. And this worries us,' Tigger says, adjusting the phone and putting the call on loudspeaker so Herb can listen. 'If they killed them right away, this would have made sense. Contacting us for money, that would have made sense, too. But the silence? The possibilities are endless. We've had to wait before, in the Philippines with Abu Sayyaf. They tested our nerves, and they won. I hate waiting.' 'The Arab boy, Jamal. He's yours?' 'Herb and Märta are especially protective of him. Märta knows his family well. There was an incident when she saw his brother die. We are supposed to keep a distance, but sometimes our humanity interferes with our humanitarianism. It is a failing that is our most redeeming quality.' 'And among the hostages is a Brit and an American. Have you notified the embassies yet?' 'In writing, yes, but it's before office hours here, and I don't expect a reply until after 8.00 a.m. So, Clip... what do we do?' 'We establish the crisis-management team.' 'Yes. It is me, Herb, Märta, and you. Märta is the decision-maker.' 'Good. Next we need a communicator. The decision-maker does not talk to the hostage-takers. Only the communicator does. We don't know what language the kidnappers speak. We're assuming Arabic?' 'We're assuming Arabic. That, and perhaps English. It is the lingua franca these days.' 'You have someone?' 'No,' Tigger says. 'Herb wanted to do it, but Märta said no. She thinks my accent and his will give us both away.' 'She's right. I suggest a village elder. Also, accents are a problem with the Arabs. They have a remarkable understanding of where people come from and what it implies. You mustn't get that wrong here. Once you choose someone, you let me know. Just remember that the purpose of the communicator is to isolate the decision-making team. It is essential that no one be put in a position to have to make decisions while talking to the hostage-takers. He's merely to pass along messages from one party to the other. This leaves us plenty of time for deliberation and strategic decision-making.' 'I understand.' 'Just to be sure, you three want to take point on this? Because we can take over if you want.' 'No. We'll do it. We know the environment. We can better sense the actors.' 'Then our role at Firefly will be to serve as your backup team on decision-making. We'll question you. Probe you. Second-guess your judgements. Test you. Make sure your decisions are reasonable, even if we can't prove they'll work. You follow?' 'Yes.' 'We need an open channel at all times, and that means redundancies. I'm emailing you all' — Tigger and Herb can hear Clip shuffle some papers and click some keys — 'a set of solutions on email, SMS, phone, Skype, and Thuraya satellite phones. There's no reason we should lose contact.' 'Understood.' 'The Iraqi government?' Clip asks. 'We're afraid to tell them where our people are,' Tigger says. 'They might be more interested in where the insurgents are, which would be unhelpful.' 'What about external communications?' 'Nothing. We are keeping this quiet. We figure that if the hostage-takers know they have an audience, it will empower them.' 'Good. You should still have some statements in the works, though, for different contingencies. I recommend the crisis team not direct that. Farm it back to Geneva,' Clip says. 'Let me know when the communicator is selected.' Sharo is a motorcycle medic for the Iraqi Red Crescent. His facial hair is so extreme, so unruly, so expansive, that his wife likes to tell her friends that she hasn't seen him in years. He has slender shoulders and long arms. He imagines his legs as the physical extension of the Yamaha XT's 41mm telescopic, oil-damped forks, soaking up each bump in the road and each bump in life. The 600cc motorcycle is Sharo's one joy beyond his three remaining children. It's a '93 model, and when he rides it — high off the ground, with a view over traffic, and further into the future than other people can see — he feels the way he is supposed to feel when he prays. Sharo does not lack faith, and he puts his trust in the words of the Prophet, but he does not feel the euphoria that others seem to feel. He lost his eldest son to a killer who was robbing him. Sharo stood and prayed as the corpse-washer prepared his son's body. He did not believe, when he closed his son's eyes, that God was great. He only felt that God was big. But riding a motorcycle is great. When he wears his open-face helmet and sunglasses, he hears only the sound of the wind and the rumble of the single-cylinder engine. He floats with the birds, which do not feign to understand the ways of man below them. The air tickles his face as the breeze tickles his whiskers. To turn into a hairpin on a mountain pass is to forget the loss of his boy, to forget the state of his country, to forget his fears for his daughter's future and the impossible sadness of his kinsmen. To ride is to focus the mind. It is to be present and feel that — briefly, if for the moment, and maybe never again — a man can control the speed at which the future will meet him. Carry a letter to Sinjar? Yes. You'll need to hurry. Good. Be discreet. Take it to the market. Talk to the grocer. Ask how the foreigners get their food. Have it delivered with the food. Come back. Yes. Good. Right away. I emailed it to you. You printed it? It reads legibly in both Arabic and English? I did not read it. I don't want to know what it says. But I see the text is black and clear through the paper. Ride carefully. Always. Yes. Thank you, Ms Louise. Don't thank me, and don't make me tell your wife where you went. I have enough problems. Yes, Ms Louise. Thank you. The military may take action today. She told him this. Sharo fuels the bike, wipes the drops of the clear petrol from the cap onto his soiled trousers, and lets the bike warm. Then he's off. He rides west, chasing yesterday, like an old man who is not ready to let another day slip by. The sun warms his back. He could almost be happy again if only he could close his eyes long enough to disappear entirely, but alas, he must open them again too quickly so that he can see the road, and this is what keeps him bound to life. There is only one turn off Route 47 into the town of Sinjar at the base of the mountains. And now, there before him, is one of the most majestic roads on the planet. He knows, as he takes the turn, that he is one of only a few men in the history of this new earth to ride this road by motorcycle. And of those, no other man has ever appreciated it more. He has never left Iraq. He has never seen the Stelvio Pass in Italy, with forty-eight hairpin turns up the Alps, or the Trollstigen serpentine in Norway, with its eleven famous bends at an incline of almost ten degrees up the mountain. He knows of these only from books. He dreams of these Occidental legends the way Westerners dream of magic carpets from the East. What he does know, in front of him, by the grace of God, are ninety-four hairpin turns from Sinjar to Gune Ezidiya in only twenty kilometres. This is one of the greatest and most exciting rides on earth. Pity about the politics. But take it slowly. There is no rush. There is work to be done. And every turn, every straightway, is a breath of life to be cherished. For an hour, there is no death. For an hour, there is joy in the hearts of all children. For an hour, his body becomes one, uniting the physical world with the spiritual. For an hour, he is alone with his memories and with the spirits of those who have passed before him, and they ride with him, and they sing together about the love that once was and will continue, so long as there is a person left alive to remember it. For an hour, Sharo rides. Sharo stops riding at a town that is unmarked on the map and has no signpost before it. The hard-cased panniers of his bike are holy white, marked with a red crescent. It is quiet when the engine stops. There are no cars moving through the town now. People seem to have disappeared. He does not blame them, given the way the Yezidi have been treated by Saddam and by the Sunnis in Mosul, and the pressure put on them by the Kurds. They are alone in this world, having only themselves as comfort. Why greet a stranger? There is a dirty blue-and-white awning extending from a square building. In front, there are fruits in crates. The thin steel door to the shop is open. Sharo removes his helmet, which is also marked with the crescent. He sees the shopkeeper, standing, behind the counter. 'Salaam alaikum,' he says to the man. 'Alaikim as salaam,' the man replies, without warmth. His accent is unfamiliar to Sharo. He knows that these people speak a language other than Arabic, but he does not know it. In Arabic, he says to the man, 'Your shop is quiet now.' The man nods. 'It is quiet.' 'Other times, I imagine, it is busier.' 'At other times.' 'Perhaps there are strangers who enjoy the hospitality of your shop.' 'We have many visitors. Sometimes we visit them.' 'I see,' Sharo says. 'Perhaps the women or the children carry food on these visits. Perhaps in those baskets by the door?' The man looks at the baskets that people use as they shop. They are handwoven and worn. 'It is a practical and expected way to bring what needs to be brought,' he says. 'If a letter were placed in such a basket,' Sharo says, 'a letter that never touched the hands of the basket-carrier, and that letter fixed more problems than it caused, might it be carried?' The man does not speak. Sharo looks behind the man at the shelves, and asks for a packet of Western cigarettes. The shopkeeper takes the cigarettes down. He says, 'Two boys from a nearby village were murdered in Mosul for smoking in front of Muslim men.' Sharo takes a cigarette from the packet, puts one in his mouth, and hands one to the shopkeeper. He lights them both with one match. 'Then it was a black shame on them for not welcoming and protecting those boys who were guests and should have been treated with all the honour, the understanding, and forgiveness and mercy that God demands. I would never forgive such a thing. But I would try not to misplace my anger. These are the times we live in. Which is why we help each other when we can. That way, decent people can enjoy honest pleasures, and the wicked can go their way.' The shopkeeper blows out the smoke and looks at the basket. He gives the most subtle of nods. Sharo places the letter in the basket. The man immediately fills it with supplies, and then calls a woman from the back room. He says something in a language that Sharo does not understand. A woman appears. Sharo nods to her, but she does not acknowledge him. He does not take offence. He does not know their ways. Sharo pays twenty times what the cigarettes are worth, and then leaves. If his front wheel does not slip on sand on the way down the mountain, if the bombs do not fall around him as he commands the turns, if a car does not run him off the road on his way down, and if he has luck and the will of God on his side, then for one hour more he can ride and be free. The woman who collects the basket is dressed as a Yezidi woman, not a Muslim one. Concessions are made to the existence of the foreigners, but the Yezidi are too proud and too formal in their ways to concede everything. They have been here for millennia before the Muslims. Perhaps, with the aid of the god Melek Taus, they will remain here — in peace — after the Muslims have gone. She walks down stairs carved into the rock. She walks beyond the edge of the village to where the valley stone rises, and where the waters run fast and unhindered in the winter beneath the thin ice that collects here. She walks to an old, long-forgotten building. An Ottoman fortification from World War I, it is made of stone and concrete. It is a garrison building. She does not want to know what happens here. She prays it will someday be gone, but she has no expectations that her prayers will be answered. Without uttering a name, without making a sound, she knocks three times on the steel door and then turns to leave before it is opened. There is no need to wait. She knows she was being watched the moment she entered the small pass that leads to the only two outer doors — one to the left and into the main building, and one to the right into the dungeon. If they did not want her to come this far, she would be dead already. She walks back the way she came. She has two kilometres to go. She is old now, and tired, but this is what her body has learned to do. Before the building vanishes into the mountain behind her, she hears a door open, and the sound of the basket scraping against the earth before it is taken into what she imagines is Hell. And why wouldn't she? Where else would the devil live? 30 Thomas Benton is alone, his shoulder causing him so much pain that it dominates his attention and infuses itself into his hallucinations. The only question that holds his mind together is Why am I here? If he can answer this, before the end, he will have achieved something and given himself permission to die. But the pain and the fear and the thirst disrupt the continuity of his thoughts. And his capacity to imagine. He tries to fight this domination by using techniques he imagines a Buddhist might use to meditate: the image of a flickering flame against a mahogany wall; walking along the undulating green hills of the upper coastal path by Dorset; tracking the slow descent of a single drop of condensation on a pint glass on a hot summer's day. Well, a British Buddhist, anyway. When his phone rang in Cornwall and it was Arwood Hobbes on the other end, it did feel — if he allows himself to admit this — as though the cosmos were intervening for the first time on his behalf. Everything he was, and had failed to correct in himself, had finally reached its natural conclusion, and his family had fallen apart. And then Arwood's disembodied voice asked him to come back to Iraq with him. To look for something. To make the dead live again. To make the world complete. And he said yes. Why? A coincidence. An echo. A midday moon in a blue sky. There really was no explaining it. Benton hears a door open to the adjacent room. There is a shuffling sound as something is pulled inside. The door is closed again and bolted. Then the uneasy silence returns. He can see the green dress more clearly now that the sun has risen and the room is illuminated. A warm, yellow light spreads across the ceiling. It will not touch him, but it is good to look at something connected to life. Benton is thirsty. He has tried to convince himself he's not, but to no effect. Whatever the body wants, it does not stop wanting until it gets. He used to want many things. He wanted the MG he once purchased with his brother, Edgar. He wanted Vanessa. It wasn't that her beauty was so overwhelming, or that her eyes glittered like the moon, or that her body was perfect beyond measure. That was for women in magazines. He always preferred three dimensions to two. Vanessa was lovely. It is a term that has fallen from favour, but it still means something particular. Her face was kind and intelligent and inquisitive and warming. Her eyes were healthy and bright and commanding. Her body was the kind that most young women actually have. Vanessa probably saw in it a litany of imperfections when she was naked, but they all went entirely unseen by Benton, because she was naked. What else had he wanted? He had wanted children. They had had Charlotte. They tried for more. After three miscarriages, they called it a day. It had been starting to affect their ability to be parents to the one they had. What else did he want? He had wanted to take the girl in green to the American side of the ceasefire line twenty-two years ago. He failed in that, too. Which is when he stopped wanting things. When Charlotte stood in the doorway and he heard the pauses between her heartbeats, and he could have stepped through the silence between them as though it were an eternity, he knew he could not want her to live and love him the same way he had before. The reason was simple, really. He was too weak. Was this what Vanessa was trying to accomplish — why he caught her in bed with another man? To make him want her again? The door to their bedroom in Fowey was at the end of the carpeted hall. It was very late. He had planned to stay in London that night but came back instead, although not before stopping off at the pub for a pint. He had fallen into a conversation with Lester, and the hours had slipped by. It was a black and wet night under a low sky. Coming up the stairs, he was surprised to find his bedroom door framed in light. He turned the handle quietly so as not to startle her. She'd likely fallen asleep reading a book. He wondered what she was reading these days — John Irving, maybe? The door didn't creak as he slowly waved it open. The table lamp on his side of the bed gave out a weak orange light. When the door was halfway open, he heard a muffled grunt that startled him. Instinctively, he flicked on the overhead light. The inner door to his prison opens. Benton doesn't move. He sees two men walk into the room. One takes a position by the door; the other brings in a folding chair, which he places a metre from Benton. He sits and crosses his legs, settling into a position thought effeminate by Western men. He holds Benton's satchel. Benton looks up into his face. It is Abu Larry again. The man reaches down and unties the bandana from Benton's head. He places his fingers between Benton's lips and pinches the remaining cloth, pulling it slowly from his mouth so it winds like a snake. 'Do you know who I am?' he says. Benton shakes his head. 'No.' Larry removes a pistol from the satchel. It is an ancient gun, a Webley. 'Who is the girl?' His accent is Arabic, but with British intonations again. He sounds educated. His voice is calm. He sounds deliberate and in control of his actions. He looks pitiless and calculating. Benton notices the present tense used in his question. 'We found her by the side of the road,' Benton says. 'I was taking her to Domiz. There is a refugee camp there.' 'Everyone is by the side of the road in Iraq. Why this girl?' 'She reminds me of my niece.' 'I think you're lying to me.' 'I don't feel a strong need to tell the truth to terrorists.' 'I'm not a terrorist.' 'Well,' Benton says, 'you're not a duck.' Larry shoots Benton in the leg. The bullet tears through the muscle of his upper right thigh, missing the femur. His body cannot decide whether to inhale for life or exhale to scream. Then, from deep in his diaphragm, the initial shudder of exquisite pain finds its voice, and he wails. The smell of his own urine fills his nostrils, and tears, from a well of moisture he didn't know was there, burst from his eyes. Of course. Of course this. The shooter sits calmly, resting the warm pistol in his now limp hand. He is speaking softly, saying something. Benton can see his lips move. It is not loud enough to rise above the ringing in Benton's ears. And his accent is too thick. Benton would only understand his own mother's loving voice now. It was always the only voice that could reach him when he was in distress. 'Listen to me. Can you hear me?' Abu Larry claps his hands together. The other man by the door, the man with the Chinese assault rifle, stands motionless. Abu Larry's voice remains calm. 'Look at me.' He uncrosses his legs and rests his boots on the floor. He leans forward, trying to get Benton's attention. 'I said, look at me.' Benton looks. 'See if the bullet went through, Mr Bueller.' 'Can't move. Can't look. Can't feel.' Larry makes a gesture to the man by the door, who then takes out a knife and, standing behind Benton, cuts off his plastic binders. The feeling should be one of relief, but in fact there is even more pain. His arms have not moved in twelve hours. The first repositioning is excruciating. He wants to touch the back of his leg, but his hands do not obey him. 'See if the bullet went through, Mr Bueller.' He looks at the back of his leg. 'Did it go through?' 'You sonofabitch.' 'Good.' He throws Benton a cloth. 'I suggest you tie this around your leg.' Benton ignores the offered cloth, and instead removes a faded red bandana from his jacket pocket and presses it against the exit wound, which is larger than the entry one. He would tie it, but the pain is too great. 'You're a Jew, Mr Bueller. An assassin?' 'No.' Benton's voice is low and weak. The throbbing has started. He needs his strength to hold his leg. Talking drains him. He is forced to listen. 'Does it hurt?' 'Yes.' 'I've never been shot. I have no idea what it feels like.' 'Don't lose hope.' 'Are you thirsty?' Larry asks. 'Thirst is a horrible thing. That is something I have experienced.' 'I'm thirsty,' Benton says. 'Would you like some water?' 'Yes.' 'Me, too. It gets hot in here. Maybe we can find some later. The Jews want to support the Kurds and Druze, and take Arab land away from us. You are here for them?' 'I'm British.' Benton tries to elevate his leg. There is a lot of blood, but none of it is pulsing. He does not know how much blood he can lose before passing out or dying, and he has no way to measure this, in any case. 'I'm losing my blood. Can I have some blood? Or water? Yes, I'd like some water. I'll make my own blood. The Catholics say the wine becomes blood. It's true. Only it's our own blood, not that of Christ.' He looks up at the ceiling of cheap cement and cracked white paint. 'I have a wife named Vanessa,' he says, for no other reason than to be sure it is said. 'She loved me. I was mad for her. We were happy for a long time. Then I faded away from her. My daughter, too. I used to pick out her clothes with her when she was seven years old. Before she went to school. You wouldn't believe how complicated it was.' Then he jerks his head to the left and vomits on the mattress. He moves his head away from it, only to vomit again. He pushes himself away from that as well, and his eyes tear again. He lets them roll down his cheeks without shame. Benton says, 'You killed all those people. All those people in the breadline with the mortar. The people in the traffic jam. The police. They were little more than boys. So many. So very many. I've seen so many die. They say there are sixteen hundred factions in Libya now. Hundreds in Syria. You want a caliphate? Have you no perspective?' Abu Larry taps the Webley against his knee. 'Do you speak Arabic?' he asks in a quiet voice. 'You don't. I can tell. Have you ever noticed how many Arab men speak English when interviewed on CNN or BBC? Barbers. Taxi drivers. All these regular people you care about so much. And yet, when was the last time you saw a European or American ask someone a question in Arabic? You don't speak the language of the people you are speaking for.' 'I want some water.' 'You think you're superior to us. To what goes on here. You kill whoever you need to kill. Men, women, children. You became mighty powers on the bones of your enemies. There is no difference.' The sharpness of the pain is giving way to a debilitating throb and tenderness. He fears the coming of the next wave more than the experience of the pain itself — like stepping on a tack and waiting for the mind to register what the eyes have already understood. 'We're different, all right,' Benton says, catching his breath and regaining himself as he puts pressure on the wound. 'We have done terrible things. But we've responded by trying to make a more humane world. And we see our failures in the light of what we're trying to achieve. To make a better way of life.' 'The only way of life,' Abu Larry says, 'is the Koran.' Herb Reston is on the phone, speaking with the Iraqi government. Herb has historically been diplomatic and has a reputation for having a steady temperament, but reason has its limits. Herb's personal philosophy for getting things done has always been a linear one that starts from the head and works its way down. First, use your brain. Then, trust your heart. If that doesn't work, trust your gut. And when all else fails, it's time to use your balls. The primary reason for his current sinking feeling is that, though well educated in the tenets of Christian charity by his mother, Herbert Reston does not suffer fools lightly. And he is talking to an idiot. 'Kasim, if you tell me where you're going to attack, I'll know if my people will be safe when you do, because I know their location. All I need to know is the time and location of the planned assault. I know it's classified, so give me a window and a zone. That's all I need. I need to see if my people are inside it or outside it, and then I can devise a strategy.' 'Yes, yes, Mr Herbert, but if you tell me where they are exactly, I will be able to tell you if they will be safe.' 'I don't want to tell you where they are, because someone in your military might choose to bomb them, since they are probably located in a terrorist safe haven, and the whole purpose of your operation is to strike them. So how about you tell me where you're planning to attack?' 'Unfortunately, Mr Herbert, it is a military operation, and I cannot share the specifics of the operation, as these are very secret. Very, very secret. So it is better if you tell me where they are. I will tell people the coordinates.' 'Well, the thing is, Kasim, I've seen the Iraqi military in action, and I know a thing or two about how you share information and coordinate. I also know you're mostly staffed by Shiites, and my people are probably being held by Sunnis who used to run this country under Saddam, and they slaughtered the Shiites. So forgive me if I err on the side of caution here—' Kasim turns it around again as though they are bartering over pirated CDs at the market. After five minutes of this, Herb gives up on specifics and tries for generalities. 'Are you attacking into Ninawa?' 'Oh yes, definitely.' 'South of that?' 'Hard to say.' 'North of that?' 'I'm not sure.' 'In the mountains?' 'Maybe in the mountains. Maybe not.' 'Will you be using helicopters?' 'Helicopters are very effective.' 'So are friends,' Herb says, and hangs up. Tigger asks Herb what Kasim said, and Herb gives Tigger a look that means Kasim will not be receiving a Christmas card from the IRSG this year. 'This Iraqi government is useless,' Herb says. 'Would you rather have the last government, this one, or the next one?' Tigger asks. 'The last one was hanged by its neck and deserved it; this one is corrupt, tribal, and hapless; and the next one will make Iraq the world's first terrorist caliphate. Personally? I think we should bring the troops back in, stop worrying about what the liberals say, and recognise we're at war with jihadist Islam and that we need to win like we won against the Communists,' Herb says. 'You want to fight more wars?' 'America will do what it has to do. Because that's the American way.' 'Let me tell you a story, my friend. In the thirteenth century, a Spanish scholar named Don Juan Manuel referred to his country's occupation by the Muslim Moors since 711 AD as the guerra fría. The cold war. It was not a war of swords, but a war of ideas. We are still in this war. But we are winning it, no matter the momentary gains of these ISIL people. You know why? Because they are surrounded by ideas they cannot fight, because they are ideas they cannot answer. On one side are the real teachings of the Prophet — love, kindness, tolerance. And on the other are Western ideas so deep, so significant, we don't even notice them. They are the air we now breathe. And the most significant of these ideas? Romantic love. It is the most disruptive and transformative power in the history of the world. Terrorists are powerless against it. We support love, and they will lose.' 'That is dreamy bullshit.' 'No, no. Consider it. Think of Romeo and Juliet. "Two houses, both alike in dignity," we are first told. Why? Because the houses are the power, and dignity is the currency of that realm. We need to know this so we can understand that what keeps the lovers apart is not a higher justice, but a higher power. And then, here come these two children who defy and disrupt the underlying social order, and who die for their efforts because their humanity cannot survive in concert with that world. The moment Shakespeare makes our sympathies go to them, the system is overturned. Personal love is very disruptive to tribal thinking. And what of Juliet? A young woman? Romantic love empowered her to be equal to a man, to choose her own destiny, to make her own choices, to be in absolute control over her own body and her own heart. It is the first truly feminist story. It validated love, and fuelled a revolution. 'These people, this ISIL, we should fight them, yes. We can bomb them, yes. But that's not a strategy for victory. This is a guerra fría. Victory lies in replacing their social order, which is why they are afraid, and they should be. And our secret weapon? It is not drones. Quite the opposite. It is women. We should free them, educate them, give them power — put a Juliet in every village. They will change the world. This is why Boko Haram is so afraid of the girls and abducts them, why the Taliban will not educate them, why ISIL murders those in Western clothes and who think freely. Women. They are how the West will win. They are how love will prevail.' 'You are so relentlessly French.' 'Thank you.' 'I hate this waiting.' 'I feel the same. But the silence upsets me more. I would rather argue with you.' 'What do we know from Sharo?' Herb asks. 'He made the drop, and got back safely. Beyond that, we're in the dark.' 'What do we know from Clip?' Herb asks. 'I gave them some names, and after doing some checking they've agreed with my recommendation for a communicator. He's a professor of dentistry at Hawler Medical University in Erbil. He's from a village not far from the Sinjar Mountains. He's Sunni, and his wife is a Kurd. Clip said that if we protect his identity, his voice will not implicate him. Apparently, his accent is so hypnotically generic that some of his patients pass out without anaesthesia.' 'Why did he agree to do it?' 'He hates the jihadists, and Firefly is going to pay him. It's a win-win for him.' 'We trust him?' 'We trust him to convey information responsibly, yes.' 'When are we supposed to hear from him?' 'As soon as he hears from the hostage-takers.' 'Any other news?' 'I learned recently that the can opener was not invented for a full eighty years after the invention of the can.' 'What's your point? That nothing is inevitable?' Herb asks. 'Maybe. Or that even the inevitable takes time.' 31 Märta has returned to the house. She is sitting on the red thinking chair, hoping it'll live up to its name. Herb is leaning against the countertop where Märta stood last night, and Tigger is sacked out on the sofa. Clip is on the speakerphone. Tigger has heard from the dentist. There are decisions to be made. 'What did he say?' Märta asks Tigger. 'He said he'd been contacted. He said the man on the other end of the phone did not sound Iraqi. He sounded foreign, perhaps Yemeni. He wasn't sure. The dentist said the man was calm and professional, and therefore very scary. The dentist explained to this man — who has no name — that he is only our communicator. He said he does not work for any party, is doing this as a favour, and he has no power to make decisions. After he said this, the man on the other end said that he will not speak with a go-between and will speak only to the decision-maker himself. Our dentist explained that this is not a better solution, because the organisation forbids such direct contact. It is beyond his control. This way, with his own involvement, the path is more clear for a settlement. Then he asked if the hostage-takers had any requests or demands they wanted him to pass on. The kidnapper said yes, that he is to explain that if the decision-maker does not meet him face-to-face, he will kill everyone to help fill his quota. The dentist asked for proof that our people are alive. The man ignored him, and said that we are to come to the village on Sinjar. The market we used for the letter drop, he explained, also serves tea. We should come there, and then they will talk further. That was all. He gave us the day to make a choice.' 'What does that mean,' Märta asks, 'about making a quota?' 'ISIL,' says Herb, 'have apparently become Terrorism, Inc. They actually put out reports of the number of people they've killed, how, and when. In August, they published one detailing their attack metrics. I don't even remember the categories, but they're keeping numbers on their assassinations, bombings, suicide-vest attacks, cities taken over, IEDs, houses burned — you name it. That was from the 2011–2012 period, when most of us had barely heard of these guys. And there's PR material now in English, profiling suicide bombers, giving bomb-making instructions, explaining the best places to kill the most civilians, and quotes from the Koran explaining why all this is a grand idea. It's never been easier to step into their minds and lose your own.' 'What are we going to do?' Tigger asks, his leg bouncing slightly on his knee. 'We go to the meet, we probably die. We don't go, our people almost certainly die.' 'If we show up,' Herb says, 'we are giving them more hostages or more bodies. Going there is out of the question. Clip, you still on the line?' 'I'm here, Herb,' a voice confirms from the loudspeaker on the computer. 'You're right. You can't go. Maybe we can offer them money.' 'We don't negotiate with terrorists,' Herb says to Clip. 'And that's not just my opinion. UN resolution 1373 was passed after September 11, and we're supposed to comply with it. It explicitly prevents the financing of terrorist organisations. We're not supposed to pay them off. We're not supposed to negotiate with them.' 'Everyone is paying these people off,' Märta says. 'You used to be Red Cross,' Herb says. 'They have never once paid to get someone back. And their people are safer for it.' Tigger makes a wildly exaggerated arm movement and blows a raspberry through his lips that could have filled a balloon. 'We are negotiating with terrorists! We're aggressively doing our very best as a team to negotiate with terrorists. No, we don't want to give them money or more hostages, that much is true, but please, spare me the high-level legal rhetoric. This is the real world. Here in the dirt. Merde.' 'I'm meeting with them,' Märta says. At which point, the three men fall silent. 'That is out of the question,' Herb says. 'That's right. You can't possibly,' Tigger says. 'And you are a blonde woman. They would love to kill a blonde woman after raping you to death.' 'I just sent a motorcycle medic into the lion's den, and he's home again,' Märta says. 'The Kurds will not deliberately fire on us. Neither will the military. That leaves Sunni tribesmen, who might, and ISIL. If ISIL are extending the invitation and think they might get something out of it, it makes sense to conclude that we have negotiated access to them. The best protection would be to use a marked vehicle and to let everyone know who we are and why we're there, and make sure they're OK with it. You boys are missing the big move here. We have negotiated access.' 'If the ICRC has better access,' Tigger says, 'why not use them?' 'Louise won't let us in one of her vehicles until we have an agreement with the kidnappers. We have an invitation, not an agreement. This step belongs to us. It's only one step away.' 'I'll go,' Herb says. 'No, I'll go,' Tigger says. 'It makes more sense.' 'It makes no kind of sense,' Herb says to Tigger, 'because you're about as scary as Linus and his blanket. Also, and I'm sorry to have to say this, man, but your accent in English is not intimidating. Mine is. When people hear me, they think of Samuel L. Jackson at his most unholy. When they hear you, they think of Pepé Le Pew smoking weed.' 'Herbert,' Tigger says, 'you are not scary. These people have never heard of Samuel L. Jackson, who is also an actor and not an assassin, by the way. So he is not scary either. And I happen to know that you are in fact a giant teddy bear. You may think that having dark-brown skin makes you scary, but it does not. It makes you a very popular colour for a teddy bear.' 'I'm scary.' 'Uh-huh. I was in the movie theatre with you and your son, where you cried when little Nemo heard his father's voice for the first time after their journey apart.' 'My biceps are bigger than your thighs.' 'Your son, incidentally, did not cry.' 'OK, you two, knock it off. I'm going,' Märta says. 'The only question is whether I'm going alone or not.' 'Oh, Märta, please,' Tigger says. 'Your very presence would be an insult to these people. I hate this Scandinavian quality you all have, especially that face you all make when confronted with your own naïveté.' 'What face?' 'That face — the face of fake confusion you hide behind to pretend you don't even understand me, so that your Scandinavian identity of moral purity is not threatened. 'The Finns are different,' Herb says. 'They never speak,' Tigger says. 'That's the old ones. Young ones never shut up. Something's going on up there.' 'I feel as though we're getting off track,' Clip says through the speakerphone. 'Yes, we are,' Märta says. 'It doesn't matter that I'm a blonde woman, or that my hair is exposed, or anything else, for that matter. I'm the decision-maker. I'm the one they want to meet. And the Finns aren't Scandinavian. They're Nordic, but Finnish is from a completey different language group.' 'Let's just suppose,' Tigger says, 'that you go. You meet. You sit across from one another. You and the killer — the one who just bombed the security forces, and murdered civilians with a rifle to make a quota, and left their bodies to rot. You order tea. It comes. Describe this conversation to me. I'm having trouble imagining it. I'm having trouble imagining any scenario, except for you being thrown into an oubliette or worse.' 'I have an idea of how to make the best use of that conversation,' she says. 'What kind of idea?' 'A bold one.' 'What does that mean?' Herb asks. 'Do you remember when we met?' Märta asks him. 'Yes, yes. Chicken Little had it backward — so what?' 'I made Herb open the door by going over his head.' 'I don't see the relevance,' Tigger says. 'I don't think our people are dead,' Märta says. 'I think our people would have been killed right away and left there, like the others, if that was the goal. But it wasn't. So that means they decided to make use of them. I think these people want to gain from that somehow, and right now they're testing the waters to see what use they have. But they need to stay in control. I think the right move is to get close, like they want us to, and then take that control away. When they're off balance, we'll have the advantage, and then we can solve this. At some cost, but we can solve it. That's my strategy.' 'What does this plan have to do with having gone over my head twenty years ago?' Herb asks. 'That's where the boldness comes in.' 32 Märta is emphatic about Herb not coming. She tries to argue against Tigger coming, too, but the men shut her down so completely she knows that her authority ends there. The security guard, for reasons of his own, breaks from his sleeping regimen and washes the Land Cruiser, leaving the emblem of the IRSG shining brightly. If anyone wants to shoot at it, the rounds will easily penetrate the factory-standard sheetmetal of the Japanese consumer product, and the logo — glittering — will make an excellent target. But, of course, it always has done. The vehicle is packed up for the seven-hour round-trip journey.Märta oversees the communications equipment, insignia vests, and provisions, while Tigger calls Ahmed in the radio room. When Tigger calls to report their trip and explain their route, Ahmed tries to be as helpful as possible while nibbling his beloved sour -cream-and-onion potato chips. Hosni, in management, has tried to explain to Ahmed the inappropriateness of a radio operator eating potato chips — which he tried to prove by eating potato chips during the conversation to illustrate the point — but Ahmed likes them, and Hosni isn't around very much, and everyone likes Ahmed because he is both friendly and trying to save their lives. And because Ahmed cares about the people in his charge, he tries to be as honest and delicate with Tigger as possible. He does this by yelling at him: 'You are a crazy man! There will be a big attack today. No one knows where, no one knows when. Top of Sinjar Mountains and back is eight hours. That's eight hours on the road in the middle of a battlefield.' 'It's seven hours.' 'Those are seven Iraqi hours. Iraqi hours are different from Western hours. Not all Iraqi hours are the same length. And not all Iraqi hours are consecutive hours. It could take days to go seven hours. You don't want to be out in the field for seven Iraqi hours.' 'I think—' Tigger says. 'No, no, no. I think. I think for you. Here is what I think for you. There is one road up the Sinjar Mountains to your location. You get stuck behind a big truck? What then? You could be on the mountain all day. All night. What if your truck breaks? Flat tyre? You think the tow truck will come get you? What if you come down the mountain too fast and go off the road? Or one of the big trucks is overloaded? They are all overloaded. No brakes, no shock absorbers. What if it takes a turn too widely and can't back up? Or the transmission fails? Or there is an IED. Or ten IEDs? And, by the way, they are not so improvised anymore. People really know what they're doing. They are just EDs. This is what it is to take a drive in Iraq. Why you think people say inshallah after everything? You think everyone is a jihadist? You think everyone is even religious? You think everyone is even Muslim? No. Shiite, Sunni, Christian, Jew — everyone says inshallah, even if to different gods. You know why? Same road!' 'We need to go.' 'You make me nervous in my stomach, Mr Tiger.' 'Tigger.' 'That's what I said — Mr Tiger.' 'It is pronounced "Tigger."' 'It is not pronounced "tiger"?' '"Tiger" is pronounced "tiger". But "Tigger" is pronounced "Tigger,"' Tigger says. 'Whoever you are, don't go. Too many of my friends are dead. My soul cannot stand any more sadness. And I have to stop eating so much. This will not help me.' 'Smoking helps.' 'You make jokes, but please, Mr Tigger, today will be a heavy day for many people.' 'We will be careful.' 'And be safe. And Ms Märta. She is very respected. Very loved here. You keep her safe, too.' 'Inshallah, Ahmed. Inshallah.' It is a three-hour drive to Sinjar, through Tal Afar, and at least another hour or more up the mountain, which is longer than planned but still early for the meeting. Märta contacts the dentist from the car and tells him to let their interlocutor on the other side know that she's on her way with a driver because she doesn't drive, which is a lie that will have to do. He is to inform his people not to obstruct or otherwise delay the vehicle, which the dentist is to describe carefully. Beyond that, there isn't much to do, and listening to music is too incongruous. Tigger communicates with Ahmed in the radio room with the precision of a former military officer. She finds it soothing. Too many young NGO staff scoff at formal systems and procedures, or else giggle, and don't understand the importance of them. She's met young project-officer teams in far-flung locations around the world who haven't even registered their presence in the country with their own embassies, let alone become certified in basic security in the field or advanced security in the field through the UN's free and online training courses. Not with Tigger and Herb. The giggling ends when you watch someone die who didn't need to if they'd followed procedure. They both have. Of course, all this faith and respect for procedure is quite rich, given that she's currently breaking every rule in the book by putting the decision-maker in touch with the hostage-takers. They drive past the Mosul Dam, built by a German-Italian outfit, with its four massive towers rising from the turbine generators. It stands over one hundred metres tall and is the fourth largest in the Middle East. Märta and her NGO have been watching it since 2007, because of a report from the US Army Corps of Engineers concluding that it has an exceptionally high probability of failure. If it breaks — or someone blows it up — it will kill half a million people. They leave it behind, and drive through Tal Afar. It is different, which is not to say better, with the Americans gone. There has not been a moment of peace here in over a decade, though the level of violence has gone up and down. It all feels dangerous: driving is dangerous; stopping is dangerous. There is no way to know whether the dentist's message will produce the hoped-for effect, or how far ISIL's reach extends. Someone might jump out at any moment and capture her and Tigger, just as they captured Benton and his party. Safe passage will be the result of either careful planning or dumb luck. She'll never really know which it was. Märta is feeling nervous. She's in control, but she's nervous. She has too much information and knowledge, and too vivid an imagination not to be nervous. There are also not enough distractions. Without something to do, her mind is building highly imaginative scenarios of death and destruction — the kind that never announce themselves, are never predictable, and that happen in a sudden burst or explosion of hyperactivity from out of nowhere, followed by nothing. The kind of events that happen in fits and spurts. That's why more PTSD is being produced by this war than others. The danger is permanent, but it only happens in fits and spurts. Fits and spurts. It sounds funny, doesn't it? Fits and spurts. She says it aloud. She hasn't spoken in an hour. 'Fits and spurts.' 'What?' Tigger asks. 'It's an American expression. "Fits and spurts." It means something that happens in a sudden or jumpy manner. That's how violence happens here. In fits and spurts. They're funny words, aren't they? Try and say it fast: "fits and spurts". Sounds like a law office for the porn industry. "Good morning, you've reached the law offices of Fits and Spurts, how may I direct your call?"' 'Are you OK?' 'It's funny, right? I'm not losing my mind, am I?' 'I was thinking about something else. Besides, the phrase is "fits and starts," not "spurts". But who am I to judge whether you've lost your mind? I'm right here with you,' Tigger says. 'You were thinking about something else? You weren't thinking about how funny the words "fits" and "spurts" are, and how much funnier they are when you say them together?' 'No.' 'What else is there to think about?' 'You always get like this before something difficult.' 'I'm sorry. It's... after all this time, I still can't believe people act like this.' 'Like I said, you are Swedish. You cannot stop being yourself.' 'I've been gone from Sweden for so long.' 'Doesn't matter. After the age of twenty, we don't change.' 'You believe that?' 'We do not change. We make better choices, perhaps. Get smart. Wiser. More experienced, certainly. But I will always be French. You will always be a Swede. There are worse places to come from. You can see some of them if you look out your window.' 'I think about these orphans. No parents. Refugee camps. What will they become?' 'The answer is in the question,' says Tigger. 'They will be orphans and refugees. It will go into their hearts. It will become what they are. It is a neglected fact that, in thirty years, Iraq and Syria and Afghanistan, and Congo and Somalia, they will all be run by orphans. By people who never knew a real home. They will be the people who will form the governments. One can only imagine such a world, because such a thing has never been.' 'That's a dark answer.' 'I didn't create the answer. It's true, whether I say it or not.' Märta's giggles have passed, and she becomes nervous again as they leave Tal Afar and make toward Sinjar and then the steep climb up the mountain. She hates twisty roads. Such uncertainty. Crazies coming the other way. The Iraqis are terrible drivers, whatever the men think of themselves. The Swedes can drive in the pitch-black of a December night on ice, but these people can't follow the lines in the sand. It's as though they have to argue with everything. At the outskirts of Tal Afar, Tigger radios in their location to Ahmed again. It is a public channel. Ahmed's relief and nervousness are broadcast to the skies and the clouds, and the rocks and the sand. 'You're quiet,' Märta says, lighting a cigarette and opening the window more. 'There's no smoking in the vehicle. It's IRSG policy.' 'There's an exception, subparagraph 2B, which says that when programme managers are meeting with people who cut off other people's heads, they're allowed to light up and use the ashtray for its God-given purpose. Besides, the Geneva Conventions say POWs have a right to cigarettes. I figure that applies to us.' 'We're prisoners of peace. Pas la même chose.' 'I can't tell the difference anymore.' 'Oh là là. A Scandinavian becomes cynical. A milestone. Perhaps now you are ready to know the truth about Santa Claus?' 'Why are you so quiet?' she asks, blowing the smoke out the window. 'You usually start waxing on about philosophy when you're anxious.' Tigger does not turn to Märta, and continues to take one steep turn after another without comment or expression. 'I am married with two daughters,' he says. 'When I was young, I wanted a life filled with travel and girls. Now, as fate would have it, I have achieved exactly that. But my needs have changed. What we are doing today is very risky. I think it is too risky, though I do not think it is wrong. What we are doing is too much like heroics. And I don't like heroics. I like systems, and structures, and policies, and procedures. Heroics are not for me.' 'What about Herb? He has a son. He wanted to be here more than you did.' 'Herbert believes that one man can change the world.' 'You don't?' 'Herbert is another kind of creature. He is a righteous man. I am not. His righteousness has a fire. He would prefer justice. He would be the hand of God, if only God would ask. He lives as an example to his son. Me? I want to be a father to my daughters, not an example. I love him like a brother, but I am glad he is not here now.' Hours earlier, immediately after Tigger and Märta had left, the security guard closed the gate, and Herbert Reston retired to Märta's living room to make a call he didn't want his colleagues to hear. 'Are we ready for this conversation?' Herb asked Clip when he was sure they were alone. 'I'm here,' Clip said. 'Tigger and Märta are gone. So it's like this: this is a stupid plan. I don't have the faith in it they do, and I have no faith in the rationality of the people they're about to meet. I think there's every reason to believe they're walking into a trap. And right now... we're blind.' 'You want eyes on,' Clip said. 'Damn straight I want eyes on. They vanish up there, they are gone. These terrorists take our people someplace else, they are as good as dead. We are never going to get as lucky as we are right now with accurate GPS coordinates of our people. Arwood Hobbes must have done some pretty fancy footwork to get us those numbers. I don't want to waste the small tactical edge we have right now. Here's my question. With your resources, is there even a scenario where we can get them followed at this late date?' 'We might be able to watch them,' Clip said. 'How?' 'We know some people in Tal Afar. One of them is a blogger, and he's very good. He goes by the name of Yusuf — no other name. He posts updates in Arabic and English about the state of affairs there. I think he's in his late twenties, a rebellious young man with a good heart. We follow his feeds to get updates on the Arab street, and we pay him six thousand dollars a year to help him continue the work. That's a fortune around here. The international media doesn't have the same access, and they don't pay consistent attention like he does. We pay people in about a dozen cities, and Tal Afar is one of our target cities. Usually we just leave Yusuf alone and let him do his thing, but sometimes he'll follow up a question we have to make us happy. He's a bit of a daredevil, and I think we could get him to tail your people.' 'Fine, do it. But it's your idea and not ours. I can't implicate the IRSG in this. Got it?' 'We understand. It would simply be a blogger following a story. There's no connection to you.' 'And this is between us. I know you're close with Tigger, but he can't know.' 'I understand that too,' Clip said. 'How fast can you make this happen?' 'Very fast. We need to move quickly, or there will be a gap period when your team arrives. And that would be suboptimal.' Herb is silent for a moment. It is deceptively peaceful in Märta's living room, especially when it's empty. It feels like a sanctuary rather than an operations centre. The tranquility of the room is contrary to the moment's urgency and the need for decisiveness, and the distance between his perceptions and his knowledge makes him sit in the thinking chair and pause for a moment. 'Tigger says you were in logistics in the navy.' 'Yes, I was.' 'How'd you get your name?' 'Clip? I used to carry a clipboard around. Sailors can be pretty literal-minded.' 'I was infantry,' Herb says quietly. 'When it came to logistics, we didn't think you guys really understood it. See, from our point of view, if you sailors want six thousand people to move a mile to the east, the captain shouts an instruction, a guy turns a big steering wheel, and six thousand people on an aircraft carrier move a mile to the east. In the army? We've got to mobilise six thousand independent minds, bodies, and souls who have twelve thousand feet among them. And those feet have twelve thousand socks and twelve thousand shoes that have to be found and put on before they can start walking. The navy does not impress me with its logistics. So I need you to take this opportunity to win my confidence about this. Got it?' 33 The longer they ride up the mountain, the more nauseous Märta becomes. The Land Cruiser rides high on the road. It prefers straight lines, dips, and rises. It does not perform well in turns, and its body rolls, turning the trip nautical. Tigger has engaged the optional four-wheel-drive system, and stays in second gear as a compromise in having to choose between speed, power, and torque. Tigger knows little about the Yezidi who live on Mount Sinjar. All he knows for sure is that they have been there since the time there were gardens hanging here. As he finally rounds the bend at the top and comes into what passes as a village, he is a bit ashamed to wonder what they've been doing all that time, seeing as they don't appear to have made tremendous progress in their standard of living. But, of course, their lives and history are a mystery. Like the Druze, they do not speak to outsiders about themselves. This strategy, unfortunately, has never worked in their favour. Their mysterious ways have only engendered mistrust and hostility. As they roll slowly into the village, Märta feels as though she is being watched. The ride, at least, is over, and that is good, because the randomness of an accident has passed. Now, at least, comes a deliberate and social risk that can be managed. That is the kind she prefers — the kind where experience, relationships, and judgement have a chance to shape the outcome. Physics and engineering alone — the removal of the human element — that's a nightmare for her. The village seems abandoned, though she knows it is not. She should have called around and secured an invitation from the village elders. That way, at least, they would be welcomed here. As it is, she is intruding. And, as intruders, she and Tigger will be viewed with suspicion, which only invites challenges she doesn't need now. It is always best to be invited when entering a dangerous place. However, there might still be a way to shut that down before the meeting. 'Pull in over there,' Märta says to Tigger, pointing at a small market with fruit outside the door. 'You're going in?' 'I want to introduce myself.' 'The meet is close by. Around the corner,' Tigger says. 'We don't have time for long Arab chitchat sessions.' 'A little respect can go a long way if people haven't made up their minds yet. Go park the car. And Tigger... they aren't Arab.' Märta opens the door and steps into the warm day. The air is dry. There is a breeze through the hills. The terrain is rocky. Märta steps into the market, and finds it empty of patrons. There is a man behind the counter. There is a subtle smell of cigarette smoke that grows more intense the deeper she walks into the dark shop. The shelves are half empty. There are canned goods from Lebanon, Egypt, and India. Lazy bags of lentils and rice droop from the edges of wooden shelves. She greets him in Arabic, and he responds in kind. His voice is flat and weak. She asks if he speaks English, and he shakes his head. She explains, in simple Arabic, who she is. He nods. She is certain word has travelled here. He knows more than she does at this point, but the most valuable relationships in war zones are among those who share information across party lines. She tried explaining this to the Americans during their civil-military cooperation meetings. They offered money and roads to win hearts and minds, and kept information to themselves. But who needs a road in a year's time, when the danger is now? 'Time,' she had said at the CIMIC meetings, 'does not mean the same thing to you as it does to them. It literally does not work the same way. Until you understand time, you cannot understand any concept of development.' They said her comments were academic and intellectual, so they ignored her and continued the planning process. What she says next she has never said in Arabic before, so her grammar is awkward. What she intends to say is, My people are here. They want to leave. I am meeting those who have them. I will go as soon as I can. What he understands her to be saying is anyone's guess. The man nods. She wishes him peace, and leaves. When she walks out of the shop, she is back on the only main road through the town, which is a narrow road. The town grows larger and more populated the farther they travel west, but here, at the eastern edge, there is almost nothing. Across from the shop is a steep and rocky outcrop that rises to a higher summit. Built from boulders and stones, it may be the ruins of an ancient civilisation, or the raw material for the next. There is not a soul on the streets. To her right, she can see the back of the white Land Cruiser. Tigger is standing behind it, opening the glass section of the back and removing their bags. Otherwise, nothing. She feels, though, more strongly than ever, that she is being watched. The empty hills feel alive. They feel dangerous. Orcs and trolls and other creatures from Middle-earth threaten to spring from their hiding places and descend on her, tearing her limb from limb, and dining on her entrails. As she starts to walk toward Tigger — who glances up and sees her — she catches a glimpse of a figure in the hills to her left. She is afraid to turn, and yet she does. There, only twenty metres away, stands a man in a hooded cloak. The sunlight illuminates half his face. A living statue, he looks about thirty years old, with dark and brooding eyes. He has no beard. There is a scar that runs down his face from his left eye, all the way to his chin. Too shocked to speak, she stands still and exposed. The man smiles at her, and steps backward into the rocky wilderness to disappear like dust passing out of a sunbeam. She stares at the space in which he once stood. He does not reappear. 'Märta?' Tigger calls out. 'What?' 'Ça va?' 'Yeah, I'm fine.' Märta walks backward, and turns to Tigger when she draws close to him. 'Did you see that man?' she asks. Tigger looks to where she points. 'No. You think it was our contact?' 'He smiled at me.' 'In that case, I doubt it.' 'He did. I'm sure of it.' 'The shop with the tables is over there,' he says. 'It is time to go.' The street runs south to north, and the Land Cruiser sits on it like a magnetic needle. The high hills cast a thick shadow over the road, but there is a gap in the rocks above, and that sliver of light makes the café glow in the midst of shadows all around. Märta and Tigger sit down together on the same side of a small, plastic, rectangular table. There are small squares on the table that feel like plastic, but claim to be napkins. There is a plastic ashtray with slots for four cigarettes. There are three tables in all. A bright-blue door opens into a black and unlit room of an adjoining concrete building. Thus far, no one has come out of it. Tigger radios in their location to Ahmed. He deliberately turns the volume up so the crackle and hiss of the handset unmistakably echoes and travels down the street. He shares his call signs and Märta's. He notes their arrival time at this new site — now dubbed Romeo 5 — that Ahmed has added to the maps. No one from the UN ever comes here. No NGOs have passed through here, according to the records. It is terra incognita. 'We didn't set a time,' Märta says. 'How will they know we're here?' 'They already know.' 'I suppose you're right.' 'Maybe you should make sure your phone works. Phones are all different. What's true for one—' 'I have a damn signal, Tigger, OK?' 'I'm sorry.' He reaches into his bag to remove a cigarette, but thinks better of it, so returns the pack. 'There really is nothing to do now but sit here and hope we don't get shot. Should we do that in silence, or would you like to chat?' 'Herb would have said something reassuring,' Märta says. 'I suspect that's true.' That is when they hear the first helicopters. They are distant. There are several of them, from the sound of the rotors, but their sound is impossible to track in the rock and concrete surrounding them. Wherever they are going, they will be carrying ordnance and orders. A man steps out of the dark doorway of the market in a dirty robe that hangs to his feet. He wears a blue Western-style blazer that is fitted for a stranger. He does not look at his two patrons. Without acknowledging them, he unfurls the awning so it extends well beyond the three tables and blocks them from the view of whoever might pass or linger above. He walks to their table, and wordlessly takes a wet and filthy rag from his pocket and rubs it across the surface of the table, leaving a grey streak of droplets behind that immediately evaporate into the hot day, leaving the table identical to the way he found it. He then leaves. Tigger, ignoring the man, has turned his closed eyes to the sun, and washes his face in the light. Märta envies how much it refreshes him. The man returns to them with tea for three. He retreats into the building quickly, and closes the blue sheet-metal door behind him. 'Three cups. Here we go,' Tigger says. Tigger folds his fingers together. He has walked into many different conversations and spoken to many hostile leaders — youth leaders, elders, tribesmen, angry military staff. Like stage fright, it can be managed. This feels untamed, though. Colder. 'I'm having some tea. You want some?' he says to Märta. 'It's a diuretic. It makes no sense to drink tea in this circumstance.' 'It's calming. And it is a diuretic only if you consume three hundred milligrams of caffeine in the same sitting. An average cup has fifty milligrams. That means it produces a diuretic effect only if you drink six cups. Personally, I think it's the six cups of water doing it, not the caffeine, but I am no doctor.' They come — three men, two of them armed with eastern-bloc assault rifles that Russia has been pumping into the region since 1955. The third one carries no weapon. They approach from the main road, and walk toward them with the sun at their backs. 'Game on,' Tigger says, sipping his tea. And then, behind those three men, come three others. Two of them, with weapons, are pulling along a third man in the middle. His head is covered in a black hood. There is a halo of sunlight behind him, turning the hood blacker. The unarmed leader takes the seat across from Märta and Tigger. His eyes are set. Märta senses that what passes before those eyes will not affect their vision of the world. Märta pours tea into the man's cup. He does not pick it up. The leader is the first one to speak. 'You know this man?' One of the hostage-takers yanks the hood from the captive's head. He is a young man in his twenties, has a ponytail, and is clean shaven. He has been badly beaten. His stylish clothes are dirty. Tigger and Märta look carefully at him, and turn to each other. Neither has seen him before. 'I came here for four people,' Märta says. 'Three men and a girl. This man makes me think you don't have my people, and that we should leave. You obviously have other business.' Märta makes to stand, and Tigger stands as well, without saying a word. The man across from them raises a hand and signals them to sit. Then he nods to one of his men, who withdraws an automatic pistol and places it against the man's temple. The captive's shoulders rise and he whimpers, but he says nothing. 'So if I kill him, it means nothing to you?' the man says. 'He says he is a journalist. Writes stories for the Internet. You say he is not with you?' 'It means everything to me if you kill him,' Märta says. 'Our work is committed to saving human lives. All lives. The purpose of this conversation is for me to recover my people. If your first move in this conversation is to insult us, to harm someone else, and change the purpose of our meeting, then nothing will be able to continue. I'm not here to be intimidated. I'm here to talk. And since he is not one of my people, I'd like some proof you have them. I assume you have their names. At least give me those so we can proceed.' The leader nods to the man with the pistol. Immediately, the man shoots his captive in the temple. Blood arcs from the wound, and he is dead before the sound of the gun reaches his ear. His limp body is collected by his executioners and dragged back the way they came. Märta's heart races, but she does not stand and does not move. Though her voice is weak, she says, 'Do you have what I want, or don't you?' 'They aren't here.' 'You could have anyone. I don't know you.' He nods. He reaches into his pocket and withdraws a piece of white paper taken from the pages of a child's school notebook. He reads the names aloud. 'Adar al-Kaysi. Jamal al-Khedairy. Ferris Bueller. And'— he checks his note again — 'Inigo Montoya.' Tigger shakes his head. 'These are not your people?' the man asks. 'Those are our people,' Tigger says. 34 When Arwood was stuck in the cell with Benton, he'd wondered what was behind the inner door, if only because, after so many years of game shows, he had no choice but to wonder what was behind curtain number two. It turned out that when they finally dragged him through that door, there was nothing behind the proverbial curtain, because it led first into a small antechamber or guardroom, and then outside to a courtyard that could once have garrisoned a company of men and their horses. Outside, in that courtyard, Larry shot into the air as a signal or warning — a message in a language Arwood did not speak. Maybe it was a signal to someone. Maybe it was to make Benton think Arwood had been killed. 'I'm not sure there's been anyone to tell you guys, as you live in kind of a closed-off world that only reads its own press,' Arwood says as he is pulled across the courtyard, 'so just in case you don't know this, you are in fact a bunch of complete fucking arseholes.' What this journey behind the curtain has taught him is that the room where he was kept with Benton is but one corner of an old military fortification. Of the four square towers, only his holding cell and the one directly across from it look intact. The others were bombed out and ruined long ago. Connecting these four corners are castle walls. Arwood looks up as he walks, and views the mountains to the west. Ahead of him is only the wall. Beyond that is a clear view north into the plains in Ninawa that he cannot see. Long ago, this fortification provided a high-terrain advantage — an Arab Masada. Later, when man took to the skies to kill from above, and war was fought from the wings of eagles, the advantage was lost. As Arwood walks, he imagines the view of this fortress from inside the cockpit of an A-10 Thunderbolt — a plane that many call ugly, but one that Arwood has found stunningly beautiful since he was a boy. He made one with his uncle. He studied the specs. What might it be like to hear the 1,100 rounds of 11-inch-long 30mm tank-killer bullets ripping into these walls at four thousand rounds a minute? He smiles at his captors as he imagines those aerial gunfighters lingering over the fortress, giving close air support to onrushing infantry — flying low and slow, distinguishing friend from foe, getting their chins into the fight, and blowing these people to hell. Inside the next room, he is tossed onto the floor. Half an hour later, Abu Larry comes in for a chat: he wants to know Arwood's name and who he works for. Arwood explains that he is on assignment for Wallpaper Magazine to write an exposé on the interior design of terrorist holding cells. 'And I've got to say,' Arwood adds, 'I love what you've done with the place.' Abu Larry shoots him in the leg. The bullet rips through his quadriceps. Arwood is then uncuffed, and allowed to tend to the wound. He is left alone, and there he sits for hours, thirsty beyond belief. Later, in the blackness of that night, the door opens, and Adar is pushed at him. He rushes to her as best he can, and holds her face in his hands. She starts to cry when she sees him. He turns her head, and examines her scalp, neck, and shoulders. Though it is against every local code of behaviour, he turns her around and lifts up her garments, to reveal her bruised but unpunctured back and then belly. She does not resist him. When he is convinced she isn't injured or bleeding, he again sits on the floor, and rests his body against the wall. She sits by him, as she did on the Ural. 'I'm sorry about this,' he says. Adar does not speak. 'Did they touch you?' Adar still does not speak. Later, they toss in Jamal, too. He has the same gunshot wound as Arwood. 'You OK?' Arwood asks. 'Of course I am not OK. They shot me.' 'Have you seen Benton?' Arwood asks. 'No.' Jamal explains that they gave him Adar's dress to stop the bleeding of his wounds. They had told him that his companions were dead. Jamal said he was happy to see them, but he does not look happy. 'Did they ask you any questions?' Arwood asks. 'My name. Who I worked for. If I was sent to spy on them.' 'Uh-huh,' Arwood says. 'Do you think they are going to kill us, Mr Arwood?' Jamal asks. 'I think that whatever is about to happen is going to happen soon.' He calls himself Abu Saleh. He talks at Märta and Tigger for twenty minutes about the imperialist West, about the treatment of the Palestinians, about the will of God, about the suffering of his people, about the meaning of jihad, about how Muslims must live by the word of the Koran, and how no power on earth will ever stop that from happening again, and how Märta and Tigger are now his hostages. He explains how ISIL in Syria has new needs that separate it from al-Qaeda in Afghanistan and Pakistan. He says there will be a caliphate again. And the West will shudder. Märta has never seen a man shot before. She does not know whether Tigger has, but she is glad he is the one to talk. 'Time is wasting,' Tigger says, sounding unimpressed and uninterested. 'I suggest you tell us what you want, because we have a call scheduled at eight-thirty. And if we do not make that call at eight-thirty, then this conversation is over, and there will be consequences for everyone involved.' 'You will give me your telephones now.' Tigger, conscious of the time now and the window that is about to close on their chances, looks at Märta and tells her to place the call. Abu Saleh raises his hand to signal his men to come. Märta dials. Tigger looks up, expecting to see two assault rifles in his face, but is surprised to see only the calm street. The two henchmen are no longer at their posts. They no longer seem to be anywhere. Abu Saleh looks at Tigger, and registers the look of confusion. He turns to look for his men, and finds them gone. He shouts in Arabic for them to come. Märta has dialled, and the phone rings. 'Put it on the speaker and turn up the volume,' Tigger says. Abu Saleh, irritated for the first time with his new loss of control, shouts again for his men. 'No one's answering,' Märta says. 'There is no Plan B,' Tigger says. It is 8.32 a.m. Yelling something in Arabic, Abu Saleh, certain his men are not coming, bursts to his feet and yanks a hidden pistol from his belt, and makes the mistake of leaning across the table to place the barrel of his gun against Märta's heart. Tigger is no longer in the military. When he was, he served in intelligence. He had no interest in joining the special forces, no compulsion to prove his manhood through brute force and sustained discomfort, and he did not believe that most conflicts could be solved by violence. He was a thinking soldier, and liked reasoning his way to victory. Abu Saleh, sensing that Tigger is a man of talk, has made the error of equating that with weakness. Abu Saleh is a tall man. Like Osama bin Laden was, he is spindly — not unlike Tigger himself. So when his Webley is extended across the table, and the edge of that table meets Saleh's legs at mid-thigh, Tigger has little trouble using his own left hand to grab Saleh's gun wrist and — rather than pushing against him — twist the man's body, using inertia to pull him over the tabletop and flat onto his stomach, in a motion as smooth as dance. With Abu Saleh prone, Tigger immediately twists his wrist to the breaking point while tucking Saleh's arm into the pit of his own. With Saleh's elbow and wrist painfully locked, and the weapon pointing harmlessly into the distance, Tigger bends his hand back until the gun comes loose. Holding it in his right hand, he presses the barrel of the pistol into Abu Saleh's temple without changing his own body position. 'Oh, this is just swell,' Märta says. 'How's that call coming?' 'He hasn't answered yet. When I said earlier I wanted them off- balance, this isn't what I had in mind.' 'Well, this is all very awkward for everyone,' Tigger says. 'Who are you?' Abu Saleh asks. 'Believe it or not,' Tigger says, 'we really are who we say we are. Only, we are not feeling ourselves today, because you have made us very nervous.' Märta holds up her finger to silence them. The call is connecting. She says, 'Yes.' There is silence while the voice on the phone speaks. 'His name is Abu Saleh,' Märta says next. 'You know him?' Märta nods to Tigger. 'You'll do this?' she asks the voice on the phone. Moving the phone away from her ear, she presses the speaker button and places it on the centre of the table beside Abu Saleh's undignified and prone body. 'It's for you,' she says. 35 Herbert Reston was born at the back-end of the 1960s, making him old enough to feel that, somewhere along the line, science had promised him a jetpack. His would be silver and would look like dual scuba tanks. It would have a bright-red button on the grip, and it would be on his back with thick leather straps right now, allowing even a big man like himself to lift off from Märta's upstairs balcony and scare the crows from the sky as he jetted toward Louise's subdelegation office. He would use the red tail-lights on the highway below to direct his flight path. But he isn't in the air like an Avenger. Instead, he's stuck in traffic. And if that isn't bad enough, he's had to listen to Clip Maxwell apologise. Because his blogger is out of contact, and they fear the worst. 'So you have nothing useful to tell me,' Herb says, calculating the time to the office with traffic, and hating the results. 'The Iraqi air force,' Clip says, 'is going to start a ground assault on ISIL positions and weapons depots at nine o'clock tonight. That is in... about fifteen minutes.' 'You know this how?' Herb asks. 'We paid for it from someone inside the ministry. There's no way to get them back here tonight, assuming they can even come. I'm sorry.' 'We need a helicopter,' Herb says. 'The area's too hot, Herb. No one would be crazy enough to even think about taking off. No one can get to the mountain in this sort of maelstrom. I know six private security companies in Iraq, all with lift, and they're all grounding their people during this. Everyone's grounded until the assault is over. It would be madness to fly in Ninawa today. Everyone is sitting this one out.' 'Not everyone,' Herb says, and hangs up. He honks the horn. Horns honk back. When his phone rings again, he answers it, hoping it is Märta or Tigger. But it is, instead, Farrah, Louise's assistant. 'Mr Herbert, I have Louise here for you. You were trying to reach her?' 'How are you hanging in there, Farrah?' For the first time since he's known her, he hears a faint tremble in her throat as she speaks. 'It is very hard for us, Mr Herbert. Our families—' She does not finish whatever she was planning to say. 'It's not over, Farrah. There's hope yet.' 'I don't know, Mr Herbert. We thought that maybe Iraq could be a democracy. The national staff here... with the NGOs. What's wrong with us? Why can we not find peace among ourselves? Why do we always fail?' 'There's nothing wrong with you, Farrah.' 'Maybe we are being punished.' 'You're not.' 'We are so very tired, Mr Herbert. It feels like the world is caving in around us, and no one will dig us out or know we were ever here.' 'Farrah, let me just say this. Iraq has been here since the dawn of history. And things are bad. And you're right, they're gonna be bad for a long time. But someday people will need to look back and know there have always been people like you trying to fight the good fight and in the right way. I learned that from my civil rights movement. Yours is the real jihad, Farrah. So keep struggling, keep your faith, and, if you can, keep your sense of humor.' Herb cannot know what Farrah is thinking or doing in the silence that follows. She is too composed. He does not, however, interrupt her. When she does speak, she says, 'It was nice talking with you, Mr Herbert. I'll pass you over to Louise now.' He hears a click, followed by Louise's voice. 'What's happening?' she asks directly. 'I don't know,' Herb says. 'It's eight-forty in the morning. I should be getting a call, and no one's calling. No messages — nothing. I can't reach Tigger. I can't reach Märta.' 'Tigger probably has his hands full,' Louise says, 'and it's likely that Märta is still on the phone. Do you have any reason to think something might have gone wrong?' The traffic moves. Unconcerned with obeying protocol any longer, he angles his 4×4 onto the shoulder of the road, forcing half his vehicle into the desert itself. It is bumpy at fifty kilometres an hour. Still, it is faster than before. 'I don't know anything,' Herb says, not mentioning the missing blogger. 'Either way, we need to prep the helicopter, and we should prepare to pick them up.' 'We've heard rumours of a possible offensive today,' Louise says. 'If it's true, there will be mass casualties. I need that helicopter for non-combatants.' She knows this will irritate Herb, but there are reasons that the ICRC is here. She wants to be helpful, but the rules were explained to Märta in clear terms, and Louise will not rush in where there is no agreement between the parties. 'We're not a hostage-rescue outfit, Herb. I will make AirOps available to you, but only once you've secured an agreement and we can contact the different parties. And I hate to ask the obvious, but if they drove there, why not drive back?' 'There's no time,' he says. 'Why not?' 'Because it's not a rumour. The military is going to start striking targets in twenty minutes. And seeing as ISIL is entrenching in Kurdistan to solidify their positions in Syria, I strongly suspect that they are going to hide in highly populated civilian areas to neutralise government air superiority. And there is no route back that doesn't pass through a city. Which means Tal Afar, at the very least. That town is cursed.' 'What if they sheltered in place?' 'In a terrorist holding cell, among devil worshippers?' 'It's not ideal, I admit,' Louise says, 'but it might be better than being on the open road. And I don't think they're devil worshippers. I think people keep calling them that because it's fun to say—' 'Louise,' he interrupts, 'I understand you have your policies and your laws and your rules, and I like policies and laws and rules, but please be prepared to get off the ground the second that confirmation comes through. Promise me that?' 'If they left at five in the morning for a run that takes eight hours, and you knew there'd be an assault, it sounds like you deliberately put me in an impossible situation, Herb.' 'We didn't know about the offensive until after we'd made contact. It's all unfolding, Louise. All I can do is try and get my people out safely. That is my job.' 'I'll have it fuelled,' says Louise unenthusiastically, 'and I'll make sure Spaz is ready. I'll even bend the rules and let you fly along, but only because we have a signed memorandum of understanding with the IRSG, not because it's a special favour. You give me confirmation, and you can go get them. But do not put the International Committee of the Red Cross in a political pinch, Herb. I don't want us kicked out of Iraq.' 'I don't know what kind of condition they'll all be in.' 'The helicopter has a team. I have a woman who's a top-notch emergency medic from Colombia. Go make the deal, Herb. Until then, there's nothing we can do.' Benton can hear his captors talking outside the door, but he does not understand what they are saying. They are arguing. The argument sounds heated, but it is hard to tell with Arabs. He has found it too easy to misunderstand them in the past. He was in a minor car accident in Cairo off Tahrir Square in a taxi once. They pulled over, and he thought the other driver was going to murder his own. 'No, no,' explained the taxi driver after their altercation ended and both had pulled away. 'He was being honest with me. He was sharing his emotions. It was OK. It was respectful. You cannot trust people who do not share their emotions.' More voices are added to the drama beyond the door. All the voices are male. Some mumble; others shout. On his back, gripping his wound, he gazes at the yellow sea of light spread over the ceiling through the slats on the wall. It is the same mustard-yellow light that comes through his bedroom in Fowey through the window that faces south toward the English Channel and northern France. The door opens. It is Abu Moe, who sat behind him in the Land Cruiser on the way here. For no helpful reason, he delivers a half-hearted kick to Benton's foot, and the pain from the gunshot is renewed. 'We go,' says the man, with the diction of a Neanderthal.Knowing what is next, Benton is not quite ready to go. 'My grandfather,' Benton says for no good reason, 'died at the battle of the Canal du Nord, 28 September 1918, springing out of a trench to charge a machine gun. Part of the Hundred Days' Offensive, they called it. Thirty thousand dead in that battle. You bastards think the West doesn't have the resolve to outlast you? Only one utterly ignorant of history could think that. You know nothing about us. You think we're soft? If anything, we're too hard,' he says, his face barely off the mattress, his hands locked around his wound, trying to keep the bleeding under control. 'And the reason you're ignorant is that you don't translate books. You starve your own minds. That's why you're eating yourselves alive.' Thomas Benton is pulled up and pushed out of the same door that Adar, Jamal, and Arwood were all led through earlier. Beyond that door is a second and smaller room, and then he is led outside into a wide-open courtyard of some kind. The sunlight is a poison, and his chest constricts. He is drowning in the light. Even the dry air gives no quarter. Like thousands before him, to be sure, Benton knows he is being brought to his execution. It feels medieval here, but the structure must be more recent than that. They're too far east, and the architecture is wrong. Byzantine? Ottoman maybe? Not British, anyway. Not recent enough for that. Benton raises his eyes and looks at the fortress: one empire washing over another, taking over what it's abandoned, repeating its errors, learning nothing. Fort Sinister. He is pushed onto the ground, and blood flows again from his nose: proof there's even more to lose. Instinctively, he curls into a foetal position, like an animal waiting for recovery or death. Neither comes quickly, though, and he is instead pulled to his feet by another man and punched in the kidney. Benton vomits. He is sixty-three years old. He is overweight. He is without strength or will or water. There is the door — the one that leads inside the approaching tower. It will be a dark place. He will be placed on a chair. A machete will be placed against the back of his neck. His captors will spout politico-religious garbage, and then they will hack his head off. He will not die on the first stroke. He knows. He has seen it before. That soldier as beautiful as a Greek statue — was he a sniper who had shot pregnant women? Or was he only a twenty-two-year-old boy of the most gentle disposition, scared and sad and lonely? He, too, was blindfolded. He, too, had only been in a world of sound and feeling. They hacked him to death. He screamed while he could. He died in terrible pain, to the sounds of others' joy. It was the worst kind of death. Benton watched it all. There was no stopping it. He wrote a report. It was edited down. It wasn't really new anymore, his editor said, so it wasn't really news, was it? The surge of fear reawakens him. 'No!' he yells, and tries to resist. He tries to pull back and not go through the door. This isn't what it was like in the car with the hood on his head. They weren't going to shoot him in the car, but they will kill him here. And his companions have been shot. He is the last one left alive, and it makes sense. A journalist for a Western newspaper, a British newspaper, he has the highest status of the four of them. They will kill him slowest. He — not any of the others — is a political trophy. It is his head that will be hacked from his body and placed on a stick. If he is lucky, they will shoot him right now. In the chest. He'll know he's been shot; the bullet will enter through the front of his chest, and his eyes will see the flash. Maybe his body will register the pain, so there will be time to acknowledge the end. That is the best death he can hope for now, the one he wants. There is nothing else to want. 'I'm not going in there! Outside. Right here! I want to die here!' But in he goes. There is no resisting it — in through the outer door into a room much like the antechamber he left moments ago, and toward another steel door. This one is opened by two Stooges with rifles, who take him from the first guards and chuck him inside the room where they'll kill him soon. Benton's fails to notice the step leading down, and, missing it, falls forward. He thrusts out his hands to cushion the fall, but he is weak, and his arms fail him. On his chest, cloaked in the last light he'll know, he stares into the dirt. That is when he feels hands touching him. He is powerless against them. There is no protest left to lodge. The sounds that come from above, however, are not guttural and foreign. They are familiar and soft. He has heard those sounds before. 'Thomas Reginald Benton,' a voice says. 'Open your eyes.' Benton turns his head and rests his cheek in the dust. The face of Arwood Hobbes is smiling warmly at him. It is the smile Arwood gave to the boy in the minefield. It is the smile he gave to Adar in the truck. It is the smile he gave to the girl in the green dress who died in his arms. And it is only now that Benton understands why they responded to Arwood as they did, because that is precisely how he feels now. 'Arwood.' 'Hey, buddy,' he says. 'You look like you could use some good news.' Benton turns his eyes in the direction that Arwood's pointing. There are two figures there — both Arab. One of them is still very much a child; the other, a young man with an injured leg. 'They're alive, too?' 'Like I said, we're the luckiest.' 36 The man on the other end of Märta's phone is one of the worst people she has ever had the misfortune of dealing with. He is cut from the same cloth as the man Tigger is threatening with a pistol. He is the man Märta saved on the Syrian border yesterday morning. He is a character assembled from the stuff of human misery — Abu Malik al-Almani. At the border, he had been shot in the gut after he and his group killed one hundred women in front of their families for dressing inappropriately. He was suffering a bleed from his femoral artery. How his men got him to the unit before he bled out was some kind of satanic miracle. His people had occupied a Syrian town near al-Maabadah after their murder spree, and were rounding up more women and starting public executions when the Kurds, on the outskirts of the city, started giving them hell. The Kurds were no longer respecting international borders, and they considered the invasion of ISIL into Kurdistan to be a threat to their autonomy. Abu Malik joined his forces for a counteroffensive and, one way or another, was wounded. As the Syrian government was assassinating doctors and nurses who helped the people he was trying to kill, Abu Malik's only chance was to make the journey through Kurdish-held land, past the border, and into Märta's tent. Which is what he did. On the stretcher, before the surgery, he reached up and held her shirt in his bloody hand. 'You know who I am?' 'Yes, I do,' she said. 'And you will still help me?' 'I've taken an oath,' she said. 'To help me is to help my cause. You are with us?' 'To help any person is to ensure that all people will be helped. That is my cause,' she had said. And — unlike now — she was not scared. Because then, at least, she knew what she was doing and was prepared for it, and she knew it was right. Helping him was not in itself a good thing; obviously, poisoning him on the table would have been the right thing to do. But it was right, because after he was patched up he allowed her team access to the refugees. Whether, in doing this, she would be helping more people live in the long run, or whether she was instead killing even more people by having saved this mass murderer, she could not know. Sleeping with Benton last night had been a helpful, if temporary, way to stop asking herself these questions. All she could do to make it worthwhile was approach him after the surgery. 'I need something,' she had said to him. 'We need access to people on land you control. That means I need to be in contact with those who can grant it. I want your phone number.' 'So the Americans can send a drone after me? Send a Tomahawk missile to my encampment? I don't think so.' 'Something, then. An email address. A solution.' So he left her something. Someone else's number. And this morning she called it and made an appointment to speak to him personally at 8.30 a.m. It was, as she said, a bold move. Abu Malik speaks in a low and quiet voice through the speakerphone as Abu Saleh listens. Once Abu Saleh realises who it is on the phone, he shrugs Tigger off his arm and sits down. A pistol trained on his heart, he lifts the tea and sips it as Abu Malik speaks. Märta's Arabic is not good enough to understand the details of what is being said, but she can follow the sequence of topics. A word here, a word there. She connects the dots. Abu Malik greets his comrade, who evidently knows who he is. Then he speaks about Märta. And jihad. And Iraq and Syria. He speaks of the umma and the community of Muslims. He speaks of dar al-Islam and dar al-Harb, the realms of submission, and of war. As Abu Malik speaks, and lectures, Tigger realises he has no idea what is happening, his attention isn't required, and that it would be a good time to check in with Herb. He hands his own phone to Märta and asks her to dial and press it to his ear. He is not an amateur, and is not going to take his eyes off his mark. The phone rings only twice, and Herb answers it. 'Where the hell have you been?' 'It has been a busy day at the office,' Tigger says, aiming the Webley at Saleh. Märta watches Tigger's expression grow grave as he listens to Herb. He glances once at her, and she knows their plans have changed even further. And yet he says nothing, because it is information Tigger does not want Abu Saleh to know. 'I'm done,' Tigger says to her. She takes the phone away. Soon, Abu Malik is done, too. He stops talking, and, as befits custom, it is Abu Saleh's turn to speak. He greets Abu Malik in the traditional way, but after uttering abbreviated pleasantries, his tone turns argumentative and insulting. Märta hears him talk about power and money and corruption. He mentions Abu Musab al-Zarqawi. He talks about Tal Afar. He talks about al-Qaeda, and spits on the ground. He, too, talks about the caliphate. He rages. Tigger, for no reason she can understand, smells the Webley. She has never seen him hold a gun before. She has never imagined him capable of harming someone. Now she is certain he can, and that he absolutely will if called upon. When Abu Saleh has finished, Abu Malik speaks again. When he does, it is in English, so Märta can understand. He sounds tired, as though talking to such people has worn him down over the years. Inter-terrorist politics, Märta concedes, must be exhausting. 'You are going to release them,' he says in a quiet voice. 'And if you do not, Abu Saleh, I will raze your home village in Tunis and kill your children, who attend not a madrassa, but the British International School on rue du Parc. I know your wife's favourite flower is the lily. I will kill not only them, but all your extended family, so that your line does not continue. I am tired of disobedience. I am healing from a bullet wound, and my energy is elsewhere. If I learn by sundown tonight that you have not done as I say, your family will die. And if you call them to warn them, and my people see their routine change, they will die. And when I find you myself, I will strap a bomb to you and use you in my war. These people you have captured, Saleh, are not our enemy. Even our correct reading of the Koran does not direct us to jihad against everyone. And if you are such a fool that you cannot understand this, then I will think for you. Ms Märta? You and your people will be released. What happens to these people after you go is no concern of mine. They are petty thieves and not Muslims. Can you hear me?' 'I hear you.' 'Peace be unto you.' Then, in a small mercy, he does not wait for Märta to say the same, and instead hangs up. 'I suggest,' Tigger says to Abu Saleh, who has been left holding the phone at the other end of the line, 'you accept that we have an agreement, and that we now go to collect my people before you start thinking better of the idea. It is also very clear to me now that if I kill you, with your own gun, no one will avenge you. So call your men on this phone and let them know we're coming. I prefer to show up invited.' 37 Charlotte slept after her walk with Miguel, and woke early, determined to see her mother. It is a three-hour drive from Bristol to Fowey on the M5. Charlotte drove it with a bag of yogurt-covered peanuts between her legs until the peanuts were gone. She has always liked to split the yogurt with her molars and break it off from the peanut evenly to save the crunch for last. It is more than a preference; it is a skilled compulsion. Thirty minutes from Fowey now, she calls her mother from the road, with the Saab in overdrive. Vanessa answers and says she is in a teahouse down by the water. She is reading a book. She is marking it with pens and pencils and highlighters. 'I don't know why everyone is so respectful of books,' she says to Charlotte. 'They are meant to be engaged with, not preserved. There's a woman,' she whispers, 'looking at me from across the room as I mark up the novel. I wonder if she thinks I'm a critic. Every so often, I shudder and make a disapproving face. I think she's a tourist.' 'I can't reach Dad,' Charlotte says. 'Your father has been unreachable for ages. That's how all this started.' 'No. I mean, he's in Iraq. He's properly missing. I'll be with you by nine or so. That's eleven in the morning in Baghdad. I've been speaking with someone at a refugee camp in the north. His name is Miguel. He's helping me find Dad.' 'What's he doing there?' 'There's a girl who is missing. He went to find her.' 'What on earth for?' 'It's a long story. I only have a guess at it.' 'Is this why you're driving all the way down here?' 'I'm driving down because he's missing and I want to be with you when we place the next call, because we are in fact a family.' 'Maybe I want him missing,' her mother says. It is starting to rain. A slick sheet of oil floats over the new and fresh water reflecting the red taillights that glimmer before Charlotte under an iron sky. 'Just be home, OK? I'm to check in with Miguel when I get there. Hopefully, there will be news by then. He's making a lot of time for me, considering how busy his own job is.' 'Drive safely.' 'Is it raining there?' Charlotte asks. 'Yes,' Vanessa says. 'It is beginning to.' Spaz does not smoke. He does not chew gum. He does not smile. He seldom speaks. What he does is fly helicopters. He is of medium build, medium height, and speaks English with an unapologetic Russian accent he has no interest in improving. He does not allow music in the aircraft. He prefers the sound of the wind, the whirr of the rotors, and the opportunity to explore the airspace around him. He is conducting the pre-flight check. He is meticulous from habit. Beside him is a small, dark-haired woman with exquisite skin. They don't talk to each other. The helicopter pad is little more than paint on dirt at the edge of the refugee camp. It is surrounded by a thin fence to fend off the curious: usually children who seem attracted by nature to anything that spins. Louise, his boss, walks out to meet him. Following her is a large black man in blue trousers and a T-shirt white enough for an imam. 'Good morning,' she says. 'OK.' 'You are going to be sharing airspace today with the Iraqi air force and probably a lot of bullets and missiles. Also an American named Herb Reston.' Spaz looks at Herb. He can tell that Herb was once military from the way he stands. 'OK,' he says again. 'Where did you learn to fly?' Herb asks Spaz as he opens the door and climbs inside the EC155. 'Chechnya,' Spaz says, handing the completed paperwork to Louise and opening the cockpit door. 'Repenting?' Herb asks, climbing in. 'Depressed economy,' he answers. Turing to Louise, he asks, 'We have a flight plan?' 'No.' 'When does shooting start?' he asks, about to put on his headset. 'It's started,' Louise says, ducking her head as the rotors spin up. 'I have to go — my hair can't take this. Herb Reston, meet Elise Garcia,' she says, nodding to the woman in the medical vest. 'She's a former combat medic from the Colombian army. She's been on the frontline against FARC. Whatever might come into the back here, she'll deal with.' 'If you don't secure us a flight path, we'll be shot down by everyone,' Herb yells to her as the rotors reach full speed. 'That's right,' she says, as she turns away and jogs off the helipad toward her Land Rover Defender. Louise starts the diesel engine and radios back to Farrah at her desk as she watches the helicopter prepare to depart. 'Farrah, can you hear me?' 'I'm here, Ms Louise.' 'Get me flight-safety assurances. It's all on you and the national staff now. I won't be back in time. It's begun.' Farrah takes tea in the morning. She brings it in a thermos from home, because people from outside Iraq, though they try, don't understand the making of a proper cup of tea. Hers is perfectly sweetened and, so as not to insult her employers, she drinks it when alone, and leaves two fine glasses in her drawer for the purpose. Farrah rises from her desk, thermos in hand, and removes one of the small glasses from the top drawer of her steel desk. She is fastidious; Ms Louise has teased her about this quality by deliberately rearranging objects in those drawers in the most incongruous ways. She enjoys working with Ms Louise. She finds her boss sociable and kind, and she knows that Louise respects her team and trusts them. This has not always been the case with foreign managers. Some people — usually men — treat her and the other local staff as though they have not been working this job longer than they themselves have. They ask no questions, and so grow no smarter. They leave in two years, and tell war stories about 'the field', and become promoted for the jobs they had, not the jobs they did. For Farrah and her colleagues, this is not 'the field'. This is home. The jobs they do are all that matters. Farrah wants to make Louise proud. She wants to make her own family proud. She discussed her job only months ago with her father and her imam. They entertained long discussions about humanitarian action in light of the fatwa issued by Tahir-ul-Qadri condemning suicide, suicide bombing, terrorism, and violence — six hundred pages of legal interpretation and analysis shared throughout the Muslim community. Her father and her imam agreed that her work is indeed Allah's work, and that her concern for others is the correct performance of God's will. 'It is actually quite simple,' said her imam. 'The Prophet, peace be unto him, clearly said that, "none of you believes until he wants for his brother what he would want for himself."' Farrah has always backed away from praise, and insisted there was nothing divine in her efforts. Surely kindness and decency were too simple and obvious to be the product of the One who made the entire universe. Her father shrugged when she said this. He would be proud of her either way, he explained, whether the will was hers or Allah's. Her imam, meanwhile, raised his eyebrows in surprise at her declaration of modesty and her theological analysis, and she laughed at him. 'You always raise your eyebrows in wonder,' Farrah said. 'It is true,' said her father, 'that they go up. But is it his own will, or does Allah pull them up from above?' And they all laughed. Her father makes excellent tea. He taught her how to make her own. She still leaves a glass for him in her drawer to remember him. For now, though, time is pressing, and there is work to be done. She walks past Louise's empty office, past the broken colour printer no one knows how to fix, past the poor excuse for a coffee maker that the Europeans and Americans use, and into a room with six cubicles. There are four men and two women, all Iraqis like herself, and from different backgrounds — Shiite, Sunni, Kurd, Assyrian Christian, Marsh Arab, Turkoman. They look up when she comes in. She bids them a good morning, in Arabic, and they mumble the same in response. They are tense. They know what is happening. 'We have an emergency flight from here to the Sinjar Mountains,' she says to them in a voice soft enough for poetry. 'I am placing the coordinates on the board.' She walks to the whiteboard and raises a green marker to write down the numbers. 'It is a helicopter flight with a ceiling of eight hundred metres, and therefore subject to small-arms fire. We therefore need flight-safety assurances from all parties. Muhammad, you liaise with the government and military. Alim, you have the Kurds. Atef, you have the Sunni tribes and, through them, those who do not yet speak to us. Abdullah, you have the Shiites near Tal Afar. Akeem, please talk to the police in Sinjar. And Nasira, you will remain in contact with Spaz throughout the flight so he may adjust his approach according to circumstance. I will negotiate any disagreements between parties. You all have the numbers and group-messaging established. Start now.' At her command, and inaudible to the wider world, six voices, with six accents, with six inflections, call to their tribesmen, their kinsmen, their allies, and their enemies, and speak with humility and directness to make possible what is impossible: Assalamu'alaikum wa rahmatullahi wa barakatuh... 'Peace and mercy and blessings of God be upon you. I call from the International Committee of the Red Cross and Red Crescent, and recall our obligations under both the laws of God and the laws of man...' Märta and Tigger hear distant artillery fire as they follow Abu Saleh up the street, past their Land Cruiser, farther west half a kilometre, and down a rocky and ancient stone path with boulders rising high on either side, shielding them from view. Tigger points the Webley at Abu Saleh's back. He does not walk too close. Bullets can close the distance as needed. 'Is that necessary?' Märta asks him. 'We have an agreement.' Tigger blows a characteristically French noise through his lips. 'How old is that gun, anyway?' 'It was used recently. I can smell it.' They hear three consecutive and evenly timed bursts far off to the north, but close enough for the sound to carry and echo through the canyon. 'That's artillery fire,' Märta says. 'I heard helicopters, too. And some jets,' Tigger says. 'Herb didn't tell them about this place, right?' Märta asks. 'No. Of course, who is to say whether it might be on their list of targets anyway. Either way, a drive home is now impossible. I think Farrah is going to play it close to the chest as well. One trick she sometimes uses to confuse the government is to create a flight path that exceeds the actual destination so they don't know where we're going to set down. It is clever and has worked before.' 'The faster we get out of here, the better,' Märta says, walking behind Tigger, who follows their guide. 'I feel as though we are being watched. Do you feel that way?' Tigger says. 'I've been saying it for an hour.' 'It is too quiet here,' Tigger adds. The path widens again. Into view comes the hidden entrance to a daunting fortress. There is a vehicle beside a steel door set into sandstone. There are no guards. 'Where are your friends?' Tigger asks Abu Saleh. 'Why's no one guarding the door?' Abu Saleh says nothing. Once down the hill and at the fortress door, he bangs on it with his palm. The sound it makes is dead and empty. He announces himself, and no one responds. Eventually, he calls on his phone, and a man unlocks the door from the inside. Abu Saleh says something, and the two men disappear inside. Märta makes to follow, but Tigger holds his ground. 'Not coming?' 'Something is wrong.' 'They shot a man in front of us. We watched him die minutes ago. Our nerves are frayed. I can't read the situation. All I know is that if they wanted us dead, we'd be dead by now, and that little gun of yours wouldn't matter. I'm betting Abu Malik was convincing,' Märta says. 'That's not it. This whole event here is not playing out as I'd expect. I would have thought there'd be guards, and they'd take my gun, and they'd try to intimidate us until the moment they let us all go.' 'I'm happier like this,' Märta says. 'I prefer predictable to unpredictable,' Tigger says. 'I'm going in,' she says, and steps inside without him. Tigger lowers his pistol to his side, having nothing to point at. This is not the land in Provence. There, he knows all the sounds of the earth in each season: the hum of the insects in the lavender fields; the cicadas basking in the warmth of a summer day, and their startling and even comedic silence when the clouds pass overhead. He knows how, for the duration of a breath, all the sounds of all the creatures under the sun north of Vence will sing in unison as when a symphony stops warming up and strikes that first deliberate chord together to become the voice of God. Not here, though. Here he is an alien. He does not know what it is supposed to sound like. He cannot measure the distance from the expected. He does not know the proper proportions of light to sound. But surely, even here, it is supposed to sound like something? Something must live. If it does, though, it does not breathe at all. Tigger scans the mountains and hills and nearby boulders. Alone, he exhales. As he turns back toward the door to join Märta and the hostage-takers, he is only half surprised to find himself looking down the barrel of a rifle. Charlotte pulls into the driveway of her family home. The door to their house has been drained of colour in the downpour, but it still manages to beckon. The brass knocker is shaped like a fish. As she turns the key, it occurs to her that the knocker is a cod. Strange not to have noticed this before. Her mother is in the kitchen, preparing PG Tips with sugar and lemon. 'You're wet,' says Vanessa, who is dressed in grey slacks and a black-buttoned top, and is barefoot. 'It's on account of the rain,' Charlotte says, taking off her shoes and jacket, shaking out her shaggy hair, and immediately setting up the laptop. 'Are you really planning to put that on the coffee table first thing?' Vanessa asks. 'The congestion was awful. I don't understand why the rain is always a shock to drivers. We're scheduled to hear from Miguel any time.' Charlotte launches the software and sees his name. It is marked not green, but yellow. He is away, but has sent a message: 'Must delay meeting. A helicopter has been deployed to collect your father. There have been complications on his journey. I will inform you when the helicopter lands. I will take you to the helipad to greet him. Stay close to the computer and send me your telephone number. They say we are not to use this software for emergency calls. I wonder if this is what they mean.' Charlotte stares at the message. 'Tea?' 'No, thank you,' she says. 38 There is a pause between the instant Tigger sees the bore of the rifle and the moment he overcomes his shock enough to speak. When that moment does arrive — whether it was a second or a full cycle of the moon, he cannot be certain — he is able to utter a few words: 'Please don't shoot. We have an agreement with your commander.' The rifle is lowered, but only to Tigger's chest. It does not make him feel safer, but it brings the rifle-holder's face into view. The man has a scar along the left side of his face, from his eye down to his chin. 'Not my commander,' the man says, in an accent that is from here but is not the accent of Abu Saleh. It is a face with blue eyes, and not brown ones. It is a voice that seems present and prepared for conversation. It occurs to Tigger that, perhaps, he was not about to be shot a moment ago. 'Abu Saleh,' Tigger says, 'has commanded his people to allow us access to our own and to take them away. He called ahead. You should check.' 'Abu Saleh is inside? That is excellent news,' the man says. 'And you have arranged transportation to get your people away?' 'I expect a helicopter. Soon, I hope.' 'You are here for Mr Arwood?' 'I beg your pardon?' Tigger says. 'Mr Arwood. You are here to save him?' 'Yes. Not only him, but yes. He is one of ours. How do you know his name?' The man lowers his rifle now and extends his hand. At first, Tigger thinks he may want to shake, but then he sees him wiggle his fingers, and Tigger understands he's to surrender the pistol he forgot he was holding. The man with the scar takes it and puts it into his own belt, alongside a military-issue Beretta 9mm that is as polished as the day it was made. 'You won't be needing that,' he says. 'You are no longer in any danger. You are under our protection now.' There is something familiar about him. Not his voice or his countenance, per se, but his blue eyes; something about the shape of his face; the scar, too. Try as he might, though, Tigger cannot place him. On a whim, he asks, 'Have we met before?' The man smiles and nods. 'Twenty-two years ago. I was a boy. We met in a minefield. Mr Arwood carried me to safety. You were there. I remember you. And so now we have two things in common.' 'I don't understand,' Tigger says. 'We have a common past. And we have Mr Arwood. You said he is one of yours. He is also one of ours.' 'I see. You are planning to rescue him?' 'We were. But I like your plan better. Now you will rescue him. And when you are done, and your people are safe, we — the Peshmerga — will stop walking before death, and allow death to lead the way.' 'We?' The man taps his finger ring twice against his rifle. When he does, more than eighty men rise from hidden positions in the rocks, and stand silently at attention. Tigger looks around him, less surprised than angry at himself for being so unobservant. 'Did you remove those guards? Near the café?' 'They have been removed from this life.' 'It is said,' Tigger answers, 'that the Kurds have no allies but the mountains.' 'This is true. But we do have friends. And we like to pay back our debts.' 'Where the hell have you been?' Märta says as Tigger finally catches up to her halfway across a wide-open space in the middle of the fortress. 'What were you doing out there?' The explosions they had heard earlier are growing frequent. There is machine-gun fire from helicopters, and return fire from the ground. Jets pass overhead in formation, unaware of the drama being played out below their bellies. 'You know when you said you thought we were being watched?' Tigger whispers. 'Well, as it happens, you were right.' 'What does that mean?' Märta says as they walk toward another corner of the fortress. Tigger is walking next to her. He becomes aware of his own sweat. Two of Abu Saleh's men emerge from a tower in the north-east corner, across from the one they exited. 'Where are they going to land the helicopter?' Märta says. 'It's nothing but rock outside.' 'Right here,' Tigger says in a quiet voice. 'In this bailey.' 'In this what?' 'The castle courtyard. It's called a bailey. Sweden is a kingdom. Don't you know your castles?' 'It's not a very big place to land a helicopter.' 'We must hope Spaz's name is ironic.' Abu Saleh turns and stops. He looks at Tigger and his empty hands. 'Where is my gun?' 'I suspect you'll see it again soon.' 'Why are we stopping?' Märta asks. Two more Iraqi jets pass overhead. They are F-16s. Saleh does not answer, leaving them exposed in the fortress under a warming sun. 'It's going to be like Ramadi and Fallujah,' Märta whispers to Tigger as they stand in the courtyard watching the jets advance in formation toward a target somewhere beyond the wall that obstructs their view. 'The people are going to start streaming out of the cities again. We should be back there, preparing to receive them. This is all my fault.' 'Right now, we're doing this. Can you focus, please? Stop planning?' 'I can plan or I can scream,' she says. 'Why are we watching that door there?' 'That is where our people will soon emerge, or else men will come out to kill us.' There are more explosions below. Over the years, Märta has become a connoisseur of explosions. Car bombs. Suicide bombers with vests. RPGs being launched; RPGs landing. Hellfires hitting the ground. C4 blowing up markets. Scuds taking off; Scuds landing. Patriot missile batteries launching rockets; Patriot missiles missing their targets and landing somewhere else. It is hard to keep all the sounds straight, and perhaps useless, but the mind strives for order, and cannot help but seek patterns. Once, at the base of the Zagros Mountains, she heard a strange and distant explosion. It was low and rolling. It lasted too long. It gained and lost intensity, like an arhythmic barrage of low-calibre mortars falling into a well, miles off. 'What is that?' she asked an old man who stood beside her, also listening. 'Thunder,' he said. 'Märta, look,' Tigger says. A small figure emerges from the void of the open door at the base of the tower ahead. It is a girl in a shapeless orange dress that is too big for her. She is very young — a teenager. She holds much of the dress bunched at her waist, and pulls what remains behind her through the sand and dust. She has the demeanour of one shivering through rain. Märta ignores the instructions from the terrorists, and runs to the girl. She closes the distance quickly and wraps her arms around the child, walking her back toward Tigger in a direction that feels like an exit. The girl is not safe, Märta knows, but she is no longer alone. The girl, shaking, submits to the embrace of this new stranger. Another figure emerges, limping, through the door. It is a young man, short and clearly in pain. This time it is Tigger who runs forward. He catches the boy and wraps his arms around him, kissing the top of his head. He has been shot in the leg. He, too, is shaking. Taking Jamal's face in his hands, Tigger sees he is dehydrated and cold. Tigger can't tell how much blood he's lost. 'There's a helicopter coming,' Tigger says. 'Are you sure?' 'I'm rather counting on it.' 'What if it doesn't?' 'We'll find a nice hotel.' 'There are no hotels here.' 'I was pulling your leg.' 'Why would you pull my leg? I'm in terrible pain.' Märta's phone rings. She answers it, freeing one hand from around Adar's shoulders. 'Hello?' she says. 'It's me,' says Herb. 'We're inbound.' 'We have Jamal and the girl. I'm waiting on Arwood and Benton.' 'Where do you want us to land?' 'In the bailey.' 'What's a bailey?' 'It's the courtyard to the castle.' 'There's a castle?' 'You can't miss it.' 39 Herb sits in the copilot's chair of the EC155. There is a wall of instrumentation, buttons, and a joystick in front of him. He understands the altimeter, the rotor RPMs, the horizon ball, the clock, the fuel gauge. However, the only instrument he could control is the Maglite flashlight mounted on two rings to his right; the rest of the black panel is beyond him. He stares at it, though, because outside the window his helplessness is even deeper. The flight path is 150 kilometres. Spaz has mapped a route over Simele and the northern stretch over the Mosul Dam lake. 'ISIL has no navy — yet,' the Russian says. 'But when they do, you remember you heard it here first, OK? The next war, it will be for that water. Assuming the dam doesn't break and kill everybody first. Mark my words. Everything I say comes true.' 'Maybe you shouldn't talk so much,' Herb says. And for the first time, he hears Spaz laugh. It is not comforting. Herb turns to look for support from Elise in the back. She is not paying attention, and is instead immersed in a video game of Tetris. Spaz changes direction to the south-west, taking them over the spot of the mortar attack and the remains of the Urals. They are avoiding the main roads with their mobile weapons and technicals, and circumnavigating Tal Afar, now being shelled by the military as the Sunni-aligned tribes attack the Shiite population. How anything below coheres into a strategy is beyond him. A call comes in that Herb answers. It is Märta. She has the Arab kids, she says. She gives him instructions on where to land. Herb shouts to Spaz and Elise over the whirr of the blades. 'Apparently there's a castle. And we're to land in it.' Spaz does not react, but Elise looks up and smiles. She points to her helmet and the headset system that transmitted the same call to her helmet, too. In a warm Spanish accent, she says, 'How's your stomach, Señor Macho Man?' 'Average. Why?' 'It is going to be a bumpy landing.' 'How do you know that?' 'If we are landing in a castle, we are landing in a box. The downward pressure of the air from the rotor cannot dissipate easily. So it will bounce off the walls and come back one way or another. It will be a tempest in a teapot.' 'I see.' 'Do you believe in God?' 'Yes, I do,' says Herb. 'I find that prayer helps,' she says. 'Really?' 'It gives me something else to think about, instead of throwing up. Focusses the mind.' 'Landed in many castles, have you?' 'Estates of drug lords. Physics are the same.' 'When this is over, I'm going to take a vacation.' 'You want some company?' Elise asks. 'I'm married with two kids.' 'Gets lonely out here among all the refugees and insurgents,' Elise says through the intercom. 'That's funny, because I feel like I can't get a minute to myself.' Spaz interjects, 'Looks like the military has identified an arms depot. Down there. Look. They are bombarding them with mortars. I'm taking us up to fifteen hundred metres. We will approach the mountains from the north.' At a height of eight hundred metres, turning south, they fly into the shadow of the Sinjar Mountains. Rising to fifteen hundred metres, they align with their highest point. On approach, they meet the sun breaking over the castle walls, blinding them. Herb's mobile phone is on, and he receives a text message. A moment later, both Spaz and Elise receive one as well. He and Elise look at one another. Herb flips open the old Nokia. The signal, on the GSM system, has automatically switched over to MTN Syria, being the more powerful signal in their location. The message reads: Ministry of Tourism welcomes you in Syria. Please call 137 for tourism information or complaints. 'This place,' Herb mumbles. 'What?' Elise shouts. 'Nothing. How high can this thing go?' Herb asks through the headset. 'Two thousand metres,' Spaz says. 'That is the hover ceiling. But it depends on the barometric pressure.' 'That doesn't give us a lot of manoeuvring space if they don't respect the emblem, and things get hairy.' Spaz and Elise both laugh at the same time. 'What's so funny?' 'If things get hairy,' Spaz says, 'we are going to die.' 'I'm glad we won the Cold War, you know that? You are a depressing, cynical, and mean-spirited group of people,' Herb says to Spaz. 'It's not over yet,' Spaz mumbles as they cross over the castle wall and look down into the bailey. 'How does it look?' Elise says from the back of the helicopter, putting away her video game and preparing her emergency kit. 'Busy,' says Spaz. 'I see three insurgents in the courtyard, a sharpshooter on one of the towers, maybe a machine gunner, and four of our people. But maybe many more inside. I think Jamal is wounded.' Inside the tower, Arwood tries to pull Benton up, but is having little success. 'That's our ride outside. We can make it,' he says. 'I can't believe they got our message.' 'Please get up. I'm shot, too. I can't carry you.' 'I'm trying.' 'They're landing. It's a nice sound. I've hated the sound of rotors for a long time.' 'Me, too,' Benton says. The doors to the antechamber and the outside are wide open. As the helicopter lands, the sheet metal slams repeatedly against the old stone walls. 'Come on, there's a war on the way,' Arwood says, 'and you don't want to be here for it.' 'You mean the military is coming?' 'Well... I think there's a lot of interest in this place right now.' 'Who did you write to?' 'I called in an old chip with the Peshmerga. We go way back.' Arwood, his own leg also shot, uses his upper body to heave Benton to a semi-standing position. Together they have two good legs between them, and with cooperation they make that work for them. 'Why aren't you in as bad shape as me?' Benton asks as they hobble into the wind toward the courtyard. He can see a large black man, who must be Herb Reston. He is stepping down from the aircraft, wiping vomit from his shirt. 'I'm American,'Arwood says. 'We're upbeat by nature.' 'You're exhausting, is what you are.' 'All right, Ferris. Here we go.' And with that, Arwood walks them out, arms around one another, shoulder to shoulder. Outside, three men stand around the helicopter. Abu Saleh, the one they call Larry, is holding his headscarf against the wind and is looking displeased. Benton does not look at Abu Saleh as they pass him, but Arwood does. With his arm still around Benton's waist, he jerks them both to a halt for a final word with his former captor and torturer. 'You're gonna lose,' Arwood taunts him. 'You know that, right? Maybe not today, maybe not tomorrow, but very soon and for the rest of your life. You know that, right?' 'No, we will prevail,' Abu Saleh says. 'No you won't. And I'll tell you why. Because groove is in the heart.' A woman Arwood hasn't seen before hops out of the sliding back door of the aircraft, and helps Adar and Jamal inside. She has thick black hair and a great arse. It's a pity he's not planning to get on the chopper with her. Benton waves half-heartedly to Märta and Tigger. Herb has lifted Jamal into his arms and is climbing into the helicopter with him. Tigger joins Benton and Arwood, immediately placing a pressure pad against Benton's leg, and raising him higher to further relieve the pressure. For such a skinny man, he is surprisingly strong. 'How did you convince them to let us go?' Benton yells to Tigger. The fortress has never known wind of this kind. The people around Benton look blurred and shapeless through the fog of dust, unleashed and upended by the tumult from the rotors. It is as hard to see as to hear. 'Turns out they fear the devil,' Tigger yells above the wind. 'And, as it happens, Märta has his phone number.' Tigger does not introduce Benton to Elise Garcia, and instead releases him into her care. She is small but steady, and sure on her feet. She smiles at him as her hands work expertly to strip off his trousers and reposition the pressure pad. She prepares an IV. 'Can I have some water?' he says, seated and grateful. She opens a bottle and rubs his face wet before allowing him small sips. 'You are severely dehydrated. If you drink too fast, you'll vomit. The IV will help most.' She touches his forehead and says, 'You'll feel a little better in a moment.' Out in the wind, Tigger braces to help Arwood over the steps into the cabin. But Arwood does not take his hand or step inside. 'Did you see them?' Arwood asks Tigger. 'Who?' 'Outside the walls. Did they come? Did you see them?' His eyes are pleading for an answer. 'Yes.' 'With the scar?' 'Yes.' 'He's close?' 'Yes. What's going to happen when we leave?' 'Thank Märta and Herb for me,' Arwood says. He does not shake Tigger's hand. He does not look at Herb, who is inside the helicopter, tending to the girl. He does not even meet Märta's gaze; she is trying to make sense of the conversation she can see but not hear. Alone, he starts to limp across the courtyard to the first tower, which housed his first cell and leads beyond the walls to the Kurds. As Arwood limps away, Tigger yells to him, 'You've lost your mind.' 'I said the girl was alive, and she was,' Arwood replies. 'I said we'd save the girl, and we did. I said everyone would be themselves at the moment of truth, and they were. I'm the sanest one here.' 'It's not the same girl, you know,' Tigger says, above the whirr of the blades. Arwood Hobbes looks over his shoulder through the sandstorm at Tigger. He can see the girl through the window of the helicopter. She is not looking at him. 'Oh yeah?' he yells. 'What's not the same about her?' Tigger is the last inside, and he nods for Herb to close the sliding door of the EC155. He does, and climbs into the copilot's seat to strap himself in. Spaz looks at him, and Herb nods, to indicate they are as full up as they're going to be. Spaz looks back into the seating area, and watches the blood from the two injured men drip onto his floorboards. Benton shouts, 'Wait a minute, wait a minute. Where's Arwood? We can't leave without Arwood.' 'He's not coming,' Tigger says, as Spaz increases the rotor speed, and they lift off the ground. 'If he's not coming, it means he's staying, and he's obviously not staying.' 'There are people outside the walls,' Tigger says. 'People waiting for him.' 'What people?' Märta asks, as the helicopter climbs to fifty metres, and then to seventy. 'Some kind of Kurdish assault force,' Tigger says. 'They took my gun. It's why I was late coming in. I thought it best to keep this to myself, given the company.' Märta unhooks her seatbelt and rushes to the front between Spaz and Herb. She taps Spaz on the shoulder and yells, 'Take us south, past the tower and the walls over there. I want to see what's there.' 'North is safer. It's where we came from,' Spaz says. 'It is where we are going.' 'You can go north afterward. I want to see what's over those walls, and you're going to do it now,' she instructs. Her voice makes it clear this is not a request. So Spaz, who has served under worse commanders, turns the aircraft south, drifting over the castle walls to hover briefly over the rocky path that led to the door where Arwood and Benton and Jamal and Adar were first taken. Still unable to see as well as she wants, Märta slips back into the body of the aircraft and slides open the window. She sticks her head out and looks down. Standing, armed, are maybe one hundred men. There, before them all, is Arwood Hobbes and the man with the scar who smiled at her. She watches as the man hands Arwood a Beretta pistol, and Arwood caresses it and hugs the man, who hugs him back. The helicopter is taking no one by surprise. It is clearly marked. Arwood, armed and with a new bandage on his leg, looks up and waves to Märta and the other passengers. Under the gaze of her disapproval, he motions the helicopter away and beyond harm as another man hands Arwood an M-16 assault rifle. 'We have to go, now,' Märta says. 'Spaz, signal to Louise that we've made the pickup and that we are officially on the way back. I don't want anything to implicate us in whatever happens next. Quietly, seated and strapped in, she says, 'Shit.' Spaz presses left on the cyclic, twists the throttle, and raises the collective to turn them northward as the Kurds take their position by the doors. The insurgents are still unaware of what is planned for them. As they pass over the northern wall and out beyond the mountain into the vast flatland of Ninawa, two Mi-24 military gunships approach and, without pause, pass them by like dragons before a swallow, leaving the unarmed aircraft to continue on its scheduled route. They fly with the sun out the starboard side and slightly behind them, and hear the first barrage of mortars land in the ancient fortress. They will be the last ones to see it; the last to have been held there. By tomorrow it will be a ruin. Herb watches what he can, craning his neck through an open window. The last he sees is a dozen or more men emerging with Russian-made weapons and black headscarves from the bowels of the fortress. What he cannot see he can surmise, because military tactics are grounded in engineering. From their elevated position, the superior Kurdish force will weaken the terrorist defences with mortars and RPGs to upset the key strategic positions of ISIL fighters on the towers, who have sharpshooters and machine guns behind defensive positions. The battle mounts were not designed to withstand such firepower, and once the towers have been neutralised, the Kurds will swarm into the courtyard, where they will fight at close quarters to take up the tower positions and use them to lay down suppressing fire. A squad will remain at the entrance to ensure it can't be used as an exit. Having trapped their enemy, the Kurds will drop grenades into all the rooms their enemies are hiding in, and will work their way downward, forcing their quarry to ground — to be shot, burned, or hacked to pieces. They will take no prisoners and give no quarter. ISIL wants a world without mercy; they will not live in it for long. Benton lies back on the soft upholstery of the aircraft. His head sinks into the forgiving cushion, and the cotton soothes his neck. Elise permits him to drink another quarter bottle of water. He tries to sip it slowly, but cannot. She places a cool compress on his head and smiles at him, and returns her attention to Jamal's leg. Benton does not picture the battle or construct the events from the fading sounds behind them. He only imagines Arwood hunting down Abu Larry as he hunted down the colonel. He can see him raising the Beretta to the man's head, free and alone this time, to make the choice least likely to haunt him for the next twenty years. Benton wonders what Arwood might say as he trains the weapon on his enemy. Perhaps, for the first time in his life, he will say nothing at all. 40 Adar watches the hands of Elise Garcia, which flow with the expertise and confidence of the baker from her village. She sits behind Spaz and Herb. Adar does not wear a headset, and cannot hear Tigger and Märta's conversation. She rests, unattended to, by the sliding door on a stool secured to the airframe by heavy steel bolts — a place for a doctor or second medic to perch on and work from. She has never been in the air before. She has never been a bird, or seen the world from above. Through the massive windows, she can see more of the world than she has ever known. The helicopter flies north-east, and she looks north-west, toward Syria, where she used to live. In school, they showed her maps of the border. She looks for it: for the straight and wide purple line that cuts through the mountains, hills, and desert, turning the one land into two places. It is not there. She cannot see countries or colours or tribes, or families, or even cities. She can only see a vast and empty expanse of browns and the glowing sand of the desert that is hungry for more blood. There are white-capped mountains in the far distance, and small explosions across the wasteland that prove man is below and that he is angry. It looked so different when she walked from her village toward Domiz. She had left with her mother, her older brother, and two cousins — both girls a little younger than her. Her brother wanted to stay and fight. He did not know who to fight with or even for, he said. He only knew what to fight against. 'Then you've already lost,' her mother said, and she would have no more of it, and she forced him to pack his belongings, and instructed him to protect the family. 'The family is most important,' she'd told him. 'More than Syria, more than the tribe.' He brought an old military knife with a handle wrapped in leather. The knife smelled bad. It had grown mouldy. The man who marched them to Iraq took all their money before leaving. He did not even look into their eyes. He collected it and shoved it into a bag with a large zipper. He took their passports, if anyone had a passport. Adar did not. He walked them for kilometre after kilometre. Babies were terrified and unable to sleep, because their schedules were interrupted and there were no comfortable positions to rest in. They were passed from tired arms to rested ones, agitating them more. Eventually, they passed out from exhaustion. They did not travel alone. There were other families. Some were going north to Turkey — they would risk boats to Europe. Others were going east to Iraq or Jordan. Some dreamed of Iran, but they were Persian and spoke a foreign language. No one knew if they would be welcome there. Rumours formed and spread. They were going in the wrong direction; the leader was a member of the government, and they were going to be arrested or murdered; the children were going to be stolen from the parents, and their livers cut out and sold to the rich in the Emirates, and their bodies thrown into ditches in the desert. Information and freedom of choice were their only possessions, and to imagine not having either was to submit to powerlessness. They walked for ten hours straight. Some didn't make it. No one stopped for them. They had paid first. Down below, she could see the river they were crossing by way of a narrow bridge when, nearby, her brother was shot — by whom, or why, no one knew. Her mother screamed and jumped into the water after him, and the people tried to hurry away from the shooting, but there was no way to hurry on such a narrow bridge, and so people fell into the water. Many could not swim. 'Run,' her mother instructed her from the river. And because the people pushed her with the force of water through a dam, she was lifted and taken to the other side. There, down there — though the land all looks the same, and yet is called a thousand different names — was where the trucks were parked. Trucks had come to meet them, and they carried supplies. Those army trucks were travelling on a road while her people were crossing the dirt. There were fewer of them now, many wet and many weeping. She waited for her mother and brother, but they did not come. She lost sight of her cousins. She was the eldest, and it was her job to care for them. The vehicles stopped, and people in white vests with foreign symbols on them ordered them into lines so they could receive food and water at the front. Where were her cousins? The little girls were gone, and it was all her fault. She was supposed to look out for them. They were so young, so helpless — only ten and twelve years old. She would find them at Domiz. That was what people said. The camp was safe. The camp was where everyone found each other. No one who said this had ever been there. They had to be behind her. She had to wait for them. They would have to come this way. She waited, thinking of the little girls and missing her mother. She did not know if her mother could swim. Can any mother swim? Where would she have learned to swim? There were no rivers in her village. The line moved on without her. She forgot to look ahead and close the gap. Men in black outfits were carrying a tube across the desert. She did not know who they were, or what the tube was for. They were not dressed like the people giving food. There was an explosion. She fell. When she lifted her head, she saw men killing people, shooting them as they sat on the sand. Many prayed. She did not. She hid inside a big truck, inside a big box, and curled into a ball smaller than a beetle. Adar was alone. For one day, for two days, for three days, she was alone. The box had food of a type she had never seen before. It smelled awful. No one had cooked it recently. How could it still be edible? There were cups of water. She drank and slept. And then a man found her — a man with kind eyes and clean hands. And now she looks at the people in the helicopter. Who are they? She can only understand Jamal. His accent is foreign, and he uses words she doesn't know. He is like so many of the boys she knew in school. They are a little shy, but when they start talking, their bodies become full of stars, and they cannot contain the universes inside them. They must talk or risk exploding. Outside, below, is her family — her mother, her brother, her two little cousins. She knows they are dead. They are in heaven, waiting there for her. Why should she remain here alone? Below there are more explosions, as people she cannot see kill other people she cannot see. This is not the real life, the Koran teaches. The real life is eternal. Maybe it is time for the false and lonely life to end, and for the true and eternal life with her family to begin. Maybe it is time to go. Adar presses down on the handle of the aircraft's sliding door and pulls it. A hand is placed gently on her shoulder. It is the large black man. She has never been touched by an African before. His hand is large, warm, and soft. Maybe it is warmer than other hands. He is smiling at her, and holding something. He hands it to her. It is a piece of chocolate. The return trip is short. Märta and Tigger assist Elise in whatever she needs. Neither has any medical training beyond advanced first aid, but they are helpful in holding things, handing things, and passing stuff around as instructed by the medic. The helicopter touches down as gently as rainfall. Around them, Domiz is no longer the quiet camp Benton first saw. It has become transformed, and now pulses with new life and new injured. People are streaming in to escape the combat, hoping the UN will keep them safe. An emergency surgical team is on the ground. They open the sliding door, take instructions from Elise Garcia, and remove Benton and Jamal. Adar is taken in hand by a nurse, who speaks soothingly to her in Arabic. Benton watches her go. He is grateful she does not look back. As Herb, Tigger, and Märta collect their personal effects, Spaz turns to them from the cockpit and says, 'Watch yourselves.' 'What do you mean?' Tigger asks. 'Louise. She will not be pleased to know what happened. ISIL only cuts off your head. But Louise—' and he makes a snipping motion with his fingers near his zipper. 'We didn't do anything wrong,' Märta says. 'I see,' Spaz says. 'So it is a coincidence that secret ISIL base is located and destroyed in pincer movement between government air force and Kurdish infantry, only moments after hostages are taken away in humanitarian aircraft?' 'Yes,' Tigger says. 'So,' Spaz says. 'Same like Russia.' 'I'm going to call my wife and let her know I'm all right,' Herb says, walking in the direction of the IRSG head office. 'I'll find you all later.' 'I'm coming with you,' Tigger says, as Märta walks off in another direction, toward the medical unit. It is midday, and the sun is burning. Tigger and Herb walk in silence, side by side, past the UNHCR refugee tents, the giant water tanks, and the families gathered outside and under makeshift shade canopies. There is a cafeteria used only by international staff, and Tigger asks Herb whether he can buy him a drink before they each call home. 'Sure,' Herb says. They buy beers from a cold box and sit under the awning together. When they first arrived, the bar had no name. Märta called it Wonderland. Herb and Tigger followed suit, and later all the young people picked it up, which made it official. There are few people there. Everyone else has a job. 'Your wife,' Tigger says, opening the beers and pushing one over to Herb. 'Does she know that you were in any danger?' 'I wasn't in danger — you were in danger. You and Märta took point.' 'You flew in an unarmed helicopter across a war zone, landed in a terrorist base, and carried wounded survivors to safety under armed elements of ISIL. Believe me, you were in danger.' 'I did something stupid, and I need to tell you about it.' 'Keep it to yourself,' Tigger says. 'I was worried about you two.' 'Keep it to yourself.' 'I sent someone to follow you, in case you disappeared. So there would be a fighting chance, in case they captured you—' 'Leave it be, my brother.' 'I committed the very sin I accused Märta of doing with Jamal.' Tigger lays a hand on Herb's own. He pats it several times. 'You do not have to confess it to me. We are doing the best we can for each other in a world that is doing its worst.' 'I'm ashamed of myself,' Herb says. Tigger raises his beer. 'To the best we can do.' Herbert raises his beer bottle, too. 'Amen,' he says. The surgical tent has six beds. Benton lies in one, hooked up to an IV. His clothes have been removed and discarded. He said that he didn't want to see them again. 'But not the shoes,' he said. 'Leave those right here.' By early afternoon, the wounds on either side of his leg have been cleaned, stitched, and dressed. He is informed he's been fortunate, in that the wound has not become infected and, while he will likely suffer chronic pain and will need physical therapy back in England, he will be able to walk again if he follows the rehab regime properly. 'I'm a lucky man,' Benton tells the doctor. The doctor is an Indian, from a town in Gujarat that Benton doesn't know. 'You are not lucky — you were shot. You're joking, right?' the doctor says. 'I'm honestly not sure.' Benton sleeps. When he wakes, it is dusk. Märta is sitting beside him, reading a book. When she sees his eyes, she puts the book away. 'How are you?' she asks. 'I'm OK. How are the kids?' 'Jamal's mother and father came to collect him. She slapped him, hugged him so hard he couldn't breathe, and then slapped him again. His father started to cry. And when he saw that, Jamal started to cry. And then Herb started to tear up, which Tigger wouldn't allow to go unmentioned later. So, as expected there, I suppose. 'Jamal will be OK,' she continues. 'The bullet passed farther away from the bone than it did for you. He's in his early twenties. He'll recover. Apparently our administrative staff is now questioning whether he's covered for long-term medical care through our insurance policy.' 'What are you going to do?' Benton says. 'I'm going to tell Herb, obviously. I think it'll sort itself out quite nicely and quickly under the threat of an editorial to the New York Times and a call to the mothers of every member of the board of directors.' 'And Adar?' 'In the short term, I'm going to let her stay with me for a little while. I don't usually cross that line, but this is a special case. The world media will be interested in her survival, given how much coverage they gave the original attack. It could turn her into an international celebrity, which would be uncomfortable, to say the least. The ICRC has excellent staff working on family reunification, so we'll start there. She must have people somewhere. We know her name and her village, so we'll put it together. But it's not certain she can go back. Or should.' 'My suggestion,' Benton says, propping himself up a little higher in bed, and then thinking better of it, and scooting back down, 'is don't tell anyone. There's more to the story than everyone knows, and it might affect her.' 'How do you mean?' 'My shoe. Give it to me — the left one.' Märta hands him the boot, which she holds as though it were a rat. Benton digs out the sole and removes the SDHC chip. 'I took this from a video camera I found at the site of the mortar attack in the desert.' 'What's on it?' 'Proof that ISIL did it, and not the Kurds.' 'Which is good to know, but hardly surprising.' 'Well, yeah. But that's not what's interesting, is it? It proves they have a strategy for psychological warfare and public diplomacy. It proves they have the technical skills to stage, carry out, video, edit, and disseminate complex messages that can mislead the entire international news profession. It proves that their capacity for deception exceeds our ability to detect it. We can't simply stare at things anymore. We have to get to what they mean.' 'I don't work in intelligence, Benton. This doesn't affect us.' 'No, it does. It really does. If we come out with the facts, and ISIL finds out Adar survived, she could easily become a symbol of survival. They won't want a living symbol of resistance to their cause. They'll hunt her down. I feel like this girl's life is constantly in my hands and I don't know how to save her.' 'How long did the doctors say you need to remain in bed?' 'There's a flight the day after tomorrow. Farrah called the airline to say I need a wheelchair and assistance. I'm going to board that plane.' 'And that will be that,' she says. 'How do you feel?' Märta isn't interested in explaining how she feels. She's done enough today. 'I think it's a wonderful and rare opportunity to learn that two people can still care for one another through it all. To learn that affection can linger,' she says. 'However, I feel that you belong back in Cornwall with your wife and daughter. Don't you?' 'I guess I do.' 'Here's what we're going to do. We're going to say, "Let's stay in touch," and leave it at that. I didn't know it when I was younger, but it turns out you can do that. I think we might even owe it to ourselves.' 'That sounds very nice,' Benton says. 'Let's do that.' Märta then bends over and kisses him, long and gently on his unparted lips, before standing to leave. 'Märta?' 'What?' 'Thank you for saving my life.' Benton sleeps as much as he can after Märta leaves. He does not sleep well. The drugs succeed in dulling the pain, but not in clearing his mind. The blessing, though, is that he is no longer thirsty. There is a cup beside him, always full. He often places his fingertips into the water to be sure it is really there. When he does sleep, he does not suffer nightmares. He does not dream of the mattress soaked in his own blood, or of the light coming through the black hood. He does not dream of Abu Saleh's face — so that was his name — or his voice, or the gun that shot him. What he does dream about is the other girl in green — the girl from 1991 who crouched with him by the truck as Samawah was assaulted. In these dreams, he talks to her, and she talks back to him. They sit together by the giant tyre, and chat as though she were a niece or the school-age daughter of an old friend unseen since a baby. He asks her about school, and she shrugs in the way fifteen-year-old girls do. 'What subject do you like best?' he asks as the bombs fall around them, the shots resound, and the buildings burn. 'I'm good at maths,' she says. He is glad to hear her place the s properly at the end of the word — proof the British were there first. 'You like solving riddles?' 'I like it when there's a right answer and I can find it,' she says, drawing a picture in the dirt with a small stick. She isn't much for eye contact. She's shy. 'I like that, too,' Benton says to her. 'But I'm not so good at maths. I'm not so good at finding answers.' 'What are you good at?' she asks, not looking up. 'I'm better at finding the right questions,' he says. 'Are you in high school?' She nods. She's a freshman. She started this year. 'Do you have a best friend?' he asks. 'Namira.' 'What do you like about her?' 'She's funny. She always makes everyone laugh. She's good at maths, too. She says she wants to be an astronaut when she grows up.' 'That sounds exciting,' Benton says. 'Do you want that, too?' 'No. I don't know what I want to be yet.' 'That's OK. There's a big world out there,' he says, as a tank shell explodes into the hospital, and a wall of black smoke approaches them. 'Can I be anything I want?' she says, looking up for the first time. 'No,' Benton says, as the sky grows thick with smoke. 'No, you can't.' When he's awake, he watches television. He has no focus for reading. The pulsing in his leg and his head dissuade him from trying. The TV hangs in the corner of the tent. It is tuned to Al Jazeera, which is occasionally in English. What he watches is the war that is still not called a war. The Iraqis have attacked, and continue to attack, ISIL positions in and around highly populated areas. They hide there, thinking they can use the population as human shields. Sometimes they are right. Usually they are not. The news says ISIL claims to speak for the Sunnis, and they want to establish a caliphate state in al-Anbar. They assassinate and murder the Shiites, some of whom have taken to changing their family names so they can better blend into Sunni society, and hide there, or at least signal their surrender. Other Sunnis are offended by the beheadings and the killings, and the arbitrary exercise of punishment that is claimed to be sharia law. It is a position these people can only maintain by willfully ignoring 1,400 years of Islamic scholarship, early interpretation, and legal rulings. And so that is what they do. Benton watches a report about an attack in the northern city of Mosul. A suicide bomber has blown himself up in a market. The Iraqi Red Crescent was the first to arrive. It was a motorcycle medic, because they can navigate the crowds and debris. Once a critical mass of rescuers appeared around him — a hirsute man with delicate hands — an ambulance arrived packed with explosives. It detonated, killing the emergency rescuers and those who tried to help. There is footage of a mangled motorcycle, with its front wheel spinning in maudlin fashion. Later, after the dead were washed, the mourners were followed to the funerals, where they were met with another bomb. Benton turns off the television when there is a knock at the door. 'Yes?' A nurse opens it. 'Are you awake?' 'Yes.' 'You have a phone call.' 'Who is it?' 'Your daughter. She is insistent.' 'Yes. I'll take it, thank you.' The nurse is Portuguese. She is reserved, and does not talk much. Benton suspects she has been here a long time. He takes the mobile phone from her. 'Charlotte.' He has anticipated a long lecture and is braced for it, because he deserves it. Her voice, however, is not accusatory. She does not speak quickly. 'I've been trying to speak to you for so long,' she says, 'that I've forgotten what I wanted to say.' 'That's OK.' 'I was told you were shot.' 'In the leg. They say I'll make a full recovery.' 'And you have a broken nose, and severe dehydration, and bruising on your ribs, and abrasions on your knees—' 'I'll make a full recovery, and they are being very nice to me.' 'And yet,' she says, 'there's the story of how you got that way.' 'Yes, there is.' 'Mum's been staying with Vivian Bray.' 'Where are you now?' 'I told Mum it's time she moved back home. She says the choice isn't hers.' 'I'll talk to her. You're right.' 'What are you doing there, Dad? How could you have run off like that, when we're falling apart here?' 'I've been asked that many times by many people in the last few days. All I can say for now is that I feel as though I've passed out of a tunnel that I've been walking through for over twenty years, and while there's no bright light at the end, there is fresh air. And stars above.' 'I wish I knew what that means,' Charlotte says. 'What it means in effect is that I very much want to talk to you, too. Is that enough for now?' 'We'll meet you at the airport. I'm told you'll be home in two days.' 'I'll email the details. And Charlotte? Can you pass a message on to your mother, please?' 'OK.' 'Tell her that what I said over breakfast that day, it wasn't true.' 41 Thomas Benton married Vanessa when he was twenty-seven. She was twenty-five. It didn't seem young at the time. It started with a near run-in between her, in her late father's sports car, and him and his brother, Edgar, out for a ride in their new, co-owned 1973 MGB Mark III. It was 1978. They'd just bought the car from a friend of a friend of someone their father knew by chance in Launceston, in east Cornwall. They'd paid too much money for it, and they didn't care. They were splitting the cost, and each would have paid double for his share. The car was in British racing green, with beige leather. The chrome glistened. The exhaust note could have recited Yeats. Edgar was older by three years. He couldn't drive on account of his gammy left leg. He had climbed a tree on holiday when he was nine and had fallen off it. The village doctor was incompetent, and had set the leg badly. It never healed properly, and, from then on, Edgar had chronic pain. He walked with a limp and was unable to work a clutch, but he could still feel the wind in his hair. Thomas drove; Edgar navigated, often too late. They weaved about the roads like madmen. The idea was to drive home south through Bodmin Moor and breathe fresh air, see the green countryside, and have a pint. The early autumn of 1978 was mild. For years, Vanessa had had the idea of driving her late father's beloved Jensen Interceptor westwards, through the moor out to Penzance and then back to Exeter, where she'd grown up. Her dad had died eight years earlier, in 1970, when a hammer had fallen from a shelf and struck him at the base of his skull. It was a meaningless death that meant everything. Year by year, the car rested under a tarp in the garage, where she would sit with a torch to read and try to remember what he smelled like. Eventually, she and the car fitted one another, and she had the money to have it repaired, if not properly restored. The garage that towed it in was run by Phil Goddard. He was in his fifties then. The car needed a new battery, of course, but a near decade of inactivity had rotted most of what was rubber, and it needed work. A drive like the one she proposed was a good eight hundred kilometres if she took the most direct route — which she didn't plan to do, as that route was charmless. Vanessa paid a crushing bill, donned her father's leather jacket, which she cinched at the waist, rolled down the windows, and fired up the distinctive V8. It was to be an overnight trip. She carried an Italian leather duffel filled with clean clothes, a camera, two new paperbacks — one called The Thorn Birds, and the other The Shining — and a toothbrush. She had driven through Dartmoor from Exeter, and decided on an indirect route that would skirt the scenic southern road on Bodmin Moor. She was looking forward to it, as that road was loved by bikers and drivers, who weaved and bobbed gently through its meandering turns trimmed by hedges and modest homes. People in other impractical cars waved to her, and she waved back. It was a road of flowers, and fences, and the occasional reminder to go SLOW, painted in tall, white letters on the road. Everything promised to be green and blue. But she never made it to the road. As she travelled west into Upton Cross where the moor began, Thomas and Edgar were travelling south, planning to make the same turn. At that moment, Edgar was trying to prove — by way of demonstration — that Benton's aural cavity was precisely the same diameter as a steaming chip he had left over from lunch. Benton was complicating Edgar's proof by swiping wildly, which caused the car to swerve as they approached the intersection. On reaching the primary school on the corner, it looked to Vanessa as though the driver of the green convertible was being terrorised by a swarm of hornets, and the other man was trying to pluck them out of the air, one by one. Watching these men, these gestures, this car — all of this was distracting. In that distraction, she failed to brake hard enough before the turn, and entered it with too much speed. She froze, and drove directly into a red public telephone box. The impact was modest, breaking only a panel of glass on the phone box, ruining the grille of the car, and puncturing her front wheel. But it gave her a serious fright. Vanessa was therefore in a very fragile state of mind when she turned to find the green MGB pulled up beside her, along with the two men who had caused her accident. The first thing she asked Thomas Benton was not the first thing she had expected to say. 'What's that in your ear?' 'It's a chip.' 'Why?' 'To see if it would fit.' 'Are you going to leave it there?' she asked him. It was Edgar, though, who replied. 'I think it's an improvement, don't you?' 'Are you all right?' Benton had the wherewithal to ask, ignoring Edgar, and making his brother immediately wish he'd asked the same. They bought her lunch, and called a garage to tow the Jensen, which — after they were married — they would keep for over a decade before relenting and buying a practical car. Edgar, who passed away in 2011 from colon cancer, never failed to remind his brother that Vanessa was a gift, and to not cherish her was to mock every decent man who would never have such an opportunity. Thomas knew that Edgar meant himself. With his leg and his feelings about it, he never managed to marry. He also never stopped loving Vanessa. Vanessa and Charlotte collect Benton at the airport, and board the train that runs to Fowey every ninety minutes. The trip takes five hours, and Benton and his two women are silent most of the way. They talk of small matters. Charlotte keeps glancing at his leg. When they arrive in Fowey, it is raining, in a persistent and steady drizzle. The school year has started. The kids don't mind the weather, having been raised in it. You can drink it from the sky here, Benton thinks. The house is empty and dark when they arrive. It is as he'd left it. Vanessa has been staying at her girlfriend's house down the road. He suggests to Charlotte they not come in immediately — he can see them later. Charlotte says she won't return to Bristol until they've talked. And she is going to stay with him. He can keep his preferences to himself. He puts on music when they come home: Well-Tempered Clavier by Bach, played by a Korean woman named HyeKyung Lee. Hers is smoother, rounder, more affecting than Glenn Gould's, and more soulful than Daniel Barenboim's. There are others on the shelf — Maurizio Pollini and Sviatoslav Richter — but he hasn't listened to those. Vanessa went through a period a few years ago of buying numerous performances of the same pieces of music to try to understand better the relationship between composer, arranger, and interpreter. He never understood the theory. He only knew what he liked. He bathes, with the music playing from the other room. He drinks a beer, and sits there until the water becomes cold. The next morning is bright, and forecast to be clear. Benton and Charlotte eat in near silence. After breakfast, he puts the SDHC chip into his computer and watches the video from Iraq. Convinced by the quality, he copies the chip to his hard drive, compresses the footage, uploads it to a shared site for large files that the Times uses, and calls his editor. 'I'm back,' Benton says. 'Productive trip, I'm sure.' 'As it happens, I found out what happened at that mortar attack everyone's been going on about. The Kurds didn't do it. I have raw footage of ISIL setting the mortar. And this should matter, because if the Kurds, difficult though they are, don't have political support in the West, there will no opposition against ISIL gains.' 'You have this in your possession?' 'I sent it before calling.' 'How?' 'I took it from the camera the terrorists abandoned at the site after taking the film and killing everyone. Clearly, before they sent it to the international media, they edited the version everyone is now watching, and we all took it as proof positive, because no one gives a damn anymore, as they'd rather be fast and wrong than slow and right. And at the risk of overstating the matter, it's because business depends on speed, and mere democracy depends on validity.' 'I take your point, but democracy doesn't pay the bills around here. And what about the girl? She's the story. What happened to her?' 'The girl?' 'In the green dress, Thomas. She's the human interest in the story. Surely you know that. If she's alive, there'll be a prize in it for you.' 'The girl is dead.' By mid-afternoon, the sky has darkened, and the colours of the day have already shown their best. It offers a chance to wallow and withdraw, but Benton feels, for a change, he'll have none of it. He still isn't ready for the conversation, though. So he puts on his shoes, his parka, and his hat, puts his crutches under his arms, and takes a very small folding stool with him. Prepared, he goes out to face it all. 'Where are you going, Dad?' Charlotte asks. 'For a hobble. I'll be back soon.' 'We haven't spoken a word.' 'It's part of the process. It's going better than it looks.' He takes a cab to Squires Field on Park Road, only a short ride up the hill. The driver lets him out, and Benton crosses the road north to where a few stout-hearted parents watch their boys playing football in the English rain on a plush pitch. The boys are fit and young and focussed. Their energy is boundless. A man he's known for years, Albert Crowley, recognises him and comes over to shake his hand. 'Don't get up, for heaven's sake, man. What happened to you?' 'Bad luck.' 'That's the leading cause of death, I hear. Going to heal?' 'Better than most things.' 'They said it would be sunny today. It occurred to me recently that they get paid either way. I would say you made a mistake with all the war stuff. Weather was the smart money.' 'I rather like this weather.' 'You know the players?' Albert asks about the footballers. 'No. I wanted to watch the future of the Commonwealth run around a bit.' 'It's dire, isn't it? Little fuckers. Be getting drunk and ripping up bus stops before you know it.' 'I've seen worse.' 'We're going to get a pint when the clock runs down. Come along?' 'Safe Harbour?' 'Is there somewhere else?' 'Lester working today?' 'Hasn't missed a day since '78.' 'I'll meet you there.' Benton watches the game for an hour before making his way by cab to the pub. Albert, with family obligations, hasn't arrived yet, so Benton seats himself at the bar. Lester places a coaster with a pint on top of it. 'Haven't seen you in a week,' Lester says. 'Staying in London these days?' 'No. An overseas assignment. Over now. Don't think I'll be going away for a while.' 'What happened to the leg?' 'Nothing permanent, I'm told.' 'Interesting job?' 'A little too interesting. Ask me again sometime.' 'Eat something?' Lester says. 'Not for now. Switch to the news for me?' Benton asks. 'These reality TV shows are unbearable.' 'So, Benton,' Lester says, leaning over the bar a bit. 'I don't want to step in anything, but Vanessa was in here looking for you a few days ago. Now that I know you were travelling, I'm a little surprised she didn't know. So... how are you? Anything you want to talk about?' 'On second thought, bring me a prawn sandwich. And turn up the volume. I'm old.' Benton checks the time. It is past 5.00 p.m., and so 7.00 p.m. in Dohuk. Märta is probably still at the office. She'll be busy as the camp swells. He could call them. Tigger and Herb and Märta can be right here in the pub with him if he presses the right combination of numbers on the phone that he can so easily dial with his fingers. Still nothing from Arwood. The trail is not completely cold, if he wants to follow it. The note he sent to Märta was also sent to Arwood's Kurdish friends, and Märta will have that number on her phone, too, having been copied into the message. He could ask her for it. Place the call. Maybe it would ring. Maybe the person on the other end speaks English, and survived the assault on the fortress. He may know what happened to Arwood: whether he survived, where he is now, where he's going next. For now, though, Benton does not call Märta for the number. As Arwood correctly said, Benton is not hard to find. If he's alive and wants to contact him, he will. If he's dead, Benton would rather not know. It is better for now to believe he is alive, and simply obscured from view by the dirt and debris kicked up by all the mortars. Benton takes a long pull on his beer, and dials the only number important to him right now. It is answered quickly. He tells his wife that he is at the pub drying off — if not drying out. He was watching the local boys play some ball at Squires Field. It was somehow uplifting. He's ordered a sandwich. There is a long pause that Vanessa does not fill. Finally, he says, 'Would you like to come join me?' 'Do you want me to?' 'Very much.' And then Vanessa starts to cry, and he tells her not to because there is no need to cry, and that he has been away but now he is back and will stay. And while he knew it all along, he appreciates even more how lucky they both are. Everything else seems childish or trite at this point. She sniffles once, and suggests he finish his lunch and come back to the house. She's going to move back in. He needs the help. He suggests that all of them rent Ferris Bueller's Day Off tonight. He doesn't say why. She laughs, thinking he's joking. He insists he's not. 'I need a laugh. And there are things I need to tell you both about the past.' Benton watches the news, and drinks the remainder of his beer before ordering another. He had promised the Syrian with the footballer son that he would raise a toast to his dead wife and daughter. But it is too soon to fulfil that obligation. To rush would be to unburden himself of the promise, rather than to respect it. He will hold that for a moment when he is not alone. When he has friends near him. When he can find the courage to make death less of a private matter, and speak about it with the confidence of voice it requires. When he can find his inner Arwood Hobbes. The sandwich comes. Benton places the napkin on his lap, and Lester glances at the TV, where a news presenter is showing the latest footage from Iraq about the mortar attack that happened a bit over a week ago. It shows men in black headscarves running from the launch point after the smoke clears. The commentators have opinions to share. They are the opposite opinions to the ones they voiced a week ago. This goes unmentioned. 'Here you go,' Lester says, putting the napkin and cutlery beside the sandwich. 'Front-row seats to the world's events.' He looks up at the TV on account of Benton's interest. 'The things going on out there — Shiites, Sunnis, all these ancient hatreds just playing themselves out, day after day. Good thing we're not there anymore, I can tell you. I wouldn't want our boys over in the middle of all that. What are you gonna do, right? It's all a damn shame, is what it is. A damn shame. Don't you think?' 'Yes, it is,' Benton says. 'It's a damn shame.' ACKNOWLEDGEMENTS My thanks to my agent, Rebecca Carter, at Janklow & Nesbit, for reading numerous versions of this manuscript and providing essential insight; to my wife, Camilla Waszink, who was my first reader, my second reader, and my third reader (...); to my friends in the International Red Cross and Red Crescent Movement and also at the United Nations; Mat Zeller at No One Left Behind (nooneleft.org) for his thoughts and figures on those national staff and translators and allies we in fact did leave behind; singer and songwriter Mike Doughty for saying I could use his song title 'Into the Un' as a possible title for this book, which I then didn't; to PJ Mark, Henry Rosenbloom, Angus Cargill, Lauren Wein, and all the unsung heroes with Janklow & Nesbit and with my publishers who helped turn a pile of loosely affiliated words into something called a 'book'. This story drew heavily from my own PhD dissertation (2004), which became the book Media Pressure on Foreign Policy: the evolving theoretical framework (2007), in which I studied the Iraqi civil war of 1991 in depth. I was haunted by many of the stories I read, and I knew that, somehow, I needed to return to the subject matter through fiction in order to explore and share other truths. Field-level history about Operation Provide Comfort drew facts, anecdotes, and timelines from Dr Gordon Rudd's excellent 1993 unpublished PhD dissertation from Duke University, accessed through UMI. The setting of Checkpoint Zulu near Samawah was suggested by a 31 March 1991 article in The Washington Post written by Nora Boustany, called 'U.S. Troops Witness Iraqi Attack on Town in Horror, Frustration.' The first draft of this book was completed on 30 January 2014 — before ISIL rose to international prominence; before the Yezidi were massacred on Mount Sinjar; before the Kurds fully joined the fight and became backed by the West... sort of. This book, therefore, did not rush to press chasing headlines: it preceded them. In retrospect, my primary flaw of analysis was failing to anticipate just how bad it would all become. The proof discussed by the Syrian father on the football pitch refers to photos from the Syrian defector called Caesar. I have changed the chronology slightly to allow for this conversation. The working title of this book was 'Welcome to Checkpoint Zulu' because, in a way, we are all at Checkpoint Zulu now. The phrase 'It's a Big Old Goofy World' was taken from John Prine's song of the same name (1991). And, yes, the frozen-chicken thing really happened.