Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add required copyright headers to files missing it #1625

Merged
merged 1 commit into from
Sep 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Dockerfile.vpdq
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# Dockerfile for development of vpdq.

FROM ubuntu:24.04
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.

import re
import typing as t

Expand Down
2 changes: 2 additions & 0 deletions hasher-matcher-actioner/src/OpenMediaMatch/migrations/env.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.

import logging
from logging.config import fileConfig

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.

"""${message}

Revision ID: ${up_revision}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{# Copyright (c) Meta Platforms, Inc. and affiliates. #}
<!doctype html>
<html lang="en">

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{# Copyright (c) Meta Platforms, Inc. and affiliates. #}
<h3> Add Content to Bank</h3>
<form id="add_content_to_bank">
<div class="row">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{# Copyright (c) Meta Platforms, Inc. and affiliates. #}
<h3> Banks </h3>
<div class="w-50 my-1">
<form action="/ui/create_bank" method="post" enctype="multipart/form-data">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{# Copyright (c) Meta Platforms, Inc. and affiliates. #}
<div class="row row-cols-1 row-cols-md-3 mb-3 text-center">
<div class="col">
<div class="card rounded-3 shadow-sm">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{# Copyright (c) Meta Platforms, Inc. and affiliates. #}
<!-- Button trigger modal -->
<button type="button" class="btn btn-outline-success" data-bs-toggle="modal" data-bs-target="#createExchange">
Create Exchange
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{# Copyright (c) Meta Platforms, Inc. and affiliates. #}
<div class="container my-3">
<div class="alert alert-primary" role="alert">
<div class="d-flex flex-row align-items-center">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{# Copyright (c) Meta Platforms, Inc. and affiliates. #}
<table class="table">
<thead>
<tr>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{# Copyright (c) Meta Platforms, Inc. and affiliates. #}
<h3>Index Status</h3>
<table class="table">
<thead>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{# Copyright (c) Meta Platforms, Inc. and affiliates. #}
<div class="card text-dark bg-light box-shadow h-md-250 h-100 mx-auto">
<div class="row align-items-center m-2">
<div class="col" id="{{ upload_id }}-img">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{# Copyright (c) Meta Platforms, Inc. and affiliates. #}
<h3>Match File</h3>
<form id="match_file">
<div class="row">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{# Copyright (c) Meta Platforms, Inc. and affiliates. #}
<nav class="navbar navbar-expand-lg bg-primary" data-bs-theme="dark">
<div class="container-fluid">
<a class="navbar-brand" href="{{ url_for('.home') }}">Open Media Match</a>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{# Copyright (c) Meta Platforms, Inc. and affiliates. #}
<div class="container my-3">
{% include "components/banks_grid.html.j2" %}
</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{# Copyright (c) Meta Platforms, Inc. and affiliates. #}
<div class="container my-3">
<h3>Exchange Status</h3>
{% include 'components/create_exchange_modal.html.j2' %}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{# Copyright (c) Meta Platforms, Inc. and affiliates. #}
{% if not production %}
{% include "components/dev_mode_bar.html.j2" %}
{% endif %}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{# Copyright (c) Meta Platforms, Inc. and affiliates. #}
<div class="container">
<div class="py-5 text-center">
<h3>Matching and SignalType Debugger</h3>
Expand Down
2 changes: 2 additions & 0 deletions hasher-matcher-actioner/src/OpenMediaMatch/tests/test_api.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.

import typing as t

from flask.testing import FlaskClient
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.

import typing as t
from flask import Flask
from sqlalchemy import select, and_
Expand Down
2 changes: 2 additions & 0 deletions hasher-matcher-actioner/src/OpenMediaMatch/tests/utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.

import os
import pytest
import typing as t
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.

from pythonjsonlogger import jsonlogger


Expand Down
8 changes: 5 additions & 3 deletions vpdq/cpp/pdq/cpp/hashing/torben.cpp
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
// ================================================================
// The following code is public domain.
// Algorithm by Torben Mogensen, implementation by N. Devillard.
// This code in public domain.
// Copyright (c) Meta Platforms, Inc. and affiliates.
// ================================================================

namespace facebook {
namespace pdq {
namespace hashing {

/**
* The following code is public domain.
* Algorithm by Torben Mogensen, implementation by N. Devillard.
*/
float torben(float m[], int n) {
int i, less, greater, equal;
float min, max, guess, maxltguess, mingtguess;
Expand Down
14 changes: 6 additions & 8 deletions vpdq/cpp/pdq/cpp/hashing/torben.h
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
// ================================================================
// The following code is public domain.
// Algorithm by Torben Mogensen, implementation by N. Devillard.
// This code in public domain.
// Copyright (c) Meta Platforms, Inc. and affiliates.
// ================================================================

#ifndef TORBEN_H
#define TORBEN_H
/*
* The following code is public domain.
* Algorithm by Torben Mogensen, implementation by N. Devillard.
* This code in public domain.
*/

namespace facebook {
namespace pdq {
namespace hashing {

/**
* The following code is public domain.
* Algorithm by Torben Mogensen, implementation by N. Devillard.
*/
float torben(float m[], int n);
} // namespace hashing
} // namespace pdq
Expand Down
2 changes: 2 additions & 0 deletions vpdq/python/tools/generate_hashes.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.

import vpdq # type: ignore
from pathlib import Path
from typing import Union, Sequence
Expand Down
Loading