Did I find the right examples for you? yes no

All Samples(8)  |  Call(5)  |  Derive(0)  |  Import(3)

src/e/x/exelixi-HEAD/src/service.py   exelixi(Download)
from json import dumps, loads
from signal import SIGQUIT
from util import instantiate_class, post_distrib_rest
from uuid import uuid1
import logging
            logging.info("initializing unit of work based on %s", uow_name)
 
            ff = instantiate_class(uow_name)
            self._uow = ff.instantiate_uow(uow_name, self.prefix)
 
        logging.info("initializing unit of work based on %s", uow_name)
 
        ff = instantiate_class(self.uow_name)
        self._uow = ff.instantiate_uow(self.uow_name, self.prefix)
 
    def __init__ (self, uow_name, prefix):
        self.uow_name = uow_name
        self.uow_factory = instantiate_class(uow_name)
 
        self.prefix = prefix

src/e/x/exelixi-HEAD/src/ga.py   exelixi(Download)
from service import UnitOfWork
from string import ascii_lowercase
from util import instantiate_class, post_distrib_rest
import logging
import sys
        uow_name = sys.argv[1]
 
    uow_factory = instantiate_class(uow_name)
 
    # initialize a Population of unique Individuals at generation 0

src/e/x/exelixi-HEAD/src/uow.py   exelixi(Download)
from ga import Individual, Population
from random import randint
from util import instantiate_class
import logging
 
    # a simple test
    uow_name = "uow.UnitOfWorkFactory"
    uow = instantiate_class(uow_name)
 
    print uow