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.
Completed
Push — master ( 4984d7...2915fd )
by Oana
16:42
created

crowdtruth.configuration   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Test Coverage

Coverage 87.5%

Importance

Changes 0
Metric Value
wmc 2
eloc 17
dl 0
loc 26
rs 10
c 0
b 0
f 0
ccs 14
cts 16
cp 0.875

2 Methods

Rating   Name   Duplication   Size   Complexity  
A DefaultConfig.processJudgments() 0 3 1
A DefaultConfig.processResults() 0 3 1
1 1
class DefaultConfig():
2
    """Define default configuration for cases when users do not provide a custom one"""
3
4 1
    name = '' # collection name
5 1
    inputColumns = [] # inputColumns to use
6 1
    outputColumns = [] # outputColumns to use
7 1
    customPlatformColumns = []
8 1
    open_ended_task = True
9 1
    annotation_vector = []
10
11 1
    units = []  # units to use
12 1
    workers = [] # workers to use
13 1
    jobs = [] # jobs to use
14
15 1
    csv_file_separator = ','
16 1
    annotation_separator = ','
17
18
19 1
    def processJudgments(self, judgments):
20
        """ Custom configuration of the judgments """
21
        return judgments
22
23 1
    def processResults(self, results, config=[]):
24
        """ Processing of the reuslts using the provided configuration """
25
        return results
26