<commit_before>package com.bwsw.sj.mesos.framework.task

import org.apache.log4j.Logger
import org.apache.mesos.Protos._

object StatusHandler {
  val logger = Logger.getLogger(getClass)

  def handle(status: TaskStatus) = {
    logger.debug(s"STATUS UPDATE")
<commit_msg>SJ- Add some docstrings to mesos framework.<commit_after>package com.bwsw.sj.mesos.framework.task

import org.apache.log4j.Logger
import org.apache.mesos.Protos._

/**
  * Handler for mesos task status.
  */
// todo Refactor this class, to use different handler for each status.
object StatusHandler {
  val logger = Logger.getLogger(getClass)

  /**
    * Determine type of status and restart task, if status "failed" or "error"
    * @param status: mesos task status
    */

  def handle(status: TaskStatus) = {
    logger.debug(s"STATUS UPDATE")

{'fraction_non_alphanumeric': 0.10596833130328867, 'fraction_numerical': 0.00243605359317905, 'mean_word_length': 3.9221556886227544, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2409738', 'n_tokens_mistral': 266, 'n_tokens_neox': 258, 'n_words': 71}