{"size": 972, "ext": "js", "max_stars_repo_path": "output/target/srv/anweb/apps/admin/pages/notice/ctrl.js", "max_stars_repo_name": "chenxudong2020/gpl_-dir_853_-mt7621-at", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "output/target/srv/anweb/apps/admin/pages/notice/ctrl.js", "max_issues_repo_name": "chenxudong2020/gpl_-dir_853_-mt7621-at", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "output/target/srv/anweb/apps/admin/pages/notice/ctrl.js", "max_forks_repo_name": "chenxudong2020/gpl_-dir_853_-mt7621-at", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 972.0, "max_line_length": 972, "alphanum_fraction": 0.7654320988}
"use strict";angular.module("app").controller("NoticeCtrl",["$rootScope","$scope","$state","$timeout","$window","translate","noticeUtil","device","funcs",function($rootScope,$scope,$state,$timeout,$window,translate,notice){$scope.notifications=[],notice.subscribe(function(){function isNew(name){return _.every($scope.notifications,function(elem){return elem.name!=name})}function addToList(name,view,index){var item={name:name,view:view};return _.isUndefined(index)?void $scope.notifications.push(item):void $scope.notifications.splice(index,0,item)}var list=notice.getList(),names=_.pluck(list,"name");!function(names){var index,name;for(index=$scope.notifications.length-1;index>=0;index--)name=$scope.notifications[index].name,_.contains(names,name)||$scope.notifications.splice(index,1)}(names),_.each(list,function(elem,index){var name=elem.name;elem.params;var content=elem.view;elem.view&&isNew(name)&&addToList(name,content,index)})}),$scope.$emit("pageload")}]);