<commit_before>#!/bin/sh

cd /opt/seafile
curl -L -O https://bitbucket.org/haiwen/seafile/downloads/seafile-server_4.1.2_x86-64.tar.gz
tar xzf seafile-server_*
mkdir -p installed
mv seafile-server_* installed<commit_msg>Try to get latest version of seafile server.<commit_after>#!/bin/sh

cd /opt/seafile
arch=$(uname -m | sed s/"_"/"-"/g)
regexp="http(s?):\/\/[^ \"\(\)\<\>]*seafile-server_[\d\.\_]*$arch.tar.gz"
addr=`wget http://www.seafile.com/en/download/ -O - | grep --only-matching --perl-regexp "$regexp" | head -1`
curl -L -O $addr || curl -L -O https://bitbucket.org/haiwen/seafile/downloads/seafile-server_4.1.2_x86-64.tar.gz;
tar xzf seafile-server_*
mkdir -p installed
mv seafile-server_* installed
{'fraction_non_alphanumeric': 0.19971870604781997, 'fraction_numerical': 0.02109704641350211, 'mean_word_length': 3.810810810810811, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 2, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1414094', 'n_tokens_mistral': 303, 'n_tokens_neox': 295, 'n_words': 57}