<commit_before>import logging

from server.auth import user_mediacloud_client

logger = logging.getLogger(__name__)


def media_search(search_str, tags_id=None):
    mc = user_mediacloud_client()
    return mc.mediaList(name_like=search_str, tags_id=tags_id)


def collection_search(search_str, public_only, tag_sets_id_list):
    user_mc = user_mediacloud_client()
    return user_mc.tagList(tag_sets_id_list, public_only=public_only, name_like=search_str)
<commit_msg>Try a bigger default for source teaching in media picker (#965)<commit_after>import logging

from server.auth import user_mediacloud_client

logger = logging.getLogger(__name__)


def media_search(search_str, tags_id=None):
    mc = user_mediacloud_client()
    return mc.mediaList(name_like=search_str, tags_id=tags_id, rows=60)


def collection_search(search_str, public_only, tag_sets_id_list):
    user_mc = user_mediacloud_client()
    return user_mc.tagList(tag_sets_id_list, public_only=public_only, name_like=search_str)

{'fraction_non_alphanumeric': 0.07907907907907907, 'fraction_numerical': 0.005005005005005005, 'mean_word_length': 7.19672131147541, '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': '2985735', 'n_tokens_mistral': 350, 'n_tokens_neox': 339, 'n_words': 63}