<commit_before>/******************************************
* Claimers Services Collection
*/
app.Collections.ClaimersServices = app.Collections.GenericCollection.extend({

	model : app.Models.ClaimerService,

	// Model name in the database //
	model_name : 'openstc.service',

	url: 'demandeurs-services',



	/** Collection Initialization
	*/
	initialize : function() {
		//console.log('Claimer Service collection initialize');
	},



	/** Collection Sync
	*/
	sync: function(method, model, options) {
		var fields = ["category_ids", "code", "id", "manager_id", "name", "service_id", "technical", "user_ids"];

		return app.readOE(this.model_name, app.models.user.getSessionID(), options, fields);
	},



	/** Collection Parse
	*/
	parse: function(response) {
		return response.result.records;
	},
	


	/** Comparator for ordering collection
	*/
	comparator: function(item) {
		return item.get('name');
	},

});<commit_msg>fixes #1203 Claimer services collection based on barakafrites<commit_after>/******************************************
* Claimers Services Collection
*/

// fields = ["category_ids", "code", "id", "manager_id", "name", "service_id", "technical", "user_ids"]

app.Collections.ClaimersServices = app.Collections.GenericCollection.extend({

	model : app.Models.ClaimerService,

	// Model name in the database //
	model_name : 'openstc.service',

	url: '/api/openstc/departments',



	/** Collection Initialization
	*/
	initialize : function() {
		//console.log('Claimer Service collection initialize');
	},

	/** Comparator for ordering collection
	*/
	comparator: function(item) {
		return item.get('name');
	},

});
{'fraction_non_alphanumeric': 0.199023199023199, 'fraction_numerical': 0.002442002442002442, 'mean_word_length': 4.690972222222222, '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': '2357336', 'n_tokens_mistral': 518, 'n_tokens_neox': 477, 'n_words': 109}