    #[inline(always)]
    pub fn cnt_thr_zero_mode_u0(&self) -> CNT_THR_ZERO_MODE_U0_R {
        CNT_THR_ZERO_MODE_U0_R::new((self.bits & 0x03) as u8)
    }
    #[doc = "Bit 2 - The latched value of thres1 event of PCNT_U%s when threshold event interrupt is valid. 1: the current pulse counter equals to thres1 and thres1 event is valid. 0: others."]
    #[inline(always)]
    pub fn cnt_thr_thres1_lat_u0(&self) -> CNT_THR_THRES1_LAT_U0_R {
        CNT_THR_THRES1_LAT_U0_R::new(((self.bits >> 2) & 0x01) != 0)
    }
    #[doc = "Bit 3 - The latched value of thres0 event of PCNT_U%s when threshold event interrupt is valid. 1: the current pulse counter equals to thres0 and thres0 event is valid. 0: others."]
    #[inline(always)]
    pub fn cnt_thr_thres0_lat_u0(&self) -> CNT_THR_THRES0_LAT_U0_R {
        CNT_THR_THRES0_LAT_U0_R::new(((self.bits >> 3) & 0x01) != 0)
    }
    #[doc = "Bit 4 - The latched value of low limit event of PCNT_U%s when threshold event interrupt is valid. 1: the current pulse counter equals to thr_l_lim and low limit event is valid. 0: others."]
    #[inline(always)]
    pub fn cnt_thr_l_lim_lat_u0(&self) -> CNT_THR_L_LIM_LAT_U0_R {
        CNT_THR_L_LIM_LAT_U0_R::new(((self.bits >> 4) & 0x01) != 0)
    }
    #[doc = "Bit 5 - The latched value of high limit event of PCNT_U%s when threshold event interrupt is valid. 1: the current pulse counter equals to thr_h_lim and high limit event is valid. 0: others."]
    #[inline(always)]
    pub fn cnt_thr_h_lim_lat_u0(&self) -> CNT_THR_H_LIM_LAT_U0_R {
        CNT_THR_H_LIM_LAT_U0_R::new(((self.bits >> 5) & 0x01) != 0)
    }
    #[doc = "Bit 6 - The latched value of zero threshold event of PCNT_U%s when threshold event interrupt is valid. 1: the current pulse counter equals to 0 and zero threshold event is valid. 0: others."]
    #[inline(always)]
    pub fn cnt_thr_zero_lat_u0(&self) -> CNT_THR_ZERO_LAT_U0_R {
        CNT_THR_ZERO_LAT_U0_R::new(((self.bits >> 6) & 0x01) != 0)
    }
}
#[doc = "PNCT UNIT%s status register\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [u_status](index.html) module"]
pub struct U_STATUS_SPEC;
impl crate::RegisterSpec for U_STATUS_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [u_status::R](R) reader structure"]
impl crate::Readable for U_STATUS_SPEC {
    type Reader = R;
}
#[doc = "`reset()` method sets U%s_STATUS to value 0"]
impl crate::Resettable for U_STATUS_SPEC {
    #[inline(always)]
    fn reset_value() -> Self::Ux {
        0
    }
}


0x2 0x3 bank_target 0x0 0x10
	call UNSET_SCROLLING_BG_FADE_IN_BANKS
	waitanimation
	endanimation

.align 2
FLY_STRIKE: objtemplate ANIM_TAG_BIRD ANIM_TAG_BIRD OAM_NORMAL_64x64 gDummySpriteAnimTable 0x0 ROTATIONS_SSSS 0x80B1C3D
ROTATIONS_SSSS: .word PLAYER_ROT_SSSS, ENEMY_ROT_SSSS
PLAYER_ROT_SSSS: .hword 0,0,0x01b9,0,0x7fff,0,0,0
ENEMY_ROT_SSSS: .hword 0,0,0x0150,0,0x7fff,0,0,0

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
.pool
@Credits to ghoulslash
ANIM_ACID_DOWNPOUR:
	loadparticle ANIM_TAG_BLUE_ORB @ reversal
	loadparticle ANIM_TAG_POISON_JAB	@ poison jab
	loadparticle ANIM_TAG_POISON_BUBBLE	@ poison bubbles
	loadBG1 BG_POISON
	waitbgfadeout
	launchtask AnimTask_scroll_background 0x5 0x4 0x0, -0xF0, 0x0 0xffff
	waitbgfadein
	launchtask AnimTask_FadeOutAllBanksExceptAttackerAndTarget 0xA 0x0
	waitanimation
	soundcomplex 0x8D SOUND_PAN_ATTACKER 0xd 0x6
	launchtask AnimTask_move_bank 0x5 0x5 bank_attacker 0x0 0x2 0x32 0x1
	setblends 0x80c
	call PURPLE_FLARE_SELF
	call PURPLE_FLARE_SELF
	call PURPLE_FLARE_SELF
	pause 0x5
	waitanimation
	resetblends
	pause 0x20
	soundcomplex 0x77 SOUND_PAN_ATTACKER 0xd 0x3
	launchtemplate PURPLE_REVERSAL TEMPLATE_ATTACKER | 2, 0x2 0x1a 0x0
	launchtemplate PURPLE_REVERSAL TEMPLATE_ATTACKER | 2, 0x2 0x1a 0x2a
	launchtemplate PURPLE_REVERSAL TEMPLATE_ATTACKER | 2, 0x2 0x1a 0x54
	launchtemplate PURPLE_REVERSAL TEMPLATE_ATTACKER | 2, 0x2 0x1a 0x7e
	launchtemplate PURPLE_REVERSAL TEMPLATE_ATTACKER | 2, 0x2 0x1a 0xa8
	launchtemplate PURPLE_REVERSAL TEMPLATE_ATTACKER | 2, 0x2 0x1a 0xd2
	pause 0x20
	playsoundpanchange 0x9E SOUND_PAN_ATTACKER SOUND_PAN_TARGET 0x2 0x0
	launchtask AnimTask_surf_wave 0x2 0x1 0x2
	launchtask AnimTask_pal_fade 0xa 0x5 PAL_DEF 0x2 0x0 0x7 0xd87c
	launchtask AnimTask_move_bank 0x5 0x5 0x1 0x0 0x2 0x32 0x1
	call PURPLE_FLARE_TGT
	call PURPLE_FLARE_TGT
	pause 0x15
	launchtemplate Template_SlideMonToOffset 0x2 0x5 bank_target 0xfd00 0x15 0x0 0x2a
	pause 0x2c
	launchtask AnimTask_pal_fade 0xa 0x5 PAL_DEF 0x2 0x7 0x0 0xd87c
	makebankinvisible bank_target
	waitanimation
	launchtemplate


= 112614
IGVsw6ljdA== 112615
IG1hbmRl 112616
yZlkyZlu 112617
IM6VzrvOu86szrTOsQ== 112618
dW5jaWE= 112619
Lk1vdmll 112620
IGVzdMOpdGljYQ== 112621
ZW5lbw== 112622
KENvbnN0 112623
2LnYr9ip 112624
IFJlaQ== 112625
IHVpdGdlcg== 112626
IHNlY3JldMOhcmlv 112627
ZsOkaGlna2VpdA== 112628
zrTPjA== 112629
IOC0quC1i+C0rw== 112630
bHVpdGVuZA== 112631
IGJyZWFrb3V0 112632
INW41oDVuNW21oE= 112633
0LTQtdC90LjQuQ== 112634
IHJlY2xhaW0= 112635
IOCksuCkv+Ckr+Clhw== 112636
PVtb 112637
IHJlc3Bvc3Rhcw== 112638
4oCcTg== 112639
IGNvbnRpbsO6YQ== 112640
ZXNlbnQ= 112641
16LXqdeU 112642
5oiR5Zu9 112643
IHZpdmFudA== 112644
16TXqteX 112645
IHZ5aw== 112646
IG5pbmph 112647
IHNlbWlmaW5hbA== 112648
IOuniQ== 112649
INmI2KfYtA== 112650
IFRpYmV0 112651
kbg= 112652
bWVsZXI= 112653
5oOF5Ya15LiL 112654
IGJ1bGt5 112655
VHJpYg== 112656
cG9sZQ== 112657
X05FVFdPUks= 112658
2LTYp9ix2YM= 112659
IGxpZcOf 112660
IOCwquCxjeCwsOCwpw== 112661
IENvbXBvc2l0aW9u 112662
U2lnbmVy 112663
4KuL4KqX4KuN4Kqv 112664
IHBhc3Nvcw== 112665
bGplZA== 112666
aGFsbGU= 112667
IE5pdmVhdQ== 112668
IGRvdHRlZA== 112669
IExvZ3M= 112670
b2Rubw== 112671
IG55aW5naQ== 112672
IAogICAgICAgIAo= 112673
dGFibGVuYW1l 112674
aWhhbm5h 112675
IOGDpeGDkOGDoOGDl+GDo+GDmuGDmA== 112676
IHN0aW11bGk= 112677
4YOi4YOY4YOh 112678
X2ZuYW1l 112679
IGFnYW0= 112680
INeW15k= 112681
J2lz 112682
bGF1YmxpYw== 112683
X2NsZWFudXA= 112684
IEJvcnJvdw== 112685
IGR1d2U= 112686
CW1z 112687
IFNvbW9z 112688
QWluZGE= 112689
IGZpYnJlcw== 112690
LnNldHRlcg== 112691
IEZsZWlzY2g= 112692
VHJhbnNsYXRlZA== 112693
INmF2LTYrti1 112694
IElOSVRJQUw= 112695
IG3DqXRhbGw= 112696
IHNwZWNpYWx0aWVz 112697
IHNhbGw= 112698
IGxpYWlzb24= 112699
IjsvLw== 112700
IHphcGV3 112701
7Luo 112702
IG1mZQ== 112703
IEF6dWw= 112704


 1px 2px -1px hsl(0 0% 0% / 0.1);
    --shadow-medium: 0 4px 6px -1px hsl(0 0% 0% / 0.1), 0 2px 4px -2px hsl(0 0% 0% / 0.1);
    --shadow-large: 0 10px 15px -3px hsl(0 0% 0% / 0.1), 0 4px 6px -4px hsl(0 0% 0% / 0.1);
    --shadow-elegant: 0 10px 30px -10px hsl(var(--primary) / 0.3);
    --shadow-glow: 0 0 40px hsl(var(--primary-glow) / 0.4);

    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
}

/* Dark Mode Variables */

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.text-balance {
    text-wrap: balance;
}

