<commit_before># Handle naming differences for current production boxes, future boxes,
# Travis CI.

{% if grains['os'] == 'Ubuntu' %}
  {% if grains['osrelease'] in ['12.10', '13.04', '13.10'] %}
    {% set libmemcached = "libmemcached10" %}
  {% else %} # grains['osrelease'] == '12.04' %}
    {% set libmemcached = "libmemcached6" %}
  {% endif %}
{% else %}
    # Default to libmemcached6 otherwise
    {% set libmemcached = "libmemcached6" %}
{% endif %}

# nbviewer binary dependencies
packages:
  pkg:
    - installed
    - names:
      - git
      - libzmq3-dev
      - pandoc
      - libevent-dev
      - libcurl4-gnutls-dev
      - libmemcached-dev
      - {{ libmemcached }}
      - supervisor

# Pull down the current codebase of nbviewer from github, unless pillar has something else for us
nbviewer-git:
  git.latest:
    - name: {{ salt['pillar.get']('nbviewer:location', 'https://github.com/ipython/nbviewer.git') }}
    - rev: {{ salt['pillar.get']('nbviewer:rev', 'master') }}
    - target: /usr/share/nbviewer
    - force: true
    - force_checkout: true
    - require:<commit_msg>Replace the development library.<commit_after># Handle naming differences for current production boxes, future boxes,
# Travis CI.

{% if grains['os'] == 'Ubuntu' %}
  {% if grains['osrelease'] in ['12.10', '13.04', '13.10'] %}
    {% set libmemcached = "libmemcached10" %}
  {% else %} # grains['osrelease'] == '12.04' %}
    {% set libmemcached = "libmemcached6" %}
  {% endif %}
{% else %}
    # Default to libmemcached6 otherwise
    {% set libmemcached = "libmemcached6" %}
{% endif %}

# nbviewer binary dependencies
packages:
  pkg:
    - installed
    - names:
      - git
      - libzmq3-dev
      - pandoc
      - libevent-dev
      - libcurl4-openssl-dev
      - libmemcached-dev
      - {{ libmemcached }}
      - supervisor

# Pull down the current codebase of nbviewer from github, unless pillar has something else for us
nbviewer-git:
  git.latest:
    - name: {{ salt['pillar.get']('nbviewer:location', 'https://github.com/ipython/nbviewer.git') }}
    - rev: {{ salt['pillar.get']('nbviewer:rev', 'master') }}
    - target: /usr/share/nbviewer
    - force: true
    - force_checkout: true
    - require:
{'fraction_non_alphanumeric': 0.15900900900900902, 'fraction_numerical': 0.02072072072072072, 'mean_word_length': 2.8760907504363002, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '1409693', 'n_tokens_mistral': 823, 'n_tokens_neox': 733, 'n_words': 174}