<commit_before>#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <libxml/tree.h>
#include <libxml/xpath.h>
#include <libxml/xpathInternals.h>
#include "tcx.h"

activity_t * current_activity = NULL;
lap_t * current_lap = NULL;
track_t * current_track = NULL;
trackpoint_t * current_trackpoint = NULL;

void
add_activity(tcx_t * tcx, activity_t * activity)
{
    if (current_activity != NULL)
    {
        current_activity->next = activity;
    }
    else
    {
        tcx->activities = activity;
    }<commit_msg>list current node pointer are static<commit_after>#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <libxml/tree.h>
#include <libxml/xpath.h>
#include <libxml/xpathInternals.h>
#include "tcx.h"

static activity_t * current_activity = NULL;
static lap_t * current_lap = NULL;
static track_t * current_track = NULL;
static trackpoint_t * current_trackpoint = NULL;

void
add_activity(tcx_t * tcx, activity_t * activity)
{
    if (current_activity != NULL)
    {
        current_activity->next = activity;
    }
    else
    {
        tcx->activities = activity;
    }
{'fraction_non_alphanumeric': 0.12467532467532468, 'fraction_numerical': 0.0, 'mean_word_length': 3.8983050847457625, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, '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': '3323124', 'n_tokens_mistral': 412, 'n_tokens_neox': 410, 'n_words': 91}