<commit_before>// -*- coding: utf-8 -*-
#include "mujintestutils.h"

using namespace mujinclient;

int main(int argc, char ** argv)
{
    try {
        ControllerClientPtr controller = CreateControllerFromCommandLine(argc,argv);

        std::string sourcefilename_utf8 = "../share/mujincontrollerclient/robodia_demo1/robodia_demo1.xml";
        std::string uri_utf8 = "mujin:/testupload/";

        controller->SyncUpload_UTF8(sourcefilename_utf8, uri_utf8, "cecrobodiaxml");

        controller->DeleteDirectoryOnController_UTF8(uri_utf8);
    }
    catch(const MujinException& ex) {
        std::cout << "exception thrown: " << ex.message() << std::endl;
    }
    ControllerClientDestroy();
}<commit_msg>add delete dir tests<commit_after>// -*- coding: utf-8 -*-
#include "mujintestutils.h"

using namespace mujinclient;

int main(int argc, char ** argv)
{
    try {
        ControllerClientPtr controller = CreateControllerFromCommandLine(argc,argv);

        std::string sourcefilename_utf8 = "../share/mujincontrollerclient/robodia_demo1/robodia_demo1.xml";
        std::string uridir_utf8 = "mujin:/testupload/";
        std::string uri_utf8 = "mujin:/testupload/robodia_demo1.xml";

        controller->SyncUpload_UTF8(sourcefilename_utf8, uridir_utf8, "cecrobodiaxml");

        controller->RegisterScene_UTF8(uri_utf8, "cecrobodiaxml");

        // extract some information

        // delete
        //controller->DeleteDirectoryOnController_UTF8(uridir_utf8);

        // test if the delete works

    }
    catch(const MujinException& ex) {
        std::cout << "exception thrown: " << ex.message() << std::endl;
    }
    ControllerClientDestroy();
}
{'fraction_non_alphanumeric': 0.12732732732732732, 'fraction_numerical': 0.014414414414414415, 'mean_word_length': 3.551912568306011, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 8, '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': '5079622', 'n_tokens_mistral': 532, 'n_tokens_neox': 508, 'n_words': 89}