<commit_before>package com.wizzardo.tools.io;

import java.io.IOException;
import java.io.OutputStream;

/**
 * @author: moxa
 * Date: 11/16/12
 */
class BytesTools {

    public static byte[] toBytes(long l) {
        return toBytes(l, 8);
    }

    public static void toBytes(long l, OutputStream out) throws IOException {
        toBytes(l, out, 8);
    }

    public static long toLong(byte[] b) {
        return toLong(b, 0);
    }

    public static long toLong(byte[] b, int offset) {
        return toNumber(b, offset, 8);
    }

    public static byte[] toBytes(int i) {
        return toBytes(i, 4);
    }

    public static void toBytes(int i, OutputStream out) throws IOException {
        toBytes(i, out, 4);
    }

    public static int toInt(byte[] b) {
        return toInt(b, 0);
    }

    public static int toInt(byte[] b, int offset) {<commit_msg>make BytesTools public<commit_after>package com.wizzardo.tools.io;

import java.io.IOException;
import java.io.OutputStream;

/**
 * @author: moxa
 * Date: 11/16/12
 */
public class BytesTools {

    public static byte[] toBytes(long l) {
        return toBytes(l, 8);
    }

    public static void toBytes(long l, OutputStream out) throws IOException {
        toBytes(l, out, 8);
    }

    public static long toLong(byte[] b) {
        return toLong(b, 0);
    }

    public static long toLong(byte[] b, int offset) {
        return toNumber(b, offset, 8);
    }

    public static byte[] toBytes(int i) {
        return toBytes(i, 4);
    }

    public static void toBytes(int i, OutputStream out) throws IOException {
        toBytes(i, out, 4);
    }

    public static int toInt(byte[] b) {
        return toInt(b, 0);
    }

    public static int toInt(byte[] b, int offset) {
{'fraction_non_alphanumeric': 0.1187214611872146, 'fraction_numerical': 0.014840182648401826, 'mean_word_length': 2.548582995951417, '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': '964703', 'n_tokens_mistral': 602, 'n_tokens_neox': 563, 'n_words': 175}