<commit_before>package net.akmorrow13.endive.utils

import java.io.ByteArrayInputStream
import net.akmorrow13.endive.processing.{RNARecord, PeakRecord}
import org.apache.spark.rdd.RDD
import org.apache.spark.{SparkConf, SparkContext}
import org.bdgenomics.adam.models.ReferenceRegion
import scala.util.{ Try, Success, Failure }

object LabeledWindowLoader {

  def stringToLabeledWindow(str: String): LabeledWindow = {
    val d = str.split(Window.OUTERDELIM)
    val dataArray = d(0).split(Window.CHIPSEQDELIM)<commit_msg>fixed window loader<commit_after>package net.akmorrow13.endive.utils

import java.io.ByteArrayInputStream
import net.akmorrow13.endive.processing.{RNARecord, PeakRecord}
import org.apache.spark.rdd.RDD
import org.apache.spark.{SparkConf, SparkContext}
import org.bdgenomics.adam.models.ReferenceRegion
import scala.util.{ Try, Success, Failure }

object LabeledWindowLoader {

  def stringToLabeledWindow(str: String): LabeledWindow = {

    val d = str.split(Window.OUTERDELIM)
    val dataArray = d(0).split(Window.CHIPSEQDELIM)
{'fraction_non_alphanumeric': 0.10256410256410256, 'fraction_numerical': 0.00949667616334283, 'mean_word_length': 5.8441558441558445, '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': '6887851', 'n_tokens_mistral': 374, 'n_tokens_neox': 341, 'n_words': 63}