<commit_before>(function(angular){

	'use strict';

	/**
	 * @author <NAME>
	 */
	
	var apiWrapperModule = angular.module('apiWrapper',[]);
	
	apiWrapperModule.service('apiWrapper',['$http','api','$timeout','$q',function($http,api,$timeout,$q){
		
		var projection;
		
		var $scope;
		var page
		var size
		var sort;
		var order;
		var totalPages;
		var hasNext;
		var hasPrevious;
		
		var entityName;
		var searchEntity;
		var searchParams;
		
		var apiWrapper = function($scope){
			this.$scope = $scope;
			this.projection = 'detail';
			this.searchParams = [];
		}

		apiWrapper.prototype.configPagination = function(page,size,sort,order){
			this.page=page;
			this.size=size;
			this.sort=sort;
			this.order=order;
			return this;
		}
		/*
		    Configures apiWrapper for fetching reference data
		    page=0;size=200;sort=entityId;order=asc
		*/
		apiWrapper.prototype.configForReferenceData = function(collection){
		    this.page=0;
		    this.size=200;
		    this.sort=this.getSingular(collection) + 'Id';
		    this.order='asc';
		    this.entityName = collection;
		    return this;
		}
		/*
		    Configures apiWrapper for fetching data with following params
            page=0;size=20;sort=entityId;order=asc
		*/
		apiWrapper.prototype.configFor20Records = function(collection){
		    this.page=0;
            this.size=20;<commit_msg>function added in apiWrapper for readily configuring apiWrapper to fetch 200 (Refence Data) records<commit_after>(function(angular){

	'use strict';

	/**
	 * @author <NAME>
	 */
	
	var apiWrapperModule = angular.module('apiWrapper',[]);
	
	apiWrapperModule.service('apiWrapper',['$http','api','$timeout','$q',function($http,api,$timeout,$q){
		
		var projection;
		
		var $scope;
		var page
		var size
		var sort;
		var order;
		var totalPages;
		var hasNext;
		var hasPrevious;
		
		var entityName;
		var searchEntity;
		var searchParams;
		
		var apiWrapper = function($scope){
			this.$scope = $scope;
			this.projection = 'detail';
			this.searchParams = [];
		}

		apiWrapper.prototype.configPagination = function(page,size,sort,order){
			this.page=page;
			this.size=size;
			this.sort=sort;
			this.order=order;
			return this;
		}
		/*
		    Configures apiWrapper for fetching reference data
		    page=0;size=200;sort=entityId;order=asc
		*/
		apiWrapper.prototype.configFor200Records = function(collection){
		    this.page=0;
		    this.size=200;
		    this.sort=this.getSingular(collection) + 'Id';
		    this.order='asc';
		    this.entityName = collection;
		    return this;
		}
		/*
		    Configures apiWrapper for fetching data with following params
            page=0;size=20;sort=entityId;order=asc
		*/
		apiWrapper.prototype.configFor20Records = function(collection){
		    this.page=0;
            this.size=20;
{'fraction_non_alphanumeric': 0.12917115177610333, 'fraction_numerical': 0.013634732687477575, 'mean_word_length': 3.3974763406940065, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1087455', 'n_tokens_mistral': 1047, 'n_tokens_neox': 868, 'n_words': 172}