<commit_before>package io.futurestud.tutorials.glide.ui;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import io.futurestud.tutorials.glide.ui.activities.UsageExampleAnimate;
import io.futurestud.tutorials.glide.ui.activities.UsageExampleCacheBasics;
import io.futurestud.tutorials.glide.ui.activities.UsageExampleGifAndVideos;
import io.futurestud.tutorials.glide.ui.activities.UsageExampleGridViewAdapter;
import io.futurestud.tutorials.glide.ui.activities.UsageExampleImageResizing;
import io.futurestud.tutorials.glide.ui.activities.UsageExampleListViewAdapter;
import io.futurestud.tutorials.glide.ui.activities.UsageExamplePicassoBuilderRequestHandler;
import io.futurestud.tutorials.glide.ui.activities.UsageExamplePlaceholders;
import io.futurestud.tutorials.glide.ui.activities.UsageExampleRequestPriority;
import io.futurestud.tutorials.glide.ui.activities.UsageExampleSimpleLoading;
import io.futurestud.tutorials.glide.ui.activities.UsageExampleTargetsAndRemoteViews;
import io.futurestud.tutorials.glide.ui.activities.UsageExampleThumbnails;
import io.futurestud.tutorials.glide.ui.activities.UsageExampleTransformations;

/**
 * Helper class for providing sample content for user interfaces created by
 * Android template wizards.
 * <p/>
 * TODO: Replace all uses of this class before publishing your app.
 */
public class MenuContent {

    /**
     * An array of sample (dummy) items.
     */
    public static List<DummyItem> ITEMS = new ArrayList<DummyItem>();

    /**
     * A map of sample (dummy) items, by ID.
     */
    public static Map<String, DummyItem> ITEM_MAP = new HashMap<String, DummyItem>();

    static {
        addItem(new DummyItem("0", "Simple Image Loading", UsageExampleSimpleLoading.class));
        addItem(new DummyItem("1", "Adapter Use - ListView", UsageExampleListViewAdapter.class));
        addItem(new DummyItem("2", "Adapter Use - GridView", UsageExampleGridViewAdapter.class));
        addItem(new DummyItem("3", "Placeholder, Error & Fading", UsageExamplePlaceholders.class));
        addItem(new DummyItem("4", "Image Resizing, Scaling", UsageExampleImageResizing.class));
        addItem(new DummyItem("5", "Gif & Local Videos", UsageExampleGifAndVideos.class));
        addItem(new DummyItem("6", "Glide Cache Basics", UsageExampleCacheBasics.class));
        addItem(new DummyItem("7", "Glide Priority", UsageExampleRequestPriority.class));
        addItem(new DummyItem("8", "Thumbnails", UsageExampleThumbnails.class));
        addItem(new DummyItem("8", "Callbacks, Targets & Notifications", UsageExampleTargetsAndRemoteViews.class));
        addItem(new DummyItem("9", "Transformation", UsageExampleTransformations.class));
        addItem(new DummyItem("9", "Animation", UsageExampleAnimate.class));

        addItem(new DummyItem("10", "Influencing Image Caching", UsageExamplePicassoBuilderRequestHandler.class));
        addItem(new DummyItem("11", "Cache Indicators, Logging & Stats", UsageExamplePicassoBuilderRequestHandler.class));
        addItem(new DummyItem("12", "Picasso.Builder Basics", UsageExamplePicassoBuilderRequestHandler.class));
        addItem(new DummyItem("13", "Custom Request Handlers", UsageExamplePicassoBuilderRequestHandler.class));
    }

    private static void addItem(DummyItem item) {
        ITEMS.add(item);
        ITEM_MAP.put(item.id, item);
    }

    /**
     * A dummy item representing a piece of content.
     */
    public static class DummyItem {
        public String id;
        public String content;
        public Class goalClass;

