Buggy code:
public double getOtherAverageTotal ( ) { } public double getTotalAverageTotal ( ) { } public int getNumberResponsesTotal ( ) { } private int getNumberWeeksForAverageCalculation ( ) { } public double getContactAverageTotalAverage ( ) { } public double getAutonomousStudyAverageTotalAverage ( ) { } public double getOtherAverageTotalAverage ( ) { } public double getTotalAverageTotalAverage ( ) { } public double getNumberResponsesTotalAverage ( ) { } } public Interval getInterval ( ) { } public ExecutionCourse . WeeklyWorkLoadView getWeeklyWorkLoadView ( ) { } private Attends findAttendsWithEnrolment ( ) { } public boolean hasGrouping ( final Grouping grouping ) { } public Shift findShiftByName ( final String shiftName ) { } public Set < Shift > findShiftByType ( final ShiftType shiftType ) { } public Set < SchoolClass > findSchoolClasses ( ) { } public List < Summary > readSummariesOfTeachersWithoutProfessorship ( ) { } public ExportGrouping getExportGrouping ( final Grouping grouping ) { } public boolean hasExportGrouping ( final Grouping grouping ) { } public boolean hasScopeInGivenSemesterAndCurricularYearInDCP ( CurricularYear curricularYear , DegreeCurricularPlan degreeCurricularPlan ) { } public Set < Metadata > findVisibleMetadata ( ) { } public ExecutionCourseAnnouncementBoard createExecutionCourseAnnouncementBoard ( final String name ) { } public void createForum ( MultiLanguageString name , MultiLanguageString description ) { } @ Override public void addForum ( ExecutionCourseForum executionCourseForum ) { } public void checkIfCanAddForum ( MultiLanguageString name ) { } public boolean hasForumWithName ( MultiLanguageString name ) { } public ExecutionCourseForum getForumByName ( MultiLanguageString name ) { } public SortedSet < Degree > getDegreesSortedByDegreeName ( ) { } public SortedSet < CurricularCourse > getCurricularCoursesSortedByDegreeAndCurricularCourseName ( ) { } public Set < CompetenceCourse > getCompetenceCourses ( ) { } public Set < CompetenceCourseInformation > getCompetenceCoursesInformations ( ) { } public boolean hasAnyDegreeGradeToSubmit ( final ExecutionSemester period , final DegreeCurricularPlan degreeCurricularPlan ) { } public boolean hasAnyDegreeMarkSheetToConfirm ( ExecutionSemester period , DegreeCurricularPlan degreeCurricularPlan ) { } public String constructShiftName ( final Shift shift , final int n ) { } public SortedSet < Shift > getShiftsByTypeOrderedByShiftName ( final ShiftType shiftType ) { } public void setShiftNames ( ) { } public boolean hasProjectsWithOnlineSubmission ( ) { } public List < Project > getProjectsWithOnlineSubmission ( ) { } private Set < SchoolClass > getAllSchoolClassesOrBy ( DegreeCurricularPlan degreeCurricularPlan ) { } public Set < SchoolClass > getSchoolClassesBy ( DegreeCurricularPlan degreeCurricularPlan ) { } public Set < SchoolClass > getSchoolClasses ( ) { } public boolean isLecturedIn ( final ExecutionYear executionYear ) { } public boolean isLecturedIn ( final ExecutionSemester executionSemester ) { } public SortedSet < Professorship > getProfessorshipsSortedAlphabetically ( ) { } public SummariesSearchBean getSummariesSearchBean ( ) { } public Set < Lesson > getLessons ( ) { } public boolean hasAnyLesson ( ) { } public SortedSet < WrittenEvaluation > getWrittenEvaluations ( ) { } public SortedSet < Shift > getShiftsOrderedByLessons ( ) { } public Map < CompetenceCourse , Set < CurricularCourse > > getCurricularCoursesIndexedByCompetenceCourse ( ) { } public boolean getHasAnySecondaryBibliographicReference ( ) { } public boolean getHasAnyMainBibliographicReference ( ) { } private boolean hasAnyBibliographicReferenceByBibliographicReferenceType ( BibliographicReferenceType referenceType ) { } public List < LessonPlanning > getLessonPlanningsOrderedByOrder ( ShiftType lessonType ) { } public LessonPlanning getLessonPlanning ( ShiftType lessonType , Integer order ) { } public Set < ShiftType > getShiftTypes ( ) { } public void copyLessonPlanningsFrom ( ExecutionCourse executionCourseFrom ) { } public void createLessonPlanningsUsingSummariesFrom ( Shift shift ) { } public void deleteLessonPlanningsByLessonType ( ShiftType shiftType ) { } public Integer getNumberOfShifts ( ShiftType shiftType ) { } public Double getCurricularCourseEnrolmentsWeight ( CurricularCourse curricularCourse ) { } public Set < ShiftType > getOldShiftTypesToEnrol ( ) { } public String getEqualLoad ( ) { } public boolean getEqualLoad ( ShiftType type , CurricularCourse curricularCourse ) { } public List < Summary > getSummariesByShiftType ( ShiftType shiftType ) { } public List < Summary > getSummariesWithoutProfessorshipButWithTeacher ( Teacher teacher ) { } public void moveSummariesFromTeacherToProfessorship ( Teacher teacher , Professorship professorship ) { } @ Override public String getNome ( ) { <START_BUG> if ( ( I18N . getLocale ( ) . equals ( en ) ) && ( hasAnyAssociatedCurricularCourses ( ) ) ) { <END_BUG> final StringBuilder stringBuilder = new StringBuilder ( ) ; final Set < String > names = new HashSet < String > ( ) ; for ( final CurricularCourse curricularCourse : getAssociatedCurricularCourses ( ) ) { if ( ! ( curricularCourse . getActiveDegreeModuleScopesInExecutionPeriod ( getExecutionPeriod ( ) ) . isEmpty ( ) ) ) { final String name = curricularCourse . getNameEn ( ) ; if ( ! ( names . contains ( name ) ) ) { names . add ( name ) ; if ( ( stringBuilder . length ( ) ) > 0 ) { stringBuilder . append ( "<seq2seq4repair_space>//<seq2seq4repair_space>" ) ; } stringBuilder . append ( name ) ; } } } if ( ( stringBuilder . length ( ) ) > 0 ) { return stringBuilder . toString ( ) ; } boolean unique = true ; final String nameEn = getAssociatedCurricularCourses ( ) . iterator ( ) . next ( ) . getNameEn ( ) ; for ( final CurricularCourse curricularCourse : getAssociatedCurricularCourses ( ) ) { if ( ( ( curricularCourse . getNameEn ( ) ) == null ) || ( ! ( curricularCourse . getNameEn ( ) . equals ( nameEn ) ) ) ) { unique = false ; break ; } } if ( unique ) { return nameEn ; } else { return super . getNome ( ) ; } } return super . getNome ( ) ; } public String getName ( ) { } public String getPrettyAcronym ( ) { } public String getDegreePresentationString ( ) { } public Registration getRegistration ( Person person ) { } public ExecutionYear getExecutionYear ( ) { } public CurricularCourse getCurricularCourseFor ( final DegreeCurricularPlan degreeCurricularPlan ) { } public SortedSet < BibliographicReference > getOrderedBibliographicReferences ( ) { } public void setBibliographicReferencesOrder ( List < BibliographicReference > references ) { } public List < BibliographicReference > getMainBibliographicReferences ( ) { }

Fix:
if ( ( I18N . getLocale ( ) . getLanguage ( ) . equals ( "en" ) ) && ( hasAnyAssociatedCurricularCourses ( ) ) ) {