<commit_before>#include <cstdio>
#include <vector>
#include <list>
#include <set>

using namespace std;

typedef pair< int, int > ii;

int *dijkstra( vector< list< ii > > L, int source ) {
    int i, v, v2, d2, *D;

    D = ( int* )malloc( L.size() * sizeof( int ) );
    for ( i = 0; i < L.size(); i += 1 ) {
        D[ i ] = 987654321;
    }

    set< ii > S;
    list< ii >::iterator it;

    D[ source ] = 0;
    S.insert( ii( source, D[ source ] ) );
    while ( !S.empty() ) {
        v = S.begin()->first;

        S.erase( S.begin() );

        for ( it = L[ v ].begin(); it != L[ v ].end(); ++it ) {
            v2 = it->first;
            d2 = it->second;

            if ( D[ v2 ] > D[ v ] + d2 ) {
                if ( D[ v2 ] != 987654321 ) {
                    S.erase( ii( v2, D[ v2 ] ) );
                }
                D[ v2 ] = D[ v ] + d2;
                S.insert( ii( v2, D[ v2 ] ) );
            }
        }
    }

    return D;
}

int main() {
    int V, E, v, u, w;
<commit_msg>seperate var deifinition<commit_after>#include <cstdio>
#include <vector>
#include <list>
#include <set>

using namespace std;

typedef pair< int, int > ii;

int *dijkstra( vector< list< ii > > L, int source ) {
    int i, v, v2, d2, *D;
    set< ii > S;
    list< ii >::iterator it;

    D = ( int* )malloc( L.size() * sizeof( int ) );
    for ( i = 0; i < L.size(); i += 1 ) {
        D[ i ] = 987654321;
    }

    D[ source ] = 0;
    S.insert( ii( source, D[ source ] ) );
    while ( !S.empty() ) {
        v = S.begin()->first;

        S.erase( S.begin() );

        for ( it = L[ v ].begin(); it != L[ v ].end(); ++it ) {
            v2 = it->first;
            d2 = it->second;

            if ( D[ v2 ] > D[ v ] + d2 ) {
                if ( D[ v2 ] != 987654321 ) {
                    S.erase( ii( v2, D[ v2 ] ) );
                }
                D[ v2 ] = D[ v ] + d2;
                S.insert( ii( v2, D[ v2 ] ) );
            }
        }
    }

    return D;
}

int main() {
    int V, E, v, u, w;

{'fraction_non_alphanumeric': 0.18793273986152326, 'fraction_numerical': 0.033630069238377844, 'mean_word_length': 1.3688524590163935, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 29, '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': '6766497', 'n_tokens_mistral': 836, 'n_tokens_neox': 777, 'n_words': 234}