File size: 2,902 Bytes
eb90a8a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
# Copyright (c) 2020, 2021 International Business Machines Corporation
# Prepared by: Geert Janssen <geert@us.ibm.com>

# Example of an codenet_aggregate.sh configuration file.
# It is expected that this file defines lists of problems, languages,
# statutes and min and max code sizes.
# COPY THIS FILE AND EDIT IT TO YOUR NEEDS.

# Set this to override default or -d option:
#DATA_DIR=""

# Other options could be overridden here as well:
#OUTPUT_DIR=                    # -o option
#QUIET=                         # -q option
#DRYRUN=                        # -n option
# How many samples to provide per selection.
# A selection is a problem/language/status combination.
# When not defined, it means all available.
#NUM_SAMPLES=                   # -s option
# How many samples to generate in total.
# When not defined, it means all available.
#NUM_OVERALL_SAMPLES=           # -t option

# Problems are selected by the SELECT_PROBLEM predicate.
# The arguments are:
# $1: a string problem id with pattern "p[0-9]{5}"
function SELECT_PROBLEM() {
    # Ex: select a single problem:
    #[ "$1" == "p00253" ] && return 0 || return 1
    # Ex: select all problems:
    #return 0
    # Ex: select a range of problems (string comparison!):
    # (p00001 through p00007, bounds inclusive)
    #[ ! "p00001" \> "$1" -a ! "$1" \> "p00007" ] && return 0 || return 1
    # Ex: select from a set of problems:
    for p in "p02532" "p00341" "p02000"; do
        if [ "$1" == "${p}" ]; then
            return 0;
        fi
    done
    return 1;
}

# List of languages (uncomment your selection):
LANGUAGES=(
#  "Ada"
#  "Awk"
#  "Bash"
#  "bc"
#  "Bf"
  "C"
#  "C#"
  "C++"
#  "Ceylon"
#  "Clojure"
#  "COBOL"
#  "Crystal"
#  "Cython"
#  "D"
#  "Dart"
#  "Dash"
#  "dc"
#  "Elixir"
#  "Erlang"
#  "F#"
#  "Forth"
#  "Fortran"
#  "Go"
#  "Haskell"
#  "Haxe"
#  "Java"
#  "JavaScript"
#  "Julia"
#  "Kotlin"
#  "Lisp"
#  "Lua"
#  "MoonScript"
#  "Nim"
#  "Objective-C"
#  "OCaml"
#  "Octave"
#  "Pascal"
#  "Perl"
#  "PHP"
#  "Prolog"
#  "Python"
#  "Racket"
#  "Ruby"
#  "Rust"
#  "Scala"
#  "Scheme"
#  "Sed"
#  "Standard ML"
#  "Swift"
#  "Text"
#  "TypeScript"
#  "Unlambda"
#  "Vim"
#  "Visual Basic"
#  "Zsh"
)

# List of statuses (uncomment your selection):
STATUSES=(
#    "Compile Error"
#    "Wrong Answer"
#    "Time Limit Exceeded"
#    "Memory Limit Exceeded"
    "Accepted"
#    "Judge Not Available"
#    "Output Limit Exceeded"
#    "Runtime Error"
#    "WA: Presentation Error"
)

# Select on code size (>= 0). Bounds are inclusive.
MIN_CODE_SIZE=0
MAX_CODE_SIZE=                  # undefined means unlimited

# This function is called for every selected submission source file.
# The current working directory is the output data directory (-o).
# The arguments are:
# $1: the fullpath name of the submission file
# $2: problem_id
# $3: language
# $4: status
#function ACTION() {
#    echo $1
#}