<commit_before>#!/usr/bin/env bash

function upload_ftp {
    echo "uploading $1 to $2"
    curl --ftp-create-dirs -T $2 -u "$FTP_USER:$FTP_PASSWORD" "ftp://$FTP_HOST/software/$TRAVIS_OS_NAME/"
}

# core

echo "success pushing artifacts to FTP..."
upload_ftp "miniconda" "cate*.sh"

# desktop

if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
    upload_ftp "dmg" "cate-desktop/dist/Cate*.dmg"
    upload_ftp "mac" "cate-desktop/dist/mac/Cate*mac.zip"
else
    upload_ftp "AppImage" "cate-desktop/dist/cate*.AppImage"<commit_msg>upload all linux formats<commit_after>#!/usr/bin/env bash

function upload_ftp {
    echo "uploading format $1 from file $2"
    ls -l $2
    curl --ftp-create-dirs -T $2 -u "$FTP_USER:$FTP_PASSWORD" "ftp://$FTP_HOST/software/$TRAVIS_OS_NAME/"
}

# core

ls -lR cate-desktop/dist/

echo "success pushing artifacts to FTP..."
upload_ftp "miniconda" "cate*.sh"

# desktop

if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
    upload_ftp "dmg" "cate-desktop/dist/Cate*.dmg"
    upload_ftp "mac" "cate-desktop/dist/mac/Cate*mac.zip"
else
    upload_ftp "AppImage" "cate-desktop/dist/cate*.AppImage"
    upload_ftp "tar.gz" "cate-desktop/dist/cate*.tar.gz"
    upload_ftp "zip" "cate-desktop/dist/cate*.zip"
{'fraction_non_alphanumeric': 0.1676253081347576, 'fraction_numerical': 0.005751848808545604, 'mean_word_length': 3.8333333333333335, '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': '3345148', 'n_tokens_mistral': 533, 'n_tokens_neox': 494, 'n_words': 98}