From f83b29c1d01673e85a22d17697eeb9a912015e75 Mon Sep 17 00:00:00 2001 From: liferoad Date: Thu, 23 Mar 2023 14:22:21 -0400 Subject: [PATCH] Move license to a code block (#25950) Co-authored-by: xqhu --- .../learn_beam_basics_by_doing.ipynb | 46 +++++++++++-------- .../get-started/try-apache-beam-go.ipynb | 46 +++++++++++-------- .../get-started/try-apache-beam-java.ipynb | 46 +++++++++++-------- .../get-started/try-apache-beam-py.ipynb | 46 +++++++++++-------- 4 files changed, 112 insertions(+), 72 deletions(-) diff --git a/examples/notebooks/get-started/learn_beam_basics_by_doing.ipynb b/examples/notebooks/get-started/learn_beam_basics_by_doing.ipynb index e44b2d8d2164..0fc0ffcf4ae2 100644 --- a/examples/notebooks/get-started/learn_beam_basics_by_doing.ipynb +++ b/examples/notebooks/get-started/learn_beam_basics_by_doing.ipynb @@ -10,6 +10,34 @@ "\"Open" ] }, + { + "cell_type": "code", + "execution_count": null, + "source": [ + "#@title ###### Licensed to the Apache Software Foundation (ASF), Version 2.0 (the \"License\")\n", + "\n", + "# Licensed to the Apache Software Foundation (ASF) under one\n", + "# or more contributor license agreements. See the NOTICE file\n", + "# distributed with this work for additional information\n", + "# regarding copyright ownership. The ASF licenses this file\n", + "# to you under the Apache License, Version 2.0 (the\n", + "# \"License\"); you may not use this file except in compliance\n", + "# with the License. You may obtain a copy of the License at\n", + "#\n", + "# http://www.apache.org/licenses/LICENSE-2.0\n", + "#\n", + "# Unless required by applicable law or agreed to in writing,\n", + "# software distributed under the License is distributed on an\n", + "# \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n", + "# KIND, either express or implied. See the License for the\n", + "# specific language governing permissions and limitations\n", + "# under the License." + ], + "outputs": [], + "metadata": { + "cellView": "form" + } + }, { "cell_type": "markdown", "metadata": { @@ -1044,24 +1072,6 @@ ] } ], - "license": [ - "Licensed to the Apache Software Foundation (ASF) under one", - "or more contributor license agreements. See the NOTICE file", - "distributed with this work for additional information", - "regarding copyright ownership. The ASF licenses this file", - "to you under the Apache License, Version 2.0 (the", - "\"License\"); you may not use this file except in compliance", - "with the License. You may obtain a copy of the License at", - "", - " http://www.apache.org/licenses/LICENSE-2.0", - "", - "Unless required by applicable law or agreed to in writing,", - "software distributed under the License is distributed on an", - "\"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY", - "KIND, either express or implied. See the License for the", - "specific language governing permissions and limitations", - "under the License." - ], "metadata": { "colab": { "provenance": [], diff --git a/examples/notebooks/get-started/try-apache-beam-go.ipynb b/examples/notebooks/get-started/try-apache-beam-go.ipynb index a0922911c173..7e049af14c38 100644 --- a/examples/notebooks/get-started/try-apache-beam-go.ipynb +++ b/examples/notebooks/get-started/try-apache-beam-go.ipynb @@ -1,22 +1,4 @@ { - "license": [ - "Licensed to the Apache Software Foundation (ASF) under one", - "or more contributor license agreements. See the NOTICE file", - "distributed with this work for additional information", - "regarding copyright ownership. The ASF licenses this file", - "to you under the Apache License, Version 2.0 (the", - "\"License\"); you may not use this file except in compliance", - "with the License. You may obtain a copy of the License at", - "", - " http://www.apache.org/licenses/LICENSE-2.0", - "", - "Unless required by applicable law or agreed to in writing,", - "software distributed under the License is distributed on an", - "\"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY", - "KIND, either express or implied. See the License for the", - "specific language governing permissions and limitations", - "under the License." - ], "nbformat": 4, "cells": [ { @@ -29,6 +11,34 @@ "id": "view-in-github" } }, + { + "cell_type": "code", + "execution_count": null, + "source": [ + "#@title ###### Licensed to the Apache Software Foundation (ASF), Version 2.0 (the \"License\")\n", + "\n", + "# Licensed to the Apache Software Foundation (ASF) under one\n", + "# or more contributor license agreements. See the NOTICE file\n", + "# distributed with this work for additional information\n", + "# regarding copyright ownership. The ASF licenses this file\n", + "# to you under the Apache License, Version 2.0 (the\n", + "# \"License\"); you may not use this file except in compliance\n", + "# with the License. You may obtain a copy of the License at\n", + "#\n", + "# http://www.apache.org/licenses/LICENSE-2.0\n", + "#\n", + "# Unless required by applicable law or agreed to in writing,\n", + "# software distributed under the License is distributed on an\n", + "# \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n", + "# KIND, either express or implied. See the License for the\n", + "# specific language governing permissions and limitations\n", + "# under the License." + ], + "outputs": [], + "metadata": { + "cellView": "form" + } + }, { "source": [ "# Try Apache Beam - Go\n", diff --git a/examples/notebooks/get-started/try-apache-beam-java.ipynb b/examples/notebooks/get-started/try-apache-beam-java.ipynb index 974ac58fbc15..b19030177f28 100644 --- a/examples/notebooks/get-started/try-apache-beam-java.ipynb +++ b/examples/notebooks/get-started/try-apache-beam-java.ipynb @@ -1,22 +1,4 @@ { - "license": [ - "Licensed to the Apache Software Foundation (ASF) under one", - "or more contributor license agreements. See the NOTICE file", - "distributed with this work for additional information", - "regarding copyright ownership. The ASF licenses this file", - "to you under the Apache License, Version 2.0 (the", - "\"License\"); you may not use this file except in compliance", - "with the License. You may obtain a copy of the License at", - "", - " http://www.apache.org/licenses/LICENSE-2.0", - "", - "Unless required by applicable law or agreed to in writing,", - "software distributed under the License is distributed on an", - "\"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY", - "KIND, either express or implied. See the License for the", - "specific language governing permissions and limitations", - "under the License." - ], "nbformat": 4, "nbformat_minor": 0, "metadata": { @@ -44,6 +26,34 @@ "\"Open" ] }, + { + "cell_type": "code", + "execution_count": null, + "source": [ + "#@title ###### Licensed to the Apache Software Foundation (ASF), Version 2.0 (the \"License\")\n", + "\n", + "# Licensed to the Apache Software Foundation (ASF) under one\n", + "# or more contributor license agreements. See the NOTICE file\n", + "# distributed with this work for additional information\n", + "# regarding copyright ownership. The ASF licenses this file\n", + "# to you under the Apache License, Version 2.0 (the\n", + "# \"License\"); you may not use this file except in compliance\n", + "# with the License. You may obtain a copy of the License at\n", + "#\n", + "# http://www.apache.org/licenses/LICENSE-2.0\n", + "#\n", + "# Unless required by applicable law or agreed to in writing,\n", + "# software distributed under the License is distributed on an\n", + "# \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n", + "# KIND, either express or implied. See the License for the\n", + "# specific language governing permissions and limitations\n", + "# under the License." + ], + "outputs": [], + "metadata": { + "cellView": "form" + } + }, { "metadata": { "id": "lNKIMlEDZ_Vw", diff --git a/examples/notebooks/get-started/try-apache-beam-py.ipynb b/examples/notebooks/get-started/try-apache-beam-py.ipynb index 50dda3a4d7ea..f243547979d7 100644 --- a/examples/notebooks/get-started/try-apache-beam-py.ipynb +++ b/examples/notebooks/get-started/try-apache-beam-py.ipynb @@ -1,22 +1,4 @@ { - "license": [ - "Licensed to the Apache Software Foundation (ASF) under one", - "or more contributor license agreements. See the NOTICE file", - "distributed with this work for additional information", - "regarding copyright ownership. The ASF licenses this file", - "to you under the Apache License, Version 2.0 (the", - "\"License\"); you may not use this file except in compliance", - "with the License. You may obtain a copy of the License at", - "", - " http://www.apache.org/licenses/LICENSE-2.0", - "", - "Unless required by applicable law or agreed to in writing,", - "software distributed under the License is distributed on an", - "\"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY", - "KIND, either express or implied. See the License for the", - "specific language governing permissions and limitations", - "under the License." - ], "nbformat": 4, "nbformat_minor": 0, "metadata": { @@ -44,6 +26,34 @@ "\"Open" ] }, + { + "cell_type": "code", + "execution_count": null, + "source": [ + "#@title ###### Licensed to the Apache Software Foundation (ASF), Version 2.0 (the \"License\")\n", + "\n", + "# Licensed to the Apache Software Foundation (ASF) under one\n", + "# or more contributor license agreements. See the NOTICE file\n", + "# distributed with this work for additional information\n", + "# regarding copyright ownership. The ASF licenses this file\n", + "# to you under the Apache License, Version 2.0 (the\n", + "# \"License\"); you may not use this file except in compliance\n", + "# with the License. You may obtain a copy of the License at\n", + "#\n", + "# http://www.apache.org/licenses/LICENSE-2.0\n", + "#\n", + "# Unless required by applicable law or agreed to in writing,\n", + "# software distributed under the License is distributed on an\n", + "# \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n", + "# KIND, either express or implied. See the License for the\n", + "# specific language governing permissions and limitations\n", + "# under the License." + ], + "outputs": [], + "metadata": { + "cellView": "form" + } + }, { "metadata": { "id": "lNKIMlEDZ_Vw",