<commit_before>//
//  Graph.cpp
//  Graphs
//
//  Created by <NAME> on 24/02/15.
//  Copyright (c) 2015 <NAME>. All rights reserved.
//

#include "Graph.h"
#include "Vertex.h"
#include <vector>
#include <iostream>
#include <random>

using namespace std;

Graph::Graph(long n, long m)
{
#ifdef DEBUG
    cout << n << " source vertexes, " << m << " destination vertexes." << endl;
#endif
    cout << "Generating source & destination vertexes..." << endl;
    for (long i = 0; i < n; i++) {
        sourceVertexes.push_back(new Vertex(VertexTypeSource, i));
        destinationVertexes.push_back(new Vertex(VertexTypeDestination, i));
    }
    
    maxToDest = destinationVertexes.size();
    connectSourceAndDestinationVertexes();
}<commit_msg>Fixing graph destinations count generation<commit_after>//
//  Graph.cpp
//  Graphs
//
//  Created by <NAME> on 24/02/15.
//  Copyright (c) 2015 <NAME>. All rights reserved.
//

#include "Graph.h"
#include "Vertex.h"
#include <vector>
#include <iostream>
#include <random>

using namespace std;

Graph::Graph(long n, long m)
{
#ifdef DEBUG
    cout << n << " source vertexes, " << m << " destination vertexes." << endl;
#endif
    cout << "Generating source & destination vertexes..." << endl;
    for (long i = 0; i < n; i++) {
        sourceVertexes.push_back(new Vertex(VertexTypeSource, i));
    }
    for (long i = 0; i < m; i++) {
        destinationVertexes.push_back(new Vertex(VertexTypeDestination, i));
    }
    
    maxToDest = destinationVertexes.size();
    connectSourceAndDestinationVertexes();
}
{'fraction_non_alphanumeric': 0.15552699228791775, 'fraction_numerical': 0.014781491002570694, 'mean_word_length': 3.3011049723756907, 'pattern_counts': {'":': 0, '<': 44, '<?xml version=': 0, '>': 13, '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': '7343025', 'n_tokens_mistral': 525, 'n_tokens_neox': 507, 'n_words': 141}