Lines Matching refs:filename
14 def __get_data_size(filename): argument
15 if filename[0] != '/':
16 filename = os.path.dirname(os.path.abspath(__file__)) + "/../" + filename
17 if filename in __file_size_map:
18 return __file_size_map[filename]
21 open(filename, "rb").read())
27 __file_size_map[filename] = (size, 1.0 * size / count)
58 def __parse_cpp_result(filename): argument
59 if filename == "":
61 if filename[0] != '/':
62 filename = os.path.dirname(os.path.abspath(__file__)) + '/' + filename
63 with open(filename, "rb") as f:
93 def __parse_synthetic_result(filename): argument
94 if filename == "":
96 if filename[0] != "/":
97 filename = os.path.dirname(os.path.abspath(__file__)) + "/" + filename
98 with open(filename, "rb") as f:
123 def __parse_python_result(filename): argument
124 if filename == "":
126 if filename[0] != '/':
127 filename = os.path.dirname(os.path.abspath(__file__)) + '/' + filename
128 with open(filename, "rb") as f:
173 def __parse_java_result(filename): argument
174 if filename == "":
176 if filename[0] != '/':
177 filename = os.path.dirname(os.path.abspath(__file__)) + '/' + filename
178 with open(filename, "rb") as f:
209 def __parse_go_result(filename): argument
210 if filename == "":
212 if filename[0] != '/':
213 filename = os.path.dirname(os.path.abspath(__file__)) + '/' + filename
214 with open(filename, "rb") as f:
249 def __parse_custom_result(filename, language): argument
250 if filename == "":
252 if filename[0] != '/':
253 filename = os.path.dirname(os.path.abspath(__file__)) + '/' + filename
254 with open(filename, "rb") as f:
267 def __parse_js_result(filename, language): argument
268 return __parse_custom_result(filename, language)
270 def __parse_php_result(filename, language): argument
271 return __parse_custom_result(filename, language)