<commit_before>
# Run emulator
run_emulator()
{
    local android_api=$1
    log_info "Starting emulator for SDK $android_api"
    docker run -d -p 5555:5555 -p 5900:5900 --name $docker_android softsam/android-${android_api}:latest
}

# Run appium server
run_appium_server()
{
    log_info "Starting appium server"
    docker run -d --link ${docker_android}:android -p 4723:4723 --name $docker_appium -e APPIUM_ARGS="--suppress-adb-kill-server" -v ${APK_DIR}:/apk softsam/appium:latest
}

# Wait for the emulator boot sequence to be over
wait_for_emulator()
{
    local bootanim=""
    until [[ "$bootanim" =~ "stopped" ]]; do
       bootanim=`docker exec $docker_appium adb -e shell getprop init.svc.bootanim 2>&1`
       echo "Waiting for emulator to start...$bootanim"
       sleep 1<commit_msg>Emulators are now taking into account the proxy<commit_after>
# Run emulator
run_emulator()
{
    local android_api=$1
    log_info "Starting emulator for SDK $android_api"
    docker run -d -p 5555:5555 -p 5900:5900 -e http_proxy="$http_proxy" --name $docker_android softsam/android-${android_api}:latest
}

# Run appium server
run_appium_server()
{
    log_info "Starting appium server"
    docker run -d --link ${docker_android}:android -p 4723:4723 --name $docker_appium -e APPIUM_ARGS="--suppress-adb-kill-server" -v ${APK_DIR}:/apk softsam/appium:latest
}

# Wait for the emulator boot sequence to be over
wait_for_emulator()
{
    local bootanim=""
    until [[ "$bootanim" =~ "stopped" ]]; do
       bootanim=`docker exec $docker_appium adb -e shell getprop init.svc.bootanim 2>&1`
       echo "Waiting for emulator to start...$bootanim"
       sleep 1
{'fraction_non_alphanumeric': 0.12002412545235223, 'fraction_numerical': 0.033775633293124246, 'mean_word_length': 3.836734693877551, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '5167818', 'n_tokens_mistral': 626, 'n_tokens_neox': 564, 'n_words': 162}