<commit_before>
package com.jakewharton.trakt.services;

import com.google.myjson.reflect.TypeToken;
import com.jakewharton.trakt.TraktApiBuilder;
import com.jakewharton.trakt.TraktApiService;
import com.jakewharton.trakt.entities.Response;
import com.jakewharton.trakt.entities.UserProfile;

import java.util.List;

public class NetworkService extends TraktApiService {
    /**
     * Follow a user. If the user has a protected profile, the follow request
     * will be in a pending state. If they have a public profile, they will be
     * followed immediately.
     * 
     * @param user Username of the person to follow.
     * @return Builder instance.
     */
    public FollowBuilder follow(String user) {
        return (new FollowBuilder(this)).user(user);
    }

    /**
     * Unfollow someone you already follow.
     * 
     * @param friend Username of the person to unfollow.
     * @return Builder instance.
     */
    public UnfollowBuilder unfollow(String user) {
        return (new UnfollowBuilder(this)).user(user);
    }

    /**
     * Approve a follower request.
     * 
     * @param user Username of the follower to approve.
     * @return Builder instance.
     */
    public ApproveBuilder approve(String user) {
        return (new ApproveBuilder(this)).user(user);
    }

    /**
     * Approve a follower request.
     * 
     * @param user Username of the follower to approve.
     * @param followBack If true, the follower request will be approved, plus
     *            the user will be followed back. If false, only the approval
     *            will take place.
     * @return Builder instance.
     */
    public ApproveBuilder approve(String user, boolean followBack) {
        return (new ApproveBuilder(this)).user(user).followBack(followBack);
    }

    /**
     * Deny a follower request.
     * 
     * @param user Username of the follower to deny.
     * @return Builder instance.
     */
    public DenyBuilder deny(String user) {
        return (new DenyBuilder(this)).user(user);
    }

    /**
     * Get a list of all follower requests including the timestamp when the
     * request was made. Use the approve and deny methods to manage each
     * request.
     * <commit_msg>Drop approve method with optional parameter.<commit_after>
package com.jakewharton.trakt.services;

import com.google.myjson.reflect.TypeToken;
import com.jakewharton.trakt.TraktApiBuilder;
import com.jakewharton.trakt.TraktApiService;
import com.jakewharton.trakt.entities.Response;
import com.jakewharton.trakt.entities.UserProfile;

import java.util.List;

public class NetworkService extends TraktApiService {
    /**
     * Follow a user. If the user has a protected profile, the follow request
     * will be in a pending state. If they have a public profile, they will be
     * followed immediately.
     * 
     * @param user Username of the person to follow.
     * @return Builder instance.
     */
    public FollowBuilder follow(String user) {
        return (new FollowBuilder(this)).user(user);
    }

    /**
     * Unfollow someone you already follow.
     * 
     * @param friend Username of the person to unfollow.
     * @return Builder instance.
     */
    public UnfollowBuilder unfollow(String user) {
        return (new UnfollowBuilder(this)).user(user);
    }

    /**
     * Approve a follower request.
     * 
     * @param user Username of the follower to approve.
     * @return Builder instance.
     */
    public ApproveBuilder approve(String user) {
        return (new ApproveBuilder(this)).user(user);
    }

    /**
     * Deny a follower request.
     * 
     * @param user Username of the follower to deny.
     * @return Builder instance.
     */
    public DenyBuilder deny(String user) {
        return (new DenyBuilder(this)).user(user);
    }

    /**
     * Get a list of all follower requests including the timestamp when the
     * request was made. Use the approve and deny methods to manage each
     * request.
     * 
{'fraction_non_alphanumeric': 0.0865216304076019, 'fraction_numerical': 0.0, 'mean_word_length': 2.5906642728904847, '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': '374441', 'n_tokens_mistral': 1159, 'n_tokens_neox': 1099, 'n_words': 374}