diff --git "a/swe-bench-verified/psf#requests#1ba83c47ce7b177efe90d5f51f7760680f72eda0.graph.json" "b/swe-bench-verified/psf#requests#1ba83c47ce7b177efe90d5f51f7760680f72eda0.graph.json"
new file mode 100644--- /dev/null
+++ "b/swe-bench-verified/psf#requests#1ba83c47ce7b177efe90d5f51f7760680f72eda0.graph.json"
@@ -0,0 +1 @@
+{"edges":[{"edgeType":"calls","source":916,"target":572},{"edgeType":"contains","source":902,"target":909},{"edgeType":"contains","source":398,"target":413},{"edgeType":"contains","source":1808,"target":1892},{"edgeType":"imports","source":494,"target":1214},{"edgeType":"contains","source":388,"target":459},{"edgeType":"extends","source":11,"target":35},{"edgeType":"contains","source":3,"target":1823},{"edgeType":"calls","source":774,"target":217},{"edgeType":"imports","source":1622,"target":1657},{"edgeType":"calls","source":2071,"target":1499},{"edgeType":"contains","source":1827,"target":1832},{"edgeType":"contains","source":1826,"target":1863},{"edgeType":"calls","source":1341,"target":1138},{"edgeType":"calls","source":1211,"target":940},{"edgeType":"contains","source":1728,"target":1730},{"edgeType":"calls","source":1393,"target":55},{"edgeType":"calls","source":1196,"target":84},{"edgeType":"calls","source":916,"target":571},{"edgeType":"imports","source":373,"target":209},{"edgeType":"contains","source":1059,"target":1062},{"edgeType":"contains","source":398,"target":412},{"edgeType":"contains","source":794,"target":1085},{"edgeType":"calls","source":2181,"target":1526},{"edgeType":"imports","source":494,"target":1215},{"edgeType":"contains","source":388,"target":458},{"edgeType":"calls","source":1173,"target":268},{"edgeType":"calls","source":860,"target":721},{"edgeType":"contains","source":1901,"target":2181},{"edgeType":"contains","source":1670,"target":1679},{"edgeType":"contains","source":2,"target":4},{"edgeType":"calls","source":1173,"target":1060},{"edgeType":"calls","source":832,"target":797},{"edgeType":"calls","source":1489,"target":249},{"edgeType":"imports","source":1726,"target":18},{"edgeType":"contains","source":1901,"target":2178},{"edgeType":"contains","source":1561,"target":1619},{"edgeType":"calls","source":2165,"target":1226},{"edgeType":"contains","source":388,"target":461},{"edgeType":"calls","source":2210,"target":624},{"edgeType":"contains","source":4,"target":1530},{"edgeType":"imports","source":1622,"target":1655},{"edgeType":"contains","source":2,"target":7},{"edgeType":"calls","source":2165,"target":434},{"edgeType":"extends","source":1091,"target":118},{"edgeType":"contains","source":398,"target":415},{"edgeType":"contains","source":1670,"target":1676},{"edgeType":"contains","source":1183,"target":1184},{"edgeType":"contains","source":388,"target":460},{"edgeType":"extends","source":1233,"target":1265},{"edgeType":"calls","source":2210,"target":625},{"edgeType":"calls","source":2160,"target":61},{"edgeType":"imports","source":494,"target":1213},{"edgeType":"imports","source":1622,"target":1654},{"edgeType":"contains","source":902,"target":910},{"edgeType":"calls","source":2190,"target":2038},{"edgeType":"contains","source":1566,"target":937},{"edgeType":"imports","source":1808,"target":1702},{"edgeType":"contains","source":1827,"target":1831},{"edgeType":"contains","source":1826,"target":1862},{"edgeType":"contains","source":812,"target":1057},{"edgeType":"imports","source":494,"target":1212},{"edgeType":"extends","source":1217,"target":1232},{"edgeType":"contains","source":1728,"target":1729},{"edgeType":"contains","source":398,"target":414},{"edgeType":"calls","source":1198,"target":23},{"edgeType":"calls","source":1308,"target":572},{"edgeType":"contains","source":1443,"target":2112},{"edgeType":"contains","source":1551,"target":1671},{"edgeType":"imports","source":896,"target":111},{"edgeType":"contains","source":1265,"target":1288},{"edgeType":"contains","source":1059,"target":1067},{"edgeType":"imports","source":1622,"target":1653},{"edgeType":"calls","source":1283,"target":26},{"edgeType":"calls","source":860,"target":718},{"edgeType":"contains","source":28,"target":1053},{"edgeType":"contains","source":1705,"target":1654},{"edgeType":"contains","source":2,"target":9},{"edgeType":"extends","source":1087,"target":1037},{"edgeType":"calls","source":2178,"target":1086},{"edgeType":"calls","source":2208,"target":156},{"edgeType":"contains","source":398,"target":417},{"edgeType":"contains","source":1826,"target":1867},{"edgeType":"calls","source":1308,"target":571},{"edgeType":"contains","source":1443,"target":2113},{"edgeType":"contains","source":1823,"target":2225},{"edgeType":"contains","source":1059,"target":1066},{"edgeType":"contains","source":1265,"target":1289},{"edgeType":"contains","source":27,"target":1875},{"edgeType":"contains","source":1705,"target":1655},{"edgeType":"imports","source":494,"target":1210},{"edgeType":"calls","source":1540,"target":249},{"edgeType":"imports","source":1701,"target":789},{"edgeType":"contains","source":1826,"target":1868},{"edgeType":"contains","source":398,"target":416},{"edgeType":"calls","source":916,"target":570},{"edgeType":"extends","source":1059,"target":322},{"edgeType":"calls","source":754,"target":835},{"edgeType":"contains","source":27,"target":1878},{"edgeType":"contains","source":1701,"target":2040},{"edgeType":"contains","source":814,"target":472},{"edgeType":"calls","source":860,"target":720},{"edgeType":"contains","source":1901,"target":2182},{"edgeType":"contains","source":214,"target":310},{"edgeType":"calls","source":2152,"target":2154},{"edgeType":"calls","source":1489,"target":248},{"edgeType":"contains","source":398,"target":419},{"edgeType":"imports","source":1701,"target":788},{"edgeType":"contains","source":1728,"target":1732},{"edgeType":"contains","source":2,"target":1331},{"edgeType":"calls","source":836,"target":142},{"edgeType":"imports","source":1701,"target":786},{"edgeType":"contains","source":9,"target":1378},{"edgeType":"contains","source":1265,"target":1287},{"edgeType":"calls","source":754,"target":834},{"edgeType":"calls","source":648,"target":156},{"edgeType":"calls","source":2182,"target":1489},{"edgeType":"calls","source":2195,"target":1086},{"edgeType":"calls","source":2062,"target":2038},{"edgeType":"calls","source":860,"target":719},{"edgeType":"imports","source":494,"target":1208},{"edgeType":"calls","source":2044,"target":1540},{"edgeType":"contains","source":7,"target":1705},{"edgeType":"contains","source":27,"target":28},{"edgeType":"contains","source":1705,"target":1653},{"edgeType":"contains","source":468,"target":626},{"edgeType":"contains","source":1852,"target":1853},{"edgeType":"contains","source":398,"target":418},{"edgeType":"contains","source":1826,"target":1866},{"edgeType":"calls","source":2134,"target":331},{"edgeType":"contains","source":1823,"target":2228},{"edgeType":"contains","source":540,"target":776},{"edgeType":"contains","source":1705,"target":1658},{"edgeType":"contains","source":283,"target":287},{"edgeType":"contains","source":214,"target":312},{"edgeType":"calls","source":2096,"target":2038},{"edgeType":"calls","source":1054,"target":1042},{"edgeType":"contains","source":1379,"target":1458},{"edgeType":"extends","source":170,"target":136},{"edgeType":"contains","source":1901,"target":2189},{"edgeType":"contains","source":398,"target":421},{"edgeType":"calls","source":748,"target":751},{"edgeType":"contains","source":1443,"target":2117},{"edgeType":"calls","source":2134,"target":332},{"edgeType":"calls","source":1096,"target":268},{"edgeType":"contains","source":1823,"target":2229},{"edgeType":"contains","source":540,"target":775},{"edgeType":"contains","source":2,"target":1333},{"edgeType":"contains","source":1265,"target":1293},{"edgeType":"imports","source":1838,"target":1839},{"edgeType":"contains","source":1670,"target":1687},{"edgeType":"contains","source":1059,"target":1070},{"edgeType":"contains","source":283,"target":286},{"edgeType":"contains","source":1379,"target":1459},{"edgeType":"calls","source":752,"target":97},{"edgeType":"imports","source":1622,"target":79},{"edgeType":"contains","source":1728,"target":1739},{"edgeType":"imports","source":934,"target":267},{"edgeType":"contains","source":1901,"target":2190},{"edgeType":"calls","source":2152,"target":2153},{"edgeType":"calls","source":1327,"target":770},{"edgeType":"contains","source":398,"target":420},{"edgeType":"contains","source":1398,"target":1399},{"edgeType":"calls","source":1198,"target":277},{"edgeType":"contains","source":1753,"target":1757},{"edgeType":"imports","source":1838,"target":518},{"edgeType":"calls","source":2134,"target":333},{"edgeType":"calls","source":748,"target":750},{"edgeType":"contains","source":1443,"target":2118},{"edgeType":"imports","source":1622,"target":1663},{"edgeType":"calls","source":2134,"target":329},{"edgeType":"imports","source":1566,"target":1285},{"edgeType":"calls","source":1308,"target":570},{"edgeType":"contains","source":1443,"target":2114},{"edgeType":"contains","source":1265,"target":1290},{"edgeType":"contains","source":283,"target":289},{"edgeType":"calls","source":1341,"target":340},{"edgeType":"contains","source":1379,"target":1456},{"edgeType":"contains","source":398,"target":423},{"edgeType":"contains","source":7,"target":1710},{"edgeType":"calls","source":1540,"target":248},{"edgeType":"contains","source":1670,"target":1684},{"edgeType":"contains","source":1753,"target":1754},{"edgeType":"imports","source":1701,"target":1593},{"edgeType":"contains","source":1443,"target":2115},{"edgeType":"contains","source":388,"target":469},{"edgeType":"contains","source":1826,"target":1869},{"edgeType":"calls","source":1498,"target":1286},{"edgeType":"contains","source":1008,"target":1068},{"edgeType":"calls","source":1196,"target":1134},{"edgeType":"calls","source":2134,"target":330},{"edgeType":"contains","source":1823,"target":2227},{"edgeType":"calls","source":900,"target":268},{"edgeType":"contains","source":7,"target":1180},{"edgeType":"extends","source":1265,"target":17},{"edgeType":"contains","source":1705,"target":1657},{"edgeType":"contains","source":283,"target":288},{"edgeType":"imports","source":1566,"target":1284},{"edgeType":"imports","source":1378,"target":770},{"edgeType":"contains","source":1379,"target":1457},{"edgeType":"contains","source":398,"target":422},{"edgeType":"calls","source":992,"target":323},{"edgeType":"contains","source":1443,"target":2116},{"edgeType":"calls","source":1198,"target":279},{"edgeType":"calls","source":92,"target":206},{"edgeType":"calls","source":2134,"target":327},{"edgeType":"contains","source":1701,"target":2050},{"edgeType":"contains","source":283,"target":291},{"edgeType":"calls","source":1531,"target":786},{"edgeType":"contains","source":1183,"target":1195},{"edgeType":"calls","source":2103,"target":1024},{"edgeType":"extends","source":991,"target":322},{"edgeType":"contains","source":1901,"target":2193},{"edgeType":"calls","source":1309,"target":268},{"edgeType":"calls","source":1276,"target":234},{"edgeType":"contains","source":1811,"target":1812},{"edgeType":"contains","source":398,"target":425},{"edgeType":"contains","source":540,"target":780},{"edgeType":"contains","source":1443,"target":2121},{"edgeType":"calls","source":847,"target":55},{"edgeType":"calls","source":2134,"target":328},{"edgeType":"imports","source":1277,"target":465},{"edgeType":"contains","source":540,"target":779},{"edgeType":"calls","source":92,"target":205},{"edgeType":"calls","source":1060,"target":323},{"edgeType":"calls","source":1531,"target":785},{"edgeType":"contains","source":283,"target":290},{"edgeType":"calls","source":2103,"target":1025},{"edgeType":"contains","source":1670,"target":1691},{"edgeType":"extends","source":1177,"target":897},{"edgeType":"contains","source":1901,"target":2194},{"edgeType":"extends","source":35,"target":96},{"edgeType":"calls","source":2222,"target":2093},{"edgeType":"contains","source":398,"target":424},{"edgeType":"extends","source":1053,"target":1041},{"edgeType":"extends","source":498,"target":541},{"edgeType":"calls","source":1276,"target":233},{"edgeType":"contains","source":1443,"target":2122},{"edgeType":"calls","source":1431,"target":1506},{"edgeType":"contains","source":388,"target":470},{"edgeType":"calls","source":614,"target":146},{"edgeType":"contains","source":1087,"target":738},{"edgeType":"contains","source":1823,"target":2230},{"edgeType":"contains","source":27,"target":1358},{"edgeType":"contains","source":1701,"target":2048},{"edgeType":"contains","source":283,"target":293},{"edgeType":"imports","source":494,"target":1216},{"edgeType":"contains","source":374,"target":379},{"edgeType":"contains","source":1670,"target":1688},{"edgeType":"imports","source":1622,"target":1659},{"edgeType":"contains","source":1878,"target":1582},{"edgeType":"calls","source":2103,"target":1022},{"edgeType":"imports","source":1566,"target":1281},{"edgeType":"contains","source":398,"target":427},{"edgeType":"calls","source":1512,"target":55},{"edgeType":"contains","source":1358,"target":790},{"edgeType":"contains","source":1901,"target":2191},{"edgeType":"calls","source":748,"target":749},{"edgeType":"contains","source":540,"target":782},{"edgeType":"contains","source":1443,"target":2119},{"edgeType":"contains","source":388,"target":473},{"edgeType":"imports","source":373,"target":1531},{"edgeType":"contains","source":1008,"target":1072},{"edgeType":"contains","source":1701,"target":2049},{"edgeType":"calls","source":2134,"target":326},{"edgeType":"contains","source":283,"target":292},{"edgeType":"contains","source":1670,"target":1689},{"edgeType":"calls","source":2156,"target":1494},{"edgeType":"calls","source":2103,"target":1023},{"edgeType":"imports","source":1622,"target":1658},{"edgeType":"contains","source":1878,"target":1583},{"edgeType":"contains","source":398,"target":426},{"edgeType":"contains","source":27,"target":1886},{"edgeType":"contains","source":29,"target":767},{"edgeType":"calls","source":2178,"target":1605},{"edgeType":"contains","source":1901,"target":2192},{"edgeType":"contains","source":1443,"target":2120},{"edgeType":"contains","source":540,"target":781},{"edgeType":"contains","source":2206,"target":2222},{"edgeType":"contains","source":468,"target":605},{"edgeType":"calls","source":92,"target":235},{"edgeType":"calls","source":997,"target":720},{"edgeType":"calls","source":1503,"target":97},{"edgeType":"calls","source":1291,"target":327},{"edgeType":"contains","source":1331,"target":1864},{"edgeType":"calls","source":1923,"target":554},{"edgeType":"calls","source":790,"target":795},{"edgeType":"contains","source":1232,"target":1234},{"edgeType":"imports","source":1622,"target":1641},{"edgeType":"contains","source":2206,"target":2223},{"edgeType":"extends","source":177,"target":157},{"edgeType":"calls","source":1903,"target":1702},{"edgeType":"calls","source":997,"target":719},{"edgeType":"calls","source":92,"target":234},{"edgeType":"calls","source":1295,"target":466},{"edgeType":"calls","source":1291,"target":326},{"edgeType":"contains","source":1148,"target":1193},{"edgeType":"contains","source":1180,"target":1258},{"edgeType":"contains","source":226,"target":707},{"edgeType":"contains","source":9,"target":1356},{"edgeType":"contains","source":1265,"target":1269},{"edgeType":"calls","source":466,"target":268},{"edgeType":"contains","source":1232,"target":1235},{"edgeType":"calls","source":2165,"target":718},{"edgeType":"contains","source":1901,"target":2165},{"edgeType":"contains","source":468,"target":607},{"edgeType":"imports","source":12,"target":17},{"edgeType":"calls","source":1291,"target":329},{"edgeType":"calls","source":1919,"target":1209},{"edgeType":"contains","source":32,"target":117},{"edgeType":"contains","source":398,"target":399},{"edgeType":"contains","source":1901,"target":2162},{"edgeType":"calls","source":1189,"target":55},{"edgeType":"calls","source":1329,"target":736},{"edgeType":"extends","source":1008,"target":32},{"edgeType":"calls","source":277,"target":52},{"edgeType":"contains","source":794,"target":1071},{"edgeType":"contains","source":1670,"target":1395},{"edgeType":"calls","source":1675,"target":52},{"edgeType":"imports","source":1751,"target":18},{"edgeType":"imports","source":1784,"target":52},{"edgeType":"extends","source":164,"target":35},{"edgeType":"calls","source":82,"target":19},{"edgeType":"contains","source":2206,"target":2220},{"edgeType":"calls","source":2095,"target":1828},{"edgeType":"calls","source":1393,"target":1394},{"edgeType":"calls","source":1211,"target":958},{"edgeType":"contains","source":1442,"target":1857},{"edgeType":"calls","source":2182,"target":2038},{"edgeType":"contains","source":32,"target":116},{"edgeType":"calls","source":997,"target":721},{"edgeType":"calls","source":312,"target":287},{"edgeType":"calls","source":1291,"target":328},{"edgeType":"extends","source":1218,"target":392},{"edgeType":"calls","source":2190,"target":1526},{"edgeType":"calls","source":121,"target":130},{"edgeType":"calls","source":1923,"target":555},{"edgeType":"contains","source":1901,"target":2163},{"edgeType":"contains","source":1265,"target":1267},{"edgeType":"contains","source":1785,"target":1795},{"edgeType":"contains","source":2206,"target":2221},{"edgeType":"calls","source":1498,"target":248},{"edgeType":"extends","source":147,"target":35},{"edgeType":"contains","source":468,"target":609},{"edgeType":"contains","source":398,"target":401},{"edgeType":"calls","source":2202,"target":94},{"edgeType":"calls","source":676,"target":97},{"edgeType":"imports","source":1784,"target":50},{"edgeType":"contains","source":1265,"target":1272},{"edgeType":"contains","source":27,"target":1860},{"edgeType":"contains","source":1232,"target":1238},{"edgeType":"calls","source":2044,"target":1291},{"edgeType":"contains","source":1579,"target":1580},{"edgeType":"contains","source":540,"target":755},{"edgeType":"contains","source":1443,"target":1568},{"edgeType":"extends","source":1217,"target":1218},{"edgeType":"contains","source":398,"target":400},{"edgeType":"contains","source":9,"target":38},{"edgeType":"contains","source":1826,"target":1851},{"edgeType":"imports","source":1886,"target":1908},{"edgeType":"extends","source":610,"target":215},{"edgeType":"calls","source":2189,"target":1291},{"edgeType":"contains","source":1579,"target":1581},{"edgeType":"contains","source":1232,"target":1239},{"edgeType":"imports","source":1231,"target":1337},{"edgeType":"calls","source":1817,"target":135},{"edgeType":"imports","source":494,"target":1191},{"edgeType":"calls","source":997,"target":718},{"edgeType":"contains","source":2206,"target":2224},{"edgeType":"contains","source":398,"target":403},{"edgeType":"calls","source":92,"target":233},{"edgeType":"contains","source":7,"target":896},{"edgeType":"contains","source":812,"target":1046},{"edgeType":"contains","source":10,"target":11},{"edgeType":"contains","source":1232,"target":1236},{"edgeType":"imports","source":494,"target":1192},{"edgeType":"calls","source":1498,"target":249},{"edgeType":"calls","source":2217,"target":156},{"edgeType":"contains","source":398,"target":402},{"edgeType":"contains","source":1823,"target":2206},{"edgeType":"calls","source":2037,"target":2038},{"edgeType":"calls","source":1716,"target":97},{"edgeType":"calls","source":1096,"target":26},{"edgeType":"contains","source":100,"target":391},{"edgeType":"contains","source":1358,"target":502},{"edgeType":"contains","source":18,"target":26},{"edgeType":"contains","source":1232,"target":1237},{"edgeType":"extends","source":1075,"target":1129},{"edgeType":"contains","source":1356,"target":1357},{"edgeType":"calls","source":1919,"target":146},{"edgeType":"imports","source":494,"target":677},{"edgeType":"contains","source":1878,"target":1035},{"edgeType":"imports","source":1701,"target":785},{"edgeType":"calls","source":1512,"target":1131},{"edgeType":"imports","source":804,"target":52},{"edgeType":"calls","source":693,"target":94},{"edgeType":"calls","source":900,"target":19},{"edgeType":"extends","source":219,"target":186},{"edgeType":"extends","source":182,"target":11},{"edgeType":"contains","source":398,"target":405},{"edgeType":"calls","source":261,"target":273},{"edgeType":"calls","source":2096,"target":1526},{"edgeType":"contains","source":1265,"target":1276},{"edgeType":"calls","source":797,"target":570},{"edgeType":"contains","source":29,"target":745},{"edgeType":"calls","source":1085,"target":97},{"edgeType":"calls","source":967,"target":55},{"edgeType":"contains","source":398,"target":404},{"edgeType":"calls","source":261,"target":272},{"edgeType":"calls","source":906,"target":97},{"edgeType":"calls","source":1540,"target":790},{"edgeType":"calls","source":2071,"target":2038},{"edgeType":"contains","source":3,"target":1550},{"edgeType":"imports","source":1592,"target":991},{"edgeType":"contains","source":398,"target":407},{"edgeType":"imports","source":1477,"target":1385},{"edgeType":"contains","source":388,"target":453},{"edgeType":"calls","source":1532,"target":249},{"edgeType":"calls","source":1194,"target":156},{"edgeType":"calls","source":1817,"target":134},{"edgeType":"contains","source":540,"target":761},{"edgeType":"calls","source":797,"target":572},{"edgeType":"calls","source":754,"target":55},{"edgeType":"calls","source":2200,"target":2000},{"edgeType":"contains","source":1541,"target":1439},{"edgeType":"contains","source":28,"target":1041},{"edgeType":"contains","source":398,"target":406},{"edgeType":"imports","source":1701,"target":518},{"edgeType":"calls","source":1309,"target":26},{"edgeType":"calls","source":261,"target":274},{"edgeType":"calls","source":1532,"target":248},{"edgeType":"calls","source":2042,"target":1086},{"edgeType":"calls","source":1817,"target":133},{"edgeType":"contains","source":1705,"target":1641},{"edgeType":"calls","source":797,"target":571},{"edgeType":"contains","source":49,"target":126},{"edgeType":"imports","source":1827,"target":312},{"edgeType":"imports","source":1378,"target":754},{"edgeType":"contains","source":1901,"target":2176},{"edgeType":"contains","source":398,"target":409},{"edgeType":"calls","source":261,"target":269},{"edgeType":"contains","source":388,"target":455},{"edgeType":"contains","source":1878,"target":1039},{"edgeType":"calls","source":92,"target":223},{"edgeType":"calls","source":1851,"target":1188},{"edgeType":"contains","source":540,"target":763},{"edgeType":"calls","source":1384,"target":1395},{"edgeType":"imports","source":494,"target":1201},{"edgeType":"extends","source":540,"target":544},{"edgeType":"contains","source":1901,"target":2177},{"edgeType":"imports","source":214,"target":369},{"edgeType":"contains","source":398,"target":408},{"edgeType":"calls","source":1401,"target":1396},{"edgeType":"contains","source":1878,"target":1040},{"edgeType":"contains","source":388,"target":454},{"edgeType":"imports","source":1622,"target":58},{"edgeType":"contains","source":160,"target":387},{"edgeType":"contains","source":1566,"target":1728},{"edgeType":"contains","source":1670,"target":1675},{"edgeType":"imports","source":1827,"target":310},{"edgeType":"contains","source":49,"target":128},{"edgeType":"contains","source":468,"target":616},{"edgeType":"contains","source":398,"target":411},{"edgeType":"contains","source":1878,"target":1037},{"edgeType":"contains","source":388,"target":457},{"edgeType":"calls","source":2156,"target":2038},{"edgeType":"calls","source":261,"target":271},{"edgeType":"imports","source":2101,"target":1856},{"edgeType":"contains","source":1008,"target":1056},{"edgeType":"contains","source":2,"target":3},{"edgeType":"calls","source":2097,"target":1489},{"edgeType":"contains","source":160,"target":390},{"edgeType":"calls","source":90,"target":23},{"edgeType":"contains","source":1670,"target":1672},{"edgeType":"contains","source":398,"target":410},{"edgeType":"calls","source":2148,"target":1494},{"edgeType":"contains","source":1059,"target":1060},{"edgeType":"calls","source":2194,"target":1125},{"edgeType":"imports","source":1726,"target":267},{"edgeType":"contains","source":1901,"target":2175},{"edgeType":"calls","source":261,"target":270},{"edgeType":"contains","source":388,"target":456},{"edgeType":"contains","source":1878,"target":1038},{"edgeType":"extends","source":177,"target":172},{"edgeType":"calls","source":92,"target":224},{"edgeType":"extends","source":604,"target":147},{"edgeType":"contains","source":160,"target":389},{"edgeType":"contains","source":1860,"target":1861},{"edgeType":"contains","source":1670,"target":1673},{"edgeType":"calls","source":2087,"target":1499},{"edgeType":"contains","source":1337,"target":1397},{"edgeType":"calls","source":1152,"target":1151},{"edgeType":"calls","source":1152,"target":94},{"edgeType":"calls","source":2160,"target":1086},{"edgeType":"calls","source":811,"target":94},{"edgeType":"contains","source":1586,"target":1606},{"edgeType":"contains","source":1650,"target":1736},{"edgeType":"calls","source":1074,"target":1190},{"edgeType":"contains","source":1443,"target":1547},{"edgeType":"calls","source":846,"target":331},{"edgeType":"calls","source":606,"target":372},{"edgeType":"imports","source":1701,"target":1091},{"edgeType":"calls","source":1419,"target":1065},{"edgeType":"contains","source":1901,"target":2148},{"edgeType":"calls","source":1046,"target":472},{"edgeType":"contains","source":2,"target":1556},{"edgeType":"calls","source":2044,"target":2038},{"edgeType":"calls","source":1431,"target":1486},{"edgeType":"contains","source":540,"target":734},{"edgeType":"contains","source":2206,"target":2207},{"edgeType":"calls","source":846,"target":330},{"edgeType":"imports","source":1701,"target":1090},{"edgeType":"contains","source":1049,"target":1074},{"edgeType":"calls","source":169,"target":179},{"edgeType":"contains","source":322,"target":360},{"edgeType":"contains","source":1701,"target":1210},{"edgeType":"imports","source":1808,"target":1207},{"edgeType":"calls","source":1829,"target":1835},{"edgeType":"contains","source":1826,"target":1828},{"edgeType":"contains","source":215,"target":241},{"edgeType":"contains","source":1569,"target":1603},{"edgeType":"calls","source":2207,"target":156},{"edgeType":"calls","source":2209,"target":94},{"edgeType":"contains","source":1446,"target":1452},{"edgeType":"contains","source":1527,"target":1848},{"edgeType":"calls","source":846,"target":333},{"edgeType":"imports","source":1808,"target":1206},{"edgeType":"imports","source":591,"target":617},{"edgeType":"extends","source":1172,"target":18},{"edgeType":"calls","source":169,"target":178},{"edgeType":"calls","source":119,"target":671},{"edgeType":"contains","source":1826,"target":1829},{"edgeType":"calls","source":846,"target":332},{"edgeType":"contains","source":1333,"target":1785},{"edgeType":"contains","source":1768,"target":1777},{"edgeType":"calls","source":1511,"target":1381},{"edgeType":"calls","source":1665,"target":571},{"edgeType":"contains","source":49,"target":104},{"edgeType":"imports","source":373,"target":1294},{"edgeType":"contains","source":2,"target":1561},{"edgeType":"calls","source":2221,"target":248},{"edgeType":"calls","source":1649,"target":274},{"edgeType":"contains","source":899,"target":973},{"edgeType":"calls","source":1716,"target":575},{"edgeType":"calls","source":846,"target":327},{"edgeType":"contains","source":812,"target":1027},{"edgeType":"calls","source":1313,"target":912},{"edgeType":"contains","source":1569,"target":1609},{"edgeType":"contains","source":215,"target":243},{"edgeType":"contains","source":2206,"target":2210},{"edgeType":"contains","source":468,"target":592},{"edgeType":"extends","source":81,"target":17},{"edgeType":"imports","source":1378,"target":794},{"edgeType":"extends","source":145,"target":147},{"edgeType":"contains","source":1398,"target":1625},{"edgeType":"calls","source":1069,"target":20},{"edgeType":"calls","source":1497,"target":1286},{"edgeType":"contains","source":1827,"target":218},{"edgeType":"contains","source":1586,"target":1611},{"edgeType":"calls","source":1665,"target":570},{"edgeType":"contains","source":49,"target":103},{"edgeType":"contains","source":2,"target":503},{"edgeType":"calls","source":2194,"target":1086},{"edgeType":"calls","source":2221,"target":249},{"edgeType":"calls","source":2224,"target":156},{"edgeType":"calls","source":1649,"target":273},{"edgeType":"contains","source":899,"target":972},{"edgeType":"contains","source":1901,"target":2152},{"edgeType":"calls","source":846,"target":326},{"edgeType":"calls","source":861,"target":918},{"edgeType":"calls","source":1716,"target":574},{"edgeType":"contains","source":215,"target":242},{"edgeType":"contains","source":2206,"target":2211},{"edgeType":"contains","source":1398,"target":1626},{"edgeType":"contains","source":49,"target":106},{"edgeType":"contains","source":29,"target":726},{"edgeType":"contains","source":17,"target":41},{"edgeType":"calls","source":1085,"target":55},{"edgeType":"imports","source":38,"target":49},{"edgeType":"calls","source":2095,"target":2038},{"edgeType":"contains","source":215,"target":245},{"edgeType":"contains","source":610,"target":156},{"edgeType":"contains","source":2206,"target":2208},{"edgeType":"calls","source":846,"target":329},{"edgeType":"contains","source":226,"target":697},{"edgeType":"calls","source":1065,"target":146},{"edgeType":"calls","source":1336,"target":994},{"edgeType":"contains","source":1827,"target":216},{"edgeType":"calls","source":1665,"target":572},{"edgeType":"calls","source":268,"target":276},{"edgeType":"contains","source":49,"target":105},{"edgeType":"imports","source":1277,"target":1279},{"edgeType":"extends","source":1317,"target":18},{"edgeType":"contains","source":1901,"target":2150},{"edgeType":"contains","source":899,"target":974},{"edgeType":"contains","source":214,"target":275},{"edgeType":"contains","source":215,"target":244},{"edgeType":"contains","source":2206,"target":2209},{"edgeType":"contains","source":468,"target":593},{"edgeType":"calls","source":846,"target":328},{"edgeType":"calls","source":1336,"target":993},{"edgeType":"contains","source":1670,"target":1384},{"edgeType":"imports","source":1823,"target":209},{"edgeType":"contains","source":540,"target":743},{"edgeType":"calls","source":1649,"target":270},{"edgeType":"calls","source":119,"target":133},{"edgeType":"contains","source":17,"target":43},{"edgeType":"contains","source":49,"target":108},{"edgeType":"contains","source":1443,"target":762},{"edgeType":"calls","source":838,"target":570},{"edgeType":"contains","source":215,"target":248},{"edgeType":"calls","source":1116,"target":1202},{"edgeType":"calls","source":1645,"target":1451},{"edgeType":"calls","source":1599,"target":234},{"edgeType":"contains","source":1569,"target":1613},{"edgeType":"contains","source":226,"target":699},{"edgeType":"contains","source":2206,"target":2214},{"edgeType":"calls","source":1660,"target":721},{"edgeType":"contains","source":1306,"target":1310},{"edgeType":"contains","source":1398,"target":1629},{"edgeType":"calls","source":944,"target":720},{"edgeType":"calls","source":1531,"target":1549},{"edgeType":"calls","source":800,"target":163},{"edgeType":"calls","source":231,"target":97},{"edgeType":"calls","source":1649,"target":269},{"edgeType":"calls","source":2165,"target":1188},{"edgeType":"calls","source":546,"target":372},{"edgeType":"contains","source":1901,"target":2156},{"edgeType":"contains","source":49,"target":107},{"edgeType":"contains","source":17,"target":42},{"edgeType":"contains","source":2,"target":1564},{"edgeType":"contains","source":215,"target":247},{"edgeType":"contains","source":215,"target":246},{"edgeType":"calls","source":1599,"target":233},{"edgeType":"contains","source":1398,"target":1630},{"edgeType":"contains","source":226,"target":698},{"edgeType":"contains","source":2046,"target":833},{"edgeType":"calls","source":1829,"target":238},{"edgeType":"contains","source":2206,"target":2215},{"edgeType":"calls","source":1660,"target":720},{"edgeType":"calls","source":944,"target":719},{"edgeType":"imports","source":1827,"target":362},{"edgeType":"calls","source":119,"target":135},{"edgeType":"calls","source":1919,"target":94},{"edgeType":"calls","source":2087,"target":1489},{"edgeType":"contains","source":215,"target":250},{"edgeType":"contains","source":183,"target":185},{"edgeType":"calls","source":1649,"target":272},{"edgeType":"contains","source":226,"target":701},{"edgeType":"imports","source":1808,"target":1216},{"edgeType":"calls","source":2098,"target":94},{"edgeType":"calls","source":1716,"target":573},{"edgeType":"contains","source":2206,"target":2212},{"edgeType":"contains","source":1398,"target":1627},{"edgeType":"calls","source":1399,"target":94},{"edgeType":"calls","source":119,"target":134},{"edgeType":"contains","source":1148,"target":1187},{"edgeType":"contains","source":989,"target":1095},{"edgeType":"imports","source":494,"target":990},{"edgeType":"calls","source":838,"target":571},{"edgeType":"contains","source":215,"target":249},{"edgeType":"contains","source":183,"target":184},{"edgeType":"calls","source":1649,"target":271},{"edgeType":"calls","source":838,"target":572},{"edgeType":"contains","source":226,"target":700},{"edgeType":"calls","source":275,"target":55},{"edgeType":"calls","source":231,"target":362},{"edgeType":"contains","source":2206,"target":2213},{"edgeType":"calls","source":1042,"target":61},{"edgeType":"contains","source":1398,"target":1628},{"edgeType":"calls","source":944,"target":721},{"edgeType":"contains","source":1306,"target":1309},{"edgeType":"calls","source":1555,"target":273},{"edgeType":"contains","source":215,"target":252},{"edgeType":"contains","source":1701,"target":696},{"edgeType":"calls","source":1383,"target":55},{"edgeType":"imports","source":38,"target":853},{"edgeType":"calls","source":1704,"target":146},{"edgeType":"contains","source":226,"target":703},{"edgeType":"calls","source":2163,"target":2038},{"edgeType":"contains","source":1398,"target":1633},{"edgeType":"contains","source":1901,"target":2160},{"edgeType":"contains","source":2206,"target":2218},{"edgeType":"calls","source":1680,"target":97},{"edgeType":"calls","source":1069,"target":276},{"edgeType":"calls","source":1010,"target":1048},{"edgeType":"contains","source":1331,"target":1332},{"edgeType":"calls","source":378,"target":555},{"edgeType":"imports","source":8,"target":462},{"edgeType":"calls","source":1135,"target":1136},{"edgeType":"imports","source":1533,"target":1545},{"edgeType":"calls","source":1085,"target":572},{"edgeType":"contains","source":794,"target":1064},{"edgeType":"contains","source":1827,"target":226},{"edgeType":"calls","source":1680,"target":1682},{"edgeType":"contains","source":215,"target":251},{"edgeType":"contains","source":1569,"target":1618},{"edgeType":"calls","source":1555,"target":272},{"edgeType":"calls","source":1531,"target":1544},{"edgeType":"contains","source":1398,"target":1634},{"edgeType":"contains","source":1901,"target":2161},{"edgeType":"contains","source":226,"target":702},{"edgeType":"calls","source":1152,"target":1137},{"edgeType":"contains","source":1306,"target":1315},{"edgeType":"imports","source":28,"target":371},{"edgeType":"contains","source":2206,"target":2219},{"edgeType":"calls","source":974,"target":52},{"edgeType":"contains","source":1823,"target":2197},{"edgeType":"contains","source":1586,"target":1616},{"edgeType":"calls","source":1399,"target":90},{"edgeType":"calls","source":1861,"target":1888},{"edgeType":"contains","source":1180,"target":1257},{"edgeType":"contains","source":226,"target":706},{"edgeType":"imports","source":494,"target":984},{"edgeType":"contains","source":226,"target":705},{"edgeType":"contains","source":49,"target":115},{"edgeType":"calls","source":1673,"target":52},{"edgeType":"calls","source":1187,"target":55},{"edgeType":"contains","source":1398,"target":1631},{"edgeType":"contains","source":1901,"target":2158},{"edgeType":"calls","source":1829,"target":237},{"edgeType":"contains","source":1306,"target":1312},{"edgeType":"calls","source":944,"target":718},{"edgeType":"contains","source":2206,"target":2216},{"edgeType":"calls","source":1660,"target":719},{"edgeType":"imports","source":1378,"target":1327},{"edgeType":"calls","source":1322,"target":1419},{"edgeType":"calls","source":119,"target":394},{"edgeType":"calls","source":1555,"target":274},{"edgeType":"imports","source":28,"target":897},{"edgeType":"contains","source":1586,"target":1617},{"edgeType":"calls","source":1399,"target":89},{"edgeType":"calls","source":1861,"target":1887},{"edgeType":"contains","source":468,"target":602},{"edgeType":"contains","source":1398,"target":1632},{"edgeType":"contains","source":1901,"target":2159},{"edgeType":"contains","source":2206,"target":2217},{"edgeType":"calls","source":1660,"target":718},{"edgeType":"contains","source":1620,"target":1621},{"edgeType":"calls","source":1085,"target":838},{"edgeType":"contains","source":544,"target":330},{"edgeType":"contains","source":1008,"target":1009},{"edgeType":"calls","source":1401,"target":55},{"edgeType":"calls","source":156,"target":332},{"edgeType":"contains","source":1378,"target":1431},{"edgeType":"extends","source":1061,"target":1063},{"edgeType":"imports","source":12,"target":52},{"edgeType":"calls","source":1554,"target":333},{"edgeType":"contains","source":659,"target":729},{"edgeType":"calls","source":2192,"target":375},{"edgeType":"contains","source":17,"target":19},{"edgeType":"calls","source":2103,"target":1020},{"edgeType":"contains","source":1908,"target":1914},{"edgeType":"extends","source":165,"target":35},{"edgeType":"contains","source":1182,"target":1428},{"edgeType":"contains","source":7,"target":1650},{"edgeType":"contains","source":1784,"target":1794},{"edgeType":"calls","source":1829,"target":1849},{"edgeType":"contains","source":322,"target":341},{"edgeType":"calls","source":2094,"target":1828},{"edgeType":"contains","source":1041,"target":1042},{"edgeType":"contains","source":544,"target":329},{"edgeType":"calls","source":325,"target":377},{"edgeType":"contains","source":494,"target":29},{"edgeType":"calls","source":156,"target":331},{"edgeType":"calls","source":2181,"target":2038},{"edgeType":"contains","source":991,"target":1006},{"edgeType":"calls","source":1554,"target":332},{"edgeType":"calls","source":2192,"target":376},{"edgeType":"contains","source":659,"target":728},{"edgeType":"calls","source":2103,"target":1021},{"edgeType":"calls","source":1071,"target":770},{"edgeType":"contains","source":1908,"target":1915},{"edgeType":"contains","source":1901,"target":2132},{"edgeType":"contains","source":1182,"target":1427},{"edgeType":"contains","source":1710,"target":1711},{"edgeType":"calls","source":946,"target":946},{"edgeType":"contains","source":1454,"target":1455},{"edgeType":"imports","source":1808,"target":1192},{"edgeType":"contains","source":322,"target":340},{"edgeType":"calls","source":756,"target":758},{"edgeType":"imports","source":1768,"target":52},{"edgeType":"imports","source":12,"target":50},{"edgeType":"contains","source":544,"target":332},{"edgeType":"contains","source":174,"target":175},{"edgeType":"contains","source":1378,"target":1429},{"edgeType":"calls","source":1531,"target":1576},{"edgeType":"contains","source":1908,"target":1912},{"edgeType":"calls","source":2201,"target":94},{"edgeType":"contains","source":2197,"target":2202},{"edgeType":"contains","source":17,"target":21},{"edgeType":"contains","source":1053,"target":1465},{"edgeType":"contains","source":1784,"target":1792},{"edgeType":"imports","source":1808,"target":1191},{"edgeType":"contains","source":544,"target":331},{"edgeType":"calls","source":156,"target":333},{"edgeType":"contains","source":659,"target":730},{"edgeType":"calls","source":121,"target":97},{"edgeType":"contains","source":1908,"target":1913},{"edgeType":"contains","source":17,"target":20},{"edgeType":"calls","source":1531,"target":1575},{"edgeType":"calls","source":2103,"target":1019},{"edgeType":"contains","source":2197,"target":2203},{"edgeType":"contains","source":322,"target":342},{"edgeType":"contains","source":1053,"target":1464},{"edgeType":"contains","source":1358,"target":1522},{"edgeType":"calls","source":1829,"target":1850},{"edgeType":"contains","source":1784,"target":1793},{"edgeType":"calls","source":2152,"target":1086},{"edgeType":"contains","source":1132,"target":1133},{"edgeType":"calls","source":1504,"target":1086},{"edgeType":"calls","source":797,"target":805},{"edgeType":"calls","source":1554,"target":329},{"edgeType":"calls","source":156,"target":328},{"edgeType":"calls","source":1229,"target":97},{"edgeType":"contains","source":17,"target":23},{"edgeType":"calls","source":1577,"target":1201},{"edgeType":"calls","source":1489,"target":1286},{"edgeType":"contains","source":1784,"target":1798},{"edgeType":"contains","source":322,"target":345},{"edgeType":"contains","source":1677,"target":1680},{"edgeType":"imports","source":1622,"target":1670},{"edgeType":"contains","source":540,"target":722},{"edgeType":"extends","source":1582,"target":1037},{"edgeType":"calls","source":2007,"target":555},{"edgeType":"calls","source":2216,"target":156},{"edgeType":"imports","source":28,"target":610},{"edgeType":"contains","source":544,"target":333},{"edgeType":"calls","source":1554,"target":328},{"edgeType":"calls","source":156,"target":327},{"edgeType":"calls","source":1324,"target":323},{"edgeType":"contains","source":174,"target":176},{"edgeType":"extends","source":796,"target":32},{"edgeType":"contains","source":1701,"target":1201},{"edgeType":"contains","source":17,"target":22},{"edgeType":"calls","source":1554,"target":327},{"edgeType":"contains","source":1784,"target":1799},{"edgeType":"imports","source":1277,"target":1265},{"edgeType":"calls","source":2007,"target":554},{"edgeType":"contains","source":1541,"target":608},{"edgeType":"contains","source":2,"target":1811},{"edgeType":"imports","source":1622,"target":1667},{"edgeType":"calls","source":156,"target":330},{"edgeType":"calls","source":2087,"target":2038},{"edgeType":"contains","source":1140,"target":1151},{"edgeType":"extends","source":183,"target":11},{"edgeType":"calls","source":1554,"target":331},{"edgeType":"calls","source":1286,"target":1504},{"edgeType":"imports","source":1701,"target":540},{"edgeType":"calls","source":119,"target":156},{"edgeType":"contains","source":540,"target":724},{"edgeType":"contains","source":322,"target":347},{"edgeType":"contains","source":1677,"target":1678},{"edgeType":"calls","source":1431,"target":1501},{"edgeType":"contains","source":1358,"target":1525},{"edgeType":"contains","source":17,"target":25},{"edgeType":"contains","source":1784,"target":1796},{"edgeType":"contains","source":1901,"target":2133},{"edgeType":"contains","source":1053,"target":1469},{"edgeType":"imports","source":13,"target":16},{"edgeType":"imports","source":1622,"target":1666},{"edgeType":"calls","source":1554,"target":330},{"edgeType":"contains","source":1140,"target":1150},{"edgeType":"imports","source":1378,"target":774},{"edgeType":"calls","source":156,"target":329},{"edgeType":"imports","source":494,"target":696},{"edgeType":"contains","source":17,"target":24},{"edgeType":"calls","source":912,"target":941},{"edgeType":"contains","source":1854,"target":1741},{"edgeType":"calls","source":761,"target":601},{"edgeType":"contains","source":1182,"target":1433},{"edgeType":"contains","source":1901,"target":2134},{"edgeType":"contains","source":540,"target":723},{"edgeType":"contains","source":18,"target":260},{"edgeType":"contains","source":1053,"target":1472},{"edgeType":"contains","source":1569,"target":1596},{"edgeType":"calls","source":952,"target":224},{"edgeType":"contains","source":1784,"target":1802},{"edgeType":"contains","source":1041,"target":1051},{"edgeType":"calls","source":1399,"target":109},{"edgeType":"calls","source":2062,"target":1489},{"edgeType":"imports","source":13,"target":30},{"edgeType":"contains","source":1768,"target":1770},{"edgeType":"imports","source":934,"target":18},{"edgeType":"calls","source":797,"target":801},{"edgeType":"calls","source":2199,"target":2000},{"edgeType":"contains","source":1053,"target":1471},{"edgeType":"calls","source":952,"target":223},{"edgeType":"contains","source":214,"target":261},{"edgeType":"contains","source":1569,"target":1597},{"edgeType":"imports","source":1058,"target":668},{"edgeType":"imports","source":1566,"target":1567},{"edgeType":"contains","source":1140,"target":1152},{"edgeType":"imports","source":13,"target":31},{"edgeType":"contains","source":1701,"target":1998},{"edgeType":"calls","source":953,"target":721},{"edgeType":"contains","source":9,"target":10},{"edgeType":"contains","source":1768,"target":1771},{"edgeType":"contains","source":1454,"target":1463},{"edgeType":"contains","source":322,"target":348},{"edgeType":"imports","source":494,"target":975},{"edgeType":"contains","source":1701,"target":677},{"edgeType":"extends","source":166,"target":11},{"edgeType":"calls","source":1399,"target":900},{"edgeType":"contains","source":1446,"target":1447},{"edgeType":"calls","source":797,"target":800},{"edgeType":"calls","source":1283,"target":268},{"edgeType":"contains","source":1854,"target":1744},{"edgeType":"imports","source":1275,"target":16},{"edgeType":"contains","source":1784,"target":1800},{"edgeType":"calls","source":156,"target":326},{"edgeType":"contains","source":322,"target":351},{"edgeType":"extends","source":899,"target":17},{"edgeType":"calls","source":372,"target":501},{"edgeType":"calls","source":1330,"target":928},{"edgeType":"calls","source":1829,"target":786},{"edgeType":"contains","source":1049,"target":1069},{"edgeType":"calls","source":1554,"target":326},{"edgeType":"contains","source":1454,"target":1460},{"edgeType":"calls","source":767,"target":676},{"edgeType":"calls","source":1509,"target":1457},{"edgeType":"extends","source":1444,"target":32},{"edgeType":"contains","source":1569,"target":1595},{"edgeType":"contains","source":3,"target":1783},{"edgeType":"contains","source":1784,"target":1801},{"edgeType":"calls","source":231,"target":378},{"edgeType":"contains","source":1053,"target":1473},{"edgeType":"contains","source":1041,"target":1052},{"edgeType":"calls","source":1503,"target":1114},{"edgeType":"extends","source":1095,"target":18},{"edgeType":"calls","source":1829,"target":785},{"edgeType":"contains","source":1768,"target":1769},{"edgeType":"calls","source":1229,"target":94},{"edgeType":"extends","source":29,"target":32},{"edgeType":"calls","source":2159,"target":1125},{"edgeType":"contains","source":1053,"target":1476},{"edgeType":"calls","source":1716,"target":55},{"edgeType":"contains","source":1701,"target":1208},{"edgeType":"calls","source":1680,"target":1699},{"edgeType":"contains","source":1569,"target":1601},{"edgeType":"contains","source":1053,"target":1211},{"edgeType":"contains","source":29,"target":716},{"edgeType":"calls","source":1185,"target":1188},{"edgeType":"calls","source":2193,"target":1125},{"edgeType":"contains","source":1561,"target":1585},{"edgeType":"contains","source":1053,"target":1475},{"edgeType":"contains","source":1886,"target":1552},{"edgeType":"imports","source":38,"target":44},{"edgeType":"calls","source":946,"target":933},{"edgeType":"contains","source":1768,"target":1775},{"edgeType":"calls","source":1540,"target":1546},{"edgeType":"imports","source":1701,"target":1078},{"edgeType":"imports","source":1701,"target":812},{"edgeType":"contains","source":1569,"target":1598},{"edgeType":"imports","source":1701,"target":1605},{"edgeType":"calls","source":748,"target":732},{"edgeType":"contains","source":540,"target":733},{"edgeType":"contains","source":27,"target":2101},{"edgeType":"calls","source":953,"target":720},{"edgeType":"contains","source":1701,"target":1999},{"edgeType":"imports","source":591,"target":603},{"edgeType":"calls","source":2007,"target":549},{"edgeType":"calls","source":1194,"target":119},{"edgeType":"contains","source":1049,"target":1073},{"edgeType":"contains","source":1446,"target":1448},{"edgeType":"calls","source":797,"target":799},{"edgeType":"imports","source":1701,"target":1604},{"edgeType":"contains","source":32,"target":95},{"edgeType":"calls","source":912,"target":932},{"edgeType":"calls","source":953,"target":718},{"edgeType":"calls","source":953,"target":719},{"edgeType":"calls","source":777,"target":97},{"edgeType":"contains","source":1768,"target":1773},{"edgeType":"contains","source":1701,"target":2000},{"edgeType":"calls","source":797,"target":798},{"edgeType":"calls","source":1680,"target":1700},{"edgeType":"calls","source":601,"target":97},{"edgeType":"extends","source":1148,"target":794},{"edgeType":"contains","source":544,"target":578},{"edgeType":"contains","source":18,"target":235},{"edgeType":"calls","source":1504,"target":380},{"edgeType":"contains","source":32,"target":66},{"edgeType":"calls","source":635,"target":629},{"edgeType":"contains","source":27,"target":1278},{"edgeType":"calls","source":1295,"target":1309},{"edgeType":"contains","source":1827,"target":709},{"edgeType":"imports","source":494,"target":751},{"edgeType":"calls","source":939,"target":718},{"edgeType":"imports","source":214,"target":182},{"edgeType":"calls","source":1345,"target":1344},{"edgeType":"calls","source":2226,"target":1254},{"edgeType":"calls","source":2038,"target":209},{"edgeType":"contains","source":1827,"target":181},{"edgeType":"contains","source":544,"target":577},{"edgeType":"contains","source":32,"target":65},{"edgeType":"contains","source":1827,"target":710},{"edgeType":"contains","source":160,"target":325},{"edgeType":"calls","source":1540,"target":55},{"edgeType":"contains","source":2,"target":202},{"edgeType":"contains","source":27,"target":1541},{"edgeType":"imports","source":214,"target":183},{"edgeType":"calls","source":2034,"target":1125},{"edgeType":"contains","source":27,"target":1808},{"edgeType":"contains","source":1500,"target":1594},{"edgeType":"imports","source":1277,"target":1317},{"edgeType":"contains","source":1053,"target":1185},{"edgeType":"calls","source":816,"target":833},{"edgeType":"calls","source":2065,"target":1489},{"edgeType":"calls","source":1536,"target":1504},{"edgeType":"extends","source":1182,"target":1063},{"edgeType":"contains","source":544,"target":580},{"edgeType":"contains","source":610,"target":648},{"edgeType":"contains","source":371,"target":657},{"edgeType":"calls","source":635,"target":631},{"edgeType":"contains","source":9,"target":1838},{"edgeType":"contains","source":32,"target":68},{"edgeType":"calls","source":2099,"target":1489},{"edgeType":"calls","source":92,"target":23},{"edgeType":"imports","source":494,"target":749},{"edgeType":"contains","source":1379,"target":1382},{"edgeType":"calls","source":939,"target":720},{"edgeType":"calls","source":1327,"target":847},{"edgeType":"contains","source":991,"target":992},{"edgeType":"calls","source":2150,"target":1494},{"edgeType":"contains","source":18,"target":236},{"edgeType":"calls","source":109,"target":23},{"edgeType":"contains","source":544,"target":579},{"edgeType":"calls","source":1309,"target":84},{"edgeType":"calls","source":1504,"target":381},{"edgeType":"calls","source":635,"target":630},{"edgeType":"contains","source":32,"target":67},{"edgeType":"calls","source":656,"target":243},{"edgeType":"imports","source":494,"target":750},{"edgeType":"contains","source":1280,"target":1281},{"edgeType":"calls","source":939,"target":719},{"edgeType":"contains","source":1148,"target":1149},{"edgeType":"contains","source":214,"target":770},{"edgeType":"extends","source":1038,"target":1037},{"edgeType":"calls","source":971,"target":250},{"edgeType":"calls","source":1072,"target":555},{"edgeType":"contains","source":544,"target":582},{"edgeType":"calls","source":2073,"target":1499},{"edgeType":"contains","source":18,"target":239},{"edgeType":"calls","source":2044,"target":1605},{"edgeType":"contains","source":32,"target":70},{"edgeType":"contains","source":391,"target":832},{"edgeType":"calls","source":362,"target":367},{"edgeType":"contains","source":1916,"target":1918},{"edgeType":"calls","source":2148,"target":1025},{"edgeType":"contains","source":1172,"target":1197},{"edgeType":"calls","source":1130,"target":1134},{"edgeType":"contains","source":2,"target":1527},{"edgeType":"calls","source":1194,"target":1000},{"edgeType":"calls","source":1072,"target":554},{"edgeType":"contains","source":544,"target":581},{"edgeType":"contains","source":157,"target":158},{"edgeType":"contains","source":371,"target":658},{"edgeType":"contains","source":1916,"target":1919},{"edgeType":"contains","source":32,"target":69},{"edgeType":"contains","source":1172,"target":1196},{"edgeType":"contains","source":208,"target":958},{"edgeType":"contains","source":544,"target":584},{"edgeType":"calls","source":1512,"target":394},{"edgeType":"calls","source":2090,"target":1499},{"edgeType":"calls","source":808,"target":20},{"edgeType":"calls","source":2224,"target":252},{"edgeType":"contains","source":1053,"target":1189},{"edgeType":"calls","source":971,"target":252},{"edgeType":"imports","source":373,"target":1061},{"edgeType":"calls","source":1085,"target":947},{"edgeType":"calls","source":1141,"target":268},{"edgeType":"imports","source":1277,"target":1049},{"edgeType":"contains","source":157,"target":161},{"edgeType":"imports","source":989,"target":991},{"edgeType":"contains","source":32,"target":72},{"edgeType":"calls","source":2148,"target":1023},{"edgeType":"contains","source":1280,"target":1284},{"edgeType":"calls","source":797,"target":97},{"edgeType":"calls","source":763,"target":94},{"edgeType":"calls","source":676,"target":677},{"edgeType":"contains","source":1177,"target":1308},{"edgeType":"calls","source":362,"target":368},{"edgeType":"calls","source":971,"target":251},{"edgeType":"contains","source":18,"target":240},{"edgeType":"contains","source":544,"target":583},{"edgeType":"imports","source":1566,"target":1602},{"edgeType":"contains","source":1916,"target":1917},{"edgeType":"contains","source":32,"target":71},{"edgeType":"calls","source":601,"target":94},{"edgeType":"calls","source":2148,"target":1024},{"edgeType":"contains","source":1172,"target":1198},{"edgeType":"contains","source":1280,"target":1285},{"edgeType":"calls","source":1198,"target":1137},{"edgeType":"contains","source":544,"target":586},{"edgeType":"contains","source":1172,"target":1466},{"edgeType":"calls","source":736,"target":660},{"edgeType":"calls","source":2224,"target":250},{"edgeType":"contains","source":1182,"target":1420},{"edgeType":"contains","source":391,"target":836},{"edgeType":"imports","source":1823,"target":786},{"edgeType":"contains","source":1784,"target":1786},{"edgeType":"contains","source":32,"target":74},{"edgeType":"calls","source":2210,"target":156},{"edgeType":"calls","source":2148,"target":1021},{"edgeType":"contains","source":214,"target":774},{"edgeType":"contains","source":1049,"target":1050},{"edgeType":"contains","source":544,"target":585},{"edgeType":"imports","source":373,"target":812},{"edgeType":"imports","source":38,"target":362},{"edgeType":"calls","source":1345,"target":1336},{"edgeType":"calls","source":2224,"target":251},{"edgeType":"contains","source":1182,"target":1419},{"edgeType":"calls","source":1621,"target":179},{"edgeType":"imports","source":1592,"target":18},{"edgeType":"contains","source":1916,"target":1923},{"edgeType":"contains","source":9,"target":1579},{"edgeType":"contains","source":1784,"target":1787},{"edgeType":"imports","source":1823,"target":785},{"edgeType":"contains","source":157,"target":162},{"edgeType":"calls","source":967,"target":898},{"edgeType":"calls","source":461,"target":464},{"edgeType":"contains","source":7,"target":848},{"edgeType":"contains","source":32,"target":73},{"edgeType":"calls","source":2148,"target":1022},{"edgeType":"contains","source":812,"target":997},{"edgeType":"contains","source":1551,"target":1607},{"edgeType":"contains","source":544,"target":588},{"edgeType":"contains","source":540,"target":712},{"edgeType":"contains","source":1172,"target":1468},{"edgeType":"imports","source":1827,"target":131},{"edgeType":"imports","source":1551,"target":1552},{"edgeType":"calls","source":1189,"target":97},{"edgeType":"contains","source":2,"target":1534},{"edgeType":"contains","source":391,"target":838},{"edgeType":"calls","source":1584,"target":1593},{"edgeType":"calls","source":1589,"target":381},{"edgeType":"contains","source":1561,"target":1562},{"edgeType":"contains","source":32,"target":76},{"edgeType":"calls","source":2148,"target":1019},{"edgeType":"contains","source":322,"target":334},{"edgeType":"contains","source":544,"target":587},{"edgeType":"contains","source":540,"target":711},{"edgeType":"contains","source":27,"target":494},{"edgeType":"contains","source":27,"target":1551},{"edgeType":"contains","source":1172,"target":1467},{"edgeType":"calls","source":635,"target":621},{"edgeType":"contains","source":1182,"target":1421},{"edgeType":"calls","source":2064,"target":2038},{"edgeType":"calls","source":1589,"target":380},{"edgeType":"extends","source":171,"target":172},{"edgeType":"contains","source":32,"target":75},{"edgeType":"calls","source":2148,"target":1020},{"edgeType":"contains","source":1140,"target":1141},{"edgeType":"imports","source":1592,"target":543},{"edgeType":"contains","source":544,"target":590},{"edgeType":"imports","source":1231,"target":899},{"edgeType":"calls","source":362,"target":94},{"edgeType":"contains","source":1172,"target":1470},{"edgeType":"calls","source":1540,"target":573},{"edgeType":"contains","source":1701,"target":1720},{"edgeType":"contains","source":544,"target":326},{"edgeType":"contains","source":1358,"target":990},{"edgeType":"contains","source":1784,"target":1790},{"edgeType":"contains","source":1182,"target":1424},{"edgeType":"contains","source":2197,"target":2200},{"edgeType":"contains","source":1908,"target":1910},{"edgeType":"contains","source":1901,"target":2127},{"edgeType":"contains","source":32,"target":78},{"edgeType":"contains","source":322,"target":336},{"edgeType":"contains","source":503,"target":803},{"edgeType":"contains","source":544,"target":589},{"edgeType":"contains","source":540,"target":713},{"edgeType":"calls","source":1540,"target":572},{"edgeType":"contains","source":1053,"target":1194},{"edgeType":"contains","source":1784,"target":1791},{"edgeType":"contains","source":2197,"target":2201},{"edgeType":"contains","source":1908,"target":1911},{"edgeType":"imports","source":934,"target":593},{"edgeType":"calls","source":1085,"target":935},{"edgeType":"contains","source":32,"target":77},{"edgeType":"calls","source":2177,"target":119},{"edgeType":"calls","source":1621,"target":178},{"edgeType":"contains","source":544,"target":328},{"edgeType":"contains","source":1358,"target":1516},{"edgeType":"calls","source":1198,"target":1135},{"edgeType":"contains","source":659,"target":727},{"edgeType":"calls","source":1540,"target":575},{"edgeType":"contains","source":2197,"target":2198},{"edgeType":"contains","source":1784,"target":1788},{"edgeType":"imports","source":373,"target":540},{"edgeType":"calls","source":1319,"target":26},{"edgeType":"calls","source":362,"target":97},{"edgeType":"extends","source":1385,"target":1386},{"edgeType":"contains","source":322,"target":339},{"edgeType":"contains","source":1429,"target":1430},{"edgeType":"calls","source":601,"target":614},{"edgeType":"calls","source":261,"target":55},{"edgeType":"calls","source":1540,"target":574},{"edgeType":"contains","source":544,"target":327},{"edgeType":"contains","source":991,"target":1004},{"edgeType":"contains","source":1784,"target":1789},{"edgeType":"calls","source":2159,"target":146},{"edgeType":"contains","source":1182,"target":1425},{"edgeType":"contains","source":2197,"target":2199},{"edgeType":"contains","source":1398,"target":1599},{"edgeType":"contains","source":1908,"target":1909},{"edgeType":"calls","source":1283,"target":84},{"edgeType":"contains","source":1823,"target":1901},{"edgeType":"contains","source":812,"target":1003},{"edgeType":"extends","source":1262,"target":708},{"edgeType":"imports","source":494,"target":754},{"edgeType":"calls","source":635,"target":645},{"edgeType":"contains","source":1386,"target":1414},{"edgeType":"calls","source":816,"target":55},{"edgeType":"contains","source":591,"target":954},{"edgeType":"imports","source":373,"target":786},{"edgeType":"contains","source":1278,"target":1591},{"edgeType":"calls","source":660,"target":134},{"edgeType":"calls","source":676,"target":695},{"edgeType":"contains","source":1182,"target":1131},{"edgeType":"imports","source":214,"target":166},{"edgeType":"calls","source":1393,"target":1195},{"edgeType":"calls","source":969,"target":861},{"edgeType":"contains","source":610,"target":893},{"edgeType":"contains","source":14,"target":79},{"edgeType":"contains","source":13,"target":110},{"edgeType":"contains","source":1356,"target":759},{"edgeType":"calls","source":882,"target":652},{"edgeType":"imports","source":1622,"target":914},{"edgeType":"contains","source":1579,"target":717},{"edgeType":"contains","source":1552,"target":1554},{"edgeType":"calls","source":1313,"target":1032},{"edgeType":"contains","source":1443,"target":2026},{"edgeType":"contains","source":1386,"target":1415},{"edgeType":"calls","source":1399,"target":1272},{"edgeType":"calls","source":635,"target":644},{"edgeType":"contains","source":848,"target":914},{"edgeType":"imports","source":494,"target":736},{"edgeType":"calls","source":2182,"target":785},{"edgeType":"contains","source":1279,"target":1297},{"edgeType":"calls","source":660,"target":133},{"edgeType":"contains","source":1878,"target":1755},{"edgeType":"contains","source":1901,"target":2099},{"edgeType":"calls","source":84,"target":20},{"edgeType":"imports","source":28,"target":912},{"edgeType":"contains","source":1742,"target":1743},{"edgeType":"calls","source":831,"target":382},{"edgeType":"contains","source":1477,"target":1766},{"edgeType":"calls","source":1676,"target":1673},{"edgeType":"calls","source":635,"target":647},{"edgeType":"calls","source":2150,"target":2038},{"edgeType":"calls","source":1269,"target":20},{"edgeType":"contains","source":213,"target":254},{"edgeType":"contains","source":1386,"target":1412},{"edgeType":"contains","source":29,"target":673},{"edgeType":"contains","source":1901,"target":2096},{"edgeType":"calls","source":967,"target":133},{"edgeType":"contains","source":544,"target":563},{"edgeType":"imports","source":494,"target":1261},{"edgeType":"imports","source":1047,"target":766},{"edgeType":"calls","source":738,"target":97},{"edgeType":"calls","source":635,"target":646},{"edgeType":"imports","source":373,"target":785},{"edgeType":"calls","source":1291,"target":394},{"edgeType":"contains","source":1386,"target":1413},{"edgeType":"calls","source":660,"target":135},{"edgeType":"calls","source":676,"target":696},{"edgeType":"extends","source":465,"target":18},{"edgeType":"contains","source":13,"target":111},{"edgeType":"contains","source":1901,"target":2097},{"edgeType":"imports","source":1566,"target":1590},{"edgeType":"contains","source":29,"target":672},{"edgeType":"calls","source":2133,"target":2038},{"edgeType":"contains","source":1182,"target":1396},{"edgeType":"extends","source":806,"target":17},{"edgeType":"contains","source":717,"target":748},{"edgeType":"imports","source":494,"target":1262},{"edgeType":"calls","source":41,"target":34},{"edgeType":"contains","source":468,"target":543},{"edgeType":"extends","source":1337,"target":1265},{"edgeType":"calls","source":1505,"target":97},{"edgeType":"imports","source":494,"target":1259},{"edgeType":"calls","source":1229,"target":1254},{"edgeType":"imports","source":373,"target":518},{"edgeType":"imports","source":1231,"target":81},{"edgeType":"contains","source":1899,"target":1900},{"edgeType":"contains","source":503,"target":1043},{"edgeType":"contains","source":14,"target":83},{"edgeType":"contains","source":29,"target":675},{"edgeType":"calls","source":1152,"target":205},{"edgeType":"extends","source":1826,"target":905},{"edgeType":"contains","source":1742,"target":1746},{"edgeType":"contains","source":1387,"target":1388},{"edgeType":"contains","source":544,"target":565},{"edgeType":"contains","source":468,"target":542},{"edgeType":"imports","source":494,"target":1260},{"edgeType":"contains","source":1852,"target":1772},{"edgeType":"contains","source":1442,"target":1533},{"edgeType":"calls","source":2139,"target":264},{"edgeType":"calls","source":935,"target":853},{"edgeType":"calls","source":1680,"target":220},{"edgeType":"contains","source":29,"target":674},{"edgeType":"imports","source":1566,"target":1588},{"edgeType":"contains","source":1742,"target":1747},{"edgeType":"calls","source":911,"target":276},{"edgeType":"contains","source":544,"target":564},{"edgeType":"contains","source":1387,"target":1389},{"edgeType":"contains","source":1901,"target":2103},{"edgeType":"contains","source":1559,"target":17},{"edgeType":"contains","source":7,"target":1623},{"edgeType":"contains","source":1386,"target":1416},{"edgeType":"contains","source":468,"target":545},{"edgeType":"contains","source":391,"target":818},{"edgeType":"calls","source":635,"target":643},{"edgeType":"contains","source":1279,"target":1298},{"edgeType":"contains","source":1901,"target":2100},{"edgeType":"contains","source":591,"target":960},{"edgeType":"calls","source":816,"target":846},{"edgeType":"contains","source":1182,"target":1401},{"edgeType":"calls","source":1504,"target":394},{"edgeType":"contains","source":544,"target":567},{"edgeType":"contains","source":1477,"target":1767},{"edgeType":"extends","source":1583,"target":1037},{"edgeType":"contains","source":1386,"target":1417},{"edgeType":"calls","source":2097,"target":1828},{"edgeType":"calls","source":1461,"target":1462},{"edgeType":"contains","source":717,"target":753},{"edgeType":"calls","source":635,"target":642},{"edgeType":"calls","source":2043,"target":1125},{"edgeType":"calls","source":797,"target":377},{"edgeType":"calls","source":1152,"target":206},{"edgeType":"contains","source":29,"target":676},{"edgeType":"calls","source":1085,"target":169},{"edgeType":"extends","source":167,"target":11},{"edgeType":"contains","source":544,"target":566},{"edgeType":"contains","source":7,"target":1622},{"edgeType":"calls","source":759,"target":762},{"edgeType":"imports","source":1823,"target":1826},{"edgeType":"contains","source":9,"target":1827},{"edgeType":"calls","source":2099,"target":1499},{"edgeType":"calls","source":861,"target":502},{"edgeType":"contains","source":544,"target":569},{"edgeType":"extends","source":1500,"target":1502},{"edgeType":"contains","source":591,"target":962},{"edgeType":"calls","source":734,"target":739},{"edgeType":"extends","source":371,"target":32},{"edgeType":"imports","source":1592,"target":267},{"edgeType":"calls","source":2055,"target":1540},{"edgeType":"imports","source":1275,"target":52},{"edgeType":"calls","source":364,"target":52},{"edgeType":"calls","source":1294,"target":555},{"edgeType":"calls","source":1453,"target":647},{"edgeType":"imports","source":28,"target":391},{"edgeType":"contains","source":213,"target":787},{"edgeType":"contains","source":544,"target":568},{"edgeType":"imports","source":494,"target":1008},{"edgeType":"calls","source":2191,"target":1291},{"edgeType":"calls","source":774,"target":555},{"edgeType":"contains","source":494,"target":1061},{"edgeType":"calls","source":661,"target":97},{"edgeType":"imports","source":1823,"target":1824},{"edgeType":"contains","source":848,"target":925},{"edgeType":"extends","source":710,"target":96},{"edgeType":"contains","source":32,"target":59},{"edgeType":"contains","source":544,"target":571},{"edgeType":"calls","source":792,"target":793},{"edgeType":"contains","source":13,"target":120},{"edgeType":"contains","source":1742,"target":1748},{"edgeType":"contains","source":1387,"target":1390},{"edgeType":"contains","source":1808,"target":1816},{"edgeType":"calls","source":1114,"target":1116},{"edgeType":"contains","source":1852,"target":1774},{"edgeType":"calls","source":2219,"target":156},{"edgeType":"contains","source":1279,"target":1303},{"edgeType":"calls","source":933,"target":913},{"edgeType":"calls","source":1295,"target":1319},{"edgeType":"imports","source":1827,"target":378},{"edgeType":"contains","source":544,"target":570},{"edgeType":"contains","source":540,"target":694},{"edgeType":"contains","source":494,"target":1063},{"edgeType":"contains","source":610,"target":638},{"edgeType":"contains","source":1387,"target":1391},{"edgeType":"contains","source":1386,"target":1422},{"edgeType":"calls","source":858,"target":860},{"edgeType":"contains","source":1742,"target":1749},{"edgeType":"contains","source":1901,"target":2110},{"edgeType":"calls","source":1329,"target":788},{"edgeType":"calls","source":1336,"target":571},{"edgeType":"imports","source":373,"target":1583},{"edgeType":"calls","source":1453,"target":644},{"edgeType":"calls","source":1647,"target":179},{"edgeType":"calls","source":2090,"target":2038},{"edgeType":"calls","source":362,"target":375},{"edgeType":"calls","source":882,"target":903},{"edgeType":"contains","source":32,"target":61},{"edgeType":"calls","source":882,"target":904},{"edgeType":"imports","source":208,"target":1148},{"edgeType":"contains","source":1705,"target":1844},{"edgeType":"contains","source":371,"target":651},{"edgeType":"contains","source":610,"target":641},{"edgeType":"contains","source":544,"target":573},{"edgeType":"contains","source":1172,"target":1453},{"edgeType":"contains","source":1701,"target":1704},{"edgeType":"calls","source":833,"target":837},{"edgeType":"contains","source":1379,"target":1380},{"edgeType":"calls","source":635,"target":633},{"edgeType":"imports","source":373,"target":790},{"edgeType":"imports","source":373,"target":1584},{"edgeType":"calls","source":939,"target":721},{"edgeType":"calls","source":1336,"target":570},{"edgeType":"contains","source":1901,"target":2111},{"edgeType":"calls","source":1453,"target":643},{"edgeType":"calls","source":1085,"target":952},{"edgeType":"calls","source":1647,"target":178},{"edgeType":"contains","source":32,"target":60},{"edgeType":"imports","source":1277,"target":1306},{"edgeType":"calls","source":1173,"target":1130},{"edgeType":"calls","source":635,"target":632},{"edgeType":"calls","source":1453,"target":642},{"edgeType":"contains","source":544,"target":572},{"edgeType":"calls","source":2073,"target":2038},{"edgeType":"contains","source":371,"target":650},{"edgeType":"contains","source":1379,"target":1381},{"edgeType":"calls","source":2098,"target":206},{"edgeType":"calls","source":1211,"target":1013},{"edgeType":"calls","source":1453,"target":646},{"edgeType":"contains","source":544,"target":576},{"edgeType":"calls","source":2162,"target":861},{"edgeType":"contains","source":322,"target":323},{"edgeType":"contains","source":32,"target":63},{"edgeType":"calls","source":1294,"target":554},{"edgeType":"contains","source":32,"target":64},{"edgeType":"calls","source":2133,"target":1496},{"edgeType":"contains","source":160,"target":324},{"edgeType":"contains","source":544,"target":575},{"edgeType":"contains","source":371,"target":653},{"edgeType":"calls","source":1198,"target":94},{"edgeType":"calls","source":1584,"target":1605},{"edgeType":"calls","source":774,"target":554},{"edgeType":"imports","source":373,"target":788},{"edgeType":"calls","source":2202,"target":2000},{"edgeType":"contains","source":468,"target":553},{"edgeType":"extends","source":2076,"target":32},{"edgeType":"calls","source":362,"target":376},{"edgeType":"calls","source":1329,"target":789},{"edgeType":"calls","source":1336,"target":572},{"edgeType":"contains","source":1901,"target":2109},{"edgeType":"calls","source":2098,"target":205},{"edgeType":"imports","source":373,"target":1582},{"edgeType":"calls","source":1453,"target":645},{"edgeType":"contains","source":32,"target":62},{"edgeType":"calls","source":2044,"target":1086},{"edgeType":"imports","source":373,"target":1053},{"edgeType":"contains","source":544,"target":574},{"edgeType":"contains","source":1386,"target":1426},{"edgeType":"imports","source":1477,"target":1182},{"edgeType":"calls","source":1096,"target":84},{"edgeType":"calls","source":1584,"target":1604},{"edgeType":"contains","source":1808,"target":1821},{"edgeType":"calls","source":635,"target":634},{"edgeType":"calls","source":470,"target":464},{"edgeType":"imports","source":373,"target":789},{"edgeType":"calls","source":1295,"target":1050},{"edgeType":"extends","source":1755,"target":1037},{"edgeType":"extends","source":1039,"target":1035},{"edgeType":"contains","source":13,"target":93},{"edgeType":"contains","source":2101,"target":902},{"edgeType":"calls","source":1286,"target":1291},{"edgeType":"calls","source":1319,"target":268},{"edgeType":"extends","source":1140,"target":18},{"edgeType":"extends","source":213,"target":215},{"edgeType":"contains","source":717,"target":731},{"edgeType":"calls","source":1399,"target":1488},{"edgeType":"calls","source":831,"target":333},{"edgeType":"imports","source":28,"target":167},{"edgeType":"contains","source":1808,"target":2057},{"edgeType":"contains","source":1920,"target":2021},{"edgeType":"calls","source":1042,"target":134},{"edgeType":"calls","source":738,"target":574},{"edgeType":"calls","source":2178,"target":2180},{"edgeType":"calls","source":1341,"target":643},{"edgeType":"calls","source":1336,"target":798},{"edgeType":"contains","source":28,"target":1478},{"edgeType":"imports","source":1477,"target":1495},{"edgeType":"calls","source":716,"target":726},{"edgeType":"contains","source":2,"target":1490},{"edgeType":"calls","source":2195,"target":1125},{"edgeType":"calls","source":1341,"target":642},{"edgeType":"calls","source":1319,"target":1324},{"edgeType":"calls","source":807,"target":19},{"edgeType":"calls","source":831,"target":332},{"edgeType":"calls","source":1707,"target":1188},{"edgeType":"calls","source":1399,"target":1487},{"edgeType":"calls","source":790,"target":810},{"edgeType":"contains","source":1808,"target":2058},{"edgeType":"imports","source":28,"target":168},{"edgeType":"contains","source":1886,"target":2019},{"edgeType":"calls","source":738,"target":573},{"edgeType":"calls","source":1042,"target":133},{"edgeType":"contains","source":7,"target":14},{"edgeType":"contains","source":371,"target":621},{"edgeType":"contains","source":1502,"target":1503},{"edgeType":"imports","source":1477,"target":1494},{"edgeType":"calls","source":675,"target":676},{"edgeType":"calls","source":2044,"target":786},{"edgeType":"imports","source":28,"target":958},{"edgeType":"contains","source":214,"target":735},{"edgeType":"calls","source":1338,"target":1267},{"edgeType":"contains","source":610,"target":615},{"edgeType":"extends","source":173,"target":136},{"edgeType":"calls","source":759,"target":718},{"edgeType":"calls","source":1072,"target":1056},{"edgeType":"contains","source":812,"target":959},{"edgeType":"calls","source":2150,"target":932},{"edgeType":"contains","source":1857,"target":1858},{"edgeType":"calls","source":1341,"target":645},{"edgeType":"calls","source":90,"target":52},{"edgeType":"contains","source":391,"target":797},{"edgeType":"contains","source":28,"target":1480},{"edgeType":"imports","source":1477,"target":1493},{"edgeType":"calls","source":1660,"target":269},{"edgeType":"contains","source":1398,"target":760},{"edgeType":"calls","source":2044,"target":785},{"edgeType":"contains","source":717,"target":732},{"edgeType":"imports","source":28,"target":166},{"edgeType":"contains","source":934,"target":1140},{"edgeType":"contains","source":1650,"target":1669},{"edgeType":"contains","source":3,"target":1725},{"edgeType":"contains","source":1808,"target":2056},{"edgeType":"calls","source":1042,"target":135},{"edgeType":"calls","source":738,"target":575},{"edgeType":"calls","source":1291,"target":608},{"edgeType":"calls","source":2178,"target":2179},{"edgeType":"calls","source":1341,"target":644},{"edgeType":"calls","source":1336,"target":799},{"edgeType":"contains","source":28,"target":1479},{"edgeType":"contains","source":1180,"target":1181},{"edgeType":"contains","source":213,"target":768},{"edgeType":"calls","source":831,"target":329},{"edgeType":"calls","source":1383,"target":394},{"edgeType":"contains","source":1182,"target":1383},{"edgeType":"contains","source":1808,"target":2061},{"edgeType":"contains","source":1386,"target":1402},{"edgeType":"contains","source":1901,"target":2085},{"edgeType":"contains","source":1061,"target":1170},{"edgeType":"imports","source":1477,"target":1755},{"edgeType":"contains","source":1920,"target":2025},{"edgeType":"contains","source":1564,"target":1698},{"edgeType":"calls","source":1195,"target":1201},{"edgeType":"contains","source":28,"target":1482},{"edgeType":"calls","source":797,"target":325},{"edgeType":"calls","source":831,"target":328},{"edgeType":"imports","source":1477,"target":1489},{"edgeType":"calls","source":1229,"target":146},{"edgeType":"contains","source":1586,"target":752},{"edgeType":"contains","source":214,"target":736},{"edgeType":"contains","source":1566,"target":315},{"edgeType":"calls","source":2000,"target":557},{"edgeType":"calls","source":1546,"target":97},{"edgeType":"contains","source":1386,"target":1403},{"edgeType":"contains","source":1901,"target":2086},{"edgeType":"calls","source":2181,"target":1291},{"edgeType":"calls","source":2191,"target":2038},{"edgeType":"calls","source":2132,"target":1489},{"edgeType":"calls","source":807,"target":808},{"edgeType":"calls","source":1116,"target":742},{"edgeType":"imports","source":1566,"target":52},{"edgeType":"contains","source":28,"target":1481},{"edgeType":"contains","source":610,"target":619},{"edgeType":"contains","source":28,"target":1484},{"edgeType":"contains","source":1901,"target":2083},{"edgeType":"calls","source":831,"target":331},{"edgeType":"contains","source":1854,"target":1690},{"edgeType":"contains","source":1808,"target":2059},{"edgeType":"contains","source":1857,"target":540},{"edgeType":"calls","source":2072,"target":1499},{"edgeType":"contains","source":1920,"target":2023},{"edgeType":"calls","source":1453,"target":340},{"edgeType":"contains","source":1398,"target":764},{"edgeType":"calls","source":2209,"target":156},{"edgeType":"calls","source":2211,"target":94},{"edgeType":"calls","source":1195,"target":146},{"edgeType":"extends","source":1063,"target":32},{"edgeType":"contains","source":1901,"target":2084},{"edgeType":"contains","source":213,"target":769},{"edgeType":"imports","source":1378,"target":1385},{"edgeType":"calls","source":831,"target":330},{"edgeType":"contains","source":2101,"target":905},{"edgeType":"calls","source":1054,"target":1081},{"edgeType":"contains","source":1808,"target":2060},{"edgeType":"contains","source":371,"target":628},{"edgeType":"calls","source":1499,"target":1291},{"edgeType":"contains","source":1279,"target":1283},{"edgeType":"extends","source":114,"target":118},{"edgeType":"contains","source":1920,"target":2024},{"edgeType":"contains","source":28,"target":1483},{"edgeType":"contains","source":1564,"target":1697},{"edgeType":"contains","source":213,"target":772},{"edgeType":"imports","source":8,"target":267},{"edgeType":"calls","source":661,"target":574},{"edgeType":"contains","source":899,"target":911},{"edgeType":"contains","source":1386,"target":1406},{"edgeType":"contains","source":1477,"target":1756},{"edgeType":"contains","source":1723,"target":1265},{"edgeType":"contains","source":12,"target":397},{"edgeType":"calls","source":952,"target":274},{"edgeType":"calls","source":763,"target":55},{"edgeType":"contains","source":1920,"target":2029},{"edgeType":"contains","source":1527,"target":1528},{"edgeType":"imports","source":1566,"target":1651},{"edgeType":"contains","source":38,"target":1175},{"edgeType":"contains","source":28,"target":1485},{"edgeType":"contains","source":213,"target":771},{"edgeType":"imports","source":1277,"target":1095},{"edgeType":"calls","source":1295,"target":1267},{"edgeType":"calls","source":2165,"target":1254},{"edgeType":"calls","source":661,"target":573},{"edgeType":"contains","source":1386,"target":1407},{"edgeType":"calls","source":378,"target":97},{"edgeType":"contains","source":1901,"target":2090},{"edgeType":"contains","source":591,"target":945},{"edgeType":"contains","source":12,"target":396},{"edgeType":"calls","source":952,"target":273},{"edgeType":"imports","source":494,"target":793},{"edgeType":"extends","source":1386,"target":1387},{"edgeType":"imports","source":38,"target":131},{"edgeType":"contains","source":812,"target":964},{"edgeType":"calls","source":831,"target":327},{"edgeType":"contains","source":1443,"target":2015},{"edgeType":"calls","source":2000,"target":556},{"edgeType":"contains","source":1808,"target":2063},{"edgeType":"contains","source":81,"target":109},{"edgeType":"contains","source":1386,"target":1404},{"edgeType":"contains","source":1901,"target":2087},{"edgeType":"calls","source":2097,"target":2038},{"edgeType":"contains","source":1061,"target":1176},{"edgeType":"contains","source":391,"target":805},{"edgeType":"calls","source":1291,"target":601},{"edgeType":"calls","source":1178,"target":933},{"edgeType":"calls","source":1116,"target":741},{"edgeType":"contains","source":1920,"target":2027},{"edgeType":"contains","source":1337,"target":1338},{"edgeType":"calls","source":661,"target":575},{"edgeType":"calls","source":1229,"target":1201},{"edgeType":"calls","source":831,"target":326},{"edgeType":"imports","source":1356,"target":758},{"edgeType":"contains","source":1516,"target":810},{"edgeType":"contains","source":1180,"target":1186},{"edgeType":"calls","source":90,"target":42},{"edgeType":"contains","source":503,"target":504},{"edgeType":"contains","source":1386,"target":1405},{"edgeType":"imports","source":1477,"target":1500},{"edgeType":"imports","source":214,"target":222},{"edgeType":"calls","source":2034,"target":1086},{"edgeType":"contains","source":1920,"target":2028},{"edgeType":"calls","source":1295,"target":1269},{"edgeType":"contains","source":812,"target":966},{"edgeType":"contains","source":213,"target":773},{"edgeType":"contains","source":1172,"target":1173},{"edgeType":"calls","source":1086,"target":608},{"edgeType":"contains","source":371,"target":635},{"edgeType":"contains","source":1386,"target":1410},{"edgeType":"calls","source":1291,"target":331},{"edgeType":"imports","source":1808,"target":751},{"edgeType":"contains","source":1177,"target":1282},{"edgeType":"calls","source":2226,"target":1208},{"edgeType":"calls","source":952,"target":269},{"edgeType":"calls","source":1336,"target":786},{"edgeType":"calls","source":952,"target":270},{"edgeType":"calls","source":1116,"target":206},{"edgeType":"imports","source":28,"target":172},{"edgeType":"calls","source":1056,"target":1009},{"edgeType":"contains","source":1901,"target":2094},{"edgeType":"calls","source":336,"target":339},{"edgeType":"calls","source":378,"target":94},{"edgeType":"calls","source":797,"target":318},{"edgeType":"calls","source":2165,"target":721},{"edgeType":"calls","source":1178,"target":134},{"edgeType":"contains","source":812,"target":969},{"edgeType":"imports","source":1477,"target":1499},{"edgeType":"imports","source":494,"target":788},{"edgeType":"imports","source":38,"target":391},{"edgeType":"contains","source":1477,"target":1761},{"edgeType":"contains","source":1386,"target":1411},{"edgeType":"calls","source":1291,"target":330},{"edgeType":"calls","source":1393,"target":1396},{"edgeType":"calls","source":1336,"target":785},{"edgeType":"imports","source":494,"target":789},{"edgeType":"calls","source":1116,"target":205},{"edgeType":"contains","source":1356,"target":756},{"edgeType":"imports","source":1808,"target":750},{"edgeType":"contains","source":1901,"target":2095},{"edgeType":"calls","source":1178,"target":133},{"edgeType":"calls","source":2152,"target":1125},{"edgeType":"contains","source":503,"target":1034},{"edgeType":"imports","source":1477,"target":1498},{"edgeType":"contains","source":812,"target":968},{"edgeType":"calls","source":1399,"target":1474},{"edgeType":"calls","source":1291,"target":333},{"edgeType":"imports","source":1823,"target":1605},{"edgeType":"calls","source":2148,"target":2038},{"edgeType":"calls","source":1401,"target":94},{"edgeType":"contains","source":1477,"target":1758},{"edgeType":"calls","source":763,"target":581},{"edgeType":"contains","source":2101,"target":912},{"edgeType":"contains","source":1386,"target":1408},{"edgeType":"calls","source":1676,"target":25},{"edgeType":"calls","source":952,"target":272},{"edgeType":"contains","source":1182,"target":1393},{"edgeType":"contains","source":1808,"target":2068},{"edgeType":"calls","source":1027,"target":61},{"edgeType":"calls","source":777,"target":676},{"edgeType":"imports","source":1808,"target":749},{"edgeType":"contains","source":610,"target":627},{"edgeType":"contains","source":812,"target":971},{"edgeType":"imports","source":1477,"target":1497},{"edgeType":"imports","source":214,"target":217},{"edgeType":"calls","source":2165,"target":719},{"edgeType":"calls","source":1526,"target":1504},{"edgeType":"calls","source":797,"target":320},{"edgeType":"calls","source":942,"target":52},{"edgeType":"contains","source":591,"target":951},{"edgeType":"calls","source":1173,"target":26},{"edgeType":"calls","source":1267,"target":19},{"edgeType":"contains","source":1477,"target":1759},{"edgeType":"calls","source":1294,"target":1296},{"edgeType":"calls","source":1291,"target":332},{"edgeType":"contains","source":1386,"target":1409},{"edgeType":"contains","source":371,"target":372},{"edgeType":"calls","source":952,"target":271},{"edgeType":"contains","source":1061,"target":1179},{"edgeType":"calls","source":2223,"target":2093},{"edgeType":"contains","source":1356,"target":754},{"edgeType":"calls","source":754,"target":595},{"edgeType":"contains","source":812,"target":970},{"edgeType":"imports","source":1477,"target":1496},{"edgeType":"calls","source":1178,"target":135},{"edgeType":"calls","source":2165,"target":720},{"edgeType":"contains","source":717,"target":744},{"edgeType":"contains","source":1566,"target":322},{"edgeType":"calls","source":797,"target":319},{"edgeType":"imports","source":494,"target":1032},{"edgeType":"calls","source":1198,"target":336},{"edgeType":"calls","source":912,"target":217},{"edgeType":"calls","source":964,"target":719},{"edgeType":"contains","source":371,"target":606},{"edgeType":"calls","source":1013,"target":786},{"edgeType":"contains","source":468,"target":506},{"edgeType":"calls","source":2090,"target":1489},{"edgeType":"contains","source":1901,"target":2065},{"edgeType":"contains","source":10,"target":170},{"edgeType":"contains","source":147,"target":151},{"edgeType":"calls","source":1554,"target":134},{"edgeType":"contains","source":806,"target":862},{"edgeType":"contains","source":1808,"target":2041},{"edgeType":"contains","source":1808,"target":984},{"edgeType":"calls","source":1313,"target":998},{"edgeType":"calls","source":964,"target":718},{"edgeType":"calls","source":1013,"target":785},{"edgeType":"contains","source":10,"target":168},{"edgeType":"contains","source":468,"target":505},{"edgeType":"contains","source":81,"target":82},{"edgeType":"contains","source":1901,"target":2066},{"edgeType":"calls","source":2132,"target":2038},{"edgeType":"contains","source":147,"target":150},{"edgeType":"contains","source":1182,"target":1361},{"edgeType":"calls","source":882,"target":618},{"edgeType":"calls","source":1554,"target":133},{"edgeType":"calls","source":2042,"target":1125},{"edgeType":"contains","source":812,"target":939},{"edgeType":"calls","source":918,"target":823},{"edgeType":"calls","source":2224,"target":2093},{"edgeType":"calls","source":363,"target":323},{"edgeType":"imports","source":1808,"target":994},{"edgeType":"contains","source":1262,"target":1263},{"edgeType":"calls","source":964,"target":721},{"edgeType":"contains","source":1920,"target":2002},{"edgeType":"calls","source":1540,"target":571},{"edgeType":"contains","source":202,"target":1355},{"edgeType":"contains","source":1623,"target":1696},{"edgeType":"contains","source":10,"target":172},{"edgeType":"contains","source":1808,"target":2039},{"edgeType":"imports","source":208,"target":1175},{"edgeType":"imports","source":1701,"target":610},{"edgeType":"contains","source":1443,"target":141},{"edgeType":"contains","source":540,"target":654},{"edgeType":"contains","source":7,"target":1586},{"edgeType":"imports","source":1808,"target":993},{"edgeType":"contains","source":806,"target":864},{"edgeType":"calls","source":964,"target":720},{"edgeType":"contains","source":1920,"target":2003},{"edgeType":"calls","source":1540,"target":570},{"edgeType":"calls","source":968,"target":860},{"edgeType":"contains","source":202,"target":1354},{"edgeType":"imports","source":934,"target":1132},{"edgeType":"contains","source":10,"target":171},{"edgeType":"calls","source":737,"target":94},{"edgeType":"contains","source":147,"target":152},{"edgeType":"contains","source":1500,"target":1546},{"edgeType":"contains","source":1901,"target":2064},{"edgeType":"calls","source":1554,"target":135},{"edgeType":"calls","source":1431,"target":1570},{"edgeType":"contains","source":806,"target":863},{"edgeType":"calls","source":2156,"target":1024},{"edgeType":"contains","source":7,"target":1852},{"edgeType":"contains","source":208,"target":1435},{"edgeType":"calls","source":1584,"target":786},{"edgeType":"contains","source":1920,"target":2008},{"edgeType":"calls","source":1680,"target":188},{"edgeType":"calls","source":1401,"target":909},{"edgeType":"calls","source":1923,"target":1904},{"edgeType":"contains","source":10,"target":174},{"edgeType":"contains","source":806,"target":866},{"edgeType":"contains","source":1808,"target":2045},{"edgeType":"calls","source":2074,"target":394},{"edgeType":"contains","source":1262,"target":1266},{"edgeType":"contains","source":1901,"target":2069},{"edgeType":"contains","source":540,"target":656},{"edgeType":"contains","source":2046,"target":1010},{"edgeType":"calls","source":2156,"target":1025},{"edgeType":"calls","source":2096,"target":1828},{"edgeType":"contains","source":812,"target":944},{"edgeType":"contains","source":208,"target":1434},{"edgeType":"contains","source":7,"target":1058},{"edgeType":"calls","source":1584,"target":785},{"edgeType":"contains","source":1920,"target":2009},{"edgeType":"calls","source":2191,"target":1526},{"edgeType":"contains","source":1650,"target":1659},{"edgeType":"contains","source":10,"target":173},{"edgeType":"imports","source":1823,"target":1053},{"edgeType":"contains","source":540,"target":655},{"edgeType":"contains","source":806,"target":865},{"edgeType":"contains","source":1129,"target":1162},{"edgeType":"calls","source":734,"target":712},{"edgeType":"calls","source":1460,"target":1461},{"edgeType":"contains","source":208,"target":1437},{"edgeType":"calls","source":467,"target":797},{"edgeType":"contains","source":1920,"target":2006},{"edgeType":"calls","source":2156,"target":1022},{"edgeType":"calls","source":2193,"target":932},{"edgeType":"contains","source":7,"target":1854},{"edgeType":"imports","source":1047,"target":267},{"edgeType":"calls","source":1399,"target":974},{"edgeType":"contains","source":1140,"target":1349},{"edgeType":"calls","source":378,"target":121},{"edgeType":"calls","source":940,"target":933},{"edgeType":"contains","source":1901,"target":2067},{"edgeType":"contains","source":1807,"target":1810},{"edgeType":"contains","source":806,"target":868},{"edgeType":"calls","source":1085,"target":137},{"edgeType":"contains","source":81,"target":89},{"edgeType":"contains","source":371,"target":612},{"edgeType":"contains","source":1262,"target":1264},{"edgeType":"extends","source":1446,"target":32},{"edgeType":"contains","source":1650,"target":1656},{"edgeType":"contains","source":208,"target":1436},{"edgeType":"calls","source":2156,"target":1023},{"edgeType":"calls","source":1003,"target":564},{"edgeType":"contains","source":2046,"target":1008},{"edgeType":"calls","source":1399,"target":973},{"edgeType":"imports","source":373,"target":1607},{"edgeType":"calls","source":2007,"target":94},{"edgeType":"calls","source":1680,"target":189},{"edgeType":"calls","source":1399,"target":972},{"edgeType":"contains","source":81,"target":88},{"edgeType":"calls","source":2190,"target":1291},{"edgeType":"calls","source":1923,"target":1905},{"edgeType":"contains","source":806,"target":867},{"edgeType":"imports","source":494,"target":498},{"edgeType":"contains","source":1061,"target":1154},{"edgeType":"contains","source":1584,"target":1589},{"edgeType":"contains","source":7,"target":1592},{"edgeType":"contains","source":1129,"target":1164},{"edgeType":"calls","source":2156,"target":1020},{"edgeType":"calls","source":2189,"target":1054},{"edgeType":"imports","source":1047,"target":17},{"edgeType":"contains","source":1920,"target":2012},{"edgeType":"calls","source":918,"target":551},{"edgeType":"calls","source":694,"target":625},{"edgeType":"contains","source":1140,"target":1351},{"edgeType":"contains","source":1500,"target":1291},{"edgeType":"contains","source":1864,"target":1899},{"edgeType":"contains","source":1901,"target":2073},{"edgeType":"contains","source":13,"target":85},{"edgeType":"contains","source":468,"target":778},{"edgeType":"contains","source":897,"target":956},{"edgeType":"contains","source":208,"target":1438},{"edgeType":"calls","source":2218,"target":156},{"edgeType":"calls","source":2156,"target":1021},{"edgeType":"contains","source":1920,"target":2013},{"edgeType":"calls","source":1276,"target":23},{"edgeType":"imports","source":1808,"target":209},{"edgeType":"imports","source":1356,"target":1008},{"edgeType":"calls","source":918,"target":550},{"edgeType":"calls","source":2043,"target":1086},{"edgeType":"imports","source":38,"target":114},{"edgeType":"calls","source":694,"target":624},{"edgeType":"calls","source":2139,"target":2077},{"edgeType":"imports","source":1784,"target":1746},{"edgeType":"contains","source":1140,"target":1350},{"edgeType":"contains","source":1650,"target":1663},{"edgeType":"calls","source":1295,"target":1283},{"edgeType":"contains","source":10,"target":177},{"edgeType":"contains","source":9,"target":208},{"edgeType":"calls","source":677,"target":94},{"edgeType":"contains","source":81,"target":90},{"edgeType":"contains","source":1901,"target":2074},{"edgeType":"contains","source":806,"target":869},{"edgeType":"contains","source":897,"target":955},{"edgeType":"contains","source":373,"target":1608},{"edgeType":"contains","source":1129,"target":1166},{"edgeType":"contains","source":806,"target":873},{"edgeType":"contains","source":208,"target":1177},{"edgeType":"contains","source":29,"target":119},{"edgeType":"calls","source":1292,"target":323},{"edgeType":"contains","source":1920,"target":2010},{"edgeType":"calls","source":1193,"target":220},{"edgeType":"calls","source":2203,"target":2204},{"edgeType":"contains","source":13,"target":87},{"edgeType":"contains","source":1808,"target":2047},{"edgeType":"calls","source":2055,"target":2038},{"edgeType":"contains","source":1901,"target":2071},{"edgeType":"contains","source":1061,"target":1159},{"edgeType":"contains","source":1129,"target":1165},{"edgeType":"calls","source":2156,"target":1019},{"edgeType":"contains","source":812,"target":950},{"edgeType":"contains","source":1920,"target":2011},{"edgeType":"contains","source":213,"target":757},{"edgeType":"calls","source":1393,"target":97},{"edgeType":"calls","source":2203,"target":2205},{"edgeType":"contains","source":7,"target":8},{"edgeType":"contains","source":540,"target":661},{"edgeType":"contains","source":1140,"target":1352},{"edgeType":"calls","source":1062,"target":52},{"edgeType":"calls","source":2072,"target":2038},{"edgeType":"contains","source":897,"target":957},{"edgeType":"contains","source":373,"target":1610},{"edgeType":"contains","source":13,"target":86},{"edgeType":"contains","source":1901,"target":2072},{"edgeType":"contains","source":1808,"target":2053},{"edgeType":"imports","source":1827,"target":145},{"edgeType":"calls","source":946,"target":736},{"edgeType":"contains","source":812,"target":953},{"edgeType":"contains","source":1808,"target":1260},{"edgeType":"calls","source":2064,"target":1489},{"edgeType":"calls","source":1856,"target":1859},{"edgeType":"contains","source":3,"target":927},{"edgeType":"calls","source":1338,"target":1269},{"edgeType":"calls","source":759,"target":720},{"edgeType":"calls","source":1086,"target":624},{"edgeType":"contains","source":1920,"target":2017},{"edgeType":"calls","source":2096,"target":1291},{"edgeType":"calls","source":1660,"target":271},{"edgeType":"calls","source":2201,"target":2000},{"edgeType":"contains","source":10,"target":182},{"edgeType":"contains","source":14,"target":58},{"edgeType":"calls","source":1341,"target":647},{"edgeType":"contains","source":1808,"target":2054},{"edgeType":"calls","source":1453,"target":1138},{"edgeType":"contains","source":1129,"target":1167},{"edgeType":"calls","source":965,"target":146},{"edgeType":"contains","source":1808,"target":1261},{"edgeType":"calls","source":759,"target":719},{"edgeType":"calls","source":1341,"target":646},{"edgeType":"imports","source":1808,"target":1262},{"edgeType":"contains","source":468,"target":517},{"edgeType":"calls","source":1660,"target":270},{"edgeType":"imports","source":494,"target":1037},{"edgeType":"contains","source":373,"target":1612},{"edgeType":"imports","source":1808,"target":998},{"edgeType":"contains","source":1808,"target":2051},{"edgeType":"calls","source":1660,"target":274},{"edgeType":"contains","source":610,"target":611},{"edgeType":"contains","source":1920,"target":2014},{"edgeType":"imports","source":38,"target":371},{"edgeType":"calls","source":847,"target":901},{"edgeType":"extends","source":1090,"target":1037},{"edgeType":"calls","source":2178,"target":1125},{"edgeType":"contains","source":7,"target":13},{"edgeType":"contains","source":1650,"target":1664},{"edgeType":"calls","source":1193,"target":1273},{"edgeType":"calls","source":1829,"target":55},{"edgeType":"calls","source":1660,"target":273},{"edgeType":"contains","source":468,"target":520},{"edgeType":"contains","source":1852,"target":1745},{"edgeType":"contains","source":1808,"target":2052},{"edgeType":"contains","source":899,"target":900},{"edgeType":"calls","source":1138,"target":335},{"edgeType":"calls","source":466,"target":26},{"edgeType":"contains","source":1808,"target":1259},{"edgeType":"contains","source":1443,"target":2004},{"edgeType":"contains","source":7,"target":804},{"edgeType":"calls","source":1431,"target":1029},{"edgeType":"calls","source":1086,"target":625},{"edgeType":"contains","source":1920,"target":2016},{"edgeType":"contains","source":7,"target":12},{"edgeType":"calls","source":759,"target":721},{"edgeType":"calls","source":946,"target":209},{"edgeType":"calls","source":1660,"target":272},{"edgeType":"contains","source":1444,"target":1445},{"edgeType":"contains","source":10,"target":183},{"edgeType":"contains","source":9,"target":214},{"edgeType":"calls","source":818,"target":571},{"edgeType":"calls","source":1000,"target":1007},{"edgeType":"calls","source":1187,"target":231},{"edgeType":"imports","source":28,"target":993},{"edgeType":"contains","source":1864,"target":2138},{"edgeType":"contains","source":12,"target":355},{"edgeType":"contains","source":540,"target":636},{"edgeType":"contains","source":518,"target":525},{"edgeType":"imports","source":1378,"target":897},{"edgeType":"calls","source":394,"target":502},{"edgeType":"extends","source":1728,"target":322},{"edgeType":"contains","source":1920,"target":1988},{"edgeType":"contains","source":1443,"target":1712},{"edgeType":"imports","source":38,"target":155},{"edgeType":"calls","source":1329,"target":1114},{"edgeType":"calls","source":26,"target":19},{"edgeType":"calls","source":736,"target":735},{"edgeType":"calls","source":935,"target":908},{"edgeType":"calls","source":1187,"target":230},{"edgeType":"calls","source":818,"target":570},{"edgeType":"contains","source":12,"target":354},{"edgeType":"imports","source":28,"target":994},{"edgeType":"contains","source":1864,"target":2139},{"edgeType":"contains","source":7,"target":1566},{"edgeType":"contains","source":29,"target":884},{"edgeType":"calls","source":971,"target":55},{"edgeType":"contains","source":1129,"target":1138},{"edgeType":"imports","source":1751,"target":1753},{"edgeType":"contains","source":518,"target":524},{"edgeType":"contains","source":494,"target":1268},{"edgeType":"contains","source":1701,"target":1114},{"edgeType":"contains","source":96,"target":129},{"edgeType":"contains","source":1920,"target":1989},{"edgeType":"calls","source":762,"target":721},{"edgeType":"contains","source":794,"target":952},{"edgeType":"contains","source":1534,"target":1535},{"edgeType":"contains","source":1500,"target":1532},{"edgeType":"calls","source":744,"target":753},{"edgeType":"extends","source":157,"target":136},{"edgeType":"calls","source":1662,"target":571},{"edgeType":"contains","source":1808,"target":2022},{"edgeType":"contains","source":518,"target":527},{"edgeType":"contains","source":494,"target":1271},{"edgeType":"calls","source":847,"target":731},{"edgeType":"calls","source":175,"target":158},{"edgeType":"contains","source":12,"target":357},{"edgeType":"calls","source":1173,"target":1196},{"edgeType":"contains","source":100,"target":800},{"edgeType":"calls","source":502,"target":327},{"edgeType":"contains","source":1360,"target":1376},{"edgeType":"calls","source":1296,"target":554},{"edgeType":"calls","source":1141,"target":1130},{"edgeType":"calls","source":1494,"target":1286},{"edgeType":"contains","source":96,"target":132},{"edgeType":"contains","source":1920,"target":1986},{"edgeType":"contains","source":1897,"target":1906},{"edgeType":"calls","source":2109,"target":2038},{"edgeType":"contains","source":1443,"target":1446},{"edgeType":"contains","source":897,"target":933},{"edgeType":"calls","source":1662,"target":570},{"edgeType":"contains","source":518,"target":526},{"edgeType":"contains","source":494,"target":1270},{"edgeType":"calls","source":818,"target":572},{"edgeType":"contains","source":1500,"target":1529},{"edgeType":"contains","source":1864,"target":2137},{"edgeType":"contains","source":29,"target":886},{"edgeType":"contains","source":12,"target":356},{"edgeType":"calls","source":2033,"target":1489},{"edgeType":"contains","source":540,"target":637},{"edgeType":"contains","source":1360,"target":1377},{"edgeType":"calls","source":502,"target":326},{"edgeType":"imports","source":1701,"target":394},{"edgeType":"calls","source":759,"target":816},{"edgeType":"contains","source":1920,"target":1987},{"edgeType":"contains","source":27,"target":1477},{"edgeType":"contains","source":468,"target":490},{"edgeType":"contains","source":1897,"target":1907},{"edgeType":"contains","source":1864,"target":2142},{"edgeType":"contains","source":10,"target":157},{"edgeType":"contains","source":518,"target":529},{"edgeType":"calls","source":753,"target":732},{"edgeType":"calls","source":2084,"target":1489},{"edgeType":"contains","source":12,"target":359},{"edgeType":"contains","source":29,"target":889},{"edgeType":"contains","source":3,"target":1695},{"edgeType":"calls","source":1548,"target":135},{"edgeType":"contains","source":1443,"target":1716},{"edgeType":"contains","source":7,"target":1836},{"edgeType":"contains","source":937,"target":1017},{"edgeType":"extends","source":897,"target":717},{"edgeType":"extends","source":49,"target":51},{"edgeType":"calls","source":2160,"target":1512},{"edgeType":"contains","source":1920,"target":1992},{"edgeType":"imports","source":1622,"target":1257},{"edgeType":"calls","source":1194,"target":274},{"edgeType":"contains","source":518,"target":528},{"edgeType":"contains","source":1864,"target":2143},{"edgeType":"calls","source":1540,"target":1439},{"edgeType":"extends","source":1908,"target":32},{"edgeType":"contains","source":12,"target":358},{"edgeType":"contains","source":29,"target":888},{"edgeType":"calls","source":1548,"target":134},{"edgeType":"calls","source":1185,"target":1081},{"edgeType":"imports","source":1827,"target":186},{"edgeType":"calls","source":853,"target":274},{"edgeType":"calls","source":2148,"target":2149},{"edgeType":"extends","source":1547,"target":1446},{"edgeType":"imports","source":989,"target":267},{"edgeType":"calls","source":1194,"target":273},{"edgeType":"contains","source":1920,"target":1993},{"edgeType":"contains","source":1500,"target":1536},{"edgeType":"calls","source":2159,"target":1540},{"edgeType":"contains","source":1864,"target":2140},{"edgeType":"contains","source":213,"target":737},{"edgeType":"contains","source":518,"target":531},{"edgeType":"contains","source":1061,"target":1139},{"edgeType":"calls","source":762,"target":719},{"edgeType":"contains","source":898,"target":907},{"edgeType":"calls","source":2160,"target":2038},{"edgeType":"contains","source":12,"target":361},{"edgeType":"contains","source":29,"target":891},{"edgeType":"calls","source":1538,"target":1504},{"edgeType":"imports","source":468,"target":31},{"edgeType":"contains","source":81,"target":337},{"edgeType":"contains","source":1920,"target":1990},{"edgeType":"calls","source":762,"target":720},{"edgeType":"calls","source":1322,"target":1329},{"edgeType":"calls","source":770,"target":736},{"edgeType":"calls","source":1329,"target":55},{"edgeType":"calls","source":612,"target":613},{"edgeType":"contains","source":1864,"target":2141},{"edgeType":"contains","source":518,"target":530},{"edgeType":"contains","source":494,"target":1274},{"edgeType":"contains","source":29,"target":890},{"edgeType":"calls","source":762,"target":718},{"edgeType":"contains","source":1701,"target":1116},{"edgeType":"calls","source":898,"target":731},{"edgeType":"contains","source":1920,"target":1991},{"edgeType":"calls","source":1503,"target":209},{"edgeType":"contains","source":7,"target":1044},{"edgeType":"calls","source":744,"target":748},{"edgeType":"calls","source":1133,"target":52},{"edgeType":"calls","source":1322,"target":1323},{"edgeType":"contains","source":7,"target":1047},{"edgeType":"calls","source":1194,"target":270},{"edgeType":"contains","source":518,"target":533},{"edgeType":"contains","source":1808,"target":975},{"edgeType":"contains","source":1864,"target":2146},{"edgeType":"imports","source":1808,"target":788},{"edgeType":"imports","source":494,"target":1090},{"edgeType":"contains","source":897,"target":940},{"edgeType":"contains","source":29,"target":894},{"edgeType":"calls","source":2176,"target":1540},{"edgeType":"imports","source":1231,"target":1233},{"edgeType":"contains","source":155,"target":159},{"edgeType":"calls","source":853,"target":271},{"edgeType":"contains","source":1278,"target":1286},{"edgeType":"calls","source":970,"target":872},{"edgeType":"contains","source":1920,"target":1996},{"edgeType":"calls","source":2150,"target":1025},{"edgeType":"contains","source":1500,"target":1539},{"edgeType":"calls","source":1194,"target":269},{"edgeType":"contains","source":14,"target":36},{"edgeType":"contains","source":518,"target":532},{"edgeType":"extends","source":1516,"target":32},{"edgeType":"calls","source":25,"target":40},{"edgeType":"calls","source":1493,"target":249},{"edgeType":"calls","source":2074,"target":472},{"edgeType":"calls","source":792,"target":839},{"edgeType":"calls","source":1829,"target":932},{"edgeType":"imports","source":494,"target":1091},{"edgeType":"calls","source":1056,"target":55},{"edgeType":"imports","source":1579,"target":751},{"edgeType":"contains","source":29,"target":892},{"edgeType":"calls","source":853,"target":270},{"edgeType":"calls","source":836,"target":797},{"edgeType":"calls","source":231,"target":261},{"edgeType":"contains","source":1500,"target":1540},{"edgeType":"contains","source":1920,"target":1997},{"edgeType":"calls","source":738,"target":135},{"edgeType":"imports","source":38,"target":164},{"edgeType":"contains","source":1047,"target":1049},{"edgeType":"contains","source":1379,"target":795},{"edgeType":"calls","source":1611,"target":1615},{"edgeType":"contains","source":14,"target":39},{"edgeType":"imports","source":1808,"target":786},{"edgeType":"calls","source":1548,"target":133},{"edgeType":"imports","source":28,"target":999},{"edgeType":"contains","source":1864,"target":2144},{"edgeType":"imports","source":1579,"target":750},{"edgeType":"contains","source":1061,"target":1143},{"edgeType":"imports","source":373,"target":610},{"edgeType":"calls","source":853,"target":273},{"edgeType":"contains","source":1443,"target":1454},{"edgeType":"calls","source":2040,"target":1000},{"edgeType":"contains","source":518,"target":535},{"edgeType":"calls","source":2150,"target":1023},{"edgeType":"calls","source":1194,"target":272},{"edgeType":"calls","source":1201,"target":55},{"edgeType":"contains","source":1500,"target":1537},{"edgeType":"contains","source":213,"target":740},{"edgeType":"calls","source":752,"target":760},{"edgeType":"calls","source":1194,"target":271},{"edgeType":"calls","source":2222,"target":641},{"edgeType":"imports","source":1579,"target":749},{"edgeType":"imports","source":1808,"target":785},{"edgeType":"calls","source":1611,"target":1614},{"edgeType":"imports","source":28,"target":1000},{"edgeType":"contains","source":1901,"target":2055},{"edgeType":"contains","source":1864,"target":2145},{"edgeType":"calls","source":2194,"target":2038},{"edgeType":"contains","source":29,"target":895},{"edgeType":"contains","source":1061,"target":1142},{"edgeType":"contains","source":1063,"target":1080},{"edgeType":"calls","source":853,"target":272},{"edgeType":"calls","source":1291,"target":1492},{"edgeType":"contains","source":518,"target":534},{"edgeType":"calls","source":2150,"target":1024},{"edgeType":"contains","source":1500,"target":1538},{"edgeType":"contains","source":1920,"target":1995},{"edgeType":"contains","source":468,"target":766},{"edgeType":"contains","source":9,"target":2046},{"edgeType":"calls","source":838,"target":467},{"edgeType":"calls","source":1520,"target":1523},{"edgeType":"imports","source":373,"target":608},{"edgeType":"contains","source":1443,"target":139},{"edgeType":"imports","source":1622,"target":1265},{"edgeType":"contains","source":81,"target":343},{"edgeType":"contains","source":518,"target":537},{"edgeType":"calls","source":2212,"target":156},{"edgeType":"calls","source":2214,"target":94},{"edgeType":"calls","source":1357,"target":762},{"edgeType":"calls","source":2150,"target":1021},{"edgeType":"contains","source":468,"target":765},{"edgeType":"calls","source":1548,"target":1447},{"edgeType":"calls","source":628,"target":634},{"edgeType":"imports","source":1586,"target":1587},{"edgeType":"imports","source":494,"target":1087},{"edgeType":"imports","source":28,"target":998},{"edgeType":"imports","source":2101,"target":1213},{"edgeType":"calls","source":853,"target":265},{"edgeType":"contains","source":1443,"target":1461},{"edgeType":"calls","source":1439,"target":333},{"edgeType":"calls","source":2037,"target":1086},{"edgeType":"contains","source":1901,"target":2062},{"edgeType":"contains","source":1443,"target":140},{"edgeType":"imports","source":214,"target":253},{"edgeType":"contains","source":518,"target":536},{"edgeType":"calls","source":2150,"target":1022},{"edgeType":"contains","source":208,"target":897},{"edgeType":"calls","source":254,"target":601},{"edgeType":"calls","source":2083,"target":2038},{"edgeType":"calls","source":1493,"target":248},{"edgeType":"contains","source":1140,"target":1341},{"edgeType":"calls","source":816,"target":94},{"edgeType":"imports","source":2101,"target":1212},{"edgeType":"contains","source":10,"target":167},{"edgeType":"calls","source":853,"target":269},{"edgeType":"contains","source":147,"target":149},{"edgeType":"contains","source":1061,"target":1147},{"edgeType":"contains","source":897,"target":946},{"edgeType":"calls","source":738,"target":134},{"edgeType":"imports","source":1378,"target":371},{"edgeType":"contains","source":518,"target":539},{"edgeType":"imports","source":1808,"target":518},{"edgeType":"calls","source":1074,"target":23},{"edgeType":"calls","source":2150,"target":1019},{"edgeType":"extends","source":118,"target":35},{"edgeType":"contains","source":1358,"target":394},{"edgeType":"contains","source":38,"target":1148},{"edgeType":"contains","source":659,"target":660},{"edgeType":"extends","source":1670,"target":17},{"edgeType":"contains","source":10,"target":166},{"edgeType":"contains","source":147,"target":148},{"edgeType":"calls","source":2066,"target":2038},{"edgeType":"contains","source":81,"target":344},{"edgeType":"calls","source":738,"target":133},{"edgeType":"contains","source":1443,"target":138},{"edgeType":"contains","source":518,"target":538},{"edgeType":"calls","source":2150,"target":1020},{"edgeType":"imports","source":1823,"target":1091},{"edgeType":"calls","source":2084,"target":2038},{"edgeType":"contains","source":848,"target":849},{"edgeType":"contains","source":1920,"target":1971},{"edgeType":"imports","source":1701,"target":1702},{"edgeType":"contains","source":10,"target":136},{"edgeType":"contains","source":498,"target":600},{"edgeType":"contains","source":2,"target":1442},{"edgeType":"contains","source":1182,"target":1329},{"edgeType":"calls","source":1193,"target":61},{"edgeType":"imports","source":1726,"target":663},{"edgeType":"calls","source":1082,"target":331},{"edgeType":"contains","source":392,"target":450},{"edgeType":"contains","source":1901,"target":2032},{"edgeType":"contains","source":1808,"target":1215},{"edgeType":"contains","source":1233,"target":1335},{"edgeType":"contains","source":1360,"target":1362},{"edgeType":"contains","source":1920,"target":1972},{"edgeType":"calls","source":2055,"target":1086},{"edgeType":"imports","source":1823,"target":1090},{"edgeType":"calls","source":1399,"target":1338},{"edgeType":"contains","source":591,"target":623},{"edgeType":"contains","source":498,"target":599},{"edgeType":"calls","source":1401,"target":1012},{"edgeType":"contains","source":113,"target":114},{"edgeType":"contains","source":1901,"target":2033},{"edgeType":"contains","source":1623,"target":1666},{"edgeType":"calls","source":2067,"target":2038},{"edgeType":"contains","source":392,"target":449},{"edgeType":"calls","source":1082,"target":330},{"edgeType":"contains","source":591,"target":622},{"edgeType":"contains","source":1592,"target":1306},{"edgeType":"contains","source":1231,"target":1398},{"edgeType":"contains","source":113,"target":378},{"edgeType":"contains","source":1360,"target":1363},{"edgeType":"calls","source":2038,"target":555},{"edgeType":"extends","source":794,"target":717},{"edgeType":"contains","source":1705,"target":1763},{"edgeType":"contains","source":1920,"target":1969},{"edgeType":"calls","source":1455,"target":134},{"edgeType":"calls","source":119,"target":61},{"edgeType":"calls","source":1152,"target":277},{"edgeType":"calls","source":1082,"target":333},{"edgeType":"calls","source":1050,"target":268},{"edgeType":"contains","source":14,"target":15},{"edgeType":"contains","source":13,"target":46},{"edgeType":"contains","source":1901,"target":2030},{"edgeType":"imports","source":28,"target":975},{"edgeType":"calls","source":1345,"target":372},{"edgeType":"contains","source":1500,"target":1512},{"edgeType":"imports","source":373,"target":1114},{"edgeType":"contains","source":1808,"target":1213},{"edgeType":"contains","source":8,"target":465},{"edgeType":"contains","source":29,"target":871},{"edgeType":"contains","source":1768,"target":1132},{"edgeType":"imports","source":1827,"target":171},{"edgeType":"contains","source":1705,"target":1764},{"edgeType":"calls","source":1009,"target":1010},{"edgeType":"calls","source":1716,"target":234},{"edgeType":"contains","source":1920,"target":1970},{"edgeType":"calls","source":1455,"target":133},{"edgeType":"contains","source":13,"target":45},{"edgeType":"calls","source":1082,"target":332},{"edgeType":"extends","source":1753,"target":322},{"edgeType":"contains","source":1901,"target":2031},{"edgeType":"calls","source":753,"target":754},{"edgeType":"contains","source":29,"target":870},{"edgeType":"contains","source":213,"target":715},{"edgeType":"contains","source":1808,"target":1214},{"edgeType":"calls","source":1716,"target":233},{"edgeType":"contains","source":814,"target":850},{"edgeType":"contains","source":1920,"target":1975},{"edgeType":"contains","source":391,"target":1014},{"edgeType":"extends","source":1429,"target":1386},{"edgeType":"calls","source":1649,"target":720},{"edgeType":"contains","source":13,"target":48},{"edgeType":"imports","source":214,"target":227},{"edgeType":"calls","source":1856,"target":1702},{"edgeType":"contains","source":610,"target":831},{"edgeType":"calls","source":950,"target":720},{"edgeType":"calls","source":753,"target":749},{"edgeType":"calls","source":757,"target":625},{"edgeType":"calls","source":1512,"target":1531},{"edgeType":"calls","source":621,"target":613},{"edgeType":"calls","source":1082,"target":327},{"edgeType":"contains","source":1360,"target":1366},{"edgeType":"calls","source":861,"target":572},{"edgeType":"calls","source":1851,"target":271},{"edgeType":"calls","source":660,"target":725},{"edgeType":"contains","source":3,"target":885},{"edgeType":"contains","source":1500,"target":1519},{"edgeType":"calls","source":1851,"target":1856},{"edgeType":"contains","source":1920,"target":1976},{"edgeType":"calls","source":1649,"target":719},{"edgeType":"imports","source":214,"target":229},{"edgeType":"imports","source":1808,"target":1815},{"edgeType":"contains","source":13,"target":47},{"edgeType":"imports","source":214,"target":228},{"edgeType":"calls","source":950,"target":719},{"edgeType":"calls","source":2177,"target":738},{"edgeType":"calls","source":757,"target":624},{"edgeType":"calls","source":1082,"target":326},{"edgeType":"contains","source":1360,"target":1367},{"edgeType":"calls","source":861,"target":571},{"edgeType":"extends","source":1916,"target":32},{"edgeType":"contains","source":1901,"target":2037},{"edgeType":"contains","source":1566,"target":1059},{"edgeType":"calls","source":1851,"target":270},{"edgeType":"imports","source":1808,"target":1814},{"edgeType":"contains","source":1920,"target":1973},{"edgeType":"calls","source":1851,"target":274},{"edgeType":"calls","source":1282,"target":736},{"edgeType":"calls","source":2152,"target":2038},{"edgeType":"calls","source":614,"target":567},{"edgeType":"contains","source":1901,"target":2034},{"edgeType":"imports","source":214,"target":225},{"edgeType":"calls","source":740,"target":97},{"edgeType":"contains","source":1623,"target":1667},{"edgeType":"calls","source":1082,"target":329},{"edgeType":"contains","source":12,"target":81},{"edgeType":"contains","source":113,"target":121},{"edgeType":"contains","source":1360,"target":1364},{"edgeType":"calls","source":753,"target":751},{"edgeType":"calls","source":943,"target":146},{"edgeType":"contains","source":541,"target":594},{"edgeType":"calls","source":2038,"target":554},{"edgeType":"imports","source":468,"target":16},{"edgeType":"imports","source":1808,"target":1813},{"edgeType":"calls","source":1851,"target":273},{"edgeType":"contains","source":1920,"target":1974},{"edgeType":"contains","source":3,"target":887},{"edgeType":"imports","source":1356,"target":498},{"edgeType":"calls","source":1649,"target":721},{"edgeType":"calls","source":753,"target":750},{"edgeType":"calls","source":950,"target":721},{"edgeType":"calls","source":1082,"target":328},{"edgeType":"contains","source":1360,"target":1365},{"edgeType":"imports","source":1566,"target":1652},{"edgeType":"contains","source":391,"target":1015},{"edgeType":"calls","source":1851,"target":272},{"edgeType":"extends","source":1568,"target":1569},{"edgeType":"contains","source":7,"target":1559},{"edgeType":"contains","source":1061,"target":1125},{"edgeType":"calls","source":1210,"target":55},{"edgeType":"imports","source":1726,"target":1728},{"edgeType":"contains","source":814,"target":854},{"edgeType":"contains","source":1920,"target":1979},{"edgeType":"calls","source":2189,"target":625},{"edgeType":"calls","source":2067,"target":1499},{"edgeType":"calls","source":1716,"target":224},{"edgeType":"calls","source":507,"target":179},{"edgeType":"contains","source":1360,"target":1370},{"edgeType":"calls","source":2159,"target":1291},{"edgeType":"contains","source":1061,"target":1124},{"edgeType":"calls","source":1054,"target":134},{"edgeType":"contains","source":1129,"target":1130},{"edgeType":"calls","source":1345,"target":97},{"edgeType":"calls","source":2110,"target":1489},{"edgeType":"calls","source":736,"target":742},{"edgeType":"contains","source":1920,"target":1980},{"edgeType":"contains","source":1500,"target":1523},{"edgeType":"calls","source":1716,"target":223},{"edgeType":"calls","source":92,"target":94},{"edgeType":"calls","source":507,"target":178},{"edgeType":"extends","source":160,"target":32},{"edgeType":"contains","source":1360,"target":1371},{"edgeType":"calls","source":502,"target":333},{"edgeType":"imports","source":468,"target":30},{"edgeType":"calls","source":1345,"target":1418},{"edgeType":"calls","source":1054,"target":133},{"edgeType":"contains","source":1063,"target":1065},{"edgeType":"calls","source":1649,"target":718},{"edgeType":"calls","source":2218,"target":252},{"edgeType":"contains","source":12,"target":349},{"edgeType":"calls","source":121,"target":519},{"edgeType":"imports","source":214,"target":238},{"edgeType":"calls","source":1455,"target":1447},{"edgeType":"contains","source":814,"target":856},{"edgeType":"contains","source":812,"target":918},{"edgeType":"contains","source":1920,"target":1977},{"edgeType":"contains","source":848,"target":859},{"edgeType":"contains","source":1500,"target":1520},{"edgeType":"calls","source":612,"target":97},{"edgeType":"calls","source":950,"target":718},{"edgeType":"calls","source":1512,"target":472},{"edgeType":"contains","source":1360,"target":1368},{"edgeType":"calls","source":861,"target":570},{"edgeType":"contains","source":13,"target":54},{"edgeType":"extends","source":1379,"target":32},{"edgeType":"contains","source":794,"target":947},{"edgeType":"calls","source":1851,"target":269},{"edgeType":"calls","source":2099,"target":1828},{"edgeType":"imports","source":1827,"target":708},{"edgeType":"extends","source":1183,"target":32},{"edgeType":"imports","source":8,"target":18},{"edgeType":"contains","source":96,"target":122},{"edgeType":"calls","source":2176,"target":1291},{"edgeType":"imports","source":38,"target":145},{"edgeType":"calls","source":323,"target":334},{"edgeType":"contains","source":814,"target":855},{"edgeType":"contains","source":1920,"target":1978},{"edgeType":"calls","source":2127,"target":1489},{"edgeType":"calls","source":2189,"target":624},{"edgeType":"contains","source":1360,"target":1369},{"edgeType":"contains","source":373,"target":1577},{"edgeType":"contains","source":13,"target":53},{"edgeType":"calls","source":1504,"target":1512},{"edgeType":"contains","source":1674,"target":1677},{"edgeType":"calls","source":1054,"target":135},{"edgeType":"imports","source":28,"target":984},{"edgeType":"contains","source":1500,"target":1526},{"edgeType":"calls","source":946,"target":571},{"edgeType":"calls","source":2218,"target":250},{"edgeType":"contains","source":7,"target":1563},{"edgeType":"contains","source":1129,"target":1135},{"edgeType":"contains","source":518,"target":521},{"edgeType":"extends","source":1524,"target":35},{"edgeType":"calls","source":502,"target":329},{"edgeType":"contains","source":1920,"target":1983},{"edgeType":"contains","source":392,"target":463},{"edgeType":"calls","source":1345,"target":94},{"edgeType":"contains","source":1701,"target":845},{"edgeType":"extends","source":1091,"target":1037},{"edgeType":"contains","source":1897,"target":1904},{"edgeType":"contains","source":1360,"target":1374},{"edgeType":"calls","source":92,"target":91},{"edgeType":"contains","source":1920,"target":1984},{"edgeType":"contains","source":1443,"target":1708},{"edgeType":"contains","source":13,"target":56},{"edgeType":"contains","source":1901,"target":2044},{"edgeType":"contains","source":1443,"target":1444},{"edgeType":"contains","source":12,"target":350},{"edgeType":"calls","source":946,"target":570},{"edgeType":"contains","source":1129,"target":1134},{"edgeType":"calls","source":2218,"target":251},{"edgeType":"imports","source":214,"target":237},{"edgeType":"calls","source":502,"target":328},{"edgeType":"contains","source":814,"target":857},{"edgeType":"contains","source":1177,"target":967},{"edgeType":"calls","source":1662,"target":572},{"edgeType":"calls","source":1296,"target":555},{"edgeType":"contains","source":1360,"target":1375},{"edgeType":"contains","source":1701,"target":1903},{"edgeType":"contains","source":1920,"target":1985},{"edgeType":"imports","source":1378,"target":1148},{"edgeType":"contains","source":1443,"target":1709},{"edgeType":"contains","source":794,"target":948},{"edgeType":"contains","source":1897,"target":1905},{"edgeType":"contains","source":1556,"target":1902},{"edgeType":"extends","source":1040,"target":1035},{"edgeType":"contains","source":12,"target":353},{"edgeType":"contains","source":29,"target":883},{"edgeType":"calls","source":502,"target":331},{"edgeType":"contains","source":1920,"target":1981},{"edgeType":"calls","source":2055,"target":1605},{"edgeType":"contains","source":1129,"target":1137},{"edgeType":"contains","source":937,"target":1011},{"edgeType":"contains","source":96,"target":127},{"edgeType":"contains","source":518,"target":523},{"edgeType":"contains","source":1360,"target":1372},{"edgeType":"calls","source":990,"target":795},{"edgeType":"calls","source":1065,"target":55},{"edgeType":"calls","source":502,"target":332},{"edgeType":"contains","source":1901,"target":2042},{"edgeType":"calls","source":882,"target":179},{"edgeType":"calls","source":736,"target":741},{"edgeType":"calls","source":501,"target":97},{"edgeType":"calls","source":946,"target":572},{"edgeType":"contains","source":12,"target":352},{"edgeType":"contains","source":1129,"target":1136},{"edgeType":"calls","source":2221,"target":156},{"edgeType":"calls","source":502,"target":330},{"edgeType":"imports","source":1701,"target":1703},{"edgeType":"contains","source":1920,"target":1982},{"edgeType":"calls","source":231,"target":275},{"edgeType":"contains","source":518,"target":522},{"edgeType":"contains","source":1360,"target":1373},{"edgeType":"extends","source":183,"target":118},{"edgeType":"calls","source":1720,"target":97},{"edgeType":"calls","source":882,"target":178},{"edgeType":"contains","source":897,"target":928},{"edgeType":"contains","source":1901,"target":2043},{"edgeType":"contains","source":13,"target":57},{"edgeType":"contains","source":804,"target":875},{"edgeType":"contains","source":806,"target":813},{"edgeType":"contains","source":392,"target":434},{"edgeType":"contains","source":814,"target":829},{"edgeType":"calls","source":1537,"target":1504},{"edgeType":"contains","source":96,"target":97},{"edgeType":"calls","source":1149,"target":847},{"edgeType":"calls","source":1686,"target":320},{"edgeType":"imports","source":494,"target":1114},{"edgeType":"contains","source":1920,"target":1955},{"edgeType":"calls","source":1184,"target":555},{"edgeType":"contains","source":1836,"target":1652},{"edgeType":"contains","source":804,"target":874},{"edgeType":"calls","source":2203,"target":2000},{"edgeType":"calls","source":1999,"target":394},{"edgeType":"contains","source":392,"target":433},{"edgeType":"contains","source":897,"target":898},{"edgeType":"imports","source":896,"target":17},{"edgeType":"contains","source":814,"target":828},{"edgeType":"imports","source":38,"target":717},{"edgeType":"calls","source":943,"target":97},{"edgeType":"contains","source":1677,"target":1825},{"edgeType":"imports","source":1808,"target":1605},{"edgeType":"contains","source":1920,"target":1956},{"edgeType":"calls","source":2100,"target":1494},{"edgeType":"contains","source":186,"target":212},{"edgeType":"calls","source":1686,"target":319},{"edgeType":"calls","source":467,"target":55},{"edgeType":"contains","source":540,"target":601},{"edgeType":"calls","source":1184,"target":554},{"edgeType":"imports","source":214,"target":282},{"edgeType":"contains","source":1053,"target":1082},{"edgeType":"imports","source":373,"target":374},{"edgeType":"contains","source":392,"target":436},{"edgeType":"contains","source":391,"target":467},{"edgeType":"contains","source":1087,"target":1089},{"edgeType":"imports","source":1823,"target":610},{"edgeType":"contains","source":1899,"target":2075},{"edgeType":"calls","source":2083,"target":1489},{"edgeType":"contains","source":1677,"target":1822},{"edgeType":"contains","source":804,"target":877},{"edgeType":"contains","source":391,"target":995},{"edgeType":"contains","source":96,"target":99},{"edgeType":"imports","source":1808,"target":1604},{"edgeType":"contains","source":1920,"target":1953},{"edgeType":"imports","source":38,"target":186},{"edgeType":"calls","source":2182,"target":799},{"edgeType":"contains","source":1148,"target":1311},{"edgeType":"contains","source":392,"target":435},{"edgeType":"contains","source":804,"target":876},{"edgeType":"contains","source":1836,"target":1651},{"edgeType":"contains","source":96,"target":98},{"edgeType":"contains","source":814,"target":830},{"edgeType":"contains","source":1920,"target":1954},{"edgeType":"extends","source":2206,"target":1920},{"edgeType":"contains","source":392,"target":438},{"edgeType":"extends","source":1132,"target":1129},{"edgeType":"contains","source":1148,"target":1314},{"edgeType":"contains","source":253,"target":255},{"edgeType":"calls","source":1720,"target":55},{"edgeType":"contains","source":804,"target":879},{"edgeType":"calls","source":1131,"target":608},{"edgeType":"contains","source":1920,"target":1959},{"edgeType":"contains","source":96,"target":101},{"edgeType":"contains","source":214,"target":142},{"edgeType":"calls","source":2162,"target":624},{"edgeType":"calls","source":1056,"target":555},{"edgeType":"calls","source":1381,"target":786},{"edgeType":"calls","source":1296,"target":1307},{"edgeType":"contains","source":392,"target":437},{"edgeType":"calls","source":1421,"target":1131},{"edgeType":"calls","source":1004,"target":52},{"edgeType":"contains","source":804,"target":878},{"edgeType":"calls","source":231,"target":232},{"edgeType":"imports","source":1827,"target":219},{"edgeType":"contains","source":391,"target":996},{"edgeType":"calls","source":2162,"target":625},{"edgeType":"calls","source":1056,"target":554},{"edgeType":"calls","source":1381,"target":785},{"edgeType":"calls","source":2182,"target":798},{"edgeType":"contains","source":1920,"target":1960},{"edgeType":"imports","source":214,"target":278},{"edgeType":"imports","source":38,"target":710},{"edgeType":"calls","source":1152,"target":224},{"edgeType":"contains","source":13,"target":33},{"edgeType":"contains","source":610,"target":817},{"edgeType":"contains","source":1148,"target":1316},{"edgeType":"contains","source":253,"target":257},{"edgeType":"contains","source":804,"target":881},{"edgeType":"calls","source":1345,"target":55},{"edgeType":"contains","source":1095,"target":1109},{"edgeType":"calls","source":1399,"target":1287},{"edgeType":"contains","source":1920,"target":1957},{"edgeType":"contains","source":468,"target":462},{"edgeType":"calls","source":1686,"target":318},{"edgeType":"contains","source":4,"target":1898},{"edgeType":"calls","source":2152,"target":932},{"edgeType":"contains","source":392,"target":440},{"edgeType":"calls","source":743,"target":747},{"edgeType":"contains","source":392,"target":439},{"edgeType":"contains","source":7,"target":1275},{"edgeType":"calls","source":1152,"target":223},{"edgeType":"calls","source":2162,"target":94},{"edgeType":"contains","source":804,"target":880},{"edgeType":"calls","source":1383,"target":990},{"edgeType":"contains","source":1095,"target":1108},{"edgeType":"contains","source":253,"target":256},{"edgeType":"contains","source":1808,"target":1994},{"edgeType":"contains","source":1920,"target":1958},{"edgeType":"calls","source":466,"target":84},{"edgeType":"extends","source":812,"target":215},{"edgeType":"contains","source":1358,"target":882},{"edgeType":"imports","source":494,"target":845},{"edgeType":"calls","source":1393,"target":1208},{"edgeType":"calls","source":743,"target":746},{"edgeType":"calls","source":1393,"target":146},{"edgeType":"calls","source":1676,"target":1679},{"edgeType":"calls","source":2213,"target":624},{"edgeType":"calls","source":1082,"target":274},{"edgeType":"contains","source":391,"target":1002},{"edgeType":"calls","source":502,"target":548},{"edgeType":"imports","source":28,"target":1035},{"edgeType":"imports","source":1674,"target":219},{"edgeType":"calls","source":2098,"target":224},{"edgeType":"contains","source":7,"target":1807},{"edgeType":"calls","source":163,"target":223},{"edgeType":"contains","source":2,"target":112},{"edgeType":"contains","source":392,"target":442},{"edgeType":"contains","source":1920,"target":1963},{"edgeType":"calls","source":502,"target":547},{"edgeType":"calls","source":726,"target":738},{"edgeType":"contains","source":7,"target":1277},{"edgeType":"calls","source":2213,"target":625},{"edgeType":"contains","source":253,"target":258},{"edgeType":"contains","source":391,"target":1001},{"edgeType":"calls","source":1082,"target":273},{"edgeType":"calls","source":2193,"target":2038},{"edgeType":"contains","source":1808,"target":2001},{"edgeType":"calls","source":41,"target":40},{"edgeType":"imports","source":373,"target":1439},{"edgeType":"calls","source":2098,"target":223},{"edgeType":"extends","source":508,"target":392},{"edgeType":"contains","source":1920,"target":1964},{"edgeType":"calls","source":2134,"target":1489},{"edgeType":"calls","source":1296,"target":1302},{"edgeType":"contains","source":392,"target":441},{"edgeType":"calls","source":378,"target":692},{"edgeType":"contains","source":1677,"target":1830},{"edgeType":"contains","source":1044,"target":52},{"edgeType":"imports","source":1477,"target":1038},{"edgeType":"contains","source":7,"target":1280},{"edgeType":"contains","source":13,"target":37},{"edgeType":"contains","source":1753,"target":1324},{"edgeType":"calls","source":2074,"target":1499},{"edgeType":"contains","source":1148,"target":1320},{"edgeType":"contains","source":1182,"target":1323},{"edgeType":"contains","source":1443,"target":1685},{"edgeType":"imports","source":28,"target":1032},{"edgeType":"contains","source":392,"target":444},{"edgeType":"contains","source":1920,"target":1961},{"edgeType":"imports","source":208,"target":209},{"edgeType":"calls","source":2211,"target":156},{"edgeType":"calls","source":842,"target":845},{"edgeType":"contains","source":1500,"target":1504},{"edgeType":"imports","source":1477,"target":1037},{"edgeType":"calls","source":312,"target":97},{"edgeType":"contains","source":1182,"target":1322},{"edgeType":"contains","source":1443,"target":1686},{"edgeType":"contains","source":1095,"target":1112},{"edgeType":"calls","source":163,"target":224},{"edgeType":"contains","source":392,"target":443},{"edgeType":"contains","source":1920,"target":1962},{"edgeType":"calls","source":1141,"target":26},{"edgeType":"contains","source":498,"target":596},{"edgeType":"calls","source":1676,"target":1675},{"edgeType":"imports","source":208,"target":736},{"edgeType":"calls","source":1082,"target":269},{"edgeType":"calls","source":378,"target":689},{"edgeType":"contains","source":1701,"target":1093},{"edgeType":"contains","source":392,"target":446},{"edgeType":"calls","source":967,"target":135},{"edgeType":"contains","source":1920,"target":1967},{"edgeType":"imports","source":1723,"target":17},{"edgeType":"calls","source":1308,"target":134},{"edgeType":"contains","source":540,"target":614},{"edgeType":"contains","source":1705,"target":1762},{"edgeType":"calls","source":1399,"target":1276},{"edgeType":"contains","source":1920,"target":1968},{"edgeType":"calls","source":378,"target":687},{"edgeType":"contains","source":202,"target":1843},{"edgeType":"contains","source":391,"target":1005},{"edgeType":"contains","source":498,"target":595},{"edgeType":"imports","source":1477,"target":1035},{"edgeType":"calls","source":1555,"target":1461},{"edgeType":"calls","source":2161,"target":119},{"edgeType":"calls","source":2065,"target":2038},{"edgeType":"contains","source":1808,"target":2005},{"edgeType":"calls","source":1085,"target":175},{"edgeType":"calls","source":1308,"target":133},{"edgeType":"contains","source":392,"target":445},{"edgeType":"calls","source":967,"target":134},{"edgeType":"calls","source":378,"target":688},{"edgeType":"contains","source":1808,"target":1212},{"edgeType":"calls","source":911,"target":20},{"edgeType":"calls","source":1754,"target":52},{"edgeType":"calls","source":1526,"target":249},{"edgeType":"contains","source":468,"target":471},{"edgeType":"calls","source":2182,"target":786},{"edgeType":"contains","source":794,"target":935},{"edgeType":"contains","source":498,"target":598},{"edgeType":"calls","source":2055,"target":1291},{"edgeType":"calls","source":1082,"target":272},{"edgeType":"calls","source":1082,"target":271},{"edgeType":"calls","source":2099,"target":2038},{"edgeType":"calls","source":774,"target":835},{"edgeType":"contains","source":392,"target":448},{"edgeType":"contains","source":897,"target":913},{"edgeType":"contains","source":1920,"target":1965},{"edgeType":"imports","source":214,"target":283},{"edgeType":"calls","source":378,"target":691},{"edgeType":"imports","source":1058,"target":1075},{"edgeType":"imports","source":1058,"target":18},{"edgeType":"calls","source":1345,"target":838},{"edgeType":"calls","source":1526,"target":248},{"edgeType":"contains","source":498,"target":597},{"edgeType":"calls","source":82,"target":88},{"edgeType":"contains","source":1768,"target":1921},{"edgeType":"contains","source":1705,"target":1760},{"edgeType":"calls","source":184,"target":97},{"edgeType":"calls","source":1082,"target":270},{"edgeType":"contains","source":591,"target":620},{"edgeType":"calls","source":774,"target":834},{"edgeType":"contains","source":1768,"target":1129},{"edgeType":"contains","source":392,"target":447},{"edgeType":"calls","source":378,"target":690},{"edgeType":"contains","source":1920,"target":1966},{"edgeType":"calls","source":1308,"target":135},{"edgeType":"contains","source":1823,"target":2038},{"edgeType":"calls","source":254,"target":333},{"edgeType":"contains","source":1701,"target":1856},{"edgeType":"imports","source":38,"target":171},{"edgeType":"contains","source":186,"target":197},{"edgeType":"imports","source":1586,"target":1600},{"edgeType":"contains","source":391,"target":977},{"edgeType":"contains","source":7,"target":989},{"edgeType":"contains","source":1920,"target":1938},{"edgeType":"imports","source":214,"target":265},{"edgeType":"calls","source":940,"target":736},{"edgeType":"contains","source":112,"target":113},{"edgeType":"calls","source":2100,"target":2038},{"edgeType":"calls","source":628,"target":631},{"edgeType":"calls","source":1529,"target":1504},{"edgeType":"imports","source":1701,"target":1207},{"edgeType":"calls","source":1194,"target":790},{"edgeType":"calls","source":1439,"target":330},{"edgeType":"extends","source":2197,"target":1920},{"edgeType":"calls","source":254,"target":332},{"edgeType":"contains","source":186,"target":196},{"edgeType":"imports","source":38,"target":172},{"edgeType":"contains","source":1920,"target":1939},{"edgeType":"contains","source":1278,"target":1493},{"edgeType":"calls","source":158,"target":137},{"edgeType":"imports","source":214,"target":266},{"edgeType":"contains","source":796,"target":841},{"edgeType":"contains","source":10,"target":102},{"edgeType":"contains","source":1049,"target":1190},{"edgeType":"contains","source":38,"target":1348},{"edgeType":"calls","source":109,"target":335},{"edgeType":"imports","source":1378,"target":1177},{"edgeType":"contains","source":1053,"target":1330},{"edgeType":"calls","source":628,"target":630},{"edgeType":"imports","source":1701,"target":1206},{"edgeType":"calls","source":1439,"target":329},{"edgeType":"contains","source":7,"target":1784},{"edgeType":"contains","source":186,"target":199},{"edgeType":"calls","source":1198,"target":1197},{"edgeType":"contains","source":1920,"target":1936},{"edgeType":"contains","source":1443,"target":1660},{"edgeType":"contains","source":1043,"target":1115},{"edgeType":"imports","source":214,"target":263},{"edgeType":"calls","source":2175,"target":1032},{"edgeType":"calls","source":853,"target":264},{"edgeType":"calls","source":1287,"target":23},{"edgeType":"imports","source":1566,"target":1690},{"edgeType":"contains","source":796,"target":844},{"edgeType":"extends","source":136,"target":11},{"edgeType":"calls","source":628,"target":633},{"edgeType":"calls","source":2213,"target":383},{"edgeType":"calls","source":1208,"target":94},{"edgeType":"calls","source":1439,"target":332},{"edgeType":"calls","source":1611,"target":1606},{"edgeType":"contains","source":186,"target":198},{"edgeType":"contains","source":1920,"target":1937},{"edgeType":"imports","source":38,"target":170},{"edgeType":"contains","source":391,"target":978},{"edgeType":"calls","source":1295,"target":1096},{"edgeType":"contains","source":796,"target":843},{"edgeType":"imports","source":214,"target":264},{"edgeType":"calls","source":1393,"target":1229},{"edgeType":"calls","source":25,"target":34},{"edgeType":"contains","source":794,"target":1169},{"edgeType":"calls","source":1851,"target":1829},{"edgeType":"calls","source":800,"target":321},{"edgeType":"calls","source":628,"target":632},{"edgeType":"calls","source":1439,"target":331},{"edgeType":"contains","source":186,"target":201},{"edgeType":"imports","source":38,"target":167},{"edgeType":"contains","source":391,"target":981},{"edgeType":"calls","source":958,"target":967},{"edgeType":"calls","source":966,"target":719},{"edgeType":"contains","source":1920,"target":1942},{"edgeType":"calls","source":853,"target":258},{"edgeType":"contains","source":1278,"target":1496},{"edgeType":"contains","source":1043,"target":1117},{"edgeType":"contains","source":27,"target":373},{"edgeType":"calls","source":324,"target":273},{"edgeType":"calls","source":254,"target":329},{"edgeType":"contains","source":214,"target":919},{"edgeType":"contains","source":1838,"target":1842},{"edgeType":"contains","source":794,"target":908},{"edgeType":"contains","source":1705,"target":1737},{"edgeType":"calls","source":1439,"target":326},{"edgeType":"contains","source":1516,"target":1518},{"edgeType":"contains","source":283,"target":365},{"edgeType":"imports","source":38,"target":168},{"edgeType":"contains","source":186,"target":200},{"edgeType":"contains","source":1500,"target":1750},{"edgeType":"calls","source":1074,"target":277},{"edgeType":"calls","source":966,"target":718},{"edgeType":"contains","source":1920,"target":1943},{"edgeType":"contains","source":100,"target":1016},{"edgeType":"contains","source":1278,"target":1497},{"edgeType":"calls","source":1647,"target":1012},{"edgeType":"calls","source":324,"target":272},{"edgeType":"imports","source":214,"target":262},{"edgeType":"calls","source":254,"target":328},{"edgeType":"contains","source":214,"target":917},{"edgeType":"calls","source":501,"target":335},{"edgeType":"calls","source":2044,"target":1125},{"edgeType":"calls","source":2134,"target":2038},{"edgeType":"calls","source":466,"target":363},{"edgeType":"calls","source":1032,"target":786},{"edgeType":"contains","source":1061,"target":1086},{"edgeType":"calls","source":2156,"target":2149},{"edgeType":"contains","source":794,"target":1171},{"edgeType":"contains","source":1920,"target":1940},{"edgeType":"imports","source":38,"target":165},{"edgeType":"contains","source":371,"target":546},{"edgeType":"imports","source":1579,"target":754},{"edgeType":"contains","source":814,"target":819},{"edgeType":"calls","source":966,"target":721},{"edgeType":"extends","source":2102,"target":902},{"edgeType":"contains","source":1278,"target":1494},{"edgeType":"calls","source":254,"target":331},{"edgeType":"imports","source":494,"target":1092},{"edgeType":"contains","source":214,"target":921},{"edgeType":"contains","source":1043,"target":1119},{"edgeType":"calls","source":2219,"target":721},{"edgeType":"contains","source":1838,"target":1840},{"edgeType":"contains","source":1148,"target":1299},{"edgeType":"contains","source":145,"target":153},{"edgeType":"contains","source":794,"target":1174},{"edgeType":"calls","source":1439,"target":328},{"edgeType":"calls","source":1319,"target":84},{"edgeType":"contains","source":391,"target":983},{"edgeType":"contains","source":29,"target":842},{"edgeType":"calls","source":628,"target":629},{"edgeType":"contains","source":3,"target":591},{"edgeType":"calls","source":1074,"target":279},{"edgeType":"contains","source":1920,"target":1941},{"edgeType":"calls","source":952,"target":97},{"edgeType":"calls","source":324,"target":274},{"edgeType":"imports","source":989,"target":18},{"edgeType":"contains","source":391,"target":982},{"edgeType":"imports","source":38,"target":166},{"edgeType":"imports","source":494,"target":1093},{"edgeType":"calls","source":966,"target":720},{"edgeType":"calls","source":1272,"target":1276},{"edgeType":"extends","source":174,"target":157},{"edgeType":"contains","source":100,"target":1018},{"edgeType":"contains","source":1278,"target":1495},{"edgeType":"contains","source":1701,"target":1859},{"edgeType":"contains","source":1043,"target":1118},{"edgeType":"contains","source":214,"target":920},{"edgeType":"calls","source":254,"target":330},{"edgeType":"calls","source":1720,"target":601},{"edgeType":"imports","source":1808,"target":789},{"edgeType":"contains","source":1275,"target":267},{"edgeType":"imports","source":214,"target":259},{"edgeType":"contains","source":1838,"target":1841},{"edgeType":"calls","source":2032,"target":1499},{"edgeType":"contains","source":213,"target":686},{"edgeType":"contains","source":1053,"target":1336},{"edgeType":"extends","source":102,"target":11},{"edgeType":"contains","source":1516,"target":1517},{"edgeType":"calls","source":1439,"target":327},{"edgeType":"contains","source":283,"target":366},{"edgeType":"calls","source":760,"target":764},{"edgeType":"contains","source":814,"target":821},{"edgeType":"calls","source":1195,"target":751},{"edgeType":"calls","source":1229,"target":754},{"edgeType":"calls","source":2217,"target":252},{"edgeType":"calls","source":900,"target":911},{"edgeType":"calls","source":1594,"target":274},{"edgeType":"imports","source":1808,"target":540},{"edgeType":"contains","source":1623,"target":1640},{"edgeType":"calls","source":324,"target":269},{"edgeType":"contains","source":1231,"target":1636},{"edgeType":"contains","source":214,"target":923},{"edgeType":"contains","source":1043,"target":1121},{"edgeType":"contains","source":1920,"target":1946},{"edgeType":"calls","source":2219,"target":719},{"edgeType":"calls","source":254,"target":61},{"edgeType":"imports","source":1701,"target":1215},{"edgeType":"contains","source":1049,"target":1199},{"edgeType":"contains","source":1728,"target":1292},{"edgeType":"calls","source":1729,"target":52},{"edgeType":"contains","source":1148,"target":1301},{"edgeType":"calls","source":1720,"target":331},{"edgeType":"contains","source":1784,"target":1670},{"edgeType":"calls","source":1152,"target":234},{"edgeType":"imports","source":38,"target":708},{"edgeType":"contains","source":1378,"target":1572},{"edgeType":"calls","source":1195,"target":750},{"edgeType":"contains","source":814,"target":820},{"edgeType":"imports","source":38,"target":709},{"edgeType":"contains","source":905,"target":906},{"edgeType":"calls","source":1594,"target":273},{"edgeType":"contains","source":1231,"target":1637},{"edgeType":"contains","source":214,"target":922},{"edgeType":"calls","source":774,"target":852},{"edgeType":"contains","source":1920,"target":1947},{"edgeType":"calls","source":1531,"target":376},{"edgeType":"calls","source":1540,"target":97},{"edgeType":"contains","source":1043,"target":1120},{"edgeType":"calls","source":2219,"target":720},{"edgeType":"imports","source":38,"target":181},{"edgeType":"imports","source":1701,"target":1214},{"edgeType":"contains","source":1677,"target":1817},{"edgeType":"calls","source":1720,"target":330},{"edgeType":"contains","source":1148,"target":1300},{"edgeType":"contains","source":145,"target":154},{"edgeType":"calls","source":1680,"target":1570},{"edgeType":"calls","source":811,"target":234},{"edgeType":"contains","source":1864,"target":2098},{"edgeType":"calls","source":1152,"target":233},{"edgeType":"contains","source":1378,"target":1573},{"edgeType":"contains","source":7,"target":468},{"edgeType":"contains","source":1278,"target":1498},{"edgeType":"calls","source":1198,"target":1453},{"edgeType":"calls","source":2217,"target":250},{"edgeType":"contains","source":806,"target":807},{"edgeType":"imports","source":1378,"target":391},{"edgeType":"calls","source":254,"target":327},{"edgeType":"calls","source":1211,"target":786},{"edgeType":"extends","source":1092,"target":1037},{"edgeType":"contains","source":1920,"target":1944},{"edgeType":"imports","source":38,"target":177},{"edgeType":"imports","source":1477,"target":1286},{"edgeType":"calls","source":324,"target":271},{"edgeType":"contains","source":814,"target":823},{"edgeType":"imports","source":1701,"target":1213},{"edgeType":"contains","source":1043,"target":1123},{"edgeType":"calls","source":2066,"target":1499},{"edgeType":"calls","source":736,"target":184},{"edgeType":"imports","source":8,"target":315},{"edgeType":"contains","source":391,"target":987},{"edgeType":"contains","source":186,"target":207},{"edgeType":"calls","source":1720,"target":333},{"edgeType":"contains","source":27,"target":1701},{"edgeType":"calls","source":1032,"target":785},{"edgeType":"contains","source":1095,"target":1096},{"edgeType":"calls","source":2217,"target":251},{"edgeType":"calls","source":853,"target":255},{"edgeType":"contains","source":1500,"target":1752},{"edgeType":"contains","source":214,"target":924},{"edgeType":"calls","source":1296,"target":1321},{"edgeType":"calls","source":254,"target":326},{"edgeType":"contains","source":1231,"target":1635},{"edgeType":"contains","source":1920,"target":1945},{"edgeType":"calls","source":1211,"target":785},{"edgeType":"contains","source":1043,"target":1122},{"edgeType":"calls","source":324,"target":270},{"edgeType":"contains","source":814,"target":822},{"edgeType":"imports","source":1701,"target":1212},{"edgeType":"contains","source":214,"target":659},{"edgeType":"calls","source":2219,"target":718},{"edgeType":"contains","source":1049,"target":1200},{"edgeType":"contains","source":38,"target":1359},{"edgeType":"calls","source":1720,"target":332},{"edgeType":"contains","source":1378,"target":1571},{"edgeType":"calls","source":1211,"target":1313},{"edgeType":"extends","source":388,"target":398},{"edgeType":"contains","source":1516,"target":1521},{"edgeType":"contains","source":391,"target":986},{"edgeType":"contains","source":1053,"target":1344},{"edgeType":"contains","source":806,"target":809},{"edgeType":"contains","source":2076,"target":2135},{"edgeType":"contains","source":392,"target":430},{"edgeType":"contains","source":1920,"target":1950},{"edgeType":"contains","source":814,"target":825},{"edgeType":"imports","source":1808,"target":1593},{"edgeType":"imports","source":1058,"target":1059},{"edgeType":"contains","source":1710,"target":1590},{"edgeType":"calls","source":1493,"target":1286},{"edgeType":"contains","source":1677,"target":1820},{"edgeType":"contains","source":1049,"target":1203},{"edgeType":"imports","source":896,"target":267},{"edgeType":"calls","source":1594,"target":269},{"edgeType":"contains","source":1148,"target":1305},{"edgeType":"calls","source":1720,"target":327},{"edgeType":"calls","source":394,"target":472},{"edgeType":"extends","source":1454,"target":1446},{"edgeType":"contains","source":806,"target":808},{"edgeType":"calls","source":2220,"target":156},{"edgeType":"calls","source":774,"target":55},{"edgeType":"contains","source":1920,"target":1951},{"edgeType":"contains","source":814,"target":824},{"edgeType":"contains","source":213,"target":693},{"edgeType":"contains","source":2076,"target":2136},{"edgeType":"contains","source":1920,"target":1952},{"edgeType":"imports","source":1058,"target":267},{"edgeType":"contains","source":391,"target":988},{"edgeType":"contains","source":1148,"target":1304},{"edgeType":"calls","source":1720,"target":326},{"edgeType":"contains","source":1442,"target":1443},{"edgeType":"calls","source":1195,"target":749},{"edgeType":"imports","source":208,"target":717},{"edgeType":"contains","source":806,"target":811},{"edgeType":"contains","source":392,"target":432},{"edgeType":"contains","source":1358,"target":872},{"edgeType":"calls","source":1594,"target":272},{"edgeType":"contains","source":1231,"target":1638},{"edgeType":"contains","source":1920,"target":1948},{"edgeType":"contains","source":1623,"target":1642},{"edgeType":"imports","source":38,"target":173},{"edgeType":"contains","source":814,"target":827},{"edgeType":"calls","source":1308,"target":946},{"edgeType":"calls","source":1296,"target":1318},{"edgeType":"calls","source":1531,"target":375},{"edgeType":"imports","source":934,"target":937},{"edgeType":"contains","source":100,"target":1028},{"edgeType":"calls","source":1327,"target":1149},{"edgeType":"contains","source":1677,"target":1818},{"edgeType":"contains","source":186,"target":211},{"edgeType":"contains","source":1043,"target":1127},{"edgeType":"imports","source":1277,"target":1140},{"edgeType":"calls","source":1116,"target":555},{"edgeType":"calls","source":1594,"target":271},{"edgeType":"contains","source":1378,"target":1574},{"edgeType":"contains","source":1541,"target":1542},{"edgeType":"calls","source":811,"target":233},{"edgeType":"contains","source":1710,"target":1588},{"edgeType":"contains","source":1053,"target":1081},{"edgeType":"calls","source":1720,"target":329},{"edgeType":"imports","source":100,"target":102},{"edgeType":"contains","source":1500,"target":1492},{"edgeType":"contains","source":1053,"target":1345},{"edgeType":"contains","source":1231,"target":1639},{"edgeType":"calls","source":1399,"target":1295},{"edgeType":"contains","source":1920,"target":1949},{"edgeType":"contains","source":814,"target":826},{"edgeType":"contains","source":392,"target":431},{"edgeType":"imports","source":38,"target":174},{"edgeType":"contains","source":1043,"target":1126},{"edgeType":"calls","source":1116,"target":554},{"edgeType":"contains","source":186,"target":210},{"edgeType":"contains","source":1677,"target":1819},{"edgeType":"imports","source":28,"target":1013},{"edgeType":"contains","source":1541,"target":1543},{"edgeType":"calls","source":1594,"target":270},{"edgeType":"calls","source":2074,"target":2038},{"edgeType":"calls","source":1338,"target":807},{"edgeType":"calls","source":1720,"target":328},{"edgeType":"contains","source":1218,"target":1221},{"edgeType":"contains","source":1217,"target":1252},{"edgeType":"calls","source":713,"target":721},{"edgeType":"contains","source":812,"target":858},{"edgeType":"calls","source":1861,"target":1865},{"edgeType":"calls","source":2163,"target":1489},{"edgeType":"calls","source":2176,"target":1086},{"edgeType":"calls","source":2208,"target":94},{"edgeType":"extends","source":18,"target":17},{"edgeType":"contains","source":1443,"target":1646},{"edgeType":"contains","source":1218,"target":1220},{"edgeType":"contains","source":1217,"target":1251},{"edgeType":"calls","source":1510,"target":1382},{"edgeType":"extends","source":315,"target":322},{"edgeType":"calls","source":713,"target":720},{"edgeType":"contains","source":1551,"target":1734},{"edgeType":"contains","source":1443,"target":1647},{"edgeType":"contains","source":1317,"target":1325},{"edgeType":"contains","source":1854,"target":1855},{"edgeType":"contains","source":136,"target":144},{"edgeType":"imports","source":1566,"target":1741},{"edgeType":"calls","source":882,"target":502},{"edgeType":"contains","source":1864,"target":1809},{"edgeType":"imports","source":2101,"target":217},{"edgeType":"contains","source":1218,"target":1223},{"edgeType":"contains","source":1443,"target":2172},{"edgeType":"contains","source":896,"target":899},{"edgeType":"contains","source":937,"target":949},{"edgeType":"contains","source":1886,"target":1916},{"edgeType":"contains","source":7,"target":1768},{"edgeType":"contains","source":283,"target":346},{"edgeType":"contains","source":214,"target":371},{"edgeType":"imports","source":38,"target":219},{"edgeType":"contains","source":1043,"target":1098},{"edgeType":"contains","source":1443,"target":1644},{"edgeType":"contains","source":812,"target":860},{"edgeType":"contains","source":1500,"target":1727},{"edgeType":"imports","source":896,"target":46},{"edgeType":"contains","source":1379,"target":1514},{"edgeType":"calls","source":1190,"target":206},{"edgeType":"imports","source":214,"target":49},{"edgeType":"calls","source":2086,"target":1496},{"edgeType":"calls","source":310,"target":266},{"edgeType":"contains","source":1218,"target":1222},{"edgeType":"contains","source":1217,"target":1253},{"edgeType":"calls","source":1229,"target":846},{"edgeType":"calls","source":2193,"target":1086},{"edgeType":"calls","source":2223,"target":156},{"edgeType":"contains","source":902,"target":976},{"edgeType":"contains","source":1043,"target":1097},{"edgeType":"contains","source":1379,"target":1515},{"edgeType":"calls","source":1168,"target":94},{"edgeType":"contains","source":1443,"target":1645},{"edgeType":"calls","source":1190,"target":205},{"edgeType":"contains","source":1864,"target":2076},{"edgeType":"calls","source":1448,"target":1451},{"edgeType":"calls","source":936,"target":146},{"edgeType":"calls","source":1678,"target":135},{"edgeType":"contains","source":1218,"target":1225},{"edgeType":"contains","source":1356,"target":1440},{"edgeType":"imports","source":1358,"target":786},{"edgeType":"contains","source":794,"target":1156},{"edgeType":"imports","source":1477,"target":1061},{"edgeType":"calls","source":2094,"target":2038},{"edgeType":"calls","source":325,"target":325},{"edgeType":"contains","source":1500,"target":1733},{"edgeType":"contains","source":1920,"target":1926},{"edgeType":"contains","source":1317,"target":1328},{"edgeType":"calls","source":1431,"target":1449},{"edgeType":"calls","source":502,"target":652},{"edgeType":"calls","source":1322,"target":1393},{"edgeType":"calls","source":1295,"target":1173},{"edgeType":"contains","source":1043,"target":1100},{"edgeType":"contains","source":1551,"target":1738},{"edgeType":"contains","source":1053,"target":1054},{"edgeType":"calls","source":1678,"target":134},{"edgeType":"calls","source":1644,"target":1188},{"edgeType":"contains","source":1218,"target":1224},{"edgeType":"calls","source":696,"target":714},{"edgeType":"contains","source":1358,"target":1379},{"edgeType":"imports","source":1358,"target":785},{"edgeType":"calls","source":1862,"target":1829},{"edgeType":"extends","source":708,"target":35},{"edgeType":"contains","source":794,"target":1155},{"edgeType":"contains","source":1920,"target":1927},{"edgeType":"imports","source":1378,"target":958},{"edgeType":"imports","source":38,"target":218},{"edgeType":"contains","source":812,"target":861},{"edgeType":"contains","source":1043,"target":1099},{"edgeType":"calls","source":713,"target":719},{"edgeType":"contains","source":38,"target":1339},{"edgeType":"imports","source":214,"target":44},{"edgeType":"contains","source":508,"target":511},{"edgeType":"contains","source":1218,"target":1227},{"edgeType":"contains","source":794,"target":1158},{"edgeType":"imports","source":100,"target":142},{"edgeType":"contains","source":219,"target":221},{"edgeType":"contains","source":186,"target":187},{"edgeType":"calls","source":1345,"target":1211},{"edgeType":"calls","source":2092,"target":2098},{"edgeType":"calls","source":1496,"target":1286},{"edgeType":"contains","source":1920,"target":1924},{"edgeType":"contains","source":1443,"target":1648},{"edgeType":"contains","source":1317,"target":1326},{"edgeType":"calls","source":1439,"target":146},{"edgeType":"contains","source":1043,"target":1102},{"edgeType":"contains","source":1500,"target":1731},{"edgeType":"calls","source":2111,"target":2038},{"edgeType":"contains","source":508,"target":510},{"edgeType":"contains","source":1218,"target":1226},{"edgeType":"contains","source":794,"target":1157},{"edgeType":"contains","source":219,"target":220},{"edgeType":"calls","source":1448,"target":1188},{"edgeType":"contains","source":1920,"target":1925},{"edgeType":"imports","source":38,"target":216},{"edgeType":"contains","source":391,"target":965},{"edgeType":"contains","source":1443,"target":1649},{"edgeType":"calls","source":1431,"target":1450},{"edgeType":"imports","source":1674,"target":1029},{"edgeType":"contains","source":1705,"target":1719},{"edgeType":"calls","source":2103,"target":1494},{"edgeType":"contains","source":1043,"target":1101},{"edgeType":"imports","source":28,"target":790},{"edgeType":"calls","source":713,"target":718},{"edgeType":"calls","source":1680,"target":333},{"edgeType":"calls","source":1512,"target":1577},{"edgeType":"calls","source":2224,"target":382},{"edgeType":"calls","source":838,"target":273},{"edgeType":"contains","source":794,"target":1160},{"edgeType":"contains","source":186,"target":189},{"edgeType":"calls","source":1282,"target":251},{"edgeType":"contains","source":508,"target":513},{"edgeType":"imports","source":989,"target":609},{"edgeType":"imports","source":28,"target":11},{"edgeType":"contains","source":1701,"target":1584},{"edgeType":"contains","source":1623,"target":1624},{"edgeType":"calls","source":325,"target":321},{"edgeType":"calls","source":2159,"target":1605},{"edgeType":"calls","source":797,"target":223},{"edgeType":"contains","source":1043,"target":1104},{"edgeType":"contains","source":1920,"target":1930},{"edgeType":"calls","source":811,"target":52},{"edgeType":"contains","source":1808,"target":1703},{"edgeType":"calls","source":1680,"target":332},{"edgeType":"contains","source":1177,"target":1178},{"edgeType":"calls","source":1396,"target":1208},{"edgeType":"calls","source":838,"target":272},{"edgeType":"contains","source":1829,"target":1845},{"edgeType":"contains","source":503,"target":931},{"edgeType":"calls","source":1900,"target":647},{"edgeType":"contains","source":38,"target":1340},{"edgeType":"calls","source":2224,"target":383},{"edgeType":"contains","source":1218,"target":1228},{"edgeType":"contains","source":186,"target":188},{"edgeType":"imports","source":1751,"target":506},{"edgeType":"calls","source":1282,"target":250},{"edgeType":"contains","source":508,"target":512},{"edgeType":"calls","source":1345,"target":146},{"edgeType":"calls","source":467,"target":146},{"edgeType":"calls","source":1085,"target":1071},{"edgeType":"calls","source":163,"target":321},{"edgeType":"imports","source":1622,"target":806},{"edgeType":"contains","source":1742,"target":50},{"edgeType":"contains","source":1043,"target":1103},{"edgeType":"contains","source":1920,"target":1931},{"edgeType":"contains","source":1075,"target":1168},{"edgeType":"contains","source":1043,"target":1107},{"edgeType":"calls","source":1382,"target":1381},{"edgeType":"calls","source":974,"target":23},{"edgeType":"calls","source":1678,"target":133},{"edgeType":"contains","source":38,"target":1343},{"edgeType":"contains","source":1710,"target":1567},{"edgeType":"contains","source":186,"target":191},{"edgeType":"contains","source":508,"target":515},{"edgeType":"contains","source":1500,"target":1735},{"edgeType":"contains","source":1043,"target":1106},{"edgeType":"contains","source":1920,"target":1928},{"edgeType":"imports","source":1701,"target":1261},{"edgeType":"calls","source":1540,"target":1503},{"edgeType":"calls","source":838,"target":274},{"edgeType":"calls","source":1291,"target":1294},{"edgeType":"contains","source":1551,"target":1740},{"edgeType":"calls","source":1282,"target":252},{"edgeType":"contains","source":794,"target":1161},{"edgeType":"contains","source":38,"target":1342},{"edgeType":"contains","source":186,"target":190},{"edgeType":"contains","source":508,"target":514},{"edgeType":"contains","source":1218,"target":1230},{"edgeType":"calls","source":861,"target":882},{"edgeType":"calls","source":1645,"target":97},{"edgeType":"contains","source":1043,"target":1105},{"edgeType":"contains","source":1920,"target":1929},{"edgeType":"calls","source":797,"target":224},{"edgeType":"imports","source":1701,"target":1260},{"edgeType":"calls","source":1900,"target":644},{"edgeType":"calls","source":838,"target":269},{"edgeType":"contains","source":1443,"target":1922},{"edgeType":"calls","source":1680,"target":329},{"edgeType":"contains","source":186,"target":193},{"edgeType":"calls","source":1712,"target":1715},{"edgeType":"imports","source":1827,"target":261},{"edgeType":"calls","source":1096,"target":992},{"edgeType":"contains","source":591,"target":851},{"edgeType":"calls","source":2000,"target":2036},{"edgeType":"calls","source":2098,"target":55},{"edgeType":"contains","source":1058,"target":1172},{"edgeType":"contains","source":1886,"target":610},{"edgeType":"calls","source":997,"target":97},{"edgeType":"calls","source":163,"target":318},{"edgeType":"calls","source":362,"target":227},{"edgeType":"calls","source":1329,"target":375},{"edgeType":"contains","source":1920,"target":1934},{"edgeType":"calls","source":754,"target":759},{"edgeType":"calls","source":2152,"target":1025},{"edgeType":"imports","source":896,"target":54},{"edgeType":"contains","source":508,"target":516},{"edgeType":"calls","source":1900,"target":643},{"edgeType":"calls","source":974,"target":280},{"edgeType":"calls","source":1680,"target":328},{"edgeType":"contains","source":186,"target":192},{"edgeType":"contains","source":1278,"target":1489},{"edgeType":"calls","source":2000,"target":2035},{"edgeType":"imports","source":1701,"target":1259},{"edgeType":"extends","source":172,"target":11},{"edgeType":"contains","source":794,"target":1163},{"edgeType":"calls","source":1459,"target":572},{"edgeType":"contains","source":1920,"target":1935},{"edgeType":"imports","source":1566,"target":1745},{"edgeType":"imports","source":38,"target":226},{"edgeType":"contains","source":1233,"target":1295},{"edgeType":"calls","source":838,"target":271},{"edgeType":"imports","source":373,"target":1201},{"edgeType":"calls","source":1680,"target":331},{"edgeType":"contains","source":186,"target":195},{"edgeType":"contains","source":1043,"target":1111},{"edgeType":"calls","source":1900,"target":646},{"edgeType":"calls","source":2094,"target":1499},{"edgeType":"contains","source":796,"target":840},{"edgeType":"contains","source":38,"target":1347},{"edgeType":"contains","source":1701,"target":793},{"edgeType":"calls","source":2199,"target":94},{"edgeType":"contains","source":2102,"target":2104},{"edgeType":"imports","source":1566,"target":1744},{"edgeType":"contains","source":1920,"target":1932},{"edgeType":"calls","source":163,"target":320},{"edgeType":"calls","source":2152,"target":1023},{"edgeType":"imports","source":896,"target":52},{"edgeType":"calls","source":838,"target":270},{"edgeType":"calls","source":1900,"target":645},{"edgeType":"calls","source":1680,"target":330},{"edgeType":"contains","source":186,"target":194},{"edgeType":"calls","source":2055,"target":1125},{"edgeType":"contains","source":38,"target":1346},{"edgeType":"contains","source":1920,"target":1933},{"edgeType":"calls","source":163,"target":319},{"edgeType":"calls","source":1329,"target":376},{"edgeType":"calls","source":362,"target":228},{"edgeType":"calls","source":2152,"target":1024},{"edgeType":"contains","source":1836,"target":1602},{"edgeType":"contains","source":315,"target":393},{"edgeType":"contains","source":371,"target":507},{"edgeType":"contains","source":373,"target":1502},{"edgeType":"calls","source":817,"target":156},{"edgeType":"contains","source":465,"target":500},{"edgeType":"contains","source":1566,"target":1780},{"edgeType":"contains","source":717,"target":1144},{"edgeType":"calls","source":1555,"target":269},{"edgeType":"calls","source":2200,"target":94},{"edgeType":"calls","source":2189,"target":1492},{"edgeType":"calls","source":1093,"target":1113},{"edgeType":"contains","source":1564,"target":1578},{"edgeType":"contains","source":2101,"target":2108},{"edgeType":"imports","source":373,"target":1182},{"edgeType":"contains","source":1443,"target":1894},{"edgeType":"contains","source":468,"target":670},{"edgeType":"contains","source":391,"target":943},{"edgeType":"contains","source":9,"target":100},{"edgeType":"contains","source":1566,"target":1781},{"edgeType":"contains","source":1500,"target":1713},{"edgeType":"calls","source":847,"target":546},{"edgeType":"calls","source":1504,"target":1584},{"edgeType":"calls","source":1027,"target":252},{"edgeType":"contains","source":1701,"target":1296},{"edgeType":"imports","source":1356,"target":835},{"edgeType":"contains","source":1443,"target":1895},{"edgeType":"extends","source":1279,"target":18},{"edgeType":"contains","source":1701,"target":1032},{"edgeType":"calls","source":1086,"target":1065},{"edgeType":"contains","source":1701,"target":2089},{"edgeType":"calls","source":1384,"target":19},{"edgeType":"contains","source":7,"target":1751},{"edgeType":"calls","source":378,"target":554},{"edgeType":"contains","source":1443,"target":834},{"edgeType":"calls","source":1085,"target":571},{"edgeType":"calls","source":1193,"target":1187},{"edgeType":"contains","source":717,"target":1146},{"edgeType":"imports","source":373,"target":388},{"edgeType":"contains","source":1566,"target":1778},{"edgeType":"calls","source":1680,"target":1681},{"edgeType":"calls","source":1555,"target":271},{"edgeType":"contains","source":2225,"target":2226},{"edgeType":"calls","source":648,"target":641},{"edgeType":"contains","source":2101,"target":2106},{"edgeType":"imports","source":1356,"target":834},{"edgeType":"contains","source":1878,"target":1091},{"edgeType":"contains","source":1443,"target":835},{"edgeType":"contains","source":315,"target":395},{"edgeType":"contains","source":2076,"target":2088},{"edgeType":"calls","source":2215,"target":156},{"edgeType":"calls","source":2217,"target":94},{"edgeType":"calls","source":1085,"target":570},{"edgeType":"calls","source":743,"target":601},{"edgeType":"contains","source":717,"target":1145},{"edgeType":"calls","source":1555,"target":270},{"edgeType":"contains","source":1566,"target":1779},{"edgeType":"contains","source":1701,"target":1294},{"edgeType":"calls","source":1152,"target":1135},{"edgeType":"calls","source":1540,"target":470},{"edgeType":"contains","source":2101,"target":2107},{"edgeType":"contains","source":388,"target":509},{"edgeType":"calls","source":1291,"target":1054},{"edgeType":"contains","source":1443,"target":2157},{"edgeType":"contains","source":1878,"target":1092},{"edgeType":"contains","source":1443,"target":1893},{"edgeType":"calls","source":137,"target":97},{"edgeType":"calls","source":2086,"target":2038},{"edgeType":"calls","source":1198,"target":233},{"edgeType":"contains","source":1043,"target":1084},{"edgeType":"calls","source":762,"target":271},{"edgeType":"calls","source":762,"target":272},{"edgeType":"imports","source":28,"target":1039},{"edgeType":"calls","source":971,"target":135},{"edgeType":"contains","source":18,"target":91},{"edgeType":"calls","source":948,"target":55},{"edgeType":"contains","source":1500,"target":1717},{"edgeType":"calls","source":762,"target":270},{"edgeType":"calls","source":2165,"target":119},{"edgeType":"calls","source":1152,"target":336},{"edgeType":"calls","source":2069,"target":2038},{"edgeType":"calls","source":971,"target":134},{"edgeType":"imports","source":28,"target":1040},{"edgeType":"calls","source":502,"target":667},{"edgeType":"extends","source":1049,"target":17},{"edgeType":"contains","source":1008,"target":846},{"edgeType":"contains","source":902,"target":961},{"edgeType":"contains","source":1566,"target":1782},{"edgeType":"calls","source":169,"target":158},{"edgeType":"contains","source":2076,"target":2092},{"edgeType":"calls","source":752,"target":55},{"edgeType":"contains","source":38,"target":794},{"edgeType":"extends","source":1182,"target":1183},{"edgeType":"contains","source":1044,"target":1055},{"edgeType":"contains","source":1500,"target":1714},{"edgeType":"extends","source":1552,"target":544},{"edgeType":"contains","source":202,"target":203},{"edgeType":"calls","source":1399,"target":82},{"edgeType":"calls","source":1329,"target":1195},{"edgeType":"calls","source":762,"target":274},{"edgeType":"calls","source":1027,"target":251},{"edgeType":"contains","source":796,"target":815},{"edgeType":"calls","source":2103,"target":2038},{"edgeType":"contains","source":1217,"target":1241},{"edgeType":"imports","source":208,"target":213},{"edgeType":"contains","source":1443,"target":1896},{"edgeType":"calls","source":2198,"target":2000},{"edgeType":"calls","source":1229,"target":595},{"edgeType":"contains","source":1280,"target":1400},{"edgeType":"calls","source":1198,"target":234},{"edgeType":"imports","source":28,"target":1038},{"edgeType":"calls","source":1027,"target":250},{"edgeType":"calls","source":762,"target":273},{"edgeType":"calls","source":1093,"target":1110},{"edgeType":"contains","source":1177,"target":1423},{"edgeType":"contains","source":1217,"target":1240},{"edgeType":"contains","source":18,"target":92},{"edgeType":"contains","source":1566,"target":991},{"edgeType":"contains","source":1701,"target":2091},{"edgeType":"contains","source":38,"target":796},{"edgeType":"imports","source":100,"target":140},{"edgeType":"contains","source":1331,"target":1674},{"edgeType":"calls","source":1716,"target":1876},{"edgeType":"contains","source":1443,"target":2166},{"edgeType":"contains","source":136,"target":137},{"edgeType":"calls","source":1141,"target":938},{"edgeType":"calls","source":1540,"target":725},{"edgeType":"calls","source":1861,"target":1873},{"edgeType":"extends","source":1583,"target":118},{"edgeType":"contains","source":3,"target":1353},{"edgeType":"contains","source":468,"target":679},{"edgeType":"calls","source":52,"target":80},{"edgeType":"contains","source":1217,"target":1243},{"edgeType":"calls","source":1504,"target":1577},{"edgeType":"calls","source":838,"target":554},{"edgeType":"calls","source":1184,"target":1191},{"edgeType":"contains","source":1379,"target":1508},{"edgeType":"contains","source":937,"target":938},{"edgeType":"contains","source":1500,"target":1721},{"edgeType":"contains","source":1443,"target":2167},{"edgeType":"imports","source":100,"target":141},{"edgeType":"contains","source":202,"target":204},{"edgeType":"calls","source":847,"target":802},{"edgeType":"calls","source":2162,"target":472},{"edgeType":"calls","source":1861,"target":1872},{"edgeType":"calls","source":1283,"target":1292},{"edgeType":"contains","source":468,"target":678},{"edgeType":"contains","source":1217,"target":1242},{"edgeType":"calls","source":88,"target":20},{"edgeType":"extends","source":937,"target":322},{"edgeType":"calls","source":1357,"target":55},{"edgeType":"contains","source":1379,"target":1509},{"edgeType":"calls","source":2216,"target":380},{"edgeType":"contains","source":1500,"target":1718},{"edgeType":"contains","source":1379,"target":1505},{"edgeType":"imports","source":100,"target":138},{"edgeType":"calls","source":1532,"target":1504},{"edgeType":"contains","source":1742,"target":30},{"edgeType":"contains","source":1443,"target":2164},{"edgeType":"calls","source":762,"target":269},{"edgeType":"calls","source":2095,"target":1489},{"edgeType":"imports","source":28,"target":785},{"edgeType":"calls","source":971,"target":133},{"edgeType":"contains","source":38,"target":1327},{"edgeType":"contains","source":7,"target":1231},{"edgeType":"contains","source":1705,"target":1706},{"edgeType":"contains","source":283,"target":338},{"edgeType":"contains","source":1217,"target":1245},{"edgeType":"contains","source":468,"target":681},{"edgeType":"calls","source":2192,"target":1125},{"edgeType":"calls","source":2216,"target":381},{"edgeType":"imports","source":1477,"target":1582},{"edgeType":"contains","source":1742,"target":31},{"edgeType":"imports","source":100,"target":139},{"edgeType":"contains","source":1277,"target":1233},{"edgeType":"imports","source":494,"target":610},{"edgeType":"calls","source":1716,"target":1877},{"edgeType":"contains","source":1768,"target":1075},{"edgeType":"calls","source":1861,"target":1874},{"edgeType":"imports","source":28,"target":786},{"edgeType":"contains","source":214,"target":362},{"edgeType":"contains","source":1217,"target":1244},{"edgeType":"calls","source":838,"target":555},{"edgeType":"contains","source":1379,"target":1507},{"edgeType":"contains","source":468,"target":680},{"edgeType":"calls","source":1184,"target":1192},{"edgeType":"calls","source":1085,"target":1085},{"edgeType":"calls","source":1068,"target":555},{"edgeType":"extends","source":1620,"target":32},{"edgeType":"imports","source":373,"target":394},{"edgeType":"contains","source":1443,"target":2170},{"edgeType":"calls","source":2069,"target":1499},{"edgeType":"calls","source":1198,"target":224},{"edgeType":"calls","source":1322,"target":1401},{"edgeType":"contains","source":4,"target":5},{"edgeType":"calls","source":952,"target":980},{"edgeType":"contains","source":468,"target":683},{"edgeType":"contains","source":1217,"target":1247},{"edgeType":"contains","source":937,"target":942},{"edgeType":"contains","source":1443,"target":2171},{"edgeType":"calls","source":971,"target":918},{"edgeType":"contains","source":267,"target":307},{"edgeType":"calls","source":1068,"target":554},{"edgeType":"imports","source":494,"target":608},{"edgeType":"extends","source":794,"target":796},{"edgeType":"calls","source":614,"target":94},{"edgeType":"contains","source":1443,"target":1643},{"edgeType":"calls","source":952,"target":979},{"edgeType":"calls","source":1198,"target":223},{"edgeType":"calls","source":1229,"target":55},{"edgeType":"contains","source":1379,"target":1513},{"edgeType":"contains","source":468,"target":682},{"edgeType":"contains","source":1217,"target":1246},{"edgeType":"calls","source":1492,"target":94},{"edgeType":"contains","source":1218,"target":1219},{"edgeType":"contains","source":1217,"target":1250},{"edgeType":"contains","source":1500,"target":1722},{"edgeType":"contains","source":1053,"target":1313},{"edgeType":"imports","source":1808,"target":1360},{"edgeType":"calls","source":2159,"target":1086},{"edgeType":"contains","source":1443,"target":2168},{"edgeType":"contains","source":468,"target":685},{"edgeType":"calls","source":614,"target":97},{"edgeType":"imports","source":494,"target":604},{"edgeType":"calls","source":2226,"target":595},{"edgeType":"contains","source":136,"target":143},{"edgeType":"calls","source":1861,"target":1871},{"edgeType":"calls","source":1195,"target":55},{"edgeType":"contains","source":1379,"target":1510},{"edgeType":"contains","source":1177,"target":1432},{"edgeType":"contains","source":1217,"target":1249},{"edgeType":"contains","source":1443,"target":2169},{"edgeType":"calls","source":2178,"target":1291},{"edgeType":"calls","source":1861,"target":1870},{"edgeType":"contains","source":468,"target":684},{"edgeType":"calls","source":1294,"target":156},{"edgeType":"calls","source":2040,"target":549},{"edgeType":"imports","source":1277,"target":1172},{"edgeType":"contains","source":1379,"target":1511},{"edgeType":"contains","source":1500,"target":1724},{"edgeType":"contains","source":1317,"target":1319},{"edgeType":"contains","source":1217,"target":1248},{"edgeType":"contains","source":1358,"target":812},{"edgeType":"contains","source":267,"target":279},{"edgeType":"contains","source":388,"target":492},{"edgeType":"calls","source":1114,"target":1206},{"edgeType":"extends","source":604,"target":118},{"edgeType":"calls","source":1050,"target":19},{"edgeType":"contains","source":113,"target":561},{"edgeType":"calls","source":1495,"target":1286},{"edgeType":"contains","source":283,"target":311},{"edgeType":"calls","source":156,"target":250},{"edgeType":"contains","source":1547,"target":1560},{"edgeType":"calls","source":1851,"target":556},{"edgeType":"calls","source":1093,"target":271},{"edgeType":"calls","source":1594,"target":331},{"edgeType":"calls","source":759,"target":55},{"edgeType":"calls","source":1900,"target":94},{"edgeType":"calls","source":745,"target":752},{"edgeType":"calls","source":2192,"target":1086},{"edgeType":"calls","source":2222,"target":156},{"edgeType":"contains","source":388,"target":491},{"edgeType":"contains","source":3,"target":6},{"edgeType":"imports","source":1566,"target":1774},{"edgeType":"imports","source":1563,"target":17},{"edgeType":"contains","source":391,"target":926},{"edgeType":"imports","source":1751,"target":267},{"edgeType":"calls","source":1093,"target":270},{"edgeType":"calls","source":1594,"target":330},{"edgeType":"contains","source":267,"target":281},{"edgeType":"imports","source":1566,"target":1772},{"edgeType":"calls","source":109,"target":123},{"edgeType":"calls","source":2085,"target":1493},{"edgeType":"calls","source":1201,"target":625},{"edgeType":"contains","source":226,"target":231},{"edgeType":"contains","source":283,"target":313},{"edgeType":"contains","source":1547,"target":1558},{"edgeType":"calls","source":502,"target":625},{"edgeType":"contains","source":160,"target":163},{"edgeType":"calls","source":156,"target":252},{"edgeType":"calls","source":1093,"target":273},{"edgeType":"calls","source":1594,"target":333},{"edgeType":"contains","source":1047,"target":1205},{"edgeType":"calls","source":648,"target":327},{"edgeType":"calls","source":860,"target":97},{"edgeType":"calls","source":1125,"target":1131},{"edgeType":"contains","source":267,"target":280},{"edgeType":"calls","source":1201,"target":624},{"edgeType":"contains","source":388,"target":493},{"edgeType":"calls","source":1114,"target":1207},{"edgeType":"contains","source":1701,"target":1013},{"edgeType":"contains","source":1701,"target":2070},{"edgeType":"extends","source":168,"target":157},{"edgeType":"contains","source":226,"target":230},{"edgeType":"contains","source":899,"target":1036},{"edgeType":"contains","source":1552,"target":1668},{"edgeType":"contains","source":113,"target":562},{"edgeType":"imports","source":1812,"target":1545},{"edgeType":"calls","source":502,"target":624},{"edgeType":"calls","source":156,"target":251},{"edgeType":"calls","source":1093,"target":272},{"edgeType":"calls","source":613,"target":618},{"edgeType":"calls","source":1594,"target":332},{"edgeType":"calls","source":648,"target":326},{"edgeType":"calls","source":1361,"target":156},{"edgeType":"contains","source":1047,"target":1204},{"edgeType":"contains","source":2101,"target":1826},{"edgeType":"calls","source":1851,"target":557},{"edgeType":"calls","source":1539,"target":1504},{"edgeType":"contains","source":991,"target":1094},{"edgeType":"contains","source":1216,"target":1254},{"edgeType":"contains","source":1443,"target":1881},{"edgeType":"calls","source":959,"target":721},{"edgeType":"contains","source":283,"target":316},{"edgeType":"calls","source":1594,"target":327},{"edgeType":"contains","source":2076,"target":2078},{"edgeType":"calls","source":795,"target":785},{"edgeType":"extends","source":1502,"target":32},{"edgeType":"calls","source":952,"target":146},{"edgeType":"extends","source":1090,"target":118},{"edgeType":"calls","source":2110,"target":2038},{"edgeType":"contains","source":1795,"target":1804},{"edgeType":"contains","source":168,"target":180},{"edgeType":"calls","source":811,"target":23},{"edgeType":"calls","source":1308,"target":736},{"edgeType":"calls","source":1211,"target":572},{"edgeType":"calls","source":911,"target":94},{"edgeType":"calls","source":908,"target":187},{"edgeType":"calls","source":959,"target":720},{"edgeType":"contains","source":1443,"target":1882},{"edgeType":"calls","source":648,"target":55},{"edgeType":"calls","source":1152,"target":23},{"edgeType":"contains","source":283,"target":314},{"edgeType":"calls","source":1594,"target":326},{"edgeType":"contains","source":1916,"target":2018},{"edgeType":"imports","source":208,"target":794},{"edgeType":"calls","source":790,"target":146},{"edgeType":"contains","source":1443,"target":2147},{"edgeType":"imports","source":28,"target":29},{"edgeType":"calls","source":2223,"target":382},{"edgeType":"contains","source":1216,"target":1256},{"edgeType":"contains","source":1443,"target":1879},{"edgeType":"calls","source":2100,"target":1024},{"edgeType":"contains","source":29,"target":792},{"edgeType":"calls","source":614,"target":55},{"edgeType":"extends","source":1522,"target":1524},{"edgeType":"calls","source":1361,"target":1210},{"edgeType":"contains","source":398,"target":452},{"edgeType":"calls","source":913,"target":564},{"edgeType":"contains","source":267,"target":285},{"edgeType":"calls","source":1093,"target":269},{"edgeType":"calls","source":1594,"target":329},{"edgeType":"contains","source":388,"target":497},{"edgeType":"calls","source":2223,"target":383},{"edgeType":"contains","source":1216,"target":1255},{"edgeType":"calls","source":2100,"target":1025},{"edgeType":"contains","source":29,"target":791},{"edgeType":"contains","source":283,"target":317},{"edgeType":"calls","source":2127,"target":2038},{"edgeType":"calls","source":2219,"target":2093},{"edgeType":"calls","source":795,"target":786},{"edgeType":"contains","source":2076,"target":2077},{"edgeType":"contains","source":1751,"target":1317},{"edgeType":"contains","source":398,"target":451},{"edgeType":"calls","source":1322,"target":1361},{"edgeType":"calls","source":1295,"target":1141},{"edgeType":"contains","source":1564,"target":1565},{"edgeType":"contains","source":267,"target":284},{"edgeType":"calls","source":1594,"target":328},{"edgeType":"contains","source":1795,"target":1803},{"edgeType":"calls","source":1168,"target":52},{"edgeType":"calls","source":2160,"target":1540},{"edgeType":"contains","source":1701,"target":2079},{"edgeType":"contains","source":1443,"target":1885},{"edgeType":"contains","source":468,"target":663},{"edgeType":"calls","source":1152,"target":1341},{"edgeType":"calls","source":2100,"target":1022},{"edgeType":"contains","source":391,"target":936},{"edgeType":"imports","source":1358,"target":1360},{"edgeType":"contains","source":2076,"target":2082},{"edgeType":"contains","source":1742,"target":16},{"edgeType":"calls","source":811,"target":813},{"edgeType":"contains","source":388,"target":499},{"edgeType":"calls","source":918,"target":930},{"edgeType":"contains","source":468,"target":662},{"edgeType":"calls","source":2100,"target":1023},{"edgeType":"calls","source":142,"target":146},{"edgeType":"calls","source":861,"target":55},{"edgeType":"contains","source":1443,"target":2151},{"edgeType":"calls","source":1081,"target":898},{"edgeType":"calls","source":912,"target":852},{"edgeType":"contains","source":1443,"target":1883},{"edgeType":"imports","source":494,"target":394},{"edgeType":"calls","source":1211,"target":571},{"edgeType":"calls","source":959,"target":719},{"edgeType":"extends","source":1035,"target":1037},{"edgeType":"contains","source":503,"target":1694},{"edgeType":"calls","source":2100,"target":1020},{"edgeType":"contains","source":468,"target":665},{"edgeType":"calls","source":1150,"target":84},{"edgeType":"contains","source":371,"target":501},{"edgeType":"calls","source":1050,"target":1069},{"edgeType":"calls","source":967,"target":736},{"edgeType":"contains","source":2076,"target":2080},{"edgeType":"imports","source":1823,"target":1213},{"edgeType":"contains","source":796,"target":802},{"edgeType":"calls","source":2178,"target":2038},{"edgeType":"calls","source":1211,"target":570},{"edgeType":"contains","source":1443,"target":1884},{"edgeType":"calls","source":621,"target":97},{"edgeType":"calls","source":959,"target":718},{"edgeType":"calls","source":2100,"target":1021},{"edgeType":"contains","source":1443,"target":1620},{"edgeType":"extends","source":812,"target":814},{"edgeType":"contains","source":468,"target":664},{"edgeType":"contains","source":7,"target":1742},{"edgeType":"contains","source":2076,"target":2081},{"edgeType":"imports","source":1823,"target":1212},{"edgeType":"calls","source":2037,"target":1125},{"edgeType":"imports","source":2101,"target":786},{"edgeType":"contains","source":214,"target":613},{"edgeType":"extends","source":51,"target":96},{"edgeType":"imports","source":896,"target":86},{"edgeType":"contains","source":1044,"target":1045},{"edgeType":"calls","source":2044,"target":375},{"edgeType":"calls","source":918,"target":134},{"edgeType":"calls","source":2198,"target":94},{"edgeType":"calls","source":2165,"target":2174},{"edgeType":"calls","source":1338,"target":1384},{"edgeType":"contains","source":465,"target":495},{"edgeType":"calls","source":1150,"target":1134},{"edgeType":"imports","source":1043,"target":1078},{"edgeType":"contains","source":494,"target":1182},{"edgeType":"imports","source":2101,"target":785},{"edgeType":"calls","source":638,"target":94},{"edgeType":"contains","source":1443,"target":1890},{"edgeType":"calls","source":918,"target":133},{"edgeType":"calls","source":1455,"target":135},{"edgeType":"contains","source":468,"target":666},{"edgeType":"calls","source":2100,"target":1019},{"edgeType":"calls","source":1152,"target":279},{"edgeType":"extends","source":226,"target":219},{"edgeType":"calls","source":2195,"target":2038},{"edgeType":"contains","source":1443,"target":2155},{"edgeType":"contains","source":2101,"target":2105},{"edgeType":"contains","source":1878,"target":1090},{"edgeType":"contains","source":1490,"target":1491},{"edgeType":"extends","source":498,"target":508},{"edgeType":"contains","source":1443,"target":1891},{"edgeType":"calls","source":2098,"target":549},{"edgeType":"extends","source":181,"target":32},{"edgeType":"contains","source":468,"target":669},{"edgeType":"calls","source":918,"target":929},{"edgeType":"contains","source":373,"target":1500},{"edgeType":"imports","source":1838,"target":215},{"edgeType":"contains","source":1838,"target":213},{"edgeType":"calls","source":1577,"target":55},{"edgeType":"contains","source":2101,"target":2102},{"edgeType":"contains","source":1878,"target":1880},{"edgeType":"contains","source":1878,"target":1087},{"edgeType":"calls","source":2213,"target":156},{"edgeType":"contains","source":1333,"target":1334},{"edgeType":"contains","source":468,"target":668},{"edgeType":"calls","source":763,"target":712},{"edgeType":"calls","source":1013,"target":97},{"edgeType":"calls","source":2044,"target":376},{"edgeType":"calls","source":918,"target":135},{"edgeType":"contains","source":373,"target":1499},{"edgeType":"imports","source":1886,"target":1897},{"edgeType":"extends","source":391,"target":392},{"edgeType":"contains","source":1563,"target":18},{"edgeType":"calls","source":2165,"target":2173},{"edgeType":"contains","source":1183,"target":1229},{"edgeType":"contains","source":18,"target":84},{"edgeType":"contains","source":465,"target":496},{"edgeType":"contains","source":1500,"target":1707},{"edgeType":"contains","source":494,"target":1183},{"edgeType":"contains","source":1556,"target":1557},{"edgeType":"calls","source":935,"target":137},{"edgeType":"calls","source":1431,"target":1409},{"edgeType":"calls","source":910,"target":912},{"edgeType":"calls","source":1141,"target":1150},{"edgeType":"calls","source":974,"target":277},{"edgeType":"calls","source":2152,"target":1020},{"edgeType":"contains","source":283,"target":295},{"edgeType":"calls","source":1529,"target":249},{"edgeType":"calls","source":121,"target":558},{"edgeType":"calls","source":1345,"target":932},{"edgeType":"calls","source":362,"target":222},{"edgeType":"contains","source":374,"target":381},{"edgeType":"extends","source":902,"target":905},{"edgeType":"calls","source":1229,"target":1093},{"edgeType":"calls","source":52,"target":55},{"edgeType":"contains","source":398,"target":429},{"edgeType":"contains","source":1443,"target":2125},{"edgeType":"contains","source":388,"target":475},{"edgeType":"calls","source":121,"target":559},{"edgeType":"contains","source":540,"target":784},{"edgeType":"calls","source":2214,"target":156},{"edgeType":"calls","source":2152,"target":1021},{"edgeType":"calls","source":1529,"target":248},{"edgeType":"calls","source":121,"target":557},{"edgeType":"contains","source":283,"target":294},{"edgeType":"calls","source":1401,"target":252},{"edgeType":"calls","source":861,"target":872},{"edgeType":"calls","source":1503,"target":790},{"edgeType":"contains","source":465,"target":466},{"edgeType":"contains","source":374,"target":380},{"edgeType":"extends","source":717,"target":32},{"edgeType":"contains","source":398,"target":428},{"edgeType":"calls","source":898,"target":254},{"edgeType":"contains","source":1443,"target":2126},{"edgeType":"contains","source":540,"target":783},{"edgeType":"contains","source":388,"target":474},{"edgeType":"contains","source":1753,"target":1765},{"edgeType":"contains","source":1701,"target":999},{"edgeType":"calls","source":2152,"target":1022},{"edgeType":"contains","source":283,"target":297},{"edgeType":"calls","source":1396,"target":146},{"edgeType":"calls","source":1903,"target":549},{"edgeType":"calls","source":1900,"target":642},{"edgeType":"calls","source":2085,"target":2038},{"edgeType":"contains","source":374,"target":383},{"edgeType":"contains","source":1008,"target":1077},{"edgeType":"calls","source":1198,"target":206},{"edgeType":"contains","source":468,"target":640},{"edgeType":"calls","source":1680,"target":327},{"edgeType":"calls","source":1322,"target":1383},{"edgeType":"contains","source":1670,"target":1692},{"edgeType":"calls","source":1193,"target":97},{"edgeType":"contains","source":1901,"target":2195},{"edgeType":"contains","source":1443,"target":2123},{"edgeType":"contains","source":388,"target":477},{"edgeType":"calls","source":362,"target":225},{"edgeType":"calls","source":1459,"target":571},{"edgeType":"contains","source":468,"target":639},{"edgeType":"calls","source":2152,"target":1019},{"edgeType":"contains","source":283,"target":296},{"edgeType":"calls","source":1010,"target":1012},{"edgeType":"calls","source":1198,"target":205},{"edgeType":"contains","source":374,"target":382},{"edgeType":"imports","source":1823,"target":394},{"edgeType":"calls","source":696,"target":704},{"edgeType":"calls","source":1309,"target":992},{"edgeType":"calls","source":1680,"target":326},{"edgeType":"contains","source":1674,"target":1833},{"edgeType":"contains","source":1008,"target":1076},{"edgeType":"contains","source":1670,"target":1693},{"edgeType":"imports","source":1477,"target":1607},{"edgeType":"contains","source":1901,"target":2196},{"edgeType":"contains","source":388,"target":476},{"edgeType":"contains","source":1443,"target":2124},{"edgeType":"extends","source":1041,"target":32},{"edgeType":"calls","source":1459,"target":570},{"edgeType":"contains","source":1726,"target":1279},{"edgeType":"contains","source":1674,"target":1834},{"edgeType":"calls","source":121,"target":560},{"edgeType":"contains","source":1551,"target":1683},{"edgeType":"calls","source":754,"target":756},{"edgeType":"contains","source":391,"target":915},{"edgeType":"contains","source":1008,"target":1079},{"edgeType":"calls","source":121,"target":554},{"edgeType":"extends","source":1216,"target":1217},{"edgeType":"contains","source":374,"target":385},{"edgeType":"imports","source":1784,"target":17},{"edgeType":"contains","source":1443,"target":2129},{"edgeType":"calls","source":275,"target":273},{"edgeType":"calls","source":1503,"target":786},{"edgeType":"contains","source":388,"target":479},{"edgeType":"contains","source":1622,"target":1337},{"edgeType":"calls","source":1194,"target":852},{"edgeType":"contains","source":1547,"target":1548},{"edgeType":"calls","source":1308,"target":1282},{"edgeType":"calls","source":811,"target":41},{"edgeType":"contains","source":315,"target":364},{"edgeType":"contains","source":283,"target":299},{"edgeType":"contains","source":283,"target":298},{"edgeType":"contains","source":374,"target":384},{"edgeType":"contains","source":1701,"target":1531},{"edgeType":"contains","source":1443,"target":2130},{"edgeType":"calls","source":1503,"target":785},{"edgeType":"contains","source":388,"target":478},{"edgeType":"contains","source":1356,"target":1392},{"edgeType":"calls","source":275,"target":272},{"edgeType":"contains","source":315,"target":363},{"edgeType":"calls","source":121,"target":556},{"edgeType":"calls","source":724,"target":97},{"edgeType":"calls","source":1401,"target":251},{"edgeType":"calls","source":1503,"target":789},{"edgeType":"contains","source":2,"target":27},{"edgeType":"contains","source":100,"target":160},{"edgeType":"calls","source":754,"target":224},{"edgeType":"calls","source":1065,"target":97},{"edgeType":"contains","source":388,"target":481},{"edgeType":"calls","source":1503,"target":788},{"edgeType":"calls","source":1345,"target":1194},{"edgeType":"contains","source":1701,"target":1000},{"edgeType":"contains","source":283,"target":301},{"edgeType":"calls","source":853,"target":61},{"edgeType":"contains","source":374,"target":386},{"edgeType":"contains","source":391,"target":916},{"edgeType":"calls","source":1401,"target":250},{"edgeType":"calls","source":121,"target":555},{"edgeType":"calls","source":754,"target":223},{"edgeType":"contains","source":1008,"target":816},{"edgeType":"calls","source":743,"target":564},{"edgeType":"contains","source":267,"target":268},{"edgeType":"calls","source":2139,"target":97},{"edgeType":"contains","source":388,"target":480},{"edgeType":"contains","source":214,"target":853},{"edgeType":"contains","source":1443,"target":2128},{"edgeType":"calls","source":275,"target":274},{"edgeType":"contains","source":1836,"target":1837},{"edgeType":"contains","source":283,"target":300},{"edgeType":"calls","source":952,"target":158},{"edgeType":"calls","source":1606,"target":1025},{"edgeType":"contains","source":1008,"target":1083},{"edgeType":"calls","source":948,"target":546},{"edgeType":"calls","source":121,"target":550},{"edgeType":"contains","source":388,"target":484},{"edgeType":"contains","source":168,"target":169},{"edgeType":"extends","source":1901,"target":1920},{"edgeType":"calls","source":2094,"target":1489},{"edgeType":"calls","source":2109,"target":1024},{"edgeType":"contains","source":388,"target":483},{"edgeType":"contains","source":1552,"target":1661},{"edgeType":"contains","source":283,"target":303},{"edgeType":"calls","source":648,"target":333},{"edgeType":"calls","source":1194,"target":55},{"edgeType":"contains","source":4,"target":1553},{"edgeType":"calls","source":1903,"target":1859},{"edgeType":"calls","source":275,"target":269},{"edgeType":"extends","source":1306,"target":18},{"edgeType":"calls","source":231,"target":310},{"edgeType":"calls","source":1116,"target":94},{"edgeType":"calls","source":1606,"target":1024},{"edgeType":"contains","source":7,"target":1723},{"edgeType":"calls","source":121,"target":549},{"edgeType":"calls","source":1329,"target":97},{"edgeType":"calls","source":2109,"target":1025},{"edgeType":"contains","source":388,"target":482},{"edgeType":"contains","source":1552,"target":1662},{"edgeType":"calls","source":648,"target":332},{"edgeType":"contains","source":283,"target":302},{"edgeType":"contains","source":29,"target":777},{"edgeType":"contains","source":1566,"target":1753},{"edgeType":"calls","source":1116,"target":97},{"edgeType":"calls","source":121,"target":552},{"edgeType":"contains","source":7,"target":1726},{"edgeType":"calls","source":1208,"target":1209},{"edgeType":"contains","source":1443,"target":2131},{"edgeType":"contains","source":388,"target":486},{"edgeType":"calls","source":2109,"target":1022},{"edgeType":"contains","source":283,"target":305},{"edgeType":"contains","source":315,"target":370},{"edgeType":"calls","source":2160,"target":1291},{"edgeType":"calls","source":275,"target":271},{"edgeType":"calls","source":815,"target":179},{"edgeType":"calls","source":231,"target":312},{"edgeType":"calls","source":2111,"target":1489},{"edgeType":"calls","source":1345,"target":1189},{"edgeType":"calls","source":121,"target":551},{"edgeType":"contains","source":1860,"target":1889},{"edgeType":"contains","source":388,"target":485},{"edgeType":"contains","source":1477,"target":1078},{"edgeType":"contains","source":794,"target":847},{"edgeType":"calls","source":2109,"target":1023},{"edgeType":"imports","source":1477,"target":1087},{"edgeType":"imports","source":804,"target":17},{"edgeType":"contains","source":283,"target":304},{"edgeType":"calls","source":275,"target":270},{"edgeType":"calls","source":815,"target":178},{"edgeType":"contains","source":899,"target":1031},{"edgeType":"contains","source":1753,"target":1776},{"edgeType":"calls","source":2158,"target":1086},{"edgeType":"calls","source":1606,"target":1021},{"edgeType":"calls","source":1504,"target":1540},{"edgeType":"calls","source":109,"target":125},{"edgeType":"contains","source":388,"target":488},{"edgeType":"calls","source":1208,"target":146},{"edgeType":"contains","source":1552,"target":1665},{"edgeType":"calls","source":760,"target":556},{"edgeType":"calls","source":1584,"target":381},{"edgeType":"imports","source":1477,"target":29},{"edgeType":"calls","source":2109,"target":1020},{"edgeType":"contains","source":1899,"target":2007},{"edgeType":"calls","source":648,"target":329},{"edgeType":"imports","source":38,"target":770},{"edgeType":"calls","source":502,"target":97},{"edgeType":"calls","source":109,"target":124},{"edgeType":"calls","source":1606,"target":1020},{"edgeType":"contains","source":899,"target":1030},{"edgeType":"contains","source":7,"target":934},{"edgeType":"contains","source":388,"target":487},{"edgeType":"calls","source":1584,"target":380},{"edgeType":"calls","source":938,"target":323},{"edgeType":"calls","source":1401,"target":1032},{"edgeType":"calls","source":2109,"target":1021},{"edgeType":"contains","source":1795,"target":1797},{"edgeType":"calls","source":1201,"target":97},{"edgeType":"calls","source":1606,"target":1019},{"edgeType":"calls","source":1093,"target":274},{"edgeType":"contains","source":283,"target":306},{"edgeType":"calls","source":2104,"target":912},{"edgeType":"contains","source":468,"target":649},{"edgeType":"calls","source":648,"target":328},{"edgeType":"contains","source":899,"target":1033},{"edgeType":"contains","source":991,"target":1088},{"edgeType":"imports","source":494,"target":902},{"edgeType":"calls","source":1606,"target":1023},{"edgeType":"contains","source":267,"target":277},{"edgeType":"extends","source":2225,"target":1920},{"edgeType":"contains","source":283,"target":309},{"edgeType":"calls","source":1133,"target":94},{"edgeType":"calls","source":2207,"target":94},{"edgeType":"calls","source":648,"target":331},{"edgeType":"contains","source":1333,"target":1846},{"edgeType":"calls","source":792,"target":94},{"edgeType":"contains","source":804,"target":806},{"edgeType":"calls","source":1606,"target":1022},{"edgeType":"contains","source":267,"target":276},{"edgeType":"contains","source":388,"target":489},{"edgeType":"calls","source":760,"target":557},{"edgeType":"contains","source":1547,"target":1555},{"edgeType":"calls","source":952,"target":948},{"edgeType":"contains","source":283,"target":308},{"edgeType":"calls","source":2109,"target":1019},{"edgeType":"extends","source":905,"target":32},{"edgeType":"imports","source":1827,"target":275},{"edgeType":"calls","source":648,"target":330},{"edgeType":"contains","source":1333,"target":1847},{"edgeType":"calls","source":2000,"target":2020}],"nodes":[{"groupName":"","id":2,"nodeType":"Repo","repoName":"psf#requests#1ba83c47ce7b177efe90d5f51f7760680f72eda0"},{"id":3,"name":"","nodeType":"Package"},{"id":4,"name":"docs/community","nodeType":"Package"},{"id":5,"name":"out-there.rst","nodeType":"TextFile","path":"docs/community","text":"Integrations\n============\n\nScraperWiki\n------------\n\n`ScraperWiki `_ is an excellent service that allows\nyou to run Python, Ruby, and PHP scraper scripts on the web. Now, Requests\nv0.6.1 is available to use in your scrapers!\n\nTo give it a try, simply::\n\n import requests\n\nPython for iOS\n--------------\n\nRequests is built into the wonderful `Python for iOS `_ runtime!\n\nTo give it a try, simply::\n\n import requests\n\n\nArticles & Talks\n================\n- `Python for the Web `_ teaches how to use Python to interact with the web, using Requests.\n- `Daniel Greenfield's Review of Requests `_\n- `My 'Python for Humans' talk `_ ( `audio `_ )\n- `Issac Kelly's 'Consuming Web APIs' talk `_\n- `Blog post about Requests via Yum `_\n- `Russian blog post introducing Requests `_\n- `French blog post introducing Requests `_\n"},{"id":6,"name":"Makefile","nodeType":"TextFile","path":"","text":"init:\n\tpip install -r requirements.txt\n\ntest:\n\tpy.test\n\nci: init\n\tpy.test --junitxml=junit.xml\n\ncerts:\n\tcurl http://ci.kennethreitz.org/job/ca-bundle/lastSuccessfulBuild/artifact/cacerts.pem -o requests/cacert.pem\n\ndeps: urllib3 charade\n\nurllib3:\n\trm -fr requests/packages/urllib3\n\tgit clone https://github.com/shazow/urllib3.git\n\tmv urllib3/urllib3 requests/packages/\n\trm -fr urllib3\n\ncharade:\n\trm -fr requests/packages/charade\n\tgit clone https://github.com/sigmavirus24/charade.git\n\tmv charade/charade requests/packages/\n\trm -fr charade\n"},{"id":7,"name":"requests/packages/charade","nodeType":"Package"},{"fileName":"euctwprober.py","filePath":"requests/packages/charade","id":8,"nodeType":"File","text":"######################## BEGIN LICENSE BLOCK ########################\n# The Original Code is mozilla.org code.\n#\n# The Initial Developer of the Original Code is\n# Netscape Communications Corporation.\n# Portions created by the Initial Developer are Copyright (C) 1998\n# the Initial Developer. All Rights Reserved.\n#\n# Contributor(s):\n# Mark Pilgrim - port to Python\n#\n# This library is free software; you can redistribute it and/or\n# modify it under the terms of the GNU Lesser General Public\n# License as published by the Free Software Foundation; either\n# version 2.1 of the License, or (at your option) any later version.\n# \n# This library is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n# Lesser General Public License for more details.\n# \n# You should have received a copy of the GNU Lesser General Public\n# License along with this library; if not, write to the Free Software\n# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n# 02110-1301 USA\n######################### END LICENSE BLOCK #########################\n\nfrom .mbcharsetprober import MultiByteCharSetProber\nfrom .codingstatemachine import CodingStateMachine\nfrom .chardistribution import EUCTWDistributionAnalysis\nfrom .mbcssm import EUCTWSMModel\n\nclass EUCTWProber(MultiByteCharSetProber):\n def __init__(self):\n MultiByteCharSetProber.__init__(self)\n self._mCodingSM = CodingStateMachine(EUCTWSMModel)\n self._mDistributionAnalyzer = EUCTWDistributionAnalysis()\n self.reset()\n\n def get_charset_name(self):\n return \"EUC-TW\"\n"},{"id":9,"name":"requests/packages/urllib3","nodeType":"Package"},{"fileName":"exceptions.py","filePath":"requests/packages/urllib3","id":10,"nodeType":"File","text":"# urllib3/exceptions.py\n# Copyright 2008-2013 Andrey Petrov and contributors (see CONTRIBUTORS.txt)\n#\n# This module is part of urllib3 and is released under\n# the MIT License: http://www.opensource.org/licenses/mit-license.php\n\n\n## Base Exceptions\n\nclass HTTPError(Exception):\n \"Base exception used by this module.\"\n pass\n\n\nclass PoolError(HTTPError):\n \"Base exception for errors caused within a pool.\"\n def __init__(self, pool, message):\n self.pool = pool\n HTTPError.__init__(self, \"%s: %s\" % (pool, message))\n\n def __reduce__(self):\n # For pickling purposes.\n return self.__class__, (None, None)\n\n\nclass RequestError(PoolError):\n \"Base exception for PoolErrors that have associated URLs.\"\n def __init__(self, pool, url, message):\n self.url = url\n PoolError.__init__(self, pool, message)\n\n def __reduce__(self):\n # For pickling purposes.\n return self.__class__, (None, self.url, None)\n\n\nclass SSLError(HTTPError):\n \"Raised when SSL certificate fails in an HTTPS connection.\"\n pass\n\n\nclass ProxyError(HTTPError):\n \"Raised when the connection to a proxy fails.\"\n pass\n\n\nclass DecodeError(HTTPError):\n \"Raised when automatic decoding based on Content-Type fails.\"\n pass\n\n\n## Leaf Exceptions\n\nclass MaxRetryError(RequestError):\n \"Raised when the maximum number of retries is exceeded.\"\n\n def __init__(self, pool, url, reason=None):\n self.reason = reason\n\n message = \"Max retries exceeded with url: %s\" % url\n if reason:\n message += \" (Caused by %s: %s)\" % (type(reason), reason)\n else:\n message += \" (Caused by redirect)\"\n\n RequestError.__init__(self, pool, url, message)\n\n\nclass HostChangedError(RequestError):\n \"Raised when an existing pool gets a request for a foreign host.\"\n\n def __init__(self, pool, url, retries=3):\n message = \"Tried to open a foreign host with url: %s\" % url\n RequestError.__init__(self, pool, url, message)\n self.retries = retries\n\n\nclass TimeoutStateError(HTTPError):\n \"\"\" Raised when passing an invalid state to a timeout \"\"\"\n pass\n\n\nclass TimeoutError(HTTPError):\n \"\"\" Raised when a socket timeout error occurs.\n\n Catching this error will catch both :exc:`ReadTimeoutErrors\n ` and :exc:`ConnectTimeoutErrors `.\n \"\"\"\n pass\n\n\nclass ReadTimeoutError(TimeoutError, RequestError):\n \"Raised when a socket timeout occurs while receiving data from a server\"\n pass\n\n\n# This timeout error does not have a URL attached and needs to inherit from the\n# base HTTPError\nclass ConnectTimeoutError(TimeoutError):\n \"Raised when a socket timeout occurs while connecting to a server\"\n pass\n\n\nclass EmptyPoolError(PoolError):\n \"Raised when a pool runs out of connections and no more are allowed.\"\n pass\n\n\nclass ClosedPoolError(PoolError):\n \"Raised when a request enters a pool after the pool has been closed.\"\n pass\n\n\nclass LocationParseError(ValueError, HTTPError):\n \"Raised when get_host or similar fails to parse the URL input.\"\n\n def __init__(self, location):\n message = \"Failed to parse: %s\" % location\n HTTPError.__init__(self, message)\n\n self.location = location\n"},{"className":"HTTPError","col":0,"comment":"Base exception used by this module.","endLoc":12,"id":11,"nodeType":"Class","startLoc":10,"text":"class HTTPError(Exception):\n \"Base exception used by this module.\"\n pass"},{"fileName":"latin1prober.py","filePath":"requests/packages/charade","id":12,"nodeType":"File","text":"######################## BEGIN LICENSE BLOCK ########################\n# The Original Code is Mozilla Universal charset detector code.\n#\n# The Initial Developer of the Original Code is\n# Netscape Communications Corporation.\n# Portions created by the Initial Developer are Copyright (C) 2001\n# the Initial Developer. All Rights Reserved.\n#\n# Contributor(s):\n# Mark Pilgrim - port to Python\n# Shy Shalom - original C code\n#\n# This library is free software; you can redistribute it and/or\n# modify it under the terms of the GNU Lesser General Public\n# License as published by the Free Software Foundation; either\n# version 2.1 of the License, or (at your option) any later version.\n#\n# This library is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n# Lesser General Public License for more details.\n#\n# You should have received a copy of the GNU Lesser General Public\n# License along with this library; if not, write to the Free Software\n# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n# 02110-1301 USA\n######################### END LICENSE BLOCK #########################\n\nfrom .charsetprober import CharSetProber\nfrom .constants import eNotMe\nfrom .compat import wrap_ord\n\nFREQ_CAT_NUM = 4\n\nUDF = 0 # undefined\nOTH = 1 # other\nASC = 2 # ascii capital letter\nASS = 3 # ascii small letter\nACV = 4 # accent capital vowel\nACO = 5 # accent capital other\nASV = 6 # accent small vowel\nASO = 7 # accent small other\nCLASS_NUM = 8 # total classes\n\nLatin1_CharToClass = (\n OTH, OTH, OTH, OTH, OTH, OTH, OTH, OTH, # 00 - 07\n OTH, OTH, OTH, OTH, OTH, OTH, OTH, OTH, # 08 - 0F\n OTH, OTH, OTH, OTH, OTH, OTH, OTH, OTH, # 10 - 17\n OTH, OTH, OTH, OTH, OTH, OTH, OTH, OTH, # 18 - 1F\n OTH, OTH, OTH, OTH, OTH, OTH, OTH, OTH, # 20 - 27\n OTH, OTH, OTH, OTH, OTH, OTH, OTH, OTH, # 28 - 2F\n OTH, OTH, OTH, OTH, OTH, OTH, OTH, OTH, # 30 - 37\n OTH, OTH, OTH, OTH, OTH, OTH, OTH, OTH, # 38 - 3F\n OTH, ASC, ASC, ASC, ASC, ASC, ASC, ASC, # 40 - 47\n ASC, ASC, ASC, ASC, ASC, ASC, ASC, ASC, # 48 - 4F\n ASC, ASC, ASC, ASC, ASC, ASC, ASC, ASC, # 50 - 57\n ASC, ASC, ASC, OTH, OTH, OTH, OTH, OTH, # 58 - 5F\n OTH, ASS, ASS, ASS, ASS, ASS, ASS, ASS, # 60 - 67\n ASS, ASS, ASS, ASS, ASS, ASS, ASS, ASS, # 68 - 6F\n ASS, ASS, ASS, ASS, ASS, ASS, ASS, ASS, # 70 - 77\n ASS, ASS, ASS, OTH, OTH, OTH, OTH, OTH, # 78 - 7F\n OTH, UDF, OTH, ASO, OTH, OTH, OTH, OTH, # 80 - 87\n OTH, OTH, ACO, OTH, ACO, UDF, ACO, UDF, # 88 - 8F\n UDF, OTH, OTH, OTH, OTH, OTH, OTH, OTH, # 90 - 97\n OTH, OTH, ASO, OTH, ASO, UDF, ASO, ACO, # 98 - 9F\n OTH, OTH, OTH, OTH, OTH, OTH, OTH, OTH, # A0 - A7\n OTH, OTH, OTH, OTH, OTH, OTH, OTH, OTH, # A8 - AF\n OTH, OTH, OTH, OTH, OTH, OTH, OTH, OTH, # B0 - B7\n OTH, OTH, OTH, OTH, OTH, OTH, OTH, OTH, # B8 - BF\n ACV, ACV, ACV, ACV, ACV, ACV, ACO, ACO, # C0 - C7\n ACV, ACV, ACV, ACV, ACV, ACV, ACV, ACV, # C8 - CF\n ACO, ACO, ACV, ACV, ACV, ACV, ACV, OTH, # D0 - D7\n ACV, ACV, ACV, ACV, ACV, ACO, ACO, ACO, # D8 - DF\n ASV, ASV, ASV, ASV, ASV, ASV, ASO, ASO, # E0 - E7\n ASV, ASV, ASV, ASV, ASV, ASV, ASV, ASV, # E8 - EF\n ASO, ASO, ASV, ASV, ASV, ASV, ASV, OTH, # F0 - F7\n ASV, ASV, ASV, ASV, ASV, ASO, ASO, ASO, # F8 - FF\n)\n\n# 0 : illegal\n# 1 : very unlikely\n# 2 : normal\n# 3 : very likely\nLatin1ClassModel = (\n # UDF OTH ASC ASS ACV ACO ASV ASO\n 0, 0, 0, 0, 0, 0, 0, 0, # UDF\n 0, 3, 3, 3, 3, 3, 3, 3, # OTH\n 0, 3, 3, 3, 3, 3, 3, 3, # ASC\n 0, 3, 3, 3, 1, 1, 3, 3, # ASS\n 0, 3, 3, 3, 1, 2, 1, 2, # ACV\n 0, 3, 3, 3, 3, 3, 3, 3, # ACO\n 0, 3, 1, 3, 1, 1, 1, 3, # ASV\n 0, 3, 1, 3, 1, 1, 3, 3, # ASO\n)\n\n\nclass Latin1Prober(CharSetProber):\n def __init__(self):\n CharSetProber.__init__(self)\n self.reset()\n\n def reset(self):\n self._mLastCharClass = OTH\n self._mFreqCounter = [0] * FREQ_CAT_NUM\n CharSetProber.reset(self)\n\n def get_charset_name(self):\n return \"windows-1252\"\n\n def feed(self, aBuf):\n aBuf = self.filter_with_english_letters(aBuf)\n for c in aBuf:\n charClass = Latin1_CharToClass[wrap_ord(c)]\n freq = Latin1ClassModel[(self._mLastCharClass * CLASS_NUM)\n + charClass]\n if freq == 0:\n self._mState = eNotMe\n break\n self._mFreqCounter[freq] += 1\n self._mLastCharClass = charClass\n\n return self.get_state()\n\n def get_confidence(self):\n if self.get_state() == eNotMe:\n return 0.01\n\n total = sum(self._mFreqCounter)\n if total < 0.01:\n confidence = 0.0\n else:\n confidence = ((float(self._mFreqCounter[3]) / total)\n - (self._mFreqCounter[1] * 20.0 / total))\n if confidence < 0.0:\n confidence = 0.0\n # lower the confidence of latin1 so that other more accurate\n # detector can take priority.\n confidence = confidence * 0.5\n return confidence\n"},{"fileName":"escsm.py","filePath":"requests/packages/charade","id":13,"nodeType":"File","text":"######################## BEGIN LICENSE BLOCK ########################\n# The Original Code is mozilla.org code.\n#\n# The Initial Developer of the Original Code is\n# Netscape Communications Corporation.\n# Portions created by the Initial Developer are Copyright (C) 1998\n# the Initial Developer. All Rights Reserved.\n#\n# Contributor(s):\n# Mark Pilgrim - port to Python\n#\n# This library is free software; you can redistribute it and/or\n# modify it under the terms of the GNU Lesser General Public\n# License as published by the Free Software Foundation; either\n# version 2.1 of the License, or (at your option) any later version.\n#\n# This library is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n# Lesser General Public License for more details.\n#\n# You should have received a copy of the GNU Lesser General Public\n# License along with this library; if not, write to the Free Software\n# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n# 02110-1301 USA\n######################### END LICENSE BLOCK #########################\n\nfrom .constants import eStart, eError, eItsMe\n\nHZ_cls = (\n1,0,0,0,0,0,0,0, # 00 - 07\n0,0,0,0,0,0,0,0, # 08 - 0f\n0,0,0,0,0,0,0,0, # 10 - 17\n0,0,0,1,0,0,0,0, # 18 - 1f\n0,0,0,0,0,0,0,0, # 20 - 27\n0,0,0,0,0,0,0,0, # 28 - 2f\n0,0,0,0,0,0,0,0, # 30 - 37\n0,0,0,0,0,0,0,0, # 38 - 3f\n0,0,0,0,0,0,0,0, # 40 - 47\n0,0,0,0,0,0,0,0, # 48 - 4f\n0,0,0,0,0,0,0,0, # 50 - 57\n0,0,0,0,0,0,0,0, # 58 - 5f\n0,0,0,0,0,0,0,0, # 60 - 67\n0,0,0,0,0,0,0,0, # 68 - 6f\n0,0,0,0,0,0,0,0, # 70 - 77\n0,0,0,4,0,5,2,0, # 78 - 7f\n1,1,1,1,1,1,1,1, # 80 - 87\n1,1,1,1,1,1,1,1, # 88 - 8f\n1,1,1,1,1,1,1,1, # 90 - 97\n1,1,1,1,1,1,1,1, # 98 - 9f\n1,1,1,1,1,1,1,1, # a0 - a7\n1,1,1,1,1,1,1,1, # a8 - af\n1,1,1,1,1,1,1,1, # b0 - b7\n1,1,1,1,1,1,1,1, # b8 - bf\n1,1,1,1,1,1,1,1, # c0 - c7\n1,1,1,1,1,1,1,1, # c8 - cf\n1,1,1,1,1,1,1,1, # d0 - d7\n1,1,1,1,1,1,1,1, # d8 - df\n1,1,1,1,1,1,1,1, # e0 - e7\n1,1,1,1,1,1,1,1, # e8 - ef\n1,1,1,1,1,1,1,1, # f0 - f7\n1,1,1,1,1,1,1,1, # f8 - ff\n)\n\nHZ_st = (\neStart,eError, 3,eStart,eStart,eStart,eError,eError,# 00-07\neError,eError,eError,eError,eItsMe,eItsMe,eItsMe,eItsMe,# 08-0f\neItsMe,eItsMe,eError,eError,eStart,eStart, 4,eError,# 10-17\n 5,eError, 6,eError, 5, 5, 4,eError,# 18-1f\n 4,eError, 4, 4, 4,eError, 4,eError,# 20-27\n 4,eItsMe,eStart,eStart,eStart,eStart,eStart,eStart,# 28-2f\n)\n\nHZCharLenTable = (0, 0, 0, 0, 0, 0)\n\nHZSMModel = {'classTable': HZ_cls,\n 'classFactor': 6,\n 'stateTable': HZ_st,\n 'charLenTable': HZCharLenTable,\n 'name': \"HZ-GB-2312\"}\n\nISO2022CN_cls = (\n2,0,0,0,0,0,0,0, # 00 - 07\n0,0,0,0,0,0,0,0, # 08 - 0f\n0,0,0,0,0,0,0,0, # 10 - 17\n0,0,0,1,0,0,0,0, # 18 - 1f\n0,0,0,0,0,0,0,0, # 20 - 27\n0,3,0,0,0,0,0,0, # 28 - 2f\n0,0,0,0,0,0,0,0, # 30 - 37\n0,0,0,0,0,0,0,0, # 38 - 3f\n0,0,0,4,0,0,0,0, # 40 - 47\n0,0,0,0,0,0,0,0, # 48 - 4f\n0,0,0,0,0,0,0,0, # 50 - 57\n0,0,0,0,0,0,0,0, # 58 - 5f\n0,0,0,0,0,0,0,0, # 60 - 67\n0,0,0,0,0,0,0,0, # 68 - 6f\n0,0,0,0,0,0,0,0, # 70 - 77\n0,0,0,0,0,0,0,0, # 78 - 7f\n2,2,2,2,2,2,2,2, # 80 - 87\n2,2,2,2,2,2,2,2, # 88 - 8f\n2,2,2,2,2,2,2,2, # 90 - 97\n2,2,2,2,2,2,2,2, # 98 - 9f\n2,2,2,2,2,2,2,2, # a0 - a7\n2,2,2,2,2,2,2,2, # a8 - af\n2,2,2,2,2,2,2,2, # b0 - b7\n2,2,2,2,2,2,2,2, # b8 - bf\n2,2,2,2,2,2,2,2, # c0 - c7\n2,2,2,2,2,2,2,2, # c8 - cf\n2,2,2,2,2,2,2,2, # d0 - d7\n2,2,2,2,2,2,2,2, # d8 - df\n2,2,2,2,2,2,2,2, # e0 - e7\n2,2,2,2,2,2,2,2, # e8 - ef\n2,2,2,2,2,2,2,2, # f0 - f7\n2,2,2,2,2,2,2,2, # f8 - ff\n)\n\nISO2022CN_st = (\neStart, 3,eError,eStart,eStart,eStart,eStart,eStart,# 00-07\neStart,eError,eError,eError,eError,eError,eError,eError,# 08-0f\neError,eError,eItsMe,eItsMe,eItsMe,eItsMe,eItsMe,eItsMe,# 10-17\neItsMe,eItsMe,eItsMe,eError,eError,eError, 4,eError,# 18-1f\neError,eError,eError,eItsMe,eError,eError,eError,eError,# 20-27\n 5, 6,eError,eError,eError,eError,eError,eError,# 28-2f\neError,eError,eError,eItsMe,eError,eError,eError,eError,# 30-37\neError,eError,eError,eError,eError,eItsMe,eError,eStart,# 38-3f\n)\n\nISO2022CNCharLenTable = (0, 0, 0, 0, 0, 0, 0, 0, 0)\n\nISO2022CNSMModel = {'classTable': ISO2022CN_cls,\n 'classFactor': 9,\n 'stateTable': ISO2022CN_st,\n 'charLenTable': ISO2022CNCharLenTable,\n 'name': \"ISO-2022-CN\"}\n\nISO2022JP_cls = (\n2,0,0,0,0,0,0,0, # 00 - 07\n0,0,0,0,0,0,2,2, # 08 - 0f\n0,0,0,0,0,0,0,0, # 10 - 17\n0,0,0,1,0,0,0,0, # 18 - 1f\n0,0,0,0,7,0,0,0, # 20 - 27\n3,0,0,0,0,0,0,0, # 28 - 2f\n0,0,0,0,0,0,0,0, # 30 - 37\n0,0,0,0,0,0,0,0, # 38 - 3f\n6,0,4,0,8,0,0,0, # 40 - 47\n0,9,5,0,0,0,0,0, # 48 - 4f\n0,0,0,0,0,0,0,0, # 50 - 57\n0,0,0,0,0,0,0,0, # 58 - 5f\n0,0,0,0,0,0,0,0, # 60 - 67\n0,0,0,0,0,0,0,0, # 68 - 6f\n0,0,0,0,0,0,0,0, # 70 - 77\n0,0,0,0,0,0,0,0, # 78 - 7f\n2,2,2,2,2,2,2,2, # 80 - 87\n2,2,2,2,2,2,2,2, # 88 - 8f\n2,2,2,2,2,2,2,2, # 90 - 97\n2,2,2,2,2,2,2,2, # 98 - 9f\n2,2,2,2,2,2,2,2, # a0 - a7\n2,2,2,2,2,2,2,2, # a8 - af\n2,2,2,2,2,2,2,2, # b0 - b7\n2,2,2,2,2,2,2,2, # b8 - bf\n2,2,2,2,2,2,2,2, # c0 - c7\n2,2,2,2,2,2,2,2, # c8 - cf\n2,2,2,2,2,2,2,2, # d0 - d7\n2,2,2,2,2,2,2,2, # d8 - df\n2,2,2,2,2,2,2,2, # e0 - e7\n2,2,2,2,2,2,2,2, # e8 - ef\n2,2,2,2,2,2,2,2, # f0 - f7\n2,2,2,2,2,2,2,2, # f8 - ff\n)\n\nISO2022JP_st = (\neStart, 3,eError,eStart,eStart,eStart,eStart,eStart,# 00-07\neStart,eStart,eError,eError,eError,eError,eError,eError,# 08-0f\neError,eError,eError,eError,eItsMe,eItsMe,eItsMe,eItsMe,# 10-17\neItsMe,eItsMe,eItsMe,eItsMe,eItsMe,eItsMe,eError,eError,# 18-1f\neError, 5,eError,eError,eError, 4,eError,eError,# 20-27\neError,eError,eError, 6,eItsMe,eError,eItsMe,eError,# 28-2f\neError,eError,eError,eError,eError,eError,eItsMe,eItsMe,# 30-37\neError,eError,eError,eItsMe,eError,eError,eError,eError,# 38-3f\neError,eError,eError,eError,eItsMe,eError,eStart,eStart,# 40-47\n)\n\nISO2022JPCharLenTable = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0)\n\nISO2022JPSMModel = {'classTable': ISO2022JP_cls,\n 'classFactor': 10,\n 'stateTable': ISO2022JP_st,\n 'charLenTable': ISO2022JPCharLenTable,\n 'name': \"ISO-2022-JP\"}\n\nISO2022KR_cls = (\n2,0,0,0,0,0,0,0, # 00 - 07\n0,0,0,0,0,0,0,0, # 08 - 0f\n0,0,0,0,0,0,0,0, # 10 - 17\n0,0,0,1,0,0,0,0, # 18 - 1f\n0,0,0,0,3,0,0,0, # 20 - 27\n0,4,0,0,0,0,0,0, # 28 - 2f\n0,0,0,0,0,0,0,0, # 30 - 37\n0,0,0,0,0,0,0,0, # 38 - 3f\n0,0,0,5,0,0,0,0, # 40 - 47\n0,0,0,0,0,0,0,0, # 48 - 4f\n0,0,0,0,0,0,0,0, # 50 - 57\n0,0,0,0,0,0,0,0, # 58 - 5f\n0,0,0,0,0,0,0,0, # 60 - 67\n0,0,0,0,0,0,0,0, # 68 - 6f\n0,0,0,0,0,0,0,0, # 70 - 77\n0,0,0,0,0,0,0,0, # 78 - 7f\n2,2,2,2,2,2,2,2, # 80 - 87\n2,2,2,2,2,2,2,2, # 88 - 8f\n2,2,2,2,2,2,2,2, # 90 - 97\n2,2,2,2,2,2,2,2, # 98 - 9f\n2,2,2,2,2,2,2,2, # a0 - a7\n2,2,2,2,2,2,2,2, # a8 - af\n2,2,2,2,2,2,2,2, # b0 - b7\n2,2,2,2,2,2,2,2, # b8 - bf\n2,2,2,2,2,2,2,2, # c0 - c7\n2,2,2,2,2,2,2,2, # c8 - cf\n2,2,2,2,2,2,2,2, # d0 - d7\n2,2,2,2,2,2,2,2, # d8 - df\n2,2,2,2,2,2,2,2, # e0 - e7\n2,2,2,2,2,2,2,2, # e8 - ef\n2,2,2,2,2,2,2,2, # f0 - f7\n2,2,2,2,2,2,2,2, # f8 - ff\n)\n\nISO2022KR_st = (\neStart, 3,eError,eStart,eStart,eStart,eError,eError,# 00-07\neError,eError,eError,eError,eItsMe,eItsMe,eItsMe,eItsMe,# 08-0f\neItsMe,eItsMe,eError,eError,eError, 4,eError,eError,# 10-17\neError,eError,eError,eError, 5,eError,eError,eError,# 18-1f\neError,eError,eError,eItsMe,eStart,eStart,eStart,eStart,# 20-27\n)\n\nISO2022KRCharLenTable = (0, 0, 0, 0, 0, 0)\n\nISO2022KRSMModel = {'classTable': ISO2022KR_cls,\n 'classFactor': 6,\n 'stateTable': ISO2022KR_st,\n 'charLenTable': ISO2022KRCharLenTable,\n 'name': \"ISO-2022-KR\"}\n\n# flake8: noqa\n"},{"fileName":"langhungarianmodel.py","filePath":"requests/packages/charade","id":14,"nodeType":"File","text":"######################## BEGIN LICENSE BLOCK ########################\n# The Original Code is Mozilla Communicator client code.\n#\n# The Initial Developer of the Original Code is\n# Netscape Communications Corporation.\n# Portions created by the Initial Developer are Copyright (C) 1998\n# the Initial Developer. All Rights Reserved.\n#\n# Contributor(s):\n# Mark Pilgrim - port to Python\n#\n# This library is free software; you can redistribute it and/or\n# modify it under the terms of the GNU Lesser General Public\n# License as published by the Free Software Foundation; either\n# version 2.1 of the License, or (at your option) any later version.\n#\n# This library is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n# Lesser General Public License for more details.\n#\n# You should have received a copy of the GNU Lesser General Public\n# License along with this library; if not, write to the Free Software\n# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n# 02110-1301 USA\n######################### END LICENSE BLOCK #########################\n\n# 255: Control characters that usually does not exist in any text\n# 254: Carriage/Return\n# 253: symbol (punctuation) that does not belong to word\n# 252: 0 - 9\n\n# Character Mapping Table:\nLatin2_HungarianCharToOrderMap = (\n255,255,255,255,255,255,255,255,255,255,254,255,255,254,255,255, # 00\n255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, # 10\n253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253, # 20\n252,252,252,252,252,252,252,252,252,252,253,253,253,253,253,253, # 30\n253, 28, 40, 54, 45, 32, 50, 49, 38, 39, 53, 36, 41, 34, 35, 47,\n 46, 71, 43, 33, 37, 57, 48, 64, 68, 55, 52,253,253,253,253,253,\n253, 2, 18, 26, 17, 1, 27, 12, 20, 9, 22, 7, 6, 13, 4, 8,\n 23, 67, 10, 5, 3, 21, 19, 65, 62, 16, 11,253,253,253,253,253,\n159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,\n175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,\n191,192,193,194,195,196,197, 75,198,199,200,201,202,203,204,205,\n 79,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,\n221, 51, 81,222, 78,223,224,225,226, 44,227,228,229, 61,230,231,\n232,233,234, 58,235, 66, 59,236,237,238, 60, 69, 63,239,240,241,\n 82, 14, 74,242, 70, 80,243, 72,244, 15, 83, 77, 84, 30, 76, 85,\n245,246,247, 25, 73, 42, 24,248,249,250, 31, 56, 29,251,252,253,\n)\n\nwin1250HungarianCharToOrderMap = (\n255,255,255,255,255,255,255,255,255,255,254,255,255,254,255,255, # 00\n255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, # 10\n253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253, # 20\n252,252,252,252,252,252,252,252,252,252,253,253,253,253,253,253, # 30\n253, 28, 40, 54, 45, 32, 50, 49, 38, 39, 53, 36, 41, 34, 35, 47,\n 46, 72, 43, 33, 37, 57, 48, 64, 68, 55, 52,253,253,253,253,253,\n253, 2, 18, 26, 17, 1, 27, 12, 20, 9, 22, 7, 6, 13, 4, 8,\n 23, 67, 10, 5, 3, 21, 19, 65, 62, 16, 11,253,253,253,253,253,\n161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,\n177,178,179,180, 78,181, 69,182,183,184,185,186,187,188,189,190,\n191,192,193,194,195,196,197, 76,198,199,200,201,202,203,204,205,\n 81,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,\n221, 51, 83,222, 80,223,224,225,226, 44,227,228,229, 61,230,231,\n232,233,234, 58,235, 66, 59,236,237,238, 60, 70, 63,239,240,241,\n 84, 14, 75,242, 71, 82,243, 73,244, 15, 85, 79, 86, 30, 77, 87,\n245,246,247, 25, 74, 42, 24,248,249,250, 31, 56, 29,251,252,253,\n)\n\n# Model Table:\n# total sequences: 100%\n# first 512 sequences: 94.7368%\n# first 1024 sequences:5.2623%\n# rest sequences: 0.8894%\n# negative sequences: 0.0009%\nHungarianLangModel = (\n0,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,1,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,\n3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,3,3,2,2,3,3,1,1,2,2,2,2,2,1,2,\n3,2,2,3,3,3,3,3,2,3,3,3,3,3,3,1,2,3,3,3,3,2,3,3,1,1,3,3,0,1,1,1,\n0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,\n3,2,1,3,3,3,3,3,2,3,3,3,3,3,1,1,2,3,3,3,3,3,3,3,1,1,3,2,0,1,1,1,\n0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,\n3,3,3,3,3,3,3,3,3,3,3,1,1,2,3,3,3,1,3,3,3,3,3,1,3,3,2,2,0,3,2,3,\n0,0,0,0,0,0,0,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,\n3,3,3,3,3,3,2,3,3,3,2,3,3,2,3,3,3,3,3,2,3,3,2,2,3,2,3,2,0,3,2,2,\n0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,\n3,3,3,3,3,3,2,3,3,3,3,3,2,3,3,3,1,2,3,2,2,3,1,2,3,3,2,2,0,3,3,3,\n0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,\n3,3,3,3,3,3,3,3,3,3,2,2,3,3,3,3,3,3,2,3,3,3,3,2,3,3,3,3,0,2,3,2,\n0,0,0,1,1,0,0,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,\n3,3,3,3,3,3,3,3,3,3,3,1,1,1,3,3,2,1,3,2,2,3,2,1,3,2,2,1,0,3,3,1,\n0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,\n3,2,2,3,3,3,3,3,1,2,3,3,3,3,1,2,1,3,3,3,3,2,2,3,1,1,3,2,0,1,1,1,\n0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,\n3,3,3,3,3,3,3,3,2,2,3,3,3,3,3,2,1,3,3,3,3,3,2,2,1,3,3,3,0,1,1,2,\n0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,\n3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,2,3,3,2,3,3,3,2,0,3,2,3,\n0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,1,0,\n3,3,3,3,3,3,2,3,3,3,2,3,2,3,3,3,1,3,2,2,2,3,1,1,3,3,1,1,0,3,3,2,\n0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,\n3,3,3,3,3,3,3,2,3,3,3,2,3,2,3,3,3,2,3,3,3,3,3,1,2,3,2,2,0,2,2,2,\n0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,\n3,3,3,2,2,2,3,1,3,3,2,2,1,3,3,3,1,1,3,1,2,3,2,3,2,2,2,1,0,2,2,2,\n0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,\n3,1,1,3,3,3,3,3,1,2,3,3,3,3,1,2,1,3,3,3,2,2,3,2,1,0,3,2,0,1,1,0,\n0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n3,1,1,3,3,3,3,3,1,2,3,3,3,3,1,1,0,3,3,3,3,0,2,3,0,0,2,1,0,1,0,0,\n0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n3,3,3,3,3,3,2,2,3,3,2,2,2,2,3,3,0,1,2,3,2,3,2,2,3,2,1,2,0,2,2,2,\n0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,\n3,3,3,3,3,3,1,2,3,3,3,2,1,2,3,3,2,2,2,3,2,3,3,1,3,3,1,1,0,2,3,2,\n0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,\n3,3,3,1,2,2,2,2,3,3,3,1,1,1,3,3,1,1,3,1,1,3,2,1,2,3,1,1,0,2,2,2,\n0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,\n3,3,3,2,1,2,1,1,3,3,1,1,1,1,3,3,1,1,2,2,1,2,1,1,2,2,1,1,0,2,2,1,\n0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,\n3,3,3,1,1,2,1,1,3,3,1,0,1,1,3,3,2,0,1,1,2,3,1,0,2,2,1,0,0,1,3,2,\n0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,\n3,2,1,3,3,3,3,3,1,2,3,2,3,3,2,1,1,3,2,3,2,1,2,2,0,1,2,1,0,0,1,1,\n0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,\n3,3,3,3,2,2,2,2,3,1,2,2,1,1,3,3,0,3,2,1,2,3,2,1,3,3,1,1,0,2,1,3,\n0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,\n3,3,3,2,2,2,3,2,3,3,3,2,1,1,3,3,1,1,1,2,2,3,2,3,2,2,2,1,0,2,2,1,\n0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,\n1,0,0,3,3,3,3,3,0,0,3,3,2,3,0,0,0,2,3,3,1,0,1,2,0,0,1,1,0,0,0,0,\n0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n3,1,2,3,3,3,3,3,1,2,3,3,2,2,1,1,0,3,3,2,2,1,2,2,1,0,2,2,0,1,1,1,\n0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n3,3,2,2,1,3,1,2,3,3,2,2,1,1,2,2,1,1,1,1,3,2,1,1,1,1,2,1,0,1,2,1,\n0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,\n2,3,3,1,1,1,1,1,3,3,3,0,1,1,3,3,1,1,1,1,1,2,2,0,3,1,1,2,0,2,1,1,\n0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,\n3,1,0,1,2,1,2,2,0,1,2,3,1,2,0,0,0,2,1,1,1,1,1,2,0,0,1,1,0,0,0,0,\n1,2,1,2,2,2,1,2,1,2,0,2,0,2,2,1,1,2,1,1,2,1,1,1,0,1,0,0,0,1,1,0,\n1,1,1,2,3,2,3,3,0,1,2,2,3,1,0,1,0,2,1,2,2,0,1,1,0,0,1,1,0,0,0,0,\n0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n1,0,0,3,3,2,2,1,0,0,3,2,3,2,0,0,0,1,1,3,0,0,1,1,0,0,2,1,0,0,0,0,\n0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n3,1,1,2,2,3,3,1,0,1,3,2,3,1,1,1,0,1,1,1,1,1,3,1,0,0,2,2,0,0,0,0,\n0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n3,1,1,1,2,2,2,1,0,1,2,3,3,2,0,0,0,2,1,1,1,2,1,1,1,0,1,1,1,0,0,0,\n1,2,2,2,2,2,1,1,1,2,0,2,1,1,1,1,1,2,1,1,1,1,1,1,0,1,1,1,0,0,1,1,\n3,2,2,1,0,0,1,1,2,2,0,3,0,1,2,1,1,0,0,1,1,1,0,1,1,1,1,0,2,1,1,1,\n2,2,1,1,1,2,1,2,1,1,1,1,1,1,1,2,1,1,1,2,3,1,1,1,1,1,1,1,1,1,0,1,\n2,3,3,0,1,0,0,0,3,3,1,0,0,1,2,2,1,0,0,0,0,2,0,0,1,1,1,0,2,1,1,1,\n2,1,1,1,1,1,1,2,1,1,0,1,1,0,1,1,1,0,1,2,1,1,0,1,1,1,1,1,1,1,0,1,\n2,3,3,0,1,0,0,0,2,2,0,0,0,0,1,2,2,0,0,0,0,1,0,0,1,1,0,0,2,0,1,0,\n2,1,1,1,1,2,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,2,0,1,1,1,1,1,0,1,\n3,2,2,0,1,0,1,0,2,3,2,0,0,1,2,2,1,0,0,1,1,1,0,0,2,1,0,1,2,2,1,1,\n2,1,1,1,1,1,1,2,1,1,1,1,1,1,0,2,1,0,1,1,0,1,1,1,0,1,1,2,1,1,0,1,\n2,2,2,0,0,1,0,0,2,2,1,1,0,0,2,1,1,0,0,0,1,2,0,0,2,1,0,0,2,1,1,1,\n2,1,1,1,1,2,1,2,1,1,1,2,2,1,1,2,1,1,1,2,1,1,1,1,1,1,1,1,1,1,0,1,\n1,2,3,0,0,0,1,0,3,2,1,0,0,1,2,1,1,0,0,0,0,2,1,0,1,1,0,0,2,1,2,1,\n1,1,0,0,0,1,0,1,1,1,1,1,2,0,0,1,0,0,0,2,0,0,1,1,1,1,1,1,1,1,0,1,\n3,0,0,2,1,2,2,1,0,0,2,1,2,2,0,0,0,2,1,1,1,0,1,1,0,0,1,1,2,0,0,0,\n1,2,1,2,2,1,1,2,1,2,0,1,1,1,1,1,1,1,1,1,2,1,1,0,0,1,1,1,1,0,0,1,\n1,3,2,0,0,0,1,0,2,2,2,0,0,0,2,2,1,0,0,0,0,3,1,1,1,1,0,0,2,1,1,1,\n2,1,0,1,1,1,0,1,1,1,1,1,1,1,0,2,1,0,0,1,0,1,1,0,1,1,1,1,1,1,0,1,\n2,3,2,0,0,0,1,0,2,2,0,0,0,0,2,1,1,0,0,0,0,2,1,0,1,1,0,0,2,1,1,0,\n2,1,1,1,1,2,1,2,1,2,0,1,1,1,0,2,1,1,1,2,1,1,1,1,0,1,1,1,1,1,0,1,\n3,1,1,2,2,2,3,2,1,1,2,2,1,1,0,1,0,2,2,1,1,1,1,1,0,0,1,1,0,1,1,0,\n0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n2,2,2,0,0,0,0,0,2,2,0,0,0,0,2,2,1,0,0,0,1,1,0,0,1,2,0,0,2,1,1,1,\n2,2,1,1,1,2,1,2,1,1,0,1,1,1,1,2,1,1,1,2,1,1,1,1,0,1,2,1,1,1,0,1,\n1,0,0,1,2,3,2,1,0,0,2,0,1,1,0,0,0,1,1,1,1,0,1,1,0,0,1,0,0,0,0,0,\n1,2,1,2,1,2,1,1,1,2,0,2,1,1,1,0,1,2,0,0,1,1,1,0,0,0,0,0,0,0,0,0,\n2,3,2,0,0,0,0,0,1,1,2,1,0,0,1,1,1,0,0,0,0,2,0,0,1,1,0,0,2,1,1,1,\n2,1,1,1,1,1,1,2,1,0,1,1,1,1,0,2,1,1,1,1,1,1,0,1,0,1,1,1,1,1,0,1,\n1,2,2,0,1,1,1,0,2,2,2,0,0,0,3,2,1,0,0,0,1,1,0,0,1,1,0,1,1,1,0,0,\n1,1,0,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,2,1,1,1,0,0,1,1,1,0,1,0,1,\n2,1,0,2,1,1,2,2,1,1,2,1,1,1,0,0,0,1,1,0,1,1,1,1,0,0,1,1,1,0,0,0,\n1,2,2,2,2,2,1,1,1,2,0,2,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,0,0,0,1,0,\n1,2,3,0,0,0,1,0,2,2,0,0,0,0,2,2,0,0,0,0,0,1,0,0,1,0,0,0,2,0,1,0,\n2,1,1,1,1,1,0,2,0,0,0,1,2,1,1,1,1,0,1,2,0,1,0,1,0,1,1,1,0,1,0,1,\n2,2,2,0,0,0,1,0,2,1,2,0,0,0,1,1,2,0,0,0,0,1,0,0,1,1,0,0,2,1,0,1,\n2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,0,1,1,1,1,1,0,1,\n1,2,2,0,0,0,1,0,2,2,2,0,0,0,1,1,0,0,0,0,0,1,1,0,2,0,0,1,1,1,0,1,\n1,0,1,1,1,1,1,1,0,1,1,1,1,0,0,1,0,0,1,1,0,1,0,1,1,1,1,1,0,0,0,1,\n1,0,0,1,0,1,2,1,0,0,1,1,1,2,0,0,0,1,1,0,1,0,1,1,0,0,1,0,0,0,0,0,\n0,2,1,2,1,1,1,1,1,2,0,2,0,1,1,0,1,2,1,0,1,1,1,0,0,0,0,0,0,1,0,0,\n2,1,1,0,1,2,0,0,1,1,1,0,0,0,1,1,0,0,0,0,0,1,0,0,1,0,0,0,2,1,0,1,\n2,2,1,1,1,1,1,2,1,1,0,1,1,1,1,2,1,1,1,2,1,1,0,1,0,1,1,1,1,1,0,1,\n1,2,2,0,0,0,0,0,1,1,0,0,0,0,2,1,0,0,0,0,0,2,0,0,2,2,0,0,2,0,0,1,\n2,1,1,1,1,1,1,1,0,1,1,0,1,1,0,1,0,0,0,1,1,1,1,0,0,1,1,1,1,0,0,1,\n1,1,2,0,0,3,1,0,2,1,1,1,0,0,1,1,1,0,0,0,1,1,0,0,0,1,0,0,1,0,1,0,\n1,2,1,0,1,1,1,2,1,1,0,1,1,1,1,1,0,0,0,1,1,1,1,1,0,1,0,0,0,1,0,0,\n2,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,1,0,0,0,1,0,0,0,0,2,0,0,0,\n2,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,2,1,1,0,0,1,1,1,1,1,0,1,\n2,1,1,1,2,1,1,1,0,1,1,2,1,0,0,0,0,1,1,1,1,0,1,0,0,0,0,1,0,0,0,0,\n0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n1,1,0,1,1,1,1,1,0,0,1,1,2,1,0,0,0,1,1,0,0,0,1,1,0,0,1,0,1,0,0,0,\n1,2,1,1,1,1,1,1,1,1,0,1,0,1,1,1,1,1,1,0,1,1,1,0,0,0,0,0,0,1,0,0,\n2,0,0,0,1,1,1,1,0,0,1,1,0,0,0,0,0,1,1,1,2,0,0,1,0,0,1,0,1,0,0,0,\n0,1,1,1,1,1,1,1,1,2,0,1,1,1,1,0,1,1,1,0,1,1,1,0,0,0,0,0,0,0,0,0,\n1,0,0,1,1,1,1,1,0,0,2,1,0,1,0,0,0,1,0,1,0,0,0,0,0,0,1,0,0,0,0,0,\n0,1,1,1,1,1,1,0,1,1,0,1,0,1,1,0,1,1,0,0,1,1,1,0,0,0,0,0,0,0,0,0,\n1,0,0,1,1,1,0,0,0,0,1,0,2,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,\n0,1,1,1,1,1,0,0,1,1,0,1,0,1,0,0,1,1,1,0,1,1,1,0,0,0,0,0,0,0,0,0,\n0,0,0,1,0,0,0,0,0,0,1,1,2,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n0,1,1,1,0,1,0,0,1,1,0,1,0,1,1,0,1,1,1,0,1,1,1,0,0,0,0,0,0,0,0,0,\n2,1,1,1,1,1,1,1,1,1,1,0,0,1,1,1,0,0,1,0,0,1,0,1,0,1,1,1,0,0,1,0,\n0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n1,0,0,1,1,1,1,0,0,0,1,1,1,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,\n0,1,1,1,1,1,1,0,1,1,0,1,0,1,0,0,1,1,0,0,1,1,0,0,0,0,0,0,0,0,0,0,\n)\n\nLatin2HungarianModel = {\n 'charToOrderMap': Latin2_HungarianCharToOrderMap,\n 'precedenceMatrix': HungarianLangModel,\n 'mTypicalPositiveRatio': 0.947368,\n 'keepEnglishLetter': True,\n 'charsetName': \"ISO-8859-2\"\n}\n\nWin1250HungarianModel = {\n 'charToOrderMap': win1250HungarianCharToOrderMap,\n 'precedenceMatrix': HungarianLangModel,\n 'mTypicalPositiveRatio': 0.947368,\n 'keepEnglishLetter': True,\n 'charsetName': \"windows-1250\"\n}\n\n# flake8: noqa\n"},{"attributeType":"(int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int)","col":0,"comment":"null","endLoc":34,"id":15,"name":"Latin2_HungarianCharToOrderMap","nodeType":"Attribute","startLoc":34,"text":"Latin2_HungarianCharToOrderMap"},{"attributeType":"null","col":0,"comment":"null","endLoc":35,"id":16,"name":"eStart","nodeType":"Attribute","startLoc":35,"text":"eStart"},{"className":"CharSetProber","col":0,"comment":"null","endLoc":62,"id":17,"nodeType":"Class","startLoc":33,"text":"class CharSetProber:\n def __init__(self):\n pass\n\n def reset(self):\n self._mState = constants.eDetecting\n\n def get_charset_name(self):\n return None\n\n def feed(self, aBuf):\n pass\n\n def get_state(self):\n return self._mState\n\n def get_confidence(self):\n return 0.0\n\n def filter_high_bit_only(self, aBuf):\n aBuf = re.sub(b'([\\x00-\\x7F])+', b' ', aBuf)\n return aBuf\n\n def filter_without_english_letters(self, aBuf):\n aBuf = re.sub(b'([A-Za-z])+', b' ', aBuf)\n return aBuf\n\n def filter_with_english_letters(self, aBuf):\n # TODO\n return aBuf"},{"className":"MultiByteCharSetProber","col":0,"comment":"null","endLoc":86,"id":18,"nodeType":"Class","startLoc":35,"text":"class MultiByteCharSetProber(CharSetProber):\n def __init__(self):\n CharSetProber.__init__(self)\n self._mDistributionAnalyzer = None\n self._mCodingSM = None\n self._mLastChar = [0, 0]\n\n def reset(self):\n CharSetProber.reset(self)\n if self._mCodingSM:\n self._mCodingSM.reset()\n if self._mDistributionAnalyzer:\n self._mDistributionAnalyzer.reset()\n self._mLastChar = [0, 0]\n\n def get_charset_name(self):\n pass\n\n def feed(self, aBuf):\n aLen = len(aBuf)\n for i in range(0, aLen):\n codingState = self._mCodingSM.next_state(aBuf[i])\n if codingState == constants.eError:\n if constants._debug:\n sys.stderr.write(self.get_charset_name()\n + ' prober hit error at byte ' + str(i)\n + '\\n')\n self._mState = constants.eNotMe\n break\n elif codingState == constants.eItsMe:\n self._mState = constants.eFoundIt\n break\n elif codingState == constants.eStart:\n charLen = self._mCodingSM.get_current_charlen()\n if i == 0:\n self._mLastChar[1] = aBuf[0]\n self._mDistributionAnalyzer.feed(self._mLastChar, charLen)\n else:\n self._mDistributionAnalyzer.feed(aBuf[i - 1:i + 1],\n charLen)\n\n self._mLastChar[0] = aBuf[aLen - 1]\n\n if self.get_state() == constants.eDetecting:\n if (self._mDistributionAnalyzer.got_enough_data() and\n (self.get_confidence() > constants.SHORTCUT_THRESHOLD)):\n self._mState = constants.eFoundIt\n\n return self.get_state()\n\n def get_confidence(self):\n return self._mDistributionAnalyzer.get_confidence()"},{"col":4,"comment":"null","endLoc":35,"header":"def __init__(self)","id":19,"name":"__init__","nodeType":"Function","startLoc":34,"text":"def __init__(self):\n pass"},{"col":4,"comment":"null","endLoc":38,"header":"def reset(self)","id":20,"name":"reset","nodeType":"Function","startLoc":37,"text":"def reset(self):\n self._mState = constants.eDetecting"},{"col":4,"comment":"null","endLoc":41,"header":"def get_charset_name(self)","id":21,"name":"get_charset_name","nodeType":"Function","startLoc":40,"text":"def get_charset_name(self):\n return None"},{"col":4,"comment":"null","endLoc":44,"header":"def feed(self, aBuf)","id":22,"name":"feed","nodeType":"Function","startLoc":43,"text":"def feed(self, aBuf):\n pass"},{"col":4,"comment":"null","endLoc":47,"header":"def get_state(self)","id":23,"name":"get_state","nodeType":"Function","startLoc":46,"text":"def get_state(self):\n return self._mState"},{"col":4,"comment":"null","endLoc":50,"header":"def get_confidence(self)","id":24,"name":"get_confidence","nodeType":"Function","startLoc":49,"text":"def get_confidence(self):\n return 0.0"},{"col":4,"comment":"null","endLoc":54,"header":"def filter_high_bit_only(self, aBuf)","id":25,"name":"filter_high_bit_only","nodeType":"Function","startLoc":52,"text":"def filter_high_bit_only(self, aBuf):\n aBuf = re.sub(b'([\\x00-\\x7F])+', b' ', aBuf)\n return aBuf"},{"col":4,"comment":"null","endLoc":40,"header":"def __init__(self)","id":26,"name":"__init__","nodeType":"Function","startLoc":36,"text":"def __init__(self):\n CharSetProber.__init__(self)\n self._mDistributionAnalyzer = None\n self._mCodingSM = None\n self._mLastChar = [0, 0]"},{"id":27,"name":"requests","nodeType":"Package"},{"fileName":"adapters.py","filePath":"requests","id":28,"nodeType":"File","text":"# -*- coding: utf-8 -*-\n\n\"\"\"\nrequests.adapters\n~~~~~~~~~~~~~~~~~\n\nThis module contains the transport adapters that Requests uses to define\nand maintain connections.\n\"\"\"\n\nimport socket\n\nfrom .models import Response\nfrom .packages.urllib3.poolmanager import PoolManager, proxy_from_url\nfrom .packages.urllib3.response import HTTPResponse\nfrom .packages.urllib3.util import Timeout as TimeoutSauce\nfrom .compat import urlparse, basestring, urldefrag, unquote\nfrom .utils import (DEFAULT_CA_BUNDLE_PATH, get_encoding_from_headers,\n except_on_missing_scheme, get_auth_from_url)\nfrom .structures import CaseInsensitiveDict\nfrom .packages.urllib3.exceptions import MaxRetryError\nfrom .packages.urllib3.exceptions import TimeoutError\nfrom .packages.urllib3.exceptions import SSLError as _SSLError\nfrom .packages.urllib3.exceptions import HTTPError as _HTTPError\nfrom .packages.urllib3.exceptions import ProxyError as _ProxyError\nfrom .cookies import extract_cookies_to_jar\nfrom .exceptions import ConnectionError, Timeout, SSLError, ProxyError\nfrom .auth import _basic_auth_str\n\nDEFAULT_POOLBLOCK = False\nDEFAULT_POOLSIZE = 10\nDEFAULT_RETRIES = 0\n\n\nclass BaseAdapter(object):\n \"\"\"The Base Transport Adapter\"\"\"\n\n def __init__(self):\n super(BaseAdapter, self).__init__()\n\n def send(self):\n raise NotImplementedError\n\n def close(self):\n raise NotImplementedError\n\n\nclass HTTPAdapter(BaseAdapter):\n \"\"\"The built-in HTTP Adapter for urllib3.\n\n Provides a general-case interface for Requests sessions to contact HTTP and\n HTTPS urls by implementing the Transport Adapter interface. This class will\n usually be created by the :class:`Session ` class under the\n covers.\n\n :param pool_connections: The number of urllib3 connection pools to cache.\n :param pool_maxsize: The maximum number of connections to save in the pool.\n :param max_retries: The maximum number of retries each connection should attempt.\n :param pool_block: Whether the connection pool should block for connections.\n\n Usage::\n\n >>> import requests\n >>> s = requests.Session()\n >>> a = requests.adapters.HTTPAdapter()\n >>> s.mount('http://', a)\n \"\"\"\n __attrs__ = ['max_retries', 'config', '_pool_connections', '_pool_maxsize',\n '_pool_block']\n\n def __init__(self, pool_connections=DEFAULT_POOLSIZE,\n pool_maxsize=DEFAULT_POOLSIZE, max_retries=DEFAULT_RETRIES,\n pool_block=DEFAULT_POOLBLOCK):\n self.max_retries = max_retries\n self.config = {}\n self.proxy_manager = {}\n\n super(HTTPAdapter, self).__init__()\n\n self._pool_connections = pool_connections\n self._pool_maxsize = pool_maxsize\n self._pool_block = pool_block\n\n self.init_poolmanager(pool_connections, pool_maxsize, block=pool_block)\n\n def __getstate__(self):\n return dict((attr, getattr(self, attr, None)) for attr in\n self.__attrs__)\n\n def __setstate__(self, state):\n for attr, value in state.items():\n setattr(self, attr, value)\n\n self.init_poolmanager(self._pool_connections, self._pool_maxsize,\n block=self._pool_block)\n\n def init_poolmanager(self, connections, maxsize, block=DEFAULT_POOLBLOCK):\n \"\"\"Initializes a urllib3 PoolManager. This method should not be called\n from user code, and is only exposed for use when subclassing the\n :class:`HTTPAdapter `.\n\n :param connections: The number of urllib3 connection pools to cache.\n :param maxsize: The maximum number of connections to save in the pool.\n :param block: Block when no free connections are available.\n \"\"\"\n # save these values for pickling\n self._pool_connections = connections\n self._pool_maxsize = maxsize\n self._pool_block = block\n\n self.poolmanager = PoolManager(num_pools=connections, maxsize=maxsize,\n block=block)\n\n def cert_verify(self, conn, url, verify, cert):\n \"\"\"Verify a SSL certificate. This method should not be called from user\n code, and is only exposed for use when subclassing the\n :class:`HTTPAdapter `.\n\n :param conn: The urllib3 connection object associated with the cert.\n :param url: The requested URL.\n :param verify: Whether we should actually verify the certificate.\n :param cert: The SSL certificate to verify.\n \"\"\"\n if url.lower().startswith('https') and verify:\n\n cert_loc = None\n\n # Allow self-specified cert location.\n if verify is not True:\n cert_loc = verify\n\n if not cert_loc:\n cert_loc = DEFAULT_CA_BUNDLE_PATH\n\n if not cert_loc:\n raise Exception(\"Could not find a suitable SSL CA certificate bundle.\")\n\n conn.cert_reqs = 'CERT_REQUIRED'\n conn.ca_certs = cert_loc\n else:\n conn.cert_reqs = 'CERT_NONE'\n conn.ca_certs = None\n\n if cert:\n if not isinstance(cert, basestring):\n conn.cert_file = cert[0]\n conn.key_file = cert[1]\n else:\n conn.cert_file = cert\n\n def build_response(self, req, resp):\n \"\"\"Builds a :class:`Response ` object from a urllib3\n response. This should not be called from user code, and is only exposed\n for use when subclassing the\n :class:`HTTPAdapter `\n\n :param req: The :class:`PreparedRequest ` used to generate the response.\n :param resp: The urllib3 response object.\n \"\"\"\n response = Response()\n\n # Fallback to None if there's no status_code, for whatever reason.\n response.status_code = getattr(resp, 'status', None)\n\n # Make headers case-insensitive.\n response.headers = CaseInsensitiveDict(getattr(resp, 'headers', {}))\n\n # Set encoding.\n response.encoding = get_encoding_from_headers(response.headers)\n response.raw = resp\n response.reason = response.raw.reason\n\n if isinstance(req.url, bytes):\n response.url = req.url.decode('utf-8')\n else:\n response.url = req.url\n\n # Add new cookies from the server.\n extract_cookies_to_jar(response.cookies, req, resp)\n\n # Give the Response some context.\n response.request = req\n response.connection = self\n\n return response\n\n def get_connection(self, url, proxies=None):\n \"\"\"Returns a urllib3 connection for the given URL. This should not be\n called from user code, and is only exposed for use when subclassing the\n :class:`HTTPAdapter `.\n\n :param url: The URL to connect to.\n :param proxies: (optional) A Requests-style dictionary of proxies used on this request.\n \"\"\"\n proxies = proxies or {}\n proxy = proxies.get(urlparse(url.lower()).scheme)\n\n if proxy:\n except_on_missing_scheme(proxy)\n proxy_headers = self.proxy_headers(proxy)\n\n if not proxy in self.proxy_manager:\n self.proxy_manager[proxy] = proxy_from_url(\n proxy,\n proxy_headers=proxy_headers)\n\n conn = self.proxy_manager[proxy].connection_from_url(url)\n else:\n conn = self.poolmanager.connection_from_url(url.lower())\n\n return conn\n\n def close(self):\n \"\"\"Disposes of any internal state.\n\n Currently, this just closes the PoolManager, which closes pooled\n connections.\n \"\"\"\n self.poolmanager.clear()\n\n def request_url(self, request, proxies):\n \"\"\"Obtain the url to use when making the final request.\n\n If the message is being sent through a HTTP proxy, the full URL has to\n be used. Otherwise, we should only use the path portion of the URL.\n\n This should not be called from user code, and is only exposed for use\n when subclassing the\n :class:`HTTPAdapter `.\n\n :param request: The :class:`PreparedRequest ` being sent.\n :param proxies: A dictionary of schemes to proxy URLs.\n \"\"\"\n proxies = proxies or {}\n scheme = urlparse(request.url).scheme.lower()\n proxy = proxies.get(scheme)\n\n if proxy and scheme != 'https':\n url, _ = urldefrag(request.url)\n else:\n url = request.path_url\n\n return url\n\n def add_headers(self, request, **kwargs):\n \"\"\"Add any headers needed by the connection. As of v2.0 this does\n nothing by default, but is left for overriding by users that subclass\n the :class:`HTTPAdapter `.\n\n This should not be called from user code, and is only exposed for use\n when subclassing the\n :class:`HTTPAdapter `.\n\n :param request: The :class:`PreparedRequest ` to add headers to.\n :param kwargs: The keyword arguments from the call to send().\n \"\"\"\n pass\n\n def proxy_headers(self, proxy):\n \"\"\"Returns a dictionary of the headers to add to any request sent\n through a proxy. This works with urllib3 magic to ensure that they are\n correctly sent to the proxy, rather than in a tunnelled request if\n CONNECT is being used.\n\n This should not be called from user code, and is only exposed for use\n when subclassing the\n :class:`HTTPAdapter `.\n\n :param proxies: The url of the proxy being used for this request.\n :param kwargs: Optional additional keyword arguments.\n \"\"\"\n headers = {}\n username, password = get_auth_from_url(proxy)\n\n if username and password:\n # Proxy auth usernames and passwords will be urlencoded, we need\n # to decode them.\n username = unquote(username)\n password = unquote(password)\n headers['Proxy-Authorization'] = _basic_auth_str(username,\n password)\n\n return headers\n\n def send(self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None):\n \"\"\"Sends PreparedRequest object. Returns Response object.\n\n :param request: The :class:`PreparedRequest ` being sent.\n :param stream: (optional) Whether to stream the request content.\n :param timeout: (optional) The timeout on the request.\n :param verify: (optional) Whether to verify SSL certificates.\n :param cert: (optional) Any user-provided SSL certificate to be trusted.\n :param proxies: (optional) The proxies dictionary to apply to the request.\n \"\"\"\n\n conn = self.get_connection(request.url, proxies)\n\n self.cert_verify(conn, request.url, verify, cert)\n url = self.request_url(request, proxies)\n self.add_headers(request)\n\n chunked = not (request.body is None or 'Content-Length' in request.headers)\n\n if stream:\n timeout = TimeoutSauce(connect=timeout)\n else:\n timeout = TimeoutSauce(connect=timeout, read=timeout)\n\n try:\n if not chunked:\n resp = conn.urlopen(\n method=request.method,\n url=url,\n body=request.body,\n headers=request.headers,\n redirect=False,\n assert_same_host=False,\n preload_content=False,\n decode_content=False,\n retries=self.max_retries,\n timeout=timeout\n )\n\n # Send the request.\n else:\n if hasattr(conn, 'proxy_pool'):\n conn = conn.proxy_pool\n\n low_conn = conn._get_conn(timeout=timeout)\n low_conn.putrequest(request.method, url, skip_accept_encoding=True)\n\n for header, value in request.headers.items():\n low_conn.putheader(header, value)\n\n low_conn.endheaders()\n\n for i in request.body:\n low_conn.send(hex(len(i))[2:].encode('utf-8'))\n low_conn.send(b'\\r\\n')\n low_conn.send(i)\n low_conn.send(b'\\r\\n')\n low_conn.send(b'0\\r\\n\\r\\n')\n\n r = low_conn.getresponse()\n resp = HTTPResponse.from_httplib(r,\n pool=conn,\n connection=low_conn,\n preload_content=False,\n decode_content=False\n )\n\n except socket.error as sockerr:\n raise ConnectionError(sockerr)\n\n except MaxRetryError as e:\n raise ConnectionError(e)\n\n except _ProxyError as e:\n raise ProxyError(e)\n\n except (_SSLError, _HTTPError) as e:\n if isinstance(e, _SSLError):\n raise SSLError(e)\n elif isinstance(e, TimeoutError):\n raise Timeout(e)\n else:\n raise\n\n r = self.build_response(request, resp)\n\n if not stream:\n r.content\n\n return r\n"},{"className":"Response","col":0,"comment":"The :class:`Response ` object, which contains a\n server's response to an HTTP request.\n ","endLoc":734,"id":29,"nodeType":"Class","startLoc":487,"text":"class Response(object):\n \"\"\"The :class:`Response ` object, which contains a\n server's response to an HTTP request.\n \"\"\"\n\n def __init__(self):\n super(Response, self).__init__()\n\n self._content = False\n self._content_consumed = False\n\n #: Integer Code of responded HTTP Status.\n self.status_code = None\n\n #: Case-insensitive Dictionary of Response Headers.\n #: For example, ``headers['content-encoding']`` will return the\n #: value of a ``'Content-Encoding'`` response header.\n self.headers = CaseInsensitiveDict()\n\n #: File-like object representation of response (for advanced usage).\n #: Requires that ``stream=True` on the request.\n # This requirement does not apply for use internally to Requests.\n self.raw = None\n\n #: Final URL location of Response.\n self.url = None\n\n #: Encoding to decode with when accessing r.text.\n self.encoding = None\n\n #: A list of :class:`Response ` objects from\n #: the history of the Request. Any redirect responses will end\n #: up here. The list is sorted from the oldest to the most recent request.\n self.history = []\n\n self.reason = None\n\n #: A CookieJar of Cookies the server sent back.\n self.cookies = cookiejar_from_dict({})\n\n #: The amount of time elapsed between sending the request\n #: and the arrival of the response (as a timedelta)\n self.elapsed = datetime.timedelta(0)\n\n def __repr__(self):\n return '' % (self.status_code)\n\n def __bool__(self):\n \"\"\"Returns true if :attr:`status_code` is 'OK'.\"\"\"\n return self.ok\n\n def __nonzero__(self):\n \"\"\"Returns true if :attr:`status_code` is 'OK'.\"\"\"\n return self.ok\n\n def __iter__(self):\n \"\"\"Allows you to use a response as an iterator.\"\"\"\n return self.iter_content(128)\n\n @property\n def ok(self):\n try:\n self.raise_for_status()\n except RequestException:\n return False\n return True\n\n @property\n def apparent_encoding(self):\n \"\"\"The apparent encoding, provided by the lovely Charade library\n (Thanks, Ian!).\"\"\"\n return chardet.detect(self.content)['encoding']\n\n def iter_content(self, chunk_size=1, decode_unicode=False):\n \"\"\"Iterates over the response data. When stream=True is set on the\n request, this avoids reading the content at once into memory for\n large responses. The chunk size is the number of bytes it should\n read into memory. This is not necessarily the length of each item\n returned as decoding can take place.\n \"\"\"\n if self._content_consumed:\n # simulate reading small chunks of the content\n return iter_slices(self._content, chunk_size)\n\n def generate():\n try:\n # Special case for urllib3.\n try:\n for chunk in self.raw.stream(chunk_size,\n decode_content=True):\n yield chunk\n except IncompleteRead as e:\n raise ChunkedEncodingError(e)\n except AttributeError:\n # Standard file-like object.\n while True:\n chunk = self.raw.read(chunk_size)\n if not chunk:\n break\n yield chunk\n\n self._content_consumed = True\n\n gen = generate()\n\n if decode_unicode:\n gen = stream_decode_response_unicode(gen, self)\n\n return gen\n\n def iter_lines(self, chunk_size=ITER_CHUNK_SIZE, decode_unicode=None):\n \"\"\"Iterates over the response data, one line at a time. When\n stream=True is set on the request, this avoids reading the\n content at once into memory for large responses.\n \"\"\"\n\n pending = None\n\n for chunk in self.iter_content(chunk_size=chunk_size,\n decode_unicode=decode_unicode):\n\n if pending is not None:\n chunk = pending + chunk\n lines = chunk.splitlines()\n\n if lines and lines[-1] and chunk and lines[-1][-1] == chunk[-1]:\n pending = lines.pop()\n else:\n pending = None\n\n for line in lines:\n yield line\n\n if pending is not None:\n yield pending\n\n @property\n def content(self):\n \"\"\"Content of the response, in bytes.\"\"\"\n\n if self._content is False:\n # Read the contents.\n try:\n if self._content_consumed:\n raise RuntimeError(\n 'The content for this response was already consumed')\n\n if self.status_code == 0:\n self._content = None\n else:\n self._content = bytes().join(self.iter_content(CONTENT_CHUNK_SIZE)) or bytes()\n\n except AttributeError:\n self._content = None\n\n self._content_consumed = True\n # don't need to release the connection; that's been handled by urllib3\n # since we exhausted the data.\n return self._content\n\n @property\n def text(self):\n \"\"\"Content of the response, in unicode.\n\n If Response.encoding is None, encoding will be guessed using\n ``charade``.\n \"\"\"\n\n # Try charset from content-type\n content = None\n encoding = self.encoding\n\n if not self.content:\n return str('')\n\n # Fallback to auto-detected encoding.\n if self.encoding is None:\n encoding = self.apparent_encoding\n\n # Decode unicode from given encoding.\n try:\n content = str(self.content, encoding, errors='replace')\n except (LookupError, TypeError):\n # A LookupError is raised if the encoding was not found which could\n # indicate a misspelling or similar mistake.\n #\n # A TypeError can be raised if encoding is None\n #\n # So we try blindly encoding.\n content = str(self.content, errors='replace')\n\n return content\n\n def json(self, **kwargs):\n \"\"\"Returns the json-encoded content of a response, if any.\n\n :param \\*\\*kwargs: Optional arguments that ``json.loads`` takes.\n \"\"\"\n\n if not self.encoding and len(self.content) > 3:\n # No encoding set. JSON RFC 4627 section 3 states we should expect\n # UTF-8, -16 or -32. Detect which one to use; If the detection or\n # decoding fails, fall back to `self.text` (using chardet to make\n # a best guess).\n encoding = guess_json_utf(self.content)\n if encoding is not None:\n return json.loads(self.content.decode(encoding), **kwargs)\n return json.loads(self.text, **kwargs)\n\n @property\n def links(self):\n \"\"\"Returns the parsed header links of the response, if any.\"\"\"\n\n header = self.headers.get('link')\n\n # l = MultiDict()\n l = {}\n\n if header:\n links = parse_header_links(header)\n\n for link in links:\n key = link.get('rel') or link.get('url')\n l[key] = link\n\n return l\n\n def raise_for_status(self):\n \"\"\"Raises stored :class:`HTTPError`, if one occurred.\"\"\"\n\n http_error_msg = ''\n\n if 400 <= self.status_code < 500:\n http_error_msg = '%s Client Error: %s' % (self.status_code, self.reason)\n\n elif 500 <= self.status_code < 600:\n http_error_msg = '%s Server Error: %s' % (self.status_code, self.reason)\n\n if http_error_msg:\n raise HTTPError(http_error_msg, response=self)\n\n def close(self):\n \"\"\"Closes the underlying file descriptor and releases the connection\n back to the pool.\n\n *Note: Should not normally need to be called explicitly.*\n \"\"\"\n return self.raw.release_conn()"},{"attributeType":"null","col":0,"comment":"null","endLoc":36,"id":30,"name":"eError","nodeType":"Attribute","startLoc":36,"text":"eError"},{"attributeType":"null","col":0,"comment":"null","endLoc":37,"id":31,"name":"eItsMe","nodeType":"Attribute","startLoc":37,"text":"eItsMe"},{"className":"object","col":0,"comment":"null","endLoc":127,"id":32,"nodeType":"Class","startLoc":90,"text":"class object:\n __doc__: str | None\n __dict__: dict[str, Any]\n __module__: str\n __annotations__: dict[str, Any]\n @property\n def __class__(self) -> type[Self]: ...\n # Ignore errors about type mismatch between property getter and setter\n @__class__.setter\n def __class__(self, __type: type[object]) -> None: ... # noqa: F811\n def __init__(self) -> None: ...\n def __new__(cls) -> Self: ...\n # N.B. `object.__setattr__` and `object.__delattr__` are heavily special-cased by type checkers.\n # Overriding them in subclasses has different semantics, even if the override has an identical signature.\n def __setattr__(self, __name: str, __value: Any) -> None: ...\n def __delattr__(self, __name: str) -> None: ...\n def __eq__(self, __value: object) -> bool: ...\n def __ne__(self, __value: object) -> bool: ...\n def __str__(self) -> str: ... # noqa: Y029\n def __repr__(self) -> str: ... # noqa: Y029\n def __hash__(self) -> int: ...\n def __format__(self, __format_spec: str) -> str: ...\n def __getattribute__(self, __name: str) -> Any: ...\n def __sizeof__(self) -> int: ...\n # return type of pickle methods is rather hard to express in the current type system\n # see #6661 and https://docs.python.org/3/library/pickle.html#object.__reduce__\n def __reduce__(self) -> str | tuple[Any, ...]: ...\n if sys.version_info >= (3, 8):\n def __reduce_ex__(self, __protocol: SupportsIndex) -> str | tuple[Any, ...]: ...\n else:\n def __reduce_ex__(self, __protocol: int) -> str | tuple[Any, ...]: ...\n if sys.version_info >= (3, 11):\n def __getstate__(self) -> object: ...\n\n def __dir__(self) -> Iterable[str]: ...\n def __init_subclass__(cls) -> None: ...\n @classmethod\n def __subclasshook__(cls, __subclass: type) -> bool: ..."},{"attributeType":"(int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int)","col":0,"comment":"null","endLoc":30,"id":33,"name":"HZ_cls","nodeType":"Attribute","startLoc":30,"text":"HZ_cls"},{"className":"Exception","col":0,"comment":"null","endLoc":1947,"id":35,"nodeType":"Class","startLoc":1947,"text":"class Exception(BaseException): ..."},{"attributeType":"(int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int)","col":0,"comment":"null","endLoc":53,"id":36,"name":"win1250HungarianCharToOrderMap","nodeType":"Attribute","startLoc":53,"text":"win1250HungarianCharToOrderMap"},{"attributeType":"(Any, Any, int, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, int, Any, int, Any, int, Any, int, int, int, Any, int, Any, int, int, int, Any, int, Any, int, Any, Any, Any, Any, Any, Any, Any)","col":0,"comment":"null","endLoc":65,"id":37,"name":"HZ_st","nodeType":"Attribute","startLoc":65,"text":"HZ_st"},{"fileName":"connectionpool.py","filePath":"requests/packages/urllib3","id":38,"nodeType":"File","text":"# urllib3/connectionpool.py\n# Copyright 2008-2013 Andrey Petrov and contributors (see CONTRIBUTORS.txt)\n#\n# This module is part of urllib3 and is released under\n# the MIT License: http://www.opensource.org/licenses/mit-license.php\n\nimport errno\nimport logging\n\nfrom socket import error as SocketError, timeout as SocketTimeout\nimport socket\n\ntry: # Python 3\n from queue import LifoQueue, Empty, Full\nexcept ImportError:\n from Queue import LifoQueue, Empty, Full\n import Queue as _ # Platform-specific: Windows\n\n\nfrom .exceptions import (\n ClosedPoolError,\n ConnectTimeoutError,\n EmptyPoolError,\n HostChangedError,\n MaxRetryError,\n SSLError,\n TimeoutError,\n ReadTimeoutError,\n ProxyError,\n)\nfrom .packages.ssl_match_hostname import CertificateError\nfrom .packages import six\nfrom .connection import (\n DummyConnection,\n HTTPConnection, HTTPSConnection, VerifiedHTTPSConnection,\n HTTPException, BaseSSLError,\n)\nfrom .request import RequestMethods\nfrom .response import HTTPResponse\nfrom .util import (\n assert_fingerprint,\n get_host,\n is_connection_dropped,\n Timeout,\n)\n\n\nxrange = six.moves.xrange\n\nlog = logging.getLogger(__name__)\n\n_Default = object()\n\nport_by_scheme = {\n 'http': 80,\n 'https': 443,\n}\n\n\n## Pool objects\n\nclass ConnectionPool(object):\n \"\"\"\n Base class for all connection pools, such as\n :class:`.HTTPConnectionPool` and :class:`.HTTPSConnectionPool`.\n \"\"\"\n\n scheme = None\n QueueCls = LifoQueue\n\n def __init__(self, host, port=None):\n # httplib doesn't like it when we include brackets in ipv6 addresses\n host = host.strip('[]')\n\n self.host = host\n self.port = port\n\n def __str__(self):\n return '%s(host=%r, port=%r)' % (type(self).__name__,\n self.host, self.port)\n\n# This is taken from http://hg.python.org/cpython/file/7aaba721ebc0/Lib/socket.py#l252\n_blocking_errnos = set([errno.EAGAIN, errno.EWOULDBLOCK])\n\nclass HTTPConnectionPool(ConnectionPool, RequestMethods):\n \"\"\"\n Thread-safe connection pool for one host.\n\n :param host:\n Host used for this HTTP Connection (e.g. \"localhost\"), passed into\n :class:`httplib.HTTPConnection`.\n\n :param port:\n Port used for this HTTP Connection (None is equivalent to 80), passed\n into :class:`httplib.HTTPConnection`.\n\n :param strict:\n Causes BadStatusLine to be raised if the status line can't be parsed\n as a valid HTTP/1.0 or 1.1 status line, passed into\n :class:`httplib.HTTPConnection`.\n\n .. note::\n Only works in Python 2. This parameter is ignored in Python 3.\n\n :param timeout:\n Socket timeout in seconds for each individual connection. This can\n be a float or integer, which sets the timeout for the HTTP request,\n or an instance of :class:`urllib3.util.Timeout` which gives you more\n fine-grained control over request timeouts. After the constructor has\n been parsed, this is always a `urllib3.util.Timeout` object.\n\n :param maxsize:\n Number of connections to save that can be reused. More than 1 is useful\n in multithreaded situations. If ``block`` is set to false, more\n connections will be created but they will not be saved once they've\n been used.\n\n :param block:\n If set to True, no more than ``maxsize`` connections will be used at\n a time. When no free connections are available, the call will block\n until a connection has been released. This is a useful side effect for\n particular multithreaded situations where one does not want to use more\n than maxsize connections per host to prevent flooding.\n\n :param headers:\n Headers to include with all requests, unless other headers are given\n explicitly.\n\n :param _proxy:\n Parsed proxy URL, should not be used directly, instead, see\n :class:`urllib3.connectionpool.ProxyManager`\"\n\n :param _proxy_headers:\n A dictionary with proxy headers, should not be used directly,\n instead, see :class:`urllib3.connectionpool.ProxyManager`\"\n \"\"\"\n\n scheme = 'http'\n ConnectionCls = HTTPConnection\n\n def __init__(self, host, port=None, strict=False,\n timeout=Timeout.DEFAULT_TIMEOUT, maxsize=1, block=False,\n headers=None, _proxy=None, _proxy_headers=None):\n ConnectionPool.__init__(self, host, port)\n RequestMethods.__init__(self, headers)\n\n self.strict = strict\n\n # This is for backwards compatibility and can be removed once a timeout\n # can only be set to a Timeout object\n if not isinstance(timeout, Timeout):\n timeout = Timeout.from_float(timeout)\n\n self.timeout = timeout\n\n self.pool = self.QueueCls(maxsize)\n self.block = block\n\n self.proxy = _proxy\n self.proxy_headers = _proxy_headers or {}\n\n # Fill the queue up so that doing get() on it will block properly\n for _ in xrange(maxsize):\n self.pool.put(None)\n\n # These are mostly for testing and debugging purposes.\n self.num_connections = 0\n self.num_requests = 0\n\n def _new_conn(self):\n \"\"\"\n Return a fresh :class:`httplib.HTTPConnection`.\n \"\"\"\n self.num_connections += 1\n log.info(\"Starting new HTTP connection (%d): %s\" %\n (self.num_connections, self.host))\n\n extra_params = {}\n if not six.PY3: # Python 2\n extra_params['strict'] = self.strict\n\n return self.ConnectionCls(host=self.host, port=self.port,\n timeout=self.timeout.connect_timeout,\n **extra_params)\n\n def _get_conn(self, timeout=None):\n \"\"\"\n Get a connection. Will return a pooled connection if one is available.\n\n If no connections are available and :prop:`.block` is ``False``, then a\n fresh connection is returned.\n\n :param timeout:\n Seconds to wait before giving up and raising\n :class:`urllib3.exceptions.EmptyPoolError` if the pool is empty and\n :prop:`.block` is ``True``.\n \"\"\"\n conn = None\n try:\n conn = self.pool.get(block=self.block, timeout=timeout)\n\n except AttributeError: # self.pool is None\n raise ClosedPoolError(self, \"Pool is closed.\")\n\n except Empty:\n if self.block:\n raise EmptyPoolError(self,\n \"Pool reached maximum size and no more \"\n \"connections are allowed.\")\n pass # Oh well, we'll create a new connection then\n\n # If this is a persistent connection, check if it got disconnected\n if conn and is_connection_dropped(conn):\n log.info(\"Resetting dropped connection: %s\" % self.host)\n conn.close()\n\n return conn or self._new_conn()\n\n def _put_conn(self, conn):\n \"\"\"\n Put a connection back into the pool.\n\n :param conn:\n Connection object for the current host and port as returned by\n :meth:`._new_conn` or :meth:`._get_conn`.\n\n If the pool is already full, the connection is closed and discarded\n because we exceeded maxsize. If connections are discarded frequently,\n then maxsize should be increased.\n\n If the pool is closed, then the connection will be closed and discarded.\n \"\"\"\n try:\n self.pool.put(conn, block=False)\n return # Everything is dandy, done.\n except AttributeError:\n # self.pool is None.\n pass\n except Full:\n # This should never happen if self.block == True\n log.warning(\"HttpConnectionPool is full, discarding connection: %s\"\n % self.host)\n\n # Connection never got put back into the pool, close it.\n if conn:\n conn.close()\n\n def _get_timeout(self, timeout):\n \"\"\" Helper that always returns a :class:`urllib3.util.Timeout` \"\"\"\n if timeout is _Default:\n return self.timeout.clone()\n\n if isinstance(timeout, Timeout):\n return timeout.clone()\n else:\n # User passed us an int/float. This is for backwards compatibility,\n # can be removed later\n return Timeout.from_float(timeout)\n\n def _make_request(self, conn, method, url, timeout=_Default,\n **httplib_request_kw):\n \"\"\"\n Perform a request on a given httplib connection object taken from our\n pool.\n\n :param conn:\n a connection from one of our connection pools\n\n :param timeout:\n Socket timeout in seconds for the request. This can be a\n float or integer, which will set the same timeout value for\n the socket connect and the socket read, or an instance of\n :class:`urllib3.util.Timeout`, which gives you more fine-grained\n control over your timeouts.\n \"\"\"\n self.num_requests += 1\n\n timeout_obj = self._get_timeout(timeout)\n\n try:\n timeout_obj.start_connect()\n conn.timeout = timeout_obj.connect_timeout\n # conn.request() calls httplib.*.request, not the method in\n # urllib3.request. It also calls makefile (recv) on the socket.\n conn.request(method, url, **httplib_request_kw)\n except SocketTimeout:\n raise ConnectTimeoutError(\n self, \"Connection to %s timed out. (connect timeout=%s)\" %\n (self.host, timeout_obj.connect_timeout))\n\n # Reset the timeout for the recv() on the socket\n read_timeout = timeout_obj.read_timeout\n\n # App Engine doesn't have a sock attr\n if hasattr(conn, 'sock'):\n # In Python 3 socket.py will catch EAGAIN and return None when you\n # try and read into the file pointer created by http.client, which\n # instead raises a BadStatusLine exception. Instead of catching\n # the exception and assuming all BadStatusLine exceptions are read\n # timeouts, check for a zero timeout before making the request.\n if read_timeout == 0:\n raise ReadTimeoutError(\n self, url,\n \"Read timed out. (read timeout=%s)\" % read_timeout)\n if read_timeout is Timeout.DEFAULT_TIMEOUT:\n conn.sock.settimeout(socket.getdefaulttimeout())\n else: # None or a value\n conn.sock.settimeout(read_timeout)\n\n # Receive the response from the server\n try:\n try: # Python 2.7+, use buffering of HTTP responses\n httplib_response = conn.getresponse(buffering=True)\n except TypeError: # Python 2.6 and older\n httplib_response = conn.getresponse()\n except SocketTimeout:\n raise ReadTimeoutError(\n self, url, \"Read timed out. (read timeout=%s)\" % read_timeout)\n\n except BaseSSLError as e:\n # Catch possible read timeouts thrown as SSL errors. If not the\n # case, rethrow the original. We need to do this because of:\n # http://bugs.python.org/issue10272\n if 'timed out' in str(e) or \\\n 'did not complete (read)' in str(e): # Python 2.6\n raise ReadTimeoutError(self, url, \"Read timed out.\")\n\n raise\n\n except SocketError as e: # Platform-specific: Python 2\n # See the above comment about EAGAIN in Python 3. In Python 2 we\n # have to specifically catch it and throw the timeout error\n if e.errno in _blocking_errnos:\n raise ReadTimeoutError(\n self, url,\n \"Read timed out. (read timeout=%s)\" % read_timeout)\n\n raise\n\n # AppEngine doesn't have a version attr.\n http_version = getattr(conn, '_http_vsn_str', 'HTTP/?')\n log.debug(\"\\\"%s %s %s\\\" %s %s\" % (method, url, http_version,\n httplib_response.status,\n httplib_response.length))\n return httplib_response\n\n def close(self):\n \"\"\"\n Close all pooled connections and disable the pool.\n \"\"\"\n # Disable access to the pool\n old_pool, self.pool = self.pool, None\n\n try:\n while True:\n conn = old_pool.get(block=False)\n if conn:\n conn.close()\n\n except Empty:\n pass # Done.\n\n def is_same_host(self, url):\n \"\"\"\n Check if the given ``url`` is a member of the same host as this\n connection pool.\n \"\"\"\n if url.startswith('/'):\n return True\n\n # TODO: Add optional support for socket.gethostbyname checking.\n scheme, host, port = get_host(url)\n\n if self.port and not port:\n # Use explicit default port for comparison when none is given.\n port = port_by_scheme.get(scheme)\n\n return (scheme, host, port) == (self.scheme, self.host, self.port)\n\n def urlopen(self, method, url, body=None, headers=None, retries=3,\n redirect=True, assert_same_host=True, timeout=_Default,\n pool_timeout=None, release_conn=None, **response_kw):\n \"\"\"\n Get a connection from the pool and perform an HTTP request. This is the\n lowest level call for making a request, so you'll need to specify all\n the raw details.\n\n .. note::\n\n More commonly, it's appropriate to use a convenience method provided\n by :class:`.RequestMethods`, such as :meth:`request`.\n\n .. note::\n\n `release_conn` will only behave as expected if\n `preload_content=False` because we want to make\n `preload_content=False` the default behaviour someday soon without\n breaking backwards compatibility.\n\n :param method:\n HTTP request method (such as GET, POST, PUT, etc.)\n\n :param body:\n Data to send in the request body (useful for creating\n POST requests, see HTTPConnectionPool.post_url for\n more convenience).\n\n :param headers:\n Dictionary of custom headers to send, such as User-Agent,\n If-None-Match, etc. If None, pool headers are used. If provided,\n these headers completely replace any pool-specific headers.\n\n :param retries:\n Number of retries to allow before raising a MaxRetryError exception.\n\n :param redirect:\n If True, automatically handle redirects (status codes 301, 302,\n 303, 307, 308). Each redirect counts as a retry.\n\n :param assert_same_host:\n If ``True``, will make sure that the host of the pool requests is\n consistent else will raise HostChangedError. When False, you can\n use the pool on an HTTP proxy and request foreign hosts.\n\n :param timeout:\n If specified, overrides the default timeout for this one\n request. It may be a float (in seconds) or an instance of\n :class:`urllib3.util.Timeout`.\n\n :param pool_timeout:\n If set and the pool is set to block=True, then this method will\n block for ``pool_timeout`` seconds and raise EmptyPoolError if no\n connection is available within the time period.\n\n :param release_conn:\n If False, then the urlopen call will not release the connection\n back into the pool once a response is received (but will release if\n you read the entire contents of the response such as when\n `preload_content=True`). This is useful if you're not preloading\n the response's content immediately. You will need to call\n ``r.release_conn()`` on the response ``r`` to return the connection\n back into the pool. If None, it takes the value of\n ``response_kw.get('preload_content', True)``.\n\n :param \\**response_kw:\n Additional parameters are passed to\n :meth:`urllib3.response.HTTPResponse.from_httplib`\n \"\"\"\n if headers is None:\n headers = self.headers\n\n if retries < 0:\n raise MaxRetryError(self, url)\n\n if release_conn is None:\n release_conn = response_kw.get('preload_content', True)\n\n # Check host\n if assert_same_host and not self.is_same_host(url):\n raise HostChangedError(self, url, retries - 1)\n\n conn = None\n\n try:\n # Request a connection from the queue\n conn = self._get_conn(timeout=pool_timeout)\n\n # Make the request on the httplib connection object\n httplib_response = self._make_request(conn, method, url,\n timeout=timeout,\n body=body, headers=headers)\n\n # If we're going to release the connection in ``finally:``, then\n # the request doesn't need to know about the connection. Otherwise\n # it will also try to release it and we'll have a double-release\n # mess.\n response_conn = not release_conn and conn\n\n # Import httplib's response into our own wrapper object\n response = HTTPResponse.from_httplib(httplib_response,\n pool=self,\n connection=response_conn,\n **response_kw)\n\n # else:\n # The connection will be put back into the pool when\n # ``response.release_conn()`` is called (implicitly by\n # ``response.read()``)\n\n except Empty:\n # Timed out by queue\n raise EmptyPoolError(self, \"No pool connections are available.\")\n\n except BaseSSLError as e:\n raise SSLError(e)\n\n except CertificateError as e:\n # Name mismatch\n raise SSLError(e)\n\n except TimeoutError as e:\n # Connection broken, discard.\n conn = None\n # Save the error off for retry logic.\n err = e\n\n if retries == 0:\n raise\n\n except (HTTPException, SocketError) as e:\n if isinstance(e, SocketError) and self.proxy is not None:\n raise ProxyError('Cannot connect to proxy. '\n 'Socket error: %s.' % e)\n\n # Connection broken, discard. It will be replaced next _get_conn().\n conn = None\n # This is necessary so we can access e below\n err = e\n\n if retries == 0:\n raise MaxRetryError(self, url, e)\n\n finally:\n if release_conn:\n # Put the connection back to be reused. If the connection is\n # expired then it will be None, which will get replaced with a\n # fresh connection during _get_conn.\n self._put_conn(conn)\n\n if not conn:\n # Try again\n log.warn(\"Retrying (%d attempts remain) after connection \"\n \"broken by '%r': %s\" % (retries, err, url))\n return self.urlopen(method, url, body, headers, retries - 1,\n redirect, assert_same_host,\n timeout=timeout, pool_timeout=pool_timeout,\n release_conn=release_conn, **response_kw)\n\n # Handle redirect?\n redirect_location = redirect and response.get_redirect_location()\n if redirect_location:\n if response.status == 303:\n method = 'GET'\n log.info(\"Redirecting %s -> %s\" % (url, redirect_location))\n return self.urlopen(method, redirect_location, body, headers,\n retries - 1, redirect, assert_same_host,\n timeout=timeout, pool_timeout=pool_timeout,\n release_conn=release_conn, **response_kw)\n\n return response\n\n\nclass HTTPSConnectionPool(HTTPConnectionPool):\n \"\"\"\n Same as :class:`.HTTPConnectionPool`, but HTTPS.\n\n When Python is compiled with the :mod:`ssl` module, then\n :class:`.VerifiedHTTPSConnection` is used, which *can* verify certificates,\n instead of :class:`httplib.HTTPSConnection`.\n\n :class:`.VerifiedHTTPSConnection` uses one of ``assert_fingerprint``,\n ``assert_hostname`` and ``host`` in this order to verify connections.\n If ``assert_hostname`` is False, no verification is done.\n\n The ``key_file``, ``cert_file``, ``cert_reqs``, ``ca_certs`` and\n ``ssl_version`` are only used if :mod:`ssl` is available and are fed into\n :meth:`urllib3.util.ssl_wrap_socket` to upgrade the connection socket\n into an SSL socket.\n \"\"\"\n\n scheme = 'https'\n ConnectionCls = HTTPSConnection\n\n def __init__(self, host, port=None,\n strict=False, timeout=None, maxsize=1,\n block=False, headers=None,\n _proxy=None, _proxy_headers=None,\n key_file=None, cert_file=None, cert_reqs=None,\n ca_certs=None, ssl_version=None,\n assert_hostname=None, assert_fingerprint=None):\n\n HTTPConnectionPool.__init__(self, host, port, strict, timeout, maxsize,\n block, headers, _proxy, _proxy_headers)\n self.key_file = key_file\n self.cert_file = cert_file\n self.cert_reqs = cert_reqs\n self.ca_certs = ca_certs\n self.ssl_version = ssl_version\n self.assert_hostname = assert_hostname\n self.assert_fingerprint = assert_fingerprint\n\n def _prepare_conn(self, conn):\n \"\"\"\n Prepare the ``connection`` for :meth:`urllib3.util.ssl_wrap_socket`\n and establish the tunnel if proxy is used.\n \"\"\"\n\n if isinstance(conn, VerifiedHTTPSConnection):\n conn.set_cert(key_file=self.key_file,\n cert_file=self.cert_file,\n cert_reqs=self.cert_reqs,\n ca_certs=self.ca_certs,\n assert_hostname=self.assert_hostname,\n assert_fingerprint=self.assert_fingerprint)\n conn.ssl_version = self.ssl_version\n\n if self.proxy is not None:\n # Python 2.7+\n try:\n set_tunnel = conn.set_tunnel\n except AttributeError: # Platform-specific: Python 2.6\n set_tunnel = conn._set_tunnel\n set_tunnel(self.host, self.port, self.proxy_headers)\n # Establish tunnel connection early, because otherwise httplib\n # would improperly set Host: header to proxy's IP:port.\n conn.connect()\n\n return conn\n\n def _new_conn(self):\n \"\"\"\n Return a fresh :class:`httplib.HTTPSConnection`.\n \"\"\"\n self.num_connections += 1\n log.info(\"Starting new HTTPS connection (%d): %s\"\n % (self.num_connections, self.host))\n\n if not self.ConnectionCls or self.ConnectionCls is DummyConnection:\n # Platform-specific: Python without ssl\n raise SSLError(\"Can't connect to HTTPS URL because the SSL \"\n \"module is not available.\")\n\n actual_host = self.host\n actual_port = self.port\n if self.proxy is not None:\n actual_host = self.proxy.host\n actual_port = self.proxy.port\n\n extra_params = {}\n if not six.PY3: # Python 2\n extra_params['strict'] = self.strict\n\n conn = self.ConnectionCls(host=actual_host, port=actual_port,\n timeout=self.timeout.connect_timeout,\n **extra_params)\n\n return self._prepare_conn(conn)\n\n\ndef connection_from_url(url, **kw):\n \"\"\"\n Given a url, return an :class:`.ConnectionPool` instance of its host.\n\n This is a shortcut for not having to parse out the scheme, host, and port\n of the url before creating an :class:`.ConnectionPool` instance.\n\n :param url:\n Absolute URL string that must include the scheme. Port is optional.\n\n :param \\**kw:\n Passes additional parameters to the constructor of the appropriate\n :class:`.ConnectionPool`. Useful for specifying things like\n timeout, maxsize, headers, etc.\n\n Example: ::\n\n >>> conn = connection_from_url('http://google.com/')\n >>> r = conn.request('GET', '/')\n \"\"\"\n scheme, host, port = get_host(url)\n if scheme == 'https':\n return HTTPSConnectionPool(host, port=port, **kw)\n else:\n return HTTPConnectionPool(host, port=port, **kw)\n"},{"attributeType":"(int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int)","col":0,"comment":"null","endLoc":78,"id":39,"name":"HungarianLangModel","nodeType":"Attribute","startLoc":78,"text":"HungarianLangModel"},{"col":4,"comment":"null","endLoc":58,"header":"def filter_without_english_letters(self, aBuf)","id":41,"name":"filter_without_english_letters","nodeType":"Function","startLoc":56,"text":"def filter_without_english_letters(self, aBuf):\n aBuf = re.sub(b'([A-Za-z])+', b' ', aBuf)\n return aBuf"},{"col":4,"comment":"null","endLoc":62,"header":"def filter_with_english_letters(self, aBuf)","id":42,"name":"filter_with_english_letters","nodeType":"Function","startLoc":60,"text":"def filter_with_english_letters(self, aBuf):\n # TODO\n return aBuf"},{"attributeType":"null","col":8,"comment":"null","endLoc":38,"id":43,"name":"_mState","nodeType":"Attribute","startLoc":38,"text":"self._mState"},{"attributeType":"OSError","col":0,"comment":"null","endLoc":671,"id":44,"name":"error","nodeType":"Attribute","startLoc":671,"text":"error"},{"attributeType":"(int, int, int, int, int, int)","col":0,"comment":"null","endLoc":74,"id":45,"name":"HZCharLenTable","nodeType":"Attribute","startLoc":74,"text":"HZCharLenTable"},{"attributeType":"TypedDict","col":0,"comment":"null","endLoc":76,"id":46,"name":"HZSMModel","nodeType":"Attribute","startLoc":76,"text":"HZSMModel"},{"attributeType":"(int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int)","col":0,"comment":"null","endLoc":82,"id":47,"name":"ISO2022CN_cls","nodeType":"Attribute","startLoc":82,"text":"ISO2022CN_cls"},{"attributeType":"(Any, int, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, int, Any, Any, Any, Any, Any, Any, Any, Any, Any, int, int, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any)","col":0,"comment":"null","endLoc":117,"id":48,"name":"ISO2022CN_st","nodeType":"Attribute","startLoc":117,"text":"ISO2022CN_st"},{"className":"error","col":0,"comment":" Base class for I/O related errors. ","endLoc":533,"id":49,"nodeType":"Class","startLoc":504,"text":"class error(Exception):\n \"\"\" Base class for I/O related errors. \"\"\"\n def __init__(self, *args, **kwargs): # real signature unknown\n pass\n\n @staticmethod # known case of __new__\n def __new__(*args, **kwargs): # real signature unknown\n \"\"\" Create and return a new object. See help(type) for accurate signature. \"\"\"\n pass\n\n def __reduce__(self, *args, **kwargs): # real signature unknown\n pass\n\n def __str__(self, *args, **kwargs): # real signature unknown\n \"\"\" Return str(self). \"\"\"\n pass\n\n characters_written = property(lambda self: object(), lambda self, v: None, lambda self: None) # default\n\n errno = property(lambda self: object(), lambda self, v: None, lambda self: None) # default\n \"\"\"POSIX exception code\"\"\"\n\n filename = property(lambda self: object(), lambda self, v: None, lambda self: None) # default\n \"\"\"exception filename\"\"\"\n\n filename2 = property(lambda self: object(), lambda self, v: None, lambda self: None) # default\n \"\"\"second exception filename\"\"\"\n\n strerror = property(lambda self: object(), lambda self, v: None, lambda self: None) # default\n \"\"\"exception strerror\"\"\""},{"attributeType":"null","col":0,"comment":"null","endLoc":33,"id":50,"name":"eNotMe","nodeType":"Attribute","startLoc":33,"text":"eNotMe"},{"className":"Exception","col":0,"comment":"null","endLoc":1947,"id":51,"nodeType":"Class","startLoc":1947,"text":"class Exception(BaseException): ..."},{"col":0,"comment":"null","endLoc":34,"header":"def wrap_ord(a)","id":52,"name":"wrap_ord","nodeType":"Function","startLoc":30,"text":"def wrap_ord(a):\n if sys.version_info < (3, 0) and isinstance(a, base_str):\n return ord(a)\n else:\n return a"},{"attributeType":"(int, int, int, int, int, int, int, int, int)","col":0,"comment":"null","endLoc":128,"id":53,"name":"ISO2022CNCharLenTable","nodeType":"Attribute","startLoc":128,"text":"ISO2022CNCharLenTable"},{"attributeType":"TypedDict","col":0,"comment":"null","endLoc":130,"id":54,"name":"ISO2022CNSMModel","nodeType":"Attribute","startLoc":130,"text":"ISO2022CNSMModel"},{"attributeType":"(int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int)","col":0,"comment":"null","endLoc":136,"id":56,"name":"ISO2022JP_cls","nodeType":"Attribute","startLoc":136,"text":"ISO2022JP_cls"},{"attributeType":"(Any, int, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, int, Any, Any, Any, int, Any, Any, Any, Any, Any, int, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any)","col":0,"comment":"null","endLoc":171,"id":57,"name":"ISO2022JP_st","nodeType":"Attribute","startLoc":171,"text":"ISO2022JP_st"},{"attributeType":"TypedDict","col":0,"comment":"null","endLoc":209,"id":58,"name":"Latin2HungarianModel","nodeType":"Attribute","startLoc":209,"text":"Latin2HungarianModel"},{"col":4,"comment":"null","endLoc":96,"header":"@property\n def __class__(self) -> type[Self]","id":59,"name":"__class__","nodeType":"Function","startLoc":95,"text":"@property\n def __class__(self) -> type[Self]: ..."},{"col":4,"comment":"null","endLoc":99,"header":"@__class__.setter\n def __class__(self, __type: type[object]) -> None","id":60,"name":"__class__","nodeType":"Function","startLoc":98,"text":"@__class__.setter\n def __class__(self, __type: type[object]) -> None: ... # noqa: F811"},{"col":4,"comment":"null","endLoc":100,"header":"def __init__(self) -> None","id":61,"name":"__init__","nodeType":"Function","startLoc":100,"text":"def __init__(self) -> None: ..."},{"col":4,"comment":"null","endLoc":101,"header":"def __new__(cls) -> Self","id":62,"name":"__new__","nodeType":"Function","startLoc":101,"text":"def __new__(cls) -> Self: ..."},{"col":4,"comment":"null","endLoc":104,"header":"def __setattr__(self, __name: str, __value: Any) -> None","id":63,"name":"__setattr__","nodeType":"Function","startLoc":104,"text":"def __setattr__(self, __name: str, __value: Any) -> None: ..."},{"col":4,"comment":"null","endLoc":105,"header":"def __delattr__(self, __name: str) -> None","id":64,"name":"__delattr__","nodeType":"Function","startLoc":105,"text":"def __delattr__(self, __name: str) -> None: ..."},{"col":4,"comment":"null","endLoc":106,"header":"def __eq__(self, __value: object) -> bool","id":65,"name":"__eq__","nodeType":"Function","startLoc":106,"text":"def __eq__(self, __value: object) -> bool: ..."},{"col":4,"comment":"null","endLoc":107,"header":"def __ne__(self, __value: object) -> bool","id":66,"name":"__ne__","nodeType":"Function","startLoc":107,"text":"def __ne__(self, __value: object) -> bool: ..."},{"col":4,"comment":"null","endLoc":108,"header":"def __str__(self) -> str","id":67,"name":"__str__","nodeType":"Function","startLoc":108,"text":"def __str__(self) -> str: ... # noqa: Y029"},{"col":4,"comment":"null","endLoc":109,"header":"def __repr__(self) -> str","id":68,"name":"__repr__","nodeType":"Function","startLoc":109,"text":"def __repr__(self) -> str: ... # noqa: Y029"},{"col":4,"comment":"null","endLoc":110,"header":"def __hash__(self) -> int","id":69,"name":"__hash__","nodeType":"Function","startLoc":110,"text":"def __hash__(self) -> int: ..."},{"col":4,"comment":"null","endLoc":111,"header":"def __format__(self, __format_spec: str) -> str","id":70,"name":"__format__","nodeType":"Function","startLoc":111,"text":"def __format__(self, __format_spec: str) -> str: ..."},{"col":4,"comment":"null","endLoc":112,"header":"def __getattribute__(self, __name: str) -> Any","id":71,"name":"__getattribute__","nodeType":"Function","startLoc":112,"text":"def __getattribute__(self, __name: str) -> Any: ..."},{"col":4,"comment":"null","endLoc":113,"header":"def __sizeof__(self) -> int","id":72,"name":"__sizeof__","nodeType":"Function","startLoc":113,"text":"def __sizeof__(self) -> int: ..."},{"col":4,"comment":"null","endLoc":116,"header":"def __reduce__(self) -> str | tuple[Any, ...]","id":73,"name":"__reduce__","nodeType":"Function","startLoc":116,"text":"def __reduce__(self) -> str | tuple[Any, ...]: ..."},{"col":8,"comment":"null","endLoc":118,"header":"def __reduce_ex__(self, __protocol: SupportsIndex) -> str | tuple[Any, ...]","id":74,"name":"__reduce_ex__","nodeType":"Function","startLoc":118,"text":"def __reduce_ex__(self, __protocol: SupportsIndex) -> str | tuple[Any, ...]: ..."},{"col":4,"comment":"null","endLoc":124,"header":"def __dir__(self) -> Iterable[str]","id":75,"name":"__dir__","nodeType":"Function","startLoc":124,"text":"def __dir__(self) -> Iterable[str]: ..."},{"col":4,"comment":"null","endLoc":125,"header":"def __init_subclass__(cls) -> None","id":76,"name":"__init_subclass__","nodeType":"Function","startLoc":125,"text":"def __init_subclass__(cls) -> None: ..."},{"col":4,"comment":"null","endLoc":127,"header":"@classmethod\n def __subclasshook__(cls, __subclass: type) -> bool","id":77,"name":"__subclasshook__","nodeType":"Function","startLoc":126,"text":"@classmethod\n def __subclasshook__(cls, __subclass: type) -> bool: ..."},{"attributeType":"str | None","col":4,"comment":"null","endLoc":91,"id":78,"name":"__doc__","nodeType":"Attribute","startLoc":91,"text":"__doc__"},{"attributeType":"TypedDict","col":0,"comment":"null","endLoc":217,"id":79,"name":"Win1250HungarianModel","nodeType":"Attribute","startLoc":217,"text":"Win1250HungarianModel"},{"className":"Latin1Prober","col":0,"comment":"null","endLoc":139,"id":81,"nodeType":"Class","startLoc":97,"text":"class Latin1Prober(CharSetProber):\n def __init__(self):\n CharSetProber.__init__(self)\n self.reset()\n\n def reset(self):\n self._mLastCharClass = OTH\n self._mFreqCounter = [0] * FREQ_CAT_NUM\n CharSetProber.reset(self)\n\n def get_charset_name(self):\n return \"windows-1252\"\n\n def feed(self, aBuf):\n aBuf = self.filter_with_english_letters(aBuf)\n for c in aBuf:\n charClass = Latin1_CharToClass[wrap_ord(c)]\n freq = Latin1ClassModel[(self._mLastCharClass * CLASS_NUM)\n + charClass]\n if freq == 0:\n self._mState = eNotMe\n break\n self._mFreqCounter[freq] += 1\n self._mLastCharClass = charClass\n\n return self.get_state()\n\n def get_confidence(self):\n if self.get_state() == eNotMe:\n return 0.01\n\n total = sum(self._mFreqCounter)\n if total < 0.01:\n confidence = 0.0\n else:\n confidence = ((float(self._mFreqCounter[3]) / total)\n - (self._mFreqCounter[1] * 20.0 / total))\n if confidence < 0.0:\n confidence = 0.0\n # lower the confidence of latin1 so that other more accurate\n # detector can take priority.\n confidence = confidence * 0.5\n return confidence"},{"col":4,"comment":"null","endLoc":100,"header":"def __init__(self)","id":82,"name":"__init__","nodeType":"Function","startLoc":98,"text":"def __init__(self):\n CharSetProber.__init__(self)\n self.reset()"},{"col":0,"comment":"","endLoc":51,"header":"langhungarianmodel.py#","id":83,"name":"","nodeType":"Function","startLoc":34,"text":"Latin2_HungarianCharToOrderMap = (\n255,255,255,255,255,255,255,255,255,255,254,255,255,254,255,255, # 00\n255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, # 10\n253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253, # 20\n252,252,252,252,252,252,252,252,252,252,253,253,253,253,253,253, # 30\n253, 28, 40, 54, 45, 32, 50, 49, 38, 39, 53, 36, 41, 34, 35, 47,\n 46, 71, 43, 33, 37, 57, 48, 64, 68, 55, 52,253,253,253,253,253,\n253, 2, 18, 26, 17, 1, 27, 12, 20, 9, 22, 7, 6, 13, 4, 8,\n 23, 67, 10, 5, 3, 21, 19, 65, 62, 16, 11,253,253,253,253,253,\n159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,\n175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,\n191,192,193,194,195,196,197, 75,198,199,200,201,202,203,204,205,\n 79,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,\n221, 51, 81,222, 78,223,224,225,226, 44,227,228,229, 61,230,231,\n232,233,234, 58,235, 66, 59,236,237,238, 60, 69, 63,239,240,241,\n 82, 14, 74,242, 70, 80,243, 72,244, 15, 83, 77, 84, 30, 76, 85,\n245,246,247, 25, 73, 42, 24,248,249,250, 31, 56, 29,251,252,253,\n)\n\nwin1250HungarianCharToOrderMap = (\n255,255,255,255,255,255,255,255,255,255,254,255,255,254,255,255, # 00\n255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, # 10\n253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253, # 20\n252,252,252,252,252,252,252,252,252,252,253,253,253,253,253,253, # 30\n253, 28, 40, 54, 45, 32, 50, 49, 38, 39, 53, 36, 41, 34, 35, 47,\n 46, 72, 43, 33, 37, 57, 48, 64, 68, 55, 52,253,253,253,253,253,\n253, 2, 18, 26, 17, 1, 27, 12, 20, 9, 22, 7, 6, 13, 4, 8,\n 23, 67, 10, 5, 3, 21, 19, 65, 62, 16, 11,253,253,253,253,253,\n161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,\n177,178,179,180, 78,181, 69,182,183,184,185,186,187,188,189,190,\n191,192,193,194,195,196,197, 76,198,199,200,201,202,203,204,205,\n 81,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,\n221, 51, 83,222, 80,223,224,225,226, 44,227,228,229, 61,230,231,\n232,233,234, 58,235, 66, 59,236,237,238, 60, 70, 63,239,240,241,\n 84, 14, 75,242, 71, 82,243, 73,244, 15, 85, 79, 86, 30, 77, 87,\n245,246,247, 25, 74, 42, 24,248,249,250, 31, 56, 29,251,252,253,\n)\n\nHungarianLangModel = (\n0,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,1,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,\n3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,3,3,2,2,3,3,1,1,2,2,2,2,2,1,2,\n3,2,2,3,3,3,3,3,2,3,3,3,3,3,3,1,2,3,3,3,3,2,3,3,1,1,3,3,0,1,1,1,\n0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,\n3,2,1,3,3,3,3,3,2,3,3,3,3,3,1,1,2,3,3,3,3,3,3,3,1,1,3,2,0,1,1,1,\n0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,\n3,3,3,3,3,3,3,3,3,3,3,1,1,2,3,3,3,1,3,3,3,3,3,1,3,3,2,2,0,3,2,3,\n0,0,0,0,0,0,0,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,\n3,3,3,3,3,3,2,3,3,3,2,3,3,2,3,3,3,3,3,2,3,3,2,2,3,2,3,2,0,3,2,2,\n0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,\n3,3,3,3,3,3,2,3,3,3,3,3,2,3,3,3,1,2,3,2,2,3,1,2,3,3,2,2,0,3,3,3,\n0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,\n3,3,3,3,3,3,3,3,3,3,2,2,3,3,3,3,3,3,2,3,3,3,3,2,3,3,3,3,0,2,3,2,\n0,0,0,1,1,0,0,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,\n3,3,3,3,3,3,3,3,3,3,3,1,1,1,3,3,2,1,3,2,2,3,2,1,3,2,2,1,0,3,3,1,\n0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,\n3,2,2,3,3,3,3,3,1,2,3,3,3,3,1,2,1,3,3,3,3,2,2,3,1,1,3,2,0,1,1,1,\n0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,\n3,3,3,3,3,3,3,3,2,2,3,3,3,3,3,2,1,3,3,3,3,3,2,2,1,3,3,3,0,1,1,2,\n0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,\n3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,2,3,3,2,3,3,3,2,0,3,2,3,\n0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,1,0,\n3,3,3,3,3,3,2,3,3,3,2,3,2,3,3,3,1,3,2,2,2,3,1,1,3,3,1,1,0,3,3,2,\n0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,\n3,3,3,3,3,3,3,2,3,3,3,2,3,2,3,3,3,2,3,3,3,3,3,1,2,3,2,2,0,2,2,2,\n0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,\n3,3,3,2,2,2,3,1,3,3,2,2,1,3,3,3,1,1,3,1,2,3,2,3,2,2,2,1,0,2,2,2,\n0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,\n3,1,1,3,3,3,3,3,1,2,3,3,3,3,1,2,1,3,3,3,2,2,3,2,1,0,3,2,0,1,1,0,\n0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n3,1,1,3,3,3,3,3,1,2,3,3,3,3,1,1,0,3,3,3,3,0,2,3,0,0,2,1,0,1,0,0,\n0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n3,3,3,3,3,3,2,2,3,3,2,2,2,2,3,3,0,1,2,3,2,3,2,2,3,2,1,2,0,2,2,2,\n0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,\n3,3,3,3,3,3,1,2,3,3,3,2,1,2,3,3,2,2,2,3,2,3,3,1,3,3,1,1,0,2,3,2,\n0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,\n3,3,3,1,2,2,2,2,3,3,3,1,1,1,3,3,1,1,3,1,1,3,2,1,2,3,1,1,0,2,2,2,\n0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,\n3,3,3,2,1,2,1,1,3,3,1,1,1,1,3,3,1,1,2,2,1,2,1,1,2,2,1,1,0,2,2,1,\n0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,\n3,3,3,1,1,2,1,1,3,3,1,0,1,1,3,3,2,0,1,1,2,3,1,0,2,2,1,0,0,1,3,2,\n0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,\n3,2,1,3,3,3,3,3,1,2,3,2,3,3,2,1,1,3,2,3,2,1,2,2,0,1,2,1,0,0,1,1,\n0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,\n3,3,3,3,2,2,2,2,3,1,2,2,1,1,3,3,0,3,2,1,2,3,2,1,3,3,1,1,0,2,1,3,\n0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,\n3,3,3,2,2,2,3,2,3,3,3,2,1,1,3,3,1,1,1,2,2,3,2,3,2,2,2,1,0,2,2,1,\n0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,\n1,0,0,3,3,3,3,3,0,0,3,3,2,3,0,0,0,2,3,3,1,0,1,2,0,0,1,1,0,0,0,0,\n0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n3,1,2,3,3,3,3,3,1,2,3,3,2,2,1,1,0,3,3,2,2,1,2,2,1,0,2,2,0,1,1,1,\n0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n3,3,2,2,1,3,1,2,3,3,2,2,1,1,2,2,1,1,1,1,3,2,1,1,1,1,2,1,0,1,2,1,\n0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,\n2,3,3,1,1,1,1,1,3,3,3,0,1,1,3,3,1,1,1,1,1,2,2,0,3,1,1,2,0,2,1,1,\n0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,\n3,1,0,1,2,1,2,2,0,1,2,3,1,2,0,0,0,2,1,1,1,1,1,2,0,0,1,1,0,0,0,0,\n1,2,1,2,2,2,1,2,1,2,0,2,0,2,2,1,1,2,1,1,2,1,1,1,0,1,0,0,0,1,1,0,\n1,1,1,2,3,2,3,3,0,1,2,2,3,1,0,1,0,2,1,2,2,0,1,1,0,0,1,1,0,0,0,0,\n0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n1,0,0,3,3,2,2,1,0,0,3,2,3,2,0,0,0,1,1,3,0,0,1,1,0,0,2,1,0,0,0,0,\n0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n3,1,1,2,2,3,3,1,0,1,3,2,3,1,1,1,0,1,1,1,1,1,3,1,0,0,2,2,0,0,0,0,\n0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n3,1,1,1,2,2,2,1,0,1,2,3,3,2,0,0,0,2,1,1,1,2,1,1,1,0,1,1,1,0,0,0,\n1,2,2,2,2,2,1,1,1,2,0,2,1,1,1,1,1,2,1,1,1,1,1,1,0,1,1,1,0,0,1,1,\n3,2,2,1,0,0,1,1,2,2,0,3,0,1,2,1,1,0,0,1,1,1,0,1,1,1,1,0,2,1,1,1,\n2,2,1,1,1,2,1,2,1,1,1,1,1,1,1,2,1,1,1,2,3,1,1,1,1,1,1,1,1,1,0,1,\n2,3,3,0,1,0,0,0,3,3,1,0,0,1,2,2,1,0,0,0,0,2,0,0,1,1,1,0,2,1,1,1,\n2,1,1,1,1,1,1,2,1,1,0,1,1,0,1,1,1,0,1,2,1,1,0,1,1,1,1,1,1,1,0,1,\n2,3,3,0,1,0,0,0,2,2,0,0,0,0,1,2,2,0,0,0,0,1,0,0,1,1,0,0,2,0,1,0,\n2,1,1,1,1,2,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,2,0,1,1,1,1,1,0,1,\n3,2,2,0,1,0,1,0,2,3,2,0,0,1,2,2,1,0,0,1,1,1,0,0,2,1,0,1,2,2,1,1,\n2,1,1,1,1,1,1,2,1,1,1,1,1,1,0,2,1,0,1,1,0,1,1,1,0,1,1,2,1,1,0,1,\n2,2,2,0,0,1,0,0,2,2,1,1,0,0,2,1,1,0,0,0,1,2,0,0,2,1,0,0,2,1,1,1,\n2,1,1,1,1,2,1,2,1,1,1,2,2,1,1,2,1,1,1,2,1,1,1,1,1,1,1,1,1,1,0,1,\n1,2,3,0,0,0,1,0,3,2,1,0,0,1,2,1,1,0,0,0,0,2,1,0,1,1,0,0,2,1,2,1,\n1,1,0,0,0,1,0,1,1,1,1,1,2,0,0,1,0,0,0,2,0,0,1,1,1,1,1,1,1,1,0,1,\n3,0,0,2,1,2,2,1,0,0,2,1,2,2,0,0,0,2,1,1,1,0,1,1,0,0,1,1,2,0,0,0,\n1,2,1,2,2,1,1,2,1,2,0,1,1,1,1,1,1,1,1,1,2,1,1,0,0,1,1,1,1,0,0,1,\n1,3,2,0,0,0,1,0,2,2,2,0,0,0,2,2,1,0,0,0,0,3,1,1,1,1,0,0,2,1,1,1,\n2,1,0,1,1,1,0,1,1,1,1,1,1,1,0,2,1,0,0,1,0,1,1,0,1,1,1,1,1,1,0,1,\n2,3,2,0,0,0,1,0,2,2,0,0,0,0,2,1,1,0,0,0,0,2,1,0,1,1,0,0,2,1,1,0,\n2,1,1,1,1,2,1,2,1,2,0,1,1,1,0,2,1,1,1,2,1,1,1,1,0,1,1,1,1,1,0,1,\n3,1,1,2,2,2,3,2,1,1,2,2,1,1,0,1,0,2,2,1,1,1,1,1,0,0,1,1,0,1,1,0,\n0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n2,2,2,0,0,0,0,0,2,2,0,0,0,0,2,2,1,0,0,0,1,1,0,0,1,2,0,0,2,1,1,1,\n2,2,1,1,1,2,1,2,1,1,0,1,1,1,1,2,1,1,1,2,1,1,1,1,0,1,2,1,1,1,0,1,\n1,0,0,1,2,3,2,1,0,0,2,0,1,1,0,0,0,1,1,1,1,0,1,1,0,0,1,0,0,0,0,0,\n1,2,1,2,1,2,1,1,1,2,0,2,1,1,1,0,1,2,0,0,1,1,1,0,0,0,0,0,0,0,0,0,\n2,3,2,0,0,0,0,0,1,1,2,1,0,0,1,1,1,0,0,0,0,2,0,0,1,1,0,0,2,1,1,1,\n2,1,1,1,1,1,1,2,1,0,1,1,1,1,0,2,1,1,1,1,1,1,0,1,0,1,1,1,1,1,0,1,\n1,2,2,0,1,1,1,0,2,2,2,0,0,0,3,2,1,0,0,0,1,1,0,0,1,1,0,1,1,1,0,0,\n1,1,0,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,2,1,1,1,0,0,1,1,1,0,1,0,1,\n2,1,0,2,1,1,2,2,1,1,2,1,1,1,0,0,0,1,1,0,1,1,1,1,0,0,1,1,1,0,0,0,\n1,2,2,2,2,2,1,1,1,2,0,2,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,0,0,0,1,0,\n1,2,3,0,0,0,1,0,2,2,0,0,0,0,2,2,0,0,0,0,0,1,0,0,1,0,0,0,2,0,1,0,\n2,1,1,1,1,1,0,2,0,0,0,1,2,1,1,1,1,0,1,2,0,1,0,1,0,1,1,1,0,1,0,1,\n2,2,2,0,0,0,1,0,2,1,2,0,0,0,1,1,2,0,0,0,0,1,0,0,1,1,0,0,2,1,0,1,\n2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,0,1,1,1,1,1,0,1,\n1,2,2,0,0,0,1,0,2,2,2,0,0,0,1,1,0,0,0,0,0,1,1,0,2,0,0,1,1,1,0,1,\n1,0,1,1,1,1,1,1,0,1,1,1,1,0,0,1,0,0,1,1,0,1,0,1,1,1,1,1,0,0,0,1,\n1,0,0,1,0,1,2,1,0,0,1,1,1,2,0,0,0,1,1,0,1,0,1,1,0,0,1,0,0,0,0,0,\n0,2,1,2,1,1,1,1,1,2,0,2,0,1,1,0,1,2,1,0,1,1,1,0,0,0,0,0,0,1,0,0,\n2,1,1,0,1,2,0,0,1,1,1,0,0,0,1,1,0,0,0,0,0,1,0,0,1,0,0,0,2,1,0,1,\n2,2,1,1,1,1,1,2,1,1,0,1,1,1,1,2,1,1,1,2,1,1,0,1,0,1,1,1,1,1,0,1,\n1,2,2,0,0,0,0,0,1,1,0,0,0,0,2,1,0,0,0,0,0,2,0,0,2,2,0,0,2,0,0,1,\n2,1,1,1,1,1,1,1,0,1,1,0,1,1,0,1,0,0,0,1,1,1,1,0,0,1,1,1,1,0,0,1,\n1,1,2,0,0,3,1,0,2,1,1,1,0,0,1,1,1,0,0,0,1,1,0,0,0,1,0,0,1,0,1,0,\n1,2,1,0,1,1,1,2,1,1,0,1,1,1,1,1,0,0,0,1,1,1,1,1,0,1,0,0,0,1,0,0,\n2,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,1,0,0,0,1,0,0,0,0,2,0,0,0,\n2,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,2,1,1,0,0,1,1,1,1,1,0,1,\n2,1,1,1,2,1,1,1,0,1,1,2,1,0,0,0,0,1,1,1,1,0,1,0,0,0,0,1,0,0,0,0,\n0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n1,1,0,1,1,1,1,1,0,0,1,1,2,1,0,0,0,1,1,0,0,0,1,1,0,0,1,0,1,0,0,0,\n1,2,1,1,1,1,1,1,1,1,0,1,0,1,1,1,1,1,1,0,1,1,1,0,0,0,0,0,0,1,0,0,\n2,0,0,0,1,1,1,1,0,0,1,1,0,0,0,0,0,1,1,1,2,0,0,1,0,0,1,0,1,0,0,0,\n0,1,1,1,1,1,1,1,1,2,0,1,1,1,1,0,1,1,1,0,1,1,1,0,0,0,0,0,0,0,0,0,\n1,0,0,1,1,1,1,1,0,0,2,1,0,1,0,0,0,1,0,1,0,0,0,0,0,0,1,0,0,0,0,0,\n0,1,1,1,1,1,1,0,1,1,0,1,0,1,1,0,1,1,0,0,1,1,1,0,0,0,0,0,0,0,0,0,\n1,0,0,1,1,1,0,0,0,0,1,0,2,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,\n0,1,1,1,1,1,0,0,1,1,0,1,0,1,0,0,1,1,1,0,1,1,1,0,0,0,0,0,0,0,0,0,\n0,0,0,1,0,0,0,0,0,0,1,1,2,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n0,1,1,1,0,1,0,0,1,1,0,1,0,1,1,0,1,1,1,0,1,1,1,0,0,0,0,0,0,0,0,0,\n2,1,1,1,1,1,1,1,1,1,1,0,0,1,1,1,0,0,1,0,0,1,0,1,0,1,1,1,0,0,1,0,\n0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n1,0,0,1,1,1,1,0,0,0,1,1,1,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,\n0,1,1,1,1,1,1,0,1,1,0,1,0,1,0,0,1,1,0,0,1,1,0,0,0,0,0,0,0,0,0,0,\n)\n\nLatin2HungarianModel = {\n 'charToOrderMap': Latin2_HungarianCharToOrderMap,\n 'precedenceMatrix': HungarianLangModel,\n 'mTypicalPositiveRatio': 0.947368,\n 'keepEnglishLetter': True,\n 'charsetName': \"ISO-8859-2\"\n}\n\nWin1250HungarianModel = {\n 'charToOrderMap': win1250HungarianCharToOrderMap,\n 'precedenceMatrix': HungarianLangModel,\n 'mTypicalPositiveRatio': 0.947368,\n 'keepEnglishLetter': True,\n 'charsetName': \"windows-1250\"\n}"},{"col":4,"comment":"null","endLoc":48,"header":"def reset(self)","id":84,"name":"reset","nodeType":"Function","startLoc":42,"text":"def reset(self):\n CharSetProber.reset(self)\n if self._mCodingSM:\n self._mCodingSM.reset()\n if self._mDistributionAnalyzer:\n self._mDistributionAnalyzer.reset()\n self._mLastChar = [0, 0]"},{"attributeType":"(int, int, int, int, int, int, int, int, int, int)","col":0,"comment":"null","endLoc":183,"id":85,"name":"ISO2022JPCharLenTable","nodeType":"Attribute","startLoc":183,"text":"ISO2022JPCharLenTable"},{"attributeType":"TypedDict","col":0,"comment":"null","endLoc":185,"id":86,"name":"ISO2022JPSMModel","nodeType":"Attribute","startLoc":185,"text":"ISO2022JPSMModel"},{"attributeType":"(int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int)","col":0,"comment":"null","endLoc":191,"id":87,"name":"ISO2022KR_cls","nodeType":"Attribute","startLoc":191,"text":"ISO2022KR_cls"},{"col":4,"comment":"null","endLoc":105,"header":"def reset(self)","id":88,"name":"reset","nodeType":"Function","startLoc":102,"text":"def reset(self):\n self._mLastCharClass = OTH\n self._mFreqCounter = [0] * FREQ_CAT_NUM\n CharSetProber.reset(self)"},{"col":4,"comment":"null","endLoc":108,"header":"def get_charset_name(self)","id":89,"name":"get_charset_name","nodeType":"Function","startLoc":107,"text":"def get_charset_name(self):\n return \"windows-1252\""},{"col":4,"comment":"null","endLoc":122,"header":"def feed(self, aBuf)","id":90,"name":"feed","nodeType":"Function","startLoc":110,"text":"def feed(self, aBuf):\n aBuf = self.filter_with_english_letters(aBuf)\n for c in aBuf:\n charClass = Latin1_CharToClass[wrap_ord(c)]\n freq = Latin1ClassModel[(self._mLastCharClass * CLASS_NUM)\n + charClass]\n if freq == 0:\n self._mState = eNotMe\n break\n self._mFreqCounter[freq] += 1\n self._mLastCharClass = charClass\n\n return self.get_state()"},{"col":4,"comment":"null","endLoc":51,"header":"def get_charset_name(self)","id":91,"name":"get_charset_name","nodeType":"Function","startLoc":50,"text":"def get_charset_name(self):\n pass"},{"col":4,"comment":"null","endLoc":83,"header":"def feed(self, aBuf)","id":92,"name":"feed","nodeType":"Function","startLoc":53,"text":"def feed(self, aBuf):\n aLen = len(aBuf)\n for i in range(0, aLen):\n codingState = self._mCodingSM.next_state(aBuf[i])\n if codingState == constants.eError:\n if constants._debug:\n sys.stderr.write(self.get_charset_name()\n + ' prober hit error at byte ' + str(i)\n + '\\n')\n self._mState = constants.eNotMe\n break\n elif codingState == constants.eItsMe:\n self._mState = constants.eFoundIt\n break\n elif codingState == constants.eStart:\n charLen = self._mCodingSM.get_current_charlen()\n if i == 0:\n self._mLastChar[1] = aBuf[0]\n self._mDistributionAnalyzer.feed(self._mLastChar, charLen)\n else:\n self._mDistributionAnalyzer.feed(aBuf[i - 1:i + 1],\n charLen)\n\n self._mLastChar[0] = aBuf[aLen - 1]\n\n if self.get_state() == constants.eDetecting:\n if (self._mDistributionAnalyzer.got_enough_data() and\n (self.get_confidence() > constants.SHORTCUT_THRESHOLD)):\n self._mState = constants.eFoundIt\n\n return self.get_state()"},{"attributeType":"(Any, int, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, int, Any, Any, Any, Any, Any, Any, int, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any)","col":0,"comment":"null","endLoc":226,"id":93,"name":"ISO2022KR_st","nodeType":"Attribute","startLoc":226,"text":"ISO2022KR_st"},{"attributeType":"dict","col":4,"comment":"null","endLoc":92,"id":95,"name":"__dict__","nodeType":"Attribute","startLoc":92,"text":"__dict__"},{"className":"BaseException","col":0,"comment":"null","endLoc":1939,"id":96,"nodeType":"Class","startLoc":1927,"text":"class BaseException:\n args: tuple[Any, ...]\n __cause__: BaseException | None\n __context__: BaseException | None\n __suppress_context__: bool\n __traceback__: TracebackType | None\n def __init__(self, *args: object) -> None: ...\n def __setstate__(self, __state: dict[str, Any] | None) -> None: ...\n def with_traceback(self, __tb: TracebackType | None) -> Self: ...\n if sys.version_info >= (3, 11):\n # only present after add_note() is called\n __notes__: list[str]\n def add_note(self, __note: str) -> None: ..."},{"col":4,"comment":"null","endLoc":1933,"header":"def __init__(self, *args: object) -> None","id":97,"name":"__init__","nodeType":"Function","startLoc":1933,"text":"def __init__(self, *args: object) -> None: ..."},{"col":4,"comment":"null","endLoc":1934,"header":"def __setstate__(self, __state: dict[str, Any] | None) -> None","id":98,"name":"__setstate__","nodeType":"Function","startLoc":1934,"text":"def __setstate__(self, __state: dict[str, Any] | None) -> None: ..."},{"col":4,"comment":"null","endLoc":1935,"header":"def with_traceback(self, __tb: TracebackType | None) -> Self","id":99,"name":"with_traceback","nodeType":"Function","startLoc":1935,"text":"def with_traceback(self, __tb: TracebackType | None) -> Self: ..."},{"fileName":"response.py","filePath":"requests/packages/urllib3","id":100,"nodeType":"File","text":"# urllib3/response.py\n# Copyright 2008-2013 Andrey Petrov and contributors (see CONTRIBUTORS.txt)\n#\n# This module is part of urllib3 and is released under\n# the MIT License: http://www.opensource.org/licenses/mit-license.php\n\n\nimport logging\nimport zlib\nimport io\n\nfrom .exceptions import DecodeError\nfrom .packages.six import string_types as basestring, binary_type\nfrom .util import is_fp_closed\n\n\nlog = logging.getLogger(__name__)\n\n\nclass DeflateDecoder(object):\n\n def __init__(self):\n self._first_try = True\n self._data = binary_type()\n self._obj = zlib.decompressobj()\n\n def __getattr__(self, name):\n return getattr(self._obj, name)\n\n def decompress(self, data):\n if not self._first_try:\n return self._obj.decompress(data)\n\n self._data += data\n try:\n return self._obj.decompress(data)\n except zlib.error:\n self._first_try = False\n self._obj = zlib.decompressobj(-zlib.MAX_WBITS)\n try:\n return self.decompress(self._data)\n finally:\n self._data = None\n\n\ndef _get_decoder(mode):\n if mode == 'gzip':\n return zlib.decompressobj(16 + zlib.MAX_WBITS)\n\n return DeflateDecoder()\n\n\nclass HTTPResponse(io.IOBase):\n \"\"\"\n HTTP Response container.\n\n Backwards-compatible to httplib's HTTPResponse but the response ``body`` is\n loaded and decoded on-demand when the ``data`` property is accessed.\n\n Extra parameters for behaviour not present in httplib.HTTPResponse:\n\n :param preload_content:\n If True, the response's body will be preloaded during construction.\n\n :param decode_content:\n If True, attempts to decode specific content-encoding's based on headers\n (like 'gzip' and 'deflate') will be skipped and raw data will be used\n instead.\n\n :param original_response:\n When this HTTPResponse wrapper is generated from an httplib.HTTPResponse\n object, it's convenient to include the original for debug purposes. It's\n otherwise unused.\n \"\"\"\n\n CONTENT_DECODERS = ['gzip', 'deflate']\n REDIRECT_STATUSES = [301, 302, 303, 307, 308]\n\n def __init__(self, body='', headers=None, status=0, version=0, reason=None,\n strict=0, preload_content=True, decode_content=True,\n original_response=None, pool=None, connection=None):\n self.headers = headers or {}\n self.status = status\n self.version = version\n self.reason = reason\n self.strict = strict\n self.decode_content = decode_content\n\n self._decoder = None\n self._body = body if body and isinstance(body, basestring) else None\n self._fp = None\n self._original_response = original_response\n\n self._pool = pool\n self._connection = connection\n\n if hasattr(body, 'read'):\n self._fp = body\n\n if preload_content and not self._body:\n self._body = self.read(decode_content=decode_content)\n\n def get_redirect_location(self):\n \"\"\"\n Should we redirect and where to?\n\n :returns: Truthy redirect location string if we got a redirect status\n code and valid location. ``None`` if redirect status and no\n location. ``False`` if not a redirect status code.\n \"\"\"\n if self.status in self.REDIRECT_STATUSES:\n return self.headers.get('location')\n\n return False\n\n def release_conn(self):\n if not self._pool or not self._connection:\n return\n\n self._pool._put_conn(self._connection)\n self._connection = None\n\n @property\n def data(self):\n # For backwords-compat with earlier urllib3 0.4 and earlier.\n if self._body:\n return self._body\n\n if self._fp:\n return self.read(cache_content=True)\n\n def read(self, amt=None, decode_content=None, cache_content=False):\n \"\"\"\n Similar to :meth:`httplib.HTTPResponse.read`, but with two additional\n parameters: ``decode_content`` and ``cache_content``.\n\n :param amt:\n How much of the content to read. If specified, caching is skipped\n because it doesn't make sense to cache partial content as the full\n response.\n\n :param decode_content:\n If True, will attempt to decode the body based on the\n 'content-encoding' header.\n\n :param cache_content:\n If True, will save the returned data such that the same result is\n returned despite of the state of the underlying file object. This\n is useful if you want the ``.data`` property to continue working\n after having ``.read()`` the file object. (Overridden if ``amt`` is\n set.)\n \"\"\"\n # Note: content-encoding value should be case-insensitive, per RFC 2616\n # Section 3.5\n content_encoding = self.headers.get('content-encoding', '').lower()\n if self._decoder is None:\n if content_encoding in self.CONTENT_DECODERS:\n self._decoder = _get_decoder(content_encoding)\n if decode_content is None:\n decode_content = self.decode_content\n\n if self._fp is None:\n return\n\n flush_decoder = False\n\n try:\n if amt is None:\n # cStringIO doesn't like amt=None\n data = self._fp.read()\n flush_decoder = True\n else:\n cache_content = False\n data = self._fp.read(amt)\n if amt != 0 and not data: # Platform-specific: Buggy versions of Python.\n # Close the connection when no data is returned\n #\n # This is redundant to what httplib/http.client _should_\n # already do. However, versions of python released before\n # December 15, 2012 (http://bugs.python.org/issue16298) do not\n # properly close the connection in all cases. There is no harm\n # in redundantly calling close.\n self._fp.close()\n flush_decoder = True\n\n try:\n if decode_content and self._decoder:\n data = self._decoder.decompress(data)\n except (IOError, zlib.error) as e:\n raise DecodeError(\n \"Received response with content-encoding: %s, but \"\n \"failed to decode it.\" % content_encoding,\n e)\n\n if flush_decoder and decode_content and self._decoder:\n buf = self._decoder.decompress(binary_type())\n data += buf + self._decoder.flush()\n\n if cache_content:\n self._body = data\n\n return data\n\n finally:\n if self._original_response and self._original_response.isclosed():\n self.release_conn()\n\n def stream(self, amt=2**16, decode_content=None):\n \"\"\"\n A generator wrapper for the read() method. A call will block until\n ``amt`` bytes have been read from the connection or until the\n connection is closed.\n\n :param amt:\n How much of the content to read. The generator will return up to\n much data per iteration, but may return less. This is particularly\n likely when using compressed data. However, the empty string will\n never be returned.\n\n :param decode_content:\n If True, will attempt to decode the body based on the\n 'content-encoding' header.\n \"\"\"\n while not is_fp_closed(self._fp):\n data = self.read(amt=amt, decode_content=decode_content)\n\n if data:\n yield data\n\n\n @classmethod\n def from_httplib(ResponseCls, r, **response_kw):\n \"\"\"\n Given an :class:`httplib.HTTPResponse` instance ``r``, return a\n corresponding :class:`urllib3.response.HTTPResponse` object.\n\n Remaining parameters are passed to the HTTPResponse constructor, along\n with ``original_response=r``.\n \"\"\"\n\n # Normalize headers between different versions of Python\n headers = {}\n for k, v in r.getheaders():\n # Python 3: Header keys are returned capitalised\n k = k.lower()\n\n has_value = headers.get(k)\n if has_value: # Python 3: Repeating header keys are unmerged.\n v = ', '.join([has_value, v])\n\n headers[k] = v\n\n # HTTPResponse objects in Python 3 don't have a .strict attribute\n strict = getattr(r, 'strict', 0)\n return ResponseCls(body=r,\n headers=headers,\n status=r.status,\n version=r.version,\n reason=r.reason,\n strict=strict,\n original_response=r,\n **response_kw)\n\n # Backwards-compatibility methods for httplib.HTTPResponse\n def getheaders(self):\n return self.headers\n\n def getheader(self, name, default=None):\n return self.headers.get(name, default)\n\n # Overrides from io.IOBase\n def close(self):\n if not self.closed:\n self._fp.close()\n\n @property\n def closed(self):\n if self._fp is None:\n return True\n elif hasattr(self._fp, 'closed'):\n return self._fp.closed\n elif hasattr(self._fp, 'isclosed'): # Python 2\n return self._fp.isclosed()\n else:\n return True\n\n def fileno(self):\n if self._fp is None:\n raise IOError(\"HTTPResponse has no file to get a fileno from\")\n elif hasattr(self._fp, \"fileno\"):\n return self._fp.fileno()\n else:\n raise IOError(\"The file-like object this HTTPResponse is wrapped \"\n \"around has no file descriptor\")\n\n def flush(self):\n if self._fp is not None and hasattr(self._fp, 'flush'):\n return self._fp.flush()\n\n def readable(self):\n return True\n"},{"attributeType":"(Any, ...)","col":4,"comment":"null","endLoc":1928,"id":101,"name":"args","nodeType":"Attribute","startLoc":1928,"text":"args"},{"className":"DecodeError","col":0,"comment":"Raised when automatic decoding based on Content-Type fails.","endLoc":49,"id":102,"nodeType":"Class","startLoc":47,"text":"class DecodeError(HTTPError):\n \"Raised when automatic decoding based on Content-Type fails.\"\n pass"},{"col":4,"comment":"null","endLoc":507,"header":"def __init__(self, *args, **kwargs)","id":103,"name":"__init__","nodeType":"Function","startLoc":506,"text":"def __init__(self, *args, **kwargs): # real signature unknown\n pass"},{"col":4,"comment":" Create and return a new object. See help(type) for accurate signature. ","endLoc":512,"header":"@staticmethod # known case of __new__\n def __new__(*args, **kwargs)","id":104,"name":"__new__","nodeType":"Function","startLoc":509,"text":"@staticmethod # known case of __new__\n def __new__(*args, **kwargs): # real signature unknown\n \"\"\" Create and return a new object. See help(type) for accurate signature. \"\"\"\n pass"},{"col":4,"comment":"null","endLoc":515,"header":"def __reduce__(self, *args, **kwargs)","id":105,"name":"__reduce__","nodeType":"Function","startLoc":514,"text":"def __reduce__(self, *args, **kwargs): # real signature unknown\n pass"},{"col":4,"comment":" Return str(self). ","endLoc":519,"header":"def __str__(self, *args, **kwargs)","id":106,"name":"__str__","nodeType":"Function","startLoc":517,"text":"def __str__(self, *args, **kwargs): # real signature unknown\n \"\"\" Return str(self). \"\"\"\n pass"},{"attributeType":"null","col":4,"comment":"null","endLoc":521,"id":107,"name":"characters_written","nodeType":"Attribute","startLoc":521,"text":"characters_written"},{"attributeType":"int","col":4,"comment":"POSIX exception code","endLoc":523,"id":108,"name":"errno","nodeType":"Attribute","startLoc":523,"text":"errno"},{"col":4,"comment":"null","endLoc":139,"header":"def get_confidence(self)","id":109,"name":"get_confidence","nodeType":"Function","startLoc":124,"text":"def get_confidence(self):\n if self.get_state() == eNotMe:\n return 0.01\n\n total = sum(self._mFreqCounter)\n if total < 0.01:\n confidence = 0.0\n else:\n confidence = ((float(self._mFreqCounter[3]) / total)\n - (self._mFreqCounter[1] * 20.0 / total))\n if confidence < 0.0:\n confidence = 0.0\n # lower the confidence of latin1 so that other more accurate\n # detector can take priority.\n confidence = confidence * 0.5\n return confidence"},{"attributeType":"(int, int, int, int, int, int)","col":0,"comment":"null","endLoc":234,"id":110,"name":"ISO2022KRCharLenTable","nodeType":"Attribute","startLoc":234,"text":"ISO2022KRCharLenTable"},{"attributeType":"TypedDict","col":0,"comment":"null","endLoc":236,"id":111,"name":"ISO2022KRSMModel","nodeType":"Attribute","startLoc":236,"text":"ISO2022KRSMModel"},{"id":112,"name":"requests/packages/urllib3/packages/ssl_match_hostname","nodeType":"Package"},{"fileName":"__init__.py","filePath":"requests/packages/urllib3/packages/ssl_match_hostname","id":113,"nodeType":"File","text":"\"\"\"The match_hostname() function from Python 3.2, essential when using SSL.\"\"\"\n\nimport re\n\n__version__ = '3.2.2'\n\nclass CertificateError(ValueError):\n pass\n\ndef _dnsname_match(dn, hostname, max_wildcards=1):\n \"\"\"Matching according to RFC 6125, section 6.4.3\n\n http://tools.ietf.org/html/rfc6125#section-6.4.3\n \"\"\"\n pats = []\n if not dn:\n return False\n\n parts = dn.split(r'.')\n leftmost = parts[0]\n\n wildcards = leftmost.count('*')\n if wildcards > max_wildcards:\n # Issue #17980: avoid denials of service by refusing more\n # than one wildcard per fragment. A survery of established\n # policy among SSL implementations showed it to be a\n # reasonable choice.\n raise CertificateError(\n \"too many wildcards in certificate DNS name: \" + repr(dn))\n\n # speed up common case w/o wildcards\n if not wildcards:\n return dn.lower() == hostname.lower()\n\n # RFC 6125, section 6.4.3, subitem 1.\n # The client SHOULD NOT attempt to match a presented identifier in which\n # the wildcard character comprises a label other than the left-most label.\n if leftmost == '*':\n # When '*' is a fragment by itself, it matches a non-empty dotless\n # fragment.\n pats.append('[^.]+')\n elif leftmost.startswith('xn--') or hostname.startswith('xn--'):\n # RFC 6125, section 6.4.3, subitem 3.\n # The client SHOULD NOT attempt to match a presented identifier\n # where the wildcard character is embedded within an A-label or\n # U-label of an internationalized domain name.\n pats.append(re.escape(leftmost))\n else:\n # Otherwise, '*' matches any dotless string, e.g. www*\n pats.append(re.escape(leftmost).replace(r'\\*', '[^.]*'))\n\n # add the remaining fragments, ignore any wildcards\n for frag in parts[1:]:\n pats.append(re.escape(frag))\n\n pat = re.compile(r'\\A' + r'\\.'.join(pats) + r'\\Z', re.IGNORECASE)\n return pat.match(hostname)\n\n\ndef match_hostname(cert, hostname):\n \"\"\"Verify that *cert* (in decoded format as returned by\n SSLSocket.getpeercert()) matches the *hostname*. RFC 2818 and RFC 6125\n rules are followed, but IP addresses are not accepted for *hostname*.\n\n CertificateError is raised on failure. On success, the function\n returns nothing.\n \"\"\"\n if not cert:\n raise ValueError(\"empty or no certificate\")\n dnsnames = []\n san = cert.get('subjectAltName', ())\n for key, value in san:\n if key == 'DNS':\n if _dnsname_match(value, hostname):\n return\n dnsnames.append(value)\n if not dnsnames:\n # The subject is only checked when there is no dNSName entry\n # in subjectAltName\n for sub in cert.get('subject', ()):\n for key, value in sub:\n # XXX according to RFC 2818, the most specific Common Name\n # must be used.\n if key == 'commonName':\n if _dnsname_match(value, hostname):\n return\n dnsnames.append(value)\n if len(dnsnames) > 1:\n raise CertificateError(\"hostname %r \"\n \"doesn't match either of %s\"\n % (hostname, ', '.join(map(repr, dnsnames))))\n elif len(dnsnames) == 1:\n raise CertificateError(\"hostname %r \"\n \"doesn't match %r\"\n % (hostname, dnsnames[0]))\n else:\n raise CertificateError(\"no appropriate commonName or \"\n \"subjectAltName fields were found\")\n"},{"className":"CertificateError","col":0,"comment":"null","endLoc":8,"id":114,"nodeType":"Class","startLoc":7,"text":"class CertificateError(ValueError):\n pass"},{"attributeType":"null","col":4,"comment":"exception filename","endLoc":526,"id":115,"name":"filename","nodeType":"Attribute","startLoc":526,"text":"filename"},{"attributeType":"str","col":4,"comment":"null","endLoc":93,"id":116,"name":"__module__","nodeType":"Attribute","startLoc":93,"text":"__module__"},{"attributeType":"dict","col":4,"comment":"null","endLoc":94,"id":117,"name":"__annotations__","nodeType":"Attribute","startLoc":94,"text":"__annotations__"},{"className":"ValueError","col":0,"comment":"null","endLoc":2011,"id":118,"nodeType":"Class","startLoc":2011,"text":"class ValueError(Exception): ..."},{"col":4,"comment":"null","endLoc":529,"header":"def __init__(self)","id":119,"name":"__init__","nodeType":"Function","startLoc":492,"text":"def __init__(self):\n super(Response, self).__init__()\n\n self._content = False\n self._content_consumed = False\n\n #: Integer Code of responded HTTP Status.\n self.status_code = None\n\n #: Case-insensitive Dictionary of Response Headers.\n #: For example, ``headers['content-encoding']`` will return the\n #: value of a ``'Content-Encoding'`` response header.\n self.headers = CaseInsensitiveDict()\n\n #: File-like object representation of response (for advanced usage).\n #: Requires that ``stream=True` on the request.\n # This requirement does not apply for use internally to Requests.\n self.raw = None\n\n #: Final URL location of Response.\n self.url = None\n\n #: Encoding to decode with when accessing r.text.\n self.encoding = None\n\n #: A list of :class:`Response ` objects from\n #: the history of the Request. Any redirect responses will end\n #: up here. The list is sorted from the oldest to the most recent request.\n self.history = []\n\n self.reason = None\n\n #: A CookieJar of Cookies the server sent back.\n self.cookies = cookiejar_from_dict({})\n\n #: The amount of time elapsed between sending the request\n #: and the arrival of the response (as a timedelta)\n self.elapsed = datetime.timedelta(0)"},{"col":0,"comment":"","endLoc":28,"header":"escsm.py#","id":120,"name":"","nodeType":"Function","startLoc":28,"text":"HZ_cls = (\n1,0,0,0,0,0,0,0, # 00 - 07\n0,0,0,0,0,0,0,0, # 08 - 0f\n0,0,0,0,0,0,0,0, # 10 - 17\n0,0,0,1,0,0,0,0, # 18 - 1f\n0,0,0,0,0,0,0,0, # 20 - 27\n0,0,0,0,0,0,0,0, # 28 - 2f\n0,0,0,0,0,0,0,0, # 30 - 37\n0,0,0,0,0,0,0,0, # 38 - 3f\n0,0,0,0,0,0,0,0, # 40 - 47\n0,0,0,0,0,0,0,0, # 48 - 4f\n0,0,0,0,0,0,0,0, # 50 - 57\n0,0,0,0,0,0,0,0, # 58 - 5f\n0,0,0,0,0,0,0,0, # 60 - 67\n0,0,0,0,0,0,0,0, # 68 - 6f\n0,0,0,0,0,0,0,0, # 70 - 77\n0,0,0,4,0,5,2,0, # 78 - 7f\n1,1,1,1,1,1,1,1, # 80 - 87\n1,1,1,1,1,1,1,1, # 88 - 8f\n1,1,1,1,1,1,1,1, # 90 - 97\n1,1,1,1,1,1,1,1, # 98 - 9f\n1,1,1,1,1,1,1,1, # a0 - a7\n1,1,1,1,1,1,1,1, # a8 - af\n1,1,1,1,1,1,1,1, # b0 - b7\n1,1,1,1,1,1,1,1, # b8 - bf\n1,1,1,1,1,1,1,1, # c0 - c7\n1,1,1,1,1,1,1,1, # c8 - cf\n1,1,1,1,1,1,1,1, # d0 - d7\n1,1,1,1,1,1,1,1, # d8 - df\n1,1,1,1,1,1,1,1, # e0 - e7\n1,1,1,1,1,1,1,1, # e8 - ef\n1,1,1,1,1,1,1,1, # f0 - f7\n1,1,1,1,1,1,1,1, # f8 - ff\n)\n\nHZ_st = (\neStart,eError, 3,eStart,eStart,eStart,eError,eError,# 00-07\neError,eError,eError,eError,eItsMe,eItsMe,eItsMe,eItsMe,# 08-0f\neItsMe,eItsMe,eError,eError,eStart,eStart, 4,eError,# 10-17\n 5,eError, 6,eError, 5, 5, 4,eError,# 18-1f\n 4,eError, 4, 4, 4,eError, 4,eError,# 20-27\n 4,eItsMe,eStart,eStart,eStart,eStart,eStart,eStart,# 28-2f\n)\n\nHZCharLenTable = (0, 0, 0, 0, 0, 0)\n\nHZSMModel = {'classTable': HZ_cls,\n 'classFactor': 6,\n 'stateTable': HZ_st,\n 'charLenTable': HZCharLenTable,\n 'name': \"HZ-GB-2312\"}\n\nISO2022CN_cls = (\n2,0,0,0,0,0,0,0, # 00 - 07\n0,0,0,0,0,0,0,0, # 08 - 0f\n0,0,0,0,0,0,0,0, # 10 - 17\n0,0,0,1,0,0,0,0, # 18 - 1f\n0,0,0,0,0,0,0,0, # 20 - 27\n0,3,0,0,0,0,0,0, # 28 - 2f\n0,0,0,0,0,0,0,0, # 30 - 37\n0,0,0,0,0,0,0,0, # 38 - 3f\n0,0,0,4,0,0,0,0, # 40 - 47\n0,0,0,0,0,0,0,0, # 48 - 4f\n0,0,0,0,0,0,0,0, # 50 - 57\n0,0,0,0,0,0,0,0, # 58 - 5f\n0,0,0,0,0,0,0,0, # 60 - 67\n0,0,0,0,0,0,0,0, # 68 - 6f\n0,0,0,0,0,0,0,0, # 70 - 77\n0,0,0,0,0,0,0,0, # 78 - 7f\n2,2,2,2,2,2,2,2, # 80 - 87\n2,2,2,2,2,2,2,2, # 88 - 8f\n2,2,2,2,2,2,2,2, # 90 - 97\n2,2,2,2,2,2,2,2, # 98 - 9f\n2,2,2,2,2,2,2,2, # a0 - a7\n2,2,2,2,2,2,2,2, # a8 - af\n2,2,2,2,2,2,2,2, # b0 - b7\n2,2,2,2,2,2,2,2, # b8 - bf\n2,2,2,2,2,2,2,2, # c0 - c7\n2,2,2,2,2,2,2,2, # c8 - cf\n2,2,2,2,2,2,2,2, # d0 - d7\n2,2,2,2,2,2,2,2, # d8 - df\n2,2,2,2,2,2,2,2, # e0 - e7\n2,2,2,2,2,2,2,2, # e8 - ef\n2,2,2,2,2,2,2,2, # f0 - f7\n2,2,2,2,2,2,2,2, # f8 - ff\n)\n\nISO2022CN_st = (\neStart, 3,eError,eStart,eStart,eStart,eStart,eStart,# 00-07\neStart,eError,eError,eError,eError,eError,eError,eError,# 08-0f\neError,eError,eItsMe,eItsMe,eItsMe,eItsMe,eItsMe,eItsMe,# 10-17\neItsMe,eItsMe,eItsMe,eError,eError,eError, 4,eError,# 18-1f\neError,eError,eError,eItsMe,eError,eError,eError,eError,# 20-27\n 5, 6,eError,eError,eError,eError,eError,eError,# 28-2f\neError,eError,eError,eItsMe,eError,eError,eError,eError,# 30-37\neError,eError,eError,eError,eError,eItsMe,eError,eStart,# 38-3f\n)\n\nISO2022CNCharLenTable = (0, 0, 0, 0, 0, 0, 0, 0, 0)\n\nISO2022CNSMModel = {'classTable': ISO2022CN_cls,\n 'classFactor': 9,\n 'stateTable': ISO2022CN_st,\n 'charLenTable': ISO2022CNCharLenTable,\n 'name': \"ISO-2022-CN\"}\n\nISO2022JP_cls = (\n2,0,0,0,0,0,0,0, # 00 - 07\n0,0,0,0,0,0,2,2, # 08 - 0f\n0,0,0,0,0,0,0,0, # 10 - 17\n0,0,0,1,0,0,0,0, # 18 - 1f\n0,0,0,0,7,0,0,0, # 20 - 27\n3,0,0,0,0,0,0,0, # 28 - 2f\n0,0,0,0,0,0,0,0, # 30 - 37\n0,0,0,0,0,0,0,0, # 38 - 3f\n6,0,4,0,8,0,0,0, # 40 - 47\n0,9,5,0,0,0,0,0, # 48 - 4f\n0,0,0,0,0,0,0,0, # 50 - 57\n0,0,0,0,0,0,0,0, # 58 - 5f\n0,0,0,0,0,0,0,0, # 60 - 67\n0,0,0,0,0,0,0,0, # 68 - 6f\n0,0,0,0,0,0,0,0, # 70 - 77\n0,0,0,0,0,0,0,0, # 78 - 7f\n2,2,2,2,2,2,2,2, # 80 - 87\n2,2,2,2,2,2,2,2, # 88 - 8f\n2,2,2,2,2,2,2,2, # 90 - 97\n2,2,2,2,2,2,2,2, # 98 - 9f\n2,2,2,2,2,2,2,2, # a0 - a7\n2,2,2,2,2,2,2,2, # a8 - af\n2,2,2,2,2,2,2,2, # b0 - b7\n2,2,2,2,2,2,2,2, # b8 - bf\n2,2,2,2,2,2,2,2, # c0 - c7\n2,2,2,2,2,2,2,2, # c8 - cf\n2,2,2,2,2,2,2,2, # d0 - d7\n2,2,2,2,2,2,2,2, # d8 - df\n2,2,2,2,2,2,2,2, # e0 - e7\n2,2,2,2,2,2,2,2, # e8 - ef\n2,2,2,2,2,2,2,2, # f0 - f7\n2,2,2,2,2,2,2,2, # f8 - ff\n)\n\nISO2022JP_st = (\neStart, 3,eError,eStart,eStart,eStart,eStart,eStart,# 00-07\neStart,eStart,eError,eError,eError,eError,eError,eError,# 08-0f\neError,eError,eError,eError,eItsMe,eItsMe,eItsMe,eItsMe,# 10-17\neItsMe,eItsMe,eItsMe,eItsMe,eItsMe,eItsMe,eError,eError,# 18-1f\neError, 5,eError,eError,eError, 4,eError,eError,# 20-27\neError,eError,eError, 6,eItsMe,eError,eItsMe,eError,# 28-2f\neError,eError,eError,eError,eError,eError,eItsMe,eItsMe,# 30-37\neError,eError,eError,eItsMe,eError,eError,eError,eError,# 38-3f\neError,eError,eError,eError,eItsMe,eError,eStart,eStart,# 40-47\n)\n\nISO2022JPCharLenTable = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0)\n\nISO2022JPSMModel = {'classTable': ISO2022JP_cls,\n 'classFactor': 10,\n 'stateTable': ISO2022JP_st,\n 'charLenTable': ISO2022JPCharLenTable,\n 'name': \"ISO-2022-JP\"}\n\nISO2022KR_cls = (\n2,0,0,0,0,0,0,0, # 00 - 07\n0,0,0,0,0,0,0,0, # 08 - 0f\n0,0,0,0,0,0,0,0, # 10 - 17\n0,0,0,1,0,0,0,0, # 18 - 1f\n0,0,0,0,3,0,0,0, # 20 - 27\n0,4,0,0,0,0,0,0, # 28 - 2f\n0,0,0,0,0,0,0,0, # 30 - 37\n0,0,0,0,0,0,0,0, # 38 - 3f\n0,0,0,5,0,0,0,0, # 40 - 47\n0,0,0,0,0,0,0,0, # 48 - 4f\n0,0,0,0,0,0,0,0, # 50 - 57\n0,0,0,0,0,0,0,0, # 58 - 5f\n0,0,0,0,0,0,0,0, # 60 - 67\n0,0,0,0,0,0,0,0, # 68 - 6f\n0,0,0,0,0,0,0,0, # 70 - 77\n0,0,0,0,0,0,0,0, # 78 - 7f\n2,2,2,2,2,2,2,2, # 80 - 87\n2,2,2,2,2,2,2,2, # 88 - 8f\n2,2,2,2,2,2,2,2, # 90 - 97\n2,2,2,2,2,2,2,2, # 98 - 9f\n2,2,2,2,2,2,2,2, # a0 - a7\n2,2,2,2,2,2,2,2, # a8 - af\n2,2,2,2,2,2,2,2, # b0 - b7\n2,2,2,2,2,2,2,2, # b8 - bf\n2,2,2,2,2,2,2,2, # c0 - c7\n2,2,2,2,2,2,2,2, # c8 - cf\n2,2,2,2,2,2,2,2, # d0 - d7\n2,2,2,2,2,2,2,2, # d8 - df\n2,2,2,2,2,2,2,2, # e0 - e7\n2,2,2,2,2,2,2,2, # e8 - ef\n2,2,2,2,2,2,2,2, # f0 - f7\n2,2,2,2,2,2,2,2, # f8 - ff\n)\n\nISO2022KR_st = (\neStart, 3,eError,eStart,eStart,eStart,eError,eError,# 00-07\neError,eError,eError,eError,eItsMe,eItsMe,eItsMe,eItsMe,# 08-0f\neItsMe,eItsMe,eError,eError,eError, 4,eError,eError,# 10-17\neError,eError,eError,eError, 5,eError,eError,eError,# 18-1f\neError,eError,eError,eItsMe,eStart,eStart,eStart,eStart,# 20-27\n)\n\nISO2022KRCharLenTable = (0, 0, 0, 0, 0, 0)\n\nISO2022KRSMModel = {'classTable': ISO2022KR_cls,\n 'classFactor': 6,\n 'stateTable': ISO2022KR_st,\n 'charLenTable': ISO2022KRCharLenTable,\n 'name': \"ISO-2022-KR\"}"},{"col":0,"comment":"Matching according to RFC 6125, section 6.4.3\n\n http://tools.ietf.org/html/rfc6125#section-6.4.3\n ","endLoc":57,"header":"def _dnsname_match(dn, hostname, max_wildcards=1)","id":121,"name":"_dnsname_match","nodeType":"Function","startLoc":10,"text":"def _dnsname_match(dn, hostname, max_wildcards=1):\n \"\"\"Matching according to RFC 6125, section 6.4.3\n\n http://tools.ietf.org/html/rfc6125#section-6.4.3\n \"\"\"\n pats = []\n if not dn:\n return False\n\n parts = dn.split(r'.')\n leftmost = parts[0]\n\n wildcards = leftmost.count('*')\n if wildcards > max_wildcards:\n # Issue #17980: avoid denials of service by refusing more\n # than one wildcard per fragment. A survery of established\n # policy among SSL implementations showed it to be a\n # reasonable choice.\n raise CertificateError(\n \"too many wildcards in certificate DNS name: \" + repr(dn))\n\n # speed up common case w/o wildcards\n if not wildcards:\n return dn.lower() == hostname.lower()\n\n # RFC 6125, section 6.4.3, subitem 1.\n # The client SHOULD NOT attempt to match a presented identifier in which\n # the wildcard character comprises a label other than the left-most label.\n if leftmost == '*':\n # When '*' is a fragment by itself, it matches a non-empty dotless\n # fragment.\n pats.append('[^.]+')\n elif leftmost.startswith('xn--') or hostname.startswith('xn--'):\n # RFC 6125, section 6.4.3, subitem 3.\n # The client SHOULD NOT attempt to match a presented identifier\n # where the wildcard character is embedded within an A-label or\n # U-label of an internationalized domain name.\n pats.append(re.escape(leftmost))\n else:\n # Otherwise, '*' matches any dotless string, e.g. www*\n pats.append(re.escape(leftmost).replace(r'\\*', '[^.]*'))\n\n # add the remaining fragments, ignore any wildcards\n for frag in parts[1:]:\n pats.append(re.escape(frag))\n\n pat = re.compile(r'\\A' + r'\\.'.join(pats) + r'\\Z', re.IGNORECASE)\n return pat.match(hostname)"},{"attributeType":"BaseException | None","col":4,"comment":"null","endLoc":1929,"id":122,"name":"__cause__","nodeType":"Attribute","startLoc":1929,"text":"__cause__"},{"attributeType":"null","col":4,"comment":"second exception filename","endLoc":529,"id":126,"name":"filename2","nodeType":"Attribute","startLoc":529,"text":"filename2"},{"attributeType":"BaseException | None","col":4,"comment":"null","endLoc":1930,"id":127,"name":"__context__","nodeType":"Attribute","startLoc":1930,"text":"__context__"},{"attributeType":"str","col":4,"comment":"exception strerror","endLoc":532,"id":128,"name":"strerror","nodeType":"Attribute","startLoc":532,"text":"strerror"},{"attributeType":"bool","col":4,"comment":"null","endLoc":1931,"id":129,"name":"__suppress_context__","nodeType":"Attribute","startLoc":1931,"text":"__suppress_context__"},{"className":"timeout","col":4,"comment":"null","endLoc":679,"id":131,"nodeType":"Class","startLoc":679,"text":"class timeout(error): ..."},{"attributeType":"TracebackType | None","col":4,"comment":"null","endLoc":1932,"id":132,"name":"__traceback__","nodeType":"Attribute","startLoc":1932,"text":"__traceback__"},{"className":"PoolError","col":0,"comment":"Base exception for errors caused within a pool.","endLoc":23,"id":136,"nodeType":"Class","startLoc":15,"text":"class PoolError(HTTPError):\n \"Base exception for errors caused within a pool.\"\n def __init__(self, pool, message):\n self.pool = pool\n HTTPError.__init__(self, \"%s: %s\" % (pool, message))\n\n def __reduce__(self):\n # For pickling purposes.\n return self.__class__, (None, None)"},{"col":4,"comment":"null","endLoc":19,"header":"def __init__(self, pool, message)","id":137,"name":"__init__","nodeType":"Function","startLoc":17,"text":"def __init__(self, pool, message):\n self.pool = pool\n HTTPError.__init__(self, \"%s: %s\" % (pool, message))"},{"attributeType":"null","col":4,"comment":"null","endLoc":42,"id":138,"name":"string_types","nodeType":"Attribute","startLoc":42,"text":"string_types"},{"attributeType":"null","col":4,"comment":"null","endLoc":34,"id":139,"name":"string_types","nodeType":"Attribute","startLoc":34,"text":"string_types"},{"attributeType":"str","col":4,"comment":"null","endLoc":46,"id":140,"name":"binary_type","nodeType":"Attribute","startLoc":46,"text":"binary_type"},{"attributeType":"bytes","col":4,"comment":"null","endLoc":38,"id":141,"name":"binary_type","nodeType":"Attribute","startLoc":38,"text":"binary_type"},{"col":0,"comment":"\n Checks whether a given file-like object is closed.\n\n :param obj:\n The file-like object to check.\n ","endLoc":599,"header":"def is_fp_closed(obj)","id":142,"name":"is_fp_closed","nodeType":"Function","startLoc":587,"text":"def is_fp_closed(obj):\n \"\"\"\n Checks whether a given file-like object is closed.\n\n :param obj:\n The file-like object to check.\n \"\"\"\n if hasattr(obj, 'fp'):\n # Object is a container for another file-like object that gets released\n # on exhaustion (e.g. HTTPResponse)\n return obj.fp is None\n\n return obj.closed"},{"col":4,"comment":"null","endLoc":23,"header":"def __reduce__(self)","id":143,"name":"__reduce__","nodeType":"Function","startLoc":21,"text":"def __reduce__(self):\n # For pickling purposes.\n return self.__class__, (None, None)"},{"attributeType":"null","col":8,"comment":"null","endLoc":18,"id":144,"name":"pool","nodeType":"Attribute","startLoc":18,"text":"self.pool"},{"className":"timeout","col":0,"comment":"null","endLoc":971,"id":145,"nodeType":"Class","startLoc":965,"text":"class timeout(OSError):\n # no doc\n def __init__(self, *args, **kwargs): # real signature unknown\n pass\n\n __weakref__ = property(lambda self: object(), lambda self, v: None, lambda self: None) # default\n \"\"\"list of weak references to the object (if defined)\"\"\""},{"className":"OSError","col":0,"comment":"null","endLoc":1959,"id":147,"nodeType":"Class","startLoc":1952,"text":"class OSError(Exception):\n errno: int\n strerror: str\n # filename, filename2 are actually str | bytes | None\n filename: Any\n filename2: Any\n if sys.platform == \"win32\":\n winerror: int"},{"attributeType":"int","col":4,"comment":"null","endLoc":1953,"id":148,"name":"errno","nodeType":"Attribute","startLoc":1953,"text":"errno"},{"attributeType":"str","col":4,"comment":"null","endLoc":1954,"id":149,"name":"strerror","nodeType":"Attribute","startLoc":1954,"text":"strerror"},{"attributeType":"null","col":4,"comment":"null","endLoc":1956,"id":150,"name":"filename","nodeType":"Attribute","startLoc":1956,"text":"filename"},{"attributeType":"null","col":4,"comment":"null","endLoc":1957,"id":151,"name":"filename2","nodeType":"Attribute","startLoc":1957,"text":"filename2"},{"attributeType":"int","col":8,"comment":"null","endLoc":1959,"id":152,"name":"winerror","nodeType":"Attribute","startLoc":1959,"text":"winerror"},{"col":4,"comment":"null","endLoc":968,"header":"def __init__(self, *args, **kwargs)","id":153,"name":"__init__","nodeType":"Function","startLoc":967,"text":"def __init__(self, *args, **kwargs): # real signature unknown\n pass"},{"attributeType":"null","col":4,"comment":"list of weak references to the object (if defined)","endLoc":970,"id":154,"name":"__weakref__","nodeType":"Attribute","startLoc":970,"text":"__weakref__"},{"className":"LifoQueue","col":0,"comment":"null","endLoc":57,"id":155,"nodeType":"Class","startLoc":56,"text":"class LifoQueue(Queue[_T]):\n queue: list[_T]"},{"col":4,"comment":"null","endLoc":69,"header":"def __init__(self, data=None, **kwargs)","id":156,"name":"__init__","nodeType":"Function","startLoc":65,"text":"def __init__(self, data=None, **kwargs):\n self._store = dict()\n if data is None:\n data = {}\n self.update(data, **kwargs)"},{"className":"RequestError","col":0,"comment":"Base exception for PoolErrors that have associated URLs.","endLoc":34,"id":157,"nodeType":"Class","startLoc":26,"text":"class RequestError(PoolError):\n \"Base exception for PoolErrors that have associated URLs.\"\n def __init__(self, pool, url, message):\n self.url = url\n PoolError.__init__(self, pool, message)\n\n def __reduce__(self):\n # For pickling purposes.\n return self.__class__, (None, self.url, None)"},{"col":4,"comment":"null","endLoc":30,"header":"def __init__(self, pool, url, message)","id":158,"name":"__init__","nodeType":"Function","startLoc":28,"text":"def __init__(self, pool, url, message):\n self.url = url\n PoolError.__init__(self, pool, message)"},{"attributeType":"list","col":4,"comment":"null","endLoc":57,"id":159,"name":"queue","nodeType":"Attribute","startLoc":57,"text":"queue"},{"className":"DeflateDecoder","col":0,"comment":"null","endLoc":43,"id":160,"nodeType":"Class","startLoc":20,"text":"class DeflateDecoder(object):\n\n def __init__(self):\n self._first_try = True\n self._data = binary_type()\n self._obj = zlib.decompressobj()\n\n def __getattr__(self, name):\n return getattr(self._obj, name)\n\n def decompress(self, data):\n if not self._first_try:\n return self._obj.decompress(data)\n\n self._data += data\n try:\n return self._obj.decompress(data)\n except zlib.error:\n self._first_try = False\n self._obj = zlib.decompressobj(-zlib.MAX_WBITS)\n try:\n return self.decompress(self._data)\n finally:\n self._data = None"},{"col":4,"comment":"null","endLoc":34,"header":"def __reduce__(self)","id":161,"name":"__reduce__","nodeType":"Function","startLoc":32,"text":"def __reduce__(self):\n # For pickling purposes.\n return self.__class__, (None, self.url, None)"},{"attributeType":"null","col":8,"comment":"null","endLoc":29,"id":162,"name":"url","nodeType":"Attribute","startLoc":29,"text":"self.url"},{"col":4,"comment":"null","endLoc":25,"header":"def __init__(self)","id":163,"name":"__init__","nodeType":"Function","startLoc":22,"text":"def __init__(self):\n self._first_try = True\n self._data = binary_type()\n self._obj = zlib.decompressobj()"},{"className":"Empty","col":0,"comment":"null","endLoc":14,"id":164,"nodeType":"Class","startLoc":14,"text":"class Empty(Exception): ..."},{"className":"Full","col":0,"comment":"null","endLoc":15,"id":165,"nodeType":"Class","startLoc":15,"text":"class Full(Exception): ..."},{"className":"SSLError","col":0,"comment":"Raised when SSL certificate fails in an HTTPS connection.","endLoc":39,"id":166,"nodeType":"Class","startLoc":37,"text":"class SSLError(HTTPError):\n \"Raised when SSL certificate fails in an HTTPS connection.\"\n pass"},{"className":"ProxyError","col":0,"comment":"Raised when the connection to a proxy fails.","endLoc":44,"id":167,"nodeType":"Class","startLoc":42,"text":"class ProxyError(HTTPError):\n \"Raised when the connection to a proxy fails.\"\n pass"},{"className":"MaxRetryError","col":0,"comment":"Raised when the maximum number of retries is exceeded.","endLoc":66,"id":168,"nodeType":"Class","startLoc":54,"text":"class MaxRetryError(RequestError):\n \"Raised when the maximum number of retries is exceeded.\"\n\n def __init__(self, pool, url, reason=None):\n self.reason = reason\n\n message = \"Max retries exceeded with url: %s\" % url\n if reason:\n message += \" (Caused by %s: %s)\" % (type(reason), reason)\n else:\n message += \" (Caused by redirect)\"\n\n RequestError.__init__(self, pool, url, message)"},{"col":4,"comment":"null","endLoc":66,"header":"def __init__(self, pool, url, reason=None)","id":169,"name":"__init__","nodeType":"Function","startLoc":57,"text":"def __init__(self, pool, url, reason=None):\n self.reason = reason\n\n message = \"Max retries exceeded with url: %s\" % url\n if reason:\n message += \" (Caused by %s: %s)\" % (type(reason), reason)\n else:\n message += \" (Caused by redirect)\"\n\n RequestError.__init__(self, pool, url, message)"},{"className":"ClosedPoolError","col":0,"comment":"Raised when a request enters a pool after the pool has been closed.","endLoc":111,"id":170,"nodeType":"Class","startLoc":109,"text":"class ClosedPoolError(PoolError):\n \"Raised when a request enters a pool after the pool has been closed.\"\n pass"},{"className":"ConnectTimeoutError","col":0,"comment":"Raised when a socket timeout occurs while connecting to a server","endLoc":101,"id":171,"nodeType":"Class","startLoc":99,"text":"class ConnectTimeoutError(TimeoutError):\n \"Raised when a socket timeout occurs while connecting to a server\"\n pass"},{"className":"TimeoutError","col":0,"comment":" Raised when a socket timeout error occurs.\n\n Catching this error will catch both :exc:`ReadTimeoutErrors\n ` and :exc:`ConnectTimeoutErrors `.\n ","endLoc":89,"id":172,"nodeType":"Class","startLoc":83,"text":"class TimeoutError(HTTPError):\n \"\"\" Raised when a socket timeout error occurs.\n\n Catching this error will catch both :exc:`ReadTimeoutErrors\n ` and :exc:`ConnectTimeoutErrors `.\n \"\"\"\n pass"},{"className":"EmptyPoolError","col":0,"comment":"Raised when a pool runs out of connections and no more are allowed.","endLoc":106,"id":173,"nodeType":"Class","startLoc":104,"text":"class EmptyPoolError(PoolError):\n \"Raised when a pool runs out of connections and no more are allowed.\"\n pass"},{"className":"HostChangedError","col":0,"comment":"Raised when an existing pool gets a request for a foreign host.","endLoc":75,"id":174,"nodeType":"Class","startLoc":69,"text":"class HostChangedError(RequestError):\n \"Raised when an existing pool gets a request for a foreign host.\"\n\n def __init__(self, pool, url, retries=3):\n message = \"Tried to open a foreign host with url: %s\" % url\n RequestError.__init__(self, pool, url, message)\n self.retries = retries"},{"col":4,"comment":"null","endLoc":75,"header":"def __init__(self, pool, url, retries=3)","id":175,"name":"__init__","nodeType":"Function","startLoc":72,"text":"def __init__(self, pool, url, retries=3):\n message = \"Tried to open a foreign host with url: %s\" % url\n RequestError.__init__(self, pool, url, message)\n self.retries = retries"},{"attributeType":"null","col":8,"comment":"null","endLoc":75,"id":176,"name":"retries","nodeType":"Attribute","startLoc":75,"text":"self.retries"},{"className":"ReadTimeoutError","col":0,"comment":"Raised when a socket timeout occurs while receiving data from a server","endLoc":94,"id":177,"nodeType":"Class","startLoc":92,"text":"class ReadTimeoutError(TimeoutError, RequestError):\n \"Raised when a socket timeout occurs while receiving data from a server\"\n pass"},{"attributeType":"null","col":8,"comment":"null","endLoc":58,"id":180,"name":"reason","nodeType":"Attribute","startLoc":58,"text":"self.reason"},{"className":"DummyConnection","col":0,"comment":"Used to detect a failed ConnectionCls import.","endLoc":17,"id":181,"nodeType":"Class","startLoc":15,"text":"class DummyConnection(object):\n \"Used to detect a failed ConnectionCls import.\"\n pass"},{"className":"TimeoutStateError","col":0,"comment":" Raised when passing an invalid state to a timeout ","endLoc":80,"id":182,"nodeType":"Class","startLoc":78,"text":"class TimeoutStateError(HTTPError):\n \"\"\" Raised when passing an invalid state to a timeout \"\"\"\n pass"},{"className":"LocationParseError","col":0,"comment":"Raised when get_host or similar fails to parse the URL input.","endLoc":121,"id":183,"nodeType":"Class","startLoc":114,"text":"class LocationParseError(ValueError, HTTPError):\n \"Raised when get_host or similar fails to parse the URL input.\"\n\n def __init__(self, location):\n message = \"Failed to parse: %s\" % location\n HTTPError.__init__(self, message)\n\n self.location = location"},{"col":4,"comment":"null","endLoc":121,"header":"def __init__(self, location)","id":184,"name":"__init__","nodeType":"Function","startLoc":117,"text":"def __init__(self, location):\n message = \"Failed to parse: %s\" % location\n HTTPError.__init__(self, message)\n\n self.location = location"},{"attributeType":"null","col":8,"comment":"null","endLoc":121,"id":185,"name":"location","nodeType":"Attribute","startLoc":121,"text":"self.location"},{"className":"HTTPConnection","col":0,"comment":"null","endLoc":185,"id":186,"nodeType":"Class","startLoc":148,"text":"class HTTPConnection:\n auto_open: int # undocumented\n debuglevel: int\n default_port: int # undocumented\n response_class: type[HTTPResponse] # undocumented\n timeout: float | None\n host: str\n port: int\n sock: socket | Any # can be `None` if `.connect()` was not called\n def __init__(\n self,\n host: str,\n port: int | None = None,\n timeout: float | None = ...,\n source_address: tuple[str, int] | None = None,\n blocksize: int = 8192,\n ) -> None: ...\n def request(\n self,\n method: str,\n url: str,\n body: _DataType | str | None = None,\n headers: Mapping[str, str] = {},\n *,\n encode_chunked: bool = False,\n ) -> None: ...\n def getresponse(self) -> HTTPResponse: ...\n def set_debuglevel(self, level: int) -> None: ...\n if sys.version_info >= (3, 12):\n def get_proxy_response_headers(self) -> HTTPMessage | None: ...\n\n def set_tunnel(self, host: str, port: int | None = None, headers: Mapping[str, str] | None = None) -> None: ...\n def connect(self) -> None: ...\n def close(self) -> None: ...\n def putrequest(self, method: str, url: str, skip_host: bool = False, skip_accept_encoding: bool = False) -> None: ...\n def putheader(self, header: str | bytes, *argument: str | bytes) -> None: ...\n def endheaders(self, message_body: _DataType | None = None, *, encode_chunked: bool = False) -> None: ...\n def send(self, data: _DataType | str) -> None: ..."},{"col":4,"comment":"null","endLoc":164,"header":"def __init__(\n self,\n host: str,\n port: int | None = None,\n timeout: float | None = ...,\n source_address: tuple[str, int] | None = None,\n blocksize: int = 8192,\n ) -> None","id":187,"name":"__init__","nodeType":"Function","startLoc":157,"text":"def __init__(\n self,\n host: str,\n port: int | None = None,\n timeout: float | None = ...,\n source_address: tuple[str, int] | None = None,\n blocksize: int = 8192,\n ) -> None: ..."},{"col":4,"comment":"null","endLoc":173,"header":"def request(\n self,\n method: str,\n url: str,\n body: _DataType | str | None = None,\n headers: Mapping[str, str] = {},\n *,\n encode_chunked: bool = False,\n ) -> None","id":188,"name":"request","nodeType":"Function","startLoc":165,"text":"def request(\n self,\n method: str,\n url: str,\n body: _DataType | str | None = None,\n headers: Mapping[str, str] = {},\n *,\n encode_chunked: bool = False,\n ) -> None: ..."},{"col":4,"comment":"null","endLoc":174,"header":"def getresponse(self) -> HTTPResponse","id":189,"name":"getresponse","nodeType":"Function","startLoc":174,"text":"def getresponse(self) -> HTTPResponse: ..."},{"col":4,"comment":"null","endLoc":175,"header":"def set_debuglevel(self, level: int) -> None","id":190,"name":"set_debuglevel","nodeType":"Function","startLoc":175,"text":"def set_debuglevel(self, level: int) -> None: ..."},{"col":4,"comment":"null","endLoc":179,"header":"def set_tunnel(self, host: str, port: int | None = None, headers: Mapping[str, str] | None = None) -> None","id":191,"name":"set_tunnel","nodeType":"Function","startLoc":179,"text":"def set_tunnel(self, host: str, port: int | None = None, headers: Mapping[str, str] | None = None) -> None: ..."},{"col":4,"comment":"null","endLoc":180,"header":"def connect(self) -> None","id":192,"name":"connect","nodeType":"Function","startLoc":180,"text":"def connect(self) -> None: ..."},{"col":4,"comment":"null","endLoc":181,"header":"def close(self) -> None","id":193,"name":"close","nodeType":"Function","startLoc":181,"text":"def close(self) -> None: ..."},{"col":4,"comment":"null","endLoc":182,"header":"def putrequest(self, method: str, url: str, skip_host: bool = False, skip_accept_encoding: bool = False) -> None","id":194,"name":"putrequest","nodeType":"Function","startLoc":182,"text":"def putrequest(self, method: str, url: str, skip_host: bool = False, skip_accept_encoding: bool = False) -> None: ..."},{"col":4,"comment":"null","endLoc":183,"header":"def putheader(self, header: str | bytes, *argument: str | bytes) -> None","id":195,"name":"putheader","nodeType":"Function","startLoc":183,"text":"def putheader(self, header: str | bytes, *argument: str | bytes) -> None: ..."},{"col":4,"comment":"null","endLoc":184,"header":"def endheaders(self, message_body: _DataType | None = None, *, encode_chunked: bool = False) -> None","id":196,"name":"endheaders","nodeType":"Function","startLoc":184,"text":"def endheaders(self, message_body: _DataType | None = None, *, encode_chunked: bool = False) -> None: ..."},{"col":4,"comment":"null","endLoc":185,"header":"def send(self, data: _DataType | str) -> None","id":197,"name":"send","nodeType":"Function","startLoc":185,"text":"def send(self, data: _DataType | str) -> None: ..."},{"attributeType":"int","col":4,"comment":"null","endLoc":149,"id":198,"name":"auto_open","nodeType":"Attribute","startLoc":149,"text":"auto_open"},{"attributeType":"int","col":4,"comment":"null","endLoc":150,"id":199,"name":"debuglevel","nodeType":"Attribute","startLoc":150,"text":"debuglevel"},{"attributeType":"int","col":4,"comment":"null","endLoc":151,"id":200,"name":"default_port","nodeType":"Attribute","startLoc":151,"text":"default_port"},{"attributeType":"HTTPResponse","col":4,"comment":"null","endLoc":152,"id":201,"name":"response_class","nodeType":"Attribute","startLoc":152,"text":"response_class"},{"id":202,"name":"docs/user","nodeType":"Package"},{"id":203,"name":"authentication.rst","nodeType":"TextFile","path":"docs/user","text":".. _authentication:\n\nAuthentication\n==============\n\nThis document discusses using various kinds of authentication with Requests.\n\nMany web services require authentication, and there are many different types.\nBelow, we outline various forms of authentication available in Requests, from\nthe simple to the complex.\n\n\nBasic Authentication\n--------------------\n\nMany web services that require authentication accept HTTP Basic Auth. This is\nthe simplest kind, and Requests supports it straight out of the box.\n\nMaking requests with HTTP Basic Auth is very simple::\n\n >>> from requests.auth import HTTPBasicAuth\n >>> requests.get('https://api.github.com/user', auth=HTTPBasicAuth('user', 'pass'))\n \n\nIn fact, HTTP Basic Auth is so common that Requests provides a handy shorthand\nfor using it::\n\n >>> requests.get('https://api.github.com/user', auth=('user', 'pass'))\n \n\nProviding the credentials in a tuple like this is exactly the same as the\n``HTTPBasicAuth`` example above.\n\n\nnetrc Authentication\n~~~~~~~~~~~~~~~~~~~~\n\nIf no authentication method is given with the ``auth`` argument, Requests will\nattempt to get the authentication credentials for the URL's hostname from the\nuser's netrc file.\n\nIf credentials for the hostname are found, the request is sent with HTTP Basic\nAuth.\n\n\nDigest Authentication\n---------------------\n\nAnother very popular form of HTTP Authentication is Digest Authentication,\nand Requests supports this out of the box as well::\n\n >>> from requests.auth import HTTPDigestAuth\n >>> url = 'http://httpbin.org/digest-auth/auth/user/pass'\n >>> requests.get(url, auth=HTTPDigestAuth('user', 'pass'))\n \n\n\nOAuth 1 Authentication\n----------------------\n\nA common form of authentication for several web APIs is OAuth. The ``requests-oauthlib``\nlibrary allows Requests users to easily make OAuth authenticated requests::\n\n >>> import requests\n >>> from requests_oauthlib import OAuth1\n\n >>> url = 'https://api.twitter.com/1.1/account/verify_credentials.json'\n >>> auth = OAuth1('YOUR_APP_KEY', 'YOUR_APP_SECRET',\n 'USER_OAUTH_TOKEN', 'USER_OAUTH_TOKEN_SECRET')\n\n >>> requests.get(url, auth=auth)\n \n\nFor more information on how to OAuth flow works, please see the official `OAuth`_ website.\nFor examples and documentation on requests-oauthlib, please see the `requests_oauthlib`_\nrepository on GitHub\n\n\nOther Authentication\n--------------------\n\nRequests is designed to allow other forms of authentication to be easily and\nquickly plugged in. Members of the open-source community frequently write\nauthentication handlers for more complicated or less commonly-used forms of\nauthentication. Some of the best have been brought together under the\n`Requests organization`_, including:\n\n- Kerberos_\n- NTLM_\n\nIf you want to use any of these forms of authentication, go straight to their\nGitHub page and follow the instructions.\n\n\nNew Forms of Authentication\n---------------------------\n\nIf you can't find a good implementation of the form of authentication you\nwant, you can implement it yourself. Requests makes it easy to add your own\nforms of authentication.\n\nTo do so, subclass :class:`requests.auth.AuthBase` and implement the\n``__call__()`` method::\n\n >>> import requests\n >>> class MyAuth(requests.auth.AuthBase):\n ... def __call__(self, r):\n ... # Implement my authentication\n ... return r\n ...\n >>> url = 'http://httpbin.org/get'\n >>> requests.get(url, auth=MyAuth())\n \n\nWhen an authentication handler is attached to a request,\nit is called during request setup. The ``__call__`` method must therefore do\nwhatever is required to make the authentication work. Some forms of\nauthentication will additionally add hooks to provide further functionality.\n\nFurther examples can be found under the `Requests organization`_ and in the\n``auth.py`` file.\n\n.. _OAuth: http://oauth.net/\n.. _requests_oauthlib: https://github.com/requests/requests-oauthlib\n.. _Kerberos: https://github.com/requests/requests-kerberos\n.. _NTLM: https://github.com/requests/requests-ntlm\n.. _Requests organization: https://github.com/requests\n\n"},{"id":204,"name":"install.rst","nodeType":"TextFile","path":"docs/user","text":".. _install:\n\nInstallation\n============\n\nThis part of the documentation covers the installation of Requests.\nThe first step to using any software package is getting it properly installed.\n\n\nDistribute & Pip\n----------------\n\nInstalling Requests is simple with `pip `_::\n\n $ pip install requests\n\nor, with `easy_install `_::\n\n $ easy_install requests\n\nBut, you really `shouldn't do that `_.\n\n\n\nCheeseshop (PyPI) Mirror\n------------------------\n\nIf the Cheeseshop (a.k.a. PyPI) is down, you can also install Requests from one\nof the mirrors. `Crate.io `_ is one of them::\n\n $ pip install -i http://simple.crate.io/ requests\n\n\nGet the Code\n------------\n\nRequests is actively developed on GitHub, where the code is\n`always available `_.\n\nYou can either clone the public repository::\n\n git clone git://github.com/kennethreitz/requests.git\n\nDownload the `tarball `_::\n\n $ curl -OL https://github.com/kennethreitz/requests/tarball/master\n\nOr, download the `zipball `_::\n\n $ curl -OL https://github.com/kennethreitz/requests/zipball/master\n\n\nOnce you have a copy of the source, you can embed it in your Python package,\nor install it into your site-packages easily::\n\n $ python setup.py install\n"},{"attributeType":"float | None","col":4,"comment":"null","endLoc":153,"id":207,"name":"timeout","nodeType":"Attribute","startLoc":153,"text":"timeout"},{"fileName":"poolmanager.py","filePath":"requests/packages/urllib3","id":208,"nodeType":"File","text":"# urllib3/poolmanager.py\n# Copyright 2008-2013 Andrey Petrov and contributors (see CONTRIBUTORS.txt)\n#\n# This module is part of urllib3 and is released under\n# the MIT License: http://www.opensource.org/licenses/mit-license.php\n\nimport logging\n\ntry: # Python 3\n from urllib.parse import urljoin\nexcept ImportError:\n from urlparse import urljoin\n\nfrom ._collections import RecentlyUsedContainer\nfrom .connectionpool import HTTPConnectionPool, HTTPSConnectionPool\nfrom .connectionpool import port_by_scheme\nfrom .request import RequestMethods\nfrom .util import parse_url\n\n\n__all__ = ['PoolManager', 'ProxyManager', 'proxy_from_url']\n\n\npool_classes_by_scheme = {\n 'http': HTTPConnectionPool,\n 'https': HTTPSConnectionPool,\n}\n\nlog = logging.getLogger(__name__)\n\nSSL_KEYWORDS = ('key_file', 'cert_file', 'cert_reqs', 'ca_certs',\n 'ssl_version')\n\n\nclass PoolManager(RequestMethods):\n \"\"\"\n Allows for arbitrary requests while transparently keeping track of\n necessary connection pools for you.\n\n :param num_pools:\n Number of connection pools to cache before discarding the least\n recently used pool.\n\n :param headers:\n Headers to include with all requests, unless other headers are given\n explicitly.\n\n :param \\**connection_pool_kw:\n Additional parameters are used to create fresh\n :class:`urllib3.connectionpool.ConnectionPool` instances.\n\n Example: ::\n\n >>> manager = PoolManager(num_pools=2)\n >>> r = manager.request('GET', 'http://google.com/')\n >>> r = manager.request('GET', 'http://google.com/mail')\n >>> r = manager.request('GET', 'http://yahoo.com/')\n >>> len(manager.pools)\n 2\n\n \"\"\"\n\n proxy = None\n\n def __init__(self, num_pools=10, headers=None, **connection_pool_kw):\n RequestMethods.__init__(self, headers)\n self.connection_pool_kw = connection_pool_kw\n self.pools = RecentlyUsedContainer(num_pools,\n dispose_func=lambda p: p.close())\n\n def _new_pool(self, scheme, host, port):\n \"\"\"\n Create a new :class:`ConnectionPool` based on host, port and scheme.\n\n This method is used to actually create the connection pools handed out\n by :meth:`connection_from_url` and companion methods. It is intended\n to be overridden for customization.\n \"\"\"\n pool_cls = pool_classes_by_scheme[scheme]\n kwargs = self.connection_pool_kw\n if scheme == 'http':\n kwargs = self.connection_pool_kw.copy()\n for kw in SSL_KEYWORDS:\n kwargs.pop(kw, None)\n\n return pool_cls(host, port, **kwargs)\n\n def clear(self):\n \"\"\"\n Empty our store of pools and direct them all to close.\n\n This will not affect in-flight connections, but they will not be\n re-used after completion.\n \"\"\"\n self.pools.clear()\n\n def connection_from_host(self, host, port=None, scheme='http'):\n \"\"\"\n Get a :class:`ConnectionPool` based on the host, port, and scheme.\n\n If ``port`` isn't given, it will be derived from the ``scheme`` using\n ``urllib3.connectionpool.port_by_scheme``.\n \"\"\"\n\n scheme = scheme or 'http'\n\n port = port or port_by_scheme.get(scheme, 80)\n\n pool_key = (scheme, host, port)\n\n with self.pools.lock:\n # If the scheme, host, or port doesn't match existing open\n # connections, open a new ConnectionPool.\n pool = self.pools.get(pool_key)\n if pool:\n return pool\n\n # Make a fresh ConnectionPool of the desired type\n pool = self._new_pool(scheme, host, port)\n self.pools[pool_key] = pool\n return pool\n\n def connection_from_url(self, url):\n \"\"\"\n Similar to :func:`urllib3.connectionpool.connection_from_url` but\n doesn't pass any additional parameters to the\n :class:`urllib3.connectionpool.ConnectionPool` constructor.\n\n Additional parameters are taken from the :class:`.PoolManager`\n constructor.\n \"\"\"\n u = parse_url(url)\n return self.connection_from_host(u.host, port=u.port, scheme=u.scheme)\n\n def urlopen(self, method, url, redirect=True, **kw):\n \"\"\"\n Same as :meth:`urllib3.connectionpool.HTTPConnectionPool.urlopen`\n with custom cross-host redirect logic and only sends the request-uri\n portion of the ``url``.\n\n The given ``url`` parameter must be absolute, such that an appropriate\n :class:`urllib3.connectionpool.ConnectionPool` can be chosen for it.\n \"\"\"\n u = parse_url(url)\n conn = self.connection_from_host(u.host, port=u.port, scheme=u.scheme)\n\n kw['assert_same_host'] = False\n kw['redirect'] = False\n if 'headers' not in kw:\n kw['headers'] = self.headers\n\n if self.proxy is not None and u.scheme == \"http\":\n response = conn.urlopen(method, url, **kw)\n else:\n response = conn.urlopen(method, u.request_uri, **kw)\n\n redirect_location = redirect and response.get_redirect_location()\n if not redirect_location:\n return response\n\n # Support relative URLs for redirecting.\n redirect_location = urljoin(url, redirect_location)\n\n # RFC 2616, Section 10.3.4\n if response.status == 303:\n method = 'GET'\n\n log.info(\"Redirecting %s -> %s\" % (url, redirect_location))\n kw['retries'] = kw.get('retries', 3) - 1 # Persist retries countdown\n kw['redirect'] = redirect\n return self.urlopen(method, redirect_location, **kw)\n\n\nclass ProxyManager(PoolManager):\n \"\"\"\n Behaves just like :class:`PoolManager`, but sends all requests through\n the defined proxy, using the CONNECT method for HTTPS URLs.\n\n :param poxy_url:\n The URL of the proxy to be used.\n\n :param proxy_headers:\n A dictionary contaning headers that will be sent to the proxy. In case\n of HTTP they are being sent with each request, while in the\n HTTPS/CONNECT case they are sent only once. Could be used for proxy\n authentication.\n\n Example:\n >>> proxy = urllib3.ProxyManager('http://localhost:3128/')\n >>> r1 = proxy.request('GET', 'http://google.com/')\n >>> r2 = proxy.request('GET', 'http://httpbin.org/')\n >>> len(proxy.pools)\n 1\n >>> r3 = proxy.request('GET', 'https://httpbin.org/')\n >>> r4 = proxy.request('GET', 'https://twitter.com/')\n >>> len(proxy.pools)\n 3\n\n \"\"\"\n\n def __init__(self, proxy_url, num_pools=10, headers=None,\n proxy_headers=None, **connection_pool_kw):\n\n if isinstance(proxy_url, HTTPConnectionPool):\n proxy_url = '%s://%s:%i' % (proxy_url.scheme, proxy_url.host,\n proxy_url.port)\n proxy = parse_url(proxy_url)\n if not proxy.port:\n port = port_by_scheme.get(proxy.scheme, 80)\n proxy = proxy._replace(port=port)\n self.proxy = proxy\n self.proxy_headers = proxy_headers or {}\n assert self.proxy.scheme in (\"http\", \"https\"), \\\n 'Not supported proxy scheme %s' % self.proxy.scheme\n connection_pool_kw['_proxy'] = self.proxy\n connection_pool_kw['_proxy_headers'] = self.proxy_headers\n super(ProxyManager, self).__init__(\n num_pools, headers, **connection_pool_kw)\n\n def connection_from_host(self, host, port=None, scheme='http'):\n if scheme == \"https\":\n return super(ProxyManager, self).connection_from_host(\n host, port, scheme)\n\n return super(ProxyManager, self).connection_from_host(\n self.proxy.host, self.proxy.port, self.proxy.scheme)\n\n def _set_proxy_headers(self, url, headers=None):\n \"\"\"\n Sets headers needed by proxies: specifically, the Accept and Host\n headers. Only sets headers not provided by the user.\n \"\"\"\n headers_ = {'Accept': '*/*'}\n\n netloc = parse_url(url).netloc\n if netloc:\n headers_['Host'] = netloc\n\n if headers:\n headers_.update(headers)\n return headers_\n\n def urlopen(self, method, url, redirect=True, **kw):\n \"Same as HTTP(S)ConnectionPool.urlopen, ``url`` must be absolute.\"\n u = parse_url(url)\n\n if u.scheme == \"http\":\n # It's too late to set proxy headers on per-request basis for\n # tunnelled HTTPS connections, should use\n # constructor's proxy_headers instead.\n kw['headers'] = self._set_proxy_headers(url, kw.get('headers',\n self.headers))\n kw['headers'].update(self.proxy_headers)\n\n return super(ProxyManager, self).urlopen(method, url, redirect, **kw)\n\n\ndef proxy_from_url(url, **kw):\n return ProxyManager(proxy_url=url, **kw)\n"},{"col":0,"comment":"null","endLoc":177,"header":"def urljoin(base: AnyStr, url: AnyStr | None, allow_fragments: bool = True) -> AnyStr","id":209,"name":"urljoin","nodeType":"Function","startLoc":177,"text":"def urljoin(base: AnyStr, url: AnyStr | None, allow_fragments: bool = True) -> AnyStr: ..."},{"attributeType":"str","col":4,"comment":"null","endLoc":154,"id":210,"name":"host","nodeType":"Attribute","startLoc":154,"text":"host"},{"attributeType":"int","col":4,"comment":"null","endLoc":155,"id":211,"name":"port","nodeType":"Attribute","startLoc":155,"text":"port"},{"attributeType":"socket","col":4,"comment":"null","endLoc":156,"id":212,"name":"sock","nodeType":"Attribute","startLoc":156,"text":"sock"},{"className":"RecentlyUsedContainer","col":0,"comment":"\n Provides a thread-safe dict-like container which maintains up to\n ``maxsize`` keys while throwing away the least-recently-used keys beyond\n ``maxsize``.\n\n :param maxsize:\n Maximum number of recent elements to retain.\n\n :param dispose_func:\n Every time an item is evicted from the container,\n ``dispose_func(value)`` is called. Callback which will get called\n ","endLoc":94,"id":213,"nodeType":"Class","startLoc":22,"text":"class RecentlyUsedContainer(MutableMapping):\n \"\"\"\n Provides a thread-safe dict-like container which maintains up to\n ``maxsize`` keys while throwing away the least-recently-used keys beyond\n ``maxsize``.\n\n :param maxsize:\n Maximum number of recent elements to retain.\n\n :param dispose_func:\n Every time an item is evicted from the container,\n ``dispose_func(value)`` is called. Callback which will get called\n \"\"\"\n\n ContainerCls = OrderedDict\n\n def __init__(self, maxsize=10, dispose_func=None):\n self._maxsize = maxsize\n self.dispose_func = dispose_func\n\n self._container = self.ContainerCls()\n self.lock = RLock()\n\n def __getitem__(self, key):\n # Re-insert the item, moving it to the end of the eviction line.\n with self.lock:\n item = self._container.pop(key)\n self._container[key] = item\n return item\n\n def __setitem__(self, key, value):\n evicted_value = _Null\n with self.lock:\n # Possibly evict the existing value of 'key'\n evicted_value = self._container.get(key, _Null)\n self._container[key] = value\n\n # If we didn't evict an existing value, we might have to evict the\n # least recently used item from the beginning of the container.\n if len(self._container) > self._maxsize:\n _key, evicted_value = self._container.popitem(last=False)\n\n if self.dispose_func and evicted_value is not _Null:\n self.dispose_func(evicted_value)\n\n def __delitem__(self, key):\n with self.lock:\n value = self._container.pop(key)\n\n if self.dispose_func:\n self.dispose_func(value)\n\n def __len__(self):\n with self.lock:\n return len(self._container)\n\n def __iter__(self):\n raise NotImplementedError('Iteration over this class is unlikely to be threadsafe.')\n\n def clear(self):\n with self.lock:\n # Copy pointers to all values, then wipe the mapping\n # under Python 2, this copies the list of values twice :-|\n values = list(self._container.values())\n self._container.clear()\n\n if self.dispose_func:\n for value in values:\n self.dispose_func(value)\n\n def keys(self):\n with self.lock:\n return self._container.keys()"},{"fileName":"util.py","filePath":"requests/packages/urllib3","id":214,"nodeType":"File","text":"# urllib3/util.py\n# Copyright 2008-2013 Andrey Petrov and contributors (see CONTRIBUTORS.txt)\n#\n# This module is part of urllib3 and is released under\n# the MIT License: http://www.opensource.org/licenses/mit-license.php\n\n\nfrom base64 import b64encode\nfrom binascii import hexlify, unhexlify\nfrom collections import namedtuple\nfrom hashlib import md5, sha1\nfrom socket import error as SocketError, _GLOBAL_DEFAULT_TIMEOUT\nimport time\n\ntry:\n from select import poll, POLLIN\nexcept ImportError: # `poll` doesn't exist on OSX and other platforms\n poll = False\n try:\n from select import select\n except ImportError: # `select` doesn't exist on AppEngine.\n select = False\n\ntry: # Test for SSL features\n SSLContext = None\n HAS_SNI = False\n\n import ssl\n from ssl import wrap_socket, CERT_NONE, PROTOCOL_SSLv23\n from ssl import SSLContext # Modern SSL?\n from ssl import HAS_SNI # Has SNI?\nexcept ImportError:\n pass\n\nfrom .packages import six\nfrom .exceptions import LocationParseError, SSLError, TimeoutStateError\n\n\n_Default = object()\n# The default timeout to use for socket connections. This is the attribute used\n# by httplib to define the default timeout\n\n\ndef current_time():\n \"\"\"\n Retrieve the current time, this function is mocked out in unit testing.\n \"\"\"\n return time.time()\n\n\nclass Timeout(object):\n \"\"\"\n Utility object for storing timeout values.\n\n Example usage:\n\n .. code-block:: python\n\n timeout = urllib3.util.Timeout(connect=2.0, read=7.0)\n pool = HTTPConnectionPool('www.google.com', 80, timeout=timeout)\n pool.request(...) # Etc, etc\n\n :param connect:\n The maximum amount of time to wait for a connection attempt to a server\n to succeed. Omitting the parameter will default the connect timeout to\n the system default, probably `the global default timeout in socket.py\n `_.\n None will set an infinite timeout for connection attempts.\n\n :type connect: integer, float, or None\n\n :param read:\n The maximum amount of time to wait between consecutive\n read operations for a response from the server. Omitting\n the parameter will default the read timeout to the system\n default, probably `the global default timeout in socket.py\n `_.\n None will set an infinite timeout.\n\n :type read: integer, float, or None\n\n :param total:\n This combines the connect and read timeouts into one; the read timeout\n will be set to the time leftover from the connect attempt. In the\n event that both a connect timeout and a total are specified, or a read\n timeout and a total are specified, the shorter timeout will be applied.\n\n Defaults to None.\n\n :type total: integer, float, or None\n\n .. note::\n\n Many factors can affect the total amount of time for urllib3 to return\n an HTTP response. Specifically, Python's DNS resolver does not obey the\n timeout specified on the socket. Other factors that can affect total\n request time include high CPU load, high swap, the program running at a\n low priority level, or other behaviors. The observed running time for\n urllib3 to return a response may be greater than the value passed to\n `total`.\n\n In addition, the read and total timeouts only measure the time between\n read operations on the socket connecting the client and the server,\n not the total amount of time for the request to return a complete\n response. For most requests, the timeout is raised because the server\n has not sent the first byte in the specified time. This is not always\n the case; if a server streams one byte every fifteen seconds, a timeout\n of 20 seconds will not ever trigger, even though the request will\n take several minutes to complete.\n\n If your goal is to cut off any request after a set amount of wall clock\n time, consider having a second \"watcher\" thread to cut off a slow\n request.\n \"\"\"\n\n #: A sentinel object representing the default timeout value\n DEFAULT_TIMEOUT = _GLOBAL_DEFAULT_TIMEOUT\n\n def __init__(self, total=None, connect=_Default, read=_Default):\n self._connect = self._validate_timeout(connect, 'connect')\n self._read = self._validate_timeout(read, 'read')\n self.total = self._validate_timeout(total, 'total')\n self._start_connect = None\n\n def __str__(self):\n return '%s(connect=%r, read=%r, total=%r)' % (\n type(self).__name__, self._connect, self._read, self.total)\n\n\n @classmethod\n def _validate_timeout(cls, value, name):\n \"\"\" Check that a timeout attribute is valid\n\n :param value: The timeout value to validate\n :param name: The name of the timeout attribute to validate. This is used\n for clear error messages\n :return: the value\n :raises ValueError: if the type is not an integer or a float, or if it\n is a numeric value less than zero\n \"\"\"\n if value is _Default:\n return cls.DEFAULT_TIMEOUT\n\n if value is None or value is cls.DEFAULT_TIMEOUT:\n return value\n\n try:\n float(value)\n except (TypeError, ValueError):\n raise ValueError(\"Timeout value %s was %s, but it must be an \"\n \"int or float.\" % (name, value))\n\n try:\n if value < 0:\n raise ValueError(\"Attempted to set %s timeout to %s, but the \"\n \"timeout cannot be set to a value less \"\n \"than 0.\" % (name, value))\n except TypeError: # Python 3\n raise ValueError(\"Timeout value %s was %s, but it must be an \"\n \"int or float.\" % (name, value))\n\n return value\n\n @classmethod\n def from_float(cls, timeout):\n \"\"\" Create a new Timeout from a legacy timeout value.\n\n The timeout value used by httplib.py sets the same timeout on the\n connect(), and recv() socket requests. This creates a :class:`Timeout`\n object that sets the individual timeouts to the ``timeout`` value passed\n to this function.\n\n :param timeout: The legacy timeout value\n :type timeout: integer, float, sentinel default object, or None\n :return: a Timeout object\n :rtype: :class:`Timeout`\n \"\"\"\n return Timeout(read=timeout, connect=timeout)\n\n def clone(self):\n \"\"\" Create a copy of the timeout object\n\n Timeout properties are stored per-pool but each request needs a fresh\n Timeout object to ensure each one has its own start/stop configured.\n\n :return: a copy of the timeout object\n :rtype: :class:`Timeout`\n \"\"\"\n # We can't use copy.deepcopy because that will also create a new object\n # for _GLOBAL_DEFAULT_TIMEOUT, which socket.py uses as a sentinel to\n # detect the user default.\n return Timeout(connect=self._connect, read=self._read,\n total=self.total)\n\n def start_connect(self):\n \"\"\" Start the timeout clock, used during a connect() attempt\n\n :raises urllib3.exceptions.TimeoutStateError: if you attempt\n to start a timer that has been started already.\n \"\"\"\n if self._start_connect is not None:\n raise TimeoutStateError(\"Timeout timer has already been started.\")\n self._start_connect = current_time()\n return self._start_connect\n\n def get_connect_duration(self):\n \"\"\" Gets the time elapsed since the call to :meth:`start_connect`.\n\n :return: the elapsed time\n :rtype: float\n :raises urllib3.exceptions.TimeoutStateError: if you attempt\n to get duration for a timer that hasn't been started.\n \"\"\"\n if self._start_connect is None:\n raise TimeoutStateError(\"Can't get connect duration for timer \"\n \"that has not started.\")\n return current_time() - self._start_connect\n\n @property\n def connect_timeout(self):\n \"\"\" Get the value to use when setting a connection timeout.\n\n This will be a positive float or integer, the value None\n (never timeout), or the default system timeout.\n\n :return: the connect timeout\n :rtype: int, float, :attr:`Timeout.DEFAULT_TIMEOUT` or None\n \"\"\"\n if self.total is None:\n return self._connect\n\n if self._connect is None or self._connect is self.DEFAULT_TIMEOUT:\n return self.total\n\n return min(self._connect, self.total)\n\n @property\n def read_timeout(self):\n \"\"\" Get the value for the read timeout.\n\n This assumes some time has elapsed in the connection timeout and\n computes the read timeout appropriately.\n\n If self.total is set, the read timeout is dependent on the amount of\n time taken by the connect timeout. If the connection time has not been\n established, a :exc:`~urllib3.exceptions.TimeoutStateError` will be\n raised.\n\n :return: the value to use for the read timeout\n :rtype: int, float, :attr:`Timeout.DEFAULT_TIMEOUT` or None\n :raises urllib3.exceptions.TimeoutStateError: If :meth:`start_connect`\n has not yet been called on this object.\n \"\"\"\n if (self.total is not None and\n self.total is not self.DEFAULT_TIMEOUT and\n self._read is not None and\n self._read is not self.DEFAULT_TIMEOUT):\n # in case the connect timeout has not yet been established.\n if self._start_connect is None:\n return self._read\n return max(0, min(self.total - self.get_connect_duration(),\n self._read))\n elif self.total is not None and self.total is not self.DEFAULT_TIMEOUT:\n return max(0, self.total - self.get_connect_duration())\n else:\n return self._read\n\n\nclass Url(namedtuple('Url', ['scheme', 'auth', 'host', 'port', 'path', 'query', 'fragment'])):\n \"\"\"\n Datastructure for representing an HTTP URL. Used as a return value for\n :func:`parse_url`.\n \"\"\"\n slots = ()\n\n def __new__(cls, scheme=None, auth=None, host=None, port=None, path=None, query=None, fragment=None):\n return super(Url, cls).__new__(cls, scheme, auth, host, port, path, query, fragment)\n\n @property\n def hostname(self):\n \"\"\"For backwards-compatibility with urlparse. We're nice like that.\"\"\"\n return self.host\n\n @property\n def request_uri(self):\n \"\"\"Absolute path including the query string.\"\"\"\n uri = self.path or '/'\n\n if self.query is not None:\n uri += '?' + self.query\n\n return uri\n\n @property\n def netloc(self):\n \"\"\"Network location including host and port\"\"\"\n if self.port:\n return '%s:%d' % (self.host, self.port)\n return self.host\n\n\ndef split_first(s, delims):\n \"\"\"\n Given a string and an iterable of delimiters, split on the first found\n delimiter. Return two split parts and the matched delimiter.\n\n If not found, then the first part is the full input string.\n\n Example: ::\n\n >>> split_first('foo/bar?baz', '?/=')\n ('foo', 'bar?baz', '/')\n >>> split_first('foo/bar?baz', '123')\n ('foo/bar?baz', '', None)\n\n Scales linearly with number of delims. Not ideal for large number of delims.\n \"\"\"\n min_idx = None\n min_delim = None\n for d in delims:\n idx = s.find(d)\n if idx < 0:\n continue\n\n if min_idx is None or idx < min_idx:\n min_idx = idx\n min_delim = d\n\n if min_idx is None or min_idx < 0:\n return s, '', None\n\n return s[:min_idx], s[min_idx+1:], min_delim\n\n\ndef parse_url(url):\n \"\"\"\n Given a url, return a parsed :class:`.Url` namedtuple. Best-effort is\n performed to parse incomplete urls. Fields not provided will be None.\n\n Partly backwards-compatible with :mod:`urlparse`.\n\n Example: ::\n\n >>> parse_url('http://google.com/mail/')\n Url(scheme='http', host='google.com', port=None, path='/', ...)\n >>> parse_url('google.com:80')\n Url(scheme=None, host='google.com', port=80, path=None, ...)\n >>> parse_url('/foo?bar')\n Url(scheme=None, host=None, port=None, path='/foo', query='bar', ...)\n \"\"\"\n\n # While this code has overlap with stdlib's urlparse, it is much\n # simplified for our needs and less annoying.\n # Additionally, this implementations does silly things to be optimal\n # on CPython.\n\n scheme = None\n auth = None\n host = None\n port = None\n path = None\n fragment = None\n query = None\n\n # Scheme\n if '://' in url:\n scheme, url = url.split('://', 1)\n\n # Find the earliest Authority Terminator\n # (http://tools.ietf.org/html/rfc3986#section-3.2)\n url, path_, delim = split_first(url, ['/', '?', '#'])\n\n if delim:\n # Reassemble the path\n path = delim + path_\n\n # Auth\n if '@' in url:\n # Last '@' denotes end of auth part\n auth, url = url.rsplit('@', 1)\n\n # IPv6\n if url and url[0] == '[':\n host, url = url.split(']', 1)\n host += ']'\n\n # Port\n if ':' in url:\n _host, port = url.split(':', 1)\n\n if not host:\n host = _host\n\n if port:\n # If given, ports must be integers.\n if not port.isdigit():\n raise LocationParseError(\"Failed to parse: %s\" % url)\n port = int(port)\n else:\n # Blank ports are cool, too. (rfc3986#section-3.2.3)\n port = None\n\n elif not host and url:\n host = url\n\n if not path:\n return Url(scheme, auth, host, port, path, query, fragment)\n\n # Fragment\n if '#' in path:\n path, fragment = path.split('#', 1)\n\n # Query\n if '?' in path:\n path, query = path.split('?', 1)\n\n return Url(scheme, auth, host, port, path, query, fragment)\n\n\ndef get_host(url):\n \"\"\"\n Deprecated. Use :func:`.parse_url` instead.\n \"\"\"\n p = parse_url(url)\n return p.scheme or 'http', p.hostname, p.port\n\n\ndef make_headers(keep_alive=None, accept_encoding=None, user_agent=None,\n basic_auth=None):\n \"\"\"\n Shortcuts for generating request headers.\n\n :param keep_alive:\n If ``True``, adds 'connection: keep-alive' header.\n\n :param accept_encoding:\n Can be a boolean, list, or string.\n ``True`` translates to 'gzip,deflate'.\n List will get joined by comma.\n String will be used as provided.\n\n :param user_agent:\n String representing the user-agent you want, such as\n \"python-urllib3/0.6\"\n\n :param basic_auth:\n Colon-separated username:password string for 'authorization: basic ...'\n auth header.\n\n Example: ::\n\n >>> make_headers(keep_alive=True, user_agent=\"Batman/1.0\")\n {'connection': 'keep-alive', 'user-agent': 'Batman/1.0'}\n >>> make_headers(accept_encoding=True)\n {'accept-encoding': 'gzip,deflate'}\n \"\"\"\n headers = {}\n if accept_encoding:\n if isinstance(accept_encoding, str):\n pass\n elif isinstance(accept_encoding, list):\n accept_encoding = ','.join(accept_encoding)\n else:\n accept_encoding = 'gzip,deflate'\n headers['accept-encoding'] = accept_encoding\n\n if user_agent:\n headers['user-agent'] = user_agent\n\n if keep_alive:\n headers['connection'] = 'keep-alive'\n\n if basic_auth:\n headers['authorization'] = 'Basic ' + \\\n b64encode(six.b(basic_auth)).decode('utf-8')\n\n return headers\n\n\ndef is_connection_dropped(conn): # Platform-specific\n \"\"\"\n Returns True if the connection is dropped and should be closed.\n\n :param conn:\n :class:`httplib.HTTPConnection` object.\n\n Note: For platforms like AppEngine, this will always return ``False`` to\n let the platform handle connection recycling transparently for us.\n \"\"\"\n sock = getattr(conn, 'sock', False)\n if not sock: # Platform-specific: AppEngine\n return False\n\n if not poll:\n if not select: # Platform-specific: AppEngine\n return False\n\n try:\n return select([sock], [], [], 0.0)[0]\n except SocketError:\n return True\n\n # This version is better on platforms that support it.\n p = poll()\n p.register(sock, POLLIN)\n for (fno, ev) in p.poll(0.0):\n if fno == sock.fileno():\n # Either data is buffered (bad), or the connection is dropped.\n return True\n\n\ndef resolve_cert_reqs(candidate):\n \"\"\"\n Resolves the argument to a numeric constant, which can be passed to\n the wrap_socket function/method from the ssl module.\n Defaults to :data:`ssl.CERT_NONE`.\n If given a string it is assumed to be the name of the constant in the\n :mod:`ssl` module or its abbrevation.\n (So you can specify `REQUIRED` instead of `CERT_REQUIRED`.\n If it's neither `None` nor a string we assume it is already the numeric\n constant which can directly be passed to wrap_socket.\n \"\"\"\n if candidate is None:\n return CERT_NONE\n\n if isinstance(candidate, str):\n res = getattr(ssl, candidate, None)\n if res is None:\n res = getattr(ssl, 'CERT_' + candidate)\n return res\n\n return candidate\n\n\ndef resolve_ssl_version(candidate):\n \"\"\"\n like resolve_cert_reqs\n \"\"\"\n if candidate is None:\n return PROTOCOL_SSLv23\n\n if isinstance(candidate, str):\n res = getattr(ssl, candidate, None)\n if res is None:\n res = getattr(ssl, 'PROTOCOL_' + candidate)\n return res\n\n return candidate\n\n\ndef assert_fingerprint(cert, fingerprint):\n \"\"\"\n Checks if given fingerprint matches the supplied certificate.\n\n :param cert:\n Certificate as bytes object.\n :param fingerprint:\n Fingerprint as string of hexdigits, can be interspersed by colons.\n \"\"\"\n\n # Maps the length of a digest to a possible hash function producing\n # this digest.\n hashfunc_map = {\n 16: md5,\n 20: sha1\n }\n\n fingerprint = fingerprint.replace(':', '').lower()\n\n digest_length, rest = divmod(len(fingerprint), 2)\n\n if rest or digest_length not in hashfunc_map:\n raise SSLError('Fingerprint is of invalid length.')\n\n # We need encode() here for py32; works on py2 and p33.\n fingerprint_bytes = unhexlify(fingerprint.encode())\n\n hashfunc = hashfunc_map[digest_length]\n\n cert_digest = hashfunc(cert).digest()\n\n if not cert_digest == fingerprint_bytes:\n raise SSLError('Fingerprints did not match. Expected \"{0}\", got \"{1}\".'\n .format(hexlify(fingerprint_bytes),\n hexlify(cert_digest)))\n\ndef is_fp_closed(obj):\n \"\"\"\n Checks whether a given file-like object is closed.\n\n :param obj:\n The file-like object to check.\n \"\"\"\n if hasattr(obj, 'fp'):\n # Object is a container for another file-like object that gets released\n # on exhaustion (e.g. HTTPResponse)\n return obj.fp is None\n\n return obj.closed\n\n\nif SSLContext is not None: # Python 3.2+\n def ssl_wrap_socket(sock, keyfile=None, certfile=None, cert_reqs=None,\n ca_certs=None, server_hostname=None,\n ssl_version=None):\n \"\"\"\n All arguments except `server_hostname` have the same meaning as for\n :func:`ssl.wrap_socket`\n\n :param server_hostname:\n Hostname of the expected certificate\n \"\"\"\n context = SSLContext(ssl_version)\n context.verify_mode = cert_reqs\n if ca_certs:\n try:\n context.load_verify_locations(ca_certs)\n # Py32 raises IOError\n # Py33 raises FileNotFoundError\n except Exception as e: # Reraise as SSLError\n raise SSLError(e)\n if certfile:\n # FIXME: This block needs a test.\n context.load_cert_chain(certfile, keyfile)\n if HAS_SNI: # Platform-specific: OpenSSL with enabled SNI\n return context.wrap_socket(sock, server_hostname=server_hostname)\n return context.wrap_socket(sock)\n\nelse: # Python 3.1 and earlier\n def ssl_wrap_socket(sock, keyfile=None, certfile=None, cert_reqs=None,\n ca_certs=None, server_hostname=None,\n ssl_version=None):\n return wrap_socket(sock, keyfile=keyfile, certfile=certfile,\n ca_certs=ca_certs, cert_reqs=cert_reqs,\n ssl_version=ssl_version)\n"},{"className":"MutableMapping","col":0,"comment":"null","endLoc":741,"id":215,"nodeType":"Class","startLoc":693,"text":"class MutableMapping(Mapping[_KT, _VT]):\n @abstractmethod\n def __setitem__(self, key: _KT, value: _VT, /) -> None: ...\n @abstractmethod\n def __delitem__(self, key: _KT, /) -> None: ...\n def clear(self) -> None: ...\n @overload\n def pop(self, key: _KT, /) -> _VT: ...\n @overload\n def pop(self, key: _KT, /, default: _VT) -> _VT: ...\n @overload\n def pop(self, key: _KT, /, default: _T) -> _VT | _T: ...\n def popitem(self) -> tuple[_KT, _VT]: ...\n # This overload should be allowed only if the value type is compatible with None.\n #\n # Keep the following methods in line with MutableMapping.setdefault, modulo positional-only differences:\n # -- collections.OrderedDict.setdefault\n # -- collections.ChainMap.setdefault\n # -- weakref.WeakKeyDictionary.setdefault\n @overload\n def setdefault(self: MutableMapping[_KT, _T | None], key: _KT, default: None = None, /) -> _T | None: ...\n @overload\n def setdefault(self, key: _KT, default: _VT, /) -> _VT: ...\n # 'update' used to take a Union, but using overloading is better.\n # The second overloaded type here is a bit too general, because\n # Mapping[tuple[_KT, _VT], W] is a subclass of Iterable[tuple[_KT, _VT]],\n # but will always have the behavior of the first overloaded type\n # at runtime, leading to keys of a mix of types _KT and tuple[_KT, _VT].\n # We don't currently have any way of forcing all Mappings to use\n # the first overload, but by using overloading rather than a Union,\n # mypy will commit to using the first overload when the argument is\n # known to be a Mapping with unknown type parameters, which is closer\n # to the behavior we want. See mypy issue #1430.\n #\n # Various mapping classes have __ior__ methods that should be kept roughly in line with .update():\n # -- dict.__ior__\n # -- os._Environ.__ior__\n # -- collections.UserDict.__ior__\n # -- collections.ChainMap.__ior__\n # -- peewee.attrdict.__add__\n # -- peewee.attrdict.__iadd__\n # -- weakref.WeakValueDictionary.__ior__\n # -- weakref.WeakKeyDictionary.__ior__\n @overload\n def update(self, m: SupportsKeysAndGetItem[_KT, _VT], /, **kwargs: _VT) -> None: ...\n @overload\n def update(self, m: Iterable[tuple[_KT, _VT]], /, **kwargs: _VT) -> None: ...\n @overload\n def update(self, **kwargs: _VT) -> None: ..."},{"attributeType":"VerifiedHTTPSConnection","col":4,"comment":"null","endLoc":107,"id":216,"name":"HTTPSConnection","nodeType":"Attribute","startLoc":107,"text":"HTTPSConnection"},{"col":0,"comment":"null","endLoc":31,"header":"def b64encode(s: ReadableBuffer, altchars: ReadableBuffer | None = None) -> bytes","id":217,"name":"b64encode","nodeType":"Function","startLoc":31,"text":"def b64encode(s: ReadableBuffer, altchars: ReadableBuffer | None = None) -> bytes: ..."},{"attributeType":"DummyConnection","col":4,"comment":"null","endLoc":21,"id":218,"name":"HTTPSConnection","nodeType":"Attribute","startLoc":21,"text":"HTTPSConnection"},{"className":"HTTPSConnection","col":0,"comment":"null","endLoc":214,"id":219,"nodeType":"Class","startLoc":187,"text":"class HTTPSConnection(HTTPConnection):\n # Can be `None` if `.connect()` was not called:\n sock: ssl.SSLSocket | Any\n if sys.version_info >= (3, 12):\n def __init__(\n self,\n host: str,\n port: int | None = None,\n *,\n timeout: float | None = ...,\n source_address: tuple[str, int] | None = None,\n context: ssl.SSLContext | None = None,\n blocksize: int = 8192,\n ) -> None: ...\n else:\n def __init__(\n self,\n host: str,\n port: int | None = None,\n key_file: str | None = None,\n cert_file: str | None = None,\n timeout: float | None = ...,\n source_address: tuple[str, int] | None = None,\n *,\n context: ssl.SSLContext | None = None,\n check_hostname: bool | None = None,\n blocksize: int = 8192,\n ) -> None: ..."},{"col":8,"comment":"null","endLoc":214,"header":"def __init__(\n self,\n host: str,\n port: int | None = None,\n key_file: str | None = None,\n cert_file: str | None = None,\n timeout: float | None = ...,\n source_address: tuple[str, int] | None = None,\n *,\n context: ssl.SSLContext | None = None,\n check_hostname: bool | None = None,\n blocksize: int = 8192,\n ) -> None","id":220,"name":"__init__","nodeType":"Function","startLoc":202,"text":"def __init__(\n self,\n host: str,\n port: int | None = None,\n key_file: str | None = None,\n cert_file: str | None = None,\n timeout: float | None = ...,\n source_address: tuple[str, int] | None = None,\n *,\n context: ssl.SSLContext | None = None,\n check_hostname: bool | None = None,\n blocksize: int = 8192,\n ) -> None: ..."},{"attributeType":"SSLSocket","col":4,"comment":"null","endLoc":189,"id":221,"name":"sock","nodeType":"Attribute","startLoc":189,"text":"sock"},{"col":0,"comment":"null","endLoc":31,"header":"def hexlify(data: ReadableBuffer, sep: str | bytes = ..., bytes_per_sep: int = ...) -> bytes","id":222,"name":"hexlify","nodeType":"Function","startLoc":31,"text":"def hexlify(data: ReadableBuffer, sep: str | bytes = ..., bytes_per_sep: int = ...) -> bytes: ..."},{"col":0,"comment":"\n Hexadecimal representation of binary data.\n \n sep\n An optional single character or byte to separate hex bytes.\n bytes_per_sep\n How many bytes between separators. Positive values count from the\n right, negative values count from the left.\n \n The return value is a bytes object. This function is also\n available as \"b2a_hex()\".\n ","endLoc":101,"header":"def hexlify(data)","id":225,"name":"hexlify","nodeType":"Function","startLoc":88,"text":"def hexlify(data): # known case of binascii.hexlify\n \"\"\"\n Hexadecimal representation of binary data.\n \n sep\n An optional single character or byte to separate hex bytes.\n bytes_per_sep\n How many bytes between separators. Positive values count from the\n right, negative values count from the left.\n \n The return value is a bytes object. This function is also\n available as \"b2a_hex()\".\n \"\"\"\n return b\"\""},{"className":"VerifiedHTTPSConnection","col":0,"comment":"\n Based on httplib.HTTPSConnection but wraps the socket with\n SSL certification.\n ","endLoc":103,"id":226,"nodeType":"Class","startLoc":48,"text":"class VerifiedHTTPSConnection(HTTPSConnection):\n \"\"\"\n Based on httplib.HTTPSConnection but wraps the socket with\n SSL certification.\n \"\"\"\n cert_reqs = None\n ca_certs = None\n ssl_version = None\n\n def set_cert(self, key_file=None, cert_file=None,\n cert_reqs=None, ca_certs=None,\n assert_hostname=None, assert_fingerprint=None):\n\n self.key_file = key_file\n self.cert_file = cert_file\n self.cert_reqs = cert_reqs\n self.ca_certs = ca_certs\n self.assert_hostname = assert_hostname\n self.assert_fingerprint = assert_fingerprint\n\n def connect(self):\n # Add certificate verification\n try:\n sock = socket.create_connection(\n address=(self.host, self.port),\n timeout=self.timeout,\n )\n except SocketTimeout:\n raise ConnectTimeoutError(\n self, \"Connection to %s timed out. (connect timeout=%s)\" %\n (self.host, self.timeout))\n\n resolved_cert_reqs = resolve_cert_reqs(self.cert_reqs)\n resolved_ssl_version = resolve_ssl_version(self.ssl_version)\n\n if self._tunnel_host:\n self.sock = sock\n # Calls self._set_hostport(), so self.host is\n # self._tunnel_host below.\n self._tunnel()\n\n # Wrap socket using verification with the root certs in\n # trusted_root_certs\n self.sock = ssl_wrap_socket(sock, self.key_file, self.cert_file,\n cert_reqs=resolved_cert_reqs,\n ca_certs=self.ca_certs,\n server_hostname=self.host,\n ssl_version=resolved_ssl_version)\n\n if resolved_cert_reqs != ssl.CERT_NONE:\n if self.assert_fingerprint:\n assert_fingerprint(self.sock.getpeercert(binary_form=True),\n self.assert_fingerprint)\n elif self.assert_hostname is not False:\n match_hostname(self.sock.getpeercert(),\n self.assert_hostname or self.host)"},{"col":0,"comment":"null","endLoc":33,"header":"def unhexlify(hexstr: _AsciiBuffer, /) -> bytes","id":227,"name":"unhexlify","nodeType":"Function","startLoc":33,"text":"def unhexlify(hexstr: _AsciiBuffer, /) -> bytes: ..."},{"col":0,"comment":"\n Binary data of hexadecimal representation.\n \n hexstr must contain an even number of hex digits (upper or lower case).\n ","endLoc":117,"header":"def unhexlify(hexstr)","id":228,"name":"unhexlify","nodeType":"Function","startLoc":111,"text":"def unhexlify(hexstr): # known case of binascii.unhexlify\n \"\"\"\n Binary data of hexadecimal representation.\n \n hexstr must contain an even number of hex digits (upper or lower case).\n \"\"\"\n return b\"\""},{"col":0,"comment":"null","endLoc":47,"header":"def namedtuple(\n typename: str,\n field_names: str | Iterable[str],\n *,\n rename: bool = False,\n module: str | None = None,\n defaults: Iterable[Any] | None = None,\n) -> type[tuple[Any, ...]]","id":229,"name":"namedtuple","nodeType":"Function","startLoc":40,"text":"def namedtuple(\n typename: str,\n field_names: str | Iterable[str],\n *,\n rename: bool = False,\n module: str | None = None,\n defaults: Iterable[Any] | None = None,\n) -> type[tuple[Any, ...]]: ..."},{"col":4,"comment":"null","endLoc":66,"header":"def set_cert(self, key_file=None, cert_file=None,\n cert_reqs=None, ca_certs=None,\n assert_hostname=None, assert_fingerprint=None)","id":230,"name":"set_cert","nodeType":"Function","startLoc":57,"text":"def set_cert(self, key_file=None, cert_file=None,\n cert_reqs=None, ca_certs=None,\n assert_hostname=None, assert_fingerprint=None):\n\n self.key_file = key_file\n self.cert_file = cert_file\n self.cert_reqs = cert_reqs\n self.ca_certs = ca_certs\n self.assert_hostname = assert_hostname\n self.assert_fingerprint = assert_fingerprint"},{"col":4,"comment":"null","endLoc":103,"header":"def connect(self)","id":231,"name":"connect","nodeType":"Function","startLoc":68,"text":"def connect(self):\n # Add certificate verification\n try:\n sock = socket.create_connection(\n address=(self.host, self.port),\n timeout=self.timeout,\n )\n except SocketTimeout:\n raise ConnectTimeoutError(\n self, \"Connection to %s timed out. (connect timeout=%s)\" %\n (self.host, self.timeout))\n\n resolved_cert_reqs = resolve_cert_reqs(self.cert_reqs)\n resolved_ssl_version = resolve_ssl_version(self.ssl_version)\n\n if self._tunnel_host:\n self.sock = sock\n # Calls self._set_hostport(), so self.host is\n # self._tunnel_host below.\n self._tunnel()\n\n # Wrap socket using verification with the root certs in\n # trusted_root_certs\n self.sock = ssl_wrap_socket(sock, self.key_file, self.cert_file,\n cert_reqs=resolved_cert_reqs,\n ca_certs=self.ca_certs,\n server_hostname=self.host,\n ssl_version=resolved_ssl_version)\n\n if resolved_cert_reqs != ssl.CERT_NONE:\n if self.assert_fingerprint:\n assert_fingerprint(self.sock.getpeercert(binary_form=True),\n self.assert_fingerprint)\n elif self.assert_hostname is not False:\n match_hostname(self.sock.getpeercert(),\n self.assert_hostname or self.host)"},{"col":4,"comment":"null","endLoc":86,"header":"def get_confidence(self)","id":235,"name":"get_confidence","nodeType":"Function","startLoc":85,"text":"def get_confidence(self):\n return self._mDistributionAnalyzer.get_confidence()"},{"attributeType":"null","col":8,"comment":"null","endLoc":40,"id":236,"name":"_mLastChar","nodeType":"Attribute","startLoc":40,"text":"self._mLastChar"},{"col":4,"comment":"null","endLoc":66,"header":"def md5(string: ReadableBuffer = b\"\", *, usedforsecurity: bool = True) -> _Hash","id":237,"name":"md5","nodeType":"Function","startLoc":66,"text":"def md5(string: ReadableBuffer = b\"\", *, usedforsecurity: bool = True) -> _Hash: ..."},{"col":4,"comment":"null","endLoc":67,"header":"def sha1(string: ReadableBuffer = b\"\", *, usedforsecurity: bool = True) -> _Hash","id":238,"name":"sha1","nodeType":"Function","startLoc":67,"text":"def sha1(string: ReadableBuffer = b\"\", *, usedforsecurity: bool = True) -> _Hash: ..."},{"attributeType":"null","col":8,"comment":"null","endLoc":39,"id":239,"name":"_mCodingSM","nodeType":"Attribute","startLoc":39,"text":"self._mCodingSM"},{"attributeType":"null","col":16,"comment":"null","endLoc":62,"id":240,"name":"_mState","nodeType":"Attribute","startLoc":62,"text":"self._mState"},{"col":4,"comment":"null","endLoc":695,"header":"@abstractmethod\n def __setitem__(self, key: _KT, value: _VT, /) -> None","id":241,"name":"__setitem__","nodeType":"Function","startLoc":694,"text":"@abstractmethod\n def __setitem__(self, key: _KT, value: _VT, /) -> None: ..."},{"col":4,"comment":"null","endLoc":697,"header":"@abstractmethod\n def __delitem__(self, key: _KT, /) -> None","id":242,"name":"__delitem__","nodeType":"Function","startLoc":696,"text":"@abstractmethod\n def __delitem__(self, key: _KT, /) -> None: ..."},{"col":4,"comment":"null","endLoc":698,"header":"def clear(self) -> None","id":243,"name":"clear","nodeType":"Function","startLoc":698,"text":"def clear(self) -> None: ..."},{"col":4,"comment":"null","endLoc":700,"header":"@overload\n def pop(self, key: _KT, /) -> _VT","id":244,"name":"pop","nodeType":"Function","startLoc":699,"text":"@overload\n def pop(self, key: _KT, /) -> _VT: ..."},{"col":4,"comment":"null","endLoc":702,"header":"@overload\n def pop(self, key: _KT, /, default: _VT) -> _VT","id":245,"name":"pop","nodeType":"Function","startLoc":701,"text":"@overload\n def pop(self, key: _KT, /, default: _VT) -> _VT: ..."},{"col":4,"comment":"null","endLoc":704,"header":"@overload\n def pop(self, key: _KT, /, default: _T) -> _VT | _T","id":246,"name":"pop","nodeType":"Function","startLoc":703,"text":"@overload\n def pop(self, key: _KT, /, default: _T) -> _VT | _T: ..."},{"col":4,"comment":"null","endLoc":705,"header":"def popitem(self) -> tuple[_KT, _VT]","id":247,"name":"popitem","nodeType":"Function","startLoc":705,"text":"def popitem(self) -> tuple[_KT, _VT]: ..."},{"col":4,"comment":"null","endLoc":713,"header":"@overload\n def setdefault(self: MutableMapping[_KT, _T | None], key: _KT, default: None = None, /) -> _T | None","id":248,"name":"setdefault","nodeType":"Function","startLoc":712,"text":"@overload\n def setdefault(self: MutableMapping[_KT, _T | None], key: _KT, default: None = None, /) -> _T | None: ..."},{"col":4,"comment":"null","endLoc":715,"header":"@overload\n def setdefault(self, key: _KT, default: _VT, /) -> _VT","id":249,"name":"setdefault","nodeType":"Function","startLoc":714,"text":"@overload\n def setdefault(self, key: _KT, default: _VT, /) -> _VT: ..."},{"col":4,"comment":"null","endLoc":737,"header":"@overload\n def update(self, m: SupportsKeysAndGetItem[_KT, _VT], /, **kwargs: _VT) -> None","id":250,"name":"update","nodeType":"Function","startLoc":736,"text":"@overload\n def update(self, m: SupportsKeysAndGetItem[_KT, _VT], /, **kwargs: _VT) -> None: ..."},{"col":4,"comment":"null","endLoc":739,"header":"@overload\n def update(self, m: Iterable[tuple[_KT, _VT]], /, **kwargs: _VT) -> None","id":251,"name":"update","nodeType":"Function","startLoc":738,"text":"@overload\n def update(self, m: Iterable[tuple[_KT, _VT]], /, **kwargs: _VT) -> None: ..."},{"col":4,"comment":"null","endLoc":741,"header":"@overload\n def update(self, **kwargs: _VT) -> None","id":252,"name":"update","nodeType":"Function","startLoc":740,"text":"@overload\n def update(self, **kwargs: _VT) -> None: ..."},{"className":"poll","col":0,"comment":"null","endLoc":28,"id":253,"nodeType":"Class","startLoc":24,"text":"class poll:\n def register(self, fd: FileDescriptorLike, eventmask: int = ...) -> None: ...\n def modify(self, fd: FileDescriptorLike, eventmask: int) -> None: ...\n def unregister(self, fd: FileDescriptorLike) -> None: ...\n def poll(self, timeout: float | None = ...) -> list[tuple[int, int]]: ..."},{"col":4,"comment":"null","endLoc":43,"header":"def __init__(self, maxsize=10, dispose_func=None)","id":254,"name":"__init__","nodeType":"Function","startLoc":38,"text":"def __init__(self, maxsize=10, dispose_func=None):\n self._maxsize = maxsize\n self.dispose_func = dispose_func\n\n self._container = self.ContainerCls()\n self.lock = RLock()"},{"col":4,"comment":"null","endLoc":25,"header":"def register(self, fd: FileDescriptorLike, eventmask: int = ...) -> None","id":255,"name":"register","nodeType":"Function","startLoc":25,"text":"def register(self, fd: FileDescriptorLike, eventmask: int = ...) -> None: ..."},{"col":4,"comment":"null","endLoc":26,"header":"def modify(self, fd: FileDescriptorLike, eventmask: int) -> None","id":256,"name":"modify","nodeType":"Function","startLoc":26,"text":"def modify(self, fd: FileDescriptorLike, eventmask: int) -> None: ..."},{"col":4,"comment":"null","endLoc":27,"header":"def unregister(self, fd: FileDescriptorLike) -> None","id":257,"name":"unregister","nodeType":"Function","startLoc":27,"text":"def unregister(self, fd: FileDescriptorLike) -> None: ..."},{"col":4,"comment":"null","endLoc":28,"header":"def poll(self, timeout: float | None = ...) -> list[tuple[int, int]]","id":258,"name":"poll","nodeType":"Function","startLoc":28,"text":"def poll(self, timeout: float | None = ...) -> list[tuple[int, int]]: ..."},{"col":0,"comment":"\n Returns a polling object.\n \n This object supports registering and unregistering file descriptors, and then\n polling them for I/O events.\n ","endLoc":73,"header":"def poll(*args, **kwargs)","id":259,"name":"poll","nodeType":"Function","startLoc":66,"text":"def poll(*args, **kwargs): # real signature unknown\n \"\"\"\n Returns a polling object.\n \n This object supports registering and unregistering file descriptors, and then\n polling them for I/O events.\n \"\"\"\n pass"},{"attributeType":"null","col":8,"comment":"null","endLoc":38,"id":260,"name":"_mDistributionAnalyzer","nodeType":"Attribute","startLoc":38,"text":"self._mDistributionAnalyzer"},{"col":0,"comment":"\n Resolves the argument to a numeric constant, which can be passed to\n the wrap_socket function/method from the ssl module.\n Defaults to :data:`ssl.CERT_NONE`.\n If given a string it is assumed to be the name of the constant in the\n :mod:`ssl` module or its abbrevation.\n (So you can specify `REQUIRED` instead of `CERT_REQUIRED`.\n If it's neither `None` nor a string we assume it is already the numeric\n constant which can directly be passed to wrap_socket.\n ","endLoc":532,"header":"def resolve_cert_reqs(candidate)","id":261,"name":"resolve_cert_reqs","nodeType":"Function","startLoc":512,"text":"def resolve_cert_reqs(candidate):\n \"\"\"\n Resolves the argument to a numeric constant, which can be passed to\n the wrap_socket function/method from the ssl module.\n Defaults to :data:`ssl.CERT_NONE`.\n If given a string it is assumed to be the name of the constant in the\n :mod:`ssl` module or its abbrevation.\n (So you can specify `REQUIRED` instead of `CERT_REQUIRED`.\n If it's neither `None` nor a string we assume it is already the numeric\n constant which can directly be passed to wrap_socket.\n \"\"\"\n if candidate is None:\n return CERT_NONE\n\n if isinstance(candidate, str):\n res = getattr(ssl, candidate, None)\n if res is None:\n res = getattr(ssl, 'CERT_' + candidate)\n return res\n\n return candidate"},{"attributeType":"int","col":4,"comment":"null","endLoc":12,"id":262,"name":"POLLIN","nodeType":"Attribute","startLoc":12,"text":"POLLIN"},{"attributeType":"int","col":0,"comment":"null","endLoc":55,"id":263,"name":"POLLIN","nodeType":"Attribute","startLoc":55,"text":"POLLIN"},{"col":0,"comment":"null","endLoc":32,"header":"def select(\n rlist: Iterable[Any], wlist: Iterable[Any], xlist: Iterable[Any], timeout: float | None = None, /\n) -> tuple[list[Any], list[Any], list[Any]]","id":264,"name":"select","nodeType":"Function","startLoc":30,"text":"def select(\n rlist: Iterable[Any], wlist: Iterable[Any], xlist: Iterable[Any], timeout: float | None = None, /\n) -> tuple[list[Any], list[Any], list[Any]]: ..."},{"col":0,"comment":"\n Wait until one or more file descriptors are ready for some kind of I/O.\n \n The first three arguments are iterables of file descriptors to be waited for:\n rlist -- wait until ready for reading\n wlist -- wait until ready for writing\n xlist -- wait for an \"exceptional condition\"\n If only one kind of condition is required, pass [] for the other lists.\n \n A file descriptor is either a socket or file object, or a small integer\n gotten from a fileno() method call on one of those.\n \n The optional 4th argument specifies a timeout in seconds; it may be\n a floating point number to specify fractions of seconds. If it is absent\n or None, the call will never time out.\n \n The return value is a tuple of three lists corresponding to the first three\n arguments; each contains the subset of the corresponding file descriptors\n that are ready.\n \n *** IMPORTANT NOTICE ***\n On Windows, only sockets are supported; on Unix, all file\n descriptors can be used.\n ","endLoc":100,"header":"def select(*args, **kwargs)","id":265,"name":"select","nodeType":"Function","startLoc":75,"text":"def select(*args, **kwargs): # real signature unknown\n \"\"\"\n Wait until one or more file descriptors are ready for some kind of I/O.\n \n The first three arguments are iterables of file descriptors to be waited for:\n rlist -- wait until ready for reading\n wlist -- wait until ready for writing\n xlist -- wait for an \"exceptional condition\"\n If only one kind of condition is required, pass [] for the other lists.\n \n A file descriptor is either a socket or file object, or a small integer\n gotten from a fileno() method call on one of those.\n \n The optional 4th argument specifies a timeout in seconds; it may be\n a floating point number to specify fractions of seconds. If it is absent\n or None, the call will never time out.\n \n The return value is a tuple of three lists corresponding to the first three\n arguments; each contains the subset of the corresponding file descriptors\n that are ready.\n \n *** IMPORTANT NOTICE ***\n On Windows, only sockets are supported; on Unix, all file\n descriptors can be used.\n \"\"\"\n pass"},{"col":4,"comment":"null","endLoc":61,"header":"def wrap_socket(\n sock: socket.socket,\n keyfile: StrOrBytesPath | None = None,\n certfile: StrOrBytesPath | None = None,\n server_side: bool = False,\n cert_reqs: int = ...,\n ssl_version: int = ...,\n ca_certs: str | None = None,\n do_handshake_on_connect: bool = True,\n suppress_ragged_eofs: bool = True,\n ciphers: str | None = None,\n ) -> SSLSocket","id":266,"name":"wrap_socket","nodeType":"Function","startLoc":50,"text":"def wrap_socket(\n sock: socket.socket,\n keyfile: StrOrBytesPath | None = None,\n certfile: StrOrBytesPath | None = None,\n server_side: bool = False,\n cert_reqs: int = ...,\n ssl_version: int = ...,\n ca_certs: str | None = None,\n do_handshake_on_connect: bool = True,\n suppress_ragged_eofs: bool = True,\n ciphers: str | None = None,\n ) -> SSLSocket: ..."},{"className":"CodingStateMachine","col":0,"comment":"null","endLoc":61,"id":267,"nodeType":"Class","startLoc":32,"text":"class CodingStateMachine:\n def __init__(self, sm):\n self._mModel = sm\n self._mCurrentBytePos = 0\n self._mCurrentCharLen = 0\n self.reset()\n\n def reset(self):\n self._mCurrentState = eStart\n\n def next_state(self, c):\n # for each byte we get its class\n # if it is first byte, we also get byte length\n # PY3K: aBuf is a byte stream, so c is an int, not a byte\n byteCls = self._mModel['classTable'][wrap_ord(c)]\n if self._mCurrentState == eStart:\n self._mCurrentBytePos = 0\n self._mCurrentCharLen = self._mModel['charLenTable'][byteCls]\n # from byte's class and stateTable, we get its next state\n curr_state = (self._mCurrentState * self._mModel['classFactor']\n + byteCls)\n self._mCurrentState = self._mModel['stateTable'][curr_state]\n self._mCurrentBytePos += 1\n return self._mCurrentState\n\n def get_current_charlen(self):\n return self._mCurrentCharLen\n\n def get_coding_state_machine(self):\n return self._mModel['name']"},{"col":4,"comment":"null","endLoc":37,"header":"def __init__(self, sm)","id":268,"name":"__init__","nodeType":"Function","startLoc":33,"text":"def __init__(self, sm):\n self._mModel = sm\n self._mCurrentBytePos = 0\n self._mCurrentCharLen = 0\n self.reset()"},{"col":0,"comment":"\n like resolve_cert_reqs\n ","endLoc":548,"header":"def resolve_ssl_version(candidate)","id":275,"name":"resolve_ssl_version","nodeType":"Function","startLoc":535,"text":"def resolve_ssl_version(candidate):\n \"\"\"\n like resolve_cert_reqs\n \"\"\"\n if candidate is None:\n return PROTOCOL_SSLv23\n\n if isinstance(candidate, str):\n res = getattr(ssl, candidate, None)\n if res is None:\n res = getattr(ssl, 'PROTOCOL_' + candidate)\n return res\n\n return candidate"},{"col":4,"comment":"null","endLoc":40,"header":"def reset(self)","id":276,"name":"reset","nodeType":"Function","startLoc":39,"text":"def reset(self):\n self._mCurrentState = eStart"},{"col":4,"comment":"null","endLoc":55,"header":"def next_state(self, c)","id":277,"name":"next_state","nodeType":"Function","startLoc":42,"text":"def next_state(self, c):\n # for each byte we get its class\n # if it is first byte, we also get byte length\n # PY3K: aBuf is a byte stream, so c is an int, not a byte\n byteCls = self._mModel['classTable'][wrap_ord(c)]\n if self._mCurrentState == eStart:\n self._mCurrentBytePos = 0\n self._mCurrentCharLen = self._mModel['charLenTable'][byteCls]\n # from byte's class and stateTable, we get its next state\n curr_state = (self._mCurrentState * self._mModel['classFactor']\n + byteCls)\n self._mCurrentState = self._mModel['stateTable'][curr_state]\n self._mCurrentBytePos += 1\n return self._mCurrentState"},{"attributeType":"VerifyMode","col":0,"comment":"null","endLoc":145,"id":278,"name":"CERT_NONE","nodeType":"Attribute","startLoc":145,"text":"CERT_NONE"},{"col":4,"comment":"null","endLoc":58,"header":"def get_current_charlen(self)","id":279,"name":"get_current_charlen","nodeType":"Function","startLoc":57,"text":"def get_current_charlen(self):\n return self._mCurrentCharLen"},{"col":4,"comment":"null","endLoc":61,"header":"def get_coding_state_machine(self)","id":280,"name":"get_coding_state_machine","nodeType":"Function","startLoc":60,"text":"def get_coding_state_machine(self):\n return self._mModel['name']"},{"attributeType":"null","col":8,"comment":"null","endLoc":40,"id":281,"name":"_mCurrentState","nodeType":"Attribute","startLoc":40,"text":"self._mCurrentState"},{"attributeType":"_SSLMethod","col":0,"comment":"null","endLoc":180,"id":282,"name":"PROTOCOL_SSLv23","nodeType":"Attribute","startLoc":180,"text":"PROTOCOL_SSLv23"},{"className":"SSLContext","col":0,"comment":"null","endLoc":451,"id":283,"nodeType":"Class","startLoc":382,"text":"class SSLContext:\n check_hostname: bool\n options: Options\n verify_flags: VerifyFlags\n verify_mode: VerifyMode\n @property\n def protocol(self) -> _SSLMethod: ...\n hostname_checks_common_name: bool\n maximum_version: TLSVersion\n minimum_version: TLSVersion\n sni_callback: Callable[[SSLObject, str, SSLContext], None | int] | None\n # The following two attributes have class-level defaults.\n # However, the docs explicitly state that it's OK to override these attributes on instances,\n # so making these ClassVars wouldn't be appropriate\n sslobject_class: type[SSLObject]\n sslsocket_class: type[SSLSocket]\n keylog_filename: str\n post_handshake_auth: bool\n if sys.version_info >= (3, 10):\n security_level: int\n if sys.version_info >= (3, 10):\n # Using the default (None) for the `protocol` parameter is deprecated,\n # but there isn't a good way of marking that in the stub unless/until PEP 702 is accepted\n def __new__(cls, protocol: int | None = None, *args: Any, **kwargs: Any) -> Self: ...\n else:\n def __new__(cls, protocol: int = ..., *args: Any, **kwargs: Any) -> Self: ...\n\n def cert_store_stats(self) -> dict[str, int]: ...\n def load_cert_chain(\n self, certfile: StrOrBytesPath, keyfile: StrOrBytesPath | None = None, password: _PasswordType | None = None\n ) -> None: ...\n def load_default_certs(self, purpose: Purpose = ...) -> None: ...\n def load_verify_locations(\n self,\n cafile: StrOrBytesPath | None = None,\n capath: StrOrBytesPath | None = None,\n cadata: str | ReadableBuffer | None = None,\n ) -> None: ...\n @overload\n def get_ca_certs(self, binary_form: Literal[False] = False) -> list[_PeerCertRetDictType]: ...\n @overload\n def get_ca_certs(self, binary_form: Literal[True]) -> list[bytes]: ...\n @overload\n def get_ca_certs(self, binary_form: bool = False) -> Any: ...\n def get_ciphers(self) -> list[_Cipher]: ...\n def set_default_verify_paths(self) -> None: ...\n def set_ciphers(self, cipherlist: str, /) -> None: ...\n def set_alpn_protocols(self, alpn_protocols: Iterable[str]) -> None: ...\n def set_npn_protocols(self, npn_protocols: Iterable[str]) -> None: ...\n def set_servername_callback(self, server_name_callback: _SrvnmeCbType | None) -> None: ...\n def load_dh_params(self, path: str, /) -> None: ...\n def set_ecdh_curve(self, name: str, /) -> None: ...\n def wrap_socket(\n self,\n sock: socket.socket,\n server_side: bool = False,\n do_handshake_on_connect: bool = True,\n suppress_ragged_eofs: bool = True,\n server_hostname: str | bytes | None = None,\n session: SSLSession | None = None,\n ) -> SSLSocket: ...\n def wrap_bio(\n self,\n incoming: MemoryBIO,\n outgoing: MemoryBIO,\n server_side: bool = False,\n server_hostname: str | bytes | None = None,\n session: SSLSession | None = None,\n ) -> SSLObject: ...\n def session_stats(self) -> dict[str, int]: ..."},{"attributeType":"null","col":8,"comment":"null","endLoc":36,"id":284,"name":"_mCurrentCharLen","nodeType":"Attribute","startLoc":36,"text":"self._mCurrentCharLen"},{"attributeType":"null","col":8,"comment":"null","endLoc":34,"id":285,"name":"_mModel","nodeType":"Attribute","startLoc":34,"text":"self._mModel"},{"col":4,"comment":"null","endLoc":388,"header":"@property\n def protocol(self) -> _SSLMethod","id":286,"name":"protocol","nodeType":"Function","startLoc":387,"text":"@property\n def protocol(self) -> _SSLMethod: ..."},{"col":8,"comment":"null","endLoc":407,"header":"def __new__(cls, protocol: int = ..., *args: Any, **kwargs: Any) -> Self","id":287,"name":"__new__","nodeType":"Function","startLoc":407,"text":"def __new__(cls, protocol: int = ..., *args: Any, **kwargs: Any) -> Self: ..."},{"col":4,"comment":"null","endLoc":409,"header":"def cert_store_stats(self) -> dict[str, int]","id":288,"name":"cert_store_stats","nodeType":"Function","startLoc":409,"text":"def cert_store_stats(self) -> dict[str, int]: ..."},{"col":4,"comment":"null","endLoc":412,"header":"def load_cert_chain(\n self, certfile: StrOrBytesPath, keyfile: StrOrBytesPath | None = None, password: _PasswordType | None = None\n ) -> None","id":289,"name":"load_cert_chain","nodeType":"Function","startLoc":410,"text":"def load_cert_chain(\n self, certfile: StrOrBytesPath, keyfile: StrOrBytesPath | None = None, password: _PasswordType | None = None\n ) -> None: ..."},{"col":4,"comment":"null","endLoc":413,"header":"def load_default_certs(self, purpose: Purpose = ...) -> None","id":290,"name":"load_default_certs","nodeType":"Function","startLoc":413,"text":"def load_default_certs(self, purpose: Purpose = ...) -> None: ..."},{"col":4,"comment":"null","endLoc":419,"header":"def load_verify_locations(\n self,\n cafile: StrOrBytesPath | None = None,\n capath: StrOrBytesPath | None = None,\n cadata: str | ReadableBuffer | None = None,\n ) -> None","id":291,"name":"load_verify_locations","nodeType":"Function","startLoc":414,"text":"def load_verify_locations(\n self,\n cafile: StrOrBytesPath | None = None,\n capath: StrOrBytesPath | None = None,\n cadata: str | ReadableBuffer | None = None,\n ) -> None: ..."},{"col":4,"comment":"null","endLoc":421,"header":"@overload\n def get_ca_certs(self, binary_form: Literal[False] = False) -> list[_PeerCertRetDictType]","id":292,"name":"get_ca_certs","nodeType":"Function","startLoc":420,"text":"@overload\n def get_ca_certs(self, binary_form: Literal[False] = False) -> list[_PeerCertRetDictType]: ..."},{"col":4,"comment":"null","endLoc":423,"header":"@overload\n def get_ca_certs(self, binary_form: Literal[True]) -> list[bytes]","id":293,"name":"get_ca_certs","nodeType":"Function","startLoc":422,"text":"@overload\n def get_ca_certs(self, binary_form: Literal[True]) -> list[bytes]: ..."},{"col":4,"comment":"null","endLoc":425,"header":"@overload\n def get_ca_certs(self, binary_form: bool = False) -> Any","id":294,"name":"get_ca_certs","nodeType":"Function","startLoc":424,"text":"@overload\n def get_ca_certs(self, binary_form: bool = False) -> Any: ..."},{"col":4,"comment":"null","endLoc":426,"header":"def get_ciphers(self) -> list[_Cipher]","id":295,"name":"get_ciphers","nodeType":"Function","startLoc":426,"text":"def get_ciphers(self) -> list[_Cipher]: ..."},{"col":4,"comment":"null","endLoc":427,"header":"def set_default_verify_paths(self) -> None","id":296,"name":"set_default_verify_paths","nodeType":"Function","startLoc":427,"text":"def set_default_verify_paths(self) -> None: ..."},{"col":4,"comment":"null","endLoc":428,"header":"def set_ciphers(self, cipherlist: str, /) -> None","id":297,"name":"set_ciphers","nodeType":"Function","startLoc":428,"text":"def set_ciphers(self, cipherlist: str, /) -> None: ..."},{"col":4,"comment":"null","endLoc":429,"header":"def set_alpn_protocols(self, alpn_protocols: Iterable[str]) -> None","id":298,"name":"set_alpn_protocols","nodeType":"Function","startLoc":429,"text":"def set_alpn_protocols(self, alpn_protocols: Iterable[str]) -> None: ..."},{"col":4,"comment":"null","endLoc":430,"header":"def set_npn_protocols(self, npn_protocols: Iterable[str]) -> None","id":299,"name":"set_npn_protocols","nodeType":"Function","startLoc":430,"text":"def set_npn_protocols(self, npn_protocols: Iterable[str]) -> None: ..."},{"col":4,"comment":"null","endLoc":431,"header":"def set_servername_callback(self, server_name_callback: _SrvnmeCbType | None) -> None","id":300,"name":"set_servername_callback","nodeType":"Function","startLoc":431,"text":"def set_servername_callback(self, server_name_callback: _SrvnmeCbType | None) -> None: ..."},{"col":4,"comment":"null","endLoc":432,"header":"def load_dh_params(self, path: str, /) -> None","id":301,"name":"load_dh_params","nodeType":"Function","startLoc":432,"text":"def load_dh_params(self, path: str, /) -> None: ..."},{"col":4,"comment":"null","endLoc":433,"header":"def set_ecdh_curve(self, name: str, /) -> None","id":302,"name":"set_ecdh_curve","nodeType":"Function","startLoc":433,"text":"def set_ecdh_curve(self, name: str, /) -> None: ..."},{"col":4,"comment":"null","endLoc":442,"header":"def wrap_socket(\n self,\n sock: socket.socket,\n server_side: bool = False,\n do_handshake_on_connect: bool = True,\n suppress_ragged_eofs: bool = True,\n server_hostname: str | bytes | None = None,\n session: SSLSession | None = None,\n ) -> SSLSocket","id":303,"name":"wrap_socket","nodeType":"Function","startLoc":434,"text":"def wrap_socket(\n self,\n sock: socket.socket,\n server_side: bool = False,\n do_handshake_on_connect: bool = True,\n suppress_ragged_eofs: bool = True,\n server_hostname: str | bytes | None = None,\n session: SSLSession | None = None,\n ) -> SSLSocket: ..."},{"col":4,"comment":"null","endLoc":450,"header":"def wrap_bio(\n self,\n incoming: MemoryBIO,\n outgoing: MemoryBIO,\n server_side: bool = False,\n server_hostname: str | bytes | None = None,\n session: SSLSession | None = None,\n ) -> SSLObject","id":304,"name":"wrap_bio","nodeType":"Function","startLoc":443,"text":"def wrap_bio(\n self,\n incoming: MemoryBIO,\n outgoing: MemoryBIO,\n server_side: bool = False,\n server_hostname: str | bytes | None = None,\n session: SSLSession | None = None,\n ) -> SSLObject: ..."},{"col":4,"comment":"null","endLoc":451,"header":"def session_stats(self) -> dict[str, int]","id":305,"name":"session_stats","nodeType":"Function","startLoc":451,"text":"def session_stats(self) -> dict[str, int]: ..."},{"attributeType":"bool","col":4,"comment":"null","endLoc":383,"id":306,"name":"check_hostname","nodeType":"Attribute","startLoc":383,"text":"check_hostname"},{"attributeType":"null","col":8,"comment":"null","endLoc":35,"id":307,"name":"_mCurrentBytePos","nodeType":"Attribute","startLoc":35,"text":"self._mCurrentBytePos"},{"attributeType":"Options","col":4,"comment":"null","endLoc":384,"id":308,"name":"options","nodeType":"Attribute","startLoc":384,"text":"options"},{"attributeType":"VerifyFlags","col":4,"comment":"null","endLoc":385,"id":309,"name":"verify_flags","nodeType":"Attribute","startLoc":385,"text":"verify_flags"},{"col":4,"comment":"null","endLoc":635,"header":"def ssl_wrap_socket(sock, keyfile=None, certfile=None, cert_reqs=None,\n ca_certs=None, server_hostname=None,\n ssl_version=None)","id":310,"name":"ssl_wrap_socket","nodeType":"Function","startLoc":630,"text":"def ssl_wrap_socket(sock, keyfile=None, certfile=None, cert_reqs=None,\n ca_certs=None, server_hostname=None,\n ssl_version=None):\n return wrap_socket(sock, keyfile=keyfile, certfile=certfile,\n ca_certs=ca_certs, cert_reqs=cert_reqs,\n ssl_version=ssl_version)"},{"attributeType":"VerifyMode","col":4,"comment":"null","endLoc":386,"id":311,"name":"verify_mode","nodeType":"Attribute","startLoc":386,"text":"verify_mode"},{"col":4,"comment":"\n All arguments except `server_hostname` have the same meaning as for\n :func:`ssl.wrap_socket`\n\n :param server_hostname:\n Hostname of the expected certificate\n ","endLoc":627,"header":"def ssl_wrap_socket(sock, keyfile=None, certfile=None, cert_reqs=None,\n ca_certs=None, server_hostname=None,\n ssl_version=None)","id":312,"name":"ssl_wrap_socket","nodeType":"Function","startLoc":603,"text":"def ssl_wrap_socket(sock, keyfile=None, certfile=None, cert_reqs=None,\n ca_certs=None, server_hostname=None,\n ssl_version=None):\n \"\"\"\n All arguments except `server_hostname` have the same meaning as for\n :func:`ssl.wrap_socket`\n\n :param server_hostname:\n Hostname of the expected certificate\n \"\"\"\n context = SSLContext(ssl_version)\n context.verify_mode = cert_reqs\n if ca_certs:\n try:\n context.load_verify_locations(ca_certs)\n # Py32 raises IOError\n # Py33 raises FileNotFoundError\n except Exception as e: # Reraise as SSLError\n raise SSLError(e)\n if certfile:\n # FIXME: This block needs a test.\n context.load_cert_chain(certfile, keyfile)\n if HAS_SNI: # Platform-specific: OpenSSL with enabled SNI\n return context.wrap_socket(sock, server_hostname=server_hostname)\n return context.wrap_socket(sock)"},{"attributeType":"bool","col":4,"comment":"null","endLoc":389,"id":313,"name":"hostname_checks_common_name","nodeType":"Attribute","startLoc":389,"text":"hostname_checks_common_name"},{"attributeType":"TLSVersion","col":4,"comment":"null","endLoc":390,"id":314,"name":"maximum_version","nodeType":"Attribute","startLoc":390,"text":"maximum_version"},{"className":"EUCTWDistributionAnalysis","col":0,"comment":"null","endLoc":127,"id":315,"nodeType":"Class","startLoc":111,"text":"class EUCTWDistributionAnalysis(CharDistributionAnalysis):\n def __init__(self):\n CharDistributionAnalysis.__init__(self)\n self._mCharToFreqOrder = EUCTWCharToFreqOrder\n self._mTableSize = EUCTW_TABLE_SIZE\n self._mTypicalDistributionRatio = EUCTW_TYPICAL_DISTRIBUTION_RATIO\n\n def get_order(self, aBuf):\n # for euc-TW encoding, we are interested\n # first byte range: 0xc4 -- 0xfe\n # second byte range: 0xa1 -- 0xfe\n # no validation needed here. State machine has done that\n first_char = wrap_ord(aBuf[0])\n if first_char >= 0xC4:\n return 94 * (first_char - 0xC4) + wrap_ord(aBuf[1]) - 0xA1\n else:\n return -1"},{"attributeType":"TLSVersion","col":4,"comment":"null","endLoc":391,"id":316,"name":"minimum_version","nodeType":"Attribute","startLoc":391,"text":"minimum_version"},{"attributeType":"(SSLObject, str, SSLContext) -> None | int | None","col":4,"comment":"null","endLoc":392,"id":317,"name":"sni_callback","nodeType":"Attribute","startLoc":392,"text":"sni_callback"},{"className":"CharDistributionAnalysis","col":0,"comment":"null","endLoc":108,"id":322,"nodeType":"Class","startLoc":46,"text":"class CharDistributionAnalysis:\n def __init__(self):\n # Mapping table to get frequency order from char order (get from\n # GetOrder())\n self._mCharToFreqOrder = None\n self._mTableSize = None # Size of above table\n # This is a constant value which varies from language to language,\n # used in calculating confidence. See\n # http://www.mozilla.org/projects/intl/UniversalCharsetDetection.html\n # for further detail.\n self._mTypicalDistributionRatio = None\n self.reset()\n\n def reset(self):\n \"\"\"reset analyser, clear any state\"\"\"\n # If this flag is set to True, detection is done and conclusion has\n # been made\n self._mDone = False\n self._mTotalChars = 0 # Total characters encountered\n # The number of characters whose frequency order is less than 512\n self._mFreqChars = 0\n\n def feed(self, aBuf, aCharLen):\n \"\"\"feed a character with known length\"\"\"\n if aCharLen == 2:\n # we only care about 2-bytes character in our distribution analysis\n order = self.get_order(aBuf)\n else:\n order = -1\n if order >= 0:\n self._mTotalChars += 1\n # order is valid\n if order < self._mTableSize:\n if 512 > self._mCharToFreqOrder[order]:\n self._mFreqChars += 1\n\n def get_confidence(self):\n \"\"\"return confidence based on existing data\"\"\"\n # if we didn't receive any character in our consideration range,\n # return negative answer\n if self._mTotalChars <= 0 or self._mFreqChars <= MINIMUM_DATA_THRESHOLD:\n return SURE_NO\n\n if self._mTotalChars != self._mFreqChars:\n r = (self._mFreqChars / ((self._mTotalChars - self._mFreqChars)\n * self._mTypicalDistributionRatio))\n if r < SURE_YES:\n return r\n\n # normalize confidence (we don't want to be 100% sure)\n return SURE_YES\n\n def got_enough_data(self):\n # It is not necessary to receive all data to draw conclusion.\n # For charset detection, certain amount of data is enough\n return self._mTotalChars > ENOUGH_DATA_THRESHOLD\n\n def get_order(self, aBuf):\n # We do not handle characters based on the original encoding string,\n # but convert this encoding string to a number, here called order.\n # This allows multiple encodings of a language to share one frequency\n # table.\n return -1"},{"col":4,"comment":"null","endLoc":57,"header":"def __init__(self)","id":323,"name":"__init__","nodeType":"Function","startLoc":47,"text":"def __init__(self):\n # Mapping table to get frequency order from char order (get from\n # GetOrder())\n self._mCharToFreqOrder = None\n self._mTableSize = None # Size of above table\n # This is a constant value which varies from language to language,\n # used in calculating confidence. See\n # http://www.mozilla.org/projects/intl/UniversalCharsetDetection.html\n # for further detail.\n self._mTypicalDistributionRatio = None\n self.reset()"},{"col":4,"comment":"null","endLoc":28,"header":"def __getattr__(self, name)","id":324,"name":"__getattr__","nodeType":"Function","startLoc":27,"text":"def __getattr__(self, name):\n return getattr(self._obj, name)"},{"col":4,"comment":"null","endLoc":43,"header":"def decompress(self, data)","id":325,"name":"decompress","nodeType":"Function","startLoc":30,"text":"def decompress(self, data):\n if not self._first_try:\n return self._obj.decompress(data)\n\n self._data += data\n try:\n return self._obj.decompress(data)\n except zlib.error:\n self._first_try = False\n self._obj = zlib.decompressobj(-zlib.MAX_WBITS)\n try:\n return self.decompress(self._data)\n finally:\n self._data = None"},{"col":4,"comment":"null","endLoc":1067,"header":"@overload\n def __init__(self) -> None","id":326,"name":"__init__","nodeType":"Function","startLoc":1066,"text":"@overload\n def __init__(self) -> None: ..."},{"col":4,"comment":"null","endLoc":1069,"header":"@overload\n def __init__(self: dict[str, _VT], **kwargs: _VT) -> None","id":327,"name":"__init__","nodeType":"Function","startLoc":1068,"text":"@overload\n def __init__(self: dict[str, _VT], **kwargs: _VT) -> None: ..."},{"col":4,"comment":"null","endLoc":1071,"header":"@overload\n def __init__(self, __map: SupportsKeysAndGetItem[_KT, _VT]) -> None","id":328,"name":"__init__","nodeType":"Function","startLoc":1070,"text":"@overload\n def __init__(self, __map: SupportsKeysAndGetItem[_KT, _VT]) -> None: ..."},{"col":4,"comment":"null","endLoc":1073,"header":"@overload\n def __init__(self: dict[str, _VT], __map: SupportsKeysAndGetItem[str, _VT], **kwargs: _VT) -> None","id":329,"name":"__init__","nodeType":"Function","startLoc":1072,"text":"@overload\n def __init__(self: dict[str, _VT], __map: SupportsKeysAndGetItem[str, _VT], **kwargs: _VT) -> None: ..."},{"col":4,"comment":"null","endLoc":1075,"header":"@overload\n def __init__(self, __iterable: Iterable[tuple[_KT, _VT]]) -> None","id":330,"name":"__init__","nodeType":"Function","startLoc":1074,"text":"@overload\n def __init__(self, __iterable: Iterable[tuple[_KT, _VT]]) -> None: ..."},{"col":4,"comment":"null","endLoc":1077,"header":"@overload\n def __init__(self: dict[str, _VT], __iterable: Iterable[tuple[str, _VT]], **kwargs: _VT) -> None","id":331,"name":"__init__","nodeType":"Function","startLoc":1076,"text":"@overload\n def __init__(self: dict[str, _VT], __iterable: Iterable[tuple[str, _VT]], **kwargs: _VT) -> None: ..."},{"col":4,"comment":"null","endLoc":1081,"header":"@overload\n def __init__(self: dict[str, str], __iterable: Iterable[list[str]]) -> None","id":332,"name":"__init__","nodeType":"Function","startLoc":1080,"text":"@overload\n def __init__(self: dict[str, str], __iterable: Iterable[list[str]]) -> None: ..."},{"col":4,"comment":"null","endLoc":1083,"header":"@overload\n def __init__(self: dict[bytes, bytes], __iterable: Iterable[list[bytes]]) -> None","id":333,"name":"__init__","nodeType":"Function","startLoc":1082,"text":"@overload\n def __init__(self: dict[bytes, bytes], __iterable: Iterable[list[bytes]]) -> None: ..."},{"col":4,"comment":"reset analyser, clear any state","endLoc":66,"header":"def reset(self)","id":334,"name":"reset","nodeType":"Function","startLoc":59,"text":"def reset(self):\n \"\"\"reset analyser, clear any state\"\"\"\n # If this flag is set to True, detection is done and conclusion has\n # been made\n self._mDone = False\n self._mTotalChars = 0 # Total characters encountered\n # The number of characters whose frequency order is less than 512\n self._mFreqChars = 0"},{"col":4,"comment":"feed a character with known length","endLoc":80,"header":"def feed(self, aBuf, aCharLen)","id":336,"name":"feed","nodeType":"Function","startLoc":68,"text":"def feed(self, aBuf, aCharLen):\n \"\"\"feed a character with known length\"\"\"\n if aCharLen == 2:\n # we only care about 2-bytes character in our distribution analysis\n order = self.get_order(aBuf)\n else:\n order = -1\n if order >= 0:\n self._mTotalChars += 1\n # order is valid\n if order < self._mTableSize:\n if 512 > self._mCharToFreqOrder[order]:\n self._mFreqChars += 1"},{"attributeType":"int","col":8,"comment":"null","endLoc":103,"id":337,"name":"_mLastCharClass","nodeType":"Attribute","startLoc":103,"text":"self._mLastCharClass"},{"attributeType":"SSLObject","col":4,"comment":"null","endLoc":396,"id":338,"name":"sslobject_class","nodeType":"Attribute","startLoc":396,"text":"sslobject_class"},{"col":4,"comment":"null","endLoc":108,"header":"def get_order(self, aBuf)","id":339,"name":"get_order","nodeType":"Function","startLoc":103,"text":"def get_order(self, aBuf):\n # We do not handle characters based on the original encoding string,\n # but convert this encoding string to a number, here called order.\n # This allows multiple encodings of a language to share one frequency\n # table.\n return -1"},{"col":4,"comment":"return confidence based on existing data","endLoc":96,"header":"def get_confidence(self)","id":340,"name":"get_confidence","nodeType":"Function","startLoc":82,"text":"def get_confidence(self):\n \"\"\"return confidence based on existing data\"\"\"\n # if we didn't receive any character in our consideration range,\n # return negative answer\n if self._mTotalChars <= 0 or self._mFreqChars <= MINIMUM_DATA_THRESHOLD:\n return SURE_NO\n\n if self._mTotalChars != self._mFreqChars:\n r = (self._mFreqChars / ((self._mTotalChars - self._mFreqChars)\n * self._mTypicalDistributionRatio))\n if r < SURE_YES:\n return r\n\n # normalize confidence (we don't want to be 100% sure)\n return SURE_YES"},{"col":4,"comment":"null","endLoc":101,"header":"def got_enough_data(self)","id":341,"name":"got_enough_data","nodeType":"Function","startLoc":98,"text":"def got_enough_data(self):\n # It is not necessary to receive all data to draw conclusion.\n # For charset detection, certain amount of data is enough\n return self._mTotalChars > ENOUGH_DATA_THRESHOLD"},{"attributeType":"null","col":8,"comment":"null","endLoc":56,"id":342,"name":"_mTypicalDistributionRatio","nodeType":"Attribute","startLoc":56,"text":"self._mTypicalDistributionRatio"},{"attributeType":"list","col":8,"comment":"null","endLoc":104,"id":343,"name":"_mFreqCounter","nodeType":"Attribute","startLoc":104,"text":"self._mFreqCounter"},{"attributeType":"null","col":16,"comment":"null","endLoc":117,"id":344,"name":"_mState","nodeType":"Attribute","startLoc":117,"text":"self._mState"},{"attributeType":"null","col":8,"comment":"null","endLoc":50,"id":345,"name":"_mCharToFreqOrder","nodeType":"Attribute","startLoc":50,"text":"self._mCharToFreqOrder"},{"attributeType":"SSLSocket","col":4,"comment":"null","endLoc":397,"id":346,"name":"sslsocket_class","nodeType":"Attribute","startLoc":397,"text":"sslsocket_class"},{"attributeType":"null","col":8,"comment":"null","endLoc":64,"id":347,"name":"_mTotalChars","nodeType":"Attribute","startLoc":64,"text":"self._mTotalChars"},{"attributeType":"null","col":8,"comment":"null","endLoc":63,"id":348,"name":"_mDone","nodeType":"Attribute","startLoc":63,"text":"self._mDone"},{"attributeType":"int","col":0,"comment":"null","endLoc":33,"id":349,"name":"FREQ_CAT_NUM","nodeType":"Attribute","startLoc":33,"text":"FREQ_CAT_NUM"},{"attributeType":"int","col":0,"comment":"null","endLoc":35,"id":350,"name":"UDF","nodeType":"Attribute","startLoc":35,"text":"UDF"},{"attributeType":"null","col":8,"comment":"null","endLoc":66,"id":351,"name":"_mFreqChars","nodeType":"Attribute","startLoc":66,"text":"self._mFreqChars"},{"attributeType":"int","col":0,"comment":"null","endLoc":36,"id":352,"name":"OTH","nodeType":"Attribute","startLoc":36,"text":"OTH"},{"attributeType":"int","col":0,"comment":"null","endLoc":37,"id":353,"name":"ASC","nodeType":"Attribute","startLoc":37,"text":"ASC"},{"attributeType":"int","col":0,"comment":"null","endLoc":38,"id":354,"name":"ASS","nodeType":"Attribute","startLoc":38,"text":"ASS"},{"attributeType":"int","col":0,"comment":"null","endLoc":39,"id":355,"name":"ACV","nodeType":"Attribute","startLoc":39,"text":"ACV"},{"attributeType":"int","col":0,"comment":"null","endLoc":40,"id":356,"name":"ACO","nodeType":"Attribute","startLoc":40,"text":"ACO"},{"attributeType":"int","col":0,"comment":"null","endLoc":41,"id":357,"name":"ASV","nodeType":"Attribute","startLoc":41,"text":"ASV"},{"attributeType":"int","col":0,"comment":"null","endLoc":42,"id":358,"name":"ASO","nodeType":"Attribute","startLoc":42,"text":"ASO"},{"attributeType":"int","col":0,"comment":"null","endLoc":43,"id":359,"name":"CLASS_NUM","nodeType":"Attribute","startLoc":43,"text":"CLASS_NUM"},{"attributeType":"null","col":8,"comment":"null","endLoc":51,"id":360,"name":"_mTableSize","nodeType":"Attribute","startLoc":51,"text":"self._mTableSize"},{"attributeType":"(int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int)","col":0,"comment":"null","endLoc":45,"id":361,"name":"Latin1_CharToClass","nodeType":"Attribute","startLoc":45,"text":"Latin1_CharToClass"},{"col":0,"comment":"\n Checks if given fingerprint matches the supplied certificate.\n\n :param cert:\n Certificate as bytes object.\n :param fingerprint:\n Fingerprint as string of hexdigits, can be interspersed by colons.\n ","endLoc":585,"header":"def assert_fingerprint(cert, fingerprint)","id":362,"name":"assert_fingerprint","nodeType":"Function","startLoc":551,"text":"def assert_fingerprint(cert, fingerprint):\n \"\"\"\n Checks if given fingerprint matches the supplied certificate.\n\n :param cert:\n Certificate as bytes object.\n :param fingerprint:\n Fingerprint as string of hexdigits, can be interspersed by colons.\n \"\"\"\n\n # Maps the length of a digest to a possible hash function producing\n # this digest.\n hashfunc_map = {\n 16: md5,\n 20: sha1\n }\n\n fingerprint = fingerprint.replace(':', '').lower()\n\n digest_length, rest = divmod(len(fingerprint), 2)\n\n if rest or digest_length not in hashfunc_map:\n raise SSLError('Fingerprint is of invalid length.')\n\n # We need encode() here for py32; works on py2 and p33.\n fingerprint_bytes = unhexlify(fingerprint.encode())\n\n hashfunc = hashfunc_map[digest_length]\n\n cert_digest = hashfunc(cert).digest()\n\n if not cert_digest == fingerprint_bytes:\n raise SSLError('Fingerprints did not match. Expected \"{0}\", got \"{1}\".'\n .format(hexlify(fingerprint_bytes),\n hexlify(cert_digest)))"},{"col":4,"comment":"null","endLoc":116,"header":"def __init__(self)","id":363,"name":"__init__","nodeType":"Function","startLoc":112,"text":"def __init__(self):\n CharDistributionAnalysis.__init__(self)\n self._mCharToFreqOrder = EUCTWCharToFreqOrder\n self._mTableSize = EUCTW_TABLE_SIZE\n self._mTypicalDistributionRatio = EUCTW_TYPICAL_DISTRIBUTION_RATIO"},{"col":4,"comment":"null","endLoc":127,"header":"def get_order(self, aBuf)","id":364,"name":"get_order","nodeType":"Function","startLoc":118,"text":"def get_order(self, aBuf):\n # for euc-TW encoding, we are interested\n # first byte range: 0xc4 -- 0xfe\n # second byte range: 0xa1 -- 0xfe\n # no validation needed here. State machine has done that\n first_char = wrap_ord(aBuf[0])\n if first_char >= 0xC4:\n return 94 * (first_char - 0xC4) + wrap_ord(aBuf[1]) - 0xA1\n else:\n return -1"},{"attributeType":"str","col":4,"comment":"null","endLoc":398,"id":365,"name":"keylog_filename","nodeType":"Attribute","startLoc":398,"text":"keylog_filename"},{"attributeType":"bool","col":4,"comment":"null","endLoc":399,"id":366,"name":"post_handshake_auth","nodeType":"Attribute","startLoc":399,"text":"post_handshake_auth"},{"attributeType":"bool","col":0,"comment":"null","endLoc":240,"id":369,"name":"HAS_SNI","nodeType":"Attribute","startLoc":240,"text":"HAS_SNI"},{"attributeType":"null","col":8,"comment":"null","endLoc":116,"id":370,"name":"_mTypicalDistributionRatio","nodeType":"Attribute","startLoc":116,"text":"self._mTypicalDistributionRatio"},{"className":"Timeout","col":0,"comment":"\n Utility object for storing timeout values.\n\n Example usage:\n\n .. code-block:: python\n\n timeout = urllib3.util.Timeout(connect=2.0, read=7.0)\n pool = HTTPConnectionPool('www.google.com', 80, timeout=timeout)\n pool.request(...) # Etc, etc\n\n :param connect:\n The maximum amount of time to wait for a connection attempt to a server\n to succeed. Omitting the parameter will default the connect timeout to\n the system default, probably `the global default timeout in socket.py\n `_.\n None will set an infinite timeout for connection attempts.\n\n :type connect: integer, float, or None\n\n :param read:\n The maximum amount of time to wait between consecutive\n read operations for a response from the server. Omitting\n the parameter will default the read timeout to the system\n default, probably `the global default timeout in socket.py\n `_.\n None will set an infinite timeout.\n\n :type read: integer, float, or None\n\n :param total:\n This combines the connect and read timeouts into one; the read timeout\n will be set to the time leftover from the connect attempt. In the\n event that both a connect timeout and a total are specified, or a read\n timeout and a total are specified, the shorter timeout will be applied.\n\n Defaults to None.\n\n :type total: integer, float, or None\n\n .. note::\n\n Many factors can affect the total amount of time for urllib3 to return\n an HTTP response. Specifically, Python's DNS resolver does not obey the\n timeout specified on the socket. Other factors that can affect total\n request time include high CPU load, high swap, the program running at a\n low priority level, or other behaviors. The observed running time for\n urllib3 to return a response may be greater than the value passed to\n `total`.\n\n In addition, the read and total timeouts only measure the time between\n read operations on the socket connecting the client and the server,\n not the total amount of time for the request to return a complete\n response. For most requests, the timeout is raised because the server\n has not sent the first byte in the specified time. This is not always\n the case; if a server streams one byte every fifteen seconds, a timeout\n of 20 seconds will not ever trigger, even though the request will\n take several minutes to complete.\n\n If your goal is to cut off any request after a set amount of wall clock\n time, consider having a second \"watcher\" thread to cut off a slow\n request.\n ","endLoc":266,"id":371,"nodeType":"Class","startLoc":51,"text":"class Timeout(object):\n \"\"\"\n Utility object for storing timeout values.\n\n Example usage:\n\n .. code-block:: python\n\n timeout = urllib3.util.Timeout(connect=2.0, read=7.0)\n pool = HTTPConnectionPool('www.google.com', 80, timeout=timeout)\n pool.request(...) # Etc, etc\n\n :param connect:\n The maximum amount of time to wait for a connection attempt to a server\n to succeed. Omitting the parameter will default the connect timeout to\n the system default, probably `the global default timeout in socket.py\n `_.\n None will set an infinite timeout for connection attempts.\n\n :type connect: integer, float, or None\n\n :param read:\n The maximum amount of time to wait between consecutive\n read operations for a response from the server. Omitting\n the parameter will default the read timeout to the system\n default, probably `the global default timeout in socket.py\n `_.\n None will set an infinite timeout.\n\n :type read: integer, float, or None\n\n :param total:\n This combines the connect and read timeouts into one; the read timeout\n will be set to the time leftover from the connect attempt. In the\n event that both a connect timeout and a total are specified, or a read\n timeout and a total are specified, the shorter timeout will be applied.\n\n Defaults to None.\n\n :type total: integer, float, or None\n\n .. note::\n\n Many factors can affect the total amount of time for urllib3 to return\n an HTTP response. Specifically, Python's DNS resolver does not obey the\n timeout specified on the socket. Other factors that can affect total\n request time include high CPU load, high swap, the program running at a\n low priority level, or other behaviors. The observed running time for\n urllib3 to return a response may be greater than the value passed to\n `total`.\n\n In addition, the read and total timeouts only measure the time between\n read operations on the socket connecting the client and the server,\n not the total amount of time for the request to return a complete\n response. For most requests, the timeout is raised because the server\n has not sent the first byte in the specified time. This is not always\n the case; if a server streams one byte every fifteen seconds, a timeout\n of 20 seconds will not ever trigger, even though the request will\n take several minutes to complete.\n\n If your goal is to cut off any request after a set amount of wall clock\n time, consider having a second \"watcher\" thread to cut off a slow\n request.\n \"\"\"\n\n #: A sentinel object representing the default timeout value\n DEFAULT_TIMEOUT = _GLOBAL_DEFAULT_TIMEOUT\n\n def __init__(self, total=None, connect=_Default, read=_Default):\n self._connect = self._validate_timeout(connect, 'connect')\n self._read = self._validate_timeout(read, 'read')\n self.total = self._validate_timeout(total, 'total')\n self._start_connect = None\n\n def __str__(self):\n return '%s(connect=%r, read=%r, total=%r)' % (\n type(self).__name__, self._connect, self._read, self.total)\n\n\n @classmethod\n def _validate_timeout(cls, value, name):\n \"\"\" Check that a timeout attribute is valid\n\n :param value: The timeout value to validate\n :param name: The name of the timeout attribute to validate. This is used\n for clear error messages\n :return: the value\n :raises ValueError: if the type is not an integer or a float, or if it\n is a numeric value less than zero\n \"\"\"\n if value is _Default:\n return cls.DEFAULT_TIMEOUT\n\n if value is None or value is cls.DEFAULT_TIMEOUT:\n return value\n\n try:\n float(value)\n except (TypeError, ValueError):\n raise ValueError(\"Timeout value %s was %s, but it must be an \"\n \"int or float.\" % (name, value))\n\n try:\n if value < 0:\n raise ValueError(\"Attempted to set %s timeout to %s, but the \"\n \"timeout cannot be set to a value less \"\n \"than 0.\" % (name, value))\n except TypeError: # Python 3\n raise ValueError(\"Timeout value %s was %s, but it must be an \"\n \"int or float.\" % (name, value))\n\n return value\n\n @classmethod\n def from_float(cls, timeout):\n \"\"\" Create a new Timeout from a legacy timeout value.\n\n The timeout value used by httplib.py sets the same timeout on the\n connect(), and recv() socket requests. This creates a :class:`Timeout`\n object that sets the individual timeouts to the ``timeout`` value passed\n to this function.\n\n :param timeout: The legacy timeout value\n :type timeout: integer, float, sentinel default object, or None\n :return: a Timeout object\n :rtype: :class:`Timeout`\n \"\"\"\n return Timeout(read=timeout, connect=timeout)\n\n def clone(self):\n \"\"\" Create a copy of the timeout object\n\n Timeout properties are stored per-pool but each request needs a fresh\n Timeout object to ensure each one has its own start/stop configured.\n\n :return: a copy of the timeout object\n :rtype: :class:`Timeout`\n \"\"\"\n # We can't use copy.deepcopy because that will also create a new object\n # for _GLOBAL_DEFAULT_TIMEOUT, which socket.py uses as a sentinel to\n # detect the user default.\n return Timeout(connect=self._connect, read=self._read,\n total=self.total)\n\n def start_connect(self):\n \"\"\" Start the timeout clock, used during a connect() attempt\n\n :raises urllib3.exceptions.TimeoutStateError: if you attempt\n to start a timer that has been started already.\n \"\"\"\n if self._start_connect is not None:\n raise TimeoutStateError(\"Timeout timer has already been started.\")\n self._start_connect = current_time()\n return self._start_connect\n\n def get_connect_duration(self):\n \"\"\" Gets the time elapsed since the call to :meth:`start_connect`.\n\n :return: the elapsed time\n :rtype: float\n :raises urllib3.exceptions.TimeoutStateError: if you attempt\n to get duration for a timer that hasn't been started.\n \"\"\"\n if self._start_connect is None:\n raise TimeoutStateError(\"Can't get connect duration for timer \"\n \"that has not started.\")\n return current_time() - self._start_connect\n\n @property\n def connect_timeout(self):\n \"\"\" Get the value to use when setting a connection timeout.\n\n This will be a positive float or integer, the value None\n (never timeout), or the default system timeout.\n\n :return: the connect timeout\n :rtype: int, float, :attr:`Timeout.DEFAULT_TIMEOUT` or None\n \"\"\"\n if self.total is None:\n return self._connect\n\n if self._connect is None or self._connect is self.DEFAULT_TIMEOUT:\n return self.total\n\n return min(self._connect, self.total)\n\n @property\n def read_timeout(self):\n \"\"\" Get the value for the read timeout.\n\n This assumes some time has elapsed in the connection timeout and\n computes the read timeout appropriately.\n\n If self.total is set, the read timeout is dependent on the amount of\n time taken by the connect timeout. If the connection time has not been\n established, a :exc:`~urllib3.exceptions.TimeoutStateError` will be\n raised.\n\n :return: the value to use for the read timeout\n :rtype: int, float, :attr:`Timeout.DEFAULT_TIMEOUT` or None\n :raises urllib3.exceptions.TimeoutStateError: If :meth:`start_connect`\n has not yet been called on this object.\n \"\"\"\n if (self.total is not None and\n self.total is not self.DEFAULT_TIMEOUT and\n self._read is not None and\n self._read is not self.DEFAULT_TIMEOUT):\n # in case the connect timeout has not yet been established.\n if self._start_connect is None:\n return self._read\n return max(0, min(self.total - self.get_connect_duration(),\n self._read))\n elif self.total is not None and self.total is not self.DEFAULT_TIMEOUT:\n return max(0, self.total - self.get_connect_duration())\n else:\n return self._read"},{"col":4,"comment":"null","endLoc":123,"header":"def __init__(self, total=None, connect=_Default, read=_Default)","id":372,"name":"__init__","nodeType":"Function","startLoc":119,"text":"def __init__(self, total=None, connect=_Default, read=_Default):\n self._connect = self._validate_timeout(connect, 'connect')\n self._read = self._validate_timeout(read, 'read')\n self.total = self._validate_timeout(total, 'total')\n self._start_connect = None"},{"fileName":"sessions.py","filePath":"requests","id":373,"nodeType":"File","text":"# -*- coding: utf-8 -*-\n\n\"\"\"\nrequests.session\n~~~~~~~~~~~~~~~~\n\nThis module provides a Session object to manage and persist settings across\nrequests (cookies, auth, proxies).\n\n\"\"\"\nimport os\nfrom collections import Mapping\nfrom datetime import datetime\n\nfrom .compat import cookielib, OrderedDict, urljoin, urlparse, urlunparse\nfrom .cookies import cookiejar_from_dict, extract_cookies_to_jar, RequestsCookieJar\nfrom .models import Request, PreparedRequest\nfrom .hooks import default_hooks, dispatch_hook\nfrom .utils import to_key_val_list, default_headers\nfrom .exceptions import TooManyRedirects, InvalidSchema\nfrom .structures import CaseInsensitiveDict\n\nfrom .adapters import HTTPAdapter\n\nfrom .utils import requote_uri, get_environ_proxies, get_netrc_auth\n\nfrom .status_codes import codes\nREDIRECT_STATI = (\n codes.moved, # 301\n codes.found, # 302\n codes.other, # 303\n codes.temporary_moved, # 307\n)\nDEFAULT_REDIRECT_LIMIT = 30\n\n\ndef merge_setting(request_setting, session_setting, dict_class=OrderedDict):\n \"\"\"\n Determines appropriate setting for a given request, taking into account the\n explicit setting on that request, and the setting in the session. If a\n setting is a dictionary, they will be merged together using `dict_class`\n \"\"\"\n\n if session_setting is None:\n return request_setting\n\n if request_setting is None:\n return session_setting\n\n # Bypass if not a dictionary (e.g. verify)\n if not (\n isinstance(session_setting, Mapping) and\n isinstance(request_setting, Mapping)\n ):\n return request_setting\n\n merged_setting = dict_class(to_key_val_list(session_setting))\n merged_setting.update(to_key_val_list(request_setting))\n\n # Remove keys that are set to None.\n for (k, v) in request_setting.items():\n if v is None:\n del merged_setting[k]\n\n return merged_setting\n\n\nclass SessionRedirectMixin(object):\n def resolve_redirects(self, resp, req, stream=False, timeout=None,\n verify=True, cert=None, proxies=None):\n \"\"\"Receives a Response. Returns a generator of Responses.\"\"\"\n\n i = 0\n\n # ((resp.status_code is codes.see_other))\n while ('location' in resp.headers and resp.status_code in REDIRECT_STATI):\n prepared_request = req.copy()\n\n resp.content # Consume socket so it can be released\n\n if i >= self.max_redirects:\n raise TooManyRedirects('Exceeded %s redirects.' % self.max_redirects)\n\n # Release the connection back into the pool.\n resp.close()\n\n url = resp.headers['location']\n method = req.method\n\n # Handle redirection without scheme (see: RFC 1808 Section 4)\n if url.startswith('//'):\n parsed_rurl = urlparse(resp.url)\n url = '%s:%s' % (parsed_rurl.scheme, url)\n\n # The scheme should be lower case...\n parsed = urlparse(url)\n parsed = (parsed.scheme.lower(), parsed.netloc, parsed.path,\n parsed.params, parsed.query, parsed.fragment)\n url = urlunparse(parsed)\n\n # Facilitate non-RFC2616-compliant 'location' headers\n # (e.g. '/path/to/resource' instead of 'http://domain.tld/path/to/resource')\n # Compliant with RFC3986, we percent encode the url.\n if not urlparse(url).netloc:\n url = urljoin(resp.url, requote_uri(url))\n else:\n url = requote_uri(url)\n\n prepared_request.url = url\n\n # http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3.4\n if (resp.status_code == codes.see_other and\n method != 'HEAD'):\n method = 'GET'\n\n # Do what the browsers do, despite standards...\n if (resp.status_code in (codes.moved, codes.found) and\n method not in ('GET', 'HEAD')):\n method = 'GET'\n\n prepared_request.method = method\n\n # https://github.com/kennethreitz/requests/issues/1084\n if resp.status_code not in (codes.temporary, codes.resume):\n if 'Content-Length' in prepared_request.headers:\n del prepared_request.headers['Content-Length']\n\n prepared_request.body = None\n\n headers = prepared_request.headers\n try:\n del headers['Cookie']\n except KeyError:\n pass\n\n prepared_request.prepare_cookies(self.cookies)\n\n resp = self.send(\n prepared_request,\n stream=stream,\n timeout=timeout,\n verify=verify,\n cert=cert,\n proxies=proxies,\n allow_redirects=False,\n )\n\n extract_cookies_to_jar(self.cookies, prepared_request, resp.raw)\n\n i += 1\n yield resp\n\n\nclass Session(SessionRedirectMixin):\n \"\"\"A Requests session.\n\n Provides cookie persistence, connection-pooling, and configuration.\n\n Basic Usage::\n\n >>> import requests\n >>> s = requests.Session()\n >>> s.get('http://httpbin.org/get')\n 200\n \"\"\"\n\n __attrs__ = [\n 'headers', 'cookies', 'auth', 'timeout', 'proxies', 'hooks',\n 'params', 'verify', 'cert', 'prefetch', 'adapters', 'stream',\n 'trust_env', 'max_redirects']\n\n def __init__(self):\n\n #: A case-insensitive dictionary of headers to be sent on each\n #: :class:`Request ` sent from this\n #: :class:`Session `.\n self.headers = default_headers()\n\n #: Default Authentication tuple or object to attach to\n #: :class:`Request `.\n self.auth = None\n\n #: Dictionary mapping protocol to the URL of the proxy (e.g.\n #: {'http': 'foo.bar:3128'}) to be used on each\n #: :class:`Request `.\n self.proxies = {}\n\n #: Event-handling hooks.\n self.hooks = default_hooks()\n\n #: Dictionary of querystring data to attach to each\n #: :class:`Request `. The dictionary values may be lists for\n #: representing multivalued query parameters.\n self.params = {}\n\n #: Stream response content default.\n self.stream = False\n\n #: SSL Verification default.\n self.verify = True\n\n #: SSL certificate default.\n self.cert = None\n\n #: Maximum number of redirects allowed. If the request exceeds this\n #: limit, a :class:`TooManyRedirects` exception is raised.\n self.max_redirects = DEFAULT_REDIRECT_LIMIT\n\n #: Should we trust the environment?\n self.trust_env = True\n\n #: A CookieJar containing all currently outstanding cookies set on this\n #: session. By default it is a\n #: :class:`RequestsCookieJar `, but\n #: may be any other ``cookielib.CookieJar`` compatible object.\n self.cookies = cookiejar_from_dict({})\n\n # Default connection adapters.\n self.adapters = OrderedDict()\n self.mount('https://', HTTPAdapter())\n self.mount('http://', HTTPAdapter())\n\n def __enter__(self):\n return self\n\n def __exit__(self, *args):\n self.close()\n\n def prepare_request(self, request):\n \"\"\"Constructs a :class:`PreparedRequest ` for\n transmission and returns it. The :class:`PreparedRequest` has settings\n merged from the :class:`Request ` instance and those of the\n :class:`Session`.\n\n :param request: :class:`Request` instance to prepare with this\n session's settings.\n \"\"\"\n cookies = request.cookies or {}\n\n # Bootstrap CookieJar.\n if not isinstance(cookies, cookielib.CookieJar):\n cookies = cookiejar_from_dict(cookies)\n\n # Merge with session cookies\n merged_cookies = RequestsCookieJar()\n merged_cookies.update(self.cookies)\n merged_cookies.update(cookies)\n\n\n # Set environment's basic authentication if not explicitly set.\n auth = request.auth\n if self.trust_env and not auth and not self.auth:\n auth = get_netrc_auth(request.url)\n\n p = PreparedRequest()\n p.prepare(\n method=request.method.upper(),\n url=request.url,\n files=request.files,\n data=request.data,\n headers=merge_setting(request.headers, self.headers, dict_class=CaseInsensitiveDict),\n params=merge_setting(request.params, self.params),\n auth=merge_setting(auth, self.auth),\n cookies=merged_cookies,\n hooks=merge_setting(request.hooks, self.hooks),\n )\n return p\n\n def request(self, method, url,\n params=None,\n data=None,\n headers=None,\n cookies=None,\n files=None,\n auth=None,\n timeout=None,\n allow_redirects=True,\n proxies=None,\n hooks=None,\n stream=None,\n verify=None,\n cert=None):\n \"\"\"Constructs a :class:`Request `, prepares it and sends it.\n Returns :class:`Response ` object.\n\n :param method: method for the new :class:`Request` object.\n :param url: URL for the new :class:`Request` object.\n :param params: (optional) Dictionary or bytes to be sent in the query\n string for the :class:`Request`.\n :param data: (optional) Dictionary or bytes to send in the body of the\n :class:`Request`.\n :param headers: (optional) Dictionary of HTTP Headers to send with the\n :class:`Request`.\n :param cookies: (optional) Dict or CookieJar object to send with the\n :class:`Request`.\n :param files: (optional) Dictionary of 'filename': file-like-objects\n for multipart encoding upload.\n :param auth: (optional) Auth tuple or callable to enable\n Basic/Digest/Custom HTTP Auth.\n :param timeout: (optional) Float describing the timeout of the\n request.\n :param allow_redirects: (optional) Boolean. Set to True by default.\n :param proxies: (optional) Dictionary mapping protocol to the URL of\n the proxy.\n :param stream: (optional) whether to immediately download the response\n content. Defaults to ``False``.\n :param verify: (optional) if ``True``, the SSL cert will be verified.\n A CA_BUNDLE path can also be provided.\n :param cert: (optional) if String, path to ssl client cert file (.pem).\n If Tuple, ('cert', 'key') pair.\n \"\"\"\n # Create the Request.\n req = Request(\n method = method.upper(),\n url = url,\n headers = headers,\n files = files,\n data = data or {},\n params = params or {},\n auth = auth,\n cookies = cookies,\n hooks = hooks,\n )\n prep = self.prepare_request(req)\n\n # Add param cookies to session cookies\n self.cookies = cookiejar_from_dict(cookies, cookiejar=self.cookies, overwrite=False)\n\n proxies = proxies or {}\n\n # Gather clues from the surrounding environment.\n if self.trust_env:\n # Set environment's proxies.\n env_proxies = get_environ_proxies(url) or {}\n for (k, v) in env_proxies.items():\n proxies.setdefault(k, v)\n\n # Look for configuration.\n if not verify and verify is not False:\n verify = os.environ.get('REQUESTS_CA_BUNDLE')\n\n # Curl compatibility.\n if not verify and verify is not False:\n verify = os.environ.get('CURL_CA_BUNDLE')\n\n # Merge all the kwargs.\n proxies = merge_setting(proxies, self.proxies)\n stream = merge_setting(stream, self.stream)\n verify = merge_setting(verify, self.verify)\n cert = merge_setting(cert, self.cert)\n\n # Send the request.\n send_kwargs = {\n 'stream': stream,\n 'timeout': timeout,\n 'verify': verify,\n 'cert': cert,\n 'proxies': proxies,\n 'allow_redirects': allow_redirects,\n }\n resp = self.send(prep, **send_kwargs)\n\n return resp\n\n def get(self, url, **kwargs):\n \"\"\"Sends a GET request. Returns :class:`Response` object.\n\n :param url: URL for the new :class:`Request` object.\n :param \\*\\*kwargs: Optional arguments that ``request`` takes.\n \"\"\"\n\n kwargs.setdefault('allow_redirects', True)\n return self.request('GET', url, **kwargs)\n\n def options(self, url, **kwargs):\n \"\"\"Sends a OPTIONS request. Returns :class:`Response` object.\n\n :param url: URL for the new :class:`Request` object.\n :param \\*\\*kwargs: Optional arguments that ``request`` takes.\n \"\"\"\n\n kwargs.setdefault('allow_redirects', True)\n return self.request('OPTIONS', url, **kwargs)\n\n def head(self, url, **kwargs):\n \"\"\"Sends a HEAD request. Returns :class:`Response` object.\n\n :param url: URL for the new :class:`Request` object.\n :param \\*\\*kwargs: Optional arguments that ``request`` takes.\n \"\"\"\n\n kwargs.setdefault('allow_redirects', False)\n return self.request('HEAD', url, **kwargs)\n\n def post(self, url, data=None, **kwargs):\n \"\"\"Sends a POST request. Returns :class:`Response` object.\n\n :param url: URL for the new :class:`Request` object.\n :param data: (optional) Dictionary, bytes, or file-like object to send in the body of the :class:`Request`.\n :param \\*\\*kwargs: Optional arguments that ``request`` takes.\n \"\"\"\n\n return self.request('POST', url, data=data, **kwargs)\n\n def put(self, url, data=None, **kwargs):\n \"\"\"Sends a PUT request. Returns :class:`Response` object.\n\n :param url: URL for the new :class:`Request` object.\n :param data: (optional) Dictionary, bytes, or file-like object to send in the body of the :class:`Request`.\n :param \\*\\*kwargs: Optional arguments that ``request`` takes.\n \"\"\"\n\n return self.request('PUT', url, data=data, **kwargs)\n\n def patch(self, url, data=None, **kwargs):\n \"\"\"Sends a PATCH request. Returns :class:`Response` object.\n\n :param url: URL for the new :class:`Request` object.\n :param data: (optional) Dictionary, bytes, or file-like object to send in the body of the :class:`Request`.\n :param \\*\\*kwargs: Optional arguments that ``request`` takes.\n \"\"\"\n\n return self.request('PATCH', url, data=data, **kwargs)\n\n def delete(self, url, **kwargs):\n \"\"\"Sends a DELETE request. Returns :class:`Response` object.\n\n :param url: URL for the new :class:`Request` object.\n :param \\*\\*kwargs: Optional arguments that ``request`` takes.\n \"\"\"\n\n return self.request('DELETE', url, **kwargs)\n\n def send(self, request, **kwargs):\n \"\"\"Send a given PreparedRequest.\"\"\"\n # Set defaults that the hooks can utilize to ensure they always have\n # the correct parameters to reproduce the previous request.\n kwargs.setdefault('stream', self.stream)\n kwargs.setdefault('verify', self.verify)\n kwargs.setdefault('cert', self.cert)\n kwargs.setdefault('proxies', self.proxies)\n\n # It's possible that users might accidentally send a Request object.\n # Guard against that specific failure case.\n if not isinstance(request, PreparedRequest):\n raise ValueError('You can only send PreparedRequests.')\n\n # Set up variables needed for resolve_redirects and dispatching of\n # hooks\n allow_redirects = kwargs.pop('allow_redirects', True)\n stream = kwargs.get('stream')\n timeout = kwargs.get('timeout')\n verify = kwargs.get('verify')\n cert = kwargs.get('cert')\n proxies = kwargs.get('proxies')\n hooks = request.hooks\n\n # Get the appropriate adapter to use\n adapter = self.get_adapter(url=request.url)\n\n # Start time (approximately) of the request\n start = datetime.utcnow()\n # Send the request\n r = adapter.send(request, **kwargs)\n # Total elapsed time of the request (approximately)\n r.elapsed = datetime.utcnow() - start\n\n # Response manipulation hooks\n r = dispatch_hook('response', hooks, r, **kwargs)\n\n # Persist cookies\n if r.history:\n # If the hooks create history then we want those cookies too\n for resp in r.history:\n extract_cookies_to_jar(self.cookies, resp.request, resp.raw)\n extract_cookies_to_jar(self.cookies, request, r.raw)\n\n # Redirect resolving generator.\n gen = self.resolve_redirects(r, request, stream=stream,\n timeout=timeout, verify=verify, cert=cert,\n proxies=proxies)\n\n # Resolve redirects if allowed.\n history = [resp for resp in gen] if allow_redirects else []\n\n # Shuffle things around if there's history.\n if history:\n # Insert the first (original) request at the start\n history.insert(0, r)\n # Get the last request made\n r = history.pop()\n r.history = tuple(history)\n\n return r\n\n def get_adapter(self, url):\n \"\"\"Returns the appropriate connnection adapter for the given URL.\"\"\"\n for (prefix, adapter) in self.adapters.items():\n\n if url.lower().startswith(prefix):\n return adapter\n\n # Nothing matches :-/\n raise InvalidSchema(\"No connection adapters were found for '%s'\" % url)\n\n def close(self):\n \"\"\"Closes all adapters and as such the session\"\"\"\n for v in self.adapters.values():\n v.close()\n\n def mount(self, prefix, adapter):\n \"\"\"Registers a connection adapter to a prefix.\n\n Adapters are sorted in descending order by key length.\"\"\"\n self.adapters[prefix] = adapter\n keys_to_move = [k for k in self.adapters if len(k) < len(prefix)]\n for key in keys_to_move:\n self.adapters[key] = self.adapters.pop(key)\n\n def __getstate__(self):\n return dict((attr, getattr(self, attr, None)) for attr in self.__attrs__)\n\n def __setstate__(self, state):\n for attr, value in state.items():\n setattr(self, attr, value)\n\n\ndef session():\n \"\"\"Returns a :class:`Session` for context-management.\"\"\"\n\n return Session()\n"},{"className":"Mapping","col":0,"comment":"null","endLoc":691,"id":374,"nodeType":"Class","startLoc":677,"text":"class Mapping(Collection[_KT], Generic[_KT, _VT_co]):\n # TODO: We wish the key type could also be covariant, but that doesn't work,\n # see discussion in https://github.com/python/typing/pull/273.\n @abstractmethod\n def __getitem__(self, key: _KT, /) -> _VT_co: ...\n # Mixin methods\n @overload\n def get(self, key: _KT, /) -> _VT_co | None: ...\n @overload\n def get(self, key: _KT, /, default: _VT_co | _T) -> _VT_co | _T: ...\n def items(self) -> ItemsView[_KT, _VT_co]: ...\n def keys(self) -> KeysView[_KT]: ...\n def values(self) -> ValuesView[_VT_co]: ...\n def __contains__(self, key: object, /) -> bool: ...\n def __eq__(self, other: object, /) -> bool: ..."},{"col":0,"comment":"Verify that *cert* (in decoded format as returned by\n SSLSocket.getpeercert()) matches the *hostname*. RFC 2818 and RFC 6125\n rules are followed, but IP addresses are not accepted for *hostname*.\n\n CertificateError is raised on failure. On success, the function\n returns nothing.\n ","endLoc":98,"header":"def match_hostname(cert, hostname)","id":378,"name":"match_hostname","nodeType":"Function","startLoc":60,"text":"def match_hostname(cert, hostname):\n \"\"\"Verify that *cert* (in decoded format as returned by\n SSLSocket.getpeercert()) matches the *hostname*. RFC 2818 and RFC 6125\n rules are followed, but IP addresses are not accepted for *hostname*.\n\n CertificateError is raised on failure. On success, the function\n returns nothing.\n \"\"\"\n if not cert:\n raise ValueError(\"empty or no certificate\")\n dnsnames = []\n san = cert.get('subjectAltName', ())\n for key, value in san:\n if key == 'DNS':\n if _dnsname_match(value, hostname):\n return\n dnsnames.append(value)\n if not dnsnames:\n # The subject is only checked when there is no dNSName entry\n # in subjectAltName\n for sub in cert.get('subject', ()):\n for key, value in sub:\n # XXX according to RFC 2818, the most specific Common Name\n # must be used.\n if key == 'commonName':\n if _dnsname_match(value, hostname):\n return\n dnsnames.append(value)\n if len(dnsnames) > 1:\n raise CertificateError(\"hostname %r \"\n \"doesn't match either of %s\"\n % (hostname, ', '.join(map(repr, dnsnames))))\n elif len(dnsnames) == 1:\n raise CertificateError(\"hostname %r \"\n \"doesn't match %r\"\n % (hostname, dnsnames[0]))\n else:\n raise CertificateError(\"no appropriate commonName or \"\n \"subjectAltName fields were found\")"},{"col":4,"comment":"null","endLoc":681,"header":"@abstractmethod\n def __getitem__(self, key: _KT, /) -> _VT_co","id":379,"name":"__getitem__","nodeType":"Function","startLoc":680,"text":"@abstractmethod\n def __getitem__(self, key: _KT, /) -> _VT_co: ..."},{"col":4,"comment":"null","endLoc":684,"header":"@overload\n def get(self, key: _KT, /) -> _VT_co | None","id":380,"name":"get","nodeType":"Function","startLoc":683,"text":"@overload\n def get(self, key: _KT, /) -> _VT_co | None: ..."},{"col":4,"comment":"null","endLoc":686,"header":"@overload\n def get(self, key: _KT, /, default: _VT_co | _T) -> _VT_co | _T","id":381,"name":"get","nodeType":"Function","startLoc":685,"text":"@overload\n def get(self, key: _KT, /, default: _VT_co | _T) -> _VT_co | _T: ..."},{"col":4,"comment":"null","endLoc":687,"header":"def items(self) -> ItemsView[_KT, _VT_co]","id":382,"name":"items","nodeType":"Function","startLoc":687,"text":"def items(self) -> ItemsView[_KT, _VT_co]: ..."},{"col":4,"comment":"null","endLoc":688,"header":"def keys(self) -> KeysView[_KT]","id":383,"name":"keys","nodeType":"Function","startLoc":688,"text":"def keys(self) -> KeysView[_KT]: ..."},{"col":4,"comment":"null","endLoc":689,"header":"def values(self) -> ValuesView[_VT_co]","id":384,"name":"values","nodeType":"Function","startLoc":689,"text":"def values(self) -> ValuesView[_VT_co]: ..."},{"col":4,"comment":"null","endLoc":690,"header":"def __contains__(self, key: object, /) -> bool","id":385,"name":"__contains__","nodeType":"Function","startLoc":690,"text":"def __contains__(self, key: object, /) -> bool: ..."},{"col":4,"comment":"null","endLoc":691,"header":"def __eq__(self, other: object, /) -> bool","id":386,"name":"__eq__","nodeType":"Function","startLoc":691,"text":"def __eq__(self, other: object, /) -> bool: ..."},{"attributeType":"str | bytes","col":8,"comment":"null","endLoc":24,"id":387,"name":"_data","nodeType":"Attribute","startLoc":24,"text":"self._data"},{"className":"datetime","col":0,"comment":"null","endLoc":327,"id":388,"nodeType":"Class","startLoc":229,"text":"class datetime(date):\n min: ClassVar[datetime]\n max: ClassVar[datetime]\n def __new__(\n cls,\n year: SupportsIndex,\n month: SupportsIndex,\n day: SupportsIndex,\n hour: SupportsIndex = ...,\n minute: SupportsIndex = ...,\n second: SupportsIndex = ...,\n microsecond: SupportsIndex = ...,\n tzinfo: _TzInfo | None = ...,\n *,\n fold: int = ...,\n ) -> Self: ...\n @property\n def hour(self) -> int: ...\n @property\n def minute(self) -> int: ...\n @property\n def second(self) -> int: ...\n @property\n def microsecond(self) -> int: ...\n @property\n def tzinfo(self) -> _TzInfo | None: ...\n @property\n def fold(self) -> int: ...\n # On <3.12, the name of the first parameter in the pure-Python implementation\n # didn't match the name in the C implementation,\n # meaning it is only *safe* to pass it as a keyword argument on 3.12+\n if sys.version_info >= (3, 12):\n @classmethod\n def fromtimestamp(cls, timestamp: float, tz: _TzInfo | None = ...) -> Self: ...\n else:\n @classmethod\n def fromtimestamp(cls, timestamp: float, /, tz: _TzInfo | None = ...) -> Self: ...\n\n @classmethod\n @deprecated(\"Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.UTC)\")\n def utcfromtimestamp(cls, t: float, /) -> Self: ...\n @classmethod\n def now(cls, tz: _TzInfo | None = None) -> Self: ...\n @classmethod\n @deprecated(\"Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)\")\n def utcnow(cls) -> Self: ...\n @classmethod\n def combine(cls, date: _Date, time: _Time, tzinfo: _TzInfo | None = ...) -> Self: ...\n def timestamp(self) -> float: ...\n def utctimetuple(self) -> struct_time: ...\n def date(self) -> _Date: ...\n def time(self) -> _Time: ...\n def timetz(self) -> _Time: ...\n if sys.version_info >= (3, 13):\n def __replace__(\n self,\n /,\n *,\n year: SupportsIndex = ...,\n month: SupportsIndex = ...,\n day: SupportsIndex = ...,\n hour: SupportsIndex = ...,\n minute: SupportsIndex = ...,\n second: SupportsIndex = ...,\n microsecond: SupportsIndex = ...,\n tzinfo: _TzInfo | None = ...,\n fold: int = ...,\n ) -> Self: ...\n\n def replace(\n self,\n year: SupportsIndex = ...,\n month: SupportsIndex = ...,\n day: SupportsIndex = ...,\n hour: SupportsIndex = ...,\n minute: SupportsIndex = ...,\n second: SupportsIndex = ...,\n microsecond: SupportsIndex = ...,\n tzinfo: _TzInfo | None = ...,\n *,\n fold: int = ...,\n ) -> Self: ...\n def astimezone(self, tz: _TzInfo | None = ...) -> Self: ...\n def isoformat(self, sep: str = ..., timespec: str = ...) -> str: ...\n @classmethod\n def strptime(cls, date_string: str, format: str, /) -> Self: ...\n def utcoffset(self) -> timedelta | None: ...\n def tzname(self) -> str | None: ...\n def dst(self) -> timedelta | None: ...\n def __le__(self, value: datetime, /) -> bool: ... # type: ignore[override]\n def __lt__(self, value: datetime, /) -> bool: ... # type: ignore[override]\n def __ge__(self, value: datetime, /) -> bool: ... # type: ignore[override]\n def __gt__(self, value: datetime, /) -> bool: ... # type: ignore[override]\n def __eq__(self, value: object, /) -> bool: ...\n def __hash__(self) -> int: ...\n @overload # type: ignore[override]\n def __sub__(self, value: Self, /) -> timedelta: ...\n @overload\n def __sub__(self, value: timedelta, /) -> Self: ..."},{"attributeType":"_Decompress","col":8,"comment":"null","endLoc":25,"id":389,"name":"_obj","nodeType":"Attribute","startLoc":25,"text":"self._obj"},{"attributeType":"bool","col":8,"comment":"null","endLoc":23,"id":390,"name":"_first_try","nodeType":"Attribute","startLoc":23,"text":"self._first_try"},{"className":"HTTPResponse","col":0,"comment":"\n HTTP Response container.\n\n Backwards-compatible to httplib's HTTPResponse but the response ``body`` is\n loaded and decoded on-demand when the ``data`` property is accessed.\n\n Extra parameters for behaviour not present in httplib.HTTPResponse:\n\n :param preload_content:\n If True, the response's body will be preloaded during construction.\n\n :param decode_content:\n If True, attempts to decode specific content-encoding's based on headers\n (like 'gzip' and 'deflate') will be skipped and raw data will be used\n instead.\n\n :param original_response:\n When this HTTPResponse wrapper is generated from an httplib.HTTPResponse\n object, it's convenient to include the original for debug purposes. It's\n otherwise unused.\n ","endLoc":301,"id":391,"nodeType":"Class","startLoc":53,"text":"class HTTPResponse(io.IOBase):\n \"\"\"\n HTTP Response container.\n\n Backwards-compatible to httplib's HTTPResponse but the response ``body`` is\n loaded and decoded on-demand when the ``data`` property is accessed.\n\n Extra parameters for behaviour not present in httplib.HTTPResponse:\n\n :param preload_content:\n If True, the response's body will be preloaded during construction.\n\n :param decode_content:\n If True, attempts to decode specific content-encoding's based on headers\n (like 'gzip' and 'deflate') will be skipped and raw data will be used\n instead.\n\n :param original_response:\n When this HTTPResponse wrapper is generated from an httplib.HTTPResponse\n object, it's convenient to include the original for debug purposes. It's\n otherwise unused.\n \"\"\"\n\n CONTENT_DECODERS = ['gzip', 'deflate']\n REDIRECT_STATUSES = [301, 302, 303, 307, 308]\n\n def __init__(self, body='', headers=None, status=0, version=0, reason=None,\n strict=0, preload_content=True, decode_content=True,\n original_response=None, pool=None, connection=None):\n self.headers = headers or {}\n self.status = status\n self.version = version\n self.reason = reason\n self.strict = strict\n self.decode_content = decode_content\n\n self._decoder = None\n self._body = body if body and isinstance(body, basestring) else None\n self._fp = None\n self._original_response = original_response\n\n self._pool = pool\n self._connection = connection\n\n if hasattr(body, 'read'):\n self._fp = body\n\n if preload_content and not self._body:\n self._body = self.read(decode_content=decode_content)\n\n def get_redirect_location(self):\n \"\"\"\n Should we redirect and where to?\n\n :returns: Truthy redirect location string if we got a redirect status\n code and valid location. ``None`` if redirect status and no\n location. ``False`` if not a redirect status code.\n \"\"\"\n if self.status in self.REDIRECT_STATUSES:\n return self.headers.get('location')\n\n return False\n\n def release_conn(self):\n if not self._pool or not self._connection:\n return\n\n self._pool._put_conn(self._connection)\n self._connection = None\n\n @property\n def data(self):\n # For backwords-compat with earlier urllib3 0.4 and earlier.\n if self._body:\n return self._body\n\n if self._fp:\n return self.read(cache_content=True)\n\n def read(self, amt=None, decode_content=None, cache_content=False):\n \"\"\"\n Similar to :meth:`httplib.HTTPResponse.read`, but with two additional\n parameters: ``decode_content`` and ``cache_content``.\n\n :param amt:\n How much of the content to read. If specified, caching is skipped\n because it doesn't make sense to cache partial content as the full\n response.\n\n :param decode_content:\n If True, will attempt to decode the body based on the\n 'content-encoding' header.\n\n :param cache_content:\n If True, will save the returned data such that the same result is\n returned despite of the state of the underlying file object. This\n is useful if you want the ``.data`` property to continue working\n after having ``.read()`` the file object. (Overridden if ``amt`` is\n set.)\n \"\"\"\n # Note: content-encoding value should be case-insensitive, per RFC 2616\n # Section 3.5\n content_encoding = self.headers.get('content-encoding', '').lower()\n if self._decoder is None:\n if content_encoding in self.CONTENT_DECODERS:\n self._decoder = _get_decoder(content_encoding)\n if decode_content is None:\n decode_content = self.decode_content\n\n if self._fp is None:\n return\n\n flush_decoder = False\n\n try:\n if amt is None:\n # cStringIO doesn't like amt=None\n data = self._fp.read()\n flush_decoder = True\n else:\n cache_content = False\n data = self._fp.read(amt)\n if amt != 0 and not data: # Platform-specific: Buggy versions of Python.\n # Close the connection when no data is returned\n #\n # This is redundant to what httplib/http.client _should_\n # already do. However, versions of python released before\n # December 15, 2012 (http://bugs.python.org/issue16298) do not\n # properly close the connection in all cases. There is no harm\n # in redundantly calling close.\n self._fp.close()\n flush_decoder = True\n\n try:\n if decode_content and self._decoder:\n data = self._decoder.decompress(data)\n except (IOError, zlib.error) as e:\n raise DecodeError(\n \"Received response with content-encoding: %s, but \"\n \"failed to decode it.\" % content_encoding,\n e)\n\n if flush_decoder and decode_content and self._decoder:\n buf = self._decoder.decompress(binary_type())\n data += buf + self._decoder.flush()\n\n if cache_content:\n self._body = data\n\n return data\n\n finally:\n if self._original_response and self._original_response.isclosed():\n self.release_conn()\n\n def stream(self, amt=2**16, decode_content=None):\n \"\"\"\n A generator wrapper for the read() method. A call will block until\n ``amt`` bytes have been read from the connection or until the\n connection is closed.\n\n :param amt:\n How much of the content to read. The generator will return up to\n much data per iteration, but may return less. This is particularly\n likely when using compressed data. However, the empty string will\n never be returned.\n\n :param decode_content:\n If True, will attempt to decode the body based on the\n 'content-encoding' header.\n \"\"\"\n while not is_fp_closed(self._fp):\n data = self.read(amt=amt, decode_content=decode_content)\n\n if data:\n yield data\n\n\n @classmethod\n def from_httplib(ResponseCls, r, **response_kw):\n \"\"\"\n Given an :class:`httplib.HTTPResponse` instance ``r``, return a\n corresponding :class:`urllib3.response.HTTPResponse` object.\n\n Remaining parameters are passed to the HTTPResponse constructor, along\n with ``original_response=r``.\n \"\"\"\n\n # Normalize headers between different versions of Python\n headers = {}\n for k, v in r.getheaders():\n # Python 3: Header keys are returned capitalised\n k = k.lower()\n\n has_value = headers.get(k)\n if has_value: # Python 3: Repeating header keys are unmerged.\n v = ', '.join([has_value, v])\n\n headers[k] = v\n\n # HTTPResponse objects in Python 3 don't have a .strict attribute\n strict = getattr(r, 'strict', 0)\n return ResponseCls(body=r,\n headers=headers,\n status=r.status,\n version=r.version,\n reason=r.reason,\n strict=strict,\n original_response=r,\n **response_kw)\n\n # Backwards-compatibility methods for httplib.HTTPResponse\n def getheaders(self):\n return self.headers\n\n def getheader(self, name, default=None):\n return self.headers.get(name, default)\n\n # Overrides from io.IOBase\n def close(self):\n if not self.closed:\n self._fp.close()\n\n @property\n def closed(self):\n if self._fp is None:\n return True\n elif hasattr(self._fp, 'closed'):\n return self._fp.closed\n elif hasattr(self._fp, 'isclosed'): # Python 2\n return self._fp.isclosed()\n else:\n return True\n\n def fileno(self):\n if self._fp is None:\n raise IOError(\"HTTPResponse has no file to get a fileno from\")\n elif hasattr(self._fp, \"fileno\"):\n return self._fp.fileno()\n else:\n raise IOError(\"The file-like object this HTTPResponse is wrapped \"\n \"around has no file descriptor\")\n\n def flush(self):\n if self._fp is not None and hasattr(self._fp, 'flush'):\n return self._fp.flush()\n\n def readable(self):\n return True"},{"className":"IOBase","col":0,"comment":"null","endLoc":78,"id":392,"nodeType":"Class","startLoc":53,"text":"class IOBase(metaclass=abc.ABCMeta):\n def __iter__(self) -> Iterator[bytes]: ...\n def __next__(self) -> bytes: ...\n def __enter__(self) -> Self: ...\n def __exit__(\n self, exc_type: type[BaseException] | None, exc_val: BaseException | None, exc_tb: TracebackType | None\n ) -> None: ...\n def close(self) -> None: ...\n def fileno(self) -> int: ...\n def flush(self) -> None: ...\n def isatty(self) -> bool: ...\n def readable(self) -> bool: ...\n read: Callable[..., Any]\n def readlines(self, hint: int = -1, /) -> list[bytes]: ...\n def seek(self, offset: int, whence: int = ..., /) -> int: ...\n def seekable(self) -> bool: ...\n def tell(self) -> int: ...\n def truncate(self, size: int | None = ..., /) -> int: ...\n def writable(self) -> bool: ...\n write: Callable[..., Any]\n def writelines(self, lines: Iterable[ReadableBuffer], /) -> None: ...\n def readline(self, size: int | None = -1, /) -> bytes: ...\n def __del__(self) -> None: ...\n @property\n def closed(self) -> bool: ...\n def _checkClosed(self) -> None: ... # undocumented"},{"attributeType":"null","col":8,"comment":"null","endLoc":114,"id":393,"name":"_mCharToFreqOrder","nodeType":"Attribute","startLoc":114,"text":"self._mCharToFreqOrder"},{"col":0,"comment":"Returns a CookieJar from a key/value dictionary.\n\n :param cookie_dict: Dict of key/values to insert into CookieJar.\n :param cookiejar: (optional) A cookiejar to add the cookies to.\n :param overwrite: (optional) If False, will not replace cookies\n already in the jar with new ones.\n ","endLoc":412,"header":"def cookiejar_from_dict(cookie_dict, cookiejar=None, overwrite=True)","id":394,"name":"cookiejar_from_dict","nodeType":"Function","startLoc":395,"text":"def cookiejar_from_dict(cookie_dict, cookiejar=None, overwrite=True):\n \"\"\"Returns a CookieJar from a key/value dictionary.\n\n :param cookie_dict: Dict of key/values to insert into CookieJar.\n :param cookiejar: (optional) A cookiejar to add the cookies to.\n :param overwrite: (optional) If False, will not replace cookies\n already in the jar with new ones.\n \"\"\"\n if cookiejar is None:\n cookiejar = RequestsCookieJar()\n\n if cookie_dict is not None:\n names_from_jar = [cookie.name for cookie in cookiejar]\n for name in cookie_dict:\n if overwrite or (name not in names_from_jar):\n cookiejar.set_cookie(create_cookie(name, cookie_dict[name]))\n\n return cookiejar"},{"attributeType":"null","col":8,"comment":"null","endLoc":115,"id":395,"name":"_mTableSize","nodeType":"Attribute","startLoc":115,"text":"self._mTableSize"},{"attributeType":"(int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int)","col":0,"comment":"null","endLoc":84,"id":396,"name":"Latin1ClassModel","nodeType":"Attribute","startLoc":84,"text":"Latin1ClassModel"},{"col":0,"comment":"","endLoc":29,"header":"latin1prober.py#","id":397,"name":"","nodeType":"Function","startLoc":29,"text":"FREQ_CAT_NUM = 4\n\nUDF = 0 # undefined\n\nOTH = 1 # other\n\nASC = 2 # ascii capital letter\n\nASS = 3 # ascii small letter\n\nACV = 4 # accent capital vowel\n\nACO = 5 # accent capital other\n\nASV = 6 # accent small vowel\n\nASO = 7 # accent small other\n\nCLASS_NUM = 8 # total classes\n\nLatin1_CharToClass = (\n OTH, OTH, OTH, OTH, OTH, OTH, OTH, OTH, # 00 - 07\n OTH, OTH, OTH, OTH, OTH, OTH, OTH, OTH, # 08 - 0F\n OTH, OTH, OTH, OTH, OTH, OTH, OTH, OTH, # 10 - 17\n OTH, OTH, OTH, OTH, OTH, OTH, OTH, OTH, # 18 - 1F\n OTH, OTH, OTH, OTH, OTH, OTH, OTH, OTH, # 20 - 27\n OTH, OTH, OTH, OTH, OTH, OTH, OTH, OTH, # 28 - 2F\n OTH, OTH, OTH, OTH, OTH, OTH, OTH, OTH, # 30 - 37\n OTH, OTH, OTH, OTH, OTH, OTH, OTH, OTH, # 38 - 3F\n OTH, ASC, ASC, ASC, ASC, ASC, ASC, ASC, # 40 - 47\n ASC, ASC, ASC, ASC, ASC, ASC, ASC, ASC, # 48 - 4F\n ASC, ASC, ASC, ASC, ASC, ASC, ASC, ASC, # 50 - 57\n ASC, ASC, ASC, OTH, OTH, OTH, OTH, OTH, # 58 - 5F\n OTH, ASS, ASS, ASS, ASS, ASS, ASS, ASS, # 60 - 67\n ASS, ASS, ASS, ASS, ASS, ASS, ASS, ASS, # 68 - 6F\n ASS, ASS, ASS, ASS, ASS, ASS, ASS, ASS, # 70 - 77\n ASS, ASS, ASS, OTH, OTH, OTH, OTH, OTH, # 78 - 7F\n OTH, UDF, OTH, ASO, OTH, OTH, OTH, OTH, # 80 - 87\n OTH, OTH, ACO, OTH, ACO, UDF, ACO, UDF, # 88 - 8F\n UDF, OTH, OTH, OTH, OTH, OTH, OTH, OTH, # 90 - 97\n OTH, OTH, ASO, OTH, ASO, UDF, ASO, ACO, # 98 - 9F\n OTH, OTH, OTH, OTH, OTH, OTH, OTH, OTH, # A0 - A7\n OTH, OTH, OTH, OTH, OTH, OTH, OTH, OTH, # A8 - AF\n OTH, OTH, OTH, OTH, OTH, OTH, OTH, OTH, # B0 - B7\n OTH, OTH, OTH, OTH, OTH, OTH, OTH, OTH, # B8 - BF\n ACV, ACV, ACV, ACV, ACV, ACV, ACO, ACO, # C0 - C7\n ACV, ACV, ACV, ACV, ACV, ACV, ACV, ACV, # C8 - CF\n ACO, ACO, ACV, ACV, ACV, ACV, ACV, OTH, # D0 - D7\n ACV, ACV, ACV, ACV, ACV, ACO, ACO, ACO, # D8 - DF\n ASV, ASV, ASV, ASV, ASV, ASV, ASO, ASO, # E0 - E7\n ASV, ASV, ASV, ASV, ASV, ASV, ASV, ASV, # E8 - EF\n ASO, ASO, ASV, ASV, ASV, ASV, ASV, OTH, # F0 - F7\n ASV, ASV, ASV, ASV, ASV, ASO, ASO, ASO, # F8 - FF\n)\n\nLatin1ClassModel = (\n # UDF OTH ASC ASS ACV ACO ASV ASO\n 0, 0, 0, 0, 0, 0, 0, 0, # UDF\n 0, 3, 3, 3, 3, 3, 3, 3, # OTH\n 0, 3, 3, 3, 3, 3, 3, 3, # ASC\n 0, 3, 3, 3, 1, 1, 3, 3, # ASS\n 0, 3, 3, 3, 1, 2, 1, 2, # ACV\n 0, 3, 3, 3, 3, 3, 3, 3, # ACO\n 0, 3, 1, 3, 1, 1, 1, 3, # ASV\n 0, 3, 1, 3, 1, 1, 3, 3, # ASO\n)"},{"className":"date","col":0,"comment":"null","endLoc":105,"id":398,"nodeType":"Class","startLoc":48,"text":"class date:\n min: ClassVar[date]\n max: ClassVar[date]\n resolution: ClassVar[timedelta]\n def __new__(cls, year: SupportsIndex, month: SupportsIndex, day: SupportsIndex) -> Self: ...\n @classmethod\n def fromtimestamp(cls, timestamp: float, /) -> Self: ...\n @classmethod\n def today(cls) -> Self: ...\n @classmethod\n def fromordinal(cls, n: int, /) -> Self: ...\n @classmethod\n def fromisoformat(cls, date_string: str, /) -> Self: ...\n @classmethod\n def fromisocalendar(cls, year: int, week: int, day: int) -> Self: ...\n @property\n def year(self) -> int: ...\n @property\n def month(self) -> int: ...\n @property\n def day(self) -> int: ...\n def ctime(self) -> str: ...\n # On <3.12, the name of the parameter in the pure-Python implementation\n # didn't match the name in the C implementation,\n # meaning it is only *safe* to pass it as a keyword argument on 3.12+\n if sys.version_info >= (3, 12):\n def strftime(self, format: str) -> str: ...\n else:\n def strftime(self, format: str, /) -> str: ...\n\n def __format__(self, fmt: str, /) -> str: ...\n def isoformat(self) -> str: ...\n def timetuple(self) -> struct_time: ...\n def toordinal(self) -> int: ...\n if sys.version_info >= (3, 13):\n def __replace__(self, /, *, year: SupportsIndex = ..., month: SupportsIndex = ..., day: SupportsIndex = ...) -> Self: ...\n\n def replace(self, year: SupportsIndex = ..., month: SupportsIndex = ..., day: SupportsIndex = ...) -> Self: ...\n def __le__(self, value: date, /) -> bool: ...\n def __lt__(self, value: date, /) -> bool: ...\n def __ge__(self, value: date, /) -> bool: ...\n def __gt__(self, value: date, /) -> bool: ...\n def __eq__(self, value: object, /) -> bool: ...\n def __add__(self, value: timedelta, /) -> Self: ...\n def __radd__(self, value: timedelta, /) -> Self: ...\n @overload\n def __sub__(self, value: datetime, /) -> NoReturn: ...\n @overload\n def __sub__(self, value: Self, /) -> timedelta: ...\n @overload\n def __sub__(self, value: timedelta, /) -> Self: ...\n def __hash__(self) -> int: ...\n def weekday(self) -> int: ...\n def isoweekday(self) -> int: ...\n if sys.version_info >= (3, 9):\n def isocalendar(self) -> _IsoCalendarDate: ...\n else:\n def isocalendar(self) -> tuple[int, int, int]: ..."},{"col":4,"comment":"null","endLoc":52,"header":"def __new__(cls, year: SupportsIndex, month: SupportsIndex, day: SupportsIndex) -> Self","id":399,"name":"__new__","nodeType":"Function","startLoc":52,"text":"def __new__(cls, year: SupportsIndex, month: SupportsIndex, day: SupportsIndex) -> Self: ..."},{"col":4,"comment":"null","endLoc":54,"header":"@classmethod\n def fromtimestamp(cls, timestamp: float, /) -> Self","id":400,"name":"fromtimestamp","nodeType":"Function","startLoc":53,"text":"@classmethod\n def fromtimestamp(cls, timestamp: float, /) -> Self: ..."},{"col":4,"comment":"null","endLoc":56,"header":"@classmethod\n def today(cls) -> Self","id":401,"name":"today","nodeType":"Function","startLoc":55,"text":"@classmethod\n def today(cls) -> Self: ..."},{"col":4,"comment":"null","endLoc":58,"header":"@classmethod\n def fromordinal(cls, n: int, /) -> Self","id":402,"name":"fromordinal","nodeType":"Function","startLoc":57,"text":"@classmethod\n def fromordinal(cls, n: int, /) -> Self: ..."},{"col":4,"comment":"null","endLoc":60,"header":"@classmethod\n def fromisoformat(cls, date_string: str, /) -> Self","id":403,"name":"fromisoformat","nodeType":"Function","startLoc":59,"text":"@classmethod\n def fromisoformat(cls, date_string: str, /) -> Self: ..."},{"col":4,"comment":"null","endLoc":62,"header":"@classmethod\n def fromisocalendar(cls, year: int, week: int, day: int) -> Self","id":404,"name":"fromisocalendar","nodeType":"Function","startLoc":61,"text":"@classmethod\n def fromisocalendar(cls, year: int, week: int, day: int) -> Self: ..."},{"col":4,"comment":"null","endLoc":64,"header":"@property\n def year(self) -> int","id":405,"name":"year","nodeType":"Function","startLoc":63,"text":"@property\n def year(self) -> int: ..."},{"col":4,"comment":"null","endLoc":66,"header":"@property\n def month(self) -> int","id":406,"name":"month","nodeType":"Function","startLoc":65,"text":"@property\n def month(self) -> int: ..."},{"col":4,"comment":"null","endLoc":68,"header":"@property\n def day(self) -> int","id":407,"name":"day","nodeType":"Function","startLoc":67,"text":"@property\n def day(self) -> int: ..."},{"col":4,"comment":"null","endLoc":69,"header":"def ctime(self) -> str","id":408,"name":"ctime","nodeType":"Function","startLoc":69,"text":"def ctime(self) -> str: ..."},{"col":8,"comment":"null","endLoc":76,"header":"def strftime(self, format: str, /) -> str","id":409,"name":"strftime","nodeType":"Function","startLoc":76,"text":"def strftime(self, format: str, /) -> str: ..."},{"col":4,"comment":"null","endLoc":78,"header":"def __format__(self, fmt: str, /) -> str","id":410,"name":"__format__","nodeType":"Function","startLoc":78,"text":"def __format__(self, fmt: str, /) -> str: ..."},{"col":4,"comment":"null","endLoc":79,"header":"def isoformat(self) -> str","id":411,"name":"isoformat","nodeType":"Function","startLoc":79,"text":"def isoformat(self) -> str: ..."},{"col":4,"comment":"null","endLoc":80,"header":"def timetuple(self) -> struct_time","id":412,"name":"timetuple","nodeType":"Function","startLoc":80,"text":"def timetuple(self) -> struct_time: ..."},{"col":4,"comment":"null","endLoc":81,"header":"def toordinal(self) -> int","id":413,"name":"toordinal","nodeType":"Function","startLoc":81,"text":"def toordinal(self) -> int: ..."},{"col":4,"comment":"null","endLoc":85,"header":"def replace(self, year: SupportsIndex = ..., month: SupportsIndex = ..., day: SupportsIndex = ...) -> Self","id":414,"name":"replace","nodeType":"Function","startLoc":85,"text":"def replace(self, year: SupportsIndex = ..., month: SupportsIndex = ..., day: SupportsIndex = ...) -> Self: ..."},{"col":4,"comment":"null","endLoc":86,"header":"def __le__(self, value: date, /) -> bool","id":415,"name":"__le__","nodeType":"Function","startLoc":86,"text":"def __le__(self, value: date, /) -> bool: ..."},{"col":4,"comment":"null","endLoc":87,"header":"def __lt__(self, value: date, /) -> bool","id":416,"name":"__lt__","nodeType":"Function","startLoc":87,"text":"def __lt__(self, value: date, /) -> bool: ..."},{"col":4,"comment":"null","endLoc":88,"header":"def __ge__(self, value: date, /) -> bool","id":417,"name":"__ge__","nodeType":"Function","startLoc":88,"text":"def __ge__(self, value: date, /) -> bool: ..."},{"col":4,"comment":"null","endLoc":89,"header":"def __gt__(self, value: date, /) -> bool","id":418,"name":"__gt__","nodeType":"Function","startLoc":89,"text":"def __gt__(self, value: date, /) -> bool: ..."},{"col":4,"comment":"null","endLoc":90,"header":"def __eq__(self, value: object, /) -> bool","id":419,"name":"__eq__","nodeType":"Function","startLoc":90,"text":"def __eq__(self, value: object, /) -> bool: ..."},{"col":4,"comment":"null","endLoc":91,"header":"def __add__(self, value: timedelta, /) -> Self","id":420,"name":"__add__","nodeType":"Function","startLoc":91,"text":"def __add__(self, value: timedelta, /) -> Self: ..."},{"col":4,"comment":"null","endLoc":92,"header":"def __radd__(self, value: timedelta, /) -> Self","id":421,"name":"__radd__","nodeType":"Function","startLoc":92,"text":"def __radd__(self, value: timedelta, /) -> Self: ..."},{"col":4,"comment":"null","endLoc":94,"header":"@overload\n def __sub__(self, value: datetime, /) -> NoReturn","id":422,"name":"__sub__","nodeType":"Function","startLoc":93,"text":"@overload\n def __sub__(self, value: datetime, /) -> NoReturn: ..."},{"col":4,"comment":"null","endLoc":96,"header":"@overload\n def __sub__(self, value: Self, /) -> timedelta","id":423,"name":"__sub__","nodeType":"Function","startLoc":95,"text":"@overload\n def __sub__(self, value: Self, /) -> timedelta: ..."},{"col":4,"comment":"null","endLoc":98,"header":"@overload\n def __sub__(self, value: timedelta, /) -> Self","id":424,"name":"__sub__","nodeType":"Function","startLoc":97,"text":"@overload\n def __sub__(self, value: timedelta, /) -> Self: ..."},{"col":4,"comment":"null","endLoc":99,"header":"def __hash__(self) -> int","id":425,"name":"__hash__","nodeType":"Function","startLoc":99,"text":"def __hash__(self) -> int: ..."},{"col":4,"comment":"null","endLoc":100,"header":"def weekday(self) -> int","id":426,"name":"weekday","nodeType":"Function","startLoc":100,"text":"def weekday(self) -> int: ..."},{"col":4,"comment":"null","endLoc":101,"header":"def isoweekday(self) -> int","id":427,"name":"isoweekday","nodeType":"Function","startLoc":101,"text":"def isoweekday(self) -> int: ..."},{"col":8,"comment":"null","endLoc":103,"header":"def isocalendar(self) -> _IsoCalendarDate","id":428,"name":"isocalendar","nodeType":"Function","startLoc":103,"text":"def isocalendar(self) -> _IsoCalendarDate: ..."},{"attributeType":"date","col":4,"comment":"null","endLoc":49,"id":429,"name":"min","nodeType":"Attribute","startLoc":49,"text":"min"},{"col":4,"comment":"null","endLoc":54,"header":"def __iter__(self) -> Iterator[bytes]","id":430,"name":"__iter__","nodeType":"Function","startLoc":54,"text":"def __iter__(self) -> Iterator[bytes]: ..."},{"col":4,"comment":"null","endLoc":55,"header":"def __next__(self) -> bytes","id":431,"name":"__next__","nodeType":"Function","startLoc":55,"text":"def __next__(self) -> bytes: ..."},{"col":4,"comment":"null","endLoc":56,"header":"def __enter__(self) -> Self","id":432,"name":"__enter__","nodeType":"Function","startLoc":56,"text":"def __enter__(self) -> Self: ..."},{"col":4,"comment":"null","endLoc":59,"header":"def __exit__(\n self, exc_type: type[BaseException] | None, exc_val: BaseException | None, exc_tb: TracebackType | None\n ) -> None","id":433,"name":"__exit__","nodeType":"Function","startLoc":57,"text":"def __exit__(\n self, exc_type: type[BaseException] | None, exc_val: BaseException | None, exc_tb: TracebackType | None\n ) -> None: ..."},{"col":4,"comment":"null","endLoc":60,"header":"def close(self) -> None","id":434,"name":"close","nodeType":"Function","startLoc":60,"text":"def close(self) -> None: ..."},{"col":4,"comment":"null","endLoc":61,"header":"def fileno(self) -> int","id":435,"name":"fileno","nodeType":"Function","startLoc":61,"text":"def fileno(self) -> int: ..."},{"col":4,"comment":"null","endLoc":62,"header":"def flush(self) -> None","id":436,"name":"flush","nodeType":"Function","startLoc":62,"text":"def flush(self) -> None: ..."},{"col":4,"comment":"null","endLoc":63,"header":"def isatty(self) -> bool","id":437,"name":"isatty","nodeType":"Function","startLoc":63,"text":"def isatty(self) -> bool: ..."},{"col":4,"comment":"null","endLoc":64,"header":"def readable(self) -> bool","id":438,"name":"readable","nodeType":"Function","startLoc":64,"text":"def readable(self) -> bool: ..."},{"col":4,"comment":"null","endLoc":66,"header":"def readlines(self, hint: int = -1, /) -> list[bytes]","id":439,"name":"readlines","nodeType":"Function","startLoc":66,"text":"def readlines(self, hint: int = -1, /) -> list[bytes]: ..."},{"col":4,"comment":"null","endLoc":67,"header":"def seek(self, offset: int, whence: int = ..., /) -> int","id":440,"name":"seek","nodeType":"Function","startLoc":67,"text":"def seek(self, offset: int, whence: int = ..., /) -> int: ..."},{"col":4,"comment":"null","endLoc":68,"header":"def seekable(self) -> bool","id":441,"name":"seekable","nodeType":"Function","startLoc":68,"text":"def seekable(self) -> bool: ..."},{"col":4,"comment":"null","endLoc":69,"header":"def tell(self) -> int","id":442,"name":"tell","nodeType":"Function","startLoc":69,"text":"def tell(self) -> int: ..."},{"col":4,"comment":"null","endLoc":70,"header":"def truncate(self, size: int | None = ..., /) -> int","id":443,"name":"truncate","nodeType":"Function","startLoc":70,"text":"def truncate(self, size: int | None = ..., /) -> int: ..."},{"col":4,"comment":"null","endLoc":71,"header":"def writable(self) -> bool","id":444,"name":"writable","nodeType":"Function","startLoc":71,"text":"def writable(self) -> bool: ..."},{"col":4,"comment":"null","endLoc":73,"header":"def writelines(self, lines: Iterable[ReadableBuffer], /) -> None","id":445,"name":"writelines","nodeType":"Function","startLoc":73,"text":"def writelines(self, lines: Iterable[ReadableBuffer], /) -> None: ..."},{"col":4,"comment":"null","endLoc":74,"header":"def readline(self, size: int | None = -1, /) -> bytes","id":446,"name":"readline","nodeType":"Function","startLoc":74,"text":"def readline(self, size: int | None = -1, /) -> bytes: ..."},{"col":4,"comment":"null","endLoc":75,"header":"def __del__(self) -> None","id":447,"name":"__del__","nodeType":"Function","startLoc":75,"text":"def __del__(self) -> None: ..."},{"col":4,"comment":"null","endLoc":77,"header":"@property\n def closed(self) -> bool","id":448,"name":"closed","nodeType":"Function","startLoc":76,"text":"@property\n def closed(self) -> bool: ..."},{"col":4,"comment":"null","endLoc":78,"header":"def _checkClosed(self) -> None","id":449,"name":"_checkClosed","nodeType":"Function","startLoc":78,"text":"def _checkClosed(self) -> None: ... # undocumented"},{"attributeType":"(...) -> Any","col":4,"comment":"null","endLoc":65,"id":450,"name":"read","nodeType":"Attribute","startLoc":65,"text":"read"},{"attributeType":"date","col":4,"comment":"null","endLoc":50,"id":451,"name":"max","nodeType":"Attribute","startLoc":50,"text":"max"},{"attributeType":"timedelta","col":4,"comment":"null","endLoc":51,"id":452,"name":"resolution","nodeType":"Attribute","startLoc":51,"text":"resolution"},{"col":4,"comment":"null","endLoc":244,"header":"def __new__(\n cls,\n year: SupportsIndex,\n month: SupportsIndex,\n day: SupportsIndex,\n hour: SupportsIndex = ...,\n minute: SupportsIndex = ...,\n second: SupportsIndex = ...,\n microsecond: SupportsIndex = ...,\n tzinfo: _TzInfo | None = ...,\n *,\n fold: int = ...,\n ) -> Self","id":453,"name":"__new__","nodeType":"Function","startLoc":232,"text":"def __new__(\n cls,\n year: SupportsIndex,\n month: SupportsIndex,\n day: SupportsIndex,\n hour: SupportsIndex = ...,\n minute: SupportsIndex = ...,\n second: SupportsIndex = ...,\n microsecond: SupportsIndex = ...,\n tzinfo: _TzInfo | None = ...,\n *,\n fold: int = ...,\n ) -> Self: ..."},{"col":4,"comment":"null","endLoc":246,"header":"@property\n def hour(self) -> int","id":454,"name":"hour","nodeType":"Function","startLoc":245,"text":"@property\n def hour(self) -> int: ..."},{"col":4,"comment":"null","endLoc":248,"header":"@property\n def minute(self) -> int","id":455,"name":"minute","nodeType":"Function","startLoc":247,"text":"@property\n def minute(self) -> int: ..."},{"col":4,"comment":"null","endLoc":250,"header":"@property\n def second(self) -> int","id":456,"name":"second","nodeType":"Function","startLoc":249,"text":"@property\n def second(self) -> int: ..."},{"col":4,"comment":"null","endLoc":252,"header":"@property\n def microsecond(self) -> int","id":457,"name":"microsecond","nodeType":"Function","startLoc":251,"text":"@property\n def microsecond(self) -> int: ..."},{"col":4,"comment":"null","endLoc":254,"header":"@property\n def tzinfo(self) -> _TzInfo | None","id":458,"name":"tzinfo","nodeType":"Function","startLoc":253,"text":"@property\n def tzinfo(self) -> _TzInfo | None: ..."},{"col":4,"comment":"null","endLoc":256,"header":"@property\n def fold(self) -> int","id":459,"name":"fold","nodeType":"Function","startLoc":255,"text":"@property\n def fold(self) -> int: ..."},{"col":8,"comment":"null","endLoc":265,"header":"@classmethod\n def fromtimestamp(cls, timestamp: float, /, tz: _TzInfo | None = ...) -> Self","id":460,"name":"fromtimestamp","nodeType":"Function","startLoc":264,"text":"@classmethod\n def fromtimestamp(cls, timestamp: float, /, tz: _TzInfo | None = ...) -> Self: ..."},{"col":4,"comment":"null","endLoc":269,"header":"@classmethod\n @deprecated(\"Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.UTC)\")\n def utcfromtimestamp(cls, t","id":461,"name":"utcfromtimestamp","nodeType":"Function","startLoc":267,"text":"@classmethod\n @deprecated(\"Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.UTC)\")\n def utcfromtimestamp(cls, t: float, /) -> Self: ..."},{"attributeType":"null","col":0,"comment":"null","endLoc":272,"id":462,"name":"EUCTWSMModel","nodeType":"Attribute","startLoc":272,"text":"EUCTWSMModel"},{"attributeType":"(...) -> Any","col":4,"comment":"null","endLoc":72,"id":463,"name":"write","nodeType":"Attribute","startLoc":72,"text":"write"},{"className":"EUCTWProber","col":0,"comment":"null","endLoc":41,"id":465,"nodeType":"Class","startLoc":33,"text":"class EUCTWProber(MultiByteCharSetProber):\n def __init__(self):\n MultiByteCharSetProber.__init__(self)\n self._mCodingSM = CodingStateMachine(EUCTWSMModel)\n self._mDistributionAnalyzer = EUCTWDistributionAnalysis()\n self.reset()\n\n def get_charset_name(self):\n return \"EUC-TW\""},{"col":4,"comment":"null","endLoc":38,"header":"def __init__(self)","id":466,"name":"__init__","nodeType":"Function","startLoc":34,"text":"def __init__(self):\n MultiByteCharSetProber.__init__(self)\n self._mCodingSM = CodingStateMachine(EUCTWSMModel)\n self._mDistributionAnalyzer = EUCTWDistributionAnalysis()\n self.reset()"},{"col":4,"comment":"null","endLoc":101,"header":"def __init__(self, body='', headers=None, status=0, version=0, reason=None,\n strict=0, preload_content=True, decode_content=True,\n original_response=None, pool=None, connection=None)","id":467,"name":"__init__","nodeType":"Function","startLoc":79,"text":"def __init__(self, body='', headers=None, status=0, version=0, reason=None,\n strict=0, preload_content=True, decode_content=True,\n original_response=None, pool=None, connection=None):\n self.headers = headers or {}\n self.status = status\n self.version = version\n self.reason = reason\n self.strict = strict\n self.decode_content = decode_content\n\n self._decoder = None\n self._body = body if body and isinstance(body, basestring) else None\n self._fp = None\n self._original_response = original_response\n\n self._pool = pool\n self._connection = connection\n\n if hasattr(body, 'read'):\n self._fp = body\n\n if preload_content and not self._body:\n self._body = self.read(decode_content=decode_content)"},{"fileName":"mbcssm.py","filePath":"requests/packages/charade","id":468,"nodeType":"File","text":"######################## BEGIN LICENSE BLOCK ########################\n# The Original Code is mozilla.org code.\n#\n# The Initial Developer of the Original Code is\n# Netscape Communications Corporation.\n# Portions created by the Initial Developer are Copyright (C) 1998\n# the Initial Developer. All Rights Reserved.\n#\n# Contributor(s):\n# Mark Pilgrim - port to Python\n#\n# This library is free software; you can redistribute it and/or\n# modify it under the terms of the GNU Lesser General Public\n# License as published by the Free Software Foundation; either\n# version 2.1 of the License, or (at your option) any later version.\n#\n# This library is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n# Lesser General Public License for more details.\n#\n# You should have received a copy of the GNU Lesser General Public\n# License along with this library; if not, write to the Free Software\n# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n# 02110-1301 USA\n######################### END LICENSE BLOCK #########################\n\nfrom .constants import eStart, eError, eItsMe\n\n# BIG5\n\nBIG5_cls = (\n 1,1,1,1,1,1,1,1, # 00 - 07 #allow 0x00 as legal value\n 1,1,1,1,1,1,0,0, # 08 - 0f\n 1,1,1,1,1,1,1,1, # 10 - 17\n 1,1,1,0,1,1,1,1, # 18 - 1f\n 1,1,1,1,1,1,1,1, # 20 - 27\n 1,1,1,1,1,1,1,1, # 28 - 2f\n 1,1,1,1,1,1,1,1, # 30 - 37\n 1,1,1,1,1,1,1,1, # 38 - 3f\n 2,2,2,2,2,2,2,2, # 40 - 47\n 2,2,2,2,2,2,2,2, # 48 - 4f\n 2,2,2,2,2,2,2,2, # 50 - 57\n 2,2,2,2,2,2,2,2, # 58 - 5f\n 2,2,2,2,2,2,2,2, # 60 - 67\n 2,2,2,2,2,2,2,2, # 68 - 6f\n 2,2,2,2,2,2,2,2, # 70 - 77\n 2,2,2,2,2,2,2,1, # 78 - 7f\n 4,4,4,4,4,4,4,4, # 80 - 87\n 4,4,4,4,4,4,4,4, # 88 - 8f\n 4,4,4,4,4,4,4,4, # 90 - 97\n 4,4,4,4,4,4,4,4, # 98 - 9f\n 4,3,3,3,3,3,3,3, # a0 - a7\n 3,3,3,3,3,3,3,3, # a8 - af\n 3,3,3,3,3,3,3,3, # b0 - b7\n 3,3,3,3,3,3,3,3, # b8 - bf\n 3,3,3,3,3,3,3,3, # c0 - c7\n 3,3,3,3,3,3,3,3, # c8 - cf\n 3,3,3,3,3,3,3,3, # d0 - d7\n 3,3,3,3,3,3,3,3, # d8 - df\n 3,3,3,3,3,3,3,3, # e0 - e7\n 3,3,3,3,3,3,3,3, # e8 - ef\n 3,3,3,3,3,3,3,3, # f0 - f7\n 3,3,3,3,3,3,3,0 # f8 - ff\n)\n\nBIG5_st = (\n eError,eStart,eStart, 3,eError,eError,eError,eError,#00-07\n eError,eError,eItsMe,eItsMe,eItsMe,eItsMe,eItsMe,eError,#08-0f\n eError,eStart,eStart,eStart,eStart,eStart,eStart,eStart#10-17\n)\n\nBig5CharLenTable = (0, 1, 1, 2, 0)\n\nBig5SMModel = {'classTable': BIG5_cls,\n 'classFactor': 5,\n 'stateTable': BIG5_st,\n 'charLenTable': Big5CharLenTable,\n 'name': 'Big5'}\n\n# CP949\n\nCP949_cls = (\n 1,1,1,1,1,1,1,1, 1,1,1,1,1,1,0,0, # 00 - 0f\n 1,1,1,1,1,1,1,1, 1,1,1,0,1,1,1,1, # 10 - 1f\n 1,1,1,1,1,1,1,1, 1,1,1,1,1,1,1,1, # 20 - 2f\n 1,1,1,1,1,1,1,1, 1,1,1,1,1,1,1,1, # 30 - 3f\n 1,4,4,4,4,4,4,4, 4,4,4,4,4,4,4,4, # 40 - 4f\n 4,4,5,5,5,5,5,5, 5,5,5,1,1,1,1,1, # 50 - 5f\n 1,5,5,5,5,5,5,5, 5,5,5,5,5,5,5,5, # 60 - 6f\n 5,5,5,5,5,5,5,5, 5,5,5,1,1,1,1,1, # 70 - 7f\n 0,6,6,6,6,6,6,6, 6,6,6,6,6,6,6,6, # 80 - 8f\n 6,6,6,6,6,6,6,6, 6,6,6,6,6,6,6,6, # 90 - 9f\n 6,7,7,7,7,7,7,7, 7,7,7,7,7,8,8,8, # a0 - af\n 7,7,7,7,7,7,7,7, 7,7,7,7,7,7,7,7, # b0 - bf\n 7,7,7,7,7,7,9,2, 2,3,2,2,2,2,2,2, # c0 - cf\n 2,2,2,2,2,2,2,2, 2,2,2,2,2,2,2,2, # d0 - df\n 2,2,2,2,2,2,2,2, 2,2,2,2,2,2,2,2, # e0 - ef\n 2,2,2,2,2,2,2,2, 2,2,2,2,2,2,2,0, # f0 - ff\n)\n\nCP949_st = (\n#cls= 0 1 2 3 4 5 6 7 8 9 # previous state =\n eError,eStart, 3,eError,eStart,eStart, 4, 5,eError, 6, # eStart\n eError,eError,eError,eError,eError,eError,eError,eError,eError,eError, # eError\n eItsMe,eItsMe,eItsMe,eItsMe,eItsMe,eItsMe,eItsMe,eItsMe,eItsMe,eItsMe, # eItsMe\n eError,eError,eStart,eStart,eError,eError,eError,eStart,eStart,eStart, # 3\n eError,eError,eStart,eStart,eStart,eStart,eStart,eStart,eStart,eStart, # 4\n eError,eStart,eStart,eStart,eStart,eStart,eStart,eStart,eStart,eStart, # 5\n eError,eStart,eStart,eStart,eStart,eError,eError,eStart,eStart,eStart, # 6\n)\n\nCP949CharLenTable = (0, 1, 2, 0, 1, 1, 2, 2, 0, 2)\n\nCP949SMModel = {'classTable': CP949_cls,\n 'classFactor': 10,\n 'stateTable': CP949_st,\n 'charLenTable': CP949CharLenTable,\n 'name': 'CP949'}\n\n# EUC-JP\n\nEUCJP_cls = (\n 4,4,4,4,4,4,4,4, # 00 - 07\n 4,4,4,4,4,4,5,5, # 08 - 0f\n 4,4,4,4,4,4,4,4, # 10 - 17\n 4,4,4,5,4,4,4,4, # 18 - 1f\n 4,4,4,4,4,4,4,4, # 20 - 27\n 4,4,4,4,4,4,4,4, # 28 - 2f\n 4,4,4,4,4,4,4,4, # 30 - 37\n 4,4,4,4,4,4,4,4, # 38 - 3f\n 4,4,4,4,4,4,4,4, # 40 - 47\n 4,4,4,4,4,4,4,4, # 48 - 4f\n 4,4,4,4,4,4,4,4, # 50 - 57\n 4,4,4,4,4,4,4,4, # 58 - 5f\n 4,4,4,4,4,4,4,4, # 60 - 67\n 4,4,4,4,4,4,4,4, # 68 - 6f\n 4,4,4,4,4,4,4,4, # 70 - 77\n 4,4,4,4,4,4,4,4, # 78 - 7f\n 5,5,5,5,5,5,5,5, # 80 - 87\n 5,5,5,5,5,5,1,3, # 88 - 8f\n 5,5,5,5,5,5,5,5, # 90 - 97\n 5,5,5,5,5,5,5,5, # 98 - 9f\n 5,2,2,2,2,2,2,2, # a0 - a7\n 2,2,2,2,2,2,2,2, # a8 - af\n 2,2,2,2,2,2,2,2, # b0 - b7\n 2,2,2,2,2,2,2,2, # b8 - bf\n 2,2,2,2,2,2,2,2, # c0 - c7\n 2,2,2,2,2,2,2,2, # c8 - cf\n 2,2,2,2,2,2,2,2, # d0 - d7\n 2,2,2,2,2,2,2,2, # d8 - df\n 0,0,0,0,0,0,0,0, # e0 - e7\n 0,0,0,0,0,0,0,0, # e8 - ef\n 0,0,0,0,0,0,0,0, # f0 - f7\n 0,0,0,0,0,0,0,5 # f8 - ff\n)\n\nEUCJP_st = (\n 3, 4, 3, 5,eStart,eError,eError,eError,#00-07\n eError,eError,eError,eError,eItsMe,eItsMe,eItsMe,eItsMe,#08-0f\n eItsMe,eItsMe,eStart,eError,eStart,eError,eError,eError,#10-17\n eError,eError,eStart,eError,eError,eError, 3,eError,#18-1f\n 3,eError,eError,eError,eStart,eStart,eStart,eStart#20-27\n)\n\nEUCJPCharLenTable = (2, 2, 2, 3, 1, 0)\n\nEUCJPSMModel = {'classTable': EUCJP_cls,\n 'classFactor': 6,\n 'stateTable': EUCJP_st,\n 'charLenTable': EUCJPCharLenTable,\n 'name': 'EUC-JP'}\n\n# EUC-KR\n\nEUCKR_cls = (\n 1,1,1,1,1,1,1,1, # 00 - 07\n 1,1,1,1,1,1,0,0, # 08 - 0f\n 1,1,1,1,1,1,1,1, # 10 - 17\n 1,1,1,0,1,1,1,1, # 18 - 1f\n 1,1,1,1,1,1,1,1, # 20 - 27\n 1,1,1,1,1,1,1,1, # 28 - 2f\n 1,1,1,1,1,1,1,1, # 30 - 37\n 1,1,1,1,1,1,1,1, # 38 - 3f\n 1,1,1,1,1,1,1,1, # 40 - 47\n 1,1,1,1,1,1,1,1, # 48 - 4f\n 1,1,1,1,1,1,1,1, # 50 - 57\n 1,1,1,1,1,1,1,1, # 58 - 5f\n 1,1,1,1,1,1,1,1, # 60 - 67\n 1,1,1,1,1,1,1,1, # 68 - 6f\n 1,1,1,1,1,1,1,1, # 70 - 77\n 1,1,1,1,1,1,1,1, # 78 - 7f\n 0,0,0,0,0,0,0,0, # 80 - 87\n 0,0,0,0,0,0,0,0, # 88 - 8f\n 0,0,0,0,0,0,0,0, # 90 - 97\n 0,0,0,0,0,0,0,0, # 98 - 9f\n 0,2,2,2,2,2,2,2, # a0 - a7\n 2,2,2,2,2,3,3,3, # a8 - af\n 2,2,2,2,2,2,2,2, # b0 - b7\n 2,2,2,2,2,2,2,2, # b8 - bf\n 2,2,2,2,2,2,2,2, # c0 - c7\n 2,3,2,2,2,2,2,2, # c8 - cf\n 2,2,2,2,2,2,2,2, # d0 - d7\n 2,2,2,2,2,2,2,2, # d8 - df\n 2,2,2,2,2,2,2,2, # e0 - e7\n 2,2,2,2,2,2,2,2, # e8 - ef\n 2,2,2,2,2,2,2,2, # f0 - f7\n 2,2,2,2,2,2,2,0 # f8 - ff\n)\n\nEUCKR_st = (\n eError,eStart, 3,eError,eError,eError,eError,eError,#00-07\n eItsMe,eItsMe,eItsMe,eItsMe,eError,eError,eStart,eStart #08-0f\n)\n\nEUCKRCharLenTable = (0, 1, 2, 0)\n\nEUCKRSMModel = {'classTable': EUCKR_cls,\n 'classFactor': 4,\n 'stateTable': EUCKR_st,\n 'charLenTable': EUCKRCharLenTable,\n 'name': 'EUC-KR'}\n\n# EUC-TW\n\nEUCTW_cls = (\n 2,2,2,2,2,2,2,2, # 00 - 07\n 2,2,2,2,2,2,0,0, # 08 - 0f\n 2,2,2,2,2,2,2,2, # 10 - 17\n 2,2,2,0,2,2,2,2, # 18 - 1f\n 2,2,2,2,2,2,2,2, # 20 - 27\n 2,2,2,2,2,2,2,2, # 28 - 2f\n 2,2,2,2,2,2,2,2, # 30 - 37\n 2,2,2,2,2,2,2,2, # 38 - 3f\n 2,2,2,2,2,2,2,2, # 40 - 47\n 2,2,2,2,2,2,2,2, # 48 - 4f\n 2,2,2,2,2,2,2,2, # 50 - 57\n 2,2,2,2,2,2,2,2, # 58 - 5f\n 2,2,2,2,2,2,2,2, # 60 - 67\n 2,2,2,2,2,2,2,2, # 68 - 6f\n 2,2,2,2,2,2,2,2, # 70 - 77\n 2,2,2,2,2,2,2,2, # 78 - 7f\n 0,0,0,0,0,0,0,0, # 80 - 87\n 0,0,0,0,0,0,6,0, # 88 - 8f\n 0,0,0,0,0,0,0,0, # 90 - 97\n 0,0,0,0,0,0,0,0, # 98 - 9f\n 0,3,4,4,4,4,4,4, # a0 - a7\n 5,5,1,1,1,1,1,1, # a8 - af\n 1,1,1,1,1,1,1,1, # b0 - b7\n 1,1,1,1,1,1,1,1, # b8 - bf\n 1,1,3,1,3,3,3,3, # c0 - c7\n 3,3,3,3,3,3,3,3, # c8 - cf\n 3,3,3,3,3,3,3,3, # d0 - d7\n 3,3,3,3,3,3,3,3, # d8 - df\n 3,3,3,3,3,3,3,3, # e0 - e7\n 3,3,3,3,3,3,3,3, # e8 - ef\n 3,3,3,3,3,3,3,3, # f0 - f7\n 3,3,3,3,3,3,3,0 # f8 - ff\n)\n\nEUCTW_st = (\n eError,eError,eStart, 3, 3, 3, 4,eError,#00-07\n eError,eError,eError,eError,eError,eError,eItsMe,eItsMe,#08-0f\n eItsMe,eItsMe,eItsMe,eItsMe,eItsMe,eError,eStart,eError,#10-17\n eStart,eStart,eStart,eError,eError,eError,eError,eError,#18-1f\n 5,eError,eError,eError,eStart,eError,eStart,eStart,#20-27\n eStart,eError,eStart,eStart,eStart,eStart,eStart,eStart #28-2f\n)\n\nEUCTWCharLenTable = (0, 0, 1, 2, 2, 2, 3)\n\nEUCTWSMModel = {'classTable': EUCTW_cls,\n 'classFactor': 7,\n 'stateTable': EUCTW_st,\n 'charLenTable': EUCTWCharLenTable,\n 'name': 'x-euc-tw'}\n\n# GB2312\n\nGB2312_cls = (\n 1,1,1,1,1,1,1,1, # 00 - 07\n 1,1,1,1,1,1,0,0, # 08 - 0f\n 1,1,1,1,1,1,1,1, # 10 - 17\n 1,1,1,0,1,1,1,1, # 18 - 1f\n 1,1,1,1,1,1,1,1, # 20 - 27\n 1,1,1,1,1,1,1,1, # 28 - 2f\n 3,3,3,3,3,3,3,3, # 30 - 37\n 3,3,1,1,1,1,1,1, # 38 - 3f\n 2,2,2,2,2,2,2,2, # 40 - 47\n 2,2,2,2,2,2,2,2, # 48 - 4f\n 2,2,2,2,2,2,2,2, # 50 - 57\n 2,2,2,2,2,2,2,2, # 58 - 5f\n 2,2,2,2,2,2,2,2, # 60 - 67\n 2,2,2,2,2,2,2,2, # 68 - 6f\n 2,2,2,2,2,2,2,2, # 70 - 77\n 2,2,2,2,2,2,2,4, # 78 - 7f\n 5,6,6,6,6,6,6,6, # 80 - 87\n 6,6,6,6,6,6,6,6, # 88 - 8f\n 6,6,6,6,6,6,6,6, # 90 - 97\n 6,6,6,6,6,6,6,6, # 98 - 9f\n 6,6,6,6,6,6,6,6, # a0 - a7\n 6,6,6,6,6,6,6,6, # a8 - af\n 6,6,6,6,6,6,6,6, # b0 - b7\n 6,6,6,6,6,6,6,6, # b8 - bf\n 6,6,6,6,6,6,6,6, # c0 - c7\n 6,6,6,6,6,6,6,6, # c8 - cf\n 6,6,6,6,6,6,6,6, # d0 - d7\n 6,6,6,6,6,6,6,6, # d8 - df\n 6,6,6,6,6,6,6,6, # e0 - e7\n 6,6,6,6,6,6,6,6, # e8 - ef\n 6,6,6,6,6,6,6,6, # f0 - f7\n 6,6,6,6,6,6,6,0 # f8 - ff\n)\n\nGB2312_st = (\n eError,eStart,eStart,eStart,eStart,eStart, 3,eError,#00-07\n eError,eError,eError,eError,eError,eError,eItsMe,eItsMe,#08-0f\n eItsMe,eItsMe,eItsMe,eItsMe,eItsMe,eError,eError,eStart,#10-17\n 4,eError,eStart,eStart,eError,eError,eError,eError,#18-1f\n eError,eError, 5,eError,eError,eError,eItsMe,eError,#20-27\n eError,eError,eStart,eStart,eStart,eStart,eStart,eStart #28-2f\n)\n\n# To be accurate, the length of class 6 can be either 2 or 4.\n# But it is not necessary to discriminate between the two since\n# it is used for frequency analysis only, and we are validing\n# each code range there as well. So it is safe to set it to be\n# 2 here.\nGB2312CharLenTable = (0, 1, 1, 1, 1, 1, 2)\n\nGB2312SMModel = {'classTable': GB2312_cls,\n 'classFactor': 7,\n 'stateTable': GB2312_st,\n 'charLenTable': GB2312CharLenTable,\n 'name': 'GB2312'}\n\n# Shift_JIS\n\nSJIS_cls = (\n 1,1,1,1,1,1,1,1, # 00 - 07\n 1,1,1,1,1,1,0,0, # 08 - 0f\n 1,1,1,1,1,1,1,1, # 10 - 17\n 1,1,1,0,1,1,1,1, # 18 - 1f\n 1,1,1,1,1,1,1,1, # 20 - 27\n 1,1,1,1,1,1,1,1, # 28 - 2f\n 1,1,1,1,1,1,1,1, # 30 - 37\n 1,1,1,1,1,1,1,1, # 38 - 3f\n 2,2,2,2,2,2,2,2, # 40 - 47\n 2,2,2,2,2,2,2,2, # 48 - 4f\n 2,2,2,2,2,2,2,2, # 50 - 57\n 2,2,2,2,2,2,2,2, # 58 - 5f\n 2,2,2,2,2,2,2,2, # 60 - 67\n 2,2,2,2,2,2,2,2, # 68 - 6f\n 2,2,2,2,2,2,2,2, # 70 - 77\n 2,2,2,2,2,2,2,1, # 78 - 7f\n 3,3,3,3,3,3,3,3, # 80 - 87\n 3,3,3,3,3,3,3,3, # 88 - 8f\n 3,3,3,3,3,3,3,3, # 90 - 97\n 3,3,3,3,3,3,3,3, # 98 - 9f\n #0xa0 is illegal in sjis encoding, but some pages does\n #contain such byte. We need to be more error forgiven.\n 2,2,2,2,2,2,2,2, # a0 - a7\n 2,2,2,2,2,2,2,2, # a8 - af\n 2,2,2,2,2,2,2,2, # b0 - b7\n 2,2,2,2,2,2,2,2, # b8 - bf\n 2,2,2,2,2,2,2,2, # c0 - c7\n 2,2,2,2,2,2,2,2, # c8 - cf\n 2,2,2,2,2,2,2,2, # d0 - d7\n 2,2,2,2,2,2,2,2, # d8 - df\n 3,3,3,3,3,3,3,3, # e0 - e7\n 3,3,3,3,3,4,4,4, # e8 - ef\n 4,4,4,4,4,4,4,4, # f0 - f7\n 4,4,4,4,4,0,0,0 # f8 - ff\n)\n\n\nSJIS_st = (\n eError,eStart,eStart, 3,eError,eError,eError,eError,#00-07\n eError,eError,eError,eError,eItsMe,eItsMe,eItsMe,eItsMe,#08-0f\n eItsMe,eItsMe,eError,eError,eStart,eStart,eStart,eStart #10-17\n)\n\nSJISCharLenTable = (0, 1, 1, 2, 0, 0)\n\nSJISSMModel = {'classTable': SJIS_cls,\n 'classFactor': 6,\n 'stateTable': SJIS_st,\n 'charLenTable': SJISCharLenTable,\n 'name': 'Shift_JIS'}\n\n# UCS2-BE\n\nUCS2BE_cls = (\n 0,0,0,0,0,0,0,0, # 00 - 07\n 0,0,1,0,0,2,0,0, # 08 - 0f\n 0,0,0,0,0,0,0,0, # 10 - 17\n 0,0,0,3,0,0,0,0, # 18 - 1f\n 0,0,0,0,0,0,0,0, # 20 - 27\n 0,3,3,3,3,3,0,0, # 28 - 2f\n 0,0,0,0,0,0,0,0, # 30 - 37\n 0,0,0,0,0,0,0,0, # 38 - 3f\n 0,0,0,0,0,0,0,0, # 40 - 47\n 0,0,0,0,0,0,0,0, # 48 - 4f\n 0,0,0,0,0,0,0,0, # 50 - 57\n 0,0,0,0,0,0,0,0, # 58 - 5f\n 0,0,0,0,0,0,0,0, # 60 - 67\n 0,0,0,0,0,0,0,0, # 68 - 6f\n 0,0,0,0,0,0,0,0, # 70 - 77\n 0,0,0,0,0,0,0,0, # 78 - 7f\n 0,0,0,0,0,0,0,0, # 80 - 87\n 0,0,0,0,0,0,0,0, # 88 - 8f\n 0,0,0,0,0,0,0,0, # 90 - 97\n 0,0,0,0,0,0,0,0, # 98 - 9f\n 0,0,0,0,0,0,0,0, # a0 - a7\n 0,0,0,0,0,0,0,0, # a8 - af\n 0,0,0,0,0,0,0,0, # b0 - b7\n 0,0,0,0,0,0,0,0, # b8 - bf\n 0,0,0,0,0,0,0,0, # c0 - c7\n 0,0,0,0,0,0,0,0, # c8 - cf\n 0,0,0,0,0,0,0,0, # d0 - d7\n 0,0,0,0,0,0,0,0, # d8 - df\n 0,0,0,0,0,0,0,0, # e0 - e7\n 0,0,0,0,0,0,0,0, # e8 - ef\n 0,0,0,0,0,0,0,0, # f0 - f7\n 0,0,0,0,0,0,4,5 # f8 - ff\n)\n\nUCS2BE_st = (\n 5, 7, 7,eError, 4, 3,eError,eError,#00-07\n eError,eError,eError,eError,eItsMe,eItsMe,eItsMe,eItsMe,#08-0f\n eItsMe,eItsMe, 6, 6, 6, 6,eError,eError,#10-17\n 6, 6, 6, 6, 6,eItsMe, 6, 6,#18-1f\n 6, 6, 6, 6, 5, 7, 7,eError,#20-27\n 5, 8, 6, 6,eError, 6, 6, 6,#28-2f\n 6, 6, 6, 6,eError,eError,eStart,eStart #30-37\n)\n\nUCS2BECharLenTable = (2, 2, 2, 0, 2, 2)\n\nUCS2BESMModel = {'classTable': UCS2BE_cls,\n 'classFactor': 6,\n 'stateTable': UCS2BE_st,\n 'charLenTable': UCS2BECharLenTable,\n 'name': 'UTF-16BE'}\n\n# UCS2-LE\n\nUCS2LE_cls = (\n 0,0,0,0,0,0,0,0, # 00 - 07\n 0,0,1,0,0,2,0,0, # 08 - 0f\n 0,0,0,0,0,0,0,0, # 10 - 17\n 0,0,0,3,0,0,0,0, # 18 - 1f\n 0,0,0,0,0,0,0,0, # 20 - 27\n 0,3,3,3,3,3,0,0, # 28 - 2f\n 0,0,0,0,0,0,0,0, # 30 - 37\n 0,0,0,0,0,0,0,0, # 38 - 3f\n 0,0,0,0,0,0,0,0, # 40 - 47\n 0,0,0,0,0,0,0,0, # 48 - 4f\n 0,0,0,0,0,0,0,0, # 50 - 57\n 0,0,0,0,0,0,0,0, # 58 - 5f\n 0,0,0,0,0,0,0,0, # 60 - 67\n 0,0,0,0,0,0,0,0, # 68 - 6f\n 0,0,0,0,0,0,0,0, # 70 - 77\n 0,0,0,0,0,0,0,0, # 78 - 7f\n 0,0,0,0,0,0,0,0, # 80 - 87\n 0,0,0,0,0,0,0,0, # 88 - 8f\n 0,0,0,0,0,0,0,0, # 90 - 97\n 0,0,0,0,0,0,0,0, # 98 - 9f\n 0,0,0,0,0,0,0,0, # a0 - a7\n 0,0,0,0,0,0,0,0, # a8 - af\n 0,0,0,0,0,0,0,0, # b0 - b7\n 0,0,0,0,0,0,0,0, # b8 - bf\n 0,0,0,0,0,0,0,0, # c0 - c7\n 0,0,0,0,0,0,0,0, # c8 - cf\n 0,0,0,0,0,0,0,0, # d0 - d7\n 0,0,0,0,0,0,0,0, # d8 - df\n 0,0,0,0,0,0,0,0, # e0 - e7\n 0,0,0,0,0,0,0,0, # e8 - ef\n 0,0,0,0,0,0,0,0, # f0 - f7\n 0,0,0,0,0,0,4,5 # f8 - ff\n)\n\nUCS2LE_st = (\n 6, 6, 7, 6, 4, 3,eError,eError,#00-07\n eError,eError,eError,eError,eItsMe,eItsMe,eItsMe,eItsMe,#08-0f\n eItsMe,eItsMe, 5, 5, 5,eError,eItsMe,eError,#10-17\n 5, 5, 5,eError, 5,eError, 6, 6,#18-1f\n 7, 6, 8, 8, 5, 5, 5,eError,#20-27\n 5, 5, 5,eError,eError,eError, 5, 5,#28-2f\n 5, 5, 5,eError, 5,eError,eStart,eStart #30-37\n)\n\nUCS2LECharLenTable = (2, 2, 2, 2, 2, 2)\n\nUCS2LESMModel = {'classTable': UCS2LE_cls,\n 'classFactor': 6,\n 'stateTable': UCS2LE_st,\n 'charLenTable': UCS2LECharLenTable,\n 'name': 'UTF-16LE'}\n\n# UTF-8\n\nUTF8_cls = (\n 1,1,1,1,1,1,1,1, # 00 - 07 #allow 0x00 as a legal value\n 1,1,1,1,1,1,0,0, # 08 - 0f\n 1,1,1,1,1,1,1,1, # 10 - 17\n 1,1,1,0,1,1,1,1, # 18 - 1f\n 1,1,1,1,1,1,1,1, # 20 - 27\n 1,1,1,1,1,1,1,1, # 28 - 2f\n 1,1,1,1,1,1,1,1, # 30 - 37\n 1,1,1,1,1,1,1,1, # 38 - 3f\n 1,1,1,1,1,1,1,1, # 40 - 47\n 1,1,1,1,1,1,1,1, # 48 - 4f\n 1,1,1,1,1,1,1,1, # 50 - 57\n 1,1,1,1,1,1,1,1, # 58 - 5f\n 1,1,1,1,1,1,1,1, # 60 - 67\n 1,1,1,1,1,1,1,1, # 68 - 6f\n 1,1,1,1,1,1,1,1, # 70 - 77\n 1,1,1,1,1,1,1,1, # 78 - 7f\n 2,2,2,2,3,3,3,3, # 80 - 87\n 4,4,4,4,4,4,4,4, # 88 - 8f\n 4,4,4,4,4,4,4,4, # 90 - 97\n 4,4,4,4,4,4,4,4, # 98 - 9f\n 5,5,5,5,5,5,5,5, # a0 - a7\n 5,5,5,5,5,5,5,5, # a8 - af\n 5,5,5,5,5,5,5,5, # b0 - b7\n 5,5,5,5,5,5,5,5, # b8 - bf\n 0,0,6,6,6,6,6,6, # c0 - c7\n 6,6,6,6,6,6,6,6, # c8 - cf\n 6,6,6,6,6,6,6,6, # d0 - d7\n 6,6,6,6,6,6,6,6, # d8 - df\n 7,8,8,8,8,8,8,8, # e0 - e7\n 8,8,8,8,8,9,8,8, # e8 - ef\n 10,11,11,11,11,11,11,11, # f0 - f7\n 12,13,13,13,14,15,0,0 # f8 - ff\n)\n\nUTF8_st = (\n eError,eStart,eError,eError,eError,eError, 12, 10,#00-07\n 9, 11, 8, 7, 6, 5, 4, 3,#08-0f\n eError,eError,eError,eError,eError,eError,eError,eError,#10-17\n eError,eError,eError,eError,eError,eError,eError,eError,#18-1f\n eItsMe,eItsMe,eItsMe,eItsMe,eItsMe,eItsMe,eItsMe,eItsMe,#20-27\n eItsMe,eItsMe,eItsMe,eItsMe,eItsMe,eItsMe,eItsMe,eItsMe,#28-2f\n eError,eError, 5, 5, 5, 5,eError,eError,#30-37\n eError,eError,eError,eError,eError,eError,eError,eError,#38-3f\n eError,eError,eError, 5, 5, 5,eError,eError,#40-47\n eError,eError,eError,eError,eError,eError,eError,eError,#48-4f\n eError,eError, 7, 7, 7, 7,eError,eError,#50-57\n eError,eError,eError,eError,eError,eError,eError,eError,#58-5f\n eError,eError,eError,eError, 7, 7,eError,eError,#60-67\n eError,eError,eError,eError,eError,eError,eError,eError,#68-6f\n eError,eError, 9, 9, 9, 9,eError,eError,#70-77\n eError,eError,eError,eError,eError,eError,eError,eError,#78-7f\n eError,eError,eError,eError,eError, 9,eError,eError,#80-87\n eError,eError,eError,eError,eError,eError,eError,eError,#88-8f\n eError,eError, 12, 12, 12, 12,eError,eError,#90-97\n eError,eError,eError,eError,eError,eError,eError,eError,#98-9f\n eError,eError,eError,eError,eError, 12,eError,eError,#a0-a7\n eError,eError,eError,eError,eError,eError,eError,eError,#a8-af\n eError,eError, 12, 12, 12,eError,eError,eError,#b0-b7\n eError,eError,eError,eError,eError,eError,eError,eError,#b8-bf\n eError,eError,eStart,eStart,eStart,eStart,eError,eError,#c0-c7\n eError,eError,eError,eError,eError,eError,eError,eError #c8-cf\n)\n\nUTF8CharLenTable = (0, 1, 0, 0, 0, 0, 2, 3, 3, 3, 4, 4, 5, 5, 6, 6)\n\nUTF8SMModel = {'classTable': UTF8_cls,\n 'classFactor': 16,\n 'stateTable': UTF8_st,\n 'charLenTable': UTF8CharLenTable,\n 'name': 'UTF-8'}\n\n# flake8: noqa\n"},{"col":4,"comment":"null","endLoc":271,"header":"@classmethod\n def now(cls, tz: _TzInfo | None = None) -> Self","id":469,"name":"now","nodeType":"Function","startLoc":270,"text":"@classmethod\n def now(cls, tz: _TzInfo | None = None) -> Self: ..."},{"col":4,"comment":"null","endLoc":274,"header":"@classmethod\n @deprecated(\"Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)\")\n def utcnow(cls) -> Self","id":470,"name":"utcnow","nodeType":"Function","startLoc":272,"text":"@classmethod\n @deprecated(\"Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)\")\n def utcnow(cls) -> Self: ..."},{"attributeType":"(int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int)","col":0,"comment":"null","endLoc":32,"id":471,"name":"BIG5_cls","nodeType":"Attribute","startLoc":32,"text":"BIG5_cls"},{"col":4,"comment":"null","endLoc":31,"header":"def __init__(self, policy: CookiePolicy | None = None) -> None","id":472,"name":"__init__","nodeType":"Function","startLoc":31,"text":"def __init__(self, policy: CookiePolicy | None = None) -> None: ..."},{"col":4,"comment":"null","endLoc":276,"header":"@classmethod\n def combine(cls, date: _Date, time: _Time, tzinfo: _TzInfo | None = ...) -> Self","id":473,"name":"combine","nodeType":"Function","startLoc":275,"text":"@classmethod\n def combine(cls, date: _Date, time: _Time, tzinfo: _TzInfo | None = ...) -> Self: ..."},{"col":4,"comment":"null","endLoc":277,"header":"def timestamp(self) -> float","id":474,"name":"timestamp","nodeType":"Function","startLoc":277,"text":"def timestamp(self) -> float: ..."},{"col":4,"comment":"null","endLoc":278,"header":"def utctimetuple(self) -> struct_time","id":475,"name":"utctimetuple","nodeType":"Function","startLoc":278,"text":"def utctimetuple(self) -> struct_time: ..."},{"col":4,"comment":"null","endLoc":279,"header":"def date(self) -> _Date","id":476,"name":"date","nodeType":"Function","startLoc":279,"text":"def date(self) -> _Date: ..."},{"col":4,"comment":"null","endLoc":280,"header":"def time(self) -> _Time","id":477,"name":"time","nodeType":"Function","startLoc":280,"text":"def time(self) -> _Time: ..."},{"col":4,"comment":"null","endLoc":281,"header":"def timetz(self) -> _Time","id":478,"name":"timetz","nodeType":"Function","startLoc":281,"text":"def timetz(self) -> _Time: ..."},{"col":4,"comment":"null","endLoc":310,"header":"def replace(\n self,\n year: SupportsIndex = ...,\n month: SupportsIndex = ...,\n day: SupportsIndex = ...,\n hour: SupportsIndex = ...,\n minute: SupportsIndex = ...,\n second: SupportsIndex = ...,\n microsecond: SupportsIndex = ...,\n tzinfo: _TzInfo | None = ...,\n *,\n fold: int = ...,\n ) -> Self","id":479,"name":"replace","nodeType":"Function","startLoc":298,"text":"def replace(\n self,\n year: SupportsIndex = ...,\n month: SupportsIndex = ...,\n day: SupportsIndex = ...,\n hour: SupportsIndex = ...,\n minute: SupportsIndex = ...,\n second: SupportsIndex = ...,\n microsecond: SupportsIndex = ...,\n tzinfo: _TzInfo | None = ...,\n *,\n fold: int = ...,\n ) -> Self: ..."},{"col":4,"comment":"null","endLoc":311,"header":"def astimezone(self, tz: _TzInfo | None = ...) -> Self","id":480,"name":"astimezone","nodeType":"Function","startLoc":311,"text":"def astimezone(self, tz: _TzInfo | None = ...) -> Self: ..."},{"col":4,"comment":"null","endLoc":312,"header":"def isoformat(self, sep: str = ..., timespec: str = ...) -> str","id":481,"name":"isoformat","nodeType":"Function","startLoc":312,"text":"def isoformat(self, sep: str = ..., timespec: str = ...) -> str: ..."},{"col":4,"comment":"null","endLoc":314,"header":"@classmethod\n def strptime(cls, date_string: str, format: str, /) -> Self","id":482,"name":"strptime","nodeType":"Function","startLoc":313,"text":"@classmethod\n def strptime(cls, date_string: str, format: str, /) -> Self: ..."},{"col":4,"comment":"null","endLoc":315,"header":"def utcoffset(self) -> timedelta | None","id":483,"name":"utcoffset","nodeType":"Function","startLoc":315,"text":"def utcoffset(self) -> timedelta | None: ..."},{"col":4,"comment":"null","endLoc":316,"header":"def tzname(self) -> str | None","id":484,"name":"tzname","nodeType":"Function","startLoc":316,"text":"def tzname(self) -> str | None: ..."},{"col":4,"comment":"null","endLoc":317,"header":"def dst(self) -> timedelta | None","id":485,"name":"dst","nodeType":"Function","startLoc":317,"text":"def dst(self) -> timedelta | None: ..."},{"col":4,"comment":"null","endLoc":318,"header":"def __le__(self, value: datetime, /) -> bool","id":486,"name":"__le__","nodeType":"Function","startLoc":318,"text":"def __le__(self, value: datetime, /) -> bool: ... # type: ignore[override]"},{"col":4,"comment":"null","endLoc":319,"header":"def __lt__(self, value: datetime, /) -> bool","id":487,"name":"__lt__","nodeType":"Function","startLoc":319,"text":"def __lt__(self, value: datetime, /) -> bool: ... # type: ignore[override]"},{"col":4,"comment":"null","endLoc":320,"header":"def __ge__(self, value: datetime, /) -> bool","id":488,"name":"__ge__","nodeType":"Function","startLoc":320,"text":"def __ge__(self, value: datetime, /) -> bool: ... # type: ignore[override]"},{"col":4,"comment":"null","endLoc":321,"header":"def __gt__(self, value: datetime, /) -> bool","id":489,"name":"__gt__","nodeType":"Function","startLoc":321,"text":"def __gt__(self, value: datetime, /) -> bool: ... # type: ignore[override]"},{"attributeType":"(Any, Any, Any, int, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any)","col":0,"comment":"null","endLoc":67,"id":490,"name":"BIG5_st","nodeType":"Attribute","startLoc":67,"text":"BIG5_st"},{"col":4,"comment":"null","endLoc":322,"header":"def __eq__(self, value: object, /) -> bool","id":491,"name":"__eq__","nodeType":"Function","startLoc":322,"text":"def __eq__(self, value: object, /) -> bool: ..."},{"col":4,"comment":"null","endLoc":323,"header":"def __hash__(self) -> int","id":492,"name":"__hash__","nodeType":"Function","startLoc":323,"text":"def __hash__(self) -> int: ..."},{"col":4,"comment":"null","endLoc":325,"header":"@overload # type: ignore[override]\n def __sub__(self, value: Self, /) -> timedelta","id":493,"name":"__sub__","nodeType":"Function","startLoc":324,"text":"@overload # type: ignore[override]\n def __sub__(self, value: Self, /) -> timedelta: ..."},{"fileName":"models.py","filePath":"requests","id":494,"nodeType":"File","text":"# -*- coding: utf-8 -*-\n\n\"\"\"\nrequests.models\n~~~~~~~~~~~~~~~\n\nThis module contains the primary objects that power Requests.\n\"\"\"\n\nimport collections\nimport logging\nimport datetime\n\nfrom io import BytesIO, UnsupportedOperation\nfrom .hooks import default_hooks\nfrom .structures import CaseInsensitiveDict\n\nfrom .auth import HTTPBasicAuth\nfrom .cookies import cookiejar_from_dict, get_cookie_header\nfrom .packages.urllib3.fields import RequestField\nfrom .packages.urllib3.filepost import encode_multipart_formdata\nfrom .packages.urllib3.util import parse_url\nfrom .exceptions import (\n HTTPError, RequestException, MissingSchema, InvalidURL,\n ChunkedEncodingError)\nfrom .utils import (\n guess_filename, get_auth_from_url, requote_uri,\n stream_decode_response_unicode, to_key_val_list, parse_header_links,\n iter_slices, guess_json_utf, super_len, to_native_string)\nfrom .compat import (\n cookielib, urlunparse, urlsplit, urlencode, str, bytes, StringIO,\n is_py2, chardet, json, builtin_str, basestring, IncompleteRead)\n\nCONTENT_CHUNK_SIZE = 10 * 1024\nITER_CHUNK_SIZE = 512\n\nlog = logging.getLogger(__name__)\n\n\nclass RequestEncodingMixin(object):\n @property\n def path_url(self):\n \"\"\"Build the path URL to use.\"\"\"\n\n url = []\n\n p = urlsplit(self.url)\n\n path = p.path\n if not path:\n path = '/'\n\n url.append(path)\n\n query = p.query\n if query:\n url.append('?')\n url.append(query)\n\n return ''.join(url)\n\n @staticmethod\n def _encode_params(data):\n \"\"\"Encode parameters in a piece of data.\n\n Will successfully encode parameters when passed as a dict or a list of\n 2-tuples. Order is retained if data is a list of 2-tuples but arbitrary\n if parameters are supplied as a dict.\n \"\"\"\n\n if isinstance(data, (str, bytes)):\n return data\n elif hasattr(data, 'read'):\n return data\n elif hasattr(data, '__iter__'):\n result = []\n for k, vs in to_key_val_list(data):\n if isinstance(vs, basestring) or not hasattr(vs, '__iter__'):\n vs = [vs]\n for v in vs:\n if v is not None:\n result.append(\n (k.encode('utf-8') if isinstance(k, str) else k,\n v.encode('utf-8') if isinstance(v, str) else v))\n return urlencode(result, doseq=True)\n else:\n return data\n\n @staticmethod\n def _encode_files(files, data):\n \"\"\"Build the body for a multipart/form-data request.\n\n Will successfully encode files when passed as a dict or a list of\n 2-tuples. Order is retained if data is a list of 2-tuples but arbitrary\n if parameters are supplied as a dict.\n\n \"\"\"\n if (not files):\n raise ValueError(\"Files must be provided.\")\n elif isinstance(data, basestring):\n raise ValueError(\"Data must not be a string.\")\n\n new_fields = []\n fields = to_key_val_list(data or {})\n files = to_key_val_list(files or {})\n\n for field, val in fields:\n if isinstance(val, basestring) or not hasattr(val, '__iter__'):\n val = [val]\n for v in val:\n if v is not None:\n # Don't call str() on bytestrings: in Py3 it all goes wrong.\n if not isinstance(v, bytes):\n v = str(v)\n\n new_fields.append(\n (field.decode('utf-8') if isinstance(field, bytes) else field,\n v.encode('utf-8') if isinstance(v, str) else v))\n\n for (k, v) in files:\n # support for explicit filename\n ft = None\n fh = None\n if isinstance(v, (tuple, list)):\n if len(v) == 2:\n fn, fp = v\n elif len(v) == 3:\n fn, fp, ft = v\n else:\n fn, fp, ft, fh = v\n else:\n fn = guess_filename(v) or k\n fp = v\n if isinstance(fp, str):\n fp = StringIO(fp)\n if isinstance(fp, bytes):\n fp = BytesIO(fp)\n\n rf = RequestField(name=k, data=fp.read(),\n filename=fn, headers=fh)\n rf.make_multipart(content_type=ft)\n new_fields.append(rf)\n\n body, content_type = encode_multipart_formdata(new_fields)\n\n return body, content_type\n\n\nclass RequestHooksMixin(object):\n def register_hook(self, event, hook):\n \"\"\"Properly register a hook.\"\"\"\n\n if event not in self.hooks:\n raise ValueError('Unsupported event specified, with event name \"%s\"' % (event))\n\n if isinstance(hook, collections.Callable):\n self.hooks[event].append(hook)\n elif hasattr(hook, '__iter__'):\n self.hooks[event].extend(h for h in hook if isinstance(h, collections.Callable))\n\n def deregister_hook(self, event, hook):\n \"\"\"Deregister a previously registered hook.\n Returns True if the hook existed, False if not.\n \"\"\"\n\n try:\n self.hooks[event].remove(hook)\n return True\n except ValueError:\n return False\n\n\nclass Request(RequestHooksMixin):\n \"\"\"A user-created :class:`Request ` object.\n\n Used to prepare a :class:`PreparedRequest `, which is sent to the server.\n\n :param method: HTTP method to use.\n :param url: URL to send.\n :param headers: dictionary of headers to send.\n :param files: dictionary of {filename: fileobject} files to multipart upload.\n :param data: the body to attach the request. If a dictionary is provided, form-encoding will take place.\n :param params: dictionary of URL parameters to append to the URL.\n :param auth: Auth handler or (user, pass) tuple.\n :param cookies: dictionary or CookieJar of cookies to attach to this request.\n :param hooks: dictionary of callback hooks, for internal usage.\n\n Usage::\n\n >>> import requests\n >>> req = requests.Request('GET', 'http://httpbin.org/get')\n >>> req.prepare()\n \n\n \"\"\"\n def __init__(self,\n method=None,\n url=None,\n headers=None,\n files=None,\n data=None,\n params=None,\n auth=None,\n cookies=None,\n hooks=None):\n\n # Default empty dicts for dict params.\n data = [] if data is None else data\n files = [] if files is None else files\n headers = {} if headers is None else headers\n params = {} if params is None else params\n hooks = {} if hooks is None else hooks\n\n self.hooks = default_hooks()\n for (k, v) in list(hooks.items()):\n self.register_hook(event=k, hook=v)\n\n self.method = method\n self.url = url\n self.headers = headers\n self.files = files\n self.data = data\n self.params = params\n self.auth = auth\n self.cookies = cookies\n\n def __repr__(self):\n return '' % (self.method)\n\n def prepare(self):\n \"\"\"Constructs a :class:`PreparedRequest ` for transmission and returns it.\"\"\"\n p = PreparedRequest()\n p.prepare(\n method=self.method,\n url=self.url,\n headers=self.headers,\n files=self.files,\n data=self.data,\n params=self.params,\n auth=self.auth,\n cookies=self.cookies,\n hooks=self.hooks,\n )\n return p\n\n\nclass PreparedRequest(RequestEncodingMixin, RequestHooksMixin):\n \"\"\"The fully mutable :class:`PreparedRequest ` object,\n containing the exact bytes that will be sent to the server.\n\n Generated from either a :class:`Request ` object or manually.\n\n Usage::\n\n >>> import requests\n >>> req = requests.Request('GET', 'http://httpbin.org/get')\n >>> r = req.prepare()\n \n\n >>> s = requests.Session()\n >>> s.send(r)\n \n\n \"\"\"\n\n def __init__(self):\n #: HTTP verb to send to the server.\n self.method = None\n #: HTTP URL to send the request to.\n self.url = None\n #: dictionary of HTTP headers.\n self.headers = None\n #: request body to send to the server.\n self.body = None\n #: dictionary of callback hooks, for internal usage.\n self.hooks = default_hooks()\n\n def prepare(self, method=None, url=None, headers=None, files=None,\n data=None, params=None, auth=None, cookies=None, hooks=None):\n \"\"\"Prepares the entire request with the given parameters.\"\"\"\n\n self.prepare_method(method)\n self.prepare_url(url, params)\n self.prepare_headers(headers)\n self.prepare_cookies(cookies)\n self.prepare_body(data, files)\n self.prepare_auth(auth, url)\n # Note that prepare_auth must be last to enable authentication schemes\n # such as OAuth to work on a fully prepared request.\n\n # This MUST go after prepare_auth. Authenticators could add a hook\n self.prepare_hooks(hooks)\n\n def __repr__(self):\n return '' % (self.method)\n\n def copy(self):\n p = PreparedRequest()\n p.method = self.method\n p.url = self.url\n p.headers = self.headers.copy()\n p.body = self.body\n p.hooks = self.hooks\n return p\n\n def prepare_method(self, method):\n \"\"\"Prepares the given HTTP method.\"\"\"\n self.method = method\n if self.method is not None:\n self.method = self.method.upper()\n\n def prepare_url(self, url, params):\n \"\"\"Prepares the given HTTP URL.\"\"\"\n #: Accept objects that have string representations.\n try:\n url = unicode(url)\n except NameError:\n # We're on Python 3.\n url = str(url)\n except UnicodeDecodeError:\n pass\n\n # Support for unicode domain names and paths.\n scheme, auth, host, port, path, query, fragment = parse_url(url)\n\n if not scheme:\n raise MissingSchema(\"Invalid URL {0!r}: No schema supplied. \"\n \"Perhaps you meant http://{0}?\".format(url))\n\n if not host:\n raise InvalidURL(\"Invalid URL %r: No host supplied\" % url)\n\n # Only want to apply IDNA to the hostname\n try:\n host = host.encode('idna').decode('utf-8')\n except UnicodeError:\n raise InvalidURL('URL has an invalid label.')\n\n # Carefully reconstruct the network location\n netloc = auth or ''\n if netloc:\n netloc += '@'\n netloc += host\n if port:\n netloc += ':' + str(port)\n\n # Bare domains aren't valid URLs.\n if not path:\n path = '/'\n\n if is_py2:\n if isinstance(scheme, str):\n scheme = scheme.encode('utf-8')\n if isinstance(netloc, str):\n netloc = netloc.encode('utf-8')\n if isinstance(path, str):\n path = path.encode('utf-8')\n if isinstance(query, str):\n query = query.encode('utf-8')\n if isinstance(fragment, str):\n fragment = fragment.encode('utf-8')\n\n enc_params = self._encode_params(params)\n if enc_params:\n if query:\n query = '%s&%s' % (query, enc_params)\n else:\n query = enc_params\n\n url = requote_uri(urlunparse([scheme, netloc, path, None, query, fragment]))\n self.url = url\n\n def prepare_headers(self, headers):\n \"\"\"Prepares the given HTTP headers.\"\"\"\n\n if headers:\n self.headers = CaseInsensitiveDict((to_native_string(name), value) for name, value in headers.items())\n else:\n self.headers = CaseInsensitiveDict()\n\n def prepare_body(self, data, files):\n \"\"\"Prepares the given HTTP body data.\"\"\"\n\n # Check if file, fo, generator, iterator.\n # If not, run through normal process.\n\n # Nottin' on you.\n body = None\n content_type = None\n length = None\n\n is_stream = all([\n hasattr(data, '__iter__'),\n not isinstance(data, basestring),\n not isinstance(data, list),\n not isinstance(data, dict)\n ])\n\n try:\n length = super_len(data)\n except (TypeError, AttributeError, UnsupportedOperation):\n length = None\n\n if is_stream:\n body = data\n\n if files:\n raise NotImplementedError('Streamed bodies and files are mutually exclusive.')\n\n if length is not None:\n self.headers['Content-Length'] = builtin_str(length)\n else:\n self.headers['Transfer-Encoding'] = 'chunked'\n else:\n # Multi-part file uploads.\n if files:\n (body, content_type) = self._encode_files(files, data)\n else:\n if data:\n body = self._encode_params(data)\n if isinstance(data, str) or isinstance(data, builtin_str) or hasattr(data, 'read'):\n content_type = None\n else:\n content_type = 'application/x-www-form-urlencoded'\n\n self.prepare_content_length(body)\n\n # Add content-type if it wasn't explicitly provided.\n if (content_type) and (not 'content-type' in self.headers):\n self.headers['Content-Type'] = content_type\n\n self.body = body\n\n def prepare_content_length(self, body):\n if hasattr(body, 'seek') and hasattr(body, 'tell'):\n body.seek(0, 2)\n self.headers['Content-Length'] = builtin_str(body.tell())\n body.seek(0, 0)\n elif body is not None:\n l = super_len(body)\n if l:\n self.headers['Content-Length'] = builtin_str(l)\n elif self.method not in ('GET', 'HEAD'):\n self.headers['Content-Length'] = '0'\n\n def prepare_auth(self, auth, url=''):\n \"\"\"Prepares the given HTTP auth data.\"\"\"\n\n # If no Auth is explicitly provided, extract it from the URL first.\n if auth is None:\n url_auth = get_auth_from_url(self.url)\n auth = url_auth if any(url_auth) else None\n\n if auth:\n if isinstance(auth, tuple) and len(auth) == 2:\n # special-case basic HTTP auth\n auth = HTTPBasicAuth(*auth)\n\n # Allow auth to make its changes.\n r = auth(self)\n\n # Update self to reflect the auth changes.\n self.__dict__.update(r.__dict__)\n\n # Recompute Content-Length\n self.prepare_content_length(self.body)\n\n def prepare_cookies(self, cookies):\n \"\"\"Prepares the given HTTP cookie data.\"\"\"\n\n if isinstance(cookies, cookielib.CookieJar):\n cookies = cookies\n else:\n cookies = cookiejar_from_dict(cookies)\n\n if 'cookie' not in self.headers:\n cookie_header = get_cookie_header(cookies, self)\n if cookie_header is not None:\n self.headers['Cookie'] = cookie_header\n\n def prepare_hooks(self, hooks):\n \"\"\"Prepares the given hooks.\"\"\"\n for event in hooks:\n self.register_hook(event, hooks[event])\n\n\nclass Response(object):\n \"\"\"The :class:`Response ` object, which contains a\n server's response to an HTTP request.\n \"\"\"\n\n def __init__(self):\n super(Response, self).__init__()\n\n self._content = False\n self._content_consumed = False\n\n #: Integer Code of responded HTTP Status.\n self.status_code = None\n\n #: Case-insensitive Dictionary of Response Headers.\n #: For example, ``headers['content-encoding']`` will return the\n #: value of a ``'Content-Encoding'`` response header.\n self.headers = CaseInsensitiveDict()\n\n #: File-like object representation of response (for advanced usage).\n #: Requires that ``stream=True` on the request.\n # This requirement does not apply for use internally to Requests.\n self.raw = None\n\n #: Final URL location of Response.\n self.url = None\n\n #: Encoding to decode with when accessing r.text.\n self.encoding = None\n\n #: A list of :class:`Response ` objects from\n #: the history of the Request. Any redirect responses will end\n #: up here. The list is sorted from the oldest to the most recent request.\n self.history = []\n\n self.reason = None\n\n #: A CookieJar of Cookies the server sent back.\n self.cookies = cookiejar_from_dict({})\n\n #: The amount of time elapsed between sending the request\n #: and the arrival of the response (as a timedelta)\n self.elapsed = datetime.timedelta(0)\n\n def __repr__(self):\n return '' % (self.status_code)\n\n def __bool__(self):\n \"\"\"Returns true if :attr:`status_code` is 'OK'.\"\"\"\n return self.ok\n\n def __nonzero__(self):\n \"\"\"Returns true if :attr:`status_code` is 'OK'.\"\"\"\n return self.ok\n\n def __iter__(self):\n \"\"\"Allows you to use a response as an iterator.\"\"\"\n return self.iter_content(128)\n\n @property\n def ok(self):\n try:\n self.raise_for_status()\n except RequestException:\n return False\n return True\n\n @property\n def apparent_encoding(self):\n \"\"\"The apparent encoding, provided by the lovely Charade library\n (Thanks, Ian!).\"\"\"\n return chardet.detect(self.content)['encoding']\n\n def iter_content(self, chunk_size=1, decode_unicode=False):\n \"\"\"Iterates over the response data. When stream=True is set on the\n request, this avoids reading the content at once into memory for\n large responses. The chunk size is the number of bytes it should\n read into memory. This is not necessarily the length of each item\n returned as decoding can take place.\n \"\"\"\n if self._content_consumed:\n # simulate reading small chunks of the content\n return iter_slices(self._content, chunk_size)\n\n def generate():\n try:\n # Special case for urllib3.\n try:\n for chunk in self.raw.stream(chunk_size,\n decode_content=True):\n yield chunk\n except IncompleteRead as e:\n raise ChunkedEncodingError(e)\n except AttributeError:\n # Standard file-like object.\n while True:\n chunk = self.raw.read(chunk_size)\n if not chunk:\n break\n yield chunk\n\n self._content_consumed = True\n\n gen = generate()\n\n if decode_unicode:\n gen = stream_decode_response_unicode(gen, self)\n\n return gen\n\n def iter_lines(self, chunk_size=ITER_CHUNK_SIZE, decode_unicode=None):\n \"\"\"Iterates over the response data, one line at a time. When\n stream=True is set on the request, this avoids reading the\n content at once into memory for large responses.\n \"\"\"\n\n pending = None\n\n for chunk in self.iter_content(chunk_size=chunk_size,\n decode_unicode=decode_unicode):\n\n if pending is not None:\n chunk = pending + chunk\n lines = chunk.splitlines()\n\n if lines and lines[-1] and chunk and lines[-1][-1] == chunk[-1]:\n pending = lines.pop()\n else:\n pending = None\n\n for line in lines:\n yield line\n\n if pending is not None:\n yield pending\n\n @property\n def content(self):\n \"\"\"Content of the response, in bytes.\"\"\"\n\n if self._content is False:\n # Read the contents.\n try:\n if self._content_consumed:\n raise RuntimeError(\n 'The content for this response was already consumed')\n\n if self.status_code == 0:\n self._content = None\n else:\n self._content = bytes().join(self.iter_content(CONTENT_CHUNK_SIZE)) or bytes()\n\n except AttributeError:\n self._content = None\n\n self._content_consumed = True\n # don't need to release the connection; that's been handled by urllib3\n # since we exhausted the data.\n return self._content\n\n @property\n def text(self):\n \"\"\"Content of the response, in unicode.\n\n If Response.encoding is None, encoding will be guessed using\n ``charade``.\n \"\"\"\n\n # Try charset from content-type\n content = None\n encoding = self.encoding\n\n if not self.content:\n return str('')\n\n # Fallback to auto-detected encoding.\n if self.encoding is None:\n encoding = self.apparent_encoding\n\n # Decode unicode from given encoding.\n try:\n content = str(self.content, encoding, errors='replace')\n except (LookupError, TypeError):\n # A LookupError is raised if the encoding was not found which could\n # indicate a misspelling or similar mistake.\n #\n # A TypeError can be raised if encoding is None\n #\n # So we try blindly encoding.\n content = str(self.content, errors='replace')\n\n return content\n\n def json(self, **kwargs):\n \"\"\"Returns the json-encoded content of a response, if any.\n\n :param \\*\\*kwargs: Optional arguments that ``json.loads`` takes.\n \"\"\"\n\n if not self.encoding and len(self.content) > 3:\n # No encoding set. JSON RFC 4627 section 3 states we should expect\n # UTF-8, -16 or -32. Detect which one to use; If the detection or\n # decoding fails, fall back to `self.text` (using chardet to make\n # a best guess).\n encoding = guess_json_utf(self.content)\n if encoding is not None:\n return json.loads(self.content.decode(encoding), **kwargs)\n return json.loads(self.text, **kwargs)\n\n @property\n def links(self):\n \"\"\"Returns the parsed header links of the response, if any.\"\"\"\n\n header = self.headers.get('link')\n\n # l = MultiDict()\n l = {}\n\n if header:\n links = parse_header_links(header)\n\n for link in links:\n key = link.get('rel') or link.get('url')\n l[key] = link\n\n return l\n\n def raise_for_status(self):\n \"\"\"Raises stored :class:`HTTPError`, if one occurred.\"\"\"\n\n http_error_msg = ''\n\n if 400 <= self.status_code < 500:\n http_error_msg = '%s Client Error: %s' % (self.status_code, self.reason)\n\n elif 500 <= self.status_code < 600:\n http_error_msg = '%s Server Error: %s' % (self.status_code, self.reason)\n\n if http_error_msg:\n raise HTTPError(http_error_msg, response=self)\n\n def close(self):\n \"\"\"Closes the underlying file descriptor and releases the connection\n back to the pool.\n\n *Note: Should not normally need to be called explicitly.*\n \"\"\"\n return self.raw.release_conn()\n"},{"col":4,"comment":"null","endLoc":41,"header":"def get_charset_name(self)","id":495,"name":"get_charset_name","nodeType":"Function","startLoc":40,"text":"def get_charset_name(self):\n return \"EUC-TW\""},{"attributeType":"CodingStateMachine","col":8,"comment":"null","endLoc":36,"id":496,"name":"_mCodingSM","nodeType":"Attribute","startLoc":36,"text":"self._mCodingSM"},{"col":4,"comment":"null","endLoc":327,"header":"@overload\n def __sub__(self, value: timedelta, /) -> Self","id":497,"name":"__sub__","nodeType":"Function","startLoc":326,"text":"@overload\n def __sub__(self, value: timedelta, /) -> Self: ..."},{"className":"BytesIO","col":0,"comment":"null","endLoc":119,"id":498,"nodeType":"Class","startLoc":110,"text":"class BytesIO(BufferedIOBase, BinaryIO): # type: ignore[misc] # incompatible definitions of methods in the base classes\n def __init__(self, initial_bytes: ReadableBuffer = ...) -> None: ...\n # BytesIO does not contain a \"name\" field. This workaround is necessary\n # to allow BytesIO sub-classes to add this field, as it is defined\n # as a read-only property on IO[].\n name: Any\n def __enter__(self) -> Self: ...\n def getvalue(self) -> bytes: ...\n def getbuffer(self) -> memoryview: ...\n def read1(self, size: int | None = -1, /) -> bytes: ..."},{"attributeType":"datetime","col":4,"comment":"null","endLoc":230,"id":499,"name":"min","nodeType":"Attribute","startLoc":230,"text":"min"},{"attributeType":"EUCTWDistributionAnalysis","col":8,"comment":"null","endLoc":37,"id":500,"name":"_mDistributionAnalyzer","nodeType":"Attribute","startLoc":37,"text":"self._mDistributionAnalyzer"},{"col":4,"comment":" Check that a timeout attribute is valid\n\n :param value: The timeout value to validate\n :param name: The name of the timeout attribute to validate. This is used\n for clear error messages\n :return: the value\n :raises ValueError: if the type is not an integer or a float, or if it\n is a numeric value less than zero\n ","endLoc":162,"header":"@classmethod\n def _validate_timeout(cls, value, name)","id":501,"name":"_validate_timeout","nodeType":"Function","startLoc":130,"text":"@classmethod\n def _validate_timeout(cls, value, name):\n \"\"\" Check that a timeout attribute is valid\n\n :param value: The timeout value to validate\n :param name: The name of the timeout attribute to validate. This is used\n for clear error messages\n :return: the value\n :raises ValueError: if the type is not an integer or a float, or if it\n is a numeric value less than zero\n \"\"\"\n if value is _Default:\n return cls.DEFAULT_TIMEOUT\n\n if value is None or value is cls.DEFAULT_TIMEOUT:\n return value\n\n try:\n float(value)\n except (TypeError, ValueError):\n raise ValueError(\"Timeout value %s was %s, but it must be an \"\n \"int or float.\" % (name, value))\n\n try:\n if value < 0:\n raise ValueError(\"Attempted to set %s timeout to %s, but the \"\n \"timeout cannot be set to a value less \"\n \"than 0.\" % (name, value))\n except TypeError: # Python 3\n raise ValueError(\"Timeout value %s was %s, but it must be an \"\n \"int or float.\" % (name, value))\n\n return value"},{"col":0,"comment":"Make a cookie from underspecified parameters.\n\n By default, the pair of `name` and `value` will be set for the domain ''\n and sent on every request (this is sometimes called a \"supercookie\").\n ","endLoc":365,"header":"def create_cookie(name, value, **kwargs)","id":502,"name":"create_cookie","nodeType":"Function","startLoc":333,"text":"def create_cookie(name, value, **kwargs):\n \"\"\"Make a cookie from underspecified parameters.\n\n By default, the pair of `name` and `value` will be set for the domain ''\n and sent on every request (this is sometimes called a \"supercookie\").\n \"\"\"\n result = dict(\n version=0,\n name=name,\n value=value,\n port=None,\n domain='',\n path='/',\n secure=False,\n expires=None,\n discard=True,\n comment=None,\n comment_url=None,\n rest={'HttpOnly': None},\n rfc2109=False,)\n\n badargs = set(kwargs) - set(result)\n if badargs:\n err = 'create_cookie() got unexpected keyword arguments: %s'\n raise TypeError(err % list(badargs))\n\n result.update(kwargs)\n result['port_specified'] = bool(result['port'])\n result['domain_specified'] = bool(result['domain'])\n result['domain_initial_dot'] = result['domain'].startswith('.')\n result['path_specified'] = bool(result['path'])\n\n return cookielib.Cookie(**result)"},{"id":503,"name":"docs","nodeType":"Package"},{"id":504,"name":"MANIFEST.in","nodeType":"TextFile","path":"docs","text":"include HISTORY.rst README.rst LICENSE"},{"attributeType":"(int, int, int, int, int)","col":0,"comment":"null","endLoc":73,"id":505,"name":"Big5CharLenTable","nodeType":"Attribute","startLoc":73,"text":"Big5CharLenTable"},{"attributeType":"TypedDict","col":0,"comment":"null","endLoc":75,"id":506,"name":"Big5SMModel","nodeType":"Attribute","startLoc":75,"text":"Big5SMModel"},{"col":4,"comment":"null","endLoc":127,"header":"def __str__(self)","id":507,"name":"__str__","nodeType":"Function","startLoc":125,"text":"def __str__(self):\n return '%s(connect=%r, read=%r, total=%r)' % (\n type(self).__name__, self._connect, self._read, self.total)"},{"className":"BufferedIOBase","col":0,"comment":"null","endLoc":93,"id":508,"nodeType":"Class","startLoc":86,"text":"class BufferedIOBase(IOBase):\n raw: RawIOBase # This is not part of the BufferedIOBase API and may not exist on some implementations.\n def detach(self) -> RawIOBase: ...\n def readinto(self, buffer: WriteableBuffer, /) -> int: ...\n def write(self, buffer: ReadableBuffer, /) -> int: ...\n def readinto1(self, buffer: WriteableBuffer, /) -> int: ...\n def read(self, size: int | None = ..., /) -> bytes: ...\n def read1(self, size: int = ..., /) -> bytes: ..."},{"attributeType":"datetime","col":4,"comment":"null","endLoc":231,"id":509,"name":"max","nodeType":"Attribute","startLoc":231,"text":"max"},{"col":4,"comment":"null","endLoc":88,"header":"def detach(self) -> RawIOBase","id":510,"name":"detach","nodeType":"Function","startLoc":88,"text":"def detach(self) -> RawIOBase: ..."},{"col":4,"comment":"null","endLoc":89,"header":"def readinto(self, buffer: WriteableBuffer, /) -> int","id":511,"name":"readinto","nodeType":"Function","startLoc":89,"text":"def readinto(self, buffer: WriteableBuffer, /) -> int: ..."},{"col":4,"comment":"null","endLoc":90,"header":"def write(self, buffer: ReadableBuffer, /) -> int","id":512,"name":"write","nodeType":"Function","startLoc":90,"text":"def write(self, buffer: ReadableBuffer, /) -> int: ..."},{"col":4,"comment":"null","endLoc":91,"header":"def readinto1(self, buffer: WriteableBuffer, /) -> int","id":513,"name":"readinto1","nodeType":"Function","startLoc":91,"text":"def readinto1(self, buffer: WriteableBuffer, /) -> int: ..."},{"col":4,"comment":"null","endLoc":92,"header":"def read(self, size: int | None = ..., /) -> bytes","id":514,"name":"read","nodeType":"Function","startLoc":92,"text":"def read(self, size: int | None = ..., /) -> bytes: ..."},{"col":4,"comment":"null","endLoc":93,"header":"def read1(self, size: int = ..., /) -> bytes","id":515,"name":"read1","nodeType":"Function","startLoc":93,"text":"def read1(self, size: int = ..., /) -> bytes: ..."},{"attributeType":"RawIOBase","col":4,"comment":"null","endLoc":87,"id":516,"name":"raw","nodeType":"Attribute","startLoc":87,"text":"raw"},{"attributeType":"(int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int)","col":0,"comment":"null","endLoc":83,"id":517,"name":"CP949_cls","nodeType":"Attribute","startLoc":83,"text":"CP949_cls"},{"className":"OrderedDict","col":0,"comment":"null","endLoc":398,"id":518,"nodeType":"Class","startLoc":360,"text":"class OrderedDict(dict[_KT, _VT], Reversible[_KT], Generic[_KT, _VT]):\n def popitem(self, last: bool = True) -> tuple[_KT, _VT]: ...\n def move_to_end(self, key: _KT, last: bool = True) -> None: ...\n def copy(self) -> Self: ...\n def __reversed__(self) -> Iterator[_KT]: ...\n def keys(self) -> _odict_keys[_KT, _VT]: ...\n def items(self) -> _odict_items[_KT, _VT]: ...\n def values(self) -> _odict_values[_KT, _VT]: ...\n # The signature of OrderedDict.fromkeys should be kept in line with `dict.fromkeys`, modulo positional-only differences.\n # Like dict.fromkeys, its true signature is not expressible in the current type system.\n # See #3800 & https://github.com/python/typing/issues/548#issuecomment-683336963.\n @classmethod\n @overload\n def fromkeys(cls, iterable: Iterable[_T], value: None = None) -> OrderedDict[_T, Any | None]: ...\n @classmethod\n @overload\n def fromkeys(cls, iterable: Iterable[_T], value: _S) -> OrderedDict[_T, _S]: ...\n # Keep OrderedDict.setdefault in line with MutableMapping.setdefault, modulo positional-only differences.\n @overload\n def setdefault(self: OrderedDict[_KT, _T | None], key: _KT, default: None = None) -> _T | None: ...\n @overload\n def setdefault(self, key: _KT, default: _VT) -> _VT: ...\n # Same as dict.pop, but accepts keyword arguments\n @overload\n def pop(self, key: _KT) -> _VT: ...\n @overload\n def pop(self, key: _KT, default: _VT) -> _VT: ...\n @overload\n def pop(self, key: _KT, default: _T) -> _VT | _T: ...\n def __eq__(self, value: object, /) -> bool: ...\n if sys.version_info >= (3, 9):\n @overload\n def __or__(self, value: dict[_KT, _VT], /) -> Self: ...\n @overload\n def __or__(self, value: dict[_T1, _T2], /) -> OrderedDict[_KT | _T1, _VT | _T2]: ...\n @overload\n def __ror__(self, value: dict[_KT, _VT], /) -> Self: ...\n @overload\n def __ror__(self, value: dict[_T1, _T2], /) -> OrderedDict[_KT | _T1, _VT | _T2]: ... # type: ignore[misc]"},{"attributeType":"(Any, Any, int, Any, Any, Any, int, int, Any, int, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any)","col":0,"comment":"null","endLoc":102,"id":520,"name":"CP949_st","nodeType":"Attribute","startLoc":102,"text":"CP949_st"},{"col":4,"comment":"null","endLoc":361,"header":"def popitem(self, last: bool = True) -> tuple[_KT, _VT]","id":521,"name":"popitem","nodeType":"Function","startLoc":361,"text":"def popitem(self, last: bool = True) -> tuple[_KT, _VT]: ..."},{"col":4,"comment":"null","endLoc":362,"header":"def move_to_end(self, key: _KT, last: bool = True) -> None","id":522,"name":"move_to_end","nodeType":"Function","startLoc":362,"text":"def move_to_end(self, key: _KT, last: bool = True) -> None: ..."},{"col":4,"comment":"null","endLoc":363,"header":"def copy(self) -> Self","id":523,"name":"copy","nodeType":"Function","startLoc":363,"text":"def copy(self) -> Self: ..."},{"col":4,"comment":"null","endLoc":364,"header":"def __reversed__(self) -> Iterator[_KT]","id":524,"name":"__reversed__","nodeType":"Function","startLoc":364,"text":"def __reversed__(self) -> Iterator[_KT]: ..."},{"col":4,"comment":"null","endLoc":365,"header":"def keys(self) -> _odict_keys[_KT, _VT]","id":525,"name":"keys","nodeType":"Function","startLoc":365,"text":"def keys(self) -> _odict_keys[_KT, _VT]: ..."},{"col":4,"comment":"null","endLoc":366,"header":"def items(self) -> _odict_items[_KT, _VT]","id":526,"name":"items","nodeType":"Function","startLoc":366,"text":"def items(self) -> _odict_items[_KT, _VT]: ..."},{"col":4,"comment":"null","endLoc":367,"header":"def values(self) -> _odict_values[_KT, _VT]","id":527,"name":"values","nodeType":"Function","startLoc":367,"text":"def values(self) -> _odict_values[_KT, _VT]: ..."},{"col":4,"comment":"null","endLoc":373,"header":"@classmethod\n @overload\n def fromkeys(cls, iterable: Iterable[_T], value: None = None) -> OrderedDict[_T, Any | None]","id":528,"name":"fromkeys","nodeType":"Function","startLoc":371,"text":"@classmethod\n @overload\n def fromkeys(cls, iterable: Iterable[_T], value: None = None) -> OrderedDict[_T, Any | None]: ..."},{"col":4,"comment":"null","endLoc":376,"header":"@classmethod\n @overload\n def fromkeys(cls, iterable: Iterable[_T], value: _S) -> OrderedDict[_T, _S]","id":529,"name":"fromkeys","nodeType":"Function","startLoc":374,"text":"@classmethod\n @overload\n def fromkeys(cls, iterable: Iterable[_T], value: _S) -> OrderedDict[_T, _S]: ..."},{"col":4,"comment":"null","endLoc":379,"header":"@overload\n def setdefault(self: OrderedDict[_KT, _T | None], key: _KT, default: None = None) -> _T | None","id":530,"name":"setdefault","nodeType":"Function","startLoc":378,"text":"@overload\n def setdefault(self: OrderedDict[_KT, _T | None], key: _KT, default: None = None) -> _T | None: ..."},{"col":4,"comment":"null","endLoc":381,"header":"@overload\n def setdefault(self, key: _KT, default: _VT) -> _VT","id":531,"name":"setdefault","nodeType":"Function","startLoc":380,"text":"@overload\n def setdefault(self, key: _KT, default: _VT) -> _VT: ..."},{"col":4,"comment":"null","endLoc":384,"header":"@overload\n def pop(self, key: _KT) -> _VT","id":532,"name":"pop","nodeType":"Function","startLoc":383,"text":"@overload\n def pop(self, key: _KT) -> _VT: ..."},{"col":4,"comment":"null","endLoc":386,"header":"@overload\n def pop(self, key: _KT, default: _VT) -> _VT","id":533,"name":"pop","nodeType":"Function","startLoc":385,"text":"@overload\n def pop(self, key: _KT, default: _VT) -> _VT: ..."},{"col":4,"comment":"null","endLoc":388,"header":"@overload\n def pop(self, key: _KT, default: _T) -> _VT | _T","id":534,"name":"pop","nodeType":"Function","startLoc":387,"text":"@overload\n def pop(self, key: _KT, default: _T) -> _VT | _T: ..."},{"col":4,"comment":"null","endLoc":389,"header":"def __eq__(self, value: object, /) -> bool","id":535,"name":"__eq__","nodeType":"Function","startLoc":389,"text":"def __eq__(self, value: object, /) -> bool: ..."},{"col":8,"comment":"null","endLoc":392,"header":"@overload\n def __or__(self, value: dict[_KT, _VT], /) -> Self","id":536,"name":"__or__","nodeType":"Function","startLoc":391,"text":"@overload\n def __or__(self, value: dict[_KT, _VT], /) -> Self: ..."},{"col":8,"comment":"null","endLoc":394,"header":"@overload\n def __or__(self, value: dict[_T1, _T2], /) -> OrderedDict[_KT | _T1, _VT | _T2]","id":537,"name":"__or__","nodeType":"Function","startLoc":393,"text":"@overload\n def __or__(self, value: dict[_T1, _T2], /) -> OrderedDict[_KT | _T1, _VT | _T2]: ..."},{"col":8,"comment":"null","endLoc":396,"header":"@overload\n def __ror__(self, value: dict[_KT, _VT], /) -> Self","id":538,"name":"__ror__","nodeType":"Function","startLoc":395,"text":"@overload\n def __ror__(self, value: dict[_KT, _VT], /) -> Self: ..."},{"col":8,"comment":"null","endLoc":398,"header":"@overload\n def __ror__(self, value: dict[_T1, _T2], /) -> OrderedDict[_KT | _T1, _VT | _T2]","id":539,"name":"__ror__","nodeType":"Function","startLoc":397,"text":"@overload\n def __ror__(self, value: dict[_T1, _T2], /) -> OrderedDict[_KT | _T1, _VT | _T2]: ... # type: ignore[misc]"},{"className":"OrderedDict","col":0,"comment":"Dictionary that remembers insertion order","endLoc":260,"id":540,"nodeType":"Class","startLoc":17,"text":"class OrderedDict(dict):\n 'Dictionary that remembers insertion order'\n # An inherited dict maps keys to values.\n # The inherited dict provides __getitem__, __len__, __contains__, and get.\n # The remaining methods are order-aware.\n # Big-O running times for all methods are the same as for regular dictionaries.\n\n # The internal self.__map dictionary maps keys to links in a doubly linked list.\n # The circular doubly linked list starts and ends with a sentinel element.\n # The sentinel element never gets deleted (this simplifies the algorithm).\n # Each link is stored as a list of length three: [PREV, NEXT, KEY].\n\n def __init__(self, *args, **kwds):\n '''Initialize an ordered dictionary. Signature is the same as for\n regular dictionaries, but keyword arguments are not recommended\n because their insertion order is arbitrary.\n\n '''\n if len(args) > 1:\n raise TypeError('expected at most 1 arguments, got %d' % len(args))\n try:\n self.__root\n except AttributeError:\n self.__root = root = [] # sentinel node\n root[:] = [root, root, None]\n self.__map = {}\n self.__update(*args, **kwds)\n\n def __setitem__(self, key, value, dict_setitem=dict.__setitem__):\n 'od.__setitem__(i, y) <==> od[i]=y'\n # Setting a new item creates a new link which goes at the end of the linked\n # list, and the inherited dictionary is updated with the new key/value pair.\n if key not in self:\n root = self.__root\n last = root[0]\n last[1] = root[0] = self.__map[key] = [last, root, key]\n dict_setitem(self, key, value)\n\n def __delitem__(self, key, dict_delitem=dict.__delitem__):\n 'od.__delitem__(y) <==> del od[y]'\n # Deleting an existing item uses self.__map to find the link which is\n # then removed by updating the links in the predecessor and successor nodes.\n dict_delitem(self, key)\n link_prev, link_next, key = self.__map.pop(key)\n link_prev[1] = link_next\n link_next[0] = link_prev\n\n def __iter__(self):\n 'od.__iter__() <==> iter(od)'\n root = self.__root\n curr = root[1]\n while curr is not root:\n yield curr[2]\n curr = curr[1]\n\n def __reversed__(self):\n 'od.__reversed__() <==> reversed(od)'\n root = self.__root\n curr = root[0]\n while curr is not root:\n yield curr[2]\n curr = curr[0]\n\n def clear(self):\n 'od.clear() -> None. Remove all items from od.'\n try:\n for node in self.__map.itervalues():\n del node[:]\n root = self.__root\n root[:] = [root, root, None]\n self.__map.clear()\n except AttributeError:\n pass\n dict.clear(self)\n\n def popitem(self, last=True):\n '''od.popitem() -> (k, v), return and remove a (key, value) pair.\n Pairs are returned in LIFO order if last is true or FIFO order if false.\n\n '''\n if not self:\n raise KeyError('dictionary is empty')\n root = self.__root\n if last:\n link = root[0]\n link_prev = link[0]\n link_prev[1] = root\n root[0] = link_prev\n else:\n link = root[1]\n link_next = link[1]\n root[1] = link_next\n link_next[0] = root\n key = link[2]\n del self.__map[key]\n value = dict.pop(self, key)\n return key, value\n\n # -- the following methods do not depend on the internal structure --\n\n def keys(self):\n 'od.keys() -> list of keys in od'\n return list(self)\n\n def values(self):\n 'od.values() -> list of values in od'\n return [self[key] for key in self]\n\n def items(self):\n 'od.items() -> list of (key, value) pairs in od'\n return [(key, self[key]) for key in self]\n\n def iterkeys(self):\n 'od.iterkeys() -> an iterator over the keys in od'\n return iter(self)\n\n def itervalues(self):\n 'od.itervalues -> an iterator over the values in od'\n for k in self:\n yield self[k]\n\n def iteritems(self):\n 'od.iteritems -> an iterator over the (key, value) items in od'\n for k in self:\n yield (k, self[k])\n\n def update(*args, **kwds):\n '''od.update(E, **F) -> None. Update od from dict/iterable E and F.\n\n If E is a dict instance, does: for k in E: od[k] = E[k]\n If E has a .keys() method, does: for k in E.keys(): od[k] = E[k]\n Or if E is an iterable of items, does: for k, v in E: od[k] = v\n In either case, this is followed by: for k, v in F.items(): od[k] = v\n\n '''\n if len(args) > 2:\n raise TypeError('update() takes at most 2 positional '\n 'arguments (%d given)' % (len(args),))\n elif not args:\n raise TypeError('update() takes at least 1 argument (0 given)')\n self = args[0]\n # Make progressively weaker assumptions about \"other\"\n other = ()\n if len(args) == 2:\n other = args[1]\n if isinstance(other, dict):\n for key in other:\n self[key] = other[key]\n elif hasattr(other, 'keys'):\n for key in other.keys():\n self[key] = other[key]\n else:\n for key, value in other:\n self[key] = value\n for key, value in kwds.items():\n self[key] = value\n\n __update = update # let subclasses override update without breaking __init__\n\n __marker = object()\n\n def pop(self, key, default=__marker):\n '''od.pop(k[,d]) -> v, remove specified key and return the corresponding value.\n If key is not found, d is returned if given, otherwise KeyError is raised.\n\n '''\n if key in self:\n result = self[key]\n del self[key]\n return result\n if default is self.__marker:\n raise KeyError(key)\n return default\n\n def setdefault(self, key, default=None):\n 'od.setdefault(k[,d]) -> od.get(k,d), also set od[k]=d if k not in od'\n if key in self:\n return self[key]\n self[key] = default\n return default\n\n def __repr__(self, _repr_running={}):\n 'od.__repr__() <==> repr(od)'\n call_key = id(self), _get_ident()\n if call_key in _repr_running:\n return '...'\n _repr_running[call_key] = 1\n try:\n if not self:\n return '%s()' % (self.__class__.__name__,)\n return '%s(%r)' % (self.__class__.__name__, self.items())\n finally:\n del _repr_running[call_key]\n\n def __reduce__(self):\n 'Return state information for pickling'\n items = [[k, self[k]] for k in self]\n inst_dict = vars(self).copy()\n for k in vars(OrderedDict()):\n inst_dict.pop(k, None)\n if inst_dict:\n return (self.__class__, (items,), inst_dict)\n return self.__class__, (items,)\n\n def copy(self):\n 'od.copy() -> a shallow copy of od'\n return self.__class__(self)\n\n @classmethod\n def fromkeys(cls, iterable, value=None):\n '''OD.fromkeys(S[, v]) -> New ordered dictionary with keys from S\n and values equal to v (which defaults to None).\n\n '''\n d = cls()\n for key in iterable:\n d[key] = value\n return d\n\n def __eq__(self, other):\n '''od.__eq__(y) <==> od==y. Comparison to another OD is order-sensitive\n while comparison to a regular mapping is order-insensitive.\n\n '''\n if isinstance(other, OrderedDict):\n return len(self)==len(other) and self.items() == other.items()\n return dict.__eq__(self, other)\n\n def __ne__(self, other):\n return not self == other\n\n # -- the following methods are only used in Python 2.7 --\n\n def viewkeys(self):\n \"od.viewkeys() -> a set-like object providing a view on od's keys\"\n return KeysView(self)\n\n def viewvalues(self):\n \"od.viewvalues() -> an object providing a view on od's values\"\n return ValuesView(self)\n\n def viewitems(self):\n \"od.viewitems() -> a set-like object providing a view on od's items\"\n return ItemsView(self)"},{"className":"BinaryIO","col":0,"comment":"null","endLoc":816,"id":541,"nodeType":"Class","startLoc":814,"text":"class BinaryIO(IO[bytes]):\n @abstractmethod\n def __enter__(self) -> BinaryIO: ..."},{"attributeType":"(int, int, int, int, int, int, int, int, int, int)","col":0,"comment":"null","endLoc":113,"id":542,"name":"CP949CharLenTable","nodeType":"Attribute","startLoc":113,"text":"CP949CharLenTable"},{"attributeType":"TypedDict","col":0,"comment":"null","endLoc":115,"id":543,"name":"CP949SMModel","nodeType":"Attribute","startLoc":115,"text":"CP949SMModel"},{"className":"dict","col":0,"comment":"null","endLoc":1134,"id":544,"nodeType":"Class","startLoc":1063,"text":"class dict(MutableMapping[_KT, _VT], Generic[_KT, _VT]):\n # __init__ should be kept roughly in line with `collections.UserDict.__init__`, which has similar semantics\n # Also multiprocessing.managers.SyncManager.dict()\n @overload\n def __init__(self) -> None: ...\n @overload\n def __init__(self: dict[str, _VT], **kwargs: _VT) -> None: ...\n @overload\n def __init__(self, __map: SupportsKeysAndGetItem[_KT, _VT]) -> None: ...\n @overload\n def __init__(self: dict[str, _VT], __map: SupportsKeysAndGetItem[str, _VT], **kwargs: _VT) -> None: ...\n @overload\n def __init__(self, __iterable: Iterable[tuple[_KT, _VT]]) -> None: ...\n @overload\n def __init__(self: dict[str, _VT], __iterable: Iterable[tuple[str, _VT]], **kwargs: _VT) -> None: ...\n # Next two overloads are for dict(string.split(sep) for string in iterable)\n # Cannot be Iterable[Sequence[_T]] or otherwise dict([\"foo\", \"bar\", \"baz\"]) is not an error\n @overload\n def __init__(self: dict[str, str], __iterable: Iterable[list[str]]) -> None: ...\n @overload\n def __init__(self: dict[bytes, bytes], __iterable: Iterable[list[bytes]]) -> None: ...\n def __new__(cls, *args: Any, **kwargs: Any) -> Self: ...\n def copy(self) -> dict[_KT, _VT]: ...\n def keys(self) -> dict_keys[_KT, _VT]: ...\n def values(self) -> dict_values[_KT, _VT]: ...\n def items(self) -> dict_items[_KT, _VT]: ...\n # Signature of `dict.fromkeys` should be kept identical to `fromkeys` methods of `OrderedDict`/`ChainMap`/`UserDict` in `collections`\n # TODO: the true signature of `dict.fromkeys` is not expressible in the current type system.\n # See #3800 & https://github.com/python/typing/issues/548#issuecomment-683336963.\n @classmethod\n @overload\n def fromkeys(cls, __iterable: Iterable[_T], __value: None = None) -> dict[_T, Any | None]: ...\n @classmethod\n @overload\n def fromkeys(cls, __iterable: Iterable[_T], __value: _S) -> dict[_T, _S]: ...\n # Positional-only in dict, but not in MutableMapping\n @overload # type: ignore[override]\n def get(self, __key: _KT) -> _VT | None: ...\n @overload\n def get(self, __key: _KT, __default: _VT) -> _VT: ...\n @overload\n def get(self, __key: _KT, __default: _T) -> _VT | _T: ...\n @overload\n def pop(self, __key: _KT) -> _VT: ...\n @overload\n def pop(self, __key: _KT, __default: _VT) -> _VT: ...\n @overload\n def pop(self, __key: _KT, __default: _T) -> _VT | _T: ...\n def __len__(self) -> int: ...\n def __getitem__(self, __key: _KT) -> _VT: ...\n def __setitem__(self, __key: _KT, __value: _VT) -> None: ...\n def __delitem__(self, __key: _KT) -> None: ...\n def __iter__(self) -> Iterator[_KT]: ...\n def __eq__(self, __value: object) -> bool: ...\n if sys.version_info >= (3, 8):\n def __reversed__(self) -> Iterator[_KT]: ...\n __hash__: ClassVar[None] # type: ignore[assignment]\n if sys.version_info >= (3, 9):\n def __class_getitem__(cls, __item: Any) -> GenericAlias: ...\n @overload\n def __or__(self, __value: dict[_KT, _VT]) -> dict[_KT, _VT]: ...\n @overload\n def __or__(self, __value: dict[_T1, _T2]) -> dict[_KT | _T1, _VT | _T2]: ...\n @overload\n def __ror__(self, __value: dict[_KT, _VT]) -> dict[_KT, _VT]: ...\n @overload\n def __ror__(self, __value: dict[_T1, _T2]) -> dict[_KT | _T1, _VT | _T2]: ...\n # dict.__ior__ should be kept roughly in line with MutableMapping.update()\n @overload # type: ignore[misc]\n def __ior__(self, __value: SupportsKeysAndGetItem[_KT, _VT]) -> Self: ...\n @overload\n def __ior__(self, __value: Iterable[tuple[_KT, _VT]]) -> Self: ..."},{"attributeType":"(int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int)","col":0,"comment":"null","endLoc":123,"id":545,"name":"EUCJP_cls","nodeType":"Attribute","startLoc":123,"text":"EUCJP_cls"},{"col":4,"comment":" Create a new Timeout from a legacy timeout value.\n\n The timeout value used by httplib.py sets the same timeout on the\n connect(), and recv() socket requests. This creates a :class:`Timeout`\n object that sets the individual timeouts to the ``timeout`` value passed\n to this function.\n\n :param timeout: The legacy timeout value\n :type timeout: integer, float, sentinel default object, or None\n :return: a Timeout object\n :rtype: :class:`Timeout`\n ","endLoc":178,"header":"@classmethod\n def from_float(cls, timeout)","id":546,"name":"from_float","nodeType":"Function","startLoc":164,"text":"@classmethod\n def from_float(cls, timeout):\n \"\"\" Create a new Timeout from a legacy timeout value.\n\n The timeout value used by httplib.py sets the same timeout on the\n connect(), and recv() socket requests. This creates a :class:`Timeout`\n object that sets the individual timeouts to the ``timeout`` value passed\n to this function.\n\n :param timeout: The legacy timeout value\n :type timeout: integer, float, sentinel default object, or None\n :return: a Timeout object\n :rtype: :class:`Timeout`\n \"\"\"\n return Timeout(read=timeout, connect=timeout)"},{"attributeType":"(int, int, int, int, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, int, Any, int, Any, Any, Any, Any, Any, Any, Any)","col":0,"comment":"null","endLoc":158,"id":553,"name":"EUCJP_st","nodeType":"Attribute","startLoc":158,"text":"EUCJP_st"},{"attributeType":"str","col":0,"comment":"null","endLoc":5,"id":561,"name":"__version__","nodeType":"Attribute","startLoc":5,"text":"__version__"},{"col":0,"comment":"","endLoc":1,"header":"__init__.py#","id":562,"name":"","nodeType":"Function","startLoc":1,"text":"\"\"\"The match_hostname() function from Python 3.2, essential when using SSL.\"\"\"\n\n__version__ = '3.2.2'"},{"col":4,"comment":"null","endLoc":1084,"header":"def __new__(cls, *args: Any, **kwargs: Any) -> Self","id":563,"name":"__new__","nodeType":"Function","startLoc":1084,"text":"def __new__(cls, *args: Any, **kwargs: Any) -> Self: ..."},{"col":4,"comment":"null","endLoc":1085,"header":"def copy(self) -> dict[_KT, _VT]","id":564,"name":"copy","nodeType":"Function","startLoc":1085,"text":"def copy(self) -> dict[_KT, _VT]: ..."},{"col":4,"comment":"null","endLoc":1086,"header":"def keys(self) -> dict_keys[_KT, _VT]","id":565,"name":"keys","nodeType":"Function","startLoc":1086,"text":"def keys(self) -> dict_keys[_KT, _VT]: ..."},{"col":4,"comment":"null","endLoc":1087,"header":"def values(self) -> dict_values[_KT, _VT]","id":566,"name":"values","nodeType":"Function","startLoc":1087,"text":"def values(self) -> dict_values[_KT, _VT]: ..."},{"col":4,"comment":"null","endLoc":1088,"header":"def items(self) -> dict_items[_KT, _VT]","id":567,"name":"items","nodeType":"Function","startLoc":1088,"text":"def items(self) -> dict_items[_KT, _VT]: ..."},{"col":4,"comment":"null","endLoc":1094,"header":"@classmethod\n @overload\n def fromkeys(cls, __iterable: Iterable[_T], __value: None = None) -> dict[_T, Any | None]","id":568,"name":"fromkeys","nodeType":"Function","startLoc":1092,"text":"@classmethod\n @overload\n def fromkeys(cls, __iterable: Iterable[_T], __value: None = None) -> dict[_T, Any | None]: ..."},{"col":4,"comment":"null","endLoc":1097,"header":"@classmethod\n @overload\n def fromkeys(cls, __iterable: Iterable[_T], __value: _S) -> dict[_T, _S]","id":569,"name":"fromkeys","nodeType":"Function","startLoc":1095,"text":"@classmethod\n @overload\n def fromkeys(cls, __iterable: Iterable[_T], __value: _S) -> dict[_T, _S]: ..."},{"col":4,"comment":"null","endLoc":1100,"header":"@overload # type: ignore[override]\n def get(self, __key: _KT) -> _VT | None","id":570,"name":"get","nodeType":"Function","startLoc":1099,"text":"@overload # type: ignore[override]\n def get(self, __key: _KT) -> _VT | None: ..."},{"col":4,"comment":"null","endLoc":1102,"header":"@overload\n def get(self, __key: _KT, __default: _VT) -> _VT","id":571,"name":"get","nodeType":"Function","startLoc":1101,"text":"@overload\n def get(self, __key: _KT, __default: _VT) -> _VT: ..."},{"col":4,"comment":"null","endLoc":1104,"header":"@overload\n def get(self, __key: _KT, __default: _T) -> _VT | _T","id":572,"name":"get","nodeType":"Function","startLoc":1103,"text":"@overload\n def get(self, __key: _KT, __default: _T) -> _VT | _T: ..."},{"col":4,"comment":"null","endLoc":1106,"header":"@overload\n def pop(self, __key: _KT) -> _VT","id":573,"name":"pop","nodeType":"Function","startLoc":1105,"text":"@overload\n def pop(self, __key: _KT) -> _VT: ..."},{"col":4,"comment":"null","endLoc":1108,"header":"@overload\n def pop(self, __key: _KT, __default: _VT) -> _VT","id":574,"name":"pop","nodeType":"Function","startLoc":1107,"text":"@overload\n def pop(self, __key: _KT, __default: _VT) -> _VT: ..."},{"col":4,"comment":"null","endLoc":1110,"header":"@overload\n def pop(self, __key: _KT, __default: _T) -> _VT | _T","id":575,"name":"pop","nodeType":"Function","startLoc":1109,"text":"@overload\n def pop(self, __key: _KT, __default: _T) -> _VT | _T: ..."},{"col":4,"comment":"null","endLoc":1111,"header":"def __len__(self) -> int","id":576,"name":"__len__","nodeType":"Function","startLoc":1111,"text":"def __len__(self) -> int: ..."},{"col":4,"comment":"null","endLoc":1112,"header":"def __getitem__(self, __key: _KT) -> _VT","id":577,"name":"__getitem__","nodeType":"Function","startLoc":1112,"text":"def __getitem__(self, __key: _KT) -> _VT: ..."},{"col":4,"comment":"null","endLoc":1113,"header":"def __setitem__(self, __key: _KT, __value: _VT) -> None","id":578,"name":"__setitem__","nodeType":"Function","startLoc":1113,"text":"def __setitem__(self, __key: _KT, __value: _VT) -> None: ..."},{"col":4,"comment":"null","endLoc":1114,"header":"def __delitem__(self, __key: _KT) -> None","id":579,"name":"__delitem__","nodeType":"Function","startLoc":1114,"text":"def __delitem__(self, __key: _KT) -> None: ..."},{"col":4,"comment":"null","endLoc":1115,"header":"def __iter__(self) -> Iterator[_KT]","id":580,"name":"__iter__","nodeType":"Function","startLoc":1115,"text":"def __iter__(self) -> Iterator[_KT]: ..."},{"col":4,"comment":"null","endLoc":1116,"header":"def __eq__(self, __value: object) -> bool","id":581,"name":"__eq__","nodeType":"Function","startLoc":1116,"text":"def __eq__(self, __value: object) -> bool: ..."},{"col":8,"comment":"null","endLoc":1118,"header":"def __reversed__(self) -> Iterator[_KT]","id":582,"name":"__reversed__","nodeType":"Function","startLoc":1118,"text":"def __reversed__(self) -> Iterator[_KT]: ..."},{"col":8,"comment":"null","endLoc":1121,"header":"def __class_getitem__(cls, __item: Any) -> GenericAlias","id":583,"name":"__class_getitem__","nodeType":"Function","startLoc":1121,"text":"def __class_getitem__(cls, __item: Any) -> GenericAlias: ..."},{"col":8,"comment":"null","endLoc":1123,"header":"@overload\n def __or__(self, __value: dict[_KT, _VT]) -> dict[_KT, _VT]","id":584,"name":"__or__","nodeType":"Function","startLoc":1122,"text":"@overload\n def __or__(self, __value: dict[_KT, _VT]) -> dict[_KT, _VT]: ..."},{"col":8,"comment":"null","endLoc":1125,"header":"@overload\n def __or__(self, __value: dict[_T1, _T2]) -> dict[_KT | _T1, _VT | _T2]","id":585,"name":"__or__","nodeType":"Function","startLoc":1124,"text":"@overload\n def __or__(self, __value: dict[_T1, _T2]) -> dict[_KT | _T1, _VT | _T2]: ..."},{"col":8,"comment":"null","endLoc":1127,"header":"@overload\n def __ror__(self, __value: dict[_KT, _VT]) -> dict[_KT, _VT]","id":586,"name":"__ror__","nodeType":"Function","startLoc":1126,"text":"@overload\n def __ror__(self, __value: dict[_KT, _VT]) -> dict[_KT, _VT]: ..."},{"col":8,"comment":"null","endLoc":1129,"header":"@overload\n def __ror__(self, __value: dict[_T1, _T2]) -> dict[_KT | _T1, _VT | _T2]","id":587,"name":"__ror__","nodeType":"Function","startLoc":1128,"text":"@overload\n def __ror__(self, __value: dict[_T1, _T2]) -> dict[_KT | _T1, _VT | _T2]: ..."},{"col":8,"comment":"null","endLoc":1132,"header":"@overload # type: ignore[misc]\n def __ior__(self, __value: SupportsKeysAndGetItem[_KT, _VT]) -> Self","id":588,"name":"__ior__","nodeType":"Function","startLoc":1131,"text":"@overload # type: ignore[misc]\n def __ior__(self, __value: SupportsKeysAndGetItem[_KT, _VT]) -> Self: ..."},{"col":8,"comment":"null","endLoc":1134,"header":"@overload\n def __ior__(self, __value: Iterable[tuple[_KT, _VT]]) -> Self","id":589,"name":"__ior__","nodeType":"Function","startLoc":1133,"text":"@overload\n def __ior__(self, __value: Iterable[tuple[_KT, _VT]]) -> Self: ..."},{"attributeType":"None","col":4,"comment":"null","endLoc":1119,"id":590,"name":"__hash__","nodeType":"Attribute","startLoc":1119,"text":"__hash__"},{"fileName":"setup.py","filePath":"","id":591,"nodeType":"File","text":"#!/usr/bin/env python\n\nimport os\nimport sys\n\nimport requests\n\ntry:\n from setuptools import setup\nexcept ImportError:\n from distutils.core import setup\n\nif sys.argv[-1] == 'publish':\n os.system('python setup.py sdist upload')\n sys.exit()\n\npackages = [\n 'requests',\n 'requests.packages',\n 'requests.packages.charade',\n 'requests.packages.urllib3',\n 'requests.packages.urllib3.packages',\n 'requests.packages.urllib3.contrib',\n 'requests.packages.urllib3.packages.ssl_match_hostname'\n]\n\nrequires = []\n\nwith open('README.rst') as f:\n readme = f.read()\nwith open('HISTORY.rst') as f:\n history = f.read()\nwith open('LICENSE') as f:\n license = f.read()\n\nsetup(\n name='requests',\n version=requests.__version__,\n description='Python HTTP for Humans.',\n long_description=readme + '\\n\\n' + history,\n author='Kenneth Reitz',\n author_email='me@kennethreitz.com',\n url='http://python-requests.org',\n packages=packages,\n package_data={'': ['LICENSE', 'NOTICE'], 'requests': ['*.pem']},\n package_dir={'requests': 'requests'},\n include_package_data=True,\n install_requires=requires,\n license=license,\n zip_safe=False,\n classifiers=(\n 'Development Status :: 5 - Production/Stable',\n 'Intended Audience :: Developers',\n 'Natural Language :: English',\n 'License :: OSI Approved :: Apache Software License',\n 'Programming Language :: Python',\n 'Programming Language :: Python :: 2.6',\n 'Programming Language :: Python :: 2.7',\n 'Programming Language :: Python :: 3',\n 'Programming Language :: Python :: 3.3',\n\n ),\n)\n"},{"attributeType":"(int, int, int, int, int, int)","col":0,"comment":"null","endLoc":166,"id":592,"name":"EUCJPCharLenTable","nodeType":"Attribute","startLoc":166,"text":"EUCJPCharLenTable"},{"attributeType":"TypedDict","col":0,"comment":"null","endLoc":168,"id":593,"name":"EUCJPSMModel","nodeType":"Attribute","startLoc":168,"text":"EUCJPSMModel"},{"col":4,"comment":"null","endLoc":816,"header":"@abstractmethod\n def __enter__(self) -> BinaryIO","id":594,"name":"__enter__","nodeType":"Function","startLoc":815,"text":"@abstractmethod\n def __enter__(self) -> BinaryIO: ..."},{"col":4,"comment":"null","endLoc":111,"header":"def __init__(self, initial_bytes: ReadableBuffer = ...) -> None","id":595,"name":"__init__","nodeType":"Function","startLoc":111,"text":"def __init__(self, initial_bytes: ReadableBuffer = ...) -> None: ..."},{"col":4,"comment":"null","endLoc":116,"header":"def __enter__(self) -> Self","id":596,"name":"__enter__","nodeType":"Function","startLoc":116,"text":"def __enter__(self) -> Self: ..."},{"col":4,"comment":"null","endLoc":117,"header":"def getvalue(self) -> bytes","id":597,"name":"getvalue","nodeType":"Function","startLoc":117,"text":"def getvalue(self) -> bytes: ..."},{"col":4,"comment":"null","endLoc":118,"header":"def getbuffer(self) -> memoryview","id":598,"name":"getbuffer","nodeType":"Function","startLoc":118,"text":"def getbuffer(self) -> memoryview: ..."},{"col":4,"comment":"null","endLoc":119,"header":"def read1(self, size: int | None = -1, /) -> bytes","id":599,"name":"read1","nodeType":"Function","startLoc":119,"text":"def read1(self, size: int | None = -1, /) -> bytes: ..."},{"attributeType":"null","col":4,"comment":"null","endLoc":115,"id":600,"name":"name","nodeType":"Attribute","startLoc":115,"text":"name"},{"col":4,"comment":"Initialize an ordered dictionary. Signature is the same as for\n regular dictionaries, but keyword arguments are not recommended\n because their insertion order is arbitrary.\n\n ","endLoc":43,"header":"def __init__(self, *args, **kwds)","id":601,"name":"__init__","nodeType":"Function","startLoc":29,"text":"def __init__(self, *args, **kwds):\n '''Initialize an ordered dictionary. Signature is the same as for\n regular dictionaries, but keyword arguments are not recommended\n because their insertion order is arbitrary.\n\n '''\n if len(args) > 1:\n raise TypeError('expected at most 1 arguments, got %d' % len(args))\n try:\n self.__root\n except AttributeError:\n self.__root = root = [] # sentinel node\n root[:] = [root, root, None]\n self.__map = {}\n self.__update(*args, **kwds)"},{"attributeType":"(int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int)","col":0,"comment":"null","endLoc":176,"id":602,"name":"EUCKR_cls","nodeType":"Attribute","startLoc":176,"text":"EUCKR_cls"},{"col":0,"comment":"null","endLoc":74,"header":"def setup(\n *,\n name: str = ...,\n version: str = ...,\n description: str = ...,\n long_description: str = ...,\n long_description_content_type: str = ...,\n author: str = ...,\n author_email: str = ...,\n maintainer: str = ...,\n maintainer_email: str = ...,\n url: str = ...,\n download_url: str = ...,\n packages: list[str] = ...,\n py_modules: list[str] = ...,\n scripts: list[str] = ...,\n ext_modules: Sequence[Extension] = ...,\n classifiers: list[str] = ...,\n distclass: type[Distribution] = ...,\n script_name: str = ...,\n script_args: list[str] = ...,\n options: Mapping[str, Incomplete] = ...,\n license: str = ...,\n keywords: list[str] | str = ...,\n platforms: list[str] | str = ...,\n cmdclass: Mapping[str, type[_Command]] = ...,\n data_files: list[tuple[str, list[str]]] = ...,\n package_dir: Mapping[str, str] = ...,\n obsoletes: list[str] = ...,\n provides: list[str] = ...,\n requires: list[str] = ...,\n command_packages: list[str] = ...,\n command_options: Mapping[str, Mapping[str, tuple[Incomplete, Incomplete]]] = ...,\n package_data: Mapping[str, list[str]] = ...,\n include_package_data: bool = ...,\n libraries: list[str] = ...,\n headers: list[str] = ...,\n ext_package: str = ...,\n include_dirs: list[str] = ...,\n password: str = ...,\n fullname: str = ...,\n **attrs,\n) -> Distribution","id":603,"name":"setup","nodeType":"Function","startLoc":32,"text":"def setup(\n *,\n name: str = ...,\n version: str = ...,\n description: str = ...,\n long_description: str = ...,\n long_description_content_type: str = ...,\n author: str = ...,\n author_email: str = ...,\n maintainer: str = ...,\n maintainer_email: str = ...,\n url: str = ...,\n download_url: str = ...,\n packages: list[str] = ...,\n py_modules: list[str] = ...,\n scripts: list[str] = ...,\n ext_modules: Sequence[Extension] = ...,\n classifiers: list[str] = ...,\n distclass: type[Distribution] = ...,\n script_name: str = ...,\n script_args: list[str] = ...,\n options: Mapping[str, Incomplete] = ...,\n license: str = ...,\n keywords: list[str] | str = ...,\n platforms: list[str] | str = ...,\n cmdclass: Mapping[str, type[_Command]] = ...,\n data_files: list[tuple[str, list[str]]] = ...,\n package_dir: Mapping[str, str] = ...,\n obsoletes: list[str] = ...,\n provides: list[str] = ...,\n requires: list[str] = ...,\n command_packages: list[str] = ...,\n command_options: Mapping[str, Mapping[str, tuple[Incomplete, Incomplete]]] = ...,\n package_data: Mapping[str, list[str]] = ...,\n include_package_data: bool = ...,\n libraries: list[str] = ...,\n headers: list[str] = ...,\n ext_package: str = ...,\n include_dirs: list[str] = ...,\n password: str = ...,\n fullname: str = ...,\n **attrs,\n) -> Distribution: ..."},{"className":"UnsupportedOperation","col":0,"comment":"null","endLoc":51,"id":604,"nodeType":"Class","startLoc":51,"text":"class UnsupportedOperation(OSError, ValueError): ..."},{"attributeType":"(Any, Any, int, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any)","col":0,"comment":"null","endLoc":211,"id":605,"name":"EUCKR_st","nodeType":"Attribute","startLoc":211,"text":"EUCKR_st"},{"col":4,"comment":" Create a copy of the timeout object\n\n Timeout properties are stored per-pool but each request needs a fresh\n Timeout object to ensure each one has its own start/stop configured.\n\n :return: a copy of the timeout object\n :rtype: :class:`Timeout`\n ","endLoc":193,"header":"def clone(self)","id":606,"name":"clone","nodeType":"Function","startLoc":180,"text":"def clone(self):\n \"\"\" Create a copy of the timeout object\n\n Timeout properties are stored per-pool but each request needs a fresh\n Timeout object to ensure each one has its own start/stop configured.\n\n :return: a copy of the timeout object\n :rtype: :class:`Timeout`\n \"\"\"\n # We can't use copy.deepcopy because that will also create a new object\n # for _GLOBAL_DEFAULT_TIMEOUT, which socket.py uses as a sentinel to\n # detect the user default.\n return Timeout(connect=self._connect, read=self._read,\n total=self.total)"},{"attributeType":"(int, int, int, int)","col":0,"comment":"null","endLoc":216,"id":607,"name":"EUCKRCharLenTable","nodeType":"Attribute","startLoc":216,"text":"EUCKRCharLenTable"},{"col":0,"comment":"null","endLoc":24,"header":"def default_hooks()","id":608,"name":"default_hooks","nodeType":"Function","startLoc":20,"text":"def default_hooks():\n hooks = {}\n for event in HOOKS:\n hooks[event] = []\n return hooks"},{"attributeType":"TypedDict","col":0,"comment":"null","endLoc":218,"id":609,"name":"EUCKRSMModel","nodeType":"Attribute","startLoc":218,"text":"EUCKRSMModel"},{"className":"CaseInsensitiveDict","col":0,"comment":"\n A case-insensitive ``dict``-like object.\n\n Implements all methods and operations of\n ``collections.MutableMapping`` as well as dict's ``copy``. Also\n provides ``lower_items``.\n\n All keys are expected to be strings. The structure remembers the\n case of the last key to be set, and ``iter(instance)``,\n ``keys()``, ``items()``, ``iterkeys()``, and ``iteritems()``\n will contain case-sensitive keys. However, querying and contains\n testing is case insensitive:\n\n cid = CaseInsensitiveDict()\n cid['Accept'] = 'application/json'\n cid['aCCEPT'] == 'application/json' # True\n list(cid) == ['Accept'] # True\n\n For example, ``headers['content-encoding']`` will return the\n value of a ``'Content-Encoding'`` response header, regardless\n of how the header name was originally stored.\n\n If the constructor, ``.update``, or equality comparison\n operations are given keys that have equal ``.lower()``s, the\n behavior is undefined.\n\n ","endLoc":109,"id":610,"nodeType":"Class","startLoc":37,"text":"class CaseInsensitiveDict(collections.MutableMapping):\n \"\"\"\n A case-insensitive ``dict``-like object.\n\n Implements all methods and operations of\n ``collections.MutableMapping`` as well as dict's ``copy``. Also\n provides ``lower_items``.\n\n All keys are expected to be strings. The structure remembers the\n case of the last key to be set, and ``iter(instance)``,\n ``keys()``, ``items()``, ``iterkeys()``, and ``iteritems()``\n will contain case-sensitive keys. However, querying and contains\n testing is case insensitive:\n\n cid = CaseInsensitiveDict()\n cid['Accept'] = 'application/json'\n cid['aCCEPT'] == 'application/json' # True\n list(cid) == ['Accept'] # True\n\n For example, ``headers['content-encoding']`` will return the\n value of a ``'Content-Encoding'`` response header, regardless\n of how the header name was originally stored.\n\n If the constructor, ``.update``, or equality comparison\n operations are given keys that have equal ``.lower()``s, the\n behavior is undefined.\n\n \"\"\"\n def __init__(self, data=None, **kwargs):\n self._store = dict()\n if data is None:\n data = {}\n self.update(data, **kwargs)\n\n def __setitem__(self, key, value):\n # Use the lowercased key for lookups, but store the actual\n # key alongside the value.\n self._store[key.lower()] = (key, value)\n\n def __getitem__(self, key):\n return self._store[key.lower()][1]\n\n def __delitem__(self, key):\n del self._store[key.lower()]\n\n def __iter__(self):\n return (casedkey for casedkey, mappedvalue in self._store.values())\n\n def __len__(self):\n return len(self._store)\n\n def lower_items(self):\n \"\"\"Like iteritems(), but with all lowercase keys.\"\"\"\n return (\n (lowerkey, keyval[1])\n for (lowerkey, keyval)\n in self._store.items()\n )\n\n def __eq__(self, other):\n if isinstance(other, collections.Mapping):\n other = CaseInsensitiveDict(other)\n else:\n return NotImplemented\n # Compare insensitively\n return dict(self.lower_items()) == dict(other.lower_items())\n\n # Copy is required\n def copy(self):\n return CaseInsensitiveDict(self._store.values())\n\n def __repr__(self):\n return '%s(%r)' % (self.__class__.__name__, dict(self.items()))"},{"col":4,"comment":"null","endLoc":74,"header":"def __setitem__(self, key, value)","id":611,"name":"__setitem__","nodeType":"Function","startLoc":71,"text":"def __setitem__(self, key, value):\n # Use the lowercased key for lookups, but store the actual\n # key alongside the value.\n self._store[key.lower()] = (key, value)"},{"col":4,"comment":" Start the timeout clock, used during a connect() attempt\n\n :raises urllib3.exceptions.TimeoutStateError: if you attempt\n to start a timer that has been started already.\n ","endLoc":204,"header":"def start_connect(self)","id":612,"name":"start_connect","nodeType":"Function","startLoc":195,"text":"def start_connect(self):\n \"\"\" Start the timeout clock, used during a connect() attempt\n\n :raises urllib3.exceptions.TimeoutStateError: if you attempt\n to start a timer that has been started already.\n \"\"\"\n if self._start_connect is not None:\n raise TimeoutStateError(\"Timeout timer has already been started.\")\n self._start_connect = current_time()\n return self._start_connect"},{"col":0,"comment":"\n Retrieve the current time, this function is mocked out in unit testing.\n ","endLoc":48,"header":"def current_time()","id":613,"name":"current_time","nodeType":"Function","startLoc":44,"text":"def current_time():\n \"\"\"\n Retrieve the current time, this function is mocked out in unit testing.\n \"\"\"\n return time.time()"},{"col":4,"comment":"od.update(E, **F) -> None. Update od from dict/iterable E and F.\n\n If E is a dict instance, does: for k in E: od[k] = E[k]\n If E has a .keys() method, does: for k in E.keys(): od[k] = E[k]\n Or if E is an iterable of items, does: for k, v in E: od[k] = v\n In either case, this is followed by: for k, v in F.items(): od[k] = v\n\n ","endLoc":172,"header":"def update(*args, **kwds)","id":614,"name":"update","nodeType":"Function","startLoc":143,"text":"def update(*args, **kwds):\n '''od.update(E, **F) -> None. Update od from dict/iterable E and F.\n\n If E is a dict instance, does: for k in E: od[k] = E[k]\n If E has a .keys() method, does: for k in E.keys(): od[k] = E[k]\n Or if E is an iterable of items, does: for k, v in E: od[k] = v\n In either case, this is followed by: for k, v in F.items(): od[k] = v\n\n '''\n if len(args) > 2:\n raise TypeError('update() takes at most 2 positional '\n 'arguments (%d given)' % (len(args),))\n elif not args:\n raise TypeError('update() takes at least 1 argument (0 given)')\n self = args[0]\n # Make progressively weaker assumptions about \"other\"\n other = ()\n if len(args) == 2:\n other = args[1]\n if isinstance(other, dict):\n for key in other:\n self[key] = other[key]\n elif hasattr(other, 'keys'):\n for key in other.keys():\n self[key] = other[key]\n else:\n for key, value in other:\n self[key] = value\n for key, value in kwds.items():\n self[key] = value"},{"col":4,"comment":"null","endLoc":77,"header":"def __getitem__(self, key)","id":615,"name":"__getitem__","nodeType":"Function","startLoc":76,"text":"def __getitem__(self, key):\n return self._store[key.lower()][1]"},{"attributeType":"(int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int)","col":0,"comment":"null","endLoc":226,"id":616,"name":"EUCTW_cls","nodeType":"Attribute","startLoc":226,"text":"EUCTW_cls"},{"col":0,"comment":"null","endLoc":56,"header":"def setup(\n *,\n name: str = ...,\n version: str = ...,\n description: str = ...,\n long_description: str = ...,\n author: str = ...,\n author_email: str = ...,\n maintainer: str = ...,\n maintainer_email: str = ...,\n url: str = ...,\n download_url: str = ...,\n packages: list[str] = ...,\n py_modules: list[str] = ...,\n scripts: list[str] = ...,\n ext_modules: list[Extension] = ...,\n classifiers: list[str] = ...,\n distclass: type[Distribution] = ...,\n script_name: str = ...,\n script_args: list[str] = ...,\n options: Mapping[str, Any] = ...,\n license: str = ...,\n keywords: list[str] | str = ...,\n platforms: list[str] | str = ...,\n cmdclass: Mapping[str, type[Command]] = ...,\n data_files: list[tuple[str, list[str]]] = ...,\n package_dir: Mapping[str, str] = ...,\n obsoletes: list[str] = ...,\n provides: list[str] = ...,\n requires: list[str] = ...,\n command_packages: list[str] = ...,\n command_options: Mapping[str, Mapping[str, tuple[Any, Any]]] = ...,\n package_data: Mapping[str, list[str]] = ...,\n include_package_data: bool | Literal[0, 1] = ...,\n libraries: list[str] = ...,\n headers: list[str] = ...,\n ext_package: str = ...,\n include_dirs: list[str] = ...,\n password: str = ...,\n fullname: str = ...,\n **attrs: Any,\n) -> Distribution","id":617,"name":"setup","nodeType":"Function","startLoc":15,"text":"def setup(\n *,\n name: str = ...,\n version: str = ...,\n description: str = ...,\n long_description: str = ...,\n author: str = ...,\n author_email: str = ...,\n maintainer: str = ...,\n maintainer_email: str = ...,\n url: str = ...,\n download_url: str = ...,\n packages: list[str] = ...,\n py_modules: list[str] = ...,\n scripts: list[str] = ...,\n ext_modules: list[Extension] = ...,\n classifiers: list[str] = ...,\n distclass: type[Distribution] = ...,\n script_name: str = ...,\n script_args: list[str] = ...,\n options: Mapping[str, Any] = ...,\n license: str = ...,\n keywords: list[str] | str = ...,\n platforms: list[str] | str = ...,\n cmdclass: Mapping[str, type[Command]] = ...,\n data_files: list[tuple[str, list[str]]] = ...,\n package_dir: Mapping[str, str] = ...,\n obsoletes: list[str] = ...,\n provides: list[str] = ...,\n requires: list[str] = ...,\n command_packages: list[str] = ...,\n command_options: Mapping[str, Mapping[str, tuple[Any, Any]]] = ...,\n package_data: Mapping[str, list[str]] = ...,\n include_package_data: bool | Literal[0, 1] = ...,\n libraries: list[str] = ...,\n headers: list[str] = ...,\n ext_package: str = ...,\n include_dirs: list[str] = ...,\n password: str = ...,\n fullname: str = ...,\n **attrs: Any,\n) -> Distribution: ..."},{"col":4,"comment":"null","endLoc":80,"header":"def __delitem__(self, key)","id":619,"name":"__delitem__","nodeType":"Function","startLoc":79,"text":"def __delitem__(self, key):\n del self._store[key.lower()]"},{"attributeType":"list","col":0,"comment":"null","endLoc":17,"id":620,"name":"packages","nodeType":"Attribute","startLoc":17,"text":"packages"},{"col":4,"comment":" Gets the time elapsed since the call to :meth:`start_connect`.\n\n :return: the elapsed time\n :rtype: float\n :raises urllib3.exceptions.TimeoutStateError: if you attempt\n to get duration for a timer that hasn't been started.\n ","endLoc":217,"header":"def get_connect_duration(self)","id":621,"name":"get_connect_duration","nodeType":"Function","startLoc":206,"text":"def get_connect_duration(self):\n \"\"\" Gets the time elapsed since the call to :meth:`start_connect`.\n\n :return: the elapsed time\n :rtype: float\n :raises urllib3.exceptions.TimeoutStateError: if you attempt\n to get duration for a timer that hasn't been started.\n \"\"\"\n if self._start_connect is None:\n raise TimeoutStateError(\"Can't get connect duration for timer \"\n \"that has not started.\")\n return current_time() - self._start_connect"},{"attributeType":"list","col":0,"comment":"null","endLoc":27,"id":622,"name":"requires","nodeType":"Attribute","startLoc":27,"text":"requires"},{"attributeType":"TextIO","col":27,"comment":"null","endLoc":29,"id":623,"name":"f","nodeType":"Attribute","startLoc":29,"text":"f"},{"attributeType":"(Any, Any, Any, int, int, int, int, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, int, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any)","col":0,"comment":"null","endLoc":261,"id":626,"name":"EUCTW_st","nodeType":"Attribute","startLoc":261,"text":"EUCTW_st"},{"col":4,"comment":"null","endLoc":83,"header":"def __iter__(self)","id":627,"name":"__iter__","nodeType":"Function","startLoc":82,"text":"def __iter__(self):\n return (casedkey for casedkey, mappedvalue in self._store.values())"},{"col":4,"comment":" Get the value to use when setting a connection timeout.\n\n This will be a positive float or integer, the value None\n (never timeout), or the default system timeout.\n\n :return: the connect timeout\n :rtype: int, float, :attr:`Timeout.DEFAULT_TIMEOUT` or None\n ","endLoc":235,"header":"@property\n def connect_timeout(self)","id":628,"name":"connect_timeout","nodeType":"Function","startLoc":219,"text":"@property\n def connect_timeout(self):\n \"\"\" Get the value to use when setting a connection timeout.\n\n This will be a positive float or integer, the value None\n (never timeout), or the default system timeout.\n\n :return: the connect timeout\n :rtype: int, float, :attr:`Timeout.DEFAULT_TIMEOUT` or None\n \"\"\"\n if self.total is None:\n return self._connect\n\n if self._connect is None or self._connect is self.DEFAULT_TIMEOUT:\n return self.total\n\n return min(self._connect, self.total)"},{"col":4,"comment":" Get the value for the read timeout.\n\n This assumes some time has elapsed in the connection timeout and\n computes the read timeout appropriately.\n\n If self.total is set, the read timeout is dependent on the amount of\n time taken by the connect timeout. If the connection time has not been\n established, a :exc:`~urllib3.exceptions.TimeoutStateError` will be\n raised.\n\n :return: the value to use for the read timeout\n :rtype: int, float, :attr:`Timeout.DEFAULT_TIMEOUT` or None\n :raises urllib3.exceptions.TimeoutStateError: If :meth:`start_connect`\n has not yet been called on this object.\n ","endLoc":266,"header":"@property\n def read_timeout(self)","id":635,"name":"read_timeout","nodeType":"Function","startLoc":237,"text":"@property\n def read_timeout(self):\n \"\"\" Get the value for the read timeout.\n\n This assumes some time has elapsed in the connection timeout and\n computes the read timeout appropriately.\n\n If self.total is set, the read timeout is dependent on the amount of\n time taken by the connect timeout. If the connection time has not been\n established, a :exc:`~urllib3.exceptions.TimeoutStateError` will be\n raised.\n\n :return: the value to use for the read timeout\n :rtype: int, float, :attr:`Timeout.DEFAULT_TIMEOUT` or None\n :raises urllib3.exceptions.TimeoutStateError: If :meth:`start_connect`\n has not yet been called on this object.\n \"\"\"\n if (self.total is not None and\n self.total is not self.DEFAULT_TIMEOUT and\n self._read is not None and\n self._read is not self.DEFAULT_TIMEOUT):\n # in case the connect timeout has not yet been established.\n if self._start_connect is None:\n return self._read\n return max(0, min(self.total - self.get_connect_duration(),\n self._read))\n elif self.total is not None and self.total is not self.DEFAULT_TIMEOUT:\n return max(0, self.total - self.get_connect_duration())\n else:\n return self._read"},{"col":4,"comment":"od.__setitem__(i, y) <==> od[i]=y","endLoc":53,"header":"def __setitem__(self, key, value, dict_setitem=dict.__setitem__)","id":636,"name":"__setitem__","nodeType":"Function","startLoc":45,"text":"def __setitem__(self, key, value, dict_setitem=dict.__setitem__):\n 'od.__setitem__(i, y) <==> od[i]=y'\n # Setting a new item creates a new link which goes at the end of the linked\n # list, and the inherited dictionary is updated with the new key/value pair.\n if key not in self:\n root = self.__root\n last = root[0]\n last[1] = root[0] = self.__map[key] = [last, root, key]\n dict_setitem(self, key, value)"},{"col":4,"comment":"od.__delitem__(y) <==> del od[y]","endLoc":62,"header":"def __delitem__(self, key, dict_delitem=dict.__delitem__)","id":637,"name":"__delitem__","nodeType":"Function","startLoc":55,"text":"def __delitem__(self, key, dict_delitem=dict.__delitem__):\n 'od.__delitem__(y) <==> del od[y]'\n # Deleting an existing item uses self.__map to find the link which is\n # then removed by updating the links in the predecessor and successor nodes.\n dict_delitem(self, key)\n link_prev, link_next, key = self.__map.pop(key)\n link_prev[1] = link_next\n link_next[0] = link_prev"},{"col":4,"comment":"null","endLoc":86,"header":"def __len__(self)","id":638,"name":"__len__","nodeType":"Function","startLoc":85,"text":"def __len__(self):\n return len(self._store)"},{"attributeType":"(int, int, int, int, int, int, int)","col":0,"comment":"null","endLoc":270,"id":639,"name":"EUCTWCharLenTable","nodeType":"Attribute","startLoc":270,"text":"EUCTWCharLenTable"},{"attributeType":"(int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int)","col":0,"comment":"null","endLoc":280,"id":640,"name":"GB2312_cls","nodeType":"Attribute","startLoc":280,"text":"GB2312_cls"},{"col":4,"comment":"Like iteritems(), but with all lowercase keys.","endLoc":94,"header":"def lower_items(self)","id":641,"name":"lower_items","nodeType":"Function","startLoc":88,"text":"def lower_items(self):\n \"\"\"Like iteritems(), but with all lowercase keys.\"\"\"\n return (\n (lowerkey, keyval[1])\n for (lowerkey, keyval)\n in self._store.items()\n )"},{"col":4,"comment":"null","endLoc":102,"header":"def __eq__(self, other)","id":648,"name":"__eq__","nodeType":"Function","startLoc":96,"text":"def __eq__(self, other):\n if isinstance(other, collections.Mapping):\n other = CaseInsensitiveDict(other)\n else:\n return NotImplemented\n # Compare insensitively\n return dict(self.lower_items()) == dict(other.lower_items())"},{"attributeType":"(Any, Any, Any, Any, Any, Any, int, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, int, Any, Any, Any, Any, Any, Any, Any, Any, Any, int, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any)","col":0,"comment":"null","endLoc":315,"id":649,"name":"GB2312_st","nodeType":"Attribute","startLoc":315,"text":"GB2312_st"},{"attributeType":"null","col":4,"comment":"null","endLoc":117,"id":650,"name":"DEFAULT_TIMEOUT","nodeType":"Attribute","startLoc":117,"text":"DEFAULT_TIMEOUT"},{"attributeType":"None | {__lt__}","col":8,"comment":"null","endLoc":122,"id":651,"name":"total","nodeType":"Attribute","startLoc":122,"text":"self.total"},{"attributeType":"None | {__lt__}","col":8,"comment":"null","endLoc":121,"id":653,"name":"_read","nodeType":"Attribute","startLoc":121,"text":"self._read"},{"col":4,"comment":"od.__iter__() <==> iter(od)","endLoc":70,"header":"def __iter__(self)","id":654,"name":"__iter__","nodeType":"Function","startLoc":64,"text":"def __iter__(self):\n 'od.__iter__() <==> iter(od)'\n root = self.__root\n curr = root[1]\n while curr is not root:\n yield curr[2]\n curr = curr[1]"},{"col":4,"comment":"od.__reversed__() <==> reversed(od)","endLoc":78,"header":"def __reversed__(self)","id":655,"name":"__reversed__","nodeType":"Function","startLoc":72,"text":"def __reversed__(self):\n 'od.__reversed__() <==> reversed(od)'\n root = self.__root\n curr = root[0]\n while curr is not root:\n yield curr[2]\n curr = curr[0]"},{"col":4,"comment":"od.clear() -> None. Remove all items from od.","endLoc":90,"header":"def clear(self)","id":656,"name":"clear","nodeType":"Function","startLoc":80,"text":"def clear(self):\n 'od.clear() -> None. Remove all items from od.'\n try:\n for node in self.__map.itervalues():\n del node[:]\n root = self.__root\n root[:] = [root, root, None]\n self.__map.clear()\n except AttributeError:\n pass\n dict.clear(self)"},{"attributeType":"None","col":8,"comment":"null","endLoc":123,"id":657,"name":"_start_connect","nodeType":"Attribute","startLoc":123,"text":"self._start_connect"},{"attributeType":"None | {__lt__}","col":8,"comment":"null","endLoc":120,"id":658,"name":"_connect","nodeType":"Attribute","startLoc":120,"text":"self._connect"},{"className":"Url","col":0,"comment":"\n Datastructure for representing an HTTP URL. Used as a return value for\n :func:`parse_url`.\n ","endLoc":299,"id":659,"nodeType":"Class","startLoc":269,"text":"class Url(namedtuple('Url', ['scheme', 'auth', 'host', 'port', 'path', 'query', 'fragment'])):\n \"\"\"\n Datastructure for representing an HTTP URL. Used as a return value for\n :func:`parse_url`.\n \"\"\"\n slots = ()\n\n def __new__(cls, scheme=None, auth=None, host=None, port=None, path=None, query=None, fragment=None):\n return super(Url, cls).__new__(cls, scheme, auth, host, port, path, query, fragment)\n\n @property\n def hostname(self):\n \"\"\"For backwards-compatibility with urlparse. We're nice like that.\"\"\"\n return self.host\n\n @property\n def request_uri(self):\n \"\"\"Absolute path including the query string.\"\"\"\n uri = self.path or '/'\n\n if self.query is not None:\n uri += '?' + self.query\n\n return uri\n\n @property\n def netloc(self):\n \"\"\"Network location including host and port\"\"\"\n if self.port:\n return '%s:%d' % (self.host, self.port)\n return self.host"},{"col":4,"comment":"null","endLoc":277,"header":"def __new__(cls, scheme=None, auth=None, host=None, port=None, path=None, query=None, fragment=None)","id":660,"name":"__new__","nodeType":"Function","startLoc":276,"text":"def __new__(cls, scheme=None, auth=None, host=None, port=None, path=None, query=None, fragment=None):\n return super(Url, cls).__new__(cls, scheme, auth, host, port, path, query, fragment)"},{"col":4,"comment":"od.popitem() -> (k, v), return and remove a (key, value) pair.\n Pairs are returned in LIFO order if last is true or FIFO order if false.\n\n ","endLoc":113,"header":"def popitem(self, last=True)","id":661,"name":"popitem","nodeType":"Function","startLoc":92,"text":"def popitem(self, last=True):\n '''od.popitem() -> (k, v), return and remove a (key, value) pair.\n Pairs are returned in LIFO order if last is true or FIFO order if false.\n\n '''\n if not self:\n raise KeyError('dictionary is empty')\n root = self.__root\n if last:\n link = root[0]\n link_prev = link[0]\n link_prev[1] = root\n root[0] = link_prev\n else:\n link = root[1]\n link_next = link[1]\n root[1] = link_next\n link_next[0] = root\n key = link[2]\n del self.__map[key]\n value = dict.pop(self, key)\n return key, value"},{"attributeType":"(int, int, int, int, int, int, int)","col":0,"comment":"null","endLoc":329,"id":662,"name":"GB2312CharLenTable","nodeType":"Attribute","startLoc":329,"text":"GB2312CharLenTable"},{"attributeType":"TypedDict","col":0,"comment":"null","endLoc":331,"id":663,"name":"GB2312SMModel","nodeType":"Attribute","startLoc":331,"text":"GB2312SMModel"},{"attributeType":"(int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int)","col":0,"comment":"null","endLoc":339,"id":664,"name":"SJIS_cls","nodeType":"Attribute","startLoc":339,"text":"SJIS_cls"},{"attributeType":"(Any, Any, Any, int, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any)","col":0,"comment":"null","endLoc":377,"id":665,"name":"SJIS_st","nodeType":"Attribute","startLoc":377,"text":"SJIS_st"},{"attributeType":"(int, int, int, int, int, int)","col":0,"comment":"null","endLoc":383,"id":666,"name":"SJISCharLenTable","nodeType":"Attribute","startLoc":383,"text":"SJISCharLenTable"},{"attributeType":"TypedDict","col":0,"comment":"null","endLoc":385,"id":668,"name":"SJISSMModel","nodeType":"Attribute","startLoc":385,"text":"SJISSMModel"},{"attributeType":"(int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int)","col":0,"comment":"null","endLoc":393,"id":669,"name":"UCS2BE_cls","nodeType":"Attribute","startLoc":393,"text":"UCS2BE_cls"},{"attributeType":"(int, int, int, Any, int, int, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, int, int, int, int, Any, Any, int, int, int, int, int, Any, int, int, int, int, int, int, int, int, int, Any, int, int, int, int, Any, int, int, int, int, int, int, int, Any, Any, Any, Any)","col":0,"comment":"null","endLoc":428,"id":670,"name":"UCS2BE_st","nodeType":"Attribute","startLoc":428,"text":"UCS2BE_st"},{"col":4,"comment":"null","endLoc":532,"header":"def __repr__(self)","id":672,"name":"__repr__","nodeType":"Function","startLoc":531,"text":"def __repr__(self):\n return '' % (self.status_code)"},{"col":4,"comment":"Returns true if :attr:`status_code` is 'OK'.","endLoc":536,"header":"def __bool__(self)","id":673,"name":"__bool__","nodeType":"Function","startLoc":534,"text":"def __bool__(self):\n \"\"\"Returns true if :attr:`status_code` is 'OK'.\"\"\"\n return self.ok"},{"col":4,"comment":"Returns true if :attr:`status_code` is 'OK'.","endLoc":540,"header":"def __nonzero__(self)","id":674,"name":"__nonzero__","nodeType":"Function","startLoc":538,"text":"def __nonzero__(self):\n \"\"\"Returns true if :attr:`status_code` is 'OK'.\"\"\"\n return self.ok"},{"col":4,"comment":"Allows you to use a response as an iterator.","endLoc":544,"header":"def __iter__(self)","id":675,"name":"__iter__","nodeType":"Function","startLoc":542,"text":"def __iter__(self):\n \"\"\"Allows you to use a response as an iterator.\"\"\"\n return self.iter_content(128)"},{"col":4,"comment":"Iterates over the response data. When stream=True is set on the\n request, this avoids reading the content at once into memory for\n large responses. The chunk size is the number of bytes it should\n read into memory. This is not necessarily the length of each item\n returned as decoding can take place.\n ","endLoc":595,"header":"def iter_content(self, chunk_size=1, decode_unicode=False)","id":676,"name":"iter_content","nodeType":"Function","startLoc":560,"text":"def iter_content(self, chunk_size=1, decode_unicode=False):\n \"\"\"Iterates over the response data. When stream=True is set on the\n request, this avoids reading the content at once into memory for\n large responses. The chunk size is the number of bytes it should\n read into memory. This is not necessarily the length of each item\n returned as decoding can take place.\n \"\"\"\n if self._content_consumed:\n # simulate reading small chunks of the content\n return iter_slices(self._content, chunk_size)\n\n def generate():\n try:\n # Special case for urllib3.\n try:\n for chunk in self.raw.stream(chunk_size,\n decode_content=True):\n yield chunk\n except IncompleteRead as e:\n raise ChunkedEncodingError(e)\n except AttributeError:\n # Standard file-like object.\n while True:\n chunk = self.raw.read(chunk_size)\n if not chunk:\n break\n yield chunk\n\n self._content_consumed = True\n\n gen = generate()\n\n if decode_unicode:\n gen = stream_decode_response_unicode(gen, self)\n\n return gen"},{"col":0,"comment":"Iterate over slices of a string.","endLoc":332,"header":"def iter_slices(string, slice_length)","id":677,"name":"iter_slices","nodeType":"Function","startLoc":327,"text":"def iter_slices(string, slice_length):\n \"\"\"Iterate over slices of a string.\"\"\"\n pos = 0\n while pos < len(string):\n yield string[pos:pos + slice_length]\n pos += slice_length"},{"attributeType":"(int, int, int, int, int, int)","col":0,"comment":"null","endLoc":438,"id":678,"name":"UCS2BECharLenTable","nodeType":"Attribute","startLoc":438,"text":"UCS2BECharLenTable"},{"attributeType":"TypedDict","col":0,"comment":"null","endLoc":440,"id":679,"name":"UCS2BESMModel","nodeType":"Attribute","startLoc":440,"text":"UCS2BESMModel"},{"attributeType":"(int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int)","col":0,"comment":"null","endLoc":448,"id":680,"name":"UCS2LE_cls","nodeType":"Attribute","startLoc":448,"text":"UCS2LE_cls"},{"attributeType":"(int, int, int, int, int, int, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, int, int, int, Any, Any, Any, int, int, int, Any, int, Any, int, int, int, int, int, int, int, int, int, Any, int, int, int, Any, Any, Any, int, int, int, int, int, Any, int, Any, Any, Any)","col":0,"comment":"null","endLoc":483,"id":681,"name":"UCS2LE_st","nodeType":"Attribute","startLoc":483,"text":"UCS2LE_st"},{"attributeType":"(int, int, int, int, int, int)","col":0,"comment":"null","endLoc":493,"id":682,"name":"UCS2LECharLenTable","nodeType":"Attribute","startLoc":493,"text":"UCS2LECharLenTable"},{"attributeType":"TypedDict","col":0,"comment":"null","endLoc":495,"id":683,"name":"UCS2LESMModel","nodeType":"Attribute","startLoc":495,"text":"UCS2LESMModel"},{"attributeType":"(int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int)","col":0,"comment":"null","endLoc":503,"id":684,"name":"UTF8_cls","nodeType":"Attribute","startLoc":503,"text":"UTF8_cls"},{"attributeType":"(Any, Any, Any, Any, Any, Any, int, int, int, int, int, int, int, int, int, int, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, int, int, int, int, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, int, int, int, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, int, int, int, int, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, int, int, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, int, int, int, int, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, int, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, int, int, int, int, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, int, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, int, int, int, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any)","col":0,"comment":"null","endLoc":538,"id":685,"name":"UTF8_st","nodeType":"Attribute","startLoc":538,"text":"UTF8_st"},{"col":4,"comment":"null","endLoc":50,"header":"def __getitem__(self, key)","id":686,"name":"__getitem__","nodeType":"Function","startLoc":45,"text":"def __getitem__(self, key):\n # Re-insert the item, moving it to the end of the eviction line.\n with self.lock:\n item = self._container.pop(key)\n self._container[key] = item\n return item"},{"col":4,"comment":"null","endLoc":65,"header":"def __setitem__(self, key, value)","id":693,"name":"__setitem__","nodeType":"Function","startLoc":52,"text":"def __setitem__(self, key, value):\n evicted_value = _Null\n with self.lock:\n # Possibly evict the existing value of 'key'\n evicted_value = self._container.get(key, _Null)\n self._container[key] = value\n\n # If we didn't evict an existing value, we might have to evict the\n # least recently used item from the beginning of the container.\n if len(self._container) > self._maxsize:\n _key, evicted_value = self._container.popitem(last=False)\n\n if self.dispose_func and evicted_value is not _Null:\n self.dispose_func(evicted_value)"},{"col":4,"comment":"od.keys() -> list of keys in od","endLoc":119,"header":"def keys(self)","id":694,"name":"keys","nodeType":"Function","startLoc":117,"text":"def keys(self):\n 'od.keys() -> list of keys in od'\n return list(self)"},{"col":0,"comment":"Stream decodes a iterator.","endLoc":324,"header":"def stream_decode_response_unicode(iterator, r)","id":696,"name":"stream_decode_response_unicode","nodeType":"Function","startLoc":309,"text":"def stream_decode_response_unicode(iterator, r):\n \"\"\"Stream decodes a iterator.\"\"\"\n\n if r.encoding is None:\n for item in iterator:\n yield item\n return\n\n decoder = codecs.getincrementaldecoder(r.encoding)(errors='replace')\n for chunk in iterator:\n rv = decoder.decode(chunk)\n if rv:\n yield rv\n rv = decoder.decode(b'', final=True)\n if rv:\n yield rv"},{"attributeType":"null","col":4,"comment":"null","endLoc":53,"id":697,"name":"cert_reqs","nodeType":"Attribute","startLoc":53,"text":"cert_reqs"},{"attributeType":"null","col":4,"comment":"null","endLoc":54,"id":698,"name":"ca_certs","nodeType":"Attribute","startLoc":54,"text":"ca_certs"},{"attributeType":"null","col":4,"comment":"null","endLoc":55,"id":699,"name":"ssl_version","nodeType":"Attribute","startLoc":55,"text":"ssl_version"},{"attributeType":"null","col":8,"comment":"null","endLoc":65,"id":700,"name":"assert_hostname","nodeType":"Attribute","startLoc":65,"text":"self.assert_hostname"},{"attributeType":"null","col":8,"comment":"null","endLoc":64,"id":701,"name":"ca_certs","nodeType":"Attribute","startLoc":64,"text":"self.ca_certs"},{"attributeType":"null","col":12,"comment":"null","endLoc":84,"id":702,"name":"sock","nodeType":"Attribute","startLoc":84,"text":"self.sock"},{"attributeType":"function","col":8,"comment":"null","endLoc":66,"id":703,"name":"assert_fingerprint","nodeType":"Attribute","startLoc":66,"text":"self.assert_fingerprint"},{"attributeType":"null","col":8,"comment":"null","endLoc":61,"id":705,"name":"key_file","nodeType":"Attribute","startLoc":61,"text":"self.key_file"},{"attributeType":"null","col":8,"comment":"null","endLoc":63,"id":706,"name":"cert_reqs","nodeType":"Attribute","startLoc":63,"text":"self.cert_reqs"},{"attributeType":"null","col":8,"comment":"null","endLoc":62,"id":707,"name":"cert_file","nodeType":"Attribute","startLoc":62,"text":"self.cert_file"},{"className":"HTTPException","col":0,"comment":"null","endLoc":216,"id":708,"nodeType":"Class","startLoc":216,"text":"class HTTPException(Exception): ..."},{"attributeType":"SSLError","col":4,"comment":"null","endLoc":32,"id":709,"name":"BaseSSLError","nodeType":"Attribute","startLoc":32,"text":"BaseSSLError"},{"className":"BaseSSLError","col":4,"comment":"null","endLoc":24,"id":710,"nodeType":"Class","startLoc":23,"text":"class BaseSSLError(BaseException):\n pass"},{"col":4,"comment":"od.values() -> list of values in od","endLoc":123,"header":"def values(self)","id":711,"name":"values","nodeType":"Function","startLoc":121,"text":"def values(self):\n 'od.values() -> list of values in od'\n return [self[key] for key in self]"},{"col":4,"comment":"od.items() -> list of (key, value) pairs in od","endLoc":127,"header":"def items(self)","id":712,"name":"items","nodeType":"Function","startLoc":125,"text":"def items(self):\n 'od.items() -> list of (key, value) pairs in od'\n return [(key, self[key]) for key in self]"},{"col":4,"comment":"od.iterkeys() -> an iterator over the keys in od","endLoc":131,"header":"def iterkeys(self)","id":713,"name":"iterkeys","nodeType":"Function","startLoc":129,"text":"def iterkeys(self):\n 'od.iterkeys() -> an iterator over the keys in od'\n return iter(self)"},{"col":4,"comment":"null","endLoc":72,"header":"def __delitem__(self, key)","id":715,"name":"__delitem__","nodeType":"Function","startLoc":67,"text":"def __delitem__(self, key):\n with self.lock:\n value = self._container.pop(key)\n\n if self.dispose_func:\n self.dispose_func(value)"},{"col":4,"comment":"null","endLoc":552,"header":"@property\n def ok(self)","id":716,"name":"ok","nodeType":"Function","startLoc":546,"text":"@property\n def ok(self):\n try:\n self.raise_for_status()\n except RequestException:\n return False\n return True"},{"className":"RequestMethods","col":0,"comment":"\n Convenience mixin for classes who implement a :meth:`urlopen` method, such\n as :class:`~urllib3.connectionpool.HTTPConnectionPool` and\n :class:`~urllib3.poolmanager.PoolManager`.\n\n Provides behavior for making common types of HTTP request methods and\n decides which type of request field encoding to use.\n\n Specifically,\n\n :meth:`.request_encode_url` is for sending requests whose fields are encoded\n in the URL (such as GET, HEAD, DELETE).\n\n :meth:`.request_encode_body` is for sending requests whose fields are\n encoded in the *body* of the request using multipart or www-form-urlencoded\n (such as for POST, PUT, PATCH).\n\n :meth:`.request` is for making any kind of request, it will look up the\n appropriate encoding format and use one of the above two methods to make\n the request.\n\n Initializer parameters:\n\n :param headers:\n Headers to include with all requests, unless other headers are given\n explicitly.\n ","endLoc":142,"id":717,"nodeType":"Class","startLoc":18,"text":"class RequestMethods(object):\n \"\"\"\n Convenience mixin for classes who implement a :meth:`urlopen` method, such\n as :class:`~urllib3.connectionpool.HTTPConnectionPool` and\n :class:`~urllib3.poolmanager.PoolManager`.\n\n Provides behavior for making common types of HTTP request methods and\n decides which type of request field encoding to use.\n\n Specifically,\n\n :meth:`.request_encode_url` is for sending requests whose fields are encoded\n in the URL (such as GET, HEAD, DELETE).\n\n :meth:`.request_encode_body` is for sending requests whose fields are\n encoded in the *body* of the request using multipart or www-form-urlencoded\n (such as for POST, PUT, PATCH).\n\n :meth:`.request` is for making any kind of request, it will look up the\n appropriate encoding format and use one of the above two methods to make\n the request.\n\n Initializer parameters:\n\n :param headers:\n Headers to include with all requests, unless other headers are given\n explicitly.\n \"\"\"\n\n _encode_url_methods = set(['DELETE', 'GET', 'HEAD', 'OPTIONS'])\n _encode_body_methods = set(['PATCH', 'POST', 'PUT', 'TRACE'])\n\n def __init__(self, headers=None):\n self.headers = headers or {}\n\n def urlopen(self, method, url, body=None, headers=None,\n encode_multipart=True, multipart_boundary=None,\n **kw): # Abstract\n raise NotImplemented(\"Classes extending RequestMethods must implement \"\n \"their own ``urlopen`` method.\")\n\n def request(self, method, url, fields=None, headers=None, **urlopen_kw):\n \"\"\"\n Make a request using :meth:`urlopen` with the appropriate encoding of\n ``fields`` based on the ``method`` used.\n\n This is a convenience method that requires the least amount of manual\n effort. It can be used in most situations, while still having the option\n to drop down to more specific methods when necessary, such as\n :meth:`request_encode_url`, :meth:`request_encode_body`,\n or even the lowest level :meth:`urlopen`.\n \"\"\"\n method = method.upper()\n\n if method in self._encode_url_methods:\n return self.request_encode_url(method, url, fields=fields,\n headers=headers,\n **urlopen_kw)\n else:\n return self.request_encode_body(method, url, fields=fields,\n headers=headers,\n **urlopen_kw)\n\n def request_encode_url(self, method, url, fields=None, **urlopen_kw):\n \"\"\"\n Make a request using :meth:`urlopen` with the ``fields`` encoded in\n the url. This is useful for request methods like GET, HEAD, DELETE, etc.\n \"\"\"\n if fields:\n url += '?' + urlencode(fields)\n return self.urlopen(method, url, **urlopen_kw)\n\n def request_encode_body(self, method, url, fields=None, headers=None,\n encode_multipart=True, multipart_boundary=None,\n **urlopen_kw):\n \"\"\"\n Make a request using :meth:`urlopen` with the ``fields`` encoded in\n the body. This is useful for request methods like POST, PUT, PATCH, etc.\n\n When ``encode_multipart=True`` (default), then\n :meth:`urllib3.filepost.encode_multipart_formdata` is used to encode the\n payload with the appropriate content type. Otherwise\n :meth:`urllib.urlencode` is used with the\n 'application/x-www-form-urlencoded' content type.\n\n Multipart encoding must be used when posting files, and it's reasonably\n safe to use it in other times too. However, it may break request signing,\n such as with OAuth.\n\n Supports an optional ``fields`` parameter of key/value strings AND\n key/filetuple. A filetuple is a (filename, data, MIME type) tuple where\n the MIME type is optional. For example: ::\n\n fields = {\n 'foo': 'bar',\n 'fakefile': ('foofile.txt', 'contents of foofile'),\n 'realfile': ('barfile.txt', open('realfile').read()),\n 'typedfile': ('bazfile.bin', open('bazfile').read(),\n 'image/jpeg'),\n 'nonamefile': 'contents of nonamefile field',\n }\n\n When uploading a file, providing a filename (the first parameter of the\n tuple) is optional but recommended to best mimick behavior of browsers.\n\n Note that if ``headers`` are supplied, the 'Content-Type' header will be\n overwritten because it depends on the dynamic random boundary string\n which is used to compose the body of the request. The random boundary\n string can be explicitly set with the ``multipart_boundary`` parameter.\n \"\"\"\n if encode_multipart:\n body, content_type = encode_multipart_formdata(fields or {},\n boundary=multipart_boundary)\n else:\n body, content_type = (urlencode(fields or {}),\n 'application/x-www-form-urlencoded')\n\n if headers is None:\n headers = self.headers\n\n headers_ = {'Content-Type': content_type}\n headers_.update(headers)\n\n return self.urlopen(method, url, body=body, headers=headers_,\n **urlopen_kw)"},{"col":4,"comment":"od.itervalues -> an iterator over the values in od","endLoc":136,"header":"def itervalues(self)","id":722,"name":"itervalues","nodeType":"Function","startLoc":133,"text":"def itervalues(self):\n 'od.itervalues -> an iterator over the values in od'\n for k in self:\n yield self[k]"},{"col":4,"comment":"od.iteritems -> an iterator over the (key, value) items in od","endLoc":141,"header":"def iteritems(self)","id":723,"name":"iteritems","nodeType":"Function","startLoc":138,"text":"def iteritems(self):\n 'od.iteritems -> an iterator over the (key, value) items in od'\n for k in self:\n yield (k, self[k])"},{"col":4,"comment":"od.pop(k[,d]) -> v, remove specified key and return the corresponding value.\n If key is not found, d is returned if given, otherwise KeyError is raised.\n\n ","endLoc":189,"header":"def pop(self, key, default=__marker)","id":724,"name":"pop","nodeType":"Function","startLoc":178,"text":"def pop(self, key, default=__marker):\n '''od.pop(k[,d]) -> v, remove specified key and return the corresponding value.\n If key is not found, d is returned if given, otherwise KeyError is raised.\n\n '''\n if key in self:\n result = self[key]\n del self[key]\n return result\n if default is self.__marker:\n raise KeyError(key)\n return default"},{"col":4,"comment":"Raises stored :class:`HTTPError`, if one occurred.","endLoc":726,"header":"def raise_for_status(self)","id":726,"name":"raise_for_status","nodeType":"Function","startLoc":714,"text":"def raise_for_status(self):\n \"\"\"Raises stored :class:`HTTPError`, if one occurred.\"\"\"\n\n http_error_msg = ''\n\n if 400 <= self.status_code < 500:\n http_error_msg = '%s Client Error: %s' % (self.status_code, self.reason)\n\n elif 500 <= self.status_code < 600:\n http_error_msg = '%s Server Error: %s' % (self.status_code, self.reason)\n\n if http_error_msg:\n raise HTTPError(http_error_msg, response=self)"},{"col":4,"comment":"For backwards-compatibility with urlparse. We're nice like that.","endLoc":282,"header":"@property\n def hostname(self)","id":727,"name":"hostname","nodeType":"Function","startLoc":279,"text":"@property\n def hostname(self):\n \"\"\"For backwards-compatibility with urlparse. We're nice like that.\"\"\"\n return self.host"},{"col":4,"comment":"Absolute path including the query string.","endLoc":292,"header":"@property\n def request_uri(self)","id":728,"name":"request_uri","nodeType":"Function","startLoc":284,"text":"@property\n def request_uri(self):\n \"\"\"Absolute path including the query string.\"\"\"\n uri = self.path or '/'\n\n if self.query is not None:\n uri += '?' + self.query\n\n return uri"},{"col":4,"comment":"Network location including host and port","endLoc":299,"header":"@property\n def netloc(self)","id":729,"name":"netloc","nodeType":"Function","startLoc":294,"text":"@property\n def netloc(self):\n \"\"\"Network location including host and port\"\"\"\n if self.port:\n return '%s:%d' % (self.host, self.port)\n return self.host"},{"attributeType":"()","col":4,"comment":"null","endLoc":274,"id":730,"name":"slots","nodeType":"Attribute","startLoc":274,"text":"slots"},{"col":4,"comment":"null","endLoc":51,"header":"def __init__(self, headers=None)","id":731,"name":"__init__","nodeType":"Function","startLoc":50,"text":"def __init__(self, headers=None):\n self.headers = headers or {}"},{"col":4,"comment":"null","endLoc":57,"header":"def urlopen(self, method, url, body=None, headers=None,\n encode_multipart=True, multipart_boundary=None,\n **kw)","id":732,"name":"urlopen","nodeType":"Function","startLoc":53,"text":"def urlopen(self, method, url, body=None, headers=None,\n encode_multipart=True, multipart_boundary=None,\n **kw): # Abstract\n raise NotImplemented(\"Classes extending RequestMethods must implement \"\n \"their own ``urlopen`` method.\")"},{"col":4,"comment":"od.setdefault(k[,d]) -> od.get(k,d), also set od[k]=d if k not in od","endLoc":196,"header":"def setdefault(self, key, default=None)","id":733,"name":"setdefault","nodeType":"Function","startLoc":191,"text":"def setdefault(self, key, default=None):\n 'od.setdefault(k[,d]) -> od.get(k,d), also set od[k]=d if k not in od'\n if key in self:\n return self[key]\n self[key] = default\n return default"},{"col":4,"comment":"od.__repr__() <==> repr(od)","endLoc":209,"header":"def __repr__(self, _repr_running={})","id":734,"name":"__repr__","nodeType":"Function","startLoc":198,"text":"def __repr__(self, _repr_running={}):\n 'od.__repr__() <==> repr(od)'\n call_key = id(self), _get_ident()\n if call_key in _repr_running:\n return '...'\n _repr_running[call_key] = 1\n try:\n if not self:\n return '%s()' % (self.__class__.__name__,)\n return '%s(%r)' % (self.__class__.__name__, self.items())\n finally:\n del _repr_running[call_key]"},{"col":0,"comment":"\n Given a string and an iterable of delimiters, split on the first found\n delimiter. Return two split parts and the matched delimiter.\n\n If not found, then the first part is the full input string.\n\n Example: ::\n\n >>> split_first('foo/bar?baz', '?/=')\n ('foo', 'bar?baz', '/')\n >>> split_first('foo/bar?baz', '123')\n ('foo/bar?baz', '', None)\n\n Scales linearly with number of delims. Not ideal for large number of delims.\n ","endLoc":332,"header":"def split_first(s, delims)","id":735,"name":"split_first","nodeType":"Function","startLoc":302,"text":"def split_first(s, delims):\n \"\"\"\n Given a string and an iterable of delimiters, split on the first found\n delimiter. Return two split parts and the matched delimiter.\n\n If not found, then the first part is the full input string.\n\n Example: ::\n\n >>> split_first('foo/bar?baz', '?/=')\n ('foo', 'bar?baz', '/')\n >>> split_first('foo/bar?baz', '123')\n ('foo/bar?baz', '', None)\n\n Scales linearly with number of delims. Not ideal for large number of delims.\n \"\"\"\n min_idx = None\n min_delim = None\n for d in delims:\n idx = s.find(d)\n if idx < 0:\n continue\n\n if min_idx is None or idx < min_idx:\n min_idx = idx\n min_delim = d\n\n if min_idx is None or min_idx < 0:\n return s, '', None\n\n return s[:min_idx], s[min_idx+1:], min_delim"},{"col":0,"comment":"\n Given a url, return a parsed :class:`.Url` namedtuple. Best-effort is\n performed to parse incomplete urls. Fields not provided will be None.\n\n Partly backwards-compatible with :mod:`urlparse`.\n\n Example: ::\n\n >>> parse_url('http://google.com/mail/')\n Url(scheme='http', host='google.com', port=None, path='/', ...)\n >>> parse_url('google.com:80')\n Url(scheme=None, host='google.com', port=80, path=None, ...)\n >>> parse_url('/foo?bar')\n Url(scheme=None, host=None, port=None, path='/foo', query='bar', ...)\n ","endLoc":417,"header":"def parse_url(url)","id":736,"name":"parse_url","nodeType":"Function","startLoc":335,"text":"def parse_url(url):\n \"\"\"\n Given a url, return a parsed :class:`.Url` namedtuple. Best-effort is\n performed to parse incomplete urls. Fields not provided will be None.\n\n Partly backwards-compatible with :mod:`urlparse`.\n\n Example: ::\n\n >>> parse_url('http://google.com/mail/')\n Url(scheme='http', host='google.com', port=None, path='/', ...)\n >>> parse_url('google.com:80')\n Url(scheme=None, host='google.com', port=80, path=None, ...)\n >>> parse_url('/foo?bar')\n Url(scheme=None, host=None, port=None, path='/foo', query='bar', ...)\n \"\"\"\n\n # While this code has overlap with stdlib's urlparse, it is much\n # simplified for our needs and less annoying.\n # Additionally, this implementations does silly things to be optimal\n # on CPython.\n\n scheme = None\n auth = None\n host = None\n port = None\n path = None\n fragment = None\n query = None\n\n # Scheme\n if '://' in url:\n scheme, url = url.split('://', 1)\n\n # Find the earliest Authority Terminator\n # (http://tools.ietf.org/html/rfc3986#section-3.2)\n url, path_, delim = split_first(url, ['/', '?', '#'])\n\n if delim:\n # Reassemble the path\n path = delim + path_\n\n # Auth\n if '@' in url:\n # Last '@' denotes end of auth part\n auth, url = url.rsplit('@', 1)\n\n # IPv6\n if url and url[0] == '[':\n host, url = url.split(']', 1)\n host += ']'\n\n # Port\n if ':' in url:\n _host, port = url.split(':', 1)\n\n if not host:\n host = _host\n\n if port:\n # If given, ports must be integers.\n if not port.isdigit():\n raise LocationParseError(\"Failed to parse: %s\" % url)\n port = int(port)\n else:\n # Blank ports are cool, too. (rfc3986#section-3.2.3)\n port = None\n\n elif not host and url:\n host = url\n\n if not path:\n return Url(scheme, auth, host, port, path, query, fragment)\n\n # Fragment\n if '#' in path:\n path, fragment = path.split('#', 1)\n\n # Query\n if '?' in path:\n path, query = path.split('?', 1)\n\n return Url(scheme, auth, host, port, path, query, fragment)"},{"col":4,"comment":"null","endLoc":76,"header":"def __len__(self)","id":737,"name":"__len__","nodeType":"Function","startLoc":74,"text":"def __len__(self):\n with self.lock:\n return len(self._container)"},{"col":4,"comment":" Initializes HTTPError with optional `response` object. ","endLoc":23,"header":"def __init__(self, *args, **kwargs)","id":738,"name":"__init__","nodeType":"Function","startLoc":20,"text":"def __init__(self, *args, **kwargs):\n \"\"\" Initializes HTTPError with optional `response` object. \"\"\"\n self.response = kwargs.pop('response', None)\n super(HTTPError, self).__init__(*args, **kwargs)"},{"col":4,"comment":"null","endLoc":79,"header":"def __iter__(self)","id":740,"name":"__iter__","nodeType":"Function","startLoc":78,"text":"def __iter__(self):\n raise NotImplementedError('Iteration over this class is unlikely to be threadsafe.')"},{"col":4,"comment":"Return state information for pickling","endLoc":219,"header":"def __reduce__(self)","id":743,"name":"__reduce__","nodeType":"Function","startLoc":211,"text":"def __reduce__(self):\n 'Return state information for pickling'\n items = [[k, self[k]] for k in self]\n inst_dict = vars(self).copy()\n for k in vars(OrderedDict()):\n inst_dict.pop(k, None)\n if inst_dict:\n return (self.__class__, (items,), inst_dict)\n return self.__class__, (items,)"},{"col":4,"comment":"\n Make a request using :meth:`urlopen` with the appropriate encoding of\n ``fields`` based on the ``method`` used.\n\n This is a convenience method that requires the least amount of manual\n effort. It can be used in most situations, while still having the option\n to drop down to more specific methods when necessary, such as\n :meth:`request_encode_url`, :meth:`request_encode_body`,\n or even the lowest level :meth:`urlopen`.\n ","endLoc":79,"header":"def request(self, method, url, fields=None, headers=None, **urlopen_kw)","id":744,"name":"request","nodeType":"Function","startLoc":59,"text":"def request(self, method, url, fields=None, headers=None, **urlopen_kw):\n \"\"\"\n Make a request using :meth:`urlopen` with the appropriate encoding of\n ``fields`` based on the ``method`` used.\n\n This is a convenience method that requires the least amount of manual\n effort. It can be used in most situations, while still having the option\n to drop down to more specific methods when necessary, such as\n :meth:`request_encode_url`, :meth:`request_encode_body`,\n or even the lowest level :meth:`urlopen`.\n \"\"\"\n method = method.upper()\n\n if method in self._encode_url_methods:\n return self.request_encode_url(method, url, fields=fields,\n headers=headers,\n **urlopen_kw)\n else:\n return self.request_encode_body(method, url, fields=fields,\n headers=headers,\n **urlopen_kw)"},{"col":4,"comment":"The apparent encoding, provided by the lovely Charade library\n (Thanks, Ian!).","endLoc":558,"header":"@property\n def apparent_encoding(self)","id":745,"name":"apparent_encoding","nodeType":"Function","startLoc":554,"text":"@property\n def apparent_encoding(self):\n \"\"\"The apparent encoding, provided by the lovely Charade library\n (Thanks, Ian!).\"\"\"\n return chardet.detect(self.content)['encoding']"},{"col":4,"comment":"\n Make a request using :meth:`urlopen` with the ``fields`` encoded in\n the url. This is useful for request methods like GET, HEAD, DELETE, etc.\n ","endLoc":88,"header":"def request_encode_url(self, method, url, fields=None, **urlopen_kw)","id":748,"name":"request_encode_url","nodeType":"Function","startLoc":81,"text":"def request_encode_url(self, method, url, fields=None, **urlopen_kw):\n \"\"\"\n Make a request using :meth:`urlopen` with the ``fields`` encoded in\n the url. This is useful for request methods like GET, HEAD, DELETE, etc.\n \"\"\"\n if fields:\n url += '?' + urlencode(fields)\n return self.urlopen(method, url, **urlopen_kw)"},{"col":0,"comment":"null","endLoc":157,"header":"@overload\ndef urlencode(\n query: _QueryType,\n doseq: bool = False,\n safe: str = \"\",\n encoding: str | None = None,\n errors: str | None = None,\n quote_via: Callable[[AnyStr, str, str, str], str] = ...,\n) -> str","id":749,"name":"urlencode","nodeType":"Function","startLoc":149,"text":"@overload\ndef urlencode(\n query: _QueryType,\n doseq: bool = False,\n safe: str = \"\",\n encoding: str | None = None,\n errors: str | None = None,\n quote_via: Callable[[AnyStr, str, str, str], str] = ...,\n) -> str: ..."},{"col":0,"comment":"null","endLoc":166,"header":"@overload\ndef urlencode(\n query: _QueryType,\n doseq: bool,\n safe: _Q,\n encoding: str | None = None,\n errors: str | None = None,\n quote_via: Callable[[AnyStr, _Q, str, str], str] = ...,\n) -> str","id":750,"name":"urlencode","nodeType":"Function","startLoc":158,"text":"@overload\ndef urlencode(\n query: _QueryType,\n doseq: bool,\n safe: _Q,\n encoding: str | None = None,\n errors: str | None = None,\n quote_via: Callable[[AnyStr, _Q, str, str], str] = ...,\n) -> str: ..."},{"col":0,"comment":"null","endLoc":176,"header":"@overload\ndef urlencode(\n query: _QueryType,\n doseq: bool = False,\n *,\n safe: _Q,\n encoding: str | None = None,\n errors: str | None = None,\n quote_via: Callable[[AnyStr, _Q, str, str], str] = ...,\n) -> str","id":751,"name":"urlencode","nodeType":"Function","startLoc":167,"text":"@overload\ndef urlencode(\n query: _QueryType,\n doseq: bool = False,\n *,\n safe: _Q,\n encoding: str | None = None,\n errors: str | None = None,\n quote_via: Callable[[AnyStr, _Q, str, str], str] = ...,\n) -> str: ..."},{"col":0,"comment":"null","endLoc":32,"header":"def detect(aBuf)","id":752,"name":"detect","nodeType":"Function","startLoc":22,"text":"def detect(aBuf):\n if ((version_info < (3, 0) and isinstance(aBuf, unicode)) or\n (version_info >= (3, 0) and not isinstance(aBuf, bytes))):\n raise ValueError('Expected a bytes object, not a unicode object')\n\n from . import universaldetector\n u = universaldetector.UniversalDetector()\n u.reset()\n u.feed(aBuf)\n u.close()\n return u.result"},{"col":4,"comment":"\n Make a request using :meth:`urlopen` with the ``fields`` encoded in\n the body. This is useful for request methods like POST, PUT, PATCH, etc.\n\n When ``encode_multipart=True`` (default), then\n :meth:`urllib3.filepost.encode_multipart_formdata` is used to encode the\n payload with the appropriate content type. Otherwise\n :meth:`urllib.urlencode` is used with the\n 'application/x-www-form-urlencoded' content type.\n\n Multipart encoding must be used when posting files, and it's reasonably\n safe to use it in other times too. However, it may break request signing,\n such as with OAuth.\n\n Supports an optional ``fields`` parameter of key/value strings AND\n key/filetuple. A filetuple is a (filename, data, MIME type) tuple where\n the MIME type is optional. For example: ::\n\n fields = {\n 'foo': 'bar',\n 'fakefile': ('foofile.txt', 'contents of foofile'),\n 'realfile': ('barfile.txt', open('realfile').read()),\n 'typedfile': ('bazfile.bin', open('bazfile').read(),\n 'image/jpeg'),\n 'nonamefile': 'contents of nonamefile field',\n }\n\n When uploading a file, providing a filename (the first parameter of the\n tuple) is optional but recommended to best mimick behavior of browsers.\n\n Note that if ``headers`` are supplied, the 'Content-Type' header will be\n overwritten because it depends on the dynamic random boundary string\n which is used to compose the body of the request. The random boundary\n string can be explicitly set with the ``multipart_boundary`` parameter.\n ","endLoc":142,"header":"def request_encode_body(self, method, url, fields=None, headers=None,\n encode_multipart=True, multipart_boundary=None,\n **urlopen_kw)","id":753,"name":"request_encode_body","nodeType":"Function","startLoc":90,"text":"def request_encode_body(self, method, url, fields=None, headers=None,\n encode_multipart=True, multipart_boundary=None,\n **urlopen_kw):\n \"\"\"\n Make a request using :meth:`urlopen` with the ``fields`` encoded in\n the body. This is useful for request methods like POST, PUT, PATCH, etc.\n\n When ``encode_multipart=True`` (default), then\n :meth:`urllib3.filepost.encode_multipart_formdata` is used to encode the\n payload with the appropriate content type. Otherwise\n :meth:`urllib.urlencode` is used with the\n 'application/x-www-form-urlencoded' content type.\n\n Multipart encoding must be used when posting files, and it's reasonably\n safe to use it in other times too. However, it may break request signing,\n such as with OAuth.\n\n Supports an optional ``fields`` parameter of key/value strings AND\n key/filetuple. A filetuple is a (filename, data, MIME type) tuple where\n the MIME type is optional. For example: ::\n\n fields = {\n 'foo': 'bar',\n 'fakefile': ('foofile.txt', 'contents of foofile'),\n 'realfile': ('barfile.txt', open('realfile').read()),\n 'typedfile': ('bazfile.bin', open('bazfile').read(),\n 'image/jpeg'),\n 'nonamefile': 'contents of nonamefile field',\n }\n\n When uploading a file, providing a filename (the first parameter of the\n tuple) is optional but recommended to best mimick behavior of browsers.\n\n Note that if ``headers`` are supplied, the 'Content-Type' header will be\n overwritten because it depends on the dynamic random boundary string\n which is used to compose the body of the request. The random boundary\n string can be explicitly set with the ``multipart_boundary`` parameter.\n \"\"\"\n if encode_multipart:\n body, content_type = encode_multipart_formdata(fields or {},\n boundary=multipart_boundary)\n else:\n body, content_type = (urlencode(fields or {}),\n 'application/x-www-form-urlencoded')\n\n if headers is None:\n headers = self.headers\n\n headers_ = {'Content-Type': content_type}\n headers_.update(headers)\n\n return self.urlopen(method, url, body=body, headers=headers_,\n **urlopen_kw)"},{"col":0,"comment":"\n Encode a dictionary of ``fields`` using the multipart/form-data MIME format.\n\n :param fields:\n Dictionary of fields or list of (key, :class:`~urllib3.fields.RequestField`).\n\n :param boundary:\n If not specified, then a random boundary will be generated using\n :func:`mimetools.choose_boundary`.\n ","endLoc":101,"header":"def encode_multipart_formdata(fields, boundary=None)","id":754,"name":"encode_multipart_formdata","nodeType":"Function","startLoc":66,"text":"def encode_multipart_formdata(fields, boundary=None):\n \"\"\"\n Encode a dictionary of ``fields`` using the multipart/form-data MIME format.\n\n :param fields:\n Dictionary of fields or list of (key, :class:`~urllib3.fields.RequestField`).\n\n :param boundary:\n If not specified, then a random boundary will be generated using\n :func:`mimetools.choose_boundary`.\n \"\"\"\n body = BytesIO()\n if boundary is None:\n boundary = choose_boundary()\n\n for field in iter_field_objects(fields):\n body.write(b('--%s\\r\\n' % (boundary)))\n\n writer(body).write(field.render_headers())\n data = field.data\n\n if isinstance(data, int):\n data = str(data) # Backwards compatibility\n\n if isinstance(data, six.text_type):\n writer(body).write(data)\n else:\n body.write(data)\n\n body.write(b'\\r\\n')\n\n body.write(b('--%s--\\r\\n' % (boundary)))\n\n content_type = str('multipart/form-data; boundary=%s' % boundary)\n\n return body.getvalue(), content_type"},{"col":4,"comment":"od.copy() -> a shallow copy of od","endLoc":223,"header":"def copy(self)","id":755,"name":"copy","nodeType":"Function","startLoc":221,"text":"def copy(self):\n 'od.copy() -> a shallow copy of od'\n return self.__class__(self)"},{"col":0,"comment":"\n Our embarassingly-simple replacement for mimetools.choose_boundary.\n ","endLoc":24,"header":"def choose_boundary()","id":756,"name":"choose_boundary","nodeType":"Function","startLoc":20,"text":"def choose_boundary():\n \"\"\"\n Our embarassingly-simple replacement for mimetools.choose_boundary.\n \"\"\"\n return uuid4().hex"},{"col":4,"comment":"null","endLoc":90,"header":"def clear(self)","id":757,"name":"clear","nodeType":"Function","startLoc":81,"text":"def clear(self):\n with self.lock:\n # Copy pointers to all values, then wipe the mapping\n # under Python 2, this copies the list of values twice :-|\n values = list(self._container.values())\n self._container.clear()\n\n if self.dispose_func:\n for value in values:\n self.dispose_func(value)"},{"col":0,"comment":"null","endLoc":82,"header":"def uuid4() -> UUID","id":758,"name":"uuid4","nodeType":"Function","startLoc":82,"text":"def uuid4() -> UUID: ..."},{"col":0,"comment":"\n Iterate over fields.\n\n Supports list of (k, v) tuples and dicts, and lists of\n :class:`~urllib3.fields.RequestField`.\n\n ","endLoc":44,"header":"def iter_field_objects(fields)","id":759,"name":"iter_field_objects","nodeType":"Function","startLoc":27,"text":"def iter_field_objects(fields):\n \"\"\"\n Iterate over fields.\n\n Supports list of (k, v) tuples and dicts, and lists of\n :class:`~urllib3.fields.RequestField`.\n\n \"\"\"\n if isinstance(fields, dict):\n i = six.iteritems(fields)\n else:\n i = iter(fields)\n\n for field in i:\n if isinstance(field, RequestField):\n yield field\n else:\n yield RequestField.from_tuples(*field)"},{"col":4,"comment":"null","endLoc":50,"header":"def __init__(self)","id":760,"name":"__init__","nodeType":"Function","startLoc":45,"text":"def __init__(self):\n self._highBitDetector = re.compile(b'[\\x80-\\xFF]')\n self._escDetector = re.compile(b'(\\033|~{)')\n self._mEscCharSetProber = None\n self._mCharSetProbers = []\n self.reset()"},{"col":4,"comment":"OD.fromkeys(S[, v]) -> New ordered dictionary with keys from S\n and values equal to v (which defaults to None).\n\n ","endLoc":234,"header":"@classmethod\n def fromkeys(cls, iterable, value=None)","id":761,"name":"fromkeys","nodeType":"Function","startLoc":225,"text":"@classmethod\n def fromkeys(cls, iterable, value=None):\n '''OD.fromkeys(S[, v]) -> New ordered dictionary with keys from S\n and values equal to v (which defaults to None).\n\n '''\n d = cls()\n for key in iterable:\n d[key] = value\n return d"},{"col":0,"comment":"Return an iterator over the (key, value) pairs of a dictionary.","endLoc":273,"header":"def iteritems(d)","id":762,"name":"iteritems","nodeType":"Function","startLoc":271,"text":"def iteritems(d):\n \"\"\"Return an iterator over the (key, value) pairs of a dictionary.\"\"\"\n return iter(getattr(d, _iteritems)())"},{"col":4,"comment":"od.__eq__(y) <==> od==y. Comparison to another OD is order-sensitive\n while comparison to a regular mapping is order-insensitive.\n\n ","endLoc":243,"header":"def __eq__(self, other)","id":763,"name":"__eq__","nodeType":"Function","startLoc":236,"text":"def __eq__(self, other):\n '''od.__eq__(y) <==> od==y. Comparison to another OD is order-sensitive\n while comparison to a regular mapping is order-insensitive.\n\n '''\n if isinstance(other, OrderedDict):\n return len(self)==len(other) and self.items() == other.items()\n return dict.__eq__(self, other)"},{"col":4,"comment":"null","endLoc":62,"header":"def reset(self)","id":764,"name":"reset","nodeType":"Function","startLoc":52,"text":"def reset(self):\n self.result = {'encoding': None, 'confidence': 0.0}\n self.done = False\n self._mStart = True\n self._mGotData = False\n self._mInputState = ePureAscii\n self._mLastChar = b''\n if self._mEscCharSetProber:\n self._mEscCharSetProber.reset()\n for prober in self._mCharSetProbers:\n prober.reset()"},{"attributeType":"(int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int)","col":0,"comment":"null","endLoc":567,"id":765,"name":"UTF8CharLenTable","nodeType":"Attribute","startLoc":567,"text":"UTF8CharLenTable"},{"attributeType":"TypedDict","col":0,"comment":"null","endLoc":569,"id":766,"name":"UTF8SMModel","nodeType":"Attribute","startLoc":569,"text":"UTF8SMModel"},{"col":4,"comment":"Iterates over the response data, one line at a time. When\n stream=True is set on the request, this avoids reading the\n content at once into memory for large responses.\n ","endLoc":621,"header":"def iter_lines(self, chunk_size=ITER_CHUNK_SIZE, decode_unicode=None)","id":767,"name":"iter_lines","nodeType":"Function","startLoc":597,"text":"def iter_lines(self, chunk_size=ITER_CHUNK_SIZE, decode_unicode=None):\n \"\"\"Iterates over the response data, one line at a time. When\n stream=True is set on the request, this avoids reading the\n content at once into memory for large responses.\n \"\"\"\n\n pending = None\n\n for chunk in self.iter_content(chunk_size=chunk_size,\n decode_unicode=decode_unicode):\n\n if pending is not None:\n chunk = pending + chunk\n lines = chunk.splitlines()\n\n if lines and lines[-1] and chunk and lines[-1][-1] == chunk[-1]:\n pending = lines.pop()\n else:\n pending = None\n\n for line in lines:\n yield line\n\n if pending is not None:\n yield pending"},{"col":4,"comment":"null","endLoc":94,"header":"def keys(self)","id":768,"name":"keys","nodeType":"Function","startLoc":92,"text":"def keys(self):\n with self.lock:\n return self._container.keys()"},{"attributeType":"OrderedDict | OrderedDict","col":4,"comment":"null","endLoc":36,"id":769,"name":"ContainerCls","nodeType":"Attribute","startLoc":36,"text":"ContainerCls"},{"col":0,"comment":"\n Deprecated. Use :func:`.parse_url` instead.\n ","endLoc":425,"header":"def get_host(url)","id":770,"name":"get_host","nodeType":"Function","startLoc":420,"text":"def get_host(url):\n \"\"\"\n Deprecated. Use :func:`.parse_url` instead.\n \"\"\"\n p = parse_url(url)\n return p.scheme or 'http', p.hostname, p.port"},{"attributeType":"null","col":8,"comment":"null","endLoc":42,"id":771,"name":"_container","nodeType":"Attribute","startLoc":42,"text":"self._container"},{"attributeType":"null","col":8,"comment":"null","endLoc":40,"id":772,"name":"dispose_func","nodeType":"Attribute","startLoc":40,"text":"self.dispose_func"},{"attributeType":"null","col":8,"comment":"null","endLoc":43,"id":773,"name":"lock","nodeType":"Attribute","startLoc":43,"text":"self.lock"},{"col":0,"comment":"\n Shortcuts for generating request headers.\n\n :param keep_alive:\n If ``True``, adds 'connection: keep-alive' header.\n\n :param accept_encoding:\n Can be a boolean, list, or string.\n ``True`` translates to 'gzip,deflate'.\n List will get joined by comma.\n String will be used as provided.\n\n :param user_agent:\n String representing the user-agent you want, such as\n \"python-urllib3/0.6\"\n\n :param basic_auth:\n Colon-separated username:password string for 'authorization: basic ...'\n auth header.\n\n Example: ::\n\n >>> make_headers(keep_alive=True, user_agent=\"Batman/1.0\")\n {'connection': 'keep-alive', 'user-agent': 'Batman/1.0'}\n >>> make_headers(accept_encoding=True)\n {'accept-encoding': 'gzip,deflate'}\n ","endLoc":477,"header":"def make_headers(keep_alive=None, accept_encoding=None, user_agent=None,\n basic_auth=None)","id":774,"name":"make_headers","nodeType":"Function","startLoc":428,"text":"def make_headers(keep_alive=None, accept_encoding=None, user_agent=None,\n basic_auth=None):\n \"\"\"\n Shortcuts for generating request headers.\n\n :param keep_alive:\n If ``True``, adds 'connection: keep-alive' header.\n\n :param accept_encoding:\n Can be a boolean, list, or string.\n ``True`` translates to 'gzip,deflate'.\n List will get joined by comma.\n String will be used as provided.\n\n :param user_agent:\n String representing the user-agent you want, such as\n \"python-urllib3/0.6\"\n\n :param basic_auth:\n Colon-separated username:password string for 'authorization: basic ...'\n auth header.\n\n Example: ::\n\n >>> make_headers(keep_alive=True, user_agent=\"Batman/1.0\")\n {'connection': 'keep-alive', 'user-agent': 'Batman/1.0'}\n >>> make_headers(accept_encoding=True)\n {'accept-encoding': 'gzip,deflate'}\n \"\"\"\n headers = {}\n if accept_encoding:\n if isinstance(accept_encoding, str):\n pass\n elif isinstance(accept_encoding, list):\n accept_encoding = ','.join(accept_encoding)\n else:\n accept_encoding = 'gzip,deflate'\n headers['accept-encoding'] = accept_encoding\n\n if user_agent:\n headers['user-agent'] = user_agent\n\n if keep_alive:\n headers['connection'] = 'keep-alive'\n\n if basic_auth:\n headers['authorization'] = 'Basic ' + \\\n b64encode(six.b(basic_auth)).decode('utf-8')\n\n return headers"},{"col":4,"comment":"null","endLoc":246,"header":"def __ne__(self, other)","id":775,"name":"__ne__","nodeType":"Function","startLoc":245,"text":"def __ne__(self, other):\n return not self == other"},{"col":4,"comment":"od.viewkeys() -> a set-like object providing a view on od's keys","endLoc":252,"header":"def viewkeys(self)","id":776,"name":"viewkeys","nodeType":"Function","startLoc":250,"text":"def viewkeys(self):\n \"od.viewkeys() -> a set-like object providing a view on od's keys\"\n return KeysView(self)"},{"col":4,"comment":"Content of the response, in bytes.","endLoc":645,"header":"@property\n def content(self)","id":777,"name":"content","nodeType":"Function","startLoc":623,"text":"@property\n def content(self):\n \"\"\"Content of the response, in bytes.\"\"\"\n\n if self._content is False:\n # Read the contents.\n try:\n if self._content_consumed:\n raise RuntimeError(\n 'The content for this response was already consumed')\n\n if self.status_code == 0:\n self._content = None\n else:\n self._content = bytes().join(self.iter_content(CONTENT_CHUNK_SIZE)) or bytes()\n\n except AttributeError:\n self._content = None\n\n self._content_consumed = True\n # don't need to release the connection; that's been handled by urllib3\n # since we exhausted the data.\n return self._content"},{"col":0,"comment":"","endLoc":28,"header":"mbcssm.py#","id":778,"name":"","nodeType":"Function","startLoc":28,"text":"BIG5_cls = (\n 1,1,1,1,1,1,1,1, # 00 - 07 #allow 0x00 as legal value\n 1,1,1,1,1,1,0,0, # 08 - 0f\n 1,1,1,1,1,1,1,1, # 10 - 17\n 1,1,1,0,1,1,1,1, # 18 - 1f\n 1,1,1,1,1,1,1,1, # 20 - 27\n 1,1,1,1,1,1,1,1, # 28 - 2f\n 1,1,1,1,1,1,1,1, # 30 - 37\n 1,1,1,1,1,1,1,1, # 38 - 3f\n 2,2,2,2,2,2,2,2, # 40 - 47\n 2,2,2,2,2,2,2,2, # 48 - 4f\n 2,2,2,2,2,2,2,2, # 50 - 57\n 2,2,2,2,2,2,2,2, # 58 - 5f\n 2,2,2,2,2,2,2,2, # 60 - 67\n 2,2,2,2,2,2,2,2, # 68 - 6f\n 2,2,2,2,2,2,2,2, # 70 - 77\n 2,2,2,2,2,2,2,1, # 78 - 7f\n 4,4,4,4,4,4,4,4, # 80 - 87\n 4,4,4,4,4,4,4,4, # 88 - 8f\n 4,4,4,4,4,4,4,4, # 90 - 97\n 4,4,4,4,4,4,4,4, # 98 - 9f\n 4,3,3,3,3,3,3,3, # a0 - a7\n 3,3,3,3,3,3,3,3, # a8 - af\n 3,3,3,3,3,3,3,3, # b0 - b7\n 3,3,3,3,3,3,3,3, # b8 - bf\n 3,3,3,3,3,3,3,3, # c0 - c7\n 3,3,3,3,3,3,3,3, # c8 - cf\n 3,3,3,3,3,3,3,3, # d0 - d7\n 3,3,3,3,3,3,3,3, # d8 - df\n 3,3,3,3,3,3,3,3, # e0 - e7\n 3,3,3,3,3,3,3,3, # e8 - ef\n 3,3,3,3,3,3,3,3, # f0 - f7\n 3,3,3,3,3,3,3,0 # f8 - ff\n)\n\nBIG5_st = (\n eError,eStart,eStart, 3,eError,eError,eError,eError,#00-07\n eError,eError,eItsMe,eItsMe,eItsMe,eItsMe,eItsMe,eError,#08-0f\n eError,eStart,eStart,eStart,eStart,eStart,eStart,eStart#10-17\n)\n\nBig5CharLenTable = (0, 1, 1, 2, 0)\n\nBig5SMModel = {'classTable': BIG5_cls,\n 'classFactor': 5,\n 'stateTable': BIG5_st,\n 'charLenTable': Big5CharLenTable,\n 'name': 'Big5'}\n\nCP949_cls = (\n 1,1,1,1,1,1,1,1, 1,1,1,1,1,1,0,0, # 00 - 0f\n 1,1,1,1,1,1,1,1, 1,1,1,0,1,1,1,1, # 10 - 1f\n 1,1,1,1,1,1,1,1, 1,1,1,1,1,1,1,1, # 20 - 2f\n 1,1,1,1,1,1,1,1, 1,1,1,1,1,1,1,1, # 30 - 3f\n 1,4,4,4,4,4,4,4, 4,4,4,4,4,4,4,4, # 40 - 4f\n 4,4,5,5,5,5,5,5, 5,5,5,1,1,1,1,1, # 50 - 5f\n 1,5,5,5,5,5,5,5, 5,5,5,5,5,5,5,5, # 60 - 6f\n 5,5,5,5,5,5,5,5, 5,5,5,1,1,1,1,1, # 70 - 7f\n 0,6,6,6,6,6,6,6, 6,6,6,6,6,6,6,6, # 80 - 8f\n 6,6,6,6,6,6,6,6, 6,6,6,6,6,6,6,6, # 90 - 9f\n 6,7,7,7,7,7,7,7, 7,7,7,7,7,8,8,8, # a0 - af\n 7,7,7,7,7,7,7,7, 7,7,7,7,7,7,7,7, # b0 - bf\n 7,7,7,7,7,7,9,2, 2,3,2,2,2,2,2,2, # c0 - cf\n 2,2,2,2,2,2,2,2, 2,2,2,2,2,2,2,2, # d0 - df\n 2,2,2,2,2,2,2,2, 2,2,2,2,2,2,2,2, # e0 - ef\n 2,2,2,2,2,2,2,2, 2,2,2,2,2,2,2,0, # f0 - ff\n)\n\nCP949_st = (\n#cls= 0 1 2 3 4 5 6 7 8 9 # previous state =\n eError,eStart, 3,eError,eStart,eStart, 4, 5,eError, 6, # eStart\n eError,eError,eError,eError,eError,eError,eError,eError,eError,eError, # eError\n eItsMe,eItsMe,eItsMe,eItsMe,eItsMe,eItsMe,eItsMe,eItsMe,eItsMe,eItsMe, # eItsMe\n eError,eError,eStart,eStart,eError,eError,eError,eStart,eStart,eStart, # 3\n eError,eError,eStart,eStart,eStart,eStart,eStart,eStart,eStart,eStart, # 4\n eError,eStart,eStart,eStart,eStart,eStart,eStart,eStart,eStart,eStart, # 5\n eError,eStart,eStart,eStart,eStart,eError,eError,eStart,eStart,eStart, # 6\n)\n\nCP949CharLenTable = (0, 1, 2, 0, 1, 1, 2, 2, 0, 2)\n\nCP949SMModel = {'classTable': CP949_cls,\n 'classFactor': 10,\n 'stateTable': CP949_st,\n 'charLenTable': CP949CharLenTable,\n 'name': 'CP949'}\n\nEUCJP_cls = (\n 4,4,4,4,4,4,4,4, # 00 - 07\n 4,4,4,4,4,4,5,5, # 08 - 0f\n 4,4,4,4,4,4,4,4, # 10 - 17\n 4,4,4,5,4,4,4,4, # 18 - 1f\n 4,4,4,4,4,4,4,4, # 20 - 27\n 4,4,4,4,4,4,4,4, # 28 - 2f\n 4,4,4,4,4,4,4,4, # 30 - 37\n 4,4,4,4,4,4,4,4, # 38 - 3f\n 4,4,4,4,4,4,4,4, # 40 - 47\n 4,4,4,4,4,4,4,4, # 48 - 4f\n 4,4,4,4,4,4,4,4, # 50 - 57\n 4,4,4,4,4,4,4,4, # 58 - 5f\n 4,4,4,4,4,4,4,4, # 60 - 67\n 4,4,4,4,4,4,4,4, # 68 - 6f\n 4,4,4,4,4,4,4,4, # 70 - 77\n 4,4,4,4,4,4,4,4, # 78 - 7f\n 5,5,5,5,5,5,5,5, # 80 - 87\n 5,5,5,5,5,5,1,3, # 88 - 8f\n 5,5,5,5,5,5,5,5, # 90 - 97\n 5,5,5,5,5,5,5,5, # 98 - 9f\n 5,2,2,2,2,2,2,2, # a0 - a7\n 2,2,2,2,2,2,2,2, # a8 - af\n 2,2,2,2,2,2,2,2, # b0 - b7\n 2,2,2,2,2,2,2,2, # b8 - bf\n 2,2,2,2,2,2,2,2, # c0 - c7\n 2,2,2,2,2,2,2,2, # c8 - cf\n 2,2,2,2,2,2,2,2, # d0 - d7\n 2,2,2,2,2,2,2,2, # d8 - df\n 0,0,0,0,0,0,0,0, # e0 - e7\n 0,0,0,0,0,0,0,0, # e8 - ef\n 0,0,0,0,0,0,0,0, # f0 - f7\n 0,0,0,0,0,0,0,5 # f8 - ff\n)\n\nEUCJP_st = (\n 3, 4, 3, 5,eStart,eError,eError,eError,#00-07\n eError,eError,eError,eError,eItsMe,eItsMe,eItsMe,eItsMe,#08-0f\n eItsMe,eItsMe,eStart,eError,eStart,eError,eError,eError,#10-17\n eError,eError,eStart,eError,eError,eError, 3,eError,#18-1f\n 3,eError,eError,eError,eStart,eStart,eStart,eStart#20-27\n)\n\nEUCJPCharLenTable = (2, 2, 2, 3, 1, 0)\n\nEUCJPSMModel = {'classTable': EUCJP_cls,\n 'classFactor': 6,\n 'stateTable': EUCJP_st,\n 'charLenTable': EUCJPCharLenTable,\n 'name': 'EUC-JP'}\n\nEUCKR_cls = (\n 1,1,1,1,1,1,1,1, # 00 - 07\n 1,1,1,1,1,1,0,0, # 08 - 0f\n 1,1,1,1,1,1,1,1, # 10 - 17\n 1,1,1,0,1,1,1,1, # 18 - 1f\n 1,1,1,1,1,1,1,1, # 20 - 27\n 1,1,1,1,1,1,1,1, # 28 - 2f\n 1,1,1,1,1,1,1,1, # 30 - 37\n 1,1,1,1,1,1,1,1, # 38 - 3f\n 1,1,1,1,1,1,1,1, # 40 - 47\n 1,1,1,1,1,1,1,1, # 48 - 4f\n 1,1,1,1,1,1,1,1, # 50 - 57\n 1,1,1,1,1,1,1,1, # 58 - 5f\n 1,1,1,1,1,1,1,1, # 60 - 67\n 1,1,1,1,1,1,1,1, # 68 - 6f\n 1,1,1,1,1,1,1,1, # 70 - 77\n 1,1,1,1,1,1,1,1, # 78 - 7f\n 0,0,0,0,0,0,0,0, # 80 - 87\n 0,0,0,0,0,0,0,0, # 88 - 8f\n 0,0,0,0,0,0,0,0, # 90 - 97\n 0,0,0,0,0,0,0,0, # 98 - 9f\n 0,2,2,2,2,2,2,2, # a0 - a7\n 2,2,2,2,2,3,3,3, # a8 - af\n 2,2,2,2,2,2,2,2, # b0 - b7\n 2,2,2,2,2,2,2,2, # b8 - bf\n 2,2,2,2,2,2,2,2, # c0 - c7\n 2,3,2,2,2,2,2,2, # c8 - cf\n 2,2,2,2,2,2,2,2, # d0 - d7\n 2,2,2,2,2,2,2,2, # d8 - df\n 2,2,2,2,2,2,2,2, # e0 - e7\n 2,2,2,2,2,2,2,2, # e8 - ef\n 2,2,2,2,2,2,2,2, # f0 - f7\n 2,2,2,2,2,2,2,0 # f8 - ff\n)\n\nEUCKR_st = (\n eError,eStart, 3,eError,eError,eError,eError,eError,#00-07\n eItsMe,eItsMe,eItsMe,eItsMe,eError,eError,eStart,eStart #08-0f\n)\n\nEUCKRCharLenTable = (0, 1, 2, 0)\n\nEUCKRSMModel = {'classTable': EUCKR_cls,\n 'classFactor': 4,\n 'stateTable': EUCKR_st,\n 'charLenTable': EUCKRCharLenTable,\n 'name': 'EUC-KR'}\n\nEUCTW_cls = (\n 2,2,2,2,2,2,2,2, # 00 - 07\n 2,2,2,2,2,2,0,0, # 08 - 0f\n 2,2,2,2,2,2,2,2, # 10 - 17\n 2,2,2,0,2,2,2,2, # 18 - 1f\n 2,2,2,2,2,2,2,2, # 20 - 27\n 2,2,2,2,2,2,2,2, # 28 - 2f\n 2,2,2,2,2,2,2,2, # 30 - 37\n 2,2,2,2,2,2,2,2, # 38 - 3f\n 2,2,2,2,2,2,2,2, # 40 - 47\n 2,2,2,2,2,2,2,2, # 48 - 4f\n 2,2,2,2,2,2,2,2, # 50 - 57\n 2,2,2,2,2,2,2,2, # 58 - 5f\n 2,2,2,2,2,2,2,2, # 60 - 67\n 2,2,2,2,2,2,2,2, # 68 - 6f\n 2,2,2,2,2,2,2,2, # 70 - 77\n 2,2,2,2,2,2,2,2, # 78 - 7f\n 0,0,0,0,0,0,0,0, # 80 - 87\n 0,0,0,0,0,0,6,0, # 88 - 8f\n 0,0,0,0,0,0,0,0, # 90 - 97\n 0,0,0,0,0,0,0,0, # 98 - 9f\n 0,3,4,4,4,4,4,4, # a0 - a7\n 5,5,1,1,1,1,1,1, # a8 - af\n 1,1,1,1,1,1,1,1, # b0 - b7\n 1,1,1,1,1,1,1,1, # b8 - bf\n 1,1,3,1,3,3,3,3, # c0 - c7\n 3,3,3,3,3,3,3,3, # c8 - cf\n 3,3,3,3,3,3,3,3, # d0 - d7\n 3,3,3,3,3,3,3,3, # d8 - df\n 3,3,3,3,3,3,3,3, # e0 - e7\n 3,3,3,3,3,3,3,3, # e8 - ef\n 3,3,3,3,3,3,3,3, # f0 - f7\n 3,3,3,3,3,3,3,0 # f8 - ff\n)\n\nEUCTW_st = (\n eError,eError,eStart, 3, 3, 3, 4,eError,#00-07\n eError,eError,eError,eError,eError,eError,eItsMe,eItsMe,#08-0f\n eItsMe,eItsMe,eItsMe,eItsMe,eItsMe,eError,eStart,eError,#10-17\n eStart,eStart,eStart,eError,eError,eError,eError,eError,#18-1f\n 5,eError,eError,eError,eStart,eError,eStart,eStart,#20-27\n eStart,eError,eStart,eStart,eStart,eStart,eStart,eStart #28-2f\n)\n\nEUCTWCharLenTable = (0, 0, 1, 2, 2, 2, 3)\n\nEUCTWSMModel = {'classTable': EUCTW_cls,\n 'classFactor': 7,\n 'stateTable': EUCTW_st,\n 'charLenTable': EUCTWCharLenTable,\n 'name': 'x-euc-tw'}\n\nGB2312_cls = (\n 1,1,1,1,1,1,1,1, # 00 - 07\n 1,1,1,1,1,1,0,0, # 08 - 0f\n 1,1,1,1,1,1,1,1, # 10 - 17\n 1,1,1,0,1,1,1,1, # 18 - 1f\n 1,1,1,1,1,1,1,1, # 20 - 27\n 1,1,1,1,1,1,1,1, # 28 - 2f\n 3,3,3,3,3,3,3,3, # 30 - 37\n 3,3,1,1,1,1,1,1, # 38 - 3f\n 2,2,2,2,2,2,2,2, # 40 - 47\n 2,2,2,2,2,2,2,2, # 48 - 4f\n 2,2,2,2,2,2,2,2, # 50 - 57\n 2,2,2,2,2,2,2,2, # 58 - 5f\n 2,2,2,2,2,2,2,2, # 60 - 67\n 2,2,2,2,2,2,2,2, # 68 - 6f\n 2,2,2,2,2,2,2,2, # 70 - 77\n 2,2,2,2,2,2,2,4, # 78 - 7f\n 5,6,6,6,6,6,6,6, # 80 - 87\n 6,6,6,6,6,6,6,6, # 88 - 8f\n 6,6,6,6,6,6,6,6, # 90 - 97\n 6,6,6,6,6,6,6,6, # 98 - 9f\n 6,6,6,6,6,6,6,6, # a0 - a7\n 6,6,6,6,6,6,6,6, # a8 - af\n 6,6,6,6,6,6,6,6, # b0 - b7\n 6,6,6,6,6,6,6,6, # b8 - bf\n 6,6,6,6,6,6,6,6, # c0 - c7\n 6,6,6,6,6,6,6,6, # c8 - cf\n 6,6,6,6,6,6,6,6, # d0 - d7\n 6,6,6,6,6,6,6,6, # d8 - df\n 6,6,6,6,6,6,6,6, # e0 - e7\n 6,6,6,6,6,6,6,6, # e8 - ef\n 6,6,6,6,6,6,6,6, # f0 - f7\n 6,6,6,6,6,6,6,0 # f8 - ff\n)\n\nGB2312_st = (\n eError,eStart,eStart,eStart,eStart,eStart, 3,eError,#00-07\n eError,eError,eError,eError,eError,eError,eItsMe,eItsMe,#08-0f\n eItsMe,eItsMe,eItsMe,eItsMe,eItsMe,eError,eError,eStart,#10-17\n 4,eError,eStart,eStart,eError,eError,eError,eError,#18-1f\n eError,eError, 5,eError,eError,eError,eItsMe,eError,#20-27\n eError,eError,eStart,eStart,eStart,eStart,eStart,eStart #28-2f\n)\n\nGB2312CharLenTable = (0, 1, 1, 1, 1, 1, 2)\n\nGB2312SMModel = {'classTable': GB2312_cls,\n 'classFactor': 7,\n 'stateTable': GB2312_st,\n 'charLenTable': GB2312CharLenTable,\n 'name': 'GB2312'}\n\nSJIS_cls = (\n 1,1,1,1,1,1,1,1, # 00 - 07\n 1,1,1,1,1,1,0,0, # 08 - 0f\n 1,1,1,1,1,1,1,1, # 10 - 17\n 1,1,1,0,1,1,1,1, # 18 - 1f\n 1,1,1,1,1,1,1,1, # 20 - 27\n 1,1,1,1,1,1,1,1, # 28 - 2f\n 1,1,1,1,1,1,1,1, # 30 - 37\n 1,1,1,1,1,1,1,1, # 38 - 3f\n 2,2,2,2,2,2,2,2, # 40 - 47\n 2,2,2,2,2,2,2,2, # 48 - 4f\n 2,2,2,2,2,2,2,2, # 50 - 57\n 2,2,2,2,2,2,2,2, # 58 - 5f\n 2,2,2,2,2,2,2,2, # 60 - 67\n 2,2,2,2,2,2,2,2, # 68 - 6f\n 2,2,2,2,2,2,2,2, # 70 - 77\n 2,2,2,2,2,2,2,1, # 78 - 7f\n 3,3,3,3,3,3,3,3, # 80 - 87\n 3,3,3,3,3,3,3,3, # 88 - 8f\n 3,3,3,3,3,3,3,3, # 90 - 97\n 3,3,3,3,3,3,3,3, # 98 - 9f\n #0xa0 is illegal in sjis encoding, but some pages does\n #contain such byte. We need to be more error forgiven.\n 2,2,2,2,2,2,2,2, # a0 - a7\n 2,2,2,2,2,2,2,2, # a8 - af\n 2,2,2,2,2,2,2,2, # b0 - b7\n 2,2,2,2,2,2,2,2, # b8 - bf\n 2,2,2,2,2,2,2,2, # c0 - c7\n 2,2,2,2,2,2,2,2, # c8 - cf\n 2,2,2,2,2,2,2,2, # d0 - d7\n 2,2,2,2,2,2,2,2, # d8 - df\n 3,3,3,3,3,3,3,3, # e0 - e7\n 3,3,3,3,3,4,4,4, # e8 - ef\n 4,4,4,4,4,4,4,4, # f0 - f7\n 4,4,4,4,4,0,0,0 # f8 - ff\n)\n\nSJIS_st = (\n eError,eStart,eStart, 3,eError,eError,eError,eError,#00-07\n eError,eError,eError,eError,eItsMe,eItsMe,eItsMe,eItsMe,#08-0f\n eItsMe,eItsMe,eError,eError,eStart,eStart,eStart,eStart #10-17\n)\n\nSJISCharLenTable = (0, 1, 1, 2, 0, 0)\n\nSJISSMModel = {'classTable': SJIS_cls,\n 'classFactor': 6,\n 'stateTable': SJIS_st,\n 'charLenTable': SJISCharLenTable,\n 'name': 'Shift_JIS'}\n\nUCS2BE_cls = (\n 0,0,0,0,0,0,0,0, # 00 - 07\n 0,0,1,0,0,2,0,0, # 08 - 0f\n 0,0,0,0,0,0,0,0, # 10 - 17\n 0,0,0,3,0,0,0,0, # 18 - 1f\n 0,0,0,0,0,0,0,0, # 20 - 27\n 0,3,3,3,3,3,0,0, # 28 - 2f\n 0,0,0,0,0,0,0,0, # 30 - 37\n 0,0,0,0,0,0,0,0, # 38 - 3f\n 0,0,0,0,0,0,0,0, # 40 - 47\n 0,0,0,0,0,0,0,0, # 48 - 4f\n 0,0,0,0,0,0,0,0, # 50 - 57\n 0,0,0,0,0,0,0,0, # 58 - 5f\n 0,0,0,0,0,0,0,0, # 60 - 67\n 0,0,0,0,0,0,0,0, # 68 - 6f\n 0,0,0,0,0,0,0,0, # 70 - 77\n 0,0,0,0,0,0,0,0, # 78 - 7f\n 0,0,0,0,0,0,0,0, # 80 - 87\n 0,0,0,0,0,0,0,0, # 88 - 8f\n 0,0,0,0,0,0,0,0, # 90 - 97\n 0,0,0,0,0,0,0,0, # 98 - 9f\n 0,0,0,0,0,0,0,0, # a0 - a7\n 0,0,0,0,0,0,0,0, # a8 - af\n 0,0,0,0,0,0,0,0, # b0 - b7\n 0,0,0,0,0,0,0,0, # b8 - bf\n 0,0,0,0,0,0,0,0, # c0 - c7\n 0,0,0,0,0,0,0,0, # c8 - cf\n 0,0,0,0,0,0,0,0, # d0 - d7\n 0,0,0,0,0,0,0,0, # d8 - df\n 0,0,0,0,0,0,0,0, # e0 - e7\n 0,0,0,0,0,0,0,0, # e8 - ef\n 0,0,0,0,0,0,0,0, # f0 - f7\n 0,0,0,0,0,0,4,5 # f8 - ff\n)\n\nUCS2BE_st = (\n 5, 7, 7,eError, 4, 3,eError,eError,#00-07\n eError,eError,eError,eError,eItsMe,eItsMe,eItsMe,eItsMe,#08-0f\n eItsMe,eItsMe, 6, 6, 6, 6,eError,eError,#10-17\n 6, 6, 6, 6, 6,eItsMe, 6, 6,#18-1f\n 6, 6, 6, 6, 5, 7, 7,eError,#20-27\n 5, 8, 6, 6,eError, 6, 6, 6,#28-2f\n 6, 6, 6, 6,eError,eError,eStart,eStart #30-37\n)\n\nUCS2BECharLenTable = (2, 2, 2, 0, 2, 2)\n\nUCS2BESMModel = {'classTable': UCS2BE_cls,\n 'classFactor': 6,\n 'stateTable': UCS2BE_st,\n 'charLenTable': UCS2BECharLenTable,\n 'name': 'UTF-16BE'}\n\nUCS2LE_cls = (\n 0,0,0,0,0,0,0,0, # 00 - 07\n 0,0,1,0,0,2,0,0, # 08 - 0f\n 0,0,0,0,0,0,0,0, # 10 - 17\n 0,0,0,3,0,0,0,0, # 18 - 1f\n 0,0,0,0,0,0,0,0, # 20 - 27\n 0,3,3,3,3,3,0,0, # 28 - 2f\n 0,0,0,0,0,0,0,0, # 30 - 37\n 0,0,0,0,0,0,0,0, # 38 - 3f\n 0,0,0,0,0,0,0,0, # 40 - 47\n 0,0,0,0,0,0,0,0, # 48 - 4f\n 0,0,0,0,0,0,0,0, # 50 - 57\n 0,0,0,0,0,0,0,0, # 58 - 5f\n 0,0,0,0,0,0,0,0, # 60 - 67\n 0,0,0,0,0,0,0,0, # 68 - 6f\n 0,0,0,0,0,0,0,0, # 70 - 77\n 0,0,0,0,0,0,0,0, # 78 - 7f\n 0,0,0,0,0,0,0,0, # 80 - 87\n 0,0,0,0,0,0,0,0, # 88 - 8f\n 0,0,0,0,0,0,0,0, # 90 - 97\n 0,0,0,0,0,0,0,0, # 98 - 9f\n 0,0,0,0,0,0,0,0, # a0 - a7\n 0,0,0,0,0,0,0,0, # a8 - af\n 0,0,0,0,0,0,0,0, # b0 - b7\n 0,0,0,0,0,0,0,0, # b8 - bf\n 0,0,0,0,0,0,0,0, # c0 - c7\n 0,0,0,0,0,0,0,0, # c8 - cf\n 0,0,0,0,0,0,0,0, # d0 - d7\n 0,0,0,0,0,0,0,0, # d8 - df\n 0,0,0,0,0,0,0,0, # e0 - e7\n 0,0,0,0,0,0,0,0, # e8 - ef\n 0,0,0,0,0,0,0,0, # f0 - f7\n 0,0,0,0,0,0,4,5 # f8 - ff\n)\n\nUCS2LE_st = (\n 6, 6, 7, 6, 4, 3,eError,eError,#00-07\n eError,eError,eError,eError,eItsMe,eItsMe,eItsMe,eItsMe,#08-0f\n eItsMe,eItsMe, 5, 5, 5,eError,eItsMe,eError,#10-17\n 5, 5, 5,eError, 5,eError, 6, 6,#18-1f\n 7, 6, 8, 8, 5, 5, 5,eError,#20-27\n 5, 5, 5,eError,eError,eError, 5, 5,#28-2f\n 5, 5, 5,eError, 5,eError,eStart,eStart #30-37\n)\n\nUCS2LECharLenTable = (2, 2, 2, 2, 2, 2)\n\nUCS2LESMModel = {'classTable': UCS2LE_cls,\n 'classFactor': 6,\n 'stateTable': UCS2LE_st,\n 'charLenTable': UCS2LECharLenTable,\n 'name': 'UTF-16LE'}\n\nUTF8_cls = (\n 1,1,1,1,1,1,1,1, # 00 - 07 #allow 0x00 as a legal value\n 1,1,1,1,1,1,0,0, # 08 - 0f\n 1,1,1,1,1,1,1,1, # 10 - 17\n 1,1,1,0,1,1,1,1, # 18 - 1f\n 1,1,1,1,1,1,1,1, # 20 - 27\n 1,1,1,1,1,1,1,1, # 28 - 2f\n 1,1,1,1,1,1,1,1, # 30 - 37\n 1,1,1,1,1,1,1,1, # 38 - 3f\n 1,1,1,1,1,1,1,1, # 40 - 47\n 1,1,1,1,1,1,1,1, # 48 - 4f\n 1,1,1,1,1,1,1,1, # 50 - 57\n 1,1,1,1,1,1,1,1, # 58 - 5f\n 1,1,1,1,1,1,1,1, # 60 - 67\n 1,1,1,1,1,1,1,1, # 68 - 6f\n 1,1,1,1,1,1,1,1, # 70 - 77\n 1,1,1,1,1,1,1,1, # 78 - 7f\n 2,2,2,2,3,3,3,3, # 80 - 87\n 4,4,4,4,4,4,4,4, # 88 - 8f\n 4,4,4,4,4,4,4,4, # 90 - 97\n 4,4,4,4,4,4,4,4, # 98 - 9f\n 5,5,5,5,5,5,5,5, # a0 - a7\n 5,5,5,5,5,5,5,5, # a8 - af\n 5,5,5,5,5,5,5,5, # b0 - b7\n 5,5,5,5,5,5,5,5, # b8 - bf\n 0,0,6,6,6,6,6,6, # c0 - c7\n 6,6,6,6,6,6,6,6, # c8 - cf\n 6,6,6,6,6,6,6,6, # d0 - d7\n 6,6,6,6,6,6,6,6, # d8 - df\n 7,8,8,8,8,8,8,8, # e0 - e7\n 8,8,8,8,8,9,8,8, # e8 - ef\n 10,11,11,11,11,11,11,11, # f0 - f7\n 12,13,13,13,14,15,0,0 # f8 - ff\n)\n\nUTF8_st = (\n eError,eStart,eError,eError,eError,eError, 12, 10,#00-07\n 9, 11, 8, 7, 6, 5, 4, 3,#08-0f\n eError,eError,eError,eError,eError,eError,eError,eError,#10-17\n eError,eError,eError,eError,eError,eError,eError,eError,#18-1f\n eItsMe,eItsMe,eItsMe,eItsMe,eItsMe,eItsMe,eItsMe,eItsMe,#20-27\n eItsMe,eItsMe,eItsMe,eItsMe,eItsMe,eItsMe,eItsMe,eItsMe,#28-2f\n eError,eError, 5, 5, 5, 5,eError,eError,#30-37\n eError,eError,eError,eError,eError,eError,eError,eError,#38-3f\n eError,eError,eError, 5, 5, 5,eError,eError,#40-47\n eError,eError,eError,eError,eError,eError,eError,eError,#48-4f\n eError,eError, 7, 7, 7, 7,eError,eError,#50-57\n eError,eError,eError,eError,eError,eError,eError,eError,#58-5f\n eError,eError,eError,eError, 7, 7,eError,eError,#60-67\n eError,eError,eError,eError,eError,eError,eError,eError,#68-6f\n eError,eError, 9, 9, 9, 9,eError,eError,#70-77\n eError,eError,eError,eError,eError,eError,eError,eError,#78-7f\n eError,eError,eError,eError,eError, 9,eError,eError,#80-87\n eError,eError,eError,eError,eError,eError,eError,eError,#88-8f\n eError,eError, 12, 12, 12, 12,eError,eError,#90-97\n eError,eError,eError,eError,eError,eError,eError,eError,#98-9f\n eError,eError,eError,eError,eError, 12,eError,eError,#a0-a7\n eError,eError,eError,eError,eError,eError,eError,eError,#a8-af\n eError,eError, 12, 12, 12,eError,eError,eError,#b0-b7\n eError,eError,eError,eError,eError,eError,eError,eError,#b8-bf\n eError,eError,eStart,eStart,eStart,eStart,eError,eError,#c0-c7\n eError,eError,eError,eError,eError,eError,eError,eError #c8-cf\n)\n\nUTF8CharLenTable = (0, 1, 0, 0, 0, 0, 2, 3, 3, 3, 4, 4, 5, 5, 6, 6)\n\nUTF8SMModel = {'classTable': UTF8_cls,\n 'classFactor': 16,\n 'stateTable': UTF8_st,\n 'charLenTable': UTF8CharLenTable,\n 'name': 'UTF-8'}"},{"col":4,"comment":"od.viewvalues() -> an object providing a view on od's values","endLoc":256,"header":"def viewvalues(self)","id":779,"name":"viewvalues","nodeType":"Function","startLoc":254,"text":"def viewvalues(self):\n \"od.viewvalues() -> an object providing a view on od's values\"\n return ValuesView(self)"},{"col":4,"comment":"od.viewitems() -> a set-like object providing a view on od's items","endLoc":260,"header":"def viewitems(self)","id":780,"name":"viewitems","nodeType":"Function","startLoc":258,"text":"def viewitems(self):\n \"od.viewitems() -> a set-like object providing a view on od's items\"\n return ItemsView(self)"},{"attributeType":"function","col":4,"comment":"null","endLoc":174,"id":781,"name":"__update","nodeType":"Attribute","startLoc":174,"text":"__update"},{"attributeType":"null","col":4,"comment":"null","endLoc":176,"id":782,"name":"__marker","nodeType":"Attribute","startLoc":176,"text":"__marker"},{"attributeType":"null","col":12,"comment":"null","endLoc":42,"id":783,"name":"__map","nodeType":"Attribute","startLoc":42,"text":"self.__map"},{"attributeType":"null","col":12,"comment":"null","endLoc":40,"id":784,"name":"__root","nodeType":"Attribute","startLoc":40,"text":"self.__root"},{"col":0,"comment":"null","endLoc":179,"header":"@overload\ndef urlparse(url: str, scheme: str = \"\", allow_fragments: bool = True) -> ParseResult","id":785,"name":"urlparse","nodeType":"Function","startLoc":178,"text":"@overload\ndef urlparse(url: str, scheme: str = \"\", allow_fragments: bool = True) -> ParseResult: ..."},{"col":0,"comment":"null","endLoc":183,"header":"@overload\ndef urlparse(\n url: bytes | bytearray | None, scheme: bytes | bytearray | None | Literal[\"\"] = \"\", allow_fragments: bool = True\n) -> ParseResultBytes","id":786,"name":"urlparse","nodeType":"Function","startLoc":180,"text":"@overload\ndef urlparse(\n url: bytes | bytearray | None, scheme: bytes | bytearray | None | Literal[\"\"] = \"\", allow_fragments: bool = True\n) -> ParseResultBytes: ..."},{"attributeType":"null","col":8,"comment":"null","endLoc":39,"id":787,"name":"_maxsize","nodeType":"Attribute","startLoc":39,"text":"self._maxsize"},{"col":0,"comment":"null","endLoc":201,"header":"@overload\ndef urlunparse(components: Iterable[None]) -> Literal[b\"\"]","id":788,"name":"urlunparse","nodeType":"Function","startLoc":200,"text":"@overload\ndef urlunparse(components: Iterable[None]) -> Literal[b\"\"]: ..."},{"col":0,"comment":"null","endLoc":203,"header":"@overload\ndef urlunparse(components: Iterable[AnyStr | None]) -> AnyStr","id":789,"name":"urlunparse","nodeType":"Function","startLoc":202,"text":"@overload\ndef urlunparse(components: Iterable[AnyStr | None]) -> AnyStr: ..."},{"col":0,"comment":"Extract the cookies from the response into a CookieJar.\n\n :param jar: cookielib.CookieJar (not necessarily a RequestsCookieJar)\n :param request: our own requests.Request object\n :param response: urllib3.HTTPResponse object\n ","endLoc":117,"header":"def extract_cookies_to_jar(jar, request, response)","id":790,"name":"extract_cookies_to_jar","nodeType":"Function","startLoc":103,"text":"def extract_cookies_to_jar(jar, request, response):\n \"\"\"Extract the cookies from the response into a CookieJar.\n\n :param jar: cookielib.CookieJar (not necessarily a RequestsCookieJar)\n :param request: our own requests.Request object\n :param response: urllib3.HTTPResponse object\n \"\"\"\n if not (hasattr(response, '_original_response') and\n response._original_response):\n return\n # the _original_response field is the wrapped httplib.HTTPResponse object,\n req = MockRequest(request)\n # pull out the HTTPMessage with the headers and put it in the mock:\n res = MockResponse(response._original_response.msg)\n jar.extract_cookies(res, req)"},{"col":4,"comment":"Content of the response, in unicode.\n\n If Response.encoding is None, encoding will be guessed using\n ``charade``.\n ","endLoc":678,"header":"@property\n def text(self)","id":791,"name":"text","nodeType":"Function","startLoc":647,"text":"@property\n def text(self):\n \"\"\"Content of the response, in unicode.\n\n If Response.encoding is None, encoding will be guessed using\n ``charade``.\n \"\"\"\n\n # Try charset from content-type\n content = None\n encoding = self.encoding\n\n if not self.content:\n return str('')\n\n # Fallback to auto-detected encoding.\n if self.encoding is None:\n encoding = self.apparent_encoding\n\n # Decode unicode from given encoding.\n try:\n content = str(self.content, encoding, errors='replace')\n except (LookupError, TypeError):\n # A LookupError is raised if the encoding was not found which could\n # indicate a misspelling or similar mistake.\n #\n # A TypeError can be raised if encoding is None\n #\n # So we try blindly encoding.\n content = str(self.content, errors='replace')\n\n return content"},{"col":4,"comment":"Returns the json-encoded content of a response, if any.\n\n :param \\*\\*kwargs: Optional arguments that ``json.loads`` takes.\n ","endLoc":694,"header":"def json(self, **kwargs)","id":792,"name":"json","nodeType":"Function","startLoc":680,"text":"def json(self, **kwargs):\n \"\"\"Returns the json-encoded content of a response, if any.\n\n :param \\*\\*kwargs: Optional arguments that ``json.loads`` takes.\n \"\"\"\n\n if not self.encoding and len(self.content) > 3:\n # No encoding set. JSON RFC 4627 section 3 states we should expect\n # UTF-8, -16 or -32. Detect which one to use; If the detection or\n # decoding fails, fall back to `self.text` (using chardet to make\n # a best guess).\n encoding = guess_json_utf(self.content)\n if encoding is not None:\n return json.loads(self.content.decode(encoding), **kwargs)\n return json.loads(self.text, **kwargs)"},{"col":0,"comment":"null","endLoc":545,"header":"def guess_json_utf(data)","id":793,"name":"guess_json_utf","nodeType":"Function","startLoc":519,"text":"def guess_json_utf(data):\n # JSON always starts with two ASCII characters, so detection is as\n # easy as counting the nulls and from their location and count\n # determine the encoding. Also detect a BOM, if present.\n sample = data[:4]\n if sample in (codecs.BOM_UTF32_LE, codecs.BOM32_BE):\n return 'utf-32' # BOM included\n if sample[:3] == codecs.BOM_UTF8:\n return 'utf-8-sig' # BOM included, MS style (discouraged)\n if sample[:2] in (codecs.BOM_UTF16_LE, codecs.BOM_UTF16_BE):\n return 'utf-16' # BOM included\n nullcount = sample.count(_null)\n if nullcount == 0:\n return 'utf-8'\n if nullcount == 2:\n if sample[::2] == _null2: # 1st and 3rd are null\n return 'utf-16-be'\n if sample[1::2] == _null2: # 2nd and 4th are null\n return 'utf-16-le'\n # Did not detect 2 valid UTF-16 ascii-range characters\n if nullcount == 3:\n if sample[:3] == _null3:\n return 'utf-32-be'\n if sample[1:] == _null3:\n return 'utf-32-le'\n # Did not detect a valid UTF-32 ascii-range character\n return None"},{"className":"HTTPConnectionPool","col":0,"comment":"\n Thread-safe connection pool for one host.\n\n :param host:\n Host used for this HTTP Connection (e.g. \"localhost\"), passed into\n :class:`httplib.HTTPConnection`.\n\n :param port:\n Port used for this HTTP Connection (None is equivalent to 80), passed\n into :class:`httplib.HTTPConnection`.\n\n :param strict:\n Causes BadStatusLine to be raised if the status line can't be parsed\n as a valid HTTP/1.0 or 1.1 status line, passed into\n :class:`httplib.HTTPConnection`.\n\n .. note::\n Only works in Python 2. This parameter is ignored in Python 3.\n\n :param timeout:\n Socket timeout in seconds for each individual connection. This can\n be a float or integer, which sets the timeout for the HTTP request,\n or an instance of :class:`urllib3.util.Timeout` which gives you more\n fine-grained control over request timeouts. After the constructor has\n been parsed, this is always a `urllib3.util.Timeout` object.\n\n :param maxsize:\n Number of connections to save that can be reused. More than 1 is useful\n in multithreaded situations. If ``block`` is set to false, more\n connections will be created but they will not be saved once they've\n been used.\n\n :param block:\n If set to True, no more than ``maxsize`` connections will be used at\n a time. When no free connections are available, the call will block\n until a connection has been released. This is a useful side effect for\n particular multithreaded situations where one does not want to use more\n than maxsize connections per host to prevent flooding.\n\n :param headers:\n Headers to include with all requests, unless other headers are given\n explicitly.\n\n :param _proxy:\n Parsed proxy URL, should not be used directly, instead, see\n :class:`urllib3.connectionpool.ProxyManager`\"\n\n :param _proxy_headers:\n A dictionary with proxy headers, should not be used directly,\n instead, see :class:`urllib3.connectionpool.ProxyManager`\"\n ","endLoc":550,"id":794,"nodeType":"Class","startLoc":85,"text":"class HTTPConnectionPool(ConnectionPool, RequestMethods):\n \"\"\"\n Thread-safe connection pool for one host.\n\n :param host:\n Host used for this HTTP Connection (e.g. \"localhost\"), passed into\n :class:`httplib.HTTPConnection`.\n\n :param port:\n Port used for this HTTP Connection (None is equivalent to 80), passed\n into :class:`httplib.HTTPConnection`.\n\n :param strict:\n Causes BadStatusLine to be raised if the status line can't be parsed\n as a valid HTTP/1.0 or 1.1 status line, passed into\n :class:`httplib.HTTPConnection`.\n\n .. note::\n Only works in Python 2. This parameter is ignored in Python 3.\n\n :param timeout:\n Socket timeout in seconds for each individual connection. This can\n be a float or integer, which sets the timeout for the HTTP request,\n or an instance of :class:`urllib3.util.Timeout` which gives you more\n fine-grained control over request timeouts. After the constructor has\n been parsed, this is always a `urllib3.util.Timeout` object.\n\n :param maxsize:\n Number of connections to save that can be reused. More than 1 is useful\n in multithreaded situations. If ``block`` is set to false, more\n connections will be created but they will not be saved once they've\n been used.\n\n :param block:\n If set to True, no more than ``maxsize`` connections will be used at\n a time. When no free connections are available, the call will block\n until a connection has been released. This is a useful side effect for\n particular multithreaded situations where one does not want to use more\n than maxsize connections per host to prevent flooding.\n\n :param headers:\n Headers to include with all requests, unless other headers are given\n explicitly.\n\n :param _proxy:\n Parsed proxy URL, should not be used directly, instead, see\n :class:`urllib3.connectionpool.ProxyManager`\"\n\n :param _proxy_headers:\n A dictionary with proxy headers, should not be used directly,\n instead, see :class:`urllib3.connectionpool.ProxyManager`\"\n \"\"\"\n\n scheme = 'http'\n ConnectionCls = HTTPConnection\n\n def __init__(self, host, port=None, strict=False,\n timeout=Timeout.DEFAULT_TIMEOUT, maxsize=1, block=False,\n headers=None, _proxy=None, _proxy_headers=None):\n ConnectionPool.__init__(self, host, port)\n RequestMethods.__init__(self, headers)\n\n self.strict = strict\n\n # This is for backwards compatibility and can be removed once a timeout\n # can only be set to a Timeout object\n if not isinstance(timeout, Timeout):\n timeout = Timeout.from_float(timeout)\n\n self.timeout = timeout\n\n self.pool = self.QueueCls(maxsize)\n self.block = block\n\n self.proxy = _proxy\n self.proxy_headers = _proxy_headers or {}\n\n # Fill the queue up so that doing get() on it will block properly\n for _ in xrange(maxsize):\n self.pool.put(None)\n\n # These are mostly for testing and debugging purposes.\n self.num_connections = 0\n self.num_requests = 0\n\n def _new_conn(self):\n \"\"\"\n Return a fresh :class:`httplib.HTTPConnection`.\n \"\"\"\n self.num_connections += 1\n log.info(\"Starting new HTTP connection (%d): %s\" %\n (self.num_connections, self.host))\n\n extra_params = {}\n if not six.PY3: # Python 2\n extra_params['strict'] = self.strict\n\n return self.ConnectionCls(host=self.host, port=self.port,\n timeout=self.timeout.connect_timeout,\n **extra_params)\n\n def _get_conn(self, timeout=None):\n \"\"\"\n Get a connection. Will return a pooled connection if one is available.\n\n If no connections are available and :prop:`.block` is ``False``, then a\n fresh connection is returned.\n\n :param timeout:\n Seconds to wait before giving up and raising\n :class:`urllib3.exceptions.EmptyPoolError` if the pool is empty and\n :prop:`.block` is ``True``.\n \"\"\"\n conn = None\n try:\n conn = self.pool.get(block=self.block, timeout=timeout)\n\n except AttributeError: # self.pool is None\n raise ClosedPoolError(self, \"Pool is closed.\")\n\n except Empty:\n if self.block:\n raise EmptyPoolError(self,\n \"Pool reached maximum size and no more \"\n \"connections are allowed.\")\n pass # Oh well, we'll create a new connection then\n\n # If this is a persistent connection, check if it got disconnected\n if conn and is_connection_dropped(conn):\n log.info(\"Resetting dropped connection: %s\" % self.host)\n conn.close()\n\n return conn or self._new_conn()\n\n def _put_conn(self, conn):\n \"\"\"\n Put a connection back into the pool.\n\n :param conn:\n Connection object for the current host and port as returned by\n :meth:`._new_conn` or :meth:`._get_conn`.\n\n If the pool is already full, the connection is closed and discarded\n because we exceeded maxsize. If connections are discarded frequently,\n then maxsize should be increased.\n\n If the pool is closed, then the connection will be closed and discarded.\n \"\"\"\n try:\n self.pool.put(conn, block=False)\n return # Everything is dandy, done.\n except AttributeError:\n # self.pool is None.\n pass\n except Full:\n # This should never happen if self.block == True\n log.warning(\"HttpConnectionPool is full, discarding connection: %s\"\n % self.host)\n\n # Connection never got put back into the pool, close it.\n if conn:\n conn.close()\n\n def _get_timeout(self, timeout):\n \"\"\" Helper that always returns a :class:`urllib3.util.Timeout` \"\"\"\n if timeout is _Default:\n return self.timeout.clone()\n\n if isinstance(timeout, Timeout):\n return timeout.clone()\n else:\n # User passed us an int/float. This is for backwards compatibility,\n # can be removed later\n return Timeout.from_float(timeout)\n\n def _make_request(self, conn, method, url, timeout=_Default,\n **httplib_request_kw):\n \"\"\"\n Perform a request on a given httplib connection object taken from our\n pool.\n\n :param conn:\n a connection from one of our connection pools\n\n :param timeout:\n Socket timeout in seconds for the request. This can be a\n float or integer, which will set the same timeout value for\n the socket connect and the socket read, or an instance of\n :class:`urllib3.util.Timeout`, which gives you more fine-grained\n control over your timeouts.\n \"\"\"\n self.num_requests += 1\n\n timeout_obj = self._get_timeout(timeout)\n\n try:\n timeout_obj.start_connect()\n conn.timeout = timeout_obj.connect_timeout\n # conn.request() calls httplib.*.request, not the method in\n # urllib3.request. It also calls makefile (recv) on the socket.\n conn.request(method, url, **httplib_request_kw)\n except SocketTimeout:\n raise ConnectTimeoutError(\n self, \"Connection to %s timed out. (connect timeout=%s)\" %\n (self.host, timeout_obj.connect_timeout))\n\n # Reset the timeout for the recv() on the socket\n read_timeout = timeout_obj.read_timeout\n\n # App Engine doesn't have a sock attr\n if hasattr(conn, 'sock'):\n # In Python 3 socket.py will catch EAGAIN and return None when you\n # try and read into the file pointer created by http.client, which\n # instead raises a BadStatusLine exception. Instead of catching\n # the exception and assuming all BadStatusLine exceptions are read\n # timeouts, check for a zero timeout before making the request.\n if read_timeout == 0:\n raise ReadTimeoutError(\n self, url,\n \"Read timed out. (read timeout=%s)\" % read_timeout)\n if read_timeout is Timeout.DEFAULT_TIMEOUT:\n conn.sock.settimeout(socket.getdefaulttimeout())\n else: # None or a value\n conn.sock.settimeout(read_timeout)\n\n # Receive the response from the server\n try:\n try: # Python 2.7+, use buffering of HTTP responses\n httplib_response = conn.getresponse(buffering=True)\n except TypeError: # Python 2.6 and older\n httplib_response = conn.getresponse()\n except SocketTimeout:\n raise ReadTimeoutError(\n self, url, \"Read timed out. (read timeout=%s)\" % read_timeout)\n\n except BaseSSLError as e:\n # Catch possible read timeouts thrown as SSL errors. If not the\n # case, rethrow the original. We need to do this because of:\n # http://bugs.python.org/issue10272\n if 'timed out' in str(e) or \\\n 'did not complete (read)' in str(e): # Python 2.6\n raise ReadTimeoutError(self, url, \"Read timed out.\")\n\n raise\n\n except SocketError as e: # Platform-specific: Python 2\n # See the above comment about EAGAIN in Python 3. In Python 2 we\n # have to specifically catch it and throw the timeout error\n if e.errno in _blocking_errnos:\n raise ReadTimeoutError(\n self, url,\n \"Read timed out. (read timeout=%s)\" % read_timeout)\n\n raise\n\n # AppEngine doesn't have a version attr.\n http_version = getattr(conn, '_http_vsn_str', 'HTTP/?')\n log.debug(\"\\\"%s %s %s\\\" %s %s\" % (method, url, http_version,\n httplib_response.status,\n httplib_response.length))\n return httplib_response\n\n def close(self):\n \"\"\"\n Close all pooled connections and disable the pool.\n \"\"\"\n # Disable access to the pool\n old_pool, self.pool = self.pool, None\n\n try:\n while True:\n conn = old_pool.get(block=False)\n if conn:\n conn.close()\n\n except Empty:\n pass # Done.\n\n def is_same_host(self, url):\n \"\"\"\n Check if the given ``url`` is a member of the same host as this\n connection pool.\n \"\"\"\n if url.startswith('/'):\n return True\n\n # TODO: Add optional support for socket.gethostbyname checking.\n scheme, host, port = get_host(url)\n\n if self.port and not port:\n # Use explicit default port for comparison when none is given.\n port = port_by_scheme.get(scheme)\n\n return (scheme, host, port) == (self.scheme, self.host, self.port)\n\n def urlopen(self, method, url, body=None, headers=None, retries=3,\n redirect=True, assert_same_host=True, timeout=_Default,\n pool_timeout=None, release_conn=None, **response_kw):\n \"\"\"\n Get a connection from the pool and perform an HTTP request. This is the\n lowest level call for making a request, so you'll need to specify all\n the raw details.\n\n .. note::\n\n More commonly, it's appropriate to use a convenience method provided\n by :class:`.RequestMethods`, such as :meth:`request`.\n\n .. note::\n\n `release_conn` will only behave as expected if\n `preload_content=False` because we want to make\n `preload_content=False` the default behaviour someday soon without\n breaking backwards compatibility.\n\n :param method:\n HTTP request method (such as GET, POST, PUT, etc.)\n\n :param body:\n Data to send in the request body (useful for creating\n POST requests, see HTTPConnectionPool.post_url for\n more convenience).\n\n :param headers:\n Dictionary of custom headers to send, such as User-Agent,\n If-None-Match, etc. If None, pool headers are used. If provided,\n these headers completely replace any pool-specific headers.\n\n :param retries:\n Number of retries to allow before raising a MaxRetryError exception.\n\n :param redirect:\n If True, automatically handle redirects (status codes 301, 302,\n 303, 307, 308). Each redirect counts as a retry.\n\n :param assert_same_host:\n If ``True``, will make sure that the host of the pool requests is\n consistent else will raise HostChangedError. When False, you can\n use the pool on an HTTP proxy and request foreign hosts.\n\n :param timeout:\n If specified, overrides the default timeout for this one\n request. It may be a float (in seconds) or an instance of\n :class:`urllib3.util.Timeout`.\n\n :param pool_timeout:\n If set and the pool is set to block=True, then this method will\n block for ``pool_timeout`` seconds and raise EmptyPoolError if no\n connection is available within the time period.\n\n :param release_conn:\n If False, then the urlopen call will not release the connection\n back into the pool once a response is received (but will release if\n you read the entire contents of the response such as when\n `preload_content=True`). This is useful if you're not preloading\n the response's content immediately. You will need to call\n ``r.release_conn()`` on the response ``r`` to return the connection\n back into the pool. If None, it takes the value of\n ``response_kw.get('preload_content', True)``.\n\n :param \\**response_kw:\n Additional parameters are passed to\n :meth:`urllib3.response.HTTPResponse.from_httplib`\n \"\"\"\n if headers is None:\n headers = self.headers\n\n if retries < 0:\n raise MaxRetryError(self, url)\n\n if release_conn is None:\n release_conn = response_kw.get('preload_content', True)\n\n # Check host\n if assert_same_host and not self.is_same_host(url):\n raise HostChangedError(self, url, retries - 1)\n\n conn = None\n\n try:\n # Request a connection from the queue\n conn = self._get_conn(timeout=pool_timeout)\n\n # Make the request on the httplib connection object\n httplib_response = self._make_request(conn, method, url,\n timeout=timeout,\n body=body, headers=headers)\n\n # If we're going to release the connection in ``finally:``, then\n # the request doesn't need to know about the connection. Otherwise\n # it will also try to release it and we'll have a double-release\n # mess.\n response_conn = not release_conn and conn\n\n # Import httplib's response into our own wrapper object\n response = HTTPResponse.from_httplib(httplib_response,\n pool=self,\n connection=response_conn,\n **response_kw)\n\n # else:\n # The connection will be put back into the pool when\n # ``response.release_conn()`` is called (implicitly by\n # ``response.read()``)\n\n except Empty:\n # Timed out by queue\n raise EmptyPoolError(self, \"No pool connections are available.\")\n\n except BaseSSLError as e:\n raise SSLError(e)\n\n except CertificateError as e:\n # Name mismatch\n raise SSLError(e)\n\n except TimeoutError as e:\n # Connection broken, discard.\n conn = None\n # Save the error off for retry logic.\n err = e\n\n if retries == 0:\n raise\n\n except (HTTPException, SocketError) as e:\n if isinstance(e, SocketError) and self.proxy is not None:\n raise ProxyError('Cannot connect to proxy. '\n 'Socket error: %s.' % e)\n\n # Connection broken, discard. It will be replaced next _get_conn().\n conn = None\n # This is necessary so we can access e below\n err = e\n\n if retries == 0:\n raise MaxRetryError(self, url, e)\n\n finally:\n if release_conn:\n # Put the connection back to be reused. If the connection is\n # expired then it will be None, which will get replaced with a\n # fresh connection during _get_conn.\n self._put_conn(conn)\n\n if not conn:\n # Try again\n log.warn(\"Retrying (%d attempts remain) after connection \"\n \"broken by '%r': %s\" % (retries, err, url))\n return self.urlopen(method, url, body, headers, retries - 1,\n redirect, assert_same_host,\n timeout=timeout, pool_timeout=pool_timeout,\n release_conn=release_conn, **response_kw)\n\n # Handle redirect?\n redirect_location = redirect and response.get_redirect_location()\n if redirect_location:\n if response.status == 303:\n method = 'GET'\n log.info(\"Redirecting %s -> %s\" % (url, redirect_location))\n return self.urlopen(method, redirect_location, body, headers,\n retries - 1, redirect, assert_same_host,\n timeout=timeout, pool_timeout=pool_timeout,\n release_conn=release_conn, **response_kw)\n\n return response"},{"col":4,"comment":"null","endLoc":36,"header":"def __init__(self, request)","id":795,"name":"__init__","nodeType":"Function","startLoc":33,"text":"def __init__(self, request):\n self._r = request\n self._new_headers = {}\n self.type = urlparse(self._r.url).scheme"},{"className":"ConnectionPool","col":0,"comment":"\n Base class for all connection pools, such as\n :class:`.HTTPConnectionPool` and :class:`.HTTPSConnectionPool`.\n ","endLoc":80,"id":796,"nodeType":"Class","startLoc":62,"text":"class ConnectionPool(object):\n \"\"\"\n Base class for all connection pools, such as\n :class:`.HTTPConnectionPool` and :class:`.HTTPSConnectionPool`.\n \"\"\"\n\n scheme = None\n QueueCls = LifoQueue\n\n def __init__(self, host, port=None):\n # httplib doesn't like it when we include brackets in ipv6 addresses\n host = host.strip('[]')\n\n self.host = host\n self.port = port\n\n def __str__(self):\n return '%s(host=%r, port=%r)' % (type(self).__name__,\n self.host, self.port)"},{"col":4,"comment":"\n Similar to :meth:`httplib.HTTPResponse.read`, but with two additional\n parameters: ``decode_content`` and ``cache_content``.\n\n :param amt:\n How much of the content to read. If specified, caching is skipped\n because it doesn't make sense to cache partial content as the full\n response.\n\n :param decode_content:\n If True, will attempt to decode the body based on the\n 'content-encoding' header.\n\n :param cache_content:\n If True, will save the returned data such that the same result is\n returned despite of the state of the underlying file object. This\n is useful if you want the ``.data`` property to continue working\n after having ``.read()`` the file object. (Overridden if ``amt`` is\n set.)\n ","endLoc":206,"header":"def read(self, amt=None, decode_content=None, cache_content=False)","id":797,"name":"read","nodeType":"Function","startLoc":132,"text":"def read(self, amt=None, decode_content=None, cache_content=False):\n \"\"\"\n Similar to :meth:`httplib.HTTPResponse.read`, but with two additional\n parameters: ``decode_content`` and ``cache_content``.\n\n :param amt:\n How much of the content to read. If specified, caching is skipped\n because it doesn't make sense to cache partial content as the full\n response.\n\n :param decode_content:\n If True, will attempt to decode the body based on the\n 'content-encoding' header.\n\n :param cache_content:\n If True, will save the returned data such that the same result is\n returned despite of the state of the underlying file object. This\n is useful if you want the ``.data`` property to continue working\n after having ``.read()`` the file object. (Overridden if ``amt`` is\n set.)\n \"\"\"\n # Note: content-encoding value should be case-insensitive, per RFC 2616\n # Section 3.5\n content_encoding = self.headers.get('content-encoding', '').lower()\n if self._decoder is None:\n if content_encoding in self.CONTENT_DECODERS:\n self._decoder = _get_decoder(content_encoding)\n if decode_content is None:\n decode_content = self.decode_content\n\n if self._fp is None:\n return\n\n flush_decoder = False\n\n try:\n if amt is None:\n # cStringIO doesn't like amt=None\n data = self._fp.read()\n flush_decoder = True\n else:\n cache_content = False\n data = self._fp.read(amt)\n if amt != 0 and not data: # Platform-specific: Buggy versions of Python.\n # Close the connection when no data is returned\n #\n # This is redundant to what httplib/http.client _should_\n # already do. However, versions of python released before\n # December 15, 2012 (http://bugs.python.org/issue16298) do not\n # properly close the connection in all cases. There is no harm\n # in redundantly calling close.\n self._fp.close()\n flush_decoder = True\n\n try:\n if decode_content and self._decoder:\n data = self._decoder.decompress(data)\n except (IOError, zlib.error) as e:\n raise DecodeError(\n \"Received response with content-encoding: %s, but \"\n \"failed to decode it.\" % content_encoding,\n e)\n\n if flush_decoder and decode_content and self._decoder:\n buf = self._decoder.decompress(binary_type())\n data += buf + self._decoder.flush()\n\n if cache_content:\n self._body = data\n\n return data\n\n finally:\n if self._original_response and self._original_response.isclosed():\n self.release_conn()"},{"col":0,"comment":"null","endLoc":50,"header":"def _get_decoder(mode)","id":800,"name":"_get_decoder","nodeType":"Function","startLoc":46,"text":"def _get_decoder(mode):\n if mode == 'gzip':\n return zlib.decompressobj(16 + zlib.MAX_WBITS)\n\n return DeflateDecoder()"},{"col":4,"comment":"null","endLoc":76,"header":"def __init__(self, host, port=None)","id":802,"name":"__init__","nodeType":"Function","startLoc":71,"text":"def __init__(self, host, port=None):\n # httplib doesn't like it when we include brackets in ipv6 addresses\n host = host.strip('[]')\n\n self.host = host\n self.port = port"},{"id":803,"name":"api.rst","nodeType":"TextFile","path":"docs","text":".. _api:\n\nDeveloper Interface\n===================\n\n.. module:: requests\n\nThis part of the documentation covers all the interfaces of Requests. For\nparts where Requests depends on external libraries, we document the most\nimportant right here and provide links to the canonical documentation.\n\n\nMain Interface\n--------------\n\nAll of Requests' functionality can be accessed by these 7 methods.\nThey all return an instance of the :class:`Response ` object.\n\n.. autofunction:: request\n\n.. autofunction:: head\n.. autofunction:: get\n.. autofunction:: post\n.. autofunction:: put\n.. autofunction:: patch\n.. autofunction:: delete\n\n\nLower-Level Classes\n~~~~~~~~~~~~~~~~~~~\n\n.. autoclass:: requests.Request\n :inherited-members:\n\n.. autoclass:: Response\n :inherited-members:\n\nRequest Sessions\n----------------\n\n.. autoclass:: Session\n :inherited-members:\n\n.. autoclass:: requests.adapters.HTTPAdapter\n :inherited-members:\n\n\nExceptions\n~~~~~~~~~~\n\n.. autoexception:: requests.exceptions.RequestException\n.. autoexception:: requests.exceptions.ConnectionError\n.. autoexception:: requests.exceptions.HTTPError\n.. autoexception:: requests.exceptions.URLRequired\n.. autoexception:: requests.exceptions.TooManyRedirects\n\n\nStatus Code Lookup\n~~~~~~~~~~~~~~~~~~\n\n.. autofunction:: requests.codes\n\n::\n\n >>> requests.codes['temporary_redirect']\n 307\n\n >>> requests.codes.teapot\n 418\n\n >>> requests.codes['\\o/']\n 200\n\nCookies\n~~~~~~~\n\n.. autofunction:: requests.utils.dict_from_cookiejar\n.. autofunction:: requests.utils.cookiejar_from_dict\n.. autofunction:: requests.utils.add_dict_to_cookiejar\n\n\nEncodings\n~~~~~~~~~\n\n.. autofunction:: requests.utils.get_encodings_from_content\n.. autofunction:: requests.utils.get_encoding_from_headers\n.. autofunction:: requests.utils.get_unicode_from_response\n\n\nClasses\n~~~~~~~\n\n.. autoclass:: requests.Response\n :inherited-members:\n\n.. autoclass:: requests.Request\n :inherited-members:\n\n.. autoclass:: requests.PreparedRequest\n :inherited-members:\n\n.. _sessionapi:\n\n.. autoclass:: requests.Session\n :inherited-members:\n\n.. autoclass:: requests.adapters.HTTPAdapter\n :inherited-members:\n\n\nMigrating to 1.x\n----------------\n\nThis section details the main differences between 0.x and 1.x and is meant\nto ease the pain of upgrading.\n\n\nAPI Changes\n~~~~~~~~~~~\n\n* ``Response.json`` is now a callable and not a property of a response.\n\n ::\n\n import requests\n r = requests.get('https://github.com/timeline.json')\n r.json() # This *call* raises an exception if JSON decoding fails\n\n* The ``Session`` API has changed. Sessions objects no longer take parameters.\n ``Session`` is also now capitalized, but it can still be\n instantiated with a lowercase ``session`` for backwards compatibility.\n\n ::\n\n s = requests.Session() # formerly, session took parameters\n s.auth = auth\n s.headers.update(headers)\n r = s.get('http://httpbin.org/headers')\n\n* All request hooks have been removed except 'response'.\n\n* Authentication helpers have been broken out into separate modules. See\n requests-oauthlib_ and requests-kerberos_.\n\n.. _requests-oauthlib: https://github.com/requests/requests-oauthlib\n.. _requests-kerberos: https://github.com/requests/requests-kerberos\n\n* The parameter for streaming requests was changed from ``prefetch`` to\n ``stream`` and the logic was inverted. In addition, ``stream`` is now\n required for raw response reading.\n\n ::\n\n # in 0.x, passing prefetch=False would accomplish the same thing\n r = requests.get('https://github.com/timeline.json', stream=True)\n for chunk in r.iter_content(8192):\n ...\n\n* The ``config`` parameter to the requests method has been removed. Some of\n these options are now configured on a ``Session`` such as keep-alive and\n maximum number of redirects. The verbosity option should be handled by\n configuring logging.\n\n ::\n\n import requests\n import logging\n\n # these two lines enable debugging at httplib level (requests->urllib3->httplib)\n # you will see the REQUEST, including HEADERS and DATA, and RESPONSE with HEADERS but without DATA.\n # the only thing missing will be the response.body which is not logged.\n import httplib\n httplib.HTTPConnection.debuglevel = 1\n\n logging.basicConfig() # you need to initialize logging, otherwise you will not see anything from requests\n logging.getLogger().setLevel(logging.DEBUG)\n requests_log = logging.getLogger(\"requests.packages.urllib3\")\n requests_log.setLevel(logging.DEBUG)\n requests_log.propagate = True\n\n requests.get('http://httpbin.org/headers')\n\n\n\nLicensing\n~~~~~~~~~\n\nOne key difference that has nothing to do with the API is a change in the\nlicense from the ISC_ license to the `Apache 2.0`_ license. The Apache 2.0\nlicense ensures that contributions to Requests are also covered by the Apache\n2.0 license.\n\n.. _ISC: http://opensource.org/licenses/ISC\n.. _Apache 2.0: http://opensource.org/licenses/Apache-2.0\n\n\nMigrating to 2.x\n----------------\n\n\nCompared with the 1.0 release, there were relatively few backwards\nincompatible changes, but there are still a few issues to be aware of with\nthis major release.\n\nFor more details on the changes in this release including new APIs, links\nto the relevant GitHub issues and some of the bug fixes, read Cory's blog_\non the subject.\n\n.. _blog: http://lukasa.co.uk/2013/09/Requests_20/\n\n\nAPI Changes\n~~~~~~~~~~~\n\n* There were a couple changes to how Requests handles exceptions.\n ``RequestException`` is now a subclass of ``IOError`` rather than\n ``RuntimeError`` as that more accurately categorizes the type of error.\n In addition, an invalid URL escape sequence now raises a subclass of\n ``RequestException`` rather than a ``ValueError``.\n\n ::\n\n requests.get('http://%zz/') # raises requests.exceptions.InvalidURL\n\n Lastly, ``httplib.IncompleteRead`` exceptions caused by incorrect chunked\n encoding will now raise a Requests ``ChunkedEncodingError`` instead.\n\n* The proxy API has changed slightly. The scheme for a proxy URL is now\n required.\n\n ::\n\n proxies = {\n \"http\": \"10.10.1.10:3128\", # use http://10.10.1.10:3128 instead\n }\n\n # In requests 1.x, this was legal, in requests 2.x,\n # this raises requests.exceptions.MissingSchema\n requests.get(\"http://example.org\", proxies=proxies)\n\n\nBehavioral Changes\n~~~~~~~~~~~~~~~~~~\n\n* Keys in the ``headers`` dictionary are now native strings on all Python\n versions, i.e. bytestrings on Python 2 and unicode on Python 3. If the\n keys are not native strings (unicode on Python2 or bytestrings on Python 3)\n they will be converted to the native string type assuming UTF-8 encoding.\n\n* Timeouts behave slightly differently. On streaming requests, the timeout\n only applies to the connection attempt. On regular requests, the timeout\n is applied to the connection process and downloading the full body.\n\n ::\n\n tarball_url = 'https://github.com/kennethreitz/requests/tarball/master'\n\n # One second timeout for the connection attempt\n # Unlimited time to download the tarball\n r = requests.get(tarball_url, stream=True, timeout=1)\n\n # One second timeout for the connection attempt\n # Another full second timeout to download the tarball\n r = requests.get(tarball_url, timeout=1)\n\n"},{"fileName":"sbcharsetprober.py","filePath":"requests/packages/charade","id":804,"nodeType":"File","text":"######################## BEGIN LICENSE BLOCK ########################\n# The Original Code is Mozilla Universal charset detector code.\n#\n# The Initial Developer of the Original Code is\n# Netscape Communications Corporation.\n# Portions created by the Initial Developer are Copyright (C) 2001\n# the Initial Developer. All Rights Reserved.\n#\n# Contributor(s):\n# Mark Pilgrim - port to Python\n# Shy Shalom - original C code\n#\n# This library is free software; you can redistribute it and/or\n# modify it under the terms of the GNU Lesser General Public\n# License as published by the Free Software Foundation; either\n# version 2.1 of the License, or (at your option) any later version.\n#\n# This library is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n# Lesser General Public License for more details.\n#\n# You should have received a copy of the GNU Lesser General Public\n# License along with this library; if not, write to the Free Software\n# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n# 02110-1301 USA\n######################### END LICENSE BLOCK #########################\n\nimport sys\nfrom . import constants\nfrom .charsetprober import CharSetProber\nfrom .compat import wrap_ord\n\nSAMPLE_SIZE = 64\nSB_ENOUGH_REL_THRESHOLD = 1024\nPOSITIVE_SHORTCUT_THRESHOLD = 0.95\nNEGATIVE_SHORTCUT_THRESHOLD = 0.05\nSYMBOL_CAT_ORDER = 250\nNUMBER_OF_SEQ_CAT = 4\nPOSITIVE_CAT = NUMBER_OF_SEQ_CAT - 1\n#NEGATIVE_CAT = 0\n\n\nclass SingleByteCharSetProber(CharSetProber):\n def __init__(self, model, reversed=False, nameProber=None):\n CharSetProber.__init__(self)\n self._mModel = model\n # TRUE if we need to reverse every pair in the model lookup\n self._mReversed = reversed\n # Optional auxiliary prober for name decision\n self._mNameProber = nameProber\n self.reset()\n\n def reset(self):\n CharSetProber.reset(self)\n # char order of last character\n self._mLastOrder = 255\n self._mSeqCounters = [0] * NUMBER_OF_SEQ_CAT\n self._mTotalSeqs = 0\n self._mTotalChar = 0\n # characters that fall in our sampling range\n self._mFreqChar = 0\n\n def get_charset_name(self):\n if self._mNameProber:\n return self._mNameProber.get_charset_name()\n else:\n return self._mModel['charsetName']\n\n def feed(self, aBuf):\n if not self._mModel['keepEnglishLetter']:\n aBuf = self.filter_without_english_letters(aBuf)\n aLen = len(aBuf)\n if not aLen:\n return self.get_state()\n for c in aBuf:\n order = self._mModel['charToOrderMap'][wrap_ord(c)]\n if order < SYMBOL_CAT_ORDER:\n self._mTotalChar += 1\n if order < SAMPLE_SIZE:\n self._mFreqChar += 1\n if self._mLastOrder < SAMPLE_SIZE:\n self._mTotalSeqs += 1\n if not self._mReversed:\n i = (self._mLastOrder * SAMPLE_SIZE) + order\n model = self._mModel['precedenceMatrix'][i]\n else: # reverse the order of the letters in the lookup\n i = (order * SAMPLE_SIZE) + self._mLastOrder\n model = self._mModel['precedenceMatrix'][i]\n self._mSeqCounters[model] += 1\n self._mLastOrder = order\n\n if self.get_state() == constants.eDetecting:\n if self._mTotalSeqs > SB_ENOUGH_REL_THRESHOLD:\n cf = self.get_confidence()\n if cf > POSITIVE_SHORTCUT_THRESHOLD:\n if constants._debug:\n sys.stderr.write('%s confidence = %s, we have a'\n 'winner\\n' %\n (self._mModel['charsetName'], cf))\n self._mState = constants.eFoundIt\n elif cf < NEGATIVE_SHORTCUT_THRESHOLD:\n if constants._debug:\n sys.stderr.write('%s confidence = %s, below negative'\n 'shortcut threshhold %s\\n' %\n (self._mModel['charsetName'], cf,\n NEGATIVE_SHORTCUT_THRESHOLD))\n self._mState = constants.eNotMe\n\n return self.get_state()\n\n def get_confidence(self):\n r = 0.01\n if self._mTotalSeqs > 0:\n r = ((1.0 * self._mSeqCounters[POSITIVE_CAT]) / self._mTotalSeqs\n / self._mModel['mTypicalPositiveRatio'])\n r = r * self._mFreqChar / self._mTotalChar\n if r >= 1.0:\n r = 0.99\n return r\n"},{"col":4,"comment":"null","endLoc":121,"header":"def release_conn(self)","id":805,"name":"release_conn","nodeType":"Function","startLoc":116,"text":"def release_conn(self):\n if not self._pool or not self._connection:\n return\n\n self._pool._put_conn(self._connection)\n self._connection = None"},{"className":"SingleByteCharSetProber","col":0,"comment":"null","endLoc":120,"id":806,"nodeType":"Class","startLoc":44,"text":"class SingleByteCharSetProber(CharSetProber):\n def __init__(self, model, reversed=False, nameProber=None):\n CharSetProber.__init__(self)\n self._mModel = model\n # TRUE if we need to reverse every pair in the model lookup\n self._mReversed = reversed\n # Optional auxiliary prober for name decision\n self._mNameProber = nameProber\n self.reset()\n\n def reset(self):\n CharSetProber.reset(self)\n # char order of last character\n self._mLastOrder = 255\n self._mSeqCounters = [0] * NUMBER_OF_SEQ_CAT\n self._mTotalSeqs = 0\n self._mTotalChar = 0\n # characters that fall in our sampling range\n self._mFreqChar = 0\n\n def get_charset_name(self):\n if self._mNameProber:\n return self._mNameProber.get_charset_name()\n else:\n return self._mModel['charsetName']\n\n def feed(self, aBuf):\n if not self._mModel['keepEnglishLetter']:\n aBuf = self.filter_without_english_letters(aBuf)\n aLen = len(aBuf)\n if not aLen:\n return self.get_state()\n for c in aBuf:\n order = self._mModel['charToOrderMap'][wrap_ord(c)]\n if order < SYMBOL_CAT_ORDER:\n self._mTotalChar += 1\n if order < SAMPLE_SIZE:\n self._mFreqChar += 1\n if self._mLastOrder < SAMPLE_SIZE:\n self._mTotalSeqs += 1\n if not self._mReversed:\n i = (self._mLastOrder * SAMPLE_SIZE) + order\n model = self._mModel['precedenceMatrix'][i]\n else: # reverse the order of the letters in the lookup\n i = (order * SAMPLE_SIZE) + self._mLastOrder\n model = self._mModel['precedenceMatrix'][i]\n self._mSeqCounters[model] += 1\n self._mLastOrder = order\n\n if self.get_state() == constants.eDetecting:\n if self._mTotalSeqs > SB_ENOUGH_REL_THRESHOLD:\n cf = self.get_confidence()\n if cf > POSITIVE_SHORTCUT_THRESHOLD:\n if constants._debug:\n sys.stderr.write('%s confidence = %s, we have a'\n 'winner\\n' %\n (self._mModel['charsetName'], cf))\n self._mState = constants.eFoundIt\n elif cf < NEGATIVE_SHORTCUT_THRESHOLD:\n if constants._debug:\n sys.stderr.write('%s confidence = %s, below negative'\n 'shortcut threshhold %s\\n' %\n (self._mModel['charsetName'], cf,\n NEGATIVE_SHORTCUT_THRESHOLD))\n self._mState = constants.eNotMe\n\n return self.get_state()\n\n def get_confidence(self):\n r = 0.01\n if self._mTotalSeqs > 0:\n r = ((1.0 * self._mSeqCounters[POSITIVE_CAT]) / self._mTotalSeqs\n / self._mModel['mTypicalPositiveRatio'])\n r = r * self._mFreqChar / self._mTotalChar\n if r >= 1.0:\n r = 0.99\n return r"},{"col":4,"comment":"null","endLoc":52,"header":"def __init__(self, model, reversed=False, nameProber=None)","id":807,"name":"__init__","nodeType":"Function","startLoc":45,"text":"def __init__(self, model, reversed=False, nameProber=None):\n CharSetProber.__init__(self)\n self._mModel = model\n # TRUE if we need to reverse every pair in the model lookup\n self._mReversed = reversed\n # Optional auxiliary prober for name decision\n self._mNameProber = nameProber\n self.reset()"},{"col":4,"comment":"null","endLoc":62,"header":"def reset(self)","id":808,"name":"reset","nodeType":"Function","startLoc":54,"text":"def reset(self):\n CharSetProber.reset(self)\n # char order of last character\n self._mLastOrder = 255\n self._mSeqCounters = [0] * NUMBER_OF_SEQ_CAT\n self._mTotalSeqs = 0\n self._mTotalChar = 0\n # characters that fall in our sampling range\n self._mFreqChar = 0"},{"col":4,"comment":"null","endLoc":68,"header":"def get_charset_name(self)","id":809,"name":"get_charset_name","nodeType":"Function","startLoc":64,"text":"def get_charset_name(self):\n if self._mNameProber:\n return self._mNameProber.get_charset_name()\n else:\n return self._mModel['charsetName']"},{"col":4,"comment":"Make a MockResponse for `cookielib` to read.\n\n :param headers: a httplib.HTTPMessage or analogous carrying the headers\n ","endLoc":94,"header":"def __init__(self, headers)","id":810,"name":"__init__","nodeType":"Function","startLoc":89,"text":"def __init__(self, headers):\n \"\"\"Make a MockResponse for `cookielib` to read.\n\n :param headers: a httplib.HTTPMessage or analogous carrying the headers\n \"\"\"\n self._headers = headers"},{"col":4,"comment":"null","endLoc":110,"header":"def feed(self, aBuf)","id":811,"name":"feed","nodeType":"Function","startLoc":70,"text":"def feed(self, aBuf):\n if not self._mModel['keepEnglishLetter']:\n aBuf = self.filter_without_english_letters(aBuf)\n aLen = len(aBuf)\n if not aLen:\n return self.get_state()\n for c in aBuf:\n order = self._mModel['charToOrderMap'][wrap_ord(c)]\n if order < SYMBOL_CAT_ORDER:\n self._mTotalChar += 1\n if order < SAMPLE_SIZE:\n self._mFreqChar += 1\n if self._mLastOrder < SAMPLE_SIZE:\n self._mTotalSeqs += 1\n if not self._mReversed:\n i = (self._mLastOrder * SAMPLE_SIZE) + order\n model = self._mModel['precedenceMatrix'][i]\n else: # reverse the order of the letters in the lookup\n i = (order * SAMPLE_SIZE) + self._mLastOrder\n model = self._mModel['precedenceMatrix'][i]\n self._mSeqCounters[model] += 1\n self._mLastOrder = order\n\n if self.get_state() == constants.eDetecting:\n if self._mTotalSeqs > SB_ENOUGH_REL_THRESHOLD:\n cf = self.get_confidence()\n if cf > POSITIVE_SHORTCUT_THRESHOLD:\n if constants._debug:\n sys.stderr.write('%s confidence = %s, we have a'\n 'winner\\n' %\n (self._mModel['charsetName'], cf))\n self._mState = constants.eFoundIt\n elif cf < NEGATIVE_SHORTCUT_THRESHOLD:\n if constants._debug:\n sys.stderr.write('%s confidence = %s, below negative'\n 'shortcut threshhold %s\\n' %\n (self._mModel['charsetName'], cf,\n NEGATIVE_SHORTCUT_THRESHOLD))\n self._mState = constants.eNotMe\n\n return self.get_state()"},{"className":"RequestsCookieJar","col":0,"comment":"Compatibility class; is a cookielib.CookieJar, but exposes a dict interface.\n\n This is the CookieJar we create by default for requests and sessions that\n don't specify one, since some clients may expect response.cookies and\n session.cookies to support dict operations.\n\n Don't use the dict interface internally; it's just for compatibility with\n with external client code. All `requests` code should work out of the box\n with externally provided instances of CookieJar, e.g., LWPCookieJar and\n FileCookieJar.\n\n Caution: dictionary operations that are normally O(1) may be O(n).\n\n Unlike a regular CookieJar, this class is pickleable.\n ","endLoc":330,"id":812,"nodeType":"Class","startLoc":148,"text":"class RequestsCookieJar(cookielib.CookieJar, collections.MutableMapping):\n \"\"\"Compatibility class; is a cookielib.CookieJar, but exposes a dict interface.\n\n This is the CookieJar we create by default for requests and sessions that\n don't specify one, since some clients may expect response.cookies and\n session.cookies to support dict operations.\n\n Don't use the dict interface internally; it's just for compatibility with\n with external client code. All `requests` code should work out of the box\n with externally provided instances of CookieJar, e.g., LWPCookieJar and\n FileCookieJar.\n\n Caution: dictionary operations that are normally O(1) may be O(n).\n\n Unlike a regular CookieJar, this class is pickleable.\n \"\"\"\n\n def get(self, name, default=None, domain=None, path=None):\n \"\"\"Dict-like get() that also supports optional domain and path args in\n order to resolve naming collisions from using one cookie jar over\n multiple domains. Caution: operation is O(n), not O(1).\"\"\"\n try:\n return self._find_no_duplicates(name, domain, path)\n except KeyError:\n return default\n\n def set(self, name, value, **kwargs):\n \"\"\"Dict-like set() that also supports optional domain and path args in\n order to resolve naming collisions from using one cookie jar over\n multiple domains.\"\"\"\n # support client code that unsets cookies by assignment of a None value:\n if value is None:\n remove_cookie_by_name(self, name, domain=kwargs.get('domain'), path=kwargs.get('path'))\n return\n\n if isinstance(value, Morsel):\n c = morsel_to_cookie(value)\n else:\n c = create_cookie(name, value, **kwargs)\n self.set_cookie(c)\n return c\n\n def keys(self):\n \"\"\"Dict-like keys() that returns a list of names of cookies from the jar.\n See values() and items().\"\"\"\n keys = []\n for cookie in iter(self):\n keys.append(cookie.name)\n return keys\n\n def values(self):\n \"\"\"Dict-like values() that returns a list of values of cookies from the jar.\n See keys() and items().\"\"\"\n values = []\n for cookie in iter(self):\n values.append(cookie.value)\n return values\n\n def items(self):\n \"\"\"Dict-like items() that returns a list of name-value tuples from the jar.\n See keys() and values(). Allows client-code to call \"dict(RequestsCookieJar)\n and get a vanilla python dict of key value pairs.\"\"\"\n items = []\n for cookie in iter(self):\n items.append((cookie.name, cookie.value))\n return items\n\n def list_domains(self):\n \"\"\"Utility method to list all the domains in the jar.\"\"\"\n domains = []\n for cookie in iter(self):\n if cookie.domain not in domains:\n domains.append(cookie.domain)\n return domains\n\n def list_paths(self):\n \"\"\"Utility method to list all the paths in the jar.\"\"\"\n paths = []\n for cookie in iter(self):\n if cookie.path not in paths:\n paths.append(cookie.path)\n return paths\n\n def multiple_domains(self):\n \"\"\"Returns True if there are multiple domains in the jar.\n Returns False otherwise.\"\"\"\n domains = []\n for cookie in iter(self):\n if cookie.domain is not None and cookie.domain in domains:\n return True\n domains.append(cookie.domain)\n return False # there is only one domain in jar\n\n def get_dict(self, domain=None, path=None):\n \"\"\"Takes as an argument an optional domain and path and returns a plain old\n Python dict of name-value pairs of cookies that meet the requirements.\"\"\"\n dictionary = {}\n for cookie in iter(self):\n if (domain is None or cookie.domain == domain) and (path is None\n or cookie.path == path):\n dictionary[cookie.name] = cookie.value\n return dictionary\n\n def __getitem__(self, name):\n \"\"\"Dict-like __getitem__() for compatibility with client code. Throws exception\n if there are more than one cookie with name. In that case, use the more\n explicit get() method instead. Caution: operation is O(n), not O(1).\"\"\"\n\n return self._find_no_duplicates(name)\n\n def __setitem__(self, name, value):\n \"\"\"Dict-like __setitem__ for compatibility with client code. Throws exception\n if there is already a cookie of that name in the jar. In that case, use the more\n explicit set() method instead.\"\"\"\n\n self.set(name, value)\n\n def __delitem__(self, name):\n \"\"\"Deletes a cookie given a name. Wraps cookielib.CookieJar's remove_cookie_by_name().\"\"\"\n remove_cookie_by_name(self, name)\n\n def set_cookie(self, cookie, *args, **kwargs):\n if cookie.value.startswith('\"') and cookie.value.endswith('\"'):\n cookie.value = cookie.value.replace('\\\\\"', '')\n return super(RequestsCookieJar, self).set_cookie(cookie, *args, **kwargs)\n\n def update(self, other):\n \"\"\"Updates this jar with cookies from another CookieJar or dict-like\"\"\"\n if isinstance(other, cookielib.CookieJar):\n for cookie in other:\n self.set_cookie(cookie)\n else:\n super(RequestsCookieJar, self).update(other)\n\n def _find(self, name, domain=None, path=None):\n \"\"\"Requests uses this method internally to get cookie values. Takes as args name\n and optional domain and path. Returns a cookie.value. If there are conflicting cookies,\n _find arbitrarily chooses one. See _find_no_duplicates if you want an exception thrown\n if there are conflicting cookies.\"\"\"\n for cookie in iter(self):\n if cookie.name == name:\n if domain is None or cookie.domain == domain:\n if path is None or cookie.path == path:\n return cookie.value\n\n raise KeyError('name=%r, domain=%r, path=%r' % (name, domain, path))\n\n def _find_no_duplicates(self, name, domain=None, path=None):\n \"\"\"__get_item__ and get call _find_no_duplicates -- never used in Requests internally.\n Takes as args name and optional domain and path. Returns a cookie.value.\n Throws KeyError if cookie is not found and CookieConflictError if there are\n multiple cookies that match name and optionally domain and path.\"\"\"\n toReturn = None\n for cookie in iter(self):\n if cookie.name == name:\n if domain is None or cookie.domain == domain:\n if path is None or cookie.path == path:\n if toReturn is not None: # if there are multiple cookies that meet passed in criteria\n raise CookieConflictError('There are multiple cookies with name, %r' % (name))\n toReturn = cookie.value # we will eventually return this as long as no cookie conflict\n\n if toReturn:\n return toReturn\n raise KeyError('name=%r, domain=%r, path=%r' % (name, domain, path))\n\n def __getstate__(self):\n \"\"\"Unlike a normal CookieJar, this class is pickleable.\"\"\"\n state = self.__dict__.copy()\n # remove the unpickleable RLock object\n state.pop('_cookies_lock')\n return state\n\n def __setstate__(self, state):\n \"\"\"Unlike a normal CookieJar, this class is pickleable.\"\"\"\n self.__dict__.update(state)\n if '_cookies_lock' not in self.__dict__:\n self._cookies_lock = threading.RLock()\n\n def copy(self):\n \"\"\"Return a copy of this RequestsCookieJar.\"\"\"\n new_cj = RequestsCookieJar()\n new_cj.update(self)\n return new_cj"},{"col":4,"comment":"null","endLoc":120,"header":"def get_confidence(self)","id":813,"name":"get_confidence","nodeType":"Function","startLoc":112,"text":"def get_confidence(self):\n r = 0.01\n if self._mTotalSeqs > 0:\n r = ((1.0 * self._mSeqCounters[POSITIVE_CAT]) / self._mTotalSeqs\n / self._mModel['mTypicalPositiveRatio'])\n r = r * self._mFreqChar / self._mTotalChar\n if r >= 1.0:\n r = 0.99\n return r"},{"className":"CookieJar","col":0,"comment":"null","endLoc":42,"id":814,"nodeType":"Class","startLoc":24,"text":"class CookieJar(Iterable[Cookie]):\n non_word_re: ClassVar[Pattern[str]] # undocumented\n quote_re: ClassVar[Pattern[str]] # undocumented\n strict_domain_re: ClassVar[Pattern[str]] # undocumented\n domain_re: ClassVar[Pattern[str]] # undocumented\n dots_re: ClassVar[Pattern[str]] # undocumented\n magic_re: ClassVar[Pattern[str]] # undocumented\n def __init__(self, policy: CookiePolicy | None = None) -> None: ...\n def add_cookie_header(self, request: Request) -> None: ...\n def extract_cookies(self, response: HTTPResponse, request: Request) -> None: ...\n def set_policy(self, policy: CookiePolicy) -> None: ...\n def make_cookies(self, response: HTTPResponse, request: Request) -> Sequence[Cookie]: ...\n def set_cookie(self, cookie: Cookie) -> None: ...\n def set_cookie_if_ok(self, cookie: Cookie, request: Request) -> None: ...\n def clear(self, domain: str | None = None, path: str | None = None, name: str | None = None) -> None: ...\n def clear_session_cookies(self) -> None: ...\n def clear_expired_cookies(self) -> None: ... # undocumented\n def __iter__(self) -> Iterator[Cookie]: ...\n def __len__(self) -> int: ..."},{"col":4,"comment":"null","endLoc":80,"header":"def __str__(self)","id":815,"name":"__str__","nodeType":"Function","startLoc":78,"text":"def __str__(self):\n return '%s(host=%r, port=%r)' % (type(self).__name__,\n self.host, self.port)"},{"col":4,"comment":"\n A :class:`~urllib3.fields.RequestField` factory from old-style tuple parameters.\n\n Supports constructing :class:`~urllib3.fields.RequestField` from parameter\n of key/value strings AND key/filetuple. A filetuple is a (filename, data, MIME type)\n tuple where the MIME type is optional. For example: ::\n\n 'foo': 'bar',\n 'fakefile': ('foofile.txt', 'contents of foofile'),\n 'realfile': ('barfile.txt', open('realfile').read()),\n 'typedfile': ('bazfile.bin', open('bazfile').read(), 'image/jpeg'),\n 'nonamefile': 'contents of nonamefile field',\n\n Field names and filenames must be unicode.\n ","endLoc":107,"header":"@classmethod\n def from_tuples(cls, fieldname, value)","id":816,"name":"from_tuples","nodeType":"Function","startLoc":76,"text":"@classmethod\n def from_tuples(cls, fieldname, value):\n \"\"\"\n A :class:`~urllib3.fields.RequestField` factory from old-style tuple parameters.\n\n Supports constructing :class:`~urllib3.fields.RequestField` from parameter\n of key/value strings AND key/filetuple. A filetuple is a (filename, data, MIME type)\n tuple where the MIME type is optional. For example: ::\n\n 'foo': 'bar',\n 'fakefile': ('foofile.txt', 'contents of foofile'),\n 'realfile': ('barfile.txt', open('realfile').read()),\n 'typedfile': ('bazfile.bin', open('bazfile').read(), 'image/jpeg'),\n 'nonamefile': 'contents of nonamefile field',\n\n Field names and filenames must be unicode.\n \"\"\"\n if isinstance(value, tuple):\n if len(value) == 3:\n filename, data, content_type = value\n else:\n filename, data = value\n content_type = guess_content_type(filename)\n else:\n filename = None\n content_type = None\n data = value\n\n request_param = cls(fieldname, data, filename=filename)\n request_param.make_multipart(content_type=content_type)\n\n return request_param"},{"col":4,"comment":"null","endLoc":106,"header":"def copy(self)","id":817,"name":"copy","nodeType":"Function","startLoc":105,"text":"def copy(self):\n return CaseInsensitiveDict(self._store.values())"},{"col":4,"comment":"\n Should we redirect and where to?\n\n :returns: Truthy redirect location string if we got a redirect status\n code and valid location. ``None`` if redirect status and no\n location. ``False`` if not a redirect status code.\n ","endLoc":114,"header":"def get_redirect_location(self)","id":818,"name":"get_redirect_location","nodeType":"Function","startLoc":103,"text":"def get_redirect_location(self):\n \"\"\"\n Should we redirect and where to?\n\n :returns: Truthy redirect location string if we got a redirect status\n code and valid location. ``None`` if redirect status and no\n location. ``False`` if not a redirect status code.\n \"\"\"\n if self.status in self.REDIRECT_STATUSES:\n return self.headers.get('location')\n\n return False"},{"col":4,"comment":"null","endLoc":32,"header":"def add_cookie_header(self, request: Request) -> None","id":819,"name":"add_cookie_header","nodeType":"Function","startLoc":32,"text":"def add_cookie_header(self, request: Request) -> None: ..."},{"col":4,"comment":"null","endLoc":33,"header":"def extract_cookies(self, response: HTTPResponse, request: Request) -> None","id":820,"name":"extract_cookies","nodeType":"Function","startLoc":33,"text":"def extract_cookies(self, response: HTTPResponse, request: Request) -> None: ..."},{"col":4,"comment":"null","endLoc":34,"header":"def set_policy(self, policy: CookiePolicy) -> None","id":821,"name":"set_policy","nodeType":"Function","startLoc":34,"text":"def set_policy(self, policy: CookiePolicy) -> None: ..."},{"col":4,"comment":"null","endLoc":35,"header":"def make_cookies(self, response: HTTPResponse, request: Request) -> Sequence[Cookie]","id":822,"name":"make_cookies","nodeType":"Function","startLoc":35,"text":"def make_cookies(self, response: HTTPResponse, request: Request) -> Sequence[Cookie]: ..."},{"col":4,"comment":"null","endLoc":36,"header":"def set_cookie(self, cookie: Cookie) -> None","id":823,"name":"set_cookie","nodeType":"Function","startLoc":36,"text":"def set_cookie(self, cookie: Cookie) -> None: ..."},{"col":4,"comment":"null","endLoc":37,"header":"def set_cookie_if_ok(self, cookie: Cookie, request: Request) -> None","id":824,"name":"set_cookie_if_ok","nodeType":"Function","startLoc":37,"text":"def set_cookie_if_ok(self, cookie: Cookie, request: Request) -> None: ..."},{"col":4,"comment":"null","endLoc":38,"header":"def clear(self, domain: str | None = None, path: str | None = None, name: str | None = None) -> None","id":825,"name":"clear","nodeType":"Function","startLoc":38,"text":"def clear(self, domain: str | None = None, path: str | None = None, name: str | None = None) -> None: ..."},{"col":4,"comment":"null","endLoc":39,"header":"def clear_session_cookies(self) -> None","id":826,"name":"clear_session_cookies","nodeType":"Function","startLoc":39,"text":"def clear_session_cookies(self) -> None: ..."},{"col":4,"comment":"null","endLoc":40,"header":"def clear_expired_cookies(self) -> None","id":827,"name":"clear_expired_cookies","nodeType":"Function","startLoc":40,"text":"def clear_expired_cookies(self) -> None: ... # undocumented"},{"col":4,"comment":"null","endLoc":41,"header":"def __iter__(self) -> Iterator[Cookie]","id":828,"name":"__iter__","nodeType":"Function","startLoc":41,"text":"def __iter__(self) -> Iterator[Cookie]: ..."},{"col":4,"comment":"null","endLoc":42,"header":"def __len__(self) -> int","id":829,"name":"__len__","nodeType":"Function","startLoc":42,"text":"def __len__(self) -> int: ..."},{"attributeType":"Pattern","col":4,"comment":"null","endLoc":25,"id":830,"name":"non_word_re","nodeType":"Attribute","startLoc":25,"text":"non_word_re"},{"col":4,"comment":"null","endLoc":109,"header":"def __repr__(self)","id":831,"name":"__repr__","nodeType":"Function","startLoc":108,"text":"def __repr__(self):\n return '%s(%r)' % (self.__class__.__name__, dict(self.items()))"},{"col":4,"comment":"null","endLoc":130,"header":"@property\n def data(self)","id":832,"name":"data","nodeType":"Function","startLoc":123,"text":"@property\n def data(self):\n # For backwords-compat with earlier urllib3 0.4 and earlier.\n if self._body:\n return self._body\n\n if self._fp:\n return self.read(cache_content=True)"},{"col":0,"comment":"\n Guess the \"Content-Type\" of a file.\n\n :param filename:\n The filename to guess the \"Content-Type\" of using :mod:`mimetimes`.\n :param default:\n If no \"Content-Type\" can be guessed, default to `default`.\n ","endLoc":24,"header":"def guess_content_type(filename, default='application/octet-stream')","id":833,"name":"guess_content_type","nodeType":"Function","startLoc":13,"text":"def guess_content_type(filename, default='application/octet-stream'):\n \"\"\"\n Guess the \"Content-Type\" of a file.\n\n :param filename:\n The filename to guess the \"Content-Type\" of using :mod:`mimetimes`.\n :param default:\n If no \"Content-Type\" can be guessed, default to `default`.\n \"\"\"\n if filename:\n return mimetypes.guess_type(filename)[0] or default\n return default"},{"col":4,"comment":"null","endLoc":292,"header":"def b(s)","id":834,"name":"b","nodeType":"Function","startLoc":291,"text":"def b(s):\n return s"},{"col":4,"comment":"null","endLoc":278,"header":"def b(s)","id":835,"name":"b","nodeType":"Function","startLoc":277,"text":"def b(s):\n return s.encode(\"latin-1\")"},{"col":4,"comment":"\n A generator wrapper for the read() method. A call will block until\n ``amt`` bytes have been read from the connection or until the\n connection is closed.\n\n :param amt:\n How much of the content to read. The generator will return up to\n much data per iteration, but may return less. This is particularly\n likely when using compressed data. However, the empty string will\n never be returned.\n\n :param decode_content:\n If True, will attempt to decode the body based on the\n 'content-encoding' header.\n ","endLoc":228,"header":"def stream(self, amt=2**16, decode_content=None)","id":836,"name":"stream","nodeType":"Function","startLoc":208,"text":"def stream(self, amt=2**16, decode_content=None):\n \"\"\"\n A generator wrapper for the read() method. A call will block until\n ``amt`` bytes have been read from the connection or until the\n connection is closed.\n\n :param amt:\n How much of the content to read. The generator will return up to\n much data per iteration, but may return less. This is particularly\n likely when using compressed data. However, the empty string will\n never be returned.\n\n :param decode_content:\n If True, will attempt to decode the body based on the\n 'content-encoding' header.\n \"\"\"\n while not is_fp_closed(self._fp):\n data = self.read(amt=amt, decode_content=decode_content)\n\n if data:\n yield data"},{"col":4,"comment":"\n Given an :class:`httplib.HTTPResponse` instance ``r``, return a\n corresponding :class:`urllib3.response.HTTPResponse` object.\n\n Remaining parameters are passed to the HTTPResponse constructor, along\n with ``original_response=r``.\n ","endLoc":262,"header":"@classmethod\n def from_httplib(ResponseCls, r, **response_kw)","id":838,"name":"from_httplib","nodeType":"Function","startLoc":231,"text":"@classmethod\n def from_httplib(ResponseCls, r, **response_kw):\n \"\"\"\n Given an :class:`httplib.HTTPResponse` instance ``r``, return a\n corresponding :class:`urllib3.response.HTTPResponse` object.\n\n Remaining parameters are passed to the HTTPResponse constructor, along\n with ``original_response=r``.\n \"\"\"\n\n # Normalize headers between different versions of Python\n headers = {}\n for k, v in r.getheaders():\n # Python 3: Header keys are returned capitalised\n k = k.lower()\n\n has_value = headers.get(k)\n if has_value: # Python 3: Repeating header keys are unmerged.\n v = ', '.join([has_value, v])\n\n headers[k] = v\n\n # HTTPResponse objects in Python 3 don't have a .strict attribute\n strict = getattr(r, 'strict', 0)\n return ResponseCls(body=r,\n headers=headers,\n status=r.status,\n version=r.version,\n reason=r.reason,\n strict=strict,\n original_response=r,\n **response_kw)"},{"attributeType":"null","col":4,"comment":"null","endLoc":68,"id":840,"name":"scheme","nodeType":"Attribute","startLoc":68,"text":"scheme"},{"attributeType":"LifoQueue","col":4,"comment":"null","endLoc":69,"id":841,"name":"QueueCls","nodeType":"Attribute","startLoc":69,"text":"QueueCls"},{"col":4,"comment":"Returns the parsed header links of the response, if any.","endLoc":712,"header":"@property\n def links(self)","id":842,"name":"links","nodeType":"Function","startLoc":696,"text":"@property\n def links(self):\n \"\"\"Returns the parsed header links of the response, if any.\"\"\"\n\n header = self.headers.get('link')\n\n # l = MultiDict()\n l = {}\n\n if header:\n links = parse_header_links(header)\n\n for link in links:\n key = link.get('rel') or link.get('url')\n l[key] = link\n\n return l"},{"attributeType":"null","col":8,"comment":"null","endLoc":76,"id":843,"name":"port","nodeType":"Attribute","startLoc":76,"text":"self.port"},{"attributeType":"null","col":8,"comment":"null","endLoc":75,"id":844,"name":"host","nodeType":"Attribute","startLoc":75,"text":"self.host"},{"col":0,"comment":"Return a dict of parsed link headers proxies.\n\n i.e. Link: ; rel=front; type=\"image/jpeg\",; rel=back;type=\"image/jpeg\"\n\n ","endLoc":510,"header":"def parse_header_links(value)","id":845,"name":"parse_header_links","nodeType":"Function","startLoc":479,"text":"def parse_header_links(value):\n \"\"\"Return a dict of parsed link headers proxies.\n\n i.e. Link: ; rel=front; type=\"image/jpeg\",; rel=back;type=\"image/jpeg\"\n\n \"\"\"\n\n links = []\n\n replace_chars = \" '\\\"\"\n\n for val in value.split(\",\"):\n try:\n url, params = val.split(\";\", 1)\n except ValueError:\n url, params = val, ''\n\n link = {}\n\n link[\"url\"] = url.strip(\"<> '\\\"\")\n\n for param in params.split(\";\"):\n try:\n key, value = param.split(\"=\")\n except ValueError:\n break\n\n link[key.strip(replace_chars)] = value.strip(replace_chars)\n\n links.append(link)\n\n return links"},{"col":4,"comment":"null","endLoc":74,"header":"def __init__(self, name, data, filename=None, headers=None)","id":846,"name":"__init__","nodeType":"Function","startLoc":68,"text":"def __init__(self, name, data, filename=None, headers=None):\n self._name = name\n self._filename = filename\n self.data = data\n self.headers = {}\n if headers:\n self.headers = dict(headers)"},{"col":4,"comment":"null","endLoc":168,"header":"def __init__(self, host, port=None, strict=False,\n timeout=Timeout.DEFAULT_TIMEOUT, maxsize=1, block=False,\n headers=None, _proxy=None, _proxy_headers=None)","id":847,"name":"__init__","nodeType":"Function","startLoc":141,"text":"def __init__(self, host, port=None, strict=False,\n timeout=Timeout.DEFAULT_TIMEOUT, maxsize=1, block=False,\n headers=None, _proxy=None, _proxy_headers=None):\n ConnectionPool.__init__(self, host, port)\n RequestMethods.__init__(self, headers)\n\n self.strict = strict\n\n # This is for backwards compatibility and can be removed once a timeout\n # can only be set to a Timeout object\n if not isinstance(timeout, Timeout):\n timeout = Timeout.from_float(timeout)\n\n self.timeout = timeout\n\n self.pool = self.QueueCls(maxsize)\n self.block = block\n\n self.proxy = _proxy\n self.proxy_headers = _proxy_headers or {}\n\n # Fill the queue up so that doing get() on it will block properly\n for _ in xrange(maxsize):\n self.pool.put(None)\n\n # These are mostly for testing and debugging purposes.\n self.num_connections = 0\n self.num_requests = 0"},{"fileName":"langthaimodel.py","filePath":"requests/packages/charade","id":848,"nodeType":"File","text":"######################## BEGIN LICENSE BLOCK ########################\n# The Original Code is Mozilla Communicator client code.\n#\n# The Initial Developer of the Original Code is\n# Netscape Communications Corporation.\n# Portions created by the Initial Developer are Copyright (C) 1998\n# the Initial Developer. All Rights Reserved.\n#\n# Contributor(s):\n# Mark Pilgrim - port to Python\n#\n# This library is free software; you can redistribute it and/or\n# modify it under the terms of the GNU Lesser General Public\n# License as published by the Free Software Foundation; either\n# version 2.1 of the License, or (at your option) any later version.\n#\n# This library is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n# Lesser General Public License for more details.\n#\n# You should have received a copy of the GNU Lesser General Public\n# License along with this library; if not, write to the Free Software\n# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n# 02110-1301 USA\n######################### END LICENSE BLOCK #########################\n\n# 255: Control characters that usually does not exist in any text\n# 254: Carriage/Return\n# 253: symbol (punctuation) that does not belong to word\n# 252: 0 - 9\n\n# The following result for thai was collected from a limited sample (1M).\n\n# Character Mapping Table:\nTIS620CharToOrderMap = (\n255,255,255,255,255,255,255,255,255,255,254,255,255,254,255,255, # 00\n255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, # 10\n253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253, # 20\n252,252,252,252,252,252,252,252,252,252,253,253,253,253,253,253, # 30\n253,182,106,107,100,183,184,185,101, 94,186,187,108,109,110,111, # 40\n188,189,190, 89, 95,112,113,191,192,193,194,253,253,253,253,253, # 50\n253, 64, 72, 73,114, 74,115,116,102, 81,201,117, 90,103, 78, 82, # 60\n 96,202, 91, 79, 84,104,105, 97, 98, 92,203,253,253,253,253,253, # 70\n209,210,211,212,213, 88,214,215,216,217,218,219,220,118,221,222,\n223,224, 99, 85, 83,225,226,227,228,229,230,231,232,233,234,235,\n236, 5, 30,237, 24,238, 75, 8, 26, 52, 34, 51,119, 47, 58, 57,\n 49, 53, 55, 43, 20, 19, 44, 14, 48, 3, 17, 25, 39, 62, 31, 54,\n 45, 9, 16, 2, 61, 15,239, 12, 42, 46, 18, 21, 76, 4, 66, 63,\n 22, 10, 1, 36, 23, 13, 40, 27, 32, 35, 86,240,241,242,243,244,\n 11, 28, 41, 29, 33,245, 50, 37, 6, 7, 67, 77, 38, 93,246,247,\n 68, 56, 59, 65, 69, 60, 70, 80, 71, 87,248,249,250,251,252,253,\n)\n\n# Model Table:\n# total sequences: 100%\n# first 512 sequences: 92.6386%\n# first 1024 sequences:7.3177%\n# rest sequences: 1.0230%\n# negative sequences: 0.0436%\nThaiLangModel = (\n0,1,3,3,3,3,0,0,3,3,0,3,3,0,3,3,3,3,3,3,3,3,0,0,3,3,3,0,3,3,3,3,\n0,3,3,0,0,0,1,3,0,3,3,2,3,3,0,1,2,3,3,3,3,0,2,0,2,0,0,3,2,1,2,2,\n3,0,3,3,2,3,0,0,3,3,0,3,3,0,3,3,3,3,3,3,3,3,3,0,3,2,3,0,2,2,2,3,\n0,2,3,0,0,0,0,1,0,1,2,3,1,1,3,2,2,0,1,1,0,0,1,0,0,0,0,0,0,0,1,1,\n3,3,3,2,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,3,3,2,3,2,3,3,2,2,2,\n3,1,2,3,0,3,3,2,2,1,2,3,3,1,2,0,1,3,0,1,0,0,1,0,0,0,0,0,0,0,1,1,\n3,3,2,2,3,3,3,3,1,2,3,3,3,3,3,2,2,2,2,3,3,2,2,3,3,2,2,3,2,3,2,2,\n3,3,1,2,3,1,2,2,3,3,1,0,2,1,0,0,3,1,2,1,0,0,1,0,0,0,0,0,0,1,0,1,\n3,3,3,3,3,3,2,2,3,3,3,3,2,3,2,2,3,3,2,2,3,2,2,2,2,1,1,3,1,2,1,1,\n3,2,1,0,2,1,0,1,0,1,1,0,1,1,0,0,1,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,\n3,3,3,2,3,2,3,3,2,2,3,2,3,3,2,3,1,1,2,3,2,2,2,3,2,2,2,2,2,1,2,1,\n2,2,1,1,3,3,2,1,0,1,2,2,0,1,3,0,0,0,1,1,0,0,0,0,0,2,3,0,0,2,1,1,\n3,3,2,3,3,2,0,0,3,3,0,3,3,0,2,2,3,1,2,2,1,1,1,0,2,2,2,0,2,2,1,1,\n0,2,1,0,2,0,0,2,0,1,0,0,1,0,0,0,1,1,1,1,0,0,0,0,0,0,0,0,0,0,1,0,\n3,3,2,3,3,2,0,0,3,3,0,2,3,0,2,1,2,2,2,2,1,2,0,0,2,2,2,0,2,2,1,1,\n0,2,1,0,2,0,0,2,0,1,1,0,1,0,0,0,0,0,0,1,0,0,1,0,0,0,0,0,0,0,0,0,\n3,3,2,3,2,3,2,0,2,2,1,3,2,1,3,2,1,2,3,2,2,3,0,2,3,2,2,1,2,2,2,2,\n1,2,2,0,0,0,0,2,0,1,2,0,1,1,1,0,1,0,3,1,1,0,0,0,0,0,0,0,0,0,1,0,\n3,3,2,3,3,2,3,2,2,2,3,2,2,3,2,2,1,2,3,2,2,3,1,3,2,2,2,3,2,2,2,3,\n3,2,1,3,0,1,1,1,0,2,1,1,1,1,1,0,1,0,1,1,0,0,0,0,0,0,0,0,0,2,0,0,\n1,0,0,3,0,3,3,3,3,3,0,0,3,0,2,2,3,3,3,3,3,0,0,0,1,1,3,0,0,0,0,2,\n0,0,1,0,0,0,0,0,0,0,2,3,0,0,0,3,0,2,0,0,0,0,0,3,0,0,0,0,0,0,0,0,\n2,0,3,3,3,3,0,0,2,3,0,0,3,0,3,3,2,3,3,3,3,3,0,0,3,3,3,0,0,0,3,3,\n0,0,3,0,0,0,0,2,0,0,2,1,1,3,0,0,1,0,0,2,3,0,1,0,0,0,0,0,0,0,1,0,\n3,3,3,3,2,3,3,3,3,3,3,3,1,2,1,3,3,2,2,1,2,2,2,3,1,1,2,0,2,1,2,1,\n2,2,1,0,0,0,1,1,0,1,0,1,1,0,0,0,0,0,1,1,0,0,1,0,0,0,0,0,0,0,0,0,\n3,0,2,1,2,3,3,3,0,2,0,2,2,0,2,1,3,2,2,1,2,1,0,0,2,2,1,0,2,1,2,2,\n0,1,1,0,0,0,0,1,0,1,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,\n3,3,3,3,2,1,3,3,1,1,3,0,2,3,1,1,3,2,1,1,2,0,2,2,3,2,1,1,1,1,1,2,\n3,0,0,1,3,1,2,1,2,0,3,0,0,0,1,0,3,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,\n3,3,1,1,3,2,3,3,3,1,3,2,1,3,2,1,3,2,2,2,2,1,3,3,1,2,1,3,1,2,3,0,\n2,1,1,3,2,2,2,1,2,1,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,\n3,3,2,3,2,3,3,2,3,2,3,2,3,3,2,1,0,3,2,2,2,1,2,2,2,1,2,2,1,2,1,1,\n2,2,2,3,0,1,3,1,1,1,1,0,1,1,0,2,1,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,\n3,3,3,3,2,3,2,2,1,1,3,2,3,2,3,2,0,3,2,2,1,2,0,2,2,2,1,2,2,2,2,1,\n3,2,1,2,2,1,0,2,0,1,0,0,1,1,0,0,0,0,0,1,1,0,1,0,0,0,0,0,0,0,0,1,\n3,3,3,3,3,2,3,1,2,3,3,2,2,3,0,1,1,2,0,3,3,2,2,3,0,1,1,3,0,0,0,0,\n3,1,0,3,3,0,2,0,2,1,0,0,3,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n3,3,3,2,3,2,3,3,0,1,3,1,1,2,1,2,1,1,3,1,1,0,2,3,1,1,1,1,1,1,1,1,\n3,1,1,2,2,2,2,1,1,1,0,0,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,\n3,2,2,1,1,2,1,3,3,2,3,2,2,3,2,2,3,1,2,2,1,2,0,3,2,1,2,2,2,2,2,1,\n3,2,1,2,2,2,1,1,1,1,0,0,1,1,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,\n3,3,3,3,3,3,3,3,1,3,3,0,2,1,0,3,2,0,0,3,1,0,1,1,0,1,0,0,0,0,0,1,\n1,0,0,1,0,3,2,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n3,0,2,2,2,3,0,0,1,3,0,3,2,0,3,2,2,3,3,3,3,3,1,0,2,2,2,0,2,2,1,2,\n0,2,3,0,0,0,0,1,0,1,0,0,1,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,\n3,0,2,3,1,3,3,2,3,3,0,3,3,0,3,2,2,3,2,3,3,3,0,0,2,2,3,0,1,1,1,3,\n0,0,3,0,0,0,2,2,0,1,3,0,1,2,2,2,3,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,\n3,2,3,3,2,0,3,3,2,2,3,1,3,2,1,3,2,0,1,2,2,0,2,3,2,1,0,3,0,0,0,0,\n3,0,0,2,3,1,3,0,0,3,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n3,1,3,2,2,2,1,2,0,1,3,1,1,3,1,3,0,0,2,1,1,1,1,2,1,1,1,0,2,1,0,1,\n1,2,0,0,0,3,1,1,0,0,0,0,1,0,1,0,0,1,0,1,0,0,0,0,0,3,1,0,0,0,1,0,\n3,3,3,3,2,2,2,2,2,1,3,1,1,1,2,0,1,1,2,1,2,1,3,2,0,0,3,1,1,1,1,1,\n3,1,0,2,3,0,0,0,3,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n0,0,0,2,3,0,3,3,0,2,0,0,0,0,0,0,0,3,0,0,1,0,0,0,0,0,0,0,0,0,0,0,\n0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n0,0,2,3,1,3,0,0,1,2,0,0,2,0,3,3,2,3,3,3,2,3,0,0,2,2,2,0,0,0,2,2,\n0,0,1,0,0,0,0,3,0,0,0,0,2,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,\n0,0,0,3,0,2,0,0,0,0,0,0,0,0,0,0,1,2,3,1,3,3,0,0,1,0,3,0,0,0,0,0,\n0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n3,3,1,2,3,1,2,3,1,0,3,0,2,2,1,0,2,1,1,2,0,1,0,0,1,1,1,1,0,1,0,0,\n1,0,0,0,0,1,1,0,3,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n3,3,3,3,2,1,0,1,1,1,3,1,2,2,2,2,2,2,1,1,1,1,0,3,1,0,1,3,1,1,1,1,\n1,1,0,2,0,1,3,1,1,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,2,0,1,\n3,0,2,2,1,3,3,2,3,3,0,1,1,0,2,2,1,2,1,3,3,1,0,0,3,2,0,0,0,0,2,1,\n0,1,0,0,0,0,1,2,0,1,1,3,1,1,2,2,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,\n0,0,3,0,0,1,0,0,0,3,0,0,3,0,3,1,0,1,1,1,3,2,0,0,0,3,0,0,0,0,2,0,\n0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,2,0,0,0,0,0,0,0,0,0,\n3,3,1,3,2,1,3,3,1,2,2,0,1,2,1,0,1,2,0,0,0,0,0,3,0,0,0,3,0,0,0,0,\n3,0,0,1,1,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n3,0,1,2,0,3,3,3,2,2,0,1,1,0,1,3,0,0,0,2,2,0,0,0,0,3,1,0,1,0,0,0,\n0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n3,0,2,3,1,2,0,0,2,1,0,3,1,0,1,2,0,1,1,1,1,3,0,0,3,1,1,0,2,2,1,1,\n0,2,0,0,0,0,0,1,0,1,0,0,1,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n3,0,0,3,1,2,0,0,2,2,0,1,2,0,1,0,1,3,1,2,1,0,0,0,2,0,3,0,0,0,1,0,\n0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n3,0,1,1,2,2,0,0,0,2,0,2,1,0,1,1,0,1,1,1,2,1,0,0,1,1,1,0,2,1,1,1,\n0,1,1,0,0,0,0,0,0,1,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,1,\n0,0,0,2,0,1,3,1,1,1,1,0,0,0,0,3,2,0,1,0,0,0,1,2,0,0,0,1,0,0,0,0,\n0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n0,0,0,0,0,3,3,3,3,1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,\n0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n1,0,2,3,2,2,0,0,0,1,0,0,0,0,2,3,2,1,2,2,3,0,0,0,2,3,1,0,0,0,1,1,\n0,0,1,0,0,0,0,0,0,0,1,0,0,1,0,0,0,0,0,1,1,0,1,0,0,0,0,0,0,0,0,0,\n3,3,2,2,0,1,0,0,0,0,2,0,2,0,1,0,0,0,1,1,0,0,0,2,1,0,1,0,1,1,0,0,\n0,1,0,2,0,0,1,0,3,0,1,0,0,0,2,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n3,3,1,0,0,1,0,0,0,0,0,1,1,2,0,0,0,0,1,0,0,1,3,1,0,0,0,0,1,1,0,0,\n0,1,0,0,0,0,3,0,0,0,0,0,0,3,0,0,0,0,0,0,0,3,0,0,0,0,0,0,0,0,0,0,\n3,3,1,1,1,1,2,3,0,0,2,1,1,1,1,1,0,2,1,1,0,0,0,2,1,0,1,2,1,1,0,1,\n2,1,0,3,0,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n1,3,1,0,0,0,0,0,0,0,3,0,0,0,3,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,1,\n0,0,0,2,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n3,3,2,0,0,0,0,0,0,1,2,1,0,1,1,0,2,0,0,1,0,0,2,0,0,0,0,0,0,0,0,0,\n0,0,0,0,0,0,2,0,0,0,1,3,0,1,0,0,0,2,0,0,0,0,0,0,0,1,2,0,0,0,0,0,\n3,3,0,0,1,1,2,0,0,1,2,1,0,1,1,1,0,1,1,0,0,2,1,1,0,1,0,0,1,1,1,0,\n0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,\n2,2,2,1,0,0,0,0,1,0,0,0,0,3,0,0,0,0,0,0,0,0,0,3,0,0,0,0,0,0,0,0,\n2,0,0,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n2,3,0,0,1,1,0,0,0,2,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n0,0,0,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n1,1,0,1,2,0,1,2,0,0,1,1,0,2,0,1,0,0,1,0,0,0,0,1,0,0,0,2,0,0,0,0,\n1,0,0,1,0,1,1,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n0,1,0,0,0,0,0,0,0,1,1,0,1,1,0,2,1,3,0,0,0,0,1,1,0,0,0,0,0,0,0,3,\n1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,\n0,0,0,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n2,0,1,0,1,0,0,2,0,0,2,0,0,1,1,2,0,0,1,1,0,0,0,1,0,0,0,1,1,0,0,0,\n1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,\n1,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,\n0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,1,1,0,0,0,\n2,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,3,0,0,0,0,0,0,0,0,\n0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n2,0,0,0,0,2,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,\n0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,1,3,0,0,0,\n2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,1,0,0,0,0,\n1,0,0,0,0,0,0,0,0,1,0,0,0,0,2,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,\n0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n0,0,1,1,0,0,2,1,0,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n)\n\nTIS620ThaiModel = {\n 'charToOrderMap': TIS620CharToOrderMap,\n 'precedenceMatrix': ThaiLangModel,\n 'mTypicalPositiveRatio': 0.926386,\n 'keepEnglishLetter': False,\n 'charsetName': \"TIS-620\"\n}\n\n# flake8: noqa\n"},{"attributeType":"(int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int)","col":0,"comment":"null","endLoc":36,"id":849,"name":"TIS620CharToOrderMap","nodeType":"Attribute","startLoc":36,"text":"TIS620CharToOrderMap"},{"attributeType":"Pattern","col":4,"comment":"null","endLoc":26,"id":850,"name":"quote_re","nodeType":"Attribute","startLoc":26,"text":"quote_re"},{"attributeType":"str","col":4,"comment":"null","endLoc":30,"id":851,"name":"readme","nodeType":"Attribute","startLoc":30,"text":"readme"},{"col":0,"comment":"\n Returns True if the connection is dropped and should be closed.\n\n :param conn:\n :class:`httplib.HTTPConnection` object.\n\n Note: For platforms like AppEngine, this will always return ``False`` to\n let the platform handle connection recycling transparently for us.\n ","endLoc":509,"header":"def is_connection_dropped(conn)","id":853,"name":"is_connection_dropped","nodeType":"Function","startLoc":480,"text":"def is_connection_dropped(conn): # Platform-specific\n \"\"\"\n Returns True if the connection is dropped and should be closed.\n\n :param conn:\n :class:`httplib.HTTPConnection` object.\n\n Note: For platforms like AppEngine, this will always return ``False`` to\n let the platform handle connection recycling transparently for us.\n \"\"\"\n sock = getattr(conn, 'sock', False)\n if not sock: # Platform-specific: AppEngine\n return False\n\n if not poll:\n if not select: # Platform-specific: AppEngine\n return False\n\n try:\n return select([sock], [], [], 0.0)[0]\n except SocketError:\n return True\n\n # This version is better on platforms that support it.\n p = poll()\n p.register(sock, POLLIN)\n for (fno, ev) in p.poll(0.0):\n if fno == sock.fileno():\n # Either data is buffered (bad), or the connection is dropped.\n return True"},{"attributeType":"Pattern","col":4,"comment":"null","endLoc":27,"id":854,"name":"strict_domain_re","nodeType":"Attribute","startLoc":27,"text":"strict_domain_re"},{"attributeType":"Pattern","col":4,"comment":"null","endLoc":28,"id":855,"name":"domain_re","nodeType":"Attribute","startLoc":28,"text":"domain_re"},{"attributeType":"Pattern","col":4,"comment":"null","endLoc":29,"id":856,"name":"dots_re","nodeType":"Attribute","startLoc":29,"text":"dots_re"},{"attributeType":"Pattern","col":4,"comment":"null","endLoc":30,"id":857,"name":"magic_re","nodeType":"Attribute","startLoc":30,"text":"magic_re"},{"col":4,"comment":"Dict-like get() that also supports optional domain and path args in\n order to resolve naming collisions from using one cookie jar over\n multiple domains. Caution: operation is O(n), not O(1).","endLoc":172,"header":"def get(self, name, default=None, domain=None, path=None)","id":858,"name":"get","nodeType":"Function","startLoc":165,"text":"def get(self, name, default=None, domain=None, path=None):\n \"\"\"Dict-like get() that also supports optional domain and path args in\n order to resolve naming collisions from using one cookie jar over\n multiple domains. Caution: operation is O(n), not O(1).\"\"\"\n try:\n return self._find_no_duplicates(name, domain, path)\n except KeyError:\n return default"},{"attributeType":"(int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int)","col":0,"comment":"null","endLoc":61,"id":859,"name":"ThaiLangModel","nodeType":"Attribute","startLoc":61,"text":"ThaiLangModel"},{"col":4,"comment":"__get_item__ and get call _find_no_duplicates -- never used in Requests internally.\n Takes as args name and optional domain and path. Returns a cookie.value.\n Throws KeyError if cookie is not found and CookieConflictError if there are\n multiple cookies that match name and optionally domain and path.","endLoc":311,"header":"def _find_no_duplicates(self, name, domain=None, path=None)","id":860,"name":"_find_no_duplicates","nodeType":"Function","startLoc":295,"text":"def _find_no_duplicates(self, name, domain=None, path=None):\n \"\"\"__get_item__ and get call _find_no_duplicates -- never used in Requests internally.\n Takes as args name and optional domain and path. Returns a cookie.value.\n Throws KeyError if cookie is not found and CookieConflictError if there are\n multiple cookies that match name and optionally domain and path.\"\"\"\n toReturn = None\n for cookie in iter(self):\n if cookie.name == name:\n if domain is None or cookie.domain == domain:\n if path is None or cookie.path == path:\n if toReturn is not None: # if there are multiple cookies that meet passed in criteria\n raise CookieConflictError('There are multiple cookies with name, %r' % (name))\n toReturn = cookie.value # we will eventually return this as long as no cookie conflict\n\n if toReturn:\n return toReturn\n raise KeyError('name=%r, domain=%r, path=%r' % (name, domain, path))"},{"col":4,"comment":"Dict-like set() that also supports optional domain and path args in\n order to resolve naming collisions from using one cookie jar over\n multiple domains.","endLoc":188,"header":"def set(self, name, value, **kwargs)","id":861,"name":"set","nodeType":"Function","startLoc":174,"text":"def set(self, name, value, **kwargs):\n \"\"\"Dict-like set() that also supports optional domain and path args in\n order to resolve naming collisions from using one cookie jar over\n multiple domains.\"\"\"\n # support client code that unsets cookies by assignment of a None value:\n if value is None:\n remove_cookie_by_name(self, name, domain=kwargs.get('domain'), path=kwargs.get('path'))\n return\n\n if isinstance(value, Morsel):\n c = morsel_to_cookie(value)\n else:\n c = create_cookie(name, value, **kwargs)\n self.set_cookie(c)\n return c"},{"attributeType":"int","col":8,"comment":"null","endLoc":62,"id":862,"name":"_mFreqChar","nodeType":"Attribute","startLoc":62,"text":"self._mFreqChar"},{"attributeType":"null","col":8,"comment":"null","endLoc":51,"id":863,"name":"_mNameProber","nodeType":"Attribute","startLoc":51,"text":"self._mNameProber"},{"attributeType":"int","col":8,"comment":"null","endLoc":59,"id":864,"name":"_mTotalSeqs","nodeType":"Attribute","startLoc":59,"text":"self._mTotalSeqs"},{"attributeType":"int","col":8,"comment":"null","endLoc":57,"id":865,"name":"_mLastOrder","nodeType":"Attribute","startLoc":57,"text":"self._mLastOrder"},{"attributeType":"int","col":8,"comment":"null","endLoc":60,"id":866,"name":"_mTotalChar","nodeType":"Attribute","startLoc":60,"text":"self._mTotalChar"},{"attributeType":"null","col":8,"comment":"null","endLoc":47,"id":867,"name":"_mModel","nodeType":"Attribute","startLoc":47,"text":"self._mModel"},{"attributeType":"bool","col":8,"comment":"null","endLoc":49,"id":868,"name":"_mReversed","nodeType":"Attribute","startLoc":49,"text":"self._mReversed"},{"attributeType":"null","col":20,"comment":"null","endLoc":101,"id":869,"name":"_mState","nodeType":"Attribute","startLoc":101,"text":"self._mState"},{"col":4,"comment":"Closes the underlying file descriptor and releases the connection\n back to the pool.\n\n *Note: Should not normally need to be called explicitly.*\n ","endLoc":734,"header":"def close(self)","id":870,"name":"close","nodeType":"Function","startLoc":728,"text":"def close(self):\n \"\"\"Closes the underlying file descriptor and releases the connection\n back to the pool.\n\n *Note: Should not normally need to be called explicitly.*\n \"\"\"\n return self.raw.release_conn()"},{"attributeType":"null","col":8,"comment":"null","endLoc":529,"id":871,"name":"elapsed","nodeType":"Attribute","startLoc":529,"text":"self.elapsed"},{"col":0,"comment":"Unsets a cookie by name, by default over all domains and paths.\n\n Wraps CookieJar.clear(), is O(n).\n ","endLoc":140,"header":"def remove_cookie_by_name(cookiejar, name, domain=None, path=None)","id":872,"name":"remove_cookie_by_name","nodeType":"Function","startLoc":127,"text":"def remove_cookie_by_name(cookiejar, name, domain=None, path=None):\n \"\"\"Unsets a cookie by name, by default over all domains and paths.\n\n Wraps CookieJar.clear(), is O(n).\n \"\"\"\n clearables = []\n for cookie in cookiejar:\n if cookie.name == name:\n if domain is None or domain == cookie.domain:\n if path is None or path == cookie.path:\n clearables.append((cookie.domain, cookie.path, cookie.name))\n\n for domain, path, name in clearables:\n cookiejar.clear(domain, path, name)"},{"attributeType":"list","col":8,"comment":"null","endLoc":58,"id":873,"name":"_mSeqCounters","nodeType":"Attribute","startLoc":58,"text":"self._mSeqCounters"},{"attributeType":"int","col":0,"comment":"null","endLoc":34,"id":874,"name":"SAMPLE_SIZE","nodeType":"Attribute","startLoc":34,"text":"SAMPLE_SIZE"},{"attributeType":"int","col":0,"comment":"null","endLoc":35,"id":875,"name":"SB_ENOUGH_REL_THRESHOLD","nodeType":"Attribute","startLoc":35,"text":"SB_ENOUGH_REL_THRESHOLD"},{"attributeType":"float","col":0,"comment":"null","endLoc":36,"id":876,"name":"POSITIVE_SHORTCUT_THRESHOLD","nodeType":"Attribute","startLoc":36,"text":"POSITIVE_SHORTCUT_THRESHOLD"},{"attributeType":"float","col":0,"comment":"null","endLoc":37,"id":877,"name":"NEGATIVE_SHORTCUT_THRESHOLD","nodeType":"Attribute","startLoc":37,"text":"NEGATIVE_SHORTCUT_THRESHOLD"},{"attributeType":"int","col":0,"comment":"null","endLoc":38,"id":878,"name":"SYMBOL_CAT_ORDER","nodeType":"Attribute","startLoc":38,"text":"SYMBOL_CAT_ORDER"},{"attributeType":"int","col":0,"comment":"null","endLoc":39,"id":879,"name":"NUMBER_OF_SEQ_CAT","nodeType":"Attribute","startLoc":39,"text":"NUMBER_OF_SEQ_CAT"},{"attributeType":"int","col":0,"comment":"null","endLoc":40,"id":880,"name":"POSITIVE_CAT","nodeType":"Attribute","startLoc":40,"text":"POSITIVE_CAT"},{"col":0,"comment":"","endLoc":29,"header":"sbcharsetprober.py#","id":881,"name":"","nodeType":"Function","startLoc":29,"text":"SAMPLE_SIZE = 64\n\nSB_ENOUGH_REL_THRESHOLD = 1024\n\nPOSITIVE_SHORTCUT_THRESHOLD = 0.95\n\nNEGATIVE_SHORTCUT_THRESHOLD = 0.05\n\nSYMBOL_CAT_ORDER = 250\n\nNUMBER_OF_SEQ_CAT = 4\n\nPOSITIVE_CAT = NUMBER_OF_SEQ_CAT - 1"},{"col":0,"comment":"Convert a Morsel object into a Cookie containing the one k/v pair.","endLoc":392,"header":"def morsel_to_cookie(morsel)","id":882,"name":"morsel_to_cookie","nodeType":"Function","startLoc":368,"text":"def morsel_to_cookie(morsel):\n \"\"\"Convert a Morsel object into a Cookie containing the one k/v pair.\"\"\"\n expires = None\n if morsel[\"max-age\"]:\n expires = time.time() + morsel[\"max-age\"]\n elif morsel['expires']:\n expires = morsel['expires']\n if type(expires) == type(\"\"):\n time_template = \"%a, %d-%b-%Y %H:%M:%S GMT\"\n expires = time.mktime(time.strptime(expires, time_template))\n c = create_cookie(\n name=morsel.key,\n value=morsel.value,\n version=morsel['version'] or 0,\n port=None,\n domain=morsel['domain'],\n path=morsel['path'],\n secure=bool(morsel['secure']),\n expires=expires,\n discard=False,\n comment=morsel['comment'],\n comment_url=bool(morsel['comment']),\n rest={'HttpOnly': morsel['httponly']},\n rfc2109=False,)\n return c"},{"attributeType":"null","col":8,"comment":"null","endLoc":504,"id":883,"name":"headers","nodeType":"Attribute","startLoc":504,"text":"self.headers"},{"attributeType":"null","col":8,"comment":"null","endLoc":522,"id":884,"name":"reason","nodeType":"Attribute","startLoc":522,"text":"self.reason"},{"id":885,"name":".gitignore","nodeType":"TextFile","path":"","text":".coverage\nMANIFEST\ncoverage.xml\nnosetests.xml\njunit-report.xml\npylint.txt\ntoy.py\ntox.ini\nviolations.pyflakes.txt\ncover/\nbuild/\ndocs/_build\nrequests.egg-info/\n*.pyc\n*.swp\n*.egg\nenv/\n\n.workon\n\nt.py\n\nt2.py\n"},{"attributeType":"null","col":8,"comment":"null","endLoc":499,"id":886,"name":"status_code","nodeType":"Attribute","startLoc":499,"text":"self.status_code"},{"id":887,"name":"LICENSE","nodeType":"TextFile","path":"","text":"Copyright 2013 Kenneth Reitz\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n"},{"attributeType":"null","col":8,"comment":"null","endLoc":509,"id":888,"name":"raw","nodeType":"Attribute","startLoc":509,"text":"self.raw"},{"attributeType":"null","col":8,"comment":"null","endLoc":520,"id":889,"name":"history","nodeType":"Attribute","startLoc":520,"text":"self.history"},{"attributeType":"null","col":8,"comment":"null","endLoc":495,"id":890,"name":"_content","nodeType":"Attribute","startLoc":495,"text":"self._content"},{"attributeType":"null","col":8,"comment":"null","endLoc":515,"id":891,"name":"encoding","nodeType":"Attribute","startLoc":515,"text":"self.encoding"},{"attributeType":"null","col":8,"comment":"null","endLoc":496,"id":892,"name":"_content_consumed","nodeType":"Attribute","startLoc":496,"text":"self._content_consumed"},{"attributeType":"null","col":8,"comment":"null","endLoc":66,"id":893,"name":"_store","nodeType":"Attribute","startLoc":66,"text":"self._store"},{"attributeType":"null","col":8,"comment":"null","endLoc":512,"id":894,"name":"url","nodeType":"Attribute","startLoc":512,"text":"self.url"},{"attributeType":"null","col":8,"comment":"null","endLoc":525,"id":895,"name":"cookies","nodeType":"Attribute","startLoc":525,"text":"self.cookies"},{"fileName":"escprober.py","filePath":"requests/packages/charade","id":896,"nodeType":"File","text":"######################## BEGIN LICENSE BLOCK ########################\n# The Original Code is mozilla.org code.\n#\n# The Initial Developer of the Original Code is\n# Netscape Communications Corporation.\n# Portions created by the Initial Developer are Copyright (C) 1998\n# the Initial Developer. All Rights Reserved.\n#\n# Contributor(s):\n# Mark Pilgrim - port to Python\n#\n# This library is free software; you can redistribute it and/or\n# modify it under the terms of the GNU Lesser General Public\n# License as published by the Free Software Foundation; either\n# version 2.1 of the License, or (at your option) any later version.\n#\n# This library is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n# Lesser General Public License for more details.\n#\n# You should have received a copy of the GNU Lesser General Public\n# License along with this library; if not, write to the Free Software\n# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n# 02110-1301 USA\n######################### END LICENSE BLOCK #########################\n\nfrom . import constants\nfrom .escsm import (HZSMModel, ISO2022CNSMModel, ISO2022JPSMModel,\n ISO2022KRSMModel)\nfrom .charsetprober import CharSetProber\nfrom .codingstatemachine import CodingStateMachine\nfrom .compat import wrap_ord\n\n\nclass EscCharSetProber(CharSetProber):\n def __init__(self):\n CharSetProber.__init__(self)\n self._mCodingSM = [\n CodingStateMachine(HZSMModel),\n CodingStateMachine(ISO2022CNSMModel),\n CodingStateMachine(ISO2022JPSMModel),\n CodingStateMachine(ISO2022KRSMModel)\n ]\n self.reset()\n\n def reset(self):\n CharSetProber.reset(self)\n for codingSM in self._mCodingSM:\n if not codingSM:\n continue\n codingSM.active = True\n codingSM.reset()\n self._mActiveSM = len(self._mCodingSM)\n self._mDetectedCharset = None\n\n def get_charset_name(self):\n return self._mDetectedCharset\n\n def get_confidence(self):\n if self._mDetectedCharset:\n return 0.99\n else:\n return 0.00\n\n def feed(self, aBuf):\n for c in aBuf:\n # PY3K: aBuf is a byte array, so c is an int, not a byte\n for codingSM in self._mCodingSM:\n if not codingSM:\n continue\n if not codingSM.active:\n continue\n codingState = codingSM.next_state(wrap_ord(c))\n if codingState == constants.eError:\n codingSM.active = False\n self._mActiveSM -= 1\n if self._mActiveSM <= 0:\n self._mState = constants.eNotMe\n return self.get_state()\n elif codingState == constants.eItsMe:\n self._mState = constants.eFoundIt\n self._mDetectedCharset = codingSM.get_coding_state_machine() # nopep8\n return self.get_state()\n\n return self.get_state()\n"},{"className":"PoolManager","col":0,"comment":"\n Allows for arbitrary requests while transparently keeping track of\n necessary connection pools for you.\n\n :param num_pools:\n Number of connection pools to cache before discarding the least\n recently used pool.\n\n :param headers:\n Headers to include with all requests, unless other headers are given\n explicitly.\n\n :param \\**connection_pool_kw:\n Additional parameters are used to create fresh\n :class:`urllib3.connectionpool.ConnectionPool` instances.\n\n Example: ::\n\n >>> manager = PoolManager(num_pools=2)\n >>> r = manager.request('GET', 'http://google.com/')\n >>> r = manager.request('GET', 'http://google.com/mail')\n >>> r = manager.request('GET', 'http://yahoo.com/')\n >>> len(manager.pools)\n 2\n\n ","endLoc":171,"id":897,"nodeType":"Class","startLoc":35,"text":"class PoolManager(RequestMethods):\n \"\"\"\n Allows for arbitrary requests while transparently keeping track of\n necessary connection pools for you.\n\n :param num_pools:\n Number of connection pools to cache before discarding the least\n recently used pool.\n\n :param headers:\n Headers to include with all requests, unless other headers are given\n explicitly.\n\n :param \\**connection_pool_kw:\n Additional parameters are used to create fresh\n :class:`urllib3.connectionpool.ConnectionPool` instances.\n\n Example: ::\n\n >>> manager = PoolManager(num_pools=2)\n >>> r = manager.request('GET', 'http://google.com/')\n >>> r = manager.request('GET', 'http://google.com/mail')\n >>> r = manager.request('GET', 'http://yahoo.com/')\n >>> len(manager.pools)\n 2\n\n \"\"\"\n\n proxy = None\n\n def __init__(self, num_pools=10, headers=None, **connection_pool_kw):\n RequestMethods.__init__(self, headers)\n self.connection_pool_kw = connection_pool_kw\n self.pools = RecentlyUsedContainer(num_pools,\n dispose_func=lambda p: p.close())\n\n def _new_pool(self, scheme, host, port):\n \"\"\"\n Create a new :class:`ConnectionPool` based on host, port and scheme.\n\n This method is used to actually create the connection pools handed out\n by :meth:`connection_from_url` and companion methods. It is intended\n to be overridden for customization.\n \"\"\"\n pool_cls = pool_classes_by_scheme[scheme]\n kwargs = self.connection_pool_kw\n if scheme == 'http':\n kwargs = self.connection_pool_kw.copy()\n for kw in SSL_KEYWORDS:\n kwargs.pop(kw, None)\n\n return pool_cls(host, port, **kwargs)\n\n def clear(self):\n \"\"\"\n Empty our store of pools and direct them all to close.\n\n This will not affect in-flight connections, but they will not be\n re-used after completion.\n \"\"\"\n self.pools.clear()\n\n def connection_from_host(self, host, port=None, scheme='http'):\n \"\"\"\n Get a :class:`ConnectionPool` based on the host, port, and scheme.\n\n If ``port`` isn't given, it will be derived from the ``scheme`` using\n ``urllib3.connectionpool.port_by_scheme``.\n \"\"\"\n\n scheme = scheme or 'http'\n\n port = port or port_by_scheme.get(scheme, 80)\n\n pool_key = (scheme, host, port)\n\n with self.pools.lock:\n # If the scheme, host, or port doesn't match existing open\n # connections, open a new ConnectionPool.\n pool = self.pools.get(pool_key)\n if pool:\n return pool\n\n # Make a fresh ConnectionPool of the desired type\n pool = self._new_pool(scheme, host, port)\n self.pools[pool_key] = pool\n return pool\n\n def connection_from_url(self, url):\n \"\"\"\n Similar to :func:`urllib3.connectionpool.connection_from_url` but\n doesn't pass any additional parameters to the\n :class:`urllib3.connectionpool.ConnectionPool` constructor.\n\n Additional parameters are taken from the :class:`.PoolManager`\n constructor.\n \"\"\"\n u = parse_url(url)\n return self.connection_from_host(u.host, port=u.port, scheme=u.scheme)\n\n def urlopen(self, method, url, redirect=True, **kw):\n \"\"\"\n Same as :meth:`urllib3.connectionpool.HTTPConnectionPool.urlopen`\n with custom cross-host redirect logic and only sends the request-uri\n portion of the ``url``.\n\n The given ``url`` parameter must be absolute, such that an appropriate\n :class:`urllib3.connectionpool.ConnectionPool` can be chosen for it.\n \"\"\"\n u = parse_url(url)\n conn = self.connection_from_host(u.host, port=u.port, scheme=u.scheme)\n\n kw['assert_same_host'] = False\n kw['redirect'] = False\n if 'headers' not in kw:\n kw['headers'] = self.headers\n\n if self.proxy is not None and u.scheme == \"http\":\n response = conn.urlopen(method, url, **kw)\n else:\n response = conn.urlopen(method, u.request_uri, **kw)\n\n redirect_location = redirect and response.get_redirect_location()\n if not redirect_location:\n return response\n\n # Support relative URLs for redirecting.\n redirect_location = urljoin(url, redirect_location)\n\n # RFC 2616, Section 10.3.4\n if response.status == 303:\n method = 'GET'\n\n log.info(\"Redirecting %s -> %s\" % (url, redirect_location))\n kw['retries'] = kw.get('retries', 3) - 1 # Persist retries countdown\n kw['redirect'] = redirect\n return self.urlopen(method, redirect_location, **kw)"},{"col":4,"comment":"null","endLoc":69,"header":"def __init__(self, num_pools=10, headers=None, **connection_pool_kw)","id":898,"name":"__init__","nodeType":"Function","startLoc":65,"text":"def __init__(self, num_pools=10, headers=None, **connection_pool_kw):\n RequestMethods.__init__(self, headers)\n self.connection_pool_kw = connection_pool_kw\n self.pools = RecentlyUsedContainer(num_pools,\n dispose_func=lambda p: p.close())"},{"className":"EscCharSetProber","col":0,"comment":"null","endLoc":86,"id":899,"nodeType":"Class","startLoc":36,"text":"class EscCharSetProber(CharSetProber):\n def __init__(self):\n CharSetProber.__init__(self)\n self._mCodingSM = [\n CodingStateMachine(HZSMModel),\n CodingStateMachine(ISO2022CNSMModel),\n CodingStateMachine(ISO2022JPSMModel),\n CodingStateMachine(ISO2022KRSMModel)\n ]\n self.reset()\n\n def reset(self):\n CharSetProber.reset(self)\n for codingSM in self._mCodingSM:\n if not codingSM:\n continue\n codingSM.active = True\n codingSM.reset()\n self._mActiveSM = len(self._mCodingSM)\n self._mDetectedCharset = None\n\n def get_charset_name(self):\n return self._mDetectedCharset\n\n def get_confidence(self):\n if self._mDetectedCharset:\n return 0.99\n else:\n return 0.00\n\n def feed(self, aBuf):\n for c in aBuf:\n # PY3K: aBuf is a byte array, so c is an int, not a byte\n for codingSM in self._mCodingSM:\n if not codingSM:\n continue\n if not codingSM.active:\n continue\n codingState = codingSM.next_state(wrap_ord(c))\n if codingState == constants.eError:\n codingSM.active = False\n self._mActiveSM -= 1\n if self._mActiveSM <= 0:\n self._mState = constants.eNotMe\n return self.get_state()\n elif codingState == constants.eItsMe:\n self._mState = constants.eFoundIt\n self._mDetectedCharset = codingSM.get_coding_state_machine() # nopep8\n return self.get_state()\n\n return self.get_state()"},{"col":4,"comment":"null","endLoc":45,"header":"def __init__(self)","id":900,"name":"__init__","nodeType":"Function","startLoc":37,"text":"def __init__(self):\n CharSetProber.__init__(self)\n self._mCodingSM = [\n CodingStateMachine(HZSMModel),\n CodingStateMachine(ISO2022CNSMModel),\n CodingStateMachine(ISO2022JPSMModel),\n CodingStateMachine(ISO2022KRSMModel)\n ]\n self.reset()"},{"className":"HTTPBasicAuth","col":0,"comment":"Attaches HTTP Basic Authentication to the given Request object.","endLoc":48,"id":902,"nodeType":"Class","startLoc":40,"text":"class HTTPBasicAuth(AuthBase):\n \"\"\"Attaches HTTP Basic Authentication to the given Request object.\"\"\"\n def __init__(self, username, password):\n self.username = username\n self.password = password\n\n def __call__(self, r):\n r.headers['Authorization'] = _basic_auth_str(self.username, self.password)\n return r"},{"className":"AuthBase","col":0,"comment":"Base class that all auth implementations derive from","endLoc":37,"id":905,"nodeType":"Class","startLoc":33,"text":"class AuthBase(object):\n \"\"\"Base class that all auth implementations derive from\"\"\"\n\n def __call__(self, r):\n raise NotImplementedError('Auth hooks must be callable.')"},{"col":4,"comment":"null","endLoc":37,"header":"def __call__(self, r)","id":906,"name":"__call__","nodeType":"Function","startLoc":36,"text":"def __call__(self, r):\n raise NotImplementedError('Auth hooks must be callable.')"},{"col":56,"endLoc":69,"id":907,"nodeType":"Lambda","startLoc":69,"text":"lambda p: p.close()"},{"col":4,"comment":"\n Return a fresh :class:`httplib.HTTPConnection`.\n ","endLoc":184,"header":"def _new_conn(self)","id":908,"name":"_new_conn","nodeType":"Function","startLoc":170,"text":"def _new_conn(self):\n \"\"\"\n Return a fresh :class:`httplib.HTTPConnection`.\n \"\"\"\n self.num_connections += 1\n log.info(\"Starting new HTTP connection (%d): %s\" %\n (self.num_connections, self.host))\n\n extra_params = {}\n if not six.PY3: # Python 2\n extra_params['strict'] = self.strict\n\n return self.ConnectionCls(host=self.host, port=self.port,\n timeout=self.timeout.connect_timeout,\n **extra_params)"},{"col":4,"comment":"null","endLoc":44,"header":"def __init__(self, username, password)","id":909,"name":"__init__","nodeType":"Function","startLoc":42,"text":"def __init__(self, username, password):\n self.username = username\n self.password = password"},{"col":4,"comment":"null","endLoc":48,"header":"def __call__(self, r)","id":910,"name":"__call__","nodeType":"Function","startLoc":46,"text":"def __call__(self, r):\n r.headers['Authorization'] = _basic_auth_str(self.username, self.password)\n return r"},{"col":4,"comment":"null","endLoc":55,"header":"def reset(self)","id":911,"name":"reset","nodeType":"Function","startLoc":47,"text":"def reset(self):\n CharSetProber.reset(self)\n for codingSM in self._mCodingSM:\n if not codingSM:\n continue\n codingSM.active = True\n codingSM.reset()\n self._mActiveSM = len(self._mCodingSM)\n self._mDetectedCharset = None"},{"col":0,"comment":"Returns a Basic Auth string.","endLoc":30,"header":"def _basic_auth_str(username, password)","id":912,"name":"_basic_auth_str","nodeType":"Function","startLoc":27,"text":"def _basic_auth_str(username, password):\n \"\"\"Returns a Basic Auth string.\"\"\"\n\n return 'Basic ' + b64encode(('%s:%s' % (username, password)).encode('latin1')).strip().decode('latin1')"},{"col":4,"comment":"\n Create a new :class:`ConnectionPool` based on host, port and scheme.\n\n This method is used to actually create the connection pools handed out\n by :meth:`connection_from_url` and companion methods. It is intended\n to be overridden for customization.\n ","endLoc":86,"header":"def _new_pool(self, scheme, host, port)","id":913,"name":"_new_pool","nodeType":"Function","startLoc":71,"text":"def _new_pool(self, scheme, host, port):\n \"\"\"\n Create a new :class:`ConnectionPool` based on host, port and scheme.\n\n This method is used to actually create the connection pools handed out\n by :meth:`connection_from_url` and companion methods. It is intended\n to be overridden for customization.\n \"\"\"\n pool_cls = pool_classes_by_scheme[scheme]\n kwargs = self.connection_pool_kw\n if scheme == 'http':\n kwargs = self.connection_pool_kw.copy()\n for kw in SSL_KEYWORDS:\n kwargs.pop(kw, None)\n\n return pool_cls(host, port, **kwargs)"},{"attributeType":"TypedDict","col":0,"comment":"null","endLoc":192,"id":914,"name":"TIS620ThaiModel","nodeType":"Attribute","startLoc":192,"text":"TIS620ThaiModel"},{"col":4,"comment":"null","endLoc":266,"header":"def getheaders(self)","id":915,"name":"getheaders","nodeType":"Function","startLoc":265,"text":"def getheaders(self):\n return self.headers"},{"col":4,"comment":"null","endLoc":269,"header":"def getheader(self, name, default=None)","id":916,"name":"getheader","nodeType":"Function","startLoc":268,"text":"def getheader(self, name, default=None):\n return self.headers.get(name, default)"},{"attributeType":"null","col":28,"comment":"null","endLoc":12,"id":917,"name":"SocketError","nodeType":"Attribute","startLoc":12,"text":"SocketError"},{"col":4,"comment":"null","endLoc":272,"header":"def set_cookie(self, cookie, *args, **kwargs)","id":918,"name":"set_cookie","nodeType":"Function","startLoc":269,"text":"def set_cookie(self, cookie, *args, **kwargs):\n if cookie.value.startswith('\"') and cookie.value.endswith('\"'):\n cookie.value = cookie.value.replace('\\\\\"', '')\n return super(RequestsCookieJar, self).set_cookie(cookie, *args, **kwargs)"},{"attributeType":"bool","col":4,"comment":"null","endLoc":18,"id":919,"name":"poll","nodeType":"Attribute","startLoc":18,"text":"poll"},{"attributeType":"bool","col":8,"comment":"null","endLoc":22,"id":920,"name":"select","nodeType":"Attribute","startLoc":22,"text":"select"},{"attributeType":"None","col":4,"comment":"null","endLoc":25,"id":921,"name":"SSLContext","nodeType":"Attribute","startLoc":25,"text":"SSLContext"},{"attributeType":"bool","col":4,"comment":"null","endLoc":26,"id":922,"name":"HAS_SNI","nodeType":"Attribute","startLoc":26,"text":"HAS_SNI"},{"attributeType":"object","col":0,"comment":"null","endLoc":39,"id":923,"name":"_Default","nodeType":"Attribute","startLoc":39,"text":"_Default"},{"col":0,"comment":"","endLoc":8,"header":"util.py#","id":924,"name":"","nodeType":"Function","startLoc":8,"text":"try:\n from select import poll, POLLIN\nexcept ImportError: # `poll` doesn't exist on OSX and other platforms\n poll = False\n try:\n from select import select\n except ImportError: # `select` doesn't exist on AppEngine.\n select = False\n\ntry: # Test for SSL features\n SSLContext = None\n HAS_SNI = False\n\n import ssl\n from ssl import wrap_socket, CERT_NONE, PROTOCOL_SSLv23\n from ssl import SSLContext # Modern SSL?\n from ssl import HAS_SNI # Has SNI?\nexcept ImportError:\n pass\n\n_Default = object()\n\nif SSLContext is not None: # Python 3.2+\n def ssl_wrap_socket(sock, keyfile=None, certfile=None, cert_reqs=None,\n ca_certs=None, server_hostname=None,\n ssl_version=None):\n \"\"\"\n All arguments except `server_hostname` have the same meaning as for\n :func:`ssl.wrap_socket`\n\n :param server_hostname:\n Hostname of the expected certificate\n \"\"\"\n context = SSLContext(ssl_version)\n context.verify_mode = cert_reqs\n if ca_certs:\n try:\n context.load_verify_locations(ca_certs)\n # Py32 raises IOError\n # Py33 raises FileNotFoundError\n except Exception as e: # Reraise as SSLError\n raise SSLError(e)\n if certfile:\n # FIXME: This block needs a test.\n context.load_cert_chain(certfile, keyfile)\n if HAS_SNI: # Platform-specific: OpenSSL with enabled SNI\n return context.wrap_socket(sock, server_hostname=server_hostname)\n return context.wrap_socket(sock)\n\nelse: # Python 3.1 and earlier\n def ssl_wrap_socket(sock, keyfile=None, certfile=None, cert_reqs=None,\n ca_certs=None, server_hostname=None,\n ssl_version=None):\n return wrap_socket(sock, keyfile=keyfile, certfile=certfile,\n ca_certs=ca_certs, cert_reqs=cert_reqs,\n ssl_version=ssl_version)"},{"col":0,"comment":"","endLoc":53,"header":"langthaimodel.py#","id":925,"name":"","nodeType":"Function","startLoc":36,"text":"TIS620CharToOrderMap = (\n255,255,255,255,255,255,255,255,255,255,254,255,255,254,255,255, # 00\n255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, # 10\n253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253, # 20\n252,252,252,252,252,252,252,252,252,252,253,253,253,253,253,253, # 30\n253,182,106,107,100,183,184,185,101, 94,186,187,108,109,110,111, # 40\n188,189,190, 89, 95,112,113,191,192,193,194,253,253,253,253,253, # 50\n253, 64, 72, 73,114, 74,115,116,102, 81,201,117, 90,103, 78, 82, # 60\n 96,202, 91, 79, 84,104,105, 97, 98, 92,203,253,253,253,253,253, # 70\n209,210,211,212,213, 88,214,215,216,217,218,219,220,118,221,222,\n223,224, 99, 85, 83,225,226,227,228,229,230,231,232,233,234,235,\n236, 5, 30,237, 24,238, 75, 8, 26, 52, 34, 51,119, 47, 58, 57,\n 49, 53, 55, 43, 20, 19, 44, 14, 48, 3, 17, 25, 39, 62, 31, 54,\n 45, 9, 16, 2, 61, 15,239, 12, 42, 46, 18, 21, 76, 4, 66, 63,\n 22, 10, 1, 36, 23, 13, 40, 27, 32, 35, 86,240,241,242,243,244,\n 11, 28, 41, 29, 33,245, 50, 37, 6, 7, 67, 77, 38, 93,246,247,\n 68, 56, 59, 65, 69, 60, 70, 80, 71, 87,248,249,250,251,252,253,\n)\n\nThaiLangModel = (\n0,1,3,3,3,3,0,0,3,3,0,3,3,0,3,3,3,3,3,3,3,3,0,0,3,3,3,0,3,3,3,3,\n0,3,3,0,0,0,1,3,0,3,3,2,3,3,0,1,2,3,3,3,3,0,2,0,2,0,0,3,2,1,2,2,\n3,0,3,3,2,3,0,0,3,3,0,3,3,0,3,3,3,3,3,3,3,3,3,0,3,2,3,0,2,2,2,3,\n0,2,3,0,0,0,0,1,0,1,2,3,1,1,3,2,2,0,1,1,0,0,1,0,0,0,0,0,0,0,1,1,\n3,3,3,2,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,3,3,2,3,2,3,3,2,2,2,\n3,1,2,3,0,3,3,2,2,1,2,3,3,1,2,0,1,3,0,1,0,0,1,0,0,0,0,0,0,0,1,1,\n3,3,2,2,3,3,3,3,1,2,3,3,3,3,3,2,2,2,2,3,3,2,2,3,3,2,2,3,2,3,2,2,\n3,3,1,2,3,1,2,2,3,3,1,0,2,1,0,0,3,1,2,1,0,0,1,0,0,0,0,0,0,1,0,1,\n3,3,3,3,3,3,2,2,3,3,3,3,2,3,2,2,3,3,2,2,3,2,2,2,2,1,1,3,1,2,1,1,\n3,2,1,0,2,1,0,1,0,1,1,0,1,1,0,0,1,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,\n3,3,3,2,3,2,3,3,2,2,3,2,3,3,2,3,1,1,2,3,2,2,2,3,2,2,2,2,2,1,2,1,\n2,2,1,1,3,3,2,1,0,1,2,2,0,1,3,0,0,0,1,1,0,0,0,0,0,2,3,0,0,2,1,1,\n3,3,2,3,3,2,0,0,3,3,0,3,3,0,2,2,3,1,2,2,1,1,1,0,2,2,2,0,2,2,1,1,\n0,2,1,0,2,0,0,2,0,1,0,0,1,0,0,0,1,1,1,1,0,0,0,0,0,0,0,0,0,0,1,0,\n3,3,2,3,3,2,0,0,3,3,0,2,3,0,2,1,2,2,2,2,1,2,0,0,2,2,2,0,2,2,1,1,\n0,2,1,0,2,0,0,2,0,1,1,0,1,0,0,0,0,0,0,1,0,0,1,0,0,0,0,0,0,0,0,0,\n3,3,2,3,2,3,2,0,2,2,1,3,2,1,3,2,1,2,3,2,2,3,0,2,3,2,2,1,2,2,2,2,\n1,2,2,0,0,0,0,2,0,1,2,0,1,1,1,0,1,0,3,1,1,0,0,0,0,0,0,0,0,0,1,0,\n3,3,2,3,3,2,3,2,2,2,3,2,2,3,2,2,1,2,3,2,2,3,1,3,2,2,2,3,2,2,2,3,\n3,2,1,3,0,1,1,1,0,2,1,1,1,1,1,0,1,0,1,1,0,0,0,0,0,0,0,0,0,2,0,0,\n1,0,0,3,0,3,3,3,3,3,0,0,3,0,2,2,3,3,3,3,3,0,0,0,1,1,3,0,0,0,0,2,\n0,0,1,0,0,0,0,0,0,0,2,3,0,0,0,3,0,2,0,0,0,0,0,3,0,0,0,0,0,0,0,0,\n2,0,3,3,3,3,0,0,2,3,0,0,3,0,3,3,2,3,3,3,3,3,0,0,3,3,3,0,0,0,3,3,\n0,0,3,0,0,0,0,2,0,0,2,1,1,3,0,0,1,0,0,2,3,0,1,0,0,0,0,0,0,0,1,0,\n3,3,3,3,2,3,3,3,3,3,3,3,1,2,1,3,3,2,2,1,2,2,2,3,1,1,2,0,2,1,2,1,\n2,2,1,0,0,0,1,1,0,1,0,1,1,0,0,0,0,0,1,1,0,0,1,0,0,0,0,0,0,0,0,0,\n3,0,2,1,2,3,3,3,0,2,0,2,2,0,2,1,3,2,2,1,2,1,0,0,2,2,1,0,2,1,2,2,\n0,1,1,0,0,0,0,1,0,1,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,\n3,3,3,3,2,1,3,3,1,1,3,0,2,3,1,1,3,2,1,1,2,0,2,2,3,2,1,1,1,1,1,2,\n3,0,0,1,3,1,2,1,2,0,3,0,0,0,1,0,3,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,\n3,3,1,1,3,2,3,3,3,1,3,2,1,3,2,1,3,2,2,2,2,1,3,3,1,2,1,3,1,2,3,0,\n2,1,1,3,2,2,2,1,2,1,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,\n3,3,2,3,2,3,3,2,3,2,3,2,3,3,2,1,0,3,2,2,2,1,2,2,2,1,2,2,1,2,1,1,\n2,2,2,3,0,1,3,1,1,1,1,0,1,1,0,2,1,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,\n3,3,3,3,2,3,2,2,1,1,3,2,3,2,3,2,0,3,2,2,1,2,0,2,2,2,1,2,2,2,2,1,\n3,2,1,2,2,1,0,2,0,1,0,0,1,1,0,0,0,0,0,1,1,0,1,0,0,0,0,0,0,0,0,1,\n3,3,3,3,3,2,3,1,2,3,3,2,2,3,0,1,1,2,0,3,3,2,2,3,0,1,1,3,0,0,0,0,\n3,1,0,3,3,0,2,0,2,1,0,0,3,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n3,3,3,2,3,2,3,3,0,1,3,1,1,2,1,2,1,1,3,1,1,0,2,3,1,1,1,1,1,1,1,1,\n3,1,1,2,2,2,2,1,1,1,0,0,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,\n3,2,2,1,1,2,1,3,3,2,3,2,2,3,2,2,3,1,2,2,1,2,0,3,2,1,2,2,2,2,2,1,\n3,2,1,2,2,2,1,1,1,1,0,0,1,1,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,\n3,3,3,3,3,3,3,3,1,3,3,0,2,1,0,3,2,0,0,3,1,0,1,1,0,1,0,0,0,0,0,1,\n1,0,0,1,0,3,2,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n3,0,2,2,2,3,0,0,1,3,0,3,2,0,3,2,2,3,3,3,3,3,1,0,2,2,2,0,2,2,1,2,\n0,2,3,0,0,0,0,1,0,1,0,0,1,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,\n3,0,2,3,1,3,3,2,3,3,0,3,3,0,3,2,2,3,2,3,3,3,0,0,2,2,3,0,1,1,1,3,\n0,0,3,0,0,0,2,2,0,1,3,0,1,2,2,2,3,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,\n3,2,3,3,2,0,3,3,2,2,3,1,3,2,1,3,2,0,1,2,2,0,2,3,2,1,0,3,0,0,0,0,\n3,0,0,2,3,1,3,0,0,3,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n3,1,3,2,2,2,1,2,0,1,3,1,1,3,1,3,0,0,2,1,1,1,1,2,1,1,1,0,2,1,0,1,\n1,2,0,0,0,3,1,1,0,0,0,0,1,0,1,0,0,1,0,1,0,0,0,0,0,3,1,0,0,0,1,0,\n3,3,3,3,2,2,2,2,2,1,3,1,1,1,2,0,1,1,2,1,2,1,3,2,0,0,3,1,1,1,1,1,\n3,1,0,2,3,0,0,0,3,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n0,0,0,2,3,0,3,3,0,2,0,0,0,0,0,0,0,3,0,0,1,0,0,0,0,0,0,0,0,0,0,0,\n0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n0,0,2,3,1,3,0,0,1,2,0,0,2,0,3,3,2,3,3,3,2,3,0,0,2,2,2,0,0,0,2,2,\n0,0,1,0,0,0,0,3,0,0,0,0,2,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,\n0,0,0,3,0,2,0,0,0,0,0,0,0,0,0,0,1,2,3,1,3,3,0,0,1,0,3,0,0,0,0,0,\n0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n3,3,1,2,3,1,2,3,1,0,3,0,2,2,1,0,2,1,1,2,0,1,0,0,1,1,1,1,0,1,0,0,\n1,0,0,0,0,1,1,0,3,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n3,3,3,3,2,1,0,1,1,1,3,1,2,2,2,2,2,2,1,1,1,1,0,3,1,0,1,3,1,1,1,1,\n1,1,0,2,0,1,3,1,1,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,2,0,1,\n3,0,2,2,1,3,3,2,3,3,0,1,1,0,2,2,1,2,1,3,3,1,0,0,3,2,0,0,0,0,2,1,\n0,1,0,0,0,0,1,2,0,1,1,3,1,1,2,2,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,\n0,0,3,0,0,1,0,0,0,3,0,0,3,0,3,1,0,1,1,1,3,2,0,0,0,3,0,0,0,0,2,0,\n0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,2,0,0,0,0,0,0,0,0,0,\n3,3,1,3,2,1,3,3,1,2,2,0,1,2,1,0,1,2,0,0,0,0,0,3,0,0,0,3,0,0,0,0,\n3,0,0,1,1,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n3,0,1,2,0,3,3,3,2,2,0,1,1,0,1,3,0,0,0,2,2,0,0,0,0,3,1,0,1,0,0,0,\n0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n3,0,2,3,1,2,0,0,2,1,0,3,1,0,1,2,0,1,1,1,1,3,0,0,3,1,1,0,2,2,1,1,\n0,2,0,0,0,0,0,1,0,1,0,0,1,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n3,0,0,3,1,2,0,0,2,2,0,1,2,0,1,0,1,3,1,2,1,0,0,0,2,0,3,0,0,0,1,0,\n0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n3,0,1,1,2,2,0,0,0,2,0,2,1,0,1,1,0,1,1,1,2,1,0,0,1,1,1,0,2,1,1,1,\n0,1,1,0,0,0,0,0,0,1,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,1,\n0,0,0,2,0,1,3,1,1,1,1,0,0,0,0,3,2,0,1,0,0,0,1,2,0,0,0,1,0,0,0,0,\n0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n0,0,0,0,0,3,3,3,3,1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,\n0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n1,0,2,3,2,2,0,0,0,1,0,0,0,0,2,3,2,1,2,2,3,0,0,0,2,3,1,0,0,0,1,1,\n0,0,1,0,0,0,0,0,0,0,1,0,0,1,0,0,0,0,0,1,1,0,1,0,0,0,0,0,0,0,0,0,\n3,3,2,2,0,1,0,0,0,0,2,0,2,0,1,0,0,0,1,1,0,0,0,2,1,0,1,0,1,1,0,0,\n0,1,0,2,0,0,1,0,3,0,1,0,0,0,2,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n3,3,1,0,0,1,0,0,0,0,0,1,1,2,0,0,0,0,1,0,0,1,3,1,0,0,0,0,1,1,0,0,\n0,1,0,0,0,0,3,0,0,0,0,0,0,3,0,0,0,0,0,0,0,3,0,0,0,0,0,0,0,0,0,0,\n3,3,1,1,1,1,2,3,0,0,2,1,1,1,1,1,0,2,1,1,0,0,0,2,1,0,1,2,1,1,0,1,\n2,1,0,3,0,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n1,3,1,0,0,0,0,0,0,0,3,0,0,0,3,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,1,\n0,0,0,2,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n3,3,2,0,0,0,0,0,0,1,2,1,0,1,1,0,2,0,0,1,0,0,2,0,0,0,0,0,0,0,0,0,\n0,0,0,0,0,0,2,0,0,0,1,3,0,1,0,0,0,2,0,0,0,0,0,0,0,1,2,0,0,0,0,0,\n3,3,0,0,1,1,2,0,0,1,2,1,0,1,1,1,0,1,1,0,0,2,1,1,0,1,0,0,1,1,1,0,\n0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,\n2,2,2,1,0,0,0,0,1,0,0,0,0,3,0,0,0,0,0,0,0,0,0,3,0,0,0,0,0,0,0,0,\n2,0,0,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n2,3,0,0,1,1,0,0,0,2,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n0,0,0,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n1,1,0,1,2,0,1,2,0,0,1,1,0,2,0,1,0,0,1,0,0,0,0,1,0,0,0,2,0,0,0,0,\n1,0,0,1,0,1,1,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n0,1,0,0,0,0,0,0,0,1,1,0,1,1,0,2,1,3,0,0,0,0,1,1,0,0,0,0,0,0,0,3,\n1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,\n0,0,0,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n2,0,1,0,1,0,0,2,0,0,2,0,0,1,1,2,0,0,1,1,0,0,0,1,0,0,0,1,1,0,0,0,\n1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,\n1,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,\n0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,1,1,0,0,0,\n2,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,3,0,0,0,0,0,0,0,0,\n0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n2,0,0,0,0,2,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,\n0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,1,3,0,0,0,\n2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,1,0,0,0,0,\n1,0,0,0,0,0,0,0,0,1,0,0,0,0,2,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,\n0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n0,0,1,1,0,0,2,1,0,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n)\n\nTIS620ThaiModel = {\n 'charToOrderMap': TIS620CharToOrderMap,\n 'precedenceMatrix': ThaiLangModel,\n 'mTypicalPositiveRatio': 0.926386,\n 'keepEnglishLetter': False,\n 'charsetName': \"TIS-620\"\n}"},{"col":4,"comment":"null","endLoc":274,"header":"def close(self)","id":926,"name":"close","nodeType":"Function","startLoc":272,"text":"def close(self):\n if not self.closed:\n self._fp.close()"},{"id":927,"name":"AUTHORS.rst","nodeType":"TextFile","path":"","text":"Requests is written and maintained by Kenneth Reitz and\nvarious contributors:\n\nDevelopment Lead\n````````````````\n\n- Kenneth Reitz \n\n\nUrllib3\n```````\n\n- Andrey Petrov \n\n\nPatches and Suggestions\n```````````````````````\n\n- Various Pocoo Members\n- Chris Adams\n- Flavio Percoco Premoli\n- Dj Gilcrease\n- Justin Murphy\n- Rob Madole\n- Aram Dulyan\n- Johannes Gorset\n- 村山めがね (Megane Murayama)\n- James Rowe\n- Daniel Schauenberg\n- Zbigniew Siciarz\n- Daniele Tricoli 'Eriol'\n- Richard Boulton\n- Miguel Olivares \n- Alberto Paro\n- Jérémy Bethmont\n- 潘旭 (Xu Pan)\n- Tamás Gulácsi\n- Rubén Abad\n- Peter Manser\n- Jeremy Selier\n- Jens Diemer\n- Alex <@alopatin>\n- Tom Hogans \n- Armin Ronacher\n- Shrikant Sharat Kandula\n- Mikko Ohtamaa\n- Den Shabalin\n- Daniel Miller \n- Alejandro Giacometti\n- Rick Mak\n- Johan Bergström\n- Josselin Jacquard\n- Travis N. Vaught\n- Fredrik Möllerstrand\n- Daniel Hengeveld\n- Dan Head\n- Bruno Renié\n- David Fischer\n- Joseph McCullough\n- Juergen Brendel\n- Juan Riaza\n- Ryan Kelly\n- Rolando Espinoza La fuente\n- Robert Gieseke\n- Idan Gazit\n- Ed Summers\n- Chris Van Horne\n- Christopher Davis\n- Ori Livneh\n- Jason Emerick\n- Bryan Helmig\n- Jonas Obrist\n- Lucian Ursu\n- Tom Moertel\n- Frank Kumro Jr\n- Chase Sterling\n- Marty Alchin\n- takluyver\n- Ben Toews (mastahyeti)\n- David Kemp\n- Brendon Crawford\n- Denis (Telofy)\n- Cory Benfield (Lukasa)\n- Matt Giuca\n- Adam Tauber\n- Honza Javorek\n- Brendan Maguire \n- Chris Dary\n- Danver Braganza \n- Max Countryman\n- Nick Chadwick\n- Jonathan Drosdeck\n- Jiri Machalek\n- Steve Pulec\n- Michael Kelly\n- Michael Newman \n- Jonty Wareing \n- Shivaram Lingamneni\n- Miguel Turner\n- Rohan Jain (crodjer)\n- Justin Barber \n- Roman Haritonov <@reclosedev>\n- Josh Imhoff \n- Arup Malakar \n- Danilo Bargen (dbrgn)\n- Torsten Landschoff\n- Michael Holler (apotheos)\n- Timnit Gebru\n- Sarah Gonzalez\n- Victoria Mo\n- Leila Muhtasib\n- Matthias Rahlf \n- Jakub Roztocil \n- Ian Cordasco @sigmavirus24\n- Rhys Elsmore\n- André Graf (dergraf)\n- Stephen Zhuang (everbird)\n- Martijn Pieters\n- Jonatan Heyman\n- David Bonner @rascalking\n- Vinod Chandru\n- Johnny Goodnow \n- Denis Ryzhkov \n- Wilfred Hughes @dontYetKnow\n- Dmitry Medvinsky \n- Bryce Boe @bboe\n- Colin Dunklau @cdunklau\n- Bob Carroll @rcarz\n- Hugo Osvaldo Barrera @hobarrera\n- Łukasz Langa @llanga\n- Dave Shawley \n- James Clarke (jam)\n- Kevin Burke \n- Flavio Curella\n- David Pursehouse @dpursehouse\n- Jon Parise\n- Alexander Karpinsky @homm86\n- Marc Schlaich @schlamar\n- Park Ilsu @daftshady\n- Matt Spitz @mattspitz\n- Vikram Oberoi @voberoi\n- Can Ibanoglu @canibanoglu\n"},{"col":4,"comment":"\n Empty our store of pools and direct them all to close.\n\n This will not affect in-flight connections, but they will not be\n re-used after completion.\n ","endLoc":95,"header":"def clear(self)","id":928,"name":"clear","nodeType":"Function","startLoc":88,"text":"def clear(self):\n \"\"\"\n Empty our store of pools and direct them all to close.\n\n This will not affect in-flight connections, but they will not be\n re-used after completion.\n \"\"\"\n self.pools.clear()"},{"id":931,"name":"make.bat","nodeType":"TextFile","path":"docs","text":"@ECHO OFF\n\nREM Command file for Sphinx documentation\n\nif \"%SPHINXBUILD%\" == \"\" (\n\tset SPHINXBUILD=sphinx-build\n)\nset BUILDDIR=_build\nset ALLSPHINXOPTS=-d %BUILDDIR%/doctrees %SPHINXOPTS% .\nset I18NSPHINXOPTS=%SPHINXOPTS% .\nif NOT \"%PAPER%\" == \"\" (\n\tset ALLSPHINXOPTS=-D latex_paper_size=%PAPER% %ALLSPHINXOPTS%\n\tset I18NSPHINXOPTS=-D latex_paper_size=%PAPER% %I18NSPHINXOPTS%\n)\n\nif \"%1\" == \"\" goto help\n\nif \"%1\" == \"help\" (\n\t:help\n\techo.Please use `make ^` where ^ is one of\n\techo. html to make standalone HTML files\n\techo. dirhtml to make HTML files named index.html in directories\n\techo. singlehtml to make a single large HTML file\n\techo. pickle to make pickle files\n\techo. json to make JSON files\n\techo. htmlhelp to make HTML files and a HTML help project\n\techo. qthelp to make HTML files and a qthelp project\n\techo. devhelp to make HTML files and a Devhelp project\n\techo. epub to make an epub\n\techo. latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter\n\techo. text to make text files\n\techo. man to make manual pages\n\techo. texinfo to make Texinfo files\n\techo. gettext to make PO message catalogs\n\techo. changes to make an overview over all changed/added/deprecated items\n\techo. linkcheck to check all external links for integrity\n\techo. doctest to run all doctests embedded in the documentation if enabled\n\tgoto end\n)\n\nif \"%1\" == \"clean\" (\n\tfor /d %%i in (%BUILDDIR%\\*) do rmdir /q /s %%i\n\tdel /q /s %BUILDDIR%\\*\n\tgoto end\n)\n\nif \"%1\" == \"html\" (\n\t%SPHINXBUILD% -b html %ALLSPHINXOPTS% %BUILDDIR%/html\n\tif errorlevel 1 exit /b 1\n\techo.\n\techo.Build finished. The HTML pages are in %BUILDDIR%/html.\n\tgoto end\n)\n\nif \"%1\" == \"dirhtml\" (\n\t%SPHINXBUILD% -b dirhtml %ALLSPHINXOPTS% %BUILDDIR%/dirhtml\n\tif errorlevel 1 exit /b 1\n\techo.\n\techo.Build finished. The HTML pages are in %BUILDDIR%/dirhtml.\n\tgoto end\n)\n\nif \"%1\" == \"singlehtml\" (\n\t%SPHINXBUILD% -b singlehtml %ALLSPHINXOPTS% %BUILDDIR%/singlehtml\n\tif errorlevel 1 exit /b 1\n\techo.\n\techo.Build finished. The HTML pages are in %BUILDDIR%/singlehtml.\n\tgoto end\n)\n\nif \"%1\" == \"pickle\" (\n\t%SPHINXBUILD% -b pickle %ALLSPHINXOPTS% %BUILDDIR%/pickle\n\tif errorlevel 1 exit /b 1\n\techo.\n\techo.Build finished; now you can process the pickle files.\n\tgoto end\n)\n\nif \"%1\" == \"json\" (\n\t%SPHINXBUILD% -b json %ALLSPHINXOPTS% %BUILDDIR%/json\n\tif errorlevel 1 exit /b 1\n\techo.\n\techo.Build finished; now you can process the JSON files.\n\tgoto end\n)\n\nif \"%1\" == \"htmlhelp\" (\n\t%SPHINXBUILD% -b htmlhelp %ALLSPHINXOPTS% %BUILDDIR%/htmlhelp\n\tif errorlevel 1 exit /b 1\n\techo.\n\techo.Build finished; now you can run HTML Help Workshop with the ^\n.hhp project file in %BUILDDIR%/htmlhelp.\n\tgoto end\n)\n\nif \"%1\" == \"qthelp\" (\n\t%SPHINXBUILD% -b qthelp %ALLSPHINXOPTS% %BUILDDIR%/qthelp\n\tif errorlevel 1 exit /b 1\n\techo.\n\techo.Build finished; now you can run \"qcollectiongenerator\" with the ^\n.qhcp project file in %BUILDDIR%/qthelp, like this:\n\techo.^> qcollectiongenerator %BUILDDIR%\\qthelp\\Requests.qhcp\n\techo.To view the help file:\n\techo.^> assistant -collectionFile %BUILDDIR%\\qthelp\\Requests.ghc\n\tgoto end\n)\n\nif \"%1\" == \"devhelp\" (\n\t%SPHINXBUILD% -b devhelp %ALLSPHINXOPTS% %BUILDDIR%/devhelp\n\tif errorlevel 1 exit /b 1\n\techo.\n\techo.Build finished.\n\tgoto end\n)\n\nif \"%1\" == \"epub\" (\n\t%SPHINXBUILD% -b epub %ALLSPHINXOPTS% %BUILDDIR%/epub\n\tif errorlevel 1 exit /b 1\n\techo.\n\techo.Build finished. The epub file is in %BUILDDIR%/epub.\n\tgoto end\n)\n\nif \"%1\" == \"latex\" (\n\t%SPHINXBUILD% -b latex %ALLSPHINXOPTS% %BUILDDIR%/latex\n\tif errorlevel 1 exit /b 1\n\techo.\n\techo.Build finished; the LaTeX files are in %BUILDDIR%/latex.\n\tgoto end\n)\n\nif \"%1\" == \"text\" (\n\t%SPHINXBUILD% -b text %ALLSPHINXOPTS% %BUILDDIR%/text\n\tif errorlevel 1 exit /b 1\n\techo.\n\techo.Build finished. The text files are in %BUILDDIR%/text.\n\tgoto end\n)\n\nif \"%1\" == \"man\" (\n\t%SPHINXBUILD% -b man %ALLSPHINXOPTS% %BUILDDIR%/man\n\tif errorlevel 1 exit /b 1\n\techo.\n\techo.Build finished. The manual pages are in %BUILDDIR%/man.\n\tgoto end\n)\n\nif \"%1\" == \"texinfo\" (\n\t%SPHINXBUILD% -b texinfo %ALLSPHINXOPTS% %BUILDDIR%/texinfo\n\tif errorlevel 1 exit /b 1\n\techo.\n\techo.Build finished. The Texinfo files are in %BUILDDIR%/texinfo.\n\tgoto end\n)\n\nif \"%1\" == \"gettext\" (\n\t%SPHINXBUILD% -b gettext %I18NSPHINXOPTS% %BUILDDIR%/locale\n\tif errorlevel 1 exit /b 1\n\techo.\n\techo.Build finished. The message catalogs are in %BUILDDIR%/locale.\n\tgoto end\n)\n\nif \"%1\" == \"changes\" (\n\t%SPHINXBUILD% -b changes %ALLSPHINXOPTS% %BUILDDIR%/changes\n\tif errorlevel 1 exit /b 1\n\techo.\n\techo.The overview file is in %BUILDDIR%/changes.\n\tgoto end\n)\n\nif \"%1\" == \"linkcheck\" (\n\t%SPHINXBUILD% -b linkcheck %ALLSPHINXOPTS% %BUILDDIR%/linkcheck\n\tif errorlevel 1 exit /b 1\n\techo.\n\techo.Link check complete; look for any errors in the above output ^\nor in %BUILDDIR%/linkcheck/output.txt.\n\tgoto end\n)\n\nif \"%1\" == \"doctest\" (\n\t%SPHINXBUILD% -b doctest %ALLSPHINXOPTS% %BUILDDIR%/doctest\n\tif errorlevel 1 exit /b 1\n\techo.\n\techo.Testing of doctests in the sources finished, look at the ^\nresults in %BUILDDIR%/doctest/output.txt.\n\tgoto end\n)\n\n:end\n"},{"col":4,"comment":"\n Get a :class:`ConnectionPool` based on the host, port, and scheme.\n\n If ``port`` isn't given, it will be derived from the ``scheme`` using\n ``urllib3.connectionpool.port_by_scheme``.\n ","endLoc":121,"header":"def connection_from_host(self, host, port=None, scheme='http')","id":933,"name":"connection_from_host","nodeType":"Function","startLoc":97,"text":"def connection_from_host(self, host, port=None, scheme='http'):\n \"\"\"\n Get a :class:`ConnectionPool` based on the host, port, and scheme.\n\n If ``port`` isn't given, it will be derived from the ``scheme`` using\n ``urllib3.connectionpool.port_by_scheme``.\n \"\"\"\n\n scheme = scheme or 'http'\n\n port = port or port_by_scheme.get(scheme, 80)\n\n pool_key = (scheme, host, port)\n\n with self.pools.lock:\n # If the scheme, host, or port doesn't match existing open\n # connections, open a new ConnectionPool.\n pool = self.pools.get(pool_key)\n if pool:\n return pool\n\n # Make a fresh ConnectionPool of the desired type\n pool = self._new_pool(scheme, host, port)\n self.pools[pool_key] = pool\n return pool"},{"fileName":"eucjpprober.py","filePath":"requests/packages/charade","id":934,"nodeType":"File","text":"######################## BEGIN LICENSE BLOCK ########################\n# The Original Code is mozilla.org code.\n#\n# The Initial Developer of the Original Code is\n# Netscape Communications Corporation.\n# Portions created by the Initial Developer are Copyright (C) 1998\n# the Initial Developer. All Rights Reserved.\n#\n# Contributor(s):\n# Mark Pilgrim - port to Python\n#\n# This library is free software; you can redistribute it and/or\n# modify it under the terms of the GNU Lesser General Public\n# License as published by the Free Software Foundation; either\n# version 2.1 of the License, or (at your option) any later version.\n#\n# This library is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n# Lesser General Public License for more details.\n#\n# You should have received a copy of the GNU Lesser General Public\n# License along with this library; if not, write to the Free Software\n# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n# 02110-1301 USA\n######################### END LICENSE BLOCK #########################\n\nimport sys\nfrom . import constants\nfrom .mbcharsetprober import MultiByteCharSetProber\nfrom .codingstatemachine import CodingStateMachine\nfrom .chardistribution import EUCJPDistributionAnalysis\nfrom .jpcntx import EUCJPContextAnalysis\nfrom .mbcssm import EUCJPSMModel\n\n\nclass EUCJPProber(MultiByteCharSetProber):\n def __init__(self):\n MultiByteCharSetProber.__init__(self)\n self._mCodingSM = CodingStateMachine(EUCJPSMModel)\n self._mDistributionAnalyzer = EUCJPDistributionAnalysis()\n self._mContextAnalyzer = EUCJPContextAnalysis()\n self.reset()\n\n def reset(self):\n MultiByteCharSetProber.reset(self)\n self._mContextAnalyzer.reset()\n\n def get_charset_name(self):\n return \"EUC-JP\"\n\n def feed(self, aBuf):\n aLen = len(aBuf)\n for i in range(0, aLen):\n # PY3K: aBuf is a byte array, so aBuf[i] is an int, not a byte\n codingState = self._mCodingSM.next_state(aBuf[i])\n if codingState == constants.eError:\n if constants._debug:\n sys.stderr.write(self.get_charset_name()\n + ' prober hit error at byte ' + str(i)\n + '\\n')\n self._mState = constants.eNotMe\n break\n elif codingState == constants.eItsMe:\n self._mState = constants.eFoundIt\n break\n elif codingState == constants.eStart:\n charLen = self._mCodingSM.get_current_charlen()\n if i == 0:\n self._mLastChar[1] = aBuf[0]\n self._mContextAnalyzer.feed(self._mLastChar, charLen)\n self._mDistributionAnalyzer.feed(self._mLastChar, charLen)\n else:\n self._mContextAnalyzer.feed(aBuf[i - 1:i + 1], charLen)\n self._mDistributionAnalyzer.feed(aBuf[i - 1:i + 1],\n charLen)\n\n self._mLastChar[0] = aBuf[aLen - 1]\n\n if self.get_state() == constants.eDetecting:\n if (self._mContextAnalyzer.got_enough_data() and\n (self.get_confidence() > constants.SHORTCUT_THRESHOLD)):\n self._mState = constants.eFoundIt\n\n return self.get_state()\n\n def get_confidence(self):\n contxtCf = self._mContextAnalyzer.get_confidence()\n distribCf = self._mDistributionAnalyzer.get_confidence()\n return max(contxtCf, distribCf)\n"},{"col":4,"comment":"\n Get a connection. Will return a pooled connection if one is available.\n\n If no connections are available and :prop:`.block` is ``False``, then a\n fresh connection is returned.\n\n :param timeout:\n Seconds to wait before giving up and raising\n :class:`urllib3.exceptions.EmptyPoolError` if the pool is empty and\n :prop:`.block` is ``True``.\n ","endLoc":217,"header":"def _get_conn(self, timeout=None)","id":935,"name":"_get_conn","nodeType":"Function","startLoc":186,"text":"def _get_conn(self, timeout=None):\n \"\"\"\n Get a connection. Will return a pooled connection if one is available.\n\n If no connections are available and :prop:`.block` is ``False``, then a\n fresh connection is returned.\n\n :param timeout:\n Seconds to wait before giving up and raising\n :class:`urllib3.exceptions.EmptyPoolError` if the pool is empty and\n :prop:`.block` is ``True``.\n \"\"\"\n conn = None\n try:\n conn = self.pool.get(block=self.block, timeout=timeout)\n\n except AttributeError: # self.pool is None\n raise ClosedPoolError(self, \"Pool is closed.\")\n\n except Empty:\n if self.block:\n raise EmptyPoolError(self,\n \"Pool reached maximum size and no more \"\n \"connections are allowed.\")\n pass # Oh well, we'll create a new connection then\n\n # If this is a persistent connection, check if it got disconnected\n if conn and is_connection_dropped(conn):\n log.info(\"Resetting dropped connection: %s\" % self.host)\n conn.close()\n\n return conn or self._new_conn()"},{"col":4,"comment":"null","endLoc":285,"header":"@property\n def closed(self)","id":936,"name":"closed","nodeType":"Function","startLoc":276,"text":"@property\n def closed(self):\n if self._fp is None:\n return True\n elif hasattr(self._fp, 'closed'):\n return self._fp.closed\n elif hasattr(self._fp, 'isclosed'): # Python 2\n return self._fp.isclosed()\n else:\n return True"},{"className":"EUCJPDistributionAnalysis","col":0,"comment":"null","endLoc":231,"id":937,"nodeType":"Class","startLoc":215,"text":"class EUCJPDistributionAnalysis(CharDistributionAnalysis):\n def __init__(self):\n CharDistributionAnalysis.__init__(self)\n self._mCharToFreqOrder = JISCharToFreqOrder\n self._mTableSize = JIS_TABLE_SIZE\n self._mTypicalDistributionRatio = JIS_TYPICAL_DISTRIBUTION_RATIO\n\n def get_order(self, aBuf):\n # for euc-JP encoding, we are interested\n # first byte range: 0xa0 -- 0xfe\n # second byte range: 0xa1 -- 0xfe\n # no validation needed here. State machine has done that\n char = wrap_ord(aBuf[0])\n if char >= 0xA0:\n return 94 * (char - 0xA1) + wrap_ord(aBuf[1]) - 0xa1\n else:\n return -1"},{"col":4,"comment":"null","endLoc":220,"header":"def __init__(self)","id":938,"name":"__init__","nodeType":"Function","startLoc":216,"text":"def __init__(self):\n CharDistributionAnalysis.__init__(self)\n self._mCharToFreqOrder = JISCharToFreqOrder\n self._mTableSize = JIS_TABLE_SIZE\n self._mTypicalDistributionRatio = JIS_TYPICAL_DISTRIBUTION_RATIO"},{"col":4,"comment":"Dict-like keys() that returns a list of names of cookies from the jar.\n See values() and items().","endLoc":196,"header":"def keys(self)","id":939,"name":"keys","nodeType":"Function","startLoc":190,"text":"def keys(self):\n \"\"\"Dict-like keys() that returns a list of names of cookies from the jar.\n See values() and items().\"\"\"\n keys = []\n for cookie in iter(self):\n keys.append(cookie.name)\n return keys"},{"col":4,"comment":"\n Similar to :func:`urllib3.connectionpool.connection_from_url` but\n doesn't pass any additional parameters to the\n :class:`urllib3.connectionpool.ConnectionPool` constructor.\n\n Additional parameters are taken from the :class:`.PoolManager`\n constructor.\n ","endLoc":133,"header":"def connection_from_url(self, url)","id":940,"name":"connection_from_url","nodeType":"Function","startLoc":123,"text":"def connection_from_url(self, url):\n \"\"\"\n Similar to :func:`urllib3.connectionpool.connection_from_url` but\n doesn't pass any additional parameters to the\n :class:`urllib3.connectionpool.ConnectionPool` constructor.\n\n Additional parameters are taken from the :class:`.PoolManager`\n constructor.\n \"\"\"\n u = parse_url(url)\n return self.connection_from_host(u.host, port=u.port, scheme=u.scheme)"},{"col":4,"comment":"null","endLoc":231,"header":"def get_order(self, aBuf)","id":942,"name":"get_order","nodeType":"Function","startLoc":222,"text":"def get_order(self, aBuf):\n # for euc-JP encoding, we are interested\n # first byte range: 0xa0 -- 0xfe\n # second byte range: 0xa1 -- 0xfe\n # no validation needed here. State machine has done that\n char = wrap_ord(aBuf[0])\n if char >= 0xA0:\n return 94 * (char - 0xA1) + wrap_ord(aBuf[1]) - 0xa1\n else:\n return -1"},{"col":4,"comment":"null","endLoc":294,"header":"def fileno(self)","id":943,"name":"fileno","nodeType":"Function","startLoc":287,"text":"def fileno(self):\n if self._fp is None:\n raise IOError(\"HTTPResponse has no file to get a fileno from\")\n elif hasattr(self._fp, \"fileno\"):\n return self._fp.fileno()\n else:\n raise IOError(\"The file-like object this HTTPResponse is wrapped \"\n \"around has no file descriptor\")"},{"col":4,"comment":"Dict-like values() that returns a list of values of cookies from the jar.\n See keys() and items().","endLoc":204,"header":"def values(self)","id":944,"name":"values","nodeType":"Function","startLoc":198,"text":"def values(self):\n \"\"\"Dict-like values() that returns a list of values of cookies from the jar.\n See keys() and items().\"\"\"\n values = []\n for cookie in iter(self):\n values.append(cookie.value)\n return values"},{"attributeType":"TextIO","col":28,"comment":"null","endLoc":31,"id":945,"name":"f","nodeType":"Attribute","startLoc":31,"text":"f"},{"col":4,"comment":"\n Same as :meth:`urllib3.connectionpool.HTTPConnectionPool.urlopen`\n with custom cross-host redirect logic and only sends the request-uri\n portion of the ``url``.\n\n The given ``url`` parameter must be absolute, such that an appropriate\n :class:`urllib3.connectionpool.ConnectionPool` can be chosen for it.\n ","endLoc":171,"header":"def urlopen(self, method, url, redirect=True, **kw)","id":946,"name":"urlopen","nodeType":"Function","startLoc":135,"text":"def urlopen(self, method, url, redirect=True, **kw):\n \"\"\"\n Same as :meth:`urllib3.connectionpool.HTTPConnectionPool.urlopen`\n with custom cross-host redirect logic and only sends the request-uri\n portion of the ``url``.\n\n The given ``url`` parameter must be absolute, such that an appropriate\n :class:`urllib3.connectionpool.ConnectionPool` can be chosen for it.\n \"\"\"\n u = parse_url(url)\n conn = self.connection_from_host(u.host, port=u.port, scheme=u.scheme)\n\n kw['assert_same_host'] = False\n kw['redirect'] = False\n if 'headers' not in kw:\n kw['headers'] = self.headers\n\n if self.proxy is not None and u.scheme == \"http\":\n response = conn.urlopen(method, url, **kw)\n else:\n response = conn.urlopen(method, u.request_uri, **kw)\n\n redirect_location = redirect and response.get_redirect_location()\n if not redirect_location:\n return response\n\n # Support relative URLs for redirecting.\n redirect_location = urljoin(url, redirect_location)\n\n # RFC 2616, Section 10.3.4\n if response.status == 303:\n method = 'GET'\n\n log.info(\"Redirecting %s -> %s\" % (url, redirect_location))\n kw['retries'] = kw.get('retries', 3) - 1 # Persist retries countdown\n kw['redirect'] = redirect\n return self.urlopen(method, redirect_location, **kw)"},{"col":4,"comment":"\n Put a connection back into the pool.\n\n :param conn:\n Connection object for the current host and port as returned by\n :meth:`._new_conn` or :meth:`._get_conn`.\n\n If the pool is already full, the connection is closed and discarded\n because we exceeded maxsize. If connections are discarded frequently,\n then maxsize should be increased.\n\n If the pool is closed, then the connection will be closed and discarded.\n ","endLoc":246,"header":"def _put_conn(self, conn)","id":947,"name":"_put_conn","nodeType":"Function","startLoc":219,"text":"def _put_conn(self, conn):\n \"\"\"\n Put a connection back into the pool.\n\n :param conn:\n Connection object for the current host and port as returned by\n :meth:`._new_conn` or :meth:`._get_conn`.\n\n If the pool is already full, the connection is closed and discarded\n because we exceeded maxsize. If connections are discarded frequently,\n then maxsize should be increased.\n\n If the pool is closed, then the connection will be closed and discarded.\n \"\"\"\n try:\n self.pool.put(conn, block=False)\n return # Everything is dandy, done.\n except AttributeError:\n # self.pool is None.\n pass\n except Full:\n # This should never happen if self.block == True\n log.warning(\"HttpConnectionPool is full, discarding connection: %s\"\n % self.host)\n\n # Connection never got put back into the pool, close it.\n if conn:\n conn.close()"},{"col":4,"comment":" Helper that always returns a :class:`urllib3.util.Timeout` ","endLoc":258,"header":"def _get_timeout(self, timeout)","id":948,"name":"_get_timeout","nodeType":"Function","startLoc":248,"text":"def _get_timeout(self, timeout):\n \"\"\" Helper that always returns a :class:`urllib3.util.Timeout` \"\"\"\n if timeout is _Default:\n return self.timeout.clone()\n\n if isinstance(timeout, Timeout):\n return timeout.clone()\n else:\n # User passed us an int/float. This is for backwards compatibility,\n # can be removed later\n return Timeout.from_float(timeout)"},{"attributeType":"null","col":8,"comment":"null","endLoc":220,"id":949,"name":"_mTypicalDistributionRatio","nodeType":"Attribute","startLoc":220,"text":"self._mTypicalDistributionRatio"},{"col":4,"comment":"Dict-like items() that returns a list of name-value tuples from the jar.\n See keys() and values(). Allows client-code to call \"dict(RequestsCookieJar)\n and get a vanilla python dict of key value pairs.","endLoc":213,"header":"def items(self)","id":950,"name":"items","nodeType":"Function","startLoc":206,"text":"def items(self):\n \"\"\"Dict-like items() that returns a list of name-value tuples from the jar.\n See keys() and values(). Allows client-code to call \"dict(RequestsCookieJar)\n and get a vanilla python dict of key value pairs.\"\"\"\n items = []\n for cookie in iter(self):\n items.append((cookie.name, cookie.value))\n return items"},{"attributeType":"str","col":4,"comment":"null","endLoc":32,"id":951,"name":"history","nodeType":"Attribute","startLoc":32,"text":"history"},{"col":4,"comment":"\n Perform a request on a given httplib connection object taken from our\n pool.\n\n :param conn:\n a connection from one of our connection pools\n\n :param timeout:\n Socket timeout in seconds for the request. This can be a\n float or integer, which will set the same timeout value for\n the socket connect and the socket read, or an instance of\n :class:`urllib3.util.Timeout`, which gives you more fine-grained\n control over your timeouts.\n ","endLoc":345,"header":"def _make_request(self, conn, method, url, timeout=_Default,\n **httplib_request_kw)","id":952,"name":"_make_request","nodeType":"Function","startLoc":260,"text":"def _make_request(self, conn, method, url, timeout=_Default,\n **httplib_request_kw):\n \"\"\"\n Perform a request on a given httplib connection object taken from our\n pool.\n\n :param conn:\n a connection from one of our connection pools\n\n :param timeout:\n Socket timeout in seconds for the request. This can be a\n float or integer, which will set the same timeout value for\n the socket connect and the socket read, or an instance of\n :class:`urllib3.util.Timeout`, which gives you more fine-grained\n control over your timeouts.\n \"\"\"\n self.num_requests += 1\n\n timeout_obj = self._get_timeout(timeout)\n\n try:\n timeout_obj.start_connect()\n conn.timeout = timeout_obj.connect_timeout\n # conn.request() calls httplib.*.request, not the method in\n # urllib3.request. It also calls makefile (recv) on the socket.\n conn.request(method, url, **httplib_request_kw)\n except SocketTimeout:\n raise ConnectTimeoutError(\n self, \"Connection to %s timed out. (connect timeout=%s)\" %\n (self.host, timeout_obj.connect_timeout))\n\n # Reset the timeout for the recv() on the socket\n read_timeout = timeout_obj.read_timeout\n\n # App Engine doesn't have a sock attr\n if hasattr(conn, 'sock'):\n # In Python 3 socket.py will catch EAGAIN and return None when you\n # try and read into the file pointer created by http.client, which\n # instead raises a BadStatusLine exception. Instead of catching\n # the exception and assuming all BadStatusLine exceptions are read\n # timeouts, check for a zero timeout before making the request.\n if read_timeout == 0:\n raise ReadTimeoutError(\n self, url,\n \"Read timed out. (read timeout=%s)\" % read_timeout)\n if read_timeout is Timeout.DEFAULT_TIMEOUT:\n conn.sock.settimeout(socket.getdefaulttimeout())\n else: # None or a value\n conn.sock.settimeout(read_timeout)\n\n # Receive the response from the server\n try:\n try: # Python 2.7+, use buffering of HTTP responses\n httplib_response = conn.getresponse(buffering=True)\n except TypeError: # Python 2.6 and older\n httplib_response = conn.getresponse()\n except SocketTimeout:\n raise ReadTimeoutError(\n self, url, \"Read timed out. (read timeout=%s)\" % read_timeout)\n\n except BaseSSLError as e:\n # Catch possible read timeouts thrown as SSL errors. If not the\n # case, rethrow the original. We need to do this because of:\n # http://bugs.python.org/issue10272\n if 'timed out' in str(e) or \\\n 'did not complete (read)' in str(e): # Python 2.6\n raise ReadTimeoutError(self, url, \"Read timed out.\")\n\n raise\n\n except SocketError as e: # Platform-specific: Python 2\n # See the above comment about EAGAIN in Python 3. In Python 2 we\n # have to specifically catch it and throw the timeout error\n if e.errno in _blocking_errnos:\n raise ReadTimeoutError(\n self, url,\n \"Read timed out. (read timeout=%s)\" % read_timeout)\n\n raise\n\n # AppEngine doesn't have a version attr.\n http_version = getattr(conn, '_http_vsn_str', 'HTTP/?')\n log.debug(\"\\\"%s %s %s\\\" %s %s\" % (method, url, http_version,\n httplib_response.status,\n httplib_response.length))\n return httplib_response"},{"col":4,"comment":"Utility method to list all the domains in the jar.","endLoc":221,"header":"def list_domains(self)","id":953,"name":"list_domains","nodeType":"Function","startLoc":215,"text":"def list_domains(self):\n \"\"\"Utility method to list all the domains in the jar.\"\"\"\n domains = []\n for cookie in iter(self):\n if cookie.domain not in domains:\n domains.append(cookie.domain)\n return domains"},{"attributeType":"TextIO","col":24,"comment":"null","endLoc":33,"id":954,"name":"f","nodeType":"Attribute","startLoc":33,"text":"f"},{"attributeType":"null","col":4,"comment":"null","endLoc":63,"id":955,"name":"proxy","nodeType":"Attribute","startLoc":63,"text":"proxy"},{"attributeType":"null","col":8,"comment":"null","endLoc":68,"id":956,"name":"pools","nodeType":"Attribute","startLoc":68,"text":"self.pools"},{"attributeType":"dict","col":8,"comment":"null","endLoc":67,"id":957,"name":"connection_pool_kw","nodeType":"Attribute","startLoc":67,"text":"self.connection_pool_kw"},{"col":0,"comment":"null","endLoc":259,"header":"def proxy_from_url(url, **kw)","id":958,"name":"proxy_from_url","nodeType":"Function","startLoc":258,"text":"def proxy_from_url(url, **kw):\n return ProxyManager(proxy_url=url, **kw)"},{"col":4,"comment":"Utility method to list all the paths in the jar.","endLoc":229,"header":"def list_paths(self)","id":959,"name":"list_paths","nodeType":"Function","startLoc":223,"text":"def list_paths(self):\n \"\"\"Utility method to list all the paths in the jar.\"\"\"\n paths = []\n for cookie in iter(self):\n if cookie.path not in paths:\n paths.append(cookie.path)\n return paths"},{"attributeType":"str","col":4,"comment":"null","endLoc":34,"id":960,"name":"license","nodeType":"Attribute","startLoc":34,"text":"license"},{"attributeType":"null","col":8,"comment":"null","endLoc":44,"id":961,"name":"password","nodeType":"Attribute","startLoc":44,"text":"self.password"},{"col":0,"comment":"","endLoc":3,"header":"setup.py#","id":962,"name":"","nodeType":"Function","startLoc":3,"text":"try:\n from setuptools import setup\nexcept ImportError:\n from distutils.core import setup\n\nif sys.argv[-1] == 'publish':\n os.system('python setup.py sdist upload')\n sys.exit()\n\npackages = [\n 'requests',\n 'requests.packages',\n 'requests.packages.charade',\n 'requests.packages.urllib3',\n 'requests.packages.urllib3.packages',\n 'requests.packages.urllib3.contrib',\n 'requests.packages.urllib3.packages.ssl_match_hostname'\n]\n\nrequires = []\n\nwith open('README.rst') as f:\n readme = f.read()\n\nwith open('HISTORY.rst') as f:\n history = f.read()\n\nwith open('LICENSE') as f:\n license = f.read()\n\nsetup(\n name='requests',\n version=requests.__version__,\n description='Python HTTP for Humans.',\n long_description=readme + '\\n\\n' + history,\n author='Kenneth Reitz',\n author_email='me@kennethreitz.com',\n url='http://python-requests.org',\n packages=packages,\n package_data={'': ['LICENSE', 'NOTICE'], 'requests': ['*.pem']},\n package_dir={'requests': 'requests'},\n include_package_data=True,\n install_requires=requires,\n license=license,\n zip_safe=False,\n classifiers=(\n 'Development Status :: 5 - Production/Stable',\n 'Intended Audience :: Developers',\n 'Natural Language :: English',\n 'License :: OSI Approved :: Apache Software License',\n 'Programming Language :: Python',\n 'Programming Language :: Python :: 2.6',\n 'Programming Language :: Python :: 2.7',\n 'Programming Language :: Python :: 3',\n 'Programming Language :: Python :: 3.3',\n\n ),\n)"},{"col":4,"comment":"Returns True if there are multiple domains in the jar.\n Returns False otherwise.","endLoc":239,"header":"def multiple_domains(self)","id":964,"name":"multiple_domains","nodeType":"Function","startLoc":231,"text":"def multiple_domains(self):\n \"\"\"Returns True if there are multiple domains in the jar.\n Returns False otherwise.\"\"\"\n domains = []\n for cookie in iter(self):\n if cookie.domain is not None and cookie.domain in domains:\n return True\n domains.append(cookie.domain)\n return False # there is only one domain in jar"},{"col":4,"comment":"null","endLoc":298,"header":"def flush(self)","id":965,"name":"flush","nodeType":"Function","startLoc":296,"text":"def flush(self):\n if self._fp is not None and hasattr(self._fp, 'flush'):\n return self._fp.flush()"},{"col":4,"comment":"Takes as an argument an optional domain and path and returns a plain old\n Python dict of name-value pairs of cookies that meet the requirements.","endLoc":249,"header":"def get_dict(self, domain=None, path=None)","id":966,"name":"get_dict","nodeType":"Function","startLoc":241,"text":"def get_dict(self, domain=None, path=None):\n \"\"\"Takes as an argument an optional domain and path and returns a plain old\n Python dict of name-value pairs of cookies that meet the requirements.\"\"\"\n dictionary = {}\n for cookie in iter(self):\n if (domain is None or cookie.domain == domain) and (path is None\n or cookie.path == path):\n dictionary[cookie.name] = cookie.value\n return dictionary"},{"col":4,"comment":"null","endLoc":218,"header":"def __init__(self, proxy_url, num_pools=10, headers=None,\n proxy_headers=None, **connection_pool_kw)","id":967,"name":"__init__","nodeType":"Function","startLoc":201,"text":"def __init__(self, proxy_url, num_pools=10, headers=None,\n proxy_headers=None, **connection_pool_kw):\n\n if isinstance(proxy_url, HTTPConnectionPool):\n proxy_url = '%s://%s:%i' % (proxy_url.scheme, proxy_url.host,\n proxy_url.port)\n proxy = parse_url(proxy_url)\n if not proxy.port:\n port = port_by_scheme.get(proxy.scheme, 80)\n proxy = proxy._replace(port=port)\n self.proxy = proxy\n self.proxy_headers = proxy_headers or {}\n assert self.proxy.scheme in (\"http\", \"https\"), \\\n 'Not supported proxy scheme %s' % self.proxy.scheme\n connection_pool_kw['_proxy'] = self.proxy\n connection_pool_kw['_proxy_headers'] = self.proxy_headers\n super(ProxyManager, self).__init__(\n num_pools, headers, **connection_pool_kw)"},{"col":4,"comment":"Dict-like __getitem__() for compatibility with client code. Throws exception\n if there are more than one cookie with name. In that case, use the more\n explicit get() method instead. Caution: operation is O(n), not O(1).","endLoc":256,"header":"def __getitem__(self, name)","id":968,"name":"__getitem__","nodeType":"Function","startLoc":251,"text":"def __getitem__(self, name):\n \"\"\"Dict-like __getitem__() for compatibility with client code. Throws exception\n if there are more than one cookie with name. In that case, use the more\n explicit get() method instead. Caution: operation is O(n), not O(1).\"\"\"\n\n return self._find_no_duplicates(name)"},{"col":4,"comment":"Dict-like __setitem__ for compatibility with client code. Throws exception\n if there is already a cookie of that name in the jar. In that case, use the more\n explicit set() method instead.","endLoc":263,"header":"def __setitem__(self, name, value)","id":969,"name":"__setitem__","nodeType":"Function","startLoc":258,"text":"def __setitem__(self, name, value):\n \"\"\"Dict-like __setitem__ for compatibility with client code. Throws exception\n if there is already a cookie of that name in the jar. In that case, use the more\n explicit set() method instead.\"\"\"\n\n self.set(name, value)"},{"col":4,"comment":"Deletes a cookie given a name. Wraps cookielib.CookieJar's remove_cookie_by_name().","endLoc":267,"header":"def __delitem__(self, name)","id":970,"name":"__delitem__","nodeType":"Function","startLoc":265,"text":"def __delitem__(self, name):\n \"\"\"Deletes a cookie given a name. Wraps cookielib.CookieJar's remove_cookie_by_name().\"\"\"\n remove_cookie_by_name(self, name)"},{"col":4,"comment":"Updates this jar with cookies from another CookieJar or dict-like","endLoc":280,"header":"def update(self, other)","id":971,"name":"update","nodeType":"Function","startLoc":274,"text":"def update(self, other):\n \"\"\"Updates this jar with cookies from another CookieJar or dict-like\"\"\"\n if isinstance(other, cookielib.CookieJar):\n for cookie in other:\n self.set_cookie(cookie)\n else:\n super(RequestsCookieJar, self).update(other)"},{"col":4,"comment":"null","endLoc":58,"header":"def get_charset_name(self)","id":972,"name":"get_charset_name","nodeType":"Function","startLoc":57,"text":"def get_charset_name(self):\n return self._mDetectedCharset"},{"col":4,"comment":"null","endLoc":64,"header":"def get_confidence(self)","id":973,"name":"get_confidence","nodeType":"Function","startLoc":60,"text":"def get_confidence(self):\n if self._mDetectedCharset:\n return 0.99\n else:\n return 0.00"},{"col":4,"comment":"null","endLoc":86,"header":"def feed(self, aBuf)","id":974,"name":"feed","nodeType":"Function","startLoc":66,"text":"def feed(self, aBuf):\n for c in aBuf:\n # PY3K: aBuf is a byte array, so c is an int, not a byte\n for codingSM in self._mCodingSM:\n if not codingSM:\n continue\n if not codingSM.active:\n continue\n codingState = codingSM.next_state(wrap_ord(c))\n if codingState == constants.eError:\n codingSM.active = False\n self._mActiveSM -= 1\n if self._mActiveSM <= 0:\n self._mState = constants.eNotMe\n return self.get_state()\n elif codingState == constants.eItsMe:\n self._mState = constants.eFoundIt\n self._mDetectedCharset = codingSM.get_coding_state_machine() # nopep8\n return self.get_state()\n\n return self.get_state()"},{"attributeType":"null","col":4,"comment":"null","endLoc":114,"id":975,"name":"basestring","nodeType":"Attribute","startLoc":114,"text":"basestring"},{"attributeType":"null","col":8,"comment":"null","endLoc":43,"id":976,"name":"username","nodeType":"Attribute","startLoc":43,"text":"self.username"},{"col":4,"comment":"null","endLoc":301,"header":"def readable(self)","id":977,"name":"readable","nodeType":"Function","startLoc":300,"text":"def readable(self):\n return True"},{"attributeType":"list","col":4,"comment":"null","endLoc":76,"id":978,"name":"CONTENT_DECODERS","nodeType":"Attribute","startLoc":76,"text":"CONTENT_DECODERS"},{"attributeType":"list","col":4,"comment":"null","endLoc":77,"id":981,"name":"REDIRECT_STATUSES","nodeType":"Attribute","startLoc":77,"text":"REDIRECT_STATUSES"},{"attributeType":"TypedDict","col":8,"comment":"null","endLoc":82,"id":982,"name":"headers","nodeType":"Attribute","startLoc":82,"text":"self.headers"},{"attributeType":"null","col":8,"comment":"null","endLoc":85,"id":983,"name":"reason","nodeType":"Attribute","startLoc":85,"text":"self.reason"},{"attributeType":"null","col":4,"comment":"null","endLoc":98,"id":984,"name":"basestring","nodeType":"Attribute","startLoc":98,"text":"basestring"},{"attributeType":"null","col":8,"comment":"null","endLoc":94,"id":986,"name":"_pool","nodeType":"Attribute","startLoc":94,"text":"self._pool"},{"attributeType":"str","col":12,"comment":"null","endLoc":98,"id":987,"name":"_fp","nodeType":"Attribute","startLoc":98,"text":"self._fp"},{"attributeType":"None","col":12,"comment":"null","endLoc":101,"id":988,"name":"_body","nodeType":"Attribute","startLoc":101,"text":"self._body"},{"fileName":"euckrprober.py","filePath":"requests/packages/charade","id":989,"nodeType":"File","text":"######################## BEGIN LICENSE BLOCK ########################\n# The Original Code is mozilla.org code.\n#\n# The Initial Developer of the Original Code is\n# Netscape Communications Corporation.\n# Portions created by the Initial Developer are Copyright (C) 1998\n# the Initial Developer. All Rights Reserved.\n#\n# Contributor(s):\n# Mark Pilgrim - port to Python\n#\n# This library is free software; you can redistribute it and/or\n# modify it under the terms of the GNU Lesser General Public\n# License as published by the Free Software Foundation; either\n# version 2.1 of the License, or (at your option) any later version.\n#\n# This library is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n# Lesser General Public License for more details.\n#\n# You should have received a copy of the GNU Lesser General Public\n# License along with this library; if not, write to the Free Software\n# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n# 02110-1301 USA\n######################### END LICENSE BLOCK #########################\n\nfrom .mbcharsetprober import MultiByteCharSetProber\nfrom .codingstatemachine import CodingStateMachine\nfrom .chardistribution import EUCKRDistributionAnalysis\nfrom .mbcssm import EUCKRSMModel\n\n\nclass EUCKRProber(MultiByteCharSetProber):\n def __init__(self):\n MultiByteCharSetProber.__init__(self)\n self._mCodingSM = CodingStateMachine(EUCKRSMModel)\n self._mDistributionAnalyzer = EUCKRDistributionAnalysis()\n self.reset()\n\n def get_charset_name(self):\n return \"EUC-KR\"\n"},{"col":0,"comment":"Produce an appropriate Cookie header string to be sent with `request`, or None.","endLoc":124,"header":"def get_cookie_header(jar, request)","id":990,"name":"get_cookie_header","nodeType":"Function","startLoc":120,"text":"def get_cookie_header(jar, request):\n \"\"\"Produce an appropriate Cookie header string to be sent with `request`, or None.\"\"\"\n r = MockRequest(request)\n jar.add_cookie_header(r)\n return r.get_new_headers().get('Cookie')"},{"className":"EUCKRDistributionAnalysis","col":0,"comment":"null","endLoc":146,"id":991,"nodeType":"Class","startLoc":130,"text":"class EUCKRDistributionAnalysis(CharDistributionAnalysis):\n def __init__(self):\n CharDistributionAnalysis.__init__(self)\n self._mCharToFreqOrder = EUCKRCharToFreqOrder\n self._mTableSize = EUCKR_TABLE_SIZE\n self._mTypicalDistributionRatio = EUCKR_TYPICAL_DISTRIBUTION_RATIO\n\n def get_order(self, aBuf):\n # for euc-KR encoding, we are interested\n # first byte range: 0xb0 -- 0xfe\n # second byte range: 0xa1 -- 0xfe\n # no validation needed here. State machine has done that\n first_char = wrap_ord(aBuf[0])\n if first_char >= 0xB0:\n return 94 * (first_char - 0xB0) + wrap_ord(aBuf[1]) - 0xA1\n else:\n return -1"},{"col":4,"comment":"null","endLoc":135,"header":"def __init__(self)","id":992,"name":"__init__","nodeType":"Function","startLoc":131,"text":"def __init__(self):\n CharDistributionAnalysis.__init__(self)\n self._mCharToFreqOrder = EUCKRCharToFreqOrder\n self._mTableSize = EUCKR_TABLE_SIZE\n self._mTypicalDistributionRatio = EUCKR_TYPICAL_DISTRIBUTION_RATIO"},{"col":0,"comment":"null","endLoc":140,"header":"@overload\ndef urldefrag(url: str) -> DefragResult","id":993,"name":"urldefrag","nodeType":"Function","startLoc":139,"text":"@overload\ndef urldefrag(url: str) -> DefragResult: ..."},{"col":0,"comment":"null","endLoc":142,"header":"@overload\ndef urldefrag(url: bytes | bytearray | None) -> DefragResultBytes","id":994,"name":"urldefrag","nodeType":"Function","startLoc":141,"text":"@overload\ndef urldefrag(url: bytes | bytearray | None) -> DefragResultBytes: ..."},{"attributeType":"None","col":8,"comment":"null","endLoc":89,"id":995,"name":"_decoder","nodeType":"Attribute","startLoc":89,"text":"self._decoder"},{"attributeType":"int","col":8,"comment":"null","endLoc":86,"id":996,"name":"strict","nodeType":"Attribute","startLoc":86,"text":"self.strict"},{"col":4,"comment":"Requests uses this method internally to get cookie values. Takes as args name\n and optional domain and path. Returns a cookie.value. If there are conflicting cookies,\n _find arbitrarily chooses one. See _find_no_duplicates if you want an exception thrown\n if there are conflicting cookies.","endLoc":293,"header":"def _find(self, name, domain=None, path=None)","id":997,"name":"_find","nodeType":"Function","startLoc":282,"text":"def _find(self, name, domain=None, path=None):\n \"\"\"Requests uses this method internally to get cookie values. Takes as args name\n and optional domain and path. Returns a cookie.value. If there are conflicting cookies,\n _find arbitrarily chooses one. See _find_no_duplicates if you want an exception thrown\n if there are conflicting cookies.\"\"\"\n for cookie in iter(self):\n if cookie.name == name:\n if domain is None or cookie.domain == domain:\n if path is None or cookie.path == path:\n return cookie.value\n\n raise KeyError('name=%r, domain=%r, path=%r' % (name, domain, path))"},{"col":4,"comment":"null","endLoc":132,"header":"def unquote(string: str | bytes, encoding: str = \"utf-8\", errors: str = \"replace\") -> str","id":998,"name":"unquote","nodeType":"Function","startLoc":132,"text":"def unquote(string: str | bytes, encoding: str = \"utf-8\", errors: str = \"replace\") -> str: ..."},{"attributeType":"null","col":0,"comment":"null","endLoc":34,"id":999,"name":"DEFAULT_CA_BUNDLE_PATH","nodeType":"Attribute","startLoc":34,"text":"DEFAULT_CA_BUNDLE_PATH"},{"col":0,"comment":"Returns encodings from given HTTP Header Dict.\n\n :param headers: dictionary to extract encoding from.\n ","endLoc":306,"header":"def get_encoding_from_headers(headers)","id":1000,"name":"get_encoding_from_headers","nodeType":"Function","startLoc":289,"text":"def get_encoding_from_headers(headers):\n \"\"\"Returns encodings from given HTTP Header Dict.\n\n :param headers: dictionary to extract encoding from.\n \"\"\"\n\n content_type = headers.get('content-type')\n\n if not content_type:\n return None\n\n content_type, params = cgi.parse_header(content_type)\n\n if 'charset' in params:\n return params['charset'].strip(\"'\\\"\")\n\n if 'text' in content_type:\n return 'ISO-8859-1'"},{"attributeType":"null","col":8,"comment":"null","endLoc":92,"id":1001,"name":"_original_response","nodeType":"Attribute","startLoc":92,"text":"self._original_response"},{"attributeType":"int","col":8,"comment":"null","endLoc":84,"id":1002,"name":"version","nodeType":"Attribute","startLoc":84,"text":"self.version"},{"col":4,"comment":"Unlike a normal CookieJar, this class is pickleable.","endLoc":318,"header":"def __getstate__(self)","id":1003,"name":"__getstate__","nodeType":"Function","startLoc":313,"text":"def __getstate__(self):\n \"\"\"Unlike a normal CookieJar, this class is pickleable.\"\"\"\n state = self.__dict__.copy()\n # remove the unpickleable RLock object\n state.pop('_cookies_lock')\n return state"},{"col":4,"comment":"null","endLoc":146,"header":"def get_order(self, aBuf)","id":1004,"name":"get_order","nodeType":"Function","startLoc":137,"text":"def get_order(self, aBuf):\n # for euc-KR encoding, we are interested\n # first byte range: 0xb0 -- 0xfe\n # second byte range: 0xa1 -- 0xfe\n # no validation needed here. State machine has done that\n first_char = wrap_ord(aBuf[0])\n if first_char >= 0xB0:\n return 94 * (first_char - 0xB0) + wrap_ord(aBuf[1]) - 0xA1\n else:\n return -1"},{"attributeType":"int","col":8,"comment":"null","endLoc":83,"id":1005,"name":"status","nodeType":"Attribute","startLoc":83,"text":"self.status"},{"attributeType":"null","col":8,"comment":"null","endLoc":135,"id":1006,"name":"_mTypicalDistributionRatio","nodeType":"Attribute","startLoc":135,"text":"self._mTypicalDistributionRatio"},{"className":"RequestField","col":0,"comment":"\n A data container for request body parameters.\n\n :param name:\n The name of this request field.\n :param data:\n The data/value body.\n :param filename:\n An optional filename of the request field.\n :param headers:\n An optional dict-like object of headers to initially use for the field.\n ","endLoc":177,"id":1008,"nodeType":"Class","startLoc":55,"text":"class RequestField(object):\n \"\"\"\n A data container for request body parameters.\n\n :param name:\n The name of this request field.\n :param data:\n The data/value body.\n :param filename:\n An optional filename of the request field.\n :param headers:\n An optional dict-like object of headers to initially use for the field.\n \"\"\"\n def __init__(self, name, data, filename=None, headers=None):\n self._name = name\n self._filename = filename\n self.data = data\n self.headers = {}\n if headers:\n self.headers = dict(headers)\n\n @classmethod\n def from_tuples(cls, fieldname, value):\n \"\"\"\n A :class:`~urllib3.fields.RequestField` factory from old-style tuple parameters.\n\n Supports constructing :class:`~urllib3.fields.RequestField` from parameter\n of key/value strings AND key/filetuple. A filetuple is a (filename, data, MIME type)\n tuple where the MIME type is optional. For example: ::\n\n 'foo': 'bar',\n 'fakefile': ('foofile.txt', 'contents of foofile'),\n 'realfile': ('barfile.txt', open('realfile').read()),\n 'typedfile': ('bazfile.bin', open('bazfile').read(), 'image/jpeg'),\n 'nonamefile': 'contents of nonamefile field',\n\n Field names and filenames must be unicode.\n \"\"\"\n if isinstance(value, tuple):\n if len(value) == 3:\n filename, data, content_type = value\n else:\n filename, data = value\n content_type = guess_content_type(filename)\n else:\n filename = None\n content_type = None\n data = value\n\n request_param = cls(fieldname, data, filename=filename)\n request_param.make_multipart(content_type=content_type)\n\n return request_param\n\n def _render_part(self, name, value):\n \"\"\"\n Overridable helper function to format a single header parameter.\n\n :param name:\n The name of the parameter, a string expected to be ASCII only.\n :param value:\n The value of the parameter, provided as a unicode string.\n \"\"\"\n return format_header_param(name, value)\n\n def _render_parts(self, header_parts):\n \"\"\"\n Helper function to format and quote a single header.\n\n Useful for single headers that are composed of multiple items. E.g.,\n 'Content-Disposition' fields.\n\n :param header_parts:\n A sequence of (k, v) typles or a :class:`dict` of (k, v) to format as\n `k1=\"v1\"; k2=\"v2\"; ...`.\n \"\"\"\n parts = []\n iterable = header_parts\n if isinstance(header_parts, dict):\n iterable = header_parts.items()\n\n for name, value in iterable:\n if value:\n parts.append(self._render_part(name, value))\n\n return '; '.join(parts)\n\n def render_headers(self):\n \"\"\"\n Renders the headers for this request field.\n \"\"\"\n lines = []\n\n sort_keys = ['Content-Disposition', 'Content-Type', 'Content-Location']\n for sort_key in sort_keys:\n if self.headers.get(sort_key, False):\n lines.append('%s: %s' % (sort_key, self.headers[sort_key]))\n\n for header_name, header_value in self.headers.items():\n if header_name not in sort_keys:\n if header_value:\n lines.append('%s: %s' % (header_name, header_value))\n\n lines.append('\\r\\n')\n return '\\r\\n'.join(lines)\n\n def make_multipart(self, content_disposition=None, content_type=None, content_location=None):\n \"\"\"\n Makes this request field into a multipart request field.\n\n This method overrides \"Content-Disposition\", \"Content-Type\" and\n \"Content-Location\" headers to the request parameter.\n\n :param content_type:\n The 'Content-Type' of the request body.\n :param content_location:\n The 'Content-Location' of the request body.\n\n \"\"\"\n self.headers['Content-Disposition'] = content_disposition or 'form-data'\n self.headers['Content-Disposition'] += '; '.join(['', self._render_parts((('name', self._name), ('filename', self._filename)))])\n self.headers['Content-Type'] = content_type\n self.headers['Content-Location'] = content_location"},{"col":4,"comment":"\n Overridable helper function to format a single header parameter.\n\n :param name:\n The name of the parameter, a string expected to be ASCII only.\n :param value:\n The value of the parameter, provided as a unicode string.\n ","endLoc":118,"header":"def _render_part(self, name, value)","id":1009,"name":"_render_part","nodeType":"Function","startLoc":109,"text":"def _render_part(self, name, value):\n \"\"\"\n Overridable helper function to format a single header parameter.\n\n :param name:\n The name of the parameter, a string expected to be ASCII only.\n :param value:\n The value of the parameter, provided as a unicode string.\n \"\"\"\n return format_header_param(name, value)"},{"col":0,"comment":"\n Helper function to format and quote a single header parameter.\n\n Particularly useful for header parameters which might contain\n non-ASCII values, like file names. This follows RFC 2231, as\n suggested by RFC 2388 Section 4.4.\n\n :param name:\n The name of the parameter, a string expected to be ASCII only.\n :param value:\n The value of the parameter, provided as a unicode string.\n ","endLoc":52,"header":"def format_header_param(name, value)","id":1010,"name":"format_header_param","nodeType":"Function","startLoc":27,"text":"def format_header_param(name, value):\n \"\"\"\n Helper function to format and quote a single header parameter.\n\n Particularly useful for header parameters which might contain\n non-ASCII values, like file names. This follows RFC 2231, as\n suggested by RFC 2388 Section 4.4.\n\n :param name:\n The name of the parameter, a string expected to be ASCII only.\n :param value:\n The value of the parameter, provided as a unicode string.\n \"\"\"\n if not any(ch in value for ch in '\"\\\\\\r\\n'):\n result = '%s=\"%s\"' % (name, value)\n try:\n result.encode('ascii')\n except UnicodeEncodeError:\n pass\n else:\n return result\n if not six.PY3: # Python 2:\n value = value.encode('utf-8')\n value = email.utils.encode_rfc2231(value, 'utf-8')\n value = '%s*=%s' % (name, value)\n return value"},{"attributeType":"null","col":8,"comment":"null","endLoc":218,"id":1011,"name":"_mCharToFreqOrder","nodeType":"Attribute","startLoc":218,"text":"self._mCharToFreqOrder"},{"col":0,"comment":"Given a URL, raise a MissingSchema exception if the scheme is missing.\n ","endLoc":554,"header":"def except_on_missing_scheme(url)","id":1013,"name":"except_on_missing_scheme","nodeType":"Function","startLoc":548,"text":"def except_on_missing_scheme(url):\n \"\"\"Given a URL, raise a MissingSchema exception if the scheme is missing.\n \"\"\"\n scheme, netloc, path, params, query, fragment = urlparse(url)\n\n if not scheme:\n raise MissingSchema('Proxy URLs must have explicit schemes.')"},{"attributeType":"bool","col":8,"comment":"null","endLoc":87,"id":1014,"name":"decode_content","nodeType":"Attribute","startLoc":87,"text":"self.decode_content"},{"attributeType":"null","col":8,"comment":"null","endLoc":95,"id":1015,"name":"_connection","nodeType":"Attribute","startLoc":95,"text":"self._connection"},{"attributeType":"null","col":42,"comment":"null","endLoc":13,"id":1016,"name":"basestring","nodeType":"Attribute","startLoc":13,"text":"basestring"},{"attributeType":"null","col":8,"comment":"null","endLoc":219,"id":1017,"name":"_mTableSize","nodeType":"Attribute","startLoc":219,"text":"self._mTableSize"},{"attributeType":"Logger","col":0,"comment":"null","endLoc":17,"id":1018,"name":"log","nodeType":"Attribute","startLoc":17,"text":"log"},{"col":4,"comment":"Unlike a normal CookieJar, this class is pickleable.","endLoc":324,"header":"def __setstate__(self, state)","id":1027,"name":"__setstate__","nodeType":"Function","startLoc":320,"text":"def __setstate__(self, state):\n \"\"\"Unlike a normal CookieJar, this class is pickleable.\"\"\"\n self.__dict__.update(state)\n if '_cookies_lock' not in self.__dict__:\n self._cookies_lock = threading.RLock()"},{"col":0,"comment":"","endLoc":8,"header":"response.py#","id":1028,"name":"","nodeType":"Function","startLoc":8,"text":"log = logging.getLogger(__name__)"},{"col":0,"comment":"null","endLoc":499,"header":"def getLogger(name: str | None = None) -> Logger","id":1029,"name":"getLogger","nodeType":"Function","startLoc":499,"text":"def getLogger(name: str | None = None) -> Logger: ..."},{"attributeType":"list","col":8,"comment":"null","endLoc":39,"id":1030,"name":"_mCodingSM","nodeType":"Attribute","startLoc":39,"text":"self._mCodingSM"},{"attributeType":"int","col":8,"comment":"null","endLoc":54,"id":1031,"name":"_mActiveSM","nodeType":"Attribute","startLoc":54,"text":"self._mActiveSM"},{"col":0,"comment":"Given a url with authentication components, extract them into a tuple of\n username,password.","endLoc":564,"header":"def get_auth_from_url(url)","id":1032,"name":"get_auth_from_url","nodeType":"Function","startLoc":557,"text":"def get_auth_from_url(url):\n \"\"\"Given a url with authentication components, extract them into a tuple of\n username,password.\"\"\"\n if url:\n parsed = urlparse(url)\n return (parsed.username, parsed.password)\n else:\n return ('', '')"},{"attributeType":"None","col":8,"comment":"null","endLoc":55,"id":1033,"name":"_mDetectedCharset","nodeType":"Attribute","startLoc":55,"text":"self._mDetectedCharset"},{"id":1034,"name":"index.rst","nodeType":"TextFile","path":"docs","text":".. Requests documentation master file, created by\n sphinx-quickstart on Sun Feb 13 23:54:25 2011.\n You can adapt this file completely to your liking, but it should at least\n contain the root `toctree` directive.\n\nRequests: HTTP for Humans\n=========================\n\nRelease v\\ |version|. (:ref:`Installation `)\n\nRequests is an :ref:`Apache2 Licensed ` HTTP library, written in Python, for human beings.\n\nPython's standard **urllib2** module provides most of\nthe HTTP capabilities you need, but the API is thoroughly **broken**.\nIt was built for a different time — and a different web. It requires an *enormous* amount of work (even method overrides) to perform the simplest of tasks.\n\nThings shouldn’t be this way. Not in Python.\n\n::\n\n >>> r = requests.get('https://api.github.com/user', auth=('user', 'pass'))\n >>> r.status_code\n 200\n >>> r.headers['content-type']\n 'application/json; charset=utf8'\n >>> r.encoding\n 'utf-8'\n >>> r.text\n u'{\"type\":\"User\"...'\n >>> r.json()\n {u'private_gists': 419, u'total_private_repos': 77, ...}\n\nSee `similar code, without Requests `_.\n\nRequests takes all of the work out of Python HTTP/1.1 — making your integration with web services seamless. There's no need to manually add query strings to your URLs, or to form-encode your POST data. Keep-alive and HTTP connection pooling are 100% automatic, powered by `urllib3 `_, which is embedded within Requests.\n\n\nTestimonials\n------------\n\nHer Majesty's Government, Amazon, Google, Twilio, Runscope, Mozilla, Heroku, PayPal, NPR, Obama for America, Transifex, Native Instruments, The Washington Post, Twitter, SoundCloud, Kippt, Readability, and Federal US Institutions use Requests internally. It has been downloaded over 5,000,000 times from PyPI.\n\n**Armin Ronacher**\n Requests is the perfect example how beautiful an API can be with the\n right level of abstraction.\n\n**Matt DeBoard**\n I'm going to get @kennethreitz's Python requests module tattooed\n on my body, somehow. The whole thing.\n\n**Daniel Greenfeld**\n Nuked a 1200 LOC spaghetti code library with 10 lines of code thanks to\n @kennethreitz's request library. Today has been AWESOME.\n\n**Kenny Meyers**\n Python HTTP: When in doubt, or when not in doubt, use Requests. Beautiful,\n simple, Pythonic.\n\n\nFeature Support\n---------------\n\nRequests is ready for today's web.\n\n- International Domains and URLs\n- Keep-Alive & Connection Pooling\n- Sessions with Cookie Persistence\n- Browser-style SSL Verification\n- Basic/Digest Authentication\n- Elegant Key/Value Cookies\n- Automatic Decompression\n- Unicode Response Bodies\n- Multipart File Uploads\n- Connection Timeouts\n- ``.netrc`` support\n- Python 2.6—3.3\n- Thread-safe.\n\n\nUser Guide\n----------\n\nThis part of the documentation, which is mostly prose, begins with some\nbackground information about Requests, then focuses on step-by-step\ninstructions for getting the most out of Requests.\n\n.. toctree::\n :maxdepth: 2\n\n user/intro\n user/install\n user/quickstart\n user/advanced\n user/authentication\n\n\nCommunity Guide\n-----------------\n\nThis part of the documentation, which is mostly prose, details the\nRequests ecosystem and community.\n\n.. toctree::\n :maxdepth: 1\n\n community/faq\n community/out-there.rst\n community/support\n community/updates\n\nAPI Documentation\n-----------------\n\nIf you are looking for information on a specific function, class or method,\nthis part of the documentation is for you.\n\n.. toctree::\n :maxdepth: 2\n\n api\n\n\nContributor Guide\n-----------------\n\nIf you want to contribute to the project, this part of the documentation is for\nyou.\n\n.. toctree::\n :maxdepth: 1\n\n dev/philosophy\n dev/internals\n dev/todo\n dev/authors\n"},{"className":"ConnectionError","col":0,"comment":"A Connection error occurred.","endLoc":27,"id":1035,"nodeType":"Class","startLoc":26,"text":"class ConnectionError(RequestException):\n \"\"\"A Connection error occurred.\"\"\""},{"attributeType":"null","col":24,"comment":"null","endLoc":79,"id":1036,"name":"_mState","nodeType":"Attribute","startLoc":79,"text":"self._mState"},{"className":"RequestException","col":0,"comment":"There was an ambiguous exception that occurred while handling your\n request.","endLoc":14,"id":1037,"nodeType":"Class","startLoc":12,"text":"class RequestException(IOError):\n \"\"\"There was an ambiguous exception that occurred while handling your\n request.\"\"\""},{"className":"Timeout","col":0,"comment":"The request timed out.","endLoc":39,"id":1038,"nodeType":"Class","startLoc":38,"text":"class Timeout(RequestException):\n \"\"\"The request timed out.\"\"\""},{"className":"SSLError","col":0,"comment":"An SSL error occurred.","endLoc":35,"id":1039,"nodeType":"Class","startLoc":34,"text":"class SSLError(ConnectionError):\n \"\"\"An SSL error occurred.\"\"\""},{"className":"ProxyError","col":0,"comment":"A proxy error occurred.","endLoc":31,"id":1040,"nodeType":"Class","startLoc":30,"text":"class ProxyError(ConnectionError):\n \"\"\"A proxy error occurred.\"\"\""},{"className":"BaseAdapter","col":0,"comment":"The Base Transport Adapter","endLoc":45,"id":1041,"nodeType":"Class","startLoc":35,"text":"class BaseAdapter(object):\n \"\"\"The Base Transport Adapter\"\"\"\n\n def __init__(self):\n super(BaseAdapter, self).__init__()\n\n def send(self):\n raise NotImplementedError\n\n def close(self):\n raise NotImplementedError"},{"col":4,"comment":"null","endLoc":39,"header":"def __init__(self)","id":1042,"name":"__init__","nodeType":"Function","startLoc":38,"text":"def __init__(self):\n super(BaseAdapter, self).__init__()"},{"fileName":"conf.py","filePath":"docs","id":1043,"nodeType":"File","text":"# -*- coding: utf-8 -*-\n#\n# Requests documentation build configuration file, created by\n# sphinx-quickstart on Sun Feb 13 23:54:25 2011.\n#\n# This file is execfile()d with the current directory set to its containing dir.\n#\n# Note that not all possible configuration values are present in this\n# autogenerated file.\n#\n# All configuration values have a default; values that are commented out\n# serve to show the default.\n\nimport sys, os\n\n# If extensions (or modules to document with autodoc) are in another directory,\n# add these directories to sys.path here. If the directory is relative to the\n# documentation root, use os.path.abspath to make it absolute, like shown here.\nsys.path.insert(0, os.path.abspath('..'))\nimport requests\nfrom requests import __version__\n\n# -- General configuration -----------------------------------------------------\n\n# If your documentation needs a minimal Sphinx version, state it here.\n#needs_sphinx = '1.0'\n\n# Add any Sphinx extension module names here, as strings. They can be extensions\n# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.\nextensions = ['sphinx.ext.autodoc']\n\n# Add any paths that contain templates here, relative to this directory.\ntemplates_path = ['_templates']\n\n# The suffix of source filenames.\nsource_suffix = '.rst'\n\n# The encoding of source files.\n#source_encoding = 'utf-8-sig'\n\n# The master toctree document.\nmaster_doc = 'index'\n\n# General information about the project.\nproject = u'Requests'\ncopyright = u'2013. A Kenneth Reitz Project'\n\n# The version info for the project you're documenting, acts as replacement for\n# |version| and |release|, also used in various other places throughout the\n# built documents.\n#\n# The short X.Y version.\nversion = __version__\n# The full version, including alpha/beta/rc tags.\nrelease = version\n\n# The language for content autogenerated by Sphinx. Refer to documentation\n# for a list of supported languages.\n#language = None\n\n# There are two options for replacing |today|: either, you set today to some\n# non-false value, then it is used:\n#today = ''\n# Else, today_fmt is used as the format for a strftime call.\n#today_fmt = '%B %d, %Y'\n\n# List of patterns, relative to source directory, that match files and\n# directories to ignore when looking for source files.\nexclude_patterns = ['_build']\n\n# The reST default role (used for this markup: `text`) to use for all documents.\n#default_role = None\n\n# If true, '()' will be appended to :func: etc. cross-reference text.\n#add_function_parentheses = True\n\n# If true, the current module name will be prepended to all description\n# unit titles (such as .. function::).\n#add_module_names = True\n\n# If true, sectionauthor and moduleauthor directives will be shown in the\n# output. They are ignored by default.\n#show_authors = False\n\n# The name of the Pygments (syntax highlighting) style to use.\npygments_style = 'flask_theme_support.FlaskyStyle'\n\n# A list of ignored prefixes for module index sorting.\n#modindex_common_prefix = []\n\n\n# -- Options for HTML output ---------------------------------------------------\n\n# The theme to use for HTML and HTML Help pages. See the documentation for\n# a list of builtin themes.\nhtml_theme = 'default'\n\n# Theme options are theme-specific and customize the look and feel of a theme\n# further. For a list of options available for each theme, see the\n# documentation.\n#html_theme_options = {}\n\n# Add any paths that contain custom themes here, relative to this directory.\n#html_theme_path = []\n\n# The name for this set of Sphinx documents. If None, it defaults to\n# \" v documentation\".\n#html_title = None\n\n# A shorter title for the navigation bar. Default is the same as html_title.\n#html_short_title = None\n\n# The name of an image file (relative to this directory) to place at the top\n# of the sidebar.\n#html_logo = None\n\n\n# The name of an image file (within the static path) to use as favicon of the\n# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32\n# pixels large.\n#html_favicon = None\n\n# Add any paths that contain custom static files (such as style sheets) here,\n# relative to this directory. They are copied after the builtin static files,\n# so a file named \"default.css\" will overwrite the builtin \"default.css\".\nhtml_static_path = ['_static']\n\n# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,\n# using the given strftime format.\n#html_last_updated_fmt = '%b %d, %Y'\n\n# If true, SmartyPants will be used to convert quotes and dashes to\n# typographically correct entities.\n#html_use_smartypants = True\n\n# Custom sidebar templates, maps document names to template names.\nhtml_sidebars = {\n 'index': ['sidebarintro.html', 'sourcelink.html', 'searchbox.html'],\n '**': ['sidebarlogo.html', 'localtoc.html', 'relations.html',\n 'sourcelink.html', 'searchbox.html']\n}\n\n# Additional templates that should be rendered to pages, maps page names to\n# template names.\n#html_additional_pages = {}\n\n# If false, no module index is generated.\n#html_domain_indices = True\n\n# If false, no index is generated.\n#html_use_index = True\n\n# If true, the index is split into individual pages for each letter.\n#html_split_index = False\n\n# If true, links to the reST sources are added to the pages.\nhtml_show_sourcelink = False\n\n# If true, \"Created using Sphinx\" is shown in the HTML footer. Default is True.\nhtml_show_sphinx = False\n\n# If true, \"(C) Copyright ...\" is shown in the HTML footer. Default is True.\n#html_show_copyright = True\n\n# If true, an OpenSearch description file will be output, and all pages will\n# contain a tag referring to it. The value of this option must be the\n# base URL from which the finished HTML is served.\n#html_use_opensearch = ''\n\n# This is the file name suffix for HTML files (e.g. \".xhtml\").\n#html_file_suffix = None\n\n# Output file base name for HTML help builder.\nhtmlhelp_basename = 'Requestsdoc'\n\n\n# -- Options for LaTeX output --------------------------------------------------\n\n# The paper size ('letter' or 'a4').\n#latex_paper_size = 'letter'\n\n# The font size ('10pt', '11pt' or '12pt').\n#latex_font_size = '10pt'\n\n# Grouping the document tree into LaTeX files. List of tuples\n# (source start file, target name, title, author, documentclass [howto/manual]).\nlatex_documents = [\n ('index', 'Requests.tex', u'Requests Documentation',\n u'Kenneth Reitz', 'manual'),\n]\n\n# The name of an image file (relative to this directory) to place at the top of\n# the title page.\n#latex_logo = None\n\n# For \"manual\" documents, if this is true, then toplevel headings are parts,\n# not chapters.\n#latex_use_parts = False\n\n# If true, show page references after internal links.\n#latex_show_pagerefs = False\n\n# If true, show URL addresses after external links.\n#latex_show_urls = False\n\n# Additional stuff for the LaTeX preamble.\n#latex_preamble = ''\n\n# Documents to append as an appendix to all manuals.\n#latex_appendices = []\n\n# If false, no module index is generated.\n#latex_domain_indices = True\n\n\n# -- Options for manual page output --------------------------------------------\n\n# One entry per manual page. List of tuples\n# (source start file, name, description, authors, manual section).\nman_pages = [\n ('index', 'requests', u'Requests Documentation',\n [u'Kenneth Reitz'], 1)\n]\n\n# If true, show URL addresses after external links.\n#man_show_urls = False\n\n# -- Options for Texinfo output ------------------------------------------------\n\n# Grouping the document tree into Texinfo files. List of tuples\n# (source start file, target name, title, author,\n# dir menu entry, description, category)\ntexinfo_documents = [\n ('index', 'Requests', u'Requests Documentation', u'Kenneth Reitz',\n 'Requests', 'One line description of project.', 'Miscellaneous'),\n]\n\n# Documents to append as an appendix to all manuals.\ntexinfo_appendices = []\n\nsys.path.append(os.path.abspath('_themes'))\nhtml_theme_path = ['_themes']\nhtml_theme = 'kr'\n"},{"fileName":"compat.py","filePath":"requests/packages/charade","id":1044,"nodeType":"File","text":"######################## BEGIN LICENSE BLOCK ########################\n# Contributor(s):\n# Ian Cordasco - port to Python\n#\n# This library is free software; you can redistribute it and/or\n# modify it under the terms of the GNU Lesser General Public\n# License as published by the Free Software Foundation; either\n# version 2.1 of the License, or (at your option) any later version.\n#\n# This library is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n# Lesser General Public License for more details.\n#\n# You should have received a copy of the GNU Lesser General Public\n# License along with this library; if not, write to the Free Software\n# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n# 02110-1301 USA\n######################### END LICENSE BLOCK #########################\n\nimport sys\n\n\nif sys.version_info < (3, 0):\n base_str = (str, unicode)\nelse:\n base_str = (bytes, str)\n\n\ndef wrap_ord(a):\n if sys.version_info < (3, 0) and isinstance(a, base_str):\n return ord(a)\n else:\n return a\n"},{"attributeType":"(bytes, str)","col":4,"comment":"null","endLoc":27,"id":1045,"name":"base_str","nodeType":"Attribute","startLoc":27,"text":"base_str"},{"col":4,"comment":"Return a copy of this RequestsCookieJar.","endLoc":330,"header":"def copy(self)","id":1046,"name":"copy","nodeType":"Function","startLoc":326,"text":"def copy(self):\n \"\"\"Return a copy of this RequestsCookieJar.\"\"\"\n new_cj = RequestsCookieJar()\n new_cj.update(self)\n return new_cj"},{"fileName":"utf8prober.py","filePath":"requests/packages/charade","id":1047,"nodeType":"File","text":"######################## BEGIN LICENSE BLOCK ########################\n# The Original Code is mozilla.org code.\n#\n# The Initial Developer of the Original Code is\n# Netscape Communications Corporation.\n# Portions created by the Initial Developer are Copyright (C) 1998\n# the Initial Developer. All Rights Reserved.\n#\n# Contributor(s):\n# Mark Pilgrim - port to Python\n#\n# This library is free software; you can redistribute it and/or\n# modify it under the terms of the GNU Lesser General Public\n# License as published by the Free Software Foundation; either\n# version 2.1 of the License, or (at your option) any later version.\n#\n# This library is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n# Lesser General Public License for more details.\n#\n# You should have received a copy of the GNU Lesser General Public\n# License along with this library; if not, write to the Free Software\n# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n# 02110-1301 USA\n######################### END LICENSE BLOCK #########################\n\nfrom . import constants\nfrom .charsetprober import CharSetProber\nfrom .codingstatemachine import CodingStateMachine\nfrom .mbcssm import UTF8SMModel\n\nONE_CHAR_PROB = 0.5\n\n\nclass UTF8Prober(CharSetProber):\n def __init__(self):\n CharSetProber.__init__(self)\n self._mCodingSM = CodingStateMachine(UTF8SMModel)\n self.reset()\n\n def reset(self):\n CharSetProber.reset(self)\n self._mCodingSM.reset()\n self._mNumOfMBChar = 0\n\n def get_charset_name(self):\n return \"utf-8\"\n\n def feed(self, aBuf):\n for c in aBuf:\n codingState = self._mCodingSM.next_state(c)\n if codingState == constants.eError:\n self._mState = constants.eNotMe\n break\n elif codingState == constants.eItsMe:\n self._mState = constants.eFoundIt\n break\n elif codingState == constants.eStart:\n if self._mCodingSM.get_current_charlen() >= 2:\n self._mNumOfMBChar += 1\n\n if self.get_state() == constants.eDetecting:\n if self.get_confidence() > constants.SHORTCUT_THRESHOLD:\n self._mState = constants.eFoundIt\n\n return self.get_state()\n\n def get_confidence(self):\n unlike = 0.99\n if self._mNumOfMBChar < 6:\n for i in range(0, self._mNumOfMBChar):\n unlike = unlike * ONE_CHAR_PROB\n return 1.0 - unlike\n else:\n return unlike\n"},{"className":"UTF8Prober","col":0,"comment":"null","endLoc":76,"id":1049,"nodeType":"Class","startLoc":36,"text":"class UTF8Prober(CharSetProber):\n def __init__(self):\n CharSetProber.__init__(self)\n self._mCodingSM = CodingStateMachine(UTF8SMModel)\n self.reset()\n\n def reset(self):\n CharSetProber.reset(self)\n self._mCodingSM.reset()\n self._mNumOfMBChar = 0\n\n def get_charset_name(self):\n return \"utf-8\"\n\n def feed(self, aBuf):\n for c in aBuf:\n codingState = self._mCodingSM.next_state(c)\n if codingState == constants.eError:\n self._mState = constants.eNotMe\n break\n elif codingState == constants.eItsMe:\n self._mState = constants.eFoundIt\n break\n elif codingState == constants.eStart:\n if self._mCodingSM.get_current_charlen() >= 2:\n self._mNumOfMBChar += 1\n\n if self.get_state() == constants.eDetecting:\n if self.get_confidence() > constants.SHORTCUT_THRESHOLD:\n self._mState = constants.eFoundIt\n\n return self.get_state()\n\n def get_confidence(self):\n unlike = 0.99\n if self._mNumOfMBChar < 6:\n for i in range(0, self._mNumOfMBChar):\n unlike = unlike * ONE_CHAR_PROB\n return 1.0 - unlike\n else:\n return unlike"},{"col":4,"comment":"null","endLoc":40,"header":"def __init__(self)","id":1050,"name":"__init__","nodeType":"Function","startLoc":37,"text":"def __init__(self):\n CharSetProber.__init__(self)\n self._mCodingSM = CodingStateMachine(UTF8SMModel)\n self.reset()"},{"col":4,"comment":"null","endLoc":42,"header":"def send(self)","id":1051,"name":"send","nodeType":"Function","startLoc":41,"text":"def send(self):\n raise NotImplementedError"},{"col":4,"comment":"null","endLoc":45,"header":"def close(self)","id":1052,"name":"close","nodeType":"Function","startLoc":44,"text":"def close(self):\n raise NotImplementedError"},{"className":"HTTPAdapter","col":0,"comment":"The built-in HTTP Adapter for urllib3.\n\n Provides a general-case interface for Requests sessions to contact HTTP and\n HTTPS urls by implementing the Transport Adapter interface. This class will\n usually be created by the :class:`Session ` class under the\n covers.\n\n :param pool_connections: The number of urllib3 connection pools to cache.\n :param pool_maxsize: The maximum number of connections to save in the pool.\n :param max_retries: The maximum number of retries each connection should attempt.\n :param pool_block: Whether the connection pool should block for connections.\n\n Usage::\n\n >>> import requests\n >>> s = requests.Session()\n >>> a = requests.adapters.HTTPAdapter()\n >>> s.mount('http://', a)\n ","endLoc":374,"id":1053,"nodeType":"Class","startLoc":48,"text":"class HTTPAdapter(BaseAdapter):\n \"\"\"The built-in HTTP Adapter for urllib3.\n\n Provides a general-case interface for Requests sessions to contact HTTP and\n HTTPS urls by implementing the Transport Adapter interface. This class will\n usually be created by the :class:`Session ` class under the\n covers.\n\n :param pool_connections: The number of urllib3 connection pools to cache.\n :param pool_maxsize: The maximum number of connections to save in the pool.\n :param max_retries: The maximum number of retries each connection should attempt.\n :param pool_block: Whether the connection pool should block for connections.\n\n Usage::\n\n >>> import requests\n >>> s = requests.Session()\n >>> a = requests.adapters.HTTPAdapter()\n >>> s.mount('http://', a)\n \"\"\"\n __attrs__ = ['max_retries', 'config', '_pool_connections', '_pool_maxsize',\n '_pool_block']\n\n def __init__(self, pool_connections=DEFAULT_POOLSIZE,\n pool_maxsize=DEFAULT_POOLSIZE, max_retries=DEFAULT_RETRIES,\n pool_block=DEFAULT_POOLBLOCK):\n self.max_retries = max_retries\n self.config = {}\n self.proxy_manager = {}\n\n super(HTTPAdapter, self).__init__()\n\n self._pool_connections = pool_connections\n self._pool_maxsize = pool_maxsize\n self._pool_block = pool_block\n\n self.init_poolmanager(pool_connections, pool_maxsize, block=pool_block)\n\n def __getstate__(self):\n return dict((attr, getattr(self, attr, None)) for attr in\n self.__attrs__)\n\n def __setstate__(self, state):\n for attr, value in state.items():\n setattr(self, attr, value)\n\n self.init_poolmanager(self._pool_connections, self._pool_maxsize,\n block=self._pool_block)\n\n def init_poolmanager(self, connections, maxsize, block=DEFAULT_POOLBLOCK):\n \"\"\"Initializes a urllib3 PoolManager. This method should not be called\n from user code, and is only exposed for use when subclassing the\n :class:`HTTPAdapter `.\n\n :param connections: The number of urllib3 connection pools to cache.\n :param maxsize: The maximum number of connections to save in the pool.\n :param block: Block when no free connections are available.\n \"\"\"\n # save these values for pickling\n self._pool_connections = connections\n self._pool_maxsize = maxsize\n self._pool_block = block\n\n self.poolmanager = PoolManager(num_pools=connections, maxsize=maxsize,\n block=block)\n\n def cert_verify(self, conn, url, verify, cert):\n \"\"\"Verify a SSL certificate. This method should not be called from user\n code, and is only exposed for use when subclassing the\n :class:`HTTPAdapter `.\n\n :param conn: The urllib3 connection object associated with the cert.\n :param url: The requested URL.\n :param verify: Whether we should actually verify the certificate.\n :param cert: The SSL certificate to verify.\n \"\"\"\n if url.lower().startswith('https') and verify:\n\n cert_loc = None\n\n # Allow self-specified cert location.\n if verify is not True:\n cert_loc = verify\n\n if not cert_loc:\n cert_loc = DEFAULT_CA_BUNDLE_PATH\n\n if not cert_loc:\n raise Exception(\"Could not find a suitable SSL CA certificate bundle.\")\n\n conn.cert_reqs = 'CERT_REQUIRED'\n conn.ca_certs = cert_loc\n else:\n conn.cert_reqs = 'CERT_NONE'\n conn.ca_certs = None\n\n if cert:\n if not isinstance(cert, basestring):\n conn.cert_file = cert[0]\n conn.key_file = cert[1]\n else:\n conn.cert_file = cert\n\n def build_response(self, req, resp):\n \"\"\"Builds a :class:`Response ` object from a urllib3\n response. This should not be called from user code, and is only exposed\n for use when subclassing the\n :class:`HTTPAdapter `\n\n :param req: The :class:`PreparedRequest ` used to generate the response.\n :param resp: The urllib3 response object.\n \"\"\"\n response = Response()\n\n # Fallback to None if there's no status_code, for whatever reason.\n response.status_code = getattr(resp, 'status', None)\n\n # Make headers case-insensitive.\n response.headers = CaseInsensitiveDict(getattr(resp, 'headers', {}))\n\n # Set encoding.\n response.encoding = get_encoding_from_headers(response.headers)\n response.raw = resp\n response.reason = response.raw.reason\n\n if isinstance(req.url, bytes):\n response.url = req.url.decode('utf-8')\n else:\n response.url = req.url\n\n # Add new cookies from the server.\n extract_cookies_to_jar(response.cookies, req, resp)\n\n # Give the Response some context.\n response.request = req\n response.connection = self\n\n return response\n\n def get_connection(self, url, proxies=None):\n \"\"\"Returns a urllib3 connection for the given URL. This should not be\n called from user code, and is only exposed for use when subclassing the\n :class:`HTTPAdapter `.\n\n :param url: The URL to connect to.\n :param proxies: (optional) A Requests-style dictionary of proxies used on this request.\n \"\"\"\n proxies = proxies or {}\n proxy = proxies.get(urlparse(url.lower()).scheme)\n\n if proxy:\n except_on_missing_scheme(proxy)\n proxy_headers = self.proxy_headers(proxy)\n\n if not proxy in self.proxy_manager:\n self.proxy_manager[proxy] = proxy_from_url(\n proxy,\n proxy_headers=proxy_headers)\n\n conn = self.proxy_manager[proxy].connection_from_url(url)\n else:\n conn = self.poolmanager.connection_from_url(url.lower())\n\n return conn\n\n def close(self):\n \"\"\"Disposes of any internal state.\n\n Currently, this just closes the PoolManager, which closes pooled\n connections.\n \"\"\"\n self.poolmanager.clear()\n\n def request_url(self, request, proxies):\n \"\"\"Obtain the url to use when making the final request.\n\n If the message is being sent through a HTTP proxy, the full URL has to\n be used. Otherwise, we should only use the path portion of the URL.\n\n This should not be called from user code, and is only exposed for use\n when subclassing the\n :class:`HTTPAdapter `.\n\n :param request: The :class:`PreparedRequest ` being sent.\n :param proxies: A dictionary of schemes to proxy URLs.\n \"\"\"\n proxies = proxies or {}\n scheme = urlparse(request.url).scheme.lower()\n proxy = proxies.get(scheme)\n\n if proxy and scheme != 'https':\n url, _ = urldefrag(request.url)\n else:\n url = request.path_url\n\n return url\n\n def add_headers(self, request, **kwargs):\n \"\"\"Add any headers needed by the connection. As of v2.0 this does\n nothing by default, but is left for overriding by users that subclass\n the :class:`HTTPAdapter `.\n\n This should not be called from user code, and is only exposed for use\n when subclassing the\n :class:`HTTPAdapter `.\n\n :param request: The :class:`PreparedRequest ` to add headers to.\n :param kwargs: The keyword arguments from the call to send().\n \"\"\"\n pass\n\n def proxy_headers(self, proxy):\n \"\"\"Returns a dictionary of the headers to add to any request sent\n through a proxy. This works with urllib3 magic to ensure that they are\n correctly sent to the proxy, rather than in a tunnelled request if\n CONNECT is being used.\n\n This should not be called from user code, and is only exposed for use\n when subclassing the\n :class:`HTTPAdapter `.\n\n :param proxies: The url of the proxy being used for this request.\n :param kwargs: Optional additional keyword arguments.\n \"\"\"\n headers = {}\n username, password = get_auth_from_url(proxy)\n\n if username and password:\n # Proxy auth usernames and passwords will be urlencoded, we need\n # to decode them.\n username = unquote(username)\n password = unquote(password)\n headers['Proxy-Authorization'] = _basic_auth_str(username,\n password)\n\n return headers\n\n def send(self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None):\n \"\"\"Sends PreparedRequest object. Returns Response object.\n\n :param request: The :class:`PreparedRequest ` being sent.\n :param stream: (optional) Whether to stream the request content.\n :param timeout: (optional) The timeout on the request.\n :param verify: (optional) Whether to verify SSL certificates.\n :param cert: (optional) Any user-provided SSL certificate to be trusted.\n :param proxies: (optional) The proxies dictionary to apply to the request.\n \"\"\"\n\n conn = self.get_connection(request.url, proxies)\n\n self.cert_verify(conn, request.url, verify, cert)\n url = self.request_url(request, proxies)\n self.add_headers(request)\n\n chunked = not (request.body is None or 'Content-Length' in request.headers)\n\n if stream:\n timeout = TimeoutSauce(connect=timeout)\n else:\n timeout = TimeoutSauce(connect=timeout, read=timeout)\n\n try:\n if not chunked:\n resp = conn.urlopen(\n method=request.method,\n url=url,\n body=request.body,\n headers=request.headers,\n redirect=False,\n assert_same_host=False,\n preload_content=False,\n decode_content=False,\n retries=self.max_retries,\n timeout=timeout\n )\n\n # Send the request.\n else:\n if hasattr(conn, 'proxy_pool'):\n conn = conn.proxy_pool\n\n low_conn = conn._get_conn(timeout=timeout)\n low_conn.putrequest(request.method, url, skip_accept_encoding=True)\n\n for header, value in request.headers.items():\n low_conn.putheader(header, value)\n\n low_conn.endheaders()\n\n for i in request.body:\n low_conn.send(hex(len(i))[2:].encode('utf-8'))\n low_conn.send(b'\\r\\n')\n low_conn.send(i)\n low_conn.send(b'\\r\\n')\n low_conn.send(b'0\\r\\n\\r\\n')\n\n r = low_conn.getresponse()\n resp = HTTPResponse.from_httplib(r,\n pool=conn,\n connection=low_conn,\n preload_content=False,\n decode_content=False\n )\n\n except socket.error as sockerr:\n raise ConnectionError(sockerr)\n\n except MaxRetryError as e:\n raise ConnectionError(e)\n\n except _ProxyError as e:\n raise ProxyError(e)\n\n except (_SSLError, _HTTPError) as e:\n if isinstance(e, _SSLError):\n raise SSLError(e)\n elif isinstance(e, TimeoutError):\n raise Timeout(e)\n else:\n raise\n\n r = self.build_response(request, resp)\n\n if not stream:\n r.content\n\n return r"},{"col":4,"comment":"null","endLoc":84,"header":"def __init__(self, pool_connections=DEFAULT_POOLSIZE,\n pool_maxsize=DEFAULT_POOLSIZE, max_retries=DEFAULT_RETRIES,\n pool_block=DEFAULT_POOLBLOCK)","id":1054,"name":"__init__","nodeType":"Function","startLoc":71,"text":"def __init__(self, pool_connections=DEFAULT_POOLSIZE,\n pool_maxsize=DEFAULT_POOLSIZE, max_retries=DEFAULT_RETRIES,\n pool_block=DEFAULT_POOLBLOCK):\n self.max_retries = max_retries\n self.config = {}\n self.proxy_manager = {}\n\n super(HTTPAdapter, self).__init__()\n\n self._pool_connections = pool_connections\n self._pool_maxsize = pool_maxsize\n self._pool_block = pool_block\n\n self.init_poolmanager(pool_connections, pool_maxsize, block=pool_block)"},{"col":0,"comment":"","endLoc":21,"header":"compat.py#","id":1055,"name":"","nodeType":"Function","startLoc":21,"text":"if sys.version_info < (3, 0):\n base_str = (str, unicode)\nelse:\n base_str = (bytes, str)"},{"col":4,"comment":"\n Helper function to format and quote a single header.\n\n Useful for single headers that are composed of multiple items. E.g.,\n 'Content-Disposition' fields.\n\n :param header_parts:\n A sequence of (k, v) typles or a :class:`dict` of (k, v) to format as\n `k1=\"v1\"; k2=\"v2\"; ...`.\n ","endLoc":140,"header":"def _render_parts(self, header_parts)","id":1056,"name":"_render_parts","nodeType":"Function","startLoc":120,"text":"def _render_parts(self, header_parts):\n \"\"\"\n Helper function to format and quote a single header.\n\n Useful for single headers that are composed of multiple items. E.g.,\n 'Content-Disposition' fields.\n\n :param header_parts:\n A sequence of (k, v) typles or a :class:`dict` of (k, v) to format as\n `k1=\"v1\"; k2=\"v2\"; ...`.\n \"\"\"\n parts = []\n iterable = header_parts\n if isinstance(header_parts, dict):\n iterable = header_parts.items()\n\n for name, value in iterable:\n if value:\n parts.append(self._render_part(name, value))\n\n return '; '.join(parts)"},{"attributeType":"null","col":12,"comment":"null","endLoc":324,"id":1057,"name":"_cookies_lock","nodeType":"Attribute","startLoc":324,"text":"self._cookies_lock"},{"fileName":"sjisprober.py","filePath":"requests/packages/charade","id":1058,"nodeType":"File","text":"######################## BEGIN LICENSE BLOCK ########################\n# The Original Code is mozilla.org code.\n#\n# The Initial Developer of the Original Code is\n# Netscape Communications Corporation.\n# Portions created by the Initial Developer are Copyright (C) 1998\n# the Initial Developer. All Rights Reserved.\n#\n# Contributor(s):\n# Mark Pilgrim - port to Python\n#\n# This library is free software; you can redistribute it and/or\n# modify it under the terms of the GNU Lesser General Public\n# License as published by the Free Software Foundation; either\n# version 2.1 of the License, or (at your option) any later version.\n#\n# This library is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n# Lesser General Public License for more details.\n#\n# You should have received a copy of the GNU Lesser General Public\n# License along with this library; if not, write to the Free Software\n# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n# 02110-1301 USA\n######################### END LICENSE BLOCK #########################\n\nimport sys\nfrom .mbcharsetprober import MultiByteCharSetProber\nfrom .codingstatemachine import CodingStateMachine\nfrom .chardistribution import SJISDistributionAnalysis\nfrom .jpcntx import SJISContextAnalysis\nfrom .mbcssm import SJISSMModel\nfrom . import constants\n\n\nclass SJISProber(MultiByteCharSetProber):\n def __init__(self):\n MultiByteCharSetProber.__init__(self)\n self._mCodingSM = CodingStateMachine(SJISSMModel)\n self._mDistributionAnalyzer = SJISDistributionAnalysis()\n self._mContextAnalyzer = SJISContextAnalysis()\n self.reset()\n\n def reset(self):\n MultiByteCharSetProber.reset(self)\n self._mContextAnalyzer.reset()\n\n def get_charset_name(self):\n return \"SHIFT_JIS\"\n\n def feed(self, aBuf):\n aLen = len(aBuf)\n for i in range(0, aLen):\n codingState = self._mCodingSM.next_state(aBuf[i])\n if codingState == constants.eError:\n if constants._debug:\n sys.stderr.write(self.get_charset_name()\n + ' prober hit error at byte ' + str(i)\n + '\\n')\n self._mState = constants.eNotMe\n break\n elif codingState == constants.eItsMe:\n self._mState = constants.eFoundIt\n break\n elif codingState == constants.eStart:\n charLen = self._mCodingSM.get_current_charlen()\n if i == 0:\n self._mLastChar[1] = aBuf[0]\n self._mContextAnalyzer.feed(self._mLastChar[2 - charLen:],\n charLen)\n self._mDistributionAnalyzer.feed(self._mLastChar, charLen)\n else:\n self._mContextAnalyzer.feed(aBuf[i + 1 - charLen:i + 3\n - charLen], charLen)\n self._mDistributionAnalyzer.feed(aBuf[i - 1:i + 1],\n charLen)\n\n self._mLastChar[0] = aBuf[aLen - 1]\n\n if self.get_state() == constants.eDetecting:\n if (self._mContextAnalyzer.got_enough_data() and\n (self.get_confidence() > constants.SHORTCUT_THRESHOLD)):\n self._mState = constants.eFoundIt\n\n return self.get_state()\n\n def get_confidence(self):\n contxtCf = self._mContextAnalyzer.get_confidence()\n distribCf = self._mDistributionAnalyzer.get_confidence()\n return max(contxtCf, distribCf)\n"},{"className":"SJISDistributionAnalysis","col":0,"comment":"null","endLoc":212,"id":1059,"nodeType":"Class","startLoc":190,"text":"class SJISDistributionAnalysis(CharDistributionAnalysis):\n def __init__(self):\n CharDistributionAnalysis.__init__(self)\n self._mCharToFreqOrder = JISCharToFreqOrder\n self._mTableSize = JIS_TABLE_SIZE\n self._mTypicalDistributionRatio = JIS_TYPICAL_DISTRIBUTION_RATIO\n\n def get_order(self, aBuf):\n # for sjis encoding, we are interested\n # first byte range: 0x81 -- 0x9f , 0xe0 -- 0xfe\n # second byte range: 0x40 -- 0x7e, 0x81 -- oxfe\n # no validation needed here. State machine has done that\n first_char, second_char = wrap_ord(aBuf[0]), wrap_ord(aBuf[1])\n if (first_char >= 0x81) and (first_char <= 0x9F):\n order = 188 * (first_char - 0x81)\n elif (first_char >= 0xE0) and (first_char <= 0xEF):\n order = 188 * (first_char - 0xE0 + 31)\n else:\n return -1\n order = order + second_char - 0x40\n if second_char > 0x7F:\n order = -1\n return order"},{"col":4,"comment":"null","endLoc":195,"header":"def __init__(self)","id":1060,"name":"__init__","nodeType":"Function","startLoc":191,"text":"def __init__(self):\n CharDistributionAnalysis.__init__(self)\n self._mCharToFreqOrder = JISCharToFreqOrder\n self._mTableSize = JIS_TABLE_SIZE\n self._mTypicalDistributionRatio = JIS_TYPICAL_DISTRIBUTION_RATIO"},{"className":"Request","col":0,"comment":"A user-created :class:`Request ` object.\n\n Used to prepare a :class:`PreparedRequest `, which is sent to the server.\n\n :param method: HTTP method to use.\n :param url: URL to send.\n :param headers: dictionary of headers to send.\n :param files: dictionary of {filename: fileobject} files to multipart upload.\n :param data: the body to attach the request. If a dictionary is provided, form-encoding will take place.\n :param params: dictionary of URL parameters to append to the URL.\n :param auth: Auth handler or (user, pass) tuple.\n :param cookies: dictionary or CookieJar of cookies to attach to this request.\n :param hooks: dictionary of callback hooks, for internal usage.\n\n Usage::\n\n >>> import requests\n >>> req = requests.Request('GET', 'http://httpbin.org/get')\n >>> req.prepare()\n \n\n ","endLoc":244,"id":1061,"nodeType":"Class","startLoc":173,"text":"class Request(RequestHooksMixin):\n \"\"\"A user-created :class:`Request ` object.\n\n Used to prepare a :class:`PreparedRequest `, which is sent to the server.\n\n :param method: HTTP method to use.\n :param url: URL to send.\n :param headers: dictionary of headers to send.\n :param files: dictionary of {filename: fileobject} files to multipart upload.\n :param data: the body to attach the request. If a dictionary is provided, form-encoding will take place.\n :param params: dictionary of URL parameters to append to the URL.\n :param auth: Auth handler or (user, pass) tuple.\n :param cookies: dictionary or CookieJar of cookies to attach to this request.\n :param hooks: dictionary of callback hooks, for internal usage.\n\n Usage::\n\n >>> import requests\n >>> req = requests.Request('GET', 'http://httpbin.org/get')\n >>> req.prepare()\n \n\n \"\"\"\n def __init__(self,\n method=None,\n url=None,\n headers=None,\n files=None,\n data=None,\n params=None,\n auth=None,\n cookies=None,\n hooks=None):\n\n # Default empty dicts for dict params.\n data = [] if data is None else data\n files = [] if files is None else files\n headers = {} if headers is None else headers\n params = {} if params is None else params\n hooks = {} if hooks is None else hooks\n\n self.hooks = default_hooks()\n for (k, v) in list(hooks.items()):\n self.register_hook(event=k, hook=v)\n\n self.method = method\n self.url = url\n self.headers = headers\n self.files = files\n self.data = data\n self.params = params\n self.auth = auth\n self.cookies = cookies\n\n def __repr__(self):\n return '' % (self.method)\n\n def prepare(self):\n \"\"\"Constructs a :class:`PreparedRequest ` for transmission and returns it.\"\"\"\n p = PreparedRequest()\n p.prepare(\n method=self.method,\n url=self.url,\n headers=self.headers,\n files=self.files,\n data=self.data,\n params=self.params,\n auth=self.auth,\n cookies=self.cookies,\n hooks=self.hooks,\n )\n return p"},{"col":4,"comment":"null","endLoc":212,"header":"def get_order(self, aBuf)","id":1062,"name":"get_order","nodeType":"Function","startLoc":197,"text":"def get_order(self, aBuf):\n # for sjis encoding, we are interested\n # first byte range: 0x81 -- 0x9f , 0xe0 -- 0xfe\n # second byte range: 0x40 -- 0x7e, 0x81 -- oxfe\n # no validation needed here. State machine has done that\n first_char, second_char = wrap_ord(aBuf[0]), wrap_ord(aBuf[1])\n if (first_char >= 0x81) and (first_char <= 0x9F):\n order = 188 * (first_char - 0x81)\n elif (first_char >= 0xE0) and (first_char <= 0xEF):\n order = 188 * (first_char - 0xE0 + 31)\n else:\n return -1\n order = order + second_char - 0x40\n if second_char > 0x7F:\n order = -1\n return order"},{"className":"RequestHooksMixin","col":0,"comment":"null","endLoc":170,"id":1063,"nodeType":"Class","startLoc":149,"text":"class RequestHooksMixin(object):\n def register_hook(self, event, hook):\n \"\"\"Properly register a hook.\"\"\"\n\n if event not in self.hooks:\n raise ValueError('Unsupported event specified, with event name \"%s\"' % (event))\n\n if isinstance(hook, collections.Callable):\n self.hooks[event].append(hook)\n elif hasattr(hook, '__iter__'):\n self.hooks[event].extend(h for h in hook if isinstance(h, collections.Callable))\n\n def deregister_hook(self, event, hook):\n \"\"\"Deregister a previously registered hook.\n Returns True if the hook existed, False if not.\n \"\"\"\n\n try:\n self.hooks[event].remove(hook)\n return True\n except ValueError:\n return False"},{"col":4,"comment":"\n Close all pooled connections and disable the pool.\n ","endLoc":361,"header":"def close(self)","id":1064,"name":"close","nodeType":"Function","startLoc":347,"text":"def close(self):\n \"\"\"\n Close all pooled connections and disable the pool.\n \"\"\"\n # Disable access to the pool\n old_pool, self.pool = self.pool, None\n\n try:\n while True:\n conn = old_pool.get(block=False)\n if conn:\n conn.close()\n\n except Empty:\n pass # Done."},{"col":4,"comment":"Properly register a hook.","endLoc":159,"header":"def register_hook(self, event, hook)","id":1065,"name":"register_hook","nodeType":"Function","startLoc":150,"text":"def register_hook(self, event, hook):\n \"\"\"Properly register a hook.\"\"\"\n\n if event not in self.hooks:\n raise ValueError('Unsupported event specified, with event name \"%s\"' % (event))\n\n if isinstance(hook, collections.Callable):\n self.hooks[event].append(hook)\n elif hasattr(hook, '__iter__'):\n self.hooks[event].extend(h for h in hook if isinstance(h, collections.Callable))"},{"attributeType":"null","col":8,"comment":"null","endLoc":195,"id":1066,"name":"_mTypicalDistributionRatio","nodeType":"Attribute","startLoc":195,"text":"self._mTypicalDistributionRatio"},{"attributeType":"null","col":8,"comment":"null","endLoc":193,"id":1067,"name":"_mCharToFreqOrder","nodeType":"Attribute","startLoc":193,"text":"self._mCharToFreqOrder"},{"col":4,"comment":"\n Renders the headers for this request field.\n ","endLoc":159,"header":"def render_headers(self)","id":1068,"name":"render_headers","nodeType":"Function","startLoc":142,"text":"def render_headers(self):\n \"\"\"\n Renders the headers for this request field.\n \"\"\"\n lines = []\n\n sort_keys = ['Content-Disposition', 'Content-Type', 'Content-Location']\n for sort_key in sort_keys:\n if self.headers.get(sort_key, False):\n lines.append('%s: %s' % (sort_key, self.headers[sort_key]))\n\n for header_name, header_value in self.headers.items():\n if header_name not in sort_keys:\n if header_value:\n lines.append('%s: %s' % (header_name, header_value))\n\n lines.append('\\r\\n')\n return '\\r\\n'.join(lines)"},{"col":4,"comment":"null","endLoc":45,"header":"def reset(self)","id":1069,"name":"reset","nodeType":"Function","startLoc":42,"text":"def reset(self):\n CharSetProber.reset(self)\n self._mCodingSM.reset()\n self._mNumOfMBChar = 0"},{"attributeType":"null","col":8,"comment":"null","endLoc":194,"id":1070,"name":"_mTableSize","nodeType":"Attribute","startLoc":194,"text":"self._mTableSize"},{"col":4,"comment":"\n Check if the given ``url`` is a member of the same host as this\n connection pool.\n ","endLoc":378,"header":"def is_same_host(self, url)","id":1071,"name":"is_same_host","nodeType":"Function","startLoc":363,"text":"def is_same_host(self, url):\n \"\"\"\n Check if the given ``url`` is a member of the same host as this\n connection pool.\n \"\"\"\n if url.startswith('/'):\n return True\n\n # TODO: Add optional support for socket.gethostbyname checking.\n scheme, host, port = get_host(url)\n\n if self.port and not port:\n # Use explicit default port for comparison when none is given.\n port = port_by_scheme.get(scheme)\n\n return (scheme, host, port) == (self.scheme, self.host, self.port)"},{"col":4,"comment":"\n Makes this request field into a multipart request field.\n\n This method overrides \"Content-Disposition\", \"Content-Type\" and\n \"Content-Location\" headers to the request parameter.\n\n :param content_type:\n The 'Content-Type' of the request body.\n :param content_location:\n The 'Content-Location' of the request body.\n\n ","endLoc":177,"header":"def make_multipart(self, content_disposition=None, content_type=None, content_location=None)","id":1072,"name":"make_multipart","nodeType":"Function","startLoc":161,"text":"def make_multipart(self, content_disposition=None, content_type=None, content_location=None):\n \"\"\"\n Makes this request field into a multipart request field.\n\n This method overrides \"Content-Disposition\", \"Content-Type\" and\n \"Content-Location\" headers to the request parameter.\n\n :param content_type:\n The 'Content-Type' of the request body.\n :param content_location:\n The 'Content-Location' of the request body.\n\n \"\"\"\n self.headers['Content-Disposition'] = content_disposition or 'form-data'\n self.headers['Content-Disposition'] += '; '.join(['', self._render_parts((('name', self._name), ('filename', self._filename)))])\n self.headers['Content-Type'] = content_type\n self.headers['Content-Location'] = content_location"},{"col":4,"comment":"null","endLoc":48,"header":"def get_charset_name(self)","id":1073,"name":"get_charset_name","nodeType":"Function","startLoc":47,"text":"def get_charset_name(self):\n return \"utf-8\""},{"col":4,"comment":"null","endLoc":67,"header":"def feed(self, aBuf)","id":1074,"name":"feed","nodeType":"Function","startLoc":50,"text":"def feed(self, aBuf):\n for c in aBuf:\n codingState = self._mCodingSM.next_state(c)\n if codingState == constants.eError:\n self._mState = constants.eNotMe\n break\n elif codingState == constants.eItsMe:\n self._mState = constants.eFoundIt\n break\n elif codingState == constants.eStart:\n if self._mCodingSM.get_current_charlen() >= 2:\n self._mNumOfMBChar += 1\n\n if self.get_state() == constants.eDetecting:\n if self.get_confidence() > constants.SHORTCUT_THRESHOLD:\n self._mState = constants.eFoundIt\n\n return self.get_state()"},{"className":"SJISContextAnalysis","col":0,"comment":"null","endLoc":196,"id":1075,"nodeType":"Class","startLoc":179,"text":"class SJISContextAnalysis(JapaneseContextAnalysis):\n def get_order(self, aBuf):\n if not aBuf:\n return -1, 1\n # find out current char's byte length\n first_char = wrap_ord(aBuf[0])\n if ((0x81 <= first_char <= 0x9F) or (0xE0 <= first_char <= 0xFC)):\n charLen = 2\n else:\n charLen = 1\n\n # return its order if it is hiragana\n if len(aBuf) > 1:\n second_char = wrap_ord(aBuf[1])\n if (first_char == 202) and (0x9F <= second_char <= 0xF1):\n return second_char - 0x9F, charLen\n\n return -1, charLen"},{"attributeType":"null","col":12,"comment":"null","endLoc":74,"id":1076,"name":"headers","nodeType":"Attribute","startLoc":74,"text":"self.headers"},{"attributeType":"null","col":8,"comment":"null","endLoc":69,"id":1077,"name":"_name","nodeType":"Attribute","startLoc":69,"text":"self._name"},{"attributeType":"null","col":0,"comment":"null","endLoc":45,"id":1078,"name":"__version__","nodeType":"Attribute","startLoc":45,"text":"__version__"},{"attributeType":"null","col":8,"comment":"null","endLoc":71,"id":1079,"name":"data","nodeType":"Attribute","startLoc":71,"text":"self.data"},{"col":4,"comment":"Deregister a previously registered hook.\n Returns True if the hook existed, False if not.\n ","endLoc":170,"header":"def deregister_hook(self, event, hook)","id":1080,"name":"deregister_hook","nodeType":"Function","startLoc":161,"text":"def deregister_hook(self, event, hook):\n \"\"\"Deregister a previously registered hook.\n Returns True if the hook existed, False if not.\n \"\"\"\n\n try:\n self.hooks[event].remove(hook)\n return True\n except ValueError:\n return False"},{"col":4,"comment":"Initializes a urllib3 PoolManager. This method should not be called\n from user code, and is only exposed for use when subclassing the\n :class:`HTTPAdapter `.\n\n :param connections: The number of urllib3 connection pools to cache.\n :param maxsize: The maximum number of connections to save in the pool.\n :param block: Block when no free connections are available.\n ","endLoc":112,"header":"def init_poolmanager(self, connections, maxsize, block=DEFAULT_POOLBLOCK)","id":1081,"name":"init_poolmanager","nodeType":"Function","startLoc":97,"text":"def init_poolmanager(self, connections, maxsize, block=DEFAULT_POOLBLOCK):\n \"\"\"Initializes a urllib3 PoolManager. This method should not be called\n from user code, and is only exposed for use when subclassing the\n :class:`HTTPAdapter `.\n\n :param connections: The number of urllib3 connection pools to cache.\n :param maxsize: The maximum number of connections to save in the pool.\n :param block: Block when no free connections are available.\n \"\"\"\n # save these values for pickling\n self._pool_connections = connections\n self._pool_maxsize = maxsize\n self._pool_block = block\n\n self.poolmanager = PoolManager(num_pools=connections, maxsize=maxsize,\n block=block)"},{"col":4,"comment":"null","endLoc":88,"header":"def __getstate__(self)","id":1082,"name":"__getstate__","nodeType":"Function","startLoc":86,"text":"def __getstate__(self):\n return dict((attr, getattr(self, attr, None)) for attr in\n self.__attrs__)"},{"attributeType":"null","col":8,"comment":"null","endLoc":70,"id":1083,"name":"_filename","nodeType":"Attribute","startLoc":70,"text":"self._filename"},{"attributeType":"list","col":0,"comment":"null","endLoc":30,"id":1084,"name":"extensions","nodeType":"Attribute","startLoc":30,"text":"extensions"},{"col":4,"comment":"\n Get a connection from the pool and perform an HTTP request. This is the\n lowest level call for making a request, so you'll need to specify all\n the raw details.\n\n .. note::\n\n More commonly, it's appropriate to use a convenience method provided\n by :class:`.RequestMethods`, such as :meth:`request`.\n\n .. note::\n\n `release_conn` will only behave as expected if\n `preload_content=False` because we want to make\n `preload_content=False` the default behaviour someday soon without\n breaking backwards compatibility.\n\n :param method:\n HTTP request method (such as GET, POST, PUT, etc.)\n\n :param body:\n Data to send in the request body (useful for creating\n POST requests, see HTTPConnectionPool.post_url for\n more convenience).\n\n :param headers:\n Dictionary of custom headers to send, such as User-Agent,\n If-None-Match, etc. If None, pool headers are used. If provided,\n these headers completely replace any pool-specific headers.\n\n :param retries:\n Number of retries to allow before raising a MaxRetryError exception.\n\n :param redirect:\n If True, automatically handle redirects (status codes 301, 302,\n 303, 307, 308). Each redirect counts as a retry.\n\n :param assert_same_host:\n If ``True``, will make sure that the host of the pool requests is\n consistent else will raise HostChangedError. When False, you can\n use the pool on an HTTP proxy and request foreign hosts.\n\n :param timeout:\n If specified, overrides the default timeout for this one\n request. It may be a float (in seconds) or an instance of\n :class:`urllib3.util.Timeout`.\n\n :param pool_timeout:\n If set and the pool is set to block=True, then this method will\n block for ``pool_timeout`` seconds and raise EmptyPoolError if no\n connection is available within the time period.\n\n :param release_conn:\n If False, then the urlopen call will not release the connection\n back into the pool once a response is received (but will release if\n you read the entire contents of the response such as when\n `preload_content=True`). This is useful if you're not preloading\n the response's content immediately. You will need to call\n ``r.release_conn()`` on the response ``r`` to return the connection\n back into the pool. If None, it takes the value of\n ``response_kw.get('preload_content', True)``.\n\n :param \\**response_kw:\n Additional parameters are passed to\n :meth:`urllib3.response.HTTPResponse.from_httplib`\n ","endLoc":550,"header":"def urlopen(self, method, url, body=None, headers=None, retries=3,\n redirect=True, assert_same_host=True, timeout=_Default,\n pool_timeout=None, release_conn=None, **response_kw)","id":1085,"name":"urlopen","nodeType":"Function","startLoc":380,"text":"def urlopen(self, method, url, body=None, headers=None, retries=3,\n redirect=True, assert_same_host=True, timeout=_Default,\n pool_timeout=None, release_conn=None, **response_kw):\n \"\"\"\n Get a connection from the pool and perform an HTTP request. This is the\n lowest level call for making a request, so you'll need to specify all\n the raw details.\n\n .. note::\n\n More commonly, it's appropriate to use a convenience method provided\n by :class:`.RequestMethods`, such as :meth:`request`.\n\n .. note::\n\n `release_conn` will only behave as expected if\n `preload_content=False` because we want to make\n `preload_content=False` the default behaviour someday soon without\n breaking backwards compatibility.\n\n :param method:\n HTTP request method (such as GET, POST, PUT, etc.)\n\n :param body:\n Data to send in the request body (useful for creating\n POST requests, see HTTPConnectionPool.post_url for\n more convenience).\n\n :param headers:\n Dictionary of custom headers to send, such as User-Agent,\n If-None-Match, etc. If None, pool headers are used. If provided,\n these headers completely replace any pool-specific headers.\n\n :param retries:\n Number of retries to allow before raising a MaxRetryError exception.\n\n :param redirect:\n If True, automatically handle redirects (status codes 301, 302,\n 303, 307, 308). Each redirect counts as a retry.\n\n :param assert_same_host:\n If ``True``, will make sure that the host of the pool requests is\n consistent else will raise HostChangedError. When False, you can\n use the pool on an HTTP proxy and request foreign hosts.\n\n :param timeout:\n If specified, overrides the default timeout for this one\n request. It may be a float (in seconds) or an instance of\n :class:`urllib3.util.Timeout`.\n\n :param pool_timeout:\n If set and the pool is set to block=True, then this method will\n block for ``pool_timeout`` seconds and raise EmptyPoolError if no\n connection is available within the time period.\n\n :param release_conn:\n If False, then the urlopen call will not release the connection\n back into the pool once a response is received (but will release if\n you read the entire contents of the response such as when\n `preload_content=True`). This is useful if you're not preloading\n the response's content immediately. You will need to call\n ``r.release_conn()`` on the response ``r`` to return the connection\n back into the pool. If None, it takes the value of\n ``response_kw.get('preload_content', True)``.\n\n :param \\**response_kw:\n Additional parameters are passed to\n :meth:`urllib3.response.HTTPResponse.from_httplib`\n \"\"\"\n if headers is None:\n headers = self.headers\n\n if retries < 0:\n raise MaxRetryError(self, url)\n\n if release_conn is None:\n release_conn = response_kw.get('preload_content', True)\n\n # Check host\n if assert_same_host and not self.is_same_host(url):\n raise HostChangedError(self, url, retries - 1)\n\n conn = None\n\n try:\n # Request a connection from the queue\n conn = self._get_conn(timeout=pool_timeout)\n\n # Make the request on the httplib connection object\n httplib_response = self._make_request(conn, method, url,\n timeout=timeout,\n body=body, headers=headers)\n\n # If we're going to release the connection in ``finally:``, then\n # the request doesn't need to know about the connection. Otherwise\n # it will also try to release it and we'll have a double-release\n # mess.\n response_conn = not release_conn and conn\n\n # Import httplib's response into our own wrapper object\n response = HTTPResponse.from_httplib(httplib_response,\n pool=self,\n connection=response_conn,\n **response_kw)\n\n # else:\n # The connection will be put back into the pool when\n # ``response.release_conn()`` is called (implicitly by\n # ``response.read()``)\n\n except Empty:\n # Timed out by queue\n raise EmptyPoolError(self, \"No pool connections are available.\")\n\n except BaseSSLError as e:\n raise SSLError(e)\n\n except CertificateError as e:\n # Name mismatch\n raise SSLError(e)\n\n except TimeoutError as e:\n # Connection broken, discard.\n conn = None\n # Save the error off for retry logic.\n err = e\n\n if retries == 0:\n raise\n\n except (HTTPException, SocketError) as e:\n if isinstance(e, SocketError) and self.proxy is not None:\n raise ProxyError('Cannot connect to proxy. '\n 'Socket error: %s.' % e)\n\n # Connection broken, discard. It will be replaced next _get_conn().\n conn = None\n # This is necessary so we can access e below\n err = e\n\n if retries == 0:\n raise MaxRetryError(self, url, e)\n\n finally:\n if release_conn:\n # Put the connection back to be reused. If the connection is\n # expired then it will be None, which will get replaced with a\n # fresh connection during _get_conn.\n self._put_conn(conn)\n\n if not conn:\n # Try again\n log.warn(\"Retrying (%d attempts remain) after connection \"\n \"broken by '%r': %s\" % (retries, err, url))\n return self.urlopen(method, url, body, headers, retries - 1,\n redirect, assert_same_host,\n timeout=timeout, pool_timeout=pool_timeout,\n release_conn=release_conn, **response_kw)\n\n # Handle redirect?\n redirect_location = redirect and response.get_redirect_location()\n if redirect_location:\n if response.status == 303:\n method = 'GET'\n log.info(\"Redirecting %s -> %s\" % (url, redirect_location))\n return self.urlopen(method, redirect_location, body, headers,\n retries - 1, redirect, assert_same_host,\n timeout=timeout, pool_timeout=pool_timeout,\n release_conn=release_conn, **response_kw)\n\n return response"},{"col":4,"comment":"null","endLoc":225,"header":"def __init__(self,\n method=None,\n url=None,\n headers=None,\n files=None,\n data=None,\n params=None,\n auth=None,\n cookies=None,\n hooks=None)","id":1086,"name":"__init__","nodeType":"Function","startLoc":196,"text":"def __init__(self,\n method=None,\n url=None,\n headers=None,\n files=None,\n data=None,\n params=None,\n auth=None,\n cookies=None,\n hooks=None):\n\n # Default empty dicts for dict params.\n data = [] if data is None else data\n files = [] if files is None else files\n headers = {} if headers is None else headers\n params = {} if params is None else params\n hooks = {} if hooks is None else hooks\n\n self.hooks = default_hooks()\n for (k, v) in list(hooks.items()):\n self.register_hook(event=k, hook=v)\n\n self.method = method\n self.url = url\n self.headers = headers\n self.files = files\n self.data = data\n self.params = params\n self.auth = auth\n self.cookies = cookies"},{"className":"HTTPError","col":0,"comment":"An HTTP error occurred.","endLoc":23,"id":1087,"nodeType":"Class","startLoc":17,"text":"class HTTPError(RequestException):\n \"\"\"An HTTP error occurred.\"\"\"\n\n def __init__(self, *args, **kwargs):\n \"\"\" Initializes HTTPError with optional `response` object. \"\"\"\n self.response = kwargs.pop('response', None)\n super(HTTPError, self).__init__(*args, **kwargs)"},{"attributeType":"null","col":8,"comment":"null","endLoc":133,"id":1088,"name":"_mCharToFreqOrder","nodeType":"Attribute","startLoc":133,"text":"self._mCharToFreqOrder"},{"attributeType":"null","col":8,"comment":"null","endLoc":22,"id":1089,"name":"response","nodeType":"Attribute","startLoc":22,"text":"self.response"},{"className":"MissingSchema","col":0,"comment":"The URL schema (e.g. http or https) is missing.","endLoc":51,"id":1090,"nodeType":"Class","startLoc":50,"text":"class MissingSchema(RequestException, ValueError):\n \"\"\"The URL schema (e.g. http or https) is missing.\"\"\""},{"className":"InvalidURL","col":0,"comment":" The URL provided was somehow invalid. ","endLoc":59,"id":1091,"nodeType":"Class","startLoc":58,"text":"class InvalidURL(RequestException, ValueError):\n \"\"\" The URL provided was somehow invalid. \"\"\""},{"className":"ChunkedEncodingError","col":0,"comment":"The server declared chunked encoding but sent an invalid chunk.","endLoc":63,"id":1092,"nodeType":"Class","startLoc":62,"text":"class ChunkedEncodingError(RequestException):\n \"\"\"The server declared chunked encoding but sent an invalid chunk.\"\"\""},{"col":0,"comment":"Tries to guess the filename of the given object.","endLoc":107,"header":"def guess_filename(obj)","id":1093,"name":"guess_filename","nodeType":"Function","startLoc":103,"text":"def guess_filename(obj):\n \"\"\"Tries to guess the filename of the given object.\"\"\"\n name = getattr(obj, 'name', None)\n if name and name[0] != '<' and name[-1] != '>':\n return os.path.basename(name)"},{"attributeType":"null","col":8,"comment":"null","endLoc":134,"id":1094,"name":"_mTableSize","nodeType":"Attribute","startLoc":134,"text":"self._mTableSize"},{"className":"EUCKRProber","col":0,"comment":"null","endLoc":42,"id":1095,"nodeType":"Class","startLoc":34,"text":"class EUCKRProber(MultiByteCharSetProber):\n def __init__(self):\n MultiByteCharSetProber.__init__(self)\n self._mCodingSM = CodingStateMachine(EUCKRSMModel)\n self._mDistributionAnalyzer = EUCKRDistributionAnalysis()\n self.reset()\n\n def get_charset_name(self):\n return \"EUC-KR\""},{"col":4,"comment":"null","endLoc":39,"header":"def __init__(self)","id":1096,"name":"__init__","nodeType":"Function","startLoc":35,"text":"def __init__(self):\n MultiByteCharSetProber.__init__(self)\n self._mCodingSM = CodingStateMachine(EUCKRSMModel)\n self._mDistributionAnalyzer = EUCKRDistributionAnalysis()\n self.reset()"},{"attributeType":"list","col":0,"comment":"null","endLoc":33,"id":1097,"name":"templates_path","nodeType":"Attribute","startLoc":33,"text":"templates_path"},{"attributeType":"str","col":0,"comment":"null","endLoc":36,"id":1098,"name":"source_suffix","nodeType":"Attribute","startLoc":36,"text":"source_suffix"},{"attributeType":"str","col":0,"comment":"null","endLoc":42,"id":1099,"name":"master_doc","nodeType":"Attribute","startLoc":42,"text":"master_doc"},{"attributeType":"str","col":0,"comment":"null","endLoc":45,"id":1100,"name":"project","nodeType":"Attribute","startLoc":45,"text":"project"},{"attributeType":"str","col":0,"comment":"null","endLoc":46,"id":1101,"name":"copyright","nodeType":"Attribute","startLoc":46,"text":"copyright"},{"attributeType":"null","col":0,"comment":"null","endLoc":53,"id":1102,"name":"version","nodeType":"Attribute","startLoc":53,"text":"version"},{"attributeType":"null","col":0,"comment":"null","endLoc":55,"id":1103,"name":"release","nodeType":"Attribute","startLoc":55,"text":"release"},{"attributeType":"list","col":0,"comment":"null","endLoc":69,"id":1104,"name":"exclude_patterns","nodeType":"Attribute","startLoc":69,"text":"exclude_patterns"},{"attributeType":"str","col":0,"comment":"null","endLoc":86,"id":1105,"name":"pygments_style","nodeType":"Attribute","startLoc":86,"text":"pygments_style"},{"attributeType":"str","col":0,"comment":"null","endLoc":96,"id":1106,"name":"html_theme","nodeType":"Attribute","startLoc":96,"text":"html_theme"},{"attributeType":"list","col":0,"comment":"null","endLoc":126,"id":1107,"name":"html_static_path","nodeType":"Attribute","startLoc":126,"text":"html_static_path"},{"col":4,"comment":"null","endLoc":42,"header":"def get_charset_name(self)","id":1108,"name":"get_charset_name","nodeType":"Function","startLoc":41,"text":"def get_charset_name(self):\n return \"EUC-KR\""},{"attributeType":"CodingStateMachine","col":8,"comment":"null","endLoc":37,"id":1109,"name":"_mCodingSM","nodeType":"Attribute","startLoc":37,"text":"self._mCodingSM"},{"attributeType":"TypedDict","col":0,"comment":"null","endLoc":137,"id":1111,"name":"html_sidebars","nodeType":"Attribute","startLoc":137,"text":"html_sidebars"},{"attributeType":"EUCKRDistributionAnalysis","col":8,"comment":"null","endLoc":38,"id":1112,"name":"_mDistributionAnalyzer","nodeType":"Attribute","startLoc":38,"text":"self._mDistributionAnalyzer"},{"col":0,"comment":"Re-quote the given URI.\n\n This function passes the given URI through an unquote/quote cycle to\n ensure that it is fully and consistently quoted.\n ","endLoc":405,"header":"def requote_uri(uri)","id":1114,"name":"requote_uri","nodeType":"Function","startLoc":396,"text":"def requote_uri(uri):\n \"\"\"Re-quote the given URI.\n\n This function passes the given URI through an unquote/quote cycle to\n ensure that it is fully and consistently quoted.\n \"\"\"\n # Unquote only the unreserved characters\n # Then quote only illegal characters (do not quote reserved, unreserved,\n # or '%')\n return quote(unquote_unreserved(uri), safe=\"!#$%&'()*+,/:;=?@[]~\")"},{"attributeType":"bool","col":0,"comment":"null","endLoc":157,"id":1115,"name":"html_show_sourcelink","nodeType":"Attribute","startLoc":157,"text":"html_show_sourcelink"},{"col":0,"comment":"Un-escape any percent-escape sequences in a URI that are unreserved\n characters. This leaves all reserved, illegal and non-ASCII bytes encoded.\n ","endLoc":393,"header":"def unquote_unreserved(uri)","id":1116,"name":"unquote_unreserved","nodeType":"Function","startLoc":374,"text":"def unquote_unreserved(uri):\n \"\"\"Un-escape any percent-escape sequences in a URI that are unreserved\n characters. This leaves all reserved, illegal and non-ASCII bytes encoded.\n \"\"\"\n parts = uri.split('%')\n for i in range(1, len(parts)):\n h = parts[i][0:2]\n if len(h) == 2 and h.isalnum():\n try:\n c = chr(int(h, 16))\n except ValueError:\n raise InvalidURL(\"Invalid percent-escape sequence: '%s'\" % h)\n\n if c in UNRESERVED_SET:\n parts[i] = c + parts[i][2:]\n else:\n parts[i] = '%' + parts[i]\n else:\n parts[i] = '%' + parts[i]\n return ''.join(parts)"},{"attributeType":"bool","col":0,"comment":"null","endLoc":160,"id":1117,"name":"html_show_sphinx","nodeType":"Attribute","startLoc":160,"text":"html_show_sphinx"},{"attributeType":"str","col":0,"comment":"null","endLoc":174,"id":1118,"name":"htmlhelp_basename","nodeType":"Attribute","startLoc":174,"text":"htmlhelp_basename"},{"attributeType":"list","col":0,"comment":"null","endLoc":187,"id":1119,"name":"latex_documents","nodeType":"Attribute","startLoc":187,"text":"latex_documents"},{"attributeType":"list","col":0,"comment":"null","endLoc":220,"id":1120,"name":"man_pages","nodeType":"Attribute","startLoc":220,"text":"man_pages"},{"attributeType":"list","col":0,"comment":"null","endLoc":233,"id":1121,"name":"texinfo_documents","nodeType":"Attribute","startLoc":233,"text":"texinfo_documents"},{"attributeType":"list","col":0,"comment":"null","endLoc":239,"id":1122,"name":"texinfo_appendices","nodeType":"Attribute","startLoc":239,"text":"texinfo_appendices"},{"attributeType":"list","col":0,"comment":"null","endLoc":242,"id":1123,"name":"html_theme_path","nodeType":"Attribute","startLoc":242,"text":"html_theme_path"},{"col":4,"comment":"null","endLoc":228,"header":"def __repr__(self)","id":1124,"name":"__repr__","nodeType":"Function","startLoc":227,"text":"def __repr__(self):\n return '' % (self.method)"},{"col":4,"comment":"Constructs a :class:`PreparedRequest ` for transmission and returns it.","endLoc":244,"header":"def prepare(self)","id":1125,"name":"prepare","nodeType":"Function","startLoc":230,"text":"def prepare(self):\n \"\"\"Constructs a :class:`PreparedRequest ` for transmission and returns it.\"\"\"\n p = PreparedRequest()\n p.prepare(\n method=self.method,\n url=self.url,\n headers=self.headers,\n files=self.files,\n data=self.data,\n params=self.params,\n auth=self.auth,\n cookies=self.cookies,\n hooks=self.hooks,\n )\n return p"},{"attributeType":"str","col":0,"comment":"null","endLoc":243,"id":1126,"name":"html_theme","nodeType":"Attribute","startLoc":243,"text":"html_theme"},{"col":0,"comment":"","endLoc":14,"header":"conf.py#","id":1127,"name":"","nodeType":"Function","startLoc":14,"text":"sys.path.insert(0, os.path.abspath('..'))\n\nextensions = ['sphinx.ext.autodoc']\n\ntemplates_path = ['_templates']\n\nsource_suffix = '.rst'\n\nmaster_doc = 'index'\n\nproject = u'Requests'\n\ncopyright = u'2013. A Kenneth Reitz Project'\n\nversion = __version__\n\nrelease = version\n\nexclude_patterns = ['_build']\n\npygments_style = 'flask_theme_support.FlaskyStyle'\n\nhtml_theme = 'default'\n\nhtml_static_path = ['_static']\n\nhtml_sidebars = {\n 'index': ['sidebarintro.html', 'sourcelink.html', 'searchbox.html'],\n '**': ['sidebarlogo.html', 'localtoc.html', 'relations.html',\n 'sourcelink.html', 'searchbox.html']\n}\n\nhtml_show_sourcelink = False\n\nhtml_show_sphinx = False\n\nhtmlhelp_basename = 'Requestsdoc'\n\nlatex_documents = [\n ('index', 'Requests.tex', u'Requests Documentation',\n u'Kenneth Reitz', 'manual'),\n]\n\nman_pages = [\n ('index', 'requests', u'Requests Documentation',\n [u'Kenneth Reitz'], 1)\n]\n\ntexinfo_documents = [\n ('index', 'Requests', u'Requests Documentation', u'Kenneth Reitz',\n 'Requests', 'One line description of project.', 'Miscellaneous'),\n]\n\ntexinfo_appendices = []\n\nsys.path.append(os.path.abspath('_themes'))\n\nhtml_theme_path = ['_themes']\n\nhtml_theme = 'kr'"},{"className":"JapaneseContextAnalysis","col":0,"comment":"null","endLoc":177,"id":1129,"nodeType":"Class","startLoc":123,"text":"class JapaneseContextAnalysis:\n def __init__(self):\n self.reset()\n\n def reset(self):\n self._mTotalRel = 0 # total sequence received\n # category counters, each interger counts sequence in its category\n self._mRelSample = [0] * NUM_OF_CATEGORY\n # if last byte in current buffer is not the last byte of a character,\n # we need to know how many bytes to skip in next buffer\n self._mNeedToSkipCharNum = 0\n self._mLastCharOrder = -1 # The order of previous char\n # If this flag is set to True, detection is done and conclusion has\n # been made\n self._mDone = False\n\n def feed(self, aBuf, aLen):\n if self._mDone:\n return\n\n # The buffer we got is byte oriented, and a character may span in more than one\n # buffers. In case the last one or two byte in last buffer is not\n # complete, we record how many byte needed to complete that character\n # and skip these bytes here. We can choose to record those bytes as\n # well and analyse the character once it is complete, but since a\n # character will not make much difference, by simply skipping\n # this character will simply our logic and improve performance.\n i = self._mNeedToSkipCharNum\n while i < aLen:\n order, charLen = self.get_order(aBuf[i:i + 2])\n i += charLen\n if i > aLen:\n self._mNeedToSkipCharNum = i - aLen\n self._mLastCharOrder = -1\n else:\n if (order != -1) and (self._mLastCharOrder != -1):\n self._mTotalRel += 1\n if self._mTotalRel > MAX_REL_THRESHOLD:\n self._mDone = True\n break\n self._mRelSample[jp2CharContext[self._mLastCharOrder][order]] += 1\n self._mLastCharOrder = order\n\n def got_enough_data(self):\n return self._mTotalRel > ENOUGH_REL_THRESHOLD\n\n def get_confidence(self):\n # This is just one way to calculate confidence. It works well for me.\n if self._mTotalRel > MINIMUM_DATA_THRESHOLD:\n return float(self._mTotalRel - self._mRelSample[0]) / self._mTotalRel\n else:\n return DONT_KNOW\n\n def get_order(self, aBuf):\n return -1, 1"},{"col":4,"comment":"null","endLoc":125,"header":"def __init__(self)","id":1130,"name":"__init__","nodeType":"Function","startLoc":124,"text":"def __init__(self):\n self.reset()"},{"col":4,"comment":"null","endLoc":276,"header":"def __init__(self)","id":1131,"name":"__init__","nodeType":"Function","startLoc":266,"text":"def __init__(self):\n #: HTTP verb to send to the server.\n self.method = None\n #: HTTP URL to send the request to.\n self.url = None\n #: dictionary of HTTP headers.\n self.headers = None\n #: request body to send to the server.\n self.body = None\n #: dictionary of callback hooks, for internal usage.\n self.hooks = default_hooks()"},{"className":"EUCJPContextAnalysis","col":0,"comment":"null","endLoc":217,"id":1132,"nodeType":"Class","startLoc":198,"text":"class EUCJPContextAnalysis(JapaneseContextAnalysis):\n def get_order(self, aBuf):\n if not aBuf:\n return -1, 1\n # find out current char's byte length\n first_char = wrap_ord(aBuf[0])\n if (first_char == 0x8E) or (0xA1 <= first_char <= 0xFE):\n charLen = 2\n elif first_char == 0x8F:\n charLen = 3\n else:\n charLen = 1\n\n # return its order if it is hiragana\n if len(aBuf) > 1:\n second_char = wrap_ord(aBuf[1])\n if (first_char == 0xA4) and (0xA1 <= second_char <= 0xF3):\n return second_char - 0xA1, charLen\n\n return -1, charLen"},{"col":4,"comment":"null","endLoc":217,"header":"def get_order(self, aBuf)","id":1133,"name":"get_order","nodeType":"Function","startLoc":199,"text":"def get_order(self, aBuf):\n if not aBuf:\n return -1, 1\n # find out current char's byte length\n first_char = wrap_ord(aBuf[0])\n if (first_char == 0x8E) or (0xA1 <= first_char <= 0xFE):\n charLen = 2\n elif first_char == 0x8F:\n charLen = 3\n else:\n charLen = 1\n\n # return its order if it is hiragana\n if len(aBuf) > 1:\n second_char = wrap_ord(aBuf[1])\n if (first_char == 0xA4) and (0xA1 <= second_char <= 0xF3):\n return second_char - 0xA1, charLen\n\n return -1, charLen"},{"col":4,"comment":"null","endLoc":137,"header":"def reset(self)","id":1134,"name":"reset","nodeType":"Function","startLoc":127,"text":"def reset(self):\n self._mTotalRel = 0 # total sequence received\n # category counters, each interger counts sequence in its category\n self._mRelSample = [0] * NUM_OF_CATEGORY\n # if last byte in current buffer is not the last byte of a character,\n # we need to know how many bytes to skip in next buffer\n self._mNeedToSkipCharNum = 0\n self._mLastCharOrder = -1 # The order of previous char\n # If this flag is set to True, detection is done and conclusion has\n # been made\n self._mDone = False"},{"col":4,"comment":"null","endLoc":164,"header":"def feed(self, aBuf, aLen)","id":1135,"name":"feed","nodeType":"Function","startLoc":139,"text":"def feed(self, aBuf, aLen):\n if self._mDone:\n return\n\n # The buffer we got is byte oriented, and a character may span in more than one\n # buffers. In case the last one or two byte in last buffer is not\n # complete, we record how many byte needed to complete that character\n # and skip these bytes here. We can choose to record those bytes as\n # well and analyse the character once it is complete, but since a\n # character will not make much difference, by simply skipping\n # this character will simply our logic and improve performance.\n i = self._mNeedToSkipCharNum\n while i < aLen:\n order, charLen = self.get_order(aBuf[i:i + 2])\n i += charLen\n if i > aLen:\n self._mNeedToSkipCharNum = i - aLen\n self._mLastCharOrder = -1\n else:\n if (order != -1) and (self._mLastCharOrder != -1):\n self._mTotalRel += 1\n if self._mTotalRel > MAX_REL_THRESHOLD:\n self._mDone = True\n break\n self._mRelSample[jp2CharContext[self._mLastCharOrder][order]] += 1\n self._mLastCharOrder = order"},{"col":4,"comment":"null","endLoc":177,"header":"def get_order(self, aBuf)","id":1136,"name":"get_order","nodeType":"Function","startLoc":176,"text":"def get_order(self, aBuf):\n return -1, 1"},{"col":4,"comment":"null","endLoc":167,"header":"def got_enough_data(self)","id":1137,"name":"got_enough_data","nodeType":"Function","startLoc":166,"text":"def got_enough_data(self):\n return self._mTotalRel > ENOUGH_REL_THRESHOLD"},{"col":4,"comment":"null","endLoc":174,"header":"def get_confidence(self)","id":1138,"name":"get_confidence","nodeType":"Function","startLoc":169,"text":"def get_confidence(self):\n # This is just one way to calculate confidence. It works well for me.\n if self._mTotalRel > MINIMUM_DATA_THRESHOLD:\n return float(self._mTotalRel - self._mRelSample[0]) / self._mTotalRel\n else:\n return DONT_KNOW"},{"attributeType":"null","col":8,"comment":"null","endLoc":220,"id":1139,"name":"headers","nodeType":"Attribute","startLoc":220,"text":"self.headers"},{"className":"EUCJPProber","col":0,"comment":"null","endLoc":90,"id":1140,"nodeType":"Class","startLoc":37,"text":"class EUCJPProber(MultiByteCharSetProber):\n def __init__(self):\n MultiByteCharSetProber.__init__(self)\n self._mCodingSM = CodingStateMachine(EUCJPSMModel)\n self._mDistributionAnalyzer = EUCJPDistributionAnalysis()\n self._mContextAnalyzer = EUCJPContextAnalysis()\n self.reset()\n\n def reset(self):\n MultiByteCharSetProber.reset(self)\n self._mContextAnalyzer.reset()\n\n def get_charset_name(self):\n return \"EUC-JP\"\n\n def feed(self, aBuf):\n aLen = len(aBuf)\n for i in range(0, aLen):\n # PY3K: aBuf is a byte array, so aBuf[i] is an int, not a byte\n codingState = self._mCodingSM.next_state(aBuf[i])\n if codingState == constants.eError:\n if constants._debug:\n sys.stderr.write(self.get_charset_name()\n + ' prober hit error at byte ' + str(i)\n + '\\n')\n self._mState = constants.eNotMe\n break\n elif codingState == constants.eItsMe:\n self._mState = constants.eFoundIt\n break\n elif codingState == constants.eStart:\n charLen = self._mCodingSM.get_current_charlen()\n if i == 0:\n self._mLastChar[1] = aBuf[0]\n self._mContextAnalyzer.feed(self._mLastChar, charLen)\n self._mDistributionAnalyzer.feed(self._mLastChar, charLen)\n else:\n self._mContextAnalyzer.feed(aBuf[i - 1:i + 1], charLen)\n self._mDistributionAnalyzer.feed(aBuf[i - 1:i + 1],\n charLen)\n\n self._mLastChar[0] = aBuf[aLen - 1]\n\n if self.get_state() == constants.eDetecting:\n if (self._mContextAnalyzer.got_enough_data() and\n (self.get_confidence() > constants.SHORTCUT_THRESHOLD)):\n self._mState = constants.eFoundIt\n\n return self.get_state()\n\n def get_confidence(self):\n contxtCf = self._mContextAnalyzer.get_confidence()\n distribCf = self._mDistributionAnalyzer.get_confidence()\n return max(contxtCf, distribCf)"},{"col":4,"comment":"null","endLoc":43,"header":"def __init__(self)","id":1141,"name":"__init__","nodeType":"Function","startLoc":38,"text":"def __init__(self):\n MultiByteCharSetProber.__init__(self)\n self._mCodingSM = CodingStateMachine(EUCJPSMModel)\n self._mDistributionAnalyzer = EUCJPDistributionAnalysis()\n self._mContextAnalyzer = EUCJPContextAnalysis()\n self.reset()"},{"attributeType":"null","col":8,"comment":"null","endLoc":218,"id":1142,"name":"method","nodeType":"Attribute","startLoc":218,"text":"self.method"},{"attributeType":"null","col":8,"comment":"null","endLoc":222,"id":1143,"name":"data","nodeType":"Attribute","startLoc":222,"text":"self.data"},{"attributeType":"null","col":4,"comment":"null","endLoc":47,"id":1144,"name":"_encode_url_methods","nodeType":"Attribute","startLoc":47,"text":"_encode_url_methods"},{"attributeType":"null","col":4,"comment":"null","endLoc":48,"id":1145,"name":"_encode_body_methods","nodeType":"Attribute","startLoc":48,"text":"_encode_body_methods"},{"attributeType":"null","col":8,"comment":"null","endLoc":51,"id":1146,"name":"headers","nodeType":"Attribute","startLoc":51,"text":"self.headers"},{"attributeType":"null","col":8,"comment":"null","endLoc":224,"id":1147,"name":"auth","nodeType":"Attribute","startLoc":224,"text":"self.auth"},{"className":"HTTPSConnectionPool","col":0,"comment":"\n Same as :class:`.HTTPConnectionPool`, but HTTPS.\n\n When Python is compiled with the :mod:`ssl` module, then\n :class:`.VerifiedHTTPSConnection` is used, which *can* verify certificates,\n instead of :class:`httplib.HTTPSConnection`.\n\n :class:`.VerifiedHTTPSConnection` uses one of ``assert_fingerprint``,\n ``assert_hostname`` and ``host`` in this order to verify connections.\n If ``assert_hostname`` is False, no verification is done.\n\n The ``key_file``, ``cert_file``, ``cert_reqs``, ``ca_certs`` and\n ``ssl_version`` are only used if :mod:`ssl` is available and are fed into\n :meth:`urllib3.util.ssl_wrap_socket` to upgrade the connection socket\n into an SSL socket.\n ","endLoc":647,"id":1148,"nodeType":"Class","startLoc":553,"text":"class HTTPSConnectionPool(HTTPConnectionPool):\n \"\"\"\n Same as :class:`.HTTPConnectionPool`, but HTTPS.\n\n When Python is compiled with the :mod:`ssl` module, then\n :class:`.VerifiedHTTPSConnection` is used, which *can* verify certificates,\n instead of :class:`httplib.HTTPSConnection`.\n\n :class:`.VerifiedHTTPSConnection` uses one of ``assert_fingerprint``,\n ``assert_hostname`` and ``host`` in this order to verify connections.\n If ``assert_hostname`` is False, no verification is done.\n\n The ``key_file``, ``cert_file``, ``cert_reqs``, ``ca_certs`` and\n ``ssl_version`` are only used if :mod:`ssl` is available and are fed into\n :meth:`urllib3.util.ssl_wrap_socket` to upgrade the connection socket\n into an SSL socket.\n \"\"\"\n\n scheme = 'https'\n ConnectionCls = HTTPSConnection\n\n def __init__(self, host, port=None,\n strict=False, timeout=None, maxsize=1,\n block=False, headers=None,\n _proxy=None, _proxy_headers=None,\n key_file=None, cert_file=None, cert_reqs=None,\n ca_certs=None, ssl_version=None,\n assert_hostname=None, assert_fingerprint=None):\n\n HTTPConnectionPool.__init__(self, host, port, strict, timeout, maxsize,\n block, headers, _proxy, _proxy_headers)\n self.key_file = key_file\n self.cert_file = cert_file\n self.cert_reqs = cert_reqs\n self.ca_certs = ca_certs\n self.ssl_version = ssl_version\n self.assert_hostname = assert_hostname\n self.assert_fingerprint = assert_fingerprint\n\n def _prepare_conn(self, conn):\n \"\"\"\n Prepare the ``connection`` for :meth:`urllib3.util.ssl_wrap_socket`\n and establish the tunnel if proxy is used.\n \"\"\"\n\n if isinstance(conn, VerifiedHTTPSConnection):\n conn.set_cert(key_file=self.key_file,\n cert_file=self.cert_file,\n cert_reqs=self.cert_reqs,\n ca_certs=self.ca_certs,\n assert_hostname=self.assert_hostname,\n assert_fingerprint=self.assert_fingerprint)\n conn.ssl_version = self.ssl_version\n\n if self.proxy is not None:\n # Python 2.7+\n try:\n set_tunnel = conn.set_tunnel\n except AttributeError: # Platform-specific: Python 2.6\n set_tunnel = conn._set_tunnel\n set_tunnel(self.host, self.port, self.proxy_headers)\n # Establish tunnel connection early, because otherwise httplib\n # would improperly set Host: header to proxy's IP:port.\n conn.connect()\n\n return conn\n\n def _new_conn(self):\n \"\"\"\n Return a fresh :class:`httplib.HTTPSConnection`.\n \"\"\"\n self.num_connections += 1\n log.info(\"Starting new HTTPS connection (%d): %s\"\n % (self.num_connections, self.host))\n\n if not self.ConnectionCls or self.ConnectionCls is DummyConnection:\n # Platform-specific: Python without ssl\n raise SSLError(\"Can't connect to HTTPS URL because the SSL \"\n \"module is not available.\")\n\n actual_host = self.host\n actual_port = self.port\n if self.proxy is not None:\n actual_host = self.proxy.host\n actual_port = self.proxy.port\n\n extra_params = {}\n if not six.PY3: # Python 2\n extra_params['strict'] = self.strict\n\n conn = self.ConnectionCls(host=actual_host, port=actual_port,\n timeout=self.timeout.connect_timeout,\n **extra_params)\n\n return self._prepare_conn(conn)"},{"col":4,"comment":"null","endLoc":590,"header":"def __init__(self, host, port=None,\n strict=False, timeout=None, maxsize=1,\n block=False, headers=None,\n _proxy=None, _proxy_headers=None,\n key_file=None, cert_file=None, cert_reqs=None,\n ca_certs=None, ssl_version=None,\n assert_hostname=None, assert_fingerprint=None)","id":1149,"name":"__init__","nodeType":"Function","startLoc":574,"text":"def __init__(self, host, port=None,\n strict=False, timeout=None, maxsize=1,\n block=False, headers=None,\n _proxy=None, _proxy_headers=None,\n key_file=None, cert_file=None, cert_reqs=None,\n ca_certs=None, ssl_version=None,\n assert_hostname=None, assert_fingerprint=None):\n\n HTTPConnectionPool.__init__(self, host, port, strict, timeout, maxsize,\n block, headers, _proxy, _proxy_headers)\n self.key_file = key_file\n self.cert_file = cert_file\n self.cert_reqs = cert_reqs\n self.ca_certs = ca_certs\n self.ssl_version = ssl_version\n self.assert_hostname = assert_hostname\n self.assert_fingerprint = assert_fingerprint"},{"col":4,"comment":"null","endLoc":47,"header":"def reset(self)","id":1150,"name":"reset","nodeType":"Function","startLoc":45,"text":"def reset(self):\n MultiByteCharSetProber.reset(self)\n self._mContextAnalyzer.reset()"},{"col":4,"comment":"null","endLoc":50,"header":"def get_charset_name(self)","id":1151,"name":"get_charset_name","nodeType":"Function","startLoc":49,"text":"def get_charset_name(self):\n return \"EUC-JP\""},{"col":4,"comment":"null","endLoc":85,"header":"def feed(self, aBuf)","id":1152,"name":"feed","nodeType":"Function","startLoc":52,"text":"def feed(self, aBuf):\n aLen = len(aBuf)\n for i in range(0, aLen):\n # PY3K: aBuf is a byte array, so aBuf[i] is an int, not a byte\n codingState = self._mCodingSM.next_state(aBuf[i])\n if codingState == constants.eError:\n if constants._debug:\n sys.stderr.write(self.get_charset_name()\n + ' prober hit error at byte ' + str(i)\n + '\\n')\n self._mState = constants.eNotMe\n break\n elif codingState == constants.eItsMe:\n self._mState = constants.eFoundIt\n break\n elif codingState == constants.eStart:\n charLen = self._mCodingSM.get_current_charlen()\n if i == 0:\n self._mLastChar[1] = aBuf[0]\n self._mContextAnalyzer.feed(self._mLastChar, charLen)\n self._mDistributionAnalyzer.feed(self._mLastChar, charLen)\n else:\n self._mContextAnalyzer.feed(aBuf[i - 1:i + 1], charLen)\n self._mDistributionAnalyzer.feed(aBuf[i - 1:i + 1],\n charLen)\n\n self._mLastChar[0] = aBuf[aLen - 1]\n\n if self.get_state() == constants.eDetecting:\n if (self._mContextAnalyzer.got_enough_data() and\n (self.get_confidence() > constants.SHORTCUT_THRESHOLD)):\n self._mState = constants.eFoundIt\n\n return self.get_state()"},{"attributeType":"null","col":8,"comment":"null","endLoc":221,"id":1154,"name":"files","nodeType":"Attribute","startLoc":221,"text":"self.files"},{"attributeType":"null","col":4,"comment":"null","endLoc":138,"id":1155,"name":"scheme","nodeType":"Attribute","startLoc":138,"text":"scheme"},{"attributeType":"HTTPConnection","col":4,"comment":"null","endLoc":139,"id":1156,"name":"ConnectionCls","nodeType":"Attribute","startLoc":139,"text":"ConnectionCls"},{"attributeType":"null","col":8,"comment":"null","endLoc":159,"id":1157,"name":"proxy","nodeType":"Attribute","startLoc":159,"text":"self.proxy"},{"attributeType":"null","col":8,"comment":"null","endLoc":160,"id":1158,"name":"proxy_headers","nodeType":"Attribute","startLoc":160,"text":"self.proxy_headers"},{"attributeType":"null","col":8,"comment":"null","endLoc":223,"id":1159,"name":"params","nodeType":"Attribute","startLoc":223,"text":"self.params"},{"attributeType":"null","col":8,"comment":"null","endLoc":156,"id":1160,"name":"pool","nodeType":"Attribute","startLoc":156,"text":"self.pool"},{"attributeType":"null","col":8,"comment":"null","endLoc":168,"id":1161,"name":"num_requests","nodeType":"Attribute","startLoc":168,"text":"self.num_requests"},{"attributeType":"null","col":8,"comment":"null","endLoc":133,"id":1162,"name":"_mNeedToSkipCharNum","nodeType":"Attribute","startLoc":133,"text":"self._mNeedToSkipCharNum"},{"attributeType":"null","col":8,"comment":"null","endLoc":157,"id":1163,"name":"block","nodeType":"Attribute","startLoc":157,"text":"self.block"},{"attributeType":"null","col":8,"comment":"null","endLoc":128,"id":1164,"name":"_mTotalRel","nodeType":"Attribute","startLoc":128,"text":"self._mTotalRel"},{"attributeType":"null","col":8,"comment":"null","endLoc":130,"id":1165,"name":"_mRelSample","nodeType":"Attribute","startLoc":130,"text":"self._mRelSample"},{"attributeType":"null","col":8,"comment":"null","endLoc":137,"id":1166,"name":"_mDone","nodeType":"Attribute","startLoc":137,"text":"self._mDone"},{"attributeType":"null","col":8,"comment":"null","endLoc":134,"id":1167,"name":"_mLastCharOrder","nodeType":"Attribute","startLoc":134,"text":"self._mLastCharOrder"},{"col":4,"comment":"null","endLoc":196,"header":"def get_order(self, aBuf)","id":1168,"name":"get_order","nodeType":"Function","startLoc":180,"text":"def get_order(self, aBuf):\n if not aBuf:\n return -1, 1\n # find out current char's byte length\n first_char = wrap_ord(aBuf[0])\n if ((0x81 <= first_char <= 0x9F) or (0xE0 <= first_char <= 0xFC)):\n charLen = 2\n else:\n charLen = 1\n\n # return its order if it is hiragana\n if len(aBuf) > 1:\n second_char = wrap_ord(aBuf[1])\n if (first_char == 202) and (0x9F <= second_char <= 0xF1):\n return second_char - 0x9F, charLen\n\n return -1, charLen"},{"attributeType":"null","col":8,"comment":"null","endLoc":167,"id":1169,"name":"num_connections","nodeType":"Attribute","startLoc":167,"text":"self.num_connections"},{"attributeType":"null","col":8,"comment":"null","endLoc":214,"id":1170,"name":"hooks","nodeType":"Attribute","startLoc":214,"text":"self.hooks"},{"attributeType":"null","col":8,"comment":"null","endLoc":147,"id":1171,"name":"strict","nodeType":"Attribute","startLoc":147,"text":"self.strict"},{"className":"SJISProber","col":0,"comment":"null","endLoc":91,"id":1172,"nodeType":"Class","startLoc":37,"text":"class SJISProber(MultiByteCharSetProber):\n def __init__(self):\n MultiByteCharSetProber.__init__(self)\n self._mCodingSM = CodingStateMachine(SJISSMModel)\n self._mDistributionAnalyzer = SJISDistributionAnalysis()\n self._mContextAnalyzer = SJISContextAnalysis()\n self.reset()\n\n def reset(self):\n MultiByteCharSetProber.reset(self)\n self._mContextAnalyzer.reset()\n\n def get_charset_name(self):\n return \"SHIFT_JIS\"\n\n def feed(self, aBuf):\n aLen = len(aBuf)\n for i in range(0, aLen):\n codingState = self._mCodingSM.next_state(aBuf[i])\n if codingState == constants.eError:\n if constants._debug:\n sys.stderr.write(self.get_charset_name()\n + ' prober hit error at byte ' + str(i)\n + '\\n')\n self._mState = constants.eNotMe\n break\n elif codingState == constants.eItsMe:\n self._mState = constants.eFoundIt\n break\n elif codingState == constants.eStart:\n charLen = self._mCodingSM.get_current_charlen()\n if i == 0:\n self._mLastChar[1] = aBuf[0]\n self._mContextAnalyzer.feed(self._mLastChar[2 - charLen:],\n charLen)\n self._mDistributionAnalyzer.feed(self._mLastChar, charLen)\n else:\n self._mContextAnalyzer.feed(aBuf[i + 1 - charLen:i + 3\n - charLen], charLen)\n self._mDistributionAnalyzer.feed(aBuf[i - 1:i + 1],\n charLen)\n\n self._mLastChar[0] = aBuf[aLen - 1]\n\n if self.get_state() == constants.eDetecting:\n if (self._mContextAnalyzer.got_enough_data() and\n (self.get_confidence() > constants.SHORTCUT_THRESHOLD)):\n self._mState = constants.eFoundIt\n\n return self.get_state()\n\n def get_confidence(self):\n contxtCf = self._mContextAnalyzer.get_confidence()\n distribCf = self._mDistributionAnalyzer.get_confidence()\n return max(contxtCf, distribCf)"},{"col":4,"comment":"null","endLoc":43,"header":"def __init__(self)","id":1173,"name":"__init__","nodeType":"Function","startLoc":38,"text":"def __init__(self):\n MultiByteCharSetProber.__init__(self)\n self._mCodingSM = CodingStateMachine(SJISSMModel)\n self._mDistributionAnalyzer = SJISDistributionAnalysis()\n self._mContextAnalyzer = SJISContextAnalysis()\n self.reset()"},{"attributeType":"null","col":8,"comment":"null","endLoc":154,"id":1174,"name":"timeout","nodeType":"Attribute","startLoc":154,"text":"self.timeout"},{"attributeType":"null","col":0,"comment":"null","endLoc":54,"id":1175,"name":"port_by_scheme","nodeType":"Attribute","startLoc":54,"text":"port_by_scheme"},{"attributeType":"null","col":8,"comment":"null","endLoc":219,"id":1176,"name":"url","nodeType":"Attribute","startLoc":219,"text":"self.url"},{"className":"ProxyManager","col":0,"comment":"\n Behaves just like :class:`PoolManager`, but sends all requests through\n the defined proxy, using the CONNECT method for HTTPS URLs.\n\n :param poxy_url:\n The URL of the proxy to be used.\n\n :param proxy_headers:\n A dictionary contaning headers that will be sent to the proxy. In case\n of HTTP they are being sent with each request, while in the\n HTTPS/CONNECT case they are sent only once. Could be used for proxy\n authentication.\n\n Example:\n >>> proxy = urllib3.ProxyManager('http://localhost:3128/')\n >>> r1 = proxy.request('GET', 'http://google.com/')\n >>> r2 = proxy.request('GET', 'http://httpbin.org/')\n >>> len(proxy.pools)\n 1\n >>> r3 = proxy.request('GET', 'https://httpbin.org/')\n >>> r4 = proxy.request('GET', 'https://twitter.com/')\n >>> len(proxy.pools)\n 3\n\n ","endLoc":255,"id":1177,"nodeType":"Class","startLoc":174,"text":"class ProxyManager(PoolManager):\n \"\"\"\n Behaves just like :class:`PoolManager`, but sends all requests through\n the defined proxy, using the CONNECT method for HTTPS URLs.\n\n :param poxy_url:\n The URL of the proxy to be used.\n\n :param proxy_headers:\n A dictionary contaning headers that will be sent to the proxy. In case\n of HTTP they are being sent with each request, while in the\n HTTPS/CONNECT case they are sent only once. Could be used for proxy\n authentication.\n\n Example:\n >>> proxy = urllib3.ProxyManager('http://localhost:3128/')\n >>> r1 = proxy.request('GET', 'http://google.com/')\n >>> r2 = proxy.request('GET', 'http://httpbin.org/')\n >>> len(proxy.pools)\n 1\n >>> r3 = proxy.request('GET', 'https://httpbin.org/')\n >>> r4 = proxy.request('GET', 'https://twitter.com/')\n >>> len(proxy.pools)\n 3\n\n \"\"\"\n\n def __init__(self, proxy_url, num_pools=10, headers=None,\n proxy_headers=None, **connection_pool_kw):\n\n if isinstance(proxy_url, HTTPConnectionPool):\n proxy_url = '%s://%s:%i' % (proxy_url.scheme, proxy_url.host,\n proxy_url.port)\n proxy = parse_url(proxy_url)\n if not proxy.port:\n port = port_by_scheme.get(proxy.scheme, 80)\n proxy = proxy._replace(port=port)\n self.proxy = proxy\n self.proxy_headers = proxy_headers or {}\n assert self.proxy.scheme in (\"http\", \"https\"), \\\n 'Not supported proxy scheme %s' % self.proxy.scheme\n connection_pool_kw['_proxy'] = self.proxy\n connection_pool_kw['_proxy_headers'] = self.proxy_headers\n super(ProxyManager, self).__init__(\n num_pools, headers, **connection_pool_kw)\n\n def connection_from_host(self, host, port=None, scheme='http'):\n if scheme == \"https\":\n return super(ProxyManager, self).connection_from_host(\n host, port, scheme)\n\n return super(ProxyManager, self).connection_from_host(\n self.proxy.host, self.proxy.port, self.proxy.scheme)\n\n def _set_proxy_headers(self, url, headers=None):\n \"\"\"\n Sets headers needed by proxies: specifically, the Accept and Host\n headers. Only sets headers not provided by the user.\n \"\"\"\n headers_ = {'Accept': '*/*'}\n\n netloc = parse_url(url).netloc\n if netloc:\n headers_['Host'] = netloc\n\n if headers:\n headers_.update(headers)\n return headers_\n\n def urlopen(self, method, url, redirect=True, **kw):\n \"Same as HTTP(S)ConnectionPool.urlopen, ``url`` must be absolute.\"\n u = parse_url(url)\n\n if u.scheme == \"http\":\n # It's too late to set proxy headers on per-request basis for\n # tunnelled HTTPS connections, should use\n # constructor's proxy_headers instead.\n kw['headers'] = self._set_proxy_headers(url, kw.get('headers',\n self.headers))\n kw['headers'].update(self.proxy_headers)\n\n return super(ProxyManager, self).urlopen(method, url, redirect, **kw)"},{"col":4,"comment":"null","endLoc":226,"header":"def connection_from_host(self, host, port=None, scheme='http')","id":1178,"name":"connection_from_host","nodeType":"Function","startLoc":220,"text":"def connection_from_host(self, host, port=None, scheme='http'):\n if scheme == \"https\":\n return super(ProxyManager, self).connection_from_host(\n host, port, scheme)\n\n return super(ProxyManager, self).connection_from_host(\n self.proxy.host, self.proxy.port, self.proxy.scheme)"},{"attributeType":"null","col":8,"comment":"null","endLoc":225,"id":1179,"name":"cookies","nodeType":"Attribute","startLoc":225,"text":"self.cookies"},{"fileName":"langhebrewmodel.py","filePath":"requests/packages/charade","id":1180,"nodeType":"File","text":"######################## BEGIN LICENSE BLOCK ########################\n# The Original Code is Mozilla Universal charset detector code.\n#\n# The Initial Developer of the Original Code is\n# Simon Montagu\n# Portions created by the Initial Developer are Copyright (C) 2005\n# the Initial Developer. All Rights Reserved.\n#\n# Contributor(s):\n# Mark Pilgrim - port to Python\n# Shy Shalom - original C code\n# Shoshannah Forbes - original C code (?)\n#\n# This library is free software; you can redistribute it and/or\n# modify it under the terms of the GNU Lesser General Public\n# License as published by the Free Software Foundation; either\n# version 2.1 of the License, or (at your option) any later version.\n#\n# This library is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n# Lesser General Public License for more details.\n#\n# You should have received a copy of the GNU Lesser General Public\n# License along with this library; if not, write to the Free Software\n# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n# 02110-1301 USA\n######################### END LICENSE BLOCK #########################\n\n# 255: Control characters that usually does not exist in any text\n# 254: Carriage/Return\n# 253: symbol (punctuation) that does not belong to word\n# 252: 0 - 9\n\n# Windows-1255 language model\n# Character Mapping Table:\nwin1255_CharToOrderMap = (\n255,255,255,255,255,255,255,255,255,255,254,255,255,254,255,255, # 00\n255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, # 10\n253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253, # 20\n252,252,252,252,252,252,252,252,252,252,253,253,253,253,253,253, # 30\n253, 69, 91, 79, 80, 92, 89, 97, 90, 68,111,112, 82, 73, 95, 85, # 40\n 78,121, 86, 71, 67,102,107, 84,114,103,115,253,253,253,253,253, # 50\n253, 50, 74, 60, 61, 42, 76, 70, 64, 53,105, 93, 56, 65, 54, 49, # 60\n 66,110, 51, 43, 44, 63, 81, 77, 98, 75,108,253,253,253,253,253, # 70\n124,202,203,204,205, 40, 58,206,207,208,209,210,211,212,213,214,\n215, 83, 52, 47, 46, 72, 32, 94,216,113,217,109,218,219,220,221,\n 34,116,222,118,100,223,224,117,119,104,125,225,226, 87, 99,227,\n106,122,123,228, 55,229,230,101,231,232,120,233, 48, 39, 57,234,\n 30, 59, 41, 88, 33, 37, 36, 31, 29, 35,235, 62, 28,236,126,237,\n238, 38, 45,239,240,241,242,243,127,244,245,246,247,248,249,250,\n 9, 8, 20, 16, 3, 2, 24, 14, 22, 1, 25, 15, 4, 11, 6, 23,\n 12, 19, 13, 26, 18, 27, 21, 17, 7, 10, 5,251,252,128, 96,253,\n)\n\n# Model Table:\n# total sequences: 100%\n# first 512 sequences: 98.4004%\n# first 1024 sequences: 1.5981%\n# rest sequences: 0.087%\n# negative sequences: 0.0015%\nHebrewLangModel = (\n0,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,3,3,3,3,3,2,3,2,1,2,0,1,0,0,\n3,0,3,1,0,0,1,3,2,0,1,1,2,0,2,2,2,1,1,1,1,2,1,1,1,2,0,0,2,2,0,1,\n3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,\n1,2,1,2,1,2,0,0,2,0,0,0,0,0,1,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,\n3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,\n1,2,1,3,1,1,0,0,2,0,0,0,1,0,1,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,\n3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,1,0,1,2,2,1,3,\n1,2,1,1,2,2,0,0,2,2,0,0,0,0,1,0,1,0,0,0,1,0,0,0,0,0,0,1,0,1,1,0,\n3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,2,2,2,2,3,2,\n1,2,1,2,2,2,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,\n3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,2,3,2,2,3,2,2,2,1,2,2,2,2,\n1,2,1,1,2,2,0,1,2,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,\n3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,0,2,2,2,2,2,\n0,2,0,2,2,2,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,\n3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,0,2,2,2,\n0,2,1,2,2,2,0,0,2,1,0,0,0,0,1,0,1,0,0,0,0,0,0,2,0,0,0,0,0,0,1,0,\n3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,3,2,1,2,3,2,2,2,\n1,2,1,2,2,2,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,0,\n3,3,3,3,3,3,3,3,3,2,3,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,3,1,0,2,0,2,\n0,2,1,2,2,2,0,0,1,2,0,0,0,0,1,0,1,0,0,0,0,0,0,1,0,0,0,2,0,0,1,0,\n3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,2,3,2,2,3,2,1,2,1,1,1,\n0,1,1,1,1,1,3,0,1,0,0,0,0,2,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,\n3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,0,1,1,0,0,1,0,0,1,0,0,0,0,\n0,0,1,0,0,0,0,0,2,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,\n0,2,0,1,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,\n3,3,3,3,3,3,3,3,3,2,3,3,3,2,1,2,3,3,2,3,3,3,3,2,3,2,1,2,0,2,1,2,\n0,2,0,2,2,2,0,0,1,2,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,1,0,0,1,0,\n3,3,3,3,3,3,3,3,3,2,3,3,3,1,2,2,3,3,2,3,2,3,2,2,3,1,2,2,0,2,2,2,\n0,2,1,2,2,2,0,0,1,2,0,0,0,0,1,0,0,0,0,0,1,0,0,1,0,0,0,1,0,0,1,0,\n3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,2,3,3,2,2,2,3,3,3,3,1,3,2,2,2,\n0,2,0,1,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,\n3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,3,3,3,2,3,2,2,2,1,2,2,0,2,2,2,2,\n0,2,0,2,2,2,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,\n3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,1,3,2,3,3,2,3,3,2,2,1,2,2,2,2,2,2,\n0,2,1,2,1,2,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,1,0,0,0,0,0,0,1,0,\n3,3,3,3,3,3,2,3,2,3,3,2,3,3,3,3,2,3,2,3,3,3,3,3,2,2,2,2,2,2,2,1,\n0,2,0,1,2,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,\n3,3,3,3,3,3,3,3,3,2,1,2,3,3,3,3,3,3,3,2,3,2,3,2,1,2,3,0,2,1,2,2,\n0,2,1,1,2,1,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,2,0,\n3,3,3,3,3,3,3,3,3,2,3,3,3,3,2,1,3,1,2,2,2,1,2,3,3,1,2,1,2,2,2,2,\n0,1,1,1,1,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,2,0,0,0,0,0,0,0,0,\n3,3,3,3,3,3,3,3,3,3,0,2,3,3,3,1,3,3,3,1,2,2,2,2,1,1,2,2,2,2,2,2,\n0,2,0,1,1,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,\n3,3,3,3,3,3,2,3,3,3,2,2,3,3,3,2,1,2,3,2,3,2,2,2,2,1,2,1,1,1,2,2,\n0,2,1,1,1,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,\n3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,0,0,1,0,0,0,0,0,\n1,0,1,0,0,0,0,0,2,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n3,3,3,3,3,2,3,3,2,3,1,2,2,2,2,3,2,3,1,1,2,2,1,2,2,1,1,0,2,2,2,2,\n0,1,0,1,2,2,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,\n3,0,0,1,1,0,1,0,0,1,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,2,2,0,\n0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n3,0,1,0,1,0,1,1,0,1,1,0,0,0,1,1,0,1,1,1,0,0,0,0,0,0,1,0,0,0,0,0,\n0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n3,0,0,0,1,1,0,1,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,\n0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,\n3,2,2,1,2,2,2,2,2,2,2,1,2,2,1,2,2,1,1,1,1,1,1,1,1,2,1,1,0,3,3,3,\n0,3,0,2,2,2,2,0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,\n2,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,1,2,2,2,1,1,1,2,0,1,\n0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,0,2,2,0,0,0,0,0,0,\n0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n2,3,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,1,0,2,1,0,\n0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n3,1,1,1,1,1,1,1,1,1,1,0,0,1,1,1,1,0,1,1,1,1,0,0,0,0,0,0,0,0,0,0,\n0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,\n0,3,1,1,2,2,2,2,2,1,2,2,2,1,1,2,2,2,2,2,2,2,1,2,2,1,0,1,1,1,1,0,\n0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n3,2,1,1,1,1,2,1,1,2,1,0,1,1,1,1,1,1,1,1,1,1,1,0,1,0,0,0,0,0,0,0,\n0,0,2,0,0,0,0,0,0,0,0,1,1,0,0,0,0,1,1,0,0,1,1,0,0,0,0,0,0,1,0,0,\n2,1,1,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,1,2,1,2,1,1,1,1,0,0,0,0,\n0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n1,2,1,2,2,2,2,2,2,2,2,2,2,1,2,1,2,1,1,2,1,1,1,2,1,2,1,2,0,1,0,1,\n0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n0,3,1,2,2,2,1,2,2,2,2,2,2,2,2,1,2,1,1,1,1,1,1,2,1,2,1,1,0,1,0,1,\n0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n2,1,2,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,\n0,2,0,1,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,\n3,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,\n0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n2,1,1,1,1,1,1,1,0,1,1,0,1,0,0,1,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,\n0,0,0,0,0,0,0,0,2,0,1,1,1,0,1,0,0,0,1,1,0,1,1,0,0,0,0,0,1,1,0,0,\n0,1,1,1,2,1,2,2,2,0,2,0,2,0,1,1,2,1,1,1,1,2,1,0,1,1,0,0,0,0,0,0,\n0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,\n1,0,1,0,0,0,0,0,1,0,1,2,2,0,1,0,0,1,1,2,2,1,2,0,2,0,0,0,1,2,0,1,\n2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n0,0,0,0,0,0,0,0,2,0,2,1,2,0,2,0,0,1,1,1,1,1,1,0,1,0,0,0,1,0,0,1,\n2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n0,0,1,0,0,0,0,0,1,0,2,1,1,0,1,0,0,1,1,1,2,2,0,0,1,0,0,0,1,0,0,1,\n1,1,2,1,0,1,1,1,0,1,0,1,1,1,1,0,0,0,1,0,1,0,0,0,0,0,0,0,0,2,2,1,\n0,2,0,1,2,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n2,1,0,0,1,0,1,1,1,1,0,0,0,0,0,1,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,\n0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n1,1,1,1,1,1,1,1,1,2,1,0,1,1,1,1,1,1,1,1,1,1,1,0,1,0,0,0,0,0,0,0,\n0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,1,1,1,0,1,1,0,1,0,0,0,1,1,0,1,\n2,0,1,0,1,0,1,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n0,0,0,0,0,0,0,0,1,0,1,1,1,0,1,0,0,1,1,2,1,1,2,0,1,0,0,0,1,1,0,1,\n1,0,0,1,0,0,1,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n0,0,0,0,0,0,0,0,1,0,1,1,2,0,1,0,0,0,0,2,1,1,2,0,2,0,0,0,1,1,0,1,\n1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n0,0,0,0,0,0,0,0,1,0,2,1,1,0,1,0,0,2,2,1,2,1,1,0,1,0,0,0,1,1,0,1,\n2,0,1,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n0,0,0,0,0,0,0,0,0,0,1,2,2,0,0,0,0,0,1,1,0,1,0,0,1,0,0,0,0,1,0,1,\n1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n0,0,0,0,0,0,0,0,0,0,1,2,2,0,0,0,0,2,1,1,1,0,2,1,1,0,0,0,2,1,0,1,\n1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n0,0,0,0,0,0,0,0,1,0,1,1,2,0,1,0,0,1,1,0,2,1,1,0,1,0,0,0,1,1,0,1,\n2,2,1,1,1,0,1,1,0,1,1,0,1,0,0,0,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,\n0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n0,0,0,0,0,0,0,0,1,0,2,1,1,0,1,0,0,1,1,0,1,2,1,0,2,0,0,0,1,1,0,1,\n2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,\n0,1,0,0,2,0,2,1,1,0,1,0,1,0,0,1,0,0,0,0,1,0,0,0,1,0,0,0,0,0,1,0,\n0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n0,0,0,0,0,0,0,0,1,0,1,1,2,0,1,0,0,1,1,1,0,1,0,0,1,0,0,0,1,0,0,1,\n1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n1,0,0,0,0,0,0,0,1,0,1,1,0,0,1,0,0,2,1,1,1,1,1,0,1,0,0,0,0,1,0,1,\n0,1,1,1,2,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,0,0,0,0,0,0,0,\n0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n0,0,0,0,0,0,0,0,0,0,1,2,1,0,0,0,0,0,1,1,1,1,1,0,1,0,0,0,1,1,0,0,\n)\n\nWin1255HebrewModel = {\n 'charToOrderMap': win1255_CharToOrderMap,\n 'precedenceMatrix': HebrewLangModel,\n 'mTypicalPositiveRatio': 0.984004,\n 'keepEnglishLetter': False,\n 'charsetName': \"windows-1255\"\n}\n\n# flake8: noqa\n"},{"attributeType":"(int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int)","col":0,"comment":"null","endLoc":37,"id":1181,"name":"win1255_CharToOrderMap","nodeType":"Attribute","startLoc":37,"text":"win1255_CharToOrderMap"},{"className":"PreparedRequest","col":0,"comment":"The fully mutable :class:`PreparedRequest ` object,\n containing the exact bytes that will be sent to the server.\n\n Generated from either a :class:`Request ` object or manually.\n\n Usage::\n\n >>> import requests\n >>> req = requests.Request('GET', 'http://httpbin.org/get')\n >>> r = req.prepare()\n \n\n >>> s = requests.Session()\n >>> s.send(r)\n \n\n ","endLoc":484,"id":1182,"nodeType":"Class","startLoc":247,"text":"class PreparedRequest(RequestEncodingMixin, RequestHooksMixin):\n \"\"\"The fully mutable :class:`PreparedRequest ` object,\n containing the exact bytes that will be sent to the server.\n\n Generated from either a :class:`Request ` object or manually.\n\n Usage::\n\n >>> import requests\n >>> req = requests.Request('GET', 'http://httpbin.org/get')\n >>> r = req.prepare()\n \n\n >>> s = requests.Session()\n >>> s.send(r)\n \n\n \"\"\"\n\n def __init__(self):\n #: HTTP verb to send to the server.\n self.method = None\n #: HTTP URL to send the request to.\n self.url = None\n #: dictionary of HTTP headers.\n self.headers = None\n #: request body to send to the server.\n self.body = None\n #: dictionary of callback hooks, for internal usage.\n self.hooks = default_hooks()\n\n def prepare(self, method=None, url=None, headers=None, files=None,\n data=None, params=None, auth=None, cookies=None, hooks=None):\n \"\"\"Prepares the entire request with the given parameters.\"\"\"\n\n self.prepare_method(method)\n self.prepare_url(url, params)\n self.prepare_headers(headers)\n self.prepare_cookies(cookies)\n self.prepare_body(data, files)\n self.prepare_auth(auth, url)\n # Note that prepare_auth must be last to enable authentication schemes\n # such as OAuth to work on a fully prepared request.\n\n # This MUST go after prepare_auth. Authenticators could add a hook\n self.prepare_hooks(hooks)\n\n def __repr__(self):\n return '' % (self.method)\n\n def copy(self):\n p = PreparedRequest()\n p.method = self.method\n p.url = self.url\n p.headers = self.headers.copy()\n p.body = self.body\n p.hooks = self.hooks\n return p\n\n def prepare_method(self, method):\n \"\"\"Prepares the given HTTP method.\"\"\"\n self.method = method\n if self.method is not None:\n self.method = self.method.upper()\n\n def prepare_url(self, url, params):\n \"\"\"Prepares the given HTTP URL.\"\"\"\n #: Accept objects that have string representations.\n try:\n url = unicode(url)\n except NameError:\n # We're on Python 3.\n url = str(url)\n except UnicodeDecodeError:\n pass\n\n # Support for unicode domain names and paths.\n scheme, auth, host, port, path, query, fragment = parse_url(url)\n\n if not scheme:\n raise MissingSchema(\"Invalid URL {0!r}: No schema supplied. \"\n \"Perhaps you meant http://{0}?\".format(url))\n\n if not host:\n raise InvalidURL(\"Invalid URL %r: No host supplied\" % url)\n\n # Only want to apply IDNA to the hostname\n try:\n host = host.encode('idna').decode('utf-8')\n except UnicodeError:\n raise InvalidURL('URL has an invalid label.')\n\n # Carefully reconstruct the network location\n netloc = auth or ''\n if netloc:\n netloc += '@'\n netloc += host\n if port:\n netloc += ':' + str(port)\n\n # Bare domains aren't valid URLs.\n if not path:\n path = '/'\n\n if is_py2:\n if isinstance(scheme, str):\n scheme = scheme.encode('utf-8')\n if isinstance(netloc, str):\n netloc = netloc.encode('utf-8')\n if isinstance(path, str):\n path = path.encode('utf-8')\n if isinstance(query, str):\n query = query.encode('utf-8')\n if isinstance(fragment, str):\n fragment = fragment.encode('utf-8')\n\n enc_params = self._encode_params(params)\n if enc_params:\n if query:\n query = '%s&%s' % (query, enc_params)\n else:\n query = enc_params\n\n url = requote_uri(urlunparse([scheme, netloc, path, None, query, fragment]))\n self.url = url\n\n def prepare_headers(self, headers):\n \"\"\"Prepares the given HTTP headers.\"\"\"\n\n if headers:\n self.headers = CaseInsensitiveDict((to_native_string(name), value) for name, value in headers.items())\n else:\n self.headers = CaseInsensitiveDict()\n\n def prepare_body(self, data, files):\n \"\"\"Prepares the given HTTP body data.\"\"\"\n\n # Check if file, fo, generator, iterator.\n # If not, run through normal process.\n\n # Nottin' on you.\n body = None\n content_type = None\n length = None\n\n is_stream = all([\n hasattr(data, '__iter__'),\n not isinstance(data, basestring),\n not isinstance(data, list),\n not isinstance(data, dict)\n ])\n\n try:\n length = super_len(data)\n except (TypeError, AttributeError, UnsupportedOperation):\n length = None\n\n if is_stream:\n body = data\n\n if files:\n raise NotImplementedError('Streamed bodies and files are mutually exclusive.')\n\n if length is not None:\n self.headers['Content-Length'] = builtin_str(length)\n else:\n self.headers['Transfer-Encoding'] = 'chunked'\n else:\n # Multi-part file uploads.\n if files:\n (body, content_type) = self._encode_files(files, data)\n else:\n if data:\n body = self._encode_params(data)\n if isinstance(data, str) or isinstance(data, builtin_str) or hasattr(data, 'read'):\n content_type = None\n else:\n content_type = 'application/x-www-form-urlencoded'\n\n self.prepare_content_length(body)\n\n # Add content-type if it wasn't explicitly provided.\n if (content_type) and (not 'content-type' in self.headers):\n self.headers['Content-Type'] = content_type\n\n self.body = body\n\n def prepare_content_length(self, body):\n if hasattr(body, 'seek') and hasattr(body, 'tell'):\n body.seek(0, 2)\n self.headers['Content-Length'] = builtin_str(body.tell())\n body.seek(0, 0)\n elif body is not None:\n l = super_len(body)\n if l:\n self.headers['Content-Length'] = builtin_str(l)\n elif self.method not in ('GET', 'HEAD'):\n self.headers['Content-Length'] = '0'\n\n def prepare_auth(self, auth, url=''):\n \"\"\"Prepares the given HTTP auth data.\"\"\"\n\n # If no Auth is explicitly provided, extract it from the URL first.\n if auth is None:\n url_auth = get_auth_from_url(self.url)\n auth = url_auth if any(url_auth) else None\n\n if auth:\n if isinstance(auth, tuple) and len(auth) == 2:\n # special-case basic HTTP auth\n auth = HTTPBasicAuth(*auth)\n\n # Allow auth to make its changes.\n r = auth(self)\n\n # Update self to reflect the auth changes.\n self.__dict__.update(r.__dict__)\n\n # Recompute Content-Length\n self.prepare_content_length(self.body)\n\n def prepare_cookies(self, cookies):\n \"\"\"Prepares the given HTTP cookie data.\"\"\"\n\n if isinstance(cookies, cookielib.CookieJar):\n cookies = cookies\n else:\n cookies = cookiejar_from_dict(cookies)\n\n if 'cookie' not in self.headers:\n cookie_header = get_cookie_header(cookies, self)\n if cookie_header is not None:\n self.headers['Cookie'] = cookie_header\n\n def prepare_hooks(self, hooks):\n \"\"\"Prepares the given hooks.\"\"\"\n for event in hooks:\n self.register_hook(event, hooks[event])"},{"className":"RequestEncodingMixin","col":0,"comment":"null","endLoc":146,"id":1183,"nodeType":"Class","startLoc":40,"text":"class RequestEncodingMixin(object):\n @property\n def path_url(self):\n \"\"\"Build the path URL to use.\"\"\"\n\n url = []\n\n p = urlsplit(self.url)\n\n path = p.path\n if not path:\n path = '/'\n\n url.append(path)\n\n query = p.query\n if query:\n url.append('?')\n url.append(query)\n\n return ''.join(url)\n\n @staticmethod\n def _encode_params(data):\n \"\"\"Encode parameters in a piece of data.\n\n Will successfully encode parameters when passed as a dict or a list of\n 2-tuples. Order is retained if data is a list of 2-tuples but arbitrary\n if parameters are supplied as a dict.\n \"\"\"\n\n if isinstance(data, (str, bytes)):\n return data\n elif hasattr(data, 'read'):\n return data\n elif hasattr(data, '__iter__'):\n result = []\n for k, vs in to_key_val_list(data):\n if isinstance(vs, basestring) or not hasattr(vs, '__iter__'):\n vs = [vs]\n for v in vs:\n if v is not None:\n result.append(\n (k.encode('utf-8') if isinstance(k, str) else k,\n v.encode('utf-8') if isinstance(v, str) else v))\n return urlencode(result, doseq=True)\n else:\n return data\n\n @staticmethod\n def _encode_files(files, data):\n \"\"\"Build the body for a multipart/form-data request.\n\n Will successfully encode files when passed as a dict or a list of\n 2-tuples. Order is retained if data is a list of 2-tuples but arbitrary\n if parameters are supplied as a dict.\n\n \"\"\"\n if (not files):\n raise ValueError(\"Files must be provided.\")\n elif isinstance(data, basestring):\n raise ValueError(\"Data must not be a string.\")\n\n new_fields = []\n fields = to_key_val_list(data or {})\n files = to_key_val_list(files or {})\n\n for field, val in fields:\n if isinstance(val, basestring) or not hasattr(val, '__iter__'):\n val = [val]\n for v in val:\n if v is not None:\n # Don't call str() on bytestrings: in Py3 it all goes wrong.\n if not isinstance(v, bytes):\n v = str(v)\n\n new_fields.append(\n (field.decode('utf-8') if isinstance(field, bytes) else field,\n v.encode('utf-8') if isinstance(v, str) else v))\n\n for (k, v) in files:\n # support for explicit filename\n ft = None\n fh = None\n if isinstance(v, (tuple, list)):\n if len(v) == 2:\n fn, fp = v\n elif len(v) == 3:\n fn, fp, ft = v\n else:\n fn, fp, ft, fh = v\n else:\n fn = guess_filename(v) or k\n fp = v\n if isinstance(fp, str):\n fp = StringIO(fp)\n if isinstance(fp, bytes):\n fp = BytesIO(fp)\n\n rf = RequestField(name=k, data=fp.read(),\n filename=fn, headers=fh)\n rf.make_multipart(content_type=ft)\n new_fields.append(rf)\n\n body, content_type = encode_multipart_formdata(new_fields)\n\n return body, content_type"},{"col":4,"comment":"Build the path URL to use.","endLoc":60,"header":"@property\n def path_url(self)","id":1184,"name":"path_url","nodeType":"Function","startLoc":41,"text":"@property\n def path_url(self):\n \"\"\"Build the path URL to use.\"\"\"\n\n url = []\n\n p = urlsplit(self.url)\n\n path = p.path\n if not path:\n path = '/'\n\n url.append(path)\n\n query = p.query\n if query:\n url.append('?')\n url.append(query)\n\n return ''.join(url)"},{"col":4,"comment":"null","endLoc":95,"header":"def __setstate__(self, state)","id":1185,"name":"__setstate__","nodeType":"Function","startLoc":90,"text":"def __setstate__(self, state):\n for attr, value in state.items():\n setattr(self, attr, value)\n\n self.init_poolmanager(self._pool_connections, self._pool_maxsize,\n block=self._pool_block)"},{"attributeType":"(int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int)","col":0,"comment":"null","endLoc":62,"id":1186,"name":"HebrewLangModel","nodeType":"Attribute","startLoc":62,"text":"HebrewLangModel"},{"col":4,"comment":"\n Prepare the ``connection`` for :meth:`urllib3.util.ssl_wrap_socket`\n and establish the tunnel if proxy is used.\n ","endLoc":618,"header":"def _prepare_conn(self, conn)","id":1187,"name":"_prepare_conn","nodeType":"Function","startLoc":592,"text":"def _prepare_conn(self, conn):\n \"\"\"\n Prepare the ``connection`` for :meth:`urllib3.util.ssl_wrap_socket`\n and establish the tunnel if proxy is used.\n \"\"\"\n\n if isinstance(conn, VerifiedHTTPSConnection):\n conn.set_cert(key_file=self.key_file,\n cert_file=self.cert_file,\n cert_reqs=self.cert_reqs,\n ca_certs=self.ca_certs,\n assert_hostname=self.assert_hostname,\n assert_fingerprint=self.assert_fingerprint)\n conn.ssl_version = self.ssl_version\n\n if self.proxy is not None:\n # Python 2.7+\n try:\n set_tunnel = conn.set_tunnel\n except AttributeError: # Platform-specific: Python 2.6\n set_tunnel = conn._set_tunnel\n set_tunnel(self.host, self.port, self.proxy_headers)\n # Establish tunnel connection early, because otherwise httplib\n # would improperly set Host: header to proxy's IP:port.\n conn.connect()\n\n return conn"},{"col":4,"comment":"Verify a SSL certificate. This method should not be called from user\n code, and is only exposed for use when subclassing the\n :class:`HTTPAdapter `.\n\n :param conn: The urllib3 connection object associated with the cert.\n :param url: The requested URL.\n :param verify: Whether we should actually verify the certificate.\n :param cert: The SSL certificate to verify.\n ","endLoc":149,"header":"def cert_verify(self, conn, url, verify, cert)","id":1189,"name":"cert_verify","nodeType":"Function","startLoc":114,"text":"def cert_verify(self, conn, url, verify, cert):\n \"\"\"Verify a SSL certificate. This method should not be called from user\n code, and is only exposed for use when subclassing the\n :class:`HTTPAdapter `.\n\n :param conn: The urllib3 connection object associated with the cert.\n :param url: The requested URL.\n :param verify: Whether we should actually verify the certificate.\n :param cert: The SSL certificate to verify.\n \"\"\"\n if url.lower().startswith('https') and verify:\n\n cert_loc = None\n\n # Allow self-specified cert location.\n if verify is not True:\n cert_loc = verify\n\n if not cert_loc:\n cert_loc = DEFAULT_CA_BUNDLE_PATH\n\n if not cert_loc:\n raise Exception(\"Could not find a suitable SSL CA certificate bundle.\")\n\n conn.cert_reqs = 'CERT_REQUIRED'\n conn.ca_certs = cert_loc\n else:\n conn.cert_reqs = 'CERT_NONE'\n conn.ca_certs = None\n\n if cert:\n if not isinstance(cert, basestring):\n conn.cert_file = cert[0]\n conn.key_file = cert[1]\n else:\n conn.cert_file = cert"},{"col":4,"comment":"null","endLoc":76,"header":"def get_confidence(self)","id":1190,"name":"get_confidence","nodeType":"Function","startLoc":69,"text":"def get_confidence(self):\n unlike = 0.99\n if self._mNumOfMBChar < 6:\n for i in range(0, self._mNumOfMBChar):\n unlike = unlike * ONE_CHAR_PROB\n return 1.0 - unlike\n else:\n return unlike"},{"col":0,"comment":"null","endLoc":185,"header":"@overload\ndef urlsplit(url: str, scheme: str = \"\", allow_fragments: bool = True) -> SplitResult","id":1191,"name":"urlsplit","nodeType":"Function","startLoc":184,"text":"@overload\ndef urlsplit(url: str, scheme: str = \"\", allow_fragments: bool = True) -> SplitResult: ..."},{"col":4,"comment":"null","endLoc":197,"header":"@overload\n def urlsplit(\n url: bytes | bytearray | None, scheme: bytes | bytearray | None | Literal[\"\"] = \"\", allow_fragments: bool = True\n ) -> SplitResultBytes","id":1192,"name":"urlsplit","nodeType":"Function","startLoc":194,"text":"@overload\n def urlsplit(\n url: bytes | bytearray | None, scheme: bytes | bytearray | None | Literal[\"\"] = \"\", allow_fragments: bool = True\n ) -> SplitResultBytes: ..."},{"col":4,"comment":"\n Return a fresh :class:`httplib.HTTPSConnection`.\n ","endLoc":647,"header":"def _new_conn(self)","id":1193,"name":"_new_conn","nodeType":"Function","startLoc":620,"text":"def _new_conn(self):\n \"\"\"\n Return a fresh :class:`httplib.HTTPSConnection`.\n \"\"\"\n self.num_connections += 1\n log.info(\"Starting new HTTPS connection (%d): %s\"\n % (self.num_connections, self.host))\n\n if not self.ConnectionCls or self.ConnectionCls is DummyConnection:\n # Platform-specific: Python without ssl\n raise SSLError(\"Can't connect to HTTPS URL because the SSL \"\n \"module is not available.\")\n\n actual_host = self.host\n actual_port = self.port\n if self.proxy is not None:\n actual_host = self.proxy.host\n actual_port = self.proxy.port\n\n extra_params = {}\n if not six.PY3: # Python 2\n extra_params['strict'] = self.strict\n\n conn = self.ConnectionCls(host=actual_host, port=actual_port,\n timeout=self.timeout.connect_timeout,\n **extra_params)\n\n return self._prepare_conn(conn)"},{"col":4,"comment":"Builds a :class:`Response ` object from a urllib3\n response. This should not be called from user code, and is only exposed\n for use when subclassing the\n :class:`HTTPAdapter `\n\n :param req: The :class:`PreparedRequest ` used to generate the response.\n :param resp: The urllib3 response object.\n ","endLoc":185,"header":"def build_response(self, req, resp)","id":1194,"name":"build_response","nodeType":"Function","startLoc":151,"text":"def build_response(self, req, resp):\n \"\"\"Builds a :class:`Response ` object from a urllib3\n response. This should not be called from user code, and is only exposed\n for use when subclassing the\n :class:`HTTPAdapter `\n\n :param req: The :class:`PreparedRequest ` used to generate the response.\n :param resp: The urllib3 response object.\n \"\"\"\n response = Response()\n\n # Fallback to None if there's no status_code, for whatever reason.\n response.status_code = getattr(resp, 'status', None)\n\n # Make headers case-insensitive.\n response.headers = CaseInsensitiveDict(getattr(resp, 'headers', {}))\n\n # Set encoding.\n response.encoding = get_encoding_from_headers(response.headers)\n response.raw = resp\n response.reason = response.raw.reason\n\n if isinstance(req.url, bytes):\n response.url = req.url.decode('utf-8')\n else:\n response.url = req.url\n\n # Add new cookies from the server.\n extract_cookies_to_jar(response.cookies, req, resp)\n\n # Give the Response some context.\n response.request = req\n response.connection = self\n\n return response"},{"col":4,"comment":"Encode parameters in a piece of data.\n\n Will successfully encode parameters when passed as a dict or a list of\n 2-tuples. Order is retained if data is a list of 2-tuples but arbitrary\n if parameters are supplied as a dict.\n ","endLoc":87,"header":"@staticmethod\n def _encode_params(data)","id":1195,"name":"_encode_params","nodeType":"Function","startLoc":62,"text":"@staticmethod\n def _encode_params(data):\n \"\"\"Encode parameters in a piece of data.\n\n Will successfully encode parameters when passed as a dict or a list of\n 2-tuples. Order is retained if data is a list of 2-tuples but arbitrary\n if parameters are supplied as a dict.\n \"\"\"\n\n if isinstance(data, (str, bytes)):\n return data\n elif hasattr(data, 'read'):\n return data\n elif hasattr(data, '__iter__'):\n result = []\n for k, vs in to_key_val_list(data):\n if isinstance(vs, basestring) or not hasattr(vs, '__iter__'):\n vs = [vs]\n for v in vs:\n if v is not None:\n result.append(\n (k.encode('utf-8') if isinstance(k, str) else k,\n v.encode('utf-8') if isinstance(v, str) else v))\n return urlencode(result, doseq=True)\n else:\n return data"},{"col":4,"comment":"null","endLoc":47,"header":"def reset(self)","id":1196,"name":"reset","nodeType":"Function","startLoc":45,"text":"def reset(self):\n MultiByteCharSetProber.reset(self)\n self._mContextAnalyzer.reset()"},{"col":4,"comment":"null","endLoc":50,"header":"def get_charset_name(self)","id":1197,"name":"get_charset_name","nodeType":"Function","startLoc":49,"text":"def get_charset_name(self):\n return \"SHIFT_JIS\""},{"col":4,"comment":"null","endLoc":86,"header":"def feed(self, aBuf)","id":1198,"name":"feed","nodeType":"Function","startLoc":52,"text":"def feed(self, aBuf):\n aLen = len(aBuf)\n for i in range(0, aLen):\n codingState = self._mCodingSM.next_state(aBuf[i])\n if codingState == constants.eError:\n if constants._debug:\n sys.stderr.write(self.get_charset_name()\n + ' prober hit error at byte ' + str(i)\n + '\\n')\n self._mState = constants.eNotMe\n break\n elif codingState == constants.eItsMe:\n self._mState = constants.eFoundIt\n break\n elif codingState == constants.eStart:\n charLen = self._mCodingSM.get_current_charlen()\n if i == 0:\n self._mLastChar[1] = aBuf[0]\n self._mContextAnalyzer.feed(self._mLastChar[2 - charLen:],\n charLen)\n self._mDistributionAnalyzer.feed(self._mLastChar, charLen)\n else:\n self._mContextAnalyzer.feed(aBuf[i + 1 - charLen:i + 3\n - charLen], charLen)\n self._mDistributionAnalyzer.feed(aBuf[i - 1:i + 1],\n charLen)\n\n self._mLastChar[0] = aBuf[aLen - 1]\n\n if self.get_state() == constants.eDetecting:\n if (self._mContextAnalyzer.got_enough_data() and\n (self.get_confidence() > constants.SHORTCUT_THRESHOLD)):\n self._mState = constants.eFoundIt\n\n return self.get_state()"},{"attributeType":"CodingStateMachine","col":8,"comment":"null","endLoc":39,"id":1199,"name":"_mCodingSM","nodeType":"Attribute","startLoc":39,"text":"self._mCodingSM"},{"attributeType":"null","col":16,"comment":"null","endLoc":54,"id":1200,"name":"_mState","nodeType":"Attribute","startLoc":54,"text":"self._mState"},{"col":0,"comment":"Take an object and test to see if it can be represented as a\n dictionary. If it can be, return a list of tuples, e.g.,\n\n ::\n\n >>> to_key_val_list([('key', 'val')])\n [('key', 'val')]\n >>> to_key_val_list({'key': 'val'})\n [('key', 'val')]\n >>> to_key_val_list('string')\n ValueError: cannot encode objects that are not 2-tuples.\n ","endLoc":155,"header":"def to_key_val_list(value)","id":1201,"name":"to_key_val_list","nodeType":"Function","startLoc":133,"text":"def to_key_val_list(value):\n \"\"\"Take an object and test to see if it can be represented as a\n dictionary. If it can be, return a list of tuples, e.g.,\n\n ::\n\n >>> to_key_val_list([('key', 'val')])\n [('key', 'val')]\n >>> to_key_val_list({'key': 'val'})\n [('key', 'val')]\n >>> to_key_val_list('string')\n ValueError: cannot encode objects that are not 2-tuples.\n \"\"\"\n if value is None:\n return None\n\n if isinstance(value, (str, bytes, bool, int)):\n raise ValueError('cannot encode objects that are not 2-tuples')\n\n if isinstance(value, collections.Mapping):\n value = value.items()\n\n return list(value)"},{"attributeType":"int","col":8,"comment":"null","endLoc":45,"id":1203,"name":"_mNumOfMBChar","nodeType":"Attribute","startLoc":45,"text":"self._mNumOfMBChar"},{"attributeType":"float","col":0,"comment":"null","endLoc":33,"id":1204,"name":"ONE_CHAR_PROB","nodeType":"Attribute","startLoc":33,"text":"ONE_CHAR_PROB"},{"col":0,"comment":"","endLoc":28,"header":"utf8prober.py#","id":1205,"name":"","nodeType":"Function","startLoc":28,"text":"ONE_CHAR_PROB = 0.5"},{"col":0,"comment":"null","endLoc":122,"header":"@overload\ndef quote(string: str, safe: str | Iterable[int] = \"/\", encoding: str | None = None, errors: str | None = None) -> str","id":1206,"name":"quote","nodeType":"Function","startLoc":121,"text":"@overload\ndef quote(string: str, safe: str | Iterable[int] = \"/\", encoding: str | None = None, errors: str | None = None) -> str: ..."},{"col":0,"comment":"null","endLoc":124,"header":"@overload\ndef quote(string: bytes | bytearray, safe: str | Iterable[int] = \"/\") -> str","id":1207,"name":"quote","nodeType":"Function","startLoc":123,"text":"@overload\ndef quote(string: bytes | bytearray, safe: str | Iterable[int] = \"/\") -> str: ..."},{"col":0,"comment":"null","endLoc":63,"header":"def super_len(o)","id":1208,"name":"super_len","nodeType":"Function","startLoc":46,"text":"def super_len(o):\n if hasattr(o, '__len__'):\n return len(o)\n\n if hasattr(o, 'len'):\n return o.len\n\n if hasattr(o, 'fileno'):\n try:\n fileno = o.fileno()\n except io.UnsupportedOperation:\n pass\n else:\n return os.fstat(fileno).st_size\n\n if hasattr(o, 'getvalue'):\n # e.g. BytesIO, cStringIO.StringI\n return len(o.getvalue())"},{"col":0,"comment":"\n Given a string object, regardless of type, returns a representation of that\n string in the native string type, encoding and decoding where necessary.\n This assumes ASCII unless told otherwise.\n ","endLoc":583,"header":"def to_native_string(string, encoding='ascii')","id":1210,"name":"to_native_string","nodeType":"Function","startLoc":567,"text":"def to_native_string(string, encoding='ascii'):\n \"\"\"\n Given a string object, regardless of type, returns a representation of that\n string in the native string type, encoding and decoding where necessary.\n This assumes ASCII unless told otherwise.\n \"\"\"\n out = None\n\n if isinstance(string, builtin_str):\n out = string\n else:\n if is_py2:\n out = string.encode(encoding)\n else:\n out = string.decode(encoding)\n\n return out"},{"col":4,"comment":"Returns a urllib3 connection for the given URL. This should not be\n called from user code, and is only exposed for use when subclassing the\n :class:`HTTPAdapter `.\n\n :param url: The URL to connect to.\n :param proxies: (optional) A Requests-style dictionary of proxies used on this request.\n ","endLoc":211,"header":"def get_connection(self, url, proxies=None)","id":1211,"name":"get_connection","nodeType":"Function","startLoc":187,"text":"def get_connection(self, url, proxies=None):\n \"\"\"Returns a urllib3 connection for the given URL. This should not be\n called from user code, and is only exposed for use when subclassing the\n :class:`HTTPAdapter `.\n\n :param url: The URL to connect to.\n :param proxies: (optional) A Requests-style dictionary of proxies used on this request.\n \"\"\"\n proxies = proxies or {}\n proxy = proxies.get(urlparse(url.lower()).scheme)\n\n if proxy:\n except_on_missing_scheme(proxy)\n proxy_headers = self.proxy_headers(proxy)\n\n if not proxy in self.proxy_manager:\n self.proxy_manager[proxy] = proxy_from_url(\n proxy,\n proxy_headers=proxy_headers)\n\n conn = self.proxy_manager[proxy].connection_from_url(url)\n else:\n conn = self.poolmanager.connection_from_url(url.lower())\n\n return conn"},{"attributeType":"null","col":4,"comment":"null","endLoc":112,"id":1212,"name":"str","nodeType":"Attribute","startLoc":112,"text":"str"},{"attributeType":"null","col":4,"comment":"null","endLoc":97,"id":1213,"name":"str","nodeType":"Attribute","startLoc":97,"text":"str"},{"attributeType":"null","col":4,"comment":"null","endLoc":113,"id":1214,"name":"bytes","nodeType":"Attribute","startLoc":113,"text":"bytes"},{"attributeType":"null","col":4,"comment":"null","endLoc":96,"id":1215,"name":"bytes","nodeType":"Attribute","startLoc":96,"text":"bytes"},{"className":"StringIO","col":0,"comment":"null","endLoc":225,"id":1216,"nodeType":"Class","startLoc":219,"text":"class StringIO(TextIOWrapper):\n def __init__(self, initial_value: str | None = ..., newline: str | None = ...) -> None: ...\n # StringIO does not contain a \"name\" field. This workaround is necessary\n # to allow StringIO sub-classes to add this field, as it is defined\n # as a read-only property on IO[].\n name: Any\n def getvalue(self) -> str: ..."},{"className":"TextIOWrapper","col":0,"comment":"null","endLoc":217,"id":1217,"nodeType":"Class","startLoc":178,"text":"class TextIOWrapper(TextIOBase, TextIO, Generic[_BufferT_co]): # type: ignore[misc] # incompatible definitions of write in the base classes\n def __init__(\n self,\n buffer: _BufferT_co,\n encoding: str | None = None,\n errors: str | None = None,\n newline: str | None = None,\n line_buffering: bool = False,\n write_through: bool = False,\n ) -> None: ...\n # Equals the \"buffer\" argument passed in to the constructor.\n @property\n def buffer(self) -> _BufferT_co: ... # type: ignore[override]\n @property\n def closed(self) -> bool: ...\n @property\n def line_buffering(self) -> bool: ...\n @property\n def write_through(self) -> bool: ...\n def reconfigure(\n self,\n *,\n encoding: str | None = None,\n errors: str | None = None,\n newline: str | None = None,\n line_buffering: bool | None = None,\n write_through: bool | None = None,\n ) -> None: ...\n # These are inherited from TextIOBase, but must exist in the stub to satisfy mypy.\n def __enter__(self) -> Self: ...\n def __iter__(self) -> Iterator[str]: ... # type: ignore[override]\n def __next__(self) -> str: ... # type: ignore[override]\n def writelines(self, lines: Iterable[str], /) -> None: ... # type: ignore[override]\n def readline(self, size: int = -1, /) -> str: ... # type: ignore[override]\n def readlines(self, hint: int = -1, /) -> list[str]: ... # type: ignore[override]\n # Equals the \"buffer\" argument passed in to the constructor.\n def detach(self) -> _BufferT_co: ... # type: ignore[override]\n # TextIOWrapper's version of seek only supports a limited subset of\n # operations.\n def seek(self, cookie: int, whence: int = 0, /) -> int: ..."},{"className":"TextIOBase","col":0,"comment":"null","endLoc":150,"id":1218,"nodeType":"Class","startLoc":139,"text":"class TextIOBase(IOBase):\n encoding: str\n errors: str | None\n newlines: str | tuple[str, ...] | None\n def __iter__(self) -> Iterator[str]: ... # type: ignore[override]\n def __next__(self) -> str: ... # type: ignore[override]\n def detach(self) -> BinaryIO: ...\n def write(self, s: str, /) -> int: ...\n def writelines(self, lines: Iterable[str], /) -> None: ... # type: ignore[override]\n def readline(self, size: int = ..., /) -> str: ... # type: ignore[override]\n def readlines(self, hint: int = -1, /) -> list[str]: ... # type: ignore[override]\n def read(self, size: int | None = ..., /) -> str: ..."},{"col":4,"comment":"null","endLoc":143,"header":"def __iter__(self) -> Iterator[str]","id":1219,"name":"__iter__","nodeType":"Function","startLoc":143,"text":"def __iter__(self) -> Iterator[str]: ... # type: ignore[override]"},{"col":4,"comment":"null","endLoc":144,"header":"def __next__(self) -> str","id":1220,"name":"__next__","nodeType":"Function","startLoc":144,"text":"def __next__(self) -> str: ... # type: ignore[override]"},{"col":4,"comment":"null","endLoc":145,"header":"def detach(self) -> BinaryIO","id":1221,"name":"detach","nodeType":"Function","startLoc":145,"text":"def detach(self) -> BinaryIO: ..."},{"col":4,"comment":"null","endLoc":146,"header":"def write(self, s: str, /) -> int","id":1222,"name":"write","nodeType":"Function","startLoc":146,"text":"def write(self, s: str, /) -> int: ..."},{"col":4,"comment":"null","endLoc":147,"header":"def writelines(self, lines: Iterable[str], /) -> None","id":1223,"name":"writelines","nodeType":"Function","startLoc":147,"text":"def writelines(self, lines: Iterable[str], /) -> None: ... # type: ignore[override]"},{"col":4,"comment":"null","endLoc":148,"header":"def readline(self, size: int = ..., /) -> str","id":1224,"name":"readline","nodeType":"Function","startLoc":148,"text":"def readline(self, size: int = ..., /) -> str: ... # type: ignore[override]"},{"col":4,"comment":"null","endLoc":149,"header":"def readlines(self, hint: int = -1, /) -> list[str]","id":1225,"name":"readlines","nodeType":"Function","startLoc":149,"text":"def readlines(self, hint: int = -1, /) -> list[str]: ... # type: ignore[override]"},{"col":4,"comment":"null","endLoc":150,"header":"def read(self, size: int | None = ..., /) -> str","id":1226,"name":"read","nodeType":"Function","startLoc":150,"text":"def read(self, size: int | None = ..., /) -> str: ..."},{"attributeType":"str","col":4,"comment":"null","endLoc":140,"id":1227,"name":"encoding","nodeType":"Attribute","startLoc":140,"text":"encoding"},{"attributeType":"str | None","col":4,"comment":"null","endLoc":141,"id":1228,"name":"errors","nodeType":"Attribute","startLoc":141,"text":"errors"},{"col":4,"comment":"Build the body for a multipart/form-data request.\n\n Will successfully encode files when passed as a dict or a list of\n 2-tuples. Order is retained if data is a list of 2-tuples but arbitrary\n if parameters are supplied as a dict.\n\n ","endLoc":146,"header":"@staticmethod\n def _encode_files(files, data)","id":1229,"name":"_encode_files","nodeType":"Function","startLoc":89,"text":"@staticmethod\n def _encode_files(files, data):\n \"\"\"Build the body for a multipart/form-data request.\n\n Will successfully encode files when passed as a dict or a list of\n 2-tuples. Order is retained if data is a list of 2-tuples but arbitrary\n if parameters are supplied as a dict.\n\n \"\"\"\n if (not files):\n raise ValueError(\"Files must be provided.\")\n elif isinstance(data, basestring):\n raise ValueError(\"Data must not be a string.\")\n\n new_fields = []\n fields = to_key_val_list(data or {})\n files = to_key_val_list(files or {})\n\n for field, val in fields:\n if isinstance(val, basestring) or not hasattr(val, '__iter__'):\n val = [val]\n for v in val:\n if v is not None:\n # Don't call str() on bytestrings: in Py3 it all goes wrong.\n if not isinstance(v, bytes):\n v = str(v)\n\n new_fields.append(\n (field.decode('utf-8') if isinstance(field, bytes) else field,\n v.encode('utf-8') if isinstance(v, str) else v))\n\n for (k, v) in files:\n # support for explicit filename\n ft = None\n fh = None\n if isinstance(v, (tuple, list)):\n if len(v) == 2:\n fn, fp = v\n elif len(v) == 3:\n fn, fp, ft = v\n else:\n fn, fp, ft, fh = v\n else:\n fn = guess_filename(v) or k\n fp = v\n if isinstance(fp, str):\n fp = StringIO(fp)\n if isinstance(fp, bytes):\n fp = BytesIO(fp)\n\n rf = RequestField(name=k, data=fp.read(),\n filename=fn, headers=fh)\n rf.make_multipart(content_type=ft)\n new_fields.append(rf)\n\n body, content_type = encode_multipart_formdata(new_fields)\n\n return body, content_type"},{"attributeType":"str | (str, ...) | None","col":4,"comment":"null","endLoc":142,"id":1230,"name":"newlines","nodeType":"Attribute","startLoc":142,"text":"newlines"},{"fileName":"universaldetector.py","filePath":"requests/packages/charade","id":1231,"nodeType":"File","text":"######################## BEGIN LICENSE BLOCK ########################\n# The Original Code is Mozilla Universal charset detector code.\n#\n# The Initial Developer of the Original Code is\n# Netscape Communications Corporation.\n# Portions created by the Initial Developer are Copyright (C) 2001\n# the Initial Developer. All Rights Reserved.\n#\n# Contributor(s):\n# Mark Pilgrim - port to Python\n# Shy Shalom - original C code\n#\n# This library is free software; you can redistribute it and/or\n# modify it under the terms of the GNU Lesser General Public\n# License as published by the Free Software Foundation; either\n# version 2.1 of the License, or (at your option) any later version.\n#\n# This library is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n# Lesser General Public License for more details.\n#\n# You should have received a copy of the GNU Lesser General Public\n# License along with this library; if not, write to the Free Software\n# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n# 02110-1301 USA\n######################### END LICENSE BLOCK #########################\n\nfrom . import constants\nimport sys\nimport codecs\nfrom .latin1prober import Latin1Prober # windows-1252\nfrom .mbcsgroupprober import MBCSGroupProber # multi-byte character sets\nfrom .sbcsgroupprober import SBCSGroupProber # single-byte character sets\nfrom .escprober import EscCharSetProber # ISO-2122, etc.\nimport re\n\nMINIMUM_THRESHOLD = 0.20\nePureAscii = 0\neEscAscii = 1\neHighbyte = 2\n\n\nclass UniversalDetector:\n def __init__(self):\n self._highBitDetector = re.compile(b'[\\x80-\\xFF]')\n self._escDetector = re.compile(b'(\\033|~{)')\n self._mEscCharSetProber = None\n self._mCharSetProbers = []\n self.reset()\n\n def reset(self):\n self.result = {'encoding': None, 'confidence': 0.0}\n self.done = False\n self._mStart = True\n self._mGotData = False\n self._mInputState = ePureAscii\n self._mLastChar = b''\n if self._mEscCharSetProber:\n self._mEscCharSetProber.reset()\n for prober in self._mCharSetProbers:\n prober.reset()\n\n def feed(self, aBuf):\n if self.done:\n return\n\n aLen = len(aBuf)\n if not aLen:\n return\n\n if not self._mGotData:\n # If the data starts with BOM, we know it is UTF\n if aBuf[:3] == codecs.BOM:\n # EF BB BF UTF-8 with BOM\n self.result = {'encoding': \"UTF-8\", 'confidence': 1.0}\n elif aBuf[:4] in (codecs.BOM_UTF32_LE, codecs.BOM_UTF32_BE):\n # FF FE 00 00 UTF-32, little-endian BOM\n # 00 00 FE FF UTF-32, big-endian BOM\n self.result = {'encoding': \"UTF-32\", 'confidence': 1.0}\n elif aBuf[:4] == b'\\xFE\\xFF\\x00\\x00':\n # FE FF 00 00 UCS-4, unusual octet order BOM (3412)\n self.result = {\n 'encoding': \"X-ISO-10646-UCS-4-3412\",\n 'confidence': 1.0\n }\n elif aBuf[:4] == b'\\x00\\x00\\xFF\\xFE':\n # 00 00 FF FE UCS-4, unusual octet order BOM (2143)\n self.result = {\n 'encoding': \"X-ISO-10646-UCS-4-2143\",\n 'confidence': 1.0\n }\n elif aBuf[:2] == codecs.BOM_LE or aBuf[:2] == codecs.BOM_BE:\n # FF FE UTF-16, little endian BOM\n # FE FF UTF-16, big endian BOM\n self.result = {'encoding': \"UTF-16\", 'confidence': 1.0}\n\n self._mGotData = True\n if self.result['encoding'] and (self.result['confidence'] > 0.0):\n self.done = True\n return\n\n if self._mInputState == ePureAscii:\n if self._highBitDetector.search(aBuf):\n self._mInputState = eHighbyte\n elif ((self._mInputState == ePureAscii) and\n self._escDetector.search(self._mLastChar + aBuf)):\n self._mInputState = eEscAscii\n\n self._mLastChar = aBuf[-1:]\n\n if self._mInputState == eEscAscii:\n if not self._mEscCharSetProber:\n self._mEscCharSetProber = EscCharSetProber()\n if self._mEscCharSetProber.feed(aBuf) == constants.eFoundIt:\n self.result = {\n 'encoding': self._mEscCharSetProber.get_charset_name(),\n 'confidence': self._mEscCharSetProber.get_confidence()\n }\n self.done = True\n elif self._mInputState == eHighbyte:\n if not self._mCharSetProbers:\n self._mCharSetProbers = [MBCSGroupProber(), SBCSGroupProber(),\n Latin1Prober()]\n for prober in self._mCharSetProbers:\n if prober.feed(aBuf) == constants.eFoundIt:\n self.result = {'encoding': prober.get_charset_name(),\n 'confidence': prober.get_confidence()}\n self.done = True\n break\n\n def close(self):\n if self.done:\n return\n if not self._mGotData:\n if constants._debug:\n sys.stderr.write('no data received!\\n')\n return\n self.done = True\n\n if self._mInputState == ePureAscii:\n self.result = {'encoding': 'ascii', 'confidence': 1.0}\n return self.result\n\n if self._mInputState == eHighbyte:\n proberConfidence = None\n maxProberConfidence = 0.0\n maxProber = None\n for prober in self._mCharSetProbers:\n if not prober:\n continue\n proberConfidence = prober.get_confidence()\n if proberConfidence > maxProberConfidence:\n maxProberConfidence = proberConfidence\n maxProber = prober\n if maxProber and (maxProberConfidence > MINIMUM_THRESHOLD):\n self.result = {'encoding': maxProber.get_charset_name(),\n 'confidence': maxProber.get_confidence()}\n return self.result\n\n if constants._debug:\n sys.stderr.write('no probers hit minimum threshhold\\n')\n for prober in self._mCharSetProbers[0].mProbers:\n if not prober:\n continue\n sys.stderr.write('%s confidence = %s\\n' %\n (prober.get_charset_name(),\n prober.get_confidence()))\n"},{"className":"TextIO","col":0,"comment":"null","endLoc":831,"id":1232,"nodeType":"Class","startLoc":818,"text":"class TextIO(IO[str]):\n # See comment regarding the @properties in the `IO` class\n @property\n def buffer(self) -> BinaryIO: ...\n @property\n def encoding(self) -> str: ...\n @property\n def errors(self) -> str | None: ...\n @property\n def line_buffering(self) -> int: ... # int on PyPy, bool on CPython\n @property\n def newlines(self) -> Any: ... # None, str or tuple\n @abstractmethod\n def __enter__(self) -> TextIO: ..."},{"className":"MBCSGroupProber","col":0,"comment":"null","endLoc":54,"id":1233,"nodeType":"Class","startLoc":41,"text":"class MBCSGroupProber(CharSetGroupProber):\n def __init__(self):\n CharSetGroupProber.__init__(self)\n self._mProbers = [\n UTF8Prober(),\n SJISProber(),\n EUCJPProber(),\n GB2312Prober(),\n EUCKRProber(),\n CP949Prober(),\n Big5Prober(),\n EUCTWProber()\n ]\n self.reset()"},{"col":4,"comment":"null","endLoc":821,"header":"@property\n def buffer(self) -> BinaryIO","id":1234,"name":"buffer","nodeType":"Function","startLoc":820,"text":"@property\n def buffer(self) -> BinaryIO: ..."},{"col":4,"comment":"null","endLoc":823,"header":"@property\n def encoding(self) -> str","id":1235,"name":"encoding","nodeType":"Function","startLoc":822,"text":"@property\n def encoding(self) -> str: ..."},{"col":4,"comment":"null","endLoc":825,"header":"@property\n def errors(self) -> str | None","id":1236,"name":"errors","nodeType":"Function","startLoc":824,"text":"@property\n def errors(self) -> str | None: ..."},{"col":4,"comment":"null","endLoc":827,"header":"@property\n def line_buffering(self) -> int","id":1237,"name":"line_buffering","nodeType":"Function","startLoc":826,"text":"@property\n def line_buffering(self) -> int: ... # int on PyPy, bool on CPython"},{"col":4,"comment":"null","endLoc":829,"header":"@property\n def newlines(self) -> Any","id":1238,"name":"newlines","nodeType":"Function","startLoc":828,"text":"@property\n def newlines(self) -> Any: ... # None, str or tuple"},{"col":4,"comment":"null","endLoc":831,"header":"@abstractmethod\n def __enter__(self) -> TextIO","id":1239,"name":"__enter__","nodeType":"Function","startLoc":830,"text":"@abstractmethod\n def __enter__(self) -> TextIO: ..."},{"col":4,"comment":"null","endLoc":187,"header":"def __init__(\n self,\n buffer: _BufferT_co,\n encoding: str | None = None,\n errors: str | None = None,\n newline: str | None = None,\n line_buffering: bool = False,\n write_through: bool = False,\n ) -> None","id":1240,"name":"__init__","nodeType":"Function","startLoc":179,"text":"def __init__(\n self,\n buffer: _BufferT_co,\n encoding: str | None = None,\n errors: str | None = None,\n newline: str | None = None,\n line_buffering: bool = False,\n write_through: bool = False,\n ) -> None: ..."},{"col":4,"comment":"null","endLoc":190,"header":"@property\n def buffer(self) -> _BufferT_co","id":1241,"name":"buffer","nodeType":"Function","startLoc":189,"text":"@property\n def buffer(self) -> _BufferT_co: ... # type: ignore[override]"},{"col":4,"comment":"null","endLoc":192,"header":"@property\n def closed(self) -> bool","id":1242,"name":"closed","nodeType":"Function","startLoc":191,"text":"@property\n def closed(self) -> bool: ..."},{"col":4,"comment":"null","endLoc":194,"header":"@property\n def line_buffering(self) -> bool","id":1243,"name":"line_buffering","nodeType":"Function","startLoc":193,"text":"@property\n def line_buffering(self) -> bool: ..."},{"col":4,"comment":"null","endLoc":196,"header":"@property\n def write_through(self) -> bool","id":1244,"name":"write_through","nodeType":"Function","startLoc":195,"text":"@property\n def write_through(self) -> bool: ..."},{"col":4,"comment":"null","endLoc":205,"header":"def reconfigure(\n self,\n *,\n encoding: str | None = None,\n errors: str | None = None,\n newline: str | None = None,\n line_buffering: bool | None = None,\n write_through: bool | None = None,\n ) -> None","id":1245,"name":"reconfigure","nodeType":"Function","startLoc":197,"text":"def reconfigure(\n self,\n *,\n encoding: str | None = None,\n errors: str | None = None,\n newline: str | None = None,\n line_buffering: bool | None = None,\n write_through: bool | None = None,\n ) -> None: ..."},{"col":4,"comment":"null","endLoc":207,"header":"def __enter__(self) -> Self","id":1246,"name":"__enter__","nodeType":"Function","startLoc":207,"text":"def __enter__(self) -> Self: ..."},{"col":4,"comment":"null","endLoc":208,"header":"def __iter__(self) -> Iterator[str]","id":1247,"name":"__iter__","nodeType":"Function","startLoc":208,"text":"def __iter__(self) -> Iterator[str]: ... # type: ignore[override]"},{"col":4,"comment":"null","endLoc":209,"header":"def __next__(self) -> str","id":1248,"name":"__next__","nodeType":"Function","startLoc":209,"text":"def __next__(self) -> str: ... # type: ignore[override]"},{"col":4,"comment":"null","endLoc":210,"header":"def writelines(self, lines: Iterable[str], /) -> None","id":1249,"name":"writelines","nodeType":"Function","startLoc":210,"text":"def writelines(self, lines: Iterable[str], /) -> None: ... # type: ignore[override]"},{"col":4,"comment":"null","endLoc":211,"header":"def readline(self, size: int = -1, /) -> str","id":1250,"name":"readline","nodeType":"Function","startLoc":211,"text":"def readline(self, size: int = -1, /) -> str: ... # type: ignore[override]"},{"col":4,"comment":"null","endLoc":212,"header":"def readlines(self, hint: int = -1, /) -> list[str]","id":1251,"name":"readlines","nodeType":"Function","startLoc":212,"text":"def readlines(self, hint: int = -1, /) -> list[str]: ... # type: ignore[override]"},{"col":4,"comment":"null","endLoc":214,"header":"def detach(self) -> _BufferT_co","id":1252,"name":"detach","nodeType":"Function","startLoc":214,"text":"def detach(self) -> _BufferT_co: ... # type: ignore[override]"},{"col":4,"comment":"null","endLoc":217,"header":"def seek(self, cookie: int, whence: int = 0, /) -> int","id":1253,"name":"seek","nodeType":"Function","startLoc":217,"text":"def seek(self, cookie: int, whence: int = 0, /) -> int: ..."},{"col":4,"comment":"null","endLoc":220,"header":"def __init__(self, initial_value: str | None = ..., newline: str | None = ...) -> None","id":1254,"name":"__init__","nodeType":"Function","startLoc":220,"text":"def __init__(self, initial_value: str | None = ..., newline: str | None = ...) -> None: ..."},{"col":4,"comment":"null","endLoc":225,"header":"def getvalue(self) -> str","id":1255,"name":"getvalue","nodeType":"Function","startLoc":225,"text":"def getvalue(self) -> str: ..."},{"attributeType":"null","col":4,"comment":"null","endLoc":224,"id":1256,"name":"name","nodeType":"Attribute","startLoc":224,"text":"name"},{"attributeType":"TypedDict","col":0,"comment":"null","endLoc":193,"id":1257,"name":"Win1255HebrewModel","nodeType":"Attribute","startLoc":193,"text":"Win1255HebrewModel"},{"col":0,"comment":"","endLoc":54,"header":"langhebrewmodel.py#","id":1258,"name":"","nodeType":"Function","startLoc":37,"text":"win1255_CharToOrderMap = (\n255,255,255,255,255,255,255,255,255,255,254,255,255,254,255,255, # 00\n255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, # 10\n253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253, # 20\n252,252,252,252,252,252,252,252,252,252,253,253,253,253,253,253, # 30\n253, 69, 91, 79, 80, 92, 89, 97, 90, 68,111,112, 82, 73, 95, 85, # 40\n 78,121, 86, 71, 67,102,107, 84,114,103,115,253,253,253,253,253, # 50\n253, 50, 74, 60, 61, 42, 76, 70, 64, 53,105, 93, 56, 65, 54, 49, # 60\n 66,110, 51, 43, 44, 63, 81, 77, 98, 75,108,253,253,253,253,253, # 70\n124,202,203,204,205, 40, 58,206,207,208,209,210,211,212,213,214,\n215, 83, 52, 47, 46, 72, 32, 94,216,113,217,109,218,219,220,221,\n 34,116,222,118,100,223,224,117,119,104,125,225,226, 87, 99,227,\n106,122,123,228, 55,229,230,101,231,232,120,233, 48, 39, 57,234,\n 30, 59, 41, 88, 33, 37, 36, 31, 29, 35,235, 62, 28,236,126,237,\n238, 38, 45,239,240,241,242,243,127,244,245,246,247,248,249,250,\n 9, 8, 20, 16, 3, 2, 24, 14, 22, 1, 25, 15, 4, 11, 6, 23,\n 12, 19, 13, 26, 18, 27, 21, 17, 7, 10, 5,251,252,128, 96,253,\n)\n\nHebrewLangModel = (\n0,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,3,3,3,3,3,2,3,2,1,2,0,1,0,0,\n3,0,3,1,0,0,1,3,2,0,1,1,2,0,2,2,2,1,1,1,1,2,1,1,1,2,0,0,2,2,0,1,\n3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,\n1,2,1,2,1,2,0,0,2,0,0,0,0,0,1,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,\n3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,\n1,2,1,3,1,1,0,0,2,0,0,0,1,0,1,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,\n3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,1,0,1,2,2,1,3,\n1,2,1,1,2,2,0,0,2,2,0,0,0,0,1,0,1,0,0,0,1,0,0,0,0,0,0,1,0,1,1,0,\n3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,2,2,2,2,3,2,\n1,2,1,2,2,2,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,\n3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,2,3,2,2,3,2,2,2,1,2,2,2,2,\n1,2,1,1,2,2,0,1,2,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,\n3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,0,2,2,2,2,2,\n0,2,0,2,2,2,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,\n3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,0,2,2,2,\n0,2,1,2,2,2,0,0,2,1,0,0,0,0,1,0,1,0,0,0,0,0,0,2,0,0,0,0,0,0,1,0,\n3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,3,2,1,2,3,2,2,2,\n1,2,1,2,2,2,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,0,\n3,3,3,3,3,3,3,3,3,2,3,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,3,1,0,2,0,2,\n0,2,1,2,2,2,0,0,1,2,0,0,0,0,1,0,1,0,0,0,0,0,0,1,0,0,0,2,0,0,1,0,\n3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,2,3,2,2,3,2,1,2,1,1,1,\n0,1,1,1,1,1,3,0,1,0,0,0,0,2,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,\n3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,0,1,1,0,0,1,0,0,1,0,0,0,0,\n0,0,1,0,0,0,0,0,2,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,\n0,2,0,1,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,\n3,3,3,3,3,3,3,3,3,2,3,3,3,2,1,2,3,3,2,3,3,3,3,2,3,2,1,2,0,2,1,2,\n0,2,0,2,2,2,0,0,1,2,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,1,0,0,1,0,\n3,3,3,3,3,3,3,3,3,2,3,3,3,1,2,2,3,3,2,3,2,3,2,2,3,1,2,2,0,2,2,2,\n0,2,1,2,2,2,0,0,1,2,0,0,0,0,1,0,0,0,0,0,1,0,0,1,0,0,0,1,0,0,1,0,\n3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,2,3,3,2,2,2,3,3,3,3,1,3,2,2,2,\n0,2,0,1,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,\n3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,3,3,3,2,3,2,2,2,1,2,2,0,2,2,2,2,\n0,2,0,2,2,2,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,\n3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,1,3,2,3,3,2,3,3,2,2,1,2,2,2,2,2,2,\n0,2,1,2,1,2,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,1,0,0,0,0,0,0,1,0,\n3,3,3,3,3,3,2,3,2,3,3,2,3,3,3,3,2,3,2,3,3,3,3,3,2,2,2,2,2,2,2,1,\n0,2,0,1,2,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,\n3,3,3,3,3,3,3,3,3,2,1,2,3,3,3,3,3,3,3,2,3,2,3,2,1,2,3,0,2,1,2,2,\n0,2,1,1,2,1,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,2,0,\n3,3,3,3,3,3,3,3,3,2,3,3,3,3,2,1,3,1,2,2,2,1,2,3,3,1,2,1,2,2,2,2,\n0,1,1,1,1,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,2,0,0,0,0,0,0,0,0,\n3,3,3,3,3,3,3,3,3,3,0,2,3,3,3,1,3,3,3,1,2,2,2,2,1,1,2,2,2,2,2,2,\n0,2,0,1,1,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,\n3,3,3,3,3,3,2,3,3,3,2,2,3,3,3,2,1,2,3,2,3,2,2,2,2,1,2,1,1,1,2,2,\n0,2,1,1,1,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,\n3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,0,0,1,0,0,0,0,0,\n1,0,1,0,0,0,0,0,2,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n3,3,3,3,3,2,3,3,2,3,1,2,2,2,2,3,2,3,1,1,2,2,1,2,2,1,1,0,2,2,2,2,\n0,1,0,1,2,2,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,\n3,0,0,1,1,0,1,0,0,1,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,2,2,0,\n0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n3,0,1,0,1,0,1,1,0,1,1,0,0,0,1,1,0,1,1,1,0,0,0,0,0,0,1,0,0,0,0,0,\n0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n3,0,0,0,1,1,0,1,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,\n0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,\n3,2,2,1,2,2,2,2,2,2,2,1,2,2,1,2,2,1,1,1,1,1,1,1,1,2,1,1,0,3,3,3,\n0,3,0,2,2,2,2,0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,\n2,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,1,2,2,2,1,1,1,2,0,1,\n0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,0,2,2,0,0,0,0,0,0,\n0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n2,3,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,1,0,2,1,0,\n0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n3,1,1,1,1,1,1,1,1,1,1,0,0,1,1,1,1,0,1,1,1,1,0,0,0,0,0,0,0,0,0,0,\n0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,\n0,3,1,1,2,2,2,2,2,1,2,2,2,1,1,2,2,2,2,2,2,2,1,2,2,1,0,1,1,1,1,0,\n0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n3,2,1,1,1,1,2,1,1,2,1,0,1,1,1,1,1,1,1,1,1,1,1,0,1,0,0,0,0,0,0,0,\n0,0,2,0,0,0,0,0,0,0,0,1,1,0,0,0,0,1,1,0,0,1,1,0,0,0,0,0,0,1,0,0,\n2,1,1,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,1,2,1,2,1,1,1,1,0,0,0,0,\n0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n1,2,1,2,2,2,2,2,2,2,2,2,2,1,2,1,2,1,1,2,1,1,1,2,1,2,1,2,0,1,0,1,\n0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n0,3,1,2,2,2,1,2,2,2,2,2,2,2,2,1,2,1,1,1,1,1,1,2,1,2,1,1,0,1,0,1,\n0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n2,1,2,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,\n0,2,0,1,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,\n3,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,\n0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n2,1,1,1,1,1,1,1,0,1,1,0,1,0,0,1,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,\n0,0,0,0,0,0,0,0,2,0,1,1,1,0,1,0,0,0,1,1,0,1,1,0,0,0,0,0,1,1,0,0,\n0,1,1,1,2,1,2,2,2,0,2,0,2,0,1,1,2,1,1,1,1,2,1,0,1,1,0,0,0,0,0,0,\n0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,\n1,0,1,0,0,0,0,0,1,0,1,2,2,0,1,0,0,1,1,2,2,1,2,0,2,0,0,0,1,2,0,1,\n2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n0,0,0,0,0,0,0,0,2,0,2,1,2,0,2,0,0,1,1,1,1,1,1,0,1,0,0,0,1,0,0,1,\n2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n0,0,1,0,0,0,0,0,1,0,2,1,1,0,1,0,0,1,1,1,2,2,0,0,1,0,0,0,1,0,0,1,\n1,1,2,1,0,1,1,1,0,1,0,1,1,1,1,0,0,0,1,0,1,0,0,0,0,0,0,0,0,2,2,1,\n0,2,0,1,2,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n2,1,0,0,1,0,1,1,1,1,0,0,0,0,0,1,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,\n0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n1,1,1,1,1,1,1,1,1,2,1,0,1,1,1,1,1,1,1,1,1,1,1,0,1,0,0,0,0,0,0,0,\n0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,1,1,1,0,1,1,0,1,0,0,0,1,1,0,1,\n2,0,1,0,1,0,1,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n0,0,0,0,0,0,0,0,1,0,1,1,1,0,1,0,0,1,1,2,1,1,2,0,1,0,0,0,1,1,0,1,\n1,0,0,1,0,0,1,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n0,0,0,0,0,0,0,0,1,0,1,1,2,0,1,0,0,0,0,2,1,1,2,0,2,0,0,0,1,1,0,1,\n1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n0,0,0,0,0,0,0,0,1,0,2,1,1,0,1,0,0,2,2,1,2,1,1,0,1,0,0,0,1,1,0,1,\n2,0,1,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n0,0,0,0,0,0,0,0,0,0,1,2,2,0,0,0,0,0,1,1,0,1,0,0,1,0,0,0,0,1,0,1,\n1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n0,0,0,0,0,0,0,0,0,0,1,2,2,0,0,0,0,2,1,1,1,0,2,1,1,0,0,0,2,1,0,1,\n1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n0,0,0,0,0,0,0,0,1,0,1,1,2,0,1,0,0,1,1,0,2,1,1,0,1,0,0,0,1,1,0,1,\n2,2,1,1,1,0,1,1,0,1,1,0,1,0,0,0,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,\n0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n0,0,0,0,0,0,0,0,1,0,2,1,1,0,1,0,0,1,1,0,1,2,1,0,2,0,0,0,1,1,0,1,\n2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,\n0,1,0,0,2,0,2,1,1,0,1,0,1,0,0,1,0,0,0,0,1,0,0,0,1,0,0,0,0,0,1,0,\n0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n0,0,0,0,0,0,0,0,1,0,1,1,2,0,1,0,0,1,1,1,0,1,0,0,1,0,0,0,1,0,0,1,\n1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n1,0,0,0,0,0,0,0,1,0,1,1,0,0,1,0,0,2,1,1,1,1,1,0,1,0,0,0,0,1,0,1,\n0,1,1,1,2,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,0,0,0,0,0,0,0,\n0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\n0,0,0,0,0,0,0,0,0,0,1,2,1,0,0,0,0,0,1,1,1,1,1,0,1,0,0,0,1,1,0,0,\n)\n\nWin1255HebrewModel = {\n 'charToOrderMap': win1255_CharToOrderMap,\n 'precedenceMatrix': HebrewLangModel,\n 'mTypicalPositiveRatio': 0.984004,\n 'keepEnglishLetter': False,\n 'charsetName': \"windows-1255\"\n}"},{"attributeType":"null","col":0,"comment":"null","endLoc":19,"id":1259,"name":"is_py2","nodeType":"Attribute","startLoc":19,"text":"is_py2"},{"attributeType":"null","col":4,"comment":"null","endLoc":111,"id":1260,"name":"builtin_str","nodeType":"Attribute","startLoc":111,"text":"builtin_str"},{"attributeType":"null","col":4,"comment":"null","endLoc":95,"id":1261,"name":"builtin_str","nodeType":"Attribute","startLoc":95,"text":"builtin_str"},{"className":"IncompleteRead","col":0,"comment":"null","endLoc":232,"id":1262,"nodeType":"Class","startLoc":229,"text":"class IncompleteRead(HTTPException):\n def __init__(self, partial: bytes, expected: int | None = None) -> None: ...\n partial: bytes\n expected: int | None"},{"col":4,"comment":"null","endLoc":230,"header":"def __init__(self, partial: bytes, expected: int | None = None) -> None","id":1263,"name":"__init__","nodeType":"Function","startLoc":230,"text":"def __init__(self, partial: bytes, expected: int | None = None) -> None: ..."},{"attributeType":"bytes","col":4,"comment":"null","endLoc":231,"id":1264,"name":"partial","nodeType":"Attribute","startLoc":231,"text":"partial"},{"className":"CharSetGroupProber","col":0,"comment":"null","endLoc":103,"id":1265,"nodeType":"Class","startLoc":33,"text":"class CharSetGroupProber(CharSetProber):\n def __init__(self):\n CharSetProber.__init__(self)\n self._mActiveNum = 0\n self._mProbers = []\n self._mBestGuessProber = None\n\n def reset(self):\n CharSetProber.reset(self)\n self._mActiveNum = 0\n for prober in self._mProbers:\n if prober:\n prober.reset()\n prober.active = True\n self._mActiveNum += 1\n self._mBestGuessProber = None\n\n def get_charset_name(self):\n if not self._mBestGuessProber:\n self.get_confidence()\n if not self._mBestGuessProber:\n return None\n# self._mBestGuessProber = self._mProbers[0]\n return self._mBestGuessProber.get_charset_name()\n\n def feed(self, aBuf):\n for prober in self._mProbers:\n if not prober:\n continue\n if not prober.active:\n continue\n st = prober.feed(aBuf)\n if not st:\n continue\n if st == constants.eFoundIt:\n self._mBestGuessProber = prober\n return self.get_state()\n elif st == constants.eNotMe:\n prober.active = False\n self._mActiveNum -= 1\n if self._mActiveNum <= 0:\n self._mState = constants.eNotMe\n return self.get_state()\n return self.get_state()\n\n def get_confidence(self):\n st = self.get_state()\n if st == constants.eFoundIt:\n return 0.99\n elif st == constants.eNotMe:\n return 0.01\n bestConf = 0.0\n self._mBestGuessProber = None\n for prober in self._mProbers:\n if not prober:\n continue\n if not prober.active:\n if constants._debug:\n sys.stderr.write(prober.get_charset_name()\n + ' not active\\n')\n continue\n cf = prober.get_confidence()\n if constants._debug:\n sys.stderr.write('%s confidence = %s\\n' %\n (prober.get_charset_name(), cf))\n if bestConf < cf:\n bestConf = cf\n self._mBestGuessProber = prober\n if not self._mBestGuessProber:\n return 0.0\n return bestConf"},{"attributeType":"int | None","col":4,"comment":"null","endLoc":232,"id":1266,"name":"expected","nodeType":"Attribute","startLoc":232,"text":"expected"},{"col":4,"comment":"null","endLoc":38,"header":"def __init__(self)","id":1267,"name":"__init__","nodeType":"Function","startLoc":34,"text":"def __init__(self):\n CharSetProber.__init__(self)\n self._mActiveNum = 0\n self._mProbers = []\n self._mBestGuessProber = None"},{"attributeType":"int","col":0,"comment":"null","endLoc":34,"id":1268,"name":"CONTENT_CHUNK_SIZE","nodeType":"Attribute","startLoc":34,"text":"CONTENT_CHUNK_SIZE"},{"col":4,"comment":"null","endLoc":48,"header":"def reset(self)","id":1269,"name":"reset","nodeType":"Function","startLoc":40,"text":"def reset(self):\n CharSetProber.reset(self)\n self._mActiveNum = 0\n for prober in self._mProbers:\n if prober:\n prober.reset()\n prober.active = True\n self._mActiveNum += 1\n self._mBestGuessProber = None"},{"attributeType":"int","col":0,"comment":"null","endLoc":35,"id":1270,"name":"ITER_CHUNK_SIZE","nodeType":"Attribute","startLoc":35,"text":"ITER_CHUNK_SIZE"},{"attributeType":"Logger","col":0,"comment":"null","endLoc":37,"id":1271,"name":"log","nodeType":"Attribute","startLoc":37,"text":"log"},{"col":4,"comment":"null","endLoc":56,"header":"def get_charset_name(self)","id":1272,"name":"get_charset_name","nodeType":"Function","startLoc":50,"text":"def get_charset_name(self):\n if not self._mBestGuessProber:\n self.get_confidence()\n if not self._mBestGuessProber:\n return None\n# self._mBestGuessProber = self._mProbers[0]\n return self._mBestGuessProber.get_charset_name()"},{"col":0,"comment":"","endLoc":8,"header":"models.py#","id":1274,"name":"","nodeType":"Function","startLoc":3,"text":"\"\"\"\nrequests.models\n~~~~~~~~~~~~~~~\n\nThis module contains the primary objects that power Requests.\n\"\"\"\n\nCONTENT_CHUNK_SIZE = 10 * 1024\n\nITER_CHUNK_SIZE = 512\n\nlog = logging.getLogger(__name__)"},{"fileName":"codingstatemachine.py","filePath":"requests/packages/charade","id":1275,"nodeType":"File","text":"######################## BEGIN LICENSE BLOCK ########################\n# The Original Code is mozilla.org code.\n#\n# The Initial Developer of the Original Code is\n# Netscape Communications Corporation.\n# Portions created by the Initial Developer are Copyright (C) 1998\n# the Initial Developer. All Rights Reserved.\n#\n# Contributor(s):\n# Mark Pilgrim - port to Python\n#\n# This library is free software; you can redistribute it and/or\n# modify it under the terms of the GNU Lesser General Public\n# License as published by the Free Software Foundation; either\n# version 2.1 of the License, or (at your option) any later version.\n#\n# This library is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n# Lesser General Public License for more details.\n#\n# You should have received a copy of the GNU Lesser General Public\n# License along with this library; if not, write to the Free Software\n# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n# 02110-1301 USA\n######################### END LICENSE BLOCK #########################\n\nfrom .constants import eStart\nfrom .compat import wrap_ord\n\n\nclass CodingStateMachine:\n def __init__(self, sm):\n self._mModel = sm\n self._mCurrentBytePos = 0\n self._mCurrentCharLen = 0\n self.reset()\n\n def reset(self):\n self._mCurrentState = eStart\n\n def next_state(self, c):\n # for each byte we get its class\n # if it is first byte, we also get byte length\n # PY3K: aBuf is a byte stream, so c is an int, not a byte\n byteCls = self._mModel['classTable'][wrap_ord(c)]\n if self._mCurrentState == eStart:\n self._mCurrentBytePos = 0\n self._mCurrentCharLen = self._mModel['charLenTable'][byteCls]\n # from byte's class and stateTable, we get its next state\n curr_state = (self._mCurrentState * self._mModel['classFactor']\n + byteCls)\n self._mCurrentState = self._mModel['stateTable'][curr_state]\n self._mCurrentBytePos += 1\n return self._mCurrentState\n\n def get_current_charlen(self):\n return self._mCurrentCharLen\n\n def get_coding_state_machine(self):\n return self._mModel['name']\n"},{"col":4,"comment":"null","endLoc":103,"header":"def get_confidence(self)","id":1276,"name":"get_confidence","nodeType":"Function","startLoc":78,"text":"def get_confidence(self):\n st = self.get_state()\n if st == constants.eFoundIt:\n return 0.99\n elif st == constants.eNotMe:\n return 0.01\n bestConf = 0.0\n self._mBestGuessProber = None\n for prober in self._mProbers:\n if not prober:\n continue\n if not prober.active:\n if constants._debug:\n sys.stderr.write(prober.get_charset_name()\n + ' not active\\n')\n continue\n cf = prober.get_confidence()\n if constants._debug:\n sys.stderr.write('%s confidence = %s\\n' %\n (prober.get_charset_name(), cf))\n if bestConf < cf:\n bestConf = cf\n self._mBestGuessProber = prober\n if not self._mBestGuessProber:\n return 0.0\n return bestConf"},{"fileName":"mbcsgroupprober.py","filePath":"requests/packages/charade","id":1277,"nodeType":"File","text":"######################## BEGIN LICENSE BLOCK ########################\n# The Original Code is Mozilla Universal charset detector code.\n#\n# The Initial Developer of the Original Code is\n# Netscape Communications Corporation.\n# Portions created by the Initial Developer are Copyright (C) 2001\n# the Initial Developer. All Rights Reserved.\n#\n# Contributor(s):\n# Mark Pilgrim - port to Python\n# Shy Shalom - original C code\n# Proofpoint, Inc.\n#\n# This library is free software; you can redistribute it and/or\n# modify it under the terms of the GNU Lesser General Public\n# License as published by the Free Software Foundation; either\n# version 2.1 of the License, or (at your option) any later version.\n#\n# This library is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n# Lesser General Public License for more details.\n#\n# You should have received a copy of the GNU Lesser General Public\n# License along with this library; if not, write to the Free Software\n# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n# 02110-1301 USA\n######################### END LICENSE BLOCK #########################\n\nfrom .charsetgroupprober import CharSetGroupProber\nfrom .utf8prober import UTF8Prober\nfrom .sjisprober import SJISProber\nfrom .eucjpprober import EUCJPProber\nfrom .gb2312prober import GB2312Prober\nfrom .euckrprober import EUCKRProber\nfrom .cp949prober import CP949Prober\nfrom .big5prober import Big5Prober\nfrom .euctwprober import EUCTWProber\n\n\nclass MBCSGroupProber(CharSetGroupProber):\n def __init__(self):\n CharSetGroupProber.__init__(self)\n self._mProbers = [\n UTF8Prober(),\n SJISProber(),\n EUCJPProber(),\n GB2312Prober(),\n EUCKRProber(),\n CP949Prober(),\n Big5Prober(),\n EUCTWProber()\n ]\n self.reset()\n"},{"fileName":"api.py","filePath":"requests","id":1278,"nodeType":"File","text":"# -*- coding: utf-8 -*-\n\n\"\"\"\nrequests.api\n~~~~~~~~~~~~\n\nThis module implements the Requests API.\n\n:copyright: (c) 2012 by Kenneth Reitz.\n:license: Apache2, see LICENSE for more details.\n\n\"\"\"\n\nfrom . import sessions\n\n\ndef request(method, url, **kwargs):\n \"\"\"Constructs and sends a :class:`Request `.\n Returns :class:`Response ` object.\n\n :param method: method for the new :class:`Request` object.\n :param url: URL for the new :class:`Request` object.\n :param params: (optional) Dictionary or bytes to be sent in the query string for the :class:`Request`.\n :param data: (optional) Dictionary, bytes, or file-like object to send in the body of the :class:`Request`.\n :param headers: (optional) Dictionary of HTTP Headers to send with the :class:`Request`.\n :param cookies: (optional) Dict or CookieJar object to send with the :class:`Request`.\n :param files: (optional) Dictionary of 'name': file-like-objects (or {'name': ('filename', fileobj)}) for multipart encoding upload.\n :param auth: (optional) Auth tuple to enable Basic/Digest/Custom HTTP Auth.\n :param timeout: (optional) Float describing the timeout of the request.\n :param allow_redirects: (optional) Boolean. Set to True if POST/PUT/DELETE redirect following is allowed.\n :param proxies: (optional) Dictionary mapping protocol to the URL of the proxy.\n :param verify: (optional) if ``True``, the SSL cert will be verified. A CA_BUNDLE path can also be provided.\n :param stream: (optional) if ``False``, the response content will be immediately downloaded.\n :param cert: (optional) if String, path to ssl client cert file (.pem). If Tuple, ('cert', 'key') pair.\n\n Usage::\n\n >>> import requests\n >>> req = requests.request('GET', 'http://httpbin.org/get')\n \n \"\"\"\n\n session = sessions.Session()\n return session.request(method=method, url=url, **kwargs)\n\n\ndef get(url, **kwargs):\n \"\"\"Sends a GET request. Returns :class:`Response` object.\n\n :param url: URL for the new :class:`Request` object.\n :param \\*\\*kwargs: Optional arguments that ``request`` takes.\n \"\"\"\n\n kwargs.setdefault('allow_redirects', True)\n return request('get', url, **kwargs)\n\n\ndef options(url, **kwargs):\n \"\"\"Sends a OPTIONS request. Returns :class:`Response` object.\n\n :param url: URL for the new :class:`Request` object.\n :param \\*\\*kwargs: Optional arguments that ``request`` takes.\n \"\"\"\n\n kwargs.setdefault('allow_redirects', True)\n return request('options', url, **kwargs)\n\n\ndef head(url, **kwargs):\n \"\"\"Sends a HEAD request. Returns :class:`Response` object.\n\n :param url: URL for the new :class:`Request` object.\n :param \\*\\*kwargs: Optional arguments that ``request`` takes.\n \"\"\"\n\n kwargs.setdefault('allow_redirects', False)\n return request('head', url, **kwargs)\n\n\ndef post(url, data=None, **kwargs):\n \"\"\"Sends a POST request. Returns :class:`Response` object.\n\n :param url: URL for the new :class:`Request` object.\n :param data: (optional) Dictionary, bytes, or file-like object to send in the body of the :class:`Request`.\n :param \\*\\*kwargs: Optional arguments that ``request`` takes.\n \"\"\"\n\n return request('post', url, data=data, **kwargs)\n\n\ndef put(url, data=None, **kwargs):\n \"\"\"Sends a PUT request. Returns :class:`Response` object.\n\n :param url: URL for the new :class:`Request` object.\n :param data: (optional) Dictionary, bytes, or file-like object to send in the body of the :class:`Request`.\n :param \\*\\*kwargs: Optional arguments that ``request`` takes.\n \"\"\"\n\n return request('put', url, data=data, **kwargs)\n\n\ndef patch(url, data=None, **kwargs):\n \"\"\"Sends a PATCH request. Returns :class:`Response` object.\n\n :param url: URL for the new :class:`Request` object.\n :param data: (optional) Dictionary, bytes, or file-like object to send in the body of the :class:`Request`.\n :param \\*\\*kwargs: Optional arguments that ``request`` takes.\n \"\"\"\n\n return request('patch', url, data=data, **kwargs)\n\n\ndef delete(url, **kwargs):\n \"\"\"Sends a DELETE request. Returns :class:`Response` object.\n\n :param url: URL for the new :class:`Request` object.\n :param \\*\\*kwargs: Optional arguments that ``request`` takes.\n \"\"\"\n\n return request('delete', url, **kwargs)\n"},{"className":"GB2312Prober","col":0,"comment":"null","endLoc":41,"id":1279,"nodeType":"Class","startLoc":33,"text":"class GB2312Prober(MultiByteCharSetProber):\n def __init__(self):\n MultiByteCharSetProber.__init__(self)\n self._mCodingSM = CodingStateMachine(GB2312SMModel)\n self._mDistributionAnalyzer = GB2312DistributionAnalysis()\n self.reset()\n\n def get_charset_name(self):\n return \"GB2312\""},{"fileName":"euckrfreq.py","filePath":"requests/packages/charade","id":1280,"nodeType":"File","text":"######################## BEGIN LICENSE BLOCK ########################\n# The Original Code is Mozilla Communicator client code.\n#\n# The Initial Developer of the Original Code is\n# Netscape Communications Corporation.\n# Portions created by the Initial Developer are Copyright (C) 1998\n# the Initial Developer. All Rights Reserved.\n#\n# Contributor(s):\n# Mark Pilgrim - port to Python\n#\n# This library is free software; you can redistribute it and/or\n# modify it under the terms of the GNU Lesser General Public\n# License as published by the Free Software Foundation; either\n# version 2.1 of the License, or (at your option) any later version.\n# \n# This library is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n# Lesser General Public License for more details.\n# \n# You should have received a copy of the GNU Lesser General Public\n# License along with this library; if not, write to the Free Software\n# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n# 02110-1301 USA\n######################### END LICENSE BLOCK #########################\n\n# Sampling from about 20M text materials include literature and computer technology\n\n# 128 --> 0.79\n# 256 --> 0.92\n# 512 --> 0.986\n# 1024 --> 0.99944\n# 2048 --> 0.99999\n#\n# Idea Distribution Ratio = 0.98653 / (1-0.98653) = 73.24\n# Random Distribution Ration = 512 / (2350-512) = 0.279.\n# \n# Typical Distribution Ratio \n\nEUCKR_TYPICAL_DISTRIBUTION_RATIO = 6.0\n\nEUCKR_TABLE_SIZE = 2352\n\n# Char to FreqOrder table , \nEUCKRCharToFreqOrder = ( \\\n 13, 130, 120,1396, 481,1719,1720, 328, 609, 212,1721, 707, 400, 299,1722, 87,\n1397,1723, 104, 536,1117,1203,1724,1267, 685,1268, 508,1725,1726,1727,1728,1398,\n1399,1729,1730,1731, 141, 621, 326,1057, 368,1732, 267, 488, 20,1733,1269,1734,\n 945,1400,1735, 47, 904,1270,1736,1737, 773, 248,1738, 409, 313, 786, 429,1739,\n 116, 987, 813,1401, 683, 75,1204, 145,1740,1741,1742,1743, 16, 847, 667, 622,\n 708,1744,1745,1746, 966, 787, 304, 129,1747, 60, 820, 123, 676,1748,1749,1750,\n1751, 617,1752, 626,1753,1754,1755,1756, 653,1757,1758,1759,1760,1761,1762, 856,\n 344,1763,1764,1765,1766, 89, 401, 418, 806, 905, 848,1767,1768,1769, 946,1205,\n 709,1770,1118,1771, 241,1772,1773,1774,1271,1775, 569,1776, 999,1777,1778,1779,\n1780, 337, 751,1058, 28, 628, 254,1781, 177, 906, 270, 349, 891,1079,1782, 19,\n1783, 379,1784, 315,1785, 629, 754,1402, 559,1786, 636, 203,1206,1787, 710, 567,\n1788, 935, 814,1789,1790,1207, 766, 528,1791,1792,1208,1793,1794,1795,1796,1797,\n1403,1798,1799, 533,1059,1404,1405,1156,1406, 936, 884,1080,1800, 351,1801,1802,\n1803,1804,1805, 801,1806,1807,1808,1119,1809,1157, 714, 474,1407,1810, 298, 899,\n 885,1811,1120, 802,1158,1812, 892,1813,1814,1408, 659,1815,1816,1121,1817,1818,\n1819,1820,1821,1822, 319,1823, 594, 545,1824, 815, 937,1209,1825,1826, 573,1409,\n1022,1827,1210,1828,1829,1830,1831,1832,1833, 556, 722, 807,1122,1060,1834, 697,\n1835, 900, 557, 715,1836,1410, 540,1411, 752,1159, 294, 597,1211, 976, 803, 770,\n1412,1837,1838, 39, 794,1413, 358,1839, 371, 925,1840, 453, 661, 788, 531, 723,\n 544,1023,1081, 869, 91,1841, 392, 430, 790, 602,1414, 677,1082, 457,1415,1416,\n1842,1843, 475, 327,1024,1417, 795, 121,1844, 733, 403,1418,1845,1846,1847, 300,\n 119, 711,1212, 627,1848,1272, 207,1849,1850, 796,1213, 382,1851, 519,1852,1083,\n 893,1853,1854,1855, 367, 809, 487, 671,1856, 663,1857,1858, 956, 471, 306, 857,\n1859,1860,1160,1084,1861,1862,1863,1864,1865,1061,1866,1867,1868,1869,1870,1871,\n 282, 96, 574,1872, 502,1085,1873,1214,1874, 907,1875,1876, 827, 977,1419,1420,\n1421, 268,1877,1422,1878,1879,1880, 308,1881, 2, 537,1882,1883,1215,1884,1885,\n 127, 791,1886,1273,1423,1887, 34, 336, 404, 643,1888, 571, 654, 894, 840,1889,\n 0, 886,1274, 122, 575, 260, 908, 938,1890,1275, 410, 316,1891,1892, 100,1893,\n1894,1123, 48,1161,1124,1025,1895, 633, 901,1276,1896,1897, 115, 816,1898, 317,\n1899, 694,1900, 909, 734,1424, 572, 866,1425, 691, 85, 524,1010, 543, 394, 841,\n1901,1902,1903,1026,1904,1905,1906,1907,1908,1909, 30, 451, 651, 988, 310,1910,\n1911,1426, 810,1216, 93,1912,1913,1277,1217,1914, 858, 759, 45, 58, 181, 610,\n 269,1915,1916, 131,1062, 551, 443,1000, 821,1427, 957, 895,1086,1917,1918, 375,\n1919, 359,1920, 687,1921, 822,1922, 293,1923,1924, 40, 662, 118, 692, 29, 939,\n 887, 640, 482, 174,1925, 69,1162, 728,1428, 910,1926,1278,1218,1279, 386, 870,\n 217, 854,1163, 823,1927,1928,1929,1930, 834,1931, 78,1932, 859,1933,1063,1934,\n1935,1936,1937, 438,1164, 208, 595,1938,1939,1940,1941,1219,1125,1942, 280, 888,\n1429,1430,1220,1431,1943,1944,1945,1946,1947,1280, 150, 510,1432,1948,1949,1950,\n1951,1952,1953,1954,1011,1087,1955,1433,1043,1956, 881,1957, 614, 958,1064,1065,\n1221,1958, 638,1001, 860, 967, 896,1434, 989, 492, 553,1281,1165,1959,1282,1002,\n1283,1222,1960,1961,1962,1963, 36, 383, 228, 753, 247, 454,1964, 876, 678,1965,\n1966,1284, 126, 464, 490, 835, 136, 672, 529, 940,1088,1435, 473,1967,1968, 467,\n 50, 390, 227, 587, 279, 378, 598, 792, 968, 240, 151, 160, 849, 882,1126,1285,\n 639,1044, 133, 140, 288, 360, 811, 563,1027, 561, 142, 523,1969,1970,1971, 7,\n 103, 296, 439, 407, 506, 634, 990,1972,1973,1974,1975, 645,1976,1977,1978,1979,\n1980,1981, 236,1982,1436,1983,1984,1089, 192, 828, 618, 518,1166, 333,1127,1985,\n 818,1223,1986,1987,1988,1989,1990,1991,1992,1993, 342,1128,1286, 746, 842,1994,\n1995, 560, 223,1287, 98, 8, 189, 650, 978,1288,1996,1437,1997, 17, 345, 250,\n 423, 277, 234, 512, 226, 97, 289, 42, 167,1998, 201,1999,2000, 843, 836, 824,\n 532, 338, 783,1090, 182, 576, 436,1438,1439, 527, 500,2001, 947, 889,2002,2003,\n2004,2005, 262, 600, 314, 447,2006, 547,2007, 693, 738,1129,2008, 71,1440, 745,\n 619, 688,2009, 829,2010,2011, 147,2012, 33, 948,2013,2014, 74, 224,2015, 61,\n 191, 918, 399, 637,2016,1028,1130, 257, 902,2017,2018,2019,2020,2021,2022,2023,\n2024,2025,2026, 837,2027,2028,2029,2030, 179, 874, 591, 52, 724, 246,2031,2032,\n2033,2034,1167, 969,2035,1289, 630, 605, 911,1091,1168,2036,2037,2038,1441, 912,\n2039, 623,2040,2041, 253,1169,1290,2042,1442, 146, 620, 611, 577, 433,2043,1224,\n 719,1170, 959, 440, 437, 534, 84, 388, 480,1131, 159, 220, 198, 679,2044,1012,\n 819,1066,1443, 113,1225, 194, 318,1003,1029,2045,2046,2047,2048,1067,2049,2050,\n2051,2052,2053, 59, 913, 112,2054, 632,2055, 455, 144, 739,1291,2056, 273, 681,\n 499,2057, 448,2058,2059, 760,2060,2061, 970, 384, 169, 245,1132,2062,2063, 414,\n1444,2064,2065, 41, 235,2066, 157, 252, 877, 568, 919, 789, 580,2067, 725,2068,\n2069,1292,2070,2071,1445,2072,1446,2073,2074, 55, 588, 66,1447, 271,1092,2075,\n1226,2076, 960,1013, 372,2077,2078,2079,2080,2081,1293,2082,2083,2084,2085, 850,\n2086,2087,2088,2089,2090, 186,2091,1068, 180,2092,2093,2094, 109,1227, 522, 606,\n2095, 867,1448,1093, 991,1171, 926, 353,1133,2096, 581,2097,2098,2099,1294,1449,\n1450,2100, 596,1172,1014,1228,2101,1451,1295,1173,1229,2102,2103,1296,1134,1452,\n 949,1135,2104,2105,1094,1453,1454,1455,2106,1095,2107,2108,2109,2110,2111,2112,\n2113,2114,2115,2116,2117, 804,2118,2119,1230,1231, 805,1456, 405,1136,2120,2121,\n2122,2123,2124, 720, 701,1297, 992,1457, 927,1004,2125,2126,2127,2128,2129,2130,\n 22, 417,2131, 303,2132, 385,2133, 971, 520, 513,2134,1174, 73,1096, 231, 274,\n 962,1458, 673,2135,1459,2136, 152,1137,2137,2138,2139,2140,1005,1138,1460,1139,\n2141,2142,2143,2144, 11, 374, 844,2145, 154,1232, 46,1461,2146, 838, 830, 721,\n1233, 106,2147, 90, 428, 462, 578, 566,1175, 352,2148,2149, 538,1234, 124,1298,\n2150,1462, 761, 565,2151, 686,2152, 649,2153, 72, 173,2154, 460, 415,2155,1463,\n2156,1235, 305,2157,2158,2159,2160,2161,2162, 579,2163,2164,2165,2166,2167, 747,\n2168,2169,2170,2171,1464, 669,2172,2173,2174,2175,2176,1465,2177, 23, 530, 285,\n2178, 335, 729,2179, 397,2180,2181,2182,1030,2183,2184, 698,2185,2186, 325,2187,\n2188, 369,2189, 799,1097,1015, 348,2190,1069, 680,2191, 851,1466,2192,2193, 10,\n2194, 613, 424,2195, 979, 108, 449, 589, 27, 172, 81,1031, 80, 774, 281, 350,\n1032, 525, 301, 582,1176,2196, 674,1045,2197,2198,1467, 730, 762,2199,2200,2201,\n2202,1468,2203, 993,2204,2205, 266,1070, 963,1140,2206,2207,2208, 664,1098, 972,\n2209,2210,2211,1177,1469,1470, 871,2212,2213,2214,2215,2216,1471,2217,2218,2219,\n2220,2221,2222,2223,2224,2225,2226,2227,1472,1236,2228,2229,2230,2231,2232,2233,\n2234,2235,1299,2236,2237, 200,2238, 477, 373,2239,2240, 731, 825, 777,2241,2242,\n2243, 521, 486, 548,2244,2245,2246,1473,1300, 53, 549, 137, 875, 76, 158,2247,\n1301,1474, 469, 396,1016, 278, 712,2248, 321, 442, 503, 767, 744, 941,1237,1178,\n1475,2249, 82, 178,1141,1179, 973,2250,1302,2251, 297,2252,2253, 570,2254,2255,\n2256, 18, 450, 206,2257, 290, 292,1142,2258, 511, 162, 99, 346, 164, 735,2259,\n1476,1477, 4, 554, 343, 798,1099,2260,1100,2261, 43, 171,1303, 139, 215,2262,\n2263, 717, 775,2264,1033, 322, 216,2265, 831,2266, 149,2267,1304,2268,2269, 702,\n1238, 135, 845, 347, 309,2270, 484,2271, 878, 655, 238,1006,1478,2272, 67,2273,\n 295,2274,2275, 461,2276, 478, 942, 412,2277,1034,2278,2279,2280, 265,2281, 541,\n2282,2283,2284,2285,2286, 70, 852,1071,2287,2288,2289,2290, 21, 56, 509, 117,\n 432,2291,2292, 331, 980, 552,1101, 148, 284, 105, 393,1180,1239, 755,2293, 187,\n2294,1046,1479,2295, 340,2296, 63,1047, 230,2297,2298,1305, 763,1306, 101, 800,\n 808, 494,2299,2300,2301, 903,2302, 37,1072, 14, 5,2303, 79, 675,2304, 312,\n2305,2306,2307,2308,2309,1480, 6,1307,2310,2311,2312, 1, 470, 35, 24, 229,\n2313, 695, 210, 86, 778, 15, 784, 592, 779, 32, 77, 855, 964,2314, 259,2315,\n 501, 380,2316,2317, 83, 981, 153, 689,1308,1481,1482,1483,2318,2319, 716,1484,\n2320,2321,2322,2323,2324,2325,1485,2326,2327, 128, 57, 68, 261,1048, 211, 170,\n1240, 31,2328, 51, 435, 742,2329,2330,2331, 635,2332, 264, 456,2333,2334,2335,\n 425,2336,1486, 143, 507, 263, 943,2337, 363, 920,1487, 256,1488,1102, 243, 601,\n1489,2338,2339,2340,2341,2342,2343,2344, 861,2345,2346,2347,2348,2349,2350, 395,\n2351,1490,1491, 62, 535, 166, 225,2352,2353, 668, 419,1241, 138, 604, 928,2354,\n1181,2355,1492,1493,2356,2357,2358,1143,2359, 696,2360, 387, 307,1309, 682, 476,\n2361,2362, 332, 12, 222, 156,2363, 232,2364, 641, 276, 656, 517,1494,1495,1035,\n 416, 736,1496,2365,1017, 586,2366,2367,2368,1497,2369, 242,2370,2371,2372,1498,\n2373, 965, 713,2374,2375,2376,2377, 740, 982,1499, 944,1500,1007,2378,2379,1310,\n1501,2380,2381,2382, 785, 329,2383,2384,1502,2385,2386,2387, 932,2388,1503,2389,\n2390,2391,2392,1242,2393,2394,2395,2396,2397, 994, 950,2398,2399,2400,2401,1504,\n1311,2402,2403,2404,2405,1049, 749,2406,2407, 853, 718,1144,1312,2408,1182,1505,\n2409,2410, 255, 516, 479, 564, 550, 214,1506,1507,1313, 413, 239, 444, 339,1145,\n1036,1508,1509,1314,1037,1510,1315,2411,1511,2412,2413,2414, 176, 703, 497, 624,\n 593, 921, 302,2415, 341, 165,1103,1512,2416,1513,2417,2418,2419, 376,2420, 700,\n2421,2422,2423, 258, 768,1316,2424,1183,2425, 995, 608,2426,2427,2428,2429, 221,\n2430,2431,2432,2433,2434,2435,2436,2437, 195, 323, 726, 188, 897, 983,1317, 377,\n 644,1050, 879,2438, 452,2439,2440,2441,2442,2443,2444, 914,2445,2446,2447,2448,\n 915, 489,2449,1514,1184,2450,2451, 515, 64, 427, 495,2452, 583,2453, 483, 485,\n1038, 562, 213,1515, 748, 666,2454,2455,2456,2457, 334,2458, 780, 996,1008, 705,\n1243,2459,2460,2461,2462,2463, 114,2464, 493,1146, 366, 163,1516, 961,1104,2465,\n 291,2466,1318,1105,2467,1517, 365,2468, 355, 951,1244,2469,1319,2470, 631,2471,\n2472, 218,1320, 364, 320, 756,1518,1519,1321,1520,1322,2473,2474,2475,2476, 997,\n2477,2478,2479,2480, 665,1185,2481, 916,1521,2482,2483,2484, 584, 684,2485,2486,\n 797,2487,1051,1186,2488,2489,2490,1522,2491,2492, 370,2493,1039,1187, 65,2494,\n 434, 205, 463,1188,2495, 125, 812, 391, 402, 826, 699, 286, 398, 155, 781, 771,\n 585,2496, 590, 505,1073,2497, 599, 244, 219, 917,1018, 952, 646,1523,2498,1323,\n2499,2500, 49, 984, 354, 741,2501, 625,2502,1324,2503,1019, 190, 357, 757, 491,\n 95, 782, 868,2504,2505,2506,2507,2508,2509, 134,1524,1074, 422,1525, 898,2510,\n 161,2511,2512,2513,2514, 769,2515,1526,2516,2517, 411,1325,2518, 472,1527,2519,\n2520,2521,2522,2523,2524, 985,2525,2526,2527,2528,2529,2530, 764,2531,1245,2532,\n2533, 25, 204, 311,2534, 496,2535,1052,2536,2537,2538,2539,2540,2541,2542, 199,\n 704, 504, 468, 758, 657,1528, 196, 44, 839,1246, 272, 750,2543, 765, 862,2544,\n2545,1326,2546, 132, 615, 933,2547, 732,2548,2549,2550,1189,1529,2551, 283,1247,\n1053, 607, 929,2552,2553,2554, 930, 183, 872, 616,1040,1147,2555,1148,1020, 441,\n 249,1075,2556,2557,2558, 466, 743,2559,2560,2561, 92, 514, 426, 420, 526,2562,\n2563,2564,2565,2566,2567,2568, 185,2569,2570,2571,2572, 776,1530, 658,2573, 362,\n2574, 361, 922,1076, 793,2575,2576,2577,2578,2579,2580,1531, 251,2581,2582,2583,\n2584,1532, 54, 612, 237,1327,2585,2586, 275, 408, 647, 111,2587,1533,1106, 465,\n 3, 458, 9, 38,2588, 107, 110, 890, 209, 26, 737, 498,2589,1534,2590, 431,\n 202, 88,1535, 356, 287,1107, 660,1149,2591, 381,1536, 986,1150, 445,1248,1151,\n 974,2592,2593, 846,2594, 446, 953, 184,1249,1250, 727,2595, 923, 193, 883,2596,\n2597,2598, 102, 324, 539, 817,2599, 421,1041,2600, 832,2601, 94, 175, 197, 406,\n2602, 459,2603,2604,2605,2606,2607, 330, 555,2608,2609,2610, 706,1108, 389,2611,\n2612,2613,2614, 233,2615, 833, 558, 931, 954,1251,2616,2617,1537, 546,2618,2619,\n1009,2620,2621,2622,1538, 690,1328,2623, 955,2624,1539,2625,2626, 772,2627,2628,\n2629,2630,2631, 924, 648, 863, 603,2632,2633, 934,1540, 864, 865,2634, 642,1042,\n 670,1190,2635,2636,2637,2638, 168,2639, 652, 873, 542,1054,1541,2640,2641,2642, # 512, 256\n#Everything below is of no interest for detection purpose\n2643,2644,2645,2646,2647,2648,2649,2650,2651,2652,2653,2654,2655,2656,2657,2658,\n2659,2660,2661,2662,2663,2664,2665,2666,2667,2668,2669,2670,2671,2672,2673,2674,\n2675,2676,2677,2678,2679,2680,2681,2682,2683,2684,2685,2686,2687,2688,2689,2690,\n2691,2692,2693,2694,2695,2696,2697,2698,2699,1542, 880,2700,2701,2702,2703,2704,\n2705,2706,2707,2708,2709,2710,2711,2712,2713,2714,2715,2716,2717,2718,2719,2720,\n2721,2722,2723,2724,2725,1543,2726,2727,2728,2729,2730,2731,2732,1544,2733,2734,\n2735,2736,2737,2738,2739,2740,2741,2742,2743,2744,2745,2746,2747,2748,2749,2750,\n2751,2752,2753,2754,1545,2755,2756,2757,2758,2759,2760,2761,2762,2763,2764,2765,\n2766,1546,2767,1547,2768,2769,2770,2771,2772,2773,2774,2775,2776,2777,2778,2779,\n2780,2781,2782,2783,2784,2785,2786,1548,2787,2788,2789,1109,2790,2791,2792,2793,\n2794,2795,2796,2797,2798,2799,2800,2801,2802,2803,2804,2805,2806,2807,2808,2809,\n2810,2811,2812,1329,2813,2814,2815,2816,2817,2818,2819,2820,2821,2822,2823,2824,\n2825,2826,2827,2828,2829,2830,2831,2832,2833,2834,2835,2836,2837,2838,2839,2840,\n2841,2842,2843,2844,2845,2846,2847,2848,2849,2850,2851,2852,2853,2854,2855,2856,\n1549,2857,2858,2859,2860,1550,2861,2862,1551,2863,2864,2865,2866,2867,2868,2869,\n2870,2871,2872,2873,2874,1110,1330,2875,2876,2877,2878,2879,2880,2881,2882,2883,\n2884,2885,2886,2887,2888,2889,2890,2891,2892,2893,2894,2895,2896,2897,2898,2899,\n2900,2901,2902,2903,2904,2905,2906,2907,2908,2909,2910,2911,2912,2913,2914,2915,\n2916,2917,2918,2919,2920,2921,2922,2923,2924,2925,2926,2927,2928,2929,2930,1331,\n2931,2932,2933,2934,2935,2936,2937,2938,2939,2940,2941,2942,2943,1552,2944,2945,\n2946,2947,2948,2949,2950,2951,2952,2953,2954,2955,2956,2957,2958,2959,2960,2961,\n2962,2963,2964,1252,2965,2966,2967,2968,2969,2970,2971,2972,2973,2974,2975,2976,\n2977,2978,2979,2980,2981,2982,2983,2984,2985,2986,2987,2988,2989,2990,2991,2992,\n2993,2994,2995,2996,2997,2998,2999,3000,3001,3002,3003,3004,3005,3006,3007,3008,\n3009,3010,3011,3012,1553,3013,3014,3015,3016,3017,1554,3018,1332,3019,3020,3021,\n3022,3023,3024,3025,3026,3027,3028,3029,3030,3031,3032,3033,3034,3035,3036,3037,\n3038,3039,3040,3041,3042,3043,3044,3045,3046,3047,3048,3049,3050,1555,3051,3052,\n3053,1556,1557,3054,3055,3056,3057,3058,3059,3060,3061,3062,3063,3064,3065,3066,\n3067,1558,3068,3069,3070,3071,3072,3073,3074,3075,3076,1559,3077,3078,3079,3080,\n3081,3082,3083,1253,3084,3085,3086,3087,3088,3089,3090,3091,3092,3093,3094,3095,\n3096,3097,3098,3099,3100,3101,3102,3103,3104,3105,3106,3107,3108,1152,3109,3110,\n3111,3112,3113,1560,3114,3115,3116,3117,1111,3118,3119,3120,3121,3122,3123,3124,\n3125,3126,3127,3128,3129,3130,3131,3132,3133,3134,3135,3136,3137,3138,3139,3140,\n3141,3142,3143,3144,3145,3146,3147,3148,3149,3150,3151,3152,3153,3154,3155,3156,\n3157,3158,3159,3160,3161,3162,3163,3164,3165,3166,3167,3168,3169,3170,3171,3172,\n3173,3174,3175,3176,1333,3177,3178,3179,3180,3181,3182,3183,3184,3185,3186,3187,\n3188,3189,1561,3190,3191,1334,3192,3193,3194,3195,3196,3197,3198,3199,3200,3201,\n3202,3203,3204,3205,3206,3207,3208,3209,3210,3211,3212,3213,3214,3215,3216,3217,\n3218,3219,3220,3221,3222,3223,3224,3225,3226,3227,3228,3229,3230,3231,3232,3233,\n3234,1562,3235,3236,3237,3238,3239,3240,3241,3242,3243,3244,3245,3246,3247,3248,\n3249,3250,3251,3252,3253,3254,3255,3256,3257,3258,3259,3260,3261,3262,3263,3264,\n3265,3266,3267,3268,3269,3270,3271,3272,3273,3274,3275,3276,3277,1563,3278,3279,\n3280,3281,3282,3283,3284,3285,3286,3287,3288,3289,3290,3291,3292,3293,3294,3295,\n3296,3297,3298,3299,3300,3301,3302,3303,3304,3305,3306,3307,3308,3309,3310,3311,\n3312,3313,3314,3315,3316,3317,3318,3319,3320,3321,3322,3323,3324,3325,3326,3327,\n3328,3329,3330,3331,3332,3333,3334,3335,3336,3337,3338,3339,3340,3341,3342,3343,\n3344,3345,3346,3347,3348,3349,3350,3351,3352,3353,3354,3355,3356,3357,3358,3359,\n3360,3361,3362,3363,3364,1335,3365,3366,3367,3368,3369,3370,3371,3372,3373,3374,\n3375,3376,3377,3378,3379,3380,3381,3382,3383,3384,3385,3386,3387,1336,3388,3389,\n3390,3391,3392,3393,3394,3395,3396,3397,3398,3399,3400,3401,3402,3403,3404,3405,\n3406,3407,3408,3409,3410,3411,3412,3413,3414,1337,3415,3416,3417,3418,3419,1338,\n3420,3421,3422,1564,1565,3423,3424,3425,3426,3427,3428,3429,3430,3431,1254,3432,\n3433,3434,1339,3435,3436,3437,3438,3439,1566,3440,3441,3442,3443,3444,3445,3446,\n3447,3448,3449,3450,3451,3452,3453,3454,1255,3455,3456,3457,3458,3459,1567,1191,\n3460,1568,1569,3461,3462,3463,1570,3464,3465,3466,3467,3468,1571,3469,3470,3471,\n3472,3473,1572,3474,3475,3476,3477,3478,3479,3480,3481,3482,3483,3484,3485,3486,\n1340,3487,3488,3489,3490,3491,3492,1021,3493,3494,3495,3496,3497,3498,1573,3499,\n1341,3500,3501,3502,3503,3504,3505,3506,3507,3508,3509,3510,3511,1342,3512,3513,\n3514,3515,3516,1574,1343,3517,3518,3519,1575,3520,1576,3521,3522,3523,3524,3525,\n3526,3527,3528,3529,3530,3531,3532,3533,3534,3535,3536,3537,3538,3539,3540,3541,\n3542,3543,3544,3545,3546,3547,3548,3549,3550,3551,3552,3553,3554,3555,3556,3557,\n3558,3559,3560,3561,3562,3563,3564,3565,3566,3567,3568,3569,3570,3571,3572,3573,\n3574,3575,3576,3577,3578,3579,3580,1577,3581,3582,1578,3583,3584,3585,3586,3587,\n3588,3589,3590,3591,3592,3593,3594,3595,3596,3597,3598,3599,3600,3601,3602,3603,\n3604,1579,3605,3606,3607,3608,3609,3610,3611,3612,3613,3614,3615,3616,3617,3618,\n3619,3620,3621,3622,3623,3624,3625,3626,3627,3628,3629,1580,3630,3631,1581,3632,\n3633,3634,3635,3636,3637,3638,3639,3640,3641,3642,3643,3644,3645,3646,3647,3648,\n3649,3650,3651,3652,3653,3654,3655,3656,1582,3657,3658,3659,3660,3661,3662,3663,\n3664,3665,3666,3667,3668,3669,3670,3671,3672,3673,3674,3675,3676,3677,3678,3679,\n3680,3681,3682,3683,3684,3685,3686,3687,3688,3689,3690,3691,3692,3693,3694,3695,\n3696,3697,3698,3699,3700,1192,3701,3702,3703,3704,1256,3705,3706,3707,3708,1583,\n1257,3709,3710,3711,3712,3713,3714,3715,3716,1584,3717,3718,3719,3720,3721,3722,\n3723,3724,3725,3726,3727,3728,3729,3730,3731,3732,3733,3734,3735,3736,3737,3738,\n3739,3740,3741,3742,3743,3744,3745,1344,3746,3747,3748,3749,3750,3751,3752,3753,\n3754,3755,3756,1585,3757,3758,3759,3760,3761,3762,3763,3764,3765,3766,1586,3767,\n3768,3769,3770,3771,3772,3773,3774,3775,3776,3777,3778,1345,3779,3780,3781,3782,\n3783,3784,3785,3786,3787,3788,3789,3790,3791,3792,3793,3794,3795,1346,1587,3796,\n3797,1588,3798,3799,3800,3801,3802,3803,3804,3805,3806,1347,3807,3808,3809,3810,\n3811,1589,3812,3813,3814,3815,3816,3817,3818,3819,3820,3821,1590,3822,3823,1591,\n1348,3824,3825,3826,3827,3828,3829,3830,1592,3831,3832,1593,3833,3834,3835,3836,\n3837,3838,3839,3840,3841,3842,3843,3844,1349,3845,3846,3847,3848,3849,3850,3851,\n3852,3853,3854,3855,3856,3857,3858,1594,3859,3860,3861,3862,3863,3864,3865,3866,\n3867,3868,3869,1595,3870,3871,3872,3873,1596,3874,3875,3876,3877,3878,3879,3880,\n3881,3882,3883,3884,3885,3886,1597,3887,3888,3889,3890,3891,3892,3893,3894,3895,\n1598,3896,3897,3898,1599,1600,3899,1350,3900,1351,3901,3902,1352,3903,3904,3905,\n3906,3907,3908,3909,3910,3911,3912,3913,3914,3915,3916,3917,3918,3919,3920,3921,\n3922,3923,3924,1258,3925,3926,3927,3928,3929,3930,3931,1193,3932,1601,3933,3934,\n3935,3936,3937,3938,3939,3940,3941,3942,3943,1602,3944,3945,3946,3947,3948,1603,\n3949,3950,3951,3952,3953,3954,3955,3956,3957,3958,3959,3960,3961,3962,3963,3964,\n3965,1604,3966,3967,3968,3969,3970,3971,3972,3973,3974,3975,3976,3977,1353,3978,\n3979,3980,3981,3982,3983,3984,3985,3986,3987,3988,3989,3990,3991,1354,3992,3993,\n3994,3995,3996,3997,3998,3999,4000,4001,4002,4003,4004,4005,4006,4007,4008,4009,\n4010,4011,4012,4013,4014,4015,4016,4017,4018,4019,4020,4021,4022,4023,1355,4024,\n4025,4026,4027,4028,4029,4030,4031,4032,4033,4034,4035,4036,4037,4038,4039,4040,\n1605,4041,4042,4043,4044,4045,4046,4047,4048,4049,4050,4051,4052,4053,4054,4055,\n4056,4057,4058,4059,4060,1606,4061,4062,4063,4064,1607,4065,4066,4067,4068,4069,\n4070,4071,4072,4073,4074,4075,4076,1194,4077,4078,1608,4079,4080,4081,4082,4083,\n4084,4085,4086,4087,1609,4088,4089,4090,4091,4092,4093,4094,4095,4096,4097,4098,\n4099,4100,4101,4102,4103,4104,4105,4106,4107,4108,1259,4109,4110,4111,4112,4113,\n4114,4115,4116,4117,4118,4119,4120,4121,4122,4123,4124,1195,4125,4126,4127,1610,\n4128,4129,4130,4131,4132,4133,4134,4135,4136,4137,1356,4138,4139,4140,4141,4142,\n4143,4144,1611,4145,4146,4147,4148,4149,4150,4151,4152,4153,4154,4155,4156,4157,\n4158,4159,4160,4161,4162,4163,4164,4165,4166,4167,4168,4169,4170,4171,4172,4173,\n4174,4175,4176,4177,4178,4179,4180,4181,4182,4183,4184,4185,4186,4187,4188,4189,\n4190,4191,4192,4193,4194,4195,4196,4197,4198,4199,4200,4201,4202,4203,4204,4205,\n4206,4207,4208,4209,4210,4211,4212,4213,4214,4215,4216,4217,4218,4219,1612,4220,\n4221,4222,4223,4224,4225,4226,4227,1357,4228,1613,4229,4230,4231,4232,4233,4234,\n4235,4236,4237,4238,4239,4240,4241,4242,4243,1614,4244,4245,4246,4247,4248,4249,\n4250,4251,4252,4253,4254,4255,4256,4257,4258,4259,4260,4261,4262,4263,4264,4265,\n4266,4267,4268,4269,4270,1196,1358,4271,4272,4273,4274,4275,4276,4277,4278,4279,\n4280,4281,4282,4283,4284,4285,4286,4287,1615,4288,4289,4290,4291,4292,4293,4294,\n4295,4296,4297,4298,4299,4300,4301,4302,4303,4304,4305,4306,4307,4308,4309,4310,\n4311,4312,4313,4314,4315,4316,4317,4318,4319,4320,4321,4322,4323,4324,4325,4326,\n4327,4328,4329,4330,4331,4332,4333,4334,1616,4335,4336,4337,4338,4339,4340,4341,\n4342,4343,4344,4345,4346,4347,4348,4349,4350,4351,4352,4353,4354,4355,4356,4357,\n4358,4359,4360,1617,4361,4362,4363,4364,4365,1618,4366,4367,4368,4369,4370,4371,\n4372,4373,4374,4375,4376,4377,4378,4379,4380,4381,4382,4383,4384,4385,4386,4387,\n4388,4389,4390,4391,4392,4393,4394,4395,4396,4397,4398,4399,4400,4401,4402,4403,\n4404,4405,4406,4407,4408,4409,4410,4411,4412,4413,4414,4415,4416,1619,4417,4418,\n4419,4420,4421,4422,4423,4424,4425,1112,4426,4427,4428,4429,4430,1620,4431,4432,\n4433,4434,4435,4436,4437,4438,4439,4440,4441,4442,1260,1261,4443,4444,4445,4446,\n4447,4448,4449,4450,4451,4452,4453,4454,4455,1359,4456,4457,4458,4459,4460,4461,\n4462,4463,4464,4465,1621,4466,4467,4468,4469,4470,4471,4472,4473,4474,4475,4476,\n4477,4478,4479,4480,4481,4482,4483,4484,4485,4486,4487,4488,4489,1055,4490,4491,\n4492,4493,4494,4495,4496,4497,4498,4499,4500,4501,4502,4503,4504,4505,4506,4507,\n4508,4509,4510,4511,4512,4513,4514,4515,4516,4517,4518,1622,4519,4520,4521,1623,\n4522,4523,4524,4525,4526,4527,4528,4529,4530,4531,4532,4533,4534,4535,1360,4536,\n4537,4538,4539,4540,4541,4542,4543, 975,4544,4545,4546,4547,4548,4549,4550,4551,\n4552,4553,4554,4555,4556,4557,4558,4559,4560,4561,4562,4563,4564,4565,4566,4567,\n4568,4569,4570,4571,1624,4572,4573,4574,4575,4576,1625,4577,4578,4579,4580,4581,\n4582,4583,4584,1626,4585,4586,4587,4588,4589,4590,4591,4592,4593,4594,4595,1627,\n4596,4597,4598,4599,4600,4601,4602,4603,4604,4605,4606,4607,4608,4609,4610,4611,\n4612,4613,4614,4615,1628,4616,4617,4618,4619,4620,4621,4622,4623,4624,4625,4626,\n4627,4628,4629,4630,4631,4632,4633,4634,4635,4636,4637,4638,4639,4640,4641,4642,\n4643,4644,4645,4646,4647,4648,4649,1361,4650,4651,4652,4653,4654,4655,4656,4657,\n4658,4659,4660,4661,1362,4662,4663,4664,4665,4666,4667,4668,4669,4670,4671,4672,\n4673,4674,4675,4676,4677,4678,4679,4680,4681,4682,1629,4683,4684,4685,4686,4687,\n1630,4688,4689,4690,4691,1153,4692,4693,4694,1113,4695,4696,4697,4698,4699,4700,\n4701,4702,4703,4704,4705,4706,4707,4708,4709,4710,4711,1197,4712,4713,4714,4715,\n4716,4717,4718,4719,4720,4721,4722,4723,4724,4725,4726,4727,4728,4729,4730,4731,\n4732,4733,4734,4735,1631,4736,1632,4737,4738,4739,4740,4741,4742,4743,4744,1633,\n4745,4746,4747,4748,4749,1262,4750,4751,4752,4753,4754,1363,4755,4756,4757,4758,\n4759,4760,4761,4762,4763,4764,4765,4766,4767,4768,1634,4769,4770,4771,4772,4773,\n4774,4775,4776,4777,4778,1635,4779,4780,4781,4782,4783,4784,4785,4786,4787,4788,\n4789,1636,4790,4791,4792,4793,4794,4795,4796,4797,4798,4799,4800,4801,4802,4803,\n4804,4805,4806,1637,4807,4808,4809,1638,4810,4811,4812,4813,4814,4815,4816,4817,\n4818,1639,4819,4820,4821,4822,4823,4824,4825,4826,4827,4828,4829,4830,4831,4832,\n4833,1077,4834,4835,4836,4837,4838,4839,4840,4841,4842,4843,4844,4845,4846,4847,\n4848,4849,4850,4851,4852,4853,4854,4855,4856,4857,4858,4859,4860,4861,4862,4863,\n4864,4865,4866,4867,4868,4869,4870,4871,4872,4873,4874,4875,4876,4877,4878,4879,\n4880,4881,4882,4883,1640,4884,4885,1641,4886,4887,4888,4889,4890,4891,4892,4893,\n4894,4895,4896,4897,4898,4899,4900,4901,4902,4903,4904,4905,4906,4907,4908,4909,\n4910,4911,1642,4912,4913,4914,1364,4915,4916,4917,4918,4919,4920,4921,4922,4923,\n4924,4925,4926,4927,4928,4929,4930,4931,1643,4932,4933,4934,4935,4936,4937,4938,\n4939,4940,4941,4942,4943,4944,4945,4946,4947,4948,4949,4950,4951,4952,4953,4954,\n4955,4956,4957,4958,4959,4960,4961,4962,4963,4964,4965,4966,4967,4968,4969,4970,\n4971,4972,4973,4974,4975,4976,4977,4978,4979,4980,1644,4981,4982,4983,4984,1645,\n4985,4986,1646,4987,4988,4989,4990,4991,4992,4993,4994,4995,4996,4997,4998,4999,\n5000,5001,5002,5003,5004,5005,1647,5006,1648,5007,5008,5009,5010,5011,5012,1078,\n5013,5014,5015,5016,5017,5018,5019,5020,5021,5022,5023,5024,5025,5026,5027,5028,\n1365,5029,5030,5031,5032,5033,5034,5035,5036,5037,5038,5039,1649,5040,5041,5042,\n5043,5044,5045,1366,5046,5047,5048,5049,5050,5051,5052,5053,5054,5055,1650,5056,\n5057,5058,5059,5060,5061,5062,5063,5064,5065,5066,5067,5068,5069,5070,5071,5072,\n5073,5074,5075,5076,5077,1651,5078,5079,5080,5081,5082,5083,5084,5085,5086,5087,\n5088,5089,5090,5091,5092,5093,5094,5095,5096,5097,5098,5099,5100,5101,5102,5103,\n5104,5105,5106,5107,5108,5109,5110,1652,5111,5112,5113,5114,5115,5116,5117,5118,\n1367,5119,5120,5121,5122,5123,5124,5125,5126,5127,5128,5129,1653,5130,5131,5132,\n5133,5134,5135,5136,5137,5138,5139,5140,5141,5142,5143,5144,5145,5146,5147,5148,\n5149,1368,5150,1654,5151,1369,5152,5153,5154,5155,5156,5157,5158,5159,5160,5161,\n5162,5163,5164,5165,5166,5167,5168,5169,5170,5171,5172,5173,5174,5175,5176,5177,\n5178,1370,5179,5180,5181,5182,5183,5184,5185,5186,5187,5188,5189,5190,5191,5192,\n5193,5194,5195,5196,5197,5198,1655,5199,5200,5201,5202,1656,5203,5204,5205,5206,\n1371,5207,1372,5208,5209,5210,5211,1373,5212,5213,1374,5214,5215,5216,5217,5218,\n5219,5220,5221,5222,5223,5224,5225,5226,5227,5228,5229,5230,5231,5232,5233,5234,\n5235,5236,5237,5238,5239,5240,5241,5242,5243,5244,5245,5246,5247,1657,5248,5249,\n5250,5251,1658,1263,5252,5253,5254,5255,5256,1375,5257,5258,5259,5260,5261,5262,\n5263,5264,5265,5266,5267,5268,5269,5270,5271,5272,5273,5274,5275,5276,5277,5278,\n5279,5280,5281,5282,5283,1659,5284,5285,5286,5287,5288,5289,5290,5291,5292,5293,\n5294,5295,5296,5297,5298,5299,5300,1660,5301,5302,5303,5304,5305,5306,5307,5308,\n5309,5310,5311,5312,5313,5314,5315,5316,5317,5318,5319,5320,5321,1376,5322,5323,\n5324,5325,5326,5327,5328,5329,5330,5331,5332,5333,1198,5334,5335,5336,5337,5338,\n5339,5340,5341,5342,5343,1661,5344,5345,5346,5347,5348,5349,5350,5351,5352,5353,\n5354,5355,5356,5357,5358,5359,5360,5361,5362,5363,5364,5365,5366,5367,5368,5369,\n5370,5371,5372,5373,5374,5375,5376,5377,5378,5379,5380,5381,5382,5383,5384,5385,\n5386,5387,5388,5389,5390,5391,5392,5393,5394,5395,5396,5397,5398,1264,5399,5400,\n5401,5402,5403,5404,5405,5406,5407,5408,5409,5410,5411,5412,1662,5413,5414,5415,\n5416,1663,5417,5418,5419,5420,5421,5422,5423,5424,5425,5426,5427,5428,5429,5430,\n5431,5432,5433,5434,5435,5436,5437,5438,1664,5439,5440,5441,5442,5443,5444,5445,\n5446,5447,5448,5449,5450,5451,5452,5453,5454,5455,5456,5457,5458,5459,5460,5461,\n5462,5463,5464,5465,5466,5467,5468,5469,5470,5471,5472,5473,5474,5475,5476,5477,\n5478,1154,5479,5480,5481,5482,5483,5484,5485,1665,5486,5487,5488,5489,5490,5491,\n5492,5493,5494,5495,5496,5497,5498,5499,5500,5501,5502,5503,5504,5505,5506,5507,\n5508,5509,5510,5511,5512,5513,5514,5515,5516,5517,5518,5519,5520,5521,5522,5523,\n5524,5525,5526,5527,5528,5529,5530,5531,5532,5533,5534,5535,5536,5537,5538,5539,\n5540,5541,5542,5543,5544,5545,5546,5547,5548,1377,5549,5550,5551,5552,5553,5554,\n5555,5556,5557,5558,5559,5560,5561,5562,5563,5564,5565,5566,5567,5568,5569,5570,\n1114,5571,5572,5573,5574,5575,5576,5577,5578,5579,5580,5581,5582,5583,5584,5585,\n5586,5587,5588,5589,5590,5591,5592,1378,5593,5594,5595,5596,5597,5598,5599,5600,\n5601,5602,5603,5604,5605,5606,5607,5608,5609,5610,5611,5612,5613,5614,1379,5615,\n5616,5617,5618,5619,5620,5621,5622,5623,5624,5625,5626,5627,5628,5629,5630,5631,\n5632,5633,5634,1380,5635,5636,5637,5638,5639,5640,5641,5642,5643,5644,5645,5646,\n5647,5648,5649,1381,1056,5650,5651,5652,5653,5654,5655,5656,5657,5658,5659,5660,\n1666,5661,5662,5663,5664,5665,5666,5667,5668,1667,5669,1668,5670,5671,5672,5673,\n5674,5675,5676,5677,5678,1155,5679,5680,5681,5682,5683,5684,5685,5686,5687,5688,\n5689,5690,5691,5692,5693,5694,5695,5696,5697,5698,1669,5699,5700,5701,5702,5703,\n5704,5705,1670,5706,5707,5708,5709,5710,1671,5711,5712,5713,5714,1382,5715,5716,\n5717,5718,5719,5720,5721,5722,5723,5724,5725,1672,5726,5727,1673,1674,5728,5729,\n5730,5731,5732,5733,5734,5735,5736,1675,5737,5738,5739,5740,5741,5742,5743,5744,\n1676,5745,5746,5747,5748,5749,5750,5751,1383,5752,5753,5754,5755,5756,5757,5758,\n5759,5760,5761,5762,5763,5764,5765,5766,5767,5768,1677,5769,5770,5771,5772,5773,\n1678,5774,5775,5776, 998,5777,5778,5779,5780,5781,5782,5783,5784,5785,1384,5786,\n5787,5788,5789,5790,5791,5792,5793,5794,5795,5796,5797,5798,5799,5800,1679,5801,\n5802,5803,1115,1116,5804,5805,5806,5807,5808,5809,5810,5811,5812,5813,5814,5815,\n5816,5817,5818,5819,5820,5821,5822,5823,5824,5825,5826,5827,5828,5829,5830,5831,\n5832,5833,5834,5835,5836,5837,5838,5839,5840,5841,5842,5843,5844,5845,5846,5847,\n5848,5849,5850,5851,5852,5853,5854,5855,1680,5856,5857,5858,5859,5860,5861,5862,\n5863,5864,1681,5865,5866,5867,1682,5868,5869,5870,5871,5872,5873,5874,5875,5876,\n5877,5878,5879,1683,5880,1684,5881,5882,5883,5884,1685,5885,5886,5887,5888,5889,\n5890,5891,5892,5893,5894,5895,5896,5897,5898,5899,5900,5901,5902,5903,5904,5905,\n5906,5907,1686,5908,5909,5910,5911,5912,5913,5914,5915,5916,5917,5918,5919,5920,\n5921,5922,5923,5924,5925,5926,5927,5928,5929,5930,5931,5932,5933,5934,5935,1687,\n5936,5937,5938,5939,5940,5941,5942,5943,5944,5945,5946,5947,5948,5949,5950,5951,\n5952,1688,1689,5953,1199,5954,5955,5956,5957,5958,5959,5960,5961,1690,5962,5963,\n5964,5965,5966,5967,5968,5969,5970,5971,5972,5973,5974,5975,5976,5977,5978,5979,\n5980,5981,1385,5982,1386,5983,5984,5985,5986,5987,5988,5989,5990,5991,5992,5993,\n5994,5995,5996,5997,5998,5999,6000,6001,6002,6003,6004,6005,6006,6007,6008,6009,\n6010,6011,6012,6013,6014,6015,6016,6017,6018,6019,6020,6021,6022,6023,6024,6025,\n6026,6027,1265,6028,6029,1691,6030,6031,6032,6033,6034,6035,6036,6037,6038,6039,\n6040,6041,6042,6043,6044,6045,6046,6047,6048,6049,6050,6051,6052,6053,6054,6055,\n6056,6057,6058,6059,6060,6061,6062,6063,6064,6065,6066,6067,6068,6069,6070,6071,\n6072,6073,6074,6075,6076,6077,6078,6079,6080,6081,6082,6083,6084,1692,6085,6086,\n6087,6088,6089,6090,6091,6092,6093,6094,6095,6096,6097,6098,6099,6100,6101,6102,\n6103,6104,6105,6106,6107,6108,6109,6110,6111,6112,6113,6114,6115,6116,6117,6118,\n6119,6120,6121,6122,6123,6124,6125,6126,6127,6128,6129,6130,6131,1693,6132,6133,\n6134,6135,6136,1694,6137,6138,6139,6140,6141,1695,6142,6143,6144,6145,6146,6147,\n6148,6149,6150,6151,6152,6153,6154,6155,6156,6157,6158,6159,6160,6161,6162,6163,\n6164,6165,6166,6167,6168,6169,6170,6171,6172,6173,6174,6175,6176,6177,6178,6179,\n6180,6181,6182,6183,6184,6185,1696,6186,6187,6188,6189,6190,6191,6192,6193,6194,\n6195,6196,6197,6198,6199,6200,6201,6202,6203,6204,6205,6206,6207,6208,6209,6210,\n6211,6212,6213,6214,6215,6216,6217,6218,6219,1697,6220,6221,6222,6223,6224,6225,\n6226,6227,6228,6229,6230,6231,6232,6233,6234,6235,6236,6237,6238,6239,6240,6241,\n6242,6243,6244,6245,6246,6247,6248,6249,6250,6251,6252,6253,1698,6254,6255,6256,\n6257,6258,6259,6260,6261,6262,6263,1200,6264,6265,6266,6267,6268,6269,6270,6271, #1024\n6272,6273,6274,6275,6276,6277,6278,6279,6280,6281,6282,6283,6284,6285,6286,6287,\n6288,6289,6290,6291,6292,6293,6294,6295,6296,6297,6298,6299,6300,6301,6302,1699,\n6303,6304,1700,6305,6306,6307,6308,6309,6310,6311,6312,6313,6314,6315,6316,6317,\n6318,6319,6320,6321,6322,6323,6324,6325,6326,6327,6328,6329,6330,6331,6332,6333,\n6334,6335,6336,6337,6338,6339,1701,6340,6341,6342,6343,6344,1387,6345,6346,6347,\n6348,6349,6350,6351,6352,6353,6354,6355,6356,6357,6358,6359,6360,6361,6362,6363,\n6364,6365,6366,6367,6368,6369,6370,6371,6372,6373,6374,6375,6376,6377,6378,6379,\n6380,6381,6382,6383,6384,6385,6386,6387,6388,6389,6390,6391,6392,6393,6394,6395,\n6396,6397,6398,6399,6400,6401,6402,6403,6404,6405,6406,6407,6408,6409,6410,6411,\n6412,6413,1702,6414,6415,6416,6417,6418,6419,6420,6421,6422,1703,6423,6424,6425,\n6426,6427,6428,6429,6430,6431,6432,6433,6434,6435,6436,6437,6438,1704,6439,6440,\n6441,6442,6443,6444,6445,6446,6447,6448,6449,6450,6451,6452,6453,6454,6455,6456,\n6457,6458,6459,6460,6461,6462,6463,6464,6465,6466,6467,6468,6469,6470,6471,6472,\n6473,6474,6475,6476,6477,6478,6479,6480,6481,6482,6483,6484,6485,6486,6487,6488,\n6489,6490,6491,6492,6493,6494,6495,6496,6497,6498,6499,6500,6501,6502,6503,1266,\n6504,6505,6506,6507,6508,6509,6510,6511,6512,6513,6514,6515,6516,6517,6518,6519,\n6520,6521,6522,6523,6524,6525,6526,6527,6528,6529,6530,6531,6532,6533,6534,6535,\n6536,6537,6538,6539,6540,6541,6542,6543,6544,6545,6546,6547,6548,6549,6550,6551,\n1705,1706,6552,6553,6554,6555,6556,6557,6558,6559,6560,6561,6562,6563,6564,6565,\n6566,6567,6568,6569,6570,6571,6572,6573,6574,6575,6576,6577,6578,6579,6580,6581,\n6582,6583,6584,6585,6586,6587,6588,6589,6590,6591,6592,6593,6594,6595,6596,6597,\n6598,6599,6600,6601,6602,6603,6604,6605,6606,6607,6608,6609,6610,6611,6612,6613,\n6614,6615,6616,6617,6618,6619,6620,6621,6622,6623,6624,6625,6626,6627,6628,6629,\n6630,6631,6632,6633,6634,6635,6636,6637,1388,6638,6639,6640,6641,6642,6643,6644,\n1707,6645,6646,6647,6648,6649,6650,6651,6652,6653,6654,6655,6656,6657,6658,6659,\n6660,6661,6662,6663,1708,6664,6665,6666,6667,6668,6669,6670,6671,6672,6673,6674,\n1201,6675,6676,6677,6678,6679,6680,6681,6682,6683,6684,6685,6686,6687,6688,6689,\n6690,6691,6692,6693,6694,6695,6696,6697,6698,6699,6700,6701,6702,6703,6704,6705,\n6706,6707,6708,6709,6710,6711,6712,6713,6714,6715,6716,6717,6718,6719,6720,6721,\n6722,6723,6724,6725,1389,6726,6727,6728,6729,6730,6731,6732,6733,6734,6735,6736,\n1390,1709,6737,6738,6739,6740,6741,6742,1710,6743,6744,6745,6746,1391,6747,6748,\n6749,6750,6751,6752,6753,6754,6755,6756,6757,1392,6758,6759,6760,6761,6762,6763,\n6764,6765,6766,6767,6768,6769,6770,6771,6772,6773,6774,6775,6776,6777,6778,6779,\n6780,1202,6781,6782,6783,6784,6785,6786,6787,6788,6789,6790,6791,6792,6793,6794,\n6795,6796,6797,6798,6799,6800,6801,6802,6803,6804,6805,6806,6807,6808,6809,1711,\n6810,6811,6812,6813,6814,6815,6816,6817,6818,6819,6820,6821,6822,6823,6824,6825,\n6826,6827,6828,6829,6830,6831,6832,6833,6834,6835,6836,1393,6837,6838,6839,6840,\n6841,6842,6843,6844,6845,6846,6847,6848,6849,6850,6851,6852,6853,6854,6855,6856,\n6857,6858,6859,6860,6861,6862,6863,6864,6865,6866,6867,6868,6869,6870,6871,6872,\n6873,6874,6875,6876,6877,6878,6879,6880,6881,6882,6883,6884,6885,6886,6887,6888,\n6889,6890,6891,6892,6893,6894,6895,6896,6897,6898,6899,6900,6901,6902,1712,6903,\n6904,6905,6906,6907,6908,6909,6910,1713,6911,6912,6913,6914,6915,6916,6917,6918,\n6919,6920,6921,6922,6923,6924,6925,6926,6927,6928,6929,6930,6931,6932,6933,6934,\n6935,6936,6937,6938,6939,6940,6941,6942,6943,6944,6945,6946,6947,6948,6949,6950,\n6951,6952,6953,6954,6955,6956,6957,6958,6959,6960,6961,6962,6963,6964,6965,6966,\n6967,6968,6969,6970,6971,6972,6973,6974,1714,6975,6976,6977,6978,6979,6980,6981,\n6982,6983,6984,6985,6986,6987,6988,1394,6989,6990,6991,6992,6993,6994,6995,6996,\n6997,6998,6999,7000,1715,7001,7002,7003,7004,7005,7006,7007,7008,7009,7010,7011,\n7012,7013,7014,7015,7016,7017,7018,7019,7020,7021,7022,7023,7024,7025,7026,7027,\n7028,1716,7029,7030,7031,7032,7033,7034,7035,7036,7037,7038,7039,7040,7041,7042,\n7043,7044,7045,7046,7047,7048,7049,7050,7051,7052,7053,7054,7055,7056,7057,7058,\n7059,7060,7061,7062,7063,7064,7065,7066,7067,7068,7069,7070,7071,7072,7073,7074,\n7075,7076,7077,7078,7079,7080,7081,7082,7083,7084,7085,7086,7087,7088,7089,7090,\n7091,7092,7093,7094,7095,7096,7097,7098,7099,7100,7101,7102,7103,7104,7105,7106,\n7107,7108,7109,7110,7111,7112,7113,7114,7115,7116,7117,7118,7119,7120,7121,7122,\n7123,7124,7125,7126,7127,7128,7129,7130,7131,7132,7133,7134,7135,7136,7137,7138,\n7139,7140,7141,7142,7143,7144,7145,7146,7147,7148,7149,7150,7151,7152,7153,7154,\n7155,7156,7157,7158,7159,7160,7161,7162,7163,7164,7165,7166,7167,7168,7169,7170,\n7171,7172,7173,7174,7175,7176,7177,7178,7179,7180,7181,7182,7183,7184,7185,7186,\n7187,7188,7189,7190,7191,7192,7193,7194,7195,7196,7197,7198,7199,7200,7201,7202,\n7203,7204,7205,7206,7207,1395,7208,7209,7210,7211,7212,7213,1717,7214,7215,7216,\n7217,7218,7219,7220,7221,7222,7223,7224,7225,7226,7227,7228,7229,7230,7231,7232,\n7233,7234,7235,7236,7237,7238,7239,7240,7241,7242,7243,7244,7245,7246,7247,7248,\n7249,7250,7251,7252,7253,7254,7255,7256,7257,7258,7259,7260,7261,7262,7263,7264,\n7265,7266,7267,7268,7269,7270,7271,7272,7273,7274,7275,7276,7277,7278,7279,7280,\n7281,7282,7283,7284,7285,7286,7287,7288,7289,7290,7291,7292,7293,7294,7295,7296,\n7297,7298,7299,7300,7301,7302,7303,7304,7305,7306,7307,7308,7309,7310,7311,7312,\n7313,1718,7314,7315,7316,7317,7318,7319,7320,7321,7322,7323,7324,7325,7326,7327,\n7328,7329,7330,7331,7332,7333,7334,7335,7336,7337,7338,7339,7340,7341,7342,7343,\n7344,7345,7346,7347,7348,7349,7350,7351,7352,7353,7354,7355,7356,7357,7358,7359,\n7360,7361,7362,7363,7364,7365,7366,7367,7368,7369,7370,7371,7372,7373,7374,7375,\n7376,7377,7378,7379,7380,7381,7382,7383,7384,7385,7386,7387,7388,7389,7390,7391,\n7392,7393,7394,7395,7396,7397,7398,7399,7400,7401,7402,7403,7404,7405,7406,7407,\n7408,7409,7410,7411,7412,7413,7414,7415,7416,7417,7418,7419,7420,7421,7422,7423,\n7424,7425,7426,7427,7428,7429,7430,7431,7432,7433,7434,7435,7436,7437,7438,7439,\n7440,7441,7442,7443,7444,7445,7446,7447,7448,7449,7450,7451,7452,7453,7454,7455,\n7456,7457,7458,7459,7460,7461,7462,7463,7464,7465,7466,7467,7468,7469,7470,7471,\n7472,7473,7474,7475,7476,7477,7478,7479,7480,7481,7482,7483,7484,7485,7486,7487,\n7488,7489,7490,7491,7492,7493,7494,7495,7496,7497,7498,7499,7500,7501,7502,7503,\n7504,7505,7506,7507,7508,7509,7510,7511,7512,7513,7514,7515,7516,7517,7518,7519,\n7520,7521,7522,7523,7524,7525,7526,7527,7528,7529,7530,7531,7532,7533,7534,7535,\n7536,7537,7538,7539,7540,7541,7542,7543,7544,7545,7546,7547,7548,7549,7550,7551,\n7552,7553,7554,7555,7556,7557,7558,7559,7560,7561,7562,7563,7564,7565,7566,7567,\n7568,7569,7570,7571,7572,7573,7574,7575,7576,7577,7578,7579,7580,7581,7582,7583,\n7584,7585,7586,7587,7588,7589,7590,7591,7592,7593,7594,7595,7596,7597,7598,7599,\n7600,7601,7602,7603,7604,7605,7606,7607,7608,7609,7610,7611,7612,7613,7614,7615,\n7616,7617,7618,7619,7620,7621,7622,7623,7624,7625,7626,7627,7628,7629,7630,7631,\n7632,7633,7634,7635,7636,7637,7638,7639,7640,7641,7642,7643,7644,7645,7646,7647,\n7648,7649,7650,7651,7652,7653,7654,7655,7656,7657,7658,7659,7660,7661,7662,7663,\n7664,7665,7666,7667,7668,7669,7670,7671,7672,7673,7674,7675,7676,7677,7678,7679,\n7680,7681,7682,7683,7684,7685,7686,7687,7688,7689,7690,7691,7692,7693,7694,7695,\n7696,7697,7698,7699,7700,7701,7702,7703,7704,7705,7706,7707,7708,7709,7710,7711,\n7712,7713,7714,7715,7716,7717,7718,7719,7720,7721,7722,7723,7724,7725,7726,7727,\n7728,7729,7730,7731,7732,7733,7734,7735,7736,7737,7738,7739,7740,7741,7742,7743,\n7744,7745,7746,7747,7748,7749,7750,7751,7752,7753,7754,7755,7756,7757,7758,7759,\n7760,7761,7762,7763,7764,7765,7766,7767,7768,7769,7770,7771,7772,7773,7774,7775,\n7776,7777,7778,7779,7780,7781,7782,7783,7784,7785,7786,7787,7788,7789,7790,7791,\n7792,7793,7794,7795,7796,7797,7798,7799,7800,7801,7802,7803,7804,7805,7806,7807,\n7808,7809,7810,7811,7812,7813,7814,7815,7816,7817,7818,7819,7820,7821,7822,7823,\n7824,7825,7826,7827,7828,7829,7830,7831,7832,7833,7834,7835,7836,7837,7838,7839,\n7840,7841,7842,7843,7844,7845,7846,7847,7848,7849,7850,7851,7852,7853,7854,7855,\n7856,7857,7858,7859,7860,7861,7862,7863,7864,7865,7866,7867,7868,7869,7870,7871,\n7872,7873,7874,7875,7876,7877,7878,7879,7880,7881,7882,7883,7884,7885,7886,7887,\n7888,7889,7890,7891,7892,7893,7894,7895,7896,7897,7898,7899,7900,7901,7902,7903,\n7904,7905,7906,7907,7908,7909,7910,7911,7912,7913,7914,7915,7916,7917,7918,7919,\n7920,7921,7922,7923,7924,7925,7926,7927,7928,7929,7930,7931,7932,7933,7934,7935,\n7936,7937,7938,7939,7940,7941,7942,7943,7944,7945,7946,7947,7948,7949,7950,7951,\n7952,7953,7954,7955,7956,7957,7958,7959,7960,7961,7962,7963,7964,7965,7966,7967,\n7968,7969,7970,7971,7972,7973,7974,7975,7976,7977,7978,7979,7980,7981,7982,7983,\n7984,7985,7986,7987,7988,7989,7990,7991,7992,7993,7994,7995,7996,7997,7998,7999,\n8000,8001,8002,8003,8004,8005,8006,8007,8008,8009,8010,8011,8012,8013,8014,8015,\n8016,8017,8018,8019,8020,8021,8022,8023,8024,8025,8026,8027,8028,8029,8030,8031,\n8032,8033,8034,8035,8036,8037,8038,8039,8040,8041,8042,8043,8044,8045,8046,8047,\n8048,8049,8050,8051,8052,8053,8054,8055,8056,8057,8058,8059,8060,8061,8062,8063,\n8064,8065,8066,8067,8068,8069,8070,8071,8072,8073,8074,8075,8076,8077,8078,8079,\n8080,8081,8082,8083,8084,8085,8086,8087,8088,8089,8090,8091,8092,8093,8094,8095,\n8096,8097,8098,8099,8100,8101,8102,8103,8104,8105,8106,8107,8108,8109,8110,8111,\n8112,8113,8114,8115,8116,8117,8118,8119,8120,8121,8122,8123,8124,8125,8126,8127,\n8128,8129,8130,8131,8132,8133,8134,8135,8136,8137,8138,8139,8140,8141,8142,8143,\n8144,8145,8146,8147,8148,8149,8150,8151,8152,8153,8154,8155,8156,8157,8158,8159,\n8160,8161,8162,8163,8164,8165,8166,8167,8168,8169,8170,8171,8172,8173,8174,8175,\n8176,8177,8178,8179,8180,8181,8182,8183,8184,8185,8186,8187,8188,8189,8190,8191,\n8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,\n8208,8209,8210,8211,8212,8213,8214,8215,8216,8217,8218,8219,8220,8221,8222,8223,\n8224,8225,8226,8227,8228,8229,8230,8231,8232,8233,8234,8235,8236,8237,8238,8239,\n8240,8241,8242,8243,8244,8245,8246,8247,8248,8249,8250,8251,8252,8253,8254,8255,\n8256,8257,8258,8259,8260,8261,8262,8263,8264,8265,8266,8267,8268,8269,8270,8271,\n8272,8273,8274,8275,8276,8277,8278,8279,8280,8281,8282,8283,8284,8285,8286,8287,\n8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,\n8304,8305,8306,8307,8308,8309,8310,8311,8312,8313,8314,8315,8316,8317,8318,8319,\n8320,8321,8322,8323,8324,8325,8326,8327,8328,8329,8330,8331,8332,8333,8334,8335,\n8336,8337,8338,8339,8340,8341,8342,8343,8344,8345,8346,8347,8348,8349,8350,8351,\n8352,8353,8354,8355,8356,8357,8358,8359,8360,8361,8362,8363,8364,8365,8366,8367,\n8368,8369,8370,8371,8372,8373,8374,8375,8376,8377,8378,8379,8380,8381,8382,8383,\n8384,8385,8386,8387,8388,8389,8390,8391,8392,8393,8394,8395,8396,8397,8398,8399,\n8400,8401,8402,8403,8404,8405,8406,8407,8408,8409,8410,8411,8412,8413,8414,8415,\n8416,8417,8418,8419,8420,8421,8422,8423,8424,8425,8426,8427,8428,8429,8430,8431,\n8432,8433,8434,8435,8436,8437,8438,8439,8440,8441,8442,8443,8444,8445,8446,8447,\n8448,8449,8450,8451,8452,8453,8454,8455,8456,8457,8458,8459,8460,8461,8462,8463,\n8464,8465,8466,8467,8468,8469,8470,8471,8472,8473,8474,8475,8476,8477,8478,8479,\n8480,8481,8482,8483,8484,8485,8486,8487,8488,8489,8490,8491,8492,8493,8494,8495,\n8496,8497,8498,8499,8500,8501,8502,8503,8504,8505,8506,8507,8508,8509,8510,8511,\n8512,8513,8514,8515,8516,8517,8518,8519,8520,8521,8522,8523,8524,8525,8526,8527,\n8528,8529,8530,8531,8532,8533,8534,8535,8536,8537,8538,8539,8540,8541,8542,8543,\n8544,8545,8546,8547,8548,8549,8550,8551,8552,8553,8554,8555,8556,8557,8558,8559,\n8560,8561,8562,8563,8564,8565,8566,8567,8568,8569,8570,8571,8572,8573,8574,8575,\n8576,8577,8578,8579,8580,8581,8582,8583,8584,8585,8586,8587,8588,8589,8590,8591,\n8592,8593,8594,8595,8596,8597,8598,8599,8600,8601,8602,8603,8604,8605,8606,8607,\n8608,8609,8610,8611,8612,8613,8614,8615,8616,8617,8618,8619,8620,8621,8622,8623,\n8624,8625,8626,8627,8628,8629,8630,8631,8632,8633,8634,8635,8636,8637,8638,8639,\n8640,8641,8642,8643,8644,8645,8646,8647,8648,8649,8650,8651,8652,8653,8654,8655,\n8656,8657,8658,8659,8660,8661,8662,8663,8664,8665,8666,8667,8668,8669,8670,8671,\n8672,8673,8674,8675,8676,8677,8678,8679,8680,8681,8682,8683,8684,8685,8686,8687,\n8688,8689,8690,8691,8692,8693,8694,8695,8696,8697,8698,8699,8700,8701,8702,8703,\n8704,8705,8706,8707,8708,8709,8710,8711,8712,8713,8714,8715,8716,8717,8718,8719,\n8720,8721,8722,8723,8724,8725,8726,8727,8728,8729,8730,8731,8732,8733,8734,8735,\n8736,8737,8738,8739,8740,8741)\n\n# flake8: noqa\n"},{"attributeType":"float","col":0,"comment":"null","endLoc":41,"id":1281,"name":"EUCKR_TYPICAL_DISTRIBUTION_RATIO","nodeType":"Attribute","startLoc":41,"text":"EUCKR_TYPICAL_DISTRIBUTION_RATIO"},{"col":4,"comment":"\n Sets headers needed by proxies: specifically, the Accept and Host\n headers. Only sets headers not provided by the user.\n ","endLoc":241,"header":"def _set_proxy_headers(self, url, headers=None)","id":1282,"name":"_set_proxy_headers","nodeType":"Function","startLoc":228,"text":"def _set_proxy_headers(self, url, headers=None):\n \"\"\"\n Sets headers needed by proxies: specifically, the Accept and Host\n headers. Only sets headers not provided by the user.\n \"\"\"\n headers_ = {'Accept': '*/*'}\n\n netloc = parse_url(url).netloc\n if netloc:\n headers_['Host'] = netloc\n\n if headers:\n headers_.update(headers)\n return headers_"},{"col":4,"comment":"null","endLoc":38,"header":"def __init__(self)","id":1283,"name":"__init__","nodeType":"Function","startLoc":34,"text":"def __init__(self):\n MultiByteCharSetProber.__init__(self)\n self._mCodingSM = CodingStateMachine(GB2312SMModel)\n self._mDistributionAnalyzer = GB2312DistributionAnalysis()\n self.reset()"},{"attributeType":"int","col":0,"comment":"null","endLoc":43,"id":1284,"name":"EUCKR_TABLE_SIZE","nodeType":"Attribute","startLoc":43,"text":"EUCKR_TABLE_SIZE"},{"attributeType":"(int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int)","col":0,"comment":"null","endLoc":46,"id":1285,"name":"EUCKRCharToFreqOrder","nodeType":"Attribute","startLoc":46,"text":"EUCKRCharToFreqOrder"},{"col":0,"comment":"Constructs and sends a :class:`Request `.\n Returns :class:`Response ` object.\n\n :param method: method for the new :class:`Request` object.\n :param url: URL for the new :class:`Request` object.\n :param params: (optional) Dictionary or bytes to be sent in the query string for the :class:`Request`.\n :param data: (optional) Dictionary, bytes, or file-like object to send in the body of the :class:`Request`.\n :param headers: (optional) Dictionary of HTTP Headers to send with the :class:`Request`.\n :param cookies: (optional) Dict or CookieJar object to send with the :class:`Request`.\n :param files: (optional) Dictionary of 'name': file-like-objects (or {'name': ('filename', fileobj)}) for multipart encoding upload.\n :param auth: (optional) Auth tuple to enable Basic/Digest/Custom HTTP Auth.\n :param timeout: (optional) Float describing the timeout of the request.\n :param allow_redirects: (optional) Boolean. Set to True if POST/PUT/DELETE redirect following is allowed.\n :param proxies: (optional) Dictionary mapping protocol to the URL of the proxy.\n :param verify: (optional) if ``True``, the SSL cert will be verified. A CA_BUNDLE path can also be provided.\n :param stream: (optional) if ``False``, the response content will be immediately downloaded.\n :param cert: (optional) if String, path to ssl client cert file (.pem). If Tuple, ('cert', 'key') pair.\n\n Usage::\n\n >>> import requests\n >>> req = requests.request('GET', 'http://httpbin.org/get')\n \n ","endLoc":44,"header":"def request(method, url, **kwargs)","id":1286,"name":"request","nodeType":"Function","startLoc":17,"text":"def request(method, url, **kwargs):\n \"\"\"Constructs and sends a :class:`Request `.\n Returns :class:`Response ` object.\n\n :param method: method for the new :class:`Request` object.\n :param url: URL for the new :class:`Request` object.\n :param params: (optional) Dictionary or bytes to be sent in the query string for the :class:`Request`.\n :param data: (optional) Dictionary, bytes, or file-like object to send in the body of the :class:`Request`.\n :param headers: (optional) Dictionary of HTTP Headers to send with the :class:`Request`.\n :param cookies: (optional) Dict or CookieJar object to send with the :class:`Request`.\n :param files: (optional) Dictionary of 'name': file-like-objects (or {'name': ('filename', fileobj)}) for multipart encoding upload.\n :param auth: (optional) Auth tuple to enable Basic/Digest/Custom HTTP Auth.\n :param timeout: (optional) Float describing the timeout of the request.\n :param allow_redirects: (optional) Boolean. Set to True if POST/PUT/DELETE redirect following is allowed.\n :param proxies: (optional) Dictionary mapping protocol to the URL of the proxy.\n :param verify: (optional) if ``True``, the SSL cert will be verified. A CA_BUNDLE path can also be provided.\n :param stream: (optional) if ``False``, the response content will be immediately downloaded.\n :param cert: (optional) if String, path to ssl client cert file (.pem). If Tuple, ('cert', 'key') pair.\n\n Usage::\n\n >>> import requests\n >>> req = requests.request('GET', 'http://httpbin.org/get')\n \n \"\"\"\n\n session = sessions.Session()\n return session.request(method=method, url=url, **kwargs)"},{"col":4,"comment":"null","endLoc":76,"header":"def feed(self, aBuf)","id":1287,"name":"feed","nodeType":"Function","startLoc":58,"text":"def feed(self, aBuf):\n for prober in self._mProbers:\n if not prober:\n continue\n if not prober.active:\n continue\n st = prober.feed(aBuf)\n if not st:\n continue\n if st == constants.eFoundIt:\n self._mBestGuessProber = prober\n return self.get_state()\n elif st == constants.eNotMe:\n prober.active = False\n self._mActiveNum -= 1\n if self._mActiveNum <= 0:\n self._mState = constants.eNotMe\n return self.get_state()\n return self.get_state()"},{"attributeType":"null","col":8,"comment":"null","endLoc":38,"id":1288,"name":"_mBestGuessProber","nodeType":"Attribute","startLoc":38,"text":"self._mBestGuessProber"},{"attributeType":"null","col":8,"comment":"null","endLoc":36,"id":1289,"name":"_mActiveNum","nodeType":"Attribute","startLoc":36,"text":"self._mActiveNum"},{"attributeType":"null","col":8,"comment":"null","endLoc":37,"id":1290,"name":"_mProbers","nodeType":"Attribute","startLoc":37,"text":"self._mProbers"},{"col":4,"comment":"null","endLoc":221,"header":"def __init__(self)","id":1291,"name":"__init__","nodeType":"Function","startLoc":172,"text":"def __init__(self):\n\n #: A case-insensitive dictionary of headers to be sent on each\n #: :class:`Request ` sent from this\n #: :class:`Session `.\n self.headers = default_headers()\n\n #: Default Authentication tuple or object to attach to\n #: :class:`Request `.\n self.auth = None\n\n #: Dictionary mapping protocol to the URL of the proxy (e.g.\n #: {'http': 'foo.bar:3128'}) to be used on each\n #: :class:`Request `.\n self.proxies = {}\n\n #: Event-handling hooks.\n self.hooks = default_hooks()\n\n #: Dictionary of querystring data to attach to each\n #: :class:`Request `. The dictionary values may be lists for\n #: representing multivalued query parameters.\n self.params = {}\n\n #: Stream response content default.\n self.stream = False\n\n #: SSL Verification default.\n self.verify = True\n\n #: SSL certificate default.\n self.cert = None\n\n #: Maximum number of redirects allowed. If the request exceeds this\n #: limit, a :class:`TooManyRedirects` exception is raised.\n self.max_redirects = DEFAULT_REDIRECT_LIMIT\n\n #: Should we trust the environment?\n self.trust_env = True\n\n #: A CookieJar containing all currently outstanding cookies set on this\n #: session. By default it is a\n #: :class:`RequestsCookieJar `, but\n #: may be any other ``cookielib.CookieJar`` compatible object.\n self.cookies = cookiejar_from_dict({})\n\n # Default connection adapters.\n self.adapters = OrderedDict()\n self.mount('https://', HTTPAdapter())\n self.mount('http://', HTTPAdapter())"},{"col":4,"comment":"null","endLoc":154,"header":"def __init__(self)","id":1292,"name":"__init__","nodeType":"Function","startLoc":150,"text":"def __init__(self):\n CharDistributionAnalysis.__init__(self)\n self._mCharToFreqOrder = GB2312CharToFreqOrder\n self._mTableSize = GB2312_TABLE_SIZE\n self._mTypicalDistributionRatio = GB2312_TYPICAL_DISTRIBUTION_RATIO"},{"attributeType":"null","col":20,"comment":"null","endLoc":74,"id":1293,"name":"_mState","nodeType":"Attribute","startLoc":74,"text":"self._mState"},{"col":0,"comment":"null","endLoc":476,"header":"def default_headers()","id":1294,"name":"default_headers","nodeType":"Function","startLoc":471,"text":"def default_headers():\n return CaseInsensitiveDict({\n 'User-Agent': default_user_agent(),\n 'Accept-Encoding': ', '.join(('gzip', 'deflate', 'compress')),\n 'Accept': '*/*'\n })"},{"col":4,"comment":"null","endLoc":54,"header":"def __init__(self)","id":1295,"name":"__init__","nodeType":"Function","startLoc":42,"text":"def __init__(self):\n CharSetGroupProber.__init__(self)\n self._mProbers = [\n UTF8Prober(),\n SJISProber(),\n EUCJPProber(),\n GB2312Prober(),\n EUCKRProber(),\n CP949Prober(),\n Big5Prober(),\n EUCTWProber()\n ]\n self.reset()"},{"col":0,"comment":"Return a string representing the default user agent.","endLoc":468,"header":"def default_user_agent()","id":1296,"name":"default_user_agent","nodeType":"Function","startLoc":440,"text":"def default_user_agent():\n \"\"\"Return a string representing the default user agent.\"\"\"\n _implementation = platform.python_implementation()\n\n if _implementation == 'CPython':\n _implementation_version = platform.python_version()\n elif _implementation == 'PyPy':\n _implementation_version = '%s.%s.%s' % (sys.pypy_version_info.major,\n sys.pypy_version_info.minor,\n sys.pypy_version_info.micro)\n if sys.pypy_version_info.releaselevel != 'final':\n _implementation_version = ''.join([_implementation_version, sys.pypy_version_info.releaselevel])\n elif _implementation == 'Jython':\n _implementation_version = platform.python_version() # Complete Guess\n elif _implementation == 'IronPython':\n _implementation_version = platform.python_version() # Complete Guess\n else:\n _implementation_version = 'Unknown'\n\n try:\n p_system = platform.system()\n p_release = platform.release()\n except IOError:\n p_system = 'Unknown'\n p_release = 'Unknown'\n\n return \" \".join(['python-requests/%s' % __version__,\n '%s/%s' % (_implementation, _implementation_version),\n '%s/%s' % (p_system, p_release)])"},{"col":4,"comment":"null","endLoc":41,"header":"def get_charset_name(self)","id":1297,"name":"get_charset_name","nodeType":"Function","startLoc":40,"text":"def get_charset_name(self):\n return \"GB2312\""},{"attributeType":"null","col":8,"comment":"null","endLoc":36,"id":1298,"name":"_mCodingSM","nodeType":"Attribute","startLoc":36,"text":"self._mCodingSM"},{"attributeType":"str","col":4,"comment":"null","endLoc":571,"id":1299,"name":"scheme","nodeType":"Attribute","startLoc":571,"text":"scheme"},{"attributeType":"VerifiedHTTPSConnection | DummyConnection | HTTPSConnection","col":4,"comment":"null","endLoc":572,"id":1300,"name":"ConnectionCls","nodeType":"Attribute","startLoc":572,"text":"ConnectionCls"},{"attributeType":"null","col":8,"comment":"null","endLoc":589,"id":1301,"name":"assert_hostname","nodeType":"Attribute","startLoc":589,"text":"self.assert_hostname"},{"attributeType":"null","col":8,"comment":"null","endLoc":37,"id":1303,"name":"_mDistributionAnalyzer","nodeType":"Attribute","startLoc":37,"text":"self._mDistributionAnalyzer"},{"attributeType":"null","col":8,"comment":"null","endLoc":587,"id":1304,"name":"ca_certs","nodeType":"Attribute","startLoc":587,"text":"self.ca_certs"},{"attributeType":"null","col":8,"comment":"null","endLoc":590,"id":1305,"name":"assert_fingerprint","nodeType":"Attribute","startLoc":590,"text":"self.assert_fingerprint"},{"className":"CP949Prober","col":0,"comment":"null","endLoc":44,"id":1306,"nodeType":"Class","startLoc":34,"text":"class CP949Prober(MultiByteCharSetProber):\n def __init__(self):\n MultiByteCharSetProber.__init__(self)\n self._mCodingSM = CodingStateMachine(CP949SMModel)\n # NOTE: CP949 is a superset of EUC-KR, so the distribution should be\n # not different.\n self._mDistributionAnalyzer = EUCKRDistributionAnalysis()\n self.reset()\n\n def get_charset_name(self):\n return \"CP949\""},{"col":4,"comment":"Same as HTTP(S)ConnectionPool.urlopen, ``url`` must be absolute.","endLoc":255,"header":"def urlopen(self, method, url, redirect=True, **kw)","id":1308,"name":"urlopen","nodeType":"Function","startLoc":243,"text":"def urlopen(self, method, url, redirect=True, **kw):\n \"Same as HTTP(S)ConnectionPool.urlopen, ``url`` must be absolute.\"\n u = parse_url(url)\n\n if u.scheme == \"http\":\n # It's too late to set proxy headers on per-request basis for\n # tunnelled HTTPS connections, should use\n # constructor's proxy_headers instead.\n kw['headers'] = self._set_proxy_headers(url, kw.get('headers',\n self.headers))\n kw['headers'].update(self.proxy_headers)\n\n return super(ProxyManager, self).urlopen(method, url, redirect, **kw)"},{"col":4,"comment":"null","endLoc":41,"header":"def __init__(self)","id":1309,"name":"__init__","nodeType":"Function","startLoc":35,"text":"def __init__(self):\n MultiByteCharSetProber.__init__(self)\n self._mCodingSM = CodingStateMachine(CP949SMModel)\n # NOTE: CP949 is a superset of EUC-KR, so the distribution should be\n # not different.\n self._mDistributionAnalyzer = EUCKRDistributionAnalysis()\n self.reset()"},{"col":4,"comment":"null","endLoc":44,"header":"def get_charset_name(self)","id":1310,"name":"get_charset_name","nodeType":"Function","startLoc":43,"text":"def get_charset_name(self):\n return \"CP949\""},{"attributeType":"null","col":8,"comment":"null","endLoc":584,"id":1311,"name":"key_file","nodeType":"Attribute","startLoc":584,"text":"self.key_file"},{"attributeType":"null","col":8,"comment":"null","endLoc":37,"id":1312,"name":"_mCodingSM","nodeType":"Attribute","startLoc":37,"text":"self._mCodingSM"},{"col":4,"comment":"Returns a dictionary of the headers to add to any request sent\n through a proxy. This works with urllib3 magic to ensure that they are\n correctly sent to the proxy, rather than in a tunnelled request if\n CONNECT is being used.\n\n This should not be called from user code, and is only exposed for use\n when subclassing the\n :class:`HTTPAdapter `.\n\n :param proxies: The url of the proxy being used for this request.\n :param kwargs: Optional additional keyword arguments.\n ","endLoc":283,"header":"def proxy_headers(self, proxy)","id":1313,"name":"proxy_headers","nodeType":"Function","startLoc":259,"text":"def proxy_headers(self, proxy):\n \"\"\"Returns a dictionary of the headers to add to any request sent\n through a proxy. This works with urllib3 magic to ensure that they are\n correctly sent to the proxy, rather than in a tunnelled request if\n CONNECT is being used.\n\n This should not be called from user code, and is only exposed for use\n when subclassing the\n :class:`HTTPAdapter `.\n\n :param proxies: The url of the proxy being used for this request.\n :param kwargs: Optional additional keyword arguments.\n \"\"\"\n headers = {}\n username, password = get_auth_from_url(proxy)\n\n if username and password:\n # Proxy auth usernames and passwords will be urlencoded, we need\n # to decode them.\n username = unquote(username)\n password = unquote(password)\n headers['Proxy-Authorization'] = _basic_auth_str(username,\n password)\n\n return headers"},{"attributeType":"null","col":8,"comment":"null","endLoc":586,"id":1314,"name":"cert_reqs","nodeType":"Attribute","startLoc":586,"text":"self.cert_reqs"},{"attributeType":"null","col":8,"comment":"null","endLoc":40,"id":1315,"name":"_mDistributionAnalyzer","nodeType":"Attribute","startLoc":40,"text":"self._mDistributionAnalyzer"},{"attributeType":"null","col":8,"comment":"null","endLoc":585,"id":1316,"name":"cert_file","nodeType":"Attribute","startLoc":585,"text":"self.cert_file"},{"className":"Big5Prober","col":0,"comment":"null","endLoc":42,"id":1317,"nodeType":"Class","startLoc":34,"text":"class Big5Prober(MultiByteCharSetProber):\n def __init__(self):\n MultiByteCharSetProber.__init__(self)\n self._mCodingSM = CodingStateMachine(Big5SMModel)\n self._mDistributionAnalyzer = Big5DistributionAnalysis()\n self.reset()\n\n def get_charset_name(self):\n return \"Big5\""},{"col":4,"comment":"null","endLoc":39,"header":"def __init__(self)","id":1319,"name":"__init__","nodeType":"Function","startLoc":35,"text":"def __init__(self):\n MultiByteCharSetProber.__init__(self)\n self._mCodingSM = CodingStateMachine(Big5SMModel)\n self._mDistributionAnalyzer = Big5DistributionAnalysis()\n self.reset()"},{"attributeType":"null","col":8,"comment":"null","endLoc":588,"id":1320,"name":"ssl_version","nodeType":"Attribute","startLoc":588,"text":"self.ssl_version"},{"col":4,"comment":"Prepares the entire request with the given parameters.","endLoc":292,"header":"def prepare(self, method=None, url=None, headers=None, files=None,\n data=None, params=None, auth=None, cookies=None, hooks=None)","id":1322,"name":"prepare","nodeType":"Function","startLoc":278,"text":"def prepare(self, method=None, url=None, headers=None, files=None,\n data=None, params=None, auth=None, cookies=None, hooks=None):\n \"\"\"Prepares the entire request with the given parameters.\"\"\"\n\n self.prepare_method(method)\n self.prepare_url(url, params)\n self.prepare_headers(headers)\n self.prepare_cookies(cookies)\n self.prepare_body(data, files)\n self.prepare_auth(auth, url)\n # Note that prepare_auth must be last to enable authentication schemes\n # such as OAuth to work on a fully prepared request.\n\n # This MUST go after prepare_auth. Authenticators could add a hook\n self.prepare_hooks(hooks)"},{"col":4,"comment":"Prepares the given HTTP method.","endLoc":310,"header":"def prepare_method(self, method)","id":1323,"name":"prepare_method","nodeType":"Function","startLoc":306,"text":"def prepare_method(self, method):\n \"\"\"Prepares the given HTTP method.\"\"\"\n self.method = method\n if self.method is not None:\n self.method = self.method.upper()"},{"col":4,"comment":"null","endLoc":173,"header":"def __init__(self)","id":1324,"name":"__init__","nodeType":"Function","startLoc":169,"text":"def __init__(self):\n CharDistributionAnalysis.__init__(self)\n self._mCharToFreqOrder = Big5CharToFreqOrder\n self._mTableSize = BIG5_TABLE_SIZE\n self._mTypicalDistributionRatio = BIG5_TYPICAL_DISTRIBUTION_RATIO"},{"col":4,"comment":"null","endLoc":42,"header":"def get_charset_name(self)","id":1325,"name":"get_charset_name","nodeType":"Function","startLoc":41,"text":"def get_charset_name(self):\n return \"Big5\""},{"attributeType":"null","col":8,"comment":"null","endLoc":37,"id":1326,"name":"_mCodingSM","nodeType":"Attribute","startLoc":37,"text":"self._mCodingSM"},{"col":0,"comment":"\n Given a url, return an :class:`.ConnectionPool` instance of its host.\n\n This is a shortcut for not having to parse out the scheme, host, and port\n of the url before creating an :class:`.ConnectionPool` instance.\n\n :param url:\n Absolute URL string that must include the scheme. Port is optional.\n\n :param \\**kw:\n Passes additional parameters to the constructor of the appropriate\n :class:`.ConnectionPool`. Useful for specifying things like\n timeout, maxsize, headers, etc.\n\n Example: ::\n\n >>> conn = connection_from_url('http://google.com/')\n >>> r = conn.request('GET', '/')\n ","endLoc":674,"header":"def connection_from_url(url, **kw)","id":1327,"name":"connection_from_url","nodeType":"Function","startLoc":650,"text":"def connection_from_url(url, **kw):\n \"\"\"\n Given a url, return an :class:`.ConnectionPool` instance of its host.\n\n This is a shortcut for not having to parse out the scheme, host, and port\n of the url before creating an :class:`.ConnectionPool` instance.\n\n :param url:\n Absolute URL string that must include the scheme. Port is optional.\n\n :param \\**kw:\n Passes additional parameters to the constructor of the appropriate\n :class:`.ConnectionPool`. Useful for specifying things like\n timeout, maxsize, headers, etc.\n\n Example: ::\n\n >>> conn = connection_from_url('http://google.com/')\n >>> r = conn.request('GET', '/')\n \"\"\"\n scheme, host, port = get_host(url)\n if scheme == 'https':\n return HTTPSConnectionPool(host, port=port, **kw)\n else:\n return HTTPConnectionPool(host, port=port, **kw)"},{"attributeType":"null","col":8,"comment":"null","endLoc":38,"id":1328,"name":"_mDistributionAnalyzer","nodeType":"Attribute","startLoc":38,"text":"self._mDistributionAnalyzer"},{"col":4,"comment":"Prepares the given HTTP URL.","endLoc":371,"header":"def prepare_url(self, url, params)","id":1329,"name":"prepare_url","nodeType":"Function","startLoc":312,"text":"def prepare_url(self, url, params):\n \"\"\"Prepares the given HTTP URL.\"\"\"\n #: Accept objects that have string representations.\n try:\n url = unicode(url)\n except NameError:\n # We're on Python 3.\n url = str(url)\n except UnicodeDecodeError:\n pass\n\n # Support for unicode domain names and paths.\n scheme, auth, host, port, path, query, fragment = parse_url(url)\n\n if not scheme:\n raise MissingSchema(\"Invalid URL {0!r}: No schema supplied. \"\n \"Perhaps you meant http://{0}?\".format(url))\n\n if not host:\n raise InvalidURL(\"Invalid URL %r: No host supplied\" % url)\n\n # Only want to apply IDNA to the hostname\n try:\n host = host.encode('idna').decode('utf-8')\n except UnicodeError:\n raise InvalidURL('URL has an invalid label.')\n\n # Carefully reconstruct the network location\n netloc = auth or ''\n if netloc:\n netloc += '@'\n netloc += host\n if port:\n netloc += ':' + str(port)\n\n # Bare domains aren't valid URLs.\n if not path:\n path = '/'\n\n if is_py2:\n if isinstance(scheme, str):\n scheme = scheme.encode('utf-8')\n if isinstance(netloc, str):\n netloc = netloc.encode('utf-8')\n if isinstance(path, str):\n path = path.encode('utf-8')\n if isinstance(query, str):\n query = query.encode('utf-8')\n if isinstance(fragment, str):\n fragment = fragment.encode('utf-8')\n\n enc_params = self._encode_params(params)\n if enc_params:\n if query:\n query = '%s&%s' % (query, enc_params)\n else:\n query = enc_params\n\n url = requote_uri(urlunparse([scheme, netloc, path, None, query, fragment]))\n self.url = url"},{"col":4,"comment":"Disposes of any internal state.\n\n Currently, this just closes the PoolManager, which closes pooled\n connections.\n ","endLoc":219,"header":"def close(self)","id":1330,"name":"close","nodeType":"Function","startLoc":213,"text":"def close(self):\n \"\"\"Disposes of any internal state.\n\n Currently, this just closes the PoolManager, which closes pooled\n connections.\n \"\"\"\n self.poolmanager.clear()"},{"id":1331,"name":"requests/packages/urllib3/contrib","nodeType":"Package"},{"fileName":"__init__.py","filePath":"requests/packages/urllib3/contrib","id":1332,"nodeType":"File","text":""},{"id":1333,"name":"docs/_themes","nodeType":"Package"},{"id":1334,"name":"LICENSE","nodeType":"TextFile","path":"docs/_themes","text":"Modifications:\n\nCopyright (c) 2011 Kenneth Reitz.\n\n\nOriginal Project:\n\nCopyright (c) 2010 by Armin Ronacher.\n\n\nSome rights reserved.\n\nRedistribution and use in source and binary forms of the theme, with or\nwithout modification, are permitted provided that the following conditions\nare met:\n\n* Redistributions of source code must retain the above copyright\n notice, this list of conditions and the following disclaimer.\n\n* Redistributions in binary form must reproduce the above\n copyright notice, this list of conditions and the following\n disclaimer in the documentation and/or other materials provided\n with the distribution.\n\n* The names of the contributors may not be used to endorse or\n promote products derived from this software without specific\n prior written permission.\n\nWe kindly ask you to only use these themes in an unmodified manner just\nfor Flask and Flask-related products, not for unrelated projects. If you\nlike the visual style and want to use it for your own projects, please\nconsider making some larger changes to the themes (such as changing\nfont faces, sizes, colors or margins).\n\nTHIS THEME IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\nAND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\nIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\nARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE\nLIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\nCONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\nSUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\nINTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\nCONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\nARISING IN ANY WAY OUT OF THE USE OF THIS THEME, EVEN IF ADVISED OF THE\nPOSSIBILITY OF SUCH DAMAGE.\n"},{"attributeType":"null","col":8,"comment":"null","endLoc":44,"id":1335,"name":"_mProbers","nodeType":"Attribute","startLoc":44,"text":"self._mProbers"},{"col":4,"comment":"Obtain the url to use when making the final request.\n\n If the message is being sent through a HTTP proxy, the full URL has to\n be used. Otherwise, we should only use the path portion of the URL.\n\n This should not be called from user code, and is only exposed for use\n when subclassing the\n :class:`HTTPAdapter `.\n\n :param request: The :class:`PreparedRequest ` being sent.\n :param proxies: A dictionary of schemes to proxy URLs.\n ","endLoc":243,"header":"def request_url(self, request, proxies)","id":1336,"name":"request_url","nodeType":"Function","startLoc":221,"text":"def request_url(self, request, proxies):\n \"\"\"Obtain the url to use when making the final request.\n\n If the message is being sent through a HTTP proxy, the full URL has to\n be used. Otherwise, we should only use the path portion of the URL.\n\n This should not be called from user code, and is only exposed for use\n when subclassing the\n :class:`HTTPAdapter `.\n\n :param request: The :class:`PreparedRequest ` being sent.\n :param proxies: A dictionary of schemes to proxy URLs.\n \"\"\"\n proxies = proxies or {}\n scheme = urlparse(request.url).scheme.lower()\n proxy = proxies.get(scheme)\n\n if proxy and scheme != 'https':\n url, _ = urldefrag(request.url)\n else:\n url = request.path_url\n\n return url"},{"className":"SBCSGroupProber","col":0,"comment":"null","endLoc":69,"id":1337,"nodeType":"Class","startLoc":42,"text":"class SBCSGroupProber(CharSetGroupProber):\n def __init__(self):\n CharSetGroupProber.__init__(self)\n self._mProbers = [\n SingleByteCharSetProber(Win1251CyrillicModel),\n SingleByteCharSetProber(Koi8rModel),\n SingleByteCharSetProber(Latin5CyrillicModel),\n SingleByteCharSetProber(MacCyrillicModel),\n SingleByteCharSetProber(Ibm866Model),\n SingleByteCharSetProber(Ibm855Model),\n SingleByteCharSetProber(Latin7GreekModel),\n SingleByteCharSetProber(Win1253GreekModel),\n SingleByteCharSetProber(Latin5BulgarianModel),\n SingleByteCharSetProber(Win1251BulgarianModel),\n SingleByteCharSetProber(Latin2HungarianModel),\n SingleByteCharSetProber(Win1250HungarianModel),\n SingleByteCharSetProber(TIS620ThaiModel),\n ]\n hebrewProber = HebrewProber()\n logicalHebrewProber = SingleByteCharSetProber(Win1255HebrewModel,\n False, hebrewProber)\n visualHebrewProber = SingleByteCharSetProber(Win1255HebrewModel, True,\n hebrewProber)\n hebrewProber.set_model_probers(logicalHebrewProber, visualHebrewProber)\n self._mProbers.extend([hebrewProber, logicalHebrewProber,\n visualHebrewProber])\n\n self.reset()"},{"col":4,"comment":"null","endLoc":69,"header":"def __init__(self)","id":1338,"name":"__init__","nodeType":"Function","startLoc":43,"text":"def __init__(self):\n CharSetGroupProber.__init__(self)\n self._mProbers = [\n SingleByteCharSetProber(Win1251CyrillicModel),\n SingleByteCharSetProber(Koi8rModel),\n SingleByteCharSetProber(Latin5CyrillicModel),\n SingleByteCharSetProber(MacCyrillicModel),\n SingleByteCharSetProber(Ibm866Model),\n SingleByteCharSetProber(Ibm855Model),\n SingleByteCharSetProber(Latin7GreekModel),\n SingleByteCharSetProber(Win1253GreekModel),\n SingleByteCharSetProber(Latin5BulgarianModel),\n SingleByteCharSetProber(Win1251BulgarianModel),\n SingleByteCharSetProber(Latin2HungarianModel),\n SingleByteCharSetProber(Win1250HungarianModel),\n SingleByteCharSetProber(TIS620ThaiModel),\n ]\n hebrewProber = HebrewProber()\n logicalHebrewProber = SingleByteCharSetProber(Win1255HebrewModel,\n False, hebrewProber)\n visualHebrewProber = SingleByteCharSetProber(Win1255HebrewModel, True,\n hebrewProber)\n hebrewProber.set_model_probers(logicalHebrewProber, visualHebrewProber)\n self._mProbers.extend([hebrewProber, logicalHebrewProber,\n visualHebrewProber])\n\n self.reset()"},{"attributeType":"null","col":28,"comment":"null","endLoc":10,"id":1339,"name":"SocketError","nodeType":"Attribute","startLoc":10,"text":"SocketError"},{"attributeType":"null","col":52,"comment":"null","endLoc":10,"id":1340,"name":"SocketTimeout","nodeType":"Attribute","startLoc":10,"text":"SocketTimeout"},{"col":4,"comment":"null","endLoc":90,"header":"def get_confidence(self)","id":1341,"name":"get_confidence","nodeType":"Function","startLoc":87,"text":"def get_confidence(self):\n contxtCf = self._mContextAnalyzer.get_confidence()\n distribCf = self._mDistributionAnalyzer.get_confidence()\n return max(contxtCf, distribCf)"},{"attributeType":"null","col":20,"comment":"null","endLoc":17,"id":1342,"name":"_","nodeType":"Attribute","startLoc":17,"text":"_"},{"attributeType":"null","col":0,"comment":"null","endLoc":48,"id":1343,"name":"xrange","nodeType":"Attribute","startLoc":48,"text":"xrange"},{"col":4,"comment":"Add any headers needed by the connection. As of v2.0 this does\n nothing by default, but is left for overriding by users that subclass\n the :class:`HTTPAdapter `.\n\n This should not be called from user code, and is only exposed for use\n when subclassing the\n :class:`HTTPAdapter `.\n\n :param request: The :class:`PreparedRequest ` to add headers to.\n :param kwargs: The keyword arguments from the call to send().\n ","endLoc":257,"header":"def add_headers(self, request, **kwargs)","id":1344,"name":"add_headers","nodeType":"Function","startLoc":245,"text":"def add_headers(self, request, **kwargs):\n \"\"\"Add any headers needed by the connection. As of v2.0 this does\n nothing by default, but is left for overriding by users that subclass\n the :class:`HTTPAdapter `.\n\n This should not be called from user code, and is only exposed for use\n when subclassing the\n :class:`HTTPAdapter `.\n\n :param request: The :class:`PreparedRequest ` to add headers to.\n :param kwargs: The keyword arguments from the call to send().\n \"\"\"\n pass"},{"col":4,"comment":"Sends PreparedRequest object. Returns Response object.\n\n :param request: The :class:`PreparedRequest ` being sent.\n :param stream: (optional) Whether to stream the request content.\n :param timeout: (optional) The timeout on the request.\n :param verify: (optional) Whether to verify SSL certificates.\n :param cert: (optional) Any user-provided SSL certificate to be trusted.\n :param proxies: (optional) The proxies dictionary to apply to the request.\n ","endLoc":374,"header":"def send(self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None)","id":1345,"name":"send","nodeType":"Function","startLoc":285,"text":"def send(self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None):\n \"\"\"Sends PreparedRequest object. Returns Response object.\n\n :param request: The :class:`PreparedRequest ` being sent.\n :param stream: (optional) Whether to stream the request content.\n :param timeout: (optional) The timeout on the request.\n :param verify: (optional) Whether to verify SSL certificates.\n :param cert: (optional) Any user-provided SSL certificate to be trusted.\n :param proxies: (optional) The proxies dictionary to apply to the request.\n \"\"\"\n\n conn = self.get_connection(request.url, proxies)\n\n self.cert_verify(conn, request.url, verify, cert)\n url = self.request_url(request, proxies)\n self.add_headers(request)\n\n chunked = not (request.body is None or 'Content-Length' in request.headers)\n\n if stream:\n timeout = TimeoutSauce(connect=timeout)\n else:\n timeout = TimeoutSauce(connect=timeout, read=timeout)\n\n try:\n if not chunked:\n resp = conn.urlopen(\n method=request.method,\n url=url,\n body=request.body,\n headers=request.headers,\n redirect=False,\n assert_same_host=False,\n preload_content=False,\n decode_content=False,\n retries=self.max_retries,\n timeout=timeout\n )\n\n # Send the request.\n else:\n if hasattr(conn, 'proxy_pool'):\n conn = conn.proxy_pool\n\n low_conn = conn._get_conn(timeout=timeout)\n low_conn.putrequest(request.method, url, skip_accept_encoding=True)\n\n for header, value in request.headers.items():\n low_conn.putheader(header, value)\n\n low_conn.endheaders()\n\n for i in request.body:\n low_conn.send(hex(len(i))[2:].encode('utf-8'))\n low_conn.send(b'\\r\\n')\n low_conn.send(i)\n low_conn.send(b'\\r\\n')\n low_conn.send(b'0\\r\\n\\r\\n')\n\n r = low_conn.getresponse()\n resp = HTTPResponse.from_httplib(r,\n pool=conn,\n connection=low_conn,\n preload_content=False,\n decode_content=False\n )\n\n except socket.error as sockerr:\n raise ConnectionError(sockerr)\n\n except MaxRetryError as e:\n raise ConnectionError(e)\n\n except _ProxyError as e:\n raise ProxyError(e)\n\n except (_SSLError, _HTTPError) as e:\n if isinstance(e, _SSLError):\n raise SSLError(e)\n elif isinstance(e, TimeoutError):\n raise Timeout(e)\n else:\n raise\n\n r = self.build_response(request, resp)\n\n if not stream:\n r.content\n\n return r"},{"attributeType":"Logger","col":0,"comment":"null","endLoc":50,"id":1346,"name":"log","nodeType":"Attribute","startLoc":50,"text":"log"},{"attributeType":"object","col":0,"comment":"null","endLoc":52,"id":1347,"name":"_Default","nodeType":"Attribute","startLoc":52,"text":"_Default"},{"attributeType":"set","col":0,"comment":"null","endLoc":83,"id":1348,"name":"_blocking_errnos","nodeType":"Attribute","startLoc":83,"text":"_blocking_errnos"},{"attributeType":"CodingStateMachine","col":8,"comment":"null","endLoc":40,"id":1349,"name":"_mCodingSM","nodeType":"Attribute","startLoc":40,"text":"self._mCodingSM"},{"attributeType":"EUCJPContextAnalysis","col":8,"comment":"null","endLoc":42,"id":1350,"name":"_mContextAnalyzer","nodeType":"Attribute","startLoc":42,"text":"self._mContextAnalyzer"},{"attributeType":"null","col":16,"comment":"null","endLoc":62,"id":1351,"name":"_mState","nodeType":"Attribute","startLoc":62,"text":"self._mState"},{"attributeType":"EUCJPDistributionAnalysis","col":8,"comment":"null","endLoc":41,"id":1352,"name":"_mDistributionAnalyzer","nodeType":"Attribute","startLoc":41,"text":"self._mDistributionAnalyzer"},{"id":1353,"name":"requirements.txt","nodeType":"TextFile","path":"","text":"py==1.4.12\npytest==2.3.4\ninvoke==0.2.0"},{"id":1354,"name":"quickstart.rst","nodeType":"TextFile","path":"docs/user","text":".. _quickstart:\n\nQuickstart\n==========\n\n.. module:: requests.models\n\nEager to get started? This page gives a good introduction in how to get started\nwith Requests. This assumes you already have Requests installed. If you do not,\nhead over to the :ref:`Installation ` section.\n\nFirst, make sure that:\n\n* Requests is :ref:`installed `\n* Requests is :ref:`up-to-date `\n\n\nLet's get started with some simple examples.\n\n\nMake a Request\n--------------\n\nMaking a request with Requests is very simple.\n\nBegin by importing the Requests module::\n\n >>> import requests\n\nNow, let's try to get a webpage. For this example, let's get GitHub's public\ntimeline ::\n\n >>> r = requests.get('https://github.com/timeline.json')\n\nNow, we have a :class:`Response` object called ``r``. We can get all the\ninformation we need from this object.\n\nRequests' simple API means that all forms of HTTP request are as obvious. For\nexample, this is how you make an HTTP POST request::\n\n >>> r = requests.post(\"http://httpbin.org/post\")\n\nNice, right? What about the other HTTP request types: PUT, DELETE, HEAD and\nOPTIONS? These are all just as simple::\n\n >>> r = requests.put(\"http://httpbin.org/put\")\n >>> r = requests.delete(\"http://httpbin.org/delete\")\n >>> r = requests.head(\"http://httpbin.org/get\")\n >>> r = requests.options(\"http://httpbin.org/get\")\n\nThat's all well and good, but it's also only the start of what Requests can\ndo.\n\n\nPassing Parameters In URLs\n--------------------------\n\nYou often want to send some sort of data in the URL's query string. If\nyou were constructing the URL by hand, this data would be given as key/value\npairs in the URL after a question mark, e.g. ``httpbin.org/get?key=val``.\nRequests allows you to provide these arguments as a dictionary, using the\n``params`` keyword argument. As an example, if you wanted to pass\n``key1=value1`` and ``key2=value2`` to ``httpbin.org/get``, you would use the\nfollowing code::\n\n >>> payload = {'key1': 'value1', 'key2': 'value2'}\n >>> r = requests.get(\"http://httpbin.org/get\", params=payload)\n\nYou can see that the URL has been correctly encoded by printing the URL::\n\n >>> print(r.url)\n http://httpbin.org/get?key2=value2&key1=value1\n\nNote that any dictionary key whose value is ``None`` will not be added to the\nURL's query string.\n\n\nResponse Content\n----------------\n\nWe can read the content of the server's response. Consider the GitHub timeline\nagain::\n\n >>> import requests\n >>> r = requests.get('https://github.com/timeline.json')\n >>> r.text\n u'[{\"repository\":{\"open_issues\":0,\"url\":\"https://github.com/...\n\nRequests will automatically decode content from the server. Most unicode\ncharsets are seamlessly decoded.\n\nWhen you make a request, Requests makes educated guesses about the encoding of\nthe response based on the HTTP headers. The text encoding guessed by Requests\nis used when you access ``r.text``. You can find out what encoding Requests is\nusing, and change it, using the ``r.encoding`` property::\n\n >>> r.encoding\n 'utf-8'\n >>> r.encoding = 'ISO-8859-1'\n\nIf you change the encoding, Requests will use the new value of ``r.encoding``\nwhenever you call ``r.text``.\n\nRequests will also use custom encodings in the event that you need them. If\nyou have created your own encoding and registered it with the ``codecs``\nmodule, you can simply use the codec name as the value of ``r.encoding`` and\nRequests will handle the decoding for you.\n\nBinary Response Content\n-----------------------\n\nYou can also access the response body as bytes, for non-text requests::\n\n >>> r.content\n b'[{\"repository\":{\"open_issues\":0,\"url\":\"https://github.com/...\n\nThe ``gzip`` and ``deflate`` transfer-encodings are automatically decoded for you.\n\nFor example, to create an image from binary data returned by a request, you can\nuse the following code::\n\n >>> from PIL import Image\n >>> from StringIO import StringIO\n >>> i = Image.open(StringIO(r.content))\n\n\nJSON Response Content\n---------------------\n\nThere's also a builtin JSON decoder, in case you're dealing with JSON data::\n\n >>> import requests\n >>> r = requests.get('https://github.com/timeline.json')\n >>> r.json()\n [{u'repository': {u'open_issues': 0, u'url': 'https://github.com/...\n\nIn case the JSON decoding fails, ``r.json`` raises an exception. For example, if\nthe response gets a 401 (Unauthorized), attempting ``r.json`` raises ``ValueError:\nNo JSON object could be decoded``\n\n\nRaw Response Content\n--------------------\n\nIn the rare case that you'd like to get the raw socket response from the\nserver, you can access ``r.raw``. If you want to do this, make sure you set\n``stream=True`` in your initial request. Once you do, you can do this::\n\n >>> r = requests.get('https://github.com/timeline.json', stream=True)\n >>> r.raw\n \n >>> r.raw.read(10)\n '\\x1f\\x8b\\x08\\x00\\x00\\x00\\x00\\x00\\x00\\x03'\n\nIn general, however, you should use a pattern like this to save what is being \nstreamed to a file::\n\n with open(filename, 'wb') as fd:\n for chunk in r.iter_content(chunk_size):\n fd.write(chunk)\n\nUsing ``Response.iter_content`` will handle a lot of what you would otherwise \nhave to handle when using ``Response.raw`` directly. When streaming a \ndownload, the above is the preferred and recommended way to retrieve the \ncontent.\n\n\nCustom Headers\n--------------\n\nIf you'd like to add HTTP headers to a request, simply pass in a ``dict`` to the\n``headers`` parameter.\n\nFor example, we didn't specify our content-type in the previous example::\n\n >>> import json\n >>> url = 'https://api.github.com/some/endpoint'\n >>> payload = {'some': 'data'}\n >>> headers = {'content-type': 'application/json'}\n\n >>> r = requests.post(url, data=json.dumps(payload), headers=headers)\n\n\nMore complicated POST requests\n------------------------------\n\nTypically, you want to send some form-encoded data ��� much like an HTML form.\nTo do this, simply pass a dictionary to the ``data`` argument. Your\ndictionary of data will automatically be form-encoded when the request is made::\n\n >>> payload = {'key1': 'value1', 'key2': 'value2'}\n >>> r = requests.post(\"http://httpbin.org/post\", data=payload)\n >>> print r.text\n {\n ...\n \"form\": {\n \"key2\": \"value2\",\n \"key1\": \"value1\"\n },\n ...\n }\n\nThere are many times that you want to send data that is not form-encoded. If you pass in a ``string`` instead of a ``dict``, that data will be posted directly.\n\nFor example, the GitHub API v3 accepts JSON-Encoded POST/PATCH data::\n\n >>> import json\n >>> url = 'https://api.github.com/some/endpoint'\n >>> payload = {'some': 'data'}\n\n >>> r = requests.post(url, data=json.dumps(payload))\n\n\nPOST a Multipart-Encoded File\n-----------------------------\n\nRequests makes it simple to upload Multipart-encoded files::\n\n >>> url = 'http://httpbin.org/post'\n >>> files = {'file': open('report.xls', 'rb')}\n\n >>> r = requests.post(url, files=files)\n >>> r.text\n {\n ...\n \"files\": {\n \"file\": \"\"\n },\n ...\n }\n\nYou can set the filename explicitly::\n\n >>> url = 'http://httpbin.org/post'\n >>> files = {'file': ('report.xls', open('report.xls', 'rb'))}\n\n >>> r = requests.post(url, files=files)\n >>> r.text\n {\n ...\n \"files\": {\n \"file\": \"\"\n },\n ...\n }\n\nIf you want, you can send strings to be received as files::\n\n >>> url = 'http://httpbin.org/post'\n >>> files = {'file': ('report.csv', 'some,data,to,send\\nanother,row,to,send\\n')}\n\n >>> r = requests.post(url, files=files)\n >>> r.text\n {\n ...\n \"files\": {\n \"file\": \"some,data,to,send\\\\nanother,row,to,send\\\\n\"\n },\n ...\n }\n\n\nResponse Status Codes\n---------------------\n\nWe can check the response status code::\n\n >>> r = requests.get('http://httpbin.org/get')\n >>> r.status_code\n 200\n\nRequests also comes with a built-in status code lookup object for easy\nreference::\n\n >>> r.status_code == requests.codes.ok\n True\n\nIf we made a bad request (a 4XX client error or 5XX server error response), we can raise it with\n:class:`Response.raise_for_status()`::\n\n >>> bad_r = requests.get('http://httpbin.org/status/404')\n >>> bad_r.status_code\n 404\n\n >>> bad_r.raise_for_status()\n Traceback (most recent call last):\n File \"requests/models.py\", line 832, in raise_for_status\n raise http_error\n requests.exceptions.HTTPError: 404 Client Error\n\nBut, since our ``status_code`` for ``r`` was ``200``, when we call\n``raise_for_status()`` we get::\n\n >>> r.raise_for_status()\n None\n\nAll is well.\n\n\nResponse Headers\n----------------\n\nWe can view the server's response headers using a Python dictionary::\n\n >>> r.headers\n {\n 'content-encoding': 'gzip',\n 'transfer-encoding': 'chunked',\n 'connection': 'close',\n 'server': 'nginx/1.0.4',\n 'x-runtime': '148ms',\n 'etag': '\"e1ca502697e5c9317743dc078f67693f\"',\n 'content-type': 'application/json'\n }\n\nThe dictionary is special, though: it's made just for HTTP headers. According to\n`RFC 2616 `_, HTTP\nHeaders are case-insensitive.\n\nSo, we can access the headers using any capitalization we want::\n\n >>> r.headers['Content-Type']\n 'application/json'\n\n >>> r.headers.get('content-type')\n 'application/json'\n\n\nCookies\n-------\n\nIf a response contains some Cookies, you can get quick access to them::\n\n >>> url = 'http://example.com/some/cookie/setting/url'\n >>> r = requests.get(url)\n\n >>> r.cookies['example_cookie_name']\n 'example_cookie_value'\n\nTo send your own cookies to the server, you can use the ``cookies``\nparameter::\n\n >>> url = 'http://httpbin.org/cookies'\n >>> cookies = dict(cookies_are='working')\n\n >>> r = requests.get(url, cookies=cookies)\n >>> r.text\n '{\"cookies\": {\"cookies_are\": \"working\"}}'\n\n\nRedirection and History\n-----------------------\n\nRequests will automatically perform location redirection for all verbs except\nHEAD.\n\nGitHub redirects all HTTP requests to HTTPS. We can use the ``history`` method\nof the Response object to track redirection. Let's see what GitHub does::\n\n >>> r = requests.get('http://github.com')\n >>> r.url\n 'https://github.com/'\n >>> r.status_code\n 200\n >>> r.history\n []\n\nThe :class:`Response.history` list contains the :class:`Request` objects that\nwere created in order to complete the request. The list is sorted from the\noldest to the most recent request.\n\nIf you're using GET, OPTIONS, POST, PUT, PATCH or DELETE, you can disable\nredirection handling with the ``allow_redirects`` parameter::\n\n >>> r = requests.get('http://github.com', allow_redirects=False)\n >>> r.status_code\n 301\n >>> r.history\n []\n\nIf you're using HEAD, you can enable redirection as well::\n\n >>> r = requests.post('http://github.com', allow_redirects=True)\n >>> r.url\n 'https://github.com/'\n >>> r.history\n []\n\n\nTimeouts\n--------\n\nYou can tell Requests to stop waiting for a response after a given number of\nseconds with the ``timeout`` parameter::\n\n >>> requests.get('http://github.com', timeout=0.001)\n Traceback (most recent call last):\n File \"\", line 1, in \n requests.exceptions.Timeout: HTTPConnectionPool(host='github.com', port=80): Request timed out. (timeout=0.001)\n\n\n.. admonition:: Note\n\n ``timeout`` is not a time limit on the entire response download;\n rather, an exception is raised if the server has not issued a\n response for ``timeout`` seconds (more precisely, if no bytes have been\n received on the underlying socket for ``timeout`` seconds).\n\n\nErrors and Exceptions\n---------------------\n\nIn the event of a network problem (e.g. DNS failure, refused connection, etc),\nRequests will raise a :class:`~requests.exceptions.ConnectionError` exception.\n\nIn the event of the rare invalid HTTP response, Requests will raise an\n:class:`~requests.exceptions.HTTPError` exception.\n\nIf a request times out, a :class:`~requests.exceptions.Timeout` exception is\nraised.\n\nIf a request exceeds the configured number of maximum redirections, a\n:class:`~requests.exceptions.TooManyRedirects` exception is raised.\n\nAll exceptions that Requests explicitly raises inherit from\n:class:`requests.exceptions.RequestException`.\n\n-----------------------\n\nReady for more? Check out the :ref:`advanced ` section.\n"},{"id":1355,"name":"intro.rst","nodeType":"TextFile","path":"docs/user","text":".. _introduction:\n\nIntroduction\n============\n\nPhilosophy\n----------\n\nRequests was developed with a few :pep:`20` idioms in mind.\n\n\n#. Beautiful is better than ugly.\n#. Explicit is better than implicit.\n#. Simple is better than complex.\n#. Complex is better than complicated.\n#. Readability counts.\n\nAll contributions to Requests should keep these important rules in mind.\n\n.. _`apache2`:\n\nApache2 License\n---------------\n\nA large number of open source projects you find today are `GPL Licensed`_.\nWhile the GPL has its time and place, it should most certainly not be your\ngo-to license for your next open source project.\n\nA project that is released as GPL cannot be used in any commercial product\nwithout the product itself also being offered as open source.\n\nThe MIT, BSD, ISC, and Apache2 licenses are great alternatives to the GPL\nthat allow your open-source software to be used freely in proprietary,\nclosed-source software.\n\nRequests is released under terms of `Apache2 License`_.\n\n.. _`GPL Licensed`: http://www.opensource.org/licenses/gpl-license.php\n.. _`Apache2 License`: http://opensource.org/licenses/Apache-2.0\n\n\nRequests License\n----------------\n\n .. include:: ../../LICENSE\n"},{"fileName":"filepost.py","filePath":"requests/packages/urllib3","id":1356,"nodeType":"File","text":"# urllib3/filepost.py\n# Copyright 2008-2013 Andrey Petrov and contributors (see CONTRIBUTORS.txt)\n#\n# This module is part of urllib3 and is released under\n# the MIT License: http://www.opensource.org/licenses/mit-license.php\n\nimport codecs\nimport mimetypes\n\nfrom uuid import uuid4\nfrom io import BytesIO\n\nfrom .packages import six\nfrom .packages.six import b\nfrom .fields import RequestField\n\nwriter = codecs.lookup('utf-8')[3]\n\n\ndef choose_boundary():\n \"\"\"\n Our embarassingly-simple replacement for mimetools.choose_boundary.\n \"\"\"\n return uuid4().hex\n\n\ndef iter_field_objects(fields):\n \"\"\"\n Iterate over fields.\n\n Supports list of (k, v) tuples and dicts, and lists of\n :class:`~urllib3.fields.RequestField`.\n\n \"\"\"\n if isinstance(fields, dict):\n i = six.iteritems(fields)\n else:\n i = iter(fields)\n\n for field in i:\n if isinstance(field, RequestField):\n yield field\n else:\n yield RequestField.from_tuples(*field)\n\n\ndef iter_fields(fields):\n \"\"\"\n Iterate over fields.\n\n .. deprecated ::\n\n The addition of `~urllib3.fields.RequestField` makes this function\n obsolete. Instead, use :func:`iter_field_objects`, which returns\n `~urllib3.fields.RequestField` objects, instead.\n\n Supports list of (k, v) tuples and dicts.\n\n \"\"\"\n if isinstance(fields, dict):\n return ((k, v) for k, v in six.iteritems(fields))\n\n return ((k, v) for k, v in fields)\n\n\ndef encode_multipart_formdata(fields, boundary=None):\n \"\"\"\n Encode a dictionary of ``fields`` using the multipart/form-data MIME format.\n\n :param fields:\n Dictionary of fields or list of (key, :class:`~urllib3.fields.RequestField`).\n\n :param boundary:\n If not specified, then a random boundary will be generated using\n :func:`mimetools.choose_boundary`.\n \"\"\"\n body = BytesIO()\n if boundary is None:\n boundary = choose_boundary()\n\n for field in iter_field_objects(fields):\n body.write(b('--%s\\r\\n' % (boundary)))\n\n writer(body).write(field.render_headers())\n data = field.data\n\n if isinstance(data, int):\n data = str(data) # Backwards compatibility\n\n if isinstance(data, six.text_type):\n writer(body).write(data)\n else:\n body.write(data)\n\n body.write(b'\\r\\n')\n\n body.write(b('--%s--\\r\\n' % (boundary)))\n\n content_type = str('multipart/form-data; boundary=%s' % boundary)\n\n return body.getvalue(), content_type\n"},{"col":0,"comment":"\n Iterate over fields.\n\n .. deprecated ::\n\n The addition of `~urllib3.fields.RequestField` makes this function\n obsolete. Instead, use :func:`iter_field_objects`, which returns\n `~urllib3.fields.RequestField` objects, instead.\n\n Supports list of (k, v) tuples and dicts.\n\n ","endLoc":63,"header":"def iter_fields(fields)","id":1357,"name":"iter_fields","nodeType":"Function","startLoc":47,"text":"def iter_fields(fields):\n \"\"\"\n Iterate over fields.\n\n .. deprecated ::\n\n The addition of `~urllib3.fields.RequestField` makes this function\n obsolete. Instead, use :func:`iter_field_objects`, which returns\n `~urllib3.fields.RequestField` objects, instead.\n\n Supports list of (k, v) tuples and dicts.\n\n \"\"\"\n if isinstance(fields, dict):\n return ((k, v) for k, v in six.iteritems(fields))\n\n return ((k, v) for k, v in fields)"},{"fileName":"cookies.py","filePath":"requests","id":1358,"nodeType":"File","text":"# -*- coding: utf-8 -*-\n\n\"\"\"\nCompatibility code to be able to use `cookielib.CookieJar` with requests.\n\nrequests.utils imports from here, so be careful with imports.\n\"\"\"\n\nimport time\nimport collections\nfrom .compat import cookielib, urlparse, Morsel\n\ntry:\n import threading\n # grr, pyflakes: this fixes \"redefinition of unused 'threading'\"\n threading\nexcept ImportError:\n import dummy_threading as threading\n\n\nclass MockRequest(object):\n \"\"\"Wraps a `requests.Request` to mimic a `urllib2.Request`.\n\n The code in `cookielib.CookieJar` expects this interface in order to correctly\n manage cookie policies, i.e., determine whether a cookie can be set, given the\n domains of the request and the cookie.\n\n The original request object is read-only. The client is responsible for collecting\n the new headers via `get_new_headers()` and interpreting them appropriately. You\n probably want `get_cookie_header`, defined below.\n \"\"\"\n\n def __init__(self, request):\n self._r = request\n self._new_headers = {}\n self.type = urlparse(self._r.url).scheme\n\n def get_type(self):\n return self.type\n\n def get_host(self):\n return urlparse(self._r.url).netloc\n\n def get_origin_req_host(self):\n return self.get_host()\n\n def get_full_url(self):\n return self._r.url\n\n def is_unverifiable(self):\n return True\n\n def has_header(self, name):\n return name in self._r.headers or name in self._new_headers\n\n def get_header(self, name, default=None):\n return self._r.headers.get(name, self._new_headers.get(name, default))\n\n def add_header(self, key, val):\n \"\"\"cookielib has no legitimate use for this method; add it back if you find one.\"\"\"\n raise NotImplementedError(\"Cookie headers should be added with add_unredirected_header()\")\n\n def add_unredirected_header(self, name, value):\n self._new_headers[name] = value\n\n def get_new_headers(self):\n return self._new_headers\n\n @property\n def unverifiable(self):\n return self.is_unverifiable()\n\n @property\n def origin_req_host(self):\n return self.get_origin_req_host()\n\n @property\n def host(self):\n return self.get_host()\n\n\nclass MockResponse(object):\n \"\"\"Wraps a `httplib.HTTPMessage` to mimic a `urllib.addinfourl`.\n\n ...what? Basically, expose the parsed HTTP headers from the server response\n the way `cookielib` expects to see them.\n \"\"\"\n\n def __init__(self, headers):\n \"\"\"Make a MockResponse for `cookielib` to read.\n\n :param headers: a httplib.HTTPMessage or analogous carrying the headers\n \"\"\"\n self._headers = headers\n\n def info(self):\n return self._headers\n\n def getheaders(self, name):\n self._headers.getheaders(name)\n\n\ndef extract_cookies_to_jar(jar, request, response):\n \"\"\"Extract the cookies from the response into a CookieJar.\n\n :param jar: cookielib.CookieJar (not necessarily a RequestsCookieJar)\n :param request: our own requests.Request object\n :param response: urllib3.HTTPResponse object\n \"\"\"\n if not (hasattr(response, '_original_response') and\n response._original_response):\n return\n # the _original_response field is the wrapped httplib.HTTPResponse object,\n req = MockRequest(request)\n # pull out the HTTPMessage with the headers and put it in the mock:\n res = MockResponse(response._original_response.msg)\n jar.extract_cookies(res, req)\n\n\ndef get_cookie_header(jar, request):\n \"\"\"Produce an appropriate Cookie header string to be sent with `request`, or None.\"\"\"\n r = MockRequest(request)\n jar.add_cookie_header(r)\n return r.get_new_headers().get('Cookie')\n\n\ndef remove_cookie_by_name(cookiejar, name, domain=None, path=None):\n \"\"\"Unsets a cookie by name, by default over all domains and paths.\n\n Wraps CookieJar.clear(), is O(n).\n \"\"\"\n clearables = []\n for cookie in cookiejar:\n if cookie.name == name:\n if domain is None or domain == cookie.domain:\n if path is None or path == cookie.path:\n clearables.append((cookie.domain, cookie.path, cookie.name))\n\n for domain, path, name in clearables:\n cookiejar.clear(domain, path, name)\n\n\nclass CookieConflictError(RuntimeError):\n \"\"\"There are two cookies that meet the criteria specified in the cookie jar.\n Use .get and .set and include domain and path args in order to be more specific.\"\"\"\n\n\nclass RequestsCookieJar(cookielib.CookieJar, collections.MutableMapping):\n \"\"\"Compatibility class; is a cookielib.CookieJar, but exposes a dict interface.\n\n This is the CookieJar we create by default for requests and sessions that\n don't specify one, since some clients may expect response.cookies and\n session.cookies to support dict operations.\n\n Don't use the dict interface internally; it's just for compatibility with\n with external client code. All `requests` code should work out of the box\n with externally provided instances of CookieJar, e.g., LWPCookieJar and\n FileCookieJar.\n\n Caution: dictionary operations that are normally O(1) may be O(n).\n\n Unlike a regular CookieJar, this class is pickleable.\n \"\"\"\n\n def get(self, name, default=None, domain=None, path=None):\n \"\"\"Dict-like get() that also supports optional domain and path args in\n order to resolve naming collisions from using one cookie jar over\n multiple domains. Caution: operation is O(n), not O(1).\"\"\"\n try:\n return self._find_no_duplicates(name, domain, path)\n except KeyError:\n return default\n\n def set(self, name, value, **kwargs):\n \"\"\"Dict-like set() that also supports optional domain and path args in\n order to resolve naming collisions from using one cookie jar over\n multiple domains.\"\"\"\n # support client code that unsets cookies by assignment of a None value:\n if value is None:\n remove_cookie_by_name(self, name, domain=kwargs.get('domain'), path=kwargs.get('path'))\n return\n\n if isinstance(value, Morsel):\n c = morsel_to_cookie(value)\n else:\n c = create_cookie(name, value, **kwargs)\n self.set_cookie(c)\n return c\n\n def keys(self):\n \"\"\"Dict-like keys() that returns a list of names of cookies from the jar.\n See values() and items().\"\"\"\n keys = []\n for cookie in iter(self):\n keys.append(cookie.name)\n return keys\n\n def values(self):\n \"\"\"Dict-like values() that returns a list of values of cookies from the jar.\n See keys() and items().\"\"\"\n values = []\n for cookie in iter(self):\n values.append(cookie.value)\n return values\n\n def items(self):\n \"\"\"Dict-like items() that returns a list of name-value tuples from the jar.\n See keys() and values(). Allows client-code to call \"dict(RequestsCookieJar)\n and get a vanilla python dict of key value pairs.\"\"\"\n items = []\n for cookie in iter(self):\n items.append((cookie.name, cookie.value))\n return items\n\n def list_domains(self):\n \"\"\"Utility method to list all the domains in the jar.\"\"\"\n domains = []\n for cookie in iter(self):\n if cookie.domain not in domains:\n domains.append(cookie.domain)\n return domains\n\n def list_paths(self):\n \"\"\"Utility method to list all the paths in the jar.\"\"\"\n paths = []\n for cookie in iter(self):\n if cookie.path not in paths:\n paths.append(cookie.path)\n return paths\n\n def multiple_domains(self):\n \"\"\"Returns True if there are multiple domains in the jar.\n Returns False otherwise.\"\"\"\n domains = []\n for cookie in iter(self):\n if cookie.domain is not None and cookie.domain in domains:\n return True\n domains.append(cookie.domain)\n return False # there is only one domain in jar\n\n def get_dict(self, domain=None, path=None):\n \"\"\"Takes as an argument an optional domain and path and returns a plain old\n Python dict of name-value pairs of cookies that meet the requirements.\"\"\"\n dictionary = {}\n for cookie in iter(self):\n if (domain is None or cookie.domain == domain) and (path is None\n or cookie.path == path):\n dictionary[cookie.name] = cookie.value\n return dictionary\n\n def __getitem__(self, name):\n \"\"\"Dict-like __getitem__() for compatibility with client code. Throws exception\n if there are more than one cookie with name. In that case, use the more\n explicit get() method instead. Caution: operation is O(n), not O(1).\"\"\"\n\n return self._find_no_duplicates(name)\n\n def __setitem__(self, name, value):\n \"\"\"Dict-like __setitem__ for compatibility with client code. Throws exception\n if there is already a cookie of that name in the jar. In that case, use the more\n explicit set() method instead.\"\"\"\n\n self.set(name, value)\n\n def __delitem__(self, name):\n \"\"\"Deletes a cookie given a name. Wraps cookielib.CookieJar's remove_cookie_by_name().\"\"\"\n remove_cookie_by_name(self, name)\n\n def set_cookie(self, cookie, *args, **kwargs):\n if cookie.value.startswith('\"') and cookie.value.endswith('\"'):\n cookie.value = cookie.value.replace('\\\\\"', '')\n return super(RequestsCookieJar, self).set_cookie(cookie, *args, **kwargs)\n\n def update(self, other):\n \"\"\"Updates this jar with cookies from another CookieJar or dict-like\"\"\"\n if isinstance(other, cookielib.CookieJar):\n for cookie in other:\n self.set_cookie(cookie)\n else:\n super(RequestsCookieJar, self).update(other)\n\n def _find(self, name, domain=None, path=None):\n \"\"\"Requests uses this method internally to get cookie values. Takes as args name\n and optional domain and path. Returns a cookie.value. If there are conflicting cookies,\n _find arbitrarily chooses one. See _find_no_duplicates if you want an exception thrown\n if there are conflicting cookies.\"\"\"\n for cookie in iter(self):\n if cookie.name == name:\n if domain is None or cookie.domain == domain:\n if path is None or cookie.path == path:\n return cookie.value\n\n raise KeyError('name=%r, domain=%r, path=%r' % (name, domain, path))\n\n def _find_no_duplicates(self, name, domain=None, path=None):\n \"\"\"__get_item__ and get call _find_no_duplicates -- never used in Requests internally.\n Takes as args name and optional domain and path. Returns a cookie.value.\n Throws KeyError if cookie is not found and CookieConflictError if there are\n multiple cookies that match name and optionally domain and path.\"\"\"\n toReturn = None\n for cookie in iter(self):\n if cookie.name == name:\n if domain is None or cookie.domain == domain:\n if path is None or cookie.path == path:\n if toReturn is not None: # if there are multiple cookies that meet passed in criteria\n raise CookieConflictError('There are multiple cookies with name, %r' % (name))\n toReturn = cookie.value # we will eventually return this as long as no cookie conflict\n\n if toReturn:\n return toReturn\n raise KeyError('name=%r, domain=%r, path=%r' % (name, domain, path))\n\n def __getstate__(self):\n \"\"\"Unlike a normal CookieJar, this class is pickleable.\"\"\"\n state = self.__dict__.copy()\n # remove the unpickleable RLock object\n state.pop('_cookies_lock')\n return state\n\n def __setstate__(self, state):\n \"\"\"Unlike a normal CookieJar, this class is pickleable.\"\"\"\n self.__dict__.update(state)\n if '_cookies_lock' not in self.__dict__:\n self._cookies_lock = threading.RLock()\n\n def copy(self):\n \"\"\"Return a copy of this RequestsCookieJar.\"\"\"\n new_cj = RequestsCookieJar()\n new_cj.update(self)\n return new_cj\n\n\ndef create_cookie(name, value, **kwargs):\n \"\"\"Make a cookie from underspecified parameters.\n\n By default, the pair of `name` and `value` will be set for the domain ''\n and sent on every request (this is sometimes called a \"supercookie\").\n \"\"\"\n result = dict(\n version=0,\n name=name,\n value=value,\n port=None,\n domain='',\n path='/',\n secure=False,\n expires=None,\n discard=True,\n comment=None,\n comment_url=None,\n rest={'HttpOnly': None},\n rfc2109=False,)\n\n badargs = set(kwargs) - set(result)\n if badargs:\n err = 'create_cookie() got unexpected keyword arguments: %s'\n raise TypeError(err % list(badargs))\n\n result.update(kwargs)\n result['port_specified'] = bool(result['port'])\n result['domain_specified'] = bool(result['domain'])\n result['domain_initial_dot'] = result['domain'].startswith('.')\n result['path_specified'] = bool(result['path'])\n\n return cookielib.Cookie(**result)\n\n\ndef morsel_to_cookie(morsel):\n \"\"\"Convert a Morsel object into a Cookie containing the one k/v pair.\"\"\"\n expires = None\n if morsel[\"max-age\"]:\n expires = time.time() + morsel[\"max-age\"]\n elif morsel['expires']:\n expires = morsel['expires']\n if type(expires) == type(\"\"):\n time_template = \"%a, %d-%b-%Y %H:%M:%S GMT\"\n expires = time.mktime(time.strptime(expires, time_template))\n c = create_cookie(\n name=morsel.key,\n value=morsel.value,\n version=morsel['version'] or 0,\n port=None,\n domain=morsel['domain'],\n path=morsel['path'],\n secure=bool(morsel['secure']),\n expires=expires,\n discard=False,\n comment=morsel['comment'],\n comment_url=bool(morsel['comment']),\n rest={'HttpOnly': morsel['httponly']},\n rfc2109=False,)\n return c\n\n\ndef cookiejar_from_dict(cookie_dict, cookiejar=None, overwrite=True):\n \"\"\"Returns a CookieJar from a key/value dictionary.\n\n :param cookie_dict: Dict of key/values to insert into CookieJar.\n :param cookiejar: (optional) A cookiejar to add the cookies to.\n :param overwrite: (optional) If False, will not replace cookies\n already in the jar with new ones.\n \"\"\"\n if cookiejar is None:\n cookiejar = RequestsCookieJar()\n\n if cookie_dict is not None:\n names_from_jar = [cookie.name for cookie in cookiejar]\n for name in cookie_dict:\n if overwrite or (name not in names_from_jar):\n cookiejar.set_cookie(create_cookie(name, cookie_dict[name]))\n\n return cookiejar\n"},{"col":0,"comment":"","endLoc":7,"header":"connectionpool.py#","id":1359,"name":"","nodeType":"Function","startLoc":7,"text":"try: # Python 3\n from queue import LifoQueue, Empty, Full\nexcept ImportError:\n from Queue import LifoQueue, Empty, Full\n import Queue as _ # Platform-specific: Windows\n\nxrange = six.moves.xrange\n\nlog = logging.getLogger(__name__)\n\n_Default = object()\n\nport_by_scheme = {\n 'http': 80,\n 'https': 443,\n}\n\n_blocking_errnos = set([errno.EAGAIN, errno.EWOULDBLOCK])"},{"className":"Morsel","col":0,"comment":"null","endLoc":48,"id":1360,"nodeType":"Class","startLoc":25,"text":"class Morsel(dict[str, Any], Generic[_T]):\n @property\n def value(self) -> str: ...\n @property\n def coded_value(self) -> _T: ...\n @property\n def key(self) -> str: ...\n def __init__(self) -> None: ...\n def set(self, key: str, val: str, coded_val: _T) -> None: ...\n def setdefault(self, key: str, val: str | None = None) -> str: ...\n # The dict update can also get a keywords argument so this is incompatible\n @overload # type: ignore[override]\n def update(self, values: Mapping[str, str]) -> None: ...\n @overload\n def update(self, values: Iterable[tuple[str, str]]) -> None: ...\n def isReservedKey(self, K: str) -> bool: ...\n def output(self, attrs: list[str] | None = None, header: str = \"Set-Cookie:\") -> str: ...\n __str__ = output\n def js_output(self, attrs: list[str] | None = None) -> str: ...\n def OutputString(self, attrs: list[str] | None = None) -> str: ...\n def __eq__(self, morsel: object) -> bool: ...\n def __setitem__(self, K: str, V: Any) -> None: ...\n if sys.version_info >= (3, 9):\n def __class_getitem__(cls, item: Any, /) -> GenericAlias: ..."},{"col":4,"comment":"Prepares the given HTTP headers.","endLoc":379,"header":"def prepare_headers(self, headers)","id":1361,"name":"prepare_headers","nodeType":"Function","startLoc":373,"text":"def prepare_headers(self, headers):\n \"\"\"Prepares the given HTTP headers.\"\"\"\n\n if headers:\n self.headers = CaseInsensitiveDict((to_native_string(name), value) for name, value in headers.items())\n else:\n self.headers = CaseInsensitiveDict()"},{"col":4,"comment":"null","endLoc":27,"header":"@property\n def value(self) -> str","id":1362,"name":"value","nodeType":"Function","startLoc":26,"text":"@property\n def value(self) -> str: ..."},{"col":4,"comment":"null","endLoc":29,"header":"@property\n def coded_value(self) -> _T","id":1363,"name":"coded_value","nodeType":"Function","startLoc":28,"text":"@property\n def coded_value(self) -> _T: ..."},{"col":4,"comment":"null","endLoc":31,"header":"@property\n def key(self) -> str","id":1364,"name":"key","nodeType":"Function","startLoc":30,"text":"@property\n def key(self) -> str: ..."},{"col":4,"comment":"null","endLoc":32,"header":"def __init__(self) -> None","id":1365,"name":"__init__","nodeType":"Function","startLoc":32,"text":"def __init__(self) -> None: ..."},{"col":4,"comment":"null","endLoc":33,"header":"def set(self, key: str, val: str, coded_val: _T) -> None","id":1366,"name":"set","nodeType":"Function","startLoc":33,"text":"def set(self, key: str, val: str, coded_val: _T) -> None: ..."},{"col":4,"comment":"null","endLoc":34,"header":"def setdefault(self, key: str, val: str | None = None) -> str","id":1367,"name":"setdefault","nodeType":"Function","startLoc":34,"text":"def setdefault(self, key: str, val: str | None = None) -> str: ..."},{"col":4,"comment":"null","endLoc":37,"header":"@overload # type: ignore[override]\n def update(self, values: Mapping[str, str]) -> None","id":1368,"name":"update","nodeType":"Function","startLoc":36,"text":"@overload # type: ignore[override]\n def update(self, values: Mapping[str, str]) -> None: ..."},{"col":4,"comment":"null","endLoc":39,"header":"@overload\n def update(self, values: Iterable[tuple[str, str]]) -> None","id":1369,"name":"update","nodeType":"Function","startLoc":38,"text":"@overload\n def update(self, values: Iterable[tuple[str, str]]) -> None: ..."},{"col":4,"comment":"null","endLoc":40,"header":"def isReservedKey(self, K: str) -> bool","id":1370,"name":"isReservedKey","nodeType":"Function","startLoc":40,"text":"def isReservedKey(self, K: str) -> bool: ..."},{"col":4,"comment":"null","endLoc":41,"header":"def output(self, attrs: list[str] | None = None, header: str = \"Set-Cookie:\") -> str","id":1371,"name":"output","nodeType":"Function","startLoc":41,"text":"def output(self, attrs: list[str] | None = None, header: str = \"Set-Cookie:\") -> str: ..."},{"col":4,"comment":"null","endLoc":43,"header":"def js_output(self, attrs: list[str] | None = None) -> str","id":1372,"name":"js_output","nodeType":"Function","startLoc":43,"text":"def js_output(self, attrs: list[str] | None = None) -> str: ..."},{"col":4,"comment":"null","endLoc":44,"header":"def OutputString(self, attrs: list[str] | None = None) -> str","id":1373,"name":"OutputString","nodeType":"Function","startLoc":44,"text":"def OutputString(self, attrs: list[str] | None = None) -> str: ..."},{"col":4,"comment":"null","endLoc":45,"header":"def __eq__(self, morsel: object) -> bool","id":1374,"name":"__eq__","nodeType":"Function","startLoc":45,"text":"def __eq__(self, morsel: object) -> bool: ..."},{"col":4,"comment":"null","endLoc":46,"header":"def __setitem__(self, K: str, V: Any) -> None","id":1375,"name":"__setitem__","nodeType":"Function","startLoc":46,"text":"def __setitem__(self, K: str, V: Any) -> None: ..."},{"col":8,"comment":"null","endLoc":48,"header":"def __class_getitem__(cls, item: Any, /) -> GenericAlias","id":1376,"name":"__class_getitem__","nodeType":"Function","startLoc":48,"text":"def __class_getitem__(cls, item: Any, /) -> GenericAlias: ..."},{"attributeType":"function","col":4,"comment":"null","endLoc":42,"id":1377,"name":"__str__","nodeType":"Attribute","startLoc":42,"text":"__str__"},{"fileName":"__init__.py","filePath":"requests/packages/urllib3","id":1378,"nodeType":"File","text":"# urllib3/__init__.py\n# Copyright 2008-2013 Andrey Petrov and contributors (see CONTRIBUTORS.txt)\n#\n# This module is part of urllib3 and is released under\n# the MIT License: http://www.opensource.org/licenses/mit-license.php\n\n\"\"\"\nurllib3 - Thread-safe connection pooling and re-using.\n\"\"\"\n\n__author__ = 'Andrey Petrov (andrey.petrov@shazow.net)'\n__license__ = 'MIT'\n__version__ = 'dev'\n\n\nfrom .connectionpool import (\n HTTPConnectionPool,\n HTTPSConnectionPool,\n connection_from_url\n)\n\nfrom . import exceptions\nfrom .filepost import encode_multipart_formdata\nfrom .poolmanager import PoolManager, ProxyManager, proxy_from_url\nfrom .response import HTTPResponse\nfrom .util import make_headers, get_host, Timeout\n\n\n# Set default logging handler to avoid \"No handler found\" warnings.\nimport logging\ntry: # Python 2.7+\n from logging import NullHandler\nexcept ImportError:\n class NullHandler(logging.Handler):\n def emit(self, record):\n pass\n\nlogging.getLogger(__name__).addHandler(NullHandler())\n\ndef add_stderr_logger(level=logging.DEBUG):\n \"\"\"\n Helper for quickly adding a StreamHandler to the logger. Useful for\n debugging.\n\n Returns the handler after adding it.\n \"\"\"\n # This method needs to be in this __init__.py to get the __name__ correct\n # even if urllib3 is vendored within another package.\n logger = logging.getLogger(__name__)\n handler = logging.StreamHandler()\n handler.setFormatter(logging.Formatter('%(asctime)s %(levelname)s %(message)s'))\n logger.addHandler(handler)\n logger.setLevel(level)\n logger.debug('Added an stderr logging handler to logger: %s' % __name__)\n return handler\n\n# ... Clean up.\ndel NullHandler\n"},{"className":"MockRequest","col":0,"comment":"Wraps a `requests.Request` to mimic a `urllib2.Request`.\n\n The code in `cookielib.CookieJar` expects this interface in order to correctly\n manage cookie policies, i.e., determine whether a cookie can be set, given the\n domains of the request and the cookie.\n\n The original request object is read-only. The client is responsible for collecting\n the new headers via `get_new_headers()` and interpreting them appropriately. You\n probably want `get_cookie_header`, defined below.\n ","endLoc":79,"id":1379,"nodeType":"Class","startLoc":21,"text":"class MockRequest(object):\n \"\"\"Wraps a `requests.Request` to mimic a `urllib2.Request`.\n\n The code in `cookielib.CookieJar` expects this interface in order to correctly\n manage cookie policies, i.e., determine whether a cookie can be set, given the\n domains of the request and the cookie.\n\n The original request object is read-only. The client is responsible for collecting\n the new headers via `get_new_headers()` and interpreting them appropriately. You\n probably want `get_cookie_header`, defined below.\n \"\"\"\n\n def __init__(self, request):\n self._r = request\n self._new_headers = {}\n self.type = urlparse(self._r.url).scheme\n\n def get_type(self):\n return self.type\n\n def get_host(self):\n return urlparse(self._r.url).netloc\n\n def get_origin_req_host(self):\n return self.get_host()\n\n def get_full_url(self):\n return self._r.url\n\n def is_unverifiable(self):\n return True\n\n def has_header(self, name):\n return name in self._r.headers or name in self._new_headers\n\n def get_header(self, name, default=None):\n return self._r.headers.get(name, self._new_headers.get(name, default))\n\n def add_header(self, key, val):\n \"\"\"cookielib has no legitimate use for this method; add it back if you find one.\"\"\"\n raise NotImplementedError(\"Cookie headers should be added with add_unredirected_header()\")\n\n def add_unredirected_header(self, name, value):\n self._new_headers[name] = value\n\n def get_new_headers(self):\n return self._new_headers\n\n @property\n def unverifiable(self):\n return self.is_unverifiable()\n\n @property\n def origin_req_host(self):\n return self.get_origin_req_host()\n\n @property\n def host(self):\n return self.get_host()"},{"col":4,"comment":"null","endLoc":39,"header":"def get_type(self)","id":1380,"name":"get_type","nodeType":"Function","startLoc":38,"text":"def get_type(self):\n return self.type"},{"col":4,"comment":"null","endLoc":42,"header":"def get_host(self)","id":1381,"name":"get_host","nodeType":"Function","startLoc":41,"text":"def get_host(self):\n return urlparse(self._r.url).netloc"},{"col":4,"comment":"null","endLoc":45,"header":"def get_origin_req_host(self)","id":1382,"name":"get_origin_req_host","nodeType":"Function","startLoc":44,"text":"def get_origin_req_host(self):\n return self.get_host()"},{"col":4,"comment":"Prepares the given HTTP cookie data.","endLoc":479,"header":"def prepare_cookies(self, cookies)","id":1383,"name":"prepare_cookies","nodeType":"Function","startLoc":468,"text":"def prepare_cookies(self, cookies):\n \"\"\"Prepares the given HTTP cookie data.\"\"\"\n\n if isinstance(cookies, cookielib.CookieJar):\n cookies = cookies\n else:\n cookies = cookiejar_from_dict(cookies)\n\n if 'cookie' not in self.headers:\n cookie_header = get_cookie_header(cookies, self)\n if cookie_header is not None:\n self.headers['Cookie'] = cookie_header"},{"col":4,"comment":"null","endLoc":160,"header":"def __init__(self)","id":1384,"name":"__init__","nodeType":"Function","startLoc":156,"text":"def __init__(self):\n CharSetProber.__init__(self)\n self._mLogicalProber = None\n self._mVisualProber = None\n self.reset()"},{"className":"NullHandler","col":0,"comment":"null","endLoc":651,"id":1385,"nodeType":"Class","startLoc":651,"text":"class NullHandler(Handler): ..."},{"className":"Handler","col":0,"comment":"null","endLoc":266,"id":1386,"nodeType":"Class","startLoc":248,"text":"class Handler(Filterer):\n level: int # undocumented\n formatter: Formatter | None # undocumented\n lock: threading.Lock | None # undocumented\n name: str | None # undocumented\n def __init__(self, level: _Level = 0) -> None: ...\n def get_name(self) -> str: ... # undocumented\n def set_name(self, name: str) -> None: ... # undocumented\n def createLock(self) -> None: ...\n def acquire(self) -> None: ...\n def release(self) -> None: ...\n def setLevel(self, level: _Level) -> None: ...\n def setFormatter(self, fmt: Formatter | None) -> None: ...\n def flush(self) -> None: ...\n def close(self) -> None: ...\n def handle(self, record: LogRecord) -> bool: ...\n def handleError(self, record: LogRecord) -> None: ...\n def format(self, record: LogRecord) -> str: ...\n def emit(self, record: LogRecord) -> None: ..."},{"className":"Filterer","col":0,"comment":"null","endLoc":102,"id":1387,"nodeType":"Class","startLoc":95,"text":"class Filterer:\n filters: list[_FilterType]\n def addFilter(self, filter: _FilterType) -> None: ...\n def removeFilter(self, filter: _FilterType) -> None: ...\n if sys.version_info >= (3, 12):\n def filter(self, record: LogRecord) -> bool | LogRecord: ...\n else:\n def filter(self, record: LogRecord) -> bool: ..."},{"col":4,"comment":"null","endLoc":97,"header":"def addFilter(self, filter: _FilterType) -> None","id":1388,"name":"addFilter","nodeType":"Function","startLoc":97,"text":"def addFilter(self, filter: _FilterType) -> None: ..."},{"col":4,"comment":"null","endLoc":98,"header":"def removeFilter(self, filter: _FilterType) -> None","id":1389,"name":"removeFilter","nodeType":"Function","startLoc":98,"text":"def removeFilter(self, filter: _FilterType) -> None: ..."},{"col":8,"comment":"null","endLoc":102,"header":"def filter(self, record: LogRecord) -> bool","id":1390,"name":"filter","nodeType":"Function","startLoc":102,"text":"def filter(self, record: LogRecord) -> bool: ..."},{"attributeType":"list","col":4,"comment":"null","endLoc":96,"id":1391,"name":"filters","nodeType":"Attribute","startLoc":96,"text":"filters"},{"attributeType":"null","col":0,"comment":"null","endLoc":17,"id":1392,"name":"writer","nodeType":"Attribute","startLoc":17,"text":"writer"},{"col":4,"comment":"Prepares the given HTTP body data.","endLoc":432,"header":"def prepare_body(self, data, files)","id":1393,"name":"prepare_body","nodeType":"Function","startLoc":381,"text":"def prepare_body(self, data, files):\n \"\"\"Prepares the given HTTP body data.\"\"\"\n\n # Check if file, fo, generator, iterator.\n # If not, run through normal process.\n\n # Nottin' on you.\n body = None\n content_type = None\n length = None\n\n is_stream = all([\n hasattr(data, '__iter__'),\n not isinstance(data, basestring),\n not isinstance(data, list),\n not isinstance(data, dict)\n ])\n\n try:\n length = super_len(data)\n except (TypeError, AttributeError, UnsupportedOperation):\n length = None\n\n if is_stream:\n body = data\n\n if files:\n raise NotImplementedError('Streamed bodies and files are mutually exclusive.')\n\n if length is not None:\n self.headers['Content-Length'] = builtin_str(length)\n else:\n self.headers['Transfer-Encoding'] = 'chunked'\n else:\n # Multi-part file uploads.\n if files:\n (body, content_type) = self._encode_files(files, data)\n else:\n if data:\n body = self._encode_params(data)\n if isinstance(data, str) or isinstance(data, builtin_str) or hasattr(data, 'read'):\n content_type = None\n else:\n content_type = 'application/x-www-form-urlencoded'\n\n self.prepare_content_length(body)\n\n # Add content-type if it wasn't explicitly provided.\n if (content_type) and (not 'content-type' in self.headers):\n self.headers['Content-Type'] = content_type\n\n self.body = body"},{"col":4,"comment":"null","endLoc":170,"header":"def reset(self)","id":1395,"name":"reset","nodeType":"Function","startLoc":162,"text":"def reset(self):\n self._mFinalCharLogicalScore = 0\n self._mFinalCharVisualScore = 0\n # The two last characters seen in the previous buffer,\n # mPrev and mBeforePrev are initialized to space in order to simulate\n # a word delimiter at the beginning of the data\n self._mPrev = ' '\n self._mBeforePrev = ' '\n # These probers are owned by the group prober."},{"col":4,"comment":"null","endLoc":444,"header":"def prepare_content_length(self, body)","id":1396,"name":"prepare_content_length","nodeType":"Function","startLoc":434,"text":"def prepare_content_length(self, body):\n if hasattr(body, 'seek') and hasattr(body, 'tell'):\n body.seek(0, 2)\n self.headers['Content-Length'] = builtin_str(body.tell())\n body.seek(0, 0)\n elif body is not None:\n l = super_len(body)\n if l:\n self.headers['Content-Length'] = builtin_str(l)\n elif self.method not in ('GET', 'HEAD'):\n self.headers['Content-Length'] = '0'"},{"attributeType":"null","col":8,"comment":"null","endLoc":45,"id":1397,"name":"_mProbers","nodeType":"Attribute","startLoc":45,"text":"self._mProbers"},{"className":"UniversalDetector","col":0,"comment":"null","endLoc":168,"id":1398,"nodeType":"Class","startLoc":44,"text":"class UniversalDetector:\n def __init__(self):\n self._highBitDetector = re.compile(b'[\\x80-\\xFF]')\n self._escDetector = re.compile(b'(\\033|~{)')\n self._mEscCharSetProber = None\n self._mCharSetProbers = []\n self.reset()\n\n def reset(self):\n self.result = {'encoding': None, 'confidence': 0.0}\n self.done = False\n self._mStart = True\n self._mGotData = False\n self._mInputState = ePureAscii\n self._mLastChar = b''\n if self._mEscCharSetProber:\n self._mEscCharSetProber.reset()\n for prober in self._mCharSetProbers:\n prober.reset()\n\n def feed(self, aBuf):\n if self.done:\n return\n\n aLen = len(aBuf)\n if not aLen:\n return\n\n if not self._mGotData:\n # If the data starts with BOM, we know it is UTF\n if aBuf[:3] == codecs.BOM:\n # EF BB BF UTF-8 with BOM\n self.result = {'encoding': \"UTF-8\", 'confidence': 1.0}\n elif aBuf[:4] in (codecs.BOM_UTF32_LE, codecs.BOM_UTF32_BE):\n # FF FE 00 00 UTF-32, little-endian BOM\n # 00 00 FE FF UTF-32, big-endian BOM\n self.result = {'encoding': \"UTF-32\", 'confidence': 1.0}\n elif aBuf[:4] == b'\\xFE\\xFF\\x00\\x00':\n # FE FF 00 00 UCS-4, unusual octet order BOM (3412)\n self.result = {\n 'encoding': \"X-ISO-10646-UCS-4-3412\",\n 'confidence': 1.0\n }\n elif aBuf[:4] == b'\\x00\\x00\\xFF\\xFE':\n # 00 00 FF FE UCS-4, unusual octet order BOM (2143)\n self.result = {\n 'encoding': \"X-ISO-10646-UCS-4-2143\",\n 'confidence': 1.0\n }\n elif aBuf[:2] == codecs.BOM_LE or aBuf[:2] == codecs.BOM_BE:\n # FF FE UTF-16, little endian BOM\n # FE FF UTF-16, big endian BOM\n self.result = {'encoding': \"UTF-16\", 'confidence': 1.0}\n\n self._mGotData = True\n if self.result['encoding'] and (self.result['confidence'] > 0.0):\n self.done = True\n return\n\n if self._mInputState == ePureAscii:\n if self._highBitDetector.search(aBuf):\n self._mInputState = eHighbyte\n elif ((self._mInputState == ePureAscii) and\n self._escDetector.search(self._mLastChar + aBuf)):\n self._mInputState = eEscAscii\n\n self._mLastChar = aBuf[-1:]\n\n if self._mInputState == eEscAscii:\n if not self._mEscCharSetProber:\n self._mEscCharSetProber = EscCharSetProber()\n if self._mEscCharSetProber.feed(aBuf) == constants.eFoundIt:\n self.result = {\n 'encoding': self._mEscCharSetProber.get_charset_name(),\n 'confidence': self._mEscCharSetProber.get_confidence()\n }\n self.done = True\n elif self._mInputState == eHighbyte:\n if not self._mCharSetProbers:\n self._mCharSetProbers = [MBCSGroupProber(), SBCSGroupProber(),\n Latin1Prober()]\n for prober in self._mCharSetProbers:\n if prober.feed(aBuf) == constants.eFoundIt:\n self.result = {'encoding': prober.get_charset_name(),\n 'confidence': prober.get_confidence()}\n self.done = True\n break\n\n def close(self):\n if self.done:\n return\n if not self._mGotData:\n if constants._debug:\n sys.stderr.write('no data received!\\n')\n return\n self.done = True\n\n if self._mInputState == ePureAscii:\n self.result = {'encoding': 'ascii', 'confidence': 1.0}\n return self.result\n\n if self._mInputState == eHighbyte:\n proberConfidence = None\n maxProberConfidence = 0.0\n maxProber = None\n for prober in self._mCharSetProbers:\n if not prober:\n continue\n proberConfidence = prober.get_confidence()\n if proberConfidence > maxProberConfidence:\n maxProberConfidence = proberConfidence\n maxProber = prober\n if maxProber and (maxProberConfidence > MINIMUM_THRESHOLD):\n self.result = {'encoding': maxProber.get_charset_name(),\n 'confidence': maxProber.get_confidence()}\n return self.result\n\n if constants._debug:\n sys.stderr.write('no probers hit minimum threshhold\\n')\n for prober in self._mCharSetProbers[0].mProbers:\n if not prober:\n continue\n sys.stderr.write('%s confidence = %s\\n' %\n (prober.get_charset_name(),\n prober.get_confidence()))"},{"col":4,"comment":"null","endLoc":130,"header":"def feed(self, aBuf)","id":1399,"name":"feed","nodeType":"Function","startLoc":64,"text":"def feed(self, aBuf):\n if self.done:\n return\n\n aLen = len(aBuf)\n if not aLen:\n return\n\n if not self._mGotData:\n # If the data starts with BOM, we know it is UTF\n if aBuf[:3] == codecs.BOM:\n # EF BB BF UTF-8 with BOM\n self.result = {'encoding': \"UTF-8\", 'confidence': 1.0}\n elif aBuf[:4] in (codecs.BOM_UTF32_LE, codecs.BOM_UTF32_BE):\n # FF FE 00 00 UTF-32, little-endian BOM\n # 00 00 FE FF UTF-32, big-endian BOM\n self.result = {'encoding': \"UTF-32\", 'confidence': 1.0}\n elif aBuf[:4] == b'\\xFE\\xFF\\x00\\x00':\n # FE FF 00 00 UCS-4, unusual octet order BOM (3412)\n self.result = {\n 'encoding': \"X-ISO-10646-UCS-4-3412\",\n 'confidence': 1.0\n }\n elif aBuf[:4] == b'\\x00\\x00\\xFF\\xFE':\n # 00 00 FF FE UCS-4, unusual octet order BOM (2143)\n self.result = {\n 'encoding': \"X-ISO-10646-UCS-4-2143\",\n 'confidence': 1.0\n }\n elif aBuf[:2] == codecs.BOM_LE or aBuf[:2] == codecs.BOM_BE:\n # FF FE UTF-16, little endian BOM\n # FE FF UTF-16, big endian BOM\n self.result = {'encoding': \"UTF-16\", 'confidence': 1.0}\n\n self._mGotData = True\n if self.result['encoding'] and (self.result['confidence'] > 0.0):\n self.done = True\n return\n\n if self._mInputState == ePureAscii:\n if self._highBitDetector.search(aBuf):\n self._mInputState = eHighbyte\n elif ((self._mInputState == ePureAscii) and\n self._escDetector.search(self._mLastChar + aBuf)):\n self._mInputState = eEscAscii\n\n self._mLastChar = aBuf[-1:]\n\n if self._mInputState == eEscAscii:\n if not self._mEscCharSetProber:\n self._mEscCharSetProber = EscCharSetProber()\n if self._mEscCharSetProber.feed(aBuf) == constants.eFoundIt:\n self.result = {\n 'encoding': self._mEscCharSetProber.get_charset_name(),\n 'confidence': self._mEscCharSetProber.get_confidence()\n }\n self.done = True\n elif self._mInputState == eHighbyte:\n if not self._mCharSetProbers:\n self._mCharSetProbers = [MBCSGroupProber(), SBCSGroupProber(),\n Latin1Prober()]\n for prober in self._mCharSetProbers:\n if prober.feed(aBuf) == constants.eFoundIt:\n self.result = {'encoding': prober.get_charset_name(),\n 'confidence': prober.get_confidence()}\n self.done = True\n break"},{"col":0,"comment":"","endLoc":41,"header":"euckrfreq.py#","id":1400,"name":"","nodeType":"Function","startLoc":41,"text":"EUCKR_TYPICAL_DISTRIBUTION_RATIO = 6.0\n\nEUCKR_TABLE_SIZE = 2352\n\nEUCKRCharToFreqOrder = ( \\\n 13, 130, 120,1396, 481,1719,1720, 328, 609, 212,1721, 707, 400, 299,1722, 87,\n1397,1723, 104, 536,1117,1203,1724,1267, 685,1268, 508,1725,1726,1727,1728,1398,\n1399,1729,1730,1731, 141, 621, 326,1057, 368,1732, 267, 488, 20,1733,1269,1734,\n 945,1400,1735, 47, 904,1270,1736,1737, 773, 248,1738, 409, 313, 786, 429,1739,\n 116, 987, 813,1401, 683, 75,1204, 145,1740,1741,1742,1743, 16, 847, 667, 622,\n 708,1744,1745,1746, 966, 787, 304, 129,1747, 60, 820, 123, 676,1748,1749,1750,\n1751, 617,1752, 626,1753,1754,1755,1756, 653,1757,1758,1759,1760,1761,1762, 856,\n 344,1763,1764,1765,1766, 89, 401, 418, 806, 905, 848,1767,1768,1769, 946,1205,\n 709,1770,1118,1771, 241,1772,1773,1774,1271,1775, 569,1776, 999,1777,1778,1779,\n1780, 337, 751,1058, 28, 628, 254,1781, 177, 906, 270, 349, 891,1079,1782, 19,\n1783, 379,1784, 315,1785, 629, 754,1402, 559,1786, 636, 203,1206,1787, 710, 567,\n1788, 935, 814,1789,1790,1207, 766, 528,1791,1792,1208,1793,1794,1795,1796,1797,\n1403,1798,1799, 533,1059,1404,1405,1156,1406, 936, 884,1080,1800, 351,1801,1802,\n1803,1804,1805, 801,1806,1807,1808,1119,1809,1157, 714, 474,1407,1810, 298, 899,\n 885,1811,1120, 802,1158,1812, 892,1813,1814,1408, 659,1815,1816,1121,1817,1818,\n1819,1820,1821,1822, 319,1823, 594, 545,1824, 815, 937,1209,1825,1826, 573,1409,\n1022,1827,1210,1828,1829,1830,1831,1832,1833, 556, 722, 807,1122,1060,1834, 697,\n1835, 900, 557, 715,1836,1410, 540,1411, 752,1159, 294, 597,1211, 976, 803, 770,\n1412,1837,1838, 39, 794,1413, 358,1839, 371, 925,1840, 453, 661, 788, 531, 723,\n 544,1023,1081, 869, 91,1841, 392, 430, 790, 602,1414, 677,1082, 457,1415,1416,\n1842,1843, 475, 327,1024,1417, 795, 121,1844, 733, 403,1418,1845,1846,1847, 300,\n 119, 711,1212, 627,1848,1272, 207,1849,1850, 796,1213, 382,1851, 519,1852,1083,\n 893,1853,1854,1855, 367, 809, 487, 671,1856, 663,1857,1858, 956, 471, 306, 857,\n1859,1860,1160,1084,1861,1862,1863,1864,1865,1061,1866,1867,1868,1869,1870,1871,\n 282, 96, 574,1872, 502,1085,1873,1214,1874, 907,1875,1876, 827, 977,1419,1420,\n1421, 268,1877,1422,1878,1879,1880, 308,1881, 2, 537,1882,1883,1215,1884,1885,\n 127, 791,1886,1273,1423,1887, 34, 336, 404, 643,1888, 571, 654, 894, 840,1889,\n 0, 886,1274, 122, 575, 260, 908, 938,1890,1275, 410, 316,1891,1892, 100,1893,\n1894,1123, 48,1161,1124,1025,1895, 633, 901,1276,1896,1897, 115, 816,1898, 317,\n1899, 694,1900, 909, 734,1424, 572, 866,1425, 691, 85, 524,1010, 543, 394, 841,\n1901,1902,1903,1026,1904,1905,1906,1907,1908,1909, 30, 451, 651, 988, 310,1910,\n1911,1426, 810,1216, 93,1912,1913,1277,1217,1914, 858, 759, 45, 58, 181, 610,\n 269,1915,1916, 131,1062, 551, 443,1000, 821,1427, 957, 895,1086,1917,1918, 375,\n1919, 359,1920, 687,1921, 822,1922, 293,1923,1924, 40, 662, 118, 692, 29, 939,\n 887, 640, 482, 174,1925, 69,1162, 728,1428, 910,1926,1278,1218,1279, 386, 870,\n 217, 854,1163, 823,1927,1928,1929,1930, 834,1931, 78,1932, 859,1933,1063,1934,\n1935,1936,1937, 438,1164, 208, 595,1938,1939,1940,1941,1219,1125,1942, 280, 888,\n1429,1430,1220,1431,1943,1944,1945,1946,1947,1280, 150, 510,1432,1948,1949,1950,\n1951,1952,1953,1954,1011,1087,1955,1433,1043,1956, 881,1957, 614, 958,1064,1065,\n1221,1958, 638,1001, 860, 967, 896,1434, 989, 492, 553,1281,1165,1959,1282,1002,\n1283,1222,1960,1961,1962,1963, 36, 383, 228, 753, 247, 454,1964, 876, 678,1965,\n1966,1284, 126, 464, 490, 835, 136, 672, 529, 940,1088,1435, 473,1967,1968, 467,\n 50, 390, 227, 587, 279, 378, 598, 792, 968, 240, 151, 160, 849, 882,1126,1285,\n 639,1044, 133, 140, 288, 360, 811, 563,1027, 561, 142, 523,1969,1970,1971, 7,\n 103, 296, 439, 407, 506, 634, 990,1972,1973,1974,1975, 645,1976,1977,1978,1979,\n1980,1981, 236,1982,1436,1983,1984,1089, 192, 828, 618, 518,1166, 333,1127,1985,\n 818,1223,1986,1987,1988,1989,1990,1991,1992,1993, 342,1128,1286, 746, 842,1994,\n1995, 560, 223,1287, 98, 8, 189, 650, 978,1288,1996,1437,1997, 17, 345, 250,\n 423, 277, 234, 512, 226, 97, 289, 42, 167,1998, 201,1999,2000, 843, 836, 824,\n 532, 338, 783,1090, 182, 576, 436,1438,1439, 527, 500,2001, 947, 889,2002,2003,\n2004,2005, 262, 600, 314, 447,2006, 547,2007, 693, 738,1129,2008, 71,1440, 745,\n 619, 688,2009, 829,2010,2011, 147,2012, 33, 948,2013,2014, 74, 224,2015, 61,\n 191, 918, 399, 637,2016,1028,1130, 257, 902,2017,2018,2019,2020,2021,2022,2023,\n2024,2025,2026, 837,2027,2028,2029,2030, 179, 874, 591, 52, 724, 246,2031,2032,\n2033,2034,1167, 969,2035,1289, 630, 605, 911,1091,1168,2036,2037,2038,1441, 912,\n2039, 623,2040,2041, 253,1169,1290,2042,1442, 146, 620, 611, 577, 433,2043,1224,\n 719,1170, 959, 440, 437, 534, 84, 388, 480,1131, 159, 220, 198, 679,2044,1012,\n 819,1066,1443, 113,1225, 194, 318,1003,1029,2045,2046,2047,2048,1067,2049,2050,\n2051,2052,2053, 59, 913, 112,2054, 632,2055, 455, 144, 739,1291,2056, 273, 681,\n 499,2057, 448,2058,2059, 760,2060,2061, 970, 384, 169, 245,1132,2062,2063, 414,\n1444,2064,2065, 41, 235,2066, 157, 252, 877, 568, 919, 789, 580,2067, 725,2068,\n2069,1292,2070,2071,1445,2072,1446,2073,2074, 55, 588, 66,1447, 271,1092,2075,\n1226,2076, 960,1013, 372,2077,2078,2079,2080,2081,1293,2082,2083,2084,2085, 850,\n2086,2087,2088,2089,2090, 186,2091,1068, 180,2092,2093,2094, 109,1227, 522, 606,\n2095, 867,1448,1093, 991,1171, 926, 353,1133,2096, 581,2097,2098,2099,1294,1449,\n1450,2100, 596,1172,1014,1228,2101,1451,1295,1173,1229,2102,2103,1296,1134,1452,\n 949,1135,2104,2105,1094,1453,1454,1455,2106,1095,2107,2108,2109,2110,2111,2112,\n2113,2114,2115,2116,2117, 804,2118,2119,1230,1231, 805,1456, 405,1136,2120,2121,\n2122,2123,2124, 720, 701,1297, 992,1457, 927,1004,2125,2126,2127,2128,2129,2130,\n 22, 417,2131, 303,2132, 385,2133, 971, 520, 513,2134,1174, 73,1096, 231, 274,\n 962,1458, 673,2135,1459,2136, 152,1137,2137,2138,2139,2140,1005,1138,1460,1139,\n2141,2142,2143,2144, 11, 374, 844,2145, 154,1232, 46,1461,2146, 838, 830, 721,\n1233, 106,2147, 90, 428, 462, 578, 566,1175, 352,2148,2149, 538,1234, 124,1298,\n2150,1462, 761, 565,2151, 686,2152, 649,2153, 72, 173,2154, 460, 415,2155,1463,\n2156,1235, 305,2157,2158,2159,2160,2161,2162, 579,2163,2164,2165,2166,2167, 747,\n2168,2169,2170,2171,1464, 669,2172,2173,2174,2175,2176,1465,2177, 23, 530, 285,\n2178, 335, 729,2179, 397,2180,2181,2182,1030,2183,2184, 698,2185,2186, 325,2187,\n2188, 369,2189, 799,1097,1015, 348,2190,1069, 680,2191, 851,1466,2192,2193, 10,\n2194, 613, 424,2195, 979, 108, 449, 589, 27, 172, 81,1031, 80, 774, 281, 350,\n1032, 525, 301, 582,1176,2196, 674,1045,2197,2198,1467, 730, 762,2199,2200,2201,\n2202,1468,2203, 993,2204,2205, 266,1070, 963,1140,2206,2207,2208, 664,1098, 972,\n2209,2210,2211,1177,1469,1470, 871,2212,2213,2214,2215,2216,1471,2217,2218,2219,\n2220,2221,2222,2223,2224,2225,2226,2227,1472,1236,2228,2229,2230,2231,2232,2233,\n2234,2235,1299,2236,2237, 200,2238, 477, 373,2239,2240, 731, 825, 777,2241,2242,\n2243, 521, 486, 548,2244,2245,2246,1473,1300, 53, 549, 137, 875, 76, 158,2247,\n1301,1474, 469, 396,1016, 278, 712,2248, 321, 442, 503, 767, 744, 941,1237,1178,\n1475,2249, 82, 178,1141,1179, 973,2250,1302,2251, 297,2252,2253, 570,2254,2255,\n2256, 18, 450, 206,2257, 290, 292,1142,2258, 511, 162, 99, 346, 164, 735,2259,\n1476,1477, 4, 554, 343, 798,1099,2260,1100,2261, 43, 171,1303, 139, 215,2262,\n2263, 717, 775,2264,1033, 322, 216,2265, 831,2266, 149,2267,1304,2268,2269, 702,\n1238, 135, 845, 347, 309,2270, 484,2271, 878, 655, 238,1006,1478,2272, 67,2273,\n 295,2274,2275, 461,2276, 478, 942, 412,2277,1034,2278,2279,2280, 265,2281, 541,\n2282,2283,2284,2285,2286, 70, 852,1071,2287,2288,2289,2290, 21, 56, 509, 117,\n 432,2291,2292, 331, 980, 552,1101, 148, 284, 105, 393,1180,1239, 755,2293, 187,\n2294,1046,1479,2295, 340,2296, 63,1047, 230,2297,2298,1305, 763,1306, 101, 800,\n 808, 494,2299,2300,2301, 903,2302, 37,1072, 14, 5,2303, 79, 675,2304, 312,\n2305,2306,2307,2308,2309,1480, 6,1307,2310,2311,2312, 1, 470, 35, 24, 229,\n2313, 695, 210, 86, 778, 15, 784, 592, 779, 32, 77, 855, 964,2314, 259,2315,\n 501, 380,2316,2317, 83, 981, 153, 689,1308,1481,1482,1483,2318,2319, 716,1484,\n2320,2321,2322,2323,2324,2325,1485,2326,2327, 128, 57, 68, 261,1048, 211, 170,\n1240, 31,2328, 51, 435, 742,2329,2330,2331, 635,2332, 264, 456,2333,2334,2335,\n 425,2336,1486, 143, 507, 263, 943,2337, 363, 920,1487, 256,1488,1102, 243, 601,\n1489,2338,2339,2340,2341,2342,2343,2344, 861,2345,2346,2347,2348,2349,2350, 395,\n2351,1490,1491, 62, 535, 166, 225,2352,2353, 668, 419,1241, 138, 604, 928,2354,\n1181,2355,1492,1493,2356,2357,2358,1143,2359, 696,2360, 387, 307,1309, 682, 476,\n2361,2362, 332, 12, 222, 156,2363, 232,2364, 641, 276, 656, 517,1494,1495,1035,\n 416, 736,1496,2365,1017, 586,2366,2367,2368,1497,2369, 242,2370,2371,2372,1498,\n2373, 965, 713,2374,2375,2376,2377, 740, 982,1499, 944,1500,1007,2378,2379,1310,\n1501,2380,2381,2382, 785, 329,2383,2384,1502,2385,2386,2387, 932,2388,1503,2389,\n2390,2391,2392,1242,2393,2394,2395,2396,2397, 994, 950,2398,2399,2400,2401,1504,\n1311,2402,2403,2404,2405,1049, 749,2406,2407, 853, 718,1144,1312,2408,1182,1505,\n2409,2410, 255, 516, 479, 564, 550, 214,1506,1507,1313, 413, 239, 444, 339,1145,\n1036,1508,1509,1314,1037,1510,1315,2411,1511,2412,2413,2414, 176, 703, 497, 624,\n 593, 921, 302,2415, 341, 165,1103,1512,2416,1513,2417,2418,2419, 376,2420, 700,\n2421,2422,2423, 258, 768,1316,2424,1183,2425, 995, 608,2426,2427,2428,2429, 221,\n2430,2431,2432,2433,2434,2435,2436,2437, 195, 323, 726, 188, 897, 983,1317, 377,\n 644,1050, 879,2438, 452,2439,2440,2441,2442,2443,2444, 914,2445,2446,2447,2448,\n 915, 489,2449,1514,1184,2450,2451, 515, 64, 427, 495,2452, 583,2453, 483, 485,\n1038, 562, 213,1515, 748, 666,2454,2455,2456,2457, 334,2458, 780, 996,1008, 705,\n1243,2459,2460,2461,2462,2463, 114,2464, 493,1146, 366, 163,1516, 961,1104,2465,\n 291,2466,1318,1105,2467,1517, 365,2468, 355, 951,1244,2469,1319,2470, 631,2471,\n2472, 218,1320, 364, 320, 756,1518,1519,1321,1520,1322,2473,2474,2475,2476, 997,\n2477,2478,2479,2480, 665,1185,2481, 916,1521,2482,2483,2484, 584, 684,2485,2486,\n 797,2487,1051,1186,2488,2489,2490,1522,2491,2492, 370,2493,1039,1187, 65,2494,\n 434, 205, 463,1188,2495, 125, 812, 391, 402, 826, 699, 286, 398, 155, 781, 771,\n 585,2496, 590, 505,1073,2497, 599, 244, 219, 917,1018, 952, 646,1523,2498,1323,\n2499,2500, 49, 984, 354, 741,2501, 625,2502,1324,2503,1019, 190, 357, 757, 491,\n 95, 782, 868,2504,2505,2506,2507,2508,2509, 134,1524,1074, 422,1525, 898,2510,\n 161,2511,2512,2513,2514, 769,2515,1526,2516,2517, 411,1325,2518, 472,1527,2519,\n2520,2521,2522,2523,2524, 985,2525,2526,2527,2528,2529,2530, 764,2531,1245,2532,\n2533, 25, 204, 311,2534, 496,2535,1052,2536,2537,2538,2539,2540,2541,2542, 199,\n 704, 504, 468, 758, 657,1528, 196, 44, 839,1246, 272, 750,2543, 765, 862,2544,\n2545,1326,2546, 132, 615, 933,2547, 732,2548,2549,2550,1189,1529,2551, 283,1247,\n1053, 607, 929,2552,2553,2554, 930, 183, 872, 616,1040,1147,2555,1148,1020, 441,\n 249,1075,2556,2557,2558, 466, 743,2559,2560,2561, 92, 514, 426, 420, 526,2562,\n2563,2564,2565,2566,2567,2568, 185,2569,2570,2571,2572, 776,1530, 658,2573, 362,\n2574, 361, 922,1076, 793,2575,2576,2577,2578,2579,2580,1531, 251,2581,2582,2583,\n2584,1532, 54, 612, 237,1327,2585,2586, 275, 408, 647, 111,2587,1533,1106, 465,\n 3, 458, 9, 38,2588, 107, 110, 890, 209, 26, 737, 498,2589,1534,2590, 431,\n 202, 88,1535, 356, 287,1107, 660,1149,2591, 381,1536, 986,1150, 445,1248,1151,\n 974,2592,2593, 846,2594, 446, 953, 184,1249,1250, 727,2595, 923, 193, 883,2596,\n2597,2598, 102, 324, 539, 817,2599, 421,1041,2600, 832,2601, 94, 175, 197, 406,\n2602, 459,2603,2604,2605,2606,2607, 330, 555,2608,2609,2610, 706,1108, 389,2611,\n2612,2613,2614, 233,2615, 833, 558, 931, 954,1251,2616,2617,1537, 546,2618,2619,\n1009,2620,2621,2622,1538, 690,1328,2623, 955,2624,1539,2625,2626, 772,2627,2628,\n2629,2630,2631, 924, 648, 863, 603,2632,2633, 934,1540, 864, 865,2634, 642,1042,\n 670,1190,2635,2636,2637,2638, 168,2639, 652, 873, 542,1054,1541,2640,2641,2642, # 512, 256\n#Everything below is of no interest for detection purpose\n2643,2644,2645,2646,2647,2648,2649,2650,2651,2652,2653,2654,2655,2656,2657,2658,\n2659,2660,2661,2662,2663,2664,2665,2666,2667,2668,2669,2670,2671,2672,2673,2674,\n2675,2676,2677,2678,2679,2680,2681,2682,2683,2684,2685,2686,2687,2688,2689,2690,\n2691,2692,2693,2694,2695,2696,2697,2698,2699,1542, 880,2700,2701,2702,2703,2704,\n2705,2706,2707,2708,2709,2710,2711,2712,2713,2714,2715,2716,2717,2718,2719,2720,\n2721,2722,2723,2724,2725,1543,2726,2727,2728,2729,2730,2731,2732,1544,2733,2734,\n2735,2736,2737,2738,2739,2740,2741,2742,2743,2744,2745,2746,2747,2748,2749,2750,\n2751,2752,2753,2754,1545,2755,2756,2757,2758,2759,2760,2761,2762,2763,2764,2765,\n2766,1546,2767,1547,2768,2769,2770,2771,2772,2773,2774,2775,2776,2777,2778,2779,\n2780,2781,2782,2783,2784,2785,2786,1548,2787,2788,2789,1109,2790,2791,2792,2793,\n2794,2795,2796,2797,2798,2799,2800,2801,2802,2803,2804,2805,2806,2807,2808,2809,\n2810,2811,2812,1329,2813,2814,2815,2816,2817,2818,2819,2820,2821,2822,2823,2824,\n2825,2826,2827,2828,2829,2830,2831,2832,2833,2834,2835,2836,2837,2838,2839,2840,\n2841,2842,2843,2844,2845,2846,2847,2848,2849,2850,2851,2852,2853,2854,2855,2856,\n1549,2857,2858,2859,2860,1550,2861,2862,1551,2863,2864,2865,2866,2867,2868,2869,\n2870,2871,2872,2873,2874,1110,1330,2875,2876,2877,2878,2879,2880,2881,2882,2883,\n2884,2885,2886,2887,2888,2889,2890,2891,2892,2893,2894,2895,2896,2897,2898,2899,\n2900,2901,2902,2903,2904,2905,2906,2907,2908,2909,2910,2911,2912,2913,2914,2915,\n2916,2917,2918,2919,2920,2921,2922,2923,2924,2925,2926,2927,2928,2929,2930,1331,\n2931,2932,2933,2934,2935,2936,2937,2938,2939,2940,2941,2942,2943,1552,2944,2945,\n2946,2947,2948,2949,2950,2951,2952,2953,2954,2955,2956,2957,2958,2959,2960,2961,\n2962,2963,2964,1252,2965,2966,2967,2968,2969,2970,2971,2972,2973,2974,2975,2976,\n2977,2978,2979,2980,2981,2982,2983,2984,2985,2986,2987,2988,2989,2990,2991,2992,\n2993,2994,2995,2996,2997,2998,2999,3000,3001,3002,3003,3004,3005,3006,3007,3008,\n3009,3010,3011,3012,1553,3013,3014,3015,3016,3017,1554,3018,1332,3019,3020,3021,\n3022,3023,3024,3025,3026,3027,3028,3029,3030,3031,3032,3033,3034,3035,3036,3037,\n3038,3039,3040,3041,3042,3043,3044,3045,3046,3047,3048,3049,3050,1555,3051,3052,\n3053,1556,1557,3054,3055,3056,3057,3058,3059,3060,3061,3062,3063,3064,3065,3066,\n3067,1558,3068,3069,3070,3071,3072,3073,3074,3075,3076,1559,3077,3078,3079,3080,\n3081,3082,3083,1253,3084,3085,3086,3087,3088,3089,3090,3091,3092,3093,3094,3095,\n3096,3097,3098,3099,3100,3101,3102,3103,3104,3105,3106,3107,3108,1152,3109,3110,\n3111,3112,3113,1560,3114,3115,3116,3117,1111,3118,3119,3120,3121,3122,3123,3124,\n3125,3126,3127,3128,3129,3130,3131,3132,3133,3134,3135,3136,3137,3138,3139,3140,\n3141,3142,3143,3144,3145,3146,3147,3148,3149,3150,3151,3152,3153,3154,3155,3156,\n3157,3158,3159,3160,3161,3162,3163,3164,3165,3166,3167,3168,3169,3170,3171,3172,\n3173,3174,3175,3176,1333,3177,3178,3179,3180,3181,3182,3183,3184,3185,3186,3187,\n3188,3189,1561,3190,3191,1334,3192,3193,3194,3195,3196,3197,3198,3199,3200,3201,\n3202,3203,3204,3205,3206,3207,3208,3209,3210,3211,3212,3213,3214,3215,3216,3217,\n3218,3219,3220,3221,3222,3223,3224,3225,3226,3227,3228,3229,3230,3231,3232,3233,\n3234,1562,3235,3236,3237,3238,3239,3240,3241,3242,3243,3244,3245,3246,3247,3248,\n3249,3250,3251,3252,3253,3254,3255,3256,3257,3258,3259,3260,3261,3262,3263,3264,\n3265,3266,3267,3268,3269,3270,3271,3272,3273,3274,3275,3276,3277,1563,3278,3279,\n3280,3281,3282,3283,3284,3285,3286,3287,3288,3289,3290,3291,3292,3293,3294,3295,\n3296,3297,3298,3299,3300,3301,3302,3303,3304,3305,3306,3307,3308,3309,3310,3311,\n3312,3313,3314,3315,3316,3317,3318,3319,3320,3321,3322,3323,3324,3325,3326,3327,\n3328,3329,3330,3331,3332,3333,3334,3335,3336,3337,3338,3339,3340,3341,3342,3343,\n3344,3345,3346,3347,3348,3349,3350,3351,3352,3353,3354,3355,3356,3357,3358,3359,\n3360,3361,3362,3363,3364,1335,3365,3366,3367,3368,3369,3370,3371,3372,3373,3374,\n3375,3376,3377,3378,3379,3380,3381,3382,3383,3384,3385,3386,3387,1336,3388,3389,\n3390,3391,3392,3393,3394,3395,3396,3397,3398,3399,3400,3401,3402,3403,3404,3405,\n3406,3407,3408,3409,3410,3411,3412,3413,3414,1337,3415,3416,3417,3418,3419,1338,\n3420,3421,3422,1564,1565,3423,3424,3425,3426,3427,3428,3429,3430,3431,1254,3432,\n3433,3434,1339,3435,3436,3437,3438,3439,1566,3440,3441,3442,3443,3444,3445,3446,\n3447,3448,3449,3450,3451,3452,3453,3454,1255,3455,3456,3457,3458,3459,1567,1191,\n3460,1568,1569,3461,3462,3463,1570,3464,3465,3466,3467,3468,1571,3469,3470,3471,\n3472,3473,1572,3474,3475,3476,3477,3478,3479,3480,3481,3482,3483,3484,3485,3486,\n1340,3487,3488,3489,3490,3491,3492,1021,3493,3494,3495,3496,3497,3498,1573,3499,\n1341,3500,3501,3502,3503,3504,3505,3506,3507,3508,3509,3510,3511,1342,3512,3513,\n3514,3515,3516,1574,1343,3517,3518,3519,1575,3520,1576,3521,3522,3523,3524,3525,\n3526,3527,3528,3529,3530,3531,3532,3533,3534,3535,3536,3537,3538,3539,3540,3541,\n3542,3543,3544,3545,3546,3547,3548,3549,3550,3551,3552,3553,3554,3555,3556,3557,\n3558,3559,3560,3561,3562,3563,3564,3565,3566,3567,3568,3569,3570,3571,3572,3573,\n3574,3575,3576,3577,3578,3579,3580,1577,3581,3582,1578,3583,3584,3585,3586,3587,\n3588,3589,3590,3591,3592,3593,3594,3595,3596,3597,3598,3599,3600,3601,3602,3603,\n3604,1579,3605,3606,3607,3608,3609,3610,3611,3612,3613,3614,3615,3616,3617,3618,\n3619,3620,3621,3622,3623,3624,3625,3626,3627,3628,3629,1580,3630,3631,1581,3632,\n3633,3634,3635,3636,3637,3638,3639,3640,3641,3642,3643,3644,3645,3646,3647,3648,\n3649,3650,3651,3652,3653,3654,3655,3656,1582,3657,3658,3659,3660,3661,3662,3663,\n3664,3665,3666,3667,3668,3669,3670,3671,3672,3673,3674,3675,3676,3677,3678,3679,\n3680,3681,3682,3683,3684,3685,3686,3687,3688,3689,3690,3691,3692,3693,3694,3695,\n3696,3697,3698,3699,3700,1192,3701,3702,3703,3704,1256,3705,3706,3707,3708,1583,\n1257,3709,3710,3711,3712,3713,3714,3715,3716,1584,3717,3718,3719,3720,3721,3722,\n3723,3724,3725,3726,3727,3728,3729,3730,3731,3732,3733,3734,3735,3736,3737,3738,\n3739,3740,3741,3742,3743,3744,3745,1344,3746,3747,3748,3749,3750,3751,3752,3753,\n3754,3755,3756,1585,3757,3758,3759,3760,3761,3762,3763,3764,3765,3766,1586,3767,\n3768,3769,3770,3771,3772,3773,3774,3775,3776,3777,3778,1345,3779,3780,3781,3782,\n3783,3784,3785,3786,3787,3788,3789,3790,3791,3792,3793,3794,3795,1346,1587,3796,\n3797,1588,3798,3799,3800,3801,3802,3803,3804,3805,3806,1347,3807,3808,3809,3810,\n3811,1589,3812,3813,3814,3815,3816,3817,3818,3819,3820,3821,1590,3822,3823,1591,\n1348,3824,3825,3826,3827,3828,3829,3830,1592,3831,3832,1593,3833,3834,3835,3836,\n3837,3838,3839,3840,3841,3842,3843,3844,1349,3845,3846,3847,3848,3849,3850,3851,\n3852,3853,3854,3855,3856,3857,3858,1594,3859,3860,3861,3862,3863,3864,3865,3866,\n3867,3868,3869,1595,3870,3871,3872,3873,1596,3874,3875,3876,3877,3878,3879,3880,\n3881,3882,3883,3884,3885,3886,1597,3887,3888,3889,3890,3891,3892,3893,3894,3895,\n1598,3896,3897,3898,1599,1600,3899,1350,3900,1351,3901,3902,1352,3903,3904,3905,\n3906,3907,3908,3909,3910,3911,3912,3913,3914,3915,3916,3917,3918,3919,3920,3921,\n3922,3923,3924,1258,3925,3926,3927,3928,3929,3930,3931,1193,3932,1601,3933,3934,\n3935,3936,3937,3938,3939,3940,3941,3942,3943,1602,3944,3945,3946,3947,3948,1603,\n3949,3950,3951,3952,3953,3954,3955,3956,3957,3958,3959,3960,3961,3962,3963,3964,\n3965,1604,3966,3967,3968,3969,3970,3971,3972,3973,3974,3975,3976,3977,1353,3978,\n3979,3980,3981,3982,3983,3984,3985,3986,3987,3988,3989,3990,3991,1354,3992,3993,\n3994,3995,3996,3997,3998,3999,4000,4001,4002,4003,4004,4005,4006,4007,4008,4009,\n4010,4011,4012,4013,4014,4015,4016,4017,4018,4019,4020,4021,4022,4023,1355,4024,\n4025,4026,4027,4028,4029,4030,4031,4032,4033,4034,4035,4036,4037,4038,4039,4040,\n1605,4041,4042,4043,4044,4045,4046,4047,4048,4049,4050,4051,4052,4053,4054,4055,\n4056,4057,4058,4059,4060,1606,4061,4062,4063,4064,1607,4065,4066,4067,4068,4069,\n4070,4071,4072,4073,4074,4075,4076,1194,4077,4078,1608,4079,4080,4081,4082,4083,\n4084,4085,4086,4087,1609,4088,4089,4090,4091,4092,4093,4094,4095,4096,4097,4098,\n4099,4100,4101,4102,4103,4104,4105,4106,4107,4108,1259,4109,4110,4111,4112,4113,\n4114,4115,4116,4117,4118,4119,4120,4121,4122,4123,4124,1195,4125,4126,4127,1610,\n4128,4129,4130,4131,4132,4133,4134,4135,4136,4137,1356,4138,4139,4140,4141,4142,\n4143,4144,1611,4145,4146,4147,4148,4149,4150,4151,4152,4153,4154,4155,4156,4157,\n4158,4159,4160,4161,4162,4163,4164,4165,4166,4167,4168,4169,4170,4171,4172,4173,\n4174,4175,4176,4177,4178,4179,4180,4181,4182,4183,4184,4185,4186,4187,4188,4189,\n4190,4191,4192,4193,4194,4195,4196,4197,4198,4199,4200,4201,4202,4203,4204,4205,\n4206,4207,4208,4209,4210,4211,4212,4213,4214,4215,4216,4217,4218,4219,1612,4220,\n4221,4222,4223,4224,4225,4226,4227,1357,4228,1613,4229,4230,4231,4232,4233,4234,\n4235,4236,4237,4238,4239,4240,4241,4242,4243,1614,4244,4245,4246,4247,4248,4249,\n4250,4251,4252,4253,4254,4255,4256,4257,4258,4259,4260,4261,4262,4263,4264,4265,\n4266,4267,4268,4269,4270,1196,1358,4271,4272,4273,4274,4275,4276,4277,4278,4279,\n4280,4281,4282,4283,4284,4285,4286,4287,1615,4288,4289,4290,4291,4292,4293,4294,\n4295,4296,4297,4298,4299,4300,4301,4302,4303,4304,4305,4306,4307,4308,4309,4310,\n4311,4312,4313,4314,4315,4316,4317,4318,4319,4320,4321,4322,4323,4324,4325,4326,\n4327,4328,4329,4330,4331,4332,4333,4334,1616,4335,4336,4337,4338,4339,4340,4341,\n4342,4343,4344,4345,4346,4347,4348,4349,4350,4351,4352,4353,4354,4355,4356,4357,\n4358,4359,4360,1617,4361,4362,4363,4364,4365,1618,4366,4367,4368,4369,4370,4371,\n4372,4373,4374,4375,4376,4377,4378,4379,4380,4381,4382,4383,4384,4385,4386,4387,\n4388,4389,4390,4391,4392,4393,4394,4395,4396,4397,4398,4399,4400,4401,4402,4403,\n4404,4405,4406,4407,4408,4409,4410,4411,4412,4413,4414,4415,4416,1619,4417,4418,\n4419,4420,4421,4422,4423,4424,4425,1112,4426,4427,4428,4429,4430,1620,4431,4432,\n4433,4434,4435,4436,4437,4438,4439,4440,4441,4442,1260,1261,4443,4444,4445,4446,\n4447,4448,4449,4450,4451,4452,4453,4454,4455,1359,4456,4457,4458,4459,4460,4461,\n4462,4463,4464,4465,1621,4466,4467,4468,4469,4470,4471,4472,4473,4474,4475,4476,\n4477,4478,4479,4480,4481,4482,4483,4484,4485,4486,4487,4488,4489,1055,4490,4491,\n4492,4493,4494,4495,4496,4497,4498,4499,4500,4501,4502,4503,4504,4505,4506,4507,\n4508,4509,4510,4511,4512,4513,4514,4515,4516,4517,4518,1622,4519,4520,4521,1623,\n4522,4523,4524,4525,4526,4527,4528,4529,4530,4531,4532,4533,4534,4535,1360,4536,\n4537,4538,4539,4540,4541,4542,4543, 975,4544,4545,4546,4547,4548,4549,4550,4551,\n4552,4553,4554,4555,4556,4557,4558,4559,4560,4561,4562,4563,4564,4565,4566,4567,\n4568,4569,4570,4571,1624,4572,4573,4574,4575,4576,1625,4577,4578,4579,4580,4581,\n4582,4583,4584,1626,4585,4586,4587,4588,4589,4590,4591,4592,4593,4594,4595,1627,\n4596,4597,4598,4599,4600,4601,4602,4603,4604,4605,4606,4607,4608,4609,4610,4611,\n4612,4613,4614,4615,1628,4616,4617,4618,4619,4620,4621,4622,4623,4624,4625,4626,\n4627,4628,4629,4630,4631,4632,4633,4634,4635,4636,4637,4638,4639,4640,4641,4642,\n4643,4644,4645,4646,4647,4648,4649,1361,4650,4651,4652,4653,4654,4655,4656,4657,\n4658,4659,4660,4661,1362,4662,4663,4664,4665,4666,4667,4668,4669,4670,4671,4672,\n4673,4674,4675,4676,4677,4678,4679,4680,4681,4682,1629,4683,4684,4685,4686,4687,\n1630,4688,4689,4690,4691,1153,4692,4693,4694,1113,4695,4696,4697,4698,4699,4700,\n4701,4702,4703,4704,4705,4706,4707,4708,4709,4710,4711,1197,4712,4713,4714,4715,\n4716,4717,4718,4719,4720,4721,4722,4723,4724,4725,4726,4727,4728,4729,4730,4731,\n4732,4733,4734,4735,1631,4736,1632,4737,4738,4739,4740,4741,4742,4743,4744,1633,\n4745,4746,4747,4748,4749,1262,4750,4751,4752,4753,4754,1363,4755,4756,4757,4758,\n4759,4760,4761,4762,4763,4764,4765,4766,4767,4768,1634,4769,4770,4771,4772,4773,\n4774,4775,4776,4777,4778,1635,4779,4780,4781,4782,4783,4784,4785,4786,4787,4788,\n4789,1636,4790,4791,4792,4793,4794,4795,4796,4797,4798,4799,4800,4801,4802,4803,\n4804,4805,4806,1637,4807,4808,4809,1638,4810,4811,4812,4813,4814,4815,4816,4817,\n4818,1639,4819,4820,4821,4822,4823,4824,4825,4826,4827,4828,4829,4830,4831,4832,\n4833,1077,4834,4835,4836,4837,4838,4839,4840,4841,4842,4843,4844,4845,4846,4847,\n4848,4849,4850,4851,4852,4853,4854,4855,4856,4857,4858,4859,4860,4861,4862,4863,\n4864,4865,4866,4867,4868,4869,4870,4871,4872,4873,4874,4875,4876,4877,4878,4879,\n4880,4881,4882,4883,1640,4884,4885,1641,4886,4887,4888,4889,4890,4891,4892,4893,\n4894,4895,4896,4897,4898,4899,4900,4901,4902,4903,4904,4905,4906,4907,4908,4909,\n4910,4911,1642,4912,4913,4914,1364,4915,4916,4917,4918,4919,4920,4921,4922,4923,\n4924,4925,4926,4927,4928,4929,4930,4931,1643,4932,4933,4934,4935,4936,4937,4938,\n4939,4940,4941,4942,4943,4944,4945,4946,4947,4948,4949,4950,4951,4952,4953,4954,\n4955,4956,4957,4958,4959,4960,4961,4962,4963,4964,4965,4966,4967,4968,4969,4970,\n4971,4972,4973,4974,4975,4976,4977,4978,4979,4980,1644,4981,4982,4983,4984,1645,\n4985,4986,1646,4987,4988,4989,4990,4991,4992,4993,4994,4995,4996,4997,4998,4999,\n5000,5001,5002,5003,5004,5005,1647,5006,1648,5007,5008,5009,5010,5011,5012,1078,\n5013,5014,5015,5016,5017,5018,5019,5020,5021,5022,5023,5024,5025,5026,5027,5028,\n1365,5029,5030,5031,5032,5033,5034,5035,5036,5037,5038,5039,1649,5040,5041,5042,\n5043,5044,5045,1366,5046,5047,5048,5049,5050,5051,5052,5053,5054,5055,1650,5056,\n5057,5058,5059,5060,5061,5062,5063,5064,5065,5066,5067,5068,5069,5070,5071,5072,\n5073,5074,5075,5076,5077,1651,5078,5079,5080,5081,5082,5083,5084,5085,5086,5087,\n5088,5089,5090,5091,5092,5093,5094,5095,5096,5097,5098,5099,5100,5101,5102,5103,\n5104,5105,5106,5107,5108,5109,5110,1652,5111,5112,5113,5114,5115,5116,5117,5118,\n1367,5119,5120,5121,5122,5123,5124,5125,5126,5127,5128,5129,1653,5130,5131,5132,\n5133,5134,5135,5136,5137,5138,5139,5140,5141,5142,5143,5144,5145,5146,5147,5148,\n5149,1368,5150,1654,5151,1369,5152,5153,5154,5155,5156,5157,5158,5159,5160,5161,\n5162,5163,5164,5165,5166,5167,5168,5169,5170,5171,5172,5173,5174,5175,5176,5177,\n5178,1370,5179,5180,5181,5182,5183,5184,5185,5186,5187,5188,5189,5190,5191,5192,\n5193,5194,5195,5196,5197,5198,1655,5199,5200,5201,5202,1656,5203,5204,5205,5206,\n1371,5207,1372,5208,5209,5210,5211,1373,5212,5213,1374,5214,5215,5216,5217,5218,\n5219,5220,5221,5222,5223,5224,5225,5226,5227,5228,5229,5230,5231,5232,5233,5234,\n5235,5236,5237,5238,5239,5240,5241,5242,5243,5244,5245,5246,5247,1657,5248,5249,\n5250,5251,1658,1263,5252,5253,5254,5255,5256,1375,5257,5258,5259,5260,5261,5262,\n5263,5264,5265,5266,5267,5268,5269,5270,5271,5272,5273,5274,5275,5276,5277,5278,\n5279,5280,5281,5282,5283,1659,5284,5285,5286,5287,5288,5289,5290,5291,5292,5293,\n5294,5295,5296,5297,5298,5299,5300,1660,5301,5302,5303,5304,5305,5306,5307,5308,\n5309,5310,5311,5312,5313,5314,5315,5316,5317,5318,5319,5320,5321,1376,5322,5323,\n5324,5325,5326,5327,5328,5329,5330,5331,5332,5333,1198,5334,5335,5336,5337,5338,\n5339,5340,5341,5342,5343,1661,5344,5345,5346,5347,5348,5349,5350,5351,5352,5353,\n5354,5355,5356,5357,5358,5359,5360,5361,5362,5363,5364,5365,5366,5367,5368,5369,\n5370,5371,5372,5373,5374,5375,5376,5377,5378,5379,5380,5381,5382,5383,5384,5385,\n5386,5387,5388,5389,5390,5391,5392,5393,5394,5395,5396,5397,5398,1264,5399,5400,\n5401,5402,5403,5404,5405,5406,5407,5408,5409,5410,5411,5412,1662,5413,5414,5415,\n5416,1663,5417,5418,5419,5420,5421,5422,5423,5424,5425,5426,5427,5428,5429,5430,\n5431,5432,5433,5434,5435,5436,5437,5438,1664,5439,5440,5441,5442,5443,5444,5445,\n5446,5447,5448,5449,5450,5451,5452,5453,5454,5455,5456,5457,5458,5459,5460,5461,\n5462,5463,5464,5465,5466,5467,5468,5469,5470,5471,5472,5473,5474,5475,5476,5477,\n5478,1154,5479,5480,5481,5482,5483,5484,5485,1665,5486,5487,5488,5489,5490,5491,\n5492,5493,5494,5495,5496,5497,5498,5499,5500,5501,5502,5503,5504,5505,5506,5507,\n5508,5509,5510,5511,5512,5513,5514,5515,5516,5517,5518,5519,5520,5521,5522,5523,\n5524,5525,5526,5527,5528,5529,5530,5531,5532,5533,5534,5535,5536,5537,5538,5539,\n5540,5541,5542,5543,5544,5545,5546,5547,5548,1377,5549,5550,5551,5552,5553,5554,\n5555,5556,5557,5558,5559,5560,5561,5562,5563,5564,5565,5566,5567,5568,5569,5570,\n1114,5571,5572,5573,5574,5575,5576,5577,5578,5579,5580,5581,5582,5583,5584,5585,\n5586,5587,5588,5589,5590,5591,5592,1378,5593,5594,5595,5596,5597,5598,5599,5600,\n5601,5602,5603,5604,5605,5606,5607,5608,5609,5610,5611,5612,5613,5614,1379,5615,\n5616,5617,5618,5619,5620,5621,5622,5623,5624,5625,5626,5627,5628,5629,5630,5631,\n5632,5633,5634,1380,5635,5636,5637,5638,5639,5640,5641,5642,5643,5644,5645,5646,\n5647,5648,5649,1381,1056,5650,5651,5652,5653,5654,5655,5656,5657,5658,5659,5660,\n1666,5661,5662,5663,5664,5665,5666,5667,5668,1667,5669,1668,5670,5671,5672,5673,\n5674,5675,5676,5677,5678,1155,5679,5680,5681,5682,5683,5684,5685,5686,5687,5688,\n5689,5690,5691,5692,5693,5694,5695,5696,5697,5698,1669,5699,5700,5701,5702,5703,\n5704,5705,1670,5706,5707,5708,5709,5710,1671,5711,5712,5713,5714,1382,5715,5716,\n5717,5718,5719,5720,5721,5722,5723,5724,5725,1672,5726,5727,1673,1674,5728,5729,\n5730,5731,5732,5733,5734,5735,5736,1675,5737,5738,5739,5740,5741,5742,5743,5744,\n1676,5745,5746,5747,5748,5749,5750,5751,1383,5752,5753,5754,5755,5756,5757,5758,\n5759,5760,5761,5762,5763,5764,5765,5766,5767,5768,1677,5769,5770,5771,5772,5773,\n1678,5774,5775,5776, 998,5777,5778,5779,5780,5781,5782,5783,5784,5785,1384,5786,\n5787,5788,5789,5790,5791,5792,5793,5794,5795,5796,5797,5798,5799,5800,1679,5801,\n5802,5803,1115,1116,5804,5805,5806,5807,5808,5809,5810,5811,5812,5813,5814,5815,\n5816,5817,5818,5819,5820,5821,5822,5823,5824,5825,5826,5827,5828,5829,5830,5831,\n5832,5833,5834,5835,5836,5837,5838,5839,5840,5841,5842,5843,5844,5845,5846,5847,\n5848,5849,5850,5851,5852,5853,5854,5855,1680,5856,5857,5858,5859,5860,5861,5862,\n5863,5864,1681,5865,5866,5867,1682,5868,5869,5870,5871,5872,5873,5874,5875,5876,\n5877,5878,5879,1683,5880,1684,5881,5882,5883,5884,1685,5885,5886,5887,5888,5889,\n5890,5891,5892,5893,5894,5895,5896,5897,5898,5899,5900,5901,5902,5903,5904,5905,\n5906,5907,1686,5908,5909,5910,5911,5912,5913,5914,5915,5916,5917,5918,5919,5920,\n5921,5922,5923,5924,5925,5926,5927,5928,5929,5930,5931,5932,5933,5934,5935,1687,\n5936,5937,5938,5939,5940,5941,5942,5943,5944,5945,5946,5947,5948,5949,5950,5951,\n5952,1688,1689,5953,1199,5954,5955,5956,5957,5958,5959,5960,5961,1690,5962,5963,\n5964,5965,5966,5967,5968,5969,5970,5971,5972,5973,5974,5975,5976,5977,5978,5979,\n5980,5981,1385,5982,1386,5983,5984,5985,5986,5987,5988,5989,5990,5991,5992,5993,\n5994,5995,5996,5997,5998,5999,6000,6001,6002,6003,6004,6005,6006,6007,6008,6009,\n6010,6011,6012,6013,6014,6015,6016,6017,6018,6019,6020,6021,6022,6023,6024,6025,\n6026,6027,1265,6028,6029,1691,6030,6031,6032,6033,6034,6035,6036,6037,6038,6039,\n6040,6041,6042,6043,6044,6045,6046,6047,6048,6049,6050,6051,6052,6053,6054,6055,\n6056,6057,6058,6059,6060,6061,6062,6063,6064,6065,6066,6067,6068,6069,6070,6071,\n6072,6073,6074,6075,6076,6077,6078,6079,6080,6081,6082,6083,6084,1692,6085,6086,\n6087,6088,6089,6090,6091,6092,6093,6094,6095,6096,6097,6098,6099,6100,6101,6102,\n6103,6104,6105,6106,6107,6108,6109,6110,6111,6112,6113,6114,6115,6116,6117,6118,\n6119,6120,6121,6122,6123,6124,6125,6126,6127,6128,6129,6130,6131,1693,6132,6133,\n6134,6135,6136,1694,6137,6138,6139,6140,6141,1695,6142,6143,6144,6145,6146,6147,\n6148,6149,6150,6151,6152,6153,6154,6155,6156,6157,6158,6159,6160,6161,6162,6163,\n6164,6165,6166,6167,6168,6169,6170,6171,6172,6173,6174,6175,6176,6177,6178,6179,\n6180,6181,6182,6183,6184,6185,1696,6186,6187,6188,6189,6190,6191,6192,6193,6194,\n6195,6196,6197,6198,6199,6200,6201,6202,6203,6204,6205,6206,6207,6208,6209,6210,\n6211,6212,6213,6214,6215,6216,6217,6218,6219,1697,6220,6221,6222,6223,6224,6225,\n6226,6227,6228,6229,6230,6231,6232,6233,6234,6235,6236,6237,6238,6239,6240,6241,\n6242,6243,6244,6245,6246,6247,6248,6249,6250,6251,6252,6253,1698,6254,6255,6256,\n6257,6258,6259,6260,6261,6262,6263,1200,6264,6265,6266,6267,6268,6269,6270,6271, #1024\n6272,6273,6274,6275,6276,6277,6278,6279,6280,6281,6282,6283,6284,6285,6286,6287,\n6288,6289,6290,6291,6292,6293,6294,6295,6296,6297,6298,6299,6300,6301,6302,1699,\n6303,6304,1700,6305,6306,6307,6308,6309,6310,6311,6312,6313,6314,6315,6316,6317,\n6318,6319,6320,6321,6322,6323,6324,6325,6326,6327,6328,6329,6330,6331,6332,6333,\n6334,6335,6336,6337,6338,6339,1701,6340,6341,6342,6343,6344,1387,6345,6346,6347,\n6348,6349,6350,6351,6352,6353,6354,6355,6356,6357,6358,6359,6360,6361,6362,6363,\n6364,6365,6366,6367,6368,6369,6370,6371,6372,6373,6374,6375,6376,6377,6378,6379,\n6380,6381,6382,6383,6384,6385,6386,6387,6388,6389,6390,6391,6392,6393,6394,6395,\n6396,6397,6398,6399,6400,6401,6402,6403,6404,6405,6406,6407,6408,6409,6410,6411,\n6412,6413,1702,6414,6415,6416,6417,6418,6419,6420,6421,6422,1703,6423,6424,6425,\n6426,6427,6428,6429,6430,6431,6432,6433,6434,6435,6436,6437,6438,1704,6439,6440,\n6441,6442,6443,6444,6445,6446,6447,6448,6449,6450,6451,6452,6453,6454,6455,6456,\n6457,6458,6459,6460,6461,6462,6463,6464,6465,6466,6467,6468,6469,6470,6471,6472,\n6473,6474,6475,6476,6477,6478,6479,6480,6481,6482,6483,6484,6485,6486,6487,6488,\n6489,6490,6491,6492,6493,6494,6495,6496,6497,6498,6499,6500,6501,6502,6503,1266,\n6504,6505,6506,6507,6508,6509,6510,6511,6512,6513,6514,6515,6516,6517,6518,6519,\n6520,6521,6522,6523,6524,6525,6526,6527,6528,6529,6530,6531,6532,6533,6534,6535,\n6536,6537,6538,6539,6540,6541,6542,6543,6544,6545,6546,6547,6548,6549,6550,6551,\n1705,1706,6552,6553,6554,6555,6556,6557,6558,6559,6560,6561,6562,6563,6564,6565,\n6566,6567,6568,6569,6570,6571,6572,6573,6574,6575,6576,6577,6578,6579,6580,6581,\n6582,6583,6584,6585,6586,6587,6588,6589,6590,6591,6592,6593,6594,6595,6596,6597,\n6598,6599,6600,6601,6602,6603,6604,6605,6606,6607,6608,6609,6610,6611,6612,6613,\n6614,6615,6616,6617,6618,6619,6620,6621,6622,6623,6624,6625,6626,6627,6628,6629,\n6630,6631,6632,6633,6634,6635,6636,6637,1388,6638,6639,6640,6641,6642,6643,6644,\n1707,6645,6646,6647,6648,6649,6650,6651,6652,6653,6654,6655,6656,6657,6658,6659,\n6660,6661,6662,6663,1708,6664,6665,6666,6667,6668,6669,6670,6671,6672,6673,6674,\n1201,6675,6676,6677,6678,6679,6680,6681,6682,6683,6684,6685,6686,6687,6688,6689,\n6690,6691,6692,6693,6694,6695,6696,6697,6698,6699,6700,6701,6702,6703,6704,6705,\n6706,6707,6708,6709,6710,6711,6712,6713,6714,6715,6716,6717,6718,6719,6720,6721,\n6722,6723,6724,6725,1389,6726,6727,6728,6729,6730,6731,6732,6733,6734,6735,6736,\n1390,1709,6737,6738,6739,6740,6741,6742,1710,6743,6744,6745,6746,1391,6747,6748,\n6749,6750,6751,6752,6753,6754,6755,6756,6757,1392,6758,6759,6760,6761,6762,6763,\n6764,6765,6766,6767,6768,6769,6770,6771,6772,6773,6774,6775,6776,6777,6778,6779,\n6780,1202,6781,6782,6783,6784,6785,6786,6787,6788,6789,6790,6791,6792,6793,6794,\n6795,6796,6797,6798,6799,6800,6801,6802,6803,6804,6805,6806,6807,6808,6809,1711,\n6810,6811,6812,6813,6814,6815,6816,6817,6818,6819,6820,6821,6822,6823,6824,6825,\n6826,6827,6828,6829,6830,6831,6832,6833,6834,6835,6836,1393,6837,6838,6839,6840,\n6841,6842,6843,6844,6845,6846,6847,6848,6849,6850,6851,6852,6853,6854,6855,6856,\n6857,6858,6859,6860,6861,6862,6863,6864,6865,6866,6867,6868,6869,6870,6871,6872,\n6873,6874,6875,6876,6877,6878,6879,6880,6881,6882,6883,6884,6885,6886,6887,6888,\n6889,6890,6891,6892,6893,6894,6895,6896,6897,6898,6899,6900,6901,6902,1712,6903,\n6904,6905,6906,6907,6908,6909,6910,1713,6911,6912,6913,6914,6915,6916,6917,6918,\n6919,6920,6921,6922,6923,6924,6925,6926,6927,6928,6929,6930,6931,6932,6933,6934,\n6935,6936,6937,6938,6939,6940,6941,6942,6943,6944,6945,6946,6947,6948,6949,6950,\n6951,6952,6953,6954,6955,6956,6957,6958,6959,6960,6961,6962,6963,6964,6965,6966,\n6967,6968,6969,6970,6971,6972,6973,6974,1714,6975,6976,6977,6978,6979,6980,6981,\n6982,6983,6984,6985,6986,6987,6988,1394,6989,6990,6991,6992,6993,6994,6995,6996,\n6997,6998,6999,7000,1715,7001,7002,7003,7004,7005,7006,7007,7008,7009,7010,7011,\n7012,7013,7014,7015,7016,7017,7018,7019,7020,7021,7022,7023,7024,7025,7026,7027,\n7028,1716,7029,7030,7031,7032,7033,7034,7035,7036,7037,7038,7039,7040,7041,7042,\n7043,7044,7045,7046,7047,7048,7049,7050,7051,7052,7053,7054,7055,7056,7057,7058,\n7059,7060,7061,7062,7063,7064,7065,7066,7067,7068,7069,7070,7071,7072,7073,7074,\n7075,7076,7077,7078,7079,7080,7081,7082,7083,7084,7085,7086,7087,7088,7089,7090,\n7091,7092,7093,7094,7095,7096,7097,7098,7099,7100,7101,7102,7103,7104,7105,7106,\n7107,7108,7109,7110,7111,7112,7113,7114,7115,7116,7117,7118,7119,7120,7121,7122,\n7123,7124,7125,7126,7127,7128,7129,7130,7131,7132,7133,7134,7135,7136,7137,7138,\n7139,7140,7141,7142,7143,7144,7145,7146,7147,7148,7149,7150,7151,7152,7153,7154,\n7155,7156,7157,7158,7159,7160,7161,7162,7163,7164,7165,7166,7167,7168,7169,7170,\n7171,7172,7173,7174,7175,7176,7177,7178,7179,7180,7181,7182,7183,7184,7185,7186,\n7187,7188,7189,7190,7191,7192,7193,7194,7195,7196,7197,7198,7199,7200,7201,7202,\n7203,7204,7205,7206,7207,1395,7208,7209,7210,7211,7212,7213,1717,7214,7215,7216,\n7217,7218,7219,7220,7221,7222,7223,7224,7225,7226,7227,7228,7229,7230,7231,7232,\n7233,7234,7235,7236,7237,7238,7239,7240,7241,7242,7243,7244,7245,7246,7247,7248,\n7249,7250,7251,7252,7253,7254,7255,7256,7257,7258,7259,7260,7261,7262,7263,7264,\n7265,7266,7267,7268,7269,7270,7271,7272,7273,7274,7275,7276,7277,7278,7279,7280,\n7281,7282,7283,7284,7285,7286,7287,7288,7289,7290,7291,7292,7293,7294,7295,7296,\n7297,7298,7299,7300,7301,7302,7303,7304,7305,7306,7307,7308,7309,7310,7311,7312,\n7313,1718,7314,7315,7316,7317,7318,7319,7320,7321,7322,7323,7324,7325,7326,7327,\n7328,7329,7330,7331,7332,7333,7334,7335,7336,7337,7338,7339,7340,7341,7342,7343,\n7344,7345,7346,7347,7348,7349,7350,7351,7352,7353,7354,7355,7356,7357,7358,7359,\n7360,7361,7362,7363,7364,7365,7366,7367,7368,7369,7370,7371,7372,7373,7374,7375,\n7376,7377,7378,7379,7380,7381,7382,7383,7384,7385,7386,7387,7388,7389,7390,7391,\n7392,7393,7394,7395,7396,7397,7398,7399,7400,7401,7402,7403,7404,7405,7406,7407,\n7408,7409,7410,7411,7412,7413,7414,7415,7416,7417,7418,7419,7420,7421,7422,7423,\n7424,7425,7426,7427,7428,7429,7430,7431,7432,7433,7434,7435,7436,7437,7438,7439,\n7440,7441,7442,7443,7444,7445,7446,7447,7448,7449,7450,7451,7452,7453,7454,7455,\n7456,7457,7458,7459,7460,7461,7462,7463,7464,7465,7466,7467,7468,7469,7470,7471,\n7472,7473,7474,7475,7476,7477,7478,7479,7480,7481,7482,7483,7484,7485,7486,7487,\n7488,7489,7490,7491,7492,7493,7494,7495,7496,7497,7498,7499,7500,7501,7502,7503,\n7504,7505,7506,7507,7508,7509,7510,7511,7512,7513,7514,7515,7516,7517,7518,7519,\n7520,7521,7522,7523,7524,7525,7526,7527,7528,7529,7530,7531,7532,7533,7534,7535,\n7536,7537,7538,7539,7540,7541,7542,7543,7544,7545,7546,7547,7548,7549,7550,7551,\n7552,7553,7554,7555,7556,7557,7558,7559,7560,7561,7562,7563,7564,7565,7566,7567,\n7568,7569,7570,7571,7572,7573,7574,7575,7576,7577,7578,7579,7580,7581,7582,7583,\n7584,7585,7586,7587,7588,7589,7590,7591,7592,7593,7594,7595,7596,7597,7598,7599,\n7600,7601,7602,7603,7604,7605,7606,7607,7608,7609,7610,7611,7612,7613,7614,7615,\n7616,7617,7618,7619,7620,7621,7622,7623,7624,7625,7626,7627,7628,7629,7630,7631,\n7632,7633,7634,7635,7636,7637,7638,7639,7640,7641,7642,7643,7644,7645,7646,7647,\n7648,7649,7650,7651,7652,7653,7654,7655,7656,7657,7658,7659,7660,7661,7662,7663,\n7664,7665,7666,7667,7668,7669,7670,7671,7672,7673,7674,7675,7676,7677,7678,7679,\n7680,7681,7682,7683,7684,7685,7686,7687,7688,7689,7690,7691,7692,7693,7694,7695,\n7696,7697,7698,7699,7700,7701,7702,7703,7704,7705,7706,7707,7708,7709,7710,7711,\n7712,7713,7714,7715,7716,7717,7718,7719,7720,7721,7722,7723,7724,7725,7726,7727,\n7728,7729,7730,7731,7732,7733,7734,7735,7736,7737,7738,7739,7740,7741,7742,7743,\n7744,7745,7746,7747,7748,7749,7750,7751,7752,7753,7754,7755,7756,7757,7758,7759,\n7760,7761,7762,7763,7764,7765,7766,7767,7768,7769,7770,7771,7772,7773,7774,7775,\n7776,7777,7778,7779,7780,7781,7782,7783,7784,7785,7786,7787,7788,7789,7790,7791,\n7792,7793,7794,7795,7796,7797,7798,7799,7800,7801,7802,7803,7804,7805,7806,7807,\n7808,7809,7810,7811,7812,7813,7814,7815,7816,7817,7818,7819,7820,7821,7822,7823,\n7824,7825,7826,7827,7828,7829,7830,7831,7832,7833,7834,7835,7836,7837,7838,7839,\n7840,7841,7842,7843,7844,7845,7846,7847,7848,7849,7850,7851,7852,7853,7854,7855,\n7856,7857,7858,7859,7860,7861,7862,7863,7864,7865,7866,7867,7868,7869,7870,7871,\n7872,7873,7874,7875,7876,7877,7878,7879,7880,7881,7882,7883,7884,7885,7886,7887,\n7888,7889,7890,7891,7892,7893,7894,7895,7896,7897,7898,7899,7900,7901,7902,7903,\n7904,7905,7906,7907,7908,7909,7910,7911,7912,7913,7914,7915,7916,7917,7918,7919,\n7920,7921,7922,7923,7924,7925,7926,7927,7928,7929,7930,7931,7932,7933,7934,7935,\n7936,7937,7938,7939,7940,7941,7942,7943,7944,7945,7946,7947,7948,7949,7950,7951,\n7952,7953,7954,7955,7956,7957,7958,7959,7960,7961,7962,7963,7964,7965,7966,7967,\n7968,7969,7970,7971,7972,7973,7974,7975,7976,7977,7978,7979,7980,7981,7982,7983,\n7984,7985,7986,7987,7988,7989,7990,7991,7992,7993,7994,7995,7996,7997,7998,7999,\n8000,8001,8002,8003,8004,8005,8006,8007,8008,8009,8010,8011,8012,8013,8014,8015,\n8016,8017,8018,8019,8020,8021,8022,8023,8024,8025,8026,8027,8028,8029,8030,8031,\n8032,8033,8034,8035,8036,8037,8038,8039,8040,8041,8042,8043,8044,8045,8046,8047,\n8048,8049,8050,8051,8052,8053,8054,8055,8056,8057,8058,8059,8060,8061,8062,8063,\n8064,8065,8066,8067,8068,8069,8070,8071,8072,8073,8074,8075,8076,8077,8078,8079,\n8080,8081,8082,8083,8084,8085,8086,8087,8088,8089,8090,8091,8092,8093,8094,8095,\n8096,8097,8098,8099,8100,8101,8102,8103,8104,8105,8106,8107,8108,8109,8110,8111,\n8112,8113,8114,8115,8116,8117,8118,8119,8120,8121,8122,8123,8124,8125,8126,8127,\n8128,8129,8130,8131,8132,8133,8134,8135,8136,8137,8138,8139,8140,8141,8142,8143,\n8144,8145,8146,8147,8148,8149,8150,8151,8152,8153,8154,8155,8156,8157,8158,8159,\n8160,8161,8162,8163,8164,8165,8166,8167,8168,8169,8170,8171,8172,8173,8174,8175,\n8176,8177,8178,8179,8180,8181,8182,8183,8184,8185,8186,8187,8188,8189,8190,8191,\n8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,\n8208,8209,8210,8211,8212,8213,8214,8215,8216,8217,8218,8219,8220,8221,8222,8223,\n8224,8225,8226,8227,8228,8229,8230,8231,8232,8233,8234,8235,8236,8237,8238,8239,\n8240,8241,8242,8243,8244,8245,8246,8247,8248,8249,8250,8251,8252,8253,8254,8255,\n8256,8257,8258,8259,8260,8261,8262,8263,8264,8265,8266,8267,8268,8269,8270,8271,\n8272,8273,8274,8275,8276,8277,8278,8279,8280,8281,8282,8283,8284,8285,8286,8287,\n8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,\n8304,8305,8306,8307,8308,8309,8310,8311,8312,8313,8314,8315,8316,8317,8318,8319,\n8320,8321,8322,8323,8324,8325,8326,8327,8328,8329,8330,8331,8332,8333,8334,8335,\n8336,8337,8338,8339,8340,8341,8342,8343,8344,8345,8346,8347,8348,8349,8350,8351,\n8352,8353,8354,8355,8356,8357,8358,8359,8360,8361,8362,8363,8364,8365,8366,8367,\n8368,8369,8370,8371,8372,8373,8374,8375,8376,8377,8378,8379,8380,8381,8382,8383,\n8384,8385,8386,8387,8388,8389,8390,8391,8392,8393,8394,8395,8396,8397,8398,8399,\n8400,8401,8402,8403,8404,8405,8406,8407,8408,8409,8410,8411,8412,8413,8414,8415,\n8416,8417,8418,8419,8420,8421,8422,8423,8424,8425,8426,8427,8428,8429,8430,8431,\n8432,8433,8434,8435,8436,8437,8438,8439,8440,8441,8442,8443,8444,8445,8446,8447,\n8448,8449,8450,8451,8452,8453,8454,8455,8456,8457,8458,8459,8460,8461,8462,8463,\n8464,8465,8466,8467,8468,8469,8470,8471,8472,8473,8474,8475,8476,8477,8478,8479,\n8480,8481,8482,8483,8484,8485,8486,8487,8488,8489,8490,8491,8492,8493,8494,8495,\n8496,8497,8498,8499,8500,8501,8502,8503,8504,8505,8506,8507,8508,8509,8510,8511,\n8512,8513,8514,8515,8516,8517,8518,8519,8520,8521,8522,8523,8524,8525,8526,8527,\n8528,8529,8530,8531,8532,8533,8534,8535,8536,8537,8538,8539,8540,8541,8542,8543,\n8544,8545,8546,8547,8548,8549,8550,8551,8552,8553,8554,8555,8556,8557,8558,8559,\n8560,8561,8562,8563,8564,8565,8566,8567,8568,8569,8570,8571,8572,8573,8574,8575,\n8576,8577,8578,8579,8580,8581,8582,8583,8584,8585,8586,8587,8588,8589,8590,8591,\n8592,8593,8594,8595,8596,8597,8598,8599,8600,8601,8602,8603,8604,8605,8606,8607,\n8608,8609,8610,8611,8612,8613,8614,8615,8616,8617,8618,8619,8620,8621,8622,8623,\n8624,8625,8626,8627,8628,8629,8630,8631,8632,8633,8634,8635,8636,8637,8638,8639,\n8640,8641,8642,8643,8644,8645,8646,8647,8648,8649,8650,8651,8652,8653,8654,8655,\n8656,8657,8658,8659,8660,8661,8662,8663,8664,8665,8666,8667,8668,8669,8670,8671,\n8672,8673,8674,8675,8676,8677,8678,8679,8680,8681,8682,8683,8684,8685,8686,8687,\n8688,8689,8690,8691,8692,8693,8694,8695,8696,8697,8698,8699,8700,8701,8702,8703,\n8704,8705,8706,8707,8708,8709,8710,8711,8712,8713,8714,8715,8716,8717,8718,8719,\n8720,8721,8722,8723,8724,8725,8726,8727,8728,8729,8730,8731,8732,8733,8734,8735,\n8736,8737,8738,8739,8740,8741)"},{"col":4,"comment":"Prepares the given HTTP auth data.","endLoc":466,"header":"def prepare_auth(self, auth, url='')","id":1401,"name":"prepare_auth","nodeType":"Function","startLoc":446,"text":"def prepare_auth(self, auth, url=''):\n \"\"\"Prepares the given HTTP auth data.\"\"\"\n\n # If no Auth is explicitly provided, extract it from the URL first.\n if auth is None:\n url_auth = get_auth_from_url(self.url)\n auth = url_auth if any(url_auth) else None\n\n if auth:\n if isinstance(auth, tuple) and len(auth) == 2:\n # special-case basic HTTP auth\n auth = HTTPBasicAuth(*auth)\n\n # Allow auth to make its changes.\n r = auth(self)\n\n # Update self to reflect the auth changes.\n self.__dict__.update(r.__dict__)\n\n # Recompute Content-Length\n self.prepare_content_length(self.body)"},{"col":4,"comment":"null","endLoc":253,"header":"def __init__(self, level: _Level = 0) -> None","id":1402,"name":"__init__","nodeType":"Function","startLoc":253,"text":"def __init__(self, level: _Level = 0) -> None: ..."},{"col":4,"comment":"null","endLoc":254,"header":"def get_name(self) -> str","id":1403,"name":"get_name","nodeType":"Function","startLoc":254,"text":"def get_name(self) -> str: ... # undocumented"},{"col":4,"comment":"null","endLoc":255,"header":"def set_name(self, name: str) -> None","id":1404,"name":"set_name","nodeType":"Function","startLoc":255,"text":"def set_name(self, name: str) -> None: ... # undocumented"},{"col":4,"comment":"null","endLoc":256,"header":"def createLock(self) -> None","id":1405,"name":"createLock","nodeType":"Function","startLoc":256,"text":"def createLock(self) -> None: ..."},{"col":4,"comment":"null","endLoc":257,"header":"def acquire(self) -> None","id":1406,"name":"acquire","nodeType":"Function","startLoc":257,"text":"def acquire(self) -> None: ..."},{"col":4,"comment":"null","endLoc":258,"header":"def release(self) -> None","id":1407,"name":"release","nodeType":"Function","startLoc":258,"text":"def release(self) -> None: ..."},{"col":4,"comment":"null","endLoc":259,"header":"def setLevel(self, level: _Level) -> None","id":1408,"name":"setLevel","nodeType":"Function","startLoc":259,"text":"def setLevel(self, level: _Level) -> None: ..."},{"col":4,"comment":"null","endLoc":260,"header":"def setFormatter(self, fmt: Formatter | None) -> None","id":1409,"name":"setFormatter","nodeType":"Function","startLoc":260,"text":"def setFormatter(self, fmt: Formatter | None) -> None: ..."},{"col":4,"comment":"null","endLoc":261,"header":"def flush(self) -> None","id":1410,"name":"flush","nodeType":"Function","startLoc":261,"text":"def flush(self) -> None: ..."},{"col":4,"comment":"null","endLoc":262,"header":"def close(self) -> None","id":1411,"name":"close","nodeType":"Function","startLoc":262,"text":"def close(self) -> None: ..."},{"col":4,"comment":"null","endLoc":263,"header":"def handle(self, record: LogRecord) -> bool","id":1412,"name":"handle","nodeType":"Function","startLoc":263,"text":"def handle(self, record: LogRecord) -> bool: ..."},{"col":4,"comment":"null","endLoc":264,"header":"def handleError(self, record: LogRecord) -> None","id":1413,"name":"handleError","nodeType":"Function","startLoc":264,"text":"def handleError(self, record: LogRecord) -> None: ..."},{"col":4,"comment":"null","endLoc":265,"header":"def format(self, record: LogRecord) -> str","id":1414,"name":"format","nodeType":"Function","startLoc":265,"text":"def format(self, record: LogRecord) -> str: ..."},{"col":4,"comment":"null","endLoc":266,"header":"def emit(self, record: LogRecord) -> None","id":1415,"name":"emit","nodeType":"Function","startLoc":266,"text":"def emit(self, record: LogRecord) -> None: ..."},{"attributeType":"int","col":4,"comment":"null","endLoc":249,"id":1416,"name":"level","nodeType":"Attribute","startLoc":249,"text":"level"},{"attributeType":"Formatter | None","col":4,"comment":"null","endLoc":250,"id":1417,"name":"formatter","nodeType":"Attribute","startLoc":250,"text":"formatter"},{"col":4,"comment":"Prepares the given hooks.","endLoc":484,"header":"def prepare_hooks(self, hooks)","id":1419,"name":"prepare_hooks","nodeType":"Function","startLoc":481,"text":"def prepare_hooks(self, hooks):\n \"\"\"Prepares the given hooks.\"\"\"\n for event in hooks:\n self.register_hook(event, hooks[event])"},{"col":4,"comment":"null","endLoc":295,"header":"def __repr__(self)","id":1420,"name":"__repr__","nodeType":"Function","startLoc":294,"text":"def __repr__(self):\n return '' % (self.method)"},{"col":4,"comment":"null","endLoc":304,"header":"def copy(self)","id":1421,"name":"copy","nodeType":"Function","startLoc":297,"text":"def copy(self):\n p = PreparedRequest()\n p.method = self.method\n p.url = self.url\n p.headers = self.headers.copy()\n p.body = self.body\n p.hooks = self.hooks\n return p"},{"attributeType":"Lock | None","col":4,"comment":"null","endLoc":251,"id":1422,"name":"lock","nodeType":"Attribute","startLoc":251,"text":"lock"},{"attributeType":"null","col":8,"comment":"null","endLoc":211,"id":1423,"name":"proxy","nodeType":"Attribute","startLoc":211,"text":"self.proxy"},{"attributeType":"null","col":8,"comment":"null","endLoc":272,"id":1424,"name":"headers","nodeType":"Attribute","startLoc":272,"text":"self.headers"},{"attributeType":"null","col":8,"comment":"null","endLoc":268,"id":1425,"name":"method","nodeType":"Attribute","startLoc":268,"text":"self.method"},{"attributeType":"str | None","col":4,"comment":"null","endLoc":252,"id":1426,"name":"name","nodeType":"Attribute","startLoc":252,"text":"name"},{"attributeType":"null","col":8,"comment":"null","endLoc":274,"id":1427,"name":"body","nodeType":"Attribute","startLoc":274,"text":"self.body"},{"attributeType":"null","col":8,"comment":"null","endLoc":276,"id":1428,"name":"hooks","nodeType":"Attribute","startLoc":276,"text":"self.hooks"},{"className":"NullHandler","col":4,"comment":"null","endLoc":36,"id":1429,"nodeType":"Class","startLoc":34,"text":"class NullHandler(logging.Handler):\n def emit(self, record):\n pass"},{"col":8,"comment":"null","endLoc":36,"header":"def emit(self, record)","id":1430,"name":"emit","nodeType":"Function","startLoc":35,"text":"def emit(self, record):\n pass"},{"col":0,"comment":"\n Helper for quickly adding a StreamHandler to the logger. Useful for\n debugging.\n\n Returns the handler after adding it.\n ","endLoc":55,"header":"def add_stderr_logger(level=logging.DEBUG)","id":1431,"name":"add_stderr_logger","nodeType":"Function","startLoc":40,"text":"def add_stderr_logger(level=logging.DEBUG):\n \"\"\"\n Helper for quickly adding a StreamHandler to the logger. Useful for\n debugging.\n\n Returns the handler after adding it.\n \"\"\"\n # This method needs to be in this __init__.py to get the __name__ correct\n # even if urllib3 is vendored within another package.\n logger = logging.getLogger(__name__)\n handler = logging.StreamHandler()\n handler.setFormatter(logging.Formatter('%(asctime)s %(levelname)s %(message)s'))\n logger.addHandler(handler)\n logger.setLevel(level)\n logger.debug('Added an stderr logging handler to logger: %s' % __name__)\n return handler"},{"attributeType":"TypedDict","col":8,"comment":"null","endLoc":212,"id":1432,"name":"proxy_headers","nodeType":"Attribute","startLoc":212,"text":"self.proxy_headers"},{"attributeType":"null","col":8,"comment":"null","endLoc":270,"id":1433,"name":"url","nodeType":"Attribute","startLoc":270,"text":"self.url"},{"attributeType":"null","col":0,"comment":"null","endLoc":21,"id":1434,"name":"__all__","nodeType":"Attribute","startLoc":21,"text":"__all__"},{"attributeType":"TypedDict","col":0,"comment":"null","endLoc":24,"id":1435,"name":"pool_classes_by_scheme","nodeType":"Attribute","startLoc":24,"text":"pool_classes_by_scheme"},{"attributeType":"Logger","col":0,"comment":"null","endLoc":29,"id":1436,"name":"log","nodeType":"Attribute","startLoc":29,"text":"log"},{"attributeType":"(str, str, str, str, str)","col":0,"comment":"null","endLoc":31,"id":1437,"name":"SSL_KEYWORDS","nodeType":"Attribute","startLoc":31,"text":"SSL_KEYWORDS"},{"col":0,"comment":"","endLoc":7,"header":"poolmanager.py#","id":1438,"name":"","nodeType":"Function","startLoc":7,"text":"try: # Python 3\n from urllib.parse import urljoin\nexcept ImportError:\n from urlparse import urljoin\n\n__all__ = ['PoolManager', 'ProxyManager', 'proxy_from_url']\n\npool_classes_by_scheme = {\n 'http': HTTPConnectionPool,\n 'https': HTTPSConnectionPool,\n}\n\nlog = logging.getLogger(__name__)\n\nSSL_KEYWORDS = ('key_file', 'cert_file', 'cert_reqs', 'ca_certs',\n 'ssl_version')"},{"col":0,"comment":"Dispatches a hook dictionary on a given piece of data.","endLoc":45,"header":"def dispatch_hook(key, hooks, hook_data, **kwargs)","id":1439,"name":"dispatch_hook","nodeType":"Function","startLoc":29,"text":"def dispatch_hook(key, hooks, hook_data, **kwargs):\n \"\"\"Dispatches a hook dictionary on a given piece of data.\"\"\"\n\n hooks = hooks or dict()\n\n if key in hooks:\n hooks = hooks.get(key)\n\n if hasattr(hooks, '__call__'):\n hooks = [hooks]\n\n for hook in hooks:\n _hook_data = hook(hook_data, **kwargs)\n if _hook_data is not None:\n hook_data = _hook_data\n\n return hook_data"},{"col":0,"comment":"","endLoc":7,"header":"filepost.py#","id":1440,"name":"","nodeType":"Function","startLoc":7,"text":"writer = codecs.lookup('utf-8')[3]"},{"id":1442,"name":"requests/packages/urllib3/packages","nodeType":"Package"},{"fileName":"six.py","filePath":"requests/packages/urllib3/packages","id":1443,"nodeType":"File","text":"\"\"\"Utilities for writing code that runs on Python 2 and 3\"\"\"\n\n#Copyright (c) 2010-2011 Benjamin Peterson\n\n#Permission is hereby granted, free of charge, to any person obtaining a copy of\n#this software and associated documentation files (the \"Software\"), to deal in\n#the Software without restriction, including without limitation the rights to\n#use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\n#the Software, and to permit persons to whom the Software is furnished to do so,\n#subject to the following conditions:\n\n#The above copyright notice and this permission notice shall be included in all\n#copies or substantial portions of the Software.\n\n#THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n#IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\n#FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\n#COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\n#IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\n#CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nimport operator\nimport sys\nimport types\n\n__author__ = \"Benjamin Peterson \"\n__version__ = \"1.2.0\" # Revision 41c74fef2ded\n\n\n# True if we are running on Python 3.\nPY3 = sys.version_info[0] == 3\n\nif PY3:\n string_types = str,\n integer_types = int,\n class_types = type,\n text_type = str\n binary_type = bytes\n\n MAXSIZE = sys.maxsize\nelse:\n string_types = basestring,\n integer_types = (int, long)\n class_types = (type, types.ClassType)\n text_type = unicode\n binary_type = str\n\n if sys.platform.startswith(\"java\"):\n # Jython always uses 32 bits.\n MAXSIZE = int((1 << 31) - 1)\n else:\n # It's possible to have sizeof(long) != sizeof(Py_ssize_t).\n class X(object):\n def __len__(self):\n return 1 << 31\n try:\n len(X())\n except OverflowError:\n # 32-bit\n MAXSIZE = int((1 << 31) - 1)\n else:\n # 64-bit\n MAXSIZE = int((1 << 63) - 1)\n del X\n\n\ndef _add_doc(func, doc):\n \"\"\"Add documentation to a function.\"\"\"\n func.__doc__ = doc\n\n\ndef _import_module(name):\n \"\"\"Import module, returning the module after the last dot.\"\"\"\n __import__(name)\n return sys.modules[name]\n\n\nclass _LazyDescr(object):\n\n def __init__(self, name):\n self.name = name\n\n def __get__(self, obj, tp):\n result = self._resolve()\n setattr(obj, self.name, result)\n # This is a bit ugly, but it avoids running this again.\n delattr(tp, self.name)\n return result\n\n\nclass MovedModule(_LazyDescr):\n\n def __init__(self, name, old, new=None):\n super(MovedModule, self).__init__(name)\n if PY3:\n if new is None:\n new = name\n self.mod = new\n else:\n self.mod = old\n\n def _resolve(self):\n return _import_module(self.mod)\n\n\nclass MovedAttribute(_LazyDescr):\n\n def __init__(self, name, old_mod, new_mod, old_attr=None, new_attr=None):\n super(MovedAttribute, self).__init__(name)\n if PY3:\n if new_mod is None:\n new_mod = name\n self.mod = new_mod\n if new_attr is None:\n if old_attr is None:\n new_attr = name\n else:\n new_attr = old_attr\n self.attr = new_attr\n else:\n self.mod = old_mod\n if old_attr is None:\n old_attr = name\n self.attr = old_attr\n\n def _resolve(self):\n module = _import_module(self.mod)\n return getattr(module, self.attr)\n\n\n\nclass _MovedItems(types.ModuleType):\n \"\"\"Lazy loading of moved objects\"\"\"\n\n\n_moved_attributes = [\n MovedAttribute(\"cStringIO\", \"cStringIO\", \"io\", \"StringIO\"),\n MovedAttribute(\"filter\", \"itertools\", \"builtins\", \"ifilter\", \"filter\"),\n MovedAttribute(\"input\", \"__builtin__\", \"builtins\", \"raw_input\", \"input\"),\n MovedAttribute(\"map\", \"itertools\", \"builtins\", \"imap\", \"map\"),\n MovedAttribute(\"reload_module\", \"__builtin__\", \"imp\", \"reload\"),\n MovedAttribute(\"reduce\", \"__builtin__\", \"functools\"),\n MovedAttribute(\"StringIO\", \"StringIO\", \"io\"),\n MovedAttribute(\"xrange\", \"__builtin__\", \"builtins\", \"xrange\", \"range\"),\n MovedAttribute(\"zip\", \"itertools\", \"builtins\", \"izip\", \"zip\"),\n\n MovedModule(\"builtins\", \"__builtin__\"),\n MovedModule(\"configparser\", \"ConfigParser\"),\n MovedModule(\"copyreg\", \"copy_reg\"),\n MovedModule(\"http_cookiejar\", \"cookielib\", \"http.cookiejar\"),\n MovedModule(\"http_cookies\", \"Cookie\", \"http.cookies\"),\n MovedModule(\"html_entities\", \"htmlentitydefs\", \"html.entities\"),\n MovedModule(\"html_parser\", \"HTMLParser\", \"html.parser\"),\n MovedModule(\"http_client\", \"httplib\", \"http.client\"),\n MovedModule(\"BaseHTTPServer\", \"BaseHTTPServer\", \"http.server\"),\n MovedModule(\"CGIHTTPServer\", \"CGIHTTPServer\", \"http.server\"),\n MovedModule(\"SimpleHTTPServer\", \"SimpleHTTPServer\", \"http.server\"),\n MovedModule(\"cPickle\", \"cPickle\", \"pickle\"),\n MovedModule(\"queue\", \"Queue\"),\n MovedModule(\"reprlib\", \"repr\"),\n MovedModule(\"socketserver\", \"SocketServer\"),\n MovedModule(\"tkinter\", \"Tkinter\"),\n MovedModule(\"tkinter_dialog\", \"Dialog\", \"tkinter.dialog\"),\n MovedModule(\"tkinter_filedialog\", \"FileDialog\", \"tkinter.filedialog\"),\n MovedModule(\"tkinter_scrolledtext\", \"ScrolledText\", \"tkinter.scrolledtext\"),\n MovedModule(\"tkinter_simpledialog\", \"SimpleDialog\", \"tkinter.simpledialog\"),\n MovedModule(\"tkinter_tix\", \"Tix\", \"tkinter.tix\"),\n MovedModule(\"tkinter_constants\", \"Tkconstants\", \"tkinter.constants\"),\n MovedModule(\"tkinter_dnd\", \"Tkdnd\", \"tkinter.dnd\"),\n MovedModule(\"tkinter_colorchooser\", \"tkColorChooser\",\n \"tkinter.colorchooser\"),\n MovedModule(\"tkinter_commondialog\", \"tkCommonDialog\",\n \"tkinter.commondialog\"),\n MovedModule(\"tkinter_tkfiledialog\", \"tkFileDialog\", \"tkinter.filedialog\"),\n MovedModule(\"tkinter_font\", \"tkFont\", \"tkinter.font\"),\n MovedModule(\"tkinter_messagebox\", \"tkMessageBox\", \"tkinter.messagebox\"),\n MovedModule(\"tkinter_tksimpledialog\", \"tkSimpleDialog\",\n \"tkinter.simpledialog\"),\n MovedModule(\"urllib_robotparser\", \"robotparser\", \"urllib.robotparser\"),\n MovedModule(\"winreg\", \"_winreg\"),\n]\nfor attr in _moved_attributes:\n setattr(_MovedItems, attr.name, attr)\ndel attr\n\nmoves = sys.modules[__name__ + \".moves\"] = _MovedItems(\"moves\")\n\n\ndef add_move(move):\n \"\"\"Add an item to six.moves.\"\"\"\n setattr(_MovedItems, move.name, move)\n\n\ndef remove_move(name):\n \"\"\"Remove item from six.moves.\"\"\"\n try:\n delattr(_MovedItems, name)\n except AttributeError:\n try:\n del moves.__dict__[name]\n except KeyError:\n raise AttributeError(\"no such move, %r\" % (name,))\n\n\nif PY3:\n _meth_func = \"__func__\"\n _meth_self = \"__self__\"\n\n _func_code = \"__code__\"\n _func_defaults = \"__defaults__\"\n\n _iterkeys = \"keys\"\n _itervalues = \"values\"\n _iteritems = \"items\"\nelse:\n _meth_func = \"im_func\"\n _meth_self = \"im_self\"\n\n _func_code = \"func_code\"\n _func_defaults = \"func_defaults\"\n\n _iterkeys = \"iterkeys\"\n _itervalues = \"itervalues\"\n _iteritems = \"iteritems\"\n\n\ntry:\n advance_iterator = next\nexcept NameError:\n def advance_iterator(it):\n return it.next()\nnext = advance_iterator\n\n\nif PY3:\n def get_unbound_function(unbound):\n return unbound\n\n Iterator = object\n\n def callable(obj):\n return any(\"__call__\" in klass.__dict__ for klass in type(obj).__mro__)\nelse:\n def get_unbound_function(unbound):\n return unbound.im_func\n\n class Iterator(object):\n\n def next(self):\n return type(self).__next__(self)\n\n callable = callable\n_add_doc(get_unbound_function,\n \"\"\"Get the function out of a possibly unbound function\"\"\")\n\n\nget_method_function = operator.attrgetter(_meth_func)\nget_method_self = operator.attrgetter(_meth_self)\nget_function_code = operator.attrgetter(_func_code)\nget_function_defaults = operator.attrgetter(_func_defaults)\n\n\ndef iterkeys(d):\n \"\"\"Return an iterator over the keys of a dictionary.\"\"\"\n return iter(getattr(d, _iterkeys)())\n\ndef itervalues(d):\n \"\"\"Return an iterator over the values of a dictionary.\"\"\"\n return iter(getattr(d, _itervalues)())\n\ndef iteritems(d):\n \"\"\"Return an iterator over the (key, value) pairs of a dictionary.\"\"\"\n return iter(getattr(d, _iteritems)())\n\n\nif PY3:\n def b(s):\n return s.encode(\"latin-1\")\n def u(s):\n return s\n if sys.version_info[1] <= 1:\n def int2byte(i):\n return bytes((i,))\n else:\n # This is about 2x faster than the implementation above on 3.2+\n int2byte = operator.methodcaller(\"to_bytes\", 1, \"big\")\n import io\n StringIO = io.StringIO\n BytesIO = io.BytesIO\nelse:\n def b(s):\n return s\n def u(s):\n return unicode(s, \"unicode_escape\")\n int2byte = chr\n import StringIO\n StringIO = BytesIO = StringIO.StringIO\n_add_doc(b, \"\"\"Byte literal\"\"\")\n_add_doc(u, \"\"\"Text literal\"\"\")\n\n\nif PY3:\n import builtins\n exec_ = getattr(builtins, \"exec\")\n\n\n def reraise(tp, value, tb=None):\n if value.__traceback__ is not tb:\n raise value.with_traceback(tb)\n raise value\n\n\n print_ = getattr(builtins, \"print\")\n del builtins\n\nelse:\n def exec_(code, globs=None, locs=None):\n \"\"\"Execute code in a namespace.\"\"\"\n if globs is None:\n frame = sys._getframe(1)\n globs = frame.f_globals\n if locs is None:\n locs = frame.f_locals\n del frame\n elif locs is None:\n locs = globs\n exec(\"\"\"exec code in globs, locs\"\"\")\n\n\n exec_(\"\"\"def reraise(tp, value, tb=None):\n raise tp, value, tb\n\"\"\")\n\n\n def print_(*args, **kwargs):\n \"\"\"The new-style print function.\"\"\"\n fp = kwargs.pop(\"file\", sys.stdout)\n if fp is None:\n return\n def write(data):\n if not isinstance(data, basestring):\n data = str(data)\n fp.write(data)\n want_unicode = False\n sep = kwargs.pop(\"sep\", None)\n if sep is not None:\n if isinstance(sep, unicode):\n want_unicode = True\n elif not isinstance(sep, str):\n raise TypeError(\"sep must be None or a string\")\n end = kwargs.pop(\"end\", None)\n if end is not None:\n if isinstance(end, unicode):\n want_unicode = True\n elif not isinstance(end, str):\n raise TypeError(\"end must be None or a string\")\n if kwargs:\n raise TypeError(\"invalid keyword arguments to print()\")\n if not want_unicode:\n for arg in args:\n if isinstance(arg, unicode):\n want_unicode = True\n break\n if want_unicode:\n newline = unicode(\"\\n\")\n space = unicode(\" \")\n else:\n newline = \"\\n\"\n space = \" \"\n if sep is None:\n sep = space\n if end is None:\n end = newline\n for i, arg in enumerate(args):\n if i:\n write(sep)\n write(arg)\n write(end)\n\n_add_doc(reraise, \"\"\"Reraise an exception.\"\"\")\n\n\ndef with_metaclass(meta, base=object):\n \"\"\"Create a base class with a metaclass.\"\"\"\n return meta(\"NewBase\", (base,), {})\n"},{"className":"X","col":8,"comment":"null","endLoc":55,"id":1444,"nodeType":"Class","startLoc":53,"text":"class X(object):\n def __len__(self):\n return 1 << 31"},{"col":12,"comment":"null","endLoc":55,"header":"def __len__(self)","id":1445,"name":"__len__","nodeType":"Function","startLoc":54,"text":"def __len__(self):\n return 1 << 31"},{"className":"_LazyDescr","col":0,"comment":"null","endLoc":88,"id":1446,"nodeType":"Class","startLoc":78,"text":"class _LazyDescr(object):\n\n def __init__(self, name):\n self.name = name\n\n def __get__(self, obj, tp):\n result = self._resolve()\n setattr(obj, self.name, result)\n # This is a bit ugly, but it avoids running this again.\n delattr(tp, self.name)\n return result"},{"col":4,"comment":"null","endLoc":81,"header":"def __init__(self, name)","id":1447,"name":"__init__","nodeType":"Function","startLoc":80,"text":"def __init__(self, name):\n self.name = name"},{"col":4,"comment":"null","endLoc":88,"header":"def __get__(self, obj, tp)","id":1448,"name":"__get__","nodeType":"Function","startLoc":83,"text":"def __get__(self, obj, tp):\n result = self._resolve()\n setattr(obj, self.name, result)\n # This is a bit ugly, but it avoids running this again.\n delattr(tp, self.name)\n return result"},{"attributeType":"null","col":8,"comment":"null","endLoc":81,"id":1452,"name":"name","nodeType":"Attribute","startLoc":81,"text":"self.name"},{"col":4,"comment":"null","endLoc":91,"header":"def get_confidence(self)","id":1453,"name":"get_confidence","nodeType":"Function","startLoc":88,"text":"def get_confidence(self):\n contxtCf = self._mContextAnalyzer.get_confidence()\n distribCf = self._mDistributionAnalyzer.get_confidence()\n return max(contxtCf, distribCf)"},{"className":"MovedModule","col":0,"comment":"null","endLoc":103,"id":1454,"nodeType":"Class","startLoc":91,"text":"class MovedModule(_LazyDescr):\n\n def __init__(self, name, old, new=None):\n super(MovedModule, self).__init__(name)\n if PY3:\n if new is None:\n new = name\n self.mod = new\n else:\n self.mod = old\n\n def _resolve(self):\n return _import_module(self.mod)"},{"col":4,"comment":"null","endLoc":100,"header":"def __init__(self, name, old, new=None)","id":1455,"name":"__init__","nodeType":"Function","startLoc":93,"text":"def __init__(self, name, old, new=None):\n super(MovedModule, self).__init__(name)\n if PY3:\n if new is None:\n new = name\n self.mod = new\n else:\n self.mod = old"},{"col":4,"comment":"null","endLoc":48,"header":"def get_full_url(self)","id":1456,"name":"get_full_url","nodeType":"Function","startLoc":47,"text":"def get_full_url(self):\n return self._r.url"},{"col":4,"comment":"null","endLoc":51,"header":"def is_unverifiable(self)","id":1457,"name":"is_unverifiable","nodeType":"Function","startLoc":50,"text":"def is_unverifiable(self):\n return True"},{"col":4,"comment":"null","endLoc":54,"header":"def has_header(self, name)","id":1458,"name":"has_header","nodeType":"Function","startLoc":53,"text":"def has_header(self, name):\n return name in self._r.headers or name in self._new_headers"},{"col":4,"comment":"null","endLoc":57,"header":"def get_header(self, name, default=None)","id":1459,"name":"get_header","nodeType":"Function","startLoc":56,"text":"def get_header(self, name, default=None):\n return self._r.headers.get(name, self._new_headers.get(name, default))"},{"col":4,"comment":"null","endLoc":103,"header":"def _resolve(self)","id":1460,"name":"_resolve","nodeType":"Function","startLoc":102,"text":"def _resolve(self):\n return _import_module(self.mod)"},{"col":0,"comment":"Import module, returning the module after the last dot.","endLoc":75,"header":"def _import_module(name)","id":1461,"name":"_import_module","nodeType":"Function","startLoc":72,"text":"def _import_module(name):\n \"\"\"Import module, returning the module after the last dot.\"\"\"\n __import__(name)\n return sys.modules[name]"},{"attributeType":"null","col":12,"comment":"null","endLoc":100,"id":1463,"name":"mod","nodeType":"Attribute","startLoc":100,"text":"self.mod"},{"attributeType":"list","col":4,"comment":"null","endLoc":68,"id":1464,"name":"__attrs__","nodeType":"Attribute","startLoc":68,"text":"__attrs__"},{"attributeType":"int","col":8,"comment":"null","endLoc":74,"id":1465,"name":"max_retries","nodeType":"Attribute","startLoc":74,"text":"self.max_retries"},{"attributeType":"CodingStateMachine","col":8,"comment":"null","endLoc":40,"id":1466,"name":"_mCodingSM","nodeType":"Attribute","startLoc":40,"text":"self._mCodingSM"},{"attributeType":"SJISContextAnalysis","col":8,"comment":"null","endLoc":42,"id":1467,"name":"_mContextAnalyzer","nodeType":"Attribute","startLoc":42,"text":"self._mContextAnalyzer"},{"attributeType":"null","col":16,"comment":"null","endLoc":61,"id":1468,"name":"_mState","nodeType":"Attribute","startLoc":61,"text":"self._mState"},{"attributeType":"int","col":8,"comment":"null","endLoc":80,"id":1469,"name":"_pool_connections","nodeType":"Attribute","startLoc":80,"text":"self._pool_connections"},{"attributeType":"SJISDistributionAnalysis","col":8,"comment":"null","endLoc":41,"id":1470,"name":"_mDistributionAnalyzer","nodeType":"Attribute","startLoc":41,"text":"self._mDistributionAnalyzer"},{"attributeType":"int","col":8,"comment":"null","endLoc":81,"id":1471,"name":"_pool_maxsize","nodeType":"Attribute","startLoc":81,"text":"self._pool_maxsize"},{"attributeType":"TypedDict","col":8,"comment":"null","endLoc":76,"id":1472,"name":"proxy_manager","nodeType":"Attribute","startLoc":76,"text":"self.proxy_manager"},{"attributeType":"bool","col":8,"comment":"null","endLoc":82,"id":1473,"name":"_pool_block","nodeType":"Attribute","startLoc":82,"text":"self._pool_block"},{"attributeType":"PoolManager","col":8,"comment":"null","endLoc":111,"id":1475,"name":"poolmanager","nodeType":"Attribute","startLoc":111,"text":"self.poolmanager"},{"attributeType":"TypedDict","col":8,"comment":"null","endLoc":75,"id":1476,"name":"config","nodeType":"Attribute","startLoc":75,"text":"self.config"},{"fileName":"__init__.py","filePath":"requests","id":1477,"nodeType":"File","text":"# -*- coding: utf-8 -*-\n\n# __\n# /__) _ _ _ _ _/ _\n# / ( (- (/ (/ (- _) / _)\n# /\n\n\"\"\"\nrequests HTTP library\n~~~~~~~~~~~~~~~~~~~~~\n\nRequests is an HTTP library, written in Python, for human beings. Basic GET\nusage:\n\n >>> import requests\n >>> r = requests.get('http://python.org')\n >>> r.status_code\n 200\n >>> 'Python is a programming language' in r.content\n True\n\n... or POST:\n\n >>> payload = dict(key1='value1', key2='value2')\n >>> r = requests.post(\"http://httpbin.org/post\", data=payload)\n >>> print(r.text)\n {\n ...\n \"form\": {\n \"key2\": \"value2\",\n \"key1\": \"value1\"\n },\n ...\n }\n\nThe other HTTP methods are supported - see `requests.api`. Full documentation\nis at .\n\n:copyright: (c) 2013 by Kenneth Reitz.\n:license: Apache 2.0, see LICENSE for more details.\n\n\"\"\"\n\n__title__ = 'requests'\n__version__ = '2.0.1'\n__build__ = 0x020001\n__author__ = 'Kenneth Reitz'\n__license__ = 'Apache 2.0'\n__copyright__ = 'Copyright 2013 Kenneth Reitz'\n\n# Attempt to enable urllib3's SNI support, if possible\ntry:\n from .packages.urllib3.contrib import pyopenssl\n pyopenssl.inject_into_urllib3()\nexcept ImportError:\n pass\n\nfrom . import utils\nfrom .models import Request, Response, PreparedRequest\nfrom .api import request, get, head, post, patch, put, delete, options\nfrom .sessions import session, Session\nfrom .status_codes import codes\nfrom .exceptions import (\n RequestException, Timeout, URLRequired,\n TooManyRedirects, HTTPError, ConnectionError\n)\n\n# Set default logging handler to avoid \"No handler found\" warnings.\nimport logging\ntry: # Python 2.7+\n from logging import NullHandler\nexcept ImportError:\n class NullHandler(logging.Handler):\n def emit(self, record):\n pass\n\nlogging.getLogger(__name__).addHandler(NullHandler())\n"},{"attributeType":"null","col":46,"comment":"null","endLoc":16,"id":1478,"name":"TimeoutSauce","nodeType":"Attribute","startLoc":16,"text":"TimeoutSauce"},{"attributeType":"null","col":53,"comment":"null","endLoc":23,"id":1479,"name":"_SSLError","nodeType":"Attribute","startLoc":23,"text":"_SSLError"},{"attributeType":"null","col":54,"comment":"null","endLoc":24,"id":1480,"name":"_HTTPError","nodeType":"Attribute","startLoc":24,"text":"_HTTPError"},{"attributeType":"null","col":55,"comment":"null","endLoc":25,"id":1481,"name":"_ProxyError","nodeType":"Attribute","startLoc":25,"text":"_ProxyError"},{"attributeType":"bool","col":0,"comment":"null","endLoc":30,"id":1482,"name":"DEFAULT_POOLBLOCK","nodeType":"Attribute","startLoc":30,"text":"DEFAULT_POOLBLOCK"},{"attributeType":"int","col":0,"comment":"null","endLoc":31,"id":1483,"name":"DEFAULT_POOLSIZE","nodeType":"Attribute","startLoc":31,"text":"DEFAULT_POOLSIZE"},{"attributeType":"int","col":0,"comment":"null","endLoc":32,"id":1484,"name":"DEFAULT_RETRIES","nodeType":"Attribute","startLoc":32,"text":"DEFAULT_RETRIES"},{"col":0,"comment":"","endLoc":9,"header":"adapters.py#","id":1485,"name":"","nodeType":"Function","startLoc":3,"text":"\"\"\"\nrequests.adapters\n~~~~~~~~~~~~~~~~~\n\nThis module contains the transport adapters that Requests uses to define\nand maintain connections.\n\"\"\"\n\nDEFAULT_POOLBLOCK = False\n\nDEFAULT_POOLSIZE = 10\n\nDEFAULT_RETRIES = 0"},{"col":0,"comment":"Sends a GET request. Returns :class:`Response` object.\n\n :param url: URL for the new :class:`Request` object.\n :param \\*\\*kwargs: Optional arguments that ``request`` takes.\n ","endLoc":55,"header":"def get(url, **kwargs)","id":1489,"name":"get","nodeType":"Function","startLoc":47,"text":"def get(url, **kwargs):\n \"\"\"Sends a GET request. Returns :class:`Response` object.\n\n :param url: URL for the new :class:`Request` object.\n :param \\*\\*kwargs: Optional arguments that ``request`` takes.\n \"\"\"\n\n kwargs.setdefault('allow_redirects', True)\n return request('get', url, **kwargs)"},{"id":1490,"name":"docs/_themes/kr/static","nodeType":"Package"},{"id":1491,"name":"flasky.css_t","nodeType":"TextFile","path":"docs/_themes/kr/static","text":"/*\n * flasky.css_t\n * ~~~~~~~~~~~~\n *\n * :copyright: Copyright 2010 by Armin Ronacher. Modifications by Kenneth Reitz.\n * :license: Flask Design License, see LICENSE for details.\n */\n\n{% set page_width = '940px' %}\n{% set sidebar_width = '220px' %}\n\n@import url(\"basic.css\");\n\n/* -- page layout ----------------------------------------------------------- */\n\nbody {\n font-family: 'goudy old style', 'minion pro', 'bell mt', Georgia, 'Hiragino Mincho Pro';\n font-size: 17px;\n background-color: white;\n color: #000;\n margin: 0;\n padding: 0;\n}\n\ndiv.document {\n width: {{ page_width }};\n margin: 30px auto 0 auto;\n}\n\ndiv.documentwrapper {\n float: left;\n width: 100%;\n}\n\ndiv.bodywrapper {\n margin: 0 0 0 {{ sidebar_width }};\n}\n\ndiv.sphinxsidebar {\n width: {{ sidebar_width }};\n}\n\nhr {\n border: 1px solid #B1B4B6;\n}\n\ndiv.body {\n background-color: #ffffff;\n color: #3E4349;\n padding: 0 30px 0 30px;\n}\n\nimg.floatingflask {\n padding: 0 0 10px 10px;\n float: right;\n}\n\ndiv.footer {\n width: {{ page_width }};\n margin: 20px auto 30px auto;\n font-size: 14px;\n color: #888;\n text-align: right;\n}\n\ndiv.footer a {\n color: #888;\n}\n\ndiv.related {\n display: none;\n}\n\ndiv.sphinxsidebar a {\n color: #444;\n text-decoration: none;\n border-bottom: 1px dotted #999;\n}\n\ndiv.sphinxsidebar a:hover {\n border-bottom: 1px solid #999;\n}\n\ndiv.sphinxsidebar {\n font-size: 14px;\n line-height: 1.5;\n}\n\ndiv.sphinxsidebarwrapper {\n padding: 18px 10px;\n}\n\ndiv.sphinxsidebarwrapper p.logo {\n padding: 0;\n margin: -10px 0 0 -20px;\n text-align: center;\n}\n\ndiv.sphinxsidebar h3,\ndiv.sphinxsidebar h4 {\n font-family: 'Garamond', 'Georgia', serif;\n color: #444;\n font-size: 24px;\n font-weight: normal;\n margin: 0 0 5px 0;\n padding: 0;\n}\n\ndiv.sphinxsidebar h4 {\n font-size: 20px;\n}\n\ndiv.sphinxsidebar h3 a {\n color: #444;\n}\n\ndiv.sphinxsidebar p.logo a,\ndiv.sphinxsidebar h3 a,\ndiv.sphinxsidebar p.logo a:hover,\ndiv.sphinxsidebar h3 a:hover {\n border: none;\n}\n\ndiv.sphinxsidebar p {\n color: #555;\n margin: 10px 0;\n}\n\ndiv.sphinxsidebar ul {\n margin: 10px 0;\n padding: 0;\n color: #000;\n}\n\ndiv.sphinxsidebar input {\n border: 1px solid #ccc;\n font-family: 'Georgia', serif;\n font-size: 1em;\n}\n\n/* -- body styles ----------------------------------------------------------- */\n\na {\n color: #004B6B;\n text-decoration: underline;\n}\n\na:hover {\n color: #6D4100;\n text-decoration: underline;\n}\n\ndiv.body h1,\ndiv.body h2,\ndiv.body h3,\ndiv.body h4,\ndiv.body h5,\ndiv.body h6 {\n font-family: 'Garamond', 'Georgia', serif;\n font-weight: normal;\n margin: 30px 0px 10px 0px;\n padding: 0;\n}\n\ndiv.body h1 { margin-top: 0; padding-top: 0; font-size: 240%; }\ndiv.body h2 { font-size: 180%; }\ndiv.body h3 { font-size: 150%; }\ndiv.body h4 { font-size: 130%; }\ndiv.body h5 { font-size: 100%; }\ndiv.body h6 { font-size: 100%; }\n\na.headerlink {\n color: #ddd;\n padding: 0 4px;\n text-decoration: none;\n}\n\na.headerlink:hover {\n color: #444;\n background: #eaeaea;\n}\n\ndiv.body p, div.body dd, div.body li {\n line-height: 1.4em;\n}\n\ndiv.admonition {\n background: #fafafa;\n margin: 20px -30px;\n padding: 10px 30px;\n border-top: 1px solid #ccc;\n border-bottom: 1px solid #ccc;\n}\n\ndiv.admonition tt.xref, div.admonition a tt {\n border-bottom: 1px solid #fafafa;\n}\n\ndd div.admonition {\n margin-left: -60px;\n padding-left: 60px;\n}\n\ndiv.admonition p.admonition-title {\n font-family: 'Garamond', 'Georgia', serif;\n font-weight: normal;\n font-size: 24px;\n margin: 0 0 10px 0;\n padding: 0;\n line-height: 1;\n}\n\ndiv.admonition p.last {\n margin-bottom: 0;\n}\n\ndiv.highlight {\n background-color: white;\n}\n\ndt:target, .highlight {\n background: #FAF3E8;\n}\n\ndiv.note {\n background-color: #eee;\n border: 1px solid #ccc;\n}\n\ndiv.seealso {\n background-color: #ffc;\n border: 1px solid #ff6;\n}\n\ndiv.topic {\n background-color: #eee;\n}\n\np.admonition-title {\n display: inline;\n}\n\np.admonition-title:after {\n content: \":\";\n}\n\npre, tt {\n font-family: 'Consolas', 'Menlo', 'Deja Vu Sans Mono', 'Bitstream Vera Sans Mono', monospace;\n font-size: 0.9em;\n}\n\nimg.screenshot {\n}\n\ntt.descname, tt.descclassname {\n font-size: 0.95em;\n}\n\ntt.descname {\n padding-right: 0.08em;\n}\n\nimg.screenshot {\n -moz-box-shadow: 2px 2px 4px #eee;\n -webkit-box-shadow: 2px 2px 4px #eee;\n box-shadow: 2px 2px 4px #eee;\n}\n\ntable.docutils {\n border: 1px solid #888;\n -moz-box-shadow: 2px 2px 4px #eee;\n -webkit-box-shadow: 2px 2px 4px #eee;\n box-shadow: 2px 2px 4px #eee;\n}\n\ntable.docutils td, table.docutils th {\n border: 1px solid #888;\n padding: 0.25em 0.7em;\n}\n\ntable.field-list, table.footnote {\n border: none;\n -moz-box-shadow: none;\n -webkit-box-shadow: none;\n box-shadow: none;\n}\n\ntable.footnote {\n margin: 15px 0;\n width: 100%;\n border: 1px solid #eee;\n background: #fdfdfd;\n font-size: 0.9em;\n}\n\ntable.footnote + table.footnote {\n margin-top: -15px;\n border-top: none;\n}\n\ntable.field-list th {\n padding: 0 0.8em 0 0;\n}\n\ntable.field-list td {\n padding: 0;\n}\n\ntable.footnote td.label {\n width: 0px;\n padding: 0.3em 0 0.3em 0.5em;\n}\n\ntable.footnote td {\n padding: 0.3em 0.5em;\n}\n\ndl {\n margin: 0;\n padding: 0;\n}\n\ndl dd {\n margin-left: 30px;\n}\n\nblockquote {\n margin: 0 0 0 30px;\n padding: 0;\n}\n\nul, ol {\n margin: 10px 0 10px 30px;\n padding: 0;\n}\n\npre {\n background: #eee;\n padding: 7px 30px;\n margin: 15px -30px;\n line-height: 1.3em;\n}\n\ndl pre, blockquote pre, li pre {\n margin-left: -60px;\n padding-left: 60px;\n}\n\ndl dl pre {\n margin-left: -90px;\n padding-left: 90px;\n}\n\ntt {\n background-color: #ecf0f3;\n color: #222;\n /* padding: 1px 2px; */\n}\n\ntt.xref, a tt {\n background-color: #FBFBFB;\n border-bottom: 1px solid white;\n}\n\na.reference {\n text-decoration: none;\n border-bottom: 1px dotted #004B6B;\n}\n\na.reference:hover {\n border-bottom: 1px solid #6D4100;\n}\n\na.footnote-reference {\n text-decoration: none;\n font-size: 0.7em;\n vertical-align: top;\n border-bottom: 1px dotted #004B6B;\n}\n\na.footnote-reference:hover {\n border-bottom: 1px solid #6D4100;\n}\n\na:hover tt {\n background: #EEE;\n}\n\n\n@media screen and (max-width: 870px) {\n\n div.sphinxsidebar {\n \tdisplay: none;\n }\n\n div.document {\n width: 100%;\n\n }\n\n div.documentwrapper {\n \tmargin-left: 0;\n \tmargin-top: 0;\n \tmargin-right: 0;\n \tmargin-bottom: 0;\n }\n\n div.bodywrapper {\n \tmargin-top: 0;\n \tmargin-right: 0;\n \tmargin-bottom: 0;\n \tmargin-left: 0;\n }\n\n ul {\n \tmargin-left: 0;\n }\n\n .document {\n \twidth: auto;\n }\n\n .footer {\n \twidth: auto;\n }\n\n .bodywrapper {\n \tmargin: 0;\n }\n\n .footer {\n \twidth: auto;\n }\n\n .github {\n display: none;\n }\n\n\n\n}\n\n\n\n@media screen and (max-width: 875px) {\n\n body {\n margin: 0;\n padding: 20px 30px;\n }\n\n div.documentwrapper {\n float: none;\n background: white;\n }\n\n div.sphinxsidebar {\n display: block;\n float: none;\n width: 102.5%;\n margin: 50px -30px -20px -30px;\n padding: 10px 20px;\n background: #333;\n color: white;\n }\n\n div.sphinxsidebar h3, div.sphinxsidebar h4, div.sphinxsidebar p,\n div.sphinxsidebar h3 a {\n color: white;\n }\n\n div.sphinxsidebar a {\n color: #aaa;\n }\n\n div.sphinxsidebar p.logo {\n display: none;\n }\n\n div.document {\n width: 100%;\n margin: 0;\n }\n\n div.related {\n display: block;\n margin: 0;\n padding: 10px 0 20px 0;\n }\n\n div.related ul,\n div.related ul li {\n margin: 0;\n padding: 0;\n }\n\n div.footer {\n display: none;\n }\n\n div.bodywrapper {\n margin: 0;\n }\n\n div.body {\n min-height: 0;\n padding: 0;\n }\n\n .rtd_doc_footer {\n display: none;\n }\n\n .document {\n width: auto;\n }\n\n .footer {\n width: auto;\n }\n\n .footer {\n width: auto;\n }\n\n .github {\n display: none;\n }\n}\n\n\n/* misc. */\n\n.revsys-inline {\n display: none!important;\n}"},{"col":4,"comment":"Registers a connection adapter to a prefix.\n\n Adapters are sorted in descending order by key length.","endLoc":518,"header":"def mount(self, prefix, adapter)","id":1492,"name":"mount","nodeType":"Function","startLoc":511,"text":"def mount(self, prefix, adapter):\n \"\"\"Registers a connection adapter to a prefix.\n\n Adapters are sorted in descending order by key length.\"\"\"\n self.adapters[prefix] = adapter\n keys_to_move = [k for k in self.adapters if len(k) < len(prefix)]\n for key in keys_to_move:\n self.adapters[key] = self.adapters.pop(key)"},{"col":0,"comment":"Sends a HEAD request. Returns :class:`Response` object.\n\n :param url: URL for the new :class:`Request` object.\n :param \\*\\*kwargs: Optional arguments that ``request`` takes.\n ","endLoc":77,"header":"def head(url, **kwargs)","id":1493,"name":"head","nodeType":"Function","startLoc":69,"text":"def head(url, **kwargs):\n \"\"\"Sends a HEAD request. Returns :class:`Response` object.\n\n :param url: URL for the new :class:`Request` object.\n :param \\*\\*kwargs: Optional arguments that ``request`` takes.\n \"\"\"\n\n kwargs.setdefault('allow_redirects', False)\n return request('head', url, **kwargs)"},{"col":0,"comment":"Sends a POST request. Returns :class:`Response` object.\n\n :param url: URL for the new :class:`Request` object.\n :param data: (optional) Dictionary, bytes, or file-like object to send in the body of the :class:`Request`.\n :param \\*\\*kwargs: Optional arguments that ``request`` takes.\n ","endLoc":88,"header":"def post(url, data=None, **kwargs)","id":1494,"name":"post","nodeType":"Function","startLoc":80,"text":"def post(url, data=None, **kwargs):\n \"\"\"Sends a POST request. Returns :class:`Response` object.\n\n :param url: URL for the new :class:`Request` object.\n :param data: (optional) Dictionary, bytes, or file-like object to send in the body of the :class:`Request`.\n :param \\*\\*kwargs: Optional arguments that ``request`` takes.\n \"\"\"\n\n return request('post', url, data=data, **kwargs)"},{"col":0,"comment":"Sends a PATCH request. Returns :class:`Response` object.\n\n :param url: URL for the new :class:`Request` object.\n :param data: (optional) Dictionary, bytes, or file-like object to send in the body of the :class:`Request`.\n :param \\*\\*kwargs: Optional arguments that ``request`` takes.\n ","endLoc":110,"header":"def patch(url, data=None, **kwargs)","id":1495,"name":"patch","nodeType":"Function","startLoc":102,"text":"def patch(url, data=None, **kwargs):\n \"\"\"Sends a PATCH request. Returns :class:`Response` object.\n\n :param url: URL for the new :class:`Request` object.\n :param data: (optional) Dictionary, bytes, or file-like object to send in the body of the :class:`Request`.\n :param \\*\\*kwargs: Optional arguments that ``request`` takes.\n \"\"\"\n\n return request('patch', url, data=data, **kwargs)"},{"col":0,"comment":"Sends a PUT request. Returns :class:`Response` object.\n\n :param url: URL for the new :class:`Request` object.\n :param data: (optional) Dictionary, bytes, or file-like object to send in the body of the :class:`Request`.\n :param \\*\\*kwargs: Optional arguments that ``request`` takes.\n ","endLoc":99,"header":"def put(url, data=None, **kwargs)","id":1496,"name":"put","nodeType":"Function","startLoc":91,"text":"def put(url, data=None, **kwargs):\n \"\"\"Sends a PUT request. Returns :class:`Response` object.\n\n :param url: URL for the new :class:`Request` object.\n :param data: (optional) Dictionary, bytes, or file-like object to send in the body of the :class:`Request`.\n :param \\*\\*kwargs: Optional arguments that ``request`` takes.\n \"\"\"\n\n return request('put', url, data=data, **kwargs)"},{"col":0,"comment":"Sends a DELETE request. Returns :class:`Response` object.\n\n :param url: URL for the new :class:`Request` object.\n :param \\*\\*kwargs: Optional arguments that ``request`` takes.\n ","endLoc":120,"header":"def delete(url, **kwargs)","id":1497,"name":"delete","nodeType":"Function","startLoc":113,"text":"def delete(url, **kwargs):\n \"\"\"Sends a DELETE request. Returns :class:`Response` object.\n\n :param url: URL for the new :class:`Request` object.\n :param \\*\\*kwargs: Optional arguments that ``request`` takes.\n \"\"\"\n\n return request('delete', url, **kwargs)"},{"col":0,"comment":"Sends a OPTIONS request. Returns :class:`Response` object.\n\n :param url: URL for the new :class:`Request` object.\n :param \\*\\*kwargs: Optional arguments that ``request`` takes.\n ","endLoc":66,"header":"def options(url, **kwargs)","id":1498,"name":"options","nodeType":"Function","startLoc":58,"text":"def options(url, **kwargs):\n \"\"\"Sends a OPTIONS request. Returns :class:`Response` object.\n\n :param url: URL for the new :class:`Request` object.\n :param \\*\\*kwargs: Optional arguments that ``request`` takes.\n \"\"\"\n\n kwargs.setdefault('allow_redirects', True)\n return request('options', url, **kwargs)"},{"col":0,"comment":"Returns a :class:`Session` for context-management.","endLoc":531,"header":"def session()","id":1499,"name":"session","nodeType":"Function","startLoc":528,"text":"def session():\n \"\"\"Returns a :class:`Session` for context-management.\"\"\"\n\n return Session()"},{"className":"Session","col":0,"comment":"A Requests session.\n\n Provides cookie persistence, connection-pooling, and configuration.\n\n Basic Usage::\n\n >>> import requests\n >>> s = requests.Session()\n >>> s.get('http://httpbin.org/get')\n 200\n ","endLoc":525,"id":1500,"nodeType":"Class","startLoc":154,"text":"class Session(SessionRedirectMixin):\n \"\"\"A Requests session.\n\n Provides cookie persistence, connection-pooling, and configuration.\n\n Basic Usage::\n\n >>> import requests\n >>> s = requests.Session()\n >>> s.get('http://httpbin.org/get')\n 200\n \"\"\"\n\n __attrs__ = [\n 'headers', 'cookies', 'auth', 'timeout', 'proxies', 'hooks',\n 'params', 'verify', 'cert', 'prefetch', 'adapters', 'stream',\n 'trust_env', 'max_redirects']\n\n def __init__(self):\n\n #: A case-insensitive dictionary of headers to be sent on each\n #: :class:`Request ` sent from this\n #: :class:`Session `.\n self.headers = default_headers()\n\n #: Default Authentication tuple or object to attach to\n #: :class:`Request `.\n self.auth = None\n\n #: Dictionary mapping protocol to the URL of the proxy (e.g.\n #: {'http': 'foo.bar:3128'}) to be used on each\n #: :class:`Request `.\n self.proxies = {}\n\n #: Event-handling hooks.\n self.hooks = default_hooks()\n\n #: Dictionary of querystring data to attach to each\n #: :class:`Request `. The dictionary values may be lists for\n #: representing multivalued query parameters.\n self.params = {}\n\n #: Stream response content default.\n self.stream = False\n\n #: SSL Verification default.\n self.verify = True\n\n #: SSL certificate default.\n self.cert = None\n\n #: Maximum number of redirects allowed. If the request exceeds this\n #: limit, a :class:`TooManyRedirects` exception is raised.\n self.max_redirects = DEFAULT_REDIRECT_LIMIT\n\n #: Should we trust the environment?\n self.trust_env = True\n\n #: A CookieJar containing all currently outstanding cookies set on this\n #: session. By default it is a\n #: :class:`RequestsCookieJar `, but\n #: may be any other ``cookielib.CookieJar`` compatible object.\n self.cookies = cookiejar_from_dict({})\n\n # Default connection adapters.\n self.adapters = OrderedDict()\n self.mount('https://', HTTPAdapter())\n self.mount('http://', HTTPAdapter())\n\n def __enter__(self):\n return self\n\n def __exit__(self, *args):\n self.close()\n\n def prepare_request(self, request):\n \"\"\"Constructs a :class:`PreparedRequest ` for\n transmission and returns it. The :class:`PreparedRequest` has settings\n merged from the :class:`Request ` instance and those of the\n :class:`Session`.\n\n :param request: :class:`Request` instance to prepare with this\n session's settings.\n \"\"\"\n cookies = request.cookies or {}\n\n # Bootstrap CookieJar.\n if not isinstance(cookies, cookielib.CookieJar):\n cookies = cookiejar_from_dict(cookies)\n\n # Merge with session cookies\n merged_cookies = RequestsCookieJar()\n merged_cookies.update(self.cookies)\n merged_cookies.update(cookies)\n\n\n # Set environment's basic authentication if not explicitly set.\n auth = request.auth\n if self.trust_env and not auth and not self.auth:\n auth = get_netrc_auth(request.url)\n\n p = PreparedRequest()\n p.prepare(\n method=request.method.upper(),\n url=request.url,\n files=request.files,\n data=request.data,\n headers=merge_setting(request.headers, self.headers, dict_class=CaseInsensitiveDict),\n params=merge_setting(request.params, self.params),\n auth=merge_setting(auth, self.auth),\n cookies=merged_cookies,\n hooks=merge_setting(request.hooks, self.hooks),\n )\n return p\n\n def request(self, method, url,\n params=None,\n data=None,\n headers=None,\n cookies=None,\n files=None,\n auth=None,\n timeout=None,\n allow_redirects=True,\n proxies=None,\n hooks=None,\n stream=None,\n verify=None,\n cert=None):\n \"\"\"Constructs a :class:`Request `, prepares it and sends it.\n Returns :class:`Response