<commit_before>%%%----------------------------------------------------------------------
%%% File    : yaws_api.hrl
%%% Author  : <NAME> <<EMAIL>>
%%% Purpose : 
%%% Created : 24 Jan 2002 by <NAME> <<EMAIL>>
%%%----------------------------------------------------------------------

-author('<EMAIL>').


-record(arg, {
	  clisock,        %% the socket leading to the peer client
	  headers,        %% headers
	  req,            %% request
	  clidata,        %% The client data (as a binary in POST requests)
	  querydata,      %% Was the URL on the form of ...?query (GET reqs)
	  appmoddata,     %% the remainder of the path leading up to the querey
	  docroot,        %% where's the data
	  fullpath,       %% full path to yaws file
	  cont,		  %% Continuation for chunked multipart uploads
	  state,          %% State for use by users of the out/1 callback
	  pid,            %% pid of the yaws worker process
	  opaque,         %% useful to pass static data
	  appmod_prepath  %% path in front of: <appmod><appmoddata>
	 }).              


-record(http_request, {method,
		       path,
		       version}).

	    
-record(headers, {
	  connection,
	  accept,
	  host,
	  if_modified_since,
	  if_match,
	  if_none_match,
	  if_range,
	  if_unmodified_since,
	  range,
	  referer,
	  user_agent,
	  accept_ranges,
	  cookie = [],
	  keep_alive,
	  content_length,
	  content_type,
	  authorization,
	  other = []   %% misc other headers
	 }).




-record(url,
	{scheme,
	 host, 
	 port,            %% undefined means not set
	 path = [],
	 querypart = []}).
<commit_msg>Added the field server_path, which will store the parsed and normalized path of the request string.  This is in preparation for some significant clean-ups of the yaws_server.erl code.<commit_after>%%%----------------------------------------------------------------------
%%% File    : yaws_api.hrl
%%% Author  : <NAME> <<EMAIL>>
%%% Purpose : 
%%% Created : 24 Jan 2002 by <NAME> <<EMAIL>>
%%%----------------------------------------------------------------------

-author('<EMAIL>').


-record(arg, {
	  clisock,        %% the socket leading to the peer client
	  headers,        %% headers
	  req,            %% request
	  clidata,        %% The client data (as a binary in POST requests)
	  server_path,    %% The normalized server path
	  querydata,      %% Was the URL on the form of ...?query (GET reqs)
	  appmoddata,     %% the remainder of the path leading up to the querey
	  docroot,        %% where's the data
	  fullpath,       %% full path to yaws file
	  cont,		  %% Continuation for chunked multipart uploads
	  state,          %% State for use by users of the out/1 callback
	  pid,            %% pid of the yaws worker process
	  opaque,         %% useful to pass static data
	  appmod_prepath  %% path in front of: <appmod><appmoddata>
	 }).              


-record(http_request, {method,
		       path,
		       version}).

	    
-record(headers, {
	  connection,
	  accept,
	  host,
	  if_modified_since,
	  if_match,
	  if_none_match,
	  if_range,
	  if_unmodified_since,
	  range,
	  referer,
	  user_agent,
	  accept_ranges,
	  cookie = [],
	  keep_alive,
	  content_length,
	  content_type,
	  authorization,
	  other = []   %% misc other headers
	 }).




-record(url,
	{scheme,
	 host, 
	 port,            %% undefined means not set
	 path = [],
	 querypart = []}).

{'fraction_non_alphanumeric': 0.18414018414018413, 'fraction_numerical': 0.004158004158004158, 'mean_word_length': 1.7449062754686226, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, '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': '4399150', 'n_tokens_mistral': 1111, 'n_tokens_neox': 953, 'n_words': 314}