<commit_before>/* <copyright>
 * Copyright 2013 The Trustees of Princeton University
 * All Rights Reserved
 * </copyright>
 * <author><NAME></author>
 * <email><EMAIL></email>
 * <date>06/24/2013</date>
 * <summary>
 *   map-parser.cpp: Parses an XML file in the form 
 *   <?xml version="1.0"?>
 *   <Map>
 *     <Pair>
 *       <File>/foo/bar</File>
 *       <Query>SQL</Query>
 *     </Pair>
 *   </Map>
 * </summary>
 */

#include "map-parser.h"



MapParserHandler::MapParserHandler(map<string, struct map_info*>* xmlmap)
{
    this->xmlmap = xmlmap;
    open_key = false;
    open_val = false;
    open_dsn = false;
    element_buff = NULL;
    current_key = NULL;
    bounded_query = NULL;
    unbounded_query = NULL;
    type = QUERY_TYPE_DEFAULT;
    current_id = 0;
    reval_secs = 0;
}
<commit_msg>Initializes shell_cmd to NULL in the constructor in map_parser.cpp<commit_after>/* <copyright>
 * Copyright 2013 The Trustees of Princeton University
 * All Rights Reserved
 * </copyright>
 * <author><NAME></author>
 * <email><EMAIL></email>
 * <date>06/24/2013</date>
 * <summary>
 *   map-parser.cpp: Parses an XML file in the form 
 *   <?xml version="1.0"?>
 *   <Map>
 *     <Pair>
 *       <File>/foo/bar</File>
 *       <Query>SQL</Query>
 *     </Pair>
 *   </Map>
 * </summary>
 */

#include "map-parser.h"



MapParserHandler::MapParserHandler(map<string, struct map_info*>* xmlmap)
{
    this->xmlmap = xmlmap;
    open_key = false;
    open_val = false;
    open_dsn = false;
    element_buff = NULL;
    current_key = NULL;
    bounded_query = NULL;
    unbounded_query = NULL;
    shell_cmd = NULL;
    dsn_str = NULL;
    type = QUERY_TYPE_DEFAULT;
    current_id = 0;
    reval_secs = 0;
}

{'fraction_non_alphanumeric': 0.15084449621432733, 'fraction_numerical': 0.018637157833430402, 'mean_word_length': 2.922374429223744, 'pattern_counts': {'":': 0, '<': 47, '<?xml version=': 2, '>': 49, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 8}, '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': '5754530', 'n_tokens_mistral': 641, 'n_tokens_neox': 602, 'n_words': 136}