<commit_before>#Paths
PRODUCT_PATH=$(CMISS_ROOT)/cmgui
PRODUCT_SOURCE_PATH=$(PRODUCT_PATH)/source
TEST_PATH=$(CMISS_ROOT)/cmgui/test_examples
MAILFILE_PATH=mailfiles

#Build defaults
USER_INTERFACE=USER_INTERFACE=MOTIF_USER_INTERFACE
DYNAMIC_GL_LINUX=DYNAMIC_GL_LINUX=false
DEBUG=DEBUG=true
ABI=
MEMORYCHECK=

ifdef CMISS_ROOT
   CMISS_ROOT_DEFINED = true
else # CMISS_ROOT
   CMISS_ROOT = $(CMGUI_DEV_ROOT)
endif # CMISS_ROOT

MAKEFILE := cmgui.Makefile
MAKEFILE_FOUND = $(wildcard source/$(MAKEFILE))
ifdef CMISS_ROOT_DEFINED
   ifeq ($(MAKEFILE_FOUND),)
      MAKEFILE := $(CMISS_ROOT)/cmgui/source/$(MAKEFILE)
   endif # $(MAKEFILE_FOUND) ==
endif # CMISS_ROOT_DEFINED

#Developers default
cmgui-debug :

cmgui cmgui-debug cmgui-dynamicgl cmgui-dynamicgl-debug cmgui64 cmgui64-debug : USER_INTERFACE=USER_INTERFACE=MOTIF_USER_INTERFACE
cmgui-dynamicgl cmgui-dynamicgl-debug : DYNAMIC_GL_LINUX=DYNAMIC_GL_LINUX=true
cmgui cmgui-dynamicgl cmgui64 cmgui-console cmgui-gtk : DEBUG=DEBUG=false
cmgui-debug cmgui-debug-memorycheck cmgui-dynamicgl-debug cmgui64-debug : DEBUG=DEBUG=true
cmgui64 cmgui64-debug : ABI=ABI=64
cmgui-debug-memorycheck : MEMORYCHECK=MEMORYCHECK=true
cmgui-console : USER_INTERFACE=USER_INTERFACE=CONSOLE_USER_INTERFACE
cmgui-gtk : USER_INTERFACE=USER_INTERFACE=GTK_USER_INTERFACE

utilities: TARGET=utilities

cmgui cmgui-debug cmgui-debug-memorycheck cmgui-dynamicgl cmgui-dynamicgl-debug cmgui64 cmgui64-debug cmgui-console cmgui-gtk utilities :
	cd source ; \
	$(MAKE) -f $(MAKEFILE) $(TARGET) $(USER_INTERFACE) $(ABI) $(DYNAMIC_GL_LINUX) $(DEBUG) $(MEMORYCHECK) ;

update_sources :
	if ( [ "$(PWD)" -ef "$(PRODUCT_PATH)" ] && [ "$(USER)" = "cmiss" ] ); then \
		cvs update && \
		cd $(PRODUCT_SOURCE_PATH) && \
		chgrp -R cmgui_programmers * && \
		cd $(PRODUCT_PATH) && \
		ssh 192.168.127.12 'export CVS_RSH=ssh; export CVS_SERVER=/product/cmiss/bin/cvs ; cd $(CMISS_ROOT)/cmgui ; $(CMISS_ROOT)/bin/cvs update ' ; \
	else \
		echo "Must be cmiss and in $(PRODUCT_PATH)"; \
	fi

ESU_BUILD_LIST = cmgui cmgui-debug cmgui64 cmgui-console cmgui-debug-memorycheck
ESP_BUILD_LIST = cmgui cmgui-debug cmgui-debug-memorycheck cmgui-dynamicgl cmgui-dynamicgl-debug cmgui-console
HPC1_BUILD_LIST = cmgui cmgui-debug cmgui64 cmgui64-debug

