Subversion Repositories wimsdev

Rev

Rev 2939 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2939 Rev 15726
Line 13... Line 13...
13
!if $ecnt_<=0
13
!if $ecnt_<=0
14
 !exit
14
 !exit
15
!endif
15
!endif
16
 
16
 
17
!for i=1 to $ecnt_
17
!for i=1 to $ecnt_
18
 a_$i=!word $i of $scores
18
  a_$i=!word $i of $scores
19
 b_$i=!word $i of $means
19
  b_$i=!word $i of $means
20
 c_$i=!word $i of $requires
20
  c_$i=!word $i of $requires
21
!next i
21
!next i
22
 
22
 
23
!for i=1 to $ecnt_
23
!for i=1 to $ecnt_
24
 l_=!record $i of $s_
24
  l_=!record $i of $s_
25
 d_=!line 7 of $l_
25
  d_=!line 7 of $l_
26
 d_=!trim $d_
26
  d_=!trim $d_
27
 C_=
27
  C_=
28
 !if $d_!=$empty
28
  !if $d_!=$empty
29
  d_=!translate internal , to $\
29
    d_=!translate internal , to $\
30
$ in $d_
30
$ in $d_
31
  d_=!translate internal +: to $ , in $d_
31
    d_=!translate internal +: to $ , in $d_
32
  d_=!nonempty lines $d_
32
    d_=!nonempty lines $d_
33
  N_=!linecnt $d_
33
    N_=!linecnt $d_
34
  !for j=1 to $N_
34
    !for j=1 to $N_
35
   l_=!line $j of $d_
35
      l_=!line $j of $d_
36
   !distribute items $l_ into e_,p_
36
      !distribute items $l_ into e_,p_
37
   !if $p_>0 and $p_<=100
37
      !if $p_>0 and $p_<=100
38
    e_=!words2items $e_
38
        e_=!words2items $e_
39
    !distribute items 0,0,0 into sum_,mean_,user_,term_
39
        !distribute items 0,0,0 into sum_,mean_,user_,term_
40
    !for e in $e_
40
        !for e in $e_
41
     !if $e>0 and $e<256
41
          !if $e>0 and $e<256
42
      term_=$[$term_+10]
42
            term_=$[$term_+10]
43
      sum_=$[$sum_+$(c_$e)]
43
            sum_=$[$sum_+$(c_$e)]
44
      mean_=$[$mean_+$(b_$e)]
44
            mean_=$[$mean_+$(b_$e)]
45
      user_=$[$user_+$(a_$e)]
45
            user_=$[$user_+$(a_$e)]
46
     !endif
46
          !endif
47
    !next
47
        !next
48
    !if $sum_>0 and $user_*sqrt($mean_/$term_)/$sum_*100<$p_
48
        !if $sum_>0 and $user_*sqrt($mean_/$term_)/$sum_*100<$p_
49
     C_=!append item $e_ to $C_
49
          C_=!append item $e_ to $C_
50
    !endif
50
        !endif
51
   !endif
51
      !endif
52
  !next j
52
    !next j
53
  C_=!listuniq $C_
53
    C_=!listuniq $C_
54
 !endif
54
  !endif
55
 !appendfile $depfile :$C_
55
  !appendfile $depfile :$C_
56
 deps=$deps$C_;
56
  deps=$deps$C_;
57
!next i
57
!next i