<commit_before>import csv
import os
from collections import namedtuple
from typing import Tuple, Optional, Dict

from ray_release.config import Test, RELEASE_PACKAGE_DIR, load_test_cluster_compute
from ray_release.logger import logger


CONCURRENY_GROUPS = {
    "small": 64,
    "medium": 16,
    "large": 8,
    "small-gpu": 8,
    "large-gpu": 4,
}

Condition = namedtuple(
    "Condition", ["min_gpu", "max_gpu", "min_cpu", "max_cpu", "group"]<commit_msg>[Nightly Tests] Readjust the concurrency limit. (#23002)<commit_after>import csv
import os
from collections import namedtuple
from typing import Tuple, Optional, Dict

from ray_release.config import Test, RELEASE_PACKAGE_DIR, load_test_cluster_compute
from ray_release.logger import logger

# Keep 10% for the buffer.
limit = int(15784 * 0.9)


CONCURRENY_GROUPS = {
    "small": 16,
    "medium": 4,
    "large": 2,
    "small-gpu": 4,
    "large-gpu": 2,
}


Condition = namedtuple(
    "Condition", ["min_gpu", "max_gpu", "min_cpu", "max_cpu", "group"]
{'fraction_non_alphanumeric': 0.1222879684418146, 'fraction_numerical': 0.026627218934911243, 'mean_word_length': 4.670391061452514, 'pattern_counts': {'":': 10, '<': 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': '3944561', 'n_tokens_mistral': 371, 'n_tokens_neox': 343, 'n_words': 99}