<commit_before>// JSNewFile.java

package ed.js;

import java.io.*;
import java.util.*;
import java.nio.*;
import java.nio.channels.*;

import ed.db.*;

public abstract class JSNewFile extends JSFile {

    protected JSNewFile( String filename , String contentType , long length ){
        super( filename , contentType , length );

        final int nc = numChunks();
        System.out.println( "nc: " + nc );

        for ( int i=0; i<nc; i++ ){
            JSFileChunk c = newChunk( i );
            c.set( "_id" , ObjectId.get() );
            if ( i == 0 )
                set( "next" , c );
            
            _chunks.add( c );
            if ( i > 0 )
                _chunks.get( i - 1 ).set( "next" , c );
            
        }
        
    }

    
    protected abstract JSFileChunk newChunk( int num );

    public ObjectId getChunkID( int num ){
        return (ObjectId)(_chunks.get( num ).get( "_id" ));
    }

    public JSFileChunk getChunk( int num ){
        return _chunks.get( num );
    }<commit_msg>cleaning<commit_after>// JSNewFile.java

package ed.js;

import java.io.*;
import java.util.*;
import java.nio.*;
import java.nio.channels.*;

import ed.db.*;

public abstract class JSNewFile extends JSFile {

    protected JSNewFile( String filename , String contentType , long length ){
        super( filename , contentType , length );

        final int nc = numChunks();

        for ( int i=0; i<nc; i++ ){
            JSFileChunk c = newChunk( i );
            c.set( "_id" , ObjectId.get() );
            if ( i == 0 )
                set( "next" , c );
            
            _chunks.add( c );
            if ( i > 0 )
                _chunks.get( i - 1 ).set( "next" , c );
            
        }
        
    }

    
    protected abstract JSFileChunk newChunk( int num );

    public ObjectId getChunkID( int num ){
        return (ObjectId)(_chunks.get( num ).get( "_id" ));
    }

    public JSFileChunk getChunk( int num ){
        return _chunks.get( num );
    }
{'fraction_non_alphanumeric': 0.12885572139303483, 'fraction_numerical': 0.003980099502487562, 'mean_word_length': 1.6921017402945113, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '218464', 'n_tokens_mistral': 632, 'n_tokens_neox': 608, 'n_words': 181}