<commit_before>public class DequeAsArray
    extends QueueAsArray
    implements Deque
{
    public void enqueueHead(Object object)
    {
        if(count == array.length)
            throw new ContainerFullException();
        
        if(head-- == 0)
            head = array.getLength() - 1;
        
        array.put(head, object);
        ++count;
    }
    
    public Object dequeueHead()
    {
        return dequeue();
    }
    
    public Object getTail()
    {
        if(count == 0)
            throw new ContainerEmptyException();
        
        return array.get(array.getLength());
    }
    
    public void enqueueTail(Object object)
    {
        enqueue(object);
    }
    
    public Object dequeueTail()
    {
        if(count == 0)
            throw new ContainerEmptyException();
        
        Object result = array.get(getTail());
        
        
    }
}<commit_msg>update Deque as Array implementation<commit_after>public class DequeAsArray
    extends QueueAsArray
    implements Deque
{
    public DequeAsArray()
    {
        QueueAsArray(0);
    }
    
    public void enqueueHead(Object object)
    {
        if(count == array.getLength())
            throw new ContainerFullException();
        
        if(head-- == 0)
            head = array.getLength() - 1;
        
        array.put(head, object);
        ++count;
    }
    
    public Object dequeueHead()
    {
        return dequeue();
    }
    
    public Object getTail()
    {
        if(count == 0)
            throw new ContainerEmptyException();
        
        return array.get(tail);
    }
    
    public void enqueueTail(Object object)
    {
        enqueue(object);
    }
    
    public Object dequeueTail()
    {
        if(count == 0)
            throw new ContainerEmptyException();
        
        Object result = array.get(tail);
        array.put(tail, null);
       
        if(count-- == 0)
            tail = array.getLength() - 1;
        
        --count;
        return result;
    }
}
{'fraction_non_alphanumeric': 0.0989557434112382, 'fraction_numerical': 0.005469915464942815, 'mean_word_length': 1.511860174781523, 'pattern_counts': {'":': 0, '<': 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': '4019283', 'n_tokens_mistral': 588, 'n_tokens_neox': 573, 'n_words': 127}