<commit_before>"""
Methods for parsing and writing rpm spec files 
"""
import re
import subprocess
import logging
import requireflags
import os

log = logging.getLogger('build')

# list of tags that are arrays
array_tags = [
  'SOURCE',
  'PATCH',
  'FILENAMES',
  'FILESTATES',
  'FILEMODES',
  'FILEUIDS',
  'FILEGIDS',
  'FILEMTIMES',
  'FILERDEVS',
  'FILEMD5S',
  'FILELINKTOS',
  'FILEFLAGS',
  'FILEGROUPNAME',
  'FILEVERIFYFLAGS',
  'PROVIDES',
  'REQUIRES',
  'REQUIREFLAGS',
  'REQUIRENAME',
  'REQUIREVERSION',
  'NOSOURCE',
  'NOPATCH',
  'CONFLICTFLAGS',
  'CONFLICTNAME',
  'CONFLICTVERSION',
  'EXCLUDEARCH',
  'EXCLUDEOS',
  'EXCLUSIVEARCH',
  'EXCLUSIVEOS',
]

def load(path):<commit_msg>Add some more arrays in rpm<commit_after>"""
Methods for parsing and writing rpm spec files 
"""
import re
import subprocess
import logging
import requireflags
import os

log = logging.getLogger('build')

# list of tags that are arrays
array_tags = [
  'SOURCE',
  'SOURCEPACKAGE'
  'SOURCEPCKGID'
  'SOURCERPM'
  'PATCH',
  'PATCHESFLAGS',
  'PATCHESNAME',
  'PATCHESVERSION',
  'FILENAMES',
  'FILESTATES',
  'FILEMODES',
  'FILEUIDS',
  'FILEGIDS',
  'FILEMTIMES',
  'FILERDEVS',
  'FILEINODES',
  'FILECAPS',
  'FILECLASS',
  'FILECOLORS',
  'FILECONTEXTS',
  'FILEDEPENDSN',
  'FILEDEPENDSX',
  'FILEDEVICES',
  'FILEDIGESTALGO',
  'FILEDIGESTS',
  'FILELANGS',
  'FILEPROVIDE',
  'FILEREQUIRE',
  'FILESIZES',
  'FILEUSERNAME',
  'FILEMD5S',
  'FILELINKTOS',
  'FILEFLAGS',
  'FILEGROUPNAME',
  'FILEVERIFYFLAGS',
  'PROVIDES',
  'REQUIRES',
  'REQUIREFLAGS',
  'REQUIRENAME',
  'REQUIREVERSION',
  'NOSOURCE',
  'NOPATCH',
  'CONFLICTS',
  'CONFLICTFLAGS',
  'CONFLICTNAME',
  'CONFLICTVERSION',
  'EXCLUDEARCH',
  'EXCLUDEOS',
  'EXCLUSIVEARCH',
  'EXCLUSIVEOS',
]

def load(path):
{'fraction_non_alphanumeric': 0.15328874024526198, 'fraction_numerical': 0.0011148272017837235, 'mean_word_length': 4.609375, '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': '451703', 'n_tokens_mistral': 750, 'n_tokens_neox': 738, 'n_words': 142}