<commit_before>'use strict';

angular.module('CallForPaper')
	.controller('AdminSessionsExportCtrl', ['$scope', 'AdminSession', function($scope, AdminSession) {
		/**
		 * Get all sessions (talks)
		 * @param  {void}
		 * @return {[AdminSession]}
		 */
		AdminSession.query().$promise.then(function(sessionsTmp) {
			$scope.sessions = sessionsTmp;
		});
}]);

angular.module('CallForPaper')
	.controller('AdminSessionsExportJsonCtrl', ['$scope', 'AdminSession', function($scope, AdminSession) {
		/**
		 * Get all sessions (talks)
		 * @param  {void}
		 * @return {[AdminSession]}
		 */
		AdminSession.query().$promise.then(function(sessionsTmp) {
			_.map(sessionsTmp, function(session) {
				return {
					id: session.email,
					topspeaker: false,
					firstname: session.firstname,
		            lastname: _.capitalize(session.name.toLowerCase()),
		            image: "todo à la main ?",
		            category: {
		                class: session.track,
		                title: _.capitalize(session.track)
		            },
		            ribon: {
		                class: "gde",
		                title: "GDE",
		                link: "https://developers.google.com/experts/",
		                tile_long: "Google Developer Expert"
		            },
		            company: session.company,
		            about: session.bio,
		            socials: [
		                {class: "google-plus", link: session.googlePlus},
		                {class: "twitter", link: session.twitter},
		                {class: "github", link: session.github},
		                {class: "site", link: session.social}
		            ],
		            session: [{
		            	"id":"s4",
					    "title":session.sessionName,
					    "confRoom":"Salle Titan",
					    "desc":session.description,
					    "type":session.track,
					    "difficulty":parseInt(session.difficulty+"0"+session.difficulty),
					    "all" : false,
					    "lang":"fr",
					    "hour":"",
					    "video":"",
					    "slides":"",
					    "speakers":[session.email]
		            }]
				}
			});
			$scope.sessions = sessionsTmp;
		});
}]);<commit_msg>feat(export): add export page in json format<commit_after>'use strict';

angular.module('CallForPaper')
	.controller('AdminSessionsExportCtrl', ['$scope', 'AdminSession', function($scope, AdminSession) {
		/**
		 * Get all sessions (talks)
		 * @param  {void}
		 * @return {[AdminSession]}
		 */
		AdminSession.query().$promise.then(function(sessionsTmp) {
			$scope.sessions = sessionsTmp;
		});
}]);

angular.module('CallForPaper')
	.controller('AdminSessionsExportJsonCtrl', ['$scope', 'AdminSession', function($scope, AdminSession) {
		/**
		 * Get all sessions (talks)
		 * @param  {void}
		 * @return {[AdminSession]}
		 */
		AdminSession.query().$promise.then(function(sessionsTmp) {
			$scope.sessions = _.map(sessionsTmp, function(session) {
				return {
					id: session.email,
					topspeaker: false,
					firstname: session.firstname,
		            lastname: _.capitalize(session.name.toLowerCase()),
		            image: "todo à la main ?",
		            category: {
		                class: session.track,
		                title: _.capitalize(session.track)
		            },
		            ribon: {
		                class: "gde",
		                title: "GDE",
		                link: "https://developers.google.com/experts/",
		                tile_long: "Google Developer Expert"
		            },
		            company: session.company,
		            about: session.bio,
		            socials: [
		                {class: "google-plus", link: session.googlePlus},
		                {class: "twitter", link: session.twitter},
		                {class: "github", link: session.github},
		                {class: "site", link: session.social}
		            ],
		            session: [{
		            	"id":"s4",
					    "title":session.sessionName,
					    "confRoom":"Salle Titan",
					    "desc":session.description,
					    "type":session.track,
					    "difficulty":parseInt(session.difficulty+"0"+session.difficulty),
					    "all" : false,
					    "lang":"fr",
					    "hour":"",
					    "video":"",
					    "slides":"",
					    "speakers":[session.email]
		            }]
				};
			});
		});
}]);
{'fraction_non_alphanumeric': 0.15393682225365393, 'fraction_numerical': 0.000942951438000943, 'mean_word_length': 1.9404019404019404, 'pattern_counts': {'":': 22, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6003050', 'n_tokens_mistral': 1524, 'n_tokens_neox': 1183, 'n_words': 213}