<commit_before>NAME = cube_server
BUILD_DIR = build
INSTALL_DIR = /opt/adaptive/cube
THRIFT_DIR = ../thrift/gen-cpp
DRIVER_NAME = cube_driver
SERVER_NAME = cube_server
RULES_FILE = 99-libftdi.rules
RULES_DEST =  /etc/udev/rules.d/$(RULES_FILE)
CUBE_INIT_FILE = initialization.bin
SUPERVISORD_INIT = supervisord_init_script
SUPERVISORD_INIT_DEST = /etc/rc.d/init.d/supervisord
SUPERVISORD_CONF = supervisord.conf
SUPERVISORD_CONF_DEST = /etc/$(SUPERVISORD_CONF)
CC = gcc
CPP = g++
CFLAGS = -O3 -Wall

all: driver server

driver: $(DRIVER_NAME).c
	@mkdir -p $(BUILD_DIR)
	@$(CC) $(CFLAGS) $<  -o $(BUILD_DIR)/$(DRIVER_NAME) \
	    $(shell pkg-config --cflags --libs libftdi1)

server: $(SERVER_NAME).cpp
	@mkdir -p $(BUILD_DIR)
	@$(CPP) $(CFLAGS) --std=c++11 $< \
	    $(THRIFT_DIR)/CubeInterface.cpp \
	    -o $(BUILD_DIR)/$(SERVER_NAME) \
	    -I $(THRIFT_DIR) -I /usr/local/include \
	    -I /usr/include -L/usr/local/lib -lthrift



install: driver<commit_msg>Changed -std=c++11 to -stc=c++0x in order to support older GCCs<commit_after>NAME = cube_server
BUILD_DIR = build
INSTALL_DIR = /opt/adaptive/cube
THRIFT_DIR = ../thrift/gen-cpp
DRIVER_NAME = cube_driver
SERVER_NAME = cube_server
RULES_FILE = 99-libftdi.rules
RULES_DEST =  /etc/udev/rules.d/$(RULES_FILE)
CUBE_INIT_FILE = initialization.bin
SUPERVISORD_INIT = supervisord_init_script
SUPERVISORD_INIT_DEST = /etc/rc.d/init.d/supervisord
SUPERVISORD_CONF = supervisord.conf
SUPERVISORD_CONF_DEST = /etc/$(SUPERVISORD_CONF)
CC = gcc
CPP = g++
CFLAGS = -O3 -Wall

all: driver server

driver: $(DRIVER_NAME).c
	@mkdir -p $(BUILD_DIR)
	@$(CC) $(CFLAGS) $<  -o $(BUILD_DIR)/$(DRIVER_NAME) \
	    $(shell pkg-config --cflags --libs libftdi1)

server: $(SERVER_NAME).cpp
	@mkdir -p $(BUILD_DIR)
	@$(CPP) $(CFLAGS) -std=c++0x $< \
	    $(THRIFT_DIR)/CubeInterface.cpp \
	    -o $(BUILD_DIR)/$(SERVER_NAME) \
	    -I $(THRIFT_DIR) -I /usr/local/include \
	    -I /usr/include -L/usr/local/lib -lthrift



install: driver
{'fraction_non_alphanumeric': 0.15458692346680183, 'fraction_numerical': 0.007095793208312215, 'mean_word_length': 3.9974683544303797, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, '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': '5491138', 'n_tokens_mistral': 853, 'n_tokens_neox': 807, 'n_words': 150}