<commit_before>YMAGINE_JNI:=$(call my-dir)

YMAGINE_BUILD_ANDROID:=false
YMAGINE_BUILD_SHARED:=false

ifeq ($(BUILD_ANDROID),true)
YMAGINE_BUILD_ANDROID:=true
ifneq ($(NDK_ROOT),)
YMAGINE_BUILD_SHARED:=true
endif
endif

ifeq ($(BUILD_HOST),true)
YMAGINE_BUILD_ANDROID:=false
YMAGINE_BUILD_SHARED:=true
endif

# Core features
YMAGINE_CONFIG_BITMAP:=true
YMAGINE_CONFIG_BITMAP_JPEG:=true
YMAGINE_CONFIG_BITMAP_WEBP:=true
YMAGINE_CONFIG_BITMAP_PNG:=true
YMAGINE_CONFIG_BITMAP_GIF:=false
YMAGINE_CONFIG_XMP:=true
YMAGINE_CONFIG_CLASSIFIER:=true
YMAGINE_CONFIG_VIDEO:=true

# Code layout
YMAGINE_PLUGINS_ROOT:=$(YMAGINE_ROOT)/plugins
YMAGINE_3RDPARTIES:=$(YMAGINE_ROOT)/../../external

# Local mirrors of 3rd parties modules
ZLIB_ROOT:=$(YMAGINE_3RDPARTIES)/zlib
LZF_ROOT:=$(YMAGINE_3RDPARTIES)/liblzf
JPEGTURBO_ROOT:=$(YMAGINE_3RDPARTIES)/jpeg-turbo
WEBP_ROOT:=$(YMAGINE_3RDPARTIES)/webp
PNG_ROOT:=$(YMAGINE_3RDPARTIES)/libpng
CCV_ROOT:=$(YMAGINE_3RDPARTIES)/ccv

# Core layout
YOSAL_ROOT:=$(YMAGINE_ROOT)/../yosal<commit_msg>Automatically detect whether plugins are available<commit_after>YMAGINE_JNI:=$(call my-dir)

YMAGINE_BUILD_ANDROID:=false
YMAGINE_BUILD_SHARED:=false

ifeq ($(BUILD_ANDROID),true)
YMAGINE_BUILD_ANDROID:=true
ifneq ($(NDK_ROOT),)
YMAGINE_BUILD_SHARED:=true
endif
endif

ifeq ($(BUILD_HOST),true)
YMAGINE_BUILD_ANDROID:=false
YMAGINE_BUILD_SHARED:=true
endif

# Core features
YMAGINE_CONFIG_BITMAP:=true
YMAGINE_CONFIG_BITMAP_JPEG:=true
YMAGINE_CONFIG_BITMAP_WEBP:=true
YMAGINE_CONFIG_BITMAP_PNG:=true
YMAGINE_CONFIG_BITMAP_GIF:=false
YMAGINE_CONFIG_XMP:=true
YMAGINE_CONFIG_CLASSIFIER:=true
YMAGINE_CONFIG_VIDEO:=true
ifeq (,$(wildcard $(YMAGINE_JNI)/plugins/vision))
YMAGINE_CONFIG_CLASSIFIER:=false
endif
ifeq (,$(wildcard $(YMAGINE_JNI)/plugins/video))
YMAGINE_CONFIG_VIDEO:=false
endif

# Code layout
YMAGINE_PLUGINS_ROOT:=$(YMAGINE_ROOT)/plugins
YMAGINE_3RDPARTIES:=$(YMAGINE_ROOT)/../../external

# Local mirrors of 3rd parties modules
ZLIB_ROOT:=$(YMAGINE_3RDPARTIES)/zlib
LZF_ROOT:=$(YMAGINE_3RDPARTIES)/liblzf
JPEGTURBO_ROOT:=$(YMAGINE_3RDPARTIES)/jpeg-turbo
WEBP_ROOT:=$(YMAGINE_3RDPARTIES)/webp
PNG_ROOT:=$(YMAGINE_3RDPARTIES)/libpng
CCV_ROOT:=$(YMAGINE_3RDPARTIES)/ccv

# Core layout
YOSAL_ROOT:=$(YMAGINE_ROOT)/../yosal
{'fraction_non_alphanumeric': 0.12072791833111407, 'fraction_numerical': 0.007101642254771416, 'mean_word_length': 12.104651162790697, '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': '5271605', 'n_tokens_mistral': 981, 'n_tokens_neox': 947, 'n_words': 106}