<commit_before>import sys, os
sys.path.append(os.path.join(os.path.dirname(__file__), '..', 'pollsters'))
import ecs_billing_dao

resource = {'ecs_ip': '10.1.83.51',
            'api_port': '4443',
            'username': 'jiale-huo-admin',
            'password': '<PASSWORD>',
            'cert_path': '/opt/stack/ecs-mgmt.cer'}

dao = ecs_billing_dao.ECSBillingDAO(resource)

print dao.getSamples()<commit_msg>fixed tester.py<commit_after>import sys, os
sys.path.append(os.path.join(os.path.dirname(__file__), '..', 'pollsters'))
import ecs_billing_dao

resource = {'ecs_ip': '10.1.83.51',
            'api_port': '4443',
            'username': 'jiale-huo-admin',
            'password': '<PASSWORD>',
            'cert_path': '/opt/stack/ecs-mgmt.cer',
            'project_id': '1234567890'}

dao = ecs_billing_dao.ECSBillingDAO(resource)

print dao.getSamples()
{'fraction_non_alphanumeric': 0.18087557603686635, 'fraction_numerical': 0.03686635944700461, 'mean_word_length': 3.1980676328502415, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '1856737', 'n_tokens_mistral': 342, 'n_tokens_neox': 327, 'n_words': 46}