<commit_before>// Copyright 2012 the u-root Authors. All rights reserved
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

/*
Wget reads one file from the argument and writes it on the standard output.
*/

package main

import (
	"io"
	"log"
	"net/http"
	"os"
	"path"
	"path/filepath"
	"syscall"
)

const tcz = "/tinycorelinux.net/5.x/x86/tcz"

func linkone(p string, i os.FileInfo, err error) error {
	log.Printf("symtree: p %v\n", p)
	if err != nil {
		return err
	}
<commit_msg>Piecing it together. It's awful<commit_after>// Copyright 2012 the u-root Authors. All rights reserved
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

/*
Wget reads one file from the argument and writes it on the standard output.
*/

package main

import (
	"fmt"
	"io"
	"log"
	"net/http"
	"os"
	"path"
	"path/filepath"
	"syscall"
)

const tcz = "/tinycorelinux.net/5.x/x86/tcz"

// consider making this a goroutine which pushes the string down the channel.
func findloop() (name string, err error) {
     for i := 0; i < 1024; i++ {
     	 l := fmt.Sprintf("/dev/loop%d", i)
	 f, err := os.Open(l)
	 if err != nil {
	    continue
	    }
	    _, err = f.Stat()
	    if err != nil {
	       continue
	       }
	       // if we can get the status, it's in use, too bad.
		// so do this:
//ioctl(3, LOOP_GET_STATUS, {number=0, offset=0, flags=0, name="encstateful", ...}) = 0
//	   and if is 0, you failed; if it fails, you succeed.
	   }
	   return name, nil
}
func linkone(p string, i os.FileInfo, err error) error {
	log.Printf("symtree: p %v\n", p)
	if err != nil {
		return err
	}

{'fraction_non_alphanumeric': 0.13066825775656324, 'fraction_numerical': 0.014916467780429593, 'mean_word_length': 2.751677852348993, 'pattern_counts': {'":': 0, '<': 4, '<?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': '4175989', 'n_tokens_mistral': 635, 'n_tokens_neox': 599, 'n_words': 224}