<commit_before>#!/bin/bash
set -e
ROOTDIR=`dirname "$0"`
ROOTDIR=`cd "$ROOTDIR/../.." && pwd`
source "$ROOTDIR/shared/lib/library.sh"

CURL_VERSION=$(cat "$ROOTDIR/shared/definitions/curl_version")

header "Installing libcurl $CURL_VERSION"
download_and_extract curl-$CURL_VERSION.tar.gz \
	curl-$CURL_VERSION \
	https://curl.haxx.se/download/curl-$CURL_VERSION.tar.gz
run rm -f "$WORKDIR/curl-$CURL_VERSION.tar.gz"
run ./configure --prefix="$OUTPUT_DIR" \
	--disable-shared --disable-debug --enable-optimize --disable-werror \
	--disable-curldebug --enable-symbol-hiding --disable-ares --disable-manual --disable-ldap --disable-ldaps \
	--disable-rtsp --disable-dict --disable-ftp --disable-ftps --disable-gopher --disable-imap \
	--disable-imaps --disable-pop3 --disable-pop3s --without-librtmp --disable-smtp --disable-smtps \
	--disable-telnet --disable-tftp --disable-smb --disable-versioned-symbols \
	--without-libmetalink --without-libidn --without-libssh2 --without-libmetalink --without-nghttp2 \
	--with-ssl
run make -j$CONCURRENCY
run make install-strip
run rm -f "$OUTPUT_DIR/bin/curl"
<commit_msg>Attempt to fix missing ca-cert issue by using darwinssl<commit_after>#!/bin/bash
set -e
ROOTDIR=`dirname "$0"`
ROOTDIR=`cd "$ROOTDIR/../.." && pwd`
source "$ROOTDIR/shared/lib/library.sh"

CURL_VERSION=$(cat "$ROOTDIR/shared/definitions/curl_version")

header "Installing libcurl $CURL_VERSION"
download_and_extract curl-$CURL_VERSION.tar.gz \
	curl-$CURL_VERSION \
	https://curl.haxx.se/download/curl-$CURL_VERSION.tar.gz
run rm -f "$WORKDIR/curl-$CURL_VERSION.tar.gz"
run ./configure --prefix="$OUTPUT_DIR" \
	--disable-shared --disable-debug --enable-optimize --disable-werror \
	--disable-curldebug --enable-symbol-hiding --disable-ares --disable-manual --disable-ldap --disable-ldaps \
	--disable-rtsp --disable-dict --disable-ftp --disable-ftps --disable-gopher --disable-imap \
	--disable-imaps --disable-pop3 --disable-pop3s --without-librtmp --disable-smtp --disable-smtps \
	--disable-telnet --disable-tftp --disable-smb --disable-versioned-symbols \
	--without-libmetalink --without-libidn --without-libssh2 --without-libmetalink --without-nghttp2 \
	--with-darwinssl
run make -j$CONCURRENCY
run make install-strip
run rm -f "$OUTPUT_DIR/bin/curl"

{'fraction_non_alphanumeric': 0.1748898678414097, 'fraction_numerical': 0.004405286343612335, 'mean_word_length': 3.6346938775510202, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4431908', 'n_tokens_mistral': 836, 'n_tokens_neox': 796, 'n_words': 146}