<commit_before>package com.example.remarks.net;

import com.example.remarks.BuildConfig;
import com.example.remarks.models.Comment;
import com.ryanharter.auto.value.moshi.AutoValueMoshiAdapterFactory;
import com.squareup.moshi.Moshi;

import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.Retrofit;
import retrofit2.converter.moshi.MoshiConverterFactory;
import retrofit2.http.Body;
import retrofit2.http.POST;

public class Rest {
    private RestService service;

    public Rest() {
        final Moshi moshi = new Moshi.Builder()
                .add(new AutoValueMoshiAdapterFactory())
                .build();

        Retrofit retrofit = new Retrofit.Builder()
                .baseUrl(BuildConfig.BASE_URL)
                .addConverterFactory(MoshiConverterFactory.create(moshi))
                .build();

        service = retrofit.create(RestService.class);
    }

    public Call<ResponseBody> sendComment(Comment comment) {
        return service.sendComment(comment);
    }

    private interface RestService {
        @POST("comment/")
        Call<ResponseBody> sendComment(@Body Comment comment);
    }
}<commit_msg>Add method to Rest class to send Annotation to remote store<commit_after>package com.example.remarks.net;

import com.example.remarks.BuildConfig;
import com.example.remarks.models.Annotation;
import com.example.remarks.models.Comment;
import com.ryanharter.auto.value.moshi.AutoValueMoshiAdapterFactory;
import com.squareup.moshi.Moshi;

import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.Retrofit;
import retrofit2.converter.moshi.MoshiConverterFactory;
import retrofit2.http.Body;
import retrofit2.http.POST;

public class Rest {
    private RestService service;

    public Rest() {
        final Moshi moshi = new Moshi.Builder()
                .add(new AutoValueMoshiAdapterFactory())
                .build();

        Retrofit retrofit = new Retrofit.Builder()
                .baseUrl(BuildConfig.BASE_URL)
                .addConverterFactory(MoshiConverterFactory.create(moshi))
                .build();

        service = retrofit.create(RestService.class);
    }

    public Call<ResponseBody> sendComment(Comment comment) {
        return service.sendComment(comment);
    }

    public Call<ResponseBody> sendAnnotation(Annotation annotation) {
        return service.sendAnnotation(annotation);
    }

    private interface RestService {
        @POST("comment/")
        Call<ResponseBody> sendComment(@Body Comment comment);

        @POST("annotation/")
        Call<ResponseBody> sendAnnotation(@Body Annotation annotation);
    }
}
{'fraction_non_alphanumeric': 0.09420289855072464, 'fraction_numerical': 0.004576659038901602, 'mean_word_length': 3.244336569579288, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '6981385', 'n_tokens_mistral': 743, 'n_tokens_neox': 722, 'n_words': 145}