<commit_before>package com.galois.qrstream.lib;


import android.hardware.Camera;
import android.util.Log;

import com.galois.qrstream.image.YuvImage;

import java.util.Queue;

/**
 * Created by donp on 2/13/14.
 */
public class Preview implements Camera.PreviewCallback {
    Queue frames;
    int height;
    int width;

    public void setQueue(Queue frames) {
        this.frames = frames;
    }
    public void setHeight(int h) { this.height = h; }
    public void setWidth(int w) { this.width = w; }

    @Override
    public void onPreviewFrame(byte[] data, Camera camera) {
        Log.d("qrstream", "previewFrame data "+data.length);
        YuvImage frame = new YuvImage(data, height, width);
        frames.add(frame);
    }
}<commit_msg>master branch not ready for queue.add yet<commit_after>package com.galois.qrstream.lib;


import android.hardware.Camera;
import android.util.Log;

import com.galois.qrstream.image.YuvImage;

import java.util.Queue;

/**
 * Created by donp on 2/13/14.
 */
public class Preview implements Camera.PreviewCallback {
    Queue frames;
    int height;
    int width;

    public void setQueue(Queue frames) {
        this.frames = frames;
    }
    public void setHeight(int h) { this.height = h; }
    public void setWidth(int w) { this.width = w; }

    @Override
    public void onPreviewFrame(byte[] data, Camera camera) {
        Log.d("qrstream", "previewFrame data "+data.length);
        YuvImage frame = new YuvImage(data, height, width);
    }
}
{'fraction_non_alphanumeric': 0.11274182788525684, 'fraction_numerical': 0.0066711140760507, 'mean_word_length': 3.098360655737705, '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': '2501048', 'n_tokens_mistral': 489, 'n_tokens_neox': 467, 'n_words': 129}