<commit_before>#ifndef _ARC_HPP_
#define _ARC_HPP_
#include <iostream>

template<class T, class C>
class Vertex;

template<class T, class C>
class Arc
{
    private:
        C cost;
        Arc<T,C> *next;
        Vertex<T,C> *key;
    
    public:
        Arc() : key(NULL), next(NULL) { };
        Arc(C c) : cost(c), key(NULL), next(NULL) { };
        Arc(C c, Vertex<T,C>* v) : cost(c), key(v), next(NULL) { };
        Arc(C c, Vertex<T,C>* v, Arc<T,C>* n) : cost(c), key(v), next(n) { };

        T getKey() const { return key->getKey(); };
        Vertex<T,C>* getVertex() const { return key; };
        C getCost() const { return cost; };
        Arc<T,C>* getNext() const { return next; };
        
        void setVertex(Vertex<T,C> *p) { key = p; };
        void setCost(C c) { cost = c; };
        void setNext(Arc<T,C> *p) { next = p; };
};

#endif
<commit_msg>Next setter + getter<commit_after>#ifndef _ARC_HPP_
#define _ARC_HPP_
#include <iostream>

template<class T, class C>
class Vertex;

template<class T, class C>
class Arc
{
    private:
        C cost;
        Arc *next;
        Vertex<T,C> *key;
    
    public:
        Arc() : key(NULL), next(NULL) { };
        Arc(C c) : cost(c), key(NULL), next(NULL) { };
        Arc(C c, Vertex<T,C>* v) : cost(c), key(v), next(NULL) { };
        Arc(C c, Vertex<T,C>* v, Arc* n) : cost(c), key(v), next(n) { };

        T getKey() const { return key->getKey(); };
        Vertex<T,C>* getVertex() const { return key; };
        C getCost() const { return cost; };
        Arc* getNext() const { return next; };
        
        void setVertex(Vertex<T,C> *p) { key = p; };
        void setCost(C c) { cost = c; };
        void setNext(Arc *p) { next = p; };
};

#endif

{'fraction_non_alphanumeric': 0.1840738603577611, 'fraction_numerical': 0.0, 'mean_word_length': 2.36046511627907, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 25, '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': '7369886', 'n_tokens_mistral': 670, 'n_tokens_neox': 657, 'n_words': 174}