<commit_before>package com.twitter.scalding

import cascading.stats.{ CascadeStats, CascadingStats }
import cascading.flow.FlowProcess
import cascading.stats.FlowStats

import scala.collection.JavaConverters._

/**
 * Wrapper around a FlowProcess useful, for e.g. incrementing counters.
 */
object Stats extends java.io.Serializable {
  private var flowProcess : Option[FlowProcess[_]] = None
  private var flowStats: Option[FlowStats] = None
  private var cascadeStats: Option[CascadeStats] = None

  // This is the group that we assign all custom counters to
  val ScaldingGroup = "scalding.custom"

  def setFlowProcess(fp: FlowProcess[_]) = { flowProcess = Some(fp) }

  def setFlowStats(fs: FlowStats) = { flowStats = Some(fs) }

  def setCascadeStats(cs: CascadeStats) = { cascadeStats = Some(cs) }<commit_msg>Rename custom counter group.<commit_after>package com.twitter.scalding

import cascading.stats.{ CascadeStats, CascadingStats }
import cascading.flow.FlowProcess
import cascading.stats.FlowStats

import scala.collection.JavaConverters._

/**
 * Wrapper around a FlowProcess useful, for e.g. incrementing counters.
 */
object Stats extends java.io.Serializable {
  private var flowProcess : Option[FlowProcess[_]] = None
  private var flowStats: Option[FlowStats] = None
  private var cascadeStats: Option[CascadeStats] = None

  // This is the group that we assign all custom counters to
  val ScaldingGroup = "Scalding Custom"

  def setFlowProcess(fp: FlowProcess[_]) = { flowProcess = Some(fp) }

  def setFlowStats(fs: FlowStats) = { flowStats = Some(fs) }

  def setCascadeStats(cs: CascadeStats) = { cascadeStats = Some(cs) }
{'fraction_non_alphanumeric': 0.09593199757134184, 'fraction_numerical': 0.0, 'mean_word_length': 4.906810035842294, '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': '7658743', 'n_tokens_mistral': 513, 'n_tokens_neox': 481, 'n_words': 142}