<commit_before>{
  "nbformat": 4,
  "nbformat_minor": 0,
  "metadata": {
    "colab": {
      "name": "install_latest_swift.ipynb",
      "version": "0.3.2",
      "provenance": [],
      "collapsed_sections": [],
      "private_outputs": true
    },
    "kernelspec": {
      "name": "python2",
      "display_name": "Python 2"
    }
  },
  "cells": [
    {
      "metadata": {
        "id": "gulRnqbf5lP2",
        "colab_type": "code",
        "colab": {}
      },
      "cell_type": "code",
      "source": [
        "!echo \"The currently installed Swift build is:\"\n",
        "!/swift/toolchain/usr/bin/swift --version\n",
        "!echo \"\"\n",
        "!echo \"Installing the latest Swift build...\"\n",
        "!echo \"\"\n",
        "\n",
        "# Delete the current Swift installation\n",
        "!rm -rf /swift\n",
        "\n",
        "# Download and extract the swift toolchain\n",
        "!mkdir -p /swift/toolchain\n",
        "!wget -nv -O- https://storage.googleapis.com/s4tf-kokoro-artifact-testing/latest/swift-tensorflow-DEVELOPMENT-ubuntu18.04.tar.gz | tar xzf - -C /swift/toolchain\n",
        "\n",
        "# Download and register the swift kernel\n",
        "!wget -nv -O- https://storage.googleapis.com/s4tf-kokoro-artifact-testing/latest/swift-jupyter.tar.gz | tar xzf - -C /swift\n",
        "!python /swift/swift-jupyter/register.py --swift-toolchain /swift/toolchain\n",
        "\n",
        "!echo \"\"\n",
        "!echo \"The newly installed Swift build is:\"\n",
        "!/swift/toolchain/usr/bin/swift --version"
      ],
      "execution_count": 0,<commit_msg>update swift install notebook to use python3 kernel<commit_after>{
  "nbformat": 4,
  "nbformat_minor": 0,
  "metadata": {
    "colab": {
      "name": "install_latest_swift.ipynb",
      "version": "0.3.2",
      "provenance": [],
      "collapsed_sections": [],
      "private_outputs": true
    },
    "kernelspec": {
      "name": "python2",
      "display_name": "Python 2"
    }
  },
  "cells": [
    {
      "metadata": {
        "id": "gulRnqbf5lP2",
        "colab_type": "code",
        "colab": {}
      },
      "cell_type": "code",
      "source": [
        "!echo \"The currently installed Swift build is:\"\n",
        "!/swift/toolchain/usr/bin/swift --version\n",
        "!echo \"\"\n",
        "!echo \"Installing the latest Swift build...\"\n",
        "!echo \"\"\n",
        "\n",
        "# Delete the current Swift installation\n",
        "!rm -rf /swift\n",
        "\n",
        "# Download and extract the swift toolchain\n",
        "!mkdir -p /swift/toolchain\n",
        "!wget -nv -O- https://storage.googleapis.com/s4tf-kokoro-artifact-testing/latest/swift-tensorflow-DEVELOPMENT-ubuntu18.04.tar.gz | tar xzf - -C /swift/toolchain\n",
        "\n",
        "# Download and register the swift kernel\n",
        "!wget -nv -O- https://storage.googleapis.com/s4tf-kokoro-artifact-testing/latest/swift-jupyter.tar.gz | tar xzf - -C /swift\n",
        "!python3 /swift/swift-jupyter/register.py --swift-toolchain /swift/toolchain\n",
        "\n",
        "!echo \"\"\n",
        "!echo \"The newly installed Swift build is:\"\n",
        "!/swift/toolchain/usr/bin/swift --version"
      ],
      "execution_count": 0,
{'fraction_non_alphanumeric': 0.19158735032238255, 'fraction_numerical': 0.010439054344488793, 'mean_word_length': 2.0448598130841122, 'pattern_counts': {'":': 40, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7374228', 'n_tokens_mistral': 1216, 'n_tokens_neox': 1135, 'n_words': 226}