<commit_before># -------------------------------------
# cmake configuration
# -------------------------------------

CMAKE_MINIMUM_REQUIRED(VERSION 3.3.0)
MARK_AS_ADVANCED(CMAKE_BACKWARDS_COMPATIBILITY)
SET(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS TRUE)
SET(CMAKE_VERBOSE_MAKEFILE ON)
SET(CMAKE_MACOSX_RPATH OFF)

# -------------------------------------
# Project configuration
# -------------------------------------

PROJECT(meanie3D-python)
GET_DIRECTORY_PROPERTY(PACKAGE_VERSION DIRECTORY .. DEFINITION PACKAGE_VERSION)
GET_DIRECTORY_PROPERTY(PROJECT_URL DIRECTORY .. DEFINITION PROJECT_URL)
GET_DIRECTORY_PROPERTY(PROJECT_LICENSE DIRECTORY .. DEFINITION PROJECT_LICENSE)

# Python
FIND_PACKAGE(PythonInterp REQUIRED)
IF (PYTHONINTERP_FOUND)
    MESSAGE(STATUS "Found Python interpreter (${PYTHON_VERSION_STRING}) ${PYTHON_EXECUTABLE}")
ELSE()
    MESSAGE(FATAL_ERROR "python not found")
ENDIF()

# ------------------------------------------------------------- #
# Python packaging
# ------------------------------------------------------------- #
IF (PYTHONINTERP_FOUND)

    # Configure package file
    FILE(COPY meanie3D DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
    FILE(COPY setup.py.in DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
    FILE(COPY MANIFEST.in DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
    FILE(COPY README.txt.in DESTINATION ${CMAKE_CURRENT_BINARY_DIR})

    SET(SETUP_PY ${CMAKE_CURRENT_BINARY_DIR}/setup.py)
    CONFIGURE_FILE(${CMAKE_CURRENT_BINARY_DIR}/setup.py.in ${SETUP_PY})
    CONFIGURE_FILE(${CMAKE_CURRENT_BINARY_DIR}/meanie3D/__init__.py.in ${CMAKE_CURRENT_BINARY_DIR}/meanie3D/__init__.py)
    CONFIGURE_FILE(${CMAKE_CURRENT_BINARY_DIR}/README.txt.in ${CMAKE_CURRENT_BINARY_DIR}/README.txt)

    ADD_CUSTOM_TARGET(${PROJECT_NAME} ALL COMMAND ${PYTHON_EXECUTABLE} setup.py build)
    ADD_CUSTOM_TARGET(${PROJECT_NAME}-clean COMMAND rm -rf build dist *.egg-info setup.py meanie3D/__init__.py)

    INSTALL(CODE "EXECUTE_PROCESS(COMMAND \"${PYTHON_EXECUTABLE}\" setup.py install WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})")

ENDIF()
<commit_msg>#issueid 376 adding generated readme to clean<commit_after># -------------------------------------
# cmake configuration
# -------------------------------------

CMAKE_MINIMUM_REQUIRED(VERSION 3.3.0)
MARK_AS_ADVANCED(CMAKE_BACKWARDS_COMPATIBILITY)
SET(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS TRUE)
SET(CMAKE_VERBOSE_MAKEFILE ON)
SET(CMAKE_MACOSX_RPATH OFF)

# -------------------------------------
# Project configuration
# -------------------------------------

PROJECT(meanie3D-python)
GET_DIRECTORY_PROPERTY(PACKAGE_VERSION DIRECTORY .. DEFINITION PACKAGE_VERSION)
GET_DIRECTORY_PROPERTY(PROJECT_URL DIRECTORY .. DEFINITION PROJECT_URL)
GET_DIRECTORY_PROPERTY(PROJECT_LICENSE DIRECTORY .. DEFINITION PROJECT_LICENSE)

# Python
FIND_PACKAGE(PythonInterp REQUIRED)
IF (PYTHONINTERP_FOUND)
    MESSAGE(STATUS "Found Python interpreter (${PYTHON_VERSION_STRING}) ${PYTHON_EXECUTABLE}")
ELSE()
    MESSAGE(FATAL_ERROR "python not found")
ENDIF()

# ------------------------------------------------------------- #
# Python packaging
# ------------------------------------------------------------- #
IF (PYTHONINTERP_FOUND)

    # Configure package file
    FILE(COPY meanie3D DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
    FILE(COPY setup.py.in DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
    FILE(COPY MANIFEST.in DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
    FILE(COPY README.txt.in DESTINATION ${CMAKE_CURRENT_BINARY_DIR})

    SET(SETUP_PY ${CMAKE_CURRENT_BINARY_DIR}/setup.py)
    CONFIGURE_FILE(${CMAKE_CURRENT_BINARY_DIR}/setup.py.in ${SETUP_PY})
    CONFIGURE_FILE(${CMAKE_CURRENT_BINARY_DIR}/meanie3D/__init__.py.in ${CMAKE_CURRENT_BINARY_DIR}/meanie3D/__init__.py)
    CONFIGURE_FILE(${CMAKE_CURRENT_BINARY_DIR}/README.txt.in ${CMAKE_CURRENT_BINARY_DIR}/README.txt)

    ADD_CUSTOM_TARGET(${PROJECT_NAME} ALL COMMAND ${PYTHON_EXECUTABLE} setup.py build)
    ADD_CUSTOM_TARGET(${PROJECT_NAME}-clean COMMAND rm -rf build dist *.egg-info setup.py meanie3D/__init__.py README.txt)

    INSTALL(CODE "EXECUTE_PROCESS(COMMAND \"${PYTHON_EXECUTABLE}\" setup.py install WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})")

ENDIF()

{'fraction_non_alphanumeric': 0.2159063768808216, 'fraction_numerical': 0.004537855266300453, 'mean_word_length': 3.1754735792622135, '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': '5356916', 'n_tokens_mistral': 1471, 'n_tokens_neox': 1381, 'n_words': 203}