<commit_before>#!/bin/bash

if [[ -z "$1" ]]; then
    # list db, redis, rabbitmq, and seaweedfs ports
    docker ps --format '{{.Names}}' | grep "db\|redis\|queue\|seaweedfs" | xargs -I '{}' bash -c 'echo "{} -> $(python3 -c "import sys; [print(l.split(\":\")[-1]) for l in sys.argv[1].split(\"\n\") if l.split(\"/tcp\")[0] in sys.argv[2].split(\",\")]" "$(docker port {})" "15672,5432,6379,9333")"' - {}
else
    PORT=$1
    if docker ps | grep ":${PORT}" | grep -q 'redis'; then
        open redis://127.0.0.1:${PORT}<commit_msg>Changed seaweedfs port to filer<commit_after>#!/bin/bash

if [[ -z "$1" ]]; then
    # list db, redis, rabbitmq, and seaweedfs ports
    docker ps --format '{{.Names}}' | grep "db\|redis\|queue\|seaweedfs" | xargs -I '{}' bash -c 'echo "{} -> $(python3 -c "import sys; [print(l.split(\":\")[-1]) for l in sys.argv[1].split(\"\n\") if l.split(\"/tcp\")[0] in sys.argv[2].split(\",\")]" "$(docker port {})" "15672,5432,6379,8888")"' - {}
else
    PORT=$1
    if docker ps | grep ":${PORT}" | grep -q 'redis'; then
        open redis://127.0.0.1:${PORT}
{'fraction_non_alphanumeric': 0.2698706099815157, 'fraction_numerical': 0.05545286506469501, 'mean_word_length': 3.2140077821011674, 'pattern_counts': {'":': 4, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '5355196', 'n_tokens_mistral': 483, 'n_tokens_neox': 428, 'n_words': 107}