<commit_before>* HISTORY

** angular or not
Originally I thought it would be easiest to just create a REST api
using liberator and use angular on the client. This can be achieved
dead-easy by just using the [[https://github.com/ShaneKilkelly/lein-angular-template][lein angular template]]. This introduces a
whole slew of new dependencies such as grunt for building,
coffescript, etc. However at the moment it doesn't seem clear to me
that the current requirements warrant this complexity. I think we
should go with the mantra that /simplicity always trumps complexity/
and just go with a dead-simple web app for now. We can always
introduce more advanced technologies later. That's the nice thing
about this approach. Nothing is fixed, all the technologies can be
used at your own convenience.

Here's a few pertinent links:
- http://sritchie.github.io/2014/01/17/api-authentication-with-liberator-and-friend/
- https://docs.angularjs.org/tutorial/step_11
- https://github.com/ShaneKilkelly/lein-angular-template


<commit_msg>Add a snippet about with-tempdir<commit_after>* HISTORY

** angular or not
Originally I thought it would be easiest to just create a REST api
using liberator and use angular on the client. This can be achieved
dead-easy by just using the [[https://github.com/ShaneKilkelly/lein-angular-template][lein angular template]]. This introduces a
whole slew of new dependencies such as grunt for building,
coffescript, etc. However at the moment it doesn't seem clear to me
that the current requirements warrant this complexity. I think we
should go with the mantra that /simplicity always trumps complexity/
and just go with a dead-simple web app for now. We can always
introduce more advanced technologies later. That's the nice thing
about this approach. Nothing is fixed, all the technologies can be
used at your own convenience.

Here's a few pertinent links:
- http://sritchie.github.io/2014/01/17/api-authentication-with-liberator-and-friend/
- https://docs.angularjs.org/tutorial/step_11
- https://github.com/ShaneKilkelly/lein-angular-template


** File system utils
- [[https://github.com/Raynes/fs][fs]] seems quite complete and is on clojars. However ~with-tempdir~ is
  not in there. Maybe it can be used as follows:

#+BEGIN_SRC clojure
  (with-open [tmpdir (java.nio.file.Files/createTempDirectory "/path" "prefix")]
    (println tmpdir))
#+END_SRC

{'fraction_non_alphanumeric': 0.07885906040268456, 'fraction_numerical': 0.008389261744966443, 'mean_word_length': 4.445205479452055, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 7, 'lorem ipsum': 0, 'www.': 0, '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': '5576703', 'n_tokens_mistral': 707, 'n_tokens_neox': 661, 'n_words': 296}