<commit_before><commit_msg>new service for id generation.  pending<commit_after>  commSphereApp.service('ngEventIdService', function($http,$q) {

	return { 
		nameIsDuplicated : function(eventName) {
        console.log('event name passed in ',eventName);
        var deferred = $q.defer();
          $http.get('/api/events/duplicate/' + eventName).then(function (res) {
          if (res.data){
             console.log(res.data);
             deferred.resolve(res.data.duplicate);
          }
        });
       // $http.get('/api/events/duplicate/' + eventName)
       //      .success(function(result){
       //        deferred.resolve(result.data);
       //      }).error(function (msg, code) {
       //        deferred.reject(msg);
       //        console.log(msg,code);  
       //      });
            return deferred.promise;
 	 		},
   		idDuplicated : function(id) {
         var deferred = $q.defer();
   			 $http.get('/api/events/findDuplicateId/' + id).then(function (res) {
                deferred.resolve(res.data.duplicate);
            });
        return deferred.promise;  
   		},
   		primaryIdDuplicated : function(partialId) {
        var deferred = $q.defer();
   			$http.get('/api/events/getPrimaryId/' + partialId).then(function (res) {
              deferred.resolve(res.data);
            });
         return deferred.promise;
   		}
	}
});

{'fraction_non_alphanumeric': 0.15261627906976744, 'fraction_numerical': 0.0, 'mean_word_length': 1.9050632911392404, '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': '3620781', 'n_tokens_mistral': 428, 'n_tokens_neox': 412, 'n_words': 59}