<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-

def clock(*axes):
    """ A quick generator for working with iterations over N-dimensional
    arrays. Example usage:
    
    >>> from clock import clock
    >>> for i in clock(2, 3):
    ...     print i
    (0, 0)
    (0, 1)
    (0, 2)
    (1, 0)
    (1, 1)
    (1, 2)
    
    So that whilst iterating over NumPy arrays, we might try
    
    >>> from clock import clock
    >>> from numpy.random import randn
    >>> X = randn(2, 3)
    >>> for i in clock(*(X.shape)):
    ...     print i
    ... 
    (0, 0)
    (0, 1)
    (0, 2)
    (1, 0)
    (1, 1)
    (1, 2)
    """
    iteration = 0
    dimension = len(axes)
    maxiterations = __prod_(axes)
    
    if (dimension < 1):
        raise ValueError('Must submit valid number of axes')
    
    while (iteration < maxiterations):
        # Set up the inner loop
        coordinate = []
        ind = iteration

        # Build the coordinate<commit_msg>Updated example<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-

def clock(*axes):
    """ A quick generator for working with iterations over N-dimensional
    arrays. Example usage:
    
    >>> from clock import clock
    >>> for i in clock(2, 3):
    ...     print i
    (0, 0)
    (0, 1)
    (0, 2)
    (1, 0)
    (1, 1)
    (1, 2)
    
    So that whilst iterating over NumPy arrays, we might try
    
    >>> from numpy.random import randn
    >>> from clock import clock
    >>> X = randn(2, 3)
    >>> for i in clock(*(X.shape)):
    ...     print X[i]
    ... 
    0.557724928504
    0.65652304739
    0.538328247903
    -0.722400267643
    1.3994330752
    0.142266875233
    """
    iteration = 0
    dimension = len(axes)
    maxiterations = __prod_(axes)
    
    if (dimension < 1):
        raise ValueError('Must submit valid number of axes')
    
    while (iteration < maxiterations):
        # Set up the inner loop
        coordinate = []
        ind = iteration

        # Build the coordinate
{'fraction_non_alphanumeric': 0.13069604406609914, 'fraction_numerical': 0.06259389083625438, 'mean_word_length': 1.8340425531914895, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 39, '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': '27937', 'n_tokens_mistral': 741, 'n_tokens_neox': 659, 'n_words': 214}