<commit_before><<<<<<< HEAD
package data

import (
  // "fmt"
  // "io/ioutil"
  // "log"
  // "os"
  "testing"
)

func TestData(t *testing.T) {
  var s []byte
  reader := NewReader(s)
  reader.Read(100)
  _ = reader
}
=======
/*
Test of the function and methods in data.go
*/
package data

import (
	"testing"
	"fmt"
)

func TestRead(t *testing.T) {
	testData := []byte{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12}
	reader := NewReader(testData)
	one := reader.Read(1)
	if one != 1 {
		t.Fail()
	}
	two := reader.Read(2)
	fmt.Printf("Two equals %d", two)
	if two != 515 {
		t.Fail()
	}
}
// struct for Reader


// struct for Writer


// def read(self, size)

// def readBytes(self, size)

// def readString(self)

// def readAll(self)

// def hasBytes(self)

// def __str__(self)

// def write(self, size, value

// def writeBytes(self, bytes)

// def writeString(self, s)

// def getBytes(self)

// def getSize(self)

// def __str__(self)
>>>>>>> moof<commit_msg>Update data_test.go<commit_after>package data

import (
  // "fmt"
  // "io/ioutil"
  // "log"
  // "os"
  "testing"
)

func TestData(t *testing.T) {
  var s []byte
  reader := NewReader(s)
  reader.Read(100)
  _ = reader
}

/*
Test of the function and methods in data.go
*/
package data

import (
	"testing"
	"fmt"
)

func TestRead(t *testing.T) {
	testData := []byte{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12}
	reader := NewReader(testData)
	one := reader.Read(1)
	if one != 1 {
		t.Fail()
	}
	two := reader.Read(2)
	fmt.Printf("Two equals %d", two)
	if two != 515 {
		t.Fail()
	}
}
// struct for Reader


// struct for Writer


// def read(self, size)

// def readBytes(self, size)

// def readString(self)

// def readAll(self)

// def hasBytes(self)

// def __str__(self)

// def write(self, size, value

// def writeBytes(self, bytes)

// def writeString(self, s)

// def getBytes(self)

// def getSize(self)

// def __str__(self)
{'fraction_non_alphanumeric': 0.1872025383395029, 'fraction_numerical': 0.02538339502908514, 'mean_word_length': 2.8533604887983706, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, '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': '1499795', 'n_tokens_mistral': 823, 'n_tokens_neox': 772, 'n_words': 205}