<commit_before>from math import pi

# Strings for the names of the different driving functions
DRIVING_INFO = ["0.0",
                "t",
                "cos(t)",
                "t * cos(t)",
                "cos(t * pi)",
                "t * cos(t * pi)",
                "sin(t)",
                "t * sin(t)",
                "sin(t * pi)",
                "t * sin(t * pi)",
                "2 * dsqrt(kappa * (1 - t))",
                "dsqrt(t) * c_alpha",
                "floor(t)",
                "floot(t) % 2",
                "sqrt(1 + t)"]

PLOT_TITLE = [["$\\xi (t) = ","$"],
              "$\\xi (t) = t$",
              "$\\xi (t) = \cos(t)$",
              "$\\xi (t) = t \ \cos(t)$",
              "$\\xi (t) = \cos(\pi t)$",
              "$\\xi (t) = t \ \cos(\pi t)$",
              "$\\xi (t) = \sin(t)$",
              "$\\xi (t) = t \ \sin(t)$",
              "$\\xi (t) = \sin(\pi t)$",
              "$\\xi (t) = t \ \sin(\pi t)$",
              ["$\\xi (t) = 2 \ \sqrt{","\ (1 - t)}$"],
              ["$\\xi (t) = c_{","} \sqrt{t}$"],
              "$\\xi (t) = \lfloor t \\rfloor $",
              "$\\xi (t) = \lfloor t \\rfloor \ \\mathrm{mod} \ 2$",
              "$\\xi (t) = \sqrt{1 + t}$"]

# Obtain the total number of driving functions
TOTAL_DRIVING_FUNCTIONS = len(DRIVING_INFO)

# Indices for "special" driving functions
KAPPA_IDX = 10
CALPHA_IDX = 11
CONST_IDX = 0
LINR_IDX = 1
SQRTPLUS_IDX = 14
PERIODIC_DRIVING = [i for i in range(2,10)]
MULTIPLE_IDX = TOTAL_DRIVING_FUNCTIONS
ALL_IDX = TOTAL_DRIVING_FUNCTIONS + 1
STANDARD_IDXS = [i for i in range (1,10)] + [i for i in range(12,15)] # Driving functions that don't require any extra parameters
CUBIC_EXACT_IDXS = [0,14]
QUADRATIC_FORWARD_EXACT_IDXS = [1]
NOTORIGIN_IDXS = [0,2,4,14]

# Inicides of the driving functions
DRIVING_INDICES = {pair[1] : pair[0] for pair in enumerate(DRIVING_INFO)}

# Compilation related lists
F2PY_FIRST = ["f2py", "-c"]

def SQUAREROOT_DRIVING(driving_function):
    return driving_function in [KAPPA_IDX, CALPHA_IDX]

# Nonlinear solver tolerance
TOL = 1e-13

# Extension for data file output
DATA_EXT = ".dat"
PLOT_EXT = ".pdf"

# Extension for data fortran files
FORTRAN_EXT = ".F90"

# Extension for data fortran files
DATA_PREC = "%.18f"

# Names of the Forward files that are used to solve Loewner's equation
FOR_LOEWNER = "ForwardLoewner"
INV_LOEWNER = "InverseLoewner"

# Directories for the data files
EXACT_FORWARD_DATA_OUTPUT = "../Output/Data/Quadratic/ExactSolutions/"
EXACT_CUBIC_DATA_OUTPUT = "../Output/Data/Cubic/ExactSolutions/"
FORWARD_DATA_OUTPUT = "../Output/Data/Quadratic/Forward/"
FORSHIFT_DATA_OUTPUT = "../Output/Data/Quadratic/TranslatedForward/"
INVERSE_DATA_OUTPUT = "../Output/Data/Quadratic/Inverse/"
CUBIC_DATA_OUTPUT = "../Output/Data/Cubic/Forward/"
FINGER_DATA_OUTPUT = "../Output/Data/FingeredGrowth/"
WEDGE_DATA_OUTPUT = "../Output/Data/WedgeGrowth/"

# Directories for the plot files
EXACT_FORWARD_PLOT_OUTPUT = "../Output/Plots/Quadratic/ExactSolutions/"
EXACT_CUBIC_PLOT_OUTPUT = "../Output/Plots/Cubic/ExactSolutions/"
FORWARD_PLOT_OUTPUT = "../Output/Plots/Quadratic/Forward/"
FORSHIFT_PLOT_OUTPUT = "../Output/Plots/Quadratic/TranslatedForward/"
INVERSE_PLOT_OUTPUT = "../Output/Plots/Quadratic/Inverse/"
CUBIC_PLOT_OUTPUT =  "../Output/Plots/Cubic/Forward/"
FINGER_PLOT_OUTPUT = "../Output/Plots/FingeredGrowth/"
WEDGE_PLOT_OUTPUT = "../Output/Plots/WedgeGrowth/"
<commit_msg>directory for exact inverse results<commit_after>from math import pi