/* Icon Styles */
.icon {
    width: 1em;
    height: 1em;
    display: inline-block;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: var(--transition-fast);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Button Sizes */
.btn-sm {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.875rem;
    height: 2rem;
}

.btn-md {
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: 0.875rem;
    height: 2.5rem;
}

.btn-lg {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1rem;
    height: 3rem;
}

.btn-xl {
    padding: var(--spacing-lg) var(--spacing-2xl);
    font-size: 1.125rem;
    height: 3.5rem;
}

.btn-full {
    width: 100%;
}

/* Button Varian


 35.705278],
    'pop': 1570,
    'state': 'TN'
  },
  {
    '_id': '37027',
    'city': 'BRENTWOOD',
    'loc': [-86.790947, 36.006272],
    'pop': 24280,
    'state': 'TN'
  },
  {
    '_id': '37028',
    'city': 'BUMPUS MILLS',
    'loc': [-87.861434, 36.622618],
    'pop': 411,
    'state': 'TN'
  },
  {
    '_id': '37029',
    'city': 'BURNS',
    'loc': [-87.306061, 36.047066],
    'pop': 4449,
    'state': 'TN'
  },
  {
    '_id': '37030',
    'city': 'DEFEATED',
    'loc': [-85.96969, 36.255617],
    'pop': 5318,
    'state': 'TN'
  },
  {
    '_id': '37031',
    'city': 'CASTALIAN SPRING',
    'loc': [-86.315545, 36.382108],
    'pop': 1544,
    'state': 'TN'
  },
  {
    '_id': '37032',
    'city': 'CEDAR HILL',
    'loc': [-87.027523, 36.506163],
    'pop': 2527,
    'state': 'TN'
  },
  {
    '_id': '37033',
    'city': 'CENTERVILLE',
    'loc': [-87.477473, 35.779685],
    'pop': 5955,
    'state': 'TN'
  },
  {
    '_id': '37034',
    'city': 'CHAPEL HILL',
    'loc': [-86.683584, 35.63542],
    'pop': 2912,
    'state': 'TN'
  },
  {
    '_id': '37035',
    'city': 'CHAPMANSBORO',
    'loc': [-87.111288, 36.378078],
    'pop': 3248,
    'state': 'TN'
  },
  {
    '_id': '37036',
    'city': 'CHARLOTTE',
    'loc': [-87.281554, 36.232612],
    'pop': 4205,
    'state': 'TN'
  },
  {
    '_id': '37037',
    'city': 'CHRISTIANA',
    'loc': [-86.407932, 35.740877],
    'pop': 3173,
    'state': 'TN'
  },
  {
    '_id': '37040',
    'city': 'CLARKSVILLE',
    'loc': [-87.348997, 36.522014],
    'pop': 24920,
    'state': 'TN'
  },
  {
    '_id': '37042',
    'city': 'CLARKSVILLE',
    'loc': [-87.418621, 36.585315],
    'pop': 43296,
    'state': 'TN'
  },
  {
    '_id': '37043',
    'city': 'CLARKSVILLE',
    'loc': [-87.27565300000001, 36.5107],
    'pop': 23166,
    'state': 'TN'
  },
  {
    '_id': '37046',
    'city': 'COLLEGE GROVE',
    'loc': [-86.749516, 35.783166],
    'pop': 4321,
    'state': 'TN'
  },
  {
    '_id': '37047',
    'city': 'CORNERSVILLE',
    'loc': [-86.82862, 35.34088],
    'pop': 1631,
    'state': 'TN'
  },
  {
    '_id':


o),
            NumberToInt32Format.Round => (int)MathF.Round(value),
            NumberToInt32Format.Floor => (int)MathF.Floor(value),
            NumberToInt32Format.Ceiling => (int)MathF.Ceiling(value),
            _ => throw new ArgumentOutOfRangeException(nameof(format), format, null),
        };

        public static int ToInt32(this double value, NumberToInt32Format format = NumberToInt32Format.Floor) => format switch
        {
            NumberToInt32Format.RoundAwayFromZero => (int)Math.Round(value, MidpointRounding.AwayFromZero),
            NumberToInt32Format.Round => (int)Math.Round(value),
            NumberToInt32Format.Floor => (int)Math.Floor(value),
            NumberToInt32Format.Ceiling => (int)Math.Ceiling(value),
            _ => throw new ArgumentOutOfRangeException(nameof(format), format, null),
        };
    }
}


1] = `${(content.title ?? '')}`;
        rowData[2] = `${(blogTagCount ?? '0')}`;
        rowData[3] = `${(statusHtml ?? '')}`;
        rowData[4] = `${(blogTag.sorting ?? '1')}`;

        // Güncellenen verileri satıra geri ekle
        row.data(rowData).draw();

        datatable.order([4, 'asc']).draw();

        // Güncelleme sonrası eski sayfaya geri dön
        datatable.page(page).draw(false);
    }
});
$(document).ready(function () {
    $.ajaxSetup({
        headers: {
            'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
        }
    });

    // Kapandığı Anda Form İçerisini Temizlemeye Yarar
    $(document).on('hidden.bs.modal', '#trashed-view-blog-category-modal', function () {
        $('#trashed-view-blog-category-modal #trashed-view-blog-category-modal-scroll').empty();
    });

    $(document).on('click', '.read-trashed-btn', async function (e) {
        e.preventDefault();

        let id = $(this).closest('tr').data('id');

        if (empty(id)) {

            showSwal('info', 'Silinen Blog Kategori Bulunamadı Sayfayı Yenileyerek Tekrar Deneyiniz !!!', 'center');

            return;
        }

        waitShowAndButtonPassive();

        try {
            // Axios ile istek at
            const response = await axios.post('/lk-admin/blogs/category/read-trashed', { id: id });

            const data = response.data;

            if (data.success) {

                let blogCategory = data.blogCategory;
                $('#trashed-view-blog-category-modal-scroll').html(blogCategory ?? '');

                $('#trashed-view-blog-category-modal').modal('show');
            }

            waitHideAndButtonActive();

            showToast(data.message, data.success ? "#4fbe87" : "#DC3546");

        } catch (error) {
            const response = error.response;

            // Hata durumunu kontrol et
            if (response && response.status === 422) {
                $.each(response.data.errors, function (key, value) {
                    showToast(value[0], "#DC3546");
                });
            } else if (response && response.data.message) {
                showToast(response.data.message, "#DC3546");
            } else {
                showToast(error.message || 'Beklenmeyen Bir Hata Oluştu.', "#DC3546");
            }

            waitHideAndButtonActive();
        }
    });
});
$(document).ready(function () {
    $.ajaxSetup({
        headers: {
            'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
        }
    });

    $(document).on('click', '#add-blog-category', function () {
        let maxOrder = getMaxOrderValue();
        $('#sorting').val(maxOrder + 1);
    });

    $(document).on('input', '#sorting', function () {
        let value = parseInt($(this).val(), 10);
        if (value <= 1 || isNaN(value)) {
            $(this).val(1);
        }
    });

    // Kapandığı Anda Form İçerisini Temizlemeye Yarar
    $(document).on('hidden.bs.modal', '#add-blog-category-modal', function () {
        resetAddForm();
    });

    $(document).on("submit", "#create-form", async function (e) {
        e.preventDefault();

        let url = $(this).data('action');
        waitShowAndButtonPassive();

        try {
            // Axios ile istek at
            const response = await axios.post(url, new FormData(this));

            const data = response.data;

            if (data.success) {


ho, m.stake)).collect::<Vec<_>>()
	}

	fn runners_up_and_stake() -> Vec<(u64, u64)> {
		Elections::runners_up()
			.into_iter()
			.map(|r| (r.who, r.stake))
			.collect::<Vec<_>>()
	}

	fn all_voters() -> Vec<u64> {
		Voting::<Test>::iter().map(|(v, _)| v).collect::<Vec<u64>>()
	}

	fn balances(who: &u64) -> (u64, u64) {
		(Balances::free_balance(who), Balances::reserved_balance(who))
	}

	fn has_lock(who: &u64) -> u64 {
		Balances::locks(who)
			.get(0)
			.cloned()
			.map(|lock| {
				assert_eq!(lock.id, ElectionsPhragmenPalletId::get());
				lock.amount
			})
			.unwrap_or_default()
	}

	fn intersects<T: PartialEq>(a: &[T], b: &[T]) -> bool {
		a.iter().any(|e| b.contains(e))
	}

	fn ensure_members_sorted() {
		let mut members = Elections::members().clone();
		members.sort_by_key(|m| m.who);
		assert_eq!(Elections::members(), members);
	}

	fn ensure_candidates_sorted() {
		let mut candidates = Elections::candidates().clone();
		candidates.sort_by_key(|(c, _)| *c);
		assert_eq!(Elections::candidates(), candidates);
	}

	fn locked_stake_of(who: &u64) -> u64 {
		Voting::<Test>::get(who).stake
	}

	fn ensure_members_has_approval_stake() {
		// we filter members that have no approval state. This means that even we have more seats
		// than candidates, we will never ever chose a member with no votes.
		assert!(Elections::members()
			.iter()
			.chain(Elections::runners_up().iter())
			.all(|s| s.stake != u64::zero()));
	}

	fn ensure_member_candidates_runners_up_disjoint() {
		// members, candidates and runners-up must always be disjoint sets.
		assert!(!intersects(&members_ids(), &candidate_ids()));
		assert!(!intersects(&members_ids(), &runners_up_ids()));
		assert!(!intersects(&candidate_ids(), &runners_up_ids()));
	}

	fn pre_conditions() {
		System::set_block_number(1);
		ensure_members_sorted();
		ensure_candidates_sorted();
		ensure_member_candidates_runners_up_disjoint();
	}

	fn post_conditions() {
		ensure_members_sorted();
		ensure_candidates_sorted();
		ensure_member_candidates_runners_up_disjoint();
		ensure_members_has_approval_stake();
	}

	fn submit_candidacy(origin: Origin) -> DispatchResultWithPostInfo {
		Elections::submit_candidacy(origin, Elections::candidates().len() as u32)
	}

	fn vote(origin: Origin, votes: Vec<u64>, stake: u64) -> DispatchResultWithPostInfo {
		// historical note: helper function was created in a period of time in which the API of vote
		// call was changing. Currently it is a wrapper for the original call and does not do much.
		// Nonetheless, totally harmless.
		ensure_signed(origin.clone()).expect("vote origin must be signed");
		Elections::vote(origin, votes, stake)
	}

	fn votes


k looping state if -c option given
     ***************************************************************/
    for (lc=0; TEST_LOOPING(lc); lc++) {

	/* reset Tst_count in case we are looping. */
	Tst_count=0;

	/*
	 * TEST CASE:
	 * Increase by 8192 bytes
	 */
	Increment = 8192;

	/* Call sbrk(2) */
#if defined(sgi)
	tret=(long)sbrk(Increment);   /* Remove -64 IRIX compiler warning */
	TEST_ERRNO=errno;
#else
	TEST(sbrk(Increment));
	tret=TEST_RETURN;
#endif

	/* check return code */
	if ( tret == -1 ) {
	    TEST_ERROR_LOG(TEST_ERRNO);
	    tst_resm(TFAIL, "sbrk - Increase by 8192 bytes failed, errno=%d : %s",
		     TEST_ERRNO, strerror(TEST_ERRNO));
	} else {
	    /***************************************************************
	     * only perform functional verification if flag set (-f not given)
	     ***************************************************************/
	    if ( STD_FUNCTIONAL_TEST ) {
		/* No Verification test, yet... */
		tst_resm(TPASS, "sbrk - Increase by 8192 bytes returned %d",
		    tret);
	    }
	}

	/*
	 * TEST CASE:
	 * Decrease to original size
	 */
	Increment=(Increment * -1);

	/* Call sbrk(2) */
#ifdef CRAY
	TEST(sbrk(Increment));
	tret=TEST_RETURN;
#else
	tret=(long)sbrk(Increment);
	TEST_ERRNO=errno;
#endif

	/* check return code */
	if ( tret == -1 ) {
	    TEST_ERROR_LOG(TEST_ERRNO);
	    tst_resm(TFAIL, "sbrk - Decrease to original size failed, errno=%d : %s",
		     TEST_ERRNO, strerror(TEST_ERRNO));
	} else {
	    /***************************************************************
	     * only perform functional verification if flag set (-f not given)
	     ***************************************************************/
	    if ( STD_FUNCTIONAL_TEST ) {
		/* No Verification test, yet... */
		tst_resm(TPASS, "sbrk - Decrease to original size returned %d", tret);
	    }
	}

    }	/* End for TEST_LOOPING */

    /***************************************************************
     * cleanup and exit
     ***************************************************************/
    cleanup();

    return 0;
}	/* End main */

/***************************************************************
 * setup() - performs all ONE TIME setup for this test.
 ***************************************************************/
void
setup()
{
    /* capture signals */
    tst_sig(NOFORK, DEF_HANDLER, cleanup);

    /* make a temp dir and cd to it */
    tst_tmpdir();

    /* Pause if that option was specified */
    TEST_PAUSE;
}	/* End setup() */

/***************************************************************
 * cleanup() - performs all ONE TIME cleanup for this test at
 *		completion or premature exit.
 ***************************************************************/
void
cleanup()
{
    /*
     * print timing stats if that option was specified.
     * print errno log if that option was specified.
     */
    TEST_CLEANUP;

    /* remove files and temp dir */
    tst_rmdir();

    /* exit with return code appropriate for results */
    tst_exit();
}	/* End cleanup() */


m
// https://www.usenix.org/system/files/conference/usenixsecurity17/sec17-lee-sangho.pdf
#ifdef M32

zigzag_bench:
            cmp $0, 0x8(%ebp)
            je zigzag_bench_ret

block0:     lea_pic block1, %edx
            lea_pic block2, %ecx
            lea_pic a, %eax
            cmp $0, (%eax)
            cmove %ecx, %edx
block0.j:   jmp zz1
block1:     nop
            lea_pic block5, %edx
block1.j:   jmp zz2
block2:     lea_pic block3, %edx
            lea_pic block4, %ecx
            lea_pic b, %eax
            cmp $0, (%eax)
            cmove %ecx, %edx
block2.j:   jmp zz3
block3:     nop
            lea_pic block5, %edx
block3.j:   jmp zz4
block4:     nop
block5:     nop

            decl 0x8(%ebp)
            jmp zigzag_bench

zigzag_bench_ret:
            ret

zz1:        jmp block1.j
zz2:        jmp block2.j
zz3:        jmp block3.j
zz4:        jmp *%edx

#else

zigzag_bench:
            cmp $0, %rdi
            je zigzag_bench_ret

block0:     lea_pic block1, %r15
            lea_pic block2, %r14
            cmpl $0, a(%rip)
            cmove %r14, %r15
block0.j:   jmp zz1
block1:     nop
            lea_pic block5, %r15
block1.j:   jmp zz2
block2:     lea_pic block3, %r15
            lea_pic block4, %r14
            cmpl $0, b(%rip)
            cmove %r14, %r15
block2.j:   jmp zz3
block3:     nop
            lea_pic block5, %r15
block3.j:   jmp zz4
block4:     nop
block5:     nop

            dec %rdi
            jmp zigzag_bench

zigzag_bench_ret:
            retq

zz1:        jmp block1.j
zz2:        jmp block2.j
zz3:        jmp block3.j
zz4:        jmpq *%r15

#endif


----------------------------------------------------------------------------------
--- Mudlet GUI Utils
----------------------------------------------------------------------------------

--- The gaugesTable table. First we need to make this table which will be
--- used later to store important data in.
---
--- @class function
--- @name gaugesTable
gaugesTable = {}

