Utoljára aktív 1728751025

Revízió 9969dd73b6bad928ff669055fa7e3fac1fa38d09

automod.nv Eredeti Playground
1|------------------------------------------|
2|--| Variable assignment and constants. |--|
3|------------------------------------------|
4
5|threshold = 3| threshold, threshold, threshold
6|threshold = 5| threshold = 3, threshold, threshold
7|user age = 2 | user age, user age
8|user age = 3 | user age = 2, user age
9|user post count = 4| user post count, user post count, user post count, user post count
10|user post count = 5| user post count = 4, user post count
11|user banned words = 2| user banned words, user banned words
12|user banned words = 3| user banned words = 2, user banned words
13
14|r0 = user age, user age| temp, r0, r0 = user age
15|r0 = user age| user age = temp
16
17|r0 = user post count, user post count| temp, r0, r0 = user post count
18|r0 = user post count| user post count = temp
19
20|r0 = user banned words, user banned words| temp, r0, r0 = user banned words
21|r0 = user banned words| user banned words = temp
22
23|r1 = threshold, threshold| r1, r1 = threshold
24|r1 = threshold|
25
26|user age = temp, temp| user age, user age = temp
27|user age = temp|
28
29|user post count = temp, temp| user post count, user post count = temp
30|user post count = temp|
31
32|user banned words = temp, temp| user banned words, user banned words = temp
33|user banned words = temp|
34
35
36|--------------------|
37|--| Comparisons. |--|
38|--------------------|
39
40|r0 ? r1, r0, r1| r0 ? r1
41|r0 ? r1, r0 | r0 > r1
42|r0 ? r1, r1 | r0 < r1
43|r0 ? r1 | r0 == r1
44
45|r0 ==? r1, r0 < r1 | r0 != r1
46|r0 ==? r1, r0 > r1 | r0 != r1
47|r0 ==? r1, r0 == r1| r0 == r1
48|r0 == r1? | r0 ? r1, r0 ==? r1
49
50|r0 >? r1, r0 < r1 | r0 <= r1
51|r0 >? r1, r0 > r1 | r0 > r1
52|r0 >? r1, r0 == r1| r0 <= r1
53|r0 > r1? | r0 ? r1, r0 >? r1
54
55|r0 <? r1, r0 < r1 | r0 < r1
56|r0 <? r1, r0 > r1 | r0 >= r1
57|r0 <? r1, r0 == r1| r0 >= r1
58|r0 < r1? | r0 ? r1, r0 <? r1
59
60|r0 >= r1?| r0 < r1?
61|r0 <= r1?| r0 > r1?
62|r0 != r1?| r0 == r1?
63
64
65|---------------------------|
66|--| Custom comparisons. |--|
67|---------------------------|
68
69|user age <? threshold, r0 >= r1| user age >= threshold
70|user age <? threshold, r0 < r1 | user age < threshold
71|user age < threshold?|
72 r0 = user age,
73 r1 = threshold,
74 r0 < r1?,
75 user age <? threshold
76
77|user post count <? threshold, r0 >= r1| user post count >= threshold
78|user post count <? threshold, r0 < r1 | user post count < threshold
79|user post count < threshold?|
80 r0 = user post count,
81 r1 = threshold,
82 r0 < r1?,
83 user post count <? threshold
84
85|user banned words <? threshold, r0 >= r1| user banned words >= threshold
86|user banned words <? threshold, r0 < r1 | user banned words < threshold
87|user banned words < threshold?|
88 r0 = user banned words,
89 r1 = threshold,
90 r0 < r1?,
91 user banned words <? threshold
92
93
94|-----------------------------------------|
95|--| Some convenient names for things. |--|
96|-----------------------------------------|
97
98|is the user's age less than the threshold? | user age < threshold?
99|is the user's post count less than the threshold?| user post count < threshold?
100|has the user hit the banned word threshold? | user banned words < threshold?
101
102|user post count < threshold| the user doesn't meet the minimum posting requirements
103|user post count >= threshold| the user meets the minimum posting requirements
104
105|user age < threshold| the user is younger than the threshold
106|user age >= threshold| the user is older than the threshold
107
108|user banned words < threshold| the user hasn't hit the banned word threshold
109|user banned words >= threshold| the user has hit the banned word threshold
110
111
112|----------------------|
113|--| Automod rules. |--|
114|----------------------|
115
116|automod criteria|
117 user age is less than 3 years old?,
118 user has under 5 posts?,
119 user has used a banned word 3 times?
120
121|user age is less than 3 years old?|
122 threshold = 3,
123 is the user's age less than the threshold?
124
125|user has under 5 posts?|
126 threshold = 5,
127 is the user's post count less than the threshold?
128
129|user has used a banned word 3 times?|
130 threshold = 3,
131 has the user hit the banned word threshold?
132
133|the user is younger than the threshold, the user doesn't meet the minimum posting requirements, the user has hit the banned word threshold|
134 flag the user
135
136|----------------------------------------------------------|
137|--| Classify a user given some information about them. |--|
138|----------------------------------------------------------|
139
140|| automod criteria,
141 user age = 2,
142 user post count = 4,
143 user banned words = 3