<commit_before>From 13cafa4bdcff43d197c5e6f6f88af9f1d2171b27 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Julian=20R=C3=BCth?= <<EMAIL>>
Date: Fri, 18 Oct 2019 15:42:31 +0200
Subject: [PATCH] search default paths for libclang.lib

---
 external/external.cmake | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/external/external.cmake b/external/external.cmake
index 8a74eb8..d6b08f6 100644
--- a/external/cppast/external/external.cmake
+++ b/external/cppast/external/external.cmake
@@ -176,7 +176,7 @@ function(_cppast_find_libclang config_tool min_version force)
     if(NOT LIBCLANG_LIBRARY)
         execute_process(COMMAND ${config_tool} --libdir
                         OUTPUT_VARIABLE llvm_library_dir OUTPUT_STRIP_TRAILING_WHITESPACE)
-        find_library(LIBCLANG_LIBRARY "clang" "${llvm_library_dir}" NO_DEFAULT_PATH)
+        find_library(LIBCLANG_LIBRARY NAMES clang libclang HINTS "${llvm_library_dir}")
 
         if(NOT LIBCLANG_LIBRARY)
             message(FATAL_ERROR "libclang library not found")
-- 
2.23.0
<commit_msg>Update 0002-search-libclang.patch<commit_after>From 13cafa4bdcff43d197c5e6f6f88af9f1d2171b27 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Julian=20R=C3=BCth?= <<EMAIL>>
Date: Fri, 18 Oct 2019 15:42:31 +0200
Subject: [PATCH] search for libclang.lib on Windows

---
 external/external.cmake | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/external/external.cmake b/external/external.cmake
index 8a74eb8..d6b08f6 100644
--- a/external/cppast/external/external.cmake
+++ b/external/cppast/external/external.cmake
@@ -176,7 +176,7 @@ function(_cppast_find_libclang config_tool min_version force)
     if(NOT LIBCLANG_LIBRARY)
         execute_process(COMMAND ${config_tool} --libdir
                         OUTPUT_VARIABLE llvm_library_dir OUTPUT_STRIP_TRAILING_WHITESPACE)
-        find_library(LIBCLANG_LIBRARY "clang" "${llvm_library_dir}" NO_DEFAULT_PATH)
+        find_library(LIBCLANG_LIBRARY NAMES clang libclang HINTS "${llvm_library_dir}")
 
         if(NOT LIBCLANG_LIBRARY)
             message(FATAL_ERROR "libclang library not found")
-- 
2.23.0

{'fraction_non_alphanumeric': 0.11247058823529411, 'fraction_numerical': 0.08, 'mean_word_length': 4.09832134292566, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '2227253', 'n_tokens_mistral': 914, 'n_tokens_neox': 780, 'n_words': 149}