<commit_before>##########
# Macros #
##########

OS := $(shell uname)

# Large file support
LFS_CFLAGS = -D_FILE_OFFSET_BITS=64

# Parallel sort
GNU_PARALLEL =

ifeq ($(GNU_PARALLEL),)
  GNU_PARALLEL = 1
endif

ifeq ($(GNU_PARALLEL),1)
  CFLAGS = -fopenmp -DGNU_PARALLEL
else
  CFLAGS =
endif

# --- Debug/Release/Verbose mode handler --- #
BUILD =
VERBOSE =

ifeq ($(BUILD),)
  BUILD = release
endif
 
ifeq ($(BUILD),release)
  CFLAGS += -DNDEBUG -O3 
endif

ifeq ($(BUILD),debug)
  CFLAGS += -DDEBUG -O0 -g
endif

ifeq ($(VERBOSE),)
  VERBOSE = 1
endif

ifeq ($(VERBOSE),0)
  CFLAGS += -DNVERBOSE
endif

ifneq ($(VERBOSE),0)
  CFLAGS += -DVERBOSE=$(VERBOSE)
endif

# --- Compilers --- #

# C++ compiler
# CXX = g++ 

# MPI compiler for C++
MPIPATH = #/opt/mpich/dev/intel/default/bin/
CXX = $(MPIPATH)mpicxx -lstdc++ -std=c++11 -fPIC -fvisibility=hidden \
      $(LFS_CFLAGS) $(CFLAGS)  