        public DummyItem(String id, String content, Class goalClass) {
            this.id = id;<commit_msg>simplified menu constructor<commit_after>package io.futurestud.tutorials.glide.ui;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import io.futurestud.tutorials.glide.ui.activities.UsageExampleAnimate;
import io.futurestud.tutorials.glide.ui.activities.UsageExampleCacheBasics;
import io.futurestud.tutorials.glide.ui.activities.UsageExampleCustomImageSize;
import io.futurestud.tutorials.glide.ui.activities.UsageExampleGifAndVideos;
import io.futurestud.tutorials.glide.ui.activities.UsageExampleGridViewAdapter;
import io.futurestud.tutorials.glide.ui.activities.UsageExampleImageResizing;
import io.futurestud.tutorials.glide.ui.activities.UsageExampleListViewAdapter;
import io.futurestud.tutorials.glide.ui.activities.UsageExamplePicassoBuilderRequestHandler;
import io.futurestud.tutorials.glide.ui.activities.UsageExamplePlaceholders;
import io.futurestud.tutorials.glide.ui.activities.UsageExampleRequestPriority;
import io.futurestud.tutorials.glide.ui.activities.UsageExampleSimpleLoading;
import io.futurestud.tutorials.glide.ui.activities.UsageExampleTargetsAndRemoteViews;
import io.futurestud.tutorials.glide.ui.activities.UsageExampleThumbnails;
import io.futurestud.tutorials.glide.ui.activities.UsageExampleTransformations;

/**
 * Helper class for providing sample content for user interfaces created by
 * Android template wizards.
 * <p/>
 * TODO: Replace all uses of this class before publishing your app.
 */
public class MenuContent {

    /**
     * An array of sample (dummy) items.
     */
    public static List<DummyItem> ITEMS = new ArrayList<DummyItem>();

    /**
     * A map of sample (dummy) items, by ID.
     */
    public static Map<String, DummyItem> ITEM_MAP = new HashMap<String, DummyItem>();

    static {
        addItem(new DummyItem( "Simple Image Loading", UsageExampleSimpleLoading.class));
        addItem(new DummyItem( "Adapter Use - ListView", UsageExampleListViewAdapter.class));
        addItem(new DummyItem( "Adapter Use - GridView", UsageExampleGridViewAdapter.class));
        addItem(new DummyItem( "Placeholder, Error & Fading", UsageExamplePlaceholders.class));
        addItem(new DummyItem( "Image Resizing, Scaling", UsageExampleImageResizing.class));
        addItem(new DummyItem( "Gif & Local Videos", UsageExampleGifAndVideos.class));
        addItem(new DummyItem( "Glide Cache Basics", UsageExampleCacheBasics.class));
        addItem(new DummyItem( "Glide Priority", UsageExampleRequestPriority.class));
        addItem(new DummyItem( "Thumbnails", UsageExampleThumbnails.class));
        addItem(new DummyItem( "Callbacks, Targets & Notifications", UsageExampleTargetsAndRemoteViews.class));
        addItem(new DummyItem( "Transformation", UsageExampleTransformations.class));
        addItem(new DummyItem( "Animation", UsageExampleAnimate.class));
        addItem(new DummyItem( "Custom Image Size", UsageExampleCustomImageSize.class));

        addItem(new DummyItem( "Influencing Image Caching", UsageExamplePicassoBuilderRequestHandler.class));
        addItem(new DummyItem( "Cache Indicators, Logging & Stats", UsageExamplePicassoBuilderRequestHandler.class));
        addItem(new DummyItem( "Picasso.Builder Basics", UsageExamplePicassoBuilderRequestHandler.class));
        addItem(new DummyItem( "Custom Request Handlers", UsageExamplePicassoBuilderRequestHandler.class));
    }

    private static void addItem(DummyItem item) {
        ITEMS.add(item);
        ITEM_MAP.put(item.id, item);
    }

    /**
     * A dummy item representing a piece of content.
     */
    public static class DummyItem {
        public String id;
        public String content;
        public Class goalClass;

        public DummyItem(String content, Class goalClass) {
            this.id = id;
{'fraction_non_alphanumeric': 0.10241764080765144, 'fraction_numerical': 0.002656748140276302, 'mean_word_length': 4.677978883861237, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '3316125', 'n_tokens_mistral': 2298, 'n_tokens_neox': 2169, 'n_words': 449}