<commit_before>#!/usr/bin/env python
from dateutil.parser import parse as time_parser
import requests

import argparse
import datetime
import logging
from logging import config
import os
import re
import schedule
import time

logger = logging.getLogger(__name__)


def clean_empty_queues(base_url, regex_pattern, queue_idle_minutes, force_delete=False, vhost=None):
    logger.info("running")
    try:
        response = requests.request("GET", base_url + '/api/queues')
        pattern = re.compile(regex_pattern)
        total = 0
        matched = 0
        deleted = 0
        for i, queue in enumerate(response.json()):
            total += 1<commit_msg>removed unused flag<commit_after>#!/usr/bin/env python
from dateutil.parser import parse as time_parser
import requests

import argparse
import datetime
import logging
from logging import config
import os
import re
import schedule
import time

logger = logging.getLogger(__name__)


def clean_empty_queues(base_url, regex_pattern, queue_idle_minutes, force_delete=False):
    logger.info("running")
    try:
        response = requests.request("GET", base_url + '/api/queues')
        pattern = re.compile(regex_pattern)
        total = 0
        matched = 0
        deleted = 0
        for i, queue in enumerate(response.json()):
            total += 1
{'fraction_non_alphanumeric': 0.08384146341463415, 'fraction_numerical': 0.006097560975609756, 'mean_word_length': 3.435810810810811, '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': '2075296', 'n_tokens_mistral': 380, 'n_tokens_neox': 368, 'n_words': 114}