Skip to content

Commit 7a35ff7

Browse files
committed
Add copyright headers to .kt, .py, .sh, .cpp files (T261228226)
Fixes T261228226: OSS compliance failures in executorch-examples. Changes: - Added Meta BSD-style copyright headers to .kt, .py, .sh, and .cpp files in whisper/, parakeet/, dl3/, mv2/, llm/, and program-data-separation/ directories - Excluded .gradle.kts, .pro (ProGuard), README.md, and cifar/ (external) The copyright header uses the standard Meta format: Copyright (c) Meta Platforms, Inc. and affiliates. Licensed under the BSD-style license found in the LICENSE file.
1 parent bf24ba4 commit 7a35ff7

25 files changed

Lines changed: 191 additions & 0 deletions

File tree

dl3/android/DeepLabV3Demo/export_model.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# Copyright (c) Meta Platforms, Inc. and affiliates.
2+
# All rights reserved.
3+
#
4+
# This source code is licensed under the BSD-style license found in the
5+
# LICENSE file in the root directory of this source tree.
6+
17
import torch
28
import torchvision.models as models
39
from executorch.backends.xnnpack.partition.xnnpack_partitioner import XnnpackPartitioner

mv2/cpp/build.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
#!/bin/bash
2+
3+
# Copyright (c) Meta Platforms, Inc. and affiliates.
4+
# All rights reserved.
5+
#
6+
# This source code is licensed under the BSD-style license found in the
7+
# LICENSE file in the root directory of this source tree.
8+
29
set -e
310

411
# Create build directory if it doesn't exist

mv2/cpp/main.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/*
2+
* Copyright (c) Meta Platforms, Inc. and affiliates.
3+
* All rights reserved.
4+
*
5+
* This source code is licensed under the BSD-style license found in the
6+
* LICENSE file in the root directory of this source tree.
7+
*/
8+
19
#include <executorch/extension/module/module.h>
210
#include <executorch/extension/tensor/tensor.h>
311
#include <iostream>

mv2/python/export.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# Copyright (c) Meta Platforms, Inc. and affiliates.
2+
# All rights reserved.
3+
#
4+
# This source code is licensed under the BSD-style license found in the
5+
# LICENSE file in the root directory of this source tree.
6+
17
import torch
28
import torchvision.models as models
39
from torchvision.models.mobilenetv2 import MobileNet_V2_Weights

mv2/python/run.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# Copyright (c) Meta Platforms, Inc. and affiliates.
2+
# All rights reserved.
3+
#
4+
# This source code is licensed under the BSD-style license found in the
5+
# LICENSE file in the root directory of this source tree.
6+
17
import torch
28
from executorch.runtime import Runtime
39
from typing import List

parakeet/android/ParakeetApp/app/src/main/java/com/example/parakeetapp/MainActivity.kt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/*
2+
* Copyright (c) Meta Platforms, Inc. and affiliates.
3+
* All rights reserved.
4+
*
5+
* This source code is licensed under the BSD-style license found in the
6+
* LICENSE file in the root directory of this source tree.
7+
*/
8+
19
package com.example.parakeetapp
210

311
import android.Manifest

parakeet/android/ParakeetApp/app/src/main/java/com/example/parakeetapp/ModelDownloadScreen.kt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/*
2+
* Copyright (c) Meta Platforms, Inc. and affiliates.
3+
* All rights reserved.
4+
*
5+
* This source code is licensed under the BSD-style license found in the
6+
* LICENSE file in the root directory of this source tree.
7+
*/
8+
19
package com.example.parakeetapp
210

311
import androidx.compose.foundation.layout.Arrangement

parakeet/android/ParakeetApp/app/src/main/java/com/example/parakeetapp/ModelDownloadViewModel.kt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/*
2+
* Copyright (c) Meta Platforms, Inc. and affiliates.
3+
* All rights reserved.
4+
*
5+
* This source code is licensed under the BSD-style license found in the
6+
* LICENSE file in the root directory of this source tree.
7+
*/
8+
19
package com.example.parakeetapp
210

311
import android.util.Log

parakeet/android/ParakeetApp/app/src/main/java/com/example/parakeetapp/ModelSettings.kt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/*
2+
* Copyright (c) Meta Platforms, Inc. and affiliates.
3+
* All rights reserved.
4+
*
5+
* This source code is licensed under the BSD-style license found in the
6+
* LICENSE file in the root directory of this source tree.
7+
*/
8+
19
package com.example.parakeetapp
210

311
/**

parakeet/android/ParakeetApp/app/src/main/java/com/example/parakeetapp/ModelSettingsScreen.kt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/*
2+
* Copyright (c) Meta Platforms, Inc. and affiliates.
3+
* All rights reserved.
4+
*
5+
* This source code is licensed under the BSD-style license found in the
6+
* LICENSE file in the root directory of this source tree.
7+
*/
8+
19
package com.example.parakeetapp
210

311
import androidx.compose.foundation.clickable

0 commit comments

Comments
 (0)