# Strings for the names of the different driving functions
DRIVING_INFO = ["0.0",
                "t",
                "cos(t)",
                "t * cos(t)",
                "cos(t * pi)",
                "t * cos(t * pi)",
                "sin(t)",
                "t * sin(t)",
                "sin(t * pi)",
                "t * sin(t * pi)",
                "2 * dsqrt(kappa * (1 - t))",
                "dsqrt(t) * c_alpha",
                "floor(t)",
                "floot(t) % 2",
                "sqrt(1 + t)"]

PLOT_TITLE = [["$\\xi (t) = ","$"],
              "$\\xi (t) = t$",
              "$\\xi (t) = \cos(t)$",
              "$\\xi (t) = t \ \cos(t)$",
              "$\\xi (t) = \cos(\pi t)$",
              "$\\xi (t) = t \ \cos(\pi t)$",
              "$\\xi (t) = \sin(t)$",
              "$\\xi (t) = t \ \sin(t)$",
              "$\\xi (t) = \sin(\pi t)$",
              "$\\xi (t) = t \ \sin(\pi t)$",
              ["$\\xi (t) = 2 \ \sqrt{","\ (1 - t)}$"],
              ["$\\xi (t) = c_{","} \sqrt{t}$"],
              "$\\xi (t) = \lfloor t \\rfloor $",
              "$\\xi (t) = \lfloor t \\rfloor \ \\mathrm{mod} \ 2$",
              "$\\xi (t) = \sqrt{1 + t}$"]

# Obtain the total number of driving functions
TOTAL_DRIVING_FUNCTIONS = len(DRIVING_INFO)

# Indices for "special" driving functions
KAPPA_IDX = 10
CALPHA_IDX = 11
CONST_IDX = 0
LINR_IDX = 1
SQRTPLUS_IDX = 14
PERIODIC_DRIVING = [i for i in range(2,10)]
MULTIPLE_IDX = TOTAL_DRIVING_FUNCTIONS
ALL_IDX = TOTAL_DRIVING_FUNCTIONS + 1
STANDARD_IDXS = [i for i in range (1,10)] + [i for i in range(12,15)] # Driving functions that don't require any extra parameters
CUBIC_EXACT_IDXS = [0,14]
QUADRATIC_FORWARD_EXACT_IDXS = [1]
NOTORIGIN_IDXS = [0,2,4,14]

# Inicides of the driving functions
DRIVING_INDICES = {pair[1] : pair[0] for pair in enumerate(DRIVING_INFO)}

# Compilation related lists
F2PY_FIRST = ["f2py", "-c"]

def SQUAREROOT_DRIVING(driving_function):
    return driving_function in [KAPPA_IDX, CALPHA_IDX]

# Nonlinear solver tolerance
TOL = 1e-13

# Extension for data file output
DATA_EXT = ".dat"
PLOT_EXT = ".pdf"

# Extension for data fortran files
FORTRAN_EXT = ".F90"

# Extension for data fortran files
DATA_PREC = "%.18f"

# Names of the Forward files that are used to solve Loewner's equation
FOR_LOEWNER = "ForwardLoewner"
INV_LOEWNER = "InverseLoewner"

# Directories for the data files
EXACT_FORWARD_DATA_OUTPUT = "../Output/Data/Quadratic/ExactSolutions/"
EXACT_CUBIC_DATA_OUTPUT = "../Output/Data/Cubic/ExactSolutions/"
FORWARD_DATA_OUTPUT = "../Output/Data/Quadratic/Forward/"
FORSHIFT_DATA_OUTPUT = "../Output/Data/Quadratic/TranslatedForward/"
INVERSE_DATA_OUTPUT = "../Output/Data/Quadratic/Inverse/"
EXACT_INVERSE_DATA_OUTPUT = "../Output/Data/Quadratic/ExactInverse/"
CUBIC_DATA_OUTPUT = "../Output/Data/Cubic/Forward/"
FINGER_DATA_OUTPUT = "../Output/Data/FingeredGrowth/"
WEDGE_DATA_OUTPUT = "../Output/Data/WedgeGrowth/"

# Directories for the plot files
EXACT_FORWARD_PLOT_OUTPUT = "../Output/Plots/Quadratic/ExactSolutions/"
EXACT_CUBIC_PLOT_OUTPUT = "../Output/Plots/Cubic/ExactSolutions/"
FORWARD_PLOT_OUTPUT = "../Output/Plots/Quadratic/Forward/"
FORSHIFT_PLOT_OUTPUT = "../Output/Plots/Quadratic/TranslatedForward/"
INVERSE_PLOT_OUTPUT = "../Output/Plots/Quadratic/Inverse/"
EXACT_INVERSE_PLOT_OUTPUT = "../Output/Plots/Quadratic/ExactInverse/"
CUBIC_PLOT_OUTPUT =  "../Output/Plots/Cubic/Forward/"
FINGER_PLOT_OUTPUT = "../Output/Plots/FingeredGrowth/"
WEDGE_PLOT_OUTPUT = "../Output/Plots/WedgeGrowth/"

{'fraction_non_alphanumeric': 0.16886244510553902, 'fraction_numerical': 0.013882986258676866, 'mean_word_length': 2.514186162269786, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3686701', 'n_tokens_mistral': 2759, 'n_tokens_neox': 2632, 'n_words': 566}