              self.output = "console"
          if self.type == "faces" and self.job not in ("multi-faces", "leftover-faces"):
              logger.warning("The selected folder is not valid. Faces folder (-fc) is only "
                             "supported for 'multi-faces' and 'leftover-faces'")
              exit(0)
  
      def compile_output(self):
          """ Compile list of frames that meet criteria """
          action = self.job.replace("-", "_")
          processor = getattr(self, "get_{}".format(action))
 
</s> remove             exit(0)
 </s> add             sys.exit(1) </s> remove             exit(0)
 </s> add             sys.exit(1) </s> remove         output_message += "\r\n".join([frame for frame in items_output])
 </s> add         output_message += "\r\n".join(items_output) </s> remove     @property
    def mask_summary(self):
        """ Dict: The mask types and the number of faces which have each type that exist with in
        the loaded alignments """
        masks = dict()
        for faces in self.data.values():
            for face in faces:
                if face.get("mask", None) is None:
                    masks["none"] = masks.get("none", 0) + 1
                for key in face.get("mask", dict()):
                    masks[key] = masks.get(key, 0) + 1
        return masks

 </s> add  </s> remove     """ Holds processes pertaining to the alignments file.

        folder:     folder alignments file is stored in
        filename:   Filename of alignments file. If a
                    valid extension is provided, then it will be used to
                    decide the serializer otherwise compressed pickle is used.
 </s> add     """ The alignments file is a custom serialized ``.fsa`` file that holds information for each
    frame for a video or series of images.

    Specifically, it holds a list of faces that appear in each frame. Each face contains
    information detailing their detected bounding box location within the frame, the 68 point
    facial landmarks and any masks that have been extracted.

    Additionally it can also hold video meta information (timestamp and whether a frame is a
    key frame.)

    Parameters
    ----------
    folder: str
        The folder that contains the alignments ``.fsa`` file
    filename: str, optional
        The filename of the ``.fsa`` alignments file. If not provided then the given folder will be
        checked for a default alignments file filename. Default: "alignments"
            sys.exit(1)
              self.output = "console"
          if self.type == "faces" and self.job not in ("multi-faces", "leftover-faces"):
              logger.warning("The selected folder is not valid. Faces folder (-fc) is only "
                             "supported for 'multi-faces' and 'leftover-faces'")
            sys.exit(1)
  
      def compile_output(self):
          """ Compile list of frames that meet criteria """
          action = self.job.replace("-", "_")
          processor = getattr(self, "get_{}".format(action))
keep keep keep keep replace keep keep keep keep keep
 lib.alignments - Slight update (#978)

* lib.alignments update:
  - Minor structure change (faces to nested dictionary)
  - Refactor internal and external methods
  - Documentation 
tools/lib_alignments/jobs.py