<commit_before>import alpm

what = "/usr/bin/pacman"

alpm.initialize("/")
db = alpm.db_register('local')

lp = alpm.db_getpkgcache(db)

i = alpm.db_getpkgcache(db)
while i:
	pkg = alpm.void_to_PM_PKG(alpm.list_getdata(i))
	j = alpm.void_to_PM_LIST(alpm.pkg_getinfo(pkg, alpm.PKG_FILES))
	while j:
		if alpm.void_to_char(alpm.list_getdata(j)) == what[1:]:
			print alpm.void_to_char(alpm.pkg_getinfo(pkg, alpm.PKG_NAME))
		j = alpm.list_next(j)<commit_msg>python/alpm_qo.py: small cleanup<commit_after>import alpm

what = "/usr/bin/pacman"

alpm.initialize("/")
db = alpm.db_register('local')

i = alpm.db_getpkgcache(db)
while i:
	pkg = alpm.void_to_PM_PKG(alpm.list_getdata(i))
	j = alpm.void_to_PM_LIST(alpm.pkg_getinfo(pkg, alpm.PKG_FILES))
	while j:
		if alpm.void_to_char(alpm.list_getdata(j)) == what[1:]:
			print alpm.void_to_char(alpm.pkg_getinfo(pkg, alpm.PKG_NAME))
		j = alpm.list_next(j)
{'fraction_non_alphanumeric': 0.1564927857935627, 'fraction_numerical': 0.0022197558268590455, 'mean_word_length': 5.632352941176471, 'pattern_counts': {'":': 0, '<': 3, '<?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': '3901770', 'n_tokens_mistral': 433, 'n_tokens_neox': 419, 'n_words': 55}