<commit_before>angular.
    module('ticketTakerApp').
    component('jobInfo', {
        templateUrl: 'js/job-info/job-info.template.html',
        bindings: { job: '<' },
        controller: ['$http', '$sce', function($http, $sce) {
			var self = this;		

			//autocomplete logic
			self.movies = [];
			self.refreshMovies = function(query) {
				return $http.get(
					'/api/search',
					{
						params: {
							q: query
						}
					}
				).then(function(response) {
					self.movies = response.data;
				});
			}
			self.trustAsHtml = function(value) {
				return $sce.trustAsHtml(value);
			};

			self.$onChanges = function({binding}) {
				console.log({binding});
				if (angular.isDefined(binding)) {
					console.log({
						currentValue: binding.currentValue, 
						isFirstChange: binding.isFirstChange()
					});
          		}
        	}

        	//on bindings load
        	self.$onChanges = function (binding) {
				self.job.data.time_start = new Date(self.job.data.time_start);
				self.job.data.time_end = new Date(self.job.data.time_end);
			};
	}]
});<commit_msg>Autofill movie data<commit_after>angular.
    module('ticketTakerApp').
    component('jobInfo', {
        templateUrl: 'js/job-info/job-info.template.html',
        bindings: { job: '<' },
        controller: ['$http', '$sce', function($http, $sce) {
			var self = this;		

			//autocomplete logic
			self.movies = [];
			self.refreshMovies = function(query) {
				return $http.get(
					'/api/search',
					{
						params: {
							q: query
						}
					}
				).then(function(response) {
					self.movies = response.data;
				});
			}
			self.trustAsHtml = function(value) {
				return $sce.trustAsHtml(value);
			};

			self.$onChanges = function({binding}) {
				console.log({binding});
				if (angular.isDefined(binding)) {
					console.log({
						currentValue: binding.currentValue, 
						isFirstChange: binding.isFirstChange()
					});
          		}
        	}

        	//on bindings load into weird form
        	self.$onChanges = function (binding) {
        		self.movie = {
        			id: self.job.data.movie.fandango_id,
        			name: self.job.data.movie.name,
        			slug: self.job.data.movie.fandango_slug
        		};
				self.job.data.time_start = new Date(self.job.data.time_start);
				self.job.data.time_end = new Date(self.job.data.time_end);
			};
	}]
});
{'fraction_non_alphanumeric': 0.15443037974683543, 'fraction_numerical': 0.0, 'mean_word_length': 2.2214673913043477, 'pattern_counts': {'":': 0, '<': 5, '<?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': '1445774', 'n_tokens_mistral': 1002, 'n_tokens_neox': 790, 'n_words': 122}