text:
from .constant import Constant
__NR_exit = Constant('__NR_exit',1)
__NR_fork = Constant('__NR_fork',2)
__NR_read = Constant('__NR_read',3)
__NR_write = Constant('__NR_write',4)
__NR_open = Constant('__NR_open',5)
__NR_close = Constant('__NR_close',6)
__NR_creat = Constant('__NR_creat',8)
__NR_link = Constant('__NR_link',9)
__NR_unlink = Constant('__NR_unlink',10)
__NR_execve = Constant('__NR_execve',11)
__NR_chdir = Constant('__NR_chdir',12)
__NR_time = Constant('__NR_time',13)
__NR_mknod = Constant('__NR_mknod',14)
__NR_chmod = Constant('__NR_chmod',15)
__NR_lchown = Constant('__NR_lchown',16)
__NR_lseek = Constant('__NR_lseek',19)
__NR_getpid = Constant('__NR_getpid',20)
__NR_mount = Constant('__NR_mount',21)
__NR_umount = Constant('__NR_umount',22)
__NR_setuid = Constant('__NR_setuid',23)
__NR_getuid = Constant('__NR_getuid',24)
__NR_stime = Constant('__NR_stime',25)
__NR_ptrace = Constant('__NR_ptrace',26)
__NR_alarm = Constant('__NR_alarm',27)
__NR_pause = Constant('__NR_pause',29)
__NR_utime = Constant('__NR_utime',30)
__NR_access = Constant('__NR_access',33)
__NR_nice = Constant('__NR_nice',34)
__NR_sync = Constant('__NR_sync',36)
__NR_kill = Constant('__NR_kill',37)
__NR_rename = Constant('__NR_rename',38)
__NR_mkdir = Constant('__NR_mkdir',39)
__NR_rmdir = Constant('__NR_rmdir',40)
__NR_dup = Constant('__NR_dup',41)
__NR_pipe = Constant('__NR_pipe',42)
__NR_times = Constant('__NR_times',43)
__NR_brk = Constant('__NR_brk',45)
__NR_setgid = Constant('__NR_setgid',46)
__NR_getgid = Constant('__NR_getgid',47)
__NR_signal = Constant('__NR_signal',48)
__NR_geteuid = Constant('__NR_geteuid',49)
__NR_getegid = Constant('__NR_getegid',50)
__NR_acct = Constant('__NR_acct',51)
__NR_umount2 = Constant('__NR_umount2',52)
__NR_ioctl = Constant('__NR_ioctl',54)
__NR_fcntl = Constant('__NR_fcntl',55)
__NR_setpgid = Constant('__NR_setpgid',57)
__NR_umask = Constant('__NR_umask',60)
__NR_chroot = Constant('__NR_chroot',61)
__NR_ustat = Constant('__NR_ustat',62)
__NR_dup2 = Constant('__NR_dup2',63)
__NR_getppid = Constant('__NR_getppid',64)
__NR_getpgrp = Constant('__NR_getpgrp',65)
__NR_setsid = Constant('__NR_setsid',66)
__NR_sigaction = Constant('__NR_sigaction',67)
__NR_setreuid = Constant('__NR_setreuid',70)
__NR_setregid = Constant('__NR_setregid',71)
__NR_sigsuspend = Constant('__NR_sigsuspend',72)
__NR_sigpending = Constant('__NR_sigpending',73)
__NR_sethostname = Constant('__NR_sethostname',74)
__NR_setrlimit = Constant('__NR_setrlimit',75)
__NR_getrlimit = Constant('__NR_getrlimit',76)
__NR_getrusage = Constant('__NR_getrusage',77)
__NR_gettimeofday = Constant('__NR_gettimeofday',78)
__NR_settimeofday = Constant('__NR_settimeofday',79)
__NR_getgroups = Constant('__NR_getgroups',80)
__NR_setgroups = Constant('__NR_setgroups',81)
__NR_symlink = Constant('__NR_symlink',83)
__NR_readlink = Constant('__NR_readlink',85)
__NR_uselib = Constant('__NR_uselib',86)
__NR_swapon = Constant('__NR_swapon',87)
__NR_reboot = Constant('__NR_reboot',88)
__NR_readdir = Constant('__NR_readdir',89)
__NR_mmap = Constant('__NR_mmap',90)
__NR_munmap = Constant('__NR_munmap',91)
__NR_truncate = Constant('__NR_truncate',92)
__NR_ftruncate = Constant('__NR_ftruncate',93)
__NR_fchmod = Constant('__NR_fchmod',94)
__NR_fchown = Constant('__NR_fchown',95)
__NR_getpriority = Constant('__NR_getpriority',96)
__NR_setpriority = Constant('__NR_setpriority',97)
__NR_statfs = Constant('__NR_statfs',99)
__NR_fstatfs = Constant('__NR_fstatfs',100)
__NR_ioperm = Constant('__NR_ioperm',101)
__NR_socketcall = Constant('__NR_socketcall',102)
__NR_syslog = Constant('__NR_syslog',103)
__NR_setitimer = Constant('__NR_setitimer',104)
__NR_getitimer = Constant('__NR_getitimer',105)
__NR_stat = Constant('__NR_stat',106)
__NR_lstat = Constant('__NR_lstat',107)
__NR_fstat = Constant('__NR_fstat',108)
__NR_lookup_dcookie = Constant('__NR_lookup_dcookie',110)
__NR_vhangup = Constant('__NR_vhangup',111)
__NR_idle = Constant('__NR_idle',112)
__NR_wait4 = Constant('__NR_wait4',114)
__NR_swapoff = Constant('__NR_swapoff',115)
__NR_sysinfo = Constant('__NR_sysinfo',116)
__NR_ipc = Constant('__NR_ipc',117)
__NR_fsync = Constant('__NR_fsync',118)
__NR_sigreturn = Constant('__NR_sigreturn',119)
__NR_clone = Constant('__NR_clone',120)
__NR_setdomainname = Constant('__NR_setdomainname',121)
__NR_uname = Constant('__NR_uname',122)
__NR_adjtimex = Constant('__NR_adjtimex',124)
__NR_mprotect = Constant('__NR_mprotect',125)
__NR_sigprocmask = Constant('__NR_sigprocmask',126)
__NR_create_module = Constant('__NR_create_module',127)
__NR_init_module = Constant('__NR_init_module',128)
__NR_delete_module = Constant('__NR_delete_module',129)
__NR_get_kernel_syms = Constant('__NR_get_kernel_syms',130)
__NR_quotactl = Constant('__NR_quotactl',131)
__NR_getpgid = Constant('__NR_getpgid',132)
__NR_fchdir = Constant('__NR_fchdir',133)
__NR_bdflush = Constant('__NR_bdflush',134)
__NR_sysfs = Constant('__NR_sysfs',135)
__NR_personality = Constant('__NR_personality',136)
__NR_afs_syscall = Constant('__NR_afs_syscall',137)
__NR_setfsuid = Constant('__NR_setfsuid',138)
__NR_setfsgid = Constant('__NR_setfsgid',139)
__NR__llseek = Constant('__NR__llseek',140)
__NR_getdents = Constant('__NR_getdents',141)
__NR__newselect = Constant('__NR__newselect',142)
__NR_flock = Constant('__NR_flock',143)
__NR_msync = Constant('__NR_msync',144)
__NR_readv = Constant('__NR_readv',145)
__NR_writev = Constant('__NR_writev',146)
__NR_getsid = Constant('__NR_getsid',147)
__NR_fdatasync = Constant('__NR_fdatasync',148)
__NR__sysctl = Constant('__NR__sysctl',149)
__NR_mlock = Constant('__NR_mlock',150)
__NR_munlock = Constant('__NR_munlock',151)
__NR_mlockall = Constant('__NR_mlockall',152)
__NR_munlockall = Constant('__NR_munlockall',153)
__NR_sched_setparam = Constant('__NR_sched_setparam',154)
__NR_sched_getparam = Constant('__NR_sched_getparam',155)
__NR_sched_setscheduler = Constant('__NR_sched_setscheduler',156)
__NR_sched_getscheduler = Constant('__NR_sched_getscheduler',157)
__NR_sched_yield = Constant('__NR_sched_yield',158)
__NR_sched_get_priority_max = Constant('__NR_sched_get_priority_max',159)
__NR_sched_get_priority_min = Constant('__NR_sched_get_priority_min',160)
__NR_sched_rr_get_interval = Constant('__NR_sched_rr_get_interval',161)
__NR_nanosleep = Constant('__NR_nanosleep',162)
__NR_mremap = Constant('__NR_mremap',163)
__NR_setresuid = Constant('__NR_setresuid',164)
__NR_getresuid = Constant('__NR_getresuid',165)
__NR_query_module = Constant('__NR_query_module',167)
__NR_poll = Constant('__NR_poll',168)
__NR_nfsservctl = Constant('__NR_nfsservctl',169)
__NR_setresgid = Constant('__NR_setresgid',170)
__NR_getresgid = Constant('__NR_getresgid',171)
__NR_prctl = Constant('__NR_prctl',172)
__NR_rt_sigreturn = Constant('__NR_rt_sigreturn',173)
__NR_rt_sigaction = Constant('__NR_rt_sigaction',174)
__NR_rt_sigprocmask = Constant('__NR_rt_sigprocmask',175)
__NR_rt_sigpending = Constant('__NR_rt_sigpending',176)
__NR_rt_sigtimedwait = Constant('__NR_rt_sigtimedwait',177)
__NR_rt_sigqueueinfo = Constant('__NR_rt_sigqueueinfo',178)
__NR_rt_sigsuspend = Constant('__NR_rt_sigsuspend',179)
__NR_pread = Constant('__NR_pread',180)
__NR_pwrite = Constant('__NR_pwrite',181)
__NR_chown = Constant('__NR_chown',182)
__NR_getcwd = Constant('__NR_getcwd',183)
__NR_capget = Constant('__NR_capget',184)
__NR_capset = Constant('__NR_capset',185)
__NR_sigaltstack = Constant('__NR_sigaltstack',186)
__NR_sendfile = Constant('__NR_sendfile',187)
__NR_getpmsg = Constant('__NR_getpmsg',188)
__NR_putpmsg = Constant('__NR_putpmsg',189)
__NR_vfork = Constant('__NR_vfork',190)
__NR_ugetrlimit = Constant('__NR_ugetrlimit',191)
__NR_mmap2 = Constant('__NR_mmap2',192)
__NR_truncate64 = Constant('__NR_truncate64',193)
__NR_ftruncate64 = Constant('__NR_ftruncate64',194)
__NR_stat64 = Constant('__NR_stat64',195)
__NR_lstat64 = Constant('__NR_lstat64',196)
__NR_fstat64 = Constant('__NR_fstat64',197)
__NR_lchown32 = Constant('__NR_lchown32',198)
__NR_getuid32 = Constant('__NR_getuid32',199)
__NR_getgid32 = Constant('__NR_getgid32',200)
__NR_geteuid32 = Constant('__NR_geteuid32',201)
__NR_getegid32 = Constant('__NR_getegid32',202)
__NR_setreuid32 = Constant('__NR_setreuid32',203)
__NR_setregid32 = Constant('__NR_setregid32',204)
__NR_getgroups32 = Constant('__NR_getgroups32',205)
__NR_setgroups32 = Constant('__NR_setgroups32',206)
__NR_fchown32 = Constant('__NR_fchown32',207)
__NR_setresuid32 = Constant('__NR_setresuid32',208)
__NR_getresuid32 = Constant('__NR_getresuid32',209)
__NR_setresgid32 = Constant('__NR_setresgid32',210)
__NR_getresgid32 = Constant('__NR_getresgid32',211)
__NR_chown32 = Constant('__NR_chown32',212)
__NR_setuid32 = Constant('__NR_setuid32',213)
__NR_setgid32 = Constant('__NR_setgid32',214)
__NR_setfsuid32 = Constant('__NR_setfsuid32',215)
__NR_setfsgid32 = Constant('__NR_setfsgid32',216)
__NR_pivot_root = Constant('__NR_pivot_root',217)
__NR_mincore = Constant('__NR_mincore',218)
__NR_madvise = Constant('__NR_madvise',219)
__NR_getdents64 = Constant('__NR_getdents64',220)
__NR_fcntl64 = Constant('__NR_fcntl64',221)
__NR_readahead = Constant('__NR_readahead',222)
__NR_sendfile64 = Constant('__NR_sendfile64',223)
__NR_setxattr = Constant('__NR_setxattr',224)
__NR_lsetxattr = Constant('__NR_lsetxattr',225)
__NR_fsetxattr = Constant('__NR_fsetxattr',226)
__NR_getxattr = Constant('__NR_getxattr',227)
__NR_lgetxattr = Constant('__NR_lgetxattr',228)
__NR_fgetxattr = Constant('__NR_fgetxattr',229)
__NR_listxattr = Constant('__NR_listxattr',230)
__NR_llistxattr = Constant('__NR_llistxattr',231)
__NR_flistxattr = Constant('__NR_flistxattr',232)
__NR_removexattr = Constant('__NR_removexattr',233)
__NR_lremovexattr = Constant('__NR_lremovexattr',234)
__NR_fremovexattr = Constant('__NR_fremovexattr',235)
__NR_gettid = Constant('__NR_gettid',236)
__NR_tkill = Constant('__NR_tkill',237)
__NR_futex = Constant('__NR_futex',238)
__NR_sched_setaffinity = Constant('__NR_sched_setaffinity',239)
__NR_sched_getaffinity = Constant('__NR_sched_getaffinity',240)
__NR_tgkill = Constant('__NR_tgkill',241)
__NR_io_setup = Constant('__NR_io_setup',243)
__NR_io_destroy = Constant('__NR_io_destroy',244)
__NR_io_getevents = Constant('__NR_io_getevents',245)
__NR_io_submit = Constant('__NR_io_submit',246)
__NR_io_cancel = Constant('__NR_io_cancel',247)
__NR_exit_group = Constant('__NR_exit_group',248)
__NR_epoll_create = Constant('__NR_epoll_create',249)
__NR_epoll_ctl = Constant('__NR_epoll_ctl',250)
__NR_epoll_wait = Constant('__NR_epoll_wait',251)
__NR_set_tid_address = Constant('__NR_set_tid_address',252)
__NR_fadvise64 = Constant('__NR_fadvise64',253)
__NR_timer_create = Constant('__NR_timer_create',254)
__NR_timer_settime = Constant('__NR_timer_settime',(254+1))
__NR_timer_gettime = Constant('__NR_timer_gettime',(254+2))
__NR_timer_getoverrun = Constant('__NR_timer_getoverrun',(254+3))
__NR_timer_delete = Constant('__NR_timer_delete',(254+4))
__NR_clock_settime = Constant('__NR_clock_settime',(254+5))
__NR_clock_gettime = Constant('__NR_clock_gettime',(254+6))
__NR_clock_getres = Constant('__NR_clock_getres',(254+7))
__NR_clock_nanosleep = Constant('__NR_clock_nanosleep',(254+8))
__NR_fadvise64_64 = Constant('__NR_fadvise64_64',264)
__NR_statfs64 = Constant('__NR_statfs64',265)
__NR_fstatfs64 = Constant('__NR_fstatfs64',266)
__NR_remap_file_pages = Constant('__NR_remap_file_pages',267)
__NR_mq_open = Constant('__NR_mq_open',271)
__NR_mq_unlink = Constant('__NR_mq_unlink',272)
__NR_mq_timedsend = Constant('__NR_mq_timedsend',273)
__NR_mq_timedreceive = Constant('__NR_mq_timedreceive',274)
__NR_mq_notify = Constant('__NR_mq_notify',275)
__NR_mq_getsetattr = Constant('__NR_mq_getsetattr',276)
__NR_kexec_load = Constant('__NR_kexec_load',277)
__NR_add_key = Constant('__NR_add_key',278)
__NR_request_key = Constant('__NR_request_key',279)
__NR_keyctl = Constant('__NR_keyctl',280)
__NR_waitid = Constant('__NR_waitid',281)
__NR_ioprio_set = Constant('__NR_ioprio_set',282)
__NR_ioprio_get = Constant('__NR_ioprio_get',283)
__NR_inotify_init = Constant('__NR_inotify_init',284)
__NR_inotify_add_watch = Constant('__NR_inotify_add_watch',285)
__NR_inotify_rm_watch = Constant('__NR_inotify_rm_watch',286)
__NR_openat = Constant('__NR_openat',288)
__NR_mkdirat = Constant('__NR_mkdirat',289)
__NR_mknodat = Constant('__NR_mknodat',290)
__NR_fchownat = Constant('__NR_fchownat',291)
__NR_futimesat = Constant('__NR_futimesat',292)
__NR_unlinkat = Constant('__NR_unlinkat',294)
__NR_renameat = Constant('__NR_renameat',295)
__NR_linkat = Constant('__NR_linkat',296)
__NR_symlinkat = Constant('__NR_symlinkat',297)
__NR_readlinkat = Constant('__NR_readlinkat',298)
__NR_fchmodat = Constant('__NR_fchmodat',299)
__NR_faccessat = Constant('__NR_faccessat',300)
__NR_pselect6 = Constant('__NR_pselect6',301)
__NR_ppoll = Constant('__NR_ppoll',302)
__NR_unshare = Constant('__NR_unshare',303)
__NR_set_robust_list = Constant('__NR_set_robust_list',304)
__NR_get_robust_list = Constant('__NR_get_robust_list',305)
__NR_splice = Constant('__NR_splice',306)
__NR_sync_file_range = Constant('__NR_sync_file_range',307)
__NR_tee = Constant('__NR_tee',308)
__NR_vmsplice = Constant('__NR_vmsplice',309)
__NR_getcpu = Constant('__NR_getcpu',311)
__NR_epoll_pwait = Constant('__NR_epoll_pwait',312)
__NR_utimes = Constant('__NR_utimes',313)
__NR_fallocate = Constant('__NR_fallocate',314)
__NR_utimensat = Constant('__NR_utimensat',315)
__NR_signalfd = Constant('__NR_signalfd',316)
__NR_timerfd = Constant('__NR_timerfd',317)
__NR_eventfd = Constant('__NR_eventfd',318)
__NR_timerfd_create = Constant('__NR_timerfd_create',319)
__NR_timerfd_settime = Constant('__NR_timerfd_settime',320)
__NR_timerfd_gettime = Constant('__NR_timerfd_gettime',321)
__SYS_NERR = Constant('__SYS_NERR',((129) + 1))
_SYS_TIME_H = Constant('_SYS_TIME_H',1)
SYS_access = Constant('SYS_access',33)
SYS_acct = Constant('SYS_acct',51)
SYS_add_key = Constant('SYS_add_key',278)
SYS_adjtimex = Constant('SYS_adjtimex',124)
SYS_afs_syscall = Constant('SYS_afs_syscall',137)
SYS_alarm = Constant('SYS_alarm',27)
SYS_bdflush = Constant('SYS_bdflush',134)
SYS_brk = Constant('SYS_brk',45)
SYS_capget = Constant('SYS_capget',184)
SYS_capset = Constant('SYS_capset',185)
SYS_chdir = Constant('SYS_chdir',12)
SYS_chmod = Constant('SYS_chmod',15)
SYS_chown = Constant('SYS_chown',182)
SYS_chown32 = Constant('SYS_chown32',212)
SYS_chroot = Constant('SYS_chroot',61)
SYS_clock_getres = Constant('SYS_clock_getres',(254+7))
SYS_clock_gettime = Constant('SYS_clock_gettime',(254+6))
SYS_clock_nanosleep = Constant('SYS_clock_nanosleep',(254+8))
SYS_clock_settime = Constant('SYS_clock_settime',(254+5))
SYS_clone = Constant('SYS_clone',120)
SYS_close = Constant('SYS_close',6)
SYS_creat = Constant('SYS_creat',8)
SYS_create_module = Constant('SYS_create_module',127)
SYS_delete_module = Constant('SYS_delete_module',129)
SYS_dup = Constant('SYS_dup',41)
SYS_dup2 = Constant('SYS_dup2',63)
SYS_epoll_create = Constant('SYS_epoll_create',249)
SYS_epoll_ctl = Constant('SYS_epoll_ctl',250)
SYS_epoll_pwait = Constant('SYS_epoll_pwait',312)
SYS_epoll_wait = Constant('SYS_epoll_wait',251)
SYS_eventfd = Constant('SYS_eventfd',318)
SYS_execve = Constant('SYS_execve',11)
SYS_exit = Constant('SYS_exit',1)
SYS_exit_group = Constant('SYS_exit_group',248)
SYS_faccessat = Constant('SYS_faccessat',300)
SYS_fadvise64 = Constant('SYS_fadvise64',253)
SYS_fadvise64_64 = Constant('SYS_fadvise64_64',264)
SYS_fallocate = Constant('SYS_fallocate',314)
SYS_fchdir = Constant('SYS_fchdir',133)
SYS_fchmod = Constant('SYS_fchmod',94)
SYS_fchmodat = Constant('SYS_fchmodat',299)
SYS_fchown = Constant('SYS_fchown',95)
SYS_fchown32 = Constant('SYS_fchown32',207)
SYS_fchownat = Constant('SYS_fchownat',291)
SYS_fcntl = Constant('SYS_fcntl',55)
SYS_fcntl64 = Constant('SYS_fcntl64',221)
SYS_fdatasync = Constant('SYS_fdatasync',148)
SYS_fgetxattr = Constant('SYS_fgetxattr',229)
SYS_flistxattr = Constant('SYS_flistxattr',232)
SYS_flock = Constant('SYS_flock',143)
SYS_fork = Constant('SYS_fork',2)
SYS_fremovexattr = Constant('SYS_fremovexattr',235)
SYS_fsetxattr = Constant('SYS_fsetxattr',226)
SYS_fstat = Constant('SYS_fstat',108)
SYS_fstat64 = Constant('SYS_fstat64',197)
SYS_fstatfs = Constant('SYS_fstatfs',100)
SYS_fstatfs64 = Constant('SYS_fstatfs64',266)
SYS_fsync = Constant('SYS_fsync',118)
SYS_ftruncate = Constant('SYS_ftruncate',93)
SYS_ftruncate64 = Constant('SYS_ftruncate64',194)
SYS_futex = Constant('SYS_futex',238)
SYS_futimesat = Constant('SYS_futimesat',292)
SYS_getcpu = Constant('SYS_getcpu',311)
SYS_getcwd = Constant('SYS_getcwd',183)
SYS_getdents = Constant('SYS_getdents',141)
SYS_getdents64 = Constant('SYS_getdents64',220)
SYS_getegid = Constant('SYS_getegid',50)
SYS_getegid32 = Constant('SYS_getegid32',202)
SYS_geteuid = Constant('SYS_geteuid',49)
SYS_geteuid32 = Constant('SYS_geteuid32',201)
SYS_getgid = Constant('SYS_getgid',47)
SYS_getgid32 = Constant('SYS_getgid32',200)
SYS_getgroups = Constant('SYS_getgroups',80)
SYS_getgroups32 = Constant('SYS_getgroups32',205)
SYS_getitimer = Constant('SYS_getitimer',105)
SYS_get_kernel_syms = Constant('SYS_get_kernel_syms',130)
SYS_getpgid = Constant('SYS_getpgid',132)
SYS_getpgrp = Constant('SYS_getpgrp',65)
SYS_getpid = Constant('SYS_getpid',20)
SYS_getpmsg = Constant('SYS_getpmsg',188)
SYS_getppid = Constant('SYS_getppid',64)
SYS_getpriority = Constant('SYS_getpriority',96)
SYS_getresgid = Constant('SYS_getresgid',171)
SYS_getresgid32 = Constant('SYS_getresgid32',211)
SYS_getresuid = Constant('SYS_getresuid',165)
SYS_getresuid32 = Constant('SYS_getresuid32',209)
SYS_getrlimit = Constant('SYS_getrlimit',76)
SYS_get_robust_list = Constant('SYS_get_robust_list',305)
SYS_getrusage = Constant('SYS_getrusage',77)
SYS_getsid = Constant('SYS_getsid',147)
SYS_gettid = Constant('SYS_gettid',236)
SYS_gettimeofday = Constant('SYS_gettimeofday',78)
SYS_getuid = Constant('SYS_getuid',24)
SYS_getuid32 = Constant('SYS_getuid32',199)
SYS_getxattr = Constant('SYS_getxattr',227)
SYS_idle = Constant('SYS_idle',112)
SYS_init_module = Constant('SYS_init_module',128)
SYS_inotify_add_watch = Constant('SYS_inotify_add_watch',285)
SYS_inotify_init = Constant('SYS_inotify_init',284)
SYS_inotify_rm_watch = Constant('SYS_inotify_rm_watch',286)
SYS_io_cancel = Constant('SYS_io_cancel',247)
SYS_ioctl = Constant('SYS_ioctl',54)
SYS_io_destroy = Constant('SYS_io_destroy',244)
SYS_io_getevents = Constant('SYS_io_getevents',245)
SYS_ioperm = Constant('SYS_ioperm',101)
SYS_ioprio_get = Constant('SYS_ioprio_get',283)
SYS_ioprio_set = Constant('SYS_ioprio_set',282)
SYS_io_setup = Constant('SYS_io_setup',243)
SYS_io_submit = Constant('SYS_io_submit',246)
SYS_ipc = Constant('SYS_ipc',117)
SYS_kexec_load = Constant('SYS_kexec_load',277)
SYS_keyctl = Constant('SYS_keyctl',280)
SYS_kill = Constant('SYS_kill',37)
SYS_lchown = Constant('SYS_lchown',16)
SYS_lchown32 = Constant('SYS_lchown32',198)
SYS_lgetxattr = Constant('SYS_lgetxattr',228)
SYS_link = Constant('SYS_link',9)
SYS_linkat = Constant('SYS_linkat',296)
SYS_listxattr = Constant('SYS_listxattr',230)
SYS_llistxattr = Constant('SYS_llistxattr',231)
SYS__llseek = Constant('SYS__llseek',140)
SYS_lookup_dcookie = Constant('SYS_lookup_dcookie',110)
SYS_lremovexattr = Constant('SYS_lremovexattr',234)
SYS_lseek = Constant('SYS_lseek',19)
SYS_lsetxattr = Constant('SYS_lsetxattr',225)
SYS_lstat = Constant('SYS_lstat',107)
SYS_lstat64 = Constant('SYS_lstat64',196)
SYS_madvise = Constant('SYS_madvise',219)
SYS_mincore = Constant('SYS_mincore',218)
SYS_mkdir = Constant('SYS_mkdir',39)
SYS_mkdirat = Constant('SYS_mkdirat',289)
SYS_mknod = Constant('SYS_mknod',14)
SYS_mknodat = Constant('SYS_mknodat',290)
SYS_mlock = Constant('SYS_mlock',150)
SYS_mlockall = Constant('SYS_mlockall',152)
SYS_mmap = Constant('SYS_mmap',90)
SYS_mmap2 = Constant('SYS_mmap2',192)
SYS_mount = Constant('SYS_mount',21)
SYS_mprotect = Constant('SYS_mprotect',125)
SYS_mq_getsetattr = Constant('SYS_mq_getsetattr',276)
SYS_mq_notify = Constant('SYS_mq_notify',275)
SYS_mq_open = Constant('SYS_mq_open',271)
SYS_mq_timedreceive = Constant('SYS_mq_timedreceive',274)
SYS_mq_timedsend = Constant('SYS_mq_timedsend',273)
SYS_mq_unlink = Constant('SYS_mq_unlink',272)
SYS_mremap = Constant('SYS_mremap',163)
SYS_msync = Constant('SYS_msync',144)
SYS_munlock = Constant('SYS_munlock',151)
SYS_munlockall = Constant('SYS_munlockall',153)
SYS_munmap = Constant('SYS_munmap',91)
SYS_nanosleep = Constant('SYS_nanosleep',162)
SYS__newselect = Constant('SYS__newselect',142)
SYS_nfsservctl = Constant('SYS_nfsservctl',169)
SYS_nice = Constant('SYS_nice',34)
SYS_open = Constant('SYS_open',5)
SYS_openat = Constant('SYS_openat',288)
SYS_pause = Constant('SYS_pause',29)
SYS_personality = Constant('SYS_personality',136)
SYS_pipe = Constant('SYS_pipe',42)
SYS_pivot_root = Constant('SYS_pivot_root',217)
SYS_poll = Constant('SYS_poll',168)
SYS_ppoll = Constant('SYS_ppoll',302)
SYS_prctl = Constant('SYS_prctl',172)
SYS_pread = Constant('SYS_pread',180)
SYS_pselect6 = Constant('SYS_pselect6',301)
SYS_ptrace = Constant('SYS_ptrace',26)
SYS_putpmsg = Constant('SYS_putpmsg',189)
SYS_pwrite = Constant('SYS_pwrite',181)
SYS_query_module = Constant('SYS_query_module',167)
SYS_quotactl = Constant('SYS_quotactl',131)
SYS_read = Constant('SYS_read',3)
SYS_readahead = Constant('SYS_readahead',222)
SYS_readdir = Constant('SYS_readdir',89)
SYS_readlink = Constant('SYS_readlink',85)
SYS_readlinkat = Constant('SYS_readlinkat',298)
SYS_readv = Constant('SYS_readv',145)
SYS_reboot = Constant('SYS_reboot',88)
SYS_remap_file_pages = Constant('SYS_remap_file_pages',267)
SYS_removexattr = Constant('SYS_removexattr',233)
SYS_rename = Constant('SYS_rename',38)
SYS_renameat = Constant('SYS_renameat',295)
SYS_request_key = Constant('SYS_request_key',279)
SYS_rmdir = Constant('SYS_rmdir',40)
SYS_rt_sigaction = Constant('SYS_rt_sigaction',174)
SYS_rt_sigpending = Constant('SYS_rt_sigpending',176)
SYS_rt_sigprocmask = Constant('SYS_rt_sigprocmask',175)
SYS_rt_sigqueueinfo = Constant('SYS_rt_sigqueueinfo',178)
SYS_rt_sigreturn = Constant('SYS_rt_sigreturn',173)
SYS_rt_sigsuspend = Constant('SYS_rt_sigsuspend',179)
SYS_rt_sigtimedwait = Constant('SYS_rt_sigtimedwait',177)
SYS_sched_getaffinity = Constant('SYS_sched_getaffinity',240)
SYS_sched_getparam = Constant('SYS_sched_getparam',155)
SYS_sched_get_priority_max = Constant('SYS_sched_get_priority_max',159)
SYS_sched_get_priority_min = Constant('SYS_sched_get_priority_min',160)
SYS_sched_getscheduler = Constant('SYS_sched_getscheduler',157)
SYS_sched_rr_get_interval = Constant('SYS_sched_rr_get_interval',161)
SYS_sched_setaffinity = Constant('SYS_sched_setaffinity',239)
SYS_sched_setparam = Constant('SYS_sched_setparam',154)
SYS_sched_setscheduler = Constant('SYS_sched_setscheduler',156)
SYS_sched_yield = Constant('SYS_sched_yield',158)
SYS_sendfile = Constant('SYS_sendfile',187)
SYS_sendfile64 = Constant('SYS_sendfile64',223)
SYS_setdomainname = Constant('SYS_setdomainname',121)
SYS_setfsgid = Constant('SYS_setfsgid',139)
SYS_setfsgid32 = Constant('SYS_setfsgid32',216)
SYS_setfsuid = Constant('SYS_setfsuid',138)
SYS_setfsuid32 = Constant('SYS_setfsuid32',215)
SYS_setgid = Constant('SYS_setgid',46)
SYS_setgid32 = Constant('SYS_setgid32',214)
SYS_setgroups = Constant('SYS_setgroups',81)
SYS_setgroups32 = Constant('SYS_setgroups32',206)
SYS_sethostname = Constant('SYS_sethostname',74)
SYS_setitimer = Constant('SYS_setitimer',104)
SYS_setpgid = Constant('SYS_setpgid',57)
SYS_setpriority = Constant('SYS_setpriority',97)
SYS_setregid = Constant('SYS_setregid',71)
SYS_setregid32 = Constant('SYS_setregid32',204)
SYS_setresgid = Constant('SYS_setresgid',170)
SYS_setresgid32 = Constant('SYS_setresgid32',210)
SYS_setresuid = Constant('SYS_setresuid',164)
SYS_setresuid32 = Constant('SYS_setresuid32',208)
SYS_setreuid = Constant('SYS_setreuid',70)
SYS_setreuid32 = Constant('SYS_setreuid32',203)
SYS_setrlimit = Constant('SYS_setrlimit',75)
SYS_set_robust_list = Constant('SYS_set_robust_list',304)
SYS_setsid = Constant('SYS_setsid',66)
SYS_set_tid_address = Constant('SYS_set_tid_address',252)
SYS_settimeofday = Constant('SYS_settimeofday',79)
SYS_setuid = Constant('SYS_setuid',23)
SYS_setuid32 = Constant('SYS_setuid32',213)
SYS_setxattr = Constant('SYS_setxattr',224)
SYS_sigaction = Constant('SYS_sigaction',67)
SYS_sigaltstack = Constant('SYS_sigaltstack',186)
SYS_signal = Constant('SYS_signal',48)
SYS_signalfd = Constant('SYS_signalfd',316)
SYS_sigpending = Constant('SYS_sigpending',73)
SYS_sigprocmask = Constant('SYS_sigprocmask',126)
SYS_sigreturn = Constant('SYS_sigreturn',119)
SYS_sigsuspend = Constant('SYS_sigsuspend',72)
SYS_socketcall = Constant('SYS_socketcall',102)
SYS_splice = Constant('SYS_splice',306)
SYS_stat = Constant('SYS_stat',106)
SYS_stat64 = Constant('SYS_stat64',195)
SYS_statfs = Constant('SYS_statfs',99)
SYS_statfs64 = Constant('SYS_statfs64',265)
SYS_stime = Constant('SYS_stime',25)
SYS_swapoff = Constant('SYS_swapoff',115)
SYS_swapon = Constant('SYS_swapon',87)
SYS_symlink = Constant('SYS_symlink',83)
SYS_symlinkat = Constant('SYS_symlinkat',297)
SYS_sync = Constant('SYS_sync',36)
SYS_sync_file_range = Constant('SYS_sync_file_range',307)
SYS__sysctl = Constant('SYS__sysctl',149)
SYS_sysfs = Constant('SYS_sysfs',135)
SYS_sysinfo = Constant('SYS_sysinfo',116)
SYS_syslog = Constant('SYS_syslog',103)
SYS_tee = Constant('SYS_tee',308)
SYS_tgkill = Constant('SYS_tgkill',241)
SYS_time = Constant('SYS_time',13)
SYS_timer_create = Constant('SYS_timer_create',254)
SYS_timer_delete = Constant('SYS_timer_delete',(254+4))
SYS_timerfd = Constant('SYS_timerfd',317)
SYS_timerfd_create = Constant('SYS_timerfd_create',319)
SYS_timerfd_gettime = Constant('SYS_timerfd_gettime',321)
SYS_timerfd_settime = Constant('SYS_timerfd_settime',320)
SYS_timer_getoverrun = Constant('SYS_timer_getoverrun',(254+3))
SYS_timer_gettime = Constant('SYS_timer_gettime',(254+2))
SYS_timer_settime = Constant('SYS_timer_settime',(254+1))
SYS_times = Constant('SYS_times',43)
SYS_tkill = Constant('SYS_tkill',237)
SYS_truncate = Constant('SYS_truncate',92)
SYS_truncate64 = Constant('SYS_truncate64',193)
SYS_ugetrlimit = Constant('SYS_ugetrlimit',191)
SYS_umask = Constant('SYS_umask',60)
SYS_umount = Constant('SYS_umount',22)
SYS_umount2 = Constant('SYS_umount2',52)
SYS_uname = Constant('SYS_uname',122)
SYS_unlink = Constant('SYS_unlink',10)
SYS_unlinkat = Constant('SYS_unlinkat',294)
SYS_unshare = Constant('SYS_unshare',303)
SYS_uselib = Constant('SYS_uselib',86)
SYS_ustat = Constant('SYS_ustat',62)
SYS_utime = Constant('SYS_utime',30)
SYS_utimensat = Constant('SYS_utimensat',315)
SYS_utimes = Constant('SYS_utimes',313)
SYS_vfork = Constant('SYS_vfork',190)
SYS_vhangup = Constant('SYS_vhangup',111)
SYS_vmsplice = Constant('SYS_vmsplice',309)
SYS_wait4 = Constant('SYS_wait4',114)
SYS_waitid = Constant('SYS_waitid',281)
SYS_write = Constant('SYS_write',4)
SYS_writev = Constant('SYS_writev',146)


