Did I find the right examples for you? yes no

All Samples(3)  |  Call(1)  |  Derive(0)  |  Import(2)

        def write_output(data, out_file):
    f = open(out_file, 'w')
    pickle.dump(data, f)
    f.close()
    print 'written'
        


src/t/w/Twitter-Predictor-HEAD/populate.py   Twitter-Predictor(Download)
    def save(self):
        self._community['node_pool'] = self._node_pool
        self._community['members'] = self._community_members
        utils.write_output(self._community, self._write_path)
 

src/t/w/Twitter-Predictor-HEAD/judge_community.py   Twitter-Predictor(Download)
from populate import Population
from stats import PopulationStats
from utils import write_output, read_output
 
def main():

src/t/w/Twitter-Predictor-HEAD/get_community.py   Twitter-Predictor(Download)
from pprint import PrettyPrinter
pp = PrettyPrinter(indent=4)
from utils import write_output
from populate import Population
from __init__ import LOG_FILENAME