/external/ltp/testcases/realtime/scripts/ |
parser.py | 32 def __init__(self,filename): 33 if filename: 34 log_file=filename
|
/external/ply/ply/example/yply/ |
yply.py | 41 filename = sys.argv[2] variable 43 filename = sys.argv[1] variable 45 yacc.parse(open(filename).read())
|
/external/python/cpython2/Lib/ |
codeop.py | 4 function compile(), which take program text, a filename and a 'mode' 39 compile_command(source, filename, symbol): 68 def _maybe_compile(compiler, source, filename, symbol): 82 code = compiler(source, filename, symbol) 87 code1 = compiler(source + "\n", filename, symbol) 92 code2 = compiler(source + "\n\n", filename, symbol) 101 def _compile(source, filename, symbol): 102 return compile(source, filename, symbol, PyCF_DONT_IMPLY_DEDENT) 104 def compile_command(source, filename="<input>", symbol="single"): 110 filename -- optional filename from which source was read; defaul [all...] |
whichdb.py | 17 def whichdb(filename): 32 f = open(filename + os.extsep + "pag", "rb") 36 f = open(filename + os.extsep + "dir", "rb") 43 f = open(filename + os.extsep + "db", "rb") 49 d = dbm.open(filename) 58 os.stat(filename + os.extsep + "dat") 59 size = os.stat(filename + os.extsep + "dir").st_size 63 f = open(filename + os.extsep + "dir", "rb") 74 f = open(filename, "rb") 116 for filename in sys.argv[1:] [all...] |
/external/python/cpython3/Lib/ |
codeop.py | 4 function compile(), which take program text, a filename and a 'mode' 39 compile_command(source, filename, symbol): 68 def _maybe_compile(compiler, source, filename, symbol): 82 code = compiler(source, filename, symbol) 87 code1 = compiler(source + "\n", filename, symbol) 92 code2 = compiler(source + "\n\n", filename, symbol) 101 def _compile(source, filename, symbol): 102 return compile(source, filename, symbol, PyCF_DONT_IMPLY_DEDENT) 104 def compile_command(source, filename="<input>", symbol="single"): 110 filename -- optional filename from which source was read; defaul [all...] |
/external/swiftshader/third_party/LLVM/utils/lint/ |
generic_lint.py | 12 def RunOnFile(self, filename, lines): 13 common_lint.VerifyLineLength(filename, lines, 15 common_lint.VerifyTrailingWhitespace(filename, lines)
|
/external/tensorflow/tensorflow/java/src/main/java/org/tensorflow/ |
TensorFlow.java | 33 * Load the dynamic library in filename and register the operations and kernels present in that 36 * @param filename Path of the dynamic library containing operations and kernels to load. 40 * @throws UnsatisfiedLinkError if filename cannot be loaded. 42 public static byte[] loadLibrary(String filename) { 45 h = libraryLoad(filename); 56 private static native long libraryLoad(String filename);
|
/prebuilts/gdb/darwin-x86/lib/python2.7/ |
codeop.py | 4 function compile(), which take program text, a filename and a 'mode' 39 compile_command(source, filename, symbol): 68 def _maybe_compile(compiler, source, filename, symbol): 82 code = compiler(source, filename, symbol) 87 code1 = compiler(source + "\n", filename, symbol) 92 code2 = compiler(source + "\n\n", filename, symbol) 101 def _compile(source, filename, symbol): 102 return compile(source, filename, symbol, PyCF_DONT_IMPLY_DEDENT) 104 def compile_command(source, filename="<input>", symbol="single"): 110 filename -- optional filename from which source was read; defaul [all...] |
whichdb.py | 17 def whichdb(filename): 32 f = open(filename + os.extsep + "pag", "rb") 36 f = open(filename + os.extsep + "dir", "rb") 43 f = open(filename + os.extsep + "db", "rb") 49 d = dbm.open(filename) 58 os.stat(filename + os.extsep + "dat") 59 size = os.stat(filename + os.extsep + "dir").st_size 63 f = open(filename + os.extsep + "dir", "rb") 74 f = open(filename, "rb") 116 for filename in sys.argv[1:] [all...] |
/prebuilts/gdb/linux-x86/lib/python2.7/ |
codeop.py | 4 function compile(), which take program text, a filename and a 'mode' 39 compile_command(source, filename, symbol): 68 def _maybe_compile(compiler, source, filename, symbol): 82 code = compiler(source, filename, symbol) 87 code1 = compiler(source + "\n", filename, symbol) 92 code2 = compiler(source + "\n\n", filename, symbol) 101 def _compile(source, filename, symbol): 102 return compile(source, filename, symbol, PyCF_DONT_IMPLY_DEDENT) 104 def compile_command(source, filename="<input>", symbol="single"): 110 filename -- optional filename from which source was read; defaul [all...] |
whichdb.py | 17 def whichdb(filename): 32 f = open(filename + os.extsep + "pag", "rb") 36 f = open(filename + os.extsep + "dir", "rb") 43 f = open(filename + os.extsep + "db", "rb") 49 d = dbm.open(filename) 58 os.stat(filename + os.extsep + "dat") 59 size = os.stat(filename + os.extsep + "dir").st_size 63 f = open(filename + os.extsep + "dir", "rb") 74 f = open(filename, "rb") 116 for filename in sys.argv[1:] [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ |
codeop.py | 4 function compile(), which take program text, a filename and a 'mode' 39 compile_command(source, filename, symbol): 68 def _maybe_compile(compiler, source, filename, symbol): 82 code = compiler(source, filename, symbol) 87 code1 = compiler(source + "\n", filename, symbol) 92 code2 = compiler(source + "\n\n", filename, symbol) 101 def _compile(source, filename, symbol): 102 return compile(source, filename, symbol, PyCF_DONT_IMPLY_DEDENT) 104 def compile_command(source, filename="<input>", symbol="single"): 110 filename -- optional filename from which source was read; defaul [all...] |
whichdb.py | 17 def whichdb(filename): 32 f = open(filename + os.extsep + "pag", "rb") 36 f = open(filename + os.extsep + "dir", "rb") 43 f = open(filename + os.extsep + "db", "rb") 49 d = dbm.open(filename) 58 os.stat(filename + os.extsep + "dat") 59 size = os.stat(filename + os.extsep + "dir").st_size 63 f = open(filename + os.extsep + "dir", "rb") 74 f = open(filename, "rb") 116 for filename in sys.argv[1:] [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/ |
codeop.py | 4 function compile(), which take program text, a filename and a 'mode' 39 compile_command(source, filename, symbol): 68 def _maybe_compile(compiler, source, filename, symbol): 82 code = compiler(source, filename, symbol) 87 code1 = compiler(source + "\n", filename, symbol) 92 code2 = compiler(source + "\n\n", filename, symbol) 101 def _compile(source, filename, symbol): 102 return compile(source, filename, symbol, PyCF_DONT_IMPLY_DEDENT) 104 def compile_command(source, filename="<input>", symbol="single"): 110 filename -- optional filename from which source was read; defaul [all...] |
whichdb.py | 17 def whichdb(filename): 32 f = open(filename + os.extsep + "pag", "rb") 36 f = open(filename + os.extsep + "dir", "rb") 43 f = open(filename + os.extsep + "db", "rb") 49 d = dbm.open(filename) 58 os.stat(filename + os.extsep + "dat") 59 size = os.stat(filename + os.extsep + "dir").st_size 63 f = open(filename + os.extsep + "dir", "rb") 74 f = open(filename, "rb") 116 for filename in sys.argv[1:] [all...] |
/device/linaro/bootloader/arm-trusted-firmware/tools/cert_create/src/ |
sha.c | 14 int sha_file(const char *filename, unsigned char *md) 21 if ((filename == NULL) || (md == NULL)) { 26 inFile = fopen(filename, "rb"); 28 ERROR("Cannot read %s\n", filename);
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/scripts/ |
update.py | 4 # The input file contains lines of the form <filename>:<lineno>:<text>,
17 def __init__(self, filename):
18 self.filename = filename
21 self.lines = open(filename, 'r').readlines()
23 print '*** Can\'t open "%s":' % filename, msg
26 print 'diffing', self.filename
30 print 'no changes to', self.filename
33 os.rename(self.filename, self.filename + '~') [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/ |
untabify.py | 23 for filename in args:
24 process(filename, tabsize)
26 def process(filename, tabsize, verbose=True):
28 f = open(filename)
32 print "%r: I/O error: %s" % (filename, msg)
37 backup = filename + "~"
43 os.rename(filename, backup)
46 with open(filename, "w") as f:
49 print filename
|
/external/annotation-tools/buildtest/ |
TestWrapper.java | 17 for (String filename : args) { 19 if (containsJUnitFailure(filename)) { 21 System.out.println("Failed tests in: " + filename); 22 print(filename); 25 System.out.println("Problem reading file " + filename); 34 * @param filename the name of the file to examine. 36 private static boolean containsJUnitFailure(String filename) throws IOException { 37 BufferedReader in = new BufferedReader(new FileReader(filename)); 52 * @param filename the name of the file to print 55 private static void print(String filename) throws IOException [all...] |
/external/annotation-tools/scene-lib/test/annotations/tests/executable/ |
JavapDemo.java | 18 String filename = args[0]; local 19 LineNumberReader lnr = new LineNumberReader(new FileReader(filename)); 21 JavapParser.parse(new FileReader(filename), scene); 23 throw new FileIOException(lnr, filename, e);
|
/external/expat/xmlwf/ |
xmlfile.h | 47 const XML_Char *filename,
|
/external/gptfdisk/ |
gpttext.h | 32 GPTDataTextUI(string filename); 61 void MainMenu(string filename); 63 void ExpertsMenu(string filename); 65 void RecoveryMenu(string filename);
|
/external/jsilver/src/org/clearsilver/ |
CSFileLoader.java | 31 * @param filename the name of the file that should be loaded. 34 public String load(HDF hdf, String filename) throws IOException;
|
/external/libmojo/mojo/public/tools/bindings/pylib/mojom_tests/support/ |
find_files.py | 16 for filename in fnmatch.filter(filenames, pattern): 17 matches.append(join(dirpath, filename)) 26 for filename in FindFiles(argv[1], argv[2]): 27 print filename
|
/external/libxml2/doc/examples/ |
parse2.c | 19 * @filename: a filename or an URL 24 exampleFunc(const char *filename) { 35 doc = xmlCtxtReadFile(ctxt, filename, NULL, XML_PARSE_DTDVALID); 38 fprintf(stderr, "Failed to parse %s\n", filename); 42 fprintf(stderr, "Failed to validate %s\n", filename);
|