<commit_before>package ch.blogspot.prozakcode.writeables;

import java.io.DataInput;
import java.io.DataOutput;

import java.util.Collection;

/**
 * Simple object that represents something being transported
 */
public class Parcel implements Writeable{


    private int[] dimensions;
    private String manifest;
    private Collection<Writeable> contents;

    public Parcel(int[] dims){

    }


    public void readFields(DataInput input){

    }

    public void write(DataOutput output){

    }

    @Override
    public boolean equals(Object other){
	if( other instanceof Parcel ){
	    return true;
	}
	return false;
    }

}<commit_msg>Some more work transferring computer<commit_after>package ch.blogspot.prozakcode.writeables;

import java.io.DataInput;
import java.io.DataOutput;

import java.util.Collection;

import java.util.Array;

/**
 * Simple object that represents something being transported
 */
public class Parcel implements Writeable{


    // an array indicating the dimensions od the parcel
    private int[] dimensions;

    // an collection of contents which only have to be writable to be stored.
    private Collection<Writeable> contents;

    public Parcel(int[] dims){
	dimensions = Arrays.copyOf(dims,dims.length);
	contents = new LinkedList<Writeables>();
    }


    public void add(Writable thing){
	synchronized(contents){
	    contents.add(thing);
	    contents.notifyAll();
	}
	
    }

    public void readFields(DataInput input){
	synchronised(contents){

	    contents.notifyAll();
	}
    }

    public void write(DataOutput output){
	synchronised(contents){
	    
	    contents.notifyAll();
	}

    }

    @Override
    public boolean equals(Object other){
	boolean answer = false;
	synchronised(contents){
	    if( other instanceof Parcel ){
		Parcel o = (Parcel) other;
		answer = Arrays.equals(o.dimensions,this.dimensions) && o.contents.equals(this.contents);
	    }
	    contents.notifyAll();
	}
	return answer;
    }

}
{'fraction_non_alphanumeric': 0.09751142712036567, 'fraction_numerical': 0.0, 'mean_word_length': 3.4874715261959, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, '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': '1793832', 'n_tokens_mistral': 598, 'n_tokens_neox': 558, 'n_words': 156}