<commit_before>/**
 * @ngdoc controller
 * @name Umbraco.Editors.DocumentType.EditController
 * @function
 *
 * @description
 * The controller for the content type editor
 */
(function() {
   "use strict";

   function ListViewGridLayoutController($scope, $routeParams, mediaHelper, mediaResource, $location) {

      var vm = this;

      vm.folders = [];
      vm.nodeId = $routeParams.id;
      vm.acceptedFileTypes = mediaHelper.formatFileTypes(Umbraco.Sys.ServerVariables.umbracoSettings.imageFileTypes);
      vm.activeDrag = false;

      vm.dragEnter = dragEnter;
      vm.dragLeave = dragLeave;
		vm.onFilesQueue = onFilesQueue;
      vm.onUploadComplete = onUploadComplete;
      vm.hoverMediaItemDetails = hoverMediaItemDetails;
      vm.selectFolder = selectFolder;
      vm.clickFolder = clickFolder;
      vm.selectMediaItem = selectMediaItem;
      vm.clickMediaItem = clickMediaItem;

      function activate() {

         mediaResource.getChildFolders(vm.nodeId)
            .then(function(folders) {
               vm.folders = folders;
            });
      }

      function dragEnter(el, event) {
         vm.activeDrag = true;
      }

      function dragLeave(el, event) {
         vm.activeDrag = false;<commit_msg>only get sub folders in media section<commit_after>/**
 * @ngdoc controller
 * @name Umbraco.Editors.DocumentType.EditController
 * @function
 *
 * @description
 * The controller for the content type editor
 */
(function() {
   "use strict";

   function ListViewGridLayoutController($scope, $routeParams, mediaHelper, mediaResource, $location) {

      var vm = this;

      vm.folders = [];
      vm.nodeId = $routeParams.id;
      vm.acceptedFileTypes = mediaHelper.formatFileTypes(Umbraco.Sys.ServerVariables.umbracoSettings.imageFileTypes);
      vm.activeDrag = false;

      vm.dragEnter = dragEnter;
      vm.dragLeave = dragLeave;
		vm.onFilesQueue = onFilesQueue;
      vm.onUploadComplete = onUploadComplete;
      vm.hoverMediaItemDetails = hoverMediaItemDetails;
      vm.selectFolder = selectFolder;
      vm.clickFolder = clickFolder;
      vm.selectMediaItem = selectMediaItem;
      vm.clickMediaItem = clickMediaItem;

      function activate() {

         if($scope.entityType === 'media') {
            mediaResource.getChildFolders(vm.nodeId)
               .then(function(folders) {
                  vm.folders = folders;
               });
         }

      }

      function dragEnter(el, event) {
         vm.activeDrag = true;
      }

      function dragLeave(el, event) {
         vm.activeDrag = false;
{'fraction_non_alphanumeric': 0.10073901205756515, 'fraction_numerical': 0.0, 'mean_word_length': 2.684813753581662, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3026857', 'n_tokens_mistral': 752, 'n_tokens_neox': 725, 'n_words': 141}