What's this?

can someone explain what it’s mean?

function setEvents(p_eventList)
{
isActive = false;
event = new Array();
for (var _loc2 = 0; _loc2 < p_eventList.length; ++_loc2)
{
event[_loc2] = new STAGEEVENT(p_eventList[_loc2].id, p_eventList[_loc2].team1, p_eventList[_loc2].team2, p_eventList[_loc2].team1_score, p_eventList[_loc2].team2_score, p_eventList[_loc2].home_odds, p_eventList[_loc2].draw_odds, p_eventList[_loc2].away_odds, p_eventList[_loc2].hiOdds, p_eventList[_loc2].loOdds);
if (p_eventList[_loc2].team1_score == -1 || p_eventList[_loc2].team2_score == -1)
{
isActive = true;
} // end if
} // end of for
ui.clearEventListAndResultList();
ui.hidePerBetDetails();
ui.displayEventList(event, currentWeek <= lastPlayedWeek, currentWeek, amOdds);
if (!isActive && lastPlayedWeek < currentWeek)
{
lastPlayedWeek = currentWeek;
ui.setStageProgressBar(lastPlayedWeek);
} // end if
ui.selectWeekButton(currentWeek);
ui.showWaitState(false);
this.getBestBets();