<commit_before>
/*******************************************************************************
 ** Copyright <NAME> 2012
 ** IO routines written in C to improve performance
 *******************************************************************************/

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


void addPOVRAYSphere(FILE *, double, double, double, double, double, double, double);




/*******************************************************************************
 ** write sphere to pov-ray file
 *******************************************************************************/
void addPOVRAYSphere(FILE *fp, double xpos, double ypos, double zpos, double radius, double R, double G, double B)
{
    fprintf(fp, "sphere { <%lf,%lf,%lf>, %lf pigment { color rgb <%lf,%lf,%lf> } finish { ambient %f phong %f } }\n",
            - xpos, ypos, zpos, radius, R, G, B, 0.25, 0.9);
}


/*******************************************************************************
 ** write visible atoms to pov-ray file
 *******************************************************************************/
void writePOVRAYAtoms(char *filename, int specieDim, int *specie, int posDim, double *pos, 
                      int visibleAtomsDim, int *visibleAtoms, int specieRGBDim1, int specieRGBDim2, 
                      double *specieRGB, int specieCovRadDim, double *specieCovRad)<commit_msg>Fix bug in writing POV-Ray atoms (was multiplying by -1 twice).<commit_after>
/*******************************************************************************
 ** Copyright <NAME> 2012
 ** IO routines written in C to improve performance
 *******************************************************************************/

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


void addPOVRAYSphere(FILE *, double, double, double, double, double, double, double);




/*******************************************************************************
 ** write sphere to pov-ray file
 *******************************************************************************/
void addPOVRAYSphere(FILE *fp, double xpos, double ypos, double zpos, double radius, double R, double G, double B)
{
    fprintf(fp, "sphere { <%lf,%lf,%lf>, %lf pigment { color rgb <%lf,%lf,%lf> } finish { ambient %f phong %f } }\n",
            xpos, ypos, zpos, radius, R, G, B, 0.25, 0.9);
}


/*******************************************************************************
 ** write visible atoms to pov-ray file
 *******************************************************************************/
void writePOVRAYAtoms(char *filename, int specieDim, int *specie, int posDim, double *pos, 
                      int visibleAtomsDim, int *visibleAtoms, int specieRGBDim1, int specieRGBDim2, 
                      double *specieRGB, int specieCovRadDim, double *specieCovRad)
{'fraction_non_alphanumeric': 0.4183098591549296, 'fraction_numerical': 0.008098591549295774, 'mean_word_length': 5.456818181818182, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '5595467', 'n_tokens_mistral': 769, 'n_tokens_neox': 662, 'n_words': 215}