<commit_before>
# Always build the atom types, even if not building the rest of
# embodiment.
OPENCOG_ADD_ATOM_TYPES(atom_types.script
	atom_types.h
	atom_types.definitions
	atom_types.inheritance
	embodiment_types.scm
	embodiment_types.pyx)
ADD_CUSTOM_TARGET(embodiment_atom_types DEPENDS atom_types.h)

# The atom_types.h file is written to the build directory
INCLUDE_DIRECTORIES(${CMAKE_BINARY_DIR})

ADD_LIBRARY (embodiment-types SHARED
	atom_types_init
)
ADD_DEPENDENCIES(embodiment-types opencog_atom_types)
ADD_DEPENDENCIES(embodiment-types spacetime_atom_types)
ADD_DEPENDENCIES(embodiment-types embodiment_atom_types)

TARGET_LINK_LIBRARIES (embodiment-types
	${ATOMSPACE_LIBRARY}
)

IF (HAVE_EMBODIMENT)
	ADD_LIBRARY (AtomSpaceExtensions SHARED
		AtomSpaceUtil
		makeVirtualAtom
		CompareAtomTreeTemplate
		GetByOutgoing
      Intersect
	)

	TARGET_LINK_LIBRARIES (AtomSpaceExtensions
		embodiment-types
		${ATOMSPACE_query_LIBRARY}
		spacetime
		${ATOMSPACE_LIBRARY}
	)
ENDIF (HAVE_EMBODIMENT)

INSTALL (FILES
   ${CMAKE_CURRENT_BINARY_DIR}/embodiment_types.scm
   DESTINATION "${DATADIR}/scm/embodiment"
)

INSTALL (TARGETS AtomSpaceExtensions
   LIBRARY DESTINATION "lib${LIB_DIR_SUFFIX}/opencog/modules"
)<commit_msg>Fix build break if python not installed<commit_after>
# Always build the atom types, even if not building the rest of
# embodiment.
OPENCOG_ADD_ATOM_TYPES(atom_types.script
	atom_types.h
	atom_types.definitions
	atom_types.inheritance
	embodiment_types.scm
	embodiment_types.pyx)
ADD_CUSTOM_TARGET(embodiment_atom_types DEPENDS atom_types.h)

# The atom_types.h file is written to the build directory
INCLUDE_DIRECTORIES(${CMAKE_BINARY_DIR})

ADD_LIBRARY (embodiment-types SHARED
	atom_types_init
)
ADD_DEPENDENCIES(embodiment-types opencog_atom_types)
ADD_DEPENDENCIES(embodiment-types spacetime_atom_types)
ADD_DEPENDENCIES(embodiment-types embodiment_atom_types)

TARGET_LINK_LIBRARIES (embodiment-types
	${ATOMSPACE_LIBRARY}
)

IF (HAVE_EMBODIMENT)
	ADD_LIBRARY (AtomSpaceExtensions SHARED
		AtomSpaceUtil
		makeVirtualAtom
		CompareAtomTreeTemplate
		GetByOutgoing
      Intersect
	)

	TARGET_LINK_LIBRARIES (AtomSpaceExtensions
		embodiment-types
		${ATOMSPACE_query_LIBRARY}
		spacetime
		${ATOMSPACE_LIBRARY}
	)

	INSTALL (TARGETS AtomSpaceExtensions
   	LIBRARY DESTINATION "lib${LIB_DIR_SUFFIX}/opencog/modules"
	)
ENDIF (HAVE_EMBODIMENT)

INSTALL (FILES
  	${CMAKE_CURRENT_BINARY_DIR}/embodiment_types.scm
  	DESTINATION "${DATADIR}/scm/embodiment"
)

{'fraction_non_alphanumeric': 0.06495589414595028, 'fraction_numerical': 0.0, 'mean_word_length': 6.870662460567823, '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': '368181', 'n_tokens_mistral': 1012, 'n_tokens_neox': 946, 'n_words': 156}