<commit_before>'use strict';
angular.module('Trendicity')

.controller('CardViewCtrl', function ($scope, $ionicSideMenuDelegate, $ionicPopup, $ionicSlideBoxDelegate,
                                      $timeout, $ionicHistory, localStorageService, InstagramService, PostsService,
                                      TDCardDelegate) {

  // Disable side-menu drag so that it doesnt interfere with our tinder cards functionality
  $scope.$on('$ionicView.enter', function() {
    $ionicHistory.clearHistory();
    $ionicSideMenuDelegate.canDragContent(false);
  });

  $scope.$on('$ionicView.leave', function() {
    $ionicSideMenuDelegate.canDragContent(true);
  });

  if (!localStorageService.get('seenCardIntro')) {
    // Mark intro as seen
    localStorageService.set('seenCardIntro', true);

    var slidebox = $ionicSlideBoxDelegate.$getByHandle('card-intro-slidebox');

    // Disable intro slidebox sliding
    $scope.disableSlideBox = function() {
      $ionicSlideBoxDelegate.enableSlide(false);
    };

    // Show explanation message
    $ionicPopup.show({
      title: 'Swipe Cards',
      templateUrl: 'templates/card-intro.html',
      scope: $scope,
      buttons: [
        {
          text: 'Next',<commit_msg>cleanup card.js<commit_after>'use strict';
angular.module('Trendicity')

.controller('CardViewCtrl', function ($scope, $ionicSideMenuDelegate, $ionicPopup, $ionicSlideBoxDelegate,
                                      $timeout, $ionicHistory, localStorageService, InstagramService) {

  // Disable side-menu drag so that it doesnt interfere with our tinder cards functionality
  $scope.$on('$ionicView.enter', function() {
    $ionicHistory.clearHistory();
    $ionicSideMenuDelegate.canDragContent(false);
  });

  $scope.$on('$ionicView.leave', function() {
    $ionicSideMenuDelegate.canDragContent(true);
  });

  if (!localStorageService.get('seenCardIntro')) {
    // Mark intro as seen
    localStorageService.set('seenCardIntro', true);

    var slidebox = $ionicSlideBoxDelegate.$getByHandle('card-intro-slidebox');

    // Disable intro slidebox sliding
    $scope.disableSlideBox = function() {
      $ionicSlideBoxDelegate.enableSlide(false);
    };

    // Show explanation message
    $ionicPopup.show({
      title: 'Swipe Cards',
      templateUrl: 'templates/card-intro.html',
      scope: $scope,
      buttons: [
        {
          text: 'Next',
{'fraction_non_alphanumeric': 0.12729549248747912, 'fraction_numerical': 0.0, 'mean_word_length': 3.2880143112701252, 'pattern_counts': {'":': 0, '<': 3, '<?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': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3597031', 'n_tokens_mistral': 715, 'n_tokens_neox': 666, 'n_words': 132}