<commit_before>angular.module('app', [])

.controller("Controller", function($scope, $http, NeuralNetwork){

	var width = 1100,
		height = 500,
		r = 20;


	var inputNodes = [],
		interNodes = [],
		outputNodes = [],
		ws = [],
		vs = [],
		testDataErrors = [];

	var interval;
	var steper; // function to call to execute one cycle of training

	var data;

	$scope.config = {
		learningSpeed : 0.03,
		ratioTrainVsTest : 2,
		neuronLength : 3
	};

	$scope.chargeFile = function(d){
		data = d;
		$scope.columns = d.split('\n')[0].split(',');
		$scope.columnRadios = $scope.columns.map(function() { return 1; });
		$scope.columnRadios[$scope.columnRadios.length - 1] = 2;
		$scope.config.neuronLength = Math.round($scope.columns.length / 2);
	};

	$scope.chargeDefaultFile = function(){
		$http.get('/data.csv')
		.success(function(data){<commit_msg>fix relative path<commit_after>angular.module('app', [])

.controller("Controller", function($scope, $http, NeuralNetwork){

	var width = 1100,
		height = 500,
		r = 20;


	var inputNodes = [],
		interNodes = [],
		outputNodes = [],
		ws = [],
		vs = [],
		testDataErrors = [];

	var interval;
	var steper; // function to call to execute one cycle of training

	var data;

	$scope.config = {
		learningSpeed : 0.03,
		ratioTrainVsTest : 2,
		neuronLength : 3
	};

	$scope.chargeFile = function(d){
		data = d;
		$scope.columns = d.split('\n')[0].split(',');
		$scope.columnRadios = $scope.columns.map(function() { return 1; });
		$scope.columnRadios[$scope.columnRadios.length - 1] = 2;
		$scope.config.neuronLength = Math.round($scope.columns.length / 2);
	};

	$scope.chargeDefaultFile = function(){
		$http.get('./data.csv')
		.success(function(data){
{'fraction_non_alphanumeric': 0.1802701115678215, 'fraction_numerical': 0.022313564298297124, 'mean_word_length': 3.7597765363128492, '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': '4648642', 'n_tokens_mistral': 673, 'n_tokens_neox': 584, 'n_words': 123}