<commit_before>// fileportal project main.go
package main

import (
	"flag"
	"fmt"
	"io"
	"log"
	"net"
	"os"
	"time"
)

var Input = flag.String("i", "", "Input File")
var Output = flag.String("o", "", "Output File")

func main() {
	flag.Parse()

	if *Input != "" && *Output != "" {
		fmt.Println("You can only specify an input OR an output, not both!")
		os.Exit(0)
	}

	if *Input != "" {
		fileL, _ := net.Listen("tcp", ":0")
		port := fileL.Addr().(*net.TCPAddr).Port
		addrs, _ := net.InterfaceAddrs()
		beacon := time.NewTicker(1 * time.Second)
		go func() {

			udpAddr, _ := net.ResolveUDPAddr("udp4", ":6534")
			broadcast, _ := net.ResolveUDPAddr("udp4", "255.255.255.255:6534")
			c, _ := net.ListenUDP("udp4", udpAddr)
			defer c.Close()
			for range beacon.C {
				if len(addrs) == 0 {
					addrs, _ = net.InterfaceAddrs()
				}

				addr := (&net.TCPAddr{IP: addrs[0].(*net.IPAddr).IP, Zone: addrs[0].(*net.IPAddr).Zone, Port: port}).String()
				c.WriteToUDP([]byte(addr), broadcast)
				addrs = addrs[1:]
			}
		}()

		c, _ := fileL.Accept()
		fileL.Close()

		beacon.Stop()

		f, _ := os.Open(*Input)<commit_msg>IPNet<commit_after>// fileportal project main.go
package main

import (
	"flag"
	"fmt"
	"io"
	"log"
	"net"
	"os"
	"time"
)

var Input = flag.String("i", "", "Input File")
var Output = flag.String("o", "", "Output File")

func main() {
	flag.Parse()

	if *Input != "" && *Output != "" {
		fmt.Println("You can only specify an input OR an output, not both!")
		os.Exit(0)
	}

	if *Input != "" {
		fileL, _ := net.Listen("tcp", ":0")
		port := fileL.Addr().(*net.TCPAddr).Port
		addrs, _ := net.InterfaceAddrs()
		beacon := time.NewTicker(1 * time.Second)
		go func() {

			udpAddr, _ := net.ResolveUDPAddr("udp4", ":6534")
			broadcast, _ := net.ResolveUDPAddr("udp4", "255.255.255.255:6534")
			c, _ := net.ListenUDP("udp4", udpAddr)
			defer c.Close()
			for range beacon.C {
				if len(addrs) == 0 {
					addrs, _ = net.InterfaceAddrs()
				}

				addr := (&net.TCPAddr{IP: addrs[0].(*net.IPNet).IP, Port: port}).String()
				c.WriteToUDP([]byte(addr), broadcast)
				addrs = addrs[1:]
			}
		}()

		c, _ := fileL.Accept()
		fileL.Close()

		beacon.Stop()

		f, _ := os.Open(*Input)
{'fraction_non_alphanumeric': 0.21266968325791855, 'fraction_numerical': 0.02669683257918552, 'mean_word_length': 3.251923076923077, 'pattern_counts': {'":': 4, '<': 3, '<?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': '1702275', 'n_tokens_mistral': 1023, 'n_tokens_neox': 897, 'n_words': 181}