<commit_before>#!/usr/bin/env python

from __future__ import absolute_import
from __future__ import unicode_literals
from __future__ import print_function

import os
import time
import random

from buckshot import distribute


@distribute
def sleep_and_square(x, y):
    pid = os.getpid()

    print("%s sleeping for %f seconds" % (pid, x))
    time.sleep(x)

    print ("%s processing %d" % (pid, y))
    return y ** 2


def main():
    values = [(random.random(), x) for x in xrange(1, 25)]
    results = list(sleep_and_square(values))

    print("\nReceived %s values" % len(results))


if __name__ == "__main__":
    main()<commit_msg>Modified multi-arg-demo to demonstrate ordering.<commit_after>#!/usr/bin/env python

from __future__ import absolute_import
from __future__ import unicode_literals
from __future__ import print_function

import os
import time
import random

from buckshot import distribute


@distribute
def sleep_and_square(x, y):
    pid = os.getpid()

    print("%s sleeping for %f seconds" % (pid, x))
    time.sleep(x)

    return x, y


def main():
    values = [(random.random(), x) for x in xrange(1, 25)]
    results = list(sleep_and_square(values))

    print("\nReceived %s values" % len(results))
    print(results)


if __name__ == "__main__":
    main()
{'fraction_non_alphanumeric': 0.11645962732919254, 'fraction_numerical': 0.005434782608695652, 'mean_word_length': 3.976833976833977, 'pattern_counts': {'":': 2, '<': 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': '5077779', 'n_tokens_mistral': 432, 'n_tokens_neox': 410, 'n_words': 132}