<commit_before>/**
 * Precompiled header that must be included in every c file.
 *
 * Bina a project that came true after a few too many beers.
 * A project that will change the world and ruin Pendulo Studios.
 * By <NAME>, <NAME> and <NAME>.
 */

/**
 * @file bina.h
 * @author <NAME>, <NAME>
 * @date July 23, 2013
 */

#pragma once

#ifdef WIN32
#include "targetver.h"
#pragma warning(disable : 4996)
#endif

#define GAME_WIDTH        940
#define GAME_HEIGHT       546
#define GAME_REFRESH_RATE 16.666667 /* 60 times per second */

#define APP_TITLE "This is Binaaaaaaaaaaaaaaa"

/* types.h */

#ifndef MAX_CHAR
#define MAX_CHAR 64
#endif
#ifndef MAX_PATH
#define MAX_PATH 260
#endif

#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif

#ifdef HAVE_STDIO_H
#include <stdio.h>
#endif

#ifdef HAVE_STRING_H
#include <string.h>
#endif

#ifdef HAVE_CTYPE_H
#include <ctype.h>
#endif

#ifdef HAVE_MATH_H
#include <math.h>
#endif

#ifdef HAVE_TIME_H
#include <time.h>
#endif

/* TODO Clean this, it's really ugly. */
#if _MSC_VER
#define snprintf _snprintf
#endif

#ifdef ANDROID
#include <jni.h>

#include <android/log.h>
#include <android/asset_manager.h>
#include <android/asset_manager_jni.h>

#include <GLES2/gl2.h>
#include <GLES2/gl2ext.h>

#define LOG_TAG   "gl2jni"

/* TODO make it more pretty from config.h */
# ifdef DEBUG
#define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG,LOG_TAG,__VA_ARGS__)
#define LOGI(...) __android_log_print(ANDROID_LOG_INFO,LOG_TAG,__VA_ARGS__)
# else
#define LOGD(...) { }
#define LOGI(...) { }
# endif
#define LOGE(...) __android_log_print(ANDROID_LOG_ERROR,LOG_TAG,__VA_ARGS__)

AAssetManager* asset_manager_g;

#else

# ifdef DEBUG
#define LOGD(...)                                                             \
    fprintf(stdout, "D/bina/%s/%s (%d): ", __FUNCTION__, __FILE__, __LINE__); \
    fprintf(stdout, __VA_ARGS__);                                             \
    fprintf(stdout, "\n");
#define LOGI(...)                                                             \
    fprintf(stdout, "I/bina/%s/%s (%d): ", __FUNCTION__, __FILE__, __LINE__); \
    fprintf(stdout, __VA_ARGS__);                                             \
    fprintf(stdout, "\n");
# else
#define LOGD(...) { }
#define LOGI(...) { }
# endif
#define LOGE(...)                                                             \
    fprintf(stderr, "E/bina/%s/%s (%d): ", __FUNCTION__, __FILE__, __LINE__); \
    fprintf(stderr, __VA_ARGS__);                                             \
    fprintf(stderr, "\n");

#endif /* ANDROID */

#ifdef HAVE_GL_GLEW_H
#include "GL/glew.h"
#endif

#ifdef HAVE_GL_GLUT_H
#include "GL/glut.h"
#endif<commit_msg>core: added check for GLUT_GLUT macro<commit_after>/**
 * Precompiled header that must be included in every c file.
 *
 * Bina a project that came true after a few too many beers.
 * A project that will change the world and ruin Pendulo Studios.
 * By <NAME>, <NAME> and <NAME>.
 */

/**
 * @file bina.h
 * @author <NAME>, <NAME>
 * @date July 23, 2013
 */

#pragma once

#ifdef WIN32
#include "targetver.h"
#pragma warning(disable : 4996)
#endif

#define GAME_WIDTH        940
#define GAME_HEIGHT       546
#define GAME_REFRESH_RATE 16.666667 /* 60 times per second */

#define APP_TITLE "This is Binaaaaaaaaaaaaaaa"

/* types.h */

#ifndef MAX_CHAR
#define MAX_CHAR 64
#endif
#ifndef MAX_PATH
#define MAX_PATH 260
#endif

#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif

#ifdef HAVE_STDIO_H
#include <stdio.h>
#endif

#ifdef HAVE_STRING_H
#include <string.h>
#endif

#ifdef HAVE_CTYPE_H
#include <ctype.h>
#endif

#ifdef HAVE_MATH_H
#include <math.h>
#endif

#ifdef HAVE_TIME_H
#include <time.h>
#endif

/* TODO Clean this, it's really ugly. */
#if _MSC_VER
#define snprintf _snprintf
#endif

#ifdef ANDROID
#include <jni.h>

#include <android/log.h>
#include <android/asset_manager.h>
#include <android/asset_manager_jni.h>

#include <GLES2/gl2.h>
#include <GLES2/gl2ext.h>

#define LOG_TAG   "gl2jni"

/* TODO make it more pretty from config.h */
# ifdef DEBUG
#define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG,LOG_TAG,__VA_ARGS__)
#define LOGI(...) __android_log_print(ANDROID_LOG_INFO,LOG_TAG,__VA_ARGS__)
# else
#define LOGD(...) { }
#define LOGI(...) { }
# endif
#define LOGE(...) __android_log_print(ANDROID_LOG_ERROR,LOG_TAG,__VA_ARGS__)

AAssetManager* asset_manager_g;

#else

# ifdef DEBUG
#define LOGD(...)                                                             \
    fprintf(stdout, "D/bina/%s/%s (%d): ", __FUNCTION__, __FILE__, __LINE__); \
    fprintf(stdout, __VA_ARGS__);                                             \
    fprintf(stdout, "\n");
#define LOGI(...)                                                             \
    fprintf(stdout, "I/bina/%s/%s (%d): ", __FUNCTION__, __FILE__, __LINE__); \
    fprintf(stdout, __VA_ARGS__);                                             \
    fprintf(stdout, "\n");
# else
#define LOGD(...) { }
#define LOGI(...) { }
# endif
#define LOGE(...)                                                             \
    fprintf(stderr, "E/bina/%s/%s (%d): ", __FUNCTION__, __FILE__, __LINE__); \
    fprintf(stderr, __VA_ARGS__);                                             \
    fprintf(stderr, "\n");

#endif /* ANDROID */

#ifdef HAVE_GL_GLEW_H
#include "GL/glew.h"
#endif

#ifdef HAVE_GL_GLUT_H
#include "GL/glut.h"
#endif

#ifdef HAVE_GLUT_GLUT_H
#include "GLUT/glut.h"
#endif
{'fraction_non_alphanumeric': 0.13531652457826954, 'fraction_numerical': 0.013785597678215128, 'mean_word_length': 2.5076335877862594, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 37, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, 'word_list_counts': {'cursed_substrings.json': 24, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6380156', 'n_tokens_mistral': 1961, 'n_tokens_neox': 1909, 'n_words': 481}