<commit_before>(function() {

	'use strict';

	angular.module('openlmis.requisitions').factory('User', User);
	angular.module('openlmis.requisitions').factory('PeriodsForProgramAndFacility', PeriodsForProgramAndFacility);
	angular.module('openlmis.requisitions').factory('RequisitionsForProgramAndFacility', RequisitionsForProgramAndFacility);
	angular.module('openlmis.requisitions').factory('Requisition', Requisition);


	User.$inject = ['OpenlmisURL', '$resource'];
	PeriodsForProgramAndFacility.$inject = ['OpenlmisURL', '$resource'];
	RequisitionsForProgramAndFacility.$inject = ['OpenlmisURL', '$resource'];
	Requisition.$inject = ['OpenlmisURL', '$resource'];

	function User(OpenlmisURL, $resource) {
		return $resource(OpenlmisURL('/referencedata/api/users/:id'), {
                id: '@id'
        });
	}

	function PeriodsForProgramAndFacility(OpenlmisURL, $resource) {
        return $resource(OpenlmisURL('/requisition/api/requisitions/periods-for-initiate'), {}, {
            get: {
                method: 'GET',
                params: {
                    programId: '@programId',
                    facilityId: '@facilityId',
                    emergency: '@emergency'
                }
            }
        });
    }

    function RequisitionsForProgramAndFacility(OpenlmisURL, $resource) {
        return $resource(OpenlmisURL('/requisition/api/requisitions/search'), {}, {
            get: {
                method: 'GET',
                params: {
                    programId: '@programId',
                    facilityId: '@facilityId'
                }
            }
        });
    }

    function Requisition(OpenlmisURL, $resource) {
        return $resource(OpenlmisURL('/requisition/requisitions/:id'), {
                id: '@id'
        });
    }

})();<commit_msg>OLDMI-1004: fix missing isArray property in init-rnr services<commit_after>(function() {

	'use strict';

	angular.module('openlmis.requisitions').factory('User', User);
	angular.module('openlmis.requisitions').factory('PeriodsForProgramAndFacility', PeriodsForProgramAndFacility);
	angular.module('openlmis.requisitions').factory('RequisitionsForProgramAndFacility', RequisitionsForProgramAndFacility);
	angular.module('openlmis.requisitions').factory('Requisition', Requisition);


	User.$inject = ['OpenlmisURL', '$resource'];
	PeriodsForProgramAndFacility.$inject = ['OpenlmisURL', '$resource'];
	RequisitionsForProgramAndFacility.$inject = ['OpenlmisURL', '$resource'];
	Requisition.$inject = ['OpenlmisURL', '$resource'];

	function User(OpenlmisURL, $resource) {
		return $resource(OpenlmisURL('/referencedata/api/users/:id'), {
                id: '@id'
        });
	}

	function PeriodsForProgramAndFacility(OpenlmisURL, $resource) {
        return $resource(OpenlmisURL('/requisition/api/requisitions/periods-for-initiate'), {}, {
            get: {
                method: 'GET',
                isArray: true
            }
        });
    }

    function RequisitionsForProgramAndFacility(OpenlmisURL, $resource) {
        return $resource(OpenlmisURL('/requisition/api/requisitions/search'), {}, {
            get: {
                method: 'GET',
                isArray: true
            }
        });
    }

    function Requisition(OpenlmisURL, $resource) {
        return $resource(OpenlmisURL('/requisition/requisitions/:id'), {
                id: '@id'
        });
    }

})();
{'fraction_non_alphanumeric': 0.14516602997355274, 'fraction_numerical': 0.0011754334410813989, 'mean_word_length': 2.8947368421052633, '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': '3956196', 'n_tokens_mistral': 1021, 'n_tokens_neox': 972, 'n_words': 129}