<commit_before>/*
 * Copyright (c) $year, Den Norske Turistforening (DNT)
 *
 * https://github.com/Turistforeningen/turadmin
 */

var DNT = window.DNT || {};

(function (ns) {
    "use strict";

    var pictureViewBindings = {
        '[name = "beskrivelse"]' : "beskrivelse",
        '[name = "fotograf"]': {
            observe: 'fotograf',
            onGet: 'getFotografNavnFromModel',
            onSet: 'formatFotografNavnToModel'
        }
    };

    var allFotoTags = {
        selectData: [
            {
                value: "Gåtur",
                label: "Gåtur"
            },
            {
                value: "Skitur",
                label: "Skitur"
            }
        ]
    };

    ns.PictureView = Backbone.View.extend({

        template: _.template($('#pictureTemplate').html()),

        className: "picture-sortable col-sm-4",

        initialize : function () {
            //Listen to url changes (when saving, picture is moved from tmp to permanent storage)
            this.model.on("change:thumbnailUrl", this.render, this);
        },

        events: {
            'click #positionPicture': 'positionPicture',
            'click #deletePicture': 'deletePicture',
            'pictureDropped': 'pictureIndexChanged'
        },

        positionPicture: function (e) {<commit_msg>4 pictures in each row on large displays<commit_after>/*
 * Copyright (c) $year, Den Norske Turistforening (DNT)
 *
 * https://github.com/Turistforeningen/turadmin
 */

var DNT = window.DNT || {};

(function (ns) {
    "use strict";

    var pictureViewBindings = {
        '[name = "beskrivelse"]' : "beskrivelse",
        '[name = "fotograf"]': {
            observe: 'fotograf',
            onGet: 'getFotografNavnFromModel',
            onSet: 'formatFotografNavnToModel'
        }
    };

    var allFotoTags = {
        selectData: [
            {
                value: "Gåtur",
                label: "Gåtur"
            },
            {
                value: "Skitur",
                label: "Skitur"
            }
        ]
    };

    ns.PictureView = Backbone.View.extend({

        template: _.template($('#pictureTemplate').html()),

        className: "picture-sortable col-sm-4 col-md-4 col-lg-3",

        initialize : function () {
            //Listen to url changes (when saving, picture is moved from tmp to permanent storage)
            this.model.on("change:thumbnailUrl", this.render, this);
        },

        events: {
            'click #positionPicture': 'positionPicture',
            'click #deletePicture': 'deletePicture',
            'pictureDropped': 'pictureIndexChanged'
        },

        positionPicture: function (e) {
{'fraction_non_alphanumeric': 0.13149047441165485, 'fraction_numerical': 0.0018677624206200972, 'mean_word_length': 1.7895833333333333, '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': '226506', 'n_tokens_mistral': 812, 'n_tokens_neox': 779, 'n_words': 165}