<commit_before>
package novoda.lib.sqliteprovider.util;

import android.content.UriMatcher;
import android.net.Uri;
import android.util.Log;

import java.nio.MappedByteBuffer;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class UriUtils {
    
    private static final String TAG = UriUtils.class.getSimpleName();

	private Uri wrapped = null;
    
    private boolean isItem = false;
    
    private static Map<String, String> mappedIds = new HashMap<String, String>();
    
    public static UriUtils from(Uri uri) {
        UriUtils utils = new UriUtils();
        utils.wrapped = uri;
        
        final List<String> segs = uri.getPathSegments();
        String parent = "";
        
        for (int i=0;i<segs.size();i++){
        	String currentSeg = segs.get(i);
        	
        	if(isNumeric(currentSeg)){
        		System.out.println("Segment:" + currentSeg);
        		final int children = Integer.parseInt(currentSeg);
        		for(int l=0; l<children; l++){
        			mappedIds.put(parent, currentSeg);
        		}
        	}else{
        		parent = currentSeg;
        	}
        }
        
        return utils;
    }<commit_msg>Cleaned up some formatting.<commit_after>
package novoda.lib.sqliteprovider.util;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import android.net.Uri;

public class UriUtils {
    
    private static final String TAG = UriUtils.class.getSimpleName();

	private Uri wrapped = null;
    
    private boolean isItem = false;
    
    private static Map<String, String> mappedIds = new HashMap<String, String>();
    
    public static UriUtils from(Uri uri) {
        UriUtils utils = new UriUtils();
        utils.wrapped = uri;
        
        final List<String> segs = uri.getPathSegments();
        String parent = "";
        
        for (int i=0;i<segs.size();i++){
        	String currentSeg = segs.get(i);
        	if(isNumeric(currentSeg)){
        		final int children = Integer.parseInt(currentSeg);
        		for(int l=0; l<children; l++){
        			mappedIds.put(parent, currentSeg);
        		}
        	}else{
        		parent = currentSeg;
        	}
        }
        return utils;
    }
{'fraction_non_alphanumeric': 0.10865644724977457, 'fraction_numerical': 0.0018034265103697023, 'mean_word_length': 2.2394160583941605, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 9, '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': '2973138', 'n_tokens_mistral': 689, 'n_tokens_neox': 680, 'n_words': 161}