<commit_before>package edu.flash3388.flashlib.vision.cam.jpeg;

import edu.flash3388.flashlib.vision.Image;
import edu.flash3388.flashlib.vision.camera.Camera;

public class StaticImageCamera implements Camera {

    private final Image mImage;

    public StaticImageCamera(Image image) {
        mImage = image;
    }

    @Override
    public int getHeight() {
        return mImage.getHeight();
    }

    @Override
    public int getWidth() {
        return mImage.getWidth();
    }

    @Override
    public Image capture() {
        return mImage;
    }

    @Override
    public int getFps() {
        return 30;
    }
}<commit_msg>optional camera capture<commit_after>package edu.flash3388.flashlib.vision.cam.jpeg;

import edu.flash3388.flashlib.vision.Image;
import edu.flash3388.flashlib.vision.camera.Camera;

import java.util.Optional;

public class StaticImageCamera implements Camera {

    private final Image mImage;

    public StaticImageCamera(Image image) {
        mImage = image;
    }

    @Override
    public int getHeight() {
        return mImage.getHeight();
    }

    @Override
    public int getWidth() {
        return mImage.getWidth();
    }

    @Override
    public Optional<Image> capture() {
        return Optional.of(mImage);
    }

    @Override
    public int getFps() {
        return 30;
    }
}
{'fraction_non_alphanumeric': 0.09395973154362416, 'fraction_numerical': 0.020879940343027592, 'mean_word_length': 2.6368563685636857, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '4829220', 'n_tokens_mistral': 433, 'n_tokens_neox': 397, 'n_words': 92}