<commit_before>import os

"""DEFUNCT
darwin    arm
darwin    arm64
dragonfly    amd64
freebsd    386
freebsd    amd64
freebsd    arm
linux    386
linux    arm64
linux    ppc64le
netbsd    386
netbsd    amd64
netbsd    arm
openbsd    386
openbsd    amd64
openbsd    arm
plan9    386
plan9    amd64
solaris    amd64
windows    386
darwin    386
darwin    amd64
linux    arm
linux    ppc64
windows    amd64"""

arches = """linux    amd64
windows amd64
linux    arm
darwin    amd64"""

arches = arches.split("\n")
version = "1.3.0"
try:
    os.system("rm -rf builds")
except:
    pass
os.mkdir("builds")

for arch in arches:
    goos = arch.split()[0]
    goarch = arch.split()[1]

    exe = ""
    if "windows" in goos:
        exe = ".exe"
    cmd1  = 'env GOOS=%(goos)s GOARCH=%(goarch)s go build -o builds/musicsaur-%(version)s-%(goos)s-%(goarch)s%(exe)s -v *.go' % {'goos':goos,'goarch':goarch,'exe':exe,'version':version}
    cmd2 = 'tar -cvzf musicsaur-%(version)s-%(goos)s-%(goarch)s%(exe)s.tar.gz ./templates ./static config.cfg musicsaur-%(version)s-%(goos)s-%(goarch)s%(exe)s' % {'goos':goos,'goarch':goarch,'exe':exe,'version':version}
    print(cmd1)
    os.system(cmd1)
    os.chdir("builds")
    os.system('cp -r ../static ./')
    os.system('cp -r ../templates ./')
    os.system('cp ../config-go.cfg ./config.cfg')
    print(cmd2)
    os.system(cmd2)
    cmd3 = 'rm -rf templates && rm -rf static && rm config.cfg && rm musicsaur-%(version)s-%(goos)s-%(goarch)s%(exe)s' % {'goos':goos,'goarch':goarch,'exe':exe,'version':version}
    print(cmd3)
    os.system(cmd3)
    os.chdir("../")<commit_msg>Changed to .zip<commit_after>import os

"""DEFUNCT
darwin    arm
darwin    arm64
dragonfly    amd64
freebsd    386
freebsd    amd64
freebsd    arm
linux    386
linux    arm64
linux    ppc64le
netbsd    386
netbsd    amd64
netbsd    arm
openbsd    386
openbsd    amd64
openbsd    arm
plan9    386
plan9    amd64
solaris    amd64
windows    386
darwin    386
darwin    amd64
linux    arm
linux    ppc64
windows    amd64"""

arches = """linux    amd64
windows amd64
linux    arm
darwin    amd64"""

arches = arches.split("\n")
version = "1.3.0"
try:
    os.system("rm -rf builds")
except:
    pass
os.mkdir("builds")

for arch in arches:
    goos = arch.split()[0]
    goarch = arch.split()[1]

    exe = ""
    if "windows" in goos:
        exe = ".exe"
    cmd1  = 'env GOOS=%(goos)s GOARCH=%(goarch)s go build -o builds/musicsaur-%(version)s-%(goos)s-%(goarch)s%(exe)s -v *.go' % {'goos':goos,'goarch':goarch,'exe':exe,'version':version}
    cmd2 = 'zip musicsaur-%(version)s-%(goos)s-%(goarch)s%(exe)s.zip ./templates ./static config.cfg musicsaur-%(version)s-%(goos)s-%(goarch)s%(exe)s' % {'goos':goos,'goarch':goarch,'exe':exe,'version':version}
    print(cmd1)
    os.system(cmd1)
    os.chdir("builds")
    os.system('cp -r ../static ./')
    os.system('cp -r ../templates ./')
    os.system('cp ../config-go.cfg ./config.cfg')
    print(cmd2)
    os.system(cmd2)
    cmd3 = 'rm -rf templates && rm -rf static && rm config.cfg && rm musicsaur-%(version)s-%(goos)s-%(goarch)s%(exe)s' % {'goos':goos,'goarch':goarch,'exe':exe,'version':version}
    print(cmd3)
    os.system(cmd3)
    os.chdir("../")
{'fraction_non_alphanumeric': 0.1739807033924681, 'fraction_numerical': 0.041705571117335825, 'mean_word_length': 3.0529634300126105, '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': '3254975', 'n_tokens_mistral': 1398, 'n_tokens_neox': 1251, 'n_words': 270}