aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/algorithms
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2016-10-01 18:14:49 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2016-10-01 18:14:49 +0300
commit0fc56b96548151ee2d981449fe5c0115b040f457 (patch)
tree0aa40970b157b2ab37db5ec0a9abd528a3eb18d5 /algorithms
parentcode style (diff)
downloadsorting-algorithms-0fc56b96548151ee2d981449fe5c0115b040f457.tar.gz
sorting-algorithms-0fc56b96548151ee2d981449fe5c0115b040f457.zip
fix licensing notices
Diffstat (limited to 'algorithms')
-rw-r--r--algorithms/algorithm.py7
-rw-r--r--algorithms/impl/__init__.py7
-rw-r--r--algorithms/impl/bubble_sort.py7
-rw-r--r--algorithms/impl/heapsort.py7
-rw-r--r--algorithms/impl/insertion_sort.py7
-rw-r--r--algorithms/impl/median.py7
-rw-r--r--algorithms/impl/merge_sort.py7
-rw-r--r--algorithms/impl/quicksort.py7
-rw-r--r--algorithms/impl/selection_sort.py7
-rw-r--r--algorithms/inputgen.py7
-rw-r--r--algorithms/params.py7
-rw-r--r--algorithms/plotter.py7
-rw-r--r--algorithms/registry.py7
-rw-r--r--algorithms/timer.py7
14 files changed, 56 insertions, 42 deletions
diff --git a/algorithms/algorithm.py b/algorithms/algorithm.py
index b65ed04..2d793bc 100644
--- a/algorithms/algorithm.py
+++ b/algorithms/algorithm.py
@@ -1,6 +1,7 @@
-# Copyright 2016 Egor Tensin <Egor.Tensin@gmail.com>
-# This file is licensed under the terms of the MIT License.
-# See LICENSE.txt for details.
+# Copyright (c) 2016 Egor Tensin <Egor.Tensin@gmail.com>
+# This file is part of the "Sorting algorithms" project.
+# For details, see https://github.com/egor-tensin/sorting-algorithms.
+# Distributed under the MIT License.
from . import inputgen
diff --git a/algorithms/impl/__init__.py b/algorithms/impl/__init__.py
index dcb8fc4..579b091 100644
--- a/algorithms/impl/__init__.py
+++ b/algorithms/impl/__init__.py
@@ -1,6 +1,7 @@
-# Copyright 2016 Egor Tensin <Egor.Tensin@gmail.com>
-# This file is licensed under the terms of the MIT License.
-# See LICENSE.txt for details.
+# Copyright (c) 2016 Egor Tensin <Egor.Tensin@gmail.com>
+# This file is part of the "Sorting algorithms" project.
+# For details, see https://github.com/egor-tensin/sorting-algorithms.
+# Distributed under the MIT License.
from importlib import import_module
import os.path
diff --git a/algorithms/impl/bubble_sort.py b/algorithms/impl/bubble_sort.py
index e6aa645..e75ceab 100644
--- a/algorithms/impl/bubble_sort.py
+++ b/algorithms/impl/bubble_sort.py
@@ -1,6 +1,7 @@
-# Copyright 2015 Egor Tensin <Egor.Tensin@gmail.com>
-# This file is licensed under the terms of the MIT License.
-# See LICENSE.txt for details.
+# Copyright (c) 2015 Egor Tensin <Egor.Tensin@gmail.com>
+# This file is part of the "Sorting algorithms" project.
+# For details, see https://github.com/egor-tensin/sorting-algorithms.
+# Distributed under the MIT License.
import sys
diff --git a/algorithms/impl/heapsort.py b/algorithms/impl/heapsort.py
index c92a04c..6615e14 100644
--- a/algorithms/impl/heapsort.py
+++ b/algorithms/impl/heapsort.py
@@ -1,6 +1,7 @@
-# Copyright 2015 Egor Tensin <Egor.Tensin@gmail.com>
-# This file is licensed under the terms of the MIT License.
-# See LICENSE.txt for details.
+# Copyright (c) 2015 Egor Tensin <Egor.Tensin@gmail.com>
+# This file is part of the "Sorting algorithms" project.
+# For details, see https://github.com/egor-tensin/sorting-algorithms.
+# Distributed under the MIT License.
import sys
diff --git a/algorithms/impl/insertion_sort.py b/algorithms/impl/insertion_sort.py
index 006ab66..d02b970 100644
--- a/algorithms/impl/insertion_sort.py
+++ b/algorithms/impl/insertion_sort.py
@@ -1,6 +1,7 @@
-# Copyright 2015 Egor Tensin <Egor.Tensin@gmail.com>
-# This file is licensed under the terms of the MIT License.
-# See LICENSE.txt for details.
+# Copyright (c) 2015 Egor Tensin <Egor.Tensin@gmail.com>
+# This file is part of the "Sorting algorithms" project.
+# For details, see https://github.com/egor-tensin/sorting-algorithms.
+# Distributed under the MIT License.
import sys
diff --git a/algorithms/impl/median.py b/algorithms/impl/median.py
index e6b9901..d19dec4 100644
--- a/algorithms/impl/median.py
+++ b/algorithms/impl/median.py
@@ -1,6 +1,7 @@
-# Copyright 2016 Egor Tensin <Egor.Tensin@gmail.com>
-# This file is licensed under the terms of the MIT License.
-# See LICENSE.txt for details.
+# Copyright (c) 2016 Egor Tensin <Egor.Tensin@gmail.com>
+# This file is part of the "Sorting algorithms" project.
+# For details, see https://github.com/egor-tensin/sorting-algorithms.
+# Distributed under the MIT License.
from heapq import heappush, heappop
import sys
diff --git a/algorithms/impl/merge_sort.py b/algorithms/impl/merge_sort.py
index 8d0b573..3dd2bb9 100644
--- a/algorithms/impl/merge_sort.py
+++ b/algorithms/impl/merge_sort.py
@@ -1,6 +1,7 @@
-# Copyright 2015 Egor Tensin <Egor.Tensin@gmail.com>
-# This file is licensed under the terms of the MIT License.
-# See LICENSE.txt for details.
+# Copyright (c) 2015 Egor Tensin <Egor.Tensin@gmail.com>
+# This file is part of the "Sorting algorithms" project.
+# For details, see https://github.com/egor-tensin/sorting-algorithms.
+# Distributed under the MIT License.
import sys
diff --git a/algorithms/impl/quicksort.py b/algorithms/impl/quicksort.py
index 9230187..3c4715a 100644
--- a/algorithms/impl/quicksort.py
+++ b/algorithms/impl/quicksort.py
@@ -1,6 +1,7 @@
-# Copyright 2015 Egor Tensin <Egor.Tensin@gmail.com>
-# This file is licensed under the terms of the MIT License.
-# See LICENSE.txt for details.
+# Copyright (c) 2015 Egor Tensin <Egor.Tensin@gmail.com>
+# This file is part of the "Sorting algorithms" project.
+# For details, see https://github.com/egor-tensin/sorting-algorithms.
+# Distributed under the MIT License.
from random import randrange, seed
import sys
diff --git a/algorithms/impl/selection_sort.py b/algorithms/impl/selection_sort.py
index d5d11d2..0dbf4eb 100644
--- a/algorithms/impl/selection_sort.py
+++ b/algorithms/impl/selection_sort.py
@@ -1,6 +1,7 @@
-# Copyright 2015 Egor Tensin <Egor.Tensin@gmail.com>
-# This file is licensed under the terms of the MIT License.
-# See LICENSE.txt for details.
+# Copyright (c) 2015 Egor Tensin <Egor.Tensin@gmail.com>
+# This file is part of the "Sorting algorithms" project.
+# For details, see https://github.com/egor-tensin/sorting-algorithms.
+# Distributed under the MIT License.
import sys
diff --git a/algorithms/inputgen.py b/algorithms/inputgen.py
index 2659ffc..aeb4f29 100644
--- a/algorithms/inputgen.py
+++ b/algorithms/inputgen.py
@@ -1,6 +1,7 @@
-# Copyright 2016 Egor Tensin <Egor.Tensin@gmail.com>
-# This file is licensed under the terms of the MIT License.
-# See LICENSE.txt for details.
+# Copyright (c) 2016 Egor Tensin <Egor.Tensin@gmail.com>
+# This file is part of the "Sorting algorithms" project.
+# For details, see https://github.com/egor-tensin/sorting-algorithms.
+# Distributed under the MIT License.
from array import array
from enum import Enum
diff --git a/algorithms/params.py b/algorithms/params.py
index 50a190f..b7fc38e 100644
--- a/algorithms/params.py
+++ b/algorithms/params.py
@@ -1,6 +1,7 @@
-# Copyright 2016 Egor Tensin <Egor.Tensin@gmail.com>
-# This file is licensed under the terms of the MIT License.
-# See LICENSE.txt for details.
+# Copyright (c) 2016 Egor Tensin <Egor.Tensin@gmail.com>
+# This file is part of the "Sorting algorithms" project.
+# For details, see https://github.com/egor-tensin/sorting-algorithms.
+# Distributed under the MIT License.
from enum import Enum
from numbers import Integral
diff --git a/algorithms/plotter.py b/algorithms/plotter.py
index 58ee941..8086850 100644
--- a/algorithms/plotter.py
+++ b/algorithms/plotter.py
@@ -1,6 +1,7 @@
-# Copyright 2016 Egor Tensin <Egor.Tensin@gmail.com>
-# This file is licensed under the terms of the MIT License.
-# See LICENSE.txt for details.
+# Copyright (c) 2016 Egor Tensin <Egor.Tensin@gmail.com>
+# This file is part of the "Sorting algorithms" project.
+# For details, see https://github.com/egor-tensin/sorting-algorithms.
+# Distributed under the MIT License.
import matplotlib.pyplot as plt
diff --git a/algorithms/registry.py b/algorithms/registry.py
index 0f75dce..787fe49 100644
--- a/algorithms/registry.py
+++ b/algorithms/registry.py
@@ -1,6 +1,7 @@
-# Copyright 2016 Egor Tensin <Egor.Tensin@gmail.com>
-# This file is licensed under the terms of the MIT License.
-# See LICENSE.txt for details.
+# Copyright (c) 2016 Egor Tensin <Egor.Tensin@gmail.com>
+# This file is part of the "Sorting algorithms" project.
+# For details, see https://github.com/egor-tensin/sorting-algorithms.
+# Distributed under the MIT License.
from . import impl
diff --git a/algorithms/timer.py b/algorithms/timer.py
index d334b94..0d37812 100644
--- a/algorithms/timer.py
+++ b/algorithms/timer.py
@@ -1,6 +1,7 @@
-# Copyright 2016 Egor Tensin <Egor.Tensin@gmail.com>
-# This file is licensed under the terms of the MIT License.
-# See LICENSE.txt for details.
+# Copyright (c) 2016 Egor Tensin <Egor.Tensin@gmail.com>
+# This file is part of the "Sorting algorithms" project.
+# For details, see https://github.com/egor-tensin/sorting-algorithms.
+# Distributed under the MIT License.
import gc, time