<commit_before>package com.priyesh.hexatime;

import android.app.Activity;
import android.app.WallpaperManager;
import android.content.ComponentName;
import android.content.Intent;
import android.graphics.drawable.ColorDrawable;
import android.os.Build;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.widget.Button;
import android.widget.ImageButton;
import android.widget.LinearLayout;

public class HexatimeActivity extends Activity {

	LinearLayout layout;
    private IntroView mIntroView;
	 
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState); 
		setContentView(R.layout.hexatime_activity);
 
		layout =(LinearLayout)findViewById(R.id.linearlayout);
		
		mIntroView = (IntroView) findViewById(R.id.intro);
	    mIntroView.setSvgResource(R.raw.hexatime);
	    
	    layout.setBackgroundDrawable(new ColorDrawable (getResources().getColor(R.color.c1)));
	    
        
		if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT){
			Window win = getWindow();
			win.setFlags (WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION, WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION);
			win.setFlags (WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS, WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
		}
	}

}<commit_msg>Animate background color changing<commit_after>package com.priyesh.hexatime;

import android.animation.ArgbEvaluator;
import android.animation.ValueAnimator;
import android.animation.ValueAnimator.AnimatorUpdateListener;
import android.app.Activity;
import android.app.WallpaperManager;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.graphics.drawable.ColorDrawable;
import android.graphics.drawable.TransitionDrawable;
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.view.LayoutInflater;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.widget.Button;
import android.widget.ImageButton;
import android.widget.LinearLayout;

public class HexatimeActivity extends Activity implements Handler.Callback{

	private Handler mHandler = new Handler(this);

    private int mDelay = 1500; // Delay in milliseconds.
    
	LinearLayout layout;
	private IntroView mIntroView;
	TransitionDrawable trans;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState); 
		setContentView(R.layout.hexatime_activity);

		layout =(LinearLayout)findViewById(R.id.linearlayout);

		mIntroView = (IntroView) findViewById(R.id.intro);
		mIntroView.setSvgResource(R.raw.hexatime);

	//	layout.setBackgroundDrawable(new ColorDrawable (getResources().getColor(R.color.c1)));

		ColorDrawable c1 = new ColorDrawable(getResources().getColor(R.color.c1));
		ColorDrawable c2 = new ColorDrawable(getResources().getColor(R.color.c2));
		ColorDrawable[] color = {c1, c2}; 
		trans = new TransitionDrawable(color);
		layout.setBackgroundDrawable(trans); 
		start();

		if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT){
			Window win = getWindow();
			win.setFlags (WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION, WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION);
			win.setFlags (WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS, WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
		}
	}
	
	private Runnable mEvent = new Runnable() {
        public void run() {
            mHandler.removeCallbacks(mEvent);
            mHandler.postDelayed(mEvent, mDelay);
            Message message = mHandler.obtainMessage();
            mHandler.sendMessage(message);
        }
    };

    public boolean handleMessage(Message message) {
    	TransitionDrawable drawable = (TransitionDrawable) layout.getBackground();    
    	drawable.reverseTransition(mDelay);
        return true;
    }

    public void start() {
        mHandler.post(mEvent);
    }

    public void stop() {
        mHandler.removeCallbacks(mEvent);
    }


}
{'fraction_non_alphanumeric': 0.09744835965978128, 'fraction_numerical': 0.0029161603888213854, 'mean_word_length': 5.035190615835777, 'pattern_counts': {'":': 0, '<': 3, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2265711', 'n_tokens_mistral': 1293, 'n_tokens_neox': 1209, 'n_words': 218}