% mknondevlog.m
% creates log_ip, log_date, log_page, log_query
% while excluding developer ips
% based on access_ip, access_date, access_page, access_query
%
cell_size=numofcells;

log_ip=cell(1,cell_size);
log_time=cell(1,cell_size);
log_page=cell(1,cell_size);
log_query=cell(1,cell_size);

developer_ip={ ...
 '127.0.0.1' 
 '130.132.89.31'
 '130.132.79.90'
 '130.132.79.87'
 '130.132.79.35'
 '130.132.79.20'
 '130.132.79.74'
 '130.132.220.62'
 '130.132.213.59'
 '130.132.217.241'
 '130.132.213.123'
 '130.132.234.162'
 '130.132.233.207'
 '127.0.0.1'
 '130.132.19.81'
 '130.132.213.123'
 '130.132.213.59'
 '130.132.217.241'
 '130.132.220.62'
 '128.36.123.59'
 '128.36.123.70'
 '128.36.123.53'
 '128.36.123.89'
 '128.36.123.67'
 '130.132.234.162'
 '130.132.233.207'
 '130.132.230.127'
 '130.132.213.197'
};

developer_string='';

for i=1:length(developer_ip)
    developer_string=[developer_string char(developer_ip(i))];
end

j=1;

for i=1:numofcells
    
    if strfind(developer_string,char(access_ip(i)))
        % disp(['record ' int2str(i) ' is developer: ' char(access_ip(i)) ]);
        % ignore developer
    else % copy over non-developer
        log_ip(j)=access_ip(i);
        log_time(j)=access_time(i);
        log_page(j)=access_page(i);
        log_query(j)=access_query(i);
        j=j+1;    
    end
end
numinlog=j-1;
