<commit_before>PROJECT( ply )
cmake_minimum_required(VERSION 2.8)  

#Match everything when analyzing dependencies
INCLUDE_REGULAR_EXPRESSION("^.*$")
OPTION (BUILD_SHARED_LIBS "Build shared libraries" OFF)

IF (WIN32 AND MSVC)
  ADD_DEFINITIONS(-D_SCL_SECURE_NO_WARNINGS)
  ADD_DEFINITIONS(-D_CRT_SECURE_NO_WARNINGS)
ENDIF (WIN32 AND MSVC)

INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR})

SET ( 	ply_HDRS
			ply.h
)
SET( 	ply_SRCS
			plyfile.c
)
ADD_LIBRARY( ply	
						 ${ply_SRCS}
						 ${ply_HDRS}
							)

SET( plytest_SRCS
     plytest.c
)
SET ( plytest_HDRS
			ply.h
)
ADD_EXECUTABLE( plytest
                ${plytest_SRCS}
                ${plytest_HDRS}
				      )
TARGET_LINK_LIBRARIES( plytest ply ) 

<commit_msg>adding installation component to cmake file.<commit_after>PROJECT( ply )
cmake_minimum_required(VERSION 2.8)  

#Match everything when analyzing dependencies
INCLUDE_REGULAR_EXPRESSION("^.*$")
OPTION (BUILD_SHARED_LIBS "Build shared libraries" OFF)

IF (WIN32 AND MSVC)
  ADD_DEFINITIONS(-D_SCL_SECURE_NO_WARNINGS)
  ADD_DEFINITIONS(-D_CRT_SECURE_NO_WARNINGS)
ENDIF (WIN32 AND MSVC)

INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR})

SET (	ply_HDRS
			ply.h
)
SET( 	ply_SRCS
			plyfile.c
)
ADD_LIBRARY( ply	
						 ${ply_SRCS}
						 ${ply_HDRS}
							)

SET( plytest_SRCS
     plytest.c
)
SET ( plytest_HDRS
			ply.h
)
ADD_EXECUTABLE( plytest
                ${plytest_SRCS}
                ${plytest_HDRS}
				      )
TARGET_LINK_LIBRARIES( plytest ply ) 

INSTALL(TARGETS ply
				LIBRARY DESTINATION lib)

{'fraction_non_alphanumeric': 0.08864084044648719, 'fraction_numerical': 0.007879185817465528, 'mean_word_length': 3.522255192878338, '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': '4188013', 'n_tokens_mistral': 706, 'n_tokens_neox': 591, 'n_words': 110}