INNER CODE UNIT · Python
are_licenses_consistent
timschneeb/awesome-shizuku · scripts/check_links.py:118
def are_licenses_consistent(declared, actual):
# If None, GitHub likely failed to detect the license. Ignore this.
if actual is None:
return True
if declared is None:
return False
norm_declared = declared.replace(' ', '-')
if 'MODIFIED-' in norm_declared:
norm_declared = norm_declared.replace('MODIFIED-', '')
return actual.startswith(norm_declared)
github_token = get_github_token()
if not github_token:
print("Warning: GITHUB_TOKEN environment variable not set. Using unauthenticated requests, which have a lower rate limit.")