diff --git "a/repo_to_md.json" "b/repo_to_md.json" new file mode 100644--- /dev/null +++ "b/repo_to_md.json" @@ -0,0 +1,10225 @@ +{ + "code_blocks": [ + { + "id": "repo_to_md/core.py::is_excluded", + "parent_id": null, + "file_path": "repo_to_md/core.py", + "type": "function", + "name": "is_excluded", + "start_line": 35, + "end_line": 42, + "source_code": "def is_excluded(filepath: str) -> bool:\n path = Path(filepath)\n if path.name in EXCLUDE_FILENAMES or path.suffix.lower() in EXCLUDE_EXTENSIONS:\n return True\n normalized_path = path.as_posix()\n if any(pattern in normalized_path for pattern in EXCLUDE_PATTERNS):\n return True\n return False", + "docstring": "", + "dependencies": [ + "Path", + "any" + ], + "level": 0, + "structural_vector": [ + 1, + 0, + 0.14154411764705882, + 0.029411764705882353 + ], + "semantic_embedding": [ + 0.006937084719538689, + 0.10042242705821991, + -0.009279998950660229, + 0.005719874519854784, + 0.08334039151668549, + -0.08946368098258972, + 0.018270030617713928, + -0.0331353060901165, + -0.006408145651221275, + -0.043831225484609604, + 0.06881918013095856, + 0.0710744559764862, + 0.042097799479961395, + -0.00043842688319273293, + -0.05033984035253525, + 0.009525799192488194, + -0.05676591023802757, + 0.028286555781960487, + 0.023660235106945038, + -0.0813489556312561, + 0.032675642520189285, + 0.07021182030439377, + 0.06582669168710709, + 0.0649113580584526, + 0.028945526108145714, + -0.054177552461624146, + -0.031895849853754044, + 0.03905895724892616, + -0.025119580328464508, + 0.009503883309662342, + 0.032129641622304916, + 0.03494401276111603, + -0.021855471655726433, + -0.011010690592229366, + 0.10241740942001343, + 0.01217580959200859, + -0.07350064814090729, + 0.02131052315235138, + 0.026807917281985283, + 0.015381104312837124, + 0.011002635583281517, + 0.03680701181292534, + -0.007992838509380817, + -0.10785073041915894, + -0.08346076309680939, + -0.013827328570187092, + 0.0018176831072196364, + -0.0674324557185173, + -0.06879256665706635, + -0.07765655964612961, + 0.03237225115299225, + -0.014518260024487972, + -0.16015857458114624, + 0.002301295753568411, + 0.03128093481063843, + -0.01989939622581005, + -0.0267340037971735, + 0.017367975786328316, + -0.08264314383268356, + -0.06774957478046417, + 0.023102009668946266, + 0.008188124746084213, + -0.07049036026000977, + -0.03192589059472084, + -0.07900022715330124, + 0.08379990607500076, + 0.012558192946016788, + 0.05604124814271927, + 0.08372573554515839, + -0.016109172254800797, + 0.03594567999243736, + -0.016218293458223343, + 0.017145046964287758, + 0.01194395124912262, + 0.04948408901691437, + 0.0065848068334162235, + 0.1026640236377716, + 0.06319671869277954, + -0.011680489405989647, + -0.03593619167804718, + -0.06685187667608261, + -0.08685469627380371, + 0.032742928713560104, + 0.03022150509059429, + 0.034586694091558456, + -0.016973702237010002, + -0.0037451433017849922, + 0.04449412599205971, + 0.0023892049212008715, + -0.03307119011878967, + -0.005517317447811365, + -0.09683424234390259, + 0.03279310092329979, + -0.06099860742688179, + 0.029155343770980835, + 0.02820972353219986, + 0.008780193515121937, + -0.00029432171140797436, + 0.040730200707912445, + 0.006847155746072531, + 0.009777397848665714, + -0.0872846245765686, + 0.05206141620874405, + -0.05755803361535072, + 0.10217911005020142, + 0.12003841251134872, + 0.050921618938446045, + -0.09111833572387695, + -0.001834337250329554, + -0.01175675168633461, + -0.07301464676856995, + -0.028429275378584862, + 0.032086361199617386, + -0.02687757834792137, + 0.026026703417301178, + 0.010479909367859364, + 0.12304028868675232, + 0.03073045052587986, + -0.021517980843782425, + -0.00829029269516468, + 0.07204283773899078, + 0.00898580439388752, + 0.173508882522583, + -0.022663170471787453, + -0.016472404822707176, + -0.0017015025950968266, + -0.04530267417430878, + 4.1487309870746404e-33, + -0.043570730835199356, + -0.003029888728633523, + 0.07537087798118591, + -0.09279739856719971, + 0.03465462103486061, + 0.05200716480612755, + 0.0044426159001886845, + -0.013281500898301601, + 0.000884154811501503, + 0.05082479119300842, + -0.06435129046440125, + -0.020935935899615288, + -0.06756921857595444, + -0.019469980150461197, + 0.009971082210540771, + -0.0026897324714809656, + 0.07055029273033142, + -0.03724965453147888, + -0.03410547226667404, + 0.019612634554505348, + -0.019194871187210083, + 0.014209510758519173, + -0.07660545408725739, + 0.028055939823389053, + -0.04150861129164696, + -0.07195708900690079, + -0.002607570495456457, + -0.07001785933971405, + 0.01892262138426304, + -0.021410999819636345, + -0.027606096118688583, + -0.052195366472005844, + 0.049491338431835175, + 0.07906705141067505, + 0.011167323216795921, + 0.03565780445933342, + -0.05135495588183403, + -0.028044061735272408, + -0.049118414521217346, + -0.017728041857481003, + 0.02427687495946884, + 0.05998300015926361, + -0.02093861624598503, + -0.028277887031435966, + 0.032577089965343475, + 0.02169308438897133, + 0.01099863089621067, + -0.0522276796400547, + 0.034458186477422714, + 0.023068958893418312, + 0.03624916821718216, + 0.025050224736332893, + 0.08713201433420181, + -0.011952489614486694, + -0.03740125522017479, + -0.11031123995780945, + -3.873658715747297e-05, + 0.037411946803331375, + 0.0392436757683754, + -0.057992901653051376, + 0.056788962334394455, + -0.12175595760345459, + -0.029596388339996338, + 0.0164013784378767, + -0.015412778593599796, + -0.00790931936353445, + -0.014919680543243885, + 0.006039376836270094, + -0.027787962928414345, + 0.04198390617966652, + -0.038859929889440536, + -0.005138291511684656, + -0.030790721997618675, + 0.007877899333834648, + 0.044078413397073746, + -0.05307893082499504, + -0.03066396526992321, + 0.013567292131483555, + 0.03971321880817413, + -0.01069632824510336, + -0.10489387065172195, + 0.018673710525035858, + -0.046215545386075974, + -0.005427490454167128, + -0.040399253368377686, + 0.008071152493357658, + 0.03912520408630371, + -0.0004985593259334564, + 0.011115286499261856, + -0.10927638411521912, + 0.006134006194770336, + -0.061166536062955856, + -0.10773942619562149, + -0.012648987583816051, + 0.008188867941498756, + -5.596144364548986e-33, + 0.058838918805122375, + 0.04608709737658501, + 0.06751079112291336, + -0.07174428552389145, + -0.11210215091705322, + -0.0009665244724601507, + 0.057533398270606995, + -0.05093872919678688, + 0.09128042310476303, + -0.044534869492053986, + 0.04203427955508232, + -0.03677445277571678, + 0.10503000766038895, + -0.05818534642457962, + 0.02401045896112919, + 0.03191030025482178, + -0.04974689707159996, + -0.022818002849817276, + -0.02958565391600132, + 0.02679206058382988, + -0.020831119269132614, + 0.039040807634592056, + -0.020002219825983047, + 0.026474332436919212, + -0.02189137414097786, + -0.020457278937101364, + -0.08375006169080734, + 0.002853797050192952, + 0.03438601270318031, + -0.0439465306699276, + -0.04497461020946503, + 0.11032600700855255, + -0.07020194828510284, + -0.10634654760360718, + -0.06869308650493622, + -0.00108002545312047, + -0.06462953239679337, + 0.08876128494739532, + -0.021229466423392296, + 0.0033012523781508207, + 0.025562912225723267, + 0.0441635325551033, + -0.02848457731306553, + 0.05819812789559364, + -0.0006794794462621212, + 0.058625757694244385, + 0.007397451438009739, + 0.0290166474878788, + -0.01320295687764883, + -0.024806514382362366, + -0.012257224880158901, + 0.0015989047242328525, + 0.032789167016744614, + 0.018252449110150337, + 0.0457875058054924, + 0.004966814536601305, + 0.018077118322253227, + -0.02295180782675743, + -0.11109894514083862, + -0.03634582459926605, + 0.014853321015834808, + 0.012759611010551453, + -0.03367028385400772, + -0.0518418587744236, + -0.07514312118291855, + 0.014756187796592712, + -0.08034662902355194, + 0.07924703508615494, + 0.07121496647596359, + -0.03797324001789093, + 0.008893298916518688, + 0.025811385363340378, + -0.05324038490653038, + -0.019100846722722054, + -0.01870245300233364, + 0.08478113263845444, + -0.006899010855704546, + -0.030028413981199265, + 0.035987112671136856, + 0.033863142132759094, + -0.018761515617370605, + 0.03399990126490593, + 0.0033931583166122437, + 0.004346730653196573, + -0.03905778005719185, + -0.04053787887096405, + -0.06459758430719376, + -0.023168809711933136, + -0.01698622666299343, + -0.019108101725578308, + 0.09424090385437012, + 0.04818856343626976, + -0.006810133345425129, + 0.055982206016778946, + -0.016842098906636238, + -4.033010014836691e-08, + 0.0029572260100394487, + -0.014095230959355831, + -0.031720031052827835, + -0.0718223825097084, + 0.02082597278058529, + 0.042048871517181396, + 0.02494707703590393, + -0.012282606214284897, + 0.037705689668655396, + 0.03173626586794853, + 0.03785346820950508, + -0.0929357185959816, + -0.02106318809092045, + 0.005967756733298302, + 0.005963130388408899, + 0.054584138095378876, + 0.023955103009939194, + 0.14029882848262787, + -0.056630175560712814, + 0.03331093490123749, + -0.046201616525650024, + -0.018472829833626747, + -0.09612184762954712, + 0.02939431741833687, + 0.013758191838860512, + 0.013144344091415405, + -0.010019647888839245, + -0.017809227108955383, + -0.016850950196385384, + 0.024909045547246933, + 0.07866162806749344, + -0.008488563820719719, + -0.028949549421668053, + -0.0011548335896804929, + -0.0022352051455527544, + 0.15394513309001923, + 0.1549893170595169, + 0.05313047394156456, + -0.023132527247071266, + 0.10112869739532471, + -0.021671926602721214, + -0.09011992067098618, + 0.013786885887384415, + 0.016749784350395203, + -0.002407401567324996, + -0.010309272445738316, + -0.004482610151171684, + -0.027647925540804863, + -0.03661902993917465, + 0.03291619196534157, + 0.029747068881988525, + 0.036686912178993225, + -0.03578216955065727, + 0.005159731954336166, + -0.05176354572176933, + -0.01796153374016285, + 0.05470779165625572, + 0.0998782217502594, + -0.07775821536779404, + -0.07629216462373734, + 0.03087202087044716, + -0.07947388291358948, + 0.11443537473678589, + 0.06566751003265381 + ] + }, + { + "id": "repo_to_md/core.py::is_binary_content", + "parent_id": null, + "file_path": "repo_to_md/core.py", + "type": "function", + "name": "is_binary_content", + "start_line": 44, + "end_line": 75, + "source_code": "def is_binary_content(filename: str, content: bytes) -> bool:\n if not content:\n return False\n\n file_path = Path(filename)\n extension = file_path.suffix[1:].lower()\n\n if extension in TEXT_EXTENSIONS or file_path.name.lower() in TEXT_FILENAMES:\n return False\n\n mime_type, _ = mimetypes.guess_type(filename)\n if mime_type and mime_type.startswith('text/'):\n return False\n\n if content.startswith((b'\\xef\\xbb\\xbf', b'\\xfe\\xff', b'\\xff\\xfe')):\n return False\n\n sample = content[:1024]\n if b'\\0' in sample:\n return True\n\n text_chars = set(bytes(range(32, 127)) + b'\\n\\r\\t\\f\\b')\n if len(sample) > 0:\n non_text_ratio = sum(1 for byte in sample if byte not in text_chars) / len(sample)\n if non_text_ratio > 0.30:\n return True\n\n try:\n content.decode('utf-8')\n return False\n except UnicodeDecodeError:\n return True", + "docstring": "", + "dependencies": [ + "bytes", + "set", + "sum", + "Path", + "range", + "len" + ], + "level": 0, + "structural_vector": [ + 1, + 0, + 0.21875, + 0.11764705882352941 + ], + "semantic_embedding": [ + -0.013621706515550613, + -0.0004795195418410003, + -0.04815283045172691, + -0.010556456632912159, + 0.07515478134155273, + -0.08804025501012802, + 0.031899672001600266, + 0.030750954523682594, + -0.05685024708509445, + -0.03443317487835884, + 0.030510056763887405, + 0.015093292109668255, + 0.07107400894165039, + 0.05072636902332306, + -0.033736493438482285, + 0.018141135573387146, + -0.08546683192253113, + 0.008019623346626759, + 0.010775289498269558, + 0.0009466152987442911, + 0.07434859126806259, + 0.06757119297981262, + 0.09917057305574417, + -0.0037141048815101385, + -0.0067008426412940025, + 0.01741303689777851, + -0.02120506390929222, + 0.05386107787489891, + -0.030337559059262276, + -0.03483671322464943, + 0.10518528521060944, + 0.08999872952699661, + 0.1391046792268753, + -0.03495275229215622, + 0.15534234046936035, + 0.07216628640890121, + -0.0003363633877597749, + -0.10048483312129974, + -0.03378819301724434, + 0.056319814175367355, + 0.012078188359737396, + -0.018122609704732895, + -0.02513970248401165, + 0.022030802443623543, + 0.008645429275929928, + 0.04017341136932373, + 0.07103892415761948, + 0.008471420966088772, + -0.043421387672424316, + -0.05259571224451065, + 0.03591420501470566, + 0.03702961280941963, + -0.13245442509651184, + 0.040421150624752045, + -9.861221042228863e-05, + -0.10388670861721039, + -0.04296059161424637, + -0.0005753637524321675, + -0.061274874955415726, + -0.005571093410253525, + -0.02075234241783619, + 0.014943323098123074, + -0.010799841955304146, + -0.041086599230766296, + -0.04569477215409279, + 0.10565624386072159, + -0.019229646772146225, + 0.016573073342442513, + 0.013992080464959145, + -0.09790387749671936, + -0.01065388135612011, + -0.0063846963457763195, + -0.0510035939514637, + 0.08697859942913055, + -0.022695505991578102, + -0.01154082827270031, + 0.11561799794435501, + 0.04072358086705208, + -0.030626822263002396, + -0.052172303199768066, + -0.08414507657289505, + -0.10929956287145615, + 0.1145898699760437, + 0.06394781172275543, + 0.041908182203769684, + -0.05269384756684303, + 0.00810262467712164, + 0.06107639893889427, + -0.009556335397064686, + 0.020253488793969154, + 0.0006104800850152969, + -0.01974463276565075, + 0.016670411452651024, + -0.004556396044790745, + 0.02162536047399044, + 0.06586343795061111, + -0.026730328798294067, + 0.020234450697898865, + 0.048166826367378235, + 0.03677068650722504, + -0.049926597625017166, + -0.09935177862644196, + 0.007681670598685741, + -0.03302178531885147, + 0.04967452585697174, + 0.008093316107988358, + 0.10083476454019547, + 0.03747645765542984, + 0.03317524492740631, + -0.0703171044588089, + 0.006424669176340103, + -0.07291910797357559, + -0.010528400540351868, + -0.06365656852722168, + 0.055156294256448746, + 0.02455994114279747, + -0.026974130421876907, + 0.07416880875825882, + -0.0372343584895134, + -0.00038589202449657023, + 0.01704654097557068, + 0.0033707479014992714, + 0.017885148525238037, + -0.01458282396197319, + -0.060535602271556854, + -0.0358547568321228, + -0.02139802649617195, + 8.013252419375407e-33, + -0.061014410108327866, + 0.009964287281036377, + 0.11785464733839035, + 0.01096262689679861, + -0.028189122676849365, + 0.0010205231374129653, + -0.02529371902346611, + -0.031088881194591522, + -0.08197300136089325, + 0.006058543920516968, + -0.05345413088798523, + 0.011630281805992126, + -0.04208534583449364, + 0.01846941187977791, + -0.048124074935913086, + -0.04522281140089035, + -0.045515112578868866, + -0.033060263842344284, + 0.049248963594436646, + 0.008768129162490368, + -0.015070619061589241, + 0.06012016534805298, + -0.05755496397614479, + -0.02488039620220661, + -0.0322302021086216, + -0.05232882872223854, + 0.010471776127815247, + -0.13390067219734192, + -0.0008707563392817974, + -0.029738899320364, + -0.139549121260643, + -0.09688432514667511, + 0.03104885295033455, + 0.04774443060159683, + -0.07609502226114273, + -0.03147931396961212, + -0.031308505684137344, + 0.016740474849939346, + -0.11030649393796921, + 0.021491587162017822, + 0.07616899162530899, + 0.024866294115781784, + 0.03249787911772728, + -0.02420736290514469, + -0.006690898910164833, + 0.0019032754935324192, + -0.07376746833324432, + -0.0345100499689579, + -0.04493757709860802, + 0.015475379303097725, + 0.10010277479887009, + 0.025747211650013924, + 0.06918586045503616, + 0.07094412297010422, + -0.0035089515149593353, + -0.007783148903399706, + 0.026778316125273705, + 0.050084732472896576, + 0.0634685531258583, + -0.01468104962259531, + 0.0995970144867897, + -0.053830426186323166, + 0.04136250913143158, + -0.04218047112226486, + 0.04744105413556099, + 0.026775380596518517, + 0.05134505778551102, + -0.028710152953863144, + -0.029264066368341446, + 0.05037887021899223, + -0.08408155292272568, + 0.02048996463418007, + -0.01886148750782013, + -0.03331432491540909, + 0.02315424382686615, + -0.043170928955078125, + -0.006505209486931562, + -0.06505914777517319, + 0.015688614919781685, + 0.0033685897942632437, + 0.002400783821940422, + -0.02995670773088932, + 0.04646506905555725, + -0.0742151066660881, + -0.1229872927069664, + -0.0009489756193943322, + 0.01025236677378416, + -0.122185118496418, + -0.0207894966006279, + -0.07807832211256027, + -0.015245996415615082, + -0.0667509213089943, + -0.04051597788929939, + -0.026639899238944054, + 0.009866700507700443, + -7.663547992793561e-33, + 0.0453643798828125, + -0.0026572716888040304, + 0.057488251477479935, + 0.02182307280600071, + -0.06976402550935745, + -0.009730814956128597, + 0.06862995028495789, + 0.010712465271353722, + 0.07616877555847168, + -0.03479437157511711, + 0.023941494524478912, + -0.007352011278271675, + 0.002757029375061393, + -0.10326243191957474, + -0.00470769964158535, + 0.02249317802488804, + -0.028097696602344513, + 0.040239572525024414, + -0.001066728145815432, + 0.06640903651714325, + -0.04730173200368881, + 0.005245211534202099, + 0.04444262757897377, + -0.006992049049586058, + 0.001413460704497993, + 0.040448807179927826, + -0.013497556559741497, + 0.04647878184914589, + 0.04173878952860832, + -0.037805669009685516, + -0.0748491957783699, + 0.05300850793719292, + -0.08322964608669281, + -0.05850839614868164, + -0.018758133053779602, + -0.016998333856463432, + -0.004708790220320225, + 0.051845110952854156, + 0.020006220787763596, + 0.05990629643201828, + 0.05883604660630226, + 0.06537801027297974, + -0.0046435147523880005, + 0.022481491789221764, + 0.011410683393478394, + 0.03322050720453262, + -0.008891914039850235, + 0.05535869300365448, + 0.037250030785799026, + -0.04170279577374458, + 0.038218844681978226, + 0.023082764819264412, + -0.0033058985136449337, + 0.05140779912471771, + 0.039939142763614655, + -0.03495820239186287, + -0.06306242197751999, + 0.011234303936362267, + -0.09778103232383728, + -0.00564954336732626, + -0.022219635546207428, + -0.05649220570921898, + -0.06800398975610733, + -0.06412661075592041, + -9.776210936252028e-05, + -0.022439019754529, + -0.10556182265281677, + -0.047224581241607666, + -0.01994681917130947, + 0.03080621547996998, + 0.06855893135070801, + -0.05599415674805641, + -0.02109016291797161, + 0.019820429384708405, + 0.011232911609113216, + 0.07834728807210922, + -0.033944401890039444, + -0.007660941686481237, + -0.061493292450904846, + 0.047573428601026535, + 0.027638770639896393, + 0.04966967925429344, + 0.032235972583293915, + 0.06682322174310684, + -0.005597925744950771, + -0.01971208117902279, + -0.021024880930781364, + 0.03155568987131119, + 0.03850724920630455, + -0.012167660519480705, + 0.019565552473068237, + 0.039003074169158936, + 0.07708335667848587, + 0.07297942042350769, + 0.02098497375845909, + -5.8951766135351136e-08, + -0.02892591804265976, + -0.11099410057067871, + -0.050821393728256226, + -0.011533928103744984, + 0.028075750917196274, + 0.0995183065533638, + -0.04205022752285004, + -0.10284668207168579, + 0.06081816926598549, + -0.08455493301153183, + 0.07567228376865387, + -0.057782381772994995, + -0.09372416138648987, + -0.028288600966334343, + -0.0625760555267334, + 0.09201130270957947, + 0.03936145827174187, + -0.006208852864801884, + 0.02683473564684391, + 0.03448905423283577, + -0.010610990226268768, + 0.0012568063102662563, + -0.030320964753627777, + -0.023953594267368317, + -0.06259870529174805, + 0.038344856351614, + 0.0050796084105968475, + 0.029307372868061066, + -0.005566578358411789, + -0.01272424217313528, + 0.10895060747861862, + -0.03814952075481415, + -0.04442282393574715, + 0.004431590437889099, + -0.030751384794712067, + 0.09450661391019821, + 0.07105972617864609, + 0.010750800371170044, + 0.014109855517745018, + 0.025901691988110542, + 0.0009380853152833879, + 0.009231990203261375, + -0.07114879786968231, + -0.03062952682375908, + 0.025639953091740608, + -0.04393291473388672, + 0.008253657259047031, + 0.019290432333946228, + -0.03773078694939613, + 0.030514201149344444, + 0.08649628609418869, + 0.006431254558265209, + -0.06941448897123337, + 0.019432973116636276, + -0.0416436493396759, + -0.002154148416593671, + 0.0011303526116535068, + 0.08220656961202621, + -0.025453388690948486, + -0.004595024511218071, + -0.021112607792019844, + 0.010025694966316223, + 0.10800138115882874, + -0.04492361098527908 + ] + }, + { + "id": "repo_to_md/core.py::generate_file_tree", + "parent_id": null, + "file_path": "repo_to_md/core.py", + "type": "function", + "name": "generate_file_tree", + "start_line": 77, + "end_line": 95, + "source_code": "def generate_file_tree(paths: List[str]) -> str:\n tree = [\"\ud83d\udcc1 Root\"]\n structure = {}\n for path in sorted(paths):\n parts = path.split('/')\n current_level = structure\n for part in parts:\n current_level = current_level.setdefault(part, {})\n\n def build_tree(level_structure, indent=\"\"):\n for name in sorted(level_structure.keys()):\n is_dir = bool(level_structure[name])\n icon = \"\ud83d\udcc1\" if is_dir else \"\ud83d\udcc4\"\n tree.append(f\"{indent}{icon} {name}\")\n if is_dir:\n build_tree(level_structure[name], indent + \" \")\n\n build_tree(structure)\n return \"\\n\".join(tree) + \"\\n\\n\"", + "docstring": "", + "dependencies": [ + "sorted", + "build_tree", + "bool" + ], + "level": 0, + "structural_vector": [ + 1, + 0, + 0.3161764705882353, + 0.06985294117647059 + ], + "semantic_embedding": [ + -0.05313563719391823, + 0.06341640651226044, + 0.011078194715082645, + 0.010975747369229794, + 0.023714320734143257, + -0.1062842458486557, + -0.019279571250081062, + 0.050563838332891464, + -0.05412865802645683, + 0.026279514655470848, + 0.02485416829586029, + 0.015338605269789696, + 0.08978309482336044, + -0.03858480602502823, + -0.018877863883972168, + 0.05797858536243439, + -0.17653703689575195, + 0.05270439758896828, + 0.032857317477464676, + -0.12577414512634277, + 0.08256092667579651, + 0.09098845720291138, + 0.07289671152830124, + 0.04237423092126846, + 0.0548892617225647, + -0.028887692838907242, + -0.008193457499146461, + 0.03987949714064598, + 0.011939178220927715, + -0.03954258933663368, + 0.0816006287932396, + 0.03034275956451893, + 0.0665166899561882, + 0.04333728924393654, + 0.06741490960121155, + 0.0911896675825119, + -0.01575450971722603, + -0.072563037276268, + 0.01780594512820244, + 0.04094457998871803, + -0.0019311968935653567, + 0.07968587428331375, + 0.02439882978796959, + -0.10377634316682816, + -0.030532661825418472, + 0.045900896191596985, + -0.01918201334774494, + -0.02568822354078293, + -0.040353987365961075, + -0.030800174921751022, + -0.013586499728262424, + -0.06948073953390121, + -0.08314649760723114, + -0.10398215055465698, + -0.026686210185289383, + 0.04183560982346535, + 0.05016703903675079, + -0.03668171912431717, + -0.017795341089367867, + -0.03332959860563278, + 0.06539889425039291, + -0.0036765034310519695, + -0.023131920024752617, + -0.09864827245473862, + 0.016477739438414574, + 0.0318831242620945, + -0.02563202567398548, + 0.05988374352455139, + 0.0658639445900917, + -0.012562629766762257, + -0.0019911457784473896, + 0.014792975969612598, + -0.036987558007240295, + 0.012579765170812607, + -0.03682542219758034, + -0.027875151485204697, + 0.07000648230314255, + 0.07335331290960312, + -0.05708827078342438, + -0.05667388066649437, + -0.038321830332279205, + -0.029487840831279755, + 0.0015609182883054018, + -0.02166052907705307, + 0.008058902807533741, + -0.0159788616001606, + 0.02320384606719017, + 0.08252746611833572, + -0.015597803518176079, + -2.601286269054981e-06, + -0.01535861473530531, + -0.07582569867372513, + 0.016480721533298492, + -0.01594696007668972, + 0.0010583612602204084, + 0.10643144696950912, + 0.05308821052312851, + -0.03760102391242981, + 0.00036684711812995374, + 0.03250346705317497, + -0.055591780692338943, + -0.05616200715303421, + 0.04929037764668465, + -0.12525580823421478, + 0.027797756716609, + 0.13076862692832947, + -0.040874380618333817, + -0.04177779331803322, + 0.0011292354902252555, + 0.025634903460741043, + -0.03686993569135666, + -0.02968818135559559, + -0.04100553318858147, + -0.02700871042907238, + 0.002840709872543812, + 0.012137201614677906, + -0.006788285449147224, + -0.00241753994487226, + -0.009149624966084957, + 0.03377940133213997, + 0.12810981273651123, + -0.054330650717020035, + -0.004802842158824205, + 0.02829526737332344, + -0.045494694262742996, + -0.06935814023017883, + -0.06014620140194893, + 4.699388009639479e-33, + 0.01014955248683691, + 0.010597753338515759, + 0.11886189132928848, + 0.03890462964773178, + 0.07432588189840317, + 0.016895374283194542, + 0.051173772662878036, + -0.03251101076602936, + -0.0863766148686409, + 0.030068345367908478, + -0.06566201150417328, + -0.0490962415933609, + -0.07805968075990677, + -0.012770658358931541, + -0.02539452351629734, + -0.0750167965888977, + -0.022989021614193916, + 0.011592501774430275, + -0.06033141911029816, + -0.020115042105317116, + -0.02152521163225174, + -0.010776643641293049, + -0.08655008673667908, + -0.012166046537458897, + 0.005906767677515745, + -0.051742471754550934, + 0.05205417051911354, + -0.023955659940838814, + -0.022429220378398895, + -0.07279711216688156, + -0.04837626963853836, + -0.06213708966970444, + 0.049508851021528244, + 0.03622535243630409, + -0.04791421815752983, + 0.03095659241080284, + -0.004683246836066246, + -0.02077559567987919, + -0.021781930699944496, + -0.012225478887557983, + 0.05132216960191727, + -0.007584884762763977, + 0.030418286100029945, + 0.06025669351220131, + 0.013054009526968002, + 0.039961397647857666, + -0.11482485383749008, + 0.014627965167164803, + -0.02979414537549019, + 0.021875858306884766, + -0.007023999467492104, + 0.06247561052441597, + 0.07325843721628189, + 0.02483982779085636, + -0.028273802250623703, + -0.022446392104029655, + -0.03446007892489433, + 0.0556398369371891, + 0.06522561609745026, + -0.046684179455041885, + 0.11905157566070557, + -0.023741405457258224, + -0.008976257406175137, + 0.044053900986909866, + -0.015019782818853855, + 0.05629134178161621, + 0.09238534420728683, + 0.06829523295164108, + 0.06951315701007843, + 0.054262347519397736, + -0.02251269295811653, + 0.017634063959121704, + -0.030242571607232094, + -0.07340142130851746, + -0.014874884858727455, + 0.01726340316236019, + -0.040453553199768066, + -0.041805449873209, + -0.05957255885004997, + 0.00376304192468524, + -0.07628270983695984, + 0.03195929899811745, + 0.012181551195681095, + -0.029856082051992416, + 0.10743197798728943, + -0.06605634093284607, + 0.0324370376765728, + 0.01994992606341839, + -0.02669447287917137, + -0.07484397292137146, + -0.056640561670064926, + -0.11411695182323456, + 0.03497403487563133, + -0.03693807125091553, + 0.032600343227386475, + -6.430350828341315e-33, + 0.11924099922180176, + 0.004148517735302448, + 0.1324824094772339, + -0.050679534673690796, + -0.017724018543958664, + -0.0705421045422554, + -0.05008815601468086, + -0.04407564178109169, + -0.036227643489837646, + 0.04474767670035362, + -0.0733184888958931, + 0.029672326520085335, + 0.0445670560002327, + -0.08021903783082962, + 0.08393583446741104, + 0.011925623752176762, + -0.036218561232089996, + 0.020238779485225677, + -3.829596971627325e-05, + 0.02954580821096897, + 0.004263394512236118, + 0.06615517288446426, + -0.004085243679583073, + 0.06787727028131485, + -0.028375595808029175, + -0.04234078899025917, + -0.024775628000497818, + -0.008801199495792389, + 0.04358971491456032, + -0.005943301133811474, + -0.05052333325147629, + 0.025779392570257187, + -0.03343547135591507, + -0.012734982185065746, + -0.052184972912073135, + -0.05185173824429512, + -0.02065248228609562, + 0.002386613981798291, + 0.02835811860859394, + 0.10652898252010345, + 0.02162785455584526, + 0.048845209181308746, + -0.012681703083217144, + 0.013397185131907463, + -0.0001558072108309716, + -0.054533034563064575, + 0.06207839027047157, + 0.04081311449408531, + -0.07817976921796799, + -0.03662844002246857, + 0.04874861240386963, + 0.001040959032252431, + -0.011356541886925697, + -0.01632002927362919, + 0.003358085872605443, + 0.010832850821316242, + -0.07433600723743439, + 0.06444811075925827, + -0.060906924307346344, + -0.03527996316552162, + -0.06378031522035599, + -0.07212851196527481, + -0.035657383501529694, + -0.08729831874370575, + -0.056596893817186356, + -0.0732586681842804, + -0.14401473104953766, + -0.054258305579423904, + -0.040424272418022156, + 0.018894823268055916, + -0.03529972955584526, + 0.009164920076727867, + -0.020306840538978577, + 0.025275368243455887, + 0.004554360639303923, + 0.04507364705204964, + -0.01460125669836998, + 0.04773557186126709, + 0.012568962760269642, + 0.009665647521615028, + -0.05696074292063713, + 0.030606405809521675, + -0.01889962889254093, + 0.07368443161249161, + -0.010446378029882908, + -0.11255408078432083, + 0.024451913312077522, + 0.030716240406036377, + 0.08142838627099991, + -0.030974704772233963, + 0.009338222444057465, + -0.0054601333104074, + 0.10943063348531723, + 0.0620366707444191, + 0.006955781485885382, + -5.00747212583974e-08, + -0.05111101269721985, + 0.016733242198824883, + -0.02363567426800728, + -0.012458094395697117, + 0.05246616154909134, + 0.059423621743917465, + 0.0023032110184431076, + 0.038518499583005905, + 0.00998735148459673, + -0.026039540767669678, + 0.028718871995806694, + -0.0043612211011350155, + -0.08031348884105682, + 0.018733054399490356, + -0.0445406399667263, + 0.05032981187105179, + 0.014818746596574783, + 0.08805745840072632, + 0.010776542127132416, + 0.05358509719371796, + 0.03222740814089775, + -0.0058805448934435844, + -0.009340858086943626, + 0.09184994548559189, + -0.053372252732515335, + -0.045527298003435135, + 0.0345231369137764, + 0.011662604287266731, + -0.045560192316770554, + 0.012164763174951077, + 0.06345222890377045, + -0.022275835275650024, + -0.030973095446825027, + 0.015245441347360611, + -0.01146250031888485, + 0.009993365965783596, + 0.07734227925539017, + 0.02542727254331112, + 0.003285937709733844, + -0.017777180299162865, + -0.014441053383052349, + -0.04158038645982742, + 0.0038334473501890898, + 3.880398435285315e-05, + -0.04547747224569321, + -0.043370652943849564, + -0.049610111862421036, + 0.058555979281663895, + 0.014417173340916634, + -0.01408582367002964, + -0.03863032907247543, + -0.012346024625003338, + -0.045413658022880554, + -0.07849424332380295, + -0.001798531273379922, + 0.03061041235923767, + 0.04449469596147537, + 0.13613034784793854, + 0.03664594143629074, + -0.04068467393517494, + 0.07768838852643967, + -0.012777469120919704, + 0.11095549166202545, + 0.0008155607501976192 + ] + }, + { + "id": "repo_to_md/core.py::generate_file_tree.build_tree", + "parent_id": "repo_to_md/core.py::generate_file_tree", + "file_path": "repo_to_md/core.py", + "type": "function", + "name": "build_tree", + "start_line": 86, + "end_line": 92, + "source_code": "def build_tree(level_structure, indent=\"\"):\n for name in sorted(level_structure.keys()):\n is_dir = bool(level_structure[name])\n icon = \"\ud83d\udcc1\" if is_dir else \"\ud83d\udcc4\"\n tree.append(f\"{indent}{icon} {name}\")\n if is_dir:\n build_tree(level_structure[name], indent + \" \")", + "docstring": "", + "dependencies": [ + "sorted", + "build_tree", + "bool" + ], + "level": 1, + "structural_vector": [ + 1, + 1, + 0.3272058823529412, + 0.025735294117647058 + ], + "semantic_embedding": [ + -0.0251068864017725, + 0.0644279196858406, + 0.008202411234378815, + 0.014018724672496319, + 0.00884222611784935, + -0.09405726939439774, + -0.019196949899196625, + 0.0018988557858392596, + -0.0420822948217392, + 0.04878365993499756, + 0.03652719780802727, + 0.011616618372499943, + 0.06529701501131058, + -0.007208583410829306, + -0.004369298927485943, + 0.07224195450544357, + -0.14132045209407806, + 0.03320233151316643, + 0.055868253111839294, + -0.12430395185947418, + 0.07565829902887344, + 0.07451476156711578, + 0.08022025227546692, + 0.06864983588457108, + 0.028832338750362396, + -0.031669195741415024, + -0.0338251031935215, + 0.048628583550453186, + -0.006700450088828802, + -0.031638823449611664, + 0.011534446850419044, + 0.011653231456875801, + 0.08741989731788635, + 0.05995211377739906, + 0.03621982783079147, + 0.05811553820967674, + -0.03894305229187012, + -0.038463860750198364, + 0.05432320758700371, + 0.017924711108207703, + -0.007531698793172836, + 0.0797470435500145, + 0.05300351604819298, + -0.11060507595539093, + -0.10316572338342667, + 0.036001838743686676, + -0.03440596163272858, + -0.025230104103684425, + -0.021672526374459267, + -0.014914148487150669, + 0.01007780246436596, + -0.0731264054775238, + -0.10723325610160828, + -0.10179312527179718, + -0.022661147639155388, + 0.07671474665403366, + 0.00862644799053669, + -0.010908872820436954, + -0.04673830419778824, + -0.02089422009885311, + 0.07996265590190887, + 0.03742728754878044, + -0.010226686485111713, + -0.05726293846964836, + 0.02505549229681492, + 0.0527176596224308, + 0.004828287288546562, + 0.08155940473079681, + 0.03952910378575325, + 0.002155632944777608, + 0.07323084771633148, + -0.028434932231903076, + -0.02815357781946659, + -0.006461800076067448, + -0.006330492906272411, + -0.01862616091966629, + 0.07074779272079468, + 0.09457658231258392, + -0.07562116533517838, + -0.00829721987247467, + -0.09109307825565338, + 0.017848575487732887, + -0.023393653333187103, + 0.01943833939731121, + 0.03466801717877388, + 0.003928993362933397, + 0.010266611352562904, + 0.08247420936822891, + -0.02928103506565094, + -0.018942816182971, + 0.004173209425061941, + -0.06535246223211288, + -0.0014152710791677237, + 0.01579577475786209, + -0.025300700217485428, + 0.07324223965406418, + 0.04048833250999451, + -0.04097564518451691, + -0.07363846898078918, + 0.016796110197901726, + -0.07941509038209915, + -0.05899052694439888, + 0.024755962193012238, + -0.10444718599319458, + 0.013836762867867947, + 0.11272867023944855, + -0.06868849694728851, + -0.10095254331827164, + -0.006385600659996271, + 0.02298545651137829, + -0.04804370179772377, + -0.034977883100509644, + -0.049745794385671616, + -0.02537492848932743, + -0.04075685888528824, + 0.0036751877050846815, + -0.024943208321928978, + -0.01946134865283966, + -0.006723456550389528, + -0.02040787599980831, + 0.12689825892448425, + -0.05596190690994263, + -0.015504811890423298, + 0.01287304237484932, + -0.05913142114877701, + -0.027053920552134514, + -0.04721667245030403, + 8.322458677848524e-34, + 0.03689229115843773, + 0.007824334315955639, + 0.11345156282186508, + 0.03216228261590004, + 0.08083420991897583, + 0.03887096792459488, + 0.048632632941007614, + -0.020745933055877686, + -0.08206566423177719, + 0.003321745665743947, + -0.057954587042331696, + -0.05051898956298828, + -0.08138071000576019, + -0.04306164011359215, + -0.045190852135419846, + -0.06094801053404808, + 0.001907900208607316, + 0.019057581201195717, + -0.08620880544185638, + -0.007442227099090815, + -0.01819974184036255, + 0.01059409324079752, + -0.09250391274690628, + -0.01948520541191101, + 0.04813912510871887, + -0.030701441690325737, + 0.048207033425569534, + -0.029351966455578804, + -0.022990519180893898, + -0.03516101464629173, + -0.05364460125565529, + -0.07484891265630722, + 0.0329149104654789, + -0.0014205931220203638, + -0.0407404787838459, + 0.05029536783695221, + -0.029903540387749672, + -0.0031352306250482798, + -0.0075684888288378716, + -0.017556551843881607, + 0.04544680565595627, + 0.018665704876184464, + 0.025296378880739212, + 0.034323327243328094, + 0.02308100461959839, + 0.0443001389503479, + -0.05818874016404152, + 0.012594464235007763, + 0.008442679420113564, + 0.023142466321587563, + -0.026346910744905472, + 0.031172510236501694, + 0.06020283326506615, + 0.05236538499593735, + -0.04571402072906494, + -0.01220653485506773, + -0.005349287763237953, + 0.08204235881567001, + 0.05208283290266991, + -0.07351156324148178, + 0.10384101420640945, + -0.03441312536597252, + 0.004928151611238718, + 0.0416988879442215, + -0.026345841586589813, + 0.043781913816928864, + 0.01862097904086113, + 0.05109100788831711, + 0.09136445075273514, + 0.03350083902478218, + 0.00457758130505681, + 0.03637874126434326, + -0.04607457295060158, + -0.00411702087149024, + -0.02680639922618866, + 0.01854732073843479, + -0.05233141779899597, + -0.07777633517980576, + -0.045562464743852615, + 0.022672612220048904, + -0.039448391646146774, + 0.01497003436088562, + 0.014808163046836853, + 0.010200876742601395, + 0.12629398703575134, + -0.08378283679485321, + 0.02051439881324768, + 0.0568619966506958, + -0.0017754656728357077, + -0.03681567311286926, + -0.04278089106082916, + -0.09349312633275986, + 0.07826197892427444, + -0.02231735922396183, + 0.03518620505928993, + -3.351494922641626e-33, + 0.10512973368167877, + -0.004798639565706253, + 0.12178785353899002, + -0.04057375341653824, + -0.044811561703681946, + -0.08132664859294891, + -0.07043030858039856, + -0.0319654680788517, + -0.028699694201350212, + 0.05894789099693298, + -0.030491383746266365, + 0.03905481472611427, + 0.03554411232471466, + -0.052194155752658844, + 0.10610278695821762, + 0.0457187257707119, + -0.04606635496020317, + -0.001058173947967589, + 0.008822785690426826, + 0.011659718118607998, + 0.005409328266978264, + 0.02499576285481453, + -0.016627544537186623, + 0.04288143292069435, + -0.025016263127326965, + -0.05208403989672661, + 0.004256912972778082, + -0.011868842877447605, + 0.06026360020041466, + -0.019252801313996315, + -0.026922794058918953, + 0.05938153713941574, + -0.06071333959698677, + -0.004758176859468222, + -0.041119884699583054, + -0.06582627445459366, + -0.0032155108638107777, + -0.04581684619188309, + -0.003830584231764078, + 0.09075242280960083, + 0.012993283569812775, + 0.07621781527996063, + -0.024937843903899193, + 0.018125087022781372, + 0.013827635906636715, + -0.08785325288772583, + 0.06414686888456345, + -0.019878223538398743, + -0.05233452096581459, + -0.05972108989953995, + 0.04391147196292877, + -0.010381474159657955, + -0.009495020844042301, + -0.0487382635474205, + -0.011668218299746513, + 0.005816829390823841, + -0.04757864773273468, + 0.11479078978300095, + -0.010168460197746754, + -0.02768518589437008, + -0.061553288251161575, + -0.06336043030023575, + -0.040482647716999054, + -0.08474922925233841, + -0.07904452085494995, + -0.07677269726991653, + -0.16536398231983185, + -0.045133475214242935, + -0.042970091104507446, + -0.007334520574659109, + -0.012618014588952065, + -0.007131912745535374, + -0.03954840451478958, + 0.012733802199363708, + -0.04232918843626976, + 0.022035203874111176, + 0.00023504416458308697, + 0.04428444430232048, + 0.025343185290694237, + 0.028048200532794, + -0.018761806190013885, + 0.019363880157470703, + -0.012547023594379425, + 0.07411739975214005, + -0.04691139608621597, + -0.10345952957868576, + 0.046360377222299576, + 0.06327427178621292, + 0.022763343527913094, + -0.03423958644270897, + 0.0026292535476386547, + -0.029901856556534767, + 0.07653014361858368, + 0.08150172233581543, + -0.031656548380851746, + -4.423051436219794e-08, + -0.06887243688106537, + -0.009061112068593502, + -0.00036603910848498344, + -0.014029782265424728, + 0.03012561984360218, + 0.02155015617609024, + 0.04228941351175308, + 0.04430479183793068, + 0.019750889390707016, + -0.0279913991689682, + 0.0138443224132061, + 0.026365239173173904, + -0.060100119560956955, + 0.027985844761133194, + -0.027386197820305824, + 0.045683927834033966, + -0.018391182646155357, + 0.10611829161643982, + 0.0055076745338737965, + 0.07097485661506653, + 0.014830266125500202, + 0.011626647785305977, + -0.004928094334900379, + 0.09546241164207458, + -0.06587265431880951, + -0.013789381831884384, + 0.022398490458726883, + 0.0063926163129508495, + -0.026514209806919098, + 0.05241077020764351, + 0.06482409685850143, + 0.017920680344104767, + 0.01519784051924944, + 0.017607370391488075, + -0.010253528133034706, + 0.008651596494019032, + 0.10025535523891449, + 0.045445073395967484, + 0.03516314551234245, + -0.008963977918028831, + -0.033858295530080795, + -0.0699353963136673, + -0.00691659189760685, + -0.008208975195884705, + -0.013120061717927456, + -0.0265785101801157, + -0.01277217734605074, + 0.07892951369285583, + 0.0035021742805838585, + -0.029263656586408615, + -0.020127713680267334, + -0.0005113818333484232, + -0.06085379049181938, + -0.10610757768154144, + -0.013511164113879204, + 0.026948848739266396, + 0.03812287375330925, + 0.1323646456003189, + 0.016085242852568626, + -0.08576823770999908, + 0.05663415417075157, + -0.043786417692899704, + 0.12577567994594574, + 0.021632293239235878 + ] + }, + { + "id": "repo_to_md/core.py::get_github_files_recursive", + "parent_id": null, + "file_path": "repo_to_md/core.py", + "type": "function", + "name": "get_github_files_recursive", + "start_line": 97, + "end_line": 124, + "source_code": "def get_github_files_recursive(owner: str, repo: str) -> Tuple[Optional[List[Dict]], Optional[str]]:\n try:\n repo_info_url = f\"{GITHUB_API}{owner}/{repo}\"\n repo_response = requests.get(repo_info_url, headers=HEADERS, timeout=10)\n repo_response.raise_for_status()\n default_branch = repo_response.json()['default_branch']\n\n branch_info_url = f\"{GITHUB_API}{owner}/{repo}/branches/{default_branch}\"\n branch_response = requests.get(branch_info_url, headers=HEADERS, timeout=10)\n branch_response.raise_for_status()\n tree_sha = branch_response.json()['commit']['commit']['tree']['sha']\n\n tree_url = f\"{GITHUB_API}{owner}/{repo}/git/trees/{tree_sha}?recursive=1\"\n tree_response = requests.get(tree_url, headers=HEADERS, timeout=30)\n tree_response.raise_for_status()\n\n files = [\n {\"path\": item['path']}\n for item in tree_response.json()['tree']\n if item['type'] == 'blob'\n ]\n return files, default_branch\n\n except requests.RequestException as e:\n error_message = f\"Error fetching from GitHub API: {e}. \"\n if 'rate limit' in str(e).lower() and not GITHUB_TOKEN:\n error_message += \"You may have hit the rate limit. Please set a GITHUB_TOKEN environment variable.\"\n raise ConnectionError(error_message) from e", + "docstring": "", + "dependencies": [ + "str", + "ConnectionError" + ], + "level": 0, + "structural_vector": [ + 1, + 0, + 0.40625, + 0.10294117647058823 + ], + "semantic_embedding": [ + -0.03288842737674713, + 0.03546088561415672, + -0.020678341388702393, + -0.014262570068240166, + 0.012864277698099613, + -0.11261261254549026, + -0.03552332893013954, + 0.06828689575195312, + -0.03265795856714249, + 0.014116073958575726, + 0.01800219528377056, + 0.024294313043355942, + 0.006940194871276617, + 0.009926021099090576, + 0.015162180177867413, + 0.02099229022860527, + -0.09073255956172943, + 0.06349126994609833, + 0.049108315259218216, + -0.07698898762464523, + 0.03460536152124405, + 0.11082529276609421, + 0.047854840755462646, + 0.04198482632637024, + 0.005353173241019249, + -0.13180486857891083, + -0.0655784159898758, + -0.004287826828658581, + -0.07740931212902069, + 0.004850021097809076, + 0.06882750988006592, + -0.02393290027976036, + -0.016070852056145668, + 0.018298279494047165, + 0.05211178958415985, + 0.10458580404520035, + 0.008758610114455223, + -0.1009226068854332, + 0.04408741369843483, + 0.05620226263999939, + 0.05041803419589996, + 0.09923683851957321, + 0.02431955188512802, + -0.12490134686231613, + -0.0053688581101596355, + -0.016225993633270264, + 0.05238739028573036, + -0.026918482035398483, + 0.021304739639163017, + -0.0313841737806797, + 0.0032276706770062447, + -0.027063550427556038, + -0.04804583638906479, + -0.03707323223352432, + 0.01124678086489439, + -0.005754855927079916, + -0.029908863827586174, + -0.015629904344677925, + -0.035448696464300156, + -0.06832319498062134, + 0.060731302946805954, + -0.06339658051729202, + -0.031762395054101944, + -0.059985578060150146, + -0.06794257462024689, + 0.014744056388735771, + -0.02105541154742241, + 0.033533159643411636, + 0.038657352328300476, + -0.05875791236758232, + 0.03421691060066223, + -0.009430949576199055, + -0.10940265655517578, + -0.05770348012447357, + 0.007607030216604471, + -0.08358950912952423, + 0.026997020468115807, + 0.12476544082164764, + -0.034825846552848816, + -0.07513055205345154, + -0.07315542548894882, + -0.06710194051265717, + 0.030787106603384018, + 0.0502903014421463, + -0.022870223969221115, + -0.011211772449314594, + 0.02785678580403328, + 0.12007725983858109, + 0.013701843097805977, + -0.016825580969452858, + -0.012412282638251781, + -0.040742285549640656, + 0.014893503859639168, + -0.04686283320188522, + 0.008065225556492805, + 0.07395999133586884, + -0.03749259561300278, + -0.04899442940950394, + -0.03371920436620712, + 0.05307659134268761, + -0.0009435361716896296, + -0.04016920179128647, + 0.07238806039094925, + -0.08605354279279709, + 0.03773590177297592, + 0.10228942334651947, + -0.017320359125733376, + 0.02320343255996704, + -0.05763205885887146, + -0.0077799535356462, + -0.07030843198299408, + -0.006015989929437637, + -0.021623078733682632, + 0.018431736156344414, + 0.010411356575787067, + 0.06154889985918999, + 0.00481291813775897, + 0.022491667419672012, + -0.009355245158076286, + 0.01582111045718193, + 0.17197415232658386, + -0.04227553680539131, + 0.011210177093744278, + 0.002568501979112625, + -0.027024438604712486, + -0.024297257885336876, + -0.02221197821199894, + 3.586991256833455e-33, + 0.04872225970029831, + 0.04051535576581955, + 0.11012689769268036, + -0.03173832595348358, + 0.03616492822766304, + 0.01987377554178238, + 0.014507923275232315, + -0.046337325125932693, + -0.037598617374897, + 0.012065964750945568, + -0.09385222941637039, + 0.0011786476243287325, + -0.02619081176817417, + -0.057825591415166855, + -0.12668117880821228, + -0.02117149531841278, + -0.05122551694512367, + 0.010218003764748573, + 0.0036452668718993664, + 0.09096171706914902, + -0.03250119835138321, + -0.020021183416247368, + -0.05779534950852394, + 0.05363580584526062, + 0.05485306680202484, + -0.07729284465312958, + -0.0035284818150103092, + 0.008473671972751617, + -0.07666508108377457, + -0.05903158336877823, + 0.029102690517902374, + -0.028497258201241493, + 0.038096774369478226, + -0.032589055597782135, + -0.02624725177884102, + -0.06380321830511093, + 0.002202573698014021, + 0.017405301332473755, + -0.07476339489221573, + -0.07317344844341278, + 0.04203638434410095, + 0.023869549855589867, + -0.04442591220140457, + 0.051606435328722, + 0.057747967541217804, + -0.011078456416726112, + -0.03743412345647812, + -0.03313010185956955, + 0.06775126606225967, + 0.07078193128108978, + 0.025908665731549263, + 0.05422055721282959, + 0.01650385372340679, + -0.04519636929035187, + -0.009865575470030308, + -0.02148740366101265, + -0.032241661101579666, + 0.09751884639263153, + 0.03881455957889557, + -0.08619070798158646, + 0.11747566610574722, + -0.07145053148269653, + 0.019642524421215057, + -0.036395687609910965, + 0.010095365345478058, + 0.047238681465387344, + 0.02613537386059761, + 0.10198691487312317, + 0.0202846210449934, + 0.03917615860700607, + -0.03750592842698097, + 0.0509871281683445, + -0.08021716773509979, + -0.08732957392930984, + -0.00980310421437025, + -0.05167817696928978, + 0.05421309545636177, + -0.039639342576265335, + 0.0345369316637516, + -7.150993769755587e-05, + -0.011409147642552853, + -0.037636660039424896, + -0.03731297329068184, + 0.03419258072972298, + 0.006487156730145216, + 0.07681478559970856, + 0.0782671719789505, + 0.027835234999656677, + 0.027527350932359695, + -0.01158040389418602, + -0.058421790599823, + 0.01917114667594433, + -0.05811800807714462, + -0.04895390570163727, + 0.02122284099459648, + -4.683134228845469e-33, + 0.07682104408740997, + -0.10805877298116684, + 0.06616435945034027, + -0.052851032465696335, + 0.010284830816090107, + -0.0151482243090868, + 0.023481059819459915, + -0.007645875681191683, + 0.06508877873420715, + 0.016510559245944023, + -0.013494561426341534, + -0.011252034455537796, + 0.025707479566335678, + -0.023520922288298607, + 0.10539165139198303, + 0.012940384447574615, + -0.05823343247175217, + -0.00397139647975564, + 0.03008832223713398, + -0.0029649727512151003, + 0.00626092916354537, + 0.04737824574112892, + 0.01015703659504652, + 0.02437782846391201, + -0.06705667078495026, + 0.027782991528511047, + -0.049534790217876434, + -0.01911196857690811, + 0.03276275470852852, + -0.0462028793990612, + -0.011711593717336655, + 0.026894262060523033, + -0.11536074429750443, + 0.06391489505767822, + -0.040880899876356125, + -0.010847087018191814, + -0.0281748715788126, + 0.11235208809375763, + 0.018715770915150642, + 0.11891726404428482, + 0.0672050267457962, + 0.058059584349393845, + 0.011842923238873482, + -0.014905848540365696, + 0.011198649182915688, + -0.06039257347583771, + 0.059157513082027435, + 0.04450458288192749, + -0.06690927594900131, + -0.018314098939299583, + 0.03846404328942299, + -0.014434387907385826, + 0.022549672052264214, + 0.04478825256228447, + 0.02618464268743992, + 0.010218709707260132, + 0.027747590094804764, + 0.03881622850894928, + -0.025641364976763725, + -0.040012430399656296, + -0.06821580976247787, + -0.06694667041301727, + -0.09219827502965927, + 0.013197188265621662, + -0.07695803046226501, + -0.06866423040628433, + -0.09278356283903122, + -0.07035020738840103, + 0.030374225229024887, + 0.02616628259420395, + 0.00014714493590872735, + -0.028279174119234085, + -0.008365816436707973, + -0.05136985704302788, + 0.06272979825735092, + 0.09386146068572998, + -0.10139371454715729, + -0.0031895767897367477, + -0.034084971994161606, + 0.09436438977718353, + -0.05828724801540375, + 0.07976182550191879, + -0.026762988418340683, + 0.06076822802424431, + 0.012589222751557827, + -0.1287888139486313, + 0.0062988861463963985, + 0.09084413945674896, + 0.055680014193058014, + -0.03872310370206833, + 0.05055522918701172, + -0.05316527187824249, + 0.03444599360227585, + 0.017692798748612404, + 0.005791491363197565, + -4.806796738421326e-08, + -0.013009738177061081, + 0.04302286356687546, + -0.032414279878139496, + 0.027366532012820244, + 0.025312477722764015, + 0.027740946039557457, + 0.06191897764801979, + -0.032656002789735794, + -0.0033606572542339563, + -0.044315651059150696, + -0.005332736764103174, + -0.0014292331179603934, + -0.0066039771772921085, + 0.03838789463043213, + 0.026988111436367035, + 0.060487374663352966, + 0.010574737563729286, + 0.05769012123346329, + -0.0025941203348338604, + 0.048194967210292816, + -0.013224024325609207, + -0.05918710306286812, + 0.019006380811333656, + -0.007153019309043884, + -0.06478661298751831, + 0.02924228087067604, + 0.04074658080935478, + 0.04780758544802666, + -0.1256852149963379, + -0.013509890995919704, + 0.07674093544483185, + -0.010513098910450935, + -0.049676887691020966, + -0.07832282036542892, + 0.010431261733174324, + -0.01703249104321003, + 0.02115880697965622, + 0.006588747259229422, + 0.08053851127624512, + -0.0024268943816423416, + -0.0408727303147316, + 0.007989023812115192, + -0.020552940666675568, + 0.019617844372987747, + -0.045129284262657166, + -0.01342475414276123, + -0.0015167936217039824, + 0.0331377275288105, + 0.027976026758551598, + -0.02317367121577263, + -0.007476672064512968, + -0.037083595991134644, + -0.030192088335752487, + -0.00580093776807189, + -0.06439600884914398, + 0.0430155023932457, + 0.062271833419799805, + -0.007264012936502695, + -0.006762107368558645, + -0.08391717076301575, + 0.10625950992107391, + 0.02245907112956047, + 0.05596037209033966, + 0.015709513798356056 + ] + }, + { + "id": "repo_to_md/core.py::get_hf_files", + "parent_id": null, + "file_path": "repo_to_md/core.py", + "type": "function", + "name": "get_hf_files", + "start_line": 126, + "end_line": 132, + "source_code": "def get_hf_files(owner: str, repo: str) -> List[Dict]:\n try:\n api = HfApi(token=os.getenv('HF_TOKEN'))\n file_paths = api.list_repo_files(repo_id=f'{owner}/{repo}', repo_type=\"space\")\n return [{\"path\": path} for path in file_paths]\n except Exception as e:\n raise ConnectionError(f\"Error fetching from Hugging Face Hub: {e}\") from e", + "docstring": "", + "dependencies": [ + "HfApi", + "ConnectionError" + ], + "level": 0, + "structural_vector": [ + 1, + 0, + 0.4742647058823529, + 0.025735294117647058 + ], + "semantic_embedding": [ + -0.018810968846082687, + 0.018588028848171234, + -0.03804287314414978, + -0.001439166720956564, + 0.051145635545253754, + -0.07517017424106598, + 0.017350299283862114, + 0.04510853812098503, + -0.054899271577596664, + 0.004809103440493345, + 0.056756217032670975, + -0.0009501352906227112, + -0.007031230255961418, + 0.012550591491162777, + 0.01966274529695511, + 0.018390994518995285, + -0.0980478823184967, + 0.007654647342860699, + 0.06500386446714401, + -0.006424046587198973, + -0.0179385244846344, + 0.08314160257577896, + 0.025356270372867584, + 0.03337350860238075, + -0.05159933865070343, + -0.09931254386901855, + -0.09210100024938583, + 0.043368928134441376, + -0.06846175342798233, + -0.016483277082443237, + 0.1124105229973793, + 0.001990303862839937, + -0.02608742192387581, + -0.0361369289457798, + 0.1189374029636383, + 0.12556171417236328, + -0.0419883131980896, + -0.1034749448299408, + -0.057398851960897446, + 0.04625829681754112, + 0.05970069393515587, + 0.026040446013212204, + 0.023781239986419678, + -0.053945623338222504, + 0.008424665778875351, + -0.0016332234954461455, + 0.10842391103506088, + -0.024454940110445023, + 0.05741487070918083, + -0.08639629185199738, + -0.08176375180482864, + 0.05728531256318092, + -0.06829317659139633, + -0.06566262245178223, + -0.008421792648732662, + 0.042019881308078766, + 0.013550588861107826, + 0.07370295375585556, + -0.01962897554039955, + -0.03253940865397453, + 0.0028897407464683056, + -0.09237650036811829, + 0.014869379810988903, + -0.09230822324752808, + -0.048512764275074005, + 0.00038806747761555016, + 0.017398005351424217, + 0.0494978204369545, + 0.009378364309668541, + -0.049443576484918594, + 0.011837045662105083, + -0.02681332267820835, + -0.08151913434267044, + -0.05778481066226959, + 0.0699094906449318, + -0.02856934256851673, + 0.007835627533495426, + 0.029094811528921127, + 0.03342033550143242, + -0.10530029237270355, + 0.002192363142967224, + -0.05803569033741951, + 0.0957740843296051, + 0.025434505194425583, + -0.018404055386781693, + -0.018400421366095543, + 0.017289085313677788, + -0.012797330506145954, + 0.00021744940022472292, + -0.03983305022120476, + -0.02314123883843422, + -0.07662079483270645, + -0.01574450172483921, + -0.04894033819437027, + -0.006171767599880695, + 0.041555535048246384, + 0.024787038564682007, + 0.05048516392707825, + -0.030466122552752495, + 0.011631133034825325, + -0.048521339893341064, + -0.07495978474617004, + 0.022093093022704124, + -0.014765465632081032, + 0.043587587773799896, + 0.1382112056016922, + -0.008634253405034542, + 0.03587200492620468, + 0.02032468654215336, + -0.037368711084127426, + -0.06784802675247192, + 0.015623155981302261, + -0.06609539687633514, + -0.06213511899113655, + 0.017081795260310173, + 0.034680869430303574, + -0.04879425838589668, + 0.01957118697464466, + -0.013865359127521515, + -0.004238183610141277, + 0.13321161270141602, + -0.057366110384464264, + 0.09048119187355042, + -0.07840985804796219, + -0.027770260348916054, + -0.04691843315958977, + -0.006734476424753666, + 4.388914237648389e-33, + 0.01212078146636486, + 0.025701696053147316, + 0.11532860994338989, + -0.006795721594244242, + 0.004634602926671505, + -0.07170309871435165, + -0.010791294276714325, + 0.001953491475433111, + -0.035593658685684204, + -0.0005451005999930203, + -0.06107562780380249, + 0.004124022554606199, + -0.06255516409873962, + -0.05053883418440819, + -0.10170812904834747, + -0.05677098408341408, + -0.027092691510915756, + -0.0007129510049708188, + -0.053134940564632416, + 0.09899827837944031, + -0.045763056725263596, + 0.027834264561533928, + -0.045355379581451416, + 0.006043857429176569, + -0.02460561692714691, + -0.03682301938533783, + 0.031040899455547333, + -0.018160885199904442, + 0.02928450144827366, + -0.02760820835828781, + -0.01777566783130169, + -0.06310049444437027, + 0.11674926429986954, + 0.005206388421356678, + -0.04644154757261276, + -0.05187536031007767, + -0.024894094094634056, + -0.03408564627170563, + -0.12842634320259094, + -0.10805606096982956, + 0.047972459346055984, + 0.0850338265299797, + 0.015161174349486828, + -0.015261282213032246, + 0.03227749466896057, + 0.042482394725084305, + 0.001303512486629188, + -0.023732755333185196, + -0.019614648073911667, + 0.09552329033613205, + -0.017844174057245255, + -0.004428403452038765, + 0.02790694683790207, + -0.000912963121663779, + 0.0007893367437645793, + -0.038680631667375565, + -0.022481786087155342, + 0.04796968773007393, + 0.09741459041833878, + -0.038210541009902954, + 0.07072365283966064, + -0.0010344055481255054, + 0.05543629080057144, + -0.01792602613568306, + 0.022563369944691658, + 0.0038874014280736446, + 0.024399954825639725, + 0.03919123113155365, + 0.0024262303486466408, + 0.11086554080247879, + 0.005624314304441214, + 0.0956762507557869, + -0.031282056123018265, + -0.04026934131979942, + 0.0438259094953537, + -0.014807191677391529, + 0.007379025686532259, + 0.0021426575258374214, + 0.03577472269535065, + -0.00522703118622303, + -0.020455777645111084, + -0.035060182213783264, + 0.05137572064995766, + 0.027723893523216248, + -0.05402647331357002, + 0.027140086516737938, + 0.0026062584947794676, + -0.006643279921263456, + 0.017726430669426918, + 0.0011518830433487892, + -0.01273365505039692, + -0.0075256358832120895, + 0.05229397118091583, + -0.04115747660398483, + -0.06097661331295967, + -4.8966344923395206e-33, + 0.06936552375555038, + -0.02210341952741146, + 0.052523404359817505, + -0.08780278265476227, + 0.022412177175283432, + 0.1046864315867424, + 0.04196866974234581, + 0.018230579793453217, + 0.04593256860971451, + -0.024613043293356895, + -0.0028057259041815996, + -0.007703028619289398, + 0.04910775274038315, + -0.12517572939395905, + 0.10452034324407578, + -0.03537699207663536, + -0.015410295687615871, + -0.05110325664281845, + -0.04938945919275284, + 0.032401058822870255, + -0.03062056377530098, + -0.04029013589024544, + 0.014301440678536892, + 0.02210104651749134, + -0.008547671139240265, + 0.03744896501302719, + -0.006670223083347082, + -0.01975247450172901, + -0.03856237605214119, + 0.013338172808289528, + -0.01048635970801115, + -0.014994453638792038, + -0.13033872842788696, + 0.09072201699018478, + 0.006459605414420366, + 0.002790438709780574, + -0.031945426017045975, + 0.10279715061187744, + -0.028754759579896927, + -0.011091677471995354, + -0.014772609807550907, + -0.01781817525625229, + 0.032255869358778, + 0.020897459238767624, + 0.018432501703500748, + -0.02866709791123867, + -0.03803585097193718, + 0.057379432022571564, + -0.031157653778791428, + 0.034822143614292145, + 0.0634830966591835, + -0.0016132690943777561, + -0.03884980455040932, + -0.026264997199177742, + -0.022734923288226128, + 0.08981522917747498, + 0.09946984797716141, + 0.015629984438419342, + -0.07385435700416565, + 0.02492602728307247, + 0.0016175589989870787, + -0.05339031293988228, + -0.11806627362966537, + 0.0545053593814373, + -0.07997722178697586, + 0.0055601526983082294, + -0.15636314451694489, + -0.09958642721176147, + 0.028751488775014877, + 0.008459877222776413, + 0.022905632853507996, + -0.003293670015409589, + 0.025705203413963318, + 0.01733202300965786, + 0.05286629870533943, + 0.11287592351436615, + -0.03246838599443436, + -0.010724741034209728, + 0.03692236170172691, + 0.11544445902109146, + -0.02622396871447563, + 0.007144877687096596, + 0.04856736585497856, + 0.0780332013964653, + 0.0038664042949676514, + -0.09022675454616547, + 0.001280217315070331, + -0.0005608050851151347, + 0.05034688860177994, + -0.027126094326376915, + 0.04628445953130722, + -0.015876159071922302, + 0.046281490474939346, + 0.052321404218673706, + 0.03676576539874077, + -4.667806763336557e-08, + -0.054715003818273544, + -0.022210467606782913, + 0.01007456798106432, + -0.05655886232852936, + -0.017593057826161385, + 0.05264025554060936, + 0.013216295279562473, + -0.06218678876757622, + 0.05683544650673866, + 0.11729638278484344, + 0.0009628713014535606, + -0.02921607531607151, + -0.01883627660572529, + 0.04614263027906418, + -0.046388860791921616, + 0.040789276361465454, + 0.04431269317865372, + 0.08189812302589417, + -0.037216007709503174, + 0.017879312857985497, + -0.02300981804728508, + -0.06188400089740753, + 0.0022799375001341105, + -0.01001724787056446, + -0.023991195484995842, + -0.06951994448900223, + 0.04316508769989014, + 0.03679946810007095, + -0.09050530195236206, + -0.042729269713163376, + 0.02213808335363865, + -0.05599306896328926, + -0.06121109798550606, + 0.01239598635584116, + 0.014761295169591904, + 0.042540449649095535, + 0.0816294252872467, + -0.0003893182729370892, + -0.013014362193644047, + 0.039444636553525925, + -0.02958936057984829, + 0.038074880838394165, + 0.010551338084042072, + -0.013762544840574265, + -0.005118739325553179, + 0.023668549954891205, + 0.0023109596222639084, + 0.06476711481809616, + -0.026006579399108887, + 0.014004362747073174, + 0.03940366953611374, + -0.02097042091190815, + -0.07842937111854553, + -0.00254643801599741, + -0.055870067328214645, + -0.00896676816046238, + 0.07196728885173798, + -0.0047331880778074265, + 0.020020542666316032, + -0.08155888319015503, + 0.07852808386087418, + 0.019156550988554955, + 0.08271225541830063, + 0.06945544481277466 + ] + }, + { + "id": "repo_to_md/core.py::get_repo_contents", + "parent_id": null, + "file_path": "repo_to_md/core.py", + "type": "function", + "name": "get_repo_contents", + "start_line": 134, + "end_line": 154, + "source_code": "def get_repo_contents(url: str) -> Tuple[Optional[str], Optional[str], Optional[str], Union[List[Dict], str], bool]:\n try:\n parts = url.rstrip('/').split('/')\n owner, repo = parts[-2], parts[-1]\n is_hf = \"huggingface.co\" in url.lower()\n default_branch = None\n\n if is_hf:\n files = get_hf_files(owner, repo)\n else:\n files, default_branch = get_github_files_recursive(owner, repo)\n\n if not files:\n error_msg = f\"No files found in {'Hugging Face Space' if is_hf else 'GitHub repository'}.\"\n if not is_hf and not GITHUB_TOKEN:\n error_msg += \" If this is a private repo or you've hit a rate limit, please set a GITHUB_TOKEN.\"\n raise ValueError(error_msg)\n \n return owner, repo, default_branch, files, is_hf\n except Exception as e:\n return None, None, None, f\"Error fetching repo contents: {str(e)}\", False", + "docstring": "", + "dependencies": [ + "get_hf_files", + "get_github_files_recursive", + "str", + "ValueError" + ], + "level": 0, + "structural_vector": [ + 1, + 0, + 0.5294117647058824, + 0.07720588235294118 + ], + "semantic_embedding": [ + -0.04574240371584892, + 0.002149958163499832, + -0.015762673690915108, + -0.013139449991285801, + 0.0697396993637085, + -0.10136795043945312, + 0.0062111723236739635, + -0.004696095362305641, + -0.026436690241098404, + 0.00389114604331553, + 0.06017954275012016, + 0.03580391779541969, + 0.01848083734512329, + -0.0029591978527605534, + 0.0019432406406849623, + 0.03709331154823303, + -0.0691317617893219, + 0.05571642518043518, + 0.06135821342468262, + -0.05753299966454506, + 0.014522920362651348, + 0.12262275815010071, + 0.06016620248556137, + 0.04629301279783249, + 0.006378532387316227, + -0.07218844443559647, + -0.09638320654630661, + 0.024888891726732254, + -0.05930781364440918, + -0.0246946569532156, + 0.10166987776756287, + 0.0137359369546175, + -0.005042108241468668, + -0.005969468504190445, + 0.14254552125930786, + 0.13138315081596375, + -0.02579350769519806, + -0.0840601921081543, + -0.0015977848088368773, + 0.05333571135997772, + 0.004906296264380217, + 0.04162168502807617, + -0.007592388894408941, + -0.05932069197297096, + -0.020789438858628273, + 0.029223863035440445, + 0.05282258987426758, + -0.031235624104738235, + 0.033674828708171844, + -0.07800459116697311, + -0.02865496277809143, + -0.010733861476182938, + -0.0951039269566536, + -0.0019687353633344173, + 0.030496666207909584, + -0.01713584177196026, + -0.013159270398318768, + -0.019773513078689575, + -0.048484645783901215, + -0.07339087128639221, + 0.06895402818918228, + -0.05029479041695595, + 0.0013413012493401766, + -0.07537192851305008, + -0.0580311119556427, + -0.02972368337213993, + -0.013581382110714912, + 0.09496377408504486, + 0.0011329861590638757, + -0.03661893308162689, + -0.0004192052292637527, + -0.002978286240249872, + -0.07874055206775665, + 0.009038959629833698, + 0.019502980634570122, + -0.037915606051683426, + 0.04719117283821106, + 0.07098908722400665, + -0.04552900418639183, + -0.08513519167900085, + -0.03207595646381378, + -0.040651656687259674, + 0.0949326604604721, + 0.011653981171548367, + -0.015910163521766663, + -0.02604607120156288, + 0.054818470031023026, + 0.07827969640493393, + 0.020042747259140015, + -0.013400130905210972, + -0.026331156492233276, + -0.0397103875875473, + 0.06906558573246002, + -0.058712027966976166, + 0.018181361258029938, + 0.03699725866317749, + 0.007032911758869886, + 0.02291719615459442, + -0.016038917005062103, + 0.048404935747385025, + -0.010266861878335476, + -0.046980906277894974, + 0.07998432219028473, + -0.11533726751804352, + 0.03413538634777069, + 0.13134098052978516, + 0.016873089596629143, + 0.052283864468336105, + 0.020693916827440262, + -0.013431010767817497, + -0.07185608893632889, + -0.0003712723555509001, + -0.020346498116850853, + -0.04185739532113075, + 0.007777316961437464, + 0.02318638749420643, + 0.02940499223768711, + 0.00901040155440569, + 0.009061524644494057, + 0.003676553023979068, + 0.1431465595960617, + -0.049081675708293915, + 0.06451309472322464, + -0.03399358317255974, + -0.09057588875293732, + -0.03700708597898483, + -0.018754329532384872, + 4.9952224688590166e-33, + 0.05667461082339287, + 0.07528258115053177, + 0.08373455703258514, + -0.02448113076388836, + -7.972187449922785e-05, + 0.0026054237969219685, + 0.03262918069958687, + -0.02475964091718197, + -0.08126461505889893, + 0.01365406159311533, + -0.07121045887470245, + 0.0016067714896053076, + -0.0349687784910202, + -0.054762694984674454, + -0.13778989017009735, + -0.05436212196946144, + -0.039319008588790894, + 0.007321780547499657, + 0.008492633700370789, + 0.042761437594890594, + -0.10161910206079483, + 0.016077350825071335, + -0.07610180974006653, + 0.06607535481452942, + -0.007341703865677118, + -0.09787697345018387, + 0.016305536031723022, + -0.04135248437523842, + -0.06401745229959488, + -0.04741249233484268, + -0.0047320034354925156, + -0.010665273293852806, + 0.0809641033411026, + 0.009398574009537697, + -0.014127588830888271, + -0.05198389291763306, + -0.012976289726793766, + -0.02482498623430729, + -0.100262351334095, + -0.05951762571930885, + 0.039431411772966385, + 0.006978111807256937, + 0.0077407751232385635, + 0.013446756638586521, + 0.016314467415213585, + 0.01165967620909214, + -0.02836291864514351, + -0.029760705307126045, + 0.0018082867609336972, + 0.08168821781873703, + 0.03610510379076004, + 0.04917058348655701, + 0.01687769964337349, + -0.025162331759929657, + -0.05054481700062752, + -0.015270140022039413, + -0.06760311126708984, + 0.05393849313259125, + 0.07829228043556213, + -0.08726751059293747, + 0.07740940898656845, + -0.015229234471917152, + 0.04977313056588173, + -0.012891757301986217, + -0.004368796478956938, + 0.03101544827222824, + 0.055641960352659225, + 0.06934395432472229, + 0.03481397032737732, + 0.05538847669959068, + -0.05033046752214432, + 0.03222781792283058, + -0.08056215196847916, + -0.04667651280760765, + 0.019334154203534126, + -0.0709734559059143, + 0.03207310661673546, + -0.030732661485671997, + 0.0609801821410656, + -0.0024662059731781483, + -0.036154985427856445, + -0.03942476212978363, + 0.03862440958619118, + 0.02838529832661152, + -0.05012444034218788, + 0.023167472332715988, + 0.05843392759561539, + 0.017294365912675858, + -0.0016021602787077427, + -0.03712373599410057, + -0.0565854012966156, + -0.011360741220414639, + -0.057956621050834656, + -0.07368969172239304, + 0.017022548243403435, + -6.007459756135289e-33, + 0.10185027122497559, + -0.06371673196554184, + 0.050456758588552475, + -0.05625893548130989, + -0.022095199674367905, + 0.01969693787395954, + 0.020823631435632706, + -0.03815583512187004, + 0.07258863002061844, + -0.008422177284955978, + 0.020993486046791077, + -0.012360149063169956, + 0.012831483036279678, + -0.1118738055229187, + 0.08472646027803421, + -0.005370939150452614, + -0.05127115920186043, + -0.037515755742788315, + -0.02020709030330181, + 0.05874170735478401, + -0.004619523882865906, + 0.005812685005366802, + 0.026882555335760117, + 0.03243127837777138, + -0.02403103932738304, + 0.05872942507266998, + -0.02466443181037903, + -0.057343464344739914, + 0.051572464406490326, + -0.03867673501372337, + 0.01387306209653616, + 0.011435641907155514, + -0.13498257100582123, + 0.014379363507032394, + -0.06761998683214188, + -0.007433353457599878, + -0.049325648695230484, + 0.12679049372673035, + -0.0095738610252738, + 0.06776277720928192, + 0.03593401610851288, + 0.047752201557159424, + 0.008624083362519741, + 0.033693645149469376, + -0.00866918358951807, + -0.07826019078493118, + 0.01504365261644125, + 0.06367461383342743, + -0.044280774891376495, + 0.02398308552801609, + 0.04649500548839569, + -0.04426347091794014, + -0.017472097650170326, + -0.009316735900938511, + 0.029679210856556892, + 0.022864477708935738, + 0.00564185855910182, + 0.060579702258110046, + -0.07854323834180832, + -0.02560473047196865, + -0.01465623825788498, + -0.016654225066304207, + -0.11640936136245728, + 0.017637085169553757, + -0.06769329309463501, + -0.03451073542237282, + -0.14411619305610657, + -0.07513058185577393, + 0.02828052267432213, + -0.011274983175098896, + 0.0014209337532520294, + -0.013448917306959629, + 0.03087199479341507, + -0.0707339495420456, + 0.07468046993017197, + 0.11620975285768509, + -0.03215915709733963, + 0.021094825118780136, + -0.02342933975160122, + 0.08538007736206055, + -0.035017624497413635, + 0.005715830251574516, + 0.02889985591173172, + 0.051484592258930206, + -0.020183738321065903, + -0.09814222902059555, + -0.01088903471827507, + 0.020177146419882774, + 0.0464712493121624, + -0.06311675161123276, + 0.023465625941753387, + -0.009957898408174515, + 0.09143749624490738, + 0.05141261965036392, + 0.02370491623878479, + -5.4980311858798814e-08, + -0.003346250159665942, + 0.008506101556122303, + -0.006430379580706358, + -0.034728772938251495, + -0.006530445534735918, + 0.05096808075904846, + 0.045956168323755264, + -0.05038434639573097, + 0.011460484936833382, + 0.014654786325991154, + 0.051860250532627106, + -0.015255380421876907, + -0.005987366661429405, + 0.009182286448776722, + -0.034018151462078094, + 0.07699008285999298, + 0.023318128660321236, + 0.05495443940162659, + -0.03644005209207535, + 0.07199209928512573, + -0.050144582986831665, + -0.06147187575697899, + -0.008097167126834393, + -0.010060463100671768, + -0.0358230285346508, + -0.0008118276600725949, + 0.015500142239034176, + 0.034652214497327805, + -0.08964692056179047, + -0.01509682647883892, + 0.107926145195961, + -0.02781771495938301, + -0.07984405010938644, + -0.056727148592472076, + 0.030916452407836914, + 0.04360756650567055, + 0.047583695501089096, + -0.019118133932352066, + 0.03104683756828308, + 0.012867048382759094, + -0.033116091042757034, + 0.002976299962028861, + 0.011015483178198338, + 0.009171192534267902, + -0.05076442286372185, + -0.04016578570008278, + 0.014554839581251144, + -0.004492257721722126, + -0.00618347292765975, + -0.012903939932584763, + 0.04194493964314461, + -0.01970485970377922, + -0.08378371596336365, + 0.03554724529385567, + -0.05569019913673401, + 0.06157096102833748, + 0.13482630252838135, + 0.06894408911466599, + -0.004419348202645779, + -0.07895918190479279, + 0.038807857781648636, + 0.021769799292087555, + 0.11124342679977417, + 0.021411100402474403 + ] + }, + { + "id": "repo_to_md/core.py::process_file_content", + "parent_id": null, + "file_path": "repo_to_md/core.py", + "type": "function", + "name": "process_file_content", + "start_line": 156, + "end_line": 190, + "source_code": "def process_file_content(file_info: Dict, owner: str, repo: str, default_branch: Optional[str] = None, is_hf: bool = False) -> str:\n file_path = file_info['path']\n try:\n if is_hf:\n url = f\"https://huggingface.co/spaces/{owner}/{repo}/raw/main/{file_path}\"\n response = requests.get(url, timeout=10)\n else:\n url = f\"https://raw.githubusercontent.com/{owner}/{repo}/{default_branch}/{file_path}\"\n response = requests.get(url, timeout=10)\n\n response.raise_for_status()\n content_raw = response.content\n \n if is_binary_content(file_path, content_raw):\n return f\"### File: {file_path}\\n[Binary file - {len(content_raw)} bytes]\\n\\n\"\n \n text_content = content_raw.decode('utf-8', errors='replace')\n file_extension = Path(file_path).suffix[1:].lower() or 'text'\n \n if file_extension == 'json':\n try:\n formatted_json = json.dumps(json.loads(text_content), indent=2)\n return f\"### File: {file_path}\\n```json\\n{formatted_json}\\n```\\n\\n\"\n except json.JSONDecodeError:\n return f\"### File: {file_path}\\n```json\\n{text_content}\\n```\\n[Note: Invalid JSON format]\\n\\n\"\n \n return f\"### File: {file_path}\\n```{file_extension}\\n{text_content}\\n```\\n\\n\"\n\n except requests.RequestException as e:\n error_message = f\"Error fetching file content: {e}\"\n if '404' in str(e):\n error_message += \" (This can happen with submodules or broken links)\"\n return f\"### File: {file_path}\\n[{error_message}]\\n\\n\"\n except Exception as e:\n return f\"### File: {file_path}\\n[Error processing file: {str(e)}]\\n\\n\"", + "docstring": "", + "dependencies": [ + "Path", + "str", + "len", + "is_binary_content" + ], + "level": 0, + "structural_vector": [ + 1, + 0, + 0.6360294117647058, + 0.12867647058823528 + ], + "semantic_embedding": [ + -0.03695813566446304, + 0.03529965132474899, + -0.04550885781645775, + -0.006425614934414625, + 0.04502463713288307, + -0.13145801424980164, + -0.032016754150390625, + 0.0481603778898716, + -0.009620551019906998, + 0.02245173417031765, + 0.002777279820293188, + 0.040804821997880936, + 0.0024845029693096876, + 0.022932767868041992, + 0.0011709803948178887, + 0.0072002410888671875, + -0.04720180109143257, + 0.056048862636089325, + 0.02140350453555584, + -0.027163252234458923, + 0.061354756355285645, + 0.10368358343839645, + 0.11333315074443817, + 0.042648423463106155, + -0.03513338789343834, + -0.05990859493613243, + -0.05568934977054596, + 0.04138333722949028, + -0.022570472210645676, + -0.0400722436606884, + 0.12050069123506546, + 0.01000839751213789, + -0.005303111858665943, + 0.002133377827703953, + 0.13572487235069275, + 0.15289314091205597, + -0.008632369339466095, + -0.1275707632303238, + -0.004002811387181282, + 0.04079468548297882, + 0.07154809683561325, + 0.039334338158369064, + -0.030876843258738518, + -0.0547497533261776, + 0.0060983682051301, + 0.011589651927351952, + 0.05781492590904236, + -0.0217151939868927, + 0.019704973325133324, + -0.06937413662672043, + -0.010106063447892666, + 0.007963422685861588, + -0.08067741990089417, + 0.009378064423799515, + 0.022177891805768013, + -0.02226174809038639, + -0.006837942637503147, + -0.019037416204810143, + -0.015261908993124962, + -0.06530549377202988, + 0.04369523003697395, + -0.04606803506612778, + 0.0007163899717852473, + -0.06851127743721008, + -0.033392537385225296, + 0.041285622864961624, + -0.06651291251182556, + 0.06915249675512314, + -0.001593332039192319, + -0.054177526384592056, + 0.011596663855016232, + -0.020628727972507477, + -0.12638364732265472, + -0.01990736648440361, + -0.009020174853503704, + -0.10670781880617142, + 0.03588966652750969, + 0.0729873776435852, + -0.06942284107208252, + -0.05698700249195099, + -0.03605983406305313, + -0.11602737009525299, + 0.08230985701084137, + 0.039479125291109085, + -0.003626024117693305, + -0.010957816615700722, + 0.041165824979543686, + 0.08609294146299362, + 0.033386941999197006, + -0.008263618685305119, + -0.040000807493925095, + -0.008919566869735718, + 0.030074069276452065, + -0.024049319326877594, + 0.016695601865649223, + 0.06025392562150955, + -0.018386157229542732, + 0.024225948378443718, + -0.005163717083632946, + 0.025514302775263786, + 0.012909370474517345, + -0.07850053161382675, + 0.042768340557813644, + -0.09695319831371307, + 0.0832458883523941, + 0.08127444237470627, + 0.04068196937441826, + 0.07050111889839172, + -0.004961561877280474, + -0.02012678049504757, + -0.0675051286816597, + -0.027375079691410065, + -0.03535926714539528, + -0.010280593298375607, + 0.03916626796126366, + 0.012713798321783543, + 0.03805321082472801, + 0.07387059926986694, + -0.005785939749330282, + 0.0360819511115551, + 0.18082942068576813, + -0.021405737847089767, + 0.03700333833694458, + -0.010436996817588806, + -0.040152255445718765, + -0.0986962541937828, + 0.07303088158369064, + 4.682281628099138e-33, + 0.012378946878015995, + -0.0030181489419192076, + 0.07812174409627914, + -0.027862606570124626, + 0.04350266233086586, + 0.0067747365683317184, + 0.013512315228581429, + -0.047904789447784424, + -0.04315461218357086, + -0.003925407771021128, + -0.07291736453771591, + -0.010082445107400417, + -0.03879133239388466, + -0.045308467000722885, + -0.11310994625091553, + -0.04257667437195778, + -0.0467144139111042, + 0.010308693163096905, + 0.03889033943414688, + 0.08831444382667542, + -0.02524661272764206, + -0.03398554027080536, + -0.07659805566072464, + 0.015405583195388317, + -0.010772555135190487, + -0.11841332167387009, + -0.023617666214704514, + -0.036960579454898834, + -0.03781057521700859, + -0.06987691670656204, + -0.01847882755100727, + -0.014078915119171143, + 0.0617939792573452, + 0.010166453197598457, + -0.03142024204134941, + -0.05420132353901863, + 0.009726631455123425, + 0.03115287981927395, + -0.11785729229450226, + -0.08499496430158615, + 0.0661548525094986, + 0.00856972299516201, + -0.004052591975778341, + 0.0343959741294384, + 0.0051049888134002686, + -0.01961299404501915, + -0.0409812368452549, + -0.048667389899492264, + 0.0038273546379059553, + 0.06930318474769592, + 0.09402541816234589, + 0.04541223868727684, + 0.08097536861896515, + -0.04616112262010574, + -0.04619798809289932, + -0.0038683833554387093, + -0.04319054260849953, + -0.0005835426272824407, + 0.022835660725831985, + -0.06004369258880615, + 0.08685626834630966, + -0.024406278505921364, + 0.03269430994987488, + -0.03257564455270767, + 0.04186893627047539, + 0.00582402478903532, + 0.06341860443353653, + 0.07435031980276108, + 0.02665875107049942, + 0.045667730271816254, + -0.09734009951353073, + 0.0254871416836977, + -0.05667364224791527, + -0.05871652439236641, + -0.009387330152094364, + -0.061644114553928375, + -0.0014438081998378038, + -0.00846431590616703, + 0.06191603094339371, + -0.02041199430823326, + -0.01820569671690464, + -0.05174054577946663, + -0.01652168110013008, + -0.011123865842819214, + -0.042429979890584946, + 0.06944181770086288, + 0.01426791027188301, + -0.021965472027659416, + -0.005725756287574768, + -0.02606554888188839, + -0.023671336472034454, + -0.030644195154309273, + -0.04997381567955017, + -0.029705606400966644, + 0.022161871194839478, + -6.470565224766915e-33, + 0.11404848098754883, + -0.08005597442388535, + 0.031553130596876144, + 0.017931567505002022, + -0.018564071506261826, + 0.03097628615796566, + 0.03491076081991196, + -0.004081432241946459, + 0.1006205677986145, + 0.006148541811853647, + -0.0006079808808863163, + -0.011465884745121002, + 0.021657977253198624, + -0.047212153673172, + 0.026734618470072746, + 0.0030587504152208567, + -0.06688889116048813, + -0.004077395889908075, + -0.0009774636710062623, + 0.031920045614242554, + -0.03409610688686371, + 0.008275570347905159, + 0.0060685849748551846, + 0.010287809185683727, + -0.043450478464365005, + 0.053518980741500854, + -0.0036636998411267996, + -0.015764746814966202, + 0.024103857576847076, + -0.043522272258996964, + -0.039052948355674744, + 0.018458256497979164, + -0.13412415981292725, + -0.03075351193547249, + -0.02624037303030491, + 0.009351469576358795, + -0.03961418941617012, + 0.1335671842098236, + 0.002622723812237382, + 0.08982758224010468, + 0.10105724632740021, + 0.07023973762989044, + -0.02901533618569374, + 0.02919933758676052, + 0.027152959257364273, + 0.015946757048368454, + 0.04734759405255318, + 0.02256406471133232, + -0.06154722347855568, + -0.006139776669442654, + 0.05737825855612755, + -0.007095627952367067, + 0.04247574880719185, + 0.040971990674734116, + 0.05732761695981026, + 0.007530876435339451, + -0.026818260550498962, + -0.001820277888327837, + -0.10296566039323807, + -0.03932470455765724, + -0.006706405431032181, + -0.03820153325796127, + -0.11352940648794174, + -0.001953519880771637, + -0.055845022201538086, + -0.04930797591805458, + -0.10280434042215347, + -0.07452312111854553, + 0.039464909583330154, + -0.007489784620702267, + 0.0426262728869915, + -0.018234942108392715, + 0.01013718917965889, + -0.03481389209628105, + 0.08648061752319336, + 0.08615399897098541, + -0.05046394094824791, + -0.05024665221571922, + -0.03589354455471039, + 0.12246851623058319, + -0.028140852227807045, + 0.08433615416288376, + -0.04466915503144264, + 0.05280747264623642, + -0.022147580981254578, + -0.07024311274290085, + -0.028647050261497498, + 0.06252889335155487, + 0.03149808198213577, + -0.0707082524895668, + 0.06100865453481674, + -0.01269903127104044, + 0.010501984506845474, + 0.002558093285188079, + -0.025539875030517578, + -5.750717235741831e-08, + -0.005220175255089998, + 0.015912091359496117, + -0.026456467807292938, + -0.00015020252612885088, + -0.005432941950857639, + 0.0670810118317604, + 0.050862979143857956, + -0.09279172867536545, + 0.04326261952519417, + -0.007732064463198185, + 0.01010015606880188, + -0.015557510778307915, + -0.007787123788148165, + 0.01922762393951416, + -0.051850493997335434, + 0.06854283809661865, + 0.009981882758438587, + 0.036645449697971344, + -0.0018151792464777827, + -0.0067435032688081264, + -0.007821068167686462, + -0.058900631964206696, + -0.008350846357643604, + 0.0173452477902174, + -0.024836255237460136, + 0.02515699528157711, + 0.04648935794830322, + 0.018073344603180885, + -0.1086275652050972, + -0.010295378975570202, + 0.10315586626529694, + -0.050041429698467255, + -0.06267637759447098, + -0.00978818442672491, + -0.013694285415112972, + 0.01581365428864956, + 0.03377501294016838, + -0.0375232994556427, + 0.06393224745988846, + 0.027894064784049988, + -0.024582315236330032, + 0.04600927606225014, + -0.01842634193599224, + -0.025488466024398804, + -0.05081076920032501, + -0.033722929656505585, + 0.0205320343375206, + -0.0007238885154947639, + -0.029012521728873253, + 0.008338600397109985, + 0.05241493508219719, + -0.04282115027308464, + -0.08454601466655731, + 0.03225710988044739, + -0.028753360733389854, + 0.02436867356300354, + 0.09061112254858017, + -0.008141729980707169, + -0.05334920436143875, + -0.04499030113220215, + 0.07387229800224304, + 0.012537205591797829, + 0.09106770157814026, + 0.021424410864710808 + ] + }, + { + "id": "repo_to_md/core.py::process_uploaded_file", + "parent_id": null, + "file_path": "repo_to_md/core.py", + "type": "function", + "name": "process_uploaded_file", + "start_line": 192, + "end_line": 211, + "source_code": "def process_uploaded_file(file: object) -> str:\n filename = getattr(file, 'filename', 'unknown')\n try:\n content_raw = file.read()\n \n if is_binary_content(filename, content_raw):\n return f\"### File: {filename}\\n[Binary file - {len(content_raw)} bytes]\\n\\n\"\n \n text_content = content_raw.decode('utf-8', errors='replace')\n file_extension = Path(filename).suffix[1:].lower() or 'text'\n \n if file_extension == 'json':\n try:\n formatted_json = json.dumps(json.loads(text_content), indent=2)\n return f\"### File: {filename}\\n```json\\n{formatted_json}\\n```\\n\\n\"\n except json.JSONDecodeError:\n return f\"### File: {filename}\\n```json\\n{text_content}\\n```\\n[Note: Invalid JSON format]\\n\\n\"\n return f\"### File: {filename}\\n```{file_extension}\\n{text_content}\\n```\\n\\n\"\n except Exception as e:\n return f\"### File: {filename}\\n[Error processing file: {str(e)}]\\n\\n\"", + "docstring": "", + "dependencies": [ + "Path", + "str", + "is_binary_content", + "len", + "getattr" + ], + "level": 0, + "structural_vector": [ + 1, + 0, + 0.7408088235294118, + 0.07352941176470588 + ], + "semantic_embedding": [ + -0.06286773085594177, + 0.03990007936954498, + -0.04279216006398201, + -0.01420694962143898, + 0.053851816803216934, + -0.1096828505396843, + -0.06309209764003754, + 0.08624651283025742, + -0.03751489892601967, + 0.017782166600227356, + -0.004381720442324877, + 0.030991246923804283, + 0.008282042108476162, + 0.055208660662174225, + -0.0051946756429970264, + -0.03167613595724106, + -0.13788682222366333, + 0.014251320622861385, + -0.03764780983328819, + -0.06278964877128601, + 0.06308919191360474, + 0.0848565623164177, + 0.07195862382650375, + 0.00666531827300787, + 0.011369554325938225, + -0.05884299427270889, + 0.023389600217342377, + 0.04458661377429962, + -0.06969276815652847, + -0.003963427152484655, + 0.04443494603037834, + -0.017725424841046333, + 0.06695079803466797, + -0.010765701532363892, + 0.15808767080307007, + 0.07017797976732254, + 0.014230095781385899, + -0.1328476220369339, + 0.01261337473988533, + -0.028911512345075607, + 0.07066774368286133, + 0.015355953946709633, + -0.05550520122051239, + -0.06401441246271133, + -0.036038804799318314, + -0.018887996673583984, + 0.06041042506694794, + -0.03266797959804535, + -0.00029957611695863307, + 0.0017578754341229796, + 0.02663370966911316, + 0.06128028407692909, + -0.04021202400326729, + 0.04070950299501419, + -0.04022104665637016, + -0.07981579005718231, + -0.02968147024512291, + -0.0016622187104076147, + -0.08304774761199951, + -0.0037789943162351847, + -0.043084338307380676, + 0.006562083028256893, + -0.07932103425264359, + -0.029527027159929276, + -0.041863102465867996, + 0.04939781501889229, + -0.03469216451048851, + 0.022427372634410858, + 0.007218249142169952, + -0.09279324859380722, + 0.031129498034715652, + 0.0007013026042841375, + -0.055024825036525726, + 0.013228303752839565, + -0.04049074649810791, + -0.07892525941133499, + 0.09453938156366348, + 0.031111493706703186, + -0.06871920824050903, + -0.01226054783910513, + 0.024837777018547058, + -0.13553084433078766, + 0.04153614491224289, + 0.04592778906226158, + -0.013547650538384914, + -0.050679877400398254, + -0.024952666833996773, + 0.05815973877906799, + -0.01175614632666111, + -0.018567567691206932, + -0.0767546221613884, + -0.032217759639024734, + -0.020851023495197296, + -0.027277251705527306, + 0.07706175744533539, + 0.10219962149858475, + 0.04119006171822548, + 0.03988386318087578, + 0.0032588744070380926, + 0.017788462340831757, + 0.012842671945691109, + -0.05830296501517296, + 0.03199809417128563, + -0.056424375623464584, + 0.09281020611524582, + 0.040885910391807556, + 0.09337830543518066, + 0.05329015105962753, + 0.019439075142145157, + -0.03315582871437073, + 0.005039106123149395, + -0.00843822956085205, + -0.05268503725528717, + -0.05244699493050575, + 0.04565190523862839, + 0.04669048637151718, + -0.04716351255774498, + 0.08059872686862946, + -0.06550510972738266, + 0.04186677560210228, + 0.10874677449464798, + -0.03224481642246246, + -0.014915840700268745, + 0.009018388576805592, + -0.00010437868331791833, + -0.0868697538971901, + 0.023467890918254852, + 7.344822985143667e-33, + -0.04166405275464058, + -0.029948420822620392, + 0.1314772665500641, + -0.00848633423447609, + 0.005629333667457104, + -0.03481075167655945, + 0.005989523604512215, + -0.05173594504594803, + -0.02135694958269596, + -0.0013397772563621402, + -0.08993983268737793, + -0.00032240903237834573, + -0.020403221249580383, + 0.009871715679764748, + -0.08826050907373428, + -0.04678749665617943, + -0.03569480776786804, + -0.02431550994515419, + 0.07145384699106216, + 0.08337275683879852, + 0.03578871488571167, + 0.023082081228494644, + -0.05223575234413147, + 0.02211569994688034, + -0.06069374829530716, + -0.05791068077087402, + -0.018908200785517693, + -0.046989478170871735, + 0.0017037756042554975, + -0.03230886533856392, + -0.07600943744182587, + -0.05251862853765488, + 0.05840408802032471, + 0.026476340368390083, + -0.028737274929881096, + -0.04146803542971611, + -0.027686437591910362, + -0.006799070164561272, + -0.0883801132440567, + -0.06856830418109894, + 0.10892754048109055, + 0.01656288653612137, + -0.03400782495737076, + 0.023215487599372864, + -0.04404512792825699, + 0.015290837734937668, + -0.06571520864963531, + -0.04512949287891388, + -0.029248207807540894, + 0.0035249884240329266, + 0.07074957340955734, + 0.07607965171337128, + 0.08540243655443192, + 0.004669451620429754, + 0.006380015984177589, + -0.04209594801068306, + 0.09648656100034714, + -0.01695038564503193, + 0.0508280023932457, + -0.08350405097007751, + 0.10120890289545059, + -0.029906896874308586, + 0.011293331161141396, + -0.023316238075494766, + 0.03816143050789833, + -0.024145958945155144, + 0.03999872878193855, + 0.06461316347122192, + -0.005224619060754776, + 0.05322635918855667, + -0.094478540122509, + 0.04810608550906181, + -0.03047434613108635, + -0.07697433233261108, + 0.0575314462184906, + -0.04887588694691658, + 0.019868893548846245, + -0.01078119408339262, + -0.007531397510319948, + 0.03464473411440849, + 0.010353652760386467, + 0.007131313439458609, + -0.005369705148041248, + -0.04138800501823425, + -0.10806906223297119, + 0.026572206988930702, + 0.010133850388228893, + 0.023419173434376717, + 0.028641166165471077, + -0.05820596590638161, + 0.00435910327360034, + -0.025158656761050224, + -0.0636819377541542, + -0.019687606021761894, + 0.009559009224176407, + -8.411739861516377e-33, + 0.04028593376278877, + -0.03174011781811714, + 0.04491031914949417, + -0.004926424007862806, + -0.009392780251801014, + -0.030413970351219177, + 0.04521331563591957, + 0.06825346499681473, + 0.10916119068861008, + 0.00432718126103282, + -0.014994884841144085, + -0.023145385086536407, + -0.042962606996297836, + -0.07501721382141113, + 0.014996138401329517, + 0.01338292472064495, + -0.08165756613016129, + 0.028804082423448563, + 0.014631104655563831, + 0.0224898811429739, + -0.03892316296696663, + 0.024578826501965523, + 0.09237140417098999, + 0.025403186678886414, + -0.003442454617470503, + -0.039104316383600235, + -0.02445581555366516, + 0.015175147913396358, + -0.03020714782178402, + -0.01904001086950302, + -0.06631969660520554, + 0.037029583007097244, + -0.045216526836156845, + 0.006158876698464155, + -0.016441725194454193, + -0.013278955593705177, + 0.04842901602387428, + 0.04872492700815201, + 0.052940141409635544, + 0.03692365437746048, + 0.02163710817694664, + 0.09980767965316772, + -0.02751815877854824, + 0.05497177690267563, + 0.07738146930932999, + -0.0045184181071817875, + 0.006339283660054207, + 0.0633171945810318, + -0.0207195021212101, + -0.044376078993082047, + 0.038383599370718, + 0.0028893440030515194, + -0.03557193651795387, + 0.039957527071237564, + 0.10416439175605774, + -0.015794670209288597, + 0.02048546075820923, + -0.0502810962498188, + -0.08321709930896759, + -0.031054487451910973, + -0.06022718921303749, + -0.08318798989057541, + -0.11362992227077484, + -0.027697669342160225, + -0.024594543501734734, + -0.020265890285372734, + -0.04704974591732025, + -0.05424031242728233, + -0.012093973346054554, + 0.021044623106718063, + 0.016100825741887093, + -0.033182039856910706, + 0.008051378652453423, + 0.058054208755493164, + 0.017647262662649155, + 0.03808017820119858, + -0.054989077150821686, + -0.0024953405372798443, + -0.05276233330368996, + 0.06056996434926987, + 0.04213235527276993, + -0.0015713917091488838, + -0.03924605995416641, + 0.06039383262395859, + 0.06230160593986511, + -0.039055775851011276, + 0.04063929244875908, + 0.04958227276802063, + -0.04112678021192551, + -0.05598386004567146, + 0.02114451862871647, + 0.043690748512744904, + 0.04748956859111786, + 0.01599307358264923, + -0.009869102388620377, + -5.1778688003878415e-08, + -0.03412426635622978, + -0.029234595596790314, + -0.023572305217385292, + 0.027942875400185585, + 0.01794823445379734, + 0.09472637623548508, + 0.02060234174132347, + -0.08701096475124359, + 0.13782230019569397, + -0.04004210606217384, + 0.030097782611846924, + -0.04649379104375839, + -0.07625199109315872, + -0.043080415576696396, + -0.07587108761072159, + 0.09702102094888687, + 0.0032418619375675917, + 0.10283485054969788, + 0.010670040734112263, + 0.03558393940329552, + 0.046475961804389954, + -0.007684072479605675, + -0.04568621888756752, + -0.0383150614798069, + -0.004060834646224976, + 0.06749677658081055, + -0.0035036467015743256, + 0.007627643179148436, + -0.07571417093276978, + -0.0678987056016922, + 0.06122841313481331, + -0.04597240686416626, + 0.011118598282337189, + -0.012736950069665909, + -0.04189201071858406, + 0.048931784927845, + 0.13054107129573822, + 0.024579524993896484, + -0.01686353236436844, + 0.04214472323656082, + -0.017277976498007774, + 0.08079952746629715, + -0.1066395714879036, + -0.027657799422740936, + 0.0029513081535696983, + -0.021706603467464447, + -0.027804572135210037, + 0.07972655445337296, + -0.06152743473649025, + 0.03265177831053734, + 0.05744509398937225, + -0.009128388017416, + -0.015949945896863937, + 0.013916789554059505, + -0.02047310769557953, + -0.04095716029405594, + 0.0160779170691967, + 0.05271568149328232, + -0.012385761365294456, + 0.007739881984889507, + 0.10135666280984879, + 0.057192981243133545, + 0.06350812315940857, + 0.016355441883206367 + ] + }, + { + "id": "repo_to_md/core.py::create_markdown_document", + "parent_id": null, + "file_path": "repo_to_md/core.py", + "type": "function", + "name": "create_markdown_document", + "start_line": 213, + "end_line": 243, + "source_code": "def create_markdown_document(url: Optional[str] = None, files: Optional[List[object]] = None) -> str:\n if url:\n owner, repo, default_branch, contents, is_hf = get_repo_contents(url)\n if isinstance(contents, str):\n return f\"Error: {contents}\"\n \n filtered_contents = [item for item in contents if not is_excluded(item['path'])]\n if not filtered_contents:\n return \"Error: No non-excluded files found in the repository.\"\n\n markdown_content = [\n f\"# {'Space' if is_hf else 'Repository'}: {owner}/{repo}\\n\",\n \"## File Structure\\n\",\n generate_file_tree([item['path'] for item in filtered_contents]),\n f\"Below are the contents of all files in the {'space' if is_hf else 'repository'}:\\n\\n\"\n ]\n markdown_content.extend(process_file_content(item, owner, repo, default_branch, is_hf) for item in filtered_contents)\n else:\n filtered_files = [file for file in files if hasattr(file, 'filename') and not is_excluded(file.filename)]\n if not filtered_files:\n return \"Error: No non-excluded files were uploaded.\"\n\n markdown_content = [\n \"# Uploaded Files\\n\",\n \"## File Structure\\n\",\n generate_file_tree([file.filename for file in filtered_files]),\n \"Below are the contents of all uploaded files:\\n\\n\"\n ]\n markdown_content.extend(process_uploaded_file(file) for file in filtered_files)\n \n return \"\".join(markdown_content)", + "docstring": "", + "dependencies": [ + "get_repo_contents", + "generate_file_tree", + "hasattr", + "is_excluded", + "process_file_content", + "process_uploaded_file", + "isinstance" + ], + "level": 0, + "structural_vector": [ + 1, + 0, + 0.8382352941176471, + 0.11397058823529412 + ], + "semantic_embedding": [ + -0.05278230831027031, + 0.08449506759643555, + -0.0030469780322164297, + 0.03330988809466362, + 0.05981485918164253, + -0.053658220916986465, + 0.020622052252292633, + 0.024101294577121735, + -0.012555237859487534, + 0.04279474541544914, + 0.008647250942885876, + 0.04217194393277168, + 0.027003146708011627, + 0.01830132119357586, + -0.04212332144379616, + 0.05499822273850441, + -0.056279901415109634, + 0.05559886619448662, + 0.02142762951552868, + -0.06702466309070587, + 0.06907403469085693, + 0.07718603312969208, + 0.07440666109323502, + 0.07615425437688828, + -0.004015778191387653, + -0.0817931666970253, + -0.08057539165019989, + 0.003923262469470501, + -0.0532752126455307, + 0.031239472329616547, + 0.05994988977909088, + -0.03976557403802872, + 0.021195657551288605, + -0.01614786498248577, + 0.09159932285547256, + 0.10524523258209229, + 0.027858689427375793, + -0.08881513774394989, + 0.043184977024793625, + 0.06467237323522568, + 0.04413020610809326, + 0.06318022310733795, + -0.024645259603857994, + -0.10466867685317993, + -0.018992742523550987, + -0.008121304214000702, + 0.056488603353500366, + -0.045887961983680725, + -0.0426282100379467, + -0.030910346657037735, + -0.028664710000157356, + 0.008385257795453072, + -0.09598660469055176, + -0.05477066710591316, + 0.025729136541485786, + 0.030459163710474968, + -0.04954293370246887, + -0.025856755673885345, + -0.052930399775505066, + -0.10065752267837524, + 0.06020211800932884, + -0.02615431323647499, + -0.020839758217334747, + -0.09104979783296585, + 0.03299985080957413, + 0.022466108202934265, + -0.03444064408540726, + 0.05574135482311249, + 0.02400842122733593, + -0.00894153118133545, + -0.04557262361049652, + 0.015155887231230736, + -0.004240404814481735, + 0.06352455168962479, + 0.03740544617176056, + -0.010851887054741383, + 0.07722873985767365, + 0.10148315131664276, + -0.03921874612569809, + -0.08851588517427444, + 0.0021526336204260588, + -0.04302693530917168, + 0.006562988273799419, + 0.0025495211593806744, + -0.09908578544855118, + -0.059700898826122284, + 0.0374314971268177, + 0.04728872328996658, + 0.02018548548221588, + -0.03984249755740166, + -0.020871808752417564, + -0.04973224923014641, + 0.06288649141788483, + -0.06137683242559433, + -0.021495211869478226, + 0.028820058330893517, + 0.05699516460299492, + -0.02656535431742668, + 0.030530160292983055, + 0.02939259447157383, + 0.0023440713994205, + -0.03510293737053871, + 0.06711334735155106, + -0.1261810064315796, + 0.04226827621459961, + 0.11105766892433167, + -0.008562716655433178, + -0.03322269767522812, + -0.04123920202255249, + -0.01302972063422203, + -0.06749581545591354, + 0.02223321795463562, + -0.07733424007892609, + -0.05081507936120033, + 0.01037976797670126, + 0.03312372788786888, + 0.07174434512853622, + 0.0013814111007377505, + -0.005036449059844017, + 0.025089507922530174, + 0.11080144345760345, + -0.007739011198282242, + 0.009684666991233826, + 0.0007585309213027358, + -0.06926718354225159, + -0.023027213290333748, + 0.006209864281117916, + 3.8572271225119293e-33, + 0.08800429850816727, + -0.012623622082173824, + 0.0351799838244915, + -0.024011146277189255, + 0.09515441954135895, + 0.040135256946086884, + 0.01778508350253105, + -0.057674430310726166, + -0.06815338879823685, + 0.0033300670329481363, + -0.03105011396110058, + -0.0764356479048729, + -0.0528826043009758, + 0.014758425764739513, + -0.020774737000465393, + -0.04238508269190788, + -0.04484891891479492, + -0.01723841391503811, + 0.011154862120747566, + 0.008702579885721207, + -0.09708380699157715, + -0.0034183573443442583, + -0.06586767733097076, + 0.026842156425118446, + -0.028008203953504562, + 0.01156743336468935, + -0.0014856929192319512, + -0.04168940335512161, + -0.0945974811911583, + -0.06352826207876205, + -0.019691871479153633, + -0.03618490695953369, + 0.08208534866571426, + -0.0332530215382576, + -0.05362197011709213, + 0.03162304311990738, + -0.06590841710567474, + -0.010625908151268959, + -0.032490119338035583, + -0.06075591221451759, + 0.06746033579111099, + 0.013105163350701332, + 0.016625842079520226, + 0.018367035314440727, + -0.021228192374110222, + 0.013757436536252499, + -0.013169162906706333, + -0.02743174508213997, + 0.004037065897136927, + 0.024485411122441292, + 0.015521745197474957, + 0.028667815029621124, + 0.03694126754999161, + -0.05398992821574211, + -0.030709177255630493, + -0.0027253637090325356, + -0.053825005888938904, + 0.05751154199242592, + 0.10544542968273163, + -0.07205814868211746, + 0.08974914252758026, + -0.031887028366327286, + 0.01655660569667816, + 0.01049407571554184, + 0.011209158226847649, + 0.05132131278514862, + 0.10555285960435867, + 0.051854003220796585, + 0.05412176996469498, + 0.008640716783702374, + -0.08698657155036926, + 0.04069163650274277, + -0.06655174493789673, + -0.022256653755903244, + 0.05688919499516487, + -0.045278292149305344, + -0.0026501999236643314, + -0.053728099912405014, + 0.01664608344435692, + -0.03271292522549629, + -0.09331593662500381, + -0.049328796565532684, + 0.024549897760152817, + -0.039260782301425934, + 0.016602741554379463, + -0.001433651428669691, + 0.04202648997306824, + 0.010811274871230125, + -0.00770776579156518, + -0.13035133481025696, + -0.0075589134357869625, + -0.06500694155693054, + -0.01963002234697342, + -0.06653004139661789, + 0.07151184231042862, + -6.060417246007772e-33, + 0.11352088302373886, + -0.018686477094888687, + 0.04804244264960289, + -0.01698997989296913, + -0.0479557178914547, + -0.0017362777143716812, + -0.023228084668517113, + -0.03523558750748634, + 0.02684110589325428, + 0.02680356428027153, + -0.0047706179320812225, + -0.02156185917556286, + 0.05448181554675102, + -0.11030084639787674, + -0.0037862593308091164, + -0.03388277068734169, + -0.045363932847976685, + -0.02002325840294361, + 0.016375748440623283, + -0.001881522941403091, + -0.007653736509382725, + 0.014301448129117489, + 0.020113421604037285, + 0.0800718143582344, + -0.01412035059183836, + -0.01528548076748848, + 0.00425585824996233, + -0.06019972637295723, + 0.019146448001265526, + -0.04424353316426277, + -0.02786974422633648, + 0.06135687604546547, + -0.08633089810609818, + -0.035824548453092575, + -0.03192953020334244, + -0.057792145758867264, + -0.06208024546504021, + 0.12660029530525208, + -0.0336063988506794, + 0.0945800393819809, + 0.058058638125658035, + 0.06056112423539162, + -0.005508646834641695, + 0.04732184484601021, + -0.008915606886148453, + -0.016714900732040405, + 0.037019357085227966, + 0.06623328477144241, + 0.01707010343670845, + 0.01875211112201214, + 0.008274105377495289, + -0.08497946709394455, + 0.04582288861274719, + -0.00350848026573658, + -0.007583804428577423, + 0.039724450558423996, + -0.005685478914529085, + 0.005464611109346151, + -0.047251373529434204, + -0.014345909468829632, + -0.0942525789141655, + -0.00026970423641614616, + -0.051888152956962585, + -0.005217142403125763, + -0.02045709639787674, + -0.04041760787367821, + -0.10950622707605362, + -0.00931849330663681, + -0.010576634667813778, + -0.024348771199584007, + 0.012359625659883022, + -0.03246711194515228, + 0.07742583751678467, + -0.05289123207330704, + 0.08924268186092377, + 0.07854854315519333, + -0.04014190286397934, + 0.03734474256634712, + -0.004779004026204348, + 0.06248033046722412, + 0.0013319060672074556, + 0.03534826263785362, + -0.02373993769288063, + 0.06894037127494812, + 0.023618195205926895, + -0.08649797737598419, + -0.08666200935840607, + 0.06350775808095932, + 0.013264349661767483, + -0.03664366900920868, + 0.04333236813545227, + 0.03966035321354866, + 0.05880529806017876, + 0.07592595368623734, + -0.02467549964785576, + -5.707578054625628e-08, + -0.0028983247466385365, + 0.02526725083589554, + -0.07680152356624603, + -0.031638775020837784, + -0.035074058920145035, + 0.06979142129421234, + 0.027599133551120758, + 0.006271365564316511, + -0.01277148723602295, + -0.045038290321826935, + 0.010866793803870678, + -0.039369095116853714, + -0.07372003048658371, + 0.017386741936206818, + -0.07417785376310349, + 0.04186737537384033, + -0.009109423495829105, + 0.10494426637887955, + -0.026945630088448524, + 0.06148240342736244, + -0.03332037106156349, + -0.0732034221291542, + -0.02948101796209812, + 0.053176116198301315, + 0.057830605655908585, + 0.07010897994041443, + 0.056217364966869354, + 0.04063998535275459, + -0.05629301816225052, + 0.02693925052881241, + 0.1459159255027771, + -0.004736042115837336, + -0.057695843279361725, + 0.015554307028651237, + 0.028767555952072144, + 0.08650925010442734, + 0.11078372597694397, + -0.00910295732319355, + 0.02481195144355297, + 0.044115740805864334, + -0.025516415014863014, + 0.00314962025731802, + -0.03624958544969559, + -0.019460804760456085, + -0.026702167466282845, + -0.05283006280660629, + -0.0667514055967331, + -0.00517682358622551, + -0.01576031558215618, + -0.012863225303590298, + 0.023867791518568993, + -0.049388986080884933, + 0.023599792271852493, + -0.024471646174788475, + -0.04086700826883316, + -0.0019916307646781206, + 0.11647070944309235, + 0.07484102249145508, + -0.019380411133170128, + -0.07629043608903885, + 0.10912831872701645, + -0.04797087982296944, + 0.11720594763755798, + 0.043880630284547806 + ] + }, + { + "id": "repo_to_md/core.py::markdown_to_files", + "parent_id": null, + "file_path": "repo_to_md/core.py", + "type": "function", + "name": "markdown_to_files", + "start_line": 245, + "end_line": 272, + "source_code": "def markdown_to_files(markdown_text: str) -> Tuple[Union[List[Dict], str], Dict[str, bytes]]:\n files, buffers = [], {}\n current_filename, current_content = None, []\n is_binary, in_code_block = False, False\n\n for line in markdown_text.splitlines():\n if line.startswith(\"### File: \"):\n if current_filename:\n content = \"\\n\".join(current_content) if not is_binary else \"\"\n files.append({\"filename\": current_filename, \"content\": \"[Binary File]\" if is_binary else content, \"is_binary\": is_binary, \"filepath\": current_filename})\n buffers[current_filename] = b\"[Binary content not stored]\" if is_binary else content.encode('utf-8')\n current_filename, current_content = line[len(\"### File: \"):].strip(), []\n is_binary, in_code_block = False, False\n elif line.startswith(\"[Binary file - \") and current_filename:\n is_binary = True\n elif line.startswith(\"```\"):\n in_code_block = not in_code_block\n elif in_code_block and not is_binary:\n current_content.append(line)\n\n if current_filename:\n content = \"\\n\".join(current_content) if not is_binary else \"\"\n files.append({\"filename\": current_filename, \"content\": \"[Binary File]\" if is_binary else content, \"is_binary\": is_binary, \"filepath\": current_filename})\n buffers[current_filename] = b\"[Binary content not stored]\" if is_binary else content.encode('utf-8')\n\n if not files:\n return \"Error: No files found in the markdown document.\", {}\n return files, buffers", + "docstring": "", + "dependencies": [ + "len" + ], + "level": 0, + "structural_vector": [ + 1, + 0, + 0.9503676470588235, + 0.10294117647058823 + ], + "semantic_embedding": [ + -0.004141382407397032, + 0.06344085186719894, + -0.007676109205931425, + 0.010203923098742962, + 0.04699854925274849, + -0.057045258581638336, + 0.015712624415755272, + 0.052241433411836624, + -0.0805465430021286, + 0.03432656452059746, + -0.031302560120821, + 0.061187196522951126, + 0.04414503276348114, + 0.028622420504689217, + 0.021393340080976486, + 0.036783043295145035, + -0.11510656028985977, + 0.08685843646526337, + 0.009796100668609142, + -0.034877851605415344, + 0.07113804668188095, + 0.10087250918149948, + 0.05151599645614624, + 0.07221443951129913, + 0.0033920907881110907, + -0.017882414162158966, + -0.018862735480070114, + 0.008859194815158844, + -0.0860481932759285, + 0.007739217020571232, + 0.03912026807665825, + -0.009626064449548721, + 0.039152953773736954, + -0.0012681707739830017, + 0.12320305407047272, + 0.07686853408813477, + 0.017817765474319458, + -0.0800035297870636, + 0.01194376964122057, + 0.024834221228957176, + 0.0362573079764843, + 0.0004024731751997024, + -0.04191318154335022, + -0.07228503376245499, + 0.014658278785645962, + -0.01234760694205761, + 0.0239114873111248, + 0.024003172293305397, + 0.010088128969073296, + -0.03788406774401665, + 0.017073465511202812, + 0.030526887625455856, + -0.08469825237989426, + 0.05557931214570999, + 0.005995223764330149, + -0.05022720992565155, + -0.0442953035235405, + -0.07574686408042908, + -0.04995432496070862, + -0.05365316942334175, + -0.01246276218444109, + 0.017575260251760483, + -0.03273598477244377, + -0.05122549459338188, + 0.03720041736960411, + 0.053239304572343826, + -0.0025390535593032837, + 0.08666758239269257, + 0.007125255651772022, + 0.033110424876213074, + -0.04692583903670311, + -0.0013586668064817786, + -0.000724545621778816, + 0.02256946638226509, + 0.006535154767334461, + -0.016545245423913002, + 0.08407815545797348, + 0.06609354168176651, + -0.06622198969125748, + -0.06967351585626602, + -0.03906119987368584, + -0.08382601290941238, + 0.05212283506989479, + 0.05580628663301468, + -0.05234292894601822, + -0.11475686728954315, + 0.012837855145335197, + 0.02708110213279724, + -0.03742370754480362, + -0.030078697949647903, + -0.04915116727352142, + 0.008384495973587036, + 0.058039866387844086, + -0.024394670501351357, + 0.018727418035268784, + 0.01211975235491991, + 0.059087228029966354, + 0.025133291259407997, + 0.027853533625602722, + 0.021879121661186218, + -0.022887663915753365, + -0.03716665133833885, + 0.016195910051465034, + -0.09711053967475891, + 0.04690167307853699, + 0.05148310959339142, + 0.09175524860620499, + 0.007454391568899155, + -0.0037859196309000254, + -0.05395159497857094, + 0.01240603905171156, + -0.010211784392595291, + -0.03076874651014805, + -0.05747220292687416, + 0.06588981300592422, + 0.040284622460603714, + -0.021359452977776527, + 0.038515400141477585, + 0.04901660978794098, + 0.02931937389075756, + 0.0714016929268837, + -0.011298142373561859, + -0.03557511046528816, + -0.0036011782940477133, + -0.01984676904976368, + -0.0766974464058876, + 0.02396875061094761, + 4.006750371278509e-33, + 0.01961785927414894, + -0.04915083944797516, + 0.07585660368204117, + -0.003662307048216462, + 0.0685034841299057, + 0.04290023073554039, + -0.0593169741332531, + -0.07912634313106537, + -0.14376692473888397, + 0.024326404556632042, + -0.030828451737761497, + -0.041855309158563614, + 0.004774772562086582, + 0.055646587163209915, + -0.05062084272503853, + -0.035952236503362656, + -0.03996998071670532, + -0.032025907188653946, + 0.01498799491673708, + 0.07583871483802795, + -0.05092960596084595, + 0.03804156929254532, + -0.06672301143407822, + 0.034078873693943024, + -0.07307127863168716, + -0.013566216453909874, + -0.04170942306518555, + -0.08339180052280426, + -0.049187228083610535, + -0.044762544333934784, + -0.045661598443984985, + -0.06657131761312485, + 0.03818153589963913, + -0.022117774933576584, + -0.0960594043135643, + 0.014389255084097385, + -0.009214544668793678, + -0.006153250113129616, + -0.0485960878431797, + -0.02817392162978649, + 0.09880125522613525, + 0.0382164791226387, + -0.011967363767325878, + 0.037582091987133026, + -0.050710275769233704, + 0.040877245366573334, + -0.052458617836236954, + -0.0014435776975005865, + -0.03385497257113457, + 0.014204856008291245, + 0.06989801675081253, + 0.032845135778188705, + 0.0007886597304604948, + -0.0037161330692470074, + -0.04445112869143486, + 0.010042213834822178, + -0.009994493797421455, + 0.040417421609163284, + 0.0804879441857338, + -0.013972164131700993, + 0.06550569087266922, + -0.024498669430613518, + 0.033878620713949203, + 0.017950693145394325, + 0.02814733050763607, + 0.012512936256825924, + 0.14654050767421722, + 0.026068445295095444, + -0.03259318694472313, + 0.01810871809720993, + -0.1443013697862625, + 0.027282653376460075, + -0.01810970902442932, + -0.020872147753834724, + 0.08967375010251999, + -0.002258716383948922, + -0.0196128711104393, + -0.09549587219953537, + 0.0029479744844138622, + -0.03260643407702446, + -0.0058977496810257435, + -0.014802197925746441, + -0.006859845016151667, + -0.11283768713474274, + -0.029535572975873947, + -0.012846921570599079, + -0.019671302288770676, + -0.07900445908308029, + -0.02807222679257393, + -0.10073162615299225, + -0.04716781899333, + -0.08367349952459335, + 0.024955369532108307, + -0.057947054505348206, + 0.03539886325597763, + -5.351357951565814e-33, + 0.13710340857505798, + 0.01305929571390152, + 0.05958612635731697, + 0.02420613542199135, + -0.09007178992033005, + -0.017934834584593773, + 0.02225545607507229, + 0.012832031585276127, + 0.040556401014328, + 0.03573115915060043, + 0.003801217069849372, + -0.04692480340600014, + 0.008054669015109539, + -0.09440778940916061, + -0.04174413904547691, + -0.011415481567382812, + -0.041810132563114166, + 0.022705553099513054, + 0.05877251923084259, + -0.017221122980117798, + -0.029899926856160164, + -0.04557741433382034, + 0.07659761607646942, + 0.04959474131464958, + -0.026539066806435585, + 0.02574237994849682, + -0.023236818611621857, + 0.00919493380934, + 0.02193319797515869, + -0.07975192368030548, + -0.08204279094934464, + 0.0540974959731102, + -0.06671283394098282, + -0.043194882571697235, + -0.058081258088350296, + -0.002627523150295019, + -0.013998180627822876, + 0.06871925294399261, + -0.0033403285779058933, + 0.05432351306080818, + 0.07778013497591019, + 0.10354498028755188, + 0.002422915305942297, + 0.02362583577632904, + 0.048348113894462585, + 0.046763014048337936, + -0.005275045055896044, + 0.1471848040819168, + 0.012365924194455147, + 0.022546885535120964, + 0.0025224811397492886, + -0.01280706562101841, + -0.0009530249517410994, + 0.012883352115750313, + -0.004696687217801809, + -0.03781405836343765, + -0.00590925756841898, + -0.03209308162331581, + -0.10698696225881577, + -0.02791871689260006, + -0.08923284709453583, + -0.022964151576161385, + -0.021126603707671165, + -0.0065622394904494286, + 0.028681078925728798, + -0.03774799779057503, + -0.07471388578414917, + -0.07693233340978622, + -0.02723224088549614, + 0.011017766781151295, + 0.01734129525721073, + -0.04518241435289383, + 0.04517165943980217, + 0.028734544292092323, + 0.04355698451399803, + 0.09747444093227386, + -0.045825980603694916, + -0.03744859620928764, + -0.05257076770067215, + 0.0539197102189064, + 0.016916129738092422, + -0.009953579865396023, + 0.010667740367352962, + 0.08435580879449844, + -0.0075384024530649185, + -0.01666346564888954, + -0.044403307139873505, + 0.09763190150260925, + 0.028169618919491768, + -0.025896016508340836, + -0.006051440257579088, + 0.030103959143161774, + 0.09353790432214737, + 0.03039778396487236, + -0.019524116069078445, + -5.425378546419779e-08, + 0.030951380729675293, + -0.043100837618112564, + -0.08949065953493118, + -0.04701601713895798, + -0.05526723712682724, + 0.12740382552146912, + -0.03722834587097168, + -0.02895946614444256, + 0.047724399715662, + -0.07357177138328552, + 0.04039087891578674, + -0.03626146912574768, + -0.0878341868519783, + -0.035744559019804, + -0.08641666918992996, + 0.1368703991174698, + 0.03223729506134987, + -0.0060857851058244705, + 0.018798325210809708, + 0.04438222944736481, + -0.001755628501996398, + -0.013841655105352402, + -0.0241730734705925, + 0.06851177662611008, + -0.019109146669507027, + 0.07354988157749176, + 0.034983113408088684, + 0.05074857547879219, + -0.06492292135953903, + -0.001791059854440391, + 0.10764967650175095, + -0.044363558292388916, + 0.01316177099943161, + -0.028917057439684868, + 0.056392885744571686, + 0.03125274181365967, + 0.09658434242010117, + -0.01237014401704073, + 0.08291205763816833, + 0.05818615481257439, + -0.02298857271671295, + 0.02922111377120018, + -0.07988981157541275, + -0.044861387461423874, + 0.004212515894323587, + -0.07487818598747253, + -0.082657590508461, + 0.06947727501392365, + -0.031117316335439682, + 0.0033252504654228687, + 0.04334307089447975, + -0.016277888789772987, + -0.011374042369425297, + -0.01588558405637741, + -0.04044609144330025, + -0.024245578795671463, + 0.04191751405596733, + 0.05816018208861351, + -0.016160937026143074, + -0.03142246976494789, + 0.02025262825191021, + -0.03632628917694092, + 0.09491634368896484, + 0.019122665748000145 + ] + }, + { + "id": "repo_to_md/demo.py::find_template_path", + "parent_id": null, + "file_path": "repo_to_md/demo.py", + "type": "function", + "name": "find_template_path", + "start_line": 18, + "end_line": 27, + "source_code": "def find_template_path() -> str:\n possible_paths = [\n Path(__file__).parent / \"templates\",\n Path(__file__).parent.parent / \"templates\",\n Path(sys.executable).parent / \"site-packages/repo_to_md/templates\"\n ]\n for path in possible_paths:\n if path.exists():\n return str(path)\n raise FileNotFoundError(\"Template directory not found\")", + "docstring": "", + "dependencies": [ + "Path", + "FileNotFoundError", + "str" + ], + "level": 0, + "structural_vector": [ + 1, + 0, + 0.12362637362637363, + 0.054945054945054944 + ], + "semantic_embedding": [ + -0.044972315430641174, + 0.014763318002223969, + -0.019159985706210136, + -0.04832419380545616, + 0.06205426901578903, + -0.011874849908053875, + -0.026133064180612564, + 0.011998182162642479, + -0.0020100355613976717, + -0.008716060779988766, + 0.020660055801272392, + 0.025211704894900322, + -0.026535818353295326, + 0.0544254370033741, + 0.019049810245633125, + 0.035583529621362686, + -0.050356000661849976, + 0.02022402547299862, + 0.1349276602268219, + 0.041582442820072174, + 0.04733811318874359, + 0.06990674883127213, + 0.0419248528778553, + 0.05429210513830185, + 0.003124567214399576, + -0.01692219264805317, + -0.03837026283144951, + 0.002765854587778449, + -0.05508168414235115, + 0.0033729751594364643, + 0.09273818135261536, + 0.013749876990914345, + 0.03834012523293495, + -0.03064447082579136, + 0.1208663284778595, + 0.11349748820066452, + -0.0492875799536705, + -0.021513840183615685, + -0.015365662053227425, + 0.03287655860185623, + 0.029831144958734512, + 0.10318607091903687, + -0.0074365101754665375, + -0.08782404661178589, + -0.03033236414194107, + -0.06945520639419556, + 0.054624043405056, + -0.018711302429437637, + -0.025007370859384537, + -0.07048261910676956, + -0.011047727428376675, + -0.07294072955846786, + -0.041939977556467056, + -0.08089203387498856, + -0.0008931679185479879, + 0.04204056039452553, + 0.05121321603655815, + 0.0518697053194046, + -0.045612867921590805, + -0.06871303170919418, + 0.05084362253546715, + -0.017422610893845558, + -0.015195466578006744, + -0.04034078121185303, + -0.039038654416799545, + 0.027684837579727173, + 0.0593804232776165, + 0.07650141417980194, + 0.05147717520594597, + -0.0010220934636890888, + -0.04099061340093613, + -0.02434653975069523, + -0.009337391704320908, + 0.03694656863808632, + 0.03308882191777229, + -0.06653976440429688, + 0.12743879854679108, + 0.03639482706785202, + -0.04996400326490402, + -0.06228357553482056, + -0.00694758165627718, + -0.010170850902795792, + -0.012745154090225697, + -0.003530041081830859, + 0.03509322553873062, + -0.052198175340890884, + 0.013612858951091766, + 0.08455032855272293, + 0.09460355341434479, + -0.03182324767112732, + 0.03355966508388519, + -0.046899307519197464, + -0.029582541435956955, + -0.09777608513832092, + -0.030339665710926056, + 0.040464889258146286, + -0.016332702711224556, + 0.053525302559137344, + 0.040938179939985275, + -0.01962723396718502, + -0.006851759739220142, + -0.06844209879636765, + 0.006714399438351393, + -0.059454940259456635, + 0.05752567574381828, + 0.19387364387512207, + -0.005865087267011404, + -0.060021694749593735, + 0.01915355958044529, + 0.01145654171705246, + -0.030433818697929382, + -0.017330847680568695, + -0.0002977753465529531, + -0.03780578076839447, + 0.019244147464632988, + -0.04760485514998436, + -0.022233400493860245, + 0.02141607366502285, + -0.049979012459516525, + 0.05621672049164772, + 0.022910909727215767, + -0.01297912560403347, + 0.11146790534257889, + -0.0485064834356308, + -0.047606293112039566, + -0.014039993286132812, + -0.08147774636745453, + -2.0417784024096263e-33, + -0.026412881910800934, + 0.038713399320840836, + 0.06438581645488739, + 0.03398527577519417, + 0.1350785195827484, + -0.005115377251058817, + 0.042430855333805084, + 0.04273531958460808, + -0.03707261383533478, + 0.057854216545820236, + -0.02826627530157566, + -0.08653061091899872, + -0.044439561665058136, + 0.02258571796119213, + -0.0542207770049572, + -0.0021943235769867897, + -0.017844026908278465, + 0.00941979419440031, + -0.045788977295160294, + -0.033226680010557175, + -0.006718646734952927, + -0.008732398971915245, + -0.015928035601973534, + 0.010239065624773502, + -0.03717222437262535, + 0.014019911177456379, + 0.07241591811180115, + 0.0038262312300503254, + 0.04356127604842186, + -0.05346769466996193, + -0.0276592168956995, + -0.03950905427336693, + 0.015513988211750984, + 0.06947418302297592, + -0.04906240478157997, + 0.014330614358186722, + 0.035251714289188385, + -0.04004325717687607, + -0.03661336004734039, + -0.016703717410564423, + 0.026002798229455948, + 0.04695612192153931, + 0.03182824328541756, + 0.05160690099000931, + 0.07718200981616974, + 0.000760086695663631, + -0.0055736699141561985, + -0.020370149984955788, + 0.042229074984788895, + 0.01544923149049282, + -0.02243601530790329, + -0.04997393116354942, + 0.046095799654722214, + -0.0036578101571649313, + -0.030044231563806534, + -0.04959690570831299, + -0.0907602459192276, + 0.026515202596783638, + 0.10903153568506241, + -0.0830034613609314, + 0.09030235558748245, + -0.08365821093320847, + 0.0062831491231918335, + -0.049207936972379684, + 0.010908648371696472, + -0.02948858216404915, + 0.0018293969333171844, + 0.01911083422601223, + 0.04555628076195717, + 0.08281151205301285, + 0.047978851944208145, + -0.0018345515709370375, + -0.03978584706783295, + -0.021646328270435333, + 0.011028656736016273, + -0.011019260622560978, + -0.0012923198519274592, + -0.06044879928231239, + 0.05700874701142311, + 0.03654768317937851, + -0.11142830550670624, + -0.02647971734404564, + -0.024401918053627014, + 0.00032985705183818936, + 0.03214428201317787, + -0.03794064000248909, + 0.05739438161253929, + 0.0024862862192094326, + 0.027688059955835342, + -0.01975509151816368, + -0.04436064139008522, + -0.08385798335075378, + -0.07130778580904007, + -0.03276079148054123, + 0.01707175187766552, + -2.0336876951981073e-33, + 0.06626228988170624, + 0.01984601840376854, + 0.059280674904584885, + -0.0847981721162796, + -0.07931884378194809, + -0.030430227518081665, + -0.01242622546851635, + 0.0009155815350823104, + 0.03716949746012688, + -0.013250043615698814, + -0.02598295360803604, + -0.02414141222834587, + 0.06867162138223648, + 0.005907162092626095, + 0.0770891010761261, + 0.0569453164935112, + -0.053636111319065094, + -0.036992479115724564, + -0.04841869696974754, + -0.004032889846712351, + -0.004444274585694075, + -0.04464756324887276, + -0.01841096021234989, + 0.1055743619799614, + -0.017969414591789246, + 0.004302028566598892, + 0.034834928810596466, + -0.0328533910214901, + 0.002860118169337511, + 0.03626587986946106, + -0.042534202337265015, + 0.07198216766119003, + -0.0881798043847084, + 0.02568920888006687, + -0.008916533552110195, + 0.10239703208208084, + -0.09594764560461044, + 0.01103435829281807, + -0.016079945489764214, + 0.043816596269607544, + 0.06442210078239441, + 0.023036343976855278, + -0.0013979248469695449, + -0.03357652947306633, + -0.08821623027324677, + -0.015566402114927769, + 0.05074406415224075, + 0.047383036464452744, + 0.06928027421236038, + -0.07826651632785797, + 0.017773302271962166, + -0.053949810564517975, + -0.02148032747209072, + -0.0028869127854704857, + 0.018398748710751534, + 0.009921618737280369, + -0.06340260803699493, + 0.036355048418045044, + -0.03980237990617752, + 0.003742757486179471, + 0.0152030223980546, + -0.018388638272881508, + -0.11240718513727188, + -0.04739364609122276, + -0.07755303382873535, + 0.013796655461192131, + -0.14516820013523102, + -0.0223587304353714, + -0.011375120840966702, + 0.04625708609819412, + -0.01124950498342514, + 0.06301475316286087, + -0.0018233158625662327, + -0.024696944281458855, + -0.025512507185339928, + 0.07365839183330536, + -0.10384074598550797, + 0.02353828027844429, + -0.027753181755542755, + -0.0072168647311627865, + 0.043293748050928116, + -0.007862922735512257, + -0.0016766502521932125, + -0.057339441031217575, + -0.03656172379851341, + -0.12813924252986908, + 0.03342797979712486, + -0.008102763444185257, + -0.04109761863946915, + -0.05675506964325905, + 0.04258761927485466, + -0.003944794647395611, + 0.05524928495287895, + 0.022065242752432823, + 0.02248331531882286, + -4.660240193743448e-08, + 0.04592638462781906, + 0.048441603779792786, + 0.044282324612140656, + -0.10393577814102173, + 0.024278149008750916, + 0.03200557455420494, + 0.044717367738485336, + -0.038995977491140366, + 0.014575770124793053, + 0.06582777947187424, + -0.04978946968913078, + -0.08180606365203857, + -0.01597612164914608, + 0.1019144132733345, + -0.003954101819545031, + 0.04904349893331528, + -0.10805587470531464, + 0.09474044293165207, + -0.013755428604781628, + -0.02724519744515419, + -0.01412836741656065, + 0.033102892339229584, + -0.06287963688373566, + -0.0017282217741012573, + -0.013226466253399849, + 0.07155221700668335, + -0.008238004520535469, + 0.01809961348772049, + -0.0381467305123806, + -0.018768463283777237, + 0.08313515037298203, + -0.014968863688409328, + -0.07093621045351028, + 0.02642369456589222, + 0.06702890247106552, + 0.07185985893011093, + 0.07917170226573944, + -0.016644831746816635, + 0.004946182016283274, + -0.0677843987941742, + -0.06045661121606827, + -0.07730849087238312, + 0.002726291073486209, + -0.018983660265803337, + -0.08048354834318161, + -0.03456352278590202, + 0.003683902323246002, + 0.09862960129976273, + -0.09927473217248917, + 0.01612955518066883, + 0.08849933743476868, + -0.004254666157066822, + -0.06845304369926453, + -0.03853383660316467, + -0.05411545932292938, + -0.0024380930699408054, + 0.013243339024484158, + 0.015082250349223614, + -0.020375387743115425, + -0.09055942296981812, + 0.032943084836006165, + -0.04093717783689499, + 0.12736259400844574, + -0.06092076748609543 + ] + }, + { + "id": "repo_to_md/demo.py::rebuild_html_content", + "parent_id": null, + "file_path": "repo_to_md/demo.py", + "type": "function", + "name": "rebuild_html_content", + "start_line": 29, + "end_line": 39, + "source_code": "def rebuild_html_content(html_content: bytes, buffers: Dict[str, bytes]) -> bytes:\n html_str = html_content.decode('utf-8', errors='replace')\n for pattern, tag in [\n (r'', \"\"),\n (r']*href=[\"\\']([^\"\\']+)[\"\\'][^>]*rel=[\"\\']stylesheet[\"\\'][^>]*>', \"\")\n ]:\n for match in re.finditer(pattern, html_str, re.IGNORECASE):\n src = match.group(1)\n if src in buffers:\n html_str = html_str.replace(match.group(0), tag.format(buffers[src].decode('utf-8', errors='replace')))\n return html_str.encode('utf-8')", + "docstring": "", + "dependencies": [], + "level": 0, + "structural_vector": [ + 1, + 0, + 0.18681318681318682, + 0.06043956043956044 + ], + "semantic_embedding": [ + -0.09302280098199844, + 0.05079144611954689, + 0.03147146850824356, + -0.014958694577217102, + 0.07161033153533936, + -0.054311562329530716, + -0.030636711046099663, + -0.05673297494649887, + -0.029787015169858932, + 0.04243889078497887, + -0.02007909119129181, + 0.04740796610713005, + 0.09993003308773041, + -0.04822738468647003, + 0.030491968616843224, + 0.08379484713077545, + -0.07265141606330872, + 0.06667371094226837, + 0.02580164186656475, + -0.019108247011899948, + 0.0012990921968594193, + 0.07412458211183548, + 0.054900530725717545, + 0.0060560693964362144, + 0.030289042741060257, + -0.00755934976041317, + 0.05017997696995735, + 0.05704115331172943, + -0.043919604271650314, + -0.0030620968900620937, + 0.1291070580482483, + -0.05823592096567154, + 0.03205486014485359, + -0.02873612567782402, + 0.10259085893630981, + 0.16395483911037445, + -0.06307955831289291, + -0.06937035918235779, + 0.04461338371038437, + 0.0681915432214737, + 0.0036853523924946785, + -0.04302311688661575, + -0.029263457283377647, + -0.04004707932472229, + 0.012299925088882446, + -0.012634556740522385, + -0.030190275982022285, + -0.012151946313679218, + -0.01083418633788824, + -0.08325034379959106, + -0.012123768217861652, + -0.008717368356883526, + -0.06865185499191284, + -0.030539460480213165, + 0.027385126799345016, + -0.026788558810949326, + 0.03959769383072853, + -0.06187791749835014, + 0.027027182281017303, + -0.048192474991083145, + 0.06666244566440582, + -0.00018577386799734086, + 0.019797036424279213, + -0.036230266094207764, + 0.01580647937953472, + 0.03761449083685875, + -0.06745623052120209, + 0.0878017395734787, + -0.0036083522718399763, + 0.009251654148101807, + -0.09208046644926071, + -0.002253489335998893, + -0.024272475391626358, + 0.04747931659221649, + 0.0007465576054528356, + -0.05730828270316124, + -0.005612102337181568, + 0.020793413743376732, + -0.0340365394949913, + -0.02590692974627018, + 0.01378826517611742, + -0.11357923597097397, + 0.031033415347337723, + 0.08915025740861893, + 0.07243777811527252, + -0.026082482188940048, + 0.0151909114792943, + -0.009842431172728539, + 0.03832871466875076, + -0.047526419162750244, + -0.007638137321919203, + -0.005515018943697214, + 0.08408135175704956, + -0.0634225457906723, + -0.021513264626264572, + 0.08607000857591629, + -0.005116636864840984, + -0.033797092735767365, + -0.024770084768533707, + 0.07302629947662354, + 0.03943413868546486, + -0.05769313499331474, + -0.0016725114546716213, + -0.08225525915622711, + -0.003434730228036642, + 0.0689622089266777, + 0.0009674031171016395, + 0.16036023199558258, + 0.02028990536928177, + -0.050249405205249786, + -0.022742636501789093, + -0.02737998031079769, + -0.07596495002508163, + -0.06528999656438828, + -0.035154201090335846, + -0.02689860761165619, + 0.03834322839975357, + -0.007390265818685293, + 0.039892759174108505, + 0.07155022025108337, + 0.10774257034063339, + 0.041282083839178085, + -0.04357147216796875, + -0.053495872765779495, + 0.010331173427402973, + -0.0195297934114933, + 0.023335972800850868, + 8.803496863814921e-33, + 0.008228502236306667, + 0.01843898557126522, + 0.025852905586361885, + -0.02263646386563778, + 0.09094800800085068, + 0.015496200881898403, + -0.021983884274959564, + -0.05331481620669365, + -0.06497933715581894, + -0.017545485869050026, + -0.017213545739650726, + -0.06498706340789795, + -0.030680697411298752, + -0.010410284623503685, + -0.10370249301195145, + -0.04892970994114876, + -0.007716893218457699, + 0.010340138338506222, + 0.02080281637609005, + 0.014476949349045753, + -0.10442893207073212, + 0.045397475361824036, + 0.051491718739271164, + 0.018198084086179733, + -0.07268797606229782, + 0.056092552840709686, + -0.007158575113862753, + -0.009423578158020973, + -0.0440070815384388, + -0.02568155899643898, + -0.01926276832818985, + -0.0005532309878617525, + -0.03329886123538017, + 0.04353955015540123, + -0.07003253698348999, + -0.005992345046252012, + 0.0068977270275354385, + -0.05299036204814911, + -0.028153154999017715, + -0.008576715365052223, + -0.04518744722008705, + -0.024851201102137566, + 0.042785122990608215, + -0.02845148742198944, + -0.023774664849042892, + 0.029121795669198036, + -0.02303728461265564, + 0.042337093502283096, + -0.036616772413253784, + -0.005781729239970446, + 0.026858383789658546, + 0.05400928109884262, + 0.030001047998666763, + -0.05112854763865471, + -0.0892597958445549, + -0.0328330397605896, + -0.06499791890382767, + 0.012594063766300678, + 0.0929451510310173, + -0.00783158652484417, + 0.0833897516131401, + -0.007974328473210335, + 0.05529062822461128, + -0.020496763288974762, + 0.06533492356538773, + -0.05587952584028244, + 0.09898888319730759, + 0.06232714280486107, + -0.041355159133672714, + -0.002517100190743804, + -0.017332691699266434, + 0.03834211826324463, + 0.04492657631635666, + 0.026102973148226738, + 0.0372723750770092, + -0.08076164126396179, + -0.028203725814819336, + -0.030106090009212494, + 0.03356800973415375, + -0.014927132986485958, + 0.017892995849251747, + -0.03689677268266678, + 0.03008147142827511, + -0.07611620426177979, + -0.02900591865181923, + -0.04683293029665947, + 0.023593178018927574, + -0.08991848677396774, + -0.009773570112884045, + -0.017803704366087914, + -0.019478388130664825, + -0.06520017236471176, + -0.07112444937229156, + -0.10420463234186172, + 0.017906419932842255, + -1.0160864435280402e-32, + 0.11834767460823059, + 0.048225365579128265, + -0.003375408472493291, + 0.014756315387785435, + -0.022868340834975243, + -0.02548110857605934, + -0.0015669259009882808, + 0.08648274093866348, + 0.036713745445013046, + -0.03159388154745102, + 0.06031383201479912, + -0.013314587995409966, + -0.048491619527339935, + -0.04052499309182167, + 0.033932145684957504, + 0.07107186317443848, + -0.04128820821642876, + 0.03432653471827507, + -0.03661731630563736, + -0.035141535103321075, + 0.0531894713640213, + -0.024227645248174667, + 0.003353750566020608, + 0.05371428653597832, + -0.024881424382328987, + -0.028736289590597153, + 0.025142867118120193, + 0.03990519419312477, + -0.0007148366421461105, + 0.005991608835756779, + 0.018869921565055847, + 0.079475536942482, + -0.08703012019395828, + 0.07893907278776169, + 0.025769352912902832, + 0.01834983564913273, + -0.00890168733894825, + 0.05274653434753418, + 0.002123459940776229, + 0.05085247382521629, + 0.1032472774386406, + 0.02057933434844017, + 0.023630669340491295, + 0.028382450342178345, + 0.014529903419315815, + -0.037915196269750595, + -0.0645468533039093, + 0.050799496471881866, + -0.002223800867795944, + -0.06473875045776367, + 0.006096480414271355, + -0.06730268895626068, + -0.023358186706900597, + -0.07182953506708145, + 0.007832326926290989, + -0.032805051654577255, + -0.04531199112534523, + 0.05170609429478645, + -0.15038947761058807, + -0.02244124561548233, + -0.0638267919421196, + -0.02563992701470852, + -0.07302999496459961, + 0.004968258086591959, + 0.010362745262682438, + -0.017122134566307068, + -0.10354215651750565, + -0.027546407654881477, + -0.03443526849150658, + -0.023698631674051285, + 0.020262768492102623, + -0.048272475600242615, + -0.044582147151231766, + -0.027775662019848824, + -0.028786782175302505, + 0.04871484637260437, + 0.021812116727232933, + 0.06732898205518723, + -0.028824586421251297, + 0.07973000407218933, + 0.05524922534823418, + -0.01123881060630083, + -0.011952457018196583, + -0.024976694956421852, + -0.028503477573394775, + -0.04018836095929146, + -0.05156094580888748, + 0.09235130250453949, + -0.007459946908056736, + -0.10955550521612167, + -0.02611123025417328, + 0.03228061646223068, + 0.0894741490483284, + 0.07877170294523239, + 0.03489597514271736, + -5.762956689636667e-08, + -0.04237325116991997, + -0.0237522441893816, + -0.0023521652910858393, + 0.009211082011461258, + -0.04124191403388977, + 0.088312067091465, + 0.006319336127489805, + -0.06772314757108688, + -0.0016426772344857454, + -0.030608465895056725, + 0.028039177879691124, + 0.006092773284763098, + 0.02027091011404991, + 0.04379580169916153, + -0.14774714410305023, + 0.10676447302103043, + -0.08711595088243484, + 0.07706260681152344, + 0.0043914420530200005, + 0.01170981116592884, + -0.047429490834474564, + 0.012915893457829952, + 0.0020138404797762632, + 0.012733947485685349, + 0.036971285939216614, + 0.0396864227950573, + -0.06918097287416458, + -0.013699606992304325, + -0.08176197111606598, + 0.04067612811923027, + 0.10875792056322098, + -0.07163132727146149, + -0.05238177627325058, + -0.02843855693936348, + 0.0017048384761437774, + -0.0348774679005146, + 0.04997492954134941, + -0.07696163654327393, + 0.02458374761044979, + -0.018899811431765556, + -0.008232539519667625, + 0.0055551547557115555, + -0.05324723571538925, + -0.011779827997088432, + 0.021914759650826454, + -0.040220435708761215, + -0.03733278810977936, + 0.029529385268688202, + -0.0027852579951286316, + -0.005273550283163786, + 0.10791728645563126, + -0.035330481827259064, + -0.04502076283097267, + -0.06544934213161469, + 0.007423949893563986, + -0.04128372296690941, + 0.04991681128740311, + 0.1355559527873993, + -0.004422356840223074, + 0.009208783507347107, + 0.02974013425409794, + 0.08631405234336853, + 0.1165318563580513, + -0.05146127566695213 + ] + }, + { + "id": "repo_to_md/demo.py::extract_file_tree", + "parent_id": null, + "file_path": "repo_to_md/demo.py", + "type": "function", + "name": "extract_file_tree", + "start_line": 41, + "end_line": 45, + "source_code": "def extract_file_tree(markdown_text: str) -> str:\n tree_section = re.search(r'## File Structure\\n```(.*?)```', markdown_text, re.DOTALL)\n if not tree_section:\n return \"
No file structure found.
\"\n return f\"
{tree_section.group(1)}
\"", + "docstring": "", + "dependencies": [], + "level": 0, + "structural_vector": [ + 1, + 0, + 0.23626373626373626, + 0.027472527472527472 + ], + "semantic_embedding": [ + -0.02904313988983631, + 0.16479472815990448, + 0.01953384280204773, + 0.06773937493562698, + 0.14335179328918457, + -0.04809655249118805, + -0.009931745938956738, + 0.021743739023804665, + 0.025100287050008774, + 0.02982269786298275, + -0.011939815245568752, + 0.09023634344339371, + 0.034538865089416504, + 0.0011866858694702387, + 0.04347216710448265, + 0.02281506545841694, + -0.15312351286411285, + 0.0734197124838829, + 0.05838627740740776, + -0.07363651692867279, + 0.03857077658176422, + 0.08578778803348541, + 0.03978663682937622, + 0.05512997880578041, + 0.014067045412957668, + -0.023921607062220573, + -0.0705905631184578, + 0.038451556116342545, + -0.03675002604722977, + 0.021367350593209267, + 0.04490308836102486, + -0.024940572679042816, + 0.08741264045238495, + 0.022322658449411392, + 0.01867261342704296, + 0.0811493769288063, + -0.017653636634349823, + -0.060693006962537766, + 0.05278472974896431, + 0.05545894056558609, + 0.038282159715890884, + 0.07808004319667816, + -0.007065663114190102, + -0.10879906266927719, + 0.009748831391334534, + -0.013239994645118713, + -0.007319657597690821, + 0.022171052172780037, + 0.01744924858212471, + -0.03643637150526047, + -0.025897109881043434, + -0.05433148518204689, + -0.0842146947979927, + -0.017399117350578308, + 0.0025086202658712864, + 0.06911888718605042, + 0.027844779193401337, + -0.10210192948579788, + -0.009670949541032314, + -0.025780852884054184, + 0.04737851396203041, + -0.006128084380179644, + -0.03771505132317543, + -0.044226549565792084, + 0.04216526448726654, + 0.05634642764925957, + -0.04074585810303688, + 0.04091772064566612, + 0.02439303509891033, + -0.053834982216358185, + -0.0378742590546608, + -0.008657320402562618, + -0.0016290595522150397, + 0.02140258252620697, + 0.014956207014620304, + -0.016064384952187538, + -0.02786322310566902, + 0.07394614070653915, + -0.024950549006462097, + -0.029317477717995644, + 0.008091533556580544, + -0.019385913386940956, + -0.03626314923167229, + 0.03385798633098602, + -0.05797291919589043, + 0.015770280733704567, + -0.021436790004372597, + -0.006746095139533281, + -0.023193756118416786, + -0.03880661353468895, + -0.024469206109642982, + -0.05870445817708969, + -0.024385904893279076, + 0.02571660280227661, + -0.08489309996366501, + 0.019049523398280144, + 0.054451342672109604, + -0.06451494991779327, + -0.018916627392172813, + 0.028360547497868538, + -0.014898421242833138, + -0.00395700428634882, + 0.03235378488898277, + -0.15942631661891937, + -0.08758745342493057, + 0.07670199871063232, + -0.04333259165287018, + -0.05252252519130707, + 0.05341198667883873, + 0.0003769978357013315, + -0.039919838309288025, + -0.020888017490506172, + -0.08082909137010574, + -0.010807817801833153, + -0.014136245474219322, + -0.02747236005961895, + 0.006523480638861656, + -0.03842481970787048, + 0.000989252352155745, + 0.024212123826146126, + 0.07879501581192017, + -0.013289280235767365, + -0.040273942053318024, + 0.019186032935976982, + 0.0095136146992445, + -0.01477115973830223, + -0.03896612673997879, + 4.366694823023955e-33, + 0.0045038205571472645, + -0.0014049194287508726, + 0.06482481956481934, + 0.011043008416891098, + 0.10280506312847137, + 0.016490109264850616, + -0.02100987918674946, + -0.08091184496879578, + -0.060168199241161346, + 0.020234642550349236, + -0.05806141346693039, + -0.12801344692707062, + -0.028201844543218613, + -0.01647195965051651, + -0.011625399813055992, + -0.015563633292913437, + -0.021255824714899063, + -0.044726233929395676, + -0.029719645157456398, + 0.03176816925406456, + -0.0759691670536995, + 0.054611243307590485, + -0.08355660736560822, + 0.013382645323872566, + -0.009253114461898804, + 0.04514336958527565, + -0.018149731680750847, + -0.04222104698419571, + 0.007569087669253349, + -0.03812715411186218, + -0.010604540817439556, + -0.08097759634256363, + 0.03126667067408562, + -0.055302269756793976, + -0.02672995626926422, + 0.0761837586760521, + -0.007557493168860674, + -0.029416006058454514, + -0.06063474342226982, + -0.030783019959926605, + 0.011393997818231583, + 0.024912135675549507, + 0.05559632554650307, + 0.026506977155804634, + -0.02640247344970703, + 0.058410126715898514, + -0.023468269035220146, + -0.007150149438530207, + -0.03148113936185837, + 0.00529467361047864, + 0.01253441534936428, + 0.09674715995788574, + 0.057484641671180725, + -0.016744839027523994, + -0.09295332431793213, + 0.039184004068374634, + 0.016798606142401695, + 0.1072176992893219, + 0.049216002225875854, + 0.04773302748799324, + 0.13222835958003998, + -0.047800347208976746, + 0.03767962381243706, + 0.008384869433939457, + 0.026144545525312424, + 0.01548490859568119, + 0.04611268639564514, + 0.020713239908218384, + -0.010612051002681255, + 0.052518364042043686, + -0.0611603669822216, + 0.05324327573180199, + -0.008538337424397469, + -0.0458216592669487, + 0.08621057868003845, + 0.01629413291811943, + -0.006742018274962902, + -0.04107660427689552, + 0.005924969911575317, + -0.01795351877808571, + -0.11815610527992249, + -0.041974544525146484, + 0.10483149439096451, + -0.07804952561855316, + 0.07090559601783752, + -0.07081037014722824, + 0.06526542454957962, + -0.04515751823782921, + 0.04318423569202423, + -0.06377746164798737, + -0.047184523195028305, + -0.07769390195608139, + -0.025492703542113304, + -0.037268996238708496, + 0.046648941934108734, + -6.838643362736082e-33, + 0.11114086955785751, + 0.005104538053274155, + 0.04514630138874054, + -0.07448704540729523, + -0.026962120085954666, + -0.0006122837658040226, + -0.07300076633691788, + 0.011630185879766941, + -0.010981273837387562, + 0.022950680926442146, + -0.027482789009809494, + 0.0226878821849823, + 0.032487522810697556, + -0.07369255274534225, + 0.03055017814040184, + 0.012729949317872524, + 0.02826661989092827, + 0.05032362788915634, + -0.01447261217981577, + 0.019799374043941498, + 0.011426117271184921, + 0.00598710123449564, + 0.016410192474722862, + 0.03929268568754196, + -0.031388770788908005, + -0.0443892702460289, + 0.036080777645111084, + 0.020919349044561386, + -0.010648242197930813, + -0.030053284019231796, + -0.0826273113489151, + 0.02936008758842945, + -0.034013532102108, + 0.003401958616450429, + -0.07100939005613327, + -0.04085269197821617, + -0.046920329332351685, + 0.000394585047615692, + 0.03219285607337952, + 0.06631531566381454, + 0.06242908537387848, + 0.09753439575433731, + -0.05372064188122749, + -0.013105484656989574, + -0.019931765273213387, + 0.0017900614766404033, + 0.013055022805929184, + 0.08959005028009415, + 0.002246299060061574, + 0.056442659348249435, + 0.006950854789465666, + -0.03333073481917381, + 0.02990536391735077, + -0.02362302504479885, + -0.013458672910928726, + 0.01524041686207056, + -0.02911500632762909, + 0.035376060754060745, + -0.07422837615013123, + -0.0029322372283786535, + -0.10311059653759003, + 0.011803602799773216, + -0.12554492056369781, + -0.027419928461313248, + 4.8036137741291896e-05, + -0.07423893362283707, + -0.07908836752176285, + -0.04503478482365608, + -0.04982869327068329, + -0.038975637406110764, + 0.004652556497603655, + 0.031564485281705856, + 0.03296446055173874, + 0.06264158338308334, + 0.009386665187776089, + 0.0992082878947258, + -0.0677836537361145, + 0.06841940432786942, + -0.04703669995069504, + 0.03803844004869461, + 0.011139857582747936, + -0.017419198527932167, + -0.022320186719298363, + 0.028604915365576744, + 0.04149707034230232, + -0.0795021504163742, + -0.036952149122953415, + 0.06709453463554382, + 0.01440050546079874, + -0.11017314344644547, + 0.011670845560729504, + -0.01003059558570385, + 0.09384476393461227, + 0.0702565610408783, + 0.02163892798125744, + -5.026088700788023e-08, + -0.06715981662273407, + -0.03535778075456619, + -0.02830337919294834, + -0.07348787039518356, + -0.021481236442923546, + 0.09470140188932419, + -0.00995632167905569, + -0.00018807915330398828, + -0.05321168154478073, + -0.052922606468200684, + -0.002295291982591152, + -0.04496842622756958, + -0.09364839643239975, + -0.01770281232893467, + -0.06302537024021149, + 0.06032884865999222, + -0.008618701249361038, + 0.09589995443820953, + 0.0017686953069642186, + 0.06503855437040329, + -0.019048504531383514, + -0.031566064804792404, + 0.010743178427219391, + 0.08012760430574417, + -0.005098958034068346, + 0.03292618319392204, + 0.03265220299363136, + 0.03180847316980362, + -0.08225616067647934, + -0.0019021517364308238, + 0.07556691020727158, + 0.027052178978919983, + -0.007004682440310717, + 0.012937690131366253, + -0.003233964554965496, + 0.0298079214990139, + 0.07761116325855255, + 0.02248002216219902, + 0.01613887958228588, + 0.07442285120487213, + 0.008146679028868675, + -0.026621943339705467, + -0.034101396799087524, + -0.05703561007976532, + -0.07890921086072922, + -0.02764737978577614, + -0.043440721929073334, + 0.07446775585412979, + 0.03702377527952194, + -0.05032113566994667, + 0.06383384764194489, + -0.009307191707193851, + -0.0503457635641098, + -0.060695115476846695, + -0.023979365825653076, + -0.04997878149151802, + 0.048805251717567444, + 0.07090671360492706, + -0.0696888342499733, + -0.059997644275426865, + 0.09504111856222153, + -0.03441730514168739, + 0.1342240273952484, + 0.037102606147527695 + ] + }, + { + "id": "repo_to_md/demo.py::extract_file_blocks", + "parent_id": null, + "file_path": "repo_to_md/demo.py", + "type": "function", + "name": "extract_file_blocks", + "start_line": 47, + "end_line": 71, + "source_code": "def extract_file_blocks(markdown_text: str) -> list:\n \"\"\"Extract file names and contents from Markdown, ensuring binary files are isolated.\"\"\"\n # Split the markdown into blocks starting with ### File:\n blocks = []\n pattern = r'### File: (.+?)(?:\\s+\\[Binary file - (\\d+) bytes\\])?\\n(?:```(\\w+)?\\n(.*?)\\n```|Binary content not shown|(?=### File:)|$)'\n matches = re.finditer(pattern, markdown_text, re.DOTALL)\n \n for match in matches:\n filename = match.group(1).strip()\n binary_size = match.group(2) # Captures [Binary file - XXX bytes] if present\n language = match.group(3) or 'text'\n content = match.group(4) if match.group(4) else 'Binary content not shown'\n \n # Check if the filename contains \"Binary file\"\n is_binary = \"Binary file\" in filename or content == 'Binary content not shown'\n \n blocks.append({\n 'filename': filename,\n 'language': 'binary' if is_binary else language,\n 'content': f\"Binary content [File size: {binary_size or 'unknown'} bytes]\" if is_binary else content.strip(),\n 'is_binary': is_binary,\n 'binary_size': binary_size\n })\n \n return blocks", + "docstring": "Extract file names and contents from Markdown, ensuring binary files are isolated.", + "dependencies": [], + "level": 0, + "structural_vector": [ + 1, + 0, + 0.3241758241758242, + 0.13736263736263737 + ], + "semantic_embedding": [ + -0.07214333862066269, + 0.11892281472682953, + -0.02675400860607624, + -0.025607425719499588, + 0.12153409421443939, + -0.03844465687870979, + 0.012037605047225952, + -0.016993224620819092, + -0.028470423072576523, + 0.01699930988252163, + -0.019164590165019035, + 0.046628013253211975, + 0.0424702987074852, + 0.00407873559743166, + 0.007968963123857975, + 0.051672518253326416, + -0.10665780305862427, + 0.08522222191095352, + 0.020332904532551765, + -0.06065557524561882, + 0.07174153625965118, + 0.10198881477117538, + 0.019613008946180344, + 0.042480189353227615, + 0.02565869502723217, + 0.020033305510878563, + -0.009988031350076199, + 0.05696621164679527, + -0.04153820872306824, + -0.0017588986083865166, + 0.06367574632167816, + -0.010758178308606148, + 0.07781146466732025, + -0.0076124416664242744, + 0.14751026034355164, + 0.09146498888731003, + -0.02364036627113819, + -0.016222722828388214, + 0.02022392861545086, + 0.015469360165297985, + 0.018282881006598473, + -0.01704002171754837, + -0.022749703377485275, + -0.08557823300361633, + 0.03229115158319473, + 0.0007420905749313533, + 0.025457952171564102, + 0.03840367868542671, + 0.009112180210649967, + -0.09042065590620041, + 0.005947821773588657, + 0.01672387309372425, + -0.08125749230384827, + 0.03998870030045509, + 0.02684207074344158, + -0.10743335634469986, + 0.023736972361803055, + -0.07375506311655045, + -0.06257720291614532, + -0.06000444293022156, + -0.029333578422665596, + -0.006627868395298719, + -0.023311421275138855, + -0.0509626604616642, + 0.018892768770456314, + 0.09127164632081985, + -0.043038174510002136, + 0.04790313541889191, + 0.05457177385687828, + -0.025826919823884964, + -0.05533928424119949, + 0.003343963995575905, + 0.019317304715514183, + 0.07556719332933426, + -0.002039592480286956, + -0.014591850340366364, + 0.01606237329542637, + 0.0460183210670948, + -0.06633757799863815, + -0.07261890172958374, + -0.03944190964102745, + -0.110066257417202, + 0.044982463121414185, + 0.04701513797044754, + -0.05966816842556, + -0.06666070967912674, + 0.01846618950366974, + 0.02759767696261406, + 0.03379228711128235, + 0.01728953793644905, + -0.03410975635051727, + -0.0037919289898127317, + 0.09437906742095947, + -0.013858961872756481, + 0.040771715342998505, + -0.02504502795636654, + 0.03423960506916046, + -0.0038092455361038446, + 0.0382225476205349, + 0.053571026772260666, + 0.021423324942588806, + -0.005720830522477627, + 1.6191291933864704e-06, + -0.08890816569328308, + 0.005940260365605354, + 0.07502688467502594, + 0.054553598165512085, + 0.027227604761719704, + 0.01906724087893963, + -0.03469676896929741, + -0.018182944506406784, + -0.0030154171399772167, + -0.03533122316002846, + -0.039765093475580215, + 0.08984644711017609, + 0.00016299437265843153, + 0.047263793647289276, + 0.023977939039468765, + -0.035130731761455536, + 0.03165523707866669, + 0.042543087154626846, + 0.007680955342948437, + 0.02532665804028511, + -0.03448294475674629, + -0.018531881272792816, + 0.0006487344508059323, + -0.005446584429591894, + 8.893704300297023e-33, + 0.020051294937729836, + -0.002121787518262863, + 0.0395735502243042, + -0.010353531688451767, + 0.061178285628557205, + 0.048846013844013214, + -0.012273047119379044, + -0.060045454651117325, + -0.06583207845687866, + 0.04635654389858246, + -0.0599544420838356, + -0.05425581336021423, + 0.0024636564776301384, + 0.03712736815214157, + -0.05785433575510979, + -0.02017647959291935, + 0.01010825764387846, + -0.020764021202921867, + 0.0033262602519243956, + 0.0470309779047966, + -0.04760602116584778, + 0.05495978519320488, + -0.05122676491737366, + 0.04528996720910072, + -0.07404889166355133, + -0.012784651480615139, + -0.0025453276466578245, + -0.1054692342877388, + -0.0024450835771858692, + -0.02579679898917675, + -0.06586354225873947, + -0.07994069159030914, + 0.017667848616838455, + -0.002617898164317012, + -0.02045375108718872, + 0.02353300154209137, + -0.014266534708440304, + -0.03967646136879921, + -0.03241116926074028, + -0.022096553817391396, + 0.06477051228284836, + -0.012186077423393726, + -0.005152097903192043, + -0.013472180813550949, + -0.03512657433748245, + 0.023519665002822876, + -0.04068312048912048, + -0.009777999483048916, + -0.031037522479891777, + -0.0058318013325333595, + 0.08787433058023453, + 0.07677435874938965, + 0.016720063984394073, + -0.023213732987642288, + -0.0655655562877655, + -0.007412901613861322, + 0.026350663974881172, + 0.07426432520151138, + 0.10514537990093231, + 0.018359409645199776, + 0.058681029826402664, + -0.016548117622733116, + 0.06203377991914749, + 0.017082741484045982, + 0.07128790766000748, + -0.0054703932255506516, + 0.06739398837089539, + 0.004220215603709221, + -0.06829913705587387, + 0.045201875269412994, + -0.09939173609018326, + 0.02169523574411869, + 0.028194677084684372, + -0.02967902086675167, + 0.08203125, + -0.0430685430765152, + 0.004532069433480501, + -0.0707925483584404, + 0.006412001792341471, + -0.03112170286476612, + -0.043994877487421036, + -0.01241130381822586, + 0.045588430017232895, + -0.11893347650766373, + -0.08253389596939087, + -0.010656466707587242, + 0.023998228833079338, + -0.12732039391994476, + 0.005809284280985594, + -0.11270175874233246, + -0.03648245334625244, + -0.10006102174520493, + -0.06203126907348633, + -0.048068493604660034, + 0.03233176842331886, + -9.130977835010502e-33, + 0.10479577630758286, + 0.022433610633015633, + 0.055393144488334656, + -0.08657104521989822, + -0.06446679681539536, + -0.034980252385139465, + 0.00674165366217494, + 0.04296001046895981, + 0.040083400905132294, + 0.006447906605899334, + -0.01293087750673294, + -0.03496057167649269, + 0.012908571399748325, + -0.1026085764169693, + -0.027272142469882965, + 0.013026357628405094, + 0.016293609514832497, + 0.036159075796604156, + 0.036441415548324585, + 0.03789978101849556, + -0.04852085933089256, + -0.009555459953844547, + 0.026638152077794075, + 0.041777219623327255, + -0.040529102087020874, + 0.016617802903056145, + 0.008779981173574924, + 0.028291741386055946, + 0.047565605491399765, + -0.03687523677945137, + -0.07042337954044342, + 0.07990236580371857, + -0.0668325126171112, + -0.07348836213350296, + -0.06790506094694138, + -0.010787543840706348, + -0.03765003755688667, + 0.08323772251605988, + 0.03015793487429619, + 0.027132350951433182, + 0.04724116623401642, + 0.09004294127225876, + -0.06439775973558426, + -0.009851801209151745, + 0.029463255777955055, + 0.03279974311590195, + -0.026647092774510384, + 0.1428835093975067, + -0.0007459268090315163, + 0.005775450263172388, + 0.024107594043016434, + -0.024943027645349503, + -0.0031854561530053616, + -0.03533249348402023, + 0.020028797909617424, + -0.05262569710612297, + -0.01743401773273945, + 0.03176632523536682, + -0.09564308822154999, + -0.013906247913837433, + -0.08328714966773987, + -0.003509051399305463, + -0.10446655005216599, + 0.013714360073208809, + 0.04923927038908005, + -0.0177951380610466, + -0.059006642550230026, + -0.057301104068756104, + -0.034400198608636856, + -0.011397447437047958, + 0.03807463124394417, + -0.030624162405729294, + 0.034849897027015686, + 0.03785839304327965, + 0.05276034027338028, + 0.11372128874063492, + -0.05927671864628792, + 0.020520666614174843, + -0.038498468697071075, + 0.09218233078718185, + 0.022847631946206093, + -0.022151414304971695, + 0.03852323442697525, + 0.02418176829814911, + 0.014213979244232178, + -0.03449093922972679, + -0.06931602954864502, + 0.06722842901945114, + 0.03448256477713585, + -0.0629657432436943, + -0.01172330230474472, + 0.035457953810691833, + 0.07479213178157806, + 0.031641554087400436, + 0.055298201739788055, + -5.523128621121032e-08, + 0.03958507999777794, + -0.07606281340122223, + -0.03594481199979782, + -0.05346265807747841, + -0.018297646194696426, + 0.13780799508094788, + -0.0656309500336647, + -0.06899354606866837, + 0.019807280972599983, + -0.07424421608448029, + 0.020822178572416306, + -0.07584859430789948, + -0.08787621557712555, + -0.04940124228596687, + -0.1119985431432724, + 0.11081285774707794, + 0.01672898791730404, + 0.013921791687607765, + 0.00971315335482359, + 0.02333853766322136, + -0.03149062395095825, + -0.03978583589196205, + 0.01744558848440647, + 0.032528966665267944, + -0.03633778542280197, + 0.058499984443187714, + -0.0054219686426222324, + 0.0006109637906774879, + -0.08632998913526535, + -0.0016910451231524348, + 0.10986720025539398, + -0.01096689235419035, + -0.009449310600757599, + -0.028920726850628853, + 0.059207119047641754, + 0.08676114678382874, + 0.05630054697394371, + 0.023880992084741592, + 0.04180818051099777, + 0.06640615314245224, + -0.017096269875764847, + 0.00044613180216401815, + -0.08250438421964645, + -0.05345356464385986, + -0.006929105147719383, + -0.052824027836322784, + -0.07641912996768951, + 0.034991923719644547, + -0.052883099764585495, + -0.023903001099824905, + 0.10218464583158493, + -0.010946917347609997, + -0.0447334423661232, + -0.0034735850058496, + -0.04763393476605415, + -0.029384315013885498, + 0.030825603753328323, + 0.02883756347000599, + -0.024042468518018723, + -0.010750613175332546, + 0.0344819501042366, + -0.015953850001096725, + 0.11837870627641678, + 0.004147588275372982 + ] + }, + { + "id": "repo_to_md/demo.py::run_demo", + "parent_id": null, + "file_path": "repo_to_md/demo.py", + "type": "function", + "name": "run_demo", + "start_line": 73, + "end_line": 179, + "source_code": "def run_demo(host: str = \"0.0.0.0\", port: int = 7860, debug: bool = True) -> None:\n app.template_folder = find_template_path()\n app.static_folder = str(Path(app.template_folder).parent / \"static\")\n\n @app.before_request\n def setup_temp_dir():\n g.temp_dir = tempfile.mkdtemp()\n\n @app.teardown_appcontext\n def cleanup_temp_dir(_=None):\n if hasattr(g, 'temp_dir'):\n shutil.rmtree(g.temp_dir, ignore_errors=True)\n\n @app.route('/')\n def index():\n return render_template('index.html')\n\n @app.route('/process', methods=['POST'])\n def process():\n if 'files[]' in request.files:\n files = request.files.getlist('files[]')\n if not files:\n return jsonify({'error': 'No files uploaded'}), 400\n markdown_content = create_markdown_document(files=files)\n filename = \"uploaded_files_summary.md\"\n else:\n repo_url = request.json.get('repo_url', '').strip()\n if not repo_url:\n return jsonify({'error': 'Please provide a repository URL or upload files'}), 400\n markdown_content = create_markdown_document(repo_url)\n if markdown_content.startswith(\"Error:\"):\n return jsonify({'error': markdown_content}), 400\n owner, repo = repo_url.rstrip('/').split('/')[-2:]\n filename = f\"{owner}_{repo}_summary.md\"\n file_blocks = extract_file_blocks(markdown_content)\n return jsonify({'markdown': markdown_content, 'filename': filename, 'files': file_blocks})\n\n @app.route('/download', methods=['POST'])\n def download():\n data = request.json\n buffer = io.BytesIO(data['markdown'].encode('utf-8'))\n return send_file(buffer, as_attachment=True, download_name=data.get('filename', 'document.md'), mimetype='text/markdown')\n\n @app.route('/reverse', methods=['POST'])\n def reverse():\n global reverse_buffers\n markdown_text = (\n request.files.get('markdown_file', {}).read().decode('utf-8', errors='replace') or\n request.form.get('markdown_text', '')\n )\n if not markdown_text.strip():\n return jsonify({'error': 'No Markdown data provided', 'files': [], 'combined_html': '

Please provide Markdown input.

'}), 400\n\n files, buffers = markdown_to_files(markdown_text)\n if isinstance(files, str):\n return jsonify({'error': files, 'files': [], 'combined_html': '

Invalid Markdown format.

'}), 400\n\n reverse_buffers.clear()\n reverse_buffers.update({k: v.encode('utf-8') if isinstance(v, str) else v for k, v in buffers.items()})\n combined_html = \"\"\n has_html = False\n\n for file_info in files:\n if not file_info['is_binary'] and file_info['filename'].endswith(\".html\"):\n has_html = True\n html_content = rebuild_html_content(reverse_buffers[file_info['filepath']], reverse_buffers)\n filepath = Path(g.temp_dir) / file_info['filepath']\n filepath.parent.mkdir(parents=True, exist_ok=True)\n filepath.write_bytes(html_content)\n combined_html += f\"\"\n\n if not has_html:\n tree_path = Path(g.temp_dir) / \"file_tree.html\"\n tree_html = f\"{extract_file_tree(markdown_text)}\"\n tree_path.write_text(tree_html, encoding='utf-8')\n combined_html = f\"\"\n\n return jsonify({'files': files, 'combined_html': combined_html, 'error': None})\n\n @app.route('/temp/')\n def temp_files(filename):\n return send_from_directory(g.temp_dir, filename)\n\n @app.route('/download_file', methods=['POST'])\n def download_file():\n filepath = request.json.get('filepath')\n if filepath not in reverse_buffers:\n return jsonify({'error': 'File not found'}), 404\n return send_file(\n io.BytesIO(reverse_buffers[filepath]),\n as_attachment=True,\n download_name=Path(filepath).name,\n mimetype=mimetypes.guess_type(filepath)[0] or 'application/octet-stream'\n )\n\n @app.route('/download_extracted', methods=['POST'])\n def download_extracted():\n if not reverse_buffers:\n return jsonify({'error': 'No files available'}), 400\n buffer = io.BytesIO()\n with zipfile.ZipFile(buffer, 'w', zipfile.ZIP_DEFLATED) as zip_file:\n for filepath, content in reverse_buffers.items():\n zip_file.writestr(filepath, content if isinstance(content, bytes) else content.encode('utf-8'))\n buffer.seek(0)\n return send_file(buffer, as_attachment=True, download_name=\"extracted_files.zip\", mimetype='application/zip')\n\n app.run(host=host, port=port, debug=debug)", + "docstring": "", + "dependencies": [ + "markdown_to_files", + "jsonify", + "hasattr", + "isinstance", + "send_from_directory", + "Path", + "extract_file_tree", + "str", + "create_markdown_document", + "find_template_path", + "render_template", + "send_file", + "extract_file_blocks", + "rebuild_html_content" + ], + "level": 0, + "structural_vector": [ + 1, + 0, + 0.6923076923076923, + 0.5879120879120879 + ], + "semantic_embedding": [ + -0.021244483068585396, + 0.08140841871500015, + -0.013366631232202053, + 0.027907222509384155, + 0.09244069457054138, + -0.12047605961561203, + -0.04883536696434021, + 0.058888908475637436, + -0.03260029852390289, + 0.04339468479156494, + 0.042774029076099396, + 0.02977573312819004, + -0.021040931344032288, + 0.015016096644103527, + -0.029557321220636368, + 0.02352975867688656, + -0.06194744631648064, + 0.008071566000580788, + 0.06668797880411148, + 0.03930113837122917, + 0.04745165631175041, + 0.09877172857522964, + 0.09169884771108627, + 0.05941622704267502, + -0.00792886782437563, + -0.06271764636039734, + -0.02120627649128437, + 0.01880105771124363, + 0.004980809986591339, + 0.014205803163349628, + 0.10681809484958649, + 0.04455935209989548, + -0.028334205970168114, + -0.03255420923233032, + 0.1585237681865692, + 0.15365375578403473, + -0.03390442952513695, + -0.08974708616733551, + -0.04205567389726639, + 0.04342019185423851, + 0.053127218037843704, + 0.08167307078838348, + -0.07713646441698074, + -0.06289499253034592, + -0.07506334781646729, + -0.055611781775951385, + 0.05470454320311546, + -0.014279737137258053, + -0.021625922992825508, + -0.07806815207004547, + 0.0030650196131318808, + 0.05249328911304474, + -0.05396600812673569, + -0.09740793704986572, + -0.0007442701025865972, + 0.00659172935411334, + 0.051178984344005585, + -0.021043647080659866, + -0.05536593124270439, + -0.0009356418740935624, + 0.045673489570617676, + 0.010675539262592793, + -0.0011499751126393676, + -0.05545287951827049, + 0.02248501405119896, + 0.05429821461439133, + 0.02038009651005268, + 0.05858587846159935, + 0.07499022036790848, + 0.007998412474989891, + -0.026743585243821144, + 0.042813681066036224, + -0.02963596023619175, + -0.025718115270137787, + -0.054095637053251266, + -0.04657616838812828, + 0.05831221491098404, + 0.003392398590222001, + -0.10065195709466934, + -0.059543732553720474, + 0.024598276242613792, + -0.08391207456588745, + -0.0028676192741841078, + -0.021892473101615906, + 0.04512498900294304, + -0.07816904783248901, + 0.03089631162583828, + 0.02842106483876705, + 0.09465774148702621, + 0.001562792807817459, + 0.028640635311603546, + 0.0244700126349926, + -0.006823717150837183, + -0.03653598204255104, + -0.05608871579170227, + 0.06369923055171967, + 0.028733806684613228, + 0.06378580629825592, + -0.05656905099749565, + 0.037921659648418427, + -0.009847980923950672, + -0.07553216069936752, + -0.021641112864017487, + -0.06193596497178078, + 0.08028304576873779, + 0.07570400089025497, + -0.003387016011402011, + 0.0015363488346338272, + 0.012837568297982216, + -0.035427361726760864, + -0.05889778584241867, + -0.02456139773130417, + -0.030360588803887367, + -0.004726348910480738, + 0.04949818179011345, + 0.025574825704097748, + -0.0058190906420350075, + 0.08658496290445328, + -0.024022294208407402, + 0.11391888558864594, + 0.1429746299982071, + 0.002011835342273116, + -0.0030261457432061434, + 0.006076160818338394, + -0.0039222207851707935, + 0.012162717990577221, + 0.058967527002096176, + 4.543193830431983e-33, + 0.06171618774533272, + -0.00844526756554842, + 0.036356955766677856, + 0.0705980435013771, + 0.13269458711147308, + -0.002534417202696204, + 0.052767761051654816, + 0.019608283415436745, + -0.012158877216279507, + 0.059947360306978226, + -0.027907859534025192, + -0.04843352362513542, + -0.042858343571424484, + -0.044833146035671234, + -0.04793865978717804, + -0.05010922998189926, + -0.032717328518629074, + 0.055709172040224075, + -0.025924773886799812, + 0.0062914639711380005, + -0.011069020256400108, + -0.02114604227244854, + -0.04983517900109291, + -0.0054145632311701775, + 0.010374411940574646, + 0.050989747047424316, + 0.030843429267406464, + 0.05249478667974472, + -0.051983438432216644, + -0.01667645014822483, + -0.01957699842751026, + -0.024548858404159546, + -0.04059812054038048, + 0.06190015375614166, + -0.04080960899591446, + -0.01002579927444458, + -0.043759603053331375, + -0.01040871161967516, + -0.06276395171880722, + -0.014895851723849773, + -0.01856417767703533, + -0.027655765414237976, + -0.025457609444856644, + 0.037468452006578445, + -0.003715871600434184, + -0.08172260224819183, + -0.03943822160363197, + 0.036519408226013184, + 0.005522031802684069, + 0.03250695392489433, + 0.020654477179050446, + -0.004080913960933685, + 0.05529943108558655, + -0.032274432480335236, + -0.08870337903499603, + -0.008722598664462566, + -0.04553109034895897, + -0.03716762736439705, + 0.10317777842283249, + -0.05107272416353226, + 0.10851487517356873, + -0.021346919238567352, + -0.05908731371164322, + -0.02951185032725334, + 0.0036394568160176277, + -0.028274482116103172, + 0.09918424487113953, + 0.032640065997838974, + 0.060433369129896164, + -0.04390718787908554, + -0.06254874169826508, + 0.05001606419682503, + -0.0038660678546875715, + -0.03317859768867493, + -0.013829877600073814, + 0.000128078245325014, + 0.015351956710219383, + -0.05855479836463928, + -0.03666301444172859, + -0.009383635595440865, + -0.032541997730731964, + -0.04733814671635628, + -0.02510249800980091, + -0.058367691934108734, + 0.026455525308847427, + -0.05940421298146248, + 0.023587629199028015, + 0.028605163097381592, + 0.0037067958619445562, + -0.04344496130943298, + -0.08487864583730698, + -0.08921944350004196, + -0.012042578309774399, + -0.06555827707052231, + -0.0011279565514996648, + -6.395758968332492e-33, + 0.1035652607679367, + -0.05290411412715912, + 0.00811788160353899, + -0.045416396111249924, + -0.00752786872908473, + -0.028563914820551872, + 0.0015179706970229745, + 0.036926884204149246, + -0.006531036924570799, + -0.04296352341771126, + -0.08681441098451614, + -0.03372740373015404, + 0.005115871783345938, + -0.04897371679544449, + 0.048226386308670044, + 0.07468759268522263, + -0.030217552557587624, + 0.013240251690149307, + -0.04550643637776375, + -0.023647937923669815, + -0.08855404704809189, + 0.012548179365694523, + 0.035808514803647995, + 0.026087066158652306, + -0.07714126259088516, + -0.0064560123719275, + 0.028267916291952133, + -0.046558577567338943, + 0.0021700840443372726, + 0.018474943935871124, + 0.0019250536570325494, + 0.05847811698913574, + -0.07625185698270798, + 0.07639775425195694, + -0.023227103054523468, + 0.06795313954353333, + -0.05680381506681442, + 0.02377144619822502, + 0.03866048902273178, + 0.047574952244758606, + 0.16198521852493286, + 0.08747507631778717, + -0.011273622512817383, + 0.03683025762438774, + -0.052100520581007004, + -0.011959711089730263, + -0.002338466001674533, + -0.06046181917190552, + -0.005419089924544096, + -0.051673103123903275, + 0.023488519713282585, + -0.04937024414539337, + -0.028704922646284103, + 0.0021799877285957336, + 0.024143598973751068, + -0.012627393938601017, + -0.030696434900164604, + -0.015908850356936455, + -0.1028263047337532, + 0.026686493307352066, + 0.05663800984621048, + -0.011694855988025665, + -0.068185955286026, + -0.03923832252621651, + -0.06471230834722519, + -0.05920984596014023, + -0.11941127479076385, + -0.012763913720846176, + 0.016979360952973366, + 0.002801762195304036, + -0.017915531992912292, + 0.07192373275756836, + -0.005812750197947025, + -0.008741718716919422, + 0.00610616197809577, + 0.09070848673582077, + -0.03775438293814659, + 0.014270788058638573, + 0.001808401197195053, + 0.04224975034594536, + 0.03499208763241768, + 0.0019328404450789094, + -0.0662064328789711, + -0.010246315971016884, + -0.03319019824266434, + -0.15388384461402893, + -0.04226665198802948, + 0.09916164726018906, + -0.0033265771344304085, + -0.0864398255944252, + 0.0204269140958786, + -0.0015883297892287374, + 0.1096084862947464, + 0.0866260677576065, + 0.013933665119111538, + -6.503996274886958e-08, + 0.01903349906206131, + 0.03568342700600624, + 0.050358206033706665, + -0.007455723825842142, + 0.06087353453040123, + 0.028967954218387604, + 0.04500605911016464, + 0.031741898506879807, + 0.03554311767220497, + -0.043291978538036346, + -0.04029896855354309, + -0.05802673101425171, + -0.04705797880887985, + 0.06099872291088104, + -0.0949605256319046, + -0.015119938179850578, + -0.07101447135210037, + 0.07982686161994934, + -0.021092575043439865, + -0.021432528272271156, + -0.05578986927866936, + -0.04186782240867615, + -0.03603058680891991, + 0.0544477254152298, + 0.03659846633672714, + 0.04066188633441925, + 0.04297954589128494, + -0.012180519290268421, + -0.04185732826590538, + -0.030448641628026962, + 0.038063958287239075, + -0.03018881566822529, + -0.03774535655975342, + 0.06749533861875534, + -0.022448895499110222, + 0.07988281548023224, + 0.0332358181476593, + 0.013365224935114384, + 0.032568853348493576, + 0.029638711363077164, + -0.0980173870921135, + 0.03653716668486595, + -0.011119392700493336, + -0.052226632833480835, + 0.005716217216104269, + -0.06371474266052246, + -0.017770055681467056, + 0.062027789652347565, + -0.03426312282681465, + 0.04946054145693779, + -0.020528819411993027, + -0.01751421019434929, + -0.13513445854187012, + 0.026318861171603203, + -0.00186035200022161, + -0.0011579300044104457, + 0.036876380443573, + 0.031667474657297134, + -0.02376755326986313, + -0.032235488295555115, + 0.0439796969294548, + 0.024943774566054344, + 0.0441262423992157, + -0.05574267730116844 + ] + }, + { + "id": "repo_to_md/demo.py::run_demo.setup_temp_dir", + "parent_id": "repo_to_md/demo.py::run_demo", + "file_path": "repo_to_md/demo.py", + "type": "function", + "name": "setup_temp_dir", + "start_line": 78, + "end_line": 79, + "source_code": "def setup_temp_dir():\n g.temp_dir = tempfile.mkdtemp()", + "docstring": "", + "dependencies": [], + "level": 1, + "structural_vector": [ + 1, + 1, + 0.43131868131868134, + 0.01098901098901099 + ], + "semantic_embedding": [ + -0.01647772081196308, + -0.006677731405943632, + -0.10594688355922699, + 0.008428849279880524, + 0.02188117988407612, + -0.0944736897945404, + -0.00905022956430912, + 0.08832506835460663, + -0.07054755836725235, + 0.019830066710710526, + 0.06807653605937958, + -0.001657445915043354, + 0.02239202708005905, + -0.007974458858370781, + -0.0011704305652529001, + -0.014284013770520687, + -0.06506136059761047, + 0.021188989281654358, + 0.07528190314769745, + -0.046777449548244476, + -0.004422884434461594, + 0.07268492132425308, + 0.10441789776086807, + 0.022272033616900444, + -0.009605725295841694, + -0.10353611409664154, + 0.018686410039663315, + 0.05423520505428314, + -0.02399386651813984, + 0.025671007111668587, + 0.09541527926921844, + 0.10675988346338272, + 0.02150193229317665, + -0.060549236834049225, + 0.1305081695318222, + 0.11387056112289429, + -0.030694756656885147, + -0.029713664203882217, + -0.03561808913946152, + -0.013950335793197155, + 0.053700875490903854, + 0.03893141448497772, + -0.001108083175495267, + -0.043120142072439194, + -0.08626838773488998, + -0.029720289632678032, + 0.059537213295698166, + 0.028222456574440002, + 0.007709190249443054, + -0.045568324625492096, + 0.027596937492489815, + 0.05273338779807091, + -0.06707673519849777, + -0.05562441051006317, + 1.874652753031114e-07, + -0.010030843317508698, + 0.020145878195762634, + 0.06232544779777527, + -0.07651541382074356, + -0.027176152914762497, + 0.03669152408838272, + 0.04229145124554634, + -0.03600425273180008, + -0.03678755462169647, + 0.013908159919083118, + 0.04866252839565277, + 0.0019113122252747416, + 0.10353120416402817, + 0.04325467720627785, + -0.03805270791053772, + -0.0035264000762254, + -0.0019014977151528, + 0.02526404708623886, + 0.005469413939863443, + 0.005206767935305834, + -0.06415462493896484, + 0.08205495029687881, + 0.06222465634346008, + 0.02723987214267254, + -0.04622633010149002, + -0.01326638925820589, + -0.02960631437599659, + 0.03394468501210213, + 0.0004940440994687378, + 0.005930153653025627, + -0.05252525582909584, + 0.04666433483362198, + 0.14815005660057068, + 0.10450660437345505, + -0.019065039232373238, + -0.0328008197247982, + -0.02688196487724781, + -0.0713229551911354, + -0.06738989800214767, + -0.04037496820092201, + 0.048295196145772934, + -0.021876640617847443, + 0.06281475722789764, + 0.02956467866897583, + -0.024122266098856926, + -0.0565296970307827, + -0.07452321797609329, + -0.04248957708477974, + -0.010104123502969742, + 0.04658854007720947, + 0.08654366433620453, + 0.019739903509616852, + -0.040393248200416565, + 0.025038329884409904, + 0.0011040052631869912, + -0.019513538107275963, + -0.014508760534226894, + 0.03882014751434326, + -0.09278389811515808, + 0.06377706676721573, + 0.010882863774895668, + -0.07109229266643524, + 0.056714653968811035, + 0.026257220655679703, + 0.00838156882673502, + 0.07547005265951157, + 0.03513706848025322, + 0.021164458245038986, + -0.011975405737757683, + -0.017319658771157265, + 0.020053356885910034, + 0.06623538583517075, + -8.214122179740865e-34, + 0.014811618253588676, + -0.021615082398056984, + 0.12675340473651886, + 0.05423354730010033, + 0.09532023966312408, + 0.015641260892152786, + 0.0612298958003521, + -0.02270909957587719, + -0.05180984362959862, + 0.007178289350122213, + -0.04567272216081619, + -0.03929292783141136, + -0.08957262337207794, + 0.004383833613246679, + -0.07039760798215866, + 0.0050577265210449696, + -0.08076713234186172, + 0.07291349023580551, + -0.049902599304914474, + 0.008435923606157303, + -0.07573144137859344, + 0.05775744467973709, + -0.03188912197947502, + 0.02382637932896614, + -0.016412632539868355, + 0.0024698697961866856, + 0.07807448506355286, + 0.014788525179028511, + -0.008960683830082417, + -0.002879674546420574, + -0.07464459538459778, + -0.027170415967702866, + -0.027385422959923744, + 0.0471457913517952, + -0.018917933106422424, + 0.02313338778913021, + -0.11141239106655121, + 0.03737718611955643, + -0.070878766477108, + -0.02170814387500286, + 0.12138471752405167, + 0.028611788526177406, + 0.028195200487971306, + -1.1221027307328768e-05, + 0.014067254029214382, + 0.012059562839567661, + -0.029092326760292053, + -0.002787262899801135, + 0.07655727118253708, + 0.023110415786504745, + 0.03628400340676308, + -0.006936751771718264, + 0.05457223579287529, + -0.007685819640755653, + -0.03231813758611679, + -0.0030757226049900055, + -0.005124225746840239, + -0.010138226673007011, + 0.10618677735328674, + -0.1350017488002777, + -0.0005598767893388867, + -0.0013695963425561786, + 0.008361736312508583, + 0.0004727745254058391, + 0.04579949378967285, + -0.020877033472061157, + 0.0051295943558216095, + -0.00636755395680666, + 0.05977800488471985, + 0.038746412843465805, + -0.015315382741391659, + 0.04150554537773132, + -0.07461840659379959, + 0.007354501634836197, + -0.0025236711371690035, + 0.026990678161382675, + 0.07762930542230606, + -0.022767536342144012, + -0.05961709842085838, + -0.00980770867317915, + -0.07124024629592896, + -0.021172568202018738, + -0.060362327843904495, + -0.06524684280157089, + 0.02126801572740078, + -0.09452801197767258, + -0.040205322206020355, + 0.07110796868801117, + 0.030835967510938644, + -0.09626234322786331, + -0.08209837228059769, + -0.08275365084409714, + -0.03178673982620239, + -0.01956632360816002, + -0.03243408352136612, + -1.5038907382435714e-33, + 0.06746160984039307, + -0.0031012147665023804, + 0.02684985287487507, + -0.02439664490520954, + -0.07887112349271774, + -0.003841414814814925, + -0.017738405615091324, + -0.02712184563279152, + 0.013923796825110912, + 0.017694564536213875, + -0.06293132156133652, + -0.06756828725337982, + 0.037657253444194794, + -0.05945877730846405, + 0.07451529800891876, + 0.021786577999591827, + 0.012508637271821499, + 0.018768535926938057, + -0.006172461900860071, + -0.016104672104120255, + -0.03409173712134361, + -0.04287588968873024, + 0.05348651483654976, + 0.10240687429904938, + -0.061552707105875015, + -0.024521905928850174, + 0.010144393891096115, + 0.026405200362205505, + -0.005032036453485489, + 0.00964205153286457, + -0.015286259353160858, + 0.07019587606191635, + -0.16485480964183807, + 0.01696179062128067, + -0.008745725266635418, + 0.012587213888764381, + 0.03180859237909317, + 0.014168662950396538, + 0.018234428018331528, + 0.018365958705544472, + 0.08246598392724991, + 0.06545790284872055, + -0.061317846179008484, + -0.004809744656085968, + -0.022396553307771683, + 5.2704439440276474e-05, + 0.08874748647212982, + -0.0748511478304863, + -0.0023063227999955416, + -0.05676840618252754, + 0.026068510487675667, + -0.05084485933184624, + -0.04371116682887077, + -0.03877498582005501, + 0.014886831864714622, + 7.997362990863621e-05, + 0.0015835673548281193, + 0.05635712668299675, + -0.01580982282757759, + -0.0018737921491265297, + -0.02342149056494236, + -0.08353058993816376, + -0.03376772627234459, + -0.11201445013284683, + -0.14395686984062195, + -0.02724226750433445, + -0.12767450511455536, + -0.0028376879636198282, + 0.0009315622737631202, + 0.01018692646175623, + 0.017099587246775627, + 0.032089341431856155, + 0.02980036288499832, + 0.0018136519938707352, + -0.02635025419294834, + 0.0684749111533165, + 0.006726763676851988, + 0.0281998123973608, + 0.02610088512301445, + 0.020547103136777878, + 0.06915764510631561, + 0.019453000277280807, + 0.023305246606469154, + 0.03498157113790512, + -0.013090788386762142, + -0.05495687946677208, + 0.004040344152599573, + 0.04526209831237793, + 0.04746071994304657, + -0.07547188550233841, + 0.003547235392034054, + 0.036319147795438766, + 0.07430709898471832, + 0.06806635856628418, + 0.02123512327671051, + -3.739983611694697e-08, + -0.009576108306646347, + 0.021991359069943428, + 0.0452612079679966, + -0.016324372962117195, + -0.016263144090771675, + 0.03129606693983078, + 0.0007811295217834413, + -0.0038828973192721605, + 0.06281118094921112, + -0.01708279363811016, + 0.014706389978528023, + -0.030472276732325554, + -0.0002776940236799419, + 0.06818149983882904, + -0.10982632637023926, + 0.04908382520079613, + -0.054665397852659225, + 0.10029424726963043, + -0.02674918621778488, + -0.03581995517015457, + -0.016504039987921715, + -0.01483207754790783, + 0.025339294224977493, + -0.010917694307863712, + -0.029299145564436913, + 0.05667586252093315, + 0.0335230678319931, + -0.01577230729162693, + -0.011136526241898537, + -0.041512198746204376, + 0.06462513655424118, + -0.02479546144604683, + -0.07131015509366989, + 0.014191276393830776, + -0.0031335109379142523, + -0.0032105916179716587, + 0.08919993788003922, + 0.03884536400437355, + 0.050848446786403656, + -0.017614347860217094, + -0.11503712832927704, + 0.04548829048871994, + -0.06112063303589821, + -0.04610639810562134, + -0.016827838495373726, + -0.0653947964310646, + -0.036454785615205765, + 0.11331765353679657, + -0.10886114090681076, + 0.036419566720724106, + 0.018443642184138298, + 0.03189758211374283, + -0.10770045220851898, + 0.020405136048793793, + 0.0013929972192272544, + -0.02611609920859337, + -0.030305985361337662, + 0.013976328074932098, + -0.007232580333948135, + -0.1003478616476059, + -0.07697207480669022, + 0.028974099084734917, + 0.06435880064964294, + -0.019678881391882896 + ] + }, + { + "id": "repo_to_md/demo.py::run_demo.cleanup_temp_dir", + "parent_id": "repo_to_md/demo.py::run_demo", + "file_path": "repo_to_md/demo.py", + "type": "function", + "name": "cleanup_temp_dir", + "start_line": 82, + "end_line": 84, + "source_code": "def cleanup_temp_dir(_=None):\n if hasattr(g, 'temp_dir'):\n shutil.rmtree(g.temp_dir, ignore_errors=True)", + "docstring": "", + "dependencies": [ + "hasattr" + ], + "level": 1, + "structural_vector": [ + 1, + 1, + 0.45604395604395603, + 0.016483516483516484 + ], + "semantic_embedding": [ + -0.016171807423233986, + 0.07860729098320007, + -0.01616526022553444, + 0.018193434923887253, + 0.09808336943387985, + -0.13959753513336182, + 0.035360679030418396, + -0.05464380234479904, + 0.016800744459033012, + 0.020540157333016396, + 0.04651417210698128, + 0.0459485687315464, + 0.055787019431591034, + 0.0034665886778384447, + -0.05150681361556053, + -0.0005180263542570174, + -0.11625556647777557, + 0.03139352425932884, + 0.0540856197476387, + -0.03842941299080849, + 0.008265300653874874, + 0.12167484313249588, + 0.05064985528588295, + 0.0987105518579483, + -0.00845005176961422, + -0.08401721715927124, + -0.00461028004065156, + -0.006086153909564018, + -0.060329753905534744, + 0.002101622289046645, + 0.07229965925216675, + 0.08839013427495956, + 0.0010445213411003351, + -0.059444647282361984, + 0.10682566463947296, + 0.13253098726272583, + -0.10389439016580582, + -0.013061716221272945, + 0.0025329499039798975, + 0.06066392734646797, + 0.0383123978972435, + 0.07897374778985977, + -0.015845101326704025, + -0.06591104716062546, + -0.0748882070183754, + -0.02960934303700924, + -0.012493008747696877, + -0.014557448215782642, + -0.025265585631132126, + -0.042214520275592804, + 0.0828821063041687, + 0.020621754229068756, + -0.07606405019760132, + -0.0772598385810852, + 0.043045856058597565, + -0.0291884858161211, + 0.029800157994031906, + -0.0040144771337509155, + -0.12452663481235504, + 0.005768824368715286, + 0.04516768082976341, + 0.011554742231965065, + -0.027598392218351364, + -0.056241340935230255, + 0.02453779987990856, + 0.05839836224913597, + 0.0002501794369891286, + 0.07139087468385696, + 0.01705176755785942, + 0.02760978974401951, + 0.03279001638293266, + -0.0026733402628451586, + -0.00030152813997119665, + 0.009237667545676231, + -5.3632742492482066e-05, + 0.029954107478260994, + 0.06328776478767395, + 0.01790606416761875, + -0.04002761095762253, + 0.013902386650443077, + -0.038370490074157715, + -0.09660342335700989, + -0.002640100661665201, + -0.05137469246983528, + 0.008451083675026894, + 0.00997275859117508, + -0.00237886980175972, + 0.09998761862516403, + 0.1224576011300087, + -0.017012540251016617, + 0.020336134359240532, + 0.00045608036452904344, + 0.05596510320901871, + -0.024601884186267853, + -0.09416410326957703, + 0.020397208631038666, + 0.02430260367691517, + 0.03989669308066368, + -0.05172056704759598, + 0.012433226220309734, + -0.03552486002445221, + -0.021126532927155495, + -0.007930496707558632, + -0.08014588803052902, + 0.046740006655454636, + 0.14388535916805267, + -0.010659527964890003, + -0.04479745402932167, + -0.027498815208673477, + -0.008488725870847702, + -0.0839352235198021, + -0.06684093922376633, + -0.018629033118486404, + 0.025220206007361412, + 0.038207247853279114, + 0.05317891016602516, + -0.017178284004330635, + 0.05734511837363243, + -0.028116025030612946, + 0.011389659717679024, + 0.10768237709999084, + -0.014472180977463722, + 0.012663575820624828, + -0.007802857086062431, + -0.05291712284088135, + -0.009286354295909405, + 0.04397571086883545, + -8.393465883477883e-34, + 0.015977775678038597, + 0.010290713049471378, + 0.05864608287811279, + 0.02569979429244995, + 0.12701109051704407, + 0.047982651740312576, + 0.04042862355709076, + 0.029854146763682365, + 0.018948541954159737, + 0.057359885424375534, + 0.018681993708014488, + -0.044764380902051926, + -0.079986572265625, + -0.055747006088495255, + -0.027268825098872185, + -0.005820256192237139, + -0.021862084046006203, + 0.03864963725209236, + -0.07424040883779526, + 0.012067839503288269, + 0.03801153600215912, + 0.05505284667015076, + -0.1042555496096611, + -0.0018971653189510107, + 0.03204238787293434, + -0.028684986755251884, + 0.048539306968450546, + 0.02633006125688553, + 0.006094668060541153, + -0.015720412135124207, + -0.051813431084156036, + -0.016647707670927048, + -0.03681313619017601, + 0.08494158089160919, + -0.06794014573097229, + 0.008776716887950897, + -0.14326657354831696, + -0.003159902524203062, + -0.04041305556893349, + -0.009779834188520908, + 0.05015737935900688, + 0.03348083794116974, + -0.04577166959643364, + 0.036836158484220505, + 0.04908647760748863, + -0.023442313075065613, + 0.012563343159854412, + -0.012318485416471958, + -0.003566610859706998, + 0.06082338094711304, + 0.06897013634443283, + 0.019551992416381836, + 0.034652262926101685, + -0.009120299480855465, + -0.11553492397069931, + 0.017247257754206657, + 0.041112542152404785, + 0.023907259106636047, + 0.05696241185069084, + -0.11351040750741959, + 0.09648028761148453, + -0.03830624744296074, + -0.04062947630882263, + -0.05980559438467026, + -0.006380298174917698, + 0.005593659356236458, + 0.05272410064935684, + 0.024763355031609535, + 0.002190961502492428, + -0.029384104534983635, + 0.0012855243403464556, + 0.042743224650621414, + -0.07291673868894577, + -0.029136966913938522, + -0.01925470121204853, + -0.008772069588303566, + 0.05633757263422012, + -0.04405943676829338, + -0.01914159581065178, + 0.014257418923079967, + -0.04208368808031082, + -0.06991858780384064, + -0.04316207766532898, + -0.010202272795140743, + 0.02129315957427025, + -0.09269973635673523, + 0.0354253426194191, + 0.09309402108192444, + -0.006714606657624245, + -0.01420195959508419, + -0.044263895601034164, + -0.06875672936439514, + -0.06520607322454453, + -0.01645640842616558, + -0.008734960108995438, + -1.7376407286404604e-33, + 0.08312267065048218, + -0.02238188311457634, + 0.08631610870361328, + -0.036222703754901886, + -0.08898535370826721, + -0.036159370094537735, + -0.004015629645437002, + -0.012538043782114983, + -0.010178950615227222, + -0.04689913988113403, + -0.04359763488173485, + -0.02883150242269039, + 0.04114061966538429, + -0.031840622425079346, + 0.10167243331670761, + 0.06585089862346649, + -0.016894031316041946, + -0.007780754938721657, + -0.11097011715173721, + 0.027721019461750984, + -0.00642092851921916, + -0.007858558557927608, + 0.04871001094579697, + 0.042505424469709396, + -0.09414207190275192, + -0.06439757347106934, + -0.01644570380449295, + -0.02208842523396015, + 0.057574234902858734, + 0.010808322578668594, + -0.02633657306432724, + 0.09299860894680023, + -0.057206496596336365, + -0.03225630894303322, + 0.0033803547266870737, + -0.028856832534074783, + -0.001799107645638287, + -0.010478745214641094, + 0.033300790935754776, + 0.03967011347413063, + 0.08479577302932739, + 0.08216824382543564, + -0.02503000944852829, + 0.04158209264278412, + -0.01959429308772087, + -0.00692241033539176, + 0.0006527103832922876, + -0.05864466354250908, + 0.00306689809076488, + -0.04184132441878319, + 0.004562894813716412, + -0.042245179414749146, + -0.028958916664123535, + -0.01516511756926775, + 0.015591990202665329, + -0.007411715108901262, + -0.004320320673286915, + 0.003263249294832349, + -0.024511251598596573, + 0.0023601986467838287, + -0.01745583303272724, + -0.0018882169388234615, + -0.0867483913898468, + -0.02682833932340145, + -0.1054982990026474, + -0.07040853798389435, + -0.09127608686685562, + -0.0038108150474727154, + 0.024940377101302147, + -0.01175264548510313, + 0.011348985135555267, + 0.08799715340137482, + -0.023887166753411293, + -0.008662529289722443, + -0.03824855014681816, + 0.023744875565171242, + -0.02616926282644272, + -0.04279498755931854, + 0.04852531850337982, + 0.017589665949344635, + 0.01777409203350544, + 0.03522446006536484, + 0.014999434351921082, + 0.038135286420583725, + -0.04713434725999832, + -0.11155184358358383, + -0.03660312294960022, + 0.017698664218187332, + 0.012767980806529522, + -0.0455954484641552, + 0.03624669834971428, + 0.0015122309559956193, + 0.11847919970750809, + 0.03418506309390068, + -0.02271398715674877, + -3.69173385195154e-08, + -0.02914368361234665, + 0.007366466335952282, + 0.1030622273683548, + -0.02172318659722805, + 0.0487726628780365, + -0.027453316375613213, + -0.009504208341240883, + 0.11752419173717499, + 0.06389988958835602, + -0.000672362104523927, + 0.03817463293671608, + 0.0064142183400690556, + -0.08192510902881622, + 0.023393141105771065, + -0.03547218069434166, + 0.00822347030043602, + -0.03666374459862709, + 0.07422105222940445, + 0.011109483428299427, + 0.06678084284067154, + -0.01294014137238264, + -0.040047790855169296, + -0.04347781091928482, + 0.05131949111819267, + -0.0007273794617503881, + 0.03154849633574486, + 0.05125851184129715, + 0.02472619153559208, + -0.016600480303168297, + 0.006767031736671925, + 0.07288780808448792, + -0.03888104483485222, + -0.00795117486268282, + -0.0021689378190785646, + -0.01200805976986885, + 0.035993147641420364, + 0.08675459027290344, + 0.010039597749710083, + 0.007169797550886869, + 0.06932491064071655, + -0.09263131767511368, + 0.03246461600065231, + -0.05070020630955696, + -0.0350504033267498, + -0.04870002344250679, + -0.06248246133327484, + -0.03948865458369255, + 0.022635681554675102, + -0.04153667390346527, + -0.01926157996058464, + 0.010668572038412094, + 0.03355874866247177, + -0.15492142736911774, + 0.0013335676630958915, + -0.09476819634437561, + -0.011781083419919014, + 0.05074635520577431, + 0.05342406779527664, + -0.036910634487867355, + -0.0648842379450798, + 0.06196970492601395, + 0.005372954066842794, + 0.08991953730583191, + -0.04236321523785591 + ] + }, + { + "id": "repo_to_md/demo.py::run_demo.index", + "parent_id": "repo_to_md/demo.py::run_demo", + "file_path": "repo_to_md/demo.py", + "type": "function", + "name": "index", + "start_line": 87, + "end_line": 88, + "source_code": "def index():\n return render_template('index.html')", + "docstring": "", + "dependencies": [ + "render_template" + ], + "level": 1, + "structural_vector": [ + 1, + 1, + 0.4807692307692308, + 0.01098901098901099 + ], + "semantic_embedding": [ + -0.030132874846458435, + 0.04272907227277756, + 0.005472416058182716, + 0.015343542210757732, + 0.06416632235050201, + -0.014628955163061619, + -0.05593491345643997, + -0.004819278139621019, + -0.03709353879094124, + -0.0069989706389606, + -0.02858797274529934, + 0.05093429610133171, + -0.013453622348606586, + -0.01105165109038353, + -0.01619771309196949, + 0.03145208582282066, + -0.05333367735147476, + -0.011049199849367142, + 0.1458309143781662, + 0.044562600553035736, + 0.10778050124645233, + 0.08399620652198792, + 0.03275839984416962, + 0.04546893388032913, + 0.0032932613976299763, + -0.044085271656513214, + 0.007739868015050888, + 0.06160428747534752, + 0.01716604456305504, + -0.008037793450057507, + 0.05600437894463539, + -0.0010598715161904693, + -0.0006036441773176193, + 0.03186735138297081, + 0.023777572438120842, + 0.09744346886873245, + -0.0478639081120491, + -0.06550861895084381, + 0.003676866414025426, + 0.014104444533586502, + 0.07561483234167099, + 0.07149758189916611, + -0.04203886166214943, + -0.07140294462442398, + -0.02802504412829876, + -0.08511772751808167, + 0.041055697947740555, + -0.05545710772275925, + -0.014113379642367363, + -0.09048017859458923, + -0.020155953243374825, + 0.002458940725773573, + -0.06484584510326385, + -0.10336089134216309, + -0.018706921488046646, + -0.01222167257219553, + 0.012469479814171791, + -0.09613389521837234, + -0.00971531867980957, + -0.06883250176906586, + 0.04088402912020683, + 0.042691729962825775, + 0.024671249091625214, + -0.020385993644595146, + 0.003002197714522481, + 0.022267024964094162, + 0.030699657276272774, + 0.032027825713157654, + 0.023336684331297874, + -0.027342315763235092, + -0.023933304473757744, + -0.032695308327674866, + 0.055214427411556244, + -0.047873545438051224, + 0.008258409798145294, + -0.09419524669647217, + 0.051395367830991745, + 0.01319127157330513, + -0.029724987223744392, + -0.008372072130441666, + 0.038607243448495865, + -0.022858157753944397, + 0.041420236229896545, + -0.01166935358196497, + 0.0445130318403244, + -0.06518261879682541, + 0.010774553753435612, + 0.05997428297996521, + 0.049355462193489075, + -0.0649019405245781, + 0.03235255554318428, + -0.013895319774746895, + -0.04207707196474075, + -0.0475834459066391, + -0.05218870937824249, + 0.06716637313365936, + 0.05600087717175484, + 0.04510129243135452, + -0.01233308482915163, + 0.008521090261638165, + 0.008808344602584839, + -0.1039167046546936, + -0.03002374805510044, + -0.05357901751995087, + 0.0674998015165329, + 0.06788644194602966, + 0.038416873663663864, + 0.00505829369649291, + -0.016820693388581276, + -0.006437533535063267, + -0.027389807626605034, + 0.010354158468544483, + -0.05029202252626419, + -0.023079322651028633, + 0.002527365693822503, + -0.019788578152656555, + -0.028782133013010025, + 0.007501043379306793, + 0.0380888395011425, + 0.07607191801071167, + 0.07631897926330566, + 0.0583350770175457, + 0.03721252828836441, + 0.0064619448967278, + -0.026955420151352882, + 0.025745192542672157, + -0.031852807849645615, + -3.504114864338653e-33, + 0.01954050175845623, + 0.036416638642549515, + 0.05048660561442375, + -0.00866068433970213, + 0.0827941745519638, + -0.040220946073532104, + 0.060555052012205124, + -0.048085108399391174, + -0.06278637051582336, + 0.03937707096338272, + -0.029789162799715996, + -0.01935086026787758, + 0.0017480103997513652, + 0.04442277550697327, + -0.12499233335256577, + 0.010754065588116646, + -0.033359676599502563, + 0.04478021711111069, + -0.0005217210273258388, + -0.01192019134759903, + -0.04013923928141594, + 0.006489280611276627, + -0.0012507849605754018, + 0.03493305668234825, + -0.03622587397694588, + 0.053255844861269, + -0.03756033629179001, + 0.029057012870907784, + -0.07021744549274445, + -0.027761613950133324, + 0.024077821522951126, + -0.010835555382072926, + 0.030659900978207588, + -0.032256584614515305, + -0.010781819000840187, + 0.014038613066077232, + 0.020247790962457657, + -0.01695098914206028, + -0.08350422978401184, + -0.028764188289642334, + 0.04406067356467247, + -0.012285498902201653, + 0.020089559257030487, + -0.0007977637578733265, + 0.011397654190659523, + 0.028299177065491676, + -0.03245594725012779, + 0.05915689468383789, + 0.019857723265886307, + -0.02417386695742607, + -0.04724642634391785, + -0.043653275817632675, + 0.030092105269432068, + 0.0063565559685230255, + -0.04455738142132759, + -0.01781986467540264, + -0.014580671675503254, + -0.005214862059801817, + 0.1559533029794693, + -0.06922811269760132, + 0.0517050139605999, + -0.08652829378843307, + -0.016689542680978775, + -0.01920199580490589, + -0.012165595777332783, + -0.010111966170370579, + 0.04242533817887306, + 0.05128631740808487, + 0.03730057179927826, + 0.06875056028366089, + 0.028792692348361015, + 0.015832049772143364, + -0.02518993616104126, + 0.027927575632929802, + 0.0509834922850132, + 0.017898306250572205, + -0.07588799297809601, + -0.09678230434656143, + -0.010575422085821629, + 0.05602756515145302, + -0.03749300539493561, + -0.019622480496764183, + -0.029486102983355522, + -0.03032000921666622, + 0.05792541056871414, + -0.0670451819896698, + 0.02941039577126503, + 0.05886314809322357, + 0.10140029340982437, + -0.04952195659279823, + -0.07018100470304489, + -0.08671494573354721, + -0.045387785881757736, + -0.128404900431633, + -0.020378798246383667, + -1.0992468969877835e-34, + 0.06992404162883759, + 0.00646575540304184, + -0.018306341022253036, + -0.014230375178158283, + -0.05851489305496216, + -0.016916407272219658, + 0.022258324548602104, + 0.06986767798662186, + 0.018002133816480637, + 0.011245480738580227, + -0.019694140180945396, + -0.05804101750254631, + 0.03217272460460663, + -0.001871910528279841, + 0.04893774911761284, + 0.09649916738271713, + -0.0928681343793869, + -0.03939997777342796, + 0.008017856627702713, + -0.023421714082360268, + -0.08340706676244736, + -0.04864854738116264, + 0.06472960859537125, + 0.036383647471666336, + -0.0595373697578907, + 0.012712078168988228, + 0.0705011636018753, + 0.030169762670993805, + 0.01063254289329052, + -0.012539561837911606, + 0.018345870077610016, + 0.05677100270986557, + -0.048117220401763916, + 0.045564915984869, + 0.004543458577245474, + 0.11824551224708557, + -0.023231739178299904, + -0.0845499038696289, + 0.007113829255104065, + 0.07441692799329758, + 0.06376011669635773, + 0.0754697322845459, + 0.04556906223297119, + 0.0743950754404068, + -0.06031840667128563, + -0.06481558829545975, + 0.012837477959692478, + -0.041724082082509995, + 0.08139335364103317, + -0.12977638840675354, + -0.030823878943920135, + -0.047116298228502274, + 0.00766228511929512, + -0.05591708794236183, + -0.0396290197968483, + -0.07097519189119339, + -0.06960456073284149, + 0.07255689054727554, + -0.06554356217384338, + 0.05197713151574135, + 0.0023819198831915855, + -0.03773897513747215, + -0.11489158123731613, + -0.04221653938293457, + -0.07480867207050323, + -0.0396549329161644, + -0.13874846696853638, + -0.059291280806064606, + 0.021304067224264145, + 0.016978764906525612, + 0.0035854007583111525, + 0.00603511743247509, + 0.03038126602768898, + -0.021451223641633987, + -0.019037598744034767, + 0.034948866814374924, + 0.024599406868219376, + 0.07002009451389313, + 0.003409716533496976, + 0.015505657531321049, + 0.11721480637788773, + -0.008665485307574272, + -0.010757303796708584, + -0.05775975435972214, + -0.02118399180471897, + -0.06985246390104294, + -0.0028337370604276657, + 0.11155832558870316, + -0.10371198505163193, + -0.08339860290288925, + 0.0006115093128755689, + -0.03673197701573372, + 0.02254628576338291, + 0.07026440650224686, + 0.054781194776296616, + -2.8905065008189013e-08, + 0.023717248812317848, + 0.05328246206045151, + 0.08502407371997833, + -0.07634039223194122, + -0.035960059612989426, + 0.033032115548849106, + 0.03753403574228287, + -0.07657121121883392, + -0.019929546862840652, + -0.01513454969972372, + -0.02736278623342514, + -0.044825732707977295, + -0.013800389133393764, + 0.10145601630210876, + 0.013760115019977093, + 0.08953270316123962, + -0.08344106376171112, + 0.1229613646864891, + -0.00938994251191616, + 0.00851493515074253, + -0.08746425807476044, + 0.021396221593022346, + -0.029851527884602547, + -0.05075742304325104, + 0.046777863055467606, + 0.08002979308366776, + -0.015171718783676624, + -0.013347944244742393, + -0.052853889763355255, + 0.04815754294395447, + 0.10796573758125305, + -0.004143213853240013, + -0.06155106797814369, + 0.06490018963813782, + 0.024870431050658226, + 0.0008205868070945144, + 0.038079943507909775, + -0.06472557783126831, + 0.04399896785616875, + -0.004836342763155699, + -0.0218874029815197, + -0.010825582779943943, + -0.04194040596485138, + -0.049320973455905914, + -0.01400781236588955, + 0.03213043510913849, + -0.05326205864548683, + 0.002915432443842292, + 0.017237048596143723, + 0.060583315789699554, + 0.045643627643585205, + -0.09562166035175323, + -0.1046513095498085, + -0.0016382394824177027, + 0.00822858139872551, + 0.010419185273349285, + 0.029638834297657013, + 0.032398223876953125, + 0.019093075767159462, + -0.08965368568897247, + 0.05340598523616791, + 0.020566998049616814, + 0.13320955634117126, + -0.0755813717842102 + ] + }, + { + "id": "repo_to_md/demo.py::run_demo.process", + "parent_id": "repo_to_md/demo.py::run_demo", + "file_path": "repo_to_md/demo.py", + "type": "function", + "name": "process", + "start_line": 91, + "end_line": 108, + "source_code": "def process():\n if 'files[]' in request.files:\n files = request.files.getlist('files[]')\n if not files:\n return jsonify({'error': 'No files uploaded'}), 400\n markdown_content = create_markdown_document(files=files)\n filename = \"uploaded_files_summary.md\"\n else:\n repo_url = request.json.get('repo_url', '').strip()\n if not repo_url:\n return jsonify({'error': 'Please provide a repository URL or upload files'}), 400\n markdown_content = create_markdown_document(repo_url)\n if markdown_content.startswith(\"Error:\"):\n return jsonify({'error': markdown_content}), 400\n owner, repo = repo_url.rstrip('/').split('/')[-2:]\n filename = f\"{owner}_{repo}_summary.md\"\n file_blocks = extract_file_blocks(markdown_content)\n return jsonify({'markdown': markdown_content, 'filename': filename, 'files': file_blocks})", + "docstring": "", + "dependencies": [ + "extract_file_blocks", + "create_markdown_document", + "jsonify" + ], + "level": 1, + "structural_vector": [ + 1, + 1, + 0.5467032967032966, + 0.0989010989010989 + ], + "semantic_embedding": [ + -0.09170934557914734, + 0.0598595030605793, + -0.013816604390740395, + -0.010872384533286095, + 0.05843121558427811, + -0.07200100272893906, + -0.046227436512708664, + 0.08387564867734909, + -0.02189488336443901, + 0.021754637360572815, + -0.002759526250883937, + 0.05043435096740723, + 0.024250414222478867, + 0.07652582228183746, + -0.01455133780837059, + 0.002398062963038683, + -0.09090162068605423, + 0.012486892752349377, + -0.014326881617307663, + -0.032787274569272995, + 0.05784132704138756, + 0.04357083886861801, + 0.11740794777870178, + 0.07495799660682678, + -0.003501470200717449, + -0.11617632210254669, + -0.025996915996074677, + -0.0071549792774021626, + -0.05759378522634506, + 0.020321525633335114, + 0.07949595898389816, + -0.08116188645362854, + -0.011035345494747162, + -0.06755229830741882, + 0.10033981502056122, + 0.09409366548061371, + -0.0012005857424810529, + -0.14162670075893402, + 0.03444165363907814, + 0.013258782215416431, + 0.08915682137012482, + 0.03736404329538345, + -0.06186720356345177, + -0.07556408643722534, + -0.05581619217991829, + -0.07874514162540436, + 0.07475372403860092, + -0.04840315878391266, + -0.007056976202875376, + -0.0038123377598822117, + -0.023678774014115334, + 0.04288859665393829, + -0.06512925773859024, + -0.0370282307267189, + -0.028383219614624977, + -0.046340908855199814, + -0.07671592384576797, + -0.0014803711092099547, + -0.06893003731966019, + -0.06372028589248657, + 0.0034127638209611177, + -0.055588290095329285, + -0.04647282883524895, + -0.04971110448241234, + 0.017474094405770302, + 0.034217189997434616, + -0.02778603881597519, + 0.04624418914318085, + 0.01247352547943592, + -0.0321703776717186, + 0.015071104280650616, + 0.015393941663205624, + -0.027396196499466896, + 0.021464601159095764, + -0.01816665753722191, + -0.06898131221532822, + 0.08374598622322083, + 0.05405908823013306, + -0.06475364416837692, + -0.039303116500377655, + 0.014636944979429245, + -0.10788769274950027, + -0.023108625784516335, + 0.00824042223393917, + -0.05741729587316513, + -0.047691185027360916, + 0.008653582073748112, + 0.040850766003131866, + 0.007211409974843264, + -0.09938416630029678, + -0.02142149768769741, + 0.02405533567070961, + -0.02778688818216324, + -0.012216135859489441, + 0.00694960355758667, + 0.06415504962205887, + 0.02996714413166046, + -0.0013464889489114285, + -0.010205060243606567, + 0.05359708517789841, + 0.01578817330300808, + -0.03223950415849686, + 0.05971803888678551, + -0.08117576688528061, + 0.11333727091550827, + 0.07294090837240219, + 0.01513984426856041, + 0.032525233924388885, + -0.03566668927669525, + -0.02876003086566925, + -0.05849318578839302, + 0.008928191848099232, + -0.06987416744232178, + -0.02230065129697323, + -0.01140929851680994, + 0.08459778875112534, + -0.0027684590313583612, + 0.07401180267333984, + -0.035799868404865265, + 0.02001197636127472, + 0.2010667473077774, + -0.017900772392749786, + -0.0453781932592392, + -0.02850445732474327, + 0.01392026524990797, + -0.033146101981401443, + 0.053150709718465805, + 5.4192703009746486e-33, + 0.07476760447025299, + -0.006578235421329737, + 0.08820100128650665, + -0.01766909658908844, + 0.0657111331820488, + -0.012636186555027962, + -0.00012195161980343983, + -0.03375239297747612, + -0.06516774743795395, + -0.03598807752132416, + -0.035444945096969604, + -0.033450402319431305, + -0.003454900346696377, + 0.027316030114889145, + -0.09684266149997711, + -0.042811959981918335, + -0.021627455949783325, + 0.01741860620677471, + 0.057914312928915024, + 0.060192760080099106, + -0.04595569521188736, + -0.02875014767050743, + -0.03108641505241394, + 0.07184870541095734, + -0.027828866615891457, + 0.011339923366904259, + 0.0003122496709693223, + 0.042672548443078995, + -0.0358525775372982, + -0.049993205815553665, + -0.000866030459292233, + -0.016418881714344025, + 0.05284617841243744, + -0.01931445300579071, + -0.012507548555731773, + 0.011537774465978146, + -0.05381396785378456, + -0.004147760570049286, + -0.04974137246608734, + -0.10560113936662674, + 0.08494789153337479, + -0.006345798261463642, + -0.0810798779129982, + 0.025106316432356834, + -0.07661223411560059, + -0.00833402294665575, + -0.03344115614891052, + -0.008478008210659027, + 0.018290141597390175, + 0.022224396467208862, + 0.015969261527061462, + 0.02135397307574749, + 0.041216906160116196, + 8.97189456736669e-05, + 0.008657901547849178, + -0.0010894935112446547, + -0.012029845267534256, + 0.0008459223317913711, + 0.0787644311785698, + -0.12338253855705261, + 0.09550078958272934, + -0.04556241258978844, + 0.025416797026991844, + -0.04714043065905571, + -0.0026898805517703295, + -0.008570194244384766, + 0.048581480979919434, + 0.07083234190940857, + 0.05320432409644127, + 0.05836041644215584, + -0.06930232048034668, + 0.08154091984033585, + -0.04391014203429222, + -0.019771147519350052, + 0.06654452532529831, + -0.051873426884412766, + -0.006265473552048206, + -0.023806314915418625, + 0.0020283209159970284, + 0.0448831245303154, + -0.045553091913461685, + -0.07118088752031326, + -0.028100766241550446, + 0.012672814540565014, + -0.008097980171442032, + 0.06595129519701004, + 0.014442981220781803, + 0.03772202134132385, + 0.0039542498998343945, + -0.061006564646959305, + -0.03181734308600426, + -0.0040612611919641495, + 0.0025955967139452696, + -0.06317257881164551, + -0.0041776071302592754, + -6.94103185942858e-33, + 0.07632019370794296, + -0.030335871502757072, + 0.011506101116538048, + -0.0027114353142678738, + 0.0024012895300984383, + -0.02957388013601303, + 0.05881066247820854, + 0.05975419282913208, + 0.07059670239686966, + 0.04328287020325661, + -0.046809274703264236, + -0.038398463279008865, + -0.022502301260828972, + -0.0954107940196991, + -0.05569252744317055, + -0.006131357047706842, + -0.03855259716510773, + -0.013118576258420944, + 0.028600430116057396, + -0.042831964790821075, + -0.03358768671751022, + 0.03672008961439133, + 0.04846983030438423, + 0.07131747901439667, + -0.0339764729142189, + -0.02139228768646717, + 0.0013892308343201876, + -0.026007313281297684, + -0.05626716837286949, + -0.04463062435388565, + -0.021049760282039642, + 0.027194343507289886, + -0.1176629588007927, + 0.023102115839719772, + -0.0005179496365599334, + -0.015048147179186344, + 0.02730998583137989, + 0.13094496726989746, + 0.01660848781466484, + 0.08978623896837234, + 0.034224290400743484, + 0.06649698317050934, + 0.01347957830876112, + 0.040994226932525635, + 0.041567590087652206, + -0.05962012708187103, + 0.07282950729131699, + 0.04448692500591278, + 0.0014867084100842476, + -0.015953004360198975, + -0.004175364039838314, + -0.042191825807094574, + 0.014521562494337559, + 0.017248129472136497, + 0.0365770198404789, + -0.007714464329183102, + 0.04176389053463936, + -0.041588280349969864, + -0.08574636280536652, + 0.009343172423541546, + -0.07871412485837936, + -0.06188271939754486, + -0.08798780292272568, + -0.012523118406534195, + -0.037619851529598236, + -0.027524786069989204, + -0.04761620610952377, + -0.04733092710375786, + 0.03211687505245209, + 0.01829114370048046, + -0.019517818465828896, + -0.0086032934486866, + 0.07594495266675949, + -0.015173569321632385, + 0.08871186524629593, + 0.048924751579761505, + -0.06925676017999649, + -0.010831613093614578, + -0.01938018947839737, + 0.028368279337882996, + 0.05143339931964874, + -0.010981131345033646, + -0.017025217413902283, + 0.05179683119058609, + 0.01823030598461628, + -0.047641243785619736, + -0.02966398000717163, + 0.09907836467027664, + -0.04339064285159111, + -0.028355667367577553, + 0.011564628221094608, + 0.03879749774932861, + 0.08449804037809372, + 0.04204056039452553, + 0.03381306305527687, + -5.384433521271603e-08, + -0.024218091741204262, + 0.04913541302084923, + -0.02563602663576603, + -0.012695375829935074, + -0.021177038550376892, + 0.07386983931064606, + 0.020107733085751534, + -0.06535840779542923, + 0.06957810372114182, + -0.07298125326633453, + -0.019174987450242043, + -0.036381322890520096, + -0.06872683763504028, + 0.005736414808779955, + -0.1050402969121933, + 0.034570563584566116, + -0.029333628714084625, + 0.14931464195251465, + -0.022400427609682083, + 0.003777794074267149, + -0.01586279831826687, + -0.04171223193407059, + -0.034183893352746964, + -0.02364959381520748, + 0.05762285366654396, + 0.06998101621866226, + 0.035939060151576996, + 0.029343467205762863, + -0.12498515844345093, + -0.027927933260798454, + 0.08852516114711761, + -0.03954626992344856, + 0.005447627976536751, + 0.009604884311556816, + 0.026373064145445824, + 0.032310083508491516, + 0.13374191522598267, + 0.012396950274705887, + 0.019916540011763573, + 0.04319664463400841, + -0.02440253086388111, + 0.05648365616798401, + -0.03996685519814491, + -0.037169139832258224, + -0.00760732451453805, + -0.024083668366074562, + -0.07183895260095596, + 0.020199580118060112, + -0.03163473308086395, + 0.003588391002267599, + 0.03477683663368225, + -0.07159478962421417, + 0.020799821242690086, + -0.0006349285249598324, + -0.016109146177768707, + -0.021275658160448074, + 0.07447808235883713, + 0.030824637040495872, + -0.009448051452636719, + -0.02597269043326378, + 0.1475210189819336, + 0.014577596448361874, + 0.07511238753795624, + 0.022143233567476273 + ] + }, + { + "id": "repo_to_md/demo.py::run_demo.download", + "parent_id": "repo_to_md/demo.py::run_demo", + "file_path": "repo_to_md/demo.py", + "type": "function", + "name": "download", + "start_line": 111, + "end_line": 114, + "source_code": "def download():\n data = request.json\n buffer = io.BytesIO(data['markdown'].encode('utf-8'))\n return send_file(buffer, as_attachment=True, download_name=data.get('filename', 'document.md'), mimetype='text/markdown')", + "docstring": "", + "dependencies": [ + "send_file" + ], + "level": 1, + "structural_vector": [ + 1, + 1, + 0.6181318681318682, + 0.02197802197802198 + ], + "semantic_embedding": [ + -0.03269593045115471, + 0.06544099003076553, + -0.054089296609163284, + -0.01041521318256855, + 0.024593587964773178, + -0.06390733271837234, + 0.03345198929309845, + 0.05254998803138733, + -0.0030593073461204767, + 0.02435915172100067, + -0.02054145559668541, + 0.09712525457143784, + 0.006694631651043892, + 0.05528215691447258, + -0.0103164566680789, + 0.02836870215833187, + -0.06286103278398514, + 0.04912574216723442, + 0.048013392835855484, + 0.009777355939149857, + 0.06269025057554245, + 0.07597123831510544, + 0.10732290893793106, + 0.07332616299390793, + 0.0057922834530472755, + -0.07493574172258377, + -0.013975895009934902, + 0.046394262462854385, + -0.048121143132448196, + 0.028148168697953224, + 0.0850830152630806, + -0.037467602640390396, + 0.01780417189002037, + -0.1115652471780777, + 0.06630036234855652, + 0.09958387911319733, + -0.0053079696372151375, + -0.0750805139541626, + 0.06529325246810913, + 0.04399919882416725, + 0.08516163378953934, + -0.0008050460601225495, + 0.011990257538855076, + -0.06045929715037346, + -0.05179043859243393, + -0.05999414995312691, + 0.07842610031366348, + -0.011969643644988537, + 0.03144228458404541, + -1.185196470032679e-05, + 0.001987949712201953, + 0.03482825681567192, + -0.09242646396160126, + 0.025225237011909485, + -0.006314978003501892, + -0.0751553326845169, + -0.06606856733560562, + 0.017100464552640915, + -0.08112534135580063, + -0.03829463943839073, + -0.07343986630439758, + -0.021107597276568413, + -0.04373326525092125, + -0.008639322593808174, + 0.019905729219317436, + 0.10563328862190247, + -0.0375569686293602, + 0.05380654335021973, + -0.024490999057888985, + -0.04239077866077423, + -0.0017316528828814626, + -0.06279218941926956, + -0.006303620059043169, + -0.010809064842760563, + 0.020741285756230354, + -0.03286159411072731, + 0.08316587656736374, + 0.09353546798229218, + -0.04916809871792793, + -0.015523476526141167, + -0.011348458006978035, + -0.09393805265426636, + 0.012102007865905762, + 0.04224497452378273, + -0.05821556597948074, + -0.020261919125914574, + 0.027838582172989845, + 0.05841324105858803, + 0.008087676018476486, + -0.06262674182653427, + -0.03737015277147293, + 0.06781768053770065, + -0.036410003900527954, + 0.00046424174797721207, + -0.031213728711009026, + 0.021908706054091454, + 0.04241017997264862, + -0.03296215459704399, + -0.04177534207701683, + 0.0051139481365680695, + 0.0354074090719223, + 0.018987836316227913, + -0.012251689098775387, + -0.10827210545539856, + 0.038023073226213455, + 0.040411535650491714, + 0.05834868922829628, + 0.002061818027868867, + 0.006347582209855318, + -0.04415601119399071, + -0.048994749784469604, + -0.01222387608140707, + -0.07982403039932251, + -0.07095571607351303, + -3.065878263441846e-05, + 0.0635213553905487, + -0.09543013572692871, + 0.04271068423986435, + -0.01977008953690529, + -0.030113274231553078, + 0.1060287356376648, + -0.011186291463673115, + -0.042927879840135574, + -0.035766199231147766, + -0.0013513255398720503, + -0.02217698283493519, + 0.04694380983710289, + -1.682329862343433e-34, + 0.0310882069170475, + -0.013417120091617107, + 0.050621598958969116, + 0.005269831977784634, + 0.04735012352466583, + -0.01192349474877119, + -0.00719384104013443, + -0.08573762327432632, + -0.06966196000576019, + -0.046521347016096115, + -0.07681434601545334, + -0.0866623967885971, + -0.008186552673578262, + 0.050972748547792435, + -0.05153265967965126, + 0.010658349841833115, + -0.04013435170054436, + -0.01080591231584549, + 0.017773456871509552, + 0.10111838579177856, + -0.018228910863399506, + 0.045456744730472565, + -0.03845897689461708, + 0.05296583101153374, + -0.030922917649149895, + 0.03499355912208557, + -0.029318632557988167, + 0.01332622580230236, + -0.03666181489825249, + -0.011304971762001514, + -0.05345375835895538, + -0.04651744291186333, + 0.021440502256155014, + -0.059561166912317276, + -0.016050059348344803, + -0.013552171178162098, + -0.04157966747879982, + 0.008941495791077614, + -0.04405766725540161, + -0.04071792960166931, + 0.12380120158195496, + 0.013299829326570034, + -0.014289502054452896, + 0.058099888265132904, + -0.06209895387291908, + 0.0017136377282440662, + -0.01710725948214531, + -0.05646253749728203, + 0.022049730643630028, + 0.009239072911441326, + -0.0025539023336023092, + -0.04324297606945038, + 0.046653326600790024, + 0.00398156326264143, + -0.05493677407503128, + -0.034962452948093414, + 0.006276990287005901, + 0.025574535131454468, + 0.06136168912053108, + -0.05328170955181122, + 0.044044412672519684, + -0.06137801706790924, + 0.0966784656047821, + -0.05996151268482208, + 0.04081615433096886, + -0.04659043624997139, + 0.038212716579437256, + 0.03408298268914223, + -0.0027949195355176926, + 0.052254725247621536, + -0.04959430545568466, + 0.04968198016285896, + -0.011223187670111656, + -0.017130305990576744, + 0.10819406062364578, + -0.017251476645469666, + -0.03447622060775757, + -0.06215943023562431, + 0.05789525434374809, + 0.05220560356974602, + -0.02438613958656788, + -0.08909475058317184, + -0.03446599841117859, + -0.06700240820646286, + -0.01718396507203579, + 0.04759446531534195, + 0.01137063093483448, + -0.0650138333439827, + 0.04807974025607109, + -0.06002521142363548, + -0.053417500108480453, + -0.034329887479543686, + -0.017583787441253662, + -0.07107894867658615, + -0.023738769814372063, + -2.3729619971393053e-33, + 0.0943043977022171, + -0.021902816370129585, + -0.011380595155060291, + 0.019923817366361618, + -0.06032995134592056, + 0.03254861384630203, + 0.06075150519609451, + 0.08591567724943161, + 0.01660672388970852, + 0.08091089129447937, + 0.0021116610150784254, + -0.01662709005177021, + -0.03269016370177269, + -0.11714262515306473, + 0.015650108456611633, + -0.017015207558870316, + 0.014419840648770332, + -0.016708556562662125, + 0.06527095288038254, + -0.056328337639570236, + -0.038798123598098755, + -0.0608721524477005, + 0.027344604954123497, + 0.0507415272295475, + -0.0014339652843773365, + -0.017486387863755226, + -0.0057451073080301285, + 0.009535455144941807, + -0.012093886733055115, + -0.018931793048977852, + -0.07019507139921188, + 0.05783190578222275, + -0.12538287043571472, + 0.026730315759778023, + -0.006705911830067635, + 0.06364461034536362, + 0.0774405375123024, + 0.06640169769525528, + 0.03821319341659546, + 0.07406773418188095, + 0.05404486879706383, + 0.044492240995168686, + 0.01243280153721571, + 0.05705660954117775, + 0.08304253220558167, + -0.06737972050905228, + -0.0495377816259861, + 0.07726484537124634, + 0.0325440838932991, + 0.009391107596457005, + 0.05542358383536339, + -0.019827475771307945, + 0.025273988023400307, + -0.002739195479080081, + 0.0006269620498642325, + 0.004783268086612225, + 0.023689690977334976, + -0.03725365176796913, + -0.08866145461797714, + 0.02189636044204235, + -0.09079795330762863, + -0.07389316707849503, + -0.06604095548391342, + -0.032795101404190063, + -0.03995445370674133, + -0.007274680305272341, + -0.035839103162288666, + -0.04657767340540886, + -0.03297623619437218, + 0.024840982630848885, + -0.0058369566686451435, + -0.06112014874815941, + 0.08932675421237946, + 0.002735996153205633, + 0.07273313403129578, + 0.03667353838682175, + -0.08798494935035706, + 0.0393841490149498, + -0.013584349304437637, + 0.009501778520643711, + 0.09303205460309982, + 0.03895062208175659, + -0.0062791467644274235, + 0.029652992263436317, + 0.025784751400351524, + -0.06861047446727753, + -0.03817769140005112, + 0.06929679214954376, + -0.03647637367248535, + -0.11119905859231949, + 0.004417062271386385, + 0.04165694862604141, + 0.06731095165014267, + 0.07060931622982025, + -0.008273634128272533, + -4.078627213743857e-08, + -0.02816074900329113, + -0.028071019798517227, + 0.0011271594557911158, + -0.04692894220352173, + -0.045019060373306274, + 0.11547649651765823, + -0.06769567728042603, + -0.06869451701641083, + 0.06787579506635666, + -0.038577672094106674, + 0.011547872796654701, + -0.07676286995410919, + -0.05074327811598778, + 0.015045532025396824, + -0.09798659384250641, + 0.09742052108049393, + 0.002072593430057168, + 0.09194183349609375, + -0.002207508310675621, + -0.026546016335487366, + 0.0053497981280088425, + -0.04746713861823082, + -0.036169037222862244, + -0.03622613847255707, + 0.04692207649350166, + 0.06968705356121063, + 0.04819843918085098, + 0.07523128390312195, + -0.0780104547739029, + -0.022375402972102165, + 0.08778981864452362, + -0.034273408353328705, + -0.010858813300728798, + 0.000691516266670078, + 0.008971484377980232, + 0.030445143580436707, + 0.10693906992673874, + -0.007628853432834148, + 0.0587591752409935, + 0.0744820311665535, + -0.012590115889906883, + 0.004227687604725361, + -0.06557417660951614, + -0.05563259869813919, + 0.00479435408487916, + 0.0021115774288773537, + -0.07262520492076874, + 0.08302915841341019, + -0.03863099589943886, + 0.01863727532327175, + 0.08650215715169907, + -0.055247098207473755, + -0.007701538503170013, + 0.016551507636904716, + -0.02395295351743698, + -0.09839054197072983, + 0.030327066779136658, + -0.009289885871112347, + -0.006874375510960817, + -0.05525994300842285, + 0.07816669344902039, + 0.04845214635133743, + 0.0965399369597435, + 0.03573876619338989 + ] + }, + { + "id": "repo_to_md/demo.py::run_demo.reverse", + "parent_id": "repo_to_md/demo.py::run_demo", + "file_path": "repo_to_md/demo.py", + "type": "function", + "name": "reverse", + "start_line": 117, + "end_line": 150, + "source_code": "def reverse():\n global reverse_buffers\n markdown_text = (\n request.files.get('markdown_file', {}).read().decode('utf-8', errors='replace') or\n request.form.get('markdown_text', '')\n )\n if not markdown_text.strip():\n return jsonify({'error': 'No Markdown data provided', 'files': [], 'combined_html': '

Please provide Markdown input.

'}), 400\n\n files, buffers = markdown_to_files(markdown_text)\n if isinstance(files, str):\n return jsonify({'error': files, 'files': [], 'combined_html': '

Invalid Markdown format.

'}), 400\n\n reverse_buffers.clear()\n reverse_buffers.update({k: v.encode('utf-8') if isinstance(v, str) else v for k, v in buffers.items()})\n combined_html = \"\"\n has_html = False\n\n for file_info in files:\n if not file_info['is_binary'] and file_info['filename'].endswith(\".html\"):\n has_html = True\n html_content = rebuild_html_content(reverse_buffers[file_info['filepath']], reverse_buffers)\n filepath = Path(g.temp_dir) / file_info['filepath']\n filepath.parent.mkdir(parents=True, exist_ok=True)\n filepath.write_bytes(html_content)\n combined_html += f\"\"\n\n if not has_html:\n tree_path = Path(g.temp_dir) / \"file_tree.html\"\n tree_html = f\"{extract_file_tree(markdown_text)}\"\n tree_path.write_text(tree_html, encoding='utf-8')\n combined_html = f\"\"\n\n return jsonify({'files': files, 'combined_html': combined_html, 'error': None})", + "docstring": "", + "dependencies": [ + "markdown_to_files", + "jsonify", + "Path", + "extract_file_tree", + "isinstance", + "rebuild_html_content" + ], + "level": 1, + "structural_vector": [ + 1, + 1, + 0.7335164835164835, + 0.18681318681318682 + ], + "semantic_embedding": [ + -0.03195292502641678, + 0.06938736885786057, + 0.03746861219406128, + -0.02019650489091873, + -0.00595537293702364, + -0.07079458236694336, + -0.0811861976981163, + 0.01684529148042202, + -0.035545624792575836, + 0.01674848608672619, + -0.001610904815606773, + 0.04272012040019035, + 0.004933152347803116, + 0.03170889616012573, + 0.016915839165449142, + 0.01308461744338274, + -0.08740085363388062, + 0.0634019672870636, + -0.000863996974658221, + -0.0070489016361534595, + 0.015661174431443214, + 0.030177948996424675, + 0.05024322122335434, + 0.06774198263883591, + 0.028508635237812996, + -0.043457355350255966, + -0.0033094114623963833, + 0.017063915729522705, + -0.06180576980113983, + 0.03591618314385414, + 0.040582507848739624, + -0.10100901126861572, + 0.022554175928235054, + -0.03778291493654251, + 0.04085424169898033, + 0.11251360923051834, + 0.009378837421536446, + -0.11014175415039062, + 0.07843923568725586, + 0.031176181510090828, + 0.025017112493515015, + 0.028431957587599754, + -0.042818427085876465, + -0.1008681207895279, + 0.004770164843648672, + -0.07763732224702835, + -0.01145775057375431, + -0.00488765025511384, + 0.029145656153559685, + -0.014522705227136612, + 0.008526104502379894, + 0.06331388652324677, + -0.10346585512161255, + -0.014085127040743828, + -0.03431502357125282, + -0.055723994970321655, + -0.024644337594509125, + -0.045465245842933655, + -0.09580060094594955, + -0.04306603968143463, + -0.008387301117181778, + -0.018334753811359406, + -0.047691721469163895, + -0.04279951751232147, + 0.021868638694286346, + 0.016623463481664658, + -0.023512594401836395, + 0.06922967731952667, + 0.011009369976818562, + 0.03810945525765419, + -0.032047566026449203, + -0.009626162238419056, + -0.004569248761981726, + 0.014846592210233212, + 0.01605828106403351, + 0.006826938129961491, + 0.01900959573686123, + 0.05030393227934837, + -0.07280289381742477, + -0.04381430521607399, + 0.0546521358191967, + -0.09234131127595901, + 0.018196823075413704, + 0.07160112261772156, + -0.004545276984572411, + -0.08161772042512894, + -0.0515320785343647, + 0.028909161686897278, + 0.02404746040701866, + -0.07785102725028992, + -0.010482906363904476, + -0.02011479251086712, + 0.04456527903676033, + 0.006072375923395157, + -0.009164376184344292, + 0.04550667107105255, + 0.07667943090200424, + -0.010038797743618488, + 0.011268651112914085, + 0.03381777182221413, + 0.00011549195187399164, + -0.07983630895614624, + 0.03940016031265259, + -0.06803558021783829, + 0.06307584792375565, + 0.0564035065472126, + 0.043088607490062714, + 0.05622244253754616, + 0.005450203083455563, + -0.07254311442375183, + -0.021166127175092697, + -0.03573538735508919, + -0.0646405816078186, + -0.04784779995679855, + -0.01958284340798855, + 0.06018957123160362, + 0.013235711492598057, + 0.049525026232004166, + -0.0015900775324553251, + 0.05459016561508179, + 0.08069870620965958, + -0.005180581007152796, + -0.05838507413864136, + -0.020649468526244164, + 0.04291538894176483, + -0.027922557666897774, + 0.055243875831365585, + 3.926138642118963e-33, + 0.0546182282269001, + 0.01562691479921341, + 0.09224748611450195, + -0.011941777542233467, + 0.027899736538529396, + 0.04276257008314133, + -0.05005798488855362, + -0.04775035381317139, + -0.07452632486820221, + -0.036025695502758026, + 0.014877470210194588, + -0.06017078086733818, + 0.022258009761571884, + 0.04211049526929855, + -0.09296749532222748, + -0.018795467913150787, + 0.019577061757445335, + -0.01618974842131138, + 0.05139711871743202, + 0.014138238504529, + -0.0011193002574145794, + 0.03657395392656326, + -0.029135141521692276, + 0.01865335926413536, + -0.07279620319604874, + 0.04243738576769829, + -0.02006593532860279, + 0.03026318922638893, + -0.07678596675395966, + -0.03490163013339043, + -0.009633371606469154, + -0.040518030524253845, + 0.030322179198265076, + -0.038033198565244675, + -0.03193892911076546, + 0.05458611249923706, + -0.021034326404333115, + -0.038767486810684204, + -0.0788281112909317, + -0.059161316603422165, + 0.06990208476781845, + -0.012710128910839558, + -0.059523046016693115, + -0.025181496515870094, + -0.05313090980052948, + -0.011408260092139244, + -0.030284930020570755, + 0.02444426529109478, + -0.022763831540942192, + -0.029721394181251526, + -0.04750536009669304, + 0.06330686807632446, + -0.04767853394150734, + -0.007449549622833729, + -0.043747033923864365, + -0.013928040862083435, + 0.03193257004022598, + 0.02612430974841118, + 0.08313067257404327, + -0.044773366302251816, + 0.08423162251710892, + -0.01308315247297287, + 0.028987808153033257, + -0.022638646885752678, + -0.03113008849322796, + -0.017486171796917915, + 0.10240501165390015, + 0.008374970406293869, + 0.0002586990303825587, + -0.013675836846232414, + -0.10201174020767212, + 0.050460170954465866, + -0.03421150892972946, + -0.0005199139704927802, + 0.03774210438132286, + -0.05885674059391022, + -0.006826427299529314, + -0.025405514985322952, + 0.038922570645809174, + 0.01272024866193533, + -0.019250646233558655, + -0.04372779279947281, + -0.002153172390535474, + -0.037437278777360916, + 0.007781924679875374, + -0.023479605093598366, + 0.029988087713718414, + -0.04385840520262718, + 0.024480758234858513, + -0.020175741985440254, + -0.05073731765151024, + -0.03150951862335205, + 0.0026053860783576965, + -0.0561811663210392, + 0.016666589304804802, + -6.169296308226732e-33, + 0.05796322971582413, + -0.004998004529625177, + -0.04589088261127472, + 0.03370223939418793, + -0.057704661041498184, + -0.03004799224436283, + 0.07426983118057251, + 0.11544016003608704, + 0.06020922586321831, + 0.047298382967710495, + 0.028593221679329872, + -0.03901328146457672, + 0.02964809350669384, + -0.09656868875026703, + -0.04377024993300438, + 0.05375978350639343, + 0.003888707607984543, + 0.041778456419706345, + 0.10119067877531052, + -0.07074538618326187, + -0.0494781993329525, + 0.007494815159589052, + 0.08144773542881012, + 0.09784059971570969, + -0.009977013804018497, + -0.01631755381822586, + 0.02771427109837532, + -0.009542523883283138, + -0.017183879390358925, + -0.023771170526742935, + -0.03229881450533867, + 0.04245040565729141, + -0.026854773983359337, + 0.08440925180912018, + -0.04422115162014961, + -0.023888610303401947, + -0.022193484008312225, + 0.062481801956892014, + 0.011057600378990173, + 0.07615780830383301, + 0.0830252394080162, + 0.06022525578737259, + 0.022418148815631866, + 0.06904345750808716, + 0.03831209987401962, + -0.043495841324329376, + -0.03293623775243759, + 0.08338316529989243, + 0.030256755650043488, + -0.05334458500146866, + 0.01039445586502552, + -0.05307334288954735, + -0.04593911021947861, + 0.011774354614317417, + 0.006602169945836067, + -0.0009550682152621448, + 0.07580997794866562, + 0.011807562783360481, + -0.06178322061896324, + 0.0427122637629509, + -0.1054447814822197, + -0.03754085302352905, + -0.0021323086693882942, + -0.022648952901363373, + 0.025484926998615265, + -0.03134094178676605, + -0.06084759905934334, + -0.061925008893013, + 0.04719611257314682, + -0.046477530151605606, + 0.010982910171151161, + 0.026588313281536102, + 0.09005505591630936, + 0.0010246249148622155, + 0.06419023126363754, + 0.058380600064992905, + -0.07468603551387787, + 0.023090654984116554, + -0.02366238832473755, + 0.014520084485411644, + 0.03658520430326462, + -0.03696528077125549, + -0.003053100546821952, + 0.09053381532430649, + 0.007279288023710251, + -0.0533779002726078, + -0.09586295485496521, + 0.16087402403354645, + -0.07819996029138565, + -0.027473924681544304, + 0.03154471889138222, + 0.03232722356915474, + 0.07875391840934753, + 0.08778500556945801, + 0.09009576588869095, + -5.352464071961549e-08, + -0.029873572289943695, + -0.041270118206739426, + -0.03715944290161133, + -0.014572134241461754, + -0.10588034987449646, + 0.09115845710039139, + 0.0032691562082618475, + -0.08444724977016449, + 0.05169815197587013, + -0.07668568193912506, + 0.01439593080431223, + -0.02633998729288578, + -0.08987928181886673, + -0.04335082694888115, + -0.13245776295661926, + 0.07579407840967178, + -0.05040827393531799, + 0.1078266054391861, + -0.020237619057297707, + 0.01525725144892931, + -0.00018850290507543832, + -0.04367171600461006, + -0.035724930465221405, + -0.021472832188010216, + 0.05919744446873665, + 0.0884837657213211, + -0.00197875639423728, + 0.058736369013786316, + -0.11469144374132156, + -0.09929526597261429, + 0.10613354295492172, + -0.07510826736688614, + -0.010997047647833824, + 0.016622958704829216, + 0.02367977425456047, + 0.028245044872164726, + 0.11454631388187408, + -0.007245800923556089, + 0.05636488273739815, + 0.1098659336566925, + -0.0014102478744462132, + 0.0167671088129282, + -0.14384333789348602, + -0.040204957127571106, + 0.0051238141022622585, + -0.03881273791193962, + -0.048551324754953384, + 0.04473179951310158, + -0.044423434883356094, + -0.0186842642724514, + 0.07198420912027359, + -0.06953973323106766, + 0.03386484831571579, + -0.04343584179878235, + -0.0075060403905808926, + -0.03940977528691292, + 0.02788875438272953, + 0.0520312637090683, + -0.032391633838415146, + 0.005424972157925367, + 0.10843855887651443, + 0.01912476308643818, + 0.07657754421234131, + 0.005117475055158138 + ] + }, + { + "id": "repo_to_md/demo.py::run_demo.temp_files", + "parent_id": "repo_to_md/demo.py::run_demo", + "file_path": "repo_to_md/demo.py", + "type": "function", + "name": "temp_files", + "start_line": 153, + "end_line": 154, + "source_code": "def temp_files(filename):\n return send_from_directory(g.temp_dir, filename)", + "docstring": "", + "dependencies": [ + "send_from_directory" + ], + "level": 1, + "structural_vector": [ + 1, + 1, + 0.8434065934065934, + 0.01098901098901099 + ], + "semantic_embedding": [ + -0.06522028148174286, + 0.004819589201360941, + -0.06313145905733109, + 0.03373740240931511, + 0.05244302377104759, + -0.12064911425113678, + 0.04963226988911629, + 0.08533622324466705, + -0.014346477575600147, + 0.04022878408432007, + 0.056110769510269165, + 0.05543523281812668, + 0.0421597845852375, + 0.04528439790010452, + 0.008739553391933441, + 0.0008725877269171178, + -0.04760657623410225, + 0.013207757845520973, + 0.07509582489728928, + -0.04886816069483757, + 0.0251572597771883, + 0.12361722439527512, + 0.09843163937330246, + 0.048265714198350906, + -0.0029396030586212873, + -0.12562844157218933, + -0.0475962832570076, + 0.001943135168403387, + -0.07663742452859879, + 0.014785674400627613, + 0.08157031983137131, + 0.06946156919002533, + -0.05201692134141922, + -0.032578788697719574, + 0.034186940640211105, + 0.1451115906238556, + -0.050561197102069855, + -0.08234409242868423, + -0.06038147956132889, + 0.002684075618162751, + 0.07522808015346527, + 0.03223719820380211, + -0.003732448210939765, + -0.06962598115205765, + -0.09311305731534958, + -0.06162899360060692, + 0.11392033100128174, + 0.017882920801639557, + -0.006269741337746382, + -0.05005556717514992, + 0.0004167446750216186, + 0.005562564358115196, + -0.07145127654075623, + 0.002035456011071801, + -0.024076025933027267, + -0.033687103539705276, + -0.01168387196958065, + 0.0039016560185700655, + -0.061328206211328506, + 0.0030673574656248093, + 0.02442450076341629, + 0.015453468076884747, + -0.04744114726781845, + -0.03209475800395012, + 0.02839253470301628, + 0.03123081848025322, + -0.01915692538022995, + 0.10699142515659332, + -0.008205878548324108, + -0.06211245805025101, + 0.027463681995868683, + 0.018499894067645073, + 0.024494994431734085, + -0.0009132269187830389, + 0.04593176394701004, + -0.06201281398534775, + 0.06830687820911407, + 0.058081988245248795, + -0.014179241843521595, + -0.06828788667917252, + 0.03718196228146553, + -0.09365950524806976, + 0.02728942036628723, + -0.026412464678287506, + 0.03219683840870857, + -0.016464509069919586, + 0.009842481464147568, + 0.12916645407676697, + 0.05152468383312225, + -0.09941457957029343, + -0.028750181198120117, + -0.037959806621074677, + -0.03227289766073227, + -0.01076993066817522, + -0.06344518810510635, + 0.015596932731568813, + 0.03337569907307625, + 0.051380667835474014, + 0.04975806549191475, + -0.052378326654434204, + -0.03662310168147087, + -0.006972282659262419, + -0.02491137757897377, + -0.07703723758459091, + 0.08373790979385376, + 0.10252243280410767, + 0.025396199896931648, + -0.025988364592194557, + 0.007637369446456432, + -0.03358323499560356, + -0.09492748230695724, + -0.022172952070832253, + 0.004498254042118788, + -0.06227652728557587, + 0.0193075742572546, + 0.006797690410166979, + -0.1301853507757187, + 0.08325899392366409, + 0.0003443073364906013, + 0.0007593390764668584, + 0.09860769659280777, + 0.00785841140896082, + 0.0216731708496809, + -0.00445310864597559, + -0.026041245087981224, + -0.003973522689193487, + 0.03321843594312668, + -2.1391018041470267e-33, + -0.0021300457883626223, + 0.046008653938770294, + 0.11581088602542877, + 0.07224569469690323, + 0.05742257088422775, + -0.04680244252085686, + 0.0772094801068306, + 0.0004659552942030132, + -0.07420982420444489, + 0.05875300243496895, + -0.06950103491544724, + -0.013439243659377098, + 0.0016414164565503597, + 0.01186174526810646, + -0.09789931029081345, + 0.024123089388012886, + -0.09868844598531723, + 0.03033730387687683, + -0.013700292445719242, + 0.03721996396780014, + -0.08774087578058243, + 0.09715766459703445, + -0.04857425019145012, + 0.06104996055364609, + -0.012014072388410568, + -0.01875199005007744, + 0.029766997322440147, + 0.02118559367954731, + -0.011600970290601254, + -0.03108983486890793, + -0.0489187054336071, + -0.01660170406103134, + 0.019660895690321922, + 0.02558027394115925, + -0.01920800469815731, + 0.012697132304310799, + -0.08785553276538849, + 0.025304174050688744, + -0.040305107831954956, + -0.02577461674809456, + 0.148417666554451, + 0.024477507919073105, + -0.02362074702978134, + 0.08564218878746033, + -0.007909771986305714, + 0.010242932476103306, + -0.04233735427260399, + -0.013855157420039177, + 0.044501304626464844, + 0.005405692383646965, + 0.027764925733208656, + -0.028220754116773605, + 0.02956893853843212, + 0.022834379225969315, + -0.05937713012099266, + -0.00574039900675416, + -0.005574984475970268, + 0.007563960738480091, + 0.06716737896203995, + -0.09880512952804565, + 0.057085298001766205, + -0.0499173067510128, + -0.01409217994660139, + -0.05008523911237717, + -0.0026730666868388653, + -0.023828355595469475, + 0.01943732611835003, + 0.03347666934132576, + 0.046074219048023224, + 0.07317416369915009, + -0.02029603347182274, + 0.06647401303052902, + -0.07558809965848923, + -0.04266946390271187, + 0.09583497792482376, + 0.05458470806479454, + 0.014828954823315144, + -0.0687093436717987, + -0.005455612670630217, + 0.02439146488904953, + -0.09387046098709106, + -0.03751983121037483, + -0.06218786910176277, + -0.006369591690599918, + 0.009172620251774788, + 0.001975326333194971, + -0.023175356909632683, + 0.027914518490433693, + 0.018687240779399872, + -0.05670061334967613, + -0.06088138371706009, + -0.0597972646355629, + -0.051778681576251984, + -0.044361259788274765, + 0.019912876188755035, + 1.7423878661489852e-34, + 0.07001907378435135, + 0.039203766733407974, + 0.016136441379785538, + 0.0016557378694415092, + -0.0428650826215744, + 0.0008030911558307707, + 0.04383023455739021, + -0.02056264877319336, + 0.020879946649074554, + 0.025905365124344826, + -0.08310515433549881, + -0.0441398024559021, + 0.02242043986916542, + -0.08330395072698593, + 0.0917898491024971, + -0.019044559448957443, + -0.06117628142237663, + -0.04303694888949394, + -0.06052784249186516, + -0.05054537579417229, + -0.040213778614997864, + -0.03339814767241478, + 0.05619232729077339, + 0.041297316551208496, + -0.036438532173633575, + 0.008402833715081215, + 0.001468250178731978, + 0.008920714259147644, + 0.009828764945268631, + 0.005693381652235985, + -0.054450489580631256, + 0.0334443598985672, + -0.10688532888889313, + 0.0363924466073513, + 0.016263039782643318, + 0.056161392480134964, + 0.03355441242456436, + 0.020568478852510452, + 0.11381124705076218, + 0.05796968191862106, + 0.05125381425023079, + 0.06851307302713394, + 0.027966054156422615, + 0.0362609438598156, + -0.015401773154735565, + -0.016210349276661873, + 0.028384624049067497, + -0.043833546340465546, + 0.003979580942541361, + 0.007742241956293583, + 0.03730117529630661, + -0.03842192143201828, + -0.06933344900608063, + -0.05077735707163811, + 0.023466236889362335, + -0.0020832193549722433, + -0.03254079446196556, + -0.011391139589250088, + -0.050868719816207886, + -0.0049314433708786964, + 0.01978733204305172, + -0.07183130830526352, + -0.05215683579444885, + -0.08266759663820267, + -0.1428966522216797, + -0.02509075216948986, + -0.08916430920362473, + -0.04022173210978508, + 0.07251446694135666, + 0.013071825727820396, + 0.05727837234735489, + 0.02386319637298584, + -0.019598370417952538, + 0.005038371309638023, + 0.02173851616680622, + 0.05963556841015816, + -0.033903781324625015, + 0.03679398074746132, + -0.028162185102701187, + 0.019167227670550346, + 0.08016136288642883, + 0.02420167624950409, + 0.024120677262544632, + 0.04068034142255783, + 0.05160012096166611, + -0.058498796075582504, + 0.026236960664391518, + 0.024425212293863297, + 0.03822733834385872, + -0.11094364523887634, + 0.030129041522741318, + 0.04194600507616997, + 0.11530739068984985, + -0.015657974407076836, + -0.006882788613438606, + -2.9493996578366932e-08, + -0.01706467755138874, + 0.03125167638063431, + 0.08837736397981644, + -0.0011214868864044547, + -0.030223868787288666, + 0.07968062162399292, + -0.024128401651978493, + -0.0007819249294698238, + 0.07023036479949951, + 0.014006422832608223, + 0.01310010626912117, + -0.04774770885705948, + 0.04406857118010521, + 0.03414028510451317, + -0.06435651332139969, + 0.07198117673397064, + -0.008595525287091732, + 0.05422241613268852, + -0.014283171854913235, + 0.005217833444476128, + -0.005223417654633522, + -0.008684278465807438, + -0.008495734073221684, + -5.895796857657842e-05, + -0.010777058079838753, + 0.04637421295046806, + 0.01897377520799637, + 0.016903771087527275, + -0.056567855179309845, + -0.0601629912853241, + 0.04560410976409912, + -0.06596126407384872, + -0.07107893377542496, + 0.0161212757229805, + -0.0020433696918189526, + 0.02560269460082054, + 0.09507517516613007, + -0.013744273222982883, + 0.008689558133482933, + 0.01507485006004572, + -0.07240045070648193, + 0.0017870988231152296, + -0.02374378778040409, + -0.016390731558203697, + -0.01848374493420124, + -0.047994766384363174, + -0.03841084614396095, + 0.03339185193181038, + -0.06459791958332062, + 0.04033159837126732, + 0.019848352298140526, + 0.006103708408772945, + -0.08959515392780304, + 0.07880525290966034, + -0.03850259631872177, + -0.060649942606687546, + -0.009959698654711246, + 0.02561025507748127, + 0.015963681042194366, + -0.07061391323804855, + -0.041718218475580215, + 0.10322306305170059, + 0.058119937777519226, + -0.015280324034392834 + ] + }, + { + "id": "repo_to_md/demo.py::run_demo.download_file", + "parent_id": "repo_to_md/demo.py::run_demo", + "file_path": "repo_to_md/demo.py", + "type": "function", + "name": "download_file", + "start_line": 157, + "end_line": 166, + "source_code": "def download_file():\n filepath = request.json.get('filepath')\n if filepath not in reverse_buffers:\n return jsonify({'error': 'File not found'}), 404\n return send_file(\n io.BytesIO(reverse_buffers[filepath]),\n as_attachment=True,\n download_name=Path(filepath).name,\n mimetype=mimetypes.guess_type(filepath)[0] or 'application/octet-stream'\n )", + "docstring": "", + "dependencies": [ + "send_file", + "Path", + "jsonify" + ], + "level": 1, + "structural_vector": [ + 1, + 1, + 0.8873626373626373, + 0.054945054945054944 + ], + "semantic_embedding": [ + -0.044396691024303436, + 0.024044081568717957, + -0.05810888484120369, + -0.027229664847254753, + 0.028182003647089005, + -0.09944755584001541, + -0.011196102015674114, + 0.07515807449817657, + 0.012778103351593018, + 0.0011863631661981344, + 0.023055946454405785, + 0.07687408477067947, + -0.04543188959360123, + 0.06553806364536285, + -0.025878706946969032, + 0.00872687716037035, + -0.06489352881908417, + 0.034894004464149475, + 0.05513860657811165, + -0.0004929109127260745, + 0.04268087074160576, + 0.04736494645476341, + 0.08106038719415665, + 0.036974892020225525, + -0.012153464369475842, + -0.04959030821919441, + 0.00644436152651906, + 0.03604824095964432, + -0.04355553910136223, + -0.00929255411028862, + 0.10250723361968994, + -0.002048489637672901, + 0.005133463069796562, + -0.10235317051410675, + 0.0822644755244255, + 0.06041291356086731, + -0.0026123947463929653, + -0.08431410789489746, + 0.039822764694690704, + 0.019132466986775398, + 0.10960936546325684, + 0.03617794066667557, + 0.010227017104625702, + -0.06105923652648926, + -0.06168355420231819, + -0.048443589359521866, + 0.0630299374461174, + 0.0016736615216359496, + 0.02027450129389763, + -0.009975201450288296, + 0.0306064672768116, + 0.02516743913292885, + -0.1279938668012619, + 0.05076498165726662, + -0.0316101498901844, + -0.09876751899719238, + -0.05908326059579849, + 0.05031333118677139, + -0.08885261416435242, + 0.029948603361845016, + -0.0034418103750795126, + -0.06153256073594093, + -0.07050196081399918, + -0.04484790191054344, + -0.03327271342277527, + 0.07616912573575974, + -0.07876372337341309, + 0.10709378123283386, + 0.02878064103424549, + -0.06683143228292465, + 0.03466355800628662, + -0.02619803138077259, + -0.04836909845471382, + -0.03380421921610832, + 0.022223403677344322, + -0.06958384066820145, + 0.0791366770863533, + 0.08531646430492401, + -0.09742230176925659, + -0.020832398906350136, + 0.007678190246224403, + -0.11445412039756775, + 0.06493878364562988, + 0.04701152443885803, + 0.006525562144815922, + -0.0015662076184526086, + 0.0034214311745017767, + 0.07419342547655106, + 0.029738470911979675, + -0.04784601554274559, + -0.06940659135580063, + 0.05324395373463631, + -0.054710619151592255, + -0.039762113243341446, + -0.017980964854359627, + 0.07086966931819916, + 0.014010722748935223, + -0.014184740372002125, + -0.027926737442612648, + -0.0021874101366847754, + 0.029046831652522087, + -0.017491420730948448, + 0.01749209128320217, + -0.04904235526919365, + 0.09125296026468277, + 0.05788884684443474, + 0.02960909716784954, + 0.03206130862236023, + 0.025226300582289696, + -0.037112198770046234, + -0.06648293882608414, + -0.023996703326702118, + -0.006805792450904846, + -0.08790634572505951, + -0.02643069624900818, + 0.06642185151576996, + -0.1287471503019333, + 0.08999311178922653, + -0.032589469105005264, + 0.0060338955372571945, + 0.097475565969944, + -0.013096083886921406, + 0.025424590334296227, + -0.022193849086761475, + 0.041242584586143494, + -0.015472978353500366, + 0.04536556079983711, + 2.0502943079683568e-33, + -0.04640138894319534, + 0.0025302059948444366, + 0.10011234879493713, + 0.0032958758529275656, + -0.036214325577020645, + -0.07788699120283127, + 0.05208509415388107, + -0.02807793952524662, + -0.04250170290470123, + -0.04157375171780586, + -0.1065787822008133, + -0.03285710886120796, + -0.04433712735772133, + 0.0645386278629303, + -0.08171021938323975, + -0.003743194043636322, + -0.05933619663119316, + 0.010024881921708584, + 0.010869662277400494, + 0.07384426891803741, + -0.003662511706352234, + 0.020854772999882698, + -0.05528798699378967, + 0.00595101248472929, + -0.01147620752453804, + -0.0489589162170887, + 0.02574659138917923, + 0.004524467512965202, + -0.005747167859226465, + -0.0035066811833530664, + -0.02193433605134487, + 0.019207756966352463, + 0.08261547237634659, + -0.047624651342630386, + 0.039370737969875336, + -0.013771969825029373, + -0.04903825744986534, + -0.006092512048780918, + -0.083987295627594, + -0.05826753377914429, + 0.09379709511995316, + 0.02234996296465397, + -0.07815013825893402, + 0.013285860419273376, + -0.043364815413951874, + -0.02428346313536167, + -0.0427391454577446, + -0.053420133888721466, + 0.003948572091758251, + -0.00751526840031147, + 0.03023752197623253, + 0.018297920003533363, + 0.039839573204517365, + 0.04491199553012848, + -0.015334155410528183, + -0.05543101206421852, + 0.028063703328371048, + 0.025514906272292137, + 0.06772373616695404, + -0.05465700477361679, + 0.11652291566133499, + -0.03431793302297592, + 0.0408274382352829, + -0.08838953822851181, + 0.029987502843141556, + -0.014686337672173977, + -0.0039049284532666206, + 0.011931153014302254, + 0.03446722775697708, + 0.06876372545957565, + -0.05143393948674202, + 0.030635077506303787, + -0.029612449929118156, + -0.08190606534481049, + 0.09242396056652069, + -0.03452829644083977, + -0.03487731143832207, + 0.028978321701288223, + 0.09018689393997192, + 0.02290920726954937, + -0.004690716043114662, + -0.09685486555099487, + -0.0003916553978342563, + -0.05167200788855553, + -0.04964236915111542, + 0.0314604789018631, + 0.030289217829704285, + -0.06992889195680618, + 0.023776203393936157, + -0.01632939837872982, + -0.04324311763048172, + -0.0017938711680471897, + -0.011150505393743515, + -0.032331231981515884, + 0.01389454398304224, + -4.24844303006711e-33, + 0.06428048014640808, + -0.02990053780376911, + -0.012910906225442886, + -0.0004187206504866481, + -0.017776919528841972, + 0.05275596305727959, + 0.057455874979496, + 0.0684594064950943, + 0.0664098858833313, + 0.07548951357603073, + -0.03198755532503128, + 0.023034505546092987, + -0.024932032451033592, + -0.06909109652042389, + 0.03034205548465252, + 0.005543447565287352, + -0.002360409824177623, + -0.03406430780887604, + 0.029092462733387947, + -0.03898808732628822, + -0.05468765273690224, + -0.045170858502388, + 0.11587820202112198, + 0.047218844294548035, + -0.0111328000202775, + -0.038267556577920914, + 0.0021423236466944218, + 0.00875667855143547, + -0.043373677879571915, + -0.02179216407239437, + -0.07728926092386246, + 0.05709529668092728, + -0.08739106357097626, + -0.002893762895837426, + 0.015233544632792473, + 0.03215743601322174, + 0.07722007483243942, + 0.07191379368305206, + 0.05958125740289688, + 0.06045277789235115, + -0.012735054828226566, + 0.04143198952078819, + 0.037896350026130676, + 0.03135892376303673, + 0.06846865266561508, + -0.060597922652959824, + 0.0018945561023429036, + 0.09764687716960907, + -0.009442698210477829, + -0.06056302413344383, + 0.07563306391239166, + 0.0020029284060001373, + 0.007285514380782843, + 0.0384293757379055, + 0.07398632168769836, + 0.021760310977697372, + 0.042072661221027374, + -0.05143140256404877, + -0.07260196655988693, + 0.03751048445701599, + -0.04111683741211891, + -0.1446477323770523, + -0.1056116446852684, + -0.07264028489589691, + -0.06625676900148392, + 0.0028184556867927313, + -0.0646146833896637, + -0.04430842772126198, + -0.007488252595067024, + 0.0348803885281086, + -0.0181586891412735, + -0.024126151576638222, + -0.0016903007635846734, + -0.004879974760115147, + 0.025125235319137573, + 0.0538148358464241, + -0.05149843543767929, + 0.0025272415950894356, + -0.031165193766355515, + 0.01442408375442028, + -0.0005451320321299136, + 0.05081610009074211, + -0.01962202601134777, + 0.05651073157787323, + 0.04839686304330826, + -0.08724825829267502, + -0.00728797260671854, + 0.006029896903783083, + -0.030707677826285362, + -0.09419248253107071, + 0.006525056902319193, + 0.01463028509169817, + 0.028245562687516212, + 0.016830865293741226, + 0.04349159821867943, + -4.574486212050033e-08, + -0.05899188667535782, + -0.050271082669496536, + 0.014158852398395538, + 0.0042997095733881, + -0.0229052547365427, + 0.09540701657533646, + -0.027187002822756767, + -0.0633181557059288, + 0.09644174575805664, + -0.03433544561266899, + 0.024851694703102112, + -0.0662485733628273, + -0.047539710998535156, + 0.012607971206307411, + -0.06881215423345566, + 0.053194716572761536, + 0.007214783690869808, + 0.07858581840991974, + -0.012063564732670784, + -0.006249380297958851, + 0.06758160144090652, + -0.03483740985393524, + -0.015238966792821884, + -0.04939690977334976, + 0.013172190636396408, + 0.024906206876039505, + 0.06505551189184189, + 0.021566377952694893, + -0.0767282098531723, + -0.08178441226482391, + 0.07478678226470947, + -0.05909422039985657, + -0.021369803696870804, + 0.022126510739326477, + -0.04211222007870674, + 0.06008630990982056, + 0.09540541470050812, + 0.019404016435146332, + -0.0029269226361066103, + 0.03626089170575142, + 0.006003666669130325, + 0.021316273137927055, + -0.02447865903377533, + -0.01928441971540451, + 0.004310155753046274, + 0.0375029630959034, + 0.027916228398680687, + 0.05296829342842102, + -0.09173604100942612, + 0.05182192102074623, + 0.05541348457336426, + -0.02938605658710003, + -0.007644933182746172, + 0.040673527866601944, + -0.010746125131845474, + -0.06714620441198349, + -0.022651560604572296, + -0.050707682967185974, + -0.04336824640631676, + -0.014746551401913166, + 0.09001906961202621, + 0.08341144770383835, + 0.09920720010995865, + 0.029396846890449524 + ] + }, + { + "id": "repo_to_md/demo.py::run_demo.download_extracted", + "parent_id": "repo_to_md/demo.py::run_demo", + "file_path": "repo_to_md/demo.py", + "type": "function", + "name": "download_extracted", + "start_line": 169, + "end_line": 177, + "source_code": "def download_extracted():\n if not reverse_buffers:\n return jsonify({'error': 'No files available'}), 400\n buffer = io.BytesIO()\n with zipfile.ZipFile(buffer, 'w', zipfile.ZIP_DEFLATED) as zip_file:\n for filepath, content in reverse_buffers.items():\n zip_file.writestr(filepath, content if isinstance(content, bytes) else content.encode('utf-8'))\n buffer.seek(0)\n return send_file(buffer, as_attachment=True, download_name=\"extracted_files.zip\", mimetype='application/zip')", + "docstring": "", + "dependencies": [ + "send_file", + "isinstance", + "jsonify" + ], + "level": 1, + "structural_vector": [ + 1, + 1, + 0.9505494505494505, + 0.04945054945054945 + ], + "semantic_embedding": [ + -0.08526431769132614, + 0.051278214901685715, + -0.060333989560604095, + 0.0046254051849246025, + 0.035207830369472504, + -0.1049981638789177, + -0.014362798072397709, + 0.05235745385289192, + -0.021239038556814194, + 0.037875816226005554, + 0.017908817157149315, + 0.08604616671800613, + 0.007262269500643015, + 0.044874176383018494, + -0.03641914948821068, + -0.003783490741625428, + -0.029055155813694, + 0.05130044370889664, + 0.012537949718534946, + -0.021524207666516304, + 0.05134432762861252, + 0.0652192234992981, + 0.09104396402835846, + 0.03020741045475006, + 0.018691422417759895, + -0.043815288692712784, + -0.009746016003191471, + 0.03484520688652992, + -0.012817288748919964, + 0.022022457793354988, + 0.09303835779428482, + -0.03436630591750145, + 0.06948420405387878, + -0.07364574819803238, + 0.08756384253501892, + 0.10276266187429428, + 0.029749270528554916, + -0.07046350836753845, + 0.006805043667554855, + 0.007108971476554871, + 0.08508414775133133, + 0.052230291068553925, + -0.047904279083013535, + -0.04252368584275246, + -0.01844373531639576, + -0.05290524289011955, + 0.0644005537033081, + 0.01619390770792961, + 0.032720401883125305, + 0.013283987529575825, + -0.007413530256599188, + 0.08712223917245865, + -0.11504929512739182, + 0.0610068216919899, + -0.03850946202874184, + -0.07882285118103027, + -0.03262968733906746, + 0.04400458559393883, + -0.09644106030464172, + -0.02371130883693695, + -0.014744914136826992, + -0.03565206006169319, + -0.07183866202831268, + -0.00013550913718063384, + -0.022725099697709084, + 0.023493176326155663, + -0.057222943753004074, + 0.10449174046516418, + 0.0052906605415046215, + -0.09305167943239212, + 0.05717829614877701, + -0.010499331168830395, + -0.0834570974111557, + -0.027652619406580925, + -0.01251804456114769, + -0.04376497492194176, + 0.08631747215986252, + 0.09055034071207047, + -0.10071424394845963, + 0.038490165024995804, + -0.03784836828708649, + -0.14809143543243408, + 0.05495653301477432, + -1.788212830433622e-05, + -0.08051209896802902, + -0.042279575020074844, + 0.009635747410356998, + 0.05380517616868019, + -0.0031596608459949493, + -0.043589405715465546, + 0.006745603866875172, + 0.05058758705854416, + -0.02854350581765175, + 0.00030400752439163625, + -0.00879545696079731, + 0.05868179351091385, + 0.04775146767497063, + -0.012767430394887924, + -0.03912057727575302, + 0.012790735810995102, + 0.025980139151215553, + -0.013270956464111805, + 0.02041861228644848, + -0.08987874537706375, + 0.08844134956598282, + 0.019699810072779655, + 0.03951799124479294, + -0.004275052808225155, + 0.003496216842904687, + 0.03472514823079109, + -0.02616286650300026, + -0.019184214994311333, + 0.025676831603050232, + -0.07292693108320236, + 0.014024770818650723, + 0.09314298629760742, + -0.11674937605857849, + 0.10360134392976761, + -0.008141431026160717, + 0.026907796040177345, + 0.07706242054700851, + -0.01605885662138462, + 0.0006832781946286559, + -0.01002595666795969, + 0.04794222488999367, + -0.04570253565907478, + 0.05791322886943817, + 3.350539833481583e-33, + -0.025490088388323784, + 0.012428090907633305, + 0.08810082077980042, + 0.04767003655433655, + -0.053485460579395294, + -0.04637867957353592, + 0.050014007836580276, + -0.05424444377422333, + -0.05098144710063934, + -0.0007676366367377341, + -0.11572649329900742, + 0.020211637020111084, + -0.004176608286798, + 0.07135836035013199, + -0.10832379758358002, + -0.00711956899613142, + -0.013981382362544537, + 0.005407693330198526, + 0.06769822537899017, + 0.08571967482566833, + -0.01149566937237978, + -0.017052145674824715, + -0.05275985226035118, + 0.001174496952444315, + -0.06835538148880005, + -0.02228197641670704, + 0.024329127743840218, + -0.0024501439183950424, + -0.029593663290143013, + -0.004087111447006464, + -0.0302784014493227, + 0.014730162918567657, + 0.028545968234539032, + -0.03435192257165909, + -0.010528103448450565, + -0.007611382752656937, + -0.025821756571531296, + 0.011140279471874237, + -0.10257215797901154, + -0.04557870328426361, + 0.09033675491809845, + 0.02266748994588852, + -0.06060314178466797, + 0.004858125001192093, + -0.02117283083498478, + -0.05366402119398117, + -0.016078008338809013, + -0.05387050658464432, + -0.014352851547300816, + 0.028695009648799896, + 0.025542834773659706, + 0.04589823633432388, + 0.03280742093920708, + 0.028839027509093285, + -0.030465953052043915, + -0.046885162591934204, + 0.08162864297628403, + 0.008726714178919792, + 0.08470147103071213, + -0.033088568598032, + 0.07115224003791809, + -0.008945727720856667, + 0.04028801620006561, + -0.057984959334135056, + 0.09315405786037445, + -0.03653619438409805, + 0.003254635725170374, + 0.0532427541911602, + 0.018148640170693398, + 0.08549501746892929, + -0.06348002701997757, + 0.03921964019536972, + 0.019501827657222748, + -0.08910910040140152, + 0.058249544352293015, + -0.059067074209451675, + 0.0074477302841842175, + 0.013508284464478493, + 0.057840991765260696, + -0.021260235458612442, + 0.028280820697546005, + -0.06388671696186066, + -0.0011625891784206033, + -0.05274103209376335, + -0.054368119686841965, + 0.019068030640482903, + 0.0341547392308712, + 0.006629390642046928, + 0.02238580584526062, + -0.061524152755737305, + -0.0052598221227526665, + -0.003993320278823376, + -0.009361989796161652, + -0.08431556820869446, + 0.006766628473997116, + -4.9810085381056674e-33, + 0.07610238343477249, + -0.04550626873970032, + -0.028550872579216957, + -0.03217066079378128, + -0.01865313947200775, + 0.024156225845217705, + 0.03929160162806511, + 0.07201258838176727, + 0.01877628080546856, + 0.0073346528224647045, + -0.08466101437807083, + -0.03881564363837242, + 0.013612917624413967, + -0.05320414528250694, + 0.021953150629997253, + 0.0324176587164402, + 0.03057950921356678, + -0.03146984428167343, + 0.020120395347476006, + -0.03759567067027092, + -0.059775397181510925, + -0.017079170793294907, + 0.08155471831560135, + 0.06169850751757622, + -0.012530794367194176, + -0.06363391131162643, + -0.0075043910183012486, + 0.02779579907655716, + -0.052468765527009964, + -0.011250569485127926, + -0.06232735887169838, + 0.013922245241701603, + -0.08722903579473495, + 0.034923773258924484, + -0.012847528792917728, + 0.012230916880071163, + 0.04173135757446289, + 0.08360493928194046, + 0.07203373312950134, + 0.03895173594355583, + -0.021754508838057518, + 0.037146542221307755, + -0.008517998270690441, + 0.004316591192036867, + 0.0761537104845047, + -0.06427741795778275, + -0.05174001306295395, + 0.07050782442092896, + -0.05065978318452835, + -0.020862536504864693, + 0.06183111295104027, + 0.0351535938680172, + -0.03966248780488968, + 0.033738117665052414, + 0.06799451261758804, + -0.013354097492992878, + -0.008819627575576305, + -0.030406486243009567, + -0.06755473464727402, + 0.011702160350978374, + -0.0630042627453804, + -0.05643393099308014, + -0.09562446177005768, + -0.09436430782079697, + -0.066751629114151, + 0.006738622207194567, + -0.07904987782239914, + -0.044040072709321976, + -0.010041539557278156, + 0.031183430925011635, + -0.004158382304012775, + -0.01593058556318283, + 0.06353595107793808, + -0.027432752773165703, + 0.050663966685533524, + 0.09079189598560333, + -0.05233583599328995, + 0.026025503873825073, + -0.045275650918483734, + 0.012870254926383495, + -0.007049662992358208, + 0.04751042276620865, + 0.008110077120363712, + 0.05418040230870247, + 0.05588724464178085, + -0.07779253274202347, + -0.009077760390937328, + 0.007446806412190199, + 0.01089687179774046, + -0.10126259177923203, + 0.016117913648486137, + 0.008734731003642082, + 0.03638780862092972, + 0.026767505332827568, + 0.102505624294281, + -4.8495493842892756e-08, + -0.07070940732955933, + -0.03302333131432533, + -0.01168743520975113, + 0.06135399639606476, + -0.036551088094711304, + 0.12366131693124771, + -0.030109697952866554, + -0.08243419975042343, + 0.045103590935468674, + -0.05968232825398445, + 0.0370124876499176, + -0.07256664335727692, + -0.10850653797388077, + 0.033851511776447296, + -0.05201803147792816, + 0.08743322640657425, + 0.02670256793498993, + 0.03903802111744881, + 0.008336992003023624, + -0.02252649888396263, + 0.060888130217790604, + -0.02896007150411606, + -0.02333485335111618, + -0.03715483844280243, + 0.04592318460345268, + 0.03947228565812111, + 0.01973799802362919, + -0.015097531490027905, + -0.07805518060922623, + -0.09518959373235703, + 0.04792708531022072, + -0.09943820536136627, + -0.04144381359219551, + -0.014890298247337341, + -0.0029861305374652147, + 0.02343270368874073, + 0.0963386818766594, + -0.0005439388332888484, + 0.020144684240221977, + 0.04097408801317215, + 0.01719181053340435, + 0.017866823822259903, + -0.07830633968114853, + -0.046162620186805725, + -0.033425189554691315, + -0.0004954561009071767, + -0.013171340338885784, + 0.04136228561401367, + -0.07416313141584396, + 0.07167202234268188, + 0.09203478693962097, + -0.060170095413923264, + -0.0321599617600441, + 0.002386779058724642, + 0.024291690438985825, + -0.021342555060982704, + -0.019210927188396454, + 5.803495514555834e-05, + -0.04535742849111557, + 0.020348288118839264, + 0.06773242354393005, + 0.09874339401721954, + 0.07458470016717911, + -0.019049514085054398 + ] + } + ] +} \ No newline at end of file