<commit_before>from time import sleep
from freenect2 import Device, FrameType
import numpy as np

def main():
    device = Device()
    frames = {}
    def frame_listener(type_, frame):
        frames[type_] = frame

    device.color_frame_listener = frame_listener
    device.ir_and_depth_frame_listener = frame_listener
    with device.running():
        while len(frames) < 3:
            sleep(0.1)
<commit_msg>make dump_pcd example more explicit<commit_after>from time import sleep
from freenect2 import Device, FrameType
import numpy as np

def main():
    device = Device()
    frames = {}
    def frame_listener(type_, frame):
        frames[type_] = frame

    device.color_frame_listener = frame_listener
    device.ir_and_depth_frame_listener = frame_listener
    with device.running():
        while FrameType.Color not in frames or FrameType.Depth not in frames:
            sleep(0.1)

{'fraction_non_alphanumeric': 0.07675194660734148, 'fraction_numerical': 0.00778642936596218, 'mean_word_length': 3.3062200956937797, 'pattern_counts': {'":': 0, '<': 4, '<?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': '5274465', 'n_tokens_mistral': 260, 'n_tokens_neox': 256, 'n_words': 77}