Buggy code:
public static final String JSON_UTF8 = "application//json;<seq2seq4repair_space>charset=utf-8" ; DateTimeFormatter formatDayHour = DateTimeFormat . forPattern ( "dd//MM//yyyy<seq2seq4repair_space>HH:mm" ) ; public static final DateTimeFormatter formatDay = DateTimeFormat . forPattern ( "dd//MM//yyyy" ) ; public static final SimpleDateFormat dataFormatDay = new SimpleDateFormat ( "dd//MM//yyyy" ) ; public static final SimpleDateFormat dataFormatHour = new SimpleDateFormat ( "HH:mm" ) ; private static Gson gson ; private static final String ENROL = "yes" ; private static final String UNENROL = "no" ; private String mls ( MultiLanguageString mls ) { } private FenixPhoto getPhoto ( final Person person ) { } private Person getPerson ( ) { } @ GET @ Produces ( FenixAPIv1 . JSON_UTF8 ) @ Path ( "person" ) @ FenixAPIScope ( FenixAPIv1 . PERSONAL_SCOPE ) @ OAuthEndpoint ( FenixAPIv1 . PERSONAL_SCOPE ) public FenixPerson person ( ) { } @ FenixAPIScope ( FenixAPIv1 . CURRICULAR_SCOPE ) @ OAuthEndpoint ( FenixAPIv1 . CURRICULAR_SCOPE ) @ GET @ Produces ( FenixAPIv1 . JSON_UTF8 ) @ Path ( "person//courses//" ) public FenixPersonCourses personCourses ( @ QueryParam ( "academicTerm" ) String academicTerm ) { } public Set < ExecutionSemester > getExecutionSemesters ( String academicTerm ) { } public void fillTeachingCourses ( final Person person , List < FenixCourse > teachingCourses , ExecutionSemester executionSemester ) { } public void fillEnrolments ( final Person person , List < FenixEnrolment > enrolments , ExecutionSemester executionSemester ) { } private enum EventType { CLASS , EVALUATION ; } private FenixCalendar getFenixCalendar ( String academicTerm , List < EventBean > eventBeans , FenixAPIv1 . EventType eventType ) { } private FenixCalendar getFenixClassCalendar ( String academicTerm , List < EventBean > eventBeans ) { } private FenixCalendar getFenixEvaluationsCalendar ( String academicTerm , List < EventBean > eventBeans ) { } private String evaluationCalendarICal ( Person person ) { } private FenixCalendar evaluationCalendarJson ( Person person ) { } @ FenixAPIScope ( FenixAPIv1 . SCHEDULE_SCOPE ) @ OAuthEndpoint ( FenixAPIv1 . SCHEDULE_SCOPE ) @ GET @ Path ( "person//calendar//evaluations" ) public Response calendarEvaluation ( @ QueryParam ( "format" ) String format ) { } private String classesCalendarICal ( Person person ) { } private FenixCalendar classesCalendarJson ( Person person ) { } @ FenixAPIScope ( FenixAPIv1 . SCHEDULE_SCOPE ) @ OAuthEndpoint ( FenixAPIv1 . SCHEDULE_SCOPE ) @ GET @ Path ( "person//calendar//classes" ) public Response calendarClasses ( @ QueryParam ( "format" ) String format ) { } @ FenixAPIScope ( FenixAPIv1 . CURRICULAR_SCOPE ) @ OAuthEndpoint ( FenixAPIv1 . CURRICULAR_SCOPE ) @ GET @ Path ( "person//curriculum" ) @ Produces ( FenixAPIv1 . JSON_UTF8 ) public List < FenixCurriculum > personCurriculum ( ) { } private List < FenixCurriculum > getStudentStatistics ( Set < Registration > registrationsList ) { } private List < Event > calculateNotPayedEvents ( final Person person ) { } @ FenixAPIScope ( FenixAPIv1 . PAYMENTS_SCOPE ) @ OAuthEndpoint ( FenixAPIv1 . PAYMENTS_SCOPE ) @ GET @ Path ( "person//payments" ) @ Produces ( FenixAPIv1 . JSON_UTF8 ) public FenixPayment personPayments ( ) { } @ FenixAPIScope ( FenixAPIv1 . EVALUATIONS_SCOPE ) @ OAuthEndpoint ( FenixAPIv1 . EVALUATIONS_SCOPE ) @ GET @ Path ( "person//evaluations" ) @ Produces ( FenixAPIv1 . JSON_UTF8 ) public List < FenixCourseEvaluation . WrittenEvaluation > evaluations ( @ Context HttpServletResponse response , @ Context HttpServletRequest request , @ Context ServletContext context ) { } private List < FenixCourseEvaluation . WrittenEvaluation > processEvaluation ( List < Evaluation > listEvaluation , final Boolean isEnrolled , final Student student ) { } @ FenixAPIScope ( FenixAPIv1 . EVALUATIONS_SCOPE ) @ OAuthEndpoint ( FenixAPIv1 . EVALUATIONS_SCOPE ) @ PUT @ Produces ( FenixAPIv1 . JSON_UTF8 ) @ Path ( "person//evaluations//{id}" ) public List < FenixCourseEvaluation . WrittenEvaluation > evaluations ( @ PathParam ( "id" ) String oid , @ QueryParam ( "enrol" ) String enrol , @ Context HttpServletResponse response , @ Context HttpServletRequest request , @ Context ServletContext context ) { validateEnrol ( enrol ) ; try { WrittenEvaluation eval = getDomainObject ( oid , WrittenEvaluation . class ) ; if ( ! ( StringUtils . isBlank ( enrol ) ) ) { if ( enrol . equalsIgnoreCase ( FenixAPIv1 . ENROL ) ) { EnrolStudentInWrittenEvaluation . runEnrolStudentInWrittenEvaluation ( getPerson ( ) . getUsername ( ) , eval . getExternalId ( ) ) ; } else if ( enrol . equalsIgnoreCase ( FenixAPIv1 . UNENROL ) ) { UnEnrollStudentInWrittenEvaluation . runUnEnrollStudentInWrittenEvaluation ( getPerson ( ) . getUsername ( ) , eval . getExternalId ( ) ) ; } } return evaluations ( response , request , context ) ; } catch ( Exception e ) { <START_BUG> throw newApplicationError ( BAD_REQUEST , "problem<seq2seq4repair_space>found" , "problem<seq2seq4repair_space>found" ) ; <END_BUG>

Fix:
throw newApplicationError ( PRECONDITION_FAILED , e . getMessage ( ) , e . getMessage ( ) ) ;