code
stringlengths
1
1.49M
file_id
stringlengths
42
46
node_count
int64
0
7.38k
total_lines
int64
1
20.9k
vector_dim
int64
15
15
vector_labels
stringclasses
1 value
nodes
stringlengths
2
3.75M
connections
stringlengths
2
964k
#/usr/bin/env python # -*- coding: utf-8 -*- ''' Created on 2011-7-29 主要用于从网站上爬取信息后,抽取页面信息; @author: zhongfeng ''' from j360buy.image_price import captcha_360buy from pageparser import * from threadpool import ThreadPool, WorkRequest import json import os import re import string import threading ...
ajibawa-2023/Python-Code-Large/train/row_1973
155
216
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1973:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 10], "level": 0, "parent": null, "vector": [8, 0, 0.0324, 0.0324, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1973:FunctionDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1973:If_L29_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1973:If_L29_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_1973:Assign_L30_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/ro...
#!/usr/bin/env python # -*- coding: utf8 -*- ''' Created on 2011-8-16 @author: zhongfeng ''' J360buy_FEATURES_MAP__ = { ''' __ __ __ __ __ ...
ajibawa-2023/Python-Code-Large/train/row_1974
2
213
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1974:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 8], "level": 0, "parent": null, "vector": [8, 0, 0.0282, 0.0235, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[]
#!/usr/bin/env python # -*- coding: utf8 -*- ''' Created on 2011-7-26 京东价格图片识别模块 @author: zhongfeng ''' import ImageFilter, ImageChops from captcha_price import * from j360buy.j360_feature import J360buy_FEATURES_MAP__ import Image import re import time try: import psyco psyco.full() except ImportError: ...
ajibawa-2023/Python-Code-Large/train/row_1975
43
72
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1975:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 10], "level": 0, "parent": null, "vector": [8, 0, 0.0972, 0.0972, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1975:Try_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1975:Import_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1975:Try_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1975:Expr_L21_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_197...
#!/usr/bin/env python # -*- coding: utf8 -*- ''' Created on 2011-8-1 @author: zhongfeng ''' from j360buy.j360pageparser import parserDict,j360buyRoot from spider import main if __name__ == '__main__': main(j360buyRoot,parserDict)
ajibawa-2023/Python-Code-Large/train/row_1976
5
18
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1976:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 10], "level": 0, "parent": null, "vector": [8, 0, 0.3889, 0.3889, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1976:If_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1976:Expr_L17_C4"}]
#!/usr/bin/env python # -*- coding: utf8 -*- ''' Created on 2011-8-16 @author: zhongfeng ''' J360buy_FEATURES_MAP__ = { ''' __ __ __ __ __ ...
ajibawa-2023/Python-Code-Large/train/row_1977
2
213
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1977:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 8], "level": 0, "parent": null, "vector": [8, 0, 0.0282, 0.0235, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[]
#!/usr/bin/env python # -*- coding: utf8 -*- from logfacade import LoggerFactory ''' Created on 2011-10-9 @author: zhongfeng ''' from crawlerhttp import crawle import re from threadpool import ThreadPool, WorkRequest from dbproc.basedbproc import getConnect,MySQLQueryPagination def getProdImgUrlFro...
ajibawa-2023/Python-Code-Large/train/row_1978
37
54
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1978:ImportFrom_L3_C0", "label": "from logfacade import LoggerFactory", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0556, 0.0185, 0, 0.66, 0.0, 602, 0, 1, 0, 0, 602, 0, 0], "semantic": {"name": "logfacade", "arg_names": [], "import_na...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1978:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1978:Assign_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1978:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1978:Assign_L19_C4"}, {"f": "ajibawa-2023/Python-Code-L...
#!/usr/bin/env python # -*- coding: utf8 -*- from logfacade import LoggerFactory ''' Created on 2011-10-9 @author: zhongfeng ''' from crawlerhttp import crawle import re from threadpool import ThreadPool, WorkRequest from dbproc.basedbproc import getConnect,MySQLQueryPagination def getProdImgUrlFro...
ajibawa-2023/Python-Code-Large/train/row_1979
37
54
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1979:ImportFrom_L3_C0", "label": "from logfacade import LoggerFactory", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0556, 0.0185, 0, 0.66, 0.0, 602, 0, 1, 0, 0, 602, 0, 0], "semantic": {"name": "logfacade", "arg_names": [], "import_na...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1979:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1979:Assign_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1979:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1979:Assign_L19_C4"}, {"f": "ajibawa-2023/Python-Code-L...
#!/usr/bin/env python # -*- coding: utf8 -*- ''' Created on 2011-8-1 @author: zhongfeng ''' from j360buy.j360pageparser import parserDict,j360buyRoot from spider import main if __name__ == '__main__': main(j360buyRoot,parserDict)
ajibawa-2023/Python-Code-Large/train/row_1980
5
18
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1980:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 10], "level": 0, "parent": null, "vector": [8, 0, 0.3889, 0.3889, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1980:If_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1980:Expr_L17_C4"}]
#!/usr/bin/env python # -*- coding: utf8 -*- ''' Created on 2011-9-24 @author: zhongfeng ''' import re,os,sys import chardet from pageparser import ObuyUrlSummary from utils import Singleton from ConfigParser import ConfigParser, NoOptionError def __getUrlSumsFromSection(section): curPath = os....
ajibawa-2023/Python-Code-Large/train/row_1981
72
104
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1981:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 8], "level": 0, "parent": null, "vector": [8, 0, 0.0577, 0.0481, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1981:FunctionDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1981:Assign_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1981:FunctionDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1981:Assign_L18_C4"}, {"f": "ajibawa-2023/Python-Code-L...
#!/usr/bin/env python # -*- coding: utf8 -*- ''' Created on 2011-7-26 图片识别模块 @author: zhongfeng ''' import ImageFilter, ImageChops import Image import re,itertools import time try: import psyco psyco.full() except ImportError: pass class CaptchaAlgorithm(object): '''captcha algorithm''' def Le...
ajibawa-2023/Python-Code-Large/train/row_1982
118
187
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1982:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 10], "level": 0, "parent": null, "vector": [8, 0, 0.0374, 0.0374, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1982:Try_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1982:Import_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1982:Try_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1982:Expr_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_198...
#!/usr/bin/env python # -*- coding: utf8 -*- ''' Created on 2011-7-26 京东价格图片识别模块 @author: zhongfeng ''' import ImageFilter, ImageChops from captcha_price import * from medicine.kxr.kxr_feature import KXR_FEATURES_MAP__ import Image import os,sys try: import psyco psyco.full() except ImportError: pass ...
ajibawa-2023/Python-Code-Large/train/row_1983
38
79
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1983:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 10], "level": 0, "parent": null, "vector": [8, 0, 0.0886, 0.0886, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1983:Try_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1983:Import_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1983:Try_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1983:Expr_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_198...
#!/usr/bin/env python # -*- coding: utf8 -*- ''' Created on 2012-02-29 @author: zhongfeng ''' KXR_FEATURES_MAP__ = { ''' ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ __##__ __##__ ______ '...
ajibawa-2023/Python-Code-Large/train/row_1984
2
219
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1984:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 8], "level": 0, "parent": null, "vector": [8, 0, 0.0274, 0.0228, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[]
#!/usr/bin/env python # -*- coding: utf8 -*- ''' Created on 2011-7-26 京东价格图片识别模块 @author: zhongfeng ''' import ImageFilter, ImageChops from captcha_price import * from medicine.kxr.kxr_feature import KXR_FEATURES_MAP__ import Image import os,sys try: import psyco psyco.full() except ImportError: pass ...
ajibawa-2023/Python-Code-Large/train/row_1985
38
79
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1985:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 10], "level": 0, "parent": null, "vector": [8, 0, 0.0886, 0.0886, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1985:Try_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1985:Import_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1985:Try_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1985:Expr_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_198...
#!/usr/bin/env python # -*- coding: utf8 -*- ''' Created on 2012-02-29 @author: zhongfeng ''' KXR_FEATURES_MAP__ = { ''' ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ __##__ __##__ ______ '...
ajibawa-2023/Python-Code-Large/train/row_1986
2
219
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1986:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 8], "level": 0, "parent": null, "vector": [8, 0, 0.0274, 0.0228, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[]
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' Created on 2011-8-27 主要用于从网站上爬取信息后,抽取页面信息; @author: zhongfeng ''' from pageparser import * from spiderconfigparser import SpiderConfig from crawlerhttp import crawleRetries icsonRoot = ObuyUrlSummary(url=r'http://www.icson.com/portal.html', name='i...
ajibawa-2023/Python-Code-Large/train/row_1989
107
169
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1989:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 10], "level": 0, "parent": null, "vector": [8, 0, 0.0414, 0.0414, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1989:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1989:Expr_L21_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1989:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1989:Assign_L25_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
#!/usr/bin/env python # -*- coding: utf8 -*- ''' Created on 2011-8-25 @author: zhongfeng ''' from icson.icsonpageparser import parserDict,icsonRoot from spider import ObuySpider from crawlerhttp import CrawlResult import os,sys from logfacade import LoggerFactory from upload import fileUpload from s...
ajibawa-2023/Python-Code-Large/train/row_1990
24
37
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1990:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 9], "level": 0, "parent": null, "vector": [8, 0, 0.1757, 0.1622, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1990:FunctionDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1990:Assign_L21_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1990:FunctionDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1990:Assign_L22_C4"}, {"f": "ajibawa-2023/Python-Code-L...
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' Created on 2011-8-27 主要用于从网站上爬取信息后,抽取页面信息; @author: zhongfeng ''' from pageparser import * from spiderconfigparser import SpiderConfig from crawlerhttp import crawleRetries icsonRoot = ObuyUrlSummary(url=r'http://www.icson.com/portal.html', name='i...
ajibawa-2023/Python-Code-Large/train/row_1991
107
169
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1991:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 10], "level": 0, "parent": null, "vector": [8, 0, 0.0414, 0.0414, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1991:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1991:Expr_L21_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1991:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1991:Assign_L25_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
#!/usr/bin/env python # -*- coding: utf8 -*- ''' Created on 2011-8-25 @author: zhongfeng ''' from icson.icsonpageparser import parserDict,icsonRoot from spider import ObuySpider from crawlerhttp import CrawlResult import os,sys from logfacade import LoggerFactory from upload import fileUpload from s...
ajibawa-2023/Python-Code-Large/train/row_1992
24
37
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1992:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 9], "level": 0, "parent": null, "vector": [8, 0, 0.1757, 0.1622, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1992:FunctionDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1992:Assign_L21_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1992:FunctionDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1992:Assign_L22_C4"}, {"f": "ajibawa-2023/Python-Code-L...
#/usr/bin/env python # -*- coding: utf-8 -*- import re import time import random from BeautifulSoup import BeautifulSoup from crawlerhttp import UrlSummary, crawle urlsProxy = ["http://proxy.ipcn.org/proxylist.html"] #urlsProxy = ["http://www.proxycn.com/html_proxy/http-1.html"] desSite = 'http://www.360...
ajibawa-2023/Python-Code-Large/train/row_1993
42
61
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1993:Import_L4_C0", "label": "re import re", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.0656, 0.0164, 0, 0.66, 0.0, 540, 0, 1, 0, 0, 540, 0, 0], "semantic": {"name": "re", "arg_names": [], "import_names": ["re"], "rhs_call_name": "",...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1993:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1993:Assign_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1993:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1993:FunctionDef_L17_C4"}, {"f": "ajibawa-2023/Python-Code-La...
#!/usr/bin/env python # -*- coding: utf8 -*- ''' Created on 2011-8-16 @author: zhongfeng ''' SUNING_FEATURES_MAP = { ''' __ __ __ __ __ __ __ __ __ __ __ ## ## ''' : '.', ...
ajibawa-2023/Python-Code-Large/train/row_1994
2
211
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1994:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 8], "level": 0, "parent": null, "vector": [8, 0, 0.0284, 0.0237, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[]
#!/usr/bin/env python # -*- coding: utf8 -*- ''' Created on 2011-7-26 国美价格图片识别模块 @author: zhongfeng ''' import ImageFilter, ImageChops from captcha_price import * from suning.suning_feature import SUNING_FEATURES_MAP import Image import itertools import re import time try: import psyco psyco.full() except ...
ajibawa-2023/Python-Code-Large/train/row_1995
51
94
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1995:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 10], "level": 0, "parent": null, "vector": [8, 0, 0.0745, 0.0745, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1995:Try_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1995:Import_L21_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1995:Try_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1995:Expr_L22_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_199...
#!/usr/bin/env python # -*- coding: utf8 -*- ''' Created on 2011-7-26 国美价格图片识别模块 @author: zhongfeng ''' import ImageFilter, ImageChops from captcha_price import * from suning.suning_feature import SUNING_FEATURES_MAP import Image import itertools import re import time try: import psyco psyco.full() except ...
ajibawa-2023/Python-Code-Large/train/row_1996
51
94
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1996:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 10], "level": 0, "parent": null, "vector": [8, 0, 0.0745, 0.0745, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1996:Try_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1996:Import_L21_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1996:Try_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1996:Expr_L22_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_199...
#!/usr/bin/env python # -*- coding: utf8 -*- ''' Created on 2011-8-16 @author: zhongfeng ''' SUNING_FEATURES_MAP = { ''' __ __ __ __ __ __ __ __ __ __ __ ## ## ''' : '.', ...
ajibawa-2023/Python-Code-Large/train/row_1997
2
211
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1997:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 8], "level": 0, "parent": null, "vector": [8, 0, 0.0284, 0.0237, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[]
#!/usr/bin/env python # -*- coding: utf8 -*- ''' Created on 2011-8-2 @author: zhongfeng ''' from suning.suningparser import parserDict,sunningRoot from spider import main if __name__ == '__main__': main(sunningRoot,parserDict)
ajibawa-2023/Python-Code-Large/train/row_1998
5
15
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1998:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 9], "level": 0, "parent": null, "vector": [8, 0, 0.4333, 0.4, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1998:If_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1998:Expr_L15_C4"}]
#!/usr/bin/env python # -*- coding: utf8 -*- ''' Created on 2011-8-2 @author: zhongfeng ''' from suning.suningparser import parserDict,sunningRoot from spider import main if __name__ == '__main__': main(sunningRoot,parserDict)
ajibawa-2023/Python-Code-Large/train/row_2000
5
15
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2000:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 9], "level": 0, "parent": null, "vector": [8, 0, 0.4333, 0.4, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2000:If_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2000:Expr_L15_C4"}]
#!/usr/bin/env python # -*- coding: utf8 -*- ''' Created on 2011-8-2 @author: zhongfeng ''' from efeihu.efeihupageparser import parserDict,efeihuRoot from spider import main if __name__ == '__main__': main(efeihuRoot,parserDict)
ajibawa-2023/Python-Code-Large/train/row_2001
5
16
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2001:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 9], "level": 0, "parent": null, "vector": [8, 0, 0.4062, 0.375, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotatio...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2001:If_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2001:Expr_L16_C4"}]
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' Created on 2011-11-22 主要用于从网站上爬取信息后,抽取页面信息; @author: zhongfeng ''' from pageparser import * import urlparse from spiderconfigparser import SpiderConfig efeihuRoot = ObuyUrlSummary(url=r'http://www.efeihu.com/', name='efeihu') class EfeihuAllSortPa...
ajibawa-2023/Python-Code-Large/train/row_2002
99
143
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2002:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 10], "level": 0, "parent": null, "vector": [8, 0, 0.049, 0.049, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotatio...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2002:ClassDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2002:FunctionDef_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2002:FunctionDef_L19_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2002:Expr_L20_C8"}, {"f": "ajibawa-2023/Python-Code-L...
#!/usr/bin/env python # -*- coding: utf8 -*- ''' Created on 2011-8-2 @author: zhongfeng ''' from efeihu.efeihupageparser import parserDict,efeihuRoot from spider import main if __name__ == '__main__': main(efeihuRoot,parserDict)
ajibawa-2023/Python-Code-Large/train/row_2003
5
16
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2003:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 9], "level": 0, "parent": null, "vector": [8, 0, 0.4062, 0.375, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotatio...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2003:If_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2003:Expr_L16_C4"}]
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' Created on 2011-11-22 主要用于从网站上爬取信息后,抽取页面信息; @author: zhongfeng ''' from pageparser import * import urlparse from spiderconfigparser import SpiderConfig efeihuRoot = ObuyUrlSummary(url=r'http://www.efeihu.com/', name='efeihu') class EfeihuAllSortPa...
ajibawa-2023/Python-Code-Large/train/row_2004
99
143
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2004:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 10], "level": 0, "parent": null, "vector": [8, 0, 0.049, 0.049, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotatio...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2004:ClassDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2004:FunctionDef_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2004:FunctionDef_L19_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2004:Expr_L20_C8"}, {"f": "ajibawa-2023/Python-Code-L...
#!/usr/bin/env python # -*- coding: utf8 -*- ''' Created on 2011-9-24 @author: zhongfeng ''' import re,os,sys import chardet from pageparser import ObuyUrlSummary from utils import Singleton from ConfigParser import ConfigParser, NoOptionError def __getUrlSumsFromSection(section): curPath = os....
ajibawa-2023/Python-Code-Large/train/row_2006
72
104
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2006:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 8], "level": 0, "parent": null, "vector": [8, 0, 0.0577, 0.0481, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2006:FunctionDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2006:Assign_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2006:FunctionDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2006:Assign_L18_C4"}, {"f": "ajibawa-2023/Python-Code-L...
#!/usr/bin/env python # -*- coding: utf8 -*- ''' Created on 2011-7-26 图片识别模块 @author: zhongfeng ''' import ImageFilter, ImageChops import Image import re,itertools import time try: import psyco psyco.full() except ImportError: pass class CaptchaAlgorithm(object): '''captcha algorithm''' def Le...
ajibawa-2023/Python-Code-Large/train/row_2008
118
187
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2008:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 10], "level": 0, "parent": null, "vector": [8, 0, 0.0374, 0.0374, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2008:Try_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2008:Import_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2008:Try_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2008:Expr_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_200...
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' Created on 2011-7-27 主要用于从网站上爬取信息后,抽取页面信息; @author: zhongfeng ''' from BeautifulSoup import BeautifulSoup from crawlerhttp import UrlSummary, CrawlerType, crawleRetries from time import strftime import chardet, re from urlparse import urlparse from t...
ajibawa-2023/Python-Code-Large/train/row_2009
200
297
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2009:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 10], "level": 0, "parent": null, "vector": [8, 0, 0.0236, 0.0236, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2009:FunctionDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2009:Assign_L26_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2009:FunctionDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2009:Assign_L27_C4"}, {"f": "ajibawa-2023/Python-Code-L...
#!/usr/bin/env python # -*- coding: utf8 -*- ''' Created on 2011-8-16 @author: zhongfeng ''' GOME_FEATURES_MAP = { ''' __ __ __ __ __ __ __ __ ## ## ''' : '.', ''' ____...
ajibawa-2023/Python-Code-Large/train/row_2011
2
189
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2011:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 8], "level": 0, "parent": null, "vector": [8, 0, 0.0317, 0.0265, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[]
#!/usr/bin/env python # -*- coding: utf8 -*- ''' Created on 2011-7-26 国美价格图片识别模块 @author: zhongfeng ''' import ImageFilter, ImageChops from captcha_price import * from gome.gome_feature import GOME_FEATURES_MAP import Image import itertools import re import time try: import psyco psyco.full() except Import...
ajibawa-2023/Python-Code-Large/train/row_2012
50
93
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2012:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 10], "level": 0, "parent": null, "vector": [8, 0, 0.0753, 0.0753, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2012:Try_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2012:Import_L21_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2012:Try_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2012:Expr_L22_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_201...
#!/usr/bin/env python # -*- coding: utf8 -*- ''' Created on 2011-8-2 @author: zhongfeng ''' from gome.gomepageparser import parserDict,gomeRoot from spider import main if __name__ == '__main__': main(gomeRoot,parserDict)
ajibawa-2023/Python-Code-Large/train/row_2014
5
14
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2014:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 8], "level": 0, "parent": null, "vector": [8, 0, 0.4286, 0.3571, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2014:If_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2014:Expr_L14_C4"}]
#!/usr/bin/env python # -*- coding: utf8 -*- ''' Created on 2011-7-26 国美价格图片识别模块 @author: zhongfeng ''' import ImageFilter, ImageChops from captcha_price import * from gome.gome_feature import GOME_FEATURES_MAP import Image import itertools import re import time try: import psyco psyco.full() except Import...
ajibawa-2023/Python-Code-Large/train/row_2015
50
93
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2015:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 10], "level": 0, "parent": null, "vector": [8, 0, 0.0753, 0.0753, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2015:Try_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2015:Import_L21_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2015:Try_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2015:Expr_L22_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_201...
#!/usr/bin/env python # -*- coding: utf8 -*- ''' Created on 2011-8-2 @author: zhongfeng ''' from gome.gomepageparser import parserDict,gomeRoot from spider import main if __name__ == '__main__': main(gomeRoot,parserDict)
ajibawa-2023/Python-Code-Large/train/row_2017
5
14
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2017:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 8], "level": 0, "parent": null, "vector": [8, 0, 0.4286, 0.3571, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2017:If_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2017:Expr_L14_C4"}]
#!/usr/bin/env python # -*- coding: utf8 -*- ''' Created on 2011-8-16 @author: zhongfeng ''' GOME_FEATURES_MAP = { ''' __ __ __ __ __ __ __ __ ## ## ''' : '.', ''' ____...
ajibawa-2023/Python-Code-Large/train/row_2018
2
189
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2018:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 8], "level": 0, "parent": null, "vector": [8, 0, 0.0317, 0.0265, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[]
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' Created on 2011-11-25 主要用于从网站上爬取信息后,抽取页面信息; @author: zhongfeng ''' from pageparser import * from spiderconfigparser import SpiderConfig lusenRoot = ObuyUrlSummary(url=r'http://www.lusen.com/', name='lusen') class LusenAllSortParser(RootCatagoryPage...
ajibawa-2023/Python-Code-Large/train/row_2019
82
125
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2019:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 10], "level": 0, "parent": null, "vector": [8, 0, 0.056, 0.056, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotatio...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2019:ClassDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2019:FunctionDef_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2019:FunctionDef_L18_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2019:Expr_L19_C8"}, {"f": "ajibawa-2023/Python-Code-L...
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' Created on 2011-11-25 主要用于从网站上爬取信息后,抽取页面信息; @author: zhongfeng ''' from pageparser import * from spiderconfigparser import SpiderConfig lusenRoot = ObuyUrlSummary(url=r'http://www.lusen.com/', name='lusen') class LusenAllSortParser(RootCatagoryPage...
ajibawa-2023/Python-Code-Large/train/row_2020
82
125
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2020:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 10], "level": 0, "parent": null, "vector": [8, 0, 0.056, 0.056, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotatio...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2020:ClassDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2020:FunctionDef_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2020:FunctionDef_L18_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2020:Expr_L19_C8"}, {"f": "ajibawa-2023/Python-Code-L...
#!/usr/bin/env python # -*- coding: utf8 -*- ''' Created on 2011-8-2 @author: zhongfeng ''' from lusen.lusenpageparser import parserDict,lusenRoot from spider import main if __name__ == '__main__': main(lusenRoot,parserDict)
ajibawa-2023/Python-Code-Large/train/row_2021
5
15
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2021:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 9], "level": 0, "parent": null, "vector": [8, 0, 0.4333, 0.4, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2021:If_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2021:Expr_L15_C4"}]
#!/usr/bin/env python # -*- coding: utf8 -*- ''' Created on 2011-8-2 @author: zhongfeng ''' from lusen.lusenpageparser import parserDict,lusenRoot from spider import main if __name__ == '__main__': main(lusenRoot,parserDict)
ajibawa-2023/Python-Code-Large/train/row_2022
5
15
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2022:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 9], "level": 0, "parent": null, "vector": [8, 0, 0.4333, 0.4, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2022:If_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2022:Expr_L15_C4"}]
#!/usr/bin/env python # -*- coding: utf-8 -*- import MySQLdb import os import hashlib #DB parameter def update360buyRepu(): conn = getConnect() qPage = MySQLQueryPagination(conn=conn, numPerPage=2000) sqlStr = r'SELECT id,repu FROM `prod_base_info_3c` where site_id=6' for result in ...
ajibawa-2023/Python-Code-Large/train/row_2023
333
432
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2023:Import_L4_C0", "label": "MySQLdb import MySQLdb", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.0093, 0.0023, 0, 0.66, 0.0, 838, 0, 1, 0, 0, 838, 0, 0], "semantic": {"name": "MySQLdb", "arg_names": [], "import_names": ["MySQLdb"], ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2023:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2023:Assign_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2023:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2023:Assign_L14_C4"}, {"f": "ajibawa-2023/Python-Code-L...
#!/usr/bin/env python # -*- coding: utf-8 -*- import MySQLdb import os import hashlib #DB parameter def update360buyRepu(): conn = getConnect() qPage = MySQLQueryPagination(conn=conn, numPerPage=2000) sqlStr = r'SELECT id,repu FROM `prod_base_info_3c` where site_id=6' for result in ...
ajibawa-2023/Python-Code-Large/train/row_2026
333
432
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2026:Import_L4_C0", "label": "MySQLdb import MySQLdb", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.0093, 0.0023, 0, 0.66, 0.0, 838, 0, 1, 0, 0, 838, 0, 0], "semantic": {"name": "MySQLdb", "arg_names": [], "import_names": ["MySQLdb"], ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2026:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2026:Assign_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2026:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2026:Assign_L14_C4"}, {"f": "ajibawa-2023/Python-Code-L...
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' Created on 2011-7-27 主要用于从网站上爬取信息后,抽取页面信息; @author: zhongfeng ''' from BeautifulSoup import BeautifulSoup, Comment from pageparser import * import itertools import json import os import re import urllib import urlparse import string from enum impor...
ajibawa-2023/Python-Code-Large/train/row_2029
252
334
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2029:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 9], "level": 0, "parent": null, "vector": [8, 0, 0.0195, 0.018, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotatio...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2029:FunctionDef_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2029:If_L24_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2029:If_L24_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2029:Assign_L25_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/ro...
#!/usr/bin/env python # -*- coding: utf8 -*- ''' Created on 2011-8-2 @author: zhongfeng ''' from pageparser import ObuyUrlSummary from amazon.amazonpageparser import parserDict,rootUrlSummary from spider import ObuySpider,main import os,sys from logfacade import LoggerFactory class AmazonSpider(ObuySpi...
ajibawa-2023/Python-Code-Large/train/row_2030
28
43
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2030:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 8], "level": 0, "parent": null, "vector": [8, 0, 0.1395, 0.1163, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2030:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2030:FunctionDef_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2030:FunctionDef_L16_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2030:Expr_L18_C8"}, {"f": "ajibawa-2023/Python-Code-L...
#!/usr/bin/env python # -*- coding: utf8 -*- ''' Created on 2011-8-2 @author: zhongfeng ''' from pageparser import ObuyUrlSummary from amazon.amazonpageparser import parserDict,rootUrlSummary from spider import ObuySpider,main import os,sys from logfacade import LoggerFactory class AmazonSpider(ObuySpi...
ajibawa-2023/Python-Code-Large/train/row_2031
28
43
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2031:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 8], "level": 0, "parent": null, "vector": [8, 0, 0.1395, 0.1163, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2031:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2031:FunctionDef_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2031:FunctionDef_L16_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2031:Expr_L18_C8"}, {"f": "ajibawa-2023/Python-Code-L...
#/usr/bin/env python # -*- coding: utf-8 -*- ''' Created on 2011-7-27 主要用于从网站上爬取信息后,抽取页面信息; @author: zhongfeng ''' from pageparser import * import re from copy import deepcopy class AmazonAllSortParser(RootCatagoryPageParser): ''' 从http://www.amazon.cn/gp/site-directory获取所有的分类信息, ...
ajibawa-2023/Python-Code-Large/train/row_2032
146
210
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2032:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 10], "level": 0, "parent": null, "vector": [8, 0, 0.0333, 0.0333, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2032:ClassDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2032:Expr_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2032:ClassDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2032:Assign_L21_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' Created on 2011-7-27 主要用于从网站上爬取信息后,抽取页面信息; @author: zhongfeng ''' from BeautifulSoup import BeautifulSoup, Comment from pageparser import * import itertools import json import os import re import urllib import urlparse import string from enum impor...
ajibawa-2023/Python-Code-Large/train/row_2033
252
334
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2033:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 9], "level": 0, "parent": null, "vector": [8, 0, 0.0195, 0.018, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotatio...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2033:FunctionDef_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2033:If_L24_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2033:If_L24_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2033:Assign_L25_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/ro...
#/usr/bin/env python # -*- coding: utf-8 -*- ''' Created on 2011-10-10 @author: zhongfeng ''' ## {{{ http://code.activestate.com/recipes/84317/ (r2) from threading import Condition,Thread import copy class Future(object): def __init__(self,func,*param): # Constructor self.__d...
ajibawa-2023/Python-Code-Large/train/row_2034
117
165
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2034:Expr_L5_C0", "label": "expression", "type": "expression", "loc": [5, 9], "level": 0, "parent": null, "vector": [8, 0, 0.0424, 0.0303, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2034:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2034:FunctionDef_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2034:FunctionDef_L17_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2034:Assign_L19_C8"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' Created on 2011-8-02 主要用于从网站上爬取信息后,抽取页面信息; @author: zhongfeng ''' from pageparser import * from spiderconfigparser import SpiderConfig dangdangRoot = ObuyUrlSummary(url=r'http://category.dangdang.com/', name='dangdang') class DangDangAllSortParse...
ajibawa-2023/Python-Code-Large/train/row_2035
128
183
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2035:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 10], "level": 0, "parent": null, "vector": [8, 0, 0.0383, 0.0383, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2035:ClassDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2035:Expr_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2035:ClassDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2035:FunctionDef_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Larg...
#!/usr/bin/env python # -*- coding: utf8 -*- ''' Created on 2011-8-2 @author: zhongfeng ''' from dangdang.dangpageparser import parserDict,dangdangRoot from spider import main if __name__ == '__main__': main(dangdangRoot,parserDict)
ajibawa-2023/Python-Code-Large/train/row_2036
5
16
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2036:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 9], "level": 0, "parent": null, "vector": [8, 0, 0.4062, 0.375, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotatio...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2036:If_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2036:Expr_L16_C4"}]
#!/usr/bin/env python # -*- coding: utf8 -*- ''' Created on 2011-8-2 @author: zhongfeng ''' from dangdang.dangpageparser import parserDict,dangdangRoot from spider import main if __name__ == '__main__': main(dangdangRoot,parserDict)
ajibawa-2023/Python-Code-Large/train/row_2037
5
16
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2037:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 9], "level": 0, "parent": null, "vector": [8, 0, 0.4062, 0.375, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotatio...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2037:If_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2037:Expr_L16_C4"}]
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' Created on 2011-8-02 主要用于从网站上爬取信息后,抽取页面信息; @author: zhongfeng ''' from pageparser import * from spiderconfigparser import SpiderConfig dangdangRoot = ObuyUrlSummary(url=r'http://category.dangdang.com/', name='dangdang') class DangDangAllSortParse...
ajibawa-2023/Python-Code-Large/train/row_2038
128
183
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2038:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 10], "level": 0, "parent": null, "vector": [8, 0, 0.0383, 0.0383, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2038:ClassDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2038:Expr_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2038:ClassDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2038:FunctionDef_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Larg...
#/usr/bin/env python # -*- coding: utf-8 -*- ''' Created on 2011-07-11 日志工厂类 @author: zhongfeng ''' import logging.config import os,sys class LoggerFactory(object): _loggerFac = None def __init__(self): pass def __new__(cls): ''' 单态实现,初始化一次 ...
ajibawa-2023/Python-Code-Large/train/row_2039
40
75
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2039:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 9], "level": 0, "parent": null, "vector": [8, 0, 0.08, 0.0933, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2039:ClassDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2039:Assign_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2039:ClassDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2039:FunctionDef_L15_C4"}, {"f": "ajibawa-2023/Python-Code-La...
import os, marshal, thread # Filename used for index files, must not contain numbers INDEX_FILENAME = 'index' # Exception thrown when calling get() on an empty queue class Empty(Exception): pass class PersistentQueue: def __init__(self, name, cache_size=512, marshal=marshal): """ Create a persi...
ajibawa-2023/Python-Code-Large/train/row_2040
142
202
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2040:Import_L1_C0", "label": "os import os, marshal, thread", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.005, 0.005, 0, 0.66, 0.0, 688, 0, 3, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os", "marsh...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2040:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2040:FunctionDef_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2040:FunctionDef_L11_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2040:Expr_L12_C8"}, {"f": "ajibawa-2023/Python-Code-La...
#/usr/bin/env python # -*- coding: utf-8 -*- ''' Created on 2011-11-9 @author: zhongfeng ''' from egou.egoupageparser import * from crawlerhttp import crawle from pageparser import * from dbproc.catagoryproc import * def getContentFromUrlSum(urlsum): while True: result = crawle(urlsum)...
ajibawa-2023/Python-Code-Large/train/row_2042
32
57
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2042:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 8], "level": 0, "parent": null, "vector": [8, 0, 0.1053, 0.0877, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2042:FunctionDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2042:While_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2042:While_L17_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2042:Assign_L18_C8"}, {"f": "ajibawa-2023/Python-Code-Large/tr...
#/usr/bin/env python # -*- coding: utf-8 -*- ''' Created on 2011-11-09 @author: zhongfeng ''' import re from pageparser import * egouRoot = ObuyUrlSummary(url=r'http://www.egou.com/', name='egou') mainHost = 'http://www.egou.com' def filterCatName(name): p = re.compile(r'\([0-9]*\)') retur...
ajibawa-2023/Python-Code-Large/train/row_2043
86
134
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2043:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 8], "level": 0, "parent": null, "vector": [8, 0, 0.0448, 0.0373, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2043:FunctionDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2043:Assign_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2043:FunctionDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2043:Return_L18_C4"}, {"f": "ajibawa-2023/Python-Code-L...
#!/usr/bin/env python # -*- coding: utf8 -*- ''' Created on 2011-8-2 @author: zhongfeng ''' from newegg.neweggpageparser import parserDict,newEggRoot from spider import main if __name__ == '__main__': main(newEggRoot,parserDict)
ajibawa-2023/Python-Code-Large/train/row_2044
5
15
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2044:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 9], "level": 0, "parent": null, "vector": [8, 0, 0.4333, 0.4, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2044:If_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2044:Expr_L15_C4"}]
#/usr/bin/env python # -*- coding: utf-8 -*- ''' Created on 2011-7-27 主要用于从网站上爬取信息后,抽取页面信息; @author: zhongfeng ''' from pageparser import * import re from spiderconfigparser import SpiderConfig from crawlerhttp import crawleRetries from utils import Future newEggRoot = ObuyUrlSummary(url=ur'http:/...
ajibawa-2023/Python-Code-Large/train/row_2045
149
205
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2045:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 10], "level": 0, "parent": null, "vector": [8, 0, 0.0341, 0.0341, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2045:ClassDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2045:Expr_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2045:ClassDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2045:Assign_L24_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
#!/usr/bin/env python # -*- coding: utf8 -*- ''' Created on 2011-8-2 @author: zhongfeng ''' from newegg.neweggpageparser import parserDict,newEggRoot from spider import main if __name__ == '__main__': main(newEggRoot,parserDict)
ajibawa-2023/Python-Code-Large/train/row_2046
5
15
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2046:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 9], "level": 0, "parent": null, "vector": [8, 0, 0.4333, 0.4, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2046:If_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2046:Expr_L15_C4"}]
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' Created on 2011-7-27 主要用于从网站上爬取信息后,抽取页面信息; @author: zhongfeng ''' from BeautifulSoup import BeautifulSoup from crawlerhttp import UrlSummary, CrawlerType, crawleRetries from time import strftime import chardet, re from urlparse import urlparse from t...
ajibawa-2023/Python-Code-Large/train/row_2047
200
297
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2047:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 10], "level": 0, "parent": null, "vector": [8, 0, 0.0236, 0.0236, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2047:FunctionDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2047:Assign_L26_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2047:FunctionDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2047:Assign_L27_C4"}, {"f": "ajibawa-2023/Python-Code-L...
#!/usr/bin/env python # -*- coding: utf8 -*- ''' Created on 2011-8-16 @author: zhongfeng ''' COO8_FEATURES_MAP = { ''' __ __ __ __ __ __ __ __ __ __ ## #_ ''' : '.', ...
ajibawa-2023/Python-Code-Large/train/row_2049
2
233
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2049:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 8], "level": 0, "parent": null, "vector": [8, 0, 0.0258, 0.0215, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[]
#!/usr/bin/env python # -*- coding: utf8 -*- ''' Created on 2011-8-16 @author: zhongfeng ''' COO8_FEATURES_MAP = { ''' __ __ __ __ __ __ __ __ __ ## #_ ## ''' : '.', ...
ajibawa-2023/Python-Code-Large/train/row_2050
2
216
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2050:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 8], "level": 0, "parent": null, "vector": [8, 0, 0.0278, 0.0231, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[]
#!/usr/bin/env python # -*- coding: utf8 -*- ''' Created on 2011-7-26 京东价格图片识别模块 @author: zhongfeng ''' import ImageFilter, ImageChops from captcha_price import * from coo8.coo8_feature2 import COO8_FEATURES_MAP import Image import itertools import re import time try: import psyco psyco.full() except Impor...
ajibawa-2023/Python-Code-Large/train/row_2051
28
67
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2051:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 10], "level": 0, "parent": null, "vector": [8, 0, 0.1045, 0.1045, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2051:Try_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2051:Import_L21_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2051:Try_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2051:Expr_L22_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_205...
#!/usr/bin/env python # -*- coding: utf8 -*- ''' Created on 2011-7-26 京东价格图片识别模块 @author: zhongfeng ''' import ImageFilter, ImageChops from captcha_price import * from coo8.coo8_feature2 import COO8_FEATURES_MAP import Image import itertools import re import time try: import psyco psyco.full() except Impor...
ajibawa-2023/Python-Code-Large/train/row_2052
28
67
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2052:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 10], "level": 0, "parent": null, "vector": [8, 0, 0.1045, 0.1045, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2052:Try_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2052:Import_L21_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2052:Try_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2052:Expr_L22_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_205...
#!/usr/bin/env python # -*- coding: utf8 -*- ''' Created on 2011-8-1 @author: zhongfeng ''' from coo8.coo8pageparser import parserDict,coo8Root from spider import main if __name__ == '__main__': main(coo8Root,parserDict)
ajibawa-2023/Python-Code-Large/train/row_2053
5
16
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2053:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 9], "level": 0, "parent": null, "vector": [8, 0, 0.4062, 0.375, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotatio...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2053:If_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2053:Expr_L15_C4"}]
#!/usr/bin/env python # -*- coding: utf8 -*- ''' Created on 2011-8-16 @author: zhongfeng ''' COO8_FEATURES_MAP = { ''' __ __ __ __ __ __ __ __ __ ## #_ ## ''' : '.', ...
ajibawa-2023/Python-Code-Large/train/row_2054
2
216
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2054:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 8], "level": 0, "parent": null, "vector": [8, 0, 0.0278, 0.0231, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[]
#!/usr/bin/env python # -*- coding: utf8 -*- ''' Created on 2011-8-16 @author: zhongfeng ''' COO8_FEATURES_MAP = { ''' __ __ __ __ __ __ __ __ __ __ ## #_ ''' : '.', ...
ajibawa-2023/Python-Code-Large/train/row_2055
2
233
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2055:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 8], "level": 0, "parent": null, "vector": [8, 0, 0.0258, 0.0215, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[]
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' Created on 2011-8-7 主要用于从网站上爬取信息后,抽取页面信息; @author: zhongfeng ''' from cStringIO import StringIO from coo8.image_price import captcha_coo8 from crawlerhttp import crawleRetries from pageparser import * from threadpool import ThreadPool, WorkRequest im...
ajibawa-2023/Python-Code-Large/train/row_2056
155
215
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2056:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 10], "level": 0, "parent": null, "vector": [8, 0, 0.0326, 0.0326, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2056:ClassDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2056:Expr_L29_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2056:ClassDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2056:Assign_L33_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' Created on 2011-8-7 主要用于从网站上爬取信息后,抽取页面信息; @author: zhongfeng ''' from cStringIO import StringIO from coo8.image_price import captcha_coo8 from crawlerhttp import crawleRetries from pageparser import * from threadpool import ThreadPool, WorkRequest im...
ajibawa-2023/Python-Code-Large/train/row_2057
155
215
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2057:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 10], "level": 0, "parent": null, "vector": [8, 0, 0.0326, 0.0326, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2057:ClassDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2057:Expr_L29_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2057:ClassDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2057:Assign_L33_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
#!/usr/bin/env python # -*- coding: utf8 -*- ''' Created on 2011-8-1 @author: zhongfeng ''' from coo8.coo8pageparser import parserDict,coo8Root from spider import main if __name__ == '__main__': main(coo8Root,parserDict)
ajibawa-2023/Python-Code-Large/train/row_2058
5
16
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2058:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 9], "level": 0, "parent": null, "vector": [8, 0, 0.4062, 0.375, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotatio...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2058:If_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2058:Expr_L15_C4"}]
#/usr/bin/env python # -*- coding: utf-8 -*- ''' Created on 2011-9-19 @author: zhongfeng ''' import sys,os from dbproc.basedbproc import * def createSiteCat(urls, siteName, catKeyFunc=getCatKey,saveFlag = True): siteId = getSiteIdByName(siteName) for urlsum in urls: parent = urlsum.pare...
ajibawa-2023/Python-Code-Large/train/row_2059
189
258
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2059:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 8], "level": 0, "parent": null, "vector": [8, 0, 0.0233, 0.0194, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2059:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2059:Assign_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2059:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2059:For_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Larg...
#!/usr/bin/env python # -*- coding: utf-8 -*- import os,sys import glob from dbproc.basedbproc import getConnect,initClientEncode #=============================================================================== # 表 `prod_catagory` db proc #=====================================================================...
ajibawa-2023/Python-Code-Large/train/row_2060
55
75
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2060:Import_L4_C0", "label": "os import os, sys", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.0533, 0.0133, 0, 0.66, 0.0, 688, 0, 2, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os", "sys"], "rhs_cal...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2060:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2060:Expr_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2060:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2060:Assign_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/env python # -*- coding: utf-8 -*- import os,sys import glob from dbproc.basedbproc import getConnect,initClientEncode #=============================================================================== # 表 `prod_catagory` db proc #=====================================================================...
ajibawa-2023/Python-Code-Large/train/row_2061
55
75
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2061:Import_L4_C0", "label": "os import os, sys", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.0533, 0.0133, 0, 0.66, 0.0, 688, 0, 2, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os", "sys"], "rhs_cal...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2061:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2061:Expr_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2061:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2061:Assign_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' Created on 2011-11-11 @author: zhongfeng ''' from itertools import chain import os from dbproc.basedbproc import getCatBySiteIdAndLevel,getAllWebsiteBaseInfo,seEncode def createSiteCat(site_id): catDict = {} for level in xrange(0,3): c...
ajibawa-2023/Python-Code-Large/train/row_2062
24
35
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2062:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 8], "level": 0, "parent": null, "vector": [8, 0, 0.1714, 0.1429, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2062:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2062:Assign_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2062:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2062:For_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Larg...
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' Created on 2011-11-11 @author: zhongfeng ''' from itertools import chain import os from dbproc.basedbproc import getCatBySiteIdAndLevel,getAllWebsiteBaseInfo,seEncode def createSiteCat(site_id): catDict = {} for level in xrange(0,3): c...
ajibawa-2023/Python-Code-Large/train/row_2063
24
35
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2063:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 8], "level": 0, "parent": null, "vector": [8, 0, 0.1714, 0.1429, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2063:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2063:Assign_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2063:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2063:For_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Larg...
#! /usr/bin/env python # -*- coding: utf-8 -*- import ez_setup import shutil, sys, os, glob ez_setup.use_setuptools() from setuptools import setup, find_packages import py2exe curpath = os.path.dirname(os.path.abspath(__file__)) def find_py_modules(): fileList = (os.path.split(full)[-1] for full...
ajibawa-2023/Python-Code-Large/train/row_2064
34
82
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2064:Import_L4_C0", "label": "ez_setup import ez_setup", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.0488, 0.0122, 0, 0.66, 0.0, 650, 0, 1, 0, 0, 650, 0, 0], "semantic": {"name": "ez_setup", "arg_names": [], "import_names": ["ez_setup...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2064:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2064:Assign_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2064:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2064:Return_L16_C4"}, {"f": "ajibawa-2023/Python-Code-L...
#! /usr/bin/env python # -*- coding: utf-8 -*- import ez_setup import shutil, sys, os, glob ez_setup.use_setuptools() from setuptools import setup, find_packages import py2exe curpath = os.path.dirname(os.path.abspath(__file__)) def find_py_modules(): fileList = (os.path.split(full)[-1] for full...
ajibawa-2023/Python-Code-Large/train/row_2066
34
82
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2066:Import_L4_C0", "label": "ez_setup import ez_setup", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.0488, 0.0122, 0, 0.66, 0.0, 650, 0, 1, 0, 0, 650, 0, 0], "semantic": {"name": "ez_setup", "arg_names": [], "import_names": ["ez_setup...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2066:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2066:Assign_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2066:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2066:Return_L16_C4"}, {"f": "ajibawa-2023/Python-Code-L...
#!/usr/bin/env python # -*- coding: utf8 -*- ''' Created on 2011-7-26 京东价格图片识别模块 @author: zhongfeng ''' import ImageFilter, ImageChops from captcha_price import * from j360buy.j360_feature import __360buy_FEATURES_MAP__ import Image import re import time try: import psyco psyco.full() except ImportError: ...
ajibawa-2023/Python-Code-Large/train/row_2068
58
91
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2068:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 10], "level": 0, "parent": null, "vector": [8, 0, 0.0769, 0.0769, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2068:Try_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2068:Import_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2068:Try_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2068:Expr_L21_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_206...
#/usr/bin/env python # -*- coding: utf-8 -*- ''' Created on 2011-7-27 主要用于从网站上爬取信息后,抽取页面信息; @author: zhongfeng ''' from cStringIO import StringIO from j360buy.image_price import captcha_360buy from crawlerhttp import crawle from pageparser import * from threadpool import ThreadPool, WorkRequest impo...
ajibawa-2023/Python-Code-Large/train/row_2069
121
169
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2069:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 10], "level": 0, "parent": null, "vector": [8, 0, 0.0414, 0.0414, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2069:ClassDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2069:Expr_L25_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2069:ClassDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2069:Assign_L29_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
#!/usr/bin/env python # -*- coding: utf8 -*- ''' Created on 2011-8-16 @author: zhongfeng ''' __360buy_FEATURES_MAP__ = { ''' __ __ __ __ __ ...
ajibawa-2023/Python-Code-Large/train/row_2070
2
213
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2070:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 8], "level": 0, "parent": null, "vector": [8, 0, 0.0282, 0.0235, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[]
#!/usr/bin/env python # -*- coding: utf8 -*- ''' Created on 2011-7-26 京东价格图片识别模块 @author: zhongfeng ''' import ImageFilter, ImageChops from captcha_price import * from j360buy.j360_feature import __360buy_FEATURES_MAP__ import Image import re import time try: import psyco psyco.full() except ImportError: ...
ajibawa-2023/Python-Code-Large/train/row_2071
58
91
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2071:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 10], "level": 0, "parent": null, "vector": [8, 0, 0.0769, 0.0769, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2071:Try_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2071:Import_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2071:Try_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2071:Expr_L21_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_207...
#!/usr/bin/env python # -*- coding: utf8 -*- ''' Created on 2011-8-1 @author: zhongfeng ''' from j360pageparser import J360buyAllSortParser,J360buySort3PageParser,J360buySort4PageParser from pageparser import ObuyUrlSummary from spider import ObuySpider if __name__ == '__main__': parserDict = {0...
ajibawa-2023/Python-Code-Large/train/row_2072
16
41
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2072:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 8], "level": 0, "parent": null, "vector": [8, 0, 0.1463, 0.122, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotatio...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2072:If_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2072:Assign_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2072:If_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2072:Assign_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_207...
#!/usr/bin/env python # -*- coding: utf8 -*- ''' Created on 2011-8-16 @author: zhongfeng ''' __360buy_FEATURES_MAP__ = { ''' __ __ __ __ __ ...
ajibawa-2023/Python-Code-Large/train/row_2073
2
213
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2073:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 8], "level": 0, "parent": null, "vector": [8, 0, 0.0282, 0.0235, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[]
#!/usr/bin/env python # -*- coding: utf8 -*- ''' Created on 2011-8-1 @author: zhongfeng ''' from j360pageparser import J360buyAllSortParser,J360buySort3PageParser,J360buySort4PageParser from pageparser import ObuyUrlSummary from spider import ObuySpider if __name__ == '__main__': parserDict = {0...
ajibawa-2023/Python-Code-Large/train/row_2074
16
41
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2074:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 8], "level": 0, "parent": null, "vector": [8, 0, 0.1463, 0.122, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotatio...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2074:If_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2074:Assign_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2074:If_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2074:Assign_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_207...
#!/usr/bin/env python # -*- coding: utf8 -*- ''' Created on 2011-7-26 京东价格图片识别模块 @author: zhongfeng ''' import ImageFilter, ImageChops import Image import re import time try: import psyco psyco.full() except ImportError: pass class CaptchaAlgorithm(object): '''captcha algorithm''' def Levensht...
ajibawa-2023/Python-Code-Large/train/row_2075
71
125
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2075:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 10], "level": 0, "parent": null, "vector": [8, 0, 0.056, 0.056, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotatio...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2075:Try_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2075:Import_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2075:Try_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2075:Expr_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_207...
#/usr/bin/env python # -*- coding: utf-8 -*- ''' Created on 2011-8-02 主要用于从网站上爬取信息后,抽取页面信息; @author: zhongfeng ''' from pageparser import * class IcsonAllSortParser(RootCatagoryPageParser): ''' 从http://sz.icson.com/portal.html获取所有的分类信息, 组合成ObuyUrlSummary ''' ...
ajibawa-2023/Python-Code-Large/train/row_2077
97
146
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2077:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 10], "level": 0, "parent": null, "vector": [8, 0, 0.0479, 0.0479, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2077:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2077:Expr_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2077:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2077:Assign_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
#!/usr/bin/env python # -*- coding: utf8 -*- ''' Created on 2011-8-2 @author: zhongfeng ''' from icson.icsonpageparser import IcsonAllSortParser,IcsonSort3PageParser,IcsonSort4PageParser from pageparser import ObuyUrlSummary from spider import ObuySpider if __name__ == '__main__': parserDict = {...
ajibawa-2023/Python-Code-Large/train/row_2078
12
36
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2078:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 8], "level": 0, "parent": null, "vector": [8, 0, 0.1667, 0.1389, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2078:If_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2078:Assign_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2078:If_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2078:Assign_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_207...
#!/usr/bin/env python # -*- coding: utf8 -*- ''' Created on 2011-8-2 @author: zhongfeng ''' from icson.icsonpageparser import IcsonAllSortParser,IcsonSort3PageParser,IcsonSort4PageParser from pageparser import ObuyUrlSummary from spider import ObuySpider if __name__ == '__main__': parserDict = {...
ajibawa-2023/Python-Code-Large/train/row_2079
12
36
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2079:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 8], "level": 0, "parent": null, "vector": [8, 0, 0.1667, 0.1389, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2079:If_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2079:Assign_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2079:If_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2079:Assign_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_207...
#! /usr/bin/env python # -*- coding: utf-8 -*- # setup.py # Part of 21obuys, a package providing enumerated types for Python. # # Copyright © 2007 Ben Finney # This is free software; you may copy, modify and/or distribute this work # under the terms of the GNU General Public License, version 2 or later # or, at your ...
ajibawa-2023/Python-Code-Large/train/row_2080
4
50
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2080:Import_L11_C0", "label": "ez_setup import ez_setup", "type": "import", "loc": [11, 11], "level": 0, "parent": null, "vector": [1, 0, 0.22, 0.02, 0, 0.66, 0.0, 650, 0, 1, 0, 0, 650, 0, 0], "semantic": {"name": "ez_setup", "arg_names": [], "import_names": ["ez_setup"...
[]
#/usr/bin/env python # -*- coding: utf-8 -*- import re import time import random from BeautifulSoup import BeautifulSoup from crawlerhttp import UrlSummary, crawle urlsProxy = ["http://proxy.ipcn.org/proxylist.html"] #urlsProxy = ["http://www.proxycn.com/html_proxy/http-1.html"] desSite = 'http://www.360...
ajibawa-2023/Python-Code-Large/train/row_2081
42
61
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2081:Import_L4_C0", "label": "re import re", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.0656, 0.0164, 0, 0.66, 0.0, 540, 0, 1, 0, 0, 540, 0, 0], "semantic": {"name": "re", "arg_names": [], "import_names": ["re"], "rhs_call_name": "",...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2081:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2081:Assign_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2081:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2081:FunctionDef_L17_C4"}, {"f": "ajibawa-2023/Python-Code-La...
#/usr/bin/env python # -*- coding: utf-8 -*- ''' Created on 2011-7-27 主要用于从网站上爬取信息后,抽取页面信息; @author: zhongfeng ''' from pageparser import * class SuningAllSortParser(RootCatagoryPageParser): ''' 从http://www.suning.com/获取所有的分类信息, 组合成ObuyUrlSummary ''' mainHos...
ajibawa-2023/Python-Code-Large/train/row_2082
84
126
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2082:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 10], "level": 0, "parent": null, "vector": [8, 0, 0.0556, 0.0556, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2082:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2082:Expr_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2082:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2082:Assign_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
#!/usr/bin/env python # -*- coding: utf8 -*- ''' Created on 2011-7-26 京东价格图片识别模块 @author: zhongfeng ''' import ImageFilter, ImageChops import Image import re import time try: import psyco psyco.full() except ImportError: pass class CaptchaAlgorithm(object): '''captcha algorithm''' def Levensht...
ajibawa-2023/Python-Code-Large/train/row_2084
71
125
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2084:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 10], "level": 0, "parent": null, "vector": [8, 0, 0.056, 0.056, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotatio...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2084:Try_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2084:Import_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2084:Try_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2084:Expr_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_208...
#/usr/bin/env python # -*- coding: utf-8 -*- ''' Created on 2011-7-27 主要用于从网站上爬取信息后,抽取页面信息; @author: zhongfeng ''' from pageparser import * class GomeAllSortParser(RootCatagoryPageParser): ''' 从http://www.gome.com.cn/allSort.html获取所有的分类信息, 组合成ObuyUrlSummary ''' ...
ajibawa-2023/Python-Code-Large/train/row_2086
88
129
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2086:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 10], "level": 0, "parent": null, "vector": [8, 0, 0.0543, 0.0543, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2086:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2086:Expr_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2086:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2086:Assign_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
#!/usr/bin/env python # -*- coding: utf8 -*- ''' Created on 2011-8-2 @author: zhongfeng ''' from gomepageparser import GomeAllSortParser,GomeSort3PageParser,GomeSort4PageParser from pageparser import ObuyUrlSummary from spider import ObuySpider if __name__ == '__main__': parserDict = {0:GomeAllS...
ajibawa-2023/Python-Code-Large/train/row_2087
12
31
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2087:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 8], "level": 0, "parent": null, "vector": [8, 0, 0.1935, 0.1613, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2087:If_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2087:Assign_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2087:If_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2087:Assign_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_208...
#!/usr/bin/env python # -*- coding: utf8 -*- ''' Created on 2011-8-2 @author: zhongfeng ''' from gomepageparser import GomeAllSortParser,GomeSort3PageParser,GomeSort4PageParser from pageparser import ObuyUrlSummary from spider import ObuySpider if __name__ == '__main__': parserDict = {0:GomeAllS...
ajibawa-2023/Python-Code-Large/train/row_2088
12
31
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2088:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 8], "level": 0, "parent": null, "vector": [8, 0, 0.1935, 0.1613, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2088:If_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2088:Assign_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2088:If_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2088:Assign_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_208...
#/usr/bin/env python # -*- coding: utf-8 -*- ''' Created on 2011-7-27 主要用于从网站上爬取信息后,抽取页面信息; @author: zhongfeng ''' from pageparser import * import re from copy import deepcopy class AmazonAllSortParser(RootCatagoryPageParser): ''' 从http://www.amazon.cn/gp/site-directory获取所有的分类信息, ...
ajibawa-2023/Python-Code-Large/train/row_2091
148
212
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2091:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 10], "level": 0, "parent": null, "vector": [8, 0, 0.033, 0.033, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotatio...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2091:ClassDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2091:Expr_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2091:ClassDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2091:Assign_L21_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
#/usr/bin/env python # -*- coding: utf-8 -*- ''' Created on 2011-7-27 主要用于从网站上爬取信息后,抽取页面信息; @author: zhongfeng ''' from BeautifulSoup import BeautifulSoup, Comment from copy import deepcopy from pageparser import * import itertools import json import os import re import urllib import urlparse ...
ajibawa-2023/Python-Code-Large/train/row_2092
211
296
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2092:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 10], "level": 0, "parent": null, "vector": [8, 0, 0.0236, 0.0236, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2092:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2092:Expr_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2092:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2092:Assign_L27_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
#!/usr/bin/env python # -*- coding: utf8 -*- ''' Created on 2011-8-2 @author: zhongfeng ''' from dangpageparser import DangDangAllSortParser,DangDangSort3PageParser,DangDangSort4PageParser from pageparser import ObuyUrlSummary from spider import ObuySpider if __name__ == '__main__': parserDict =...
ajibawa-2023/Python-Code-Large/train/row_2093
12
36
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2093:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 8], "level": 0, "parent": null, "vector": [8, 0, 0.1667, 0.1389, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2093:If_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2093:Assign_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2093:If_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2093:Assign_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_209...