<commit_before>//
//  Gyroid.cpp
//  VolumeRenderer
//
//  Created by <NAME> on 6/26/11.
//

#include "Gyroid.h"
#include <cmath>

float Gyroid::valueAt(float x, float y, float z) const
{
    return (cosf(x) * sinf(y) + cosf(y) * sinf(z) + cosf(z) * sinf(x));
}

vector Gyroid::gradientAt(float x, float y, float z) const
{
    return Isosurface::gradientAt(x, y, z);
    float gx = cosf(x) * cosf(z) - sinf(x) * sinf(y);
    float gy = cosf(x) * cosf(y) - sinf(y) * sinf(z);
    float gz = cosf(y) * cosf(z) - sinf(x) * sinf(z);
    
    vector result = { gx, gy, gz };
    normalize(result);
    
    return result;
}<commit_msg>Remove a stray debug line<commit_after>//
//  Gyroid.cpp
//  VolumeRenderer
//
//  Created by <NAME> on 6/26/11.
//

#include "Gyroid.h"
#include <cmath>

float Gyroid::valueAt(float x, float y, float z) const
{
    return (cosf(x) * sinf(y) + cosf(y) * sinf(z) + cosf(z) * sinf(x));
}

vector Gyroid::gradientAt(float x, float y, float z) const
{
    float gx = cosf(x) * cosf(z) - sinf(x) * sinf(y);
    float gy = cosf(x) * cosf(y) - sinf(y) * sinf(z);
    float gz = cosf(y) * cosf(z) - sinf(x) * sinf(z);
    
    vector result = { gx, gy, gz };
    normalize(result);
    
    return result;
}
{'fraction_non_alphanumeric': 0.18943089430894308, 'fraction_numerical': 0.008130081300813009, 'mean_word_length': 2.8589341692789967, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '3036407', 'n_tokens_mistral': 550, 'n_tokens_neox': 535, 'n_words': 130}