<commit_before>package alcaudon.core

trait DataStream[T] {
  type Type = T
  val streamingContext: StreamingContext
}


case class OneSourceDataStream[T](streamingContext: StreamingContext) extends DataStream[T] {
}<commit_msg>Creating first transformations from the dataflow.<commit_after>package alcaudon.core

trait DataStream[T] {
  type Type = T
  val streamingContext: StreamingContext
  val streamTransformation: StreamTransformation[T]

  // def filter[T](fn: (T => Boolean)): DataStream[T] = {
  //   OneInputTransformation
  // }

  def transform[O](opName: String, operator: OneInputStreamOperator[T, O]): String = {
    val transformation = OneInputTransformation("id", opName, streamTransformation, operator)
    streamingContext.addOperation(transformation)
    "1"
  }
}

case class OneSourceDataStream[T](streamingContext: StreamingContext,
                                  streamTransformation: StreamTransformation[T]) extends DataStream[T]

trait SourceDataStream[T] extends DataStream[T]
{'fraction_non_alphanumeric': 0.09514370664023786, 'fraction_numerical': 0.0009910802775024777, 'mean_word_length': 4.906432748538012, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2973844', 'n_tokens_mistral': 289, 'n_tokens_neox': 282, 'n_words': 67}