Skip to content

Commit

Permalink
Add missing copyright headers. (rapidsai#11712)
Browse files Browse the repository at this point in the history
While working on rapidsai#11711, I noticed a set of files that did not have copyright headers in place. This PR fixes them. I used the "start year" from the output of `git log` indicating the first commit to each file.

Authors:
  - Bradley Dice (https://github.com/bdice)

Approvers:
  - GALI PREM SAGAR (https://github.com/galipremsagar)
  - Jordan Jacobelli (https://github.com/Ethyling)
  - Nghia Truong (https://github.com/ttnghia)

URL: rapidsai#11712
  • Loading branch information
bdice authored Sep 19, 2022
1 parent 972708a commit cccf191
Show file tree
Hide file tree
Showing 25 changed files with 96 additions and 7 deletions.
1 change: 1 addition & 0 deletions ci/gpu/test-notebooks.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
# Copyright (c) 2020-2022, NVIDIA CORPORATION.

NOTEBOOKS_DIR="$WORKSPACE/notebooks"
NBTEST="$WORKSPACE/ci/utils/nbtest.sh"
Expand Down
1 change: 1 addition & 0 deletions ci/local/build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
# Copyright (c) 2019-2022, NVIDIA CORPORATION.

GIT_DESCRIBE_TAG=`git describe --tags`
MINOR_VERSION=`echo $GIT_DESCRIBE_TAG | grep -o -E '([0-9]+\.[0-9]+)'`
Expand Down
1 change: 1 addition & 0 deletions ci/utils/nbtest.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
# Copyright (c) 2020-2022, NVIDIA CORPORATION.

MAGIC_OVERRIDE_CODE="
def my_run_line_magic(*args, **kwargs):
Expand Down
16 changes: 16 additions & 0 deletions cpp/examples/basic/src/process_csv.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2021-2022, NVIDIA CORPORATION.
*
* Licensed 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.
*/

#include <cudf/aggregation.hpp>
#include <cudf/groupby.hpp>
#include <cudf/io/csv.hpp>
Expand Down
15 changes: 15 additions & 0 deletions cpp/include/cudf/io/text/detail/tile_state.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/*
* Copyright (c) 2021-2022, NVIDIA CORPORATION.
*
* Licensed 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.
*/

#pragma once

Expand Down
16 changes: 16 additions & 0 deletions cpp/tests/utilities/table_utilities.cu
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2019-2022, NVIDIA CORPORATION.
*
* Licensed 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.
*/

#include <cudf_test/column_utilities.hpp>
#include <cudf_test/table_utilities.hpp>

Expand Down
2 changes: 2 additions & 0 deletions docs/cudf/source/_ext/PandasCompat.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) 2021-2022, NVIDIA CORPORATION

# This file is adapted from official sphinx tutorial for `todo` extension:
# https://www.sphinx-doc.org/en/master/development/tutorials/todo.html

Expand Down
15 changes: 8 additions & 7 deletions print_env.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/usr/bin/env bash
# Copyright (c) 2022, NVIDIA CORPORATION.
# Reports relevant environment information useful for diagnosing and
# debugging cuDF issues.
# Usage:
# Usage:
# "./print_env.sh" - prints to stdout
# "./print_env.sh > env.txt" - prints to file "env.txt"

Expand All @@ -14,32 +15,32 @@ git submodule status --recursive
else
echo "Not inside a git repository"
fi
echo
echo

echo "***OS Information***"
cat /etc/*-release
uname -a
echo
echo

echo "***GPU Information***"
nvidia-smi
echo
echo

echo "***CPU***"
lscpu
echo

echo "***CMake***"
which cmake && cmake --version
echo
echo

echo "***g++***"
which g++ && g++ --version
echo
echo

echo "***nvcc***"
which nvcc && nvcc --version
echo
echo

echo "***Python***"
which python && python -c "import sys; print('Python {0}.{1}.{2}'.format(sys.version_info[0], sys.version_info[1], sys.version_info[2]))"
Expand Down
2 changes: 2 additions & 0 deletions python/cudf/cudf/_lib/cpp/datetime.pxd
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) 2020-2022, NVIDIA CORPORATION.

from libcpp.memory cimport unique_ptr

from cudf._lib.cpp.column.column cimport column
Expand Down
2 changes: 2 additions & 0 deletions python/cudf/cudf/core/udf/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
# Copyright (c) 2021-2022, NVIDIA CORPORATION.

from . import typing, lowering
2 changes: 2 additions & 0 deletions python/cudf/cudf/core/udf/_ops.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) 2021-2022, NVIDIA CORPORATION.

import math
import operator

Expand Down
3 changes: 3 additions & 0 deletions python/cudf/cudf/core/udf/api.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) 2021-2022, NVIDIA CORPORATION.


class Masked:
"""
Most of the time, MaskedType as defined in typing.py
Expand Down
2 changes: 2 additions & 0 deletions python/cudf/cudf/core/window/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
# Copyright (c) 2019-2022, NVIDIA CORPORATION

from cudf.core.window.rolling import Rolling
2 changes: 2 additions & 0 deletions python/cudf/cudf/tests/test_apply_rows.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) 2019-2022, NVIDIA CORPORATION.

import pytest

import cudf
Expand Down
2 changes: 2 additions & 0 deletions python/cudf/cudf/tests/test_datasets.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) 2019-2022, NVIDIA CORPORATION.

import numpy as np

import cudf as gd
Expand Down
2 changes: 2 additions & 0 deletions python/cudf/cudf/tests/test_numpy_interop.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) 2019-2022, NVIDIA CORPORATION.

import numpy as np
import pytest

Expand Down
2 changes: 2 additions & 0 deletions python/cudf/cudf/tests/test_query_mask.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) 2019-2022, NVIDIA CORPORATION.

import numpy as np
import pandas as pd
import pytest
Expand Down
2 changes: 2 additions & 0 deletions python/dask_cudf/dask_cudf/io/json.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) 2019-2022, NVIDIA CORPORATION.

from functools import partial

import dask
Expand Down
2 changes: 2 additions & 0 deletions python/dask_cudf/dask_cudf/io/tests/test_csv.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) 2019-2022, NVIDIA CORPORATION.

import gzip
import os
import warnings
Expand Down
2 changes: 2 additions & 0 deletions python/dask_cudf/dask_cudf/io/tests/test_json.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) 2019-2022, NVIDIA CORPORATION.

import os

import pandas as pd
Expand Down
3 changes: 3 additions & 0 deletions python/dask_cudf/dask_cudf/tests/test_delayed_io.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Copyright (c) 2019-2022, NVIDIA CORPORATION.

"""
Test IO with dask.delayed API
"""

import numpy as np
import pytest
from pandas.testing import assert_frame_equal
Expand Down
2 changes: 2 additions & 0 deletions python/dask_cudf/dask_cudf/tests/test_dispatch.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) 2021-2022, NVIDIA CORPORATION.

import pandas as pd

from dask.dataframe.methods import is_categorical_dtype
Expand Down
2 changes: 2 additions & 0 deletions python/dask_cudf/dask_cudf/tests/test_join.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) 2019-2022, NVIDIA CORPORATION.

from functools import partial

import numpy as np
Expand Down
2 changes: 2 additions & 0 deletions python/dask_cudf/dask_cudf/tests/test_sort.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) 2019-2022, NVIDIA CORPORATION.

import cupy as cp
import numpy as np
import pytest
Expand Down
2 changes: 2 additions & 0 deletions python/dask_cudf/dask_cudf/tests/test_struct.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) 2021-2022, NVIDIA CORPORATION.

import pytest

import cudf
Expand Down

0 comments on commit cccf191

Please sign in to comment.