<commit_before>#include <proton/base.hpp>
#include <proton/ref.hpp>
#include <proton/tuple.hpp>
#include <proton/string.hpp>

using namespace std;
using namespace proton;

int main()
{
    cout << ">>> tuple examples :" << endl;

    tuple<str,str,str> s("a","b","c");

    cout << "s is " << s << endl;
    cout << "last item is :" << at<2>(s) << endl;
    PROTON_THROW_IF(at<2>(s)!="c", "get item err");

    cout << "last item is :" << at<-1>(s) << endl;
    PROTON_THROW_IF(at<-1>(s)!="c", "get item err");

#ifndef __clang__
    auto slice0=sub<0,2>(s); // s[0:2]
    cout << "s[0:2] is " << slice0 << endl;
    PROTON_THROW_IF(len(slice0)!=2, "slice in the head err");
    PROTON_THROW_IF(at<0>(slice0)!="a", "slice in the head err");

    auto slice1=sub<1,-1>(s); // s[1:-1]
    cout << "s[1:-1] is " << slice1 << endl;
    PROTON_THROW_IF(len(slice1)!=1, "slice in the middle err");

    auto slice=sub<1,3>(s); // s[1:]
    cout << "s[1:] is " << slice << endl;
    PROTON_THROW_IF(at<-1>(slice)!="c", "slice to the end err");

    auto slice2=slice1+s;
    cout << "s[1:-1]+s is " << slice2 << endl;
    PROTON_THROW_IF(len(slice2)!=4, "slice with step err");

    tuple<int,int,int,int,int> t(0,1,2,3,4);
    PROTON_THROW_IF((sub<1,3>(t)!=_t(1,2)),"bad sub");
#endif
/*
    cout << "min is :" << min(s) << endl;
    PROTON_THROW_IF(min(s)!="a", "min err");

    cout << "max is :" << max(s) << endl;
    PROTON_THROW_IF(max(s)!="c", "max err");
*/

    return 0;
}
<commit_msg>add back tuple_ut for clang<commit_after>#include <proton/base.hpp>
#include <proton/ref.hpp>
#include <proton/tuple.hpp>
#include <proton/string.hpp>

using namespace std;
using namespace proton;

int main()
{
    cout << ">>> tuple examples :" << endl;

    tuple<str,str,str> s("a","b","c");

    cout << "s is " << s << endl;
    cout << "last item is :" << at<2>(s) << endl;
    PROTON_THROW_IF(at<2>(s)!="c", "get item err");

    cout << "last item is :" << at<-1>(s) << endl;
    PROTON_THROW_IF(at<-1>(s)!="c", "get item err");

    auto slice0=sub<0,2>(s); // s[0:2]
    cout << "s[0:2] is " << slice0 << endl;
    PROTON_THROW_IF(len(slice0)!=2, "slice in the head err");
    PROTON_THROW_IF(at<0>(slice0)!="a", "slice in the head err");

    auto slice1=sub<1,-1>(s); // s[1:-1]
    cout << "s[1:-1] is " << slice1 << endl;
    PROTON_THROW_IF(len(slice1)!=1, "slice in the middle err");

    auto slice=sub<1,3>(s); // s[1:]
    cout << "s[1:] is " << slice << endl;
    PROTON_THROW_IF(at<-1>(slice)!="c", "slice to the end err");

    auto slice2=slice1+s;
    cout << "s[1:-1]+s is " << slice2 << endl;
    PROTON_THROW_IF(len(slice2)!=4, "slice with step err");

    tuple<int,int,int,int,int> t(0,1,2,3,4);
    PROTON_THROW_IF((sub<1,3>(t)!=_t(1,2)),"bad sub");

/*
    cout << "min is :" << min(s) << endl;
    PROTON_THROW_IF(min(s)!="a", "min err");

    cout << "max is :" << max(s) << endl;
    PROTON_THROW_IF(max(s)!="c", "max err");
*/

    return 0;
}

{'fraction_non_alphanumeric': 0.24123989218328842, 'fraction_numerical': 0.03234501347708895, 'mean_word_length': 3.58887171561051, 'pattern_counts': {'":': 0, '<': 151, '<?xml version=': 0, '>': 41, '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': '6494436', 'n_tokens_mistral': 1299, 'n_tokens_neox': 1253, 'n_words': 265}