<commit_before>
package pptv.shuangtu.demo;

import android.animation.Animator;
import android.animation.Animator.AnimatorListener;
import android.animation.AnimatorSet;
import android.animation.ObjectAnimator;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnFocusChangeListener;
import android.view.animation.AccelerateDecelerateInterpolator;

import com.test4android.R;

public class MainActivity extends Activity implements OnFocusChangeListener {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.test_pptv_shuangtu_demo);
        findViewById(R.id.whole_container).setOnFocusChangeListener(this);
        findViewById(R.id.whole_container1).setOnFocusChangeListener(this);
    }

    @Override
    public void onFocusChange(View v, final boolean hasFocus) {
        if (v.getId() == R.id.whole_container || v.getId() == R.id.whole_container1) {
            final View mOutter = v.findViewById(R.id.outter_image);
            final View mInner = v.findViewById(R.id.inner_image);
            final View mTxt = v.findViewById(R.id.inner_txt_container);

            final long duration = 500;

            final float outter_x = mOutter.getX();
            final float delt_x = 30;
            final float inner_y = mInner.getY();
            final float delt_y = 20;

            final float to_x;
            final float to_y;
            final float from_ratio;
            final float to_ratio;
            if (hasFocus) {
                // outter move to left; inner move to upper
                to_x = outter_x - delt_x;
                to_y = inner_y - delt_y;
                from_ratio = 1.0f;
                to_ratio = 1.1f;
            } else {
                // restore to origin position(outter move to right; inner move
                // to down)
                to_x = outter_x + delt_x;
                to_y = inner_y + delt_y;
                from_ratio = 1.1f;
                to_ratio = 1.0f;
            }

            ObjectAnimator trans_outter_X = ObjectAnimator.ofFloat(mOutter, "x", outter_x, to_x);
            trans_outter_X.setDuration(duration);

            ObjectAnimator trans_inner_Y = ObjectAnimator.ofFloat(mInner, "y", inner_y, to_y);
            trans_inner_Y.setDuration(duration);

            ObjectAnimator scale_container_X = ObjectAnimator.ofFloat(v, "scaleX", from_ratio,
                    to_ratio);
            scale_container_X.setDuration(0);
            ObjectAnimator scale_container_Y = ObjectAnimator.ofFloat(v, "scaleY", from_ratio,
                    to_ratio);
            scale_container_Y.setDuration(0);

            AnimatorSet animatSet_move_inner_outter = new AnimatorSet();
            animatSet_move_inner_outter.setInterpolator(new AccelerateDecelerateInterpolator());
            animatSet_move_inner_outter.play(trans_outter_X).with(trans_inner_Y);

            AnimatorSet animatSet_scale_container = new AnimatorSet();
            animatSet_scale_container.setInterpolator(new AccelerateDecelerateInterpolator());
            animatSet_scale_container.play(scale_container_X).with(scale_container_Y);
            animatSet_scale_container.addListener(new AnimatorListener() {

                @Override
                public void onAnimationStart(Animator animation) {
                }

                @Override
                public void onAnimationRepeat(Animator animation) {
                }

                @Override
                public void onAnimationEnd(Animator animation) {
                    if (hasFocus) {
                        mTxt.setVisibility(View.VISIBLE);
                    } else {
                        mTxt.setVisibility(View.INVISIBLE);
                    }
                }

                @Override
                public void onAnimationCancel(Animator animation) {
                }
            });

            animatSet_move_inner_outter.start();
            animatSet_scale_container.start();
        }
    }

}
<commit_msg>apply the res from pptv<commit_after>
package pptv.shuangtu.demo;

import android.animation.AnimatorInflater;
import android.animation.AnimatorSet;
import android.animation.ObjectAnimator;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnFocusChangeListener;

import com.test4android.R;

public class MainActivity extends Activity implements OnFocusChangeListener {

    AnimatorSet mAnimatorSetZoomIn;
    AnimatorSet mAnimatorSetZoomOut;
    ObjectAnimator mObjectAnimatorTransX;
    ObjectAnimator mObjectAnimatorTransX_reset;
    ObjectAnimator mObjectAnimatorTransY;
    ObjectAnimator mObjectAnimatorTransY_reset;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        setContentView(R.layout.test_pptv_shuangtu_demo);

        findViewById(R.id.whole_container).setOnFocusChangeListener(this);
        findViewById(R.id.whole_container1).setOnFocusChangeListener(this);

        mAnimatorSetZoomIn = (AnimatorSet) AnimatorInflater.loadAnimator(
                getApplicationContext(), R.animator.tv_zoom_in);
        mAnimatorSetZoomOut = (AnimatorSet) AnimatorInflater.loadAnimator(
                getApplicationContext(), R.animator.tv_zoom_out);

        mObjectAnimatorTransX = (ObjectAnimator) AnimatorInflater.loadAnimator(
                getApplicationContext(), R.animator.home_translate_horizontal);
        mObjectAnimatorTransX_reset = (ObjectAnimator) AnimatorInflater.loadAnimator(
                getApplicationContext(), R.animator.home_translate_horizontal_reset);
        mObjectAnimatorTransY = (ObjectAnimator) AnimatorInflater.loadAnimator(
                getApplicationContext(), R.animator.home_translate_vertical);
        mObjectAnimatorTransY_reset = (ObjectAnimator) AnimatorInflater.loadAnimator(
                getApplicationContext(), R.animator.home_translate_vertical_reset);
    }

    @Override
    public void onFocusChange(View v, final boolean hasFocus) {
        if (v.getId() == R.id.whole_container || v.getId() == R.id.whole_container1) {
            final View outter = v.findViewById(R.id.outter_image);
            final View inner = v.findViewById(R.id.inner_image);
            final View text = v.findViewById(R.id.inner_txt_container);

            final ObjectAnimator trans_outter_X;
            final ObjectAnimator trans_inner_Y;
            final AnimatorSet animatSet_scale_container;
            if (hasFocus) {
                // outter move to left; inner move to upper
                trans_outter_X = mObjectAnimatorTransX;
                trans_inner_Y = mObjectAnimatorTransY;
                animatSet_scale_container = mAnimatorSetZoomIn;
            } else {
                // restore to origin position(outter move to right; inner move
                // to down)
                trans_outter_X = mObjectAnimatorTransX_reset;
                trans_inner_Y = mObjectAnimatorTransY_reset;
                animatSet_scale_container = mAnimatorSetZoomOut;
            }
            trans_outter_X.setTarget(outter);
            trans_outter_X.start();

            trans_inner_Y.setTarget(inner);
            trans_inner_Y.start();

            animatSet_scale_container.setTarget(v);
            animatSet_scale_container.start();

            if (hasFocus) {
                text.setVisibility(View.VISIBLE);
            } else {
                text.setVisibility(View.INVISIBLE);
            }
        }
    }

}

{'fraction_non_alphanumeric': 0.07589461266220998, 'fraction_numerical': 0.003014811901953074, 'mean_word_length': 2.3523725834797893, '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': '4029232', 'n_tokens_mistral': 2208, 'n_tokens_neox': 2093, 'n_words': 369}