<commit_before>function cmparr(arr1,arr2)
{
	if(arr1.length!=arr2.length)
	{
		return false;
	}
	var check=0;
	for(i=0;i<arr1.length;i++)
		if(arr1[i]===arr2[i])
			check++;
	if(check==arr1.length)
		return true;
	else
		return false;
}

function alertmessage4()
{
	$(document).ready(function()
	{
		$("#message3").hide();
		$("#message4").addClass('confirmation');
		$("#message4").show('slow');
	});
}

function view4(importsheet)//header,table,numcol,grid_data)
{
    var loc="recvdata";
    var budget_kits=[
	['code','Code'],
	['description','Description'],
	['total_unit_cost','Total unit cost'],
	['total_monthly_cost','Total monthly cost'],
	['total_minute_cost','Total minute cost'],
	['total_megabyte_cost','Total megabyte cost']
	];
    var budget_item=[
    	['category_type','Budget Item'],
    	['code','Code'],
    	['description','Description'],
    	['cost_type','Cost type'],
    	['unit_cost','Unit Cost'],
    	['monthly_cost','Monthly Cost'],
    	['minute_cost','Minute Cost'],
    	['megabyte_cost','Megabyte Cost'],
    	['comments','Comments']
    	];
    var budget_kit_item=[
    	['kit_id','Kit ID'],
    	['item_id','Item ID'],
    	['quantity','Quantity']
    	];
    var or_office=[
    	['name','Name'],
	['organisation_id','ID'],
	['type','Type'],
	['admin','Admin'],
	['location_id','Location ID'],
	['parent','Parent'],
	['address','Address'],
	['postcode','Postcode'],
	['phone1','Phone 1'],
	['phone2','Phone 2'],
	['email','E-mail'],
	['fax','Fax'],
	['national_staff','National Staff'],
	['international_staff','International Staff'],
	['number_of_vehicles','Number of vehicles'],
	['vehicle_types','Vehicle types'],
	['equipment','Equipment'],
	['source_id','Source ID'],
	['comments','Comments']
	];

    var or_organisation=[
    	['name','Name'],
	['acronym','Acronym'],
	['type','Type'],
	['sector_id','Sector ID'],
	['admin','Admin'],
	['country','Country'],
	['website','Website'],
	['twitter','Twitter'],
	['donation_phone','Donation Phone'],
	['comments','Comments']
	];
    var pr_person=[
    	['pr_pe_id','ID'],
    	['pr_pe_label','Label'],
	['missing','Missing'],
	['first_name','First name'],
	['middle_name','Middle name'],
	['last_name','Last name'],
	['preferred_name','Preferred name'],
	['local_name','Local Name'],
	['opt_pr_gender','Gender'],
	['opt_pr_age_group','Age group'],
	['email','E-mail'],
	['mobile_phone','Mobile Phone'],
	['date_of_birth','Date of Birth'],
	['opt_pr_nationality','Nationality'],
	['opt_pr_country','Country'],
	['opt_pr_religion','Religion'],
	['opt_pr_marital_status','Marital Status'],
	['occupation','Occupation'],
	['comment','Comment']
	];
    var cr_shelter=[
        ['name','Name'],
	['description','Description'],
	['admin','Admin'],
	['location_id','Location ID'],
	['person_id','Person ID'],
	['address','Address'],
	['capacity','Capacity'],
	['dwellings','Dwellings'],
	['persons_per_dwelling','Persons per dwelling'],
	['area','Area']
	];
    var store='';
    if(importsheet.table=='or_organization')
	    store=or_organization;
    if(importsheet.table=='or_office')
	    	store=or_office;
    if(importsheet.table=='pr_person')
	    store=pr_person;
    if(importsheet.table=='cr_shelter')
	    store=cr_shelter;
    if(importsheet.table=='budget_kits')
	    store=budget_kits;
    if(importsheet.table=='budget_item')
	    store=budget_item;<commit_msg>Correction to columnmap step, now all tables work<commit_after>function cmparr(arr1,arr2)
{
	if(arr1.length!=arr2.length)
	{
		return false;
	}
	var check=0;
	for(i=0;i<arr1.length;i++)
		if(arr1[i]===arr2[i])
			check++;
	if(check==arr1.length)
		return true;
	else
		return false;
}

function alertmessage4()
{
	$(document).ready(function()
	{
		$("#message3").hide();
		$("#message4").addClass('confirmation');
		$("#message4").show('slow');
	});
}

function view4(importsheet)//header,table,numcol,grid_data)
{
    var loc="recvdata";
    var budget_kits=[
	['code','Code'],
	['description','Description'],
	['total_unit_cost','Total unit cost'],
	['total_monthly_cost','Total monthly cost'],
	['total_minute_cost','Total minute cost'],
	['total_megabyte_cost','Total megabyte cost']
	];
    var budget_item=[
    	['category_type','Budget Item'],
    	['code','Code'],
    	['description','Description'],
    	['cost_type','Cost type'],
    	['unit_cost','Unit Cost'],
    	['monthly_cost','Monthly Cost'],
    	['minute_cost','Minute Cost'],
    	['megabyte_cost','Megabyte Cost'],
    	['comments','Comments']
    	];
    var budget_kit_item=[
    	['kit_id','Kit ID'],
    	['item_id','Item ID'],
    	['quantity','Quantity']
    	];
    var or_office=[
    	['name','Name'],
	['organisation_id','ID'],
	['type','Type'],
	['admin','Admin'],
	['location_id','Location ID'],
	['parent','Parent'],
	['address','Address'],
	['postcode','Postcode'],
	['phone1','Phone 1'],
	['phone2','Phone 2'],
	['email','E-mail'],
	['fax','Fax'],
	['national_staff','National Staff'],
	['international_staff','International Staff'],
	['number_of_vehicles','Number of vehicles'],
	['vehicle_types','Vehicle types'],
	['equipment','Equipment'],
	['source_id','Source ID'],
	['comments','Comments']
	];

    var or_organisation=[
    	['name','Name'],
	['acronym','Acronym'],
	['type','Type'],
	['sector_id','Sector ID'],
	['admin','Admin'],
	['country','Country'],
	['website','Website'],
	['twitter','Twitter'],
	['donation_phone','Donation Phone'],
	['comments','Comments']
	];
    var pr_person=[
    	['pr_pe_id','ID'],
    	['pr_pe_label','Label'],
	['missing','Missing'],
	['first_name','First name'],
	['middle_name','Middle name'],
	['last_name','Last name'],
	['preferred_name','Preferred name'],
	['local_name','Local Name'],
	['opt_pr_gender','Gender'],
	['opt_pr_age_group','Age group'],
	['email','E-mail'],
	['mobile_phone','Mobile Phone'],
	['date_of_birth','Date of Birth'],
	['opt_pr_nationality','Nationality'],
	['opt_pr_country','Country'],
	['opt_pr_religion','Religion'],
	['opt_pr_marital_status','Marital Status'],
	['occupation','Occupation'],
	['comment','Comment']
	];
    var cr_shelter=[
        ['name','Name'],
	['description','Description'],
	['admin','Admin'],
	['location_id','Location ID'],
	['person_id','Person ID'],
	['address','Address'],
	['capacity','Capacity'],
	['dwellings','Dwellings'],
	['persons_per_dwelling','Persons per dwelling'],
	['area','Area']
	];
    var store='';
    if(importsheet.table=='or_organisation')
	    store=or_organisation;
    if(importsheet.table=='or_office')
	    	store=or_office;
    if(importsheet.table=='pr_person')
	    store=pr_person;
    if(importsheet.table=='cr_shelter')
	    store=cr_shelter;
    if(importsheet.table=='budget_kits')
	    store=budget_kits;
    if(importsheet.table=='budget_item')
	    store=budget_item;
{'fraction_non_alphanumeric': 0.23638247483718178, 'fraction_numerical': 0.005624629958555358, 'mean_word_length': 5.880855397148676, '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': '1170523', 'n_tokens_mistral': 2491, 'n_tokens_neox': 2369, 'n_words': 348}