text:
namespace Nancy.Blog.Modules.Admin
{
    public abstract class AdminModule : NancyModule
    {
        public AdminModule() : base("admin")
        {
        }

        public AdminModule(string modulePath) : base("admin/" + modulePath)
        {
        }
    }
}

redpajama_set_name: RedPajamaGithub


text:
/*!
 SearchHighlight for DataTables v1.0.1
 2014 SpryMedia Ltd - datatables.net/license
*/
(function(f,c,b){b(c).on("init.dt.dth",function(c,d){var a=new b.fn.dataTable.Api(d),e=b(a.table().body());if(b(a.table().node()).hasClass("searchHighlight")||d.oInit.searchHighlight||b.fn.dataTable.defaults.searchHighlight)a.on("draw.dt.dth column-visibility.dt.dth",function(){e.unhighlight();a.rows({filter:"applied"}).data().length&&e.highlight(a.search().split(" "))}).on("destroy",function(){a.off("draw.dt.dth column-visibility.dt.dth")})})})(window,document,jQuery);


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

<title>io.gearpump.streaming.task</title>
<meta name="date" content="2016-01-23">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">

JavaScript is disabled on your browser.

Overview

Package

Class

Tree

Deprecated

Index

Help

PREV PACKAGE

NEXT PACKAGE

