code
stringlengths
1
1.49M
vector
listlengths
0
7.38k
snippet
listlengths
0
7.38k
# Copyright 2008-2012 Nokia Siemens Networks Oyj # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
[ [ 1, 0, 0.1304, 0.0087, 0, 0.66, 0, 777, 0, 1, 0, 0, 777, 0, 0 ], [ 1, 0, 0.1391, 0.0087, 0, 0.66, 0.0769, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.1478, 0.0087, 0, ...
[ "from __future__ import with_statement", "import os", "import re", "from robot.utils import HtmlWriter", "from robot.version import get_full_version", "from .template import HtmlTemplate", "class HtmlFileWriter(object):\n\n def __init__(self, output, model_writer):\n self._output = output\n ...
# Copyright 2008-2012 Nokia Siemens Networks Oyj # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
[ [ 1, 0, 0.102, 0.0068, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 3, 0, 0.1871, 0.1361, 0, 0.66, 0.1111, 902, 0, 4, 0, 0, 186, 0, 8 ], [ 2, 1, 0.1429, 0.0204, 1, 0...
[ "import os", "class JsonWriter(object):\n\n def __init__(self, output, separator=''):\n self._writer = JsonDumper(output)\n self._separator = separator\n\n def write_json(self, prefix, data, postfix=';'+os.linesep, mapping=None,\n separator=True):", " def __init__(self, ...
# Copyright 2008-2012 Nokia Siemens Networks Oyj # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
[ [ 1, 0, 0.5, 0.0333, 0, 0.66, 0, 777, 0, 1, 0, 0, 777, 0, 0 ], [ 1, 0, 0.5333, 0.0333, 0, 0.66, 0.25, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.5667, 0.0333, 0, 0.66,...
[ "from __future__ import with_statement", "import os", "from os.path import abspath, dirname, join, normpath", "from robot.utils import utf8open", "class HtmlTemplate(object):\n _base_dir = join(dirname(abspath(__file__)), '..', 'htmldata')\n\n def __init__(self, filename):\n self._path = normpa...
# Copyright 2008-2012 Nokia Siemens Networks Oyj # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
[ [ 1, 0, 0.3261, 0.0217, 0, 0.66, 0, 777, 0, 1, 0, 0, 777, 0, 0 ], [ 1, 0, 0.3478, 0.0217, 0, 0.66, 0.1667, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.3696, 0.0217, 0, ...
[ "from __future__ import with_statement", "import os", "from posixpath import normpath, join", "from contextlib import contextmanager", "from java.io import BufferedReader, InputStreamReader", "from org.robotframework.RobotRunner import getResourceAsStream", "class HtmlTemplate(object):\n _base_dir = ...
# Copyright 2008-2012 Nokia Siemens Networks Oyj # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
[ [ 8, 0, 0.6296, 0.1852, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.7778, 0.037, 0, 0.66, 0.1667, 613, 0, 2, 0, 0, 613, 0, 0 ], [ 1, 0, 0.8148, 0.037, 0, 0.66, ...
[ "\"\"\"Generic functionality for writing output files in HTML format.\n\n:mod:`robot.reporting`, :mod:`robot.libdoc` and :mod:`robot.testdoc` use\nthis package.\n\"\"\"", "from .htmlfilewriter import HtmlFileWriter, ModelWriter", "from .jsonwriter import JsonWriter", "LOG = 'rebot/log.html'", "REPORT = 'reb...
# Copyright 2008-2012 Nokia Siemens Networks Oyj # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
[ [ 7, 0, 0.9167, 0.2222, 0, 0.66, 0, 0, 0, 1, 0, 0, 0, 0, 0 ], [ 1, 1, 0.8889, 0.0556, 1, 0.36, 0, 628, 0, 1, 0, 0, 628, 0, 0 ], [ 1, 1, 1, 0.0556, 1, 0.36, 0, ...
[ "try:\n from .jartemplate import HtmlTemplate\nexcept ImportError:\n from .normaltemplate import HtmlTemplate", " from .jartemplate import HtmlTemplate", " from .normaltemplate import HtmlTemplate" ]
#!/usr/bin/env python # Copyright 2008-2012 Nokia Siemens Networks Oyj # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless req...
[ [ 8, 0, 0.25, 0.1333, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.3333, 0.0111, 0, 0.66, 0.1429, 777, 0, 1, 0, 0, 777, 0, 0 ], [ 1, 0, 0.3444, 0.0111, 0, 0.66, ...
[ "\"\"\"fixml.py -- A tool to fix broken Robot Framework output files\n\nUsage: fixml.py inpath outpath\n\nThis tool can fix Robot Framework output files that are not properly finished\nor are missing elements from the middle. It should be possible to generate\nreports and logs from the fixed output afterwards with...
#!/usr/bin/env python # Copyright 2008-2012 Nokia Siemens Networks Oyj # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless req...
[ [ 8, 0, 0.2598, 0.1961, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.3725, 0.0098, 0, 0.66, 0.0909, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.3824, 0.0098, 0, 0.66...
[ "\"\"\"Robot Framework Start/End/Elapsed Time Reporter\n\nUsage: times2csv.py input-xml [output-csv] [include-items]\n\nThis script reads start, end, and elapsed times from all suites, tests and/or\nkeywords from the given output file, and writes them into an file in\ncomma-separated-values (CSV) format. CSV files...
#!/usr/bin/env python # tool2html.py -- Creates HTML version of given tool documentation # # First part of this file is Pygments configuration and actual # documentation generation follows it. # # Pygments configuration # # This code is from 'external/rst-directive.py' file included in Pygments 0.9 # distribution. F...
[ [ 8, 0, 0.2254, 0.2465, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.3873, 0.007, 0, 0.66, 0.0455, 281, 1, 0, 0, 0, 0, 4, 0 ], [ 1, 0, 0.4014, 0.007, 0, 0.66, ...
[ "\"\"\"\n The Pygments MoinMoin Parser\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n This fragment is a Docutils_ 0.4 directive that renders source code\n (to HTML only, currently) via Pygments.\n\n To use it, adjust the options below and copy the code into a module", "INLINESTYLES = False", "from pygments....
# Copyright 2008-2012 Nokia Siemens Networks Oyj # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
[ [ 1, 0, 0.0852, 0.0057, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.0909, 0.0057, 0, 0.66, 0.1667, 878, 0, 1, 0, 0, 878, 0, 0 ], [ 1, 0, 0.0966, 0.0057, 0, ...
[ "import sys", "import inspect", "import traceback", "from StringIO import StringIO", "from SimpleXMLRPCServer import SimpleXMLRPCServer", "try:\n import signal\nexcept ImportError:\n signal = None", " import signal", " signal = None", "class RobotRemoteServer(SimpleXMLRPCServer):\n al...
import sys from SimpleXMLRPCServer import SimpleXMLRPCServer class SimpleLibrary(SimpleXMLRPCServer): def __init__(self, port=8270): SimpleXMLRPCServer.__init__(self, ('localhost', int(port))) self.register_function(self.get_keyword_names) self.register_function(self.run_keyword) ...
[ [ 1, 0, 0.027, 0.027, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.0541, 0.027, 0, 0.66, 0.3333, 73, 0, 1, 0, 0, 73, 0, 0 ], [ 3, 0, 0.5135, 0.7838, 0, 0.66,...
[ "import sys", "from SimpleXMLRPCServer import SimpleXMLRPCServer", "class SimpleLibrary(SimpleXMLRPCServer):\n\n def __init__(self, port=8270):\n SimpleXMLRPCServer.__init__(self, ('localhost', int(port)))\n self.register_function(self.get_keyword_names)\n self.register_function(self.run...
# Can be used in the test data like ${MyObject()} or ${MyObject(1)} class MyObject: def __init__(self, index=''): self.index = index def __str__(self): return '<MyObject%s>' % self.index UNICODE = (u'Hyv\u00E4\u00E4 y\u00F6t\u00E4. ' u'\u0421\u043F\u0430\u0441\u0438\u0431\u043E!') LI...
[ [ 3, 0, 0.25, 0.3125, 0, 0.66, 0, 605, 0, 2, 0, 0, 0, 0, 0 ], [ 2, 1, 0.2188, 0.125, 1, 0.42, 0, 555, 0, 2, 0, 0, 0, 0, 0 ], [ 14, 2, 0.25, 0.0625, 2, 0.58, 0, ...
[ "class MyObject:\n def __init__(self, index=''):\n self.index = index\n def __str__(self):\n return '<MyObject%s>' % self.index", " def __init__(self, index=''):\n self.index = index", " self.index = index", " def __str__(self):\n return '<MyObject%s>' % self.ind...
import sys class RemoteTestLibrary: _unicode = (u'Hyv\u00E4\u00E4 y\u00F6t\u00E4. ' u'\u0421\u043F\u0430\u0441\u0438\u0431\u043E!') def get_server_language(self): lang = sys.platform.startswith('java') and 'jython' or 'python' return '%s%d%d' % (lang, sys.version_info[0], sys...
[ [ 1, 0, 0.0032, 0.0032, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 3, 0, 0.4792, 0.9359, 0, 0.66, 0.25, 637, 0, 81, 0, 0, 0, 0, 65 ], [ 14, 1, 0.0208, 0.0064, 1, 0...
[ "import sys", "class RemoteTestLibrary:\n\n _unicode = (u'Hyv\\u00E4\\u00E4 y\\u00F6t\\u00E4. '\n u'\\u0421\\u043F\\u0430\\u0441\\u0438\\u0431\\u043E!')\n\n def get_server_language(self):\n lang = sys.platform.startswith('java') and 'jython' or 'python'\n return '%s%d%d' % (lang...
#!/usr/bin/env python # Copyright 2008-2012 Nokia Siemens Networks Oyj # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless req...
[ [ 8, 0, 0.1446, 0.0783, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1928, 0.006, 0, 0.66, 0.1429, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.1988, 0.006, 0, 0.66, ...
[ "\"\"\"Robot Framework Debugfile Viewer\n\nUsage: fileviever.py [path]\n\nThis tool is mainly targeted for viewing Robot Framework debug files set\nwith '--debugfile' command line option when running test. The idea is to\nprovide a tool that has similar functionality as 'tail -f' command in \nunixy systems.", "i...
#!/usr/bin/env python # Copyright 2008-2012 Nokia Siemens Networks Oyj # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless req...
[ [ 8, 0, 0.1474, 0.1211, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.2158, 0.0053, 0, 0.66, 0.0833, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 1, 0, 0.2263, 0.0053, 0, 0.66...
[ "\"\"\"Robot Framework Test Status Checker\n\nUsage: statuschecker.py infile [outfile]\n\nThis tool processes Robot Framework output XML files and checks that test case\nstatuses and messages are as expected. Main use case is post-processing output\nfiles got when testing Robot Framework test libraries using Robot...
#!/usr/bin/env python """qs2html.py -- Creates HTML version of Robot Framework Quick Start Guide Usage: qs2html.py [ cr(eate) | dist | zip ] create .. Creates the HTML version of the Quick Start Guide. dist .... Creates the Quick Start Guide and copies it and all its dependencies under directory named '...
[ [ 8, 0, 0.1076, 0.1519, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.2025, 0.0127, 0, 0.66, 0.1, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.2152, 0.0127, 0, 0.66, ...
[ "\"\"\"qs2html.py -- Creates HTML version of Robot Framework Quick Start Guide\n\nUsage: qs2html.py [ cr(eate) | dist | zip ]\n\ncreate .. Creates the HTML version of the Quick Start Guide.\n\ndist .... Creates the Quick Start Guide and copies it and all its dependencies \n under directory named 'robotfra...
import os import sys import subprocess class LoginLibrary: def __init__(self): self._sut_path = os.path.join(os.path.dirname(__file__), '..', 'sut', 'login.py') self._status = '' def create_user(self, username, password): self._run_command('creat...
[ [ 1, 0, 0.0303, 0.0303, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0606, 0.0303, 0, 0.66, 0.3333, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.0909, 0.0303, 0, ...
[ "import os", "import sys", "import subprocess", "class LoginLibrary:\n\n def __init__(self):\n self._sut_path = os.path.join(os.path.dirname(__file__),\n '..', 'sut', 'login.py')\n self._status = ''\n\n def create_user(self, username, password):", " ...
def simple_keyword(): """Log a message""" print 'You have used the simplest keyword.' def greet(name): """Logs a friendly greeting to person given as argument""" print 'Hello %s!' % name def multiply_by_two(number): """Returns the given number multiplied by two The result is always a floa...
[ [ 2, 0, 0.1, 0.15, 0, 0.66, 0, 30, 0, 0, 0, 0, 0, 0, 1 ], [ 8, 1, 0.1, 0.05, 1, 0.51, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 8, 1, 0.15, 0.05, 1, 0.51, 1, 535, ...
[ "def simple_keyword():\n \"\"\"Log a message\"\"\"\n print('You have used the simplest keyword.')", " \"\"\"Log a message\"\"\"", " print('You have used the simplest keyword.')", "def greet(name):\n \"\"\"Logs a friendly greeting to person given as argument\"\"\"\n print('Hello %s!' % name)"...
#!/usr/bin/env python """pt2html.py -- Creates HTML version of Python Tutorial Usage: pt2html.py """ import sys import os import shutil import time sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..', 'userguide')) import ug2html # This also initializes docutils and pygments def create_tutorial(): ...
[ [ 8, 0, 0.125, 0.1111, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.2222, 0.0278, 0, 0.66, 0.125, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.25, 0.0278, 0, 0.66, ...
[ "\"\"\"pt2html.py -- Creates HTML version of Python Tutorial\n\nUsage: pt2html.py\n\"\"\"", "import sys", "import os", "import shutil", "import time", "sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..', 'userguide'))", "import ug2html # This also initializes docutils and pygments", "de...
#!/usr/bin/env python """Usage: lib2html.py [ library | all ] Libraries: BuiltIn (bu) Collections (co) Dialogs (di) OperatingSystem (op) Screenshot (sc) String (st) Telnet (te) XML (xm) """ import sys import os import re ROOT = os.path.normpath(os.path.join(os.path.abspath(__file__),'..','..','..')...
[ [ 8, 0, 0.1771, 0.25, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.3333, 0.0208, 0, 0.66, 0.1, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.3542, 0.0208, 0, 0.66, ...
[ "\"\"\"Usage: lib2html.py [ library | all ]\n\nLibraries:\n BuiltIn (bu)\n Collections (co)\n Dialogs (di)\n OperatingSystem (op)\n Screenshot (sc)", "import sys", "import os", "import re", "ROOT = os.path.normpath(os.path.join(os.path.abspath(__file__),'..','..','..'))", "sys.path.insert(0, os.path...
#!/usr/bin/env python """ug2html.py -- Creates HTML version of Robot Framework User Guide Usage: ug2html.py [ cr(eate) | dist | zip ] create .. Creates the user guide so that it has relative links to images, library docs, etc. This version is stored in the version control and distributed with th...
[ [ 8, 0, 0.0453, 0.0717, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0868, 0.0038, 0, 0.66, 0.0435, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0906, 0.0038, 0, 0.66...
[ "\"\"\"ug2html.py -- Creates HTML version of Robot Framework User Guide\n\nUsage: ug2html.py [ cr(eate) | dist | zip ]\n\ncreate .. Creates the user guide so that it has relative links to images,\n library docs, etc. This version is stored in the version control\n and distributed with the source ...
class LoggingLibrary: """Library for logging messages. = Table of contents = - `Usage` - `Valid log levels` - `Examples` - `Importing` - `Shortcuts` - `Keywords` = Usage = This library has several keyword, for example `Log Message`, for logging messages. In reality the li...
[ [ 3, 0, 0.5064, 1, 0, 0.66, 0, 585, 0, 5, 0, 0, 0, 0, 8 ], [ 8, 1, 0.2115, 0.3846, 1, 0.17, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 1, 0.4103, 0.0128, 1, 0.17, 0.166...
[ "class LoggingLibrary:\n \"\"\"Library for logging messages.\n\n = Table of contents =\n\n - `Usage`\n - `Valid log levels`\n - `Examples`", " \"\"\"Library for logging messages.\n\n = Table of contents =\n\n - `Usage`\n - `Valid log levels`\n - `Examples`\n - `Importing`", " ...
#! /usr/bin/env python """generate.py -- Generate Robot Framework API documentation usage: generate.py This script creates API documentation from both Python and Java source code included in `src/python and `src/java`, respectively. Python autodocs are created in `doc/api/autodoc` and Javadocs in `doc/api/_static/ja...
[ [ 8, 0, 0.1214, 0.1714, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.2286, 0.0143, 0, 0.66, 0.0625, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.2429, 0.0143, 0, 0.66...
[ "\"\"\"generate.py -- Generate Robot Framework API documentation\n\nusage: generate.py\n\nThis script creates API documentation from both Python and Java source code\nincluded in `src/python and `src/java`, respectively. Python autodocs are\ncreated in `doc/api/autodoc` and Javadocs in `doc/api/_static/javadoc`.", ...
#!/usr/bin/env python """Usage: check_test_times.py inpath [outpath] Reads result of a test run from Robot output file and checks that no test took longer than 3 minutest to execute. If outpath is not given, the result is written over the original file. """ import sys from robot.result import ExecutionResult def c...
[ [ 8, 0, 0.1618, 0.1765, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.2941, 0.0294, 0, 0.66, 0.2, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.3235, 0.0294, 0, 0.66, ...
[ "\"\"\"Usage: check_test_times.py inpath [outpath]\n\nReads result of a test run from Robot output file and checks that no test\ntook longer than 3 minutest to execute. If outpath is not given, the\nresult is written over the original file.\n\"\"\"", "import sys", "from robot.result import ExecutionResult", "...
class CheckMultipleItemsLibrary: def items_should_not_contain(self, value, *items): """Checks that none of the given 'items' contains the given 'value'.""" items_containing_value = [ item for item in items if value in item ] if items_containing_value: message = "Items '%s' cont...
[ [ 3, 0, 0.55, 1, 0, 0.66, 0, 960, 0, 1, 0, 0, 0, 0, 2 ], [ 2, 1, 0.65, 0.8, 1, 0.36, 0, 121, 0, 3, 0, 0, 0, 0, 2 ], [ 8, 2, 0.4, 0.1, 2, 0.25, 0, 0, 1, ...
[ "class CheckMultipleItemsLibrary:\n\n def items_should_not_contain(self, value, *items):\n \"\"\"Checks that none of the given 'items' contains the given 'value'.\"\"\"\n\n items_containing_value = [ item for item in items if value in item ]\n if items_containing_value:\n message ...
"""Robot Framework test library example that calls C code. This example uses Python's standard `ctypes` module, which requires that the C code is compiled into a shared library. It is also possible to execute this file from the command line to test the C code manually. """ from ctypes import CDLL, c_char_p LIBRARY...
[ [ 8, 0, 0.1552, 0.2759, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.3448, 0.0345, 0, 0.66, 0.25, 182, 0, 2, 0, 0, 182, 0, 0 ], [ 14, 0, 0.4138, 0.0345, 0, 0.66,...
[ "\"\"\"Robot Framework test library example that calls C code.\n\nThis example uses Python's standard `ctypes` module, which requires\nthat the C code is compiled into a shared library.\n\nIt is also possible to execute this file from the command line \nto test the C code manually.\n\"\"\"", "from ctypes import C...
from robot import run as run_robot import cProfile import pstats filename = 'robot.profile' cProfile.run('run_robot("/home/husa/workspace/robotframework/atest/testdata/misc/")', filename) p = pstats.Stats(filename) p.strip_dirs().sort_stats(-1).print_stats()
[ [ 1, 0, 0.1, 0.1, 0, 0.66, 0, 735, 0, 1, 0, 0, 735, 0, 0 ], [ 1, 0, 0.2, 0.1, 0, 0.66, 0.1667, 686, 0, 1, 0, 0, 686, 0, 0 ], [ 1, 0, 0.3, 0.1, 0, 0.66, 0.3333, ...
[ "from robot import run as run_robot", "import cProfile", "import pstats", "filename = 'robot.profile'", "cProfile.run('run_robot(\"/home/husa/workspace/robotframework/atest/testdata/misc/\")', filename)", "p = pstats.Stats(filename)", "p.strip_dirs().sort_stats(-1).print_stats()" ]
#!/usr/bin/env python """Profiler for Robot Framework `run` and `rebot`. Usage: profiler.py run|rebot [options] arguments """ import cProfile import pstats import os from os.path import abspath, dirname, join import sys import tempfile rootdir = dirname(dirname(abspath(__file__))) sys.path.insert(0, join(rootdir, '...
[ [ 8, 0, 0.1216, 0.1081, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.2162, 0.027, 0, 0.66, 0.0833, 686, 0, 1, 0, 0, 686, 0, 0 ], [ 1, 0, 0.2432, 0.027, 0, 0.66, ...
[ "\"\"\"Profiler for Robot Framework `run` and `rebot`.\n\nUsage: profiler.py run|rebot [options] arguments\n\"\"\"", "import cProfile", "import pstats", "import os", "from os.path import abspath, dirname, join", "import sys", "import tempfile", "rootdir = dirname(dirname(abspath(__file__)))", "sys.p...
VALUE_FROM_VAR_FILE='Expected Value'
[ [ 14, 0, 1, 1, 0, 0.66, 0, 246, 1, 0, 0, 0, 0, 3, 0 ] ]
[ "VALUE_FROM_VAR_FILE='Expected Value'" ]
def this_keyword_is_in_funnylib(): print 'jee'
[ [ 2, 0, 0.75, 1, 0, 0.66, 0, 708, 0, 0, 0, 0, 0, 0, 1 ], [ 8, 1, 1, 0.5, 1, 0.08, 0, 535, 3, 1, 0, 0, 0, 0, 1 ] ]
[ "def this_keyword_is_in_funnylib():\n print('jee')", " print('jee')" ]
# Copyright 2008-2012 Nokia Siemens Networks Oyj # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
[ [ 1, 0, 0.0542, 0.0034, 0, 0.66, 0, 777, 0, 1, 0, 0, 777, 0, 0 ], [ 1, 0, 0.0576, 0.0034, 0, 0.66, 0.0833, 394, 0, 1, 0, 0, 394, 0, 0 ], [ 1, 0, 0.061, 0.0034, 0, 0...
[ "from __future__ import with_statement", "import subprocess", "import time", "from random import randint", "import os", "import re", "import sys", "from robot.libraries import BuiltIn", "from robot.utils import html_escape, ArgumentParser", "from robot.version import get_version", "class Paralle...
from Queue import Queue from threading import Event try: from multiprocessing.managers import BaseManager except ImportError: class Python26Required(object): def __call__(self, *args): raise RuntimeError('Requires Python > 2.6') def __getattr__(self, name): raise Runt...
[ [ 1, 0, 0.0057, 0.0057, 0, 0.66, 0, 952, 0, 1, 0, 0, 952, 0, 0 ], [ 1, 0, 0.0114, 0.0057, 0, 0.66, 0.25, 83, 0, 1, 0, 0, 83, 0, 0 ], [ 7, 0, 0.0398, 0.0511, 0, 0.66...
[ "from Queue import Queue", "from threading import Event", "try:\n from multiprocessing.managers import BaseManager\nexcept ImportError:\n class Python26Required(object):\n def __call__(self, *args):\n raise RuntimeError('Requires Python > 2.6')\n def __getattr__(self, name):\n...
#!/usr/bin/env python """Packaging script for Robot Framework Usage: package.py command version_number [release_tag] Argument 'command' can have one of the following values: - sdist : create source distribution - wininst : create Windows installer - all : create both packages - version : update on...
[ [ 8, 0, 0.0681, 0.1183, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1326, 0.0036, 0, 0.66, 0.02, 777, 0, 1, 0, 0, 777, 0, 0 ], [ 1, 0, 0.1362, 0.0036, 0, 0.66, ...
[ "\"\"\"Packaging script for Robot Framework\n\nUsage: package.py command version_number [release_tag]\n\nArgument 'command' can have one of the following values:\n - sdist : create source distribution\n - wininst : create Windows installer\n - all : create both packages", "from __future__ import with...
#!/usr/bin/env python #-*- coding:utf-8 -*- from __future__ import print_function import sys import timeit import subprocess import time from tarea import Tarea def ayuda (): return """ Programa para la ejecucion de pruebas de paralelizacion para el analisis de la ley de Amhdal. Forma de uso: ...
[ [ 1, 0, 0.0541, 0.0135, 0, 0.66, 0, 777, 0, 1, 0, 0, 777, 0, 0 ], [ 1, 0, 0.0811, 0.0135, 0, 0.66, 0.125, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.0946, 0.0135, 0, 0...
[ "from __future__ import print_function", "import sys", "import timeit", "import subprocess", "import time", "from tarea import Tarea", "def ayuda ():\n return \"\"\"\n Programa para la ejecucion de pruebas de paralelizacion para el analisis de la ley de Amhdal.\n\n Forma de uso:\n ...
#!/usr/bin/env python #-*- coding:utf-8 -*- from __future__ import print_function import sys import numpy def imprimir_estadisticas(muestras): if len(muestras) == 0: return minimo = min(muestras) maximo = max(muestras) promedio = sum(muestras)/float(len(muestras)) desvio = numpy.std(muest...
[ [ 1, 0, 0.0851, 0.0213, 0, 0.66, 0, 777, 0, 1, 0, 0, 777, 0, 0 ], [ 1, 0, 0.1277, 0.0213, 0, 0.66, 0.25, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.1489, 0.0213, 0, 0....
[ "from __future__ import print_function", "import sys", "import numpy", "def imprimir_estadisticas(muestras):\n if len(muestras) == 0:\n return\n minimo = min(muestras)\n maximo = max(muestras)\n promedio = sum(muestras)/float(len(muestras))\n desvio = numpy.std(muestras)", " if len(...
#!/usr/bin/env python #-*- coding:utf-8 -*- from __future__ import print_function import sys import numpy def imprimir_estadisticas(muestras): if len(muestras) == 0: return minimo = min(muestras) maximo = max(muestras) promedio = sum(muestras)/float(len(muestras)) desvio = numpy.std(muest...
[ [ 1, 0, 0.0851, 0.0213, 0, 0.66, 0, 777, 0, 1, 0, 0, 777, 0, 0 ], [ 1, 0, 0.1277, 0.0213, 0, 0.66, 0.25, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.1489, 0.0213, 0, 0....
[ "from __future__ import print_function", "import sys", "import numpy", "def imprimir_estadisticas(muestras):\n if len(muestras) == 0:\n return\n minimo = min(muestras)\n maximo = max(muestras)\n promedio = sum(muestras)/float(len(muestras))\n desvio = numpy.std(muestras)", " if len(...
#!/usr/bin/env python #-*- coding:utf-8 -*- import threading import timeit import sys import numpy from tarea import Tarea class Sumador(Tarea): def __init__(self, nombre, inicio, fin, muestras): Tarea.__init__(self, nombre, inicio, fin, muestras) self.suma = None def hacer(self): sel...
[ [ 1, 0, 0.2105, 0.0526, 0, 0.66, 0, 83, 0, 1, 0, 0, 83, 0, 0 ], [ 1, 0, 0.2632, 0.0526, 0, 0.66, 0.2, 200, 0, 1, 0, 0, 200, 0, 0 ], [ 1, 0, 0.3158, 0.0526, 0, 0.66,...
[ "import threading", "import timeit", "import sys", "import numpy", "from tarea import Tarea", "class Sumador(Tarea):\n def __init__(self, nombre, inicio, fin, muestras):\n Tarea.__init__(self, nombre, inicio, fin, muestras)\n self.suma = None\n def hacer(self):\n self.suma = 0\n...
#!/usr/bin/env python #-*- coding:utf-8 -*- import threading import timeit import sys import numpy from tarea import Tarea class Raiz(Tarea): def __init__(self, nombre, inicio, fin, muestras): Tarea.__init__(self, nombre, inicio, fin, muestras) def hacer(self): for i in xrange(self.inicio,se...
[ [ 1, 0, 0.2222, 0.0556, 0, 0.66, 0, 83, 0, 1, 0, 0, 83, 0, 0 ], [ 1, 0, 0.2778, 0.0556, 0, 0.66, 0.2, 200, 0, 1, 0, 0, 200, 0, 0 ], [ 1, 0, 0.3333, 0.0556, 0, 0.66,...
[ "import threading", "import timeit", "import sys", "import numpy", "from tarea import Tarea", "class Raiz(Tarea):\n def __init__(self, nombre, inicio, fin, muestras):\n Tarea.__init__(self, nombre, inicio, fin, muestras)\n\n def hacer(self):\n for i in xrange(self.inicio,self.fin):\n ...
#!/usr/bin/env python #-*- coding:utf-8 -*- import threading import timeit import sys import numpy class Tarea(threading.Thread): def __init__(self, nombre, inicio, fin, muestras): threading.Thread.__init__(self) self.daemon = True self.nombre = nombre self.muestras = muestras ...
[ [ 1, 0, 0.1111, 0.0278, 0, 0.66, 0, 83, 0, 1, 0, 0, 83, 0, 0 ], [ 1, 0, 0.1389, 0.0278, 0, 0.66, 0.2, 200, 0, 1, 0, 0, 200, 0, 0 ], [ 1, 0, 0.1667, 0.0278, 0, 0.66,...
[ "import threading", "import timeit", "import sys", "import numpy", "class Tarea(threading.Thread):\n def __init__(self, nombre, inicio, fin, muestras):\n threading.Thread.__init__(self)\n self.daemon = True\n\n self.nombre = nombre\n self.muestras = muestras\n self.inic...
#!/usr/bin/env python #-*- coding:utf-8 -*- import threading import timeit import sys import numpy from sumador import Sumador from permutar_strings import Permutar_strings from raiz import Raiz clases = { "SUMAS":Sumador, "RAIZ":Raiz, "STRINGS":Permutar_strings} if __name__ == '__main__': nombre = sys.argv[1] ...
[ [ 1, 0, 0.1081, 0.027, 0, 0.66, 0, 83, 0, 1, 0, 0, 83, 0, 0 ], [ 1, 0, 0.1351, 0.027, 0, 0.66, 0.125, 200, 0, 1, 0, 0, 200, 0, 0 ], [ 1, 0, 0.1622, 0.027, 0, 0.66, ...
[ "import threading", "import timeit", "import sys", "import numpy", "from sumador import Sumador", "from permutar_strings import Permutar_strings", "from raiz import Raiz", "clases = { \"SUMAS\":Sumador, \"RAIZ\":Raiz, \"STRINGS\":Permutar_strings}", "if __name__ == '__main__':\n nombre = sys.argv...
#!/usr/bin/env python #-*- coding:utf-8 -*- import threading import timeit import sys import numpy from tarea import Tarea base = "fiuba" class Permutar_strings(Tarea): def __init__(self, nombre, inicio, fin, muestras): Tarea.__init__(self, nombre, inicio, fin, muestras) def reverse(self, strs): ...
[ [ 1, 0, 0.0889, 0.0222, 0, 0.66, 0, 83, 0, 1, 0, 0, 83, 0, 0 ], [ 1, 0, 0.1111, 0.0222, 0, 0.66, 0.1429, 200, 0, 1, 0, 0, 200, 0, 0 ], [ 1, 0, 0.1333, 0.0222, 0, 0....
[ "import threading", "import timeit", "import sys", "import numpy", "from tarea import Tarea", "base = \"fiuba\"", "class Permutar_strings(Tarea):\n def __init__(self, nombre, inicio, fin, muestras):\n Tarea.__init__(self, nombre, inicio, fin, muestras)\n\n def reverse(self, strs):\n ...
#!/usr/bin/env python #-*- coding:utf-8 -*- from __future__ import print_function import sys import timeit import subprocess import time from tarea import Tarea def ayuda (): return """ Programa para la ejecucion de pruebas de paralelizacion para el analisis de la ley de Amhdal. Forma de uso: ...
[ [ 1, 0, 0.0541, 0.0135, 0, 0.66, 0, 777, 0, 1, 0, 0, 777, 0, 0 ], [ 1, 0, 0.0811, 0.0135, 0, 0.66, 0.125, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.0946, 0.0135, 0, 0...
[ "from __future__ import print_function", "import sys", "import timeit", "import subprocess", "import time", "from tarea import Tarea", "def ayuda ():\n return \"\"\"\n Programa para la ejecucion de pruebas de paralelizacion para el analisis de la ley de Amhdal.\n\n Forma de uso:\n ...
#!/usr/bin/env python #-*- coding:utf-8 -*- import threading import timeit import sys import numpy class Tarea(threading.Thread): def __init__(self, nombre, inicio, fin, muestras): threading.Thread.__init__(self) self.daemon = True self.nombre = nombre self.muestras = muestras ...
[ [ 1, 0, 0.1111, 0.0278, 0, 0.66, 0, 83, 0, 1, 0, 0, 83, 0, 0 ], [ 1, 0, 0.1389, 0.0278, 0, 0.66, 0.2, 200, 0, 1, 0, 0, 200, 0, 0 ], [ 1, 0, 0.1667, 0.0278, 0, 0.66,...
[ "import threading", "import timeit", "import sys", "import numpy", "class Tarea(threading.Thread):\n def __init__(self, nombre, inicio, fin, muestras):\n threading.Thread.__init__(self)\n self.daemon = True\n\n self.nombre = nombre\n self.muestras = muestras\n self.inic...
#!/usr/bin/env python #-*- coding:utf-8 -*- import threading import timeit import sys import numpy from tarea import Tarea base = "fiuba" class Permutar_strings(Tarea): def __init__(self, nombre, inicio, fin, muestras): Tarea.__init__(self, nombre, inicio, fin, muestras) def reverse(self, strs): ...
[ [ 1, 0, 0.0889, 0.0222, 0, 0.66, 0, 83, 0, 1, 0, 0, 83, 0, 0 ], [ 1, 0, 0.1111, 0.0222, 0, 0.66, 0.1429, 200, 0, 1, 0, 0, 200, 0, 0 ], [ 1, 0, 0.1333, 0.0222, 0, 0....
[ "import threading", "import timeit", "import sys", "import numpy", "from tarea import Tarea", "base = \"fiuba\"", "class Permutar_strings(Tarea):\n def __init__(self, nombre, inicio, fin, muestras):\n Tarea.__init__(self, nombre, inicio, fin, muestras)\n\n def reverse(self, strs):\n ...
#!/usr/bin/env python #-*- coding:utf-8 -*- import threading import timeit import sys import numpy from sumador import Sumador from permutar_strings import Permutar_strings from raiz import Raiz clases = { "SUMAS":Sumador, "RAIZ":Raiz, "STRINGS":Permutar_strings} if __name__ == '__main__': nombre = sys.argv[1] ...
[ [ 1, 0, 0.1081, 0.027, 0, 0.66, 0, 83, 0, 1, 0, 0, 83, 0, 0 ], [ 1, 0, 0.1351, 0.027, 0, 0.66, 0.125, 200, 0, 1, 0, 0, 200, 0, 0 ], [ 1, 0, 0.1622, 0.027, 0, 0.66, ...
[ "import threading", "import timeit", "import sys", "import numpy", "from sumador import Sumador", "from permutar_strings import Permutar_strings", "from raiz import Raiz", "clases = { \"SUMAS\":Sumador, \"RAIZ\":Raiz, \"STRINGS\":Permutar_strings}", "if __name__ == '__main__':\n nombre = sys.argv...
#!/usr/bin/env python #-*- coding:utf-8 -*- import threading import timeit import sys import numpy from tarea import Tarea class Raiz(Tarea): def __init__(self, nombre, inicio, fin, muestras): Tarea.__init__(self, nombre, inicio, fin, muestras) def hacer(self): for i in xrange(self.inicio,se...
[ [ 1, 0, 0.2222, 0.0556, 0, 0.66, 0, 83, 0, 1, 0, 0, 83, 0, 0 ], [ 1, 0, 0.2778, 0.0556, 0, 0.66, 0.2, 200, 0, 1, 0, 0, 200, 0, 0 ], [ 1, 0, 0.3333, 0.0556, 0, 0.66,...
[ "import threading", "import timeit", "import sys", "import numpy", "from tarea import Tarea", "class Raiz(Tarea):\n def __init__(self, nombre, inicio, fin, muestras):\n Tarea.__init__(self, nombre, inicio, fin, muestras)\n\n def hacer(self):\n for i in xrange(self.inicio,self.fin):\n ...
#!/usr/bin/env python #-*- coding:utf-8 -*- import threading import timeit import sys import numpy from tarea import Tarea class Sumador(Tarea): def __init__(self, nombre, inicio, fin, muestras): Tarea.__init__(self, nombre, inicio, fin, muestras) self.suma = None def hacer(self): sel...
[ [ 1, 0, 0.2105, 0.0526, 0, 0.66, 0, 83, 0, 1, 0, 0, 83, 0, 0 ], [ 1, 0, 0.2632, 0.0526, 0, 0.66, 0.2, 200, 0, 1, 0, 0, 200, 0, 0 ], [ 1, 0, 0.3158, 0.0526, 0, 0.66,...
[ "import threading", "import timeit", "import sys", "import numpy", "from tarea import Tarea", "class Sumador(Tarea):\n def __init__(self, nombre, inicio, fin, muestras):\n Tarea.__init__(self, nombre, inicio, fin, muestras)\n self.suma = None\n def hacer(self):\n self.suma = 0\n...
#!/usr/bin/python import httplib2 import os import random import sys import time from apiclient.discovery import build from apiclient.errors import HttpError from oauth2client.file import Storage from oauth2client.client import flow_from_clientsecrets from oauth2client.tools import run from optparse import OptionPars...
[ [ 1, 0, 0.0309, 0.0103, 0, 0.66, 0, 273, 0, 1, 0, 0, 273, 0, 0 ], [ 1, 0, 0.0412, 0.0103, 0, 0.66, 0.0556, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0515, 0.0103, 0, ...
[ "import httplib2", "import os", "import random", "import sys", "import time", "from apiclient.discovery import build", "from apiclient.errors import HttpError", "from oauth2client.file import Storage", "from oauth2client.client import flow_from_clientsecrets", "from oauth2client.tools import run",...
#!/usr/bin/python import httplib2 import os import random import sys import time from apiclient.discovery import build from apiclient.errors import HttpError from oauth2client.file import Storage from oauth2client.client import flow_from_clientsecrets from oauth2client.tools import run from optparse import OptionPars...
[ [ 1, 0, 0.0294, 0.0098, 0, 0.66, 0, 273, 0, 1, 0, 0, 273, 0, 0 ], [ 1, 0, 0.0392, 0.0098, 0, 0.66, 0.0556, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.049, 0.0098, 0, 0...
[ "import httplib2", "import os", "import random", "import sys", "import time", "from apiclient.discovery import build", "from apiclient.errors import HttpError", "from oauth2client.file import Storage", "from oauth2client.client import flow_from_clientsecrets", "from oauth2client.tools import run",...
#!/usr/bin/python from datetime import datetime, timedelta import httplib2 import os import sys from apiclient.discovery import build from oauth2client.file import Storage from oauth2client.client import flow_from_clientsecrets from oauth2client.tools import run from optparse import OptionParser # CLIENT_SECRETS_FI...
[ [ 1, 0, 0.027, 0.009, 0, 0.66, 0, 426, 0, 2, 0, 0, 426, 0, 0 ], [ 1, 0, 0.036, 0.009, 0, 0.66, 0.0278, 273, 0, 1, 0, 0, 273, 0, 0 ], [ 1, 0, 0.045, 0.009, 0, 0.66, ...
[ "from datetime import datetime, timedelta", "import httplib2", "import os", "import sys", "from apiclient.discovery import build", "from oauth2client.file import Storage", "from oauth2client.client import flow_from_clientsecrets", "from oauth2client.tools import run", "from optparse import OptionPar...
#!/usr/bin/python import httplib2 import os import random import sys import time from apiclient.discovery import build from apiclient.errors import HttpError from oauth2client.file import Storage from oauth2client.client import flow_from_clientsecrets from oauth2client.tools import run from optparse import OptionPars...
[ [ 1, 0, 0.0236, 0.0079, 0, 0.66, 0, 273, 0, 1, 0, 0, 273, 0, 0 ], [ 1, 0, 0.0315, 0.0079, 0, 0.66, 0.05, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0394, 0.0079, 0, 0....
[ "import httplib2", "import os", "import random", "import sys", "import time", "from apiclient.discovery import build", "from apiclient.errors import HttpError", "from oauth2client.file import Storage", "from oauth2client.client import flow_from_clientsecrets", "from oauth2client.tools import run",...
#!/usr/bin/python import httplib2 import os import random import sys import time from apiclient.discovery import build from apiclient.errors import HttpError from apiclient.http import MediaFileUpload from oauth2client.file import Storage from oauth2client.client import flow_from_clientsecrets from oauth2client.tools...
[ [ 1, 0, 0.0333, 0.0111, 0, 0.66, 0, 273, 0, 1, 0, 0, 273, 0, 0 ], [ 1, 0, 0.0444, 0.0111, 0, 0.66, 0.0526, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0556, 0.0111, 0, ...
[ "import httplib2", "import os", "import random", "import sys", "import time", "from apiclient.discovery import build", "from apiclient.errors import HttpError", "from apiclient.http import MediaFileUpload", "from oauth2client.file import Storage", "from oauth2client.client import flow_from_clients...
#!/usr/bin/python import httplib2 import os import sys from apiclient.discovery import build from oauth2client.file import Storage from oauth2client.client import flow_from_clientsecrets from oauth2client.tools import run from optparse import OptionParser # CLIENT_SECRETS_FILE, name of a file containing the OAuth 2...
[ [ 1, 0, 0.0316, 0.0105, 0, 0.66, 0, 273, 0, 1, 0, 0, 273, 0, 0 ], [ 1, 0, 0.0421, 0.0105, 0, 0.66, 0.0667, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0526, 0.0105, 0, ...
[ "import httplib2", "import os", "import sys", "from apiclient.discovery import build", "from oauth2client.file import Storage", "from oauth2client.client import flow_from_clientsecrets", "from oauth2client.tools import run", "from optparse import OptionParser", "CLIENT_SECRETS_FILE = \"client_secret...
#!/usr/bin/python import httplib2 import os import sys from apiclient.discovery import build from oauth2client.file import Storage from oauth2client.client import flow_from_clientsecrets from oauth2client.tools import run # CLIENT_SECRETS_FILE, name of a file containing the OAuth 2.0 information for # this applicat...
[ [ 1, 0, 0.0345, 0.0115, 0, 0.66, 0, 273, 0, 1, 0, 0, 273, 0, 0 ], [ 1, 0, 0.046, 0.0115, 0, 0.66, 0.0556, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0575, 0.0115, 0, 0...
[ "import httplib2", "import os", "import sys", "from apiclient.discovery import build", "from oauth2client.file import Storage", "from oauth2client.client import flow_from_clientsecrets", "from oauth2client.tools import run", "CLIENT_SECRETS_FILE = \"client_secrets.json\"", "MISSING_CLIENT_SECRETS_ME...
#!/usr/bin/python import httplib2 import os import sys from apiclient.discovery import build from oauth2client.file import Storage from oauth2client.client import flow_from_clientsecrets from oauth2client.tools import run # CLIENT_SECRETS_FILE, name of a file containing the OAuth 2.0 information for # this applicat...
[ [ 1, 0, 0.0417, 0.0139, 0, 0.66, 0, 273, 0, 1, 0, 0, 273, 0, 0 ], [ 1, 0, 0.0556, 0.0139, 0, 0.66, 0.0556, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0694, 0.0139, 0, ...
[ "import httplib2", "import os", "import sys", "from apiclient.discovery import build", "from oauth2client.file import Storage", "from oauth2client.client import flow_from_clientsecrets", "from oauth2client.tools import run", "CLIENT_SECRETS_FILE = \"client_secrets.json\"", "MISSING_CLIENT_SECRETS_ME...
#!/usr/bin/python from apiclient.discovery import build from optparse import OptionParser # Set DEVELOPER_KEY to the "API key" value from the "Access" tab of the # Google APIs Console http://code.google.com/apis/console#access # Please ensure that you have enabled the YouTube Data API for your project. DEVELOPER_KEY ...
[ [ 1, 0, 0.0588, 0.0196, 0, 0.66, 0, 78, 0, 1, 0, 0, 78, 0, 0 ], [ 1, 0, 0.0784, 0.0196, 0, 0.66, 0.1667, 323, 0, 1, 0, 0, 323, 0, 0 ], [ 14, 0, 0.1765, 0.0196, 0, 0...
[ "from apiclient.discovery import build", "from optparse import OptionParser", "DEVELOPER_KEY = \"REPLACE_ME\"", "YOUTUBE_API_SERVICE_NAME = \"youtube\"", "YOUTUBE_API_VERSION = \"v3\"", "def youtube_search(options):\n youtube = build(YOUTUBE_API_SERVICE_NAME, YOUTUBE_API_VERSION,\n developerKey=DEVELO...
#!/usr/bin/python import httplib2 import os import random import sys import time from apiclient.discovery import build from apiclient.errors import HttpError from oauth2client.file import Storage from oauth2client.client import flow_from_clientsecrets from oauth2client.tools import run from optparse import OptionPars...
[ [ 1, 0, 0.0323, 0.0108, 0, 0.66, 0, 273, 0, 1, 0, 0, 273, 0, 0 ], [ 1, 0, 0.043, 0.0108, 0, 0.66, 0.0556, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0538, 0.0108, 0, 0...
[ "import httplib2", "import os", "import random", "import sys", "import time", "from apiclient.discovery import build", "from apiclient.errors import HttpError", "from oauth2client.file import Storage", "from oauth2client.client import flow_from_clientsecrets", "from oauth2client.tools import run",...
#!/usr/bin/python import httplib2 import os import sys from apiclient.discovery import build from oauth2client.file import Storage from oauth2client.client import flow_from_clientsecrets from oauth2client.tools import run from optparse import OptionParser # CLIENT_SECRETS_FILE, name of a file containing the OAuth 2...
[ [ 1, 0, 0.0349, 0.0116, 0, 0.66, 0, 273, 0, 1, 0, 0, 273, 0, 0 ], [ 1, 0, 0.0465, 0.0116, 0, 0.66, 0.0667, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0581, 0.0116, 0, ...
[ "import httplib2", "import os", "import sys", "from apiclient.discovery import build", "from oauth2client.file import Storage", "from oauth2client.client import flow_from_clientsecrets", "from oauth2client.tools import run", "from optparse import OptionParser", "CLIENT_SECRETS_FILE = \"client_secret...
#!/usr/bin/python import httplib2 import os import sys from apiclient.discovery import build from oauth2client.file import Storage from oauth2client.client import flow_from_clientsecrets from oauth2client.tools import run from optparse import OptionParser # CLIENT_SECRETS_FILE, name of a file containing the OAuth 2...
[ [ 1, 0, 0.0256, 0.0085, 0, 0.66, 0, 273, 0, 1, 0, 0, 273, 0, 0 ], [ 1, 0, 0.0342, 0.0085, 0, 0.66, 0.0667, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0427, 0.0085, 0, ...
[ "import httplib2", "import os", "import sys", "from apiclient.discovery import build", "from oauth2client.file import Storage", "from oauth2client.client import flow_from_clientsecrets", "from oauth2client.tools import run", "from optparse import OptionParser", "CLIENT_SECRETS_FILE = \"client_secret...
#!/usr/bin/python import sys import os import os.path import ConfigParser import csv import httplib cwd = os.path.abspath((os.path.dirname(sys.argv[0]))) config_file = os.path.join(cwd, 'fetch_samples.conf') #print 'config file: %s' % config_file config = ConfigParser.RawConfigParser() config.read(config_file) samp...
[ [ 1, 0, 0.0769, 0.0256, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.1026, 0.0256, 0, 0.66, 0.0714, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.1282, 0.0256, 0, ...
[ "import sys", "import os", "import os.path", "import ConfigParser", "import csv", "import httplib", "cwd = os.path.abspath((os.path.dirname(sys.argv[0])))", "config_file = os.path.join(cwd, 'fetch_samples.conf')", "config = ConfigParser.RawConfigParser()", "config.read(config_file)", "samples_di...
#!/usr/bin/python import sys import os import os.path import ConfigParser from xml.etree import ElementTree cwd = os.path.abspath((os.path.dirname(sys.argv[0]))) config_file = os.path.join(cwd, 'analyze_samples.conf') #print 'config file: %s' % config_file config = ConfigParser.RawConfigParser() config.read(config_f...
[ [ 1, 0, 0.0938, 0.0312, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.125, 0.0312, 0, 0.66, 0.1, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.1562, 0.0312, 0, 0.66...
[ "import sys", "import os", "import os.path", "import ConfigParser", "from xml.etree import ElementTree", "cwd = os.path.abspath((os.path.dirname(sys.argv[0])))", "config_file = os.path.join(cwd, 'analyze_samples.conf')", "config = ConfigParser.RawConfigParser()", "config.read(config_file)", "sampl...
from google.appengine.ext import webapp from google.appengine.ext.webapp.util import run_wsgi_app class MainPage(webapp.RequestHandler): def get(self): self.response.headers['Content-Type'] = 'text/plain' self.response.out.write('Hello, webapp World!') application = webapp.WSGIApplicat...
[ [ 1, 0, 0.05, 0.05, 0, 0.66, 0, 167, 0, 1, 0, 0, 167, 0, 0 ], [ 1, 0, 0.1, 0.05, 0, 0.66, 0.2, 327, 0, 1, 0, 0, 327, 0, 0 ], [ 3, 0, 0.375, 0.3, 0, 0.66, 0.4, ...
[ "from google.appengine.ext import webapp", "from google.appengine.ext.webapp.util import run_wsgi_app", "class MainPage(webapp.RequestHandler):\n \n \n def get(self):\n self.response.headers['Content-Type'] = 'text/plain'\n self.response.out.write('Hello, webapp World!')", " def get(...
# -*- coding: utf-8 -*- ''' Created on 2013-3-25 首页模块,将显示登陆界面和欢迎界面 @author: zhiyong.luo ''' from framework.bottle import Bottle from jinja2.environment import Environment from jinja2.loaders import FileSystemLoader from framework.gaesessions import get_current_session #jinja2 env = Environment(loader ...
[ [ 8, 0, 0.1618, 0.1765, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.2647, 0.0294, 0, 0.66, 0.1429, 292, 0, 1, 0, 0, 292, 0, 0 ], [ 1, 0, 0.2941, 0.0294, 0, 0.66...
[ "'''\nCreated on 2013-3-25\n首页模块,将显示登陆界面和欢迎界面\n\n@author: zhiyong.luo\n'''", "from framework.bottle import Bottle", "from jinja2.environment import Environment", "from jinja2.loaders import FileSystemLoader", "from framework.gaesessions import get_current_session", "env = Environment(loader = FileSystemLo...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Bottle is a fast and simple micro-framework for small web applications. It offers request dispatching (Routes) with url parameter support, templates, a built-in HTTP Server and adapters for many third party WSGI/HTTP-server and template engines - all in a single file an...
[ [ 8, 0, 0.0025, 0.0036, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0048, 0.0003, 0, 0.66, 0.0066, 777, 0, 1, 0, 0, 777, 0, 0 ], [ 14, 0, 0.0054, 0.0003, 0, 0.6...
[ "\"\"\"\nBottle is a fast and simple micro-framework for small web applications. It\noffers request dispatching (Routes) with url parameter support, templates,\na built-in HTTP Server and adapters for many third party WSGI/HTTP-server and\ntemplate engines - all in a single file and with no dependencies other than ...
# -*- coding: utf-8 -*- """ jinja2.runtime ~~~~~~~~~~~~~~ Runtime helpers. :copyright: (c) 2010 by the Jinja Team. :license: BSD. """ from itertools import chain, imap from jinja2.nodes import EvalContext, _context_function_types from jinja2.utils import Markup, partial, soft_unicode, escape, miss...
[ [ 8, 0, 0.0109, 0.0164, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0201, 0.0018, 0, 0.66, 0.05, 808, 0, 2, 0, 0, 808, 0, 0 ], [ 1, 0, 0.0219, 0.0018, 0, 0.66, ...
[ "\"\"\"\n jinja2.runtime\n ~~~~~~~~~~~~~~\n\n Runtime helpers.\n\n :copyright: (c) 2010 by the Jinja Team.\n :license: BSD.", "from itertools import chain, imap", "from jinja2.nodes import EvalContext, _context_function_types", "from jinja2.utils import Markup, partial, soft_unicode, escape, mi...
# -*- coding: utf-8 -*- """ jinja2.bccache ~~~~~~~~~~~~~~ This module implements the bytecode cache system Jinja is optionally using. This is useful if you have very complex template situations and the compiliation of all those templates slow down your application too much. Situations whe...
[ [ 8, 0, 0.0299, 0.0498, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0565, 0.0033, 0, 0.66, 0.0667, 688, 0, 2, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0598, 0.0033, 0, 0.66...
[ "\"\"\"\n jinja2.bccache\n ~~~~~~~~~~~~~~\n\n This module implements the bytecode cache system Jinja is optionally\n using. This is useful if you have very complex template situations and\n the compiliation of all those templates slow down your application too\n much.", "from os import path, li...
# -*- coding: utf-8 -*- """ jinja2.compiler ~~~~~~~~~~~~~~~ Compiles nodes into python code. :copyright: (c) 2010 by the Jinja Team. :license: BSD, see LICENSE for more details. """ from cStringIO import StringIO from itertools import chain from copy import deepcopy from jinja2 import nodes from j...
[ [ 8, 0, 0.0036, 0.0055, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0067, 0.0006, 0, 0.66, 0.0417, 764, 0, 1, 0, 0, 764, 0, 0 ], [ 1, 0, 0.0073, 0.0006, 0, 0.66...
[ "\"\"\"\n jinja2.compiler\n ~~~~~~~~~~~~~~~\n\n Compiles nodes into python code.\n\n :copyright: (c) 2010 by the Jinja Team.\n :license: BSD, see LICENSE for more details.", "from cStringIO import StringIO", "from itertools import chain", "from copy import deepcopy", "from jinja2 import nodes...
# -*- coding: utf-8 -*- """ jinja2.meta ~~~~~~~~~~~ This module implements various functions that exposes information about templates that might be interesting for various kinds of applications. :copyright: (c) 2010 by the Jinja Team, see AUTHORS for more details. :license: BSD, see LICENSE fo...
[ [ 8, 0, 0.0637, 0.098, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1176, 0.0098, 0, 0.66, 0.2, 436, 0, 1, 0, 0, 436, 0, 0 ], [ 1, 0, 0.1275, 0.0098, 0, 0.66, ...
[ "\"\"\"\n jinja2.meta\n ~~~~~~~~~~~\n\n This module implements various functions that exposes information about\n templates that might be interesting for various kinds of applications.\n\n :copyright: (c) 2010 by the Jinja Team, see AUTHORS for more details.", "from jinja2 import nodes", "from ji...
# -*- coding: utf-8 -*- """ jinja2.nodes ~~~~~~~~~~~~ This module implements additional nodes derived from the ast base node. It also provides some node tree helper functions like `in_lineno` and `get_nodes` used by the parser and translator in order to normalize python and jinja nodes. :...
[ [ 8, 0, 0.0088, 0.0143, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0165, 0.0011, 0, 0.66, 0.0128, 616, 0, 1, 0, 0, 616, 0, 0 ], [ 1, 0, 0.0176, 0.0011, 0, 0.66...
[ "\"\"\"\n jinja2.nodes\n ~~~~~~~~~~~~\n\n This module implements additional nodes derived from the ast base node.\n\n It also provides some node tree helper functions like `in_lineno` and\n `get_nodes` used by the parser and translator in order to normalize", "import operator", "from itertools im...
# -*- coding: utf-8 -*- """ jinja2.tests ~~~~~~~~~~~~ Jinja test functions. Used with the "is" operator. :copyright: (c) 2010 by the Jinja Team. :license: BSD, see LICENSE for more details. """ import re from jinja2.runtime import Undefined try: from collections import Mapping as MappingType ...
[ [ 8, 0, 0.0373, 0.0559, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0683, 0.0062, 0, 0.66, 0.0435, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 1, 0, 0.0745, 0.0062, 0, 0.66...
[ "\"\"\"\n jinja2.tests\n ~~~~~~~~~~~~\n\n Jinja test functions. Used with the \"is\" operator.\n\n :copyright: (c) 2010 by the Jinja Team.\n :license: BSD, see LICENSE for more details.", "import re", "from jinja2.runtime import Undefined", "try:\n from collections import Mapping as MappingT...
# -*- coding: utf-8 -*- """ jinja2.optimizer ~~~~~~~~~~~~~~~~ The jinja optimizer is currently trying to constant fold a few expressions and modify the AST in place so that it should be easier to evaluate it. Because the AST does not contain all the scoping information and the compiler has to ...
[ [ 8, 0, 0.1471, 0.25, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.2794, 0.0147, 0, 0.66, 0.25, 436, 0, 1, 0, 0, 436, 0, 0 ], [ 1, 0, 0.2941, 0.0147, 0, 0.66, ...
[ "\"\"\"\n jinja2.optimizer\n ~~~~~~~~~~~~~~~~\n\n The jinja optimizer is currently trying to constant fold a few expressions\n and modify the AST in place so that it should be easier to evaluate it.\n\n Because the AST does not contain all the scoping information and the", "from jinja2 import nodes...
# -*- coding: utf-8 -*- """ jinja.constants ~~~~~~~~~~~~~~~ Various constants. :copyright: (c) 2010 by the Jinja Team. :license: BSD, see LICENSE for more details. """ #: list of lorem ipsum words used by the lipsum() helper function LOREM_IPSUM_WORDS = u'''\ a ac accumsan ad adipiscing aenean a...
[ [ 8, 0, 0.1875, 0.2812, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.7188, 0.5938, 0, 0.66, 1, 350, 1, 0, 0, 0, 0, 3, 0 ] ]
[ "\"\"\"\n jinja.constants\n ~~~~~~~~~~~~~~~\n\n Various constants.\n\n :copyright: (c) 2010 by the Jinja Team.\n :license: BSD, see LICENSE for more details.", "LOREM_IPSUM_WORDS = u'''\\\na ac accumsan ad adipiscing aenean aliquam aliquet amet ante aptent arcu at\nauctor augue bibendum blandit cla...
# -*- coding: utf-8 -*- """ jinja2.sandbox ~~~~~~~~~~~~~~ Adds a sandbox layer to Jinja as it was the default behavior in the old Jinja 1 releases. This sandbox is slightly different from Jinja 1 as the default behavior is easier to use. The behavior can be changed by subclassing the environm...
[ [ 8, 0, 0.0222, 0.036, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0416, 0.0028, 0, 0.66, 0.0435, 616, 0, 1, 0, 0, 616, 0, 0 ], [ 1, 0, 0.0443, 0.0028, 0, 0.66,...
[ "\"\"\"\n jinja2.sandbox\n ~~~~~~~~~~~~~~\n\n Adds a sandbox layer to Jinja as it was the default behavior in the old\n Jinja 1 releases. This sandbox is slightly different from Jinja 1 as the\n default behavior is easier to use.", "import operator", "from jinja2.environment import Environment",...
import gc import unittest from jinja2._markupsafe import Markup, escape, escape_silent class MarkupTestCase(unittest.TestCase): def test_markup_operations(self): # adding two strings should escape the unsafe one unsafe = '<script type="application/x-some-script">alert("foo");</script>' sa...
[ [ 1, 0, 0.0125, 0.0125, 0, 0.66, 0, 92, 0, 1, 0, 0, 92, 0, 0 ], [ 1, 0, 0.025, 0.0125, 0, 0.66, 0.1667, 88, 0, 1, 0, 0, 88, 0, 0 ], [ 1, 0, 0.0375, 0.0125, 0, 0.66,...
[ "import gc", "import unittest", "from jinja2._markupsafe import Markup, escape, escape_silent", "class MarkupTestCase(unittest.TestCase):\n\n def test_markup_operations(self):\n # adding two strings should escape the unsafe one\n unsafe = '<script type=\"application/x-some-script\">alert(\"fo...
# -*- coding: utf-8 -*- """ markupsafe._constants ~~~~~~~~~~~~~~~~~~~~~ Highlevel implementation of the Markup string. :copyright: (c) 2010 by Armin Ronacher. :license: BSD, see LICENSE for more details. """ HTML_ENTITIES = { 'AElig': 198, 'Aacute': 193, 'Acirc': 194, 'Agrave': 1...
[ [ 8, 0, 0.0225, 0.0337, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.5243, 0.9551, 0, 0.66, 1, 955, 0, 0, 0, 0, 0, 6, 0 ] ]
[ "\"\"\"\n markupsafe._constants\n ~~~~~~~~~~~~~~~~~~~~~\n\n Highlevel implementation of the Markup string.\n\n :copyright: (c) 2010 by Armin Ronacher.\n :license: BSD, see LICENSE for more details.", "HTML_ENTITIES = {\n 'AElig': 198,\n 'Aacute': 193,\n 'Acirc': 194,\n 'Agrave': 192,\n ...
# -*- coding: utf-8 -*- """ jinja2._markupsafe._bundle ~~~~~~~~~~~~~~~~~~~~~~~~~~ This script pulls in markupsafe from a source folder and bundles it with Jinja2. It does not pull in the speedups module though. :copyright: Copyright 2010 by the Jinja team, see AUTHORS. :license: BSD, see ...
[ [ 8, 0, 0.1429, 0.2245, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.2653, 0.0204, 0, 0.66, 0.1667, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.2857, 0.0204, 0, 0.66...
[ "\"\"\"\n jinja2._markupsafe._bundle\n ~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n This script pulls in markupsafe from a source folder and\n bundles it with Jinja2. It does not pull in the speedups\n module though.", "import sys", "import os", "import re", "def rewrite_imports(lines):\n for idx, line...
# -*- coding: utf-8 -*- """ markupsafe ~~~~~~~~~~ Implements a Markup string. :copyright: (c) 2010 by Armin Ronacher. :license: BSD, see LICENSE for more details. """ import re from itertools import imap __all__ = ['Markup', 'soft_unicode', 'escape', 'escape_silent'] _striptags_re = re.compile...
[ [ 8, 0, 0.0267, 0.04, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0489, 0.0044, 0, 0.66, 0.1111, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 1, 0, 0.0533, 0.0044, 0, 0.66, ...
[ "\"\"\"\n markupsafe\n ~~~~~~~~~~\n\n Implements a Markup string.\n\n :copyright: (c) 2010 by Armin Ronacher.\n :license: BSD, see LICENSE for more details.", "import re", "from itertools import imap", "__all__ = ['Markup', 'soft_unicode', 'escape', 'escape_silent']", "_striptags_re = re.comp...
# -*- coding: utf-8 -*- """ markupsafe._native ~~~~~~~~~~~~~~~~~~ Native Python implementation the C module is not compiled. :copyright: (c) 2010 by Armin Ronacher. :license: BSD, see LICENSE for more details. """ from jinja2._markupsafe import Markup def escape(s): """Convert the characters...
[ [ 8, 0, 0.1333, 0.2, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.2444, 0.0222, 0, 0.66, 0.25, 409, 0, 1, 0, 0, 409, 0, 0 ], [ 2, 0, 0.4556, 0.3111, 0, 0.66, ...
[ "\"\"\"\n markupsafe._native\n ~~~~~~~~~~~~~~~~~~\n\n Native Python implementation the C module is not compiled.\n\n :copyright: (c) 2010 by Armin Ronacher.\n :license: BSD, see LICENSE for more details.", "from jinja2._markupsafe import Markup", "def escape(s):\n \"\"\"Convert the characters ...
# -*- coding: utf-8 -*- """ jinja2.loaders ~~~~~~~~~~~~~~ Jinja loader classes. :copyright: (c) 2010 by the Jinja Team. :license: BSD, see LICENSE for more details. """ import os import sys import weakref from types import ModuleType from os import path try: from hashlib import sha1 except Imp...
[ [ 8, 0, 0.0133, 0.02, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0244, 0.0022, 0, 0.66, 0.0556, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0267, 0.0022, 0, 0.66, ...
[ "\"\"\"\n jinja2.loaders\n ~~~~~~~~~~~~~~\n\n Jinja loader classes.\n\n :copyright: (c) 2010 by the Jinja Team.\n :license: BSD, see LICENSE for more details.", "import os", "import sys", "import weakref", "from types import ModuleType", "from os import path", "try:\n from hashlib impo...
# -*- coding: utf-8 -*- """ jinja2.exceptions ~~~~~~~~~~~~~~~~~ Jinja exceptions. :copyright: (c) 2010 by the Jinja Team. :license: BSD, see LICENSE for more details. """ class TemplateError(Exception): """Baseclass for all template errors.""" def __init__(self, message=None): i...
[ [ 8, 0, 0.042, 0.0629, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 3, 0, 0.1364, 0.0979, 0, 0.66, 0.1111, 179, 0, 2, 0, 0, 645, 0, 4 ], [ 8, 1, 0.0979, 0.007, 1, 0.12, ...
[ "\"\"\"\n jinja2.exceptions\n ~~~~~~~~~~~~~~~~~\n\n Jinja exceptions.\n\n :copyright: (c) 2010 by the Jinja Team.\n :license: BSD, see LICENSE for more details.", "class TemplateError(Exception):\n \"\"\"Baseclass for all template errors.\"\"\"\n\n def __init__(self, message=None):\n i...
# -*- coding: utf-8 -*- """ jinja2 ~~~~~~ Jinja2 is a template engine written in pure Python. It provides a Django inspired non-XML syntax but supports inline expressions and an optional sandboxed environment. Nutshell -------- Here a small example of a Jinja2 template:: {% ...
[ [ 8, 0, 0.2174, 0.3913, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.4203, 0.0145, 0, 0.66, 0.1, 959, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.4348, 0.0145, 0, 0.66, ...
[ "\"\"\"\n jinja2\n ~~~~~~\n\n Jinja2 is a template engine written in pure Python. It provides a\n Django inspired non-XML syntax but supports inline expressions and\n an optional sandboxed environment.", "__docformat__ = 'restructuredtext en'", "__version__ = '2.6'", "from jinja2.environment i...
# -*- coding: utf-8 -*- """ jinja2.filters ~~~~~~~~~~~~~~ Bundled jinja filters. :copyright: (c) 2010 by the Jinja Team. :license: BSD, see LICENSE for more details. """ import re import math from random import choice from operator import itemgetter from itertools import imap, groupby from jinja2....
[ [ 8, 0, 0.0075, 0.0113, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0138, 0.0013, 0, 0.66, 0.0192, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 1, 0, 0.015, 0.0013, 0, 0.66,...
[ "\"\"\"\n jinja2.filters\n ~~~~~~~~~~~~~~\n\n Bundled jinja filters.\n\n :copyright: (c) 2010 by the Jinja Team.\n :license: BSD, see LICENSE for more details.", "import re", "import math", "from random import choice", "from operator import itemgetter", "from itertools import imap, groupby"...
# -*- coding: utf-8 -*- """ jinja2.defaults ~~~~~~~~~~~~~~~ Jinja default filters and tags. :copyright: (c) 2010 by the Jinja Team. :license: BSD, see LICENSE for more details. """ from jinja2.utils import generate_lorem_ipsum, Cycler, Joiner # defaults for the parser / lexer BLOCK_START_STRING ...
[ [ 8, 0, 0.15, 0.225, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.275, 0.025, 0, 0.66, 0.0667, 677, 0, 3, 0, 0, 677, 0, 0 ], [ 14, 0, 0.375, 0.025, 0, 0.66, ...
[ "\"\"\"\n jinja2.defaults\n ~~~~~~~~~~~~~~~\n\n Jinja default filters and tags.\n\n :copyright: (c) 2010 by the Jinja Team.\n :license: BSD, see LICENSE for more details.", "from jinja2.utils import generate_lorem_ipsum, Cycler, Joiner", "BLOCK_START_STRING = '{%'", "BLOCK_END_STRING = '%}'", ...
# -*- coding: utf-8 -*- """ jinja2._stringdefs ~~~~~~~~~~~~~~~~~~ Strings of all Unicode characters of a certain category. Used for matching in Unicode-aware languages. Run to regenerate. Inspired by chartypes_create.py from the MoinMoin project, original implementation from Pygments. :co...
[ [ 8, 0, 0.0615, 0.1, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1231, 0.0077, 0, 0.66, 0.0278, 924, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.1385, 0.0077, 0, 0.66, ...
[ "\"\"\"\n jinja2._stringdefs\n ~~~~~~~~~~~~~~~~~~\n\n Strings of all Unicode characters of a certain category.\n Used for matching in Unicode-aware languages. Run to regenerate.\n\n Inspired by chartypes_create.py from the MoinMoin project, original", "Cc = u'\\x00\\x01\\x02\\x03\\x04\\x05\\x06\\x0...
# -*- coding: utf-8 -*- """ jinja2.parser ~~~~~~~~~~~~~ Implements the template parser. :copyright: (c) 2010 by the Jinja Team. :license: BSD, see LICENSE for more details. """ from jinja2 import nodes from jinja2.exceptions import TemplateSyntaxError, TemplateAssertionError from jinja2.utils impo...
[ [ 8, 0, 0.0067, 0.01, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0123, 0.0011, 0, 0.66, 0.1429, 436, 0, 1, 0, 0, 436, 0, 0 ], [ 1, 0, 0.0134, 0.0011, 0, 0.66, ...
[ "\"\"\"\n jinja2.parser\n ~~~~~~~~~~~~~\n\n Implements the template parser.\n\n :copyright: (c) 2010 by the Jinja Team.\n :license: BSD, see LICENSE for more details.", "from jinja2 import nodes", "from jinja2.exceptions import TemplateSyntaxError, TemplateAssertionError", "from jinja2.utils im...
# -*- coding: utf-8 -*- """ jinja2.visitor ~~~~~~~~~~~~~~ This module implements a visitor for the nodes. :copyright: (c) 2010 by the Jinja Team. :license: BSD. """ from jinja2.nodes import Node class NodeVisitor(object): """Walks the abstract syntax tree and call visitor functions for every...
[ [ 8, 0, 0.069, 0.1034, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1264, 0.0115, 0, 0.66, 0.3333, 990, 0, 1, 0, 0, 990, 0, 0 ], [ 3, 0, 0.3333, 0.3563, 0, 0.66,...
[ "\"\"\"\n jinja2.visitor\n ~~~~~~~~~~~~~~\n\n This module implements a visitor for the nodes.\n\n :copyright: (c) 2010 by the Jinja Team.\n :license: BSD.", "from jinja2.nodes import Node", "class NodeVisitor(object):\n \"\"\"Walks the abstract syntax tree and call visitor functions for every\...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Bottle is a fast and simple micro-framework for small web applications. It offers request dispatching (Routes) with url parameter support, templates, a built-in HTTP Server and adapters for many third party WSGI/HTTP-server and template engines - all in a single file an...
[ [ 8, 0, 0.0025, 0.0036, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0048, 0.0003, 0, 0.66, 0.0066, 777, 0, 1, 0, 0, 777, 0, 0 ], [ 14, 0, 0.0054, 0.0003, 0, 0.6...
[ "\"\"\"\nBottle is a fast and simple micro-framework for small web applications. It\noffers request dispatching (Routes) with url parameter support, templates,\na built-in HTTP Server and adapters for many third party WSGI/HTTP-server and\ntemplate engines - all in a single file and with no dependencies other than ...
#!/usr/bin/env python """Simple PNG Canvas for Python""" __version__ = "0.8" __author__ = "Rui Carmo (http://the.taoofmac.com)" __copyright__ = "CC Attribution-NonCommercial-NoDerivs 2.0 Rui Carmo" __contributors__ = ["http://collaboa.weed.rbse.com/repository/file/branches/pgsql/lib/spark_pr.rb"], ["Eli Bendersky"] i...
[ [ 8, 0, 0.0103, 0.0034, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0138, 0.0034, 0, 0.66, 0.0833, 162, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.0172, 0.0034, 0, 0.66...
[ "\"\"\"Simple PNG Canvas for Python\"\"\"", "__version__ = \"0.8\"", "__author__ = \"Rui Carmo (http://the.taoofmac.com)\"", "__copyright__ = \"CC Attribution-NonCommercial-NoDerivs 2.0 Rui Carmo\"", "__contributors__ = [\"http://collaboa.weed.rbse.com/repository/file/branches/pgsql/lib/spark_pr.rb\"], [\"E...
# gmemsess.py - memcache-backed session Class for Google Appengine # Version 1.4 # Copyright 2008 Greg Fawcett <greg@vig.co.nz> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3...
[ [ 1, 0, 0.2045, 0.0114, 0, 0.66, 0, 715, 0, 1, 0, 0, 715, 0, 0 ], [ 1, 0, 0.2159, 0.0114, 0, 0.66, 0.2, 279, 0, 1, 0, 0, 279, 0, 0 ], [ 14, 0, 0.2386, 0.0114, 0, 0....
[ "import random", "from google.appengine.api import memcache", "_sidChars='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'", "_defaultTimeout=30*60 # 30 min", "_defaultCookieName='gsid'", "class Session(dict):\n\t\"\"\"A secure lightweight memcache-backed session Class for Google Appengine.\"\"\"\n\n...
from time import * from calendar import timegm # fix for mktime bug # https://garage.maemo.org/tracker/index.php?func=detail&aid=4453&group_id=854&atid=3201 mktime = lambda time_tuple: calendar.timegm(time_tuple) + timezone
[ [ 1, 0, 0.1429, 0.1429, 0, 0.66, 0, 654, 0, 1, 0, 0, 654, 0, 0 ], [ 1, 0, 0.2857, 0.1429, 0, 0.66, 0.5, 917, 0, 1, 0, 0, 917, 0, 0 ], [ 14, 0, 0.8571, 0.1429, 0, 0....
[ "from time import *", "from calendar import timegm", "mktime = lambda time_tuple: calendar.timegm(time_tuple) + timezone" ]
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright(C) 2008 SupDo.com # Licensed under the GUN License, Version 3.0 (the "License"); # # File: safecode.py # Author: KuKei # Create Date: 2008-07-16 # Description: 负责验证码生成。 # Modify Date: 2008-08-06 import md5 import random from pngcanva...
[ [ 1, 0, 0.066, 0.0051, 0, 0.66, 0, 604, 0, 1, 0, 0, 604, 0, 0 ], [ 1, 0, 0.0711, 0.0051, 0, 0.66, 0.3333, 715, 0, 1, 0, 0, 715, 0, 0 ], [ 1, 0, 0.0761, 0.0051, 0, 0...
[ "import md5", "import random", "from pngcanvas import PNGCanvas", "class Image():\n text = None\n md5Text = None\n img = None\n width = 0\n height = 0\n #长度\n textX = 10", " text = None", " md5Text = None", " img = None", " width = 0", " height = 0", " textX ...
#!/usr/bin/env python """Simple PNG Canvas for Python""" __version__ = "0.8" __author__ = "Rui Carmo (http://the.taoofmac.com)" __copyright__ = "CC Attribution-NonCommercial-NoDerivs 2.0 Rui Carmo" __contributors__ = ["http://collaboa.weed.rbse.com/repository/file/branches/pgsql/lib/spark_pr.rb"], ["Eli Bendersky"] i...
[ [ 8, 0, 0.0103, 0.0034, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0138, 0.0034, 0, 0.66, 0.0833, 162, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.0172, 0.0034, 0, 0.66...
[ "\"\"\"Simple PNG Canvas for Python\"\"\"", "__version__ = \"0.8\"", "__author__ = \"Rui Carmo (http://the.taoofmac.com)\"", "__copyright__ = \"CC Attribution-NonCommercial-NoDerivs 2.0 Rui Carmo\"", "__contributors__ = [\"http://collaboa.weed.rbse.com/repository/file/branches/pgsql/lib/spark_pr.rb\"], [\"E...
# -*- coding: utf-8 -*- """ A Python HTML filtering library - html_filter.py, v 1.15.4 Translated to Python by Samuel Adam <samuel.adam@gmail.com> http://amisphere.com/contrib/python-html-filter/ Original PHP code ( lib_filter.php, v 1.15 ) by Cal Henderson <cal@iamcal.com> http://i...
[ [ 8, 0, 0.0173, 0.0292, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0347, 0.0018, 0, 0.66, 0.25, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 1, 0, 0.0365, 0.0018, 0, 0.66, ...
[ "\"\"\"\n A Python HTML filtering library - html_filter.py, v 1.15.4\n\n Translated to Python by Samuel Adam <samuel.adam@gmail.com>\n http://amisphere.com/contrib/python-html-filter/\n \n \n Original PHP code ( lib_filter.php, v 1.15 ) by Cal Henderson <cal@iamcal.com>", "import re", "from c...
from django.template import Library from django.template import Node, NodeList, Template, Context from django.template import TemplateSyntaxError, VariableDoesNotExist, BLOCK_TAG_START, BLOCK_TAG_END, VARIABLE_TAG_START, VARIABLE_TAG_END, SINGLE_BRACE_START, SINGLE_BRACE_END, COMMENT_TAG_START, COMMENT_TAG_END registe...
[ [ 1, 0, 0.0048, 0.0048, 0, 0.66, 0, 213, 0, 1, 0, 0, 213, 0, 0 ], [ 1, 0, 0.0096, 0.0048, 0, 0.66, 0.1667, 213, 0, 4, 0, 0, 213, 0, 0 ], [ 1, 0, 0.0144, 0.0048, 0, ...
[ "from django.template import Library", "from django.template import Node, NodeList, Template, Context", "from django.template import TemplateSyntaxError, VariableDoesNotExist, BLOCK_TAG_START, BLOCK_TAG_END, VARIABLE_TAG_START, VARIABLE_TAG_END, SINGLE_BRACE_START, SINGLE_BRACE_END, COMMENT_TAG_START, COMMENT_T...
# vim: sw=4:expandtab:foldmethod=marker # # Copyright (c) 2003, Mathieu Fenniak # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the abov...
[ [ 8, 0, 0.306, 0.1716, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.3955, 0.0075, 0, 0.66, 0.0714, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.403, 0.0075, 0, 0.66, ...
[ "\"\"\"\nA simple library that implements a pingback client. The library supports\nversion 1.0 of the pingback library, based upon the specification published\nat http://www.hixie.ch/specs/pingback/pingback.\n\nImplementing a pingback server is beyond the scope of this library simply\nbecause of the very applicati...
"""tblib.py: A Trackback (client) implementation in Python """ __author__ = "Matt Croydon <matt@ooiio.com>" __copyright__ = "Copyright 2003, Matt Croydon" __license__ = "GPL" __version__ = "0.1.0" __history__ = """ 0.1.0: 1/29/03 - Code cleanup, release. It can send pings, and autodiscover a URL to ping. 0.0.9...
[ [ 8, 0, 0.02, 0.0267, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.04, 0.0133, 0, 0.66, 0.1, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.0533, 0.0133, 0, 0.66, 0...
[ "\"\"\"tblib.py: A Trackback (client) implementation in Python\n\"\"\"", "__author__ = \"Matt Croydon <matt@ooiio.com>\"", "__copyright__ = \"Copyright 2003, Matt Croydon\"", "__license__ = \"GPL\"", "__version__ = \"0.1.0\"", "__history__ = \"\"\"\n0.1.0: 1/29/03 - Code cleanup, release. It can send pin...
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright(C) 2008 SupDo.com # Licensed under the GUN License, Version 3.0 (the "License"); # # File: safecode.py # Author: KuKei # Create Date: 2008-07-16 # Description: 负责验证码生成。 # Modify Date: 2008-08-06 import md5 import random from pngcanva...
[ [ 1, 0, 0.066, 0.0051, 0, 0.66, 0, 604, 0, 1, 0, 0, 604, 0, 0 ], [ 1, 0, 0.0711, 0.0051, 0, 0.66, 0.3333, 715, 0, 1, 0, 0, 715, 0, 0 ], [ 1, 0, 0.0761, 0.0051, 0, 0...
[ "import md5", "import random", "from pngcanvas import PNGCanvas", "class Image():\n text = None\n md5Text = None\n img = None\n width = 0\n height = 0\n #长度\n textX = 10", " text = None", " md5Text = None", " img = None", " width = 0", " height = 0", " textX ...
# -*- coding: utf-8 -*- import os,logging from google.appengine.api import users from google.appengine.ext import db from google.appengine.ext.db import Model as DBModel from google.appengine.api import memcache from google.appengine.api import mail from google.appengine.api import urlfetch from google.appengi...
[ [ 1, 0, 0.0011, 0.0011, 0, 0.66, 0, 688, 0, 2, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0021, 0.0011, 0, 0.66, 0.0278, 279, 0, 1, 0, 0, 279, 0, 0 ], [ 1, 0, 0.0032, 0.0011, 0, ...
[ "import os,logging", "from google.appengine.api import users", "from google.appengine.ext import db", "from google.appengine.ext.db import Model as DBModel", "from google.appengine.api import memcache", "from google.appengine.api import mail", "from google.appengine.api import urlfetch", "from google....
#!/usr/bin/python # Code copied from http://code.google.com/appengine/articles/remote_api.html # with minor modifications. import code import getpass import os import sys DIR_PATH = "/root/dev/google_appengine" sys.path.append(os.path.join(os.path.dirname(__file__), '..\\')) SCRIPT_DIR = os.path.join(DI...
[ [ 1, 0, 0.1091, 0.0182, 0, 0.66, 0, 44, 0, 1, 0, 0, 44, 0, 0 ], [ 1, 0, 0.1273, 0.0182, 0, 0.66, 0.04, 784, 0, 1, 0, 0, 784, 0, 0 ], [ 1, 0, 0.1455, 0.0182, 0, 0.66...
[ "import code", "import getpass", "import os", "import sys", "DIR_PATH = \"/root/dev/google_appengine\"", "sys.path.append(os.path.join(os.path.dirname(__file__), '..\\\\'))", "SCRIPT_DIR = os.path.join(DIR_PATH, 'google', 'appengine', 'tools')", "EXTRA_PATHS = [\n DIR_PATH,\n os.path.join(DIR_PATH, ...
#!/usr/bin/python # Code copied from http://code.google.com/appengine/articles/remote_api.html # with minor modifications. import code import getpass import os import sys DIR_PATH = "/root/dev/google_appengine" sys.path.append(os.path.join(os.path.dirname(__file__), '..\\')) SCRIPT_DIR = os.path.join(DI...
[ [ 1, 0, 0.1091, 0.0182, 0, 0.66, 0, 44, 0, 1, 0, 0, 44, 0, 0 ], [ 1, 0, 0.1273, 0.0182, 0, 0.66, 0.04, 784, 0, 1, 0, 0, 784, 0, 0 ], [ 1, 0, 0.1455, 0.0182, 0, 0.66...
[ "import code", "import getpass", "import os", "import sys", "DIR_PATH = \"/root/dev/google_appengine\"", "sys.path.append(os.path.join(os.path.dirname(__file__), '..\\\\'))", "SCRIPT_DIR = os.path.join(DIR_PATH, 'google', 'appengine', 'tools')", "EXTRA_PATHS = [\n DIR_PATH,\n os.path.join(DIR_PATH, ...