GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

DefaultConfig.processJudgments()   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1.125

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 5
ccs 1
cts 2
cp 0.5
rs 10
c 0
b 0
f 0
cc 1
nop 2
crap 1.125
1
"""
2
Module used to configure the processing of the input files.
3
"""
4
5 1
class DefaultConfig():
6
    """ Defines default configuration for cases when users do not provide a custom one.
7
8
    Creates a class that lets us define how the input file will be processed:
9
        inputColumns: List of input columns from the .csv file, what the workers were shown.
10
        outputColumns: List of output columns with the answers from the workers.
11
        customPlatformColumns: List of columns that define standard annotation tasks, such as
12
                               judgment id, unit id, worker id, started time, submitted time.
13
                               This variable is used for custom input files (i.e., do not come
14
                               from AMT or FigureEight.)
15
        open_ended_task = Takes the value True if we deal with an open task and False othewise.
16
        annotation_vector = List of annotations from with the crowd can choose from. Only applicable
17
                            for closed tasks.
18
        units = List of units to be used.
19
        workers = List of workers to be used.
20
        jobs = List of jobs to be used.
21
        csv_file_separator = Column separator for the input csv files.
22
        annotation_separator = Separator for worker judgments. Default separator for judgments is ','
23
        processJudgments: Function that defines how the worker judgments wil be processed.
24
    """
25
26 1
    name = '' # collection name
27 1
    inputColumns = [] # inputColumns to use
28 1
    outputColumns = [] # outputColumns to use
29 1
    customPlatformColumns = []
30 1
    open_ended_task = True
31 1
    annotation_vector = []
32
    
33 1
    remove_empty_rows = True
34 1
    none_token = "NONE"
35
36 1
    units = []  # units to use
37 1
    workers = [] # workers to use
38 1
    jobs = [] # jobs to use
39
40 1
    csv_file_separator = ','
41 1
    annotation_separator = ','
42
43 1
    def processJudgments(self, judgments):
44
        """
45
        Defines how the worker judgments wil be processed.
46
        """
47
        return judgments
48