<commit_before># Extracts a pair of system call names given a unique integer that
# identifes the pair

import sys

def import_sys_call_list():
    global num_of_sys_calls
    global sys_call_dict

    num_of_sys_calls = 0
    sys_call_dict = dict()

    with open("../data/syscalls-list", 'r') as f:
        for line in f:
            sys_call_dict[num_of_sys_calls] = line[:-1]
            num_of_sys_calls += 1

def name(index):
    return sys_call_dict[index]

if __name__ == "__main__":
    sys_call_dict = dict()
    num_of_sys_calls = 0
    import_sys_call_list()

    for line in sys.stdin:
        index = int(line[:-1])
        s1 = index / num_of_sys_calls
        s2 = index % num_of_sys_calls
        print "%d = (%d, %d) = (%s, %s)" % (index, s1, s2, name(s1), name(s2))<commit_msg>Added an off-by-one offset to arrange for different counting bases<commit_after># Extracts a pair of system call names given a unique integer that
# identifes the pair

import sys

def import_sys_call_list():
    global num_of_sys_calls
    global sys_call_dict

    num_of_sys_calls = 0
    sys_call_dict = dict()

    with open("../data/syscalls-list", 'r') as f:
        for line in f:
            sys_call_dict[num_of_sys_calls] = line[:-1]
            num_of_sys_calls += 1

def name(index):
    return sys_call_dict[index]

if __name__ == "__main__":
    sys_call_dict = dict()
    num_of_sys_calls = 0
    import_sys_call_list()

    for line in sys.stdin:
        index = int(line[:-1]) - 1
        s1 = index / num_of_sys_calls
        s2 = index % num_of_sys_calls
        print "%d = (%d, %d) = (%s, %s)" % (index, s1, s2, name(s1), name(s2))
{'fraction_non_alphanumeric': 0.11097634930260764, 'fraction_numerical': 0.013947847180109158, 'mean_word_length': 2.7757437070938216, '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': '6475422', 'n_tokens_mistral': 613, 'n_tokens_neox': 611, 'n_words': 161}