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/seqsim/searchpath.py   cogent(Download)
 
from random import shuffle
from cogent.util.misc import toString, makeNonnegInt
 
__author__ = "Amanda Birmingham"
        """
 
        position = makeNonnegInt(position)
 
        if position in self._alphabets:
        """
 
        path_length = makeNonnegInt(path_length)
 
        #while length of path stack < path_length
        nmer = []
        result = None
        n = makeNonnegInt(n)
 
        #only try to get the nmer if there are at least n items on stack

src/p/y/pycogent-HEAD/cogent/seqsim/searchpath.py   pycogent(Download)
 
from random import shuffle
from cogent.util.misc import toString, makeNonnegInt
 
__author__ = "Amanda Birmingham"
        """
 
        position = makeNonnegInt(position)
 
        if position in self._alphabets:
        """
 
        path_length = makeNonnegInt(path_length)
 
        #while length of path stack < path_length
        nmer = []
        result = None
        n = makeNonnegInt(n)
 
        #only try to get the nmer if there are at least n items on stack

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,