<commit_before>package com.dpanayotov.wallpaper;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

import android.content.SharedPreferences;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.os.Handler;
import android.preference.PreferenceManager;
import android.view.SurfaceHolder;

/**
 * Created by <NAME> on 2.9.2015
 */
public class WallpaperService extends android.service.wallpaper.WallpaperService {

    @Override
    public android.service.wallpaper.WallpaperService.Engine onCreateEngine() {
        return new MyWallpaperEngine();
    }

    private class MyWallpaperEngine extends android.service.wallpaper.WallpaperService.Engine {

        private static final byte FRAMES_PER_SECOND = 100;
        private static final byte FRAME = 1000 / FRAMES_PER_SECOND; //in milliseconds;

        private Paint paint = new Paint();

        //dimensions
        private short width;
        private short height;

        //lifecycle
        private boolean visible = true;
        private boolean restart;<commit_msg>Added some relevant constants.<commit_after>package com.dpanayotov.wallpaper;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

import android.content.SharedPreferences;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.os.Handler;
import android.preference.PreferenceManager;
import android.view.SurfaceHolder;

/**
 * Created by <NAME> on 2.9.2015
 */
public class WallpaperService extends android.service.wallpaper.WallpaperService {

    @Override
    public android.service.wallpaper.WallpaperService.Engine onCreateEngine() {
        return new MyWallpaperEngine();
    }

    private class MyWallpaperEngine extends android.service.wallpaper.WallpaperService.Engine {

        private static final byte FRAMES_PER_SECOND = 100;
        private static final byte FRAME = 1000 / FRAMES_PER_SECOND; //in milliseconds;

        private static final byte NUMBER_OF_BARS = 4; //in milliseconds;
        private static final byte HUE_STEP = 5; //in degrees;
        private static final byte SATURATION_STEP = 10; //in percents;

        private Paint paint = new Paint();

        //dimensions
        private short width;
        private short height;

        private short h = 240;
        private short s = 100;
        private short v = 20;


        //lifecycle
        private boolean visible = true;
        private boolean restart;
{'fraction_non_alphanumeric': 0.07754442649434572, 'fraction_numerical': 0.015347334410339256, 'mean_word_length': 3.2854671280276815, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5831096', 'n_tokens_mistral': 710, 'n_tokens_neox': 640, 'n_words': 192}