<commit_before># -*- encoding: utf-8 -*-
from consort.makers.ConsortObject import ConsortObject
from abjad.tools import mathtools


class SegmentSession(ConsortObject):
    r'''A segment-maker session.
    '''

    ### CLASS VARIABLES ###

    __slots__ = (
        'meters',
        'score',
        'scores',
        'segment_duration',
        'segment_maker',
        'timespan_inventory_mapping',
        'unrewritten_score',
        )

    ### INITIALIZER ###

    def __init__(
        self,
        segment_maker=None,
        ):
        self.meters = None
        self.score = None
        self.scores = []
        self.segment_duration = None
        self.segment_maker = segment_maker
        self.timespan_inventory_mapping = None
        self.unrewritten_score = None

    ### PRIVATE PROPERTIES ###

    @property
    def _storage_format_specifier(self):
        from abjad.tools import systemtools
        return systemtools.StorageFormatSpecification(
            self,
            keyword_argument_names=None,
            )

    ### PUBLIC PROPERTIES ###

    @property
    def measure_offsets(self):
        measure_durations = [x.duration for x in self.time_signatures]
        measure_offsets = mathtools.cumulative_sums(measure_durations)
        return measure_offsets

    @property
    def time_signatures(self):
        return (
            meter.implied_time_signature
            for meter in self.meters
            )
<commit_msg>Adjusted name in SegmentSession.<commit_after># -*- encoding: utf-8 -*-
from consort.makers.ConsortObject import ConsortObject
from abjad.tools import mathtools


class SegmentSession(ConsortObject):
    r'''A segment-maker session.
    '''

    ### CLASS VARIABLES ###

    __slots__ = (
        'meters',
        'score',
        'scores',
        'segment_duration',
        'segment_maker',
        'timespan_inventory_mapping',
        'unrewritten_score',
        )

    ### INITIALIZER ###

    def __init__(
        self,
        segment_maker=None,
        ):
        self.meters = None
        self.score = None
        self.scores = []
        self.segment_duration = None
        self.segment_maker = segment_maker
        self.timespan_inventory_mapping = None
        self.unrewritten_score = None

    ### PRIVATE PROPERTIES ###

    @property
    def _storage_format_specification(self):
        from abjad.tools import systemtools
        return systemtools.StorageFormatSpecification(
            self,
            keyword_argument_names=None,
            )

    ### PUBLIC PROPERTIES ###

    @property
    def measure_offsets(self):
        measure_durations = [x.duration for x in self.time_signatures]
        measure_offsets = mathtools.cumulative_sums(measure_durations)
        return measure_offsets

    @property
    def time_signatures(self):
        return (
            meter.implied_time_signature
            for meter in self.meters
            )
{'fraction_non_alphanumeric': 0.08747447243022465, 'fraction_numerical': 0.0006807351940095302, 'mean_word_length': 2.15343347639485, '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': '2193356', 'n_tokens_mistral': 862, 'n_tokens_neox': 833, 'n_words': 165}