<commit_before># -*- Mode: C++; tab-width: 2; -*-
# vi: set ts=2:
#
# $Id: Makefile,v 1.38.8.5 2007-06-12 20:17:53 oliver Exp $
#
# Author:
#   <NAME>
#

DIRECTORY=PYTHON/EXTENSIONS

# allow processing of SIP files
.SUFFIXES: .sip

# default target: the BALL Python extensions in BALLmodule.so
all:	BALLmodule.so

#
include ../../common.mak
-include BALL.sbf

SIP_SOURCES=\
	$(sources)

SIP_OBJECTS	=	\
	$(sources:.C=.o)

SIP_HEADERS = \
	$(PYBALL_SOURCES:.C=.h) \

SIP_HEADER_FILES =\
	$(headers)
	
SIP_DIR=sip_files
SIP_OPTS=-c $(SIP_DIR) -e -s ".C" -b BALL.sbf
SIPFLAGS += $(PYTHON_INCLUDES) $(SIP_INCLUDES)

ADD_INCLUDES=$(SIPFLAGS)
 
PYBALL_SOURCES = \
	pyBALLSipHelper.C\
	pyCompositeList.C\
	pyIndexList.C\
	pyConstant.C \
	pyColorRGBAVector.C \
	pyDatasetVector.C
	
PYBALL_OBJECTS  = $(PYBALL_SOURCES:.C=.o)
 
CPP_SOURCES = $(SIP_SOURCES:.h=.C) $(PYBALL_SOURCES)
CPP_OBJECTS = $(SIP_OBJECTS) $(PYBALL_OBJECTS)

BALLmodule.so: sipBALLcmodule.o

sip:
	@if test ! -d $(SIP_DIR) ; then mkdir $(SIP_DIR) 2>/dev/null ; fi
	@echo "running SIP..."
	@$(SIP) $(SIP_OPTS) BALL.sip
	@echo "removing SIP headers..."
	@-rm -f $(SIP_DIR)/tmp 2>/dev/null
	@for i in $(SIP_DIR)/*; do mv $$i $(SIP_DIR)/tmp ; cat $(SIP_DIR)/tmp |sed '/.*Generated by SIP /d' > $$i ; rm -rf $(SIP_DIR)/tmp 2>/dev/null ; done
	@echo "updating modified files..."
	@for i in $(SIP_DIR)/*; do if cmp -s $$i `basename $$i`; then true ; else echo " - $$i"; cp $$i . ; fi ; done


BALLmodule.so:  $(CPP_OBJECTS)
	$(DYNAR) $(DYNAROPTS_PYMODULE) BALLmodule.so $(SIP_OBJECTS) $(PYBALL_OBJECTS) $(SIP_LIB) -L$(BALL_PATH)/lib $(BALL_LIBS) $(PYTHON_LIBS)

install:	BALLmodule.so
	cp BALLmodule.so  $(BALL_PATH)/lib
	 
CLEAN_FILES = \
	BALLmodule.so\
	$(CPP_OBJECTS) \
	$(SIP_SOURCES) \
	$(SIP_HEADERS) \
	$(SIP_HEADER_FILES) \
	$(SIP_OBJECTS)
 
clean:
	@echo "removing object files, libraries, and source/header files produced by SIP..."
	@-$(RM) -f $(CLEAN_FILES) 2>/dev/null
	@-$(RM) -fr $(SIP_DIR)

depend: sip  Makefile.inc .Dependencies

-include .Dependencies
<commit_msg>Fixed installation location for python module.<commit_after># -*- Mode: C++; tab-width: 2; -*-
# vi: set ts=2:
#
# $Id: Makefile,v 1.38.8.5 2007-06-12 20:17:53 oliver Exp $
#
# Author:
#   <NAME>
#

DIRECTORY=PYTHON/EXTENSIONS

# allow processing of SIP files
.SUFFIXES: .sip

# default target: the BALL Python extensions in BALLmodule.so
all:	BALLmodule.so

#
include ../../common.mak
-include BALL.sbf

SIP_SOURCES=\
	$(sources)

SIP_OBJECTS	=	\
	$(sources:.C=.o)

SIP_HEADERS = \
	$(PYBALL_SOURCES:.C=.h) \

SIP_HEADER_FILES =\
	$(headers)
	
SIP_DIR=sip_files
SIP_OPTS=-c $(SIP_DIR) -e -s ".C" -b BALL.sbf
SIPFLAGS += $(PYTHON_INCLUDES) $(SIP_INCLUDES)

ADD_INCLUDES=$(SIPFLAGS)
 
PYBALL_SOURCES = \
	pyBALLSipHelper.C\
	pyCompositeList.C\
	pyIndexList.C\
	pyConstant.C \
	pyColorRGBAVector.C \
	pyDatasetVector.C
	
PYBALL_OBJECTS  = $(PYBALL_SOURCES:.C=.o)
 
CPP_SOURCES = $(SIP_SOURCES:.h=.C) $(PYBALL_SOURCES)
CPP_OBJECTS = $(SIP_OBJECTS) $(PYBALL_OBJECTS)

BALLmodule.so: sipBALLcmodule.o

sip:
	@if test ! -d $(SIP_DIR) ; then mkdir $(SIP_DIR) 2>/dev/null ; fi
	@echo "running SIP..."
	@$(SIP) $(SIP_OPTS) BALL.sip
	@echo "removing SIP headers..."
	@-rm -f $(SIP_DIR)/tmp 2>/dev/null
	@for i in $(SIP_DIR)/*; do mv $$i $(SIP_DIR)/tmp ; cat $(SIP_DIR)/tmp |sed '/.*Generated by SIP /d' > $$i ; rm -rf $(SIP_DIR)/tmp 2>/dev/null ; done
	@echo "updating modified files..."
	@for i in $(SIP_DIR)/*; do if cmp -s $$i `basename $$i`; then true ; else echo " - $$i"; cp $$i . ; fi ; done


BALLmodule.so:  $(CPP_OBJECTS)
	$(DYNAR) $(DYNAROPTS_PYMODULE) BALLmodule.so $(SIP_OBJECTS) $(PYBALL_OBJECTS) $(SIP_LIB) -L$(BALL_PATH)/lib $(BALL_LIBS) $(PYTHON_LIBS)

install:	BALLmodule.so
	cp BALLmodule.so  $(BALL_PATH)/lib/$(BINFMT)/
	 
CLEAN_FILES = \
	BALLmodule.so\
	$(CPP_OBJECTS) \
	$(SIP_SOURCES) \
	$(SIP_HEADERS) \
	$(SIP_HEADER_FILES) \
	$(SIP_OBJECTS)
 
clean:
	@echo "removing object files, libraries, and source/header files produced by SIP..."
	@-$(RM) -f $(CLEAN_FILES) 2>/dev/null
	@-$(RM) -fr $(SIP_DIR)

depend: sip  Makefile.inc .Dependencies

-include .Dependencies

{'fraction_non_alphanumeric': 0.1821272462360369, 'fraction_numerical': 0.012141816415735794, 'mean_word_length': 3.851590106007067, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '1344614', 'n_tokens_mistral': 1955, 'n_tokens_neox': 1831, 'n_words': 391}