<commit_before>def argsort(x, /, *, axis=-1, descending=False, stable=True):
    from .. import argsort
    from .. import flip
    # Note: this keyword argument is different, and the default is different.
    kind = 'stable' if stable else 'quicksort'
    res = argsort(x, axis=axis, kind=kind)
    if descending:
        res = flip(res, axis=axis)

def sort(x, /, *, axis=-1, descending=False, stable=True):
    from .. import sort
    from .. import flip
    # Note: this keyword argument is different, and the default is different.
    kind = 'stable' if stable else 'quicksort'
    res = sort(x, axis=axis, kind=kind)
    if descending:
        res = flip(res, axis=axis)
<commit_msg>Add missing returns to the array API sorting functions<commit_after>def argsort(x, /, *, axis=-1, descending=False, stable=True):
    from .. import argsort
    from .. import flip
    # Note: this keyword argument is different, and the default is different.
    kind = 'stable' if stable else 'quicksort'
    res = argsort(x, axis=axis, kind=kind)
    if descending:
        res = flip(res, axis=axis)
    return res

def sort(x, /, *, axis=-1, descending=False, stable=True):
    from .. import sort
    from .. import flip
    # Note: this keyword argument is different, and the default is different.
    kind = 'stable' if stable else 'quicksort'
    res = sort(x, axis=axis, kind=kind)
    if descending:
        res = flip(res, axis=axis)
    return res

{'fraction_non_alphanumeric': 0.11456176673567978, 'fraction_numerical': 0.0027605244996549345, 'mean_word_length': 3.0389972144846795, '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': '396140', 'n_tokens_mistral': 442, 'n_tokens_neox': 432, 'n_words': 160}