text
stringlengths
574
99.1k
meta
dict
@import "mixins/mixins"; @import "common/var"; @include b(switch) { display: inline-flex; align-items: center; position: relative; font-size: $--switch-font-size; line-height: $--switch-height; height: $--switch-height; vertical-align: middle; @include when(disabled) { & .el-switch__core, & .el-switch__label { cursor: not-allowed; } } @include e(label) { transition: .2s; height: $--switch-height; display: inline-block; font-size: $--switch-font-size; font-weight: 500; cursor: pointer; vertical-align: middle; color: $--color-text-primary; @include when(active) { color: $--color-primary; } @include m(left) { margin-right: 10px; } @include m(right) { margin-left: 10px; } & * { line-height: 1; font-size: $--switch-font-size; display: inline-block; } } @include e(input) { position: absolute; width: 0; height: 0; opacity: 0; margin: 0; } @include e(core) { margin: 0; display: inline-block; position: relative; width: $--switch-width; height: $--switch-height; border: 1px solid $--switch-off-color; outline: none; border-radius: $--switch-core-border-radius; box-sizing: border-box; background: $--switch-off-color; cursor: pointer; transition: border-color .3s, background-color .3s; vertical-align: middle; &:after { content: ""; position: absolute; top: 1px; left: 1px; border-radius: $--border-radius-circle; transition: all .3s; width: $--switch-button-size; height: $--switch-button-size; background-color: $--color-white; } } @include when(checked) { .el-switch__core { border-color: $--switch-on-color; background-color: $--switch-on-color; &::after { left: 100%; margin-left: -$--switch-button-size - 1px; } } } @include when(disabled) { opacity: 0.6; } @include m(wide) { .el-switch__label { &.el-switch__label--left { span { left: 10px; } } &.el-switch__label--right { span { right: 10px; } } } } & .label-fade-enter, & .label-fade-leave-active { opacity: 0; } }
{ "pile_set_name": "Github" }
(define (domain elevators-netbenefit-numeric) (:requirements :typing :numeric-fluents :goal-utilities) (:types elevator - object slow-elevator fast-elevator - elevator passenger - object floor - object ) (:predicates (passenger-at ?person - passenger ?floor - floor) (boarded ?person - passenger ?lift - elevator) (lift-at ?lift - elevator ?floor - floor) (reachable-floor ?lift - elevator ?floor - floor) (above ?floor1 - floor ?floor2 - floor) ) (:functions (total-cost) - number (travel-slow ?f1 - floor ?f2 - floor) - number (travel-fast ?f1 - floor ?f2 - floor) - number (passengers ?lift - elevator) - number (capacity ?lift - elevator) - number ) (:action move-up-slow :parameters (?lift - slow-elevator ?f1 - floor ?f2 - floor ) :precondition (and (lift-at ?lift ?f1) (above ?f1 ?f2 ) (reachable-floor ?lift ?f2) ) :effect (and (lift-at ?lift ?f2) (not (lift-at ?lift ?f1)) (increase (total-cost) (travel-slow ?f1 ?f2)))) (:action move-down-slow :parameters (?lift - slow-elevator ?f1 - floor ?f2 - floor ) :precondition (and (lift-at ?lift ?f1) (above ?f2 ?f1 ) (reachable-floor ?lift ?f2) ) :effect (and (lift-at ?lift ?f2) (not (lift-at ?lift ?f1)) (increase (total-cost) (travel-slow ?f2 ?f1)))) (:action move-up-fast :parameters (?lift - fast-elevator ?f1 - floor ?f2 - floor ) :precondition (and (lift-at ?lift ?f1) (above ?f1 ?f2 ) (reachable-floor ?lift ?f2) ) :effect (and (lift-at ?lift ?f2) (not (lift-at ?lift ?f1)) (increase (total-cost) (travel-fast ?f1 ?f2)))) (:action move-down-fast :parameters (?lift - fast-elevator ?f1 - floor ?f2 - floor ) :precondition (and (lift-at ?lift ?f1) (above ?f2 ?f1 ) (reachable-floor ?lift ?f2) ) :effect (and (lift-at ?lift ?f2) (not (lift-at ?lift ?f1)) (increase (total-cost) (travel-fast ?f2 ?f1)))) (:action board :parameters (?p - passenger ?lift - elevator ?f - floor) :precondition (and (lift-at ?lift ?f) (passenger-at ?p ?f) (< (passengers ?lift)(capacity ?lift)) ) :effect (and (not (passenger-at ?p ?f)) (boarded ?p ?lift) (increase (passengers ?lift) 1) )) (:action leave :parameters (?p - passenger ?lift - elevator ?f - floor) :precondition (and (lift-at ?lift ?f) (boarded ?p ?lift) ) :effect (and (passenger-at ?p ?f) (not (boarded ?p ?lift)) (decrease (passengers ?lift) 1) )) )
{ "pile_set_name": "Github" }
"""Compatibility interface between dense and sparse polys. """ from __future__ import print_function, division from sympy.polys.densearith import dup_add_term from sympy.polys.densearith import dmp_add_term from sympy.polys.densearith import dup_sub_term from sympy.polys.densearith import dmp_sub_term from sympy.polys.densearith import dup_mul_term from sympy.polys.densearith import dmp_mul_term from sympy.polys.densearith import dup_add_ground from sympy.polys.densearith import dmp_add_ground from sympy.polys.densearith import dup_sub_ground from sympy.polys.densearith import dmp_sub_ground from sympy.polys.densearith import dup_mul_ground from sympy.polys.densearith import dmp_mul_ground from sympy.polys.densearith import dup_quo_ground from sympy.polys.densearith import dmp_quo_ground from sympy.polys.densearith import dup_exquo_ground from sympy.polys.densearith import dmp_exquo_ground from sympy.polys.densearith import dup_lshift from sympy.polys.densearith import dup_rshift from sympy.polys.densearith import dup_abs from sympy.polys.densearith import dmp_abs from sympy.polys.densearith import dup_neg from sympy.polys.densearith import dmp_neg from sympy.polys.densearith import dup_add from sympy.polys.densearith import dmp_add from sympy.polys.densearith import dup_sub from sympy.polys.densearith import dmp_sub from sympy.polys.densearith import dup_add_mul from sympy.polys.densearith import dmp_add_mul from sympy.polys.densearith import dup_sub_mul from sympy.polys.densearith import dmp_sub_mul from sympy.polys.densearith import dup_mul from sympy.polys.densearith import dmp_mul from sympy.polys.densearith import dup_sqr from sympy.polys.densearith import dmp_sqr from sympy.polys.densearith import dup_pow from sympy.polys.densearith import dmp_pow from sympy.polys.densearith import dup_pdiv from sympy.polys.densearith import dup_prem from sympy.polys.densearith import dup_pquo from sympy.polys.densearith import dup_pexquo from sympy.polys.densearith import dmp_pdiv from sympy.polys.densearith import dmp_prem from sympy.polys.densearith import dmp_pquo from sympy.polys.densearith import dmp_pexquo from sympy.polys.densearith import dup_rr_div from sympy.polys.densearith import dmp_rr_div from sympy.polys.densearith import dup_ff_div from sympy.polys.densearith import dmp_ff_div from sympy.polys.densearith import dup_div from sympy.polys.densearith import dup_rem from sympy.polys.densearith import dup_quo from sympy.polys.densearith import dup_exquo from sympy.polys.densearith import dmp_div from sympy.polys.densearith import dmp_rem from sympy.polys.densearith import dmp_quo from sympy.polys.densearith import dmp_exquo from sympy.polys.densearith import dup_max_norm from sympy.polys.densearith import dmp_max_norm from sympy.polys.densearith import dup_l1_norm from sympy.polys.densearith import dmp_l1_norm from sympy.polys.densearith import dup_expand from sympy.polys.densearith import dmp_expand from sympy.polys.densebasic import dup_LC from sympy.polys.densebasic import dmp_LC from sympy.polys.densebasic import dup_TC from sympy.polys.densebasic import dmp_TC from sympy.polys.densebasic import dmp_ground_LC from sympy.polys.densebasic import dmp_ground_TC from sympy.polys.densebasic import dup_degree from sympy.polys.densebasic import dmp_degree from sympy.polys.densebasic import dmp_degree_in from sympy.polys.densebasic import dmp_to_dict from sympy.polys.densetools import dup_integrate from sympy.polys.densetools import dmp_integrate from sympy.polys.densetools import dmp_integrate_in from sympy.polys.densetools import dup_diff from sympy.polys.densetools import dmp_diff from sympy.polys.densetools import dmp_diff_in from sympy.polys.densetools import dup_eval from sympy.polys.densetools import dmp_eval from sympy.polys.densetools import dmp_eval_in from sympy.polys.densetools import dmp_eval_tail from sympy.polys.densetools import dmp_diff_eval_in from sympy.polys.densetools import dup_trunc from sympy.polys.densetools import dmp_trunc from sympy.polys.densetools import dmp_ground_trunc from sympy.polys.densetools import dup_monic from sympy.polys.densetools import dmp_ground_monic from sympy.polys.densetools import dup_content from sympy.polys.densetools import dmp_ground_content from sympy.polys.densetools import dup_primitive from sympy.polys.densetools import dmp_ground_primitive from sympy.polys.densetools import dup_extract from sympy.polys.densetools import dmp_ground_extract from sympy.polys.densetools import dup_real_imag from sympy.polys.densetools import dup_mirror from sympy.polys.densetools import dup_scale from sympy.polys.densetools import dup_shift from sympy.polys.densetools import dup_transform from sympy.polys.densetools import dup_compose from sympy.polys.densetools import dmp_compose from sympy.polys.densetools import dup_decompose from sympy.polys.densetools import dmp_lift from sympy.polys.densetools import dup_sign_variations from sympy.polys.densetools import dup_clear_denoms from sympy.polys.densetools import dmp_clear_denoms from sympy.polys.densetools import dup_revert from sympy.polys.euclidtools import dup_half_gcdex from sympy.polys.euclidtools import dmp_half_gcdex from sympy.polys.euclidtools import dup_gcdex from sympy.polys.euclidtools import dmp_gcdex from sympy.polys.euclidtools import dup_invert from sympy.polys.euclidtools import dmp_invert from sympy.polys.euclidtools import dup_euclidean_prs from sympy.polys.euclidtools import dmp_euclidean_prs from sympy.polys.euclidtools import dup_primitive_prs from sympy.polys.euclidtools import dmp_primitive_prs from sympy.polys.euclidtools import dup_inner_subresultants from sympy.polys.euclidtools import dup_subresultants from sympy.polys.euclidtools import dup_prs_resultant from sympy.polys.euclidtools import dup_resultant from sympy.polys.euclidtools import dmp_inner_subresultants from sympy.polys.euclidtools import dmp_subresultants from sympy.polys.euclidtools import dmp_prs_resultant from sympy.polys.euclidtools import dmp_zz_modular_resultant from sympy.polys.euclidtools import dmp_zz_collins_resultant from sympy.polys.euclidtools import dmp_qq_collins_resultant from sympy.polys.euclidtools import dmp_resultant from sympy.polys.euclidtools import dup_discriminant from sympy.polys.euclidtools import dmp_discriminant from sympy.polys.euclidtools import dup_rr_prs_gcd from sympy.polys.euclidtools import dup_ff_prs_gcd from sympy.polys.euclidtools import dmp_rr_prs_gcd from sympy.polys.euclidtools import dmp_ff_prs_gcd from sympy.polys.euclidtools import dup_zz_heu_gcd from sympy.polys.euclidtools import dmp_zz_heu_gcd from sympy.polys.euclidtools import dup_qq_heu_gcd from sympy.polys.euclidtools import dmp_qq_heu_gcd from sympy.polys.euclidtools import dup_inner_gcd from sympy.polys.euclidtools import dmp_inner_gcd from sympy.polys.euclidtools import dup_gcd from sympy.polys.euclidtools import dmp_gcd from sympy.polys.euclidtools import dup_rr_lcm from sympy.polys.euclidtools import dup_ff_lcm from sympy.polys.euclidtools import dup_lcm from sympy.polys.euclidtools import dmp_rr_lcm from sympy.polys.euclidtools import dmp_ff_lcm from sympy.polys.euclidtools import dmp_lcm from sympy.polys.euclidtools import dmp_content from sympy.polys.euclidtools import dmp_primitive from sympy.polys.euclidtools import dup_cancel from sympy.polys.euclidtools import dmp_cancel from sympy.polys.factortools import dup_trial_division from sympy.polys.factortools import dmp_trial_division from sympy.polys.factortools import dup_zz_mignotte_bound from sympy.polys.factortools import dmp_zz_mignotte_bound from sympy.polys.factortools import dup_zz_hensel_step from sympy.polys.factortools import dup_zz_hensel_lift from sympy.polys.factortools import dup_zz_zassenhaus from sympy.polys.factortools import dup_zz_irreducible_p from sympy.polys.factortools import dup_cyclotomic_p from sympy.polys.factortools import dup_zz_cyclotomic_poly from sympy.polys.factortools import dup_zz_cyclotomic_factor from sympy.polys.factortools import dup_zz_factor_sqf from sympy.polys.factortools import dup_zz_factor from sympy.polys.factortools import dmp_zz_wang_non_divisors from sympy.polys.factortools import dmp_zz_wang_lead_coeffs from sympy.polys.factortools import dup_zz_diophantine from sympy.polys.factortools import dmp_zz_diophantine from sympy.polys.factortools import dmp_zz_wang_hensel_lifting from sympy.polys.factortools import dmp_zz_wang from sympy.polys.factortools import dmp_zz_factor from sympy.polys.factortools import dup_ext_factor from sympy.polys.factortools import dmp_ext_factor from sympy.polys.factortools import dup_gf_factor from sympy.polys.factortools import dmp_gf_factor from sympy.polys.factortools import dup_factor_list from sympy.polys.factortools import dup_factor_list_include from sympy.polys.factortools import dmp_factor_list from sympy.polys.factortools import dmp_factor_list_include from sympy.polys.factortools import dup_irreducible_p from sympy.polys.factortools import dmp_irreducible_p from sympy.polys.rootisolation import dup_sturm from sympy.polys.rootisolation import dup_root_upper_bound from sympy.polys.rootisolation import dup_root_lower_bound from sympy.polys.rootisolation import dup_step_refine_real_root from sympy.polys.rootisolation import dup_inner_refine_real_root from sympy.polys.rootisolation import dup_outer_refine_real_root from sympy.polys.rootisolation import dup_refine_real_root from sympy.polys.rootisolation import dup_inner_isolate_real_roots from sympy.polys.rootisolation import dup_inner_isolate_positive_roots from sympy.polys.rootisolation import dup_inner_isolate_negative_roots from sympy.polys.rootisolation import dup_isolate_real_roots_sqf from sympy.polys.rootisolation import dup_isolate_real_roots from sympy.polys.rootisolation import dup_isolate_real_roots_list from sympy.polys.rootisolation import dup_count_real_roots from sympy.polys.rootisolation import dup_count_complex_roots from sympy.polys.rootisolation import dup_isolate_complex_roots_sqf from sympy.polys.rootisolation import dup_isolate_all_roots_sqf from sympy.polys.rootisolation import dup_isolate_all_roots from sympy.polys.sqfreetools import ( dup_sqf_p, dmp_sqf_p, dup_sqf_norm, dmp_sqf_norm, dup_gf_sqf_part, dmp_gf_sqf_part, dup_sqf_part, dmp_sqf_part, dup_gf_sqf_list, dmp_gf_sqf_list, dup_sqf_list, dup_sqf_list_include, dmp_sqf_list, dmp_sqf_list_include, dup_gff_list, dmp_gff_list) from sympy.polys.galoistools import ( gf_degree, gf_LC, gf_TC, gf_strip, gf_trunc, gf_normal, gf_from_dict, gf_to_dict, gf_from_int_poly, gf_to_int_poly, gf_neg, gf_add_ground, gf_sub_ground, gf_mul_ground, gf_quo_ground, gf_add, gf_sub, gf_mul, gf_sqr, gf_add_mul, gf_sub_mul, gf_expand, gf_div, gf_rem, gf_quo, gf_exquo, gf_lshift, gf_rshift, gf_pow, gf_pow_mod, gf_gcd, gf_lcm, gf_cofactors, gf_gcdex, gf_monic, gf_diff, gf_eval, gf_multi_eval, gf_compose, gf_compose_mod, gf_trace_map, gf_random, gf_irreducible, gf_irred_p_ben_or, gf_irred_p_rabin, gf_irreducible_p, gf_sqf_p, gf_sqf_part, gf_sqf_list, gf_Qmatrix, gf_Qbasis, gf_berlekamp, gf_ddf_zassenhaus, gf_edf_zassenhaus, gf_ddf_shoup, gf_edf_shoup, gf_zassenhaus, gf_shoup, gf_factor_sqf, gf_factor, gf_value, gf_csolve) from sympy.utilities import public @public class IPolys(object): symbols = None ngens = None domain = None order = None gens = None def drop(self, gen): pass def clone(self, symbols=None, domain=None, order=None): pass def to_ground(self): pass def ground_new(self, element): pass def domain_new(self, element): pass def from_dict(self, d): pass def wrap(self, element): from sympy.polys.rings import PolyElement if isinstance(element, PolyElement): if element.ring == self: return element else: raise NotImplementedError("domain conversions") else: return self.ground_new(element) def to_dense(self, element): return self.wrap(element).to_dense() def from_dense(self, element): return self.from_dict(dmp_to_dict(element, self.ngens-1, self.domain)) def dup_add_term(self, f, c, i): return self.from_dense(dup_add_term(self.to_dense(f), c, i, self.domain)) def dmp_add_term(self, f, c, i): return self.from_dense(dmp_add_term(self.to_dense(f), self.wrap(c).drop(0).to_dense(), i, self.ngens-1, self.domain)) def dup_sub_term(self, f, c, i): return self.from_dense(dup_sub_term(self.to_dense(f), c, i, self.domain)) def dmp_sub_term(self, f, c, i): return self.from_dense(dmp_sub_term(self.to_dense(f), self.wrap(c).drop(0).to_dense(), i, self.ngens-1, self.domain)) def dup_mul_term(self, f, c, i): return self.from_dense(dup_mul_term(self.to_dense(f), c, i, self.domain)) def dmp_mul_term(self, f, c, i): return self.from_dense(dmp_mul_term(self.to_dense(f), self.wrap(c).drop(0).to_dense(), i, self.ngens-1, self.domain)) def dup_add_ground(self, f, c): return self.from_dense(dup_add_ground(self.to_dense(f), c, self.domain)) def dmp_add_ground(self, f, c): return self.from_dense(dmp_add_ground(self.to_dense(f), c, self.ngens-1, self.domain)) def dup_sub_ground(self, f, c): return self.from_dense(dup_sub_ground(self.to_dense(f), c, self.domain)) def dmp_sub_ground(self, f, c): return self.from_dense(dmp_sub_ground(self.to_dense(f), c, self.ngens-1, self.domain)) def dup_mul_ground(self, f, c): return self.from_dense(dup_mul_ground(self.to_dense(f), c, self.domain)) def dmp_mul_ground(self, f, c): return self.from_dense(dmp_mul_ground(self.to_dense(f), c, self.ngens-1, self.domain)) def dup_quo_ground(self, f, c): return self.from_dense(dup_quo_ground(self.to_dense(f), c, self.domain)) def dmp_quo_ground(self, f, c): return self.from_dense(dmp_quo_ground(self.to_dense(f), c, self.ngens-1, self.domain)) def dup_exquo_ground(self, f, c): return self.from_dense(dup_exquo_ground(self.to_dense(f), c, self.domain)) def dmp_exquo_ground(self, f, c): return self.from_dense(dmp_exquo_ground(self.to_dense(f), c, self.ngens-1, self.domain)) def dup_lshift(self, f, n): return self.from_dense(dup_lshift(self.to_dense(f), n, self.domain)) def dup_rshift(self, f, n): return self.from_dense(dup_rshift(self.to_dense(f), n, self.domain)) def dup_abs(self, f): return self.from_dense(dup_abs(self.to_dense(f), self.domain)) def dmp_abs(self, f): return self.from_dense(dmp_abs(self.to_dense(f), self.ngens-1, self.domain)) def dup_neg(self, f): return self.from_dense(dup_neg(self.to_dense(f), self.domain)) def dmp_neg(self, f): return self.from_dense(dmp_neg(self.to_dense(f), self.ngens-1, self.domain)) def dup_add(self, f, g): return self.from_dense(dup_add(self.to_dense(f), self.to_dense(g), self.domain)) def dmp_add(self, f, g): return self.from_dense(dmp_add(self.to_dense(f), self.to_dense(g), self.ngens-1, self.domain)) def dup_sub(self, f, g): return self.from_dense(dup_sub(self.to_dense(f), self.to_dense(g), self.domain)) def dmp_sub(self, f, g): return self.from_dense(dmp_sub(self.to_dense(f), self.to_dense(g), self.ngens-1, self.domain)) def dup_add_mul(self, f, g, h): return self.from_dense(dup_add_mul(self.to_dense(f), self.to_dense(g), self.to_dense(h), self.domain)) def dmp_add_mul(self, f, g, h): return self.from_dense(dmp_add_mul(self.to_dense(f), self.to_dense(g), self.to_dense(h), self.ngens-1, self.domain)) def dup_sub_mul(self, f, g, h): return self.from_dense(dup_sub_mul(self.to_dense(f), self.to_dense(g), self.to_dense(h), self.domain)) def dmp_sub_mul(self, f, g, h): return self.from_dense(dmp_sub_mul(self.to_dense(f), self.to_dense(g), self.to_dense(h), self.ngens-1, self.domain)) def dup_mul(self, f, g): return self.from_dense(dup_mul(self.to_dense(f), self.to_dense(g), self.domain)) def dmp_mul(self, f, g): return self.from_dense(dmp_mul(self.to_dense(f), self.to_dense(g), self.ngens-1, self.domain)) def dup_sqr(self, f): return self.from_dense(dup_sqr(self.to_dense(f), self.domain)) def dmp_sqr(self, f): return self.from_dense(dmp_sqr(self.to_dense(f), self.ngens-1, self.domain)) def dup_pow(self, f, n): return self.from_dense(dup_pow(self.to_dense(f), n, self.domain)) def dmp_pow(self, f, n): return self.from_dense(dmp_pow(self.to_dense(f), n, self.ngens-1, self.domain)) def dup_pdiv(self, f, g): q, r = dup_pdiv(self.to_dense(f), self.to_dense(g), self.domain) return (self.from_dense(q), self.from_dense(r)) def dup_prem(self, f, g): return self.from_dense(dup_prem(self.to_dense(f), self.to_dense(g), self.domain)) def dup_pquo(self, f, g): return self.from_dense(dup_pquo(self.to_dense(f), self.to_dense(g), self.domain)) def dup_pexquo(self, f, g): return self.from_dense(dup_pexquo(self.to_dense(f), self.to_dense(g), self.domain)) def dmp_pdiv(self, f, g): q, r = dmp_pdiv(self.to_dense(f), self.to_dense(g), self.ngens-1, self.domain) return (self.from_dense(q), self.from_dense(r)) def dmp_prem(self, f, g): return self.from_dense(dmp_prem(self.to_dense(f), self.to_dense(g), self.ngens-1, self.domain)) def dmp_pquo(self, f, g): return self.from_dense(dmp_pquo(self.to_dense(f), self.to_dense(g), self.ngens-1, self.domain)) def dmp_pexquo(self, f, g): return self.from_dense(dmp_pexquo(self.to_dense(f), self.to_dense(g), self.ngens-1, self.domain)) def dup_rr_div(self, f, g): q, r = dup_rr_div(self.to_dense(f), self.to_dense(g), self.domain) return (self.from_dense(q), self.from_dense(r)) def dmp_rr_div(self, f, g): q, r = dmp_rr_div(self.to_dense(f), self.to_dense(g), self.ngens-1, self.domain) return (self.from_dense(q), self.from_dense(r)) def dup_ff_div(self, f, g): q, r = dup_ff_div(self.to_dense(f), self.to_dense(g), self.domain) return (self.from_dense(q), self.from_dense(r)) def dmp_ff_div(self, f, g): q, r = dmp_ff_div(self.to_dense(f), self.to_dense(g), self.ngens-1, self.domain) return (self.from_dense(q), self.from_dense(r)) def dup_div(self, f, g): q, r = dup_div(self.to_dense(f), self.to_dense(g), self.domain) return (self.from_dense(q), self.from_dense(r)) def dup_rem(self, f, g): return self.from_dense(dup_rem(self.to_dense(f), self.to_dense(g), self.domain)) def dup_quo(self, f, g): return self.from_dense(dup_quo(self.to_dense(f), self.to_dense(g), self.domain)) def dup_exquo(self, f, g): return self.from_dense(dup_exquo(self.to_dense(f), self.to_dense(g), self.domain)) def dmp_div(self, f, g): q, r = dmp_div(self.to_dense(f), self.to_dense(g), self.ngens-1, self.domain) return (self.from_dense(q), self.from_dense(r)) def dmp_rem(self, f, g): return self.from_dense(dmp_rem(self.to_dense(f), self.to_dense(g), self.ngens-1, self.domain)) def dmp_quo(self, f, g): return self.from_dense(dmp_quo(self.to_dense(f), self.to_dense(g), self.ngens-1, self.domain)) def dmp_exquo(self, f, g): return self.from_dense(dmp_exquo(self.to_dense(f), self.to_dense(g), self.ngens-1, self.domain)) def dup_max_norm(self, f): return dup_max_norm(self.to_dense(f), self.domain) def dmp_max_norm(self, f): return dmp_max_norm(self.to_dense(f), self.ngens-1, self.domain) def dup_l1_norm(self, f): return dup_l1_norm(self.to_dense(f), self.domain) def dmp_l1_norm(self, f): return dmp_l1_norm(self.to_dense(f), self.ngens-1, self.domain) def dup_expand(self, polys): return self.from_dense(dup_expand(list(map(self.to_dense, polys)), self.domain)) def dmp_expand(self, polys): return self.from_dense(dmp_expand(list(map(self.to_dense, polys)), self.ngens-1, self.domain)) def dup_LC(self, f): return dup_LC(self.to_dense(f), self.domain) def dmp_LC(self, f): LC = dmp_LC(self.to_dense(f), self.domain) if isinstance(LC, list): return self[1:].from_dense(LC) else: return LC def dup_TC(self, f): return dup_TC(self.to_dense(f), self.domain) def dmp_TC(self, f): TC = dmp_TC(self.to_dense(f), self.domain) if isinstance(TC, list): return self[1:].from_dense(TC) else: return TC def dmp_ground_LC(self, f): return dmp_ground_LC(self.to_dense(f), self.ngens-1, self.domain) def dmp_ground_TC(self, f): return dmp_ground_TC(self.to_dense(f), self.ngens-1, self.domain) def dup_degree(self, f): return dup_degree(self.to_dense(f)) def dmp_degree(self, f): return dmp_degree(self.to_dense(f), self.ngens-1) def dmp_degree_in(self, f, j): return dmp_degree_in(self.to_dense(f), j, self.ngens-1) def dup_integrate(self, f, m): return self.from_dense(dup_integrate(self.to_dense(f), m, self.domain)) def dmp_integrate(self, f, m): return self.from_dense(dmp_integrate(self.to_dense(f), m, self.ngens-1, self.domain)) def dup_diff(self, f, m): return self.from_dense(dup_diff(self.to_dense(f), m, self.domain)) def dmp_diff(self, f, m): return self.from_dense(dmp_diff(self.to_dense(f), m, self.ngens-1, self.domain)) def dmp_diff_in(self, f, m, j): return self.from_dense(dmp_diff_in(self.to_dense(f), m, j, self.ngens-1, self.domain)) def dmp_integrate_in(self, f, m, j): return self.from_dense(dmp_integrate_in(self.to_dense(f), m, j, self.ngens-1, self.domain)) def dup_eval(self, f, a): return dup_eval(self.to_dense(f), a, self.domain) def dmp_eval(self, f, a): result = dmp_eval(self.to_dense(f), a, self.ngens-1, self.domain) return self[1:].from_dense(result) def dmp_eval_in(self, f, a, j): result = dmp_eval_in(self.to_dense(f), a, j, self.ngens-1, self.domain) return self.drop(j).from_dense(result) def dmp_diff_eval_in(self, f, m, a, j): result = dmp_diff_eval_in(self.to_dense(f), m, a, j, self.ngens-1, self.domain) return self.drop(j).from_dense(result) def dmp_eval_tail(self, f, A): result = dmp_eval_tail(self.to_dense(f), A, self.ngens-1, self.domain) if isinstance(result, list): return self[:-len(A)].from_dense(result) else: return result def dup_trunc(self, f, p): return self.from_dense(dup_trunc(self.to_dense(f), p, self.domain)) def dmp_trunc(self, f, g): return self.from_dense(dmp_trunc(self.to_dense(f), self[1:].to_dense(g), self.ngens-1, self.domain)) def dmp_ground_trunc(self, f, p): return self.from_dense(dmp_ground_trunc(self.to_dense(f), p, self.ngens-1, self.domain)) def dup_monic(self, f): return self.from_dense(dup_monic(self.to_dense(f), self.domain)) def dmp_ground_monic(self, f): return self.from_dense(dmp_ground_monic(self.to_dense(f), self.ngens-1, self.domain)) def dup_extract(self, f, g): c, F, G = dup_extract(self.to_dense(f), self.to_dense(g), self.domain) return (c, self.from_dense(F), self.from_dense(G)) def dmp_ground_extract(self, f, g): c, F, G = dmp_ground_extract(self.to_dense(f), self.to_dense(g), self.ngens-1, self.domain) return (c, self.from_dense(F), self.from_dense(G)) def dup_real_imag(self, f): p, q = dup_real_imag(self.wrap(f).drop(1).to_dense(), self.domain) return (self.from_dense(p), self.from_dense(q)) def dup_mirror(self, f): return self.from_dense(dup_mirror(self.to_dense(f), self.domain)) def dup_scale(self, f, a): return self.from_dense(dup_scale(self.to_dense(f), a, self.domain)) def dup_shift(self, f, a): return self.from_dense(dup_shift(self.to_dense(f), a, self.domain)) def dup_transform(self, f, p, q): return self.from_dense(dup_transform(self.to_dense(f), self.to_dense(p), self.to_dense(q), self.domain)) def dup_compose(self, f, g): return self.from_dense(dup_compose(self.to_dense(f), self.to_dense(g), self.domain)) def dmp_compose(self, f, g): return self.from_dense(dmp_compose(self.to_dense(f), self.to_dense(g), self.ngens-1, self.domain)) def dup_decompose(self, f): components = dup_decompose(self.to_dense(f), self.domain) return list(map(self.from_dense, components)) def dmp_lift(self, f): result = dmp_lift(self.to_dense(f), self.ngens-1, self.domain) return self.to_ground().from_dense(result) def dup_sign_variations(self, f): return dup_sign_variations(self.to_dense(f), self.domain) def dup_clear_denoms(self, f, convert=False): c, F = dup_clear_denoms(self.to_dense(f), self.domain, convert=convert) if convert: ring = self.clone(domain=self.domain.get_ring()) else: ring = self return (c, ring.from_dense(F)) def dmp_clear_denoms(self, f, convert=False): c, F = dmp_clear_denoms(self.to_dense(f), self.ngens-1, self.domain, convert=convert) if convert: ring = self.clone(domain=self.domain.get_ring()) else: ring = self return (c, ring.from_dense(F)) def dup_revert(self, f, n): return self.from_dense(dup_revert(self.to_dense(f), n, self.domain)) def dup_half_gcdex(self, f, g): s, h = dup_half_gcdex(self.to_dense(f), self.to_dense(g), self.domain) return (self.from_dense(s), self.from_dense(h)) def dmp_half_gcdex(self, f, g): s, h = dmp_half_gcdex(self.to_dense(f), self.to_dense(g), self.ngens-1, self.domain) return (self.from_dense(s), self.from_dense(h)) def dup_gcdex(self, f, g): s, t, h = dup_gcdex(self.to_dense(f), self.to_dense(g), self.domain) return (self.from_dense(s), self.from_dense(t), self.from_dense(h)) def dmp_gcdex(self, f, g): s, t, h = dmp_gcdex(self.to_dense(f), self.to_dense(g), self.ngens-1, self.domain) return (self.from_dense(s), self.from_dense(t), self.from_dense(h)) def dup_invert(self, f, g): return self.from_dense(dup_invert(self.to_dense(f), self.to_dense(g), self.domain)) def dmp_invert(self, f, g): return self.from_dense(dmp_invert(self.to_dense(f), self.to_dense(g), self.ngens-1, self.domain)) def dup_euclidean_prs(self, f, g): prs = dup_euclidean_prs(self.to_dense(f), self.to_dense(g), self.domain) return list(map(self.from_dense, prs)) def dmp_euclidean_prs(self, f, g): prs = dmp_euclidean_prs(self.to_dense(f), self.to_dense(g), self.ngens-1, self.domain) return list(map(self.from_dense, prs)) def dup_primitive_prs(self, f, g): prs = dup_primitive_prs(self.to_dense(f), self.to_dense(g), self.domain) return list(map(self.from_dense, prs)) def dmp_primitive_prs(self, f, g): prs = dmp_primitive_prs(self.to_dense(f), self.to_dense(g), self.ngens-1, self.domain) return list(map(self.from_dense, prs)) def dup_inner_subresultants(self, f, g): prs, beta, delta = dup_inner_subresultants(self.to_dense(f), self.to_dense(g), self.domain) return (list(map(self.from_dense, prs)), beta, delta) def dmp_inner_subresultants(self, f, g): prs, beta, delta = dmp_inner_subresultants(self.to_dense(f), self.to_dense(g), self.ngens-1, self.domain) return (list(map(self.from_dense, prs)), beta, delta) def dup_subresultants(self, f, g): prs = dup_subresultants(self.to_dense(f), self.to_dense(g), self.domain) return list(map(self.from_dense, prs)) def dmp_subresultants(self, f, g): prs = dmp_subresultants(self.to_dense(f), self.to_dense(g), self.ngens-1, self.domain) return list(map(self.from_dense, prs)) def dup_prs_resultant(self, f, g): res, prs = dup_prs_resultant(self.to_dense(f), self.to_dense(g), self.domain) return (res, list(map(self.from_dense, prs))) def dmp_prs_resultant(self, f, g): res, prs = dmp_prs_resultant(self.to_dense(f), self.to_dense(g), self.ngens-1, self.domain) return (self[1:].from_dense(res), list(map(self.from_dense, prs))) def dmp_zz_modular_resultant(self, f, g, p): res = dmp_zz_modular_resultant(self.to_dense(f), self.to_dense(g), self.domain_new(p), self.ngens-1, self.domain) return self[1:].from_dense(res) def dmp_zz_collins_resultant(self, f, g): res = dmp_zz_collins_resultant(self.to_dense(f), self.to_dense(g), self.ngens-1, self.domain) return self[1:].from_dense(res) def dmp_qq_collins_resultant(self, f, g): res = dmp_qq_collins_resultant(self.to_dense(f), self.to_dense(g), self.ngens-1, self.domain) return self[1:].from_dense(res) def dup_resultant(self, f, g): #, includePRS=False): return dup_resultant(self.to_dense(f), self.to_dense(g), self.domain) #, includePRS=includePRS) def dmp_resultant(self, f, g): #, includePRS=False): res = dmp_resultant(self.to_dense(f), self.to_dense(g), self.ngens-1, self.domain) #, includePRS=includePRS) if isinstance(res, list): return self[1:].from_dense(res) else: return res def dup_discriminant(self, f): return dup_discriminant(self.to_dense(f), self.domain) def dmp_discriminant(self, f): disc = dmp_discriminant(self.to_dense(f), self.ngens-1, self.domain) if isinstance(disc, list): return self[1:].from_dense(disc) else: return disc def dup_rr_prs_gcd(self, f, g): H, F, G = dup_rr_prs_gcd(self.to_dense(f), self.to_dense(g), self.domain) return (self.from_dense(H), self.from_dense(F), self.from_dense(G)) def dup_ff_prs_gcd(self, f, g): H, F, G = dup_ff_prs_gcd(self.to_dense(f), self.to_dense(g), self.domain) return (self.from_dense(H), self.from_dense(F), self.from_dense(G)) def dmp_rr_prs_gcd(self, f, g): H, F, G = dmp_rr_prs_gcd(self.to_dense(f), self.to_dense(g), self.ngens-1, self.domain) return (self.from_dense(H), self.from_dense(F), self.from_dense(G)) def dmp_ff_prs_gcd(self, f, g): H, F, G = dmp_ff_prs_gcd(self.to_dense(f), self.to_dense(g), self.ngens-1, self.domain) return (self.from_dense(H), self.from_dense(F), self.from_dense(G)) def dup_zz_heu_gcd(self, f, g): H, F, G = dup_zz_heu_gcd(self.to_dense(f), self.to_dense(g), self.domain) return (self.from_dense(H), self.from_dense(F), self.from_dense(G)) def dmp_zz_heu_gcd(self, f, g): H, F, G = dmp_zz_heu_gcd(self.to_dense(f), self.to_dense(g), self.ngens-1, self.domain) return (self.from_dense(H), self.from_dense(F), self.from_dense(G)) def dup_qq_heu_gcd(self, f, g): H, F, G = dup_qq_heu_gcd(self.to_dense(f), self.to_dense(g), self.domain) return (self.from_dense(H), self.from_dense(F), self.from_dense(G)) def dmp_qq_heu_gcd(self, f, g): H, F, G = dmp_qq_heu_gcd(self.to_dense(f), self.to_dense(g), self.ngens-1, self.domain) return (self.from_dense(H), self.from_dense(F), self.from_dense(G)) def dup_inner_gcd(self, f, g): H, F, G = dup_inner_gcd(self.to_dense(f), self.to_dense(g), self.domain) return (self.from_dense(H), self.from_dense(F), self.from_dense(G)) def dmp_inner_gcd(self, f, g): H, F, G = dmp_inner_gcd(self.to_dense(f), self.to_dense(g), self.ngens-1, self.domain) return (self.from_dense(H), self.from_dense(F), self.from_dense(G)) def dup_gcd(self, f, g): H = dup_gcd(self.to_dense(f), self.to_dense(g), self.domain) return self.from_dense(H) def dmp_gcd(self, f, g): H = dmp_gcd(self.to_dense(f), self.to_dense(g), self.ngens-1, self.domain) return self.from_dense(H) def dup_rr_lcm(self, f, g): H = dup_rr_lcm(self.to_dense(f), self.to_dense(g), self.domain) return self.from_dense(H) def dup_ff_lcm(self, f, g): H = dup_ff_lcm(self.to_dense(f), self.to_dense(g), self.domain) return self.from_dense(H) def dup_lcm(self, f, g): H = dup_lcm(self.to_dense(f), self.to_dense(g), self.domain) return self.from_dense(H) def dmp_rr_lcm(self, f, g): H = dmp_rr_lcm(self.to_dense(f), self.to_dense(g), self.ngens-1, self.domain) return self.from_dense(H) def dmp_ff_lcm(self, f, g): H = dmp_ff_lcm(self.to_dense(f), self.to_dense(g), self.ngens-1, self.domain) return self.from_dense(H) def dmp_lcm(self, f, g): H = dmp_lcm(self.to_dense(f), self.to_dense(g), self.ngens-1, self.domain) return self.from_dense(H) def dup_content(self, f): cont = dup_content(self.to_dense(f), self.domain) return cont def dup_primitive(self, f): cont, prim = dup_primitive(self.to_dense(f), self.domain) return cont, self.from_dense(prim) def dmp_content(self, f): cont = dmp_content(self.to_dense(f), self.ngens-1, self.domain) if isinstance(cont, list): return self[1:].from_dense(cont) else: return cont def dmp_primitive(self, f): cont, prim = dmp_primitive(self.to_dense(f), self.ngens-1, self.domain) if isinstance(cont, list): return (self[1:].from_dense(cont), self.from_dense(prim)) else: return (cont, self.from_dense(prim)) def dmp_ground_content(self, f): cont = dmp_ground_content(self.to_dense(f), self.ngens-1, self.domain) return cont def dmp_ground_primitive(self, f): cont, prim = dmp_ground_primitive(self.to_dense(f), self.ngens-1, self.domain) return (cont, self.from_dense(prim)) def dup_cancel(self, f, g, include=True): result = dup_cancel(self.to_dense(f), self.to_dense(g), self.domain, include=include) if not include: cf, cg, F, G = result return (cf, cg, self.from_dense(F), self.from_dense(G)) else: F, G = result return (self.from_dense(F), self.from_dense(G)) def dmp_cancel(self, f, g, include=True): result = dmp_cancel(self.to_dense(f), self.to_dense(g), self.ngens-1, self.domain, include=include) if not include: cf, cg, F, G = result return (cf, cg, self.from_dense(F), self.from_dense(G)) else: F, G = result return (self.from_dense(F), self.from_dense(G)) def dup_trial_division(self, f, factors): factors = dup_trial_division(self.to_dense(f), list(map(self.to_dense, factors)), self.domain) return [ (self.from_dense(g), k) for g, k in factors ] def dmp_trial_division(self, f, factors): factors = dmp_trial_division(self.to_dense(f), list(map(self.to_dense, factors)), self.ngens-1, self.domain) return [ (self.from_dense(g), k) for g, k in factors ] def dup_zz_mignotte_bound(self, f): return dup_zz_mignotte_bound(self.to_dense(f), self.domain) def dmp_zz_mignotte_bound(self, f): return dmp_zz_mignotte_bound(self.to_dense(f), self.ngens-1, self.domain) def dup_zz_hensel_step(self, m, f, g, h, s, t): D = self.to_dense G, H, S, T = dup_zz_hensel_step(m, D(f), D(g), D(h), D(s), D(t), self.domain) return (self.from_dense(G), self.from_dense(H), self.from_dense(S), self.from_dense(T)) def dup_zz_hensel_lift(self, p, f, f_list, l): D = self.to_dense polys = dup_zz_hensel_lift(p, D(f), list(map(D, f_list)), l, self.domain) return list(map(self.from_dense, polys)) def dup_zz_zassenhaus(self, f): factors = dup_zz_zassenhaus(self.to_dense(f), self.domain) return [ (self.from_dense(g), k) for g, k in factors ] def dup_zz_irreducible_p(self, f): return dup_zz_irreducible_p(self.to_dense(f), self.domain) def dup_cyclotomic_p(self, f, irreducible=False): return dup_cyclotomic_p(self.to_dense(f), self.domain, irreducible=irreducible) def dup_zz_cyclotomic_poly(self, n): F = dup_zz_cyclotomic_poly(n, self.domain) return self.from_dense(F) def dup_zz_cyclotomic_factor(self, f): result = dup_zz_cyclotomic_factor(self.to_dense(f), self.domain) if result is None: return result else: return list(map(self.from_dense, result)) # E: List[ZZ], cs: ZZ, ct: ZZ def dmp_zz_wang_non_divisors(self, E, cs, ct): return dmp_zz_wang_non_divisors(E, cs, ct, self.domain) # f: Poly, T: List[(Poly, int)], ct: ZZ, A: List[ZZ] #def dmp_zz_wang_test_points(f, T, ct, A): # dmp_zz_wang_test_points(self.to_dense(f), T, ct, A, self.ngens-1, self.domain) # f: Poly, T: List[(Poly, int)], cs: ZZ, E: List[ZZ], H: List[Poly], A: List[ZZ] def dmp_zz_wang_lead_coeffs(self, f, T, cs, E, H, A): mv = self[1:] T = [ (mv.to_dense(t), k) for t, k in T ] uv = self[:1] H = list(map(uv.to_dense, H)) f, HH, CC = dmp_zz_wang_lead_coeffs(self.to_dense(f), T, cs, E, H, A, self.ngens-1, self.domain) return self.from_dense(f), list(map(uv.from_dense, HH)), list(map(mv.from_dense, CC)) # f: List[Poly], m: int, p: ZZ def dup_zz_diophantine(self, F, m, p): result = dup_zz_diophantine(list(map(self.to_dense, F)), m, p, self.domain) return list(map(self.from_dense, result)) # f: List[Poly], c: List[Poly], A: List[ZZ], d: int, p: ZZ def dmp_zz_diophantine(self, F, c, A, d, p): result = dmp_zz_diophantine(list(map(self.to_dense, F)), self.to_dense(c), A, d, p, self.ngens-1, self.domain) return list(map(self.from_dense, result)) # f: Poly, H: List[Poly], LC: List[Poly], A: List[ZZ], p: ZZ def dmp_zz_wang_hensel_lifting(self, f, H, LC, A, p): uv = self[:1] mv = self[1:] H = list(map(uv.to_dense, H)) LC = list(map(mv.to_dense, LC)) result = dmp_zz_wang_hensel_lifting(self.to_dense(f), H, LC, A, p, self.ngens-1, self.domain) return list(map(self.from_dense, result)) def dmp_zz_wang(self, f, mod=None, seed=None): factors = dmp_zz_wang(self.to_dense(f), self.ngens-1, self.domain, mod=mod, seed=seed) return [ self.from_dense(g) for g in factors ] def dup_zz_factor_sqf(self, f): coeff, factors = dup_zz_factor_sqf(self.to_dense(f), self.domain) return (coeff, [ self.from_dense(g) for g in factors ]) def dup_zz_factor(self, f): coeff, factors = dup_zz_factor(self.to_dense(f), self.domain) return (coeff, [ (self.from_dense(g), k) for g, k in factors ]) def dmp_zz_factor(self, f): coeff, factors = dmp_zz_factor(self.to_dense(f), self.ngens-1, self.domain) return (coeff, [ (self.from_dense(g), k) for g, k in factors ]) def dup_ext_factor(self, f): coeff, factors = dup_ext_factor(self.to_dense(f), self.domain) return (coeff, [ (self.from_dense(g), k) for g, k in factors ]) def dmp_ext_factor(self, f): coeff, factors = dmp_ext_factor(self.to_dense(f), self.ngens-1, self.domain) return (coeff, [ (self.from_dense(g), k) for g, k in factors ]) def dup_gf_factor(self, f): coeff, factors = dup_gf_factor(self.to_dense(f), self.domain) return (coeff, [ (self.from_dense(g), k) for g, k in factors ]) def dmp_gf_factor(self, f): coeff, factors = dmp_gf_factor(self.to_dense(f), self.ngens-1, self.domain) return (coeff, [ (self.from_dense(g), k) for g, k in factors ]) def dup_factor_list(self, f): coeff, factors = dup_factor_list(self.to_dense(f), self.domain) return (coeff, [ (self.from_dense(g), k) for g, k in factors ]) def dup_factor_list_include(self, f): factors = dup_factor_list_include(self.to_dense(f), self.domain) return [ (self.from_dense(g), k) for g, k in factors ] def dmp_factor_list(self, f): coeff, factors = dmp_factor_list(self.to_dense(f), self.ngens-1, self.domain) return (coeff, [ (self.from_dense(g), k) for g, k in factors ]) def dmp_factor_list_include(self, f): factors = dmp_factor_list_include(self.to_dense(f), self.ngens-1, self.domain) return [ (self.from_dense(g), k) for g, k in factors ] def dup_irreducible_p(self, f): return dup_irreducible_p(self.to_dense(f), self.domain) def dmp_irreducible_p(self, f): return dmp_irreducible_p(self.to_dense(f), self.ngens-1, self.domain) def dup_sturm(self, f): seq = dup_sturm(self.to_dense(f), self.domain) return list(map(self.from_dense, seq)) def dup_sqf_p(self, f): return dup_sqf_p(self.to_dense(f), self.domain) def dmp_sqf_p(self, f): return dmp_sqf_p(self.to_dense(f), self.ngens-1, self.domain) def dup_sqf_norm(self, f): s, F, R = dup_sqf_norm(self.to_dense(f), self.domain) return (s, self.from_dense(F), self.to_ground().from_dense(R)) def dmp_sqf_norm(self, f): s, F, R = dmp_sqf_norm(self.to_dense(f), self.ngens-1, self.domain) return (s, self.from_dense(F), self.to_ground().from_dense(R)) def dup_gf_sqf_part(self, f): return self.from_dense(dup_gf_sqf_part(self.to_dense(f), self.domain)) def dmp_gf_sqf_part(self, f): return self.from_dense(dmp_gf_sqf_part(self.to_dense(f), self.domain)) def dup_sqf_part(self, f): return self.from_dense(dup_sqf_part(self.to_dense(f), self.domain)) def dmp_sqf_part(self, f): return self.from_dense(dmp_sqf_part(self.to_dense(f), self.ngens-1, self.domain)) def dup_gf_sqf_list(self, f, all=False): coeff, factors = dup_gf_sqf_list(self.to_dense(f), self.domain, all=all) return (coeff, [ (self.from_dense(g), k) for g, k in factors ]) def dmp_gf_sqf_list(self, f, all=False): coeff, factors = dmp_gf_sqf_list(self.to_dense(f), self.ngens-1, self.domain, all=all) return (coeff, [ (self.from_dense(g), k) for g, k in factors ]) def dup_sqf_list(self, f, all=False): coeff, factors = dup_sqf_list(self.to_dense(f), self.domain, all=all) return (coeff, [ (self.from_dense(g), k) for g, k in factors ]) def dup_sqf_list_include(self, f, all=False): factors = dup_sqf_list_include(self.to_dense(f), self.domain, all=all) return [ (self.from_dense(g), k) for g, k in factors ] def dmp_sqf_list(self, f, all=False): coeff, factors = dmp_sqf_list(self.to_dense(f), self.ngens-1, self.domain, all=all) return (coeff, [ (self.from_dense(g), k) for g, k in factors ]) def dmp_sqf_list_include(self, f, all=False): factors = dmp_sqf_list_include(self.to_dense(f), self.ngens-1, self.domain, all=all) return [ (self.from_dense(g), k) for g, k in factors ] def dup_gff_list(self, f): factors = dup_gff_list(self.to_dense(f), self.domain) return [ (self.from_dense(g), k) for g, k in factors ] def dmp_gff_list(self, f): factors = dmp_gff_list(self.to_dense(f), self.ngens-1, self.domain) return [ (self.from_dense(g), k) for g, k in factors ] def dup_root_upper_bound(self, f): return dup_root_upper_bound(self.to_dense(f), self.domain) def dup_root_lower_bound(self, f): return dup_root_lower_bound(self.to_dense(f), self.domain) def dup_step_refine_real_root(self, f, M, fast=False): return dup_step_refine_real_root(self.to_dense(f), M, self.domain, fast=fast) def dup_inner_refine_real_root(self, f, M, eps=None, steps=None, disjoint=None, fast=False, mobius=False): return dup_inner_refine_real_root(self.to_dense(f), M, self.domain, eps=eps, steps=steps, disjoint=disjoint, fast=fast, mobius=mobius) def dup_outer_refine_real_root(self, f, s, t, eps=None, steps=None, disjoint=None, fast=False): return dup_outer_refine_real_root(self.to_dense(f), s, t, self.domain, eps=eps, steps=steps, disjoint=disjoint, fast=fast) def dup_refine_real_root(self, f, s, t, eps=None, steps=None, disjoint=None, fast=False): return dup_refine_real_root(self.to_dense(f), s, t, self.domain, eps=eps, steps=steps, disjoint=disjoint, fast=fast) def dup_inner_isolate_real_roots(self, f, eps=None, fast=False): return dup_inner_isolate_real_roots(self.to_dense(f), self.domain, eps=eps, fast=fast) def dup_inner_isolate_positive_roots(self, f, eps=None, inf=None, sup=None, fast=False, mobius=False): return dup_inner_isolate_positive_roots(self.to_dense(f), self.domain, eps=eps, inf=inf, sup=sup, fast=fast, mobius=mobius) def dup_inner_isolate_negative_roots(self, f, inf=None, sup=None, eps=None, fast=False, mobius=False): return dup_inner_isolate_negative_roots(self.to_dense(f), self.domain, inf=inf, sup=sup, eps=eps, fast=fast, mobius=mobius) def dup_isolate_real_roots_sqf(self, f, eps=None, inf=None, sup=None, fast=False, blackbox=False): return dup_isolate_real_roots_sqf(self.to_dense(f), self.domain, eps=eps, inf=inf, sup=sup, fast=fast, blackbox=blackbox) def dup_isolate_real_roots(self, f, eps=None, inf=None, sup=None, basis=False, fast=False): return dup_isolate_real_roots(self.to_dense(f), self.domain, eps=eps, inf=inf, sup=sup, basis=basis, fast=fast) def dup_isolate_real_roots_list(self, polys, eps=None, inf=None, sup=None, strict=False, basis=False, fast=False): return dup_isolate_real_roots_list(list(map(self.to_dense, polys)), self.domain, eps=eps, inf=inf, sup=sup, strict=strict, basis=basis, fast=fast) def dup_count_real_roots(self, f, inf=None, sup=None): return dup_count_real_roots(self.to_dense(f), self.domain, inf=inf, sup=sup) def dup_count_complex_roots(self, f, inf=None, sup=None, exclude=None): return dup_count_complex_roots(self.to_dense(f), self.domain, inf=inf, sup=sup, exclude=exclude) def dup_isolate_complex_roots_sqf(self, f, eps=None, inf=None, sup=None, blackbox=False): return dup_isolate_complex_roots_sqf(self.to_dense(f), self.domain, eps=eps, inf=inf, sup=sup, blackbox=blackbox) def dup_isolate_all_roots_sqf(self, f, eps=None, inf=None, sup=None, fast=False, blackbox=False): return dup_isolate_all_roots_sqf(self.to_dense(f), self.domain, eps=eps, inf=inf, sup=sup, fast=fast, blackbox=blackbox) def dup_isolate_all_roots(self, f, eps=None, inf=None, sup=None, fast=False): return dup_isolate_all_roots(self.to_dense(f), self.domain, eps=eps, inf=inf, sup=sup, fast=fast) def fateman_poly_F_1(self): from sympy.polys.specialpolys import dmp_fateman_poly_F_1 return tuple(map(self.from_dense, dmp_fateman_poly_F_1(self.ngens-1, self.domain))) def fateman_poly_F_2(self): from sympy.polys.specialpolys import dmp_fateman_poly_F_2 return tuple(map(self.from_dense, dmp_fateman_poly_F_2(self.ngens-1, self.domain))) def fateman_poly_F_3(self): from sympy.polys.specialpolys import dmp_fateman_poly_F_3 return tuple(map(self.from_dense, dmp_fateman_poly_F_3(self.ngens-1, self.domain))) def to_gf_dense(self, element): return gf_strip([ self.domain.dom.convert(c, self.domain) for c in self.wrap(element).to_dense() ]) def from_gf_dense(self, element): return self.from_dict(dmp_to_dict(element, self.ngens-1, self.domain.dom)) def gf_degree(self, f): return gf_degree(self.to_gf_dense(f)) def gf_LC(self, f): return gf_LC(self.to_gf_dense(f), self.domain.dom) def gf_TC(self, f): return gf_TC(self.to_gf_dense(f), self.domain.dom) def gf_strip(self, f): return self.from_gf_dense(gf_strip(self.to_gf_dense(f))) def gf_trunc(self, f): return self.from_gf_dense(gf_strip(self.to_gf_dense(f), self.domain.mod)) def gf_normal(self, f): return self.from_gf_dense(gf_strip(self.to_gf_dense(f), self.domain.mod, self.domain.dom)) def gf_from_dict(self, f): return self.from_gf_dense(gf_from_dict(f, self.domain.mod, self.domain.dom)) def gf_to_dict(self, f, symmetric=True): return gf_to_dict(self.to_gf_dense(f), self.domain.mod, symmetric=symmetric) def gf_from_int_poly(self, f): return self.from_gf_dense(gf_from_int_poly(f, self.domain.mod)) def gf_to_int_poly(self, f, symmetric=True): return gf_to_int_poly(self.to_gf_dense(f), self.domain.mod, symmetric=symmetric) def gf_neg(self, f): return self.from_gf_dense(gf_neg(self.to_gf_dense(f), self.domain.mod, self.domain.dom)) def gf_add_ground(self, f, a): return self.from_gf_dense(gf_add_ground(self.to_gf_dense(f), a, self.domain.mod, self.domain.dom)) def gf_sub_ground(self, f, a): return self.from_gf_dense(gf_sub_ground(self.to_gf_dense(f), a, self.domain.mod, self.domain.dom)) def gf_mul_ground(self, f, a): return self.from_gf_dense(gf_mul_ground(self.to_gf_dense(f), a, self.domain.mod, self.domain.dom)) def gf_quo_ground(self, f, a): return self.from_gf_dense(gf_quo_ground(self.to_gf_dense(f), a, self.domain.mod, self.domain.dom)) def gf_add(self, f, g): return self.from_gf_dense(gf_add(self.to_gf_dense(f), self.to_gf_dense(g), self.domain.mod, self.domain.dom)) def gf_sub(self, f, g): return self.from_gf_dense(gf_sub(self.to_gf_dense(f), self.to_gf_dense(g), self.domain.mod, self.domain.dom)) def gf_mul(self, f, g): return self.from_gf_dense(gf_mul(self.to_gf_dense(f), self.to_gf_dense(g), self.domain.mod, self.domain.dom)) def gf_sqr(self, f): return self.from_gf_dense(gf_sqr(self.to_gf_dense(f), self.domain.mod, self.domain.dom)) def gf_add_mul(self, f, g, h): return self.from_gf_dense(gf_add_mul(self.to_gf_dense(f), self.to_gf_dense(g), self.to_gf_dense(h), self.domain.mod, self.domain.dom)) def gf_sub_mul(self, f, g, h): return self.from_gf_dense(gf_sub_mul(self.to_gf_dense(f), self.to_gf_dense(g), self.to_gf_dense(h), self.domain.mod, self.domain.dom)) def gf_expand(self, F): return self.from_gf_dense(gf_expand(list(map(self.to_gf_dense, F)), self.domain.mod, self.domain.dom)) def gf_div(self, f, g): q, r = gf_div(self.to_gf_dense(f), self.to_gf_dense(g), self.domain.mod, self.domain.dom) return self.from_gf_dense(q), self.from_gf_dense(r) def gf_rem(self, f, g): return self.from_gf_dense(gf_rem(self.to_gf_dense(f), self.to_gf_dense(g), self.domain.mod, self.domain.dom)) def gf_quo(self, f, g): return self.from_gf_dense(gf_quo(self.to_gf_dense(f), self.to_gf_dense(g), self.domain.mod, self.domain.dom)) def gf_exquo(self, f, g): return self.from_gf_dense(gf_exquo(self.to_gf_dense(f), self.to_gf_dense(g), self.domain.mod, self.domain.dom)) def gf_lshift(self, f, n): return self.from_gf_dense(gf_lshift(self.to_gf_dense(f), n, self.domain.dom)) def gf_rshift(self, f, n): return self.from_gf_dense(gf_rshift(self.to_gf_dense(f), n, self.domain.dom)) def gf_pow(self, f, n): return self.from_gf_dense(gf_pow(self.to_gf_dense(f), n, self.domain.mod, self.domain.dom)) def gf_pow_mod(self, f, n, g): return self.from_gf_dense(gf_pow_mod(self.to_gf_dense(f), n, self.to_gf_dense(g), self.domain.mod, self.domain.dom)) def gf_cofactors(self, f, g): h, cff, cfg = gf_cofactors(self.to_gf_dense(f), self.to_gf_dense(g), self.domain.mod, self.domain.dom) return self.from_gf_dense(h), self.from_gf_dense(cff), self.from_gf_dense(cfg) def gf_gcd(self, f, g): return self.from_gf_dense(gf_gcd(self.to_gf_dense(f), self.to_gf_dense(g), self.domain.mod, self.domain.dom)) def gf_lcm(self, f, g): return self.from_gf_dense(gf_lcm(self.to_gf_dense(f), self.to_gf_dense(g), self.domain.mod, self.domain.dom)) def gf_gcdex(self, f, g): return self.from_gf_dense(gf_gcdex(self.to_gf_dense(f), self.to_gf_dense(g), self.domain.mod, self.domain.dom)) def gf_monic(self, f): return self.from_gf_dense(gf_monic(self.to_gf_dense(f), self.domain.mod, self.domain.dom)) def gf_diff(self, f): return self.from_gf_dense(gf_diff(self.to_gf_dense(f), self.domain.mod, self.domain.dom)) def gf_eval(self, f, a): return gf_eval(self.to_gf_dense(f), a, self.domain.mod, self.domain.dom) def gf_multi_eval(self, f, A): return gf_multi_eval(self.to_gf_dense(f), A, self.domain.mod, self.domain.dom) def gf_compose(self, f, g): return self.from_gf_dense(gf_compose(self.to_gf_dense(f), self.to_gf_dense(g), self.domain.mod, self.domain.dom)) def gf_compose_mod(self, g, h, f): return self.from_gf_dense(gf_compose_mod(self.to_gf_dense(g), self.to_gf_dense(h), self.to_gf_dense(f), self.domain.mod, self.domain.dom)) def gf_trace_map(self, a, b, c, n, f): a = self.to_gf_dense(a) b = self.to_gf_dense(b) c = self.to_gf_dense(c) f = self.to_gf_dense(f) U, V = gf_trace_map(a, b, c, n, f, self.domain.mod, self.domain.dom) return self.from_gf_dense(U), self.from_gf_dense(V) def gf_random(self, n): return self.from_gf_dense(gf_random(n, self.domain.mod, self.domain.dom)) def gf_irreducible(self, n): return self.from_gf_dense(gf_irreducible(n, self.domain.mod, self.domain.dom)) def gf_irred_p_ben_or(self, f): return gf_irred_p_ben_or(self.to_gf_dense(f), self.domain.mod, self.domain.dom) def gf_irred_p_rabin(self, f): return gf_irred_p_rabin(self.to_gf_dense(f), self.domain.mod, self.domain.dom) def gf_irreducible_p(self, f): return gf_irreducible_p(self.to_gf_dense(f), self.domain.mod, self.domain.dom) def gf_sqf_p(self, f): return gf_sqf_p(self.to_gf_dense(f), self.domain.mod, self.domain.dom) def gf_sqf_part(self, f): return self.from_gf_dense(gf_sqf_part(self.to_gf_dense(f), self.domain.mod, self.domain.dom)) def gf_sqf_list(self, f, all=False): coeff, factors = gf_sqf_part(self.to_gf_dense(f), self.domain.mod, self.domain.dom, all=all) return coeff, [ (self.from_gf_dense(g), k) for g, k in factors ] def gf_Qmatrix(self, f): return gf_Qmatrix(self.to_gf_dense(f), self.domain.mod, self.domain.dom) def gf_berlekamp(self, f): factors = gf_berlekamp(self.to_gf_dense(f), self.domain.mod, self.domain.dom) return [ self.from_gf_dense(g) for g in factors ] def gf_ddf_zassenhaus(self, f): factors = gf_ddf_zassenhaus(self.to_gf_dense(f), self.domain.mod, self.domain.dom) return [ (self.from_gf_dense(g), k) for g, k in factors ] def gf_edf_zassenhaus(self, f, n): factors = gf_edf_zassenhaus(self.to_gf_dense(f), self.domain.mod, self.domain.dom) return [ self.from_gf_dense(g) for g in factors ] def gf_ddf_shoup(self, f): factors = gf_ddf_shoup(self.to_gf_dense(f), self.domain.mod, self.domain.dom) return [ (self.from_gf_dense(g), k) for g, k in factors ] def gf_edf_shoup(self, f, n): factors = gf_edf_shoup(self.to_gf_dense(f), self.domain.mod, self.domain.dom) return [ self.from_gf_dense(g) for g in factors ] def gf_zassenhaus(self, f): factors = gf_zassenhaus(self.to_gf_dense(f), self.domain.mod, self.domain.dom) return [ self.from_gf_dense(g) for g in factors ] def gf_shoup(self, f): factors = gf_shoup(self.to_gf_dense(f), self.domain.mod, self.domain.dom) return [ self.from_gf_dense(g) for g in factors ] def gf_factor_sqf(self, f, method=None): coeff, factors = gf_factor_sqf(self.to_gf_dense(f), self.domain.mod, self.domain.dom, method=method) return coeff, [ self.from_gf_dense(g) for g in factors ] def gf_factor(self, f): coeff, factors = gf_factor(self.to_gf_dense(f), self.domain.mod, self.domain.dom) return coeff, [ (self.from_gf_dense(g), k) for g, k in factors ]
{ "pile_set_name": "Github" }
django\_elasticsearch\_dsl\_drf package ======================================= Subpackages ----------- .. toctree:: django_elasticsearch_dsl_drf.fields django_elasticsearch_dsl_drf.filter_backends django_elasticsearch_dsl_drf.tests Submodules ---------- django\_elasticsearch\_dsl\_drf.analyzers module ------------------------------------------------ .. automodule:: django_elasticsearch_dsl_drf.analyzers :members: :undoc-members: :show-inheritance: django\_elasticsearch\_dsl\_drf.apps module ------------------------------------------- .. automodule:: django_elasticsearch_dsl_drf.apps :members: :undoc-members: :show-inheritance: django\_elasticsearch\_dsl\_drf.compat module --------------------------------------------- .. automodule:: django_elasticsearch_dsl_drf.compat :members: :undoc-members: :show-inheritance: django\_elasticsearch\_dsl\_drf.constants module ------------------------------------------------ .. automodule:: django_elasticsearch_dsl_drf.constants :members: :undoc-members: :show-inheritance: django\_elasticsearch\_dsl\_drf.helpers module ---------------------------------------------- .. automodule:: django_elasticsearch_dsl_drf.helpers :members: :undoc-members: :show-inheritance: django\_elasticsearch\_dsl\_drf.pagination module ------------------------------------------------- .. automodule:: django_elasticsearch_dsl_drf.pagination :members: :undoc-members: :show-inheritance: django\_elasticsearch\_dsl\_drf.pip\_helpers module --------------------------------------------------- .. automodule:: django_elasticsearch_dsl_drf.pip_helpers :members: :undoc-members: :show-inheritance: django\_elasticsearch\_dsl\_drf.serializers module -------------------------------------------------- .. automodule:: django_elasticsearch_dsl_drf.serializers :members: :undoc-members: :show-inheritance: django\_elasticsearch\_dsl\_drf.utils module -------------------------------------------- .. automodule:: django_elasticsearch_dsl_drf.utils :members: :undoc-members: :show-inheritance: django\_elasticsearch\_dsl\_drf.versions module ----------------------------------------------- .. automodule:: django_elasticsearch_dsl_drf.versions :members: :undoc-members: :show-inheritance: django\_elasticsearch\_dsl\_drf.viewsets module ----------------------------------------------- .. automodule:: django_elasticsearch_dsl_drf.viewsets :members: :undoc-members: :show-inheritance: django\_elasticsearch\_dsl\_drf.wrappers module ----------------------------------------------- .. automodule:: django_elasticsearch_dsl_drf.wrappers :members: :undoc-members: :show-inheritance: Module contents --------------- .. automodule:: django_elasticsearch_dsl_drf :members: :undoc-members: :show-inheritance:
{ "pile_set_name": "Github" }
/* Generated by Font Squirrel (http://www.fontsquirrel.com) on November 13, 2012 06:55:40 PM America/New_York */ @font-face { font-family: 'OpenSansLight'; src: url('../fonts/OpenSans-Light-webfont.eot'); src: url('../fonts/OpenSans-Light-webfont.eot?#iefix') format('embedded-opentype'), url('../fonts/OpenSans-Light-webfont.woff') format('woff'), url('../fonts/OpenSans-Light-webfont.ttf') format('truetype'), url('../fonts/OpenSans-Light-webfont.svg#OpenSansLight') format('svg'); font-weight: normal; font-style: normal; } @font-face { font-family: 'OpenSansLightItalic'; src: url('../fonts/OpenSans-LightItalic-webfont.eot'); src: url('../fonts/OpenSans-LightItalic-webfont.eot?#iefix') format('embedded-opentype'), url('../fonts/OpenSans-LightItalic-webfont.woff') format('woff'), url('../fonts/OpenSans-LightItalic-webfont.ttf') format('truetype'), url('../fonts/OpenSans-LightItalic-webfont.svg#OpenSansLightItalic') format('svg'); font-weight: normal; font-style: normal; } @font-face { font-family: 'OpenSansRegular'; src: url('../fonts/OpenSans-Regular-webfont.eot'); src: url('../fonts/OpenSans-Regular-webfont.eot?#iefix') format('embedded-opentype'), url('../fonts/OpenSans-Regular-webfont.woff') format('woff'), url('../fonts/OpenSans-Regular-webfont.ttf') format('truetype'), url('../fonts/OpenSans-Regular-webfont.svg#OpenSansRegular') format('svg'); font-weight: normal; font-style: normal; } @font-face { font-family: 'OpenSansItalic'; src: url('../fonts/OpenSans-Italic-webfont.eot'); src: url('../fonts/OpenSans-Italic-webfont.eot?#iefix') format('embedded-opentype'), url('../fonts/OpenSans-Italic-webfont.woff') format('woff'), url('../fonts/OpenSans-Italic-webfont.ttf') format('truetype'), url('../fonts/OpenSans-Italic-webfont.svg#OpenSansItalic') format('svg'); font-weight: normal; font-style: normal; } @font-face { font-family: 'OpenSansSemibold'; src: url('../fonts/OpenSans-Semibold-webfont.eot'); src: url('../fonts/OpenSans-Semibold-webfont.eot?#iefix') format('embedded-opentype'), url('../fonts/OpenSans-Semibold-webfont.woff') format('woff'), url('../fonts/OpenSans-Semibold-webfont.ttf') format('truetype'), url('../fonts/OpenSans-Semibold-webfont.svg#OpenSansSemibold') format('svg'); font-weight: normal; font-style: normal; } @font-face { font-family: 'OpenSansSemiboldItalic'; src: url('../fonts/OpenSans-SemiboldItalic-webfont.eot'); src: url('../fonts/OpenSans-SemiboldItalic-webfont.eot?#iefix') format('embedded-opentype'), url('../fonts/OpenSans-SemiboldItalic-webfont.woff') format('woff'), url('../fonts/OpenSans-SemiboldItalic-webfont.ttf') format('truetype'), url('../fonts/OpenSans-SemiboldItalic-webfont.svg#OpenSansSemiboldItalic') format('svg'); font-weight: normal; font-style: normal; } @font-face { font-family: 'OpenSansBold'; src: url('../fonts/OpenSans-Bold-webfont.eot'); src: url('../fonts/OpenSans-Bold-webfont.eot?#iefix') format('embedded-opentype'), url('../fonts/OpenSans-Bold-webfont.woff') format('woff'), url('../fonts/OpenSans-Bold-webfont.ttf') format('truetype'), url('../fonts/OpenSans-Bold-webfont.svg#OpenSansBold') format('svg'); font-weight: normal; font-style: normal; } @font-face { font-family: 'OpenSansBoldItalic'; src: url('../fonts/OpenSans-BoldItalic-webfont.eot'); src: url('../fonts/OpenSans-BoldItalic-webfont.eot?#iefix') format('embedded-opentype'), url('../fonts/OpenSans-BoldItalic-webfont.woff') format('woff'), url('../fonts/OpenSans-BoldItalic-webfont.ttf') format('truetype'), url('../fonts/OpenSans-BoldItalic-webfont.svg#OpenSansBoldItalic') format('svg'); font-weight: normal; font-style: normal; } @font-face { font-family: 'OpenSansExtrabold'; src: url('../fonts/OpenSans-ExtraBold-webfont.eot'); src: url('../fonts/OpenSans-ExtraBold-webfont.eot?#iefix') format('embedded-opentype'), url('../fonts/OpenSans-ExtraBold-webfont.woff') format('woff'), url('../fonts/OpenSans-ExtraBold-webfont.ttf') format('truetype'), url('../fonts/OpenSans-ExtraBold-webfont.svg#OpenSansExtrabold') format('svg'); font-weight: normal; font-style: normal; } @font-face { font-family: 'OpenSansExtraboldItalic'; src: url('../fonts/OpenSans-ExtraBoldItalic-webfont.eot'); src: url('../fonts/OpenSans-ExtraBoldItalic-webfont.eot?#iefix') format('embedded-opentype'), url('../fonts/OpenSans-ExtraBoldItalic-webfont.woff') format('woff'), url('../fonts/OpenSans-ExtraBoldItalic-webfont.ttf') format('truetype'), url('../fonts/OpenSans-ExtraBoldItalic-webfont.svg#OpenSansExtraboldItalic') format('svg'); font-weight: normal; font-style: normal; }
{ "pile_set_name": "Github" }
package org.geogebra.common.main.exam; import java.util.Date; import org.geogebra.common.factories.FormatFactory; import org.geogebra.common.factories.UtilFactory; import org.geogebra.common.kernel.commands.CmdGetTime; import org.geogebra.common.kernel.commands.CommandDispatcher; import org.geogebra.common.kernel.commands.filter.CommandArgumentFilter; import org.geogebra.common.kernel.commands.filter.ExamCommandFilter; import org.geogebra.common.kernel.commands.selector.CommandFilter; import org.geogebra.common.kernel.commands.selector.CommandFilterFactory; import org.geogebra.common.main.App; import org.geogebra.common.main.Localization; import org.geogebra.common.main.Translation; import org.geogebra.common.main.exam.event.CheatingEvent; import org.geogebra.common.main.exam.event.CheatingEvents; import org.geogebra.common.main.localization.CommandErrorMessageBuilder; import org.geogebra.common.main.settings.CASSettings; import org.geogebra.common.main.settings.Settings; import org.geogebra.common.util.CopyPaste; import org.geogebra.common.util.GTimer; import org.geogebra.common.util.GTimerListener; import org.geogebra.common.util.TimeFormatAdapter; import org.geogebra.common.util.debug.Log; public class ExamEnvironment { private static final long EXAM_START_TIME_NOT_STARTED = -1; /** how long notification for protocol saved is shown */ static public final int EXAM_PROTOCOL_SAVED_NOTIFICATION_DURATION = 5000; /** exam start timestamp (milliseconds) */ private long examStartTime = EXAM_START_TIME_NOT_STARTED; private final CheatingEvents cheatingEvents; private long closed = -1; private boolean hasGraph = false; private TimeFormatAdapter timeFormatter; private CommandArgumentFilter examCommandFilter = new ExamCommandFilter(); private static final CommandFilter noCASFilter = CommandFilterFactory .createNoCasCommandFilter(); /** * application */ protected App app; private Localization localization; private long ignoreBlurUntil = -1; private boolean temporaryBlur; private CommandDispatcher commandDispatcher; private boolean wasCasEnabled; /** * * @param app * application */ public ExamEnvironment(App app) { this.app = app; this.localization = app.getLocalization(); cheatingEvents = new CheatingEvents(); commandDispatcher = app.getKernel().getAlgebraProcessor().getCommandDispatcher(); wasCasEnabled = app.getSettings().getCasSettings().isEnabled(); } /** * @return exam start timestamp */ public long getStart() { return examStartTime; } /** * * @return true if exam is started */ public boolean isStarted() { return examStartTime > 0; } /** * @param time * timestamp in milliseconds */ public void setStart(long time) { examStartTime = time; closed = -1; clearClipboard(); } /** * Start cheating when window left */ public void windowLeft() { if (isStarted()) { cheatingEvents.addWindowLeftEvent(); } } /** * Start cheating when window left, checks if the blur events are * temporarily allowed */ public void checkedWindowLeft() { if (ignoreBlurUntil > System.currentTimeMillis()) { temporaryBlur = true; return; } windowLeft(); } /** * Log end of cheating. */ public void stopCheating() { this.temporaryBlur = false; if (getStart() > 0) { cheatingEvents.addWindowEnteredEvent(); Log.debug("STOPPED CHEATING"); } } /** * @return whether some cheating events occured since exam mode was started */ public boolean isCheating() { return !cheatingEvents.isEmpty(); } /** * @return whether the exam was ended */ public boolean isClosed() { return closed != -1; } /** * @param translation * The translation identifier from the Translation enum. * @return The translation identified by the Translation parameter. */ public String getTranslatedString(Translation translation) { switch (translation) { case EXAM_MODE: return localization.getMenu("exam_menu_entry"); case OK: return localization.getMenu("OK"); case ALERT: return localization.getMenu("exam_alert"); case SHOW_TO_TEACHER: return localization.getMenu("exam_log_show_screen_to_teacher"); case DATE: return localization.getMenu("exam_start_date"); case START_TIME: return localization.getMenu("exam_start_time"); case END_TIME: return localization.getMenu("exam_end_time"); case ACTIVITY: return localization.getMenu("exam_activity"); case EXAM_STARTED: return localization.getMenu("exam_started"); case EXAM_ENDED: return localization.getMenu("exam_ended"); case EXIT: return localization.getMenu("Exit"); case DURATION: return localization.getMenu("Duration"); } return null; } /** * @return The exam date in localized format. */ public String getDate() { // eg "23 October 2015" // don't use \\S for 23rd (not used in eg French) return CmdGetTime.buildLocalizedDate("\\j \\F \\Y", new Date(examStartTime), localization); } /** * @return The exam start time in localized format. */ public String getStartTime() { return getLocalizedTimeOnly(localization, examStartTime); } /** * @return The exam end time in localized format. */ public String getEndTime() { return getLocalizedTimeOnly(localization, closed); } /** * @param withEndTime * Whether the returned log string should contain the elapsed * time as exam end time. * @return The (cheating) activity log. */ public String getActivityLog(boolean withEndTime) { if (cheatingEvents.isEmpty()) { return ""; } ExamLogBuilder logBuilder = new ExamLogBuilder(); appendLogTimes(localization, logBuilder, withEndTime); return logBuilder.toString().trim(); } private static String getLocalizedTimeOnly(Localization loc, long time) { // eg "14:08:48" return CmdGetTime.buildLocalizedDate("\\H:\\i:\\s", new Date(time), loc); } private static String getLocalizedDateOnly(Localization loc, long time) { // eg "Fri 23 October 2015" // don't use \\S for 23rd (not used in eg French) return CmdGetTime.buildLocalizedDate("\\D, \\j \\F \\Y", new Date(time), loc); } /** * @param loc * localization * @param settings * settings * @param builder * log builder */ private void appendSettings(Localization loc, Settings settings, ExamLogBuilder builder) { // Deactivated Views boolean supportsCAS = settings.getCasSettings().isEnabled(); boolean supports3D = settings.supports3D(); if (!hasGraph) { StringBuilder sb = new StringBuilder(); if (!supportsCAS || !supports3D) { sb.append(loc.getMenu("exam_views_deactivated")); sb.append(": "); } if (!supportsCAS) { sb.append(loc.getMenu("Perspective.CAS")); } if (!supportsCAS && !supports3D) { sb.append(", "); } if (!supports3D) { sb.append(loc.getMenu("Perspective.3DGraphics")); } builder.addLine(sb); } } private void appendStartEnd(Localization loc, ExamLogBuilder builder, boolean showEndTime) { // Exam Start Date builder.addField(loc.getMenu("exam_start_date"), getLocalizedDateOnly(loc, examStartTime)); // Exam Start Time builder.addField(loc.getMenu("exam_start_time"), getLocalizedTimeOnly(loc, examStartTime)); // Exam End Time if (showEndTime && closed > 0) { builder.addField(loc.getMenu("exam_end_time"), getLocalizedTimeOnly(loc, closed)); } } /** * * @return elapsed time */ public String getElapsedTime() { return timeToString(System.currentTimeMillis()); } /** * @param loc * localization * @param builder * log builder * @param withEndTime * true if add end timestamp */ public void appendLogTimes(Localization loc, ExamLogBuilder builder, boolean withEndTime) { // Log times StringBuilder sb = new StringBuilder(); sb.append("0:00"); sb.append(' '); sb.append(loc.getMenu("exam_started")); builder.addLine(sb); for (CheatingEvent cheatingEvent : cheatingEvents.getEvents()) { sb.setLength(0); sb.append(timeToString(cheatingEvent.getTime())); sb.append(' '); sb.append(cheatingEvent.getAction().toString(loc)); builder.addLine(sb); } if (withEndTime && closed > 0) { sb.setLength(0); sb.append(timeToString(closed)); // get exit timestamp sb.append(' '); sb.append(loc.getMenu("exam_ended")); builder.addLine(sb); } } /** * NEW LOG DIALOG * * @param loc * localization * @param settings * settings * @return log text */ public String getLog(Localization loc, Settings settings) { ExamLogBuilder sb = new ExamLogBuilder(); getLog(loc, settings, sb); return sb.toString(); } /** * @param loc * localization * @param settings * settings * @param sb * log builder */ public void getLog(Localization loc, Settings settings, ExamLogBuilder sb) { if (!app.isUnbundled()) { appendSettings(loc, settings, sb); } appendStartEnd(loc, sb, true); sb.addField(loc.getMenu("exam_activity"), ""); appendLogTimes(loc, sb, true); } /** * @param loc * localization * @return exam start and end */ public String getLogStartEnd(Localization loc) { return getLogStartEnd(loc, true); } /** * @param loc * localization * @param showEndTime * whether to include end time * @return log with start and end of the exam */ private String getLogStartEnd(Localization loc, boolean showEndTime) { ExamLogBuilder sb = new ExamLogBuilder(); appendStartEnd(loc, sb, showEndTime); return sb.toString(); } /** * @param loc * localization * @return log times with description separated by newline */ public String getLogTimes(Localization loc) { return getLogTimes(loc, true); } /** * @param loc * localization * @param showEndTime * whether to show end time * @return log times with description separated by newline */ private String getLogTimes(Localization loc, boolean showEndTime) { ExamLogBuilder sb = new ExamLogBuilder(); appendLogTimes(loc, sb, showEndTime); return sb.toString(); } public void setHasGraph(boolean hasGraph) { this.hasGraph = hasGraph; } /** * @param timestamp * relative timestamp * @return MM:SS */ public String timeToString(long timestamp) { if (examStartTime < 0) { return "0:00"; } int secs = (int) ((timestamp - examStartTime) / 1000); int mins = secs / 60; secs -= mins * 60; String secsS = secs + ""; if (secs < 10) { secsS = "0" + secsS; } return mins + ":" + secsS; } /** * store end time */ public void storeEndTime() { this.closed = System.currentTimeMillis(); } /** * Store end time */ public void exit() { storeEndTime(); restoreCommands(); clearClipboard(); } private void clearClipboard() { CopyPaste copyPaste = app.getCopyPaste(); if (copyPaste != null) { copyPaste.clearClipboard(); } app.copyTextToSystemClipboard(""); } /** * close exam mode and reset CAS etc. * */ public void closeExam() { examStartTime = EXAM_START_TIME_NOT_STARTED; disableExamCommandFilter(); setShowSyntax(true); app.fileNew(); } private void setShowSyntax(boolean showSyntax) { CommandErrorMessageBuilder builder = localization .getCommandErrorMessageBuilder(); builder.setShowingSyntax(showSyntax); } /** * @return calculator name for status bar */ public String getCalculatorNameForStatusBar() { return localization.getMenu(app.getConfig().getAppNameShort()); } /** * @return calculator name for exam log header */ public String getCalculatorNameForHeader() { return localization.getMenu(app.getConfig().getAppNameShort()); } /** * Run this when unlocked task detected; notifies about cheating */ public void taskUnlocked() { if (getStart() > 0) { cheatingEvents.addScreenUnlockedEvent(); Log.debug("STARTED CHEATING: task unlocked"); } } /** * If task was previously unlocked, add cheating end to the log */ public void taskLocked() { if (getStart() > 0) { cheatingEvents.addScreenLockedEvent(); Log.debug("STOPPED CHEATING: task locked"); } } /** * Add airplane mode cheating event */ public void airplaneModeTurnedOff() { if (getStart() > 0) { cheatingEvents.addAirplaneModeDisabledEvent(); } } /** * Add airrplane mode stop-cheating event */ public void airplaneModeTurnedOn() { if (getStart() > 0) { cheatingEvents.addAirplaneModeEnabledEvent(); } } /** * Add Wifi cheating event */ public void wifiEnabled() { if (getStart() > 0) { cheatingEvents.addWifiEnabledEvent(); } } /** * Add Wifi stop-cheating event */ public void wifiDisabled() { if (getStart() > 0) { cheatingEvents.addWifiDisabledEvent(); } } /** * Add Bluetooth cheating event */ public void bluetoothEnabled() { if (getStart() > 0) { cheatingEvents.addBluetoothEnabledEvent(); } } /** * Add Bluetooth stop-cheating event */ public void bluetoothDisabled() { if (getStart() > 0) { cheatingEvents.addBluetoothDisabledEvent(); } } /** * * @return the localized elapsed time string */ public String getElapsedTimeLocalized() { return timeToStringLocalized(System.currentTimeMillis()); } /** * * @param timestamp * current timestamp in millis * @return the localized formatted time string */ private String timeToStringLocalized(long timestamp) { if (timeFormatter == null) { timeFormatter = FormatFactory.getPrototype().getTimeFormat(); } if (examStartTime < 0) { return timeFormatter.format(localization.getLocale(), "%02d:%02d", 0); } int millis = (int) (timestamp - examStartTime); return timeFormatter.format(localization.getLocale(), "%02d:%02d", millis); } /** * @return number of cheating events */ public int getEventCount() { return cheatingEvents.size(); } /** * Saves the current command filter into the nonExamCommandFilter field and * sets the exam command filter for the duration of the exam mode. */ private void enableExamCommandFilter() { commandDispatcher.addCommandArgumentFilter(examCommandFilter); } /** * Prepares the exam for starting. */ public void setupExamEnvironment() { enableExamCommandFilter(); setShowSyntax(false); } private void restoreCommands() { if (wasCasEnabled) { enableCAS(); } else { disableCAS(); } } /** * Disables the exam command filter by setting the nonExamCommandFilter to * the CommandDispatcher */ private void disableExamCommandFilter() { commandDispatcher.removeCommandArgumentFilter(examCommandFilter); } /** * @param ignoreBlurFor * expiration timestamp of blur free pass */ public void setIgnoreBlurInterval(int ignoreBlurFor) { this.ignoreBlurUntil = System.currentTimeMillis() + ignoreBlurFor; GTimer timer = UtilFactory.getPrototype() .newTimer(new GTimerListener() { @Override public void onRun() { onBlurTimer(); } }, ignoreBlurFor); timer.start(); } /** * Handler for blur timer */ private void onBlurTimer() { if (temporaryBlur) { windowLeft(); } } /** * Enables/disables CAS commands. * * @param casEnabled * whether CAS is enabled */ public void setCasEnabled(boolean casEnabled) { if (casEnabled) { enableCAS(); } else { disableCAS(); } } private void enableCAS() { getCasSettings().setEnabled(true); commandDispatcher.removeCommandFilter(noCASFilter); } private void disableCAS() { getCasSettings().setEnabled(false); commandDispatcher.addCommandFilter(noCASFilter); } private CASSettings getCasSettings() { return app.getSettings().getCasSettings(); } }
{ "pile_set_name": "Github" }
RT_DRV_DIR := rt5392 RT_DRV_PATH := ../$(RT_DRV_DIR) RT_DRV_NAME := rt5392_ap obj-$(CONFIG_RT5392_AP) += $(RT_DRV_NAME).o $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/common/crypt_md5.o $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/common/crypt_sha2.o $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/common/crypt_hmac.o $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/common/crypt_aes.o $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/common/crypt_arc4.o $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/common/mlme.o $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/common/cmm_wep.o $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/common/action.o $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/common/ba_action.o $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/common/cmm_data.o $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/common/rtmp_init.o $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/common/rtmp_init_inf.o $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/common/cmm_tkip.o $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/common/cmm_aes.o $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/common/cmm_sync.o $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/common/cmm_sanity.o $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/common/cmm_info.o $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/common/cmm_cfg.o $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/common/cmm_wpa.o $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/common/spectrum.o $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/common/rtmp_timer.o $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/common/rt_channel.o $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/common/cmm_profile.o $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/common/cmm_asic.o $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/common/cmm_cmd.o $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/common/rtmp_mcu.o $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/common/cmm_mac_pci.o $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/common/cmm_data_pci.o $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/common/rt_os_util.o $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/common/ps.o $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/common/uapsd.o $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/common/ee_prom.o $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/common/ee_efuse.o $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/common/ee_flash.o $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/common/eeprom.o $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/common/rt_rf.o $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/rate_ctrl/ra_ctrl.o $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/rate_ctrl/alg_legacy.o $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/ap/ap.o $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/ap/ap_assoc.o $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/ap/ap_auth.o $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/ap/ap_connect.o $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/ap/ap_mlme.o $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/ap/ap_sanity.o $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/ap/ap_sync.o $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/ap/ap_wpa.o $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/ap/ap_data.o $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/ap/ap_autoChSel.o $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/ap/ap_qload.o $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/ap/ap_cfg.o $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/os/linux/rt_proc.o $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/os/linux/rt_main_dev.o $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/os/linux/rt_pci_rbus.o $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/os/linux/rt_profile.o $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/os/linux/rt_linux.o $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/os/linux/rt_rbus_pci_util.o $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/os/linux/rt_rbus_pci_drv.o $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/os/linux/ap_ioctl.o $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/os/linux/pci_main_dev.o ### RT5392 $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/chips/rtmp_chip.o $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/chips/rt3090.o $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/chips/rt30xx.o $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/chips/rt3390.o $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/chips/rt33xx.o $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/chips/rt5390.o ifeq ($(CONFIG_RT_ATE),y) $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/ate/chips/rt30xx_ate.o $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/ate/chips/rt33xx_ate.o $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/ate/chips/rt5390_ate.o endif ifeq ($(CONFIG_RT_ATE),y) $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/ate/common/rt_ate.o $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/ate/common/ate_pci.o ifeq ($(CONFIG_RT_QA),y) $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/ate/common/rt_qa.o endif endif ifeq ($(CONFIG_RT5392_AP_LED),y) $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/common/rt_led.o endif ifeq ($(CONFIG_RT5392_AP_WDS),y) $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/ap/ap_wds.o $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/ap/ap_wds_inf.o $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/common/client_wds.o endif ifeq ($(CONFIG_RT5392_AP_MBSS),y) $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/ap/ap_mbss.o $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/ap/ap_mbss_inf.o endif ifeq ($(CONFIG_RT5392_AP_APCLI),y) $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/ap/ap_apcli.o $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/ap/ap_apcli_inf.o $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/ap/apcli_assoc.o $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/ap/apcli_auth.o $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/ap/apcli_ctrl.o $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/ap/apcli_sync.o $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/common/cmm_mat.o $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/common/cmm_mat_iparp.o $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/common/cmm_mat_pppoe.o $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/common/cmm_mat_ipv6.o endif ifeq ($(CONFIG_RT5392_AP_DLS),y) $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/ap/ap_dls.o endif ifeq ($(CONFIG_RT5392_AP_IDS),y) $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/ap/ap_ids.o endif ifeq ($(CONFIG_RT5392_AP_CARRIER),y) $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/common/cmm_cs.o endif ifeq ($(CONFIG_RT_WSC),y) $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/common/wsc.o $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/common/wsc_tlv.o $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/common/crypt_dh.o $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/common/wsc_ufd.o $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/common/crypt_biginteger.o ifeq ($(CONFIG_RT_WSC_V2),y) $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/common/wsc_v2.o endif endif ifeq ($(CONFIG_RT_WAPI),y) $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/common/wapi.o endif ifeq ($(CONFIG_RT_IGMP_SNOOP),y) $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/common/igmp_snoop.o endif ifeq ($(CONFIG_RT_NETIF_BLOCK),y) $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/common/netif_block.o endif ifeq ($(CONFIG_RT_BAND_STEERING),y) $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/ap/ap_band_steering.o endif ifeq ($(CONFIG_RT_VIDEO_TURBINE),y) $(RT_DRV_NAME)-objs += $(RT_DRV_PATH)/common/cmm_video.o endif ################### # CFLAGS ################### EXTRA_CFLAGS = -Wall -Wstrict-prototypes -Wno-trigraphs EXTRA_CFLAGS += -Idrivers/net/wireless/ralink/$(RT_DRV_DIR)/include ifeq ($(CONFIG_RT_ATE),y) EXTRA_CFLAGS += -Idrivers/net/wireless/ralink/$(RT_DRV_DIR)/ate/include endif EXTRA_CFLAGS += -DAGGREGATION_SUPPORT -DPIGGYBACK_SUPPORT -DWMM_SUPPORT -DLINUX EXTRA_CFLAGS += -DCONFIG_AP_SUPPORT -DAP_SCAN_SUPPORT -DUAPSD_SUPPORT -DDOT11_N_SUPPORT -DDOT1X_SUPPORT EXTRA_CFLAGS += -DRTMP_MAC_PCI -DRTMP_PCI_SUPPORT -DRTMP_RF_RW_SUPPORT EXTRA_CFLAGS += -DSTATS_COUNT_SUPPORT -DENHANCED_STAT_DISPLAY EXTRA_CFLAGS += -DRSSI_FEEDBACK EXTRA_CFLAGS += -DRESOURCE_PRE_ALLOC ifeq ($(CONFIG_RT_FIRST_CARD),2860) EXTRA_CFLAGS += -DRT_SOC_SUPPORT endif ifeq ($(CONFIG_RT_FIRST_CARD),5392) EXTRA_CFLAGS += -DRT_IFNAME_1ST ifeq ($(CONFIG_RT_FIRST_CARD_EEPROM),"efuse") EXTRA_CFLAGS += -DRTMP_EFUSE_SUPPORT else EXTRA_CFLAGS += -DRTMP_FLASH_SUPPORT endif else ifeq ($(CONFIG_RT_SECOND_CARD_EEPROM),"efuse") EXTRA_CFLAGS += -DRTMP_EFUSE_SUPPORT else EXTRA_CFLAGS += -DRTMP_FLASH_SUPPORT endif endif ifeq ($(CONFIG_RT_READ_MAC_FROM_MTD),y) EXTRA_CFLAGS += -DREAD_MAC_FROM_EEPROM endif # do not lock CountryRegion from EEPROM EXTRA_CFLAGS += -DEEPROM_COUNTRY_UNLOCK # provide information on the current STA population and traffic levels in the QBSS #EXTRA_CFLAGS += -DAP_QLOAD_SUPPORT -DQLOAD_FUNC_BUSY_TIME_STATS ifneq ($(CONFIG_RA_HW_NAT_WIFI),y) EXTRA_CFLAGS += -DCONFIG_RA_NAT_NONE endif ifeq ($(CONFIG_RA_NETWORK_WORKQUEUE_BH),y) EXTRA_CFLAGS += -DWORKQUEUE_BH endif ### RT5392 EXTRA_CFLAGS += -DRT30xx -DRT3090 -DRT33xx -DRT3390 -DRT53xx -DRT5390 EXTRA_CFLAGS += -DVCORECAL_SUPPORT EXTRA_CFLAGS += -DRTMP_INTERNAL_TX_ALC EXTRA_CFLAGS += -DRTMP_FREQ_CALIBRATION_SUPPORT EXTRA_CFLAGS += -DIQ_CAL_SUPPORT EXTRA_CFLAGS += -DRTMP_TEMPERATURE_COMPENSATION EXTRA_CFLAGS += -DTX_STA_FIFO_EXT_SUPPORT #EXTRA_CFLAGS += -DSPECIFIC_BCN_BUF_SUPPORT #EXTRA_CFLAGS += -DEXT_BUILD_CHANNEL_LIST ifeq ($(CONFIG_RT_DEBUG),y) EXTRA_CFLAGS += -DDBG EXTRA_CFLAGS += -DSYSTEM_LOG_SUPPORT endif ifeq ($(CONFIG_RT_ATE),y) EXTRA_CFLAGS += -DRALINK_ATE -DCONFIG_RT2880_ATE_CMD_NEW ifeq ($(CONFIG_RT_QA),y) EXTRA_CFLAGS += -DRALINK_QA endif endif ifeq ($(CONFIG_RT5392_AP_DLS),y) EXTRA_CFLAGS += -DQOS_DLS_SUPPORT endif ifeq ($(CONFIG_RT5392_AP_IDS),y) EXTRA_CFLAGS += -DIDS_SUPPORT endif ifeq ($(CONFIG_RT5392_AP_WAPI),y) EXTRA_CFLAGS += -DWAPI_SUPPORT -DEXPORT_SYMTAB endif ifeq ($(CONFIG_RT5392_AP_GREENAP),y) EXTRA_CFLAGS += -DGREENAP_SUPPORT endif ifeq ($(CONFIG_RT5392_AP_LED),y) EXTRA_CFLAGS += -DLED_CONTROL_SUPPORT ifeq ($(CONFIG_RT_WSC),y) EXTRA_CFLAGS += -DWSC_LED_SUPPORT endif endif ifeq ($(CONFIG_RT5392_AP_LLTD),y) EXTRA_CFLAGS += -DLLTD_SUPPORT endif ifeq ($(CONFIG_RT5392_AP_WDS),y) EXTRA_CFLAGS += -DWDS_SUPPORT endif ifeq ($(CONFIG_RT5392_AP_MBSS),y) EXTRA_CFLAGS += -DMBSS_SUPPORT ifeq ($(CONFIG_RT5392_AP_MBSS_NEW_MBSSID_MODE),y) EXTRA_CFLAGS += -DNEW_MBSSID_MODE endif endif ifeq ($(CONFIG_RT5392_AP_APCLI),y) EXTRA_CFLAGS += -DAPCLI_SUPPORT -DMAT_SUPPORT EXTRA_CFLAGS += -DAPCLI_AUTO_CONNECT_SUPPORT endif ifeq ($(CONFIG_RT_WSC),y) EXTRA_CFLAGS += -DWSC_AP_SUPPORT ifeq ($(CONFIG_RT_WSC_V2),y) EXTRA_CFLAGS += -DWSC_V2_SUPPORT endif endif ifeq ($(CONFIG_RT_80211N_DRAFT3),y) EXTRA_CFLAGS += -DDOT11N_DRAFT3 endif ifeq ($(CONFIG_RT_IGMP_SNOOP),y) EXTRA_CFLAGS += -DIGMP_SNOOP_SUPPORT endif ifeq ($(CONFIG_RT_MCAST_RATE_SPECIFIC),y) EXTRA_CFLAGS += -DMCAST_RATE_SPECIFIC endif ifeq ($(CONFIG_RT_NETIF_BLOCK),y) EXTRA_CFLAGS += -DBLOCK_NET_IF endif ifeq ($(CONFIG_RT_VIDEO_TURBINE),y) EXTRA_CFLAGS += -DVIDEO_TURBINE_SUPPORT endif ifeq ($(CONFIG_RT_BAND_STEERING),y) EXTRA_CFLAGS += -DBAND_STEERING endif ifeq ($(CONFIG_RT_SINGLE_SKU),y) EXTRA_CFLAGS += -DSINGLE_SKU endif ifeq ($(CONFIG_RT_SNMP),y) EXTRA_CFLAGS += -DSNMP_SUPPORT endif ifeq ($(CONFIG_RT_MC_SUPPORT),y) EXTRA_CFLAGS += -DMULTIPLE_CARD_SUPPORT endif
{ "pile_set_name": "Github" }
using System; namespace ACE.Entity.Enum { [Flags] public enum ObjectDescriptionFlag { None = 0x00000000, Openable = 0x00000001, Inscribable = 0x00000002, Stuck = 0x00000004, Player = 0x00000008, Attackable = 0x00000010, PlayerKiller = 0x00000020, HiddenAdmin = 0x00000040, UiHidden = 0x00000080, Book = 0x00000100, Vendor = 0x00000200, PkSwitch = 0x00000400, NpkSwitch = 0x00000800, Door = 0x00001000, Corpse = 0x00002000, LifeStone = 0x00004000, Food = 0x00008000, Healer = 0x00010000, Lockpick = 0x00020000, Portal = 0x00040000, Admin = 0x00100000, FreePkStatus = 0x00200000, ImmuneCellRestrictions = 0x00400000, RequiresPackSlot = 0x00800000, Retained = 0x01000000, PkLiteStatus = 0x02000000, IncludesSecondHeader = 0x04000000, BindStone = 0x08000000, VolatileRare = 0x10000000, WieldOnUse = 0x20000000, WieldLeft = 0x40000000, } }
{ "pile_set_name": "Github" }
div.pp_default .pp_top,div.pp_default .pp_top .pp_middle,div.pp_default .pp_top .pp_left,div.pp_default .pp_top .pp_right,div.pp_default .pp_bottom,div.pp_default .pp_bottom .pp_left,div.pp_default .pp_bottom .pp_middle,div.pp_default .pp_bottom .pp_right{height:13px} div.pp_default .pp_top .pp_left{background:url(../images/prettyPhoto/default/sprite.png) -78px -93px no-repeat} div.pp_default .pp_top .pp_middle{background:url(../images/prettyPhoto/default/sprite_x.png) top left repeat-x} div.pp_default .pp_top .pp_right{background:url(../images/prettyPhoto/default/sprite.png) -112px -93px no-repeat} div.pp_default .pp_content .ppt{color:#f8f8f8} div.pp_default .pp_content_container .pp_left{background:url(../images/prettyPhoto/default/sprite_y.png) -7px 0 repeat-y;padding-left:13px} div.pp_default .pp_content_container .pp_right{background:url(../images/prettyPhoto/default/sprite_y.png) top right repeat-y;padding-right:13px} div.pp_default .pp_next:hover{background:url(../images/prettyPhoto/default/sprite_next.png) center right no-repeat;cursor:pointer} div.pp_default .pp_previous:hover{background:url(../images/prettyPhoto/default/sprite_prev.png) center left no-repeat;cursor:pointer} div.pp_default .pp_expand{background:url(../images/prettyPhoto/default/sprite.png) 0 -29px no-repeat;cursor:pointer;width:28px;height:28px} div.pp_default .pp_expand:hover{background:url(../images/prettyPhoto/default/sprite.png) 0 -56px no-repeat;cursor:pointer} div.pp_default .pp_contract{background:url(../images/prettyPhoto/default/sprite.png) 0 -84px no-repeat;cursor:pointer;width:28px;height:28px} div.pp_default .pp_contract:hover{background:url(../images/prettyPhoto/default/sprite.png) 0 -113px no-repeat;cursor:pointer} div.pp_default .pp_close{width:30px;height:30px;background:url(../images/prettyPhoto/default/sprite.png) 2px 1px no-repeat;cursor:pointer} div.pp_default .pp_gallery ul li a{background:url(../images/prettyPhoto/default/default_thumb.png) center center #f8f8f8;border:1px solid #aaa} div.pp_default .pp_social{margin-top:7px} div.pp_default .pp_gallery a.pp_arrow_previous,div.pp_default .pp_gallery a.pp_arrow_next{position:static;left:auto} div.pp_default .pp_nav .pp_play,div.pp_default .pp_nav .pp_pause{background:url(../images/prettyPhoto/default/sprite.png) -51px 1px no-repeat;height:30px;width:30px} div.pp_default .pp_nav .pp_pause{background-position:-51px -29px} div.pp_default a.pp_arrow_previous,div.pp_default a.pp_arrow_next{background:url(../images/prettyPhoto/default/sprite.png) -31px -3px no-repeat;height:20px;width:20px;margin:4px 0 0} div.pp_default a.pp_arrow_next{left:52px;background-position:-82px -3px} div.pp_default .pp_content_container .pp_details{margin-top:5px} div.pp_default .pp_nav{clear:none;height:30px;width:110px;position:relative} div.pp_default .pp_nav .currentTextHolder{font-family:Georgia;font-style:italic;color:#999;font-size:11px;left:75px;line-height:25px;position:absolute;top:2px;margin:0;padding:0 0 0 10px} div.pp_default .pp_close:hover,div.pp_default .pp_nav .pp_play:hover,div.pp_default .pp_nav .pp_pause:hover,div.pp_default .pp_arrow_next:hover,div.pp_default .pp_arrow_previous:hover{opacity:0.7} div.pp_default .pp_description{font-size:11px;font-weight:700;line-height:14px;margin:5px 50px 5px 0} div.pp_default .pp_bottom .pp_left{background:url(../images/prettyPhoto/default/sprite.png) -78px -127px no-repeat} div.pp_default .pp_bottom .pp_middle{background:url(../images/prettyPhoto/default/sprite_x.png) bottom left repeat-x} div.pp_default .pp_bottom .pp_right{background:url(../images/prettyPhoto/default/sprite.png) -112px -127px no-repeat} div.pp_default .pp_loaderIcon{background:url(../images/prettyPhoto/default/loader.gif) center center no-repeat} div.light_rounded .pp_top .pp_left{background:url(../images/prettyPhoto/light_rounded/sprite.png) -88px -53px no-repeat} div.light_rounded .pp_top .pp_right{background:url(../images/prettyPhoto/light_rounded/sprite.png) -110px -53px no-repeat} div.light_rounded .pp_next:hover{background:url(../images/prettyPhoto/light_rounded/btnNext.png) center right no-repeat;cursor:pointer} div.light_rounded .pp_previous:hover{background:url(../images/prettyPhoto/light_rounded/btnPrevious.png) center left no-repeat;cursor:pointer} div.light_rounded .pp_expand{background:url(../images/prettyPhoto/light_rounded/sprite.png) -31px -26px no-repeat;cursor:pointer} div.light_rounded .pp_expand:hover{background:url(../images/prettyPhoto/light_rounded/sprite.png) -31px -47px no-repeat;cursor:pointer} div.light_rounded .pp_contract{background:url(../images/prettyPhoto/light_rounded/sprite.png) 0 -26px no-repeat;cursor:pointer} div.light_rounded .pp_contract:hover{background:url(../images/prettyPhoto/light_rounded/sprite.png) 0 -47px no-repeat;cursor:pointer} div.light_rounded .pp_close{width:75px;height:22px;background:url(../images/prettyPhoto/light_rounded/sprite.png) -1px -1px no-repeat;cursor:pointer} div.light_rounded .pp_nav .pp_play{background:url(../images/prettyPhoto/light_rounded/sprite.png) -1px -100px no-repeat;height:15px;width:14px} div.light_rounded .pp_nav .pp_pause{background:url(../images/prettyPhoto/light_rounded/sprite.png) -24px -100px no-repeat;height:15px;width:14px} div.light_rounded .pp_arrow_previous{background:url(../images/prettyPhoto/light_rounded/sprite.png) 0 -71px no-repeat} div.light_rounded .pp_arrow_next{background:url(../images/prettyPhoto/light_rounded/sprite.png) -22px -71px no-repeat} div.light_rounded .pp_bottom .pp_left{background:url(../images/prettyPhoto/light_rounded/sprite.png) -88px -80px no-repeat} div.light_rounded .pp_bottom .pp_right{background:url(../images/prettyPhoto/light_rounded/sprite.png) -110px -80px no-repeat} div.dark_rounded .pp_top .pp_left{background:url(../images/prettyPhoto/dark_rounded/sprite.png) -88px -53px no-repeat} div.dark_rounded .pp_top .pp_right{background:url(../images/prettyPhoto/dark_rounded/sprite.png) -110px -53px no-repeat} div.dark_rounded .pp_content_container .pp_left{background:url(../images/prettyPhoto/dark_rounded/contentPattern.png) top left repeat-y} div.dark_rounded .pp_content_container .pp_right{background:url(../images/prettyPhoto/dark_rounded/contentPattern.png) top right repeat-y} div.dark_rounded .pp_next:hover{background:url(../images/prettyPhoto/dark_rounded/btnNext.png) center right no-repeat;cursor:pointer} div.dark_rounded .pp_previous:hover{background:url(../images/prettyPhoto/dark_rounded/btnPrevious.png) center left no-repeat;cursor:pointer} div.dark_rounded .pp_expand{background:url(../images/prettyPhoto/dark_rounded/sprite.png) -31px -26px no-repeat;cursor:pointer} div.dark_rounded .pp_expand:hover{background:url(../images/prettyPhoto/dark_rounded/sprite.png) -31px -47px no-repeat;cursor:pointer} div.dark_rounded .pp_contract{background:url(../images/prettyPhoto/dark_rounded/sprite.png) 0 -26px no-repeat;cursor:pointer} div.dark_rounded .pp_contract:hover{background:url(../images/prettyPhoto/dark_rounded/sprite.png) 0 -47px no-repeat;cursor:pointer} div.dark_rounded .pp_close{width:75px;height:22px;background:url(../images/prettyPhoto/dark_rounded/sprite.png) -1px -1px no-repeat;cursor:pointer} div.dark_rounded .pp_description{margin-right:85px;color:#fff} div.dark_rounded .pp_nav .pp_play{background:url(../images/prettyPhoto/dark_rounded/sprite.png) -1px -100px no-repeat;height:15px;width:14px} div.dark_rounded .pp_nav .pp_pause{background:url(../images/prettyPhoto/dark_rounded/sprite.png) -24px -100px no-repeat;height:15px;width:14px} div.dark_rounded .pp_arrow_previous{background:url(../images/prettyPhoto/dark_rounded/sprite.png) 0 -71px no-repeat} div.dark_rounded .pp_arrow_next{background:url(../images/prettyPhoto/dark_rounded/sprite.png) -22px -71px no-repeat} div.dark_rounded .pp_bottom .pp_left{background:url(../images/prettyPhoto/dark_rounded/sprite.png) -88px -80px no-repeat} div.dark_rounded .pp_bottom .pp_right{background:url(../images/prettyPhoto/dark_rounded/sprite.png) -110px -80px no-repeat} div.dark_rounded .pp_loaderIcon{background:url(../images/prettyPhoto/dark_rounded/loader.gif) center center no-repeat} div.dark_square .pp_left,div.dark_square .pp_middle,div.dark_square .pp_right,div.dark_square .pp_content{background:#000} div.dark_square .pp_description{color:#fff;margin:0 85px 0 0} div.dark_square .pp_loaderIcon{background:url(../images/prettyPhoto/dark_square/loader.gif) center center no-repeat} div.dark_square .pp_expand{background:url(../images/prettyPhoto/dark_square/sprite.png) -31px -26px no-repeat;cursor:pointer} div.dark_square .pp_expand:hover{background:url(../images/prettyPhoto/dark_square/sprite.png) -31px -47px no-repeat;cursor:pointer} div.dark_square .pp_contract{background:url(../images/prettyPhoto/dark_square/sprite.png) 0 -26px no-repeat;cursor:pointer} div.dark_square .pp_contract:hover{background:url(../images/prettyPhoto/dark_square/sprite.png) 0 -47px no-repeat;cursor:pointer} div.dark_square .pp_close{width:75px;height:22px;background:url(../images/prettyPhoto/dark_square/sprite.png) -1px -1px no-repeat;cursor:pointer} div.dark_square .pp_nav{clear:none} div.dark_square .pp_nav .pp_play{background:url(../images/prettyPhoto/dark_square/sprite.png) -1px -100px no-repeat;height:15px;width:14px} div.dark_square .pp_nav .pp_pause{background:url(../images/prettyPhoto/dark_square/sprite.png) -24px -100px no-repeat;height:15px;width:14px} div.dark_square .pp_arrow_previous{background:url(../images/prettyPhoto/dark_square/sprite.png) 0 -71px no-repeat} div.dark_square .pp_arrow_next{background:url(../images/prettyPhoto/dark_square/sprite.png) -22px -71px no-repeat} div.dark_square .pp_next:hover{background:url(../images/prettyPhoto/dark_square/btnNext.png) center right no-repeat;cursor:pointer} div.dark_square .pp_previous:hover{background:url(../images/prettyPhoto/dark_square/btnPrevious.png) center left no-repeat;cursor:pointer} div.light_square .pp_expand{background:url(../images/prettyPhoto/light_square/sprite.png) -31px -26px no-repeat;cursor:pointer} div.light_square .pp_expand:hover{background:url(../images/prettyPhoto/light_square/sprite.png) -31px -47px no-repeat;cursor:pointer} div.light_square .pp_contract{background:url(../images/prettyPhoto/light_square/sprite.png) 0 -26px no-repeat;cursor:pointer} div.light_square .pp_contract:hover{background:url(../images/prettyPhoto/light_square/sprite.png) 0 -47px no-repeat;cursor:pointer} div.light_square .pp_close{width:75px;height:22px;background:url(../images/prettyPhoto/light_square/sprite.png) -1px -1px no-repeat;cursor:pointer} div.light_square .pp_nav .pp_play{background:url(../images/prettyPhoto/light_square/sprite.png) -1px -100px no-repeat;height:15px;width:14px} div.light_square .pp_nav .pp_pause{background:url(../images/prettyPhoto/light_square/sprite.png) -24px -100px no-repeat;height:15px;width:14px} div.light_square .pp_arrow_previous{background:url(../images/prettyPhoto/light_square/sprite.png) 0 -71px no-repeat} div.light_square .pp_arrow_next{background:url(../images/prettyPhoto/light_square/sprite.png) -22px -71px no-repeat} div.light_square .pp_next:hover{background:url(../images/prettyPhoto/light_square/btnNext.png) center right no-repeat;cursor:pointer} div.light_square .pp_previous:hover{background:url(../images/prettyPhoto/light_square/btnPrevious.png) center left no-repeat;cursor:pointer} div.facebook .pp_top .pp_left{background:url(../images/prettyPhoto/facebook/sprite.png) -88px -53px no-repeat} div.facebook .pp_top .pp_middle{background:url(../images/prettyPhoto/facebook/contentPatternTop.png) top left repeat-x} div.facebook .pp_top .pp_right{background:url(../images/prettyPhoto/facebook/sprite.png) -110px -53px no-repeat} div.facebook .pp_content_container .pp_left{background:url(../images/prettyPhoto/facebook/contentPatternLeft.png) top left repeat-y} div.facebook .pp_content_container .pp_right{background:url(../images/prettyPhoto/facebook/contentPatternRight.png) top right repeat-y} div.facebook .pp_expand{background:url(../images/prettyPhoto/facebook/sprite.png) -31px -26px no-repeat;cursor:pointer} div.facebook .pp_expand:hover{background:url(../images/prettyPhoto/facebook/sprite.png) -31px -47px no-repeat;cursor:pointer} div.facebook .pp_contract{background:url(../images/prettyPhoto/facebook/sprite.png) 0 -26px no-repeat;cursor:pointer} div.facebook .pp_contract:hover{background:url(../images/prettyPhoto/facebook/sprite.png) 0 -47px no-repeat;cursor:pointer} div.facebook .pp_close{width:22px;height:22px;background:url(../images/prettyPhoto/facebook/sprite.png) -1px -1px no-repeat;cursor:pointer} div.facebook .pp_description{margin:0 37px 0 0} div.facebook .pp_loaderIcon{background:url(../images/prettyPhoto/facebook/loader.gif) center center no-repeat} div.facebook .pp_arrow_previous{background:url(../images/prettyPhoto/facebook/sprite.png) 0 -71px no-repeat;height:22px;margin-top:0;width:22px} div.facebook .pp_arrow_previous.disabled{background-position:0 -96px;cursor:default} div.facebook .pp_arrow_next{background:url(../images/prettyPhoto/facebook/sprite.png) -32px -71px no-repeat;height:22px;margin-top:0;width:22px} div.facebook .pp_arrow_next.disabled{background-position:-32px -96px;cursor:default} div.facebook .pp_nav{margin-top:0} div.facebook .pp_nav p{font-size:15px;padding:0 3px 0 4px} div.facebook .pp_nav .pp_play{background:url(../images/prettyPhoto/facebook/sprite.png) -1px -123px no-repeat;height:22px;width:22px} div.facebook .pp_nav .pp_pause{background:url(../images/prettyPhoto/facebook/sprite.png) -32px -123px no-repeat;height:22px;width:22px} div.facebook .pp_next:hover{background:url(../images/prettyPhoto/facebook/btnNext.png) center right no-repeat;cursor:pointer} div.facebook .pp_previous:hover{background:url(../images/prettyPhoto/facebook/btnPrevious.png) center left no-repeat;cursor:pointer} div.facebook .pp_bottom .pp_left{background:url(../images/prettyPhoto/facebook/sprite.png) -88px -80px no-repeat} div.facebook .pp_bottom .pp_middle{background:url(../images/prettyPhoto/facebook/contentPatternBottom.png) top left repeat-x} div.facebook .pp_bottom .pp_right{background:url(../images/prettyPhoto/facebook/sprite.png) -110px -80px no-repeat} div.pp_pic_holder a:focus{outline:none} div.pp_overlay{background:#000;display:none;left:0;position:absolute;top:0;width:100%;z-index:9500} div.pp_pic_holder{display:none;position:absolute;width:100px;z-index:10000} .pp_content{height:40px;min-width:40px} * html .pp_content{width:40px} .pp_content_container{position:relative;text-align:left;width:100%} .pp_content_container .pp_left{padding-left:20px} .pp_content_container .pp_right{padding-right:20px} .pp_content_container .pp_details{float:left;margin:10px 0 2px} .pp_description{display:none;margin:0} .pp_social{float:left;margin:0} .pp_social .facebook{float:left;margin-left:5px;width:55px;overflow:hidden} .pp_social .twitter{float:left} .pp_nav{clear:right;float:left;margin:3px 10px 0 0} .pp_nav p{float:left;white-space:nowrap;margin:2px 4px} .pp_nav .pp_play,.pp_nav .pp_pause{float:left;margin-right:4px;text-indent:-10000px} a.pp_arrow_previous,a.pp_arrow_next{display:block;float:left;height:15px;margin-top:3px;overflow:hidden;text-indent:-10000px;width:14px} .pp_hoverContainer{position:absolute;top:0;width:100%;z-index:2000} .pp_gallery{display:none;left:50%;margin-top:-50px;position:absolute;z-index:10000} .pp_gallery div{float:left;overflow:hidden;position:relative} .pp_gallery ul{float:left;height:35px;position:relative;white-space:nowrap;margin:0 0 0 5px;padding:0} .pp_gallery ul a{border:1px rgba(0,0,0,0.5) solid;display:block;float:left;height:33px;overflow:hidden} .pp_gallery ul a img{border:0} .pp_gallery li{display:block;float:left;margin:0 5px 0 0;padding:0} .pp_gallery li.default a{background:url(../images/prettyPhoto/facebook/default_thumbnail.gif) 0 0 no-repeat;display:block;height:33px;width:50px} .pp_gallery .pp_arrow_previous,.pp_gallery .pp_arrow_next{margin-top:7px!important} a.pp_next{background:url(../images/prettyPhoto/light_rounded/btnNext.png) 10000px 10000px no-repeat;display:block;float:right;height:100%;text-indent:-10000px;width:49%} a.pp_previous{background:url(../images/prettyPhoto/light_rounded/btnNext.png) 10000px 10000px no-repeat;display:block;float:left;height:100%;text-indent:-10000px;width:49%} a.pp_expand,a.pp_contract{cursor:pointer;display:none;height:20px;position:absolute;right:30px;text-indent:-10000px;top:10px;width:20px;z-index:20000} a.pp_close{position:absolute;right:0;top:0;display:block;line-height:22px;text-indent:-10000px} .pp_loaderIcon{display:block;height:24px;left:50%;position:absolute;top:50%;width:24px;margin:-12px 0 0 -12px} #pp_full_res{line-height:1!important} #pp_full_res .pp_inline{text-align:left} #pp_full_res .pp_inline p{margin:0 0 15px} div.ppt{color:#fff;display:none;font-size:17px;z-index:9999;margin:0 0 5px 15px} div.pp_default .pp_content,div.light_rounded .pp_content{background-color:#fff} div.pp_default #pp_full_res .pp_inline,div.light_rounded .pp_content .ppt,div.light_rounded #pp_full_res .pp_inline,div.light_square .pp_content .ppt,div.light_square #pp_full_res .pp_inline,div.facebook .pp_content .ppt,div.facebook #pp_full_res .pp_inline{color:#000} div.pp_default .pp_gallery ul li a:hover,div.pp_default .pp_gallery ul li.selected a,.pp_gallery ul a:hover,.pp_gallery li.selected a{border-color:#fff} div.pp_default .pp_details,div.light_rounded .pp_details,div.dark_rounded .pp_details,div.dark_square .pp_details,div.light_square .pp_details,div.facebook .pp_details{position:relative} div.light_rounded .pp_top .pp_middle,div.light_rounded .pp_content_container .pp_left,div.light_rounded .pp_content_container .pp_right,div.light_rounded .pp_bottom .pp_middle,div.light_square .pp_left,div.light_square .pp_middle,div.light_square .pp_right,div.light_square .pp_content,div.facebook .pp_content{background:#fff} div.light_rounded .pp_description,div.light_square .pp_description{margin-right:85px} div.light_rounded .pp_gallery a.pp_arrow_previous,div.light_rounded .pp_gallery a.pp_arrow_next,div.dark_rounded .pp_gallery a.pp_arrow_previous,div.dark_rounded .pp_gallery a.pp_arrow_next,div.dark_square .pp_gallery a.pp_arrow_previous,div.dark_square .pp_gallery a.pp_arrow_next,div.light_square .pp_gallery a.pp_arrow_previous,div.light_square .pp_gallery a.pp_arrow_next{margin-top:12px!important} div.light_rounded .pp_arrow_previous.disabled,div.dark_rounded .pp_arrow_previous.disabled,div.dark_square .pp_arrow_previous.disabled,div.light_square .pp_arrow_previous.disabled{background-position:0 -87px;cursor:default} div.light_rounded .pp_arrow_next.disabled,div.dark_rounded .pp_arrow_next.disabled,div.dark_square .pp_arrow_next.disabled,div.light_square .pp_arrow_next.disabled{background-position:-22px -87px;cursor:default} div.light_rounded .pp_loaderIcon,div.light_square .pp_loaderIcon{background:url(../images/prettyPhoto/light_rounded/loader.gif) center center no-repeat} div.dark_rounded .pp_top .pp_middle,div.dark_rounded .pp_content,div.dark_rounded .pp_bottom .pp_middle{background:url(../images/prettyPhoto/dark_rounded/contentPattern.png) top left repeat} div.dark_rounded .currentTextHolder,div.dark_square .currentTextHolder{color:#c4c4c4} div.dark_rounded #pp_full_res .pp_inline,div.dark_square #pp_full_res .pp_inline{color:#fff} .pp_top,.pp_bottom{height:20px;position:relative} * html .pp_top,* html .pp_bottom{padding:0 20px} .pp_top .pp_left,.pp_bottom .pp_left{height:20px;left:0;position:absolute;width:20px} .pp_top .pp_middle,.pp_bottom .pp_middle{height:20px;left:20px;position:absolute;right:20px} * html .pp_top .pp_middle,* html .pp_bottom .pp_middle{left:0;position:static} .pp_top .pp_right,.pp_bottom .pp_right{height:20px;left:auto;position:absolute;right:0;top:0;width:20px} .pp_fade,.pp_gallery li.default a img{display:none}
{ "pile_set_name": "Github" }
import dsz import dsz.menu import os import re import xml.dom.minidom import tasking MaximumTasks = 'MaximumTasks' HostName = 'HostName' Domain = 'Domain' IpAddress = 'IpAddress' Mac = 'Mac' PcId = 'PcId' Guid = 'Guid' SuccessfulMatch = 0 QuestionableMatch = 1 NoMatch = 2 class Tasking(object, ): def __init__(self, name, metadata): self.bRan = False self.name = name self.id = list() self.mac = list() self.ip = list() self.hostname = list() self.domain = list() self.guid = list() self.tasks = list() self.runningTasks = list() self.Recommendation = None f = open(metadata, 'r') try: for line in f: line = line.strip() m = re.match('Implant ID: +(.*)', line) if m: self.id += [x.strip() for x in m.group(1).split(', ')] m = re.match('MAC: +(.*)', line) if m: self.mac += [unicode(x.strip(), 'utf_8') for x in m.group(1).split(', ')] m = re.match('IP: +(.*)', line) if m: self.ip += [unicode(x.strip(), 'utf_8') for x in m.group(1).split(', ')] m = re.match('Hostname: +(.*)', line) if m: self.hostname += [unicode(x.strip(), 'utf_8') for x in m.group(1).split(', ')] m = re.match('Domain: +(.*)', line) if m: self.domain += [unicode(x.strip(), 'utf_8') for x in m.group(1).split(', ')] finally: f.close() temp = list() for ip in self.ip: while ('%%' in ip): ip = ip.replace('%%', '%') temp.append(ip) self.ip = temp pass def Dump(self): dsz.ui.Echo('---------------------------------------------') dsz.ui.Echo(('Tasking for %s' % self.name)) for id in self.id: dsz.ui.Echo(('ID: %s' % id)) for mac in self.mac: dsz.ui.Echo(('MAC: %s' % mac)) for ip in self.ip: dsz.ui.Echo(('IP: %s' % ip)) dsz.ui.Echo(('Host:%s' % self.hostname)) dsz.ui.Echo(('Dom: %s' % self.domain)) for task in self.tasks: task.Display() dsz.ui.Echo('---------------------------------------------') def EvaluateThisTarget(self, info, bDisplay=False): self.PcMatch = compareData('PC Ids', set([long(x, 16) for x in self.id]), set([long(x, 16) for x in info[PcId]]), '0x%016x', align='', bDisplay=bDisplay) self.MacMatch = compareData('Mac', set([x.upper() for x in self.mac]), set([x.upper() for x in info[Mac]]), bDisplay=bDisplay) self.IpMatch = compareData('Ip Addresses', set([x.upper() for x in self.ip]), set([x.upper() for x in info[IpAddress]]), bDisplay=bDisplay) self.HostNameMatch = compareData('HostName', set([x.upper() for x in self.hostname]), set([x.upper() for x in info[HostName]]), bDisplay=bDisplay) self.DomainMatch = compareData('Domain', set([x.upper() for x in self.domain]), set([x.upper() for x in info[Domain]]), bDisplay=bDisplay) self.GuidMatch = compareData('GUID', set([x.upper() for x in self.guid]), set([x.upper() for x in info[Guid]]), bDisplay=bDisplay) self.Recommendation = makeRecommendation(self.PcMatch, self.MacMatch, self.IpMatch, self.HostNameMatch, self.DomainMatch, self.GuidMatch, self, info) def DisplayMatchAndConsiderStart(self, info, bAutomated, bForce=False): dsz.ui.Echo(printLine('-', 80)) dsz.ui.Echo(printHeader('Tasking Match Information', 80)) dsz.ui.Echo(printLine('-', 80)) if ((self.Recommendation == None) or bForce): self.EvaluateThisTarget(info, bDisplay=True) resultList = [displayResult('PC Id', self.PcMatch, 'Definately Match', 'Suspicious match', 'No Match'), displayResult('MAC', self.MacMatch, 'Match', 'Match', 'No Match', PartialType=dsz.GOOD), displayResult('IP', self.IpMatch, 'Match', 'Match', 'No Match', PartialType=dsz.GOOD), displayResult('HostName', self.HostNameMatch, 'Match', 'Suspicious match', 'No Match'), displayResult('Domain', self.DomainMatch, 'Match', 'Suspicious match', 'No Match'), displayResult('Guid', self.GuidMatch, 'Match', 'Match', 'No Match', PartialType=dsz.GOOD), displayResult('Recommendation', self.Recommendation, 'Go ahead', 'Consider carefully', 'Skip')] space = max([len(x[0]) for x in resultList]) for result in resultList: format = ('%%%ds : %%s' % space) dsz.ui.Echo((format % (result[0], result[1])), result[2]) if bAutomated: if (self.Recommendation == SuccessfulMatch): return True if (self.Recommendation == NoMatch): return False if (self.Recommendation == SuccessfulMatch): defaultAnswer = True else: defaultAnswer = False return dsz.ui.Prompt('Do you want to proceed with this tasking?', defaultAnswer) def DoTasking(self): self.bRan = True delayed = list() for task in sorted(self.tasks, key=(lambda task: int(task.Priority))): dsz.ui.Echo(('Preprocessing for %s task' % task.name)) task.Preprocessing() dsz.ui.Echo(' DONE', dsz.GOOD) if task.IsSkip(): continue if task.IsVerify(): if (not queryExecuteTask(delayed, task)): continue self.StartCommand(task) self.AreAnyCommandsRunning() if (len(delayed) > 0): dsz.ui.Echo(('You delayed execution of %d tasks.' % len(delayed))) if dsz.ui.Prompt('Do you want to try to run them now?'): self.tasks = delayed self.DoTasking() def StartCommand(self, task): cmds = task.CreateCommandLine() cmdData = list() for cmd in cmds: self.CanStartCommand() dsz.ui.Echo(('Starting task: %s' % cmd)) if dsz.cmd.Run(('task=%s background %s' % (task.TaskID, cmd))): dsz.ui.Echo(' STARTED', dsz.GOOD) self.runningTasks.append(dsz.cmd.LastId()) cmdData.append((cmd, dsz.cmd.LastId())) else: dsz.ui.Echo(' FAILED (Unable to create tasking!)', dsz.ERROR) RecordTask(task, cmdData) def CanStartCommand(self): while (self._currentNumberOfRunningCommands() >= dsz.script.Env[tasking.MaximumTasks]): delay = 5 dsz.ui.Echo(('No room to start commands. Sleeping for %d seconds.' % delay)) dsz.Sleep((delay * 1000)) dsz.ui.Echo(' SLEPT', dsz.GOOD) return True def AreAnyCommandsRunning(self): while (self._currentNumberOfRunningCommands() > 0): delay = 5 dsz.ui.Echo(('Waiting for the completion of running tasks. Sleeping for %d seconds.' % delay)) dsz.Sleep((delay * 1000)) dsz.ui.Echo(' SLEPT', dsz.GOOD) return True def _currentNumberOfRunningCommands(self): count = 0 dsz.ui.Echo('Counting running tasks') for t in self.runningTasks: if (not dsz.cmd.data.Get('CommandMetaData::IsRunning', dsz.TYPE_BOOL, t)[0]): self.runningTasks.remove(t) else: count = (count + 1) dsz.ui.Echo((' %d tasks running' % count), dsz.WARNING) return count def __str__(self): match = 'Uncertain Match' if (self.Recommendation == SuccessfulMatch): match = 'Probable Match' elif (self.Recommendation == NoMatch): match = 'Not A Match' state = '' if self.bRan: state = '(Already Ran)' return ('%s: %s %s' % (self.name, match, state)) def RecordTask(task, cmdData): resultsDir = ('%s/TaskResults' % dsz.script.Env['log_path']) try: os.mkdir(resultsDir) except: pass outputFile = ('%s/%s_%s_%s.xml' % (resultsDir, task.Priority, task.name, dsz.Timestamp())) doc = xml.dom.minidom.Document() results = doc.createElement('TaskResults') doc.appendChild(results) results.setAttribute('taskID', task.TaskID) results.setAttribute('targetID', task.TargetID) commands = doc.createElement('Commands') results.appendChild(commands) commands.setAttribute('tool', 'DSZ') for (cmd, id) in cmdData: command = doc.createElement('Command') commands.appendChild(command) type = doc.createElement('Type') command.appendChild(type) type.appendChild(doc.createTextNode(cmd)) location = doc.createElement('DSZPayloadLocation') command.appendChild(location) location.appendChild(doc.createTextNode(dsz.cmd.data.Get('CommandMetaData::XmlLog', dsz.TYPE_STRING, id)[0])) taskId = doc.createElement('TaskId') command.appendChild(taskId) taskId.appendChild(doc.createTextNode(dsz.cmd.data.Get('CommandMetaData::TaskId', dsz.TYPE_STRING, id)[0])) output = open(outputFile, 'w') try: output.write(doc.toprettyxml(indent=' ')) finally: output.close() def queryExecuteTask(delayedQueue, task): task.Display() (text, selected) = dsz.menu.ExecuteSimpleMenu('Do you wish to execute this task?', ['Yes, execute the task', 'No, but ask me again after doing other tasks', 'No, do not execute the task at all']) if (selected == (-1)): exit((-1)) elif (selected == 0): return True elif (selected == 1): delayedQueue.append(task) return False def makeRecommendation(PcMatch, MacMatch, IpMatch, HostNameMatch, DomainMatch, GuidMatch, TaskingInfo, HostInfo): if (PcMatch == SuccessfulMatch): return SuccessfulMatch if ((PcMatch == NoMatch) and (len(HostInfo[PcId]) > 0) and len(TaskingInfo.id)): return NoMatch if (MacMatch in [SuccessfulMatch, QuestionableMatch]): return SuccessfulMatch if (GuidMatch in [SuccessfulMatch, QuestionableMatch]): return SuccessfulMatch if (IpMatch == SuccessfulMatch): return SuccessfulMatch if ((HostNameMatch == SuccessfulMatch) and (DomainMatch == SuccessfulMatch)): return SuccessfulMatch if ((PcMatch == QuestionableMatch) or (IpMatch == QuestionableMatch) or (HostNameMatch == QuestionableMatch) or (DomainMatch == QuestionableMatch)): return QuestionableMatch return NoMatch def displayResult(name, result, Full, Partial, NoMatch, FullType=dsz.GOOD, PartialType=dsz.WARNING, NoMatchType=dsz.ERROR): if (result == SuccessfulMatch): return (name, Full, FullType) elif (result == QuestionableMatch): return (name, Partial, PartialType) else: return (name, NoMatch, NoMatchType) def compareData(name, tasking, local, format='%s', align='-', bDisplay=False): matches = (tasking & local) task = list((tasking - matches)) loc = list((local - matches)) if bDisplay: maxSize = max(15, max([len((format % x)) for x in ((tasking | local) | set([0]))])) lineFormat = ('%%%s%ds %%%s%ds' % (align, maxSize, align, maxSize)) dsz.ui.Echo(printHeader(name, ((2 * maxSize) + 4)), dsz.WARNING) dsz.ui.Echo((lineFormat % (printHeader('Tasking', maxSize), printHeader('Target', maxSize))), dsz.WARNING) dsz.ui.Echo(printLine('-', ((2 * maxSize) + 4))) matches = (tasking & local) for item in matches: dsz.ui.Echo((lineFormat % ((format % item), (format % item))), dsz.GOOD) task = list((tasking - matches)) loc = list((local - matches)) for i in range(0, max(len(task), len(loc))): left = '' right = '' if (i < len(task)): left = (format % task[i]) if (i < len(loc)): right = (format % loc[i]) dsz.ui.Echo((lineFormat % (left, right))) dsz.ui.Echo('') if ((len(matches) > 0) and (len(loc) > 0)): return QuestionableMatch elif (len(matches) > 0): return SuccessfulMatch else: return NoMatch def printHeader(string, size): while (len(string) < (size - 1)): string = (' %s ' % string) return string def printLine(ch, size): str = '' for i in range(0, size): str = ('%s%s' % (str, ch)) return str
{ "pile_set_name": "Github" }
if ($.fn.pagination){ $.fn.pagination.defaults.beforePageText = 'Seite'; $.fn.pagination.defaults.afterPageText = 'von {pages}'; $.fn.pagination.defaults.displayMsg = '{from} bis {to} von {total} Datensätzen'; } if ($.fn.datagrid){ $.fn.datagrid.defaults.loadMsg = 'Verarbeitung läuft, bitte warten ...'; } if ($.fn.treegrid && $.fn.datagrid){ $.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg; } if ($.messager){ $.messager.defaults.ok = 'OK'; $.messager.defaults.cancel = 'Abbruch'; } if ($.fn.validatebox){ $.fn.validatebox.defaults.missingMessage = 'Dieses Feld wird benötigt.'; $.fn.validatebox.defaults.rules.email.message = 'Bitte geben Sie eine gültige E-Mail-Adresse ein.'; $.fn.validatebox.defaults.rules.url.message = 'Bitte geben Sie eine gültige URL ein.'; $.fn.validatebox.defaults.rules.length.message = 'Bitte geben Sie einen Wert zwischen {0} und {1} ein.'; } if ($.fn.numberbox){ $.fn.numberbox.defaults.missingMessage = 'Dieses Feld wird benötigt.'; } if ($.fn.combobox){ $.fn.combobox.defaults.missingMessage = 'Dieses Feld wird benötigt.'; } if ($.fn.combotree){ $.fn.combotree.defaults.missingMessage = 'Dieses Feld wird benötigt.'; } if ($.fn.combogrid){ $.fn.combogrid.defaults.missingMessage = 'Dieses Feld wird benötigt.'; } if ($.fn.calendar){ $.fn.calendar.defaults.firstDay = 1; $.fn.calendar.defaults.weeks = ['S','M','D','M','D','F','S']; $.fn.calendar.defaults.months = ['Jan', 'Feb', 'Mär', 'Apr', 'Mai', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dez']; } if ($.fn.datebox){ $.fn.datebox.defaults.currentText = 'Heute'; $.fn.datebox.defaults.closeText = 'Schließen'; $.fn.datebox.defaults.okText = 'OK'; $.fn.datebox.defaults.missingMessage = 'Dieses Feld wird benötigt.'; $.fn.datebox.defaults.formatter = function(date){ var y = date.getFullYear(); var m = date.getMonth()+1; var d = date.getDate(); return (d<10?('0'+d):d)+'.'+(m<10?('0'+m):m)+'.'+y; }; $.fn.datebox.defaults.parser = function(s){ if (!s) return new Date(); var ss = s.split('.'); var m = parseInt(ss[1],10); var d = parseInt(ss[0],10); var y = parseInt(ss[2],10); if (!isNaN(y) && !isNaN(m) && !isNaN(d)){ return new Date(y,m-1,d); } else { return new Date(); } }; } if ($.fn.datetimebox && $.fn.datebox){ $.extend($.fn.datetimebox.defaults,{ currentText: $.fn.datebox.defaults.currentText, closeText: $.fn.datebox.defaults.closeText, okText: $.fn.datebox.defaults.okText, missingMessage: $.fn.datebox.defaults.missingMessage }); }
{ "pile_set_name": "Github" }
using BulletSharp; using SharpDX; using SharpDX.D3DCompiler; using SharpDX.Direct3D; using SharpDX.Direct3D11; using SharpDX.DXGI; using SharpDX.Windows; using System; using System.Collections.Generic; using System.Drawing; using System.Globalization; using System.Reflection; using System.Runtime.InteropServices; using System.Windows.Forms; using Buffer = SharpDX.Direct3D11.Buffer; using Device = SharpDX.Direct3D11.Device; using Point = System.Drawing.Point; namespace DemoFramework { public class Demo : IDisposable { bool shadowsEnabled = true; bool depthOfFieldEnabled = false; bool deferredLightingEnabled = true; public Form Form { get; } Device _device; public Device Device { get { return _device; } } DeviceContext _immediateContext; OutputMergerStage outputMerger; InputAssemblerStage inputAssembler; SwapChain _swapChain; public float AspectRatio { get { return (float)Width / (float)Height; } } Texture2D gBufferLight; Texture2D gBufferNormal; Texture2D gBufferDiffuse; Texture2D gBufferPostProcess; Texture2D gBufferPostProcessBlur1; Texture2D gBufferPostProcessBlur2; Texture2D depthTexture; Texture2D lightDepthTexture; //int shadowMapWidth = 2048, shadowMapHeight = 2048; EffectShaderResourceVariable lightBufferVar; EffectShaderResourceVariable normalBufferVar; EffectShaderResourceVariable diffuseBufferVar; EffectShaderResourceVariable depthMapVar; EffectShaderResourceVariable shadowLightDepthBufferVar; EffectVectorVariable sunLightDirectionVar; EffectMatrixVariable overlayViewProjectionVar; EffectScalarVariable viewportWidthVar; EffectScalarVariable viewportHeightVar; EffectVectorVariable viewParametersVar; RenderTargetView renderView; DepthStencilView depthView; DepthStencilView lightDepthView; RenderTargetView gBufferNormalView; RenderTargetView gBufferDiffuseView; RenderTargetView gBufferLightView; RenderTargetView gBufferPostProcessView; RenderTargetView gBufferPostProcessViewBlur1; RenderTargetView gBufferPostProcessViewBlur2; RenderTargetView[] gBufferViews; DepthStencilState depthState; DepthStencilState insideLightVolumeDepthState; DepthStencilState outsideLightVolumeDepthState; DepthStencilState lightDepthStencilState; Effect effect; EffectPass shadowGenPass; EffectPass gBufferGenPass; EffectPass gBufferRenderPass; EffectPass gBufferPostProcessPass; EffectPass gBufferPostProcessPass2; EffectPass gBufferOverlayPass; EffectPass debugDrawPass; public EffectPass GetEffectPass() { return gBufferGenPass; } ShaderResourceView depthBufferRes; ShaderResourceView lightDepthRes; ShaderResourceView lightBufferRes; ShaderResourceView normalBufferRes; ShaderResourceView diffuseBufferRes; ShaderResourceView postProcessBufferRes; ShaderResourceView postProcessBufferBlur1Res; ShaderResourceView postProcessBufferBlur2Res; // Light accumulation shader Effect lightShader; EffectPass lightAccumulationPass; EffectShaderResourceVariable lightNormalBufferVar; EffectShaderResourceVariable lightDepthBufferVar; EffectVectorVariable lightViewParametersVar; EffectMatrixVariable lightWorldVar; EffectVectorVariable lightPositionRadiusVar; EffectVectorVariable lightColorVar; EffectMatrixVariable lightProjectionVar; EffectMatrixVariable lightViewVar; EffectMatrixVariable lightViewInverseVar; EffectScalarVariable lightViewportWidthVar; EffectScalarVariable lightViewportHeightVar; EffectVectorVariable lightEyePositionVar; protected int Width { get; set; } protected int Height { get; set; } protected float NearPlane { get; set; } protected float FarPlane { get; set; } protected float FieldOfView { get; set; } ShaderSceneConstants sceneConstants; Buffer sceneConstantsBuffer; BlendState alphaBlendState; BlendState additiveBlendState; RasterizerState backCullState; RasterizerState frontCullState; RasterizerState noCullState; Vector3 sunLightDirection = -Vector3.Normalize(new Vector3(-20, 15, -20)); Vector3 pointLightPosition = new Vector3(20, 25, 20); List<Light> lights = new List<Light>(); InputLayout lightVolumeInputLayout; Vector3[] pointLightVolumeVertices; uint[] pointLightVolumeIndices; Buffer pointLightVolumeVertexBuffer; Buffer pointLightVolumeIndexBuffer; VertexBufferBinding pointLightVolumeVertexBufferBinding; // Info text protected InfoText Info { get; set; } CultureInfo culture = CultureInfo.InvariantCulture; string _demoText = ""; protected string DemoText { get { return _demoText; } set { _demoText = value; SetInfoText(); } } MeshFactory _meshFactory; protected Input Input { get; private set; } protected FreeLook Freelook { get; set; } // Frame counting Clock clock = new Clock(); float frameAccumulator; int _interpolatedSteps; public float FrameDelta { get; private set; } public float FramesPerSecond { get; private set; } public PhysicsContext PhysicsContext { get; set; } protected BoxShape shootBoxShape; protected float shootBoxInitialSpeed = 40; RigidBody pickedBody; protected TypedConstraint pickConstraint; float oldPickingDist; // Debug drawing DebugDrawModes _debugDrawMode = DebugDrawModes.DrawWireframe; IDebugDraw _debugDrawer; bool isCullingEnabled = true; public bool CullingEnabled { get { return isCullingEnabled; } set { if (isCullingEnabled != value && _immediateContext != null) { _immediateContext.Rasterizer.State = value ? backCullState : noCullState; isCullingEnabled = value; } } } [StructLayout(LayoutKind.Sequential)] struct ShaderSceneConstants { public Matrix View; public Matrix Projection; public Matrix ViewInverse; public Matrix LightViewProjection; } public Demo() { Form = new RenderForm(); } void DisposeBuffers() { if (renderView != null) renderView.Dispose(); if (gBufferLightView != null) gBufferLightView.Dispose(); if (gBufferNormalView != null) gBufferNormalView.Dispose(); if (gBufferDiffuseView != null) gBufferDiffuseView.Dispose(); if (gBufferPostProcessView != null) gBufferPostProcessView.Dispose(); if (depthOfFieldEnabled) { if (gBufferPostProcessViewBlur1 != null) gBufferPostProcessViewBlur1.Dispose(); if (gBufferPostProcessViewBlur2 != null) gBufferPostProcessViewBlur2.Dispose(); } if (gBufferLight != null) gBufferLight.Dispose(); if (gBufferNormal != null) gBufferNormal.Dispose(); if (gBufferDiffuse != null) gBufferDiffuse.Dispose(); if (gBufferPostProcess != null) gBufferPostProcess.Dispose(); if (gBufferPostProcessBlur1 != null) gBufferPostProcessBlur1.Dispose(); if (gBufferPostProcessBlur2 != null) gBufferPostProcessBlur2.Dispose(); if (depthTexture != null) depthTexture.Dispose(); if (lightDepthTexture != null) lightDepthTexture.Dispose(); if (lightBufferRes != null) lightBufferRes.Dispose(); if (normalBufferRes != null) normalBufferRes.Dispose(); if (diffuseBufferRes != null) diffuseBufferRes.Dispose(); if (depthBufferRes != null) depthBufferRes.Dispose(); if (lightDepthRes != null) lightDepthRes.Dispose(); } protected void OnInitializeDevice() { Form.ClientSize = new Size(Width, Height); // SwapChain description var desc = new SwapChainDescription() { BufferCount = 1, ModeDescription = new ModeDescription(Width, Height, new Rational(60, 1), Format.R8G8B8A8_UNorm), IsWindowed = true, OutputHandle = Form.Handle, SampleDescription = new SampleDescription(1, 0), SwapEffect = SwapEffect.Discard, Usage = Usage.RenderTargetOutput, }; // Create Device and SwapChain SharpDX.Direct3D11.Device.CreateWithSwapChain(DriverType.Hardware, DeviceCreationFlags.None, desc, out _device, out _swapChain); _immediateContext = _device.ImmediateContext; outputMerger = _immediateContext.OutputMerger; inputAssembler = _immediateContext.InputAssembler; Factory factory = _swapChain.GetParent<Factory>(); factory.MakeWindowAssociation(Form.Handle, WindowAssociationFlags.None); var blendStateDesc = new BlendStateDescription(); blendStateDesc.RenderTarget[0].IsBlendEnabled = true; blendStateDesc.RenderTarget[0].SourceBlend = BlendOption.SourceAlpha; blendStateDesc.RenderTarget[0].DestinationBlend = BlendOption.InverseSourceAlpha; blendStateDesc.RenderTarget[0].BlendOperation = BlendOperation.Add; blendStateDesc.RenderTarget[0].SourceAlphaBlend = BlendOption.One; blendStateDesc.RenderTarget[0].DestinationAlphaBlend = BlendOption.Zero; blendStateDesc.RenderTarget[0].AlphaBlendOperation = BlendOperation.Add; blendStateDesc.RenderTarget[0].RenderTargetWriteMask = ColorWriteMaskFlags.All; alphaBlendState = new BlendState(_device, blendStateDesc); blendStateDesc.RenderTarget[0].IsBlendEnabled = true; blendStateDesc.RenderTarget[0].SourceBlend = BlendOption.One; blendStateDesc.RenderTarget[0].DestinationBlend = BlendOption.One; blendStateDesc.RenderTarget[0].BlendOperation = BlendOperation.Add; blendStateDesc.RenderTarget[0].SourceAlphaBlend = BlendOption.One; blendStateDesc.RenderTarget[0].DestinationAlphaBlend = BlendOption.Zero; blendStateDesc.RenderTarget[0].AlphaBlendOperation = BlendOperation.Add; blendStateDesc.RenderTarget[0].RenderTargetWriteMask = ColorWriteMaskFlags.All; additiveBlendState = new BlendState(_device, blendStateDesc); } void CreateBuffers() { DisposeBuffers(); // New RenderTargetView from the backbuffer using (var bb = Texture2D.FromSwapChain<Texture2D>(_swapChain, 0)) { renderView = new RenderTargetView(_device, bb); } Texture2DDescription gBufferDesc = new Texture2DDescription() { ArraySize = 1, BindFlags = BindFlags.RenderTarget | BindFlags.ShaderResource, CpuAccessFlags = CpuAccessFlags.None, Format = Format.R8G8B8A8_UNorm, Height = Height, Width = Width, MipLevels = 1, OptionFlags = ResourceOptionFlags.None, SampleDescription = new SampleDescription(1, 0), Usage = ResourceUsage.Default }; gBufferLight = new Texture2D(_device, gBufferDesc); gBufferLightView = new RenderTargetView(_device, gBufferLight); gBufferNormal = new Texture2D(_device, gBufferDesc); gBufferNormalView = new RenderTargetView(_device, gBufferNormal); gBufferDiffuse = new Texture2D(_device, gBufferDesc); gBufferDiffuseView = new RenderTargetView(_device, gBufferDiffuse); gBufferPostProcess = new Texture2D(_device, gBufferDesc); gBufferPostProcessView = new RenderTargetView(_device, gBufferPostProcess); if (depthOfFieldEnabled) { gBufferPostProcessBlur1 = new Texture2D(_device, gBufferDesc); gBufferPostProcessViewBlur1 = new RenderTargetView(_device, gBufferPostProcessBlur1); gBufferPostProcessBlur2 = new Texture2D(_device, gBufferDesc); gBufferPostProcessViewBlur2 = new RenderTargetView(_device, gBufferPostProcessBlur2); } gBufferViews = new[] { gBufferNormalView, gBufferDiffuseView }; ShaderResourceViewDescription gBufferResourceDesc = new ShaderResourceViewDescription() { Format = Format.R8G8B8A8_UNorm, Dimension = ShaderResourceViewDimension.Texture2D, Texture2D = new ShaderResourceViewDescription.Texture2DResource() { MipLevels = 1, MostDetailedMip = 0 } }; lightBufferRes = new ShaderResourceView(_device, gBufferLight, gBufferResourceDesc); normalBufferRes = new ShaderResourceView(_device, gBufferNormal, gBufferResourceDesc); diffuseBufferRes = new ShaderResourceView(_device, gBufferDiffuse, gBufferResourceDesc); postProcessBufferRes = new ShaderResourceView(_device, gBufferPostProcess, gBufferResourceDesc); if (depthOfFieldEnabled) { postProcessBufferBlur1Res = new ShaderResourceView(_device, gBufferPostProcessBlur1, gBufferResourceDesc); postProcessBufferBlur2Res = new ShaderResourceView(_device, gBufferPostProcessBlur2, gBufferResourceDesc); } Texture2DDescription depthDesc = new Texture2DDescription() { ArraySize = 1, BindFlags = BindFlags.DepthStencil | BindFlags.ShaderResource, CpuAccessFlags = CpuAccessFlags.None, Format = Format.R32_Typeless, Height = Height, Width = Width, MipLevels = 1, OptionFlags = ResourceOptionFlags.None, SampleDescription = new SampleDescription(1, 0), Usage = ResourceUsage.Default }; DepthStencilViewDescription depthViewDesc = new DepthStencilViewDescription() { Dimension = DepthStencilViewDimension.Texture2D, Format = Format.D32_Float, }; ShaderResourceViewDescription resourceDesc = new ShaderResourceViewDescription() { Format = Format.R32_Float, Dimension = ShaderResourceViewDimension.Texture2D, Texture2D = new ShaderResourceViewDescription.Texture2DResource() { MipLevels = 1, MostDetailedMip = 0 } }; depthTexture = new Texture2D(_device, depthDesc); depthView = new DepthStencilView(_device, depthTexture, depthViewDesc); depthBufferRes = new ShaderResourceView(_device, depthTexture, resourceDesc); lightDepthTexture = new Texture2D(_device, depthDesc); lightDepthView = new DepthStencilView(_device, lightDepthTexture, depthViewDesc); lightDepthRes = new ShaderResourceView(_device, lightDepthTexture, resourceDesc); _immediateContext.Rasterizer.SetViewport(0, 0, Width, Height); } public void Initialize() { Form.SizeChanged += (o, args) => { if (_swapChain == null) return; renderView.Dispose(); depthView.Dispose(); DisposeBuffers(); if (Form.WindowState == FormWindowState.Minimized) return; Width = Form.ClientSize.Width; Height = Form.ClientSize.Height; _swapChain.ResizeBuffers(_swapChain.Description.BufferCount, 0, 0, Format.Unknown, 0); CreateBuffers(); SetSceneConstants(); }; Width = 1024; Height = 768; NearPlane = 1.0f; FarPlane = 200.0f; FieldOfView = (float)Math.PI / 4; try { OnInitializeDevice(); } catch (Exception e) { MessageBox.Show(e.ToString(), "Could not create DirectX 11 device."); return; } // shader.fx const ShaderFlags shaderFlags = ShaderFlags.None; //const ShaderFlags shaderFlags = ShaderFlags.Debug | ShaderFlags.SkipOptimization; string[] sources = { "shader.fx", "grender.fx" }; using (var shaderByteCode = ShaderLoader.FromResource(Assembly.GetExecutingAssembly(), sources, shaderFlags)) { effect = new Effect(_device, shaderByteCode); } EffectTechnique technique = effect.GetTechniqueByName("GBufferCreate"); shadowGenPass = technique.GetPassByName("ShadowMap"); gBufferGenPass = technique.GetPassByName("GBufferGen"); debugDrawPass = technique.GetPassByName("DebugDraw"); BufferDescription sceneConstantsDesc = new BufferDescription() { SizeInBytes = Marshal.SizeOf(typeof(ShaderSceneConstants)), Usage = ResourceUsage.Dynamic, BindFlags = BindFlags.ConstantBuffer, CpuAccessFlags = CpuAccessFlags.Write, OptionFlags = ResourceOptionFlags.None }; sceneConstantsBuffer = new Buffer(_device, sceneConstantsDesc); EffectConstantBuffer effectConstantBuffer = effect.GetConstantBufferByName("scene"); effectConstantBuffer.SetConstantBuffer(sceneConstantsBuffer); RasterizerStateDescription _rasterizerStateDesc = new RasterizerStateDescription() { CullMode = CullMode.None, FillMode = FillMode.Solid, DepthBias = 0, DepthBiasClamp = 0, SlopeScaledDepthBias = 0, IsDepthClipEnabled = true, }; noCullState = new RasterizerState(_device, _rasterizerStateDesc); _rasterizerStateDesc.CullMode = CullMode.Back; backCullState = new RasterizerState(_device, _rasterizerStateDesc); _rasterizerStateDesc.CullMode = CullMode.Front; frontCullState = new RasterizerState(_device, _rasterizerStateDesc); _immediateContext.Rasterizer.State = CullingEnabled ? backCullState : noCullState; DepthStencilStateDescription depthDesc = new DepthStencilStateDescription() { IsDepthEnabled = true, IsStencilEnabled = false, DepthWriteMask = DepthWriteMask.All, DepthComparison = Comparison.Less }; depthState = new DepthStencilState(_device, depthDesc); depthDesc.DepthWriteMask = DepthWriteMask.Zero; outsideLightVolumeDepthState = new DepthStencilState(_device, depthDesc); depthDesc.DepthComparison = Comparison.Greater; insideLightVolumeDepthState = new DepthStencilState(_device, depthDesc); DepthStencilStateDescription lightDepthStateDesc = new DepthStencilStateDescription() { IsDepthEnabled = true, IsStencilEnabled = false, DepthWriteMask = DepthWriteMask.All, DepthComparison = Comparison.Less }; lightDepthStencilState = new DepthStencilState(_device, lightDepthStateDesc); // grender.fx technique = effect.GetTechniqueByName("DeferredShader"); gBufferRenderPass = technique.GetPassByName("DeferredShader"); gBufferPostProcessPass = technique.GetPassByName("Blur"); gBufferPostProcessPass2 = technique.GetPassByName("PostProcess"); gBufferOverlayPass = technique.GetPassByName("Overlay"); lightBufferVar = effect.GetVariableByName("lightBuffer").AsShaderResource(); normalBufferVar = effect.GetVariableByName("normalBuffer").AsShaderResource(); diffuseBufferVar = effect.GetVariableByName("diffuseBuffer").AsShaderResource(); depthMapVar = effect.GetVariableByName("depthMap").AsShaderResource(); shadowLightDepthBufferVar = effect.GetVariableByName("lightDepthMap").AsShaderResource(); sunLightDirectionVar = effect.GetVariableByName("SunLightDirection").AsVector(); viewportWidthVar = effect.GetVariableByName("ViewportWidth").AsScalar(); viewportHeightVar = effect.GetVariableByName("ViewportHeight").AsScalar(); viewParametersVar = effect.GetVariableByName("ViewParameters").AsVector(); overlayViewProjectionVar = effect.GetVariableByName("OverlayViewProjection").AsMatrix(); // light.fx using (var shaderByteCode = ShaderLoader.FromResource(Assembly.GetExecutingAssembly(), "light.fx", shaderFlags)) { lightShader = new Effect(_device, shaderByteCode); } technique = lightShader.GetTechniqueByIndex(0); lightAccumulationPass = technique.GetPassByName("Light"); lightWorldVar = lightShader.GetVariableByName("World").AsMatrix(); lightPositionRadiusVar = lightShader.GetVariableByName("PositionRadius").AsVector(); lightColorVar = lightShader.GetVariableByName("Color").AsVector(); lightProjectionVar = lightShader.GetVariableByName("Projection").AsMatrix(); lightViewVar = lightShader.GetVariableByName("View").AsMatrix(); lightViewInverseVar = lightShader.GetVariableByName("ViewInverse").AsMatrix(); lightViewportWidthVar = lightShader.GetVariableByName("ViewportWidth").AsScalar(); lightViewportHeightVar = lightShader.GetVariableByName("ViewportHeight").AsScalar(); lightEyePositionVar = lightShader.GetVariableByName("EyePosition").AsVector(); lightViewParametersVar = lightShader.GetVariableByName("ViewParameters").AsVector(); InputElement[] elements = { new InputElement("POSITION", 0, Format.R32G32B32_Float, 0, 0, InputClassification.PerVertexData, 0), }; lightVolumeInputLayout = new InputLayout(Device, lightShader.GetTechniqueByIndex(0).GetPassByName("Light").Description.Signature, elements); pointLightVolumeVertices = Light.CreatePointLightVolume(out pointLightVolumeIndices); BufferDescription vertexBufferDesc = new BufferDescription() { SizeInBytes = Vector3.SizeInBytes * pointLightVolumeVertices.Length, Usage = ResourceUsage.Default, BindFlags = BindFlags.VertexBuffer, }; using (var data = new SharpDX.DataStream(vertexBufferDesc.SizeInBytes, false, true)) { data.WriteRange(pointLightVolumeVertices); data.Position = 0; pointLightVolumeVertexBuffer = new Buffer(Device, data, vertexBufferDesc); } pointLightVolumeVertexBufferBinding = new VertexBufferBinding(pointLightVolumeVertexBuffer, 12, 0); BufferDescription indexBufferDesc = new BufferDescription() { SizeInBytes = sizeof(uint) * pointLightVolumeIndices.Length, Usage = ResourceUsage.Default, BindFlags = BindFlags.IndexBuffer }; using (var data = new SharpDX.DataStream(indexBufferDesc.SizeInBytes, false, true)) { data.WriteRange(pointLightVolumeIndices); data.Position = 0; pointLightVolumeIndexBuffer = new Buffer(Device, data, indexBufferDesc); } lightDepthBufferVar = lightShader.GetVariableByName("depthBuffer").AsShaderResource(); lightNormalBufferVar = lightShader.GetVariableByName("normalBuffer").AsShaderResource(); lights.Add(new Light(pointLightPosition, 60, new Vector4(1, 0.95f, 0.9f, 1))); //lights.Add(new Light(pointLightPosition, 60, new Vector4(0, 0, 1, 1))); //lights.Add(new Light(new Vector3(-10, 10, 10), 30, new Vector4(1, 0, 0, 1))); //lights.Add(new Light(new Vector3(10, 5, -10), 20, new Vector4(0, 1, 0, 1))); //lights.Add(new Light(new Vector3(-10, 5, -10), 20, new Vector4(1, 0, 1, 1))); Info = new InfoText(_device, 256, 256); _meshFactory = new MeshFactory(this); CreateBuffers(); } protected void SetSceneConstants() { Vector4 eyePosition = new Vector4(Freelook.Eye, 1); sceneConstants.View = Matrix.LookAtLH(Freelook.Eye, Freelook.Target, Freelook.Up); Matrix.PerspectiveFovLH(FieldOfView, AspectRatio, NearPlane, FarPlane, out sceneConstants.Projection); Matrix.Invert(ref sceneConstants.View, out sceneConstants.ViewInverse); Texture2DDescription depthBuffer = lightDepthTexture.Description; Vector3 lightPosition = sunLightDirection * -60; Matrix lightView = Matrix.LookAtLH(lightPosition, Vector3.Zero, Freelook.Up); //Matrix lightProjection = Matrix.OrthoLH(depthBuffer.Width / 8.0f, depthBuffer.Height / 8.0f, _nearPlane, FarPlane); Matrix lightProjection = Matrix.PerspectiveFovLH(FieldOfView, (float)depthBuffer.Width / (float)depthBuffer.Height, NearPlane, FarPlane); sceneConstants.LightViewProjection = lightView * lightProjection; SharpDX.DataStream data; _immediateContext.MapSubresource(sceneConstantsBuffer, MapMode.WriteDiscard, SharpDX.Direct3D11.MapFlags.None, out data); Marshal.StructureToPtr(sceneConstants, data.DataPointer, false); _immediateContext.UnmapSubresource(sceneConstantsBuffer, 0); data.Dispose(); sunLightDirectionVar.Set(new Vector4(sunLightDirection, 1)); Matrix overlayMatrix = Matrix.Scaling(Info.Width / Width, Info.Height / Height, 1.0f); overlayMatrix *= Matrix.Translation(-(Width - Info.Width) / Width, (Height - Info.Height) / Height, 0.0f); overlayViewProjectionVar.SetMatrix(overlayMatrix); lightProjectionVar.SetMatrixTranspose(ref sceneConstants.Projection); lightViewVar.SetMatrixTranspose(ref sceneConstants.View); lightViewInverseVar.SetMatrix(ref sceneConstants.ViewInverse); lightViewportWidthVar.Set(Width); lightViewportHeightVar.Set(Height); lightEyePositionVar.Set(ref eyePosition); float tanHalfFovY = (float)Math.Tan(FieldOfView * 0.5f); float tanHalfFovX = tanHalfFovY * AspectRatio; float projectionA = FarPlane / (FarPlane - NearPlane); float projectionB = -projectionA * NearPlane; Vector4 viewParameters = new Vector4(tanHalfFovX, tanHalfFovY, projectionA, projectionB); lightViewParametersVar.Set(ref viewParameters); viewportWidthVar.Set(Width); viewportHeightVar.Set(Height); viewParametersVar.Set(ref viewParameters); } public void UpdateView() { SetSceneConstants(); } public void Run() { Input = new Input(Form); Freelook = new FreeLook(Input); Initialize(); CullingEnabled = isCullingEnabled; OnInitialize(); if (PhysicsContext.World == null) { PhysicsContext.InitPhysics(); } /* if (_isDebugDrawEnabled) { if (_debugDrawer == null) { _debugDrawer = new PhysicsDebugDraw(this); _debugDrawer.DebugMode = DebugDrawMode; } if (PhysicsContext.World != null) { PhysicsContext.World.DebugDrawer = _debugDrawer; } } */ UpdateView(); SetInfoText(); RenderLoop.Run(Form, () => { OnHandleInput(); OnUpdate(); if (Form.WindowState != FormWindowState.Minimized) { clock.StartRender(); Render(); clock.StopRender(); } }); } protected virtual void OnInitialize() { } void SetInfoText() { //FramesPerSecond = clock.FrameCount / frameAccumulator; Info.Text = string.Format("Physics: {0} ms\n" + "Render: {1} ms\n" + "Interpolated: {2}/{3}\n" + "F1 - Help\n" + "{4}", clock.PhysicsAverage.ToString("0.000", culture), clock.RenderAverage.ToString("0.000", culture), _interpolatedSteps, clock.FrameCount, _demoText); } protected virtual void OnUpdate() { FrameDelta = clock.GetFrameDelta(); frameAccumulator += FrameDelta; if (frameAccumulator >= 1.0f) { SetInfoText(); frameAccumulator = 0.0f; _interpolatedSteps = 0; clock.Reset(); } if (PhysicsContext.World != null) { clock.StartPhysics(); int steps = PhysicsContext.World.StepSimulation(FrameDelta); clock.StopPhysics(); if (steps == 0) { _interpolatedSteps++; } } if (Freelook.Update(FrameDelta)) UpdateView(); Input.ClearKeyCache(); } void RenderLights() { inputAssembler.PrimitiveTopology = PrimitiveTopology.TriangleList; inputAssembler.InputLayout = lightVolumeInputLayout; inputAssembler.SetVertexBuffers(0, pointLightVolumeVertexBufferBinding); inputAssembler.SetIndexBuffer(pointLightVolumeIndexBuffer, Format.R32_UInt, 0); lightDepthBufferVar.SetResource(depthBufferRes); lightNormalBufferVar.SetResource(normalBufferRes); var previousState = _immediateContext.Rasterizer.State; // Camera outside light volume _immediateContext.Rasterizer.State = backCullState; outputMerger.SetDepthStencilState(outsideLightVolumeDepthState); foreach (var light in lights) { float radius = light.Radius; float bias = radius * 2; if ((light.Position - Freelook.Eye).LengthSquared() >= (radius * radius) + bias) { RenderLight(light); } } // Camera inside light volume _immediateContext.Rasterizer.State = frontCullState; outputMerger.SetDepthStencilState(insideLightVolumeDepthState); foreach (var light in lights) { float bias = light.Radius * 2; if ((light.Position - Freelook.Eye).LengthSquared() < (light.Radius * light.Radius) + bias) { RenderLight(light); } } _immediateContext.Rasterizer.State = previousState; } void RenderLight(Light light) { lightWorldVar.SetMatrixTranspose(light.World); lightPositionRadiusVar.Set(new Vector4(light.Position, light.Radius)); lightColorVar.Set(light.Color); lightAccumulationPass.Apply(_immediateContext); _immediateContext.DrawIndexed(pointLightVolumeIndices.Length, 0, 0); } void Render() { // Clear targets _immediateContext.ClearDepthStencilView(depthView, DepthStencilClearFlags.Depth, 1.0f, 0); //_immediateContext.ClearRenderTargetView(renderView, ambient); _immediateContext.ClearRenderTargetView(gBufferLightView, Color4.Black); _immediateContext.ClearRenderTargetView(gBufferNormalView, Color4.Black); _immediateContext.ClearRenderTargetView(gBufferDiffuseView, Color4.Black); // Read collision object transforms, create geometry, etc. _meshFactory.InitInstancedRender(); // Light depth map pass _immediateContext.ClearDepthStencilView(lightDepthView, DepthStencilClearFlags.Depth, 1.0f, 0); if (shadowsEnabled) { outputMerger.SetDepthStencilState(lightDepthStencilState); outputMerger.SetRenderTargets(lightDepthView); shadowGenPass.Apply(_immediateContext); OnRender(); shadowLightDepthBufferVar.SetResource(lightDepthRes); } // Render geometry (colors, normals, depth) to G-buffer outputMerger.SetDepthStencilState(depthState); outputMerger.SetTargets(depthView, gBufferViews); gBufferGenPass.Apply(_immediateContext); OnRender(); /* if (IsDebugDrawEnabled) { debugDrawPass.Apply(_immediateContext); (PhysicsContext.World.DebugDrawer as PhysicsDebugDraw).DrawDebugWorld(PhysicsContext.World); } */ // Light accumulation to G-buffer if (deferredLightingEnabled) { outputMerger.SetBlendState(additiveBlendState); // Can't set depthView as render target and shader variable at the same time, // so early HW depth test is not available for light volumes. //outputMerger.SetTargets(depthView, gBufferLightView); outputMerger.SetTargets(gBufferLightView); RenderLights(); } // Render G-buffer outputMerger.SetBlendState(alphaBlendState); outputMerger.SetDepthStencilState(null); if (depthOfFieldEnabled) { outputMerger.SetTargets(gBufferPostProcessView); } else { outputMerger.SetTargets(renderView); } inputAssembler.PrimitiveTopology = PrimitiveTopology.TriangleStrip; lightBufferVar.SetResource(lightBufferRes); normalBufferVar.SetResource(normalBufferRes); diffuseBufferVar.SetResource(diffuseBufferRes); depthMapVar.SetResource(depthBufferRes); //_immediateContext.ClearRenderTargetView(gBufferPostProcessView, Color4.Black); gBufferRenderPass.Apply(_immediateContext); _immediateContext.Draw(3, 0); if (depthOfFieldEnabled) { diffuseBufferVar.SetResource(postProcessBufferRes); outputMerger.SetTargets(gBufferPostProcessViewBlur1); gBufferPostProcessPass.Apply(_immediateContext); _immediateContext.Draw(3, 0); diffuseBufferVar.SetResource(postProcessBufferBlur1Res); outputMerger.SetTargets(gBufferPostProcessViewBlur2); gBufferPostProcessPass.Apply(_immediateContext); _immediateContext.Draw(3, 0); diffuseBufferVar.SetResource(postProcessBufferBlur2Res); outputMerger.SetTargets(gBufferPostProcessViewBlur1); gBufferPostProcessPass.Apply(_immediateContext); _immediateContext.Draw(3, 0); diffuseBufferVar.SetResource(postProcessBufferBlur1Res); outputMerger.SetTargets(gBufferPostProcessViewBlur2); gBufferPostProcessPass.Apply(_immediateContext); _immediateContext.Draw(3, 0); diffuseBufferVar.SetResource(postProcessBufferRes); normalBufferVar.SetResource(postProcessBufferBlur2Res); outputMerger.SetTargets(renderView); gBufferPostProcessPass2.Apply(_immediateContext); _immediateContext.Draw(3, 0); } // Render overlay Info.Render(); outputMerger.SetBlendState(alphaBlendState); diffuseBufferVar.SetResource(Info.OverlayBufferRes); gBufferOverlayPass.Apply(_immediateContext); _immediateContext.Draw(4, 0); _swapChain.Present(0, PresentFlags.None); } protected virtual void OnRender() { _meshFactory.RenderInstanced(); } public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } protected virtual void Dispose(bool disposing) { if (disposing) { PhysicsContext.ExitPhysics(); } } protected virtual void OnHandleInput() { if (Input.KeysPressed.Count != 0) { switch (Input.KeysPressed[0]) { case Keys.Escape: case Keys.Q: Form.Close(); return; case Keys.F1: MessageBox.Show( "Move using mouse and WASD + shift\n" + "Space - Shoot box\n" + "Q - Quit\n\n" + "G - Toggle shadows\n" + "L - Toggle deferred lighting\n", "Help"); return; case Keys.F3: //IsDebugDrawEnabled = !IsDebugDrawEnabled; break; case Keys.F11: //ToggleFullScreen(); break; case (Keys.Control | Keys.F): const int maxSerializeBufferSize = 1024 * 1024 * 5; using (var serializer = new DefaultSerializer(maxSerializeBufferSize)) { PhysicsContext.World.Serialize(serializer); byte[] dataBytes = new byte[serializer.CurrentBufferSize]; Marshal.Copy(serializer.BufferPointer, dataBytes, 0, dataBytes.Length); using (var file = new System.IO.FileStream("world.bullet", System.IO.FileMode.Create)) { file.Write(dataBytes, 0, dataBytes.Length); } } break; case Keys.G: shadowsEnabled = !shadowsEnabled; break; case Keys.L: deferredLightingEnabled = !deferredLightingEnabled; break; case Keys.Space: PhysicsContext.ShootBox(Freelook.Eye, GetRayTo(Input.MousePoint, Freelook.Eye, Freelook.Target, FieldOfView)); break; } } if (Input.MousePressed != MouseButtons.None) { Vector3 rayTo = GetRayTo(Input.MousePoint, Freelook.Eye, Freelook.Target, FieldOfView); if (Input.MousePressed == MouseButtons.Right) { if (PhysicsContext.World != null) { Vector3 rayFrom = Freelook.Eye; var rayCallback = new ClosestRayResultCallback(ref rayFrom, ref rayTo); PhysicsContext.World.RayTest(rayFrom, rayTo, rayCallback); if (rayCallback.HasHit) { RigidBody body = rayCallback.CollisionObject as RigidBody; if (body != null) { if (!(body.IsStaticObject || body.IsKinematicObject)) { pickedBody = body; pickedBody.ActivationState = ActivationState.DisableDeactivation; Vector3 pickPos = rayCallback.HitPointWorld; Vector3 localPivot = Vector3.TransformCoordinate(pickPos, Matrix.Invert(body.CenterOfMassTransform)); if (Input.KeysDown.Contains(Keys.ShiftKey)) { Generic6DofConstraint dof6 = new Generic6DofConstraint(body, Matrix.Translation(localPivot), false) { LinearLowerLimit = Vector3.Zero, LinearUpperLimit = Vector3.Zero, AngularLowerLimit = Vector3.Zero, AngularUpperLimit = Vector3.Zero }; pickConstraint = dof6; dof6.SetParam(ConstraintParam.StopCfm, 0.8f, 0); dof6.SetParam(ConstraintParam.StopCfm, 0.8f, 1); dof6.SetParam(ConstraintParam.StopCfm, 0.8f, 2); dof6.SetParam(ConstraintParam.StopCfm, 0.8f, 3); dof6.SetParam(ConstraintParam.StopCfm, 0.8f, 4); dof6.SetParam(ConstraintParam.StopCfm, 0.8f, 5); dof6.SetParam(ConstraintParam.StopErp, 0.1f, 0); dof6.SetParam(ConstraintParam.StopErp, 0.1f, 1); dof6.SetParam(ConstraintParam.StopErp, 0.1f, 2); dof6.SetParam(ConstraintParam.StopErp, 0.1f, 3); dof6.SetParam(ConstraintParam.StopErp, 0.1f, 4); dof6.SetParam(ConstraintParam.StopErp, 0.1f, 5); } else { var p2p = new Point2PointConstraint(body, localPivot); pickConstraint = p2p; p2p.Setting.ImpulseClamp = 30; //very weak constraint for picking p2p.Setting.Tau = 0.001f; /* p2p.SetParam(ConstraintParams.Cfm, 0.8f, 0); p2p.SetParam(ConstraintParams.Cfm, 0.8f, 1); p2p.SetParam(ConstraintParams.Cfm, 0.8f, 2); p2p.SetParam(ConstraintParams.Erp, 0.1f, 0); p2p.SetParam(ConstraintParams.Erp, 0.1f, 1); p2p.SetParam(ConstraintParams.Erp, 0.1f, 2); */ } PhysicsContext.World.AddConstraint(pickConstraint); oldPickingDist = (pickPos - rayFrom).Length(); } } } rayCallback.Dispose(); } } } else if (Input.MouseReleased == MouseButtons.Right) { RemovePickingConstraint(); } // Mouse movement if (Input.MouseDown == MouseButtons.Right) { if (pickConstraint != null) { Vector3 newRayTo = GetRayTo(Input.MousePoint, Freelook.Eye, Freelook.Target, FieldOfView); if (pickConstraint.ConstraintType == TypedConstraintType.D6) { Generic6DofConstraint pickCon = pickConstraint as Generic6DofConstraint; //keep it at the same picking distance Vector3 rayFrom = Freelook.Eye; Vector3 dir = newRayTo - rayFrom; dir.Normalize(); dir *= oldPickingDist; Vector3 newPivotB = rayFrom + dir; Matrix tempFrameOffsetA = pickCon.FrameOffsetA; tempFrameOffsetA.M41 = newPivotB.X; tempFrameOffsetA.M42 = newPivotB.Y; tempFrameOffsetA.M43 = newPivotB.Z; pickCon.SetFrames(tempFrameOffsetA, pickCon.FrameOffsetB); } else { Point2PointConstraint pickCon = pickConstraint as Point2PointConstraint; //keep it at the same picking distance Vector3 rayFrom = Freelook.Eye; Vector3 dir = newRayTo - rayFrom; dir.Normalize(); dir *= oldPickingDist; pickCon.PivotInB = rayFrom + dir; } } } } void RemovePickingConstraint() { if (pickConstraint == null) return; if (PhysicsContext.World == null) return; PhysicsContext.World.RemoveConstraint(pickConstraint); pickConstraint.Dispose(); pickConstraint = null; pickedBody.ForceActivationState(ActivationState.ActiveTag); pickedBody.DeactivationTime = 0; pickedBody = null; } protected Vector3 GetRayTo(Point point, Vector3 eye, Vector3 target, float fov) { float aspect; Vector3 rayForward = target - eye; rayForward.Normalize(); const float farPlane = 10000.0f; rayForward *= farPlane; Vector3 vertical = Freelook.Up; Vector3 hor = Vector3.Cross(rayForward, vertical); hor.Normalize(); vertical = Vector3.Cross(hor, rayForward); vertical.Normalize(); float tanFov = (float)Math.Tan(fov / 2); hor *= 2.0f * farPlane * tanFov; vertical *= 2.0f * farPlane * tanFov; Size clientSize = Form.ClientSize; if (clientSize.Width > clientSize.Height) { aspect = (float)clientSize.Width / (float)clientSize.Height; hor *= aspect; } else { aspect = (float)clientSize.Height / (float)clientSize.Width; vertical *= aspect; } Vector3 rayToCenter = eye + rayForward; Vector3 dHor = hor / (float)clientSize.Width; Vector3 dVert = vertical / (float)clientSize.Height; Vector3 rayTo = rayToCenter - 0.5f * hor + 0.5f * vertical; rayTo += (clientSize.Width - point.X) * dHor; rayTo -= point.Y * dVert; return rayTo; } } }
{ "pile_set_name": "Github" }
unsigned char ca[] = { 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x42, 0x45, 0x47, 0x49, 0x4e, 0x20, 0x43, 0x45, 0x52, 0x54, 0x49, 0x46, 0x49, 0x43, 0x41, 0x54, 0x45, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x0a, 0x4d, 0x49, 0x49, 0x44, 0x33, 0x44, 0x43, 0x43, 0x41, 0x30, 0x57, 0x67, 0x41, 0x77, 0x49, 0x42, 0x41, 0x67, 0x49, 0x4a, 0x41, 0x4d, 0x6e, 0x6c, 0x67, 0x4c, 0x31, 0x63, 0x7a, 0x73, 0x6d, 0x6a, 0x4d, 0x41, 0x30, 0x47, 0x43, 0x53, 0x71, 0x47, 0x53, 0x49, 0x62, 0x33, 0x44, 0x51, 0x45, 0x42, 0x43, 0x77, 0x55, 0x41, 0x4d, 0x49, 0x47, 0x54, 0x4d, 0x51, 0x73, 0x77, 0x43, 0x51, 0x59, 0x44, 0x0a, 0x56, 0x51, 0x51, 0x47, 0x45, 0x77, 0x4a, 0x47, 0x55, 0x6a, 0x45, 0x50, 0x4d, 0x41, 0x30, 0x47, 0x41, 0x31, 0x55, 0x45, 0x43, 0x41, 0x77, 0x47, 0x55, 0x6d, 0x46, 0x6b, 0x61, 0x58, 0x56, 0x7a, 0x4d, 0x52, 0x49, 0x77, 0x45, 0x41, 0x59, 0x44, 0x56, 0x51, 0x51, 0x48, 0x44, 0x41, 0x6c, 0x54, 0x62, 0x32, 0x31, 0x6c, 0x64, 0x32, 0x68, 0x6c, 0x63, 0x6d, 0x55, 0x78, 0x46, 0x54, 0x41, 0x54, 0x0a, 0x42, 0x67, 0x4e, 0x56, 0x42, 0x41, 0x6f, 0x4d, 0x44, 0x45, 0x56, 0x34, 0x59, 0x57, 0x31, 0x77, 0x62, 0x47, 0x55, 0x67, 0x53, 0x57, 0x35, 0x6a, 0x4c, 0x6a, 0x45, 0x67, 0x4d, 0x42, 0x34, 0x47, 0x43, 0x53, 0x71, 0x47, 0x53, 0x49, 0x62, 0x33, 0x44, 0x51, 0x45, 0x4a, 0x41, 0x52, 0x59, 0x52, 0x59, 0x57, 0x52, 0x74, 0x61, 0x57, 0x35, 0x41, 0x5a, 0x58, 0x68, 0x68, 0x62, 0x58, 0x42, 0x73, 0x0a, 0x5a, 0x53, 0x35, 0x6a, 0x62, 0x32, 0x30, 0x78, 0x4a, 0x6a, 0x41, 0x6b, 0x42, 0x67, 0x4e, 0x56, 0x42, 0x41, 0x4d, 0x4d, 0x48, 0x55, 0x56, 0x34, 0x59, 0x57, 0x31, 0x77, 0x62, 0x47, 0x55, 0x67, 0x51, 0x32, 0x56, 0x79, 0x64, 0x47, 0x6c, 0x6d, 0x61, 0x57, 0x4e, 0x68, 0x64, 0x47, 0x55, 0x67, 0x51, 0x58, 0x56, 0x30, 0x61, 0x47, 0x39, 0x79, 0x61, 0x58, 0x52, 0x35, 0x4d, 0x42, 0x34, 0x58, 0x0a, 0x44, 0x54, 0x45, 0x33, 0x4d, 0x44, 0x59, 0x77, 0x4e, 0x7a, 0x41, 0x34, 0x4d, 0x44, 0x59, 0x30, 0x4f, 0x56, 0x6f, 0x58, 0x44, 0x54, 0x49, 0x33, 0x4d, 0x44, 0x59, 0x77, 0x4e, 0x54, 0x41, 0x34, 0x4d, 0x44, 0x59, 0x30, 0x4f, 0x56, 0x6f, 0x77, 0x67, 0x5a, 0x4d, 0x78, 0x43, 0x7a, 0x41, 0x4a, 0x42, 0x67, 0x4e, 0x56, 0x42, 0x41, 0x59, 0x54, 0x41, 0x6b, 0x5a, 0x53, 0x4d, 0x51, 0x38, 0x77, 0x0a, 0x44, 0x51, 0x59, 0x44, 0x56, 0x51, 0x51, 0x49, 0x44, 0x41, 0x5a, 0x53, 0x59, 0x57, 0x52, 0x70, 0x64, 0x58, 0x4d, 0x78, 0x45, 0x6a, 0x41, 0x51, 0x42, 0x67, 0x4e, 0x56, 0x42, 0x41, 0x63, 0x4d, 0x43, 0x56, 0x4e, 0x76, 0x62, 0x57, 0x56, 0x33, 0x61, 0x47, 0x56, 0x79, 0x5a, 0x54, 0x45, 0x56, 0x4d, 0x42, 0x4d, 0x47, 0x41, 0x31, 0x55, 0x45, 0x43, 0x67, 0x77, 0x4d, 0x52, 0x58, 0x68, 0x68, 0x0a, 0x62, 0x58, 0x42, 0x73, 0x5a, 0x53, 0x42, 0x4a, 0x62, 0x6d, 0x4d, 0x75, 0x4d, 0x53, 0x41, 0x77, 0x48, 0x67, 0x59, 0x4a, 0x4b, 0x6f, 0x5a, 0x49, 0x68, 0x76, 0x63, 0x4e, 0x41, 0x51, 0x6b, 0x42, 0x46, 0x68, 0x46, 0x68, 0x5a, 0x47, 0x31, 0x70, 0x62, 0x6b, 0x42, 0x6c, 0x65, 0x47, 0x46, 0x74, 0x63, 0x47, 0x78, 0x6c, 0x4c, 0x6d, 0x4e, 0x76, 0x62, 0x54, 0x45, 0x6d, 0x4d, 0x43, 0x51, 0x47, 0x0a, 0x41, 0x31, 0x55, 0x45, 0x41, 0x77, 0x77, 0x64, 0x52, 0x58, 0x68, 0x68, 0x62, 0x58, 0x42, 0x73, 0x5a, 0x53, 0x42, 0x44, 0x5a, 0x58, 0x4a, 0x30, 0x61, 0x57, 0x5a, 0x70, 0x59, 0x32, 0x46, 0x30, 0x5a, 0x53, 0x42, 0x42, 0x64, 0x58, 0x52, 0x6f, 0x62, 0x33, 0x4a, 0x70, 0x64, 0x48, 0x6b, 0x77, 0x67, 0x5a, 0x38, 0x77, 0x44, 0x51, 0x59, 0x4a, 0x4b, 0x6f, 0x5a, 0x49, 0x68, 0x76, 0x63, 0x4e, 0x0a, 0x41, 0x51, 0x45, 0x42, 0x42, 0x51, 0x41, 0x44, 0x67, 0x59, 0x30, 0x41, 0x4d, 0x49, 0x47, 0x4a, 0x41, 0x6f, 0x47, 0x42, 0x41, 0x4c, 0x70, 0x57, 0x52, 0x32, 0x33, 0x66, 0x6e, 0x2f, 0x54, 0x6d, 0x48, 0x78, 0x73, 0x58, 0x73, 0x48, 0x64, 0x72, 0x79, 0x64, 0x7a, 0x50, 0x53, 0x64, 0x31, 0x37, 0x66, 0x5a, 0x6b, 0x63, 0x37, 0x31, 0x57, 0x73, 0x61, 0x69, 0x63, 0x67, 0x51, 0x52, 0x36, 0x36, 0x0a, 0x31, 0x74, 0x49, 0x56, 0x59, 0x62, 0x32, 0x32, 0x55, 0x57, 0x47, 0x66, 0x6a, 0x39, 0x4b, 0x50, 0x4d, 0x38, 0x54, 0x48, 0x4d, 0x73, 0x56, 0x37, 0x34, 0x65, 0x77, 0x34, 0x5a, 0x6b, 0x61, 0x51, 0x33, 0x39, 0x71, 0x76, 0x55, 0x30, 0x69, 0x75, 0x51, 0x49, 0x52, 0x72, 0x4b, 0x41, 0x52, 0x46, 0x48, 0x46, 0x6f, 0x6b, 0x2b, 0x76, 0x62, 0x61, 0x65, 0x63, 0x67, 0x57, 0x4d, 0x65, 0x57, 0x65, 0x0a, 0x76, 0x47, 0x49, 0x71, 0x64, 0x6e, 0x6d, 0x79, 0x42, 0x39, 0x67, 0x4a, 0x59, 0x61, 0x46, 0x4f, 0x4b, 0x67, 0x74, 0x53, 0x6b, 0x66, 0x58, 0x73, 0x75, 0x32, 0x64, 0x64, 0x73, 0x71, 0x64, 0x76, 0x4c, 0x59, 0x77, 0x63, 0x44, 0x62, 0x63, 0x7a, 0x72, 0x71, 0x38, 0x58, 0x39, 0x79, 0x45, 0x58, 0x70, 0x4e, 0x36, 0x6d, 0x6e, 0x78, 0x58, 0x65, 0x43, 0x63, 0x50, 0x47, 0x34, 0x46, 0x30, 0x70, 0x0a, 0x41, 0x67, 0x4d, 0x42, 0x41, 0x41, 0x47, 0x6a, 0x67, 0x67, 0x45, 0x30, 0x4d, 0x49, 0x49, 0x42, 0x4d, 0x44, 0x41, 0x64, 0x42, 0x67, 0x4e, 0x56, 0x48, 0x51, 0x34, 0x45, 0x46, 0x67, 0x51, 0x55, 0x67, 0x69, 0x67, 0x70, 0x64, 0x41, 0x55, 0x70, 0x4f, 0x4e, 0x6f, 0x44, 0x71, 0x30, 0x70, 0x51, 0x33, 0x79, 0x66, 0x78, 0x72, 0x73, 0x6c, 0x43, 0x53, 0x70, 0x63, 0x77, 0x67, 0x63, 0x67, 0x47, 0x0a, 0x41, 0x31, 0x55, 0x64, 0x49, 0x77, 0x53, 0x42, 0x77, 0x44, 0x43, 0x42, 0x76, 0x59, 0x41, 0x55, 0x67, 0x69, 0x67, 0x70, 0x64, 0x41, 0x55, 0x70, 0x4f, 0x4e, 0x6f, 0x44, 0x71, 0x30, 0x70, 0x51, 0x33, 0x79, 0x66, 0x78, 0x72, 0x73, 0x6c, 0x43, 0x53, 0x70, 0x65, 0x68, 0x67, 0x5a, 0x6d, 0x6b, 0x67, 0x5a, 0x59, 0x77, 0x67, 0x5a, 0x4d, 0x78, 0x43, 0x7a, 0x41, 0x4a, 0x42, 0x67, 0x4e, 0x56, 0x0a, 0x42, 0x41, 0x59, 0x54, 0x41, 0x6b, 0x5a, 0x53, 0x4d, 0x51, 0x38, 0x77, 0x44, 0x51, 0x59, 0x44, 0x56, 0x51, 0x51, 0x49, 0x44, 0x41, 0x5a, 0x53, 0x59, 0x57, 0x52, 0x70, 0x64, 0x58, 0x4d, 0x78, 0x45, 0x6a, 0x41, 0x51, 0x42, 0x67, 0x4e, 0x56, 0x42, 0x41, 0x63, 0x4d, 0x43, 0x56, 0x4e, 0x76, 0x62, 0x57, 0x56, 0x33, 0x61, 0x47, 0x56, 0x79, 0x5a, 0x54, 0x45, 0x56, 0x4d, 0x42, 0x4d, 0x47, 0x0a, 0x41, 0x31, 0x55, 0x45, 0x43, 0x67, 0x77, 0x4d, 0x52, 0x58, 0x68, 0x68, 0x62, 0x58, 0x42, 0x73, 0x5a, 0x53, 0x42, 0x4a, 0x62, 0x6d, 0x4d, 0x75, 0x4d, 0x53, 0x41, 0x77, 0x48, 0x67, 0x59, 0x4a, 0x4b, 0x6f, 0x5a, 0x49, 0x68, 0x76, 0x63, 0x4e, 0x41, 0x51, 0x6b, 0x42, 0x46, 0x68, 0x46, 0x68, 0x5a, 0x47, 0x31, 0x70, 0x62, 0x6b, 0x42, 0x6c, 0x65, 0x47, 0x46, 0x74, 0x63, 0x47, 0x78, 0x6c, 0x0a, 0x4c, 0x6d, 0x4e, 0x76, 0x62, 0x54, 0x45, 0x6d, 0x4d, 0x43, 0x51, 0x47, 0x41, 0x31, 0x55, 0x45, 0x41, 0x77, 0x77, 0x64, 0x52, 0x58, 0x68, 0x68, 0x62, 0x58, 0x42, 0x73, 0x5a, 0x53, 0x42, 0x44, 0x5a, 0x58, 0x4a, 0x30, 0x61, 0x57, 0x5a, 0x70, 0x59, 0x32, 0x46, 0x30, 0x5a, 0x53, 0x42, 0x42, 0x64, 0x58, 0x52, 0x6f, 0x62, 0x33, 0x4a, 0x70, 0x64, 0x48, 0x6d, 0x43, 0x43, 0x51, 0x44, 0x4a, 0x0a, 0x35, 0x59, 0x43, 0x39, 0x58, 0x4d, 0x37, 0x4a, 0x6f, 0x7a, 0x41, 0x4d, 0x42, 0x67, 0x4e, 0x56, 0x48, 0x52, 0x4d, 0x45, 0x42, 0x54, 0x41, 0x44, 0x41, 0x51, 0x48, 0x2f, 0x4d, 0x44, 0x59, 0x47, 0x41, 0x31, 0x55, 0x64, 0x48, 0x77, 0x51, 0x76, 0x4d, 0x43, 0x30, 0x77, 0x4b, 0x36, 0x41, 0x70, 0x6f, 0x43, 0x65, 0x47, 0x4a, 0x57, 0x68, 0x30, 0x64, 0x48, 0x41, 0x36, 0x4c, 0x79, 0x39, 0x33, 0x0a, 0x64, 0x33, 0x63, 0x75, 0x5a, 0x58, 0x68, 0x68, 0x62, 0x58, 0x42, 0x73, 0x5a, 0x53, 0x35, 0x6a, 0x62, 0x32, 0x30, 0x76, 0x5a, 0x58, 0x68, 0x68, 0x62, 0x58, 0x42, 0x73, 0x5a, 0x56, 0x39, 0x6a, 0x59, 0x53, 0x35, 0x6a, 0x63, 0x6d, 0x77, 0x77, 0x44, 0x51, 0x59, 0x4a, 0x4b, 0x6f, 0x5a, 0x49, 0x68, 0x76, 0x63, 0x4e, 0x41, 0x51, 0x45, 0x4c, 0x42, 0x51, 0x41, 0x44, 0x67, 0x59, 0x45, 0x41, 0x0a, 0x65, 0x75, 0x78, 0x4f, 0x42, 0x50, 0x49, 0x6e, 0x53, 0x4a, 0x52, 0x4b, 0x41, 0x49, 0x73, 0x65, 0x4d, 0x78, 0x50, 0x6d, 0x41, 0x61, 0x62, 0x74, 0x41, 0x71, 0x4b, 0x4e, 0x73, 0x6c, 0x5a, 0x53, 0x6d, 0x70, 0x47, 0x34, 0x48, 0x65, 0x33, 0x6c, 0x6b, 0x4b, 0x74, 0x2b, 0x48, 0x4d, 0x33, 0x6a, 0x66, 0x7a, 0x6e, 0x55, 0x74, 0x33, 0x70, 0x73, 0x6d, 0x44, 0x37, 0x6a, 0x31, 0x68, 0x46, 0x57, 0x0a, 0x53, 0x34, 0x6c, 0x37, 0x4b, 0x58, 0x7a, 0x7a, 0x61, 0x6a, 0x76, 0x61, 0x47, 0x59, 0x79, 0x62, 0x44, 0x71, 0x35, 0x4e, 0x39, 0x4d, 0x71, 0x72, 0x44, 0x6a, 0x68, 0x47, 0x6e, 0x33, 0x56, 0x58, 0x5a, 0x71, 0x4f, 0x4c, 0x4d, 0x55, 0x4e, 0x44, 0x4c, 0x37, 0x4f, 0x51, 0x71, 0x39, 0x36, 0x54, 0x7a, 0x67, 0x71, 0x73, 0x54, 0x42, 0x54, 0x31, 0x64, 0x6d, 0x56, 0x53, 0x62, 0x4e, 0x6c, 0x74, 0x0a, 0x50, 0x51, 0x67, 0x69, 0x41, 0x65, 0x4b, 0x41, 0x6b, 0x33, 0x74, 0x6d, 0x48, 0x34, 0x6c, 0x52, 0x52, 0x69, 0x39, 0x4d, 0x54, 0x42, 0x53, 0x79, 0x4a, 0x36, 0x49, 0x39, 0x32, 0x4a, 0x59, 0x63, 0x53, 0x35, 0x48, 0x36, 0x42, 0x73, 0x34, 0x5a, 0x77, 0x43, 0x63, 0x3d, 0x0a, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x45, 0x4e, 0x44, 0x20, 0x43, 0x45, 0x52, 0x54, 0x49, 0x46, 0x49, 0x43, 0x41, 0x54, 0x45, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x0a, 0x00, };
{ "pile_set_name": "Github" }
package Paws::LexModels::CreateBotVersionResponse; use Moose; has AbortStatement => (is => 'ro', isa => 'Paws::LexModels::Statement', traits => ['NameInRequest'], request_name => 'abortStatement'); has Checksum => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'checksum'); has ChildDirected => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'childDirected'); has ClarificationPrompt => (is => 'ro', isa => 'Paws::LexModels::Prompt', traits => ['NameInRequest'], request_name => 'clarificationPrompt'); has CreatedDate => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'createdDate'); has Description => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'description'); has DetectSentiment => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'detectSentiment'); has FailureReason => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'failureReason'); has IdleSessionTTLInSeconds => (is => 'ro', isa => 'Int', traits => ['NameInRequest'], request_name => 'idleSessionTTLInSeconds'); has Intents => (is => 'ro', isa => 'ArrayRef[Paws::LexModels::Intent]', traits => ['NameInRequest'], request_name => 'intents'); has LastUpdatedDate => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'lastUpdatedDate'); has Locale => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'locale'); has Name => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'name'); has Status => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'status'); has Version => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'version'); has VoiceId => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'voiceId'); has _request_id => (is => 'ro', isa => 'Str'); 1; ### main pod documentation begin ### =head1 NAME Paws::LexModels::CreateBotVersionResponse =head1 ATTRIBUTES =head2 AbortStatement => L<Paws::LexModels::Statement> The message that Amazon Lex uses to abort a conversation. For more information, see PutBot. =head2 Checksum => Str Checksum identifying the version of the bot that was created. =head2 ChildDirected => Bool For each Amazon Lex bot created with the Amazon Lex Model Building Service, you must specify whether your use of Amazon Lex is related to a website, program, or other application that is directed or targeted, in whole or in part, to children under age 13 and subject to the Children's Online Privacy Protection Act (COPPA) by specifying C<true> or C<false> in the C<childDirected> field. By specifying C<true> in the C<childDirected> field, you confirm that your use of Amazon Lex B<is> related to a website, program, or other application that is directed or targeted, in whole or in part, to children under age 13 and subject to COPPA. By specifying C<false> in the C<childDirected> field, you confirm that your use of Amazon Lex B<is not> related to a website, program, or other application that is directed or targeted, in whole or in part, to children under age 13 and subject to COPPA. You may not specify a default value for the C<childDirected> field that does not accurately reflect whether your use of Amazon Lex is related to a website, program, or other application that is directed or targeted, in whole or in part, to children under age 13 and subject to COPPA. If your use of Amazon Lex relates to a website, program, or other application that is directed in whole or in part, to children under age 13, you must obtain any required verifiable parental consent under COPPA. For information regarding the use of Amazon Lex in connection with websites, programs, or other applications that are directed or targeted, in whole or in part, to children under age 13, see the Amazon Lex FAQ. (https://aws.amazon.com/lex/faqs#data-security) =head2 ClarificationPrompt => L<Paws::LexModels::Prompt> The message that Amazon Lex uses when it doesn't understand the user's request. For more information, see PutBot. =head2 CreatedDate => Str The date when the bot version was created. =head2 Description => Str A description of the bot. =head2 DetectSentiment => Bool Indicates whether utterances entered by the user should be sent to Amazon Comprehend for sentiment analysis. =head2 FailureReason => Str If C<status> is C<FAILED>, Amazon Lex provides the reason that it failed to build the bot. =head2 IdleSessionTTLInSeconds => Int The maximum time in seconds that Amazon Lex retains the data gathered in a conversation. For more information, see PutBot. =head2 Intents => ArrayRef[L<Paws::LexModels::Intent>] An array of C<Intent> objects. For more information, see PutBot. =head2 LastUpdatedDate => Str The date when the C<$LATEST> version of this bot was updated. =head2 Locale => Str Specifies the target locale for the bot. Valid values are: C<"en-US">, C<"en-GB">, C<"de-DE"> =head2 Name => Str The name of the bot. =head2 Status => Str When you send a request to create or update a bot, Amazon Lex sets the C<status> response element to C<BUILDING>. After Amazon Lex builds the bot, it sets C<status> to C<READY>. If Amazon Lex can't build the bot, it sets C<status> to C<FAILED>. Amazon Lex returns the reason for the failure in the C<failureReason> response element. Valid values are: C<"BUILDING">, C<"READY">, C<"READY_BASIC_TESTING">, C<"FAILED">, C<"NOT_BUILT"> =head2 Version => Str The version of the bot. =head2 VoiceId => Str The Amazon Polly voice ID that Amazon Lex uses for voice interactions with the user. =head2 _request_id => Str =cut
{ "pile_set_name": "Github" }
@import "styles/reset"; @import "styles/treeView"; @import "styles/resizeHandle"; @import "styles/tabStrip"; @import "styles/dialogs"; .chat-tab { @import "styles/ChatTab"; } body { display: flex; border-top: 1px solid #ccc; } .loading { z-index: 9; position: absolute; top: 0; bottom: 0; left: 0; right: 0; overflow: hidden; background: #eee; color: #444; display: flex; align-items: center; justify-content: center; .splash { display: flex; flex-flow: column; align-items: center; justify-content: center; } .splash img { max-width: 80vw; max-height: 80vh; } .status { font-size: 2em; } .progress { margin-top: 0.5em; } .version { position: absolute; bottom: 0; right: 0; padding: 0.5em; } } .update-available { z-index: 100; .info { padding: 0.5em; } .actions { padding: 0.5em; } } .waiting-game-install label { margin: auto; background-color: white; padding: 0.75em; box-shadow: 0 0 20px rgba(0,0,0,0.2); } body > .sidebar { min-width: 250px; max-width: 480px; width: 250px; display: flex; flex-flow: column; background: #f0f0f0; color: #444; display: flex; flex-flow: column; } body > .sidebar .me { display: flex; align-items: center; padding: 0.5em; border-bottom: 1px solid #ccc; .picture { background: #ddd; border: 1px solid #ccc; border-radius: 0.25em; width: 50px; height: 50px; margin-right: 0.5em; } .info { flex: 1; display: flex; flex-flow: column; } .name { font-size: 24px; overflow-x: hidden; text-overflow: ellipsis; cursor: pointer; } .presence { display: flex; align-items: baseline; .show-chat-status { visibility: hidden; margin-left: 0.25em; font-size: smaller; border: 0; background: transparent; box-shadow: none; opacity: 0.5; } &:hover .show-chat-status { visibility: visible; } } } body > .sidebar .servers-tree-view { flex: 1 1 0; position: relative; > .tree { position: absolute; } li { display: block; height: auto; padding: 0.5em 1em; .label, .host { white-space: nowrap; overflow-x: hidden; text-overflow: ellipsis; } .label { font-size: 1.5em; } } } .servers-buttons { .add-server { background-image: url(images/servers/add.svg); } .edit-server { background-image: url(images/servers/edit.svg); } .remove-server { background-image: url(images/servers/remove.svg); } } body > .sidebar .local-server { display: flex; align-items: center; padding: 0.5em; border-top: 1px solid #aaa; background: #ddd; button { margin-left: 0.25em; } .status { flex: 1 1 0; } } body > .main { flex: 1 1 0; display: flex; flex-flow: column; .tabs-bar { background: #eee; border-bottom: 1px solid #aaa; } } body .panes { flex: 1 1 0; display: flex; .home { @import "home/index.styl"; } .server-settings { @import "serverSettings/index.styl"; } & > * { flex: 1 1 0; } & > div[data-server-id] { display: flex; position: relative; webview { flex: 1 1 0; } .connecting { position: absolute; left: 0; right: 0; top: 0; bottom: 0; z-order: 1; display: flex; flex-flow: column; align-items: center; justify-content: center; background: #fff; } .connecting div { font-size: 2em; color: #666; padding: 1em; text-align: center; } } }
{ "pile_set_name": "Github" }
# Tcl autoload index file, version 2.0 # This file is generated by the "auto_mkindex" command # and sourced to set up indexing information for one or # more commands. Typically each line is a command that # sets an element in the auto_index array, where the # element name is the name of a command and the value is # a script that loads the command. set auto_index(::tk::dialog::error::Return) [list source [file join $dir bgerror.tcl]] set auto_index(::tk::dialog::error::Details) [list source [file join $dir bgerror.tcl]] set auto_index(::tk::dialog::error::SaveToLog) [list source [file join $dir bgerror.tcl]] set auto_index(::tk::dialog::error::Destroy) [list source [file join $dir bgerror.tcl]] set auto_index(::tk::dialog::error::bgerror) [list source [file join $dir bgerror.tcl]] set auto_index(bgerror) [list source [file join $dir bgerror.tcl]] set auto_index(::tk::ButtonInvoke) [list source [file join $dir button.tcl]] set auto_index(::tk::ButtonAutoInvoke) [list source [file join $dir button.tcl]] set auto_index(::tk::CheckRadioInvoke) [list source [file join $dir button.tcl]] set auto_index(::tk::dialog::file::chooseDir::) [list source [file join $dir choosedir.tcl]] set auto_index(::tk::dialog::file::chooseDir::Config) [list source [file join $dir choosedir.tcl]] set auto_index(::tk::dialog::file::chooseDir::OkCmd) [list source [file join $dir choosedir.tcl]] set auto_index(::tk::dialog::file::chooseDir::DblClick) [list source [file join $dir choosedir.tcl]] set auto_index(::tk::dialog::file::chooseDir::ListBrowse) [list source [file join $dir choosedir.tcl]] set auto_index(::tk::dialog::file::chooseDir::Done) [list source [file join $dir choosedir.tcl]] set auto_index(::tk::dialog::color::) [list source [file join $dir clrpick.tcl]] set auto_index(::tk::dialog::color::InitValues) [list source [file join $dir clrpick.tcl]] set auto_index(::tk::dialog::color::Config) [list source [file join $dir clrpick.tcl]] set auto_index(::tk::dialog::color::BuildDialog) [list source [file join $dir clrpick.tcl]] set auto_index(::tk::dialog::color::SetRGBValue) [list source [file join $dir clrpick.tcl]] set auto_index(::tk::dialog::color::XToRgb) [list source [file join $dir clrpick.tcl]] set auto_index(::tk::dialog::color::RgbToX) [list source [file join $dir clrpick.tcl]] set auto_index(::tk::dialog::color::DrawColorScale) [list source [file join $dir clrpick.tcl]] set auto_index(::tk::dialog::color::CreateSelector) [list source [file join $dir clrpick.tcl]] set auto_index(::tk::dialog::color::RedrawFinalColor) [list source [file join $dir clrpick.tcl]] set auto_index(::tk::dialog::color::RedrawColorBars) [list source [file join $dir clrpick.tcl]] set auto_index(::tk::dialog::color::StartMove) [list source [file join $dir clrpick.tcl]] set auto_index(::tk::dialog::color::MoveSelector) [list source [file join $dir clrpick.tcl]] set auto_index(::tk::dialog::color::ReleaseMouse) [list source [file join $dir clrpick.tcl]] set auto_index(::tk::dialog::color::ResizeColorBars) [list source [file join $dir clrpick.tcl]] set auto_index(::tk::dialog::color::HandleSelEntry) [list source [file join $dir clrpick.tcl]] set auto_index(::tk::dialog::color::HandleRGBEntry) [list source [file join $dir clrpick.tcl]] set auto_index(::tk::dialog::color::EnterColorBar) [list source [file join $dir clrpick.tcl]] set auto_index(::tk::dialog::color::LeaveColorBar) [list source [file join $dir clrpick.tcl]] set auto_index(::tk::dialog::color::OkCmd) [list source [file join $dir clrpick.tcl]] set auto_index(::tk::dialog::color::CancelCmd) [list source [file join $dir clrpick.tcl]] set auto_index(tclParseConfigSpec) [list source [file join $dir comdlg.tcl]] set auto_index(tclListValidFlags) [list source [file join $dir comdlg.tcl]] set auto_index(::tk::FocusGroup_Create) [list source [file join $dir comdlg.tcl]] set auto_index(::tk::FocusGroup_BindIn) [list source [file join $dir comdlg.tcl]] set auto_index(::tk::FocusGroup_BindOut) [list source [file join $dir comdlg.tcl]] set auto_index(::tk::FocusGroup_Destroy) [list source [file join $dir comdlg.tcl]] set auto_index(::tk::FocusGroup_In) [list source [file join $dir comdlg.tcl]] set auto_index(::tk::FocusGroup_Out) [list source [file join $dir comdlg.tcl]] set auto_index(::tk::FDGetFileTypes) [list source [file join $dir comdlg.tcl]] set auto_index(::tk::ConsoleInit) [list source [file join $dir console.tcl]] set auto_index(::tk::ConsoleSource) [list source [file join $dir console.tcl]] set auto_index(::tk::ConsoleInvoke) [list source [file join $dir console.tcl]] set auto_index(::tk::ConsoleHistory) [list source [file join $dir console.tcl]] set auto_index(::tk::ConsolePrompt) [list source [file join $dir console.tcl]] set auto_index(::tk::ConsoleBind) [list source [file join $dir console.tcl]] set auto_index(::tk::ConsoleInsert) [list source [file join $dir console.tcl]] set auto_index(::tk::ConsoleOutput) [list source [file join $dir console.tcl]] set auto_index(::tk::ConsoleExit) [list source [file join $dir console.tcl]] set auto_index(::tk::ConsoleAbout) [list source [file join $dir console.tcl]] set auto_index(tk_dialog) [list source [file join $dir dialog.tcl]] set auto_index(::tk::EntryClosestGap) [list source [file join $dir entry.tcl]] set auto_index(::tk::EntryButton1) [list source [file join $dir entry.tcl]] set auto_index(::tk::EntryMouseSelect) [list source [file join $dir entry.tcl]] set auto_index(::tk::EntryPaste) [list source [file join $dir entry.tcl]] set auto_index(::tk::EntryAutoScan) [list source [file join $dir entry.tcl]] set auto_index(::tk::EntryKeySelect) [list source [file join $dir entry.tcl]] set auto_index(::tk::EntryInsert) [list source [file join $dir entry.tcl]] set auto_index(::tk::EntryBackspace) [list source [file join $dir entry.tcl]] set auto_index(::tk::EntrySeeInsert) [list source [file join $dir entry.tcl]] set auto_index(::tk::EntrySetCursor) [list source [file join $dir entry.tcl]] set auto_index(::tk::EntryTranspose) [list source [file join $dir entry.tcl]] set auto_index(::tk::EntryPreviousWord) [list source [file join $dir entry.tcl]] set auto_index(::tk::EntryGetSelection) [list source [file join $dir entry.tcl]] set auto_index(tk_focusNext) [list source [file join $dir focus.tcl]] set auto_index(tk_focusPrev) [list source [file join $dir focus.tcl]] set auto_index(::tk::FocusOK) [list source [file join $dir focus.tcl]] set auto_index(tk_focusFollowsMouse) [list source [file join $dir focus.tcl]] set auto_index(::tk::IconList) [list source [file join $dir iconlist.tcl]] set auto_index(::tk::ListboxBeginSelect) [list source [file join $dir listbox.tcl]] set auto_index(::tk::ListboxMotion) [list source [file join $dir listbox.tcl]] set auto_index(::tk::ListboxBeginExtend) [list source [file join $dir listbox.tcl]] set auto_index(::tk::ListboxBeginToggle) [list source [file join $dir listbox.tcl]] set auto_index(::tk::ListboxAutoScan) [list source [file join $dir listbox.tcl]] set auto_index(::tk::ListboxUpDown) [list source [file join $dir listbox.tcl]] set auto_index(::tk::ListboxExtendUpDown) [list source [file join $dir listbox.tcl]] set auto_index(::tk::ListboxDataExtend) [list source [file join $dir listbox.tcl]] set auto_index(::tk::ListboxCancel) [list source [file join $dir listbox.tcl]] set auto_index(::tk::ListboxSelectAll) [list source [file join $dir listbox.tcl]] set auto_index(::tk::Megawidget) [list source [file join $dir megawidget.tcl]] set auto_index(::tk::MbEnter) [list source [file join $dir menu.tcl]] set auto_index(::tk::MbLeave) [list source [file join $dir menu.tcl]] set auto_index(::tk::MbPost) [list source [file join $dir menu.tcl]] set auto_index(::tk::MenuUnpost) [list source [file join $dir menu.tcl]] set auto_index(::tk::MbMotion) [list source [file join $dir menu.tcl]] set auto_index(::tk::MbButtonUp) [list source [file join $dir menu.tcl]] set auto_index(::tk::MenuMotion) [list source [file join $dir menu.tcl]] set auto_index(::tk::MenuButtonDown) [list source [file join $dir menu.tcl]] set auto_index(::tk::MenuLeave) [list source [file join $dir menu.tcl]] set auto_index(::tk::MenuInvoke) [list source [file join $dir menu.tcl]] set auto_index(::tk::MenuEscape) [list source [file join $dir menu.tcl]] set auto_index(::tk::MenuUpArrow) [list source [file join $dir menu.tcl]] set auto_index(::tk::MenuDownArrow) [list source [file join $dir menu.tcl]] set auto_index(::tk::MenuLeftArrow) [list source [file join $dir menu.tcl]] set auto_index(::tk::MenuRightArrow) [list source [file join $dir menu.tcl]] set auto_index(::tk::MenuNextMenu) [list source [file join $dir menu.tcl]] set auto_index(::tk::MenuNextEntry) [list source [file join $dir menu.tcl]] set auto_index(::tk::MenuFind) [list source [file join $dir menu.tcl]] set auto_index(::tk::TraverseToMenu) [list source [file join $dir menu.tcl]] set auto_index(::tk::FirstMenu) [list source [file join $dir menu.tcl]] set auto_index(::tk::TraverseWithinMenu) [list source [file join $dir menu.tcl]] set auto_index(::tk::MenuFirstEntry) [list source [file join $dir menu.tcl]] set auto_index(::tk::MenuFindName) [list source [file join $dir menu.tcl]] set auto_index(::tk::PostOverPoint) [list source [file join $dir menu.tcl]] set auto_index(::tk::SaveGrabInfo) [list source [file join $dir menu.tcl]] set auto_index(::tk::RestoreOldGrab) [list source [file join $dir menu.tcl]] set auto_index(tk_menuSetFocus) [list source [file join $dir menu.tcl]] set auto_index(::tk::GenerateMenuSelect) [list source [file join $dir menu.tcl]] set auto_index(tk_popup) [list source [file join $dir menu.tcl]] set auto_index(::tk::ensure_psenc_is_loaded) [list source [file join $dir mkpsenc.tcl]] set auto_index(::tk::MessageBox) [list source [file join $dir msgbox.tcl]] set auto_index(tk_menuBar) [list source [file join $dir obsolete.tcl]] set auto_index(tk_bindForTraversal) [list source [file join $dir obsolete.tcl]] set auto_index(::tk::classic::restore) [list source [file join $dir obsolete.tcl]] set auto_index(tk_optionMenu) [list source [file join $dir optMenu.tcl]] set auto_index(tk_setPalette) [list source [file join $dir palette.tcl]] set auto_index(::tk::RecolorTree) [list source [file join $dir palette.tcl]] set auto_index(::tk::Darken) [list source [file join $dir palette.tcl]] set auto_index(tk_bisque) [list source [file join $dir palette.tcl]] set auto_index(::safe::tkInterpInit) [list source [file join $dir safetk.tcl]] set auto_index(::safe::loadTk) [list source [file join $dir safetk.tcl]] set auto_index(::safe::TkInit) [list source [file join $dir safetk.tcl]] set auto_index(::safe::allowTk) [list source [file join $dir safetk.tcl]] set auto_index(::safe::disallowTk) [list source [file join $dir safetk.tcl]] set auto_index(::safe::tkDelete) [list source [file join $dir safetk.tcl]] set auto_index(::safe::tkTopLevel) [list source [file join $dir safetk.tcl]] set auto_index(::tk::ScaleActivate) [list source [file join $dir scale.tcl]] set auto_index(::tk::ScaleButtonDown) [list source [file join $dir scale.tcl]] set auto_index(::tk::ScaleDrag) [list source [file join $dir scale.tcl]] set auto_index(::tk::ScaleEndDrag) [list source [file join $dir scale.tcl]] set auto_index(::tk::ScaleIncrement) [list source [file join $dir scale.tcl]] set auto_index(::tk::ScaleControlPress) [list source [file join $dir scale.tcl]] set auto_index(::tk::ScaleButton2Down) [list source [file join $dir scale.tcl]] set auto_index(::tk::ScrollButtonDown) [list source [file join $dir scrlbar.tcl]] set auto_index(::tk::ScrollButtonUp) [list source [file join $dir scrlbar.tcl]] set auto_index(::tk::ScrollSelect) [list source [file join $dir scrlbar.tcl]] set auto_index(::tk::ScrollStartDrag) [list source [file join $dir scrlbar.tcl]] set auto_index(::tk::ScrollDrag) [list source [file join $dir scrlbar.tcl]] set auto_index(::tk::ScrollEndDrag) [list source [file join $dir scrlbar.tcl]] set auto_index(::tk::ScrollByUnits) [list source [file join $dir scrlbar.tcl]] set auto_index(::tk::ScrollByPages) [list source [file join $dir scrlbar.tcl]] set auto_index(::tk::ScrollToPos) [list source [file join $dir scrlbar.tcl]] set auto_index(::tk::ScrollTopBottom) [list source [file join $dir scrlbar.tcl]] set auto_index(::tk::ScrollButton2Down) [list source [file join $dir scrlbar.tcl]] set auto_index(::tk::spinbox::Invoke) [list source [file join $dir spinbox.tcl]] set auto_index(::tk::spinbox::ClosestGap) [list source [file join $dir spinbox.tcl]] set auto_index(::tk::spinbox::ButtonDown) [list source [file join $dir spinbox.tcl]] set auto_index(::tk::spinbox::ButtonUp) [list source [file join $dir spinbox.tcl]] set auto_index(::tk::spinbox::MouseSelect) [list source [file join $dir spinbox.tcl]] set auto_index(::tk::spinbox::Paste) [list source [file join $dir spinbox.tcl]] set auto_index(::tk::spinbox::Motion) [list source [file join $dir spinbox.tcl]] set auto_index(::tk::spinbox::AutoScan) [list source [file join $dir spinbox.tcl]] set auto_index(::tk::spinbox::KeySelect) [list source [file join $dir spinbox.tcl]] set auto_index(::tk::spinbox::Insert) [list source [file join $dir spinbox.tcl]] set auto_index(::tk::spinbox::Backspace) [list source [file join $dir spinbox.tcl]] set auto_index(::tk::spinbox::SeeInsert) [list source [file join $dir spinbox.tcl]] set auto_index(::tk::spinbox::SetCursor) [list source [file join $dir spinbox.tcl]] set auto_index(::tk::spinbox::Transpose) [list source [file join $dir spinbox.tcl]] set auto_index(::tk::spinbox::PreviousWord) [list source [file join $dir spinbox.tcl]] set auto_index(::tk::spinbox::GetSelection) [list source [file join $dir spinbox.tcl]] set auto_index(::tk::TearOffMenu) [list source [file join $dir tearoff.tcl]] set auto_index(::tk::MenuDup) [list source [file join $dir tearoff.tcl]] set auto_index(::tk::TextClosestGap) [list source [file join $dir text.tcl]] set auto_index(::tk::TextButton1) [list source [file join $dir text.tcl]] set auto_index(::tk::TextSelectTo) [list source [file join $dir text.tcl]] set auto_index(::tk::TextKeyExtend) [list source [file join $dir text.tcl]] set auto_index(::tk::TextPaste) [list source [file join $dir text.tcl]] set auto_index(::tk::TextAutoScan) [list source [file join $dir text.tcl]] set auto_index(::tk::TextSetCursor) [list source [file join $dir text.tcl]] set auto_index(::tk::TextKeySelect) [list source [file join $dir text.tcl]] set auto_index(::tk::TextResetAnchor) [list source [file join $dir text.tcl]] set auto_index(::tk::TextInsert) [list source [file join $dir text.tcl]] set auto_index(::tk::TextUpDownLine) [list source [file join $dir text.tcl]] set auto_index(::tk::TextPrevPara) [list source [file join $dir text.tcl]] set auto_index(::tk::TextNextPara) [list source [file join $dir text.tcl]] set auto_index(::tk::TextScrollPages) [list source [file join $dir text.tcl]] set auto_index(::tk::TextTranspose) [list source [file join $dir text.tcl]] set auto_index(tk_textCopy) [list source [file join $dir text.tcl]] set auto_index(tk_textCut) [list source [file join $dir text.tcl]] set auto_index(tk_textPaste) [list source [file join $dir text.tcl]] set auto_index(::tk::TextNextPos) [list source [file join $dir text.tcl]] set auto_index(::tk::TextPrevPos) [list source [file join $dir text.tcl]] set auto_index(::tk::PlaceWindow) [list source [file join $dir tk.tcl]] set auto_index(::tk::SetFocusGrab) [list source [file join $dir tk.tcl]] set auto_index(::tk::RestoreFocusGrab) [list source [file join $dir tk.tcl]] set auto_index(::tk::ScreenChanged) [list source [file join $dir tk.tcl]] set auto_index(::tk::EventMotifBindings) [list source [file join $dir tk.tcl]] set auto_index(::tk::CancelRepeat) [list source [file join $dir tk.tcl]] set auto_index(::tk::TabToWindow) [list source [file join $dir tk.tcl]] set auto_index(::tk::dialog::file::) [list source [file join $dir tkfbox.tcl]] set auto_index(::tk::dialog::file::Config) [list source [file join $dir tkfbox.tcl]] set auto_index(::tk::dialog::file::Create) [list source [file join $dir tkfbox.tcl]] set auto_index(::tk::dialog::file::SetSelectMode) [list source [file join $dir tkfbox.tcl]] set auto_index(::tk::dialog::file::UpdateWhenIdle) [list source [file join $dir tkfbox.tcl]] set auto_index(::tk::dialog::file::Update) [list source [file join $dir tkfbox.tcl]] set auto_index(::tk::dialog::file::SetPathSilently) [list source [file join $dir tkfbox.tcl]] set auto_index(::tk::dialog::file::SetPath) [list source [file join $dir tkfbox.tcl]] set auto_index(::tk::dialog::file::SetFilter) [list source [file join $dir tkfbox.tcl]] set auto_index(::tk::dialog::file::ResolveFile) [list source [file join $dir tkfbox.tcl]] set auto_index(::tk::dialog::file::EntFocusIn) [list source [file join $dir tkfbox.tcl]] set auto_index(::tk::dialog::file::EntFocusOut) [list source [file join $dir tkfbox.tcl]] set auto_index(::tk::dialog::file::ActivateEnt) [list source [file join $dir tkfbox.tcl]] set auto_index(::tk::dialog::file::VerifyFileName) [list source [file join $dir tkfbox.tcl]] set auto_index(::tk::dialog::file::InvokeBtn) [list source [file join $dir tkfbox.tcl]] set auto_index(::tk::dialog::file::UpDirCmd) [list source [file join $dir tkfbox.tcl]] set auto_index(::tk::dialog::file::JoinFile) [list source [file join $dir tkfbox.tcl]] set auto_index(::tk::dialog::file::OkCmd) [list source [file join $dir tkfbox.tcl]] set auto_index(::tk::dialog::file::CancelCmd) [list source [file join $dir tkfbox.tcl]] set auto_index(::tk::dialog::file::ListBrowse) [list source [file join $dir tkfbox.tcl]] set auto_index(::tk::dialog::file::ListInvoke) [list source [file join $dir tkfbox.tcl]] set auto_index(::tk::dialog::file::Done) [list source [file join $dir tkfbox.tcl]] set auto_index(::tk::MotifFDialog) [list source [file join $dir xmfbox.tcl]] set auto_index(::tk::MotifFDialog_Create) [list source [file join $dir xmfbox.tcl]] set auto_index(::tk::MotifFDialog_FileTypes) [list source [file join $dir xmfbox.tcl]] set auto_index(::tk::MotifFDialog_SetFilter) [list source [file join $dir xmfbox.tcl]] set auto_index(::tk::MotifFDialog_Config) [list source [file join $dir xmfbox.tcl]] set auto_index(::tk::MotifFDialog_BuildUI) [list source [file join $dir xmfbox.tcl]] set auto_index(::tk::MotifFDialog_SetListMode) [list source [file join $dir xmfbox.tcl]] set auto_index(::tk::MotifFDialog_MakeSList) [list source [file join $dir xmfbox.tcl]] set auto_index(::tk::MotifFDialog_InterpFilter) [list source [file join $dir xmfbox.tcl]] set auto_index(::tk::MotifFDialog_Update) [list source [file join $dir xmfbox.tcl]] set auto_index(::tk::MotifFDialog_LoadFiles) [list source [file join $dir xmfbox.tcl]] set auto_index(::tk::MotifFDialog_BrowseDList) [list source [file join $dir xmfbox.tcl]] set auto_index(::tk::MotifFDialog_ActivateDList) [list source [file join $dir xmfbox.tcl]] set auto_index(::tk::MotifFDialog_BrowseFList) [list source [file join $dir xmfbox.tcl]] set auto_index(::tk::MotifFDialog_ActivateFList) [list source [file join $dir xmfbox.tcl]] set auto_index(::tk::MotifFDialog_ActivateFEnt) [list source [file join $dir xmfbox.tcl]] set auto_index(::tk::MotifFDialog_ActivateSEnt) [list source [file join $dir xmfbox.tcl]] set auto_index(::tk::MotifFDialog_OkCmd) [list source [file join $dir xmfbox.tcl]] set auto_index(::tk::MotifFDialog_FilterCmd) [list source [file join $dir xmfbox.tcl]] set auto_index(::tk::MotifFDialog_CancelCmd) [list source [file join $dir xmfbox.tcl]] set auto_index(::tk::ListBoxKeyAccel_Set) [list source [file join $dir xmfbox.tcl]] set auto_index(::tk::ListBoxKeyAccel_Unset) [list source [file join $dir xmfbox.tcl]] set auto_index(::tk::ListBoxKeyAccel_Key) [list source [file join $dir xmfbox.tcl]] set auto_index(::tk::ListBoxKeyAccel_Goto) [list source [file join $dir xmfbox.tcl]] set auto_index(::tk::ListBoxKeyAccel_Reset) [list source [file join $dir xmfbox.tcl]] set auto_index(tk_getFileType) [list source [file join $dir xmfbox.tcl]] set auto_index(::tk::unsupported::ExposePrivateCommand) [list source [file join $dir unsupported.tcl]] set auto_index(::tk::unsupported::ExposePrivateVariable) [list source [file join $dir unsupported.tcl]] set auto_index(::tk::fontchooser) [list source [file join $dir fontchooser.tcl]]
{ "pile_set_name": "Github" }
{ "100": "Continue", "101": "Switching Protocols", "102": "Processing", "200": "OK", "201": "Created", "202": "Accepted", "203": "Non-Authoritative Information", "204": "No Content", "205": "Reset Content", "206": "Partial Content", "207": "Multi-Status", "208": "Already Reported", "226": "IM Used", "300": "Multiple Choices", "301": "Moved Permanently", "302": "Found", "303": "See Other", "304": "Not Modified", "305": "Use Proxy", "306": "(Unused)", "307": "Temporary Redirect", "308": "Permanent Redirect", "400": "Bad Request", "401": "Unauthorized", "402": "Payment Required", "403": "Forbidden", "404": "Not Found", "405": "Method Not Allowed", "406": "Not Acceptable", "407": "Proxy Authentication Required", "408": "Request Timeout", "409": "Conflict", "410": "Gone", "411": "Length Required", "412": "Precondition Failed", "413": "Payload Too Large", "414": "URI Too Long", "415": "Unsupported Media Type", "416": "Range Not Satisfiable", "417": "Expectation Failed", "418": "I'm a teapot", "421": "Misdirected Request", "422": "Unprocessable Entity", "423": "Locked", "424": "Failed Dependency", "425": "Unordered Collection", "426": "Upgrade Required", "428": "Precondition Required", "429": "Too Many Requests", "431": "Request Header Fields Too Large", "451": "Unavailable For Legal Reasons", "500": "Internal Server Error", "501": "Not Implemented", "502": "Bad Gateway", "503": "Service Unavailable", "504": "Gateway Timeout", "505": "HTTP Version Not Supported", "506": "Variant Also Negotiates", "507": "Insufficient Storage", "508": "Loop Detected", "509": "Bandwidth Limit Exceeded", "510": "Not Extended", "511": "Network Authentication Required" }
{ "pile_set_name": "Github" }
using System; using Dev2.Interfaces; using System.Runtime.Serialization; using System.Data.Linq.Mapping; using System.ComponentModel.DataAnnotations; using Newtonsoft.Json; namespace Dev2.Runtime.ESB.Execution { [Table(Name = "AuditLog")] [DataContract(Name = "AuditLog", Namespace = "")] public class AuditLog { [JsonProperty] [Column(Name = "Id", IsDbGenerated = true, DbType = "Integer", IsPrimaryKey = true)] [Key] [DataMember] public int Id { get; set; } [JsonProperty] [Column(Name = "WorkflowID", CanBeNull = true)] [DataMember] public string WorkflowID { get; set; } [JsonProperty] [Column(Name = "ExecutionID", CanBeNull = true)] [DataMember] public string ExecutionID { get; set; } [JsonProperty] [Column(Name = "ExecutionOrigin", CanBeNull = true)] [DataMember] public long ExecutionOrigin { get; set; } [JsonProperty] [Column(Name = "IsSubExecution", CanBeNull = true)] [DataMember] public long IsSubExecution { get; set; } [JsonProperty] [Column(Name = "IsRemoteWorkflow", CanBeNull = true)] [DataMember] public long IsRemoteWorkflow { get; set; } [JsonProperty] [DataMember] [Column(Name = "WorkflowName", CanBeNull = true)] public string WorkflowName { get; set; } [JsonProperty] [Column(Name = "AuditType", CanBeNull = true)] [DataMember] public string AuditType { get; set; } [JsonProperty] [Column(Name = "PreviousActivity", CanBeNull = true)] [DataMember] public string PreviousActivity { get; set; } [JsonProperty] [Column(Name = "PreviousActivityType", CanBeNull = true)] [DataMember] public string PreviousActivityType { get; set; } [JsonProperty] [Column(Name = "PreviousActivityID", CanBeNull = true)] [DataMember] public string PreviousActivityId { get; set; } [JsonProperty] [Column(Name = "NextActivity", CanBeNull = true)] [DataMember] public string NextActivity { get; set; } [JsonProperty] [Column(Name = "NextActivityType", CanBeNull = true)] [DataMember] public string NextActivityType { get; set; } [JsonProperty] [Column(Name = "NextActivityID", CanBeNull = true)] [DataMember] public string NextActivityId { get; set; } [JsonProperty] [Column(Name = "ServerID", CanBeNull = true)] [DataMember] public string ServerID { get; set; } [JsonProperty] [Column(Name = "ParentID", CanBeNull = true)] [DataMember] public string ParentID { get; set; } [JsonProperty] [Column(Name = "ExecutingUser", CanBeNull = true)] [DataMember] public string ExecutingUser { get; set; } [JsonProperty] [Column(Name = "ExecutionOriginDescription", CanBeNull = true)] [DataMember] public string ExecutionOriginDescription { get; set; } [JsonProperty] [Column(Name = "ExecutionToken", CanBeNull = true)] [DataMember] public string ExecutionToken { get; set; } [JsonProperty] [Column(Name = "AdditionalDetail", CanBeNull = true)] [DataMember] public string AdditionalDetail { get; set; } [JsonProperty] [Column(Name = "Environment", CanBeNull = true)] [DataMember] public string Environment { get; set; } [JsonProperty] [Column(Name = "AuditDate", CanBeNull = true)] [DataMember] public string AuditDate { get; set; } public AuditLog() { } public AuditLog(IDSFDataObject dsfDataObject, string auditType, string detail, IDev2Activity previousActivity, IDev2Activity nextActivity) { WorkflowID = dsfDataObject.ResourceID.ToString(); ExecutionID = dsfDataObject.ExecutionID.ToString(); ExecutionOrigin = Convert.ToInt64(dsfDataObject.ExecutionOrigin); IsSubExecution = Convert.ToInt64(dsfDataObject.IsSubExecution); IsRemoteWorkflow = Convert.ToInt64(dsfDataObject.IsRemoteWorkflow()); WorkflowName = dsfDataObject.ServiceName; ServerID = dsfDataObject.ServerID.ToString(); ParentID = dsfDataObject.ParentID.ToString(); ExecutingUser = dsfDataObject.ExecutingUser?.ToString(); ExecutionOriginDescription = dsfDataObject.ExecutionOriginDescription; ExecutionToken = dsfDataObject.ExecutionToken.ToJson(); Environment = dsfDataObject.Environment.ToJson(); AuditDate = DateTime.Now.ToString(); AuditType = auditType; AdditionalDetail = detail; if (previousActivity != null) { PreviousActivity = previousActivity.GetDisplayName(); PreviousActivityType = previousActivity.GetType().ToString(); PreviousActivityId = previousActivity.ActivityId.ToString(); } if (nextActivity != null) { NextActivity = nextActivity.GetDisplayName(); NextActivityType = nextActivity.GetType().ToString(); NextActivityId = nextActivity.ActivityId.ToString(); } } public override bool Equals(object obj) { if (obj is AuditLog auditLog) { return Equals(auditLog); } return false; } public bool Equals(AuditLog other) { var eq = true; eq &= Id == other.Id; eq &= WorkflowID == other.WorkflowID; eq &= ExecutionID == other.ExecutionID; eq &= ExecutionOrigin == other.ExecutionOrigin; eq &= IsSubExecution == other.IsSubExecution; eq &= IsRemoteWorkflow == other.IsRemoteWorkflow; eq &= WorkflowName == other.WorkflowName; eq &= AuditType == other.AuditType; eq &= PreviousActivity == other.PreviousActivity; eq &= PreviousActivityType == other.PreviousActivityType; eq &= PreviousActivityId == other.PreviousActivityId; eq &= NextActivity == other.NextActivity; eq &= NextActivityType == other.NextActivityType; eq &= NextActivityId == other.NextActivityId; eq &= ServerID == other.ServerID; eq &= ParentID == other.ParentID; eq &= ExecutingUser == other.ExecutingUser; eq &= ExecutionOriginDescription == other.ExecutionOriginDescription; eq &= ExecutionToken == other.ExecutionToken; eq &= AdditionalDetail == other.AdditionalDetail; eq &= Environment == other.Environment; eq &= AuditDate == other.AuditDate; return eq; } public override int GetHashCode() { unchecked { var hashCode = 1561563491; hashCode = (hashCode * 157) + Id.GetHashCode(); hashCode = (hashCode * 157) + WorkflowID.GetHashCode(); hashCode = (hashCode * 157) + ExecutionID.GetHashCode(); hashCode = (hashCode * 157) + ExecutionOrigin.GetHashCode(); hashCode = (hashCode * 157) + IsSubExecution.GetHashCode(); hashCode = (hashCode * 157) + IsRemoteWorkflow.GetHashCode(); hashCode = (hashCode * 157) + WorkflowName.GetHashCode(); hashCode = (hashCode * 157) + AuditType.GetHashCode(); hashCode = (hashCode * 157) + PreviousActivity.GetHashCode(); hashCode = (hashCode * 157) + PreviousActivityType.GetHashCode(); hashCode = (hashCode * 157) + PreviousActivityId.GetHashCode(); hashCode = (hashCode * 157) + NextActivity.GetHashCode(); hashCode = (hashCode * 157) + NextActivityType.GetHashCode(); hashCode = (hashCode * 157) + NextActivityId.GetHashCode(); hashCode = (hashCode * 157) + ServerID.GetHashCode(); hashCode = (hashCode * 157) + ParentID.GetHashCode(); hashCode = (hashCode * 157) + ExecutingUser.GetHashCode(); hashCode = (hashCode * 157) + ExecutionOriginDescription.GetHashCode(); hashCode = (hashCode * 157) + ExecutionToken.GetHashCode(); hashCode = (hashCode * 157) + AdditionalDetail.GetHashCode(); hashCode = (hashCode * 157) + Environment.GetHashCode(); hashCode = (hashCode * 157) + AuditDate.GetHashCode(); return hashCode; } } } }
{ "pile_set_name": "Github" }
// --------------------------------------------------------------------------------------------------------------------- // // Author: Rafal Bromirski // www: http://paranoida.com/ // twitter: http://twitter.com/paranoida // dribbble: http://dribbble.com/paranoida // // Licensed under a MIT License // // --------------------------------------------------------------------------------------------------------------------- // // Requirements: // Sass 3.2.0+ // // Version: // 1.2.3 // developed on 10/03/2013 // // Mixins: // @ min-screen(width) // shortcut for @media screen and (min-width ...) // @ max-screen(width) // shortcut for @media screen and (max-width ...) // @ screen(min-width, max-width) // shortcut for @media screen and (min-width ...) and (max-width ...) // --- // @ min-screen-height(height) // shortcut for @media screen and (min-height ...) // @ max-screen-height(height) // shortcut for @media screen and (max-height ...) // @ screen-height(min-height, max-height) // shortcut for @media screen and (min-height ...) and (max-height ...) // --- // @ iphone3 // only iPhone (2, 3G, 3GS) landscape & portrait // @ iphone3-landscape // only iPhone (2, 3G, 3GS) only landscape // @ iphone3-portrait // only iPhone (2, 3G, 3GS) only portrait // --- // @ iphone4 // only iPhone (4, 4S) landscape & portrait // @ iphone4-landscape // only iPhone (4, 4S) only landscape // @ iphone4-portrait // only iPhone (4, 4S) only portrait // --- // @ iphone5 // only iPhone (5) landscape & portrait // @ iphone5-landscape // only iPhone (5) only landscape // @ iphone5-portrait // only iPhone (5) only portrait // --- // @ ipad // all iPads (1, 2, 3, 4, Mini) landscape & portrait // @ ipad-landscape // all iPads (1, 2, 3, 4, Mini) only landscape // @ ipad-portrait // all iPads (1, 2, 3, 4, Mini) only portrait // --- // @ ipad-retina // only iPad (3, 4) landscape & portrait // @ ipad-retina-landscape // only iPad (3, 4) only landscape // @ ipad-retina-portrait // only iPad (3, 4) only portrait // --- // @ hdpi(ratio) // devices with hidpi displays (default ratio: 1.3) // // --------------------------------------------------------------------------------------------------------------------- // --------------------------------------------------------------------------------------------------------------------- // --- screen ---------------------------------------------------------------------------------------------------------- // --------------------------------------------------------------------------------------------------------------------- @mixin screen($res-min, $res-max) { @media screen and ( min-width: $res-min ) and ( max-width: $res-max ) { @content; } } @mixin max-screen($res) { @media screen and ( max-width: $res ) { @content; } } @mixin min-screen($res) { @media screen and ( min-width: $res ) { @content; } } @mixin screen-height($res-min, $res-max) { @media screen and ( min-height: $res-min ) and ( max-height: $res-max ) { @content; } } @mixin max-screen-height($res) { @media screen and ( max-height: $res ) { @content; } } @mixin min-screen-height($res) { @media screen and ( min-height: $res ) { @content; } } // --------------------------------------------------------------------------------------------------------------------- // --- hdpi ------------------------------------------------------------------------------------------------------------ // --------------------------------------------------------------------------------------------------------------------- // Based on bourbon hidpi-media-queries file (https://github.com/thoughtbot/bourbon/blob/master/app/assets/stylesheets/css3/_hidpi-media-query.scss) // HiDPI mixin. Default value set to 1.3 to target Google Nexus 7 (http://bjango.com/articles/min-device-pixel-ratio/) @mixin hdpi($ratio: 1.3) { @media only screen and (-webkit-min-device-pixel-ratio: $ratio), only screen and (min--moz-device-pixel-ratio: $ratio), only screen and (-o-min-device-pixel-ratio: #{$ratio}/1), only screen and (min-resolution: #{round($ratio*96)}dpi), only screen and (min-resolution: #{$ratio}dppx) { @content; } } // --------------------------------------------------------------------------------------------------------------------- // --- iphone ---------------------------------------------------------------------------------------------------------- // --------------------------------------------------------------------------------------------------------------------- @mixin iphone3 { @media only screen and (min-device-width: 320px) and (max-device-width: 480px) and (-webkit-device-pixel-ratio: 1) { @content; } } @mixin iphone3-portrait { @media only screen and (min-device-width: 320px) and (max-device-width: 480px) and (-webkit-device-pixel-ratio: 1) and (orientation:portrait) { @content; } } @mixin iphone3-landscape { @media only screen and (min-device-width: 320px) and (max-device-width: 480px) and (-webkit-device-pixel-ratio: 1) and (orientation:landscape) { @content; } } // --------------------------------------------------------------------------------------------------------------------- // --- iphone-retina --------------------------------------------------------------------------------------------------- // --------------------------------------------------------------------------------------------------------------------- @mixin iphone4 { @media only screen and (min-device-width: 320px) and (max-device-width: 480px) and (-webkit-device-pixel-ratio: 2) and (device-aspect-ratio: 2/3) { @content; } } @mixin iphone4-portrait { @media only screen and (min-device-width: 320px) and (max-device-width: 480px) and (-webkit-device-pixel-ratio: 2) and (device-aspect-ratio: 2/3) and (orientation:portrait) { @content; } } @mixin iphone4-landscape { @media only screen and (min-device-width: 320px) and (max-device-width: 480px) and (-webkit-device-pixel-ratio: 2) and (device-aspect-ratio: 2/3) and (orientation:landscape) { @content; } } // --------------------------------------------------------------------------------------------------------------------- // --- iphone-5 -------------------------------------------------------------------------------------------------------- // --------------------------------------------------------------------------------------------------------------------- @mixin iphone5 { @media only screen and (min-device-width: 320px) and (max-device-width: 568px) and (-webkit-device-pixel-ratio: 2) and (device-aspect-ratio: 40/71) { @content; } } @mixin iphone5-portrait { @media only screen and (min-device-width: 320px) and (max-device-width: 568px) and (-webkit-device-pixel-ratio: 2) and (device-aspect-ratio: 40/71) and (orientation:portrait) { @content; } } @mixin iphone5-landscape { @media only screen and (min-device-width: 320px) and (max-device-width: 568px) and (-webkit-device-pixel-ratio: 2) and (device-aspect-ratio: 40/71) and (orientation:landscape) { @content; } } // --------------------------------------------------------------------------------------------------------------------- // --- ipads (all) ----------------------------------------------------------------------------------------------------- // --------------------------------------------------------------------------------------------------------------------- @mixin ipad { @media only screen and (min-device-width: 768px) and (max-device-width: 1024px) { @content; } } @mixin ipad-portrait { @media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation:portrait) { @content; } } @mixin ipad-landscape { @media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation:landscape) { @content; } } // --------------------------------------------------------------------------------------------------------------------- // --- ipad-retina ----------------------------------------------------------------------------------------------------- // --------------------------------------------------------------------------------------------------------------------- @mixin ipad-retina { @media screen and (min-device-width: 768px) and (max-device-width: 1024px) and (-webkit-device-pixel-ratio: 2) { @content; } } @mixin ipad-retina-portrait { @media screen and (min-device-width: 768px) and (max-device-width: 1024px) and (-webkit-device-pixel-ratio: 2) and (orientation:portrait) { @content; } } @mixin ipad-retina-landscape { @media screen and (min-device-width: 768px) and (max-device-width: 1024px) and (-webkit-device-pixel-ratio: 2) and (orientation:landscape) { @content; } }
{ "pile_set_name": "Github" }
; RUN: opt -loop-idiom -S < %s | FileCheck %s target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-unknown-linux-gnu" define void @test1() { entry: br label %for.body.preheader for.body.preheader: ; preds = %for.cond br label %for.body for.body: ; preds = %for.body, %for.body.preheader %indvars.iv = phi i32 [ 0, %for.body.preheader ], [ %indvars.iv.next, %for.body ] %add.ptr3 = getelementptr inbounds i32, i32* null, i32 %indvars.iv %add.ptr4 = getelementptr inbounds i32, i32* %add.ptr3, i32 1 %0 = load i32, i32* %add.ptr4, align 4 store i32 %0, i32* %add.ptr3, align 4 %indvars.iv.next = add nsw i32 %indvars.iv, 1 %exitcond = icmp ne i32 %indvars.iv.next, 6 br i1 %exitcond, label %for.body, label %for.body.preheader } ; CHECK-LABEL: define void @test1( ; CHECK: call void @llvm.memcpy.p0i8.p0i8.i64(i8* align 4 null, i8* align 4 inttoptr (i64 4 to i8*), i64 24, i1 false) ; CHECK-NOT: store define void @test1_no_null_opt() #0 { entry: br label %for.body.preheader for.body.preheader: ; preds = %for.cond br label %for.body for.body: ; preds = %for.body, %for.body.preheader %indvars.iv = phi i32 [ 0, %for.body.preheader ], [ %indvars.iv.next, %for.body ] %add.ptr3 = getelementptr inbounds i32, i32* null, i32 %indvars.iv %add.ptr4 = getelementptr inbounds i32, i32* %add.ptr3, i32 1 %0 = load i32, i32* %add.ptr4, align 4 store i32 %0, i32* %add.ptr3, align 4 %indvars.iv.next = add nsw i32 %indvars.iv, 1 %exitcond = icmp ne i32 %indvars.iv.next, 6 br i1 %exitcond, label %for.body, label %for.body.preheader } ; CHECK-LABEL: define void @test1_no_null_opt( ; CHECK-NOT: call void @llvm.memcpy ; CHECK: getelementptr ; CHECK: getelementptr ; CHECK: load ; CHECK: store attributes #0 = { "null-pointer-is-valid"="true" }
{ "pile_set_name": "Github" }
#pragma once #include <Register/Utility.hpp> namespace Kvasir { //Base Timer 0 namespace Bt4PwmTmcr{ ///<Timer Control Register using Addr = Register::Address<0x4002520c,0xffff8080,0x00000000,unsigned>; ///Count clock selection bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(14,12),Register::ReadWriteAccess,unsigned> cks20{}; ///Restart enable bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(11,11),Register::ReadWriteAccess,unsigned> rtgen{}; ///Pulse output mask bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(10,10),Register::ReadWriteAccess,unsigned> pmsk{}; ///Trigger input edge selection bits constexpr Register::FieldLocation<Addr,Register::maskFromRange(9,8),Register::ReadWriteAccess,unsigned> egs{}; ///Timer function selection bits constexpr Register::FieldLocation<Addr,Register::maskFromRange(6,4),Register::ReadWriteAccess,unsigned> fmd{}; ///Output polarity specification bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(3,3),Register::ReadWriteAccess,unsigned> osel{}; ///Mode selection bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(2,2),Register::ReadWriteAccess,unsigned> mdse{}; ///Count operation enable bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(1,1),Register::ReadWriteAccess,unsigned> cten{}; ///Software trigger bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(0,0),Register::ReadWriteAccess,unsigned> strg{}; } namespace Bt4PwmTmcr2{ ///<Timer Control Register 2 using Addr = Register::Address<0x40025211,0xfffffffe,0x00000000,unsigned char>; ///Count clock selection bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(0,0),Register::ReadWriteAccess,unsigned> cks3{}; } namespace Bt4PwmStc{ ///< Status Control Register using Addr = Register::Address<0x40025210,0xffffff88,0x00000000,unsigned char>; ///Trigger interrupt request enable bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(6,6),Register::ReadWriteAccess,unsigned> tgie{}; ///Duty match interrupt request enable bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(5,5),Register::ReadWriteAccess,unsigned> dtie{}; ///Underflow interrupt request enable bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(4,4),Register::ReadWriteAccess,unsigned> udie{}; ///Trigger interrupt request bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(2,2),Register::ReadWriteAccess,unsigned> tgir{}; ///Duty match interrupt request bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(1,1),Register::ReadWriteAccess,unsigned> dtir{}; ///Underflow interrupt request bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(0,0),Register::ReadWriteAccess,unsigned> udir{}; } namespace Bt4PwmPcsr{ ///<PWM Cycle Set Register using Addr = Register::Address<0x40025200,0xffffffff,0x00000000,unsigned>; } namespace Bt4PwmPdut{ ///<PWM Duty Set Register using Addr = Register::Address<0x40025204,0xffffffff,0x00000000,unsigned>; } namespace Bt4PwmTmr{ ///<Timer Register using Addr = Register::Address<0x40025208,0xffffffff,0x00000000,unsigned>; } namespace Bt4PpgTmcr{ ///<Timer Control Register using Addr = Register::Address<0x4002520c,0xffff8080,0x00000000,unsigned>; ///Count clock selection bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(14,12),Register::ReadWriteAccess,unsigned> cks20{}; ///Restart enable bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(11,11),Register::ReadWriteAccess,unsigned> rtgen{}; /// Pulse output mask bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(10,10),Register::ReadWriteAccess,unsigned> pmsk{}; ///Trigger input edge selection bits constexpr Register::FieldLocation<Addr,Register::maskFromRange(9,8),Register::ReadWriteAccess,unsigned> egs{}; ///Timer function selection bits constexpr Register::FieldLocation<Addr,Register::maskFromRange(6,4),Register::ReadWriteAccess,unsigned> fmd{}; ///Output polarity specification bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(3,3),Register::ReadWriteAccess,unsigned> osel{}; ///Mode selection bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(2,2),Register::ReadWriteAccess,unsigned> mdse{}; ///Count operation enable bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(1,1),Register::ReadWriteAccess,unsigned> cten{}; ///Software trigger bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(0,0),Register::ReadWriteAccess,unsigned> strg{}; } namespace Bt4PpgTmcr2{ ///<Timer Control Register 2 using Addr = Register::Address<0x40025211,0xfffffffd,0x00000000,unsigned char>; ///Count clock selection bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(1,1),Register::ReadWriteAccess,unsigned> cks3{}; } namespace Bt4PpgStc{ ///<Status Control Register using Addr = Register::Address<0x40025210,0xffffffaa,0x00000000,unsigned char>; ///Trigger interrupt request enable bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(6,6),Register::ReadWriteAccess,unsigned> tgie{}; ///Underflow interrupt request enable bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(4,4),Register::ReadWriteAccess,unsigned> udie{}; ///Trigger interrupt request bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(2,2),Register::ReadWriteAccess,unsigned> tgir{}; ///Underflow interrupt request bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(0,0),Register::ReadWriteAccess,unsigned> udir{}; } namespace Bt4PpgPrll{ ///<LOW Width Reload Register using Addr = Register::Address<0x40025200,0xffffffff,0x00000000,unsigned>; } namespace Bt4PpgPrlh{ ///<HIGH Width Reload Register using Addr = Register::Address<0x40025204,0xffffffff,0x00000000,unsigned>; } namespace Bt4PpgTmr{ ///<Timer Register using Addr = Register::Address<0x40025208,0xffffffff,0x00000000,unsigned>; } namespace Bt4RtTmcr{ ///<Timer Control Register using Addr = Register::Address<0x4002520c,0xffff8c00,0x00000000,unsigned>; ///Count clock selection bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(14,12),Register::ReadWriteAccess,unsigned> cks20{}; ///Trigger input edge selection bits constexpr Register::FieldLocation<Addr,Register::maskFromRange(9,8),Register::ReadWriteAccess,unsigned> egs{}; ///32-bit timer selection bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(7,7),Register::ReadWriteAccess,unsigned> t32{}; ///Timer function selection bits constexpr Register::FieldLocation<Addr,Register::maskFromRange(6,4),Register::ReadWriteAccess,unsigned> fmd{}; ///Output polarity specification bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(3,3),Register::ReadWriteAccess,unsigned> osel{}; ///Mode selection bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(2,2),Register::ReadWriteAccess,unsigned> mdse{}; ///Timer enable bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(1,1),Register::ReadWriteAccess,unsigned> cten{}; ///Software trigger bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(0,0),Register::ReadWriteAccess,unsigned> strg{}; } namespace Bt4RtTmcr2{ ///<Timer Control Register 2 using Addr = Register::Address<0x40025211,0xfffffffe,0x00000000,unsigned char>; ///Count clock selection bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(0,0),Register::ReadWriteAccess,unsigned> cks3{}; } namespace Bt4RtStc{ ///<Status Control Register using Addr = Register::Address<0x40025210,0xffffffaa,0x00000000,unsigned char>; ///Trigger interrupt request enable bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(6,6),Register::ReadWriteAccess,unsigned> tgie{}; ///Underflow interrupt request enable bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(4,4),Register::ReadWriteAccess,unsigned> udie{}; ///Trigger interrupt request bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(2,2),Register::ReadWriteAccess,unsigned> tgir{}; ///Underflow interrupt request bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(0,0),Register::ReadWriteAccess,unsigned> udir{}; } namespace Bt4RtPcsr{ ///<PWM Cycle Set Register using Addr = Register::Address<0x40025200,0xffffffff,0x00000000,unsigned>; } namespace Bt4RtTmr{ ///<Timer Register using Addr = Register::Address<0x40025208,0xffffffff,0x00000000,unsigned>; } namespace Bt4PwcTmcr{ ///<Timer Control Register using Addr = Register::Address<0x4002520c,0xffff8809,0x00000000,unsigned>; ///Count clock selection bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(14,12),Register::ReadWriteAccess,unsigned> cks20{}; ///Measurement edge selection bits constexpr Register::FieldLocation<Addr,Register::maskFromRange(10,8),Register::ReadWriteAccess,unsigned> egs{}; ///32-bit timer selection bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(7,7),Register::ReadWriteAccess,unsigned> t32{}; ///Timer function selection bits constexpr Register::FieldLocation<Addr,Register::maskFromRange(6,4),Register::ReadWriteAccess,unsigned> fmd{}; ///Mode selection bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(2,2),Register::ReadWriteAccess,unsigned> mdse{}; ///Timer enable bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(1,1),Register::ReadWriteAccess,unsigned> cten{}; } namespace Bt4PwcTmcr2{ ///<Timer Control Register 2 using Addr = Register::Address<0x40025211,0xfffffffe,0x00000000,unsigned char>; ///Count clock selection bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(0,0),Register::ReadWriteAccess,unsigned> cks3{}; } namespace Bt4PwcStc{ ///<Status Control Register using Addr = Register::Address<0x40025210,0xffffff2a,0x00000000,unsigned char>; ///Error flag bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(7,7),Register::Access<Register::AccessType::readOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> err{}; ///Measurement completion interrupt request enable bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(6,6),Register::ReadWriteAccess,unsigned> edie{}; ///Overflow interrupt request enable bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(4,4),Register::ReadWriteAccess,unsigned> ovie{}; ///Measurement completion interrupt request bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(2,2),Register::Access<Register::AccessType::readOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> edir{}; ///Overflow interrupt request bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(0,0),Register::ReadWriteAccess,unsigned> ovir{}; } namespace Bt4PwcDtbf{ ///<Data Buffer Register using Addr = Register::Address<0x40025204,0xffffffff,0x00000000,unsigned>; } }
{ "pile_set_name": "Github" }
%%***************************************************************************** %% sqlpsummary: print summary %% %% SDPT3: version 3.1 %% Copyright (c) 1997 by %% K.C. Toh, M.J. Todd, R.H. Tutuncu %% Last Modified: 16 Sep 2004 %%***************************************************************************** function sqlpsummary(info,ttime,infeas_org,printlevel) iter = info.iter; obj = info.obj; gap = info.gap; relgap = info.relgap; prim_infeas = info.pinfeas; dual_infeas = info.dinfeas; termcode = info.termcode; reldist = info.reldist; resid = info.resid; dimacs = info.dimacs; totaltime = info.cputime; %% preproctime = ttime.preproc; pcholtime = ttime.pchol; dcholtime = ttime.dchol; predtime = ttime.pred; pstep_predtime = ttime.pred_pstep; dstep_predtime = ttime.pred_pstep; corrtime = ttime.corr; pstep_corrtime = ttime.corr_pstep; dstep_corrtime = ttime.corr_dstep; misctime = ttime.misc; %% if (printlevel >= 2) fprintf('\n------------------------------------------------'); fprintf('-------------------\n'); fprintf(' number of iterations = %2.0f\n',iter); end if (termcode <= 0) if (printlevel >=2) fprintf(' primal objective value = %- 9.8e\n',obj(1)); fprintf(' dual objective value = %- 9.8e\n',obj(2)); fprintf(' gap := trace(XZ) = %3.2e\n',gap); fprintf(' relative gap = %3.2e\n',relgap); fprintf(' actual relative gap = %3.2e\n',-diff(obj)/(1+sum(abs(obj)))); if norm(infeas_org) fprintf(' rel. primal infeas (scaled problem) = %3.2e\n',prim_infeas); fprintf(' rel. dual " " " = %3.2e\n',dual_infeas); fprintf(' rel. primal infeas (unscaled problem) = %3.2e\n',infeas_org(1)); fprintf(' rel. dual " " " = %3.2e\n',infeas_org(2)); else fprintf(' rel. primal infeas = %3.2e\n',prim_infeas); fprintf(' rel. dual infeas = %3.2e\n',dual_infeas); end fprintf(' norm(X), norm(y), norm(Z) = %3.1e, %3.1e, %3.1e\n',... info.normX,info.normy,info.normZ); fprintf(' norm(A), norm(b), norm(C) = %3.1e, %3.1e, %3.1e\n',... info.normA,info.normb,info.normC); end elseif (termcode == 1) if (printlevel >=2) fprintf(' residual of primal infeasibility \n') fprintf(' certificate (y,Z) = %3.2e\n',resid); fprintf(' reldist to infeas. <= %3.2e\n',reldist); end elseif (termcode == 2) if (printlevel >=2) fprintf(' residual of dual infeasibility \n') fprintf(' certificate X = %3.2e\n',resid); fprintf(' reldist to infeas. <= %3.2e\n',reldist); end end if (printlevel >=2) fprintf(' Total CPU time (secs) = %3.1f \n',totaltime); fprintf(' CPU time per iteration = %3.1f \n',totaltime/iter); fprintf(' termination code = %2.0f\n',termcode); fprintf(' DIMACS: %.1e %.1e %.1e %.1e %.1e %.1e\n',dimacs); fprintf('------------------------------------------------'); fprintf('-------------------\n'); if (printlevel > 3) fprintf(' Percentage of CPU time spent in various parts \n'); fprintf('------------------------------------------------'); fprintf('-------------------\n'); fprintf(' preproc Xchol Zchol pred pred_steplen corr corr_steplen misc\n') tt = [preproctime, pcholtime, dcholtime, predtime, pstep_predtime, dstep_predtime]; tt = [tt, corrtime, pstep_corrtime, dstep_corrtime, misctime]; tt = tt/sum(tt)*100; fprintf(' %3.1f %3.1f %3.1f %3.1f %3.1f %3.1f ',... tt(1),tt(2),tt(3),tt(4),tt(5),tt(6)); fprintf(' %3.1f %3.1f %3.1f %3.1f\n',tt(7),tt(8),tt(9),tt(10)); fprintf('------------------------------------------------'); fprintf('-------------------\n'); end end %%*****************************************************************************
{ "pile_set_name": "Github" }
define([ 'text!fixtures/pikabu.html', '$', 'modal-center', 'pikabu' ], function(fixture, $, modalCenter) { var Pikabu; var element; var pikabu; describe('Pikabu options', function() { beforeEach(function() { Pikabu = $.fn.pikabu.Constructor; element = $(fixture); }); afterEach(function() { if (element) { element.remove(); element = null; } $('.pikabu__container').removeClass('pikabu__container'); }); describe('creates default options when no options parameter not used', function() { beforeEach(function() { pikabu = new Pikabu(element, { effect: modalCenter }); }); it('throws with no effect defines effect', function() { assert.throws(function() { pikabu = new Pikabu(element); }); }); it('correctly defines header', function() { assert.equal(pikabu.options.structure.header, Pikabu.DEFAULTS.structure.header); assert.isString(pikabu.options.structure.header); }); it('correctly defines footer', function() { assert.equal(pikabu.options.structure.footer, Pikabu.DEFAULTS.structure.footer); assert.isBoolean(pikabu.options.structure.footer); }); it('correctly defines zIndex', function() { assert.equal(pikabu.options.zIndex, 2); assert.isNumber(pikabu.options.zIndex); }); it('correctly defines coverage', function() { assert.equal(pikabu.options.coverage, '100%'); assert.isString(pikabu.options.coverage); }); it('correctly defines duration', function() { assert.equal(pikabu.options.duration, 200); assert.isNumber(pikabu.options.duration); }); it('correctly defines easing', function() { assert.equal(pikabu.options.easing, 'swing'); assert.isString(pikabu.options.easing); }); it('correctly defines events', function() { assert.isFunction(pikabu.options.open); assert.isFunction(pikabu.options.opened); assert.isFunction(pikabu.options.close); assert.isFunction(pikabu.options.closed); }); it('correctly defines container', function() { assert.isDefined(pikabu.options.container); }); }); describe('creates custom options when options parameter used', function() { it('correctly defines effect', function() { pikabu = new Pikabu(element, { effect: modalCenter }); assert.deepEqual(pikabu.options.effect, modalCenter); assert.isFunction(pikabu.options.effect); }); it('correctly defines custom header', function() { pikabu = new Pikabu(element, { effect: modalCenter, structure: { header: '<header>Pinnay</header>' } }); assert.equal(pikabu.options.structure.header, '<header>Pinnay</header>'); assert.isString(pikabu.options.structure.header); }); it('correctly defines custom footer', function() { pikabu = new Pikabu(element, { effect: modalCenter, structure: { footer: '<footer>Stinky foot</footer>' } }); assert.equal(pikabu.options.structure.footer, '<footer>Stinky foot</footer>'); assert.isString(pikabu.options.structure.footer); }); it('correctly defines zIndex of 5', function() { pikabu = new Pikabu(element, { effect: modalCenter, zIndex: 5 }); assert.equal(pikabu.options.zIndex, 5); assert.isNumber(pikabu.options.zIndex); }); it('correctly defines coverage of 80%', function() { pikabu = new Pikabu(element, { effect: modalCenter, coverage: '80%' }); assert.equal(pikabu.options.coverage, '80%'); assert.isString(pikabu.options.coverage); }); it('correctly defines duration of 400', function() { pikabu = new Pikabu(element, { effect: modalCenter, duration: 400 }); assert.equal(pikabu.options.duration, 400); assert.isNumber(pikabu.options.duration); }); it('correctly defines easing as ease-in-out', function() { pikabu = new Pikabu(element, { effect: modalCenter, easing: 'ease-in-out'}); assert.equal(pikabu.options.easing, 'ease-in-out'); assert.isString(pikabu.options.easing); }); it('correctly defines open event', function() { var open = function() { console.log('I\'m open!') }; pikabu = new Pikabu(element, { effect: modalCenter, open: open }); assert.equal(pikabu.options.open, open); assert.isFunction(pikabu.options.open); }); it('correctly defines open event', function() { var open = function() { console.log('Open!') }; pikabu = new Pikabu(element, { effect: modalCenter, open: open }); assert.equal(pikabu.options.open, open); assert.isFunction(pikabu.options.open); }); it('correctly defines opened event', function() { var opened = function() { console.log('Opened!') }; pikabu = new Pikabu(element, { effect: modalCenter, opened: opened }); assert.equal(pikabu.options.opened, opened); assert.isFunction(pikabu.options.opened); }); it('correctly defines close event', function() { var close = function() { console.log('Close!') }; pikabu = new Pikabu(element, { effect: modalCenter, close: close }); assert.equal(pikabu.options.close, close); assert.isFunction(pikabu.options.close); }); it('correctly defines closed event', function() { var closed = function() { console.log('Closed!') }; pikabu = new Pikabu(element, { effect: modalCenter, closed: closed }); assert.equal(pikabu.options.closed, closed); assert.isFunction(pikabu.options.closed); }); it('correctly defines the container element', function() { pikabu = new Pikabu(element, { effect: modalCenter, container: '#pikabu-container' }); assert.equal(pikabu.options.container, '#pikabu-container'); }); }); }); });
{ "pile_set_name": "Github" }
-- Fix up quest 9539 "Totem of Coo" -- Totem of Akida SAI SET @ENTRY := 17360; UPDATE `creature_template` SET `AIName`= 'SmartAI',`ScriptName`='' WHERE `entry`=@ENTRY; DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0; INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES (@ENTRY,0,0,0,19,0,100,0,9539,0,0,0,85,30437,0,0,0,0,0,7,0,0,0,0,0,0,0,'Totem of Akida - Quest accepted - Cast Spell on player'); -- Stillpine Ancestor Akida SAI SET @ENTRY := 17379; UPDATE `creature_template` SET `AIName`= 'SmartAI',`ScriptName`='' WHERE `entry`=@ENTRY; DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0; DELETE FROM `smart_scripts` WHERE `entryorguid` IN (@ENTRY*100) AND `source_type`=9; INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES (@ENTRY,0,0,0,54,0,100,0,0,1,0,0,80,@ENTRY*100,0,0,0,0,0,1,0,0,0,0,0,0,0,'Stillpine Ancestor Akida - Just Summoned - Run Script'), -- Script (@ENTRY*100,9,0,0,0,0,100,0,0,0,0,0,3,0,16995,0,0,0,0,1,0,0,0,0,0,0,0,'Stillpine Ancestor Akida - Script - set model'), (@ENTRY*100,9,1,0,0,0,100,0,0,0,0,0,66,0,0,0,0,0,0,7,0,0,0,0,0,0,0,'Stillpine Ancestor Akida - Script - turn to player'), (@ENTRY*100,9,2,0,0,0,100,0,0,0,0,0,11,25035,0,0,0,0,0,1,0,0,0,0,0,0,0.01745319,'Stillpine Ancestor Akida - Script - Cast Spell'), (@ENTRY*100,9,3,0,0,0,100,0,0,0,0,0,59,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Stillpine Ancestor Akida - Script - Set run on'), (@ENTRY*100,9,4,0,0,0,100,0,4000,4000,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Stillpine Ancestor Akida - Script - say 0'), (@ENTRY*100,9,5,0,0,0,100,0,1000,1000,0,0,69,0,0,0,0,0,0,8,0,0,0,-4154.224,-12514.75,45.35527,0,'Stillpine Ancestor Akida - Script - move to'), (@ENTRY*100,9,6,0,0,0,100,0,2000,2000,0,0,69,0,0,0,0,0,0,8,0,0,0,-4123.563,-12517.23,44.9127,0,'Stillpine Ancestor Akida - Script - move to'), (@ENTRY*100,9,7,0,0,0,100,0,3500,3500,0,0,69,0,0,0,0,0,0,8,0,0,0,-4091.881,-12524,42.37354,0,'Stillpine Ancestor Akida - Script - move to'), (@ENTRY*100,9,8,0,0,0,100,0,5500,5500,0,0,69,0,0,0,0,0,0,8,0,0,0,-4058.039,-12538.57,43.96096,0,'Stillpine Ancestor Akida - Script - move to'), (@ENTRY*100,9,9,0,0,0,100,0,4500,4500,0,0,69,0,0,0,0,0,0,8,0,0,0,-4026.534,-12568.4,45.82222,0,'Stillpine Ancestor Akida - Script - move to'), (@ENTRY*100,9,10,0,0,0,100,0,3000,3000,0,0,69,0,0,0,0,0,0,8,0,0,0,-4000.155,-12598.55,54.19722,0,'Stillpine Ancestor Akida - Script - move to'), -- (@ENTRY*100,9,11,0,0,0,100,0,7500,7500,0,0,69,0,0,0,0,0,0,8,0,0,0,-3977.5,-12627.22,63.1442,0,'Stillpine Ancestor Akida - Script - move to'), (@ENTRY*100,9,12,0,0,0,100,0,3500,3500,0,0,69,0,0,0,0,0,0,8,0,0,0,-3952.254,-12660.37,74.23783,0,'Stillpine Ancestor Akida - Script - move to'), (@ENTRY*100,9,13,0,0,0,100,0,6500,6500,0,0,69,0,0,0,0,0,0,8,0,0,0,-3933.183,-12698.27,85.65151,0,'Stillpine Ancestor Akida - Script - move to'), (@ENTRY*100,9,14,0,0,0,100,0,4500,4500,0,0,69,0,0,0,0,0,0,8,0,0,0,-3925.843,-12718.81,89.94553,0,'Stillpine Ancestor Akida - Script - move to'), -- (@ENTRY*100,9,15,0,0,0,100,0,3500,3500,0,0,69,0,0,0,0,0,0,8,0,0,0,-3915.914,-12743.41,98.56779,0,'Stillpine Ancestor Akida - Script - move to'), (@ENTRY*100,9,16,0,0,0,100,0,4500,4500,0,0,66,0,0,0,0,0,0,19,17361,10,0,0,0,0,0,'Stillpine Ancestor Akida - Script - turn to Totem of Coo'), (@ENTRY*100,9,17,0,0,0,100,0,2000,2000,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Stillpine Ancestor Akida - Script - say 1'), (@ENTRY*100,9,18,0,0,0,100,0,3000,3000,0,0,11,30428,0,0,0,0,0,1,0,0,0,0,0,0,0,'Stillpine Ancestor Akida - Script - cast spell'), (@ENTRY*100,9,19,0,0,0,100,0,1000,1000,0,0,41,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Stillpine Ancestor Akida - Script - despawn'); -- NPC talk text insert from sniff DELETE FROM `creature_text` WHERE `entry`=17379; INSERT INTO `creature_text` (`entry`,`groupid`,`id`,`text`,`type`,`language`,`probability`,`emote`,`duration`,`sound`,`comment`) VALUES (17379,0,0, '%s urges you to follow him.',16,0,100,0,0,0, 'Stillpine Ancestor Akida'), (17379,1,0, '%s points to the totem of Coo.',16,0,100,25,0,0, 'Stillpine Ancestor Akida'); -- add missing spells to db DELETE FROM `spell_dbc` WHERE `Id` IN (30426,30437); INSERT INTO `spell_dbc` (`Id`,`SchoolMask`,`Dispel`,`Mechanic`,`Attributes`,`AttributesEx`,`AttributesEx2`,`AttributesEx3`,`AttributesEx4`,`AttributesEx5`,`Stances`,`StancesNot`,`Targets`,`CastingTimeIndex`,`AuraInterruptFlags`,`ProcFlags`,`ProcChance`,`ProcCharges`,`MaxLevel`,`BaseLevel`,`SpellLevel`,`DurationIndex`,`RangeIndex`,`StackAmount`,`EquippedItemClass`,`EquippedItemSubClassMask`,`EquippedItemInventoryTypeMask`,`Effect1`,`Effect2`,`Effect3`,`EffectDieSides1`,`EffectDieSides2`,`EffectDieSides3`,`EffectRealPointsPerLevel1`,`EffectRealPointsPerLevel2`,`EffectRealPointsPerLevel3`,`EffectBasePoints1`,`EffectBasePoints2`,`EffectBasePoints3`,`EffectMechanic1`,`EffectMechanic2`,`EffectMechanic3`,`EffectImplicitTargetA1`,`EffectImplicitTargetA2`,`EffectImplicitTargetA3`,`EffectImplicitTargetB1`,`EffectImplicitTargetB2`,`EffectImplicitTargetB3`,`EffectRadiusIndex1`,`EffectRadiusIndex2`,`EffectRadiusIndex3`,`EffectApplyAuraName1`,`EffectApplyAuraName2`,`EffectApplyAuraName3`,`EffectAmplitude1`,`EffectAmplitude2`,`EffectAmplitude3`,`EffectMultipleValue1`,`EffectMultipleValue2`,`EffectMultipleValue3`,`EffectMiscValue1`,`EffectMiscValue2`,`EffectMiscValue3`,`EffectTriggerSpell1`,`EffectTriggerSpell2`,`EffectTriggerSpell3`,`Comment`,`MaxTargetLevel`,`SpellFamilyName`,`SpellFamilyFlags1`,`SpellFamilyFlags2`,`MaxAffectedTargets`,`DmgClass`,`PreventionType`,`DmgMultiplier1`,`DmgMultiplier2`,`AreaGroupId`,`EffectMiscValueB1`) VALUES (30426,0,0,0,256,268435456,0,0,0,0,0,0,0,1,0,0,101,0,0,0,0,40,12,0,-1,0,0,28,6,0,0,0,0,0,0,0,0,0,0,0,0,0,32,1,0,0,0,0,15,0,0,0,4,0,0,0,0,0,0,0,17379,0,0,0,0,0,'Stillpine Ancestor Akida',0,0,0,0,0,0,0,1,1,0,64), (30437,0,0,0,2304,268435456,0,0,0,0,0,0,0,1,0,0,101,0,0,0,0,36,3,0,-1,0,0,6,0,0,1,0,0,0,0,0,0,0,0,0,0,0,21,0,0,0,0,0,0,0,0,23,0,0,1000,0,0,0,0,0,0,0,0,30426,0,0,'Stillpine Ancestor Akida TRIGGER',0,0,0,0,0,0,0,1,0,0,0);
{ "pile_set_name": "Github" }
/* * IMPORTANT! * This file has been automatically generated, * in order to update it's content execute "npm run update" */ module.exports = { extends: require.resolve('./base'), rules: { 'vue/custom-event-name-casing': 'error', 'vue/no-arrow-functions-in-watch': 'error', 'vue/no-async-in-computed-properties': 'error', 'vue/no-deprecated-data-object-declaration': 'error', 'vue/no-deprecated-destroyed-lifecycle': 'error', 'vue/no-deprecated-dollar-listeners-api': 'error', 'vue/no-deprecated-dollar-scopedslots-api': 'error', 'vue/no-deprecated-events-api': 'error', 'vue/no-deprecated-filter': 'error', 'vue/no-deprecated-functional-template': 'error', 'vue/no-deprecated-html-element-is': 'error', 'vue/no-deprecated-inline-template': 'error', 'vue/no-deprecated-props-default-this': 'error', 'vue/no-deprecated-scope-attribute': 'error', 'vue/no-deprecated-slot-attribute': 'error', 'vue/no-deprecated-slot-scope-attribute': 'error', 'vue/no-deprecated-v-bind-sync': 'error', 'vue/no-deprecated-v-on-native-modifier': 'error', 'vue/no-deprecated-v-on-number-modifiers': 'error', 'vue/no-deprecated-vue-config-keycodes': 'error', 'vue/no-dupe-keys': 'error', 'vue/no-dupe-v-else-if': 'error', 'vue/no-duplicate-attributes': 'error', 'vue/no-lifecycle-after-await': 'error', 'vue/no-mutating-props': 'error', 'vue/no-parsing-error': 'error', 'vue/no-ref-as-operand': 'error', 'vue/no-reserved-keys': 'error', 'vue/no-setup-props-destructure': 'error', 'vue/no-shared-component-data': 'error', 'vue/no-side-effects-in-computed-properties': 'error', 'vue/no-template-key': 'error', 'vue/no-textarea-mustache': 'error', 'vue/no-unused-components': 'error', 'vue/no-unused-vars': 'error', 'vue/no-use-v-if-with-v-for': 'error', 'vue/no-v-for-template-key-on-child': 'error', 'vue/no-watch-after-await': 'error', 'vue/require-component-is': 'error', 'vue/require-prop-type-constructor': 'error', 'vue/require-render-return': 'error', 'vue/require-slots-as-functions': 'error', 'vue/require-toggle-inside-transition': 'error', 'vue/require-v-for-key': 'error', 'vue/require-valid-default-prop': 'error', 'vue/return-in-computed-property': 'error', 'vue/return-in-emits-validator': 'error', 'vue/use-v-on-exact': 'error', 'vue/valid-template-root': 'error', 'vue/valid-v-bind': 'error', 'vue/valid-v-cloak': 'error', 'vue/valid-v-else-if': 'error', 'vue/valid-v-else': 'error', 'vue/valid-v-for': 'error', 'vue/valid-v-html': 'error', 'vue/valid-v-if': 'error', 'vue/valid-v-is': 'error', 'vue/valid-v-model': 'error', 'vue/valid-v-on': 'error', 'vue/valid-v-once': 'error', 'vue/valid-v-pre': 'error', 'vue/valid-v-show': 'error', 'vue/valid-v-slot': 'error', 'vue/valid-v-text': 'error' } }
{ "pile_set_name": "Github" }
// Copyright (c) Lex Li. All rights reserved. // // Licensed under the MIT license. See LICENSE file in the project root for full license information. /* * Created by SharpDevelop. * User: lextm * Time: 11:06 AM * * To change this template use Tools | Options | Coding | Edit Standard Headers. */ namespace JexusManager.Features.Main { using System; using System.Collections; using System.Collections.Generic; using System.Reflection; using System.Resources; using System.Windows.Forms; using JexusManager.Dialogs; using JexusManager.Main.Properties; using JexusManager.Services; using Microsoft.Web.Administration; using Microsoft.Web.Management.Client; using Microsoft.Web.Management.Client.Win32; using Binding = Microsoft.Web.Administration.Binding; using Module = Microsoft.Web.Management.Client.Module; using System.Linq; using JexusManager.Features.TraceFailedRequests; /// <summary> /// Description of DefaultDocumentFeature. /// </summary> internal class SiteFeature { private sealed class FeatureTaskList : TaskList { private readonly SiteFeature _owner; public FeatureTaskList(SiteFeature owner) { _owner = owner; } public override ICollection GetTaskItems() { var result = new ArrayList(); result.Add(new MethodTaskItem("Explore", "Explore", string.Empty, string.Empty, Resources.explore_16).SetUsage()); result.Add(new MethodTaskItem("Permissions", "Edit Permissions...", string.Empty).SetUsage()); result.Add(MethodTaskItem.CreateSeparator().SetUsage()); result.Add(new TextTaskItem("Edit Site", string.Empty, true)); result.Add(new MethodTaskItem("Bindings", "Bindings...", string.Empty).SetUsage()); result.Add( new MethodTaskItem("Basic", "Basic Settings...", string.Empty, string.Empty, Resources.basic_settings_16).SetUsage()); result.Add(MethodTaskItem.CreateSeparator().SetUsage()); result.Add(new MethodTaskItem("Applications", "View Applications", string.Empty).SetUsage()); result.Add(new MethodTaskItem("VirtualDirectories", "View Virtual Directories", string.Empty).SetUsage()); if (_owner.SiteBindings.Any(item => item.CanBrowse)) { result.Add(MethodTaskItem.CreateSeparator().SetUsage()); var manageGroup = new GroupTaskItem(string.Empty, "Manage Website", string.Empty, true); result.Add(manageGroup); manageGroup.Items.Add( new MethodTaskItem("Restart", "Restart", string.Empty, string.Empty, Resources.restart_16).SetUsage(!_owner.IsBusy)); manageGroup.Items.Add( new MethodTaskItem("Start", "Start", string.Empty, string.Empty, Resources.start_16).SetUsage( !_owner.IsBusy && !_owner.IsStarted)); manageGroup.Items.Add(new MethodTaskItem("Stop", "Stop", string.Empty, string.Empty, Resources.stop_16) .SetUsage( !_owner.IsBusy && _owner.IsStarted)); manageGroup.Items.Add(MethodTaskItem.CreateSeparator().SetUsage()); manageGroup.Items.Add(new TextTaskItem("Browse Website", string.Empty, true)); foreach (Binding binding in _owner.SiteBindings) { if (binding.CanBrowse) { manageGroup.Items.Add( new MethodTaskItem("Browse", string.Format("Browse {0}", binding.ToShortString()), string.Empty, string.Empty, Resources.browse_16, binding.ToUri()).SetUsage()); } } manageGroup.Items.Add(MethodTaskItem.CreateSeparator().SetUsage()); manageGroup.Items.Add(new MethodTaskItem("Advanced", "Advanced Settings...", string.Empty).SetUsage()); manageGroup.Items.Add(MethodTaskItem.CreateSeparator().SetUsage()); manageGroup.Items.Add(new TextTaskItem("Configure", string.Empty, true)); manageGroup.Items.Add(new MethodTaskItem("Tracing", "Failed Request Tracing...", string.Empty).SetUsage()); manageGroup.Items.Add(new MethodTaskItem("Limits", "Limits...", string.Empty).SetUsage()); manageGroup.Items.Add(MethodTaskItem.CreateSeparator().SetUsage()); manageGroup.Items.Add(new TextTaskItem("Troubleshooting", string.Empty, true)); manageGroup.Items.Add(new MethodTaskItem("FixBinding", "Binding Diagnostics", string.Empty).SetUsage()); manageGroup.Items.Add(new MethodTaskItem("FixKestrel", "ASP.NET Core Diagnostics", string.Empty).SetUsage()); manageGroup.Items.Add(new MethodTaskItem("FixProject", "Project Diagnostics", string.Empty).SetUsage()); manageGroup.Items.Add(new MethodTaskItem("FixPhp", "PHP Diagnostics", string.Empty).SetUsage()); } return result.ToArray(typeof(TaskItem)) as TaskItem[]; } [Obfuscation(Exclude = true)] public void Explore() { _owner.Explore(); } [Obfuscation(Exclude = true)] public void Permissions() { _owner.Permissions(); } [Obfuscation(Exclude = true)] public void Bindings() { _owner.Bindings(); } [Obfuscation(Exclude = true)] public void Basic() { _owner.Basic(); } [Obfuscation(Exclude = true)] public void Applications() { _owner.Applications(); } [Obfuscation(Exclude = true)] public void VirtualDirectories() { _owner.VirtualDirectories(); } [Obfuscation(Exclude = true)] public void Restart() { _owner.Restart(); } [Obfuscation(Exclude = true)] public void Start() { _owner.Start(); } [Obfuscation(Exclude = true)] public void Stop() { _owner.Stop(); } [Obfuscation(Exclude = true)] public void Browse(object uri) { _owner.Browse(uri); } [Obfuscation(Exclude = true)] public void Advanced() { _owner.Advanced(); } [Obfuscation(Exclude = true)] public void Tracing() { _owner.Tracing(); } [Obfuscation(Exclude = true)] public void Limits() { _owner.Limits(); } [Obfuscation (Exclude = true)] public void FixProject() { _owner.FixProject(); } [Obfuscation(Exclude = true)] public void FixBinding() { _owner.FixBinding(); } [Obfuscation(Exclude = true)] public void FixPhp() { _owner.FixPhp(); } [Obfuscation(Exclude = true)] public void FixKestrel() { _owner.FixKestrel(); } } public SiteFeature(Module module) { Module = module; } protected static readonly Version FxVersion10 = new Version("1.0"); protected static readonly Version FxVersion11 = new Version("1.1"); protected static readonly Version FxVersion20 = new Version("2.0"); protected static readonly Version FxVersionNotRequired = new Version(); private FeatureTaskList _taskList; protected void DisplayErrorMessage(Exception ex, ResourceManager resourceManager) { var service = (IManagementUIService)GetService(typeof(IManagementUIService)); service.ShowError(ex, resourceManager.GetString("General"), "", false); } protected object GetService(Type type) { return (Module as IServiceProvider).GetService(type); } public TaskList GetTaskList() { return _taskList ?? (_taskList = new FeatureTaskList(this)); } public void Load() { var service = (IConfigurationService)GetService(typeof(IConfigurationService)); var site = service.Site; IsStarted = site.GetState(); OnSiteSettingsSaved(); } protected void OnSiteSettingsSaved() { SiteSettingsUpdated?.Invoke(); } public virtual bool ShowHelp() { DialogHelper.ProcessStart("http://go.microsoft.com/fwlink/?LinkId=210463"); return false; } private void Limits() { } private void Tracing() { var feature = new TraceFailedRequestsFeature(Module); feature.Set(); } private void Advanced() { } private void Browse(object uri) { var service = (IConfigurationService)GetService(typeof(IConfigurationService)); // IMPORTANT: help users launch IIS Express instance. var site = service.Site; if (site.Server.Mode == WorkingMode.IisExpress && site.State != ObjectState.Started) { var message = (IManagementUIService)GetService(typeof(IManagementUIService)); var result = message.ShowMessage( "This website is not yet running. Do you want to start it now?", "Question", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question, MessageBoxDefaultButton.Button1); if (result != DialogResult.Yes) { return; } Start(); } DialogHelper.ProcessStart(uri.ToString()); } private void Stop() { var service = (IConfigurationService)GetService(typeof(IConfigurationService)); var site = service.Site; IsBusy = true; OnSiteSettingsSaved(); site.Stop(); IsStarted = false; IsBusy = false; OnSiteSettingsSaved(); } private void Start() { var service = (IConfigurationService)GetService(typeof(IConfigurationService)); var dialog = (IManagementUIService)GetService(typeof(IManagementUIService)); var site = service.Site; IsBusy = true; OnSiteSettingsSaved(); try { site.Start(); } catch (Exception ex) { dialog.ShowMessage(ex.Message, Name, MessageBoxButtons.OK, MessageBoxIcon.Error); } IsStarted = site.State == ObjectState.Started; IsBusy = false; OnSiteSettingsSaved(); } private void Restart() { var service = (IConfigurationService)GetService(typeof(IConfigurationService)); var dialog = (IManagementUIService)GetService(typeof(IManagementUIService)); var site = service.Site; IsBusy = true; OnSiteSettingsSaved(); try { site.Restart(); } catch (Exception ex) { dialog.ShowMessage(ex.Message, Name, MessageBoxButtons.OK, MessageBoxIcon.Error); } IsStarted = site.State == ObjectState.Started; IsBusy = false; OnSiteSettingsSaved(); } private void VirtualDirectories() { } private void Applications() { } private void Basic() { var service = (IConfigurationService)GetService(typeof(IConfigurationService)); var site = service.Site; using (var dialog = new EditSiteDialog(Module, site.Applications[0])) { if (dialog.ShowDialog() != DialogResult.OK) { return; } } site.Applications[0].Save(); site.Server.CommitChanges(); } private void Permissions() { var service = (IConfigurationService)GetService(typeof(IConfigurationService)); var site = service.Site; var path = site.PhysicalPath.ExpandIisExpressEnvironmentVariables(site.Applications[0].GetActualExecutable()); if (!string.IsNullOrWhiteSpace(path)) { NativeMethods.ShowFileProperties(path); } } private void Explore() { var service = (IConfigurationService)GetService(typeof(IConfigurationService)); var site = service.Site; var path = site.PhysicalPath.ExpandIisExpressEnvironmentVariables(site.Applications[0].GetActualExecutable()); if (!string.IsNullOrWhiteSpace(path)) { DialogHelper.Explore(path); } } private void Bindings() { var service = (IConfigurationService)GetService(typeof(IConfigurationService)); var site = service.Site; using (var dialog = new BindingsDialog(Module, site)) { dialog.ShowDialog(); } OnSiteSettingsSaved(); } private void FixProject() { var service = (IConfigurationService)GetService(typeof(IConfigurationService)); using var dialog = new VsDiagDialog(Module, service.Site); dialog.ShowDialog(); } private void FixBinding() { var service = (IConfigurationService)GetService(typeof(IConfigurationService)); using var dialog = new BindingDiagDialog(Module, service.Site); dialog.ShowDialog(); } private void FixPhp() { var service = (IConfigurationService)GetService(typeof(IConfigurationService)); using var dialog = new PhpDiagDialog(Module, service.Site.Server); dialog.ShowDialog(); } private void FixKestrel() { var service = (IConfigurationService)GetService(typeof(IConfigurationService)); using var dialog = new KestrelDiagDialog(Module, service.Site.Applications[0]); dialog.ShowDialog(); } public IEnumerable<Binding> SiteBindings { get { var service = (IConfigurationService)GetService(typeof(IConfigurationService)); var site = service.Site; return site.Bindings; } } public bool IsStarted { get; set; } public bool IsBusy { get; set; } public SiteSettingsSavedEventHandler SiteSettingsUpdated { get; set; } public string Description { get; } public virtual bool IsFeatureEnabled { get { return true; } } public virtual Version MinimumFrameworkVersion { get { return FxVersionNotRequired; } } public Module Module { get; } public string Name { get; } } public delegate void SiteSettingsSavedEventHandler(); }
{ "pile_set_name": "Github" }
KB.component('submit-buttons', function (containerElement, options) { var isLoading = false; var isDisabled = options.disabled || false; var submitLabel = options.submitLabel; var formActionElement = null; var submitButtonElement = null; function onSubmit() { isLoading = true; replaceButton(); KB.trigger('modal.submit'); } function onCancel() { KB.trigger('modal.close'); } function onStop() { isLoading = false; replaceButton(); } function onDisable() { isLoading = false; isDisabled = true; replaceButton(); } function onEnable() { isLoading = false; isDisabled = false; replaceButton(); } function onHide() { KB.dom(formActionElement).hide(); } function onUpdateSubmitLabel(eventData) { submitLabel = eventData.submitLabel; replaceButton(); } function buildButton() { var button = KB.dom('button') .attr('type', 'submit') .attr('class', 'btn btn-' + (options.color || 'blue')); if (KB.modal.isOpen()) { button.click(onSubmit); } if (options.tabindex) { button.attr('tabindex', options.tabindex); } if (isLoading) { button .disable() .add(KB.dom('i').attr('class', 'fa fa-spinner fa-pulse').build()) .text(' ') ; } if (isDisabled) { button.disable(); } return button .text(submitLabel) .build(); } function replaceButton() { var buttonElement = buildButton(); KB.dom(submitButtonElement).replace(buttonElement); submitButtonElement = buttonElement; } this.render = function () { KB.on('modal.stop', onStop); KB.on('modal.disable', onDisable); KB.on('modal.enable', onEnable); KB.on('modal.hide', onHide); KB.on('modal.submit.label', onUpdateSubmitLabel); KB.on('modal.close', function () { KB.removeListener('modal.stop', onStop); KB.removeListener('modal.disable', onDisable); KB.removeListener('modal.enable', onEnable); KB.removeListener('modal.hide', onHide); KB.removeListener('modal.submit.label', onUpdateSubmitLabel); }); submitButtonElement = buildButton(); var formActionElementBuilder = KB.dom('div') .attr('class', 'form-actions') .add(submitButtonElement); if (KB.modal.isOpen()) { formActionElementBuilder .text(' ' + options.orLabel + ' ') .add(KB.dom('a').attr('href', '#').click(onCancel).text(options.cancelLabel).build()); } formActionElement = formActionElementBuilder.build(); containerElement.appendChild(formActionElement); }; });
{ "pile_set_name": "Github" }
(ns rx.lang.clojure.blocking-test (:require [rx.lang.clojure.blocking :as b] [rx.lang.clojure.core :as rx] [clojure.test :refer [deftest testing is]])) (deftest test-->blocking (testing "returns a BlockingObservable from an Observable" (is (instance? rx.observables.BlockingObservable (b/->blocking (rx/return 0))))) (testing "is idempotent" (is (instance? rx.observables.BlockingObservable (b/->blocking (b/->blocking (rx/return 0))))))) (deftest test-o->seq (is (= [1 2 3] (b/o->seq (rx/seq->o [1 2 3]))))) (deftest test-first (testing "returns first element of observable" (is (= 1 (b/first (rx/seq->o [1 2 3]))))) (testing "returns nil for empty observable" (is (nil? (b/first (rx/empty))))) (testing "rethrows errors" (is (thrown? java.io.FileNotFoundException (b/first (rx/throw (java.io.FileNotFoundException. "boo"))))))) (deftest test-last (testing "returns last element of observable" (is (= 3 (b/last (rx/seq->o [1 2 3]))))) (testing "returns nil for empty observable" (is (nil? (b/last (rx/empty))))) (testing "rethrows errors" (is (thrown? java.io.FileNotFoundException (b/last (rx/throw (java.io.FileNotFoundException. "boo"))))))) (deftest test-single (testing "returns one element" (is (= 1 (b/single (rx/return 1))))) (testing "throw if empty" (is (thrown? java.util.NoSuchElementException (b/single (rx/empty))))) (testing "throw if many" (is (thrown? java.lang.IllegalArgumentException (b/single (rx/seq->o [1 2]))))) (testing "rethrows errors" (is (thrown? java.io.FileNotFoundException (b/single (rx/throw (java.io.FileNotFoundException. "boo"))))))) (deftest test-into (is (= [1 2 3] (b/into [1] (rx/seq->o [2 3])))) (testing "rethrows errors" (is (thrown? java.io.FileNotFoundException (b/into #{} (rx/throw (java.io.FileNotFoundException. "boo"))))))) (deftest test-doseq (is (= (range 3) (let [capture (atom [])] (b/doseq [{:keys [value]} (rx/seq->o (map #(hash-map :value %) (range 3)))] (println value) (swap! capture conj value)) @capture))) (testing "rethrows errors" (is (thrown? java.io.FileNotFoundException (b/doseq [i (rx/seq->o (range 3))] (throw (java.io.FileNotFoundException. "boo")))))))
{ "pile_set_name": "Github" }
module linker_test_1 1.0; require { class file { read write }; class lnk_file append; role g_b_role_2; attribute g_b_attr_3; attribute g_b_attr_5; attribute o4_b_attr_1; type g_b_type_3; } type tag_g_m1; #test for type in module and attr in module, added to in module attribute g_m1_attr_1; type g_m1_type_1, g_m1_attr_1; type g_m1_type_2; typeattribute g_m1_type_2 g_m1_attr_1; #add role in module test role g_m1_role_1; role g_m1_role_1 types g_m1_type_1; # test for attr declared in base, added to in module type g_m1_type_3; typeattribute g_m1_type_3 g_b_attr_3; # test for attr declared in base, added to in 2 modules type g_m1_type_4; typeattribute g_m1_type_4 g_b_attr_5; # test for attr declared in base optional, added to in module type g_m1_type_5; typeattribute g_m1_type_5 o4_b_attr_1; # test for attr declared in module, added to in base optional attribute g_m1_attr_2; #add type to base role test role g_b_role_2 types g_m1_type_1; role g_b_role_3; role g_b_role_3 types g_m1_type_2; #add type to base optional role test role o1_b_role_2; role o1_b_role_2 types g_m1_type_1; #optional base role w/ adds in 2 modules role o4_b_role_1; role o4_b_role_1 types g_m1_type_2; # attr a added to in base optional, declared/added to in module, added to in other module attribute g_m1_attr_3; type g_m1_type_6, g_m1_attr_3; # attr a added to in base optional, declared/added in module , added to in other module optional attribute g_m1_attr_4; type g_m1_type_7, g_m1_attr_4; # alias tests typealias g_b_type_3 alias g_m_alias_1; # single boolean in module bool g_m1_bool_1 true; if (g_m1_bool_1) { allow g_m1_type_1 g_m1_type_2 : lnk_file append; } optional { require { type optional_type; attribute g_b_attr_4; attribute o1_b_attr_2; class lnk_file { ioctl }; } type tag_o1_m1; attribute o1_m1_attr_1; type o1_m1_type_2, o1_m1_attr_1; type o1_m1_type_1; role o1_m1_role_1; role o1_m1_role_1 types o1_m1_type_1; type o1_m1_type_3; typeattribute o1_m1_type_3 g_b_attr_4; type o1_m1_type_5; typeattribute o1_m1_type_5 o1_b_attr_2; bool o1_m1_bool_1 false; if (o1_m1_bool_1) { allow o1_m1_type_2 o1_m1_type_1 : lnk_file ioctl; } } optional { require { type optional_type; #role g_b_role_4; // This causes a bug where the role scope doesn't get copied into base } type tag_o2_m1; role g_b_role_4; role g_b_role_4 types g_m1_type_2; } optional { require { attribute g_b_attr_6; } type tag_o3_m1; type o3_m1_type_1; role o3_b_role_1; role o3_b_role_1 types o3_m1_type_1; type o3_m1_type_2, g_b_attr_6; attribute o3_m1_attr_1; # attr a added to in base optional, declared/added in module optional, added to in other module attribute o3_m1_attr_2; type o3_m1_type_3, o3_m1_attr_2; } optional { require { type enable_optional; } type tag_o4_m1; attribute o4_m1_attr_1; type o4_m1_type_1; typeattribute o4_m1_type_1 o4_m1_attr_1; }
{ "pile_set_name": "Github" }
import _ from 'common/shim/lodash.reference.shim'; import Tooltipable from 'foreground/view/behavior/tooltipable'; describe('Tooltipable', function() { beforeEach(function() { this.tooltipable = new Tooltipable(); }); it('should hide any tooltips when its view is destroyed', function() { sinon.stub(this.tooltipable, '_hideTooltip'); this.tooltipable.onBeforeDestroy(); expect(this.tooltipable._hideTooltip.calledOnce).to.equal(true); this.tooltipable._hideTooltip.restore(); }); it('should be able to mark a target as hovered', function() { sinon.stub(window, 'setTimeout'); var target = document.createElement('div'); target.setAttribute('data-tooltip-text', 'hello, world'); this.tooltipable._ensureHovered(target); expect($(target).data('is-hovered')).to.equal(true); expect(window.setTimeout.calledOnce).to.equal(true); window.setTimeout.restore(); }); it('should not re-mark an already hovered target', function() { sinon.stub(window, 'setTimeout'); var target = document.createElement('div'); $(target).data('is-hovered', true); this.tooltipable._ensureHovered(target); expect(window.setTimeout.calledOnce).to.equal(false); window.setTimeout.restore(); }); it('should not mark a target which does not have tooltip text', function() { sinon.stub(window, 'setTimeout'); var target = document.createElement('div'); this.tooltipable._ensureHovered(target); expect(window.setTimeout.calledOnce).to.equal(false); window.setTimeout.restore(); }); it('should not mark a target which does has an empty string for tooltip text', function() { sinon.stub(window, 'setTimeout'); var target = document.createElement('div'); target.setAttribute('data-tooltip-text', ''); this.tooltipable._ensureHovered(target); expect(window.setTimeout.calledOnce).to.equal(false); window.setTimeout.restore(); }); it('should be able to hide shown tooltips', function() { this.tooltipable.isShowingTooltip = true; this.tooltipable.mutationObserver = new MutationObserver(_.noop); this.tooltipable._hideTooltip(); expect(this.tooltipable.isShowingTooltip).to.equal(false); }); it('should set a mutation observer when watching a target', function() { var target = document.createElement('div'); this.tooltipable._watchTooltipText(target, {}); expect(this.tooltipable.mutationObserver).not.to.equal(null); }); it('should indicate that a tooltip should not be shown if target is not hovered', function() { var target = document.createElement('div'); var showTooltip = this.tooltipable._needShowTooltip(target); expect(showTooltip).to.equal(false); }); it('should indicate that a tooltip should be shown if target is hovered and does not need an overflow check', function() { var target = document.createElement('div'); $(target).data('is-hovered', true); var showTooltip = this.tooltipable._needShowTooltip(target); expect(showTooltip).to.equal(true); }); it('should indicate that a tooltip should not be shown if target is hovered and fails an overflow check', function() { var target = document.createElement('div'); $(target).data('is-hovered', true); target.setAttribute('data-ui', 'textTooltipable'); var showTooltip = this.tooltipable._needShowTooltip(target); expect(showTooltip).to.equal(false); }); it('should not throw an error if a hovered element is missing the data-ui attribute', function() { sinon.spy(this.tooltipable, '_needShowTooltip'); var target = document.createElement('div'); $(target).data('is-hovered', true); this.tooltipable._needShowTooltip(target); expect(this.tooltipable._needShowTooltip.threw()).to.equal(false); this.tooltipable._needShowTooltip.restore(); }); it('should be able to show a tooltip', function() { sinon.stub(StreamusFG.channels.tooltip.commands, 'trigger'); this.tooltipable._showTooltip({}, ''); expect(this.tooltipable.isShowingTooltip).to.equal(true); expect(StreamusFG.channels.tooltip.commands.trigger.calledOnce).to.equal(true); expect(StreamusFG.channels.tooltip.commands.trigger.calledWithMatch('show:tooltip', {})).to.equal(true); StreamusFG.channels.tooltip.commands.trigger.restore(); }); // phantomjs doesn't support MutationObserver until 2.0 if (!window.PHANTOMJS) { it('should be able to update a tooltip', function(done) { sinon.stub(this.tooltipable, '_updateTooltip'); var target = document.createElement('div'); this.tooltipable._watchTooltipText(target, {}); target.setAttribute('data-tooltip-text', 'foo'); // Let the mutation observer fire. _.defer(function() { expect(this.tooltipable._updateTooltip.calledOnce).to.equal(true); this.tooltipable._updateTooltip.restore(); done(); }.bind(this)); }); } });
{ "pile_set_name": "Github" }
#!/bin/bash ./pinmap -o allchr0a \ -mask board1mask.pcx board1.pcx -mask lights1mask.pcx lights1.pcx \ tv1.pcx tv2.pcx tv3.pcx tv4.pcx \ tv1g.pcx tv1f.pcx tv1i.pcx tv1s.pcx ./pinmap -o allchr0b \ -mask board2mask.pcx board2.pcx -mask lights2mask.pcx lights2.pcx \ tv5.pcx tv6.pcx tv7.pcx tv8.pcx \ tv5g.pcx tv5f.pcx tv5i.pcx tv5s.pcx ./pinmap -o allchr1 \ -mask soulmask.pcx soulback.pcx souls.pcx \ -mask seamask.pcx seaback.pcx scuttle.pcx \ shipback.pcx \ iceback.pcx iceblocks.pcx \ chests.pcx chstback.pcx \ flounderback.pcx \ flotsamback.pcx \ kissback.pcx \ uback.pcx -mask ursulabsmask.pcx ursulabs.pcx \ -mask morganabsmask.pcx morganabs.pcx morgback.pcx \ -mask volcmask.pcx volcback.pcx \ tridentback.pcx \ -mask prisonmask.pcx prisonback.pcx \ breakice.pcx \ dashback.pcx \ -mask bearmask.pcx bearback.pcx bearbits.pcx \ bearvid.pcx \ rayback.pcx \ trapvid.pcx ./pinmap -o allchr2 \ stormvideo.pcx \ treasvideo.pcx \ kissvideo.pcx \ soulvideo.pcx \ scuttlevideo.pcx \ floundvideo.pcx \ eelvideo.pcx \ ursulavideo.pcx \ dashvideo.pcx \ volcvideo.pcx \ tipvideo.pcx ./pinmap -o allchr3 \ tables.pcx tablebits.pcx \ players.pcx playerbits.pcx \ gplayers.pcx fplayers.pcx iplayers.pcx splayers.pcx \ practicea0.pcx practicea1.pcx \ practiceb0.pcx practiceb1.pcx \ practicec0.pcx practicec1.pcx \ practiced0.pcx practiced1.pcx \ practicee0.pcx practicee1.pcx \ practicef0.pcx practicef1.pcx \ practiceg0.pcx practiceg1.pcx \ practiceh0.pcx practiceh1.pcx \ practicei0.pcx practicei1.pcx \ practicej0.pcx practicej1.pcx \ practicek0.pcx practicek1.pcx \ practicel0.pcx practicel1.pcx \ practicem0.pcx practicem1.pcx \ practicen0.pcx practicen1.pcx \ practiceo0.pcx practiceo1.pcx \ practicep0.pcx practicep1.pcx \ practicebits.pcx ./pinmap -o allchr4 \ title2.pcx \ cloakvid.pcx \ tridentvid.pcx \ morgvid.pcx \ tvback.pcx \ mainx.pcx gmainx.pcx fmainx.pcx imainx.pcx smainx.pcx \ langx.pcx langxbits.pcx \ speed.pcx speedbits.pcx \ options.pcx optionbits.pcx \ goptions.pcx \ foptions.pcx \ ioptions.pcx \ soptions.pcx \ confirm.pcx confirmbits.pcx \ gconfirm.pcx gconfirmbits.pcx \ fconfirm.pcx fconfirmbits.pcx \ iconfirm.pcx iconfirmbits.pcx \ sconfirm.pcx sconfirmbits.pcx
{ "pile_set_name": "Github" }
#pragma once #include <Register/Utility.hpp> namespace Kvasir { //Base Timer 0 namespace Bt6PwmTmcr{ ///<Timer Control Register using Addr = Register::Address<0x4002528c,0xffff8080,0x00000000,unsigned>; ///Count clock selection bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(14,12),Register::ReadWriteAccess,unsigned> cks20{}; ///Restart enable bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(11,11),Register::ReadWriteAccess,unsigned> rtgen{}; ///Pulse output mask bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(10,10),Register::ReadWriteAccess,unsigned> pmsk{}; ///Trigger input edge selection bits constexpr Register::FieldLocation<Addr,Register::maskFromRange(9,8),Register::ReadWriteAccess,unsigned> egs{}; ///Timer function selection bits constexpr Register::FieldLocation<Addr,Register::maskFromRange(6,4),Register::ReadWriteAccess,unsigned> fmd{}; ///Output polarity specification bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(3,3),Register::ReadWriteAccess,unsigned> osel{}; ///Mode selection bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(2,2),Register::ReadWriteAccess,unsigned> mdse{}; ///Count operation enable bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(1,1),Register::ReadWriteAccess,unsigned> cten{}; ///Software trigger bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(0,0),Register::ReadWriteAccess,unsigned> strg{}; } namespace Bt6PwmTmcr2{ ///<Timer Control Register 2 using Addr = Register::Address<0x40025291,0xfffffffe,0x00000000,unsigned char>; ///Count clock selection bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(0,0),Register::ReadWriteAccess,unsigned> cks3{}; } namespace Bt6PwmStc{ ///< Status Control Register using Addr = Register::Address<0x40025290,0xffffff88,0x00000000,unsigned char>; ///Trigger interrupt request enable bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(6,6),Register::ReadWriteAccess,unsigned> tgie{}; ///Duty match interrupt request enable bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(5,5),Register::ReadWriteAccess,unsigned> dtie{}; ///Underflow interrupt request enable bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(4,4),Register::ReadWriteAccess,unsigned> udie{}; ///Trigger interrupt request bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(2,2),Register::ReadWriteAccess,unsigned> tgir{}; ///Duty match interrupt request bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(1,1),Register::ReadWriteAccess,unsigned> dtir{}; ///Underflow interrupt request bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(0,0),Register::ReadWriteAccess,unsigned> udir{}; } namespace Bt6PwmPcsr{ ///<PWM Cycle Set Register using Addr = Register::Address<0x40025280,0xffffffff,0x00000000,unsigned>; } namespace Bt6PwmPdut{ ///<PWM Duty Set Register using Addr = Register::Address<0x40025284,0xffffffff,0x00000000,unsigned>; } namespace Bt6PwmTmr{ ///<Timer Register using Addr = Register::Address<0x40025288,0xffffffff,0x00000000,unsigned>; } namespace Bt6PpgTmcr{ ///<Timer Control Register using Addr = Register::Address<0x4002528c,0xffff8080,0x00000000,unsigned>; ///Count clock selection bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(14,12),Register::ReadWriteAccess,unsigned> cks20{}; ///Restart enable bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(11,11),Register::ReadWriteAccess,unsigned> rtgen{}; /// Pulse output mask bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(10,10),Register::ReadWriteAccess,unsigned> pmsk{}; ///Trigger input edge selection bits constexpr Register::FieldLocation<Addr,Register::maskFromRange(9,8),Register::ReadWriteAccess,unsigned> egs{}; ///Timer function selection bits constexpr Register::FieldLocation<Addr,Register::maskFromRange(6,4),Register::ReadWriteAccess,unsigned> fmd{}; ///Output polarity specification bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(3,3),Register::ReadWriteAccess,unsigned> osel{}; ///Mode selection bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(2,2),Register::ReadWriteAccess,unsigned> mdse{}; ///Count operation enable bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(1,1),Register::ReadWriteAccess,unsigned> cten{}; ///Software trigger bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(0,0),Register::ReadWriteAccess,unsigned> strg{}; } namespace Bt6PpgTmcr2{ ///<Timer Control Register 2 using Addr = Register::Address<0x40025291,0xfffffffd,0x00000000,unsigned char>; ///Count clock selection bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(1,1),Register::ReadWriteAccess,unsigned> cks3{}; } namespace Bt6PpgStc{ ///<Status Control Register using Addr = Register::Address<0x40025290,0xffffffaa,0x00000000,unsigned char>; ///Trigger interrupt request enable bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(6,6),Register::ReadWriteAccess,unsigned> tgie{}; ///Underflow interrupt request enable bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(4,4),Register::ReadWriteAccess,unsigned> udie{}; ///Trigger interrupt request bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(2,2),Register::ReadWriteAccess,unsigned> tgir{}; ///Underflow interrupt request bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(0,0),Register::ReadWriteAccess,unsigned> udir{}; } namespace Bt6PpgPrll{ ///<LOW Width Reload Register using Addr = Register::Address<0x40025280,0xffffffff,0x00000000,unsigned>; } namespace Bt6PpgPrlh{ ///<HIGH Width Reload Register using Addr = Register::Address<0x40025284,0xffffffff,0x00000000,unsigned>; } namespace Bt6PpgTmr{ ///<Timer Register using Addr = Register::Address<0x40025288,0xffffffff,0x00000000,unsigned>; } namespace Bt6RtTmcr{ ///<Timer Control Register using Addr = Register::Address<0x4002528c,0xffff8c00,0x00000000,unsigned>; ///Count clock selection bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(14,12),Register::ReadWriteAccess,unsigned> cks20{}; ///Trigger input edge selection bits constexpr Register::FieldLocation<Addr,Register::maskFromRange(9,8),Register::ReadWriteAccess,unsigned> egs{}; ///32-bit timer selection bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(7,7),Register::ReadWriteAccess,unsigned> t32{}; ///Timer function selection bits constexpr Register::FieldLocation<Addr,Register::maskFromRange(6,4),Register::ReadWriteAccess,unsigned> fmd{}; ///Output polarity specification bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(3,3),Register::ReadWriteAccess,unsigned> osel{}; ///Mode selection bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(2,2),Register::ReadWriteAccess,unsigned> mdse{}; ///Timer enable bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(1,1),Register::ReadWriteAccess,unsigned> cten{}; ///Software trigger bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(0,0),Register::ReadWriteAccess,unsigned> strg{}; } namespace Bt6RtTmcr2{ ///<Timer Control Register 2 using Addr = Register::Address<0x40025291,0xfffffffe,0x00000000,unsigned char>; ///Count clock selection bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(0,0),Register::ReadWriteAccess,unsigned> cks3{}; } namespace Bt6RtStc{ ///<Status Control Register using Addr = Register::Address<0x40025290,0xffffffaa,0x00000000,unsigned char>; ///Trigger interrupt request enable bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(6,6),Register::ReadWriteAccess,unsigned> tgie{}; ///Underflow interrupt request enable bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(4,4),Register::ReadWriteAccess,unsigned> udie{}; ///Trigger interrupt request bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(2,2),Register::ReadWriteAccess,unsigned> tgir{}; ///Underflow interrupt request bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(0,0),Register::ReadWriteAccess,unsigned> udir{}; } namespace Bt6RtPcsr{ ///<PWM Cycle Set Register using Addr = Register::Address<0x40025280,0xffffffff,0x00000000,unsigned>; } namespace Bt6RtTmr{ ///<Timer Register using Addr = Register::Address<0x40025288,0xffffffff,0x00000000,unsigned>; } namespace Bt6PwcTmcr{ ///<Timer Control Register using Addr = Register::Address<0x4002528c,0xffff8809,0x00000000,unsigned>; ///Count clock selection bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(14,12),Register::ReadWriteAccess,unsigned> cks20{}; ///Measurement edge selection bits constexpr Register::FieldLocation<Addr,Register::maskFromRange(10,8),Register::ReadWriteAccess,unsigned> egs{}; ///32-bit timer selection bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(7,7),Register::ReadWriteAccess,unsigned> t32{}; ///Timer function selection bits constexpr Register::FieldLocation<Addr,Register::maskFromRange(6,4),Register::ReadWriteAccess,unsigned> fmd{}; ///Mode selection bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(2,2),Register::ReadWriteAccess,unsigned> mdse{}; ///Timer enable bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(1,1),Register::ReadWriteAccess,unsigned> cten{}; } namespace Bt6PwcTmcr2{ ///<Timer Control Register 2 using Addr = Register::Address<0x40025291,0xfffffffe,0x00000000,unsigned char>; ///Count clock selection bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(0,0),Register::ReadWriteAccess,unsigned> cks3{}; } namespace Bt6PwcStc{ ///<Status Control Register using Addr = Register::Address<0x40025290,0xffffff2a,0x00000000,unsigned char>; ///Error flag bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(7,7),Register::Access<Register::AccessType::readOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> err{}; ///Measurement completion interrupt request enable bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(6,6),Register::ReadWriteAccess,unsigned> edie{}; ///Overflow interrupt request enable bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(4,4),Register::ReadWriteAccess,unsigned> ovie{}; ///Measurement completion interrupt request bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(2,2),Register::Access<Register::AccessType::readOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> edir{}; ///Overflow interrupt request bit constexpr Register::FieldLocation<Addr,Register::maskFromRange(0,0),Register::ReadWriteAccess,unsigned> ovir{}; } namespace Bt6PwcDtbf{ ///<Data Buffer Register using Addr = Register::Address<0x40025284,0xffffffff,0x00000000,unsigned>; } }
{ "pile_set_name": "Github" }
<?php /** * Base class that represents a query for the 'podcast' table. * * * * @method PodcastQuery orderByDbId($order = Criteria::ASC) Order by the id column * @method PodcastQuery orderByDbUrl($order = Criteria::ASC) Order by the url column * @method PodcastQuery orderByDbTitle($order = Criteria::ASC) Order by the title column * @method PodcastQuery orderByDbCreator($order = Criteria::ASC) Order by the creator column * @method PodcastQuery orderByDbDescription($order = Criteria::ASC) Order by the description column * @method PodcastQuery orderByDbLanguage($order = Criteria::ASC) Order by the language column * @method PodcastQuery orderByDbCopyright($order = Criteria::ASC) Order by the copyright column * @method PodcastQuery orderByDbLink($order = Criteria::ASC) Order by the link column * @method PodcastQuery orderByDbItunesAuthor($order = Criteria::ASC) Order by the itunes_author column * @method PodcastQuery orderByDbItunesKeywords($order = Criteria::ASC) Order by the itunes_keywords column * @method PodcastQuery orderByDbItunesSummary($order = Criteria::ASC) Order by the itunes_summary column * @method PodcastQuery orderByDbItunesSubtitle($order = Criteria::ASC) Order by the itunes_subtitle column * @method PodcastQuery orderByDbItunesCategory($order = Criteria::ASC) Order by the itunes_category column * @method PodcastQuery orderByDbItunesExplicit($order = Criteria::ASC) Order by the itunes_explicit column * @method PodcastQuery orderByDbOwner($order = Criteria::ASC) Order by the owner column * * @method PodcastQuery groupByDbId() Group by the id column * @method PodcastQuery groupByDbUrl() Group by the url column * @method PodcastQuery groupByDbTitle() Group by the title column * @method PodcastQuery groupByDbCreator() Group by the creator column * @method PodcastQuery groupByDbDescription() Group by the description column * @method PodcastQuery groupByDbLanguage() Group by the language column * @method PodcastQuery groupByDbCopyright() Group by the copyright column * @method PodcastQuery groupByDbLink() Group by the link column * @method PodcastQuery groupByDbItunesAuthor() Group by the itunes_author column * @method PodcastQuery groupByDbItunesKeywords() Group by the itunes_keywords column * @method PodcastQuery groupByDbItunesSummary() Group by the itunes_summary column * @method PodcastQuery groupByDbItunesSubtitle() Group by the itunes_subtitle column * @method PodcastQuery groupByDbItunesCategory() Group by the itunes_category column * @method PodcastQuery groupByDbItunesExplicit() Group by the itunes_explicit column * @method PodcastQuery groupByDbOwner() Group by the owner column * * @method PodcastQuery leftJoin($relation) Adds a LEFT JOIN clause to the query * @method PodcastQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query * @method PodcastQuery innerJoin($relation) Adds a INNER JOIN clause to the query * * @method PodcastQuery leftJoinCcSubjs($relationAlias = null) Adds a LEFT JOIN clause to the query using the CcSubjs relation * @method PodcastQuery rightJoinCcSubjs($relationAlias = null) Adds a RIGHT JOIN clause to the query using the CcSubjs relation * @method PodcastQuery innerJoinCcSubjs($relationAlias = null) Adds a INNER JOIN clause to the query using the CcSubjs relation * * @method PodcastQuery leftJoinStationPodcast($relationAlias = null) Adds a LEFT JOIN clause to the query using the StationPodcast relation * @method PodcastQuery rightJoinStationPodcast($relationAlias = null) Adds a RIGHT JOIN clause to the query using the StationPodcast relation * @method PodcastQuery innerJoinStationPodcast($relationAlias = null) Adds a INNER JOIN clause to the query using the StationPodcast relation * * @method PodcastQuery leftJoinImportedPodcast($relationAlias = null) Adds a LEFT JOIN clause to the query using the ImportedPodcast relation * @method PodcastQuery rightJoinImportedPodcast($relationAlias = null) Adds a RIGHT JOIN clause to the query using the ImportedPodcast relation * @method PodcastQuery innerJoinImportedPodcast($relationAlias = null) Adds a INNER JOIN clause to the query using the ImportedPodcast relation * * @method PodcastQuery leftJoinPodcastEpisodes($relationAlias = null) Adds a LEFT JOIN clause to the query using the PodcastEpisodes relation * @method PodcastQuery rightJoinPodcastEpisodes($relationAlias = null) Adds a RIGHT JOIN clause to the query using the PodcastEpisodes relation * @method PodcastQuery innerJoinPodcastEpisodes($relationAlias = null) Adds a INNER JOIN clause to the query using the PodcastEpisodes relation * * @method Podcast findOne(PropelPDO $con = null) Return the first Podcast matching the query * @method Podcast findOneOrCreate(PropelPDO $con = null) Return the first Podcast matching the query, or a new Podcast object populated from the query conditions when no match is found * * @method Podcast findOneByDbUrl(string $url) Return the first Podcast filtered by the url column * @method Podcast findOneByDbTitle(string $title) Return the first Podcast filtered by the title column * @method Podcast findOneByDbCreator(string $creator) Return the first Podcast filtered by the creator column * @method Podcast findOneByDbDescription(string $description) Return the first Podcast filtered by the description column * @method Podcast findOneByDbLanguage(string $language) Return the first Podcast filtered by the language column * @method Podcast findOneByDbCopyright(string $copyright) Return the first Podcast filtered by the copyright column * @method Podcast findOneByDbLink(string $link) Return the first Podcast filtered by the link column * @method Podcast findOneByDbItunesAuthor(string $itunes_author) Return the first Podcast filtered by the itunes_author column * @method Podcast findOneByDbItunesKeywords(string $itunes_keywords) Return the first Podcast filtered by the itunes_keywords column * @method Podcast findOneByDbItunesSummary(string $itunes_summary) Return the first Podcast filtered by the itunes_summary column * @method Podcast findOneByDbItunesSubtitle(string $itunes_subtitle) Return the first Podcast filtered by the itunes_subtitle column * @method Podcast findOneByDbItunesCategory(string $itunes_category) Return the first Podcast filtered by the itunes_category column * @method Podcast findOneByDbItunesExplicit(string $itunes_explicit) Return the first Podcast filtered by the itunes_explicit column * @method Podcast findOneByDbOwner(int $owner) Return the first Podcast filtered by the owner column * * @method array findByDbId(int $id) Return Podcast objects filtered by the id column * @method array findByDbUrl(string $url) Return Podcast objects filtered by the url column * @method array findByDbTitle(string $title) Return Podcast objects filtered by the title column * @method array findByDbCreator(string $creator) Return Podcast objects filtered by the creator column * @method array findByDbDescription(string $description) Return Podcast objects filtered by the description column * @method array findByDbLanguage(string $language) Return Podcast objects filtered by the language column * @method array findByDbCopyright(string $copyright) Return Podcast objects filtered by the copyright column * @method array findByDbLink(string $link) Return Podcast objects filtered by the link column * @method array findByDbItunesAuthor(string $itunes_author) Return Podcast objects filtered by the itunes_author column * @method array findByDbItunesKeywords(string $itunes_keywords) Return Podcast objects filtered by the itunes_keywords column * @method array findByDbItunesSummary(string $itunes_summary) Return Podcast objects filtered by the itunes_summary column * @method array findByDbItunesSubtitle(string $itunes_subtitle) Return Podcast objects filtered by the itunes_subtitle column * @method array findByDbItunesCategory(string $itunes_category) Return Podcast objects filtered by the itunes_category column * @method array findByDbItunesExplicit(string $itunes_explicit) Return Podcast objects filtered by the itunes_explicit column * @method array findByDbOwner(int $owner) Return Podcast objects filtered by the owner column * * @package propel.generator.airtime.om */ abstract class BasePodcastQuery extends ModelCriteria { /** * Initializes internal state of BasePodcastQuery object. * * @param string $dbName The dabase name * @param string $modelName The phpName of a model, e.g. 'Book' * @param string $modelAlias The alias for the model in this query, e.g. 'b' */ public function __construct($dbName = null, $modelName = null, $modelAlias = null) { if (null === $dbName) { $dbName = 'airtime'; } if (null === $modelName) { $modelName = 'Podcast'; } parent::__construct($dbName, $modelName, $modelAlias); } /** * Returns a new PodcastQuery object. * * @param string $modelAlias The alias of a model in the query * @param PodcastQuery|Criteria $criteria Optional Criteria to build the query from * * @return PodcastQuery */ public static function create($modelAlias = null, $criteria = null) { if ($criteria instanceof PodcastQuery) { return $criteria; } $query = new PodcastQuery(null, null, $modelAlias); if ($criteria instanceof Criteria) { $query->mergeWith($criteria); } return $query; } /** * Find object by primary key. * Propel uses the instance pool to skip the database if the object exists. * Go fast if the query is untouched. * * <code> * $obj = $c->findPk(12, $con); * </code> * * @param mixed $key Primary key to use for the query * @param PropelPDO $con an optional connection object * * @return Podcast|Podcast[]|mixed the result, formatted by the current formatter */ public function findPk($key, $con = null) { if ($key === null) { return null; } if ((null !== ($obj = PodcastPeer::getInstanceFromPool((string) $key))) && !$this->formatter) { // the object is already in the instance pool return $obj; } if ($con === null) { $con = Propel::getConnection(PodcastPeer::DATABASE_NAME, Propel::CONNECTION_READ); } $this->basePreSelect($con); if ($this->formatter || $this->modelAlias || $this->with || $this->select || $this->selectColumns || $this->asColumns || $this->selectModifiers || $this->map || $this->having || $this->joins) { return $this->findPkComplex($key, $con); } else { return $this->findPkSimple($key, $con); } } /** * Alias of findPk to use instance pooling * * @param mixed $key Primary key to use for the query * @param PropelPDO $con A connection object * * @return Podcast A model object, or null if the key is not found * @throws PropelException */ public function findOneByDbId($key, $con = null) { return $this->findPk($key, $con); } /** * Find object by primary key using raw SQL to go fast. * Bypass doSelect() and the object formatter by using generated code. * * @param mixed $key Primary key to use for the query * @param PropelPDO $con A connection object * * @return Podcast A model object, or null if the key is not found * @throws PropelException */ protected function findPkSimple($key, $con) { $sql = 'SELECT "id", "url", "title", "creator", "description", "language", "copyright", "link", "itunes_author", "itunes_keywords", "itunes_summary", "itunes_subtitle", "itunes_category", "itunes_explicit", "owner" FROM "podcast" WHERE "id" = :p0'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key, PDO::PARAM_INT); $stmt->execute(); } catch (Exception $e) { Propel::log($e->getMessage(), Propel::LOG_ERR); throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e); } $obj = null; if ($row = $stmt->fetch(PDO::FETCH_NUM)) { $obj = new Podcast(); $obj->hydrate($row); PodcastPeer::addInstanceToPool($obj, (string) $key); } $stmt->closeCursor(); return $obj; } /** * Find object by primary key. * * @param mixed $key Primary key to use for the query * @param PropelPDO $con A connection object * * @return Podcast|Podcast[]|mixed the result, formatted by the current formatter */ protected function findPkComplex($key, $con) { // As the query uses a PK condition, no limit(1) is necessary. $criteria = $this->isKeepQuery() ? clone $this : $this; $stmt = $criteria ->filterByPrimaryKey($key) ->doSelect($con); return $criteria->getFormatter()->init($criteria)->formatOne($stmt); } /** * Find objects by primary key * <code> * $objs = $c->findPks(array(12, 56, 832), $con); * </code> * @param array $keys Primary keys to use for the query * @param PropelPDO $con an optional connection object * * @return PropelObjectCollection|Podcast[]|mixed the list of results, formatted by the current formatter */ public function findPks($keys, $con = null) { if ($con === null) { $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ); } $this->basePreSelect($con); $criteria = $this->isKeepQuery() ? clone $this : $this; $stmt = $criteria ->filterByPrimaryKeys($keys) ->doSelect($con); return $criteria->getFormatter()->init($criteria)->format($stmt); } /** * Filter the query by primary key * * @param mixed $key Primary key to use for the query * * @return PodcastQuery The current query, for fluid interface */ public function filterByPrimaryKey($key) { return $this->addUsingAlias(PodcastPeer::ID, $key, Criteria::EQUAL); } /** * Filter the query by a list of primary keys * * @param array $keys The list of primary key to use for the query * * @return PodcastQuery The current query, for fluid interface */ public function filterByPrimaryKeys($keys) { return $this->addUsingAlias(PodcastPeer::ID, $keys, Criteria::IN); } /** * Filter the query on the id column * * Example usage: * <code> * $query->filterByDbId(1234); // WHERE id = 1234 * $query->filterByDbId(array(12, 34)); // WHERE id IN (12, 34) * $query->filterByDbId(array('min' => 12)); // WHERE id >= 12 * $query->filterByDbId(array('max' => 12)); // WHERE id <= 12 * </code> * * @param mixed $dbId The value to use as filter. * Use scalar values for equality. * Use array values for in_array() equivalent. * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return PodcastQuery The current query, for fluid interface */ public function filterByDbId($dbId = null, $comparison = null) { if (is_array($dbId)) { $useMinMax = false; if (isset($dbId['min'])) { $this->addUsingAlias(PodcastPeer::ID, $dbId['min'], Criteria::GREATER_EQUAL); $useMinMax = true; } if (isset($dbId['max'])) { $this->addUsingAlias(PodcastPeer::ID, $dbId['max'], Criteria::LESS_EQUAL); $useMinMax = true; } if ($useMinMax) { return $this; } if (null === $comparison) { $comparison = Criteria::IN; } } return $this->addUsingAlias(PodcastPeer::ID, $dbId, $comparison); } /** * Filter the query on the url column * * Example usage: * <code> * $query->filterByDbUrl('fooValue'); // WHERE url = 'fooValue' * $query->filterByDbUrl('%fooValue%'); // WHERE url LIKE '%fooValue%' * </code> * * @param string $dbUrl The value to use as filter. * Accepts wildcards (* and % trigger a LIKE) * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return PodcastQuery The current query, for fluid interface */ public function filterByDbUrl($dbUrl = null, $comparison = null) { if (null === $comparison) { if (is_array($dbUrl)) { $comparison = Criteria::IN; } elseif (preg_match('/[\%\*]/', $dbUrl)) { $dbUrl = str_replace('*', '%', $dbUrl); $comparison = Criteria::LIKE; } } return $this->addUsingAlias(PodcastPeer::URL, $dbUrl, $comparison); } /** * Filter the query on the title column * * Example usage: * <code> * $query->filterByDbTitle('fooValue'); // WHERE title = 'fooValue' * $query->filterByDbTitle('%fooValue%'); // WHERE title LIKE '%fooValue%' * </code> * * @param string $dbTitle The value to use as filter. * Accepts wildcards (* and % trigger a LIKE) * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return PodcastQuery The current query, for fluid interface */ public function filterByDbTitle($dbTitle = null, $comparison = null) { if (null === $comparison) { if (is_array($dbTitle)) { $comparison = Criteria::IN; } elseif (preg_match('/[\%\*]/', $dbTitle)) { $dbTitle = str_replace('*', '%', $dbTitle); $comparison = Criteria::LIKE; } } return $this->addUsingAlias(PodcastPeer::TITLE, $dbTitle, $comparison); } /** * Filter the query on the creator column * * Example usage: * <code> * $query->filterByDbCreator('fooValue'); // WHERE creator = 'fooValue' * $query->filterByDbCreator('%fooValue%'); // WHERE creator LIKE '%fooValue%' * </code> * * @param string $dbCreator The value to use as filter. * Accepts wildcards (* and % trigger a LIKE) * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return PodcastQuery The current query, for fluid interface */ public function filterByDbCreator($dbCreator = null, $comparison = null) { if (null === $comparison) { if (is_array($dbCreator)) { $comparison = Criteria::IN; } elseif (preg_match('/[\%\*]/', $dbCreator)) { $dbCreator = str_replace('*', '%', $dbCreator); $comparison = Criteria::LIKE; } } return $this->addUsingAlias(PodcastPeer::CREATOR, $dbCreator, $comparison); } /** * Filter the query on the description column * * Example usage: * <code> * $query->filterByDbDescription('fooValue'); // WHERE description = 'fooValue' * $query->filterByDbDescription('%fooValue%'); // WHERE description LIKE '%fooValue%' * </code> * * @param string $dbDescription The value to use as filter. * Accepts wildcards (* and % trigger a LIKE) * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return PodcastQuery The current query, for fluid interface */ public function filterByDbDescription($dbDescription = null, $comparison = null) { if (null === $comparison) { if (is_array($dbDescription)) { $comparison = Criteria::IN; } elseif (preg_match('/[\%\*]/', $dbDescription)) { $dbDescription = str_replace('*', '%', $dbDescription); $comparison = Criteria::LIKE; } } return $this->addUsingAlias(PodcastPeer::DESCRIPTION, $dbDescription, $comparison); } /** * Filter the query on the language column * * Example usage: * <code> * $query->filterByDbLanguage('fooValue'); // WHERE language = 'fooValue' * $query->filterByDbLanguage('%fooValue%'); // WHERE language LIKE '%fooValue%' * </code> * * @param string $dbLanguage The value to use as filter. * Accepts wildcards (* and % trigger a LIKE) * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return PodcastQuery The current query, for fluid interface */ public function filterByDbLanguage($dbLanguage = null, $comparison = null) { if (null === $comparison) { if (is_array($dbLanguage)) { $comparison = Criteria::IN; } elseif (preg_match('/[\%\*]/', $dbLanguage)) { $dbLanguage = str_replace('*', '%', $dbLanguage); $comparison = Criteria::LIKE; } } return $this->addUsingAlias(PodcastPeer::LANGUAGE, $dbLanguage, $comparison); } /** * Filter the query on the copyright column * * Example usage: * <code> * $query->filterByDbCopyright('fooValue'); // WHERE copyright = 'fooValue' * $query->filterByDbCopyright('%fooValue%'); // WHERE copyright LIKE '%fooValue%' * </code> * * @param string $dbCopyright The value to use as filter. * Accepts wildcards (* and % trigger a LIKE) * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return PodcastQuery The current query, for fluid interface */ public function filterByDbCopyright($dbCopyright = null, $comparison = null) { if (null === $comparison) { if (is_array($dbCopyright)) { $comparison = Criteria::IN; } elseif (preg_match('/[\%\*]/', $dbCopyright)) { $dbCopyright = str_replace('*', '%', $dbCopyright); $comparison = Criteria::LIKE; } } return $this->addUsingAlias(PodcastPeer::COPYRIGHT, $dbCopyright, $comparison); } /** * Filter the query on the link column * * Example usage: * <code> * $query->filterByDbLink('fooValue'); // WHERE link = 'fooValue' * $query->filterByDbLink('%fooValue%'); // WHERE link LIKE '%fooValue%' * </code> * * @param string $dbLink The value to use as filter. * Accepts wildcards (* and % trigger a LIKE) * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return PodcastQuery The current query, for fluid interface */ public function filterByDbLink($dbLink = null, $comparison = null) { if (null === $comparison) { if (is_array($dbLink)) { $comparison = Criteria::IN; } elseif (preg_match('/[\%\*]/', $dbLink)) { $dbLink = str_replace('*', '%', $dbLink); $comparison = Criteria::LIKE; } } return $this->addUsingAlias(PodcastPeer::LINK, $dbLink, $comparison); } /** * Filter the query on the itunes_author column * * Example usage: * <code> * $query->filterByDbItunesAuthor('fooValue'); // WHERE itunes_author = 'fooValue' * $query->filterByDbItunesAuthor('%fooValue%'); // WHERE itunes_author LIKE '%fooValue%' * </code> * * @param string $dbItunesAuthor The value to use as filter. * Accepts wildcards (* and % trigger a LIKE) * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return PodcastQuery The current query, for fluid interface */ public function filterByDbItunesAuthor($dbItunesAuthor = null, $comparison = null) { if (null === $comparison) { if (is_array($dbItunesAuthor)) { $comparison = Criteria::IN; } elseif (preg_match('/[\%\*]/', $dbItunesAuthor)) { $dbItunesAuthor = str_replace('*', '%', $dbItunesAuthor); $comparison = Criteria::LIKE; } } return $this->addUsingAlias(PodcastPeer::ITUNES_AUTHOR, $dbItunesAuthor, $comparison); } /** * Filter the query on the itunes_keywords column * * Example usage: * <code> * $query->filterByDbItunesKeywords('fooValue'); // WHERE itunes_keywords = 'fooValue' * $query->filterByDbItunesKeywords('%fooValue%'); // WHERE itunes_keywords LIKE '%fooValue%' * </code> * * @param string $dbItunesKeywords The value to use as filter. * Accepts wildcards (* and % trigger a LIKE) * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return PodcastQuery The current query, for fluid interface */ public function filterByDbItunesKeywords($dbItunesKeywords = null, $comparison = null) { if (null === $comparison) { if (is_array($dbItunesKeywords)) { $comparison = Criteria::IN; } elseif (preg_match('/[\%\*]/', $dbItunesKeywords)) { $dbItunesKeywords = str_replace('*', '%', $dbItunesKeywords); $comparison = Criteria::LIKE; } } return $this->addUsingAlias(PodcastPeer::ITUNES_KEYWORDS, $dbItunesKeywords, $comparison); } /** * Filter the query on the itunes_summary column * * Example usage: * <code> * $query->filterByDbItunesSummary('fooValue'); // WHERE itunes_summary = 'fooValue' * $query->filterByDbItunesSummary('%fooValue%'); // WHERE itunes_summary LIKE '%fooValue%' * </code> * * @param string $dbItunesSummary The value to use as filter. * Accepts wildcards (* and % trigger a LIKE) * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return PodcastQuery The current query, for fluid interface */ public function filterByDbItunesSummary($dbItunesSummary = null, $comparison = null) { if (null === $comparison) { if (is_array($dbItunesSummary)) { $comparison = Criteria::IN; } elseif (preg_match('/[\%\*]/', $dbItunesSummary)) { $dbItunesSummary = str_replace('*', '%', $dbItunesSummary); $comparison = Criteria::LIKE; } } return $this->addUsingAlias(PodcastPeer::ITUNES_SUMMARY, $dbItunesSummary, $comparison); } /** * Filter the query on the itunes_subtitle column * * Example usage: * <code> * $query->filterByDbItunesSubtitle('fooValue'); // WHERE itunes_subtitle = 'fooValue' * $query->filterByDbItunesSubtitle('%fooValue%'); // WHERE itunes_subtitle LIKE '%fooValue%' * </code> * * @param string $dbItunesSubtitle The value to use as filter. * Accepts wildcards (* and % trigger a LIKE) * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return PodcastQuery The current query, for fluid interface */ public function filterByDbItunesSubtitle($dbItunesSubtitle = null, $comparison = null) { if (null === $comparison) { if (is_array($dbItunesSubtitle)) { $comparison = Criteria::IN; } elseif (preg_match('/[\%\*]/', $dbItunesSubtitle)) { $dbItunesSubtitle = str_replace('*', '%', $dbItunesSubtitle); $comparison = Criteria::LIKE; } } return $this->addUsingAlias(PodcastPeer::ITUNES_SUBTITLE, $dbItunesSubtitle, $comparison); } /** * Filter the query on the itunes_category column * * Example usage: * <code> * $query->filterByDbItunesCategory('fooValue'); // WHERE itunes_category = 'fooValue' * $query->filterByDbItunesCategory('%fooValue%'); // WHERE itunes_category LIKE '%fooValue%' * </code> * * @param string $dbItunesCategory The value to use as filter. * Accepts wildcards (* and % trigger a LIKE) * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return PodcastQuery The current query, for fluid interface */ public function filterByDbItunesCategory($dbItunesCategory = null, $comparison = null) { if (null === $comparison) { if (is_array($dbItunesCategory)) { $comparison = Criteria::IN; } elseif (preg_match('/[\%\*]/', $dbItunesCategory)) { $dbItunesCategory = str_replace('*', '%', $dbItunesCategory); $comparison = Criteria::LIKE; } } return $this->addUsingAlias(PodcastPeer::ITUNES_CATEGORY, $dbItunesCategory, $comparison); } /** * Filter the query on the itunes_explicit column * * Example usage: * <code> * $query->filterByDbItunesExplicit('fooValue'); // WHERE itunes_explicit = 'fooValue' * $query->filterByDbItunesExplicit('%fooValue%'); // WHERE itunes_explicit LIKE '%fooValue%' * </code> * * @param string $dbItunesExplicit The value to use as filter. * Accepts wildcards (* and % trigger a LIKE) * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return PodcastQuery The current query, for fluid interface */ public function filterByDbItunesExplicit($dbItunesExplicit = null, $comparison = null) { if (null === $comparison) { if (is_array($dbItunesExplicit)) { $comparison = Criteria::IN; } elseif (preg_match('/[\%\*]/', $dbItunesExplicit)) { $dbItunesExplicit = str_replace('*', '%', $dbItunesExplicit); $comparison = Criteria::LIKE; } } return $this->addUsingAlias(PodcastPeer::ITUNES_EXPLICIT, $dbItunesExplicit, $comparison); } /** * Filter the query on the owner column * * Example usage: * <code> * $query->filterByDbOwner(1234); // WHERE owner = 1234 * $query->filterByDbOwner(array(12, 34)); // WHERE owner IN (12, 34) * $query->filterByDbOwner(array('min' => 12)); // WHERE owner >= 12 * $query->filterByDbOwner(array('max' => 12)); // WHERE owner <= 12 * </code> * * @see filterByCcSubjs() * * @param mixed $dbOwner The value to use as filter. * Use scalar values for equality. * Use array values for in_array() equivalent. * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return PodcastQuery The current query, for fluid interface */ public function filterByDbOwner($dbOwner = null, $comparison = null) { if (is_array($dbOwner)) { $useMinMax = false; if (isset($dbOwner['min'])) { $this->addUsingAlias(PodcastPeer::OWNER, $dbOwner['min'], Criteria::GREATER_EQUAL); $useMinMax = true; } if (isset($dbOwner['max'])) { $this->addUsingAlias(PodcastPeer::OWNER, $dbOwner['max'], Criteria::LESS_EQUAL); $useMinMax = true; } if ($useMinMax) { return $this; } if (null === $comparison) { $comparison = Criteria::IN; } } return $this->addUsingAlias(PodcastPeer::OWNER, $dbOwner, $comparison); } /** * Filter the query by a related CcSubjs object * * @param CcSubjs|PropelObjectCollection $ccSubjs The related object(s) to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return PodcastQuery The current query, for fluid interface * @throws PropelException - if the provided filter is invalid. */ public function filterByCcSubjs($ccSubjs, $comparison = null) { if ($ccSubjs instanceof CcSubjs) { return $this ->addUsingAlias(PodcastPeer::OWNER, $ccSubjs->getDbId(), $comparison); } elseif ($ccSubjs instanceof PropelObjectCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this ->addUsingAlias(PodcastPeer::OWNER, $ccSubjs->toKeyValue('PrimaryKey', 'DbId'), $comparison); } else { throw new PropelException('filterByCcSubjs() only accepts arguments of type CcSubjs or PropelCollection'); } } /** * Adds a JOIN clause to the query using the CcSubjs relation * * @param string $relationAlias optional alias for the relation * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' * * @return PodcastQuery The current query, for fluid interface */ public function joinCcSubjs($relationAlias = null, $joinType = Criteria::LEFT_JOIN) { $tableMap = $this->getTableMap(); $relationMap = $tableMap->getRelation('CcSubjs'); // create a ModelJoin object for this join $join = new ModelJoin(); $join->setJoinType($joinType); $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias); if ($previousJoin = $this->getPreviousJoin()) { $join->setPreviousJoin($previousJoin); } // add the ModelJoin to the current object if ($relationAlias) { $this->addAlias($relationAlias, $relationMap->getRightTable()->getName()); $this->addJoinObject($join, $relationAlias); } else { $this->addJoinObject($join, 'CcSubjs'); } return $this; } /** * Use the CcSubjs relation CcSubjs object * * @see useQuery() * * @param string $relationAlias optional alias for the relation, * to be used as main alias in the secondary query * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' * * @return CcSubjsQuery A secondary query class using the current class as primary query */ public function useCcSubjsQuery($relationAlias = null, $joinType = Criteria::LEFT_JOIN) { return $this ->joinCcSubjs($relationAlias, $joinType) ->useQuery($relationAlias ? $relationAlias : 'CcSubjs', 'CcSubjsQuery'); } /** * Filter the query by a related StationPodcast object * * @param StationPodcast|PropelObjectCollection $stationPodcast the related object to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return PodcastQuery The current query, for fluid interface * @throws PropelException - if the provided filter is invalid. */ public function filterByStationPodcast($stationPodcast, $comparison = null) { if ($stationPodcast instanceof StationPodcast) { return $this ->addUsingAlias(PodcastPeer::ID, $stationPodcast->getDbPodcastId(), $comparison); } elseif ($stationPodcast instanceof PropelObjectCollection) { return $this ->useStationPodcastQuery() ->filterByPrimaryKeys($stationPodcast->getPrimaryKeys()) ->endUse(); } else { throw new PropelException('filterByStationPodcast() only accepts arguments of type StationPodcast or PropelCollection'); } } /** * Adds a JOIN clause to the query using the StationPodcast relation * * @param string $relationAlias optional alias for the relation * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' * * @return PodcastQuery The current query, for fluid interface */ public function joinStationPodcast($relationAlias = null, $joinType = Criteria::INNER_JOIN) { $tableMap = $this->getTableMap(); $relationMap = $tableMap->getRelation('StationPodcast'); // create a ModelJoin object for this join $join = new ModelJoin(); $join->setJoinType($joinType); $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias); if ($previousJoin = $this->getPreviousJoin()) { $join->setPreviousJoin($previousJoin); } // add the ModelJoin to the current object if ($relationAlias) { $this->addAlias($relationAlias, $relationMap->getRightTable()->getName()); $this->addJoinObject($join, $relationAlias); } else { $this->addJoinObject($join, 'StationPodcast'); } return $this; } /** * Use the StationPodcast relation StationPodcast object * * @see useQuery() * * @param string $relationAlias optional alias for the relation, * to be used as main alias in the secondary query * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' * * @return StationPodcastQuery A secondary query class using the current class as primary query */ public function useStationPodcastQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN) { return $this ->joinStationPodcast($relationAlias, $joinType) ->useQuery($relationAlias ? $relationAlias : 'StationPodcast', 'StationPodcastQuery'); } /** * Filter the query by a related ImportedPodcast object * * @param ImportedPodcast|PropelObjectCollection $importedPodcast the related object to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return PodcastQuery The current query, for fluid interface * @throws PropelException - if the provided filter is invalid. */ public function filterByImportedPodcast($importedPodcast, $comparison = null) { if ($importedPodcast instanceof ImportedPodcast) { return $this ->addUsingAlias(PodcastPeer::ID, $importedPodcast->getDbPodcastId(), $comparison); } elseif ($importedPodcast instanceof PropelObjectCollection) { return $this ->useImportedPodcastQuery() ->filterByPrimaryKeys($importedPodcast->getPrimaryKeys()) ->endUse(); } else { throw new PropelException('filterByImportedPodcast() only accepts arguments of type ImportedPodcast or PropelCollection'); } } /** * Adds a JOIN clause to the query using the ImportedPodcast relation * * @param string $relationAlias optional alias for the relation * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' * * @return PodcastQuery The current query, for fluid interface */ public function joinImportedPodcast($relationAlias = null, $joinType = Criteria::INNER_JOIN) { $tableMap = $this->getTableMap(); $relationMap = $tableMap->getRelation('ImportedPodcast'); // create a ModelJoin object for this join $join = new ModelJoin(); $join->setJoinType($joinType); $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias); if ($previousJoin = $this->getPreviousJoin()) { $join->setPreviousJoin($previousJoin); } // add the ModelJoin to the current object if ($relationAlias) { $this->addAlias($relationAlias, $relationMap->getRightTable()->getName()); $this->addJoinObject($join, $relationAlias); } else { $this->addJoinObject($join, 'ImportedPodcast'); } return $this; } /** * Use the ImportedPodcast relation ImportedPodcast object * * @see useQuery() * * @param string $relationAlias optional alias for the relation, * to be used as main alias in the secondary query * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' * * @return ImportedPodcastQuery A secondary query class using the current class as primary query */ public function useImportedPodcastQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN) { return $this ->joinImportedPodcast($relationAlias, $joinType) ->useQuery($relationAlias ? $relationAlias : 'ImportedPodcast', 'ImportedPodcastQuery'); } /** * Filter the query by a related PodcastEpisodes object * * @param PodcastEpisodes|PropelObjectCollection $podcastEpisodes the related object to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return PodcastQuery The current query, for fluid interface * @throws PropelException - if the provided filter is invalid. */ public function filterByPodcastEpisodes($podcastEpisodes, $comparison = null) { if ($podcastEpisodes instanceof PodcastEpisodes) { return $this ->addUsingAlias(PodcastPeer::ID, $podcastEpisodes->getDbPodcastId(), $comparison); } elseif ($podcastEpisodes instanceof PropelObjectCollection) { return $this ->usePodcastEpisodesQuery() ->filterByPrimaryKeys($podcastEpisodes->getPrimaryKeys()) ->endUse(); } else { throw new PropelException('filterByPodcastEpisodes() only accepts arguments of type PodcastEpisodes or PropelCollection'); } } /** * Adds a JOIN clause to the query using the PodcastEpisodes relation * * @param string $relationAlias optional alias for the relation * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' * * @return PodcastQuery The current query, for fluid interface */ public function joinPodcastEpisodes($relationAlias = null, $joinType = Criteria::INNER_JOIN) { $tableMap = $this->getTableMap(); $relationMap = $tableMap->getRelation('PodcastEpisodes'); // create a ModelJoin object for this join $join = new ModelJoin(); $join->setJoinType($joinType); $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias); if ($previousJoin = $this->getPreviousJoin()) { $join->setPreviousJoin($previousJoin); } // add the ModelJoin to the current object if ($relationAlias) { $this->addAlias($relationAlias, $relationMap->getRightTable()->getName()); $this->addJoinObject($join, $relationAlias); } else { $this->addJoinObject($join, 'PodcastEpisodes'); } return $this; } /** * Use the PodcastEpisodes relation PodcastEpisodes object * * @see useQuery() * * @param string $relationAlias optional alias for the relation, * to be used as main alias in the secondary query * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' * * @return PodcastEpisodesQuery A secondary query class using the current class as primary query */ public function usePodcastEpisodesQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN) { return $this ->joinPodcastEpisodes($relationAlias, $joinType) ->useQuery($relationAlias ? $relationAlias : 'PodcastEpisodes', 'PodcastEpisodesQuery'); } /** * Exclude object from result * * @param Podcast $podcast Object to remove from the list of results * * @return PodcastQuery The current query, for fluid interface */ public function prune($podcast = null) { if ($podcast) { $this->addUsingAlias(PodcastPeer::ID, $podcast->getDbId(), Criteria::NOT_EQUAL); } return $this; } }
{ "pile_set_name": "Github" }
/* Name: 809finest Description: Version: 1.0 Author: Daniel De Jesús URL: http://809finest.com */ .crayon-theme-809finest { border-width: 1px !important; text-shadow: none !important; border-color: #162E53 !important; border-style: solid !important; background: #162E53 !important; } .crayon-theme-809finest-inline { border-width: 1px !important; border-color: #162E53 !important; border-style: solid !important; background: #112442 !important; } .crayon-theme-809finest .crayon-table .crayon-nums { color: #ffffff !important; background: #BB0A1C !important; } .crayon-theme-809finest .crayon-striped-line { background: #162E53 !important; } .crayon-theme-809finest .crayon-striped-num { background: #BB0A1C !important; color: #ffffff !important; } .crayon-theme-809finest .crayon-marked-line { border-width: 1px !important; border-color: #162E53 !important; background: #162E53 !important; } .crayon-theme-809finest .crayon-marked-num { color: #ffffff !important; border-width: 1px !important; border-color: #BB0A1C !important; background: #BB0A1C !important; } .crayon-theme-809finest .crayon-marked-line.crayon-striped-line { background: #162E53 !important; } .crayon-theme-809finest .crayon-marked-num.crayon-striped-num { color: #ffffff !important; background: #BB0A1C !important; } .crayon-theme-809finest .crayon-marked-line.crayon-top { border-top-style: solid !important; } .crayon-theme-809finest .crayon-marked-num.crayon-top { border-top-style: solid !important; } .crayon-theme-809finest .crayon-marked-line.crayon-bottom { border-bottom-style: solid !important; } .crayon-theme-809finest .crayon-marked-num.crayon-bottom { border-bottom-style: solid !important; } .crayon-theme-809finest .crayon-info { border-bottom-width: 1px !important; border-bottom-style: solid !important; color: #ffffff !important; border-bottom-color: #BB0A1C !important; background: #162E53 !important; } .crayon-theme-809finest .crayon-toolbar { background: #BB0A1C !important; border-bottom-width: 1px !important; border-bottom-color: #BB0A1C !important; border-bottom-style: solid !important; } .crayon-theme-809finest .crayon-toolbar > div { float: left !important; } .crayon-theme-809finest .crayon-toolbar .crayon-tools { float: right !important; } .crayon-theme-809finest .crayon-title { color: #ffffff !important; } .crayon-theme-809finest .crayon-language { color: #ffffff !important; } .crayon-theme-809finest a.crayon-button { background-color: transparent !important; } .crayon-theme-809finest a.crayon-button:hover { background-color: #dddddd !important; color: #666; } .crayon-theme-809finest a.crayon-button.crayon-pressed:hover { background-color: #eeeeee !important; color: #666; } .crayon-theme-809finest a.crayon-button.crayon-pressed { background-color: #dddddd !important; color: #FFF; } .crayon-theme-809finest a.crayon-button.crayon-pressed:active { background-color: #dddddd !important; color: #FFF; } .crayon-theme-809finest a.crayon-button:active { background-color: #dddddd !important; color: #FFF; } .crayon-theme-809finest .crayon-pre .crayon-c { color: #ffffff !important; } .crayon-theme-809finest .crayon-pre .crayon-s { color: #ffffff !important; } .crayon-theme-809finest .crayon-pre .crayon-p { color: #ffffff !important; } .crayon-theme-809finest .crayon-pre .crayon-ta { color: #e91e1e !important; } .crayon-theme-809finest .crayon-pre .crayon-k { color: #006699 !important; } .crayon-theme-809finest .crayon-pre .crayon-st { color: #BB0A1C !important; font-weight: bold !important; } .crayon-theme-809finest .crayon-pre .crayon-r { color: #BB0A1C !important; } .crayon-theme-809finest .crayon-pre .crayon-t { color: #BB0A1C !important; } .crayon-theme-809finest .crayon-pre .crayon-m { color: #BB0A1C !important; } .crayon-theme-809finest .crayon-pre .crayon-i { color: #ffffff !important; } .crayon-theme-809finest .crayon-pre .crayon-e { color: #BB0A1C !important; } .crayon-theme-809finest .crayon-pre .crayon-v { color: #ffffff !important; } .crayon-theme-809finest .crayon-pre .crayon-cn { color: #ffffff !important; } .crayon-theme-809finest .crayon-pre .crayon-o { color: #ffffff !important; } .crayon-theme-809finest .crayon-pre .crayon-sy { color: #ffffff !important; } .crayon-theme-809finest .crayon-pre .crayon-n { color: #ffffff !important; font-style: italic !important; } .crayon-theme-809finest .crayon-pre .crayon-f { color: #112442 !important; } .crayon-theme-809finest .crayon-pre .crayon-h { color: #BB0A1C !important; }
{ "pile_set_name": "Github" }
using System; using System.Web.Mvc; using Glimpse.Mvc.Model; using Glimpse.Test.Common; using Xunit; using Xunit.Extensions; namespace Glimpse.Test.Mvc.Model { public class ViewModelSummaryShould { [Theory, AutoMock] public void SetModelType(ViewDataDictionary viewData, TempDataDictionary tempData, string displayMode, Type displayModeType) { var sut = new ViewModelSummary(viewData, tempData, typeof(ViewModelSummary), true, displayMode, displayModeType); Assert.Equal(true, sut.IsValid); Assert.Equal(typeof(ViewModelSummary), sut.ModelType); } [Theory, AutoMock] public void ReturnViewDataKeys(TempDataDictionary tempData, string displayMode, Type displayModeType) { var viewData = new ViewDataDictionary { { "A", 1 }, { "B", 2 }, { "C", 3 } }; var sut = new ViewModelSummary(viewData, tempData, typeof(ViewModelSummary), true, displayMode, displayModeType); Assert.Contains("A", sut.ViewDataKeys); Assert.Contains("B", sut.ViewDataKeys); Assert.Contains("C", sut.ViewDataKeys); } [Theory, AutoMock] public void ReturnTempDataKeys(ViewDataDictionary viewData, string displayMode, Type displayModeType) { var tempData = new TempDataDictionary { { "A", 1 }, { "B", 2 }, { "C", 3 } }; var sut = new ViewModelSummary(viewData, tempData, typeof(ViewModelSummary), true, displayMode, displayModeType); Assert.Contains("A", sut.TempDataKeys); Assert.Contains("B", sut.TempDataKeys); Assert.Contains("C", sut.TempDataKeys); } [Theory, AutoMock] public void SetDisplayMode(ViewDataDictionary viewData, TempDataDictionary tempData, string displayMode, Type displayModeType) { var sut = new ViewModelSummary(viewData, tempData, typeof(ViewModelSummary), true, displayMode, displayModeType); Assert.Equal(displayMode, sut.DisplayModeId); } [Theory, AutoMock] public void SetDisplayModeType(ViewDataDictionary viewData, TempDataDictionary tempData, string displayMode, Type displayModeType) { var sut = new ViewModelSummary(viewData, tempData, typeof(ViewModelSummary), true, displayMode, displayModeType); Assert.Equal(displayModeType, sut.DisplayModeType); Assert.True(sut.HasDisplayMode); } } }
{ "pile_set_name": "Github" }
require 'tzinfo/timezone_definition' module TZInfo module Definitions module America module Inuvik include TimezoneDefinition timezone 'America/Inuvik' do |tz| tz.offset :o0, 0, 0, :zzz tz.offset :o1, -28800, 0, :PST tz.offset :o2, -28800, 7200, :PDDT tz.offset :o3, -25200, 0, :MST tz.offset :o4, -25200, 3600, :MDT tz.transition 1953, 1, :o1, 4868757, 2 tz.transition 1965, 4, :o2, 14633255, 6 tz.transition 1965, 10, :o1, 14634389, 6 tz.transition 1979, 4, :o3, 294228000 tz.transition 1980, 4, :o4, 325674000 tz.transition 1980, 10, :o3, 341395200 tz.transition 1981, 4, :o4, 357123600 tz.transition 1981, 10, :o3, 372844800 tz.transition 1982, 4, :o4, 388573200 tz.transition 1982, 10, :o3, 404899200 tz.transition 1983, 4, :o4, 420022800 tz.transition 1983, 10, :o3, 436348800 tz.transition 1984, 4, :o4, 452077200 tz.transition 1984, 10, :o3, 467798400 tz.transition 1985, 4, :o4, 483526800 tz.transition 1985, 10, :o3, 499248000 tz.transition 1986, 4, :o4, 514976400 tz.transition 1986, 10, :o3, 530697600 tz.transition 1987, 4, :o4, 544611600 tz.transition 1987, 10, :o3, 562147200 tz.transition 1988, 4, :o4, 576061200 tz.transition 1988, 10, :o3, 594201600 tz.transition 1989, 4, :o4, 607510800 tz.transition 1989, 10, :o3, 625651200 tz.transition 1990, 4, :o4, 638960400 tz.transition 1990, 10, :o3, 657100800 tz.transition 1991, 4, :o4, 671014800 tz.transition 1991, 10, :o3, 688550400 tz.transition 1992, 4, :o4, 702464400 tz.transition 1992, 10, :o3, 720000000 tz.transition 1993, 4, :o4, 733914000 tz.transition 1993, 10, :o3, 752054400 tz.transition 1994, 4, :o4, 765363600 tz.transition 1994, 10, :o3, 783504000 tz.transition 1995, 4, :o4, 796813200 tz.transition 1995, 10, :o3, 814953600 tz.transition 1996, 4, :o4, 828867600 tz.transition 1996, 10, :o3, 846403200 tz.transition 1997, 4, :o4, 860317200 tz.transition 1997, 10, :o3, 877852800 tz.transition 1998, 4, :o4, 891766800 tz.transition 1998, 10, :o3, 909302400 tz.transition 1999, 4, :o4, 923216400 tz.transition 1999, 10, :o3, 941356800 tz.transition 2000, 4, :o4, 954666000 tz.transition 2000, 10, :o3, 972806400 tz.transition 2001, 4, :o4, 986115600 tz.transition 2001, 10, :o3, 1004256000 tz.transition 2002, 4, :o4, 1018170000 tz.transition 2002, 10, :o3, 1035705600 tz.transition 2003, 4, :o4, 1049619600 tz.transition 2003, 10, :o3, 1067155200 tz.transition 2004, 4, :o4, 1081069200 tz.transition 2004, 10, :o3, 1099209600 tz.transition 2005, 4, :o4, 1112518800 tz.transition 2005, 10, :o3, 1130659200 tz.transition 2006, 4, :o4, 1143968400 tz.transition 2006, 10, :o3, 1162108800 tz.transition 2007, 3, :o4, 1173603600 tz.transition 2007, 11, :o3, 1194163200 tz.transition 2008, 3, :o4, 1205053200 tz.transition 2008, 11, :o3, 1225612800 tz.transition 2009, 3, :o4, 1236502800 tz.transition 2009, 11, :o3, 1257062400 tz.transition 2010, 3, :o4, 1268557200 tz.transition 2010, 11, :o3, 1289116800 tz.transition 2011, 3, :o4, 1300006800 tz.transition 2011, 11, :o3, 1320566400 tz.transition 2012, 3, :o4, 1331456400 tz.transition 2012, 11, :o3, 1352016000 tz.transition 2013, 3, :o4, 1362906000 tz.transition 2013, 11, :o3, 1383465600 tz.transition 2014, 3, :o4, 1394355600 tz.transition 2014, 11, :o3, 1414915200 tz.transition 2015, 3, :o4, 1425805200 tz.transition 2015, 11, :o3, 1446364800 tz.transition 2016, 3, :o4, 1457859600 tz.transition 2016, 11, :o3, 1478419200 tz.transition 2017, 3, :o4, 1489309200 tz.transition 2017, 11, :o3, 1509868800 tz.transition 2018, 3, :o4, 1520758800 tz.transition 2018, 11, :o3, 1541318400 tz.transition 2019, 3, :o4, 1552208400 tz.transition 2019, 11, :o3, 1572768000 tz.transition 2020, 3, :o4, 1583658000 tz.transition 2020, 11, :o3, 1604217600 tz.transition 2021, 3, :o4, 1615712400 tz.transition 2021, 11, :o3, 1636272000 tz.transition 2022, 3, :o4, 1647162000 tz.transition 2022, 11, :o3, 1667721600 tz.transition 2023, 3, :o4, 1678611600 tz.transition 2023, 11, :o3, 1699171200 tz.transition 2024, 3, :o4, 1710061200 tz.transition 2024, 11, :o3, 1730620800 tz.transition 2025, 3, :o4, 1741510800 tz.transition 2025, 11, :o3, 1762070400 tz.transition 2026, 3, :o4, 1772960400 tz.transition 2026, 11, :o3, 1793520000 tz.transition 2027, 3, :o4, 1805014800 tz.transition 2027, 11, :o3, 1825574400 tz.transition 2028, 3, :o4, 1836464400 tz.transition 2028, 11, :o3, 1857024000 tz.transition 2029, 3, :o4, 1867914000 tz.transition 2029, 11, :o3, 1888473600 tz.transition 2030, 3, :o4, 1899363600 tz.transition 2030, 11, :o3, 1919923200 tz.transition 2031, 3, :o4, 1930813200 tz.transition 2031, 11, :o3, 1951372800 tz.transition 2032, 3, :o4, 1962867600 tz.transition 2032, 11, :o3, 1983427200 tz.transition 2033, 3, :o4, 1994317200 tz.transition 2033, 11, :o3, 2014876800 tz.transition 2034, 3, :o4, 2025766800 tz.transition 2034, 11, :o3, 2046326400 tz.transition 2035, 3, :o4, 2057216400 tz.transition 2035, 11, :o3, 2077776000 tz.transition 2036, 3, :o4, 2088666000 tz.transition 2036, 11, :o3, 2109225600 tz.transition 2037, 3, :o4, 2120115600 tz.transition 2037, 11, :o3, 2140675200 tz.transition 2038, 3, :o4, 19723975, 8 tz.transition 2038, 11, :o3, 14794409, 6 tz.transition 2039, 3, :o4, 19726887, 8 tz.transition 2039, 11, :o3, 14796593, 6 tz.transition 2040, 3, :o4, 19729799, 8 tz.transition 2040, 11, :o3, 14798777, 6 tz.transition 2041, 3, :o4, 19732711, 8 tz.transition 2041, 11, :o3, 14800961, 6 tz.transition 2042, 3, :o4, 19735623, 8 tz.transition 2042, 11, :o3, 14803145, 6 tz.transition 2043, 3, :o4, 19738535, 8 tz.transition 2043, 11, :o3, 14805329, 6 tz.transition 2044, 3, :o4, 19741503, 8 tz.transition 2044, 11, :o3, 14807555, 6 tz.transition 2045, 3, :o4, 19744415, 8 tz.transition 2045, 11, :o3, 14809739, 6 tz.transition 2046, 3, :o4, 19747327, 8 tz.transition 2046, 11, :o3, 14811923, 6 tz.transition 2047, 3, :o4, 19750239, 8 tz.transition 2047, 11, :o3, 14814107, 6 tz.transition 2048, 3, :o4, 19753151, 8 tz.transition 2048, 11, :o3, 14816291, 6 tz.transition 2049, 3, :o4, 19756119, 8 tz.transition 2049, 11, :o3, 14818517, 6 tz.transition 2050, 3, :o4, 19759031, 8 tz.transition 2050, 11, :o3, 14820701, 6 end end end end end
{ "pile_set_name": "Github" }
// XFAIL: linux // Different sanitizer coverage types // RUN: %swiftc_driver -driver-print-jobs -sanitize-coverage=func -sanitize=address %s | %FileCheck -check-prefix=SANCOV_FUNC %s // RUN: %swiftc_driver -driver-print-jobs -sanitize-coverage=bb -sanitize=address %s | %FileCheck -check-prefix=SANCOV_BB %s // RUN: %swiftc_driver -driver-print-jobs -sanitize-coverage=edge -sanitize=address %s | %FileCheck -check-prefix=SANCOV_EDGE %s // Try some options // RUN: %swiftc_driver -driver-print-jobs -sanitize-coverage=edge,indirect-calls,trace-bb,trace-cmp,8bit-counters -sanitize=address %s | %FileCheck -check-prefix=SANCOV_EDGE_WITH_OPTIONS %s // Invalid command line arguments // RUN: not %swiftc_driver -driver-print-jobs -sanitize-coverage=func %s 2>&1 | %FileCheck -check-prefix=SANCOV_WITHOUT_XSAN %s // RUN: not %swiftc_driver -driver-print-jobs -sanitize-coverage=bb %s 2>&1 | %FileCheck -check-prefix=SANCOV_WITHOUT_XSAN %s // RUN: not %swiftc_driver -driver-print-jobs -sanitize-coverage=edge %s 2>&1 | %FileCheck -check-prefix=SANCOV_WITHOUT_XSAN %s // RUN: not %swiftc_driver -driver-print-jobs -sanitize=address -sanitize-coverage=unknown %s 2>&1 | %FileCheck -check-prefix=SANCOV_BAD_ARG %s // RUN: not %swiftc_driver -driver-print-jobs -sanitize=address -sanitize-coverage=indirect-calls %s 2>&1 | %FileCheck -check-prefix=SANCOV_MISSING_ARG %s // RUN: not %swiftc_driver -driver-print-jobs -sanitize=address -sanitize-coverage=trace-bb %s 2>&1 | %FileCheck -check-prefix=SANCOV_MISSING_ARG %s // RUN: not %swiftc_driver -driver-print-jobs -sanitize=address -sanitize-coverage=trace-cmp %s 2>&1 | %FileCheck -check-prefix=SANCOV_MISSING_ARG %s // RUN: not %swiftc_driver -driver-print-jobs -sanitize=address -sanitize-coverage=8bit-counters %s 2>&1 | %FileCheck -check-prefix=SANCOV_MISSING_ARG %s // SANCOV_FUNC: swift // SANCOV_FUNC-DAG: -sanitize-coverage=func // SANCOV_FUNC-DAG: -sanitize=address // SANCOV_BB: swift // SANCOV_BB-DAG: -sanitize-coverage=bb // SANCOV_BB-DAG: -sanitize=address // SANCOV_EDGE: swift // SANCOV_EDGE-DAG: -sanitize-coverage=edge // SANCOV_EDGE-DAG: -sanitize=address // SANCOV_EDGE_WITH_OPTIONS: swift // SANCOV_EDGE_WITH_OPTIONS-DAG: -sanitize-coverage=edge,indirect-calls,trace-bb,trace-cmp,8bit-counters // SANCOV_EDGE_WITH_OPTIONS-DAG: -sanitize=address // SANCOV_WITHOUT_XSAN: option '-sanitize-coverage=' requires a sanitizer to be enabled. Use -sanitize= to enable a sanitizer // SANCOV_BAD_ARG: unsupported argument 'unknown' to option '-sanitize-coverage=' // SANCOV_MISSING_ARG: error: option '-sanitize-coverage=' is missing a required argument ("func", "bb", "edge")
{ "pile_set_name": "Github" }
use async_graphql::*; #[async_std::test] pub async fn test_input_object_default_value() { #[derive(InputObject)] struct MyInput { #[field(default = 999)] a: i32, #[field(default_with = "vec![1, 2, 3]")] b: Vec<i32>, #[field(default = "abc")] c: String, #[field(default = 999)] d: i32, #[field(default = 999)] e: i32, } struct MyOutput { a: i32, b: Vec<i32>, c: String, d: Option<i32>, e: Option<i32>, } #[Object] impl MyOutput { async fn a(&self) -> i32 { self.a } async fn b(&self) -> &Vec<i32> { &self.b } async fn c(&self) -> &String { &self.c } async fn d(&self) -> &Option<i32> { &self.d } async fn e(&self) -> &Option<i32> { &self.e } } struct Root; #[Object] impl Root { async fn a(&self, input: MyInput) -> MyOutput { MyOutput { a: input.a, b: input.b, c: input.c, d: Some(input.d), e: Some(input.e), } } } let schema = Schema::new(Root, EmptyMutation, EmptySubscription); let query = r#"{ a(input:{e:777}) { a b c d e } }"# .to_owned(); assert_eq!( schema.execute(&query).await.data, serde_json::json!({ "a": { "a": 999, "b": [1, 2, 3], "c": "abc", "d": 999, "e": 777, } }) ); } #[async_std::test] pub async fn test_inputobject_derive_and_item_attributes() { use serde::Deserialize; #[derive(Deserialize, PartialEq, Debug, InputObject)] struct MyInputObject { #[serde(alias = "other")] real: i32, } assert_eq!( serde_json::from_str::<MyInputObject>(r#"{ "other" : 100 }"#).unwrap(), MyInputObject { real: 100 } ); } #[async_std::test] pub async fn test_inputobject_flatten_recursive() { #[derive(InputObject, Debug, Eq, PartialEq)] struct A { a: i32, } #[derive(InputObject, Debug, Eq, PartialEq)] struct B { #[field(default = 70)] b: i32, #[field(flatten)] a_obj: A, } #[derive(InputObject, Debug, Eq, PartialEq)] struct MyInputObject { #[field(flatten)] b_obj: B, c: i32, } assert_eq!( MyInputObject::parse(Some( Value::from_json(serde_json::json!({ "a": 10, "b": 20, "c": 30, })) .unwrap() )) .unwrap(), MyInputObject { b_obj: B { b: 20, a_obj: A { a: 10 } }, c: 30, } ); assert_eq!( MyInputObject { b_obj: B { b: 20, a_obj: A { a: 10 } }, c: 30, } .to_value(), Value::from_json(serde_json::json!({ "a": 10, "b": 20, "c": 30, })) .unwrap() ); struct Query; #[Object] impl Query { async fn test(&self, input: MyInputObject) -> i32 { input.c + input.b_obj.b + input.b_obj.a_obj.a } async fn test_with_default( &self, #[arg(default_with = r#"MyInputObject { b_obj: B { b: 2, a_obj: A { a: 1 } }, c: 3, }"#)] input: MyInputObject, ) -> i32 { input.c + input.b_obj.b + input.b_obj.a_obj.a } } let schema = Schema::new(Query, EmptyMutation, EmptySubscription); assert_eq!( schema .execute( r#"{ test(input:{a:10, b: 20, c: 30}) }"# ) .await .into_result() .unwrap() .data, serde_json::json!({ "test": 60, }) ); assert_eq!( schema .execute( r#"{ test(input:{a:10, c: 30}) }"# ) .await .into_result() .unwrap() .data, serde_json::json!({ "test": 110, }) ); assert_eq!( schema .execute( r#"{ testWithDefault }"# ) .await .into_result() .unwrap() .data, serde_json::json!({ "testWithDefault": 6, }) ); } #[async_std::test] pub async fn test_inputobject_flatten_multiple() { #[derive(InputObject, Debug, Eq, PartialEq)] struct A { a: i32, } #[derive(InputObject, Debug, Eq, PartialEq)] struct B { b: i32, } #[derive(InputObject, Debug, Eq, PartialEq)] struct C { c: i32, } #[derive(InputObject, Debug, Eq, PartialEq)] struct ABC { #[field(flatten)] a: A, #[field(flatten)] b: B, #[field(flatten)] c: C, } assert_eq!( ABC::parse(Some( Value::from_json(serde_json::json!({ "a": 10, "b": 20, "c": 30, })) .unwrap() )) .unwrap(), ABC { a: A { a: 10 }, b: B { b: 20 }, c: C { c: 30 } } ); assert_eq!( ABC { a: A { a: 10 }, b: B { b: 20 }, c: C { c: 30 } } .to_value(), Value::from_json(serde_json::json!({ "a": 10, "b": 20, "c": 30, })) .unwrap() ); }
{ "pile_set_name": "Github" }
// Benchmark messages for proto2. syntax = "proto2"; package benchmarks.proto2; option java_package = "com.google.protobuf.benchmarks"; // This is the default, but we specify it here explicitly. option optimize_for = SPEED; option cc_enable_arenas = true; message GoogleMessage1 { required string field1 = 1; optional string field9 = 9; optional string field18 = 18; optional bool field80 = 80 [default=false]; optional bool field81 = 81 [default=true]; required int32 field2 = 2; required int32 field3 = 3; optional int32 field280 = 280; optional int32 field6 = 6 [default=0]; optional int64 field22 = 22; optional string field4 = 4; repeated fixed64 field5 = 5; optional bool field59 = 59 [default=false]; optional string field7 = 7; optional int32 field16 = 16; optional int32 field130 = 130 [default=0]; optional bool field12 = 12 [default=true]; optional bool field17 = 17 [default=true]; optional bool field13 = 13 [default=true]; optional bool field14 = 14 [default=true]; optional int32 field104 = 104 [default=0]; optional int32 field100 = 100 [default=0]; optional int32 field101 = 101 [default=0]; optional string field102 = 102; optional string field103 = 103; optional int32 field29 = 29 [default=0]; optional bool field30 = 30 [default=false]; optional int32 field60 = 60 [default=-1]; optional int32 field271 = 271 [default=-1]; optional int32 field272 = 272 [default=-1]; optional int32 field150 = 150; optional int32 field23 = 23 [default=0]; optional bool field24 = 24 [default=false]; optional int32 field25 = 25 [default=0]; optional GoogleMessage1SubMessage field15 = 15; optional bool field78 = 78; optional int32 field67 = 67 [default=0]; optional int32 field68 = 68; optional int32 field128 = 128 [default=0]; optional string field129 = 129 [default="xxxxxxxxxxxxxxxxxxxxx"]; optional int32 field131 = 131 [default=0]; } message GoogleMessage1SubMessage { optional int32 field1 = 1 [default=0]; optional int32 field2 = 2 [default=0]; optional int32 field3 = 3 [default=0]; optional string field15 = 15; optional bool field12 = 12 [default=true]; optional int64 field13 = 13; optional int64 field14 = 14; optional int32 field16 = 16; optional int32 field19 = 19 [default=2]; optional bool field20 = 20 [default=true]; optional bool field28 = 28 [default=true]; optional fixed64 field21 = 21; optional int32 field22 = 22; optional bool field23 = 23 [ default=false ]; optional bool field206 = 206 [default=false]; optional fixed32 field203 = 203; optional int32 field204 = 204; optional string field205 = 205; optional uint64 field207 = 207; optional uint64 field300 = 300; } message GoogleMessage2 { optional string field1 = 1; optional int64 field3 = 3; optional int64 field4 = 4; optional int64 field30 = 30; optional bool field75 = 75 [default=false]; optional string field6 = 6; optional bytes field2 = 2; optional int32 field21 = 21 [default=0]; optional int32 field71 = 71; optional float field25 = 25; optional int32 field109 = 109 [default=0]; optional int32 field210 = 210 [default=0]; optional int32 field211 = 211 [default=0]; optional int32 field212 = 212 [default=0]; optional int32 field213 = 213 [default=0]; optional int32 field216 = 216 [default=0]; optional int32 field217 = 217 [default=0]; optional int32 field218 = 218 [default=0]; optional int32 field220 = 220 [default=0]; optional int32 field221 = 221 [default=0]; optional float field222 = 222 [default=0.0]; optional int32 field63 = 63; repeated group Group1 = 10 { required float field11 = 11; optional float field26 = 26; optional string field12 = 12; optional string field13 = 13; repeated string field14 = 14; required uint64 field15 = 15; optional int32 field5 = 5; optional string field27 = 27; optional int32 field28 = 28; optional string field29 = 29; optional string field16 = 16; repeated string field22 = 22; repeated int32 field73 = 73; optional int32 field20 = 20 [default=0]; optional string field24 = 24; optional GoogleMessage2GroupedMessage field31 = 31; } repeated string field128 = 128; optional int64 field131 = 131; repeated string field127 = 127; optional int32 field129 = 129; repeated int64 field130 = 130; optional bool field205 = 205 [default=false]; optional bool field206 = 206 [default=false]; } message GoogleMessage2GroupedMessage { optional float field1 = 1; optional float field2 = 2; optional float field3 = 3 [default=0.0]; optional bool field4 = 4; optional bool field5 = 5; optional bool field6 = 6 [default=true]; optional bool field7 = 7 [default=false]; optional float field8 = 8; optional bool field9 = 9; optional float field10 = 10; optional int64 field11 = 11; }
{ "pile_set_name": "Github" }
#pragma once #include <Register/Utility.hpp> namespace Kvasir { //Power Management Controller namespace PmcPmcScer{ ///<System Clock Enable Register using Addr = Register::Address<0x400e0400,0xfffff8ff,0x00000000,unsigned>; ///Programmable Clock 0 Output Enable constexpr Register::FieldLocation<Addr,Register::maskFromRange(8,8),Register::Access<Register::AccessType::writeOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pck0{}; ///Programmable Clock 1 Output Enable constexpr Register::FieldLocation<Addr,Register::maskFromRange(9,9),Register::Access<Register::AccessType::writeOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pck1{}; ///Programmable Clock 2 Output Enable constexpr Register::FieldLocation<Addr,Register::maskFromRange(10,10),Register::Access<Register::AccessType::writeOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pck2{}; } namespace PmcPmcScdr{ ///<System Clock Disable Register using Addr = Register::Address<0x400e0404,0xfffff8ff,0x00000000,unsigned>; ///Programmable Clock 0 Output Disable constexpr Register::FieldLocation<Addr,Register::maskFromRange(8,8),Register::Access<Register::AccessType::writeOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pck0{}; ///Programmable Clock 1 Output Disable constexpr Register::FieldLocation<Addr,Register::maskFromRange(9,9),Register::Access<Register::AccessType::writeOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pck1{}; ///Programmable Clock 2 Output Disable constexpr Register::FieldLocation<Addr,Register::maskFromRange(10,10),Register::Access<Register::AccessType::writeOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pck2{}; } namespace PmcPmcScsr{ ///<System Clock Status Register using Addr = Register::Address<0x400e0408,0xfffff8ff,0x00000000,unsigned>; ///Programmable Clock 0 Output Status constexpr Register::FieldLocation<Addr,Register::maskFromRange(8,8),Register::Access<Register::AccessType::readOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pck0{}; ///Programmable Clock 1 Output Status constexpr Register::FieldLocation<Addr,Register::maskFromRange(9,9),Register::Access<Register::AccessType::readOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pck1{}; ///Programmable Clock 2 Output Status constexpr Register::FieldLocation<Addr,Register::maskFromRange(10,10),Register::Access<Register::AccessType::readOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pck2{}; } namespace PmcPmcPcer0{ ///<Peripheral Clock Enable Register 0 using Addr = Register::Address<0x400e0410,0x00470003,0x00000000,unsigned>; ///Peripheral Clock 2 Enable constexpr Register::FieldLocation<Addr,Register::maskFromRange(2,2),Register::Access<Register::AccessType::writeOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pid2{}; ///Peripheral Clock 3 Enable constexpr Register::FieldLocation<Addr,Register::maskFromRange(3,3),Register::Access<Register::AccessType::writeOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pid3{}; ///Peripheral Clock 4 Enable constexpr Register::FieldLocation<Addr,Register::maskFromRange(4,4),Register::Access<Register::AccessType::writeOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pid4{}; ///Peripheral Clock 5 Enable constexpr Register::FieldLocation<Addr,Register::maskFromRange(5,5),Register::Access<Register::AccessType::writeOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pid5{}; ///Peripheral Clock 6 Enable constexpr Register::FieldLocation<Addr,Register::maskFromRange(6,6),Register::Access<Register::AccessType::writeOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pid6{}; ///Peripheral Clock 7 Enable constexpr Register::FieldLocation<Addr,Register::maskFromRange(7,7),Register::Access<Register::AccessType::writeOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pid7{}; ///Peripheral Clock 8 Enable constexpr Register::FieldLocation<Addr,Register::maskFromRange(8,8),Register::Access<Register::AccessType::writeOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pid8{}; ///Peripheral Clock 9 Enable constexpr Register::FieldLocation<Addr,Register::maskFromRange(9,9),Register::Access<Register::AccessType::writeOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pid9{}; ///Peripheral Clock 10 Enable constexpr Register::FieldLocation<Addr,Register::maskFromRange(10,10),Register::Access<Register::AccessType::writeOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pid10{}; ///Peripheral Clock 11 Enable constexpr Register::FieldLocation<Addr,Register::maskFromRange(11,11),Register::Access<Register::AccessType::writeOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pid11{}; ///Peripheral Clock 12 Enable constexpr Register::FieldLocation<Addr,Register::maskFromRange(12,12),Register::Access<Register::AccessType::writeOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pid12{}; ///Peripheral Clock 13 Enable constexpr Register::FieldLocation<Addr,Register::maskFromRange(13,13),Register::Access<Register::AccessType::writeOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pid13{}; ///Peripheral Clock 14 Enable constexpr Register::FieldLocation<Addr,Register::maskFromRange(14,14),Register::Access<Register::AccessType::writeOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pid14{}; ///Peripheral Clock 15 Enable constexpr Register::FieldLocation<Addr,Register::maskFromRange(15,15),Register::Access<Register::AccessType::writeOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pid15{}; ///Peripheral Clock 19 Enable constexpr Register::FieldLocation<Addr,Register::maskFromRange(19,19),Register::Access<Register::AccessType::writeOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pid19{}; ///Peripheral Clock 20 Enable constexpr Register::FieldLocation<Addr,Register::maskFromRange(20,20),Register::Access<Register::AccessType::writeOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pid20{}; ///Peripheral Clock 21 Enable constexpr Register::FieldLocation<Addr,Register::maskFromRange(21,21),Register::Access<Register::AccessType::writeOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pid21{}; ///Peripheral Clock 23 Enable constexpr Register::FieldLocation<Addr,Register::maskFromRange(23,23),Register::Access<Register::AccessType::writeOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pid23{}; ///Peripheral Clock 24 Enable constexpr Register::FieldLocation<Addr,Register::maskFromRange(24,24),Register::Access<Register::AccessType::writeOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pid24{}; ///Peripheral Clock 25 Enable constexpr Register::FieldLocation<Addr,Register::maskFromRange(25,25),Register::Access<Register::AccessType::writeOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pid25{}; ///Peripheral Clock 26 Enable constexpr Register::FieldLocation<Addr,Register::maskFromRange(26,26),Register::Access<Register::AccessType::writeOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pid26{}; ///Peripheral Clock 27 Enable constexpr Register::FieldLocation<Addr,Register::maskFromRange(27,27),Register::Access<Register::AccessType::writeOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pid27{}; ///Peripheral Clock 28 Enable constexpr Register::FieldLocation<Addr,Register::maskFromRange(28,28),Register::Access<Register::AccessType::writeOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pid28{}; ///Peripheral Clock 29 Enable constexpr Register::FieldLocation<Addr,Register::maskFromRange(29,29),Register::Access<Register::AccessType::writeOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pid29{}; ///Peripheral Clock 30 Enable constexpr Register::FieldLocation<Addr,Register::maskFromRange(30,30),Register::Access<Register::AccessType::writeOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pid30{}; ///Peripheral Clock 31 Enable constexpr Register::FieldLocation<Addr,Register::maskFromRange(31,31),Register::Access<Register::AccessType::writeOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pid31{}; } namespace PmcPmcPcdr0{ ///<Peripheral Clock Disable Register 0 using Addr = Register::Address<0x400e0414,0x00470003,0x00000000,unsigned>; ///Peripheral Clock 2 Disable constexpr Register::FieldLocation<Addr,Register::maskFromRange(2,2),Register::Access<Register::AccessType::writeOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pid2{}; ///Peripheral Clock 3 Disable constexpr Register::FieldLocation<Addr,Register::maskFromRange(3,3),Register::Access<Register::AccessType::writeOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pid3{}; ///Peripheral Clock 4 Disable constexpr Register::FieldLocation<Addr,Register::maskFromRange(4,4),Register::Access<Register::AccessType::writeOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pid4{}; ///Peripheral Clock 5 Disable constexpr Register::FieldLocation<Addr,Register::maskFromRange(5,5),Register::Access<Register::AccessType::writeOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pid5{}; ///Peripheral Clock 6 Disable constexpr Register::FieldLocation<Addr,Register::maskFromRange(6,6),Register::Access<Register::AccessType::writeOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pid6{}; ///Peripheral Clock 7 Disable constexpr Register::FieldLocation<Addr,Register::maskFromRange(7,7),Register::Access<Register::AccessType::writeOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pid7{}; ///Peripheral Clock 8 Disable constexpr Register::FieldLocation<Addr,Register::maskFromRange(8,8),Register::Access<Register::AccessType::writeOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pid8{}; ///Peripheral Clock 9 Disable constexpr Register::FieldLocation<Addr,Register::maskFromRange(9,9),Register::Access<Register::AccessType::writeOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pid9{}; ///Peripheral Clock 10 Disable constexpr Register::FieldLocation<Addr,Register::maskFromRange(10,10),Register::Access<Register::AccessType::writeOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pid10{}; ///Peripheral Clock 11 Disable constexpr Register::FieldLocation<Addr,Register::maskFromRange(11,11),Register::Access<Register::AccessType::writeOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pid11{}; ///Peripheral Clock 12 Disable constexpr Register::FieldLocation<Addr,Register::maskFromRange(12,12),Register::Access<Register::AccessType::writeOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pid12{}; ///Peripheral Clock 13 Disable constexpr Register::FieldLocation<Addr,Register::maskFromRange(13,13),Register::Access<Register::AccessType::writeOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pid13{}; ///Peripheral Clock 14 Disable constexpr Register::FieldLocation<Addr,Register::maskFromRange(14,14),Register::Access<Register::AccessType::writeOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pid14{}; ///Peripheral Clock 15 Disable constexpr Register::FieldLocation<Addr,Register::maskFromRange(15,15),Register::Access<Register::AccessType::writeOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pid15{}; ///Peripheral Clock 19 Disable constexpr Register::FieldLocation<Addr,Register::maskFromRange(19,19),Register::Access<Register::AccessType::writeOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pid19{}; ///Peripheral Clock 20 Disable constexpr Register::FieldLocation<Addr,Register::maskFromRange(20,20),Register::Access<Register::AccessType::writeOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pid20{}; ///Peripheral Clock 21 Disable constexpr Register::FieldLocation<Addr,Register::maskFromRange(21,21),Register::Access<Register::AccessType::writeOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pid21{}; ///Peripheral Clock 23 Disable constexpr Register::FieldLocation<Addr,Register::maskFromRange(23,23),Register::Access<Register::AccessType::writeOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pid23{}; ///Peripheral Clock 24 Disable constexpr Register::FieldLocation<Addr,Register::maskFromRange(24,24),Register::Access<Register::AccessType::writeOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pid24{}; ///Peripheral Clock 25 Disable constexpr Register::FieldLocation<Addr,Register::maskFromRange(25,25),Register::Access<Register::AccessType::writeOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pid25{}; ///Peripheral Clock 26 Disable constexpr Register::FieldLocation<Addr,Register::maskFromRange(26,26),Register::Access<Register::AccessType::writeOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pid26{}; ///Peripheral Clock 27 Disable constexpr Register::FieldLocation<Addr,Register::maskFromRange(27,27),Register::Access<Register::AccessType::writeOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pid27{}; ///Peripheral Clock 28 Disable constexpr Register::FieldLocation<Addr,Register::maskFromRange(28,28),Register::Access<Register::AccessType::writeOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pid28{}; ///Peripheral Clock 29 Disable constexpr Register::FieldLocation<Addr,Register::maskFromRange(29,29),Register::Access<Register::AccessType::writeOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pid29{}; ///Peripheral Clock 30 Disable constexpr Register::FieldLocation<Addr,Register::maskFromRange(30,30),Register::Access<Register::AccessType::writeOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pid30{}; ///Peripheral Clock 31 Disable constexpr Register::FieldLocation<Addr,Register::maskFromRange(31,31),Register::Access<Register::AccessType::writeOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pid31{}; } namespace PmcPmcPcsr0{ ///<Peripheral Clock Status Register 0 using Addr = Register::Address<0x400e0418,0x00470003,0x00000000,unsigned>; ///Peripheral Clock 2 Status constexpr Register::FieldLocation<Addr,Register::maskFromRange(2,2),Register::Access<Register::AccessType::readOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pid2{}; ///Peripheral Clock 3 Status constexpr Register::FieldLocation<Addr,Register::maskFromRange(3,3),Register::Access<Register::AccessType::readOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pid3{}; ///Peripheral Clock 4 Status constexpr Register::FieldLocation<Addr,Register::maskFromRange(4,4),Register::Access<Register::AccessType::readOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pid4{}; ///Peripheral Clock 5 Status constexpr Register::FieldLocation<Addr,Register::maskFromRange(5,5),Register::Access<Register::AccessType::readOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pid5{}; ///Peripheral Clock 6 Status constexpr Register::FieldLocation<Addr,Register::maskFromRange(6,6),Register::Access<Register::AccessType::readOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pid6{}; ///Peripheral Clock 7 Status constexpr Register::FieldLocation<Addr,Register::maskFromRange(7,7),Register::Access<Register::AccessType::readOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pid7{}; ///Peripheral Clock 8 Status constexpr Register::FieldLocation<Addr,Register::maskFromRange(8,8),Register::Access<Register::AccessType::readOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pid8{}; ///Peripheral Clock 9 Status constexpr Register::FieldLocation<Addr,Register::maskFromRange(9,9),Register::Access<Register::AccessType::readOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pid9{}; ///Peripheral Clock 10 Status constexpr Register::FieldLocation<Addr,Register::maskFromRange(10,10),Register::Access<Register::AccessType::readOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pid10{}; ///Peripheral Clock 11 Status constexpr Register::FieldLocation<Addr,Register::maskFromRange(11,11),Register::Access<Register::AccessType::readOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pid11{}; ///Peripheral Clock 12 Status constexpr Register::FieldLocation<Addr,Register::maskFromRange(12,12),Register::Access<Register::AccessType::readOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pid12{}; ///Peripheral Clock 13 Status constexpr Register::FieldLocation<Addr,Register::maskFromRange(13,13),Register::Access<Register::AccessType::readOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pid13{}; ///Peripheral Clock 14 Status constexpr Register::FieldLocation<Addr,Register::maskFromRange(14,14),Register::Access<Register::AccessType::readOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pid14{}; ///Peripheral Clock 15 Status constexpr Register::FieldLocation<Addr,Register::maskFromRange(15,15),Register::Access<Register::AccessType::readOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pid15{}; ///Peripheral Clock 19 Status constexpr Register::FieldLocation<Addr,Register::maskFromRange(19,19),Register::Access<Register::AccessType::readOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pid19{}; ///Peripheral Clock 20 Status constexpr Register::FieldLocation<Addr,Register::maskFromRange(20,20),Register::Access<Register::AccessType::readOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pid20{}; ///Peripheral Clock 21 Status constexpr Register::FieldLocation<Addr,Register::maskFromRange(21,21),Register::Access<Register::AccessType::readOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pid21{}; ///Peripheral Clock 23 Status constexpr Register::FieldLocation<Addr,Register::maskFromRange(23,23),Register::Access<Register::AccessType::readOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pid23{}; ///Peripheral Clock 24 Status constexpr Register::FieldLocation<Addr,Register::maskFromRange(24,24),Register::Access<Register::AccessType::readOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pid24{}; ///Peripheral Clock 25 Status constexpr Register::FieldLocation<Addr,Register::maskFromRange(25,25),Register::Access<Register::AccessType::readOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pid25{}; ///Peripheral Clock 26 Status constexpr Register::FieldLocation<Addr,Register::maskFromRange(26,26),Register::Access<Register::AccessType::readOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pid26{}; ///Peripheral Clock 27 Status constexpr Register::FieldLocation<Addr,Register::maskFromRange(27,27),Register::Access<Register::AccessType::readOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pid27{}; ///Peripheral Clock 28 Status constexpr Register::FieldLocation<Addr,Register::maskFromRange(28,28),Register::Access<Register::AccessType::readOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pid28{}; ///Peripheral Clock 29 Status constexpr Register::FieldLocation<Addr,Register::maskFromRange(29,29),Register::Access<Register::AccessType::readOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pid29{}; ///Peripheral Clock 30 Status constexpr Register::FieldLocation<Addr,Register::maskFromRange(30,30),Register::Access<Register::AccessType::readOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pid30{}; ///Peripheral Clock 31 Status constexpr Register::FieldLocation<Addr,Register::maskFromRange(31,31),Register::Access<Register::AccessType::readOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pid31{}; } namespace PmcCkgrMor{ ///<Main Oscillator Register using Addr = Register::Address<0x400e0420,0xfc000084,0x00000000,unsigned>; ///Main Crystal Oscillator Enable constexpr Register::FieldLocation<Addr,Register::maskFromRange(0,0),Register::ReadWriteAccess,unsigned> moscxten{}; ///Main Crystal Oscillator Bypass constexpr Register::FieldLocation<Addr,Register::maskFromRange(1,1),Register::ReadWriteAccess,unsigned> moscxtby{}; ///Main On-Chip RC Oscillator Enable constexpr Register::FieldLocation<Addr,Register::maskFromRange(3,3),Register::ReadWriteAccess,unsigned> moscrcen{}; ///Main On-Chip RC Oscillator Frequency Selection constexpr Register::FieldLocation<Addr,Register::maskFromRange(6,4),Register::ReadWriteAccess,unsigned> moscrcf{}; ///Main Crystal Oscillator Start-up Time constexpr Register::FieldLocation<Addr,Register::maskFromRange(15,8),Register::ReadWriteAccess,unsigned> moscxtst{}; ///Password constexpr Register::FieldLocation<Addr,Register::maskFromRange(23,16),Register::ReadWriteAccess,unsigned> key{}; ///Main Oscillator Selection constexpr Register::FieldLocation<Addr,Register::maskFromRange(24,24),Register::ReadWriteAccess,unsigned> moscsel{}; ///Clock Failure Detector Enable constexpr Register::FieldLocation<Addr,Register::maskFromRange(25,25),Register::ReadWriteAccess,unsigned> cfden{}; } namespace PmcCkgrMcfr{ ///<Main Clock Frequency Register using Addr = Register::Address<0x400e0424,0xfffe0000,0x00000000,unsigned>; ///Main Clock Frequency constexpr Register::FieldLocation<Addr,Register::maskFromRange(15,0),Register::Access<Register::AccessType::readOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> mainf{}; ///Main Clock Ready constexpr Register::FieldLocation<Addr,Register::maskFromRange(16,16),Register::Access<Register::AccessType::readOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> mainfrdy{}; } namespace PmcCkgrPllar{ ///<PLLA Register using Addr = Register::Address<0x400e0428,0xd800c000,0x00000000,unsigned>; ///Divider constexpr Register::FieldLocation<Addr,Register::maskFromRange(7,0),Register::ReadWriteAccess,unsigned> diva{}; ///PLLA Counter constexpr Register::FieldLocation<Addr,Register::maskFromRange(13,8),Register::ReadWriteAccess,unsigned> pllacount{}; ///PLLA Multiplier constexpr Register::FieldLocation<Addr,Register::maskFromRange(26,16),Register::ReadWriteAccess,unsigned> mula{}; ///Must Be Set to 1 constexpr Register::FieldLocation<Addr,Register::maskFromRange(29,29),Register::ReadWriteAccess,unsigned> one{}; } namespace PmcPmcMckr{ ///<Master Clock Register using Addr = Register::Address<0x400e0430,0xffffef8c,0x00000000,unsigned>; ///Master Clock Source Selection enum class CssVal { slowClk=0x00000000, ///<Slow Clock is selected mainClk=0x00000001, ///<Main Clock is selected pllaClk=0x00000002, ///<PLLA Clock is selected }; constexpr Register::FieldLocation<Addr,Register::maskFromRange(1,0),Register::ReadWriteAccess,CssVal> css{}; namespace CssValC{ constexpr Register::FieldValue<decltype(css)::Type,CssVal::slowClk> slowClk{}; constexpr Register::FieldValue<decltype(css)::Type,CssVal::mainClk> mainClk{}; constexpr Register::FieldValue<decltype(css)::Type,CssVal::pllaClk> pllaClk{}; } ///Processor Clock Prescaler enum class PresVal { clk1=0x00000000, ///<Selected clock clk2=0x00000001, ///<Selected clock divided by 2 clk4=0x00000002, ///<Selected clock divided by 4 clk8=0x00000003, ///<Selected clock divided by 8 clk16=0x00000004, ///<Selected clock divided by 16 clk32=0x00000005, ///<Selected clock divided by 32 clk64=0x00000006, ///<Selected clock divided by 64 clk3=0x00000007, ///<Selected clock divided by 3 }; constexpr Register::FieldLocation<Addr,Register::maskFromRange(6,4),Register::ReadWriteAccess,PresVal> pres{}; namespace PresValC{ constexpr Register::FieldValue<decltype(pres)::Type,PresVal::clk1> clk1{}; constexpr Register::FieldValue<decltype(pres)::Type,PresVal::clk2> clk2{}; constexpr Register::FieldValue<decltype(pres)::Type,PresVal::clk4> clk4{}; constexpr Register::FieldValue<decltype(pres)::Type,PresVal::clk8> clk8{}; constexpr Register::FieldValue<decltype(pres)::Type,PresVal::clk16> clk16{}; constexpr Register::FieldValue<decltype(pres)::Type,PresVal::clk32> clk32{}; constexpr Register::FieldValue<decltype(pres)::Type,PresVal::clk64> clk64{}; constexpr Register::FieldValue<decltype(pres)::Type,PresVal::clk3> clk3{}; } ///PLLA Divisor by 2 constexpr Register::FieldLocation<Addr,Register::maskFromRange(12,12),Register::ReadWriteAccess,unsigned> plladiv2{}; } namespace PmcPmcIer{ ///<Interrupt Enable Register using Addr = Register::Address<0x400e0460,0xfff8f8f4,0x00000000,unsigned>; ///Main Crystal Oscillator Status Interrupt Enable constexpr Register::FieldLocation<Addr,Register::maskFromRange(0,0),Register::Access<Register::AccessType::writeOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> moscxts{}; ///PLLA Lock Interrupt Enable constexpr Register::FieldLocation<Addr,Register::maskFromRange(1,1),Register::Access<Register::AccessType::writeOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> locka{}; ///Master Clock Ready Interrupt Enable constexpr Register::FieldLocation<Addr,Register::maskFromRange(3,3),Register::Access<Register::AccessType::writeOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> mckrdy{}; ///Programmable Clock Ready 0 Interrupt Enable constexpr Register::FieldLocation<Addr,Register::maskFromRange(8,8),Register::Access<Register::AccessType::writeOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pckrdy0{}; ///Programmable Clock Ready 1 Interrupt Enable constexpr Register::FieldLocation<Addr,Register::maskFromRange(9,9),Register::Access<Register::AccessType::writeOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pckrdy1{}; ///Programmable Clock Ready 2 Interrupt Enable constexpr Register::FieldLocation<Addr,Register::maskFromRange(10,10),Register::Access<Register::AccessType::writeOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pckrdy2{}; ///Main Oscillator Selection Status Interrupt Enable constexpr Register::FieldLocation<Addr,Register::maskFromRange(16,16),Register::Access<Register::AccessType::writeOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> moscsels{}; ///Main On-Chip RC Status Interrupt Enable constexpr Register::FieldLocation<Addr,Register::maskFromRange(17,17),Register::Access<Register::AccessType::writeOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> moscrcs{}; ///Clock Failure Detector Event Interrupt Enable constexpr Register::FieldLocation<Addr,Register::maskFromRange(18,18),Register::Access<Register::AccessType::writeOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> cfdev{}; } namespace PmcPmcIdr{ ///<Interrupt Disable Register using Addr = Register::Address<0x400e0464,0xfff8f8f4,0x00000000,unsigned>; ///Main Crystal Oscillator Status Interrupt Disable constexpr Register::FieldLocation<Addr,Register::maskFromRange(0,0),Register::Access<Register::AccessType::writeOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> moscxts{}; ///PLLA Lock Interrupt Disable constexpr Register::FieldLocation<Addr,Register::maskFromRange(1,1),Register::Access<Register::AccessType::writeOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> locka{}; ///Master Clock Ready Interrupt Disable constexpr Register::FieldLocation<Addr,Register::maskFromRange(3,3),Register::Access<Register::AccessType::writeOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> mckrdy{}; ///Programmable Clock Ready 0 Interrupt Disable constexpr Register::FieldLocation<Addr,Register::maskFromRange(8,8),Register::Access<Register::AccessType::writeOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pckrdy0{}; ///Programmable Clock Ready 1 Interrupt Disable constexpr Register::FieldLocation<Addr,Register::maskFromRange(9,9),Register::Access<Register::AccessType::writeOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pckrdy1{}; ///Programmable Clock Ready 2 Interrupt Disable constexpr Register::FieldLocation<Addr,Register::maskFromRange(10,10),Register::Access<Register::AccessType::writeOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pckrdy2{}; ///Main Oscillator Selection Status Interrupt Disable constexpr Register::FieldLocation<Addr,Register::maskFromRange(16,16),Register::Access<Register::AccessType::writeOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> moscsels{}; ///Main On-Chip RC Status Interrupt Disable constexpr Register::FieldLocation<Addr,Register::maskFromRange(17,17),Register::Access<Register::AccessType::writeOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> moscrcs{}; ///Clock Failure Detector Event Interrupt Disable constexpr Register::FieldLocation<Addr,Register::maskFromRange(18,18),Register::Access<Register::AccessType::writeOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> cfdev{}; } namespace PmcPmcSr{ ///<Status Register using Addr = Register::Address<0x400e0468,0xffe0f874,0x00000000,unsigned>; ///Main XTAL Oscillator Status constexpr Register::FieldLocation<Addr,Register::maskFromRange(0,0),Register::Access<Register::AccessType::readOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> moscxts{}; ///PLLA Lock Status constexpr Register::FieldLocation<Addr,Register::maskFromRange(1,1),Register::Access<Register::AccessType::readOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> locka{}; ///Master Clock Status constexpr Register::FieldLocation<Addr,Register::maskFromRange(3,3),Register::Access<Register::AccessType::readOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> mckrdy{}; ///Slow Clock Oscillator Selection constexpr Register::FieldLocation<Addr,Register::maskFromRange(7,7),Register::Access<Register::AccessType::readOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> oscsels{}; ///Programmable Clock Ready Status constexpr Register::FieldLocation<Addr,Register::maskFromRange(8,8),Register::Access<Register::AccessType::readOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pckrdy0{}; ///Programmable Clock Ready Status constexpr Register::FieldLocation<Addr,Register::maskFromRange(9,9),Register::Access<Register::AccessType::readOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pckrdy1{}; ///Programmable Clock Ready Status constexpr Register::FieldLocation<Addr,Register::maskFromRange(10,10),Register::Access<Register::AccessType::readOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pckrdy2{}; ///Main Oscillator Selection Status constexpr Register::FieldLocation<Addr,Register::maskFromRange(16,16),Register::Access<Register::AccessType::readOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> moscsels{}; ///Main On-Chip RC Oscillator Status constexpr Register::FieldLocation<Addr,Register::maskFromRange(17,17),Register::Access<Register::AccessType::readOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> moscrcs{}; ///Clock Failure Detector Event constexpr Register::FieldLocation<Addr,Register::maskFromRange(18,18),Register::Access<Register::AccessType::readOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> cfdev{}; ///Clock Failure Detector Status constexpr Register::FieldLocation<Addr,Register::maskFromRange(19,19),Register::Access<Register::AccessType::readOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> cfds{}; ///Clock Failure Detector Fault Output Status constexpr Register::FieldLocation<Addr,Register::maskFromRange(20,20),Register::Access<Register::AccessType::readOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> fos{}; } namespace PmcPmcImr{ ///<Interrupt Mask Register using Addr = Register::Address<0x400e046c,0xfff8f8f4,0x00000000,unsigned>; ///Main Crystal Oscillator Status Interrupt Mask constexpr Register::FieldLocation<Addr,Register::maskFromRange(0,0),Register::Access<Register::AccessType::readOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> moscxts{}; ///PLLA Lock Interrupt Mask constexpr Register::FieldLocation<Addr,Register::maskFromRange(1,1),Register::Access<Register::AccessType::readOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> locka{}; ///Master Clock Ready Interrupt Mask constexpr Register::FieldLocation<Addr,Register::maskFromRange(3,3),Register::Access<Register::AccessType::readOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> mckrdy{}; ///Programmable Clock Ready 0 Interrupt Mask constexpr Register::FieldLocation<Addr,Register::maskFromRange(8,8),Register::Access<Register::AccessType::readOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pckrdy0{}; ///Programmable Clock Ready 1 Interrupt Mask constexpr Register::FieldLocation<Addr,Register::maskFromRange(9,9),Register::Access<Register::AccessType::readOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pckrdy1{}; ///Programmable Clock Ready 2 Interrupt Mask constexpr Register::FieldLocation<Addr,Register::maskFromRange(10,10),Register::Access<Register::AccessType::readOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> pckrdy2{}; ///Main Oscillator Selection Status Interrupt Mask constexpr Register::FieldLocation<Addr,Register::maskFromRange(16,16),Register::Access<Register::AccessType::readOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> moscsels{}; ///Main On-Chip RC Status Interrupt Mask constexpr Register::FieldLocation<Addr,Register::maskFromRange(17,17),Register::Access<Register::AccessType::readOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> moscrcs{}; ///Clock Failure Detector Event Interrupt Mask constexpr Register::FieldLocation<Addr,Register::maskFromRange(18,18),Register::Access<Register::AccessType::readOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> cfdev{}; } namespace PmcPmcFsmr{ ///<Fast Startup Mode Register using Addr = Register::Address<0x400e0470,0xffec0000,0x00000000,unsigned>; ///Fast Startup Input Enable 0 constexpr Register::FieldLocation<Addr,Register::maskFromRange(0,0),Register::ReadWriteAccess,unsigned> fstt0{}; ///Fast Startup Input Enable 1 constexpr Register::FieldLocation<Addr,Register::maskFromRange(1,1),Register::ReadWriteAccess,unsigned> fstt1{}; ///Fast Startup Input Enable 2 constexpr Register::FieldLocation<Addr,Register::maskFromRange(2,2),Register::ReadWriteAccess,unsigned> fstt2{}; ///Fast Startup Input Enable 3 constexpr Register::FieldLocation<Addr,Register::maskFromRange(3,3),Register::ReadWriteAccess,unsigned> fstt3{}; ///Fast Startup Input Enable 4 constexpr Register::FieldLocation<Addr,Register::maskFromRange(4,4),Register::ReadWriteAccess,unsigned> fstt4{}; ///Fast Startup Input Enable 5 constexpr Register::FieldLocation<Addr,Register::maskFromRange(5,5),Register::ReadWriteAccess,unsigned> fstt5{}; ///Fast Startup Input Enable 6 constexpr Register::FieldLocation<Addr,Register::maskFromRange(6,6),Register::ReadWriteAccess,unsigned> fstt6{}; ///Fast Startup Input Enable 7 constexpr Register::FieldLocation<Addr,Register::maskFromRange(7,7),Register::ReadWriteAccess,unsigned> fstt7{}; ///Fast Startup Input Enable 8 constexpr Register::FieldLocation<Addr,Register::maskFromRange(8,8),Register::ReadWriteAccess,unsigned> fstt8{}; ///Fast Startup Input Enable 9 constexpr Register::FieldLocation<Addr,Register::maskFromRange(9,9),Register::ReadWriteAccess,unsigned> fstt9{}; ///Fast Startup Input Enable 10 constexpr Register::FieldLocation<Addr,Register::maskFromRange(10,10),Register::ReadWriteAccess,unsigned> fstt10{}; ///Fast Startup Input Enable 11 constexpr Register::FieldLocation<Addr,Register::maskFromRange(11,11),Register::ReadWriteAccess,unsigned> fstt11{}; ///Fast Startup Input Enable 12 constexpr Register::FieldLocation<Addr,Register::maskFromRange(12,12),Register::ReadWriteAccess,unsigned> fstt12{}; ///Fast Startup Input Enable 13 constexpr Register::FieldLocation<Addr,Register::maskFromRange(13,13),Register::ReadWriteAccess,unsigned> fstt13{}; ///Fast Startup Input Enable 14 constexpr Register::FieldLocation<Addr,Register::maskFromRange(14,14),Register::ReadWriteAccess,unsigned> fstt14{}; ///Fast Startup Input Enable 15 constexpr Register::FieldLocation<Addr,Register::maskFromRange(15,15),Register::ReadWriteAccess,unsigned> fstt15{}; ///RTT Alarm Enable constexpr Register::FieldLocation<Addr,Register::maskFromRange(16,16),Register::ReadWriteAccess,unsigned> rttal{}; ///RTC Alarm Enable constexpr Register::FieldLocation<Addr,Register::maskFromRange(17,17),Register::ReadWriteAccess,unsigned> rtcal{}; ///Low Power Mode constexpr Register::FieldLocation<Addr,Register::maskFromRange(20,20),Register::ReadWriteAccess,unsigned> lpm{}; } namespace PmcPmcFspr{ ///<Fast Startup Polarity Register using Addr = Register::Address<0x400e0474,0xffff0000,0x00000000,unsigned>; ///Fast Startup Input Polarityx constexpr Register::FieldLocation<Addr,Register::maskFromRange(0,0),Register::ReadWriteAccess,unsigned> fstp0{}; ///Fast Startup Input Polarityx constexpr Register::FieldLocation<Addr,Register::maskFromRange(1,1),Register::ReadWriteAccess,unsigned> fstp1{}; ///Fast Startup Input Polarityx constexpr Register::FieldLocation<Addr,Register::maskFromRange(2,2),Register::ReadWriteAccess,unsigned> fstp2{}; ///Fast Startup Input Polarityx constexpr Register::FieldLocation<Addr,Register::maskFromRange(3,3),Register::ReadWriteAccess,unsigned> fstp3{}; ///Fast Startup Input Polarityx constexpr Register::FieldLocation<Addr,Register::maskFromRange(4,4),Register::ReadWriteAccess,unsigned> fstp4{}; ///Fast Startup Input Polarityx constexpr Register::FieldLocation<Addr,Register::maskFromRange(5,5),Register::ReadWriteAccess,unsigned> fstp5{}; ///Fast Startup Input Polarityx constexpr Register::FieldLocation<Addr,Register::maskFromRange(6,6),Register::ReadWriteAccess,unsigned> fstp6{}; ///Fast Startup Input Polarityx constexpr Register::FieldLocation<Addr,Register::maskFromRange(7,7),Register::ReadWriteAccess,unsigned> fstp7{}; ///Fast Startup Input Polarityx constexpr Register::FieldLocation<Addr,Register::maskFromRange(8,8),Register::ReadWriteAccess,unsigned> fstp8{}; ///Fast Startup Input Polarityx constexpr Register::FieldLocation<Addr,Register::maskFromRange(9,9),Register::ReadWriteAccess,unsigned> fstp9{}; ///Fast Startup Input Polarityx constexpr Register::FieldLocation<Addr,Register::maskFromRange(10,10),Register::ReadWriteAccess,unsigned> fstp10{}; ///Fast Startup Input Polarityx constexpr Register::FieldLocation<Addr,Register::maskFromRange(11,11),Register::ReadWriteAccess,unsigned> fstp11{}; ///Fast Startup Input Polarityx constexpr Register::FieldLocation<Addr,Register::maskFromRange(12,12),Register::ReadWriteAccess,unsigned> fstp12{}; ///Fast Startup Input Polarityx constexpr Register::FieldLocation<Addr,Register::maskFromRange(13,13),Register::ReadWriteAccess,unsigned> fstp13{}; ///Fast Startup Input Polarityx constexpr Register::FieldLocation<Addr,Register::maskFromRange(14,14),Register::ReadWriteAccess,unsigned> fstp14{}; ///Fast Startup Input Polarityx constexpr Register::FieldLocation<Addr,Register::maskFromRange(15,15),Register::ReadWriteAccess,unsigned> fstp15{}; } namespace PmcPmcFocr{ ///<Fault Output Clear Register using Addr = Register::Address<0x400e0478,0xfffffffe,0x00000000,unsigned>; ///Fault Output Clear constexpr Register::FieldLocation<Addr,Register::maskFromRange(0,0),Register::Access<Register::AccessType::writeOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> foclr{}; } namespace PmcPmcWpmr{ ///<Write Protect Mode Register using Addr = Register::Address<0x400e04e4,0x000000fe,0x00000000,unsigned>; ///Write Protect Enable constexpr Register::FieldLocation<Addr,Register::maskFromRange(0,0),Register::ReadWriteAccess,unsigned> wpen{}; ///Write Protect KEY constexpr Register::FieldLocation<Addr,Register::maskFromRange(31,8),Register::ReadWriteAccess,unsigned> wpkey{}; } namespace PmcPmcWpsr{ ///<Write Protect Status Register using Addr = Register::Address<0x400e04e8,0xff0000fe,0x00000000,unsigned>; ///Write Protect Violation Status constexpr Register::FieldLocation<Addr,Register::maskFromRange(0,0),Register::Access<Register::AccessType::readOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> wpvs{}; ///Write Protect Violation Source constexpr Register::FieldLocation<Addr,Register::maskFromRange(23,8),Register::Access<Register::AccessType::readOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,unsigned> wpvsrc{}; } namespace PmcPmcPck0{ ///<Programmable Clock 0 Register using Addr = Register::Address<0x400e0440,0xffffff88,0x00000000,unsigned>; ///Master Clock Source Selection constexpr Register::FieldLocation<Addr,Register::maskFromRange(2,0),Register::ReadWriteAccess,unsigned> css{}; ///Programmable Clock Prescaler enum class PresVal { clk1=0x00000000, ///<Selected clock clk2=0x00000001, ///<Selected clock divided by 2 clk4=0x00000002, ///<Selected clock divided by 4 clk8=0x00000003, ///<Selected clock divided by 8 clk16=0x00000004, ///<Selected clock divided by 16 clk32=0x00000005, ///<Selected clock divided by 32 clk64=0x00000006, ///<Selected clock divided by 64 }; constexpr Register::FieldLocation<Addr,Register::maskFromRange(6,4),Register::ReadWriteAccess,PresVal> pres{}; namespace PresValC{ constexpr Register::FieldValue<decltype(pres)::Type,PresVal::clk1> clk1{}; constexpr Register::FieldValue<decltype(pres)::Type,PresVal::clk2> clk2{}; constexpr Register::FieldValue<decltype(pres)::Type,PresVal::clk4> clk4{}; constexpr Register::FieldValue<decltype(pres)::Type,PresVal::clk8> clk8{}; constexpr Register::FieldValue<decltype(pres)::Type,PresVal::clk16> clk16{}; constexpr Register::FieldValue<decltype(pres)::Type,PresVal::clk32> clk32{}; constexpr Register::FieldValue<decltype(pres)::Type,PresVal::clk64> clk64{}; } } namespace PmcPmcPck1{ ///<Programmable Clock 0 Register using Addr = Register::Address<0x400e0444,0xffffff88,0x00000000,unsigned>; ///Master Clock Source Selection constexpr Register::FieldLocation<Addr,Register::maskFromRange(2,0),Register::ReadWriteAccess,unsigned> css{}; ///Programmable Clock Prescaler enum class PresVal { clk1=0x00000000, ///<Selected clock clk2=0x00000001, ///<Selected clock divided by 2 clk4=0x00000002, ///<Selected clock divided by 4 clk8=0x00000003, ///<Selected clock divided by 8 clk16=0x00000004, ///<Selected clock divided by 16 clk32=0x00000005, ///<Selected clock divided by 32 clk64=0x00000006, ///<Selected clock divided by 64 }; constexpr Register::FieldLocation<Addr,Register::maskFromRange(6,4),Register::ReadWriteAccess,PresVal> pres{}; namespace PresValC{ constexpr Register::FieldValue<decltype(pres)::Type,PresVal::clk1> clk1{}; constexpr Register::FieldValue<decltype(pres)::Type,PresVal::clk2> clk2{}; constexpr Register::FieldValue<decltype(pres)::Type,PresVal::clk4> clk4{}; constexpr Register::FieldValue<decltype(pres)::Type,PresVal::clk8> clk8{}; constexpr Register::FieldValue<decltype(pres)::Type,PresVal::clk16> clk16{}; constexpr Register::FieldValue<decltype(pres)::Type,PresVal::clk32> clk32{}; constexpr Register::FieldValue<decltype(pres)::Type,PresVal::clk64> clk64{}; } } namespace PmcPmcPck2{ ///<Programmable Clock 0 Register using Addr = Register::Address<0x400e0448,0xffffff88,0x00000000,unsigned>; ///Master Clock Source Selection constexpr Register::FieldLocation<Addr,Register::maskFromRange(2,0),Register::ReadWriteAccess,unsigned> css{}; ///Programmable Clock Prescaler enum class PresVal { clk1=0x00000000, ///<Selected clock clk2=0x00000001, ///<Selected clock divided by 2 clk4=0x00000002, ///<Selected clock divided by 4 clk8=0x00000003, ///<Selected clock divided by 8 clk16=0x00000004, ///<Selected clock divided by 16 clk32=0x00000005, ///<Selected clock divided by 32 clk64=0x00000006, ///<Selected clock divided by 64 }; constexpr Register::FieldLocation<Addr,Register::maskFromRange(6,4),Register::ReadWriteAccess,PresVal> pres{}; namespace PresValC{ constexpr Register::FieldValue<decltype(pres)::Type,PresVal::clk1> clk1{}; constexpr Register::FieldValue<decltype(pres)::Type,PresVal::clk2> clk2{}; constexpr Register::FieldValue<decltype(pres)::Type,PresVal::clk4> clk4{}; constexpr Register::FieldValue<decltype(pres)::Type,PresVal::clk8> clk8{}; constexpr Register::FieldValue<decltype(pres)::Type,PresVal::clk16> clk16{}; constexpr Register::FieldValue<decltype(pres)::Type,PresVal::clk32> clk32{}; constexpr Register::FieldValue<decltype(pres)::Type,PresVal::clk64> clk64{}; } } }
{ "pile_set_name": "Github" }
// RUN: rm -rf %t // Build PCH using A, with private submodule A.Private // RUN: %clang_cc1 -verify -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -F %S/Inputs/implicit-private-with-submodule -emit-pch -o %t-A.pch %s -DNO_AT_IMPORT // RUN: rm -rf %t // Build PCH using A, with private submodule A.Private, check the fixit // RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -F %S/Inputs/implicit-private-with-submodule -emit-pch -o %t-A.pch %s -fdiagnostics-parseable-fixits -DNO_AT_IMPORT 2>&1 | FileCheck %s // RUN: rm -rf %t // RUN: %clang_cc1 -verify -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -F %S/Inputs/implicit-private-with-submodule -emit-pch -o %t-A.pch %s -DUSE_AT_IMPORT_PRIV // RUN: rm -rf %t // RUN: %clang_cc1 -verify -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -F %S/Inputs/implicit-private-with-submodule -emit-pch -o %t-A.pch %s -DUSE_AT_IMPORT_BOTH // expected-warning@Inputs/implicit-private-with-submodule/A.framework/Modules/module.private.modulemap:1{{private submodule 'A.Private' in private module map, expected top-level module}} // expected-note@Inputs/implicit-private-with-submodule/A.framework/Modules/module.private.modulemap:1{{rename 'A.Private' to ensure it can be found by name}} // expected-warning@Inputs/implicit-private-with-submodule/A.framework/Modules/module.private.modulemap:6{{private submodule 'B.Private' in private module map, expected top-level module}} // expected-note@Inputs/implicit-private-with-submodule/A.framework/Modules/module.private.modulemap:6{{rename 'B.Private' to ensure it can be found by name}} // expected-warning@Inputs/implicit-private-with-submodule/A.framework/Modules/module.private.modulemap:9{{private submodule 'C.Private' in private module map, expected top-level module}} // expected-note@Inputs/implicit-private-with-submodule/A.framework/Modules/module.private.modulemap:9{{rename 'C.Private' to ensure it can be found by name}} // CHECK: fix-it:"{{.*}}module.private.modulemap":{1:1-1:27}:"framework module A_Private" // CHECK: fix-it:"{{.*}}module.private.modulemap":{6:1-6:26}:"framework module B_Private" // CHECK: fix-it:"{{.*}}module.private.modulemap":{9:1-9:36}:"framework module C_Private" #ifndef HEADER #define HEADER #ifdef NO_AT_IMPORT #import "A/aprivate.h" #endif #ifdef USE_AT_IMPORT_PRIV @import A.Private; #endif #ifdef USE_AT_IMPORT_BOTH @import A; @import A.Private; #endif const int *y = &APRIVATE; #endif
{ "pile_set_name": "Github" }
#begin document (nw/wsj/06/wsj_0677); part 000 nw/wsj/06/wsj_0677 0 0 [WORD] NNP (TOP(S(NP(NP* - - - - (ORG* (ARG0* (ARG0* * * - nw/wsj/06/wsj_0677 0 1 [WORD] NNP * - - - - * * * * * - nw/wsj/06/wsj_0677 0 2 [WORD] NNP *) - - - - *) *) * * * - nw/wsj/06/wsj_0677 0 3 [WORD] , * - - - - * * * * * - nw/wsj/06/wsj_0677 0 4 [WORD] WDT (SBAR(WHNP*) - - - - * (R-ARG0*) * * * - nw/wsj/06/wsj_0677 0 5 [WORD] IN (S(PP* - - - - * (ARGM-TMP* * * * - nw/wsj/06/wsj_0677 0 6 [WORD] NNS (NP*)) - - - - (DATE) *) * * * - nw/wsj/06/wsj_0677 0 7 [WORD] VBZ (VP* - - - - * * * * * - nw/wsj/06/wsj_0677 0 8 [WORD] VBN (VP* fight 01 - - * (V*) * * * - nw/wsj/06/wsj_0677 0 9 [WORD] DT (NP(NP* - - - - * (ARG1* * * * - nw/wsj/06/wsj_0677 0 10 [WORD] JJ (NML* - - - - * * * * * - nw/wsj/06/wsj_0677 0 11 [WORD] NNS *) - - - - * * * * * - nw/wsj/06/wsj_0677 0 12 [WORD] NN *) - - - - * * * * * - nw/wsj/06/wsj_0677 0 13 [WORD] IN (PP* - - - - * * * * * - nw/wsj/06/wsj_0677 0 14 [WORD] NN (NP* - - - - * * * * * - nw/wsj/06/wsj_0677 0 15 [WORD] NNS *))))))) - - - - * *) * * * - nw/wsj/06/wsj_0677 0 16 [WORD] , *) - - - - * * *) * * - nw/wsj/06/wsj_0677 0 17 [WORD] VBD (VP* say 01 - - * * (V*) * * - nw/wsj/06/wsj_0677 0 18 [WORD] PRP (SBAR(S(NP*) - - - - * * (ARG1* (ARG0*) * - nw/wsj/06/wsj_0677 0 19 [WORD] VBZ (VP* - - - - * * * * * - nw/wsj/06/wsj_0677 0 20 [WORD] VBN (VP* sign 03 - - * * * (V*) * - nw/wsj/06/wsj_0677 0 21 [WORD] CD (S(NP(NP* - - - - (CARDINAL) * * (ARG1* (ARG0* - nw/wsj/06/wsj_0677 0 22 [WORD] NNS *) - - - - * * * * * - nw/wsj/06/wsj_0677 0 23 [WORD] IN (PP* - - - - * * * * * - nw/wsj/06/wsj_0677 0 24 [WORD] CD (NP* - - - - (CARDINAL) * * * * - nw/wsj/06/wsj_0677 0 25 [WORD] NNS *))) - - - - * * * * *) - nw/wsj/06/wsj_0677 0 26 [WORD] TO (VP* - - - - * * * * * - nw/wsj/06/wsj_0677 0 27 [WORD] VB (VP* subscribe 02 1 - * * * * (V*) - nw/wsj/06/wsj_0677 0 28 [WORD] IN (PP* - - - - * * * * (ARG1* - nw/wsj/06/wsj_0677 0 29 [WORD] DT (NP(NP* - - - - * * * * * - nw/wsj/06/wsj_0677 0 30 [WORD] JJ * - - - - * * * * * - nw/wsj/06/wsj_0677 0 31 [WORD] NNP (NML* - - - - (ORG* * * * * - nw/wsj/06/wsj_0677 0 32 [WORD] CD *) - - - - *) * * * * - nw/wsj/06/wsj_0677 0 33 [WORD] NN * - - - - * * * * * - nw/wsj/06/wsj_0677 0 34 [WORD] NN *) - - - - * * * * * - nw/wsj/06/wsj_0677 0 35 [WORD] CC * - - - - * * * * * - nw/wsj/06/wsj_0677 0 36 [WORD] PRP$ (NP* - - - - * * * * * - nw/wsj/06/wsj_0677 0 37 [WORD] JJ * - - - - * * * * * - nw/wsj/06/wsj_0677 0 38 [WORD] NNS *))))))))))) - - - - * * *) *) *) - nw/wsj/06/wsj_0677 0 39 [WORD] . *)) - - - - * * * * * - nw/wsj/06/wsj_0677 0 0 [WORD] NNP (TOP(S(NP(NP* - - - - (ORG* * (ARG1* (ARG1* - nw/wsj/06/wsj_0677 0 1 [WORD] CD *) - - - - *) * * * - nw/wsj/06/wsj_0677 0 2 [WORD] , * - - - - * * * * - nw/wsj/06/wsj_0677 0 3 [WORD] DT (NP(NP* - - - - * (ARG1* * * - nw/wsj/06/wsj_0677 0 4 [WORD] NN (ADJP* - - - - * * * * - nw/wsj/06/wsj_0677 0 5 [WORD] HYPH * - - - - * * * * - nw/wsj/06/wsj_0677 0 6 [WORD] VBN *) - - - - * * * * - nw/wsj/06/wsj_0677 0 7 [WORD] JJ * - - - - (DATE) * * * - nw/wsj/06/wsj_0677 0 8 [WORD] NN *) - - - - * *) * * - nw/wsj/06/wsj_0677 0 9 [WORD] VBN (VP* support 01 - - * (V*) * * - nw/wsj/06/wsj_0677 0 10 [WORD] IN (PP* - - - - * (ARG0* * * - nw/wsj/06/wsj_0677 0 11 [WORD] NN (NP*)))) - - - - * *) * * - nw/wsj/06/wsj_0677 0 12 [WORD] , *) - - - - * * *) *) - nw/wsj/06/wsj_0677 0 13 [WORD] VBZ (VP* - - - - * * * * - nw/wsj/06/wsj_0677 0 14 [WORD] VBN (VP* schedule 01 - - * * (V*) * - nw/wsj/06/wsj_0677 0 15 [WORD] TO (S(VP* - - - - * * (ARG2* * - nw/wsj/06/wsj_0677 0 16 [WORD] VB (VP* - - - - * * * * - nw/wsj/06/wsj_0677 0 17 [WORD] VBN (VP* launch 01 - - * * * (V*) - nw/wsj/06/wsj_0677 0 18 [WORD] IN (NP* - - - - (DATE* * * (ARGM-TMP* - nw/wsj/06/wsj_0677 0 19 [WORD] NNP *))))))) - - - - *) * *) *) - nw/wsj/06/wsj_0677 0 20 [WORD] . *)) - - - - * * * * - nw/wsj/06/wsj_0677 0 0 [WORD] NN (TOP(S(S(NP*) - - - - (ORG) (ARG0*) * * * - nw/wsj/06/wsj_0677 0 1 [WORD] VBD (VP* say 01 - - * (V*) * * * - nw/wsj/06/wsj_0677 0 2 [WORD] PRP$ (SBAR(S(NP* - - - - * (ARG1* (ARG0* * * - nw/wsj/06/wsj_0677 0 3 [WORD] NN * - - - - * * * * * - nw/wsj/06/wsj_0677 0 4 [WORD] NN *) - - - - * * *) * * - nw/wsj/06/wsj_0677 0 5 [WORD] VBD (VP* sign 03 - - * * (V*) * * - nw/wsj/06/wsj_0677 0 6 [WORD] RP (PRT*) - - - - * * * * * - nw/wsj/06/wsj_0677 0 7 [WORD] DT (NP(NP* - - - - * * (ARG1* * * - nw/wsj/06/wsj_0677 0 8 [WORD] CD * - - - - (CARDINAL) * * * * - nw/wsj/06/wsj_0677 0 9 [WORD] NNS *) - - - - * * * * * - nw/wsj/06/wsj_0677 0 10 [WORD] IN (PP* - - - - * * * * * - nw/wsj/06/wsj_0677 0 11 [WORD] CD (NP* - - - - (CARDINAL) * * * * - nw/wsj/06/wsj_0677 0 12 [WORD] NN * - - - - * * * * * - nw/wsj/06/wsj_0677 0 13 [WORD] NNS *))) - - - - * * *) * * - nw/wsj/06/wsj_0677 0 14 [WORD] IN (PP* - - - - * * (ARGM-TMP* * * - nw/wsj/06/wsj_0677 0 15 [WORD] RB (NP(QP* - - - - (DATE* * * * * - nw/wsj/06/wsj_0677 0 16 [WORD] CD *) - - - - * * * * * - nw/wsj/06/wsj_0677 0 17 [WORD] NNS *))))))) - - - - *) *) *) * * - nw/wsj/06/wsj_0677 0 18 [WORD] CC * - - - - * * * * * - nw/wsj/06/wsj_0677 0 19 [WORD] NN (S(NP* - - - - * * * (ARG0* (ARG0* - nw/wsj/06/wsj_0677 0 20 [WORD] NNS *) - - - - * * * *) *) - nw/wsj/06/wsj_0677 0 21 [WORD] RB (ADVP*) - - - - * * * (ARGM-TMP*) * - nw/wsj/06/wsj_0677 0 22 [WORD] VBP (VP* expect 01 - - * * * (V*) * - nw/wsj/06/wsj_0677 0 23 [WORD] TO (S(VP* - - - - * * * (ARG1* * - nw/wsj/06/wsj_0677 0 24 [WORD] VB (VP* reach 01 - - * * * * (V*) - nw/wsj/06/wsj_0677 0 25 [WORD] PRP$ (NP(NP* - - - - * * * * (ARG1* - nw/wsj/06/wsj_0677 0 26 [WORD] VB (ADJP* - - - - * * * * * - nw/wsj/06/wsj_0677 0 27 [WORD] HYPH * - - - - * * * * * - nw/wsj/06/wsj_0677 0 28 [WORD] RP *) - - - - * * * * * - nw/wsj/06/wsj_0677 0 29 [WORD] NN *) - - - - * * * * * - nw/wsj/06/wsj_0677 0 30 [WORD] IN (PP* - - - - * * * * * - nw/wsj/06/wsj_0677 0 31 [WORD] CD (NP* - - - - (CARDINAL) * * * * - nw/wsj/06/wsj_0677 0 32 [WORD] NNS *))) - - - - * * * * *) - nw/wsj/06/wsj_0677 0 33 [WORD] IN (PP* - - - - * * * * (ARGM-TMP* - nw/wsj/06/wsj_0677 0 34 [WORD] DT (NP(NP* - - - - (DATE* * * * * - nw/wsj/06/wsj_0677 0 35 [WORD] NN *) - - - - * * * * * - nw/wsj/06/wsj_0677 0 36 [WORD] IN (PP* - - - - * * * * * - nw/wsj/06/wsj_0677 0 37 [WORD] DT (NP* - - - - * * * * * - nw/wsj/06/wsj_0677 0 38 [WORD] NN *))))))))) - - - - *) * * *) *) - nw/wsj/06/wsj_0677 0 39 [WORD] . *)) - - - - * * * * * - nw/wsj/06/wsj_0677 0 0 [WORD] NNP (TOP(S(NP(NP* - - - - (PERSON* * (ARG0* * * * - nw/wsj/06/wsj_0677 0 1 [WORD] NNP *) - - - - *) * * * * * - nw/wsj/06/wsj_0677 0 2 [WORD] , * - - - - * * * * * * - nw/wsj/06/wsj_0677 0 3 [WORD] NN (NP(NP*) - - - - * * * * * * - nw/wsj/06/wsj_0677 0 4 [WORD] IN (PP* - - - - * * * * * * - nw/wsj/06/wsj_0677 0 5 [WORD] DT (NP(NP* - - - - * (ARG1* * * * * - nw/wsj/06/wsj_0677 0 6 [WORD] NNP (NML* - - - - (GPE) * * * * * - nw/wsj/06/wsj_0677 0 7 [WORD] , * - - - - * * * * * * - nw/wsj/06/wsj_0677 0 8 [WORD] NNP * - - - - (GPE) * * * * * - nw/wsj/06/wsj_0677 0 9 [WORD] , *) - - - - * * * * * * - nw/wsj/06/wsj_0677 0 10 [WORD] NNS * - - - - * * * * * * - nw/wsj/06/wsj_0677 0 11 [WORD] NN *) - - - - * *) * * * * - nw/wsj/06/wsj_0677 0 12 [WORD] WDT (SBAR(WHNP*) - - - - * (R-ARG1*) * * * * - nw/wsj/06/wsj_0677 0 13 [WORD] VBZ (S(VP* be 01 - - * (V*) * * * * - nw/wsj/06/wsj_0677 0 14 [WORD] CD (ADJP(NP* - - - - (PERCENT* (ARG2* * * * * - nw/wsj/06/wsj_0677 0 15 [WORD] NN *) - - - - *) * * * * * - nw/wsj/06/wsj_0677 0 16 [WORD] VBN * - - - - * * * * * * - nw/wsj/06/wsj_0677 0 17 [WORD] IN (PP* - - - - * * * * * * - nw/wsj/06/wsj_0677 0 18 [WORD] NN (NP* - - - - (ORG* * * * * * - nw/wsj/06/wsj_0677 0 19 [WORD] NNP * - - - - * * * * * * - nw/wsj/06/wsj_0677 0 20 [WORD] NNP *))))))))) - - - - *) *) * * * * - nw/wsj/06/wsj_0677 0 21 [WORD] , *) - - - - * * *) * * * - nw/wsj/06/wsj_0677 0 22 [WORD] VBD (VP* say 01 - - * * (V*) * * * - nw/wsj/06/wsj_0677 0 23 [WORD] IN (SBAR* - - - - * * (ARG1* * * * - nw/wsj/06/wsj_0677 0 24 [WORD] IN (S(PP* - - - - * * * (ARGM-TMP* * * - nw/wsj/06/wsj_0677 0 25 [WORD] NNP (NP* - - - - (DATE* * * * * * - nw/wsj/06/wsj_0677 0 26 [WORD] CD *)) - - - - *) * * *) * * - nw/wsj/06/wsj_0677 0 27 [WORD] PRP (NP*) - - - - * * * (ARG0*) (ARG0*) * - nw/wsj/06/wsj_0677 0 28 [WORD] VBZ (VP* expect 01 - - * * * (V*) * * - nw/wsj/06/wsj_0677 0 29 [WORD] TO (S(VP* - - - - * * * (ARG1* * * - nw/wsj/06/wsj_0677 0 30 [WORD] VB (VP* have 04 - - * * * * (V*) * - nw/wsj/06/wsj_0677 0 31 [WORD] NNP (S(NP* - - - - (ORG* * * * (ARG1* (ARG1* - nw/wsj/06/wsj_0677 0 32 [WORD] CD *) - - - - *) * * * * *) - nw/wsj/06/wsj_0677 0 33 [WORD] VBN (VP* install 01 - - * * * * * (V*) - nw/wsj/06/wsj_0677 0 34 [WORD] IN (PP* - - - - * * * * * (ARG2* - nw/wsj/06/wsj_0677 0 35 [WORD] RB (NP(NP(QP* - - - - (CARDINAL* * * * * * - nw/wsj/06/wsj_0677 0 36 [WORD] CD *) - - - - *) * * * * * - nw/wsj/06/wsj_0677 0 37 [WORD] NNS *) - - - - * * * * * * - nw/wsj/06/wsj_0677 0 38 [WORD] IN (PP* - - - - * * * * * * - nw/wsj/06/wsj_0677 0 39 [WORD] DT (NP(NP* - - - - * * * * * * - nw/wsj/06/wsj_0677 0 40 [WORD] JJ * - - - - * * * * * * - nw/wsj/06/wsj_0677 0 41 [WORD] NN *) - - - - * * * * * * - nw/wsj/06/wsj_0677 0 42 [WORD] IN (PP* - - - - * * * * * * - nw/wsj/06/wsj_0677 0 43 [WORD] CD (NP(QP* - - - - (CARDINAL* * * * * * - nw/wsj/06/wsj_0677 0 44 [WORD] CD *)))))))))))))))) - - - - *) * *) *) *) *) - nw/wsj/06/wsj_0677 0 45 [WORD] . *)) - - - - * * * * * * - nw/wsj/06/wsj_0677 0 0 [WORD] NN (TOP(S(NP(NP(NP*) - - - - * (ARG2* (ARG0* (ARG1* - nw/wsj/06/wsj_0677 0 1 [WORD] IN (PP* - - - - * * * * - nw/wsj/06/wsj_0677 0 2 [WORD] DT (NP* - - - - * * * * - nw/wsj/06/wsj_0677 0 3 [WORD] NN * - - - - * * * * - nw/wsj/06/wsj_0677 0 4 [WORD] NN *))) - - - - * *) *) * - nw/wsj/06/wsj_0677 0 5 [WORD] , * - - - - * * * * - nw/wsj/06/wsj_0677 0 6 [WORD] WDT (SBAR(WHNP*) - - - - * (R-ARG2*) (R-ARG0*) * - nw/wsj/06/wsj_0677 0 7 [WORD] VBZ (S(VP* include 01 - - * (V*) * * - nw/wsj/06/wsj_0677 0 8 [WORD] VBG (S(VP* provide 01 - - * (ARG1* (V*) * - nw/wsj/06/wsj_0677 0 9 [WORD] JJ (NP* - - - - * * (ARG1* * - nw/wsj/06/wsj_0677 0 10 [WORD] CD (NML* - - - - (QUANTITY* * * * - nw/wsj/06/wsj_0677 0 11 [WORD] HYPH * - - - - * * * * - nw/wsj/06/wsj_0677 0 12 [WORD] NN *) - - - - *) * * * - nw/wsj/06/wsj_0677 0 13 [WORD] NN * - - - - * * * * - nw/wsj/06/wsj_0677 0 14 [WORD] NNS *) - - - - * * *) * - nw/wsj/06/wsj_0677 0 15 [WORD] IN (PP* - - - - * * (ARGM-LOC* * - nw/wsj/06/wsj_0677 0 16 [WORD] NNS (NP*))))))) - - - - * *) *) * - nw/wsj/06/wsj_0677 0 17 [WORD] , *) - - - - * * * *) - nw/wsj/06/wsj_0677 0 18 [WORD] VBZ (VP* begin 01 - - * * * (V*) - nw/wsj/06/wsj_0677 0 19 [WORD] IN (PP* - - - - * * * (ARGM-TMP* - nw/wsj/06/wsj_0677 0 20 [WORD] NNP (NP*))) - - - - (DATE) * * *) - nw/wsj/06/wsj_0677 0 21 [WORD] . *)) - - - - * * * * - nw/wsj/06/wsj_0677 0 0 [WORD] `` (TOP(SINV* - - - - * * * * * * * * - nw/wsj/06/wsj_0677 0 1 [WORD] WP (S(SBAR(WHNP*) - - - - * (ARG1*) (ARG0* * * * * (ARG1* - nw/wsj/06/wsj_0677 0 2 [WORD] PRP (S(NP*) - - - - * (ARG0*) * * * * * * - nw/wsj/06/wsj_0677 0 3 [WORD] VBP (VP* - - - - * * * * * * * * - nw/wsj/06/wsj_0677 0 4 [WORD] VBN (VP* do 02 - - * (V*) * * * * * * - nw/wsj/06/wsj_0677 0 5 [WORD] IN (PP* - - - - * (ARGM-TMP* * * * * * * - nw/wsj/06/wsj_0677 0 6 [WORD] CD (NP* - - - - (DATE* * * * * * * * - nw/wsj/06/wsj_0677 0 7 [WORD] NNS *)))))) - - - - *) *) *) * * * * * - nw/wsj/06/wsj_0677 0 8 [WORD] VBZ (VP* show 01 - - * * (V*) * * * * * - nw/wsj/06/wsj_0677 0 9 [WORD] PRP (SBAR(S(NP*) - - - - * * (ARG1* (ARG0*) (ARG1*) * * * - nw/wsj/06/wsj_0677 0 10 [WORD] MD (VP* - - - - * * * (ARGM-MOD*) * * * * - nw/wsj/06/wsj_0677 0 11 [WORD] RB * - - - - * * * (ARGM-NEG*) * * * * - nw/wsj/06/wsj_0677 0 12 [WORD] VB (VP* have 03 - - * * * (V*) * * * * - nw/wsj/06/wsj_0677 0 13 [WORD] JJ (NP(NP* - - - - * * * (ARG1* * * * * - nw/wsj/06/wsj_0677 0 14 [WORD] NNS *) - - - - * * * * * * * * - nw/wsj/06/wsj_0677 0 15 [WORD] VBG (S(VP* get 05 - - * * * * (V*) * * * - nw/wsj/06/wsj_0677 0 16 [WORD] IN (PP* - - - - * * * * (ARG2* * * * - nw/wsj/06/wsj_0677 0 17 [WORD] DT (NP(NP* - - - - * * * * * * (ARG2* * - nw/wsj/06/wsj_0677 0 18 [WORD] NN *) - - - - * * * * * * *) * - nw/wsj/06/wsj_0677 0 19 [WORD] PRP (SBAR(S(NP*) - - - - * * * * * (ARG0*) (ARG1*) * - nw/wsj/06/wsj_0677 0 20 [WORD] VBP (VP* want 01 - - * * * * * (V*) * * - nw/wsj/06/wsj_0677 0 21 [WORD] TO (S(VP* - - - - * * * * * (ARG1* * * - nw/wsj/06/wsj_0677 0 22 [WORD] VB (VP*))))))))))))))))) be 01 - - * * *) *) *) *) (V*) *) - nw/wsj/06/wsj_0677 0 23 [WORD] , * - - - - * * * * * * * * - nw/wsj/06/wsj_0677 0 24 [WORD] '' * - - - - * * * * * * * * - nw/wsj/06/wsj_0677 0 25 [WORD] VBD (VP*) say 01 - - * * * * * * * (V*) - nw/wsj/06/wsj_0677 0 26 [WORD] NNP (NP* - - - - * * * * * * * (ARG0* - nw/wsj/06/wsj_0677 0 27 [WORD] NNP *) - - - - (PERSON) * * * * * * *) - nw/wsj/06/wsj_0677 0 28 [WORD] . *)) - - - - * * * * * * * * - nw/wsj/06/wsj_0677 0 0 [WORD] PRP (TOP(S(NP*) - - - - * (ARG0*) * - nw/wsj/06/wsj_0677 0 1 [WORD] VBD (VP* say 01 - - * (V*) * - nw/wsj/06/wsj_0677 0 2 [WORD] PRP$ (SBAR(S(NP* - - - - * (ARG1* (ARG0* - nw/wsj/06/wsj_0677 0 3 [WORD] NNS * - - - - * * * - nw/wsj/06/wsj_0677 0 4 [WORD] NN *) - - - - * * *) - nw/wsj/06/wsj_0677 0 5 [WORD] VBZ (VP* - - - - * * * - nw/wsj/06/wsj_0677 0 6 [WORD] VBG (VP* sign 03 - - * * (V*) - nw/wsj/06/wsj_0677 0 7 [WORD] RP (PRT*) - - - - * * * - nw/wsj/06/wsj_0677 0 8 [WORD] NNS (NP*) - - - - * * (ARG1*) - nw/wsj/06/wsj_0677 0 9 [WORD] IN (PP* - - - - * * (ARGM-MNR* - nw/wsj/06/wsj_0677 0 10 [WORD] DT (NP(NP* - - - - * * * - nw/wsj/06/wsj_0677 0 11 [WORD] NN *) - - - - * * * - nw/wsj/06/wsj_0677 0 12 [WORD] IN (PP* - - - - * * * - nw/wsj/06/wsj_0677 0 13 [WORD] CD (NP(NP*) - - - - (CARDINAL) * * - nw/wsj/06/wsj_0677 0 14 [WORD] DT (NP* - - - - * * * - nw/wsj/06/wsj_0677 0 15 [WORD] NN *)))))))))) - - - - * *) *) - nw/wsj/06/wsj_0677 0 16 [WORD] . *)) - - - - * * * - nw/wsj/06/wsj_0677 0 0 [WORD] IN (TOP(S(PP* - - - - * (ARGM-LOC* - nw/wsj/06/wsj_0677 0 1 [WORD] NNP (NP(NP*) - - - - (GPE) * - nw/wsj/06/wsj_0677 0 2 [WORD] CC * - - - - * * - nw/wsj/06/wsj_0677 0 3 [WORD] NNP (NP* - - - - (GPE* * - nw/wsj/06/wsj_0677 0 4 [WORD] NNP *))) - - - - *) *) - nw/wsj/06/wsj_0677 0 5 [WORD] , * - - - - * * - nw/wsj/06/wsj_0677 0 6 [WORD] NN (NP* - - - - * (ARG0* - nw/wsj/06/wsj_0677 0 7 [WORD] NNS *) - - - - * *) - nw/wsj/06/wsj_0677 0 8 [WORD] VBP (VP* - - - - * * - nw/wsj/06/wsj_0677 0 9 [WORD] VBN (VP* oppose 01 - - * (V*) - nw/wsj/06/wsj_0677 0 10 [WORD] NNP (NP* - - - - (ORG* (ARG1* - nw/wsj/06/wsj_0677 0 11 [WORD] CD *))) - - - - *) *) - nw/wsj/06/wsj_0677 0 12 [WORD] . *)) - - - - * * - nw/wsj/06/wsj_0677 0 0 [WORD] NNP (TOP(S(NP* - - - - * (ARG0* * * * * - nw/wsj/06/wsj_0677 0 1 [WORD] NNP *) - - - - (PERSON) *) * * * * - nw/wsj/06/wsj_0677 0 2 [WORD] VBD (VP* say 01 - - * (V*) * * * * - nw/wsj/06/wsj_0677 0 3 [WORD] JJ (SBAR(S(NP(NP(ADJP* - - - - * (ARG1* (ARG1* * * * - nw/wsj/06/wsj_0677 0 4 [WORD] CC * - - - - * * * * * * - nw/wsj/06/wsj_0677 0 5 [WORD] JJ *) - - - - * * * * * * - nw/wsj/06/wsj_0677 0 6 [WORD] NNS *) - - - - * * * * * * - nw/wsj/06/wsj_0677 0 7 [WORD] IN (PP* - - - - * * * * * * - nw/wsj/06/wsj_0677 0 8 [WORD] DT (NP* - - - - * * * * * * - nw/wsj/06/wsj_0677 0 9 [WORD] NNS *))) - - - - * * *) * * * - nw/wsj/06/wsj_0677 0 10 [WORD] MD (VP* - - - - * * (ARGM-MOD*) * * * - nw/wsj/06/wsj_0677 0 11 [WORD] VB (VP* - - - - * * * * * * - nw/wsj/06/wsj_0677 0 12 [WORD] VBN (VP* canvass 01 - - * * (V*) * * * - nw/wsj/06/wsj_0677 0 13 [WORD] TO (S(VP* - - - - * * (ARGM-PRP* * * * - nw/wsj/06/wsj_0677 0 14 [WORD] VB (VP* see 01 - - * * * (V*) * * - nw/wsj/06/wsj_0677 0 15 [WORD] IN (SBAR* - - - - * * * (ARG1* * * - nw/wsj/06/wsj_0677 0 16 [WORD] PRP (S(NP*) - - - - * * * * (ARG1*) (ARG0*) - nw/wsj/06/wsj_0677 0 17 [WORD] VBP (VP* be 01 - - * * * * (V*) * - nw/wsj/06/wsj_0677 0 18 [WORD] JJ (ADJP* - - - - * * * * (ARG2* * - nw/wsj/06/wsj_0677 0 19 [WORD] IN (PP* - - - - * * * * * * - nw/wsj/06/wsj_0677 0 20 [WORD] VBG (S(VP* get 01 - - * * * * * (V*) - nw/wsj/06/wsj_0677 0 21 [WORD] DT (NP* - - - - * * * * * (ARG1* - nw/wsj/06/wsj_0677 0 22 [WORD] NNS *))))))))))))))))) - - - - * *) *) *) *) *) - nw/wsj/06/wsj_0677 0 23 [WORD] . *)) - - - - * * * * * * - nw/wsj/06/wsj_0677 0 0 [WORD] VBG (TOP(S(NP* subscribe 01 - - * (V*) (ARG0* * - nw/wsj/06/wsj_0677 0 1 [WORD] NNS *) - - - - * (ARG0*) *) * - nw/wsj/06/wsj_0677 0 2 [WORD] VBP (VP* get 01 - - * * (V*) * - nw/wsj/06/wsj_0677 0 3 [WORD] DT (NP(NP* - - - - * * (ARG1* (R-ARG0* - nw/wsj/06/wsj_0677 0 4 [WORD] CD (NML* - - - - (TIME* * * * - nw/wsj/06/wsj_0677 0 5 [WORD] HYPH * - - - - * * * * - nw/wsj/06/wsj_0677 0 6 [WORD] NN *) - - - - *) * * * - nw/wsj/06/wsj_0677 0 7 [WORD] JJ * - - - - (DATE) * * * - nw/wsj/06/wsj_0677 0 8 [WORD] NNP (NML* - - - - (ORG* * * * - nw/wsj/06/wsj_0677 0 9 [WORD] CD *) - - - - *) * * * - nw/wsj/06/wsj_0677 0 10 [WORD] NN * - - - - * * * * - nw/wsj/06/wsj_0677 0 11 [WORD] NN *) - - - - * * * *) - nw/wsj/06/wsj_0677 0 12 [WORD] , * - - - - * * * * - nw/wsj/06/wsj_0677 0 13 [WORD] WP$ (SBAR(WHNP(WHNP* - - - - * * * (ARG0* - nw/wsj/06/wsj_0677 0 14 [WORD] CD * - - - - (CARDINAL) * * * - nw/wsj/06/wsj_0677 0 15 [WORD] CD (NML* - - - - (TIME* * * * - nw/wsj/06/wsj_0677 0 16 [WORD] HYPH * - - - - * * * * - nw/wsj/06/wsj_0677 0 17 [WORD] NN *) - - - - *) * * * - nw/wsj/06/wsj_0677 0 18 [WORD] NN * - - - - * * * * - nw/wsj/06/wsj_0677 0 19 [WORD] NNS *) - - - - * * * * - nw/wsj/06/wsj_0677 0 20 [WORD] IN (PP* - - - - * * * * - nw/wsj/06/wsj_0677 0 21 [WORD] DT (NP* - - - - * * * * - nw/wsj/06/wsj_0677 0 22 [WORD] NN *))) - - - - * * * *) - nw/wsj/06/wsj_0677 0 23 [WORD] VBP (S(VP* - - - - * * * * - nw/wsj/06/wsj_0677 0 24 [WORD] VBN (VP* draw 02 - - * * * (V*) - nw/wsj/06/wsj_0677 0 25 [WORD] NNS (NP*) - - - - * * * (ARG1*) - nw/wsj/06/wsj_0677 0 26 [WORD] IN (PP* - - - - * * * (ARG2* - nw/wsj/06/wsj_0677 0 27 [WORD] NNS (NP*)))))))) - - - - * * *) *) - nw/wsj/06/wsj_0677 0 28 [WORD] . *)) - - - - * * * * - nw/wsj/06/wsj_0677 0 0 [WORD] NNS (TOP(S(NP*) - - - - * (ARG0*) * * * - nw/wsj/06/wsj_0677 0 1 [WORD] RB (ADVP*) - - - - * (ARGM-ADV*) * * * - nw/wsj/06/wsj_0677 0 2 [WORD] VBP (VP* get 01 - - * (V*) * * * - nw/wsj/06/wsj_0677 0 3 [WORD] DT (NP(NP* - - - - (PRODUCT* (ARG1* (ARG0* * * - nw/wsj/06/wsj_0677 0 4 [WORD] NNP * - - - - * * * * * - nw/wsj/06/wsj_0677 0 5 [WORD] NNP *) - - - - *) * *) * * - nw/wsj/06/wsj_0677 0 6 [WORD] , * - - - - * * * * * - nw/wsj/06/wsj_0677 0 7 [WORD] WDT (SBAR(WHNP*) - - - - * * (R-ARG0*) * * - nw/wsj/06/wsj_0677 0 8 [WORD] MD (S(VP* - - - - * * (ARGM-MOD*) * * - nw/wsj/06/wsj_0677 0 9 [WORD] VB (VP* feature 01 1 - * * (V*) * * - nw/wsj/06/wsj_0677 0 10 [WORD] NN (NP(NP(NP(ADJP* - - - - * * (ARG1* * * - nw/wsj/06/wsj_0677 0 11 [WORD] HYPH * - - - - * * * * * - nw/wsj/06/wsj_0677 0 12 [WORD] JJ *) - - - - * * * * * - nw/wsj/06/wsj_0677 0 13 [WORD] JJ * - - - - * * * * * - nw/wsj/06/wsj_0677 0 14 [WORD] NN *) programme - 5 - * * * * * - nw/wsj/06/wsj_0677 0 15 [WORD] JJ (ADJP* - - - - * * * * * - nw/wsj/06/wsj_0677 0 16 [WORD] IN (PP* - - - - * * * * * - nw/wsj/06/wsj_0677 0 17 [WORD] DT (NP* - - - - * * * * * - nw/wsj/06/wsj_0677 0 18 [WORD] JJ (NML* - - - - * * * * * - nw/wsj/06/wsj_0677 0 19 [WORD] HYPH * - - - - * * * * * - nw/wsj/06/wsj_0677 0 20 [WORD] NN *) - - - - * * * * * - nw/wsj/06/wsj_0677 0 21 [WORD] NNS *)))) - - - - * * * * * - nw/wsj/06/wsj_0677 0 22 [WORD] , * - - - - * * * * * - nw/wsj/06/wsj_0677 0 23 [WORD] CC * - - - - * * * * * - nw/wsj/06/wsj_0677 0 24 [WORD] DT (NP(NP(NP* - - - - (PRODUCT* * * (ARG0* (ARG1* - nw/wsj/06/wsj_0677 0 25 [WORD] NNP * - - - - * * * * * - nw/wsj/06/wsj_0677 0 26 [WORD] POS *) - - - - * * * * * - nw/wsj/06/wsj_0677 0 27 [WORD] NNP *) - - - - *) * * *) *) - nw/wsj/06/wsj_0677 0 28 [WORD] , * - - - - * * * * * - nw/wsj/06/wsj_0677 0 29 [WORD] WDT (SBAR(WHNP*) - - - - * * * (R-ARG0*) (R-ARG1*) - nw/wsj/06/wsj_0677 0 30 [WORD] MD (S(VP(VP* - - - - * * * (ARGM-MOD*) * - nw/wsj/06/wsj_0677 0 31 [WORD] VB (VP* offer 01 - - * * * (V*) * - nw/wsj/06/wsj_0677 0 32 [WORD] JJ (NP(NP* - - - - * * * (ARG1* * - nw/wsj/06/wsj_0677 0 33 [WORD] NN *) programme - 5 - * * * * * - nw/wsj/06/wsj_0677 0 34 [WORD] IN (PP* - - - - * * * * * - nw/wsj/06/wsj_0677 0 35 [WORD] NNS (NP(NP*) - - - - * * * * * - nw/wsj/06/wsj_0677 0 36 [WORD] CC * - - - - * * * * * - nw/wsj/06/wsj_0677 0 37 [WORD] NN (NP* - - - - * * * * * - nw/wsj/06/wsj_0677 0 38 [WORD] NNS *)))))) - - - - * * * *) * - nw/wsj/06/wsj_0677 0 39 [WORD] CC * - - - - * * * * * - nw/wsj/06/wsj_0677 0 40 [WORD] MD (VP* - - - - * * * * (ARGM-MOD*) - nw/wsj/06/wsj_0677 0 41 [WORD] VB (VP* - - - - * * * * * - nw/wsj/06/wsj_0677 0 42 [WORD] VBN (VP* support 01 - - * * * * (V*) - nw/wsj/06/wsj_0677 0 43 [WORD] IN (PP* - - - - * * * * (ARG0* - nw/wsj/06/wsj_0677 0 44 [WORD] NN (NP*)))))))))))))))) - - - - * *) *) * *) - nw/wsj/06/wsj_0677 0 45 [WORD] . *)) - - - - * * * * * - nw/wsj/06/wsj_0677 0 0 [WORD] NNP (TOP(S(NP*) - - - - (PERSON) (ARG0*) * - nw/wsj/06/wsj_0677 0 1 [WORD] VBZ (VP* - - - - * * * - nw/wsj/06/wsj_0677 0 2 [WORD] VBN (VP* meet 01 - - * (V*) * - nw/wsj/06/wsj_0677 0 3 [WORD] DT (NP* - - - - * (ARG1* * - nw/wsj/06/wsj_0677 0 4 [WORD] NN *))) resistance 01 1 - * *) (V*) - nw/wsj/06/wsj_0677 0 5 [WORD] . *)) - - - - * * * - nw/wsj/06/wsj_0677 0 0 [WORD] DT (TOP(S(S(NP(NP* - - - - (PRODUCT* (ARG2* (ARG1* * * - nw/wsj/06/wsj_0677 0 1 [WORD] NNP * - - - - * * * * * - nw/wsj/06/wsj_0677 0 2 [WORD] NNP *) - - - - *) *) * * * - nw/wsj/06/wsj_0677 0 3 [WORD] , * - - - - * * * * * - nw/wsj/06/wsj_0677 0 4 [WORD] IN (SBAR* - - - - * * * * * - nw/wsj/06/wsj_0677 0 5 [WORD] NNP (S(NP* - - - - * (ARG0* * * * - nw/wsj/06/wsj_0677 0 6 [WORD] NNP *) - - - - (PERSON) *) * * * - nw/wsj/06/wsj_0677 0 7 [WORD] VBZ (VP* - - - - * * * * * - nw/wsj/06/wsj_0677 0 8 [WORD] VBN (VP* name 01 - - * (V*) * * * - nw/wsj/06/wsj_0677 0 9 [WORD] DT (NP* - - - - * (ARG1* * * * - nw/wsj/06/wsj_0677 0 10 [WORD] CD * - - - - (CARDINAL) * * * * - nw/wsj/06/wsj_0677 0 11 [WORD] NNS *))))) - - - - * *) * * * - nw/wsj/06/wsj_0677 0 12 [WORD] , *) - - - - * * *) * * - nw/wsj/06/wsj_0677 0 13 [WORD] VBZ (VP* - - - - * * * * * - nw/wsj/06/wsj_0677 0 14 [WORD] VBN (VP* - - - - * * * * * - nw/wsj/06/wsj_0677 0 15 [WORD] VBN (VP* offer 01 - - * * (V*) * * - nw/wsj/06/wsj_0677 0 16 [WORD] IN (PP* - - - - * * (ARG3* * * - nw/wsj/06/wsj_0677 0 17 [WORD] CD (NP* - - - - (CARDINAL) * * * * - nw/wsj/06/wsj_0677 0 18 [WORD] NN * - - - - * * * * * - nw/wsj/06/wsj_0677 0 19 [WORD] NNS *)))))) - - - - * * *) * * - nw/wsj/06/wsj_0677 0 20 [WORD] CC * - - - - * * * * * - nw/wsj/06/wsj_0677 0 21 [WORD] NNP (S(NP*) - - - - (PERSON) * * (ARG0*) (ARG0*) - nw/wsj/06/wsj_0677 0 22 [WORD] VBZ (VP* continue 01 - - * * * (V*) * - nw/wsj/06/wsj_0677 0 23 [WORD] TO (S(VP* - - - - * * * (ARG1* * - nw/wsj/06/wsj_0677 0 24 [WORD] VB (VP* negotiate 01 - - * * * * (V*) - nw/wsj/06/wsj_0677 0 25 [WORD] IN (PP* - - - - * * * * (ARG1* - nw/wsj/06/wsj_0677 0 26 [WORD] CD (NP* - - - - (CARDINAL) * * * * - nw/wsj/06/wsj_0677 0 27 [WORD] NNS *))))))) - - - - * * * *) *) - nw/wsj/06/wsj_0677 0 28 [WORD] . *)) - - - - * * * * * - nw/wsj/06/wsj_0677 0 0 [WORD] RB (TOP(S(NP(NP(NP(QP* - - - - (PERCENT* (ARG2* (ARG0* - nw/wsj/06/wsj_0677 0 1 [WORD] CD *) - - - - * * * - nw/wsj/06/wsj_0677 0 2 [WORD] NN *) - - - - *) * * - nw/wsj/06/wsj_0677 0 3 [WORD] IN (PP* - - - - * * * - nw/wsj/06/wsj_0677 0 4 [WORD] DT (NP* - - - - * * * - nw/wsj/06/wsj_0677 0 5 [WORD] NN * - - - - * * * - nw/wsj/06/wsj_0677 0 6 [WORD] NNS *))) - - - - * *) * - nw/wsj/06/wsj_0677 0 7 [WORD] VBN (VP*)) approach 01 - - * (V*) *) - nw/wsj/06/wsj_0677 0 8 [WORD] VBP (VP* - - - - * * * - nw/wsj/06/wsj_0677 0 9 [WORD] VBN (VP* reject 01 - - * * (V*) - nw/wsj/06/wsj_0677 0 10 [WORD] DT (NP* - - - - * * (ARG1* - nw/wsj/06/wsj_0677 0 11 [WORD] NN *))) - - - - * * *) - nw/wsj/06/wsj_0677 0 12 [WORD] . *)) - - - - * * * - nw/wsj/06/wsj_0677 0 0 [WORD] NNP (TOP(S(NP* - - - - * (ARG0* * * - nw/wsj/06/wsj_0677 0 1 [WORD] NNP *) - - - - (PERSON) *) * * - nw/wsj/06/wsj_0677 0 2 [WORD] VBD (VP* say 01 - - * (V*) * * - nw/wsj/06/wsj_0677 0 3 [WORD] IN (SBAR* - - - - * (ARG1* * * - nw/wsj/06/wsj_0677 0 4 [WORD] RB (S(ADVP* - - - - * * * (ARGM-TMP* - nw/wsj/06/wsj_0677 0 5 [WORD] RB *) - - - - * * * *) - nw/wsj/06/wsj_0677 0 6 [WORD] , * - - - - * * * * - nw/wsj/06/wsj_0677 0 7 [WORD] CD (NP(NP*) - - - - (CARDINAL) * * (ARG0* - nw/wsj/06/wsj_0677 0 8 [WORD] IN (PP* - - - - * * * * - nw/wsj/06/wsj_0677 0 9 [WORD] DT (NP(NP* - - - - * * (ARG0* * - nw/wsj/06/wsj_0677 0 10 [WORD] CD * - - - - (CARDINAL) * * * - nw/wsj/06/wsj_0677 0 11 [WORD] NNS *) - - - - * * *) * - nw/wsj/06/wsj_0677 0 12 [WORD] WDT (SBAR(WHNP*) - - - - * * (R-ARG0*) * - nw/wsj/06/wsj_0677 0 13 [WORD] VBD (S(VP* carry 01 - - * * (V*) * - nw/wsj/06/wsj_0677 0 14 [WORD] DT (NP* - - - - * * (ARG1* * - nw/wsj/06/wsj_0677 0 15 [WORD] NN *) - - - - * * *) * - nw/wsj/06/wsj_0677 0 16 [WORD] IN (PP* - - - - * * (ARG2* * - nw/wsj/06/wsj_0677 0 17 [WORD] DT (NP(NP* - - - - * * * * - nw/wsj/06/wsj_0677 0 18 [WORD] CD (NML* - - - - (DATE* * * * - nw/wsj/06/wsj_0677 0 19 [WORD] HYPH * - - - - * * * * - nw/wsj/06/wsj_0677 0 20 [WORD] NN *) - - - - *) * * * - nw/wsj/06/wsj_0677 0 21 [WORD] NN *) - - - - * * * * - nw/wsj/06/wsj_0677 0 22 [WORD] JJ (NP* - - - - (DATE* * * * - nw/wsj/06/wsj_0677 0 23 [WORD] NN *))))))))) - - - - *) * *) *) - nw/wsj/06/wsj_0677 0 24 [WORD] VBP (VP* - - - - * * * * - nw/wsj/06/wsj_0677 0 25 [WORD] VBN (VP* subscribe 01 1 - * * * (V*) - nw/wsj/06/wsj_0677 0 26 [WORD] IN (PP* - - - - * * * (ARG1* - nw/wsj/06/wsj_0677 0 27 [WORD] DT (NP* - - - - * * * * - nw/wsj/06/wsj_0677 0 28 [WORD] NN *))))))) - - - - * *) * *) - nw/wsj/06/wsj_0677 0 29 [WORD] . *)) - - - - * * * * - nw/wsj/06/wsj_0677 0 0 [WORD] CD (TOP(S(NP(NP(NP*) - - - - (CARDINAL) (ARG0* - nw/wsj/06/wsj_0677 0 1 [WORD] IN (PP* - - - - * * - nw/wsj/06/wsj_0677 0 2 [WORD] DT (NP* - - - - * * - nw/wsj/06/wsj_0677 0 3 [WORD] NN * - - - - * * - nw/wsj/06/wsj_0677 0 4 [WORD] NNS *))) - - - - * * - nw/wsj/06/wsj_0677 0 5 [WORD] , * - - - - * * - nw/wsj/06/wsj_0677 0 6 [WORD] NNP (NP(NP* - - - - (ORG* * - nw/wsj/06/wsj_0677 0 7 [WORD] NNP * - - - - * * - nw/wsj/06/wsj_0677 0 8 [WORD] NNP *) - - - - *) * - nw/wsj/06/wsj_0677 0 9 [WORD] IN (PP* - - - - * * - nw/wsj/06/wsj_0677 0 10 [WORD] NNP (NP*))) - - - - (GPE) * - nw/wsj/06/wsj_0677 0 11 [WORD] , *) - - - - * *) - nw/wsj/06/wsj_0677 0 12 [WORD] VBD (VP* reject 01 - - * (V*) - nw/wsj/06/wsj_0677 0 13 [WORD] DT (NP* - - - - * (ARG1* - nw/wsj/06/wsj_0677 0 14 [WORD] NN *)) - - - - * *) - nw/wsj/06/wsj_0677 0 15 [WORD] . *)) - - - - * * - nw/wsj/06/wsj_0677 0 0 [WORD] NNP (TOP(S(NP(NP* - - - - (PERSON* * * * - nw/wsj/06/wsj_0677 0 1 [WORD] NNP *) - - - - *) * * * - nw/wsj/06/wsj_0677 0 2 [WORD] , * - - - - * * * * - nw/wsj/06/wsj_0677 0 3 [WORD] JJ (NP(NP* - - - - * * * * - nw/wsj/06/wsj_0677 0 4 [WORD] NN *) - - - - * * * * - nw/wsj/06/wsj_0677 0 5 [WORD] IN (PP* - - - - * * * * - nw/wsj/06/wsj_0677 0 6 [WORD] NNS (NP*)) - - - - * * * * - nw/wsj/06/wsj_0677 0 7 [WORD] IN (PP* - - - - * * * * - nw/wsj/06/wsj_0677 0 8 [WORD] NNP (NP* - - - - (GPE) * * * - nw/wsj/06/wsj_0677 0 9 [WORD] NNP * - - - - * * * * - nw/wsj/06/wsj_0677 0 10 [WORD] NNP *))) - - - - * * * * - nw/wsj/06/wsj_0677 0 11 [WORD] , *) - - - - * * * * - nw/wsj/06/wsj_0677 0 12 [WORD] VBD (VP* - - - - * * * * - nw/wsj/06/wsj_0677 0 13 [WORD] NNP (SBAR(S(NP* - - - - (ORG* * * * - nw/wsj/06/wsj_0677 0 14 [WORD] NN *) - - - - *) * * * - nw/wsj/06/wsj_0677 0 15 [WORD] VBD (VP* - - - - * * * * - nw/wsj/06/wsj_0677 0 16 [WORD] VBN (VP* - - - - * * * * - nw/wsj/06/wsj_0677 0 17 [WORD] IN (SBAR* - - - - * * * * - nw/wsj/06/wsj_0677 0 18 [WORD] NNS (S(S(NP(NP*) - - - - * (ARG0*) * * - nw/wsj/06/wsj_0677 0 19 [WORD] VBG (VP* watch 01 - - * (V*) * * - nw/wsj/06/wsj_0677 0 20 [WORD] DT (NP* - - - - * (ARG1* * * - nw/wsj/06/wsj_0677 0 21 [WORD] NN *))) - - - - * *) * * - nw/wsj/06/wsj_0677 0 22 [WORD] VBD (VP* - - - - * * * * - nw/wsj/06/wsj_0677 0 23 [WORD] RB * - - - - * * * * - nw/wsj/06/wsj_0677 0 24 [WORD] NN (VP* - - - - * * * * - nw/wsj/06/wsj_0677 0 25 [WORD] RB (ADVP(ADVP* - - - - * * * * - nw/wsj/06/wsj_0677 0 26 [WORD] RBR *)) - - - - * * * * - nw/wsj/06/wsj_0677 0 27 [WORD] IN (PP* - - - - * * * * - nw/wsj/06/wsj_0677 0 28 [WORD] DT (NP* - - - - * * * * - nw/wsj/06/wsj_0677 0 29 [WORD] CD (NML* - - - - (CARDINAL) * * * - nw/wsj/06/wsj_0677 0 30 [WORD] HYPH * - - - - * * * * - nw/wsj/06/wsj_0677 0 31 [WORD] NN *) - - - - * * * * - nw/wsj/06/wsj_0677 0 32 [WORD] JJ (NML* - - - - * * * * - nw/wsj/06/wsj_0677 0 33 [WORD] NNS *) - - - - * * * * - nw/wsj/06/wsj_0677 0 34 [WORD] NN *)) - - - - * * * * - nw/wsj/06/wsj_0677 0 35 [WORD] IN (PP* - - - - * * * * - nw/wsj/06/wsj_0677 0 36 [WORD] DT (NP(NP* - - - - * * * * - nw/wsj/06/wsj_0677 0 37 [WORD] JJ * - - - - * * * * - nw/wsj/06/wsj_0677 0 38 [WORD] NN *) - - - - * * * * - nw/wsj/06/wsj_0677 0 39 [WORD] IN (PP* - - - - * * * * - nw/wsj/06/wsj_0677 0 40 [WORD] DT (NP* - - - - * * * * - nw/wsj/06/wsj_0677 0 41 [WORD] NN *))))))) - - - - * * * * - nw/wsj/06/wsj_0677 0 42 [WORD] CC * - - - - * * * * - nw/wsj/06/wsj_0677 0 43 [WORD] NN (S(NP* - - - - * * (ARG1* * - nw/wsj/06/wsj_0677 0 44 [WORD] NNS *) - - - - * * *) * - nw/wsj/06/wsj_0677 0 45 [WORD] VBD (VP* be 01 - - * * (V*) * - nw/wsj/06/wsj_0677 0 46 [WORD] RB (ADJP* - - - - * * (ARG2* * - nw/wsj/06/wsj_0677 0 47 [WORD] JJ *) - - - - * * *) * - nw/wsj/06/wsj_0677 0 48 [WORD] IN (PP* - - - - * * (ARGM-TMP* * - nw/wsj/06/wsj_0677 0 49 [WORD] DT (NP(NP* - - - - * * * (ARGM-TMP* - nw/wsj/06/wsj_0677 0 50 [WORD] NN *) - - - - * * * *) - nw/wsj/06/wsj_0677 0 51 [WORD] WRB (SBAR(WHADVP*) - - - - * * * (R-ARGM-TMP*) - nw/wsj/06/wsj_0677 0 52 [WORD] DT (S(NP* - - - - * * * (ARG1* - nw/wsj/06/wsj_0677 0 53 [WORD] NN *) - - - - * * * *) - nw/wsj/06/wsj_0677 0 54 [WORD] VBD (VP* - - - - * * * * - nw/wsj/06/wsj_0677 0 55 [WORD] VBG (VP* - - - - * * * * - nw/wsj/06/wsj_0677 0 56 [WORD] VBN (VP*)))))))))))))))) air 01 - - * * *) (V*) - nw/wsj/06/wsj_0677 0 57 [WORD] . *)) - - - - * * * * - nw/wsj/06/wsj_0677 0 0 [WORD] `` (TOP(S* - - - - * * * - nw/wsj/06/wsj_0677 0 1 [WORD] DT (S(S(NP(NP* - - - - * (ARG1* (ARG1* - nw/wsj/06/wsj_0677 0 2 [WORD] NN *) - - - - * * * - nw/wsj/06/wsj_0677 0 3 [WORD] IN (PP* - - - - * * * - nw/wsj/06/wsj_0677 0 4 [WORD] JJ (NP* - - - - * * * - nw/wsj/06/wsj_0677 0 5 [WORD] NNS *))) - - - - * *) * - nw/wsj/06/wsj_0677 0 6 [WORD] VBD (VP* be 01 - - * (V*) * - nw/wsj/06/wsj_0677 0 7 [WORD] CD (NP* - - - - (PERCENT* (ARG2* * - nw/wsj/06/wsj_0677 0 8 [WORD] NN *) - - - - *) *) * - nw/wsj/06/wsj_0677 0 9 [WORD] IN (PP* - - - - * (ARGM-LOC* * - nw/wsj/06/wsj_0677 0 10 [WORD] DT (NP* - - - - * * * - nw/wsj/06/wsj_0677 0 11 [WORD] NN *)))) - - - - * *) * - nw/wsj/06/wsj_0677 0 12 [WORD] CC * - - - - * * * - nw/wsj/06/wsj_0677 0 13 [WORD] NN (S(NP* - - - - * * * - nw/wsj/06/wsj_0677 0 14 [WORD] NNS *) - - - - * * * - nw/wsj/06/wsj_0677 0 15 [WORD] VBD (VP* - - - - * * * - nw/wsj/06/wsj_0677 0 16 [WORD] RB * - - - - * * * - nw/wsj/06/wsj_0677 0 17 [WORD] NN (VP* - - - - * * * - nw/wsj/06/wsj_0677 0 18 [WORD] RB (ADVP*))))) - - - - * * *) - nw/wsj/06/wsj_0677 0 19 [WORD] , * - - - - * * * - nw/wsj/06/wsj_0677 0 20 [WORD] '' * - - - - * * * - nw/wsj/06/wsj_0677 0 21 [WORD] VBD (VP*) say 01 - - * * (V*) - nw/wsj/06/wsj_0677 0 22 [WORD] NNP (NP* - - - - * * (ARG0* - nw/wsj/06/wsj_0677 0 23 [WORD] NNP *) - - - - (PERSON) * *) - nw/wsj/06/wsj_0677 0 24 [WORD] . *)) - - - - * * * - nw/wsj/06/wsj_0677 0 0 [WORD] `` (TOP(S* - - - - * * * * - nw/wsj/06/wsj_0677 0 1 [WORD] DT (S(NP* - - - - * (ARG1* * * - nw/wsj/06/wsj_0677 0 2 [WORD] JJ * - - - - * * * * - nw/wsj/06/wsj_0677 0 3 [WORD] NN *) - - - - * *) * * - nw/wsj/06/wsj_0677 0 4 [WORD] VBD (VP* - - - - * * * * - nw/wsj/06/wsj_0677 0 5 [WORD] VBN (VP* receive 01 - - * (V*) * * - nw/wsj/06/wsj_0677 0 6 [WORD] RB (ADVP*) - - - - * (ARGM-MNR*) * * - nw/wsj/06/wsj_0677 0 7 [WORD] -LRB- * - - - - * * * * - nw/wsj/06/wsj_0677 0 8 [WORD] IN (PP* - - - - * (ARG0* * * - nw/wsj/06/wsj_0677 0 9 [WORD] NNS (NP* - - - - * * * * - nw/wsj/06/wsj_0677 0 10 [WORD] CC * - - - - * * * * - nw/wsj/06/wsj_0677 0 11 [WORD] NNS *)) - - - - * *) * * - nw/wsj/06/wsj_0677 0 12 [WORD] -RRB- *))) - - - - * * * * - nw/wsj/06/wsj_0677 0 13 [WORD] , * - - - - * * * * - nw/wsj/06/wsj_0677 0 14 [WORD] CC * - - - - * * * * - nw/wsj/06/wsj_0677 0 15 [WORD] EX (S(NP*) - - - - * * * * - nw/wsj/06/wsj_0677 0 16 [WORD] VBD (VP* be 02 - - * * (V*) * - nw/wsj/06/wsj_0677 0 17 [WORD] RB * - - - - * * (ARGM-NEG*) * - nw/wsj/06/wsj_0677 0 18 [WORD] NN (NP(NP*) - - - - * * (ARG1* * - nw/wsj/06/wsj_0677 0 19 [WORD] JJ (ADJP* - - - - * * * * - nw/wsj/06/wsj_0677 0 20 [WORD] TO (S(VP* - - - - * * * * - nw/wsj/06/wsj_0677 0 21 [WORD] VB (VP* sign 03 - - * * * (V*) - nw/wsj/06/wsj_0677 0 22 [WORD] RP (PRT*)))))))) - - - - * * *) * - nw/wsj/06/wsj_0677 0 23 [WORD] . *)) - - - - * * * * - nw/wsj/06/wsj_0677 0 0 [WORD] PRP (TOP(S(S(NP*) - - - - * (ARG0*) * * * - nw/wsj/06/wsj_0677 0 1 [WORD] RB (ADVP*) - - - - * (ARGM-ADV*) * * * - nw/wsj/06/wsj_0677 0 2 [WORD] VBD (VP* invite 01 - - * (V*) * * * - nw/wsj/06/wsj_0677 0 3 [WORD] DT (NP* - - - - * (ARG1* (ARG0* (ARG0* * - nw/wsj/06/wsj_0677 0 4 [WORD] NN *) - - - - * *) *) *) * - nw/wsj/06/wsj_0677 0 5 [WORD] TO (S(VP* - - - - * (ARG2* * * * - nw/wsj/06/wsj_0677 0 6 [WORD] VB (VP(VP* stop 02 - - * * (V*) * * - nw/wsj/06/wsj_0677 0 7 [WORD] RP (PRT*)) - - - - * * * * * - nw/wsj/06/wsj_0677 0 8 [WORD] CC * - - - - * * * * * - nw/wsj/06/wsj_0677 0 9 [WORD] VB (VP* see 01 - - * * * (V*) * - nw/wsj/06/wsj_0677 0 10 [WORD] DT (NP* - - - - * * * (ARG1* * - nw/wsj/06/wsj_0677 0 11 [WORD] NN *))))))) - - - - * *) * *) * - nw/wsj/06/wsj_0677 0 12 [WORD] , * - - - - * * * * * - nw/wsj/06/wsj_0677 0 13 [WORD] CC * - - - - * * * * * - nw/wsj/06/wsj_0677 0 14 [WORD] EX (S(NP*) - - - - * * * * * - nw/wsj/06/wsj_0677 0 15 [WORD] VBD (VP* be 02 - - * * * * (V*) - nw/wsj/06/wsj_0677 0 16 [WORD] RB * - - - - * * * * (ARGM-NEG*) - nw/wsj/06/wsj_0677 0 17 [WORD] JJ (NP* - - - - * * * * (ARG1* - nw/wsj/06/wsj_0677 0 18 [WORD] NN *))) - - - - * * * * *) - nw/wsj/06/wsj_0677 0 19 [WORD] . * - - - - * * * * * - nw/wsj/06/wsj_0677 0 20 [WORD] '' *)) - - - - * * * * * - nw/wsj/06/wsj_0677 0 0 [WORD] NNS (TOP(S(NP*) - - - - * (ARG0*) - nw/wsj/06/wsj_0677 0 1 [WORD] VBP (VP* - - - - * * - nw/wsj/06/wsj_0677 0 2 [WORD] VBG (VP* show 01 - - * (V*) - nw/wsj/06/wsj_0677 0 3 [WORD] NN (NP*))) - - - - * (ARG1*) - nw/wsj/06/wsj_0677 0 4 [WORD] . *)) - - - - * * - nw/wsj/06/wsj_0677 0 0 [WORD] JJ (TOP(S(NP* - - - - (DATE* (ARGM-TMP* * - nw/wsj/06/wsj_0677 0 1 [WORD] NN *) - - - - *) *) * - nw/wsj/06/wsj_0677 0 2 [WORD] , * - - - - * * * - nw/wsj/06/wsj_0677 0 3 [WORD] NNP (NP*) - - - - (PERSON) (ARG0*) * - nw/wsj/06/wsj_0677 0 4 [WORD] VBD (VP* announce 01 - - * (V*) * - nw/wsj/06/wsj_0677 0 5 [WORD] PRP (SBAR(S(NP*) - - - - * (ARG1* (ARG0*) - nw/wsj/06/wsj_0677 0 6 [WORD] VBD (VP* - - - - * * * - nw/wsj/06/wsj_0677 0 7 [WORD] VBN (VP* sell 01 - - * * (V*) - nw/wsj/06/wsj_0677 0 8 [WORD] $ (NP(NP(QP* - - - - (MONEY* * (ARG1* - nw/wsj/06/wsj_0677 0 9 [WORD] CD * - - - - * * * - nw/wsj/06/wsj_0677 0 10 [WORD] CD *)) - - - - *) * * - nw/wsj/06/wsj_0677 0 11 [WORD] IN (PP* - - - - * * * - nw/wsj/06/wsj_0677 0 12 [WORD] NN (NP* - - - - * * * - nw/wsj/06/wsj_0677 0 13 [WORD] NN *))) - - - - * * * - nw/wsj/06/wsj_0677 0 14 [WORD] IN (PP* - - - - * * * - nw/wsj/06/wsj_0677 0 15 [WORD] DT (NP* - - - - * * * - nw/wsj/06/wsj_0677 0 16 [WORD] NN *)) - - - - * * *) - nw/wsj/06/wsj_0677 0 17 [WORD] IN (PP* - - - - * * (ARG2* - nw/wsj/06/wsj_0677 0 18 [WORD] JJ (NP* - - - - * * * - nw/wsj/06/wsj_0677 0 19 [WORD] NNS *))))))) - - - - * *) *) - nw/wsj/06/wsj_0677 0 20 [WORD] . *)) - - - - * * * - nw/wsj/06/wsj_0677 0 0 [WORD] NNP (TOP(S(NP* - - - - * (ARG0* * - nw/wsj/06/wsj_0677 0 1 [WORD] NNP *) - - - - (PERSON) *) * - nw/wsj/06/wsj_0677 0 2 [WORD] NNP (NP*) - - - - (DATE) (ARGM-TMP*) * - nw/wsj/06/wsj_0677 0 3 [WORD] VBD (VP* say 01 - - * (V*) * - nw/wsj/06/wsj_0677 0 4 [WORD] JJ (SBAR(S(NP* - - - - * (ARG1* (ARG1* - nw/wsj/06/wsj_0677 0 5 [WORD] JJR * - - - - * * * - nw/wsj/06/wsj_0677 0 6 [WORD] NNS *) - - - - * * *) - nw/wsj/06/wsj_0677 0 7 [WORD] VBP (VP* - - - - * * * - nw/wsj/06/wsj_0677 0 8 [WORD] VBN (VP* - - - - * * * - nw/wsj/06/wsj_0677 0 9 [WORD] VBN (VP*)))))) add 02 - - * *) (V*) - nw/wsj/06/wsj_0677 0 10 [WORD] . *)) - - - - * * * - nw/wsj/06/wsj_0677 0 0 [WORD] NNP (TOP(S(NP*) - - - - (PERSON) (ARG0*) (ARG0*) - nw/wsj/06/wsj_0677 0 1 [WORD] VBZ (VP* - - - - * * * - nw/wsj/06/wsj_0677 0 2 [WORD] VBG (VP* spend 01 - - * (V*) * - nw/wsj/06/wsj_0677 0 3 [WORD] $ (NP(QP* - - - - (MONEY* (ARG3* * - nw/wsj/06/wsj_0677 0 4 [WORD] CD * - - - - * * * - nw/wsj/06/wsj_0677 0 5 [WORD] CD *)) - - - - *) *) * - nw/wsj/06/wsj_0677 0 6 [WORD] RB (ADVP*) - - - - * (ARGM-TMP*) * - nw/wsj/06/wsj_0677 0 7 [WORD] TO (S(VP* - - - - * (ARGM-PRP* * - nw/wsj/06/wsj_0677 0 8 [WORD] VB (VP* launch 01 - - * * (V*) - nw/wsj/06/wsj_0677 0 9 [WORD] DT (NP* - - - - * * (ARG1* - nw/wsj/06/wsj_0677 0 10 [WORD] NN *)))))) - - - - * *) *) - nw/wsj/06/wsj_0677 0 11 [WORD] . *)) - - - - * * * - nw/wsj/06/wsj_0677 0 0 [WORD] NN (TOP(S(S(NP(NP*) - - - - * (ARG1* (ARG1* - nw/wsj/06/wsj_0677 0 1 [WORD] IN (PP* - - - - * * * - nw/wsj/06/wsj_0677 0 2 [WORD] NN (NP(NP* - - - - * * * - nw/wsj/06/wsj_0677 0 3 [WORD] NNS *) - - - - * * * - nw/wsj/06/wsj_0677 0 4 [WORD] , * - - - - * * * - nw/wsj/06/wsj_0677 0 5 [WORD] NNS (NP*) - - - - * * * - nw/wsj/06/wsj_0677 0 6 [WORD] CC * - - - - * * * - nw/wsj/06/wsj_0677 0 7 [WORD] NN (NP* - - - - * * * - nw/wsj/06/wsj_0677 0 8 [WORD] NN *)))) - - - - * *) * - nw/wsj/06/wsj_0677 0 9 [WORD] MD (VP* - - - - * (ARGM-MOD*) * - nw/wsj/06/wsj_0677 0 10 [WORD] VB (VP* cost 01 - - * (V*) * - nw/wsj/06/wsj_0677 0 11 [WORD] DT (NP* - - - - * (ARG3* * - nw/wsj/06/wsj_0677 0 12 [WORD] NN *) - - - - * *) * - nw/wsj/06/wsj_0677 0 13 [WORD] RB (NP(NP(QP* - - - - (MONEY* (ARG2* * - nw/wsj/06/wsj_0677 0 14 [WORD] $ * - - - - * * * - nw/wsj/06/wsj_0677 0 15 [WORD] CD *)) - - - - *) * * - nw/wsj/06/wsj_0677 0 16 [WORD] IN (PP* - - - - * * * - nw/wsj/06/wsj_0677 0 17 [WORD] NN (NP*)))))) - - - - * *) *) - nw/wsj/06/wsj_0677 0 18 [WORD] , * - - - - * * * - nw/wsj/06/wsj_0677 0 19 [WORD] NNP (NP* - - - - * * (ARG0* - nw/wsj/06/wsj_0677 0 20 [WORD] NNP *) - - - - (PERSON) * *) - nw/wsj/06/wsj_0677 0 21 [WORD] VBD (VP*) say 01 - - * * (V*) - nw/wsj/06/wsj_0677 0 22 [WORD] . *)) - - - - * * * - #end document
{ "pile_set_name": "Github" }
@api @smokeTest @public_link_share-feature-required @toImplementOnOCIS @issue-ocis-reva-172 Feature: set timeouts of LOCKS Background: Given user "Alice" has been created with default attributes and skeleton files @skipOnOcV10.3 @skipOnOcV10.4 Scenario Outline: do not set timeout on folder and check the default timeout Given using <dav-path> DAV path And parameter "lock_timeout_default" of app "core" has been set to "<default-timeout>" And parameter "lock_timeout_max" of app "core" has been set to "<max-timeout>" When user "Alice" locks folder "PARENT" using the WebDAV API setting following properties | lockscope | exclusive | And user "Alice" gets the following properties of folder "PARENT" using the WebDAV API | propertyName | | d:lockdiscovery | Then the value of the item "//d:timeout" in the response should match "<result>" When user "Alice" gets the following properties of folder "PARENT/CHILD" using the WebDAV API | propertyName | | d:lockdiscovery | Then the value of the item "//d:timeout" in the response should match "<result>" When user "Alice" gets the following properties of folder "PARENT/parent.txt" using the WebDAV API | propertyName | | d:lockdiscovery | Then the value of the item "//d:timeout" in the response should match "<result>" # consider a drift of up to 9 seconds between setting the lock and retrieving it Examples: | dav-path | default-timeout | max-timeout | result | | old | 120 | 3600 | /Second-(120\|11[1-9])$/ | | old | 99999 | 3600 | /Second-(3600\|359[1-9])$/ | | new | 120 | 3600 | /Second-(120\|11[1-9])$/ | | new | 99999 | 3600 | /Second-(3600\|359[1-9])$/ | Scenario Outline: set timeout on folder Given using <dav-path> DAV path When user "Alice" locks folder "PARENT" using the WebDAV API setting following properties | lockscope | shared | | timeout | <timeout> | And user "Alice" gets the following properties of folder "PARENT" using the WebDAV API | propertyName | | d:lockdiscovery | Then the value of the item "//d:timeout" in the response to user "Alice" should match "<result>" When user "Alice" gets the following properties of folder "PARENT/CHILD" using the WebDAV API | propertyName | | d:lockdiscovery | Then the value of the item "//d:timeout" in the response to user "Alice" should match "<result>" When user "Alice" gets the following properties of folder "PARENT/parent.txt" using the WebDAV API | propertyName | | d:lockdiscovery | Then the value of the item "//d:timeout" in the response to user "Alice" should match "<result>" Examples: | dav-path | timeout | result | | old | second-999 | /Second-\d{3}$/ | | old | second-99999999 | /Second-\d{5}$/ | | old | infinite | /Second-\d{5}$/ | | old | second--1 | /Second-\d{5}$/ | | old | second-0 | /Second-\d{4}$/ | | new | second-999 | /Second-\d{3}$/ | | new | second-99999999 | /Second-\d{5}$/ | | new | infinite | /Second-\d{5}$/ | | new | second--1 | /Second-\d{5}$/ | | new | second-0 | /Second-\d{4}$/ | @skipOnOcV10.3 @skipOnOcV10.4 Scenario Outline: set timeout over the maximum on folder Given using <dav-path> DAV path And parameter "lock_timeout_default" of app "core" has been set to "<default-timeout>" And parameter "lock_timeout_max" of app "core" has been set to "<max-timeout>" When user "Alice" locks folder "PARENT" using the WebDAV API setting following properties | lockscope | shared | | timeout | <timeout> | And user "Alice" gets the following properties of folder "PARENT" using the WebDAV API | propertyName | | d:lockdiscovery | Then the value of the item "//d:timeout" in the response should match "<result>" When user "Alice" gets the following properties of folder "PARENT/CHILD" using the WebDAV API | propertyName | | d:lockdiscovery | Then the value of the item "//d:timeout" in the response should match "<result>" When user "Alice" gets the following properties of folder "PARENT/parent.txt" using the WebDAV API | propertyName | | d:lockdiscovery | Then the value of the item "//d:timeout" in the response should match "<result>" Examples: | dav-path | timeout | default-timeout | max-timeout | result | | old | second-600 | 120 | 3600 | /Second-(600\|59[1-9])$/ | | old | second-600 | 99999 | 3600 | /Second-(600\|59[1-9])$/ | | old | second-10000 | 120 | 3600 | /Second-(3600\|359[1-9])$/ | | old | second-10000 | 99999 | 3600 | /Second-(3600\|359[1-9])$/ | | old | infinite | 120 | 3600 | /Second-(3600\|359[1-9])$/ | | old | infinite | 99999 | 3600 | /Second-(3600\|359[1-9])$/ | | new | second-600 | 120 | 3600 | /Second-(600\|59[1-9])$/ | | new | second-600 | 99999 | 3600 | /Second-(600\|59[1-9])$/ | | new | second-10000 | 120 | 3600 | /Second-(3600\|359[1-9])$/ | | new | second-10000 | 99999 | 3600 | /Second-(3600\|359[1-9])$/ | | new | infinite | 120 | 3600 | /Second-(3600\|359[1-9])$/ | | new | infinite | 99999 | 3600 | /Second-(3600\|359[1-9])$/ | @files_sharing-app-required Scenario Outline: as owner set timeout on folder as receiver check it Given using <dav-path> DAV path And user "Brian" has been created with default attributes and skeleton files And user "Alice" has shared folder "PARENT" with user "Brian" When user "Alice" locks folder "PARENT" using the WebDAV API setting following properties | lockscope | shared | | timeout | <timeout> | And user "Brian" gets the following properties of folder "PARENT (2)" using the WebDAV API | propertyName | | d:lockdiscovery | Then the value of the item "//d:timeout" in the response to user "Brian" should match "<result>" When user "Brian" gets the following properties of folder "PARENT (2)/CHILD" using the WebDAV API | propertyName | | d:lockdiscovery | Then the value of the item "//d:timeout" in the response to user "Brian" should match "<result>" When user "Brian" gets the following properties of folder "PARENT (2)/parent.txt" using the WebDAV API | propertyName | | d:lockdiscovery | Then the value of the item "//d:timeout" in the response to user "Brian" should match "<result>" Examples: | dav-path | timeout | result | | old | second-999 | /Second-\d{3}$/ | | old | second-99999999 | /Second-\d{5}$/ | | old | infinite | /Second-\d{5}$/ | | old | second--1 | /Second-\d{5}$/ | | old | second-0 | /Second-\d{4}$/ | | new | second-999 | /Second-\d{3}$/ | | new | second-99999999 | /Second-\d{5}$/ | | new | infinite | /Second-\d{5}$/ | | new | second--1 | /Second-\d{5}$/ | | new | second-0 | /Second-\d{4}$/ | @files_sharing-app-required Scenario Outline: as share receiver set timeout on folder as owner check it Given using <dav-path> DAV path And user "Brian" has been created with default attributes and skeleton files And user "Alice" has shared folder "PARENT" with user "Brian" When user "Brian" locks folder "PARENT (2)" using the WebDAV API setting following properties | lockscope | shared | | timeout | <timeout> | And user "Alice" gets the following properties of folder "PARENT" using the WebDAV API | propertyName | | d:lockdiscovery | Then the value of the item "//d:timeout" in the response to user "Alice" should match "<result>" When user "Alice" gets the following properties of folder "PARENT/CHILD" using the WebDAV API | propertyName | | d:lockdiscovery | Then the value of the item "//d:timeout" in the response to user "Alice" should match "<result>" When user "Alice" gets the following properties of folder "PARENT/parent.txt" using the WebDAV API | propertyName | | d:lockdiscovery | Then the value of the item "//d:timeout" in the response to user "Alice" should match "<result>" Examples: | dav-path | timeout | result | | old | second-999 | /Second-\d{3}$/ | | old | second-99999999 | /Second-\d{5}$/ | | old | infinite | /Second-\d{5}$/ | | old | second--1 | /Second-\d{5}$/ | | old | second-0 | /Second-\d{4}$/ | | new | second-999 | /Second-\d{3}$/ | | new | second-99999999 | /Second-\d{5}$/ | | new | infinite | /Second-\d{5}$/ | | new | second--1 | /Second-\d{5}$/ | | new | second-0 | /Second-\d{4}$/ | @files_sharing-app-required Scenario Outline: as owner set timeout on folder as public check it Given using <dav-path> DAV path And user "Alice" has created a public link share of folder "PARENT" When user "Alice" locks folder "PARENT" using the WebDAV API setting following properties | lockscope | shared | | timeout | <timeout> | And the public gets the following properties of entry "/" in the last created public link using the WebDAV API | propertyName | | d:lockdiscovery | Then the value of the item "//d:timeout" in the response to user "Alice" should match "<result>" When the public gets the following properties of entry "/CHILD" in the last created public link using the WebDAV API | propertyName | | d:lockdiscovery | Then the value of the item "//d:timeout" in the response to user "Alice" should match "<result>" When the public gets the following properties of entry "/parent.txt" in the last created public link using the WebDAV API | propertyName | | d:lockdiscovery | Then the value of the item "//d:timeout" in the response to user "Alice" should match "<result>" Examples: | dav-path | timeout | result | | old | second-999 | /Second-\d{3}$/ | | old | second-99999999 | /Second-\d{5}$/ | | old | infinite | /Second-\d{5}$/ | | old | second--1 | /Second-\d{5}$/ | | old | second-0 | /Second-\d{4}$/ | | new | second-999 | /Second-\d{3}$/ | | new | second-99999999 | /Second-\d{5}$/ | | new | infinite | /Second-\d{5}$/ | | new | second--1 | /Second-\d{5}$/ | | new | second-0 | /Second-\d{4}$/ |
{ "pile_set_name": "Github" }
@extends('frontend.layouts.app') @section('title', __('Register')) @section('content') <div class="container py-4"> <div class="row justify-content-center"> <div class="col-md-8"> <x-frontend.card> <x-slot name="header"> @lang('Register') </x-slot> <x-slot name="body"> <x-forms.post :action="route('frontend.auth.register')"> <div class="form-group row"> <label for="name" class="col-md-4 col-form-label text-md-right">@lang('Name')</label> <div class="col-md-6"> <input type="text" name="name" id="name" class="form-control" value="{{ old('name') }}" placeholder="{{ __('Name') }}" maxlength="100" required autofocus autocomplete="name" /> </div> </div><!--form-group--> <div class="form-group row"> <label for="name" class="col-md-4 col-form-label text-md-right">@lang('E-mail Address')</label> <div class="col-md-6"> <input type="email" name="email" id="email" class="form-control" placeholder="{{ __('E-mail Address') }}" value="{{ old('email') }}" maxlength="255" required autocomplete="email" /> </div> </div><!--form-group--> <div class="form-group row"> <label for="name" class="col-md-4 col-form-label text-md-right">@lang('Password')</label> <div class="col-md-6"> <input type="password" name="password" id="password" class="form-control" placeholder="{{ __('Password') }}" maxlength="100" required autocomplete="new-password" /> </div> </div><!--form-group--> <div class="form-group row"> <label for="name" class="col-md-4 col-form-label text-md-right">@lang('Password Confirmation')</label> <div class="col-md-6"> <input type="password" name="password_confirmation" id="password_confirmation" class="form-control" placeholder="{{ __('Password Confirmation') }}" maxlength="100" required autocomplete="new-password" /> </div> </div><!--form-group--> <div class="form-group row"> <div class="col-md-6 offset-md-4"> <div class="form-check"> <input type="checkbox" name="terms" value="1" id="terms" class="form-check-input" required> <label class="form-check-label" for="terms"> @lang('I agree to the') <a href="{{ route('frontend.pages.terms') }}" target="_blank">@lang('Terms & Conditions')</a> </label> </div> </div> </div><!--form-group--> @if(config('boilerplate.access.captcha.registration')) <div class="row"> <div class="col"> @captcha <input type="hidden" name="captcha_status" value="true" /> </div><!--col--> </div><!--row--> @endif <div class="form-group row mb-0"> <div class="col-md-6 offset-md-4"> <button class="btn btn-primary" type="submit">@lang('Register')</button> </div> </div><!--form-group--> </x-forms.post> </x-slot> </x-frontend.card> </div><!--col-md-8--> </div><!--row--> </div><!--container--> @endsection
{ "pile_set_name": "Github" }
-- Conditions for Spell "Stamp Out Bonfire" DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=13 AND `SourceEntry` IN (45437); INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`SourceId`,`ElseGroup`,`ConditionTypeOrReference`,`ConditionTarget`,`ConditionValue1`,`ConditionValue2`,`ConditionValue3`,`NegativeCondition`,`ErrorTextId`,`ScriptName`,`Comment`) VALUES -- Alliance Bonfires (13,1,45437,0,0,31,0,5,187564,0,0,0,'','Spell can hit go target'), (13,1,45437,0,1,31,0,5,187914,0,0,0,'','Spell can hit go target'), (13,1,45437,0,2,31,0,5,187916,0,0,0,'','Spell can hit go target'), (13,1,45437,0,3,31,0,5,187917,0,0,0,'','Spell can hit go target'), (13,1,45437,0,4,31,0,5,187919,0,0,0,'','Spell can hit go target'), (13,1,45437,0,5,31,0,5,187920,0,0,0,'','Spell can hit go target'), (13,1,45437,0,6,31,0,5,187921,0,0,0,'','Spell can hit go target'), (13,1,45437,0,7,31,0,5,187922,0,0,0,'','Spell can hit go target'), (13,1,45437,0,8,31,0,5,187923,0,0,0,'','Spell can hit go target'), (13,1,45437,0,9,31,0,5,187924,0,0,0,'','Spell can hit go target'), (13,1,45437,0,10,31,0,5,187925,0,0,0,'','Spell can hit go target'), (13,1,45437,0,11,31,0,5,187926,0,0,0,'','Spell can hit go target'), (13,1,45437,0,12,31,0,5,187927,0,0,0,'','Spell can hit go target'), (13,1,45437,0,13,31,0,5,187928,0,0,0,'','Spell can hit go target'), (13,1,45437,0,14,31,0,5,187929,0,0,0,'','Spell can hit go target'), (13,1,45437,0,15,31,0,5,187930,0,0,0,'','Spell can hit go target'), (13,1,45437,0,16,31,0,5,187931,0,0,0,'','Spell can hit go target'), (13,1,45437,0,17,31,0,5,187932,0,0,0,'','Spell can hit go target'), (13,1,45437,0,18,31,0,5,187933,0,0,0,'','Spell can hit go target'), (13,1,45437,0,19,31,0,5,187934,0,0,0,'','Spell can hit go target'), (13,1,45437,0,20,31,0,5,187935,0,0,0,'','Spell can hit go target'), (13,1,45437,0,21,31,0,5,187936,0,0,0,'','Spell can hit go target'), (13,1,45437,0,22,31,0,5,187937,0,0,0,'','Spell can hit go target'), (13,1,45437,0,23,31,0,5,187938,0,0,0,'','Spell can hit go target'), (13,1,45437,0,24,31,0,5,187939,0,0,0,'','Spell can hit go target'), (13,1,45437,0,25,31,0,5,187940,0,0,0,'','Spell can hit go target'), (13,1,45437,0,26,31,0,5,187941,0,0,0,'','Spell can hit go target'), (13,1,45437,0,27,31,0,5,187942,0,0,0,'','Spell can hit go target'), (13,1,45437,0,28,31,0,5,187943,0,0,0,'','Spell can hit go target'), (13,1,45437,0,29,31,0,5,187944,0,0,0,'','Spell can hit go target'), (13,1,45437,0,30,31,0,5,187945,0,0,0,'','Spell can hit go target'), (13,1,45437,0,31,31,0,5,187946,0,0,0,'','Spell can hit go target'), (13,1,45437,0,32,31,0,5,194032,0,0,0,'','Spell can hit go target'), (13,1,45437,0,33,31,0,5,194035,0,0,0,'','Spell can hit go target'), (13,1,45437,0,34,31,0,5,194036,0,0,0,'','Spell can hit go target'), (13,1,45437,0,35,31,0,5,194038,0,0,0,'','Spell can hit go target'), (13,1,45437,0,36,31,0,5,194040,0,0,0,'','Spell can hit go target'), (13,1,45437,0,37,31,0,5,194044,0,0,0,'','Spell can hit go target'), (13,1,45437,0,38,31,0,5,194045,0,0,0,'','Spell can hit go target'), (13,1,45437,0,39,31,0,5,194049,0,0,0,'','Spell can hit go target'), -- Horde Bonfires (13,1,45437,0,40,31,0,5,187559,0,0,0,'','Spell can hit go target'), (13,1,45437,0,41,31,0,5,187947,0,0,0,'','Spell can hit go target'), (13,1,45437,0,42,31,0,5,187948,0,0,0,'','Spell can hit go target'), (13,1,45437,0,43,31,0,5,187949,0,0,0,'','Spell can hit go target'), (13,1,45437,0,44,31,0,5,187950,0,0,0,'','Spell can hit go target'), (13,1,45437,0,45,31,0,5,187951,0,0,0,'','Spell can hit go target'), (13,1,45437,0,46,31,0,5,187952,0,0,0,'','Spell can hit go target'), (13,1,45437,0,47,31,0,5,187953,0,0,0,'','Spell can hit go target'), (13,1,45437,0,48,31,0,5,187954,0,0,0,'','Spell can hit go target'), (13,1,45437,0,49,31,0,5,187955,0,0,0,'','Spell can hit go target'), (13,1,45437,0,50,31,0,5,187956,0,0,0,'','Spell can hit go target'), (13,1,45437,0,51,31,0,5,187957,0,0,0,'','Spell can hit go target'), (13,1,45437,0,52,31,0,5,187958,0,0,0,'','Spell can hit go target'), (13,1,45437,0,53,31,0,5,187959,0,0,0,'','Spell can hit go target'), (13,1,45437,0,54,31,0,5,187960,0,0,0,'','Spell can hit go target'), (13,1,45437,0,55,31,0,5,187961,0,0,0,'','Spell can hit go target'), (13,1,45437,0,56,31,0,5,187962,0,0,0,'','Spell can hit go target'), (13,1,45437,0,57,31,0,5,187963,0,0,0,'','Spell can hit go target'), (13,1,45437,0,58,31,0,5,187964,0,0,0,'','Spell can hit go target'), (13,1,45437,0,59,31,0,5,187965,0,0,0,'','Spell can hit go target'), (13,1,45437,0,60,31,0,5,187966,0,0,0,'','Spell can hit go target'), (13,1,45437,0,61,31,0,5,187967,0,0,0,'','Spell can hit go target'), (13,1,45437,0,62,31,0,5,187968,0,0,0,'','Spell can hit go target'), (13,1,45437,0,63,31,0,5,187969,0,0,0,'','Spell can hit go target'), (13,1,45437,0,64,31,0,5,187970,0,0,0,'','Spell can hit go target'), (13,1,45437,0,65,31,0,5,187971,0,0,0,'','Spell can hit go target'), (13,1,45437,0,66,31,0,5,187972,0,0,0,'','Spell can hit go target'), (13,1,45437,0,67,31,0,5,187973,0,0,0,'','Spell can hit go target'), (13,1,45437,0,68,31,0,5,187974,0,0,0,'','Spell can hit go target'), (13,1,45437,0,69,31,0,5,187975,0,0,0,'','Spell can hit go target'), (13,1,45437,0,70,31,0,5,194033,0,0,0,'','Spell can hit go target'), (13,1,45437,0,71,31,0,5,194034,0,0,0,'','Spell can hit go target'), (13,1,45437,0,72,31,0,5,194037,0,0,0,'','Spell can hit go target'), (13,1,45437,0,73,31,0,5,194039,0,0,0,'','Spell can hit go target'), (13,1,45437,0,74,31,0,5,194042,0,0,0,'','Spell can hit go target'), (13,1,45437,0,75,31,0,5,194043,0,0,0,'','Spell can hit go target'), (13,1,45437,0,76,31,0,5,194046,0,0,0,'','Spell can hit go target'), (13,1,45437,0,77,31,0,5,194048,0,0,0,'','Spell can hit go target'); -- Add Triggered spell DELETE FROM `spell_linked_spell` WHERE `spell_trigger`=45458; INSERT INTO `spell_linked_spell` (`spell_trigger`,`spell_effect`,`type`,`comment`) VALUES (45458,45437,1,'Holiday - Midsummer, Stamp Out Bonfire, Quest Complete triggers Stamp Out Bonfire'); -- Add script to bonfires UPDATE `gameobject_template` SET `ScriptName`= 'go_midsummer_bonfire' WHERE `entry` IN (187559,187564,187914,187916,187917,187919,187920,187921,187922,187923,187924,187925,187926,187927,187928,187929,187930,187931,187932,187933,187934,187935,187936,187937,187938,187939,187940,187941,187942,187943,187944,187945,187946,187947,187948,187949,187950,187951,187952,187953,187954,187955,187956,187957,187958,187959,187960,187961,187962,187963,187964,187965,187966,187967,187968,187969,187970,187971,187972,187973,187974,187975,194032,194033,194034,194035,194036,194037,194038,194039,194040,194042,194043,194044,194045,194046,194048,194049); -- Add gossip to Horde Bonfires DELETE FROM `gossip_menu` WHERE `entry` IN (9370,9353,9355,9379,9380,9381,9382,9383,9356,9357,9358,9359,9360,9361,9362,9363,9364,9365,9366,9367,9368,9369,9371,9372,9373,9374,9375,9376,9377,9378,10228,10231,10232,10235,10236,10239,10241,10242); INSERT INTO `gossip_menu` (`entry`,`text_id`) VALUES (9370,12374),(9353,12374),(9355,12374),(9379,12374),(9380,12374),(9381,12374),(9382,12374), (9383,12374),(9356,12374),(9357,12374),(9358,12374),(9359,12374),(9360,12374),(9361,12374), (9362,12374),(9363,12374),(9364,12374),(9365,12374),(9366,12374),(9367,12374),(9368,12374), (9369,12374),(9371,12374),(9372,12374),(9373,12374),(9374,12374),(9375,12374),(9376,12374), (9377,12374),(9378,12374),(10228,12374),(10231,12374),(10232,12374),(10235,12374),(10236,12374), (10239,12374),(10241,12374),(10242,12374); -- Creature Gossip_menu_option inserts for Horde bonfires DELETE FROM `gossip_menu_option` WHERE `menu_id` IN (9370,9353,9355,9379,9380,9381,9382,9383,9356,9357,9358,9359,9360,9361,9362,9363,9364,9365,9366,9367,9368,9369,9371,9372,9373,9374,9375,9376,9377,9378,10228,10231,10232,10235,10236,10239,10241,10242) AND `id`=0; INSERT INTO `gossip_menu_option` (`menu_id`,`id`,`option_icon`,`option_text`,`option_id`,`npc_option_npcflag`,`action_menu_id`,`action_poi_id`,`box_coded`,`box_money`,`box_text`) VALUES (9370,0,0, 'Stamp out the Horde bonfire!',1,1,0,0,0,0, ''), (9353,0,0, 'Stamp out the Horde bonfire!',1,1,0,0,0,0, ''), (9355,0,0, 'Stamp out the Horde bonfire!',1,1,0,0,0,0, ''), (9379,0,0, 'Stamp out the Horde bonfire!',1,1,0,0,0,0, ''), (9380,0,0, 'Stamp out the Horde bonfire!',1,1,0,0,0,0, ''), (9381,0,0, 'Stamp out the Horde bonfire!',1,1,0,0,0,0, ''), (9382,0,0, 'Stamp out the Horde bonfire!',1,1,0,0,0,0, ''), (9383,0,0, 'Stamp out the Horde bonfire!',1,1,0,0,0,0, ''), (9356,0,0, 'Stamp out the Horde bonfire!',1,1,0,0,0,0, ''), (9357,0,0, 'Stamp out the Horde bonfire!',1,1,0,0,0,0, ''), (9358,0,0, 'Stamp out the Horde bonfire!',1,1,0,0,0,0, ''), (9359,0,0, 'Stamp out the Horde bonfire!',1,1,0,0,0,0, ''), (9360,0,0, 'Stamp out the Horde bonfire!',1,1,0,0,0,0, ''), (9361,0,0, 'Stamp out the Horde bonfire!',1,1,0,0,0,0, ''), (9362,0,0, 'Stamp out the Horde bonfire!',1,1,0,0,0,0, ''), (9363,0,0, 'Stamp out the Horde bonfire!',1,1,0,0,0,0, ''), (9364,0,0, 'Stamp out the Horde bonfire!',1,1,0,0,0,0, ''), (9365,0,0, 'Stamp out the Horde bonfire!',1,1,0,0,0,0, ''), (9366,0,0, 'Stamp out the Horde bonfire!',1,1,0,0,0,0, ''), (9367,0,0, 'Stamp out the Horde bonfire!',1,1,0,0,0,0, ''), (9368,0,0, 'Stamp out the Horde bonfire!',1,1,0,0,0,0, ''), (9369,0,0, 'Stamp out the Horde bonfire!',1,1,0,0,0,0, ''), (9371,0,0, 'Stamp out the Horde bonfire!',1,1,0,0,0,0, ''), (9372,0,0, 'Stamp out the Horde bonfire!',1,1,0,0,0,0, ''), (9373,0,0, 'Stamp out the Horde bonfire!',1,1,0,0,0,0, ''), (9374,0,0, 'Stamp out the Horde bonfire!',1,1,0,0,0,0, ''), (9375,0,0, 'Stamp out the Horde bonfire!',1,1,0,0,0,0, ''), (9376,0,0, 'Stamp out the Horde bonfire!',1,1,0,0,0,0, ''), (9377,0,0, 'Stamp out the Horde bonfire!',1,1,0,0,0,0, ''), (9378,0,0, 'Stamp out the Horde bonfire!',1,1,0,0,0,0, ''), (10228,0,0, 'Stamp out the Horde bonfire!',1,1,0,0,0,0, ''), (10231,0,0, 'Stamp out the Horde bonfire!',1,1,0,0,0,0, ''), (10232,0,0, 'Stamp out the Horde bonfire!',1,1,0,0,0,0, ''), (10235,0,0, 'Stamp out the Horde bonfire!',1,1,0,0,0,0, ''), (10236,0,0, 'Stamp out the Horde bonfire!',1,1,0,0,0,0, ''), (10239,0,0, 'Stamp out the Horde bonfire!',1,1,0,0,0,0, ''), (10241,0,0, 'Stamp out the Horde bonfire!',1,1,0,0,0,0, ''), (10242,0,0, 'Stamp out the Horde bonfire!',1,1,0,0,0,0, ''); -- Add conditons for Horde Bonfires DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=15 AND `SourceEntry`=0 AND `SourceGroup` IN (9370,9353,9355,9379,9380,9381,9382,9383,9356,9357,9358,9359,9360,9361,9362,9363,9364,9365,9366,9367,9368,9369,9371,9372,9373,9374,9375,9376,9377,9378,10228,10231,10232,10235,10236,10239,10241,10242); INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`SourceId`,`ElseGroup`,`ConditionTypeOrReference`,`ConditionTarget`,`ConditionValue1`,`ConditionValue2`,`ConditionValue3`,`NegativeCondition`,`ErrorTextId`,`ScriptName`,`Comment`) VALUES (15,9370,0,0,0,8,0,11581,0,0,0,0,'','Show gossip option only if player has quest'), (15,9353,0,0,0,8,0,11764,0,0,0,0,'','Show gossip option only if player has quest'), (15,9355,0,0,0,8,0,11765,0,0,0,0,'','Show gossip option only if player has quest'), (15,9379,0,0,0,8,0,11766,0,0,0,0,'','Show gossip option only if player has quest'), (15,9380,0,0,0,8,0,11767,0,0,0,0,'','Show gossip option only if player has quest'), (15,9381,0,0,0,8,0,11768,0,0,0,0,'','Show gossip option only if player has quest'), (15,9382,0,0,0,8,0,11769,0,0,0,0,'','Show gossip option only if player has quest'), (15,9383,0,0,0,8,0,11770,0,0,0,0,'','Show gossip option only if player has quest'), (15,9356,0,0,0,8,0,11771,0,0,0,0,'','Show gossip option only if player has quest'), (15,9357,0,0,0,8,0,11772,0,0,0,0,'','Show gossip option only if player has quest'), (15,9358,0,0,0,8,0,11773,0,0,0,0,'','Show gossip option only if player has quest'), (15,9359,0,0,0,8,0,11774,0,0,0,0,'','Show gossip option only if player has quest'), (15,9360,0,0,0,8,0,11775,0,0,0,0,'','Show gossip option only if player has quest'), (15,9361,0,0,0,8,0,11776,0,0,0,0,'','Show gossip option only if player has quest'), (15,9362,0,0,0,8,0,11777,0,0,0,0,'','Show gossip option only if player has quest'), (15,9363,0,0,0,8,0,11778,0,0,0,0,'','Show gossip option only if player has quest'), (15,9364,0,0,0,8,0,11779,0,0,0,0,'','Show gossip option only if player has quest'), (15,9365,0,0,0,8,0,11780,0,0,0,0,'','Show gossip option only if player has quest'), (15,9366,0,0,0,8,0,11781,0,0,0,0,'','Show gossip option only if player has quest'), (15,9367,0,0,0,8,0,11782,0,0,0,0,'','Show gossip option only if player has quest'), (15,9368,0,0,0,8,0,11783,0,0,0,0,'','Show gossip option only if player has quest'), (15,9369,0,0,0,8,0,11784,0,0,0,0,'','Show gossip option only if player has quest'), (15,9371,0,0,0,8,0,11785,0,0,0,0,'','Show gossip option only if player has quest'), (15,9372,0,0,0,8,0,11786,0,0,0,0,'','Show gossip option only if player has quest'), (15,9373,0,0,0,8,0,11787,0,0,0,0,'','Show gossip option only if player has quest'), (15,9374,0,0,0,8,0,11799,0,0,0,0,'','Show gossip option only if player has quest'), (15,9375,0,0,0,8,0,11800,0,0,0,0,'','Show gossip option only if player has quest'), (15,9376,0,0,0,8,0,11801,0,0,0,0,'','Show gossip option only if player has quest'), (15,9377,0,0,0,8,0,11802,0,0,0,0,'','Show gossip option only if player has quest'), (15,9378,0,0,0,8,0,11803,0,0,0,0,'','Show gossip option only if player has quest'), (15,10228,0,0,0,8,0,13441,0,0,0,0,'','Show gossip option only if player has quest'), (15,10231,0,0,0,8,0,13450,0,0,0,0,'','Show gossip option only if player has quest'), (15,10232,0,0,0,8,0,13451,0,0,0,0,'','Show gossip option only if player has quest'), (15,10235,0,0,0,8,0,13453,0,0,0,0,'','Show gossip option only if player has quest'), (15,10236,0,0,0,8,0,13454,0,0,0,0,'','Show gossip option only if player has quest'), (15,10239,0,0,0,8,0,13455,0,0,0,0,'','Show gossip option only if player has quest'), (15,10241,0,0,0,8,0,13457,0,0,0,0,'','Show gossip option only if player has quest'), (15,10242,0,0,0,8,0,13458,0,0,0,0,'','Show gossip option only if player has quest'); -- Fix required side for Alliance quest UPDATE `quest_template` SET `RequiredRaces`=1101 WHERE `Id` IN (11581,11764,11765,11766,11767,11768,11769,11770,11771,11772,11773,11774,11775,11776,11777,11778,11779,11780,11781,11782,11783,11784,11785,11786,11787,11799,11800,11801,11802,11803,13441,13450,13451,13453,13454,13455,13457,13458); -- Fix Faction for Horde bonfires UPDATE `gameobject_template` SET `faction`=1732 WHERE `entry` IN (187949,187955,187958,187960,187962,187965,187967,187974,194037,194039,194042,194043,194046,194048); -- Add gossip to Alliance Bonfires DELETE FROM `gossip_menu` WHERE `entry` IN (9406,9352,9354,9384,9385,9386,9387,9388,9389,9390,9391,9392,9393,9394,9395,9396,9397,9398,9399,9400,9401,9402,9403,9404,9405,9407,9408,9409,9410,9411,9412,9413,10227,10230,10233,10234,10237,10238,10240,10243); INSERT INTO `gossip_menu` (`entry`,`text_id`) VALUES (9406,12377),(9352,12377),(9354,12377),(9384,12377),(9385,12377),(9386,12377),(9387,12377),(9388,12377), (9389,12377),(9390,12377),(9391,12377),(9392,12377),(9393,12377),(9394,12377),(9395,12377),(9396,12377), (9397,12377),(9398,12377),(9399,12377),(9400,12377),(9401,12377),(9402,12377),(9403,12377),(9404,12377), (9405,12377),(9407,12377),(9408,12377),(9409,12377),(9410,12377),(9411,12377),(9412,12377),(9413,12377), (10227,12377),(10230,12377),(10233,12377),(10234,12377),(10237,12377),(10238,12377),(10240,12377),(10243,12377); -- Creature Gossip_menu_option insert from sniff DELETE FROM `gossip_menu_option` WHERE `menu_id` IN (9406,9352,9354,9384,9385,9386,9387,9388,9389,9390,9391,9392,9393,9394,9395,9396,9397,9398,9399,9400,9401,9402,9403,9404,9405,9407,9408,9409,9410,9411,9412,9413,10227,10230,10233,10234,10237,10238,10240,10243) AND `id`=0; INSERT INTO `gossip_menu_option` (`menu_id`,`id`,`option_icon`,`option_text`,`option_id`,`npc_option_npcflag`,`action_menu_id`,`action_poi_id`,`box_coded`,`box_money`,`box_text`) VALUES (9406,0,0, 'Stamp out the Alliance bonfire!',1,1,0,0,0,0, ''), (9352,0,0, 'Stamp out the Alliance bonfire!',1,1,0,0,0,0, ''), (9354,0,0, 'Stamp out the Alliance bonfire!',1,1,0,0,0,0, ''), (9384,0,0, 'Stamp out the Alliance bonfire!',1,1,0,0,0,0, ''), (9385,0,0, 'Stamp out the Alliance bonfire!',1,1,0,0,0,0, ''), (9386,0,0, 'Stamp out the Alliance bonfire!',1,1,0,0,0,0, ''), (9387,0,0, 'Stamp out the Alliance bonfire!',1,1,0,0,0,0, ''), (9388,0,0, 'Stamp out the Alliance bonfire!',1,1,0,0,0,0, ''), (9389,0,0, 'Stamp out the Alliance bonfire!',1,1,0,0,0,0, ''), (9390,0,0, 'Stamp out the Alliance bonfire!',1,1,0,0,0,0, ''), (9391,0,0, 'Stamp out the Alliance bonfire!',1,1,0,0,0,0, ''), (9392,0,0, 'Stamp out the Alliance bonfire!',1,1,0,0,0,0, ''), (9393,0,0, 'Stamp out the Alliance bonfire!',1,1,0,0,0,0, ''), (9394,0,0, 'Stamp out the Alliance bonfire!',1,1,0,0,0,0, ''), (9395,0,0, 'Stamp out the Alliance bonfire!',1,1,0,0,0,0, ''), (9396,0,0, 'Stamp out the Alliance bonfire!',1,1,0,0,0,0, ''), (9397,0,0, 'Stamp out the Alliance bonfire!',1,1,0,0,0,0, ''), (9398,0,0, 'Stamp out the Alliance bonfire!',1,1,0,0,0,0, ''), (9399,0,0, 'Stamp out the Alliance bonfire!',1,1,0,0,0,0, ''), (9400,0,0, 'Stamp out the Alliance bonfire!',1,1,0,0,0,0, ''), (9401,0,0, 'Stamp out the Alliance bonfire!',1,1,0,0,0,0, ''), (9402,0,0, 'Stamp out the Alliance bonfire!',1,1,0,0,0,0, ''), (9403,0,0, 'Stamp out the Alliance bonfire!',1,1,0,0,0,0, ''), (9404,0,0, 'Stamp out the Alliance bonfire!',1,1,0,0,0,0, ''), (9405,0,0, 'Stamp out the Alliance bonfire!',1,1,0,0,0,0, ''), (9407,0,0, 'Stamp out the Alliance bonfire!',1,1,0,0,0,0, ''), (9408,0,0, 'Stamp out the Alliance bonfire!',1,1,0,0,0,0, ''), (9409,0,0, 'Stamp out the Alliance bonfire!',1,1,0,0,0,0, ''), (9410,0,0, 'Stamp out the Alliance bonfire!',1,1,0,0,0,0, ''), (9411,0,0, 'Stamp out the Alliance bonfire!',1,1,0,0,0,0, ''), (9412,0,0, 'Stamp out the Alliance bonfire!',1,1,0,0,0,0, ''), (9413,0,0, 'Stamp out the Alliance bonfire!',1,1,0,0,0,0, ''), (10227,0,0, 'Stamp out the Alliance bonfire!',1,1,0,0,0,0, ''), (10230,0,0, 'Stamp out the Alliance bonfire!',1,1,0,0,0,0, ''), (10233,0,0, 'Stamp out the Alliance bonfire!',1,1,0,0,0,0, ''), (10234,0,0, 'Stamp out the Alliance bonfire!',1,1,0,0,0,0, ''), (10237,0,0, 'Stamp out the Alliance bonfire!',1,1,0,0,0,0, ''), (10238,0,0, 'Stamp out the Alliance bonfire!',1,1,0,0,0,0, ''), (10240,0,0, 'Stamp out the Alliance bonfire!',1,1,0,0,0,0, ''), (10243,0,0, 'Stamp out the Alliance bonfire!',1,1,0,0,0,0, ''); -- Add conditons for Alliance Bonfires DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=15 AND `SourceEntry`=0 AND `SourceGroup` IN (9406,9352,9354,9384,9385,9386,9387,9388,9389,9390,9391,9392,9393,9394,9395,9396,9397,9398,9399,9400,9401,9402,9403,9404,9405,9407,9408,9409,9410,9411,9412,9413,10227,10230,10233,10234,10237,10238,10240,10243); INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`SourceId`,`ElseGroup`,`ConditionTypeOrReference`,`ConditionTarget`,`ConditionValue1`,`ConditionValue2`,`ConditionValue3`,`NegativeCondition`,`ErrorTextId`,`ScriptName`,`Comment`) VALUES (15,9406,0,0,0,8,0,11580,0,0,0,0,'','Show gossip option only if player has quest'), (15,9352,0,0,0,8,0,11732,0,0,0,0,'','Show gossip option only if player has quest'), (15,9354,0,0,0,8,0,11734,0,0,0,0,'','Show gossip option only if player has quest'), (15,9384,0,0,0,8,0,11735,0,0,0,0,'','Show gossip option only if player has quest'), (15,9385,0,0,0,8,0,11736,0,0,0,0,'','Show gossip option only if player has quest'), (15,9386,0,0,0,8,0,11737,0,0,0,0,'','Show gossip option only if player has quest'), (15,9387,0,0,0,8,0,11738,0,0,0,0,'','Show gossip option only if player has quest'), (15,9388,0,0,0,8,0,11739,0,0,0,0,'','Show gossip option only if player has quest'), (15,9389,0,0,0,8,0,11740,0,0,0,0,'','Show gossip option only if player has quest'), (15,9390,0,0,0,8,0,11741,0,0,0,0,'','Show gossip option only if player has quest'), (15,9391,0,0,0,8,0,11742,0,0,0,0,'','Show gossip option only if player has quest'), (15,9392,0,0,0,8,0,11743,0,0,0,0,'','Show gossip option only if player has quest'), (15,9393,0,0,0,8,0,11744,0,0,0,0,'','Show gossip option only if player has quest'), (15,9394,0,0,0,8,0,11745,0,0,0,0,'','Show gossip option only if player has quest'), (15,9395,0,0,0,8,0,11746,0,0,0,0,'','Show gossip option only if player has quest'), (15,9396,0,0,0,8,0,11747,0,0,0,0,'','Show gossip option only if player has quest'), (15,9397,0,0,0,8,0,11748,0,0,0,0,'','Show gossip option only if player has quest'), (15,9398,0,0,0,8,0,11749,0,0,0,0,'','Show gossip option only if player has quest'), (15,9399,0,0,0,8,0,11750,0,0,0,0,'','Show gossip option only if player has quest'), (15,9400,0,0,0,8,0,11751,0,0,0,0,'','Show gossip option only if player has quest'), (15,9401,0,0,0,8,0,11752,0,0,0,0,'','Show gossip option only if player has quest'), (15,9402,0,0,0,8,0,11753,0,0,0,0,'','Show gossip option only if player has quest'), (15,9403,0,0,0,8,0,11754,0,0,0,0,'','Show gossip option only if player has quest'), (15,9404,0,0,0,8,0,11755,0,0,0,0,'','Show gossip option only if player has quest'), (15,9405,0,0,0,8,0,11756,0,0,0,0,'','Show gossip option only if player has quest'), (15,9407,0,0,0,8,0,11757,0,0,0,0,'','Show gossip option only if player has quest'), (15,9408,0,0,0,8,0,11758,0,0,0,0,'','Show gossip option only if player has quest'), (15,9409,0,0,0,8,0,11759,0,0,0,0,'','Show gossip option only if player has quest'), (15,9410,0,0,0,8,0,11760,0,0,0,0,'','Show gossip option only if player has quest'), (15,9411,0,0,0,8,0,11761,0,0,0,0,'','Show gossip option only if player has quest'), (15,9412,0,0,0,8,0,11762,0,0,0,0,'','Show gossip option only if player has quest'), (15,9413,0,0,0,8,0,11763,0,0,0,0,'','Show gossip option only if player has quest'), (15,10227,0,0,0,8,0,13440,0,0,0,0,'','Show gossip option only if player has quest'), (15,10230,0,0,0,8,0,13442,0,0,0,0,'','Show gossip option only if player has quest'), (15,10233,0,0,0,8,0,13443,0,0,0,0,'','Show gossip option only if player has quest'), (15,10234,0,0,0,8,0,13444,0,0,0,0,'','Show gossip option only if player has quest'), (15,10237,0,0,0,8,0,13445,0,0,0,0,'','Show gossip option only if player has quest'), (15,10238,0,0,0,8,0,13446,0,0,0,0,'','Show gossip option only if player has quest'), (15,10240,0,0,0,8,0,13447,0,0,0,0,'','Show gossip option only if player has quest'), (15,10243,0,0,0,8,0,13449,0,0,0,0,'','Show gossip option only if player has quest'); -- Fix required side for Horde quest UPDATE `quest_template` SET `RequiredRaces`=690 WHERE `Id` IN (11580,11732,11734,11735,11736,11737,11738,11739,11740,11741,11742,11743,11744,11745,11746,11747,11748,11749,11750,11751,11752,11753,11754,11755,11756,11757,11758,11759,11760,11761,11762,11763,13440,13442,13443,13444,13445,13446,13447,13449); -- Fix Faction for Alliance bonfires UPDATE `gameobject_template` SET `faction`=1735 WHERE `entry` IN (187564,187914,187916,187917); UPDATE `gameobject_template` SET `faction`=1735 WHERE `entry` BETWEEN 187919 AND 187946; UPDATE `gameobject_template` SET `faction`=1735 WHERE `entry` IN (194032,194035,194036,194038,194040,194044,194045,194049);
{ "pile_set_name": "Github" }
@CHARSET "UTF-8"; /** ################ UI Styles #################### **/ html,body{ padding:0px; margin:0px; overflow: hidden; -moz-user-select:none; -webkit-user-select:none; -ms-user-select:none; -khtml-user-select:none; user-select:none; } ::-webkit-scrollbar { width: 9px; height: 9px; background: white; border-left: 0px solid #e8e8e8; } ::-webkit-scrollbar-thumb { border-width: 1px; border-style: solid; border-color: #fff; border-radius: 6px; background: #c9c9c9; } ::-webkit-scrollbar-thumb:hover { background: #b5b5b5; } #designer_header{ background-color: #F7F7F7; } #designer_header .row{ position: relative; margin: 0px 20px 0px 30px; } #bar_return{ position: absolute; left: 5px; display: none; } .btn_back{ height: 20px; width: 20px; position: absolute; left: 2px; top: 10px; padding: 5px; cursor: pointer; display: block; } .btn_back .ico, #bar_return .ico{ display: block; } .btn_back:hover{ background-color: #eee; } #title_container{ display: inline-block; } .diagram_title{ display: inline-block; font-size: 20px; cursor: pointer; padding: 0px 10px; line-height: 30px; height: 30px; margin-top: 10px; } .diagram_title:hover{ background-color: #eee; } .diagram_title.readonly{ cursor: default; } .diagram_title.readonly:hover{ background-color: transparent; } #title_container input{ border: 1px solid #D9D9D9; border-top: 1px solid silver; padding: 4px 10px; height: 20px; line-height: 20px; width: 300px; margin-top: 10px; border-radius: 3px; } .input_text{ border: 1px solid #D9D9D9; border-top: 1px solid silver; padding: 3px 5px; height: 18px; line-height: 18px; border-radius: 2px; } .input_select{ border: 1px solid #D9D9D9; border-top: 1px solid silver; padding: 3px 2px 3px 0px; height: 26px; line-height: 26px; border-radius: 2px; outline:none; } #designer_header{ position: relative; } #designer_header .row2{ height: 30px; line-height: 30px; } #menu_bar{ display: inline-block; float: left; } #saving_tip{ display: inline-block; float: left; margin-left: 20px; line-height: 28px; color: #777; } #menu_bar li{ float: left; line-height: 28px; padding: 0px 10px; cursor: default; } #menu_bar li:hover{ background-color: #eee; } #menu_bar li.readonly:hover{ background-color: transparent; } .titlebar{ position: relative; } .toolbar{ position: relative; padding-left: 35px; background-color: #f3f3f3; border-top: 1px solid #cbcccc; height: 36px; font-size: 12px; min-width: 840px; -webkit-box-shadow: inset 0 1px 0 0 #fff; -moz-box-shadow: inset 0 1px 0 0 #fff; box-shadow: inset 0 1px 0 0 #fff; background-color: #f5f5f5; background-image: -webkit-linear-gradient(top,#f5f5f5,#eee); background-image: -moz-linear-gradient(top,#f5f5f5,#eee); background-image: -ms-linear-gradient(top,#f5f5f5,#eee); background-image: -o-linear-gradient(top,#f5f5f5,#eee); background-image: linear-gradient(top,#f5f5f5,#eee); border-bottom: 1px solid #aaaaaa; } .toolbar_right{ position: absolute; right: 20px; height: 36px; } .toolbar .toolbar_button, .toolbar .spinner{ float: left; margin-top: 5px; } .toolbar_devider{ float: left; border-left: 1px solid #D2D2D2; height: 36px; margin: 0px 3px 0px 3px; border-right: 1px solid #FAFAFA; } .toolbar_small_devider{ float: left; width: 1px; height: 20px; background-color: #D2D2D2; margin: 8px 3px 0px 3px; } .ico{ background: url(./images/sprite.png?9) no-repeat; height: 20px; width: 20px; } .disabled .ico{ background-image: url(./images/sprite_disabled.png?8); } .ico.undo{ background-position: 0px -20px; } .ico.redo{ background-position: -20px 0px; } .ico.brush{ background-position: -20px -20px; } .ico.bold{ background-position: -20px -40px; } .ico.italic{ background-position: 0px -60px; } .ico.underline{ background-position: -20px -60px; } .ico.fontcolor{ background-position: 0px -80px; } .ico.alignleft{ background-position: -20px -80px; } .ico.aligncenter{ background-position: 0px -100px; } .ico.alignright{ background-position: -20px -100px; } .ico.aligntop{ background-position: 0px -120px; } .ico.alignmiddle{ background-position: -20px -120px; } .ico.alignbottom{ background-position: 0px -140px; } .ico.fillcolor{ background-position: -20px -140px; } .ico.linecolor{ background-position: 0px -160px; } .ico.linewidth{ background-position: -20px -160px; } .ico.linedash{ background-position: 0px -180px; } .ico.linestyle{ width: 50px; height: 2px; } .ico.linesolid{ background-position: 0px -202px; } .ico.linedashed{ background-position: 0px -215px; } .ico.linedot{ background-position: 0px -208px; } .ico.linedashdot{ background-position: 0px -222px; } .ico.linkertype_broken{ background-position: -20px -180px; } .ico.linkertype_curve{ background-position: -40px -160px; } .ico.linkertype_normal{ background-position: -40px -180px; } .ico.transparent{ background-position: 0px -645px; position:relative !important; cursor:pointer; margin-top:4px !important; border:1px solid #ccc; left:0px !important; top:0px !important; width:16px !important; height:16px !important; } .ico.transparent:hover{ border:1px solid #aaa; } .ico_arrow{ width: 26px; height: 10px; } .ico.larrow_none{ background-position: 0px -329px; } .larrow_solidarrow{ background-position: 0px -228px; } .larrow_dashedarrow{ background-position: 0px -240px; } .larrow_normal{ background-position: 0px -254px; } .larrow_soliddiamond{ background-position: 0px -266px; } .larrow_dasheddiamond{ background-position: 0px -279px; } .larrow_solidcircle{ background-position: 0px -293px; } .larrow_dashedcircle{ background-position: 0px -305px; } .larrow_cross{ background-position: 0px -319px; } .ico.rarrow_none{ background-position: -26px -329px; } .rarrow_solidarrow{ background-position: -26px -228px; } .rarrow_dashedarrow{ background-position: -26px -240px; } .rarrow_normal{ background-position: -26px -254px; } .rarrow_soliddiamond{ background-position: -26px -266px; } .rarrow_dasheddiamond{ background-position: -26px -279px; } .rarrow_solidcircle{ background-position: -26px -293px; } .rarrow_dashedcircle{ background-position: -26px -305px; } .rarrow_cross{ background-position: -26px -319px; } .ico_lock{ background-position: -40px -140px; } .ico_unlock{ background-position: -40px -120px; } .ico_link{ background-position: -20px -420px; } .ico_selected{ background-position: -40px -100px; } .ico_accordion{ width: 8px; height: 8px; background-position: -40px -47px; } .ico_dock_nav{ background-position: -40px 0px; } .ico_dock_styles{ background-position: 1px -340px; } .ico_dock_metric{ background-position: 0px -360px; } .ico_dock_page{ background-position: -20px -360px; } .ico_dock_attribute{ background-position: -39px -360px; } .ico_attr_delete{ background-position: 0px -380px; } .ico_attr_delete:hover{ background-position: -20px -380px; } .ico_plus{ background-position: -40px -380px; } .gradient{ background-position: 0px -400px; } .ico_img{ background-position: -20px -400px; } .ico_front{ background-position: -40px -400px; } .ico_back{ background-position: 0px -420px; } .ico_goback{ background-position: -40px -420px; } .ico_chat{ background-position: 0px -440px; margin: 4px 2px; } .ico_history{ background-position: -20px -440px; } .ico_comment{ background-position: -40px -620px; } .ico_play{ background-position: -40px -440px; } .ico_pause{ background-position: 0px -460px; } .ico_playing{ background-position: -20px -460px; position: absolute; top: 10px; left: -5px; } .ico_restore{ background-position: -40px -460px; } .ico.cut{ background-position: 0px -480px; } .ico.copy{ background-position: -20px -480px; } .ico.paste{ background-position: -40px -480px; } .ico.remove{ background-position: 0px -500px; } .ico.zoomin{ background-position: -20px -500px; } .ico.zoomout{ background-position: -40px -500px; } .ico.text{ background-position: 0px -520px; } .ico.gridsize{ background-position: -20px -520px; } .ico.padding{ background-position: -40px -520px; } .ico.edittext{ background-position: 0px -540px; } .ico.useradd{ background-position: -20px -540px; } .ico.chrome{ background-position: -40px -540px; } .ico.weibo{ background-position: 0px -560px; } .ico.twitter{ background-position: -20px -560px; } .ico_header_share{ background-position: 0px -580px; } .ico_remove_red{ background-position: -20px -580px; } .ico_fullscreen{ background-position: -40px -580px; } .ico_presentation{ background-position: 0px -600px; } .ico.firefox{ background-position: -20px -600px; } .ico.collapse{ background-position: -40px -600px; } .ico.expand{ background-position: 0px -620px; } .ico.theme{ background-position: -20px -620px; } /** ################ Control Styles #################### **/ .toolbar_button{ height: 24px; line-height: 24px; min-width: 20px; padding: 0; text-align: center; border: 1px solid transparent; -webkit-border-radius: 2px; -moz-border-radius: 2px; -ms-border-radius: 2px; border-radius: 2px; position: relative; cursor: default; } .toolbar_button.active, .toolbar_button:hover{ border-color: #c6c6c6; -webkit-box-shadow: 0px 1px 1px rgba(0,0,0,.1); -moz-box-shadow: 0px 1px 1px rgba(0,0,0,.1); -ms-box-shadow: 0px 1px 1px rgba(0,0,0,.1); box-shadow: 0px 1px 1px rgba(0,0,0,.1); background-color: #F8F8F8; background-image: -webkit-linear-gradient(top, #f8f8f8, #f1f1f1); background-image: -moz-linear-gradient(top, #f8f8f8, #f1f1f1); background-image: -ms-linear-gradient(top, #f8f8f8, #f1f1f1); background-image: linear-gradient(top, #f8f8f8, #f1f1f1); } .toolbar_button.active:hover{ background-color: #f3f3f3; background-image: -webkit-linear-gradient(top, #f8f8f8, #e8e8e8); background-image: -moz-linear-gradient(top, #f8f8f8, #e8e8e8); background-image: -ms-linear-gradient(top, #f8f8f8, #e8e8e8); background-image: linear-gradient(top, #f8f8f8, #e8e8e8); } .spinner{ height: 24px; border: 1px solid transparent; -webkit-border-radius: 2px; -moz-border-radius: 2px; -ms-border-radius: 2px; border-radius: 2px; position: relative; } .spinner.active, .spinner:hover, .spinner.active:hover{ border-color: #c6c6c6; -webkit-box-shadow: 0px 1px 1px rgba(0,0,0,.1); -moz-box-shadow: 0px 1px 1px rgba(0,0,0,.1); -ms-box-shadow: 0px 1px 1px rgba(0,0,0,.1); box-shadow: 0px 1px 1px rgba(0,0,0,.1); background: #FFF; } .spinner_input{ margin-right: 15px; } .spinner input{ margin: 0px; border: 0px; height: 24px; line-height: 16px; padding: 0px; text-align: right; background: transparent; width: 100%; } .spinner .buttons{ position: absolute; right: 0px; top: 0px; height: 24px; width: 12px; border-left: 1px solid transparent; } .spinner.active .buttons, .spinner:hover .buttons{ border-color: #c6c6c6; background-color: #F8F8F8; background-image: -webkit-linear-gradient(top, #f8f8f8, #f1f1f1); background-image: -moz-linear-gradient(top, #f8f8f8, #f1f1f1); background-image: -ms-linear-gradient(top, #f8f8f8, #f1f1f1); background-image: linear-gradient(top, #f8f8f8, #f1f1f1); } .spinner .buttons div{ background-image: url(./images/sprite.png?9); height: 12px; width: 12px; } .spinner_up{ background-position: -44px -343px; } .spinner_down{ background-position: -3px -46px; } .spinner .buttons div:hover{ background-color: #d2d2d2; } .spinner.disabled:hover{ border-color: transparent; -webkit-box-shadow: none; -moz-box-shadow: none; -ms-box-shadow: none; box-shadow: none; background: transparent; } .spinner.active.disabled, .spinner.active.disabled:hover{ border-color: #d6d6d6; -webkit-box-shadow: none; -moz-box-shadow: none; -ms-box-shadow: none; box-shadow: none; background: #FFF; } .spinner.disabled input{ color: #b3b3b3; } .spinner.active.disabled .buttons, .spinner.active.disabled:hover .buttons{ border-color: #c6c6c6; background-color: #fcfcfc; background-image: -webkit-linear-gradient(top, #fcfcfc, #f5f5f5); background-image: -moz-linear-gradient(top, #fcfcfc, #f5f5f5); background-image: -ms-linear-gradient(top, #fcfcfc, #f5f5f5); background-image: linear-gradient(top, #fcfcfc, #f5f5f5); } .spinner.disabled:hover .buttons{ border-color: transparent; background-color: transparent; background-image: none; } .spinner.disabled .buttons div:hover{ background-color: transparent; } .spinner.disabled .buttons div{ background-image: url(./images/sprite_disabled.png?8); } .toolbar_button .ico{ margin: 2px; } .drop_button .ico{ margin-right: 0px; } .drop_button .ico_arrow{ margin-top: 7px; margin-left: 4px; } .drop_button{ padding-right: 13px; } .toolbar_button .ico_dropdown{ position: absolute; right: 0px; top: 2px; background-position: -3px -40px; height: 20px; width: 13px; margin: 0px; } .btn_color{ height: 3px; width: 20px; position: absolute; left: 2px; bottom: 2px; background-color: #333; } .text_content{ margin: 0px 13px 0px 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; height: 24px; line-height: 24px; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); text-align: left; cursor: default; } .toolbar_button.disabled{ color: #b3b3b3; } .toolbar_button.disabled:hover{ border-color: transparent; -webkit-box-shadow: none; -moz-box-shadow: none; -ms-box-shadow: none; box-shadow: none; background-color: transparent; background-image: none; } .toolbar_button.active.disabled, .toolbar_button.active.disabled:hover{ border-color: #d6d6d6; -webkit-box-shadow: none; -moz-box-shadow: none; -ms-box-shadow: none; box-shadow: none; background-color: #fcfcfc; background-image: -webkit-linear-gradient(top, #fcfcfc, #f5f5f5); background-image: -moz-linear-gradient(top, #fcfcfc, #f5f5f5); background-image: -ms-linear-gradient(top, #fcfcfc, #f5f5f5); background-image: linear-gradient(top, #fcfcfc, #f5f5f5); } .toolbar_button.selected, .toolbar_button.selected:hover{ -webkit-box-shadow: inset 0 1px 2px rgba(0,0,0,.1); -moz-box-shadow: inset 0 1px 2px rgba(0,0,0,.1); box-shadow: inset 0 1px 2px rgba(0,0,0,.1); background-color: #eee; background-image: -webkit-linear-gradient(top,#eee,#e0e0e0); background-image: -moz-linear-gradient(top,#eee,#e0e0e0); background-image: -ms-linear-gradient(top,#eee,#e0e0e0); background-image: -o-linear-gradient(top,#eee,#e0e0e0); background-image: linear-gradient(top,#eee,#e0e0e0); border-color: #ccc; } .toolbar_button.disabled .btn_color{ opacity: 0.3; filter:alpha(opacity=30); } #font_align_list{ padding: 4px; width: 78px; height: 52px; } #font_align_list li{ float: left; width:20px; height: 20px; padding: 3px; border-radius: 2px; } #line_style_list li{ padding-top: 12px; padding-bottom: 12px; } #line_type_list{ padding: 4px; } #line_type_list li{ width:20px; height: 20px; padding: 3px; border-radius: 2px; } #beginarrow_list li, #endarrow_list li{ padding: 8px 30px; } .color_picker{ padding: 0px 10px 10px; z-index: 1; } .color_items{ border-color: #000; border-width: 0 1px 1px 0; border-style: solid; width: 156px; margin-top: 10px; } .color_btn{ line-height:20px; margin-top:5px; } .color_extend{ margin-top: 10px; width: 156px; position: relative; } .color_extend .toolbar_button{ display: inline-block; padding: 0px 2px; } .color_transparent{ display:inline-block; float:left; margin-right:8px; } .color_hex{ display:inline-block; width:76px; height:18px; line-height:18px; color:#666; float:left; clear:right; margin-left:0px; position:relative; margin-top:4px; } .color_hex input{ position:absolute; width:54px; height:16px; line-height:16px; color:#666; margin:0px; padding:0px 2px; font-size:12px; top:0px; left:10px; border:1px solid #ccc; border-radius:3px; } #bar_fill_img{ margin-left: 5px; } #bar_fill_more{ position: absolute; right: 0px; top: 0px; padding: 0px 10px; } .color_items div{ height: 12px; width: 12px; float: left; border: #000 solid 1px; border-width: 1px 0 0 1px; } .color_items div:hover{ position: relative; border: #FFF solid 2px; margin: -1px -2px -2px -1px; } .color_items .selected{ position: relative; border: #f7ddaa solid 2px; margin: -1px -2px -2px -1px; } .color_items .clear{ border: 0px; float: none; height: 0px; width: 100%; clear: both; } .options_menu{ display: none; } .options_menu li{ width: 180px; position: relative; color: #333; text-shadow: none; padding: 0px 30px; } .options_menu.noico li{ padding: 0px 20px; } .options_menu li .ico{ position: absolute; top: 3px; left: 5px; } .options_menu li .extend{ position: absolute; right: 10px; top: 0px; color: #777; text-align: right; } .options_menu li .ex_arrow{ color: #888; } .options_menu li:hover .extend{ /* color: #a9ddf3; */ } .options_menu li:hover .ex_arrow{ color: #444; } .options_menu li.disabled:hover .extend{ color: #ccc; } .options_menu li.disabled .extend{ color: #ccc; } .options_menu li.disabled .ex_arrow{ color: #C9C9C9; } .options_menu li.disabled:hover .ex_arrow{ color: #C9C9C9; } .options_menu li:hover .extend_menu{ display: block; } .options_menu li.disabled:hover .extend_menu{ display: none; } .extend_menu{ position: absolute; border-top-left-radius: 0px; border-left: 1px solid #999; top: -5px; right: -162px; display: none; } .extend_menu li{ width: 120px; padding: 0px 20px; } .extend_menu.menu_ico li{ width: 100px; padding: 0px 30px; } .extend_menu .list_text{ color: #999; } .extend_menu .list_text:hover{ color: #999; background-color: transparent; background-image: none; filter: none; text-shadow:none; } .options_menu .ico_selected{ position: absolute; left: 2px; top: 1px; } .dialog{ background-color: #fff; position: absolute; border: 1px solid #acacac; -webkit-box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2); -moz-box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2); box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2); display: none; z-index: 1; } .dlg_close{ position: absolute; top: 15px; right: 10px; background-position: 0px -380px; cursor: pointer; } .dlg_close:hover{ background-position: -20px -380px; } .dlg_mask{ background: #fff; opacity: 0.60; filter: alpha(opacity=60); position: absolute; top: 0px; left: 0px; width: 3000px; height: 3000px; } .dialog_header{ height: 50px; line-height: 50px; font-size: 20px; border-bottom: 1px solid #e5e5e5; padding: 0px 30px 0px 20px; cursor: default; } .dialog_content{ padding: 15px 20px; } .dialog_buttons{ padding: 0px 20px 20px; text-align: right; } .export-list li{ padding: 10px 0px; border-bottom: 1px solid #EFEFEF; font-weight: bold; } .export_des{ font-weight: normal; color: #555; margin-left: 10px; } .mark_content{ display:none; max-width: 280px; padding-bottom: 15px; } .mark_content .dialog_header{ height: 30px; line-height: 30px; padding: 10px 30px 5px 13px; } .mark_content .dlg_close{ top: 12px; } .mark_content ._content{ margin: 5px 10px 5px 10px; line-height: 20px; } .mark_content .arr-icon{ position: absolute; width: 12px; height: 12px; } .mark_content .mark_next{ text-align: right; padding-right: 15px; } .mark_content .mark_next span{ cursor: pointer; height: 24px; line-height: 24px; padding: 0px 5px; } .mark_content p{ margin: 0px; padding: 4px 0px; } .arr-icon .arr-border{ position: absolute; width: 0; height: 0; left: 0; border-width: 10px 12px 10px 0px; border-color: transparent #b4b4b4 transparent transparent; border-style: dashed solid dashed none; overflow: hidden; } .arr-icon .inner-arr{ position: absolute; width: 0; height: 0; left: 1px; border-width: 10px 12px 10px 0px; border-color: transparent #fff transparent transparent; border-style: dashed solid dashed none; overflow: hidden; } .arr-icon.left{ top: 45%; left: -12px; } .arr-icon.top{ top: -12px; left: 45%; -webkit-transform: rotate(90deg); -moz-transform: rotate(90deg); -ms-transform: rotate(90deg); -o-transform: rotate(90deg); transform: rotate(90deg); } .arr-icon.right{ right: -12px; top: 45%; -webkit-transform: rotate(180deg); -moz-transform: rotate(180deg); -ms-transform: rotate(180deg); -o-transform: rotate(180deg); transform: rotate(180deg); } .non_support_mask{ text-shadow: 0 1px rgba(255, 255, 255, .9); background: #F2F2F2; color: #666; font-size: .75em; font-family: NewsGothic,"News Gothic MT","Lucida Sans","Lucida Grande",sans-serif !important; } .no_sup_mask_main{ position: relative; margin: 0px auto; padding: 0 25px; max-width: 700px; text-align: center; } .no_sup_mask_main h1{ margin: 50px 0px 30px; display: block; font-size: 64px; font-weight: 100; } .no_sup_mask_main h1 del{ color: #999; text-decoration: line-through; } .no_sup_mask_main p{ margin: 20px 0px; font-size: 14px; line-height: 26px; } .bs_logo_list{ height: 80px; } .bs_logo_list a{ display: inline-block; width: 80px; height: 80px; overflow: hidden; margin: 0px 5px; /*background: url("./images/support_browsers_list.png") 0px 0px no-repeat;*/ } .non_support_mask .no_sup_mask_main .bs_logo_list a.sup_chrome{ background-position: 0px 0px; } .non_support_mask .no_sup_mask_main .bs_logo_list a.sup_firefox{ background-position: -80px 0px; } .non_support_mask .no_sup_mask_main .bs_logo_list a.sup_ie{ background-position: -160px 0px; } .non_support_mask .no_sup_mask_main .bs_logo_list a.sup_safari{ background-position: 0px -80px; } .non_support_mask .no_sup_mask_main .bs_logo_list a.sup_opera{ background-position: -80px -80px; } .non_support_mask .no_sup_footer{ position: fixed; left: 0; right: 0; bottom: 0; background-color: #272727; padding: 25px 25px 20px; } .non_support_mask .no_sup_footer .processon_logo{ display: inline-block; width: 120px; height: 26px; background: url("/images/default/logo/logo_m.png") no-repeat; } /* Dock */ #dock{ display: none; position: absolute; right: 0px; top: 0px; border-width: 0px 0px 1px 1px; border-color: #aaa; border-style: solid; background: #f5f5f5; border-bottom-left-radius: 3px; -webkit-box-shadow: 0px 1px 1px rgba(0,0,0,.1); -moz-box-shadow: 0px 1px 1px rgba(0,0,0,.1); -ms-box-shadow: 0px 1px 1px rgba(0,0,0,.1); box-shadow: 0px 1px 1px rgba(0,0,0,.1); z-index: 1; } .dock_header{ background: #5c5c5c; background-image: -webkit-linear-gradient(top,#5c5c5c,#3e3e3e); background-image: -moz-linear-gradient(top,#5c5c5c,#3e3e3e); background-image: -ms-linear-gradient(top,#5c5c5c,#3e3e3e); background-image: -o-linear-gradient(top,#5c5c5c,#3e3e3e); background-image: linear-gradient(top,#5c5c5c,#3e3e3e); height: 8px; border-top: 1px solid #646464; border-bottom: 1px solid #000; width: 36px; } .dock_buttons{ border-top: 1px solid #f9f9f9; padding: 0px 0px 10px; } .dock_buttons .ico{ opacity: 1; } #dock .toolbar_button{ margin: 5px 5px 0px 5px; } .dock_history_remove{ float:right;margin-top:-10px; } .dock_history_remove_con{ position:absolute;width:100%; height:100%;top:0px;left:0px; background:#fff; } .dock_history_remove_div{ padding:5px 8px; } .dock_history_remove_div span{ padding: 0px 10px 0px 10px; margin-top:8px; } .dock_view{ background: #f5f5f5; border: 1px solid #999; -webkit-box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.33); -moz-box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.33); box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.33); z-index: 0; position: absolute; top: 10px; display: none; width: 220px; } .dock_view_header{ height: 18px; line-height: 18px; border-top: #bfbfbf solid 1px; border-bottom: #666666 solid 1px; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.33); background-color: #a6a6a6; background-image: -webkit-linear-gradient(top,#b2b2b2,#9b9b9b); background-image: -moz-linear-gradient(top,#b2b2b2,#9b9b9b); background-image: -ms-linear-gradient(top,#b2b2b2,#9b9b9b); background-image: -o-linear-gradient(top,#b2b2b2,#9b9b9b); background-image: linear-gradient(top,#b2b2b2,#9b9b9b); padding: 0px 10px; position: relative; } .ico_dock_collapse{ width: 12px; height: 12px; position: absolute; right: 3px; top: 2px; background-position: -43px -24px; cursor: pointer; border-radius: 2px; border: 1px solid transparent; } .ico_dock_collapse:hover{ background-color: #878787; border-color: #737373; } .dock_content{ padding: 5px 10px 10px; position: relative; } .dock_content_title{ font-weight: bold; margin: 5px 0px; } .dock_devider{ height: 0px; border-width: 1px 0px; border-style: solid; border-top-color: #c4c4c4; border-bottom-color: #fff; margin-top: 10px; clear: both; } .dock_page_ori_list{ display: inline-block; line-height: 26px; } .fill_detail{ margin-top: 10px; display: none; } .picker_btn{ position: relative; border: 2px solid #d2d2d2; display: inline-block; border-radius: 2px; } .picker_btn.disabled{ border-color: #dcdcdc; } .disabled .ico_colordrop{ background-color: #e5e5e5; } .disabled .picker_btn_holder{ opacity: 0.3; filter:alpha(opacity=30); } .picker_btn_holder{ width: 20px; height: 20px; background: white; border: 1px solid #f0f0f0; } .ico_colordrop{ position: absolute; right: 0px; bottom: 0px; background-position: -5px -46px; height: 9px; width: 9px; background-color: #d2d2d2; border-top: 1px solid #f0f0f0; border-left: 1px solid #e6e6e6; border-top-left-radius: 1px; } .gradient_swap{ background-position: -20px -340px; display: inline-block; } .btn_normal{ display: inline-block; margin-top: 0px; } .btn_inline{ float: left; } #gradient_swap{ margin: 0px 5px 0px 5px; } .gradient_details{ margin-top: 10px; float: right; display: none; } #dock_line_style .linestyle{ margin-top: 12px; margin-left: 5px; } .dock_label{ display: inline-block; line-height: 26px; float: left; margin-right:5px; min-width: 26px; text-align: right; } .dock_page_menu{ z-index: 1; } .attr_add{ padding: 5px 10px 0px; } .attr_add_items{ display: none; } .attr_list{ overflow-y: auto; overflow-x: hidden; } .attr_none{ padding: 30px 0px; text-align: center; } .attr_item{ padding-left: 10px; margin-top: 1px; position: relative; } .attr_item:hover{ background-color: #ebebeb; } .attr_item .ico_attr_delete{ position: absolute; right: 5px; top: 4px; z-index: 1; cursor: pointer; display: none; } .attr_item:hover .ico_attr_delete{ display: block; } .attr_name{ width: 100px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; height: 28px; line-height: 28px; float: left; } .attr_type{ width: 60px; margin-left: 10px; height: 28px; line-height: 28px; float: left; } .attr_value{ width: 130px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-left: 10px; height: 28px; line-height: 28px; float: left; } .attr_editing{ background-color: #ebebeb; } .attr_item.attr_editing .ico_attr_delete{ display: none; } .attr_editing .input_text, .attr_editing .input_select{ margin-top: 1px; } .attr_edit_display{ padding-top: 5px; } .attr_edit_btns{ clear: both; padding: 5px 0px; border-top: 1px solid #ccc; margin-top: 5px; } .attr_edit_btns div{ display: inline-block; width: 70px; } .attr_display_options .opt_area{ float: left; width: 110px; padding-top: 5px; } .attr_display_options .location_area{ margin-left: 10px; width: 200px; } .location_area .dock_label{ width: 66px; text-align: left; margin-top: 5px; } .location_area .toolbar_button{ width: 125px; margin-top: 5px; } #attr_display_icon img{ margin-top: 2px; } #attr_icon_list li{ width: 120px; height: 245px; /*background: url(./images/data-attr-icons.png) no-repeat;*/ padding: 0px; margin: 0px 5px; } #attr_icon_list div{ float: left; width: 22px; height: 21px; border: 1px solid transparent; } #attr_icon_list .attr_icon_item:hover{ border-color: #6EB1EB; } .attr_location_menu li{ position: relative; padding: 0px 10px 0px 30px; width: 85px; } .location_content{ position: relative; margin: 0px 13px 0px 5px; padding-left: 23px; } .attr_location_menu li div, .location_content div{ position: absolute; width: 11px; height: 11px; left: 10px; top: 6px; border: 1px solid #333; background: white; } .location_content div{ left: 5px; } .attr_location_menu span, .location_content span{ display: block; position: absolute; width: 5px; height: 5px; background: #dd4b39; top: 3px; left: 3px; } .image_sources{ float: left; padding: 15px 0px; } .image_sources li{ height: 30px; line-height: 30px; width: 160px; padding-left: 16px; border-left: 4px solid transparent; cursor: pointer; position: relative; } .image_sources li.active{ border-color: #dd4b39; color: #cf4236; font-weight: bold; } .image_sources li:hover{ background: #eee; } .image_content{ float: left; border-left: 1px solid #e5e5e5; } .image_list{ border-bottom: 1px solid #e5e5e5; width: 600px; padding: 15px 20px; overflow-y: auto; } #btn_img_upload{ display: inline-block; position: relative; text-align: left; padding-right: 10px; float: left; } #btn_img_upload div{ float: left; margin: 2px 0px 0px 5px; background-position: -40px -380px; } #btn_img_upload input{ width: 100%; height: 26px; padding: 0px; margin: 0px; border: 0px; left: 0px; top: 0px; opacity: 0; filter:alpha(opacity=0); position: absolute; } #upload_img_res{ color: #cf4236; margin-left: 10px; line-height: 26px; } .image_btns{ height: 30px; padding: 15px 20px; } .image_btns div{ width: 60px; margin-right: 5px; } #set_image_text{ color: #555; } #set_image_text.errored{ color: #cf4236; } .image_items{ padding: 15px 0px; } .image_item{ float: left; width: 140px; height: 140px; border-radius: 4px; position: relative; margin-right: 5px; } .image_item .image_box{ width: 140px; height: 140px; text-align: center; display: table-cell; vertical-align: middle; } .image_item:hover{ background-color: #F3F3F3; box-shadow: inset 0 1px 3px 0 rgba(0, 0, 0, 0.1); } .image_item .drop_size{ background-color: #fff; border: 1px solid #dfe1e4; border-radius: 2px; padding: 3px 19px 3px 9px; font-size: 12px; line-height: 18px; position: absolute; right: 10px; bottom: 10px; display: none; cursor: pointer; } .drop_size .ico_accordion{ position: absolute; right: 9px; top: 8px; } .image_item:hover .drop_size{ display: block; } .image_item_selected .drop_size{ display: block; } .image_item .ico_remove_red{ position: absolute; right: -10px; top: -10px; cursor: pointer; } .image_items img{ max-width: 128px; max-height: 128px; vertical-align: middle; } .image_item_selected, .image_item_selected:hover{ background-color: #63ABF7; box-shadow: inset 0 2px 3px 0 rgba(0, 0, 0, 0.2); } #img_url_area{ padding: 20px 0px; text-align: center; } #img_url_area img{ max-width: 600px; } .img_url_loading{ display: none; } .img_url_loading_tip{ display: block; color:#666; margin-top: 80px; } .img_url_error{ color: #cf4236; margin-top: 80px; text-align: left; } .img_url_error ul{ margin: 10px 0px 0px 30px; list-style: disc; } .tip_content b{ color: #cf4236; } .img_gg_loading_tip{ color:#666; line-height: 40px; height: 40px; text-align: center; } .gg_img_more{ margin: 15px auto; } #history_versions{ overflow-y: auto; min-height: 140px; position: relative; } #history_versions li{ border-bottom: 1px solid #ddd; padding: 5px 10px; cursor: default; position: relative; } #history_versions li:hover{ background: #ebebeb; } .version_name{ color: #808080; } .version_name div, .history_remark{ padding: 2px 0px 0px; } #history_versions .selected, #history_versions .selected:hover{ background-color: #e6e6e6; } #history_versions .selected .version_time{ color: #d14836; font-weight: bold; } .remark_container a{ display: none; } #history_versions .selected .remark_container a{ display: inline-block; } #history_versions .selected.playing .remark_container a{ display: none; } .edit_container{ display: none; } .edit_container textarea{ width: 179px; height: 36px; } .edit_container a{ margin-top: 4px; } .history_bar{ padding: 10px 10px 0px; position: relative; } .comment_bar{ padding: 10px; height: 75px; } .history_bar .toolbar_button, .history_bar .spinner{ display: inline-block; } .history_bar .toolbar_button{ cursor: pointer; } .history_msg{ display: none; } #btn_history_restore{ position: absolute; right: 10px; } #area_history_add{ display: none; } #comment_container{ overflow: auto; } .comment_item_outer{ border-bottom: 1px solid #ddd; padding: 0px 10px 5px; cursor: pointer; position: relative; min-height: 40px; } .comment_item_inner{ padding: 0px; border-top: 1px solid #c1c1c1; position: relative; margin-top: 5px; } .comment_item_outer:hover{ background: #ebebeb; } .comment_item img{ width: 40px; height: 40px; border-radius: 50%; box-shadow: 0px 0px 3px rgba(0,0,0,0.3); position: absolute; top: 8px; } .comment_content_box{ margin-left: 45px; } .comment_item_inner img{ width: 30px; height: 30px; } .comment_item_inner .comment_content_box{ margin-left: 35px; } .comment_name{ font-weight: bold; padding: 5px 0px; } .comment_date{ padding-top: 5px; color: #666; } .comment_reply{ padding: 10px 0px 5px; display: none; border-top: 1px solid #c1c1c1; margin-top: 5px; } .comment_reply input{ width: 90%; } .comment_item.selected{ background: #e6e6e6; } .comment_item.selected .comment_reply{ display: block; } .comment_control{ line-height: 26px; margin-top: 5px; } .comment_control input{ vertical-align: middle; } .comment_control label{ cursor: pointer; } .comment_none{ line-height: 120px; text-align: center; } .comment_remove{ position: absolute; top: 5px; right: 10px; background-position: 0px -380px; cursor: pointer; display: none; } .comment_remove:hover{ background-position: -20px -380px; } .comment_item:hover .comment_remove{ display: block; } .shape_comment_ico{ /*background: url(./images/comments.png) no-repeat;*/ width: 24px; height: 24px; position: absolute; top: -5px; left: 20px; cursor: pointer; } /*****************************colla-add-dialog********************************/ .designer_button{ display: inline-block; line-height:30px; border: 0px; height:30px; padding:0px 10px; text-align: center; background-color: #2EB5E5; background-image: -moz-linear-gradient(top, #34C0E9, #29AAE1); background-image: -webkit-linear-gradient(top, #34C0E9, #29AAE1); background-image: -o-linear-gradient(top, #34C0E9, #29AAE1); background-image: -ms-linear-gradient(top, #34C0E9, #29AAE1); background-image: linear-gradient(top, #34C0E9, #29AAE1); filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#34c0e9', endColorstr='#29aae1',GradientType=0 ); color: white; cursor: pointer; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35); border-radius: 2px; -webkit-border-radius: 2px; -moz-border-radius: 2px; -o-border-radius: 2px; -webkit-box-shadow: 0px 1px 1px 0px rgba(0, 0, 0, 0.3); -moz-box-shadow: 0px 1px 1px 0px rgba(0, 0, 0, 0.3); box-shadow: 0px 1px 1px 0px rgba(0, 0, 0, 0.3); min-width: 50px; } .designer_button:hover{ background-color: #2EB5E5; background-image: -moz-linear-gradient(top, #34c0df, #29aad7); background-image: -webkit-linear-gradient(top, #34c0df, #29aad7); background-image: -o-linear-gradient(top, #34c0df, #29aad7); background-image: -ms-linear-gradient(top, #34c0df, #29aad7); background-image: linear-gradient(top, #34c0df, #29aad7); filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#34c0df', endColorstr='#29aad7',GradientType=0 ); text-decoration: none; } .designer_button.disabled, .designer_button.disabled:hover{ background-color: #48d4fd; background-image: -moz-linear-gradient(top, #48d4fd, #3dbeeb); background-image: -webkit-linear-gradient(top, #48d4fd, #3dbeeb); background-image: -o-linear-gradient(top, #48d4fd, #3dbeeb); background-image: -ms-linear-gradient(top, #48d4fd, #3dbeeb); background-image: linear-gradient(top, #48d4fd, #3dbeeb); filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#48d4fd', endColorstr='#3dbeeb',GradientType=0 ); box-shadow: none; text-shadow: none; cursor: default; color: #e6e6e6; } .designer_button.normal{ text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); color: #333; line-height:28px; height:28px; border: 1px solid #c6c6c6; background-color: #F8F8F8; min-width: 48px; background-image: -webkit-linear-gradient(top, #f8f8f8, #f1f1f1); background-image: -moz-linear-gradient(top, #f8f8f8, #f1f1f1); background-image: -ms-linear-gradient(top, #f8f8f8, #f1f1f1); background-image: -o-linear-gradient(top, #f8f8f8, #f1f1f1); background-image: linear-gradient(top, #f8f8f8, #f1f1f1); filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f8f8f8', endColorstr='#f1f1f1',GradientType=0 ); -webkit-box-shadow: 0px 1px 1px rgba(0,0,0,.1); -moz-box-shadow: 0px 1px 1px rgba(0,0,0,.1); -ms-box-shadow: 0px 1px 1px rgba(0,0,0,.1); box-shadow: 0px 1px 1px rgba(0,0,0,.1); } .designer_button.normal:hover{ background-color: #f3f3f3; background-image: -webkit-linear-gradient(top, #f8f8f8, #e8e8e8); background-image: -moz-linear-gradient(top, #f8f8f8, #e8e8e8); background-image: -ms-linear-gradient(top, #f8f8f8, #e8e8e8); background-image: -o-linear-gradient(top, #f8f8f8, #e8e8e8); background-image: linear-gradient(top, #f8f8f8, #e8e8e8); filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f8f8f8', endColorstr='#e8e8e8',GradientType=0 ); } #colla_suggest_box .alert{ margin-top: 10px; } .colla_suggest li{ padding: 2px 0px 2px 5px; cursor: pointer; } .colla_suggest li:hover{ background-color: #eee; } .colla_suggest li.seled{ background-color: #63ABF7; color: white; } .colla_suggest img{ width: 25px; height: 25px; border-radius: 3px; vertical-align: middle; margin-right: 8px; } #colla_suggest_box .no_result{ line-height: 30px; margin: 10px auto 5px auto; height: 30px; text-align:center; } .colla_suggest{ max-height: 160px; overflow: auto; } .colla_suggest li.team_item{ line-height:25px; height:25px; padding: 2px 0px 2px 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .colla_suggest .team_member{ max-height:none; margin-left: 15px; display:none; background: url(/images/default/view_loading.gif) center center no-repeat; } .slider { margin:auto; height: 10px; border-radius: 6px; border: 1px solid #dcdcdc; background: #F4F4F4; width: 80%; text-align: center; cursor: pointer; margin-top: 5px; background: -webkit-gradient(linear,0 0,0 100%,from(#fdfdfd),to(#f2f2f2)); background: -moz-linear-gradient(top,#fdfdfd,#f2f2f2 100%); user-select: none; -webkit-user-select: none; position: relative; } .slider:hover { border-color: #c8c8c8; } .slider span { display: inline-block; width: 7px; height: 4px; background: url(../images/explore/arrows.png) no-repeat; margin-top: 3px; opacity: 0.8; position:absolute; left:50%; } .add_team_icon{ display:inline-block; background: url(../images/network/icons.png) no-repeat; position: relative; width: 8px; height: 8px; margin-top: 10px; left: 10px; background-position: -12px -205px; } .add_team_icon.unfold{ background-position: 0px -207px; } .colla_suggest li.team_item.active .add_team_icon{ background-position: 0px -207px; } .colla_suggest img,.colla_suggest span{ width: 30px; height: 30px; border-radius: 3px; -webkit-border-radius: 3px; -moz-border-radius: 3px; vertical-align: middle; margin-right: 5px; text-align: center; background: #f7b75d; display: inline-block; color: #fff; font-weight: 600; font-size: 14px; line-height:30px; } /***调整****/ ._update{ -webkit-transition: all .15s ease-in-out 0.05s; -o-transition: all .15s ease-in-out 0.05s; -moz-transition: all .15s ease-in-out 0.05s; transition: all .15s ease-in-out 0.05s; } .colla-tabs .colla-tab{ display:inline-block;margin-right:15px;color:#888; } .colla-tabs .colla-tab.active{ border-bottom: 2px solid #4386f5;color:#333;padding-bottom:10px; } /*colla-context-con loading-view2*/ .colla-context-con .loading-view2{ display:block;margin:0 auto;width:30px;font-size:20px;margin-top:70px;position: relative; } .colla-follow-more{ position: absolute; bottom: 0; left: 25%; line-height: 20px; display: block; text-align: center; font-size: 12px; color: #333; border: 1px solid #ddd; width: 50%; } .colla-context-con{ min-height:100px; max-height:170px;overflow:auto; } .colla-tab-content{ position: relative; display: none; padding-bottom: 25px; } .colla-tab-content:first-child{ display: block; } .colla-tab-content:after{ content: ''; display: block; height: 1px; clear: both; } .colla-context-con .colla-users-none{ text-align:center;margin-top:40px;color:#999;font-size:14px; } .colla-context-con .colla-users-none .icons{ font-size:50px;color:#888;margin-bottom:10px;display:block; } .colla-context-con .colla-team{ margin: 0px 0px 0px 0px;padding:3px 5px;position:relative;cursor:default; } .colla-context-con .colla-team:first-child{ margin: 8px 0px 0px 0px; } .colla-context-con .colla-team-user .colla-user{ float:none; margin:0; margin-bottom:2px; padding:2px; } .colla-context-con .colla-team-user > div{ margin-bottom:2px; cursor:pointer; padding: 5px 0px;padding-left:42px; } .colla-context-con .colla-team-user > div:hover{ background:#f3f4f5; } .colla-context-con .colla-team-user span:first-child{ width:28px;display:inline-block; } .colla-context-con .colla-team-user span img{ width:28px;vertical-align:-6px;border-radius: 3px 0px 0px 3px; } .colla-context-con .colla-team{height:30px;line-height:30px;border-radius:3px;} .colla-context-con .colla-team:hover{background:#eee;} .colla-context-con .colla-team > span:first-child{ display:inline-block;width:36px; } .colla-context-con .colla-team > span img{ border-radius: 3px 0px 0px 3px;width:28px;vertical-align:-9px; } .colla-context-con .colla-team .icons{ vertical-align:-1px;margin-left:5px;position:absolute;top:4px; } .colla-context-con .colla-team .icons.teamlogo{ font-size:28px;top:4px;margin-left:0px;color:#777; } .colla-context-con .colla-team .title{ font-size:13px; } #colla_users{ width: 100%; position: relative; } #colla_users:after{ content: ''; display: block; clear: both; } .colla-context-con .colla-user{ -webkit-box-sizing:border-box; -moz-box-sizing:border-box; box-sizing:border-box; width:33%; padding:2px 10px; margin:10px 0; display:inline-block; vertical-align: middle; cursor:pointer; float:left; white-space: nowrap; overflow: hidden; } .colla-context-con .colla-user>span{ display: inline-block; vertical-align: middle; } .colla-context-con .colla-user > span:last-child{ padding-left: 12px; border-left:0; font-size:12px; color:#333; border-radius: 0px 3px 3px 0px; min-width:50px; vertical-align:middle; max-width:100px; white-space:nowrap;text-overflow:ellipsis;overflow:hidden; } .colla-context-con .colla-user > span:last-child:hover{ color:#333; } .colla-context-con .colla-user > span img{ display:block; border-radius:50%;width:30px; } .colla-item[tit=contacter]{ height:200px;border:1px solid #ddd;border-radius:3px;padding:2px 5px; } .colla-user-item{ font-family:arial,寰蒋闆呴粦;background: #e0e0e0;font-size:13px; text-align:center; margin:8px 0px 0px 4px;color: #444; border-radius: 0px 3px 3px 0px;display:inline-block; height:30px;padding-right:8px; } .colla-user-item img{ width:30px;border-radius:3px 0px 0px 3px;vertical-align:-10px; } .colla_role_list{ width:480px; border:1px solid #d9d9d9; overflow-x:hidden; overflow-y:auto; max-height:110px } .colla_role_list .role_item{ height:25px; padding:2px 0px; overflow:hidden; line-height:25px; position:relative; } .colla_role_list .role_item .user_photo{ width:25px; float:left; margin-left:5px } .colla_role_list .role_item .user_username{ text-align:left; float:left; margin-left:7px; line-height:25px; width:400px } .colla_role_list .role_item .user_given_role{ line-height:25px; float:right; margin-right:10px } .colla_role_list .role_item .user_inviting_{ float:right; margin-right:50px; text-align:right; } .tab_title label{ cursor:pointer; display:inline-block; text-align:center; background-color:#fff; border:1px solid #BBBDC0; font-size:12px; width:25%; padding:5px 0; border-top-left-radius:5px; border-top-right-radius:5px; } .tab_title .active{ background-color:#50c28b; color:white; } #colla_add .tab_content{ height:200px;border:1px solid #d9d9d9 } #colla_add .tab_content div{ display:none; } #role_list{ margin:10px 0; max-height:180px; overflow-y: auto; min-height:100px; } #role_list .role-item{ position: relative; border-top: 1px solid #e1e1e1; padding: 8px 3px; } /*#role_list .role-item>span{vertical-align: middle;display: inline-block;}*/ #role_list .item-portrait{ display:inline-block; width:10%; } #role_list .item-portrait>img{ width:30px;border-radius:50%;vertical-align:-10px; } #role_list .item-user-fullname{ display:inline-block;width:25%;font-size:12px;color:#333;white-space:nowrap;overflow-x:hidden;text-overflow:ellipsis;vertical-align:-3px; } #role_list .role-item .closeme{ position: absolute; top: 12px; right:0; display:none;cursor: pointer;margin-left: 10px; padding:2px; width: 20px; height: 20px; } #role_list .role-item:hover .closeme{ display: inline-block; } #role_list .role-item .item-role-status{ display:inline-block; width:40%; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } #role_list .role-sel-con{ display:inline-block;width:15%;font-size:12px;text-align: center; } #role_list .role-sel-con>select{ height: 24px;border-radius: 3px; border:0; background-color: transparent; } #role_list .role-sel-con>select:hover{ border:1px; background-color: #eee; } #confirm_dlg{ display: none; position: absolute; background: #fff; z-index: 999; overflow: hidden; border: 1px solid #acacac; width: 50px; height: 25px; opacity: 0; filter: alpha(opacity=0); -webkit-transition: all .15s ease-in-out 0.05s; -o-transition: all .15s ease-in-out 0.05s; -moz-transition: all .15s ease-in-out 0.05s; transition: all .15s ease-in-out 0.05s; } #confirm_dlg.newSize{ width: 270px; height: 102px; opacity: 1; filter: alpha(opacity=100); -webkit-box-shadow: 0 0px 30px 0 rgba(0, 0, 0, 0.3); -moz-box-shadow: 0 0px 30px 0 rgba(0, 0, 0, 0.3); box-shadow: 0 0px 30px 0 rgba(0, 0, 0, 0.3); } #confirm_dlg .confirm_header{ height: 30px; padding: 0px 10px; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; line-height: 30px; font-size: 15px; border-bottom: 1px solid #e5e5e5; } #confirm_dlg .confirm_content{ text-align: center; margin: 10px; margin-bottom: 5px; } #confirm_dlg .confirm_content p{ padding: 0px;margin: 0px; } #confirm_dlg .confirm_content .designer_button{ float: right;height: 25px;line-height: 25px;width: 50px;margin:auto;margin-top: 10px;display: block; } /*****************************colla-add-dialog********end************************/ #hotkey_list{ width: auto; } #hotkey_list .dialog_content{ padding:0px; max-height: 500px; overflow:auto; margin-bottom: 65px; } #hotkey_list .hotkey_content{ margin: 0px; padding: 20px; } .hotkey_content span{ padding: 0px; margin: 0px; display: inline-block; padding: 4px 8px; text-align: left; } .hotkey_content .hotkey_line{ display: block; min-width: 663px; border-bottom: #f3f2f2 solid 1px; } .hotkey_content .hotkey_line.null_line{ border-bottom: 0; } .hotkey_content .hotkey_line.hotkey_group{ font-size: 14px; font-weight: bold; } .hotkey_content .hotkey_line .hotkey{ width: 160px; margin-right: 20px; } #hotkey_list .hotkey_ok{ position: absolute; right: 20px; bottom: 20px; line-height:25px; height:25px; } #send_feedback .feedback_lebal{ display: block; width: 490px; text-align: left; } .feedback_error_email_format{ display: none; color: #cf4236; margin-left: 20px; } .feedback_error_msg{ display: none; color: #cf4236; margin-left: 20px; } #designer_ui_tip{ position: absolute; top: calc(40%); left: 20px; color: white; padding: 10px 15px; border-radius: 4px; background: rgba(0,0,0,0.6); display: none; } .ui_tip_close{ position: absolute; width: 18px; height: 18px; right: -9px; top: -9px; background-color: rgb(255,255,255); border: 1px solid #424242; border-radius: 50%; cursor: pointer; background-position: -1px -381px; } #chattingbox{ display: none; bottom: 35px; left: 260px; width: 260px; position: absolute; background: #f5f5f5; border-width: 1px 1px 0px 0px; border-style: solid; border-color: #999; } .chatting_icon{ position:absolute; top:2px; display:block; width: 12px; height: 12px; cursor: pointer; background: url(./images/sprite.png?9) -44px -564px no-repeat; border: 1px solid transparent; border-radius: 2px; -moz-border-radius: 2px; -webkit-border-radius: 2px; right:5px; } .chatting_icon:hover{ background-color: #878787; border-color: #737373; } #chat_messages{ height: 200px; overflow: auto; padding: 5px 10px; } #chat_messages li{ padding: 2px 0px; } #chat_messages li span{ color: #4183C4; } .chatting_bottom{ text-align: right; padding: 5px 10px 10px; } .chatting_bottom .designer_button{ height: 24px; line-height: 24px; margin-top: 3px; margin-right: 0px; } #chat_prompt{ background: #e43a3c; padding: 0px 5px; height: 18px; position: absolute; right: -8px; top: -9px; color: white; line-height: 18px; border-radius: 9px; text-align: center; font-size: 12px; box-shadow: 0px 0px 3px rgba(0,0,0,0.6); display: none; } #designer_contextmenu{ cursor: default; } #designer_footer{ position: fixed; left: 0px; bottom: 0px; width: 100%; height: 34px; background: #f3f3f3; border-top: 1px solid #aaaaaa; } .footer_content{ position: relative; } .footer_content .left_box{ width: 162px; border-right: 1px solid #A2A2A2; height: 34px; text-align: center; position: absolute; left: 0px; top: 0px; } .left_box div{ line-height: 24px; height: 24px; margin-top: 4px; width: 80px; } .footer_content .content_box{ margin-left: 163px; height: 34px; line-height: 34px; padding-left: 5px; color: #525252; } .footer_left .toolbar_button{ display: inline-block; float: left; margin-left: 5px; padding: 0px 10px 0px 3px; margin-top: 4px; cursor: pointer; } .footer_devider{ float: left; border-left: 1px solid #aaa; border-right: 1px solid #FFF; height: 26px; margin: 4px 5px 0px 10px; } #collaborators{ display: inline-block; float: left; height: 24px; margin-top: 5px; } #collaborators img{ float: left; height: 24px; width: 24px; margin-left: 5px; -webkit-border-radius: 2px; -moz-border-radius: 2px; -ms-border-radius: 2px; border-radius: 2px; } .footer_right{ position: absolute; right: 0px; top: 0px; } .footer_right li{ float: left; cursor: pointer; font-weight: bold; border-left: 1px solid #aaa; } .footer_right li a{ padding: 0px 12px; display: block; color: #525252; } .footer_right li a:hover{ color: #29AAE1; text-decoration: none; } .footer_right .footer_fb{ padding: 0px 12px; color: #fff; background-color: #555; border-left: 0px; } .footer_fb:hover{ color: #fff; background-color: #2EB5E5; background-image: -moz-linear-gradient(top, #34C0E9, #29AAE1); background-image: -webkit-linear-gradient(top, #34C0E9, #29AAE1); background-image: -o-linear-gradient(top, #34C0E9, #29AAE1); background-image: -ms-linear-gradient(top, #34C0E9, #29AAE1); background-image: linear-gradient(top, #34C0E9, #29AAE1); } .footer_chrome{ display: none; } .footer_right li span{ display: inline-block; margin-top: 7px; float: left; margin-right: 5px; opacity: 1; } #shapes_dialog .dialog_header{ border-color: #ccc; } #shape_manage_list li{ background: #F3F3F3; border-top: #fff solid 1px; border-bottom: #ccc solid 1px; cursor: default; } #shape_manage_list li div{ border-left: 4px solid transparent; padding: 5px 10px 5px 20px; } #shape_manage_list li:hover div{ border-left-color: #dd4b39; } #shape_manage_list li.child{ background: #fafafa; } #shape_manage_list li.child div{ padding-left: 50px; } #shape_manage_list input{ float: left; } .share_container{ position: absolute; right: 20px; top: 20px; height: 30px; z-index: 0; } .share_container .user{ text-shadow: 0 1px 0 #FFF; color: #525252; font-weight: bold; line-height: 30px; float: left; position: relative; padding-right: 10px; cursor: pointer; } .share_container .user img{ width: 30px; height: 30px; float: left; border-radius: 50%; float: left; margin-right: 5px; } .share_container .user .ico{ position: absolute; right: 0px; top: 12px; } .share_container .designer_button{ position: relative; } .header_right_btn{ float: left; height: 30px; border-right: 1px solid #cbcccc; margin-right: 10px; } .header_right_btn .toolbar_button{ float: left; margin-right: 10px; cursor: pointer; margin-top: 2px; } .header_right_btn .drop_button{ padding: 0px 10px 0px 10px; } .header_right_btn .ico_accordion{ position: absolute; right: 5px; top: 8px; } #bar_list_pagesize .lbl, #page_size_list .lbl{ display: inline-block; width: 20px; } #bar_list_pagesize .spinner, #page_size_list .spinner{ display: inline-block; } #shape_opt_box{ position: absolute; border-radius: 5px; opacity: .5; background-color: #f5f5f5; padding: 10px; width: 200px; cursor: default; -webkit-transition: opacity .25s,border-color .25s,background-color .25s; transition: opacity .25s,border-color .25s,background-color .25s; border: 1px solid rgb(180,180,180); -webkit-box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.3); -moz-box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.3); box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.3); } #shape_opt_box:hover{ opacity: 1; } #shape_opt_box .dlg_close{ top: 5px; right: 5px; } .shape_opts .opt{ padding: 5px 0px; height: 26px; } .shape_opts label{ float: left; display: block; width: 95px; text-align: right; line-height: 26px; } .shape_opts .field{ float: left; display: block; width: 100px; margin-left: 5px; } .shape_opts .field{ float: left; display: block; width: 100px; margin-left: 5px; } .shape_opts .button_box{ text-align: center } .shape_opts .button_box{ text-align: center } .button_box .toolbar_button{ display: inline-block; padding: 0px 15px; } #publish_dialog li{ padding: 6px 0px; } #publish_dialog li span{ display: inline-block; width: 75px; text-align: right; margin-right: 5px; vertical-align: top; line-height: 30px; } .dlg_publish_tip{ color: #555; padding-bottom: 10px; } .tag_des{ margin-left: 80px; color: #948b88; } .unpublish_box{ position: relative; width: 400px; height: 160px; } .unpub_item{ position: absolute; top: 40px; text-align: center; width: 150px; } .pub_cancel{ left: 25px; } .pub_or{ left: 175px; width: 50px; padding-top: 15px; } .pub_edit{ right: 25px; } .unpublish_box span{ background: url(../images/diagrams/diagrams.png) no-repeat; display: inline-block; width: 52px; height: 52px; cursor: pointer; opacity: 0.7; } .unpublish_box span:hover{ opacity: 1; } .pub_edit span{ background-position: 0px -56px; } #embed_designer_chart .embed_preview_box{ float:left; overflow:auto; width: 450px; height: 330px; position:relative; border: 1px solid #999; box-shadow:inset 0px 0px 15px rgba(0,0,0,0.5); -webkit-box-shadow:inset 0px 0px 15px rgba(0,0,0,0.5); -moz-box-shadow:inset 0px 0px 15px rgba(0,0,0,0.5); -o-box-shadow:inset 0px 0px 15px rgba(0,0,0,0.5); -ms-box-shadow:inset 0px 0px 15px rgba(0,0,0,0.5); } .embed_preview_box .embed_preview_wrap{ max-width:450px; max-height:330px; position:absolute; top:50%; left:50%; } .embed_preview_wrap .embed_preview{ margin:auto; } #embed_designer_chart .embed_attributes{ width: 320px; height: 330px; float:right; margin-left:25px; position: relative; } .embed_attributes .dlg_publish_tip{ font-size:15px; padding:0px 0px 8px 0px; line-height:20px; } .embed_attributes .iframe_html{ display: block;width: 305px;height: 140px;margin-top: 5px;margin-bottom: 3px; } .embed_attributes .embed_size input{ width: 60px; } #themes{ padding: 5px; width: 444px; max-height: 380px; overflow: auto; } .theme_box{ margin: 3px; border: 2px solid transparent; float: left; cursor: pointer; } .theme_box:hover, #themes canvas:hover{ border-color: #2EB5E5; } #themes canvas{ border: #ccc solid 1px; } .icon{position: absolute;left: 20px;top: 22px;font-size: 1.3em; color: rgb(80,150,240);} .status{position: absolute;right: 20px;top: 20px;left: auto;font-size:1.6em} .status.fa-clock-o{color: #DDDDDD;margin-top: 2px;} .status.fa-check{color: #22ca2f;margin-top: 2px;} .status.fa-check-circle{color: #22ca2f;} .status.fa-exclamation-circle{color: #f14c0c;} .dashboard_box .icon{left: 10px; top: 10px;} .flow-tool{height:32px;line-height:32px;width: 100%;} .flow-tool > div{display: inline-block;height: 31px;} .flow-tool > div.first{width: 158px; text-align: center; border-bottom: 1px solid #eee;} .flow-tool > div.middle{border: 1px solid #eee;width: 161px;border-top:0;border-left: none;} .flow-tool > div.last{width: 300px; text-align: center;border-bottom: 1px solid #eee;margin-left:-5px;} .flow-tool > div.middle a{padding: 0px 10px 0 15px; line-height: 34px; } .flow-tool > div.middle a.name, .flow-tool > div.middle a.time{margin-left: 50px;} .flow-tool > div.middle a.plus,.flow-tool > div.middle a.minus{float: right;} .flow-tool > div.middle a:hover{color: #f71e3e;} .fa{font-size: 1.3em;} #configure{width:300px;height:calc(100% - 40px);border:1px solid #eee;position:absolute;top:32px;right:0;z-index:200000;background-color:#fff;display:none;border-top: 0;overflow: auto;} #configure .layui-form-label{padding: 10px 0px;width: 70px;} #configure .layui-input-block{margin-left:80px;width: 180px;} #configure .layui-form-item{margin-bottom: 5px;} #configure button.layui-btn{width:30%;} #configure .fa-question-circle{position: absolute;right: -18px;top: 10px;color: #e0db09;} #configure .layui-hide-div{position: absolute;width: 100%;height: calc(100%);top: 0; left: 0;} .layui-layer-content .layui-code-view{margin: 0;} .layui-tab-brief>.layui-tab-title .layui-this{color: #f71e3e;} .layui-tab-brief>.layui-tab-more li.layui-this:after, .layui-tab-brief>.layui-tab-title .layui-this:after{border-bottom-color: #BF0017;} .layui-form .layui-form-label font{color: red;} .layui-btn-danger{background-color: #f71e3e;} .layui-layer-loading .layui-layer-content{padding-top: 25px; text-align: center;} .layui-edit .save, .layui-log .save, .layui-log .test, .layui-log .down{display: none;}
{ "pile_set_name": "Github" }
/* Font Awesome uses the Unicode Private Use Area (PUA) to ensure screen readers do not read off random characters that represent icons */ .#{$fa-css-prefix}-glass:before { content: $fa-var-glass; } .#{$fa-css-prefix}-music:before { content: $fa-var-music; } .#{$fa-css-prefix}-search:before { content: $fa-var-search; } .#{$fa-css-prefix}-envelope-o:before { content: $fa-var-envelope-o; } .#{$fa-css-prefix}-heart:before { content: $fa-var-heart; } .#{$fa-css-prefix}-star:before { content: $fa-var-star; } .#{$fa-css-prefix}-star-o:before { content: $fa-var-star-o; } .#{$fa-css-prefix}-user:before { content: $fa-var-user; } .#{$fa-css-prefix}-film:before { content: $fa-var-film; } .#{$fa-css-prefix}-th-large:before { content: $fa-var-th-large; } .#{$fa-css-prefix}-th:before { content: $fa-var-th; } .#{$fa-css-prefix}-th-list:before { content: $fa-var-th-list; } .#{$fa-css-prefix}-check:before { content: $fa-var-check; } .#{$fa-css-prefix}-remove:before, .#{$fa-css-prefix}-close:before, .#{$fa-css-prefix}-times:before { content: $fa-var-times; } .#{$fa-css-prefix}-search-plus:before { content: $fa-var-search-plus; } .#{$fa-css-prefix}-search-minus:before { content: $fa-var-search-minus; } .#{$fa-css-prefix}-power-off:before { content: $fa-var-power-off; } .#{$fa-css-prefix}-signal:before { content: $fa-var-signal; } .#{$fa-css-prefix}-gear:before, .#{$fa-css-prefix}-cog:before { content: $fa-var-cog; } .#{$fa-css-prefix}-trash-o:before { content: $fa-var-trash-o; } .#{$fa-css-prefix}-home:before { content: $fa-var-home; } .#{$fa-css-prefix}-file-o:before { content: $fa-var-file-o; } .#{$fa-css-prefix}-clock-o:before { content: $fa-var-clock-o; } .#{$fa-css-prefix}-road:before { content: $fa-var-road; } .#{$fa-css-prefix}-download:before { content: $fa-var-download; } .#{$fa-css-prefix}-arrow-circle-o-down:before { content: $fa-var-arrow-circle-o-down; } .#{$fa-css-prefix}-arrow-circle-o-up:before { content: $fa-var-arrow-circle-o-up; } .#{$fa-css-prefix}-inbox:before { content: $fa-var-inbox; } .#{$fa-css-prefix}-play-circle-o:before { content: $fa-var-play-circle-o; } .#{$fa-css-prefix}-rotate-right:before, .#{$fa-css-prefix}-repeat:before { content: $fa-var-repeat; } .#{$fa-css-prefix}-refresh:before { content: $fa-var-refresh; } .#{$fa-css-prefix}-list-alt:before { content: $fa-var-list-alt; } .#{$fa-css-prefix}-lock:before { content: $fa-var-lock; } .#{$fa-css-prefix}-flag:before { content: $fa-var-flag; } .#{$fa-css-prefix}-headphones:before { content: $fa-var-headphones; } .#{$fa-css-prefix}-volume-off:before { content: $fa-var-volume-off; } .#{$fa-css-prefix}-volume-down:before { content: $fa-var-volume-down; } .#{$fa-css-prefix}-volume-up:before { content: $fa-var-volume-up; } .#{$fa-css-prefix}-qrcode:before { content: $fa-var-qrcode; } .#{$fa-css-prefix}-barcode:before { content: $fa-var-barcode; } .#{$fa-css-prefix}-tag:before { content: $fa-var-tag; } .#{$fa-css-prefix}-tags:before { content: $fa-var-tags; } .#{$fa-css-prefix}-book:before { content: $fa-var-book; } .#{$fa-css-prefix}-bookmark:before { content: $fa-var-bookmark; } .#{$fa-css-prefix}-print:before { content: $fa-var-print; } .#{$fa-css-prefix}-camera:before { content: $fa-var-camera; } .#{$fa-css-prefix}-font:before { content: $fa-var-font; } .#{$fa-css-prefix}-bold:before { content: $fa-var-bold; } .#{$fa-css-prefix}-italic:before { content: $fa-var-italic; } .#{$fa-css-prefix}-text-height:before { content: $fa-var-text-height; } .#{$fa-css-prefix}-text-width:before { content: $fa-var-text-width; } .#{$fa-css-prefix}-align-left:before { content: $fa-var-align-left; } .#{$fa-css-prefix}-align-center:before { content: $fa-var-align-center; } .#{$fa-css-prefix}-align-right:before { content: $fa-var-align-right; } .#{$fa-css-prefix}-align-justify:before { content: $fa-var-align-justify; } .#{$fa-css-prefix}-list:before { content: $fa-var-list; } .#{$fa-css-prefix}-dedent:before, .#{$fa-css-prefix}-outdent:before { content: $fa-var-outdent; } .#{$fa-css-prefix}-indent:before { content: $fa-var-indent; } .#{$fa-css-prefix}-video-camera:before { content: $fa-var-video-camera; } .#{$fa-css-prefix}-photo:before, .#{$fa-css-prefix}-image:before, .#{$fa-css-prefix}-picture-o:before { content: $fa-var-picture-o; } .#{$fa-css-prefix}-pencil:before { content: $fa-var-pencil; } .#{$fa-css-prefix}-map-marker:before { content: $fa-var-map-marker; } .#{$fa-css-prefix}-adjust:before { content: $fa-var-adjust; } .#{$fa-css-prefix}-tint:before { content: $fa-var-tint; } .#{$fa-css-prefix}-edit:before, .#{$fa-css-prefix}-pencil-square-o:before { content: $fa-var-pencil-square-o; } .#{$fa-css-prefix}-share-square-o:before { content: $fa-var-share-square-o; } .#{$fa-css-prefix}-check-square-o:before { content: $fa-var-check-square-o; } .#{$fa-css-prefix}-arrows:before { content: $fa-var-arrows; } .#{$fa-css-prefix}-step-backward:before { content: $fa-var-step-backward; } .#{$fa-css-prefix}-fast-backward:before { content: $fa-var-fast-backward; } .#{$fa-css-prefix}-backward:before { content: $fa-var-backward; } .#{$fa-css-prefix}-play:before { content: $fa-var-play; } .#{$fa-css-prefix}-pause:before { content: $fa-var-pause; } .#{$fa-css-prefix}-stop:before { content: $fa-var-stop; } .#{$fa-css-prefix}-forward:before { content: $fa-var-forward; } .#{$fa-css-prefix}-fast-forward:before { content: $fa-var-fast-forward; } .#{$fa-css-prefix}-step-forward:before { content: $fa-var-step-forward; } .#{$fa-css-prefix}-eject:before { content: $fa-var-eject; } .#{$fa-css-prefix}-chevron-left:before { content: $fa-var-chevron-left; } .#{$fa-css-prefix}-chevron-right:before { content: $fa-var-chevron-right; } .#{$fa-css-prefix}-plus-circle:before { content: $fa-var-plus-circle; } .#{$fa-css-prefix}-minus-circle:before { content: $fa-var-minus-circle; } .#{$fa-css-prefix}-times-circle:before { content: $fa-var-times-circle; } .#{$fa-css-prefix}-check-circle:before { content: $fa-var-check-circle; } .#{$fa-css-prefix}-question-circle:before { content: $fa-var-question-circle; } .#{$fa-css-prefix}-info-circle:before { content: $fa-var-info-circle; } .#{$fa-css-prefix}-crosshairs:before { content: $fa-var-crosshairs; } .#{$fa-css-prefix}-times-circle-o:before { content: $fa-var-times-circle-o; } .#{$fa-css-prefix}-check-circle-o:before { content: $fa-var-check-circle-o; } .#{$fa-css-prefix}-ban:before { content: $fa-var-ban; } .#{$fa-css-prefix}-arrow-left:before { content: $fa-var-arrow-left; } .#{$fa-css-prefix}-arrow-right:before { content: $fa-var-arrow-right; } .#{$fa-css-prefix}-arrow-up:before { content: $fa-var-arrow-up; } .#{$fa-css-prefix}-arrow-down:before { content: $fa-var-arrow-down; } .#{$fa-css-prefix}-mail-forward:before, .#{$fa-css-prefix}-share:before { content: $fa-var-share; } .#{$fa-css-prefix}-expand:before { content: $fa-var-expand; } .#{$fa-css-prefix}-compress:before { content: $fa-var-compress; } .#{$fa-css-prefix}-plus:before { content: $fa-var-plus; } .#{$fa-css-prefix}-minus:before { content: $fa-var-minus; } .#{$fa-css-prefix}-asterisk:before { content: $fa-var-asterisk; } .#{$fa-css-prefix}-exclamation-circle:before { content: $fa-var-exclamation-circle; } .#{$fa-css-prefix}-gift:before { content: $fa-var-gift; } .#{$fa-css-prefix}-leaf:before { content: $fa-var-leaf; } .#{$fa-css-prefix}-fire:before { content: $fa-var-fire; } .#{$fa-css-prefix}-eye:before { content: $fa-var-eye; } .#{$fa-css-prefix}-eye-slash:before { content: $fa-var-eye-slash; } .#{$fa-css-prefix}-warning:before, .#{$fa-css-prefix}-exclamation-triangle:before { content: $fa-var-exclamation-triangle; } .#{$fa-css-prefix}-plane:before { content: $fa-var-plane; } .#{$fa-css-prefix}-calendar:before { content: $fa-var-calendar; } .#{$fa-css-prefix}-random:before { content: $fa-var-random; } .#{$fa-css-prefix}-comment:before { content: $fa-var-comment; } .#{$fa-css-prefix}-magnet:before { content: $fa-var-magnet; } .#{$fa-css-prefix}-chevron-up:before { content: $fa-var-chevron-up; } .#{$fa-css-prefix}-chevron-down:before { content: $fa-var-chevron-down; } .#{$fa-css-prefix}-retweet:before { content: $fa-var-retweet; } .#{$fa-css-prefix}-shopping-cart:before { content: $fa-var-shopping-cart; } .#{$fa-css-prefix}-folder:before { content: $fa-var-folder; } .#{$fa-css-prefix}-folder-open:before { content: $fa-var-folder-open; } .#{$fa-css-prefix}-arrows-v:before { content: $fa-var-arrows-v; } .#{$fa-css-prefix}-arrows-h:before { content: $fa-var-arrows-h; } .#{$fa-css-prefix}-bar-chart-o:before, .#{$fa-css-prefix}-bar-chart:before { content: $fa-var-bar-chart; } .#{$fa-css-prefix}-twitter-square:before { content: $fa-var-twitter-square; } .#{$fa-css-prefix}-facebook-square:before { content: $fa-var-facebook-square; } .#{$fa-css-prefix}-camera-retro:before { content: $fa-var-camera-retro; } .#{$fa-css-prefix}-key:before { content: $fa-var-key; } .#{$fa-css-prefix}-gears:before, .#{$fa-css-prefix}-cogs:before { content: $fa-var-cogs; } .#{$fa-css-prefix}-comments:before { content: $fa-var-comments; } .#{$fa-css-prefix}-thumbs-o-up:before { content: $fa-var-thumbs-o-up; } .#{$fa-css-prefix}-thumbs-o-down:before { content: $fa-var-thumbs-o-down; } .#{$fa-css-prefix}-star-half:before { content: $fa-var-star-half; } .#{$fa-css-prefix}-heart-o:before { content: $fa-var-heart-o; } .#{$fa-css-prefix}-sign-out:before { content: $fa-var-sign-out; } .#{$fa-css-prefix}-linkedin-square:before { content: $fa-var-linkedin-square; } .#{$fa-css-prefix}-thumb-tack:before { content: $fa-var-thumb-tack; } .#{$fa-css-prefix}-external-link:before { content: $fa-var-external-link; } .#{$fa-css-prefix}-sign-in:before { content: $fa-var-sign-in; } .#{$fa-css-prefix}-trophy:before { content: $fa-var-trophy; } .#{$fa-css-prefix}-github-square:before { content: $fa-var-github-square; } .#{$fa-css-prefix}-upload:before { content: $fa-var-upload; } .#{$fa-css-prefix}-lemon-o:before { content: $fa-var-lemon-o; } .#{$fa-css-prefix}-phone:before { content: $fa-var-phone; } .#{$fa-css-prefix}-square-o:before { content: $fa-var-square-o; } .#{$fa-css-prefix}-bookmark-o:before { content: $fa-var-bookmark-o; } .#{$fa-css-prefix}-phone-square:before { content: $fa-var-phone-square; } .#{$fa-css-prefix}-twitter:before { content: $fa-var-twitter; } .#{$fa-css-prefix}-facebook:before { content: $fa-var-facebook; } .#{$fa-css-prefix}-github:before { content: $fa-var-github; } .#{$fa-css-prefix}-unlock:before { content: $fa-var-unlock; } .#{$fa-css-prefix}-credit-card:before { content: $fa-var-credit-card; } .#{$fa-css-prefix}-rss:before { content: $fa-var-rss; } .#{$fa-css-prefix}-hdd-o:before { content: $fa-var-hdd-o; } .#{$fa-css-prefix}-bullhorn:before { content: $fa-var-bullhorn; } .#{$fa-css-prefix}-bell:before { content: $fa-var-bell; } .#{$fa-css-prefix}-certificate:before { content: $fa-var-certificate; } .#{$fa-css-prefix}-hand-o-right:before { content: $fa-var-hand-o-right; } .#{$fa-css-prefix}-hand-o-left:before { content: $fa-var-hand-o-left; } .#{$fa-css-prefix}-hand-o-up:before { content: $fa-var-hand-o-up; } .#{$fa-css-prefix}-hand-o-down:before { content: $fa-var-hand-o-down; } .#{$fa-css-prefix}-arrow-circle-left:before { content: $fa-var-arrow-circle-left; } .#{$fa-css-prefix}-arrow-circle-right:before { content: $fa-var-arrow-circle-right; } .#{$fa-css-prefix}-arrow-circle-up:before { content: $fa-var-arrow-circle-up; } .#{$fa-css-prefix}-arrow-circle-down:before { content: $fa-var-arrow-circle-down; } .#{$fa-css-prefix}-globe:before { content: $fa-var-globe; } .#{$fa-css-prefix}-wrench:before { content: $fa-var-wrench; } .#{$fa-css-prefix}-tasks:before { content: $fa-var-tasks; } .#{$fa-css-prefix}-filter:before { content: $fa-var-filter; } .#{$fa-css-prefix}-briefcase:before { content: $fa-var-briefcase; } .#{$fa-css-prefix}-arrows-alt:before { content: $fa-var-arrows-alt; } .#{$fa-css-prefix}-group:before, .#{$fa-css-prefix}-users:before { content: $fa-var-users; } .#{$fa-css-prefix}-chain:before, .#{$fa-css-prefix}-link:before { content: $fa-var-link; } .#{$fa-css-prefix}-cloud:before { content: $fa-var-cloud; } .#{$fa-css-prefix}-flask:before { content: $fa-var-flask; } .#{$fa-css-prefix}-cut:before, .#{$fa-css-prefix}-scissors:before { content: $fa-var-scissors; } .#{$fa-css-prefix}-copy:before, .#{$fa-css-prefix}-files-o:before { content: $fa-var-files-o; } .#{$fa-css-prefix}-paperclip:before { content: $fa-var-paperclip; } .#{$fa-css-prefix}-save:before, .#{$fa-css-prefix}-floppy-o:before { content: $fa-var-floppy-o; } .#{$fa-css-prefix}-square:before { content: $fa-var-square; } .#{$fa-css-prefix}-navicon:before, .#{$fa-css-prefix}-reorder:before, .#{$fa-css-prefix}-bars:before { content: $fa-var-bars; } .#{$fa-css-prefix}-list-ul:before { content: $fa-var-list-ul; } .#{$fa-css-prefix}-list-ol:before { content: $fa-var-list-ol; } .#{$fa-css-prefix}-strikethrough:before { content: $fa-var-strikethrough; } .#{$fa-css-prefix}-underline:before { content: $fa-var-underline; } .#{$fa-css-prefix}-table:before { content: $fa-var-table; } .#{$fa-css-prefix}-magic:before { content: $fa-var-magic; } .#{$fa-css-prefix}-truck:before { content: $fa-var-truck; } .#{$fa-css-prefix}-pinterest:before { content: $fa-var-pinterest; } .#{$fa-css-prefix}-pinterest-square:before { content: $fa-var-pinterest-square; } .#{$fa-css-prefix}-google-plus-square:before { content: $fa-var-google-plus-square; } .#{$fa-css-prefix}-google-plus:before { content: $fa-var-google-plus; } .#{$fa-css-prefix}-money:before { content: $fa-var-money; } .#{$fa-css-prefix}-caret-down:before { content: $fa-var-caret-down; } .#{$fa-css-prefix}-caret-up:before { content: $fa-var-caret-up; } .#{$fa-css-prefix}-caret-left:before { content: $fa-var-caret-left; } .#{$fa-css-prefix}-caret-right:before { content: $fa-var-caret-right; } .#{$fa-css-prefix}-columns:before { content: $fa-var-columns; } .#{$fa-css-prefix}-unsorted:before, .#{$fa-css-prefix}-sort:before { content: $fa-var-sort; } .#{$fa-css-prefix}-sort-down:before, .#{$fa-css-prefix}-sort-desc:before { content: $fa-var-sort-desc; } .#{$fa-css-prefix}-sort-up:before, .#{$fa-css-prefix}-sort-asc:before { content: $fa-var-sort-asc; } .#{$fa-css-prefix}-envelope:before { content: $fa-var-envelope; } .#{$fa-css-prefix}-linkedin:before { content: $fa-var-linkedin; } .#{$fa-css-prefix}-rotate-left:before, .#{$fa-css-prefix}-undo:before { content: $fa-var-undo; } .#{$fa-css-prefix}-legal:before, .#{$fa-css-prefix}-gavel:before { content: $fa-var-gavel; } .#{$fa-css-prefix}-dashboard:before, .#{$fa-css-prefix}-tachometer:before { content: $fa-var-tachometer; } .#{$fa-css-prefix}-comment-o:before { content: $fa-var-comment-o; } .#{$fa-css-prefix}-comments-o:before { content: $fa-var-comments-o; } .#{$fa-css-prefix}-flash:before, .#{$fa-css-prefix}-bolt:before { content: $fa-var-bolt; } .#{$fa-css-prefix}-sitemap:before { content: $fa-var-sitemap; } .#{$fa-css-prefix}-umbrella:before { content: $fa-var-umbrella; } .#{$fa-css-prefix}-paste:before, .#{$fa-css-prefix}-clipboard:before { content: $fa-var-clipboard; } .#{$fa-css-prefix}-lightbulb-o:before { content: $fa-var-lightbulb-o; } .#{$fa-css-prefix}-exchange:before { content: $fa-var-exchange; } .#{$fa-css-prefix}-cloud-download:before { content: $fa-var-cloud-download; } .#{$fa-css-prefix}-cloud-upload:before { content: $fa-var-cloud-upload; } .#{$fa-css-prefix}-user-md:before { content: $fa-var-user-md; } .#{$fa-css-prefix}-stethoscope:before { content: $fa-var-stethoscope; } .#{$fa-css-prefix}-suitcase:before { content: $fa-var-suitcase; } .#{$fa-css-prefix}-bell-o:before { content: $fa-var-bell-o; } .#{$fa-css-prefix}-coffee:before { content: $fa-var-coffee; } .#{$fa-css-prefix}-cutlery:before { content: $fa-var-cutlery; } .#{$fa-css-prefix}-file-text-o:before { content: $fa-var-file-text-o; } .#{$fa-css-prefix}-building-o:before { content: $fa-var-building-o; } .#{$fa-css-prefix}-hospital-o:before { content: $fa-var-hospital-o; } .#{$fa-css-prefix}-ambulance:before { content: $fa-var-ambulance; } .#{$fa-css-prefix}-medkit:before { content: $fa-var-medkit; } .#{$fa-css-prefix}-fighter-jet:before { content: $fa-var-fighter-jet; } .#{$fa-css-prefix}-beer:before { content: $fa-var-beer; } .#{$fa-css-prefix}-h-square:before { content: $fa-var-h-square; } .#{$fa-css-prefix}-plus-square:before { content: $fa-var-plus-square; } .#{$fa-css-prefix}-angle-double-left:before { content: $fa-var-angle-double-left; } .#{$fa-css-prefix}-angle-double-right:before { content: $fa-var-angle-double-right; } .#{$fa-css-prefix}-angle-double-up:before { content: $fa-var-angle-double-up; } .#{$fa-css-prefix}-angle-double-down:before { content: $fa-var-angle-double-down; } .#{$fa-css-prefix}-angle-left:before { content: $fa-var-angle-left; } .#{$fa-css-prefix}-angle-right:before { content: $fa-var-angle-right; } .#{$fa-css-prefix}-angle-up:before { content: $fa-var-angle-up; } .#{$fa-css-prefix}-angle-down:before { content: $fa-var-angle-down; } .#{$fa-css-prefix}-desktop:before { content: $fa-var-desktop; } .#{$fa-css-prefix}-laptop:before { content: $fa-var-laptop; } .#{$fa-css-prefix}-tablet:before { content: $fa-var-tablet; } .#{$fa-css-prefix}-mobile-phone:before, .#{$fa-css-prefix}-mobile:before { content: $fa-var-mobile; } .#{$fa-css-prefix}-circle-o:before { content: $fa-var-circle-o; } .#{$fa-css-prefix}-quote-left:before { content: $fa-var-quote-left; } .#{$fa-css-prefix}-quote-right:before { content: $fa-var-quote-right; } .#{$fa-css-prefix}-spinner:before { content: $fa-var-spinner; } .#{$fa-css-prefix}-circle:before { content: $fa-var-circle; } .#{$fa-css-prefix}-mail-reply:before, .#{$fa-css-prefix}-reply:before { content: $fa-var-reply; } .#{$fa-css-prefix}-github-alt:before { content: $fa-var-github-alt; } .#{$fa-css-prefix}-folder-o:before { content: $fa-var-folder-o; } .#{$fa-css-prefix}-folder-open-o:before { content: $fa-var-folder-open-o; } .#{$fa-css-prefix}-smile-o:before { content: $fa-var-smile-o; } .#{$fa-css-prefix}-frown-o:before { content: $fa-var-frown-o; } .#{$fa-css-prefix}-meh-o:before { content: $fa-var-meh-o; } .#{$fa-css-prefix}-gamepad:before { content: $fa-var-gamepad; } .#{$fa-css-prefix}-keyboard-o:before { content: $fa-var-keyboard-o; } .#{$fa-css-prefix}-flag-o:before { content: $fa-var-flag-o; } .#{$fa-css-prefix}-flag-checkered:before { content: $fa-var-flag-checkered; } .#{$fa-css-prefix}-terminal:before { content: $fa-var-terminal; } .#{$fa-css-prefix}-code:before { content: $fa-var-code; } .#{$fa-css-prefix}-mail-reply-all:before, .#{$fa-css-prefix}-reply-all:before { content: $fa-var-reply-all; } .#{$fa-css-prefix}-star-half-empty:before, .#{$fa-css-prefix}-star-half-full:before, .#{$fa-css-prefix}-star-half-o:before { content: $fa-var-star-half-o; } .#{$fa-css-prefix}-location-arrow:before { content: $fa-var-location-arrow; } .#{$fa-css-prefix}-crop:before { content: $fa-var-crop; } .#{$fa-css-prefix}-code-fork:before { content: $fa-var-code-fork; } .#{$fa-css-prefix}-unlink:before, .#{$fa-css-prefix}-chain-broken:before { content: $fa-var-chain-broken; } .#{$fa-css-prefix}-question:before { content: $fa-var-question; } .#{$fa-css-prefix}-info:before { content: $fa-var-info; } .#{$fa-css-prefix}-exclamation:before { content: $fa-var-exclamation; } .#{$fa-css-prefix}-superscript:before { content: $fa-var-superscript; } .#{$fa-css-prefix}-subscript:before { content: $fa-var-subscript; } .#{$fa-css-prefix}-eraser:before { content: $fa-var-eraser; } .#{$fa-css-prefix}-puzzle-piece:before { content: $fa-var-puzzle-piece; } .#{$fa-css-prefix}-microphone:before { content: $fa-var-microphone; } .#{$fa-css-prefix}-microphone-slash:before { content: $fa-var-microphone-slash; } .#{$fa-css-prefix}-shield:before { content: $fa-var-shield; } .#{$fa-css-prefix}-calendar-o:before { content: $fa-var-calendar-o; } .#{$fa-css-prefix}-fire-extinguisher:before { content: $fa-var-fire-extinguisher; } .#{$fa-css-prefix}-rocket:before { content: $fa-var-rocket; } .#{$fa-css-prefix}-maxcdn:before { content: $fa-var-maxcdn; } .#{$fa-css-prefix}-chevron-circle-left:before { content: $fa-var-chevron-circle-left; } .#{$fa-css-prefix}-chevron-circle-right:before { content: $fa-var-chevron-circle-right; } .#{$fa-css-prefix}-chevron-circle-up:before { content: $fa-var-chevron-circle-up; } .#{$fa-css-prefix}-chevron-circle-down:before { content: $fa-var-chevron-circle-down; } .#{$fa-css-prefix}-html5:before { content: $fa-var-html5; } .#{$fa-css-prefix}-css3:before { content: $fa-var-css3; } .#{$fa-css-prefix}-anchor:before { content: $fa-var-anchor; } .#{$fa-css-prefix}-unlock-alt:before { content: $fa-var-unlock-alt; } .#{$fa-css-prefix}-bullseye:before { content: $fa-var-bullseye; } .#{$fa-css-prefix}-ellipsis-h:before { content: $fa-var-ellipsis-h; } .#{$fa-css-prefix}-ellipsis-v:before { content: $fa-var-ellipsis-v; } .#{$fa-css-prefix}-rss-square:before { content: $fa-var-rss-square; } .#{$fa-css-prefix}-play-circle:before { content: $fa-var-play-circle; } .#{$fa-css-prefix}-ticket:before { content: $fa-var-ticket; } .#{$fa-css-prefix}-minus-square:before { content: $fa-var-minus-square; } .#{$fa-css-prefix}-minus-square-o:before { content: $fa-var-minus-square-o; } .#{$fa-css-prefix}-level-up:before { content: $fa-var-level-up; } .#{$fa-css-prefix}-level-down:before { content: $fa-var-level-down; } .#{$fa-css-prefix}-check-square:before { content: $fa-var-check-square; } .#{$fa-css-prefix}-pencil-square:before { content: $fa-var-pencil-square; } .#{$fa-css-prefix}-external-link-square:before { content: $fa-var-external-link-square; } .#{$fa-css-prefix}-share-square:before { content: $fa-var-share-square; } .#{$fa-css-prefix}-compass:before { content: $fa-var-compass; } .#{$fa-css-prefix}-toggle-down:before, .#{$fa-css-prefix}-caret-square-o-down:before { content: $fa-var-caret-square-o-down; } .#{$fa-css-prefix}-toggle-up:before, .#{$fa-css-prefix}-caret-square-o-up:before { content: $fa-var-caret-square-o-up; } .#{$fa-css-prefix}-toggle-right:before, .#{$fa-css-prefix}-caret-square-o-right:before { content: $fa-var-caret-square-o-right; } .#{$fa-css-prefix}-euro:before, .#{$fa-css-prefix}-eur:before { content: $fa-var-eur; } .#{$fa-css-prefix}-gbp:before { content: $fa-var-gbp; } .#{$fa-css-prefix}-dollar:before, .#{$fa-css-prefix}-usd:before { content: $fa-var-usd; } .#{$fa-css-prefix}-rupee:before, .#{$fa-css-prefix}-inr:before { content: $fa-var-inr; } .#{$fa-css-prefix}-cny:before, .#{$fa-css-prefix}-rmb:before, .#{$fa-css-prefix}-yen:before, .#{$fa-css-prefix}-jpy:before { content: $fa-var-jpy; } .#{$fa-css-prefix}-ruble:before, .#{$fa-css-prefix}-rouble:before, .#{$fa-css-prefix}-rub:before { content: $fa-var-rub; } .#{$fa-css-prefix}-won:before, .#{$fa-css-prefix}-krw:before { content: $fa-var-krw; } .#{$fa-css-prefix}-bitcoin:before, .#{$fa-css-prefix}-btc:before { content: $fa-var-btc; } .#{$fa-css-prefix}-file:before { content: $fa-var-file; } .#{$fa-css-prefix}-file-text:before { content: $fa-var-file-text; } .#{$fa-css-prefix}-sort-alpha-asc:before { content: $fa-var-sort-alpha-asc; } .#{$fa-css-prefix}-sort-alpha-desc:before { content: $fa-var-sort-alpha-desc; } .#{$fa-css-prefix}-sort-amount-asc:before { content: $fa-var-sort-amount-asc; } .#{$fa-css-prefix}-sort-amount-desc:before { content: $fa-var-sort-amount-desc; } .#{$fa-css-prefix}-sort-numeric-asc:before { content: $fa-var-sort-numeric-asc; } .#{$fa-css-prefix}-sort-numeric-desc:before { content: $fa-var-sort-numeric-desc; } .#{$fa-css-prefix}-thumbs-up:before { content: $fa-var-thumbs-up; } .#{$fa-css-prefix}-thumbs-down:before { content: $fa-var-thumbs-down; } .#{$fa-css-prefix}-youtube-square:before { content: $fa-var-youtube-square; } .#{$fa-css-prefix}-youtube:before { content: $fa-var-youtube; } .#{$fa-css-prefix}-xing:before { content: $fa-var-xing; } .#{$fa-css-prefix}-xing-square:before { content: $fa-var-xing-square; } .#{$fa-css-prefix}-youtube-play:before { content: $fa-var-youtube-play; } .#{$fa-css-prefix}-dropbox:before { content: $fa-var-dropbox; } .#{$fa-css-prefix}-stack-overflow:before { content: $fa-var-stack-overflow; } .#{$fa-css-prefix}-instagram:before { content: $fa-var-instagram; } .#{$fa-css-prefix}-flickr:before { content: $fa-var-flickr; } .#{$fa-css-prefix}-adn:before { content: $fa-var-adn; } .#{$fa-css-prefix}-bitbucket:before { content: $fa-var-bitbucket; } .#{$fa-css-prefix}-bitbucket-square:before { content: $fa-var-bitbucket-square; } .#{$fa-css-prefix}-tumblr:before { content: $fa-var-tumblr; } .#{$fa-css-prefix}-tumblr-square:before { content: $fa-var-tumblr-square; } .#{$fa-css-prefix}-long-arrow-down:before { content: $fa-var-long-arrow-down; } .#{$fa-css-prefix}-long-arrow-up:before { content: $fa-var-long-arrow-up; } .#{$fa-css-prefix}-long-arrow-left:before { content: $fa-var-long-arrow-left; } .#{$fa-css-prefix}-long-arrow-right:before { content: $fa-var-long-arrow-right; } .#{$fa-css-prefix}-apple:before { content: $fa-var-apple; } .#{$fa-css-prefix}-windows:before { content: $fa-var-windows; } .#{$fa-css-prefix}-android:before { content: $fa-var-android; } .#{$fa-css-prefix}-linux:before { content: $fa-var-linux; } .#{$fa-css-prefix}-dribbble:before { content: $fa-var-dribbble; } .#{$fa-css-prefix}-skype:before { content: $fa-var-skype; } .#{$fa-css-prefix}-foursquare:before { content: $fa-var-foursquare; } .#{$fa-css-prefix}-trello:before { content: $fa-var-trello; } .#{$fa-css-prefix}-female:before { content: $fa-var-female; } .#{$fa-css-prefix}-male:before { content: $fa-var-male; } .#{$fa-css-prefix}-gittip:before { content: $fa-var-gittip; } .#{$fa-css-prefix}-sun-o:before { content: $fa-var-sun-o; } .#{$fa-css-prefix}-moon-o:before { content: $fa-var-moon-o; } .#{$fa-css-prefix}-archive:before { content: $fa-var-archive; } .#{$fa-css-prefix}-bug:before { content: $fa-var-bug; } .#{$fa-css-prefix}-vk:before { content: $fa-var-vk; } .#{$fa-css-prefix}-weibo:before { content: $fa-var-weibo; } .#{$fa-css-prefix}-renren:before { content: $fa-var-renren; } .#{$fa-css-prefix}-pagelines:before { content: $fa-var-pagelines; } .#{$fa-css-prefix}-stack-exchange:before { content: $fa-var-stack-exchange; } .#{$fa-css-prefix}-arrow-circle-o-right:before { content: $fa-var-arrow-circle-o-right; } .#{$fa-css-prefix}-arrow-circle-o-left:before { content: $fa-var-arrow-circle-o-left; } .#{$fa-css-prefix}-toggle-left:before, .#{$fa-css-prefix}-caret-square-o-left:before { content: $fa-var-caret-square-o-left; } .#{$fa-css-prefix}-dot-circle-o:before { content: $fa-var-dot-circle-o; } .#{$fa-css-prefix}-wheelchair:before { content: $fa-var-wheelchair; } .#{$fa-css-prefix}-vimeo-square:before { content: $fa-var-vimeo-square; } .#{$fa-css-prefix}-turkish-lira:before, .#{$fa-css-prefix}-try:before { content: $fa-var-try; } .#{$fa-css-prefix}-plus-square-o:before { content: $fa-var-plus-square-o; } .#{$fa-css-prefix}-space-shuttle:before { content: $fa-var-space-shuttle; } .#{$fa-css-prefix}-slack:before { content: $fa-var-slack; } .#{$fa-css-prefix}-envelope-square:before { content: $fa-var-envelope-square; } .#{$fa-css-prefix}-wordpress:before { content: $fa-var-wordpress; } .#{$fa-css-prefix}-openid:before { content: $fa-var-openid; } .#{$fa-css-prefix}-institution:before, .#{$fa-css-prefix}-bank:before, .#{$fa-css-prefix}-university:before { content: $fa-var-university; } .#{$fa-css-prefix}-mortar-board:before, .#{$fa-css-prefix}-graduation-cap:before { content: $fa-var-graduation-cap; } .#{$fa-css-prefix}-yahoo:before { content: $fa-var-yahoo; } .#{$fa-css-prefix}-google:before { content: $fa-var-google; } .#{$fa-css-prefix}-reddit:before { content: $fa-var-reddit; } .#{$fa-css-prefix}-reddit-square:before { content: $fa-var-reddit-square; } .#{$fa-css-prefix}-stumbleupon-circle:before { content: $fa-var-stumbleupon-circle; } .#{$fa-css-prefix}-stumbleupon:before { content: $fa-var-stumbleupon; } .#{$fa-css-prefix}-delicious:before { content: $fa-var-delicious; } .#{$fa-css-prefix}-digg:before { content: $fa-var-digg; } .#{$fa-css-prefix}-pied-piper:before { content: $fa-var-pied-piper; } .#{$fa-css-prefix}-pied-piper-alt:before { content: $fa-var-pied-piper-alt; } .#{$fa-css-prefix}-drupal:before { content: $fa-var-drupal; } .#{$fa-css-prefix}-joomla:before { content: $fa-var-joomla; } .#{$fa-css-prefix}-language:before { content: $fa-var-language; } .#{$fa-css-prefix}-fax:before { content: $fa-var-fax; } .#{$fa-css-prefix}-building:before { content: $fa-var-building; } .#{$fa-css-prefix}-child:before { content: $fa-var-child; } .#{$fa-css-prefix}-paw:before { content: $fa-var-paw; } .#{$fa-css-prefix}-spoon:before { content: $fa-var-spoon; } .#{$fa-css-prefix}-cube:before { content: $fa-var-cube; } .#{$fa-css-prefix}-cubes:before { content: $fa-var-cubes; } .#{$fa-css-prefix}-behance:before { content: $fa-var-behance; } .#{$fa-css-prefix}-behance-square:before { content: $fa-var-behance-square; } .#{$fa-css-prefix}-steam:before { content: $fa-var-steam; } .#{$fa-css-prefix}-steam-square:before { content: $fa-var-steam-square; } .#{$fa-css-prefix}-recycle:before { content: $fa-var-recycle; } .#{$fa-css-prefix}-automobile:before, .#{$fa-css-prefix}-car:before { content: $fa-var-car; } .#{$fa-css-prefix}-cab:before, .#{$fa-css-prefix}-taxi:before { content: $fa-var-taxi; } .#{$fa-css-prefix}-tree:before { content: $fa-var-tree; } .#{$fa-css-prefix}-spotify:before { content: $fa-var-spotify; } .#{$fa-css-prefix}-deviantart:before { content: $fa-var-deviantart; } .#{$fa-css-prefix}-soundcloud:before { content: $fa-var-soundcloud; } .#{$fa-css-prefix}-database:before { content: $fa-var-database; } .#{$fa-css-prefix}-file-pdf-o:before { content: $fa-var-file-pdf-o; } .#{$fa-css-prefix}-file-word-o:before { content: $fa-var-file-word-o; } .#{$fa-css-prefix}-file-excel-o:before { content: $fa-var-file-excel-o; } .#{$fa-css-prefix}-file-powerpoint-o:before { content: $fa-var-file-powerpoint-o; } .#{$fa-css-prefix}-file-photo-o:before, .#{$fa-css-prefix}-file-picture-o:before, .#{$fa-css-prefix}-file-image-o:before { content: $fa-var-file-image-o; } .#{$fa-css-prefix}-file-zip-o:before, .#{$fa-css-prefix}-file-archive-o:before { content: $fa-var-file-archive-o; } .#{$fa-css-prefix}-file-sound-o:before, .#{$fa-css-prefix}-file-audio-o:before { content: $fa-var-file-audio-o; } .#{$fa-css-prefix}-file-movie-o:before, .#{$fa-css-prefix}-file-video-o:before { content: $fa-var-file-video-o; } .#{$fa-css-prefix}-file-code-o:before { content: $fa-var-file-code-o; } .#{$fa-css-prefix}-vine:before { content: $fa-var-vine; } .#{$fa-css-prefix}-codepen:before { content: $fa-var-codepen; } .#{$fa-css-prefix}-jsfiddle:before { content: $fa-var-jsfiddle; } .#{$fa-css-prefix}-life-bouy:before, .#{$fa-css-prefix}-life-buoy:before, .#{$fa-css-prefix}-life-saver:before, .#{$fa-css-prefix}-support:before, .#{$fa-css-prefix}-life-ring:before { content: $fa-var-life-ring; } .#{$fa-css-prefix}-circle-o-notch:before { content: $fa-var-circle-o-notch; } .#{$fa-css-prefix}-ra:before, .#{$fa-css-prefix}-rebel:before { content: $fa-var-rebel; } .#{$fa-css-prefix}-ge:before, .#{$fa-css-prefix}-empire:before { content: $fa-var-empire; } .#{$fa-css-prefix}-git-square:before { content: $fa-var-git-square; } .#{$fa-css-prefix}-git:before { content: $fa-var-git; } .#{$fa-css-prefix}-hacker-news:before { content: $fa-var-hacker-news; } .#{$fa-css-prefix}-tencent-weibo:before { content: $fa-var-tencent-weibo; } .#{$fa-css-prefix}-qq:before { content: $fa-var-qq; } .#{$fa-css-prefix}-wechat:before, .#{$fa-css-prefix}-weixin:before { content: $fa-var-weixin; } .#{$fa-css-prefix}-send:before, .#{$fa-css-prefix}-paper-plane:before { content: $fa-var-paper-plane; } .#{$fa-css-prefix}-send-o:before, .#{$fa-css-prefix}-paper-plane-o:before { content: $fa-var-paper-plane-o; } .#{$fa-css-prefix}-history:before { content: $fa-var-history; } .#{$fa-css-prefix}-circle-thin:before { content: $fa-var-circle-thin; } .#{$fa-css-prefix}-header:before { content: $fa-var-header; } .#{$fa-css-prefix}-paragraph:before { content: $fa-var-paragraph; } .#{$fa-css-prefix}-sliders:before { content: $fa-var-sliders; } .#{$fa-css-prefix}-share-alt:before { content: $fa-var-share-alt; } .#{$fa-css-prefix}-share-alt-square:before { content: $fa-var-share-alt-square; } .#{$fa-css-prefix}-bomb:before { content: $fa-var-bomb; } .#{$fa-css-prefix}-soccer-ball-o:before, .#{$fa-css-prefix}-futbol-o:before { content: $fa-var-futbol-o; } .#{$fa-css-prefix}-tty:before { content: $fa-var-tty; } .#{$fa-css-prefix}-binoculars:before { content: $fa-var-binoculars; } .#{$fa-css-prefix}-plug:before { content: $fa-var-plug; } .#{$fa-css-prefix}-slideshare:before { content: $fa-var-slideshare; } .#{$fa-css-prefix}-twitch:before { content: $fa-var-twitch; } .#{$fa-css-prefix}-yelp:before { content: $fa-var-yelp; } .#{$fa-css-prefix}-newspaper-o:before { content: $fa-var-newspaper-o; } .#{$fa-css-prefix}-wifi:before { content: $fa-var-wifi; } .#{$fa-css-prefix}-calculator:before { content: $fa-var-calculator; } .#{$fa-css-prefix}-paypal:before { content: $fa-var-paypal; } .#{$fa-css-prefix}-google-wallet:before { content: $fa-var-google-wallet; } .#{$fa-css-prefix}-cc-visa:before { content: $fa-var-cc-visa; } .#{$fa-css-prefix}-cc-mastercard:before { content: $fa-var-cc-mastercard; } .#{$fa-css-prefix}-cc-discover:before { content: $fa-var-cc-discover; } .#{$fa-css-prefix}-cc-amex:before { content: $fa-var-cc-amex; } .#{$fa-css-prefix}-cc-paypal:before { content: $fa-var-cc-paypal; } .#{$fa-css-prefix}-cc-stripe:before { content: $fa-var-cc-stripe; } .#{$fa-css-prefix}-bell-slash:before { content: $fa-var-bell-slash; } .#{$fa-css-prefix}-bell-slash-o:before { content: $fa-var-bell-slash-o; } .#{$fa-css-prefix}-trash:before { content: $fa-var-trash; } .#{$fa-css-prefix}-copyright:before { content: $fa-var-copyright; } .#{$fa-css-prefix}-at:before { content: $fa-var-at; } .#{$fa-css-prefix}-eyedropper:before { content: $fa-var-eyedropper; } .#{$fa-css-prefix}-paint-brush:before { content: $fa-var-paint-brush; } .#{$fa-css-prefix}-birthday-cake:before { content: $fa-var-birthday-cake; } .#{$fa-css-prefix}-area-chart:before { content: $fa-var-area-chart; } .#{$fa-css-prefix}-pie-chart:before { content: $fa-var-pie-chart; } .#{$fa-css-prefix}-line-chart:before { content: $fa-var-line-chart; } .#{$fa-css-prefix}-lastfm:before { content: $fa-var-lastfm; } .#{$fa-css-prefix}-lastfm-square:before { content: $fa-var-lastfm-square; } .#{$fa-css-prefix}-toggle-off:before { content: $fa-var-toggle-off; } .#{$fa-css-prefix}-toggle-on:before { content: $fa-var-toggle-on; } .#{$fa-css-prefix}-bicycle:before { content: $fa-var-bicycle; } .#{$fa-css-prefix}-bus:before { content: $fa-var-bus; } .#{$fa-css-prefix}-ioxhost:before { content: $fa-var-ioxhost; } .#{$fa-css-prefix}-angellist:before { content: $fa-var-angellist; } .#{$fa-css-prefix}-cc:before { content: $fa-var-cc; } .#{$fa-css-prefix}-shekel:before, .#{$fa-css-prefix}-sheqel:before, .#{$fa-css-prefix}-ils:before { content: $fa-var-ils; } .#{$fa-css-prefix}-meanpath:before { content: $fa-var-meanpath; }
{ "pile_set_name": "Github" }
hlsl.init.frag WARNING: 0:40: 'typedef' : struct-member initializers ignored WARNING: 0:40: 'typedef' : struct-member initializers ignored Shader version: 500 gl_FragCoord origin is upper left 0:? Sequence 0:1 Sequence 0:1 move second child to first child ( temp 4-component vector of float) 0:1 'a1' ( global 4-component vector of float) 0:? Constant: 0:? 1.000000 0:? 0.500000 0:? 0.000000 0:? 1.000000 0:1 move second child to first child ( temp 4-component vector of float) 0:1 'b1' ( global 4-component vector of float) 0:? Constant: 0:? 2.000000 0:? 2.500000 0:? 2.100000 0:? 2.200000 0:2 Sequence 0:2 move second child to first child ( temp 4-component vector of float) 0:2 'a1i' ( global 4-component vector of float) 0:2 Constant: 0:2 1.000000 0:2 0.500000 0:2 0.000000 0:2 1.000000 0:2 move second child to first child ( temp 4-component vector of float) 0:2 'b1i' ( global 4-component vector of float) 0:2 Constant: 0:2 2.000000 0:2 2.500000 0:2 2.100000 0:2 2.200000 0:3 Sequence 0:3 move second child to first child ( temp float) 0:3 'a2' ( global float) 0:3 Constant: 0:3 0.200000 0:4 Sequence 0:4 move second child to first child ( temp float) 0:4 'b3' ( global float) 0:4 Constant: 0:4 0.300000 0:5 Sequence 0:5 move second child to first child ( temp float) 0:5 'b4' ( global float) 0:5 Constant: 0:5 0.400000 0:6 Sequence 0:6 move second child to first child ( temp float) 0:6 'a5' ( global float) 0:6 Constant: 0:6 0.500000 0:6 move second child to first child ( temp float) 0:6 'c5' ( global float) 0:6 Constant: 0:6 1.500000 0:9 Sequence 0:9 move second child to first child ( temp structure{ temp int f}) 0:9 'single1' ( global structure{ temp int f}) 0:9 Constant: 0:9 10 (const int) 0:12 Sequence 0:12 move second child to first child ( temp structure{ temp 2-component vector of uint v}) 0:12 'single2' ( global structure{ temp 2-component vector of uint v}) 0:12 Constant: 0:12 1 (const uint) 0:12 2 (const uint) 0:15 Sequence 0:15 move second child to first child ( temp structure{ temp structure{ temp int f} s1}) 0:15 'single3' ( global structure{ temp structure{ temp int f} s1}) 0:15 Constant: 0:15 3 (const int) 0:18 Sequence 0:18 move second child to first child ( temp structure{ temp structure{ temp 2-component vector of uint v} s1}) 0:18 'single4' ( global structure{ temp structure{ temp 2-component vector of uint v} s1}) 0:18 Constant: 0:18 4 (const uint) 0:18 5 (const uint) 0:21 Function Definition: @ShaderFunction(vf4; ( temp 4-component vector of float) 0:21 Function Parameters: 0:21 'input' ( in 4-component vector of float) 0:? Sequence 0:22 Sequence 0:22 move second child to first child ( temp 4-component vector of float) 0:22 'a2' ( temp 4-component vector of float) 0:? Constant: 0:? 0.200000 0:? 0.300000 0:? 0.400000 0:? 0.500000 0:32 Sequence 0:32 move second child to first child ( temp structure{ temp int j, temp float g, temp structure{ temp float f, temp int i} s1}) 0:32 's2i' ( temp structure{ temp int j, temp float g, temp structure{ temp float f, temp int i} s1}) 0:32 Construct structure ( temp structure{ temp int j, temp float g, temp structure{ temp float f, temp int i} s1}) 0:32 Constant: 0:32 9 (const int) 0:32 'a5' ( global float) 0:32 Construct structure ( temp structure{ temp float f, temp int i}) 0:32 Comma ( temp float) 0:32 'a3' ( global float) 0:32 'a4' ( global float) 0:32 Constant: 0:32 12 (const int) 0:32 move second child to first child ( temp structure{ temp int j, temp float g, temp structure{ temp float f, temp int i} s1}) 0:32 's2' ( temp structure{ temp int j, temp float g, temp structure{ temp float f, temp int i} s1}) 0:? Construct structure ( temp structure{ temp int j, temp float g, temp structure{ temp float f, temp int i} s1}) 0:32 Constant: 0:32 9 (const int) 0:32 'a5' ( global float) 0:? Construct structure ( temp structure{ temp float f, temp int i}) 0:32 Comma ( temp float) 0:32 'a3' ( global float) 0:32 'a4' ( global float) 0:32 Constant: 0:32 12 (const int) 0:33 Sequence 0:33 move second child to first child ( temp float) 0:33 'a8' ( temp float) 0:33 Comma ( temp float) 0:33 'a2' ( temp 4-component vector of float) 0:33 'b2' ( global float) 0:33 move second child to first child ( temp float) 0:33 'a9' ( temp float) 0:33 'a5' ( global float) 0:35 Branch: Return with expression 0:35 component-wise multiply ( temp 4-component vector of float) 0:35 'input' ( in 4-component vector of float) 0:35 'a1' ( global 4-component vector of float) 0:21 Function Definition: ShaderFunction( ( temp void) 0:21 Function Parameters: 0:? Sequence 0:21 move second child to first child ( temp 4-component vector of float) 0:? 'input' ( temp 4-component vector of float) 0:? 'input' (layout( location=0) in 4-component vector of float) 0:21 move second child to first child ( temp 4-component vector of float) 0:? '@entryPointOutput' (layout( location=0) out 4-component vector of float) 0:21 Function Call: @ShaderFunction(vf4; ( temp 4-component vector of float) 0:? 'input' ( temp 4-component vector of float) 0:? Linker Objects 0:? 'a1' ( global 4-component vector of float) 0:? 'b1' ( global 4-component vector of float) 0:? 'a1i' ( global 4-component vector of float) 0:? 'b1i' ( global 4-component vector of float) 0:? 'a2' ( global float) 0:? 'b2' ( global float) 0:? 'a3' ( global float) 0:? 'b3' ( global float) 0:? 'a4' ( global float) 0:? 'b4' ( global float) 0:? 'c4' ( global float) 0:? 'a5' ( global float) 0:? 'b5' ( global float) 0:? 'c5' ( global float) 0:? 'single1' ( global structure{ temp int f}) 0:? 'single2' ( global structure{ temp 2-component vector of uint v}) 0:? 'single3' ( global structure{ temp structure{ temp int f} s1}) 0:? 'single4' ( global structure{ temp structure{ temp 2-component vector of uint v} s1}) 0:? '@entryPointOutput' (layout( location=0) out 4-component vector of float) 0:? 'input' (layout( location=0) in 4-component vector of float) 0:? 'anon@0' (layout( row_major std140) uniform block{layout( row_major std140) uniform float a, layout( row_major std140) uniform float b, layout( row_major std140) uniform float c}) Linked fragment stage: Shader version: 500 gl_FragCoord origin is upper left 0:? Sequence 0:1 Sequence 0:1 move second child to first child ( temp 4-component vector of float) 0:1 'a1' ( global 4-component vector of float) 0:? Constant: 0:? 1.000000 0:? 0.500000 0:? 0.000000 0:? 1.000000 0:1 move second child to first child ( temp 4-component vector of float) 0:1 'b1' ( global 4-component vector of float) 0:? Constant: 0:? 2.000000 0:? 2.500000 0:? 2.100000 0:? 2.200000 0:2 Sequence 0:2 move second child to first child ( temp 4-component vector of float) 0:2 'a1i' ( global 4-component vector of float) 0:2 Constant: 0:2 1.000000 0:2 0.500000 0:2 0.000000 0:2 1.000000 0:2 move second child to first child ( temp 4-component vector of float) 0:2 'b1i' ( global 4-component vector of float) 0:2 Constant: 0:2 2.000000 0:2 2.500000 0:2 2.100000 0:2 2.200000 0:3 Sequence 0:3 move second child to first child ( temp float) 0:3 'a2' ( global float) 0:3 Constant: 0:3 0.200000 0:4 Sequence 0:4 move second child to first child ( temp float) 0:4 'b3' ( global float) 0:4 Constant: 0:4 0.300000 0:5 Sequence 0:5 move second child to first child ( temp float) 0:5 'b4' ( global float) 0:5 Constant: 0:5 0.400000 0:6 Sequence 0:6 move second child to first child ( temp float) 0:6 'a5' ( global float) 0:6 Constant: 0:6 0.500000 0:6 move second child to first child ( temp float) 0:6 'c5' ( global float) 0:6 Constant: 0:6 1.500000 0:9 Sequence 0:9 move second child to first child ( temp structure{ temp int f}) 0:9 'single1' ( global structure{ temp int f}) 0:9 Constant: 0:9 10 (const int) 0:12 Sequence 0:12 move second child to first child ( temp structure{ temp 2-component vector of uint v}) 0:12 'single2' ( global structure{ temp 2-component vector of uint v}) 0:12 Constant: 0:12 1 (const uint) 0:12 2 (const uint) 0:15 Sequence 0:15 move second child to first child ( temp structure{ temp structure{ temp int f} s1}) 0:15 'single3' ( global structure{ temp structure{ temp int f} s1}) 0:15 Constant: 0:15 3 (const int) 0:18 Sequence 0:18 move second child to first child ( temp structure{ temp structure{ temp 2-component vector of uint v} s1}) 0:18 'single4' ( global structure{ temp structure{ temp 2-component vector of uint v} s1}) 0:18 Constant: 0:18 4 (const uint) 0:18 5 (const uint) 0:21 Function Definition: @ShaderFunction(vf4; ( temp 4-component vector of float) 0:21 Function Parameters: 0:21 'input' ( in 4-component vector of float) 0:? Sequence 0:22 Sequence 0:22 move second child to first child ( temp 4-component vector of float) 0:22 'a2' ( temp 4-component vector of float) 0:? Constant: 0:? 0.200000 0:? 0.300000 0:? 0.400000 0:? 0.500000 0:32 Sequence 0:32 move second child to first child ( temp structure{ temp int j, temp float g, temp structure{ temp float f, temp int i} s1}) 0:32 's2i' ( temp structure{ temp int j, temp float g, temp structure{ temp float f, temp int i} s1}) 0:32 Construct structure ( temp structure{ temp int j, temp float g, temp structure{ temp float f, temp int i} s1}) 0:32 Constant: 0:32 9 (const int) 0:32 'a5' ( global float) 0:32 Construct structure ( temp structure{ temp float f, temp int i}) 0:32 Comma ( temp float) 0:32 'a3' ( global float) 0:32 'a4' ( global float) 0:32 Constant: 0:32 12 (const int) 0:32 move second child to first child ( temp structure{ temp int j, temp float g, temp structure{ temp float f, temp int i} s1}) 0:32 's2' ( temp structure{ temp int j, temp float g, temp structure{ temp float f, temp int i} s1}) 0:? Construct structure ( temp structure{ temp int j, temp float g, temp structure{ temp float f, temp int i} s1}) 0:32 Constant: 0:32 9 (const int) 0:32 'a5' ( global float) 0:? Construct structure ( temp structure{ temp float f, temp int i}) 0:32 Comma ( temp float) 0:32 'a3' ( global float) 0:32 'a4' ( global float) 0:32 Constant: 0:32 12 (const int) 0:33 Sequence 0:33 move second child to first child ( temp float) 0:33 'a8' ( temp float) 0:33 Comma ( temp float) 0:33 'a2' ( temp 4-component vector of float) 0:33 'b2' ( global float) 0:33 move second child to first child ( temp float) 0:33 'a9' ( temp float) 0:33 'a5' ( global float) 0:35 Branch: Return with expression 0:35 component-wise multiply ( temp 4-component vector of float) 0:35 'input' ( in 4-component vector of float) 0:35 'a1' ( global 4-component vector of float) 0:21 Function Definition: ShaderFunction( ( temp void) 0:21 Function Parameters: 0:? Sequence 0:21 move second child to first child ( temp 4-component vector of float) 0:? 'input' ( temp 4-component vector of float) 0:? 'input' (layout( location=0) in 4-component vector of float) 0:21 move second child to first child ( temp 4-component vector of float) 0:? '@entryPointOutput' (layout( location=0) out 4-component vector of float) 0:21 Function Call: @ShaderFunction(vf4; ( temp 4-component vector of float) 0:? 'input' ( temp 4-component vector of float) 0:? Linker Objects 0:? 'a1' ( global 4-component vector of float) 0:? 'b1' ( global 4-component vector of float) 0:? 'a1i' ( global 4-component vector of float) 0:? 'b1i' ( global 4-component vector of float) 0:? 'a2' ( global float) 0:? 'b2' ( global float) 0:? 'a3' ( global float) 0:? 'b3' ( global float) 0:? 'a4' ( global float) 0:? 'b4' ( global float) 0:? 'c4' ( global float) 0:? 'a5' ( global float) 0:? 'b5' ( global float) 0:? 'c5' ( global float) 0:? 'single1' ( global structure{ temp int f}) 0:? 'single2' ( global structure{ temp 2-component vector of uint v}) 0:? 'single3' ( global structure{ temp structure{ temp int f} s1}) 0:? 'single4' ( global structure{ temp structure{ temp 2-component vector of uint v} s1}) 0:? '@entryPointOutput' (layout( location=0) out 4-component vector of float) 0:? 'input' (layout( location=0) in 4-component vector of float) 0:? 'anon@0' (layout( row_major std140) uniform block{layout( row_major std140) uniform float a, layout( row_major std140) uniform float b, layout( row_major std140) uniform float c}) // Module Version 10000 // Generated by (magic number): 80007 // Id's are bound by 110 Capability Shader 1: ExtInstImport "GLSL.std.450" MemoryModel Logical GLSL450 EntryPoint Fragment 4 "ShaderFunction" 98 101 ExecutionMode 4 OriginUpperLeft Source HLSL 500 Name 4 "ShaderFunction" Name 11 "@ShaderFunction(vf4;" Name 10 "input" Name 14 "a1" Name 19 "b1" Name 25 "a1i" Name 26 "b1i" Name 28 "a2" Name 30 "b3" Name 32 "b4" Name 34 "a5" Name 35 "c5" Name 38 "Single1" MemberName 38(Single1) 0 "f" Name 40 "single1" Name 45 "Single2" MemberName 45(Single2) 0 "v" Name 47 "single2" Name 52 "Single3" MemberName 52(Single3) 0 "s1" Name 54 "single3" Name 58 "Single4" MemberName 58(Single4) 0 "s1" Name 60 "single4" Name 66 "a2" Name 68 "S1" MemberName 68(S1) 0 "f" MemberName 68(S1) 1 "i" Name 69 "S2" MemberName 69(S2) 0 "j" MemberName 69(S2) 1 "g" MemberName 69(S2) 2 "s1" Name 71 "s2i" Name 74 "a3" Name 75 "a4" Name 80 "s2" Name 86 "a8" Name 87 "b2" Name 89 "a9" Name 96 "input" Name 98 "input" Name 101 "@entryPointOutput" Name 102 "param" Name 105 "c4" Name 106 "b5" Name 107 "Constants" MemberName 107(Constants) 0 "a" MemberName 107(Constants) 1 "b" MemberName 107(Constants) 2 "c" Name 109 "" Decorate 98(input) Location 0 Decorate 101(@entryPointOutput) Location 0 MemberDecorate 107(Constants) 0 Offset 0 MemberDecorate 107(Constants) 1 Offset 4 MemberDecorate 107(Constants) 2 Offset 8 Decorate 107(Constants) Block Decorate 109 DescriptorSet 0 2: TypeVoid 3: TypeFunction 2 6: TypeFloat 32 7: TypeVector 6(float) 4 8: TypePointer Function 7(fvec4) 9: TypeFunction 7(fvec4) 8(ptr) 13: TypePointer Private 7(fvec4) 14(a1): 13(ptr) Variable Private 15: 6(float) Constant 1065353216 16: 6(float) Constant 1056964608 17: 6(float) Constant 0 18: 7(fvec4) ConstantComposite 15 16 17 15 19(b1): 13(ptr) Variable Private 20: 6(float) Constant 1073741824 21: 6(float) Constant 1075838976 22: 6(float) Constant 1074161254 23: 6(float) Constant 1074580685 24: 7(fvec4) ConstantComposite 20 21 22 23 25(a1i): 13(ptr) Variable Private 26(b1i): 13(ptr) Variable Private 27: TypePointer Private 6(float) 28(a2): 27(ptr) Variable Private 29: 6(float) Constant 1045220557 30(b3): 27(ptr) Variable Private 31: 6(float) Constant 1050253722 32(b4): 27(ptr) Variable Private 33: 6(float) Constant 1053609165 34(a5): 27(ptr) Variable Private 35(c5): 27(ptr) Variable Private 36: 6(float) Constant 1069547520 37: TypeInt 32 1 38(Single1): TypeStruct 37(int) 39: TypePointer Private 38(Single1) 40(single1): 39(ptr) Variable Private 41: 37(int) Constant 10 42: 38(Single1) ConstantComposite 41 43: TypeInt 32 0 44: TypeVector 43(int) 2 45(Single2): TypeStruct 44(ivec2) 46: TypePointer Private 45(Single2) 47(single2): 46(ptr) Variable Private 48: 43(int) Constant 1 49: 43(int) Constant 2 50: 44(ivec2) ConstantComposite 48 49 51: 45(Single2) ConstantComposite 50 52(Single3): TypeStruct 38(Single1) 53: TypePointer Private 52(Single3) 54(single3): 53(ptr) Variable Private 55: 37(int) Constant 3 56: 38(Single1) ConstantComposite 55 57: 52(Single3) ConstantComposite 56 58(Single4): TypeStruct 45(Single2) 59: TypePointer Private 58(Single4) 60(single4): 59(ptr) Variable Private 61: 43(int) Constant 4 62: 43(int) Constant 5 63: 44(ivec2) ConstantComposite 61 62 64: 45(Single2) ConstantComposite 63 65: 58(Single4) ConstantComposite 64 67: 7(fvec4) ConstantComposite 29 31 33 16 68(S1): TypeStruct 6(float) 37(int) 69(S2): TypeStruct 37(int) 6(float) 68(S1) 70: TypePointer Function 69(S2) 72: 37(int) Constant 9 74(a3): 27(ptr) Variable Private 75(a4): 27(ptr) Variable Private 77: 37(int) Constant 12 85: TypePointer Function 6(float) 87(b2): 27(ptr) Variable Private 97: TypePointer Input 7(fvec4) 98(input): 97(ptr) Variable Input 100: TypePointer Output 7(fvec4) 101(@entryPointOutput): 100(ptr) Variable Output 105(c4): 27(ptr) Variable Private 106(b5): 27(ptr) Variable Private 107(Constants): TypeStruct 6(float) 6(float) 6(float) 108: TypePointer Uniform 107(Constants) 109: 108(ptr) Variable Uniform 4(ShaderFunction): 2 Function None 3 5: Label 96(input): 8(ptr) Variable Function 102(param): 8(ptr) Variable Function Store 14(a1) 18 Store 19(b1) 24 Store 25(a1i) 18 Store 26(b1i) 24 Store 28(a2) 29 Store 30(b3) 31 Store 32(b4) 33 Store 34(a5) 16 Store 35(c5) 36 Store 40(single1) 42 Store 47(single2) 51 Store 54(single3) 57 Store 60(single4) 65 99: 7(fvec4) Load 98(input) Store 96(input) 99 103: 7(fvec4) Load 96(input) Store 102(param) 103 104: 7(fvec4) FunctionCall 11(@ShaderFunction(vf4;) 102(param) Store 101(@entryPointOutput) 104 Return FunctionEnd 11(@ShaderFunction(vf4;): 7(fvec4) Function None 9 10(input): 8(ptr) FunctionParameter 12: Label 66(a2): 8(ptr) Variable Function 71(s2i): 70(ptr) Variable Function 80(s2): 70(ptr) Variable Function 86(a8): 85(ptr) Variable Function 89(a9): 85(ptr) Variable Function Store 66(a2) 67 73: 6(float) Load 34(a5) 76: 6(float) Load 75(a4) 78: 68(S1) CompositeConstruct 76 77 79: 69(S2) CompositeConstruct 72 73 78 Store 71(s2i) 79 81: 6(float) Load 34(a5) 82: 6(float) Load 75(a4) 83: 68(S1) CompositeConstruct 82 77 84: 69(S2) CompositeConstruct 72 81 83 Store 80(s2) 84 88: 6(float) Load 87(b2) Store 86(a8) 88 90: 6(float) Load 34(a5) Store 89(a9) 90 91: 7(fvec4) Load 10(input) 92: 7(fvec4) Load 14(a1) 93: 7(fvec4) FMul 91 92 ReturnValue 93 FunctionEnd
{ "pile_set_name": "Github" }
add_custom_target(eigen2_buildtests) add_custom_target(eigen2_check COMMAND "ctest -R eigen2") add_dependencies(eigen2_check eigen2_buildtests) add_dependencies(buildtests eigen2_buildtests) add_definitions("-DEIGEN2_SUPPORT_STAGE10_FULL_EIGEN2_API") add_definitions("-DEIGEN_NO_EIGEN2_DEPRECATED_WARNING") ei_add_test(eigen2_meta) ei_add_test(eigen2_sizeof) ei_add_test(eigen2_dynalloc) ei_add_test(eigen2_nomalloc) #ei_add_test(eigen2_first_aligned) ei_add_test(eigen2_mixingtypes) #ei_add_test(eigen2_packetmath) ei_add_test(eigen2_unalignedassert) #ei_add_test(eigen2_vectorization_logic) ei_add_test(eigen2_basicstuff) ei_add_test(eigen2_linearstructure) ei_add_test(eigen2_cwiseop) ei_add_test(eigen2_sum) ei_add_test(eigen2_product_small) ei_add_test(eigen2_product_large ${EI_OFLAG}) ei_add_test(eigen2_adjoint) ei_add_test(eigen2_submatrices) ei_add_test(eigen2_miscmatrices) ei_add_test(eigen2_commainitializer) ei_add_test(eigen2_smallvectors) ei_add_test(eigen2_map) ei_add_test(eigen2_array) ei_add_test(eigen2_triangular) ei_add_test(eigen2_cholesky " " "${GSL_LIBRARIES}") ei_add_test(eigen2_lu ${EI_OFLAG}) ei_add_test(eigen2_determinant ${EI_OFLAG}) ei_add_test(eigen2_inverse) ei_add_test(eigen2_qr) ei_add_test(eigen2_eigensolver " " "${GSL_LIBRARIES}") ei_add_test(eigen2_svd) ei_add_test(eigen2_geometry) ei_add_test(eigen2_geometry_with_eigen2_prefix) ei_add_test(eigen2_hyperplane) ei_add_test(eigen2_parametrizedline) ei_add_test(eigen2_alignedbox) ei_add_test(eigen2_regression) ei_add_test(eigen2_stdvector) ei_add_test(eigen2_newstdvector) if(QT4_FOUND) ei_add_test(eigen2_qtvector " " "${QT_QTCORE_LIBRARY}") endif(QT4_FOUND) # no support for eigen2 sparse module # if(NOT EIGEN_DEFAULT_TO_ROW_MAJOR) # ei_add_test(eigen2_sparse_vector) # ei_add_test(eigen2_sparse_basic) # ei_add_test(eigen2_sparse_solvers " " "${SPARSE_LIBS}") # ei_add_test(eigen2_sparse_product) # endif() ei_add_test(eigen2_swap) ei_add_test(eigen2_visitor) ei_add_test(eigen2_bug_132) ei_add_test(eigen2_prec_inverse_4x4 ${EI_OFLAG})
{ "pile_set_name": "Github" }
<?php namespace Aws\Iam; use Aws\AwsClient; /** * This client is used to interact with the **AWS Identity and Access Management (AWS IAM)** service. * * @method \Aws\Result addClientIDToOpenIDConnectProvider(array $args = []) * @method \GuzzleHttp\Promise\Promise addClientIDToOpenIDConnectProviderAsync(array $args = []) * @method \Aws\Result addRoleToInstanceProfile(array $args = []) * @method \GuzzleHttp\Promise\Promise addRoleToInstanceProfileAsync(array $args = []) * @method \Aws\Result addUserToGroup(array $args = []) * @method \GuzzleHttp\Promise\Promise addUserToGroupAsync(array $args = []) * @method \Aws\Result attachGroupPolicy(array $args = []) * @method \GuzzleHttp\Promise\Promise attachGroupPolicyAsync(array $args = []) * @method \Aws\Result attachRolePolicy(array $args = []) * @method \GuzzleHttp\Promise\Promise attachRolePolicyAsync(array $args = []) * @method \Aws\Result attachUserPolicy(array $args = []) * @method \GuzzleHttp\Promise\Promise attachUserPolicyAsync(array $args = []) * @method \Aws\Result changePassword(array $args = []) * @method \GuzzleHttp\Promise\Promise changePasswordAsync(array $args = []) * @method \Aws\Result createAccessKey(array $args = []) * @method \GuzzleHttp\Promise\Promise createAccessKeyAsync(array $args = []) * @method \Aws\Result createAccountAlias(array $args = []) * @method \GuzzleHttp\Promise\Promise createAccountAliasAsync(array $args = []) * @method \Aws\Result createGroup(array $args = []) * @method \GuzzleHttp\Promise\Promise createGroupAsync(array $args = []) * @method \Aws\Result createInstanceProfile(array $args = []) * @method \GuzzleHttp\Promise\Promise createInstanceProfileAsync(array $args = []) * @method \Aws\Result createLoginProfile(array $args = []) * @method \GuzzleHttp\Promise\Promise createLoginProfileAsync(array $args = []) * @method \Aws\Result createOpenIDConnectProvider(array $args = []) * @method \GuzzleHttp\Promise\Promise createOpenIDConnectProviderAsync(array $args = []) * @method \Aws\Result createPolicy(array $args = []) * @method \GuzzleHttp\Promise\Promise createPolicyAsync(array $args = []) * @method \Aws\Result createPolicyVersion(array $args = []) * @method \GuzzleHttp\Promise\Promise createPolicyVersionAsync(array $args = []) * @method \Aws\Result createRole(array $args = []) * @method \GuzzleHttp\Promise\Promise createRoleAsync(array $args = []) * @method \Aws\Result createSAMLProvider(array $args = []) * @method \GuzzleHttp\Promise\Promise createSAMLProviderAsync(array $args = []) * @method \Aws\Result createServiceLinkedRole(array $args = []) * @method \GuzzleHttp\Promise\Promise createServiceLinkedRoleAsync(array $args = []) * @method \Aws\Result createServiceSpecificCredential(array $args = []) * @method \GuzzleHttp\Promise\Promise createServiceSpecificCredentialAsync(array $args = []) * @method \Aws\Result createUser(array $args = []) * @method \GuzzleHttp\Promise\Promise createUserAsync(array $args = []) * @method \Aws\Result createVirtualMFADevice(array $args = []) * @method \GuzzleHttp\Promise\Promise createVirtualMFADeviceAsync(array $args = []) * @method \Aws\Result deactivateMFADevice(array $args = []) * @method \GuzzleHttp\Promise\Promise deactivateMFADeviceAsync(array $args = []) * @method \Aws\Result deleteAccessKey(array $args = []) * @method \GuzzleHttp\Promise\Promise deleteAccessKeyAsync(array $args = []) * @method \Aws\Result deleteAccountAlias(array $args = []) * @method \GuzzleHttp\Promise\Promise deleteAccountAliasAsync(array $args = []) * @method \Aws\Result deleteAccountPasswordPolicy(array $args = []) * @method \GuzzleHttp\Promise\Promise deleteAccountPasswordPolicyAsync(array $args = []) * @method \Aws\Result deleteGroup(array $args = []) * @method \GuzzleHttp\Promise\Promise deleteGroupAsync(array $args = []) * @method \Aws\Result deleteGroupPolicy(array $args = []) * @method \GuzzleHttp\Promise\Promise deleteGroupPolicyAsync(array $args = []) * @method \Aws\Result deleteInstanceProfile(array $args = []) * @method \GuzzleHttp\Promise\Promise deleteInstanceProfileAsync(array $args = []) * @method \Aws\Result deleteLoginProfile(array $args = []) * @method \GuzzleHttp\Promise\Promise deleteLoginProfileAsync(array $args = []) * @method \Aws\Result deleteOpenIDConnectProvider(array $args = []) * @method \GuzzleHttp\Promise\Promise deleteOpenIDConnectProviderAsync(array $args = []) * @method \Aws\Result deletePolicy(array $args = []) * @method \GuzzleHttp\Promise\Promise deletePolicyAsync(array $args = []) * @method \Aws\Result deletePolicyVersion(array $args = []) * @method \GuzzleHttp\Promise\Promise deletePolicyVersionAsync(array $args = []) * @method \Aws\Result deleteRole(array $args = []) * @method \GuzzleHttp\Promise\Promise deleteRoleAsync(array $args = []) * @method \Aws\Result deleteRolePermissionsBoundary(array $args = []) * @method \GuzzleHttp\Promise\Promise deleteRolePermissionsBoundaryAsync(array $args = []) * @method \Aws\Result deleteRolePolicy(array $args = []) * @method \GuzzleHttp\Promise\Promise deleteRolePolicyAsync(array $args = []) * @method \Aws\Result deleteSAMLProvider(array $args = []) * @method \GuzzleHttp\Promise\Promise deleteSAMLProviderAsync(array $args = []) * @method \Aws\Result deleteSSHPublicKey(array $args = []) * @method \GuzzleHttp\Promise\Promise deleteSSHPublicKeyAsync(array $args = []) * @method \Aws\Result deleteServerCertificate(array $args = []) * @method \GuzzleHttp\Promise\Promise deleteServerCertificateAsync(array $args = []) * @method \Aws\Result deleteServiceLinkedRole(array $args = []) * @method \GuzzleHttp\Promise\Promise deleteServiceLinkedRoleAsync(array $args = []) * @method \Aws\Result deleteServiceSpecificCredential(array $args = []) * @method \GuzzleHttp\Promise\Promise deleteServiceSpecificCredentialAsync(array $args = []) * @method \Aws\Result deleteSigningCertificate(array $args = []) * @method \GuzzleHttp\Promise\Promise deleteSigningCertificateAsync(array $args = []) * @method \Aws\Result deleteUser(array $args = []) * @method \GuzzleHttp\Promise\Promise deleteUserAsync(array $args = []) * @method \Aws\Result deleteUserPermissionsBoundary(array $args = []) * @method \GuzzleHttp\Promise\Promise deleteUserPermissionsBoundaryAsync(array $args = []) * @method \Aws\Result deleteUserPolicy(array $args = []) * @method \GuzzleHttp\Promise\Promise deleteUserPolicyAsync(array $args = []) * @method \Aws\Result deleteVirtualMFADevice(array $args = []) * @method \GuzzleHttp\Promise\Promise deleteVirtualMFADeviceAsync(array $args = []) * @method \Aws\Result detachGroupPolicy(array $args = []) * @method \GuzzleHttp\Promise\Promise detachGroupPolicyAsync(array $args = []) * @method \Aws\Result detachRolePolicy(array $args = []) * @method \GuzzleHttp\Promise\Promise detachRolePolicyAsync(array $args = []) * @method \Aws\Result detachUserPolicy(array $args = []) * @method \GuzzleHttp\Promise\Promise detachUserPolicyAsync(array $args = []) * @method \Aws\Result enableMFADevice(array $args = []) * @method \GuzzleHttp\Promise\Promise enableMFADeviceAsync(array $args = []) * @method \Aws\Result generateCredentialReport(array $args = []) * @method \GuzzleHttp\Promise\Promise generateCredentialReportAsync(array $args = []) * @method \Aws\Result getAccessKeyLastUsed(array $args = []) * @method \GuzzleHttp\Promise\Promise getAccessKeyLastUsedAsync(array $args = []) * @method \Aws\Result getAccountAuthorizationDetails(array $args = []) * @method \GuzzleHttp\Promise\Promise getAccountAuthorizationDetailsAsync(array $args = []) * @method \Aws\Result getAccountPasswordPolicy(array $args = []) * @method \GuzzleHttp\Promise\Promise getAccountPasswordPolicyAsync(array $args = []) * @method \Aws\Result getAccountSummary(array $args = []) * @method \GuzzleHttp\Promise\Promise getAccountSummaryAsync(array $args = []) * @method \Aws\Result getContextKeysForCustomPolicy(array $args = []) * @method \GuzzleHttp\Promise\Promise getContextKeysForCustomPolicyAsync(array $args = []) * @method \Aws\Result getContextKeysForPrincipalPolicy(array $args = []) * @method \GuzzleHttp\Promise\Promise getContextKeysForPrincipalPolicyAsync(array $args = []) * @method \Aws\Result getCredentialReport(array $args = []) * @method \GuzzleHttp\Promise\Promise getCredentialReportAsync(array $args = []) * @method \Aws\Result getGroup(array $args = []) * @method \GuzzleHttp\Promise\Promise getGroupAsync(array $args = []) * @method \Aws\Result getGroupPolicy(array $args = []) * @method \GuzzleHttp\Promise\Promise getGroupPolicyAsync(array $args = []) * @method \Aws\Result getInstanceProfile(array $args = []) * @method \GuzzleHttp\Promise\Promise getInstanceProfileAsync(array $args = []) * @method \Aws\Result getLoginProfile(array $args = []) * @method \GuzzleHttp\Promise\Promise getLoginProfileAsync(array $args = []) * @method \Aws\Result getOpenIDConnectProvider(array $args = []) * @method \GuzzleHttp\Promise\Promise getOpenIDConnectProviderAsync(array $args = []) * @method \Aws\Result getPolicy(array $args = []) * @method \GuzzleHttp\Promise\Promise getPolicyAsync(array $args = []) * @method \Aws\Result getPolicyVersion(array $args = []) * @method \GuzzleHttp\Promise\Promise getPolicyVersionAsync(array $args = []) * @method \Aws\Result getRole(array $args = []) * @method \GuzzleHttp\Promise\Promise getRoleAsync(array $args = []) * @method \Aws\Result getRolePolicy(array $args = []) * @method \GuzzleHttp\Promise\Promise getRolePolicyAsync(array $args = []) * @method \Aws\Result getSAMLProvider(array $args = []) * @method \GuzzleHttp\Promise\Promise getSAMLProviderAsync(array $args = []) * @method \Aws\Result getSSHPublicKey(array $args = []) * @method \GuzzleHttp\Promise\Promise getSSHPublicKeyAsync(array $args = []) * @method \Aws\Result getServerCertificate(array $args = []) * @method \GuzzleHttp\Promise\Promise getServerCertificateAsync(array $args = []) * @method \Aws\Result getServiceLinkedRoleDeletionStatus(array $args = []) * @method \GuzzleHttp\Promise\Promise getServiceLinkedRoleDeletionStatusAsync(array $args = []) * @method \Aws\Result getUser(array $args = []) * @method \GuzzleHttp\Promise\Promise getUserAsync(array $args = []) * @method \Aws\Result getUserPolicy(array $args = []) * @method \GuzzleHttp\Promise\Promise getUserPolicyAsync(array $args = []) * @method \Aws\Result listAccessKeys(array $args = []) * @method \GuzzleHttp\Promise\Promise listAccessKeysAsync(array $args = []) * @method \Aws\Result listAccountAliases(array $args = []) * @method \GuzzleHttp\Promise\Promise listAccountAliasesAsync(array $args = []) * @method \Aws\Result listAttachedGroupPolicies(array $args = []) * @method \GuzzleHttp\Promise\Promise listAttachedGroupPoliciesAsync(array $args = []) * @method \Aws\Result listAttachedRolePolicies(array $args = []) * @method \GuzzleHttp\Promise\Promise listAttachedRolePoliciesAsync(array $args = []) * @method \Aws\Result listAttachedUserPolicies(array $args = []) * @method \GuzzleHttp\Promise\Promise listAttachedUserPoliciesAsync(array $args = []) * @method \Aws\Result listEntitiesForPolicy(array $args = []) * @method \GuzzleHttp\Promise\Promise listEntitiesForPolicyAsync(array $args = []) * @method \Aws\Result listGroupPolicies(array $args = []) * @method \GuzzleHttp\Promise\Promise listGroupPoliciesAsync(array $args = []) * @method \Aws\Result listGroups(array $args = []) * @method \GuzzleHttp\Promise\Promise listGroupsAsync(array $args = []) * @method \Aws\Result listGroupsForUser(array $args = []) * @method \GuzzleHttp\Promise\Promise listGroupsForUserAsync(array $args = []) * @method \Aws\Result listInstanceProfiles(array $args = []) * @method \GuzzleHttp\Promise\Promise listInstanceProfilesAsync(array $args = []) * @method \Aws\Result listInstanceProfilesForRole(array $args = []) * @method \GuzzleHttp\Promise\Promise listInstanceProfilesForRoleAsync(array $args = []) * @method \Aws\Result listMFADevices(array $args = []) * @method \GuzzleHttp\Promise\Promise listMFADevicesAsync(array $args = []) * @method \Aws\Result listOpenIDConnectProviders(array $args = []) * @method \GuzzleHttp\Promise\Promise listOpenIDConnectProvidersAsync(array $args = []) * @method \Aws\Result listPolicies(array $args = []) * @method \GuzzleHttp\Promise\Promise listPoliciesAsync(array $args = []) * @method \Aws\Result listPolicyVersions(array $args = []) * @method \GuzzleHttp\Promise\Promise listPolicyVersionsAsync(array $args = []) * @method \Aws\Result listRolePolicies(array $args = []) * @method \GuzzleHttp\Promise\Promise listRolePoliciesAsync(array $args = []) * @method \Aws\Result listRoleTags(array $args = []) * @method \GuzzleHttp\Promise\Promise listRoleTagsAsync(array $args = []) * @method \Aws\Result listRoles(array $args = []) * @method \GuzzleHttp\Promise\Promise listRolesAsync(array $args = []) * @method \Aws\Result listSAMLProviders(array $args = []) * @method \GuzzleHttp\Promise\Promise listSAMLProvidersAsync(array $args = []) * @method \Aws\Result listSSHPublicKeys(array $args = []) * @method \GuzzleHttp\Promise\Promise listSSHPublicKeysAsync(array $args = []) * @method \Aws\Result listServerCertificates(array $args = []) * @method \GuzzleHttp\Promise\Promise listServerCertificatesAsync(array $args = []) * @method \Aws\Result listServiceSpecificCredentials(array $args = []) * @method \GuzzleHttp\Promise\Promise listServiceSpecificCredentialsAsync(array $args = []) * @method \Aws\Result listSigningCertificates(array $args = []) * @method \GuzzleHttp\Promise\Promise listSigningCertificatesAsync(array $args = []) * @method \Aws\Result listUserPolicies(array $args = []) * @method \GuzzleHttp\Promise\Promise listUserPoliciesAsync(array $args = []) * @method \Aws\Result listUserTags(array $args = []) * @method \GuzzleHttp\Promise\Promise listUserTagsAsync(array $args = []) * @method \Aws\Result listUsers(array $args = []) * @method \GuzzleHttp\Promise\Promise listUsersAsync(array $args = []) * @method \Aws\Result listVirtualMFADevices(array $args = []) * @method \GuzzleHttp\Promise\Promise listVirtualMFADevicesAsync(array $args = []) * @method \Aws\Result putGroupPolicy(array $args = []) * @method \GuzzleHttp\Promise\Promise putGroupPolicyAsync(array $args = []) * @method \Aws\Result putRolePermissionsBoundary(array $args = []) * @method \GuzzleHttp\Promise\Promise putRolePermissionsBoundaryAsync(array $args = []) * @method \Aws\Result putRolePolicy(array $args = []) * @method \GuzzleHttp\Promise\Promise putRolePolicyAsync(array $args = []) * @method \Aws\Result putUserPermissionsBoundary(array $args = []) * @method \GuzzleHttp\Promise\Promise putUserPermissionsBoundaryAsync(array $args = []) * @method \Aws\Result putUserPolicy(array $args = []) * @method \GuzzleHttp\Promise\Promise putUserPolicyAsync(array $args = []) * @method \Aws\Result removeClientIDFromOpenIDConnectProvider(array $args = []) * @method \GuzzleHttp\Promise\Promise removeClientIDFromOpenIDConnectProviderAsync(array $args = []) * @method \Aws\Result removeRoleFromInstanceProfile(array $args = []) * @method \GuzzleHttp\Promise\Promise removeRoleFromInstanceProfileAsync(array $args = []) * @method \Aws\Result removeUserFromGroup(array $args = []) * @method \GuzzleHttp\Promise\Promise removeUserFromGroupAsync(array $args = []) * @method \Aws\Result resetServiceSpecificCredential(array $args = []) * @method \GuzzleHttp\Promise\Promise resetServiceSpecificCredentialAsync(array $args = []) * @method \Aws\Result resyncMFADevice(array $args = []) * @method \GuzzleHttp\Promise\Promise resyncMFADeviceAsync(array $args = []) * @method \Aws\Result setDefaultPolicyVersion(array $args = []) * @method \GuzzleHttp\Promise\Promise setDefaultPolicyVersionAsync(array $args = []) * @method \Aws\Result simulateCustomPolicy(array $args = []) * @method \GuzzleHttp\Promise\Promise simulateCustomPolicyAsync(array $args = []) * @method \Aws\Result simulatePrincipalPolicy(array $args = []) * @method \GuzzleHttp\Promise\Promise simulatePrincipalPolicyAsync(array $args = []) * @method \Aws\Result tagRole(array $args = []) * @method \GuzzleHttp\Promise\Promise tagRoleAsync(array $args = []) * @method \Aws\Result tagUser(array $args = []) * @method \GuzzleHttp\Promise\Promise tagUserAsync(array $args = []) * @method \Aws\Result untagRole(array $args = []) * @method \GuzzleHttp\Promise\Promise untagRoleAsync(array $args = []) * @method \Aws\Result untagUser(array $args = []) * @method \GuzzleHttp\Promise\Promise untagUserAsync(array $args = []) * @method \Aws\Result updateAccessKey(array $args = []) * @method \GuzzleHttp\Promise\Promise updateAccessKeyAsync(array $args = []) * @method \Aws\Result updateAccountPasswordPolicy(array $args = []) * @method \GuzzleHttp\Promise\Promise updateAccountPasswordPolicyAsync(array $args = []) * @method \Aws\Result updateAssumeRolePolicy(array $args = []) * @method \GuzzleHttp\Promise\Promise updateAssumeRolePolicyAsync(array $args = []) * @method \Aws\Result updateGroup(array $args = []) * @method \GuzzleHttp\Promise\Promise updateGroupAsync(array $args = []) * @method \Aws\Result updateLoginProfile(array $args = []) * @method \GuzzleHttp\Promise\Promise updateLoginProfileAsync(array $args = []) * @method \Aws\Result updateOpenIDConnectProviderThumbprint(array $args = []) * @method \GuzzleHttp\Promise\Promise updateOpenIDConnectProviderThumbprintAsync(array $args = []) * @method \Aws\Result updateRole(array $args = []) * @method \GuzzleHttp\Promise\Promise updateRoleAsync(array $args = []) * @method \Aws\Result updateRoleDescription(array $args = []) * @method \GuzzleHttp\Promise\Promise updateRoleDescriptionAsync(array $args = []) * @method \Aws\Result updateSAMLProvider(array $args = []) * @method \GuzzleHttp\Promise\Promise updateSAMLProviderAsync(array $args = []) * @method \Aws\Result updateSSHPublicKey(array $args = []) * @method \GuzzleHttp\Promise\Promise updateSSHPublicKeyAsync(array $args = []) * @method \Aws\Result updateServerCertificate(array $args = []) * @method \GuzzleHttp\Promise\Promise updateServerCertificateAsync(array $args = []) * @method \Aws\Result updateServiceSpecificCredential(array $args = []) * @method \GuzzleHttp\Promise\Promise updateServiceSpecificCredentialAsync(array $args = []) * @method \Aws\Result updateSigningCertificate(array $args = []) * @method \GuzzleHttp\Promise\Promise updateSigningCertificateAsync(array $args = []) * @method \Aws\Result updateUser(array $args = []) * @method \GuzzleHttp\Promise\Promise updateUserAsync(array $args = []) * @method \Aws\Result uploadSSHPublicKey(array $args = []) * @method \GuzzleHttp\Promise\Promise uploadSSHPublicKeyAsync(array $args = []) * @method \Aws\Result uploadServerCertificate(array $args = []) * @method \GuzzleHttp\Promise\Promise uploadServerCertificateAsync(array $args = []) * @method \Aws\Result uploadSigningCertificate(array $args = []) * @method \GuzzleHttp\Promise\Promise uploadSigningCertificateAsync(array $args = []) */ class IamClient extends AwsClient {}
{ "pile_set_name": "Github" }
msgid "" msgstr "Content-Type: text/plain; charset=UTF-8" #: dbgintfcommonstrings.rsrunerrorarithmeticoverflowerror msgid "Arithmetic overflow error" msgstr "" #: dbgintfcommonstrings.rsrunerrorassertionfailederror msgid "Assertion failed error" msgstr "" #: dbgintfcommonstrings.rsrunerrorbaddriverequeststructleng msgid "Bad drive request struct length" msgstr "" #: dbgintfcommonstrings.rsrunerrorcalltoabstractmethod msgid "Call to abstract method" msgstr "" #: dbgintfcommonstrings.rsrunerrorcannotremovecurrentdirect msgid "Cannot remove current directory" msgstr "" #: dbgintfcommonstrings.rsrunerrorcannotrenameacrossdrives msgid "Cannot rename across drives" msgstr "" #: dbgintfcommonstrings.rsrunerrorcollectionindexoutofrange msgid "Collection index out of range" msgstr "" #: dbgintfcommonstrings.rsrunerrorcollectionoverflowerror msgid "Collection overflow error" msgstr "" #: dbgintfcommonstrings.rsrunerrorcrcerrorindata msgid "CRC error in data" msgstr "" #: dbgintfcommonstrings.rsrunerrordevicereadfault msgid "Device read fault" msgstr "" #: dbgintfcommonstrings.rsrunerrordevicewritefault msgid "Device write fault" msgstr "" #: dbgintfcommonstrings.rsrunerrordiskiswriteprotected msgid "Disk is write-protected" msgstr "" #: dbgintfcommonstrings.rsrunerrordiskreaderror msgid "Disk read error" msgstr "" #: dbgintfcommonstrings.rsrunerrordiskseekerror msgid "Disk seek error" msgstr "" #: dbgintfcommonstrings.rsrunerrordiskwriteerror msgid "Disk write error" msgstr "" #: dbgintfcommonstrings.rsrunerrordivisionbyzero msgid "Division by zero" msgstr "" #: dbgintfcommonstrings.rsrunerrordrivenotready msgid "Drive not ready" msgstr "" #: dbgintfcommonstrings.rsrunerrorexceptionstackcorrupted msgid "Exception stack corrupted" msgstr "" #: dbgintfcommonstrings.rsrunerrorfileaccessdenied msgid "File access denied" msgstr "" #: dbgintfcommonstrings.rsrunerrorfilenotassigned msgid "File not assigned" msgstr "" #: dbgintfcommonstrings.rsrunerrorfilenotfound msgid "File not found" msgstr "" #: dbgintfcommonstrings.rsrunerrorfilenotopen msgid "File not open" msgstr "" #: dbgintfcommonstrings.rsrunerrorfilenotopenforinput msgid "File not open for input" msgstr "" #: dbgintfcommonstrings.rsrunerrorfilenotopenforoutput msgid "File not open for output" msgstr "" #: dbgintfcommonstrings.rsrunerrorfloatingpointoverflow msgid "Floating point overflow" msgstr "" #: dbgintfcommonstrings.rsrunerrorfloatingpointunderflow msgid "Floating point underflow" msgstr "" #: dbgintfcommonstrings.rsrunerrorgeneralprotectionfault msgid "General Protection fault" msgstr "" #: dbgintfcommonstrings.rsrunerrorhardwarefailure msgid "Hardware failure" msgstr "" #: dbgintfcommonstrings.rsrunerrorheapoverflowerror msgid "Heap overflow error" msgstr "" #: dbgintfcommonstrings.rsrunerrorinvaliddrivenumber msgid "Invalid drive number" msgstr "" #: dbgintfcommonstrings.rsrunerrorinvalidenumeration msgid "Invalid enumeration" msgstr "" #: dbgintfcommonstrings.rsrunerrorinvalidfileaccesscode msgid "Invalid file access code" msgstr "" #: dbgintfcommonstrings.rsrunerrorinvalidfilehandle msgid "Invalid file handle" msgstr "" #: dbgintfcommonstrings.rsrunerrorinvalidfloatingpointopera msgid "Invalid floating point operation" msgstr "" #: dbgintfcommonstrings.rsrunerrorinvalidfunctionnumber msgid "Invalid function number" msgstr "" #: dbgintfcommonstrings.rsrunerrorinvalidnumericformat msgid "Invalid numeric format" msgstr "" #: dbgintfcommonstrings.rsrunerrorinvalidpointeroperation msgid "Invalid pointer operation" msgstr "" #: dbgintfcommonstrings.rsrunerrorinvalidtypecast msgid "Invalid typecast" msgstr "" #: dbgintfcommonstrings.rsrunerrorinvalidvaluespecified msgid "Invalid value specified" msgstr "" #: dbgintfcommonstrings.rsrunerrorobjectnotinitialized msgid "Object not initialized" msgstr "" #: dbgintfcommonstrings.rsrunerrorpathnotfound msgid "Path not found" msgstr "" #: dbgintfcommonstrings.rsrunerrorprinteroutofpaper msgid "Printer out of paper" msgstr "" #: dbgintfcommonstrings.rsrunerrorrangecheckerror msgid "Range check error" msgstr "" #: dbgintfcommonstrings.rsrunerrorsafecallerrorcheck msgid "Safecall error check" msgstr "" #: dbgintfcommonstrings.rsrunerrorsectornotfound msgid "Sector Not Found" msgstr "" #: dbgintfcommonstrings.rsrunerrorstackoverflowerror msgid "Stack overflow error" msgstr "" #: dbgintfcommonstrings.rsrunerrorstreamregistrationerror msgid "Stream registration error" msgstr "" #: dbgintfcommonstrings.rsrunerrorthreadsnotsupported msgid "Threads not supported" msgstr "" #: dbgintfcommonstrings.rsrunerrortoomanyopenfiles msgid "Too many open files" msgstr "" #: dbgintfcommonstrings.rsrunerrorunhandledexceptionoccurre msgid "Unhandled exception occurred" msgstr "" #: dbgintfcommonstrings.rsrunerrorunknownmediatype msgid "Unknown media type" msgstr "" #: dbgintfcommonstrings.rsrunerrorvararrayboundscheckerror msgid "Var Array Bounds check error" msgstr "" #: dbgintfcommonstrings.rsrunerrorvariantarraycreate msgid "Variant array create" msgstr "" #: dbgintfcommonstrings.rsrunerrorvariantdispatcherror msgid "Variant dispatch error" msgstr "" #: dbgintfcommonstrings.rsrunerrorvariantisnotanarray msgid "Variant is not an array" msgstr ""
{ "pile_set_name": "Github" }
using System; using System.Collections.Generic; using System.Threading; using Microsoft.VisualStudio.TestTools.UnitTesting; using Moq; using Renci.SshNet.Channels; using Renci.SshNet.Common; using Renci.SshNet.Messages.Connection; namespace Renci.SshNet.Tests.Classes.Channels { [TestClass] public class ChannelSessionTest_Dispose_SessionIsConnectedAndChannelIsOpen_ChannelEofReceived_SendChannelCloseMessageFailure : ChannelSessionTestBase { private uint _localChannelNumber; private uint _localWindowSize; private uint _localPacketSize; private uint _remoteChannelNumber; private uint _remoteWindowSize; private uint _remotePacketSize; private IList<ChannelEventArgs> _channelClosedRegister; private List<ExceptionEventArgs> _channelExceptionRegister; private ChannelSession _channel; private MockSequence _sequence; private SemaphoreLight _sessionSemaphore; private int _initialSessionSemaphoreCount; protected override void SetupData() { var random = new Random(); _localChannelNumber = (uint) random.Next(0, int.MaxValue); _localWindowSize = (uint) random.Next(0, int.MaxValue); _localPacketSize = (uint) random.Next(0, int.MaxValue); _remoteChannelNumber = (uint) random.Next(0, int.MaxValue); _remoteWindowSize = (uint) random.Next(0, int.MaxValue); _remotePacketSize = (uint) random.Next(0, int.MaxValue); _channelClosedRegister = new List<ChannelEventArgs>(); _channelExceptionRegister = new List<ExceptionEventArgs>(); _initialSessionSemaphoreCount = random.Next(10, 20); _sessionSemaphore = new SemaphoreLight(_initialSessionSemaphoreCount); } protected override void SetupMocks() { _sequence = new MockSequence(); SessionMock.InSequence(_sequence).Setup(p => p.ConnectionInfo).Returns(ConnectionInfoMock.Object); ConnectionInfoMock.InSequence(_sequence).Setup(p => p.RetryAttempts).Returns(1); SessionMock.Setup(p => p.SessionSemaphore).Returns(_sessionSemaphore); SessionMock.InSequence(_sequence) .Setup( p => p.SendMessage( It.Is<ChannelOpenMessage>( m => m.LocalChannelNumber == _localChannelNumber && m.InitialWindowSize == _localWindowSize && m.MaximumPacketSize == _localPacketSize && m.Info is SessionChannelOpenInfo))); SessionMock.InSequence(_sequence) .Setup(p => p.WaitOnHandle(It.IsNotNull<WaitHandle>())) .Callback<WaitHandle>( w => { SessionMock.Raise( s => s.ChannelOpenConfirmationReceived += null, new MessageEventArgs<ChannelOpenConfirmationMessage>( new ChannelOpenConfirmationMessage( _localChannelNumber, _remoteWindowSize, _remotePacketSize, _remoteChannelNumber))); w.WaitOne(); }); SessionMock.Setup(p => p.IsConnected).Returns(true); SessionMock.InSequence(_sequence) .Setup( p => p.TrySendMessage(It.Is<ChannelCloseMessage>(c => c.LocalChannelNumber == _remoteChannelNumber))) .Returns(false); } protected override void Arrange() { base.Arrange(); _channel = new ChannelSession(SessionMock.Object, _localChannelNumber, _localWindowSize, _localPacketSize); _channel.Closed += (sender, args) => _channelClosedRegister.Add(args); _channel.Exception += (sender, args) => _channelExceptionRegister.Add(args); _channel.Open(); SessionMock.Raise( p => p.ChannelEofReceived += null, new MessageEventArgs<ChannelEofMessage>(new ChannelEofMessage(_localChannelNumber))); } protected override void Act() { _channel.Dispose(); } [TestMethod] public void CurrentCountOfSessionSemaphoreShouldBeEqualToInitialCount() { Assert.AreEqual(_initialSessionSemaphoreCount, _sessionSemaphore.CurrentCount); } [TestMethod] public void ExceptionShouldNeverHaveFired() { Assert.AreEqual(0, _channelExceptionRegister.Count); } [TestMethod] public void ClosedEventShouldNeverHaveFired() { Assert.AreEqual(0, _channelClosedRegister.Count); } [TestMethod] public void IsOpenShouldReturnFalse() { Assert.IsFalse(_channel.IsOpen); } } }
{ "pile_set_name": "Github" }
export { "PolyhedralObject", -- Cone object with associated methods: "Cone", "coneFromVData", "coneFromRays" => "coneFromVData", "coneFromHData", "coneFromInequalities" => "coneFromHData", -- Polyhedron object with associated methods: "Polyhedron", "convexHull", "polyhedron", "polyhedronFromHData", "polyhedronFromInequalities" => "polyhedronFromHData", "dualFaceRepresentationMap", "facets", "Fan", "PolyhedralComplex", "intersection", "fan", "fanFromGfan", "addCone", "polyhedralComplex", "addPolyhedron", "ambDim", "cones", "maxCones", "maxPolyhedra", "halfspaces", "hyperplanes", "linSpace", "linealitySpace", "linearTransform", "polyhedra", "vertices", "areCompatible", "commonFace", "contains", "isCompact", "isComplete", "isEmpty", "isFace", "isFullDimensional", "isLatticePolytope", "isPointed", "isPolytopal", "isPure", "isReflexive", "isSimplicial", "isSmooth", "isVeryAmple", "faces", "facesAsPolyhedra", "facesAsCones", "fVector", "incompCones", "incompPolyhedra", "inInterior", "interiorPoint", "interiorVector", "interiorLatticePoints", "latticePoints", "latticeVolume", "maxFace", "minFace", "objectiveVector", "minkSummandCone", "mixedVolume", "polytope", "posHull" => "coneFromVData", "proximum", "skeleton", "smallestFace", "smoothSubfan", "stellarSubdivision", "tailCone", "triangulate", "volume", "vertexEdgeMatrix", "vertexFacetMatrix", "affineHull", "affineImage", "affinePreimage", "bipyramid", "ccRefinement", "directProduct", "dualCone", "faceFan", "imageFan", "minkowskiSum", "normalFan", "nVertices", "polar", "polarFace", "pyramid", "sublatticeBasis", "toSublattice", "crossPolytope", "cellDecompose", "cyclicPolytope", "ehrhart", "emptyPolyhedron", "hirzebruch", "hypercube", "newtonPolytope", "posOrthant", "secondaryPolytope", "statePolytope", "stdSimplex", "simplex", "saveSession", "regularTriangulation", "barycentricTriangulation", "regularSubdivision", "minimalNonFaces", "stanleyReisnerRing" }
{ "pile_set_name": "Github" }
(function($) { var subscription = { init: function() { $('input#wpuf-recuring-pay').on('click', this.showSubscriptionRecurring ); $('input#wpuf-trial-status').on('click', this.showSubscriptionPack ); $('.wpuf-coupon-info-wrap').on( 'click','a.wpuf-apply-coupon', this.couponApply ); $('.wpuf-coupon-info-wrap').on( 'click','a.wpuf-copon-show', this.couponShow ); $('.wpuf-coupon-info-wrap').on( 'click','a.wpuf-copon-cancel', this.couponCancel ); $('.wpuf-assing-pack-btn').on( 'click', this.showPackDropdown ); $('.wpuf-delete-pack-btn').on( 'click', this.deletePack ); $('.wpuf-disabled-link').click( this.packAlert ); //on change enable expiration check status this.changeExpirationFieldVisibility(':checkbox#wpuf-enable_post_expiration'); $('.wpuf-metabox-post_expiration').on('change',':checkbox#wpuf-enable_post_expiration',this.changeExpirationFieldVisibility); //on change expiration type drop down //this.setTimeExpiration('select#wpuf-expiration_time_type'); $('.wpuf-metabox-post_expiration').on('change','select#wpuf-expiration_time_type',this.setTimeExpiration); }, packAlert : function () { alert( wpuf_subscription.pack_notice ); }, showPackDropdown: function(e) { e.preventDefault(); var self = $(this), wrap = self.parents('.wpuf-user-subscription'), sub_dropdown = wrap.find('.wpuf-pack-dropdown'), sub_details = wrap.find('.wpuf-user-sub-info'), cancel_btn = wrap.find('.wpuf-cancel-pack'), add_btn = wrap.find('.wpuf-add-pack'); if ( sub_dropdown.attr( 'disabled' ) === 'disabled' ) { sub_dropdown.show().removeAttr('disabled'); sub_details.hide().attr('disabled', true ); cancel_btn.show(); add_btn.hide(); } else { sub_details.show().removeAttr('disabled'); sub_dropdown.hide().attr('disabled', true ); cancel_btn.hide(); add_btn.show(); } }, deletePack: function(e){ var self = $(this), wrap = self.parents('.wpuf-user-subscription'), sub_dropdown = wrap.find('.wpuf-pack-dropdown'), selected_sub = wrap.find( '#wpuf_sub_pack' ), userid = $(e.target).attr('data-userid'), packid = $(e.target).attr('data-packid'); wrap.find('.wpuf-delete-pack-btn').attr('disabled', true); wrap.css('opacity', 0.5); $.post( ajaxurl, { 'action' : 'wpuf_delete_user_package', 'userid' : userid, 'packid' : packid, 'wpuf_subscription_delete_nonce': wpuf_subs_vars.wpuf_subscription_delete_nonce }, function(data){ if(data){ wrap.css( 'opacity', 1 ); $('.wpuf-user-sub-info').remove(); $(e.target).remove(); selected_sub.val(-1); sub_dropdown.show(); } } ); }, couponCancel: function(e) { e.preventDefault(); var self = $(this), data = { action: 'coupon_cancel', _wpnonce: wpuf_frontend.nonce, pack_id: self.data('pack_id') }, coupon_field = self.parents('.wpuf-coupon-info-wrap').find('input.wpuf-coupon-field'); coupon_field.addClass('wpuf-coupon-field-spinner'); $.post( wpuf_frontend.ajaxurl, data, function( res ) { coupon_field.removeClass('wpuf-coupon-field-spinner'); if ( res.success ) { $('.wpuf-pack-inner' ).html( res.data.append_data ); $('.wpuf-coupon-id-field').val(''); var coupon_wrap = self.closest('.wpuf-copon-wrap'); coupon_wrap.hide(); coupon_wrap.siblings('.wpuf-copon-show').show(); $('.wpuf-subscription-success').html(''); $('.wpuf-subscription-error').html(''); } }); }, couponShow: function(e) { e.preventDefault(); var self = $(this); self.hide(); self.parents('.wpuf-coupon-info-wrap').find('.wpuf-copon-wrap').show(); }, couponApply: function(e) { e.preventDefault(); var self = $(this), coupon_field = self.parents('.wpuf-coupon-info-wrap').find('input.wpuf-coupon-field'), coupon = coupon_field.val(); if ( coupon === '' ) { $('.wpuf-subscription-error').html( wpuf_frontend.coupon_error ); return; } var data = { action: 'coupon_apply', _wpnonce: wpuf_frontend.nonce, coupon: coupon, pack_id: self.data('pack_id') }; if ( self.attr('disabled') === 'disabled' ) { //return; } self.attr( 'disabled', true ); coupon_field.addClass('wpuf-coupon-field-spinner'); $.post( wpuf_frontend.ajaxurl, data, function( res ) { coupon_field.removeClass('wpuf-coupon-field-spinner'); if ( res.success ) { $('.wpuf-pack-inner' ).html( res.data.append_data ); $('.wpuf-coupon-id-field').val( res.data.coupon_id ); if ( res.data.amount <= 0 ) { $('.wpuf-nullamount-hide').hide(); } $('.wpuf-subscription-success').html(res.data.message); $('.wpuf-subscription-error').html(''); } else { $('.wpuf-subscription-success').html(''); $('.wpuf-subscription-error').html(res.data.message); } }); }, showSubscriptionRecurring: function() { var self = $(this), wrap = self.parents('table.form-table'), pack_child = wrap.find('.wpuf-recurring-child'), trial_checkbox = wrap.find('input#wpuf-trial-status'), trial_child = wrap.find('.wpuf-trial-child'), expire_field = wrap.find('.wpuf-subcription-expire'); if ( self.is(':checked') ) { if ( trial_checkbox.is(':checked') ) { trial_child.show(); } pack_child.show(); expire_field.hide(); } else { trial_child.hide(); pack_child.hide(); expire_field.show(); } }, showSubscriptionPack: function() { var self = $(this), pack_status = self.closest('table.form-table').find('.wpuf-trial-child'); if ( self.is(':checked') ) { pack_status.show(); } else { pack_status.hide(); } }, setTimeExpiration: function(e){ var timeArray = { 'day' : 30, 'month' : 12, 'year': 100 }; $('#wpuf-expiration_time_value').html(''); var timeVal = e.target?$(e.target).val():$(e).val(); for(var time = 1; time <= timeArray[timeVal]; time++){ $('#wpuf-expiration_time_value').append('<option>'+ time +'</option>'); } }, changeExpirationFieldVisibility : function(e){ var checkbox_obj = e.target? $(e.target) : $(e); if ( checkbox_obj.is(':checked') ) { $('.wpuf_subscription_expiration_field').show(); } else { $('.wpuf_subscription_expiration_field').hide(); } } }; if ( typeof datepicker === 'function') { $('.wpuf-date-picker').datepicker({ dateFormat: "yy-mm-dd" }); } subscription.init(); })(jQuery);
{ "pile_set_name": "Github" }
# Бинарный поиск ## Введение Бинарный поиск является одним из базовых алгоритмов поиска и часто встречается на собеседованиях. В отличии от обычного линейного перебора, работает быстрее, но работает только с отсортированными данными. ## Алгоритм Алгоритм состоит в том, чтобы взять серединный элемент массива, сравнить его с искомым, и, в зависимости от того, меньше он искомого или больше, искать в левой или правой части соответственно. Это продолжается до тех пор, пока искомый элемент не будет найден, либо пока массив не закончится. ![Binary Search](../../images/algorithms/search/binary/binary_search.gif) Таким образом нам понадобится число операций равное тому, сколько раз нам нужно поделить массив размером `N` пополам. Отсюда и временная сложность алгоритма двоичного поиска: `O(log(n))`. Из описания алгоритма понятно, что он работает **только** с отсортированными массивами. ## Реализация Реализовать алгоритм бинарного поиска можно как итеративно, так и рекурсивно. Рекурсивно: ```java public class BinarySearch { public static int search(final int[] arr, final int element) { if (arr.length == 0) { return -1; } return search(arr, element, 0, arr.length - 1); } private static int search(final int[] arr, final int element, final int left, final int right) { if (left > right) { return -1; } final int mid = (left + right) / 2; if (arr[mid] == element) { return mid; } else if (arr[mid] > element) { return search(arr, element, left, mid - 1); } else { return search(arr, element, mid + 1, right); } } } ``` Итеративно: ```java public class BinarySearch { public static int searchIter(final int[] arr, final int key) { if (arr.length == 0) { return -1; } int left = 0; int right = arr.length - 1; while (left <= right) { int mid = (left + right) / 2; if (arr[mid] == key) { return mid; } else if (arr[mid] < key) { left = mid + 1; } else if (arr[mid] > key) { right = mid - 1; } } return -1; } } ``` ## Производительность Временная сложность: `O(log(n))`. ## Заключение Алгоритм бинарного поиска используется во многих библиотеках и используется с отсортированными структурами данных, в частности, в `Java` уже есть его реализация, досутпная в `java.util.Arrays` через метод `binarySearch`.
{ "pile_set_name": "Github" }
Microsoft Visual Studio Solution File, Format Version 9.00 # Visual Studio 2005 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "PropSheetHost", "PropSheetHost.vcproj", "{5706D2E5-FDCD-4734-ADCD-B058C67E27A6}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Itanium = Debug|Itanium Debug|Win32 = Debug|Win32 Debug|x64 = Debug|x64 Release|Itanium = Release|Itanium Release|Win32 = Release|Win32 Release|x64 = Release|x64 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {5706D2E5-FDCD-4734-ADCD-B058C67E27A6}.Debug|Itanium.ActiveCfg = Debug|Itanium {5706D2E5-FDCD-4734-ADCD-B058C67E27A6}.Debug|Itanium.Build.0 = Debug|Itanium {5706D2E5-FDCD-4734-ADCD-B058C67E27A6}.Debug|Win32.ActiveCfg = Debug|Win32 {5706D2E5-FDCD-4734-ADCD-B058C67E27A6}.Debug|Win32.Build.0 = Debug|Win32 {5706D2E5-FDCD-4734-ADCD-B058C67E27A6}.Debug|x64.ActiveCfg = Debug|x64 {5706D2E5-FDCD-4734-ADCD-B058C67E27A6}.Debug|x64.Build.0 = Debug|x64 {5706D2E5-FDCD-4734-ADCD-B058C67E27A6}.Release|Itanium.ActiveCfg = Release|Itanium {5706D2E5-FDCD-4734-ADCD-B058C67E27A6}.Release|Itanium.Build.0 = Release|Itanium {5706D2E5-FDCD-4734-ADCD-B058C67E27A6}.Release|Win32.ActiveCfg = Release|Win32 {5706D2E5-FDCD-4734-ADCD-B058C67E27A6}.Release|Win32.Build.0 = Release|Win32 {5706D2E5-FDCD-4734-ADCD-B058C67E27A6}.Release|x64.ActiveCfg = Release|x64 {5706D2E5-FDCD-4734-ADCD-B058C67E27A6}.Release|x64.Build.0 = Release|x64 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection EndGlobal
{ "pile_set_name": "Github" }
@import '../../material/core/theming/theming'; @import '../../material/core/style/layout-common'; @import '../../material/core/focus-indicators/focus-indicators'; /// Mixin that turns on strong focus indicators. /// /// @example /// .my-app { /// @include mat-mdc-strong-focus-indicators($config); /// } @mixin mat-mdc-strong-focus-indicators($config: ()) { // Default focus indicator config. $default-config: ( border-style: solid, border-width: 3px, border-radius: 4px, ); // Merge default config with user config. $config: map-merge($default-config, $config); $border-style: map-get($config, border-style); $border-width: map-get($config, border-width); $border-radius: map-get($config, border-radius); // Base styles for focus indicators. .mat-mdc-focus-indicator::before { @include mat-fill(); box-sizing: border-box; pointer-events: none; border: $border-width $border-style transparent; border-radius: $border-radius; } // By default, all focus indicators are flush with the bounding box of their // host element. For particular elements (listed below), default inset/offset // values are necessary to ensure that the focus indicator is sufficiently // contrastive and renders appropriately. .mat-mdc-unelevated-button .mat-mdc-focus-indicator::before, .mat-mdc-raised-button .mat-mdc-focus-indicator::before, .mdc-fab .mat-mdc-focus-indicator::before, .mat-mdc-focus-indicator.mdc-chip::before { margin: -($border-width + 2px); } .mat-mdc-outlined-button .mat-mdc-focus-indicator::before { margin: -($border-width + 3px); } .mat-mdc-focus-indicator.mat-mdc-chip-remove::before, .mat-mdc-focus-indicator.mat-mdc-chip-row-focusable-text-content::before { margin: -$border-width; } .mat-mdc-focus-indicator.mat-mdc-tab::before, .mat-mdc-focus-indicator.mat-mdc-tab-link::before { margin: 5px; } // These components have to set `border-radius: 50%` in order to support density scaling // which will clip a square focus indicator so we have to turn it into a circle. .mat-mdc-checkbox-ripple.mat-mdc-focus-indicator::before, .mat-radio-ripple.mat-mdc-focus-indicator::before { border-radius: 50%; } // Render the focus indicator on focus. Defining a pseudo element's // content will cause it to render. // For checkboxes, radios and slide toggles, render the focus indicator when we know // the hidden input is focused (slightly different for each control). .mdc-checkbox__native-control:focus ~ .mat-mdc-focus-indicator::before, .mat-mdc-slide-toggle-focused .mat-mdc-focus-indicator::before, .mat-mdc-radio-button.cdk-focused .mat-mdc-focus-indicator::before, // For buttons and list items, render the focus indicator when the parent // button or list item is focused. .mat-mdc-button-base:focus .mat-mdc-focus-indicator::before, .mat-mdc-list-item:focus > .mat-mdc-focus-indicator::before, // For options, render the focus indicator when the class .mat-mdc-option-active is present. .mat-mdc-focus-indicator.mat-mdc-option-active::before, // For all other components, render the focus indicator on focus. .mat-mdc-focus-indicator:focus::before { content: ''; } } // Mixin that applies the border color for the focus indicators. @mixin _mat-mdc-strong-focus-indicators-border-color($color) { .mat-mdc-focus-indicator::before { border-color: $color; } } @mixin mat-mdc-strong-focus-indicators-color($config-or-theme) { $config: mat-get-color-config($config-or-theme); @include _mat-mdc-strong-focus-indicators-border-color(mat-color(map_get($config, primary))); } /// Mixin that sets the color of the focus indicators. /// /// @param {color|map} $theme-or-color /// If theme, focus indicators are set to the primary color of the theme. If /// color, focus indicators are set to that color. /// /// @example /// .demo-dark-theme { /// @include mat-mdc-strong-focus-indicators-theme($dark-theme-map); /// } /// /// @example /// .demo-red-theme { /// @include mat-mdc-strong-focus-indicators-theme(#f00); /// } /* stylelint-disable-next-line material/theme-mixin-api */ @mixin mat-mdc-strong-focus-indicators-theme($theme-or-color) { @if type-of($theme-or-color) != 'map' { @include _mat-mdc-strong-focus-indicators-border-color($theme-or-color); } @else { $theme: _mat-legacy-get-theme($theme-or-color); @include _mat-check-duplicate-theme-styles($theme, 'mat-mdc-strong-focus-indicators') { $color: mat-get-color-config($theme); @if $color != null { @include mat-mdc-strong-focus-indicators-color($color); } } } }
{ "pile_set_name": "Github" }
@file:Suppress("UNUSED_PARAMETER") package io.mockk.impl.instantiation import io.mockk.* import io.mockk.impl.stub.Stub import io.mockk.impl.stub.StubGatewayAccess import io.mockk.impl.stub.StubRepository import kotlin.reflect.KClass import kotlin.test.BeforeTest import kotlin.test.Test import kotlin.test.assertSame import kotlin.test.assertTrue class AbstractMockFactoryTest { lateinit var mockFactory: Factory lateinit var stubRepo: StubRepository lateinit var instantiator: AbstractInstantiator lateinit var gatewayAccess: StubGatewayAccess lateinit var mock: Mock @BeforeTest fun setUp() { stubRepo = mockk(relaxed = true) instantiator = mockk(relaxed = true) gatewayAccess = mockk(relaxed = true) mockFactory = spyk(Factory()) mock = mockk(relaxed = true) } @Test fun whenRequestingMockkThenMockkCreated() { every { mockFactory.publicNewProxy<Mock>(any(), any(), any(), any(), any()) } returns mock val mockk = mockFactory.mockk(Mock::class, "name", false, arrayOf(), relaxUnitFun = false) assertSame(mock, mockk) } @Test fun givenNameWhenRequestingMockkThenMockkWithNameCreated() { every { mockFactory.publicNewProxy<Mock>(any(), any(), any(), any(), any()) } returns mock mockFactory.mockk(Mock::class, "name", false, arrayOf(), relaxUnitFun = false) val stubSlot = CapturingSlot<Stub>() verify { mockFactory.publicNewProxy(any(), any(), capture(stubSlot), any(), any()) } assertTrue(stubSlot.captured.name.startsWith("name")) } @Test fun whenRequestingSpykThenSpykCreated() { every { mockFactory.publicNewProxy<Mock>(any(), any(), any(), any(), any()) } returns mock val spyk = mockFactory.spyk(Mock::class, null, "name", arrayOf(), false) assertSame(mock, spyk) } @Test fun givenNameWhenRequestingSpykThenSpykWithNameCreated() { every { mockFactory.publicNewProxy<Mock>(any(), any(), any(), any(), any()) } returns mock mockFactory.spyk(Mock::class, null, "name", arrayOf(), false) val stubSlot = CapturingSlot<Stub>() verify { mockFactory.publicNewProxy(any(), any(), capture(stubSlot), any(), any()) } assertTrue(stubSlot.captured.name.startsWith("name")) } @Test fun whenRequestingChildMockkThenMockCreated() { every { mockFactory.publicNewProxy<Mock>(any(), any(), any(), any(), any()) } returns mock val childMock = mockFactory.temporaryMock(Mock::class) assertSame(mock, childMock) } class Mock inner class Factory : AbstractMockFactory(stubRepo, instantiator, gatewayAccess) { fun <T : Any> publicNewProxy( cls: KClass<out T>, moreInterfaces: Array<out KClass<*>>, stub: Stub, useDefaultConstructor: Boolean, instantiate: Boolean ): T { throw AssertionError("fail") } override fun <T : Any> newProxy( cls: KClass<out T>, moreInterfaces: Array<out KClass<*>>, stub: Stub, useDefaultConstructor: Boolean, instantiate: Boolean ): T = publicNewProxy(cls, moreInterfaces, stub, useDefaultConstructor, instantiate) } }
{ "pile_set_name": "Github" }
; Test that we can correctly handle vectors of pointers in statepoint ; rewriting. ; RUN: opt < %s -rewrite-statepoints-for-gc -S | FileCheck %s ; RUN: opt < %s -passes=rewrite-statepoints-for-gc -S | FileCheck %s ; A non-vector relocation for comparison define i64 addrspace(1)* @test(i64 addrspace(1)* %obj) gc "statepoint-example" { ; CHECK-LABEL: test ; CHECK: gc.statepoint ; CHECK-NEXT: gc.relocate ; CHECK-NEXT: bitcast ; CHECK-NEXT: ret i64 addrspace(1)* ; A base vector from a argument entry: call void @do_safepoint() [ "deopt"() ] ret i64 addrspace(1)* %obj } ; A vector argument define <2 x i64 addrspace(1)*> @test2(<2 x i64 addrspace(1)*> %obj) gc "statepoint-example" { ; CHECK-LABEL: test2 ; CHECK-NEXT: gc.statepoint ; CHECK-NEXT: gc.relocate ; CHECK-NEXT: bitcast ; CHECK-NEXT: ret <2 x i64 addrspace(1)*> call void @do_safepoint() [ "deopt"() ] ret <2 x i64 addrspace(1)*> %obj } ; A load define <2 x i64 addrspace(1)*> @test3(<2 x i64 addrspace(1)*>* %ptr) gc "statepoint-example" { ; CHECK-LABEL: test3 ; CHECK: load ; CHECK-NEXT: gc.statepoint ; CHECK-NEXT: gc.relocate ; CHECK-NEXT: bitcast ; CHECK-NEXT: ret <2 x i64 addrspace(1)*> entry: %obj = load <2 x i64 addrspace(1)*>, <2 x i64 addrspace(1)*>* %ptr call void @do_safepoint() [ "deopt"() ] ret <2 x i64 addrspace(1)*> %obj } declare i32 @fake_personality_function() ; When a statepoint is an invoke rather than a call define <2 x i64 addrspace(1)*> @test4(<2 x i64 addrspace(1)*>* %ptr) gc "statepoint-example" personality i32 ()* @fake_personality_function { ; CHECK-LABEL: test4 ; CHECK: load ; CHECK-NEXT: gc.statepoint entry: %obj = load <2 x i64 addrspace(1)*>, <2 x i64 addrspace(1)*>* %ptr invoke void @do_safepoint() [ "deopt"() ] to label %normal_return unwind label %exceptional_return normal_return: ; preds = %entry ; CHECK-LABEL: normal_return: ; CHECK: gc.relocate ; CHECK-NEXT: bitcast ; CHECK-NEXT: ret <2 x i64 addrspace(1)*> ret <2 x i64 addrspace(1)*> %obj exceptional_return: ; preds = %entry ; CHECK-LABEL: exceptional_return: ; CHECK: gc.relocate ; CHECK-NEXT: bitcast ; CHECK-NEXT: ret <2 x i64 addrspace(1)*> %landing_pad4 = landingpad token cleanup ret <2 x i64 addrspace(1)*> %obj } ; A newly created vector define <2 x i64 addrspace(1)*> @test5(i64 addrspace(1)* %p) gc "statepoint-example" { ; CHECK-LABEL: test5 ; CHECK: insertelement ; CHECK-NEXT: insertelement ; CHECK-NEXT: gc.statepoint ; CHECK-NEXT: gc.relocate ; CHECK-NEXT: bitcast ; CHECK-NEXT: gc.relocate ; CHECK-NEXT: bitcast ; CHECK-NEXT: ret <2 x i64 addrspace(1)*> %vec.relocated.casted entry: %vec = insertelement <2 x i64 addrspace(1)*> undef, i64 addrspace(1)* %p, i32 0 call void @do_safepoint() [ "deopt"() ] ret <2 x i64 addrspace(1)*> %vec } ; A merge point define <2 x i64 addrspace(1)*> @test6(i1 %cnd, <2 x i64 addrspace(1)*>* %ptr) gc "statepoint-example" { ; CHECK-LABEL: test6 entry: br i1 %cnd, label %taken, label %untaken taken: ; preds = %entry %obja = load <2 x i64 addrspace(1)*>, <2 x i64 addrspace(1)*>* %ptr br label %merge untaken: ; preds = %entry %objb = load <2 x i64 addrspace(1)*>, <2 x i64 addrspace(1)*>* %ptr br label %merge merge: ; preds = %untaken, %taken ; CHECK-LABEL: merge: ; CHECK-NEXT: = phi ; CHECK-NEXT: = phi ; CHECK-NEXT: gc.statepoint ; CHECK-NEXT: gc.relocate ; CHECK-NEXT: bitcast ; CHECK-NEXT: gc.relocate ; CHECK-NEXT: bitcast ; CHECK-NEXT: ret <2 x i64 addrspace(1)*> %obj = phi <2 x i64 addrspace(1)*> [ %obja, %taken ], [ %objb, %untaken ] call void @do_safepoint() [ "deopt"() ] ret <2 x i64 addrspace(1)*> %obj } declare void @do_safepoint()
{ "pile_set_name": "Github" }
using System; using VRage; using VRage.Game.Entity; using VRage.Library.Collections; using VRage.Library.Utils; using VRage.Trace; using VRageMath; namespace Sandbox.Game.Replication.History { public class MyPredictedSnapshotSyncSetup : MySnapshotSyncSetup { public float MaxPositionFactor; public float MaxLinearFactor; public float MaxRotationFactor; public float MaxAngularFactor; public float IterationsFactor; } public class MyPredictedSnapshotSync : IMySnapshotSync { // debug data public static bool SetTransformCorrections = true; public static bool SetPhysicsCorrections = true; public static float DeltaFactor = 0.7f; public static int SmoothTimesteps = 30; public static bool SmoothPositionCorrection = true; public static float MinPositionDelta = 0.05f; public static float MaxPositionDelta = 0.5f; public static float ReferenceLinearVelocity = 10.0f; public static bool SmoothRotationCorrection = true; public static float MinRotationAngle = 2.0f / 180.0f * MathHelper.Pi; public static float MaxRotationAngle = 10.0f / 180.0f * MathHelper.Pi; public static float ReferenceAngularVelocity = 0.5f; public static bool SmoothLinearVelocityCorrection = true; public static float MinLinearVelocityDelta = 0.01f; public static float MaxLinearVelocityDelta = 4.0f; public static bool SmoothAngularVelocityCorrection = true; public static float MinAngularVelocityDelta = 0.01f; public static float MinVelocityChangeToReset = 10; private readonly MySnapshotHistory m_clientHistory = new MySnapshotHistory(); private readonly MySnapshotHistory m_receivedQueue = new MySnapshotHistory(); private int m_animDeltaLinearVelocityIterations; private MyTimeSpan m_animDeltaLinearVelocityTimestamp; private Vector3 m_animDeltaLinearVelocity; private int m_animDeltaPositionIterations; private MyTimeSpan m_animDeltaPositionTimestamp; private Vector3D m_animDeltaPosition; private int m_animDeltaRotationIterations; private MyTimeSpan m_animDeltaRotationTimestamp; private Quaternion m_animDeltaRotation; private int m_animDeltaAngularVelocityIterations; private MyTimeSpan m_animDeltaAngularVelocityTimestamp; private Vector3 m_animDeltaAngularVelocity; private readonly MyEntity m_entity; private MySnapshot m_lastServerSnapshot; private MyTimeSpan m_lastServerTimestamp; private MySnapshot m_lastClientSnapshot; private MyTimeSpan m_lastClientTimestamp; private MySnapshot m_lastSnapshot; private MyTimeSpan m_lastTimestamp; private readonly string m_trackName = "cenda"; private bool m_wasReset = true; private Vector3 m_lastServerVelocity; private int m_stopSuspected; public MyPredictedSnapshotSync(MyEntity entity) { m_entity = entity; } public void Update(MyTimeSpan clientTimestamp, MySnapshotSyncSetup setup) { // skip entities with parent if (m_entity.Parent != null) return; if (m_entity.Physics == null) //trees return; if (m_entity.Physics.RigidBody != null && !m_entity.Physics.RigidBody.IsActive) return; VRage.Profiler.ProfilerShort.Begin("Sync Predicted" + m_entity.DisplayName); UpdatePrediction(clientTimestamp, setup); VRage.Profiler.ProfilerShort.End(); } public void UpdatePrediction(MyTimeSpan clientTimestamp, MySnapshotSyncSetup setup) { var currentSnapshot = new MySnapshot(m_entity); var tmpSnapshot = currentSnapshot; m_clientHistory.Add(currentSnapshot, clientTimestamp); var serverTmpSnapshot = m_receivedQueue.GetItem(clientTimestamp); var timeDelta = (float)(m_lastServerTimestamp - serverTmpSnapshot.Timestamp).Seconds; var predictedSetup = setup as MyPredictedSnapshotSyncSetup; var serverDeltaItem = UpdateFromServerQueue(clientTimestamp, predictedSetup); bool animated = m_animDeltaPositionIterations > 0 || m_animDeltaLinearVelocityIterations > 0 || m_animDeltaRotationIterations > 0 || m_animDeltaAngularVelocityIterations > 0; bool applySnapshot = false; if (serverDeltaItem.Valid) { currentSnapshot.Add(serverDeltaItem.Snapshot); m_clientHistory.ApplyDelta(serverDeltaItem.Timestamp, serverDeltaItem.Snapshot); applySnapshot = true; } if (animated) { if (m_animDeltaPositionIterations > 0) { m_clientHistory.ApplyDeltaPosition(m_animDeltaPositionTimestamp, m_animDeltaPosition); currentSnapshot.Position += m_animDeltaPosition; m_animDeltaPositionIterations--; } if (m_animDeltaLinearVelocityIterations > 0) { m_clientHistory.ApplyDeltaLinearVelocity(m_animDeltaLinearVelocityTimestamp, m_animDeltaLinearVelocity); currentSnapshot.LinearVelocity += m_animDeltaLinearVelocity; m_animDeltaLinearVelocityIterations--; } if (m_animDeltaAngularVelocityIterations > 0) { m_clientHistory.ApplyDeltaAngularVelocity(m_animDeltaAngularVelocityTimestamp, m_animDeltaAngularVelocity); currentSnapshot.AngularVelocity += m_animDeltaAngularVelocity; m_animDeltaAngularVelocityIterations--; } if (m_animDeltaRotationIterations > 0) { m_clientHistory.ApplyDeltaRotation(m_animDeltaRotationTimestamp, m_animDeltaRotation); currentSnapshot.Rotation = currentSnapshot.Rotation * Quaternion.Inverse(m_animDeltaRotation); currentSnapshot.Rotation.Normalize(); m_animDeltaRotationIterations--; } applySnapshot = true; } if (applySnapshot) { currentSnapshot.Apply(m_entity, setup.ApplyRotation, setup.ApplyPhysics, serverDeltaItem.Type == MySnapshotHistory.SnapshotType.Reset); } //if (MyCompilationSymbols.EnableNetworkClientUpdateTracking) { if (m_entity.DisplayName.Contains("dicykal") && (serverDeltaItem.Valid || animated)) { var velocity = (serverTmpSnapshot.Snapshot.Position - m_lastServerSnapshot.Position) / timeDelta; m_lastServerSnapshot = serverTmpSnapshot.Snapshot; var clientTimeDelta = (float)(m_lastClientTimestamp - clientTimestamp).Seconds; var clientVelocity = (currentSnapshot.Position - m_lastClientSnapshot.Position) / clientTimeDelta; m_lastClientSnapshot = currentSnapshot; m_lastClientTimestamp = clientTimestamp; VRage.Trace.MyTrace.Send(VRage.Trace.TraceWindow.MPositions3, m_entity.DisplayName + ": " + tmpSnapshot + " / " + currentSnapshot + " / " + serverTmpSnapshot.Snapshot + "; cvel " + velocity + " / " + clientVelocity + "; " + serverDeltaItem.Valid + ", " + animated + "; " + m_animDeltaPosition * 60); /*var delta = tmpSnapshot.Diff(currentSnapshot); var posLen = delta.Position.Length(); var lenLV = delta.LinearVelocity.Length(); var sdPosLen = serverDeltaItem.Snapshot.Position.Length(); var aPosLen = m_animDeltaPosition.Length(); VRage.Trace.MyTrace.Send(VRage.Trace.TraceWindow.MPositions3, m_entity.DisplayName + ": pos " + delta.Position + " / " + posLen + " lv " + tmpSnapshot.LinearVelocity + " / " + lenLV + "; sdelta " + serverDeltaItem.Valid + " pos " + serverDeltaItem.Snapshot.Position + " / " + sdPosLen + " anim " + m_animDeltaPositionIterations + " pos " + m_animDeltaPosition + " / " + aPosLen);*/ } } } public void Write(BitStream stream) { var snapshot = new MySnapshot(m_entity); snapshot.Write(stream); } public void Read(BitStream stream, MyTimeSpan timeStamp) { var snapshot = new MySnapshot(stream); if (m_entity.Parent == null && m_entity.Physics != null) { if (m_entity.Physics.IsInWorld && m_entity.Physics.RigidBody != null && !m_entity.Physics.RigidBody.IsActive && snapshot.Active) m_entity.Physics.RigidBody.Activate(); if (m_entity.Physics.RigidBody == null || m_entity.Physics.RigidBody.IsActive) m_receivedQueue.Add(snapshot, timeStamp); } } public void Reset() { m_clientHistory.Reset(); m_animDeltaRotationIterations = m_animDeltaLinearVelocityIterations = m_animDeltaPositionIterations = m_animDeltaAngularVelocityIterations = 0; m_lastServerVelocity = Vector3D.PositiveInfinity; m_wasReset = true; } private MySnapshotHistory.MyItem UpdateFromServerQueue(MyTimeSpan clientTimestamp, MyPredictedSnapshotSyncSetup setup) { bool recalc = false; var serverItem = m_receivedQueue.GetItem(clientTimestamp); if (serverItem.Valid) { if (serverItem.Timestamp != m_lastServerTimestamp) { var item = m_clientHistory.Get(serverItem.Timestamp, MyTimeSpan.Zero); if (item.Valid && (item.Type == MySnapshotHistory.SnapshotType.Exact || item.Type == MySnapshotHistory.SnapshotType.Interpolation)) { m_lastServerTimestamp = serverItem.Timestamp; m_receivedQueue.Prune(clientTimestamp, MyTimeSpan.Zero, 3); m_clientHistory.Prune(serverItem.Timestamp, MyTimeSpan.Zero, 10); MySnapshot delta; if (!serverItem.Snapshot.Active && !setup.IsControlled) { var currentSnapshot = new MySnapshot(m_entity); delta = serverItem.Snapshot.Diff(currentSnapshot); Reset(); } else delta = serverItem.Snapshot.Diff(item.Snapshot); if (m_lastServerVelocity.IsValid()) { var deltaVelocity = serverItem.Snapshot.LinearVelocity - m_lastServerVelocity; m_lastServerVelocity = serverItem.Snapshot.LinearVelocity; var deltaVelocityLengthSqr = deltaVelocity.LengthSquared(); if (m_stopSuspected > 0) { var currentSnapshot = new MySnapshot(m_entity); var maxVelocityDeltaSqr = (MinVelocityChangeToReset / 2) * (MinVelocityChangeToReset / 2); if ((serverItem.Snapshot.LinearVelocity - currentSnapshot.LinearVelocity).LengthSquared() > maxVelocityDeltaSqr) { Reset(); delta = serverItem.Snapshot.Diff(currentSnapshot); m_stopSuspected = 0; } } if (deltaVelocityLengthSqr > (MinVelocityChangeToReset * MinVelocityChangeToReset)) { m_stopSuspected = 10; if (MyCompilationSymbols.EnableNetworkPositionTracking) VRage.Trace.MyTrace.Send(VRage.Trace.TraceWindow.MPositions3, "!!!!!!!!!!!!!!!!!!! sudden server velocity change (" + m_entity.DisplayName + "): " + Math.Sqrt(deltaVelocityLengthSqr)); } else if (m_stopSuspected > 0) m_stopSuspected--; } else m_lastServerVelocity = serverItem.Snapshot.LinearVelocity; if (m_wasReset) { delta.Position += serverItem.Snapshot.LinearVelocity * (float)(clientTimestamp - serverItem.Timestamp).Seconds; m_wasReset = false; serverItem.Snapshot = delta; serverItem.Type = MySnapshotHistory.SnapshotType.Reset; return serverItem; } /*{ var lvsqr = delta.LinearVelocity.LengthSquared(); var maxLinearFactorSqr = setup.MaxLinearFactor * setup.MaxLinearFactor; var maxLinVel = MaxLinearVelocityDelta * MaxLinearVelocityDelta * maxLinearFactorSqr; if (lvsqr > maxLinVel) { var similarItem = m_clientHistory.GetSimilar(serverItem.Timestamp, serverItem.Snapshot.LinearVelocity); if (similarItem.Valid) { var newDelta = serverItem.Snapshot.LinearVelocity - similarItem.Snapshot.LinearVelocity; if (newDelta.LengthSquared() < maxLinVel) { if (MyCompilationSymbols.EnableNetworkClientControlledTracking) if (m_entity.DisplayName.Contains(m_trackName)) VRage.Trace.MyTrace.Send(VRage.Trace.TraceWindow.MPositions3, m_entity.DisplayName + ": old " + newDelta + " new " + delta.LinearVelocity + " ------------------------------------------" + serverItem.Snapshot + " >> " + item.Snapshot + " >> " + similarItem.Snapshot); delta.LinearVelocity = Vector3.Zero; } } } }*/ var serverAngVelSqr = serverItem.Snapshot.AngularVelocity.LengthSquared(); bool anyAngVel = serverAngVelSqr > 0.001f; var minLinearVelocityFactor = Math.Max(Math.Min(serverItem.Snapshot.LinearVelocity.LengthSquared() / (ReferenceLinearVelocity * ReferenceLinearVelocity), 1.0f), 0.01f); var minAngularVelocityFactor = Math.Max(Math.Min(serverAngVelSqr / (ReferenceAngularVelocity * ReferenceAngularVelocity), 1.0f), 0.01f); int iterations = (int)(SmoothTimesteps * setup.IterationsFactor); var maxFactorSqr = setup.MaxPositionFactor * setup.MaxPositionFactor; var anyDelta = setup.ApplyPhysics && setup.ApplyRotation && delta.AngularVelocity.LengthSquared() > 0.00001f; // position { var psqr = delta.Position.LengthSquared(); if (psqr > MaxPositionDelta * MaxPositionDelta * maxFactorSqr) { var dir = delta.Position; var length = dir.Normalize(); var newLength = length - MaxPositionDelta * (1.0f - DeltaFactor); delta.Position = dir * newLength; anyDelta = true; m_animDeltaPositionIterations = 0; } else if (!SmoothPositionCorrection) { delta.Position *= DeltaFactor; anyDelta = true; m_animDeltaPositionIterations = 0; } else { if (psqr > MinPositionDelta * MinPositionDelta * minLinearVelocityFactor) m_animDeltaPositionIterations = iterations; if (m_animDeltaPositionIterations > 0) { m_animDeltaPosition = delta.Position / m_animDeltaPositionIterations; m_animDeltaPositionTimestamp = serverItem.Timestamp; } delta.Position = Vector3D.Zero; } } // rotation if (setup.ApplyRotation) { Vector3 axis; float angle; delta.Rotation.GetAxisAngle(out axis, out angle); if (angle > MathHelper.Pi) { axis = -axis; angle = 2 * MathHelper.Pi - angle; } if (angle > MaxRotationAngle * setup.MaxRotationFactor) { delta.Rotation = Quaternion.CreateFromAxisAngle(axis, angle - MaxRotationAngle * (1.0f - DeltaFactor)); anyDelta = true; m_animDeltaRotationIterations = 0; } else if (!SmoothRotationCorrection) { delta.Rotation = Quaternion.CreateFromAxisAngle(axis, angle * DeltaFactor); anyDelta = true; m_animDeltaRotationIterations = 0; } else { if (angle > MinRotationAngle * minAngularVelocityFactor) m_animDeltaRotationIterations = iterations; if (m_animDeltaRotationIterations > 0) { m_animDeltaRotation = Quaternion.CreateFromAxisAngle(axis, angle / m_animDeltaRotationIterations); m_animDeltaRotationTimestamp = serverItem.Timestamp; } delta.Rotation = Quaternion.Identity; } } if (setup.ApplyPhysics) { // linear velocity { var lvsqr = delta.LinearVelocity.LengthSquared(); if (!SmoothLinearVelocityCorrection) { delta.LinearVelocity *= DeltaFactor; anyDelta = true; m_animDeltaLinearVelocityIterations = 0; } else { if (lvsqr > MinLinearVelocityDelta * MinLinearVelocityDelta) m_animDeltaLinearVelocityIterations = iterations; if (m_animDeltaLinearVelocityIterations > 0) { m_animDeltaLinearVelocity = delta.LinearVelocity * DeltaFactor / m_animDeltaLinearVelocityIterations; m_animDeltaLinearVelocityTimestamp = serverItem.Timestamp; } delta.LinearVelocity = Vector3.Zero; } } // angular velocity { var lvsqr = delta.AngularVelocity.LengthSquared(); if (!SmoothAngularVelocityCorrection) { delta.AngularVelocity *= DeltaFactor; anyDelta = true; m_animDeltaAngularVelocityIterations = 0; } else { if (lvsqr > MinAngularVelocityDelta * MinAngularVelocityDelta) m_animDeltaAngularVelocityIterations = iterations; if (m_animDeltaAngularVelocityIterations > 0) { m_animDeltaAngularVelocity = delta.AngularVelocity * DeltaFactor / m_animDeltaAngularVelocityIterations; m_animDeltaAngularVelocityTimestamp = serverItem.Timestamp; } delta.AngularVelocity = Vector3.Zero; } } } if (!SetTransformCorrections) { delta.Position = Vector3D.Zero; delta.Rotation = Quaternion.Identity; m_animDeltaPositionIterations = m_animDeltaRotationIterations = 0; } if (!SetPhysicsCorrections) { delta.LinearVelocity = Vector3.Zero; delta.AngularVelocity = Vector3.Zero; m_animDeltaLinearVelocityIterations = m_animDeltaAngularVelocityIterations = 0; } if (anyDelta) { if (MyCompilationSymbols.EnableNetworkPositionTracking) if (m_entity.DisplayName.Contains(m_trackName)) VRage.Trace.MyTrace.Send(VRage.Trace.TraceWindow.MPositions3, m_entity.DisplayName + ": " + serverItem.Snapshot + " >> " + item.Snapshot + " >> " + delta); } serverItem.Snapshot = delta; serverItem.Valid = anyDelta; } else { serverItem.Valid = false; recalc = m_wasReset; if (!m_wasReset && MyCompilationSymbols.EnableNetworkPositionTracking) MyTrace.Send(TraceWindow.MPositions3, "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! " + m_entity.DisplayName + ": " + item.Type); } } else { serverItem.Valid = false; recalc = m_wasReset; } } else { if (!m_receivedQueue.Empty()) recalc = true; m_clientHistory.Prune(clientTimestamp, MyTimeSpan.FromMilliseconds(1500)); } if (recalc) { serverItem = m_receivedQueue.Get(clientTimestamp, MyTimeSpan.Zero); if (serverItem.Valid && serverItem.Type == MySnapshotHistory.SnapshotType.Exact || serverItem.Type == MySnapshotHistory.SnapshotType.Interpolation || serverItem.Type == MySnapshotHistory.SnapshotType.Extrapolation) { var currentSnapshot = new MySnapshot(m_entity); var delta = serverItem.Snapshot.Diff(currentSnapshot); serverItem.Valid = true; serverItem.Snapshot = delta; serverItem.Type = MySnapshotHistory.SnapshotType.Reset; return serverItem; } else { serverItem.Valid = false; if (MyCompilationSymbols.EnableNetworkPositionTracking) MyTrace.Send(TraceWindow.MPositions3, "------------------------------------------- " + m_entity.DisplayName + ": " + m_receivedQueue.ToStringTimestamps() + " / " + serverItem.Type); } } return serverItem; } } }
{ "pile_set_name": "Github" }
{ "culture": "tr", "texts": { "DisplayName:Abp.Mailing.DefaultFromAddress": "Varsayılan gönderici adresi", "DisplayName:Abp.Mailing.DefaultFromDisplayName": "Varsayılan gönderici adı", "DisplayName:Abp.Mailing.Smtp.Host": "Sunucu", "DisplayName:Abp.Mailing.Smtp.Port": "Port", "DisplayName:Abp.Mailing.Smtp.UserName": "Kullanıcı adı", "DisplayName:Abp.Mailing.Smtp.Password": "Şifre", "DisplayName:Abp.Mailing.Smtp.Domain": "Domain", "DisplayName:Abp.Mailing.Smtp.EnableSsl": "SSL aktif", "DisplayName:Abp.Mailing.Smtp.UseDefaultCredentials": "Varsayılan kimlik kullan", "Description:Abp.Mailing.DefaultFromAddress": "Varsayılan gönderici adresi", "Description:Abp.Mailing.DefaultFromDisplayName": "Varsayılan gönderici adı", "Description:Abp.Mailing.Smtp.Host": "SMTP üzerinden e-posta göndermek için kullanılacak sunucunun IP adresi ya da adı.", "Description:Abp.Mailing.Smtp.Port": "Sunucunun SMTP portu.", "Description:Abp.Mailing.Smtp.UserName": "Varsayılan kimlik kullanılmaması durumunda kullanılacak kullanıcı adı.", "Description:Abp.Mailing.Smtp.Password": "Varsayılan kimlik kullanılmaması durumunda kullanılacak şifre.", "Description:Abp.Mailing.Smtp.Domain": "Kimlik bilgilerinin doğrulanacağı sunucu/domain.", "Description:Abp.Mailing.Smtp.EnableSsl": "Email gönderiminde SSL kullanılıp kullanılmayacağı.", "Description:Abp.Mailing.Smtp.UseDefaultCredentials": "Varsayılan kimlik bilgilerinin kullanılıp kullanılmayacağı.", "TextTemplate:StandardEmailTemplates.Layout": "Varsayılan e-posta layout şablonu", "TextTemplate:StandardEmailTemplates.Message": "Basit bir mesaj göndermek için e-posta şablonu" } }
{ "pile_set_name": "Github" }
version: ${version} # # This file contains default standard lighting profiles. The contents of this file CAN need to be replaced and updated # during upgrades, so new or updated lighting definitions should be done in the custom-lightings.txt file # lightings: # Default lighting - no effects, shadows, day/night - class: org.dynmap.hdmap.DefaultHDLighting name: default # Shadows enabled day mode - class: org.dynmap.hdmap.ShadowHDLighting name: shadows shadowstrength: 1.0 # Night view (default moonight level is 4) - class: org.dynmap.hdmap.ShadowHDLighting name: night shadowstrength: 1.0 ambientlight: 4 # A 'bright' night view (easier to see unlit landscape dimly) - class: org.dynmap.hdmap.ShadowHDLighting name: brightnight shadowstrength: 1.0 ambientlight: 8 # Night and day view - class: org.dynmap.hdmap.ShadowHDLighting name: nightandday shadowstrength: 1.0 ambientlight: 4 night-and-day: true # 'Bright' Night and day view - class: org.dynmap.hdmap.ShadowHDLighting name: brightnightandday shadowstrength: 1.0 ambientlight: 8 night-and-day: true # Shadows enabled nether - class: org.dynmap.hdmap.ShadowHDLighting name: nethershadows shadowstrength: 0.5 ambientlight: 4 # Shadows enabled day mode (smooth lighting) - class: org.dynmap.hdmap.ShadowHDLighting name: shadows-smooth shadowstrength: 1.0 smooth-lighting: true # Night view (default moonight level is 4) (smooth lighting) - class: org.dynmap.hdmap.ShadowHDLighting name: night-smooth shadowstrength: 1.0 ambientlight: 4 smooth-lighting: true # A 'bright' night view (easier to see unlit landscape dimly) (smooth lighting) - class: org.dynmap.hdmap.ShadowHDLighting name: brightnight-smooth shadowstrength: 1.0 ambientlight: 8 smooth-lighting: true # Night and day view (smooth lighting) - class: org.dynmap.hdmap.ShadowHDLighting name: nightandday-smooth shadowstrength: 1.0 ambientlight: 4 night-and-day: true smooth-lighting: true # 'Bright' Night and day view (smooth lighting) - class: org.dynmap.hdmap.ShadowHDLighting name: brightnightandday-smooth shadowstrength: 1.0 ambientlight: 8 night-and-day: true smooth-lighting: true # Shadows enabled day mode (always classic lighting map) - class: org.dynmap.hdmap.ShadowHDLighting name: shadows-classic shadowstrength: 1.0 use-brightness-table: false # Shadows enabled nether (always classic lighting map) - class: org.dynmap.hdmap.ShadowHDLighting name: nethershadows-classic shadowstrength: 0.5 ambientlight: 4 use-brightness-table: false # Shadows enabled day mode - grayscale - class: org.dynmap.hdmap.ShadowHDLighting name: grayscale shadowstrength: 1.0 grayscale: true smooth-lighting: true # Shadows enabled day mode - grayscale parchment - class: org.dynmap.hdmap.ShadowHDLighting name: parchment shadowstrength: 1.0 grayscale: true graytone: '#C09A53' smooth-lighting: true # Default day mode - grayscale parchment - class: org.dynmap.hdmap.DefaultHDLighting name: parchment-noshadow grayscale: true graytone: '#C09A53' # Spawn at night warning map - class: org.dynmap.hdmap.LightLevelHDLighting name: nightspawn color0: '#FF0000' color1: '#FF6600' color2: '#FF9900' color3: '#FFCC00' color4: '#FFCC33' color5: '#FFCC66' color6: '#FFCC99' color7: '#FFFF00' night: true # Spawn day-night warning map - class: org.dynmap.hdmap.LightLevelHDLighting name: daynightspawn color0: '#FF0000' color1: '#FF6600' color2: '#FF9900' color3: '#FFCC00' color4: '#FFCC33' color5: '#FFCC66' color6: '#FFCC99' color7: '#FFFF00' night-and-day: true # Shadows enabled day mode - grayscale parchment, brown ink - class: org.dynmap.hdmap.ShadowHDLighting name: parchmentbrownink shadowstrength: 1.0 grayscale: true graytone: '#C09A53' graytonedark: '#400000' smooth-lighting: true # Shadows enabled - black and white parchment, brown ink - class: org.dynmap.hdmap.ShadowHDLighting name: parchmentbrowninkbw shadowstrength: 1.0 blackandwhite: true blackthreshold: 64 graytone: '#C09A53' graytonedark: '#400000' smooth-lighting: true # Shadows disabled - black and white parchment, brown ink - class: org.dynmap.hdmap.DefaultHDLighting name: parchmentbw blackandwhite: true blackthreshold: 80 graytone: '#C09A53' graytonedark: '#400000'
{ "pile_set_name": "Github" }
// Copyright 2017 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. InspectorTest.log('Checks createContext().'); var executionContextIds = new Set(); var contextGroup1 = new InspectorTest.ContextGroup(); var session1 = contextGroup1.connect(); setup(session1); var contextGroup2 = new InspectorTest.ContextGroup(); var session2 = contextGroup2.connect(); setup(session2); session1.Protocol.Runtime.enable() .then(() => session2.Protocol.Runtime.enable({})) .then(() => session1.Protocol.Debugger.enable()) .then(() => session2.Protocol.Debugger.enable({})) .then(InspectorTest.logMessage) .then(() => { session1.Protocol.Runtime.evaluate({ expression: 'debugger;' }); session2.Protocol.Runtime.evaluate({expression: 'setTimeout(x => x * 2, 0)'}); session1.Protocol.Runtime.evaluate({ expression: 'setTimeout(x => x * 3, 0)' }); }) .then(() => InspectorTest.waitForPendingTasks()) .then(() => { InspectorTest.log(`Reported script's execution id: ${executionContextIds.size}`); executionContextIds.clear(); }) .then(() => session1.reconnect()) .then(() => session2.reconnect()) .then(() => { session1.Protocol.Runtime.evaluate({ expression: 'debugger;' }) session2.Protocol.Runtime.evaluate({ expression: 'setTimeout(x => x * 2, 0)' }); session1.Protocol.Runtime.evaluate({ expression: 'setTimeout(x => x * 3, 0)' }); }) .then(() => InspectorTest.waitForPendingTasks()) .then(() => session2.Protocol.Debugger.disable({})) .then(() => session1.Protocol.Debugger.disable({})) .then(() => InspectorTest.log(`Reported script's execution id: ${executionContextIds.size}`)) .then(InspectorTest.completeTest); function setup(session) { session.Protocol.Runtime.onExecutionContextCreated(InspectorTest.logMessage); session.setupScriptMap(); session.Protocol.Debugger.onPaused((message) => { session.logSourceLocation(message.params.callFrames[0].location); session.Protocol.Debugger.stepOut(); }); session.Protocol.Debugger.onScriptParsed(message => executionContextIds.add(message.params.executionContextId)); }
{ "pile_set_name": "Github" }
/* globals describe, it */ 'use strict'; import path from 'path'; import assert from 'assert'; import * as doctest from '../src/doctest'; const getTestFilePath = (testFile) => { return path.join(__dirname, '/test_files/', testFile); }; describe('runTests', () => { it('pass', () => { const files = [getTestFilePath('pass.md')]; const config = {}; const results = doctest.runTests(files, config); const passingResults = results.filter(result => result.status === 'pass'); assert.strictEqual(passingResults.length, 1); }); it('fail', () => { const files = [getTestFilePath('fail-with-text.md')]; const config = {}; const results = doctest.runTests(files, config); const passingResults = results.filter(result => result.status === 'pass'); const failingResults = results.filter(result => result.status === 'fail'); assert.strictEqual(passingResults.length, 1, JSON.stringify(results, null, 2)); assert.strictEqual(failingResults.length, 2); }); it('skip', () => { const files = [getTestFilePath('skip.md')]; const config = {}; const results = doctest.runTests(files, config); const passingResults = results.filter(result => result.status === 'pass'); const failingResults = results.filter(result => result.status === 'fail'); const skippedResults = results.filter(result => result.status === 'skip'); assert.strictEqual(passingResults.length, 1); assert.strictEqual(failingResults.length, 0); assert.strictEqual(skippedResults.length, 1); }); it('config', () => { const files = [getTestFilePath('require-override.md')]; const config = { require: { lodash: {range: () => []} } }; const results = doctest.runTests(files, config); const passingResults = results.filter(result => result.status === 'pass'); const failingResults = results.filter(result => result.status === 'fail'); const skippedResults = results.filter(result => result.status === 'skip'); assert.strictEqual(passingResults.length, 1, results[0].stack); assert.strictEqual(failingResults.length, 0); assert.strictEqual(skippedResults.length, 0); }); it('globals', () => { const files = [getTestFilePath('globals.md')]; const config = { globals: { name: 'Nick' } }; const results = doctest.runTests(files, config); const passingResults = results.filter(result => result.status === 'pass'); const failingResults = results.filter(result => result.status === 'fail'); const skippedResults = results.filter(result => result.status === 'skip'); assert.strictEqual(passingResults.length, 1, results[0].stack); assert.strictEqual(failingResults.length, 0); assert.strictEqual(skippedResults.length, 0); }); it('es6', () => { const files = [getTestFilePath('es6.md')]; const config = {}; const results = doctest.runTests(files, config); const passingResults = results.filter(result => result.status === 'pass'); const failingResults = results.filter(result => result.status === 'fail'); const skippedResults = results.filter(result => result.status === 'skip'); assert.strictEqual(passingResults.length, 2, results[0].stack); assert.strictEqual(failingResults.length, 0); assert.strictEqual(skippedResults.length, 0); }); it('joins tests', () => { const files = [getTestFilePath('environment.md')]; const config = {}; const results = doctest.runTests(files, config); const passingResults = results.filter(result => result.status === 'pass'); const failingResults = results.filter(result => result.status === 'fail'); const skippedResults = results.filter(result => result.status === 'skip'); assert.strictEqual(passingResults.length, 3, results[1].stack); assert.strictEqual(failingResults.length, 0); assert.strictEqual(skippedResults.length, 0); }); it('supports regex imports', () => { const files = [getTestFilePath('require-override.md')]; const config = { regexRequire: { 'lo(.*)': function (fullPath, matchedName) { assert.strictEqual(matchedName, 'dash'); return { range: () => [] }; } } }; const results = doctest.runTests(files, config); const passingResults = results.filter(result => result.status === 'pass'); const failingResults = results.filter(result => result.status === 'fail'); const skippedResults = results.filter(result => result.status === 'skip'); assert.strictEqual(passingResults.length, 1, results[0].stack); assert.strictEqual(failingResults.length, 0); assert.strictEqual(skippedResults.length, 0); }); it('runs the beforeEach hook prior to each example', () => { const files = [getTestFilePath('before-each.md')]; const a = { value: 0 }; const config = { globals: { a }, beforeEach: () => a.value = 0 }; const results = doctest.runTests(files, config); const passingResults = results.filter(result => result.status === 'pass'); const failingResults = results.filter(result => result.status === 'fail'); const skippedResults = results.filter(result => result.status === 'skip'); assert.strictEqual(passingResults.length, 3, results[0].stack); assert.strictEqual(failingResults.length, 0); assert.strictEqual(skippedResults.length, 0); assert.strictEqual(a.value, 1); }); it('ignores json examples', () => { const files = [getTestFilePath('json.md')]; const config = {}; const results = doctest.runTests(files, config); const passingResults = results.filter(result => result.status === 'pass'); const failingResults = results.filter(result => result.status === 'fail'); const skippedResults = results.filter(result => result.status === 'skip'); assert.strictEqual(passingResults.length, 0); assert.strictEqual(failingResults.length, 0); assert.strictEqual(skippedResults.length, 0); }); });
{ "pile_set_name": "Github" }
Abyss 2.4.0.3 X2;no-cache Abyss 2.5.0.0 X1;no-cache AOLserver 3.3.1;No-Cache AOLserver 4.0.10a;no-cache AOLserver 4.0.10;no-cache AOLserver 4.5.0;no-cache Apache 1.3.26;no-cache Apache 1.3.27;no-cache Apache 1.3.33;no-cache Apache 1.3.34;no-cache Apache 1.3.37;no-cache Apache 1.3.39;no-cache Apache 2.0.45;no-cache Apache 2.0.46;no-cache Apache 2.0.52;no-cache Apache 2.0.54;no-cache Apache 2.0.59;nocache Apache 2.0.59;No-cache Apache 2.2.2;no-cache Apache 2.2.3;no-cache Apache 2.2.3;private Apache 2.2.4;no-cache Apache 2.2.6;no-cache Belkin Router 2.00.002;no-cache Cherokee 0.6.0;no-cache Cisco VPN 3000 Concentrator Virata EmWeb R6.2.0;no-cache Cougar 9.5.6001.6264;no-cache FlexWATCH FW-3440-B;no-cache fnord 1.8a;no-cache GlobalSCAPE Secure Server 3.3;no-cache Hiawatha 6.11;no-cache Hiawatha 6.2;no-cache IBM HTTP Server 6.0.2.19;no-cache IceWarp 8.3.0;no-cache Jana-Server 2.4.8.51;no-cache Jetty 6.1.1;no-cache lighttpd 1.4.19;no-cache lighttpd 1.4.22;no-cache LiteSpeed Web Server 3.3;no-cache Microsoft IIS 6.0;no-cache Nanoweb 2.2.10;no-cache nginx 0.5.32;no-cache nginx 0.5.35;no-cache nginx 0.6.16;no-cache nginx 0.6.20;no-cache Novell Access Manager 3;no-cache Ricoh Aficio 1022 Web-Server 3.0;no-cache Ricoh Aficio 1045 5.23 Web-Server 3.0;no-cache Ricoh Aficio 1060 3.53.3 Web-Server 3.0;no-cache Ricoh Aficio 6002 3.53.3 Web-Server 3.0;no-cache Roxen 2.2.213;no-cache SnapStream Digital Video Recorder;no-cache Sony SNC-RZ30 NetEVI 1.09;no-cache Sony SNC-RZ30 NetEVI 2.05g;no-cache Sony SNC-RZ30 NetEVI 2.05;no-cache Sony SNC-RZ30 NetEVI 2.06;no-cache Sony SNC-RZ30 NetEVI 2.13;no-cache Sony SNC-RZ30 NetEVI 2.14;no-cache Sony SNC-RZ30 NetEVI 2.24;no-cache Sony SNC-RZ30 NetEVI 3.01;no-cache Sony SNC-RZ30 NetEVI 3.02;no-cache Sony SNC-RZ30 NetEVI 3.03;no-cache Sony SNC-RZ30 NetEVI 3.10a;no-cache Sony SNC-RZ30 NetEVI 3.10;no-cache Sony SNC-RZ30 NetEVI 3.14;no-cache Sony SNC-Z20 NetZoom 1.00;no-cache Symantec Mail Security for SMTP;No-Cache WDaemon 9.6.1;no-cache webcamXP PRO 2006 2.16.456x BETA;no-cache webcamXP PRO 2006 2.20.024;no-cache webcamXP PRO 2006 2.37.144;no-cache webcamXP PRO 2007 3.60.220;no-cache webcamXP PRO 2007 3.72.440;no-cache webcamXP PRO 2007 3.96.000 beta;no-cache Zope 2.6.0;no-cache Zyxel P-2602HW-D1A RomPager 4.51;no-cache Zyxel P-660R-D3 RomPager 4.51;no-cache Zyxel P-661H-D1 RomPager 4.51;no-cache Zyxel P-662HW-D1 RomPager 4.51;no-cache Zyxel Prestige 662H-61 RomPager 4.07;no-cache Zyxel Prestige 662H-63/67 RomPager 4.07;no-cache Zyxel ZyWALL 10W RomPager 4.07;no-cache
{ "pile_set_name": "Github" }
"""Unicode Properties (autogen).""" from __future__ import unicode_literals unicode_blocks = { "basiclatin": "\u0000-\u007f", "^basiclatin": "\u0080-\U0010ffff", "latin1supplement": "\u0080-\u00ff", "^latin1supplement": "\u0000-\u007f\u0100-\U0010ffff", "latinextendeda": "\u0100-\u017f", "^latinextendeda": "\u0000-\u00ff\u0180-\U0010ffff", "latinextendedb": "\u0180-\u024f", "^latinextendedb": "\u0000-\u017f\u0250-\U0010ffff", "ipaextensions": "\u0250-\u02af", "^ipaextensions": "\u0000-\u024f\u02b0-\U0010ffff", "spacingmodifierletters": "\u02b0-\u02ff", "^spacingmodifierletters": "\u0000-\u02af\u0300-\U0010ffff", "combiningdiacriticalmarks": "\u0300-\u036f", "^combiningdiacriticalmarks": "\u0000-\u02ff\u0370-\U0010ffff", "greekandcoptic": "\u0370-\u03ff", "^greekandcoptic": "\u0000-\u036f\u0400-\U0010ffff", "cyrillic": "\u0400-\u04ff", "^cyrillic": "\u0000-\u03ff\u0500-\U0010ffff", "cyrillicsupplement": "\u0500-\u052f", "^cyrillicsupplement": "\u0000-\u04ff\u0530-\U0010ffff", "armenian": "\u0530-\u058f", "^armenian": "\u0000-\u052f\u0590-\U0010ffff", "hebrew": "\u0590-\u05ff", "^hebrew": "\u0000-\u058f\u0600-\U0010ffff", "arabic": "\u0600-\u06ff", "^arabic": "\u0000-\u05ff\u0700-\U0010ffff", "syriac": "\u0700-\u074f", "^syriac": "\u0000-\u06ff\u0750-\U0010ffff", "arabicsupplement": "\u0750-\u077f", "^arabicsupplement": "\u0000-\u074f\u0780-\U0010ffff", "thaana": "\u0780-\u07bf", "^thaana": "\u0000-\u077f\u07c0-\U0010ffff", "nko": "\u07c0-\u07ff", "^nko": "\u0000-\u07bf\u0800-\U0010ffff", "samaritan": "\u0800-\u083f", "^samaritan": "\u0000-\u07ff\u0840-\U0010ffff", "mandaic": "\u0840-\u085f", "^mandaic": "\u0000-\u083f\u0860-\U0010ffff", "arabicextendeda": "\u08a0-\u08ff", "^arabicextendeda": "\u0000-\u089f\u0900-\U0010ffff", "devanagari": "\u0900-\u097f", "^devanagari": "\u0000-\u08ff\u0980-\U0010ffff", "bengali": "\u0980-\u09ff", "^bengali": "\u0000-\u097f\u0a00-\U0010ffff", "gurmukhi": "\u0a00-\u0a7f", "^gurmukhi": "\u0000-\u09ff\u0a80-\U0010ffff", "gujarati": "\u0a80-\u0aff", "^gujarati": "\u0000-\u0a7f\u0b00-\U0010ffff", "oriya": "\u0b00-\u0b7f", "^oriya": "\u0000-\u0aff\u0b80-\U0010ffff", "tamil": "\u0b80-\u0bff", "^tamil": "\u0000-\u0b7f\u0c00-\U0010ffff", "telugu": "\u0c00-\u0c7f", "^telugu": "\u0000-\u0bff\u0c80-\U0010ffff", "kannada": "\u0c80-\u0cff", "^kannada": "\u0000-\u0c7f\u0d00-\U0010ffff", "malayalam": "\u0d00-\u0d7f", "^malayalam": "\u0000-\u0cff\u0d80-\U0010ffff", "sinhala": "\u0d80-\u0dff", "^sinhala": "\u0000-\u0d7f\u0e00-\U0010ffff", "thai": "\u0e00-\u0e7f", "^thai": "\u0000-\u0dff\u0e80-\U0010ffff", "lao": "\u0e80-\u0eff", "^lao": "\u0000-\u0e7f\u0f00-\U0010ffff", "tibetan": "\u0f00-\u0fff", "^tibetan": "\u0000-\u0eff\u1000-\U0010ffff", "myanmar": "\u1000-\u109f", "^myanmar": "\u0000-\u0fff\u10a0-\U0010ffff", "georgian": "\u10a0-\u10ff", "^georgian": "\u0000-\u109f\u1100-\U0010ffff", "hanguljamo": "\u1100-\u11ff", "^hanguljamo": "\u0000-\u10ff\u1200-\U0010ffff", "ethiopic": "\u1200-\u137f", "^ethiopic": "\u0000-\u11ff\u1380-\U0010ffff", "ethiopicsupplement": "\u1380-\u139f", "^ethiopicsupplement": "\u0000-\u137f\u13a0-\U0010ffff", "cherokee": "\u13a0-\u13ff", "^cherokee": "\u0000-\u139f\u1400-\U0010ffff", "unifiedcanadianaboriginalsyllabics": "\u1400-\u167f", "^unifiedcanadianaboriginalsyllabics": "\u0000-\u13ff\u1680-\U0010ffff", "ogham": "\u1680-\u169f", "^ogham": "\u0000-\u167f\u16a0-\U0010ffff", "runic": "\u16a0-\u16ff", "^runic": "\u0000-\u169f\u1700-\U0010ffff", "tagalog": "\u1700-\u171f", "^tagalog": "\u0000-\u16ff\u1720-\U0010ffff", "hanunoo": "\u1720-\u173f", "^hanunoo": "\u0000-\u171f\u1740-\U0010ffff", "buhid": "\u1740-\u175f", "^buhid": "\u0000-\u173f\u1760-\U0010ffff", "tagbanwa": "\u1760-\u177f", "^tagbanwa": "\u0000-\u175f\u1780-\U0010ffff", "khmer": "\u1780-\u17ff", "^khmer": "\u0000-\u177f\u1800-\U0010ffff", "mongolian": "\u1800-\u18af", "^mongolian": "\u0000-\u17ff\u18b0-\U0010ffff", "unifiedcanadianaboriginalsyllabicsextended": "\u18b0-\u18ff", "^unifiedcanadianaboriginalsyllabicsextended": "\u0000-\u18af\u1900-\U0010ffff", "limbu": "\u1900-\u194f", "^limbu": "\u0000-\u18ff\u1950-\U0010ffff", "taile": "\u1950-\u197f", "^taile": "\u0000-\u194f\u1980-\U0010ffff", "newtailue": "\u1980-\u19df", "^newtailue": "\u0000-\u197f\u19e0-\U0010ffff", "khmersymbols": "\u19e0-\u19ff", "^khmersymbols": "\u0000-\u19df\u1a00-\U0010ffff", "buginese": "\u1a00-\u1a1f", "^buginese": "\u0000-\u19ff\u1a20-\U0010ffff", "taitham": "\u1a20-\u1aaf", "^taitham": "\u0000-\u1a1f\u1ab0-\U0010ffff", "balinese": "\u1b00-\u1b7f", "^balinese": "\u0000-\u1aff\u1b80-\U0010ffff", "sundanese": "\u1b80-\u1bbf", "^sundanese": "\u0000-\u1b7f\u1bc0-\U0010ffff", "batak": "\u1bc0-\u1bff", "^batak": "\u0000-\u1bbf\u1c00-\U0010ffff", "lepcha": "\u1c00-\u1c4f", "^lepcha": "\u0000-\u1bff\u1c50-\U0010ffff", "olchiki": "\u1c50-\u1c7f", "^olchiki": "\u0000-\u1c4f\u1c80-\U0010ffff", "sundanesesupplement": "\u1cc0-\u1ccf", "^sundanesesupplement": "\u0000-\u1cbf\u1cd0-\U0010ffff", "vedicextensions": "\u1cd0-\u1cff", "^vedicextensions": "\u0000-\u1ccf\u1d00-\U0010ffff", "phoneticextensions": "\u1d00-\u1d7f", "^phoneticextensions": "\u0000-\u1cff\u1d80-\U0010ffff", "phoneticextensionssupplement": "\u1d80-\u1dbf", "^phoneticextensionssupplement": "\u0000-\u1d7f\u1dc0-\U0010ffff", "combiningdiacriticalmarkssupplement": "\u1dc0-\u1dff", "^combiningdiacriticalmarkssupplement": "\u0000-\u1dbf\u1e00-\U0010ffff", "latinextendedadditional": "\u1e00-\u1eff", "^latinextendedadditional": "\u0000-\u1dff\u1f00-\U0010ffff", "greekextended": "\u1f00-\u1fff", "^greekextended": "\u0000-\u1eff\u2000-\U0010ffff", "generalpunctuation": "\u2000-\u206f", "^generalpunctuation": "\u0000-\u1fff\u2070-\U0010ffff", "superscriptsandsubscripts": "\u2070-\u209f", "^superscriptsandsubscripts": "\u0000-\u206f\u20a0-\U0010ffff", "currencysymbols": "\u20a0-\u20cf", "^currencysymbols": "\u0000-\u209f\u20d0-\U0010ffff", "combiningdiacriticalmarksforsymbols": "\u20d0-\u20ff", "^combiningdiacriticalmarksforsymbols": "\u0000-\u20cf\u2100-\U0010ffff", "letterlikesymbols": "\u2100-\u214f", "^letterlikesymbols": "\u0000-\u20ff\u2150-\U0010ffff", "numberforms": "\u2150-\u218f", "^numberforms": "\u0000-\u214f\u2190-\U0010ffff", "arrows": "\u2190-\u21ff", "^arrows": "\u0000-\u218f\u2200-\U0010ffff", "mathematicaloperators": "\u2200-\u22ff", "^mathematicaloperators": "\u0000-\u21ff\u2300-\U0010ffff", "miscellaneoustechnical": "\u2300-\u23ff", "^miscellaneoustechnical": "\u0000-\u22ff\u2400-\U0010ffff", "controlpictures": "\u2400-\u243f", "^controlpictures": "\u0000-\u23ff\u2440-\U0010ffff", "opticalcharacterrecognition": "\u2440-\u245f", "^opticalcharacterrecognition": "\u0000-\u243f\u2460-\U0010ffff", "enclosedalphanumerics": "\u2460-\u24ff", "^enclosedalphanumerics": "\u0000-\u245f\u2500-\U0010ffff", "boxdrawing": "\u2500-\u257f", "^boxdrawing": "\u0000-\u24ff\u2580-\U0010ffff", "blockelements": "\u2580-\u259f", "^blockelements": "\u0000-\u257f\u25a0-\U0010ffff", "geometricshapes": "\u25a0-\u25ff", "^geometricshapes": "\u0000-\u259f\u2600-\U0010ffff", "miscellaneoussymbols": "\u2600-\u26ff", "^miscellaneoussymbols": "\u0000-\u25ff\u2700-\U0010ffff", "dingbats": "\u2700-\u27bf", "^dingbats": "\u0000-\u26ff\u27c0-\U0010ffff", "miscellaneousmathematicalsymbolsa": "\u27c0-\u27ef", "^miscellaneousmathematicalsymbolsa": "\u0000-\u27bf\u27f0-\U0010ffff", "supplementalarrowsa": "\u27f0-\u27ff", "^supplementalarrowsa": "\u0000-\u27ef\u2800-\U0010ffff", "braillepatterns": "\u2800-\u28ff", "^braillepatterns": "\u0000-\u27ff\u2900-\U0010ffff", "supplementalarrowsb": "\u2900-\u297f", "^supplementalarrowsb": "\u0000-\u28ff\u2980-\U0010ffff", "miscellaneousmathematicalsymbolsb": "\u2980-\u29ff", "^miscellaneousmathematicalsymbolsb": "\u0000-\u297f\u2a00-\U0010ffff", "supplementalmathematicaloperators": "\u2a00-\u2aff", "^supplementalmathematicaloperators": "\u0000-\u29ff\u2b00-\U0010ffff", "miscellaneoussymbolsandarrows": "\u2b00-\u2bff", "^miscellaneoussymbolsandarrows": "\u0000-\u2aff\u2c00-\U0010ffff", "glagolitic": "\u2c00-\u2c5f", "^glagolitic": "\u0000-\u2bff\u2c60-\U0010ffff", "latinextendedc": "\u2c60-\u2c7f", "^latinextendedc": "\u0000-\u2c5f\u2c80-\U0010ffff", "coptic": "\u2c80-\u2cff", "^coptic": "\u0000-\u2c7f\u2d00-\U0010ffff", "georgiansupplement": "\u2d00-\u2d2f", "^georgiansupplement": "\u0000-\u2cff\u2d30-\U0010ffff", "tifinagh": "\u2d30-\u2d7f", "^tifinagh": "\u0000-\u2d2f\u2d80-\U0010ffff", "ethiopicextended": "\u2d80-\u2ddf", "^ethiopicextended": "\u0000-\u2d7f\u2de0-\U0010ffff", "cyrillicextendeda": "\u2de0-\u2dff", "^cyrillicextendeda": "\u0000-\u2ddf\u2e00-\U0010ffff", "supplementalpunctuation": "\u2e00-\u2e7f", "^supplementalpunctuation": "\u0000-\u2dff\u2e80-\U0010ffff", "cjkradicalssupplement": "\u2e80-\u2eff", "^cjkradicalssupplement": "\u0000-\u2e7f\u2f00-\U0010ffff", "kangxiradicals": "\u2f00-\u2fdf", "^kangxiradicals": "\u0000-\u2eff\u2fe0-\U0010ffff", "ideographicdescriptioncharacters": "\u2ff0-\u2fff", "^ideographicdescriptioncharacters": "\u0000-\u2fef\u3000-\U0010ffff", "cjksymbolsandpunctuation": "\u3000-\u303f", "^cjksymbolsandpunctuation": "\u0000-\u2fff\u3040-\U0010ffff", "hiragana": "\u3040-\u309f", "^hiragana": "\u0000-\u303f\u30a0-\U0010ffff", "katakana": "\u30a0-\u30ff", "^katakana": "\u0000-\u309f\u3100-\U0010ffff", "bopomofo": "\u3100-\u312f", "^bopomofo": "\u0000-\u30ff\u3130-\U0010ffff", "hangulcompatibilityjamo": "\u3130-\u318f", "^hangulcompatibilityjamo": "\u0000-\u312f\u3190-\U0010ffff", "kanbun": "\u3190-\u319f", "^kanbun": "\u0000-\u318f\u31a0-\U0010ffff", "bopomofoextended": "\u31a0-\u31bf", "^bopomofoextended": "\u0000-\u319f\u31c0-\U0010ffff", "cjkstrokes": "\u31c0-\u31ef", "^cjkstrokes": "\u0000-\u31bf\u31f0-\U0010ffff", "katakanaphoneticextensions": "\u31f0-\u31ff", "^katakanaphoneticextensions": "\u0000-\u31ef\u3200-\U0010ffff", "enclosedcjklettersandmonths": "\u3200-\u32ff", "^enclosedcjklettersandmonths": "\u0000-\u31ff\u3300-\U0010ffff", "cjkcompatibility": "\u3300-\u33ff", "^cjkcompatibility": "\u0000-\u32ff\u3400-\U0010ffff", "cjkunifiedideographsextensiona": "\u3400-\u4dbf", "^cjkunifiedideographsextensiona": "\u0000-\u33ff\u4dc0-\U0010ffff", "yijinghexagramsymbols": "\u4dc0-\u4dff", "^yijinghexagramsymbols": "\u0000-\u4dbf\u4e00-\U0010ffff", "cjkunifiedideographs": "\u4e00-\u9fff", "^cjkunifiedideographs": "\u0000-\u4dff\ua000-\U0010ffff", "yisyllables": "\ua000-\ua48f", "^yisyllables": "\u0000-\u9fff\ua490-\U0010ffff", "yiradicals": "\ua490-\ua4cf", "^yiradicals": "\u0000-\ua48f\ua4d0-\U0010ffff", "lisu": "\ua4d0-\ua4ff", "^lisu": "\u0000-\ua4cf\ua500-\U0010ffff", "vai": "\ua500-\ua63f", "^vai": "\u0000-\ua4ff\ua640-\U0010ffff", "cyrillicextendedb": "\ua640-\ua69f", "^cyrillicextendedb": "\u0000-\ua63f\ua6a0-\U0010ffff", "bamum": "\ua6a0-\ua6ff", "^bamum": "\u0000-\ua69f\ua700-\U0010ffff", "modifiertoneletters": "\ua700-\ua71f", "^modifiertoneletters": "\u0000-\ua6ff\ua720-\U0010ffff", "latinextendedd": "\ua720-\ua7ff", "^latinextendedd": "\u0000-\ua71f\ua800-\U0010ffff", "sylotinagri": "\ua800-\ua82f", "^sylotinagri": "\u0000-\ua7ff\ua830-\U0010ffff", "commonindicnumberforms": "\ua830-\ua83f", "^commonindicnumberforms": "\u0000-\ua82f\ua840-\U0010ffff", "phagspa": "\ua840-\ua87f", "^phagspa": "\u0000-\ua83f\ua880-\U0010ffff", "saurashtra": "\ua880-\ua8df", "^saurashtra": "\u0000-\ua87f\ua8e0-\U0010ffff", "devanagariextended": "\ua8e0-\ua8ff", "^devanagariextended": "\u0000-\ua8df\ua900-\U0010ffff", "kayahli": "\ua900-\ua92f", "^kayahli": "\u0000-\ua8ff\ua930-\U0010ffff", "rejang": "\ua930-\ua95f", "^rejang": "\u0000-\ua92f\ua960-\U0010ffff", "hanguljamoextendeda": "\ua960-\ua97f", "^hanguljamoextendeda": "\u0000-\ua95f\ua980-\U0010ffff", "javanese": "\ua980-\ua9df", "^javanese": "\u0000-\ua97f\ua9e0-\U0010ffff", "cham": "\uaa00-\uaa5f", "^cham": "\u0000-\ua9ff\uaa60-\U0010ffff", "myanmarextendeda": "\uaa60-\uaa7f", "^myanmarextendeda": "\u0000-\uaa5f\uaa80-\U0010ffff", "taiviet": "\uaa80-\uaadf", "^taiviet": "\u0000-\uaa7f\uaae0-\U0010ffff", "meeteimayekextensions": "\uaae0-\uaaff", "^meeteimayekextensions": "\u0000-\uaadf\uab00-\U0010ffff", "ethiopicextendeda": "\uab00-\uab2f", "^ethiopicextendeda": "\u0000-\uaaff\uab30-\U0010ffff", "meeteimayek": "\uabc0-\uabff", "^meeteimayek": "\u0000-\uabbf\uac00-\U0010ffff", "hangulsyllables": "\uac00-\ud7af", "^hangulsyllables": "\u0000-\uabff\ud7b0-\U0010ffff", "hanguljamoextendedb": "\ud7b0-\ud7ff", "^hanguljamoextendedb": "\u0000-\ud7af\ud800-\U0010ffff", "highsurrogates": "\ud800-\udb7f", "^highsurrogates": "\u0000-\ud7ff\udb80-\U0010ffff", "highprivateusesurrogates": "\udb80-\udbff", "^highprivateusesurrogates": "\u0000-\udb7f\udc00-\U0010ffff", "lowsurrogates": "\udc00-\udfff", "^lowsurrogates": "\u0000-\udbff\ue000-\U0010ffff", "privateusearea": "\ue000-\uf8ff", "^privateusearea": "\u0000-\udfff\uf900-\U0010ffff", "cjkcompatibilityideographs": "\uf900-\ufaff", "^cjkcompatibilityideographs": "\u0000-\uf8ff\ufb00-\U0010ffff", "alphabeticpresentationforms": "\ufb00-\ufb4f", "^alphabeticpresentationforms": "\u0000-\ufaff\ufb50-\U0010ffff", "arabicpresentationformsa": "\ufb50-\ufdff", "^arabicpresentationformsa": "\u0000-\ufb4f\ufe00-\U0010ffff", "variationselectors": "\ufe00-\ufe0f", "^variationselectors": "\u0000-\ufdff\ufe10-\U0010ffff", "verticalforms": "\ufe10-\ufe1f", "^verticalforms": "\u0000-\ufe0f\ufe20-\U0010ffff", "combininghalfmarks": "\ufe20-\ufe2f", "^combininghalfmarks": "\u0000-\ufe1f\ufe30-\U0010ffff", "cjkcompatibilityforms": "\ufe30-\ufe4f", "^cjkcompatibilityforms": "\u0000-\ufe2f\ufe50-\U0010ffff", "smallformvariants": "\ufe50-\ufe6f", "^smallformvariants": "\u0000-\ufe4f\ufe70-\U0010ffff", "arabicpresentationformsb": "\ufe70-\ufeff", "^arabicpresentationformsb": "\u0000-\ufe6f\uff00-\U0010ffff", "halfwidthandfullwidthforms": "\uff00-\uffef", "^halfwidthandfullwidthforms": "\u0000-\ufeff\ufff0-\U0010ffff", "specials": "\ufff0-\uffff", "^specials": "\u0000-\uffef\U00010000-\U0010ffff", "linearbsyllabary": "\U00010000-\U0001007f", "^linearbsyllabary": "\u0000-\uffff\U00010080-\U0010ffff", "linearbideograms": "\U00010080-\U000100ff", "^linearbideograms": "\u0000-\U0001007f\U00010100-\U0010ffff", "aegeannumbers": "\U00010100-\U0001013f", "^aegeannumbers": "\u0000-\U000100ff\U00010140-\U0010ffff", "ancientgreeknumbers": "\U00010140-\U0001018f", "^ancientgreeknumbers": "\u0000-\U0001013f\U00010190-\U0010ffff", "ancientsymbols": "\U00010190-\U000101cf", "^ancientsymbols": "\u0000-\U0001018f\U000101d0-\U0010ffff", "phaistosdisc": "\U000101d0-\U000101ff", "^phaistosdisc": "\u0000-\U000101cf\U00010200-\U0010ffff", "lycian": "\U00010280-\U0001029f", "^lycian": "\u0000-\U0001027f\U000102a0-\U0010ffff", "carian": "\U000102a0-\U000102df", "^carian": "\u0000-\U0001029f\U000102e0-\U0010ffff", "olditalic": "\U00010300-\U0001032f", "^olditalic": "\u0000-\U000102ff\U00010330-\U0010ffff", "gothic": "\U00010330-\U0001034f", "^gothic": "\u0000-\U0001032f\U00010350-\U0010ffff", "ugaritic": "\U00010380-\U0001039f", "^ugaritic": "\u0000-\U0001037f\U000103a0-\U0010ffff", "oldpersian": "\U000103a0-\U000103df", "^oldpersian": "\u0000-\U0001039f\U000103e0-\U0010ffff", "deseret": "\U00010400-\U0001044f", "^deseret": "\u0000-\U000103ff\U00010450-\U0010ffff", "shavian": "\U00010450-\U0001047f", "^shavian": "\u0000-\U0001044f\U00010480-\U0010ffff", "osmanya": "\U00010480-\U000104af", "^osmanya": "\u0000-\U0001047f\U000104b0-\U0010ffff", "cypriotsyllabary": "\U00010800-\U0001083f", "^cypriotsyllabary": "\u0000-\U000107ff\U00010840-\U0010ffff", "imperialaramaic": "\U00010840-\U0001085f", "^imperialaramaic": "\u0000-\U0001083f\U00010860-\U0010ffff", "phoenician": "\U00010900-\U0001091f", "^phoenician": "\u0000-\U000108ff\U00010920-\U0010ffff", "lydian": "\U00010920-\U0001093f", "^lydian": "\u0000-\U0001091f\U00010940-\U0010ffff", "meroitichieroglyphs": "\U00010980-\U0001099f", "^meroitichieroglyphs": "\u0000-\U0001097f\U000109a0-\U0010ffff", "meroiticcursive": "\U000109a0-\U000109ff", "^meroiticcursive": "\u0000-\U0001099f\U00010a00-\U0010ffff", "kharoshthi": "\U00010a00-\U00010a5f", "^kharoshthi": "\u0000-\U000109ff\U00010a60-\U0010ffff", "oldsoutharabian": "\U00010a60-\U00010a7f", "^oldsoutharabian": "\u0000-\U00010a5f\U00010a80-\U0010ffff", "avestan": "\U00010b00-\U00010b3f", "^avestan": "\u0000-\U00010aff\U00010b40-\U0010ffff", "inscriptionalparthian": "\U00010b40-\U00010b5f", "^inscriptionalparthian": "\u0000-\U00010b3f\U00010b60-\U0010ffff", "inscriptionalpahlavi": "\U00010b60-\U00010b7f", "^inscriptionalpahlavi": "\u0000-\U00010b5f\U00010b80-\U0010ffff", "oldturkic": "\U00010c00-\U00010c4f", "^oldturkic": "\u0000-\U00010bff\U00010c50-\U0010ffff", "ruminumeralsymbols": "\U00010e60-\U00010e7f", "^ruminumeralsymbols": "\u0000-\U00010e5f\U00010e80-\U0010ffff", "brahmi": "\U00011000-\U0001107f", "^brahmi": "\u0000-\U00010fff\U00011080-\U0010ffff", "kaithi": "\U00011080-\U000110cf", "^kaithi": "\u0000-\U0001107f\U000110d0-\U0010ffff", "sorasompeng": "\U000110d0-\U000110ff", "^sorasompeng": "\u0000-\U000110cf\U00011100-\U0010ffff", "chakma": "\U00011100-\U0001114f", "^chakma": "\u0000-\U000110ff\U00011150-\U0010ffff", "sharada": "\U00011180-\U000111df", "^sharada": "\u0000-\U0001117f\U000111e0-\U0010ffff", "takri": "\U00011680-\U000116cf", "^takri": "\u0000-\U0001167f\U000116d0-\U0010ffff", "cuneiform": "\U00012000-\U000123ff", "^cuneiform": "\u0000-\U00011fff\U00012400-\U0010ffff", "cuneiformnumbersandpunctuation": "\U00012400-\U0001247f", "^cuneiformnumbersandpunctuation": "\u0000-\U000123ff\U00012480-\U0010ffff", "egyptianhieroglyphs": "\U00013000-\U0001342f", "^egyptianhieroglyphs": "\u0000-\U00012fff\U00013430-\U0010ffff", "bamumsupplement": "\U00016800-\U00016a3f", "^bamumsupplement": "\u0000-\U000167ff\U00016a40-\U0010ffff", "miao": "\U00016f00-\U00016f9f", "^miao": "\u0000-\U00016eff\U00016fa0-\U0010ffff", "kanasupplement": "\U0001b000-\U0001b0ff", "^kanasupplement": "\u0000-\U0001afff\U0001b100-\U0010ffff", "byzantinemusicalsymbols": "\U0001d000-\U0001d0ff", "^byzantinemusicalsymbols": "\u0000-\U0001cfff\U0001d100-\U0010ffff", "musicalsymbols": "\U0001d100-\U0001d1ff", "^musicalsymbols": "\u0000-\U0001d0ff\U0001d200-\U0010ffff", "ancientgreekmusicalnotation": "\U0001d200-\U0001d24f", "^ancientgreekmusicalnotation": "\u0000-\U0001d1ff\U0001d250-\U0010ffff", "taixuanjingsymbols": "\U0001d300-\U0001d35f", "^taixuanjingsymbols": "\u0000-\U0001d2ff\U0001d360-\U0010ffff", "countingrodnumerals": "\U0001d360-\U0001d37f", "^countingrodnumerals": "\u0000-\U0001d35f\U0001d380-\U0010ffff", "mathematicalalphanumericsymbols": "\U0001d400-\U0001d7ff", "^mathematicalalphanumericsymbols": "\u0000-\U0001d3ff\U0001d800-\U0010ffff", "arabicmathematicalalphabeticsymbols": "\U0001ee00-\U0001eeff", "^arabicmathematicalalphabeticsymbols": "\u0000-\U0001edff\U0001ef00-\U0010ffff", "mahjongtiles": "\U0001f000-\U0001f02f", "^mahjongtiles": "\u0000-\U0001efff\U0001f030-\U0010ffff", "dominotiles": "\U0001f030-\U0001f09f", "^dominotiles": "\u0000-\U0001f02f\U0001f0a0-\U0010ffff", "playingcards": "\U0001f0a0-\U0001f0ff", "^playingcards": "\u0000-\U0001f09f\U0001f100-\U0010ffff", "enclosedalphanumericsupplement": "\U0001f100-\U0001f1ff", "^enclosedalphanumericsupplement": "\u0000-\U0001f0ff\U0001f200-\U0010ffff", "enclosedideographicsupplement": "\U0001f200-\U0001f2ff", "^enclosedideographicsupplement": "\u0000-\U0001f1ff\U0001f300-\U0010ffff", "miscellaneoussymbolsandpictographs": "\U0001f300-\U0001f5ff", "^miscellaneoussymbolsandpictographs": "\u0000-\U0001f2ff\U0001f600-\U0010ffff", "emoticons": "\U0001f600-\U0001f64f", "^emoticons": "\u0000-\U0001f5ff\U0001f650-\U0010ffff", "transportandmapsymbols": "\U0001f680-\U0001f6ff", "^transportandmapsymbols": "\u0000-\U0001f67f\U0001f700-\U0010ffff", "alchemicalsymbols": "\U0001f700-\U0001f77f", "^alchemicalsymbols": "\u0000-\U0001f6ff\U0001f780-\U0010ffff", "cjkunifiedideographsextensionb": "\U00020000-\U0002a6df", "^cjkunifiedideographsextensionb": "\u0000-\U0001ffff\U0002a6e0-\U0010ffff", "cjkunifiedideographsextensionc": "\U0002a700-\U0002b73f", "^cjkunifiedideographsextensionc": "\u0000-\U0002a6ff\U0002b740-\U0010ffff", "cjkunifiedideographsextensiond": "\U0002b740-\U0002b81f", "^cjkunifiedideographsextensiond": "\u0000-\U0002b73f\U0002b820-\U0010ffff", "cjkcompatibilityideographssupplement": "\U0002f800-\U0002fa1f", "^cjkcompatibilityideographssupplement": "\u0000-\U0002f7ff\U0002fa20-\U0010ffff", "tags": "\U000e0000-\U000e007f", "^tags": "\u0000-\U000dffff\U000e0080-\U0010ffff", "variationselectorssupplement": "\U000e0100-\U000e01ef", "^variationselectorssupplement": "\u0000-\U000e00ff\U000e01f0-\U0010ffff", "supplementaryprivateuseareaa": "\U000f0000-\U000fffff", "^supplementaryprivateuseareaa": "\u0000-\U000effff\U00100000-\U0010ffff", "supplementaryprivateuseareab": "\U00100000-\U0010ffff", "^supplementaryprivateuseareab": "\u0000-\U000fffff", "noblock": "\u0860-\u089f\u1ab0-\u1aff\u1c80-\u1cbf\u2fe0-\u2fef\ua9e0-\ua9ff\uab30-\uabbf\U00010200-\U0001027f\U000102e0-\U000102ff\U00010350-\U0001037f\U000103e0-\U000103ff\U000104b0-\U000107ff\U00010860-\U000108ff\U00010940-\U0001097f\U00010a80-\U00010aff\U00010b80-\U00010bff\U00010c50-\U00010e5f\U00010e80-\U00010fff\U00011150-\U0001117f\U000111e0-\U0001167f\U000116d0-\U00011fff\U00012480-\U00012fff\U00013430-\U000167ff\U00016a40-\U00016eff\U00016fa0-\U0001afff\U0001b100-\U0001cfff\U0001d250-\U0001d2ff\U0001d380-\U0001d3ff\U0001d800-\U0001edff\U0001ef00-\U0001efff\U0001f650-\U0001f67f\U0001f780-\U0001ffff\U0002a6e0-\U0002a6ff\U0002b820-\U0002f7ff\U0002fa20-\U000dffff\U000e0080-\U000e00ff\U000e01f0-\U000effff", "^noblock": "\u0000-\u085f\u08a0-\u1aaf\u1b00-\u1c7f\u1cc0-\u2fdf\u2ff0-\ua9df\uaa00-\uab2f\uabc0-\U000101ff\U00010280-\U000102df\U00010300-\U0001034f\U00010380-\U000103df\U00010400-\U000104af\U00010800-\U0001085f\U00010900-\U0001093f\U00010980-\U00010a7f\U00010b00-\U00010b7f\U00010c00-\U00010c4f\U00010e60-\U00010e7f\U00011000-\U0001114f\U00011180-\U000111df\U00011680-\U000116cf\U00012000-\U0001247f\U00013000-\U0001342f\U00016800-\U00016a3f\U00016f00-\U00016f9f\U0001b000-\U0001b0ff\U0001d000-\U0001d24f\U0001d300-\U0001d37f\U0001d400-\U0001d7ff\U0001ee00-\U0001eeff\U0001f000-\U0001f64f\U0001f680-\U0001f77f\U00020000-\U0002a6df\U0002a700-\U0002b81f\U0002f800-\U0002fa1f\U000e0000-\U000e007f\U000e0100-\U000e01ef", }
{ "pile_set_name": "Github" }
34 Neopentane ... Neopentane Dimer C 0.38252221 -0.07060697 0.76689582 C -1.04063947 0.39681125 1.06093593 H -1.77157460 -0.28150025 0.61833023 H -1.22471777 0.43573509 2.13551890 H -1.21406603 1.39372444 0.65309065 C 0.59084747 -1.46681814 1.34797791 H 1.60291380 -1.82295000 1.15010285 H 0.43896858 -1.46674598 2.42828668 H -0.10991906 -2.17868425 0.90931390 C 1.37826905 0.89843536 1.39914944 H 2.40439397 0.58544074 1.20073365 H 1.24378092 0.94597430 2.48070991 H 1.24837318 1.90502262 0.99895071 C 0.60196094 -0.11103419 -0.74309659 H 0.45921182 0.87703910 -1.18289819 H 1.61369399 -0.44345945 -0.97967210 H -0.09953078 -0.79754982 -1.21922069 C -0.24286035 0.04489996 5.05931405 C 1.17995210 -0.42406604 4.76591451 H 1.36439130 -0.46339519 3.69139404 H 1.91138625 0.25360679 5.20865008 H 1.35221577 -1.42107208 5.17403508 C -0.44925716 1.44146149 4.47848357 H -1.46122026 1.79844694 4.67533110 H 0.25166143 2.15253296 4.91820534 H -0.29614795 1.44165810 3.39834122 C -0.46315484 0.08507618 6.56916768 H -1.47437100 0.41935316 6.80524087 H 0.23935761 0.77002521 7.04600590 H -0.32259175 -0.90344416 7.00861942 C -1.23932307 -0.92287770 4.42616765 H -1.11039706 -1.92985308 4.82574663 H -2.26521217 -0.60910484 4.62455551 H -1.10461871 -0.96985209 3.34459099
{ "pile_set_name": "Github" }
require File.join(File.dirname(__FILE__), "acceptance_test_helper") require 'mocha' class StubbingNonExistentClassMethodTest < Test::Unit::TestCase include AcceptanceTest def setup setup_acceptance_test end def teardown teardown_acceptance_test end def test_should_allow_stubbing_non_existent_class_method Mocha::Configuration.allow(:stubbing_non_existent_method) klass = Class.new test_result = run_test do klass.stubs(:non_existent_method) end assert !@logger.warnings.include?("stubbing non-existent method: #{klass}.non_existent_method") assert_passed(test_result) end def test_should_warn_when_stubbing_non_existent_class_method Mocha::Configuration.warn_when(:stubbing_non_existent_method) klass = Class.new test_result = run_test do klass.stubs(:non_existent_method) end assert_passed(test_result) assert @logger.warnings.include?("stubbing non-existent method: #{klass}.non_existent_method") end def test_should_prevent_stubbing_non_existent_class_method Mocha::Configuration.prevent(:stubbing_non_existent_method) klass = Class.new test_result = run_test do klass.stubs(:non_existent_method) end assert_failed(test_result) assert test_result.error_messages.include?("Mocha::StubbingError: stubbing non-existent method: #{klass}.non_existent_method") end def test_should_default_to_allow_stubbing_non_existent_class_method klass = Class.new test_result = run_test do klass.stubs(:non_existent_method) end assert !@logger.warnings.include?("stubbing non-existent method: #{klass}.non_existent_method") assert_passed(test_result) end def test_should_allow_stubbing_existing_public_class_method Mocha::Configuration.prevent(:stubbing_non_existent_method) klass = Class.new do class << self def existing_public_method; end public :existing_public_method end end test_result = run_test do klass.stubs(:existing_public_method) end assert_passed(test_result) end def test_should_allow_stubbing_method_to_which_class_responds Mocha::Configuration.prevent(:stubbing_non_existent_method) klass = Class.new do class << self def respond_to?(method, include_private = false) (method == :method_to_which_class_responds) end end end test_result = run_test do klass.stubs(:method_to_which_class_responds) end assert_passed(test_result) end def test_should_allow_stubbing_existing_protected_class_method Mocha::Configuration.prevent(:stubbing_non_existent_method) klass = Class.new do class << self def existing_protected_method; end protected :existing_protected_method end end test_result = run_test do klass.stubs(:existing_protected_method) end assert_passed(test_result) end def test_should_allow_stubbing_existing_private_class_method Mocha::Configuration.prevent(:stubbing_non_existent_method) klass = Class.new do class << self def existing_private_method; end private :existing_private_method end end test_result = run_test do klass.stubs(:existing_private_method) end assert_passed(test_result) end def test_should_allow_stubbing_existing_public_superclass_method Mocha::Configuration.prevent(:stubbing_non_existent_method) superklass = Class.new do class << self def existing_public_method; end public :existing_public_method end end klass = Class.new(superklass) test_result = run_test do klass.stubs(:existing_public_method) end assert_passed(test_result) end def test_should_allow_stubbing_existing_protected_superclass_method Mocha::Configuration.prevent(:stubbing_non_existent_method) superklass = Class.new do class << self def existing_protected_method; end protected :existing_protected_method end end klass = Class.new(superklass) test_result = run_test do klass.stubs(:existing_protected_method) end assert_passed(test_result) end def test_should_allow_stubbing_existing_private_superclass_method Mocha::Configuration.prevent(:stubbing_non_existent_method) superklass = Class.new do class << self def existing_private_method; end protected :existing_private_method end end klass = Class.new(superklass) test_result = run_test do klass.stubs(:existing_private_method) end assert_passed(test_result) end end
{ "pile_set_name": "Github" }
class DragHelper { private static _instance: DragHelper = new DragHelper(); public static getInstance(): DragHelper { return DragHelper._instance; } private readonly _helpPoint: Phaser.Math.Vector2 = new Phaser.Math.Vector2(); private readonly _dragOffset: Phaser.Math.Vector2 = new Phaser.Math.Vector2(); private _dragDisplayObject: Phaser.GameObjects.GameObject = null; public enableDrag(scene: Phaser.Scene, displayObject: Phaser.GameObjects.GameObject): void { scene.input.enable(displayObject); scene.input.setDraggable(displayObject, true); displayObject.on("dragstart", (a, b, c) => { this._dragStartHandler(displayObject, a, b, c); }, this); displayObject.on("dragend", this._dragStopHandler, this); } public disableDrag(scene: Phaser.Scene, displayObject: Phaser.GameObjects.Sprite): void { scene.input.setDraggable(displayObject, false); scene.input.disable(displayObject); displayObject.off("dragstart", this._dragStartHandler, this); displayObject.off("dragend", this._dragStopHandler, this); } private _dragStartHandler(displayObject: Phaser.GameObjects.GameObject, pointer: Phaser.Input.Pointer, dragX: number, dragY: number): void { if (this._dragDisplayObject) { return; } this._dragDisplayObject = displayObject; const armatureDisplay = this._dragDisplayObject.parentContainer as dragonBones.phaser.display.ArmatureDisplay; const bone = armatureDisplay.armature.getBoneByDisplay(this._dragDisplayObject); if (bone) { this._helpPoint.x = pointer.x; this._helpPoint.y = pointer.y; if (bone.offsetMode !== dragonBones.OffsetMode.Override) { bone.offsetMode = dragonBones.OffsetMode.Override; bone.offset.x = bone.global.x; bone.offset.y = bone.global.y; } this._dragOffset.x = bone.offset.x - this._helpPoint.x; this._dragOffset.y = bone.offset.y - this._helpPoint.y; displayObject.on("pointermove", this._dragHandler, this); } } private _dragStopHandler(pointer: Phaser.Input.Pointer, dragX: number, dragY: number, dropped: boolean): void { if (!this._dragDisplayObject) { return; } this._dragDisplayObject.off("pointermove", this._dragHandler, this); this._dragDisplayObject = null; } private _dragHandler(pointer: Phaser.Input.Pointer, localX: number, localY: number): void { if (!this._dragDisplayObject) { return; } const armatureDisplay = this._dragDisplayObject.parentContainer as dragonBones.phaser.display.ArmatureDisplay; const bone = armatureDisplay.armature.getBoneByDisplay(this._dragDisplayObject); if (bone) { this._helpPoint.x = pointer.x; this._helpPoint.y = pointer.y; bone.offset.x = this._helpPoint.x + this._dragOffset.x; bone.offset.y = this._helpPoint.y + this._dragOffset.y; bone.invalidUpdate(); } } }
{ "pile_set_name": "Github" }
using System; using System.Threading.Tasks; using Coravel.Scheduling.Schedule; using Coravel.Scheduling.Schedule.Mutex; using UnitTests.Scheduling.Stubs; using Xunit; using static UnitTests.Scheduling.Helpers.SchedulingTestHelpers; namespace UnitTests.Scheduling.IntervalTests { public class SchedulerEveryTenMinuteTests { [Theory] // Should Run [InlineData(0, 0, 0, true)] [InlineData(0, 0, 10, true)] [InlineData(0, 0, 20, true)] [InlineData(0, 0, 30, true)] [InlineData(0, 0, 40, true)] [InlineData(0, 0, 50, true)] [InlineData(0, 0, 60, true)] [InlineData(4, 5, 0, true)] [InlineData(3, 1, 10, true)] [InlineData(6, 13, 20, true)] [InlineData(2, 17, 30, true)] [InlineData(5, 5, 40, true)] [InlineData(0, 23, 50, true)] [InlineData(0, 23, 60, true)] //Should not run [InlineData(0, 0, 8, false)] [InlineData(3, 5, 9, false)] [InlineData(3, 5, 11, false)] [InlineData(3, 5, 12, false)] [InlineData(3, 5, 13, false)] [InlineData(3, 5, 14, false)] [InlineData(6, 23, 16, false)] [InlineData(6, 23, 17, false)] [InlineData(6, 23, 18, false)] [InlineData(6, 23, 19, false)] [InlineData(6, 23, 21, false)] [InlineData(6, 23, 22, false)] [InlineData(6, 23, 23, false)] [InlineData(1, 14, 24, false)] [InlineData(1, 14, 26, false)] [InlineData(1, 14, 27, false)] [InlineData(1, 14, 28, false)] [InlineData(1, 14, 29, false)] [InlineData(1, 14, 31, false)] [InlineData(1, 14, 49, false)] [InlineData(1, 14, 51, false)] [InlineData(1, 14, 52, false)] [InlineData(1, 14, 53, false)] [InlineData(1, 14, 54, false)] [InlineData(4, 7, 56, false)] [InlineData(4, 7, 57, false)] [InlineData(4, 7, 58, false)] [InlineData(4, 7, 59, false)] [InlineData(5, 6, 54, false)] public async Task ValidEveryTenMinutes(int day, int hour, int minute, bool shouldRun) { var scheduler = new Scheduler(new InMemoryMutex(), new ServiceScopeFactoryStub(), new DispatcherStub()); bool taskRan = false; scheduler.Schedule(() => taskRan = true).EveryTenMinutes(); await RunScheduledTasksFromDayHourMinutes(scheduler, day, hour, minute); Assert.Equal(shouldRun, taskRan); } } }
{ "pile_set_name": "Github" }
/** @file Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #ifndef _LEGACY_BIOS_INTERFACE_ #define _LEGACY_BIOS_INTERFACE_ #include <FrameworkDxe.h> #include <IndustryStandard/Pci.h> #include <IndustryStandard/SmBios.h> #include <IndustryStandard/Acpi10.h> #include <Guid/SmBios.h> #include <Guid/Acpi.h> #include <Guid/DxeServices.h> #include <Guid/LegacyBios.h> #include <Guid/StatusCodeDataTypeId.h> #include <Guid/ImageAuthentication.h> #include <Protocol/BlockIo.h> #include <Protocol/LoadedImage.h> #include <Protocol/PciIo.h> #include <Protocol/Cpu.h> #include <Protocol/Timer.h> #include <Protocol/IsaIo.h> #include <Protocol/LegacyRegion2.h> #include <Protocol/SimpleTextIn.h> #include <Protocol/LegacyInterrupt.h> #include <Protocol/LegacyBios.h> #include <Protocol/DiskInfo.h> #include <Protocol/GenericMemoryTest.h> #include <Protocol/LegacyBiosPlatform.h> #include <Protocol/DevicePath.h> #include <Protocol/Legacy8259.h> #include <Protocol/PciRootBridgeIo.h> #include <Protocol/SerialIo.h> #include <Protocol/SuperIo.h> #include <Protocol/IoMmu.h> #include <Library/BaseLib.h> #include <Library/DebugLib.h> #include <Library/UefiLib.h> #include <Library/BaseMemoryLib.h> #include <Library/ReportStatusCodeLib.h> #include <Library/UefiRuntimeServicesTableLib.h> #include <Library/HobLib.h> #include <Library/UefiDriverEntryPoint.h> #include <Library/MemoryAllocationLib.h> #include <Library/UefiBootServicesTableLib.h> #include <Library/IoLib.h> #include <Library/PcdLib.h> #include <Library/DevicePathLib.h> #include <Library/DxeServicesTableLib.h> #include <Library/DebugAgentLib.h> // // BUGBUG: This entry maybe changed to PCD in future and wait for // redesign of BDS library // #define MAX_BBS_ENTRIES 0x100 // // Thunk Status Codes // (These apply only to errors with the thunk and not to the code that was // thunked to.) // #define THUNK_OK 0x00 #define THUNK_ERR_A20_UNSUP 0x01 #define THUNK_ERR_A20_FAILED 0x02 // // Vector base definitions // // // 8259 Hardware definitions // #define LEGACY_MODE_BASE_VECTOR_MASTER 0x08 #define LEGACY_MODE_BASE_VECTOR_SLAVE 0x70 // // The original PC used INT8-F for master PIC. Since these mapped over // processor exceptions TIANO moved the master PIC to INT68-6F. // // The vector base for slave PIC is set as 0x70 for PC-AT compatibility. // #define PROTECTED_MODE_BASE_VECTOR_MASTER 0x68 #define PROTECTED_MODE_BASE_VECTOR_SLAVE 0x70 // // When we call CSM16 functions, some CSM16 use es:[offset + 0xabcd] to get data passed from CSM32, // offset + 0xabcd could overflow which exceeds 0xFFFF which is invalid in real mode. // So this will keep offset as small as possible to avoid offset overflow in real mode. // #define NORMALIZE_EFI_SEGMENT(_Adr) (UINT16) (((UINTN) (_Adr)) >> 4) #define NORMALIZE_EFI_OFFSET(_Adr) (UINT16) (((UINT16) ((UINTN) (_Adr))) & 0xf) // // Trace defines // // #define LEGACY_BDA_TRACE 0x000 #define LEGACY_BIOS_TRACE 0x040 #define LEGACY_BOOT_TRACE 0x080 #define LEGACY_CMOS_TRACE 0x0C0 #define LEGACY_IDE_TRACE 0x100 #define LEGACY_MP_TRACE 0x140 #define LEGACY_PCI_TRACE 0x180 #define LEGACY_SIO_TRACE 0x1C0 #define LEGACY_PCI_TRACE_000 LEGACY_PCI_TRACE + 0x00 #define LEGACY_PCI_TRACE_001 LEGACY_PCI_TRACE + 0x01 #define LEGACY_PCI_TRACE_002 LEGACY_PCI_TRACE + 0x02 #define LEGACY_PCI_TRACE_003 LEGACY_PCI_TRACE + 0x03 #define LEGACY_PCI_TRACE_004 LEGACY_PCI_TRACE + 0x04 #define LEGACY_PCI_TRACE_005 LEGACY_PCI_TRACE + 0x05 #define LEGACY_PCI_TRACE_006 LEGACY_PCI_TRACE + 0x06 #define LEGACY_PCI_TRACE_007 LEGACY_PCI_TRACE + 0x07 #define LEGACY_PCI_TRACE_008 LEGACY_PCI_TRACE + 0x08 #define LEGACY_PCI_TRACE_009 LEGACY_PCI_TRACE + 0x09 #define LEGACY_PCI_TRACE_00A LEGACY_PCI_TRACE + 0x0A #define LEGACY_PCI_TRACE_00B LEGACY_PCI_TRACE + 0x0B #define LEGACY_PCI_TRACE_00C LEGACY_PCI_TRACE + 0x0C #define LEGACY_PCI_TRACE_00D LEGACY_PCI_TRACE + 0x0D #define LEGACY_PCI_TRACE_00E LEGACY_PCI_TRACE + 0x0E #define LEGACY_PCI_TRACE_00F LEGACY_PCI_TRACE + 0x0F #define BDA_VIDEO_MODE 0x49 #define IDE_PI_REGISTER_PNE BIT0 #define IDE_PI_REGISTER_SNE BIT2 typedef struct { UINTN PciSegment; UINTN PciBus; UINTN PciDevice; UINTN PciFunction; UINT32 ShadowAddress; UINT32 ShadowedSize; UINT8 DiskStart; UINT8 DiskEnd; } ROM_INSTANCE_ENTRY; // // Values for RealModeGdt // #if defined (MDE_CPU_IA32) #define NUM_REAL_GDT_ENTRIES 3 #define CONVENTIONAL_MEMORY_TOP 0xA0000 // 640 KB #define INITIAL_VALUE_BELOW_1K 0x0 #elif defined (MDE_CPU_X64) #define NUM_REAL_GDT_ENTRIES 8 #define CONVENTIONAL_MEMORY_TOP 0xA0000 // 640 KB #define INITIAL_VALUE_BELOW_1K 0x0 #endif #pragma pack(1) // // Define what a processor GDT looks like // typedef struct { UINT32 LimitLo : 16; UINT32 BaseLo : 16; UINT32 BaseMid : 8; UINT32 Type : 4; UINT32 System : 1; UINT32 Dpl : 2; UINT32 Present : 1; UINT32 LimitHi : 4; UINT32 Software : 1; UINT32 Reserved : 1; UINT32 DefaultSize : 1; UINT32 Granularity : 1; UINT32 BaseHi : 8; } GDT32; typedef struct { UINT16 LimitLow; UINT16 BaseLow; UINT8 BaseMid; UINT8 Attribute; UINT8 LimitHi; UINT8 BaseHi; } GDT64; // // Define what a processor descriptor looks like // This data structure must be kept in sync with ASM STRUCT in Thunk.inc // typedef struct { UINT16 Limit; UINT64 Base; } DESCRIPTOR64; typedef struct { UINT16 Limit; UINT32 Base; } DESCRIPTOR32; // // Low stub lay out // #define LOW_STACK_SIZE (8 * 1024) // 8k? #define EFI_MAX_E820_ENTRY 100 #define FIRST_INSTANCE 1 #define NOT_FIRST_INSTANCE 0 #if defined (MDE_CPU_IA32) typedef struct { // // Space for the code // The address of Code is also the beginning of the relocated Thunk code // CHAR8 Code[4096]; // ? // // The address of the Reverse Thunk code // Note that this member CONTAINS the address of the relocated reverse thunk // code unlike the member variable 'Code', which IS the address of the Thunk // code. // UINT32 LowReverseThunkStart; // // Data for the code (cs releative) // DESCRIPTOR32 GdtDesc; // Protected mode GDT DESCRIPTOR32 IdtDesc; // Protected mode IDT UINT32 FlatSs; UINT32 FlatEsp; UINT32 LowCodeSelector; // Low code selector in GDT UINT32 LowDataSelector; // Low data selector in GDT UINT32 LowStack; DESCRIPTOR32 RealModeIdtDesc; // // real-mode GDT (temporary GDT with two real mode segment descriptors) // GDT32 RealModeGdt[NUM_REAL_GDT_ENTRIES]; DESCRIPTOR32 RealModeGdtDesc; // // Members specifically for the reverse thunk // The RevReal* members are used to store the current state of real mode // before performing the reverse thunk. The RevFlat* members must be set // before calling the reverse thunk assembly code. // UINT16 RevRealDs; UINT16 RevRealSs; UINT32 RevRealEsp; DESCRIPTOR32 RevRealIdtDesc; UINT16 RevFlatDataSelector; // Flat data selector in GDT UINT32 RevFlatStack; // // A low memory stack // CHAR8 Stack[LOW_STACK_SIZE]; // // Stack for flat mode after reverse thunk // @bug - This may no longer be necessary if the reverse thunk interface // is changed to have the flat stack in a different location. // CHAR8 RevThunkStack[LOW_STACK_SIZE]; // // Legacy16 Init memory map info // EFI_TO_COMPATIBILITY16_INIT_TABLE EfiToLegacy16InitTable; EFI_TO_COMPATIBILITY16_BOOT_TABLE EfiToLegacy16BootTable; CHAR8 InterruptRedirectionCode[32]; EFI_LEGACY_INSTALL_PCI_HANDLER PciHandler; EFI_DISPATCH_OPROM_TABLE DispatchOpromTable; BBS_TABLE BbsTable[MAX_BBS_ENTRIES]; } LOW_MEMORY_THUNK; #elif defined (MDE_CPU_X64) typedef struct { // // Space for the code // The address of Code is also the beginning of the relocated Thunk code // CHAR8 Code[4096]; // ? // // Data for the code (cs releative) // DESCRIPTOR64 X64GdtDesc; // Protected mode GDT DESCRIPTOR64 X64IdtDesc; // Protected mode IDT UINTN X64Ss; UINTN X64Esp; UINTN RealStack; DESCRIPTOR32 RealModeIdtDesc; DESCRIPTOR32 RealModeGdtDesc; // // real-mode GDT (temporary GDT with two real mode segment descriptors) // GDT64 RealModeGdt[NUM_REAL_GDT_ENTRIES]; UINT64 PageMapLevel4; // // A low memory stack // CHAR8 Stack[LOW_STACK_SIZE]; // // Legacy16 Init memory map info // EFI_TO_COMPATIBILITY16_INIT_TABLE EfiToLegacy16InitTable; EFI_TO_COMPATIBILITY16_BOOT_TABLE EfiToLegacy16BootTable; CHAR8 InterruptRedirectionCode[32]; EFI_LEGACY_INSTALL_PCI_HANDLER PciHandler; EFI_DISPATCH_OPROM_TABLE DispatchOpromTable; BBS_TABLE BbsTable[MAX_BBS_ENTRIES]; } LOW_MEMORY_THUNK; #endif // // PnP Expansion Header // typedef struct { UINT32 PnpSignature; UINT8 Revision; UINT8 Length; UINT16 NextHeader; UINT8 Reserved1; UINT8 Checksum; UINT32 DeviceId; UINT16 MfgPointer; UINT16 ProductNamePointer; UINT8 Class; UINT8 SubClass; UINT8 Interface; UINT8 DeviceIndicators; UINT16 Bcv; UINT16 DisconnectVector; UINT16 Bev; UINT16 Reserved2; UINT16 StaticResourceVector; } LEGACY_PNP_EXPANSION_HEADER; typedef struct { UINT8 PciSegment; UINT8 PciBus; UINT8 PciDevice; UINT8 PciFunction; UINT16 Vid; UINT16 Did; UINT16 SysSid; UINT16 SVid; UINT8 Class; UINT8 SubClass; UINT8 Interface; UINT8 Reserved; UINTN RomStart; UINTN ManufacturerString; UINTN ProductNameString; } LEGACY_ROM_AND_BBS_TABLE; // // Structure how EFI has mapped a devices HDD drive numbers. // Boot to EFI aware OS or shell requires this mapping when // 16-bit CSM assigns drive numbers. // This mapping is ignored booting to a legacy OS. // typedef struct { UINT8 PciSegment; UINT8 PciBus; UINT8 PciDevice; UINT8 PciFunction; UINT8 StartDriveNumber; UINT8 EndDriveNumber; } LEGACY_EFI_HDD_TABLE; // // This data is passed to Leacy16Boot // typedef enum { EfiAcpiAddressRangeMemory = 1, EfiAcpiAddressRangeReserved = 2, EfiAcpiAddressRangeACPI = 3, EfiAcpiAddressRangeNVS = 4, EfiAddressRangePersistentMemory = 7 } EFI_ACPI_MEMORY_TYPE; typedef struct { UINT64 BaseAddr; UINT64 Length; EFI_ACPI_MEMORY_TYPE Type; } EFI_E820_ENTRY64; typedef struct { UINT32 BassAddrLow; UINT32 BaseAddrHigh; UINT32 LengthLow; UINT32 LengthHigh; EFI_ACPI_MEMORY_TYPE Type; } EFI_E820_ENTRY; #pragma pack() extern BBS_TABLE *mBbsTable; extern EFI_GENERIC_MEMORY_TEST_PROTOCOL *gGenMemoryTest; extern BOOLEAN mEndOfDxe; #define PORT_70 0x70 #define PORT_71 0x71 #define CMOS_0A 0x0a ///< Status register A #define CMOS_0D 0x0d ///< Status register D #define CMOS_0E 0x0e ///< Diagnostic Status #define CMOS_0F 0x0f ///< Shutdown status #define CMOS_10 0x10 ///< Floppy type #define CMOS_12 0x12 ///< IDE type #define CMOS_14 0x14 ///< Same as BDA 40:10 #define CMOS_15 0x15 ///< Low byte of base memory in 1k increments #define CMOS_16 0x16 ///< High byte of base memory in 1k increments #define CMOS_17 0x17 ///< Low byte of 1MB+ memory in 1k increments - max 15 MB #define CMOS_18 0x18 ///< High byte of 1MB+ memory in 1k increments - max 15 MB #define CMOS_19 0x19 ///< C: extended drive type #define CMOS_1A 0x1a ///< D: extended drive type #define CMOS_2E 0x2e ///< Most significient byte of standard checksum #define CMOS_2F 0x2f ///< Least significient byte of standard checksum #define CMOS_30 0x30 ///< CMOS 0x17 #define CMOS_31 0x31 ///< CMOS 0x18 #define CMOS_32 0x32 ///< Century byte // // 8254 Timer registers // #define TIMER0_COUNT_PORT 0x40 #define TIMER1_COUNT_PORT 0x41 #define TIMER2_COUNT_PORT 0x42 #define TIMER_CONTROL_PORT 0x43 // // Timer 0, Read/Write LSB then MSB, Square wave output, binary count use. // #define TIMER0_CONTROL_WORD 0x36 #define LEGACY_BIOS_INSTANCE_SIGNATURE SIGNATURE_32 ('L', 'B', 'I', 'T') typedef struct { UINTN Signature; EFI_HANDLE Handle; EFI_LEGACY_BIOS_PROTOCOL LegacyBios; EFI_HANDLE ImageHandle; // // CPU Architectural Protocol // EFI_CPU_ARCH_PROTOCOL *Cpu; // // Timer Architectural Protocol // EFI_TIMER_ARCH_PROTOCOL *Timer; BOOLEAN TimerUses8254; // // Protocol to Lock and Unlock 0xc0000 - 0xfffff // EFI_LEGACY_REGION2_PROTOCOL *LegacyRegion; EFI_LEGACY_BIOS_PLATFORM_PROTOCOL *LegacyBiosPlatform; // // Interrupt control for thunk and PCI IRQ // EFI_LEGACY_8259_PROTOCOL *Legacy8259; // // PCI Interrupt PIRQ control // EFI_LEGACY_INTERRUPT_PROTOCOL *LegacyInterrupt; // // Generic Memory Test // EFI_GENERIC_MEMORY_TEST_PROTOCOL *GenericMemoryTest; // // TRUE if PCI Interrupt Line registers have been programmed. // BOOLEAN PciInterruptLine; // // Code space below 1MB needed by thunker to transition to real mode. // Contains stack and real mode code fragments // LOW_MEMORY_THUNK *IntThunk; // // Starting shadow address of the Legacy BIOS // UINT32 BiosStart; UINT32 LegacyBiosImageSize; // // Start of variables used by CsmItp.mac ITP macro file and/os LegacyBios // UINT8 Dump[4]; // // $EFI Legacy16 code entry info in memory < 1 MB; // EFI_COMPATIBILITY16_TABLE *Legacy16Table; VOID *Legacy16InitPtr; VOID *Legacy16BootPtr; VOID *InternalIrqRoutingTable; UINT32 NumberIrqRoutingEntries; VOID *BbsTablePtr; VOID *HddTablePtr; UINT32 NumberHddControllers; // // Cached copy of Legacy16 entry point // UINT16 Legacy16CallSegment; UINT16 Legacy16CallOffset; // // Returned from $EFI and passed in to OPROMS // UINT16 PnPInstallationCheckSegment; UINT16 PnPInstallationCheckOffset; // // E820 table // EFI_E820_ENTRY E820Table[EFI_MAX_E820_ENTRY]; UINT32 NumberE820Entries; // // True if legacy VGA INT 10h handler installed // BOOLEAN VgaInstalled; // // Number of IDE drives // UINT8 IdeDriveCount; // // Current Free Option ROM space. An option ROM must NOT go past // BiosStart. // UINT32 OptionRom; // // Save Legacy16 unexpected interrupt vector. Reprogram INT 68-6F from // EFI values to legacy value just before boot. // UINT32 BiosUnexpectedInt; UINT32 ThunkSavedInt[8]; UINT16 ThunkSeg; LEGACY_EFI_HDD_TABLE *LegacyEfiHddTable; UINT16 LegacyEfiHddTableIndex; UINT8 DiskEnd; UINT8 Disk4075; UINT16 TraceIndex; UINT16 Trace[0x200]; // // Indicate that whether GenericLegacyBoot is entered or not // BOOLEAN LegacyBootEntered; // // CSM16 PCI Interface Version // UINT16 Csm16PciInterfaceVersion; } LEGACY_BIOS_INSTANCE; #pragma pack(1) /* 40:00-01 Com1 40:02-03 Com2 40:04-05 Com3 40:06-07 Com4 40:08-09 Lpt1 40:0A-0B Lpt2 40:0C-0D Lpt3 40:0E-0E Ebda segment 40:10-11 MachineConfig 40:12 Bda12 - skip 40:13-14 MemSize below 1MB 40:15-16 Bda15_16 - skip 40:17 Keyboard Shift status 40:18-19 Bda18_19 - skip 40:1A-1B Key buffer head 40:1C-1D Key buffer tail 40:1E-3D Bda1E_3D- key buffer -skip 40:3E-3F FloppyData 3E = Calibration status 3F = Motor status 40:40 FloppyTimeout 40:41-74 Bda41_74 - skip 40:75 Number of HDD drives 40:76-77 Bda76_77 - skip 40:78-79 78 = Lpt1 timeout, 79 = Lpt2 timeout 40:7A-7B 7A = Lpt3 timeout, 7B = Lpt4 timeout 40:7C-7D 7C = Com1 timeout, 7D = Com2 timeout 40:7E-7F 7E = Com3 timeout, 7F = Com4 timeout 40:80-81 Pointer to start of key buffer 40:82-83 Pointer to end of key buffer 40:84-87 Bda84_87 - skip 40:88 HDD Data Xmit rate 40:89-8f skip 40:90 Floppy data rate 40:91-95 skip 40:96 Keyboard Status 40:97 LED Status 40:98-101 skip */ typedef struct { UINT16 Com1; UINT16 Com2; UINT16 Com3; UINT16 Com4; UINT16 Lpt1; UINT16 Lpt2; UINT16 Lpt3; UINT16 Ebda; UINT16 MachineConfig; UINT8 Bda12; UINT16 MemSize; UINT8 Bda15_16[0x02]; UINT8 ShiftStatus; UINT8 Bda18_19[0x02]; UINT16 KeyHead; UINT16 KeyTail; UINT16 Bda1E_3D[0x10]; UINT16 FloppyData; UINT8 FloppyTimeout; UINT8 Bda41_74[0x34]; UINT8 NumberOfDrives; UINT8 Bda76_77[0x02]; UINT16 Lpt1_2Timeout; UINT16 Lpt3_4Timeout; UINT16 Com1_2Timeout; UINT16 Com3_4Timeout; UINT16 KeyStart; UINT16 KeyEnd; UINT8 Bda84_87[0x4]; UINT8 DataXmit; UINT8 Bda89_8F[0x07]; UINT8 FloppyXRate; UINT8 Bda91_95[0x05]; UINT8 KeyboardStatus; UINT8 LedStatus; } BDA_STRUC; #pragma pack() #define LEGACY_BIOS_INSTANCE_FROM_THIS(this) CR (this, LEGACY_BIOS_INSTANCE, LegacyBios, LEGACY_BIOS_INSTANCE_SIGNATURE) /** Thunk to 16-bit real mode and execute a software interrupt with a vector of BiosInt. Regs will contain the 16-bit register context on entry and exit. @param This Protocol instance pointer. @param BiosInt Processor interrupt vector to invoke @param Regs Register contexted passed into (and returned) from thunk to 16-bit mode @retval FALSE Thunk completed, and there were no BIOS errors in the target code. See Regs for status. @retval TRUE There was a BIOS erro in the target code. **/ BOOLEAN EFIAPI LegacyBiosInt86 ( IN EFI_LEGACY_BIOS_PROTOCOL *This, IN UINT8 BiosInt, IN EFI_IA32_REGISTER_SET *Regs ); /** Thunk to 16-bit real mode and call Segment:Offset. Regs will contain the 16-bit register context on entry and exit. Arguments can be passed on the Stack argument @param This Protocol instance pointer. @param Segment Segment of 16-bit mode call @param Offset Offset of 16-bit mdoe call @param Regs Register contexted passed into (and returned) from thunk to 16-bit mode @param Stack Caller allocated stack used to pass arguments @param StackSize Size of Stack in bytes @retval FALSE Thunk completed, and there were no BIOS errors in the target code. See Regs for status. @retval TRUE There was a BIOS erro in the target code. **/ BOOLEAN EFIAPI LegacyBiosFarCall86 ( IN EFI_LEGACY_BIOS_PROTOCOL *This, IN UINT16 Segment, IN UINT16 Offset, IN EFI_IA32_REGISTER_SET *Regs, IN VOID *Stack, IN UINTN StackSize ); /** Test to see if a legacy PCI ROM exists for this device. Optionally return the Legacy ROM instance for this PCI device. @param This Protocol instance pointer. @param PciHandle The PCI PC-AT OPROM from this devices ROM BAR will be loaded @param RomImage Return the legacy PCI ROM for this device @param RomSize Size of ROM Image @param Flags Indicates if ROM found and if PC-AT. @retval EFI_SUCCESS Legacy Option ROM available for this device @retval EFI_UNSUPPORTED Legacy Option ROM not supported. **/ EFI_STATUS EFIAPI LegacyBiosCheckPciRom ( IN EFI_LEGACY_BIOS_PROTOCOL *This, IN EFI_HANDLE PciHandle, OUT VOID **RomImage, OPTIONAL OUT UINTN *RomSize, OPTIONAL OUT UINTN *Flags ); /** Assign drive number to legacy HDD drives prior to booting an EFI aware OS so the OS can access drives without an EFI driver. Note: BBS compliant drives ARE NOT available until this call by either shell or EFI. @param This Protocol instance pointer. @param BbsCount Number of BBS_TABLE structures @param BbsTable List BBS entries @retval EFI_SUCCESS Drive numbers assigned **/ EFI_STATUS EFIAPI LegacyBiosPrepareToBootEfi ( IN EFI_LEGACY_BIOS_PROTOCOL *This, OUT UINT16 *BbsCount, OUT BBS_TABLE **BbsTable ); /** To boot from an unconventional device like parties and/or execute HDD diagnostics. @param This Protocol instance pointer. @param Attributes How to interpret the other input parameters @param BbsEntry The 0-based index into the BbsTable for the parent device. @param BeerData Pointer to the 128 bytes of ram BEER data. @param ServiceAreaData Pointer to the 64 bytes of raw Service Area data. The caller must provide a pointer to the specific Service Area and not the start all Service Areas. EFI_INVALID_PARAMETER if error. Does NOT return if no error. **/ EFI_STATUS EFIAPI LegacyBiosBootUnconventionalDevice ( IN EFI_LEGACY_BIOS_PROTOCOL *This, IN UDC_ATTRIBUTES Attributes, IN UINTN BbsEntry, IN VOID *BeerData, IN VOID *ServiceAreaData ); /** Load a legacy PC-AT OPROM on the PciHandle device. Return information about how many disks were added by the OPROM and the shadow address and size. DiskStart & DiskEnd are INT 13h drive letters. Thus 0x80 is C: @param This Protocol instance pointer. @param PciHandle The PCI PC-AT OPROM from this devices ROM BAR will be loaded. This value is NULL if RomImage is non-NULL. This is the normal case. @param RomImage A PCI PC-AT ROM image. This argument is non-NULL if there is no hardware associated with the ROM and thus no PciHandle, otherwise is must be NULL. Example is PXE base code. @param Flags Indicates if ROM found and if PC-AT. @param DiskStart Disk number of first device hooked by the ROM. If DiskStart is the same as DiskEnd no disked were hooked. @param DiskEnd Disk number of the last device hooked by the ROM. @param RomShadowAddress Shadow address of PC-AT ROM @param RomShadowedSize Size of RomShadowAddress in bytes @retval EFI_SUCCESS Legacy ROM loaded for this device @retval EFI_INVALID_PARAMETER PciHandle not found @retval EFI_UNSUPPORTED There is no PCI ROM in the ROM BAR or no onboard ROM **/ EFI_STATUS EFIAPI LegacyBiosInstallPciRom ( IN EFI_LEGACY_BIOS_PROTOCOL * This, IN EFI_HANDLE PciHandle, IN VOID **RomImage, OUT UINTN *Flags, OUT UINT8 *DiskStart, OPTIONAL OUT UINT8 *DiskEnd, OPTIONAL OUT VOID **RomShadowAddress, OPTIONAL OUT UINT32 *RomShadowedSize OPTIONAL ); /** Fill in the standard BDA for Keyboard LEDs @param This Protocol instance pointer. @param Leds Current LED status @retval EFI_SUCCESS It should always work. **/ EFI_STATUS EFIAPI LegacyBiosUpdateKeyboardLedStatus ( IN EFI_LEGACY_BIOS_PROTOCOL *This, IN UINT8 Leds ); /** Get all BBS info @param This Protocol instance pointer. @param HddCount Number of HDD_INFO structures @param HddInfo Onboard IDE controller information @param BbsCount Number of BBS_TABLE structures @param BbsTable List BBS entries @retval EFI_SUCCESS Tables returned @retval EFI_NOT_FOUND resource not found @retval EFI_DEVICE_ERROR can not get BBS table **/ EFI_STATUS EFIAPI LegacyBiosGetBbsInfo ( IN EFI_LEGACY_BIOS_PROTOCOL *This, OUT UINT16 *HddCount, OUT HDD_INFO **HddInfo, OUT UINT16 *BbsCount, OUT BBS_TABLE **BbsTable ); /** Shadow all legacy16 OPROMs that haven't been shadowed. Warning: Use this with caution. This routine disconnects all EFI drivers. If used externally then caller must re-connect EFI drivers. @param This Protocol instance pointer. @retval EFI_SUCCESS OPROMs shadowed **/ EFI_STATUS EFIAPI LegacyBiosShadowAllLegacyOproms ( IN EFI_LEGACY_BIOS_PROTOCOL *This ); /** Attempt to legacy boot the BootOption. If the EFI contexted has been compromised this function will not return. @param This Protocol instance pointer. @param BbsDevicePath EFI Device Path from BootXXXX variable. @param LoadOptionsSize Size of LoadOption in size. @param LoadOptions LoadOption from BootXXXX variable @retval EFI_SUCCESS Removable media not present **/ EFI_STATUS EFIAPI LegacyBiosLegacyBoot ( IN EFI_LEGACY_BIOS_PROTOCOL *This, IN BBS_BBS_DEVICE_PATH *BbsDevicePath, IN UINT32 LoadOptionsSize, IN VOID *LoadOptions ); /** Allocate memory < 1 MB and copy the thunker code into low memory. Se up all the descriptors. @param Private Private context for Legacy BIOS @retval EFI_SUCCESS Should only pass. **/ EFI_STATUS LegacyBiosInitializeThunk ( IN LEGACY_BIOS_INSTANCE *Private ); /** Fill in the standard BDA and EBDA stuff before Legacy16 load @param Private Legacy BIOS Instance data @retval EFI_SUCCESS It should always work. **/ EFI_STATUS LegacyBiosInitBda ( IN LEGACY_BIOS_INSTANCE *Private ); /** Collect IDE Inquiry data from the IDE disks @param Private Legacy BIOS Instance data @param HddInfo Hdd Information @param Flag Reconnect IdeController or not @retval EFI_SUCCESS It should always work. **/ EFI_STATUS LegacyBiosBuildIdeData ( IN LEGACY_BIOS_INSTANCE *Private, IN HDD_INFO **HddInfo, IN UINT16 Flag ); /** Enable ide controller. This gets disabled when LegacyBoot.c is about to run the Option ROMs. @param Private Legacy BIOS Instance data **/ VOID EnableIdeController ( IN LEGACY_BIOS_INSTANCE *Private ); /** If the IDE channel is in compatibility (legacy) mode, remove all PCI I/O BAR addresses from the controller. @param IdeController The handle of target IDE controller **/ VOID InitLegacyIdeController ( IN EFI_HANDLE IdeController ); /** Program the interrupt routing register in all the PCI devices. On a PC AT system this register contains the 8259 IRQ vector that matches its PCI interrupt. @param Private Legacy BIOS Instance data @retval EFI_SUCCESS Succeed. @retval EFI_ALREADY_STARTED All PCI devices have been processed. **/ EFI_STATUS PciProgramAllInterruptLineRegisters ( IN LEGACY_BIOS_INSTANCE *Private ); /** Collect EFI Info about legacy devices. @param Private Legacy BIOS Instance data @retval EFI_SUCCESS It should always work. **/ EFI_STATUS LegacyBiosBuildSioData ( IN LEGACY_BIOS_INSTANCE *Private ); /** Shadow all the PCI legacy ROMs. Use data from the Legacy BIOS Protocol to chose the order. Skip any devices that have already have legacy BIOS run. @param Private Protocol instance pointer. @retval EFI_SUCCESS Succeed. @retval EFI_UNSUPPORTED Cannot get VGA device handle. **/ EFI_STATUS PciShadowRoms ( IN LEGACY_BIOS_INSTANCE *Private ); /** Fill in the standard BDA and EBDA stuff prior to legacy Boot @param Private Legacy BIOS Instance data @retval EFI_SUCCESS It should always work. **/ EFI_STATUS LegacyBiosCompleteBdaBeforeBoot ( IN LEGACY_BIOS_INSTANCE *Private ); /** Fill in the standard CMOS stuff before Legacy16 load @param Private Legacy BIOS Instance data @retval EFI_SUCCESS It should always work. **/ EFI_STATUS LegacyBiosInitCmos ( IN LEGACY_BIOS_INSTANCE *Private ); /** Fill in the standard CMOS stuff prior to legacy Boot @param Private Legacy BIOS Instance data @retval EFI_SUCCESS It should always work. **/ EFI_STATUS LegacyBiosCompleteStandardCmosBeforeBoot ( IN LEGACY_BIOS_INSTANCE *Private ); /** Contains the code that is copied into low memory (below 640K). This code reflects interrupts 0x68-0x6f to interrupts 0x08-0x0f. This template must be copied into low memory, and the IDT entries 0x68-0x6F must be point to the low memory copy of this code. Each entry is 4 bytes long, so IDT entries 0x68-0x6F can be easily computed. **/ VOID InterruptRedirectionTemplate ( VOID ); /** Build the E820 table. @param Private Legacy BIOS Instance data @param Size Size of E820 Table @retval EFI_SUCCESS It should always work. **/ EFI_STATUS LegacyBiosBuildE820 ( IN LEGACY_BIOS_INSTANCE *Private, OUT UINTN *Size ); /** This function is to put all AP in halt state. @param Private Legacy BIOS Instance data **/ VOID ShutdownAPs ( IN LEGACY_BIOS_INSTANCE *Private ); /** Worker function for LegacyBiosGetFlatDescs, retrieving content of specific registers. @param IntThunk Pointer to IntThunk of Legacy BIOS context. **/ VOID GetRegisters ( LOW_MEMORY_THUNK *IntThunk ); /** Routine for calling real thunk code. @param RealCode The address of thunk code. @param BiosInt The Bios interrupt vector number. @param CallAddress The address of 16-bit mode call. @return Status returned by real thunk code **/ UINTN CallRealThunkCode ( UINT8 *RealCode, UINT8 BiosInt, UINT32 CallAddress ); /** Routine for generating soft interrupt. @param Vector The interrupt vector number. **/ VOID GenerateSoftInit ( UINT8 Vector ); /** Allocate memory for legacy usage. @param AllocateType The type of allocation to perform. @param MemoryType The type of memory to allocate. @param StartPageAddress Start address of range @param Pages Number of pages to allocate @param Result Result of allocation @retval EFI_SUCCESS Legacy16 code loaded @retval Other No protocol installed, unload driver. **/ EFI_STATUS AllocateLegacyMemory ( IN EFI_ALLOCATE_TYPE AllocateType, IN EFI_MEMORY_TYPE MemoryType, IN EFI_PHYSICAL_ADDRESS StartPageAddress, IN UINTN Pages, OUT EFI_PHYSICAL_ADDRESS *Result ); /** Get a region from the LegacyBios for Tiano usage. Can only be invoked once. @param This Protocol instance pointer. @param LegacyMemorySize Size of required region @param Region Region to use. 00 = Either 0xE0000 or 0xF0000 block Bit0 = 1 0xF0000 block Bit1 = 1 0xE0000 block @param Alignment Address alignment. Bit mapped. First non-zero bit from right is alignment. @param LegacyMemoryAddress Region Assigned @retval EFI_SUCCESS Region assigned @retval EFI_ACCESS_DENIED Procedure previously invoked @retval Other Region not assigned **/ EFI_STATUS EFIAPI LegacyBiosGetLegacyRegion ( IN EFI_LEGACY_BIOS_PROTOCOL *This, IN UINTN LegacyMemorySize, IN UINTN Region, IN UINTN Alignment, OUT VOID **LegacyMemoryAddress ); /** Get a region from the LegacyBios for Tiano usage. Can only be invoked once. @param This Protocol instance pointer. @param LegacyMemorySize Size of data to copy @param LegacyMemoryAddress Legacy Region destination address Note: must be in region assigned by LegacyBiosGetLegacyRegion @param LegacyMemorySourceAddress Source of data @retval EFI_SUCCESS Region assigned @retval EFI_ACCESS_DENIED Destination outside assigned region **/ EFI_STATUS EFIAPI LegacyBiosCopyLegacyRegion ( IN EFI_LEGACY_BIOS_PROTOCOL *This, IN UINTN LegacyMemorySize, IN VOID *LegacyMemoryAddress, IN VOID *LegacyMemorySourceAddress ); /** Find Legacy16 BIOS image in the FLASH device and shadow it into memory. Find the $EFI table in the shadow area. Thunk into the Legacy16 code after it had been shadowed. @param Private Legacy BIOS context data @retval EFI_SUCCESS Legacy16 code loaded @retval Other No protocol installed, unload driver. **/ EFI_STATUS ShadowAndStartLegacy16 ( IN LEGACY_BIOS_INSTANCE *Private ); /** Checks the state of the floppy and if media is inserted. This routine checks the state of the floppy and if media is inserted. There are 3 cases: No floppy present - Set BBS entry to ignore Floppy present & no media - Set BBS entry to lowest priority. We cannot set it to ignore since 16-bit CSM will indicate no floppy and thus drive A: is unusable. CSM-16 will not try floppy since lowest priority and thus not incur boot time penality. Floppy present & media - Set BBS entry to some priority. @return State of floppy media **/ UINT8 HasMediaInFloppy ( VOID ); /** Identify drive data must be updated to actual parameters before boot. This requires updating the checksum, if it exists. @param IdentifyDriveData ATA Identify Data @param Checksum checksum of the ATA Identify Data @retval EFI_SUCCESS checksum calculated @retval EFI_SECURITY_VIOLATION IdentifyData invalid **/ EFI_STATUS CalculateIdentifyDriveChecksum ( IN UINT8 *IdentifyDriveData, OUT UINT8 *Checksum ); /** Identify drive data must be updated to actual parameters before boot. @param IdentifyDriveData ATA Identify Data **/ VOID UpdateIdentifyDriveData ( IN UINT8 *IdentifyDriveData ); /** Complete build of BBS TABLE. @param Private Legacy BIOS Instance data @param BbsTable BBS Table passed to 16-bit code @retval EFI_SUCCESS Removable media not present **/ EFI_STATUS LegacyBiosBuildBbs ( IN LEGACY_BIOS_INSTANCE *Private, IN BBS_TABLE *BbsTable ); /** Read CMOS register through index/data port. @param[in] Index The index of the CMOS register to read. @return The data value from the CMOS register specified by Index. **/ UINT8 LegacyReadStandardCmos ( IN UINT8 Index ); /** Write CMOS register through index/data port. @param[in] Index The index of the CMOS register to write. @param[in] Value The value of CMOS register to write. @return The value written to the CMOS register specified by Index. **/ UINT8 LegacyWriteStandardCmos ( IN UINT8 Index, IN UINT8 Value ); /** Calculate the new standard CMOS checksum and write it. @param Private Legacy BIOS Instance data @retval EFI_SUCCESS Calculate 16-bit checksum successfully **/ EFI_STATUS LegacyCalculateWriteStandardCmosChecksum ( VOID ); /** Test to see if a legacy PCI ROM exists for this device. Optionally return the Legacy ROM instance for this PCI device. @param[in] This Protocol instance pointer. @param[in] PciHandle The PCI PC-AT OPROM from this devices ROM BAR will be loaded @param[out] RomImage Return the legacy PCI ROM for this device @param[out] RomSize Size of ROM Image @param[out] RuntimeImageLength Runtime size of ROM Image @param[out] Flags Indicates if ROM found and if PC-AT. @param[out] OpromRevision Revision of the PCI Rom @param[out] ConfigUtilityCodeHeaderPointer of Configuration Utility Code Header @return EFI_SUCCESS Legacy Option ROM available for this device @return EFI_ALREADY_STARTED This device is already managed by its Oprom @return EFI_UNSUPPORTED Legacy Option ROM not supported. **/ EFI_STATUS LegacyBiosCheckPciRomEx ( IN EFI_LEGACY_BIOS_PROTOCOL *This, IN EFI_HANDLE PciHandle, OUT VOID **RomImage, OPTIONAL OUT UINTN *RomSize, OPTIONAL OUT UINTN *RuntimeImageLength, OPTIONAL OUT UINTN *Flags, OPTIONAL OUT UINT8 *OpromRevision, OPTIONAL OUT VOID **ConfigUtilityCodeHeader OPTIONAL ); /** Relocate this image under 4G memory for IPF. @param ImageHandle Handle of driver image. @param SystemTable Pointer to system table. @retval EFI_SUCCESS Image successfully relocated. @retval EFI_ABORTED Failed to relocate image. **/ EFI_STATUS RelocateImageUnder4GIfNeeded ( IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable ); /** Thunk to 16-bit real mode and call Segment:Offset. Regs will contain the 16-bit register context on entry and exit. Arguments can be passed on the Stack argument @param This Protocol instance pointer. @param Segment Segment of 16-bit mode call @param Offset Offset of 16-bit mdoe call @param Regs Register contexted passed into (and returned) from thunk to 16-bit mode @param Stack Caller allocated stack used to pass arguments @param StackSize Size of Stack in bytes @retval FALSE Thunk completed, and there were no BIOS errors in the target code. See Regs for status. @retval TRUE There was a BIOS erro in the target code. **/ BOOLEAN EFIAPI InternalLegacyBiosFarCall ( IN EFI_LEGACY_BIOS_PROTOCOL *This, IN UINT16 Segment, IN UINT16 Offset, IN EFI_IA32_REGISTER_SET *Regs, IN VOID *Stack, IN UINTN StackSize ); /** Load a legacy PC-AT OpROM for VGA controller. @param Private Driver private data. @retval EFI_SUCCESS Legacy ROM successfully installed for this device. @retval EFI_DEVICE_ERROR No VGA device handle found, or native EFI video driver cannot be successfully disconnected, or VGA thunk driver cannot be successfully connected. **/ EFI_STATUS LegacyBiosInstallVgaRom ( IN LEGACY_BIOS_INSTANCE *Private ); #endif
{ "pile_set_name": "Github" }
[MeasureAudioRaw0] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=1 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw1] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=2 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw2] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=3 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw3] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=4 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw4] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=5 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw5] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=6 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw6] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=7 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw7] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=8 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw8] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=9 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw9] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=10 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw10] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=11 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw11] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=12 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw12] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=13 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw13] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=14 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw14] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=15 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw15] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=16 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw16] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=17 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw17] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=18 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw18] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=19 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw19] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=20 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw20] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=21 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw21] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=22 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw22] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=23 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw23] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=24 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw24] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=25 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw25] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=26 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw26] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=27 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw27] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=28 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw28] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=29 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw29] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=30 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw30] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=31 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw31] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=32 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw32] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=33 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw33] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=34 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw34] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=35 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw35] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=36 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw36] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=37 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw37] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=38 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw38] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=39 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw39] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=40 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw40] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=41 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw41] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=42 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw42] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=43 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw43] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=44 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw44] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=45 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw45] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=46 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw46] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=47 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw47] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=48 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw48] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=49 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw49] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=50 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw50] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=51 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw51] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=52 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw52] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=53 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw53] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=54 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw54] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=55 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw55] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=56 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw56] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=57 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw57] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=58 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw58] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=59 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw59] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=60 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw60] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=61 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw61] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=62 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw62] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=63 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw63] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=64 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw64] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=65 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw65] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=66 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw66] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=67 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw67] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=68 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw68] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=69 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw69] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=70 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw70] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=71 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw71] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=72 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw72] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=73 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw73] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=74 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw74] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=75 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw75] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=76 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw76] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=77 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw77] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=78 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw78] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=79 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw79] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=80 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw80] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=81 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw81] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=82 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw82] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=83 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw83] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=84 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw84] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=85 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw85] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=86 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw86] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=87 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw87] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=88 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw88] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=89 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw89] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=90 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw90] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=91 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw91] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=92 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw92] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=93 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw93] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=94 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw94] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=95 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw95] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=96 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw96] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=97 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw97] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=98 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw98] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=99 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw99] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=100 Channel=Avg Group=RawAudioMeasures [MeasureAudioRaw100] Measure=Plugin Plugin=AudioLevel Parent=MeasureAudio Type=Band BandIdx=101 Channel=Avg Group=RawAudioMeasures
{ "pile_set_name": "Github" }
BUFFER buffer 1 2009-01-31T00:00:00 1 1 BUFFER buffer 1 2009-01-31T00:00:00 -1 0 BUFFER buffer 1 2009-02-28T00:00:00 1 1 BUFFER buffer 1 2009-02-28T00:00:00 -1 0 BUFFER buffer 1 2009-03-31T00:00:00 1 1 BUFFER buffer 1 2009-03-31T00:00:00 -1 0 BUFFER buffer A 2009-01-30T00:00:00 1 1 BUFFER buffer A 2009-01-30T00:00:00 -1 0 BUFFER buffer A 2009-02-27T00:00:00 1 1 BUFFER buffer A 2009-02-27T00:00:00 -1 0 BUFFER buffer A 2009-03-30T00:00:00 1 1 BUFFER buffer A 2009-03-30T00:00:00 -1 0 BUFFER buffer B 2009-01-30T00:00:00 -1 -1 BUFFER buffer B 2009-02-27T00:00:00 -1 -2 BUFFER buffer B 2009-03-30T00:00:00 -1 -3 DEMAND order 1 2009-03-01T00:00:00 1 DEMAND order 2 2009-02-01T00:00:00 1 DEMAND order 3 2009-04-01T00:00:00 1 RESOURCE assemble 2009-01-30T00:00:00 1 1 RESOURCE assemble 2009-01-31T00:00:00 -1 0 RESOURCE assemble 2009-02-27T00:00:00 1 1 RESOURCE assemble 2009-02-28T00:00:00 -1 0 RESOURCE assemble 2009-03-30T00:00:00 1 1 RESOURCE assemble 2009-03-31T00:00:00 -1 0 OPERATION delivery 1 2009-01-31T00:00:00 2009-02-01T00:00:00 1 OPERATION delivery 1 2009-02-28T00:00:00 2009-03-01T00:00:00 1 OPERATION delivery 1 2009-03-31T00:00:00 2009-04-01T00:00:00 1 OPERATION make item 1 2009-01-30T00:00:00 2009-01-31T00:00:00 1 OPERATION make item 1 2009-02-27T00:00:00 2009-02-28T00:00:00 1 OPERATION make item 1 2009-03-30T00:00:00 2009-03-31T00:00:00 1 OPERATION supply component A 2009-01-29T00:00:00 2009-01-30T00:00:00 1 OPERATION supply component A 2009-02-26T00:00:00 2009-02-27T00:00:00 1 OPERATION supply component A 2009-03-29T00:00:00 2009-03-30T00:00:00 1 OPERATION supply component A from supplier 1 2009-01-29T00:00:00 2009-01-30T00:00:00 1 OPERATION supply component A from supplier 1 2009-02-26T00:00:00 2009-02-27T00:00:00 1 OPERATION supply component A from supplier 1 2009-03-29T00:00:00 2009-03-30T00:00:00 1 PROBLEM invalid data No replenishment defined for 'buffer B' 1971-01-01T00:00:00 / 2030-12-31T00:00:00 PROBLEM material shortage Buffer 'buffer B' has material shortage of 3 2009-01-30T00:00:00 / 2030-12-31T00:00:00
{ "pile_set_name": "Github" }
# gold loot=currency,50,40,50 # crafting loot=751,15 loot=752,15 loot=754,15 # normal clothes loot=311,13 loot=312,13 loot=313,13 loot=314,13 loot=315,13 loot=316,13 loot=317,13 loot=318,13 loot=319,13 loot=320,13 # normal weapons loot=321,13 loot=322,13 loot=323,13 # normal misc loot=324,13 # magic clothes loot=325,8 loot=326,8 loot=327,8 loot=328,8 loot=329,8 loot=330,8 loot=331,8 loot=332,8 loot=333,8 loot=334,8 loot=335,8 loot=336,8 loot=337,8 loot=338,8 loot=339,8 loot=340,8 loot=341,8 loot=342,8 # magic weapons loot=343,8 loot=344,8 loot=345,8 # magic misc loot=346,8 loot=347,8 loot=348,8 loot=349,8 loot=350,8 loot=351,8 loot=352,8 loot=353,8 # epic clothes loot=354,5 loot=355,5 loot=356,5 loot=357,5 loot=358,5 loot=359,5 loot=360,5 loot=361,5 loot=362,5 loot=363,5 loot=364,5 loot=365,5 loot=366,5 loot=367,5 loot=368,5 loot=369,5 loot=370,5 loot=371,5 # epic weapons loot=372,5 loot=373,5 loot=374,5 # epic misc loot=375,5 loot=376,5 loot=377,5 loot=378,5 loot=379,5 loot=380,5 loot=381,5 loot=382,5 # rare clothes loot=383,3 loot=384,3 loot=385,3 loot=386,3 loot=387,3 loot=388,3 loot=389,3 loot=390,3 loot=391,3 loot=392,3 loot=393,3 loot=394,3 loot=395,3 loot=396,3 loot=397,3 loot=398,3 loot=399,3 loot=400,3 # rare weapons loot=401,3 loot=402,3 loot=403,3 # rare misc loot=404,3 loot=405,3 loot=406,3 loot=407,3 loot=408,3 loot=409,3 loot=410,3 loot=411,3
{ "pile_set_name": "Github" }
-- -- Copyright 2015 National Instruments -- library ieee; use ieee.std_logic_1164.all; use ieee.numeric_std.all; entity addsub_vhdl is generic ( width_g : natural := 16); port ( clk_i : in std_ulogic; rst_i : in std_ulogic; i0_tdata : in std_ulogic_vector(width_g * 2 - 1 downto 0); i0_tlast : in std_ulogic; i0_tvalid : in std_ulogic; i0_tready : out std_ulogic; i1_tdata : in std_ulogic_vector(width_g * 2 - 1 downto 0); i1_tlast : in std_ulogic; i1_tvalid : in std_ulogic; i1_tready : out std_ulogic; sum_tdata : out std_ulogic_vector(width_g * 2 - 1 downto 0); sum_tlast : out std_ulogic; sum_tvalid : out std_ulogic; sum_tready : in std_ulogic; diff_tdata : out std_ulogic_vector(width_g * 2 - 1 downto 0); diff_tlast : out std_ulogic; diff_tvalid : out std_ulogic; diff_tready : in std_ulogic); end entity addsub_vhdl; architecture rtl of addsub_vhdl is component split_stream_fifo is generic ( WIDTH : natural := 16; ACTIVE_MASK : std_ulogic_vector(3 downto 0); FIFO_SIZE : natural := 6); port ( clk : in std_ulogic; reset : in std_ulogic; clear : in std_ulogic; i_tdata : in std_ulogic_vector(WIDTH - 1 downto 0); i_tlast : in std_ulogic; i_tvalid : in std_ulogic; i_tready : out std_ulogic; o0_tdata : out std_ulogic_vector(WIDTH - 1 downto 0); o0_tlast : out std_ulogic; o0_tvalid : out std_ulogic; o0_tready : in std_ulogic; o1_tdata : out std_ulogic_vector(WIDTH - 1 downto 0); o1_tlast : out std_ulogic; o1_tvalid : out std_ulogic; o1_tready : in std_ulogic; o2_tdata : out std_ulogic_vector(WIDTH - 1 downto 0); o2_tlast : out std_ulogic; o2_tvalid : out std_ulogic; o2_tready : in std_ulogic; o3_tdata : out std_ulogic_vector(WIDTH - 1 downto 0); o3_tlast : out std_ulogic; o3_tvalid : out std_ulogic; o3_tready : in std_ulogic); end component split_stream_fifo; signal sum_a : unsigned(width_g - 1 downto 0); signal sum_b : unsigned(width_g - 1 downto 0); signal diff_a : unsigned(width_g - 1 downto 0); signal diff_b : unsigned(width_g - 1 downto 0); signal int_tdata : std_ulogic_vector(width_g * 4 - 1 downto 0); signal int_tlast : std_ulogic; signal int_tvalid : std_ulogic; signal int_tready : std_ulogic; signal sum : std_ulogic_vector(width_g * 4 - 1 downto 0); signal diff : std_ulogic_vector(width_g * 4 - 1 downto 0); begin i0_tready <= int_tvalid and int_tready; i1_tready <= int_tvalid and int_tready; sum_a <= unsigned(i0_tdata(width_g * 2 - 1 downto width_g)) + unsigned(i1_tdata(width_g * 2 - 1 downto width_g)); sum_b <= unsigned(i0_tdata(width_g - 1 downto 0)) + unsigned(i1_tdata(width_g - 1 downto 0)); diff_a <= unsigned(i0_tdata(width_g * 2 - 1 downto width_g)) - unsigned(i1_tdata(width_g * 2 - 1 downto width_g)); diff_b <= unsigned(i0_tdata(width_g - 1 downto 0)) - unsigned(i1_tdata(width_g - 1 downto 0)); int_tdata <= std_ulogic_vector(sum_a) & std_ulogic_vector(sum_b) & std_ulogic_vector(diff_a) & std_ulogic_vector(diff_b); int_tlast <= i0_tlast; -- Follow first input int_tvalid <= i0_tvalid and i1_tvalid; splitter : split_stream_fifo generic map ( WIDTH => 4 * width_g, ACTIVE_MASK => "0011", FIFO_SIZE => 6) port map ( clk => clk_i, reset => rst_i, clear => '0', i_tdata => int_tdata, i_tlast => int_tlast, i_tvalid => int_tvalid, i_tready => int_tready, o0_tdata => sum, o0_tlast => sum_tlast, o0_tvalid => sum_tvalid, o0_tready => sum_tready, o1_tdata => diff, o1_tlast => diff_tlast, o1_tvalid => diff_tvalid, o1_tready => diff_tready, o2_tdata => open, o2_tlast => open, o2_tvalid => open, o2_tready => '1', o3_tdata => open, o3_tlast => open, o3_tvalid => open, o3_tready => '1'); sum_tdata <= sum(sum'high downto width_g * 2); diff_tdata <= diff(width_g * 2 - 1 downto diff'low); end architecture rtl;
{ "pile_set_name": "Github" }
; RUN: opt < %s -loop-unroll -S | not grep undef ; PR1385 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64" target triple = "i686-apple-darwin8" %struct.__mpz_struct = type { i32, i32, i32* } define void @Foo(%struct.__mpz_struct* %base) { entry: %want = alloca [1 x %struct.__mpz_struct], align 16 ; <[1 x %struct.__mpz_struct]*> [#uses=4] %want1 = getelementptr [1 x %struct.__mpz_struct], [1 x %struct.__mpz_struct]* %want, i32 0, i32 0 ; <%struct.__mpz_struct*> [#uses=1] call void @__gmpz_init( %struct.__mpz_struct* %want1 ) %want27 = getelementptr [1 x %struct.__mpz_struct], [1 x %struct.__mpz_struct]* %want, i32 0, i32 0 ; <%struct.__mpz_struct*> [#uses=1] %want3 = getelementptr [1 x %struct.__mpz_struct], [1 x %struct.__mpz_struct]* %want, i32 0, i32 0 ; <%struct.__mpz_struct*> [#uses=1] %want2 = getelementptr [1 x %struct.__mpz_struct], [1 x %struct.__mpz_struct]* %want, i32 0, i32 0 ; <%struct.__mpz_struct*> [#uses=2] br label %bb bb: ; preds = %bb, %entry %i.01.0 = phi i32 [ 0, %entry ], [ %indvar.next, %bb ] ; <i32> [#uses=1] %want23.0 = phi %struct.__mpz_struct* [ %want27, %entry ], [ %want2, %bb ] ; <%struct.__mpz_struct*> [#uses=1] call void @__gmpz_mul( %struct.__mpz_struct* %want23.0, %struct.__mpz_struct* %want3, %struct.__mpz_struct* %base ) %indvar.next = add i32 %i.01.0, 1 ; <i32> [#uses=2] %exitcond = icmp ne i32 %indvar.next, 2 ; <i1> [#uses=1] br i1 %exitcond, label %bb, label %bb10 bb10: ; preds = %bb %want2.lcssa = phi %struct.__mpz_struct* [ %want2, %bb ] ; <%struct.__mpz_struct*> [#uses=1] call void @__gmpz_clear( %struct.__mpz_struct* %want2.lcssa ) ret void } declare void @__gmpz_init(%struct.__mpz_struct*) declare void @__gmpz_mul(%struct.__mpz_struct*, %struct.__mpz_struct*, %struct.__mpz_struct*) declare void @__gmpz_clear(%struct.__mpz_struct*)
{ "pile_set_name": "Github" }
5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 2 2 2 2 2 2 2 2 2 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 1 1 1 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 4 4 4 4 4 4 4 4 4 4 4 4 4 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 2 2 2 2 2 2 2 5 5 5 5 5 5 5 5 5 5 5 5 5 5 3 3 3 3 3 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5
{ "pile_set_name": "Github" }
@TestOn('browser') import 'dart:async'; import 'package:over_react/over_react.dart'; import 'package:over_react/over_react_redux.dart'; import 'package:over_react_test/over_react_test.dart'; import 'package:test/test.dart'; import 'package:time/time.dart'; import 'package:todo_client/src/actions.dart'; import 'package:todo_client/src/components/app.dart'; import 'package:todo_client/src/components/user_list_item.dart'; import 'package:todo_client/src/models/user.dart'; import 'fixtures/utils.dart'; main() { initializeComponentTests(); group('ConnectedUserListItem', () { Ref<TodoAppComponent> appRef; UserListItemComponent component; User model; setUp(() { initializeTestStore(); appRef = createRef(); mount((ReduxProvider()..store = testStore)( (TodoApp()..ref = appRef)(), )); final appComponent = appRef.current; model = testStore.state.users.first; component = getComponentByTestId(appComponent, 'todo_client.UserListItem.${model.id}'); expect(component, isA<UserListItemComponent>(), reason: 'test setup sanity check'); }); tearDown(() { appRef = null; component = null; model = null; }); bool userShouldAppearSelected() => testStore.state.selectedUserIds.contains(model.id); bool userShouldAppearHighlighted() => testStore.state.highlightedUserIds.contains(model.id); bool userShouldBeEditable() => testStore.state.editableUserIds.contains(model.id); group('renders a UserListItem', () { group('with prop callbacks mapped to the expected Redux action', () { group('involving selection:', () { Future<Null> selectUser() async { expect(component.props.isSelected, isFalse, reason: 'test setup sanity check'); component.props.onSelect(model.id); final redrawCount = await component.didRedraw().future.timeout(20.milliseconds); expect(redrawCount, 1); expect(component.props.isSelected, isTrue); } test('props.onSelect => SelectUserAction', selectUser); test('props.onDeselect => DeselectUserAction', () async { await selectUser(); component.redrawCount = 0; component.props.onDeselect(model.id); final redrawCount = await component.didRedraw().future.timeout(20.milliseconds); expect(redrawCount, 1); expect(component.props.isSelected, isFalse); }); }); group('involving editability:', () { Future<Null> makeUserEditable() async { expect(component.props.isEditable, isFalse, reason: 'test setup sanity check'); component.props.onBeginEdit(model.id); final redrawCount = await component.didRedraw().future.timeout(20.milliseconds); expect(redrawCount, 1); expect(component.props.isEditable, isTrue); } test('props.onBeginEdit => BeginEditUserAction', makeUserEditable); test('props.onFinishEdit => FinishEditUserAction', () async { await makeUserEditable(); component.redrawCount = 0; component.props.onFinishEdit(model.id); final redrawCount = await component.didRedraw().future.timeout(20.milliseconds); expect(redrawCount, 1); expect(component.props.isEditable, isFalse); }); }); group('involving model CRUD:', () { test('props.onModelUpdate => UpdateUserAction', () async { const newName = 'Something Else'; component.props.onModelUpdate(User.from(model)..name = newName); final redrawCount = await component.didRedraw().future.timeout(20.milliseconds); expect(redrawCount, 1); expect(component.props.model.name, newName); }); test('props.onRemove => RemoveUserAction', () async { final todoRemovedCompleter = Completer<Null>(); testStore.onChange.listen((newState) { todoRemovedCompleter.complete(); }); component.props.onRemove(model.id); await todoRemovedCompleter.future.timeout(10.milliseconds); expect(getByTestId(appRef.current, 'todo_client.UserListItem.${model.id}'), isNull); }); }); }); group('with props.isSelected mapped to AppState.selectedUserIds', () { test('initially', () { expect(component.props.isSelected, userShouldAppearSelected()); }); test('when AppState.selectedUserIds is updated', () async { final wasSelected = userShouldAppearSelected(); if (!wasSelected) { testStore.dispatch(SelectUserAction(model.id)); } else { testStore.dispatch(DeselectUserAction(model.id)); } final redrawCount = await component.didRedraw().future.timeout(20.milliseconds); expect(redrawCount, 1); expect(wasSelected, !userShouldAppearSelected()); expect(component.props.isSelected, userShouldAppearSelected()); }); }); group('with props.isEditable mapped to AppState.editableUserIds', () { test('initially', () { expect(component.props.isEditable, userShouldBeEditable()); }); test('when AppState.selectedUserIds is updated', () async { final wasEditable = userShouldBeEditable(); if (!wasEditable) { testStore.dispatch(BeginEditUserAction(model.id)); } else { testStore.dispatch(FinishEditUserAction(model.id)); } final redrawCount = await component.didRedraw().future.timeout(20.milliseconds); expect(redrawCount, 1); expect(wasEditable, !userShouldBeEditable()); expect(component.props.isEditable, userShouldBeEditable()); }); }); group('with props.isHighlighted mapped to AppState.editableUserIds', () { test('initially', () { expect(component.props.isHighlighted, userShouldAppearHighlighted()); }); test('when AppState.selectedUserIds is updated', () async { final wasHighlighted = userShouldAppearHighlighted(); if (!wasHighlighted) { testStore.dispatch(HighlightUsersAction([model.id])); } else { testStore.dispatch(UnHighlightUsersAction([model.id])); } final redrawCount = await component.didRedraw().future.timeout(20.milliseconds); expect(redrawCount, 1); expect(wasHighlighted, !userShouldAppearHighlighted()); expect(component.props.isHighlighted, userShouldAppearHighlighted()); }); }); }); }); }
{ "pile_set_name": "Github" }
%YAML 1.1 %TAG !u! tag:unity3d.com,2011: --- !u!1001 &100100000 Prefab: m_ObjectHideFlags: 1 serializedVersion: 2 m_Modification: m_TransformParent: {fileID: 0} m_Modifications: [] m_RemovedComponents: [] m_ParentPrefab: {fileID: 0} m_RootGameObject: {fileID: 1025209478919984} m_IsPrefabParent: 1 --- !u!1 &1025209478919984 GameObject: m_ObjectHideFlags: 0 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 4362785807016324} m_Layer: 0 m_Name: Mountain3 m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1270177062694386 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 4376735042082548} - component: {fileID: 33960286228897648} - component: {fileID: 23343291711678168} m_Layer: 0 m_Name: environ_mtn_var3 m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1349206722273520 GameObject: m_ObjectHideFlags: 0 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 4996646253299702} m_Layer: 0 m_Name: environment_rockv3 m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1938439487202718 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 4654426037152884} - component: {fileID: 33148028024229606} - component: {fileID: 23821408076758866} m_Layer: 0 m_Name: floating_rock3 m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!4 &4362785807016324 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1025209478919984} m_LocalRotation: {x: 0, y: -0, z: -0, w: 1} m_LocalPosition: {x: -6.02, y: 0, z: 0} m_LocalScale: {x: 0.5, y: 0.5, z: 0.5} m_Children: - {fileID: 4996646253299702} m_Father: {fileID: 0} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!4 &4376735042082548 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1270177062694386} m_LocalRotation: {x: 0, y: -0, z: -0, w: 1} m_LocalPosition: {x: -0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 4996646253299702} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!4 &4654426037152884 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1938439487202718} m_LocalRotation: {x: 0, y: -0, z: -0, w: 1} m_LocalPosition: {x: -0, y: 7.4911675, z: 1.2063173} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 4996646253299702} m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!4 &4996646253299702 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1349206722273520} m_LocalRotation: {x: 0, y: -0, z: -0, w: 1} m_LocalPosition: {x: -0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: - {fileID: 4376735042082548} - {fileID: 4654426037152884} m_Father: {fileID: 4362785807016324} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!23 &23343291711678168 MeshRenderer: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1270177062694386} m_Enabled: 1 m_CastShadows: 1 m_ReceiveShadows: 1 m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 m_Materials: - {fileID: 2100000, guid: 7038af2d16e8f4fbb9ca86abf7c1da2d, type: 2} m_StaticBatchInfo: firstSubMesh: 0 subMeshCount: 0 m_StaticBatchRoot: {fileID: 0} m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 m_SelectedEditorRenderState: 3 m_MinimumChartSize: 4 m_AutoUVMaxDistance: 0.5 m_AutoUVMaxAngle: 89 m_LightmapParameters: {fileID: 0} m_SortingLayerID: 0 m_SortingLayer: 0 m_SortingOrder: 0 --- !u!23 &23821408076758866 MeshRenderer: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1938439487202718} m_Enabled: 1 m_CastShadows: 1 m_ReceiveShadows: 1 m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 m_Materials: - {fileID: 2100000, guid: 7038af2d16e8f4fbb9ca86abf7c1da2d, type: 2} m_StaticBatchInfo: firstSubMesh: 0 subMeshCount: 0 m_StaticBatchRoot: {fileID: 0} m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 m_SelectedEditorRenderState: 3 m_MinimumChartSize: 4 m_AutoUVMaxDistance: 0.5 m_AutoUVMaxAngle: 89 m_LightmapParameters: {fileID: 0} m_SortingLayerID: 0 m_SortingLayer: 0 m_SortingOrder: 0 --- !u!33 &33148028024229606 MeshFilter: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1938439487202718} m_Mesh: {fileID: 4300000, guid: 155b1af63e3e64ebdb4373b804696a83, type: 3} --- !u!33 &33960286228897648 MeshFilter: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1270177062694386} m_Mesh: {fileID: 4300002, guid: 155b1af63e3e64ebdb4373b804696a83, type: 3}
{ "pile_set_name": "Github" }
RSpec.describe 'Inferring schema from database' do include_context 'users' include_context 'posts' with_adapters do context "when database schema exists" do it "infers the schema from the database relations" do conf.relation(:users) expect(container.relations.users.to_a) .to eql(container.gateways[:default][:users].to_a) end end context "for empty database schemas" do it "returns an empty schema" do expect { container.users }.to raise_error(NoMethodError) end end context 'defining associations', seeds: false do let(:config) { TestConfiguration.new(:sql, conn) } let(:container) { ROM.container(config) } let(:user_associations) do config.relation(:accounts) { schema(infer: true) } config.relation(:cards) { schema(infer: true) } config.register_relation(Test::Users) container.relations[:users].associations end let(:post_associations) do config.relation(:tags) { schema(infer: true) } config.relation(:posts_tags) { schema(infer: true) } config.register_relation(Test::Posts) container.relations[:posts].associations end let(:tag_associations) do config.relation(:posts) { schema(infer: true) } config.relation(:users) { schema(infer: true) } config.relation(:posts_tags) { schema(infer: true) } config.register_relation(Test::Tags) container.relations[:tags].associations end it "allows defining a one-to-many" do class Test::Posts < ROM::Relation[:sql] schema(:posts) do associations do one_to_many :tags end end end assoc = ROM::Associations::Definitions::OneToMany.new(:posts, :tags) expect(post_associations[:tags].definition).to eql(assoc) end it "allows defining a one-to-many using has_many shortcut" do class Test::Posts < ROM::Relation[:sql] schema(:posts) do associations do has_many :tags end end end assoc = ROM::Associations::Definitions::OneToMany.new(:posts, :tags) expect(post_associations[:tags].definition).to eql(assoc) end it "allows defining a one-to-one" do class Test::Users < ROM::Relation[:sql] schema(:users) do associations do one_to_one :accounts end end end assoc = ROM::Associations::Definitions::OneToOne.new(:users, :accounts) expect(user_associations[:accounts].definition).to eql(assoc) end it "allows defining a one-to-one using has_one shortcut" do class Test::Users < ROM::Relation[:sql] schema(:users) do associations do has_one :account end end end assoc = ROM::Associations::Definitions::OneToOne.new(:users, :accounts, as: :account) expect(user_associations[:account].definition).to eql(assoc) expect(user_associations[:account].definition.target).to be_aliased end it "allows defining a one-to-one using has_one shortcut with an alias" do class Test::Users < ROM::Relation[:sql] schema(:users) do associations do has_one :account, as: :user_account end end end assoc = ROM::Associations::Definitions::OneToOne.new(:users, :accounts, as: :user_account) expect(user_associations[:user_account].definition).to eql(assoc) expect(user_associations[:user_account].definition.target).to be_aliased end it "allows defining a one-to-one-through" do class Test::Users < ROM::Relation[:sql] schema(:users) do associations do one_to_one :cards, through: :accounts end end end assoc = ROM::Associations::Definitions::OneToOneThrough.new(:users, :cards, through: :accounts) expect(user_associations[:cards].definition).to eql(assoc) end it "allows defining a many-to-one" do class Test::Tags < ROM::Relation[:sql] schema(:tags) do attribute :post_id, Types::Integer associations do many_to_one :posts end end end assoc = ROM::Associations::Definitions::ManyToOne.new(:tags, :posts) expect(tag_associations[:posts].definition).to eql(assoc) end it "allows defining a many-to-one using belongs_to shortcut" do class Test::Tags < ROM::Relation[:sql] schema(:tags) do attribute :post_id, Types::Integer associations do belongs_to :post end end end assoc = ROM::Associations::Definitions::ManyToOne.new(:tags, :posts, as: :post) expect(tag_associations[:post].definition).to eql(assoc) end it "allows defining a many-to-one using belongs_to shortcut" do class Test::Tags < ROM::Relation[:sql] schema(:tags) do attribute :post_id, Types::Integer associations do belongs_to :post, as: :post_tag end end end assoc = ROM::Associations::Definitions::ManyToOne.new(:tags, :posts, as: :post_tag) expect(tag_associations[:post_tag].definition).to eql(assoc) end it "allows defining a many-to-many" do class Test::Posts < ROM::Relation[:sql] schema(:posts) do associations do one_to_many :tags, through: :posts_tags end end end assoc = ROM::Associations::Definitions::ManyToMany.new(:posts, :tags, through: :posts_tags) expect(post_associations[:tags].definition).to eql(assoc) end it "allows defining a many-to-one with a custom name" do class Test::Tags < ROM::Relation[:sql] schema(:tags) do attribute :post_id, Types::Integer associations do many_to_one :posts, as: :published_posts end end end assoc = ROM::Associations::Definitions::ManyToOne.new(:tags, :posts, as: :published_posts) expect(tag_associations[:published_posts].definition).to eql(assoc) end it "adds foreign keys to the schema" do class Test::Tags < ROM::Relation[:sql] schema(:tags) do attribute :id, Types::Serial attribute :post_id, Types::ForeignKey(:posts) end end config.relation(:posts) { schema(infer: true) } config.relation(:users) { schema(infer: true) } config.register_relation(Test::Tags) tags = container.relations[:tags].schema expect(tags.foreign_keys.size).to eql(1) fk = tags.foreign_keys.first expect(fk.parent_table).to be(:posts) expect(fk.attributes[0].name).to be(:post_id) end end context 'defining indexes', :helpers do |ctx| it 'allows defining indexes' do class Test::Tags < ROM::Relation[:sql] schema(:tags) do attribute :id, Types::Serial attribute :name, Types::String attribute :created_at, Types::Time attribute :updated_at, Types::Time indexes do index :name index :created_at, :name index :updated_at, name: :recently_idx index :created_at, name: :unique_date, unique: true end end end conf.register_relation(Test::Tags) schema = container.relations[:tags].schema expect(schema.indexes.to_a). to contain_exactly( ROM::SQL::Index.new([define_attribute(:name, :String, source: schema.name)]), ROM::SQL::Index.new( [define_attribute(:created_at, :Time, source: schema.name), define_attribute(:name, :String, source: schema.name)] ), ROM::SQL::Index.new( [define_attribute(:updated_at, :Time, source: schema.name)], name: :recently_idx ), ROM::SQL::Index.new( [define_attribute(:created_at, :Time, source: schema.name)], name: :unique_date, unique: true ) ) end if metadata[:postgres] it 'can provide index type' do class Test::Tags < ROM::Relation[:sql] schema(:tags) do attribute :id, Types::Serial attribute :name, Types::String indexes do index :name, type: :gist end end end conf.register_relation(Test::Tags) schema = container.relations[:tags].schema index = schema.indexes.first expect(index).to eql( ROM::SQL::Index.new( [define_attribute(:name, :String, source: schema.name)], type: :gist) ) expect(index.type).to eql(:gist) end end end end end
{ "pile_set_name": "Github" }
/* Based on Sublime Text's Monokai theme */ .cm-s-monokai.CodeMirror { background: #272822; color: #f8f8f2; } .cm-s-monokai div.CodeMirror-selected { background: #49483E; } .cm-s-monokai .CodeMirror-line::selection, .cm-s-monokai .CodeMirror-line > span::selection, .cm-s-monokai .CodeMirror-line > span > span::selection { background: rgba(73, 72, 62, .99); } .cm-s-monokai .CodeMirror-line::-moz-selection, .cm-s-monokai .CodeMirror-line > span::-moz-selection, .cm-s-monokai .CodeMirror-line > span > span::-moz-selection { background: rgba(73, 72, 62, .99); } .cm-s-monokai .CodeMirror-gutters { background: #272822; border-right: 0px; } .cm-s-monokai .CodeMirror-guttermarker { color: white; } .cm-s-monokai .CodeMirror-guttermarker-subtle { color: #d0d0d0; } .cm-s-monokai .CodeMirror-linenumber { color: #d0d0d0; } .cm-s-monokai .CodeMirror-cursor { border-left: 1px solid #f8f8f0; } .cm-s-monokai span.cm-comment { color: #75715e; } .cm-s-monokai span.cm-atom { color: #ae81ff; } .cm-s-monokai span.cm-number { color: #ae81ff; } .cm-s-monokai span.cm-property, .cm-s-monokai span.cm-attribute { color: #a6e22e; } .cm-s-monokai span.cm-keyword { color: #f92672; } .cm-s-monokai span.cm-string { color: #e6db74; } .cm-s-monokai span.cm-variable { color: #f8f8f2; } .cm-s-monokai span.cm-variable-2 { color: #9effff; } .cm-s-monokai span.cm-variable-3 { color: #66d9ef; } .cm-s-monokai span.cm-def { color: #fd971f; } .cm-s-monokai span.cm-bracket { color: #f8f8f2; } .cm-s-monokai span.cm-tag { color: #f92672; } .cm-s-monokai span.cm-header { color: #ae81ff; } .cm-s-monokai span.cm-link { color: #ae81ff; } .cm-s-monokai span.cm-error { background: #f92672; color: #f8f8f0; } .cm-s-monokai .CodeMirror-activeline-background { background: #373831; } .cm-s-monokai .CodeMirror-matchingbracket { text-decoration: underline; color: white !important; }
{ "pile_set_name": "Github" }
# Changelog ## 3.3.4 - Fix Object.assign not working for IE <= 11 [#616](https://github.com/Bttstrp/bootstrap-switch/issues/616) ## 3.3.3 - Deprecate CoffeeScript in favour of ES6+ with Babel - Updated and restored documentation ## 3.3.2 - Fix for Flicker on initialisation [#425](https://github.com/nostalgiaz/bootstrap-switch/issues/425), [#422](https://github.com/nostalgiaz/bootstrap-switch/issues/422) - Prevent horizontal misalignment inside modal in page with odd width [#414](https://github.com/nostalgiaz/bootstrap-switch/issues/414) ## 3.3.1 - Revert of switchChange event triggered only on falsy skip [#411](https://github.com/nostalgiaz/bootstrap-switch/issues/411) ## 3.3.0 - Fixed setting of correct state on drag from indeterminate state [#403](https://github.com/nostalgiaz/bootstrap-switch/issues/403) - Fixed broken state changing on hidden switch [#392, [#383](https://github.com/nostalgiaz/bootstrap-switch/issues/383) - Missing animation on first state change triggered by side click [#390](https://github.com/nostalgiaz/bootstrap-switch/issues/390) - SwitchChange event always triggered after change event [#389](https://github.com/nostalgiaz/bootstrap-switch/issues/389) - Skip check for transitionend event on init [#381](https://github.com/nostalgiaz/bootstrap-switch/issues/381) - Added stopPropagation on element mousedown [#369](https://github.com/nostalgiaz/bootstrap-switch/issues/369) - Fixed wrong descrition in documentation [#351](https://github.com/nostalgiaz/bootstrap-switch/issues/351) ## 3.2.2 - Fixed wrong rendering of switch on initialisation if element is hidden [#376](https://github.com/nostalgiaz/bootstrap-switch/issues/376) ## 3.2.1 - Hotfix for broken initialisation logic if $.support.transition is not set [#375](https://github.com/nostalgiaz/bootstrap-switch/issues/375) ## 3.2.0 - Added option and method handleWidth to set a specific width of the side handled [#341](https://github.com/nostalgiaz/bootstrap-switch/issues/341) - Added option and method labelWidth to set a specific width of the center label [#341](https://github.com/nostalgiaz/bootstrap-switch/issues/341) - Fixed broken toggling of side handles when switch is wrapped in a external label [#359](https://github.com/nostalgiaz/bootstrap-switch/issues/359) - Minor refactoring all along the source code ## 3.1.0 - Added inverse option to swap the position of the left and right elements [#207](https://github.com/nostalgiaz/bootstrap-switch/issues/207) - Fixed misalignment on Safari [#223](https://github.com/nostalgiaz/bootstrap-switch/issues/223) - Added options toggleAnimate method - Enhanced documentation with new examples ## 3.0.2 - Added radioAllOff option. allow a group of radio inputs to be all off [#322](https://github.com/nostalgiaz/bootstrap-switch/issues/322) - Made HTML options overridable by JavaScript initalization options [#319](https://github.com/nostalgiaz/bootstrap-switch/issues/319) - .form-control does not interfere anymore with the switch appearance [#318](https://github.com/nostalgiaz/bootstrap-switch/issues/318) - Fixed triggering of two events in case of jQuery id selector [#317](https://github.com/nostalgiaz/bootstrap-switch/issues/317) - Fixed internal switching loop when toggling with spacebar [#316](https://github.com/nostalgiaz/bootstrap-switch/issues/316) - Fixed switch label toggling not working with radio inputs [#312](https://github.com/nostalgiaz/bootstrap-switch/issues/312) ## 3.0.1 - Added support for intermediate state [#218](https://github.com/nostalgiaz/bootstrap-switch/issues/218) - Added change event triggered on label click [#299](https://github.com/nostalgiaz/bootstrap-switch/issues/299) - Added onInit and onSwitchChange event as methods ## 3.0.0 - API redesign for a more intuitive use - Entire code source rewriting focused on cleanliness and performance - Initialization options can be passed as JavaScript object or written as data-* - Plugin constructor publicly available from $.fn.bootstrapSwitch.Constructor - Plugin instance publicly available calling .data('bootstrap-switch') - Global overridable defaults options - Improved flexibility with baseClass and wrapperClass options - New onInit event - Event namespacing - Full Bootstrap 3 support - A lot of fixed bug, as usual
{ "pile_set_name": "Github" }
Allocation scores: galera:0 promotion score on rhos6-node1: 100 galera:1 promotion score on rhos6-node2: 100 galera:2 promotion score on rhos6-node3: 100 pcmk__clone_allocate: ceilometer-alarm-evaluator-clone allocation score on rhos6-node1: 0 pcmk__clone_allocate: ceilometer-alarm-evaluator-clone allocation score on rhos6-node2: 0 pcmk__clone_allocate: ceilometer-alarm-evaluator-clone allocation score on rhos6-node3: 0 pcmk__clone_allocate: ceilometer-alarm-evaluator:0 allocation score on rhos6-node1: 1 pcmk__clone_allocate: ceilometer-alarm-evaluator:0 allocation score on rhos6-node2: 0 pcmk__clone_allocate: ceilometer-alarm-evaluator:0 allocation score on rhos6-node3: 0 pcmk__clone_allocate: ceilometer-alarm-evaluator:1 allocation score on rhos6-node1: 0 pcmk__clone_allocate: ceilometer-alarm-evaluator:1 allocation score on rhos6-node2: 1 pcmk__clone_allocate: ceilometer-alarm-evaluator:1 allocation score on rhos6-node3: 0 pcmk__clone_allocate: ceilometer-alarm-evaluator:2 allocation score on rhos6-node1: 0 pcmk__clone_allocate: ceilometer-alarm-evaluator:2 allocation score on rhos6-node2: 0 pcmk__clone_allocate: ceilometer-alarm-evaluator:2 allocation score on rhos6-node3: 1 pcmk__clone_allocate: ceilometer-alarm-notifier-clone allocation score on rhos6-node1: 0 pcmk__clone_allocate: ceilometer-alarm-notifier-clone allocation score on rhos6-node2: 0 pcmk__clone_allocate: ceilometer-alarm-notifier-clone allocation score on rhos6-node3: 0 pcmk__clone_allocate: ceilometer-alarm-notifier:0 allocation score on rhos6-node1: 1 pcmk__clone_allocate: ceilometer-alarm-notifier:0 allocation score on rhos6-node2: 0 pcmk__clone_allocate: ceilometer-alarm-notifier:0 allocation score on rhos6-node3: 0 pcmk__clone_allocate: ceilometer-alarm-notifier:1 allocation score on rhos6-node1: 0 pcmk__clone_allocate: ceilometer-alarm-notifier:1 allocation score on rhos6-node2: 1 pcmk__clone_allocate: ceilometer-alarm-notifier:1 allocation score on rhos6-node3: 0 pcmk__clone_allocate: ceilometer-alarm-notifier:2 allocation score on rhos6-node1: 0 pcmk__clone_allocate: ceilometer-alarm-notifier:2 allocation score on rhos6-node2: 0 pcmk__clone_allocate: ceilometer-alarm-notifier:2 allocation score on rhos6-node3: 1 pcmk__clone_allocate: ceilometer-api-clone allocation score on rhos6-node1: 0 pcmk__clone_allocate: ceilometer-api-clone allocation score on rhos6-node2: 0 pcmk__clone_allocate: ceilometer-api-clone allocation score on rhos6-node3: 0 pcmk__clone_allocate: ceilometer-api:0 allocation score on rhos6-node1: 1 pcmk__clone_allocate: ceilometer-api:0 allocation score on rhos6-node2: 0 pcmk__clone_allocate: ceilometer-api:0 allocation score on rhos6-node3: 0 pcmk__clone_allocate: ceilometer-api:1 allocation score on rhos6-node1: 0 pcmk__clone_allocate: ceilometer-api:1 allocation score on rhos6-node2: 1 pcmk__clone_allocate: ceilometer-api:1 allocation score on rhos6-node3: 0 pcmk__clone_allocate: ceilometer-api:2 allocation score on rhos6-node1: 0 pcmk__clone_allocate: ceilometer-api:2 allocation score on rhos6-node2: 0 pcmk__clone_allocate: ceilometer-api:2 allocation score on rhos6-node3: 1 pcmk__clone_allocate: ceilometer-collector-clone allocation score on rhos6-node1: 0 pcmk__clone_allocate: ceilometer-collector-clone allocation score on rhos6-node2: 0 pcmk__clone_allocate: ceilometer-collector-clone allocation score on rhos6-node3: 0 pcmk__clone_allocate: ceilometer-collector:0 allocation score on rhos6-node1: 1 pcmk__clone_allocate: ceilometer-collector:0 allocation score on rhos6-node2: 0 pcmk__clone_allocate: ceilometer-collector:0 allocation score on rhos6-node3: 0 pcmk__clone_allocate: ceilometer-collector:1 allocation score on rhos6-node1: 0 pcmk__clone_allocate: ceilometer-collector:1 allocation score on rhos6-node2: 1 pcmk__clone_allocate: ceilometer-collector:1 allocation score on rhos6-node3: 0 pcmk__clone_allocate: ceilometer-collector:2 allocation score on rhos6-node1: 0 pcmk__clone_allocate: ceilometer-collector:2 allocation score on rhos6-node2: 0 pcmk__clone_allocate: ceilometer-collector:2 allocation score on rhos6-node3: 1 pcmk__clone_allocate: ceilometer-delay-clone allocation score on rhos6-node1: 0 pcmk__clone_allocate: ceilometer-delay-clone allocation score on rhos6-node2: 0 pcmk__clone_allocate: ceilometer-delay-clone allocation score on rhos6-node3: 0 pcmk__clone_allocate: ceilometer-delay:0 allocation score on rhos6-node1: 1 pcmk__clone_allocate: ceilometer-delay:0 allocation score on rhos6-node2: 0 pcmk__clone_allocate: ceilometer-delay:0 allocation score on rhos6-node3: 0 pcmk__clone_allocate: ceilometer-delay:1 allocation score on rhos6-node1: 0 pcmk__clone_allocate: ceilometer-delay:1 allocation score on rhos6-node2: 1 pcmk__clone_allocate: ceilometer-delay:1 allocation score on rhos6-node3: 0 pcmk__clone_allocate: ceilometer-delay:2 allocation score on rhos6-node1: 0 pcmk__clone_allocate: ceilometer-delay:2 allocation score on rhos6-node2: 0 pcmk__clone_allocate: ceilometer-delay:2 allocation score on rhos6-node3: 1 pcmk__clone_allocate: ceilometer-notification-clone allocation score on rhos6-node1: 0 pcmk__clone_allocate: ceilometer-notification-clone allocation score on rhos6-node2: 0 pcmk__clone_allocate: ceilometer-notification-clone allocation score on rhos6-node3: 0 pcmk__clone_allocate: ceilometer-notification:0 allocation score on rhos6-node1: 1 pcmk__clone_allocate: ceilometer-notification:0 allocation score on rhos6-node2: 0 pcmk__clone_allocate: ceilometer-notification:0 allocation score on rhos6-node3: 0 pcmk__clone_allocate: ceilometer-notification:1 allocation score on rhos6-node1: 0 pcmk__clone_allocate: ceilometer-notification:1 allocation score on rhos6-node2: 1 pcmk__clone_allocate: ceilometer-notification:1 allocation score on rhos6-node3: 0 pcmk__clone_allocate: ceilometer-notification:2 allocation score on rhos6-node1: 0 pcmk__clone_allocate: ceilometer-notification:2 allocation score on rhos6-node2: 0 pcmk__clone_allocate: ceilometer-notification:2 allocation score on rhos6-node3: 1 pcmk__clone_allocate: galera-master allocation score on rhos6-node1: 0 pcmk__clone_allocate: galera-master allocation score on rhos6-node2: 0 pcmk__clone_allocate: galera-master allocation score on rhos6-node3: 0 pcmk__clone_allocate: galera:0 allocation score on rhos6-node1: 101 pcmk__clone_allocate: galera:0 allocation score on rhos6-node2: 0 pcmk__clone_allocate: galera:0 allocation score on rhos6-node3: 0 pcmk__clone_allocate: galera:1 allocation score on rhos6-node1: 0 pcmk__clone_allocate: galera:1 allocation score on rhos6-node2: 101 pcmk__clone_allocate: galera:1 allocation score on rhos6-node3: 0 pcmk__clone_allocate: galera:2 allocation score on rhos6-node1: 0 pcmk__clone_allocate: galera:2 allocation score on rhos6-node2: 0 pcmk__clone_allocate: galera:2 allocation score on rhos6-node3: 101 pcmk__clone_allocate: glance-api-clone allocation score on rhos6-node1: 0 pcmk__clone_allocate: glance-api-clone allocation score on rhos6-node2: 0 pcmk__clone_allocate: glance-api-clone allocation score on rhos6-node3: 0 pcmk__clone_allocate: glance-api:0 allocation score on rhos6-node1: 1 pcmk__clone_allocate: glance-api:0 allocation score on rhos6-node2: 0 pcmk__clone_allocate: glance-api:0 allocation score on rhos6-node3: 0 pcmk__clone_allocate: glance-api:1 allocation score on rhos6-node1: 0 pcmk__clone_allocate: glance-api:1 allocation score on rhos6-node2: 1 pcmk__clone_allocate: glance-api:1 allocation score on rhos6-node3: 0 pcmk__clone_allocate: glance-api:2 allocation score on rhos6-node1: 0 pcmk__clone_allocate: glance-api:2 allocation score on rhos6-node2: 0 pcmk__clone_allocate: glance-api:2 allocation score on rhos6-node3: 1 pcmk__clone_allocate: glance-fs-clone allocation score on rhos6-node1: 0 pcmk__clone_allocate: glance-fs-clone allocation score on rhos6-node2: 0 pcmk__clone_allocate: glance-fs-clone allocation score on rhos6-node3: 0 pcmk__clone_allocate: glance-fs:0 allocation score on rhos6-node1: 1 pcmk__clone_allocate: glance-fs:0 allocation score on rhos6-node2: 0 pcmk__clone_allocate: glance-fs:0 allocation score on rhos6-node3: 0 pcmk__clone_allocate: glance-fs:1 allocation score on rhos6-node1: 0 pcmk__clone_allocate: glance-fs:1 allocation score on rhos6-node2: 1 pcmk__clone_allocate: glance-fs:1 allocation score on rhos6-node3: 0 pcmk__clone_allocate: glance-fs:2 allocation score on rhos6-node1: 0 pcmk__clone_allocate: glance-fs:2 allocation score on rhos6-node2: 0 pcmk__clone_allocate: glance-fs:2 allocation score on rhos6-node3: 1 pcmk__clone_allocate: glance-registry-clone allocation score on rhos6-node1: 0 pcmk__clone_allocate: glance-registry-clone allocation score on rhos6-node2: 0 pcmk__clone_allocate: glance-registry-clone allocation score on rhos6-node3: 0 pcmk__clone_allocate: glance-registry:0 allocation score on rhos6-node1: 1 pcmk__clone_allocate: glance-registry:0 allocation score on rhos6-node2: 0 pcmk__clone_allocate: glance-registry:0 allocation score on rhos6-node3: 0 pcmk__clone_allocate: glance-registry:1 allocation score on rhos6-node1: 0 pcmk__clone_allocate: glance-registry:1 allocation score on rhos6-node2: 1 pcmk__clone_allocate: glance-registry:1 allocation score on rhos6-node3: 0 pcmk__clone_allocate: glance-registry:2 allocation score on rhos6-node1: 0 pcmk__clone_allocate: glance-registry:2 allocation score on rhos6-node2: 0 pcmk__clone_allocate: glance-registry:2 allocation score on rhos6-node3: 1 pcmk__clone_allocate: heat-api-cfn-clone allocation score on rhos6-node1: 0 pcmk__clone_allocate: heat-api-cfn-clone allocation score on rhos6-node2: 0 pcmk__clone_allocate: heat-api-cfn-clone allocation score on rhos6-node3: 0 pcmk__clone_allocate: heat-api-cfn:0 allocation score on rhos6-node1: 1 pcmk__clone_allocate: heat-api-cfn:0 allocation score on rhos6-node2: 0 pcmk__clone_allocate: heat-api-cfn:0 allocation score on rhos6-node3: 0 pcmk__clone_allocate: heat-api-cfn:1 allocation score on rhos6-node1: 0 pcmk__clone_allocate: heat-api-cfn:1 allocation score on rhos6-node2: 1 pcmk__clone_allocate: heat-api-cfn:1 allocation score on rhos6-node3: 0 pcmk__clone_allocate: heat-api-cfn:2 allocation score on rhos6-node1: 0 pcmk__clone_allocate: heat-api-cfn:2 allocation score on rhos6-node2: 0 pcmk__clone_allocate: heat-api-cfn:2 allocation score on rhos6-node3: 1 pcmk__clone_allocate: heat-api-clone allocation score on rhos6-node1: 0 pcmk__clone_allocate: heat-api-clone allocation score on rhos6-node2: 0 pcmk__clone_allocate: heat-api-clone allocation score on rhos6-node3: 0 pcmk__clone_allocate: heat-api-cloudwatch-clone allocation score on rhos6-node1: 0 pcmk__clone_allocate: heat-api-cloudwatch-clone allocation score on rhos6-node2: 0 pcmk__clone_allocate: heat-api-cloudwatch-clone allocation score on rhos6-node3: 0 pcmk__clone_allocate: heat-api-cloudwatch:0 allocation score on rhos6-node1: 1 pcmk__clone_allocate: heat-api-cloudwatch:0 allocation score on rhos6-node2: 0 pcmk__clone_allocate: heat-api-cloudwatch:0 allocation score on rhos6-node3: 0 pcmk__clone_allocate: heat-api-cloudwatch:1 allocation score on rhos6-node1: 0 pcmk__clone_allocate: heat-api-cloudwatch:1 allocation score on rhos6-node2: 1 pcmk__clone_allocate: heat-api-cloudwatch:1 allocation score on rhos6-node3: 0 pcmk__clone_allocate: heat-api-cloudwatch:2 allocation score on rhos6-node1: 0 pcmk__clone_allocate: heat-api-cloudwatch:2 allocation score on rhos6-node2: 0 pcmk__clone_allocate: heat-api-cloudwatch:2 allocation score on rhos6-node3: 1 pcmk__clone_allocate: heat-api:0 allocation score on rhos6-node1: 1 pcmk__clone_allocate: heat-api:0 allocation score on rhos6-node2: 0 pcmk__clone_allocate: heat-api:0 allocation score on rhos6-node3: 0 pcmk__clone_allocate: heat-api:1 allocation score on rhos6-node1: 0 pcmk__clone_allocate: heat-api:1 allocation score on rhos6-node2: 1 pcmk__clone_allocate: heat-api:1 allocation score on rhos6-node3: 0 pcmk__clone_allocate: heat-api:2 allocation score on rhos6-node1: 0 pcmk__clone_allocate: heat-api:2 allocation score on rhos6-node2: 0 pcmk__clone_allocate: heat-api:2 allocation score on rhos6-node3: 1 pcmk__clone_allocate: horizon-clone allocation score on rhos6-node1: 0 pcmk__clone_allocate: horizon-clone allocation score on rhos6-node2: 0 pcmk__clone_allocate: horizon-clone allocation score on rhos6-node3: 0 pcmk__clone_allocate: horizon:0 allocation score on rhos6-node1: 1 pcmk__clone_allocate: horizon:0 allocation score on rhos6-node2: 0 pcmk__clone_allocate: horizon:0 allocation score on rhos6-node3: 0 pcmk__clone_allocate: horizon:1 allocation score on rhos6-node1: 0 pcmk__clone_allocate: horizon:1 allocation score on rhos6-node2: 1 pcmk__clone_allocate: horizon:1 allocation score on rhos6-node3: 0 pcmk__clone_allocate: horizon:2 allocation score on rhos6-node1: 0 pcmk__clone_allocate: horizon:2 allocation score on rhos6-node2: 0 pcmk__clone_allocate: horizon:2 allocation score on rhos6-node3: 1 pcmk__clone_allocate: keystone-clone allocation score on rhos6-node1: 0 pcmk__clone_allocate: keystone-clone allocation score on rhos6-node2: 0 pcmk__clone_allocate: keystone-clone allocation score on rhos6-node3: 0 pcmk__clone_allocate: keystone:0 allocation score on rhos6-node1: 1 pcmk__clone_allocate: keystone:0 allocation score on rhos6-node2: 0 pcmk__clone_allocate: keystone:0 allocation score on rhos6-node3: 0 pcmk__clone_allocate: keystone:1 allocation score on rhos6-node1: 0 pcmk__clone_allocate: keystone:1 allocation score on rhos6-node2: 1 pcmk__clone_allocate: keystone:1 allocation score on rhos6-node3: 0 pcmk__clone_allocate: keystone:2 allocation score on rhos6-node1: 0 pcmk__clone_allocate: keystone:2 allocation score on rhos6-node2: 0 pcmk__clone_allocate: keystone:2 allocation score on rhos6-node3: 1 pcmk__clone_allocate: lb-haproxy-clone allocation score on rhos6-node1: 0 pcmk__clone_allocate: lb-haproxy-clone allocation score on rhos6-node2: 0 pcmk__clone_allocate: lb-haproxy-clone allocation score on rhos6-node3: 0 pcmk__clone_allocate: lb-haproxy:0 allocation score on rhos6-node1: 1 pcmk__clone_allocate: lb-haproxy:0 allocation score on rhos6-node2: 0 pcmk__clone_allocate: lb-haproxy:0 allocation score on rhos6-node3: 0 pcmk__clone_allocate: lb-haproxy:1 allocation score on rhos6-node1: 0 pcmk__clone_allocate: lb-haproxy:1 allocation score on rhos6-node2: 1 pcmk__clone_allocate: lb-haproxy:1 allocation score on rhos6-node3: 0 pcmk__clone_allocate: lb-haproxy:2 allocation score on rhos6-node1: 0 pcmk__clone_allocate: lb-haproxy:2 allocation score on rhos6-node2: 0 pcmk__clone_allocate: lb-haproxy:2 allocation score on rhos6-node3: 1 pcmk__clone_allocate: memcached-clone allocation score on rhos6-node1: 0 pcmk__clone_allocate: memcached-clone allocation score on rhos6-node2: 0 pcmk__clone_allocate: memcached-clone allocation score on rhos6-node3: 0 pcmk__clone_allocate: memcached:0 allocation score on rhos6-node1: 1 pcmk__clone_allocate: memcached:0 allocation score on rhos6-node2: 0 pcmk__clone_allocate: memcached:0 allocation score on rhos6-node3: 0 pcmk__clone_allocate: memcached:1 allocation score on rhos6-node1: 0 pcmk__clone_allocate: memcached:1 allocation score on rhos6-node2: 1 pcmk__clone_allocate: memcached:1 allocation score on rhos6-node3: 0 pcmk__clone_allocate: memcached:2 allocation score on rhos6-node1: 0 pcmk__clone_allocate: memcached:2 allocation score on rhos6-node2: 0 pcmk__clone_allocate: memcached:2 allocation score on rhos6-node3: 1 pcmk__clone_allocate: mongodb-clone allocation score on rhos6-node1: 0 pcmk__clone_allocate: mongodb-clone allocation score on rhos6-node2: 0 pcmk__clone_allocate: mongodb-clone allocation score on rhos6-node3: 0 pcmk__clone_allocate: mongodb:0 allocation score on rhos6-node1: 1 pcmk__clone_allocate: mongodb:0 allocation score on rhos6-node2: 0 pcmk__clone_allocate: mongodb:0 allocation score on rhos6-node3: 0 pcmk__clone_allocate: mongodb:1 allocation score on rhos6-node1: 0 pcmk__clone_allocate: mongodb:1 allocation score on rhos6-node2: 1 pcmk__clone_allocate: mongodb:1 allocation score on rhos6-node3: 0 pcmk__clone_allocate: mongodb:2 allocation score on rhos6-node1: 0 pcmk__clone_allocate: mongodb:2 allocation score on rhos6-node2: 0 pcmk__clone_allocate: mongodb:2 allocation score on rhos6-node3: 1 pcmk__clone_allocate: neutron-dhcp-agent-clone allocation score on rhos6-node1: 0 pcmk__clone_allocate: neutron-dhcp-agent-clone allocation score on rhos6-node2: 0 pcmk__clone_allocate: neutron-dhcp-agent-clone allocation score on rhos6-node3: 0 pcmk__clone_allocate: neutron-dhcp-agent:0 allocation score on rhos6-node1: 1 pcmk__clone_allocate: neutron-dhcp-agent:0 allocation score on rhos6-node2: 0 pcmk__clone_allocate: neutron-dhcp-agent:0 allocation score on rhos6-node3: 0 pcmk__clone_allocate: neutron-dhcp-agent:1 allocation score on rhos6-node1: 0 pcmk__clone_allocate: neutron-dhcp-agent:1 allocation score on rhos6-node2: 1 pcmk__clone_allocate: neutron-dhcp-agent:1 allocation score on rhos6-node3: 0 pcmk__clone_allocate: neutron-dhcp-agent:2 allocation score on rhos6-node1: 0 pcmk__clone_allocate: neutron-dhcp-agent:2 allocation score on rhos6-node2: 0 pcmk__clone_allocate: neutron-dhcp-agent:2 allocation score on rhos6-node3: 1 pcmk__clone_allocate: neutron-l3-agent-clone allocation score on rhos6-node1: 0 pcmk__clone_allocate: neutron-l3-agent-clone allocation score on rhos6-node2: 0 pcmk__clone_allocate: neutron-l3-agent-clone allocation score on rhos6-node3: 0 pcmk__clone_allocate: neutron-l3-agent:0 allocation score on rhos6-node1: 1 pcmk__clone_allocate: neutron-l3-agent:0 allocation score on rhos6-node2: 0 pcmk__clone_allocate: neutron-l3-agent:0 allocation score on rhos6-node3: 0 pcmk__clone_allocate: neutron-l3-agent:1 allocation score on rhos6-node1: 0 pcmk__clone_allocate: neutron-l3-agent:1 allocation score on rhos6-node2: 1 pcmk__clone_allocate: neutron-l3-agent:1 allocation score on rhos6-node3: 0 pcmk__clone_allocate: neutron-l3-agent:2 allocation score on rhos6-node1: 0 pcmk__clone_allocate: neutron-l3-agent:2 allocation score on rhos6-node2: 0 pcmk__clone_allocate: neutron-l3-agent:2 allocation score on rhos6-node3: 1 pcmk__clone_allocate: neutron-metadata-agent-clone allocation score on rhos6-node1: 0 pcmk__clone_allocate: neutron-metadata-agent-clone allocation score on rhos6-node2: 0 pcmk__clone_allocate: neutron-metadata-agent-clone allocation score on rhos6-node3: 0 pcmk__clone_allocate: neutron-metadata-agent:0 allocation score on rhos6-node1: 1 pcmk__clone_allocate: neutron-metadata-agent:0 allocation score on rhos6-node2: 0 pcmk__clone_allocate: neutron-metadata-agent:0 allocation score on rhos6-node3: 0 pcmk__clone_allocate: neutron-metadata-agent:1 allocation score on rhos6-node1: 0 pcmk__clone_allocate: neutron-metadata-agent:1 allocation score on rhos6-node2: 1 pcmk__clone_allocate: neutron-metadata-agent:1 allocation score on rhos6-node3: 0 pcmk__clone_allocate: neutron-metadata-agent:2 allocation score on rhos6-node1: 0 pcmk__clone_allocate: neutron-metadata-agent:2 allocation score on rhos6-node2: 0 pcmk__clone_allocate: neutron-metadata-agent:2 allocation score on rhos6-node3: 1 pcmk__clone_allocate: neutron-netns-cleanup-clone allocation score on rhos6-node1: 0 pcmk__clone_allocate: neutron-netns-cleanup-clone allocation score on rhos6-node2: 0 pcmk__clone_allocate: neutron-netns-cleanup-clone allocation score on rhos6-node3: 0 pcmk__clone_allocate: neutron-netns-cleanup:0 allocation score on rhos6-node1: 1 pcmk__clone_allocate: neutron-netns-cleanup:0 allocation score on rhos6-node2: 0 pcmk__clone_allocate: neutron-netns-cleanup:0 allocation score on rhos6-node3: 0 pcmk__clone_allocate: neutron-netns-cleanup:1 allocation score on rhos6-node1: 0 pcmk__clone_allocate: neutron-netns-cleanup:1 allocation score on rhos6-node2: 1 pcmk__clone_allocate: neutron-netns-cleanup:1 allocation score on rhos6-node3: 0 pcmk__clone_allocate: neutron-netns-cleanup:2 allocation score on rhos6-node1: 0 pcmk__clone_allocate: neutron-netns-cleanup:2 allocation score on rhos6-node2: 0 pcmk__clone_allocate: neutron-netns-cleanup:2 allocation score on rhos6-node3: 1 pcmk__clone_allocate: neutron-openvswitch-agent-clone allocation score on rhos6-node1: 0 pcmk__clone_allocate: neutron-openvswitch-agent-clone allocation score on rhos6-node2: 0 pcmk__clone_allocate: neutron-openvswitch-agent-clone allocation score on rhos6-node3: 0 pcmk__clone_allocate: neutron-openvswitch-agent:0 allocation score on rhos6-node1: 1 pcmk__clone_allocate: neutron-openvswitch-agent:0 allocation score on rhos6-node2: 0 pcmk__clone_allocate: neutron-openvswitch-agent:0 allocation score on rhos6-node3: 0 pcmk__clone_allocate: neutron-openvswitch-agent:1 allocation score on rhos6-node1: 0 pcmk__clone_allocate: neutron-openvswitch-agent:1 allocation score on rhos6-node2: 1 pcmk__clone_allocate: neutron-openvswitch-agent:1 allocation score on rhos6-node3: 0 pcmk__clone_allocate: neutron-openvswitch-agent:2 allocation score on rhos6-node1: 0 pcmk__clone_allocate: neutron-openvswitch-agent:2 allocation score on rhos6-node2: 0 pcmk__clone_allocate: neutron-openvswitch-agent:2 allocation score on rhos6-node3: 1 pcmk__clone_allocate: neutron-ovs-cleanup-clone allocation score on rhos6-node1: 0 pcmk__clone_allocate: neutron-ovs-cleanup-clone allocation score on rhos6-node2: 0 pcmk__clone_allocate: neutron-ovs-cleanup-clone allocation score on rhos6-node3: 0 pcmk__clone_allocate: neutron-ovs-cleanup:0 allocation score on rhos6-node1: 1 pcmk__clone_allocate: neutron-ovs-cleanup:0 allocation score on rhos6-node2: 0 pcmk__clone_allocate: neutron-ovs-cleanup:0 allocation score on rhos6-node3: 0 pcmk__clone_allocate: neutron-ovs-cleanup:1 allocation score on rhos6-node1: 0 pcmk__clone_allocate: neutron-ovs-cleanup:1 allocation score on rhos6-node2: 1 pcmk__clone_allocate: neutron-ovs-cleanup:1 allocation score on rhos6-node3: 0 pcmk__clone_allocate: neutron-ovs-cleanup:2 allocation score on rhos6-node1: 0 pcmk__clone_allocate: neutron-ovs-cleanup:2 allocation score on rhos6-node2: 0 pcmk__clone_allocate: neutron-ovs-cleanup:2 allocation score on rhos6-node3: 1 pcmk__clone_allocate: neutron-scale-clone allocation score on rhos6-node1: 0 pcmk__clone_allocate: neutron-scale-clone allocation score on rhos6-node2: 0 pcmk__clone_allocate: neutron-scale-clone allocation score on rhos6-node3: 0 pcmk__clone_allocate: neutron-scale:0 allocation score on rhos6-node1: 0 pcmk__clone_allocate: neutron-scale:0 allocation score on rhos6-node2: 0 pcmk__clone_allocate: neutron-scale:0 allocation score on rhos6-node3: 1 pcmk__clone_allocate: neutron-scale:1 allocation score on rhos6-node1: 0 pcmk__clone_allocate: neutron-scale:1 allocation score on rhos6-node2: 1 pcmk__clone_allocate: neutron-scale:1 allocation score on rhos6-node3: 0 pcmk__clone_allocate: neutron-scale:2 allocation score on rhos6-node1: 1 pcmk__clone_allocate: neutron-scale:2 allocation score on rhos6-node2: 0 pcmk__clone_allocate: neutron-scale:2 allocation score on rhos6-node3: 0 pcmk__clone_allocate: neutron-server-clone allocation score on rhos6-node1: 0 pcmk__clone_allocate: neutron-server-clone allocation score on rhos6-node2: 0 pcmk__clone_allocate: neutron-server-clone allocation score on rhos6-node3: 0 pcmk__clone_allocate: neutron-server:0 allocation score on rhos6-node1: 1 pcmk__clone_allocate: neutron-server:0 allocation score on rhos6-node2: 0 pcmk__clone_allocate: neutron-server:0 allocation score on rhos6-node3: 0 pcmk__clone_allocate: neutron-server:1 allocation score on rhos6-node1: 0 pcmk__clone_allocate: neutron-server:1 allocation score on rhos6-node2: 1 pcmk__clone_allocate: neutron-server:1 allocation score on rhos6-node3: 0 pcmk__clone_allocate: neutron-server:2 allocation score on rhos6-node1: 0 pcmk__clone_allocate: neutron-server:2 allocation score on rhos6-node2: 0 pcmk__clone_allocate: neutron-server:2 allocation score on rhos6-node3: 1 pcmk__clone_allocate: nova-api-clone allocation score on rhos6-node1: 0 pcmk__clone_allocate: nova-api-clone allocation score on rhos6-node2: 0 pcmk__clone_allocate: nova-api-clone allocation score on rhos6-node3: 0 pcmk__clone_allocate: nova-api:0 allocation score on rhos6-node1: 1 pcmk__clone_allocate: nova-api:0 allocation score on rhos6-node2: 0 pcmk__clone_allocate: nova-api:0 allocation score on rhos6-node3: 0 pcmk__clone_allocate: nova-api:1 allocation score on rhos6-node1: 0 pcmk__clone_allocate: nova-api:1 allocation score on rhos6-node2: 1 pcmk__clone_allocate: nova-api:1 allocation score on rhos6-node3: 0 pcmk__clone_allocate: nova-api:2 allocation score on rhos6-node1: 0 pcmk__clone_allocate: nova-api:2 allocation score on rhos6-node2: 0 pcmk__clone_allocate: nova-api:2 allocation score on rhos6-node3: 1 pcmk__clone_allocate: nova-conductor-clone allocation score on rhos6-node1: 0 pcmk__clone_allocate: nova-conductor-clone allocation score on rhos6-node2: 0 pcmk__clone_allocate: nova-conductor-clone allocation score on rhos6-node3: 0 pcmk__clone_allocate: nova-conductor:0 allocation score on rhos6-node1: 1 pcmk__clone_allocate: nova-conductor:0 allocation score on rhos6-node2: 0 pcmk__clone_allocate: nova-conductor:0 allocation score on rhos6-node3: 0 pcmk__clone_allocate: nova-conductor:1 allocation score on rhos6-node1: 0 pcmk__clone_allocate: nova-conductor:1 allocation score on rhos6-node2: 1 pcmk__clone_allocate: nova-conductor:1 allocation score on rhos6-node3: 0 pcmk__clone_allocate: nova-conductor:2 allocation score on rhos6-node1: 0 pcmk__clone_allocate: nova-conductor:2 allocation score on rhos6-node2: 0 pcmk__clone_allocate: nova-conductor:2 allocation score on rhos6-node3: 1 pcmk__clone_allocate: nova-consoleauth-clone allocation score on rhos6-node1: 0 pcmk__clone_allocate: nova-consoleauth-clone allocation score on rhos6-node2: 0 pcmk__clone_allocate: nova-consoleauth-clone allocation score on rhos6-node3: 0 pcmk__clone_allocate: nova-consoleauth:0 allocation score on rhos6-node1: 1 pcmk__clone_allocate: nova-consoleauth:0 allocation score on rhos6-node2: 0 pcmk__clone_allocate: nova-consoleauth:0 allocation score on rhos6-node3: 0 pcmk__clone_allocate: nova-consoleauth:1 allocation score on rhos6-node1: 0 pcmk__clone_allocate: nova-consoleauth:1 allocation score on rhos6-node2: 1 pcmk__clone_allocate: nova-consoleauth:1 allocation score on rhos6-node3: 0 pcmk__clone_allocate: nova-consoleauth:2 allocation score on rhos6-node1: 0 pcmk__clone_allocate: nova-consoleauth:2 allocation score on rhos6-node2: 0 pcmk__clone_allocate: nova-consoleauth:2 allocation score on rhos6-node3: 1 pcmk__clone_allocate: nova-novncproxy-clone allocation score on rhos6-node1: 0 pcmk__clone_allocate: nova-novncproxy-clone allocation score on rhos6-node2: 0 pcmk__clone_allocate: nova-novncproxy-clone allocation score on rhos6-node3: 0 pcmk__clone_allocate: nova-novncproxy:0 allocation score on rhos6-node1: 1 pcmk__clone_allocate: nova-novncproxy:0 allocation score on rhos6-node2: 0 pcmk__clone_allocate: nova-novncproxy:0 allocation score on rhos6-node3: 0 pcmk__clone_allocate: nova-novncproxy:1 allocation score on rhos6-node1: 0 pcmk__clone_allocate: nova-novncproxy:1 allocation score on rhos6-node2: 1 pcmk__clone_allocate: nova-novncproxy:1 allocation score on rhos6-node3: 0 pcmk__clone_allocate: nova-novncproxy:2 allocation score on rhos6-node1: 0 pcmk__clone_allocate: nova-novncproxy:2 allocation score on rhos6-node2: 0 pcmk__clone_allocate: nova-novncproxy:2 allocation score on rhos6-node3: 1 pcmk__clone_allocate: nova-scheduler-clone allocation score on rhos6-node1: 0 pcmk__clone_allocate: nova-scheduler-clone allocation score on rhos6-node2: 0 pcmk__clone_allocate: nova-scheduler-clone allocation score on rhos6-node3: 0 pcmk__clone_allocate: nova-scheduler:0 allocation score on rhos6-node1: 1 pcmk__clone_allocate: nova-scheduler:0 allocation score on rhos6-node2: 0 pcmk__clone_allocate: nova-scheduler:0 allocation score on rhos6-node3: 0 pcmk__clone_allocate: nova-scheduler:1 allocation score on rhos6-node1: 0 pcmk__clone_allocate: nova-scheduler:1 allocation score on rhos6-node2: 1 pcmk__clone_allocate: nova-scheduler:1 allocation score on rhos6-node3: 0 pcmk__clone_allocate: nova-scheduler:2 allocation score on rhos6-node1: 0 pcmk__clone_allocate: nova-scheduler:2 allocation score on rhos6-node2: 0 pcmk__clone_allocate: nova-scheduler:2 allocation score on rhos6-node3: 1 pcmk__clone_allocate: rabbitmq-server-clone allocation score on rhos6-node1: 0 pcmk__clone_allocate: rabbitmq-server-clone allocation score on rhos6-node2: 0 pcmk__clone_allocate: rabbitmq-server-clone allocation score on rhos6-node3: 0 pcmk__clone_allocate: rabbitmq-server:0 allocation score on rhos6-node1: 1 pcmk__clone_allocate: rabbitmq-server:0 allocation score on rhos6-node2: 0 pcmk__clone_allocate: rabbitmq-server:0 allocation score on rhos6-node3: 0 pcmk__clone_allocate: rabbitmq-server:1 allocation score on rhos6-node1: 0 pcmk__clone_allocate: rabbitmq-server:1 allocation score on rhos6-node2: 1 pcmk__clone_allocate: rabbitmq-server:1 allocation score on rhos6-node3: 0 pcmk__clone_allocate: rabbitmq-server:2 allocation score on rhos6-node1: 0 pcmk__clone_allocate: rabbitmq-server:2 allocation score on rhos6-node2: 0 pcmk__clone_allocate: rabbitmq-server:2 allocation score on rhos6-node3: 1 pcmk__clone_allocate: swift-account-clone allocation score on rhos6-node1: 0 pcmk__clone_allocate: swift-account-clone allocation score on rhos6-node2: 0 pcmk__clone_allocate: swift-account-clone allocation score on rhos6-node3: 0 pcmk__clone_allocate: swift-account:0 allocation score on rhos6-node1: 1 pcmk__clone_allocate: swift-account:0 allocation score on rhos6-node2: 0 pcmk__clone_allocate: swift-account:0 allocation score on rhos6-node3: 0 pcmk__clone_allocate: swift-account:1 allocation score on rhos6-node1: 0 pcmk__clone_allocate: swift-account:1 allocation score on rhos6-node2: 1 pcmk__clone_allocate: swift-account:1 allocation score on rhos6-node3: 0 pcmk__clone_allocate: swift-account:2 allocation score on rhos6-node1: 0 pcmk__clone_allocate: swift-account:2 allocation score on rhos6-node2: 0 pcmk__clone_allocate: swift-account:2 allocation score on rhos6-node3: 1 pcmk__clone_allocate: swift-container-clone allocation score on rhos6-node1: 0 pcmk__clone_allocate: swift-container-clone allocation score on rhos6-node2: 0 pcmk__clone_allocate: swift-container-clone allocation score on rhos6-node3: 0 pcmk__clone_allocate: swift-container:0 allocation score on rhos6-node1: 1 pcmk__clone_allocate: swift-container:0 allocation score on rhos6-node2: 0 pcmk__clone_allocate: swift-container:0 allocation score on rhos6-node3: 0 pcmk__clone_allocate: swift-container:1 allocation score on rhos6-node1: 0 pcmk__clone_allocate: swift-container:1 allocation score on rhos6-node2: 1 pcmk__clone_allocate: swift-container:1 allocation score on rhos6-node3: 0 pcmk__clone_allocate: swift-container:2 allocation score on rhos6-node1: 0 pcmk__clone_allocate: swift-container:2 allocation score on rhos6-node2: 0 pcmk__clone_allocate: swift-container:2 allocation score on rhos6-node3: 1 pcmk__clone_allocate: swift-fs-clone allocation score on rhos6-node1: 0 pcmk__clone_allocate: swift-fs-clone allocation score on rhos6-node2: 0 pcmk__clone_allocate: swift-fs-clone allocation score on rhos6-node3: 0 pcmk__clone_allocate: swift-fs:0 allocation score on rhos6-node1: 1 pcmk__clone_allocate: swift-fs:0 allocation score on rhos6-node2: 0 pcmk__clone_allocate: swift-fs:0 allocation score on rhos6-node3: 0 pcmk__clone_allocate: swift-fs:1 allocation score on rhos6-node1: 0 pcmk__clone_allocate: swift-fs:1 allocation score on rhos6-node2: 1 pcmk__clone_allocate: swift-fs:1 allocation score on rhos6-node3: 0 pcmk__clone_allocate: swift-fs:2 allocation score on rhos6-node1: 0 pcmk__clone_allocate: swift-fs:2 allocation score on rhos6-node2: 0 pcmk__clone_allocate: swift-fs:2 allocation score on rhos6-node3: 1 pcmk__clone_allocate: swift-object-clone allocation score on rhos6-node1: 0 pcmk__clone_allocate: swift-object-clone allocation score on rhos6-node2: 0 pcmk__clone_allocate: swift-object-clone allocation score on rhos6-node3: 0 pcmk__clone_allocate: swift-object:0 allocation score on rhos6-node1: 1 pcmk__clone_allocate: swift-object:0 allocation score on rhos6-node2: 0 pcmk__clone_allocate: swift-object:0 allocation score on rhos6-node3: 0 pcmk__clone_allocate: swift-object:1 allocation score on rhos6-node1: 0 pcmk__clone_allocate: swift-object:1 allocation score on rhos6-node2: 1 pcmk__clone_allocate: swift-object:1 allocation score on rhos6-node3: 0 pcmk__clone_allocate: swift-object:2 allocation score on rhos6-node1: 0 pcmk__clone_allocate: swift-object:2 allocation score on rhos6-node2: 0 pcmk__clone_allocate: swift-object:2 allocation score on rhos6-node3: 1 pcmk__clone_allocate: swift-proxy-clone allocation score on rhos6-node1: 0 pcmk__clone_allocate: swift-proxy-clone allocation score on rhos6-node2: 0 pcmk__clone_allocate: swift-proxy-clone allocation score on rhos6-node3: 0 pcmk__clone_allocate: swift-proxy:0 allocation score on rhos6-node1: 1 pcmk__clone_allocate: swift-proxy:0 allocation score on rhos6-node2: 0 pcmk__clone_allocate: swift-proxy:0 allocation score on rhos6-node3: 0 pcmk__clone_allocate: swift-proxy:1 allocation score on rhos6-node1: 0 pcmk__clone_allocate: swift-proxy:1 allocation score on rhos6-node2: 1 pcmk__clone_allocate: swift-proxy:1 allocation score on rhos6-node3: 0 pcmk__clone_allocate: swift-proxy:2 allocation score on rhos6-node1: 0 pcmk__clone_allocate: swift-proxy:2 allocation score on rhos6-node2: 0 pcmk__clone_allocate: swift-proxy:2 allocation score on rhos6-node3: 1 pcmk__native_allocate: ceilometer-alarm-evaluator:0 allocation score on rhos6-node1: 1 pcmk__native_allocate: ceilometer-alarm-evaluator:0 allocation score on rhos6-node2: -INFINITY pcmk__native_allocate: ceilometer-alarm-evaluator:0 allocation score on rhos6-node3: -INFINITY pcmk__native_allocate: ceilometer-alarm-evaluator:1 allocation score on rhos6-node1: -INFINITY pcmk__native_allocate: ceilometer-alarm-evaluator:1 allocation score on rhos6-node2: 1 pcmk__native_allocate: ceilometer-alarm-evaluator:1 allocation score on rhos6-node3: -INFINITY pcmk__native_allocate: ceilometer-alarm-evaluator:2 allocation score on rhos6-node1: -INFINITY pcmk__native_allocate: ceilometer-alarm-evaluator:2 allocation score on rhos6-node2: -INFINITY pcmk__native_allocate: ceilometer-alarm-evaluator:2 allocation score on rhos6-node3: 1 pcmk__native_allocate: ceilometer-alarm-notifier:0 allocation score on rhos6-node1: 1 pcmk__native_allocate: ceilometer-alarm-notifier:0 allocation score on rhos6-node2: -INFINITY pcmk__native_allocate: ceilometer-alarm-notifier:0 allocation score on rhos6-node3: -INFINITY pcmk__native_allocate: ceilometer-alarm-notifier:1 allocation score on rhos6-node1: -INFINITY pcmk__native_allocate: ceilometer-alarm-notifier:1 allocation score on rhos6-node2: 1 pcmk__native_allocate: ceilometer-alarm-notifier:1 allocation score on rhos6-node3: -INFINITY pcmk__native_allocate: ceilometer-alarm-notifier:2 allocation score on rhos6-node1: -INFINITY pcmk__native_allocate: ceilometer-alarm-notifier:2 allocation score on rhos6-node2: -INFINITY pcmk__native_allocate: ceilometer-alarm-notifier:2 allocation score on rhos6-node3: 1 pcmk__native_allocate: ceilometer-api:0 allocation score on rhos6-node1: 1 pcmk__native_allocate: ceilometer-api:0 allocation score on rhos6-node2: -INFINITY pcmk__native_allocate: ceilometer-api:0 allocation score on rhos6-node3: -INFINITY pcmk__native_allocate: ceilometer-api:1 allocation score on rhos6-node1: -INFINITY pcmk__native_allocate: ceilometer-api:1 allocation score on rhos6-node2: 1 pcmk__native_allocate: ceilometer-api:1 allocation score on rhos6-node3: -INFINITY pcmk__native_allocate: ceilometer-api:2 allocation score on rhos6-node1: -INFINITY pcmk__native_allocate: ceilometer-api:2 allocation score on rhos6-node2: -INFINITY pcmk__native_allocate: ceilometer-api:2 allocation score on rhos6-node3: 1 pcmk__native_allocate: ceilometer-central allocation score on rhos6-node1: 0 pcmk__native_allocate: ceilometer-central allocation score on rhos6-node2: 0 pcmk__native_allocate: ceilometer-central allocation score on rhos6-node3: 0 pcmk__native_allocate: ceilometer-collector:0 allocation score on rhos6-node1: 1 pcmk__native_allocate: ceilometer-collector:0 allocation score on rhos6-node2: 0 pcmk__native_allocate: ceilometer-collector:0 allocation score on rhos6-node3: 0 pcmk__native_allocate: ceilometer-collector:1 allocation score on rhos6-node1: -INFINITY pcmk__native_allocate: ceilometer-collector:1 allocation score on rhos6-node2: 1 pcmk__native_allocate: ceilometer-collector:1 allocation score on rhos6-node3: 0 pcmk__native_allocate: ceilometer-collector:2 allocation score on rhos6-node1: -INFINITY pcmk__native_allocate: ceilometer-collector:2 allocation score on rhos6-node2: -INFINITY pcmk__native_allocate: ceilometer-collector:2 allocation score on rhos6-node3: 1 pcmk__native_allocate: ceilometer-delay:0 allocation score on rhos6-node1: 1 pcmk__native_allocate: ceilometer-delay:0 allocation score on rhos6-node2: -INFINITY pcmk__native_allocate: ceilometer-delay:0 allocation score on rhos6-node3: -INFINITY pcmk__native_allocate: ceilometer-delay:1 allocation score on rhos6-node1: -INFINITY pcmk__native_allocate: ceilometer-delay:1 allocation score on rhos6-node2: 1 pcmk__native_allocate: ceilometer-delay:1 allocation score on rhos6-node3: -INFINITY pcmk__native_allocate: ceilometer-delay:2 allocation score on rhos6-node1: -INFINITY pcmk__native_allocate: ceilometer-delay:2 allocation score on rhos6-node2: -INFINITY pcmk__native_allocate: ceilometer-delay:2 allocation score on rhos6-node3: 1 pcmk__native_allocate: ceilometer-notification:0 allocation score on rhos6-node1: 1 pcmk__native_allocate: ceilometer-notification:0 allocation score on rhos6-node2: -INFINITY pcmk__native_allocate: ceilometer-notification:0 allocation score on rhos6-node3: -INFINITY pcmk__native_allocate: ceilometer-notification:1 allocation score on rhos6-node1: -INFINITY pcmk__native_allocate: ceilometer-notification:1 allocation score on rhos6-node2: 1 pcmk__native_allocate: ceilometer-notification:1 allocation score on rhos6-node3: -INFINITY pcmk__native_allocate: ceilometer-notification:2 allocation score on rhos6-node1: -INFINITY pcmk__native_allocate: ceilometer-notification:2 allocation score on rhos6-node2: -INFINITY pcmk__native_allocate: ceilometer-notification:2 allocation score on rhos6-node3: 1 pcmk__native_allocate: cinder-api allocation score on rhos6-node1: 0 pcmk__native_allocate: cinder-api allocation score on rhos6-node2: 0 pcmk__native_allocate: cinder-api allocation score on rhos6-node3: 0 pcmk__native_allocate: cinder-scheduler allocation score on rhos6-node1: 0 pcmk__native_allocate: cinder-scheduler allocation score on rhos6-node2: -INFINITY pcmk__native_allocate: cinder-scheduler allocation score on rhos6-node3: -INFINITY pcmk__native_allocate: cinder-volume allocation score on rhos6-node1: 0 pcmk__native_allocate: cinder-volume allocation score on rhos6-node2: -INFINITY pcmk__native_allocate: cinder-volume allocation score on rhos6-node3: -INFINITY pcmk__native_allocate: galera:0 allocation score on rhos6-node1: 101 pcmk__native_allocate: galera:0 allocation score on rhos6-node2: 0 pcmk__native_allocate: galera:0 allocation score on rhos6-node3: 0 pcmk__native_allocate: galera:1 allocation score on rhos6-node1: -INFINITY pcmk__native_allocate: galera:1 allocation score on rhos6-node2: 101 pcmk__native_allocate: galera:1 allocation score on rhos6-node3: 0 pcmk__native_allocate: galera:2 allocation score on rhos6-node1: -INFINITY pcmk__native_allocate: galera:2 allocation score on rhos6-node2: -INFINITY pcmk__native_allocate: galera:2 allocation score on rhos6-node3: 101 pcmk__native_allocate: glance-api:0 allocation score on rhos6-node1: 1 pcmk__native_allocate: glance-api:0 allocation score on rhos6-node2: -INFINITY pcmk__native_allocate: glance-api:0 allocation score on rhos6-node3: -INFINITY pcmk__native_allocate: glance-api:1 allocation score on rhos6-node1: -INFINITY pcmk__native_allocate: glance-api:1 allocation score on rhos6-node2: 1 pcmk__native_allocate: glance-api:1 allocation score on rhos6-node3: -INFINITY pcmk__native_allocate: glance-api:2 allocation score on rhos6-node1: -INFINITY pcmk__native_allocate: glance-api:2 allocation score on rhos6-node2: -INFINITY pcmk__native_allocate: glance-api:2 allocation score on rhos6-node3: 1 pcmk__native_allocate: glance-fs:0 allocation score on rhos6-node1: 1 pcmk__native_allocate: glance-fs:0 allocation score on rhos6-node2: 0 pcmk__native_allocate: glance-fs:0 allocation score on rhos6-node3: 0 pcmk__native_allocate: glance-fs:1 allocation score on rhos6-node1: -INFINITY pcmk__native_allocate: glance-fs:1 allocation score on rhos6-node2: 1 pcmk__native_allocate: glance-fs:1 allocation score on rhos6-node3: 0 pcmk__native_allocate: glance-fs:2 allocation score on rhos6-node1: -INFINITY pcmk__native_allocate: glance-fs:2 allocation score on rhos6-node2: -INFINITY pcmk__native_allocate: glance-fs:2 allocation score on rhos6-node3: 1 pcmk__native_allocate: glance-registry:0 allocation score on rhos6-node1: 1 pcmk__native_allocate: glance-registry:0 allocation score on rhos6-node2: -INFINITY pcmk__native_allocate: glance-registry:0 allocation score on rhos6-node3: -INFINITY pcmk__native_allocate: glance-registry:1 allocation score on rhos6-node1: -INFINITY pcmk__native_allocate: glance-registry:1 allocation score on rhos6-node2: 1 pcmk__native_allocate: glance-registry:1 allocation score on rhos6-node3: -INFINITY pcmk__native_allocate: glance-registry:2 allocation score on rhos6-node1: -INFINITY pcmk__native_allocate: glance-registry:2 allocation score on rhos6-node2: -INFINITY pcmk__native_allocate: glance-registry:2 allocation score on rhos6-node3: 1 pcmk__native_allocate: heat-api-cfn:0 allocation score on rhos6-node1: 1 pcmk__native_allocate: heat-api-cfn:0 allocation score on rhos6-node2: -INFINITY pcmk__native_allocate: heat-api-cfn:0 allocation score on rhos6-node3: -INFINITY pcmk__native_allocate: heat-api-cfn:1 allocation score on rhos6-node1: -INFINITY pcmk__native_allocate: heat-api-cfn:1 allocation score on rhos6-node2: 1 pcmk__native_allocate: heat-api-cfn:1 allocation score on rhos6-node3: -INFINITY pcmk__native_allocate: heat-api-cfn:2 allocation score on rhos6-node1: -INFINITY pcmk__native_allocate: heat-api-cfn:2 allocation score on rhos6-node2: -INFINITY pcmk__native_allocate: heat-api-cfn:2 allocation score on rhos6-node3: 1 pcmk__native_allocate: heat-api-cloudwatch:0 allocation score on rhos6-node1: 1 pcmk__native_allocate: heat-api-cloudwatch:0 allocation score on rhos6-node2: -INFINITY pcmk__native_allocate: heat-api-cloudwatch:0 allocation score on rhos6-node3: -INFINITY pcmk__native_allocate: heat-api-cloudwatch:1 allocation score on rhos6-node1: -INFINITY pcmk__native_allocate: heat-api-cloudwatch:1 allocation score on rhos6-node2: 1 pcmk__native_allocate: heat-api-cloudwatch:1 allocation score on rhos6-node3: -INFINITY pcmk__native_allocate: heat-api-cloudwatch:2 allocation score on rhos6-node1: -INFINITY pcmk__native_allocate: heat-api-cloudwatch:2 allocation score on rhos6-node2: -INFINITY pcmk__native_allocate: heat-api-cloudwatch:2 allocation score on rhos6-node3: 1 pcmk__native_allocate: heat-api:0 allocation score on rhos6-node1: 1 pcmk__native_allocate: heat-api:0 allocation score on rhos6-node2: 0 pcmk__native_allocate: heat-api:0 allocation score on rhos6-node3: 0 pcmk__native_allocate: heat-api:1 allocation score on rhos6-node1: -INFINITY pcmk__native_allocate: heat-api:1 allocation score on rhos6-node2: 1 pcmk__native_allocate: heat-api:1 allocation score on rhos6-node3: 0 pcmk__native_allocate: heat-api:2 allocation score on rhos6-node1: -INFINITY pcmk__native_allocate: heat-api:2 allocation score on rhos6-node2: -INFINITY pcmk__native_allocate: heat-api:2 allocation score on rhos6-node3: 1 pcmk__native_allocate: heat-engine allocation score on rhos6-node1: 0 pcmk__native_allocate: heat-engine allocation score on rhos6-node2: 0 pcmk__native_allocate: heat-engine allocation score on rhos6-node3: 0 pcmk__native_allocate: horizon:0 allocation score on rhos6-node1: 1 pcmk__native_allocate: horizon:0 allocation score on rhos6-node2: 0 pcmk__native_allocate: horizon:0 allocation score on rhos6-node3: 0 pcmk__native_allocate: horizon:1 allocation score on rhos6-node1: -INFINITY pcmk__native_allocate: horizon:1 allocation score on rhos6-node2: 1 pcmk__native_allocate: horizon:1 allocation score on rhos6-node3: 0 pcmk__native_allocate: horizon:2 allocation score on rhos6-node1: -INFINITY pcmk__native_allocate: horizon:2 allocation score on rhos6-node2: -INFINITY pcmk__native_allocate: horizon:2 allocation score on rhos6-node3: 1 pcmk__native_allocate: keystone:0 allocation score on rhos6-node1: -INFINITY pcmk__native_allocate: keystone:0 allocation score on rhos6-node2: -INFINITY pcmk__native_allocate: keystone:0 allocation score on rhos6-node3: -INFINITY pcmk__native_allocate: keystone:1 allocation score on rhos6-node1: -INFINITY pcmk__native_allocate: keystone:1 allocation score on rhos6-node2: -INFINITY pcmk__native_allocate: keystone:1 allocation score on rhos6-node3: -INFINITY pcmk__native_allocate: keystone:2 allocation score on rhos6-node1: -INFINITY pcmk__native_allocate: keystone:2 allocation score on rhos6-node2: -INFINITY pcmk__native_allocate: keystone:2 allocation score on rhos6-node3: -INFINITY pcmk__native_allocate: lb-haproxy:0 allocation score on rhos6-node1: 1 pcmk__native_allocate: lb-haproxy:0 allocation score on rhos6-node2: 0 pcmk__native_allocate: lb-haproxy:0 allocation score on rhos6-node3: 0 pcmk__native_allocate: lb-haproxy:1 allocation score on rhos6-node1: -INFINITY pcmk__native_allocate: lb-haproxy:1 allocation score on rhos6-node2: 1 pcmk__native_allocate: lb-haproxy:1 allocation score on rhos6-node3: 0 pcmk__native_allocate: lb-haproxy:2 allocation score on rhos6-node1: -INFINITY pcmk__native_allocate: lb-haproxy:2 allocation score on rhos6-node2: -INFINITY pcmk__native_allocate: lb-haproxy:2 allocation score on rhos6-node3: 1 pcmk__native_allocate: memcached:0 allocation score on rhos6-node1: 1 pcmk__native_allocate: memcached:0 allocation score on rhos6-node2: 0 pcmk__native_allocate: memcached:0 allocation score on rhos6-node3: 0 pcmk__native_allocate: memcached:1 allocation score on rhos6-node1: -INFINITY pcmk__native_allocate: memcached:1 allocation score on rhos6-node2: 1 pcmk__native_allocate: memcached:1 allocation score on rhos6-node3: 0 pcmk__native_allocate: memcached:2 allocation score on rhos6-node1: -INFINITY pcmk__native_allocate: memcached:2 allocation score on rhos6-node2: -INFINITY pcmk__native_allocate: memcached:2 allocation score on rhos6-node3: 1 pcmk__native_allocate: mongodb:0 allocation score on rhos6-node1: 1 pcmk__native_allocate: mongodb:0 allocation score on rhos6-node2: 0 pcmk__native_allocate: mongodb:0 allocation score on rhos6-node3: 0 pcmk__native_allocate: mongodb:1 allocation score on rhos6-node1: -INFINITY pcmk__native_allocate: mongodb:1 allocation score on rhos6-node2: 1 pcmk__native_allocate: mongodb:1 allocation score on rhos6-node3: 0 pcmk__native_allocate: mongodb:2 allocation score on rhos6-node1: -INFINITY pcmk__native_allocate: mongodb:2 allocation score on rhos6-node2: -INFINITY pcmk__native_allocate: mongodb:2 allocation score on rhos6-node3: 1 pcmk__native_allocate: neutron-dhcp-agent:0 allocation score on rhos6-node1: 1 pcmk__native_allocate: neutron-dhcp-agent:0 allocation score on rhos6-node2: -INFINITY pcmk__native_allocate: neutron-dhcp-agent:0 allocation score on rhos6-node3: -INFINITY pcmk__native_allocate: neutron-dhcp-agent:1 allocation score on rhos6-node1: -INFINITY pcmk__native_allocate: neutron-dhcp-agent:1 allocation score on rhos6-node2: 1 pcmk__native_allocate: neutron-dhcp-agent:1 allocation score on rhos6-node3: -INFINITY pcmk__native_allocate: neutron-dhcp-agent:2 allocation score on rhos6-node1: -INFINITY pcmk__native_allocate: neutron-dhcp-agent:2 allocation score on rhos6-node2: -INFINITY pcmk__native_allocate: neutron-dhcp-agent:2 allocation score on rhos6-node3: 1 pcmk__native_allocate: neutron-l3-agent:0 allocation score on rhos6-node1: 1 pcmk__native_allocate: neutron-l3-agent:0 allocation score on rhos6-node2: -INFINITY pcmk__native_allocate: neutron-l3-agent:0 allocation score on rhos6-node3: -INFINITY pcmk__native_allocate: neutron-l3-agent:1 allocation score on rhos6-node1: -INFINITY pcmk__native_allocate: neutron-l3-agent:1 allocation score on rhos6-node2: 1 pcmk__native_allocate: neutron-l3-agent:1 allocation score on rhos6-node3: -INFINITY pcmk__native_allocate: neutron-l3-agent:2 allocation score on rhos6-node1: -INFINITY pcmk__native_allocate: neutron-l3-agent:2 allocation score on rhos6-node2: -INFINITY pcmk__native_allocate: neutron-l3-agent:2 allocation score on rhos6-node3: 1 pcmk__native_allocate: neutron-metadata-agent:0 allocation score on rhos6-node1: 1 pcmk__native_allocate: neutron-metadata-agent:0 allocation score on rhos6-node2: -INFINITY pcmk__native_allocate: neutron-metadata-agent:0 allocation score on rhos6-node3: -INFINITY pcmk__native_allocate: neutron-metadata-agent:1 allocation score on rhos6-node1: -INFINITY pcmk__native_allocate: neutron-metadata-agent:1 allocation score on rhos6-node2: 1 pcmk__native_allocate: neutron-metadata-agent:1 allocation score on rhos6-node3: -INFINITY pcmk__native_allocate: neutron-metadata-agent:2 allocation score on rhos6-node1: -INFINITY pcmk__native_allocate: neutron-metadata-agent:2 allocation score on rhos6-node2: -INFINITY pcmk__native_allocate: neutron-metadata-agent:2 allocation score on rhos6-node3: 1 pcmk__native_allocate: neutron-netns-cleanup:0 allocation score on rhos6-node1: 1 pcmk__native_allocate: neutron-netns-cleanup:0 allocation score on rhos6-node2: -INFINITY pcmk__native_allocate: neutron-netns-cleanup:0 allocation score on rhos6-node3: -INFINITY pcmk__native_allocate: neutron-netns-cleanup:1 allocation score on rhos6-node1: -INFINITY pcmk__native_allocate: neutron-netns-cleanup:1 allocation score on rhos6-node2: 1 pcmk__native_allocate: neutron-netns-cleanup:1 allocation score on rhos6-node3: -INFINITY pcmk__native_allocate: neutron-netns-cleanup:2 allocation score on rhos6-node1: -INFINITY pcmk__native_allocate: neutron-netns-cleanup:2 allocation score on rhos6-node2: -INFINITY pcmk__native_allocate: neutron-netns-cleanup:2 allocation score on rhos6-node3: 1 pcmk__native_allocate: neutron-openvswitch-agent:0 allocation score on rhos6-node1: 1 pcmk__native_allocate: neutron-openvswitch-agent:0 allocation score on rhos6-node2: -INFINITY pcmk__native_allocate: neutron-openvswitch-agent:0 allocation score on rhos6-node3: -INFINITY pcmk__native_allocate: neutron-openvswitch-agent:1 allocation score on rhos6-node1: -INFINITY pcmk__native_allocate: neutron-openvswitch-agent:1 allocation score on rhos6-node2: 1 pcmk__native_allocate: neutron-openvswitch-agent:1 allocation score on rhos6-node3: -INFINITY pcmk__native_allocate: neutron-openvswitch-agent:2 allocation score on rhos6-node1: -INFINITY pcmk__native_allocate: neutron-openvswitch-agent:2 allocation score on rhos6-node2: -INFINITY pcmk__native_allocate: neutron-openvswitch-agent:2 allocation score on rhos6-node3: 1 pcmk__native_allocate: neutron-ovs-cleanup:0 allocation score on rhos6-node1: 1 pcmk__native_allocate: neutron-ovs-cleanup:0 allocation score on rhos6-node2: -INFINITY pcmk__native_allocate: neutron-ovs-cleanup:0 allocation score on rhos6-node3: -INFINITY pcmk__native_allocate: neutron-ovs-cleanup:1 allocation score on rhos6-node1: -INFINITY pcmk__native_allocate: neutron-ovs-cleanup:1 allocation score on rhos6-node2: 1 pcmk__native_allocate: neutron-ovs-cleanup:1 allocation score on rhos6-node3: -INFINITY pcmk__native_allocate: neutron-ovs-cleanup:2 allocation score on rhos6-node1: -INFINITY pcmk__native_allocate: neutron-ovs-cleanup:2 allocation score on rhos6-node2: -INFINITY pcmk__native_allocate: neutron-ovs-cleanup:2 allocation score on rhos6-node3: 1 pcmk__native_allocate: neutron-scale:0 allocation score on rhos6-node1: 0 pcmk__native_allocate: neutron-scale:0 allocation score on rhos6-node2: 0 pcmk__native_allocate: neutron-scale:0 allocation score on rhos6-node3: 1 pcmk__native_allocate: neutron-scale:1 allocation score on rhos6-node1: 0 pcmk__native_allocate: neutron-scale:1 allocation score on rhos6-node2: 1 pcmk__native_allocate: neutron-scale:1 allocation score on rhos6-node3: -INFINITY pcmk__native_allocate: neutron-scale:2 allocation score on rhos6-node1: 1 pcmk__native_allocate: neutron-scale:2 allocation score on rhos6-node2: -INFINITY pcmk__native_allocate: neutron-scale:2 allocation score on rhos6-node3: -INFINITY pcmk__native_allocate: neutron-server:0 allocation score on rhos6-node1: 1 pcmk__native_allocate: neutron-server:0 allocation score on rhos6-node2: 0 pcmk__native_allocate: neutron-server:0 allocation score on rhos6-node3: 0 pcmk__native_allocate: neutron-server:1 allocation score on rhos6-node1: -INFINITY pcmk__native_allocate: neutron-server:1 allocation score on rhos6-node2: 1 pcmk__native_allocate: neutron-server:1 allocation score on rhos6-node3: 0 pcmk__native_allocate: neutron-server:2 allocation score on rhos6-node1: -INFINITY pcmk__native_allocate: neutron-server:2 allocation score on rhos6-node2: -INFINITY pcmk__native_allocate: neutron-server:2 allocation score on rhos6-node3: 1 pcmk__native_allocate: node1-fence allocation score on rhos6-node1: 0 pcmk__native_allocate: node1-fence allocation score on rhos6-node2: 0 pcmk__native_allocate: node1-fence allocation score on rhos6-node3: 0 pcmk__native_allocate: node2-fence allocation score on rhos6-node1: 0 pcmk__native_allocate: node2-fence allocation score on rhos6-node2: 0 pcmk__native_allocate: node2-fence allocation score on rhos6-node3: 0 pcmk__native_allocate: node3-fence allocation score on rhos6-node1: 0 pcmk__native_allocate: node3-fence allocation score on rhos6-node2: 0 pcmk__native_allocate: node3-fence allocation score on rhos6-node3: 0 pcmk__native_allocate: nova-api:0 allocation score on rhos6-node1: 1 pcmk__native_allocate: nova-api:0 allocation score on rhos6-node2: -INFINITY pcmk__native_allocate: nova-api:0 allocation score on rhos6-node3: -INFINITY pcmk__native_allocate: nova-api:1 allocation score on rhos6-node1: -INFINITY pcmk__native_allocate: nova-api:1 allocation score on rhos6-node2: 1 pcmk__native_allocate: nova-api:1 allocation score on rhos6-node3: -INFINITY pcmk__native_allocate: nova-api:2 allocation score on rhos6-node1: -INFINITY pcmk__native_allocate: nova-api:2 allocation score on rhos6-node2: -INFINITY pcmk__native_allocate: nova-api:2 allocation score on rhos6-node3: 1 pcmk__native_allocate: nova-conductor:0 allocation score on rhos6-node1: 1 pcmk__native_allocate: nova-conductor:0 allocation score on rhos6-node2: -INFINITY pcmk__native_allocate: nova-conductor:0 allocation score on rhos6-node3: -INFINITY pcmk__native_allocate: nova-conductor:1 allocation score on rhos6-node1: -INFINITY pcmk__native_allocate: nova-conductor:1 allocation score on rhos6-node2: 1 pcmk__native_allocate: nova-conductor:1 allocation score on rhos6-node3: -INFINITY pcmk__native_allocate: nova-conductor:2 allocation score on rhos6-node1: -INFINITY pcmk__native_allocate: nova-conductor:2 allocation score on rhos6-node2: -INFINITY pcmk__native_allocate: nova-conductor:2 allocation score on rhos6-node3: 1 pcmk__native_allocate: nova-consoleauth:0 allocation score on rhos6-node1: 1 pcmk__native_allocate: nova-consoleauth:0 allocation score on rhos6-node2: 0 pcmk__native_allocate: nova-consoleauth:0 allocation score on rhos6-node3: 0 pcmk__native_allocate: nova-consoleauth:1 allocation score on rhos6-node1: -INFINITY pcmk__native_allocate: nova-consoleauth:1 allocation score on rhos6-node2: 1 pcmk__native_allocate: nova-consoleauth:1 allocation score on rhos6-node3: 0 pcmk__native_allocate: nova-consoleauth:2 allocation score on rhos6-node1: -INFINITY pcmk__native_allocate: nova-consoleauth:2 allocation score on rhos6-node2: -INFINITY pcmk__native_allocate: nova-consoleauth:2 allocation score on rhos6-node3: 1 pcmk__native_allocate: nova-novncproxy:0 allocation score on rhos6-node1: 1 pcmk__native_allocate: nova-novncproxy:0 allocation score on rhos6-node2: -INFINITY pcmk__native_allocate: nova-novncproxy:0 allocation score on rhos6-node3: -INFINITY pcmk__native_allocate: nova-novncproxy:1 allocation score on rhos6-node1: -INFINITY pcmk__native_allocate: nova-novncproxy:1 allocation score on rhos6-node2: 1 pcmk__native_allocate: nova-novncproxy:1 allocation score on rhos6-node3: -INFINITY pcmk__native_allocate: nova-novncproxy:2 allocation score on rhos6-node1: -INFINITY pcmk__native_allocate: nova-novncproxy:2 allocation score on rhos6-node2: -INFINITY pcmk__native_allocate: nova-novncproxy:2 allocation score on rhos6-node3: 1 pcmk__native_allocate: nova-scheduler:0 allocation score on rhos6-node1: 1 pcmk__native_allocate: nova-scheduler:0 allocation score on rhos6-node2: -INFINITY pcmk__native_allocate: nova-scheduler:0 allocation score on rhos6-node3: -INFINITY pcmk__native_allocate: nova-scheduler:1 allocation score on rhos6-node1: -INFINITY pcmk__native_allocate: nova-scheduler:1 allocation score on rhos6-node2: 1 pcmk__native_allocate: nova-scheduler:1 allocation score on rhos6-node3: -INFINITY pcmk__native_allocate: nova-scheduler:2 allocation score on rhos6-node1: -INFINITY pcmk__native_allocate: nova-scheduler:2 allocation score on rhos6-node2: -INFINITY pcmk__native_allocate: nova-scheduler:2 allocation score on rhos6-node3: 1 pcmk__native_allocate: rabbitmq-server:0 allocation score on rhos6-node1: 1 pcmk__native_allocate: rabbitmq-server:0 allocation score on rhos6-node2: 0 pcmk__native_allocate: rabbitmq-server:0 allocation score on rhos6-node3: 0 pcmk__native_allocate: rabbitmq-server:1 allocation score on rhos6-node1: -INFINITY pcmk__native_allocate: rabbitmq-server:1 allocation score on rhos6-node2: 1 pcmk__native_allocate: rabbitmq-server:1 allocation score on rhos6-node3: 0 pcmk__native_allocate: rabbitmq-server:2 allocation score on rhos6-node1: -INFINITY pcmk__native_allocate: rabbitmq-server:2 allocation score on rhos6-node2: -INFINITY pcmk__native_allocate: rabbitmq-server:2 allocation score on rhos6-node3: 1 pcmk__native_allocate: swift-account:0 allocation score on rhos6-node1: 1 pcmk__native_allocate: swift-account:0 allocation score on rhos6-node2: -INFINITY pcmk__native_allocate: swift-account:0 allocation score on rhos6-node3: -INFINITY pcmk__native_allocate: swift-account:1 allocation score on rhos6-node1: -INFINITY pcmk__native_allocate: swift-account:1 allocation score on rhos6-node2: 1 pcmk__native_allocate: swift-account:1 allocation score on rhos6-node3: -INFINITY pcmk__native_allocate: swift-account:2 allocation score on rhos6-node1: -INFINITY pcmk__native_allocate: swift-account:2 allocation score on rhos6-node2: -INFINITY pcmk__native_allocate: swift-account:2 allocation score on rhos6-node3: 1 pcmk__native_allocate: swift-container:0 allocation score on rhos6-node1: 1 pcmk__native_allocate: swift-container:0 allocation score on rhos6-node2: -INFINITY pcmk__native_allocate: swift-container:0 allocation score on rhos6-node3: -INFINITY pcmk__native_allocate: swift-container:1 allocation score on rhos6-node1: -INFINITY pcmk__native_allocate: swift-container:1 allocation score on rhos6-node2: 1 pcmk__native_allocate: swift-container:1 allocation score on rhos6-node3: -INFINITY pcmk__native_allocate: swift-container:2 allocation score on rhos6-node1: -INFINITY pcmk__native_allocate: swift-container:2 allocation score on rhos6-node2: -INFINITY pcmk__native_allocate: swift-container:2 allocation score on rhos6-node3: 1 pcmk__native_allocate: swift-fs:0 allocation score on rhos6-node1: 1 pcmk__native_allocate: swift-fs:0 allocation score on rhos6-node2: 0 pcmk__native_allocate: swift-fs:0 allocation score on rhos6-node3: 0 pcmk__native_allocate: swift-fs:1 allocation score on rhos6-node1: -INFINITY pcmk__native_allocate: swift-fs:1 allocation score on rhos6-node2: 1 pcmk__native_allocate: swift-fs:1 allocation score on rhos6-node3: 0 pcmk__native_allocate: swift-fs:2 allocation score on rhos6-node1: -INFINITY pcmk__native_allocate: swift-fs:2 allocation score on rhos6-node2: -INFINITY pcmk__native_allocate: swift-fs:2 allocation score on rhos6-node3: 1 pcmk__native_allocate: swift-object-expirer allocation score on rhos6-node1: 0 pcmk__native_allocate: swift-object-expirer allocation score on rhos6-node2: 0 pcmk__native_allocate: swift-object-expirer allocation score on rhos6-node3: 0 pcmk__native_allocate: swift-object:0 allocation score on rhos6-node1: 1 pcmk__native_allocate: swift-object:0 allocation score on rhos6-node2: -INFINITY pcmk__native_allocate: swift-object:0 allocation score on rhos6-node3: -INFINITY pcmk__native_allocate: swift-object:1 allocation score on rhos6-node1: -INFINITY pcmk__native_allocate: swift-object:1 allocation score on rhos6-node2: 1 pcmk__native_allocate: swift-object:1 allocation score on rhos6-node3: -INFINITY pcmk__native_allocate: swift-object:2 allocation score on rhos6-node1: -INFINITY pcmk__native_allocate: swift-object:2 allocation score on rhos6-node2: -INFINITY pcmk__native_allocate: swift-object:2 allocation score on rhos6-node3: 1 pcmk__native_allocate: swift-proxy:0 allocation score on rhos6-node1: 1 pcmk__native_allocate: swift-proxy:0 allocation score on rhos6-node2: 0 pcmk__native_allocate: swift-proxy:0 allocation score on rhos6-node3: 0 pcmk__native_allocate: swift-proxy:1 allocation score on rhos6-node1: -INFINITY pcmk__native_allocate: swift-proxy:1 allocation score on rhos6-node2: 1 pcmk__native_allocate: swift-proxy:1 allocation score on rhos6-node3: 0 pcmk__native_allocate: swift-proxy:2 allocation score on rhos6-node1: -INFINITY pcmk__native_allocate: swift-proxy:2 allocation score on rhos6-node2: -INFINITY pcmk__native_allocate: swift-proxy:2 allocation score on rhos6-node3: 1 pcmk__native_allocate: vip-ceilometer allocation score on rhos6-node1: 0 pcmk__native_allocate: vip-ceilometer allocation score on rhos6-node2: 0 pcmk__native_allocate: vip-ceilometer allocation score on rhos6-node3: 0 pcmk__native_allocate: vip-cinder allocation score on rhos6-node1: 0 pcmk__native_allocate: vip-cinder allocation score on rhos6-node2: 0 pcmk__native_allocate: vip-cinder allocation score on rhos6-node3: 0 pcmk__native_allocate: vip-db allocation score on rhos6-node1: 0 pcmk__native_allocate: vip-db allocation score on rhos6-node2: 0 pcmk__native_allocate: vip-db allocation score on rhos6-node3: 0 pcmk__native_allocate: vip-glance allocation score on rhos6-node1: 0 pcmk__native_allocate: vip-glance allocation score on rhos6-node2: 0 pcmk__native_allocate: vip-glance allocation score on rhos6-node3: 0 pcmk__native_allocate: vip-heat allocation score on rhos6-node1: 0 pcmk__native_allocate: vip-heat allocation score on rhos6-node2: 0 pcmk__native_allocate: vip-heat allocation score on rhos6-node3: 0 pcmk__native_allocate: vip-horizon allocation score on rhos6-node1: 0 pcmk__native_allocate: vip-horizon allocation score on rhos6-node2: 0 pcmk__native_allocate: vip-horizon allocation score on rhos6-node3: 0 pcmk__native_allocate: vip-keystone allocation score on rhos6-node1: 0 pcmk__native_allocate: vip-keystone allocation score on rhos6-node2: 0 pcmk__native_allocate: vip-keystone allocation score on rhos6-node3: 0 pcmk__native_allocate: vip-neutron allocation score on rhos6-node1: 0 pcmk__native_allocate: vip-neutron allocation score on rhos6-node2: 0 pcmk__native_allocate: vip-neutron allocation score on rhos6-node3: 0 pcmk__native_allocate: vip-nova allocation score on rhos6-node1: 0 pcmk__native_allocate: vip-nova allocation score on rhos6-node2: 0 pcmk__native_allocate: vip-nova allocation score on rhos6-node3: 0 pcmk__native_allocate: vip-qpid allocation score on rhos6-node1: 0 pcmk__native_allocate: vip-qpid allocation score on rhos6-node2: 0 pcmk__native_allocate: vip-qpid allocation score on rhos6-node3: 0 pcmk__native_allocate: vip-rabbitmq allocation score on rhos6-node1: 0 pcmk__native_allocate: vip-rabbitmq allocation score on rhos6-node2: 0 pcmk__native_allocate: vip-rabbitmq allocation score on rhos6-node3: 0 pcmk__native_allocate: vip-swift allocation score on rhos6-node1: 0 pcmk__native_allocate: vip-swift allocation score on rhos6-node2: 0 pcmk__native_allocate: vip-swift allocation score on rhos6-node3: 0
{ "pile_set_name": "Github" }
package us.ihmc.simulationConstructionSetTools.robotController; import us.ihmc.commons.Conversions; import us.ihmc.graphicsDescription.yoGraphics.YoGraphicsListRegistry; import us.ihmc.yoVariables.registry.YoRegistry; import us.ihmc.yoVariables.variable.YoDouble; import us.ihmc.yoVariables.variable.YoLong; public class DoublePendulumController implements MultiThreadedRobotControlElement { private final YoRegistry registry = new YoRegistry("DoublePendulumController"); private final YoDouble q_j1 = new YoDouble("q_j1", registry); private final YoDouble qd_j1 = new YoDouble("qd_j1", registry); private final YoDouble q_j2 = new YoDouble("q_j2", registry); private final YoDouble qd_j2 = new YoDouble("qd_j2", registry); private final YoDouble tau_j1 = new YoDouble("tau_j1", registry); private final YoDouble tau_j2 = new YoDouble("tau_j2", registry); private final YoDouble q_j1_d = new YoDouble("q_j1_d", registry); private final YoDouble q_j2_d = new YoDouble("q_j2_d", registry); private final YoDouble kp = new YoDouble("kp", registry); private final YoDouble kd = new YoDouble("kd", registry); private final YoLong tick = new YoLong("tick", registry); private final DoublePendulum doublePendulum; public DoublePendulumController(DoublePendulum doublePendulum) { this.doublePendulum = doublePendulum; } @Override public void initialize() { this.kp.set(100.0); this.kd.set(10.0); doublePendulum.getJ1().setQ(0.1); } @Override public void read(long currentClockTime) { q_j1.set(doublePendulum.getJ1().getQYoVariable().getDoubleValue()); qd_j1.set(doublePendulum.getJ1().getQDYoVariable().getDoubleValue()); q_j2.set(doublePendulum.getJ2().getQYoVariable().getDoubleValue()); qd_j2.set(doublePendulum.getJ2().getQDYoVariable().getDoubleValue()); } @Override public void run() { q_j1_d.set(q_j1_d.getDoubleValue() + 0.1); q_j2_d.set(q_j2_d.getDoubleValue() + 0.05); tau_j1.set(kp.getDoubleValue() * (q_j1_d.getDoubleValue() - q_j1.getDoubleValue()) + kd.getDoubleValue() * (-qd_j1.getDoubleValue())); tau_j2.set(kp.getDoubleValue() * (q_j2_d.getDoubleValue() - q_j2.getDoubleValue()) + kd.getDoubleValue() * (-qd_j2.getDoubleValue())); tick.increment(); long start = System.nanoTime(); while(System.nanoTime() - start < Conversions.millisecondsToNanoseconds(10)) { // Busy wait } } @Override public void write(long timestamp) { doublePendulum.getJ1().setTau(tau_j1.getDoubleValue()); doublePendulum.getJ2().setTau(tau_j2.getDoubleValue()); } @Override public YoRegistry getYoVariableRegistry() { return registry; } @Override public String getName() { return getClass().getSimpleName(); } @Override public YoGraphicsListRegistry getYoGraphicsListRegistry() { return null; } @Override public long nextWakeupTime() { return 0; } }
{ "pile_set_name": "Github" }
; RUN: opt -passes='loop(unswitch),verify<loops>' -S < %s | FileCheck %s declare void @some_func() noreturn ; This test contains two trivial unswitch condition in one loop. ; LoopUnswitch pass should be able to unswitch the second one ; after unswitching the first one. define i32 @test1(i32* %var, i1 %cond1, i1 %cond2) { ; CHECK-LABEL: @test1( entry: br label %loop_begin ; CHECK-NEXT: entry: ; CHECK-NEXT: br i1 %{{.*}}, label %entry.split, label %loop_exit.split ; ; CHECK: entry.split: ; CHECK-NEXT: br i1 %{{.*}}, label %entry.split.split, label %loop_exit ; ; CHECK: entry.split.split: ; CHECK-NEXT: br label %loop_begin loop_begin: br i1 %cond1, label %continue, label %loop_exit ; first trivial condition ; CHECK: loop_begin: ; CHECK-NEXT: br label %continue continue: %var_val = load i32, i32* %var br i1 %cond2, label %do_something, label %loop_exit ; second trivial condition ; CHECK: continue: ; CHECK-NEXT: load ; CHECK-NEXT: br label %do_something do_something: call void @some_func() noreturn nounwind br label %loop_begin ; CHECK: do_something: ; CHECK-NEXT: call ; CHECK-NEXT: br label %loop_begin loop_exit: ret i32 0 ; CHECK: loop_exit: ; CHECK-NEXT: br label %loop_exit.split ; ; CHECK: loop_exit.split: ; CHECK-NEXT: ret } ; Test for two trivially unswitchable switches. define i32 @test3(i32* %var, i32 %cond1, i32 %cond2) { ; CHECK-LABEL: @test3( entry: br label %loop_begin ; CHECK-NEXT: entry: ; CHECK-NEXT: switch i32 %cond1, label %entry.split [ ; CHECK-NEXT: i32 0, label %loop_exit1 ; CHECK-NEXT: ] ; ; CHECK: entry.split: ; CHECK-NEXT: switch i32 %cond2, label %loop_exit2 [ ; CHECK-NEXT: i32 42, label %loop_exit2 ; CHECK-NEXT: i32 0, label %entry.split.split ; CHECK-NEXT: ] ; ; CHECK: entry.split.split: ; CHECK-NEXT: br label %loop_begin loop_begin: switch i32 %cond1, label %continue [ i32 0, label %loop_exit1 ] ; CHECK: loop_begin: ; CHECK-NEXT: br label %continue continue: %var_val = load i32, i32* %var switch i32 %cond2, label %loop_exit2 [ i32 0, label %do_something i32 42, label %loop_exit2 ] ; CHECK: continue: ; CHECK-NEXT: load ; CHECK-NEXT: br label %do_something do_something: call void @some_func() noreturn nounwind br label %loop_begin ; CHECK: do_something: ; CHECK-NEXT: call ; CHECK-NEXT: br label %loop_begin loop_exit1: ret i32 0 ; CHECK: loop_exit1: ; CHECK-NEXT: ret loop_exit2: ret i32 0 ; CHECK: loop_exit2: ; CHECK-NEXT: ret ; ; We shouldn't have any unreachable blocks here because the unswitched switches ; turn into branches instead. ; CHECK-NOT: unreachable } ; Test for a trivially unswitchable switch with multiple exiting cases and ; multiple looping cases. define i32 @test4(i32* %var, i32 %cond1, i32 %cond2) { ; CHECK-LABEL: @test4( entry: br label %loop_begin ; CHECK-NEXT: entry: ; CHECK-NEXT: switch i32 %cond2, label %loop_exit2 [ ; CHECK-NEXT: i32 13, label %loop_exit1 ; CHECK-NEXT: i32 42, label %loop_exit3 ; CHECK-NEXT: i32 0, label %entry.split ; CHECK-NEXT: i32 1, label %entry.split ; CHECK-NEXT: i32 2, label %entry.split ; CHECK-NEXT: ] ; ; CHECK: entry.split: ; CHECK-NEXT: br label %loop_begin loop_begin: %var_val = load i32, i32* %var switch i32 %cond2, label %loop_exit2 [ i32 0, label %loop0 i32 1, label %loop1 i32 13, label %loop_exit1 i32 2, label %loop2 i32 42, label %loop_exit3 ] ; CHECK: loop_begin: ; CHECK-NEXT: load ; CHECK-NEXT: switch i32 %cond2, label %[[UNREACHABLE:.*]] [ ; CHECK-NEXT: i32 0, label %loop0 ; CHECK-NEXT: i32 1, label %loop1 ; CHECK-NEXT: i32 2, label %loop2 ; CHECK-NEXT: ] loop0: call void @some_func() noreturn nounwind br label %loop_latch ; CHECK: loop0: ; CHECK-NEXT: call ; CHECK-NEXT: br label %loop_latch loop1: call void @some_func() noreturn nounwind br label %loop_latch ; CHECK: loop1: ; CHECK-NEXT: call ; CHECK-NEXT: br label %loop_latch loop2: call void @some_func() noreturn nounwind br label %loop_latch ; CHECK: loop2: ; CHECK-NEXT: call ; CHECK-NEXT: br label %loop_latch loop_latch: br label %loop_begin ; CHECK: loop_latch: ; CHECK-NEXT: br label %loop_begin loop_exit1: ret i32 0 ; CHECK: loop_exit1: ; CHECK-NEXT: ret loop_exit2: ret i32 0 ; CHECK: loop_exit2: ; CHECK-NEXT: ret loop_exit3: ret i32 0 ; CHECK: loop_exit3: ; CHECK-NEXT: ret ; ; CHECK: [[UNREACHABLE]]: ; CHECK-NEXT: unreachable } ; This test contains a trivially unswitchable branch with an LCSSA phi node in ; a loop exit block. define i32 @test5(i1 %cond1, i32 %x, i32 %y) { ; CHECK-LABEL: @test5( entry: br label %loop_begin ; CHECK-NEXT: entry: ; CHECK-NEXT: br i1 %{{.*}}, label %entry.split, label %loop_exit ; ; CHECK: entry.split: ; CHECK-NEXT: br label %loop_begin loop_begin: br i1 %cond1, label %latch, label %loop_exit ; CHECK: loop_begin: ; CHECK-NEXT: br label %latch latch: call void @some_func() noreturn nounwind br label %loop_begin ; CHECK: latch: ; CHECK-NEXT: call ; CHECK-NEXT: br label %loop_begin loop_exit: %result1 = phi i32 [ %x, %loop_begin ] %result2 = phi i32 [ %y, %loop_begin ] %result = add i32 %result1, %result2 ret i32 %result ; CHECK: loop_exit: ; CHECK-NEXT: %[[R1:.*]] = phi i32 [ %x, %entry ] ; CHECK-NEXT: %[[R2:.*]] = phi i32 [ %y, %entry ] ; CHECK-NEXT: %[[R:.*]] = add i32 %[[R1]], %[[R2]] ; CHECK-NEXT: ret i32 %[[R]] } ; This test contains a trivially unswitchable branch with a real phi node in LCSSA ; position in a shared exit block where a different path through the loop ; produces a non-invariant input to the PHI node. define i32 @test6(i32* %var, i1 %cond1, i1 %cond2, i32 %x, i32 %y) { ; CHECK-LABEL: @test6( entry: br label %loop_begin ; CHECK-NEXT: entry: ; CHECK-NEXT: br i1 %{{.*}}, label %entry.split, label %loop_exit.split ; ; CHECK: entry.split: ; CHECK-NEXT: br label %loop_begin loop_begin: br i1 %cond1, label %continue, label %loop_exit ; CHECK: loop_begin: ; CHECK-NEXT: br label %continue continue: %var_val = load i32, i32* %var br i1 %cond2, label %latch, label %loop_exit ; CHECK: continue: ; CHECK-NEXT: load ; CHECK-NEXT: br i1 %cond2, label %latch, label %loop_exit latch: call void @some_func() noreturn nounwind br label %loop_begin ; CHECK: latch: ; CHECK-NEXT: call ; CHECK-NEXT: br label %loop_begin loop_exit: %result1 = phi i32 [ %x, %loop_begin ], [ %var_val, %continue ] %result2 = phi i32 [ %var_val, %continue ], [ %y, %loop_begin ] %result = add i32 %result1, %result2 ret i32 %result ; CHECK: loop_exit: ; CHECK-NEXT: %[[R1:.*]] = phi i32 [ %var_val, %continue ] ; CHECK-NEXT: %[[R2:.*]] = phi i32 [ %var_val, %continue ] ; CHECK-NEXT: br label %loop_exit.split ; ; CHECK: loop_exit.split: ; CHECK-NEXT: %[[R1S:.*]] = phi i32 [ %x, %entry ], [ %[[R1]], %loop_exit ] ; CHECK-NEXT: %[[R2S:.*]] = phi i32 [ %y, %entry ], [ %[[R2]], %loop_exit ] ; CHECK-NEXT: %[[R:.*]] = add i32 %[[R1S]], %[[R2S]] ; CHECK-NEXT: ret i32 %[[R]] } ; This test contains a trivially unswitchable switch with an LCSSA phi node in ; a loop exit block. define i32 @test7(i32 %cond1, i32 %x, i32 %y) { ; CHECK-LABEL: @test7( entry: br label %loop_begin ; CHECK-NEXT: entry: ; CHECK-NEXT: switch i32 %cond1, label %entry.split [ ; CHECK-NEXT: i32 0, label %loop_exit ; CHECK-NEXT: i32 1, label %loop_exit ; CHECK-NEXT: ] ; ; CHECK: entry.split: ; CHECK-NEXT: br label %loop_begin loop_begin: switch i32 %cond1, label %latch [ i32 0, label %loop_exit i32 1, label %loop_exit ] ; CHECK: loop_begin: ; CHECK-NEXT: br label %latch latch: call void @some_func() noreturn nounwind br label %loop_begin ; CHECK: latch: ; CHECK-NEXT: call ; CHECK-NEXT: br label %loop_begin loop_exit: %result1 = phi i32 [ %x, %loop_begin ], [ %x, %loop_begin ] %result2 = phi i32 [ %y, %loop_begin ], [ %y, %loop_begin ] %result = add i32 %result1, %result2 ret i32 %result ; CHECK: loop_exit: ; CHECK-NEXT: %[[R1:.*]] = phi i32 [ %x, %entry ], [ %x, %entry ] ; CHECK-NEXT: %[[R2:.*]] = phi i32 [ %y, %entry ], [ %y, %entry ] ; CHECK-NEXT: %[[R:.*]] = add i32 %[[R1]], %[[R2]] ; CHECK-NEXT: ret i32 %[[R]] } ; This test contains a trivially unswitchable switch with a real phi node in ; LCSSA position in a shared exit block where a different path through the loop ; produces a non-invariant input to the PHI node. define i32 @test8(i32* %var, i32 %cond1, i32 %cond2, i32 %x, i32 %y) { ; CHECK-LABEL: @test8( entry: br label %loop_begin ; CHECK-NEXT: entry: ; CHECK-NEXT: switch i32 %cond1, label %entry.split [ ; CHECK-NEXT: i32 0, label %loop_exit.split ; CHECK-NEXT: i32 1, label %loop_exit2 ; CHECK-NEXT: i32 2, label %loop_exit.split ; CHECK-NEXT: ] ; ; CHECK: entry.split: ; CHECK-NEXT: br label %loop_begin loop_begin: switch i32 %cond1, label %continue [ i32 0, label %loop_exit i32 1, label %loop_exit2 i32 2, label %loop_exit ] ; CHECK: loop_begin: ; CHECK-NEXT: br label %continue continue: %var_val = load i32, i32* %var switch i32 %cond2, label %latch [ i32 0, label %loop_exit ] ; CHECK: continue: ; CHECK-NEXT: load ; CHECK-NEXT: switch i32 %cond2, label %latch [ ; CHECK-NEXT: i32 0, label %loop_exit ; CHECK-NEXT: ] latch: call void @some_func() noreturn nounwind br label %loop_begin ; CHECK: latch: ; CHECK-NEXT: call ; CHECK-NEXT: br label %loop_begin loop_exit: %result1.1 = phi i32 [ %x, %loop_begin ], [ %x, %loop_begin ], [ %var_val, %continue ] %result1.2 = phi i32 [ %var_val, %continue ], [ %y, %loop_begin ], [ %y, %loop_begin ] %result1 = add i32 %result1.1, %result1.2 ret i32 %result1 ; CHECK: loop_exit: ; CHECK-NEXT: %[[R1:.*]] = phi i32 [ %var_val, %continue ] ; CHECK-NEXT: %[[R2:.*]] = phi i32 [ %var_val, %continue ] ; CHECK-NEXT: br label %loop_exit.split ; ; CHECK: loop_exit.split: ; CHECK-NEXT: %[[R1S:.*]] = phi i32 [ %x, %entry ], [ %x, %entry ], [ %[[R1]], %loop_exit ] ; CHECK-NEXT: %[[R2S:.*]] = phi i32 [ %y, %entry ], [ %y, %entry ], [ %[[R2]], %loop_exit ] ; CHECK-NEXT: %[[R:.*]] = add i32 %[[R1S]], %[[R2S]] ; CHECK-NEXT: ret i32 %[[R]] loop_exit2: %result2.1 = phi i32 [ %x, %loop_begin ] %result2.2 = phi i32 [ %y, %loop_begin ] %result2 = add i32 %result2.1, %result2.2 ret i32 %result2 ; CHECK: loop_exit2: ; CHECK-NEXT: %[[R1:.*]] = phi i32 [ %x, %entry ] ; CHECK-NEXT: %[[R2:.*]] = phi i32 [ %y, %entry ] ; CHECK-NEXT: %[[R:.*]] = add i32 %[[R1]], %[[R2]] ; CHECK-NEXT: ret i32 %[[R]] } ; This test, extracted from the LLVM test suite, has an interesting dominator ; tree to update as there are edges to sibling domtree nodes within child ; domtree nodes of the unswitched node. define void @xgets(i1 %cond1, i1* %cond2.ptr) { ; CHECK-LABEL: @xgets( entry: br label %for.cond.preheader ; CHECK: entry: ; CHECK-NEXT: br label %for.cond.preheader for.cond.preheader: br label %for.cond ; CHECK: for.cond.preheader: ; CHECK-NEXT: br i1 %cond1, label %for.cond.preheader.split, label %if.end17.thread.loopexit ; ; CHECK: for.cond.preheader.split: ; CHECK-NEXT: br label %for.cond for.cond: br i1 %cond1, label %land.lhs.true, label %if.end17.thread.loopexit ; CHECK: for.cond: ; CHECK-NEXT: br label %land.lhs.true land.lhs.true: br label %if.then20 ; CHECK: land.lhs.true: ; CHECK-NEXT: br label %if.then20 if.then20: %cond2 = load volatile i1, i1* %cond2.ptr br i1 %cond2, label %if.then23, label %if.else ; CHECK: if.then20: ; CHECK-NEXT: %[[COND2:.*]] = load volatile i1, i1* %cond2.ptr ; CHECK-NEXT: br i1 %[[COND2]], label %if.then23, label %if.else if.else: br label %for.cond ; CHECK: if.else: ; CHECK-NEXT: br label %for.cond if.end17.thread.loopexit: br label %if.end17.thread ; CHECK: if.end17.thread.loopexit: ; CHECK-NEXT: br label %if.end17.thread if.end17.thread: br label %cleanup ; CHECK: if.end17.thread: ; CHECK-NEXT: br label %cleanup if.then23: br label %cleanup ; CHECK: if.then23: ; CHECK-NEXT: br label %cleanup cleanup: ret void ; CHECK: cleanup: ; CHECK-NEXT: ret void }
{ "pile_set_name": "Github" }
namespace Winter { public partial class Snip { private System.Windows.Forms.NotifyIcon notifyIcon; private System.Windows.Forms.ContextMenuStrip contextMenuStrip; private System.Windows.Forms.ToolStripMenuItem toolStripMenuItemSnipVersion; private System.Windows.Forms.ToolStripSeparator toolStripSeparator; private System.Windows.Forms.ToolStripMenuItem toolStripMenuItemSpotify; private System.Windows.Forms.ToolStripMenuItem toolStripMenuItemItunes; private System.Windows.Forms.ToolStripSeparator toolStripSeparator1; private System.Windows.Forms.ToolStripMenuItem toolStripMenuItemSetFormat; private System.Windows.Forms.ToolStripSeparator toolStripSeparator2; private System.Windows.Forms.ToolStripMenuItem toolStripMenuItemSaveSeparateFiles; private System.Windows.Forms.ToolStripMenuItem toolStripMenuItemSaveAlbumArtwork; private System.Windows.Forms.ToolStripMenuItem toolStripMenuItemKeepSpotifyAlbumArtwork; private System.Windows.Forms.ToolStripMenuItem toolStripMenuItemSmall; private System.Windows.Forms.ToolStripMenuItem toolStripMenuItemMedium; private System.Windows.Forms.ToolStripMenuItem toolStripMenuItemLarge; private System.Windows.Forms.ToolStripMenuItem toolStripMenuItemCacheSpotifyMetadata; private System.Windows.Forms.ToolStripMenuItem toolStripMenuItemSaveHistory; private System.Windows.Forms.ToolStripMenuItem toolStripMenuItemDisplayTrackPopup; private System.Windows.Forms.ToolStripMenuItem toolStripMenuItemEmptyFileIfNoTrackPlaying; private System.Windows.Forms.ToolStripMenuItem toolStripMenuItemEnableHotkeys; private System.Windows.Forms.ToolStripSeparator toolStripSeparator3; private System.Windows.Forms.ToolStripMenuItem toolStripMenuItemExit; private System.Windows.Forms.Timer timerScanMediaPlayer; /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> protected override void Dispose(bool disposing) { if (disposing && (this.components != null)) { this.components.Dispose(); } if (disposing && (this.keyboardHook != null)) { this.keyboardHook.Dispose(); } base.Dispose(disposing); } #region Windows Form Designer generated code /// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); this.notifyIcon = new System.Windows.Forms.NotifyIcon(this.components); this.contextMenuStrip = new System.Windows.Forms.ContextMenuStrip(this.components); this.toolStripMenuItemSnipVersion = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripSeparator = new System.Windows.Forms.ToolStripSeparator(); this.toolStripMenuItemSpotify = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripMenuItemItunes = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); this.toolStripMenuItemSetFormat = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator(); this.toolStripMenuItemSaveSeparateFiles = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripMenuItemSaveAlbumArtwork = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripMenuItemKeepSpotifyAlbumArtwork = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripMenuItemSmall = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripMenuItemMedium = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripMenuItemLarge = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripMenuItemCacheSpotifyMetadata = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripMenuItemSaveHistory = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripMenuItemDisplayTrackPopup = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripMenuItemEmptyFileIfNoTrackPlaying = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripMenuItemEnableHotkeys = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator(); this.toolStripMenuItemExit = new System.Windows.Forms.ToolStripMenuItem(); this.timerScanMediaPlayer = new System.Windows.Forms.Timer(this.components); this.contextMenuStrip.SuspendLayout(); this.SuspendLayout(); // // notifyIcon // this.notifyIcon.ContextMenuStrip = this.contextMenuStrip; this.notifyIcon.Text = LocalizedMessages.NoTrackPlaying; this.notifyIcon.Visible = true; // // contextMenuStrip // this.contextMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.toolStripMenuItemSnipVersion, this.toolStripSeparator, this.toolStripMenuItemSpotify, this.toolStripMenuItemItunes, this.toolStripSeparator1, this.toolStripMenuItemSetFormat, this.toolStripSeparator2, this.toolStripMenuItemSaveSeparateFiles, this.toolStripMenuItemSaveAlbumArtwork, this.toolStripMenuItemKeepSpotifyAlbumArtwork, this.toolStripMenuItemCacheSpotifyMetadata, this.toolStripMenuItemSaveHistory, this.toolStripMenuItemDisplayTrackPopup, this.toolStripMenuItemEmptyFileIfNoTrackPlaying, this.toolStripMenuItemEnableHotkeys, this.toolStripSeparator3, this.toolStripMenuItemExit}); this.contextMenuStrip.Name = "contextMenuStrip"; this.contextMenuStrip.Size = new System.Drawing.Size(68, 220); // // toolStripMenuItemSnipVersion // this.toolStripMenuItemSnipVersion.Enabled = false; this.toolStripMenuItemSnipVersion.Name = "toolStripMenuItemSnipVersion"; this.toolStripMenuItemSnipVersion.Size = new System.Drawing.Size(67, 22); this.toolStripMenuItemSnipVersion.Text = LocalizedMessages.SnipForm + AssemblyInformation.AssemblyShorterVersion; // // toolStripMenuItemSpotify // this.toolStripMenuItemSpotify.Checked = true; this.toolStripMenuItemSpotify.CheckState = System.Windows.Forms.CheckState.Checked; this.toolStripMenuItemSpotify.Name = "toolStripMenuItemSpotify"; this.toolStripMenuItemSpotify.Size = new System.Drawing.Size(67, 22); this.toolStripMenuItemSpotify.Text = LocalizedMessages.Spotify; this.toolStripMenuItemSpotify.Click += new System.EventHandler(this.PlayerSelectionCheck); // // toolStripMenuItemItunes // this.toolStripMenuItemItunes.Name = "toolStripMenuItemItunes"; this.toolStripMenuItemItunes.Size = new System.Drawing.Size(67, 22); this.toolStripMenuItemItunes.Text = LocalizedMessages.Itunes; this.toolStripMenuItemItunes.Click += new System.EventHandler(this.PlayerSelectionCheck); // // toolStripSeparator // this.toolStripSeparator.Name = "toolStripSeparator"; this.toolStripSeparator.Size = new System.Drawing.Size(64, 6); // // toolStripMenuItemSetFormat // this.toolStripMenuItemSetFormat.Name = "toolStripMenuItemSetFormat"; this.toolStripMenuItemSetFormat.Size = new System.Drawing.Size(67, 22); this.toolStripMenuItemSetFormat.Text = LocalizedMessages.SetOutputFormat; this.toolStripMenuItemSetFormat.Click += new System.EventHandler(this.ToolStripMenuItemSetFormat_Click); // // toolStripSeparator2 // this.toolStripSeparator2.Name = "toolStripSeparator2"; this.toolStripSeparator2.Size = new System.Drawing.Size(64, 6); // // toolStripMenuItemSaveSeparateFiles // this.toolStripMenuItemSaveSeparateFiles.Name = "toolStripMenuItemSaveSeparateFiles"; this.toolStripMenuItemSaveSeparateFiles.Size = new System.Drawing.Size(67, 22); this.toolStripMenuItemSaveSeparateFiles.Text = LocalizedMessages.SaveInformationSeparately; this.toolStripMenuItemSaveSeparateFiles.Click += new System.EventHandler(this.ToolStripMenuItemSaveSeparateFiles_Click); // // toolStripMenuItemSaveAlbumArtwork // this.toolStripMenuItemSaveAlbumArtwork.Name = "toolStripMenuItemSaveAlbumArtwork"; this.toolStripMenuItemSaveAlbumArtwork.Size = new System.Drawing.Size(67, 22); this.toolStripMenuItemSaveAlbumArtwork.Text = LocalizedMessages.SaveAlbumArtwork; this.toolStripMenuItemSaveAlbumArtwork.Click += new System.EventHandler(this.ToolStripMenuItemSaveAlbumArtwork_Click); // // toolStripMenuItemKeepSpotifyAlbumArtwork // this.toolStripMenuItemKeepSpotifyAlbumArtwork.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.toolStripMenuItemSmall, this.toolStripMenuItemMedium, this.toolStripMenuItemLarge}); this.toolStripMenuItemKeepSpotifyAlbumArtwork.Name = "toolStripMenuItemKeepSpotifyAlbumArtwork"; this.toolStripMenuItemKeepSpotifyAlbumArtwork.Size = new System.Drawing.Size(67, 22); this.toolStripMenuItemKeepSpotifyAlbumArtwork.Text = LocalizedMessages.KeepSpotifyAlbumArtwork; this.toolStripMenuItemKeepSpotifyAlbumArtwork.Click += new System.EventHandler(this.ToolStripMenuItemKeepSpotifyAlbumArtwork_Click); // // toolStripMenuItemSmall // this.toolStripMenuItemSmall.Checked = true; this.toolStripMenuItemSmall.CheckState = System.Windows.Forms.CheckState.Checked; this.toolStripMenuItemSmall.Name = "toolStripMenuItemSmall"; this.toolStripMenuItemSmall.Size = new System.Drawing.Size(67, 22); this.toolStripMenuItemSmall.Text = LocalizedMessages.ImageResolutionSmall; this.toolStripMenuItemSmall.Click += new System.EventHandler(this.AlbumArtworkResolutionCheck); // // toolStripMenuItemMedium // this.toolStripMenuItemMedium.Name = "toolStripMenuItemMedium"; this.toolStripMenuItemMedium.Size = new System.Drawing.Size(67, 22); this.toolStripMenuItemMedium.Text = LocalizedMessages.ImageResolutionMedium; this.toolStripMenuItemMedium.Click += new System.EventHandler(this.AlbumArtworkResolutionCheck); // // toolStripMenuItemLarge // this.toolStripMenuItemLarge.Name = "toolStripMenuItemLarge"; this.toolStripMenuItemLarge.Size = new System.Drawing.Size(67, 22); this.toolStripMenuItemLarge.Text = LocalizedMessages.ImageResolutionLarge; this.toolStripMenuItemLarge.Click += new System.EventHandler(this.AlbumArtworkResolutionCheck); // // toolStripMenuItemCacheSpotifyMetadata // this.toolStripMenuItemCacheSpotifyMetadata.Name = "toolStripMenuItemCacheSpotifyMetadata"; this.toolStripMenuItemCacheSpotifyMetadata.Size = new System.Drawing.Size(67, 22); this.toolStripMenuItemCacheSpotifyMetadata.Text = LocalizedMessages.CacheSpotifyMetadata; this.toolStripMenuItemCacheSpotifyMetadata.Click += new System.EventHandler(this.ToolStripMenuItemCacheSpotifyMetadata_Click); // // toolStripMenuItemSaveHistory // this.toolStripMenuItemSaveHistory.Name = "toolStripMenuItemSaveHistory"; this.toolStripMenuItemSaveHistory.Size = new System.Drawing.Size(67, 22); this.toolStripMenuItemSaveHistory.Text = LocalizedMessages.SaveTrackHistory; this.toolStripMenuItemSaveHistory.Click += new System.EventHandler(this.ToolStripMenuItemSaveHistory_Click); // // toolStripMenuItemDisplayTrackPopup // this.toolStripMenuItemDisplayTrackPopup.Name = "toolStripMenuItemDisplayTrackPopup"; this.toolStripMenuItemDisplayTrackPopup.Size = new System.Drawing.Size(67, 22); this.toolStripMenuItemDisplayTrackPopup.Text = LocalizedMessages.DisplayTrackPopup; this.toolStripMenuItemDisplayTrackPopup.Click += new System.EventHandler(this.ToolStripMenuItemDisplayTrackPopup_Click); // // toolStripSeparator1 // this.toolStripSeparator1.Name = "toolStripSeparator1"; this.toolStripSeparator1.Size = new System.Drawing.Size(64, 6); // // toolStripMenuItemExit // this.toolStripMenuItemExit.Name = "toolStripMenuItemExit"; this.toolStripMenuItemExit.Size = new System.Drawing.Size(67, 22); this.toolStripMenuItemExit.Text = LocalizedMessages.ExitApplication; this.toolStripMenuItemExit.Click += new System.EventHandler(this.ToolStripMenuItemExit_Click); // // toolStripMenuItemEmptyFileIfNoTrackPlaying // this.toolStripMenuItemEmptyFileIfNoTrackPlaying.Checked = true; this.toolStripMenuItemEmptyFileIfNoTrackPlaying.CheckState = System.Windows.Forms.CheckState.Checked; this.toolStripMenuItemEmptyFileIfNoTrackPlaying.Name = "toolStripMenuItemEmptyFileIfNoTrackPlaying"; this.toolStripMenuItemEmptyFileIfNoTrackPlaying.Size = new System.Drawing.Size(67, 22); this.toolStripMenuItemEmptyFileIfNoTrackPlaying.Text = LocalizedMessages.EmptyFile; this.toolStripMenuItemEmptyFileIfNoTrackPlaying.Click += new System.EventHandler(this.ToolStripMenuItemEmptyFileIfNoTrackPlaying_Click); // // toolStripMenuItemEnableHotkeys // this.toolStripMenuItemEnableHotkeys.Checked = true; this.toolStripMenuItemEnableHotkeys.CheckState = System.Windows.Forms.CheckState.Checked; this.toolStripMenuItemEnableHotkeys.Name = "toolStripMenuItemEnableHotkeys"; this.toolStripMenuItemEnableHotkeys.Size = new System.Drawing.Size(67, 22); this.toolStripMenuItemEnableHotkeys.Text = LocalizedMessages.EnableHotkeys; this.toolStripMenuItemEnableHotkeys.Click += new System.EventHandler(this.ToolStripMenuItemEnableHotkeys_Click); // // toolStripSeparator3 // this.toolStripSeparator.Name = "toolStripSeparator3"; this.toolStripSeparator.Size = new System.Drawing.Size(64, 6); // // timerScanTitle // this.timerScanMediaPlayer.Enabled = false; this.timerScanMediaPlayer.Tick += new System.EventHandler(this.TimerScanMediaPlayer_Tick); // // Snip // this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; this.ClientSize = new System.Drawing.Size(284, 262); this.Icon = Properties.Resources.SnipIcon; this.Name = "Snip"; this.Text = LocalizedMessages.SnipForm; this.contextMenuStrip.ResumeLayout(false); this.ResumeLayout(false); } #endregion } }
{ "pile_set_name": "Github" }
msgid "" msgstr "" "Project-Id-Version: ajenti\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-04-27 12:11+0200\n" "PO-Revision-Date: 2020-09-06 11:22\n" "Last-Translator: \n" "Language-Team: Latvian\n" "Language: lv_LV\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n==0 ? 0 : n%10==1 && n%100!=11 ? 1 : 2);\n" "X-Crowdin-Project: ajenti\n" "X-Crowdin-Project-ID: 18127\n" "X-Crowdin-Language: lv\n" "X-Crowdin-File: /2.0/settings.po\n" "X-Crowdin-File-ID: 38\n" #: plugins/settings/resources/partial/index.html:85 msgid "Allow sudo elevation for logged in users" msgstr "" #: plugins/settings/resources/partial/index.html:76 msgid "Authentication provider" msgstr "" #: plugins/settings/resources/partial/index.html:48 msgid "Binding" msgstr "" #: plugins/settings/resources/partial/index.html:205 #: plugins/settings/resources/js/controllers/index.controller.es:76 msgid "Cancel" msgstr "" #: plugins/settings/resources/partial/index.html:16 msgid "Color tag" msgstr "" #: plugins/settings/resources/partial/index.html:198 msgid "Common name" msgstr "" #: plugins/settings/resources/partial/index.html:186 msgid "Country" msgstr "" #: plugins/settings/resources/partial/index.html:129 msgid "Deny other means of authentication" msgstr "" #: plugins/settings/resources/partial/index.html:176 msgid "Download certificate" msgstr "" #: plugins/settings/resources/partial/index.html:94 msgid "Enable SSL" msgstr "" #: plugins/settings/resources/partial/index.html:126 msgid "Enable client authentication" msgstr "" #: plugins/settings/resources/partial/index.html:204 #: plugins/settings/resources/js/controllers/index.controller.es:75 msgid "Generate" msgstr "" #: plugins/settings/resources/partial/index.html:107 msgid "Generate a self-signed certificate" msgstr "" #: plugins/settings/resources/partial/index.html:169 #: plugins/settings/resources/js/controllers/index.controller.es:79 msgid "Generating certificate" msgstr "" #: plugins/settings/resources/partial/index.html:59 msgid "Host / IP" msgstr "" #: plugins/settings/resources/partial/index.html:30 msgid "Language" msgstr "" #: plugins/settings/resources/partial/index.html:182 msgid "Login as" msgstr "" #: plugins/settings/resources/partial/index.html:10 msgid "Machine name" msgstr "" #: plugins/settings/resources/partial/index.html:37 msgid "Max session time" msgstr "" #: plugins/settings/resources/partial/index.html:159 msgid "New certificate" msgstr "" #: plugins/settings/resources/partial/index.html:164 msgid "New client certificate" msgstr "" #: plugins/settings/resources/partial/index.html:136 msgid "No certificates are created yet." msgstr "" #: plugins/settings/resources/partial/index.html:194 msgid "Organization" msgstr "" #: plugins/settings/resources/partial/index.html:62 msgid "Port" msgstr "" #: plugins/settings/resources/partial/index.html:226 msgid "Remove" msgstr "" #: plugins/settings/resources/partial/index.html:271 msgid "Restart panel" msgstr "" #: plugins/settings/resources/partial/index.html:111 msgid "SSL FQDN certificate file" msgstr "" #: plugins/settings/resources/partial/index.html:100 msgid "SSL certificate file" msgstr "" #: plugins/settings/resources/partial/index.html:124 msgid "SSL client authentication" msgstr "" #: plugins/settings/resources/partial/index.html:134 msgid "SSL client certificates" msgstr "" #: plugins/settings/resources/partial/index.html:270 msgid "Save" msgstr "" #: plugins/settings/resources/partial/index.html:209 msgid "Save and Close" msgstr "" #: plugins/settings/resources/partial/index.html:67 msgid "Socket path" msgstr "" #: plugins/settings/resources/partial/index.html:190 msgid "State" msgstr "" #: plugins/settings/resources/partial/index.html:83 msgid "Sudo" msgstr "" #: plugins/settings/resources/partial/index.html:170 msgid "This might take a few seconds" msgstr "" #: plugins/settings/main.py:15 #: plugins/settings/resources/js/controllers/index.controller.es:2 msgid "Settings" msgstr "" #: plugins/settings/resources/js/controllers/index.controller.es:37 msgid "Could not load config" msgstr "" #: plugins/settings/resources/js/controllers/index.controller.es:41 msgid "Could not load authentication provider list" msgstr "" #: plugins/settings/resources/js/controllers/index.controller.es:60 #: plugins/settings/resources/js/controllers/index.controller.es:65 msgid "Saved" msgstr "" #: plugins/settings/resources/js/controllers/index.controller.es:61 msgid "SSL Error" msgstr "" #: plugins/settings/resources/js/controllers/index.controller.es:67 msgid "Could not save config" msgstr "" #: plugins/settings/resources/js/controllers/index.controller.es:73 msgid "Self-signed certificate" msgstr "" #: plugins/settings/resources/js/controllers/index.controller.es:74 msgid "Generating a new certificate will void all existing client authentication certificates!" msgstr "" #: plugins/settings/resources/js/controllers/index.controller.es:79 msgid "Please wait" msgstr "" #: plugins/settings/resources/js/controllers/index.controller.es:81 msgid "Certificate successfully generated" msgstr "" #: plugins/settings/resources/js/controllers/index.controller.es:87 #: plugins/settings/resources/js/controllers/index.controller.es:106 msgid "Certificate generation failed" msgstr ""
{ "pile_set_name": "Github" }
% -*- coding: utf-8 -*- % Титулка \begin{tikzpicture} \tikzstyle{every node}=[font=\fontsize{8pt}{8pt}] % cons cell \makeatletter \pgfdeclareshape{cons}{ \savedanchor{\car}{\pgfpoint{-5.40pt}{0.00pt}} \savedanchor{\cdr}{\pgfpoint{+5.40pt}{0.00pt}} \savedanchor{\origin}{\pgfpoint{0.00pt}{0.00pt}} \savedanchor{\east}{\pgfpoint{+12.00pt}{0.00pt}} \savedanchor{\top}{\pgfpoint{0.00pt}{+6.00pt}} \savedanchor{\border}{\pgfpointscale{1.25}{\pgfpoint{+12.00pt}{+6.00pt}}} \savedanchor{\clipTop}{\pgfpoint{-14.50pt}{+40.00pt}} \savedanchor{\clipMid}{\pgfpoint{+ 1.25pt}{ 0.00pt}} \savedanchor{\clipBot}{\pgfpoint{-14.50pt}{-40.00pt}} \anchor{center}{\origin} \anchor{car}{\car} \anchor{cdr}{\cdr} \foregroundpath{ \begin{pgfscope} \pgfpathellipse{\origin}{\east}{\top} \pgfstroke \pgfpathellipse{\origin}{\east}{\top} \pgfclip \pgfpathmoveto{\clipTop} \pgfpathlineto{\clipMid} \pgfpathlineto{\clipBot} \pgfclosepath \pgfstroke \end{pgfscope} } \anchorborder{ \@tempdima=\pgf@x \@tempdimb=\pgf@y \pgfpointborderellipse{\pgfpoint{\@tempdima}{\@tempdimb}}{\border} } } \makeatother % cons links \newcommand{\carnil}[1]{\fill (#1.car) circle(1.1pt);} \newcommand{\cdrnil}[1]{\fill (#1.cdr) circle(1.1pt);} \newcommand{\carlink}[2]{\carnil{#1} \draw [->] (#1.car) -- (#2);} \newcommand{\cdrlink}[2]{\cdrnil{#1} \draw [->] (#1.cdr) -- (#2);} \node (1) [cons, semithick, rotate = -90.0] at(105.0mm, 207.0mm) {}; \node (l1) [cons, semithick, rotate = -160.0] at( 78.0mm, 61.5mm) {}; \node (r1) [cons, semithick, rotate = -20.0] at(132.0mm, 61.5mm) {}; \node (l2) [cons, semithick, rotate = -120.0] at( 92.7mm, 71.3mm) {}; \node (r2) [cons, semithick, rotate = -60.0] at(117.3mm, 71.3mm) {}; \node (l3) [cons, semithick, rotate = -75.0] at( 96.5mm, 85.0mm) {}; \node (r3) [cons, semithick, rotate = -105.0] at(113.5mm, 85.0mm) {}; \node (l4) [cons, semithick, rotate = +120.0] at( 80.1mm, 88.8mm) {}; \node (r4) [cons, semithick, rotate = +60.0] at(129.9mm, 88.8mm) {}; \node (l5) [cons, semithick, rotate = -80.0] at( 75.5mm, 106.8mm) {}; \node (r5) [cons, semithick, rotate = -100.0] at(134.5mm, 106.8mm) {}; \node (l6) [cons, semithick, rotate = -35.0] at( 91.9mm, 100.3mm) {}; \node (r6) [cons, semithick, rotate = -145.0] at(118.1mm, 100.3mm) {}; \coordinate (l7) at( 75.5mm, 207.0mm); \coordinate (r7) at(134.5mm, 207.0mm); \begin{scope}[yshift=-2mm] \path ( 93.1mm, 185.9mm) .. controls (103.0mm, 203.6mm) and (108.7mm, 186.6mm) .. node (ls1) [cons, semithick, sloped, rotate = 180, pos = 0.00] {} node (ls2) [cons, semithick, sloped, pos = 0.30] {} node (ls3) [cons, semithick, sloped, rotate = 180, pos = 0.64] {} node (ls4) [cons, semithick, sloped, pos = 0.86] {} (112.4mm, 163.8mm) .. controls (113.7mm, 153.8mm) and (121.1mm, 131.8mm) .. (126mm,125.5mm) node (ls5) [cons, semithick, sloped, rotate = 180, pos = 0.08] {} node (ls6) [cons, semithick, sloped, pos = 0.39] {} node (ls7) [cons, semithick, sloped, pos = 0.66] {} node (ls8) [cons, semithick, sloped, pos = 1.00] {}; \path ( 85.3mm, 125.0mm) .. controls ( 85.3mm, 125.0mm) and ( 97.9mm, 156.2mm) .. (112.7mm, 163.4mm) node (ll1) [cons, semithick, rotate = 247, pos = 0.00] {} node (ll2) [cons, semithick, sloped, pos = 0.46] {} node (ll3) [cons, semithick, sloped, rotate = 180, pos = 0.73] {}; \end{scope} % lambda \carlink{ls2}{ls1}\cdrlink{ls2}{ls3}\carlink{ls3}{ls4}\cdrlink{ls4}{ls5} \carlink{ls5}{ls6}\cdrlink{ls6}{ls7}\cdrlink{ls7}{ls8}\cdrlink{ls5}{ll3} \cdrlink{ll3}{ll2}\carlink{ll2}{ll1}\cdrlink{1}{ls2} \cdrlink{ll1}{l6} % entwine % хитрость \coordinate (r6e) at (intersection of l6.cdr--r6.cdr and r3.cdr--ls6.cdr); \cdrlink{l6}{r6e} \carlink{l6}{l5}\cdrlink{l5}{l4}\carlink{l4}{l3}\cdrlink{l3}{l2} \cdrlink{l2}{l1}\carlink{r6}{r5}\cdrlink{r5}{r4}\carlink{r4}{r3} \cdrlink{r3}{r2}\cdrlink{r2}{r1} \draw [->, rounded corners = 25pt] (l5.car) -- (l7) -- (1); \draw [->, rounded corners = 25pt] (r5.car) -- (r7) -- (1); % data \cdrnil{ls1}\cdrnil{ls3}\cdrnil{ls8}\cdrnil{ll2}\cdrnil{l1}\cdrnil{r1} \cdrnil{l4}\cdrnil{r4}\carnil{l5}\carnil{r5}\cdrnil{r6} \node at(1.car) {$\lambda$}; \node at(ls1.car) {\texttt{n}}; \node at(ls4.car) {\texttt{if}}; \node at(ls6.car) {\texttt{<}}; \node at(ls7.car) {\texttt{n}}; \node at(ls8.car) {\texttt{2}}; \node at(ll3.car) {\texttt{1}}; \node at(ll1.car) {\texttt{+}}; \node at(l3.car) {\texttt{-}}; \node at(l2.car) {\texttt{n}}; \node at(l1.car) {\texttt{1}}; \node at(r3.car) {\texttt{-}}; \node at(r2.car) {\texttt{n}}; \node at(r1.car) {\texttt{2}}; \end{tikzpicture}
{ "pile_set_name": "Github" }
@font-face { font-family: 'icomoon'; src: url("../fonts/icomoon/icomoon.eot?srf3rx"); src: url("../fonts/icomoon/icomoon.eot?srf3rx#iefix") format("embedded-opentype"), url("../fonts/icomoon/icomoon.ttf?srf3rx") format("truetype"), url("../fonts/icomoon/icomoon.woff?srf3rx") format("woff"), url("../fonts/icomoon/icomoon.svg?srf3rx#icomoon") format("svg"); font-weight: normal; font-style: normal; } html { background: #fff; } body { font-family: "Roboto", arial, sans-serif; font-size: 18px; font-weight: 300; line-height: 1.8; color: #222; background: #fff; } body.fh5co-overflow { overflow-x: auto; } ::-webkit-selection { color: #fff; background: #f7c873; } ::-moz-selection { color: #fff; background: #f7c873; } ::selection { color: #fff; background: #f7c873; } a { color: #f7c873; -webkit-transition: 0.5s; -o-transition: 0.5s; transition: 0.5s; } a:hover, a:focus, a:active { color: #f3ac2b; outline: none; text-decoration: none; } h1, h2, h3, h4, h5, h6 { font-family: "Playfair Display", times, serif; color: #000; } p { margin-bottom: 30px; } .btn { margin-right: 4px; margin-bottom: 4px; font-family: "Playfair Display", times, serif; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; -webkit-border-radius: 4px; -moz-border-radius: 4px; -ms-border-radius: 4px; border-radius: 4px; -webkit-transition: 0.5s; -o-transition: 0.5s; transition: 0.5s; } .btn.btn-md { padding: 10px 20px !important; } .btn.btn-lg { padding: 18px 36px !important; } .btn:hover, .btn:active, .btn:focus { box-shadow: none !important; outline: none !important; } .copyrights{ text-indent:-9999px; height:0; line-height:0; font-size:0; overflow:hidden; } .btn-primary { background: #f7c873; color: #fff; border: 2px solid #f7c873; } .btn-primary:hover, .btn-primary:focus, .btn-primary:active { background: #f6bf5b !important; border-color: #f6bf5b !important; } .btn-primary.btn-outline { background: transparent; color: #f7c873; border: 2px solid #f7c873; } .btn-primary.btn-outline:hover, .btn-primary.btn-outline:focus, .btn-primary.btn-outline:active { background: #f7c873; color: #fff; } .btn-success { background: #58ca7e; color: #fff; border: 2px solid #58ca7e; } .btn-success:hover, .btn-success:focus, .btn-success:active { background: #45c46f !important; border-color: #45c46f !important; } .btn-success.btn-outline { background: transparent; color: #58ca7e; border: 2px solid #58ca7e; } .btn-success.btn-outline:hover, .btn-success.btn-outline:focus, .btn-success.btn-outline:active { background: #58ca7e; color: #fff; } .btn-info { background: #1784fb; color: #fff; border: 2px solid #1784fb; } .btn-info:hover, .btn-info:focus, .btn-info:active { background: #0477f4 !important; border-color: #0477f4 !important; } .btn-info.btn-outline { background: transparent; color: #1784fb; border: 2px solid #1784fb; } .btn-info.btn-outline:hover, .btn-info.btn-outline:focus, .btn-info.btn-outline:active { background: #1784fb; color: #fff; } .btn-warning { background: #fed330; color: #fff; border: 2px solid #fed330; } .btn-warning:hover, .btn-warning:focus, .btn-warning:active { background: #fece17 !important; border-color: #fece17 !important; } .btn-warning.btn-outline { background: transparent; color: #fed330; border: 2px solid #fed330; } .btn-warning.btn-outline:hover, .btn-warning.btn-outline:focus, .btn-warning.btn-outline:active { background: #fed330; color: #fff; } .btn-danger { background: #fb4f59; color: #fff; border: 2px solid #fb4f59; } .btn-danger:hover, .btn-danger:focus, .btn-danger:active { background: #fa3641 !important; border-color: #fa3641 !important; } .btn-danger.btn-outline { background: transparent; color: #fb4f59; border: 2px solid #fb4f59; } .btn-danger.btn-outline:hover, .btn-danger.btn-outline:focus, .btn-danger.btn-outline:active { background: #fb4f59; color: #fff; } .btn-outline { background: none; border: 2px solid gray; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; -webkit-transition: 0.3s; -o-transition: 0.3s; transition: 0.3s; } .btn-outline:hover, .btn-outline:focus, .btn-outline:active { box-shadow: none; } .form-control { box-shadow: none; background: transparent; border: 2px solid rgba(0, 0, 0, 0.1); height: 54px; font-size: 18px; font-weight: 300; } .form-control:active, .form-control:focus { outline: none; box-shadow: none; border-color: #f7c873; } #fh5co-header { padding: 3em 3em; float: left; width: 100%; } @media screen and (max-width: 1200px) { #fh5co-header { padding-left: 15px; padding-right: 15px; } } @media screen and (max-width: 480px) { #fh5co-header { padding-bottom: 5em !important; } } #fh5co-header .fh5co-nav-toggle { position: absolute; top: 4.2em; left: 3em; z-index: 99; } @media screen and (max-width: 1200px) { #fh5co-header .fh5co-nav-toggle { top: 4em; left: 15px; } } @media screen and (max-width: 768px) { #fh5co-header .fh5co-nav-toggle { top: 2.5em; left: 15px; } } #fh5co-header .fh5co-social { position: absolute !important; right: 3em !important; top: 3.2em; z-index: 99; -webkit-transition: 0.5s; -o-transition: 0.5s; transition: 0.5s; } @media screen and (max-width: 1200px) { #fh5co-header .fh5co-social { right: 15px !important; top: 3.2em; } } @media screen and (max-width: 768px) { #fh5co-header .fh5co-social { right: 15px !important; top: 1.5em; } } @media screen and (max-width: 480px) { #fh5co-header .fh5co-social { right: inherit !important; left: inherit !important; top: 5em; left: 50% !important; margin-left: -50px; } } @media screen and (max-width: 768px) { #fh5co-header { padding-top: 1.5em; padding-bottom: 1.5em; padding-left: 15px; padding-right: 15px; } } #fh5co-header #fh5co-logo { text-align: center; } #fh5co-header #fh5co-logo a { color: #000; } #fh5co-header #fh5co-logo a sup { font-size: 20px; top: -20px; } .fh5co-post-prev, .fh5co-post-next { position: fixed; z-index: 999; top: 50%; height: 50px; margin-top: -25px; color: #000; text-transform: uppercase; font-weight: bold; -webkit-transition: 0.5s; -o-transition: 0.5s; transition: 0.5s; } @media screen and (max-width: 768px) { .fh5co-post-prev, .fh5co-post-next { position: relative; text-align: center; display: -moz-inline-stack; display: inline-block; zoom: 1; *display: inline; } } .fh5co-post-prev span, .fh5co-post-next span { vertical-align: base; width: 100px; } .fh5co-post-prev span i, .fh5co-post-next span i { top: 7px; position: relative; font-size: 30px; color: #000; } .fh5co-post-prev { left: 0; margin-left: -25px; } .fh5co-post-prev:hover { margin-left: 10px; color: #000; } @media screen and (max-width: 768px) { .fh5co-post-prev { margin-left: 15px; float: left; } } .fh5co-post-next { right: 0; margin-right: -25px; } .fh5co-post-next:hover { margin-right: 10px; color: #000; } @media screen and (max-width: 768px) { .fh5co-post-next { margin-right: 15px; float: right; } } .fh5co-post-entry.single-entry .fh5co-article-title { font-size: 80px; } @media screen and (max-width: 992px) { .fh5co-post-entry.single-entry .fh5co-article-title { font-size: 56px; } } @media screen and (max-width: 768px) { .fh5co-post-entry.single-entry .fh5co-article-title { font-size: 34px; } } .fh5co-post-entry article { text-align: center; float: left; margin-bottom: 110px; padding-left: 3em; padding-right: 3em; } @media screen and (max-width: 1200px) { .fh5co-post-entry article { margin-bottom: 80px; padding-left: 15px; padding-right: 15px; } } @media screen and (max-width: 992px) { .fh5co-post-entry article { margin-bottom: 80px; padding-left: 15px; padding-right: 15px; } } @media screen and (max-width: 768px) { .fh5co-post-entry article { margin-bottom: 40px; padding-left: 15px; padding-right: 15px; } } .fh5co-post-entry article a img { opacity: 1; -webkit-transition: 0.5s; -o-transition: 0.5s; transition: 0.5s; } .fh5co-post-entry article a:hover img { opacity: .4; } .fh5co-post-entry article figure { margin-bottom: 30px; } .fh5co-post-entry article h2 { font-family: "Playfair Display", times, serif; font-size: 34px; color: #000; margin-bottom: 30px; } .fh5co-post-entry article h2 a { color: #000; } @media screen and (max-width: 992px) { .fh5co-post-entry article h2 { font-size: 26px; } } @media screen and (max-width: 768px) { .fh5co-post-entry article h2 { font-size: 24px; margin-bottom: 20px; } } .fh5co-post-entry article .fh5co-meta { font-size: 16px; font-family: "Roboto", arial, sans-serif; color: #999999; margin-bottom: 20px; display: block; } @media screen and (max-width: 480px) { .fh5co-post-entry article .fh5co-meta { margin-bottom: 10px; } } .fh5co-post-entry article .fh5co-meta.fh5co-date { text-transform: uppercase; letter-spacing: 2px; } .fh5co-post-entry article .content-article { padding-top: 4em; } .fh5co-post-entry article .content-article a { text-decoration: underline; } .fh5co-post-entry article .content-article blockquote { border-left: none; padding-left: 0; } .fh5co-post-entry article .content-article blockquote p { font-family: "Playfair Display", times, serif; font-size: 27px; font-style: italic; line-height: 1.5; } .fh5co-post-entry article .content-article blockquote p cite { padding-top: 20px; display: block; font-size: 16px; font-style: normal; color: gray; } .fh5co-post-entry article .fh5co-highlight { border: 4px solid #f2f2f2; padding: 30px; width: 100%; margin-bottom: 30px; } .fh5co-post-entry article .fh5co-highlight.right { float: right; margin-left: 30px; } .fh5co-post-entry article .fh5co-highlight.left { float: left; } .fh5co-post-entry article .fh5co-highlight h4 { font-size: 14px; letter-spacing: 2px; color: #b3b3b3; text-transform: uppercase; font-family: "Roboto", arial, sans-serif; } .fh5co-post-entry article .fh5co-highlight p { font-family: "Playfair Display", times, serif; color: #000; font-size: 20px; } .fh5co-social { padding: 0; margin: 30px 0 0 0; position: relative; } .fh5co-social li { padding: 0; margin: 0; list-style: none; display: inline; } .fh5co-social li a { font-size: 20px; padding: 4px; color: #000; } figure figcaption { padding-top: 15px; font-size: 14px; color: #999999; } #fh5co-offcanvas { background: #fff; position: fixed; top: 0; left: 0; bottom: 0; width: 700px; z-index: 99999; overflow-y: auto; opacity: 0; display: none; } @media screen and (max-width: 768px) { #fh5co-offcanvas { padding-top: 30px; width: 270px; } } #fh5co-offcanvas .fh5co-close-offcanvas { position: absolute; top: 20px; right: 20px; font-size: 30px; width: 30px; overflow: hidden; color: #cccccc; -webkit-transition: 0.3s; -o-transition: 0.3s; transition: 0.3s; } @media screen and (max-width: 768px) { #fh5co-offcanvas .fh5co-close-offcanvas { top: 5px; } } #fh5co-offcanvas .fh5co-close-offcanvas:hover { width: 85px; color: #000; } #fh5co-offcanvas .fh5co-close-offcanvas > span { width: 100px; display: -moz-inline-stack; display: inline-block; zoom: 1; *display: inline; } #fh5co-offcanvas .fh5co-close-offcanvas > span > span { top: 7px; position: relative; font-size: 18px; vertical-align: top; } #fh5co-offcanvas .fh5co-box { float: left; margin-bottom: 30px; width: 100%; } #fh5co-offcanvas .fh5co-menu, #fh5co-offcanvas .fh5co-bio { width: 50%; padding: 50px; } @media screen and (max-width: 768px) { #fh5co-offcanvas .fh5co-menu, #fh5co-offcanvas .fh5co-bio { width: 100%; padding: 30px; } } #fh5co-offcanvas .fh5co-bio { text-align: center; float: left; } #fh5co-offcanvas .fh5co-bio figure { text-align: center; display: block; margin-bottom: 30px; } #fh5co-offcanvas .fh5co-bio img { width: 180px; margin: 0 auto; -webkit-border-radius: 50%; -moz-border-radius: 50%; -ms-border-radius: 50%; border-radius: 50%; } #fh5co-offcanvas .fh5co-bio p { font-size: 16px; } #fh5co-offcanvas .heading { font-size: 16px; letter-spacing: 2px; text-transform: uppercase; color: #cccccc; margin-bottom: 30px; } #fh5co-offcanvas .fh5co-menu { float: right; } #fh5co-offcanvas .fh5co-menu ul { padding: 0; margin: 0; } #fh5co-offcanvas .fh5co-menu ul li { padding: 0; margin: 0 0 10px 0; list-style: none; display: block; } #fh5co-offcanvas .fh5co-menu ul li a { color: #000; } #fh5co-footer { padding: 3em 0; text-align: center; } .js .to-animate, .js .to-animate-2, .js .animate-box { opacity: 0; } .fh5co-nav-toggle { width: 25px; height: 25px; cursor: pointer; text-decoration: none; } .fh5co-nav-toggle.active i::before, .fh5co-nav-toggle.active i::after { background: #f7c873; } .fh5co-nav-toggle:hover, .fh5co-nav-toggle:focus, .fh5co-nav-toggle:active { outline: none; border-bottom: none !important; } .fh5co-nav-toggle i { position: relative; display: -moz-inline-stack; display: inline-block; zoom: 1; *display: inline; width: 25px; height: 3px; color: #535659; font: bold 14px/.4 Helvetica; text-transform: uppercase; text-indent: -55px; background: #535659; transition: all .2s ease-out; } .fh5co-nav-toggle i::before, .fh5co-nav-toggle i::after { content: ''; width: 25px; height: 3px; background: #535659; position: absolute; left: 0; -webkit-transition: 0.2s; -o-transition: 0.2s; transition: 0.2s; } .fh5co-nav-toggle i::before { top: -7px; } .fh5co-nav-toggle i::after { bottom: -7px; } .fh5co-nav-toggle:hover i::before { top: -10px; } .fh5co-nav-toggle:hover i::after { bottom: -10px; } .fh5co-nav-toggle.active i { background: transparent; } .fh5co-nav-toggle.active i::before { top: 0; -webkit-transform: rotateZ(45deg); -moz-transform: rotateZ(45deg); -ms-transform: rotateZ(45deg); -o-transform: rotateZ(45deg); transform: rotateZ(45deg); } .fh5co-nav-toggle.active i::after { bottom: 0; -webkit-transform: rotateZ(-45deg); -moz-transform: rotateZ(-45deg); -ms-transform: rotateZ(-45deg); -o-transform: rotateZ(-45deg); transform: rotateZ(-45deg); } .fh5co-nav-toggle { position: absolute; top: 18px; left: 0; z-index: 21; padding: 6px 0 0 0; display: block; margin: 0 auto; display: block; height: 44px; width: 25px; border-bottom: none !important; } @media screen and (max-width: 768px) { .fh5co-nav-toggle { display: block; } } .fh5co-animated { -webkit-animation-duration: .3s; animation-duration: .3s; -webkit-animation-fill-mode: both; animation-fill-mode: both; } .rp-b { padding-bottom: 40px; } .cp-l { padding-left: 50px; } @media screen and (max-width: 992px) { .cp-l { padding-left: 15px; } } .cp-r { padding-right: 50px; } @media screen and (max-width: 992px) { .cp-r { padding-right: 15px; } } @media screen and (max-width: 480px) { .col-xxs-12 { width: 100%; float: none; } } /*# sourceMappingURL=style.css.map */
{ "pile_set_name": "Github" }
// Test frontend handling of __sync builtins. // Modified from a gcc testcase. // RUN: %clang_cc1 -triple x86_64-apple-darwin -emit-llvm %s -o - | FileCheck %s signed char sc; unsigned char uc; signed short ss; unsigned short us; signed int si; unsigned int ui; signed long long sll; unsigned long long ull; void test_op_ignore (void) // CHECK-LABEL: define void @test_op_ignore { (void) __sync_fetch_and_add (&sc, 1); // CHECK: atomicrmw add i8 (void) __sync_fetch_and_add (&uc, 1); // CHECK: atomicrmw add i8 (void) __sync_fetch_and_add (&ss, 1); // CHECK: atomicrmw add i16 (void) __sync_fetch_and_add (&us, 1); // CHECK: atomicrmw add i16 (void) __sync_fetch_and_add (&si, 1); // CHECK: atomicrmw add i32 (void) __sync_fetch_and_add (&ui, 1); // CHECK: atomicrmw add i32 (void) __sync_fetch_and_add (&sll, 1); // CHECK: atomicrmw add i64 (void) __sync_fetch_and_add (&ull, 1); // CHECK: atomicrmw add i64 (void) __sync_fetch_and_sub (&sc, 1); // CHECK: atomicrmw sub i8 (void) __sync_fetch_and_sub (&uc, 1); // CHECK: atomicrmw sub i8 (void) __sync_fetch_and_sub (&ss, 1); // CHECK: atomicrmw sub i16 (void) __sync_fetch_and_sub (&us, 1); // CHECK: atomicrmw sub i16 (void) __sync_fetch_and_sub (&si, 1); // CHECK: atomicrmw sub i32 (void) __sync_fetch_and_sub (&ui, 1); // CHECK: atomicrmw sub i32 (void) __sync_fetch_and_sub (&sll, 1); // CHECK: atomicrmw sub i64 (void) __sync_fetch_and_sub (&ull, 1); // CHECK: atomicrmw sub i64 (void) __sync_fetch_and_or (&sc, 1); // CHECK: atomicrmw or i8 (void) __sync_fetch_and_or (&uc, 1); // CHECK: atomicrmw or i8 (void) __sync_fetch_and_or (&ss, 1); // CHECK: atomicrmw or i16 (void) __sync_fetch_and_or (&us, 1); // CHECK: atomicrmw or i16 (void) __sync_fetch_and_or (&si, 1); // CHECK: atomicrmw or i32 (void) __sync_fetch_and_or (&ui, 1); // CHECK: atomicrmw or i32 (void) __sync_fetch_and_or (&sll, 1); // CHECK: atomicrmw or i64 (void) __sync_fetch_and_or (&ull, 1); // CHECK: atomicrmw or i64 (void) __sync_fetch_and_xor (&sc, 1); // CHECK: atomicrmw xor i8 (void) __sync_fetch_and_xor (&uc, 1); // CHECK: atomicrmw xor i8 (void) __sync_fetch_and_xor (&ss, 1); // CHECK: atomicrmw xor i16 (void) __sync_fetch_and_xor (&us, 1); // CHECK: atomicrmw xor i16 (void) __sync_fetch_and_xor (&si, 1); // CHECK: atomicrmw xor i32 (void) __sync_fetch_and_xor (&ui, 1); // CHECK: atomicrmw xor i32 (void) __sync_fetch_and_xor (&sll, 1); // CHECK: atomicrmw xor i64 (void) __sync_fetch_and_xor (&ull, 1); // CHECK: atomicrmw xor i64 (void) __sync_fetch_and_nand (&sc, 1); // CHECK: atomicrmw nand i8 (void) __sync_fetch_and_nand (&uc, 1); // CHECK: atomicrmw nand i8 (void) __sync_fetch_and_nand (&ss, 1); // CHECK: atomicrmw nand i16 (void) __sync_fetch_and_nand (&us, 1); // CHECK: atomicrmw nand i16 (void) __sync_fetch_and_nand (&si, 1); // CHECK: atomicrmw nand i32 (void) __sync_fetch_and_nand (&ui, 1); // CHECK: atomicrmw nand i32 (void) __sync_fetch_and_nand (&sll, 1); // CHECK: atomicrmw nand i64 (void) __sync_fetch_and_nand (&ull, 1); // CHECK: atomicrmw nand i64 (void) __sync_fetch_and_and (&sc, 1); // CHECK: atomicrmw and i8 (void) __sync_fetch_and_and (&uc, 1); // CHECK: atomicrmw and i8 (void) __sync_fetch_and_and (&ss, 1); // CHECK: atomicrmw and i16 (void) __sync_fetch_and_and (&us, 1); // CHECK: atomicrmw and i16 (void) __sync_fetch_and_and (&si, 1); // CHECK: atomicrmw and i32 (void) __sync_fetch_and_and (&ui, 1); // CHECK: atomicrmw and i32 (void) __sync_fetch_and_and (&sll, 1); // CHECK: atomicrmw and i64 (void) __sync_fetch_and_and (&ull, 1); // CHECK: atomicrmw and i64 } void test_fetch_and_op (void) // CHECK-LABEL: define void @test_fetch_and_op { sc = __sync_fetch_and_add (&sc, 11); // CHECK: atomicrmw add uc = __sync_fetch_and_add (&uc, 11); // CHECK: atomicrmw add ss = __sync_fetch_and_add (&ss, 11); // CHECK: atomicrmw add us = __sync_fetch_and_add (&us, 11); // CHECK: atomicrmw add si = __sync_fetch_and_add (&si, 11); // CHECK: atomicrmw add ui = __sync_fetch_and_add (&ui, 11); // CHECK: atomicrmw add sll = __sync_fetch_and_add (&sll, 11); // CHECK: atomicrmw add ull = __sync_fetch_and_add (&ull, 11); // CHECK: atomicrmw add sc = __sync_fetch_and_sub (&sc, 11); // CHECK: atomicrmw sub uc = __sync_fetch_and_sub (&uc, 11); // CHECK: atomicrmw sub ss = __sync_fetch_and_sub (&ss, 11); // CHECK: atomicrmw sub us = __sync_fetch_and_sub (&us, 11); // CHECK: atomicrmw sub si = __sync_fetch_and_sub (&si, 11); // CHECK: atomicrmw sub ui = __sync_fetch_and_sub (&ui, 11); // CHECK: atomicrmw sub sll = __sync_fetch_and_sub (&sll, 11); // CHECK: atomicrmw sub ull = __sync_fetch_and_sub (&ull, 11); // CHECK: atomicrmw sub sc = __sync_fetch_and_or (&sc, 11); // CHECK: atomicrmw or uc = __sync_fetch_and_or (&uc, 11); // CHECK: atomicrmw or ss = __sync_fetch_and_or (&ss, 11); // CHECK: atomicrmw or us = __sync_fetch_and_or (&us, 11); // CHECK: atomicrmw or si = __sync_fetch_and_or (&si, 11); // CHECK: atomicrmw or ui = __sync_fetch_and_or (&ui, 11); // CHECK: atomicrmw or sll = __sync_fetch_and_or (&sll, 11); // CHECK: atomicrmw or ull = __sync_fetch_and_or (&ull, 11); // CHECK: atomicrmw or sc = __sync_fetch_and_xor (&sc, 11); // CHECK: atomicrmw xor uc = __sync_fetch_and_xor (&uc, 11); // CHECK: atomicrmw xor ss = __sync_fetch_and_xor (&ss, 11); // CHECK: atomicrmw xor us = __sync_fetch_and_xor (&us, 11); // CHECK: atomicrmw xor si = __sync_fetch_and_xor (&si, 11); // CHECK: atomicrmw xor ui = __sync_fetch_and_xor (&ui, 11); // CHECK: atomicrmw xor sll = __sync_fetch_and_xor (&sll, 11); // CHECK: atomicrmw xor ull = __sync_fetch_and_xor (&ull, 11); // CHECK: atomicrmw xor sc = __sync_fetch_and_nand (&sc, 11); // CHECK: atomicrmw nand uc = __sync_fetch_and_nand (&uc, 11); // CHECK: atomicrmw nand ss = __sync_fetch_and_nand (&ss, 11); // CHECK: atomicrmw nand us = __sync_fetch_and_nand (&us, 11); // CHECK: atomicrmw nand si = __sync_fetch_and_nand (&si, 11); // CHECK: atomicrmw nand ui = __sync_fetch_and_nand (&ui, 11); // CHECK: atomicrmw nand sll = __sync_fetch_and_nand (&sll, 11); // CHECK: atomicrmw nand ull = __sync_fetch_and_nand (&ull, 11); // CHECK: atomicrmw nand sc = __sync_fetch_and_and (&sc, 11); // CHECK: atomicrmw and uc = __sync_fetch_and_and (&uc, 11); // CHECK: atomicrmw and ss = __sync_fetch_and_and (&ss, 11); // CHECK: atomicrmw and us = __sync_fetch_and_and (&us, 11); // CHECK: atomicrmw and si = __sync_fetch_and_and (&si, 11); // CHECK: atomicrmw and ui = __sync_fetch_and_and (&ui, 11); // CHECK: atomicrmw and sll = __sync_fetch_and_and (&sll, 11); // CHECK: atomicrmw and ull = __sync_fetch_and_and (&ull, 11); // CHECK: atomicrmw and } void test_op_and_fetch (void) { sc = __sync_add_and_fetch (&sc, uc); // CHECK: atomicrmw add uc = __sync_add_and_fetch (&uc, uc); // CHECK: atomicrmw add ss = __sync_add_and_fetch (&ss, uc); // CHECK: atomicrmw add us = __sync_add_and_fetch (&us, uc); // CHECK: atomicrmw add si = __sync_add_and_fetch (&si, uc); // CHECK: atomicrmw add ui = __sync_add_and_fetch (&ui, uc); // CHECK: atomicrmw add sll = __sync_add_and_fetch (&sll, uc); // CHECK: atomicrmw add ull = __sync_add_and_fetch (&ull, uc); // CHECK: atomicrmw add sc = __sync_sub_and_fetch (&sc, uc); // CHECK: atomicrmw sub uc = __sync_sub_and_fetch (&uc, uc); // CHECK: atomicrmw sub ss = __sync_sub_and_fetch (&ss, uc); // CHECK: atomicrmw sub us = __sync_sub_and_fetch (&us, uc); // CHECK: atomicrmw sub si = __sync_sub_and_fetch (&si, uc); // CHECK: atomicrmw sub ui = __sync_sub_and_fetch (&ui, uc); // CHECK: atomicrmw sub sll = __sync_sub_and_fetch (&sll, uc); // CHECK: atomicrmw sub ull = __sync_sub_and_fetch (&ull, uc); // CHECK: atomicrmw sub sc = __sync_or_and_fetch (&sc, uc); // CHECK: atomicrmw or uc = __sync_or_and_fetch (&uc, uc); // CHECK: atomicrmw or ss = __sync_or_and_fetch (&ss, uc); // CHECK: atomicrmw or us = __sync_or_and_fetch (&us, uc); // CHECK: atomicrmw or si = __sync_or_and_fetch (&si, uc); // CHECK: atomicrmw or ui = __sync_or_and_fetch (&ui, uc); // CHECK: atomicrmw or sll = __sync_or_and_fetch (&sll, uc); // CHECK: atomicrmw or ull = __sync_or_and_fetch (&ull, uc); // CHECK: atomicrmw or sc = __sync_xor_and_fetch (&sc, uc); // CHECK: atomicrmw xor uc = __sync_xor_and_fetch (&uc, uc); // CHECK: atomicrmw xor ss = __sync_xor_and_fetch (&ss, uc); // CHECK: atomicrmw xor us = __sync_xor_and_fetch (&us, uc); // CHECK: atomicrmw xor si = __sync_xor_and_fetch (&si, uc); // CHECK: atomicrmw xor ui = __sync_xor_and_fetch (&ui, uc); // CHECK: atomicrmw xor sll = __sync_xor_and_fetch (&sll, uc); // CHECK: atomicrmw xor ull = __sync_xor_and_fetch (&ull, uc); // CHECK: atomicrmw xor sc = __sync_nand_and_fetch (&sc, uc); // CHECK: atomicrmw nand // CHECK: and // CHECK: xor uc = __sync_nand_and_fetch (&uc, uc); // CHECK: atomicrmw nand // CHECK: and // CHECK: xor ss = __sync_nand_and_fetch (&ss, uc); // CHECK: atomicrmw nand // CHECK: and // CHECK: xor us = __sync_nand_and_fetch (&us, uc); // CHECK: atomicrmw nand // CHECK: and // CHECK: xor si = __sync_nand_and_fetch (&si, uc); // CHECK: atomicrmw nand // CHECK: and // CHECK: xor ui = __sync_nand_and_fetch (&ui, uc); // CHECK: atomicrmw nand // CHECK: and // CHECK: xor sll = __sync_nand_and_fetch (&sll, uc); // CHECK: atomicrmw nand // CHECK: and // CHECK: xor ull = __sync_nand_and_fetch (&ull, uc); // CHECK: atomicrmw nand // CHECK: and // CHECK: xor sc = __sync_and_and_fetch (&sc, uc); // CHECK: atomicrmw and uc = __sync_and_and_fetch (&uc, uc); // CHECK: atomicrmw and ss = __sync_and_and_fetch (&ss, uc); // CHECK: atomicrmw and us = __sync_and_and_fetch (&us, uc); // CHECK: atomicrmw and si = __sync_and_and_fetch (&si, uc); // CHECK: atomicrmw and ui = __sync_and_and_fetch (&ui, uc); // CHECK: atomicrmw and sll = __sync_and_and_fetch (&sll, uc); // CHECK: atomicrmw and ull = __sync_and_and_fetch (&ull, uc); // CHECK: atomicrmw and } void test_compare_and_swap (void) { sc = __sync_val_compare_and_swap (&sc, uc, sc); // CHECK: [[PAIR:%[a-z0-9._]+]] = cmpxchg i8 // CHECK: extractvalue { i8, i1 } [[PAIR]], 0 uc = __sync_val_compare_and_swap (&uc, uc, sc); // CHECK: [[PAIR:%[a-z0-9._]+]] = cmpxchg i8 // CHECK: extractvalue { i8, i1 } [[PAIR]], 0 ss = __sync_val_compare_and_swap (&ss, uc, sc); // CHECK: [[PAIR:%[a-z0-9._]+]] = cmpxchg i16 // CHECK: extractvalue { i16, i1 } [[PAIR]], 0 us = __sync_val_compare_and_swap (&us, uc, sc); // CHECK: [[PAIR:%[a-z0-9._]+]] = cmpxchg i16 // CHECK: extractvalue { i16, i1 } [[PAIR]], 0 si = __sync_val_compare_and_swap (&si, uc, sc); // CHECK: [[PAIR:%[a-z0-9._]+]] = cmpxchg i32 // CHECK: extractvalue { i32, i1 } [[PAIR]], 0 ui = __sync_val_compare_and_swap (&ui, uc, sc); // CHECK: [[PAIR:%[a-z0-9._]+]] = cmpxchg i32 // CHECK: extractvalue { i32, i1 } [[PAIR]], 0 sll = __sync_val_compare_and_swap (&sll, uc, sc); // CHECK: [[PAIR:%[a-z0-9._]+]] = cmpxchg i64 // CHECK: extractvalue { i64, i1 } [[PAIR]], 0 ull = __sync_val_compare_and_swap (&ull, uc, sc); // CHECK: [[PAIR:%[a-z0-9._]+]] = cmpxchg i64 // CHECK: extractvalue { i64, i1 } [[PAIR]], 0 ui = __sync_bool_compare_and_swap (&sc, uc, sc); // CHECK: [[PAIR:%[a-z0-9._]+]] = cmpxchg i8 // CHECK: extractvalue { i8, i1 } [[PAIR]], 1 ui = __sync_bool_compare_and_swap (&uc, uc, sc); // CHECK: [[PAIR:%[a-z0-9._]+]] = cmpxchg i8 // CHECK: extractvalue { i8, i1 } [[PAIR]], 1 ui = __sync_bool_compare_and_swap (&ss, uc, sc); // CHECK: [[PAIR:%[a-z0-9._]+]] = cmpxchg i16 // CHECK: extractvalue { i16, i1 } [[PAIR]], 1 ui = __sync_bool_compare_and_swap (&us, uc, sc); // CHECK: [[PAIR:%[a-z0-9._]+]] = cmpxchg i16 // CHECK: extractvalue { i16, i1 } [[PAIR]], 1 ui = __sync_bool_compare_and_swap (&si, uc, sc); // CHECK: [[PAIR:%[a-z0-9._]+]] = cmpxchg i32 // CHECK: extractvalue { i32, i1 } [[PAIR]], 1 ui = __sync_bool_compare_and_swap (&ui, uc, sc); // CHECK: [[PAIR:%[a-z0-9._]+]] = cmpxchg i32 // CHECK: extractvalue { i32, i1 } [[PAIR]], 1 ui = __sync_bool_compare_and_swap (&sll, uc, sc); // CHECK: [[PAIR:%[a-z0-9._]+]] = cmpxchg i64 // CHECK: extractvalue { i64, i1 } [[PAIR]], 1 ui = __sync_bool_compare_and_swap (&ull, uc, sc); // CHECK: [[PAIR:%[a-z0-9._]+]] = cmpxchg i64 // CHECK: extractvalue { i64, i1 } [[PAIR]], 1 } void test_lock (void) { sc = __sync_lock_test_and_set (&sc, 1); // CHECK: atomicrmw xchg i8 uc = __sync_lock_test_and_set (&uc, 1); // CHECK: atomicrmw xchg i8 ss = __sync_lock_test_and_set (&ss, 1); // CHECK: atomicrmw xchg i16 us = __sync_lock_test_and_set (&us, 1); // CHECK: atomicrmw xchg i16 si = __sync_lock_test_and_set (&si, 1); // CHECK: atomicrmw xchg i32 ui = __sync_lock_test_and_set (&ui, 1); // CHECK: atomicrmw xchg i32 sll = __sync_lock_test_and_set (&sll, 1); // CHECK: atomicrmw xchg i64 ull = __sync_lock_test_and_set (&ull, 1); // CHECK: atomicrmw xchg i64 __sync_synchronize (); // CHECK: fence seq_cst __sync_lock_release (&sc); // CHECK: store atomic {{.*}} release, align 1 __sync_lock_release (&uc); // CHECK: store atomic {{.*}} release, align 1 __sync_lock_release (&ss); // CHECK: store atomic {{.*}} release, align 2 __sync_lock_release (&us); /// CHECK: store atomic {{.*}} release, align 2 __sync_lock_release (&si); // CHECK: store atomic {{.*}} release, align 4 __sync_lock_release (&ui); // CHECK: store atomic {{.*}} release, align 4 __sync_lock_release (&sll); // CHECK: store atomic {{.*}} release, align 8 __sync_lock_release (&ull); // CHECK: store atomic {{.*}} release, align 8 } void test_atomic(void) { ui = __atomic_fetch_min(&ui, 5, __ATOMIC_RELAXED); // CHECK: atomicrmw umin {{.*}} monotonic si = __atomic_fetch_min(&si, 5, __ATOMIC_SEQ_CST); // CHECK: atomicrmw min {{.*}} seq_cst ui = __atomic_fetch_max(&ui, 5, __ATOMIC_ACQUIRE); // CHECK: atomicrmw umax {{.*}} acquire si = __atomic_fetch_max(&si, 5, __ATOMIC_RELEASE); // CHECK: atomicrmw max {{.*}} release }
{ "pile_set_name": "Github" }
use std::collections::HashSet; use super::schema_introspection::*; use crate::{ executor::Variables, introspection::IntrospectionFormat, schema::model::RootNode, tests::fixtures::starwars::{model::Database, schema::Query}, types::scalars::{EmptyMutation, EmptySubscription}, }; #[tokio::test] async fn test_introspection_query_type_name() { let doc = r#" query IntrospectionQueryTypeQuery { __schema { queryType { name } } }"#; let database = Database::new(); let schema = RootNode::new( Query, EmptyMutation::<Database>::new(), EmptySubscription::<Database>::new(), ); assert_eq!( crate::execute(doc, None, &schema, &Variables::new(), &database).await, Ok(( graphql_value!({ "__schema": { "queryType": { "name": "Query" } } }), vec![] )) ); } #[tokio::test] async fn test_introspection_type_name() { let doc = r#" query IntrospectionQueryTypeQuery { __type(name: "Droid") { name } }"#; let database = Database::new(); let schema = RootNode::new( Query, EmptyMutation::<Database>::new(), EmptySubscription::<Database>::new(), ); assert_eq!( crate::execute(doc, None, &schema, &Variables::new(), &database).await, Ok(( graphql_value!({ "__type": { "name": "Droid", }, }), vec![] )) ); } #[tokio::test] async fn test_introspection_specific_object_type_name_and_kind() { let doc = r#" query IntrospectionDroidKindQuery { __type(name: "Droid") { name kind } } "#; let database = Database::new(); let schema = RootNode::new( Query, EmptyMutation::<Database>::new(), EmptySubscription::<Database>::new(), ); assert_eq!( crate::execute(doc, None, &schema, &Variables::new(), &database).await, Ok(( graphql_value!({ "__type": { "name": "Droid", "kind": "OBJECT", } }), vec![], )) ); } #[tokio::test] async fn test_introspection_specific_interface_type_name_and_kind() { let doc = r#" query IntrospectionDroidKindQuery { __type(name: "Character") { name kind } } "#; let database = Database::new(); let schema = RootNode::new( Query, EmptyMutation::<Database>::new(), EmptySubscription::<Database>::new(), ); assert_eq!( crate::execute(doc, None, &schema, &Variables::new(), &database).await, Ok(( graphql_value!({ "__type": { "name": "Character", "kind": "INTERFACE", } }), vec![] )) ); } #[tokio::test] async fn test_introspection_documentation() { let doc = r#" query IntrospectionDroidDescriptionQuery { __type(name: "Droid") { name description } } "#; let database = Database::new(); let schema = RootNode::new( Query, EmptyMutation::<Database>::new(), EmptySubscription::<Database>::new(), ); assert_eq!( crate::execute(doc, None, &schema, &Variables::new(), &database).await, Ok(( graphql_value!({ "__type": { "name": "Droid", "description": "A mechanical creature in the Star Wars universe.", }, }), vec![] )) ); } #[tokio::test] async fn test_introspection_directives() { let q = r#" query IntrospectionQuery { __schema { directives { name locations } } } "#; let database = Database::new(); let schema = RootNode::new( Query, EmptyMutation::<Database>::new(), EmptySubscription::<Database>::new(), ); let mut result = crate::execute(q, None, &schema, &Variables::new(), &database) .await .unwrap(); sort_schema_value(&mut result.0); let mut expected = graphql_value!({ "__schema": { "directives": [ { "name": "include", "locations": [ "FIELD", "FRAGMENT_SPREAD", "INLINE_FRAGMENT", ], }, { "name": "skip", "locations": [ "FIELD", "FRAGMENT_SPREAD", "INLINE_FRAGMENT", ], }, ], }, }); sort_schema_value(&mut expected); assert_eq!(result, (expected, vec![])); } #[tokio::test] async fn test_introspection_possible_types() { let doc = r#" query IntrospectionDroidDescriptionQuery { __type(name: "Character") { possibleTypes { name } } } "#; let database = Database::new(); let schema = RootNode::new( Query, EmptyMutation::<Database>::new(), EmptySubscription::<Database>::new(), ); let result = crate::execute(doc, None, &schema, &Variables::new(), &database).await; let (result, errors) = result.ok().expect("Query returned error"); assert_eq!(errors, vec![]); let possible_types = result .as_object_value() .expect("execution result not an object") .get_field_value("__type") .expect("'__type' not present in result") .as_object_value() .expect("'__type' not an object") .get_field_value("possibleTypes") .expect("'possibleTypes' not present in '__type'") .as_list_value() .expect("'possibleTypes' not a list") .iter() .map(|t| { t.as_object_value() .expect("possible type not an object") .get_field_value("name") .expect("'name' not present in type") .as_scalar_value::<String>() .expect("'name' not a string") as &str }) .collect::<HashSet<_>>(); assert_eq!(possible_types, vec!["Human", "Droid"].into_iter().collect()); } #[tokio::test] async fn test_builtin_introspection_query() { let database = Database::new(); let schema = RootNode::new( Query, EmptyMutation::<Database>::new(), EmptySubscription::<Database>::new(), ); let mut result = crate::introspect(&schema, &database, IntrospectionFormat::default()).unwrap(); sort_schema_value(&mut result.0); let expected = schema_introspection_result(); assert_eq!(result, (expected, vec![])); } #[tokio::test] async fn test_builtin_introspection_query_without_descriptions() { let database = Database::new(); let schema = RootNode::new( Query, EmptyMutation::<Database>::new(), EmptySubscription::<Database>::new(), ); let mut result = crate::introspect(&schema, &database, IntrospectionFormat::WithoutDescriptions).unwrap(); sort_schema_value(&mut result.0); let expected = schema_introspection_result_without_descriptions(); assert_eq!(result, (expected, vec![])); }
{ "pile_set_name": "Github" }
using System; using System.Diagnostics; using System.IO; using System.Linq; using System.Threading; using System.Threading.Tasks; using GitDiffMargin.Git; using Microsoft.VisualStudio; using Microsoft.VisualStudio.Text; namespace GitDiffMargin.Core { public class DiffUpdateBackgroundParser : BackgroundParser { private readonly FileSystemWatcher _watcher; private readonly IGitCommands _commands; private readonly ITextDocument _textDocument; private readonly ITextBuffer _documentBuffer; private readonly string _originalPath; internal DiffUpdateBackgroundParser(ITextBuffer textBuffer, ITextBuffer documentBuffer, string originalPath, TaskScheduler taskScheduler, ITextDocumentFactoryService textDocumentFactoryService, IGitCommands commands) : base(textBuffer, taskScheduler, textDocumentFactoryService) { _documentBuffer = documentBuffer; _commands = commands; ReparseDelay = TimeSpan.FromMilliseconds(500); if (TextDocumentFactoryService.TryGetTextDocument(_documentBuffer, out _textDocument)) { _originalPath = originalPath; if (_commands.IsGitRepository(_textDocument.FilePath, _originalPath)) { _textDocument.FileActionOccurred += OnFileActionOccurred; var repositoryDirectory = _commands.GetGitRepository(_textDocument.FilePath, _originalPath); if (repositoryDirectory != null) { _watcher = new FileSystemWatcher(repositoryDirectory); _watcher.Changed += HandleFileSystemChanged; _watcher.Created += HandleFileSystemChanged; _watcher.Deleted += HandleFileSystemChanged; _watcher.Renamed += HandleFileSystemChanged; _watcher.EnableRaisingEvents = true; } } } } private void HandleFileSystemChanged(object sender, FileSystemEventArgs e) { Action action = () => { try { ProcessFileSystemChange(e); } catch (Exception ex) { if (ErrorHandler.IsCriticalException(ex)) throw; } }; Task.Factory.StartNew(action, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default); } private void ProcessFileSystemChange(FileSystemEventArgs e) { if (e.ChangeType == WatcherChangeTypes.Changed && Directory.Exists(e.FullPath)) return; if (string.Equals(Path.GetExtension(e.Name), ".lock", StringComparison.OrdinalIgnoreCase)) return; MarkDirty(true); } private void OnFileActionOccurred(object sender, TextDocumentFileActionEventArgs e) { if ((e.FileActionType & FileActionTypes.ContentSavedToDisk) != 0) { MarkDirty(true); } } public override string Name { get { return "Git Diff Analyzer"; } } protected override void ReParseImpl() { try { var stopwatch = Stopwatch.StartNew(); var snapshot = TextBuffer.CurrentSnapshot; ITextDocument textDocument; if (!TextDocumentFactoryService.TryGetTextDocument(_documentBuffer, out textDocument)) return; var diff = _commands.GetGitDiffFor(textDocument, _originalPath, snapshot); var result = new DiffParseResultEventArgs(snapshot, stopwatch.Elapsed, diff.ToList()); OnParseComplete(result); } catch (InvalidOperationException) { MarkDirty(true); throw; } } protected override void Dispose(bool disposing) { base.Dispose(disposing); if (disposing) { if (_textDocument != null) { _textDocument.FileActionOccurred -= OnFileActionOccurred; } if (_watcher != null) { _watcher.Dispose(); } } } } }
{ "pile_set_name": "Github" }
//////////////////////////////////////////////////////////////////////////// // Module : debug_text_tree_inline.h // Created : 02.04.2008 // Modified : 03.04.2008 // Author : Lain // Description : Text tree for onscreen debugging //////////////////////////////////////////////////////////////////////////// template <class Type1> void text_tree::add_text(const Type1& a) { strings.push_back(make_xrstr(a)); } template <class Type1, class Type2> void text_tree::add_text(const Type1& a1, const Type2& a2) { add_text(a1); add_text(a2); } template <class Type1> text_tree& text_tree::add_line(const Type1& a1) { text_tree& child = add_line(); child.add_text(a1); return child; } template <class Type1, class Type2> text_tree& text_tree::add_line(const Type1& a1, const Type2& a2) { text_tree& child = add_line(a1); child.add_text(a2); return child; } template <class Type1, class Type2, class Type3> text_tree& text_tree::add_line(const Type1& a1, const Type2& a2, const Type3& a3) { text_tree& child = add_line(a1, a2); child.add_text(a3); return child; } template <class Type1, class Type2, class Type3, class Type4> text_tree& text_tree::add_line(const Type1& a1, const Type2& a2, const Type3& a3, const Type4& a4) { text_tree& child = add_line(a1, a2, a3); child.add_text(a4); return child; } template <class Type1, class Type2, class Type3, class Type4, class Type5> text_tree& text_tree::add_line(const Type1& a1, const Type2& a2, const Type3& a3, const Type4& a4, const Type5& a5) { text_tree& child = add_line(a1, a2, a3, a4); child.add_text(a5); return child; } template <class OutFunc> void text_tree::output(OutFunc func, int indent) { Columns columns; prepare(0, indent, columns); output(0, indent, columns, func); } template <class OutFunc> void text_tree::output(int current_indent, int indent, Columns& columns, OutFunc func) { xr_string buffer; buffer.reserve(1024); buffer.clear(); for (int j = 0; j < current_indent; ++j) { buffer += " "; } Strings::iterator i = strings.begin(); Columns::iterator c = columns.begin(); for (; i != strings.end(); ++i, ++c) { buffer += *i; size_t num_padding_spaces = *c - (*i).size(); num_padding_spaces -= (i == strings.begin()) ? current_indent : 0; if (strings.size() == 1) { num_padding_spaces = 0; } for (size_t j = 0; j < num_padding_spaces; ++j) { buffer += " "; } Strings::iterator next = i; ++next; if (next != strings.end()) { // trailing separator buffer += " "; buffer += separator; buffer += " "; } } buffer += char(0); if (strings.size() && buffer.size()) { func(buffer.data(), num_siblings); } for (Children::iterator i = children.begin(); i != children.end(); ++i) { if ((*i)->shown) { (*i)->output(current_indent + indent, indent, columns, func); } } }
{ "pile_set_name": "Github" }
--- header-id: ckeditor-plugin-reference-guide --- # CKEditor Plugin Reference Guide [TOC levels=1-4] This reference guide provides a list of the default CKEditor plugins bundled with @product@'s AlloyEditor. You can [use these existing CKEditor plugins in your custom AlloyEditor configurations](/docs/7-2/frameworks/-/knowledge_base/f/adding-buttons-to-alloyeditor-toolbars). Each plugin below links to its `plugin.js` file for reference, specifying the plugin's name and buttons if applicable: - [about](https://github.com/ckeditor/ckeditor-dev/tree/master/plugins/about/plugin.js) - [allyhelp](https://github.com/ckeditor/ckeditor-dev/tree/master/plugins/a11yhelp/plugin.js) - [allyhelpbtn](https://github.com/liferay/liferay-portal/tree/7.2.x/modules/apps/frontend-editor/frontend-editor-ckeditor-web/src/main/resources/META-INF/resources/_diffs/plugins/a11yhelpbtn/plugin.js) - [ajaxsave](https://github.com/liferay/liferay-portal/tree/7.2.x/modules/apps/frontend-editor/frontend-editor-ckeditor-web/src/main/resources/META-INF/resources/_diffs/plugins/ajaxsave/plugin.js) - [autocomplete](https://github.com/liferay/liferay-portal/tree/7.2.x/modules/apps/frontend-editor/frontend-editor-ckeditor-web/src/main/resources/META-INF/resources/_diffs/plugins/autocomplete/plugin.js) - [basicstyles](https://github.com/ckeditor/ckeditor-dev/tree/master/plugins/basicstyles/plugin.js) - [bbcode](https://github.com/liferay/liferay-portal/tree/7.2.x/modules/apps/frontend-editor/frontend-editor-ckeditor-web/src/main/resources/META-INF/resources/_diffs/plugins/bbcode/plugin.js) - [bidi](https://github.com/ckeditor/ckeditor-dev/tree/master/plugins/bidi/plugin.js) - [blockquote](https://github.com/ckeditor/ckeditor-dev/tree/master/plugins/blockquote/plugin.js) - [clipboard](https://github.com/ckeditor/ckeditor-dev/tree/master/plugins/clipboard/plugin.js) - [colorbutton](https://github.com/ckeditor/ckeditor-dev/tree/master/plugins/colorbutton/plugin.js) - [colordialog](https://github.com/ckeditor/ckeditor-dev/tree/master/plugins/colordialog/plugin.js) - [contextmenu](https://github.com/ckeditor/ckeditor-dev/blob/master/plugins/contextmenu/plugin.js) - [creole](https://github.com/liferay/liferay-portal/blob/7.2.x/modules/apps/frontend-editor/frontend-editor-ckeditor-web/src/main/resources/META-INF/resources/_diffs/plugins/creole/plugin.js) - [dialogadvtab](https://github.com/ckeditor/ckeditor-dev/blob/master/plugins/dialogadvtab/plugin.js) - [div](https://github.com/ckeditor/ckeditor-dev/blob/master/plugins/div/plugin.js) - [elementspath](https://github.com/ckeditor/ckeditor-dev/blob/master/plugins/elementspath/plugin.js) - [enterkey](https://github.com/ckeditor/ckeditor-dev/blob/master/plugins/enterkey/plugin.js) - [entities](https://github.com/ckeditor/ckeditor-dev/blob/master/plugins/entities/plugin.js) - [filebrowse](https://github.com/ckeditor/ckeditor-dev/blob/master/plugins/filebrowser/plugin.js) - [find](https://github.com/ckeditor/ckeditor-dev/blob/master/plugins/find/plugin.js) - [flash](https://github.com/ckeditor/ckeditor-dev/blob/master/plugins/flash/plugin.js) - [floatingspace](https://github.com/ckeditor/ckeditor-dev/blob/master/plugins/floatingspace/plugin.js) - [font](https://github.com/ckeditor/ckeditor-dev/blob/master/plugins/font/plugin.js) - [format](https://github.com/ckeditor/ckeditor-dev/blob/master/plugins/format/plugin.js) - [forms](https://github.com/ckeditor/ckeditor-dev/blob/master/plugins/forms/plugin.js) - [horizontalrule](https://github.com/ckeditor/ckeditor-dev/blob/master/plugins/horizontalrule/plugin.js) - [htmlwriter](https://github.com/ckeditor/ckeditor-dev/blob/master/plugins/htmlwriter/plugin.js) - [image](https://github.com/ckeditor/ckeditor-dev/blob/master/plugins/image/plugin.js) - [iframe](https://github.com/ckeditor/ckeditor-dev/blob/master/plugins/iframe/plugin.js) - [indent](https://github.com/ckeditor/ckeditor-dev/blob/master/plugins/indent/plugin.js) - [itemselector](https://github.com/liferay/liferay-portal/blob/7.2.x/modules/apps/frontend-editor/frontend-editor-ckeditor-web/src/main/resources/META-INF/resources/_diffs/plugins/itemselector/plugin.js) - [justify](https://github.com/ckeditor/ckeditor-dev/blob/master/plugins/justify/plugin.js) - [link](https://github.com/ckeditor/ckeditor-dev/blob/master/plugins/link/plugin.js) - [list](https://github.com/ckeditor/ckeditor-dev/blob/master/plugins/list/plugin.js) - [liststyle](https://github.com/ckeditor/ckeditor-dev/blob/master/plugins/liststyle/plugin.js) - [lfrpopup](https://github.com/liferay/liferay-portal/blob/7.2.x/modules/apps/frontend-editor/frontend-editor-ckeditor-web/src/main/resources/META-INF/resources/_diffs/plugins/lfrpopup/plugin.js) - [magicline](https://github.com/ckeditor/ckeditor-dev/blob/master/plugins/magicline/plugin.js) - [media](https://github.com/liferay/liferay-portal/blob/7.2.x/modules/apps/frontend-editor/frontend-editor-ckeditor-web/src/main/resources/META-INF/resources/_diffs/plugins/media/plugin.js) - [newpage](https://github.com/ckeditor/ckeditor-dev/blob/master/plugins/newpage/plugin.js) - [pagebreak](https://github.com/ckeditor/ckeditor-dev/blob/master/plugins/pagebreak/plugin.js) - [pastefromword](https://github.com/ckeditor/ckeditor-dev/blob/master/plugins/pastefromword/plugin.js) - [pastetext](https://github.com/ckeditor/ckeditor-dev/blob/master/plugins/pastetext/plugin.js) - [preview](https://github.com/ckeditor/ckeditor-dev/blob/master/plugins/preview/plugin.js) - [removeformat](https://github.com/ckeditor/ckeditor-dev/blob/master/plugins/removeformat/plugin.js) - [resize](https://github.com/ckeditor/ckeditor-dev/blob/master/plugins/resize/plugin.js) - [restore](https://github.com/liferay/liferay-portal/blob/7.2.x/modules/apps/frontend-editor/frontend-editor-ckeditor-web/src/main/resources/META-INF/resources/_diffs/plugins/restore/plugin.js) - [selectall](https://github.com/ckeditor/ckeditor-dev/blob/master/plugins/selectall/plugin.js) - [showblocks](https://github.com/ckeditor/ckeditor-dev/blob/master/plugins/showblocks/plugin.js) - [showborders](https://github.com/ckeditor/ckeditor-dev/blob/master/plugins/showborders/plugin.js) - [smiley](https://github.com/ckeditor/ckeditor-dev/blob/master/plugins/smiley/plugin.js) - [sourcearea](https://github.com/ckeditor/ckeditor-dev/blob/master/plugins/sourcearea/plugin.js) - [specialchar](https://github.com/ckeditor/ckeditor-dev/blob/master/plugins/specialchar/plugin.js) - [stylescombo](https://github.com/ckeditor/ckeditor-dev/blob/master/plugins/stylescombo/plugin.js) - [tab](https://github.com/ckeditor/ckeditor-dev/blob/master/plugins/tab/plugin.js) - [table](https://github.com/ckeditor/ckeditor-dev/blob/master/plugins/table/plugin.js) - [tabletools](https://github.com/ckeditor/ckeditor-dev/blob/master/plugins/tabletools/plugin.js) - [templates](https://github.com/ckeditor/ckeditor-dev/blob/master/plugins/templates/plugin.js) - [toolbar](https://github.com/ckeditor/ckeditor-dev/blob/master/plugins/toolbar/plugin.js) - [undo](https://github.com/ckeditor/ckeditor-dev/blob/master/plugins/undo/plugin.js) - [wikilink](https://github.com/liferay/liferay-portal/blob/7.2.x/modules/apps/frontend-editor/frontend-editor-ckeditor-web/src/main/resources/META-INF/resources/_diffs/plugins/wikilink/plugin.js) - [wysiwygarea](https://github.com/ckeditor/ckeditor-dev/blob/master/plugins/wysiwygarea/plugin.js) | **Note:** The following CKEditor plugins are not available for inline mode in | AlloyEditor at this time, but you can still use them in the classic CKEditor: | | - [maximize](https://github.com/ckeditor/ckeditor-dev/blob/master/plugins/maximize/plugin.js) | - [print](https://github.com/ckeditor/ckeditor-dev/blob/master/plugins/print/plugin.js) | - [save](https://github.com/ckeditor/ckeditor-dev/blob/master/plugins/save/plugin.js) | | To use the Classic CKEditor instead of AlloyEditor, there are a few | properties to set, depending on the portlet. Add the | [properties](https://github.com/liferay/liferay-portal/blob/7.2.x/portal-impl/src/portal.properties#L5432-L5441) | that you need to your `portal-ext.properties` file: | | editor.wysiwyg.default=ckeditor | editor.wysiwyg.portal-impl.portlet.ddm.text_html.ftl=ckeditor | editor.wysiwyg.portal-web.docroot.html.portlet.announcements.edit_entry.jsp=ckeditor | editor.wysiwyg.portal-web.docroot.html.portlet.blogs.edit_entry.jsp=ckeditor | editor.wysiwyg.portal-web.docroot.html.portlet.mail.edit.jsp=ckeditor | editor.wysiwyg.portal-web.docroot.html.portlet.mail.edit_message.jsp=ckeditor | editor.wysiwyg.portal-web.docroot.html.portlet.message_boards.edit_message.html.jsp=ckeditor | editor.wysiwyg.portal-web.docroot.html.taglib.ui.discussion.jsp=ckeditor | editor.wysiwyg.portal-web.docroot.html.taglib.ui.email_notification_settings.jsp=ckeditor
{ "pile_set_name": "Github" }
use super::{InitialMapBuilder, BuilderMap, TileType}; use rltk::RandomNumberGenerator; #[derive(PartialEq, Copy, Clone)] #[allow(dead_code)] pub enum DistanceAlgorithm { Pythagoras, Manhattan, Chebyshev } pub struct VoronoiCellBuilder { n_seeds: usize, distance_algorithm: DistanceAlgorithm } impl InitialMapBuilder for VoronoiCellBuilder { #[allow(dead_code)] fn build_map(&mut self, rng: &mut rltk::RandomNumberGenerator, build_data : &mut BuilderMap) { self.build(rng, build_data); } } impl VoronoiCellBuilder { #[allow(dead_code)] pub fn new() -> Box<VoronoiCellBuilder> { Box::new(VoronoiCellBuilder{ n_seeds: 64, distance_algorithm: DistanceAlgorithm::Pythagoras, }) } #[allow(dead_code)] pub fn pythagoras() -> Box<VoronoiCellBuilder> { Box::new(VoronoiCellBuilder{ n_seeds: 64, distance_algorithm: DistanceAlgorithm::Pythagoras, }) } #[allow(dead_code)] pub fn manhattan() -> Box<VoronoiCellBuilder> { Box::new(VoronoiCellBuilder{ n_seeds: 64, distance_algorithm: DistanceAlgorithm::Manhattan, }) } #[allow(clippy::map_entry)] fn build(&mut self, rng : &mut RandomNumberGenerator, build_data : &mut BuilderMap) { // Make a Voronoi diagram. We'll do this the hard way to learn about the technique! let mut voronoi_seeds : Vec<(usize, rltk::Point)> = Vec::new(); while voronoi_seeds.len() < self.n_seeds { let vx = rng.roll_dice(1, build_data.map.width-1); let vy = rng.roll_dice(1, build_data.map.height-1); let vidx = build_data.map.xy_idx(vx, vy); let candidate = (vidx, rltk::Point::new(vx, vy)); if !voronoi_seeds.contains(&candidate) { voronoi_seeds.push(candidate); } } let mut voronoi_distance = vec![(0, 0.0f32) ; self.n_seeds]; let mut voronoi_membership : Vec<i32> = vec![0 ; build_data.map.width as usize * build_data.map.height as usize]; for (i, vid) in voronoi_membership.iter_mut().enumerate() { let x = i as i32 % build_data.map.width; let y = i as i32 / build_data.map.width; for (seed, pos) in voronoi_seeds.iter().enumerate() { let distance; match self.distance_algorithm { DistanceAlgorithm::Pythagoras => { distance = rltk::DistanceAlg::PythagorasSquared.distance2d( rltk::Point::new(x, y), pos.1 ); } DistanceAlgorithm::Manhattan => { distance = rltk::DistanceAlg::Manhattan.distance2d( rltk::Point::new(x, y), pos.1 ); } DistanceAlgorithm::Chebyshev => { distance = rltk::DistanceAlg::Chebyshev.distance2d( rltk::Point::new(x, y), pos.1 ); } } voronoi_distance[seed] = (seed, distance); } voronoi_distance.sort_by(|a,b| a.1.partial_cmp(&b.1).unwrap()); *vid = voronoi_distance[0].0 as i32; } for y in 1..build_data.map.height-1 { for x in 1..build_data.map.width-1 { let mut neighbors = 0; let my_idx = build_data.map.xy_idx(x, y); let my_seed = voronoi_membership[my_idx]; if voronoi_membership[build_data.map.xy_idx(x-1, y)] != my_seed { neighbors += 1; } if voronoi_membership[build_data.map.xy_idx(x+1, y)] != my_seed { neighbors += 1; } if voronoi_membership[build_data.map.xy_idx(x, y-1)] != my_seed { neighbors += 1; } if voronoi_membership[build_data.map.xy_idx(x, y+1)] != my_seed { neighbors += 1; } if neighbors < 2 { build_data.map.tiles[my_idx] = TileType::Floor; } } build_data.take_snapshot(); } } }
{ "pile_set_name": "Github" }
/* Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ // Code generated by client-gen. DO NOT EDIT. package fake import ( clientset "github.com/rook/rook/pkg/client/clientset/versioned" cassandrav1alpha1 "github.com/rook/rook/pkg/client/clientset/versioned/typed/cassandra.rook.io/v1alpha1" fakecassandrav1alpha1 "github.com/rook/rook/pkg/client/clientset/versioned/typed/cassandra.rook.io/v1alpha1/fake" cephv1 "github.com/rook/rook/pkg/client/clientset/versioned/typed/ceph.rook.io/v1" fakecephv1 "github.com/rook/rook/pkg/client/clientset/versioned/typed/ceph.rook.io/v1/fake" cockroachdbv1alpha1 "github.com/rook/rook/pkg/client/clientset/versioned/typed/cockroachdb.rook.io/v1alpha1" fakecockroachdbv1alpha1 "github.com/rook/rook/pkg/client/clientset/versioned/typed/cockroachdb.rook.io/v1alpha1/fake" edgefsv1 "github.com/rook/rook/pkg/client/clientset/versioned/typed/edgefs.rook.io/v1" fakeedgefsv1 "github.com/rook/rook/pkg/client/clientset/versioned/typed/edgefs.rook.io/v1/fake" nfsv1alpha1 "github.com/rook/rook/pkg/client/clientset/versioned/typed/nfs.rook.io/v1alpha1" fakenfsv1alpha1 "github.com/rook/rook/pkg/client/clientset/versioned/typed/nfs.rook.io/v1alpha1/fake" rookv1 "github.com/rook/rook/pkg/client/clientset/versioned/typed/rook.io/v1" fakerookv1 "github.com/rook/rook/pkg/client/clientset/versioned/typed/rook.io/v1/fake" rookv1alpha2 "github.com/rook/rook/pkg/client/clientset/versioned/typed/rook.io/v1alpha2" fakerookv1alpha2 "github.com/rook/rook/pkg/client/clientset/versioned/typed/rook.io/v1alpha2/fake" yugabytedbv1alpha1 "github.com/rook/rook/pkg/client/clientset/versioned/typed/yugabytedb.rook.io/v1alpha1" fakeyugabytedbv1alpha1 "github.com/rook/rook/pkg/client/clientset/versioned/typed/yugabytedb.rook.io/v1alpha1/fake" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/watch" "k8s.io/client-go/discovery" fakediscovery "k8s.io/client-go/discovery/fake" "k8s.io/client-go/testing" ) // NewSimpleClientset returns a clientset that will respond with the provided objects. // It's backed by a very simple object tracker that processes creates, updates and deletions as-is, // without applying any validations and/or defaults. It shouldn't be considered a replacement // for a real clientset and is mostly useful in simple unit tests. func NewSimpleClientset(objects ...runtime.Object) *Clientset { o := testing.NewObjectTracker(scheme, codecs.UniversalDecoder()) for _, obj := range objects { if err := o.Add(obj); err != nil { panic(err) } } cs := &Clientset{tracker: o} cs.discovery = &fakediscovery.FakeDiscovery{Fake: &cs.Fake} cs.AddReactor("*", "*", testing.ObjectReaction(o)) cs.AddWatchReactor("*", func(action testing.Action) (handled bool, ret watch.Interface, err error) { gvr := action.GetResource() ns := action.GetNamespace() watch, err := o.Watch(gvr, ns) if err != nil { return false, nil, err } return true, watch, nil }) return cs } // Clientset implements clientset.Interface. Meant to be embedded into a // struct to get a default implementation. This makes faking out just the method // you want to test easier. type Clientset struct { testing.Fake discovery *fakediscovery.FakeDiscovery tracker testing.ObjectTracker } func (c *Clientset) Discovery() discovery.DiscoveryInterface { return c.discovery } func (c *Clientset) Tracker() testing.ObjectTracker { return c.tracker } var _ clientset.Interface = &Clientset{} // CassandraV1alpha1 retrieves the CassandraV1alpha1Client func (c *Clientset) CassandraV1alpha1() cassandrav1alpha1.CassandraV1alpha1Interface { return &fakecassandrav1alpha1.FakeCassandraV1alpha1{Fake: &c.Fake} } // CephV1 retrieves the CephV1Client func (c *Clientset) CephV1() cephv1.CephV1Interface { return &fakecephv1.FakeCephV1{Fake: &c.Fake} } // CockroachdbV1alpha1 retrieves the CockroachdbV1alpha1Client func (c *Clientset) CockroachdbV1alpha1() cockroachdbv1alpha1.CockroachdbV1alpha1Interface { return &fakecockroachdbv1alpha1.FakeCockroachdbV1alpha1{Fake: &c.Fake} } // EdgefsV1 retrieves the EdgefsV1Client func (c *Clientset) EdgefsV1() edgefsv1.EdgefsV1Interface { return &fakeedgefsv1.FakeEdgefsV1{Fake: &c.Fake} } // NfsV1alpha1 retrieves the NfsV1alpha1Client func (c *Clientset) NfsV1alpha1() nfsv1alpha1.NfsV1alpha1Interface { return &fakenfsv1alpha1.FakeNfsV1alpha1{Fake: &c.Fake} } // RookV1 retrieves the RookV1Client func (c *Clientset) RookV1() rookv1.RookV1Interface { return &fakerookv1.FakeRookV1{Fake: &c.Fake} } // RookV1alpha2 retrieves the RookV1alpha2Client func (c *Clientset) RookV1alpha2() rookv1alpha2.RookV1alpha2Interface { return &fakerookv1alpha2.FakeRookV1alpha2{Fake: &c.Fake} } // YugabytedbV1alpha1 retrieves the YugabytedbV1alpha1Client func (c *Clientset) YugabytedbV1alpha1() yugabytedbv1alpha1.YugabytedbV1alpha1Interface { return &fakeyugabytedbv1alpha1.FakeYugabytedbV1alpha1{Fake: &c.Fake} }
{ "pile_set_name": "Github" }
from keras.models import Model from keras.layers import Input, Dense, Dropout, Flatten, Conv2D, MaxPooling2D, BatchNormalization from keras.callbacks import ModelCheckpoint, EarlyStopping, TensorBoard from PIL import Image import numpy as np import csv # Create CNN Model print("Creating CNN model...") in = Input((60, 200, 3)) out = in out = Conv2D(filters=32, kernel_size=(3, 3), padding='same', activation='relu')(out) out = Conv2D(filters=32, kernel_size=(3, 3), activation='relu')(out) out = BatchNormalization()(out) out = MaxPooling2D(pool_size=(2, 2))(out) out = Dropout(0.5)(out) out = Conv2D(filters=64, kernel_size=(3, 3), padding='same', activation='relu')(out) out = Conv2D(filters=64, kernel_size=(3, 3), activation='relu')(out) out = BatchNormalization()(out) out = MaxPooling2D(pool_size=(2, 2))(out) out = Dropout(0.5)(out) out = Conv2D(filters=128, kernel_size=(3, 3), padding='same', activation='relu')(out) out = Conv2D(filters=128, kernel_size=(3, 3), activation='relu')(out) out = BatchNormalization()(out) out = MaxPooling2D(pool_size=(2, 2))(out) out = Dropout(0.5)(out) out = Conv2D(filters=256, kernel_size=(3, 3), activation='relu')(out) out = BatchNormalization()(out) out = MaxPooling2D(pool_size=(2, 2))(out) out = Flatten()(out) out = Dropout(0.5)(out) out = Dense(1, name='6digit', activation='sigmoid')(out) model = Model(inputs=in, outputs=out) model.compile(loss='binary_crossentropy', optimizer='adam', metrics=['accuracy']) model.summary() print("Reading training data...") traincsv = open('./data/56_imitate_train_set/len_train.csv', 'r', encoding = 'utf8') train_data = np.stack([np.array(Image.open("./data/56_imitate_train_set/" + row[0] + ".jpg"))/255.0 for row in csv.reader(traincsv)]) traincsv = open('./data/56_imitate_train_set/len_train.csv', 'r', encoding = 'utf8') train_label = np.asarray([1 if row[1] == '6' else 0 for row in csv.reader(traincsv)]) print("Shape of train data:", train_data.shape) print("Reading validation data...") valicsv = open('./data/56_imitate_vali_set/len_vali.csv', 'r', encoding = 'utf8') vali_data = np.stack([np.array(Image.open('./data/56_imitate_vali_set/' + row[0] + ".jpg"))/255.0 for row in csv.reader(valicsv)]) valicsv = open('./data/56_imitate_vali_set/len_vali.csv', 'r', encoding = 'utf8') vali_label = np.asarray([1 if row[1] == '6' else 0 for row in csv.reader(valicsv)]) print("Shape of validation data:", vali_data.shape) filepath="./data/model/imitate_56_model.h5" checkpoint = ModelCheckpoint(filepath, monitor='val_acc', verbose=1, save_best_only=True, mode='max') earlystop = EarlyStopping(monitor='val_acc', patience=10, verbose=1, mode='auto') tensorBoard = TensorBoard(log_dir = "./logs", histogram_freq = 1) callbacks_list = [checkpoint, earlystop, tensorBoard] model.fit(train_data, train_label, batch_size=400, epochs=100, verbose=1, validation_data=(vali_data, vali_label), callbacks=callbacks_list)
{ "pile_set_name": "Github" }
using MediaBrowser.Controller.Dlna; using MediaBrowser.Controller.Drawing; using MediaBrowser.Controller.Entities; using MediaBrowser.Controller.Library; using MediaBrowser.Controller.Session; using Emby.Dlna.Didl; using MediaBrowser.Model.Dlna; using MediaBrowser.Model.Dto; using MediaBrowser.Model.Entities; using MediaBrowser.Model.Logging; using MediaBrowser.Model.Session; using MediaBrowser.Model.System; using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Threading; using System.Threading.Tasks; using MediaBrowser.Common.Configuration; using MediaBrowser.Controller.MediaEncoding; using MediaBrowser.Model.Events; using MediaBrowser.Model.Globalization; using MediaBrowser.Model.Extensions; using System.Net.Http; using MediaBrowser.Model.Services; namespace Emby.Dlna.PlayTo { public class PlayToController : ISessionController, IDisposable { private Device _device; private readonly SessionInfo _session; private readonly ISessionManager _sessionManager; private readonly ILibraryManager _libraryManager; private readonly ILogger _logger; private readonly IDlnaManager _dlnaManager; private readonly IUserManager _userManager; private readonly IImageProcessor _imageProcessor; private readonly IUserDataManager _userDataManager; private readonly ILocalizationManager _localization; private readonly IMediaSourceManager _mediaSourceManager; private readonly IConfigurationManager _config; private readonly IMediaEncoder _mediaEncoder; private readonly IDeviceDiscovery _deviceDiscovery; private readonly string _serverAddress; private readonly string _accessToken; private readonly DateTime _creationTime; public bool IsSessionActive { get { return !_disposed && _device != null; } } public bool SupportsMediaControl { get { return IsSessionActive; } } public PlayToController(SessionInfo session, ISessionManager sessionManager, ILibraryManager libraryManager, ILogger logger, IDlnaManager dlnaManager, IUserManager userManager, IImageProcessor imageProcessor, string serverAddress, string accessToken, IDeviceDiscovery deviceDiscovery, IUserDataManager userDataManager, ILocalizationManager localization, IMediaSourceManager mediaSourceManager, IConfigurationManager config, IMediaEncoder mediaEncoder) { _session = session; _sessionManager = sessionManager; _libraryManager = libraryManager; _dlnaManager = dlnaManager; _userManager = userManager; _imageProcessor = imageProcessor; _serverAddress = serverAddress; _deviceDiscovery = deviceDiscovery; _userDataManager = userDataManager; _localization = localization; _mediaSourceManager = mediaSourceManager; _config = config; _mediaEncoder = mediaEncoder; _accessToken = accessToken; _logger = logger; _creationTime = DateTime.UtcNow; } public void Init(Device device) { _device = device; _device.OnDeviceUnavailable = OnDeviceUnavailable; _device.PlaybackStart += _device_PlaybackStart; _device.PlaybackProgress += _device_PlaybackProgress; _device.PlaybackStopped += _device_PlaybackStopped; _device.MediaChanged += _device_MediaChanged; _device.Start(); _deviceDiscovery.DeviceLeft += _deviceDiscovery_DeviceLeft; } private void OnDeviceUnavailable() { try { _sessionManager.ReportSessionEnded(_session.Id); } catch { // Could throw if the session is already gone } } void _deviceDiscovery_DeviceLeft(object sender, GenericEventArgs<UpnpDeviceInfo> e) { var info = e.Argument; string nts; info.Headers.TryGetValue("NTS", out nts); string usn; if (!info.Headers.TryGetValue("USN", out usn)) usn = String.Empty; string nt; if (!info.Headers.TryGetValue("NT", out nt)) nt = String.Empty; if (usn.IndexOf(_device.Properties.UUID, StringComparison.OrdinalIgnoreCase) != -1 && !_disposed) { if (usn.IndexOf("MediaRenderer:", StringComparison.OrdinalIgnoreCase) != -1 || nt.IndexOf("MediaRenderer:", StringComparison.OrdinalIgnoreCase) != -1) { OnDeviceUnavailable(); } } } async void _device_MediaChanged(object sender, MediaChangedEventArgs e) { if (_disposed) { return; } try { var streamInfo = StreamParams.ParseFromUrl(e.OldMediaInfo.Url, _libraryManager, _mediaSourceManager); if (streamInfo.Item != null) { var positionTicks = GetProgressPositionTicks(e.OldMediaInfo, streamInfo); ReportPlaybackStopped(e.OldMediaInfo, streamInfo, positionTicks); } streamInfo = StreamParams.ParseFromUrl(e.NewMediaInfo.Url, _libraryManager, _mediaSourceManager); if (streamInfo.Item == null) return; var newItemProgress = GetProgressInfo(e.NewMediaInfo, streamInfo); await _sessionManager.OnPlaybackStart(newItemProgress).ConfigureAwait(false); } catch (Exception ex) { _logger.ErrorException("Error reporting progress", ex); } } async void _device_PlaybackStopped(object sender, PlaybackStoppedEventArgs e) { if (_disposed) { return; } try { var streamInfo = StreamParams.ParseFromUrl(e.MediaInfo.Url, _libraryManager, _mediaSourceManager); if (streamInfo.Item == null) return; var positionTicks = GetProgressPositionTicks(e.MediaInfo, streamInfo); ReportPlaybackStopped(e.MediaInfo, streamInfo, positionTicks); var mediaSource = await streamInfo.GetMediaSource(CancellationToken.None).ConfigureAwait(false); var duration = mediaSource == null ? (_device.Duration == null ? (long?)null : _device.Duration.Value.Ticks) : mediaSource.RunTimeTicks; var playedToCompletion = (positionTicks.HasValue && positionTicks.Value == 0); if (!playedToCompletion && duration.HasValue && positionTicks.HasValue) { double percent = positionTicks.Value; percent /= duration.Value; playedToCompletion = Math.Abs(1 - percent) <= .1; } if (playedToCompletion) { await SetPlaylistIndex(_currentPlaylistIndex + 1).ConfigureAwait(false); } else { Playlist.Clear(); } } catch (Exception ex) { _logger.ErrorException("Error reporting playback stopped", ex); } } private async void ReportPlaybackStopped(uBaseObject mediaInfo, StreamParams streamInfo, long? positionTicks) { try { await _sessionManager.OnPlaybackStopped(new PlaybackStopInfo { ItemId = streamInfo.ItemId, SessionId = _session.Id, PositionTicks = positionTicks, MediaSourceId = streamInfo.MediaSourceId }).ConfigureAwait(false); } catch (Exception ex) { _logger.ErrorException("Error reporting progress", ex); } } async void _device_PlaybackStart(object sender, PlaybackStartEventArgs e) { if (_disposed) { return; } try { var info = StreamParams.ParseFromUrl(e.MediaInfo.Url, _libraryManager, _mediaSourceManager); if (info.Item != null) { var progress = GetProgressInfo(e.MediaInfo, info); await _sessionManager.OnPlaybackStart(progress).ConfigureAwait(false); } } catch (Exception ex) { _logger.ErrorException("Error reporting progress", ex); } } async void _device_PlaybackProgress(object sender, PlaybackProgressEventArgs e) { if (_disposed) { return; } try { var mediaUrl = e.MediaInfo.Url; if (string.IsNullOrWhiteSpace(mediaUrl)) { return; } var info = StreamParams.ParseFromUrl(mediaUrl, _libraryManager, _mediaSourceManager); if (info.Item != null) { var progress = GetProgressInfo(e.MediaInfo, info); await _sessionManager.OnPlaybackProgress(progress).ConfigureAwait(false); } } catch (Exception ex) { _logger.ErrorException("Error reporting progress", ex); } } private long? GetProgressPositionTicks(uBaseObject mediaInfo, StreamParams info) { var ticks = _device.Position.Ticks; if (!EnableClientSideSeek(info)) { ticks += info.StartPositionTicks; } return ticks; } private PlaybackStartInfo GetProgressInfo(uBaseObject mediaInfo, StreamParams info) { return new PlaybackStartInfo { ItemId = info.ItemId, SessionId = _session.Id, PositionTicks = GetProgressPositionTicks(mediaInfo, info), IsMuted = _device.IsMuted, IsPaused = _device.IsPaused, MediaSourceId = info.MediaSourceId, AudioStreamIndex = info.AudioStreamIndex, SubtitleStreamIndex = info.SubtitleStreamIndex, VolumeLevel = _device.Volume, // TODO CanSeek = true, PlayMethod = info.IsDirectStream ? PlayMethod.DirectStream : PlayMethod.Transcode }; } #region SendCommands public async Task SendPlayCommand(PlayRequest command, CancellationToken cancellationToken) { _logger.Debug("{0} - Received PlayRequest: {1}", this._session.DeviceName, command.PlayCommand); var user = command.ControllingUserId.Equals(Guid.Empty) ? null : _userManager.GetUserById(command.ControllingUserId); var items = new List<BaseItem>(); foreach (var id in command.ItemIds) { AddItemFromId(id, items); } var startIndex = command.StartIndex ?? 0; if (startIndex > 0) { items = items.Skip(startIndex).ToList(); } var playlist = new List<PlaylistItem>(); var isFirst = true; foreach (var item in items) { if (isFirst && command.StartPositionTicks.HasValue) { playlist.Add(CreatePlaylistItem(item, user, command.StartPositionTicks.Value, command.MediaSourceId, command.AudioStreamIndex, command.SubtitleStreamIndex)); isFirst = false; } else { playlist.Add(CreatePlaylistItem(item, user, 0, null, null, null)); } } _logger.Debug("{0} - Playlist created", _session.DeviceName); if (command.PlayCommand == PlayCommand.PlayLast) { Playlist.AddRange(playlist); } if (command.PlayCommand == PlayCommand.PlayNext) { Playlist.AddRange(playlist); } if (!command.ControllingUserId.Equals(Guid.Empty)) { _sessionManager.LogSessionActivity(_session.Client, _session.ApplicationVersion, _session.DeviceId, _session.DeviceName, _session.RemoteEndPoint, user); } await PlayItems(playlist).ConfigureAwait(false); } private Task SendPlaystateCommand(PlaystateRequest command, CancellationToken cancellationToken) { switch (command.Command) { case PlaystateCommand.Stop: Playlist.Clear(); return _device.SetStop(CancellationToken.None); case PlaystateCommand.Pause: return _device.SetPause(CancellationToken.None); case PlaystateCommand.Unpause: return _device.SetPlay(CancellationToken.None); case PlaystateCommand.PlayPause: return _device.IsPaused ? _device.SetPlay(CancellationToken.None) : _device.SetPause(CancellationToken.None); case PlaystateCommand.Seek: { return Seek(command.SeekPositionTicks ?? 0); } case PlaystateCommand.NextTrack: return SetPlaylistIndex(_currentPlaylistIndex + 1); case PlaystateCommand.PreviousTrack: return SetPlaylistIndex(_currentPlaylistIndex - 1); } return Task.CompletedTask; } private async Task Seek(long newPosition) { var media = _device.CurrentMediaInfo; if (media != null) { var info = StreamParams.ParseFromUrl(media.Url, _libraryManager, _mediaSourceManager); if (info.Item != null && !EnableClientSideSeek(info)) { var user = !_session.UserId.Equals(Guid.Empty) ? _userManager.GetUserById(_session.UserId) : null; var newItem = CreatePlaylistItem(info.Item, user, newPosition, info.MediaSourceId, info.AudioStreamIndex, info.SubtitleStreamIndex); await _device.SetAvTransport(newItem.StreamUrl, GetDlnaHeaders(newItem), newItem.Didl, CancellationToken.None).ConfigureAwait(false); return; } await SeekAfterTransportChange(newPosition, CancellationToken.None).ConfigureAwait(false); } } private bool EnableClientSideSeek(StreamParams info) { return info.IsDirectStream; } private bool EnableClientSideSeek(StreamInfo info) { return info.IsDirectStream; } #endregion #region Playlist private int _currentPlaylistIndex; private readonly List<PlaylistItem> _playlist = new List<PlaylistItem>(); private List<PlaylistItem> Playlist { get { return _playlist; } } private void AddItemFromId(Guid id, List<BaseItem> list) { var item = _libraryManager.GetItemById(id); if (item.MediaType == MediaType.Audio || item.MediaType == MediaType.Video) { list.Add(item); } } private PlaylistItem CreatePlaylistItem(BaseItem item, User user, long startPostionTicks, string mediaSourceId, int? audioStreamIndex, int? subtitleStreamIndex) { var deviceInfo = _device.Properties; var profile = _dlnaManager.GetProfile(deviceInfo.ToDeviceIdentification()) ?? _dlnaManager.GetDefaultProfile(); var hasMediaSources = item as IHasMediaSources; var mediaSources = hasMediaSources != null ? (_mediaSourceManager.GetStaticMediaSources(item, true, user)) : new List<MediaSourceInfo>(); var playlistItem = GetPlaylistItem(item, mediaSources, profile, _session.DeviceId, mediaSourceId, audioStreamIndex, subtitleStreamIndex); playlistItem.StreamInfo.StartPositionTicks = startPostionTicks; playlistItem.StreamUrl = DidlBuilder.NormalizeDlnaMediaUrl(playlistItem.StreamInfo.ToUrl(_serverAddress, _accessToken)); var itemXml = new DidlBuilder(profile, user, _imageProcessor, _serverAddress, _accessToken, _userDataManager, _localization, _mediaSourceManager, _logger, _libraryManager, _mediaEncoder) .GetItemDidl(_config.GetDlnaConfiguration(), item, user, null, _session.DeviceId, new Filter(), playlistItem.StreamInfo); playlistItem.Didl = itemXml; return playlistItem; } private string GetDlnaHeaders(PlaylistItem item) { var profile = item.Profile; var streamInfo = item.StreamInfo; if (streamInfo.MediaType == DlnaProfileType.Audio) { return new ContentFeatureBuilder(profile) .BuildAudioHeader(streamInfo.Container, streamInfo.TargetAudioCodec.FirstOrDefault(), streamInfo.TargetAudioBitrate, streamInfo.TargetAudioSampleRate, streamInfo.TargetAudioChannels, streamInfo.TargetAudioBitDepth, streamInfo.IsDirectStream, streamInfo.RunTimeTicks ?? 0, streamInfo.TranscodeSeekInfo); } if (streamInfo.MediaType == DlnaProfileType.Video) { var list = new ContentFeatureBuilder(profile) .BuildVideoHeader(streamInfo.Container, streamInfo.TargetVideoCodec.FirstOrDefault(), streamInfo.TargetAudioCodec.FirstOrDefault(), streamInfo.TargetWidth, streamInfo.TargetHeight, streamInfo.TargetVideoBitDepth, streamInfo.TargetVideoBitrate, streamInfo.TargetTimestamp, streamInfo.IsDirectStream, streamInfo.RunTimeTicks ?? 0, streamInfo.TargetVideoProfile, streamInfo.TargetVideoLevel, streamInfo.TargetFramerate ?? 0, streamInfo.TargetPacketLength, streamInfo.TranscodeSeekInfo, streamInfo.IsTargetAnamorphic, streamInfo.IsTargetInterlaced, streamInfo.TargetRefFrames, streamInfo.TargetVideoStreamCount, streamInfo.TargetAudioStreamCount, streamInfo.TargetVideoCodecTag, streamInfo.IsTargetAVC); return list.Count == 0 ? null : list[0]; } return null; } private ILogger GetStreamBuilderLogger() { if (_config.GetDlnaConfiguration().EnableDebugLog) { return _logger; } return new NullLogger(); } private PlaylistItem GetPlaylistItem(BaseItem item, List<MediaSourceInfo> mediaSources, DeviceProfile profile, string deviceId, string mediaSourceId, int? audioStreamIndex, int? subtitleStreamIndex) { if (string.Equals(item.MediaType, MediaType.Video, StringComparison.OrdinalIgnoreCase)) { return new PlaylistItem { StreamInfo = new StreamBuilder(_mediaEncoder, GetStreamBuilderLogger()).BuildVideoItem(new VideoOptions { ItemId = item.Id, MediaSources = mediaSources.ToArray(), Profile = profile, DeviceId = deviceId, MaxBitrate = profile.MaxStreamingBitrate, MediaSourceId = mediaSourceId, AudioStreamIndex = audioStreamIndex, SubtitleStreamIndex = subtitleStreamIndex }), Profile = profile }; } if (string.Equals(item.MediaType, MediaType.Audio, StringComparison.OrdinalIgnoreCase)) { return new PlaylistItem { StreamInfo = new StreamBuilder(_mediaEncoder, GetStreamBuilderLogger()).BuildAudioItem(new AudioOptions { ItemId = item.Id, MediaSources = mediaSources.ToArray(mediaSources.Count), Profile = profile, DeviceId = deviceId, MaxBitrate = profile.MaxStreamingBitrate, MediaSourceId = mediaSourceId }), Profile = profile }; } if (string.Equals(item.MediaType, MediaType.Photo, StringComparison.OrdinalIgnoreCase)) { return new PlaylistItemFactory().Create((Photo)item, profile); } throw new ArgumentException("Unrecognized item type."); } /// <summary> /// Plays the items. /// </summary> /// <param name="items">The items.</param> /// <returns></returns> private async Task<bool> PlayItems(IEnumerable<PlaylistItem> items) { Playlist.Clear(); Playlist.AddRange(items); _logger.Debug("{0} - Playing {1} items", _session.DeviceName, Playlist.Count); await SetPlaylistIndex(0).ConfigureAwait(false); return true; } private async Task SetPlaylistIndex(int index) { if (index < 0 || index >= Playlist.Count) { Playlist.Clear(); await _device.SetStop(CancellationToken.None); return; } _currentPlaylistIndex = index; var currentitem = Playlist[index]; await _device.SetAvTransport(currentitem.StreamUrl, GetDlnaHeaders(currentitem), currentitem.Didl, CancellationToken.None); var streamInfo = currentitem.StreamInfo; if (streamInfo.StartPositionTicks > 0 && EnableClientSideSeek(streamInfo)) { await SeekAfterTransportChange(streamInfo.StartPositionTicks, CancellationToken.None).ConfigureAwait(false); } } #endregion private bool _disposed; public void Dispose() { if (!_disposed) { _disposed = true; _device.PlaybackStart -= _device_PlaybackStart; _device.PlaybackProgress -= _device_PlaybackProgress; _device.PlaybackStopped -= _device_PlaybackStopped; _device.MediaChanged -= _device_MediaChanged; //_deviceDiscovery.DeviceLeft -= _deviceDiscovery_DeviceLeft; _device.OnDeviceUnavailable = null; _device.Dispose(); } } private readonly CultureInfo _usCulture = new CultureInfo("en-US"); private Task SendGeneralCommand(GeneralCommand command, CancellationToken cancellationToken) { GeneralCommandType commandType; if (Enum.TryParse(command.Name, true, out commandType)) { switch (commandType) { case GeneralCommandType.VolumeDown: return _device.VolumeDown(cancellationToken); case GeneralCommandType.VolumeUp: return _device.VolumeUp(cancellationToken); case GeneralCommandType.Mute: return _device.Mute(cancellationToken); case GeneralCommandType.Unmute: return _device.Unmute(cancellationToken); case GeneralCommandType.ToggleMute: return _device.ToggleMute(cancellationToken); case GeneralCommandType.SetAudioStreamIndex: { string arg; if (command.Arguments.TryGetValue("Index", out arg)) { int val; if (int.TryParse(arg, NumberStyles.Integer, _usCulture, out val)) { return SetAudioStreamIndex(val); } throw new ArgumentException("Unsupported SetAudioStreamIndex value supplied."); } throw new ArgumentException("SetAudioStreamIndex argument cannot be null"); } case GeneralCommandType.SetSubtitleStreamIndex: { string arg; if (command.Arguments.TryGetValue("Index", out arg)) { int val; if (int.TryParse(arg, NumberStyles.Integer, _usCulture, out val)) { return SetSubtitleStreamIndex(val); } throw new ArgumentException("Unsupported SetSubtitleStreamIndex value supplied."); } throw new ArgumentException("SetSubtitleStreamIndex argument cannot be null"); } case GeneralCommandType.SetVolume: { string arg; if (command.Arguments.TryGetValue("Volume", out arg)) { int volume; if (int.TryParse(arg, NumberStyles.Integer, _usCulture, out volume)) { return _device.SetVolume(volume, cancellationToken); } throw new ArgumentException("Unsupported volume value supplied."); } throw new ArgumentException("Volume argument cannot be null"); } default: return Task.CompletedTask; } } return Task.CompletedTask; } private async Task SetAudioStreamIndex(int? newIndex) { var media = _device.CurrentMediaInfo; if (media != null) { var info = StreamParams.ParseFromUrl(media.Url, _libraryManager, _mediaSourceManager); if (info.Item != null) { var newPosition = GetProgressPositionTicks(media, info) ?? 0; var user = !_session.UserId.Equals(Guid.Empty) ? _userManager.GetUserById(_session.UserId) : null; var newItem = CreatePlaylistItem(info.Item, user, newPosition, info.MediaSourceId, newIndex, info.SubtitleStreamIndex); await _device.SetAvTransport(newItem.StreamUrl, GetDlnaHeaders(newItem), newItem.Didl, CancellationToken.None).ConfigureAwait(false); if (EnableClientSideSeek(newItem.StreamInfo)) { await SeekAfterTransportChange(newPosition, CancellationToken.None).ConfigureAwait(false); } } } } private async Task SetSubtitleStreamIndex(int? newIndex) { var media = _device.CurrentMediaInfo; if (media != null) { var info = StreamParams.ParseFromUrl(media.Url, _libraryManager, _mediaSourceManager); if (info.Item != null) { var newPosition = GetProgressPositionTicks(media, info) ?? 0; var user = !_session.UserId.Equals(Guid.Empty) ? _userManager.GetUserById(_session.UserId) : null; var newItem = CreatePlaylistItem(info.Item, user, newPosition, info.MediaSourceId, info.AudioStreamIndex, newIndex); await _device.SetAvTransport(newItem.StreamUrl, GetDlnaHeaders(newItem), newItem.Didl, CancellationToken.None).ConfigureAwait(false); if (EnableClientSideSeek(newItem.StreamInfo) && newPosition > 0) { await SeekAfterTransportChange(newPosition, CancellationToken.None).ConfigureAwait(false); } } } } private async Task SeekAfterTransportChange(long positionTicks, CancellationToken cancellationToken) { const int maxWait = 15000000; const int interval = 500; var currentWait = 0; while (_device.TransportState != TRANSPORTSTATE.PLAYING && currentWait < maxWait) { await Task.Delay(interval).ConfigureAwait(false); currentWait += interval; } await _device.Seek(TimeSpan.FromTicks(positionTicks), cancellationToken).ConfigureAwait(false); } private class StreamParams { public Guid ItemId { get; set; } public bool IsDirectStream { get; set; } public long StartPositionTicks { get; set; } public int? AudioStreamIndex { get; set; } public int? SubtitleStreamIndex { get; set; } public string DeviceProfileId { get; set; } public string DeviceId { get; set; } public string MediaSourceId { get; set; } public string LiveStreamId { get; set; } public BaseItem Item { get; set; } private MediaSourceInfo MediaSource; private IMediaSourceManager _mediaSourceManager; public async Task<MediaSourceInfo> GetMediaSource(CancellationToken cancellationToken) { if (MediaSource != null) { return MediaSource; } var hasMediaSources = Item as IHasMediaSources; if (hasMediaSources == null) { return null; } MediaSource = await _mediaSourceManager.GetMediaSource(Item, MediaSourceId, LiveStreamId, false, cancellationToken).ConfigureAwait(false); return MediaSource; } private static Guid GetItemId(string url) { if (string.IsNullOrEmpty(url)) { throw new ArgumentNullException("url"); } var parts = url.Split('/'); for (var i = 0; i < parts.Length; i++) { var part = parts[i]; if (string.Equals(part, "audio", StringComparison.OrdinalIgnoreCase) || string.Equals(part, "videos", StringComparison.OrdinalIgnoreCase)) { if (parts.Length > i + 1) { return Guid.Parse(parts[i + 1]); } } } return Guid.Empty; } public static StreamParams ParseFromUrl(string url, ILibraryManager libraryManager, IMediaSourceManager mediaSourceManager) { if (string.IsNullOrEmpty(url)) { throw new ArgumentNullException("url"); } var request = new StreamParams { ItemId = GetItemId(url) }; if (request.ItemId.Equals(Guid.Empty)) { return request; } var index = url.IndexOf('?'); if (index == -1) return request; var query = url.Substring(index + 1); QueryParamCollection values = MyHttpUtility.ParseQueryString(query); request.DeviceProfileId = values.Get("DeviceProfileId"); request.DeviceId = values.Get("DeviceId"); request.MediaSourceId = values.Get("MediaSourceId"); request.LiveStreamId = values.Get("LiveStreamId"); request.IsDirectStream = string.Equals("true", values.Get("Static"), StringComparison.OrdinalIgnoreCase); request.AudioStreamIndex = GetIntValue(values, "AudioStreamIndex"); request.SubtitleStreamIndex = GetIntValue(values, "SubtitleStreamIndex"); request.StartPositionTicks = GetLongValue(values, "StartPositionTicks"); request.Item = libraryManager.GetItemById(request.ItemId); request._mediaSourceManager = mediaSourceManager; return request; } } private static int? GetIntValue(QueryParamCollection values, string name) { var value = values.Get(name); int result; if (int.TryParse(value, NumberStyles.Integer, CultureInfo.InvariantCulture, out result)) { return result; } return null; } private static long GetLongValue(QueryParamCollection values, string name) { var value = values.Get(name); long result; if (long.TryParse(value, NumberStyles.Integer, CultureInfo.InvariantCulture, out result)) { return result; } return 0; } public Task SendMessage<T>(string name, string messageId, T data, ISessionController[] allControllers, CancellationToken cancellationToken) { if (_disposed) { throw new ObjectDisposedException(GetType().Name); } if (_device == null) { return Task.CompletedTask; } if (string.Equals(name, "Play", StringComparison.OrdinalIgnoreCase)) { return SendPlayCommand(data as PlayRequest, cancellationToken); } if (string.Equals(name, "PlayState", StringComparison.OrdinalIgnoreCase)) { return SendPlaystateCommand(data as PlaystateRequest, cancellationToken); } if (string.Equals(name, "GeneralCommand", StringComparison.OrdinalIgnoreCase)) { return SendGeneralCommand(data as GeneralCommand, cancellationToken); } // Not supported or needed right now return Task.CompletedTask; } } }
{ "pile_set_name": "Github" }
<!-- 128 LRI / RLI --> &#x2066;&#x2067;&#x2066;&#x2067;&#x2066;&#x2067;&#x2066;&#x2067; &#x2066;&#x2067;&#x2066;&#x2067;&#x2066;&#x2067;&#x2066;&#x2067; &#x2066;&#x2067;&#x2066;&#x2067;&#x2066;&#x2067;&#x2066;&#x2067; &#x2066;&#x2067;&#x2066;&#x2067;&#x2066;&#x2067;&#x2066;&#x2067; &#x2066;&#x2067;&#x2066;&#x2067;&#x2066;&#x2067;&#x2066;&#x2067; &#x2066;&#x2067;&#x2066;&#x2067;&#x2066;&#x2067;&#x2066;&#x2067; &#x2066;&#x2067;&#x2066;&#x2067;&#x2066;&#x2067;&#x2066;&#x2067; &#x2066;&#x2067;&#x2066;&#x2067;&#x2066;&#x2067;&#x2066;&#x2067; &#x2066;&#x2067;&#x2066;&#x2067;&#x2066;&#x2067;&#x2066;&#x2067; &#x2066;&#x2067;&#x2066;&#x2067;&#x2066;&#x2067;&#x2066;&#x2067; &#x2066;&#x2067;&#x2066;&#x2067;&#x2066;&#x2067;&#x2066;&#x2067; &#x2066;&#x2067;&#x2066;&#x2067;&#x2066;&#x2067;&#x2066;&#x2067; &#x2066;&#x2067;&#x2066;&#x2067;&#x2066;&#x2067;&#x2066;&#x2067; &#x2066;&#x2067;&#x2066;&#x2067;&#x2066;&#x2067;&#x2066;&#x2067; &#x2066;&#x2067;&#x2066;&#x2067;&#x2066;&#x2067;&#x2066;&#x2067; &#x2066;&#x2067;&#x2066;&#x2067;&#x2066;&#x2067;&#x2066;&#x2067; <!-- 64 PDI --> &#x2069;&#x2069;&#x2069;&#x2069;&#x2069;&#x2069;&#x2069;&#x2069; &#x2069;&#x2069;&#x2069;&#x2069;&#x2069;&#x2069;&#x2069;&#x2069; &#x2069;&#x2069;&#x2069;&#x2069;&#x2069;&#x2069;&#x2069;&#x2069; &#x2069;&#x2069;&#x2069;&#x2069;&#x2069;&#x2069;&#x2069;&#x2069; &#x2069;&#x2069;&#x2069;&#x2069;&#x2069;&#x2069;&#x2069;&#x2069; &#x2069;&#x2069;&#x2069;&#x2069;&#x2069;&#x2069;&#x2069;&#x2069; &#x2069;&#x2069;&#x2069;&#x2069;&#x2069;&#x2069;&#x2069;&#x2069; &#x2069;&#x2069;&#x2069;&#x2069;&#x2069;&#x2069;&#x2069;&#x2069; <!-- 64 LRI / RLI --> &#x2066;&#x2067;&#x2066;&#x2067;&#x2066;&#x2067;&#x2066;&#x2067; &#x2066;&#x2067;&#x2066;&#x2067;&#x2066;&#x2067;&#x2066;&#x2067; &#x2066;&#x2067;&#x2066;&#x2067;&#x2066;&#x2067;&#x2066;&#x2067; &#x2066;&#x2067;&#x2066;&#x2067;&#x2066;&#x2067;&#x2066;&#x2067; &#x2066;&#x2067;&#x2066;&#x2067;&#x2066;&#x2067;&#x2066;&#x2067; &#x2066;&#x2067;&#x2066;&#x2067;&#x2066;&#x2067;&#x2066;&#x2067; &#x2066;&#x2067;&#x2066;&#x2067;&#x2066;&#x2067;&#x2066;&#x2067; &#x2066;&#x2067;&#x2066;&#x2067;&#x2066;&#x2067;&#x2066;&#x2067;
{ "pile_set_name": "Github" }
--TEST-- Test get_html_translation_table() function : basic functionality - XML 1.0 --FILE-- <?php echo "*** Testing get_html_translation_table() : basic functionality/XML 1.0 ***\n"; echo "-- with table = HTML_ENTITIES, ENT_QUOTES --\n"; $table = HTML_ENTITIES; $tt = get_html_translation_table($table, ENT_QUOTES | ENT_XML1, "UTF-8"); asort( $tt ); var_dump( count($tt) ); print_r( $tt ); echo "-- with table = HTML_ENTITIES, ENT_COMPAT --\n"; $table = HTML_ENTITIES; $tt = get_html_translation_table($table, ENT_COMPAT | ENT_XML1, "UTF-8"); var_dump( count($tt) ); echo "-- with table = HTML_ENTITIES, ENT_NOQUOTES --\n"; $table = HTML_ENTITIES; $tt = get_html_translation_table($table, ENT_NOQUOTES | ENT_XML1, "UTF-8"); var_dump( count($tt) ); echo "-- with table = HTML_SPECIALCHARS, ENT_COMPAT --\n"; $table = HTML_SPECIALCHARS; $tt = get_html_translation_table($table, ENT_COMPAT, "UTF-8"); asort( $tt ); var_dump( count($tt) ); print_r( $tt ); echo "-- with table = HTML_SPECIALCHARS, ENT_QUOTES --\n"; $table = HTML_SPECIALCHARS; $tt = get_html_translation_table($table, ENT_QUOTES | ENT_XML1, "UTF-8"); asort( $tt ); var_dump( $tt ); echo "-- with table = HTML_SPECIALCHARS, ENT_NOQUOTES --\n"; $table = HTML_SPECIALCHARS; $tt = get_html_translation_table($table, ENT_NOQUOTES | ENT_XML1, "UTF-8"); asort( $tt ); var_dump( $tt ); echo "Done\n"; ?> --EXPECT-- *** Testing get_html_translation_table() : basic functionality/XML 1.0 *** -- with table = HTML_ENTITIES, ENT_QUOTES -- int(5) Array ( [&] => &amp; ['] => &apos; [>] => &gt; [<] => &lt; ["] => &quot; ) -- with table = HTML_ENTITIES, ENT_COMPAT -- int(4) -- with table = HTML_ENTITIES, ENT_NOQUOTES -- int(3) -- with table = HTML_SPECIALCHARS, ENT_COMPAT -- int(4) Array ( [&] => &amp; [>] => &gt; [<] => &lt; ["] => &quot; ) -- with table = HTML_SPECIALCHARS, ENT_QUOTES -- array(5) { ["&"]=> string(5) "&amp;" ["'"]=> string(6) "&apos;" [">"]=> string(4) "&gt;" ["<"]=> string(4) "&lt;" ["""]=> string(6) "&quot;" } -- with table = HTML_SPECIALCHARS, ENT_NOQUOTES -- array(3) { ["&"]=> string(5) "&amp;" [">"]=> string(4) "&gt;" ["<"]=> string(4) "&lt;" } Done
{ "pile_set_name": "Github" }