<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-


"""Config file for the cleaning - plotting and notebook process"""


class CleaningConfig:

    # Unprocessed dataset
    raw_data = './dataset/raw_results-survey245554.csv'
    # load the different answers to questions to classify questions based on that
    question_file = '../../../survey_creation/uk_17/uk_17.csv'
    answer_folder = '../../../survey_creation/uk_17/listAnswers'
    # Location for the json file of all questions
    json_to_plot_location = './to_plot.json'
    cleaned_df_location = './dataset/cleaned_data.csv'


class PlottingConfig(CleaningConfig):

    pass


class NotebookConfig(PlottingConfig):

    notebook_folder = './'
    notebook_filename = 'uk_17.ipynb'
    to_import = ['import pandas as pd',
                 'import numpy as np',
                 'get_ipython().magic("matplotlib inline")',
                 'import matplotlib',
                 'import matplotlib.pyplot as plt',
                 'from config import CleaningConfig, PlottingConfig, NotebookConfig',
                 'from counting import get_count',
                 'from plotting import get_plot',
                 'from likertScalePlot import likert_scale']
<commit_msg>Add options in the plot<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-


"""Config file for the cleaning - plotting and notebook process"""


class CleaningConfig:

    # Unprocessed dataset
    raw_data = './dataset/raw_results-survey245554.csv'
    # load the different answers to questions to classify questions based on that
    question_file = '../../../survey_creation/uk_17/uk_17.csv'
    answer_folder = '../../../survey_creation/uk_17/listAnswers'
    # Location for the json file of all questions
    json_to_plot_location = './to_plot.json'
    cleaned_df_location = './dataset/cleaned_data.csv'


class PlottingConfig(CleaningConfig):
    count_na = True
    plot_na = False
    normalise = False


class NotebookConfig(PlottingConfig):

    notebook_folder = './'
    notebook_filename = 'uk_17.ipynb'
    to_import = ['import pandas as pd',
                 'import numpy as np',
                 'import matplotlib',
                 'import matplotlib.pyplot as plt',
                 'from config import CleaningConfig, PlottingConfig, NotebookConfig',
                 'from counting import get_count',
                 'from plotting import get_plot',
                 'from IPython.display import display',
                 'from likertScalePlot import likert_scale']
    processing_options = {'metadata': {'path': './',
                                       'hide_input': True}}

{'fraction_non_alphanumeric': 0.10542168674698796, 'fraction_numerical': 0.011295180722891566, 'mean_word_length': 2.4328165374677004, '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': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6068853', 'n_tokens_mistral': 766, 'n_tokens_neox': 726, 'n_words': 196}