<commit_before>package com.allyants.boardview;

import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Rect;
import android.graphics.drawable.BitmapDrawable;
import android.os.Handler;
import android.support.annotation.Nullable;
import android.support.v4.view.ViewCompat;
import android.util.AttributeSet;
import android.util.DisplayMetrics;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewGroup;
import android.view.animation.Animation;
import android.view.animation.DecelerateInterpolator;
import android.view.animation.ScaleAnimation;
import android.widget.FrameLayout;
import android.widget.HorizontalScrollView;
import android.widget.LinearLayout;
import android.widget.Scroller;

import java.util.ArrayList;

/**
 * Created by jbonk on 4/17/2017.
 */

public class BoardView extends FrameLayout {

    private static final float GLOBAL_SCALE = 0.6f;
    private static final int SCROLL_ANIMATION_DURATION = 325;
    private boolean mCellIsMobile = false;
    private BitmapDrawable mHoverCell;
    private Rect mHoverCellCurrentBounds;
    private Rect mHoverCellOriginalBounds;

    private HorizontalScrollView mRootLayout;
    private LinearLayout mParentLayout;

    private int originalPosition = -1;

    private DragStartCallback mDragStartCallback = new DragStartCallback() {
        @Override
        public void startDrag(View itemView, int originalPosition) {

        }

        @Override
        public void changedPosition(View itemView, int originalPosition, int newPosition) {

        }

        @Override
        public void endDrag(View itemView, int originalPosition, int newPosition) {

        }
    };

    public boolean constWidth = true;

    private final int LINE_THICKNESS = 15;

    private boolean can_scroll = false;

    private int mLastEventX = -1;
    private int mLastEventY = -1;
    private Scroller mScroller;

    interface DragStartCallback{
        void startDrag(View itemView, int originalPosition);
        void changedPosition(View itemView, int originalPosition, int newPosition);
        void endDrag(View itemView, int originalPosition, int newPosition);
    }<commit_msg>Made DragStartCallback interface public<commit_after>package com.allyants.boardview;

import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Rect;
import android.graphics.drawable.BitmapDrawable;
import android.os.Handler;
import android.support.annotation.Nullable;
import android.support.v4.view.ViewCompat;
import android.util.AttributeSet;
import android.util.DisplayMetrics;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewGroup;
import android.view.animation.Animation;
import android.view.animation.DecelerateInterpolator;
import android.view.animation.ScaleAnimation;
import android.widget.FrameLayout;
import android.widget.HorizontalScrollView;
import android.widget.LinearLayout;
import android.widget.Scroller;

import java.util.ArrayList;

/**
 * Created by jbonk on 4/17/2017.
 */

public class BoardView extends FrameLayout {

    private static final float GLOBAL_SCALE = 0.6f;
    private static final int SCROLL_ANIMATION_DURATION = 325;
    private boolean mCellIsMobile = false;
    private BitmapDrawable mHoverCell;
    private Rect mHoverCellCurrentBounds;
    private Rect mHoverCellOriginalBounds;

    private HorizontalScrollView mRootLayout;
    private LinearLayout mParentLayout;

    private int originalPosition = -1;

    private DragStartCallback mDragStartCallback = new DragStartCallback() {
        @Override
        public void startDrag(View itemView, int originalPosition) {

        }

        @Override
        public void changedPosition(View itemView, int originalPosition, int newPosition) {

        }

        @Override
        public void endDrag(View itemView, int originalPosition, int newPosition) {

        }
    };

    public boolean constWidth = true;

    private final int LINE_THICKNESS = 15;

    private boolean can_scroll = false;

    private int mLastEventX = -1;
    private int mLastEventY = -1;
    private Scroller mScroller;

    public interface DragStartCallback{
        void startDrag(View itemView, int originalPosition);
        void changedPosition(View itemView, int originalPosition, int newPosition);
        void endDrag(View itemView, int originalPosition, int newPosition);
    }
{'fraction_non_alphanumeric': 0.06987475280158208, 'fraction_numerical': 0.007910349373764008, 'mean_word_length': 4.1203599550056245, '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': '2274538', 'n_tokens_mistral': 1244, 'n_tokens_neox': 1183, 'n_words': 336}