<commit_before># encoding utf-8

module Carto
  module Api
    class SnapshotsController < ::Api::ApplicationController
      include ControllerHelper

      before_filter :load_visualization,
                    :check_visualization_viewable
      before_filter :load_snapshot,
                    :owners_only, only: [:show, :update, :destroy]
<commit_msg>add ssl_required<commit_after># encoding utf-8

module Carto
  module Api
    class SnapshotsController < ::Api::ApplicationController
      include ControllerHelper

      ssl_required :index, :show, :create, :update, :destroy

      before_filter :load_visualization,
                    :check_visualization_viewable
      before_filter :load_snapshot,
                    :owners_only, only: [:show, :update, :destroy]

{'fraction_non_alphanumeric': 0.07554417413572344, 'fraction_numerical': 0.002560819462227913, 'mean_word_length': 3.01025641025641, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '7052470', 'n_tokens_mistral': 218, 'n_tokens_neox': 207, 'n_words': 51}