<commit_before>#!/usr/bin/env python

import os, random, signal
import boto


#
# Documented at https://hzproject.com/trac/wiki/VoltDBOnEC2
#

class HostPool(object):
    """Manages the set of available hosts"""
    def __init__(self):
        object.__init__(self)
        return

    def cleanup(self):
        return

    def getRemotePathString(self):
        return ""

    def hostStringFromHostCount(self, count):
        return ""
        
    def clientStringFromClientCount(self, count):
        return ""

class LocalPool(HostPool):
    """Manages the local VoltDB.com cluster"""
    def __init__(self):
        HostPool.__init__(self)
        # self.hostList =  ['volt3a', 'volt3b', 'volt3c', 'volt3d', 'volt3e', 'volt3f']
        self.hostList =  ['volt3a', 'volt3b', 'volt3c', 'volt3d', 'volt3e']
        self.clientList =  ['volt4a', 'volt4b', 'volt4c']

    def cleanup(self):
        print "Terminating local cluster."
        return

    def getRemotePathString(self):
        return "REMOTEPATH=voltbin/ "

    def hostStringFromHostCount(self, count):
        retval = "HOSTCOUNT=%d " % count
        for i in range(count):
            retval += "HOST=%s " % self.hostList[i]
        return retval
        
    def clientStringFromClientCount(self, count):
        retval = "CLIENTCOUNT=%d " % count
        for i in range(count):
            retval += "CLIENTHOST=%s " % self.clientList[i]
        return retval


class EC2Pool(HostPool):
    """Manages hosts allocated on EC2"""
    def __init__(self):<commit_msg>We've had volt3f back for a while now.<commit_after>#!/usr/bin/env python

import os, random, signal
import boto


#
# Documented at https://hzproject.com/trac/wiki/VoltDBOnEC2
#

class HostPool(object):
    """Manages the set of available hosts"""
    def __init__(self):
        object.__init__(self)
        return

    def cleanup(self):
        return

    def getRemotePathString(self):
        return ""

    def hostStringFromHostCount(self, count):
        return ""
        
    def clientStringFromClientCount(self, count):
        return ""

class LocalPool(HostPool):
    """Manages the local VoltDB.com cluster"""
    def __init__(self):
        HostPool.__init__(self)
        self.hostList =  ['volt3a', 'volt3b', 'volt3c', 'volt3d', 'volt3e', 'volt3f']
        self.clientList =  ['volt4a', 'volt4b', 'volt4c']

    def cleanup(self):
        print "Terminating local cluster."
        return

    def getRemotePathString(self):
        return "REMOTEPATH=voltbin/ "

    def hostStringFromHostCount(self, count):
        retval = "HOSTCOUNT=%d " % count
        for i in range(count):
            retval += "HOST=%s " % self.hostList[i]
        return retval
        
    def clientStringFromClientCount(self, count):
        retval = "CLIENTCOUNT=%d " % count
        for i in range(count):
            retval += "CLIENTHOST=%s " % self.clientList[i]
        return retval


class EC2Pool(HostPool):
    """Manages hosts allocated on EC2"""
    def __init__(self):
{'fraction_non_alphanumeric': 0.12288837363365353, 'fraction_numerical': 0.009937065253395164, 'mean_word_length': 2.6254501800720287, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '6926633', 'n_tokens_mistral': 946, 'n_tokens_neox': 932, 'n_words': 228}