<commit_before>package com.instructure.canvasapi.api;

import android.content.Context;
import android.util.Log;
import com.instructure.canvasapi.model.Attachment;
import com.instructure.canvasapi.model.CanvasContext;
import com.instructure.canvasapi.model.CanvasColor;
import com.instructure.canvasapi.model.Course;
import com.instructure.canvasapi.model.Enrollment;
import com.instructure.canvasapi.model.FileUploadParams;
import com.instructure.canvasapi.model.Group;
import com.instructure.canvasapi.model.User;
import com.instructure.canvasapi.utilities.*;
import java.io.File;
import java.util.LinkedHashMap;
import retrofit.Callback;
import retrofit.RestAdapter;
import retrofit.http.*;
import retrofit.mime.TypedFile;

public class UserAPI {

    public enum ENROLLMENT_TYPE {STUDENT, TEACHER, TA, OBSERVER, DESIGNER}

    private static String getSelfEnrollmentsCacheFilename(){
        return "/users/self/enrollments";
    }

    private static String getUserByIdCacheFilename(long userId){
        return "/search/recipients/"+userId;
    }

    private static String getFirstPagePeopleCacheFilename(CanvasContext canvasContext){
        return canvasContext.toAPIString() + "/users";
    }

    private static String getFirstPagePeopleCacheFilename(CanvasContext canvasContext, ENROLLMENT_TYPE enrollment_type){
        return canvasContext + "/users/"+enrollment_type;
    }

    private static String getCourseUserListCacheFilename(CanvasContext canvasContext){
        return canvasContext.toAPIString() + "/users/all";
    }

    private static String getColorCacheFilename(){
        return "/users/colors";
    }

    private static String getSelfWithPermissionsCacheFileName(){<commit_msg>Makes setting a color use an int rather than a string.<commit_after>package com.instructure.canvasapi.api;

import android.content.Context;
import android.util.Log;
import com.instructure.canvasapi.model.Attachment;
import com.instructure.canvasapi.model.CanvasContext;
import com.instructure.canvasapi.model.CanvasColor;
import com.instructure.canvasapi.model.Course;
import com.instructure.canvasapi.model.Enrollment;
import com.instructure.canvasapi.model.FileUploadParams;
import com.instructure.canvasapi.model.Group;
import com.instructure.canvasapi.model.User;
import com.instructure.canvasapi.utilities.*;
import java.io.File;
import java.util.LinkedHashMap;
import retrofit.Callback;
import retrofit.RestAdapter;
import retrofit.http.*;
import retrofit.mime.TypedFile;

/**
 *
 * Copyright (c) 2014 Instructure. All rights reserved.
 */
public class UserAPI {

    public enum ENROLLMENT_TYPE {STUDENT, TEACHER, TA, OBSERVER, DESIGNER}

    private static String getSelfEnrollmentsCacheFilename(){
        return "/users/self/enrollments";
    }

    private static String getUserByIdCacheFilename(long userId){
        return "/search/recipients/"+userId;
    }

    private static String getFirstPagePeopleCacheFilename(CanvasContext canvasContext){
        return canvasContext.toAPIString() + "/users";
    }

    private static String getFirstPagePeopleCacheFilename(CanvasContext canvasContext, ENROLLMENT_TYPE enrollment_type){
        return canvasContext + "/users/"+enrollment_type;
    }

    private static String getCourseUserListCacheFilename(CanvasContext canvasContext){
        return canvasContext.toAPIString() + "/users/all";
    }

    private static String getColorCacheFilename(){
        return "/users/colors";
    }

    private static String getSelfWithPermissionsCacheFileName(){
{'fraction_non_alphanumeric': 0.09023836549375709, 'fraction_numerical': 0.0011350737797956867, 'mean_word_length': 4.836092715231788, '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': '3746816', 'n_tokens_mistral': 978, 'n_tokens_neox': 964, 'n_words': 208}