<commit_before>/*global define $ requestAnimationFrame*/

define(function (require) {
	
	var Backbone = require('backbone'),
        Vars = require('app/models/vars'),
        Anim = require('app/utils/anim/anim'),
        CellCollection = require('app/collections/cells'),
        CameraPath = require('app/utils/camera-path'),
        CanvasView = require('app/views/canvas-view'),
        DomView = require('app/views/dom-view'),
        UserEvent = require('app/events/user-event'),
        AppEvent = require('app/events/app-event'),
        ComicView;

    ComicView = Backbone.View.extend({

        initialize: function () {
            var frameNumber;

            this.position = {x: 0, y: 0};
            this.positionDelta = {x: 0, y: 0}; //delta for tracking
            this.touchDelta = {x: 0, y: 0}; //delta for tracking
            this.scale = 1;
            this.animating = true;

            this.router = Vars.get('router');

            //determine initial frame
            if (Backbone.history.fragment.search('frame') > -1) {
                frameNumber = Backbone.history.fragment.replace('frame/', '');
                Vars.set('currentFrame', frameNumber);
            }

			this.cells = new CellCollection();
            this.cells.fetch({success: this.handle_CELLS_READY.bind(this)});<commit_msg>fix float vs string for initial frame<commit_after>/*global define $ requestAnimationFrame*/

define(function (require) {
	
	var Backbone = require('backbone'),
        Vars = require('app/models/vars'),
        Anim = require('app/utils/anim/anim'),
        CellCollection = require('app/collections/cells'),
        CameraPath = require('app/utils/camera-path'),
        CanvasView = require('app/views/canvas-view'),
        DomView = require('app/views/dom-view'),
        UserEvent = require('app/events/user-event'),
        AppEvent = require('app/events/app-event'),
        ComicView;

    ComicView = Backbone.View.extend({

        initialize: function () {
            var frameNumber;

            this.position = {x: 0, y: 0};
            this.positionDelta = {x: 0, y: 0}; //delta for tracking
            this.touchDelta = {x: 0, y: 0}; //delta for tracking
            this.scale = 1;
            this.animating = true;

            this.router = Vars.get('router');

            //determine initial frame
            if (Backbone.history.fragment && Backbone.history.fragment.search('frame') > -1) {
                frameNumber = Backbone.history.fragment.replace('frame/', '');
                Vars.set('currentFrame', parseFloat(frameNumber));
            }

			this.cells = new CellCollection();
            this.cells.fetch({success: this.handle_CELLS_READY.bind(this)});
{'fraction_non_alphanumeric': 0.14406468210216833, 'fraction_numerical': 0.005880191106210952, 'mean_word_length': 2.259880239520958, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '4914451', 'n_tokens_mistral': 797, 'n_tokens_neox': 750, 'n_words': 152}