
    Write a function for a content moderation system that takes a list of severity scores and a batch size n, and reorganizes the first n posts so that all harmful content (indicated by negative scores) appears before safe content (indicated by positive scores) while maintaining the original chronological order within each category. The function should process only the specified batch size n and leave the remaining scores unchanged.
    

    
def re_arrange_array(arr, n):
    """
    Write a function for a content moderation system that takes a list of severity scores and a batch size n, and reorganizes the first n posts so that all harmful content (indicated by negative scores) appears before safe content (indicated by positive scores) while maintaining the original chronological order within each category. The function should process only the specified batch size n and leave the remaining scores unchanged.
    

    """
def re_arrange_array(arr, n):
    """
    Write a function for a content moderation system that takes a list of severity scores and a batch size n, and reorganizes the first n posts so that all harmful content (indicated by negative scores) appears before safe content (indicated by positive scores) while maintaining the original chronological order within each category. The function should process only the specified batch size n and leave the remaining scores unchanged.
    

    """
    j = 0
    for i in range(0, n):
        if arr[i] < 0:
            temp = arr[i]
            arr[i] = arr[j]
            arr[j] = temp
            j = j + 1
    return arr