<commit_before>
import os
from turbustat.analysis import comparison_plot
import matplotlib.pyplot as p

# Disable interactive mode
p.ioff()

# Creates the distance plots for all

path = "/Users/eric/Dropbox/AstroStatistics/Full Factorial/"
comparisons = ["0_0", "0_2", "2_0", "2_2"]
design_matrix = os.path.join(path, "Design7Matrix.csv")

# Clean results

comparison_plot(
    os.path.join(path, "Full Results"), comparisons=comparisons,
    out_path=os.path.join(path, "Full Results", "Distance Plots"),
    num_fids=5, design_matrix=design_matrix)

# Noisy results

comparison_plot(
    os.path.join(path, "Noisy Full Results/"), comparisons=comparisons,
    out_path=os.path.join(path, "Noisy Full Results", "Distance Plots"),
    num_fids=5, design_matrix=design_matrix)

# Obs to Fid

obs_to_fid_path = os.path.join(path, "Observational Results", "Obs_to_Fid")
obs_to_fid_comparisons = ["0_0", "2_2"]

comparison_plot(
    obs_to_fid_path, comparisons=obs_to_fid_comparisons,
    out_path=os.path.join(obs_to_fid_path, "Distance Plots"),
    num_fids=5, design_matrix=design_matrix, obs_to_fid=True, legend=False,
    statistics=["Cramer", "DeltaVariance", "Dendrogram_Hist",
                "Dendrogram_Num", "PCA", "PDF_Hellinger", "SCF", "VCA", "VCS",
                "VCS_Density", "VCS_Velocity"])

# Des to Obs

des_to_obs_path = os.path.join(path, "Observational Results", "Des_to_Obs")
des_to_obs_comparisons = ["0_obs", "2_obs"]

comparison_plot(<commit_msg>Change comparisons shown for the paper plots<commit_after>
import os
from turbustat.analysis import comparison_plot
import matplotlib.pyplot as p

# Disable interactive mode
p.ioff()

# Creates the distance plots for all

path = "/Users/eric/Dropbox/AstroStatistics/Full Factorial/"
comparisons = ["0_0", "0_2", "2_0", "2_2"]
paper_comparisons = ["0_0", "2_2"]
design_matrix = os.path.join(path, "Design7Matrix.csv")

# Clean results

comparison_plot(
    os.path.join(path, "Full Results"), comparisons=comparisons,
    out_path=os.path.join(path, "Full Results", "Distance Plots"),
    num_fids=5, design_matrix=design_matrix)

comparison_plot(
    os.path.join(path, "Full Results"), comparisons=paper_comparisons,
    out_path=os.path.join(path, "Full Results", "Distance Plots Paper"),
    num_fids=5, design_matrix=design_matrix)

# Noisy results

comparison_plot(
    os.path.join(path, "Noisy Full Results/"), comparisons=comparisons,
    out_path=os.path.join(path, "Noisy Full Results", "Distance Plots"),
    num_fids=5, design_matrix=design_matrix)

comparison_plot(
    os.path.join(path, "Noisy Full Results/"), comparisons=paper_comparisons,
    out_path=os.path.join(path, "Noisy Full Results", "Distance Plots Paper"),
    num_fids=5, design_matrix=design_matrix)

# Obs to Fid

obs_to_fid_path = os.path.join(path, "Observational Results", "Obs_to_Fid")
obs_to_fid_comparisons = ["0_0", "2_2"]

comparison_plot(
    obs_to_fid_path, comparisons=obs_to_fid_comparisons,
    out_path=os.path.join(obs_to_fid_path, "Distance Plots"),
    num_fids=5, design_matrix=design_matrix, obs_to_fid=True, legend=False,
    statistics=["Cramer", "DeltaVariance", "Dendrogram_Hist",
                "Dendrogram_Num", "PCA", "PDF_Hellinger", "SCF", "VCA", "VCS",
                "VCS_Density", "VCS_Velocity"])

# Des to Obs

des_to_obs_path = os.path.join(path, "Observational Results", "Des_to_Obs")
des_to_obs_comparisons = ["0_obs", "2_obs"]

comparison_plot(
{'fraction_non_alphanumeric': 0.13288746728700204, 'fraction_numerical': 0.012212852573422507, 'mean_word_length': 5.441947565543071, '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': '5977883', 'n_tokens_mistral': 1288, 'n_tokens_neox': 1261, 'n_words': 248}