<commit_before>"""
    https://www.hackerrank.com/challenges/circular-array-rotation/problem
"""

def get_index(i, shift, l):
    if i == 0:
        return l - shift
    if i >= shift:
        return i - shift
    else:
        temp = i - shift
        return l + temp
<commit_msg>refactored code<commit_after>"""
    https://www.hackerrank.com/challenges/circular-array-rotation/problem
"""


def get_index(i, shift, l):
    if i == 0:
        return l - shift
    if i >= shift:
        return i - shift
    else:
        temp = i - shift
        return l + temp

{'fraction_non_alphanumeric': 0.12743362831858407, 'fraction_numerical': 0.0035398230088495575, 'mean_word_length': 1.963350785340314, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '3946934', 'n_tokens_mistral': 197, 'n_tokens_neox': 187, 'n_words': 51}