<commit_before>-- Copyright (C) 2006,2007 <NAME> <<EMAIL>>
-- Licensed under so called MIT license.

default_bin = {
	func_name = ".*",
	path = "^/bin",
	map_to = nil
}

default_usrbin = {
	func_name = ".*",
	path = "^/usr/bin",
	map_to = nil
}

default_usrlocalbin = {
	func_name = ".*",
	path = "^/usr/local/bin",
	map_to = nil
}

default_sbin = {
	func_name = ".*",
	path = "^/sbin",
	map_to = nil
}

default_usrsbin = {
	func_name = ".*",
	path = "^/usr/sbin",
	map_to = nil
}

default_home = {
	func_name = ".*",
	path = "^/home",
	map_to = nil
}

default_proc = {
	func_name = ".*",
	path = "^/proc",
	map_to = nil
}

default_tmp = {
	func_name = ".*",
	path = "^/tmp",
	map_to = nil
}

default_etc = {
	func_name = ".*",
	path = "^/etc",
	map_to = nil
}

default_scratchbox = {
	func_name = ".*",
	path = "^/scratchbox",
	map_to = nil
}

default_dev = {
	func_name = ".*",
	path = "^/dev",
	map_to = nil
}

autoconf = {
	func_name = ".*",
	path = "^/usr/share/autoconf.*",
	map_to = nil
}

automake = {
	func_name = ".*",
	path = "^/usr/share/automake.*",
	map_to = nil
}

aclocal = {
	func_name = ".*",
	path = "^/usr/share/aclocal.*",
	map_to = nil
}

intltool = {
	func_name = ".*",
	path = "^/usr/share/intltool.*",
	map_to = nil
}


hostgcc = {
	func_name = ".*",
	path = "^/host_usr",
	map_to = "="
}


-- pkgconfig

pkgconfig = {
	func_name = ".*",
	path = "^/usr/lib/pkgconfig.*",
	map_to = "="
}

-- don't map anything else from TARGETDIR

targetdir = {
	func_name = ".*",
	path = "^" .. target_root .. ".*",
	map_to = nil
}

-- don't map "/" path
actual_root = {
	func_name = ".*",
	path = "^/$",
	map_to = nil
}

-- catch all rule to map everything else to TARGETDIR/
default_rootdir = {
	func_name = ".*",
	path = "^/",
	map_to = "="
}


-- the actual chain, this is not actually exported
-- it's only defined in this file which gets loaded
-- first by main.lua so that default_chain is available
-- for the actual entry chains defined in the other
-- lua files
default_chain = {
	next_chain = nil,
	noentry = 1, -- never use this chain directly to start mapping
	binary = nil,
	rules = {
		autoconf,
		automake,
		aclocal,
		intltool,
		default_bin,
		default_usrbin,
		default_usrlocalbin,
		default_sbin,
		default_usrsbin,
		default_scratchbox,
		default_dev,
		default_home,
		default_proc,
		default_tmp,
		default_etc,
		hostgcc,
		pkgconfig,
		targetdir,
		actual_root,
		default_rootdir
	}
}

export_chains = { default_chain }
<commit_msg>Add mapping exclusion rule for /opt<commit_after>-- Copyright (C) 2006,2007 <NAME> <<EMAIL>>
-- Licensed under so called MIT license.

default_bin = {
	func_name = ".*",
	path = "^/bin",
	map_to = nil
}

default_usrbin = {
	func_name = ".*",
	path = "^/usr/bin",
	map_to = nil
}

default_usrlocalbin = {
	func_name = ".*",
	path = "^/usr/local/bin",
	map_to = nil
}

default_sbin = {
	func_name = ".*",
	path = "^/sbin",
	map_to = nil
}

default_usrsbin = {
	func_name = ".*",
	path = "^/usr/sbin",
	map_to = nil
}

default_home = {
	func_name = ".*",
	path = "^/home",
	map_to = nil
}

default_proc = {
	func_name = ".*",
	path = "^/proc",
	map_to = nil
}

default_tmp = {
	func_name = ".*",
	path = "^/tmp",
	map_to = nil
}

default_etc = {
	func_name = ".*",
	path = "^/etc",
	map_to = nil
}

default_scratchbox = {
	func_name = ".*",
	path = "^/scratchbox",
	map_to = nil
}

default_dev = {
	func_name = ".*",
	path = "^/dev",
	map_to = nil
}

default_opt = {
	func_name = ".*",
	path = "^/opt",
	map_to = nil
}

autoconf = {
	func_name = ".*",
	path = "^/usr/share/autoconf.*",
	map_to = nil
}

automake = {
	func_name = ".*",
	path = "^/usr/share/automake.*",
	map_to = nil
}

aclocal = {
	func_name = ".*",
	path = "^/usr/share/aclocal.*",
	map_to = nil
}

intltool = {
	func_name = ".*",
	path = "^/usr/share/intltool.*",
	map_to = nil
}


hostgcc = {
	func_name = ".*",
	path = "^/host_usr",
	map_to = "="
}


-- pkgconfig

pkgconfig = {
	func_name = ".*",
	path = "^/usr/lib/pkgconfig.*",
	map_to = "="
}

-- don't map anything else from TARGETDIR

targetdir = {
	func_name = ".*",
	path = "^" .. target_root .. ".*",
	map_to = nil
}

-- don't map "/" path
actual_root = {
	func_name = ".*",
	path = "^/$",
	map_to = nil
}

-- catch all rule to map everything else to TARGETDIR/
default_rootdir = {
	func_name = ".*",
	path = "^/",
	map_to = "="
}


-- the actual chain, this is not actually exported
-- it's only defined in this file which gets loaded
-- first by main.lua so that default_chain is available
-- for the actual entry chains defined in the other
-- lua files
default_chain = {
	next_chain = nil,
	noentry = 1, -- never use this chain directly to start mapping
	binary = nil,
	rules = {
		autoconf,
		automake,
		aclocal,
		intltool,
		default_bin,
		default_usrbin,
		default_usrlocalbin,
		default_sbin,
		default_usrsbin,
		default_scratchbox,
		default_dev,
		default_opt,
		default_home,
		default_proc,
		default_tmp,
		default_etc,
		hostgcc,
		pkgconfig,
		targetdir,
		actual_root,
		default_rootdir
	}
}

export_chains = { default_chain }

{'fraction_non_alphanumeric': 0.17857142857142858, 'fraction_numerical': 0.0035714285714285713, 'mean_word_length': 2.9976209357652657, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '7239615', 'n_tokens_mistral': 2213, 'n_tokens_neox': 2089, 'n_words': 452}