Skip to content

Commit

Permalink
Add missing copyright headers. (facebookresearch#1460)
Browse files Browse the repository at this point in the history
Summary: Pull Request resolved: facebookresearch#1460

Reviewed By: wickedfoo

Differential Revision: D24278804

Pulled By: beauby

fbshipit-source-id: 5ea96ceb63be76a34f1eb4da03972159342cd5b6
  • Loading branch information
Lucas Hosseini authored and facebook-github-bot committed Oct 13, 2020
1 parent e796f4f commit 70eaa9b
Show file tree
Hide file tree
Showing 15 changed files with 74 additions and 4 deletions.
7 changes: 7 additions & 0 deletions c_api/IndexShards_c.cpp
Original file line number Diff line number Diff line change
@@ -1,3 1,10 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

#include "IndexShards_c.h"
#include "IndexShards.h"
#include "macros_impl.h"
Expand Down
5 changes: 5 additions & 0 deletions conda/Dockerfile.cpu
Original file line number Diff line number Diff line change
@@ -1,3 1,8 @@
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

FROM nvidia/cuda:10.2-devel-ubuntu18.04

RUN apt-get update && apt-get install -y wget git
Expand Down
5 changes: 5 additions & 0 deletions conda/Dockerfile.cuda10.2
Original file line number Diff line number Diff line change
@@ -1,3 1,8 @@
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

FROM nvidia/cuda:10.2-devel-ubuntu18.04

RUN apt-get update && apt-get install -y wget git libcublas-dev
Expand Down
5 changes: 4 additions & 1 deletion contrib/client_server.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 1,7 @@
#! /usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

from multiprocessing.dummy import Pool as ThreadPool
import faiss
Expand Down
5 changes: 5 additions & 0 deletions contrib/datasets.py
Original file line number Diff line number Diff line change
@@ -1,3 1,8 @@
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

import os
import numpy as np
import faiss
Expand Down
5 changes: 4 additions & 1 deletion contrib/exhaustive_search.py
Original file line number Diff line number Diff line change
@@ -1,4 1,7 @@
#! /usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

import faiss
import time
Expand Down
5 changes: 4 additions & 1 deletion contrib/ondisk.py
Original file line number Diff line number Diff line change
@@ -1,4 1,7 @@
#! /usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

from typing import List
import faiss
Expand Down
5 changes: 5 additions & 0 deletions contrib/pytorch_tensors.py
Original file line number Diff line number Diff line change
@@ -1,3 1,8 @@
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

import faiss
import torch
import contextlib
Expand Down
5 changes: 4 additions & 1 deletion contrib/rpc.py
Original file line number Diff line number Diff line change
@@ -1,4 1,7 @@
#!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

"""
Simplistic RPC implementation.
Expand Down
5 changes: 5 additions & 0 deletions contrib/vecs_io.py
Original file line number Diff line number Diff line change
@@ -1,3 1,8 @@
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

import numpy as np

"""
Expand Down
4 changes: 4 additions & 0 deletions demos/demo_client_server_ivf.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 1,8 @@
#!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

import sys
import numpy as np
Expand Down
5 changes: 5 additions & 0 deletions faiss/gpu/test/test_contrib.py
Original file line number Diff line number Diff line change
@@ -1,3 1,8 @@
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

import faiss
import unittest
import numpy as np
Expand Down
7 changes: 7 additions & 0 deletions faiss/python/python_callbacks.h
Original file line number Diff line number Diff line change
@@ -1,3 1,10 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

#pragma once

#include "Python.h"
Expand Down
5 changes: 5 additions & 0 deletions faiss/python/setup.py
Original file line number Diff line number Diff line change
@@ -1,3 1,8 @@
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

from __future__ import print_function
from setuptools import setup, find_packages
import os
Expand Down
5 changes: 5 additions & 0 deletions tests/test_contrib.py
Original file line number Diff line number Diff line change
@@ -1,3 1,8 @@
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

import faiss
import unittest
import numpy as np
Expand Down

0 comments on commit 70eaa9b

Please sign in to comment.