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

import com.instructure.canvasapi.model.Assignment;
import com.instructure.canvasapi.model.AssignmentGroup;
import com.instructure.canvasapi.model.CanvasContext;
import com.instructure.canvasapi.model.Conversation;
import com.instructure.canvasapi.model.RubricCriterion;
import com.instructure.canvasapi.model.ScheduleItem;
import com.instructure.canvasapi.utilities.APIHelpers;
import com.instructure.canvasapi.utilities.CanvasCallback;
import com.instructure.canvasapi.utilities.CanvasRestAdapter;

import java.util.Date;
import java.util.List;

import retrofit.Callback;
import retrofit.RestAdapter;
import retrofit.http.EncodedPath;
import retrofit.http.GET;
import retrofit.http.PUT;
import retrofit.http.Path;
import retrofit.http.Query;
import retrofit.http.EncodedQuery;

/**
 * Created by <NAME> on 9/5/13.
 *
 * Copyright (c) 2014 Instructure. All rights reserved.
 */
public class AssignmentAPI {

    private static String getAssignmentCacheFilename(long courseID, long assignmentID) {
        return "/courses/" + courseID + "/assignments/" + assignmentID;
    }

    private static String getAssignmentsListCacheFilename(long courseID) {
        return "/courses/" + courseID + "/assignments?include=submission";
    }

    private static String getAssignmentGroupsListCacheFilename(long courseID) {
        return  "/courses/" + courseID + "/assignments_groups";
    }

    public interface AssignmentsInterface {
        @GET("/courses/{course_id}/assignments/{assignmentid}")
        void getAssignment(@Path("course_id") long course_id, @Path("assignmentid") long assignment_id, Callback<Assignment> callback);

        @GET("/courses/{course_id}/assignments?include[]=rubric_assessment?include[]=submission&needs_grading_count_by_section=true")
        void getAssignmentsList(@Path("course_id") long course_id, Callback<Assignment[]> callback);

        @GET("/{next}")
        void getNextPageAssignmentsList(@EncodedPath("next") String nextURL, Callback<Assignment[]>callback);

        @GET("/courses/{course_id}/assignment_groups")
        void getAssignmentGroupList(@Path("course_id") long course_id, Callback<AssignmentGroup[]> callback);<commit_msg>Fixed typo in request params<commit_after>package com.instructure.canvasapi.api;

import com.instructure.canvasapi.model.Assignment;
import com.instructure.canvasapi.model.AssignmentGroup;
import com.instructure.canvasapi.model.CanvasContext;
import com.instructure.canvasapi.model.Conversation;
import com.instructure.canvasapi.model.RubricCriterion;
import com.instructure.canvasapi.model.ScheduleItem;
import com.instructure.canvasapi.utilities.APIHelpers;
import com.instructure.canvasapi.utilities.CanvasCallback;
import com.instructure.canvasapi.utilities.CanvasRestAdapter;

import java.util.Date;
import java.util.List;

import retrofit.Callback;
import retrofit.RestAdapter;
import retrofit.http.EncodedPath;
import retrofit.http.GET;
import retrofit.http.PUT;
import retrofit.http.Path;
import retrofit.http.Query;
import retrofit.http.EncodedQuery;

/**
 * Created by <NAME> on 9/5/13.
 *
 * Copyright (c) 2014 Instructure. All rights reserved.
 */
public class AssignmentAPI {

    private static String getAssignmentCacheFilename(long courseID, long assignmentID) {
        return "/courses/" + courseID + "/assignments/" + assignmentID;
    }

    private static String getAssignmentsListCacheFilename(long courseID) {
        return "/courses/" + courseID + "/assignments?include=submission";
    }

    private static String getAssignmentGroupsListCacheFilename(long courseID) {
        return  "/courses/" + courseID + "/assignments_groups";
    }

    public interface AssignmentsInterface {
        @GET("/courses/{course_id}/assignments/{assignmentid}")
        void getAssignment(@Path("course_id") long course_id, @Path("assignmentid") long assignment_id, Callback<Assignment> callback);

        @GET("/courses/{course_id}/assignments?include[]=submission&include[]=rubric_assessment&needs_grading_count_by_section=true")
        void getAssignmentsList(@Path("course_id") long course_id, Callback<Assignment[]> callback);

        @GET("/{next}")
        void getNextPageAssignmentsList(@EncodedPath("next") String nextURL, Callback<Assignment[]>callback);

        @GET("/courses/{course_id}/assignment_groups")
        void getAssignmentGroupList(@Path("course_id") long course_id, Callback<AssignmentGroup[]> callback);
{'fraction_non_alphanumeric': 0.11302211302211303, 'fraction_numerical': 0.0035738217556399374, 'mean_word_length': 5.280504908835905, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '7486536', 'n_tokens_mistral': 1288, 'n_tokens_neox': 1285, 'n_words': 239}