diff --git a/compiler/forget/packages/demo-2021Q3/measurement/Demo2.babel.js b/compiler/forget/packages/demo-2021Q3/measurement/Demo2.babel.js
index 3c73cc58cd..20da686e23 100644
--- a/compiler/forget/packages/demo-2021Q3/measurement/Demo2.babel.js
+++ b/compiler/forget/packages/demo-2021Q3/measurement/Demo2.babel.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import React, { createContext, useRef, useReducer, useContext } from "react";
import "./styles.css";
import { jsx as _jsx } from "react/jsx-runtime";
diff --git a/compiler/forget/packages/demo-2021Q3/measurement/Demo2.forget.babel.js b/compiler/forget/packages/demo-2021Q3/measurement/Demo2.forget.babel.js
index e678ed6556..544b8c0224 100644
--- a/compiler/forget/packages/demo-2021Q3/measurement/Demo2.forget.babel.js
+++ b/compiler/forget/packages/demo-2021Q3/measurement/Demo2.forget.babel.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import { useMemoCache } from "./useMemoCache";
import React, { createContext, useRef, useReducer, useContext } from "react";
import "./styles.css";
diff --git a/compiler/forget/packages/demo-2021Q3/measurement/Demo2.forget.min.js b/compiler/forget/packages/demo-2021Q3/measurement/Demo2.forget.min.js
index a2a886a08d..a0d61229a3 100644
--- a/compiler/forget/packages/demo-2021Q3/measurement/Demo2.forget.min.js
+++ b/compiler/forget/packages/demo-2021Q3/measurement/Demo2.forget.min.js
@@ -1 +1,8 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import{useMemoCache}from"./useMemoCache";import React,{createContext,useRef,useReducer,useContext}from"react";import"./styles.css";import{jsx as _jsx}from"react/jsx-runtime";import{jsxs as _jsxs}from"react/jsx-runtime";const initialStore={left:void 0,right:void 0},reducer=(e,t)=>{switch(t.tag){case"left":return{...e,left:t.payload};case"right":return{...e,right:t.payload};default:return e}},BinaryContext=createContext(initialStore);function Input(e){let t=useMemoCache(2);var a=t[0],s=!a||a!==e;s&&(t[0]=e);var r=s&&a.value!==e.value,a=s&&a.onChange!==e.onChange;return r||a?t[1]=_jsx("input",{className:"Search",placeholder:"...",value:e.value,onChange:e.onChange}):t[1]}function Left(){let e=useMemoCache(9);const[{left:t},a]=useContext(BinaryContext);var s=e[2]!==a;s&&(e[2]=a);var r=e[1]!==t;r&&(e[1]=t);const n=useRef(0);return r||s?e[8]=_jsxs("div",{className:"column Demo2",children:[r||s?e[5]=_jsxs("header",{className:"Header row",children:[_jsx("div",{className:"Icon",children:"⚛️"}),r||s?e[4]=_jsx(Input,{value:t,onChange:s?e[3]=e=>a({tag:"left",payload:e.target.value}):e[3]}):e[4]]}):e[5],r?e[7]=_jsxs("div",{className:"Feed",children:[_jsx("h3",{children:n.current++}),r?e[6]=_jsx("div",{className:"FeedItem",children:t}):e[6]]}):e[7]]}):e[8]}function Right(){let e=useMemoCache(9);const[{right:t},a]=useContext(BinaryContext);var s=e[2]!==a;s&&(e[2]=a);var r=e[1]!==t;r&&(e[1]=t);const n=useRef(0);return r||s?e[8]=_jsxs("div",{className:"column Demo2",children:[r||s?e[5]=_jsxs("header",{className:"Header row",children:[_jsx("div",{className:"Icon",children:"⚛️"}),r||s?e[4]=_jsx(Input,{value:t,onChange:s?e[3]=e=>a({tag:"right",payload:e.target.value}):e[3]}):e[4]]}):e[5],r?e[7]=_jsxs("div",{className:"Feed",children:[_jsx("h3",{children:n.current++}),r?e[6]=_jsx("div",{className:"FeedItem",children:t}):e[6]]}):e[7]]}):e[8]}export default function Demo2(){let e=useMemoCache(4);var[t,a]=useReducer(reducer,initialStore),s=e[1]!==t;s&&(e[1]=t);a=s?e[2]=[t,a]:e[2];return s?e[3]=_jsx(BinaryContext.Provider,{value:a,children:_jsxs("div",{className:"App",children:[_jsx("h2",{children:"Demo2 - Context"}),_jsxs("div",{className:"row",children:[_jsx(Left,{}),_jsx(Right,{})]})]})}):e[3]}
diff --git a/compiler/forget/packages/demo-2021Q3/measurement/Demo2.min.js b/compiler/forget/packages/demo-2021Q3/measurement/Demo2.min.js
index 14b4dfba7c..03c5a46c4f 100644
--- a/compiler/forget/packages/demo-2021Q3/measurement/Demo2.min.js
+++ b/compiler/forget/packages/demo-2021Q3/measurement/Demo2.min.js
@@ -1 +1,8 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import React,{createContext,useRef,useReducer,useContext}from"react";import"./styles.css";import{jsx as _jsx}from"react/jsx-runtime";import{jsxs as _jsxs}from"react/jsx-runtime";const initialStore={left:void 0,right:void 0},reducer=(e,t)=>{switch(t.tag){case"left":return{...e,left:t.payload};case"right":return{...e,right:t.payload};default:return e}},BinaryContext=createContext(initialStore);function Input({value:e,onChange:t}){return _jsx("input",{className:"Search",placeholder:"...",value:e,onChange:t})}function Left(){const[{left:e},t]=useContext(BinaryContext),s=useRef(0);return _jsxs("div",{className:"column Demo2",children:[_jsxs("header",{className:"Header row",children:[_jsx("div",{className:"Icon",children:"⚛️"}),_jsx(Input,{value:e,onChange:e=>t({tag:"left",payload:e.target.value})})]}),_jsxs("div",{className:"Feed",children:[_jsx("h3",{children:s.current++}),_jsx("div",{className:"FeedItem",children:e})]})]})}function Right(){const[{right:e},t]=useContext(BinaryContext),s=useRef(0);return _jsxs("div",{className:"column Demo2",children:[_jsxs("header",{className:"Header row",children:[_jsx("div",{className:"Icon",children:"⚛️"}),_jsx(Input,{value:e,onChange:e=>t({tag:"right",payload:e.target.value})})]}),_jsxs("div",{className:"Feed",children:[_jsx("h3",{children:s.current++}),_jsx("div",{className:"FeedItem",children:e})]})]})}export default function Demo2(){var[e,t]=useReducer(reducer,initialStore),t=[e,t];return _jsx(BinaryContext.Provider,{value:t,children:_jsxs("div",{className:"App",children:[_jsx("h2",{children:"Demo2 - Context"}),_jsxs("div",{className:"row",children:[_jsx(Left,{}),_jsx(Right,{})]})]})})}
diff --git a/compiler/forget/packages/demo-2021Q3/measurement/Feed.babel.js b/compiler/forget/packages/demo-2021Q3/measurement/Feed.babel.js
index 0005d838de..371d98b55e 100644
--- a/compiler/forget/packages/demo-2021Q3/measurement/Feed.babel.js
+++ b/compiler/forget/packages/demo-2021Q3/measurement/Feed.babel.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import React, { useRef } from "react";
import { jsx as _jsx } from "react/jsx-runtime";
import { jsxs as _jsxs } from "react/jsx-runtime";
diff --git a/compiler/forget/packages/demo-2021Q3/measurement/Feed.forget.babel.js b/compiler/forget/packages/demo-2021Q3/measurement/Feed.forget.babel.js
index 69f2d49b83..ad60798c36 100644
--- a/compiler/forget/packages/demo-2021Q3/measurement/Feed.forget.babel.js
+++ b/compiler/forget/packages/demo-2021Q3/measurement/Feed.forget.babel.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import { useMemoCache } from "./useMemoCache";
import React, { useRef } from "react";
import { jsx as _jsx } from "react/jsx-runtime";
diff --git a/compiler/forget/packages/demo-2021Q3/measurement/Feed.forget.min.js b/compiler/forget/packages/demo-2021Q3/measurement/Feed.forget.min.js
index 167bdde124..98223f0d67 100644
--- a/compiler/forget/packages/demo-2021Q3/measurement/Feed.forget.min.js
+++ b/compiler/forget/packages/demo-2021Q3/measurement/Feed.forget.min.js
@@ -1 +1,8 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import{useMemoCache}from"./useMemoCache";import React,{useRef}from"react";import{jsx as _jsx}from"react/jsx-runtime";import{jsxs as _jsxs}from"react/jsx-runtime";function FeedItem(e){let t=useMemoCache(2);var r=t[0],a=!r||r!==e;a&&(t[0]=e);var s=a&&r.data!==e.data,r=a&&r.onClick!==e.onClick;const m=useRef(0);return s||r?t[1]=_jsx("a",{href:`./item/${e.data.value}`,className:"FeedItem",onClick:e.onClick,children:m.current++}):t[1]}function Feed(e){let t=useMemoCache(3);var r=t[0],a=!r||r!==e;a&&(t[0]=e);r=a&&r.items!==e.items;const s=useRef(0),m=t[1]||(t[1]=e=>{e.preventDefault(),alert(e.target.href)});return r?t[2]=_jsxs("div",{className:"Feed",children:[_jsx("h3",{children:s.current++}),e.items.map((e,t)=>_jsx(FeedItem,{data:e,onClick:m},t))]}):t[2]}export{FeedItem,Feed};
diff --git a/compiler/forget/packages/demo-2021Q3/measurement/Feed.hook.babel.js b/compiler/forget/packages/demo-2021Q3/measurement/Feed.hook.babel.js
index 78876fb0ed..846806438a 100644
--- a/compiler/forget/packages/demo-2021Q3/measurement/Feed.hook.babel.js
+++ b/compiler/forget/packages/demo-2021Q3/measurement/Feed.hook.babel.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import React, { useRef, useCallback } from "react";
import { jsx as _jsx } from "react/jsx-runtime";
import { jsxs as _jsxs } from "react/jsx-runtime";
diff --git a/compiler/forget/packages/demo-2021Q3/measurement/Feed.hook.min.js b/compiler/forget/packages/demo-2021Q3/measurement/Feed.hook.min.js
index a96d0a9952..539535c38f 100644
--- a/compiler/forget/packages/demo-2021Q3/measurement/Feed.hook.min.js
+++ b/compiler/forget/packages/demo-2021Q3/measurement/Feed.hook.min.js
@@ -1 +1,8 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import React,{useRef,useCallback}from"react";import{jsx as _jsx}from"react/jsx-runtime";import{jsxs as _jsxs}from"react/jsx-runtime";function FeedItem({data:e,onClick:t}){const r=useRef(0);return _jsx("a",{href:`./item/${e.value}`,className:"FeedItem",onClick:t,children:r.current++})}const FeedItemMemoized=React.memo(FeedItem),Feed=React.memo(({items:e})=>{const t=useRef(0),r=useCallback(e=>{e.preventDefault(),alert(e.target.href)},[]);return _jsxs("div",{className:"Feed",children:[_jsx("h3",{children:t.current++}),e.map((e,t)=>_jsx(FeedItemMemoized,{data:e,onClick:r},t))]})});export{Feed};
diff --git a/compiler/forget/packages/demo-2021Q3/measurement/Feed.min.js b/compiler/forget/packages/demo-2021Q3/measurement/Feed.min.js
index 826da11143..a7019089dc 100644
--- a/compiler/forget/packages/demo-2021Q3/measurement/Feed.min.js
+++ b/compiler/forget/packages/demo-2021Q3/measurement/Feed.min.js
@@ -1 +1,8 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import React,{useRef}from"react";import{jsx as _jsx}from"react/jsx-runtime";import{jsxs as _jsxs}from"react/jsx-runtime";function FeedItem({data:e,onClick:t}){const r=useRef(0);return _jsx("a",{href:`./item/${e.value}`,className:"FeedItem",onClick:t,children:r.current++})}function Feed({items:e}){const t=useRef(0),r=e=>{e.preventDefault(),alert(e.target.href)};return _jsxs("div",{className:"Feed",children:[_jsx("h3",{children:t.current++}),e.map((e,t)=>_jsx(FeedItem,{data:e,onClick:r},t))]})}export{FeedItem,Feed};
diff --git a/compiler/forget/packages/demo-2021Q3/src/App.js b/compiler/forget/packages/demo-2021Q3/src/App.js
index f172f1c79d..122dd2b7d6 100644
--- a/compiler/forget/packages/demo-2021Q3/src/App.js
+++ b/compiler/forget/packages/demo-2021Q3/src/App.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import Demo1 from "./Demo1";
import Demo1Forget from "./Demo1.forget.js";
import Demo2 from "./Demo2";
diff --git a/compiler/forget/packages/demo-2021Q3/src/Demo1.forget.js b/compiler/forget/packages/demo-2021Q3/src/Demo1.forget.js
index 69c8b0b5fb..a600b3635d 100644
--- a/compiler/forget/packages/demo-2021Q3/src/Demo1.forget.js
+++ b/compiler/forget/packages/demo-2021Q3/src/Demo1.forget.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import { useMemoCache } from "./useMemoCache";
import React, { useState } from "react";
import "./styles.css";
diff --git a/compiler/forget/packages/demo-2021Q3/src/Demo1.js b/compiler/forget/packages/demo-2021Q3/src/Demo1.js
index c6c737e3e8..e51356a04c 100644
--- a/compiler/forget/packages/demo-2021Q3/src/Demo1.js
+++ b/compiler/forget/packages/demo-2021Q3/src/Demo1.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import React, { useState } from "react";
import "./styles.css";
import * as Feed from "./Feed";
diff --git a/compiler/forget/packages/demo-2021Q3/src/Demo2.forget.js b/compiler/forget/packages/demo-2021Q3/src/Demo2.forget.js
index bca2cdaaad..0eb8975393 100644
--- a/compiler/forget/packages/demo-2021Q3/src/Demo2.forget.js
+++ b/compiler/forget/packages/demo-2021Q3/src/Demo2.forget.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import { useMemoCache } from "./useMemoCache";
import React, { createContext, useRef, useReducer, useContext } from "react";
import "./styles.css";
diff --git a/compiler/forget/packages/demo-2021Q3/src/Demo2.js b/compiler/forget/packages/demo-2021Q3/src/Demo2.js
index 1e1683b44b..8f35f9a616 100644
--- a/compiler/forget/packages/demo-2021Q3/src/Demo2.js
+++ b/compiler/forget/packages/demo-2021Q3/src/Demo2.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import React, { createContext, useRef, useReducer, useContext } from "react";
import "./styles.css";
diff --git a/compiler/forget/packages/demo-2021Q3/src/Feed.forget.js b/compiler/forget/packages/demo-2021Q3/src/Feed.forget.js
index b092f3f4b0..0297e07fa2 100644
--- a/compiler/forget/packages/demo-2021Q3/src/Feed.forget.js
+++ b/compiler/forget/packages/demo-2021Q3/src/Feed.forget.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import { useMemoCache } from "./useMemoCache";
import React, { useRef } from "react";
diff --git a/compiler/forget/packages/demo-2021Q3/src/Feed.js b/compiler/forget/packages/demo-2021Q3/src/Feed.js
index 02426adcb7..e084549d5a 100644
--- a/compiler/forget/packages/demo-2021Q3/src/Feed.js
+++ b/compiler/forget/packages/demo-2021Q3/src/Feed.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import React, { useRef } from "react";
function FeedItem({ data, onClick }) {
diff --git a/compiler/forget/packages/demo-2021Q3/src/FeedMemoized.js b/compiler/forget/packages/demo-2021Q3/src/FeedMemoized.js
index 055323e6fc..52b6be1771 100644
--- a/compiler/forget/packages/demo-2021Q3/src/FeedMemoized.js
+++ b/compiler/forget/packages/demo-2021Q3/src/FeedMemoized.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import React, { useRef, useCallback } from "react";
function FeedItem({ data, onClick }) {
diff --git a/compiler/forget/packages/demo-2021Q3/src/index.js b/compiler/forget/packages/demo-2021Q3/src/index.js
index d65892e7f0..7e3a304f35 100644
--- a/compiler/forget/packages/demo-2021Q3/src/index.js
+++ b/compiler/forget/packages/demo-2021Q3/src/index.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import { StrictMode } from "react";
import ReactDOM from "react-dom";
diff --git a/compiler/forget/packages/demo-2021Q3/src/useMemoCache.js b/compiler/forget/packages/demo-2021Q3/src/useMemoCache.js
index 0b54393962..b897a0fa1d 100644
--- a/compiler/forget/packages/demo-2021Q3/src/useMemoCache.js
+++ b/compiler/forget/packages/demo-2021Q3/src/useMemoCache.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import { useRef } from "react";
const placeholder = NaN;
diff --git a/compiler/forget/packages/demo-todolist-live/src/compiled/AddTodo.js b/compiler/forget/packages/demo-todolist-live/src/compiled/AddTodo.js
index b2ea9ca1a6..c034d2012b 100644
--- a/compiler/forget/packages/demo-todolist-live/src/compiled/AddTodo.js
+++ b/compiler/forget/packages/demo-todolist-live/src/compiled/AddTodo.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import { useMemoCache } from "./useMemoCache";
import React, { useState } from "react";
export default function AddTodo({
diff --git a/compiler/forget/packages/demo-todolist-live/src/compiled/BlazingTodoList.js b/compiler/forget/packages/demo-todolist-live/src/compiled/BlazingTodoList.js
index 20d8a084c4..a9c0a426f7 100644
--- a/compiler/forget/packages/demo-todolist-live/src/compiled/BlazingTodoList.js
+++ b/compiler/forget/packages/demo-todolist-live/src/compiled/BlazingTodoList.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import { useMemoCache } from "./useMemoCache";
import getUpdated from "../utils/getUpdated";
import getFiltered from "../utils/getFiltered";
diff --git a/compiler/forget/packages/demo-todolist-live/src/compiled/Todo.js b/compiler/forget/packages/demo-todolist-live/src/compiled/Todo.js
index 5ab33a3558..7d49890ef7 100644
--- a/compiler/forget/packages/demo-todolist-live/src/compiled/Todo.js
+++ b/compiler/forget/packages/demo-todolist-live/src/compiled/Todo.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import { useMemoCache } from "./useMemoCache";
import React, { useState, useRef } from "react";
import CountBadge from "../utils/CountBadge";
diff --git a/compiler/forget/packages/demo-todolist-live/src/compiled/useMemoCache.js b/compiler/forget/packages/demo-todolist-live/src/compiled/useMemoCache.js
index 0b54393962..b897a0fa1d 100644
--- a/compiler/forget/packages/demo-todolist-live/src/compiled/useMemoCache.js
+++ b/compiler/forget/packages/demo-todolist-live/src/compiled/useMemoCache.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import { useRef } from "react";
const placeholder = NaN;
diff --git a/compiler/forget/packages/demo-todolist-live/src/createServiceWorker.js b/compiler/forget/packages/demo-todolist-live/src/createServiceWorker.js
index 5445ef54e0..e76372c07e 100644
--- a/compiler/forget/packages/demo-todolist-live/src/createServiceWorker.js
+++ b/compiler/forget/packages/demo-todolist-live/src/createServiceWorker.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
// In production, we register a service worker to serve assets from local cache.
// This lets the app load faster on subsequent visits in production, and gives
diff --git a/compiler/forget/packages/demo-todolist-live/src/index.js b/compiler/forget/packages/demo-todolist-live/src/index.js
index e47c38662f..153a0d30e8 100644
--- a/compiler/forget/packages/demo-todolist-live/src/index.js
+++ b/compiler/forget/packages/demo-todolist-live/src/index.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import React, { StrictMode } from "react";
import ReactDOM from "react-dom";
import "./normalize.css";
diff --git a/compiler/forget/packages/demo-todolist-live/src/source/AddTodo.js b/compiler/forget/packages/demo-todolist-live/src/source/AddTodo.js
index 92cbe645af..fc2a74f748 100644
--- a/compiler/forget/packages/demo-todolist-live/src/source/AddTodo.js
+++ b/compiler/forget/packages/demo-todolist-live/src/source/AddTodo.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import React, { useState } from "react";
export default function AddTodo({ setTodos, themeColor = "#045975" }) {
diff --git a/compiler/forget/packages/demo-todolist-live/src/source/BlazingTodoList.js b/compiler/forget/packages/demo-todolist-live/src/source/BlazingTodoList.js
index c291ac40b9..c57579d812 100644
--- a/compiler/forget/packages/demo-todolist-live/src/source/BlazingTodoList.js
+++ b/compiler/forget/packages/demo-todolist-live/src/source/BlazingTodoList.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import getUpdated from "../utils/getUpdated";
import getFiltered from "../utils/getFiltered";
import initialTodos from "../utils/InitialTodos";
diff --git a/compiler/forget/packages/demo-todolist-live/src/source/Todo.js b/compiler/forget/packages/demo-todolist-live/src/source/Todo.js
index f904a6c68d..a909aa4d7e 100644
--- a/compiler/forget/packages/demo-todolist-live/src/source/Todo.js
+++ b/compiler/forget/packages/demo-todolist-live/src/source/Todo.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import React, { useState, useRef } from "react";
import CountBadge from "../utils/CountBadge";
diff --git a/compiler/forget/packages/demo-todolist-live/src/utils/ColorPicker.js b/compiler/forget/packages/demo-todolist-live/src/utils/ColorPicker.js
index 4c0558f835..26a9f29f07 100644
--- a/compiler/forget/packages/demo-todolist-live/src/utils/ColorPicker.js
+++ b/compiler/forget/packages/demo-todolist-live/src/utils/ColorPicker.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
export default function ColorPicker({ value, onChange }) {
return (
diff --git a/compiler/forget/packages/demo-todolist-live/src/utils/getFiltered.js b/compiler/forget/packages/demo-todolist-live/src/utils/getFiltered.js
index e6540cc2a9..2167358163 100644
--- a/compiler/forget/packages/demo-todolist-live/src/utils/getFiltered.js
+++ b/compiler/forget/packages/demo-todolist-live/src/utils/getFiltered.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
function delay() {
let now = performance.now();
while (performance.now() - now < 16) {
diff --git a/compiler/forget/packages/demo-todolist-live/src/utils/getUpdated.js b/compiler/forget/packages/demo-todolist-live/src/utils/getUpdated.js
index e2d97c25dc..e72065bf03 100644
--- a/compiler/forget/packages/demo-todolist-live/src/utils/getUpdated.js
+++ b/compiler/forget/packages/demo-todolist-live/src/utils/getUpdated.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
export default function getUpdated(tasks, newTodo) {
return tasks
.map(t => {
diff --git a/compiler/forget/packages/demo-todolist-next/components/AddTodo.js b/compiler/forget/packages/demo-todolist-next/components/AddTodo.js
index 2917fb0bab..3010349628 100644
--- a/compiler/forget/packages/demo-todolist-next/components/AddTodo.js
+++ b/compiler/forget/packages/demo-todolist-next/components/AddTodo.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
"use forget";
import React, { useState } from "react";
diff --git a/compiler/forget/packages/demo-todolist-next/components/BlazingTodoList.js b/compiler/forget/packages/demo-todolist-next/components/BlazingTodoList.js
index 9d21b93905..f56f21051d 100644
--- a/compiler/forget/packages/demo-todolist-next/components/BlazingTodoList.js
+++ b/compiler/forget/packages/demo-todolist-next/components/BlazingTodoList.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
"use forget";
import getUpdated from "../utils/getUpdated";
import getFiltered from "../utils/getFiltered";
diff --git a/compiler/forget/packages/demo-todolist-next/components/Todo.js b/compiler/forget/packages/demo-todolist-next/components/Todo.js
index a28e79c6be..de8ab48bb4 100644
--- a/compiler/forget/packages/demo-todolist-next/components/Todo.js
+++ b/compiler/forget/packages/demo-todolist-next/components/Todo.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
"use forget";
import React, { useState, useRef } from "react";
import CountBadge from "../utils/CountBadge";
diff --git a/compiler/forget/packages/demo-todolist-next/next.config.js b/compiler/forget/packages/demo-todolist-next/next.config.js
index a843cbee09..be33e01671 100644
--- a/compiler/forget/packages/demo-todolist-next/next.config.js
+++ b/compiler/forget/packages/demo-todolist-next/next.config.js
@@ -1,4 +1,9 @@
-/** @type {import('next').NextConfig} */
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
const nextConfig = {
reactStrictMode: true,
}
diff --git a/compiler/forget/packages/demo-todolist-next/pages/_app.js b/compiler/forget/packages/demo-todolist-next/pages/_app.js
index d38f8975e0..c140f2b9d5 100644
--- a/compiler/forget/packages/demo-todolist-next/pages/_app.js
+++ b/compiler/forget/packages/demo-todolist-next/pages/_app.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import "../styles/normalize.css";
import "../styles/styles.css";
diff --git a/compiler/forget/packages/demo-todolist-next/pages/api/hello.js b/compiler/forget/packages/demo-todolist-next/pages/api/hello.js
index df63de88fa..6e92153364 100644
--- a/compiler/forget/packages/demo-todolist-next/pages/api/hello.js
+++ b/compiler/forget/packages/demo-todolist-next/pages/api/hello.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
// Next.js API route support: https://nextjs.org/docs/api-routes/introduction
export default function handler(req, res) {
diff --git a/compiler/forget/packages/demo-todolist-next/pages/index.js b/compiler/forget/packages/demo-todolist-next/pages/index.js
index d159cf33e2..5a9f1283d2 100644
--- a/compiler/forget/packages/demo-todolist-next/pages/index.js
+++ b/compiler/forget/packages/demo-todolist-next/pages/index.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import BlazingTodoList from "../components/BlazingTodoList";
export default function Home() {
diff --git a/compiler/forget/packages/demo-todolist-next/utils/ColorPicker.js b/compiler/forget/packages/demo-todolist-next/utils/ColorPicker.js
index 4c0558f835..26a9f29f07 100644
--- a/compiler/forget/packages/demo-todolist-next/utils/ColorPicker.js
+++ b/compiler/forget/packages/demo-todolist-next/utils/ColorPicker.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
export default function ColorPicker({ value, onChange }) {
return (
diff --git a/compiler/forget/packages/demo-todolist-next/utils/getFiltered.js b/compiler/forget/packages/demo-todolist-next/utils/getFiltered.js
index 0e2c83a458..12e650ba4e 100644
--- a/compiler/forget/packages/demo-todolist-next/utils/getFiltered.js
+++ b/compiler/forget/packages/demo-todolist-next/utils/getFiltered.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
function delay() {
let now = performance.now();
while (performance.now() - now < 16) {
diff --git a/compiler/forget/packages/demo-todolist-next/utils/getUpdated.js b/compiler/forget/packages/demo-todolist-next/utils/getUpdated.js
index e2d97c25dc..e72065bf03 100644
--- a/compiler/forget/packages/demo-todolist-next/utils/getUpdated.js
+++ b/compiler/forget/packages/demo-todolist-next/utils/getUpdated.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
export default function getUpdated(tasks, newTodo) {
return tasks
.map(t => {
diff --git a/compiler/forget/packages/demo-todolist-next/utils/useMemoCache.js b/compiler/forget/packages/demo-todolist-next/utils/useMemoCache.js
index 6c72f4d51a..df8af21ef2 100644
--- a/compiler/forget/packages/demo-todolist-next/utils/useMemoCache.js
+++ b/compiler/forget/packages/demo-todolist-next/utils/useMemoCache.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import { useRef } from "react";
const REACT_MEMOCACHE_SENTINEL = Symbol.for('react.memocache_sentinel');
diff --git a/compiler/forget/packages/demo-todolist-playground/src/Components/ColorPicker.js b/compiler/forget/packages/demo-todolist-playground/src/Components/ColorPicker.js
index 4c0558f835..26a9f29f07 100644
--- a/compiler/forget/packages/demo-todolist-playground/src/Components/ColorPicker.js
+++ b/compiler/forget/packages/demo-todolist-playground/src/Components/ColorPicker.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
export default function ColorPicker({ value, onChange }) {
return (
diff --git a/compiler/forget/packages/demo-todolist-playground/src/createServiceWorker.js b/compiler/forget/packages/demo-todolist-playground/src/createServiceWorker.js
index 5445ef54e0..e76372c07e 100644
--- a/compiler/forget/packages/demo-todolist-playground/src/createServiceWorker.js
+++ b/compiler/forget/packages/demo-todolist-playground/src/createServiceWorker.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
// In production, we register a service worker to serve assets from local cache.
// This lets the app load faster on subsequent visits in production, and gives
diff --git a/compiler/forget/packages/demo-todolist-playground/src/forget/Ch1.js b/compiler/forget/packages/demo-todolist-playground/src/forget/Ch1.js
index 642437e6bf..4190a71c20 100644
--- a/compiler/forget/packages/demo-todolist-playground/src/forget/Ch1.js
+++ b/compiler/forget/packages/demo-todolist-playground/src/forget/Ch1.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import { useMemoCache } from "./useMemoCache";
import React, { useState, useRef } from "react";
/**
diff --git a/compiler/forget/packages/demo-todolist-playground/src/forget/Ch2.js b/compiler/forget/packages/demo-todolist-playground/src/forget/Ch2.js
index 7cc84efdde..cb7208dd58 100644
--- a/compiler/forget/packages/demo-todolist-playground/src/forget/Ch2.js
+++ b/compiler/forget/packages/demo-todolist-playground/src/forget/Ch2.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import { useMemoCache } from "./useMemoCache";
import React, { useState, useRef } from "react";
/**
diff --git a/compiler/forget/packages/demo-todolist-playground/src/forget/Ch3.js b/compiler/forget/packages/demo-todolist-playground/src/forget/Ch3.js
index 9bcf5f3716..dba6703c9d 100644
--- a/compiler/forget/packages/demo-todolist-playground/src/forget/Ch3.js
+++ b/compiler/forget/packages/demo-todolist-playground/src/forget/Ch3.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import { useMemoCache } from "./useMemoCache";
import React, { createContext, useState, useRef, useContext } from "react";
/**
diff --git a/compiler/forget/packages/demo-todolist-playground/src/forget/Ch4.js b/compiler/forget/packages/demo-todolist-playground/src/forget/Ch4.js
index a8468ae6e8..514e47ba27 100644
--- a/compiler/forget/packages/demo-todolist-playground/src/forget/Ch4.js
+++ b/compiler/forget/packages/demo-todolist-playground/src/forget/Ch4.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import { useMemoCache } from "./useMemoCache";
import React, { useState, useRef } from "react";
import { TasksProvider, useTasks, useTasksDispatch } from "./TaskBoardContext";
diff --git a/compiler/forget/packages/demo-todolist-playground/src/forget/Ch5.js b/compiler/forget/packages/demo-todolist-playground/src/forget/Ch5.js
index 92bb502482..e3bee3e60c 100644
--- a/compiler/forget/packages/demo-todolist-playground/src/forget/Ch5.js
+++ b/compiler/forget/packages/demo-todolist-playground/src/forget/Ch5.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import { useMemoCache } from "./useMemoCache";
import React, { createContext, useContext, useState, useRef } from "react";
/**
diff --git a/compiler/forget/packages/demo-todolist-playground/src/forget/InitialTasks.js b/compiler/forget/packages/demo-todolist-playground/src/forget/InitialTasks.js
index 9c512bc1a3..39393ba5e8 100644
--- a/compiler/forget/packages/demo-todolist-playground/src/forget/InitialTasks.js
+++ b/compiler/forget/packages/demo-todolist-playground/src/forget/InitialTasks.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import { useMemoCache } from "./useMemoCache";
const initialTasks = [{
id: 0,
diff --git a/compiler/forget/packages/demo-todolist-playground/src/forget/Neo0.js b/compiler/forget/packages/demo-todolist-playground/src/forget/Neo0.js
index 47f35dfa8b..9330095319 100644
--- a/compiler/forget/packages/demo-todolist-playground/src/forget/Neo0.js
+++ b/compiler/forget/packages/demo-todolist-playground/src/forget/Neo0.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import { useMemoCache } from "./useMemoCache";
import React, { useState, useRef } from "react";
import getUpdated from "./getUpdated";
diff --git a/compiler/forget/packages/demo-todolist-playground/src/forget/Neo1.js b/compiler/forget/packages/demo-todolist-playground/src/forget/Neo1.js
index 1feff82a84..06c8146b7c 100644
--- a/compiler/forget/packages/demo-todolist-playground/src/forget/Neo1.js
+++ b/compiler/forget/packages/demo-todolist-playground/src/forget/Neo1.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import { useMemoCache } from "./useMemoCache";
import React, { useState, useRef } from "react";
import getUpdated from "./getUpdated";
diff --git a/compiler/forget/packages/demo-todolist-playground/src/forget/Neo2.js b/compiler/forget/packages/demo-todolist-playground/src/forget/Neo2.js
index 416c18f931..d0d7b27fbd 100644
--- a/compiler/forget/packages/demo-todolist-playground/src/forget/Neo2.js
+++ b/compiler/forget/packages/demo-todolist-playground/src/forget/Neo2.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import { useMemoCache } from "./useMemoCache";
import React, { useState, useRef } from "react";
import getUpdated from "./getUpdated";
diff --git a/compiler/forget/packages/demo-todolist-playground/src/forget/Neo3.js b/compiler/forget/packages/demo-todolist-playground/src/forget/Neo3.js
index effd26aa41..2e7ea29b9d 100644
--- a/compiler/forget/packages/demo-todolist-playground/src/forget/Neo3.js
+++ b/compiler/forget/packages/demo-todolist-playground/src/forget/Neo3.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import { useMemoCache } from "./useMemoCache";
import React, { useState, useRef, useEffect } from "react";
import getUpdated from "./getUpdated";
diff --git a/compiler/forget/packages/demo-todolist-playground/src/forget/NeoAddTask.js b/compiler/forget/packages/demo-todolist-playground/src/forget/NeoAddTask.js
index 44e1c3e191..70fdd5ef81 100644
--- a/compiler/forget/packages/demo-todolist-playground/src/forget/NeoAddTask.js
+++ b/compiler/forget/packages/demo-todolist-playground/src/forget/NeoAddTask.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import { useMemoCache } from "./useMemoCache";
import React, { useState } from "react"; // We need this because Forget has bug when props is passed in `undefined`
diff --git a/compiler/forget/packages/demo-todolist-playground/src/forget/NeoAddTaskThemable.js b/compiler/forget/packages/demo-todolist-playground/src/forget/NeoAddTaskThemable.js
index 7dc4d3988b..3574e38079 100644
--- a/compiler/forget/packages/demo-todolist-playground/src/forget/NeoAddTaskThemable.js
+++ b/compiler/forget/packages/demo-todolist-playground/src/forget/NeoAddTaskThemable.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import { useMemoCache } from "./useMemoCache";
import React, { useState } from "react";
export default function AddTodo(props) {
diff --git a/compiler/forget/packages/demo-todolist-playground/src/forget/NeoAddTodo.js b/compiler/forget/packages/demo-todolist-playground/src/forget/NeoAddTodo.js
index 44e1c3e191..70fdd5ef81 100644
--- a/compiler/forget/packages/demo-todolist-playground/src/forget/NeoAddTodo.js
+++ b/compiler/forget/packages/demo-todolist-playground/src/forget/NeoAddTodo.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import { useMemoCache } from "./useMemoCache";
import React, { useState } from "react"; // We need this because Forget has bug when props is passed in `undefined`
diff --git a/compiler/forget/packages/demo-todolist-playground/src/forget/NeoAddTodoThemable.js b/compiler/forget/packages/demo-todolist-playground/src/forget/NeoAddTodoThemable.js
index 7dc4d3988b..3574e38079 100644
--- a/compiler/forget/packages/demo-todolist-playground/src/forget/NeoAddTodoThemable.js
+++ b/compiler/forget/packages/demo-todolist-playground/src/forget/NeoAddTodoThemable.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import { useMemoCache } from "./useMemoCache";
import React, { useState } from "react";
export default function AddTodo(props) {
diff --git a/compiler/forget/packages/demo-todolist-playground/src/forget/NeoTask.js b/compiler/forget/packages/demo-todolist-playground/src/forget/NeoTask.js
index ab37f54550..c41216cf2f 100644
--- a/compiler/forget/packages/demo-todolist-playground/src/forget/NeoTask.js
+++ b/compiler/forget/packages/demo-todolist-playground/src/forget/NeoTask.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import { useMemoCache } from "./useMemoCache";
import React, { useState, useRef } from "react";
import CountBadge from "../Components/CountBadge";
diff --git a/compiler/forget/packages/demo-todolist-playground/src/forget/NeoTaskNoBadge.js b/compiler/forget/packages/demo-todolist-playground/src/forget/NeoTaskNoBadge.js
index 904d10d676..6377a6dee1 100644
--- a/compiler/forget/packages/demo-todolist-playground/src/forget/NeoTaskNoBadge.js
+++ b/compiler/forget/packages/demo-todolist-playground/src/forget/NeoTaskNoBadge.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import { useMemoCache } from "./useMemoCache";
import React, { useState, useRef } from "react";
import CountBadge from "../Components/CountBadge";
diff --git a/compiler/forget/packages/demo-todolist-playground/src/forget/NeoTodo.js b/compiler/forget/packages/demo-todolist-playground/src/forget/NeoTodo.js
index 95ccae54e6..a8ad8e0042 100644
--- a/compiler/forget/packages/demo-todolist-playground/src/forget/NeoTodo.js
+++ b/compiler/forget/packages/demo-todolist-playground/src/forget/NeoTodo.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import { useMemoCache } from "./useMemoCache";
import React, { useState, useRef } from "react";
import CountBadge from "../Components/CountBadge";
diff --git a/compiler/forget/packages/demo-todolist-playground/src/forget/NeoTodoNoBadge.js b/compiler/forget/packages/demo-todolist-playground/src/forget/NeoTodoNoBadge.js
index d92d980df7..8b38437b5a 100644
--- a/compiler/forget/packages/demo-todolist-playground/src/forget/NeoTodoNoBadge.js
+++ b/compiler/forget/packages/demo-todolist-playground/src/forget/NeoTodoNoBadge.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import { useMemoCache } from "./useMemoCache";
import React, { useState, useRef } from "react";
import CountBadge from "../Components/CountBadge";
diff --git a/compiler/forget/packages/demo-todolist-playground/src/forget/TaskBoardContext.js b/compiler/forget/packages/demo-todolist-playground/src/forget/TaskBoardContext.js
index aa09d284e9..1de85f01d2 100644
--- a/compiler/forget/packages/demo-todolist-playground/src/forget/TaskBoardContext.js
+++ b/compiler/forget/packages/demo-todolist-playground/src/forget/TaskBoardContext.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import { useMemoCache } from "./useMemoCache";
import { createContext, useContext, useReducer } from "react";
const TasksContext = createContext(null);
diff --git a/compiler/forget/packages/demo-todolist-playground/src/forget/getFiltered.js b/compiler/forget/packages/demo-todolist-playground/src/forget/getFiltered.js
index 4ec056305b..5694a9fa2d 100644
--- a/compiler/forget/packages/demo-todolist-playground/src/forget/getFiltered.js
+++ b/compiler/forget/packages/demo-todolist-playground/src/forget/getFiltered.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import { useMemoCache } from "./useMemoCache";
function delay() {
let now = performance.now();
diff --git a/compiler/forget/packages/demo-todolist-playground/src/forget/getUpdated.js b/compiler/forget/packages/demo-todolist-playground/src/forget/getUpdated.js
index 29d85617f7..075e14b192 100644
--- a/compiler/forget/packages/demo-todolist-playground/src/forget/getUpdated.js
+++ b/compiler/forget/packages/demo-todolist-playground/src/forget/getUpdated.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import { useMemoCache } from "./useMemoCache";
// Update an array in an immutable manner.
export default function getUpdated(todos, newTodo) {
diff --git a/compiler/forget/packages/demo-todolist-playground/src/forget/initialTodos.js b/compiler/forget/packages/demo-todolist-playground/src/forget/initialTodos.js
index 7a8ac01a06..ee0a4ae8b6 100644
--- a/compiler/forget/packages/demo-todolist-playground/src/forget/initialTodos.js
+++ b/compiler/forget/packages/demo-todolist-playground/src/forget/initialTodos.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import { useMemoCache } from "./useMemoCache";
const initialTodos = [{
id: 0,
diff --git a/compiler/forget/packages/demo-todolist-playground/src/forget/useMemoCache.js b/compiler/forget/packages/demo-todolist-playground/src/forget/useMemoCache.js
index 0b54393962..b897a0fa1d 100644
--- a/compiler/forget/packages/demo-todolist-playground/src/forget/useMemoCache.js
+++ b/compiler/forget/packages/demo-todolist-playground/src/forget/useMemoCache.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import { useRef } from "react";
const placeholder = NaN;
diff --git a/compiler/forget/packages/demo-todolist-playground/src/index.js b/compiler/forget/packages/demo-todolist-playground/src/index.js
index 14138f9ade..034b99672e 100644
--- a/compiler/forget/packages/demo-todolist-playground/src/index.js
+++ b/compiler/forget/packages/demo-todolist-playground/src/index.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import React, { StrictMode, useEffect, useState } from "react";
import ReactDOM from "react-dom";
import "./normalize.css";
diff --git a/compiler/forget/packages/demo-todolist-playground/src/source/Ch1.js b/compiler/forget/packages/demo-todolist-playground/src/source/Ch1.js
index 3050ad8777..98c883d11f 100644
--- a/compiler/forget/packages/demo-todolist-playground/src/source/Ch1.js
+++ b/compiler/forget/packages/demo-todolist-playground/src/source/Ch1.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import React, { useState, useRef } from "react";
/**
diff --git a/compiler/forget/packages/demo-todolist-playground/src/source/Ch1.memo.js b/compiler/forget/packages/demo-todolist-playground/src/source/Ch1.memo.js
index 71250da1d4..4d2e3676de 100644
--- a/compiler/forget/packages/demo-todolist-playground/src/source/Ch1.memo.js
+++ b/compiler/forget/packages/demo-todolist-playground/src/source/Ch1.memo.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import React, { useCallback, useState, useRef } from "react";
/**
diff --git a/compiler/forget/packages/demo-todolist-playground/src/source/Ch2.half.memo.js b/compiler/forget/packages/demo-todolist-playground/src/source/Ch2.half.memo.js
index 8b967c0515..1b2c9aac70 100644
--- a/compiler/forget/packages/demo-todolist-playground/src/source/Ch2.half.memo.js
+++ b/compiler/forget/packages/demo-todolist-playground/src/source/Ch2.half.memo.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import React, { useState, useRef, useCallback } from "react";
/**
diff --git a/compiler/forget/packages/demo-todolist-playground/src/source/Ch2.js b/compiler/forget/packages/demo-todolist-playground/src/source/Ch2.js
index 9fcbaab4f2..b10f3b448b 100644
--- a/compiler/forget/packages/demo-todolist-playground/src/source/Ch2.js
+++ b/compiler/forget/packages/demo-todolist-playground/src/source/Ch2.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import React, { useState, useRef } from "react";
/**
diff --git a/compiler/forget/packages/demo-todolist-playground/src/source/Ch2.memo.js b/compiler/forget/packages/demo-todolist-playground/src/source/Ch2.memo.js
index 881f98859b..65dc60f4d9 100644
--- a/compiler/forget/packages/demo-todolist-playground/src/source/Ch2.memo.js
+++ b/compiler/forget/packages/demo-todolist-playground/src/source/Ch2.memo.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import React, { useState, useRef, useCallback, useMemo } from "react";
/**
diff --git a/compiler/forget/packages/demo-todolist-playground/src/source/Ch3.js b/compiler/forget/packages/demo-todolist-playground/src/source/Ch3.js
index 4a4de67e58..22b2fbae7a 100644
--- a/compiler/forget/packages/demo-todolist-playground/src/source/Ch3.js
+++ b/compiler/forget/packages/demo-todolist-playground/src/source/Ch3.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import React, { createContext, useState, useRef, useContext } from "react";
/**
diff --git a/compiler/forget/packages/demo-todolist-playground/src/source/Ch4.js b/compiler/forget/packages/demo-todolist-playground/src/source/Ch4.js
index b79d8f372a..72499240f3 100644
--- a/compiler/forget/packages/demo-todolist-playground/src/source/Ch4.js
+++ b/compiler/forget/packages/demo-todolist-playground/src/source/Ch4.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import React, { useState, useRef } from "react";
import { TasksProvider, useTasks, useTasksDispatch } from "./TaskBoardContext";
diff --git a/compiler/forget/packages/demo-todolist-playground/src/source/Ch5.js b/compiler/forget/packages/demo-todolist-playground/src/source/Ch5.js
index e5db65587f..79e1ddb5d9 100644
--- a/compiler/forget/packages/demo-todolist-playground/src/source/Ch5.js
+++ b/compiler/forget/packages/demo-todolist-playground/src/source/Ch5.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import React, { createContext, useContext, useState, useRef } from "react";
/**
diff --git a/compiler/forget/packages/demo-todolist-playground/src/source/InitialTasks.js b/compiler/forget/packages/demo-todolist-playground/src/source/InitialTasks.js
index 6125c24a56..5308822bea 100644
--- a/compiler/forget/packages/demo-todolist-playground/src/source/InitialTasks.js
+++ b/compiler/forget/packages/demo-todolist-playground/src/source/InitialTasks.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
const initialTasks = [
{ id: 0, text: "memo", done: true },
{ id: 1, text: "useCallback", done: false },
diff --git a/compiler/forget/packages/demo-todolist-playground/src/source/Neo0.js b/compiler/forget/packages/demo-todolist-playground/src/source/Neo0.js
index f8212e724a..0f0c2e7e57 100644
--- a/compiler/forget/packages/demo-todolist-playground/src/source/Neo0.js
+++ b/compiler/forget/packages/demo-todolist-playground/src/source/Neo0.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import React, { useState, useRef } from "react";
import getUpdated from "./getUpdated";
import initialTodos from "./initialTodos";
diff --git a/compiler/forget/packages/demo-todolist-playground/src/source/Neo1.js b/compiler/forget/packages/demo-todolist-playground/src/source/Neo1.js
index 4dbd38667b..39aaf03c9b 100644
--- a/compiler/forget/packages/demo-todolist-playground/src/source/Neo1.js
+++ b/compiler/forget/packages/demo-todolist-playground/src/source/Neo1.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import React, { useState, useRef } from "react";
import getUpdated from "./getUpdated";
import initialTodos from "./initialTodos";
diff --git a/compiler/forget/packages/demo-todolist-playground/src/source/Neo1.memo.js b/compiler/forget/packages/demo-todolist-playground/src/source/Neo1.memo.js
index 903b4b0250..8073b87a66 100644
--- a/compiler/forget/packages/demo-todolist-playground/src/source/Neo1.memo.js
+++ b/compiler/forget/packages/demo-todolist-playground/src/source/Neo1.memo.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import React, { useState, useCallback } from "react";
import getUpdated from "./getUpdated";
import initialTodos from "./initialTodos";
diff --git a/compiler/forget/packages/demo-todolist-playground/src/source/Neo2.half.memo.js b/compiler/forget/packages/demo-todolist-playground/src/source/Neo2.half.memo.js
index b95b253664..6bed909d5c 100644
--- a/compiler/forget/packages/demo-todolist-playground/src/source/Neo2.half.memo.js
+++ b/compiler/forget/packages/demo-todolist-playground/src/source/Neo2.half.memo.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import React, { useState, useRef, useCallback } from "react";
import getUpdated from "./getUpdated";
import initialTodos from "./initialTodos";
diff --git a/compiler/forget/packages/demo-todolist-playground/src/source/Neo2.js b/compiler/forget/packages/demo-todolist-playground/src/source/Neo2.js
index fa9465ddc2..7da496c3af 100644
--- a/compiler/forget/packages/demo-todolist-playground/src/source/Neo2.js
+++ b/compiler/forget/packages/demo-todolist-playground/src/source/Neo2.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import React, { useState, useRef } from "react";
import getUpdated from "./getUpdated";
import initialTodos from "./initialTodos";
diff --git a/compiler/forget/packages/demo-todolist-playground/src/source/Neo3.half.memo.js b/compiler/forget/packages/demo-todolist-playground/src/source/Neo3.half.memo.js
index 608d743640..1b38fe0a9e 100644
--- a/compiler/forget/packages/demo-todolist-playground/src/source/Neo3.half.memo.js
+++ b/compiler/forget/packages/demo-todolist-playground/src/source/Neo3.half.memo.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import React, { useState, useRef, useCallback } from "react";
import getUpdated from "./getUpdated";
import getFiltered from "./getFiltered";
diff --git a/compiler/forget/packages/demo-todolist-playground/src/source/Neo3.js b/compiler/forget/packages/demo-todolist-playground/src/source/Neo3.js
index c8df1631c3..819e4f47ce 100644
--- a/compiler/forget/packages/demo-todolist-playground/src/source/Neo3.js
+++ b/compiler/forget/packages/demo-todolist-playground/src/source/Neo3.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import React, { useState, useRef, useEffect } from "react";
import getUpdated from "./getUpdated";
import getFiltered from "./getFiltered";
diff --git a/compiler/forget/packages/demo-todolist-playground/src/source/Neo3.memo.js b/compiler/forget/packages/demo-todolist-playground/src/source/Neo3.memo.js
index 1057bf56ed..a896b75aed 100644
--- a/compiler/forget/packages/demo-todolist-playground/src/source/Neo3.memo.js
+++ b/compiler/forget/packages/demo-todolist-playground/src/source/Neo3.memo.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import React, { useState, useRef, useCallback, useMemo } from "react";
import getUpdated from "./getUpdated";
import getFiltered from "./getFiltered";
diff --git a/compiler/forget/packages/demo-todolist-playground/src/source/Neo3ForgetPseudo.memo.js b/compiler/forget/packages/demo-todolist-playground/src/source/Neo3ForgetPseudo.memo.js
index ac4a41055f..1a37a2c638 100644
--- a/compiler/forget/packages/demo-todolist-playground/src/source/Neo3ForgetPseudo.memo.js
+++ b/compiler/forget/packages/demo-todolist-playground/src/source/Neo3ForgetPseudo.memo.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
// magic variables + memoCache
function TodoList1({ visibility, themeColor }) {
const [todos, setTodos] = useState(initialTodos);
diff --git a/compiler/forget/packages/demo-todolist-playground/src/source/NeoAddTask.js b/compiler/forget/packages/demo-todolist-playground/src/source/NeoAddTask.js
index 2e21eab9de..ee653c9249 100644
--- a/compiler/forget/packages/demo-todolist-playground/src/source/NeoAddTask.js
+++ b/compiler/forget/packages/demo-todolist-playground/src/source/NeoAddTask.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import React, { useState } from "react";
// We need this because Forget has bug when props is passed in `undefined`
diff --git a/compiler/forget/packages/demo-todolist-playground/src/source/NeoAddTaskThemable.js b/compiler/forget/packages/demo-todolist-playground/src/source/NeoAddTaskThemable.js
index 92cbe645af..fc2a74f748 100644
--- a/compiler/forget/packages/demo-todolist-playground/src/source/NeoAddTaskThemable.js
+++ b/compiler/forget/packages/demo-todolist-playground/src/source/NeoAddTaskThemable.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import React, { useState } from "react";
export default function AddTodo({ setTodos, themeColor = "#045975" }) {
diff --git a/compiler/forget/packages/demo-todolist-playground/src/source/NeoAddTodo.js b/compiler/forget/packages/demo-todolist-playground/src/source/NeoAddTodo.js
index 2e21eab9de..ee653c9249 100644
--- a/compiler/forget/packages/demo-todolist-playground/src/source/NeoAddTodo.js
+++ b/compiler/forget/packages/demo-todolist-playground/src/source/NeoAddTodo.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import React, { useState } from "react";
// We need this because Forget has bug when props is passed in `undefined`
diff --git a/compiler/forget/packages/demo-todolist-playground/src/source/NeoAddTodoThemable.js b/compiler/forget/packages/demo-todolist-playground/src/source/NeoAddTodoThemable.js
index 92cbe645af..fc2a74f748 100644
--- a/compiler/forget/packages/demo-todolist-playground/src/source/NeoAddTodoThemable.js
+++ b/compiler/forget/packages/demo-todolist-playground/src/source/NeoAddTodoThemable.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import React, { useState } from "react";
export default function AddTodo({ setTodos, themeColor = "#045975" }) {
diff --git a/compiler/forget/packages/demo-todolist-playground/src/source/NeoTask.js b/compiler/forget/packages/demo-todolist-playground/src/source/NeoTask.js
index 6a64363f39..9cd93be03e 100644
--- a/compiler/forget/packages/demo-todolist-playground/src/source/NeoTask.js
+++ b/compiler/forget/packages/demo-todolist-playground/src/source/NeoTask.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import React, { useState, useRef } from "react";
import CountBadge from "../Components/CountBadge";
diff --git a/compiler/forget/packages/demo-todolist-playground/src/source/NeoTaskNoBadge.js b/compiler/forget/packages/demo-todolist-playground/src/source/NeoTaskNoBadge.js
index 25a5189e5a..727ecd61a1 100644
--- a/compiler/forget/packages/demo-todolist-playground/src/source/NeoTaskNoBadge.js
+++ b/compiler/forget/packages/demo-todolist-playground/src/source/NeoTaskNoBadge.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import React, { useState, useRef } from "react";
import CountBadge from "../Components/CountBadge";
diff --git a/compiler/forget/packages/demo-todolist-playground/src/source/NeoTodo.js b/compiler/forget/packages/demo-todolist-playground/src/source/NeoTodo.js
index 930ac3028f..a0f9ff3064 100644
--- a/compiler/forget/packages/demo-todolist-playground/src/source/NeoTodo.js
+++ b/compiler/forget/packages/demo-todolist-playground/src/source/NeoTodo.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import React, { useState, useRef } from "react";
import CountBadge from "../Components/CountBadge";
diff --git a/compiler/forget/packages/demo-todolist-playground/src/source/NeoTodoNoBadge.js b/compiler/forget/packages/demo-todolist-playground/src/source/NeoTodoNoBadge.js
index 7fdab40270..9887d3bd2b 100644
--- a/compiler/forget/packages/demo-todolist-playground/src/source/NeoTodoNoBadge.js
+++ b/compiler/forget/packages/demo-todolist-playground/src/source/NeoTodoNoBadge.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import React, { useState, useRef } from "react";
import CountBadge from "../Components/CountBadge";
diff --git a/compiler/forget/packages/demo-todolist-playground/src/source/TaskBoardContext.js b/compiler/forget/packages/demo-todolist-playground/src/source/TaskBoardContext.js
index 446e918216..5e66f66f56 100644
--- a/compiler/forget/packages/demo-todolist-playground/src/source/TaskBoardContext.js
+++ b/compiler/forget/packages/demo-todolist-playground/src/source/TaskBoardContext.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import { createContext, useContext, useReducer } from "react";
const TasksContext = createContext(null);
diff --git a/compiler/forget/packages/demo-todolist-playground/src/source/getFiltered.js b/compiler/forget/packages/demo-todolist-playground/src/source/getFiltered.js
index e6540cc2a9..2167358163 100644
--- a/compiler/forget/packages/demo-todolist-playground/src/source/getFiltered.js
+++ b/compiler/forget/packages/demo-todolist-playground/src/source/getFiltered.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
function delay() {
let now = performance.now();
while (performance.now() - now < 16) {
diff --git a/compiler/forget/packages/demo-todolist-playground/src/source/getUpdated.js b/compiler/forget/packages/demo-todolist-playground/src/source/getUpdated.js
index 5d98873e3a..9a17452525 100644
--- a/compiler/forget/packages/demo-todolist-playground/src/source/getUpdated.js
+++ b/compiler/forget/packages/demo-todolist-playground/src/source/getUpdated.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
// Update an array in an immutable manner.
export default function getUpdated(todos, newTodo) {
return todos
diff --git a/compiler/forget/packages/demo-todolist-playground/src/source/initialTodos.js b/compiler/forget/packages/demo-todolist-playground/src/source/initialTodos.js
index e7ec717d25..d2d8cb7114 100644
--- a/compiler/forget/packages/demo-todolist-playground/src/source/initialTodos.js
+++ b/compiler/forget/packages/demo-todolist-playground/src/source/initialTodos.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
const initialTodos = [
{ id: 0, text: "memo", done: true },
{ id: 1, text: "useCallback", done: false },
diff --git a/compiler/forget/packages/eslint-browser/src/index.js b/compiler/forget/packages/eslint-browser/src/index.js
index 8eb7b18b15..dc1f5eca16 100644
--- a/compiler/forget/packages/eslint-browser/src/index.js
+++ b/compiler/forget/packages/eslint-browser/src/index.js
@@ -1,5 +1,5 @@
/**
- * Copyright (c) Facebook, Inc. and its affiliates.
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
diff --git a/compiler/forget/packages/eslint-browser/webpack.config.js b/compiler/forget/packages/eslint-browser/webpack.config.js
index 1242157031..ebb4bbb301 100644
--- a/compiler/forget/packages/eslint-browser/webpack.config.js
+++ b/compiler/forget/packages/eslint-browser/webpack.config.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
"use strict";
const path = require("path");
diff --git a/compiler/forget/packages/make-read-only-util/jest.config.js b/compiler/forget/packages/make-read-only-util/jest.config.js
index 21a1e973ab..71cd3731f0 100644
--- a/compiler/forget/packages/make-read-only-util/jest.config.js
+++ b/compiler/forget/packages/make-read-only-util/jest.config.js
@@ -1,4 +1,9 @@
-/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */dist/types').InitialOptionsTsJest} */
module.exports = {
preset: "ts-jest",
testEnvironment: "node",
diff --git a/compiler/forget/packages/make-read-only-util/src/makeReadOnly.test.ts b/compiler/forget/packages/make-read-only-util/src/makeReadOnly.test.ts
index 07f9feacd1..9734fb0a74 100644
--- a/compiler/forget/packages/make-read-only-util/src/makeReadOnly.test.ts
+++ b/compiler/forget/packages/make-read-only-util/src/makeReadOnly.test.ts
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import buildMakeReadOnly from "./makeReadOnly";
describe("makeReadOnly", () => {
diff --git a/compiler/forget/packages/make-read-only-util/src/makeReadOnly.ts b/compiler/forget/packages/make-read-only-util/src/makeReadOnly.ts
index 0e696d35d8..25d0e94690 100644
--- a/compiler/forget/packages/make-read-only-util/src/makeReadOnly.ts
+++ b/compiler/forget/packages/make-read-only-util/src/makeReadOnly.ts
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
"use strict";
type ROViolationType =
diff --git a/compiler/forget/packages/playground/app/index.tsx b/compiler/forget/packages/playground/app/index.tsx
index e8db4bce33..999f3b5b1b 100644
--- a/compiler/forget/packages/playground/app/index.tsx
+++ b/compiler/forget/packages/playground/app/index.tsx
@@ -1,5 +1,5 @@
/**
- * (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary.
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
diff --git a/compiler/forget/packages/playground/app/layout.tsx b/compiler/forget/packages/playground/app/layout.tsx
index 9d134ded2a..630e7d1671 100644
--- a/compiler/forget/packages/playground/app/layout.tsx
+++ b/compiler/forget/packages/playground/app/layout.tsx
@@ -1,5 +1,5 @@
/**
- * (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary.
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
diff --git a/compiler/forget/packages/playground/app/page.tsx b/compiler/forget/packages/playground/app/page.tsx
index 4527b0916e..e82bda11a6 100644
--- a/compiler/forget/packages/playground/app/page.tsx
+++ b/compiler/forget/packages/playground/app/page.tsx
@@ -1,5 +1,5 @@
/**
- * (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary.
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
diff --git a/compiler/forget/packages/playground/colors.js b/compiler/forget/packages/playground/colors.js
index a069997ca9..fa7940e58e 100644
--- a/compiler/forget/packages/playground/colors.js
+++ b/compiler/forget/packages/playground/colors.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*/
diff --git a/compiler/forget/packages/playground/components/Editor/Input.tsx b/compiler/forget/packages/playground/components/Editor/Input.tsx
index d71e059ab4..beb0eb1389 100644
--- a/compiler/forget/packages/playground/components/Editor/Input.tsx
+++ b/compiler/forget/packages/playground/components/Editor/Input.tsx
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*/
diff --git a/compiler/forget/packages/playground/components/Editor/monacoOptions.ts b/compiler/forget/packages/playground/components/Editor/monacoOptions.ts
index f0211a3dcb..d1fbae9532 100644
--- a/compiler/forget/packages/playground/components/Editor/monacoOptions.ts
+++ b/compiler/forget/packages/playground/components/Editor/monacoOptions.ts
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*/
diff --git a/compiler/forget/packages/playground/components/Header.tsx b/compiler/forget/packages/playground/components/Header.tsx
index 8ef80a1d5e..1460f687f0 100644
--- a/compiler/forget/packages/playground/components/Header.tsx
+++ b/compiler/forget/packages/playground/components/Header.tsx
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*/
diff --git a/compiler/forget/packages/playground/components/Logo.tsx b/compiler/forget/packages/playground/components/Logo.tsx
index 70d095a058..b3828261dc 100644
--- a/compiler/forget/packages/playground/components/Logo.tsx
+++ b/compiler/forget/packages/playground/components/Logo.tsx
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*/
diff --git a/compiler/forget/packages/playground/components/Message.tsx b/compiler/forget/packages/playground/components/Message.tsx
index 7e225a73ca..95347a9693 100644
--- a/compiler/forget/packages/playground/components/Message.tsx
+++ b/compiler/forget/packages/playground/components/Message.tsx
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import {
BanIcon,
ExclamationIcon,
diff --git a/compiler/forget/packages/playground/components/StoreContext.tsx b/compiler/forget/packages/playground/components/StoreContext.tsx
index a58acf400a..aedee87cb7 100644
--- a/compiler/forget/packages/playground/components/StoreContext.tsx
+++ b/compiler/forget/packages/playground/components/StoreContext.tsx
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*/
diff --git a/compiler/forget/packages/playground/components/index.ts b/compiler/forget/packages/playground/components/index.ts
index d15e90a8e7..66734653d9 100644
--- a/compiler/forget/packages/playground/components/index.ts
+++ b/compiler/forget/packages/playground/components/index.ts
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*/
diff --git a/compiler/forget/packages/playground/hooks/index.ts b/compiler/forget/packages/playground/hooks/index.ts
index fbb69cd5d3..4d8ad48ffe 100644
--- a/compiler/forget/packages/playground/hooks/index.ts
+++ b/compiler/forget/packages/playground/hooks/index.ts
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*/
diff --git a/compiler/forget/packages/playground/hooks/useMountEffect.ts b/compiler/forget/packages/playground/hooks/useMountEffect.ts
index f75752524e..03e10a57f6 100644
--- a/compiler/forget/packages/playground/hooks/useMountEffect.ts
+++ b/compiler/forget/packages/playground/hooks/useMountEffect.ts
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*/
diff --git a/compiler/forget/packages/playground/lib/createContext.ts b/compiler/forget/packages/playground/lib/createContext.ts
index d13d1f6f98..a3e53b1af8 100644
--- a/compiler/forget/packages/playground/lib/createContext.ts
+++ b/compiler/forget/packages/playground/lib/createContext.ts
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*/
diff --git a/compiler/forget/packages/playground/lib/defaultStore.ts b/compiler/forget/packages/playground/lib/defaultStore.ts
index a3759ace32..bc6ec7b622 100644
--- a/compiler/forget/packages/playground/lib/defaultStore.ts
+++ b/compiler/forget/packages/playground/lib/defaultStore.ts
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*/
diff --git a/compiler/forget/packages/playground/lib/forgetMonacoDiagnostics.ts b/compiler/forget/packages/playground/lib/forgetMonacoDiagnostics.ts
index a6510920c0..247a6e5706 100644
--- a/compiler/forget/packages/playground/lib/forgetMonacoDiagnostics.ts
+++ b/compiler/forget/packages/playground/lib/forgetMonacoDiagnostics.ts
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*/
diff --git a/compiler/forget/packages/playground/lib/stores/index.ts b/compiler/forget/packages/playground/lib/stores/index.ts
index e2ac355854..d696f73984 100644
--- a/compiler/forget/packages/playground/lib/stores/index.ts
+++ b/compiler/forget/packages/playground/lib/stores/index.ts
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*/
diff --git a/compiler/forget/packages/playground/lib/stores/messages.ts b/compiler/forget/packages/playground/lib/stores/messages.ts
index 9fb4d9a4ee..8b9639882a 100644
--- a/compiler/forget/packages/playground/lib/stores/messages.ts
+++ b/compiler/forget/packages/playground/lib/stores/messages.ts
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*/
diff --git a/compiler/forget/packages/playground/lib/stores/store.ts b/compiler/forget/packages/playground/lib/stores/store.ts
index ca196bd41a..a1d0f88eb1 100644
--- a/compiler/forget/packages/playground/lib/stores/store.ts
+++ b/compiler/forget/packages/playground/lib/stores/store.ts
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*/
diff --git a/compiler/forget/packages/playground/lib/utils.ts b/compiler/forget/packages/playground/lib/utils.ts
index 9cb8eceefa..3a94a91fff 100644
--- a/compiler/forget/packages/playground/lib/utils.ts
+++ b/compiler/forget/packages/playground/lib/utils.ts
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*/
diff --git a/compiler/forget/packages/playground/next-env.d.ts b/compiler/forget/packages/playground/next-env.d.ts
index 4f11a03dc6..811cbc51ad 100644
--- a/compiler/forget/packages/playground/next-env.d.ts
+++ b/compiler/forget/packages/playground/next-env.d.ts
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
///
///
diff --git a/compiler/forget/packages/playground/next.config.js b/compiler/forget/packages/playground/next.config.js
index 54264e318b..1d3880021d 100644
--- a/compiler/forget/packages/playground/next.config.js
+++ b/compiler/forget/packages/playground/next.config.js
@@ -1,4 +1,9 @@
-/** @type {import('next').NextConfig} */
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
const nextConfig = {
reactStrictMode: true,
webpack: (config) => {
diff --git a/compiler/forget/packages/playground/postcss.config.js b/compiler/forget/packages/playground/postcss.config.js
index 12a703d900..291cea3cd5 100644
--- a/compiler/forget/packages/playground/postcss.config.js
+++ b/compiler/forget/packages/playground/postcss.config.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
module.exports = {
plugins: {
tailwindcss: {},
diff --git a/compiler/forget/packages/playground/scripts/downloadFonts.js b/compiler/forget/packages/playground/scripts/downloadFonts.js
index e1293ad321..0925a64f78 100644
--- a/compiler/forget/packages/playground/scripts/downloadFonts.js
+++ b/compiler/forget/packages/playground/scripts/downloadFonts.js
@@ -1,5 +1,8 @@
/**
- * Copyright (c) Facebook, Inc. and its affiliates.
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
*/
const { execSync } = require("child_process");
diff --git a/compiler/forget/packages/playground/tailwind.config.js b/compiler/forget/packages/playground/tailwind.config.js
index f09ec844f4..c8ba1d1af5 100644
--- a/compiler/forget/packages/playground/tailwind.config.js
+++ b/compiler/forget/packages/playground/tailwind.config.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
const defaultTheme = require("tailwindcss/defaultTheme");
const colors = require("./colors");
diff --git a/compiler/forget/packages/react-forget-runtime/index.js b/compiler/forget/packages/react-forget-runtime/index.js
index 6309bfc4e0..20292f1c84 100644
--- a/compiler/forget/packages/react-forget-runtime/index.js
+++ b/compiler/forget/packages/react-forget-runtime/index.js
@@ -1,5 +1,5 @@
/**
- * Copyright (c) Facebook, Inc. and its affiliates.
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
diff --git a/compiler/forget/scripts/test262-preprocessor.js b/compiler/forget/scripts/test262-preprocessor.js
index cbbb19c1ae..7212044a7a 100644
--- a/compiler/forget/scripts/test262-preprocessor.js
+++ b/compiler/forget/scripts/test262-preprocessor.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
const runReactForgetBabelPlugin =
require("../dist/Babel/RunReactForgetBabelPlugin").default;
diff --git a/compiler/forget/src/Babel/BabelPlugin.ts b/compiler/forget/src/Babel/BabelPlugin.ts
index b07bbd144a..f98d1a9969 100644
--- a/compiler/forget/src/Babel/BabelPlugin.ts
+++ b/compiler/forget/src/Babel/BabelPlugin.ts
@@ -1,5 +1,5 @@
/**
- * Copyright (c) Facebook, Inc. and its affiliates.
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
diff --git a/compiler/forget/src/Babel/PluginOptions.ts b/compiler/forget/src/Babel/PluginOptions.ts
index 46ae8bf411..ce143a6089 100644
--- a/compiler/forget/src/Babel/PluginOptions.ts
+++ b/compiler/forget/src/Babel/PluginOptions.ts
@@ -1,5 +1,5 @@
/**
- * Copyright (c) Facebook, Inc. and its affiliates.
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
diff --git a/compiler/forget/src/Babel/RunReactForgetBabelPlugin.ts b/compiler/forget/src/Babel/RunReactForgetBabelPlugin.ts
index d4f5dc5521..09bbea8264 100644
--- a/compiler/forget/src/Babel/RunReactForgetBabelPlugin.ts
+++ b/compiler/forget/src/Babel/RunReactForgetBabelPlugin.ts
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import type * as BabelCore from "@babel/core";
import { transformFromAstSync } from "@babel/core";
import * as parser from "@babel/parser";
diff --git a/compiler/forget/src/Babel/plugin-syntax-jsx.d.ts b/compiler/forget/src/Babel/plugin-syntax-jsx.d.ts
index ee62647a41..b85fcc23a1 100644
--- a/compiler/forget/src/Babel/plugin-syntax-jsx.d.ts
+++ b/compiler/forget/src/Babel/plugin-syntax-jsx.d.ts
@@ -1 +1,8 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
declare module "@babel/plugin-syntax-jsx";
diff --git a/compiler/forget/src/CompilerError.ts b/compiler/forget/src/CompilerError.ts
index ef1675f3e2..483bb62d99 100644
--- a/compiler/forget/src/CompilerError.ts
+++ b/compiler/forget/src/CompilerError.ts
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import { Node, NodePath } from "@babel/traverse";
import { SourceLocation as BabelSourceLocation } from "@babel/types";
import { SourceLocation } from "./HIR";
diff --git a/compiler/forget/src/CompilerPipeline.ts b/compiler/forget/src/CompilerPipeline.ts
index 5848329e07..714ae91437 100644
--- a/compiler/forget/src/CompilerPipeline.ts
+++ b/compiler/forget/src/CompilerPipeline.ts
@@ -1,5 +1,5 @@
/**
- * Copyright (c) Facebook, Inc. and its affiliates.
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
diff --git a/compiler/forget/src/HIR/BuildHIR.ts b/compiler/forget/src/HIR/BuildHIR.ts
index 755b287edc..7c5c7abecc 100644
--- a/compiler/forget/src/HIR/BuildHIR.ts
+++ b/compiler/forget/src/HIR/BuildHIR.ts
@@ -1,5 +1,5 @@
/**
- * Copyright (c) Facebook, Inc. and its affiliates.
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
diff --git a/compiler/forget/src/HIR/Environment.ts b/compiler/forget/src/HIR/Environment.ts
index 6b22f171ec..4e11375a52 100644
--- a/compiler/forget/src/HIR/Environment.ts
+++ b/compiler/forget/src/HIR/Environment.ts
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import invariant from "invariant";
import { log } from "../Utils/logger";
import {
diff --git a/compiler/forget/src/HIR/Globals.ts b/compiler/forget/src/HIR/Globals.ts
index a886a041d9..036daae845 100644
--- a/compiler/forget/src/HIR/Globals.ts
+++ b/compiler/forget/src/HIR/Globals.ts
@@ -1,5 +1,5 @@
/**
- * Copyright (c) Facebook, Inc. and its affiliates.
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
diff --git a/compiler/forget/src/HIR/HIR.ts b/compiler/forget/src/HIR/HIR.ts
index 5e56f3b0a7..348115d57c 100644
--- a/compiler/forget/src/HIR/HIR.ts
+++ b/compiler/forget/src/HIR/HIR.ts
@@ -1,5 +1,5 @@
/**
- * Copyright (c) Facebook, Inc. and its affiliates.
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
diff --git a/compiler/forget/src/HIR/HIRBuilder.ts b/compiler/forget/src/HIR/HIRBuilder.ts
index cab48bbaf5..dccabab5af 100644
--- a/compiler/forget/src/HIR/HIRBuilder.ts
+++ b/compiler/forget/src/HIR/HIRBuilder.ts
@@ -1,5 +1,5 @@
/**
- * Copyright (c) Facebook, Inc. and its affiliates.
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
diff --git a/compiler/forget/src/HIR/Hooks.ts b/compiler/forget/src/HIR/Hooks.ts
index 20fb7d5c81..b8bb0936c2 100644
--- a/compiler/forget/src/HIR/Hooks.ts
+++ b/compiler/forget/src/HIR/Hooks.ts
@@ -1,5 +1,5 @@
/**
- * Copyright (c) Facebook, Inc. and its affiliates.
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
diff --git a/compiler/forget/src/HIR/MergeConsecutiveBlocks.ts b/compiler/forget/src/HIR/MergeConsecutiveBlocks.ts
index 0fc17e8dee..86b48a59be 100644
--- a/compiler/forget/src/HIR/MergeConsecutiveBlocks.ts
+++ b/compiler/forget/src/HIR/MergeConsecutiveBlocks.ts
@@ -1,5 +1,5 @@
/**
- * Copyright (c) Facebook, Inc. and its affiliates.
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
diff --git a/compiler/forget/src/HIR/ObjectShape.ts b/compiler/forget/src/HIR/ObjectShape.ts
index 4b21252d25..913f0ba22c 100644
--- a/compiler/forget/src/HIR/ObjectShape.ts
+++ b/compiler/forget/src/HIR/ObjectShape.ts
@@ -1,5 +1,5 @@
/**
- * Copyright (c) Facebook, Inc. and its affiliates.
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
diff --git a/compiler/forget/src/HIR/PrintHIR.ts b/compiler/forget/src/HIR/PrintHIR.ts
index 9593125d77..f5d0b465d2 100644
--- a/compiler/forget/src/HIR/PrintHIR.ts
+++ b/compiler/forget/src/HIR/PrintHIR.ts
@@ -1,5 +1,5 @@
/**
- * Copyright (c) Facebook, Inc. and its affiliates.
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
diff --git a/compiler/forget/src/HIR/Types.ts b/compiler/forget/src/HIR/Types.ts
index 395f4c2390..279e04c003 100644
--- a/compiler/forget/src/HIR/Types.ts
+++ b/compiler/forget/src/HIR/Types.ts
@@ -1,5 +1,5 @@
/**
- * Copyright (c) Facebook, Inc. and its affiliates.
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
diff --git a/compiler/forget/src/HIR/ValidateConsistentIdentifiers.ts b/compiler/forget/src/HIR/ValidateConsistentIdentifiers.ts
index a8fde74b2b..4413ae2e43 100644
--- a/compiler/forget/src/HIR/ValidateConsistentIdentifiers.ts
+++ b/compiler/forget/src/HIR/ValidateConsistentIdentifiers.ts
@@ -1,5 +1,5 @@
/**
- * Copyright (c) Facebook, Inc. and its affiliates.
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
diff --git a/compiler/forget/src/HIR/ValidateTerminalSuccessors.ts b/compiler/forget/src/HIR/ValidateTerminalSuccessors.ts
index 6dcd899741..c22d25b63c 100644
--- a/compiler/forget/src/HIR/ValidateTerminalSuccessors.ts
+++ b/compiler/forget/src/HIR/ValidateTerminalSuccessors.ts
@@ -1,5 +1,5 @@
/**
- * Copyright (c) Facebook, Inc. and its affiliates.
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
diff --git a/compiler/forget/src/HIR/index.ts b/compiler/forget/src/HIR/index.ts
index e4743364ce..8834ae1bd2 100644
--- a/compiler/forget/src/HIR/index.ts
+++ b/compiler/forget/src/HIR/index.ts
@@ -1,5 +1,5 @@
/**
- * Copyright (c) Facebook, Inc. and its affiliates.
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
diff --git a/compiler/forget/src/Inference/AnalyseFunctions.ts b/compiler/forget/src/Inference/AnalyseFunctions.ts
index 7257b4389a..9337d55248 100644
--- a/compiler/forget/src/Inference/AnalyseFunctions.ts
+++ b/compiler/forget/src/Inference/AnalyseFunctions.ts
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import invariant from "invariant";
import {
Effect,
diff --git a/compiler/forget/src/Inference/DropMemoCalls.ts b/compiler/forget/src/Inference/DropMemoCalls.ts
index e19ab0ca04..b9c0619056 100644
--- a/compiler/forget/src/Inference/DropMemoCalls.ts
+++ b/compiler/forget/src/Inference/DropMemoCalls.ts
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import { Effect, HIRFunction, HookType, isHookType } from "../HIR";
export default function (func: HIRFunction): void {
diff --git a/compiler/forget/src/Inference/InferAlias.ts b/compiler/forget/src/Inference/InferAlias.ts
index 7f37c0efab..93f9d08ec3 100644
--- a/compiler/forget/src/Inference/InferAlias.ts
+++ b/compiler/forget/src/Inference/InferAlias.ts
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import {
HIRFunction,
Identifier,
diff --git a/compiler/forget/src/Inference/InferAliasForPhis.ts b/compiler/forget/src/Inference/InferAliasForPhis.ts
index cd57bdef58..2dbe2db693 100644
--- a/compiler/forget/src/Inference/InferAliasForPhis.ts
+++ b/compiler/forget/src/Inference/InferAliasForPhis.ts
@@ -1,5 +1,5 @@
/**
- * Copyright (c) Facebook, Inc. and its affiliates.
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
diff --git a/compiler/forget/src/Inference/InferAliasForStores.ts b/compiler/forget/src/Inference/InferAliasForStores.ts
index ba787cbf2e..bd0050cdd4 100644
--- a/compiler/forget/src/Inference/InferAliasForStores.ts
+++ b/compiler/forget/src/Inference/InferAliasForStores.ts
@@ -1,5 +1,5 @@
/**
- * Copyright (c) Facebook, Inc. and its affiliates.
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
diff --git a/compiler/forget/src/Inference/InferMutableLifetimes.ts b/compiler/forget/src/Inference/InferMutableLifetimes.ts
index fc46cb6994..6850cc6920 100644
--- a/compiler/forget/src/Inference/InferMutableLifetimes.ts
+++ b/compiler/forget/src/Inference/InferMutableLifetimes.ts
@@ -1,5 +1,5 @@
/**
- * Copyright (c) Facebook, Inc. and its affiliates.
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
diff --git a/compiler/forget/src/Inference/InferMutableRanges.ts b/compiler/forget/src/Inference/InferMutableRanges.ts
index cf6f0fa345..af9ffbcb5f 100644
--- a/compiler/forget/src/Inference/InferMutableRanges.ts
+++ b/compiler/forget/src/Inference/InferMutableRanges.ts
@@ -1,5 +1,5 @@
/**
- * Copyright (c) Facebook, Inc. and its affiliates.
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
diff --git a/compiler/forget/src/Inference/InferMutableRangesForAlias.ts b/compiler/forget/src/Inference/InferMutableRangesForAlias.ts
index c38e93bc3b..01cb4f85c6 100644
--- a/compiler/forget/src/Inference/InferMutableRangesForAlias.ts
+++ b/compiler/forget/src/Inference/InferMutableRangesForAlias.ts
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import { HIRFunction, Identifier, InstructionId } from "../HIR/HIR";
import DisjointSet from "../Utils/DisjointSet";
diff --git a/compiler/forget/src/Inference/InferReferenceEffects.ts b/compiler/forget/src/Inference/InferReferenceEffects.ts
index d1eabcba22..961dcd910f 100644
--- a/compiler/forget/src/Inference/InferReferenceEffects.ts
+++ b/compiler/forget/src/Inference/InferReferenceEffects.ts
@@ -1,5 +1,5 @@
/**
- * Copyright (c) Facebook, Inc. and its affiliates.
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
diff --git a/compiler/forget/src/Inference/index.ts b/compiler/forget/src/Inference/index.ts
index a77861f352..653e8e1f7e 100644
--- a/compiler/forget/src/Inference/index.ts
+++ b/compiler/forget/src/Inference/index.ts
@@ -1,5 +1,5 @@
/**
- * Copyright (c) Facebook, Inc. and its affiliates.
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
diff --git a/compiler/forget/src/Optimization/ConstantPropagation.ts b/compiler/forget/src/Optimization/ConstantPropagation.ts
index baabb64899..4dd321a393 100644
--- a/compiler/forget/src/Optimization/ConstantPropagation.ts
+++ b/compiler/forget/src/Optimization/ConstantPropagation.ts
@@ -1,5 +1,5 @@
/**
- * Copyright (c) Facebook, Inc. and its affiliates.
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
diff --git a/compiler/forget/src/Optimization/DeadCodeElimination.ts b/compiler/forget/src/Optimization/DeadCodeElimination.ts
index d30188ea60..5268e40517 100644
--- a/compiler/forget/src/Optimization/DeadCodeElimination.ts
+++ b/compiler/forget/src/Optimization/DeadCodeElimination.ts
@@ -1,5 +1,5 @@
/**
- * Copyright (c) Facebook, Inc. and its affiliates.
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
diff --git a/compiler/forget/src/Optimization/index.ts b/compiler/forget/src/Optimization/index.ts
index 8ee4e64f74..440157b4f0 100644
--- a/compiler/forget/src/Optimization/index.ts
+++ b/compiler/forget/src/Optimization/index.ts
@@ -1,5 +1,5 @@
/**
- * Copyright (c) Facebook, Inc. and its affiliates.
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
diff --git a/compiler/forget/src/ReactiveScopes/AlignReactiveScopesToBlockScopes.ts b/compiler/forget/src/ReactiveScopes/AlignReactiveScopesToBlockScopes.ts
index 8cf556aaf5..e3b44798f2 100644
--- a/compiler/forget/src/ReactiveScopes/AlignReactiveScopesToBlockScopes.ts
+++ b/compiler/forget/src/ReactiveScopes/AlignReactiveScopesToBlockScopes.ts
@@ -1,5 +1,5 @@
/**
- * Copyright (c) Facebook, Inc. and its affiliates.
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
diff --git a/compiler/forget/src/ReactiveScopes/BuildReactiveBlocks.ts b/compiler/forget/src/ReactiveScopes/BuildReactiveBlocks.ts
index 91dca360eb..0727211d72 100644
--- a/compiler/forget/src/ReactiveScopes/BuildReactiveBlocks.ts
+++ b/compiler/forget/src/ReactiveScopes/BuildReactiveBlocks.ts
@@ -1,5 +1,5 @@
/**
- * Copyright (c) Facebook, Inc. and its affiliates.
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
diff --git a/compiler/forget/src/ReactiveScopes/BuildReactiveFunction.ts b/compiler/forget/src/ReactiveScopes/BuildReactiveFunction.ts
index 32a26ffa7b..00d5f5f5ad 100644
--- a/compiler/forget/src/ReactiveScopes/BuildReactiveFunction.ts
+++ b/compiler/forget/src/ReactiveScopes/BuildReactiveFunction.ts
@@ -1,5 +1,5 @@
/**
- * Copyright (c) Facebook, Inc. and its affiliates.
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
diff --git a/compiler/forget/src/ReactiveScopes/CodegenReactiveFunction.ts b/compiler/forget/src/ReactiveScopes/CodegenReactiveFunction.ts
index 343e7d5a4a..ba53166f23 100644
--- a/compiler/forget/src/ReactiveScopes/CodegenReactiveFunction.ts
+++ b/compiler/forget/src/ReactiveScopes/CodegenReactiveFunction.ts
@@ -1,5 +1,5 @@
/**
- * Copyright (c) Facebook, Inc. and its affiliates.
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
diff --git a/compiler/forget/src/ReactiveScopes/DeriveMinimalDependencies.ts b/compiler/forget/src/ReactiveScopes/DeriveMinimalDependencies.ts
index 9a2e7cbc85..a5217bb14a 100644
--- a/compiler/forget/src/ReactiveScopes/DeriveMinimalDependencies.ts
+++ b/compiler/forget/src/ReactiveScopes/DeriveMinimalDependencies.ts
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import invariant from "invariant";
import { Identifier, ReactiveScopeDependency } from "../HIR";
import { printIdentifier } from "../HIR/PrintHIR";
diff --git a/compiler/forget/src/ReactiveScopes/FlattenReactiveLoops.ts b/compiler/forget/src/ReactiveScopes/FlattenReactiveLoops.ts
index 1994466a25..469bfc46b7 100644
--- a/compiler/forget/src/ReactiveScopes/FlattenReactiveLoops.ts
+++ b/compiler/forget/src/ReactiveScopes/FlattenReactiveLoops.ts
@@ -1,5 +1,5 @@
/**
- * Copyright (c) Facebook, Inc. and its affiliates.
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
diff --git a/compiler/forget/src/ReactiveScopes/FlattenScopesWithHooks.ts b/compiler/forget/src/ReactiveScopes/FlattenScopesWithHooks.ts
index eb1f6e2cfe..565b9a2f96 100644
--- a/compiler/forget/src/ReactiveScopes/FlattenScopesWithHooks.ts
+++ b/compiler/forget/src/ReactiveScopes/FlattenScopesWithHooks.ts
@@ -1,5 +1,5 @@
/**
- * Copyright (c) Facebook, Inc. and its affiliates.
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
diff --git a/compiler/forget/src/ReactiveScopes/InferReactiveIdentifiers.ts b/compiler/forget/src/ReactiveScopes/InferReactiveIdentifiers.ts
index d5fc8a5e20..da749fd527 100644
--- a/compiler/forget/src/ReactiveScopes/InferReactiveIdentifiers.ts
+++ b/compiler/forget/src/ReactiveScopes/InferReactiveIdentifiers.ts
@@ -1,5 +1,5 @@
/**
- * Copyright (c) Facebook, Inc. and its affiliates.
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
diff --git a/compiler/forget/src/ReactiveScopes/MemoizeFbtOperandsInSameScope.ts b/compiler/forget/src/ReactiveScopes/MemoizeFbtOperandsInSameScope.ts
index cfb0d3ce46..4c2e45c04e 100644
--- a/compiler/forget/src/ReactiveScopes/MemoizeFbtOperandsInSameScope.ts
+++ b/compiler/forget/src/ReactiveScopes/MemoizeFbtOperandsInSameScope.ts
@@ -1,5 +1,5 @@
/**
- * Copyright (c) Facebook, Inc. and its affiliates.
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
diff --git a/compiler/forget/src/ReactiveScopes/MergeOverlappingReactiveScopes.ts b/compiler/forget/src/ReactiveScopes/MergeOverlappingReactiveScopes.ts
index cd96967867..e970b5a438 100644
--- a/compiler/forget/src/ReactiveScopes/MergeOverlappingReactiveScopes.ts
+++ b/compiler/forget/src/ReactiveScopes/MergeOverlappingReactiveScopes.ts
@@ -1,5 +1,5 @@
/**
- * Copyright (c) Facebook, Inc. and its affiliates.
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
diff --git a/compiler/forget/src/ReactiveScopes/PrintReactiveFunction.ts b/compiler/forget/src/ReactiveScopes/PrintReactiveFunction.ts
index 176a54dafa..b0c073d195 100644
--- a/compiler/forget/src/ReactiveScopes/PrintReactiveFunction.ts
+++ b/compiler/forget/src/ReactiveScopes/PrintReactiveFunction.ts
@@ -1,5 +1,5 @@
/**
- * Copyright (c) Facebook, Inc. and its affiliates.
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
diff --git a/compiler/forget/src/ReactiveScopes/PromoteUsedTemporaries.ts b/compiler/forget/src/ReactiveScopes/PromoteUsedTemporaries.ts
index a034674122..e5578622f8 100644
--- a/compiler/forget/src/ReactiveScopes/PromoteUsedTemporaries.ts
+++ b/compiler/forget/src/ReactiveScopes/PromoteUsedTemporaries.ts
@@ -1,5 +1,5 @@
/**
- * Copyright (c) Facebook, Inc. and its affiliates.
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
diff --git a/compiler/forget/src/ReactiveScopes/PropagateScopeDependencies.ts b/compiler/forget/src/ReactiveScopes/PropagateScopeDependencies.ts
index c9add5efa2..dd21946e1a 100644
--- a/compiler/forget/src/ReactiveScopes/PropagateScopeDependencies.ts
+++ b/compiler/forget/src/ReactiveScopes/PropagateScopeDependencies.ts
@@ -1,5 +1,5 @@
/**
- * Copyright (c) Facebook, Inc. and its affiliates.
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
diff --git a/compiler/forget/src/ReactiveScopes/PruneNonEscapingScopes.ts b/compiler/forget/src/ReactiveScopes/PruneNonEscapingScopes.ts
index b48791c364..fc968a33a8 100644
--- a/compiler/forget/src/ReactiveScopes/PruneNonEscapingScopes.ts
+++ b/compiler/forget/src/ReactiveScopes/PruneNonEscapingScopes.ts
@@ -1,5 +1,5 @@
/**
- * Copyright (c) Facebook, Inc. and its affiliates.
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
diff --git a/compiler/forget/src/ReactiveScopes/PruneNonReactiveDependencies.ts b/compiler/forget/src/ReactiveScopes/PruneNonReactiveDependencies.ts
index 73f8a6a783..df482b3cc8 100644
--- a/compiler/forget/src/ReactiveScopes/PruneNonReactiveDependencies.ts
+++ b/compiler/forget/src/ReactiveScopes/PruneNonReactiveDependencies.ts
@@ -1,5 +1,5 @@
/**
- * Copyright (c) Facebook, Inc. and its affiliates.
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
diff --git a/compiler/forget/src/ReactiveScopes/PruneTemporaryLValues.ts b/compiler/forget/src/ReactiveScopes/PruneTemporaryLValues.ts
index 965d455c4b..6ffaa50376 100644
--- a/compiler/forget/src/ReactiveScopes/PruneTemporaryLValues.ts
+++ b/compiler/forget/src/ReactiveScopes/PruneTemporaryLValues.ts
@@ -1,5 +1,5 @@
/**
- * Copyright (c) Facebook, Inc. and its affiliates.
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
diff --git a/compiler/forget/src/ReactiveScopes/PruneUnusedLabels.ts b/compiler/forget/src/ReactiveScopes/PruneUnusedLabels.ts
index 0e5c0c6a39..3c3dc1c567 100644
--- a/compiler/forget/src/ReactiveScopes/PruneUnusedLabels.ts
+++ b/compiler/forget/src/ReactiveScopes/PruneUnusedLabels.ts
@@ -1,5 +1,5 @@
/**
- * Copyright (c) Facebook, Inc. and its affiliates.
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
diff --git a/compiler/forget/src/ReactiveScopes/PruneUnusedScopes.ts b/compiler/forget/src/ReactiveScopes/PruneUnusedScopes.ts
index 7e356af750..6e2787c11f 100644
--- a/compiler/forget/src/ReactiveScopes/PruneUnusedScopes.ts
+++ b/compiler/forget/src/ReactiveScopes/PruneUnusedScopes.ts
@@ -1,5 +1,5 @@
/**
- * Copyright (c) Facebook, Inc. and its affiliates.
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
diff --git a/compiler/forget/src/ReactiveScopes/RenameVariables.ts b/compiler/forget/src/ReactiveScopes/RenameVariables.ts
index 0109098372..baa006b10d 100644
--- a/compiler/forget/src/ReactiveScopes/RenameVariables.ts
+++ b/compiler/forget/src/ReactiveScopes/RenameVariables.ts
@@ -1,5 +1,5 @@
/**
- * Copyright (c) Facebook, Inc. and its affiliates.
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
diff --git a/compiler/forget/src/ReactiveScopes/index.ts b/compiler/forget/src/ReactiveScopes/index.ts
index 7c553f2db5..8d042ee6e0 100644
--- a/compiler/forget/src/ReactiveScopes/index.ts
+++ b/compiler/forget/src/ReactiveScopes/index.ts
@@ -1,5 +1,5 @@
/**
- * Copyright (c) Facebook, Inc. and its affiliates.
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
diff --git a/compiler/forget/src/ReactiveScopes/visitors.ts b/compiler/forget/src/ReactiveScopes/visitors.ts
index 0ea9db36f7..64fa92508a 100644
--- a/compiler/forget/src/ReactiveScopes/visitors.ts
+++ b/compiler/forget/src/ReactiveScopes/visitors.ts
@@ -1,5 +1,5 @@
/**
- * Copyright (c) Facebook, Inc. and its affiliates.
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
diff --git a/compiler/forget/src/SSA/EliminateRedundantPhi.ts b/compiler/forget/src/SSA/EliminateRedundantPhi.ts
index b9e4c036fc..0695b0ced6 100644
--- a/compiler/forget/src/SSA/EliminateRedundantPhi.ts
+++ b/compiler/forget/src/SSA/EliminateRedundantPhi.ts
@@ -1,5 +1,5 @@
/**
- * Copyright (c) Facebook, Inc. and its affiliates.
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
diff --git a/compiler/forget/src/SSA/EnterSSA.ts b/compiler/forget/src/SSA/EnterSSA.ts
index 81ac35baef..75a1522134 100644
--- a/compiler/forget/src/SSA/EnterSSA.ts
+++ b/compiler/forget/src/SSA/EnterSSA.ts
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import invariant from "invariant";
import { CompilerError } from "../CompilerError";
import { Environment } from "../HIR/Environment";
diff --git a/compiler/forget/src/SSA/LeaveSSA.ts b/compiler/forget/src/SSA/LeaveSSA.ts
index c5b059343f..434f9df6db 100644
--- a/compiler/forget/src/SSA/LeaveSSA.ts
+++ b/compiler/forget/src/SSA/LeaveSSA.ts
@@ -1,5 +1,5 @@
/**
- * Copyright (c) Facebook, Inc. and its affiliates.
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
diff --git a/compiler/forget/src/SSA/index.ts b/compiler/forget/src/SSA/index.ts
index 3843f4363a..7d1d8917b3 100644
--- a/compiler/forget/src/SSA/index.ts
+++ b/compiler/forget/src/SSA/index.ts
@@ -1,5 +1,5 @@
/**
- * Copyright (c) Facebook, Inc. and its affiliates.
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
diff --git a/compiler/forget/src/TypeInference/InferTypes.ts b/compiler/forget/src/TypeInference/InferTypes.ts
index 6ed242ddc1..aea2656ea2 100644
--- a/compiler/forget/src/TypeInference/InferTypes.ts
+++ b/compiler/forget/src/TypeInference/InferTypes.ts
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import * as t from "@babel/types";
import invariant from "invariant";
import { Environment } from "../HIR";
diff --git a/compiler/forget/src/TypeInference/index.ts b/compiler/forget/src/TypeInference/index.ts
index afea21dc02..009c082e3c 100644
--- a/compiler/forget/src/TypeInference/index.ts
+++ b/compiler/forget/src/TypeInference/index.ts
@@ -1,5 +1,5 @@
/**
- * Copyright (c) Facebook, Inc. and its affiliates.
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
diff --git a/compiler/forget/src/Utils/DisjointSet.ts b/compiler/forget/src/Utils/DisjointSet.ts
index 6c7fa69ed9..00d5506de5 100644
--- a/compiler/forget/src/Utils/DisjointSet.ts
+++ b/compiler/forget/src/Utils/DisjointSet.ts
@@ -1,5 +1,5 @@
/**
- * Copyright (c) Facebook, Inc. and its affiliates.
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
diff --git a/compiler/forget/src/Utils/Result.ts b/compiler/forget/src/Utils/Result.ts
index d4f928e65f..982cde8020 100644
--- a/compiler/forget/src/Utils/Result.ts
+++ b/compiler/forget/src/Utils/Result.ts
@@ -1,5 +1,5 @@
/**
- * Copyright (c) Facebook, Inc. and its affiliates.
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
diff --git a/compiler/forget/src/Utils/VisualizeHIRMermaid.ts b/compiler/forget/src/Utils/VisualizeHIRMermaid.ts
index 4954bfdc24..4e703fd8fb 100644
--- a/compiler/forget/src/Utils/VisualizeHIRMermaid.ts
+++ b/compiler/forget/src/Utils/VisualizeHIRMermaid.ts
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import { BasicBlock, BlockId, HIRFunction, Terminal } from "../HIR/HIR";
import { printInstruction, printPlace } from "../HIR/PrintHIR";
import { assertExhaustive } from "./utils";
diff --git a/compiler/forget/src/Utils/logger.ts b/compiler/forget/src/Utils/logger.ts
index d306eb1747..201215aab4 100644
--- a/compiler/forget/src/Utils/logger.ts
+++ b/compiler/forget/src/Utils/logger.ts
@@ -1,5 +1,5 @@
/**
- * Copyright (c) Facebook, Inc. and its affiliates.
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
diff --git a/compiler/forget/src/Utils/types.d.ts b/compiler/forget/src/Utils/types.d.ts
index 957c14a909..2f7b149c74 100644
--- a/compiler/forget/src/Utils/types.d.ts
+++ b/compiler/forget/src/Utils/types.d.ts
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
export type ExtractClassProperties = {
[K in keyof C as C[K] extends Function ? never : K]: C[K];
};
diff --git a/compiler/forget/src/Utils/utils.ts b/compiler/forget/src/Utils/utils.ts
index cc7fbaf873..00f8946457 100644
--- a/compiler/forget/src/Utils/utils.ts
+++ b/compiler/forget/src/Utils/utils.ts
@@ -1,5 +1,5 @@
/**
- * Copyright (c) Facebook, Inc. and its affiliates.
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
diff --git a/compiler/forget/src/__tests__/DisjointSet-test.ts b/compiler/forget/src/__tests__/DisjointSet-test.ts
index 69a44789a3..f6900ea320 100644
--- a/compiler/forget/src/__tests__/DisjointSet-test.ts
+++ b/compiler/forget/src/__tests__/DisjointSet-test.ts
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import DisjointSet from "../Utils/DisjointSet";
type TestIdentifier = {
diff --git a/compiler/forget/src/__tests__/Result-test.ts b/compiler/forget/src/__tests__/Result-test.ts
index 254abe5e5b..0152eafcd5 100644
--- a/compiler/forget/src/__tests__/Result-test.ts
+++ b/compiler/forget/src/__tests__/Result-test.ts
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
import { CompilerError } from "../CompilerError";
import { Err, Ok, Result } from "../Utils/Result";
diff --git a/compiler/forget/src/__tests__/compiler-test.ts b/compiler/forget/src/__tests__/compiler-test.ts
index ee295d1598..10f088dbed 100644
--- a/compiler/forget/src/__tests__/compiler-test.ts
+++ b/compiler/forget/src/__tests__/compiler-test.ts
@@ -1,5 +1,5 @@
/**
- * Copyright (c) Facebook, Inc. and its affiliates.
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
diff --git a/compiler/forget/src/__tests__/disableMemoizeJsxElements-test.ts b/compiler/forget/src/__tests__/disableMemoizeJsxElements-test.ts
index 5d2522dd15..f6582b6603 100644
--- a/compiler/forget/src/__tests__/disableMemoizeJsxElements-test.ts
+++ b/compiler/forget/src/__tests__/disableMemoizeJsxElements-test.ts
@@ -1,5 +1,5 @@
/**
- * Copyright (c) Facebook, Inc. and its affiliates.
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
diff --git a/compiler/forget/src/__tests__/hir-test.ts b/compiler/forget/src/__tests__/hir-test.ts
index b828be1e8b..520c2587f4 100644
--- a/compiler/forget/src/__tests__/hir-test.ts
+++ b/compiler/forget/src/__tests__/hir-test.ts
@@ -1,5 +1,5 @@
/**
- * Copyright (c) Facebook, Inc. and its affiliates.
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
diff --git a/compiler/forget/src/__tests__/test-utils/generateTestsFromFixtures.ts b/compiler/forget/src/__tests__/test-utils/generateTestsFromFixtures.ts
index 830f3a915e..cf5b9cb7e3 100644
--- a/compiler/forget/src/__tests__/test-utils/generateTestsFromFixtures.ts
+++ b/compiler/forget/src/__tests__/test-utils/generateTestsFromFixtures.ts
@@ -1,5 +1,5 @@
/**
- * Copyright (c) Facebook, Inc. and its affiliates.
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
diff --git a/compiler/forget/src/__tests__/test-utils/validateNoUseBeforeDefine.ts b/compiler/forget/src/__tests__/test-utils/validateNoUseBeforeDefine.ts
index b2e86a3da6..3932861a4d 100644
--- a/compiler/forget/src/__tests__/test-utils/validateNoUseBeforeDefine.ts
+++ b/compiler/forget/src/__tests__/test-utils/validateNoUseBeforeDefine.ts
@@ -1,5 +1,5 @@
/**
- * Copyright (c) Facebook, Inc. and its affiliates.
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
diff --git a/compiler/forget/src/index.ts b/compiler/forget/src/index.ts
index fb58b437ea..fa830eb223 100644
--- a/compiler/forget/src/index.ts
+++ b/compiler/forget/src/index.ts
@@ -1,5 +1,5 @@
/**
- * Copyright (c) Facebook, Inc. and its affiliates.
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.