<commit_before>#!/usr/bin/env python
# -*- encoding: utf-8 -*-
"""
BOSH OpenStack Ironic CPI
"""
# Python 2 and 3 compatibility
from __future__ import unicode_literals, print_function

from ironic_cpi.action import CPIAction
from ironic_cpi.action import CPIActionError



class Dummy_Call(CPIAction):
    pass



class Dummy_Call2(CPIAction):
    def run(self, args):
        return "dummy2"



class Dummy_Call3(CPIAction):
    def run(self, args):
        msg = "Dummy Error"
        long_msg = "Exception dummy"
        raise CPIActionError(msg, long_msg)


# EOF<commit_msg>added new class attribute and update config example<commit_after>#!/usr/bin/env python
# -*- encoding: utf-8 -*-
"""
BOSH OpenStack Ironic CPI
"""
# Python 2 and 3 compatibility
from __future__ import unicode_literals, print_function

from ironic_cpi.action import CPIAction
from ironic_cpi.action import CPIActionError



class Dummy_Call(CPIAction):
    action = 'dummy_call'
    pass



class Dummy_Call2(CPIAction):
    action = 'dummy_call2'

    def run(self, config):
        print("----------------")
        print(config)
        print("----------------")
        print(self.args)
        print("----------------")
        return "dummy2"



class Dummy_Call3(CPIAction):
    def run(self, config):
        msg = "Dummy Error"
        long_msg = "Exception dummy"
        raise CPIActionError(msg, long_msg)


# EOF
{'fraction_non_alphanumeric': 0.13043478260869565, 'fraction_numerical': 0.009265858873841768, 'mean_word_length': 2.8256130790190737, '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': '5708525', 'n_tokens_mistral': 463, 'n_tokens_neox': 438, 'n_words': 117}