FRAMES

NO FRAMES

All Classes

Package io.gearpump.streaming.task

Interface Summary

Interface
Description

ClockEvent

ExpressTransport

ExpressTransport wire the networking function from default akka
 networking to customized implementation Express.

TaskContext

This provides context information for a task.

TaskInterface

Streaming Task interface

TaskMessageSerializer<T>

Class Summary

Class
Description

Ack

Ack$

AckRequest

AckRequest$

CheckpointClock

CheckpointClock$

GetCheckpointClock

GetCheckpointClock$

GetDAG

GetDAG$

GetLatestMinClock

GetLatestMinClock$

GetStartClock

GetStartClock$

GetUpstreamMinClock

GetUpstreamMinClock$

InitialAckRequest

InitialAckRequest$

LatencyProbe

LatencyProbe$

LatestMinClock

LatestMinClock$

ReportCheckpointClock

ReportCheckpointClock$

SendMessageLoss

SendMessageLoss$

SerializedMessage

SerializedMessage$

SerializedMessageSerializer

SerializerResolver$

StartClock

StartClock$

StartTime

StartTime$

StreamingTransportSerializer

Subscriber

Each processor can have multiple downstream subscribers.

Subscriber$

Subscription

This manage the output and message clock for single downstream processor

Subscription$

Task

TaskActor

All tasks of Gearpump runs inside a Actor.

TaskActor.FLUSH$

TaskActor.MessageAndSender

TaskActor.MessageAndSender$

TaskActor.SecurityChecker

TaskActor.SendAck

TaskActor.SendAck$

TaskActor$

TaskContextData

TaskContextData$

TaskId

TaskId$

TaskUtil

TaskUtil$

TaskWrapper

This provides TaskContext for user defined tasks
 param:  taskClass task class
 param:  context context class
 param:  userConf user config

UpdateClock

UpdateClock$

UpstreamMinClock

UpstreamMinClock$

Overview

Package

Class

Tree

Deprecated

Index

Help

PREV PACKAGE

NEXT PACKAGE

FRAMES

NO FRAMES

All Classes


text:
module.exports = function(grunt){

    //Setup config for tasks
    grunt.initConfig({

        pkg: grunt.file.readJSON('package.json'),

        /**
         * Decided on using direct shell commands for running command development tasks instead of using node module tasks.
         * This was due to issues in finding a solution for easily running and killing long running gunt tasks.
         */
        shell:{

            /**
             * Provides and easy server for development.
             */
            server:{
               command: 'php -S localhost:9000',
                options:{
                   execOptions:{

                       //site files are generated within this folder
                      cwd: './public'
                   }
                }
            },

            /**
             * Uses the node implementation of livereload for refreshing the browser.
             */
            livereload:{

                //Only look for changes in the newly regenerated blog in the public folder
                command: 'livereloadx ./public'
            },

            /**
             * Rebuilds the blog when the source has been updated.
             * Not using watch task due to issues.
             */
           buildSite:{

                command: 'php ./core/builder.php -w'
            }

        },
        sass:{

            /*
            compileSassGrid:{

                options:{

                    style:'expanded'
                },

                files:{

                '': ''

                }

            }*/

        },

        watch:{
           bowerComponents:{
              tasks:['compile-assets'],

              files:['source/bower_components/**/*scss']

           }

        }

    });

    //Runs shell commands within grunt
    grunt.loadNpmTasks('grunt-shell');

    //Watch files and run other grunt tasks when they change
    grunt.loadNpmTasks('grunt-contrib-watch');

    //Processes sass file tasks
    grunt.loadNpmTasks('grunt-contrib-sass');

     //Start the php file server
    grunt.registerTask('server',['shell:server']);

    //Starts the livereload file server
    grunt.registerTask('livereload',['shell:livereload']);

    //Generates the style guide when files have changed
    grunt.registerTask('build-site',['shell:buildSite']);

    //Compiles the Sass responsive grid
    grunt.registerTask('compile-grid',['sass:compileSassGrid']);

    //Processes assets by compiling or minifying
    grunt.registerTask('compile-assets',['compile-grid']);

    grunt.registerTask('watch-assets',['watch:bowerComponents']);

};


