<commit_before>package edu.upenn.seas.pennapps.dumbledore.pollio;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
import android.graphics.Bitmap;
import android.os.Bundle;
import android.provider.MediaStore;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.GridView;
import android.widget.ImageView;

import java.io.File;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;

/**
 * Created by joe on 9/7/13.
 */
public class PicturePoll extends Activity {
    private static final int CAMERA_REQUEST = 1888;
    String JPEG_FILE_PREFIX = "po";
    String JPEG_FILE_SUFFIX = ".jpg";
    Bitmap mImageBitmap;


    List<ImageView> viewList;
	private ImageView mImageView;



    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.picture_poll);

        GridView gridview = (GridView) findViewById(R.id.pictureOptionGrid);
        gridview.setAdapter(new ImageAdapter(this));

    }
    public static boolean isIntentAvailable(Context context, String action) {
        final PackageManager packageManager = context.getPackageManager();
        final Intent intent = new Intent(action);
        List<ResolveInfo> list =
                packageManager.queryIntentActivities(intent, PackageManager.MATCH_DEFAULT_ONLY);
        return list.size() > 0;
    }
    public void dispatchTakePictureIntent(int actionCode)
    {
        Intent takePictureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
        startActivityForResult(takePictureIntent, actionCode);
    }




    private void handleSmallCameraPhoto(Intent intent)
    {
        Bundle extras = intent.getExtras();
        mImageBitmap = (Bitmap)extras.get("data");
        mImageView.setImageBitmap(mImageBitmap);
    }
    public void dispatchChoosePictureIntent()
    {

    }
}<commit_msg>picture poll save<commit_after>package edu.upenn.seas.pennapps.dumbledore.pollio;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
import android.graphics.Bitmap;
import android.os.Bundle;
import android.provider.MediaStore;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.GridView;
import android.widget.ImageView;

import java.io.File;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;

/**
 * Created by joe on 9/7/13.
 */
public class PicturePoll extends Activity {
    private static final int CAMERA_REQUEST = 1888;
    String JPEG_FILE_PREFIX = "po";
    String JPEG_FILE_SUFFIX = ".jpg";
    Bitmap mImageBitmap;


    List<ImageView> viewList;
	private ImageView mImageView;



    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.picture_poll);

        GridView gridview = (GridView) findViewById(R.id.pictureOptionGrid);
        gridview.setAdapter(new ImageAdapter());

    }
    public static boolean isIntentAvailable(Context context, String action) {
        final PackageManager packageManager = context.getPackageManager();
        final Intent intent = new Intent(action);
        List<ResolveInfo> list =
                packageManager.queryIntentActivities(intent, PackageManager.MATCH_DEFAULT_ONLY);
        return list.size() > 0;
    }
    public void dispatchTakePictureIntent(int actionCode)
    {
        Intent takePictureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
        startActivityForResult(takePictureIntent, actionCode);
    }




    private void handleSmallCameraPhoto(Intent intent)
    {
        Bundle extras = intent.getExtras();
        mImageBitmap = (Bitmap)extras.get("data");
        mImageView.setImageBitmap(mImageBitmap);
    }
    public void dispatchChoosePictureIntent()
    {

    }
}
{'fraction_non_alphanumeric': 0.08963855421686746, 'fraction_numerical': 0.004337349397590362, 'mean_word_length': 3.889281507656066, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '17553', 'n_tokens_mistral': 1209, 'n_tokens_neox': 1129, 'n_words': 252}