<commit_before>/*
 * =====================================================================================
 *
 *       Filename:  mmspa4pg.c
 *
 *    Description:  Implementations of the public top-level routing functions
 *
 *        Created:  2009/10/05 17时05分50秒
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  <NAME> (lliu), <EMAIL>
 *   Organization:  LfK@TUM
 *
 * =====================================================================================
 */
  
#include <stdio.h>
#include <assert.h>
#include "../include/mmspa4pg.h"
#include "../include/graphassembler.h"
#include "../include/routingresult.h"
 
Path **MSPfindPath(int64_t source, int64_t target) {
#ifdef DEBUG
    printf("[DEBUG][mmspa4pg.c::MSPfindPath]assemble active graphs\n");
#endif
    assert(!MSPassembleGraphs());
#ifdef DEBUG
    printf("[DEBUG][mmspa4pg.c::MSPfindPath]find multimodal shortest paths\n");
#endif
    MultimodalTwoQ(source);
#ifdef DEBUG
    printf("[DEBUG][mmspa4pg.c::MSPfindPath]get the found path\n");
#endif
    Path **finalPath = MSPgetFinalPath(source, target);
#ifdef DEBUG
    printf("[DEBUG][mmspa4pg.c::MSPfindPath]dispose heap memory for this routing plan\n");
#endif
    MSPclearActiveGraphs();
    return finalPath;
}<commit_msg>remove the modegraph disposing from MSPfindPath function because it should be called by clients<commit_after>/*
 * =====================================================================================
 *
 *       Filename:  mmspa4pg.c
 *
 *    Description:  Implementations of the public top-level routing functions
 *
 *        Created:  2009/10/05 17时05分50秒
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  <NAME> (lliu), <EMAIL>
 *   Organization:  LfK@TUM
 *
 * =====================================================================================
 */
  
#include <stdio.h>
#include <assert.h>
#include "../include/mmspa4pg.h"
#include "../include/graphassembler.h"
#include "../include/routingresult.h"
 
Path **MSPfindPath(int64_t source, int64_t target) {
#ifdef DEBUG
    printf("[DEBUG][mmspa4pg.c::MSPfindPath]assemble active graphs\n");
#endif
    assert(!MSPassembleGraphs());
#ifdef DEBUG
    printf("[DEBUG][mmspa4pg.c::MSPfindPath]find multimodal shortest paths\n");
#endif
    MultimodalTwoQ(source);
#ifdef DEBUG
    printf("[DEBUG][mmspa4pg.c::MSPfindPath]get the found path\n");
#endif
    Path **finalPath = MSPgetFinalPath(source, target);
    return finalPath;
}
{'fraction_non_alphanumeric': 0.25900445163901253, 'fraction_numerical': 0.019020639417239985, 'mean_word_length': 4.481152993348116, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '7436600', 'n_tokens_mistral': 812, 'n_tokens_neox': 761, 'n_words': 158}