Skip to content

Commit ccea5a2

Browse files
committed
Merge branch 'release/6.1.0'
2 parents e6f965d + ee7d071 commit ccea5a2

File tree

1,010 files changed

+24385
-52713
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,010 files changed

+24385
-52713
lines changed

.clang-format

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
#
2+
# Shogun clang-format configuration file
3+
#
4+
Language: Cpp
5+
AccessModifierOffset: -4
6+
AlignAfterOpenBracket: AlwaysBreak
7+
AllowAllParametersOfDeclarationOnNextLine: true
8+
AllowShortBlocksOnASingleLine: false
9+
AllowShortCaseLabelsOnASingleLine: false
10+
AllowShortFunctionsOnASingleLine: None
11+
AllowShortIfStatementsOnASingleLine: false
12+
AllowShortLoopsOnASingleLine: false
13+
AlwaysBreakTemplateDeclarations: true
14+
BinPackArguments: true
15+
BinPackParameters: true
16+
BreakBeforeBraces: Custom
17+
BraceWrapping:
18+
AfterClass: true
19+
AfterControlStatement: true
20+
AfterEnum: true
21+
AfterFunction: true
22+
AfterNamespace: true
23+
AfterObjCDeclaration: false
24+
AfterStruct: true
25+
AfterUnion: true
26+
BeforeCatch: true
27+
BeforeElse: true
28+
IndentBraces: false
29+
ColumnLimit: 80
30+
ContinuationIndentWidth: 4
31+
IndentWidth: 4
32+
NamespaceIndentation: All
33+
PenaltyBreakComment: 10000
34+
PenaltyBreakBeforeFirstCallParameter: 19
35+
PenaltyBreakFirstLessLess: 120
36+
PenaltyBreakString: 1000
37+
PenaltyExcessCharacter: 10000000
38+
PenaltyReturnTypeOnItsOwnLine: 60
39+
PointerAlignment: Left
40+
ReflowComments: true
41+
SortIncludes: true
42+
Standard: Cpp11
43+
TabWidth: 4
44+
UseTab: ForIndentation

.gitignore

Lines changed: 6 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -52,53 +52,6 @@ cpplint.py
5252
/src/configure-*-*.c*
5353
/src/build-local
5454

