generated from aboutcode-org/skeleton
-
-
Notifications
You must be signed in to change notification settings - Fork 2
Closed
Description
I am stemming some code files and I ran into this exception when processing this file:
ERROR: for scanner: stemmed_fingerprints: ERROR: Unknown error: Traceback (most recent call last): File "/opt/scancodeio/.venv/lib/python3.12/site-packages/scancode/interrupt.py", line 91, in interruptible return NO_ERROR, func(*(args or ()), **(kwargs or {})) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/scancodeio/.venv/lib/python3.12/site-packages/matchcode_toolkit/fingerprinting.py", line 262, in get_stemmed_file_fingerprint_hashes stemmed_content = get_stem_code(location=location) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/scancodeio/.venv/lib/python3.12/site-packages/matchcode_toolkit/stemming.py", line 159, in get_stem_code text = apply_mutation( ^^^^^^^^^^^^^^^ File "/opt/scancodeio/.venv/lib/python3.12/site-packages/matchcode_toolkit/stemming.py", line 125, in apply_mutation if not replacement and modified_lines[start_row].strip() == "": ~~~~~~~~~~~~~~^^^^^^^^^^^ IndexError: list index out of range
main.js contents:
const charSet="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890!@#$%^&*()_-+=";function generatePassword(r){let e="";for(let s=0;s<r;s++){let o=Math.floor(Math.random()*charSet.length),t=charSet[o];e+=t}return e}const passwordLength=parseInt(prompt("Enter the desired length of your password:")),password=generatePassword(passwordLength);alert(`Your random password is: ${password}`);
/*# sourceMappingURL=main.js.map */
Metadata
Metadata
Assignees
Labels
No labels