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

int is_in2(int x, int y){
  while(x > 0 && y > 0){
    int qx = x / 3;
    int qy = y / 3;
    int rx = x - 3 * qx;
    int ry = y - 3 * qy;
    if(rx == 1 && ry == 1)
      return 0;
    x = qx;
    y = qy;
  }
  return 1;
}
int is_in(int x, int y, int z, int n){
  // also put explicit bounds on the box here, 
  // so as to handle edge cases effectively
  if(x < 0 || y < 0 || z < 0) return 0;
  if(n <= x || n <= y || n <= z) return 0;
  return is_in2(x,y) && is_in2(z,y) && is_in2(x,z);
}


int rotations[9] = {0, 1, 2, 1, 0, 2, 2, 1, 0};
float delta[18] = {1.0, 0, 1.0, 1.0, 0, 0, 1.0, 1.0, 0,
		   1.0, 1.0, 1.0, 1.0, 1.0, 0, 1.0, 0, 1.0};
float normal[3] = {0,0,0};

void square(int i, int j, int k, int n, FILE* fp){
  float half = ((float) n) / -2.0;
  float vect[3] = {half + (float) i, half + (float) j, half + (float) k};
  // Print half of the thingy
  for(int rot = 0; rot < 9; rot += 3){
    for(int half = 0; half < 18; half += 9){
      // Three zeroes for the normal vector
      fwrite(&normal, sizeof(float), 3, fp);
      int offset = 0;
      for(offset = 0; offset < 9; offset += 3){
	// The three vector components, suitably permuted and offset
	for(int ii = 0; ii < 3; ii++){
	  int rotated = rotations[rot + ii];<commit_msg>at the very least, be consistent with normals<commit_after>#include<stdio.h>
#include <string.h>

int is_in2(int x, int y){
  while(x > 0 && y > 0){
    int qx = x / 3;
    int qy = y / 3;
    int rx = x - 3 * qx;
    int ry = y - 3 * qy;
    if(rx == 1 && ry == 1)
      return 0;
    x = qx;
    y = qy;
  }
  return 1;
}
int is_in(int x, int y, int z, int n){
  // also put explicit bounds on the box here, 
  // so as to handle edge cases effectively
  if(x < 0 || y < 0 || z < 0) return 0;
  if(n <= x || n <= y || n <= z) return 0;
  return is_in2(x,y) && is_in2(z,y) && is_in2(x,z);
}


int rotations[9] = {0, 1, 2, 1, 0, 2, 2, 1, 0};
float delta[18] = {1.0, 0, 1.0, 1.0, 0, 0, 1.0, 1.0, 0,
		   1.0, 0, 1.0, 1.0, 1.0, 0, 1.0, 1.0, 1.0};
float normal[3] = {0,0,0};

void square(int i, int j, int k, int n, FILE* fp){
  float half = ((float) n) / -2.0;
  float vect[3] = {half + (float) i, half + (float) j, half + (float) k};
  // Print half of the thingy
  for(int rot = 0; rot < 9; rot += 3){
    for(int half = 0; half < 18; half += 9){
      // Three zeroes for the normal vector
      fwrite(&normal, sizeof(float), 3, fp);
      int offset = 0;
      for(offset = 0; offset < 9; offset += 3){
	// The three vector components, suitably permuted and offset
	for(int ii = 0; ii < 3; ii++){
	  int rotated = rotations[rot + ii];
{'fraction_non_alphanumeric': 0.1903860711582135, 'fraction_numerical': 0.06207418622255867, 'mean_word_length': 2.31203007518797, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 11, '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': '1704744', 'n_tokens_mistral': 1250, 'n_tokens_neox': 1119, 'n_words': 412}