<commit_before>/*
 * test1.cpp
 * 
 * This file is part of the "GaussianLib" project (Copyright (c) 2015 by <NAME>)
 * See "LICENSE.txt" for license information.
 */

//#define GS_ROW_MAJOR_STORAGE
#define GS_ENABLE_SWIZZLE_OPERATOR
#define GS_HIGH_PRECISION_FLOAT
//#define GS_ROW_VECTORS

#include <Gauss/Gauss.h>
#include <Gauss/HLSLTypes.h>
#include <Gauss/GLSLTypes.h>
#include <Gauss/DefConsts.h>

#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <cstdlib>
#include <complex>


using namespace Gs;


static void commonTest1()
{
    // --- vector tests ---

    const Vector4 a(1, 2, 3, 4), b(-4, 0, 2);

    #ifdef GS_ENABLE_SWIZZLE_OPERATOR<commit_msg>Minor fix for OS independency.<commit_after>/*
 * test1.cpp
 * 
 * This file is part of the "GaussianLib" project (Copyright (c) 2015 by <NAME>)
 * See "LICENSE.txt" for license information.
 */

//#define GS_ROW_MAJOR_STORAGE
#define GS_ENABLE_SWIZZLE_OPERATOR
#define GS_HIGH_PRECISION_FLOAT
//#define GS_ROW_VECTORS

#include <Gauss/DefConsts.h>
#include <Gauss/Gauss.h>
#include <Gauss/HLSLTypes.h>
#include <Gauss/GLSLTypes.h>

#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <cstdlib>
#include <complex>


using namespace Gs;


static void commonTest1()
{
    // --- vector tests ---

    const Vector4 a(1, 2, 3, 4), b(-4, 0, 2);

    #ifdef GS_ENABLE_SWIZZLE_OPERATOR
{'fraction_non_alphanumeric': 0.13594306049822064, 'fraction_numerical': 0.0199288256227758, 'mean_word_length': 4.366412213740458, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, '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': '6090586', 'n_tokens_mistral': 573, 'n_tokens_neox': 530, 'n_words': 137}