Merge branch 'master' of auder.net:valse
authoremilie <emilie@devijver.org>
Thu, 16 Mar 2017 15:58:45 +0000 (16:58 +0100)
committeremilie <emilie@devijver.org>
Thu, 16 Mar 2017 15:58:45 +0000 (16:58 +0100)
59 files changed:
.git-fat [new submodule]
.gitattributes [new file with mode: 0644]
.gitfat [new file with mode: 0644]
.gitmodules [new file with mode: 0644]
.nbstripout [new submodule]
biblio/Sparse_Variable_Model_Selection-Devijver2014.pdf [new file with mode: 0644]
biblio/These_Emilie.pdf [new file with mode: 0644]
clean.sh [deleted file]
initialize.sh [new file with mode: 0755]
pkg/DESCRIPTION [moved from DESCRIPTION with 100% similarity]
pkg/LICENSE [moved from LICENSE with 100% similarity]
pkg/NAMESPACE [moved from NAMESPACE with 100% similarity]
pkg/R/EMGLLF.R [moved from R/EMGLLF.R with 100% similarity]
pkg/R/EMGrank.R [moved from R/EMGrank.R with 100% similarity]
pkg/R/constructionModelesLassoMLE.R [moved from R/constructionModelesLassoMLE.R with 100% similarity]
pkg/R/constructionModelesLassoRank.R [moved from R/constructionModelesLassoRank.R with 100% similarity]
pkg/R/discardSimilarModels.R [moved from R/discardSimilarModels.R with 100% similarity]
pkg/R/generateSampleInputs.R [moved from R/generateSampleInputs.R with 100% similarity]
pkg/R/gridLambda.R [moved from R/gridLambda.R with 100% similarity]
pkg/R/initSmallEM.R [moved from R/initSmallEM.R with 100% similarity]
pkg/R/main.R [moved from R/main.R with 100% similarity]
pkg/R/modelSelection.R [moved from R/modelSelection.R with 100% similarity]
pkg/R/selectVariables.R [moved from R/selectVariables.R with 100% similarity]
pkg/R/selectiontotale.R [moved from R/selectiontotale.R with 100% similarity]
pkg/R/valse.R [moved from R/valse.R with 100% similarity]
pkg/data/TODO [moved from data/TODO with 100% similarity]
pkg/data/data.RData [moved from data/data.RData with 100% similarity]
pkg/man/basicInitParameters.Rd [moved from man/basicInitParameters.Rd with 100% similarity]
pkg/man/discardSimilarModels_EMGLLF.Rd [moved from man/discardSimilarModels_EMGLLF.Rd with 100% similarity]
pkg/man/discardSimilarModels_EMGrank.Rd [moved from man/discardSimilarModels_EMGrank.Rd with 100% similarity]
pkg/man/generateXY.Rd [moved from man/generateXY.Rd with 100% similarity]
pkg/man/generateXYdefault.Rd [moved from man/generateXYdefault.Rd with 100% similarity]
pkg/man/gridLambda.Rd [moved from man/gridLambda.Rd with 100% similarity]
pkg/man/initSmallEM.Rd [moved from man/initSmallEM.Rd with 100% similarity]
pkg/man/modelSelection.Rd [moved from man/modelSelection.Rd with 100% similarity]
pkg/man/selectVariables.Rd [moved from man/selectVariables.Rd with 100% similarity]
pkg/man/valse-package.Rd [moved from man/valse-package.Rd with 100% similarity]
pkg/src/.gitignore [moved from src/.gitignore with 100% similarity]
pkg/src/Makevars [moved from src/Makevars with 100% similarity]
pkg/src/adapters/a.EMGLLF.c [moved from src/adapters/a.EMGLLF.c with 100% similarity]
pkg/src/adapters/a.EMGrank.c [moved from src/adapters/a.EMGrank.c with 100% similarity]
pkg/src/sources/EMGLLF.c [moved from src/sources/EMGLLF.c with 100% similarity]
pkg/src/sources/EMGLLF.h [moved from src/sources/EMGLLF.h with 100% similarity]
pkg/src/sources/EMGrank.c [moved from src/sources/EMGrank.c with 100% similarity]
pkg/src/sources/EMGrank.h [moved from src/sources/EMGrank.h with 100% similarity]
pkg/src/sources/utils.h [moved from src/sources/utils.h with 100% similarity]
reports/essai16mars.R [moved from R/essai16mars.R with 100% similarity]
test/.gitignore [moved from src/test/.gitignore with 100% similarity]
test/Makefile [moved from src/test/Makefile with 100% similarity]
test/clean.sh [new file with mode: 0755]
test/generate_test_data/EMGLLF.R [moved from src/test/generate_test_data/EMGLLF.R with 100% similarity]
test/generate_test_data/EMGrank.R [moved from src/test/generate_test_data/EMGrank.R with 100% similarity]
test/generate_test_data/generateRunSaveTest_EMGLLF.R [moved from src/test/generate_test_data/generateRunSaveTest_EMGLLF.R with 100% similarity]
test/generate_test_data/generateRunSaveTest_EMGrank.R [moved from src/test/generate_test_data/generateRunSaveTest_EMGrank.R with 100% similarity]
test/sourceAll.R [moved from src/test/sourceAll.R with 100% similarity]
test/test.EMGLLF.c [moved from src/test/test.EMGLLF.c with 100% similarity]
test/test.EMGrank.c [moved from src/test/test.EMGrank.c with 100% similarity]
test/test_utils.c [moved from src/test/test_utils.c with 100% similarity]
test/test_utils.h [moved from src/test/test_utils.h with 100% similarity]

