<commit_before>angular.module('module.group').service("GroupFetchService", ['$q','UserService', 'EntityModel', 'ENTITY_TYPES', 'Activity', function($q, UserSrv, EntityModel, ENTITY_TYPES, Activity){
    
    this.getGroup = function(groupId) {
        var defer = $q.defer();
        var self = this;

        new SSCircleGetFiltered(
            function(result) {
                var entities = [];
                
                if(
                  result.circle &&
                  result.circle.entities){
              
                  for (var i=0; i < result.circle.entities.length; i++) {
                      var entity = new EntityModel();
                      entity.init({id:result.circle.entities[i].id});
                      entity.init({type:result.circle.entities[i].type});
                      entity.init({label:result.circle.entities[i].label});
                      entity.init({tags:result.circle.entities[i].tags});
                      entity.init({overallRating:result.circle.entities[i].overallRating});
                      entity.init({creationTime:result.circle.entities[i].creationTime});
                      entity.init({author:result.circle.entities[i].author});

                      if(entity.type == ENTITY_TYPES.file) {
                          entity.mimeType = result.circle.entities[i].mimeType;
                          entity.fileExtension = result.circle.entities[i].fileExt;
                          if (result.circle.entities[i].mimeType.indexOf('/') > 0) {
                              entity.fileType = result.circle.entities[i].mimeType.substr(0, result.circle.entities[i].mimeType.indexOf('/'));
                          } else {
                              entity.fileType = result.circle.entities[i].mimeType;
                          }
                      }
                      entities.push(entity);
                  }
                  
                  result.circle.entities = entities;
                }
                
                defer.resolve(result);
            },
            function(error){
                console.log(error);
            },
            UserSrv.getKey(),
            groupId,
            ['entity', 'coll', 'disc', 'qa', 'chat', 'uploadedFile'], //entityTypesToIncludeOnly
            true, 				//includeTags
            "circleSpace"		//tag-circle
        );
       return defer.promise;
    };
    <commit_msg>minor change<commit_after>angular.module('module.group').service("GroupFetchService", ['$q','UserService', 'EntityModel', 'ENTITY_TYPES', 'Activity', function($q, UserSrv, EntityModel, ENTITY_TYPES, Activity){
    
    this.getGroup = function(groupId) {
        var defer = $q.defer();
        var self = this;

        new SSCircleGetFiltered(
            function(result) {
                var entities = [];
                
                if(
                  result.circle &&
                  result.circle.entities){
              
                  for (var i=0; i < result.circle.entities.length; i++) {
                      var entity = new EntityModel();
                      entity.init({id:result.circle.entities[i].id});
                      entity.init({type:result.circle.entities[i].type});
                      entity.init({label:result.circle.entities[i].label});
                      entity.init({tags:result.circle.entities[i].tags});
                      entity.init({overallRating:result.circle.entities[i].overallRating});
                      entity.init({creationTime:result.circle.entities[i].creationTime});
                      entity.init({author:result.circle.entities[i].author});

                      if(entity.type == ENTITY_TYPES.file) {
                          entity.mimeType = result.circle.entities[i].mimeType;
                          entity.fileExtension = result.circle.entities[i].fileExt;
                          if (result.circle.entities[i].mimeType.indexOf('/') > 0) {
                              entity.fileType = result.circle.entities[i].mimeType.substr(0, result.circle.entities[i].mimeType.indexOf('/'));
                          } else {
                              entity.fileType = result.circle.entities[i].mimeType;
                          }
                      }
                      entities.push(entity);
                  }
                  
                  result.circle.entities = entities;
                }
                
                defer.resolve(result);
            },
            function(error){
                console.log(error);
            },
            UserSrv.getKey(),
            groupId,
            ['entity', 'coll', 'disc', 'qa', 'chat', 'uploadedFile'], //entityTypesToIncludeOnly
            true, 				//includeTags
            null		//tag-circle
        );
       return defer.promise;
    };
    
{'fraction_non_alphanumeric': 0.1261335531739489, 'fraction_numerical': 0.001236603462489695, 'mean_word_length': 1.3489835430784123, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4719678', 'n_tokens_mistral': 1256, 'n_tokens_neox': 1210, 'n_words': 159}