text:
""" MLP-Mixer, ResMLP, and gMLP in PyTorch

This impl originally based on MLP-Mixer paper.

Official JAX impl: https://github.com/google-research/vision_transformer/blob/linen/vit_jax/models_mixer.py

Paper: 'MLP-Mixer: An all-MLP Architecture for Vision' - https://arxiv.org/abs/2105.01601

@article{tolstikhin2021,
  title={MLP-Mixer: An all-MLP Architecture for Vision},
  author={Tolstikhin, Ilya and Houlsby, Neil and Kolesnikov, Alexander and Beyer, Lucas and Zhai, Xiaohua and Unterthiner,
        Thomas and Yung, Jessica and Keysers, Daniel and Uszkoreit, Jakob and Lucic, Mario and Dosovitskiy, Alexey},
  journal={arXiv preprint arXiv:2105.01601},
  year={2021}
}

Also supporting ResMlp, and a preliminary (not verified) implementations of gMLP

Code: https://github.com/facebookresearch/deit
Paper: `ResMLP: Feedforward networks for image classification...` - https://arxiv.org/abs/2105.03404
@misc{touvron2021resmlp,
      title={ResMLP: Feedforward networks for image classification with data-efficient training},
      author={Hugo Touvron and Piotr Bojanowski and Mathilde Caron and Matthieu Cord and Alaaeldin El-Nouby and
        Edouard Grave and Armand Joulin and Gabriel Synnaeve and Jakob Verbeek and Hervé Jégou},
      year={2021},
      eprint={2105.03404},
}

Paper: `Pay Attention to MLPs` - https://arxiv.org/abs/2105.08050
@misc{liu2021pay,
      title={Pay Attention to MLPs},
      author={Hanxiao Liu and Zihang Dai and David R. So and Quoc V. Le},
      year={2021},
      eprint={2105.08050},
}

A thank you to paper authors for releasing code and weights.

Hacked together by / Copyright 2021 Ross Wightman
"""
import math
from copy import deepcopy
from functools import partial

import torch
import torch.nn as nn

from timm.data import IMAGENET_DEFAULT_MEAN, IMAGENET_DEFAULT_STD
from .helpers import build_model_with_cfg, named_apply, checkpoint_seq
from .layers import PatchEmbed, Mlp, GluMlp, GatedMlp, DropPath, lecun_normal_, to_2tuple
from .registry import register_model

def _cfg(url='', **kwargs):
    return {
        'url': url,
        'num_classes': 1000, 'input_size': (3, 224, 224), 'pool_size': None,
        'crop_pct': 0.875, 'interpolation': 'bicubic', 'fixed_input_size': True,
        'mean': (0.5, 0.5, 0.5), 'std': (0.5, 0.5, 0.5),
        'first_conv': 'stem.proj', 'classifier': 'head',
        **kwargs
    }

default_cfgs = dict(
    mixer_s32_224=_cfg(),
    mixer_s16_224=_cfg(),
    mixer_b32_224=_cfg(),
    mixer_b16_224=_cfg(
        url='https://github.com/rwightman/pytorch-image-models/releases/download/v0.1-vitjx/jx_mixer_b16_224-76587d61.pth',
    ),
    mixer_b16_224_in21k=_cfg(
        url='https://github.com/rwightman/pytorch-image-models/releases/download/v0.1-vitjx/jx_mixer_b16_224_in21k-617b3de2.pth',
        num_classes=21843
    ),
    mixer_l32_224=_cfg(),
    mixer_l16_224=_cfg(
        url='https://github.com/rwightman/pytorch-image-models/releases/download/v0.1-vitjx/jx_mixer_l16_224-92f9adc4.pth',
    ),
    mixer_l16_224_in21k=_cfg(
        url='https://github.com/rwightman/pytorch-image-models/releases/download/v0.1-vitjx/jx_mixer_l16_224_in21k-846aa33c.pth',
        num_classes=21843
    ),

    # Mixer ImageNet-21K-P pretraining
    mixer_b16_224_miil_in21k=_cfg(
        url='https://github.com/rwightman/pytorch-image-models/releases/download/v0.1-tresnet/mixer_b16_224_miil_in21k-2a558a71.pth',
        mean=(0., 0., 0.), std=(1., 1., 1.), crop_pct=0.875, interpolation='bilinear', num_classes=11221,
    ),
    mixer_b16_224_miil=_cfg(
        url='https://github.com/rwightman/pytorch-image-models/releases/download/v0.1-tresnet/mixer_b16_224_miil-9229a591.pth',
        mean=(0., 0., 0.), std=(1., 1., 1.), crop_pct=0.875, interpolation='bilinear',
    ),

    gmixer_12_224=_cfg(mean=IMAGENET_DEFAULT_MEAN, std=IMAGENET_DEFAULT_STD),
    gmixer_24_224=_cfg(
        url='https://github.com/rwightman/pytorch-image-models/releases/download/v0.1-weights/gmixer_24_224_raa-7daf7ae6.pth',
        mean=IMAGENET_DEFAULT_MEAN, std=IMAGENET_DEFAULT_STD),

    resmlp_12_224=_cfg(
        url='https://dl.fbaipublicfiles.com/deit/resmlp_12_no_dist.pth',
        mean=IMAGENET_DEFAULT_MEAN, std=IMAGENET_DEFAULT_STD),
    resmlp_24_224=_cfg(
        url='https://dl.fbaipublicfiles.com/deit/resmlp_24_no_dist.pth',
        #url='https://github.com/rwightman/pytorch-image-models/releases/download/v0.1-weights/resmlp_24_224_raa-a8256759.pth',
        mean=IMAGENET_DEFAULT_MEAN, std=IMAGENET_DEFAULT_STD),
    resmlp_36_224=_cfg(
        url='https://dl.fbaipublicfiles.com/deit/resmlp_36_no_dist.pth',
        mean=IMAGENET_DEFAULT_MEAN, std=IMAGENET_DEFAULT_STD),
    resmlp_big_24_224=_cfg(
        url='https://dl.fbaipublicfiles.com/deit/resmlpB_24_no_dist.pth',
        mean=IMAGENET_DEFAULT_MEAN, std=IMAGENET_DEFAULT_STD),

    resmlp_12_distilled_224=_cfg(
        url='https://dl.fbaipublicfiles.com/deit/resmlp_12_dist.pth',
        mean=IMAGENET_DEFAULT_MEAN, std=IMAGENET_DEFAULT_STD),
    resmlp_24_distilled_224=_cfg(
        url='https://dl.fbaipublicfiles.com/deit/resmlp_24_dist.pth',
        mean=IMAGENET_DEFAULT_MEAN, std=IMAGENET_DEFAULT_STD),
    resmlp_36_distilled_224=_cfg(
        url='https://dl.fbaipublicfiles.com/deit/resmlp_36_dist.pth',
        mean=IMAGENET_DEFAULT_MEAN, std=IMAGENET_DEFAULT_STD),
    resmlp_big_24_distilled_224=_cfg(
        url='https://dl.fbaipublicfiles.com/deit/resmlpB_24_dist.pth',
        mean=IMAGENET_DEFAULT_MEAN, std=IMAGENET_DEFAULT_STD),

    resmlp_big_24_224_in22ft1k=_cfg(
        url='https://dl.fbaipublicfiles.com/deit/resmlpB_24_22k.pth',
        mean=IMAGENET_DEFAULT_MEAN, std=IMAGENET_DEFAULT_STD),

    resmlp_12_224_dino=_cfg(
        url='https://dl.fbaipublicfiles.com/deit/resmlp_12_dino.pth',
        mean=IMAGENET_DEFAULT_MEAN, std=IMAGENET_DEFAULT_STD),
    resmlp_24_224_dino=_cfg(
        url='https://dl.fbaipublicfiles.com/deit/resmlp_24_dino.pth',
        mean=IMAGENET_DEFAULT_MEAN, std=IMAGENET_DEFAULT_STD),

    gmlp_ti16_224=_cfg(),
    gmlp_s16_224=_cfg(
        url='https://github.com/rwightman/pytorch-image-models/releases/download/v0.1-weights/gmlp_s16_224_raa-10536d42.pth',
    ),
    gmlp_b16_224=_cfg(),
)

class MixerBlock(nn.Module):
    """ Residual Block w/ token mixing and channel MLPs
    Based on: 'MLP-Mixer: An all-MLP Architecture for Vision' - https://arxiv.org/abs/2105.01601
    """
    def __init__(
            self, dim, seq_len, mlp_ratio=(0.5, 4.0), mlp_layer=Mlp,
            norm_layer=partial(nn.LayerNorm, eps=1e-6), act_layer=nn.GELU, drop=0., drop_path=0.):
        super().__init__()
        tokens_dim, channels_dim = [int(x * dim) for x in to_2tuple(mlp_ratio)]
        self.norm1 = norm_layer(dim)
        self.mlp_tokens = mlp_layer(seq_len, tokens_dim, act_layer=act_layer, drop=drop)
        self.drop_path = DropPath(drop_path) if drop_path > 0. else nn.Identity()
        self.norm2 = norm_layer(dim)
        self.mlp_channels = mlp_layer(dim, channels_dim, act_layer=act_layer, drop=drop)

    def forward(self, x):
        x = x + self.drop_path(self.mlp_tokens(self.norm1(x).transpose(1, 2)).transpose(1, 2))
        x = x + self.drop_path(self.mlp_channels(self.norm2(x)))
        return x

class Affine(nn.Module):
    def __init__(self, dim):
        super().__init__()
        self.alpha = nn.Parameter(torch.ones((1, 1, dim)))
        self.beta = nn.Parameter(torch.zeros((1, 1, dim)))

    def forward(self, x):
        return torch.addcmul(self.beta, self.alpha, x)

class ResBlock(nn.Module):
    """ Residual MLP block w/ LayerScale and Affine 'norm'

    Based on: `ResMLP: Feedforward networks for image classification...` - https://arxiv.org/abs/2105.03404
    """
    def __init__(
            self, dim, seq_len, mlp_ratio=4, mlp_layer=Mlp, norm_layer=Affine,
            act_layer=nn.GELU, init_values=1e-4, drop=0., drop_path=0.):
        super().__init__()
        channel_dim = int(dim * mlp_ratio)
        self.norm1 = norm_layer(dim)
        self.linear_tokens = nn.Linear(seq_len, seq_len)
        self.drop_path = DropPath(drop_path) if drop_path > 0. else nn.Identity()
        self.norm2 = norm_layer(dim)
        self.mlp_channels = mlp_layer(dim, channel_dim, act_layer=act_layer, drop=drop)
        self.ls1 = nn.Parameter(init_values * torch.ones(dim))
        self.ls2 = nn.Parameter(init_values * torch.ones(dim))

    def forward(self, x):
        x = x + self.drop_path(self.ls1 * self.linear_tokens(self.norm1(x).transpose(1, 2)).transpose(1, 2))
        x = x + self.drop_path(self.ls2 * self.mlp_channels(self.norm2(x)))
        return x

class SpatialGatingUnit(nn.Module):
    """ Spatial Gating Unit

    Based on: `Pay Attention to MLPs` - https://arxiv.org/abs/2105.08050
    """
    def __init__(self, dim, seq_len, norm_layer=nn.LayerNorm):
        super().__init__()
        gate_dim = dim // 2
        self.norm = norm_layer(gate_dim)
        self.proj = nn.Linear(seq_len, seq_len)

    def init_weights(self):
        # special init for the projection gate, called as override by base model init
        nn.init.normal_(self.proj.weight, std=1e-6)
        nn.init.ones_(self.proj.bias)

    def forward(self, x):
        u, v = x.chunk(2, dim=-1)
        v = self.norm(v)
        v = self.proj(v.transpose(-1, -2))
        return u * v.transpose(-1, -2)

class SpatialGatingBlock(nn.Module):
    """ Residual Block w/ Spatial Gating

    Based on: `Pay Attention to MLPs` - https://arxiv.org/abs/2105.08050
    """
    def __init__(
            self, dim, seq_len, mlp_ratio=4, mlp_layer=GatedMlp,
            norm_layer=partial(nn.LayerNorm, eps=1e-6), act_layer=nn.GELU, drop=0., drop_path=0.):
        super().__init__()
        channel_dim = int(dim * mlp_ratio)
        self.norm = norm_layer(dim)
        sgu = partial(SpatialGatingUnit, seq_len=seq_len)
        self.mlp_channels = mlp_layer(dim, channel_dim, act_layer=act_layer, gate_layer=sgu, drop=drop)
        self.drop_path = DropPath(drop_path) if drop_path > 0. else nn.Identity()

    def forward(self, x):
        x = x + self.drop_path(self.mlp_channels(self.norm(x)))
        return x

class MlpMixer(nn.Module):

    def __init__(
            self,
            num_classes=1000,
            img_size=224,
            in_chans=3,
            patch_size=16,
            num_blocks=8,
            embed_dim=512,
            mlp_ratio=(0.5, 4.0),
            block_layer=MixerBlock,
            mlp_layer=Mlp,
            norm_layer=partial(nn.LayerNorm, eps=1e-6),
            act_layer=nn.GELU,
            drop_rate=0.,
            drop_path_rate=0.,
            nlhb=False,
            stem_norm=False,
            global_pool='avg',
    ):
        super().__init__()
        self.num_classes = num_classes
        self.global_pool = global_pool
        self.num_features = self.embed_dim = embed_dim  # num_features for consistency with other models
        self.grad_checkpointing = False

        self.stem = PatchEmbed(
            img_size=img_size, patch_size=patch_size, in_chans=in_chans,
            embed_dim=embed_dim, norm_layer=norm_layer if stem_norm else None)
        # FIXME drop_path (stochastic depth scaling rule or all the same?)
        self.blocks = nn.Sequential(*[
            block_layer(
                embed_dim, self.stem.num_patches, mlp_ratio, mlp_layer=mlp_layer, norm_layer=norm_layer,
                act_layer=act_layer, drop=drop_rate, drop_path=drop_path_rate)
            for _ in range(num_blocks)])
        self.norm = norm_layer(embed_dim)
        self.head = nn.Linear(embed_dim, self.num_classes) if num_classes > 0 else nn.Identity()

        self.init_weights(nlhb=nlhb)

    @torch.jit.ignore
    def init_weights(self, nlhb=False):
        head_bias = -math.log(self.num_classes) if nlhb else 0.
        named_apply(partial(_init_weights, head_bias=head_bias), module=self)  # depth-first

    @torch.jit.ignore
    def group_matcher(self, coarse=False):
        return dict(
            stem=r'^stem',  # stem and embed
            blocks=[(r'^blocks\.(\d+)', None), (r'^norm', (99999,))]
        )

    @torch.jit.ignore
    def set_grad_checkpointing(self, enable=True):
        self.grad_checkpointing = enable

    @torch.jit.ignore
    def get_classifier(self):
        return self.head

    def reset_classifier(self, num_classes, global_pool=None):
        self.num_classes = num_classes
        if global_pool is not None:
            assert global_pool in ('', 'avg')
            self.global_pool = global_pool
        self.head = nn.Linear(self.embed_dim, num_classes) if num_classes > 0 else nn.Identity()

    def forward_features(self, x):
        x = self.stem(x)
        if self.grad_checkpointing and not torch.jit.is_scripting():
            x = checkpoint_seq(self.blocks, x)
        else:
            x = self.blocks(x)
        x = self.norm(x)
        return x

    def forward(self, x):
        x = self.forward_features(x)
        if self.global_pool == 'avg':
            x = x.mean(dim=1)
        x = self.head(x)
        return x