diff --git a/.git-fat b/.git-fat
new file mode 160000 (submodule)
index 0000000..286bcd3
--- /dev/null
+++ b/.git-fat
@@ -0,0 +1 @@
+Subproject commit 286bcd30cea5f86363a04a9313afaf9e2e7a7b81
diff --git a/.gitattributes b/.gitattributes
new file mode 100644 (file)
index 0000000..209bdb1
--- /dev/null
@@ -0,0 +1,6 @@
+*.ipynb filter=nbstripout
+*.pdf filter=fat
+*.tar.xz filter=fat
+*.png filter=fat
+*.jpg filter=fat
+*.ps filter=fat
diff --git a/.gitfat b/.gitfat
new file mode 100644 (file)
index 0000000..fc5cc54
--- /dev/null
+++ b/.gitfat
@@ -0,0 +1,2 @@
+[rsync]
+remote = gitfat@auder.net:~/files/valse
diff --git a/.gitmodules b/.gitmodules
new file mode 100644 (file)
index 0000000..16826ed
--- /dev/null
@@ -0,0 +1,6 @@
+[submodule ".git-fat"]
+       path = .git-fat
+       url = https://github.com/yagu0/git-fat.git
+[submodule ".nbstripout"]
+       path = .nbstripout
+       url = https://github.com/kynan/nbstripout.git
diff --git a/.nbstripout b/.nbstripout
new file mode 160000 (submodule)
index 0000000..10c80cb
--- /dev/null
@@ -0,0 +1 @@
+Subproject commit 10c80cbd5b6356fa38179ca526ee2894d9b3bd20
diff --git a/biblio/Sparse_Variable_Model_Selection-Devijver2014.pdf b/biblio/Sparse_Variable_Model_Selection-Devijver2014.pdf
new file mode 100644 (file)
index 0000000..aa2cd4d
--- /dev/null
@@ -0,0 +1 @@
+#$# git-fat cfe2746476d82691a70ac9243b737e0dd6816e4b               284568
diff --git a/biblio/These_Emilie.pdf b/biblio/These_Emilie.pdf
new file mode 100644 (file)
index 0000000..47bd562
--- /dev/null
@@ -0,0 +1 @@
+#$# git-fat 7f07727d66d742a124d6529eef942c2382d44673              3764608
diff --git a/clean.sh b/clean.sh
deleted file mode 100755 (executable)
index abf77b8..0000000
--- a/clean.sh
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/bin/sh
-
-rm -f src/*.so
-rm -f src/adapters/*.o
-rm -f src/sources/*.o
-cd src/test && make cclean && cd ../..
diff --git a/initialize.sh b/initialize.sh
new file mode 100755 (executable)
index 0000000..30426f3
--- /dev/null
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+#initialize submodules, set-up .git/config and .gitattributes, and pre-push hook
+git submodule init && git submodule update --merge
+#filter for Jupyter
+python .nbstripout/nbstripout.py --install --attributes .gitattributes
+#filter for git-fat [TODO: idempotent...]
+printf '*.pdf filter=fat\n*.tar.xz filter=fat\n*.png filter=fat\n*.jpg filter=fat\n*.ps filter=fat\n'  >> .gitattributes
+#pre-push hook: git fat push, submodules update
+printf '#!/bin/sh\n./.git-fat/git-fat pull\n./.git-fat/git-fat push\ngit submodule update --merge\n' > .git/hooks/pre-push
+chmod 755 .git/hooks/pre-push
+#.gitfat file with remote on gitfat@auder.net
+printf '[rsync]\nremote = gitfat@auder.net:~/files/valse\n' > .gitfat
+#manual git-fat init: with relative path to binary
+#1] remove filter if exists http://stackoverflow.com/questions/12179437/replace-3-lines-with-another-line-sed-syntax
+sed -i '1N;$!N;s/\[filter "fat"\]\n.*\n.*//;P;D' .git/config
+#2] place new filter
+printf '[filter "fat"]\n\tclean = ./.git-fat/git-fat filter-clean\n\tsmudge = ./.git-fat/git-fat filter-smudge\n' >> .git/config
similarity index 100%
rename from DESCRIPTION
rename to pkg/DESCRIPTION
similarity index 100%
rename from LICENSE
rename to pkg/LICENSE
similarity index 100%
rename from NAMESPACE
rename to pkg/NAMESPACE
similarity index 100%
rename from R/EMGLLF.R
rename to pkg/R/EMGLLF.R
similarity index 100%
rename from R/EMGrank.R
rename to pkg/R/EMGrank.R
similarity index 100%
rename from R/gridLambda.R
rename to pkg/R/gridLambda.R
similarity index 100%
rename from R/initSmallEM.R
rename to pkg/R/initSmallEM.R
similarity index 100%
rename from R/main.R
rename to pkg/R/main.R
similarity index 100%
rename from R/modelSelection.R
rename to pkg/R/modelSelection.R
similarity index 100%
rename from R/selectVariables.R
rename to pkg/R/selectVariables.R
similarity index 100%
rename from R/selectiontotale.R
rename to pkg/R/selectiontotale.R
similarity index 100%
rename from R/valse.R
rename to pkg/R/valse.R
similarity index 100%
rename from data/TODO
rename to pkg/data/TODO
similarity index 100%
rename from data/data.RData
rename to pkg/data/data.RData
similarity index 100%
rename from man/generateXY.Rd
rename to pkg/man/generateXY.Rd
similarity index 100%
rename from man/gridLambda.Rd
rename to pkg/man/gridLambda.Rd
similarity index 100%
rename from man/initSmallEM.Rd
rename to pkg/man/initSmallEM.Rd
similarity index 100%
rename from src/.gitignore
rename to pkg/src/.gitignore
similarity index 100%
rename from src/Makevars
rename to pkg/src/Makevars
similarity index 100%
rename from src/sources/utils.h
rename to pkg/src/sources/utils.h
similarity index 100%
rename from R/essai16mars.R
rename to reports/essai16mars.R
similarity index 100%
rename from src/test/.gitignore
rename to test/.gitignore
similarity index 100%
rename from src/test/Makefile
rename to test/Makefile
diff --git a/test/clean.sh b/test/clean.sh
new file mode 100755 (executable)
index 0000000..ad12cce
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+rm -f ../pkg/src/*.so
+rm -f ../pkg/src/adapters/*.o
+rm -f ../pkg/src/sources/*.o
+make cclean
similarity index 100%
rename from src/test/sourceAll.R
rename to test/sourceAll.R
similarity index 100%
rename from src/test/test.EMGLLF.c
rename to test/test.EMGLLF.c
similarity index 100%
rename from src/test/test.EMGrank.c
rename to test/test.EMGrank.c
similarity index 100%
rename from src/test/test_utils.c
rename to test/test_utils.c
similarity index 100%
rename from src/test/test_utils.h
rename to test/test_utils.h