code
stringlengths
1
1.49M
vector
listlengths
0
7.38k
snippet
listlengths
0
7.38k
#! /usr/bin/python import roslib; roslib.load_manifest('rfid_people_following') roslib.load_manifest('std_srvs') roslib.load_manifest('explore_hrl') roslib.load_manifest('move_base_msgs') roslib.load_manifest('actionlib') roslib.load_manifest('geometry_msgs') roslib.load_manifest('tf') roslib.load_manifest('hrl_rfid'...
[ [ 1, 0, 0.0104, 0.0035, 0, 0.66, 0, 796, 0, 1, 0, 0, 796, 0, 0 ], [ 8, 0, 0.0138, 0.0035, 0, 0.66, 0.0303, 630, 3, 1, 0, 0, 0, 0, 1 ], [ 8, 0, 0.0173, 0.0035, 0, 0....
[ "import roslib;", "roslib.load_manifest('rfid_people_following')", "roslib.load_manifest('std_srvs')", "roslib.load_manifest('explore_hrl')", "roslib.load_manifest('move_base_msgs')", "roslib.load_manifest('actionlib')", "roslib.load_manifest('geometry_msgs')", "roslib.load_manifest('tf')", "roslib....
#!/usr/bin/python import roslib roslib.load_manifest('explore_hrl') import rospy import actionlib import explore_hrl.msg def explore_client( radius ): client = actionlib.SimpleActionClient('explore', explore_hrl.msg.ExploreAction) # Waits until the action server has started up and started # listening fo...
[ [ 1, 0, 0.0577, 0.0192, 0, 0.66, 0, 796, 0, 1, 0, 0, 796, 0, 0 ], [ 8, 0, 0.0769, 0.0192, 0, 0.66, 0.1667, 630, 3, 1, 0, 0, 0, 0, 1 ], [ 1, 0, 0.0962, 0.0192, 0, 0....
[ "import roslib", "roslib.load_manifest('explore_hrl')", "import rospy", "import actionlib", "import explore_hrl.msg", "def explore_client( radius ):\n client = actionlib.SimpleActionClient('explore', explore_hrl.msg.ExploreAction)\n\n # Waits until the action server has started up and started\n #...
#!/usr/bin/python2.6 # # Copyright 2011 Google Inc. All Rights Reserved. # # 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...
[ [ 8, 0, 0.065, 0.0036, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0722, 0.0036, 0, 0.66, 0.0385, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0794, 0.0036, 0, 0.66, ...
[ "\"\"\"Build the BITE Extension.\"\"\"", "__author__ = 'ralphj@google.com (Julie Ralph)'", "import logging", "import optparse", "import os", "import shutil", "import subprocess", "import urllib", "import zipfile", "CHECKOUT_ACE_COMMAND = ('git clone git://github.com/ajaxorg/ace.git')", "CHECKOUT...
#==================================================================== # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you ...
[ [ 1, 0, 0.3514, 0.0135, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.3649, 0.0135, 0, 0.66, 0.1111, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 1, 0, 0.3784, 0.0135, 0, ...
[ "import os", "import re", "import tempfile", "import shutil", "ignore_pattern = re.compile('^(.svn|target|bin|classes)')", "java_pattern = re.compile('^.*\\.java')", "annot_pattern = re.compile('import org\\.apache\\.http\\.annotation\\.')", "def process_dir(dir):\n files = os.listdir(dir)\n for...
#!/usr/bin/python2.6 # # Copyright 2011 Google Inc. All Rights Reserved. # # 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...
[ [ 8, 0, 0.065, 0.0036, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0722, 0.0036, 0, 0.66, 0.0385, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0794, 0.0036, 0, 0.66, ...
[ "\"\"\"Build the BITE Extension.\"\"\"", "__author__ = 'ralphj@google.com (Julie Ralph)'", "import logging", "import optparse", "import os", "import shutil", "import subprocess", "import urllib", "import zipfile", "CHECKOUT_ACE_COMMAND = ('git clone git://github.com/ajaxorg/ace.git')", "CHECKOUT...
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')" ]
#!/usr/bin/env python import fileinput import os import sys import robot from robot.result.jsparser import create_datamodel_from BASEDIR = os.path.dirname(__file__) def run_robot(outputdirectory, testdata, loglevel='INFO'): robot.run(testdata, log='NONE', report='NONE', tagstatlink=['force:http://g...
[ [ 1, 0, 0.0612, 0.0204, 0, 0.66, 0, 286, 0, 1, 0, 0, 286, 0, 0 ], [ 1, 0, 0.0816, 0.0204, 0, 0.66, 0.1, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.102, 0.0204, 0, 0.66...
[ "import fileinput", "import os", "import sys", "import robot", "from robot.result.jsparser import create_datamodel_from", "BASEDIR = os.path.dirname(__file__)", "def run_robot(outputdirectory, testdata, loglevel='INFO'):\n robot.run(testdata, log='NONE', report='NONE',\n tagstatlink=['fo...
#!/usr/bin/env python import sys import os from distutils.core import setup import robot_postinstall execfile(os.path.join(os.path.dirname(__file__),'src','robot','version.py')) # Maximum width in Windows installer seems to be 70 characters -------| DESCRIPTION = """ Robot Framework is a generic test automation fra...
[ [ 1, 0, 0.0385, 0.0128, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.0513, 0.0128, 0, 0.66, 0.0909, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0641, 0.0128, 0, ...
[ "import sys", "import os", "from distutils.core import setup", "import robot_postinstall", "execfile(os.path.join(os.path.dirname(__file__),'src','robot','version.py'))", "DESCRIPTION = \"\"\"\nRobot Framework is a generic test automation framework for acceptance\ntesting and acceptance test-driven develo...
#!/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.1062, 0.1681, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.2035, 0.0088, 0, 0.66, 0.0667, 621, 0, 1, 0, 0, 621, 0, 0 ], [ 1, 0, 0.2124, 0.0088, 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 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...
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 ...
[ [ 1, 0, 0.0159, 0.0159, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0317, 0.0159, 0, 0.66, 0.0556, 516, 0, 1, 0, 0, 516, 0, 0 ], [ 14, 0, 0.0635, 0.0159, 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\n in attrs['metadata'].items(...
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 from robot.libraries.BuiltIn import BuiltIn 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 startTest(self, name, attrs): self....
[ [ 1, 0, 0.0101, 0.0101, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0202, 0.0101, 0, 0.66, 0.125, 516, 0, 1, 0, 0, 516, 0, 0 ], [ 1, 0, 0.0404, 0.0101, 0, 0...
[ "import os", "import tempfile", "from robot.libraries.BuiltIn import BuiltIn", "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.outfile = open(outpath, 'w')\n\n def startTest(self, nam...
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_ATTRIBUTES = ['doc', 'starttime'] END_ATTRIBUTES = START_ATTRIBUTES + ['endtime', 'elapsedtime', 'status'] EXPECTED_TYPES = {'elapsedtime': (int, long), 'tags': list, 'args'...
[ [ 1, 0, 0.0192, 0.0192, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0385, 0.0192, 0, 0.66, 0.0714, 516, 0, 1, 0, 0, 516, 0, 0 ], [ 14, 0, 0.0962, 0.0192, 0, ...
[ "import os", "import tempfile", "ROBOT_LISTENER_API_VERSION = '2'", "OUTFILE = open(os.path.join(tempfile.gettempdir(), 'listener_attrs.txt'), 'w')", "START_ATTRIBUTES = ['doc', 'starttime']", "END_ATTRIBUTES = START_ATTRIBUTES + ['endtime', 'elapsedtime', 'status']", "EXPECTED_TYPES = {'elapsedtime': (...
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.13, 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 varible file in PYTHONPATH"
[ [ 14, 0, 1, 1, 0, 0.66, 0, 799, 1, 0, 0, 0, 0, 3, 0 ] ]
[ "PPATH_VARFILE = \"Variable from varible 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.83, 0, 124, 0, 3, 0, 0, 0, 0, 0 ], [ 2, 1, 0.2167, 0.0667, 1, 0.83, ...
[ "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.59, 0, 305, 1, 0, 0, 0, 0, 3, 0 ], [ 2, 1, 0.4583, 0.1667, 1, 0.59, 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.08, ...
[ "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.15, 0, 907, 0, 1, 0, 0, 0, 0, 0 ], [ 8, 2, 1, 0.25, 2, 0.89, 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\"\"\"" ]
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.86, 0, 374, 0, 2, 1, 0, 0, 0, 1 ], [ 8, 2, 0.5714, 0.1429, 2, 0.85, ...
[ "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.52, 0, 555, 0, 3, 0, 0, 0, 0, 0 ], [ 14, 2, 0.4444, 0.1111, 2, 0.45, 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.33, 0, 653, 0, 1, 1, 0, 0, 0, 0 ], [ 8, 2, 0.1667, 0.0278, 2, 0.28, 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'", " ...
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.83, 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.16, 0, 555, 0, 3, 0, 0, 0, 0, 0 ], [ 14, 2, 0.16, 0.04, 2, 0.2, 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.76, 0, 555, 0, 3, 0, 0, 0, 0, 0 ], [ 14, 2, 0.5, 0.125, 2, 0.08, 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.27,...
[ "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.67, 0, 555, 0, 3, 0, 0, 0, 0, 0 ], [ 14, 2, 0.125, 0.0312, 2, 0.12, 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.02, ...
[ "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.0982, 0.1534, 0, 0.66, 0.0769, 353, 0, 11, 0, 0, 0, 0, 0 ], [ 14, 1, 0.0307, 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.54, 0, 697, 0, 2, 1, 0, 0, 0, 3 ], [ 14, 2, 0.1176, 0.0294, 2, 0.31, ...
[ "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.82, 0, 99, 0, 1, 1, 0, 0, 0, 0 ], [ 13, 2, 0.3636, 0.0909, 2, 0.32, ...
[ "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.31, 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...
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.output import readers from robot.common import Statistics from robot.libraries.BuiltIn import BuiltIn class TestCheckerLibrary: def process_output(self, path): path = path.replace('/', os.sep) try: print "Processing output '%s'" ...
[ [ 1, 0, 0.0061, 0.0061, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0121, 0.0061, 0, 0.66, 0.1, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 1, 0, 0.0242, 0.0061, 0, 0.6...
[ "import os", "import re", "from robot import utils", "from robot.output import readers", "from robot.common import Statistics", "from robot.libraries.BuiltIn import BuiltIn", "class TestCheckerLibrary:\n\n def process_output(self, path):\n path = path.replace('/', os.sep)\n try:\n ...
import os.path import robot import tempfile __all__ = ['robotpath', 'javatempdir', 'robotversion'] robotpath = os.path.abspath(os.path.dirname(robot.__file__)) javatempdir = tempfile.gettempdir() # Used to be different on OSX and elsewhere robotversion = robot.version.get_version()
[ [ 1, 0, 0.1111, 0.1111, 0, 0.66, 0, 79, 0, 1, 0, 0, 79, 0, 0 ], [ 1, 0, 0.2222, 0.1111, 0, 0.66, 0.1667, 735, 0, 1, 0, 0, 735, 0, 0 ], [ 1, 0, 0.3333, 0.1111, 0, 0....
[ "import os.path", "import robot", "import tempfile", "__all__ = ['robotpath', 'javatempdir', 'robotversion']", "robotpath = os.path.abspath(os.path.dirname(robot.__file__))", "javatempdir = tempfile.gettempdir() # Used to be different on OSX and elsewhere", "robotversion = robot.version.get_version()" ]
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 xml.dom.minidom import parse def parse_xunit(path): return parse(path) def get_root_element_name(dom): return dom.documentElement.tagName def get_element_count_by_name(dom, name): return len(get_elements_by_name(dom, name)) def get_elements_by_name(dom, name): return dom.getElementsByTagName(na...
[ [ 1, 0, 0.0769, 0.0769, 0, 0.66, 0, 770, 0, 1, 0, 0, 770, 0, 0 ], [ 2, 0, 0.2692, 0.1538, 0, 0.66, 0.25, 889, 0, 1, 1, 0, 0, 0, 1 ], [ 13, 1, 0.3077, 0.0769, 1, 0.3...
[ "from xml.dom.minidom import parse", "def parse_xunit(path):\n return parse(path)", " return parse(path)", "def get_root_element_name(dom):\n return dom.documentElement.tagName", " return dom.documentElement.tagName", "def get_element_count_by_name(dom, name):\n return len(get_elements_by_n...
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 ...
[ [ 1, 0, 0.0233, 0.0233, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0465, 0.0233, 0, 0.66, 0.3333, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.0698, 0.0233, 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_IR...
#!/usr/bin/env python """Script to generate atest runners based on data files. Usage: %s path/to/data.file """ from __future__ import with_statement import sys, os if len(sys.argv) != 2: print __doc__ % os.path.basename(sys.argv[0]) sys.exit(1) inpath = os.path.abspath(sys.argv[1]) outpath = inpath.replac...
[ [ 8, 0, 0.0957, 0.0851, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1702, 0.0213, 0, 0.66, 0.125, 777, 0, 1, 0, 0, 777, 0, 0 ], [ 1, 0, 0.1915, 0.0213, 0, 0.66,...
[ "\"\"\"Script to generate atest runners based on data files.\n\nUsage: %s path/to/data.file\n\"\"\"", "from __future__ import with_statement", "import sys, os", "if len(sys.argv) != 2:\n print(__doc__ % os.path.basename(sys.argv[0]))\n sys.exit(1)", " print(__doc__ % os.path.basename(sys.argv[0]))...
# Copyright 2008-2011 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.0514, 0.0034, 0, 0.66, 0, 878, 0, 1, 0, 0, 878, 0, 0 ], [ 1, 0, 0.0548, 0.0034, 0, 0.66, 0.0455, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.0616, 0.0034, 0, ...
[ "import inspect", "import sys", "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, JavaKeywordArguments,\n ...
# Copyright 2008-2011 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.3649, 0.573, 0, 0.66, 0, 239, 0, 17, 0, 0, 186, 0, 18 ], [ 14, 1, 0.0865, 0.0054, 1, 0.37, 0, 1, 1, 0, 0, 0, 0, 9, 0 ], [ 14, 1, 0.0946, 0.0108, 1, 0.37, ...
[ "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-2011 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.1415, 0.0094, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.1509, 0.0094, 0, 0.66, 0.25, 609, 0, 1, 0, 0, 609, 0, 0 ], [ 3, 0, 0.2925, 0.2358, 0, 0....
[ "import sys", "from StringIO import StringIO", "class OutputCapturer:\n\n def __init__(self):\n self._python_out = _PythonCapturer(stdout=True)\n self._python_err = _PythonCapturer(stdout=False)\n self._java_out = _JavaCapturer(stdout=True)\n self._java_err = _JavaCapturer(stdout=...
# Copyright 2008-2011 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.254, 0.0159, 0, 0.66, 0, 458, 0, 2, 0, 0, 458, 0, 0 ], [ 1, 0, 0.2698, 0.0159, 0, 0.66, 0.5, 164, 0, 1, 0, 0, 164, 0, 0 ], [ 3, 0, 0.6587, 0.6984, 0, 0.66...
[ "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-2011 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.0311, 0.0021, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.0331, 0.0021, 0, 0.66, 0.0476, 878, 0, 1, 0, 0, 878, 0, 0 ], [ 1, 0, 0.0352, 0.0021, 0, ...
[ "import sys", "import inspect", "from array import ArrayType", "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 ArgumentCoercer", " from javaargcoercer impo...
# Copyright 2008-2011 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-2011 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.2623, 0.0164, 0, 0.66, 0, 722, 0, 1, 0, 0, 722, 0, 0 ], [ 1, 0, 0.2787, 0.0164, 0, 0.66, 0.1429, 211, 0, 1, 0, 0, 211, 0, 0 ], [ 1, 0, 0.2951, 0.0164, 0, ...
[ "from model import TestSuite", "from keywords import Keyword", "from testlibraries import TestLibrary", "from runkwregister import RUN_KW_REGISTER", "from signalhandler import STOP_SIGNAL_MONITOR", "def UserLibrary(path):\n \"\"\"Create a user library instance from given resource file.\n\n This is u...
# Copyright 2008-2011 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-2011 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.1471, 0.0098, 0, 0.66, 0, 595, 0, 1, 0, 0, 595, 0, 0 ], [ 3, 0, 0.5882, 0.8333, 0, 0.66, 1, 63, 0, 22, 0, 0, 186, 0, 22 ], [ 2, 1, 0.2157, 0.049, 1, 0.92,...
[ "from robot.variables import GLOBAL_VARIABLES", "class ExecutionContext(object):\n\n def __init__(self, namespace, output, dry_run=False):\n self.namespace = namespace\n self.output = output\n self.dry_run = dry_run\n self._in_teardown = 0", " def __init__(self, namespace, outp...
# Copyright 2008-2011 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.1339, 0.0089, 0, 0.66, 0, 79, 0, 1, 0, 0, 79, 0, 0 ], [ 1, 0, 0.1429, 0.0089, 0, 0.66, 0.125, 739, 0, 1, 0, 0, 739, 0, 0 ], [ 1, 0, 0.1607, 0.0089, 0, 0.6...
[ "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:\n\n def __init__(self):\n self._library_cache = Import...
# Copyright 2008-2011 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.0449, 0.003, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0479, 0.003, 0, 0.66, 0.0667, 878, 0, 1, 0, 0, 878, 0, 0 ], [ 1, 0, 0.0539, 0.003, 0, 0.6...
[ "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", "if utils.is_jython:\n from org.python.core import PyReflectedFunct...
# Copyright 2008-2011 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.37, 0, 555, 0, 3, 0, 0, 0, 0, 2 ], [ 14, 2, 0.1418, 0.0075, 2, 0.47, ...
[ "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-2011 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.84, 0, 0, 0, 0, 0, 0, 0, 0, 1 ], [ 13, 2, 0.6207, 0.0345, 2, 0.37, 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-2011 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, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.2424, 0.0152, 0, 0.66, 0.1111, 516, 0, 1, 0, 0, 516, 0, 0 ], [ 1, 0, 0.2727, 0.0152, 0, ...
[ "import os", "import tempfile", "from robot import utils", "from robot.output import LOGGER", "from variables import Variables", "from variablesplitter import VariableSplitter", "from isvar import is_var, is_scalar_var, is_list_var", "GLOBAL_VARIABLES = Variables()", "def init_global_variables(setti...
# Copyright 2008-2011 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.2162, 0.0135, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.2432, 0.0135, 0, 0.66, 0.0588, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.2568, 0.0135, 0, 0.66...
[ "\"\"\"Module that adds directories needed by Robot to sys.path when imported.\"\"\"", "import sys", "import os", "import fnmatch", "def add_path(path, to_beginning=False, force=False):\n if _should_be_added(path, force):\n if to_beginning:\n sys.path.insert(0, path)\n else:\n ...
# Copyright 2008-2011 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-2011 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.0718, 0.0048, 0, 0.66, 0, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 1, 0, 0.0813, 0.0048, 0, 0.66, 0.0909, 992, 0, 1, 0, 0, 992, 0, 0 ], [ 2, 0, 0.1053, 0.0239, 0, ...
[ "import re", "from unic import unic", "def html_escape(text, formatting=False):\n # TODO: Remove formatting attribute after RIDE does not use it anymore\n if formatting:\n return html_format(text)\n return _HtmlEscaper().format(text)", " if formatting:\n return html_format(text)", ...
# Copyright 2008-2011 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 ], [ 1, 0, 0.2162, 0.0135, 0, 0.66, 0.1111, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.2432, 0.0135, 0, ...
[ "import sys", "import os", "from unic import unic", "def decode_output(string):\n \"\"\"Decodes string from console encoding to Unicode.\"\"\"\n if _output_encoding:\n return unic(string, _output_encoding)\n return string", " \"\"\"Decodes string from console encoding to Unicode.\"\"\"", ...
# Copyright 2008-2011 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.3333, 0.0208, 0, 0.66, 0, 181, 0, 1, 0, 0, 181, 0, 0 ], [ 1, 0, 0.3542, 0.0208, 0, 0.66, 0.2, 576, 0, 1, 0, 0, 576, 0, 0 ], [ 1, 0, 0.375, 0.0208, 0, 0.66...
[ "from java.io import FileOutputStream", "from javax.xml.transform.sax import SAXTransformerFactory", "from javax.xml.transform.stream import StreamResult", "from org.xml.sax.helpers import AttributesImpl", "from abstractxmlwriter import AbstractXmlWriter", "class XmlWriter(AbstractXmlWriter):\n\n def _...
# Copyright 2008-2011 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.0894, 0.0056, 0, 0.66, 0, 79, 0, 1, 0, 0, 79, 0, 0 ], [ 1, 0, 0.095, 0.0056, 0, 0.66, 0.0435, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.1006, 0.0056, 0, 0.6...
[ "import os.path", "import sys", "import re", "import traceback", "from unic import unic", "from robot.errors import DataError, TimeoutError, RemoteError", "RERAISED_EXCEPTIONS = (KeyboardInterrupt, SystemExit, MemoryError)", "if sys.platform.startswith('java'):\n from java.io import StringWriter, P...
# Copyright 2008-2011 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.2174, 0.0145, 0, 0.66, 0, 992, 0, 1, 0, 0, 992, 0, 0 ], [ 14, 0, 0.2681, 0.029, 0, 0.66, 0.5, 484, 4, 0, 0, 0, 0, 0, 0 ], [ 3, 0, 0.6594, 0.6957, 0, 0.66,...
[ "from unic import unic", "_ILLEGAL_CHARS_IN_XML = u'\\x00\\x01\\x02\\x03\\x04\\x05\\x06\\x07\\x08\\x0b\\x0c\\x0e' \\\n + u'\\x0f\\x10\\x11\\x12\\x13\\x14\\x15\\x16\\x17\\x18\\x19\\x1a\\x1b\\x1c\\x1d\\x1e\\x1f\\ufffe'", "class AbstractXmlWriter:\n\n def start(self, name, attributes={}, newline=True):\n ...
# Copyright 2008-2011 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.1087, 0.0072, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.1159, 0.0072, 0, 0.66, 0.0667, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.1232, 0.0072, 0, ...
[ "import os", "import sys", "import inspect", "from robot.errors import DataError", "from error import get_error_message, get_error_details", "from robotpath import normpath, abspath", "def simple_import(path_to_module):\n err_prefix = \"Importing '%s' failed: \" % path_to_module\n if not os.path.e...
# Copyright 2008-2011 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.1415, 0.0094, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.1509, 0.0094, 0, 0.66, 0.125, 614, 0, 1, 0, 0, 614, 0, 0 ], [ 1, 0, 0.1698, 0.0094, 0, 0...
[ "import os", "import urllib", "from encoding import decode_from_file_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", ...
# Copyright 2008-2011 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.2083, 0.0139, 0, 0.66, 0, 993, 0, 1, 0, 0, 993, 0, 0 ], [ 1, 0, 0.2222, 0.0139, 0, 0.66, 0.3333, 801, 0, 2, 0, 0, 801, 0, 0 ], [ 1, 0, 0.2361, 0.0139, 0, ...
[ "from abstractxmlwriter import AbstractXmlWriter", "from htmlutils import html_escape, html_attr_escape", "from unic import unic", "class HtmlWriter(AbstractXmlWriter):\n\n def __init__(self, output):\n \"\"\"'output' is an open file object.\n\n Given 'output' must have been opened in 'wb' mo...
# Copyright 2008-2011 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.1389, 0.0093, 0, 0.66, 0, 992, 0, 1, 0, 0, 992, 0, 0 ], [ 1, 0, 0.1481, 0.0093, 0, 0.66, 0.0556, 733, 0, 1, 0, 0, 733, 0, 0 ], [ 1, 0, 0.1574, 0.0093, 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-2011 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.2727, 0.0182, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.2909, 0.0182, 0, 0.66, 0.25, 609, 0, 1, 0, 0, 609, 0, 0 ], [ 7, 0, 0.4364, 0.2727, 0, 0....
[ "import sys", "from StringIO import StringIO", "try:\n import xml.etree.cElementTree as ET\nexcept ImportError:\n try:\n import cElementTree as ET\n except ImportError:\n try:\n import xml.etree.ElementTree as ET", " import xml.etree.cElementTree as ET", " try:\n ...
# Copyright 2008-2011 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.4688, 0.0312, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.5312, 0.0312, 0, 0.66, 0.3333, 993, 0, 1, 0, 0, 993, 0, 0 ], [ 2, 0, 0.7344, 0.25, 0, 0....
[ "import os", "from abstractxmlwriter import AbstractXmlWriter", "def XmlWriter(path):\n if path == 'NONE':\n return FakeXMLWriter()\n if os.name == 'java':\n from jyxmlwriter import XmlWriter\n else:\n from pyxmlwriter import XmlWriter\n return XmlWriter(path)", " if path =...
# Copyright 2008-2011 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.0426, 0.0028, 0, 0.66, 0, 654, 0, 1, 0, 0, 654, 0, 0 ], [ 1, 0, 0.0483, 0.0028, 0, 0.66, 0.0435, 901, 0, 1, 0, 0, 901, 0, 0 ], [ 1, 0, 0.0511, 0.0028, 0, ...
[ "import time", "from normalizing import normalize", "from misc import plural_or_not", "def _get_timetuple(epoch_secs=None):\n if _CURRENT_TIME:\n return _CURRENT_TIME\n if epoch_secs is None: # can also be 0 (at least in unit tests)\n epoch_secs = time.time()\n secs, millis = _float_se...
# Copyright 2008-2011 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.0796, 0.005, 0, 0.66, 0, 79, 0, 1, 0, 0, 79, 0, 0 ], [ 1, 0, 0.0896, 0.005, 0, 0.66, 0.125, 595, 0, 1, 0, 0, 595, 0, 0 ], [ 1, 0, 0.0945, 0.005, 0, 0.66, ...
[ "import os.path", "from robot.variables import Variables", "from robot.errors import DataError, FrameworkError", "from robot import utils", "PRE = '<!-- '", "POST = ' -->'", "class Namespace(Variables):\n\n def __init__(self, **kwargs):\n Variables.__init__(self, ['$'])\n for key, value...
# Copyright 2008-2011 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.2308, 0.0154, 0, 0.66, 0, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 14, 0, 0.2769, 0.0154, 0, 0.66, 0.25, 44, 3, 1, 0, 0, 821, 10, 1 ], [ 14, 0, 0.2923, 0.0154, 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 item = item.replace(...
# Copyright 2008-2011 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, 651, 0, 1, 0, 0, 651, 0, 0 ], [ 3, 0, 0.5857, 0.8381, 0, 0.66, 1, 409, 0, 8, 0, 0, 186, 0, 22 ], [ 2, 1, 0.2476, 0.1238, 1, 0.84...
[ "import etreewrapper", "class DomWrapper(object):\n\n def __init__(self, path=None, string=None, node=None):\n \"\"\"Initialize by giving 'path' to an xml file or xml as a 'string'.\n\n Alternative initialization by giving dom 'node' ment to be used only\n internally. 'path' may actually a...
# Copyright 2008-2011 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.1613, 0.0108, 0, 0.66, 0, 992, 0, 1, 0, 0, 992, 0, 0 ], [ 2, 0, 0.3387, 0.3011, 0, 0.66, 0.1667, 934, 0, 2, 1, 0, 0, 0, 7 ], [ 8, 1, 0.2957, 0.1935, 1, 0....
[ "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 'Cases AND spaces' -> 'Cas...
# Copyright 2008-2011 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.194, 0.1207, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 2, 0, 0.2931, 0.0603, 0, 0.66, 0.25, 601, 0, 1, 1, 0, 0, 0, 3 ], [ 14, 1, 0.2759, 0.0086, 1, 0.4, ...
[ "\"\"\"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. It also contains `generate_wild_chars.py`\nscript that was originally used to create the E...
# Copyright 2008-2011 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.25, 0.0167, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 4, 0, 0.5417, 0.2667, 0, 0.66, 0.3333, 0, 3, 0, 0, 0, 0, 0, 8 ], [ 1, 1, 0.4333, 0.0167, 1, 0.62, ...
[ "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 item = item.toString() # http://bugs.jython.org/issue1563\n ...
# Copyright 2008-2011 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.1145, 0.0076, 0, 0.66, 0, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 1, 0, 0.1221, 0.0076, 0, 0.66, 0.2, 351, 0, 1, 0, 0, 351, 0, 0 ], [ 14, 0, 0.145, 0.0076, 0, 0.6...
[ "import re", "from UserDict import UserDict", "_WHITESPACE_REGEXP = re.compile('\\s+')", "def normalize(string, ignore=[], caseless=True, spaceless=True):\n \"\"\"Normalizes given string according to given spec.\n\n By default string is turned to lower case and all whitespace is removed.\n Additional...
# Copyright 2008-2011 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.375, 0.025, 0, 0.66, 0, 215, 0, 1, 0, 0, 215, 0, 0 ], [ 1, 0, 0.4, 0.025, 0, 0.66, 0.0556, 964, 0, 1, 0, 0, 964, 0, 0 ], [ 1, 0, 0.425, 0.025, 0, 0.66, ...
[ "from argumentparser import ArgumentParser", "from connectioncache import ConnectionCache", "from domwrapper import DomWrapper", "from encoding import decode_output, encode_output, decode_from_file_system", "from error import (get_error_message, get_error_details, ErrorDetails,\n RERAISED_...
# Copyright 2008-2011 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.1261, 0.0084, 0, 0.66, 0, 901, 0, 1, 0, 0, 901, 0, 0 ], [ 3, 0, 0.5168, 0.7395, 0, 0.66, 0.5, 797, 0, 8, 0, 0, 0, 0, 16 ], [ 8, 1, 0.2017, 0.0756, 1, 0.97...
[ "from normalizing import NormalizedDict", "class ConnectionCache:\n\n \"\"\"Connection cache for different Robot test libraries that use connections.\n\n This cache stores connections and allows switching between them using\n generated indexes or user given aliases. Can be used for example by web\n te...
# Copyright 2008-2011 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.2667, 0.0167, 0, 0.66, 0, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 1, 0, 0.3, 0.0167, 0, 0.66, 0.1429, 901, 0, 1, 0, 0, 901, 0, 0 ], [ 14, 0, 0.35, 0.0167, 0, 0.66...
[ "import re", "from normalizing import normalize", "_match_pattern_tokenizer = re.compile('(\\*|\\?)')", "def eq(str1, str2, ignore=[], caseless=True, spaceless=True):\n str1 = normalize(str1, ignore, caseless, spaceless)\n str2 = normalize(str2, ignore, caseless, spaceless)\n return str1 == str2", ...
# Copyright 2008-2011 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.3488, 0.0233, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.3721, 0.0233, 0, 0.66, 0.25, 759, 0, 1, 0, 0, 759, 0, 0 ], [ 1, 0, 0.3953, 0.0233, 0, 0....
[ "import sys", "from xml.sax.saxutils import XMLGenerator", "from xml.sax.xmlreader import AttributesImpl", "from abstractxmlwriter import AbstractXmlWriter", "class XmlWriter(AbstractXmlWriter):\n\n def __init__(self, path):\n self.path = path\n self._output = open(path, 'wb')\n self...
# Copyright 2008-2011 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.569, 0.069, 0, 0.66, 0, 112, 0, 0, 0, 0, 0, 5, 0 ], [ 3, 0, 0.8276, 0.3103, 0, 0.66, 1, 466, 0, 2, 0, 0, 0, 0, 2 ], [ 14, 1, 0.7586, 0.0345, 1, 0, 0,...
[ "RESERVED_KEYWORDS = [ 'for', 'while', 'break', 'continue', 'end',\n 'if', 'else', 'elif', 'else if', 'return' ]", "class Reserved:\n\n ROBOT_LIBRARY_SCOPE = 'GLOBAL'\n\n def get_keyword_names(self):\n return RESERVED_KEYWORDS\n\n def run_keyword(self, name, args):", " RO...
# Copyright 2008-2011 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 or agr...
[ [ 2, 0, 0.9211, 0.2105, 0, 0.66, 0, 93, 0, 1, 0, 0, 0, 0, 2 ], [ 4, 1, 0.9211, 0.1053, 1, 0.47, 0, 0, 0, 0, 0, 0, 0, 0, 1 ], [ 8, 1, 1, 0.0526, 1, 0.47, 1, ...
[ "def none_shall_pass(who):\n if who is not None:\n raise AssertionError('None shall pass!')\n print('*HTML* <object width=\"480\" height=\"385\"><param name=\"movie\" value=\"http://www.youtube.com/v/dhRUe-gz690&hl=en_US&fs=1&rel=0&color1=0x234900&color2=0x4e9e00\"></param><param name=\"allowFullScreen...
# Copyright 2008-2011 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.0678, 0.0305, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0898, 0.0068, 0, 0.66, 0.1, 272, 0, 0, 0, 0, 0, 5, 0 ], [ 1, 0, 0.0983, 0.0034, 0, 0.66, ...
[ "\"\"\"A test library providing dialogs for interacting with users.\n\n`Dialogs` is Robot Framework's standard library that provides means\nfor pausing the test execution and getting input from users. The\ndialogs are slightly different depending on are tests run on Python or\nJython but they provide the same funct...
# Copyright 2008-2011 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.0308, 0.0019, 0, 0.66, 0, 248, 0, 1, 0, 0, 248, 0, 0 ], [ 1, 0, 0.0327, 0.0019, 0, 0.66, 0.1429, 654, 0, 1, 0, 0, 654, 0, 0 ], [ 1, 0, 0.0346, 0.0019, 0, ...
[ "import telnetlib", "import time", "import re", "import inspect", "from robot.version import get_version", "from robot import utils", "class Telnet:\n\n \"\"\"A test library providing communication over Telnet connections.\n\n `Telnet` is Robot Framework's standard library that makes it\n possi...
# Copyright 2008-2011 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.3333, 0.0208, 0, 0.66, 0, 59, 0, 1, 0, 0, 59, 0, 0 ], [ 14, 0, 0.375, 0.0208, 0, 0.66, 0.5, 308, 3, 0, 0, 0, 59, 10, 1 ], [ 3, 0, 0.7083, 0.6042, 0, 0.66,...
[ "import OperatingSystem", "OPSYS = OperatingSystem.OperatingSystem()", "class DeprecatedOperatingSystem:\n ROBOT_LIBRARY_SCOPE = 'GLOBAL'\n\n delete_environment_variable = OPSYS.remove_environment_variable\n environment_variable_is_set = OPSYS.environment_variable_should_be_set\n environment_variabl...
# Copyright 2008-2011 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.1798, 0.0112, 0, 0.66, 0, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 1, 0, 0.191, 0.0112, 0, 0.66, 0.2, 626, 0, 1, 0, 0, 626, 0, 0 ], [ 1, 0, 0.2247, 0.0112, 0, 0.66...
[ "import re", "import fnmatch", "from robot.utils import asserts", "import BuiltIn", "BUILTIN = BuiltIn.BuiltIn()", "class DeprecatedBuiltIn:\n ROBOT_LIBRARY_SCOPE = 'GLOBAL'\n\n integer = BUILTIN.convert_to_integer\n float = BUILTIN.convert_to_number\n string = BUILTIN.convert_to_string\n b...
# Copyright 2008-2011 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.0385, 0.0024, 0, 0.66, 0, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 1, 0, 0.0409, 0.0024, 0, 0.66, 0.2, 626, 0, 1, 0, 0, 626, 0, 0 ], [ 1, 0, 0.0433, 0.0024, 0, 0.6...
[ "import re", "from fnmatch import fnmatchcase", "from random import randint", "from string import ascii_lowercase, ascii_uppercase, digits", "from robot.version import get_version", "class String:\n\n \"\"\"A test library for string manipulation and verification.\n\n `String` is Robot Framework's st...
# Copyright 2008-2011 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...
[]
[]
# Copyright 2008-2011 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.067, 0.0153, 0, 0.66, 0, 532, 0, 2, 0, 0, 186, 0, 2 ], [ 8, 1, 0.0651, 0.0038, 1, 0.48, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 2, 1, 0.069, 0.0038, 1, 0.48, 0...
[ "class Populator(object):\n \"\"\"Explicit interface for all populators.\"\"\"\n def add(self, row): raise NotImplementedError()\n def populate(self): raise NotImplementedError()", " \"\"\"Explicit interface for all populators.\"\"\"", " def add(self, row): raise NotImplementedError()", " de...
# Copyright 2008-2011 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.0261, 0.0017, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0296, 0.0017, 0, 0.66, 0.0385, 299, 0, 1, 0, 0, 299, 0, 0 ], [ 1, 0, 0.0313, 0.0017, 0, ...
[ "import os", "from robot.errors import DataError", "from robot.variables import is_var", "from robot.output import LOGGER", "from robot import utils", "from settings import (Documentation, Fixture, Timeout, Tags, Metadata,\n Library, Resource, Variables, Arguments, Return, Template)",...
# Copyright 2008-2011 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.4167, 0.0278, 0, 0.66, 0, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 1, 0, 0.4722, 0.0278, 0, 0.66, 0.5, 276, 0, 1, 0, 0, 276, 0, 0 ], [ 3, 0, 0.7778, 0.4722, 0, 0.6...
[ "import re", "from tsvreader import TsvReader", "class TxtReader(TsvReader):\n\n _space_splitter = re.compile(' {2,}')\n _pipe_splitter = re.compile(' \\|(?= )')\n\n def _split_row(self, row):\n row = row.rstrip().replace('\\t', ' ')\n if not row.startswith('| '):", " _space_splitte...
# Copyright 2008-2011 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.3846, 0.0256, 0, 0.66, 0, 220, 0, 1, 0, 0, 220, 0, 0 ], [ 3, 0, 0.7308, 0.5641, 0, 0.66, 1, 619, 0, 3, 0, 0, 0, 0, 17 ], [ 2, 1, 0.6538, 0.3077, 1, 0.81, ...
[ "from codecs import BOM_UTF8", "class TsvReader:\n\n def read(self, tsvfile, populator):\n process = False\n for index, row in enumerate(tsvfile.readlines()):\n if index == 0 and row.startswith(BOM_UTF8):\n row = row[len(BOM_UTF8):]\n cells = [ self._process(c...
# Copyright 2008-2011 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.1777, 0.2273, 0, 0.66, 0, 307, 0, 13, 0, 0, 186, 0, 11 ], [ 2, 1, 0.0826, 0.0207, 1, 0.81, 0, 555, 0, 4, 0, 0, 0, 0, 1 ], [ 14, 2, 0.0785, 0.0041, 2, 0.01...
[ "class _Setting(object):\n\n def __init__(self, setting_name, parent=None, comment=None):\n self.setting_name = setting_name\n self.parent = parent\n self.comment = comment\n self.reset()", " def __init__(self, setting_name, parent=None, comment=None):\n self.setting_name ...