<commit_before># Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/


$ = jQuery
debug = false

class Settlement
  constructor: ->
    @name = $('#settlement_name')
    @pop  = $('#settlement_population')
    this.initRandcheck()
    @pop.keyup => this.forceInt()
    #make the selection box a pretty pretty princess
    $('select').selectbox()
    @pop.keyup => this.updateDrop()
    $('#create-settlement').click -> this.createCallback
    $('.selectbox-wrapper').on 'click', =>
      this.sizeSettlement()

  initRandcheck: -><commit_msg>slide down for export menu<commit_after># Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/


$ = jQuery
debug = false

class Settlement
  constructor: ->
    @name = $('#settlement_name')
    @pop  = $('#settlement_population')
    this.initRandcheck()
    @pop.keyup => this.forceInt()
    #make the selection box a pretty pretty princess
    $('select').selectbox()
    @pop.keyup => this.updateDrop()
    $('#create-settlement').click -> this.createCallback
    $('.selectbox-wrapper').on 'click', =>
      this.sizeSettlement()
    $('li.export').click ->
      $(this).find($('ul.export-menu')).slideToggle(200)

  initRandcheck: ->
{'fraction_non_alphanumeric': 0.141644908616188, 'fraction_numerical': 0.0019582245430809398, 'mean_word_length': 3.7461300309597525, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 16, 'https://': 0, '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': '4219457', 'n_tokens_mistral': 462, 'n_tokens_neox': 440, 'n_words': 126}