def _init_weights(module: nn.Module, name: str, head_bias: float = 0., flax=False):
    """ Mixer weight initialization (trying to match Flax defaults)
    """
    if isinstance(module, nn.Linear):
        if name.startswith('head'):
            nn.init.zeros_(module.weight)
            nn.init.constant_(module.bias, head_bias)
        else:
            if flax:
                # Flax defaults
                lecun_normal_(module.weight)
                if module.bias is not None:
                    nn.init.zeros_(module.bias)
            else:
                # like MLP init in vit (my original init)
                nn.init.xavier_uniform_(module.weight)
                if module.bias is not None:
                    if 'mlp' in name:
                        nn.init.normal_(module.bias, std=1e-6)
                    else:
                        nn.init.zeros_(module.bias)
    elif isinstance(module, nn.Conv2d):
        lecun_normal_(module.weight)
        if module.bias is not None:
            nn.init.zeros_(module.bias)
    elif isinstance(module, (nn.LayerNorm, nn.BatchNorm2d, nn.GroupNorm)):
        nn.init.ones_(module.weight)
        nn.init.zeros_(module.bias)
    elif hasattr(module, 'init_weights'):
        # NOTE if a parent module contains init_weights method, it can override the init of the
        # child modules as this will be called in depth-first order.
        module.init_weights()

def checkpoint_filter_fn(state_dict, model):
    """ Remap checkpoints if needed """
    if 'patch_embed.proj.weight' in state_dict:
        # Remap FB ResMlp models -> timm
        out_dict = {}
        for k, v in state_dict.items():
            k = k.replace('patch_embed.', 'stem.')
            k = k.replace('attn.', 'linear_tokens.')
            k = k.replace('mlp.', 'mlp_channels.')
            k = k.replace('gamma_', 'ls')
            if k.endswith('.alpha') or k.endswith('.beta'):
                v = v.reshape(1, 1, -1)
            out_dict[k] = v
        return out_dict
    return state_dict

def _create_mixer(variant, pretrained=False, **kwargs):
    if kwargs.get('features_only', None):
        raise RuntimeError('features_only not implemented for MLP-Mixer models.')

    model = build_model_with_cfg(
        MlpMixer, variant, pretrained,
        pretrained_filter_fn=checkpoint_filter_fn,
        **kwargs)
    return model

@register_model
def mixer_s32_224(pretrained=False, **kwargs):
    """ Mixer-S/32 224x224
    Paper: 'MLP-Mixer: An all-MLP Architecture for Vision' - https://arxiv.org/abs/2105.01601
    """
    model_args = dict(patch_size=32, num_blocks=8, embed_dim=512, **kwargs)
    model = _create_mixer('mixer_s32_224', pretrained=pretrained, **model_args)
    return model

@register_model
def mixer_s16_224(pretrained=False, **kwargs):
    """ Mixer-S/16 224x224
    Paper:  'MLP-Mixer: An all-MLP Architecture for Vision' - https://arxiv.org/abs/2105.01601
    """
    model_args = dict(patch_size=16, num_blocks=8, embed_dim=512, **kwargs)
    model = _create_mixer('mixer_s16_224', pretrained=pretrained, **model_args)
    return model

@register_model
def mixer_b32_224(pretrained=False, **kwargs):
    """ Mixer-B/32 224x224
    Paper:  'MLP-Mixer: An all-MLP Architecture for Vision' - https://arxiv.org/abs/2105.01601
    """
    model_args = dict(patch_size=32, num_blocks=12, embed_dim=768, **kwargs)
    model = _create_mixer('mixer_b32_224', pretrained=pretrained, **model_args)
    return model

@register_model
def mixer_b16_224(pretrained=False, **kwargs):
    """ Mixer-B/16 224x224. ImageNet-1k pretrained weights.
    Paper:  'MLP-Mixer: An all-MLP Architecture for Vision' - https://arxiv.org/abs/2105.01601
    """
    model_args = dict(patch_size=16, num_blocks=12, embed_dim=768, **kwargs)
    model = _create_mixer('mixer_b16_224', pretrained=pretrained, **model_args)
    return model

@register_model
def mixer_b16_224_in21k(pretrained=False, **kwargs):
    """ Mixer-B/16 224x224. ImageNet-21k pretrained weights.
    Paper:  'MLP-Mixer: An all-MLP Architecture for Vision' - https://arxiv.org/abs/2105.01601
    """
    model_args = dict(patch_size=16, num_blocks=12, embed_dim=768, **kwargs)
    model = _create_mixer('mixer_b16_224_in21k', pretrained=pretrained, **model_args)
    return model

@register_model
def mixer_l32_224(pretrained=False, **kwargs):
    """ Mixer-L/32 224x224.
    Paper:  'MLP-Mixer: An all-MLP Architecture for Vision' - https://arxiv.org/abs/2105.01601
    """
    model_args = dict(patch_size=32, num_blocks=24, embed_dim=1024, **kwargs)
    model = _create_mixer('mixer_l32_224', pretrained=pretrained, **model_args)
    return model

@register_model
def mixer_l16_224(pretrained=False, **kwargs):
    """ Mixer-L/16 224x224. ImageNet-1k pretrained weights.
    Paper:  'MLP-Mixer: An all-MLP Architecture for Vision' - https://arxiv.org/abs/2105.01601
    """
    model_args = dict(patch_size=16, num_blocks=24, embed_dim=1024, **kwargs)
    model = _create_mixer('mixer_l16_224', pretrained=pretrained, **model_args)
    return model

@register_model
def mixer_l16_224_in21k(pretrained=False, **kwargs):
    """ Mixer-L/16 224x224. ImageNet-21k pretrained weights.
    Paper:  'MLP-Mixer: An all-MLP Architecture for Vision' - https://arxiv.org/abs/2105.01601
    """
    model_args = dict(patch_size=16, num_blocks=24, embed_dim=1024, **kwargs)
    model = _create_mixer('mixer_l16_224_in21k', pretrained=pretrained, **model_args)
    return model

@register_model
def mixer_b16_224_miil(pretrained=False, **kwargs):
    """ Mixer-B/16 224x224. ImageNet-21k pretrained weights.
    Weights taken from: https://github.com/Alibaba-MIIL/ImageNet21K
    """
    model_args = dict(patch_size=16, num_blocks=12, embed_dim=768, **kwargs)
    model = _create_mixer('mixer_b16_224_miil', pretrained=pretrained, **model_args)
    return model

@register_model
def mixer_b16_224_miil_in21k(pretrained=False, **kwargs):
    """ Mixer-B/16 224x224. ImageNet-1k pretrained weights.
    Weights taken from: https://github.com/Alibaba-MIIL/ImageNet21K
    """
    model_args = dict(patch_size=16, num_blocks=12, embed_dim=768, **kwargs)
    model = _create_mixer('mixer_b16_224_miil_in21k', pretrained=pretrained, **model_args)
    return model

@register_model
def gmixer_12_224(pretrained=False, **kwargs):
    """ Glu-Mixer-12 224x224
    Experiment by Ross Wightman, adding (Si)GLU to MLP-Mixer
    """
    model_args = dict(
        patch_size=16, num_blocks=12, embed_dim=384, mlp_ratio=(1.0, 4.0),
        mlp_layer=GluMlp, act_layer=nn.SiLU, **kwargs)
    model = _create_mixer('gmixer_12_224', pretrained=pretrained, **model_args)
    return model

@register_model
def gmixer_24_224(pretrained=False, **kwargs):
    """ Glu-Mixer-24 224x224
    Experiment by Ross Wightman, adding (Si)GLU to MLP-Mixer
    """
    model_args = dict(
        patch_size=16, num_blocks=24, embed_dim=384, mlp_ratio=(1.0, 4.0),
        mlp_layer=GluMlp, act_layer=nn.SiLU, **kwargs)
    model = _create_mixer('gmixer_24_224', pretrained=pretrained, **model_args)
    return model

@register_model
def resmlp_12_224(pretrained=False, **kwargs):
    """ ResMLP-12
    Paper: `ResMLP: Feedforward networks for image classification...` - https://arxiv.org/abs/2105.03404
    """
    model_args = dict(
        patch_size=16, num_blocks=12, embed_dim=384, mlp_ratio=4, block_layer=ResBlock, norm_layer=Affine, **kwargs)
    model = _create_mixer('resmlp_12_224', pretrained=pretrained, **model_args)
    return model

@register_model
def resmlp_24_224(pretrained=False, **kwargs):
    """ ResMLP-24
    Paper: `ResMLP: Feedforward networks for image classification...` - https://arxiv.org/abs/2105.03404
    """
    model_args = dict(
        patch_size=16, num_blocks=24, embed_dim=384, mlp_ratio=4,
        block_layer=partial(ResBlock, init_values=1e-5), norm_layer=Affine, **kwargs)
    model = _create_mixer('resmlp_24_224', pretrained=pretrained, **model_args)
    return model

@register_model
def resmlp_36_224(pretrained=False, **kwargs):
    """ ResMLP-36
    Paper: `ResMLP: Feedforward networks for image classification...` - https://arxiv.org/abs/2105.03404
    """
    model_args = dict(
        patch_size=16, num_blocks=36, embed_dim=384, mlp_ratio=4,
        block_layer=partial(ResBlock, init_values=1e-6), norm_layer=Affine, **kwargs)
    model = _create_mixer('resmlp_36_224', pretrained=pretrained, **model_args)
    return model

@register_model
def resmlp_big_24_224(pretrained=False, **kwargs):
    """ ResMLP-B-24
    Paper: `ResMLP: Feedforward networks for image classification...` - https://arxiv.org/abs/2105.03404
    """
    model_args = dict(
        patch_size=8, num_blocks=24, embed_dim=768, mlp_ratio=4,
        block_layer=partial(ResBlock, init_values=1e-6), norm_layer=Affine, **kwargs)
    model = _create_mixer('resmlp_big_24_224', pretrained=pretrained, **model_args)
    return model

@register_model
def resmlp_12_distilled_224(pretrained=False, **kwargs):
    """ ResMLP-12
    Paper: `ResMLP: Feedforward networks for image classification...` - https://arxiv.org/abs/2105.03404
    """
    model_args = dict(
        patch_size=16, num_blocks=12, embed_dim=384, mlp_ratio=4, block_layer=ResBlock, norm_layer=Affine, **kwargs)
    model = _create_mixer('resmlp_12_distilled_224', pretrained=pretrained, **model_args)
    return model

@register_model
def resmlp_24_distilled_224(pretrained=False, **kwargs):
    """ ResMLP-24
    Paper: `ResMLP: Feedforward networks for image classification...` - https://arxiv.org/abs/2105.03404
    """
    model_args = dict(
        patch_size=16, num_blocks=24, embed_dim=384, mlp_ratio=4,
        block_layer=partial(ResBlock, init_values=1e-5), norm_layer=Affine, **kwargs)
    model = _create_mixer('resmlp_24_distilled_224', pretrained=pretrained, **model_args)
    return model

@register_model
def resmlp_36_distilled_224(pretrained=False, **kwargs):
    """ ResMLP-36
    Paper: `ResMLP: Feedforward networks for image classification...` - https://arxiv.org/abs/2105.03404
    """
    model_args = dict(
        patch_size=16, num_blocks=36, embed_dim=384, mlp_ratio=4,
        block_layer=partial(ResBlock, init_values=1e-6), norm_layer=Affine, **kwargs)
    model = _create_mixer('resmlp_36_distilled_224', pretrained=pretrained, **model_args)
    return model

@register_model
def resmlp_big_24_distilled_224(pretrained=False, **kwargs):
    """ ResMLP-B-24
    Paper: `ResMLP: Feedforward networks for image classification...` - https://arxiv.org/abs/2105.03404
    """
    model_args = dict(
        patch_size=8, num_blocks=24, embed_dim=768, mlp_ratio=4,
        block_layer=partial(ResBlock, init_values=1e-6), norm_layer=Affine, **kwargs)
    model = _create_mixer('resmlp_big_24_distilled_224', pretrained=pretrained, **model_args)
    return model

@register_model
def resmlp_big_24_224_in22ft1k(pretrained=False, **kwargs):
    """ ResMLP-B-24
    Paper: `ResMLP: Feedforward networks for image classification...` - https://arxiv.org/abs/2105.03404
    """
    model_args = dict(
        patch_size=8, num_blocks=24, embed_dim=768, mlp_ratio=4,
        block_layer=partial(ResBlock, init_values=1e-6), norm_layer=Affine, **kwargs)
    model = _create_mixer('resmlp_big_24_224_in22ft1k', pretrained=pretrained, **model_args)
    return model

@register_model
def resmlp_12_224_dino(pretrained=False, **kwargs):
    """ ResMLP-12
    Paper: `ResMLP: Feedforward networks for image classification...` - https://arxiv.org/abs/2105.03404

    Model pretrained via DINO (self-supervised) - https://arxiv.org/abs/2104.14294
    """
    model_args = dict(
        patch_size=16, num_blocks=12, embed_dim=384, mlp_ratio=4, block_layer=ResBlock, norm_layer=Affine, **kwargs)
    model = _create_mixer('resmlp_12_224_dino', pretrained=pretrained, **model_args)
    return model

