<commit_before>package io.github.mandar2812.PlasmaML

import java.io.File

import io.github.mandar2812.PlasmaML.cdf.{CdfContent, CdfReader}
import io.github.mandar2812.PlasmaML.cdf.util.CdfList
import io.github.mandar2812.dynaml.pipes.DataPipe

/**
  * Created by mandar on 14/5/16.
  */
object PlasmaML {

  val dataDir = "data/"

  var leapSecondsFile: String = dataDir+"CDFLeapSeconds.txt"

  def convertCDF(writeToFile: String) = DataPipe((file: String) => {
    val r = new CdfContent(new CdfReader(new File(file)))
    new CdfList(r, System.out, false).run()
  })
}<commit_msg>Small modification to utility function in PlasmaML object<commit_after>package io.github.mandar2812.PlasmaML

import java.io.File

import io.github.mandar2812.PlasmaML.cdf.{CdfContent, CdfReader}
import io.github.mandar2812.PlasmaML.cdf.util.CdfList
import io.github.mandar2812.dynaml.pipes.DataPipe

/**
  * Created by mandar on 14/5/16.
  */
object PlasmaML {

  val dataDir = "data/"

  var leapSecondsFile: String = dataDir+"CDFLeapSeconds.txt"

  def fileAttributesCDF(writeToFile: String) = DataPipe((file: String) => {
    val r = new CdfContent(new CdfReader(new File(file)))
    new CdfList(r, System.out, false).run()
  })
}
{'fraction_non_alphanumeric': 0.12489728841413311, 'fraction_numerical': 0.03451109285127362, 'mean_word_length': 4.486486486486487, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '4555024', 'n_tokens_mistral': 483, 'n_tokens_neox': 450, 'n_words': 87}