<commit_before>package org.cyanogenmod.launcher.home.api.cards;

import android.content.ContentResolver;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.net.Uri;
import android.text.TextUtils;
import android.util.Log;
import org.cyanogenmod.launcher.home.api.provider.CmHomeContentProvider;
import org.cyanogenmod.launcher.home.api.provider.CmHomeContract;

import java.lang.ref.WeakReference;
import java.util.ArrayList;
import java.util.List;

public class DataCardImage extends PublishableCard {
    private final static String   TAG = "DataCardImage";
    private final static CmHomeContract.ICmHomeContract sContract
                                       = new CmHomeContract.DataCardImage();
    private long                  mDataCardId;
    private DataCard              mLinkedDataCard;
    private Uri                   mImageUri;
    private String                mInternalId;
    private String                mImageLabel;
    private WeakReference<Bitmap> mImageBitmap;
    private int                   mImageResourceId = 0;

    public DataCardImage(DataCard linkedDataCard) {
        super(sContract);

        mLinkedDataCard = linkedDataCard;
    }

    private DataCardImage(long dataCardId, Uri imageUri) {
        super(sContract);

        mDataCardId = dataCardId;
        mImageUri = imageUri;
    }

    public void setInternalId(String internalId) {<commit_msg>Add constructor to DataCardImage without DataCard.<commit_after>package org.cyanogenmod.launcher.home.api.cards;

import android.content.ContentResolver;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.net.Uri;
import android.text.TextUtils;
import android.util.Log;
import org.cyanogenmod.launcher.home.api.provider.CmHomeContentProvider;
import org.cyanogenmod.launcher.home.api.provider.CmHomeContract;

import java.lang.ref.WeakReference;
import java.util.ArrayList;
import java.util.List;

public class DataCardImage extends PublishableCard {
    private final static String   TAG = "DataCardImage";
    private final static CmHomeContract.ICmHomeContract sContract
                                       = new CmHomeContract.DataCardImage();
    private long                  mDataCardId;
    private DataCard              mLinkedDataCard;
    private Uri                   mImageUri;
    private String                mInternalId;
    private String                mImageLabel;
    private WeakReference<Bitmap> mImageBitmap;
    private int                   mImageResourceId = 0;

    public DataCardImage(DataCard linkedDataCard) {
        super(sContract);

        mLinkedDataCard = linkedDataCard;
    }

    public DataCardImage(Uri imageUri) {
        super(sContract);

        mImageUri = imageUri;
    }

    private DataCardImage(long dataCardId, Uri imageUri) {
        super(sContract);

        mDataCardId = dataCardId;
        mImageUri = imageUri;
    }

    public void setInternalId(String internalId) {
{'fraction_non_alphanumeric': 0.06879299562226392, 'fraction_numerical': 0.0006253908692933083, 'mean_word_length': 2.92997542997543, '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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2769466', 'n_tokens_mistral': 882, 'n_tokens_neox': 845, 'n_words': 191}