update : update_sources
	if ( [ "$(PWD)" -ef "$(PRODUCT_PATH)" ] && [ "$(USER)" = "cmiss" ] ); then \
		cd $(PRODUCT_SOURCE_PATH) && \
		chgrp -R cmgui_programmers * && \
		cd $(PRODUCT_PATH) && \
		$(MAKE) -f cmguiMakefile $(ESU_BUILD_LIST) && \
		ssh 192.168.127.12 'setenv CMISS_ROOT /product/cmiss ; cd $(PRODUCT_PATH) ; $(MAKE) -f cmguiMakefile $(ESP_BUILD_LIST)' && \
		ssh 192.168.127.12 'export CMISS_ROOT=/product/cmiss ; export CMGUI_DEV_ROOT=$(PWD) ; cd $(CMISS_ROOT)/cmgui ; gmake -f cmguiMakefile $(HPC1_BUILD_LIST) ;  ' && \
		ssh 172.16.17.32 'setenv CMISS_ROOT /product/cmiss ; cd $(PRODUCT_PATH) ; $(MAKE) -f cmguiMakefile cmgui-gtk ; /home/blackett/bin/cross-make -f cmguiMakefile cmgui-gtk' && \
		cd $(PRODUCT_SOURCE_PATH) && \
		chgrp -R cmgui_programmers *; \
	else \
		echo "Must be cmiss and in $(PRODUCT_PATH)"; \
	fi

depend: update_sources
	if [ "$(USER)" = "cmiss" ]; then \
		CMGUI_DEV_ROOT=$(PWD) ; \
		export CMGUI_DEV_ROOT ; \
		$(MAKE) -f cmguiMakefile $(ESU_BUILD_LIST) TARGET=depend ; \
		ssh 192.168.127.12 'setenv CMISS_ROOT /product/cmiss ; cd $(PRODUCT_PATH) ; setenv CMGUI_DEV_ROOT $(PWD) ; $(MAKE) -f cmguiMakefile $(ESP_BUILD_LIST) TARGET=depend ; ' ; \
		ssh 192.168.127.12 'export CMISS_ROOT=/product/cmiss ; export CMGUI_DEV_ROOT=$(PWD) ; cd $(CMISS_ROOT)/cmgui ; gmake -f cmguiMakefile $(HPC1_BUILD_LIST) TARGET=depend ;  ' ; \
		ssh 172.16.17.32 'setenv CMISS_ROOT /product/cmiss ; setenv CMGUI_DEV_ROOT $(PWD) ; cd $(PRODUCT_PATH) ; $(MAKE) -f cmguiMakefile cmgui-gtk TARGET=depend && /home/blackett/bin/cross-make -f cmguiMakefile cmgui-gtk TARGET=depend' ; \
	else \
		echo "Must be cmiss"; \
	fi

run_tests:
	if [ "$(USER)" = "cmiss" ]; then \
		cd $(TEST_PATH); \
		$(MAKE) -u; \
		ssh 172.16.58.356 'setenv CMISS_ROOT /product/cmiss ; cd $(TEST_PATH) ; make -W cmgui_linux.exe cmgui_linux_test' ; \
		cat all.mail ; \
	else \
		echo "Must be cmiss"; \
	fi

cronjob:
	if [ "$(USER)" = "cmiss" ]; then \
		cd $(PRODUCT_PATH); \
		cvs update ; \
		echo -n > $(MAILFILE_PATH)/programmer.mail ; \
		if ! $(MAKE) -f cmguiMakefile depend; then \
			cat $(MAILFILE_PATH)/dependfail.mail >> $(MAILFILE_PATH)/programmer.mail ; \
		fi ; \
		if ! $(MAKE) -f cmguiMakefile update; then \
			cat $(MAILFILE_PATH)/updatefail.mail >> $(MAILFILE_PATH)/programmer.mail ; \
		fi ; \
		if ! $(MAKE) -f cmguiMakefile run_tests; then \
			cat $(MAILFILE_PATH)/testfail.mail >> $(MAILFILE_PATH)/programmer.mail ; \
		fi ; \
		if [ -s $(TEST_PATH)/all.mail ]; then \
			cat $(TEST_PATH)/all.mail >> $(MAILFILE_PATH)/programmer.mail ; \
		fi ; \
	else \
		echo "Must be cmiss"; \
	fi
