<commit_before>AbstractView = require './view/AbstractView'
Preloader    = require './view/base/Preloader'
# Header       = require './view/base/Header'
Wrapper      = require './view/base/Wrapper'
# Footer       = require './view/base/Footer'
ModalManager = require './view/modals/_ModalManager'
MediaQueries = require './utils/MediaQueries'

class AppView extends AbstractView

    template : 'main'

    $window  : null
    $body    : null

    wrapper  : null
    footer   : null

    dims :
        w : null
        h : null
        o : null
        c : null

    events :
        'click a' : 'linkManager'

    EVENT_UPDATE_DIMENSIONS : 'EVENT_UPDATE_DIMENSIONS'

    MOBILE_WIDTH : 700
    MOBILE       : 'mobile'
    NON_MOBILE   : 'non_mobile'

    constructor : ->

        @$window = $(window)
        @$body   = $('body').eq(0)

        super()

    disableTouch: =>

        @$window.on 'touchmove', @onTouchMove
        return

    enableTouch: =>

        @$window.off 'touchmove', @onTouchMove
        return

    onTouchMove: ( e ) ->

        e.preventDefault()
        return

    render : =>

        @bindEvents()

        @preloader    = new Preloader
        @modalManager = new ModalManager

        # @header  = new Header
        @wrapper = new Wrapper
        # @footer  = new Footer

        @
            # .addChild @header
            .addChild @wrapper
            .addChild @modalManager

        @onAllRendered()
        return

    bindEvents : =>

        @on 'allRendered', @onAllRendered

        @onResize()

        @onResize = _.debounce @onResize, 300
        @$window.on 'resize orientationchange', @onResize

        # @$window.on 'click', @showModalTest

        return

    showModalTest :=>
        @modalManager.showModal 'overlayContent'
        null

    onAllRendered : =>

        # console.log "onAllRendered : =>"

        @$body.prepend @$el

        @begin()
<commit_msg>content<commit_after>AbstractView = require './view/AbstractView'
Preloader    = require './view/base/Preloader'
# Header       = require './view/base/Header'
Wrapper      = require './view/base/Wrapper'
# Footer       = require './view/base/Footer'
ModalManager = require './view/modals/_ModalManager'
MediaQueries = require './utils/MediaQueries'

class AppView extends AbstractView

    template : 'main'

    $window  : null
    $body    : null

    wrapper  : null
    footer   : null

    dims :
        w : null
        h : null
        o : null
        c : null

    events :
        'click a' : 'linkManager'

    EVENT_UPDATE_DIMENSIONS : 'EVENT_UPDATE_DIMENSIONS'

    MOBILE_WIDTH : 700
    MOBILE       : 'mobile'
    NON_MOBILE   : 'non_mobile'

    constructor : ->

        @$window = $(window)
        @$body   = $('body').eq(0)

        super()

    disableTouch: =>

        @$window.on 'touchmove', @onTouchMove
        return

    enableTouch: =>

        @$window.off 'touchmove', @onTouchMove
        return

    onTouchMove: ( e ) ->

        e.preventDefault()
        return

    render : =>

        @bindEvents()

        @preloader    = new Preloader
        @modalManager = new ModalManager

        # @header  = new Header
        @wrapper = new Wrapper
        # @footer  = new Footer

        @
            # .addChild @header
            .addChild @wrapper
            .addChild @modalManager

        @onAllRendered()
        return

    bindEvents : =>

        @on 'allRendered', @onAllRendered

        @onResize()

        @onResize = _.debounce @onResize, 300
        @$window.on 'resize orientationchange', @onResize

        @$window.on 'click', @showModalTest

        return

    showModalTest :=>
        @modalManager.showModal 'overlayContent'
        null

    onAllRendered : =>

        # console.log "onAllRendered : =>"

        @$body.prepend @$el

        @begin()

{'fraction_non_alphanumeric': 0.1125845033801352, 'fraction_numerical': 0.003640145605824233, 'mean_word_length': 1.8121345029239766, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 21, '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': '2949164', 'n_tokens_mistral': 1214, 'n_tokens_neox': 1141, 'n_words': 256}