From 2fde23bb38961dc631121f53ae10ba7f2d020fb9 Mon Sep 17 00:00:00 2001 From: Brian Coutinho Date: Thu, 5 Jun 2025 16:31:32 -0700 Subject: [PATCH] copyright headers 3/n Summary: X-link: https://github.com/pytorch-labs/chakra_replay/pull/5 Add more fixes to copyright Reviewed By: shengfukevin Differential Revision: D76088188 --- et_replay/execution_trace.py | 16 ++++++++++++++++ et_replay/tools/comm_replay.py | 1 - et_replay/tools/et_replay.py | 16 ++++++++++++++++ et_replay/tools/validate_trace.py | 16 ++++++++++++++++ 4 files changed, 48 insertions(+), 1 deletion(-) diff --git a/et_replay/execution_trace.py b/et_replay/execution_trace.py index 8e24aa2a..e3e7901c 100644 --- a/et_replay/execution_trace.py +++ b/et_replay/execution_trace.py @@ -1,3 +1,19 @@ +#!/usr/bin/env python3 + +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# 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. + from __future__ import annotations import argparse diff --git a/et_replay/tools/comm_replay.py b/et_replay/tools/comm_replay.py index 27d5709c..8e58d606 100644 --- a/et_replay/tools/comm_replay.py +++ b/et_replay/tools/comm_replay.py @@ -14,7 +14,6 @@ # See the License for the specific language governing permissions and # limitations under the License. - import argparse import gzip import json diff --git a/et_replay/tools/et_replay.py b/et_replay/tools/et_replay.py index 14cf93f8..72ea8e27 100644 --- a/et_replay/tools/et_replay.py +++ b/et_replay/tools/et_replay.py @@ -1,3 +1,19 @@ +#!/usr/bin/env python3 + +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# 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. + import argparse import gc import json diff --git a/et_replay/tools/validate_trace.py b/et_replay/tools/validate_trace.py index f44c4111..809de138 100644 --- a/et_replay/tools/validate_trace.py +++ b/et_replay/tools/validate_trace.py @@ -1,3 +1,19 @@ +#!/usr/bin/env python3 + +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# 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. + from __future__ import annotations import gzip