#This mail is added into the example mail.
<commit_msg>Changed the name of the old testing targets to the new scheme.<commit_after>#Paths
PRODUCT_PATH=$(CMISS_ROOT)/cmgui
PRODUCT_SOURCE_PATH=$(PRODUCT_PATH)/source
TEST_PATH=$(CMISS_ROOT)/cmgui/test_examples
MAILFILE_PATH=mailfiles

#Build defaults
USER_INTERFACE=USER_INTERFACE=MOTIF_USER_INTERFACE
DYNAMIC_GL_LINUX=DYNAMIC_GL_LINUX=false
DEBUG=DEBUG=true
ABI=
MEMORYCHECK=

ifdef CMISS_ROOT
   CMISS_ROOT_DEFINED = true
else # CMISS_ROOT
   CMISS_ROOT = $(CMGUI_DEV_ROOT)
endif # CMISS_ROOT

MAKEFILE := cmgui.Makefile
MAKEFILE_FOUND = $(wildcard source/$(MAKEFILE))
ifdef CMISS_ROOT_DEFINED
   ifeq ($(MAKEFILE_FOUND),)
      MAKEFILE := $(CMISS_ROOT)/cmgui/source/$(MAKEFILE)
   endif # $(MAKEFILE_FOUND) ==
endif # CMISS_ROOT_DEFINED

#Developers default
cmgui-debug :

cmgui cmgui-debug cmgui-dynamicgl cmgui-dynamicgl-debug cmgui64 cmgui64-debug : USER_INTERFACE=USER_INTERFACE=MOTIF_USER_INTERFACE
cmgui-dynamicgl cmgui-dynamicgl-debug : DYNAMIC_GL_LINUX=DYNAMIC_GL_LINUX=true
cmgui cmgui-dynamicgl cmgui64 cmgui-console cmgui-gtk : DEBUG=DEBUG=false
cmgui-debug cmgui-debug-memorycheck cmgui-dynamicgl-debug cmgui64-debug : DEBUG=DEBUG=true
cmgui64 cmgui64-debug : ABI=ABI=64
cmgui-debug-memorycheck : MEMORYCHECK=MEMORYCHECK=true
cmgui-console : USER_INTERFACE=USER_INTERFACE=CONSOLE_USER_INTERFACE
cmgui-gtk : USER_INTERFACE=USER_INTERFACE=GTK_USER_INTERFACE

utilities: TARGET=utilities

cmgui cmgui-debug cmgui-debug-memorycheck cmgui-dynamicgl cmgui-dynamicgl-debug cmgui64 cmgui64-debug cmgui-console cmgui-gtk utilities :
	cd source ; \
	$(MAKE) -f $(MAKEFILE) $(TARGET) $(USER_INTERFACE) $(ABI) $(DYNAMIC_GL_LINUX) $(DEBUG) $(MEMORYCHECK) ;

update_sources :
	if ( [ "$(PWD)" -ef "$(PRODUCT_PATH)" ] && [ "$(USER)" = "cmiss" ] ); then \
		cvs update && \
		cd $(PRODUCT_SOURCE_PATH) && \
		chgrp -R cmgui_programmers * && \
		cd $(PRODUCT_PATH) && \
		ssh 192.168.127.12 'export CVS_RSH=ssh; export CVS_SERVER=/product/cmiss/bin/cvs ; cd $(CMISS_ROOT)/cmgui ; $(CMISS_ROOT)/bin/cvs update ' ; \
	else \
		echo "Must be cmiss and in $(PRODUCT_PATH)"; \
	fi

ESU_BUILD_LIST = cmgui cmgui-debug cmgui64 cmgui-console cmgui-debug-memorycheck
ESP_BUILD_LIST = cmgui cmgui-debug cmgui-debug-memorycheck cmgui-dynamicgl cmgui-dynamicgl-debug cmgui-console
HPC1_BUILD_LIST = cmgui cmgui-debug cmgui64 cmgui64-debug

