diff --git a/cosmere/plots/fanfic_overview/fanfic_kudo_freq_dist2.png b/cosmere/plots/fanfic_overview/fanfic_kudo_freq_dist2.png new file mode 100644 index 0000000000000000000000000000000000000000..a0701794d81353c84bf80d17d2de4bd6b08569b0 Binary files /dev/null and b/cosmere/plots/fanfic_overview/fanfic_kudo_freq_dist2.png differ diff --git a/cosmere/plots/fanfic_overview/fanfic_kudo_new_dist.csv b/cosmere/plots/fanfic_overview/fanfic_kudo_new_dist.csv new file mode 100644 index 0000000000000000000000000000000000000000..6d0de452f1d9693a23bccdd39d4d3507bb3d5aaf --- /dev/null +++ b/cosmere/plots/fanfic_overview/fanfic_kudo_new_dist.csv @@ -0,0 +1,241 @@ +,0 +1.0,0.019 +2.0,0.024 +3.0,0.019 +4.0,0.032 +5.0,0.02 +6.0,0.02 +7.0,0.025 +8.0,0.016 +9.0,0.02 +10.0,0.023 +11.0,0.02 +12.0,0.014 +13.0,0.019 +14.0,0.023 +15.0,0.015 +16.0,0.013 +17.0,0.012 +18.0,0.016 +19.0,0.013 +20.0,0.015 +21.0,0.015 +22.0,0.013 +23.0,0.012 +24.0,0.015 +25.0,0.016 +26.0,0.016 +27.0,0.009 +28.0,0.01 +29.0,0.016 +30.0,0.011 +31.0,0.012 +32.0,0.011 +33.0,0.012 +34.0,0.011 +35.0,0.008 +36.0,0.008 +37.0,0.008 +38.0,0.01 +39.0,0.006 +40.0,0.006 +41.0,0.005 +42.0,0.009 +43.0,0.008 +44.0,0.008 +45.0,0.008 +46.0,0.008 +47.0,0.006 +48.0,0.006 +49.0,0.005 +50.0,0.002 +51.0,0.009 +52.0,0.004 +53.0,0.007 +54.0,0.009 +55.0,0.004 +56.0,0.004 +57.0,0.006 +58.0,0.008 +59.0,0.006 +60.0,0.007 +61.0,0.006 +62.0,0.007 +63.0,0.008 +64.0,0.005 +65.0,0.003 +66.0,0.003 +67.0,0.006 +68.0,0.005 +69.0,0.004 +70.0,0.002 +71.0,0.002 +72.0,0.005 +73.0,0.005 +74.0,0.002 +75.0,0.003 +76.0,0.003 +77.0,0.006 +78.0,0.004 +79.0,0.005 +80.0,0.001 +81.0,0.002 +82.0,0.005 +83.0,0.005 +84.0,0.002 +85.0,0.004 +86.0,0.006 +87.0,0.002 +88.0,0.001 +89.0,0.001 +90.0,0.001 +91.0,0.002 +92.0,0.002 +93.0,0.004 +94.0,0.002 +95.0,0.002 +96.0,0.002 +97.0,0.003 +98.0,0.002 +99.0,0.001 +100.0,0.001 +102.0,0.003 +103.0,0.001 +104.0,0.002 +105.0,0.002 +106.0,0.001 +107.0,0.002 +108.0,0.001 +109.0,0.003 +110.0,0.004 +111.0,0.001 +112.0,0.001 +113.0,0.002 +114.0,0.001 +115.0,0.001 +116.0,0.002 +117.0,0.003 +118.0,0.001 +119.0,0.003 +120.0,0.001 +122.0,0.001 +123.0,0.001 +124.0,0.001 +125.0,0.001 +126.0,0.001 +127.0,0.002 +128.0,0.003 +129.0,0.001 +130.0,0.002 +131.0,0.002 +132.0,0.002 +133.0,0.001 +134.0,0.001 +135.0,0.001 +136.0,0.001 +137.0,0.002 +139.0,0.001 +140.0,0.001 +141.0,0.001 +142.0,0.001 +143.0,0.001 +144.0,0.001 +145.0,0.001 +146.0,0.001 +147.0,0.001 +149.0,0.001 +151.0,0.002 +154.0,0.001 +155.0,0.001 +157.0,0.001 +158.0,0.001 +159.0,0.002 +161.0,0.001 +162.0,0.002 +164.0,0.001 +165.0,0.001 +166.0,0.001 +167.0,0.001 +168.0,0.002 +173.0,0.001 +175.0,0.001 +176.0,0.001 +177.0,0.001 +178.0,0.001 +181.0,0.001 +182.0,0.001 +185.0,0.001 +186.0,0.001 +187.0,0.001 +188.0,0.001 +189.0,0.001 +190.0,0.001 +191.0,0.002 +192.0,0.001 +193.0,0.001 +195.0,0.001 +197.0,0.001 +198.0,0.001 +206.0,0.001 +208.0,0.001 +210.0,0.001 +212.0,0.002 +214.0,0.001 +217.0,0.001 +218.0,0.001 +222.0,0.001 +227.0,0.001 +228.0,0.001 +229.0,0.001 +230.0,0.001 +232.0,0.001 +233.0,0.001 +235.0,0.001 +237.0,0.001 +239.0,0.001 +245.0,0.001 +246.0,0.001 +247.0,0.001 +248.0,0.001 +250.0,0.001 +252.0,0.001 +261.0,0.001 +262.0,0.001 +263.0,0.001 +272.0,0.001 +280.0,0.001 +281.0,0.001 +283.0,0.001 +292.0,0.001 +297.0,0.001 +301.0,0.001 +304.0,0.001 +317.0,0.001 +318.0,0.001 +323.0,0.001 +340.0,0.001 +343.0,0.001 +347.0,0.001 +357.0,0.001 +384.0,0.001 +393.0,0.001 +399.0,0.001 +407.0,0.001 +412.0,0.001 +419.0,0.001 +424.0,0.001 +438.0,0.001 +442.0,0.001 +454.0,0.001 +455.0,0.001 +467.0,0.001 +473.0,0.001 +474.0,0.001 +525.0,0.001 +547.0,0.001 +603.0,0.001 +644.0,0.001 +655.0,0.001 +718.0,0.001 +843.0,0.001 +928.0,0.001 diff --git a/divergent/plots/fanfic_overview/fanfic_kudo_freq_dist2.png b/divergent/plots/fanfic_overview/fanfic_kudo_freq_dist2.png new file mode 100644 index 0000000000000000000000000000000000000000..80a6c963f0c298f50102c9c0a5c7cb6bfc8edbe2 Binary files /dev/null and b/divergent/plots/fanfic_overview/fanfic_kudo_freq_dist2.png differ diff --git a/divergent/plots/fanfic_overview/fanfic_kudo_new_dist.csv b/divergent/plots/fanfic_overview/fanfic_kudo_new_dist.csv new file mode 100644 index 0000000000000000000000000000000000000000..0a870c3ad590a59fb16273a3820a6ac3f87c85c8 --- /dev/null +++ b/divergent/plots/fanfic_overview/fanfic_kudo_new_dist.csv @@ -0,0 +1,266 @@ +,0 +1.0,0.028 +2.0,0.022 +3.0,0.021 +4.0,0.019 +5.0,0.021 +6.0,0.03 +7.0,0.021 +8.0,0.023 +9.0,0.028 +10.0,0.023 +11.0,0.022 +12.0,0.023 +13.0,0.016 +14.0,0.022 +15.0,0.017 +16.0,0.017 +17.0,0.018 +18.0,0.018 +19.0,0.013 +20.0,0.013 +21.0,0.007 +22.0,0.009 +23.0,0.009 +24.0,0.013 +25.0,0.01 +26.0,0.008 +27.0,0.008 +28.0,0.013 +29.0,0.012 +30.0,0.008 +31.0,0.009 +32.0,0.009 +33.0,0.013 +34.0,0.013 +35.0,0.01 +36.0,0.01 +37.0,0.008 +38.0,0.012 +39.0,0.005 +40.0,0.007 +41.0,0.008 +42.0,0.008 +43.0,0.006 +44.0,0.009 +45.0,0.007 +46.0,0.005 +47.0,0.005 +48.0,0.005 +49.0,0.005 +50.0,0.006 +51.0,0.006 +52.0,0.006 +53.0,0.006 +54.0,0.005 +55.0,0.005 +56.0,0.005 +57.0,0.005 +58.0,0.005 +59.0,0.006 +60.0,0.005 +61.0,0.006 +62.0,0.003 +63.0,0.005 +64.0,0.005 +65.0,0.002 +66.0,0.002 +67.0,0.003 +68.0,0.004 +69.0,0.004 +70.0,0.003 +71.0,0.006 +73.0,0.006 +74.0,0.001 +75.0,0.003 +76.0,0.003 +77.0,0.002 +78.0,0.003 +79.0,0.006 +80.0,0.002 +81.0,0.002 +82.0,0.002 +83.0,0.001 +84.0,0.001 +85.0,0.001 +86.0,0.002 +87.0,0.003 +88.0,0.001 +89.0,0.001 +90.0,0.003 +91.0,0.002 +92.0,0.002 +93.0,0.001 +94.0,0.004 +95.0,0.002 +96.0,0.002 +97.0,0.002 +98.0,0.002 +99.0,0.003 +100.0,0.003 +101.0,0.002 +102.0,0.002 +103.0,0.001 +104.0,0.001 +105.0,0.001 +106.0,0.002 +107.0,0.002 +108.0,0.001 +109.0,0.003 +110.0,0.001 +111.0,0.001 +112.0,0.002 +113.0,0.002 +114.0,0.001 +115.0,0.002 +116.0,0.002 +117.0,0.001 +119.0,0.002 +120.0,0.001 +121.0,0.002 +122.0,0.002 +123.0,0.002 +125.0,0.001 +126.0,0.001 +127.0,0.001 +128.0,0.002 +130.0,0.001 +131.0,0.001 +132.0,0.001 +133.0,0.001 +134.0,0.002 +135.0,0.003 +136.0,0.002 +137.0,0.005 +139.0,0.002 +140.0,0.001 +141.0,0.002 +143.0,0.001 +144.0,0.001 +145.0,0.001 +146.0,0.001 +147.0,0.001 +148.0,0.002 +149.0,0.002 +150.0,0.001 +151.0,0.001 +152.0,0.001 +153.0,0.001 +154.0,0.001 +156.0,0.001 +157.0,0.001 +158.0,0.002 +159.0,0.001 +160.0,0.001 +161.0,0.002 +162.0,0.001 +164.0,0.001 +165.0,0.001 +169.0,0.002 +171.0,0.001 +172.0,0.001 +174.0,0.001 +179.0,0.001 +180.0,0.002 +182.0,0.001 +183.0,0.001 +186.0,0.001 +187.0,0.001 +188.0,0.001 +190.0,0.001 +191.0,0.001 +192.0,0.001 +193.0,0.001 +194.0,0.001 +195.0,0.001 +199.0,0.001 +200.0,0.001 +201.0,0.001 +202.0,0.001 +204.0,0.002 +206.0,0.001 +207.0,0.001 +210.0,0.001 +213.0,0.001 +214.0,0.001 +216.0,0.001 +222.0,0.001 +223.0,0.001 +226.0,0.001 +231.0,0.001 +233.0,0.001 +234.0,0.001 +235.0,0.001 +236.0,0.001 +238.0,0.001 +239.0,0.001 +242.0,0.001 +243.0,0.002 +244.0,0.001 +246.0,0.001 +248.0,0.001 +249.0,0.001 +250.0,0.001 +251.0,0.001 +254.0,0.001 +257.0,0.001 +260.0,0.001 +261.0,0.001 +264.0,0.001 +266.0,0.001 +267.0,0.001 +270.0,0.001 +271.0,0.001 +272.0,0.001 +274.0,0.001 +282.0,0.001 +285.0,0.001 +286.0,0.001 +287.0,0.001 +293.0,0.001 +295.0,0.001 +297.0,0.001 +298.0,0.001 +300.0,0.001 +301.0,0.001 +302.0,0.001 +304.0,0.001 +305.0,0.001 +307.0,0.001 +310.0,0.001 +311.0,0.001 +313.0,0.001 +315.0,0.001 +325.0,0.001 +326.0,0.001 +332.0,0.001 +335.0,0.001 +340.0,0.001 +347.0,0.001 +366.0,0.001 +369.0,0.001 +371.0,0.001 +372.0,0.001 +383.0,0.001 +389.0,0.001 +398.0,0.001 +405.0,0.001 +412.0,0.001 +417.0,0.001 +434.0,0.001 +455.0,0.001 +460.0,0.001 +463.0,0.001 +469.0,0.001 +472.0,0.001 +488.0,0.001 +516.0,0.001 +534.0,0.001 +568.0,0.001 +582.0,0.001 +640.0,0.001 +674.0,0.001 +701.0,0.001 +756.0,0.001 +759.0,0.001 +868.0,0.001 diff --git a/fanfic_preprocessing.py b/fanfic_preprocessing.py index 98d1077ba15471dcbec887cecd8fc765be584816..e925ae4e3e69ea401eb7465f47af66039c6efc0e 100644 --- a/fanfic_preprocessing.py +++ b/fanfic_preprocessing.py @@ -19,6 +19,11 @@ import numpy as np #tog_fanfics = pd.read_csv("throne_of_glass/data/fanfics/throne_of_glass_fics.csv") def calculate_cum_kudo_distribution(fanfic_pd): + # Convert "kudos" column to float + fanfic_pd["kudos"] = pd.to_numeric(fanfic_pd["kudos"], errors='coerce') + + # Remove rows with NaN values in "kudos" column + fanfic_pd = fanfic_pd.dropna(subset=["kudos"]) fanfic_kudos = fanfic_pd["kudos"].values.tolist() fanfic_kudos_freq_dist = FreqDist(fanfic_kudos) # convert to FreqDist object to a pandas series for easier processing @@ -26,12 +31,14 @@ def calculate_cum_kudo_distribution(fanfic_pd): # sort, normalise and round the panda series new_dist = dist_panda.sort_index() + #new_dist = new_dist.drop(columns=["NaN"]) for i in range(0, len(new_dist.index)): new_dist.iat[i] = round(new_dist.iat[i]/len(fanfic_kudos), 3) #calculate cumulative distribution cum_dist = np.cumsum(new_dist.values) + return new_dist, cum_dist @@ -96,24 +103,28 @@ def run_functions(file_paths): dir_path_for_pic = f"{series_name}/plots/fanfic_overview/" if os.path.exists(dir_path_for_pic) == False: os.makedirs(dir_path_for_pic) - file_name = pd.read_csv(file_path) + file = pd.read_csv(file_path) title = series_name.replace("_", " ").title() - new_dist, cum_dist = calculate_cum_kudo_distribution(file_name) - plot_distribution(new_dist=new_dist, cum_dist=cum_dist, plt_title=f"{title} Cumulative Frequency Distribution of All Kudos", file_path_for_pic=f"{dir_path_for_pic}fanfic_kudo_freq_dist.png") + new_dist, cum_dist = calculate_cum_kudo_distribution(file) + #print(cum_dist) + #print(new_dist) + new_dist.to_csv(f"{dir_path_for_pic}fanfic_kudo_new_dist.csv") + #cum_dist.to_csv(f"{dir_path_for_pic}fanfic_kudo_cum_dist.csv") + plot_distribution(new_dist=new_dist, cum_dist=cum_dist, plt_title=f"{title} Cumulative Frequency Distribution of All Kudos", file_path_for_pic=f"{dir_path_for_pic}fanfic_kudo_freq_dist2.png") if __name__ == "__main__": - file_paths = ["throne_of_glass/data/fanfics/throne_of_glass_fanfics.csv", "school_for_good_and_evil/data/fanfics/school_fanfics.csv", "murderbot/data/fanfics/murderbot_fanfics.csv", "cosmere/data/fanfics/cosmere_fanfics.csv", "divergent/data/fanfics/divergent_fanfics.csv"] - #file_paths = ["divergent/data/fanfics/divergent_fanfics.csv"] + file_paths = ["grishaverse/data/fanfics/grishaverse_fics.csv", "school_for_good_and_evil/data/fanfics/school_fanfics.csv", "murderbot/data/fanfics/murderbot_fanfics.csv", "cosmere/data/fanfics/cosmere_fanfics.csv", "divergent/data/fanfics/divergent_fanfics.csv"] + #file_paths = ["cosmere/data/fanfics/cosmere_fanfics.csv"] run_functions(file_paths=file_paths) #grishaverse - #grisha_fanfics = read_csv_to_pd(file_path="grishaverse/data/fanfics/grishaverse_fics.csv", name_of_file=grisha_fanfics) + #grisha_fanfics = pd.read_csv("grishaverse/data/fanfics/grishaverse_fics.csv") #new_dist, cum_dist = calculate_cum_kudo_distribution(grisha_fanfics) - #plot_distribution(new_dist=new_dist, cum_dist=cum_dist, plt_title="Grishaverse Cumulative Frequency Distribution of All Kudos", file_path_for_pic="grishaverse/freq_distribution/fanfic_kudo_freq_dist.png", scatter_plt=_plt=True) + #plot_distribution(new_dist=new_dist, cum_dist=cum_dist, plt_title="Grishaverse Cumulative Frequency Distribution of All Kudos", file_path_for_pic="grishaverse/freq_distribution/fanfic_kudo_freq_dist.png", scatter_plt=True) #throne of glass - #tog_fanfics = read_csv_to_pd(file_path="throne_of_glass/data/fanfics/throne_of_glass_fanfics.csv", name_of_file="tog_fanfics") + #tog_fanfics = pd.read_csv("throne_of_glass/data/fanfics/throne_of_glass_fanfics.csv") #new_dist, cum_dist = calculate_cum_kudo_distribution(tog_fanfics) #plot_distribution(new_dist=new_dist, cum_dist=cum_dist, plt_title="Throne of Glass Cumulative Frequency Distribution of All Kudos", file_path_for_pic= "throne_of_glass/freq_distribution/fanfic_kudo_freq_dist.png", scatter_plt=True) diff --git a/fanfic_preprocessing_old.py b/fanfic_preprocessing_old.py new file mode 100644 index 0000000000000000000000000000000000000000..7c53d64d82b12533ba881c864369abef5b3cf3db --- /dev/null +++ b/fanfic_preprocessing_old.py @@ -0,0 +1,137 @@ +import seaborn as sns +import matplotlib.pyplot as plt +from cycler import cycler +import os +import pandas as pd +import statistics +import re +from nltk.probability import FreqDist +import numpy as np + +# code snippets for prettifying plots + +#colours +pink = '#d600a7' +light_green = '#55a480' +blue_grey = '#5d9c9c' +purple_grey = '#636273' +CB91_Blue = '#2CBDFE' +CB91_Green = '#47DBCD' +CB91_Pink = '#F3A0F2' +CB91_Purple = '#9D2EC5' +CB91_Violet = '#661D98' +CB91_Amber = '#F5B14C' + +color_list = [ blue_grey, CB91_Amber, pink, light_green, CB91_Green, CB91_Pink, CB91_Blue, + CB91_Purple, CB91_Violet] +plt.rcParams['axes.prop_cycle'] = plt.cycler(color=color_list) + +#some colour palette playing around + +cm = sns.cubehelix_palette(start=.5, rot=-.75, as_cmap=True) +cm1 = sns.cubehelix_palette(start=.5, rot=-.5, as_cmap=True) +cm2 = sns.cubehelix_palette(as_cmap=True) + +#palette_1 = sns.color_palette("flare") +#palette_2 = sns.color_palette("mako_r", as_cmap=True) + +# actual preprocessing code + +#file header: +# work_id,title,author,rating,category,fandom,relationship,character,additional tags,language,published,status,status date,words,chapters,comments,kudos,bookmarks,hits,all_kudos,all_bookmarks,body +# 27852922,Dealing with Our Demons,['ravenyenn19'],Mature,F/M,"Six of Crows Series",Kaz Brekker/Inej Ghafa,"Kaz B","Romance,Kanej - Freeform, Eventual Smut",English,2020-12-03,Updated,2023-03-16,747673,162/?,8573,12204,1373,709212,"['ud4m', 'book_addict_1228', 'ephemeraldelights', 'bluedelilah25', 'sunshinecorsets', 'I_do_not_like_purple_glasses', 'beep_boop_00', 'schleswigholstein', 'moonandstars75', 'ewerythingoes', 'mindfighters', 'rosibunnis', 'Lizie06', 'ghostlatte', 'aguswolman', 'QueenofEnglan', 'JenBoyette04', 'gnitneb_reads', 'gloomysunshine', 'v1ofvs', 'BazzaKrekker', 'BookGeek', 'poppyflower19', 'Cassanibal', 'vanilla_chai_tea', 'Honorthyword', 'mariaarmengol', 'luc1inda', 'zarawrites', 'monmough', 'Guilty__Pleasures', 'Ilyann', 'folieadeux_0_0', 'dragonguard', 'Emeliemarx', 'angrydabee', 'slythxrclaw', 'samaram0215', 'letsgetthisbread69', 'Mintmew', 'biblichour', 'Katloupet', 'Miss_ginger', 'inejsquake', 'Arabella_7833', 'flossy_flo99', 'a_k123', 'hushedwanderer', 'siriuslymichele', 'AnnaAvinaVTDX']",[],"Dear Kaz, + + +grisha_fanfics = pd.read_csv("grishaverse/data/fanfics/grishaverse_fics.csv") +tog_fanfics = pd.read_csv("throne_of_glass/data/fanfics/throne_of_glass_fanfics.csv") + +def read_csv_to_pd(file_path, name_of_file) -> pd: #fix type hints + name_of_file = pd.read_csv(file_path) + return name_of_file + + +def calculate_cum_kudo_distribution(fanfic_pd): + fanfic_kudos = fanfic_pd["kudos"].values.tolist() + fanfic_kudos_freq_dist = FreqDist(fanfic_kudos) + # convert to FreqDist object to a pandas series for easier processing + dist_panda = pd.Series(dict(fanfic_kudos_freq_dist)) + + # sort, normalise and round the panda series + new_dist = dist_panda.sort_index() + + for i in range(0, len(new_dist.index)): + #for index in new_token_len_dist.index: + new_dist.iat[i] = round(new_dist.iat[i]/len(fanfic_kudos), 3) #index-1 bc the index starts counting from zero, the word lengths not + #if float(new_token_len_dist.iat[i]) == 0.00: + # new_token_len_dist.drop(index=i) # here it is used as the label, so we want the index, not index -1; bad work-around, I'm sorry + + #calculate cumulative distribution + cum_dist = np.cumsum(new_dist.values) + return new_dist, cum_dist + + +def plot_distribution(new_dist, cum_dist, plt_title, file_path_for_pic:str, x_label="Number of Kudos", y_label="Percentage of Occurence", scatter_plt=False, max_ticks=10): + + plt.figure(figsize=(10,10)) + plt.title(plt_title) + plt.xlabel(x_label) + plt.ylabel(y_label) + + if scatter_plt: + sns.scatterplot(x=new_dist.index, y=cum_dist) + #plt.xticks(new_dist.index[::100], new_dist.index[::100]) + + else: + sns.lineplot(x=new_dist.index, y=cum_dist) + + plt.savefig(file_path_for_pic) + plt.close() + +def separate_fanfics_by_good_medium_bad(df, series): + good_fics = [] + medium_fics = [] + bad_fics = [] + few_kudos = 100 + medium_kudos = 1500 + + for index, row in df.iterrows(): + published = pd.to_datetime(row["published"]) + if published.year != 2023: + if not pd.isna(row["kudos"]): + kudos = pd.to_numeric(row["kudos"], errors="coerce") + if kudos <= few_kudos: + bad_fics.append(row["body"]) + elif kudos <= medium_kudos: + medium_fics.append(row["body"]) + elif kudos > medium_kudos: + good_fics.append(row["body"]) + else: + print(f"Missing kudos value for row {index}") + + bad_fics_joined = ''.join(map(str, bad_fics)) + good_fics_joined = ''.join(map(str, good_fics)) + medium_fics_joined = ''.join(map(str, medium_fics)) + + with open(f"{series}/data/split_txt_fanfics/good_fics.txt", "w") as f: + f.write(good_fics_joined) + + with open(f"{series}/data/split_txt_fanfics/bad_fics.txt", "w") as f: + f.write(bad_fics_joined) + + with open(f"{series}/data/split_txt_fanfics/medium_fics.txt", "w") as f: + f.write(medium_fics_joined) + + +if __name__ == "__main__": + #grishaverse + grisha_fanfics = read_csv_to_pd(file_path="grishaverse/data/fanfics/grishaverse_fics.csv", name_of_file=grisha_fanfics) + new_dist, cum_dist = calculate_cum_kudo_distribution(grisha_fanfics) + plot_distribution(new_dist=new_dist, cum_dist=cum_dist, plt_title="Grishaverse Cumulative Frequency Distribution of All Kudos", file_path_for_pic="grishaverse/freq_distribution/fanfic_kudo_freq_dist.png", scatter_plt=True) + + #throne of glass + #tog_fanfics = read_csv_to_pd(file_path="throne_of_glass/data/fanfics/throne_of_glass_fanfics.csv", name_of_file=tog_fanfics) + #new_dist, cum_dist = calculate_cum_kudo_distribution(tog_fanfics) + #plot_distribution(new_dist=new_dist, cum_dist=cum_dist, plt_title="Throne of Glass Cumulative Frequency Distribution of All Kudos", file_path_for_pic= "throne_of_glass/freq_distribution/fanfic_kudo_freq_dist.png", scatter_plt=True) + + #separate_fanfics_by_good_medium_bad(grisha_fanfics, "grishaverse") + #separate_fanfics_by_good_medium_bad(tog_fanfics, "throne_of_glass") diff --git a/grisha_fanfics.csv b/grisha_fanfics.csv index 6dcd39f1075e70cad81cd84b815cbe84fdcf607f..5d2b94f6108920d7e74b48a599a9e1d583f1df9d 100644 Binary files a/grisha_fanfics.csv and b/grisha_fanfics.csv differ diff --git a/grishaverse/freq_distribution/fanfic_kudo_freq_dist.png b/grishaverse/freq_distribution/fanfic_kudo_freq_dist.png index add2892530f510b7e6873d58ebfab435a4d0ea49..48ae25314157fdc4597789d148ef65b8f8d836a3 100644 Binary files a/grishaverse/freq_distribution/fanfic_kudo_freq_dist.png and b/grishaverse/freq_distribution/fanfic_kudo_freq_dist.png differ diff --git a/grishaverse/plots/fanfic_overview/fanfic_kudo_freq_dist2.png b/grishaverse/plots/fanfic_overview/fanfic_kudo_freq_dist2.png new file mode 100644 index 0000000000000000000000000000000000000000..48ae25314157fdc4597789d148ef65b8f8d836a3 Binary files /dev/null and b/grishaverse/plots/fanfic_overview/fanfic_kudo_freq_dist2.png differ diff --git a/grishaverse/plots/fanfic_overview/fanfic_kudo_new_dist.csv b/grishaverse/plots/fanfic_overview/fanfic_kudo_new_dist.csv new file mode 100644 index 0000000000000000000000000000000000000000..dfb62b14bf1eb68c33de5ac01dc774b76ba16296 --- /dev/null +++ b/grishaverse/plots/fanfic_overview/fanfic_kudo_new_dist.csv @@ -0,0 +1,894 @@ +,0 +1.0,0.005 +2.0,0.007 +3.0,0.006 +4.0,0.006 +5.0,0.007 +6.0,0.006 +7.0,0.006 +8.0,0.006 +9.0,0.005 +10.0,0.006 +11.0,0.007 +12.0,0.004 +13.0,0.007 +14.0,0.007 +15.0,0.006 +16.0,0.005 +17.0,0.006 +18.0,0.007 +19.0,0.005 +20.0,0.005 +21.0,0.006 +22.0,0.007 +23.0,0.006 +24.0,0.007 +25.0,0.003 +26.0,0.005 +27.0,0.005 +28.0,0.006 +29.0,0.005 +30.0,0.006 +31.0,0.006 +32.0,0.004 +33.0,0.006 +34.0,0.005 +35.0,0.005 +36.0,0.005 +37.0,0.005 +38.0,0.004 +39.0,0.004 +40.0,0.005 +41.0,0.007 +42.0,0.004 +43.0,0.006 +44.0,0.006 +45.0,0.004 +46.0,0.005 +47.0,0.005 +48.0,0.006 +49.0,0.006 +50.0,0.006 +51.0,0.006 +52.0,0.005 +53.0,0.004 +54.0,0.005 +55.0,0.004 +56.0,0.005 +57.0,0.004 +58.0,0.004 +59.0,0.003 +60.0,0.006 +61.0,0.005 +62.0,0.006 +63.0,0.005 +64.0,0.004 +65.0,0.005 +66.0,0.004 +67.0,0.004 +68.0,0.006 +69.0,0.002 +70.0,0.004 +71.0,0.004 +72.0,0.003 +73.0,0.004 +74.0,0.004 +75.0,0.004 +76.0,0.004 +77.0,0.003 +78.0,0.003 +79.0,0.004 +80.0,0.004 +81.0,0.003 +82.0,0.004 +83.0,0.003 +84.0,0.003 +85.0,0.004 +86.0,0.002 +87.0,0.004 +88.0,0.004 +89.0,0.004 +90.0,0.003 +91.0,0.004 +92.0,0.005 +93.0,0.003 +94.0,0.002 +95.0,0.003 +96.0,0.004 +97.0,0.006 +98.0,0.002 +99.0,0.003 +100.0,0.004 +101.0,0.004 +102.0,0.004 +103.0,0.003 +104.0,0.004 +105.0,0.003 +106.0,0.003 +107.0,0.002 +108.0,0.003 +109.0,0.002 +110.0,0.002 +111.0,0.005 +112.0,0.003 +113.0,0.003 +114.0,0.001 +115.0,0.003 +116.0,0.003 +117.0,0.003 +118.0,0.003 +119.0,0.003 +120.0,0.002 +121.0,0.002 +122.0,0.003 +123.0,0.003 +124.0,0.003 +125.0,0.003 +126.0,0.003 +127.0,0.002 +128.0,0.003 +129.0,0.003 +130.0,0.003 +131.0,0.004 +132.0,0.004 +133.0,0.003 +134.0,0.002 +135.0,0.003 +136.0,0.002 +137.0,0.003 +138.0,0.003 +139.0,0.002 +140.0,0.002 +141.0,0.002 +142.0,0.003 +143.0,0.003 +144.0,0.004 +145.0,0.002 +146.0,0.002 +147.0,0.003 +148.0,0.002 +149.0,0.003 +150.0,0.003 +151.0,0.002 +152.0,0.003 +153.0,0.002 +154.0,0.002 +155.0,0.002 +156.0,0.003 +157.0,0.002 +158.0,0.002 +159.0,0.002 +160.0,0.002 +161.0,0.001 +162.0,0.002 +163.0,0.003 +164.0,0.002 +165.0,0.002 +166.0,0.002 +167.0,0.003 +168.0,0.001 +169.0,0.002 +170.0,0.002 +171.0,0.002 +172.0,0.002 +173.0,0.001 +174.0,0.002 +175.0,0.002 +176.0,0.001 +177.0,0.002 +178.0,0.002 +179.0,0.001 +180.0,0.002 +181.0,0.002 +182.0,0.002 +183.0,0.002 +184.0,0.002 +185.0,0.002 +186.0,0.002 +187.0,0.002 +188.0,0.002 +189.0,0.002 +190.0,0.002 +191.0,0.002 +192.0,0.002 +193.0,0.002 +194.0,0.002 +195.0,0.001 +196.0,0.002 +197.0,0.002 +198.0,0.001 +199.0,0.001 +200.0,0.001 +201.0,0.001 +202.0,0.003 +203.0,0.001 +204.0,0.002 +205.0,0.001 +206.0,0.002 +207.0,0.002 +208.0,0.003 +209.0,0.001 +210.0,0.001 +211.0,0.001 +212.0,0.002 +213.0,0.001 +214.0,0.001 +215.0,0.002 +216.0,0.001 +217.0,0.002 +218.0,0.002 +219.0,0.001 +220.0,0.001 +221.0,0.001 +222.0,0.001 +223.0,0.001 +224.0,0.001 +225.0,0.002 +226.0,0.002 +227.0,0.002 +228.0,0.001 +229.0,0.001 +230.0,0.002 +231.0,0.0 +232.0,0.001 +233.0,0.001 +234.0,0.001 +235.0,0.001 +236.0,0.002 +237.0,0.001 +238.0,0.001 +239.0,0.001 +240.0,0.002 +241.0,0.001 +242.0,0.002 +243.0,0.001 +244.0,0.001 +245.0,0.002 +246.0,0.002 +247.0,0.001 +248.0,0.001 +249.0,0.001 +250.0,0.001 +251.0,0.001 +252.0,0.001 +253.0,0.001 +254.0,0.001 +255.0,0.001 +256.0,0.001 +257.0,0.001 +258.0,0.001 +259.0,0.001 +260.0,0.001 +261.0,0.001 +262.0,0.001 +263.0,0.001 +264.0,0.001 +265.0,0.001 +266.0,0.002 +267.0,0.001 +268.0,0.001 +269.0,0.001 +270.0,0.001 +271.0,0.001 +272.0,0.002 +273.0,0.002 +274.0,0.001 +275.0,0.002 +276.0,0.001 +277.0,0.001 +278.0,0.001 +279.0,0.001 +280.0,0.001 +281.0,0.001 +282.0,0.002 +283.0,0.001 +284.0,0.002 +285.0,0.001 +286.0,0.001 +287.0,0.001 +288.0,0.001 +289.0,0.001 +290.0,0.0 +291.0,0.0 +292.0,0.001 +293.0,0.002 +294.0,0.0 +295.0,0.001 +296.0,0.001 +297.0,0.001 +298.0,0.0 +299.0,0.001 +300.0,0.001 +301.0,0.001 +302.0,0.001 +303.0,0.001 +304.0,0.0 +305.0,0.001 +306.0,0.0 +307.0,0.0 +308.0,0.001 +309.0,0.0 +310.0,0.001 +311.0,0.0 +312.0,0.001 +313.0,0.001 +314.0,0.001 +315.0,0.001 +316.0,0.001 +317.0,0.001 +318.0,0.001 +319.0,0.001 +320.0,0.001 +321.0,0.001 +322.0,0.001 +323.0,0.002 +324.0,0.001 +325.0,0.0 +326.0,0.001 +328.0,0.001 +329.0,0.001 +330.0,0.001 +331.0,0.0 +332.0,0.001 +333.0,0.001 +334.0,0.001 +335.0,0.001 +337.0,0.001 +338.0,0.001 +339.0,0.0 +340.0,0.001 +341.0,0.001 +342.0,0.0 +343.0,0.0 +344.0,0.001 +345.0,0.0 +346.0,0.001 +347.0,0.001 +348.0,0.002 +349.0,0.001 +350.0,0.001 +351.0,0.0 +352.0,0.001 +353.0,0.001 +354.0,0.0 +355.0,0.001 +356.0,0.0 +357.0,0.0 +358.0,0.0 +359.0,0.0 +360.0,0.0 +361.0,0.001 +362.0,0.001 +363.0,0.0 +364.0,0.0 +365.0,0.001 +366.0,0.001 +367.0,0.001 +368.0,0.0 +369.0,0.001 +370.0,0.001 +371.0,0.001 +372.0,0.001 +373.0,0.0 +374.0,0.0 +375.0,0.0 +376.0,0.0 +377.0,0.001 +378.0,0.001 +379.0,0.0 +380.0,0.0 +381.0,0.0 +382.0,0.001 +383.0,0.001 +384.0,0.001 +385.0,0.001 +386.0,0.001 +387.0,0.0 +388.0,0.001 +389.0,0.0 +390.0,0.0 +391.0,0.001 +392.0,0.001 +393.0,0.001 +394.0,0.001 +395.0,0.001 +396.0,0.001 +397.0,0.001 +398.0,0.001 +399.0,0.001 +400.0,0.0 +401.0,0.001 +402.0,0.001 +403.0,0.0 +404.0,0.001 +405.0,0.0 +406.0,0.0 +407.0,0.001 +408.0,0.0 +409.0,0.001 +410.0,0.0 +411.0,0.0 +412.0,0.0 +413.0,0.001 +414.0,0.0 +415.0,0.001 +416.0,0.0 +417.0,0.001 +418.0,0.001 +419.0,0.0 +420.0,0.0 +422.0,0.0 +423.0,0.001 +424.0,0.0 +425.0,0.0 +427.0,0.001 +428.0,0.0 +429.0,0.0 +430.0,0.0 +432.0,0.0 +433.0,0.0 +434.0,0.0 +435.0,0.0 +436.0,0.001 +437.0,0.0 +438.0,0.001 +439.0,0.001 +440.0,0.001 +441.0,0.001 +442.0,0.001 +443.0,0.0 +444.0,0.0 +445.0,0.001 +446.0,0.001 +448.0,0.0 +449.0,0.001 +450.0,0.001 +451.0,0.001 +452.0,0.001 +454.0,0.0 +455.0,0.001 +456.0,0.0 +457.0,0.0 +458.0,0.001 +459.0,0.0 +460.0,0.0 +462.0,0.0 +463.0,0.0 +464.0,0.0 +465.0,0.001 +466.0,0.001 +467.0,0.0 +469.0,0.0 +471.0,0.0 +472.0,0.0 +473.0,0.0 +474.0,0.0 +475.0,0.0 +476.0,0.001 +477.0,0.001 +478.0,0.001 +479.0,0.0 +480.0,0.0 +481.0,0.0 +482.0,0.0 +483.0,0.0 +484.0,0.0 +486.0,0.0 +487.0,0.0 +488.0,0.001 +489.0,0.001 +490.0,0.0 +491.0,0.001 +492.0,0.001 +495.0,0.0 +496.0,0.0 +497.0,0.0 +498.0,0.0 +500.0,0.0 +501.0,0.0 +503.0,0.001 +504.0,0.0 +505.0,0.0 +506.0,0.0 +507.0,0.001 +508.0,0.0 +509.0,0.001 +510.0,0.0 +511.0,0.0 +513.0,0.0 +514.0,0.001 +515.0,0.0 +516.0,0.0 +518.0,0.0 +520.0,0.001 +521.0,0.001 +522.0,0.0 +524.0,0.0 +526.0,0.0 +527.0,0.0 +528.0,0.0 +529.0,0.0 +530.0,0.0 +531.0,0.0 +532.0,0.001 +533.0,0.0 +534.0,0.0 +535.0,0.001 +536.0,0.0 +537.0,0.0 +538.0,0.0 +539.0,0.0 +540.0,0.0 +541.0,0.0 +542.0,0.0 +543.0,0.001 +544.0,0.001 +545.0,0.0 +546.0,0.001 +547.0,0.001 +549.0,0.0 +550.0,0.0 +552.0,0.001 +553.0,0.001 +557.0,0.0 +559.0,0.0 +560.0,0.001 +561.0,0.0 +565.0,0.001 +567.0,0.001 +568.0,0.0 +569.0,0.001 +570.0,0.001 +571.0,0.0 +574.0,0.0 +575.0,0.0 +576.0,0.0 +577.0,0.0 +578.0,0.0 +579.0,0.0 +580.0,0.0 +582.0,0.0 +583.0,0.0 +584.0,0.0 +586.0,0.001 +588.0,0.0 +589.0,0.0 +591.0,0.0 +592.0,0.0 +594.0,0.0 +596.0,0.001 +599.0,0.0 +601.0,0.0 +602.0,0.0 +604.0,0.001 +605.0,0.0 +608.0,0.0 +609.0,0.0 +610.0,0.0 +611.0,0.0 +612.0,0.0 +614.0,0.0 +615.0,0.0 +616.0,0.0 +619.0,0.001 +620.0,0.001 +621.0,0.0 +623.0,0.0 +624.0,0.001 +626.0,0.0 +628.0,0.0 +629.0,0.0 +631.0,0.0 +632.0,0.0 +634.0,0.0 +636.0,0.0 +637.0,0.0 +638.0,0.0 +639.0,0.0 +642.0,0.0 +645.0,0.0 +647.0,0.0 +651.0,0.001 +652.0,0.0 +653.0,0.001 +656.0,0.0 +657.0,0.0 +658.0,0.0 +659.0,0.0 +660.0,0.0 +662.0,0.0 +663.0,0.0 +664.0,0.0 +665.0,0.0 +667.0,0.0 +668.0,0.0 +669.0,0.0 +670.0,0.0 +671.0,0.001 +674.0,0.001 +677.0,0.0 +680.0,0.0 +681.0,0.0 +683.0,0.0 +684.0,0.0 +689.0,0.0 +690.0,0.0 +691.0,0.0 +693.0,0.0 +694.0,0.0 +697.0,0.0 +699.0,0.0 +701.0,0.0 +704.0,0.0 +706.0,0.0 +707.0,0.001 +709.0,0.001 +711.0,0.0 +712.0,0.0 +713.0,0.0 +714.0,0.0 +719.0,0.0 +720.0,0.0 +722.0,0.0 +723.0,0.0 +724.0,0.0 +725.0,0.0 +726.0,0.001 +732.0,0.0 +733.0,0.0 +734.0,0.0 +735.0,0.0 +738.0,0.0 +741.0,0.001 +742.0,0.0 +743.0,0.0 +744.0,0.0 +745.0,0.0 +747.0,0.0 +748.0,0.0 +750.0,0.0 +753.0,0.0 +756.0,0.0 +757.0,0.0 +758.0,0.0 +759.0,0.0 +761.0,0.0 +762.0,0.0 +768.0,0.0 +769.0,0.0 +772.0,0.0 +773.0,0.0 +775.0,0.0 +776.0,0.0 +778.0,0.0 +783.0,0.0 +785.0,0.001 +791.0,0.0 +796.0,0.0 +798.0,0.0 +800.0,0.0 +801.0,0.0 +802.0,0.0 +803.0,0.0 +804.0,0.001 +806.0,0.0 +807.0,0.0 +811.0,0.0 +814.0,0.0 +818.0,0.0 +822.0,0.0 +826.0,0.0 +827.0,0.0 +828.0,0.0 +829.0,0.0 +830.0,0.0 +836.0,0.0 +839.0,0.0 +843.0,0.001 +847.0,0.0 +850.0,0.0 +857.0,0.0 +859.0,0.0 +860.0,0.0 +861.0,0.0 +862.0,0.0 +863.0,0.0 +866.0,0.0 +867.0,0.0 +868.0,0.0 +873.0,0.0 +876.0,0.0 +879.0,0.0 +881.0,0.0 +887.0,0.0 +889.0,0.0 +893.0,0.0 +894.0,0.0 +895.0,0.0 +898.0,0.0 +899.0,0.0 +902.0,0.0 +903.0,0.0 +912.0,0.0 +914.0,0.0 +915.0,0.0 +926.0,0.0 +927.0,0.0 +928.0,0.0 +932.0,0.0 +934.0,0.0 +936.0,0.0 +937.0,0.0 +941.0,0.0 +944.0,0.0 +952.0,0.0 +954.0,0.0 +955.0,0.0 +961.0,0.0 +962.0,0.0 +968.0,0.0 +969.0,0.0 +971.0,0.0 +972.0,0.0 +977.0,0.0 +978.0,0.0 +979.0,0.0 +981.0,0.001 +983.0,0.0 +987.0,0.0 +988.0,0.0 +989.0,0.0 +994.0,0.0 +999.0,0.0 +1004.0,0.0 +1006.0,0.0 +1014.0,0.0 +1018.0,0.0 +1021.0,0.0 +1022.0,0.0 +1027.0,0.0 +1030.0,0.0 +1031.0,0.0 +1037.0,0.0 +1041.0,0.0 +1045.0,0.0 +1047.0,0.0 +1056.0,0.0 +1058.0,0.0 +1059.0,0.0 +1061.0,0.0 +1063.0,0.0 +1064.0,0.0 +1066.0,0.0 +1081.0,0.0 +1086.0,0.0 +1090.0,0.0 +1091.0,0.0 +1097.0,0.0 +1098.0,0.0 +1100.0,0.0 +1105.0,0.0 +1110.0,0.0 +1116.0,0.0 +1117.0,0.0 +1128.0,0.0 +1130.0,0.0 +1134.0,0.0 +1135.0,0.0 +1146.0,0.0 +1160.0,0.0 +1161.0,0.0 +1163.0,0.0 +1177.0,0.0 +1179.0,0.0 +1190.0,0.0 +1206.0,0.0 +1210.0,0.0 +1216.0,0.0 +1220.0,0.0 +1226.0,0.0 +1233.0,0.0 +1234.0,0.0 +1237.0,0.0 +1239.0,0.0 +1255.0,0.0 +1259.0,0.0 +1269.0,0.0 +1282.0,0.0 +1284.0,0.0 +1287.0,0.0 +1293.0,0.0 +1295.0,0.0 +1299.0,0.0 +1301.0,0.0 +1308.0,0.0 +1311.0,0.0 +1313.0,0.0 +1318.0,0.0 +1325.0,0.0 +1326.0,0.0 +1337.0,0.0 +1365.0,0.0 +1375.0,0.0 +1396.0,0.0 +1401.0,0.0 +1414.0,0.0 +1425.0,0.0 +1427.0,0.0 +1433.0,0.0 +1445.0,0.0 +1446.0,0.0 +1448.0,0.0 +1475.0,0.0 +1483.0,0.0 +1488.0,0.0 +1501.0,0.0 +1511.0,0.0 +1513.0,0.0 +1532.0,0.0 +1537.0,0.0 +1567.0,0.0 +1588.0,0.0 +1594.0,0.0 +1605.0,0.0 +1609.0,0.0 +1638.0,0.0 +1657.0,0.0 +1664.0,0.0 +1688.0,0.0 +1697.0,0.0 +1702.0,0.0 +1703.0,0.0 +1775.0,0.0 +1777.0,0.0 +1784.0,0.0 +1790.0,0.0 +1812.0,0.0 +1830.0,0.0 +1843.0,0.0 +1863.0,0.0 +1886.0,0.0 +1891.0,0.0 +1897.0,0.0 +1922.0,0.0 +1978.0,0.0 +1997.0,0.0 +2035.0,0.0 +2039.0,0.0 +2057.0,0.0 +2200.0,0.0 +2205.0,0.0 +2206.0,0.0 +2207.0,0.0 +2248.0,0.0 +2279.0,0.0 +2286.0,0.0 +2301.0,0.0 +2355.0,0.0 +2387.0,0.0 +2463.0,0.0 +2483.0,0.0 +2597.0,0.0 +2674.0,0.0 +2688.0,0.0 +2773.0,0.0 +2879.0,0.0 +2893.0,0.0 +3092.0,0.0 +3243.0,0.0 +3283.0,0.0 +3306.0,0.0 +3450.0,0.0 +3454.0,0.0 +3590.0,0.0 +3805.0,0.0 +3883.0,0.0 +4007.0,0.0 +4281.0,0.0 +4331.0,0.0 +4356.0,0.0 +4635.0,0.0 +4739.0,0.0 +5556.0,0.0 +5816.0,0.0 +12204.0,0.0 diff --git a/mazerunner_fanfics.csv b/mazerunner_fanfics.csv index 110470b962ad723b8ff59743a806cba471a92a74..6256370f67f9550b38777666173291d5781f1f3e 100644 Binary files a/mazerunner_fanfics.csv and b/mazerunner_fanfics.csv differ diff --git a/murderbot/plots/fanfic_overview/fanfic_kudo_freq_dist2.png b/murderbot/plots/fanfic_overview/fanfic_kudo_freq_dist2.png new file mode 100644 index 0000000000000000000000000000000000000000..cc847873d9bc85ec9d112dc4213ebec196eb3b61 Binary files /dev/null and b/murderbot/plots/fanfic_overview/fanfic_kudo_freq_dist2.png differ diff --git a/murderbot/plots/fanfic_overview/fanfic_kudo_new_dist.csv b/murderbot/plots/fanfic_overview/fanfic_kudo_new_dist.csv new file mode 100644 index 0000000000000000000000000000000000000000..850ddffa527587bd7d5cbf1d5eeea4d44616995d --- /dev/null +++ b/murderbot/plots/fanfic_overview/fanfic_kudo_new_dist.csv @@ -0,0 +1,398 @@ +,0 +1.0,0.002 +2.0,0.003 +3.0,0.004 +4.0,0.01 +5.0,0.013 +6.0,0.019 +7.0,0.016 +8.0,0.017 +9.0,0.015 +10.0,0.013 +11.0,0.008 +12.0,0.014 +13.0,0.016 +14.0,0.011 +15.0,0.014 +16.0,0.014 +17.0,0.012 +18.0,0.012 +19.0,0.007 +20.0,0.013 +21.0,0.008 +22.0,0.008 +23.0,0.008 +24.0,0.012 +25.0,0.008 +26.0,0.011 +27.0,0.008 +28.0,0.008 +29.0,0.012 +30.0,0.007 +31.0,0.008 +32.0,0.008 +33.0,0.009 +34.0,0.004 +35.0,0.01 +36.0,0.006 +37.0,0.008 +38.0,0.004 +39.0,0.005 +40.0,0.007 +41.0,0.005 +42.0,0.005 +43.0,0.01 +44.0,0.004 +45.0,0.009 +46.0,0.005 +47.0,0.007 +48.0,0.006 +49.0,0.005 +50.0,0.009 +51.0,0.002 +52.0,0.005 +53.0,0.003 +54.0,0.006 +55.0,0.008 +56.0,0.007 +57.0,0.004 +58.0,0.006 +59.0,0.003 +60.0,0.006 +61.0,0.005 +62.0,0.006 +63.0,0.007 +64.0,0.004 +65.0,0.003 +66.0,0.004 +67.0,0.005 +68.0,0.005 +69.0,0.002 +70.0,0.006 +71.0,0.007 +72.0,0.005 +73.0,0.004 +74.0,0.004 +75.0,0.003 +76.0,0.002 +77.0,0.004 +78.0,0.005 +79.0,0.004 +80.0,0.002 +81.0,0.004 +82.0,0.002 +83.0,0.002 +84.0,0.004 +85.0,0.002 +86.0,0.004 +87.0,0.003 +88.0,0.005 +89.0,0.002 +90.0,0.006 +91.0,0.002 +92.0,0.003 +93.0,0.005 +94.0,0.002 +95.0,0.002 +96.0,0.002 +97.0,0.003 +98.0,0.004 +99.0,0.004 +100.0,0.004 +101.0,0.001 +102.0,0.003 +103.0,0.001 +104.0,0.003 +105.0,0.004 +106.0,0.002 +107.0,0.002 +108.0,0.001 +109.0,0.004 +110.0,0.006 +111.0,0.003 +112.0,0.003 +113.0,0.001 +114.0,0.002 +115.0,0.003 +116.0,0.002 +117.0,0.001 +118.0,0.002 +119.0,0.005 +120.0,0.002 +121.0,0.002 +122.0,0.001 +123.0,0.003 +124.0,0.002 +125.0,0.003 +126.0,0.001 +127.0,0.003 +128.0,0.001 +129.0,0.005 +130.0,0.002 +131.0,0.003 +132.0,0.004 +133.0,0.003 +134.0,0.003 +135.0,0.002 +136.0,0.001 +137.0,0.001 +138.0,0.003 +139.0,0.002 +140.0,0.001 +141.0,0.002 +142.0,0.004 +143.0,0.001 +144.0,0.001 +145.0,0.003 +146.0,0.002 +147.0,0.001 +148.0,0.001 +149.0,0.002 +150.0,0.001 +151.0,0.001 +152.0,0.002 +153.0,0.001 +154.0,0.002 +155.0,0.003 +156.0,0.002 +157.0,0.002 +158.0,0.002 +159.0,0.002 +160.0,0.001 +161.0,0.002 +163.0,0.002 +165.0,0.002 +166.0,0.003 +167.0,0.001 +168.0,0.003 +169.0,0.001 +170.0,0.001 +171.0,0.001 +172.0,0.001 +173.0,0.001 +174.0,0.001 +175.0,0.002 +176.0,0.001 +177.0,0.002 +178.0,0.001 +179.0,0.001 +180.0,0.002 +182.0,0.001 +183.0,0.002 +184.0,0.003 +185.0,0.001 +186.0,0.004 +187.0,0.002 +188.0,0.001 +190.0,0.003 +191.0,0.003 +193.0,0.002 +194.0,0.002 +195.0,0.002 +196.0,0.002 +197.0,0.001 +199.0,0.001 +200.0,0.001 +201.0,0.003 +202.0,0.001 +203.0,0.002 +204.0,0.001 +207.0,0.001 +208.0,0.002 +209.0,0.001 +210.0,0.002 +211.0,0.001 +212.0,0.001 +213.0,0.001 +214.0,0.001 +215.0,0.001 +216.0,0.001 +218.0,0.001 +220.0,0.002 +221.0,0.001 +222.0,0.002 +224.0,0.001 +225.0,0.001 +226.0,0.001 +228.0,0.001 +229.0,0.001 +230.0,0.001 +231.0,0.001 +232.0,0.001 +234.0,0.001 +235.0,0.001 +236.0,0.001 +237.0,0.001 +239.0,0.001 +241.0,0.001 +242.0,0.001 +244.0,0.001 +245.0,0.001 +247.0,0.001 +249.0,0.001 +251.0,0.002 +252.0,0.001 +253.0,0.001 +254.0,0.002 +255.0,0.001 +256.0,0.002 +258.0,0.001 +259.0,0.001 +261.0,0.001 +262.0,0.002 +263.0,0.001 +264.0,0.001 +265.0,0.001 +267.0,0.001 +268.0,0.001 +270.0,0.001 +271.0,0.001 +273.0,0.002 +274.0,0.001 +275.0,0.001 +276.0,0.001 +280.0,0.001 +282.0,0.001 +288.0,0.002 +290.0,0.001 +291.0,0.001 +295.0,0.001 +296.0,0.001 +297.0,0.001 +299.0,0.001 +300.0,0.001 +303.0,0.001 +305.0,0.001 +306.0,0.001 +309.0,0.001 +312.0,0.001 +313.0,0.001 +314.0,0.001 +316.0,0.001 +317.0,0.001 +318.0,0.001 +319.0,0.001 +320.0,0.001 +321.0,0.001 +322.0,0.001 +323.0,0.001 +326.0,0.001 +329.0,0.001 +330.0,0.001 +333.0,0.001 +338.0,0.001 +339.0,0.001 +343.0,0.001 +345.0,0.001 +346.0,0.003 +348.0,0.001 +350.0,0.001 +354.0,0.001 +356.0,0.001 +358.0,0.001 +359.0,0.001 +360.0,0.001 +361.0,0.001 +364.0,0.001 +365.0,0.002 +366.0,0.001 +367.0,0.001 +369.0,0.001 +374.0,0.001 +375.0,0.001 +377.0,0.001 +378.0,0.001 +379.0,0.001 +380.0,0.001 +381.0,0.001 +382.0,0.001 +384.0,0.001 +385.0,0.001 +387.0,0.001 +390.0,0.001 +392.0,0.001 +393.0,0.001 +400.0,0.001 +402.0,0.001 +407.0,0.001 +408.0,0.001 +409.0,0.001 +411.0,0.001 +412.0,0.001 +417.0,0.001 +423.0,0.001 +424.0,0.001 +426.0,0.001 +427.0,0.001 +429.0,0.001 +430.0,0.001 +431.0,0.001 +433.0,0.001 +435.0,0.002 +436.0,0.001 +437.0,0.001 +446.0,0.001 +451.0,0.001 +452.0,0.001 +453.0,0.001 +459.0,0.001 +462.0,0.001 +464.0,0.001 +465.0,0.001 +468.0,0.001 +469.0,0.001 +477.0,0.001 +480.0,0.001 +484.0,0.001 +485.0,0.001 +488.0,0.001 +489.0,0.001 +491.0,0.001 +492.0,0.001 +516.0,0.001 +533.0,0.001 +535.0,0.001 +536.0,0.001 +543.0,0.001 +546.0,0.001 +552.0,0.001 +564.0,0.001 +566.0,0.001 +595.0,0.001 +596.0,0.001 +610.0,0.001 +623.0,0.001 +624.0,0.001 +627.0,0.001 +628.0,0.001 +635.0,0.001 +637.0,0.001 +645.0,0.001 +650.0,0.001 +655.0,0.001 +658.0,0.001 +663.0,0.001 +682.0,0.001 +687.0,0.001 +701.0,0.001 +711.0,0.001 +731.0,0.001 +752.0,0.001 +761.0,0.001 +771.0,0.001 +784.0,0.001 +785.0,0.001 +790.0,0.001 +794.0,0.001 +797.0,0.001 +822.0,0.001 +825.0,0.001 +860.0,0.001 +861.0,0.001 +865.0,0.001 +871.0,0.001 +881.0,0.001 +887.0,0.001 +888.0,0.001 +910.0,0.001 +960.0,0.001 diff --git a/percy_fanfics.csv b/percy_fanfics.csv index 5e1c1cc1fea56adaa06f3310e1ee742cf60262c5..129085c48bf933c49bfde9ff136d335141f848a8 100644 Binary files a/percy_fanfics.csv and b/percy_fanfics.csv differ diff --git a/school_for_good_and_evil/plots/fanfic_overview/fanfic_kudo_freq_dist2.png b/school_for_good_and_evil/plots/fanfic_overview/fanfic_kudo_freq_dist2.png new file mode 100644 index 0000000000000000000000000000000000000000..0b9563287c4e55f74f8d2a6f621f0abbabbb3e18 Binary files /dev/null and b/school_for_good_and_evil/plots/fanfic_overview/fanfic_kudo_freq_dist2.png differ diff --git a/school_for_good_and_evil/plots/fanfic_overview/fanfic_kudo_new_dist.csv b/school_for_good_and_evil/plots/fanfic_overview/fanfic_kudo_new_dist.csv new file mode 100644 index 0000000000000000000000000000000000000000..710f52734efec45915475a91a79d9c6e5efa913c --- /dev/null +++ b/school_for_good_and_evil/plots/fanfic_overview/fanfic_kudo_new_dist.csv @@ -0,0 +1,297 @@ +,0 +1.0,0.014 +2.0,0.012 +3.0,0.016 +4.0,0.014 +5.0,0.009 +6.0,0.011 +7.0,0.014 +8.0,0.008 +9.0,0.009 +10.0,0.011 +11.0,0.01 +12.0,0.012 +13.0,0.009 +14.0,0.015 +15.0,0.016 +16.0,0.011 +17.0,0.01 +18.0,0.009 +19.0,0.009 +20.0,0.011 +21.0,0.004 +22.0,0.009 +23.0,0.009 +24.0,0.014 +25.0,0.009 +26.0,0.011 +27.0,0.007 +28.0,0.014 +29.0,0.005 +30.0,0.008 +31.0,0.008 +32.0,0.009 +33.0,0.009 +34.0,0.007 +35.0,0.006 +36.0,0.009 +37.0,0.003 +38.0,0.007 +39.0,0.009 +40.0,0.007 +41.0,0.013 +42.0,0.008 +43.0,0.006 +44.0,0.006 +45.0,0.009 +46.0,0.008 +47.0,0.005 +48.0,0.006 +49.0,0.009 +50.0,0.007 +51.0,0.007 +52.0,0.005 +53.0,0.007 +54.0,0.006 +55.0,0.004 +56.0,0.007 +57.0,0.005 +58.0,0.009 +59.0,0.004 +60.0,0.005 +61.0,0.006 +62.0,0.006 +63.0,0.004 +64.0,0.003 +65.0,0.005 +66.0,0.005 +67.0,0.002 +68.0,0.005 +69.0,0.003 +70.0,0.002 +71.0,0.005 +72.0,0.005 +73.0,0.004 +74.0,0.002 +75.0,0.006 +76.0,0.004 +77.0,0.002 +78.0,0.007 +79.0,0.005 +80.0,0.006 +81.0,0.004 +82.0,0.003 +83.0,0.001 +84.0,0.001 +85.0,0.004 +86.0,0.001 +87.0,0.004 +88.0,0.004 +89.0,0.005 +90.0,0.005 +91.0,0.004 +92.0,0.008 +93.0,0.002 +94.0,0.004 +95.0,0.002 +96.0,0.003 +97.0,0.003 +98.0,0.001 +99.0,0.002 +100.0,0.006 +101.0,0.004 +102.0,0.004 +103.0,0.003 +104.0,0.001 +105.0,0.001 +106.0,0.005 +107.0,0.002 +108.0,0.002 +109.0,0.004 +110.0,0.002 +111.0,0.003 +112.0,0.001 +113.0,0.002 +114.0,0.004 +115.0,0.005 +116.0,0.002 +117.0,0.002 +118.0,0.002 +119.0,0.006 +121.0,0.006 +122.0,0.005 +123.0,0.006 +124.0,0.003 +125.0,0.001 +126.0,0.001 +127.0,0.005 +129.0,0.002 +130.0,0.006 +131.0,0.003 +132.0,0.004 +133.0,0.001 +134.0,0.003 +135.0,0.001 +136.0,0.002 +137.0,0.004 +138.0,0.004 +139.0,0.002 +140.0,0.001 +141.0,0.001 +142.0,0.001 +144.0,0.003 +145.0,0.001 +148.0,0.001 +149.0,0.001 +150.0,0.004 +153.0,0.003 +154.0,0.001 +155.0,0.002 +157.0,0.004 +158.0,0.002 +159.0,0.002 +160.0,0.001 +161.0,0.001 +162.0,0.002 +163.0,0.001 +164.0,0.002 +165.0,0.004 +166.0,0.002 +167.0,0.006 +168.0,0.002 +169.0,0.001 +170.0,0.001 +171.0,0.003 +172.0,0.002 +173.0,0.003 +174.0,0.002 +175.0,0.001 +177.0,0.002 +178.0,0.001 +179.0,0.001 +180.0,0.002 +181.0,0.001 +182.0,0.001 +184.0,0.001 +185.0,0.001 +186.0,0.001 +188.0,0.001 +189.0,0.002 +190.0,0.002 +191.0,0.003 +192.0,0.001 +193.0,0.002 +194.0,0.001 +195.0,0.004 +198.0,0.002 +200.0,0.003 +201.0,0.002 +202.0,0.001 +203.0,0.003 +204.0,0.001 +205.0,0.003 +206.0,0.001 +208.0,0.001 +209.0,0.003 +210.0,0.001 +211.0,0.004 +213.0,0.001 +217.0,0.001 +219.0,0.002 +221.0,0.001 +222.0,0.002 +223.0,0.001 +226.0,0.001 +227.0,0.001 +228.0,0.001 +229.0,0.002 +233.0,0.002 +234.0,0.002 +237.0,0.001 +241.0,0.001 +244.0,0.001 +245.0,0.001 +248.0,0.001 +253.0,0.002 +255.0,0.001 +257.0,0.001 +259.0,0.001 +260.0,0.001 +263.0,0.003 +264.0,0.001 +266.0,0.001 +270.0,0.001 +275.0,0.003 +279.0,0.001 +280.0,0.001 +288.0,0.001 +290.0,0.001 +295.0,0.001 +297.0,0.002 +299.0,0.002 +305.0,0.003 +308.0,0.002 +310.0,0.001 +313.0,0.001 +315.0,0.001 +320.0,0.001 +325.0,0.001 +328.0,0.001 +329.0,0.001 +330.0,0.001 +334.0,0.001 +335.0,0.002 +339.0,0.001 +341.0,0.001 +343.0,0.001 +347.0,0.001 +350.0,0.001 +359.0,0.002 +360.0,0.001 +361.0,0.003 +362.0,0.001 +365.0,0.001 +368.0,0.001 +370.0,0.001 +372.0,0.001 +374.0,0.001 +375.0,0.001 +388.0,0.001 +394.0,0.001 +397.0,0.001 +401.0,0.001 +406.0,0.001 +418.0,0.001 +419.0,0.001 +421.0,0.002 +423.0,0.001 +426.0,0.001 +442.0,0.001 +443.0,0.001 +463.0,0.001 +464.0,0.001 +476.0,0.001 +483.0,0.001 +493.0,0.001 +494.0,0.001 +505.0,0.001 +506.0,0.001 +513.0,0.001 +522.0,0.001 +527.0,0.001 +529.0,0.001 +536.0,0.001 +543.0,0.001 +565.0,0.001 +572.0,0.001 +582.0,0.001 +622.0,0.001 +652.0,0.001 +687.0,0.001 +689.0,0.001 +743.0,0.001 +768.0,0.001 +837.0,0.001 +855.0,0.001 +888.0,0.001 +932.0,0.001 diff --git a/throne_of_glass/freq_distribution/fanfic_kudo_freq_dist.png b/throne_of_glass/freq_distribution/fanfic_kudo_freq_dist.png index 9a9ab570b72a555eb28fbd9141fe06d647256d6e..b26481c8acebd35f8acedbc781b6f9ebd4fc46c8 100644 Binary files a/throne_of_glass/freq_distribution/fanfic_kudo_freq_dist.png and b/throne_of_glass/freq_distribution/fanfic_kudo_freq_dist.png differ