<commit_before>#ifndef _paintown_gui_context_box_h
#define _paintown_gui_context_box_h

#include <string>

#include "gui/widget.h"

namespace Gui{

template <class T>
class ContextBox : public Widget{
    public:
        ContextBox():
        current(0){
        }
        ContextBox( const ContextBox & b ):
        current(0){
        }
        virtual ~ContextBox(){
        }
        
        //! copy
	    ContextBox &operator=( const ContextBox &){
	    }
	
	    //! Logic
	    virtual void act(){
	    }
	
	    //! Render
	    virtual void render(const Bitmap & work){
	    }
    
        //! Next
        virtual void next(){
	    }
    
        //! Previous
        virtual void previous(){
	    }
    
        //! Set context list
        virtual inline void setList(std::vector<T> & list){
            this->context = &list;
            this->current = 0;
        }
    
        //! Get current index
        virtual inline int getCurrentIndex(){
            return this->current;
        }
        //! Get current item
        virtual inline T getCurrentItem(){
            return this->context[this->current];
        }
    private: 
        //! Current index
        unsigned int current;

        //! Context list
        std::vector<T> * context;
};

}

#endif<commit_msg>Fix spacing.<commit_after>#ifndef _paintown_gui_context_box_h
#define _paintown_gui_context_box_h

#include <string>

#include "gui/widget.h"

namespace Gui{

template <class T>
class ContextBox : public Widget{
    public:
        ContextBox():
        current(0){
        }
        ContextBox( const ContextBox & b ):
        current(0){
        }
        virtual ~ContextBox(){
        }
        
        //! copy
        ContextBox &operator=( const ContextBox &){
        }
        //! Logic
        virtual void act(){
        }
        //! Render
        virtual void render(const Bitmap & work){
        }
        //! Next
        virtual void next(){
        }
        //! Previous
        virtual void previous(){
        }
        //! Set context list
        virtual inline void setList(std::vector<T> & list){
            this->context = &list;
            this->current = 0;
        }
        //! Get current index
        virtual inline int getCurrentIndex(){
            return this->current;
        }
        //! Get current item
        virtual inline T getCurrentItem(){
            return this->context[this->current];
        }
    private: 
        //! Current index
        unsigned int current;

        //! Context list
        std::vector<T> * context;
};

}

#endif
{'fraction_non_alphanumeric': 0.1096474234792716, 'fraction_numerical': 0.002324680356450988, 'mean_word_length': 1.5388397246804326, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 21, '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': '772416', 'n_tokens_mistral': 715, 'n_tokens_neox': 693, 'n_words': 182}