Did I find the right examples for you? yes no

All Samples(10)  |  Call(6)  |  Derive(0)  |  Import(4)

src/c/o/cogent-1.5.3/cogent/util/transform.py   cogent(Download)
from string import maketrans
from cogent.maths.stats.util import Freqs
from cogent.util.misc import identity, select
 
__author__ = "Sandra Smit"
    def result(items):
        return select(order, items)
    return result
 
def reorder_inplace(order, attr=None):
        def result(obj):
            curr = getattr(obj, attr)
            curr[:] = select(order, curr)
            return obj
    else:
        def result(obj):
            obj[:] = select(order, obj)

src/p/y/pycogent-HEAD/cogent/util/transform.py   pycogent(Download)
from string import maketrans
from cogent.maths.stats.util import Freqs
from cogent.util.misc import identity, select
 
__author__ = "Sandra Smit"
    def result(items):
        return select(order, items)
    return result
 
def reorder_inplace(order, attr=None):
        def result(obj):
            curr = getattr(obj, attr)
            curr[:] = select(order, curr)
            return obj
    else:
        def result(obj):
            obj[:] = select(order, obj)

src/c/o/cogent-1.5.3/tests/test_util/test_misc.py   cogent(Download)
from cogent.app.util import get_tmp_filename
from cogent.util.unit_test import TestCase, main
from cogent.util.misc import (iterable, max_index, min_index,
    flatten, is_iterable, is_char, is_char_or_noniterable,
    is_str_or_noniterable, not_list_tuple, list_flatten,

src/p/y/pycogent-HEAD/tests/test_util/test_misc.py   pycogent(Download)
from cogent.app.util import get_tmp_filename
from cogent.util.unit_test import TestCase, main
from cogent.util.misc import (iterable, max_index, min_index,
    flatten, is_iterable, is_char, is_char_or_noniterable,
    is_str_or_noniterable, not_list_tuple, list_flatten,