@register_model
def resmlp_24_224_dino(pretrained=False, **kwargs):
    """ ResMLP-24
    Paper: `ResMLP: Feedforward networks for image classification...` - https://arxiv.org/abs/2105.03404

    Model pretrained via DINO (self-supervised) - https://arxiv.org/abs/2104.14294
    """
    model_args = dict(
        patch_size=16, num_blocks=24, embed_dim=384, mlp_ratio=4,
        block_layer=partial(ResBlock, init_values=1e-5), norm_layer=Affine, **kwargs)
    model = _create_mixer('resmlp_24_224_dino', pretrained=pretrained, **model_args)
    return model

@register_model
def gmlp_ti16_224(pretrained=False, **kwargs):
    """ gMLP-Tiny
    Paper: `Pay Attention to MLPs` - https://arxiv.org/abs/2105.08050
    """
    model_args = dict(
        patch_size=16, num_blocks=30, embed_dim=128, mlp_ratio=6, block_layer=SpatialGatingBlock,
        mlp_layer=GatedMlp, **kwargs)
    model = _create_mixer('gmlp_ti16_224', pretrained=pretrained, **model_args)
    return model

@register_model
def gmlp_s16_224(pretrained=False, **kwargs):
    """ gMLP-Small
    Paper: `Pay Attention to MLPs` - https://arxiv.org/abs/2105.08050
    """
    model_args = dict(
        patch_size=16, num_blocks=30, embed_dim=256, mlp_ratio=6, block_layer=SpatialGatingBlock,
        mlp_layer=GatedMlp, **kwargs)
    model = _create_mixer('gmlp_s16_224', pretrained=pretrained, **model_args)
    return model

@register_model
def gmlp_b16_224(pretrained=False, **kwargs):
    """ gMLP-Base
    Paper: `Pay Attention to MLPs` - https://arxiv.org/abs/2105.08050
    """
    model_args = dict(
        patch_size=16, num_blocks=30, embed_dim=512, mlp_ratio=6, block_layer=SpatialGatingBlock,
        mlp_layer=GatedMlp, **kwargs)
    model = _create_mixer('gmlp_b16_224', pretrained=pretrained, **model_args)
    return model


text:
#ifndef FitModules_hpp
#define FitModules_hpp

#include <RooAbsData.h>
#include <RooAbsPdf.h>
#include <RooAddPdf.h>
#include <RooChebychev.h>
#include <RooExponential.h>
#include <RooPlot.h>
#include <RooRealVar.h>

#include <TString.h>

#include <memory>

using namespace RooFit;

class FitModule {
public:
  FitModule(RooRealVar *xm)
  : mX(xm)
  , mBkgCounts(new RooRealVar("N_{bkg}","Bkg counts",1000.,0.,1.e8))
  , mSigCounts(new RooRealVar("N_{sig}","Sig counts",1000.,0.,1.e8))
  , mMu(new RooRealVar("#mu","Mu",-0.15,0.15))
  , mSigma(new RooRealVar("#sigma","Sigma",0.02,.61))
    {}

  virtual RooPlot* FitData(TH1* h, TString name, TString title, TString range = "", TString plotrange="", bool change_range = false, float low_x = -2., float high_x = 2.);
  static RooPlot* FitAndPlot(RooRealVar &x, RooAbsData &data, RooAbsPdf &model, RooAbsPdf &sig,
                             RooAbsPdf &bkg,TString range,TString plotrange) {
    RooPlot *plot = x.frame();
    RooFitResult *res = model.fitTo(data,Extended(),Range(range),Verbose(kFALSE),PrintLevel(-1));
    data.plotOn(plot,Name("data"));
    model.plotOn(plot,Name("model"),Range(plotrange),NormRange(plotrange));
    model.plotOn(plot,Components(bkg),LineStyle(kDashed),Range(plotrange),NormRange(plotrange));
    model.plotOn(plot,Components(sig),LineStyle(kDotted),Range(plotrange),NormRange(plotrange));
    model.paramOn(plot,Label(Form("#chi^{2}/NDF = %2.4f",plot->chiSquare("model","data"))));
    return plot;
  }

  void UseBackground(bool);
  void UseSignal(bool);

  RooRealVar  *mX;
  std::unique_ptr<RooRealVar> mBkgCounts;
  std::unique_ptr<RooRealVar> mSigCounts;
  std::unique_ptr<RooRealVar> mMu;
  std::unique_ptr<RooRealVar> mSigma;
  std::unique_ptr<RooAddPdf>  mTemplate;
  std::unique_ptr<RooAbsPdf>  mSignal;
  std::unique_ptr<RooAbsPdf>  mBackground;
  float        mChi2;
};

class FitGausGaus : public FitModule {
public:
  FitGausGaus(RooRealVar *xm);

  std::unique_ptr<RooRealVar> mMuBkg;
  std::unique_ptr<RooRealVar> mSigmaBkg;

};

class FitExpTailGaus : public FitModule {
public:
  FitExpTailGaus(RooRealVar *xm);

  std::unique_ptr<RooRealVar> mTau0;
  std::unique_ptr<RooRealVar> mAlpha0;
};

class FitExpGaus : public FitModule {
public:
  FitExpGaus(RooRealVar *xm);

  std::unique_ptr<RooRealVar> mTau;
  std::unique_ptr<RooRealVar> mA1;
  std::unique_ptr<RooRealVar> mA2;
  std::unique_ptr<RooRealVar> mA3;

};

class FitExpCB : public FitModule {
public:
  FitExpCB(RooRealVar *xm);

  std::unique_ptr<RooRealVar> mTau;
  std::unique_ptr<RooRealVar> mAlpha;
  std::unique_ptr<RooRealVar> mN;
};

class FitExpExpCB : public FitModule {
public:
  FitExpExpCB(RooRealVar *xm);

  std::unique_ptr<RooExponential> mBkg0;
  std::unique_ptr<RooExponential> mBkg1;
  std::unique_ptr<RooRealVar> mTau0;
  std::unique_ptr<RooRealVar> mTau1;
  std::unique_ptr<RooRealVar> mKbkg;
  std::unique_ptr<RooRealVar> mAlpha;
  std::unique_ptr<RooRealVar> mN;
};

class FitExpExpGaus : public FitModule {
public:
  FitExpExpGaus(RooRealVar *xm);

  std::unique_ptr<RooExponential> mBkg0;
  std::unique_ptr<RooExponential> mBkg1;
  std::unique_ptr<RooRealVar> mTau0;
  std::unique_ptr<RooRealVar> mTau1;
  std::unique_ptr<RooRealVar> mKbkg;
};

class FitExpExpTailGaus : public FitModule {
public:
  FitExpExpTailGaus(RooRealVar *xm);

  std::unique_ptr<RooExponential> mBkg0;
  std::unique_ptr<RooExponential> mBkg1;
  std::unique_ptr<RooRealVar> mTau0;
  std::unique_ptr<RooRealVar> mTau1;
  std::unique_ptr<RooRealVar> mKbkg;
  std::unique_ptr<RooRealVar> mAlpha0;
};

class FitExpExpTailTailGaus : public FitModule {
public:
  FitExpExpTailTailGaus(RooRealVar *xm);

  std::unique_ptr<RooExponential> mBkg0;
  std::unique_ptr<RooExponential> mBkg1;
  std::unique_ptr<RooRealVar> mTau0;
  std::unique_ptr<RooRealVar> mTau1;
  std::unique_ptr<RooRealVar> mKbkg;
  std::unique_ptr<RooRealVar> mAlpha0;
  std::unique_ptr<RooRealVar> mAlpha1;
};

class FitExpPolTailGaus : public FitModule {
public:
  FitExpPolTailGaus(RooRealVar *xm);

  std::unique_ptr<RooExponential> mBkg0;
  std::unique_ptr<RooChebychev> mBkg1;
  std::unique_ptr<RooRealVar> mTau0;
  std::unique_ptr<RooRealVar> mA0;
  std::unique_ptr<RooRealVar> mA1;
  std::unique_ptr<RooRealVar> mKbkg;
  std::unique_ptr<RooRealVar> mAlpha0;
};

#endif /* FitModules_hpp */


text:
layout: page
title: Torres Family Reunion
date: 2016-05-24
author: Virginia Lynn
tags: weekly links, java
status: published
summary: Donec ac ultricies eros. Curabitur at aliquam magna. Ut mattis.
banner: images/banner/people.jpg
booking:
  startDate: 06/28/2016
  endDate: 06/29/2016
  ctyhocn: PDXAPHX
  groupCode: TFR
published: true
---
Mauris ac felis nulla. Phasellus ut tempor est. Fusce volutpat ante metus, ut faucibus velit porta a. In luctus lectus ac leo pulvinar accumsan. Curabitur sed enim porttitor, euismod nunc vel, maximus justo. Donec finibus odio eu libero semper, in lacinia nulla ullamcorper. Nunc vitae magna ac massa porta pulvinar. Vestibulum et dui eget turpis molestie eleifend maximus vel diam. Cras imperdiet justo massa, nec hendrerit odio ornare at. Donec metus mi, semper quis odio sit amet, porta bibendum sapien.

* Sed a nunc sollicitudin, convallis velit vel, gravida lorem
* Duis molestie quam non felis sollicitudin viverra
* Nulla sed velit vitae tortor sagittis congue
* Sed rhoncus nulla id mi pharetra ultricies id nec est.

Nulla facilisi. Curabitur feugiat leo sit amet placerat volutpat. Nunc pretium placerat nibh. Integer id fringilla orci. Nulla placerat sapien in justo ultricies, et rutrum nisi vehicula. Ut quam metus, vulputate sit amet sapien id, laoreet vestibulum odio. Pellentesque nisi augue, ornare eget vehicula at, porta in nisi. Aenean blandit mi nisi, quis luctus est vulputate quis. Cras sit amet diam libero. Nunc lacinia consequat tempor. Aenean condimentum nunc quis neque gravida, ac porta urna fermentum.


text:
@interface ChapterEnd : Chapter {

}

@end


text:
<?php
/* vim: set expandtab tabstop=4 shiftwidth=4: */

/**
 * @package  RiceGrain_Validator
 * @license  http://www.opensource.org/licenses/bsd-license.php  BSD License (revised)
 */

namespace RiceGrain\Validator\Rule;

class RegexRule implements RuleInterface
{
    /**
     * @var string
     */
    protected $pattern;

    /**
     * @return \RiceGrain\Validator\Rule\RegexRule
     */
    public static function create()
    {
        $class = __CLASS__;
        return new $class;
    }

    /**
     * @param string $pattern
     */
    public function setPattern($pattern)
    {
        $this->pattern = $pattern;
        return $this;
    }

    /**
     * @return string
     */
    public function getPattern()
    {
        return $this->pattern;
    }
}

/*
 * Local Variables:
 * mode: php
 * coding: utf-8
 * tab-width: 4
 * c-basic-offset: 4
 * c-hanging-comment-ender-p: nil
 * indent-tabs-mode: nil
 * End:
 */


text:
namespace base {
namespace subtle {

inline AtomicWord NoBarrier_CompareAndSwap(volatile AtomicWord* ptr,
                                           AtomicWord old_value,
                                           AtomicWord new_value) {
  return NoBarrier_CompareAndSwap(
      reinterpret_cast<volatile Atomic32*>(ptr), old_value, new_value);
}

inline AtomicWord NoBarrier_AtomicExchange(volatile AtomicWord* ptr,
                                           AtomicWord new_value) {
  return NoBarrier_AtomicExchange(
      reinterpret_cast<volatile Atomic32*>(ptr), new_value);
}

inline AtomicWord NoBarrier_AtomicIncrement(volatile AtomicWord* ptr,
                                            AtomicWord increment) {
  return NoBarrier_AtomicIncrement(
      reinterpret_cast<volatile Atomic32*>(ptr), increment);
}

inline AtomicWord Barrier_AtomicIncrement(volatile AtomicWord* ptr,
                                          AtomicWord increment) {
  return Barrier_AtomicIncrement(
      reinterpret_cast<volatile Atomic32*>(ptr), increment);
}

inline AtomicWord Acquire_CompareAndSwap(volatile AtomicWord* ptr,
                                         AtomicWord old_value,
                                         AtomicWord new_value) {
  return base::subtle::Acquire_CompareAndSwap(
      reinterpret_cast<volatile Atomic32*>(ptr), old_value, new_value);
}

inline AtomicWord Release_CompareAndSwap(volatile AtomicWord* ptr,
                                         AtomicWord old_value,
                                         AtomicWord new_value) {
  return base::subtle::Release_CompareAndSwap(
      reinterpret_cast<volatile Atomic32*>(ptr), old_value, new_value);
}

inline void NoBarrier_Store(volatile AtomicWord *ptr, AtomicWord value) {
  NoBarrier_Store(
      reinterpret_cast<volatile Atomic32*>(ptr), value);
}

inline void Release_Store(volatile AtomicWord* ptr, AtomicWord value) {
  return base::subtle::Release_Store(
      reinterpret_cast<volatile Atomic32*>(ptr), value);
}

inline AtomicWord NoBarrier_Load(volatile const AtomicWord *ptr) {
  return NoBarrier_Load(
      reinterpret_cast<volatile const Atomic32*>(ptr));
}

inline AtomicWord Acquire_Load(volatile const AtomicWord* ptr) {
  return base::subtle::Acquire_Load(
      reinterpret_cast<volatile const Atomic32*>(ptr));
}

}  // namespace subtle
}  // namespace base

#endif  // !defined(ARCH_CPU_64_BITS)

#endif  // BASE_ATOMICOPS_INTERNALS_ATOMICWORD_COMPAT_H_


text:
class Dummy
  # will dynamically do things with this thing
end


text:
package com.strategicgains.repoexpress.domain;

/**
 * Represents an object that has an object ID.
 *
 * @author toddf
 * @since Mar 2, 2018
 * @param <T> the type of the 'id' property.
 */
public interface Entity<T>
extends Identifiable
{
	public T getId();
	public boolean hasId();
	public void setId(T oid);
}


