<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_formatted_files(self, net):
 """Returns a dictionary of formatted filenames"""

        idx = -1
        if (
                self.event_name is not None and
                net.history
        ):
            for i, v in enumerate(net.history[:, self.event_name]):
                if v:
                    idx = i
        return {
            "f_params": self._format_target(net, self.f_params, idx),
            "f_optimizer": self._format_target(net, self.f_optimizer, idx),
            "f_history": self.f_history_,
            "f_pickle": self._format_target(net, self.f_pickle, idx)
        }