<commit_before>@util.renderer
def download_julia(props_obj):
    # Calculate upload_filename, add to properties, then get download url
    upload_filename = gen_upload_filename(props_obj)
    props_obj.setProperty("upload_filename", upload_filename, "download_julia")
    download_url = gen_download_url(props_obj)
    props_obj.setProperty('download_url', download_url, "download_julia")

    # Build commands to download/install julia
    if is_mac(props_obj):
        # Download the .dmg
        cmd  = "curl -L '%s' -o Julia.dmg && "%(download_url)
        # Mount it, we know not where
        cmd += "APP=$(hdiutil mount Julia.dmg | tail -1 | awk '{print $3}'); echo \"App located at: $APP;\" "
        # Search for a .app that contains a directory named "Contents/Resources/julia", copy that directory here
        cmd += "cp -Ra $APP/Contents/Resources/julia/* . && "
        # Unmount the .dmg
        cmd += "hdiutil unmount Julia.dmg"
        # Delete the .dmg
        cmd += "rm -f Julia.dmg"
    elif is_windows(props_obj):
        # TODO: Figure out how to actually do this.  :P
        cmd = "curl -L '%s' -o Julia.exe;"%(download_url)
    else:
        cmd = "curl -L '%s' | tar --strip-components=1 -zx"%(download_url)
    return ["/bin/bash", "-c", cmd]<commit_msg>Better fixes for OSX code running<commit_after>@util.renderer
def download_julia(props_obj):
    # Calculate upload_filename, add to properties, then get download url
    upload_filename = gen_upload_filename(props_obj)
    props_obj.setProperty("upload_filename", upload_filename, "download_julia")
    download_url = gen_download_url(props_obj)
    props_obj.setProperty('download_url', download_url, "download_julia")

    # Build commands to download/install julia
    if is_mac(props_obj):
        # Download the .dmg
        cmd  = "curl -L '%s' -o Julia.dmg && "%(download_url)
        # Mount the .app, parse out the mount location, copy its `julia` folder contents here.
        cmd += "cp -Ra $(hdiutil mount Julia.dmg | tail -1 | awk '{print $3}')/Contents/Resources/julia/* . && "
        # Unmount the .dmg
        cmd += "hdiutil unmount Julia.dmg"
        # Delete the .dmg
        cmd += "rm -f Julia.dmg"
    elif is_windows(props_obj):
        # TODO: Figure out how to actually do this.  :P
        cmd = "curl -L '%s' -o Julia.exe;"%(download_url)
    else:
        cmd = "curl -L '%s' | tar --strip-components=1 -zx"%(download_url)
    return ["/bin/bash", "-c", cmd]
{'fraction_non_alphanumeric': 0.12869283690813435, 'fraction_numerical': 0.0024281667341157424, 'mean_word_length': 2.930047694753577, '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': 26, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2051685', 'n_tokens_mistral': 816, 'n_tokens_neox': 798, 'n_words': 231}