diff --git a/helpers/parameter_generator.py b/helpers/parameter_generator.py index 426461aa4e4..b98830e6935 100644 --- a/helpers/parameter_generator.py +++ b/helpers/parameter_generator.py @@ -260,7 +260,14 @@ def gen_parameter_code(config_hpp, config_out_cpp): keys, infos = get_parameter_infos(config_hpp) names = get_names(infos) alias = get_alias(infos) - str_to_write = "/// This file is auto generated by LightGBM\\helpers\\parameter_generator.py from LightGBM\\include\\LightGBM\\config.h file.\n" + str_to_write = r"""/*! + * Copyright (c) 2018 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + * + * \note + * This file is auto generated by LightGBM\helpers\parameter_generator.py from LightGBM\include\LightGBM\config.h file. + */ +""" str_to_write += "#include\nnamespace LightGBM {\n" # alias table str_to_write += "std::unordered_map Config::alias_table({\n" diff --git a/include/LightGBM/R_object_helper.h b/include/LightGBM/R_object_helper.h index 579d9befdaf..04a412813e4 100644 --- a/include/LightGBM/R_object_helper.h +++ b/include/LightGBM/R_object_helper.h @@ -1,8 +1,13 @@ -/* -* A simple wrapper for accessing data in R object. -* Due to license issue, we cannot include R's header file, so use this simple wrapper instead. -* However, if R changes the way it defines objects, this file will need to be updated as well. -*/ +/*! + * Copyright (c) 2017 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + * + * \brief A simple wrapper for accessing data in R object. + * + * \note + * Due to license issue, we cannot include R's header file, so use this simple wrapper instead. + * However, if R changes the way it defines objects, this file will need to be updated as well. + */ #ifndef R_OBJECT_HELPER_H_ #define R_OBJECT_HELPER_H_ diff --git a/include/LightGBM/application.h b/include/LightGBM/application.h index 0abb546302f..5f3a8738bd1 100644 --- a/include/LightGBM/application.h +++ b/include/LightGBM/application.h @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2016 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #ifndef LIGHTGBM_APPLICATION_H_ #define LIGHTGBM_APPLICATION_H_ diff --git a/include/LightGBM/bin.h b/include/LightGBM/bin.h index b863d383181..46baee58fc4 100644 --- a/include/LightGBM/bin.h +++ b/include/LightGBM/bin.h @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2016 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #ifndef LIGHTGBM_BIN_H_ #define LIGHTGBM_BIN_H_ diff --git a/include/LightGBM/boosting.h b/include/LightGBM/boosting.h index f9dcbfec980..4dbab44391b 100644 --- a/include/LightGBM/boosting.h +++ b/include/LightGBM/boosting.h @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2016 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #ifndef LIGHTGBM_BOOSTING_H_ #define LIGHTGBM_BOOSTING_H_ diff --git a/include/LightGBM/c_api.h b/include/LightGBM/c_api.h index c1bb191a99e..0228f377cd5 100644 --- a/include/LightGBM/c_api.h +++ b/include/LightGBM/c_api.h @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2016 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #ifndef LIGHTGBM_C_API_H_ #define LIGHTGBM_C_API_H_ diff --git a/include/LightGBM/config.h b/include/LightGBM/config.h index d837f389454..631328e309e 100644 --- a/include/LightGBM/config.h +++ b/include/LightGBM/config.h @@ -1,4 +1,10 @@ -/// desc and descl2 fields must be written in reStructuredText format +/*! + * Copyright (c) 2016 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + * + * \note + * desc and descl2 fields must be written in reStructuredText format + */ #ifndef LIGHTGBM_CONFIG_H_ #define LIGHTGBM_CONFIG_H_ diff --git a/include/LightGBM/dataset.h b/include/LightGBM/dataset.h index 6154bce840d..12dbe6c98ce 100644 --- a/include/LightGBM/dataset.h +++ b/include/LightGBM/dataset.h @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2016 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #ifndef LIGHTGBM_DATASET_H_ #define LIGHTGBM_DATASET_H_ diff --git a/include/LightGBM/dataset_loader.h b/include/LightGBM/dataset_loader.h index 1deb18c47a4..94116165cf7 100644 --- a/include/LightGBM/dataset_loader.h +++ b/include/LightGBM/dataset_loader.h @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2016 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #ifndef LIGHTGBM_DATASET_LOADER_H_ #define LIGHTGBM_DATASET_LOADER_H_ diff --git a/include/LightGBM/export.h b/include/LightGBM/export.h index 9a967895cec..11e8b14d553 100644 --- a/include/LightGBM/export.h +++ b/include/LightGBM/export.h @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2017 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #ifndef LIGHTGBM_EXPORT_H_ #define LIGHTGBM_EXPORT_H_ diff --git a/include/LightGBM/feature_group.h b/include/LightGBM/feature_group.h index cade7103422..b76da982a1a 100644 --- a/include/LightGBM/feature_group.h +++ b/include/LightGBM/feature_group.h @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2017 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #ifndef LIGHTGBM_FEATURE_GROUP_H_ #define LIGHTGBM_FEATURE_GROUP_H_ diff --git a/include/LightGBM/json11.hpp b/include/LightGBM/json11.hpp index a271b19af08..80ccea453fa 100644 --- a/include/LightGBM/json11.hpp +++ b/include/LightGBM/json11.hpp @@ -1,3 +1,24 @@ +/* Copyright (c) 2013 Dropbox, Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ + /* json11 * * json11 is a tiny JSON library for C++11, providing JSON parsing and serialization. @@ -26,28 +47,6 @@ * or long long to avoid the Y2038K problem; a double storing microseconds since some epoch * will be exact for +/- 275 years.) */ - -/* Copyright (c) 2013 Dropbox, Inc. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. - */ - #pragma once #include diff --git a/include/LightGBM/lightgbm_R.h b/include/LightGBM/lightgbm_R.h index 9a2c1e029b3..b60f9da08a4 100644 --- a/include/LightGBM/lightgbm_R.h +++ b/include/LightGBM/lightgbm_R.h @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2017 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #ifndef LIGHTGBM_R_H_ #define LIGHTGBM_R_H_ diff --git a/include/LightGBM/meta.h b/include/LightGBM/meta.h index d578a6e9477..4a27b567861 100644 --- a/include/LightGBM/meta.h +++ b/include/LightGBM/meta.h @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2016 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #ifndef LIGHTGBM_META_H_ #define LIGHTGBM_META_H_ diff --git a/include/LightGBM/metric.h b/include/LightGBM/metric.h index 5947f6e413f..7163be92ea1 100644 --- a/include/LightGBM/metric.h +++ b/include/LightGBM/metric.h @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2016 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #ifndef LIGHTGBM_METRIC_H_ #define LIGHTGBM_METRIC_H_ diff --git a/include/LightGBM/network.h b/include/LightGBM/network.h index ee5732fd293..6f7f2d4d84b 100644 --- a/include/LightGBM/network.h +++ b/include/LightGBM/network.h @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2016 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #ifndef LIGHTGBM_NETWORK_H_ #define LIGHTGBM_NETWORK_H_ diff --git a/include/LightGBM/objective_function.h b/include/LightGBM/objective_function.h index b5858f772b0..ef2871358aa 100644 --- a/include/LightGBM/objective_function.h +++ b/include/LightGBM/objective_function.h @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2016 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #ifndef LIGHTGBM_OBJECTIVE_FUNCTION_H_ #define LIGHTGBM_OBJECTIVE_FUNCTION_H_ diff --git a/include/LightGBM/prediction_early_stop.h b/include/LightGBM/prediction_early_stop.h index 59248e063d2..1d3e510981f 100644 --- a/include/LightGBM/prediction_early_stop.h +++ b/include/LightGBM/prediction_early_stop.h @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2017 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #ifndef LIGHTGBM_PREDICTION_EARLY_STOP_H_ #define LIGHTGBM_PREDICTION_EARLY_STOP_H_ diff --git a/include/LightGBM/tree.h b/include/LightGBM/tree.h index 7407dbe1cb3..a0e08cc9254 100644 --- a/include/LightGBM/tree.h +++ b/include/LightGBM/tree.h @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2016 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #ifndef LIGHTGBM_TREE_H_ #define LIGHTGBM_TREE_H_ diff --git a/include/LightGBM/tree_learner.h b/include/LightGBM/tree_learner.h index 1419d05f97a..e7a9a593b3e 100644 --- a/include/LightGBM/tree_learner.h +++ b/include/LightGBM/tree_learner.h @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2016 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #ifndef LIGHTGBM_TREE_LEARNER_H_ #define LIGHTGBM_TREE_LEARNER_H_ diff --git a/include/LightGBM/utils/array_args.h b/include/LightGBM/utils/array_args.h index 31215e085d1..9c02424eb28 100644 --- a/include/LightGBM/utils/array_args.h +++ b/include/LightGBM/utils/array_args.h @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2016 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #ifndef LIGHTGBM_UTILS_ARRAY_AGRS_H_ #define LIGHTGBM_UTILS_ARRAY_AGRS_H_ diff --git a/include/LightGBM/utils/common.h b/include/LightGBM/utils/common.h index e6f98eafa11..be7a8e5d513 100644 --- a/include/LightGBM/utils/common.h +++ b/include/LightGBM/utils/common.h @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2016 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #ifndef LIGHTGBM_UTILS_COMMON_FUN_H_ #define LIGHTGBM_UTILS_COMMON_FUN_H_ diff --git a/include/LightGBM/utils/file_io.h b/include/LightGBM/utils/file_io.h index 854f8cd5e4c..64d7487a3d3 100644 --- a/include/LightGBM/utils/file_io.h +++ b/include/LightGBM/utils/file_io.h @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2018 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #ifndef LIGHTGBM_UTILS_FILE_IO_H_ #define LIGHTGBM_UTILS_FILE_IO_H_ diff --git a/include/LightGBM/utils/log.h b/include/LightGBM/utils/log.h index 42f46a9ce43..1b6ada49812 100644 --- a/include/LightGBM/utils/log.h +++ b/include/LightGBM/utils/log.h @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2016 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #ifndef LIGHTGBM_UTILS_LOG_H_ #define LIGHTGBM_UTILS_LOG_H_ diff --git a/include/LightGBM/utils/openmp_wrapper.h b/include/LightGBM/utils/openmp_wrapper.h index c4bb6bf289a..c30798da08c 100644 --- a/include/LightGBM/utils/openmp_wrapper.h +++ b/include/LightGBM/utils/openmp_wrapper.h @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2017 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #ifndef LIGHTGBM_OPENMP_WRAPPER_H_ #define LIGHTGBM_OPENMP_WRAPPER_H_ #ifdef _OPENMP diff --git a/include/LightGBM/utils/pipeline_reader.h b/include/LightGBM/utils/pipeline_reader.h index 7b254cf84a6..1a25f2b55c0 100644 --- a/include/LightGBM/utils/pipeline_reader.h +++ b/include/LightGBM/utils/pipeline_reader.h @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2016 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #ifndef LIGHTGBM_UTILS_PIPELINE_READER_H_ #define LIGHTGBM_UTILS_PIPELINE_READER_H_ diff --git a/include/LightGBM/utils/random.h b/include/LightGBM/utils/random.h index 16e94c8ca11..c73ee058242 100644 --- a/include/LightGBM/utils/random.h +++ b/include/LightGBM/utils/random.h @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2016 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #ifndef LIGHTGBM_UTILS_RANDOM_H_ #define LIGHTGBM_UTILS_RANDOM_H_ diff --git a/include/LightGBM/utils/text_reader.h b/include/LightGBM/utils/text_reader.h index 3bcc37ba862..851e053c75e 100644 --- a/include/LightGBM/utils/text_reader.h +++ b/include/LightGBM/utils/text_reader.h @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2016 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #ifndef LIGHTGBM_UTILS_TEXT_READER_H_ #define LIGHTGBM_UTILS_TEXT_READER_H_ diff --git a/include/LightGBM/utils/threading.h b/include/LightGBM/utils/threading.h index 3dd765488b2..b17b53f0fe4 100644 --- a/include/LightGBM/utils/threading.h +++ b/include/LightGBM/utils/threading.h @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2016 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #ifndef LIGHTGBM_UTILS_THREADING_H_ #define LIGHTGBM_UTILS_THREADING_H_ diff --git a/src/application/application.cpp b/src/application/application.cpp index 5b33d773ba6..0e1c62dfd17 100644 --- a/src/application/application.cpp +++ b/src/application/application.cpp @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2016 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #include #include diff --git a/src/application/predictor.hpp b/src/application/predictor.hpp index 92dd6def563..9d9acdadee0 100644 --- a/src/application/predictor.hpp +++ b/src/application/predictor.hpp @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2016 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #ifndef LIGHTGBM_PREDICTOR_HPP_ #define LIGHTGBM_PREDICTOR_HPP_ diff --git a/src/boosting/boosting.cpp b/src/boosting/boosting.cpp index 5ce5d388d92..91fa318a0f1 100644 --- a/src/boosting/boosting.cpp +++ b/src/boosting/boosting.cpp @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2016 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #include #include "dart.hpp" diff --git a/src/boosting/dart.hpp b/src/boosting/dart.hpp index 0d6015a02fb..dd566b290b9 100644 --- a/src/boosting/dart.hpp +++ b/src/boosting/dart.hpp @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2016 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #ifndef LIGHTGBM_BOOSTING_DART_H_ #define LIGHTGBM_BOOSTING_DART_H_ diff --git a/src/boosting/gbdt.cpp b/src/boosting/gbdt.cpp index ac25fc8b23b..59ca5f10ec8 100644 --- a/src/boosting/gbdt.cpp +++ b/src/boosting/gbdt.cpp @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2016 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #include "gbdt.h" #include diff --git a/src/boosting/gbdt.h b/src/boosting/gbdt.h index eed73ae5025..78784488362 100644 --- a/src/boosting/gbdt.h +++ b/src/boosting/gbdt.h @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2016 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #ifndef LIGHTGBM_BOOSTING_GBDT_H_ #define LIGHTGBM_BOOSTING_GBDT_H_ diff --git a/src/boosting/gbdt_model_text.cpp b/src/boosting/gbdt_model_text.cpp index 6c118c61f82..507618f2db7 100644 --- a/src/boosting/gbdt_model_text.cpp +++ b/src/boosting/gbdt_model_text.cpp @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2017 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #include #include #include diff --git a/src/boosting/gbdt_prediction.cpp b/src/boosting/gbdt_prediction.cpp index 7a34d5b028e..b4711f7c01a 100644 --- a/src/boosting/gbdt_prediction.cpp +++ b/src/boosting/gbdt_prediction.cpp @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2017 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #include #include #include diff --git a/src/boosting/goss.hpp b/src/boosting/goss.hpp index 2fa66630622..a1fe2cd2cf4 100644 --- a/src/boosting/goss.hpp +++ b/src/boosting/goss.hpp @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2017 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #ifndef LIGHTGBM_BOOSTING_GOSS_H_ #define LIGHTGBM_BOOSTING_GOSS_H_ diff --git a/src/boosting/prediction_early_stop.cpp b/src/boosting/prediction_early_stop.cpp index fb86ec44f8b..002dc8d729f 100644 --- a/src/boosting/prediction_early_stop.cpp +++ b/src/boosting/prediction_early_stop.cpp @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2017 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #include #include diff --git a/src/boosting/rf.hpp b/src/boosting/rf.hpp index 335cffc6b75..778882a1095 100644 --- a/src/boosting/rf.hpp +++ b/src/boosting/rf.hpp @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2017 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #ifndef LIGHTGBM_BOOSTING_RF_H_ #define LIGHTGBM_BOOSTING_RF_H_ diff --git a/src/boosting/score_updater.hpp b/src/boosting/score_updater.hpp index fc7c8023ee6..0b2e208f3af 100644 --- a/src/boosting/score_updater.hpp +++ b/src/boosting/score_updater.hpp @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2016 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #ifndef LIGHTGBM_BOOSTING_SCORE_UPDATER_HPP_ #define LIGHTGBM_BOOSTING_SCORE_UPDATER_HPP_ diff --git a/src/c_api.cpp b/src/c_api.cpp index d9fc2a92ccd..2c3d7338127 100644 --- a/src/c_api.cpp +++ b/src/c_api.cpp @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2016 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #include #include diff --git a/src/io/bin.cpp b/src/io/bin.cpp index e599db2e678..7a65e276f28 100644 --- a/src/io/bin.cpp +++ b/src/io/bin.cpp @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2016 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #include #include diff --git a/src/io/config.cpp b/src/io/config.cpp index 36891e28430..ca4a67f74e0 100644 --- a/src/io/config.cpp +++ b/src/io/config.cpp @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2016 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #include #include diff --git a/src/io/config_auto.cpp b/src/io/config_auto.cpp index b75b3f5ad73..ca033ab6f1c 100644 --- a/src/io/config_auto.cpp +++ b/src/io/config_auto.cpp @@ -1,4 +1,10 @@ -/// This file is auto generated by LightGBM\helpers\parameter_generator.py from LightGBM\include\LightGBM\config.h file. +/*! + * Copyright (c) 2018 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + * + * \note + * This file is auto generated by LightGBM\helpers\parameter_generator.py from LightGBM\include\LightGBM\config.h file. + */ #include namespace LightGBM { std::unordered_map Config::alias_table({ diff --git a/src/io/dataset.cpp b/src/io/dataset.cpp index e705f02652c..ccb72b9ccc7 100644 --- a/src/io/dataset.cpp +++ b/src/io/dataset.cpp @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2016 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #include #include diff --git a/src/io/dataset_loader.cpp b/src/io/dataset_loader.cpp index 2c908d1da80..2344bb98c7f 100644 --- a/src/io/dataset_loader.cpp +++ b/src/io/dataset_loader.cpp @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2016 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #include #include diff --git a/src/io/dense_bin.hpp b/src/io/dense_bin.hpp index ec522e07f6f..79ae41e56ef 100644 --- a/src/io/dense_bin.hpp +++ b/src/io/dense_bin.hpp @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2016 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #ifndef LIGHTGBM_IO_DENSE_BIN_HPP_ #define LIGHTGBM_IO_DENSE_BIN_HPP_ diff --git a/src/io/dense_nbits_bin.hpp b/src/io/dense_nbits_bin.hpp index b035989cfaa..c48f9422b90 100644 --- a/src/io/dense_nbits_bin.hpp +++ b/src/io/dense_nbits_bin.hpp @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2017 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #ifndef LIGHTGBM_IO_DENSE_NBITS_BIN_HPP_ #define LIGHTGBM_IO_DENSE_NBITS_BIN_HPP_ diff --git a/src/io/file_io.cpp b/src/io/file_io.cpp index caab343b194..8dc243f541e 100644 --- a/src/io/file_io.cpp +++ b/src/io/file_io.cpp @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2018 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #include #include diff --git a/src/io/json11.cpp b/src/io/json11.cpp index 7ed07947b30..46cca34e0b8 100644 --- a/src/io/json11.cpp +++ b/src/io/json11.cpp @@ -18,7 +18,6 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ - #include #include diff --git a/src/io/metadata.cpp b/src/io/metadata.cpp index 0fc7d238769..a73ec45195b 100644 --- a/src/io/metadata.cpp +++ b/src/io/metadata.cpp @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2016 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #include #include diff --git a/src/io/ordered_sparse_bin.hpp b/src/io/ordered_sparse_bin.hpp index c95319cb5b3..1fd28e590f4 100644 --- a/src/io/ordered_sparse_bin.hpp +++ b/src/io/ordered_sparse_bin.hpp @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2016 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #ifndef LIGHTGBM_IO_ORDERED_SPARSE_BIN_HPP_ #define LIGHTGBM_IO_ORDERED_SPARSE_BIN_HPP_ diff --git a/src/io/parser.cpp b/src/io/parser.cpp index 645968567a5..cd4ba8ac6b9 100644 --- a/src/io/parser.cpp +++ b/src/io/parser.cpp @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2016 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #include "parser.hpp" #include diff --git a/src/io/parser.hpp b/src/io/parser.hpp index 433c13968ac..46698172f12 100644 --- a/src/io/parser.hpp +++ b/src/io/parser.hpp @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2016 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #ifndef LIGHTGBM_IO_PARSER_HPP_ #define LIGHTGBM_IO_PARSER_HPP_ diff --git a/src/io/sparse_bin.hpp b/src/io/sparse_bin.hpp index 75cacc5d845..23dfbc43596 100644 --- a/src/io/sparse_bin.hpp +++ b/src/io/sparse_bin.hpp @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2016 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #ifndef LIGHTGBM_IO_SPARSE_BIN_HPP_ #define LIGHTGBM_IO_SPARSE_BIN_HPP_ diff --git a/src/io/tree.cpp b/src/io/tree.cpp index 85fd1a4d82d..0761441c728 100644 --- a/src/io/tree.cpp +++ b/src/io/tree.cpp @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2016 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #include #include diff --git a/src/lightgbm_R.cpp b/src/lightgbm_R.cpp index a9f7e8cf9c5..d0b6496e519 100644 --- a/src/lightgbm_R.cpp +++ b/src/lightgbm_R.cpp @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2017 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #include #include diff --git a/src/main.cpp b/src/main.cpp index aa37cf57b07..3c5f7274ba8 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2016 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #include #include diff --git a/src/metric/binary_metric.hpp b/src/metric/binary_metric.hpp index c985f1f0378..00a51d6cd24 100644 --- a/src/metric/binary_metric.hpp +++ b/src/metric/binary_metric.hpp @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2016 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #ifndef LIGHTGBM_METRIC_BINARY_METRIC_HPP_ #define LIGHTGBM_METRIC_BINARY_METRIC_HPP_ diff --git a/src/metric/dcg_calculator.cpp b/src/metric/dcg_calculator.cpp index a940391b142..04e16978385 100644 --- a/src/metric/dcg_calculator.cpp +++ b/src/metric/dcg_calculator.cpp @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2016 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #include #include diff --git a/src/metric/map_metric.hpp b/src/metric/map_metric.hpp index ab5119cd01f..f6f79e1a467 100644 --- a/src/metric/map_metric.hpp +++ b/src/metric/map_metric.hpp @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2017 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #ifndef LIGHTGBM_METRIC_MAP_METRIC_HPP_ #define LIGHTGBM_METRIC_MAP_METRIC_HPP_ diff --git a/src/metric/metric.cpp b/src/metric/metric.cpp index 36cd6129a51..0cfd7ab995e 100644 --- a/src/metric/metric.cpp +++ b/src/metric/metric.cpp @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2016 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #include #include "binary_metric.hpp" diff --git a/src/metric/multiclass_metric.hpp b/src/metric/multiclass_metric.hpp index bccc0a5c829..c94660ac236 100644 --- a/src/metric/multiclass_metric.hpp +++ b/src/metric/multiclass_metric.hpp @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2016 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #ifndef LIGHTGBM_METRIC_MULTICLASS_METRIC_HPP_ #define LIGHTGBM_METRIC_MULTICLASS_METRIC_HPP_ diff --git a/src/metric/rank_metric.hpp b/src/metric/rank_metric.hpp index 75273d04774..9c258dde620 100644 --- a/src/metric/rank_metric.hpp +++ b/src/metric/rank_metric.hpp @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2016 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #ifndef LIGHTGBM_METRIC_RANK_METRIC_HPP_ #define LIGHTGBM_METRIC_RANK_METRIC_HPP_ diff --git a/src/metric/regression_metric.hpp b/src/metric/regression_metric.hpp index 935e5ba9809..2cd84f6cf5e 100644 --- a/src/metric/regression_metric.hpp +++ b/src/metric/regression_metric.hpp @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2016 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #ifndef LIGHTGBM_METRIC_REGRESSION_METRIC_HPP_ #define LIGHTGBM_METRIC_REGRESSION_METRIC_HPP_ diff --git a/src/metric/xentropy_metric.hpp b/src/metric/xentropy_metric.hpp index 617008d0d51..14c6ce15eed 100644 --- a/src/metric/xentropy_metric.hpp +++ b/src/metric/xentropy_metric.hpp @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2017 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #ifndef LIGHTGBM_METRIC_XENTROPY_METRIC_HPP_ #define LIGHTGBM_METRIC_XENTROPY_METRIC_HPP_ diff --git a/src/network/linker_topo.cpp b/src/network/linker_topo.cpp index d7eeb375f7e..1d7b2990f0e 100644 --- a/src/network/linker_topo.cpp +++ b/src/network/linker_topo.cpp @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2016 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #include #include #include diff --git a/src/network/linkers.h b/src/network/linkers.h index c4f6fa7cec5..366bd16cd72 100644 --- a/src/network/linkers.h +++ b/src/network/linkers.h @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2016 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #ifndef LIGHTGBM_NETWORK_LINKERS_H_ #define LIGHTGBM_NETWORK_LINKERS_H_ diff --git a/src/network/linkers_mpi.cpp b/src/network/linkers_mpi.cpp index fbd50ad3744..45307b34b28 100644 --- a/src/network/linkers_mpi.cpp +++ b/src/network/linkers_mpi.cpp @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2016 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #ifdef USE_MPI #include "linkers.h" diff --git a/src/network/linkers_socket.cpp b/src/network/linkers_socket.cpp index 448a53b0541..758589991d2 100644 --- a/src/network/linkers_socket.cpp +++ b/src/network/linkers_socket.cpp @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2016 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #ifdef USE_SOCKET #include diff --git a/src/network/network.cpp b/src/network/network.cpp index 6c9a9bd43ad..3976d72a692 100644 --- a/src/network/network.cpp +++ b/src/network/network.cpp @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2016 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #include #include diff --git a/src/network/socket_wrapper.hpp b/src/network/socket_wrapper.hpp index a9824c3f5e1..a7ad58cde9c 100644 --- a/src/network/socket_wrapper.hpp +++ b/src/network/socket_wrapper.hpp @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2016 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #ifndef LIGHTGBM_NETWORK_SOCKET_WRAPPER_HPP_ #define LIGHTGBM_NETWORK_SOCKET_WRAPPER_HPP_ #ifdef USE_SOCKET diff --git a/src/objective/binary_objective.hpp b/src/objective/binary_objective.hpp index 0521ed919a8..2af2babc2d8 100644 --- a/src/objective/binary_objective.hpp +++ b/src/objective/binary_objective.hpp @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2016 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #ifndef LIGHTGBM_OBJECTIVE_BINARY_OBJECTIVE_HPP_ #define LIGHTGBM_OBJECTIVE_BINARY_OBJECTIVE_HPP_ diff --git a/src/objective/multiclass_objective.hpp b/src/objective/multiclass_objective.hpp index 13f68a7a02a..6ff94e4812d 100644 --- a/src/objective/multiclass_objective.hpp +++ b/src/objective/multiclass_objective.hpp @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2016 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #ifndef LIGHTGBM_OBJECTIVE_MULTICLASS_OBJECTIVE_HPP_ #define LIGHTGBM_OBJECTIVE_MULTICLASS_OBJECTIVE_HPP_ diff --git a/src/objective/objective_function.cpp b/src/objective/objective_function.cpp index a5486fb7350..9cf030a8f55 100644 --- a/src/objective/objective_function.cpp +++ b/src/objective/objective_function.cpp @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2016 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #include #include "binary_objective.hpp" diff --git a/src/objective/rank_objective.hpp b/src/objective/rank_objective.hpp index 49968e5cbf8..785ac89cc1b 100644 --- a/src/objective/rank_objective.hpp +++ b/src/objective/rank_objective.hpp @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2016 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #ifndef LIGHTGBM_OBJECTIVE_RANK_OBJECTIVE_HPP_ #define LIGHTGBM_OBJECTIVE_RANK_OBJECTIVE_HPP_ diff --git a/src/objective/regression_objective.hpp b/src/objective/regression_objective.hpp index 982a24b0e0c..214a13f58a0 100644 --- a/src/objective/regression_objective.hpp +++ b/src/objective/regression_objective.hpp @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2016 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #ifndef LIGHTGBM_OBJECTIVE_REGRESSION_OBJECTIVE_HPP_ #define LIGHTGBM_OBJECTIVE_REGRESSION_OBJECTIVE_HPP_ diff --git a/src/objective/xentropy_objective.hpp b/src/objective/xentropy_objective.hpp index 9a21a56bf78..f4e83f226ea 100644 --- a/src/objective/xentropy_objective.hpp +++ b/src/objective/xentropy_objective.hpp @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2017 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #ifndef LIGHTGBM_OBJECTIVE_XENTROPY_OBJECTIVE_HPP_ #define LIGHTGBM_OBJECTIVE_XENTROPY_OBJECTIVE_HPP_ diff --git a/src/treelearner/data_parallel_tree_learner.cpp b/src/treelearner/data_parallel_tree_learner.cpp index 5b6ba5f54d7..a1fa299bded 100644 --- a/src/treelearner/data_parallel_tree_learner.cpp +++ b/src/treelearner/data_parallel_tree_learner.cpp @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2016 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #include #include #include diff --git a/src/treelearner/data_partition.hpp b/src/treelearner/data_partition.hpp index 16931a0509c..4cf9b5b2275 100644 --- a/src/treelearner/data_partition.hpp +++ b/src/treelearner/data_partition.hpp @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2016 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #ifndef LIGHTGBM_TREELEARNER_DATA_PARTITION_HPP_ #define LIGHTGBM_TREELEARNER_DATA_PARTITION_HPP_ diff --git a/src/treelearner/feature_histogram.hpp b/src/treelearner/feature_histogram.hpp index 767291783b6..09cde7026a3 100644 --- a/src/treelearner/feature_histogram.hpp +++ b/src/treelearner/feature_histogram.hpp @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2016 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #ifndef LIGHTGBM_TREELEARNER_FEATURE_HISTOGRAM_HPP_ #define LIGHTGBM_TREELEARNER_FEATURE_HISTOGRAM_HPP_ diff --git a/src/treelearner/feature_parallel_tree_learner.cpp b/src/treelearner/feature_parallel_tree_learner.cpp index eb29d0d4926..745ca44be68 100644 --- a/src/treelearner/feature_parallel_tree_learner.cpp +++ b/src/treelearner/feature_parallel_tree_learner.cpp @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2016 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #include #include diff --git a/src/treelearner/gpu_tree_learner.cpp b/src/treelearner/gpu_tree_learner.cpp index 9bb7dd94218..1b9cf0ac047 100644 --- a/src/treelearner/gpu_tree_learner.cpp +++ b/src/treelearner/gpu_tree_learner.cpp @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2017 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #ifdef USE_GPU #include "gpu_tree_learner.h" diff --git a/src/treelearner/gpu_tree_learner.h b/src/treelearner/gpu_tree_learner.h index 0ced99db4ab..7842d242980 100644 --- a/src/treelearner/gpu_tree_learner.h +++ b/src/treelearner/gpu_tree_learner.h @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2017 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #ifndef LIGHTGBM_TREELEARNER_GPU_TREE_LEARNER_H_ #define LIGHTGBM_TREELEARNER_GPU_TREE_LEARNER_H_ diff --git a/src/treelearner/leaf_splits.hpp b/src/treelearner/leaf_splits.hpp index f919a46490c..73162675e7f 100644 --- a/src/treelearner/leaf_splits.hpp +++ b/src/treelearner/leaf_splits.hpp @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2016 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #ifndef LIGHTGBM_TREELEARNER_LEAF_SPLITS_HPP_ #define LIGHTGBM_TREELEARNER_LEAF_SPLITS_HPP_ diff --git a/src/treelearner/ocl/histogram16.cl b/src/treelearner/ocl/histogram16.cl index b98f45366ee..efe0d8462cb 100644 --- a/src/treelearner/ocl/histogram16.cl +++ b/src/treelearner/ocl/histogram16.cl @@ -1,5 +1,10 @@ -// this file can either be read and passed to an OpenCL compiler directly, -// or included in a C++11 source file as a string literal +/*! + * Copyright (c) 2017 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + * + * \brief This file can either be read and passed to an OpenCL compiler directly, + * or included in a C++11 source file as a string literal. + */ #ifndef __OPENCL_VERSION__ // If we are including this file in C++, // the entire source file following (except the last #endif) will become diff --git a/src/treelearner/ocl/histogram256.cl b/src/treelearner/ocl/histogram256.cl index 8d750aea556..0fa4bed8841 100644 --- a/src/treelearner/ocl/histogram256.cl +++ b/src/treelearner/ocl/histogram256.cl @@ -1,5 +1,10 @@ -// this file can either be read and passed to an OpenCL compiler directly, -// or included in a C++11 source file as a string literal +/*! + * Copyright (c) 2017 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + * + * \brief This file can either be read and passed to an OpenCL compiler directly, + * or included in a C++11 source file as a string literal. + */ #ifndef __OPENCL_VERSION__ // If we are including this file in C++, // the entire source file following (except the last #endif) will become diff --git a/src/treelearner/ocl/histogram64.cl b/src/treelearner/ocl/histogram64.cl index 2e8d03b7be9..5b265abda70 100644 --- a/src/treelearner/ocl/histogram64.cl +++ b/src/treelearner/ocl/histogram64.cl @@ -1,5 +1,10 @@ -// this file can either be read and passed to an OpenCL compiler directly, -// or included in a C++11 source file as a string literal +/*! + * Copyright (c) 2017 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + * + * \brief This file can either be read and passed to an OpenCL compiler directly, + * or included in a C++11 source file as a string literal. + */ #ifndef __OPENCL_VERSION__ // If we are including this file in C++, // the entire source file following (except the last #endif) will become diff --git a/src/treelearner/parallel_tree_learner.h b/src/treelearner/parallel_tree_learner.h index a232c0a14e0..c6754b51739 100644 --- a/src/treelearner/parallel_tree_learner.h +++ b/src/treelearner/parallel_tree_learner.h @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2016 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #ifndef LIGHTGBM_TREELEARNER_PARALLEL_TREE_LEARNER_H_ #define LIGHTGBM_TREELEARNER_PARALLEL_TREE_LEARNER_H_ diff --git a/src/treelearner/serial_tree_learner.cpp b/src/treelearner/serial_tree_learner.cpp index c6def8beeb2..140c14173e6 100644 --- a/src/treelearner/serial_tree_learner.cpp +++ b/src/treelearner/serial_tree_learner.cpp @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2016 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #include "serial_tree_learner.h" #include diff --git a/src/treelearner/serial_tree_learner.h b/src/treelearner/serial_tree_learner.h index f8c277b4d63..22e8f90254d 100644 --- a/src/treelearner/serial_tree_learner.h +++ b/src/treelearner/serial_tree_learner.h @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2016 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #ifndef LIGHTGBM_TREELEARNER_SERIAL_TREE_LEARNER_H_ #define LIGHTGBM_TREELEARNER_SERIAL_TREE_LEARNER_H_ diff --git a/src/treelearner/split_info.hpp b/src/treelearner/split_info.hpp index 9557275d0d8..3afa72a0f4a 100644 --- a/src/treelearner/split_info.hpp +++ b/src/treelearner/split_info.hpp @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2016 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #ifndef LIGHTGBM_TREELEARNER_SPLIT_INFO_HPP_ #define LIGHTGBM_TREELEARNER_SPLIT_INFO_HPP_ diff --git a/src/treelearner/tree_learner.cpp b/src/treelearner/tree_learner.cpp index 472fdb6200a..7172f6b655c 100644 --- a/src/treelearner/tree_learner.cpp +++ b/src/treelearner/tree_learner.cpp @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2016 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #include #include "gpu_tree_learner.h" diff --git a/src/treelearner/voting_parallel_tree_learner.cpp b/src/treelearner/voting_parallel_tree_learner.cpp index b46c793eb55..6c10181aa59 100644 --- a/src/treelearner/voting_parallel_tree_learner.cpp +++ b/src/treelearner/voting_parallel_tree_learner.cpp @@ -1,3 +1,7 @@ +/*! + * Copyright (c) 2016 Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See LICENSE file in the project root for license information. + */ #include #include