# --- Directories --- #
# Directories for the core code of TileDB
CORE_INCLUDE_DIR = core/include
CORE_INCLUDE_SUBDIRS = $(wildcard core/include/*)
CORE_SRC_DIR = core/src
CORE_SRC_SUBDIRS = $(wildcard core/src/*)
CORE_OBJ_DEB_DIR = core/obj/debug
CORE_BIN_DEB_DIR = core/bin/debug
ifeq ($(BUILD),debug)
  CORE_OBJ_DIR = $(CORE_OBJ_DEB_DIR)
  CORE_BIN_DIR = $(CORE_BIN_DEB_DIR)
endif
CORE_OBJ_REL_DIR = core/obj/release
CORE_BIN_REL_DIR = core/bin/release
ifeq ($(BUILD),release)
  CORE_OBJ_DIR = $(CORE_OBJ_REL_DIR)
  CORE_BIN_DIR = $(CORE_BIN_REL_DIR)
endif
CORE_LIB_DEB_DIR = core/lib/debug
ifeq ($(BUILD),debug)
  CORE_LIB_DIR = $(CORE_LIB_DEB_DIR)
endif
CORE_LIB_REL_DIR = core/lib/release
ifeq ($(BUILD),release)
  CORE_LIB_DIR = $(CORE_LIB_REL_DIR)
endif

# Directories for the command-line-based frontend of TileDB
TILEDB_CMD_INCLUDE_DIR = tiledb_cmd/include
TILEDB_CMD_SRC_DIR = tiledb_cmd/src
TILEDB_CMD_OBJ_DEB_DIR = tiledb_cmd/obj/debug
TILEDB_CMD_BIN_DEB_DIR = tiledb_cmd/bin/debug
ifeq ($(BUILD),debug)
  TILEDB_CMD_OBJ_DIR = $(TILEDB_CMD_OBJ_DEB_DIR)
  TILEDB_CMD_BIN_DIR = $(TILEDB_CMD_BIN_DEB_DIR)
endif
TILEDB_CMD_OBJ_REL_DIR = tiledb_cmd/obj/release
TILEDB_CMD_BIN_REL_DIR = tiledb_cmd/bin/release
ifeq ($(BUILD),release)
  TILEDB_CMD_OBJ_DIR = $(TILEDB_CMD_OBJ_REL_DIR)
  TILEDB_CMD_BIN_DIR = $(TILEDB_CMD_BIN_REL_DIR)
endif

# Directories for the examples
EXAMPLES_INCLUDE_DIR = examples/include
EXAMPLES_SRC_DIR = examples/src
EXAMPLES_OBJ_DEB_DIR = examples/obj/debug
EXAMPLES_BIN_DEB_DIR = examples/bin/debug
ifeq ($(BUILD),debug)
  EXAMPLES_OBJ_DIR = $(EXAMPLES_OBJ_DEB_DIR)
  EXAMPLES_BIN_DIR = $(EXAMPLES_BIN_DEB_DIR)
endif
EXAMPLES_OBJ_REL_DIR = excamples/obj/release
EXAMPLES_BIN_REL_DIR = examples/bin/release
ifeq ($(BUILD),release)
  EXAMPLES_OBJ_DIR = $(EXAMPLES_OBJ_REL_DIR)
  EXAMPLES_BIN_DIR = $(EXAMPLES_BIN_REL_DIR)
endif

# Directories of Google Test
GTEST_DIR = gtest
GTEST_INCLUDE_DIR = gtest/include
GTEST_SRC_DIR = gtest/src
GTEST_OBJ_DIR = gtest/obj
GTEST_BIN_DIR = gtest/bin

# Directories for TileDB tests
TEST_SRC_DIR = test/src
TEST_OBJ_DIR = test/obj
TEST_BIN_DIR = test/bin

# Directories for Linear Algebra applications
LA_INCLUDE_DIR = la/include
LA_SRC_DIR = la/src
LA_OBJ_DIR = la/obj
LA_BIN_DIR = la/bin<commit_msg>Fix typo in makefile<commit_after>##########
# Macros #
##########

OS := $(shell uname)

# Large file support
LFS_CFLAGS = -D_FILE_OFFSET_BITS=64

# Parallel sort
GNU_PARALLEL =

ifeq ($(GNU_PARALLEL),)
  GNU_PARALLEL = 1
endif

ifeq ($(GNU_PARALLEL),1)
  CFLAGS = -fopenmp -DGNU_PARALLEL
else
  CFLAGS =
endif

# --- Debug/Release/Verbose mode handler --- #
BUILD =
VERBOSE =

ifeq ($(BUILD),)
  BUILD = release
endif
 
ifeq ($(BUILD),release)
  CFLAGS += -DNDEBUG -O3 
endif

ifeq ($(BUILD),debug)
  CFLAGS += -DDEBUG -O0 -g
endif

ifeq ($(VERBOSE),)
  VERBOSE = 1
endif

ifeq ($(VERBOSE),0)
  CFLAGS += -DNVERBOSE
endif

ifneq ($(VERBOSE),0)
  CFLAGS += -DVERBOSE=$(VERBOSE)
endif

# --- Compilers --- #

# C++ compiler
# CXX = g++ 

# MPI compiler for C++
MPIPATH = #/opt/mpich/dev/intel/default/bin/
CXX = $(MPIPATH)mpicxx -lstdc++ -std=c++11 -fPIC -fvisibility=hidden \
      $(LFS_CFLAGS) $(CFLAGS)  

# --- Directories --- #
# Directories for the core code of TileDB
CORE_INCLUDE_DIR = core/include
CORE_INCLUDE_SUBDIRS = $(wildcard core/include/*)
CORE_SRC_DIR = core/src
CORE_SRC_SUBDIRS = $(wildcard core/src/*)
CORE_OBJ_DEB_DIR = core/obj/debug
CORE_BIN_DEB_DIR = core/bin/debug
ifeq ($(BUILD),debug)
  CORE_OBJ_DIR = $(CORE_OBJ_DEB_DIR)
  CORE_BIN_DIR = $(CORE_BIN_DEB_DIR)
endif
CORE_OBJ_REL_DIR = core/obj/release
CORE_BIN_REL_DIR = core/bin/release
ifeq ($(BUILD),release)
  CORE_OBJ_DIR = $(CORE_OBJ_REL_DIR)
  CORE_BIN_DIR = $(CORE_BIN_REL_DIR)
endif
CORE_LIB_DEB_DIR = core/lib/debug
ifeq ($(BUILD),debug)
  CORE_LIB_DIR = $(CORE_LIB_DEB_DIR)
endif
CORE_LIB_REL_DIR = core/lib/release
ifeq ($(BUILD),release)
  CORE_LIB_DIR = $(CORE_LIB_REL_DIR)
endif

# Directories for the command-line-based frontend of TileDB
TILEDB_CMD_INCLUDE_DIR = tiledb_cmd/include
TILEDB_CMD_SRC_DIR = tiledb_cmd/src
TILEDB_CMD_OBJ_DEB_DIR = tiledb_cmd/obj/debug
TILEDB_CMD_BIN_DEB_DIR = tiledb_cmd/bin/debug
ifeq ($(BUILD),debug)
  TILEDB_CMD_OBJ_DIR = $(TILEDB_CMD_OBJ_DEB_DIR)
  TILEDB_CMD_BIN_DIR = $(TILEDB_CMD_BIN_DEB_DIR)
endif
TILEDB_CMD_OBJ_REL_DIR = tiledb_cmd/obj/release
TILEDB_CMD_BIN_REL_DIR = tiledb_cmd/bin/release
ifeq ($(BUILD),release)
  TILEDB_CMD_OBJ_DIR = $(TILEDB_CMD_OBJ_REL_DIR)
  TILEDB_CMD_BIN_DIR = $(TILEDB_CMD_BIN_REL_DIR)
endif

# Directories for the examples
EXAMPLES_INCLUDE_DIR = examples/include
EXAMPLES_SRC_DIR = examples/src
EXAMPLES_OBJ_DEB_DIR = examples/obj/debug
EXAMPLES_BIN_DEB_DIR = examples/bin/debug
ifeq ($(BUILD),debug)
  EXAMPLES_OBJ_DIR = $(EXAMPLES_OBJ_DEB_DIR)
  EXAMPLES_BIN_DIR = $(EXAMPLES_BIN_DEB_DIR)
endif
EXAMPLES_OBJ_REL_DIR = examples/obj/release
EXAMPLES_BIN_REL_DIR = examples/bin/release
ifeq ($(BUILD),release)
  EXAMPLES_OBJ_DIR = $(EXAMPLES_OBJ_REL_DIR)
  EXAMPLES_BIN_DIR = $(EXAMPLES_BIN_REL_DIR)
endif

# Directories of Google Test
GTEST_DIR = gtest
GTEST_INCLUDE_DIR = gtest/include
GTEST_SRC_DIR = gtest/src
GTEST_OBJ_DIR = gtest/obj
GTEST_BIN_DIR = gtest/bin

# Directories for TileDB tests
TEST_SRC_DIR = test/src
TEST_OBJ_DIR = test/obj
TEST_BIN_DIR = test/bin

# Directories for Linear Algebra applications
LA_INCLUDE_DIR = la/include
LA_SRC_DIR = la/src
LA_OBJ_DIR = la/obj
LA_BIN_DIR = la/bin
{'fraction_non_alphanumeric': 0.12041719342604298, 'fraction_numerical': 0.00347661188369153, 'mean_word_length': 5.3163672654690615, 'pattern_counts': {'":': 0, '<': 3, '<?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': '1124999', 'n_tokens_mistral': 2769, 'n_tokens_neox': 2678, 'n_words': 476}