<commit_before>#!/bin/bash
set -e

fullVersion="$(curl -sSL 'http://memcached.org/files/' | grep -E '<a href="memcached-[0-9.]+\.tar\.gz"' | sed -r 's!.*<a href="memcached-([0-9.]+)\.tar\.gz".*!\1!' | sort -V | tail -1)"

sha1="$(curl -sSL "http://memcached.org/files/memcached-$fullVersion.tar.gz.sha1" | cut -d' ' -f1)"

set -x
sed -ri '
	s/^(ENV MEMCACHED_VERSION) .*/\1 '"$fullVersion"'/;
	s/^(ENV WORDPRESS_SHA1) .*/\1 '"$sha1"'/;
' Dockerfile
<commit_msg>LOL @yosifkit<commit_after>#!/bin/bash
set -e

fullVersion="$(curl -sSL 'http://memcached.org/files/' | grep -E '<a href="memcached-[0-9.]+\.tar\.gz"' | sed -r 's!.*<a href="memcached-([0-9.]+)\.tar\.gz".*!\1!' | sort -V | tail -1)"

sha1="$(curl -sSL "http://memcached.org/files/memcached-$fullVersion.tar.gz.sha1" | cut -d' ' -f1)"

set -x
sed -ri '
	s/^(ENV MEMCACHED_VERSION) .*/\1 '"$fullVersion"'/;
	s/^(ENV MEMCACHED_SHA1) .*/\1 '"$sha1"'/;
' Dockerfile

{'fraction_non_alphanumeric': 0.2874186550976139, 'fraction_numerical': 0.028199566160520606, 'mean_word_length': 3.395238095238095, 'pattern_counts': {'":': 0, '<': 7, '<?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': '4382427', 'n_tokens_mistral': 444, 'n_tokens_neox': 411, 'n_words': 75}