code
stringlengths
1
1.49M
vector
listlengths
0
7.38k
snippet
listlengths
0
7.38k
""" SteamBMC: XBMC Addon to Browse and Launch Steam Games Copyright (C) 2013 T. Oldbury 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 2 of the License, or (at your option) any later ...
[ [ 8, 0, 0.0562, 0.1067, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.118, 0.0056, 0, 0.66, 0.05, 688, 0, 6, 0, 0, 688, 0, 0 ], [ 1, 0, 0.1236, 0.0056, 0, 0.66, ...
[ "\"\"\"\nSteamBMC: XBMC Addon to Browse and Launch Steam Games\nCopyright (C) 2013 T. Oldbury\n\nThis program is free software; you can redistribute it and/or\nmodify it under the terms of the GNU General Public License\nas published by the Free Software Foundation; either version 2\nof the License, or (at your opt...
#!/usr/bin/env python import urllib2 import shutil import os from os.path import join, exists, dirname, abspath from glob import glob from subprocess import call from zipfile import ZipFile JASMINE_REPORTER_URL='https://github.com/larrymyers/jasmine-reporters/zipball/0.2.1' BASE = abspath(dirname(__file__)) REPORT_DI...
[ [ 1, 0, 0.0385, 0.0192, 0, 0.66, 0, 345, 0, 1, 0, 0, 345, 0, 0 ], [ 1, 0, 0.0577, 0.0192, 0, 0.66, 0.0625, 614, 0, 1, 0, 0, 614, 0, 0 ], [ 1, 0, 0.0769, 0.0192, 0, ...
[ "import urllib2", "import shutil", "import os", "from os.path import join, exists, dirname, abspath", "from glob import glob", "from subprocess import call", "from zipfile import ZipFile", "JASMINE_REPORTER_URL='https://github.com/larrymyers/jasmine-reporters/zipball/0.2.1'", "BASE = abspath(dirname...
import os THIS_PATH = os.path.dirname(__file__) GOLDEN_OUTPUT = os.path.join(THIS_PATH, 'golden_suite', 'output.xml') GOLDEN_OUTPUT2 = os.path.join(THIS_PATH, 'golden_suite', 'output2.xml') GOLDEN_JS = os.path.join(THIS_PATH, 'golden_suite', 'expected.js')
[ [ 1, 0, 0.1429, 0.1429, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 14, 0, 0.4286, 0.1429, 0, 0.66, 0.25, 832, 3, 1, 0, 0, 959, 10, 1 ], [ 14, 0, 0.5714, 0.1429, 0, ...
[ "import os", "THIS_PATH = os.path.dirname(__file__)", "GOLDEN_OUTPUT = os.path.join(THIS_PATH, 'golden_suite', 'output.xml')", "GOLDEN_OUTPUT2 = os.path.join(THIS_PATH, 'golden_suite', 'output2.xml')", "GOLDEN_JS = os.path.join(THIS_PATH, 'golden_suite', 'expected.js')" ]
__author__ = 'janne'
[ [ 14, 0, 1, 1, 0, 0.66, 0, 777, 1, 0, 0, 0, 0, 3, 0 ] ]
[ "__author__ = 'janne'" ]
#!/usr/bin/env python import fileinput from os.path import join, dirname, abspath import sys import os BASEDIR = dirname(abspath(__file__)) OUTPUT = join(BASEDIR, 'output.xml') sys.path.insert(0, join(BASEDIR, '..', '..', '..', '..', 'src')) import robot from robot.conf.settings import RebotSettings from robot.repo...
[ [ 1, 0, 0.0526, 0.0175, 0, 0.66, 0, 286, 0, 1, 0, 0, 286, 0, 0 ], [ 1, 0, 0.0702, 0.0175, 0, 0.66, 0.0667, 79, 0, 3, 0, 0, 79, 0, 0 ], [ 1, 0, 0.0877, 0.0175, 0, 0....
[ "import fileinput", "from os.path import join, dirname, abspath", "import sys", "import os", "BASEDIR = dirname(abspath(__file__))", "OUTPUT = join(BASEDIR, 'output.xml')", "sys.path.insert(0, join(BASEDIR, '..', '..', '..', '..', 'src'))", "import robot", "from robot.conf.settings import RebotSetti...
#!/usr/bin/env python import sys import os from os.path import join, dirname from distutils.core import setup execfile(join(dirname(__file__), 'src', 'robot', 'version.py')) # Maximum width in Windows installer seems to be 70 characters -------| DESCRIPTION = """ Robot Framework is a generic test automation framewor...
[ [ 1, 0, 0.2, 0.2, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.4, 0.2, 0, 0.66, 0.3333, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.6, 0.2, 0, 0.66, 0.6667, ...
[ "import sys", "import os", "from os.path import join, dirname", "from distutils.core import setup" ]
#!/usr/bin/env python """A script for running Robot Framework's acceptance tests. Usage: run_atests.py interpreter [options] datasource(s) Data sources are paths to directories or files under `robot` folder. Available options are the same that can be used with Robot Framework. See its help (e.g. `pybot --help`) fo...
[ [ 8, 0, 0.1081, 0.1712, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.2072, 0.009, 0, 0.66, 0.0667, 621, 0, 1, 0, 0, 621, 0, 0 ], [ 1, 0, 0.2162, 0.009, 0, 0.66, ...
[ "\"\"\"A script for running Robot Framework's acceptance tests.\n\nUsage: run_atests.py interpreter [options] datasource(s)\n\nData sources are paths to directories or files under `robot` folder.\n\nAvailable options are the same that can be used with Robot Framework.\nSee its help (e.g. `pybot --help`) for more i...
import subprocess import os import signal import ctypes import time class ProcessManager(object): def __init__(self): self._process = None self._stdout = '' self._stderr = '' def start_process(self, *args): args = args[0].split() + list(args[1:]) self._process = subpr...
[ [ 1, 0, 0.0137, 0.0137, 0, 0.66, 0, 394, 0, 1, 0, 0, 394, 0, 0 ], [ 1, 0, 0.0274, 0.0137, 0, 0.66, 0.2, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0411, 0.0137, 0, 0.6...
[ "import subprocess", "import os", "import signal", "import ctypes", "import time", "class ProcessManager(object):\n\n def __init__(self):\n self._process = None\n self._stdout = ''\n self._stderr = ''\n\n def start_process(self, *args):", " def __init__(self):\n self...
from __future__ import with_statement import os from os.path import abspath, dirname, join from subprocess import call, STDOUT import tempfile from robot.utils.asserts import assert_equals ROBOT_SRC = join(dirname(abspath(__file__)), '..', '..', '..', 'src') class TidyLib(object): def __init__(self, interpret...
[ [ 1, 0, 0.0169, 0.0169, 0, 0.66, 0, 777, 0, 1, 0, 0, 777, 0, 0 ], [ 1, 0, 0.0508, 0.0169, 0, 0.66, 0.1429, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0678, 0.0169, 0, ...
[ "from __future__ import with_statement", "import os", "from os.path import abspath, dirname, join", "from subprocess import call, STDOUT", "import tempfile", "from robot.utils.asserts import assert_equals", "ROBOT_SRC = join(dirname(abspath(__file__)), '..', '..', '..', 'src')", "class TidyLib(object)...
# 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.2542, 0.0169, 0, 0.66, 0, 777, 0, 1, 0, 0, 777, 0, 0 ], [ 1, 0, 0.2881, 0.0169, 0, 0.66, 0.2, 417, 0, 2, 0, 0, 417, 0, 0 ], [ 1, 0, 0.3051, 0.0169, 0, 0.6...
[ "from __future__ import with_statement", "from robot.utils import ET, ETSource", "from robot.libraries.BuiltIn import BuiltIn", "def should_be_equal(text, expected):\n BuiltIn().should_be_equal(text, expected)", " BuiltIn().should_be_equal(text, expected)", "def should_match(text, pattern):\n Bui...
import os import tempfile from os.path import join, dirname, abspath from subprocess import call, STDOUT from robot.api import logger from robot.utils import decode_output ROBOT_SRC = join(dirname(abspath(__file__)), '..', '..', '..', 'src') class LibDocLib(object): def __init__(self, interpreter): self...
[ [ 1, 0, 0.0385, 0.0385, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0769, 0.0385, 0, 0.66, 0.1429, 516, 0, 1, 0, 0, 516, 0, 0 ], [ 1, 0, 0.1154, 0.0385, 0, ...
[ "import os", "import tempfile", "from os.path import join, dirname, abspath", "from subprocess import call, STDOUT", "from robot.api import logger", "from robot.utils import decode_output", "ROBOT_SRC = join(dirname(abspath(__file__)), '..', '..', '..', 'src')", "class LibDocLib(object):\n\n def __...
from __future__ import with_statement import os from robot.utils import utf8open def output_should_have_correct_line_separators(path): with utf8open(path) as infile: content = infile.read() content = content.replace(os.linesep, '') incorrect = content.count('\n') if incorrect: err = A...
[ [ 1, 0, 0.0625, 0.0625, 0, 0.66, 0, 777, 0, 1, 0, 0, 777, 0, 0 ], [ 1, 0, 0.125, 0.0625, 0, 0.66, 0.3333, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.25, 0.0625, 0, 0.6...
[ "from __future__ import with_statement", "import os", "from robot.utils import utf8open", "def output_should_have_correct_line_separators(path):\n with utf8open(path) as infile:\n content = infile.read()\n content = content.replace(os.linesep, '')\n incorrect = content.count('\\n')\n if inc...
from __future__ import with_statement from robot.api import logger class WrongStat(AssertionError): ROBOT_CONTINUE_ON_FAILURE = True def get_total_stats(path): return get_all_stats(path)[0] def get_tag_stats(path): return get_all_stats(path)[1] def get_suite_stats(path): return get_all_stats(path)...
[ [ 1, 0, 0.0244, 0.0244, 0, 0.66, 0, 777, 0, 1, 0, 0, 777, 0, 0 ], [ 1, 0, 0.0488, 0.0244, 0, 0.66, 0.1111, 855, 0, 1, 0, 0, 855, 0, 0 ], [ 3, 0, 0.1341, 0.0488, 0, ...
[ "from __future__ import with_statement", "from robot.api import logger", "class WrongStat(AssertionError):\n ROBOT_CONTINUE_ON_FAILURE = True", " ROBOT_CONTINUE_ON_FAILURE = True", "def get_total_stats(path):\n return get_all_stats(path)[0]", " return get_all_stats(path)[0]", "def get_tag_st...
from robot.libraries.BuiltIn import BuiltIn BIN = BuiltIn() def start_keyword(*args): if BIN.get_variables()['${TESTNAME}'] == 'Listener Using BuiltIn': BIN.set_test_variable('${SET BY LISTENER}', 'quux')
[ [ 1, 0, 0.1111, 0.1111, 0, 0.66, 0, 588, 0, 1, 0, 0, 588, 0, 0 ], [ 14, 0, 0.3333, 0.1111, 0, 0.66, 0.5, 831, 3, 0, 0, 0, 961, 10, 1 ], [ 2, 0, 0.7778, 0.3333, 0, 0...
[ "from robot.libraries.BuiltIn import BuiltIn", "BIN = BuiltIn()", "def start_keyword(*args):\n if BIN.get_variables()['${TESTNAME}'] == 'Listener Using BuiltIn':\n BIN.set_test_variable('${SET BY LISTENER}', 'quux')", " if BIN.get_variables()['${TESTNAME}'] == 'Listener Using BuiltIn':\n B...
from __future__ import with_statement from os.path import abspath, dirname, join from fnmatch import fnmatchcase from operator import eq from robot.api import logger CURDIR = dirname(abspath(__file__)) def verify_output(actual, expected): actual = _read_file(actual, 'Actual') expected = _read_file(join(CURD...
[ [ 1, 0, 0.0357, 0.0357, 0, 0.66, 0, 777, 0, 1, 0, 0, 777, 0, 0 ], [ 1, 0, 0.0714, 0.0357, 0, 0.66, 0.1429, 79, 0, 3, 0, 0, 79, 0, 0 ], [ 1, 0, 0.1071, 0.0357, 0, 0....
[ "from __future__ import with_statement", "from os.path import abspath, dirname, join", "from fnmatch import fnmatchcase", "from operator import eq", "from robot.api import logger", "CURDIR = dirname(abspath(__file__))", "def verify_output(actual, expected):\n actual = _read_file(actual, 'Actual')\n ...
import os import tempfile import time class ListenAll: ROBOT_LISTENER_API_VERSION = '2' def __init__(self, *path): if not path: path = os.path.join(tempfile.gettempdir(), 'listen_all.txt') else: path = ':'.join(path) self.outfile = open(path, 'w') def sta...
[ [ 1, 0, 0.0122, 0.0122, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0244, 0.0122, 0, 0.66, 0.3333, 516, 0, 1, 0, 0, 516, 0, 0 ], [ 1, 0, 0.0366, 0.0122, 0, ...
[ "import os", "import tempfile", "import time", "class ListenAll:\n\n ROBOT_LISTENER_API_VERSION = '2'\n\n def __init__(self, *path):\n if not path:\n path = os.path.join(tempfile.gettempdir(), 'listen_all.txt')\n else:", " ROBOT_LISTENER_API_VERSION = '2'", " def __ini...
import os import tempfile class OldListenAll: def __init__(self, *path): if not path: path = os.path.join(tempfile.gettempdir(), 'listen_all.txt') else: path = ':'.join(path) self.outfile = open(path, 'w') def start_suite(self, name, doc): self.outfile...
[ [ 1, 0, 0.0182, 0.0182, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0364, 0.0182, 0, 0.66, 0.5, 516, 0, 1, 0, 0, 516, 0, 0 ], [ 3, 0, 0.5455, 0.9273, 0, 0.6...
[ "import os", "import tempfile", "class OldListenAll:\n\n def __init__(self, *path):\n if not path:\n path = os.path.join(tempfile.gettempdir(), 'listen_all.txt')\n else:\n path = ':'.join(path)\n self.outfile = open(path, 'w')", " def __init__(self, *path):\n ...
import os import tempfile outpath = os.path.join(tempfile.gettempdir(), 'listen_by_module.txt') OUTFILE = open(outpath, 'w') ROBOT_LISTENER_API_VERSION = 2 def start_suite(name, attrs): metastr = ' '.join('%s: %s' % (k, v) for k, v in attrs['metadata'].items()) OUTFILE.write("SUITE START: %s '%s' [%s]\n" ...
[ [ 1, 0, 0.0156, 0.0156, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0312, 0.0156, 0, 0.66, 0.0556, 516, 0, 1, 0, 0, 516, 0, 0 ], [ 14, 0, 0.0625, 0.0156, 0, ...
[ "import os", "import tempfile", "outpath = os.path.join(tempfile.gettempdir(), 'listen_by_module.txt')", "OUTFILE = open(outpath, 'w')", "ROBOT_LISTENER_API_VERSION = 2", "def start_suite(name, attrs):\n metastr = ' '.join('%s: %s' % (k, v) for k, v in attrs['metadata'].items())\n OUTFILE.write(\"SU...
import os import tempfile class ListenSome: def __init__(self): outpath = os.path.join(tempfile.gettempdir(), 'listen_some.txt') self.outfile = open(outpath, 'w') def startTest(self, name, doc, tags): self.outfile.write(name + '\n') def endSuite(self, stat, msg): ...
[ [ 1, 0, 0.0278, 0.0278, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0556, 0.0278, 0, 0.66, 0.25, 516, 0, 1, 0, 0, 516, 0, 0 ], [ 3, 0, 0.3194, 0.3889, 0, 0....
[ "import os", "import tempfile", "class ListenSome:\n \n def __init__(self):\n outpath = os.path.join(tempfile.gettempdir(), 'listen_some.txt')\n self.outfile = open(outpath, 'w')\n \n def startTest(self, name, doc, tags):\n self.outfile.write(name + '\\n')", " def __ini...
import os import tempfile import logging from robot.libraries.BuiltIn import BuiltIn from robot.api import logger class ListenSome: ROBOT_LISTENER_API_VERSION = '2' def __init__(self): outpath = os.path.join(tempfile.gettempdir(), 'listen_some.txt') self.outfile = open(outpath, 'w') def...
[ [ 1, 0, 0.0085, 0.0085, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0169, 0.0085, 0, 0.66, 0.1, 516, 0, 1, 0, 0, 516, 0, 0 ], [ 1, 0, 0.0254, 0.0085, 0, 0.6...
[ "import os", "import tempfile", "import logging", "from robot.libraries.BuiltIn import BuiltIn", "from robot.api import logger", "class ListenSome:\n ROBOT_LISTENER_API_VERSION = '2'\n\n def __init__(self):\n outpath = os.path.join(tempfile.gettempdir(), 'listen_some.txt')\n self.outfi...
import os import tempfile outpath = os.path.join(tempfile.gettempdir(), 'listen_by_module.txt') OUTFILE = open(outpath, 'w') def start_suite(name, doc): OUTFILE.write("SUITE START: %s '%s'\n" % (name, doc)) def start_test(name, doc, tags): tags = [ str(tag) for tag in tags ] OUTFILE.write("TEST START: %...
[ [ 1, 0, 0.0204, 0.0204, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0408, 0.0204, 0, 0.66, 0.0667, 516, 0, 1, 0, 0, 516, 0, 0 ], [ 14, 0, 0.0816, 0.0204, 0, ...
[ "import os", "import tempfile", "outpath = os.path.join(tempfile.gettempdir(), 'listen_by_module.txt')", "OUTFILE = open(outpath, 'w')", "def start_suite(name, doc):\n OUTFILE.write(\"SUITE START: %s '%s'\\n\" % (name, doc))", " OUTFILE.write(\"SUITE START: %s '%s'\\n\" % (name, doc))", "def start...
import os import tempfile ROBOT_LISTENER_API_VERSION = '2' OUTFILE = open(os.path.join(tempfile.gettempdir(), 'listener_attrs.txt'), 'w') START_ATTRS = 'doc starttime ' END_ATTRS = START_ATTRS + 'endtime elapsedtime status ' EXPECTED_TYPES = {'elapsedtime': (int, long), 'tags': list, 'args': list, '...
[ [ 1, 0, 0.0189, 0.0189, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0377, 0.0189, 0, 0.66, 0.0714, 516, 0, 1, 0, 0, 516, 0, 0 ], [ 14, 0, 0.0755, 0.0189, 0, ...
[ "import os", "import tempfile", "ROBOT_LISTENER_API_VERSION = '2'", "OUTFILE = open(os.path.join(tempfile.gettempdir(), 'listener_attrs.txt'), 'w')", "START_ATTRS = 'doc starttime '", "END_ATTRS = START_ATTRS + 'endtime elapsedtime status '", "EXPECTED_TYPES = {'elapsedtime': (int, long), 'tags': list, ...
def get_variables(*args): return { 'PPATH_VARFILE_2' : ' '.join(args), 'LIST__PPATH_VARFILE_2' : args }
[ [ 2, 0, 0.5, 0.75, 0, 0.66, 0, 461, 0, 1, 1, 0, 0, 0, 1 ], [ 13, 1, 0.625, 0.5, 1, 0.64, 0, 0, 0, 0, 0, 0, 0, 6, 1 ] ]
[ "def get_variables(*args):\n return { 'PPATH_VARFILE_2' : ' '.join(args),\n 'LIST__PPATH_VARFILE_2' : args }", " return { 'PPATH_VARFILE_2' : ' '.join(args),\n 'LIST__PPATH_VARFILE_2' : args }" ]
PPATH_VARFILE = "Variable from variable file in PYTHONPATH"
[ [ 14, 0, 1, 1, 0, 0.66, 0, 799, 1, 0, 0, 0, 0, 3, 0 ] ]
[ "PPATH_VARFILE = \"Variable from variable file in PYTHONPATH\"" ]
list1 = [1, 2, 3, 4, 'foo', 'bar'] dictionary1 = {'a': 1} dictionary2 = {'a': 1, 'b': 2}
[ [ 14, 0, 0.3333, 0.3333, 0, 0.66, 0, 150, 0, 0, 0, 0, 0, 5, 0 ], [ 14, 0, 0.6667, 0.3333, 0, 0.66, 0.5, 355, 0, 0, 0, 0, 0, 6, 0 ], [ 14, 0, 1, 0.3333, 0, 0.66, ...
[ "list1 = [1, 2, 3, 4, 'foo', 'bar']", "dictionary1 = {'a': 1}", "dictionary2 = {'a': 1, 'b': 2}" ]
class TraceLogArgsLibrary(object): def only_mandatory(self, mand1, mand2): pass def mandatory_and_default(self, mand, default="default value"): pass def multiple_default_values(self, a=1, a2=2, a3=3, a4=4): pass def mandatory_and_varargs(self, mand, *varargs): pass ...
[ [ 3, 0, 0.3333, 0.6333, 0, 0.66, 0, 552, 0, 6, 0, 0, 186, 0, 2 ], [ 2, 1, 0.1167, 0.0667, 1, 0.73, 0, 124, 0, 3, 0, 0, 0, 0, 0 ], [ 2, 1, 0.2167, 0.0667, 1, 0.73, ...
[ "class TraceLogArgsLibrary(object):\n\n def only_mandatory(self, mand1, mand2):\n pass\n\n def mandatory_and_default(self, mand, default=\"default value\"):\n pass", " def only_mandatory(self, mand1, mand2):\n pass", " def mandatory_and_default(self, mand, default=\"default valu...
class FailUntilSucceeds: ROBOT_LIBRARY_SCOPE = 'TESTCASE' def __init__(self, times_to_fail=0): self.times_to_fail = int(times_to_fail) def fail_until_retried_often_enough(self, message="Hello"): self.times_to_fail -= 1 if self.times_to_fail >= 0: raise Exce...
[ [ 3, 0, 0.5417, 1, 0, 0.66, 0, 243, 0, 2, 0, 0, 0, 0, 2 ], [ 14, 1, 0.25, 0.0833, 1, 0.97, 0, 305, 1, 0, 0, 0, 0, 3, 0 ], [ 2, 1, 0.4583, 0.1667, 1, 0.97, 0.5, ...
[ "class FailUntilSucceeds:\n \n ROBOT_LIBRARY_SCOPE = 'TESTCASE'\n \n def __init__(self, times_to_fail=0):\n self.times_to_fail = int(times_to_fail)\n \n def fail_until_retried_often_enough(self, message=\"Hello\"):", " ROBOT_LIBRARY_SCOPE = 'TESTCASE'", " def __init__(self, times_...
import exceptions class ObjectToReturn: def __init__(self, name): self.name = name def __str__(self): return self.name def exception(self, name, msg=""): exception = getattr(exceptions, name) raise exception, msg
[ [ 1, 0, 0.0833, 0.0833, 0, 0.66, 0, 63, 0, 1, 0, 0, 63, 0, 0 ], [ 3, 0, 0.625, 0.8333, 0, 0.66, 1, 601, 0, 3, 0, 0, 0, 0, 1 ], [ 2, 1, 0.4583, 0.1667, 1, 0.97, ...
[ "import exceptions", "class ObjectToReturn:\n \n def __init__(self, name):\n self.name = name\n\n def __str__(self):\n return self.name", " def __init__(self, name):\n self.name = name", " self.name = name", " def __str__(self):\n return self.name", " ...
class SameNamesAsInBuiltIn: def noop(self): """Using this keyword without libname causes an error"""
[ [ 3, 0, 0.625, 1, 0, 0.66, 0, 82, 0, 1, 0, 0, 0, 0, 0 ], [ 2, 1, 0.875, 0.5, 1, 0.8, 0, 907, 0, 1, 0, 0, 0, 0, 0 ], [ 8, 2, 1, 0.25, 2, 0.59, 0, 0, 1, ...
[ "class SameNamesAsInBuiltIn:\n \n def noop(self):\n \"\"\"Using this keyword without libname causes an error\"\"\"", " def noop(self):\n \"\"\"Using this keyword without libname causes an error\"\"\"", " \"\"\"Using this keyword without libname causes an error\"\"\"" ]
from robot.libraries.BuiltIn import BuiltIn class NamespaceUsingLibrary(object): def __init__(self): self._importing_suite = BuiltIn().get_variable_value('${SUITE NAME}') self._easter = BuiltIn().get_library_instance('Easter') def get_importing_suite(self): return self._importing_suit...
[ [ 1, 0, 0.0769, 0.0769, 0, 0.66, 0, 588, 0, 1, 0, 0, 588, 0, 0 ], [ 3, 0, 0.6154, 0.8462, 0, 0.66, 1, 35, 0, 3, 0, 0, 186, 0, 4 ], [ 2, 1, 0.4615, 0.2308, 1, 0.05, ...
[ "from robot.libraries.BuiltIn import BuiltIn", "class NamespaceUsingLibrary(object):\n\n def __init__(self):\n self._importing_suite = BuiltIn().get_variable_value('${SUITE NAME}')\n self._easter = BuiltIn().get_library_instance('Easter')\n\n def get_importing_suite(self):\n return self...
class ZipLib: def kw_from_zip(self, arg): print '*INFO*', arg return arg * 2
[ [ 3, 0, 0.4286, 0.7143, 0, 0.66, 0, 240, 0, 1, 0, 0, 0, 0, 1 ], [ 2, 1, 0.5714, 0.4286, 1, 0.52, 0, 374, 0, 2, 1, 0, 0, 0, 1 ], [ 8, 2, 0.5714, 0.1429, 2, 0.08, ...
[ "class ZipLib:\n\n\tdef kw_from_zip(self, arg):\n\t\tprint('*INFO*', arg)\n\t\treturn arg * 2", "\tdef kw_from_zip(self, arg):\n\t\tprint('*INFO*', arg)\n\t\treturn arg * 2", "\t\tprint('*INFO*', arg)", "\t\treturn arg * 2" ]
class PythonVarArgsConstructor: def __init__(self, mandatory, *varargs): self.mandatory = mandatory self.varargs = varargs def get_args(self): return self.mandatory, ' '.join(self.varargs)
[ [ 3, 0, 0.5, 0.8889, 0, 0.66, 0, 282, 0, 2, 0, 0, 0, 0, 1 ], [ 2, 1, 0.4444, 0.3333, 1, 0.53, 0, 555, 0, 3, 0, 0, 0, 0, 0 ], [ 14, 2, 0.4444, 0.1111, 2, 0.17, 0...
[ "class PythonVarArgsConstructor:\n \n def __init__(self, mandatory, *varargs):\n self.mandatory = mandatory\n self.varargs = varargs\n\n def get_args(self):\n return self.mandatory, ' '.join(self.varargs)", " def __init__(self, mandatory, *varargs):\n self.mandatory = manda...
import ExampleJavaLibrary import DefaultArgs class ExtendJavaLib(ExampleJavaLibrary): def kw_in_java_extender(self, arg): return arg*2 def javaSleep(self, secs): raise Exception('Overridden kw executed!') def using_method_from_java_parent(self): self.divByZero() class ExtendJa...
[ [ 1, 0, 0.027, 0.027, 0, 0.66, 0, 716, 0, 1, 0, 0, 716, 0, 0 ], [ 1, 0, 0.0541, 0.027, 0, 0.66, 0.2, 96, 0, 1, 0, 0, 96, 0, 0 ], [ 3, 0, 0.2568, 0.2703, 0, 0.66, ...
[ "import ExampleJavaLibrary", "import DefaultArgs", "class ExtendJavaLib(ExampleJavaLibrary):\n\n def kw_in_java_extender(self, arg):\n return arg*2\n\n def javaSleep(self, secs):\n raise Exception('Overridden kw executed!')", " def kw_in_java_extender(self, arg):\n return arg*2",...
class ArgumentsPython: # method docs are used in unit tests as expected min and max args def a_0(self): """(0,0)""" return 'a_0' def a_1(self, arg): """(1,1)""" return 'a_1: ' + arg def a_3(self, arg1, arg2, arg3): """(3,3)""" return ' ...
[ [ 3, 0, 0.5, 0.9722, 0, 0.66, 0, 360, 0, 8, 0, 0, 0, 0, 8 ], [ 2, 1, 0.1667, 0.0833, 1, 0.75, 0, 653, 0, 1, 1, 0, 0, 0, 0 ], [ 8, 2, 0.1667, 0.0278, 2, 0.93, 0,...
[ "class ArgumentsPython:\n \n # method docs are used in unit tests as expected min and max args\n \n def a_0(self):\n \"\"\"(0,0)\"\"\"\n return 'a_0'", " def a_0(self):\n \"\"\"(0,0)\"\"\"\n return 'a_0'", " \"\"\"(0,0)\"\"\"", " return 'a_0'", " d...
from robot import utils class RunKeywordLibrary: ROBOT_LIBRARY_SCOPE = 'TESTCASE' def __init__(self): self.kw_names = ['Run Keyword That Passes', 'Run Keyword That Fails'] def get_keyword_names(self): return self.kw_names def run_keyword(self, name, args): try: m...
[ [ 1, 0, 0.0244, 0.0244, 0, 0.66, 0, 735, 0, 1, 0, 0, 735, 0, 0 ], [ 3, 0, 0.3902, 0.6098, 0, 0.66, 0.3333, 741, 0, 5, 0, 0, 0, 0, 8 ], [ 14, 1, 0.122, 0.0244, 1, 0....
[ "from robot import utils", "class RunKeywordLibrary:\n ROBOT_LIBRARY_SCOPE = 'TESTCASE'\n\n def __init__(self):\n self.kw_names = ['Run Keyword That Passes', 'Run Keyword That Fails']\n\n def get_keyword_names(self):\n return self.kw_names", " ROBOT_LIBRARY_SCOPE = 'TESTCASE'", " ...
def keyword_from_deeper_submodule(): return 'hi again' class Sub: def keyword_from_class_in_deeper_submodule(self): return 'bye'
[ [ 2, 0, 0.1667, 0.2222, 0, 0.66, 0, 11, 0, 0, 1, 0, 0, 0, 0 ], [ 13, 1, 0.2222, 0.1111, 1, 0.82, 0, 0, 1, 0, 0, 0, 0, 3, 0 ], [ 3, 0, 0.7222, 0.4444, 0, 0.66, 1...
[ "def keyword_from_deeper_submodule():\n return 'hi again'", " return 'hi again'", "class Sub:\n\n def keyword_from_class_in_deeper_submodule(self):\n return 'bye'", " def keyword_from_class_in_deeper_submodule(self):\n return 'bye'", " return 'bye'" ]
attribute = 42
[ [ 14, 0, 1, 1, 0, 0.66, 0, 355, 1, 0, 0, 0, 0, 1, 0 ] ]
[ "attribute = 42" ]
library = "It should be OK to have an attribute with same name as the module" def keyword_from_submodule(arg='World'): return "Hello, %s!" % arg
[ [ 14, 0, 0.2, 0.2, 0, 0.66, 0, 860, 1, 0, 0, 0, 0, 3, 0 ], [ 2, 0, 0.9, 0.4, 0, 0.66, 1, 962, 0, 1, 1, 0, 0, 0, 0 ], [ 13, 1, 1, 0.2, 1, 0.15, 0, 0, 4, ...
[ "library = \"It should be OK to have an attribute with same name as the module\"", "def keyword_from_submodule(arg='World'):\n return \"Hello, %s!\" % arg", " return \"Hello, %s!\" % arg" ]
some_string = 'Hello, World!' class _SomeObject: pass some_object = _SomeObject()
[ [ 14, 0, 0.1667, 0.1667, 0, 0.66, 0, 913, 1, 0, 0, 0, 0, 3, 0 ], [ 3, 0, 0.5833, 0.3333, 0, 0.66, 0.5, 122, 0, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 1, 0.1667, 0, 0.66, ...
[ "some_string = 'Hello, World!'", "class _SomeObject:\n pass", "some_object = _SomeObject()" ]
class KwargsLibrary(object): def __init__(self, arg1=None, arg2=None): self.arg1 = arg1 self.arg2 = arg2 def check_init_arguments(self, exp_arg1, exp_arg2): if self.arg1 != exp_arg1 or self.arg2 != exp_arg2: raise AssertionError('Wrong initialization values. Got (%s, %s), e...
[ [ 3, 0, 0.52, 1, 0, 0.66, 0, 328, 0, 7, 0, 0, 186, 0, 2 ], [ 2, 1, 0.16, 0.12, 1, 0.39, 0, 555, 0, 3, 0, 0, 0, 0, 0 ], [ 14, 2, 0.16, 0.04, 2, 0, 0, 572, ...
[ "class KwargsLibrary(object):\n\n def __init__(self, arg1=None, arg2=None):\n self.arg1 = arg1\n self.arg2 = arg2\n\n def check_init_arguments(self, exp_arg1, exp_arg2):\n if self.arg1 != exp_arg1 or self.arg2 != exp_arg2:", " def __init__(self, arg1=None, arg2=None):\n self.a...
class ParameterLibrary: def __init__(self, host='localhost', port='8080'): self.host = host self.port = port def parameters(self): return self.host, self.port
[ [ 3, 0, 0.5625, 1, 0, 0.66, 0, 341, 0, 2, 0, 0, 0, 0, 0 ], [ 2, 1, 0.5, 0.375, 1, 0.45, 0, 555, 0, 3, 0, 0, 0, 0, 0 ], [ 14, 2, 0.5, 0.125, 2, 0.81, 0, 445,...
[ "class ParameterLibrary:\n \n def __init__(self, host='localhost', port='8080'):\n self.host = host\n self.port = port\n \n def parameters(self):\n return self.host, self.port", " def __init__(self, host='localhost', port='8080'):\n self.host = host\n self.por...
from robot import utils def passing_handler(*args): for arg in args: print arg, return ', '.join(args) def failing_handler(*args): if len(args) == 0: msg = 'Failure' else: msg = 'Failure: %s' % ' '.join(args) raise AssertionError(msg) class GetKeywordNamesLibrary: ...
[ [ 1, 0, 0.027, 0.027, 0, 0.66, 0, 735, 0, 1, 0, 0, 735, 0, 0 ], [ 2, 0, 0.1486, 0.1081, 0, 0.66, 0.3333, 44, 0, 1, 1, 0, 0, 0, 2 ], [ 6, 1, 0.1486, 0.0541, 1, 0.47,...
[ "from robot import utils", "def passing_handler(*args):\n for arg in args:\n print(arg,)\n return ', '.join(args)", " for arg in args:\n print(arg,)", " print(arg,)", " return ', '.join(args)", "def failing_handler(*args):\n if len(args) == 0:\n msg = 'Failure'\n...
class Mandatory: def __init__(self, mandatory1, mandatory2): self.mandatory1 = mandatory1 self.mandatory2 = mandatory2 def get_args(self): return self.mandatory1, self.mandatory2 class Defaults(object): def __init__(self, mandatory, default1='value', default2=None): self...
[ [ 3, 0, 0.1406, 0.25, 0, 0.66, 0, 745, 0, 2, 0, 0, 0, 0, 0 ], [ 2, 1, 0.125, 0.0938, 1, 0.85, 0, 555, 0, 3, 0, 0, 0, 0, 0 ], [ 14, 2, 0.125, 0.0312, 2, 0.25, 0,...
[ "class Mandatory:\n\n def __init__(self, mandatory1, mandatory2):\n self.mandatory1 = mandatory1\n self.mandatory2 = mandatory2\n\n def get_args(self):\n return self.mandatory1, self.mandatory2", " def __init__(self, mandatory1, mandatory2):\n self.mandatory1 = mandatory1\n ...
from ExampleLibrary import ExampleLibrary class ExtendPythonLib(ExampleLibrary): def kw_in_python_extender(self, arg): return arg/2 def print_many(self, *msgs): raise Exception('Overridden kw executed!') def using_method_from_python_parent(self): self.exception('Asser...
[ [ 1, 0, 0.0833, 0.0833, 0, 0.66, 0, 472, 0, 1, 0, 0, 472, 0, 0 ], [ 3, 0, 0.625, 0.8333, 0, 0.66, 1, 677, 0, 3, 0, 0, 472, 0, 2 ], [ 2, 1, 0.4583, 0.1667, 1, 0.49, ...
[ "from ExampleLibrary import ExampleLibrary", "class ExtendPythonLib(ExampleLibrary):\n \n def kw_in_python_extender(self, arg):\n return arg/2\n \n def print_many(self, *msgs):\n raise Exception('Overridden kw executed!')", " def kw_in_python_extender(self, arg):\n return arg...
__version__ = 'N/A' # This should be ignored when version is parsed class NameLibrary: handler_count = 10 def simple1(self): """Simple 1""" def simple2___(self): """Simple 2""" def underscore_name(self): """Underscore Name""" def underscore_name2_(self): """Undersc...
[ [ 14, 0, 0.0061, 0.0061, 0, 0.66, 0, 162, 1, 0, 0, 0, 0, 3, 0 ], [ 3, 0, 0.0976, 0.1524, 0, 0.66, 0.0769, 353, 0, 11, 0, 0, 0, 0, 0 ], [ 14, 1, 0.0305, 0.0061, 1, 0...
[ "__version__ = 'N/A' # This should be ignored when version is parsed", "class NameLibrary:\n handler_count = 10\n def simple1(self):\n \"\"\"Simple 1\"\"\"\n def simple2___(self):\n \"\"\"Simple 2\"\"\"\n def underscore_name(self):\n \"\"\"Underscore Name\"\"\"", " handler_c...
class NewStyleClassLibrary(object): def mirror(self, arg): arg = list(arg) arg.reverse() return ''.join(arg) def _property_getter(self): raise SystemExit('This should not be called, ever!!!') prop = property(_property_getter) class NewStyleClassArgsLibrar...
[ [ 3, 0, 0.1765, 0.3235, 0, 0.66, 0, 12, 0, 2, 0, 0, 186, 0, 5 ], [ 2, 1, 0.1324, 0.1176, 1, 0.14, 0, 697, 0, 2, 1, 0, 0, 0, 3 ], [ 14, 2, 0.1176, 0.0294, 2, 0.21, ...
[ "class NewStyleClassLibrary(object):\n \n def mirror(self, arg):\n arg = list(arg)\n arg.reverse()\n return ''.join(arg)\n\n def _property_getter(self):", " def mirror(self, arg):\n arg = list(arg)\n arg.reverse()\n return ''.join(arg)", " arg = list(...
class LibClass1: def verify_libclass1(self): return 'LibClass 1 works' class LibClass2: def verify_libclass2(self): return 'LibClass 2 works also'
[ [ 3, 0, 0.2273, 0.3636, 0, 0.66, 0, 529, 0, 1, 0, 0, 0, 0, 0 ], [ 2, 1, 0.3182, 0.1818, 1, 0.47, 0, 99, 0, 1, 1, 0, 0, 0, 0 ], [ 13, 2, 0.3636, 0.0909, 2, 0.49, ...
[ "class LibClass1:\n \n def verify_libclass1(self):\n return 'LibClass 1 works'", " def verify_libclass1(self):\n return 'LibClass 1 works'", " return 'LibClass 1 works'", "class LibClass2:\n\n def verify_libclass2(self):\n return 'LibClass 2 works also'", " def ver...
class FatalCatastrophyException(RuntimeError): ROBOT_EXIT_ON_FAILURE = True class ContinuableApocalypseException(RuntimeError): ROBOT_CONTINUE_ON_FAILURE = True def exit_on_failure(): raise FatalCatastrophyException() def raise_continuable_failure(msg='Can be continued'): raise ContinuableApocalypseE...
[ [ 3, 0, 0.1364, 0.1818, 0, 0.66, 0, 572, 0, 0, 0, 0, 178, 0, 0 ], [ 14, 1, 0.1818, 0.0909, 1, 0.36, 0, 675, 1, 0, 0, 0, 0, 4, 0 ], [ 3, 0, 0.4091, 0.1818, 0, 0.66, ...
[ "class FatalCatastrophyException(RuntimeError):\n ROBOT_EXIT_ON_FAILURE = True", " ROBOT_EXIT_ON_FAILURE = True", "class ContinuableApocalypseException(RuntimeError):\n ROBOT_CONTINUE_ON_FAILURE = True", " ROBOT_CONTINUE_ON_FAILURE = True", "def exit_on_failure():\n raise FatalCatastrophyExce...
class _BaseDynamicLibrary(object): def get_keyword_names(self): return [] def run_keyword(self, name, *args): return None class StaticDocsLib(_BaseDynamicLibrary): """This is lib intro.""" def __init__(self, some=None, args=[]): """Init doc.""" class DynamicDocsLib(_BaseDynam...
[ [ 3, 0, 0.0976, 0.1707, 0, 0.66, 0, 914, 0, 2, 0, 0, 186, 0, 0 ], [ 2, 1, 0.0854, 0.0488, 1, 0.8, 0, 768, 0, 1, 1, 0, 0, 0, 0 ], [ 13, 2, 0.0976, 0.0244, 2, 0.13, ...
[ "class _BaseDynamicLibrary(object):\n\n def get_keyword_names(self):\n return []\n\n def run_keyword(self, name, *args):\n return None", " def get_keyword_names(self):\n return []", " return []", " def run_keyword(self, name, *args):\n return None", " re...
ROBOT_LIBRARY_SCOPE = 'Test Suite' # this should be ignored __version__ = 'test' # this should be used as version of this library def passing(): pass def failing(): raise AssertionError('This is a failing keyword from module library') def logging(): print 'Hello from module library' print '*WARN* ...
[ [ 14, 0, 0.0185, 0.0185, 0, 0.66, 0, 305, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.037, 0.0185, 0, 0.66, 0.0588, 162, 1, 0, 0, 0, 0, 3, 0 ], [ 2, 0, 0.1019, 0.037, 0, 0.66...
[ "ROBOT_LIBRARY_SCOPE = 'Test Suite' # this should be ignored", "__version__ = 'test' # this should be used as version of this library", "def passing():\n pass", "def failing():\n raise AssertionError('This is a failing keyword from module library')", "def logging():\n print('Hello from module lib...
import os import re from robot import utils from robot.result.resultbuilder import ExecutionResultBuilder from robot.result.executionresult import Result from robot.result.testsuite import TestSuite from robot.result.testcase import TestCase from robot.result.keyword import Keyword from robot.libraries.BuiltIn import ...
[ [ 1, 0, 0.0047, 0.0047, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0095, 0.0047, 0, 0.66, 0.0625, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 1, 0, 0.019, 0.0047, 0, 0...
[ "import os", "import re", "from robot import utils", "from robot.result.resultbuilder import ExecutionResultBuilder", "from robot.result.executionresult import Result", "from robot.result.testsuite import TestSuite", "from robot.result.testcase import TestCase", "from robot.result.keyword import Keywo...
message_list = [ u'Circle is 360\u00B0', u'Hyv\u00E4\u00E4 \u00FC\u00F6t\u00E4', u'\u0989\u09C4 \u09F0 \u09FA \u099F \u09EB \u09EA \u09B9' ] message1 = message_list[0] message2 = message_list[1] message3 = message_list[2] messages = ', '.join(message_list) sect = unichr(167) auml = unic...
[ [ 14, 0, 0.1333, 0.2, 0, 0.66, 0, 656, 0, 0, 0, 0, 0, 5, 0 ], [ 14, 0, 0.3333, 0.0667, 0, 0.66, 0.1111, 880, 6, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.4, 0.0667, 0, 0.66, ...
[ "message_list = [ u'Circle is 360\\u00B0',\n u'Hyv\\u00E4\\u00E4 \\u00FC\\u00F6t\\u00E4',\n u'\\u0989\\u09C4 \\u09F0 \\u09FA \\u099F \\u09EB \\u09EA \\u09B9' ]", "message1 = message_list[0]", "message2 = message_list[1]", "message3 = message_list[2]", "messages = ', '.join(messag...
from os.path import abspath, dirname, join import os import tempfile import robot __all__ = ['ROBOTPATH', 'JAVATEMPDIR', 'ROBOT_VERSION', 'DATADIR', 'WINDOWS'] ROBOTPATH = dirname(abspath(robot.__file__)) JAVATEMPDIR = tempfile.gettempdir() # Used to be different on OSX and elsewhere ROBOT_VERSION = robot.version.get...
[ [ 1, 0, 0.0833, 0.0833, 0, 0.66, 0, 79, 0, 3, 0, 0, 79, 0, 0 ], [ 1, 0, 0.1667, 0.0833, 0, 0.66, 0.1111, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.25, 0.0833, 0, 0.66...
[ "from os.path import abspath, dirname, join", "import os", "import tempfile", "import robot", "__all__ = ['ROBOTPATH', 'JAVATEMPDIR', 'ROBOT_VERSION', 'DATADIR', 'WINDOWS']", "ROBOTPATH = dirname(abspath(robot.__file__))", "JAVATEMPDIR = tempfile.gettempdir() # Used to be different on OSX and elsewhere"...
import os import sys from stat import S_IREAD, S_IWRITE class TestHelper: def set_read_only(self, path): os.chmod(path, S_IREAD) def set_read_write(self, path): os.chmod(path, S_IREAD | S_IWRITE) def get_output_name(self, *datasources): if not datasources: raise Runt...
[ [ 1, 0, 0.0323, 0.0323, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0645, 0.0323, 0, 0.66, 0.3333, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.0968, 0.0323, 0, ...
[ "import os", "import sys", "from stat import S_IREAD, S_IWRITE", "class TestHelper:\n\n def set_read_only(self, path):\n os.chmod(path, S_IREAD)\n\n def set_read_write(self, path):\n os.chmod(path, S_IREAD | S_IWRITE)", " def set_read_only(self, path):\n os.chmod(path, S_IREAD)...
#!/usr/bin/env python """Script to generate atest runners based on data files. Usage: %s path/to/data.file """ from __future__ import with_statement from os.path import abspath, basename, dirname, exists, join import os import sys if len(sys.argv) != 2: print __doc__ % basename(sys.argv[0]) sys.exit(1) IN...
[ [ 8, 0, 0.09, 0.08, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.16, 0.02, 0, 0.66, 0.1111, 777, 0, 1, 0, 0, 777, 0, 0 ], [ 1, 0, 0.18, 0.02, 0, 0.66, 0.2222...
[ "\"\"\"Script to generate atest runners based on data files.\n\nUsage: %s path/to/data.file\n\"\"\"", "from __future__ import with_statement", "from os.path import abspath, basename, dirname, exists, join", "import os", "import sys", "if len(sys.argv) != 2:\n print(__doc__ % basename(sys.argv[0]))\n ...
#!/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...
[ [ 14, 0, 0.3509, 0.5088, 0, 0.66, 0, 952, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.614, 0.0058, 0, 0.66, 0.1, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.6199, 0.0058, 0, 0.66,...
[ "USAGE = \"\"\"robot.libdoc -- Robot Framework library documentation generator\n\nVersion: <VERSION>\n\nUsage: python -m robot.libdoc [options] library output_file\n or: python -m robot.libdoc [options] library list|show|version [names]\n\nLibdoc tool can generate keyword documentation in HTML and XML formats ...
# 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 applic...
[ [ 1, 0, 0.5172, 0.0345, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.5517, 0.0345, 0, 0.66, 0.3333, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.5862, 0.0345, 0, ...
[ "import os", "import sys", "from java.lang import String", "if sys.version_info[:3] < (2, 5, 2):\n os._orig_listdir = os.listdir\n def listdir(path):\n items = os._orig_listdir(path)\n if isinstance(path, unicode):\n items = [unicode(String(i).toString()) for i in items]\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.0476, 0.0032, 0, 0.66, 0, 777, 0, 1, 0, 0, 777, 0, 0 ], [ 1, 0, 0.054, 0.0032, 0, 0.66, 0.0476, 735, 0, 1, 0, 0, 735, 0, 0 ], [ 1, 0, 0.0571, 0.0032, 0, 0...
[ "from __future__ import with_statement", "from robot import utils", "from robot.errors import DataError", "from outputcapture import OutputCapturer", "from runkwregister import RUN_KW_REGISTER", "from keywords import Keywords, Keyword", "from arguments import (PythonKeywordArguments, JavaKeywordArgument...
# 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...
[ [ 3, 0, 0.3668, 0.5761, 0, 0.66, 0, 239, 0, 17, 0, 0, 186, 0, 18 ], [ 14, 1, 0.087, 0.0054, 1, 0.6, 0, 1, 1, 0, 0, 0, 0, 9, 0 ], [ 14, 1, 0.0951, 0.0109, 1, 0.6, ...
[ "class SuiteRunErrors(object):\n _NO_ERROR = None\n _exit_on_failure_error = ('Critical failure occurred and ExitOnFailure '\n 'option is in use')\n _exit_on_fatal_error = 'Test execution is stopped due to a fatal error'\n _parent_suite_init_error = 'Initialization of the pa...
# 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.2542, 0.0169, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.2712, 0.0169, 0, 0.66, 0.5, 83, 0, 1, 0, 0, 83, 0, 0 ], [ 3, 0, 0.661, 0.6949, 0, 0.66, ...
[ "import sys", "import threading", "class Thread(threading.Thread):\n \"\"\"A subclass of threading.Thread, with a stop() method.\n\n Original version posted by Connelly Barnes to python-list and available at\n http://mail.python.org/pipermail/python-list/2004-May/219465.html\n\n This version mainly ...
# 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.3659, 0.0244, 0, 0.66, 0, 621, 0, 4, 0, 0, 621, 0, 0 ], [ 1, 0, 0.4146, 0.0244, 0, 0.66, 0.5, 299, 0, 1, 0, 0, 299, 0, 0 ], [ 3, 0, 0.7439, 0.5366, 0, 0.6...
[ "from signal import setitimer, signal, SIGALRM, ITIMER_REAL", "from robot.errors import TimeoutError", "class Timeout(object):\n\n def __init__(self, timeout, error):\n self._timeout = timeout\n self._error = error\n\n def execute(self, runnable):\n self._start_timer()", " def __...
# 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.2143, 0.0143, 0, 0.66, 0, 182, 0, 1, 0, 0, 182, 0, 0 ], [ 1, 0, 0.2286, 0.0143, 0, 0.66, 0.2, 260, 0, 1, 0, 0, 260, 0, 0 ], [ 1, 0, 0.2429, 0.0143, 0, 0.6...
[ "import ctypes", "import thread", "import time", "from threading import Timer", "from robot.errors import TimeoutError", "class Timeout(object):\n\n def __init__(self, timeout, timeout_error):\n self._runner_thread_id = thread.get_ident()\n self._timeout_error = self._create_timeout_error...
# 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.1172, 0.0078, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.125, 0.0078, 0, 0.66, 0.2, 609, 0, 1, 0, 0, 609, 0, 0 ], [ 1, 0, 0.1406, 0.0078, 0, 0.66...
[ "import sys", "from StringIO import StringIO", "from robot.output import LOGGER", "class OutputCapturer:\n\n def __init__(self, library_import=False):\n if library_import:\n LOGGER.enable_library_import_logging()\n self._library_import = library_import\n self._python_out = _...
# 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 la...
[ [ 1, 0, 0.2319, 0.0145, 0, 0.66, 0, 458, 0, 2, 0, 0, 458, 0, 0 ], [ 1, 0, 0.2464, 0.0145, 0, 0.66, 0.5, 164, 0, 1, 0, 0, 164, 0, 0 ], [ 3, 0, 0.6449, 0.7246, 0, 0.6...
[ "from fixture import Setup, Teardown", "from timeouts import TestTimeout", "class DefaultValues(object):\n\n def __init__(self, settings, parent_default_values=None):\n self._parent = parent_default_values\n self._setup = settings.test_setup\n self._teardown = settings.test_teardown\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.031, 0.0021, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.0331, 0.0021, 0, 0.66, 0.0455, 878, 0, 1, 0, 0, 878, 0, 0 ], [ 1, 0, 0.0351, 0.0021, 0, 0...
[ "import sys", "import inspect", "from array import ArrayType", "from functools import partial", "from robot.errors import DataError, FrameworkError", "from robot.variables import is_list_var, is_scalar_var", "from robot import utils", "if utils.is_jython:\n from javaargcoercer import ArgumentCoerce...
# 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.32, 0.02, 0, 0.66, 0, 878, 0, 1, 0, 0, 878, 0, 0 ], [ 1, 0, 0.36, 0.02, 0, 0.66, 0.3333, 735, 0, 1, 0, 0, 735, 0, 0 ], [ 3, 0, 0.68, 0.54, 0, 0.66, 0....
[ "import inspect", "from robot import utils", "class _RunKeywordRegister:\n\n def __init__(self):\n self._libs = {}\n\n def register_run_keyword(self, libname, keyword, args_to_process=None):\n if args_to_process is None:\n args_to_process = self._get_args_from_method(keyword)", ...
# 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.3776, 0.1633, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.4898, 0.0204, 0, 0.66, 0.1429, 722, 0, 1, 0, 0, 722, 0, 0 ], [ 1, 0, 0.5102, 0.0204, 0, 0.66...
[ "\"\"\"Implements the core test execution logic.\n\nThe code in this package is in many places suboptimal and likely to change in\nRF 2.8. External code should use this package with care.\n\nCurrently, the main entry point is the :func:`~.model.TestSuite` factory\nmethod.\n\"\"\"", "from .model import TestSuite",...
# 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.1429, 0.0095, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.1524, 0.0095, 0, 0.66, 0.3333, 100, 0, 7, 0, 0, 100, 0, 0 ], [ 3, 0, 0.2476, 0.1429, 0, ...
[ "import sys", "from java.lang import Byte, Short, Integer, Long, Boolean, Float, Double", "class ArgumentCoercer:\n\n def __init__(self, signatures):\n types = self._parse_types(signatures)\n self._coercers = [_CoercionFunction(t, i+1) for i, t in types]\n\n def _parse_types(self, signatures...
# 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.1034, 0.0069, 0, 0.66, 0, 299, 0, 1, 0, 0, 299, 0, 0 ], [ 1, 0, 0.1103, 0.0069, 0, 0.66, 0.25, 595, 0, 1, 0, 0, 595, 0, 0 ], [ 3, 0, 0.2034, 0.1517, 0, 0....
[ "from robot.errors import DataError", "from robot.variables import GLOBAL_VARIABLES", "class ExecutionContexts(object):\n\n def __init__(self):\n self._contexts = []\n\n @property\n def current(self):\n return self._contexts[-1] if self._contexts else None", " def __init__(self):\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.1163, 0.0078, 0, 0.66, 0, 79, 0, 1, 0, 0, 79, 0, 0 ], [ 1, 0, 0.124, 0.0078, 0, 0.66, 0.125, 739, 0, 1, 0, 0, 739, 0, 0 ], [ 1, 0, 0.1395, 0.0078, 0, 0.66...
[ "import os.path", "import copy", "from robot.output import LOGGER", "from robot.parsing import ResourceFile", "from robot.errors import FrameworkError", "from robot import utils", "from .testlibraries import TestLibrary", "class Importer(object):\n\n def __init__(self):\n self._library_cache...
# 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.0416, 0.0028, 0, 0.66, 0, 777, 0, 1, 0, 0, 777, 0, 0 ], [ 1, 0, 0.0443, 0.0028, 0, 0.66, 0.0588, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0471, 0.0028, 0, ...
[ "from __future__ import with_statement", "import os", "import inspect", "from robot import utils", "from robot.errors import DataError", "from robot.common import BaseLibrary", "from robot.output import LOGGER", "from handlers import Handler, InitHandler, DynamicHandler", "from outputcapture import ...
# 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...
[ [ 3, 0, 0.5597, 0.8881, 0, 0.66, 0, 73, 0, 15, 0, 0, 0, 0, 29 ], [ 2, 1, 0.1828, 0.1045, 1, 0.28, 0, 555, 0, 3, 0, 0, 0, 0, 2 ], [ 14, 2, 0.1418, 0.0075, 2, 0.16, ...
[ "class VariableSplitter:\n\n def __init__(self, string, identifiers):\n self.identifier = None\n self.base = None\n self.index = None\n self.start = -1\n self.end = -1", " def __init__(self, string, identifiers):\n self.identifier = None\n self.base = None\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.092, 0.0061, 0, 0.66, 0, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 1, 0, 0.1043, 0.0061, 0, 0.66, 0.1667, 299, 0, 1, 0, 0, 299, 0, 0 ], [ 1, 0, 0.1104, 0.0061, 0, 0...
[ "import re", "from robot.errors import DataError", "from robot.utils import safe_repr, format_assign_message, get_error_message", "from .isvar import is_list_var, is_scalar_var", "class VariableAssigner(object):\n _valid_extended_attr = re.compile('^[_a-zA-Z]\\w*$')\n\n def __init__(self, assign):\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...
[ [ 2, 0, 0.6379, 0.2069, 0, 0.66, 0, 481, 0, 1, 1, 0, 0, 0, 4 ], [ 4, 1, 0.6034, 0.069, 1, 0.91, 0, 0, 0, 0, 0, 0, 0, 0, 1 ], [ 13, 2, 0.6207, 0.0345, 2, 0.43, 0...
[ "def is_var(string):\n if not isinstance(string, basestring):\n return False\n length = len(string)\n return length > 3 and string[0] in ['$','@'] and string.rfind('{') == 1 \\\n and string.find('}') == length - 1", " if not isinstance(string, basestring):\n return False", "...
# 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.2329, 0.0685, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.2877, 0.0137, 0, 0.66, 0.0909, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.3014, 0.0137, 0, 0.66...
[ "\"\"\"Implements handling and resolving of variables.\n\nThis package is likely to change radically in RF 2.8. External code should use\nfunctionality provided directly by this package with care.\n\"\"\"", "import os", "import tempfile", "from robot import utils", "from robot.output import LOGGER", "from...
# 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.3, 0.02, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.34, 0.02, 0, 0.66, 0.0833, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.36, 0.02, 0, 0.66, 0.1667,...
[ "\"\"\"Module that adds directories needed by Robot to sys.path when imported.\"\"\"", "import os", "import sys", "import fnmatch", "from os.path import abspath, dirname, join", "ROBOTDIR = dirname(abspath(__file__))", "def add_path(path, end=False):\n if not end:\n remove_path(path)\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.2419, 0.0161, 0, 0.66, 0, 808, 0, 1, 0, 0, 808, 0, 0 ], [ 3, 0, 0.6452, 0.7258, 0, 0.66, 1, 140, 0, 7, 0, 0, 186, 0, 13 ], [ 14, 1, 0.3065, 0.0161, 1, 0.8...
[ "import itertools", "class RowSplitter(object):\n _comment_mark = '#'\n _empty_cell_escape = '${EMPTY}'\n _line_continuation = '...'\n\n def __init__(self, cols=8):\n self._cols = cols", " _comment_mark = '#'", " _empty_cell_escape = '${EMPTY}'", " _line_continuation = '...'", ...
# 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.0987, 0.0066, 0, 0.66, 0, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 1, 0, 0.1118, 0.0066, 0, 0.66, 0.1429, 396, 0, 2, 0, 0, 396, 0, 0 ], [ 1, 0, 0.1184, 0.0066, 0, ...
[ "import re", "from .aligners import FirstColumnAligner, ColumnAligner", "from .dataextractor import DataExtractor", "from .rowsplitter import RowSplitter", "class _DataFileFormatter(object):\n _consecutive_whitespace = re.compile('\\s{2,}')\n\n def __init__(self, column_count):\n self._splitter...
# 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...
[ [ 14, 0, 0.5857, 0.7571, 0, 0.66, 0, 986, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.9857, 0.0429, 0, 0.66, 1, 232, 1, 0, 0, 0, 0, 3, 0 ] ]
[ "TEMPLATE_START = \"\"\"\\\n<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\n<style type=\"text/css\">\nhtml {\n font-family: Arial,Helvetica,sans-serif;", "TEMPLATE_END = \"\"\"</body>\n</html>\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...
[ [ 3, 0, 0.6429, 0.7321, 0, 0.66, 0, 225, 0, 7, 0, 0, 186, 0, 15 ], [ 8, 1, 0.3036, 0.0179, 1, 0.92, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 2, 1, 0.3571, 0.0536, 1, 0.92, ...
[ "class DataExtractor(object):\n \"\"\"Transforms table of a parsed test data file into a list of rows.\"\"\"\n\n def __init__(self, want_name_on_first_row=None):\n self._want_name_on_first_row = want_name_on_first_row or \\\n (lambda t,n: False)\n\n def rows_fro...
# 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.7955, 0.2727, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 1, 0.0455, 0, 0.66, 1, 962, 0, 1, 0, 0, 962, 0, 0 ] ]
[ "\"\"\"Implements writing of parsed test data to files.\n\nThis functionality is used by :py:meth:`robot.parsing.model.TestCaseFile.save`.\n\nThis package is considered stable.\n\"\"\"", "from .datafilewriter import DataFileWriter" ]
# 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.1163, 0.0078, 0, 0.66, 0, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 1, 0, 0.1318, 0.0078, 0, 0.66, 0.125, 735, 0, 1, 0, 0, 735, 0, 0 ], [ 1, 0, 0.1473, 0.0078, 0, 0...
[ "import re", "from robot import utils", "from .formatters import _DataFileFormatter", "class HtmlFormatter(_DataFileFormatter):\n\n def _format_row(self, row, table=None):\n row = self._pad(self._escape_consecutive_whitespace(row), table)\n if self._is_documentation_row(row):\n ret...
# 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.123, 0.0082, 0, 0.66, 0, 777, 0, 1, 0, 0, 777, 0, 0 ], [ 1, 0, 0.1311, 0.0082, 0, 0.66, 0.2, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.1475, 0.0082, 0, 0.66...
[ "from __future__ import with_statement", "import os", "from robot.errors import DataError", "from .filewriters import FileWriter", "class DataFileWriter(object):\n \"\"\"Object to write parsed test data file objects back to disk.\"\"\"\n\n def __init__(self, **options):\n \"\"\"\n :param...
# 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.2778, 0.0185, 0, 0.66, 0, 701, 0, 1, 0, 0, 701, 0, 0 ], [ 3, 0, 0.4537, 0.2593, 0, 0.66, 0.3333, 255, 0, 3, 0, 0, 186, 0, 4 ], [ 2, 1, 0.3796, 0.037, 1, 0...
[ "from .dataextractor import DataExtractor", "class _Aligner(object):\n\n def __init__(self, widths):\n self._widths = widths\n\n def align_rows(self, rows):\n return [self.align_row(r) for r in rows]", " def __init__(self, widths):\n self._widths = widths", " self._widths ...
# 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.1149, 0.0338, 0, 0.66, 0, 0, 0, 1, 0, 0, 0, 0, 0 ], [ 1, 1, 0.1081, 0.0068, 1, 0.75, 0, 312, 0, 1, 0, 0, 312, 0, 0 ], [ 14, 1, 0.1284, 0.0068, 1, 0.75, ...
[ "try:\n import csv\nexcept ImportError:\n # csv module is missing from IronPython < 2.7.1\n csv = None", " import csv", " csv = None", "from robot import utils", "from .formatters import TsvFormatter, TxtFormatter, PipeFormatter", "from .htmlformatter import HtmlFormatter", "from .htmltem...
# 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.2632, 0.0175, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.2807, 0.0175, 0, 0.66, 0.0909, 220, 0, 1, 0, 0, 220, 0, 0 ], [ 1, 0, 0.2982, 0.0175, 0, ...
[ "import sys", "import codecs", "from contextlib import contextmanager", "from .encodingsniffer import get_output_encoding, get_system_encoding", "from .unic import unic", "OUTPUT_ENCODING = get_output_encoding()", "SYSTEM_ENCODING = get_system_encoding()", "def decode_output(string):\n \"\"\"Decode...
# 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.1765, 0.0118, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.1882, 0.0118, 0, 0.66, 0.0833, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 14, 0, 0.2235, 0.0118, 0, ...
[ "import sys", "import os", "UNIXY = os.sep == '/'", "JYTHON = sys.platform.startswith('java')", "if UNIXY:\n DEFAULT_SYSTEM_ENCODING = 'UTF-8'\n DEFAULT_OUTPUT_ENCODING = 'UTF-8'\nelse:\n DEFAULT_SYSTEM_ENCODING = 'cp1252'\n DEFAULT_OUTPUT_ENCODING = 'cp437'", " DEFAULT_SYSTEM_ENCODING = 'U...
# 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.0758, 0.0051, 0, 0.66, 0, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 1, 0, 0.0808, 0.0051, 0, 0.66, 0.0769, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.0859, 0.0051, 0, ...
[ "import re", "import sys", "import os.path", "import traceback", "from robot.errors import RobotError", "from .unic import unic", "RERAISED_EXCEPTIONS = (KeyboardInterrupt, SystemExit, MemoryError)", "if sys.platform.startswith('java'):\n from java.io import StringWriter, PrintWriter\n from java...
# 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.3, 0.02, 0, 0.66, 0, 177, 0, 1, 0, 0, 177, 0, 0 ], [ 1, 0, 0.32, 0.02, 0, 0.66, 0.3333, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 2, 0, 0.39, 0.04, 0, 0.66, 0.6...
[ "import base64", "import sys", "def compress_text(text):\n return base64.b64encode(_compress(text.encode('UTF-8')))", " return base64.b64encode(_compress(text.encode('UTF-8')))", "if not sys.platform.startswith('java'):\n\n import zlib\n\n def _compress(text):\n return zlib.compress(text,...
# 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.1402, 0.0093, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.1495, 0.0093, 0, 0.66, 0.125, 614, 0, 1, 0, 0, 614, 0, 0 ], [ 1, 0, 0.1682, 0.0093, 0, 0...
[ "import os", "import urllib", "from .encoding import decode_from_system", "if os.sep == '\\\\':\n CASE_INSENSITIVE_FILESYSTEM = True\nelse:\n try:\n CASE_INSENSITIVE_FILESYSTEM = os.listdir('/tmp') == os.listdir('/TMP')\n except OSError:\n CASE_INSENSITIVE_FILESYSTEM = False", " CA...
# 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.15, 0.01, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.17, 0.01, 0, 0.66, 0.2, 420, 0, 3, 0, 0, 420, 0, 0 ], [ 3, 0, 0.455, 0.52, 0, 0.66, 0.4,...
[ "import os", "from .markuputils import html_escape, xml_escape, attribute_escape", "class _MarkupWriter(object):\n\n def __init__(self, output, line_separator=os.linesep, encoding=None):\n \"\"\"\n :param output: Either an opened, file like object, or a path to the\n desired output f...
# 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.15, 0.01, 0, 0.66, 0, 992, 0, 1, 0, 0, 992, 0, 0 ], [ 1, 0, 0.16, 0.01, 0, 0.66, 0.0625, 733, 0, 1, 0, 0, 733, 0, 0 ], [ 1, 0, 0.17, 0.01, 0, 0.66, 0....
[ "from unic import unic", "from misc import seq2str2", "from charwidth import get_char_width", "_MAX_ASSIGN_LENGTH = 200", "_MAX_ERROR_LINES = 40", "_MAX_ERROR_LINE_LENGTH = 78", "_ERROR_CUT_EXPLN = (' [ Message content over the limit has been removed. ]')", "def cut_long_message(msg):\n lines = ...
# 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.1724, 0.0115, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.1839, 0.0115, 0, 0.66, 0.2, 609, 0, 1, 0, 0, 609, 0, 0 ], [ 14, 0, 0.2184, 0.0115, 0, 0....
[ "import sys", "from StringIO import StringIO", "_IRONPYTHON = sys.platform == 'cli'", "_ERROR = 'No valid ElementTree XML parser module found'", "if not _IRONPYTHON:\n try:\n from xml.etree import cElementTree as ET\n except ImportError:\n try:\n import cElementTree as ET\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.0384, 0.0026, 0, 0.66, 0, 654, 0, 1, 0, 0, 654, 0, 0 ], [ 1, 0, 0.0409, 0.0026, 0, 0.66, 0.0385, 426, 0, 1, 0, 0, 426, 0, 0 ], [ 1, 0, 0.046, 0.0026, 0, 0...
[ "import time", "import datetime", "from .normalizing import normalize", "from .misc import plural_or_not", "def _get_timetuple(epoch_secs=None):\n if epoch_secs is None: # can also be 0 (at least in unit tests)\n epoch_secs = time.time()\n secs, millis = _float_secs_to_secs_and_millis(epoch_se...
# 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.2273, 0.0152, 0, 0.66, 0, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 14, 0, 0.2727, 0.0152, 0, 0.66, 0.25, 44, 3, 1, 0, 0, 821, 10, 1 ], [ 14, 0, 0.2879, 0.0152, 0, ...
[ "import re", "_ESCAPE_RE = re.compile(r'(\\\\+)([^\\\\]{0,2})') # escapes and nextchars", "_SEQS_TO_BE_ESCAPED = ('\\\\', '${', '@{', '%{', '&{', '*{' , '=')", "def escape(item):\n if not isinstance(item, basestring):\n return item\n for seq in _SEQS_TO_BE_ESCAPED:\n if seq in item:\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.1442, 0.0096, 0, 0.66, 0, 878, 0, 1, 0, 0, 878, 0, 0 ], [ 1, 0, 0.1635, 0.0096, 0, 0.66, 0.125, 992, 0, 1, 0, 0, 992, 0, 0 ], [ 2, 0, 0.3173, 0.2596, 0, 0...
[ "import inspect", "from .unic import unic", "def printable_name(string, code_style=False):\n \"\"\"Generates and returns printable name from the given string.\n\n Examples:\n 'simple' -> 'Simple'\n 'name with spaces' -> 'Name With Spaces'\n 'more spaces' -> 'More Spaces'\n 'Case...
# 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.163, 0.1159, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 2, 0, 0.2536, 0.0507, 0, 0.66, 0.25, 601, 0, 1, 1, 0, 0, 0, 3 ], [ 14, 1, 0.2391, 0.0072, 1, 0.26, ...
[ "\"\"\"A module to handle different character widths on the console.\n\nSome East Asian characters have width of two on console, and combining\ncharacters themselves take no extra space.\n\nSee issue 604 [1] for more details about East Asian characters. The issue also\ncontains `generate_wild_chars.py` script that ...
# 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.2, 0.0133, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.2133, 0.0133, 0, 0.66, 0.1, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.24, 0.0133, 0, 0.66, ...
[ "import os", "import sys", "from .encoding import decode_from_system, encode_to_system", "from .unic import unic", "def get_env_var(name, default=None):\n value = _get_env_var_from_java(name)\n if value is not None:\n return value\n try:\n value = os.environ[_encode(name)]\n except...
# 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.3191, 0.0213, 0, 0.66, 0, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 1, 0, 0.3617, 0.0213, 0, 0.66, 0.1, 715, 0, 2, 0, 0, 715, 0, 0 ], [ 14, 0, 0.4255, 0.0213, 0, 0....
[ "import re", "from .htmlformatters import LinkFormatter, HtmlFormatter", "_format_url = LinkFormatter().format_url", "_generic_escapes = (('&', '&amp;'), ('<', '&lt;'), ('>', '&gt;'))", "_attribute_escapes = _generic_escapes \\\n + (('\"', '&quot;'), ('\\n', '&#10;'), ('\\r', '&#13;'), ('\\t', '&#09...
# 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.2027, 0.0135, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 4, 0, 0.4595, 0.2568, 0, 0.66, 0.2, 0, 3, 0, 0, 0, 0, 0, 9 ], [ 1, 1, 0.3514, 0.0135, 1, 0.8, ...
[ "import sys", "if sys.platform.startswith('java'):\n from java.lang import Object, Class\n def unic(item, *args):\n # http://bugs.jython.org/issue1564\n if isinstance(item, Object) and not isinstance(item, Class):\n try:\n item = item.toString() # http://bugs.jython....