<commit_before>#!/bin/bash

if [ ! -f "$1" ]; then
    echo "Please provide the filename of an existing zip build as the first argument"
    exit
fi

ARCHITECTURES="amd64 arm32v7"
DEFAULT_ARCHITECTURE=amd64
DEFAULT_CHANNEL=beta
REPOSITORY=duplicati/duplicati

ARCHIVE_NAME=`basename -s .zip $1`
VERSION=`echo "${ARCHIVE_NAME}" | cut -d "-" -f 2-`
CHANNEL=`echo "${ARCHIVE_NAME}" | cut -d "_" -f 2`
DIRNAME=duplicati

if [ -d "${DIRNAME}" ]; then
    rm -rf "${DIRNAME}"
fi

unzip -d "${DIRNAME}" "$1"

for n in "../oem" "../../oem" "../../../oem"
do
    if [ -d $n ]; then
        echo "Installing OEM files"
        cp -R $n "${DIRNAME}/webroot/"
    fi
done

for n in "oem-app-name.txt" "oem-update-url.txt" "oem-update-key.txt" "oem-update-readme.txt" "oem-update-installid.txt"
do
    for p in "../$n" "../../$n" "../../../$n"
    do<commit_msg>Fix some code quality issues.<commit_after>#!/bin/bash

if [ ! -f "$1" ]; then
    echo "Please provide the filename of an existing zip build as the first argument"
    exit
fi

ARCHITECTURES="amd64 arm32v7"
DEFAULT_ARCHITECTURE=amd64
DEFAULT_CHANNEL=beta
REPOSITORY=duplicati/duplicati

ARCHIVE_NAME=$(basename -s .zip $1)
VERSION=$(echo "${ARCHIVE_NAME}" | cut -d "-" -f 2-)
CHANNEL=$(echo "${ARCHIVE_NAME}" | cut -d "_" -f 2)
DIRNAME=duplicati

if [ -d "${DIRNAME}" ]; then
    rm -rf "${DIRNAME}"
fi

unzip -d "${DIRNAME}" "$1"

for n in "../oem" "../../oem" "../../../oem"
do
    if [ -d $n ]; then
        echo "Installing OEM files"
        cp -R $n "${DIRNAME}/webroot/"
    fi
done

for n in "oem-app-name.txt" "oem-update-url.txt" "oem-update-key.txt" "oem-update-readme.txt" "oem-update-installid.txt"
do
    for p in "../$n" "../../$n" "../../../$n"
    do
{'fraction_non_alphanumeric': 0.20617355853232383, 'fraction_numerical': 0.013977868375072802, 'mean_word_length': 2.8008849557522124, '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': '4205606', 'n_tokens_mistral': 683, 'n_tokens_neox': 671, 'n_words': 187}