// Path: Android/Shopr/src/main/java/com/uwetrottmann/shopr/provider/ShoprContract.java
// public static class Stats implements StatsColumns, BaseColumns {
//     public static final Uri CONTENT_URI = BASE_CONTENT_URI.buildUpon()
//             .appendPath(PATH_STATS).build();
// 
//     /** Use if multiple items get returned */
//     public static final String CONTENT_TYPE = "vnd.android.cursor.dir/vnd.shopr.stats";
// 
//     /** Use if a single item is returned */
//     public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/vnd.shopr.stats";
// 
//     public static Uri buildStatUri(int statId) {
//         return CONTENT_URI.buildUpon().appendPath(String.valueOf(statId))
//                 .build();
//     }
// 
//     public static String getStatId(Uri uri) {
//         return uri.getLastPathSegment();
//     }
// }


import android.content.ContentValues;
import android.content.Context;
import android.net.Uri;
import com.google.analytics.tracking.android.EasyTracker;
import com.uwetrottmann.shopr.provider.ShoprContract.Stats;
        mCyclePositiveCount = 0;
    }

    /**
     * Increases the recommendation cycle count by 1. Also the positive cycle
     * count if isPositive is true.
     */
    public synchronized void incrementCycleCount(boolean isPositive) {
        mCycleCount++;
        if (isPositive) {
            mCyclePositiveCount++;
        }
    }

    /**
     * Stops the task and writes all data to the database.
     * 
     * @return The {@link Uri} pointing to the new data set or {@code null} if
     *         {@link #startTask(String, boolean)} was not called before.
     */
    public synchronized Uri finishTask(Context context) {
        if (!mIsStarted) {
            return null;
        }

        mIsStarted = false;
        long duration = System.currentTimeMillis() - mStartTime;

        // Write to database
        ContentValues statValues = new ContentValues();
// Path: Android/Shopr/src/main/java/com/uwetrottmann/shopr/provider/ShoprContract.java
// public static class Stats implements StatsColumns, BaseColumns {
//     public static final Uri CONTENT_URI = BASE_CONTENT_URI.buildUpon()
//             .appendPath(PATH_STATS).build();
// 
//     /** Use if multiple items get returned */
//     public static final String CONTENT_TYPE = "vnd.android.cursor.dir/vnd.shopr.stats";
// 
//     /** Use if a single item is returned */
//     public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/vnd.shopr.stats";
// 
//     public static Uri buildStatUri(int statId) {
//         return CONTENT_URI.buildUpon().appendPath(String.valueOf(statId))
//                 .build();
//     }
// 
//     public static String getStatId(Uri uri) {
//         return uri.getLastPathSegment();
//     }
// }


// Path: Android/Shopr/src/main/java/com/uwetrottmann/shopr/eval/Statistics.java
import android.content.ContentValues;
import android.content.Context;
import android.net.Uri;
import com.google.analytics.tracking.android.EasyTracker;
import com.uwetrottmann.shopr.provider.ShoprContract.Stats;

        mCyclePositiveCount = 0;
    }

    /**
     * Increases the recommendation cycle count by 1. Also the positive cycle
     * count if isPositive is true.
     */
    public synchronized void incrementCycleCount(boolean isPositive) {
        mCycleCount++;
        if (isPositive) {
            mCyclePositiveCount++;
        }
    }

    /**
     * Stops the task and writes all data to the database.
     * 
     * @return The {@link Uri} pointing to the new data set or {@code null} if
     *         {@link #startTask(String, boolean)} was not called before.
     */
    public synchronized Uri finishTask(Context context) {
        if (!mIsStarted) {
            return null;
        }

        mIsStarted = false;
        long duration = System.currentTimeMillis() - mStartTime;

        // Write to database
        ContentValues statValues = new ContentValues();
        statValues.put(Stats.USERNAME, mUserName);