--- The color_table table holds definition of color names. These are intended to be
-- used in conjunction with fg() and bg() colorizer functions.
-- Mudlet's original table - going back a few years - differs from the
-- "standard" which can be found at https://www.w3.org/TR/SVG11/types.html#ColorKeywords
-- Mudlet has additional colours not in the standard:
-- "light_goldenrod", "light_slate_blue", "navy_blue" and "violet_red"
-- Mudlet is missing some colours:
-- "aqua", "fuchsia", "dark_blue", "dark_cyan", "dark_gray"/"dark_grey",
-- "dark_magenta", "dark_red", "indigo", "light_green", "olive", "silver",
-- "teal", "violet_red"
-- Also Mudlet redefines:
-- "gray"/"grey", "green", "maroon" and "purple"
-- All of the above also implies the Camel Case equivalents; in summary:
--  Colour               Mudlet            Web Standard
--  aqua                                     0, 255, 255
--  fuchsia                                255,   0, 255
--  dark_blue                                0,   0, 139
--  dark_gray/dark_grey                    169, 169, 169
--  dark_magenta                           139,   0, 139
--  dark_red                               139,   0,   0
--  gray/grey            190, 190, 190     128, 128, 128
--  green                  0, 255,   0       0, 128,   0
--  indigo                                  75,   0, 130
--  light_goldrod        238, 221, 130
--  light_slate_blue     132, 112, 255
--  light_green                            144, 238, 144
--  maroon               176,  48,  96     128,   0,   0
--  navy_blue              0,   0, 128
--  olive                                  128, 128,   0
--  purple               160,  32, 240     128,   0, 128
--  silver                                 192, 192, 192
--  teal                                     0, 128, 128
--  violet_red                             208,  32, 240
-- @see showColors
-- @see bg
-- @see fg
-- @class function
-- @name color_table
color_table = color_table or {}
color_table["alice_blue"]             = { 240, 248, 255 }
color_table["AliceBlue"]              = { 240, 248, 255 }
color_table["antique_white"]          = { 250, 235, 215 }
color_table["AntiqueWhite"]           = { 250, 235, 215 }
color_table["aquamarine"]             = { 127, 255, 212 }
color_table["azure"]                  = { 240, 255, 255 }
color_table["beige"]                  = { 245, 245, 220 }
color_table["bisque"]                 = { 255, 228, 196 }
color_table["black"]                  = { 0, 0, 0 }
color_table["blanched_almond"]        = { 255, 235, 205 }
color_table["BlanchedAlmond"]         = { 255, 235, 205 }
color_table["blue"]                   = { 0, 0, 255 }
color_table["blue_violet"]            = { 138, 43, 226 }
color_table["BlueViolet"]             = { 138, 43, 226 }
color_table["brown"]                  = { 165, 42, 42 }
color_table["b


); if (!*pb) return;
		if (sep) {
			cybozu::writeChar(pb, os, sep);
			if (!*pb) return;
		}
		c.save(pb, os, ioMode);
	}
#ifndef CYBOZU_DONT_USE_EXCEPTION
	template<class InputStream>
	void load(InputStream& is, int ioMode = IoSerialize)
	{
		bool b;
		load(&b, is, ioMode);
		if (!b) throw cybozu::Exception("Fp6:load");
	}
	template<class OutputStream>
	void save(OutputStream& os, int ioMode = IoSerialize) const
	{
		bool b;
		save(&b, os, ioMode);
		if (!b) throw cybozu::Exception("Fp6:save");
	}
#endif
#ifndef CYBOZU_DONT_USE_STRING
	friend std::istream& operator>>(std::istream& is, Fp6& self)
	{
		self.load(is, fp::detectIoMode(Fp::BaseFp::getIoMode(), is));
		return is;
	}
	friend std::ostream& operator<<(std::ostream& os, const Fp6& self)
	{
		self.save(os, fp::detectIoMode(Fp::BaseFp::getIoMode(), os));
		return os;
	}
#endif
	static void add(Fp6& z, const Fp6& x, const Fp6& y)
	{
		Fp2::add(z.a, x.a, y.a);
		Fp2::add(z.b, x.b, y.b);
		Fp2::add(z.c, x.c, y.c);
	}
	static void sub(Fp6& z, const Fp6& x, const Fp6& y)
	{
		Fp2::sub(z.a, x.a, y.a);
		Fp2::sub(z.b, x.b, y.b);
		Fp2::sub(z.c, x.c, y.c);
	}
	static void neg(Fp6& y, const Fp6& x)
	{
		Fp2::neg(y.a, x.a);
		Fp2::neg(y.b, x.b);
		Fp2::neg(y.c, x.c);
	}
	static void mul2(Fp6& y, const Fp6& x)
	{
		Fp2::mul2(y.a, x.a);
		Fp2::mul2(y.b, x.b);
		Fp2::mul2(y.c, x.c);
	}
	MCL_DLL_API static void sqr(Fp6& y, const Fp6& x);
	MCL_DLL_API static void mul(Fp6& z, const Fp6& x, const Fp6& y);
	MCL_DLL_API static void inv(Fp6& y, const Fp6& x);
};

struct Fp6Dbl {
	Fp2Dbl a, b, c;
	static void add(Fp6Dbl& z, const Fp6Dbl& x, const Fp6Dbl& y)
	{
		Fp2Dbl::add(z.a, x.a, y.a);
		Fp2Dbl::add(z.b, x.b, y.b);
		Fp2Dbl::add(z.c, x.c, y.c);
	}
	static void sub(Fp6Dbl& z, const Fp6Dbl& x, const Fp6Dbl& y)
	{
		Fp2Dbl::sub(z.a, x.a, y.a);
		Fp2Dbl::sub(z.b, x.b, y.b);
		Fp2Dbl::sub(z.c, x.c, y.c);
	}
	MCL_DLL_VAR static void (*mulPre)(Fp


ing AttachmentFilename
        {
            get => _attachmentFilename.ToLower().EndsWith(".zip") ? _attachmentFilename : $"{_attachmentFilename}.zip";
            set => _attachmentFilename = value;
        }

        /// <summary>
        /// The text to show in the label that prompts the user to input any relevant message
        /// </summary>
        public string UserExplanationLabel { get; set; }

        [Obsolete("Not actually used anywhere")]
        public string ContactMessageTop { get; set; }

        /// <summary>
        /// Show buttons in the "flat" (non 3D) style
        /// </summary>
        public bool ShowFlatButtons { get; set; } = true;

        /// <summary>
        /// Show the button that gives user the option to switch back to "Less Detail".
        /// NB This was previously fully toggle but we now always show "More Detail" and optionally show "Less Detail"
        /// </summary>
        public bool ShowLessDetailButton { get; set; }

        /// <summary>
        /// Show the tabbed ("More Detailed") view to user straight away
        /// The purpose of the non-tabbed ("Less Details") view was to avoid scaring users, so the full detaild view is
        /// best reserved for advanced or technical users
        /// </summary>
        public bool ShowFullDetail { get; set; }

        /// <summary>
        /// Whether to show relevant icons on the buttons
        /// </summary>
        public bool ShowButtonIcons { get; set; }

        /// <summary>
        /// Format of the final report - Defaults to TemplateFormat.Text
        /// </summary>
        public TemplateFormat ReportTemplateFormat { get; set; } = TemplateFormat.Text;

        /// <summary>
        /// A custom/user Handlebar template (Handlebars is almost identical to Mustache) - <see href="https://handlebarsjs.com"/>
        /// to use instead of the supplied presets
        /// A populated model will be passed to the template <see cref="ReportModel"/>
        /// See Templates/ReportTemplate.text for example
        /// </summary>
        public string ReportCustomTemplate { get; set; }

        /// <summary>
        /// convenience method
        /// </summary>
        /// <returns>true if configuration is set to use SimpleMAPI</returns>
        public bool IsSimpleMAPI()
        {
            return SendMethod == ReportSendMethod.SimpleMAPI;
        }
    }
}

#pragma warning restore 1591


color_b,
                                     self.color_anim_a or self.color_a,
                                     self.barColor2[1],
                                     self.barColor2[2],
                                     self.barColor2[3],
                                     self.barColor2[4])
    else
      self.bar:SetForegroundColor(self.color_anim_r or self.color_r,
                                  self.color_anim_g or self.color_g,
                                  self.color_anim_b or self.color_b,
                                  self.color_anim_a or self.color_a);
    end
  end,
  SetBarColor2 = function(self, r, g, b, a)
    self.barColor2 = { r, g, b, a}
    self:UpdateForegroundColor()
  end,
  SetGradientOrientation = function(self, orientation)
    self.gradientOrientation = orientation
    self:UpdateForegroundColor()
  end,
  SetGradientEnabled = function(self, enable)
    self.enableGradient = enable
    self:UpdateForegroundColor()
  end,
  Color = function(self, r, g, b, a)
    self.color_r = r;
    self.color_g = g;
    self.color_b = b;
    self.color_a = a;
    self:UpdateForegroundColor()
  end,
  ColorAnim = function(self, r, g, b, a)
    self.color_anim_r = r;
    self.color_anim_g = g;
    self.color_anim_b = b;
    self.color_anim_a = a;
    self:UpdateForegroundColor()
  end,
  GetColor = function(self)
    return self.color_r, self.color_g, self.color_b, self.color_a
  end
}

-- Called when first creating a new region/display
local function create(parent)
  -- Create overall region (containing everything else)
  local region = CreateFrame("Frame", nil, parent);
  --- @cast region table|Frame
  region.regionType = "aurabar"
  region:SetMovable(true);
  region:SetResizable(true);
  region:SetResizeBounds(1, 1)

  local bar = CreateFrame("Frame", nil, region);
  --- @cast bar table|Frame
  Mixin(bar, Private.SmoothStatusBarMixin);

  -- Now create a bunch of textures
  local bg = region:CreateTexture(nil, "ARTWORK");
  bg:SetTexelSnappingBias(0)
  bg:SetSnapToPixelGrid(false)
  bg:SetAllPoints(bar);

  local fg = bar:CreateTexture(nil, "ARTWORK");
  fg:SetTexelSnappingBias(0)
  fg:SetSnapToPixelGrid(false)
  fg:SetAllPoints(bar)

  local fgMask = bar:CreateMaskTexture()
  fgMask:SetTexture("Interface\\AddOns\\WeakAuras\\Media\\Textures\\Square_FullWhite",
                    "CLAMPTOBLACKADDITIVE", "CLAMPTOBLACKADDITIVE", "NEAREST")
  fgMask:SetTexelSnappingBias(0)
  fgMask:SetSnapToPixelGrid(false)
  fg:AddMaskTexture(fgMask)

  local spark = bar:CreateTexture(nil, "ARTWORK");
  spark:SetSnapToPixelGrid(false)
  spark:SetTexelSnappingBias(0)
  fg:SetDrawLayer("ARTWORK", 0);
  bg:SetDrawLayer("ARTWORK", -1);
  spark:SetDrawLayer("ARTWORK", 7);
  bar.fg = fg;
  bar.fgMask = fgMask
  bar.bg = bg;
  bar.spark = spark;
  for key, value in pairs(barPrototype) do
    bar[key] = value;
  end
  bar.extraTextures = {};
  bar:SetRotatesTexture(true);
  bar:HookScript("OnSizeChanged", bar.OnSizeChanged);
  region.bar = bar;

  -- Create icon
  local iconFrame = CreateFrame("Frame", nil, region);
  region.iconFrame = iconFrame;
  local icon = iconFrame:CreateTexture(nil, "OVERLAY");
  icon:SetSnapToPixelGrid(false)


="mnt_2disk2_2sstrege_2_mission_x_2build_2mission__inc_2cfe__es__perfids_8h.html#c9d38ed8b57e58bb56b0ebc293a87d7e">00075 #define CFE_TIME_TONE1HZISR_PERF_ID     7
00076 #define CFE_TIME_LOCAL1HZISR_PERF_ID    8
00078 #define CFE_TIME_SENDMET_PERF_ID        9
00079 #define CFE_TIME_LOCAL1HZTASK_PERF_ID   10
00080 #define CFE_TIME_TONE1HZTASK_PERF_ID    11
00086 #endif   /* _cfe_es_perfids_ */

<address style="align: right;">Generated on Mon Jun 29 12:31:31 2015 for Core Flight Executive on  by

 1.4.7 </address>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>Core Flight Executive on : /home/sstrege/MissionX/cfe/docs/src/cfe_time.dox File Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">

Main Page

Data Structures

Files

Directories

<a href="pages


1 = this->WorkPd->GetCellData()->GetArray(this->GroupIdsArrayName)->GetTuple1(cellEdgeNeighbors->GetId(0));

            if ((edgeVal0 == badVals->GetId(0) && edgeVal1 == badVals->GetId(1)) ||
                 (edgeVal0 == badVals->GetId(1) && edgeVal1 == badVals->GetId(0)))
            {
              tempNodes.push_back(pointCCWId);
              count++;
            }
            else if (missingVals->IsId(edgeVal0) != -1 || missingVals->IsId(edgeVal1) != -1)
            {
              allNodes.push_back(tempNodes);

              if (allNodes.size() == missingVals->GetNumberOfIds())
              {
                count = -1;
                break;
              }

              tempNodes.clear();
              tempNodes.push_back(halfId);
              count=1;
              j=-1;
              break;
            }
          }
        }

        for (int j=0; j<allNodes.size(); j++)
        {
          for (int k=1; k<allNodes[j].size(); k++)
          {
            int ptId = allNodes[j][k];

            vtkNew(vtkIdList, pointCells);
            this->WorkPd->GetPointCells(ptId, pointCells);

            for (int l=0; l<pointCells->GetNumberOfIds(); l++)
            {
              int cellVal = this->WorkPd->GetCellData()->GetArray(this->GroupIdsArrayName)->GetTuple1(pointCells->GetId(l));
              if (cellVal == badVals->GetId(0) || cellVal == badVals->GetId(1))
              {
                this->WorkPd->GetCellData()->GetArray(this->GroupIdsArrayName)->SetTuple1(pointCells->GetId(l), missingVals->GetId(j));
              }
            }
          }
        }
      }
    }
  }

  return SV_OK;
}

