<commit_before>package main


import (
    "fmt"
    "log"
    "net"
    "os/exec"
    "os"
    "io"
    // "bufio"
)


func main() {
    
    gremlinIP := "127.0.0.1"
    gremlinPort := "8888"
    
    clear()
    fmt.Println("ʕ◔ϖ◔ʔ  Welcome to the GO Gremlin Client Process!!!  ʕ◔ϖ◔ʔ")
    
    //Open File
    file, err := os.Open("go.png")
    checkError(err)   
   
    //Connect to Gremlin
    conn, err := net.Dial("tcp", gremlinIP+":"+gremlinPort)
    checkError(err)
    fmt.Println("Sending File ...")
    //Sends to file to Gremlin
    //Copy over the data. DataReceive <-- DataSend    
    status, err := io.Copy(conn,file)
    checkError(err)
    fmt.Println(status)
    fmt.Println("Done Sending")
   
}

//General Error Catching 
func checkError(err error)  {
    if err != nil {
        log.Fatal(err)
    }<commit_msg>Made progress reading file in parts<commit_after>package main


import (
    "fmt"
    "log"
    "net"
    "os/exec"
    "os"
    "io"
    // "bufio"
)


func main() {
    
    gremlinIP := "127.0.0.1"
    gremlinPort := "8888"
    
    clear()
    fmt.Println("ʕ◔ϖ◔ʔ  Welcome to the GO Gremlin Client Process!!!  ʕ◔ϖ◔ʔ")
    
    //Open File
    file, err := os.Open("go.png")
    testFile, _ := os.Create("testfile.png.")
    
    
    //Making 32 byte buffer
    buff := make([]byte , 32)
    
    
    var offSet int64
    offSet = 0
    for{
        _, err := file.ReadAt(buff, offSet)
        testFile.Write(buff)
       if (err == io.EOF) {
           break;
       }else{
           checkError(err)
       }
       offSet = offSet + 32
    }
    
    
    
    
    
    
    checkError(err)   
   
    //Connect to Gremlin
    conn, err := net.Dial("tcp", gremlinIP+":"+gremlinPort)
    checkError(err)
    fmt.Println("Sending File ...")
    //Sends to file to Gremlin
    //Copy over the data. DataReceive <-- DataSend    
    status, err := io.Copy(conn,file)
    checkError(err)
    fmt.Println(status)
    fmt.Println("Done Sending")
   
}

//General Error Catching 
func checkError(err error)  {
    if err != nil {
        log.Fatal(err)
    }
{'fraction_non_alphanumeric': 0.14326647564469913, 'fraction_numerical': 0.013849092645654251, 'mean_word_length': 1.8581173260572987, 'pattern_counts': {'":': 2, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '7261806', 'n_tokens_mistral': 828, 'n_tokens_neox': 778, 'n_words': 173}