File: oefdefault.proc

package info (click to toggle)
wims 2%3A4.29a%2Bdfsg1-3
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 185,704 kB
  • sloc: xml: 366,687; javascript: 120,570; ansic: 62,341; java: 62,170; sh: 7,744; perl: 3,937; yacc: 3,217; cpp: 1,915; lex: 1,805; makefile: 1,084; lisp: 914; pascal: 601; python: 520; php: 318; asm: 7
file content (80 lines) | stat: -rw-r--r-- 3,333 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
!read oef/default
!if $step=$empty
  !readdef wimshome/log/classes/$wims_class/supervisor
  !read oef/default
  !bound user_qnum between integer 1 and 9 default $(default_choice[1])
  !bound user_qcmlevel between integer 1 and 9 default $(default_choice[2])
  !bound user_sepow between 1 and 6 default $(list_sepow[1])
  !bound user_expow between 1 and 6 default $(list_expow[1])
  !bound user_precw between 0 and 1 default $(list_precw[1])
  !if $nw_scoredelay!=$empty
    nw_scoredelay=!items2words $nw_scoredelay
    !distribute word $nw_scoredelay into l1,l2
    !bound l1 between 1 to 2000
    !bound l2 between $l1 to 2000 default $l1
    nw_scoredelay=$l1,$l2
  !endif
  !bound user_qcmpresent between integer 2 and 8 default $(default_choice[4])
  !bound user_givegood between 0 and $limit_version default $(default_choice[3])
  !bound user_givefeed between 0 and $limit_version default $(default_choice[3])
  !bound user_givehint between 0 and $limit_version default $(default_choice[3])
  !bound nw_givegood between 0 and $limit_version default $user_nw_givegood
  !bound nw_givehint between -1 and $limit_version default $user_nw_givehint
  !bound nw_givefeed between -1 and $limit_version default $user_nw_givefeed
  nw_check_=$nw_check1,$nw_check2
  nw_check_=!listintersect $nw_check_ and 1,2
!else
  !bound nw_qnum between integer 1 and 9 default $user_qnum
  !bound nw_qcmlevel between 1 and 9 default $user_qcmlevel
  nw_scoredelay=!items2words $nw_scoredelay
  !distribute word $nw_scoredelay into l1,l2
  !if $l1!=$empty or $l2!=$empty
    !bound l1 between 1 and 2000
    !bound l2 between $l1 and 2000 default $empty
    nw_scoredelay=$l1,$l2
  !else
    nw_scoredelay=$empty
  !endif
  !bound nw_qcmpresent between 2 and 8 default $user_qcmpresent
  !bound nw_givesol between 0 and $limit_version default $user_givesol
  !bound nw_givefeed between -1 and $limit_version default $user_givefeed
  !bound nw_givegood between 0 and $limit_version default $user_givegood
  !bound nw_givehint between -1 and $limit_version default $user_givehint
  !bound nw_sepow between 1 and 6 default $user_sepow
  !bound nw_expow between 1 and 6 default $user_expow
  !bound nw_precw between 0 and 1 default $user_precw
  !set nw_check_=$nw_check1,$nw_check2
  !set nw_check_=!nonempty items $nw_check_
  !set nw_check_=!listintersect $nw_check_ and 1,2

  !setdef !set user_qnum=$nw_qnum\
!set user_qcmlevel=$nw_qcmlevel\
!set user_scoredelay=$nw_scoredelay\
!set user_qcmpresent=$nw_qcmpresent\
!set user_givesol=$nw_givesol\
!set user_givefeed=$nw_givefeed\
!set user_givegood=$nw_givegood\
!set user_givehint=$nw_givehint\
!set user_check=$nw_check_\
!set user_sepow=$nw_sepow\
!set user_expow=$nw_expow\
!set user_precw=$nw_precw\
in wimshome/log/classes/$wims_class/supervisor

  !setdef wims_oefdefault_qnum=$nw_qnum\
wims_oefdefault_qcmlevel=$nw_qcmlevel\
wims_oefdefault_scoredelay=$nw_scoredelay\
wims_oefdefault_qcmpresent=$nw_qcmpresent\
wims_oefdefault_sol=$nw_givesol\
wims_oefdefault_feed=$nw_givefeed\
wims_oefdefault_good=$nw_givegood\
wims_oefdefault_hint=$nw_givehint\
wims_oefdefault_check=$nw_check_\
wims_oefdefault_expow=$nw_expow\
wims_oefdefault_sepow=$nw_sepow\
wims_oefdefault_precw=$nw_precw\
in wimshome/sessions/$wims_session/var.stat

  !readdef wimshome/log/classes/$wims_class/supervisor

!endif