<commit_before>;; emacs org-mode batch configuration
(require 'cask "~/.cask/cask.el")
(cask-initialize "./")
(setq working-dir (f-dirname (f-this-file)))
(add-to-list 'load-path working-dir)
(setq make-backup-files nil)

;;; ORG mode
(require 's)
(require 'f)
(require 'org)
(require 'ox-reveal)
(require 'ox-bibtex)
(require 'dash)
(require 'dash-functional)
(add-to-list 'load-path (f-join working-dir "elisp"))
(require 'lean-export-util)
(setq org-reveal-root "//leanprover.github.io/presentations/reveal.js-3.0.0/")
;; (setq org-reveal-root "./reveal.js-3.0.0/")

(setq org-reveal-title-slide-template
"<h1 id='title-name'>%t</h1>
<h2 id='author-list'>%a</h2>
<h2 id='date'>%d</h2>")

(setq org-reveal-head-preamble "
<script type=\"text/javascript\" src=\"///cdnjs.cloudflare.com/ajax/libs/snap.svg/0.3.0/snap.svg-min.js\"></script>
<script type=\"text/javascript\">MathJax.Hub.Config({\"HTML-CSS\": {scale: 80 }})</script>
</script><script src=\"///cdn.jsdelivr.net/polymer.platform/0.4.2/platform.js\"></script>
<link rel=\"import\" href=\"./juicy-ace-editor.html\">
<link rel=\"stylesheet\" href=\"./css/code.css\">
")
<commit_msg>20141024_MSR: add google analytics info to org-reveal-export.el<commit_after>;; emacs org-mode batch configuration
(require 'cask "~/.cask/cask.el")
(cask-initialize "./")
(setq working-dir (f-dirname (f-this-file)))
(add-to-list 'load-path working-dir)
(setq make-backup-files nil)

;;; ORG mode
(require 's)
(require 'f)
(require 'org)
(require 'ox-reveal)
(require 'ox-bibtex)
(require 'dash)
(require 'dash-functional)
(add-to-list 'load-path (f-join working-dir "elisp"))
(require 'lean-export-util)
(setq org-reveal-root "//leanprover.github.io/presentations/reveal.js-3.0.0/")
;; (setq org-reveal-root "./reveal.js-3.0.0/")
(setq org-reveal-title-slide-template
"<h1 id='title-name'>%t</h1>
<h2 id='author-list'>%a</h2>
<h2 id='date'>%d</h2>")
(setq org-reveal-head-preamble "
<script type=\"text/javascript\" src=\"///cdnjs.cloudflare.com/ajax/libs/snap.svg/0.3.0/snap.svg-min.js\"></script>
<script type=\"text/javascript\">MathJax.Hub.Config({\"HTML-CSS\": {scale: 80 }})</script>
</script><script src=\"///cdn.jsdelivr.net/polymer.platform/0.4.2/platform.js\"></script>
<link rel=\"import\" href=\"./juicy-ace-editor.html\">
<link rel=\"stylesheet\" href=\"./css/code.css\">
")
(setq org-reveal-postamble
"<script>(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','//www.google-analytics.com/analytics.js','ga');ga('create', 'UA-59814431-1', 'auto');ga('send', 'pageview');</script>")

{'fraction_non_alphanumeric': 0.2521834061135371, 'fraction_numerical': 0.021834061135371178, 'mean_word_length': 5.068432671081678, 'pattern_counts': {'":': 2, '<': 35, '<?xml version=': 0, '>': 35, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5511553', 'n_tokens_mistral': 1165, 'n_tokens_neox': 1129, 'n_words': 161}