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.

Code Duplication    Length = 21-21 lines in 2 locations

practice/core.py 1 location

@@ 15-35 (lines=21) @@
12
from matplotlib import rcParams
13
14
15
def read_cycle(data):
16
    """This function reads a segment of datafile (corresponding a cycle)
17
    and generates a dataframe with columns 'Potential' and 'Current'
18
19
    Parameters
20
    __________
21
    data: segment of data file
22
23
    Returns
24
    _______
25
    A dataframe with potential and current columns  
26
    """     
27
28
    current = []
29
    potential = []
30
    for i in data[3:]:
31
        current.append(float(i.split("\t")[4]))
32
        potential.append(float(i.split("\t")[3]))
33
    zippedList = list(zip(potential, current))
34
    df = pd.DataFrame(zippedList, columns = ['Potential' , 'Current'])
35
    return df
36
37
38
def read_file_dash(lines):

practice/dash_resumable_upload.py 1 location

@@ 15-35 (lines=21) @@
12
from matplotlib import rcParams
13
14
15
def read_cycle(data):
16
    """This function reads a segment of datafile (corresponding a cycle)
17
    and generates a dataframe with columns 'Potential' and 'Current'
18
19
    Parameters
20
    __________
21
    data: segment of data file
22
23
    Returns
24
    _______
25
    A dataframe with potential and current columns  
26
    """     
27
28
    current = []
29
    potential = []
30
    for i in data[3:]:
31
        current.append(float(i.split("\t")[4]))
32
        potential.append(float(i.split("\t")[3]))
33
    zippedList = list(zip(potential, current))
34
    df = pd.DataFrame(zippedList, columns = ['Potential' , 'Current'])
35
    return df
36
37
38
def read_file_dash(lines):