<commit_before># Scalpel sound editor (http://scalpelsound.online.fr)
# Copyright 2009 (C) <NAME> <<EMAIL>>
# Licensed under the Revised BSD License.

from event import Signal

def _cell_start(frame, density):
    """Return the first frame of the cell in which `frame` belongs."""
    return int(frame / density) * density

def _overview(data, start, end, density):
    start, end = [_cell_start(round(v), density) for v in start, end]<commit_msg>Move rounding to _cell_start().<commit_after># Scalpel sound editor (http://scalpelsound.online.fr)
# Copyright 2009 (C) <NAME> <<EMAIL>>
# Licensed under the Revised BSD License.

from event import Signal

def _cell_start(frame, density):
    """Return the first frame of the cell in which `frame` belongs."""
    return int(round(frame) / density) * density

def _overview(data, start, end, density):
    start, end = [_cell_start(v, density) for v in start, end]
{'fraction_non_alphanumeric': 0.12390350877192982, 'fraction_numerical': 0.008771929824561403, 'mean_word_length': 4.670807453416149, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '731032', 'n_tokens_mistral': 289, 'n_tokens_neox': 271, 'n_words': 106}