<commit_before>package mesosphere.marathon.tasks

import org.apache.mesos.Protos.TaskID
import com.fasterxml.uuid.{ EthernetAddress, Generators }

/**
  * Utility functions for dealing with TaskIDs
  */

object TaskIDUtil {

  val taskDelimiter = "_"
  val uuidGenerator = Generators.timeBasedGenerator(EthernetAddress.fromInterface())

  def taskId(appName: String) = {
    appName + taskDelimiter + uuidGenerator.generate()
  }

  def appID(taskId: TaskID) = {
    val taskIdString = taskId.getValue
    taskIdString.substring(0, taskIdString.lastIndexOf(taskDelimiter))
  }
}<commit_msg>80 cols; period to separate UUID and app<commit_after>package mesosphere.marathon.tasks

import org.apache.mesos.Protos.TaskID
import com.fasterxml.uuid.{ EthernetAddress, Generators }

/**
  * Utility functions for dealing with TaskIDs
  */

object TaskIDUtil {

  val taskDelimiter = "."
  val uuidGenerator =
    Generators.timeBasedGenerator(EthernetAddress.fromInterface())

  def taskId(appName: String) = {
    appName + taskDelimiter + uuidGenerator.generate()
  }

  def appID(taskId: TaskID) = {
    val taskIdString = taskId.getValue
    taskIdString.substring(0, taskIdString.lastIndexOf(taskDelimiter))
  }
}
{'fraction_non_alphanumeric': 0.0990916597853014, 'fraction_numerical': 0.0033030553261767133, 'mean_word_length': 4.534246575342466, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '6717581', 'n_tokens_mistral': 394, 'n_tokens_neox': 382, 'n_words': 77}