update : update_sources
	if ( [ "$(PWD)" -ef "$(PRODUCT_PATH)" ] && [ "$(USER)" = "cmiss" ] ); then \
		cd $(PRODUCT_SOURCE_PATH) && \
		chgrp -R cmgui_programmers * && \
		cd $(PRODUCT_PATH) && \
		$(MAKE) -f cmguiMakefile $(ESU_BUILD_LIST) && \
		ssh 192.168.127.12 'setenv CMISS_ROOT /product/cmiss ; cd $(PRODUCT_PATH) ; $(MAKE) -f cmguiMakefile $(ESP_BUILD_LIST)' && \
		ssh 192.168.127.12 'export CMISS_ROOT=/product/cmiss ; export CMGUI_DEV_ROOT=$(PWD) ; cd $(CMISS_ROOT)/cmgui ; gmake -f cmguiMakefile $(HPC1_BUILD_LIST) ;  ' && \
		ssh 172.16.17.32 'setenv CMISS_ROOT /product/cmiss ; cd $(PRODUCT_PATH) ; $(MAKE) -f cmguiMakefile cmgui-gtk ; /home/blackett/bin/cross-make -f cmguiMakefile cmgui-gtk' && \
		cd $(PRODUCT_SOURCE_PATH) && \
		chgrp -R cmgui_programmers *; \
	else \
		echo "Must be cmiss and in $(PRODUCT_PATH)"; \
	fi

depend: update_sources
	if [ "$(USER)" = "cmiss" ]; then \
		CMGUI_DEV_ROOT=$(PWD) ; \
		export CMGUI_DEV_ROOT ; \
		$(MAKE) -f cmguiMakefile $(ESU_BUILD_LIST) TARGET=depend ; \
		ssh 192.168.127.12 'setenv CMISS_ROOT /product/cmiss ; cd $(PRODUCT_PATH) ; setenv CMGUI_DEV_ROOT $(PWD) ; $(MAKE) -f cmguiMakefile $(ESP_BUILD_LIST) TARGET=depend ; ' ; \
		ssh 192.168.127.12 'export CMISS_ROOT=/product/cmiss ; export CMGUI_DEV_ROOT=$(PWD) ; cd $(CMISS_ROOT)/cmgui ; gmake -f cmguiMakefile $(HPC1_BUILD_LIST) TARGET=depend ;  ' ; \
		ssh 172.16.17.32 'setenv CMISS_ROOT /product/cmiss ; setenv CMGUI_DEV_ROOT $(PWD) ; cd $(PRODUCT_PATH) ; $(MAKE) -f cmguiMakefile cmgui-gtk TARGET=depend && /home/blackett/bin/cross-make -f cmguiMakefile cmgui-gtk TARGET=depend' ; \
	else \
		echo "Must be cmiss"; \
	fi

run_tests:
	if [ "$(USER)" = "cmiss" ]; then \
		cd $(TEST_PATH); \
		$(MAKE) \
		ssh 192.168.127.12 'setenv CMISS_ROOT /product/cmiss ; cd $(TEST_PATH) ; make cmgui-linux-test' ; \
		cat all.mail ; \
	else \
		echo "Must be cmiss"; \
	fi

cronjob:
	if [ "$(USER)" = "cmiss" ]; then \
		cd $(PRODUCT_PATH); \
		cvs update ; \
		echo -n > $(MAILFILE_PATH)/programmer.mail ; \
		if ! $(MAKE) -f cmguiMakefile depend; then \
			cat $(MAILFILE_PATH)/dependfail.mail >> $(MAILFILE_PATH)/programmer.mail ; \
		fi ; \
		if ! $(MAKE) -f cmguiMakefile update; then \
			cat $(MAILFILE_PATH)/updatefail.mail >> $(MAILFILE_PATH)/programmer.mail ; \
		fi ; \
		if ! $(MAKE) -f cmguiMakefile run_tests; then \
			cat $(MAILFILE_PATH)/testfail.mail >> $(MAILFILE_PATH)/programmer.mail ; \
		fi ; \
		if [ -s $(TEST_PATH)/all.mail ]; then \
			cat $(TEST_PATH)/all.mail >> $(MAILFILE_PATH)/programmer.mail ; \
		fi ; \
	else \
		echo "Must be cmiss"; \
	fi
#This mail is added into the example mail.

{'fraction_non_alphanumeric': 0.14465026824577387, 'fraction_numerical': 0.022370685292033607, 'mean_word_length': 4.360824742268041, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 16, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '564147', 'n_tokens_mistral': 4191, 'n_tokens_neox': 3800, 'n_words': 766}