<commit_before>package org.commcare.dalvik.activities.utils;

import android.app.Activity;
import android.content.ActivityNotFoundException;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
import android.view.MenuItem;
import android.view.View;
import android.widget.ImageView;
import android.widget.Toast;

import org.commcare.dalvik.R;
import org.commcare.dalvik.activities.EntitySelectActivity;
import org.commcare.suite.model.Callout;
import org.commcare.suite.model.CalloutData;
import org.javarosa.core.reference.InvalidReferenceException;
import org.javarosa.core.reference.ReferenceManager;

import java.io.IOException;
import java.util.Map;

public class EntitySelectCalloutSetup {
    /**
     * Updates the ImageView layout that is passed in, based on the
     * new id and source
     */
    public static void setupImageLayout(Context context, MenuItem menuItem, final String imagePath) {
        Drawable drawable = getCalloutDrawable(context, imagePath);<commit_msg>fix import<commit_after>package org.commcare.dalvik.activities.utils;

import android.app.Activity;
import android.content.ActivityNotFoundException;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
import android.view.MenuItem;
import android.view.View;
import android.widget.ImageView;
import android.widget.Toast;

import org.commcare.activities.EntitySelectActivity;
import org.commcare.dalvik.R;
import org.commcare.suite.model.Callout;
import org.commcare.suite.model.CalloutData;
import org.javarosa.core.reference.InvalidReferenceException;
import org.javarosa.core.reference.ReferenceManager;

import java.io.IOException;
import java.util.Map;

public class EntitySelectCalloutSetup {
    /**
     * Updates the ImageView layout that is passed in, based on the
     * new id and source
     */
    public static void setupImageLayout(Context context, MenuItem menuItem, final String imagePath) {
        Drawable drawable = getCalloutDrawable(context, imagePath);
{'fraction_non_alphanumeric': 0.08622183708838821, 'fraction_numerical': 0.0, 'mean_word_length': 5.616045845272207, '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': '1892672', 'n_tokens_mistral': 635, 'n_tokens_neox': 634, 'n_words': 148}