<commit_before>package com.github.rtyley.android.screenshot.paparazzo.processors;

import com.madgag.gif.fmsware.AnimatedGifEncoder;
import java.awt.image.BufferedImage;
import java.io.File;
import java.util.Map;

public class AnimatedGifCreator implements ScreenshotProcessor {

    private final AnimatedGifEncoder animatedGifEncoder;
    private final File file;

    public AnimatedGifCreator(File file) {
        this.file = file;
        animatedGifEncoder = new AnimatedGifEncoder();
        animatedGifEncoder.setDelay(500);
    }

    @Override
    public void process(BufferedImage image, Map<String, String> requestData) {
        if (!animatedGifEncoder.isStarted()) {
            animatedGifEncoder.start(file.getAbsolutePath());
        }
        animatedGifEncoder.addFrame(image);
    }

    @Override
    public void finish() {
        animatedGifEncoder.finish();
    }

}<commit_msg>shorten variable name<commit_after>package com.github.rtyley.android.screenshot.paparazzo.processors;

import com.madgag.gif.fmsware.AnimatedGifEncoder;
import java.awt.image.BufferedImage;
import java.io.File;
import java.util.Map;

public class AnimatedGifCreator implements ScreenshotProcessor {

    private final AnimatedGifEncoder gifEncoder;
    private final File file;

    public AnimatedGifCreator(File file) {
        this.file = file;
        gifEncoder = new AnimatedGifEncoder();
        gifEncoder.setDelay(500);
    }

    @Override
    public void process(BufferedImage image, Map<String, String> requestData) {
        if (!gifEncoder.isStarted()) {
            gifEncoder.start(file.getAbsolutePath());
        }
        gifEncoder.addFrame(image);
    }

    @Override
    public void finish() {
        gifEncoder.finish();
    }

}
{'fraction_non_alphanumeric': 0.09225512528473805, 'fraction_numerical': 0.003416856492027335, 'mean_word_length': 3.3815461346633415, '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': '4829398', 'n_tokens_mistral': 541, 'n_tokens_neox': 527, 'n_words': 100}