<commit_before># coding: utf-8

## 这个文件主要对比docker-hm与docker-vm-pm的实验场景，在size,generation,初始容器数量与尺寸,完全相同；
## 且docker-vm-hm中vm:hm=1:1的情况下进行测试判断，
## 测试1： 仅以power_cost为HSI的情景下
## 测试2： 以power_cost和 vm balance index为HSI的情景下
## 测试3： 考虑到migration_time的HSI比较
import time
import random
import math
# import json
import copy
import sys
from main import init_Docker as c_init_Docker
from main import init_VM as c_init_VM
from main import migrate_Rate as c_migrate_Rate
from main import check_effective as c_check_effective
from main import range2rect as c_range2rect
from main import make_population as c_make_population
from main import initialize_population as c_initialize_population
from main import mbbode_migration as c_mbbode_migration
from main import mbbode_mutation as c_mbbode_mutation
from main import mbbode_cost as c_mbbode_cost<commit_msg>review main.py tmp.py docker_mbbo.py,删除tmp.py docker_mbbo.py更名main.py为doc_mbbo.py; 下一步1. 判断doc_mbbo.py逻辑是否正确；2. 利用test5测试集进行初步聚合；3. 对doc_mbbo.py引入在vm_mbbo.py中使用的仅对running vms/hms进行代价计算；4. review Arch_Contrast_mbbo.py模块进行mbbo在不同聚合粒度下的模拟测试<commit_after># coding: utf-8
'''
@Date: 2017-12-2
## 这个文件主要对比docker-hm与docker-vm-pm的实验场景，在size,generation,初始容器数量与尺寸,完全相同；
## 且docker-vm-hm中vm:hm=1:1的情况下进行测试判断，
## 测试1： 仅以power_cost为HSI的情景下
## 测试2： 以power_cost和 vm balance index为HSI的情景下
## 测试3： 考虑到migration_time的HSI比较
'''

import time
import random
import math
# import json
import copy
import sys
from main import init_Docker as c_init_Docker
from main import init_VM as c_init_VM
from main import migrate_Rate as c_migrate_Rate
from main import check_effective as c_check_effective
from main import range2rect as c_range2rect
from main import make_population as c_make_population
from main import initialize_population as c_initialize_population
from main import mbbode_migration as c_mbbode_migration
from main import mbbode_mutation as c_mbbode_mutation
from main import mbbode_cost as c_mbbode_cost
{'fraction_non_alphanumeric': 0.05126877265665458, 'fraction_numerical': 0.014500258933195235, 'mean_word_length': 7.4, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '1850673', 'n_tokens_mistral': 835, 'n_tokens_neox': 867, 'n_words': 184}