<commit_before>package org.openpnp.capture;

import org.openpnp.capture.library.OpenpnpCaptureLibrary;

import com.sun.jna.Native;
import com.sun.jna.Pointer;

public class OpenPnpCapture {
    // Library prefixes
    // darwin
    // win32-x86
    // win32-x86-64
    // linux-x86
    // linux-x86-64
    public static void main(String[] args) {
        OpenPnpCapture capture = new OpenPnpCapture();
        Pointer context = OpenpnpCaptureLibrary.INSTANCE.Cap_createContext();
        int deviceCount = OpenpnpCaptureLibrary.INSTANCE.Cap_getDeviceCount(context);
        for (int i = 0; i < deviceCount; i++) {
            String deviceName = OpenpnpCaptureLibrary.INSTANCE.Cap_getDeviceName(context, i).getString(0);
            System.out.println(String.format("%d %s", i, deviceName));
        }
    }
}<commit_msg>List formats in test code.<commit_after>package org.openpnp.capture;

import org.openpnp.capture.library.CapFormatInfo;
import org.openpnp.capture.library.OpenpnpCaptureLibrary;

import com.sun.jna.Pointer;

public class OpenPnpCapture {
    // Library prefixes
    // darwin
    // win32-x86
    // win32-x86-64
    // linux-x86
    // linux-x86-64
    public static void main(String[] args) {
        OpenPnpCapture capture = new OpenPnpCapture();
        Pointer context = OpenpnpCaptureLibrary.INSTANCE.Cap_createContext();
        int deviceCount = OpenpnpCaptureLibrary.INSTANCE.Cap_getDeviceCount(context);
        for (int deviceIndex = 0; deviceIndex < deviceCount; deviceIndex++) {
            String deviceName = OpenpnpCaptureLibrary.INSTANCE.Cap_getDeviceName(context, deviceIndex).getString(0);
            System.out.println(String.format("%d %s", deviceIndex, deviceName));
            int formatCount = OpenpnpCaptureLibrary.INSTANCE.Cap_getNumFormats(context, deviceIndex);
            for (int formatIndex = 0; formatIndex < formatCount; formatIndex++) {
                CapFormatInfo formatInfo = new CapFormatInfo();
                OpenpnpCaptureLibrary.INSTANCE.Cap_getFormatInfo(context, deviceIndex, formatIndex, formatInfo);
                System.out.println(String.format("  %dx%d @ %d fps", formatInfo.width, formatInfo.height, formatInfo.fps));
            }
        }
    }
}
{'fraction_non_alphanumeric': 0.10821733273462057, 'fraction_numerical': 0.01661427929950606, 'mean_word_length': 3.103130755064457, 'pattern_counts': {'":': 0, '<': 6, '<?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': '5709968', 'n_tokens_mistral': 675, 'n_tokens_neox': 655, 'n_words': 126}