Benign arch Download

data/usr/bin/pkgkde-update-qt-copyright

Compiles a set of Python regex patternsRecursive directory traversal logic
SHA-2566b8bd70c13ac1e2fb51172b91305ff19fcd7fdfa24988d6d59ad9dff5670ff1b
MaleculeH₂(DbF₂)

Evidence

Compiles a set of Python regex patterns lines 1–20
⋯6 lines
7verbose = '--verbose' in sys.argv
8
9default_copyright = 'The Qt Company Ltd.'
10default_licenses = (
11 'BSD-3-clause',
12 'LGPL-3 or GPL-2',
13 'GPL-3 with Qt-1.0 exception',
14 'GFDL-NIV-1.3',
15)
16header_re = re.compile(r"SPDX-License-Identifier: (.*)")
17copyright_re = re.compile(
18 r"(?:Copyright|SPDX-FileCopyrightText):? " # "Copyright" word and optional colon
19 r"(?:\([Cc]\) )?" # Optional (C) symbol
20 r"(?P<min_year>\d{4})" # Singl …
Gmail consumer email domain suffix lines 30–32
30:5… re.compile('^Giuseppe D\'Angelo'): 'Giuseppe D\'Angelo <[email protected]>',
31 re.compile('^Governikus GmbH & Co. KG'): 'Governikus GmbH & Co. KG.',
32 re.compile('^Green Hills Software'): 'Green Hi …
English function-word token "for" lines 71–75
71
72 def add_file(self, authors, file):
73 for min_year, max_year, author in authors:
74 if author in self.min_years:
75 …
Calls os.walk for filesystem enumeration lines 141–146
141:15… _files(root_directory):
142 for dirpath, dirnames, filenames in os.walk(root_directory):
143 for filename in filenames:
144 full_path = os.path.join(dirpath, filename)
145 if full_path.startswith('./'):
146 full_path = full_ …
Python file opened for write or append lines 162–172
162:33… ight[end_pos:]
163
164 data = read_input(root_directory)
165
166 with open('debian/copyright', 'w') as output_file:
167 output_file.write(start_data)
168 write_output(data, output_file)
⋯4 lines

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.