<commit_before>/**
 * \file SingleGraphFrame.cpp
 * \brief Frame for single graphs
 */
 
#include "SingleGraphFrame.h"

BEGIN_EVENT_TABLE(SingleGraphFrame,BaseFrame)
END_EVENT_TABLE()

/**
   Constructor for the Main frame.
*/

SingleGraphFrame::SingleGraphFrame(Graph* graph)
: BaseFrame() {
    flightId = "Please select a device from the menu.";
    
    this->graph = graph;
    
    CreateGUIControls();
    
    SetTransparent(245);
}

/** 
   Destructor for the Main frame.
*/

SingleGraphFrame::~SingleGraphFrame() {
}

/**
    Updates the GUI with new database information
*/

void SingleGraphFrame::Update() {
    CreateMenu(false, false, true, false);
    
    graph->Update(flightId);
}

/**
   Creates all of the GUI controls on the frame.
*/
    
void SingleGraphFrame::CreateGUIControls() {
    // Set window properties and title bar
    SetTitle(wxT("Graph"));
    SetIcon(wxNullIcon);
    
    mainPanel = new wxPanel(this, wxID_ANY);
    mainSizer = new wxBoxSizer(wxVERTICAL);
    mainPanel->SetSizer(mainSizer);
    
    graph = new Graph(mainPanel,
                      graph->name,
                      graph->db_table,
                      graph->flightId,
                      graph->db_col);     
    mainSizer->Add(graph, 1, wxEXPAND | wxALL);

    Update();

}

wxFrame* NewSingleGraphFrame(Graph* graph) {
    return (wxFrame*)(new SingleGraphFrame(graph));
}
<commit_msg>- cleanup<commit_after>/**
 * \file SingleGraphFrame.cpp
 * \brief Frame for single graphs
 */
 
#include "SingleGraphFrame.h"

BEGIN_EVENT_TABLE(SingleGraphFrame,BaseFrame)
END_EVENT_TABLE()

/**
   Constructor for the Main frame.
*/

SingleGraphFrame::SingleGraphFrame(Graph* graph)
: BaseFrame() {
    flightId = "Please select a device from the menu.";
    
    this->graph = graph;
    
    CreateGUIControls();
    
    SetTransparent(245);
}

/** 
   Destructor for the Main frame.
*/

SingleGraphFrame::~SingleGraphFrame() {
}

/**
    Updates the GUI with new database information
*/

void SingleGraphFrame::Update() {
    CreateMenu(false, false, true, false);
    
    graph->Update(flightId);
}

/**
   Creates all of the GUI controls on the frame.
*/
    
void SingleGraphFrame::CreateGUIControls() {
    // Set window properties and title bar
    SetTitle(wxT("Graph"));
    SetIcon(wxNullIcon);
    
    mainPanel = new wxPanel(this, wxID_ANY);
    mainSizer = new wxBoxSizer(wxVERTICAL);
    mainPanel->SetSizer(mainSizer);
    
    graph = new Graph(mainPanel,
                      graph->name,
                      graph->db_table,
                      graph->flightId,
                      graph->db_col);     
    mainSizer->Add(graph, 1, wxEXPAND | wxALL);

    Update();
}

wxFrame* NewSingleGraphFrame(Graph* graph) {
    return (wxFrame*)(new SingleGraphFrame(graph));
}

{'fraction_non_alphanumeric': 0.11951480556546558, 'fraction_numerical': 0.0028540849090260435, 'mean_word_length': 2.7188328912466844, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 19, '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': '6926273', 'n_tokens_mistral': 879, 'n_tokens_neox': 857, 'n_words': 195}