{"size": 617, "ext": "js", "max_stars_repo_path": "web/components/Jobs/jobsService.js", "max_stars_repo_name": "noraj/cracklord", "max_stars_repo_stars_event_min_datetime": "2015-03-28T10:41:50.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-30T16:32:54.000Z", "max_issues_repo_path": "web/components/Jobs/jobsService.js", "max_issues_repo_name": "FDlucifer/cracklord", "max_issues_repo_issues_event_min_datetime": "2015-02-15T17:31:17.000Z", "max_issues_repo_issues_event_max_datetime": "2018-12-13T20:43:32.000Z", "max_forks_repo_path": "web/components/Jobs/jobsService.js", "max_forks_repo_name": "FDlucifer/cracklord", "max_forks_repo_forks_event_min_datetime": "2015-05-01T12:33:26.000Z", "max_forks_repo_forks_event_max_datetime": "2021-12-06T20:06:53.000Z"}
{"max_stars_count": 404, "max_issues_count": 144, "max_forks_count": 81, "avg_line_length": 25.7083333333, "max_line_length": 69, "alphanum_fraction": 0.528363047}
cracklord.factory('JobsService', ['$resource', function ($resource) {
   return $resource('/api/jobs/:id', {id: '@id'}, {
   	query: {
   		isArray: true,
   		method: 'GET',
   		params: {},
   		transformResponse: function(data) {
   			var results = angular.fromJson(data);
   			return results.jobs;
   		}	
   	},
    update: {
      method: 'PUT', 
      transformResponse: function(data, headersGetter, status) {
        if(status >= 200 && status <= 400) {
          var results = angular.fromJson(data);
          return results.job;
        } else {
          return data;
        }
      }
    }
  });
}]);