Greg647465374's picture
shorten the files
41c095f
{
"ast": {
"items": [
{
"use": {
"tree": {
"path": {
"ident": "dioxus",
"tree": {
"group": [
{
"path": {
"ident": "html",
"tree": {
"ident": "HasFileData"
}
}
},
{
"path": {
"ident": "prelude",
"tree": "*"
}
}
]
}
}
}
}
},
{
"use": {
"tree": {
"path": {
"ident": "gloo_timers",
"tree": {
"path": {
"ident": "future",
"tree": {
"ident": "TimeoutFuture"
}
}
}
}
}
}
},
{
"use": {
"tree": {
"path": {
"ident": "std",
"tree": {
"path": {
"ident": "sync",
"tree": {
"ident": "Arc"
}
}
}
}
}
}
},
{
"use": {
"tree": {
"path": {
"ident": "crate",
"tree": {
"path": {
"ident": "extractor",
"tree": {
"path": {
"ident": "styles",
"tree": {
"ident": "STYLE"
}
}
}
}
}
}
}
}
},
{
"use": {
"tree": {
"path": {
"ident": "dioxus",
"tree": {
"path": {
"ident": "html",
"tree": {
"ident": "FileEngine"
}
}
}
}
}
}
},
{
"use": {
"tree": {
"path": {
"ident": "crate",
"tree": {
"path": {
"ident": "extractor",
"tree": {
"path": {
"ident": "types",
"tree": {
"ident": "UploadedFile"
}
}
}
}
}
}
}
}
},
{
"use": {
"tree": {
"path": {
"ident": "crate",
"tree": {
"path": {
"ident": "extractor",
"tree": {
"path": {
"ident": "types",
"tree": {
"ident": "DocumentSummary"
}
}
}
}
}
}
}
}
},
{
"use": {
"tree": {
"path": {
"ident": "crate",
"tree": {
"path": {
"ident": "extractor",
"tree": {
"path": {
"ident": "types",
"tree": {
"group": [
{
"ident": "AnnotatedWord"
},
{
"ident": "CodeSnippet"
},
{
"ident": "ProcessingFile"
}
]
}
}
}
}
}
}
}
}
},
{
"fn": {
"async": true,
"ident": "read_files",
"inputs": [
{
"typed": {
"pat": {
"ident": {
"ident": "file_engine"
}
},
"ty": {
"path": {
"segments": [
{
"arguments": {
"angle_bracketed": {
"args": [
{
"type": {
"trait_object": {
"bounds": [
{
"trait": {
"path": {
"segments": [
{
"ident": "FileEngine"
}
]
}
}
}
],
"dyn": true
}
}
}
]
}
},
"ident": "Arc"
}
]
}
}
}
},
{
"typed": {
"pat": {
"ident": {
"ident": "currently_processing_file"
}
},
"ty": {
"reference": {
"elem": {
"path": {
"segments": [
{
"arguments": {
"angle_bracketed": {
"args": [
{
"type": {
"path": {
"segments": [
{
"arguments": {
"angle_bracketed": {
"args": [
{
"type": {
"path": {
"segments": [
{
"ident": "ProcessingFile"
}
]
}
}
}
]
}
},
"ident": "Option"
}
]
}
}
}
]
}
},
"ident": "Signal"
}
]
}
},
"mut": true
}
}
}
},
{
"typed": {
"pat": {
"ident": {
"ident": "files_uploaded"
}
},
"ty": {
"reference": {
"elem": {
"path": {
"segments": [
{
"arguments": {
"angle_bracketed": {
"args": [
{
"type": {
"path": {
"segments": [
{
"arguments": {
"angle_bracketed": {
"args": [
{
"type": {
"path": {
"segments": [
{
"ident": "UploadedFile"
}
]
}
}
}
]
}
},
"ident": "Vec"
}
]
}
}
}
]
}
},
"ident": "Signal"
}
]
}
},
"mut": true
}
}
}
}
],
"output": null,
"stmts": [
{
"let": {
"init": {
"expr": {
"method_call": {
"args": [],
"method": "files",
"receiver": {
"path": {
"segments": [
{
"ident": "file_engine"
}
]
}
}
}
}
},
"pat": {
"ident": {
"ident": "files"
}
}
}
},
{
"expr": [
{
"for_loop": {
"body": [
{
"expr": [
{
"method_call": {
"args": [
{
"call": {
"args": [
{
"struct": {
"dot2_token": true,
"fields": [
{
"colon_token": true,
"expr": {
"method_call": {
"args": [],
"method": "clone",
"receiver": {
"path": {
"segments": [
{
"ident": "file_name"
}
]
}
}
}
},
"ident": "name"
}
],
"path": {
"segments": [
{
"ident": "ProcessingFile"
}
]
},
"rest": {
"call": {
"args": [],
"func": {
"path": {
"segments": [
{
"ident": "Default"
},
{
"ident": "default"
}
]
}
}
}
}
}
}
],
"func": {
"path": {
"segments": [
{
"ident": "Some"
}
]
}
}
}
}
],
"method": "set",
"receiver": {
"path": {
"segments": [
{
"ident": "currently_processing_file"
}
]
}
}
}
},
true
]
},
{
"expr": [
{
"await": {
"base": {
"call": {
"args": [
{
"lit": {
"int": "1"
}
}
],
"func": {
"path": {
"segments": [
{
"ident": "TimeoutFuture"
},
{
"ident": "new"
}
]
}
}
}
}
}
},
true
]
},
{
"expr": [
{
"if": {
"cond": {
"let": {
"expr": {
"await": {
"base": {
"method_call": {
"args": [
{
"path": {
"segments": [
{
"ident": "file_name"
}
]
}
}
],
"method": "read_file_to_string",
"receiver": {
"path": {
"segments": [
{
"ident": "file_engine"
}
]
}
}
}
}
}
},
"pat": {
"tuple_struct": {
"elems": [
{
"ident": {
"ident": "contents"
}
}
],
"path": {
"segments": [
{
"ident": "Some"
}
]
}
}
}
}
},
"then_branch": [
{
"let": {
"init": {
"expr": {
"method_call": {
"args": [],
"method": "collect",
"receiver": {
"method_call": {
"args": [],
"method": "lines",
"receiver": {
"path": {
"segments": [
{
"ident": "contents"
}
]
}
}
}
}
}
}
},
"pat": {
"type": {
"pat": {
"ident": {
"ident": "lines"
}
},
"ty": {
"path": {
"segments": [
{
"arguments": {
"angle_bracketed": {
"args": [
{
"type": {
"reference": {
"elem": {
"path": {
"segments": [
{
"ident": "str"
}
]
}
}
}
}
}
]
}
},
"ident": "Vec"
}
]
}
}
}
}
}
},
{
"let": {
"init": {
"expr": {
"method_call": {
"args": [],
"method": "len",
"receiver": {
"path": {
"segments": [
{
"ident": "lines"
}
]
}
}
}
}
},
"pat": {
"ident": {
"ident": "total_lines"
}
}
}
},
{
"expr": [
{
"if": {
"cond": {
"let": {
"expr": {
"method_call": {
"args": [],
"method": "as_mut",
"receiver": {
"method_call": {
"args": [],
"method": "write",
"receiver": {
"path": {
"segments": [
{
"ident": "currently_processing_file"
}
]
}
}
}
}
}
},
"pat": {
"tuple_struct": {
"elems": [
{
"ident": {
"ident": "p"
}
}
],
"path": {
"segments": [
{
"ident": "Some"
}
]
}
}
}
}
},
"then_branch": [
{
"expr": [
{
"assign": {
"left": {
"field": {
"base": {
"path": {
"segments": [
{
"ident": "p"
}
]
}
},
"ident": "total_lines"
}
},
"right": {
"path": {
"segments": [
{
"ident": "total_lines"
}
]
}
}
}
},
true
]
}
]
}
},
false
]
},
{
"let": {
"init": {
"expr": {
"method_call": {
"args": [],
"method": "to_vec",
"receiver": {
"array": {
"elems": []
}
}
}
}
},
"pat": {
"type": {
"pat": {
"ident": {
"ident": "snippet"
}
},
"ty": {
"path": {
"segments": [
{
"arguments": {
"angle_bracketed": {
"args": [
{
"type": {
"path": {
"segments": [
{
"ident": "CodeSnippet"
}
]
}
}
}
]
}
},
"ident": "Vec"
}
]
}
}
}
}
}
},
{
"let": {
"init": {
"expr": {
"method_call": {
"args": [],
"method": "to_vec",
"receiver": {
"array": {
"elems": []
}
}
}
}
},
"pat": {
"type": {
"pat": {
"ident": {
"ident": "code_annotations"
}
},
"ty": {
"path": {
"segments": [
{
"arguments": {
"angle_bracketed": {
"args": [
{
"type": {
"path": {
"segments": [
{
"ident": "AnnotatedWord"
}
]
}
}
}
]
}
},
"ident": "Vec"
}
]
}
}
}
}
}
},
{
"expr": [
{
"for_loop": {
"body": [
{
"let": {
"init": {
"expr": {
"method_call": {
"args": [],
"method": "collect",
"receiver": {
"method_call": {
"args": [],
"method": "split_whitespace",
"receiver": {
"path": {
"segments": [
{
"ident": "line"
}
]
}
}
}
},
"turbofish": {
"args": [
{
"type": {
"path": {
"segments": [
{
"arguments": {
"angle_bracketed": {
"args": [
{
"type": "_"
}
]
}
},
"ident": "Vec"
}
]
}
}
}
],
"colon2_token": true
}
}
}
},
"pat": {
"ident": {
"ident": "words"
}
}
}
},
{
"expr": [
{
"if": {
"cond": {
"let": {
"expr": {
"method_call": {
"args": [],
"method": "as_mut",
"receiver": {
"method_call": {
"args": [],
"method": "write",
"receiver": {
"path": {
"segments": [
{
"ident": "currently_processing_file"
}
]
}
}
}
}
}
},
"pat": {
"tuple_struct": {
"elems": [
{
"ident": {
"ident": "p"
}
}
],
"path": {
"segments": [
{
"ident": "Some"
}
]
}
}
}
}
},
"then_branch": [
{
"expr": [
{
"method_call": {
"args": [
{
"path": {
"segments": [
{
"ident": "line"
}
]
}
}
],
"method": "push_str",
"receiver": {
"field": {
"base": {
"path": {
"segments": [
{
"ident": "p"
}
]
}
},
"ident": "current_content"
}
}
}
},
true
]
},
{
"expr": [
{
"method_call": {
"args": [
{
"lit": {
"char": "'\\n'"
}
}
],
"method": "push",
"receiver": {
"field": {
"base": {
"path": {
"segments": [
{
"ident": "p"
}
]
}
},
"ident": "current_content"
}
}
}
},
true
]
},
{
"expr": [
{
"assign": {
"left": {
"field": {
"base": {
"path": {
"segments": [
{
"ident": "p"
}
]
}
},
"ident": "progress"
}
},
"right": {
"binary": {
"left": {
"path": {
"segments": [
{
"ident": "i"
}
]
}
},
"op": "+",
"right": {
"lit": {
"int": "1"
}
}
}
}
}
},
true
]
}
]
}
},
false
]
},
{
"expr": [
{
"if": {
"cond": {
"binary": {
"left": {
"binary": {
"left": {
"binary": {
"left": {
"path": {
"segments": [
{
"ident": "i"
}
]
}
},
"op": "%",
"right": {
"lit": {
"int": "10"
}
}
}
},
"op": "==",
"right": {
"lit": {
"int": "0"
}
}
}
},
"op": "||",
"right": {
"binary": {
"left": {
"path": {
"segments": [
{
"ident": "i"
}
]
}
},
"op": "==",
"right": {
"binary": {
"left": {
"path": {
"segments": [
{
"ident": "total_lines"
}
]
}
},
"op": "-",
"right": {
"lit": {
"int": "1"
}
}
}
}
}
}
}
},
"then_branch": [
{
"expr": [
{
"await": {
"base": {
"call": {
"args": [
{
"lit": {
"int": "1"
}
}
],
"func": {
"path": {
"segments": [
{
"ident": "TimeoutFuture"
},
{
"ident": "new"
}
]
}
}
}
}
}
},
true
]
}
]
}
},
false
]
}
],
"expr": {
"method_call": {
"args": [],
"method": "enumerate",
"receiver": {
"method_call": {
"args": [],
"method": "iter",
"receiver": {
"path": {
"segments": [
{
"ident": "lines"
}
]
}
}
}
}
}
},
"pat": {
"tuple": {
"elems": [
{
"ident": {
"ident": "i"
}
},
{
"ident": {
"ident": "line"
}
}
]
}
}
}
},
false
]
},
{
"let": {
"init": {
"expr": {
"struct": {
"fields": [
{
"colon_token": true,
"expr": {
"lit": {
"int": "1"
}
},
"ident": "total_turns"
},
{
"colon_token": true,
"expr": {
"lit": {
"int": "0"
}
},
"ident": "total_code_snippets"
},
{
"colon_token": true,
"expr": {
"lit": {
"int": "0"
}
},
"ident": "total_tokens"
},
{
"colon_token": true,
"expr": {
"method_call": {
"args": [],
"method": "to_vec",
"receiver": {
"array": {
"elems": []
}
}
}
},
"ident": "content_hashes"
},
{
"colon_token": true,
"expr": {
"method_call": {
"args": [],
"method": "to_vec",
"receiver": {
"array": {
"elems": []
}
}
}
},
"ident": "languages_found"
}
],
"path": {
"segments": [
{
"ident": "DocumentSummary"
}
]
}
}
}
},
"pat": {
"ident": {
"ident": "summary"
}
}
}
},
{
"expr": [
{
"if": {
"cond": {
"let": {
"expr": {
"method_call": {
"args": [],
"method": "take",
"receiver": {
"path": {
"segments": [
{
"ident": "currently_processing_file"
}
]
}
}
}
},
"pat": {
"tuple_struct": {
"elems": [
{
"ident": {
"ident": "p_file",
"mut": true
}
}
],
"path": {
"segments": [
{
"ident": "Some"
}
]
}
}
}
}
},
"then_branch": [
{
"expr": [
{
"assign": {
"left": {
"field": {
"base": {
"path": {
"segments": [
{
"ident": "p_file"
}
]
}
},
"ident": "summary"
}
},
"right": {
"call": {
"args": [
{
"path": {
"segments": [
{
"ident": "summary"
}
]
}
}
],
"func": {
"path": {
"segments": [
{
"ident": "Some"
}
]
}
}
}
}
}
},
true
]
},
{
"let": {
"init": {
"expr": {
"lit": {
"str": "\"FIXME\""
}
}
},
"pat": {
"ident": {
"ident": "generated_program"
}
}
}
},
{
"expr": [
{
"method_call": {
"args": [
{
"struct": {
"fields": [
{
"colon_token": true,
"expr": {
"method_call": {
"args": [],
"method": "clone",
"receiver": {
"path": {
"segments": [
{
"ident": "file_name"
}
]
}
}
}
},
"ident": "name"
},
{
"colon_token": true,
"expr": {
"method_call": {
"args": [],
"method": "clone",
"receiver": {
"path": {
"segments": [
{
"ident": "contents"
}
]
}
}
}
},
"ident": "contents"
},
{
"colon_token": true,
"expr": {
"method_call": {
"args": [],
"method": "to_string",
"receiver": {
"path": {
"segments": [
{
"ident": "generated_program"
}
]
}
}
}
},
"ident": "generated_program"
},
{
"colon_token": true,
"expr": {
"field": {
"base": {
"path": {
"segments": [
{
"ident": "p_file"
}
]
}
},
"ident": "summary"
}
},
"ident": "summary"
},
{
"colon_token": true,
"expr": {
"call": {
"args": [
{
"method_call": {
"args": [],
"method": "to_string",
"receiver": {
"lit": {
"str": "\"FIXME\""
}
}
}
}
],
"func": {
"path": {
"segments": [
{
"ident": "Some"
}
]
}
}
}
},
"ident": "zip_url"
}
],
"path": {
"segments": [
{
"ident": "UploadedFile"
}
]
}
}
}
],
"method": "push",
"receiver": {
"method_call": {
"args": [],
"method": "write",
"receiver": {
"path": {
"segments": [
{
"ident": "files_uploaded"
}
]
}
}
}
}
}
},
true
]
}
]
}
},
false
]
}
]
}
},
false
]
}
],
"expr": {
"reference": {
"expr": {
"path": {
"segments": [
{
"ident": "files"
}
]
}
}
}
},
"pat": {
"ident": {
"ident": "file_name"
}
}
}
},
false
]
}
]
}
},
{
"fn": {
"async": true,
"ident": "upload_files",
"inputs": [
{
"typed": {
"pat": {
"ident": {
"ident": "evt"
}
},
"ty": {
"path": {
"segments": [
{
"ident": "FormEvent"
}
]
}
}
}
},
{
"typed": {
"pat": {
"ident": {
"ident": "currently_processing_file"
}
},
"ty": {
"reference": {
"elem": {
"path": {
"segments": [
{
"arguments": {
"angle_bracketed": {
"args": [
{
"type": {
"path": {
"segments": [
{
"arguments": {
"angle_bracketed": {
"args": [
{
"type": {
"path": {
"segments": [
{
"ident": "ProcessingFile"
}
]
}
}
}
]
}
},
"ident": "Option"
}
]
}
}
}
]
}
},
"ident": "Signal"
}
]
}
},
"mut": true
}
}
}
},
{
"typed": {
"pat": {
"ident": {
"ident": "files_uploaded"
}
},
"ty": {
"reference": {
"elem": {
"path": {
"segments": [
{
"arguments": {
"angle_bracketed": {
"args": [
{
"type": {
"path": {
"segments": [
{
"arguments": {
"angle_bracketed": {
"args": [
{
"type": {
"path": {
"segments": [
{
"ident": "UploadedFile"
}
]
}
}
}
]
}
},
"ident": "Vec"
}
]
}
}
}
]
}
},
"ident": "Signal"
}
]
}
},
"mut": true
}
}
}
}
],
"output": null,
"stmts": [
{
"expr": [
{
"if": {
"cond": {
"let": {
"expr": {
"method_call": {
"args": [],
"method": "files",
"receiver": {
"path": {
"segments": [
{
"ident": "evt"
}
]
}
}
}
},
"pat": {
"tuple_struct": {
"elems": [
{
"ident": {
"ident": "file_engine"
}
}
],
"path": {
"segments": [
{
"ident": "Some"
}
]
}
}
}
}
},
"then_branch": [
{
"expr": [
{
"await": {
"base": {
"call": {
"args": [
{
"path": {
"segments": [
{
"ident": "file_engine"
}
]
}
},
{
"path": {
"segments": [
{
"ident": "currently_processing_file"
}
]
}
},
{
"path": {
"segments": [
{
"ident": "files_uploaded"
}
]
}
}
],
"func": {
"path": {
"segments": [
{
"ident": "read_files"
}
]
}
}
}
}
}
},
true
]
}
]
}
},
false
]
}
]
}
},
{
"fn": {
"ident": "EmbeddingApp",
"inputs": [],
"output": {
"path": {
"segments": [
{
"ident": "Element"
}
]
}
},
"stmts": [
{
"let": {
"init": {
"expr": {
"call": {
"args": [
{
"closure": {
"body": {
"lit": {
"bool": false
}
},
"inputs": [],
"output": null
}
}
],
"func": {
"path": {
"segments": [
{
"ident": "use_signal"
}
]
}
}
}
}
},
"pat": {
"ident": {
"ident": "enable_directory_upload",
"mut": true
}
}
}
},
{
"let": {
"init": {
"expr": {
"call": {
"args": [
{
"closure": {
"body": {
"cast": {
"expr": {
"call": {
"args": [],
"func": {
"path": {
"segments": [
{
"ident": "Vec"
},
{
"ident": "new"
}
]
}
}
}
},
"ty": {
"path": {
"segments": [
{
"arguments": {
"angle_bracketed": {
"args": [
{
"type": {
"path": {
"segments": [
{
"ident": "UploadedFile"
}
]
}
}
}
]
}
},
"ident": "Vec"
}
]
}
}
}
},
"inputs": [],
"output": null
}
}
],
"func": {
"path": {
"segments": [
{
"ident": "use_signal"
}
]
}
}
}
}
},
"pat": {
"ident": {
"ident": "files_uploaded",
"mut": true
}
}
}
},
{
"let": {
"init": {
"expr": {
"call": {
"args": [
{
"closure": {
"body": {
"lit": {
"bool": false
}
},
"inputs": [],
"output": null
}
}
],
"func": {
"path": {
"segments": [
{
"ident": "use_signal"
}
]
}
}
}
}
},
"pat": {
"ident": {
"ident": "hovered",
"mut": true
}
}
}
},
{
"let": {
"init": {
"expr": {
"call": {
"args": [
{
"closure": {
"body": {
"path": {
"segments": [
{
"ident": "None"
}
]
}
},
"inputs": [],
"output": null
}
}
],
"func": {
"path": {
"segments": [
{
"arguments": {
"angle_bracketed": {
"args": [
{
"type": {
"path": {
"segments": [
{
"arguments": {
"angle_bracketed": {
"args": [
{
"type": {
"path": {
"segments": [
{
"ident": "ProcessingFile"
}
]
}
}
}
]
}
},
"ident": "Option"
}
]
}
}
}
],
"colon2_token": true
}
},
"ident": "use_signal"
}
]
}
}
}
}
},
"pat": {
"ident": {
"ident": "currently_processing_file",
"mut": true
}
}
}
},
{
"let": {
"init": {
"expr": {
"call": {
"args": [
{
"closure": {
"body": {
"lit": {
"bool": false
}
},
"inputs": [],
"output": null
}
}
],
"func": {
"path": {
"segments": [
{
"ident": "use_signal"
}
]
}
}
}
}
},
"pat": {
"ident": {
"ident": "enable_wikidata",
"mut": true
}
}
}
},
{
"let": {
"init": {
"expr": {
"call": {
"args": [
{
"closure": {
"body": {
"lit": {
"bool": false
}
},
"inputs": [],
"output": null
}
}
],
"func": {
"path": {
"segments": [
{
"ident": "use_signal"
}
]
}
}
}
}
},
"pat": {
"ident": {
"ident": "enable_sentiment",
"mut": true
}
}
}
},
{
"let": {
"init": {
"expr": {
"call": {
"args": [
{
"closure": {
"body": {
"lit": {
"bool": false
}
},
"inputs": [],
"output": null
}
}
],
"func": {
"path": {
"segments": [
{
"ident": "use_signal"
}
]
}
}
}
}
},
"pat": {
"ident": {
"ident": "enable_embedding",
"mut": true
}
}
}
},
{
"macro": {
"delimiter": "brace",
"path": {
"segments": [
{
"ident": "rsx"
}
]
},
"tokens": [
{
"ident": "style"
},
{
"group": {
"delimiter": "brace",
"stream": [
{
"lit": "\"{STYLE}\""
}
]
}
},
{
"ident": "h1"
},
{
"group": {
"delimiter": "brace",
"stream": [
{
"lit": "\"Semantic Hyperspace File Upload\""
}
]
}
},
{
"ident": "p"
},
{
"group": {
"delimiter": "brace",
"stream": [
{
"lit": "\"Upload a .md file (e.g., exported Grok chat) to extract and analyze code snippets\""
}
]
}
},
{
"ident": "button"
},
{
"group": {
"delimiter": "brace",
"stream": [
{
"ident": "onclick"
},
{
"punct": {
"op": ":",
"spacing": "alone"
}
},
{
"ident": "move"
},
{
"punct": {
"op": "|",
"spacing": "alone"
}
},
{
"ident": "_"
},
{
"punct": {
"op": "|",
"spacing": "alone"
}
},
{
"ident": "files_uploaded"
},
{
"punct": {
"op": ".",
"spacing": "alone"
}
},
{
"ident": "write"
},
{
"group": {
"delimiter": "parenthesis",
"stream": []
}
},
{
"punct": {
"op": ".",
"spacing": "alone"
}
},
{
"ident": "clear"
},
{
"group": {
"delimiter": "parenthesis",
"stream": []
}
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"lit": "\"Clear files\""
}
]
}
},
{
"ident": "div"
},
{
"group": {
"delimiter": "brace",
"stream": [
{
"ident": "h3"
},
{
"group": {
"delimiter": "brace",
"stream": [
{
"lit": "\"Processing Pipeline\""
}
]
}
},
{
"ident": "div"
},
{
"group": {
"delimiter": "brace",
"stream": [
{
"ident": "label"
},
{
"group": {
"delimiter": "brace",
"stream": [
{
"ident": "r#for"
},
{
"punct": {
"op": ":",
"spacing": "alone"
}
},
{
"lit": "\"wikidata\""
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"lit": "\"Enable Wikidata Annotation (FIXME not working yet)\""
}
]
}
},
{
"ident": "input"
},
{
"group": {
"delimiter": "brace",
"stream": [
{
"ident": "r#type"
},
{
"punct": {
"op": ":",
"spacing": "alone"
}
},
{
"lit": "\"checkbox\""
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"ident": "id"
},
{
"punct": {
"op": ":",
"spacing": "alone"
}
},
{
"lit": "\"wikidata\""
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"ident": "checked"
},
{
"punct": {
"op": ":",
"spacing": "alone"
}
},
{
"ident": "enable_wikidata"
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"ident": "oninput"
},
{
"punct": {
"op": ":",
"spacing": "alone"
}
},
{
"ident": "move"
},
{
"punct": {
"op": "|",
"spacing": "alone"
}
},
{
"ident": "evt"
},
{
"punct": {
"op": "|",
"spacing": "alone"
}
},
{
"ident": "enable_wikidata"
},
{
"punct": {
"op": ".",
"spacing": "alone"
}
},
{
"ident": "set"
},
{
"group": {
"delimiter": "parenthesis",
"stream": [
{
"ident": "evt"
},
{
"punct": {
"op": ".",
"spacing": "alone"
}
},
{
"ident": "checked"
},
{
"group": {
"delimiter": "parenthesis",
"stream": []
}
}
]
}
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
}
]
}
}
]
}
},
{
"ident": "div"
},
{
"group": {
"delimiter": "brace",
"stream": [
{
"ident": "label"
},
{
"group": {
"delimiter": "brace",
"stream": [
{
"ident": "r#for"
},
{
"punct": {
"op": ":",
"spacing": "alone"
}
},
{
"lit": "\"sentiment\""
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"lit": "\"Enable Sentiment Analysis (FIXME not working yet)\""
}
]
}
},
{
"ident": "input"
},
{
"group": {
"delimiter": "brace",
"stream": [
{
"ident": "r#type"
},
{
"punct": {
"op": ":",
"spacing": "alone"
}
},
{
"lit": "\"checkbox\""
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"ident": "id"
},
{
"punct": {
"op": ":",
"spacing": "alone"
}
},
{
"lit": "\"sentiment\""
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"ident": "checked"
},
{
"punct": {
"op": ":",
"spacing": "alone"
}
},
{
"ident": "enable_sentiment"
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"ident": "oninput"
},
{
"punct": {
"op": ":",
"spacing": "alone"
}
},
{
"ident": "move"
},
{
"punct": {
"op": "|",
"spacing": "alone"
}
},
{
"ident": "evt"
},
{
"punct": {
"op": "|",
"spacing": "alone"
}
},
{
"ident": "enable_sentiment"
},
{
"punct": {
"op": ".",
"spacing": "alone"
}
},
{
"ident": "set"
},
{
"group": {
"delimiter": "parenthesis",
"stream": [
{
"ident": "evt"
},
{
"punct": {
"op": ".",
"spacing": "alone"
}
},
{
"ident": "checked"
},
{
"group": {
"delimiter": "parenthesis",
"stream": []
}
}
]
}
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
}
]
}
}
]
}
},
{
"ident": "div"
},
{
"group": {
"delimiter": "brace",
"stream": [
{
"ident": "label"
},
{
"group": {
"delimiter": "brace",
"stream": [
{
"ident": "r#for"
},
{
"punct": {
"op": ":",
"spacing": "alone"
}
},
{
"lit": "\"embedding\""
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"lit": "\"Enable BERT Embedding (FIXME not working yet)\""
}
]
}
},
{
"ident": "input"
},
{
"group": {
"delimiter": "brace",
"stream": [
{
"ident": "r#type"
},
{
"punct": {
"op": ":",
"spacing": "alone"
}
},
{
"lit": "\"checkbox\""
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"ident": "id"
},
{
"punct": {
"op": ":",
"spacing": "alone"
}
},
{
"lit": "\"embedding\""
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"ident": "checked"
},
{
"punct": {
"op": ":",
"spacing": "alone"
}
},
{
"ident": "enable_embedding"
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"ident": "oninput"
},
{
"punct": {
"op": ":",
"spacing": "alone"
}
},
{
"ident": "move"
},
{
"punct": {
"op": "|",
"spacing": "alone"
}
},
{
"ident": "evt"
},
{
"punct": {
"op": "|",
"spacing": "alone"
}
},
{
"ident": "enable_embedding"
},
{
"punct": {
"op": ".",
"spacing": "alone"
}
},
{
"ident": "set"
},
{
"group": {
"delimiter": "parenthesis",
"stream": [
{
"ident": "evt"
},
{
"punct": {
"op": ".",
"spacing": "alone"
}
},
{
"ident": "checked"
},
{
"group": {
"delimiter": "parenthesis",
"stream": []
}
}
]
}
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
}
]
}
}
]
}
}
]
}
},
{
"ident": "div"
},
{
"group": {
"delimiter": "brace",
"stream": [
{
"ident": "label"
},
{
"group": {
"delimiter": "brace",
"stream": [
{
"ident": "r#for"
},
{
"punct": {
"op": ":",
"spacing": "alone"
}
},
{
"lit": "\"directory-upload\""
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"lit": "\"Enable directory upload\""
}
]
}
},
{
"ident": "input"
},
{
"group": {
"delimiter": "brace",
"stream": [
{
"ident": "r#type"
},
{
"punct": {
"op": ":",
"spacing": "alone"
}
},
{
"lit": "\"checkbox\""
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"ident": "id"
},
{
"punct": {
"op": ":",
"spacing": "alone"
}
},
{
"lit": "\"directory-upload\""
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"ident": "checked"
},
{
"punct": {
"op": ":",
"spacing": "alone"
}
},
{
"ident": "enable_directory_upload"
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"ident": "oninput"
},
{
"punct": {
"op": ":",
"spacing": "alone"
}
},
{
"ident": "move"
},
{
"punct": {
"op": "|",
"spacing": "alone"
}
},
{
"ident": "evt"
},
{
"punct": {
"op": "|",
"spacing": "alone"
}
},
{
"ident": "enable_directory_upload"
},
{
"punct": {
"op": ".",
"spacing": "alone"
}
},
{
"ident": "set"
},
{
"group": {
"delimiter": "parenthesis",
"stream": [
{
"ident": "evt"
},
{
"punct": {
"op": ".",
"spacing": "alone"
}
},
{
"ident": "checked"
},
{
"group": {
"delimiter": "parenthesis",
"stream": []
}
}
]
}
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
}
]
}
}
]
}
},
{
"ident": "div"
},
{
"group": {
"delimiter": "brace",
"stream": [
{
"ident": "label"
},
{
"group": {
"delimiter": "brace",
"stream": [
{
"ident": "r#for"
},
{
"punct": {
"op": ":",
"spacing": "alone"
}
},
{
"lit": "\"textreader\""
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"lit": "\"Upload markdown or text files\""
}
]
}
},
{
"ident": "input"
},
{
"group": {
"delimiter": "brace",
"stream": [
{
"ident": "r#type"
},
{
"punct": {
"op": ":",
"spacing": "alone"
}
},
{
"lit": "\"file\""
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"ident": "accept"
},
{
"punct": {
"op": ":",
"spacing": "alone"
}
},
{
"lit": "\".md,.txt\""
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"ident": "multiple"
},
{
"punct": {
"op": ":",
"spacing": "alone"
}
},
{
"ident": "true"
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"ident": "name"
},
{
"punct": {
"op": ":",
"spacing": "alone"
}
},
{
"lit": "\"textreader\""
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"ident": "directory"
},
{
"punct": {
"op": ":",
"spacing": "alone"
}
},
{
"ident": "enable_directory_upload"
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"ident": "onchange"
},
{
"punct": {
"op": ":",
"spacing": "alone"
}
},
{
"ident": "move"
},
{
"punct": {
"op": "|",
"spacing": "alone"
}
},
{
"ident": "evt"
},
{
"punct": {
"op": "|",
"spacing": "alone"
}
},
{
"group": {
"delimiter": "brace",
"stream": [
{
"ident": "let"
},
{
"ident": "mut"
},
{
"ident": "currently_processing_file"
},
{
"punct": {
"op": "=",
"spacing": "alone"
}
},
{
"ident": "currently_processing_file"
},
{
"punct": {
"op": ".",
"spacing": "alone"
}
},
{
"ident": "clone"
},
{
"group": {
"delimiter": "parenthesis",
"stream": []
}
},
{
"punct": {
"op": ";",
"spacing": "alone"
}
},
{
"ident": "let"
},
{
"ident": "mut"
},
{
"ident": "files_uploaded"
},
{
"punct": {
"op": "=",
"spacing": "alone"
}
},
{
"ident": "files_uploaded"
},
{
"punct": {
"op": ".",
"spacing": "alone"
}
},
{
"ident": "clone"
},
{
"group": {
"delimiter": "parenthesis",
"stream": []
}
},
{
"punct": {
"op": ";",
"spacing": "alone"
}
},
{
"ident": "spawn"
},
{
"group": {
"delimiter": "parenthesis",
"stream": [
{
"ident": "async"
},
{
"ident": "move"
},
{
"group": {
"delimiter": "brace",
"stream": [
{
"ident": "upload_files"
},
{
"group": {
"delimiter": "parenthesis",
"stream": [
{
"ident": "evt"
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"punct": {
"op": "&",
"spacing": "alone"
}
},
{
"ident": "mut"
},
{
"ident": "currently_processing_file"
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"punct": {
"op": "&",
"spacing": "alone"
}
},
{
"ident": "mut"
},
{
"ident": "files_uploaded"
}
]
}
},
{
"punct": {
"op": ".",
"spacing": "alone"
}
},
{
"ident": "await"
},
{
"punct": {
"op": ";",
"spacing": "alone"
}
}
]
}
}
]
}
},
{
"punct": {
"op": ";",
"spacing": "alone"
}
}
]
}
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
}
]
}
}
]
}
},
{
"ident": "div"
},
{
"group": {
"delimiter": "brace",
"stream": [
{
"ident": "id"
},
{
"punct": {
"op": ":",
"spacing": "alone"
}
},
{
"lit": "\"drop-zone\""
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"ident": "background_color"
},
{
"punct": {
"op": ":",
"spacing": "alone"
}
},
{
"ident": "if"
},
{
"ident": "hovered"
},
{
"group": {
"delimiter": "parenthesis",
"stream": []
}
},
{
"group": {
"delimiter": "brace",
"stream": [
{
"lit": "\"lightblue\""
}
]
}
},
{
"ident": "else"
},
{
"group": {
"delimiter": "brace",
"stream": [
{
"lit": "\"lightgray\""
}
]
}
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"ident": "ondragover"
},
{
"punct": {
"op": ":",
"spacing": "alone"
}
},
{
"ident": "move"
},
{
"punct": {
"op": "|",
"spacing": "alone"
}
},
{
"ident": "evt"
},
{
"punct": {
"op": "|",
"spacing": "alone"
}
},
{
"group": {
"delimiter": "brace",
"stream": [
{
"ident": "evt"
},
{
"punct": {
"op": ".",
"spacing": "alone"
}
},
{
"ident": "prevent_default"
},
{
"group": {
"delimiter": "parenthesis",
"stream": []
}
},
{
"punct": {
"op": ";",
"spacing": "alone"
}
},
{
"ident": "hovered"
},
{
"punct": {
"op": ".",
"spacing": "alone"
}
},
{
"ident": "set"
},
{
"group": {
"delimiter": "parenthesis",
"stream": [
{
"ident": "true"
}
]
}
}
]
}
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"ident": "ondragleave"
},
{
"punct": {
"op": ":",
"spacing": "alone"
}
},
{
"ident": "move"
},
{
"punct": {
"op": "|",
"spacing": "alone"
}
},
{
"ident": "_"
},
{
"punct": {
"op": "|",
"spacing": "alone"
}
},
{
"ident": "hovered"
},
{
"punct": {
"op": ".",
"spacing": "alone"
}
},
{
"ident": "set"
},
{
"group": {
"delimiter": "parenthesis",
"stream": [
{
"ident": "false"
}
]
}
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"ident": "ondrop"
},
{
"punct": {
"op": ":",
"spacing": "alone"
}
},
{
"ident": "move"
},
{
"punct": {
"op": "|",
"spacing": "alone"
}
},
{
"ident": "evt"
},
{
"punct": {
"op": "|",
"spacing": "alone"
}
},
{
"ident": "async"
},
{
"ident": "move"
},
{
"group": {
"delimiter": "brace",
"stream": [
{
"ident": "evt"
},
{
"punct": {
"op": ".",
"spacing": "alone"
}
},
{
"ident": "prevent_default"
},
{
"group": {
"delimiter": "parenthesis",
"stream": []
}
},
{
"punct": {
"op": ";",
"spacing": "alone"
}
},
{
"ident": "hovered"
},
{
"punct": {
"op": ".",
"spacing": "alone"
}
},
{
"ident": "set"
},
{
"group": {
"delimiter": "parenthesis",
"stream": [
{
"ident": "false"
}
]
}
},
{
"punct": {
"op": ";",
"spacing": "alone"
}
},
{
"ident": "if"
},
{
"ident": "let"
},
{
"ident": "Some"
},
{
"group": {
"delimiter": "parenthesis",
"stream": [
{
"ident": "file_engine"
}
]
}
},
{
"punct": {
"op": "=",
"spacing": "alone"
}
},
{
"ident": "evt"
},
{
"punct": {
"op": ".",
"spacing": "alone"
}
},
{
"ident": "files"
},
{
"group": {
"delimiter": "parenthesis",
"stream": []
}
},
{
"group": {
"delimiter": "brace",
"stream": [
{
"ident": "read_files"
},
{
"group": {
"delimiter": "parenthesis",
"stream": [
{
"ident": "file_engine"
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"punct": {
"op": "&",
"spacing": "alone"
}
},
{
"ident": "mut"
},
{
"ident": "currently_processing_file"
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"punct": {
"op": "&",
"spacing": "alone"
}
},
{
"ident": "mut"
},
{
"ident": "files_uploaded"
}
]
}
},
{
"punct": {
"op": ".",
"spacing": "alone"
}
},
{
"ident": "await"
},
{
"punct": {
"op": ";",
"spacing": "alone"
}
}
]
}
}
]
}
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"lit": "\"Drop files here\""
}
]
}
},
{
"ident": "if"
},
{
"ident": "let"
},
{
"ident": "Some"
},
{
"group": {
"delimiter": "parenthesis",
"stream": [
{
"ident": "file"
}
]
}
},
{
"punct": {
"op": "=",
"spacing": "alone"
}
},
{
"ident": "currently_processing_file"
},
{
"group": {
"delimiter": "parenthesis",
"stream": []
}
},
{
"group": {
"delimiter": "brace",
"stream": [
{
"ident": "div"
},
{
"group": {
"delimiter": "brace",
"stream": [
{
"ident": "style"
},
{
"punct": {
"op": ":",
"spacing": "alone"
}
},
{
"lit": "\"border: 2px solid #007bff; padding: 15px; margin: 10px 0; border-radius: 5px; background-color: #f8f9fa;\""
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"ident": "h3"
},
{
"group": {
"delimiter": "brace",
"stream": [
{
"lit": "\"πŸ”„ Processing: {file.name}\""
}
]
}
},
{
"ident": "if"
},
{
"ident": "file"
},
{
"punct": {
"op": ".",
"spacing": "alone"
}
},
{
"ident": "total_lines"
},
{
"punct": {
"op": ">",
"spacing": "alone"
}
},
{
"lit": "0"
},
{
"group": {
"delimiter": "brace",
"stream": [
{
"ident": "div"
},
{
"group": {
"delimiter": "brace",
"stream": [
{
"ident": "div"
},
{
"group": {
"delimiter": "brace",
"stream": [
{
"ident": "style"
},
{
"punct": {
"op": ":",
"spacing": "alone"
}
},
{
"lit": "\"margin: 10px 0;\""
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"lit": "\"Progress: {file.progress} / {file.total_lines} lines ({((file.progress as f32 / file.total_lines as f32) * 100.0) as i32}%)\""
}
]
}
},
{
"ident": "div"
},
{
"group": {
"delimiter": "brace",
"stream": [
{
"ident": "style"
},
{
"punct": {
"op": ":",
"spacing": "alone"
}
},
{
"lit": "\"width: 100%; background-color: #e9ecef; border-radius: 10px; overflow: hidden;\""
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"ident": "div"
},
{
"group": {
"delimiter": "brace",
"stream": [
{
"ident": "style"
},
{
"punct": {
"op": ":",
"spacing": "alone"
}
},
{
"lit": "\"width: {((file.progress as f32 / file.total_lines as f32) * 100.0) as i32}%; height: 20px; background-color: #007bff; transition: width 0.3s ease;\""
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
}
]
}
}
]
}
}
]
}
}
]
}
},
{
"ident": "div"
},
{
"group": {
"delimiter": "brace",
"stream": [
{
"ident": "style"
},
{
"punct": {
"op": ":",
"spacing": "alone"
}
},
{
"lit": "\"max-height: 200px; overflow-y: auto; border: 1px solid #dee2e6; padding: 10px; background-color: white;\""
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"ident": "pre"
},
{
"group": {
"delimiter": "brace",
"stream": [
{
"lit": "\"{file.current_content}\""
}
]
}
}
]
}
}
]
}
}
]
}
},
{
"ident": "ul"
},
{
"group": {
"delimiter": "brace",
"stream": [
{
"ident": "for"
},
{
"ident": "file"
},
{
"ident": "in"
},
{
"ident": "files_uploaded"
},
{
"punct": {
"op": ".",
"spacing": "alone"
}
},
{
"ident": "read"
},
{
"group": {
"delimiter": "parenthesis",
"stream": []
}
},
{
"punct": {
"op": ".",
"spacing": "alone"
}
},
{
"ident": "iter"
},
{
"group": {
"delimiter": "parenthesis",
"stream": []
}
},
{
"punct": {
"op": ".",
"spacing": "alone"
}
},
{
"ident": "rev"
},
{
"group": {
"delimiter": "parenthesis",
"stream": []
}
},
{
"group": {
"delimiter": "brace",
"stream": [
{
"ident": "li"
},
{
"group": {
"delimiter": "brace",
"stream": [
{
"ident": "span"
},
{
"group": {
"delimiter": "brace",
"stream": [
{
"lit": "\"{file.name}\""
}
]
}
},
{
"ident": "pre"
},
{
"group": {
"delimiter": "brace",
"stream": [
{
"lit": "\"{file.contents}\""
}
]
}
},
{
"ident": "if"
},
{
"ident": "let"
},
{
"ident": "Some"
},
{
"group": {
"delimiter": "parenthesis",
"stream": [
{
"ident": "summary"
}
]
}
},
{
"punct": {
"op": "=",
"spacing": "alone"
}
},
{
"punct": {
"op": "&",
"spacing": "alone"
}
},
{
"ident": "file"
},
{
"punct": {
"op": ".",
"spacing": "alone"
}
},
{
"ident": "summary"
},
{
"group": {
"delimiter": "brace",
"stream": [
{
"ident": "div"
},
{
"group": {
"delimiter": "brace",
"stream": [
{
"ident": "h3"
},
{
"group": {
"delimiter": "brace",
"stream": [
{
"lit": "\"Document Summary\""
}
]
}
},
{
"ident": "p"
},
{
"group": {
"delimiter": "brace",
"stream": [
{
"lit": "\"Total code snippets: {summary.total_code_snippets}\""
}
]
}
},
{
"ident": "p"
},
{
"group": {
"delimiter": "brace",
"stream": [
{
"lit": "\"Total tokens: {summary.total_tokens}\""
}
]
}
},
{
"ident": "p"
},
{
"group": {
"delimiter": "brace",
"stream": [
{
"lit": "\"Languages: {summary.languages_found.join(\\\", \\\")}\""
}
]
}
}
]
}
}
]
}
},
{
"ident": "if"
},
{
"ident": "let"
},
{
"ident": "Some"
},
{
"group": {
"delimiter": "parenthesis",
"stream": [
{
"ident": "zip_url"
}
]
}
},
{
"punct": {
"op": "=",
"spacing": "alone"
}
},
{
"punct": {
"op": "&",
"spacing": "alone"
}
},
{
"ident": "file"
},
{
"punct": {
"op": ".",
"spacing": "alone"
}
},
{
"ident": "zip_url"
},
{
"group": {
"delimiter": "brace",
"stream": [
{
"ident": "a"
},
{
"group": {
"delimiter": "brace",
"stream": [
{
"ident": "href"
},
{
"punct": {
"op": ":",
"spacing": "alone"
}
},
{
"lit": "\"{zip_url}\""
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"ident": "download"
},
{
"punct": {
"op": ":",
"spacing": "alone"
}
},
{
"lit": "\"{file.name}.zip\""
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"lit": "\"Download Unique Code Snippets as ZIP\""
}
]
}
}
]
}
},
{
"ident": "h3"
},
{
"group": {
"delimiter": "brace",
"stream": [
{
"lit": "\"Generated Program\""
}
]
}
},
{
"ident": "pre"
},
{
"group": {
"delimiter": "brace",
"stream": [
{
"lit": "\"{file.generated_program}\""
}
]
}
}
]
}
}
]
}
}
]
}
}
]
}
}
],
"vis": "pub"
}
}
]
},
"file_path": "src\\extractor\\components\\app.rs",
"summary": {
"emoji_counts_in_strings": {
"πŸ”„": 1
},
"string_literals": [
"\"FIXME\"",
"\"FIXME\"",
"\"{STYLE}\"",
"\"Semantic Hyperspace File Upload\"",
"\"Upload a .md file (e.g., exported Grok chat) to extract and analyze code snippets\"",
"\"Clear files\"",
"\"Processing Pipeline\"",
"\"wikidata\"",
"\"Enable Wikidata Annotation (FIXME not working yet)\"",
"\"checkbox\"",
"\"wikidata\"",
"\"sentiment\"",
"\"Enable Sentiment Analysis (FIXME not working yet)\"",
"\"checkbox\"",
"\"sentiment\"",
"\"embedding\"",
"\"Enable BERT Embedding (FIXME not working yet)\"",
"\"checkbox\"",
"\"embedding\"",
"\"directory-upload\"",
"\"Enable directory upload\"",
"\"checkbox\"",
"\"directory-upload\"",
"\"textreader\"",
"\"Upload markdown or text files\"",
"\"file\"",
"\".md,.txt\"",
"\"textreader\"",
"\"drop-zone\"",
"\"lightblue\"",
"\"lightgray\"",
"\"Drop files here\"",
"\"border: 2px solid #007bff; padding: 15px; margin: 10px 0; border-radius: 5px; background-color: #f8f9fa;\"",
"\"πŸ”„ Processing: {file.name}\"",
"0",
"\"margin: 10px 0;\"",
"\"Progress: {file.progress} / {file.total_lines} lines ({((file.progress as f32 / file.total_lines as f32) * 100.0) as i32}%)\"",
"\"width: 100%; background-color: #e9ecef; border-radius: 10px; overflow: hidden;\"",
"\"width: {((file.progress as f32 / file.total_lines as f32) * 100.0) as i32}%; height: 20px; background-color: #007bff; transition: width 0.3s ease;\"",
"\"max-height: 200px; overflow-y: auto; border: 1px solid #dee2e6; padding: 10px; background-color: white;\"",
"\"{file.current_content}\"",
"\"{file.name}\"",
"\"{file.contents}\"",
"\"Document Summary\"",
"\"Total code snippets: {summary.total_code_snippets}\"",
"\"Total tokens: {summary.total_tokens}\"",
"\"Languages: {summary.languages_found.join(\\\", \\\")}\"",
"\"{zip_url}\"",
"\"{file.name}.zip\"",
"\"Download Unique Code Snippets as ZIP\"",
"\"Generated Program\"",
"\"{file.generated_program}\""
],
"top_level_nodes": 1,
"total_nodes": 1494,
"type_counts": {
"angle_bracketed": 16,
"args": 61,
"arguments": 16,
"array": 4,
"assign": 3,
"async": 2,
"await": 4,
"base": 10,
"binary": 6,
"body": 9,
"bool": 5,
"bounds": 1,
"call": 15,
"cast": 1,
"char": 1,
"closure": 7,
"colon2_token": 2,
"colon_token": 11,
"cond": 6,
"delimiter": 85,
"dot2_token": 1,
"dyn": 1,
"elem": 5,
"elems": 10,
"expr": 53,
"field": 6,
"fields": 3,
"fn": 3,
"for_loop": 2,
"func": 15,
"group": 86,
"ident": 402,
"if": 6,
"init": 15,
"inputs": 10,
"int": 9,
"items": 1,
"left": 9,
"let": 20,
"lit": 67,
"macro": 1,
"method": 29,
"method_call": 29,
"mut": 12,
"op": 155,
"output": 10,
"pat": 31,
"path": 107,
"punct": 149,
"receiver": 29,
"reference": 6,
"rest": 1,
"right": 9,
"segments": 86,
"spacing": 149,
"stmts": 3,
"str": 2,
"stream": 84,
"struct": 3,
"then_branch": 6,
"tokens": 1,
"trait": 1,
"trait_object": 1,
"tree": 29,
"tuple": 1,
"tuple_struct": 5,
"turbofish": 1,
"ty": 10,
"type": 20,
"typed": 6,
"use": 8,
"vis": 1
},
"word_counts": {
"0": 6,
"007bff": 2,
"100": 3,
"10px": 4,
"15px": 1,
"1px": 1,
"200px": 1,
"20px": 1,
"2px": 1,
"3s": 1,
"5px": 1,
"a": 1,
"analysis": 1,
"analyze": 1,
"and": 1,
"annotation": 1,
"as": 7,
"auto": 1,
"background": 4,
"bert": 1,
"border": 4,
"chat": 1,
"checkbox": 4,
"clear": 1,
"code": 3,
"color": 4,
"contents": 1,
"current_content": 1,
"dee2e6": 1,
"directory": 3,
"document": 1,
"download": 1,
"drop": 2,
"e": 1,
"e9ecef": 1,
"ease": 1,
"embedding": 3,
"enable": 4,
"exported": 1,
"extract": 1,
"f32": 4,
"f8f9fa": 1,
"file": 15,
"files": 3,
"fixme": 5,
"g": 1,
"generated": 1,
"generated_program": 1,
"grok": 1,
"height": 2,
"here": 1,
"hidden": 1,
"hyperspace": 1,
"i32": 2,
"join": 1,
"languages": 1,
"languages_found": 1,
"lightblue": 1,
"lightgray": 1,
"lines": 1,
"margin": 2,
"markdown": 1,
"max": 1,
"md": 2,
"name": 3,
"not": 3,
"or": 1,
"overflow": 2,
"padding": 2,
"pipeline": 1,
"processing": 2,
"program": 1,
"progress": 4,
"radius": 2,
"semantic": 1,
"sentiment": 3,
"snippets": 3,
"solid": 2,
"style": 1,
"summary": 4,
"text": 1,
"textreader": 2,
"to": 1,
"tokens": 1,
"total": 2,
"total_code_snippets": 1,
"total_lines": 3,
"total_tokens": 1,
"transition": 1,
"txt": 1,
"unique": 1,
"upload": 6,
"white": 1,
"width": 3,
"wikidata": 3,
"working": 3,
"y": 1,
"yet": 3,
"zip": 2,
"zip_url": 1,
"zone": 1
},
"word_emoji_counts": {
"0️⃣": 6,
"🎟️": 1,
"🎨": 1,
"πŸ’―": 3,
"πŸ”€": 1,
"πŸ”„": 1,
"πŸ”": 1,
"πŸ”¬": 1
}
},
"timestamp": 1751588227
}