text:
<?php
namespace Home\Model;
use Think\Model;
class MatResultModel extends Model {
	//获取累计投入总积分
	public function get_total_input_intergal(){
		$total_input_integral = $this -> sum("WIN_INTEGRAL");
		return intval($total_input_integral);
	}
}


text:
using System;
using System.Data.SqlClient;
using System.Text;
using System.Windows.Forms;
using System.Threading;
using System.Net.Sockets;
using SagaConfiguration;
using SagaSqlDataSouceEnumrator;

namespace Client
{
    public delegate void callBackHandle(bool valBool);

    public delegate void setControlValueCallBackHandle(string valString);

    public partial class Client : Form
    {
        private ClientConfig ClientConfig;
        public Client()
        {
            InitializeComponent();
            serverReady = false;
            ClientConfig = new ClientConfig("ClientConfig.xml",true);
        }

        #region 属性
        private bool serverReady { get; set; }
        #endregion
        private void setButtonLoginEnabled(bool valBool)
        {
            if (buttonLoging.InvokeRequired)
            {
                callBackHandle h = setButtonLoginEnabled;
                Invoke(h, new object[] {valBool});
            }
            else
            {
                buttonLoging.Enabled = valBool;
            }
        }
        private void setStatus(string valString)
        {
            if (statusStrip1.InvokeRequired)
            {
                setControlValueCallBackHandle h = setStatus;
                this.Invoke(h, new object[] {valString});
            }
            else
            {
                toolStripStatusLabel1.Text = valString;
            }
        }
        private void sendToServer(object obj)
        {
            TcpClient tc = null;
            NetworkStream ns = null;

            threadParameter p = obj as threadParameter;
            string valSendString = obj as string;
            try
            {
                tc = new TcpClient();
                tc.Connect(ClientConfig.serverInformation.communicateInformation.ComputerName, ClientConfig.serverInformation.communicateInformation.CommunicatePort);
                ns = tc.GetStream();
                if (sendMessageToServer(ns, valSendString))
                {
                    //Thread.Sleep(1000);
                    string tmpString = getMessageFromServer(ns);
                    if (tmpString != "")
                    {
                        setStatus("正在测试服务器返回的数据...");
                        stringAnalyze(tmpString);
                    }
                    else
                    {
                        setStatus("服务器接受了您的信息,但是没有响应!");
                    }
                }
                else
                {
                    setStatus("消息发送失败!");
                }
                ns.Close();
                tc.Close();
                setButtonLoginEnabled(true);
            }
            catch
            {

                if (tc != null)
                {
                    if (ns != null)
                    {
                        ns.Close();
                    }
                    tc.Close();
                }
                setStatus("无法与服务器建立连接!");
            }
        }
        private bool sendMessageToServer(NetworkStream valNetworkStream, string sendString)
        {
            try
            {
                byte[] sendByte = Encoding.Unicode.GetBytes(sendString);
                valNetworkStream.Write(sendByte, 0, sendByte.Length);
                return true;
            }
            catch
            {
                return false;
            }
        }
        private string getMessageFromServer(NetworkStream valNetworkStream)
        {
            try
            {
                int bufferSize = ClientConfig.localInformation.communicateInformation.StreamBufferSize;
                byte[] recievedByre = new byte[bufferSize];
                int byteCount = 0;
                string recievedString = "";
                //超时时间
                int timeOut = 0;
                while ((byteCount == 0) && (timeOut < 10))
                {
                    byteCount = valNetworkStream.Read(recievedByre, 0, bufferSize);
                    recievedString = Encoding.Unicode.GetString(recievedByre, 0, byteCount);
                    Thread.Sleep(100);
                    timeOut += 1;
                }
                return recievedString;
            }
            catch
            {
                return "";
            }
        }
        private void stringAnalyze(string valString)
        {
            string[] tmpSplitString = valString.Split(Convert.ToChar("|"));
            if (tmpSplitString[0]=="Server")
            {
                switch (tmpSplitString[1])
                {
                    case "ConnectInformation":
                        if (tmpSplitString[2] == "Ready")
                        {
                            #region 配置连接
                            SqlConnectionStringBuilder tmpSCSB = new SqlConnectionStringBuilder();
                            ServerType tmpServerType =
                                ClientConfig.serverInformation.serverConnectInformation.ServerType =
                                (ServerType)Enum.Parse(typeof(ServerType), tmpSplitString[3]);
                            String tmpServerName =
                                ClientConfig.serverInformation.serverConnectInformation.ServerName = tmpSplitString[4];
                            string tmpInstance =
                                ClientConfig.serverInformation.serverConnectInformation.Instance = tmpSplitString[5];
                            tmpSCSB.DataSource = tmpServerType == ServerType.SqlServerExpress
                                                     ? tmpServerName + @"\" + tmpInstance
                                                     : tmpServerName;
                            tmpSCSB.InitialCatalog =
                                ClientConfig.serverInformation.serverConnectInformation.DataBase = tmpSplitString[6];
                            tmpSCSB.UserID =
                                ClientConfig.serverInformation.serverConnectInformation.UserID = tmpSplitString[7];
                            tmpSCSB.Password =
                                ClientConfig.serverInformation.serverConnectInformation.Password = tmpSplitString[8];
                            #endregion
                            if (testConnectString(tmpSCSB.ConnectionString))
                            {
                                setStatus("服务器端正常,您可以登陆了!");
                                //保存设置。
                                ClientConfig.save();
                            }
                            else
                            {
                                setStatus("不能根据服务器返回的数据进行连接!");
                                MessageBox.Show("不能根据服务器返回的数据进行连接!\n有可能是以下原因造成:\n1、服务器防火墙阻止了针对数据库的连接!", "注意");
                            }
                        }
                        else
                        {
                            setStatus("服务器未设置或设置不当!");
                            MessageBox.Show("以下原因有可能引起本错误:\n1、服务器未准备好!\n2、服务器未设置或设置不当!\n请重新设置服务器或等待服务器!", "错误");
                        }
                        break;
                }

            }
        }
        private bool testConnectString(string valString)
        {
            using (SqlConnection tmpSqlConnection = new SqlConnection(valString))
            {
                try
                {
                    tmpSqlConnection.Open();
                    tmpSqlConnection.Close();
                    return true;
                }
                catch
                {
                    return false;
                }
            }
        }
        private void button1_Click(object sender, EventArgs e)
        {
            TcpClient tc = null;
            NetworkStream ns = null;
            try
            {
                tc = new TcpClient();
                tc.Connect(ClientConfig.serverInformation.communicateInformation.ComputerName, ClientConfig.serverInformation.communicateInformation.CommunicatePort);
                ns = tc.GetStream();
                if (sendMessageToServer(ns, "Client|Login|郝文标"))
                {
                    string tmpString = getMessageFromServer(ns);
                    if (tmpString !="")
                    {
                        MessageBox.Show(tmpString);
                    }
                    else
                    {
                        MessageBox.Show("服务器接受了您的信息,但是没有响应!");
                    }
                }
                else
                {
                    MessageBox.Show("消息发送失败!");
                }
                ns.Close();
                tc.Close();
            }
            catch
            {

                if (tc != null)
                {
                    if (ns != null)
                    {
                        ns.Close();
                    }
                    tc.Close();
                }
                MessageBox.Show("can't connet to server!");
            }
        }
        private void button2_Click(object sender, EventArgs e)
        {
            Close();
        }
        private void button3_Click(object sender, EventArgs e)
        {
            TcpClient tc = null;
            NetworkStream ns = null;
            try
            {
                tc = new TcpClient();
                tc.Connect(ClientConfig.serverInformation.communicateInformation.ComputerName,
                           ClientConfig.serverInformation.communicateInformation.CommunicatePort);
                ns = tc.GetStream();
                if (sendMessageToServer(ns, "Client|Logout|郝文标"))
                {
                    string tmpString = getMessageFromServer(ns);
                    if (tmpString != "")
                    {
                        MessageBox.Show(tmpString);
                    }
                    else
                    {
                        MessageBox.Show("服务器接受了您的信息,但是没有响应!");
                    }
                }
                else
                {
                    MessageBox.Show("消息发送失败!");
                }
                ns.Close();
                tc.Close();
            }
            catch
            {

                if (tc != null)
                {
                    if (ns != null)
                    {
                        ns.Close();
                    }
                    tc.Close();
                }
                MessageBox.Show("can't connet to server!");
            }
        }
        private void button4_Click(object sender, EventArgs e)
        {
            TcpClient tc = null;
            NetworkStream ns = null;
            try
            {
                tc = new TcpClient();
                tc.Connect(ClientConfig.serverInformation.communicateInformation.ComputerName,
                           ClientConfig.serverInformation.communicateInformation.CommunicatePort);
                ns = tc.GetStream();
                if (sendMessageToServer(ns, "haowenbiao|message|" + textBox1.Text))
                {
                    string tmpString = getMessageFromServer(ns);
                    if (tmpString != "")
                    {
                        MessageBox.Show(tmpString);
                    }
                    else
                    {
                        MessageBox.Show("服务器接受了您的信息,但是没有响应!");
                    }
                }
                else
                {
                    MessageBox.Show("消息发送失败!");
                }
                ns.Close();
                tc.Close();
            }
            catch
            {

                if (tc != null)
                {
                    if (ns != null)
                    {
                        ns.Close();
                    }
                    tc.Close();
                }
                MessageBox.Show("can't connet to server!");
            }
        }
        private void button5_Click(object sender, EventArgs e)
        {
            Search s = new Search();
            s.ShowDialog(this);
        }

        private void buttonLoging_Click(object sender, EventArgs e)
        {
            ParameterizedThreadStart p = sendToServer;
            Thread t = new Thread(p);
            t.IsBackground = true;

            string sendString = "Client|Loging|郝文标";
            toolStripStatusLabel1.Text = "正在发送消息...";
            ((Button)sender).Enabled = false;
            t.Start(sendString);
        }

        private void Client_FormClosed(object sender, FormClosedEventArgs e)
        {

        }
    }
}


text:
package org.dcm4chex.archive.web.maverick.trash;

import org.dcm4chex.archive.ejb.interfaces.ContentManager;
import org.dcm4chex.archive.ejb.interfaces.ContentManagerHome;
import org.dcm4chex.archive.util.EJBHomeFactory;
import org.dcm4chex.archive.web.maverick.model.InstanceModel;

/**
 *
 * @author gunter.zeilinger@tiani.com
 * @version $Revision: 11261 $ $Date: 2009-05-08 16:15:19 +0800 (周五, 08 5月 2009) $
 * @since 28.01.2004
 */
public class ExpandTrashInstanceCtrl extends ExpandTrashSeriesCtrl {

    private long instancePk;

    public final void setInstancePk(long pk) {
        this.instancePk = pk;
    }

    protected String perform() throws Exception {
        TrashFolderForm folderForm = TrashFolderForm.getTrashFolderForm(getCtx());
        InstanceModel m = folderForm.getInstanceByPk(patPk,studyPk,seriesPk,instancePk);
        if ( expand ) {
            try {
                ContentManagerHome home = (ContentManagerHome) EJBHomeFactory
                .getFactory().lookup(ContentManagerHome.class, ContentManagerHome.JNDI_NAME);
                ContentManager cm = home.create();
                if ( m != null ) m.setFiles(cm.listFilesOfPrivateInstance( instancePk ));
            } catch (Exception e) {

            }
        } else {
            if ( m != null ) m.setFiles(null);
        }
        return SUCCESS;
    }

}


text:
/**
 * Contains information about a touch
 * (basically it's a vector3)
 */
Smudge.TouchData = function()
{
    /**
     * X coordinate of the touch (or X velocity)
     * @type {Number}
     */
    this.x = 0;

    /**
     * Y coordinate of the touch (or Y velocity)
     * @type {Number}
     */
    this.y = 0;

    /**
     * Timestamp of the touch (or the time delta)
     * This value is set from event timestamps so it represents milliseconds
     * @type {Number}
     */
    this.time = 0;
};

/**
 * Sets values of all properties
 */
Smudge.TouchData.prototype.set = function(x, y, time)
{
    this.x = x;
    this.y = y;
    this.time = time;
};

/**
 * Sets values of all properties from another TouchData object
 */
Smudge.TouchData.prototype.setFromTouchData = function(touchData)
{
    this.x = touchData.x;
    this.y = touchData.y;
    this.time = touchData.time;
};

/**
 * Sets this object to represent the delta between two given objects
 */
Smudge.TouchData.prototype.setToDeltaBetwen = function(from, to)
{
    this.x = to.x - from.x;
    this.y = to.y - from.y;
    this.time = to.time - from.time;
};

/**
 * Sets this object to represent the velocity of a given delta object
 */
Smudge.TouchData.prototype.setToVelocityOf = function(delta, milliseconds)
{
    // by default calculate velocity in SI (px/s)
    // https://en.wikipedia.org/wiki/International_System_of_Units
    milliseconds = milliseconds || 1000;

    this.x = delta.x / (delta.time / milliseconds);
    this.y = delta.y / (delta.time / milliseconds);
    this.time = milliseconds;
};


text:
<?php

namespace Symfony\Component\HttpKernel\DependencyInjection;

use Symfony\Contracts\Service\ResetInterface;

/**
 * Resets provided services.
 *
 * @author Alexander M. Turek <me@derrabus.de>
 * @author Nicolas Grekas <p@tchwork.com>
 *
 * @internal
 */
class ServicesResetter implements ResetInterface
{
    private $resettableServices;
    private $resetMethods;

    public function __construct(\Traversable $resettableServices, array $resetMethods)
    {
        $this->resettableServices = $resettableServices;
        $this->resetMethods = $resetMethods;
    }

    public function reset()
    {
        foreach ($this->resettableServices as $id => $service) {
            foreach ((array) $this->resetMethods[$id] as $resetMethod) {
                $service->$resetMethod();
            }
        }
    }
}


text:
from distutils.core import setup
from ClipUNL import VERSION

setup(
        name='pyclipunl',
        version=VERSION,
        description='Library to scrape UNL\'s CLIP (https://clip.unl.pt) data',
        long_description="""This library allows people with credentials
to the UNL (Universidade Nova de Lisboa) CLIP system, to
programatically access their data""",
        author='David Serrano',
        author_email='david.nonamedguy@gmail.com',
        url="https://github.com/libclipunl/pyclipunl",
        py_modules=['ClipUNL'],
        requires=['bs4 (>=4.0)'],
        license='MIT'
    )