// ----------------------
// FixMultipleGroups
// ----------------------
int vtkSVSurfaceCenterlineGrouper::FixMultipleGroups(vtkPolyData *pd, vtkPolyData *polycubePd, std::vector<Region> surfaceGroups, std::vector<Region> polycubeGroups)
{
  int numSurfaceGroups  = surfaceGroups.size();
  int numPolycubeGroups = polycubeGroups.size();

  vtkNew(vtkIdList, groupIds);
  vtkNew(vtkIdList, groupCount);

  for (int i=0; i<numSurfaceGroups; i++)
  {
    int groupVal = surfaceGroups[i].IndexCluster;
    int isId = groupIds->IsId(groupVal);
    if (isId == -1)
    {
      groupIds->InsertNextId(groupVal);
      groupCount->InsertNextId(1);
    }
    else
      groupCount->SetId(isId, groupCount->GetId(isId)+1);
  }

  for (int i=0; i<groupIds->GetNumberOfIds(); i++)
  {
    int numOfGroup = groupCount->GetId(i);
    if (numOfGroup > 1)
    {
      if (numOfGroup == 2)
      {
        int groupVal = groupIds->GetId(i);
        int polyIndex = -1;
        for (int j=0; j<numPolycubeGroups; j++)
        {
          if (polycubeGroups[j].IndexCluster == groupVal)
            polyIndex = j;
        }

        std::vector<int> groupLocs;
        for (int j=0; j<numSurfaceGroups; j++)
        {
          if (surfaceGroups[j].IndexCluster == groupIds->GetId(i))
            groupLocs.push_back(j);
        }

        std::vector<std::vector<int> > polyConnectedCornerPts;
        this->GetConnectedEdges(polycubeGroups[polyIndex].BoundaryEdges, polyConnectedCornerPts);

        std::vector<std::vector<int> > allPolycubeGroups;
        for (int j=0; j<polyConnectedCornerPts.size(); j++)
        {


t(lcHtml, startIndex)) {
    const endIfIndex = lcHtml.indexOf('[endif]', startIndex);
    return lcHtml.indexOf('>', endIfIndex);
  } else {
    if (isBogus) {
      const endIndex = lcHtml.indexOf('>', startIndex);
      return endIndex !== -1 ? endIndex : lcHtml.length;
    } else {
      const endCommentRegexp = /--!?>/g;
      endCommentRegexp.lastIndex = startIndex;
      const match = endCommentRegexp.exec(html);
      return match ? match.index + match[0].length : lcHtml.length;
    }
  }
};

/*
 * Returns the index of the matching end tag for a specific start tag. This can
 * be used to skip all children of a parent element from being processed.
 */
const findMatchingEndTagIndex = (schema: Schema, html: string, startIndex: number): number => {
  // TODO: TINY-7658: this regex does not support CDATA
  const startTagRegExp = /<([!?\/])?([A-Za-z0-9\-_:.]+)/g;
  const endTagRegExp = /(?:\s(?:[^'">]+(?:"[^"]*"|'[^']*'))*[^"'>]*(?:"[^">]*|'[^'>]*)?|\s*|\/)>/g;
  const voidElements = schema.getVoidElements();
  let count = 1, index = startIndex;

  // keep finding HTML tags (opening, closing, or neither like comments or
s)
  while (count !== 0) {
    startTagRegExp.lastIndex = index;

    // ideally, we only want to run through this the once - but sometimes the startTagRegExp will give us false positives (things that begin
    // like tags, but don't end like them) and so we might need to bump up its lastIndex and try again.
    while (true) {
      const startMatch = startTagRegExp.exec(html);
      if (startMatch === null) {
        // doesn't matter what count is, we've run out of HTML tags
        return index;
      } else if (startMatch[1] === '!') {
        // TODO: TINY-7658 add CDATA support here
        if (Strings.startsWith(startMatch[2], '--')) {
          index = findCommentEndIndex(html, false, startMatch.index + '!--'.length);
        } else {
          index = findCommentEndIndex(html, true, startMatch.index + 1);
        }
        break;
      } else { // it's an element
        endTagRegExp.lastIndex = startTagRegExp.lastIndex;
        const endMatch = endTagRegExp.exec(html);
        // TODO: once we don't need IE, make the regex sticky (will be faster than looking at .index afterwards and throwing out bad matches)
        if (Type.isNull(endMatch) || endMatch.index !== startTagRegExp.lastIndex) {
          // We can skip through to the end of startMatch only because there's no way a "<" could appear halfway through "<name-of-tag"
          continue;
        }

        if (startMatch[1] === '/') { // end of element
          count -= 1;
        } else if (!Obj.has(voidElements, startMatch[2])) { // start of element, specifically not a void element like

          count += 1;
        }

        index = startTagRegExp.lastIndex + endMatch[0].length;
        break;
      }
    }
  }

  return index;
};

const trimHtml = (tempAttrs: string[], html: string): string => {
  const trimContentRegExp = new RegExp([
    '\\s?(' + tempAttrs.join('|') + ')="[^"]+"' // Trim temporary data-mce prefixed attributes like


            let mut param_str_start_pos = 0;
            let mut current_key = None;
            for (i, &blah) in src.iter().enumerate() {
                if blah == 0 {
                    let string_value = String::from_utf8(src[param_str_start_pos..i].to_owned())?;
                    param_str_start_pos = i + 1;

                    current_key = match current_key {
                        Some(key) => {
                            parameters.insert(key, string_value);
                            None
                        }
                        None => Some(string_value),
                    }
                }
            }

            src.advance(message_len - STARTUP_HEADER_SIZE);

            self.startup_received = true;
            return Ok(Some(ClientMessage::Startup(Startup {
                requested_protocol_version: (protocol_version_major, protocol_version_minor),
                parameters,
            })));
        }

        if src.len() < MESSAGE_HEADER_SIZE {
            src.reserve(MESSAGE_HEADER_SIZE);
            return Ok(None);
        }

        let mut header_buf = src.clone();
        let message_tag = header_buf.get_u8();
        let message_len = header_buf.get_i32() as usize;

        if src.len() < message_len {
            src.reserve(message_len - src.len());
            return Ok(None);
        }

        src.advance(MESSAGE_HEADER_SIZE);

        let read_cstr = |src: &mut BytesMut| -> Result<String, ProtocolError> {
            let next_null = src.iter().position(|&b| b == 0).ok_or(ProtocolError::ParserError)?;
            let bytes = src[..next_null].to_owned();
            src.advance(bytes.len() + 1);
            Ok(String::from_utf8(bytes)?)
        };

        let message = match message_tag {
            b'P' => {
                let prepared_statement_name = read_cstr(src)?;
                let query = read_cstr(src)?;
                let num_params = src.get_i16();
                let _params: Vec<_> = (0..num_params).into_iter().map(|_| src.get_u32()).collect();

                ClientMessage::Parse(Parse {
                    prepared_statement_name,
                    query,
                    parameter_types: Vec::new(),
                })
            }
            b'D' => {
                let target_type = src.get_u8();
                let name = read_cstr(src)?;

                ClientMessage::Describe(match target_type {
                    b'P' => Describe::Portal(name),
                    b'S' => Describe::PreparedStatement(name),
                    _ => return Err(ProtocolError::ParserError),
                })
            }
            b'S' => ClientMessage::Sync,
            b'B' => {
                let portal = read_cstr(src)?;
                let prepared_statement_name = read_cstr(src)?;

                let num_param_format_codes = src.get_i16();
                for _ in 0..num_param_format_codes {
                    let _format_code = src.get_i16();
                }

                let num_params = src.get_i16();
                for _ in 0..num_params {
                    let param_len = src.get_i32() as usize;
                    let _bytes = &src[0..param_len];
                    src.advance(param_len);
                }

                let result_format = match src.get_i16() {
                    0 => BindFormat


iCertEnroll(&b),
			pathVenafiCertSign(&b),
			pathVenafiCertRead(&b),
			pathVenafiCertRevoke(&b),
			pathVenafiFetchListCerts(&b),
		},

		Secrets: []*framework.Secret{
			secretCerts(&b),
		},

		BackendType: logical.TypeLogical,
	}
	b.Storage = conf.StorageView
	return &b
}

const (
	backendHelp = `
The Venafi certificates backend plugin requests certificates from TPP of Condor.

After mounting this backend create a role using role/ path.
`
	utilityName = "HashiCorp Vault"
)
package pki

import (
	"context"
	r "crypto/rand"
	"crypto/rsa"
	"crypto/tls"
	"crypto/x509"
	"encoding/pem"
	"errors"
	"fmt"
	"log"
	"math/rand"
	"net"
	"os"
	"strconv"
	"strings"
	"testing"
	"time"

	vcertutil "github.com/Venafi/vcert/v5/pkg/util"
	"github.com/hashicorp/vault/sdk/logical"

	"github.com/Venafi/vault-pki-backend-venafi/plugin/pki/vpkierror"
	"github.com/Venafi/vault-pki-backend-venafi/plugin/util"
)

type venafiConfigString string

type testData struct {
	cert     string
	cn       string
	csrPK    []byte
	dnsEmail string
	//dnsIP added to alt_names to support some old browsers which can't parse IP Addresses x509 extension
	dnsIP string
	dnsNS string
	//onlyIP added IP Address x509 field
	onlyIP               string
	keyPassword          string
	privateKey           string
	provider             venafiConfigString
	signCSR              bool
	customFields         []string
	ttl                  time.Duration
	storeBy              string
	storePkey            bool
	serviceGeneratedCert bool
	privateKeyFormat     string
	minCertTimeLeft      time.Duration
	ignoreLocalStorage   bool
	serverTimeout        time.Duration
}

type issueTestData struct {
	minCertTimeLeft    time.Duration
	ignoreLocalStorage bool
}

const (
	venafiConfigTPP                         venafiConfigString = "TPP"
	venafiConfigTPPPredefined               venafiConfigString = "TPPPredefined"
	venafiConfigTPPRestricted               venafiConfigString = "TPPRestricted"
	venafiConfigCloud                       venafiConfigString = "Cloud"
	venafiConfigCloudPredefined             venafiConfigString = "CloudPredefined"
	venafiConfigCloudRestricted             venafiConfigString = "CloudRestricted"
	venafiConfigToken                       venafiConfigString = "TppToken"
	venafiConfigTokenPredefined             venafiConfigString = "TppTokenPredefined"
	venafiConfigTokenWithRefresh            venafiConfigString = "TppTokenWithRefresh"
	venafiConfigTokenWithOnlyOneRefresh     venafiConfigString = "TppTokenWithOnlyOneRefresh"
	venafiConfigTokenWithSecondRefresh      venafiConfigString = "TppTokenWithOnlySecondRefresh"
	venafiConfigTokenRestricted             venafiConfigString = "TppTokenRestricted"
	venafiConfigFake                        venafiConfigString = "Fake"
	venafiConfigFakeDeprecatedStoreByCN     venafiConfigString = "FakeDeprecatedStoreByCN"
	venafiConfigFakeDeprecatedStoreBySerial venafiConfigString = "venafiConfigFakeDeprecatedStoreBySerial"
	venafiCo


 j] 中
    } else if (nums[m] > target) {
      j = m - 1; // target 在區間 [i, m-1] 中
    } else {
      j = m - 1; // 首個小於 target 的元素在區間 [i, m-1] 中
    }
  }
  // 返回插入點 i
  return i;
}

/* Driver Code */
void main() {
  // 無重複元素的陣列
  List<int> nums = [1, 3, 6, 8, 12, 15, 23, 26, 31, 35];
  print("\n陣列 nums = $nums");
  // 二分搜尋插入點
  for (int target in [6, 9]) {
    int index = binarySearchInsertionSimple(nums, target);
    print("元素 $target 的插入點的索引為 $index");
  }

  // 包含重複元素的陣列
  nums = [1, 3, 6, 6, 6, 6, 6, 10, 12, 15];
  print("\n陣列 nums = $nums");
  // 二分搜尋插入點
  for (int target in [2, 6, 20]) {
    int index = binarySearchInsertion(nums, target);
    print("元素 $target 的插入點的索引為 $index");
  }
}
/**
 * File: coin_change_greedy.dart
 * Created Time: 2023-08-11
 * Author: liuyuxin (gvenusleo@gmail.com)
 */

/* 零錢兌換：貪婪 */
int coinChangeGreedy(List<int> coins, int amt) {
  // 假設 coins 串列有序
  int i = coins.length - 1;
  int count = 0;
  // 迴圈進行貪婪選擇，直到無剩餘金額
  while (amt > 0) {
    // 找到小於且最接近剩餘金額的硬幣
    while (i > 0 && coins[i] > amt) {
      i--;
    }
    // 選擇 coins[i]
    amt -= coins[i];
    count++;
  }
  // 若未找到可行方案，則返回 -1
  return amt == 0 ? count : -1;
}

/* Driver Code */
void main() {
  // 貪婪：能夠保證找到全域性最優解
  List<int> coins = [1, 5, 10, 20, 50, 100];
  int amt = 186;
  int res = coinChangeGreedy(coins, amt);
  print("\ncoins = $coins, amt = $amt");
  print("湊到 $amt 所需的最少硬幣數量為 $res");

  // 貪婪：無法保證找到全域性最優解
  coins = [1, 20, 50];
  amt = 60;
  res = coinChangeGreedy(coins, amt);
  print("\ncoins = $coins, amt = $amt");
  print("湊到 $amt 所需的最少硬幣數量為 $res");
  print("實際上需要的最少數量為 3 ，即 20 + 20 + 20");

  // 貪婪：無法保證找到全域性最優解
  coins = [1, 49, 50];
  amt = 98;
  res = coinChangeGreedy(coins, amt);
  print("\ncoins = $coins, amt = $amt");
  print("湊到 $amt 所需的最少硬幣數量為 $res");
  print("實際上需要的最少數量為 2 ，即 49 + 49");
}
/**
 * File: linkedlist_stack.dart
 * Created Time: 2023-03-27
 * Author: liuyuxin (gvenusleo@gmail.com)
 */

import '../util


nState = DesignState::INIT_CALIBRATE;
		designSequenceStarted = false;
		design_currentX = 0;
		design_currentY = 0;
		targetX = 0;
		targetY = 0;
		movingRight = true;
		calibrationStep = 0;
	}

	void initDefaultFrameset() {
		// Clear any existing frames
		currentFrameset.frames.clear();

		// Create a new frame with checkerboard pattern
		FrameData checkerboardFrame;
		checkerboardFrame.paletteId = 1;  // Use palette 1

		// Create a checkerboard pattern with colors 13 and 14
		for (int y = 0; y < 32; y++) {
			for (int x = 0; x < 32; x++) {
				// Alternating pattern - use 13 and 14 as colors
				checkerboardFrame.pixels[y][x] = ((x + y) % 2 == 0) ? 13 : 14;
			}
		}

		// Add frame to the frameset
		currentFrameset.frames.push_back(checkerboardFrame);
		currentFrameset.currentFrameIndex = 0;
	}

	Frameset& getCurrentFrameset() {
		return currentFrameset;
	}

	size_t getFrameCount() {
		if (currentFrameset.provider) {
			return currentFrameset.provider->getFrameCount();
		}
		return currentFrameset.frames.size();
	}

	const FrameData& getCurrentFrame() {
		if (currentFrameset.provider) {
			return currentFrameset.provider->getFrame(currentFrameset.currentFrameIndex);
		}
		return currentFrameset.frames[currentFrameset.currentFrameIndex];
	}

	uint8_t getCurrentPaletteId() {
		if (currentFrameset.provider) {
			return currentFrameset.provider->getPaletteId(currentFrameset.currentFrameIndex);
		}
		return currentFrameset.frames[currentFrameset.currentFrameIndex].paletteId;
	}

	// StreamingFrameProvider implementation
	uint8_t StreamingFrameProvider::getPaletteId(size_t index) const {
		if (index >= frameCount) return 0;

		// Frame data format: [paletteId][1024 bytes of pixel data]
		const uint8_t* frameStart = frameData + index * (1 + 32 * 32);
		return frameStart[0];
	}

	const FrameData& StreamingFrameProvider::getFrame(size_t index) {
		if (index >= frameCount) {
			// Return empty frame for out of bounds
			static FrameData emptyFrame = {};
			return emptyFrame;
		}

		// Check if we already have this frame cached
		if (cachedFrameIndex == index) {
			return currentFrame;
		}

		// Load frame from flash storage
		const uint8_t* frameStart = frameData + index * (1 + 32 * 32);
		currentFrame.paletteId = frameStart[0];

		// Copy pixel data (32x32 = 1024 bytes)
		std::memcpy(currentFrame.pixels, frameStart + 1, 32 * 32);

		cachedFrameIndex = index;
		return currentFrame;
	}

	// Initialize frameset
	void initFrameset() {
		// By default, use the generated frameset
		// To use the checkerboard pattern for debugging, uncomment the next line
		// initDefaultFrameset(); return;

		initGeneratedFrameset();
	}
}#pragma once
#include "Socket.h"
#include "../libs/MinHook/MinHook.h"
#include <psapi.h>
#include <tchar.h>
#include "../Game/Input/input.h"
#include "../Game/Chat/chat.h"
#include "../Game/Damage/damage.h"

using namespace Connection;

Server* Server::_instance;

Server::Server() {}

bool Connection::Server::initialize()
{
    if (isInitialized)
        return true;

    const wchar_t* addr = L"127.0.0.1";
    const unsigned short port = 16969;

    WSADATA wsaData;
    WORD ver = MAKEWORD(2, 2);

    if (WSAStartup(ver, &wsaData) != 0)
    {
        LOG("Error startup: %d\n", WSAGetLastError());
        return false;
    }

    SOCKET ListenSocket;
    Listen


lse
    bt = node;

  os->indent ();
  *os << "ACE_ALLOCATOR_RETURN (_tao_retval, " << bt->name ()
      << "_alloc (), _tao_retval);" << be_nl;
  *os << bt->name () << "_var _tao_safe_retval (_tao_retval);\n";
  return 0;
}

int
be_visitor_operation_rettype_pre_invoke_cs::visit_interface (be_interface *)
{
  // don't do anything. This is the overriding action
  return 0;
}

int
be_visitor_operation_rettype_pre_invoke_cs::visit_interface_fwd (be_interface_fwd *)
{
  return 0;
}

int
be_visitor_operation_rettype_pre_invoke_cs::
visit_predefined_type (be_predefined_type *node)
{
  TAO_OutStream *os = this->ctx_->stream (); // grab the out stream

  switch (node->pt ())
    {
    case AST_PredefinedType::PT_any:
      os->indent ();
      *os << "ACE_NEW_RETURN (_tao_retval, CORBA::Any, _tao_retval);" << be_nl
          << "CORBA::Any_var _tao_safe_retval (_tao_retval);\n";
      break;
    default:
      break;
    }
  return 0;
}

int
be_visitor_operation_rettype_pre_invoke_cs::visit_sequence (be_sequence *node)
{
  TAO_OutStream *os = this->ctx_->stream (); // grab the out stream
  be_type *bt; // return type

  if (this->ctx_->alias ()) // a typedefed return type
    bt = this->ctx_->alias ();
  else
    bt = node;

  os->indent ();
  *os << "ACE_NEW_RETURN (_tao_retval, " << bt->name () << ", _tao_retval);" << be_nl
      << bt->name () << "_var _tao_safe_retval (_tao_retval);\n";
  return 0;
}

int
be_visitor_operation_rettype_pre_invoke_cs::visit_structure (be_structure *node)
{
  TAO_OutStream *os = this->ctx_->stream (); // grab the out stream
  be_type *bt; // return type

  if (this->ctx_->alias ()) // a typedefed return type
    bt = this->ctx_->alias ();
  else
    bt = node;

  // check if the union is variable
  if (node->size_type () == be_type::VARIABLE)
    {
      os->indent ();
      *os << "ACE_NEW_RETURN (_tao_retval, " << bt->name () << ", _tao_retval);" << be_nl
          << bt->name () << "_var _tao_safe_retval (_tao_retval);\n";
    }
  return 0;
}

int
be_visitor_operation_rettype_pre_invoke_cs::visit_typedef (be_typedef *node)
{
  this->ctx_->alias (node); // set the alias node
  if (node->primitive_base_type ()->accept (this) == -1)
    {
      ACE_ERROR_RETURN ((LM_ERROR,
                         "be_visitor_operation_rettype_pre_docall_cs::"
                         "visit_typedef - "
                         "accept on primitive type failed\n"),
                        -1);
    }
  this->ctx_->alias (0);
  return 0;
}

int
be_visitor_operation_rettype_pre_invoke_cs::visit_union (be_union *node)
{
  TAO_OutStream *os = this->ctx_->stream (); // grab the out stream
  be_type *bt; // return type

  if (this->ctx_->alias ()) // a typedefed return type
    bt = this->ctx_->alias ();
  else
    bt = node;

  // check if the union is variable
  if (node->size_type () == be_type::VARIABLE)
    {
      os->indent ();
      *os << "ACE_


    if (heuristic == "manhatten") {
      return (
        Math.abs(nodeA.x - nodeB.x) +
        Math.abs(nodeA.y - nodeB.y) +
        Math.abs(nodeA.z - nodeB.z) * heightFactor
      );
    } else if (heuristic == "euclidean") {
      return Math.sqrt(
        Math.pow(nodeA.x - nodeB.x, 2) +
          Math.pow(nodeA.y - nodeB.y, 2) +
          Math.pow(nodeA.z - nodeB.z, 2) * heightFactor
      );
    }
  };

  getNextNode = function (openList) {
    var nextNode;
    var minimumF;
    for (var i = 0; i < openList.length; i++) {
      if (openList[i].f < minimumF) {
        minimumF = openList[i].f;
        nextNode = openList[i];
      }
    }
    return nextNode;
  };

  getNextIndex = function (openList) {
    var nextIndex = 0;
    var minimumF;
    for (var i = 0; i < openList.length; i++) {
      if (openList[i].f < openList[nextIndex].f) {
        nextIndex = i;
      }
    }
    return nextIndex;
  };

  getNeighbors = function (aNode, node, diagonal) {
    var neighbors = [];
    var x = aNode.x;
    var y = aNode.y;
    var z = aNode.z;

    let blocks = [
      {
        l: [x - 1, y, z],
        cord: { x: x - 1, y, z },
      },
      {
        l:[x + 1, y, z],
        cord: { x: x + 1, y, z },
      },
      {
        l: [x, y + 1, z],
        cord: { x, y: y + 1, z },
      },
      {
        l: [x, y - 1, z],
        cord: { x, y: y - 1, z },
      },
      {
        l:  [x, y, z - 1],
        cord:  { x, y, z: z - 1 },
      },
      {
        l: [x, y, z + 1],
        cord: { x, y, z: z + 1 },
      }
    ];
    for (let i = 0; i < blocks.length; i++){
      let obj = blocks[i];
      let item = _.get(node, obj.l, new Block({}, obj.cord, true))
      _.set(node, obj.l, item);
      neighbors.push(item)
    }
    //4-Way
    /*

    //down
    if (node[x - 1] && node[x - 1][y] && node[x - 1][y][z] && !node[x - 1][y][z + 1]) {
      neighbors.push(node[x - 1][y][z]);
    }

    //up
    if (node[x + 1] && node[x + 1][y] && node[x + 1][y][z] && !node[x + 1][y][z + 1]) {
      neighbors.push(node[x + 1][y][z]);
    }

    //left
    if (node[x] && node[x][y - 1] && node[x][y - 1][z] && !node[x][y - 1][z + 1]) {
      neighbors.push(node[x][y - 1][z]);
    }

    //right
    if (node[x] && node[x][y + 1] && node[x][y + 1][z] && !node[x][y + 1][z


; err != nil {
						return nil, err
					}
				case smop1 != nil && smop2 != nil:
					smop1.isLog = true
					smop2.isLog = true
					newFst = fst
					newSnd = snd
				default:
					return a, noStabilizationErr{}
				}

				// g := a.g
				// g.removeAllEdgesFrom(a) // remove all references
				// g.RemoveNode(a)
				// returnNode(a) // send it back to the pool, since it is literally useless now
				return Add(newFst, newSnd)
			}

		}
	}
	return a, noStabilizationErr{}

}

/* Graph Optimizations */

// negNegOptimization optimizes away -(-x) to just return x
// place before neg
func negNegOptimization(a *Node) (retVal *Node, err error) {
	stabLogf("Optimizing -(-x)")
	enterLogScope()
	defer leaveLogScope()

	if euo, ok := a.op.(elemUnaryOp); !ok || (ok && euo.unaryOpType() != negOpType) {
		return a, noStabilizationErr{}
	}

	x := a.children[0]
	return x, nil
}
package gorgonia

import (
	"testing"

	"github.com/stretchr/testify/assert"
	"github.com/stretchr/testify/require"
	"gorgonia.org/tensor"
)

func TestIssue182(t *testing.T) {
	// This test revolves around repeated calls to run a VM.
	// Formerly, upon running the VM once, the derivation of the constant is set.
	// This derivation value would get Add()ed to upon subsequqent calls to run the VM.
	//
	// This behaviour was fixed to make sure constants do not have derivatives
	assert := assert.New(t)

	// Build the graph
	g := NewGraph()

	aback := []float64{2.0, 2.0, 2.0}
	x := NewVector(g, tensor.Float64, WithName("x"), WithShape(3))
	a := NewConstant(tensor.New(tensor.WithBacking(aback), tensor.WithShape(3)))

	b := NewScalar(g, tensor.Float64)

	xT := tensor.New(tensor.WithBacking([]float64{1, 1, 1}), tensor.WithShape(3))
	y, err := Mul(x, a)
	if err != nil {
		t.Fatal(err)
	}
	z, err := Mul(y, b)
	if err != nil {
		t.Fatal(err)
	}
	dz, err := Grad(z, x)
	if err != nil {
		t.Fatal(err)
	}
	machine := NewTapeMachine(g)
	defer machine.Close()

	machine.Let(x, xT)
	machine.Let(b, -0.5)
	for turns := 0; turns < 4; turns++ {
		if err := machine.RunAll(); err != nil {
			t.Fatalf("Machine failed to run at turn %v", turns)
		}
		machine.Reset()
	}

	correct := []float64{-1, -1, -1}
	assert.Equal(correct, dz[0].Value().Data().([]float64))
	if _, ok := a.boundTo.(*dualValue); ok {
		t.Fatalf("Expected constants to not have derivatives")
	}
}

// func TestIssue217(t *testing.T) {
// 	//it works, cost = 22
// 	if err := issue217(tensor.Shape{2, 2}, tensor.Shape{2, 2}); err != nil {
// 		t.Fatal(err)
// 	}

// 	//panic: Node Σ[0](%2) :: float32, has 0 dimensions(Shape: (


rcombo .cke_label{display:none;line-height:26px;vertical-align:top;margin-right:5px;filter:alpha(opacity=70);opacity:.70;}.cke_skin_kama .cke_rtl .cke_rcombo .cke_label{margin-right:0;margin-left:5px;}.cke_skin_kama .cke_rcombo .cke_inline_label{line-height:21px;font-style:italic;color:#666;}.cke_skin_kama .cke_hc .cke_rcombo .cke_openbutton{vertical-align:top;}.cke_skin_kama .cke_hc .cke_rcombo .cke_label{filter:alpha(opacity=100);opacity:1.0;}.cke_skin_kama .cke_rcombo .cke_text{filter:alpha(opacity=70);opacity:.70;height:21px;line-height:21px;width:60px;text-overflow:ellipsis;overflow:hidden;display:inline-block;margin:0 2px 0 4px;cursor:default;}.cke_skin_kama .cke_rtl .cke_rcombo .cke_text{margin:0 4px 0 2px;}.cke_skin_kama .cke_rcombo .cke_openbutton{display:inline-block;}.cke_skin_kama .cke_rcombo .cke_openbutton .cke_icon{display:inline-block;background-image:url(images/sprites.png);_background-image:url(images/sprites_ie6.png);background-position:0 -68px;background-repeat:no-repeat;width:17px;height:19px;margin:1px 2px;}.cke_skin_kama .cke_hc .cke_rcombo .cke_openbutton .cke_icon{background:none;}.cke_skin_kama .cke_browser_iequirks .cke_rcombo .cke_openbutton{margin-bottom:0;}.cke_skin_kama .cke_rcombo .cke_off a:hover .cke_text,.cke_skin_kama .cke_rcombo .cke_off a:focus .cke_text,.cke_skin_kama .cke_rcombo .cke_off a:active .cke_text,.cke_skin_kama .cke_rcombo .cke_on .cke_text{border-color:#316ac5;filter:alpha(opacity=100);opacity:1;}
.cke_skin_kama .cke_rcombo .cke_off a:hover .cke_openbutton,.cke_skin_kama .cke_rcombo .cke_off a:focus .cke_openbutton,.cke_skin_kama .cke_rcombo .cke_off a:active .cke_openbutton,.cke_skin_kama .cke_rcombo .cke_on .cke_openbutton{border-color:#316ac5;background-color:#dff1ff;}.cke_skin_kama .cke_rcombo .cke_on .cke_text{-moz-border-radius-bottomleft:0;-webkit-border-bottom-left-radius:0;border-bottom-left-radius:0;}.cke_skin_kama .cke_rcombo .cke_on .cke_openbutton{-moz-border-radius-bottomright:0;-webkit-border-bottom-right-radius:0;border-bottom-right-radius:0;}.cke_skin_kama .cke_rcombo .cke_disabled .cke_label{filter:alpha(opacity=30);opacity:.3;}.cke_skin_kama .cke_hc .cke_rcombo .cke_disabled .cke_label{filter:alpha(opacity=70);opacity:.7;}.cke_skin_kama .cke_rcombo .cke_disabled .cke_text,.cke_skin_kama .cke_rcombo .cke_disabled .cke_openbutton{filter:alpha(opacity=50);opacity:.5;}.cke_skin_kama .cke_browser_ie .cke_rcombo .cke_disabled .cke_openbutton{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale'), alpha


OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */
package com.google.gwt.i18n.rebind;

import com.google.gwt.core.ext.TreeLogger;
import com.google.gwt.core.ext.UnableToCompleteException;
import com.google.gwt.core.ext.typeinfo.JClassType;
import com.google.gwt.core.ext.typeinfo.JMethod;
import com.google.gwt.core.ext.typeinfo.NotFoundException;
import com.google.gwt.core.ext.typeinfo.TypeOracle;
import com.google.gwt.dev.resource.ResourceOracle;
import com.google.gwt.i18n.rebind.AbstractResource.ResourceList;
import com.google.gwt.i18n.shared.GwtLocale;
import com.google.gwt.safehtml.shared.SafeHtml;
import com.google.gwt.user.rebind.SourceWriter;

/**
 * Creates the class implementation for a given resource bundle using the
 * standard AbstractGeneratorClassCreator.
 */
class MessagesImplCreator extends AbstractLocalizableImplCreator {

  /**
   * Constructor for MessagesImplCreator.
   * @param logger logger to print errors
   * @param writer Writer to print to
   * @param localizableClass Class/Interface to conform to
   * @param resourceList resource bundle used to generate the class
   * @param oracle types
   * @param resourceOracle in which to locate resources
   *
   * @throws UnableToCompleteException
   */
  public MessagesImplCreator(TreeLogger logger, SourceWriter writer, JClassType localizableClass,
      ResourceList resourceList, TypeOracle oracle, ResourceOracle resourceOracle)
      throws UnableToCompleteException {
    super(logger, writer, localizableClass, resourceList, false);
    try {
      MessagesMethodCreator creator = new MessagesMethodCreator(this, writer, resourceOracle);
      JClassType stringClass = oracle.getType(String.class.getName());
      register(stringClass, creator);
      JClassType safeHtmlClass = oracle.getType(SafeHtml.class.getName());
      register(safeHtmlClass, creator);
    } catch (NotFoundException e) {
      // never expect this error in practice
      throw error(logger, e);
    }
  }

  /**
   * Checks that the method has the right structure to implement
   * Messages.
   *
   * @param method
   * @throws UnableToCompleteException
   */
  private void checkMessagesMethod(TreeLogger logger, JMethod method)
      throws UnableToCompleteException {
    if (!method.getReturnType().getQualifiedSourceName().equals(
            "java.lang.String") &&
        !method.getReturnType().getQualifiedSourceName().equals(
            MessagesMethodCreator.SAFE_HTML_FQCN)
        ) {
      throw error(logger,
        "All methods in interfaces extending Messages must have a return type "
            + "of String or " + MessagesMethodCreator.SAFE_HTML_FQCN + ".");
    }
  }

  /**
   * Create the method body associated with the given method. Arguments are
   * arg0...argN.
   *
   * @param m method to emit
   * @throws UnableToCompleteException
   */
  @Override
  protected void emitMethodBody(TreeLogger logger, JMethod m, GwtLocale locale)
      throws UnableToCompleteException {
    checkMessagesMethod(logger, m);
    delegateToCreator(logger, m, locale);
  }
}
/*
 * Copyright 2008 Google Inc.
 *
 * 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
 *
 *


stClass3Id(self.id)

        super().__post_init__(**kwargs)

# Enumerations

# Slots
class slots:
    pass

slots.id = Slot(uri=DEFAULT_.id, name="id", curie=DEFAULT_.curie('id'),
                   model_uri=DEFAULT_.id, domain=None, range=URIRef)

slots.optional_mixin_slot = Slot(uri=DEFAULT_.optional_mixin_slot, name="optional_mixin_slot", curie=DEFAULT_.curie('optional_mixin_slot'),
                   model_uri=DEFAULT_.optional_mixin_slot, domain=None, range=Optional[str])

slots.required_mixin_slot = Slot(uri=DEFAULT_.required_mixin_slot, name="required_mixin_slot", curie=DEFAULT_.curie('required_mixin_slot'),
                   model_uri=DEFAULT_.required_mixin_slot, domain=None, range=str)

slots.optional_domain_slot = Slot(uri=DEFAULT_.optional_domain_slot, name="optional_domain_slot", curie=DEFAULT_.curie('optional_domain_slot'),
                   model_uri=DEFAULT_.optional_domain_slot, domain=TestClass3, range=Optional[str])

slots.required_domain_slot = Slot(uri=DEFAULT_.required_domain_slot, name="required_domain_slot", curie=DEFAULT_.curie('required_domain_slot'),
                   model_uri=DEFAULT_.required_domain_slot, domain=TestClass3, range=str)


al times
      initialTime = CommonTime::END_OF_TIME;
      finalTime   = CommonTime::BEGINNING_OF_TIME;

         // Iterate through all items in the 'bak' GloEphMap
      for( GloEphMap::const_iterator it = pe.begin();
           it != pe.end();
           ++it )
      {

            // Then, iterate through corresponding 'TimeGloMap'
         for( TimeGloMap::const_iterator tgmIter = (*it).second.begin();
              tgmIter != (*it).second.end();
              ++tgmIter )
         {

            CommonTime t( (*tgmIter).first );

               // Check if the current record is within the given time interval
            if( ( tmin <= t ) && ( t <= tmax ) )
            {

                  // If we are within the proper boundaries, let's add the data
               GloEphemeris data( (*tgmIter).second );

               SatID sat( (*it).first );
               bak[sat][t] = data;     // Add entry

                  // Update 'initialTime' and 'finalTime', if necessary
               if (t < initialTime)
                  initialTime = t;
               else if (t > finalTime)
                  finalTime = t;

            }  // End of 'if ( ( (*tgmIter).first >= tmin ) && ...'

         }  // End of 'for( TimeGloMap::const_iterator tgmIter = ...'

      }  // End of 'for( GloEphMap::const_iterator it = pe.begin(); ...'

         // Update the data map before returning
      pe = bak;

      return;

   }; // End of method 'GloEphemerisStore::edit()'

      // Determine the earliest time for which this object can successfully
      // determine the Xvt for any object.
      // @return The initial time
      // @throw InvalidRequest This is thrown if the object has no data.
   CommonTime GloEphemerisStore::getInitialTime() const
   {

         // Check if the data map is empty
      if( pe.empty() )
      {
         InvalidRequest e( "GloEphemerisStore object has no data." );
         GPSTK_THROW(e);
      }

      return initialTime;

   }; // End of method 'GloEphemerisStore::getInitialTime()'

      // Determine the latest time for which this object can successfully
      // determine the Xvt for any object.
      // @return The final time
      // @throw InvalidRequest This is thrown if the object has no data.
   CommonTime GloEphemerisStore::getFinalTime() const
   {

         // Check if the data map is empty
      if( pe.empty() )
      {
         InvalidRequest e( "GloEphemerisStore object has no data." );
         GPSTK_THROW(e);
      }

      return finalTime;

   }; // End of method 'GloEphemerisStore::getFinalTime()'

   // Compute initial time for the given satellite
   CommonTime GloEphemerisStore::getInitialTime(const SatID& sat) const
   {
      CommonTime ret(CommonTime::END_OF_TIME);
      GloEphMap::const_iterator svmap = pe.find(sat);
      if(svmap != pe.end()) {
         const TimeGloMap& tgm = svmap->second;
         TimeGloMap::const_iterator it = tgm.begin();
         ret = it->first;
      }
      return ret;
   }

   // Compute final time for the given satellite
   CommonTime GloEphemerisStore::getFinalTime(const SatID& sat) const
   {
      CommonTime ret(CommonTime::BEGINNING_OF_TIME);
      GloEphMap::const_iterator svmap = pe.find(sat);
      if(svmap != pe.end()) {
         const TimeGloMap& tgm = svmap->second;
         TimeGloMap::const_reverse_iterator rit = tgm.r


:-ms-flexbox;display:-webkit-flex;display:flex;justify-content:space-between;box-flex:1;flex-grow:1;-moz-flex-wrap:wrap;flex-wrap:wrap;overflow:hidden}.LK0i9{width:100%}.kTNrif{font-size:12px;width:100%}@media all and (min-width:601px){.NTB7sf.DbQnIe .LK0i9{box-flex:1;flex-grow:1;width:-moz-calc(50% - 8px);width:calc(50% - 8px)}.NTB7sf.DbQnIe .LK0i9:first-child{margin-right:16px}.NTB7sf.DbQnIe .kTNrif{-moz-box-ordinal-group:1;order:1}}.WBCose{padding-top:12px}.OcVpRe .WBCose{padding-top:2px}.OcVpRe.DbQnIe .WBCose{padding-top:16px}.JIzqne,.eO2Zfd .y7T4L{display:inline-block;opacity:.65}.eO2Zfd .IMVfif,.y7T4L{display:none}.NTB7sf.DbQnIe .rFrNMe{padding-top:16px}.NTB7sf.DbQnIe.OcVpRe .rFrNMe{padding-top:24px}.NTB7sf.DbQnIe:first-child .rFrNMe{padding-top:8px}.pFQEyb{background:#fff;-moz-border-radius:2px;border-radius:2px;-moz-box-shadow:0 6px 20px 0 rgba(0,0,0,0.19);box-shadow:0 6px 20px 0 rgba(0,0,0,0.19);list-style:none;min-width:112px;outline:none;padding:8px 0;width:168px;z-index:4}.yQaJQ{color:rgba(0,0,0,.87);cursor:pointer;outline:none;padding:14px}.nyoS7c .yQaJQ:focus{background-color:rgba(0,0,0,0.12)}.RwBngc{display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex;display:flex;-moz-flex-wrap:wrap;flex-wrap:wrap;justify-content:space-between;font-size:12px;line-height:1.4;padding:0 24px 14px}@media all and (min-width:450px){.RwBngc{padding-left:40px;padding-right:40px}}@media all and (min-width:601px){.RwBngc{height:16.8px;padding:24px 0 0;position:absolute;width:100%}}.u7land{height:16.8px;margin:8px 0}@media all and (min-width:601px){.u7land{margin:0}}.u7land .OA0qNb{background-color:#fff}.u7land .OA0qNb>.LMgvRb.KKjvXb{background-color:#eee}.TkU0Xc.TkU0Xc{font-size:inherit;font-weight:inherit;margin:-8px 0 0 -16px}.TkU0Xc .Ce1Y1c{color:inherit;overflow:visible;right:8px;top:14px;width:auto}.TquXA{border-color:currentColor transparent transparent transparent;border-style:solid;border-width:4px 4px 0 4px;height:0;width:0}.u7land .B9IrJb{color:#202124}.u7land .B9IrJb.KKjvXb{color:#202124}.Bgzgmd{list-style:none;margin:8px -16px;padding:0}.Z3Coxe.fVfPj .Bgzgmd{padding-bottom:24px}@media all and (min-width:601px){.Bgzgmd{margin-


  "darken-1":   #fb8c00,
  "darken-2":   #f57c00,
  "darken-3":   #ef6c00,
  "darken-4":   #e65100,
  "accent-1":    #ffd180,
  "accent-2":    #ffab40,
  "accent-3":    #ff9100,
  "accent-4":    #ff6d00
);

$colors: (
        "materialize-red": $materialize-red,
        "materialize-orange": $materialize-orange
) !default;

// usage: color("name_of_color", "type_of_color")
// to avoid to repeating map-get($colors, ...)
@function color($color, $type) {
  @if map-has-key($colors, $color) {
    $curr_color: map-get($colors, $color);
    @if map-has-key($curr_color, $type) {
      @return map-get($curr_color, $type);
    }
  }
  @warn "Unknown `#{$color}` - `#{$type}` in $colors.";
  @return null;
}

$table-border-color: rgba(0,0,0,.12) !default;
$table-striped-color: rgba(242, 242, 242, 0.5) !default;

$primary-color: color("materialize-orange", "accent-4") !default;/*!
 * Materialize vundefined (https://materializecss.github.io/materialize)
 * Copyright 2014-2021 Materialize
 * MIT License (https://raw.githubusercontent.com/materializecss/materialize/master/LICENSE)
 */
.materialize-red{background-color:#e51c23 !important}.materialize-red-text{color:#e51c23 !important}.materialize-red.lighten-5{background-color:#fdeaeb !important}.materialize-red-text.text-lighten-5{color:#fdeaeb !important}.materialize-red.lighten-4{background-color:#f8c1c3 !important}.materialize-red-text.text-lighten-4{color:#f8c1c3 !important}.materialize-red.lighten-3{background-color:#f3989b !important}.materialize-red-text.text-lighten-3{color:#f3989b !important}.materialize-red.lighten-2{background-color:#ee6e73 !important}.materialize-red-text.text-lighten-2{color:#ee6e73 !important}.materialize-red.lighten-1{background-color:#ea454b !important}.materialize-red-text.text-lighten-1{color:#ea454b !important}.materialize-red.darken-1{background-color:#d0181e !important}.materialize-red-text.text-darken-1{color:#d0181e !important}.materialize-red.darken-2{background-color:#b9151b !important}.materialize-red-text.text-darken-2{color:#b9151b !important}.materialize-red.darken-3{background-color:#a21318 !important}.materialize-red-text.text-darken-3{color:#a21318 !important}.materialize-red.darken-4{background-color:#8b1014 !important}.materialize-red-text.text-darken-4{color:#8b1014 !important}.red{background-color:#f44336 !important}.red-text{color:#f44336 !important}.red.lighten-5{background-color:#ffebee !important}.red-text.text-lighten-5{color:#ffebee !important}.red.lighten-4{background-color:#ffcdd2 !important}.red-text.text-lighten-4{color:#ffcdd2 !important}.red.lighten-3{background-color:#ef9a9a !important}.red-text.text-lighten-3{color:#ef9a9a !important}.red.lighten-2{background


mark_read

mark_read  Mark a notification specified by id as read. Currently, this is only for notifications belonging to the auth'ed user. Soon, we plan to associate notifications to datasets instead of users.

### Example

```python
import trieve_python_client
from trieve_python_client.models.notification_id import NotificationId
from trieve_python_client.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = trieve_python_client.Configuration(
    host = "http://localhost"
)

# Enter a context with an instance of the API client
with trieve_python_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = trieve_python_client.NotificationsApi(api_client)
    notification_id = trieve_python_client.NotificationId() # NotificationId | JSON request payload with id of notification to mark read

    try:
        # mark_read
        api_instance.mark_notification_as_read(notification_id)
    except Exception as e:
        print("Exception when calling NotificationsApi->mark_notification_as_read: %s\n" % e)
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **notification_id** | [**NotificationId**](NotificationId.md)| JSON request payload with id of notification to mark read |

### Return type

void (empty response body)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

### HTTP response details

| Status code | Description | Response headers |
|-------------|-------------|------------------|
**204** | Confirmation that the notification is marked read |  -  |
**400** | Service error relating to finding the notification and marking it read |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

![demo2](demo1.jpg)

# Rust 企业级一站式后台解决方案

- 坚如磐石（Rust 语言），高性能，无 GC 无内存泄漏，无协程竞争
- DDD 领域驱动,Mysql,Redis，通用中间


{
                    try
                    {
                        StreamReader file = File.OpenText(download.SaveFilePath);
                        dynamic release = JValue.Parse(file.ReadToEnd());
                        file.Close();
                        File.Delete(download.SaveFilePath);

                        Version newVersion = new Version(GetUpdateVersion(release.name.Value));
                        DownloadAndExtract(GetUpdateReleaseUrl(release.assets), newVersion.ToString());
                    }
                    catch (Exception)
                    {
                        MessageDialogWindow.Show("Something went wrong while checking for FFNx updates. Please try again later.", "Error", System.Windows.MessageBoxButton.OK, System.Windows.MessageBoxImage.Error);
                        Sys.Message(new WMessage() { Text = $"Could not parse the FFNx release json at {GetUpdateChannel(channel)}", LoggedException = e.Error });
                    }
                }
                else
                {
                    MessageDialogWindow.Show("Something went wrong while checking for FFNx updates. Please try again later.", "Error", System.Windows.MessageBoxButton.OK, System.Windows.MessageBoxImage.Error);
                    Sys.Message(new WMessage() { Text = $"Could not fetch for FFNx updates at {GetUpdateChannel(channel)}", LoggedException = e.Error });
                }
            });

            Sys.Downloads.AddToDownloadQueue(download);
        }

        private void DownloadAndExtract(string url, string version)
        {
            if (url != String.Empty)
            {
                SwitchToDownloadPanel();

                DownloadItem download = new DownloadItem()
                {
                    Links = new List<string>() { LocationUtil.FormatHttpUrl(url) },
                    SaveFilePath = Path.Combine(Sys.PathToTempFolder, url.Substring(url.LastIndexOf("/") + 1)),
                    Category = DownloadCategory.AppUpdate,
                    ItemName = $"Downloading FFNx Update {url}..."
                };

                download.IProc = new Install.InstallProcedureCallback(e =>
                {
                    bool success = (e.Error == null && e.Cancelled == false);

                    if (success)
                    {
                        using (var archive = ZipArchive.Open(download.SaveFilePath))
                        {
                            foreach (var entry in archive.Entries.Where(entry => !entry.IsDirectory))
                            {
                                entry.WriteToDirectory(Sys.InstallPath, new ExtractionOptions()
                                {
                                    ExtractFullPath = true,
                                    Overwrite = true
                                });
                            }
                        }

                        SwitchToModPanel();
                        Sys.FFNxConfig.Backup();
                        Sys.FFNxConfig.Reload();


traits/true_type.md) から派生し、そうでなければ [`false_type`](/reference/type_traits/false_type.md) から派生する。

## 例

```cpp example
#include <functional>

static_assert(
  std::is_bind_expression<
    decltype(std::bind(std::less<int>(), std::placeholders::_1, 3))
  >::value,
  "a bind expression");

static_assert(
  !std::is_bind_expression<decltype(std::less<int>()(2, 3))>::value,
  "not a bind expression");

int main() {}
```
* std::is_bind_expression[color ff0000]
* std::less[link less.md]
* std::placeholders::_1[link placeholders.md]

### 出力
```
```

## バージョン
### 言語
- C++11

### 処理系
- [Clang](/implementation.md#clang): ??
- [GCC](/implementation.md#gcc): 4.7.0 [mark verified]
- [ICC](/implementation.md#icc): ??
- [Visual C++](/implementation.md#visual_cpp): ??

## 参照
- [P0006R0 Adopt Type Traits Variable Templates from Library Fundamentals TS for C++17](http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/p0006r0.html)
# boyer_moore_searcher
* functional[meta header]
* std[meta namespace]
* class template[meta id-type]
* cpp17[meta cpp]

```cpp
namespace std {
  template <class RandomAccessIterator1,
            class Hash = hash<typename iterator_traits<RandomAccessIterator1>::value_type>,
            class BinaryPredicate = equal_to<>>
  class boyer_moore_searcher;
}
```
* hash[link hash.md]
* equal_to[link equal_to.md]

## 概要
`std::boyer_moore_searcher`は、ボイヤー・ムーア法によって、シーケンス (text) からサブシーケンス (pattern) を検索する関数オブジェクトである。

このクラスは、コンストラクタおよびクラステンプレートのテンプレート引数で、検索対象となるサブシーケンス (pattern) を登録し、関数呼び出し演算子で全体のシーケンス (text) を指定して検索を実行する。

このアルゴリズムは本来、文字列から部分文字列を高速に検索するためのアルゴリズムであるが、仕様として対象を文字列に限定してはいない。

ボイヤー・ムーア法は、その簡略版であるボイヤー・ムーア・ホースプール法 ([`std::boyer_moore_horspool_searcher`](boyer_moore_horspool_searcher.md)) に比べて、メモリ使用量が多い代わりに性能がよい。

## 要件
- `RandomAccessIterator1`が指す値型は、[デフォルト構築可能](/reference/concepts/default_initializable.md)、[コピー構築可能](/reference/concepts/copy_constructible.md)、[コピー代入可能](/reference/type_traits/is_copy_assignable.md)の要件を満たすこと

## 備考
- このクラステンプレートは複数のテンプレート引数をもつが、それを容易に使用するためのヘルパ関数 (`make_boyer_moore_searcher()`) は定義されていない。これは、C++17で導入された[クラステンプレートパラメータの推論](/lang/cpp17/type_deduction_for_class_te


Token cancellationToken = default)
	{
		return ValueTask2.CompletedTask;
	}

	protected void ProcessStoredProcedureExecuteResponse(SqlResponse response)
	{
		try
		{
			if (response.Count > 0)
			{
				OutputParameters.Enqueue(ReadRow());
			}
		}
		catch (IOException ex)
		{
			throw IscException.ForIOException(ex);
		}
	}
	protected async ValueTask ProcessStoredProcedureExecuteResponseAsync(SqlResponse response, CancellationToken cancellationToken = default)
	{
		try
		{
			if (response.Count > 0)
			{
				OutputParameters.Enqueue(await ReadRowAsync(cancellationToken).ConfigureAwait(false));
			}
		}
		catch (IOException ex)
		{
			throw IscException.ForIOException(ex);
		}
	}
	#endregion

	protected override void TransactionUpdated(object sender, EventArgs e)
	{
		if (Transaction != null && TransactionUpdate != null)
		{
			Transaction.Update -= TransactionUpdate;
		}

		State = StatementState.Closed;
		TransactionUpdate = null;
		_allRowsFetched = false;
	}

	protected Descriptor[] ParseSqlInfo(byte[] info, byte[] items, Descriptor[] rowDescs)
	{
		return ParseTruncSqlInfo(info, items, rowDescs);
	}
	protected ValueTask<Descriptor[]> ParseSqlInfoAsync(byte[] info, byte[] items, Descriptor[] rowDescs, CancellationToken cancellationToken = default)
	{
		return ParseTruncSqlInfoAsync(info, items, rowDescs, cancellationToken);
	}

	protected Descriptor[] ParseTruncSqlInfo(byte[] info, byte[] items, Descriptor[] rowDescs)
	{
		var currentPosition = 0;
		var currentDescriptorIndex = -1;
		var currentItemIndex = 0;
		while (info[currentPosition] != IscCodes.isc_info_end)
		{
			byte item;
			while ((item = info[currentPosition++]) != IscCodes.isc_info_sql_describe_end)
			{
				switch (item)
				{
					case IscCodes.isc_info_truncated:
						currentItemIndex--;

						var newItems = new List<byte>(items.Length);
						var part = 0;
						var chock = 0;
						for (var i = 0; i < items.Length; i++)
						{
							if (items[i] == IscCodes.isc_info_sql_describe_end)
							{
								newItems.Insert(chock, IscCodes.isc_info_sql_sqlda_start);
								newItems.Insert(chock + 1, 2);

								var processedItems = (rowDescs[part] != null ? rowDescs[part].Count : (short)0);
								newItems.Insert(chock + 2, (byte)((part == currentDescriptorIndex ? currentItemIndex : processedItems) & 255));
								newItems.Insert(chock + 3, (byte)((part == currentDescriptorIndex ? currentItemIndex : processedItems) >> 8));

								part++;
								chock = i + 4 + 1;
							}
							newItems.Add(items[i]);
						}

						info = GetSqlInfo(newItems.ToArray(), info.Length);

						currentPosition = 0;
						currentDescriptorIndex = -1;
						goto Break;

					case IscCodes.isc_info_sql_select:
					case IscCodes.isc_info_sql_bind:
						currentDescriptorIndex++;

						if (info[currentPosition] == IscCodes.isc_info_truncated)
							break;

						currentPosition++;
						var len = (int)IscHelper.VaxInteger(info, currentPosition, 2);
						currentPosition += 2;
						if (rowDescs[currentDescriptorIndex] == null)
						{
							var n = IscHelper.VaxInteger(info, currentPosition, len);
							rowDescs[currentDescriptorIndex] = new Descriptor((short)n);
							if (n == 0)
							{
								curren


s.length*Math.random() );
		state.flashlightHolder = state.players[luckyPlayer];

		// assign deck
		state.deck.length = 0; // empty-deck
		prepareDeck(state.deck,state.players.length);

		// assign role ==
		assignRoles(state.players);
		await this.notifyRoles();

		await this.nextRound();
	}

	async nextRound() {

		const {
			currentRound,
			deck,
			players
		} = this.state;

		// const cardsEach =  5 - currentRound;
		const cardsEach = Math.floor( deck.length / players.length );
		distributeCards(cardsEach, deck,players );

		//call all card effects
		this.callCardEffects();

		await this.publishAll(`\n\n**START OF ROUND ${currentRound+1}**\n\n`);
		await this.publishState();
		await this.sendCards();
	}

	async endTurn() {
		if( this.state.turn == this.state.players.length-1 )
			await this.endRound();
		else {
			this.state.turn +=1;
			await this.publishState();
		}
	}

	async endRound() {

		this.state.turn = 0;
		this.state.elderScrollsFoundThisRound = 0;
		const {currentRound} = this.state;
		this.collectCards();

		if(currentRound+1==4) {
			this.endByDefault();
		}
		else {
			this.state.currentRound +=1;
			this.nextRound();
		}
	}

	private async publishAll(text: string){
		await sendUsers(this.state.creator,text);
	}

	private async publishState() {
		await sendState(this.state.creator);
	}

	private collectCards() {
		const {
			deck,
			players,
			hold
		} = this.state;

		deck.push(...hold);
		hold.length = 0;

		players.forEach( player => {
			deck.push(...player.cards.filter(x=>!x.disabled));
			player.cards.length = 0;
		});
	}

	private callCardEffects() {
		this.state.players.forEach(player => {
			player.cards.forEach(card => {
				if(card.preRound && !card.disabled)
					card.preRound(this,player);
			});
		});
	}

	private async sendCards() {
		this.state.players.forEach(player => {
			sendUserCards(player,this.state.currentRound);
		});
	}

	private notifyRoles() {
		const {players} = this.state;
		players.forEach(player => {
			sendUser(player,`Hello <@${player.discordId}> ,\nYou play as **${player.role}**`);
		});
	}

	findPlayer(discordId: string) {
		return this.state.players.filter(x=>x.discordId==discordId)[0];
	}

	addPlayer(discordId: string, discordName: string) {
		const player = new Player();
		player.discordId = discordId;
		player.name = discordName;

		this.state.players.push(player);
		return player;
	}

	removePlayer(discordId: string) {
		const player = this.findPlayer(discordId);
		if(player) {
			const index = this.state.players.indexOf(player);
			this.state.players.splice(index,1);
		}
	}

	foundElderScroll () {
		this.state.elderScrollsFound +=1;
		this.state.elderScrollsFoundThisRound +=1;
		if(this.state.elderScrollsFound == this.state.players.length) {
			this.endByElderScrolls();
		}
		else
			this.endTurn();
	}

	flashlight(discordId: string, index: number) {
		const player = this.findPlayer(discordId);
		this.state.flashlightHolder = player;

		if(index>=player.cards.length)


e details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301,
 * USA.
 *
 * [Oracle and Java are registered trademarks of Oracle and/or its affiliates.
 * Other names may be trademarks of their respective owners.]
 *
 * ------------------------------------
 * TimePeriodValuesCollectionTests.java
 * ------------------------------------
 * (C) Copyright 2005-present, by David Gilbert.
 *
 * Original Author:  David Gilbert;
 * Contributor(s):   -;
 *
 */

package org.jfree.data.time;

import org.jfree.chart.TestUtils;

import org.jfree.data.Range;
import org.junit.jupiter.api.Test;

import static org.junit.jupiter.api.Assertions.*;

/**
 * Some tests for the {@link TimePeriodValuesCollection} class.
 */
public class TimePeriodValuesCollectionTest {

    /**
     * A test for bug report 1161340.  I wasn't able to reproduce the problem
     * with this test.
     */
    @Test
    public void test1161340() {
        TimePeriodValuesCollection<String> dataset = new TimePeriodValuesCollection<>();
        TimePeriodValues<String> v1 = new TimePeriodValues<>("V1");
        v1.add(new Day(11, 3, 2005), 1.2);
        v1.add(new Day(12, 3, 2005), 3.4);
        dataset.addSeries(v1);
        assertEquals(1, dataset.getSeriesCount());
        dataset.removeSeries(v1);
        assertEquals(0, dataset.getSeriesCount());

        TimePeriodValues<String> v2 = new TimePeriodValues<>("V2");
        v1.add(new Day(5, 3, 2005), 1.2);
        v1.add(new Day(6, 3, 2005), 3.4);
        dataset.addSeries(v2);
        assertEquals(1, dataset.getSeriesCount());
    }

    /**
     * Tests the equals() method.
     */
    @Test
    public void testEquals() {

        TimePeriodValuesCollection<String> c1 = new TimePeriodValuesCollection<>();
        TimePeriodValuesCollection<String> c2 = new TimePeriodValuesCollection<>();
        assertEquals(c1, c2);

        c1.setXPosition(TimePeriodAnchor.END);
        assertNotEquals(c1, c2);
        c2.setXPosition(TimePeriodAnchor.END);
        assertEquals(c1, c2);

        TimePeriodValues<String> v1 = new TimePeriodValues<>("Test");
        TimePeriodValues<String> v2 = new TimePeriodValues<>("Test");

        c1.addSeries(v1);
        assertNotEquals(c1, c2);
        c2.addSeries(v2);
        assertEquals(c1, c2);
    }

    /**
     * Serialize an instance, restore it, and check for equality.
     */
    @Test
    public void testSerialization() {
        TimePeriodValuesCollection<String> c1 = new TimePeriodValuesCollection<>();
        TimePeriodValuesCollection<String> c2 = TestUtils.serialised(c1);
        assertEquals(c1, c2);
    }

    /**
     * Some basic checks for the getSeries() method.
     */
    @Test
    public void testGetSeries() {
        TimePeriodValuesCollection<String> c1 = new TimePeriodValuesCollection<>();
        TimePeriodValues<String> s1 = new TimePeriodValues<>("Series 1");
        c1.addSeries(s1);
        assertEquals("Series 1", c1.getSeries(0).getKey());

        boolean pass = false;
        try {
            c1.getSeries(-1);


s.Generic.IDictionary<string, object> AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary<string, object>();

        /// <summary>
        /// Initializes a new instance of the <see cref="BodyUpdateMemberV1WorkspaceMembersPost" /> class.
        /// </summary>
        /// <param name="email">
        /// Email of the target user.
        /// </param>
        /// <param name="isLocked">
        /// Whether to lock or unlock the user account.
        /// </param>
        /// <param name="workspaceRole">
        /// Role dictating permissions in the workspace.
        /// </param>
#if NET7_0_OR_GREATER
        [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
        public BodyUpdateMemberV1WorkspaceMembersPost(
            string email,
            bool? isLocked,
            global::ElevenLabs.BodyUpdateMemberV1WorkspaceMembersPostWorkspaceRole? workspaceRole)
        {
            this.Email = email ?? throw new global::System.ArgumentNullException(nameof(email));
            this.IsLocked = isLocked;
            this.WorkspaceRole = workspaceRole;
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="BodyUpdateMemberV1WorkspaceMembersPost" /> class.
        /// </summary>
        public BodyUpdateMemberV1WorkspaceMembersPost()
        {
        }
    }
}


дрей"},
            {id: v1(), name: "Артур"}
        ],
        messages: [
            {id: v1(), message: "Hi"},
            {id: v1(), message: "How are you?"},
            {id: v1(), message: "What are you doing?"}
        ]
    }
})

test("message should be added", () => {
    const endState = dialogsReducer(startState, sendMessage("Hello my best friends"))
    expect(endState.messages.length).toBe(4)
    expect(endState.messages[3].message).toBe("Hello my best friends")
})
import { Input, Component, OnInit, DoCheck, AfterContentInit, AfterContentChecked, AfterViewChecked, OnDestroy } from '@angular/core';

@Component({
  selector: 'app-ciclo',
  templateUrl: './ciclo.component.html',
  styleUrls: ['./ciclo.component.css']
})
export class CicloComponent implements OnInit, OnDestroy, DoCheck, AfterContentInit, AfterContentChecked, AfterViewChecked {

@Input() contador: number = 10;
@Input() contador2: number = 5;
@Input() nome : string;

  constructor() {
   console.log('constructor');
  }

  ngOnInit() {
    console.log('ngOnInit');
  }

  ngDoCheck(){
    console.log('ngDoCheck');
    if(this.contador == 20){
      alert("Saiu");
  }
}
  ngOnDestroy(){
    console.log('ngOnDestroy');
  }

   ngAfterContentInit(){
     console.log('ngAfterContentInit');
   }

   ngAfterContentChecked(){
     console.log('ngAfterContentChecked');
   }

   ngAfterViewChecked(){
     console.log('AfterViewChecked');
   }
}
   //private logIt(msg: string){
     //this.logger.log
   //}
import * as fg from 'fast-glob';
import { readFile, writeFile } from 'fs-extra';

const path = require('path') as typeof import('path');

const buildDir = path.resolve(__dirname, '..', '..', '..', 'build', 'mobile');

async function main() {
	const editorHtmlPath = path.join(buildDir, 'editor.html');
	const files = await fg(path.join(buildDir, 'assets', 'editor-*.js'));

	if (files.length === 0) {
		throw new Error(`Could not find editor JS file.`);
	}
	if (files.length > 1) {
		throw new Error(`Found too many editor files. Something might be wrong.`);
	}

	const editorJsPath = files[0];

	// Vite builds a module by default. We need to convert this to a non-module JS
	// file.
	let editorHtml = await readFile(editorHtmlPath, 'utf8');

	// Gotta replace the HTML import of the script tag to no longer be a module import.
	editorHtml = editorHtml.replace(`type="module" crossorigin`, `defer`);
	await writeFile(editorHtmlPath, editorHtml, 'utf8');

	let editorJs = await readFile(editorJsPath, 'utf8');

	// Wrap in a function that will execute immediately.
	editorJs = '(function() {' + editorJs + '})();';

	// Replace all instances of `import.meta.url` since it only works in a
	// module context.
	editorJs = editorJs.replace(
		/import\.meta\.url/g,
		"(`${window.locat


        total_steps = timesteps.shape[0]
        print(f"Running DDIM Sampling with {total_steps} timesteps")

        iterator = tqdm(time_range, desc='Decoding image', total=total_steps)
        x_dec = x_latent
        for i, step in enumerate(iterator):
            index = total_steps - i - 1
            ts = torch.full((x_latent.shape[0],), step, device=x_latent.device, dtype=torch.long)
            x_dec, _ = self.p_sample_ddim(x_dec, cond, ts, index=index, use_original_steps=use_original_steps,
                                          unconditional_guidance_scale=unconditional_guidance_scale,
                                          unconditional_conditioning=unconditional_conditioning)
        return x_dec


;
	font-weight:bold;
	COLOR:#ffffff;
	background-color:rgb(91, 102, 204);
	PADDING-RIGHT: 3px;
	PADDING-LEFT: 3px;
	PADDING-TOP: 1px;
	PADDING-BOTTOM: 1px;
}
.cls-tabtitle-top3-deselected {
	cursor:pointer;
	text-align:center;
	vertical-align:middle;
	font-weight:bold;
	color: rgb(114, 110, 121);
	background-color:rgb(181, 183, 195);
	PADDING-RIGHT: 3px;
	PADDING-LEFT: 3px;
	PADDING-TOP: 1px;
	PADDING-BOTTOM: 1px;
}
.cls-tabtitle-top3-disabled {
	text-align:center;
	vertical-align:middle;
	font-weight:bold;
	COLOR:#a0a0a0;
	background-color:#b9c6f0;
	PADDING-RIGHT: 3px;
	PADDING-LEFT: 3px;
	PADDING-TOP: 1px;
	PADDING-BOTTOM: 1px;
}

/*tab标题显示在顶部，且titlestyle为2的标签标题样式*/
.cls-tabtitle-top2-selected {
	text-align:center;
	vertical-align:middle;
	font-weight:bold;
	COLOR:#ffffff;
	background-color:#8795de;
	PADDING-RIGHT: 3px;
	PADDING-LEFT: 3px;
	PADDING-TOP: 1px;
	PADDING-BOTTOM: 1px;
}
.cls-tabtitle-top2-deselected {
	cursor:pointer;
	text-align:center;
	vertical-align:middle;
	font-weight:bold;
	COLOR:#00246B;
	background-color:#b9c6f0;
	PADDING-RIGHT: 3px;
	PADDING-LEFT: 3px;
	PADDING-TOP: 1px;
	PADDING-BOTTOM: 1px;
}
.cls-tabtitle-top2-disabled {
	text-align:center;
	vertical-align:middle;
	font-weight:bold;
	COLOR:#a0a0a0;
	background-color:#b9c6f0;
	PADDING-RIGHT: 3px;
	PADDING-LEFT: 3px;
	PADDING-TOP: 1px;
	PADDING-BOTTOM: 1px;
}

/*tab标题显示在下端时标签标题样式*/
.cls-tabtitle-bottom-selected {
	text-align:center;
	vertical-align:middle;
	font-weight:bold;
	COLOR:#ffffff;
	PADDING-RIGHT: 3px;
	PADDING-LEFT: 3px;
	height:23px;
	/*width:100px;*/
	background-color:#8795de;
	LINE-HEIGHT: 18px;
}
.cls-tabtitle-bottom-deselected {
	cursor:pointer;
	text-align:center;
	vertical-align:middle;
	font-weight:bold;
	COLOR:#00246B;
	PADDING-RIGHT: 3px;
	PADDING-LEFT: 3px;
	height:23px;
	background-color:#b9c6f0;
	LINE-HEIGHT: 18px;
}
.cls-tabtitle-bottom-disabled {
	text-align:center;
	vertical-align:middle;
	font-weight:bold;
	COLOR:#a0a0a0;
	PADDING-RIGHT: 3px;
	PADDING-LEFT: 3px;
	height:23px;
	background-color:#b9c6f0;
	LINE-HEIGHT: 18px;
}

/*tab标题显示在左右两侧时标签


ctr	r5
	ld	r6,_XER(r1)
	mtspr	SPRN_XER,r6
	ld	r7,_DAR(r1)
	mtdar	r7
	ld	r8,_DSISR(r1)
	mtdsisr	r8

	addi	r1,r1,SWITCH_FRAME_SIZE	/