Skip to content

Commit

Permalink
replace GPL header with new BSD header in all tests [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
karlnapf committed Apr 13, 2018
1 parent 3afb987 commit 5600272
Show file tree
Hide file tree
Showing 73 changed files with 175 additions and 375 deletions.
7 changes: 2 additions & 5 deletions tests/unit/base/Parameter_unittest.cc
@@ -1,10 +1,7 @@
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* This software is distributed under BSD 3-clause license (see LICENSE file).
*
* Written (W) 2013 Heiko Strathmann
* Authors: Heiko Strathmann, Soumyajit De, Björn Esser
*/

#include <shogun/base/Parameter.h>
Expand Down
7 changes: 2 additions & 5 deletions tests/unit/base/RefCount_unittest.cc
@@ -1,10 +1,7 @@
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* This software is distributed under BSD 3-clause license (see LICENSE file).
*
* Written (W) 2014 Thoralf Klein
* Authors: Thoralf Klein, Sanuj Sharma, Viktor Gal
*/

#include <shogun/lib/RefCount.h>
Expand Down
8 changes: 3 additions & 5 deletions tests/unit/base/Serialization_unittest.cc
@@ -1,10 +1,8 @@
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* This software is distributed under BSD 3-clause license (see LICENSE file).
*
* Written (W) 2013 Heiko Strathmann
* Authors: Viktor Gal, Thoralf Klein, Evgeniy Andreev, Soeren Sonnenburg,
* Heiko Strathmann
*/

#include <shogun/labels/BinaryLabels.h>
Expand Down
10 changes: 4 additions & 6 deletions tests/unit/base/clone_unittest.cc.py
@@ -1,12 +1,10 @@
#!/usr/bin/env python

# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
# This software is distributed under BSD 3-clause license (see LICENSE file).
#
# Written (W) 2013 Viktor Gal
# Copyright (C) 2013 Viktor Gal
# Authors: Viktor Gal, Sergey Lisitsyn, Soeren Sonnenburg, Soumyajit De,
# Björn Esser, Heiko Strathmann, Michele Mazzoni


def get_class_list_content(class_list_file):
f = open(class_list_file, 'r')
Expand Down
7 changes: 3 additions & 4 deletions tests/unit/base/trained_model_serialization_unittest.cc.py
@@ -1,10 +1,9 @@
#!/usr/bin/env python

# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
# This software is distributed under BSD 3-clause license (see LICENSE file).
#
# Authors: Michele Mazzoni, Sergey Lisitsyn


# Classes to ignore: mostly because default initialization isn't enough
# to setup the machine for training (i.e. Multitask and DomainAdaptation),
Expand Down
8 changes: 3 additions & 5 deletions tests/unit/clustering/kmeans_unittest.cc
@@ -1,10 +1,8 @@
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* This software is distributed under BSD 3-clause license (see LICENSE file).
*
* Written (W) 2013 Parijat Mazumdar
* Authors: Saurabh Mahindre, Heiko Strathmann, Viktor Gal, parijat,
* Björn Esser, Soeren Sonnenburg
*/

#include <shogun/labels/MulticlassLabels.h>
Expand Down
8 changes: 2 additions & 6 deletions tests/unit/distance/Distance_unittest.cc
@@ -1,11 +1,7 @@
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* This software is distributed under BSD 3-clause license (see LICENSE file).
*
* Written (W) 2013 Fernando J. Iglesias Garcia
* Copyright (C) 2013 Fernando J. Iglesias Garcia
* Authors: Pan Deng, Fernando Iglesias
*/

#include <gtest/gtest.h>
Expand Down
9 changes: 3 additions & 6 deletions tests/unit/distance/EuclideanDistance_unittest.cc
@@ -1,11 +1,8 @@
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* This software is distributed under BSD 3-clause license (see LICENSE file).
*
* Written (W) 2013 Fernando J. Iglesias Garcia
* Written (W) 2016 Soumyajit De
* Authors: Saurabh Mahindre, Soeren Sonnenburg, Fernando Iglesias,
* Soumyajit De, Björn Esser
*/

#include <shogun/distance/EuclideanDistance.h>
Expand Down
8 changes: 2 additions & 6 deletions tests/unit/evaluation/ROCEvaluation_unittest.cc
@@ -1,11 +1,7 @@
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* This software is distributed under BSD 3-clause license (see LICENSE file).
*
* Written (W) 2013 Viktor Gal
* Written (W) 2013 Heiko Strathmann
* Authors: Thoralf Klein, Heiko Strathmann, Viktor Gal
*/

#include <shogun/labels/BinaryLabels.h>
Expand Down
8 changes: 3 additions & 5 deletions tests/unit/evaluation/SplittingStrategy_unittest.cc
@@ -1,10 +1,8 @@
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* This software is distributed under BSD 3-clause license (see LICENSE file).
*
* Written (W) 2013 Saurabh Mahindre
* Authors: Saurabh Mahindre, Thoralf Klein, Sahil Chaddha, Soeren Sonnenburg,
* Björn Esser
*/

#include <gtest/gtest.h>
Expand Down
7 changes: 2 additions & 5 deletions tests/unit/features/Alphabet_unittest.cc
@@ -1,10 +1,7 @@
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* This software is distributed under BSD 3-clause license (see LICENSE file).
*
* Written (W) 2017 Leon Kuchenbecker
* Authors: Leon Kuchenbecker
*/

#include <shogun/features/Alphabet.h>
Expand Down
8 changes: 3 additions & 5 deletions tests/unit/features/CombinedDotFeatures_unittest.cc
@@ -1,10 +1,8 @@
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* This software is distributed under BSD 3-clause license (see LICENSE file).
*
* Written (W) 2012-2013 Evangelos Anagnostopoulos
* Authors: Evangelos Anagnostopoulos, Thoralf Klein, Soeren Sonnenburg,
* Björn Esser, Viktor Gal
*/

#include <shogun/features/DenseFeatures.h>
Expand Down
8 changes: 3 additions & 5 deletions tests/unit/features/CombinedFeatures_unittest.cc
@@ -1,10 +1,8 @@
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* This software is distributed under BSD 3-clause license (see LICENSE file).
*
* Written (W) 2012-2013 Heiko Strathmann
* Authors: Thoralf Klein, Heiko Strathmann, Björn Esser,
* Evangelos Anagnostopoulos
*/

#include <shogun/features/DenseFeatures.h>
Expand Down
7 changes: 2 additions & 5 deletions tests/unit/features/DataGenerators_unittest.cc
@@ -1,10 +1,7 @@
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* This software is distributed under BSD 3-clause license (see LICENSE file).
*
* Written (W) 2012-2013 Heiko Strathmann
* Authors: Heiko Strathmann, Thoralf Klein, Björn Esser
*/

#include <shogun/mathematics/Statistics.h>
Expand Down
8 changes: 3 additions & 5 deletions tests/unit/features/DenseFeatures_unittest.cc
@@ -1,10 +1,8 @@
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* This software is distributed under BSD 3-clause license (see LICENSE file).
*
* Written (W) 2012-2013 Heiko Strathmann
* Authors: Saurabh Mahindre, Soumyajit De, Thoralf Klein, Heiko Strathmann,
* Viktor Gal
*/

#include <numeric>
Expand Down
6 changes: 2 additions & 4 deletions tests/unit/features/DotFeatures_unittest.cc
@@ -1,9 +1,7 @@
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* This software is distributed under BSD 3-clause license (see LICENSE file).
*
* Authors: Michele Mazzoni
*/

#include <gtest/gtest.h>
Expand Down
7 changes: 2 additions & 5 deletions tests/unit/features/HashedDenseFeatures_unittest.cc
@@ -1,10 +1,7 @@
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* This software is distributed under BSD 3-clause license (see LICENSE file).
*
* Written (W) 2012-2013 Heiko Strathmann
* Authors: Evangelos Anagnostopoulos, Thoralf Klein, Sergey Lisitsyn
*/

#include <shogun/lib/Hash.h>
Expand Down
8 changes: 3 additions & 5 deletions tests/unit/features/HashedDocDotFeatures_unittest.cc
@@ -1,10 +1,8 @@
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* This software is distributed under BSD 3-clause license (see LICENSE file).
*
* Written (W) 2013 Evangelos Anagnostopoulos
* Authors: Evangelos Anagnostopoulos, Thoralf Klein, Sergey Lisitsyn,
* Björn Esser
*/

#include <shogun/features/hashed/HashedDocDotFeatures.h>
Expand Down
9 changes: 3 additions & 6 deletions tests/unit/features/HashedSparseFeatures_unittest.cc
@@ -1,11 +1,8 @@
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* This software is distributed under BSD 3-clause license (see LICENSE file).
*
* Written (W) 2013 Evangelos Anagnostopoulos
* Copyright (C) 2013 Evangelos Anagnostopoulos
* Authors: Evangelos Anagnostopoulos, Thoralf Klein, Sergey Lisitsyn,
* Björn Esser
*/

#include <shogun/lib/Hash.h>
Expand Down
7 changes: 2 additions & 5 deletions tests/unit/features/LBPPyrDotFeatures_unittest.cc
@@ -1,10 +1,7 @@
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* This software is distributed under BSD 3-clause license (see LICENSE file).
*
* Written (W) 2013 Evangelos Anagnostopoulos
* Authors: Thoralf Klein, Björn Esser, Evangelos Anagnostopoulos
*/

#include <shogun/features/LBPPyrDotFeatures.h>
Expand Down
8 changes: 3 additions & 5 deletions tests/unit/features/StreamingDenseFeatures_unittest.cc
@@ -1,10 +1,8 @@
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* This software is distributed under BSD 3-clause license (see LICENSE file).
*
* Written (W) 2013 Viktor Gal
* Authors: Viktor Gal, Thoralf Klein, Giovanni De Toni, Soumyajit De,
* Björn Esser
*/

#ifndef _WIN32
Expand Down
7 changes: 2 additions & 5 deletions tests/unit/features/StreamingHashedDenseFeatures_unittest.cc
@@ -1,10 +1,7 @@
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* This software is distributed under BSD 3-clause license (see LICENSE file).
*
* Written (W) 2013 Evangelos Anagnostopoulos
* Authors: Evangelos Anagnostopoulos, Thoralf Klein, Björn Esser
*/

#include <shogun/lib/Hash.h>
Expand Down
7 changes: 2 additions & 5 deletions tests/unit/features/StreamingHashedDocDotFeatures_unittest.cc
@@ -1,10 +1,7 @@
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* This software is distributed under BSD 3-clause license (see LICENSE file).
*
* Written (W) 2013 Evangelos Anagnostopoulos
* Authors: Evangelos Anagnostopoulos, Soeren Sonnenburg, Björn Esser
*/

#include <shogun/features/streaming/StreamingHashedDocDotFeatures.h>
Expand Down
7 changes: 2 additions & 5 deletions tests/unit/features/StreamingHashedSparseFeatures_unittest.cc
@@ -1,10 +1,7 @@
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* This software is distributed under BSD 3-clause license (see LICENSE file).
*
* Written (W) 2013 Evangelos Anagnostopoulos
* Authors: Evangelos Anagnostopoulos, Thoralf Klein, Björn Esser
*/

#include <shogun/lib/Hash.h>
Expand Down
7 changes: 2 additions & 5 deletions tests/unit/features/StreamingSparseFeatures_unittest.cc
@@ -1,10 +1,7 @@
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* This software is distributed under BSD 3-clause license (see LICENSE file).
*
* Written (W) 2013 Thoralf Klein <thoralf.klein@zib.de>
* Authors: Viktor Gal, Thoralf Klein, Giovanni De Toni, Björn Esser
*/

#ifndef _WIN32
Expand Down
8 changes: 3 additions & 5 deletions tests/unit/features/StringFeatures_unittest.cc
@@ -1,10 +1,8 @@
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* This software is distributed under BSD 3-clause license (see LICENSE file).
*
* Written (W) 2011-2013 Heiko Strathmann
* Authors: Thoralf Klein, Heiko Strathmann, Soeren Sonnenburg,
* Leon Kuchenbecker
*/

#include <shogun/lib/memory.h>
Expand Down
7 changes: 2 additions & 5 deletions tests/unit/integration/CV2SGFactory_unittest.cc
@@ -1,10 +1,7 @@
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* This software is distributed under BSD 3-clause license (see LICENSE file).
*
* Written (W) 2014 Abhijeet Kislay
* Authors: Abhijeet Kislay, Björn Esser
*/
#include <shogun/lib/config.h>
#ifdef HAVE_OPENCV
Expand Down
7 changes: 2 additions & 5 deletions tests/unit/integration/OpenCV_unittest.cc
@@ -1,10 +1,7 @@
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* This software is distributed under BSD 3-clause license (see LICENSE file).
*
* Written (W) 2014 Abhijeet Kislay
* Authors: Abhijeet Kislay, Björn Esser
*/

#include <shogun/lib/config.h>
Expand Down
7 changes: 2 additions & 5 deletions tests/unit/integration/SG2CVFactory_unittest.cc
@@ -1,10 +1,7 @@
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* This software is distributed under BSD 3-clause license (see LICENSE file).
*
* Written (W) 2014 Abhijeet Kislay
* Authors: Abhijeet Kislay, Björn Esser
*/
#include <shogun/lib/config.h>
#ifdef HAVE_OPENCV
Expand Down

0 comments on commit 5600272

Please sign in to comment.