<commit_before>cmake_minimum_required(VERSION 2.6)
set(PACKAGE_SOURCE_CODE python_glue.c)
set(PACKAGE_SCRIPT_CODE python_glue.k)

find_program(PYTHON_CONFIG NAMES python-config)
execute_process(
		COMMAND ${PYTHON_CONFIG} --include
		OUTPUT_VARIABLE PYCNF_INCLUDE_RESULT
		OUTPUT_STRIP_TRAILING_WHITESPACE
		)

string(REGEX MATCH "/[^ ]+/python[2-3].[0-9]" PYTHON_INCLUDE_PATH ${PYCNF_INCLUDE_RESULT})
string(REGEX REPLACE "/[^ ]+/(python[2-3].[0-9])" "\\1" python_ver "${PYTHON_INCLUDE_PATH}")
message("replaced PYTHON_INCLUDE_PATH = '" ${PYTHON_INCLUDE_PATH} "'")
MESSAGE("test= ${python_ver}")

find_library(PACKAGE_EXTRA_LIBRARY NAMES ${python_ver})<commit_msg>fix python CMakeLists.txt<commit_after>cmake_minimum_required(VERSION 2.6)
set(PACKAGE_SOURCE_CODE python_glue.c)
set(PACKAGE_SCRIPT_CODE python_glue.k)

find_program(PYTHON_CONFIG NAMES python-config)
execute_process(
		COMMAND ${PYTHON_CONFIG} --include
		OUTPUT_VARIABLE PYCNF_INCLUDE_RESULT
		OUTPUT_STRIP_TRAILING_WHITESPACE
		)

string(REGEX MATCH "/[^ ]+/python[2-3].[0-9]" PYTHON_INCLUDE_PATH ${PYCNF_INCLUDE_RESULT})
string(REGEX REPLACE "/[^ ]+/(python[2-3].[0-9])" "\\1" python_ver "${PYTHON_INCLUDE_PATH}")
message("replaced PYTHON_INCLUDE_PATH = '" ${PYTHON_INCLUDE_PATH} "'")

find_library(PACKAGE_EXTRA_LIBRARY NAMES ${python_ver})
{'fraction_non_alphanumeric': 0.13958810068649885, 'fraction_numerical': 0.016781083142639208, 'mean_word_length': 8.371428571428572, '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': '3601692', 'n_tokens_mistral': 570, 'n_tokens_neox': 511, 'n_words': 69}