<commit_before>/*jshint node: true */
'use strict';

/*
* Name :  LineChart.js
* Module : FrontEnd::Model::GraphsModel
* Location : /frontend/app/Model/GraphsModel
*
* History :
* Version       Date        Programmer                  Description
* ===============================================================================================================
* 0.3.0         2015-05-18  <NAME>          Modified general structure, some fixes
*
* 0.2.2			2015-05-15	<NAME>			Various fixes, insert inzializeData
*
* 0.2.1         2015-05-15  <NAME>	Fix all methods
*
* 0.2.0         2015-05-13  <NAME>	Add all methods
*
* 0.1.0         2015-05-13  <NAME>   		Add all attributes and some methods
*
* 0.0.1         2015-05-13  <NAME>			Initial code      
* ===============================================================================================================
*
*/

angular.module('app')
.factory('LineChartFactory', ['GraphFactory', 'AxisFactory', 'LineChartFlowFactory', function(GraphFactory, AxisFactory, LineChartFlowFactory){

	function split(json) {
		var graphJson = {};
		if (json.title !== undefined) {
			graphJson.title = json.title;
		}
		if (json.height !== undefined) {
			graphJson.height = json.height;
		}
		if (json.width !== undefined) {
			graphJson.width = json.width;
		}
		if (json.enableLegend !== undefined) {
			graphJson.enableLegend = json.enabledLegend;
			if (graphJson.enableLegend === true && json.legend !== undefined) {
				graphJson.legend = json.legend;
			}
		}
		if (json.horizontalGrid  !== undefined) {<commit_msg>fix line chart<commit_after>/*jshint node: true */
'use strict';

/*
* Name :  LineChart.js
* Module : FrontEnd::Model::GraphsModel
* Location : /frontend/app/Model/GraphsModel
*
* History :
* Version       Date        Programmer                  Description
* ===============================================================================================================
* 0.3.0         2015-05-18  <NAME>          Modified general structure, some fixes
*
* 0.2.2			2015-05-15	<NAME>			Various fixes, insert inzializeData
*
* 0.2.1         2015-05-15  <NAME>	Fix all methods
*
* 0.2.0         2015-05-13  <NAME>	Add all methods
*
* 0.1.0         2015-05-13  <NAME>   		Add all attributes and some methods
*
* 0.0.1         2015-05-13  <NAME>			Initial code      
* ===============================================================================================================
*
*/

angular.module('app')
.factory('LineChartFactory', ['GraphFactory', 'AxisFactory', 'LineChartFlowFactory', function(GraphFactory, AxisFactory, LineChartFlowFactory){

	function split(json) {
		var graphJson = {};
		if (json.title !== undefined) {
			graphJson.title = json.title;
		}
		if (json.height !== undefined) {
			graphJson.height = json.height;
		}
		if (json.width !== undefined) {
			graphJson.width = json.width;
		}
		if (json.enableLegend !== undefined) {
			graphJson.enableLegend = json.enableLegend;
			if (graphJson.enableLegend === true && json.legend !== undefined) {
				graphJson.legend = json.legend;
			}
		}
		if (json.horizontalGrid  !== undefined) {
{'fraction_non_alphanumeric': 0.2645739910313901, 'fraction_numerical': 0.04228058936579116, 'mean_word_length': 3.392405063291139, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '4544239', 'n_tokens_mistral': 1081, 'n_tokens_neox': 912, 'n_words': 200}