<commit_before>#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <check.h>

#include "eas_test_user.h"
#include "../libeasmail/src/libeasmail.h"
#include "../libeasmail/src/eas-folder.h"

static gchar * g_account_id = TEST_ACCOUNT_ID;
Suite* eas_folderhierarchy_suite (void);

static void
log_and_free (gpointer data, gpointer user_data)
{
    EasFolder *item = data;

    if (item)
    {
        g_message("%s:%u:%s:%s", 
                item->display_name, 
                item->type, 
                item->folder_id, 
                item->parent_id);
        
        g_object_unref (item);
    }
}

START_TEST (test_get_folder_hierarchy)
{
    GSList *added = NULL, *updated = NULL, *deleted = NULL;
    EasEmailHandler *email_handler = NULL;
    gchar syncKey[64] = "1";
    GError *error = NULL;
    gboolean result = FALSE;

    email_handler = eas_mail_handler_new (g_account_id, &error);

    if (!email_handler)<commit_msg>Sync Id set back to 0<commit_after>#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <check.h>

#include "eas_test_user.h"
#include "../libeasmail/src/libeasmail.h"
#include "../libeasmail/src/eas-folder.h"

static gchar * g_account_id = TEST_ACCOUNT_ID;
Suite* eas_folderhierarchy_suite (void);

static void
log_and_free (gpointer data, gpointer user_data)
{
    EasFolder *item = data;

    if (item)
    {
        g_message("%s:%u:%s:%s", 
                item->display_name, 
                item->type, 
                item->folder_id, 
                item->parent_id);
        
        g_object_unref (item);
    }
}

START_TEST (test_get_folder_hierarchy)
{
    GSList *added = NULL, *updated = NULL, *deleted = NULL;
    EasEmailHandler *email_handler = NULL;
    gchar syncKey[64] = "0";
    GError *error = NULL;
    gboolean result = FALSE;

    email_handler = eas_mail_handler_new (g_account_id, &error);

    if (!email_handler)
{'fraction_non_alphanumeric': 0.12839248434237996, 'fraction_numerical': 0.0036534446764091857, 'mean_word_length': 2.818725099601594, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 19, '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': '7645383', 'n_tokens_mistral': 711, 'n_tokens_neox': 676, 'n_words': 138}