<commit_before>package org.railsschool.tiramisu.models.bll.remote;

import org.railsschool.tiramisu.models.beans.Lesson;
import org.railsschool.tiramisu.models.beans.User;
import org.railsschool.tiramisu.models.beans.Venue;
import org.railsschool.tiramisu.models.bll.structs.SchoolClass;

import java.util.List;

import retrofit.Callback;
import retrofit.http.GET;
import retrofit.http.Path;

/**
 * @class IRailsSchoolAPI
 * @brief
 */
public interface IRailsSchoolAPI {
    public final static String LESSON_ROOT = "/l";
    public final static String USER_ROOT   = "/users";
    public final static String VENUE_ROOT  = "/venues";

    public final static String FORMAT = ".json";

    @GET(LESSON_ROOT + "/future/slugs" + FORMAT)
    public void getFutureLessonSlugs(Callback<List<String>> callback);

    @GET(LESSON_ROOT + "/{slug}" + FORMAT)
    public void getLesson(@Path("slug") String slug, Callback<Lesson> callback);

    @GET(LESSON_ROOT + "/{slug}" + FORMAT)
    public void getSchoolClass(@Path("slug") String slug, Callback<SchoolClass> callback);

    @GET(LESSON_ROOT + "/upcoming" + FORMAT)
    public void getUpcomingLesson(Callback<Lesson> callback);

    @GET(USER_ROOT + "/{id}" + FORMAT)
    public void getUser(@Path("id") int id, Callback<User> callback);

    @GET(VENUE_ROOT + "/{id}" + FORMAT)
    public void getVenue(@Path("id") int id, Callback<Venue> callback);
}<commit_msg>Upgrades API for authentication system<commit_after>package org.railsschool.tiramisu.models.bll.remote;

import org.railsschool.tiramisu.models.beans.Lesson;
import org.railsschool.tiramisu.models.beans.User;
import org.railsschool.tiramisu.models.beans.Venue;
import org.railsschool.tiramisu.models.bll.structs.SchoolClass;

import java.util.List;

import retrofit.Callback;
import retrofit.http.DELETE;
import retrofit.http.GET;
import retrofit.http.POST;
import retrofit.http.Path;

/**
 * @class IRailsSchoolAPI
 * @brief
 */
public interface IRailsSchoolAPI {
    public final static String LESSON_ROOT     = "/l";
    public final static String USER_ROOT       = "/users";
    public final static String VENUE_ROOT      = "/venues";
    public final static String ATTENDANCE_ROOT = "/attendances";

    public final static String FORMAT = ".json";

    //region Lessons

    @GET(LESSON_ROOT + "/future/slugs" + FORMAT)
    public void getFutureLessonSlugs(Callback<List<String>> callback);

    @GET(LESSON_ROOT + "/{slug}" + FORMAT)
    public void getLesson(@Path("slug") String slug, Callback<Lesson> callback);

    @GET(LESSON_ROOT + "/{slug}" + FORMAT)
    public void getSchoolClass(@Path("slug") String slug, Callback<SchoolClass> callback);

    @GET(LESSON_ROOT + "/upcoming" + FORMAT)
    public void getUpcomingLesson(Callback<Lesson> callback);

    //endregion

    //region Users

    @GET(USER_ROOT + "/{id}" + FORMAT)
    public void getUser(@Path("id") int id, Callback<User> callback);

    @POST(USER_ROOT + "/check-credentials" + FORMAT)
    public void checkCredentials(String login, String password, Callback<String>
        callback);

    //endregion

    //region Venues

    @GET(VENUE_ROOT + "/{id}" + FORMAT)
    public void getVenue(@Path("id") int id, Callback<Venue> callback);

    //endregion

    //region Attendances

    @POST(ATTENDANCE_ROOT + FORMAT)
    public void attend(int lessonId, String userToken, Callback<Void> callback);

    @DELETE(ATTENDANCE_ROOT + FORMAT)
    public void cancelAttendance(int lessonId, String userToken, Callback<Void>
        callback);

    // TODO: Change route
    @GET(ATTENDANCE_ROOT + "/{lessonId}/{userToken}" + FORMAT)
    public void isAttending(
        @Path("lessonId") int lesson,
        @Path("userToken") String userToken,
        Callback<Boolean> callback);

    //endregion
}
{'fraction_non_alphanumeric': 0.12585933368588048, 'fraction_numerical': 0.0, 'mean_word_length': 4.071045576407506, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, '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': '4444896', 'n_tokens_mistral': 1285, 'n_tokens_neox': 1225, 'n_words': 278}