text:
package org.wltea.analyzer.help;

import org.elasticsearch.common.logging.ESLogger;
import org.elasticsearch.common.logging.Loggers;

public class Sleep {

	public static ESLogger logger= Loggers.getLogger("ik-analyzer");

	public enum Type{MSEC,SEC,MIN,HOUR};
	public static void sleep(Type type,int num){
		try {
			switch(type){
				case MSEC:
					Thread.sleep(num);
					return;
				case SEC:
					Thread.sleep(num*1000);
					return;
				case MIN:
					Thread.sleep(num*60*1000);
					return;
				case HOUR:
					Thread.sleep(num*60*60*1000);
					return;
				default:
					System.err.println("输入类型错误,应为MSEC,SEC,MIN,HOUR之一");
					return;
			}
		} catch (InterruptedException e) {
			logger.error(e.getMessage(), e);
		}
	}

}


text:
var appendView = function(view) {
  Ember.run(function() { view.appendTo('#qunit-fixture'); });
};

var compile = Ember.Handlebars.compile;

var view;

module("Handlebars {{#if}} and {{#unless}} helpers", {
  teardown: function() {
    Ember.run(function(){
      if (view) {
        view.destroy();
      }
    });
  }
});

test("unless should keep the current context (#784)", function() {
  view = Ember.View.create({
    o: Ember.Object.create({foo: '42'}),

    template: compile('{{#with view.o}}{{#view Ember.View}}{{#unless view.doesNotExist}}foo: {{foo}}{{/unless}}{{/view}}{{/with}}')
  });

  appendView(view);

  equal(view.$().text(), 'foo: 42');
});

test("The `if` helper tests for `isTruthy` if available", function() {
  view = Ember.View.create({
    truthy: Ember.Object.create({ isTruthy: true }),
    falsy: Ember.Object.create({ isTruthy: false }),

    template: compile('{{#if view.truthy}}Yep{{/if}}{{#if view.falsy}}Nope{{/if}}')
  });

  appendView(view);

  equal(view.$().text(), 'Yep');
});

test("The `if` helper does not print the contents for an object proxy without content", function() {
  view = Ember.View.create({
    truthy: Ember.ObjectProxy.create({ content: {} }),
    falsy: Ember.ObjectProxy.create({ content: null }),

    template: compile('{{#if view.truthy}}Yep{{/if}}{{#if view.falsy}}Nope{{/if}}')
  });

  appendView(view);

  equal(view.$().text(), 'Yep');
});

test("The `if` helper updates if an object proxy gains or loses context", function() {
  view = Ember.View.create({
    proxy: Ember.ObjectProxy.create({ content: null }),

    template: compile('{{#if view.proxy}}Yep{{/if}}')
  });

  appendView(view);

  equal(view.$().text(), '');

  Ember.run(function() {
    view.set('proxy.content', {});
  });

  equal(view.$().text(), 'Yep');

  Ember.run(function() {
    view.set('proxy.content', null);
  });

  equal(view.$().text(), '');
});

test("The `if` helper updates if an array is empty or not", function() {
  view = Ember.View.create({
    array: Ember.A(),

    template: compile('{{#if view.array}}Yep{{/if}}')
  });

  appendView(view);

  equal(view.$().text(), '');

  Ember.run(function() {
    view.get('array').pushObject(1);
  });

  equal(view.$().text(), 'Yep');

  Ember.run(function() {
    view.get('array').removeObject(1);
  });

  equal(view.$().text(), '');
});


text:
"""Check for superfluous whitespace at ends of lines.

Keeps diffs clean and persnickety developers happy.
"""

import dataclasses
import os
import subprocess
import sys

exceptions = frozenset([])

@dataclasses.dataclass(frozen=True)
class Match:
    """Information of the match for superfluous trailing whitespaces.

    Attributes:
      filename: Name of file containing the match.
      line_number: Line number of the match.
      line: Content of the line containing the match.
    """

    filename: str
    line_number: int
    line: str

def main():
    chdir_to_repo_root()
    matches = git_grep("  *$")
    errors = [m for m in matches if m.filename not in exceptions]
    okay = True

    if errors:
        print("Superfluous trailing whitespace:")
        for error in errors:
            print("%s:%d:%s$" % (error.filename, error.line_number, error.line))
        print()
        okay = False

    stale_exceptions = exceptions - frozenset(m.filename for m in matches)
    if stale_exceptions:
        print(
            "Stale exceptions (no whitespace problems; prune exceptions list):"
        )
        for filename in stale_exceptions:
            print(filename)
        print()
        okay = False

    sys.exit(0 if okay else 1)

def git_grep(pattern):
    """Run `git grep` and collect matches.

    This function exits the process if `git grep` writes any stderr: for
    instance, if the provided pattern is an invalid regular expression.

    Args:
      pattern: `str`; a pattern argument to `git grep`.

    Returns:
      A list of `Match` values.
    """
    cmd = ["git", "grep", "-Izn", "--", pattern]
    p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
    (stdout, stderr) = p.communicate()
    if stderr:
        getattr(sys.stderr, "buffer", sys.stderr).write(
            stderr
        )  # Python 2 compat
        sys.exit(1)
    result = []
    for (
        line
    ) in stdout.splitlines():  # assumes no newline characters in filenames
        (filename_raw, line_number_raw, line_raw) = line.split(b"\0", 2)
        match = Match(
            filename=filename_raw.decode("utf-8", errors="replace"),
            line_number=int(line_number_raw),
            line=line_raw.decode("utf-8", errors="replace"),
        )
        result.append(match)
    return result

def chdir_to_repo_root():
    toplevel = subprocess.check_output(["git", "rev-parse", "--show-toplevel"])
    toplevel = toplevel[:-1]  # trim trailing LF
    os.chdir(toplevel)

if __name__ == "__main__":
    main()


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

    <string name="app_name">PostageCalcTabs</string>
    <string name="hello_world">Hello world!</string>
    <string name="menu_settings">Settings</string>
    <string name="title_activity_calculate">CalculateActivity</string>
    <string name="title_activity_info">InfoActivity</string>
    <string name="title_activity_android_tab_layout">Postage Calculator</string>
    <string name="info_string">Info tab here</string>
    <string name="calculate_string">Calculate tab here</string>
    <string name="calc_button">Calculate</string>
    <string name="input_directions">Choose the type of mail you want to send:</string>
    <string name="weight_input">Enter the weight:</string>
    <string name="letters">Letter</string>
    <string name="large_envelopes">Large Envelope</string>
    <string name="packages">Package</string>
    <string name="weight_hint">0 – 13 oz</string>
    <string-array name="post_type">
        <item>Select package type…</item>
        <item>Letters</item>
        <item>Large Envelopes</item>
        <item>Packages</item>
    </string-array>
    <string name="select_please">Please select a package type above!</string>
    <string name="image_desc">Diagram of post type</string>
	<string name="info_letters">
		\n
		• Must be rectangular.\n
		• Minimum size is 5" long x 3 1/2" high x 0.007" thick.\n
		• Maximum size of 11 1/2" long x 6 1/8" high x 1/4" thick.\n
		• Maximum weight is 3.5 oz.\n
		• A letter will be charged a nonmachinable surcharge if it's a square letter 5" x 5" or larger,
		it doesn't bend easily, has clasps or similar closure devices, has an address parallel to the shorter
		dimension of the letter, is lumpy, or the length divided by height is less than 1.3 or more than 2.5.\n
		• Most hazardous materials cannot be shipped.\n
	</string>
	<string name="info_large">
		\n
		• Must be rectangular.\n
		• Minimum size is either more than 11 1/2 inch long x 6 1/8 inch high OR 1/4 inch thick.\n
		• Maximum size is 15 inch long x 12 inch high x 3/4 inch thick.\n
		• Maximum weight of 13 oz.\n
		• Large envelopes that exceed these dimensions will be charged package rates.\n
		• Most hazardous materials cannot be shipped.\n
	</string>
	<string name="info_packages">
		\n
		• Maximum weight of 13 oz.\n
		• Up to 108″ in combined length and girth.\n
		• Most hazardous materials cannot be shipped.\n
		• With few exceptions, cigarettes and smokeless tobacco shipments cannot be mailed.\n
	</string>

</resources>


text:
import { NgModule, Optional, NgZone, InjectionToken, ModuleWithProviders, PLATFORM_ID, isDevMode, Injector } from '@angular/core';
import { AppCheck as FirebaseAppCheck } from 'firebase/app-check';
import { ɵgetDefaultInstanceOf, ɵAngularFireSchedulers, VERSION } from '@angular/fire';
import { AppCheck, AppCheckInstances, APP_CHECK_PROVIDER_NAME } from './app-check';
import { FirebaseApps, FirebaseApp } from '@angular/fire/app';
import { registerVersion } from 'firebase/app';
import { isPlatformServer } from '@angular/common';

export const PROVIDED_APP_CHECK_INSTANCES = new InjectionToken<AppCheck[]>('angularfire2.app-check-instances');
export const APP_CHECK_NAMESPACE_SYMBOL = Symbol('angularfire2.app-check.namespace');

export function defaultAppCheckInstanceFactory(provided: FirebaseAppCheck[]|undefined, defaultApp: FirebaseApp) {
  const defaultAppCheck = ɵgetDefaultInstanceOf<FirebaseAppCheck>(APP_CHECK_PROVIDER_NAME, provided, defaultApp);
  return defaultAppCheck && new AppCheck(defaultAppCheck);
}

const LOCALHOSTS = ['localhost', '0.0.0.0', '127.0.0.1'];
const isLocalhost = typeof window !== 'undefined' && LOCALHOSTS.includes(window.location.hostname);

export function appCheckInstanceFactory(fn: (injector: Injector) => FirebaseAppCheck) {
  // tslint:disable-next-line:ban-types
  return (zone: NgZone, injector: Injector, platformId: Object) => {
    // Node should use admin token provider, browser devmode and localhost should use debug token
    if (!isPlatformServer(platformId) && (isDevMode() || isLocalhost)) {
      globalThis.FIREBASE_APPCHECK_DEBUG_TOKEN ??= true;
    }
    const appCheck = zone.runOutsideAngular(() => fn(injector));
    return new AppCheck(appCheck);
  };
}

const APP_CHECK_INSTANCES_PROVIDER = {
  provide: AppCheckInstances,
  deps: [
    [new Optional(), PROVIDED_APP_CHECK_INSTANCES ],
  ]
};

const DEFAULT_APP_CHECK_INSTANCE_PROVIDER = {
  provide: AppCheck,
  useFactory: defaultAppCheckInstanceFactory,
  deps: [
    [new Optional(), PROVIDED_APP_CHECK_INSTANCES ],
    FirebaseApp,
    PLATFORM_ID,
  ]
};

@NgModule({
  providers: [
    DEFAULT_APP_CHECK_INSTANCE_PROVIDER,
    APP_CHECK_INSTANCES_PROVIDER,
  ]
})
export class AppCheckModule {
  constructor() {
    registerVersion('angularfire', VERSION.full, 'app-check');
  }
}

export function provideAppCheck(fn: (injector: Injector) => FirebaseAppCheck, ...deps: any[]): ModuleWithProviders<AppCheckModule> {
  return {
    ngModule: AppCheckModule,
    providers: [{
      provide: PROVIDED_APP_CHECK_INSTANCES,
      useFactory: appCheckInstanceFactory(fn),
      multi: true,
      deps: [
        NgZone,
        Injector,
        PLATFORM_ID,
        ɵAngularFireSchedulers,
        FirebaseApps,
        ...deps,
      ]
    }]
  };
}


text:
title:  'Z rozbouřeného moře do nebeských oblaků'
date:  15/02/2020
---

### Texty na tento týden
Daniel 7

>
Základní verš

> "Království, vladařská moc a velikost všech království pod celým nebem budou dány lidu svatých Nejvyššího. Jeho království bude království věčné a všechny vladařské moci ho budou uctívat a poslouchat." (Da 7,27)

Vidění zaznamenané v 7. kapitole knihy Daniel, kterému se budeme tento týden věnovat, je paralelou snu z 2. kapitoly a dále rozvíjí to, co bylo zjeveno. Zaprvé, vidění se odehrává v noci a ukazuje moře rozbouřené čtyřmi větry. Obraz vody v noční temnotě připomíná stvoření, ale zde je celé stvoření jakoby zdeformované. Zadruhé, zvířata ve vidění jsou nečistá nebo různé smíšená, což symbolizuje porušení stvořitelského uspořádání. Zatřetí, zvířata jsou zobrazena jako vládnoucí síly. Zdá se, jako by se tyto mocnosti zmocnily vlády, kterou v zahradě Eden Bůh svěřil Adamovi (člověku). A začtvrté, s příchodem Syna člověka se obnovuje Boží vláda a Bůh ji svěřuje těm, kterým právem náleží. To, o co Adam v ráji přišel, obnovuje Syn člověka prostřednictvím nebeského soudu.

Výše uvedený popis přináší panoramatický pohled na biblické obrazy, které můžeme pozorovat na pozadí mnoha symbolů. Naštěstí přichází anděl a vysvětluje některé důležité detaily, takže jsme schopni pochopit hlavní obrysy tohoto úžasného vidění.

**Budování společenství**

`Podělte se ve skupině o to, co jste v posledním týdnu zažili. Jak vás tento prožitek ovlivnil ve vašem duchovním životě?`

`Řekněte ostatním o situaci, kdy jste v poslední době vnímali výrazný projev Boží přítomnosti ve vašem životě. Vyjádřete veřejně Bohu své poděkování.`


text:
#ifndef _ASM_SERIAL_H
#define _ASM_SERIAL_H

/*
 * This assumes you have a 1.8432 MHz clock for your UART.
 *
 * It'd be nice if someone built a serial card with a 24.576 MHz
 * clock, since the 16550A is capable of handling a top speed of 1.5
 * megabits/second; but this requires the faster clock.
 */
#define BASE_BAUD (1843200 / 16)

#endif /* _ASM_SERIAL_H */