<commit_before>package org.teamone.client.appointments;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;
import org.teamone.core.SQL.AppointmentSQL;
import org.teamone.core.appointments.Appointment;
import org.teamone.core.users.Patient;
import org.teamone.core.users.Staff;
//import org.teamone.client.generic.User;

import java.util.*;
import java.util.Map;

/**
 * Created by daniel on 10/16/15.
 */

@Controller
@Scope("request")
@RequestMapping(value = "/**/{userID}/appointment/list")
public class AppointmentListController {

    @RequestMapping(method = RequestMethod.GET)
    void findPatients(Map<String, Object> model, @PathVariable String userID) {
        List<Appointment> patientList; //Hashing strikes again.
        System.out.println(userID + "this works"); //DEBUG statements
        //TODO: get user appointments from the path variable.
        Appointment temp = new Appointment();
        int intUserID = Integer.parseInt(userID);
        temp.setPatientID(intUserID);
        patientList = AppointmentSQL.viewAppointmentByPatient(temp);
        //TODO: this controller will display a list of the user appointments. for each, the user can select whether to create a new appointment, or edit/delete one. Delete not necessary.
    }
}
<commit_msg>consolidation2<commit_after>package org.teamone.client.appointments;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;
import org.teamone.core.SQL.AppointmentSQL;
import org.teamone.core.appointments.Appointment;
import org.teamone.core.users.Patient;
import org.teamone.core.users.Staff;
//import org.teamone.client.generic.User;

import java.util.*;
import java.util.Map;

/**
 * Created by daniel on 10/16/15.
 */

@Controller
@Scope("request")
@RequestMapping(value = "/**/{userID}/appointment/list")
public class AppointmentListController {

    @RequestMapping(method = RequestMethod.GET)
    List<Appointment> findPatients(Map<String, Object> model, @PathVariable String userID) {
        List<Appointment> patientList; //Hashing strikes again.
        System.out.println(userID + "this works"); //DEBUG statements
        //TODO: get user appointments from the path variable.
        Appointment temp = new Appointment();
        int intUserID = Integer.parseInt(userID);
        temp.setPatientID(intUserID);
        patientList = AppointmentSQL.viewAppointmentByPatient(temp);
        return patientList;
        //TODO: this controller will display a list of the user appointments. for each, the user can select whether to create a new appointment, or edit/delete one. Delete not necessary.
    }
}

{'fraction_non_alphanumeric': 0.10804020100502512, 'fraction_numerical': 0.00466618808327351, 'mean_word_length': 4.132596685082873, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, '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': '1796419', 'n_tokens_mistral': 811, 'n_tokens_neox': 788, 'n_words': 202}