<commit_before>''' Provides a base class for defining subcommands of the Bokeh command
line application.

'''
from abc import ABCMeta, abstractmethod

# TODO (bev) change this after bokeh.util.future is merged
from six import add_metaclass

@add_metaclass(ABCMeta)
class Subcommand(object):
    ''' Abstract base class for subcommands '''

    def __init__(self, parser):
        ''' Initialize the subcommand with its parser

        The initializer can call parser.add_argument to add subcommand flags.

        '''
        self.parser = parser

    @abstractmethod
    def invoke(self, args):
        ''' Takes over main program flow to perform the subcommand.

        Args:
            args (seq) : command line arguments for the subcommand to parse

        '''
        pass<commit_msg>switch to with_metaclass<commit_after>''' Provides a base class for defining subcommands of the Bokeh command
line application.

'''
from abc import ABCMeta, abstractmethod

from bokeh.util.future import with_metaclass

class Subcommand(with_metaclass(ABCMeta)):
    ''' Abstract base class for subcommands '''

    def __init__(self, parser):
        ''' Initialize the subcommand with its parser

        The initializer can call parser.add_argument to add subcommand flags.

        '''
        self.parser = parser

    @abstractmethod
    def invoke(self, args):
        ''' Takes over main program flow to perform the subcommand.

        Args:
            args (seq) : command line arguments for the subcommand to parse

        '''
        pass
{'fraction_non_alphanumeric': 0.07253886010362694, 'fraction_numerical': 0.0, 'mean_word_length': 2.911392405063291, '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': '6408511', 'n_tokens_mistral': 406, 'n_tokens_neox': 395, 'n_words': 160}