55-
# modular interfaces
56-
/src/interfaces/*_modular/*.doxy
57-
/src/interfaces/*_modular/Evaluation.i
58-
/src/interfaces/*_modular/Regression.i
59-
/src/interfaces/*_modular/Library.i
60-
/src/interfaces/*_modular/Distribution.i
61-
/src/interfaces/*_modular/Structure.i
62-
/src/interfaces/*_modular/Classifier.i
63-
/src/interfaces/*_modular/Features.i
64-
/src/interfaces/*_modular/Kernel.i
65-
/src/interfaces/*_modular/Preprocessor.i
66-
/src/interfaces/*_modular/Distance.i
67-
/src/interfaces/*_modular/Clustering.i
68-
/src/interfaces/*_modular/SGBase.i
69-
/src/interfaces/*_modular/IO.i
70-
/src/interfaces/*_modular/Mathematics.i
71-
/src/interfaces/*_modular/ModelSelection.i
72-
/src/interfaces/*_modular/modshogun.i
73-
/src/interfaces/*_modular/modshogun_ignores.i
74-
/src/interfaces/*_modular/*_includes.i
75-
/src/interfaces/*_modular/Makefile
76-
/src/interfaces/*_modular/Converter.i
77-
/src/interfaces/*_modular/Multiclass.i
78-
/src/interfaces/*_modular/Machine.i
79-
/src/interfaces/*_modular/Transfer.i
80-
/src/interfaces/*_modular/Loss.i
81-
/src/interfaces/*_modular/Statistics.i
82-
/src/interfaces/*_modular/Latent.i
83-
/src/interfaces/*_modular/GaussianProcess.i
84-
85-
# particular modular ones
86-
/src/interfaces/csharp_modular/*.cs
87-
/src/interfaces/csharp_modular/abstract_types_extension.i
88-
/src/interfaces/csharp_modular/modshogun.dll
89-
/src/interfaces/java_modular/*.java
90-
/src/interfaces/java_modular/*.jar
91-
/src/interfaces/java_modular/*.class
92-
/src/interfaces/java_modular/org/*
93-
/src/interfaces/java_modular/shogun/*
94-
/src/interfaces/python_modular/*.py
95-
/src/interfaces/python_modular/abstract_types_extension.i
96-
/src/interfaces/r_modular/*.R
97-
/src/interfaces/r_modular/*.RData
98-
/src/interfaces/perl_modular/*.pm
99-
/src/interfaces/octave_modular/abstract_types_extension.i
100-
/.duped_py_pl.pb
101-
10255
# /examples/
10356
*.log
10457
*.exe
@@ -108,9 +61,9 @@ cpplint.py
10861
!/examples/undocumented/libshogun/*.cpp
10962
!/examples/undocumented/libshogun/CMakeLists.txt
11063
!/examples/undocumented/libshogun/tools/
111-
!examples/undocumented/python_modular/graphical/
112-
!examples/undocumented/python_modular/*.py
113-
!examples/undocumented/python_modular/CMakeLists.txt
64+
!examples/undocumented/python/graphical/
65+
!examples/undocumented/python/*.py
66+
!examples/undocumented/python/CMakeLists.txt
11467

11568
# /tests
11669
/tests/unit/shogun-unit-test
@@ -120,12 +73,8 @@ cpplint.py
12073
/tests/unit/*.json
12174
/tests/unit/combined_kernel.weights
12275
Testing/
123-
examples/undocumented/python_modular/serialized_svm.bz2
124-
examples/undocumented/python_modular/tmp/blaah.asc
125-
examples/undocumented/python_modular/tmp/blaah.h5
126-
examples/undocumented/python_modular/tmp/blaah.json
127-
examples/undocumented/python_modular/tmp/blaah.xml
128-
examples/undocumented/python_modular/vw_cache.dat.cache
76+
examples/undocumented/python/serialized_svm.bz2
77+
examples/undocumented/python/vw_cache.dat.cache
12978

13079
# cmake
13180
/CMakeFiles/
@@ -262,6 +211,7 @@ local.properties
262211

263212
# CDT-specific (C/C++ Development Tooling)
264213
.cproject
214+
.idea
265215

266216
# JDT-specific (Eclipse Java Development Tools)
267217
.classpath

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,6 @@
55
[submodule "debian"]
66
path = debian
77
url = git://github.com/shogun-toolbox/shogun-debian.git
8+
[submodule "gpl"]
9+
path = src/gpl
10+
url = git://github.com/shogun-toolbox/shogun-gpl.git

.travis.yml

Lines changed: 31 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
sudo: required
22
language: cpp
3+
cache: ccache
34
notifications:
45
email: false
56
irc:
@@ -16,63 +17,74 @@ matrix:
1617
services: docker
1718
- compiler: clang
1819
services: docker
20+
- compiler: gcc
21+
services: docker
22+
env:
23+
- CMAKE_OPTIONS="-DCMAKE_BUILD_TYPE=Debug -DENABLE_COVERAGE=ON -DENABLE_CCACHE=OFF"
24+
- CODE_COVERAGE=1
1925
- compiler: clang
2026
services: docker
21-
python: "2.7_with_system_site_packages"
22-
language: python
2327
env:
24-
- CMAKE_OPTIONS="-DPythonModular=ON -DTRAVIS_DISABLE_UNIT_TESTS=ON -DTRAVIS_DISABLE_LIBSHOGUN_TESTS=ON"
28+
- CMAKE_OPTIONS="-DINTERFACE_PYTHON=ON -DTRAVIS_DISABLE_UNIT_TESTS=ON -DTRAVIS_DISABLE_LIBSHOGUN_TESTS=ON"
2529
- CC=clang
2630
- CXX=clang++
2731
- compiler: clang
2832
services: docker
29-
language: ruby
3033
env:
31-
- CMAKE_OPTIONS="-DRubyModular=ON -DTRAVIS_DISABLE_UNIT_TESTS=ON -DTRAVIS_DISABLE_LIBSHOGUN_TESTS=ON"
34+
- CMAKE_OPTIONS="-DINTERFACE_RUBY=ON -DTRAVIS_DISABLE_UNIT_TESTS=ON -DTRAVIS_DISABLE_LIBSHOGUN_TESTS=ON"
3235
- CC=clang
3336
- CXX=clang++
3437
- compiler: clang
3538
services: docker
36-
language: java
3739
env:
38-
- CMAKE_OPTIONS="-DJavaModular=ON -DTRAVIS_DISABLE_UNIT_TESTS=ON -DTRAVIS_DISABLE_LIBSHOGUN_TESTS=ON"
40+
- CMAKE_OPTIONS="-DINTERFACE_JAVA=ON -DTRAVIS_DISABLE_UNIT_TESTS=ON -DTRAVIS_DISABLE_LIBSHOGUN_TESTS=ON"
3941
- CC=clang
4042
- CXX=clang++
4143
- compiler: clang
4244
services: docker
4345
env:
44-
- CMAKE_OPTIONS="-DCSharpModular=ON -DTRAVIS_DISABLE_UNIT_TESTS=ON -DTRAVIS_DISABLE_LIBSHOGUN_TESTS=ON"
46+
- CMAKE_OPTIONS="-DINTERFACE_CSHARP=ON -DTRAVIS_DISABLE_UNIT_TESTS=ON -DTRAVIS_DISABLE_LIBSHOGUN_TESTS=ON"
4547
- CC=clang
4648
- CXX=clang++
4749
- compiler: clang
4850
services: docker
4951
env:
50-
- CMAKE_OPTIONS="-DLuaModular=ON -DTRAVIS_DISABLE_UNIT_TESTS=ON -DTRAVIS_DISABLE_LIBSHOGUN_TESTS=ON"
52+
- CMAKE_OPTIONS="-DINTERFACE_LUA=ON -DTRAVIS_DISABLE_UNIT_TESTS=ON -DTRAVIS_DISABLE_LIBSHOGUN_TESTS=ON"
5153
- CC=clang
5254
- CXX=clang++
5355
- compiler: gcc
5456
services: docker
5557
env:
56-
- CMAKE_OPTIONS="-DOctaveModular=ON -DTRAVIS_DISABLE_UNIT_TESTS=ON -DTRAVIS_DISABLE_LIBSHOGUN_TESTS=ON"
57-
- compiler: clang
58-
services: docker
59-
env:
60-
- CMAKE_OPTIONS="-DRModular=ON -DTRAVIS_DISABLE_UNIT_TESTS=ON -DTRAVIS_DISABLE_LIBSHOGUN_TESTS=ON"
61-
- CC=clang
62-
- CXX=clang++
58+
- CMAKE_OPTIONS="-DINTERFACE_OCTAVE=ON -DTRAVIS_DISABLE_UNIT_TESTS=ON -DTRAVIS_DISABLE_LIBSHOGUN_TESTS=ON"
59+
- INTERFACE_OCTAVE=true
6360
- compiler: clang
6461
services: docker
6562
env:
66-
- CMAKE_OPTIONS="-DScalaModular=ON -DTRAVIS_DISABLE_UNIT_TESTS=ON -DTRAVIS_DISABLE_LIBSHOGUN_TESTS=ON"
63+
- CMAKE_OPTIONS="-DINTERFACE_R=ON -DTRAVIS_DISABLE_UNIT_TESTS=ON -DTRAVIS_DISABLE_LIBSHOGUN_TESTS=ON"
6764
- CC=clang
6865
- CXX=clang++
66+
# - compiler: clang
67+
# services: docker
68+
# env:
69+
# - CMAKE_OPTIONS="-DScala=ON -DTRAVIS_DISABLE_UNIT_TESTS=ON -DTRAVIS_DISABLE_LIBSHOGUN_TESTS=ON"
70+
# - CC=clang
71+
# - CXX=clang++
6972
before_install:
7073
- docker pull shogun/shogun-dev
71-
- echo $CC; echo $CXX
72-
- docker run -t -d -P -e "JAVA_HOME=/usr/lib/jvm/java-8-oracle" -e "CC=$CC" -e "CXX=$CXX" --name devenv -v $PWD:/opt/shogun shogun/shogun-dev /bin/sh -c "mkdir /opt/shogun/build;bash"
74+
- perl -pe 's/\$(\w+)/$ENV{$1}/g' configs/shogun-sdk/travis.env.in > travis.env
75+
- docker run -t -d -P --env-file travis.env --name devenv -v $HOME/.ccache:/root/.ccache -v $PWD:/opt/shogun shogun/shogun-dev /bin/sh -c "mkdir /opt/shogun/build;bash"
7376
before_script:
7477
- docker exec -t devenv /bin/sh -c "cd /opt/shogun/build; cmake -DCMAKE_INSTALL_PREFIX=$HOME/shogun-build -DENABLE_TESTING=ON $CMAKE_OPTIONS .."
7578
script:
79+
- |
80+
if [ $CC == "gcc" ] && [ -z ${INTERFACE_OCTAVE} ]; then
81+
docker exec -t devenv /bin/sh -c "cd /opt/shogun/; if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then ./scripts/check_format.sh "$TRAVIS_PULL_REQUEST_BRANCH" "$TRAVIS_BRANCH"; fi"
82+
fi
7683
- docker exec -t devenv /bin/sh -c "cd /opt/shogun/build; make -j2"
7784
- docker exec -t devenv /bin/sh -c "cd /opt/shogun/build; make install"
7885
- docker exec -t devenv /bin/sh -c "cd /opt/shogun/build; ctest --output-on-failure -j 2"
86+
after_success:
87+
- |
88+
if [ $CODE_COVERAGE ] ; then
89+
docker exec -t devenv /bin/sh -c "cd /opt/shogun/build; lcov --directory src/shogun/ --capture --output-file all_coverage.info; lcov --remove all_coverage.info '/usr/*' > coverage.info; rm all_coverage.info; codecov -X gcov"
90+
fi

0 commit comments

Comments
 (0)