code stringlengths 1 1.49M | vector listlengths 0 7.38k | snippet listlengths 0 7.38k |
|---|---|---|
class RequiredArgs:
def __init__(self, required, arguments, default="value"):
"""This library always needs two arguments and has one default.
Keyword names are got from the given arguments.
"""
self.__dict__[required] = lambda: None
self.__dict__[arguments] = lambda arg: No... | [
[
3,
0,
0.5,
0.9091,
0,
0.66,
0,
764,
0,
1,
0,
0,
0,
0,
0
],
[
2,
1,
0.5909,
0.7273,
1,
0.07,
0,
555,
0,
4,
0,
0,
0,
0,
0
],
[
8,
2,
0.5,
0.3636,
2,
0.3,
0,
... | [
"class RequiredArgs:\n\n def __init__(self, required, arguments, default=\"value\"):\n \"\"\"This library always needs two arguments and has one default.\n\n Keyword names are got from the given arguments.\n \"\"\"\n self.__dict__[required] = lambda: None",
" def __init__(self, r... |
#!/usr/bin/env python
# tool2html.py -- Creates HTML version of given tool documentation
#
# First part of this file is Pygments configuration and actual
# documentation generation follows it.
#
# Pygments configuration
#
# This code is from 'external/rst-directive.py' file included in Pygments 0.9
# distribution. F... | [
[
8,
0,
0.2254,
0.2465,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.3873,
0.007,
0,
0.66,
0.0455,
281,
1,
0,
0,
0,
0,
4,
0
],
[
1,
0,
0.4014,
0.007,
0,
0.66,
... | [
"\"\"\"\n The Pygments MoinMoin Parser\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n This fragment is a Docutils_ 0.4 directive that renders source code\n (to HTML only, currently) via Pygments.\n\n To use it, adjust the options below and copy the code into a module",
"INLINESTYLES = False",
"from pygments.... |
# Copyright 2008-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... | [
[
1,
0,
0.1088,
0.0068,
0,
0.66,
0,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.1156,
0.0068,
0,
0.66,
0.1667,
878,
0,
1,
0,
0,
878,
0,
0
],
[
1,
0,
0.1224,
0.0068,
0,
... | [
"import sys",
"import inspect",
"import traceback",
"from StringIO import StringIO",
"from SimpleXMLRPCServer import SimpleXMLRPCServer",
"try:\n import signal\nexcept ImportError:\n signal = None",
" import signal",
" signal = None",
"class RobotRemoteServer(SimpleXMLRPCServer):\n \n ... |
import sys
from SimpleXMLRPCServer import SimpleXMLRPCServer
class SimpleLibrary(SimpleXMLRPCServer):
def __init__(self, port=8270):
SimpleXMLRPCServer.__init__(self, ('localhost', int(port)))
self.register_function(self.get_keyword_names)
self.register_function(self.run_keyword)
... | [
[
1,
0,
0.027,
0.027,
0,
0.66,
0,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.0541,
0.027,
0,
0.66,
0.3333,
73,
0,
1,
0,
0,
73,
0,
0
],
[
3,
0,
0.5135,
0.7838,
0,
0.66,... | [
"import sys",
"from SimpleXMLRPCServer import SimpleXMLRPCServer",
"class SimpleLibrary(SimpleXMLRPCServer):\n\n def __init__(self, port=8270):\n SimpleXMLRPCServer.__init__(self, ('localhost', int(port)))\n self.register_function(self.get_keyword_names)\n self.register_function(self.run... |
# Can be used in the test data like ${MyObject()} or ${MyObject(1)}
class MyObject:
def __init__(self, index=''):
self.index = index
def __str__(self):
return '<MyObject%s>' % self.index
UNICODE = (u'Hyv\u00E4\u00E4 y\u00F6t\u00E4. '
u'\u0421\u043F\u0430\u0441\u0438\u0431\u043E!')
LI... | [
[
3,
0,
0.25,
0.3125,
0,
0.66,
0,
605,
0,
2,
0,
0,
0,
0,
0
],
[
2,
1,
0.2188,
0.125,
1,
0.56,
0,
555,
0,
2,
0,
0,
0,
0,
0
],
[
14,
2,
0.25,
0.0625,
2,
0.77,
0,
... | [
"class MyObject:\n def __init__(self, index=''):\n self.index = index\n def __str__(self):\n return '<MyObject%s>' % self.index",
" def __init__(self, index=''):\n self.index = index",
" self.index = index",
" def __str__(self):\n return '<MyObject%s>' % self.ind... |
import sys
class RemoteTestLibrary:
_unicode = (u'Hyv\u00E4\u00E4 y\u00F6t\u00E4. '
u'\u0421\u043F\u0430\u0441\u0438\u0431\u043E!')
def get_server_language(self):
lang = sys.platform.startswith('java') and 'jython' or 'python'
return '%s%d%d' % (lang, sys.version_info[0], sys... | [
[
1,
0,
0.0032,
0.0032,
0,
0.66,
0,
509,
0,
1,
0,
0,
509,
0,
0
],
[
3,
0,
0.4792,
0.9359,
0,
0.66,
0.25,
637,
0,
81,
0,
0,
0,
0,
65
],
[
14,
1,
0.0208,
0.0064,
1,
0... | [
"import sys",
"class RemoteTestLibrary:\n\n _unicode = (u'Hyv\\u00E4\\u00E4 y\\u00F6t\\u00E4. '\n u'\\u0421\\u043F\\u0430\\u0441\\u0438\\u0431\\u043E!')\n\n def get_server_language(self):\n lang = sys.platform.startswith('java') and 'jython' or 'python'\n return '%s%d%d' % (lang... |
#!/usr/bin/env python
import os
import sys
class ExampleRemoteLibrary:
def count_items_in_directory(self, path):
return len([ i for i in os.listdir(path) if not i.startswith('.') ])
def strings_should_be_equal(self, str1, str2):
print "Comparing '%s' to '%s'" % (str1, str2)
if s... | [
[
1,
0,
0.15,
0.05,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.2,
0.05,
0,
0.66,
0.3333,
509,
0,
1,
0,
0,
509,
0,
0
],
[
3,
0,
0.55,
0.45,
0,
0.66,
0.6... | [
"import os",
"import sys",
"class ExampleRemoteLibrary:\n \n def count_items_in_directory(self, path):\n return len([ i for i in os.listdir(path) if not i.startswith('.') ])\n\n def strings_should_be_equal(self, str1, str2):\n print(\"Comparing '%s' to '%s'\" % (str1, str2))\n if s... |
#!/usr/bin/env python
# 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 req... | [
[
8,
0,
0.1446,
0.0783,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1928,
0.006,
0,
0.66,
0.1429,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.1988,
0.006,
0,
0.66,
... | [
"\"\"\"Robot Framework Debugfile Viewer\n\nUsage: fileviever.py [path]\n\nThis tool is mainly targeted for viewing Robot Framework debug files set\nwith '--debugfile' command line option when running test. The idea is to\nprovide a tool that has similar functionality as 'tail -f' command in \nunixy systems.",
"i... |
#!/usr/bin/env python
# Copyright 2008-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 req... | [
[
8,
0,
0.2554,
0.1304,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.337,
0.0109,
0,
0.66,
0.1667,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.3478,
0.0109,
0,
0.66,... | [
"\"\"\"fixml.py -- A tool to fix broken Robot Framework output files\n\nUsage: fixml.py inpath outpath\n\nThis tool can fix Robot Framework output files that are not properly finished\nor are missing elements from the middle. It should be possible to generate\nreports and logs from the fixed output afterwards with... |
#!/usr/bin/env python
# Copyright 2008-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 req... | [
[
8,
0,
0.1532,
0.1183,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.2204,
0.0054,
0,
0.66,
0.0833,
540,
0,
1,
0,
0,
540,
0,
0
],
[
1,
0,
0.2312,
0.0054,
0,
0.66... | [
"\"\"\"Robot Framework Test Status Checker\n\nUsage: statuschecker.py infile [outfile]\n\nThis tool processes Robot Framework output XML files and checks that test case\nstatuses and messages are as expected. Main use case is post-processing output\nfiles got when testing Robot Framework test libraries using Robot... |
#!/usr/bin/env python
# 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 req... | [
[
8,
0,
0.2455,
0.1786,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.3482,
0.0089,
0,
0.66,
0.0909,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.3571,
0.0089,
0,
0.66... | [
"\"\"\"Robot Framework Start/End/Elapsed Time Reporter\n\nUsage: times2csv.py input-xml [output-csv] [include-items]\n\nThis script reads start, end, and elapsed times from all suites, tests and/or\nkeywords from the given output file, and writes them into an file in\ncomma-separated-values (CSV) format. CSV files... |
#!/usr/bin/env python
"""Packaging script for Robot Framework
Usage: package.py command version_number [release_tag]
Argument 'command' can have one of the following values:
- sdist : create source distribution
- wininst : create Windows installer
- all : create both packages
- version : update on... | [
[
8,
0,
0.0798,
0.1387,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1555,
0.0042,
0,
0.66,
0.0233,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.1597,
0.0042,
0,
0.66... | [
"\"\"\"Packaging script for Robot Framework\n\nUsage: package.py command version_number [release_tag]\n\nArgument 'command' can have one of the following values:\n - sdist : create source distribution\n - wininst : create Windows installer\n - all : create both packages",
"import sys",
"import os",... |
#!/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.0395,
0.0132,
0,
0.66,
0,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.0526,
0.0132,
0,
0.66,
0.0909,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.0658,
0.0132,
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... |
# 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.0678,
0.0042,
0,
0.66,
0,
735,
0,
1,
0,
0,
735,
0,
0
],
[
3,
0,
0.2331,
0.3093,
0,
0.66,
0.25,
662,
0,
8,
0,
0,
0,
0,
35
],
[
2,
1,
0.1144,
0.0551,
1,
0.9... | [
"from robot import utils",
"class _TableHelper:\n\n def _start_table(self, name, tag_column_name):\n self._writer.start('table', {'class': name})\n self._writer.start('tr')\n self._writer.element('th', 'Name', {'class': 'col_name'})\n self._writer.element('th', 'Documentation', {'cl... |
# 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.5161,
0.0323,
0,
0.66,
0,
596,
0,
1,
0,
0,
596,
0,
0
],
[
3,
0,
0.8065,
0.4194,
0,
0.66,
1,
990,
0,
4,
0,
0,
137,
0,
4
],
[
2,
1,
0.6935,
0.0645,
1,
0.3,
... | [
"from robot.output import XmlLogger",
"class OutputSerializer(XmlLogger):\n\n def __init__(self, outpath, split):\n XmlLogger.__init__(self, outpath, 'TRACE', split, generator='Rebot')\n\n def message(self, msg):\n self._message(msg)",
" def __init__(self, outpath, split):\n XmlLog... |
# 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.064,
0.004,
0,
0.66,
0,
79,
0,
1,
0,
0,
79,
0,
0
],
[
1,
0,
0.072,
0.004,
0,
0.66,
0.1429,
735,
0,
1,
0,
0,
735,
0,
0
],
[
3,
0,
0.362,
0.56,
0,
0.66,
... | [
"import os.path",
"from robot import utils",
"class _StatSerializer:\n\n def __init__(self, output, split_level=-1):\n self._writer = utils.HtmlWriter(output)\n self._split_level = split_level\n\n def start_statistics(self, statistics):\n self._writer.element('h2', 'Test Statistics')"... |
# 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.9167,
0.1111,
0,
0.66,
0,
975,
0,
4,
0,
0,
975,
0,
0
],
[
1,
0,
1,
0.0556,
0,
0.66,
1,
397,
0,
2,
0,
0,
397,
0,
0
]
] | [
"from testoutput import RobotTestOutput, RebotTestOutput, \\\n SplitSubTestOutput, SplitIndexTestOutput",
"from templating import Template, Namespace"
] |
# 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.1524,
0.0095,
0,
0.66,
0,
735,
0,
1,
0,
0,
735,
0,
0
],
[
3,
0,
0.4333,
0.5143,
0,
0.66,
0.3333,
250,
0,
10,
0,
0,
0,
0,
19
],
[
8,
1,
0.2095,
0.0476,
1,
... | [
"from robot import utils",
"class XUnitSerializer:\n \"\"\"Provides an xUnit-compatible result file.\n\n Attempts to adhere to the de facto schema guessed by Peter Reilly, see:\n http://marc.info/?l=ant-dev&m=123551933508682\n \"\"\"\n\n def __init__(self, output):",
" \"\"\"Provides an xUnit-... |
# 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.0493,
0.0033,
0,
0.66,
0,
79,
0,
1,
0,
0,
79,
0,
0
],
[
1,
0,
0.0559,
0.0033,
0,
0.66,
0.25,
735,
0,
1,
0,
0,
735,
0,
0
],
[
3,
0,
0.3717,
0.6151,
0,
0.66... | [
"import os.path",
"from robot import utils",
"class LogSerializer:\n\n def __init__(self, output, split_level=-1):\n self._writer = utils.HtmlWriter(output)\n self._writer.element('h2', 'Test Execution Log')\n self._idgen = utils.IdGenerator()\n self._suite_level = 0\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.167,
0.2797,
0,
0.66,
0,
380,
6,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.375,
0.1294,
0,
0.66,
0.3333,
524,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.6066,
0.3269,
0,
0.6... | [
"_STYLE = '''\n<style media=\"all\" type=\"text/css\">\n /* Generic styles */\n body {\n font-family: sans-serif;\n font-size: 0.8em;\n color: black;\n padding: 6px;",
"_FUNCTIONS = '''\n<!-- FUNCTION meta ${version} -->\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\n<me... |
# 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.0633,
0.0042,
0,
0.66,
0,
654,
0,
1,
0,
0,
654,
0,
0
],
[
1,
0,
0.0717,
0.0042,
0,
0.66,
0.0667,
735,
0,
1,
0,
0,
735,
0,
0
],
[
1,
0,
0.0759,
0.0042,
0,
... | [
"import time",
"from robot import utils",
"from robot.common import Statistics",
"from robot.output import LOGGER, process_outputs, process_output",
"from robot.version import get_full_version",
"import templates",
"from templating import Namespace, Template",
"from outputserializers import OutputSeri... |
# 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... | [
[
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.51,
0,
0,
0,
0,
0,
0,
0,
0,
1
],
[
13,
2,
0.6207,
0.0345,
2,
0.91,
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.2424,
0.0152,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.2576,
0.0152,
0,
0.66,
0.125,
516,
0,
1,
0,
0,
516,
0,
0
],
[
1,
0,
0.2879,
0.0152,
0,
0... | [
"import os",
"import tempfile",
"from robot import utils",
"from robot.output import LOGGER",
"from variables import Variables, VariableSplitter",
"from isvar import is_var, is_scalar_var, is_list_var",
"GLOBAL_VARIABLES = Variables()",
"def init_global_variables(settings):\n _set_cli_vars(settings... |
# 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.0664,
0.0044,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.0752,
0.0044,
0,
0.66,
0.1667,
735,
0,
1,
0,
0,
735,
0,
0
],
[
1,
0,
0.0796,
0.0044,
0,
... | [
"import os",
"from robot import utils",
"from robot.errors import DataError, FrameworkError",
"from robot.output import LOGGER",
"class _BaseSettings:\n _cli_opts = { 'Name' : ('name', None),\n 'Doc' : ('doc', None),\n 'Metadata' : ('meta... |
# 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,
1,
0.0667,
0,
0.66,
0,
168,
0,
2,
0,
0,
168,
0,
0
]
] | [
"from settings import RobotSettings, RebotSettings"
] |
# 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.05,
0,
555,
0,
4,
0,
0,
0,
0,
1
],
[
14,
2,
0.0785,
0.0041,
2,
0.74... | [
"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 ... |
# 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.55,
... | [
"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 or ag... | [
[
1,
0,
0.3077,
0.0192,
0,
0.66,
0,
516,
0,
1,
0,
0,
516,
0,
0
],
[
1,
0,
0.3269,
0.0192,
0,
0.66,
0.125,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.3654,
0.0192,
0,
0... | [
"import tempfile",
"import os",
"from docutils.core import publish_cmdline",
"from htmlreader import HtmlReader",
"from docutils.parsers.rst import directives",
"ignorer = lambda *args: []",
"ignorer.content = 1",
"directives.register_directive('sourcecode', ignorer)",
"class RestReader(HtmlReader):... |
# 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.67,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
2,
1,
0.069,
0.0038,
1,
0.67,
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.8824,
0.0588,
0,
0.66,
0,
496,
0,
1,
0,
0,
496,
0,
0
],
[
1,
0,
0.9706,
0.1176,
0,
0.66,
1,
722,
0,
5,
0,
0,
722,
0,
0
]
] | [
"from datarow import DataRow",
"from model import (TestCaseFile, TestDataDirectory, ResourceFile,\n TestCase, UserKeyword)"
] |
# 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,
540,
0,
1,
0,
0,
540,
0,
0
],
[
3,
0,
0.5804,
0.8482,
0,
0.66,
1,
207,
0,
20,
0,
0,
186,
0,
29
],
[
14,
1,
0.1696,
0.0089,
1,
0.... | [
"import re",
"class DataRow(object):\n _row_continuation_marker = '...'\n _whitespace_regexp = re.compile('\\s+')\n _ye_olde_metadata_prefix = 'meta:'\n\n def __init__(self, cells):\n self.cells, self.comments = self._parse(cells)",
" _row_continuation_marker = '...'",
" _whitespace_r... |
# 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.0265,
0.0018,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.0301,
0.0018,
0,
0.66,
0.0385,
299,
0,
1,
0,
0,
299,
0,
0
],
[
1,
0,
0.0319,
0.0018,
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.0792,
0.005,
0,
0.66,
0,
217,
0,
1,
0,
0,
217,
0,
0
],
[
1,
0,
0.0842,
0.005,
0,
0.66,
0.2,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.0891,
0.005,
0,
0.66,
... | [
"import HTMLParser",
"import sys",
"from htmlentitydefs import entitydefs",
"extra_entitydefs = {'nbsp': ' ', 'apos': \"'\", 'tilde': '~'}",
"class HtmlReader(HTMLParser.HTMLParser):\n IGNORE = 0\n INITIAL = 1\n PROCESS = 2\n\n def __init__(self):\n HTMLParser.HTMLParser.__init__(self)\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.163,
0.0109,
0,
0.66,
0,
595,
0,
1,
0,
0,
595,
0,
0
],
[
3,
0,
0.5978,
0.8152,
0,
0.66,
1,
63,
0,
20,
0,
0,
186,
0,
22
],
[
2,
1,
0.2337,
0.0435,
1,
0.03,... | [
"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\n @property",
" def __init__(self, namespace, output, dry_run=Fa... |
# 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.047,
0.0031,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.0502,
0.0031,
0,
0.66,
0.0667,
878,
0,
1,
0,
0,
878,
0,
0
],
[
1,
0,
0.0564,
0.0031,
0,
0... | [
"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 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.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.1368,
0.0085,
0,
0.66,
0,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.1538,
0.0085,
0,
0.66,
0.25,
100,
0,
7,
0,
0,
100,
0,
0
],
[
1,
0,
0.1709,
0.0085,
0,
0.... | [
"import sys",
"from java.lang import Byte, Short, Integer, Long, Boolean, Float, Double",
"from robot.errors import DataError",
"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 ... |
# 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.1579,
0.0105,
0,
0.66,
0,
739,
0,
1,
0,
0,
739,
0,
0
],
[
1,
0,
0.1789,
0.0105,
0,
0.66,
0.1667,
596,
0,
1,
0,
0,
596,
0,
0
],
[
1,
0,
0.1895,
0.0105,
0,
... | [
"import copy",
"from robot.output import LOGGER",
"from robot.parsing import ResourceFile",
"from robot import utils",
"from testlibraries import TestLibrary",
"class Importer:\n\n def __init__(self):\n self._libraries = _LibraryCache()\n self._resources = _LibraryCache()\n\n def impor... |
# 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.2239,
0.0149,
0,
0.66,
0,
509,
0,
1,
0,
0,
509,
0,
0
],
[
7,
0,
0.2612,
0.0597,
0,
0.66,
0.2,
0,
0,
1,
0,
0,
0,
0,
0
],
[
1,
1,
0.2537,
0.0149,
1,
0.18,
... | [
"import sys",
"try:\n import signal\nexcept ImportError:\n signal = None # IronPython 2.6 doesn't have signal module by default",
" import signal",
" signal = None # IronPython 2.6 doesn't have signal module by default",
"from robot.errors import ExecutionFailed",
"from robot.output import L... |
# 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... | [
[
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 law... | [
[
1,
0,
0.0306,
0.002,
0,
0.66,
0,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.0327,
0.002,
0,
0.66,
0.0476,
878,
0,
1,
0,
0,
878,
0,
0
],
[
1,
0,
0.0347,
0.002,
0,
0.6... | [
"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... | [
[
3,
0,
0.4116,
0.6463,
0,
0.66,
0,
239,
0,
17,
0,
0,
186,
0,
18
],
[
14,
1,
0.0976,
0.0061,
1,
0.68,
0,
1,
1,
0,
0,
0,
0,
9,
0
],
[
14,
1,
0.1067,
0.0122,
1,
0.68,... | [
"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.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... |
#!/usr/bin/env python
# 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 req... | [
[
8,
0,
0.5039,
0.8794,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.9494,
0.0039,
0,
0.66,
0.25,
509,
0,
1,
0,
0,
509,
0,
0
],
[
7,
0,
0.9669,
0.0233,
0,
0.66,
... | [
"\"\"\"Rebot -- Robot Framework Report and Log Generator\n\nVersion: <VERSION>\n\nUsage: rebot [options] robot_outputs\n or: interpreter /path/robot/rebot.py [options] robot_outputs\n or python -m robot.rebot [options] robot_outputs",
"import sys",
"try:\n import pythonpathsetter\nexcept ImportError:... |
#!/usr/bin/env python
# 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 req... | [
[
8,
0,
0.5031,
0.9037,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.9596,
0.0031,
0,
0.66,
0.25,
509,
0,
1,
0,
0,
509,
0,
0
],
[
7,
0,
0.9736,
0.0186,
0,
0.66,
... | [
"\"\"\"Robot Framework -- A keyword-driven test automation framework\n\nVersion: <VERSION>\n\nUsage: pybot [options] data_sources\n or: jybot [options] data_sources\n or: interpreter /path/robot/runner.py [options] data_sources\n or: python -m robot.runner [options] data_sources",
"import sys",
"try:\... |
# 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... | [
[
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.89,
... | [
"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.57,
0,
0,
0,
0,
0,
0,
0,
0,
1
],
[
8,
1,
1,
0.0526,
1,
0.57,
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... | [
[
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... | [] | [] |
# 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... | [
[
8,
0,
0.068,
0.0306,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0901,
0.0068,
0,
0.66,
0.1,
272,
0,
0,
0,
0,
0,
5,
0
],
[
1,
0,
0.0986,
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.1311,
0.0082,
0,
0.66,
0,
299,
0,
1,
0,
0,
299,
0,
0
],
[
1,
0,
0.1393,
0.0082,
0,
0.66,
0.3333,
901,
0,
1,
0,
0,
901,
0,
0
],
[
3,
0,
0.5246,
0.7295,
0,
... | [
"from robot.errors import DataError",
"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... |
# 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.7619,
0.0476,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
4,
0,
0.9286,
0.1905,
0,
0.66,
1,
0,
0,
0,
0,
0,
0,
0,
0
],
[
1,
1,
0.9048,
0.0476,
1,
0.31,
... | [
"import os",
"if os.name == 'java':\n from jyxmlwriter import XmlWriter\nelse:\n from pyxmlwriter import XmlWriter",
" from jyxmlwriter import XmlWriter",
" from pyxmlwriter import XmlWriter"
] |
# 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.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.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.28,
... | [
"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.0469,
0.0029,
0,
0.66,
0,
654,
0,
1,
0,
0,
654,
0,
0
],
[
1,
0,
0.0528,
0.0029,
0,
0.66,
0.0435,
299,
0,
1,
0,
0,
299,
0,
0
],
[
1,
0,
0.0557,
0.0029,
0,
... | [
"import time",
"from robot.errors import DataError",
"from normalizing import normalize",
"from misc import plural_or_not",
"def _get_time():\n if _CURRENT_TIME:\n return _CURRENT_TIME\n current = time.time()\n timetuple = time.localtime(current)[:6] # from year to secs\n millis = int((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... | [
[
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.1839,
0.0115,
0,
0.66,
0,
993,
0,
1,
0,
0,
993,
0,
0
],
[
1,
0,
0.1954,
0.0115,
0,
0.66,
0.3333,
801,
0,
2,
0,
0,
801,
0,
0
],
[
1,
0,
0.2069,
0.0115,
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 with 'wb' ... |
# 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.1053,
0.0066,
0,
0.66,
0,
540,
0,
1,
0,
0,
540,
0,
0
],
[
1,
0,
0.1118,
0.0066,
0,
0.66,
0.0909,
79,
0,
1,
0,
0,
79,
0,
0
],
[
1,
0,
0.125,
0.0066,
0,
0.6... | [
"import re",
"import os.path",
"from unic import unic",
"_hr_re = re.compile('^-{3,} *$')",
"_bold_re = re.compile('''\n( # prefix (group 1)\n (^|\\ ) # begin of line or space\n [\"'(]* _? # optionally any char \"'( and optional begin of italic\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.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.99... | [
"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... | [
[
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.83,
... | [
"\"\"\"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.3137,
0.0196,
0,
0.66,
0,
79,
0,
1,
0,
0,
79,
0,
0
],
[
3,
0,
0.5,
0.2745,
0,
0.66,
0.5,
105,
0,
3,
0,
0,
0,
0,
1
],
[
2,
1,
0.4314,
0.0588,
1,
0.68,
... | [
"import os.path",
"class IdGenerator:\n\n def __init__(self, padding=6):\n self._pattern = '%%s%%0%dd' % padding\n self._ids = {}\n\n def get_id(self, type_=''):\n if not self._ids.has_key(type_):",
" def __init__(self, padding=6):\n self._pattern = '%%s%%0%dd' % padding\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.1079,
0.0072,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.1151,
0.0072,
0,
0.66,
0.1111,
540,
0,
1,
0,
0,
540,
0,
0
],
[
1,
0,
0.1223,
0.0072,
0,
... | [
"import os",
"import re",
"from UserDict import UserDict",
"_WHITESPACE_REGEXP = re.compile('\\s+')",
"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_INSENSITI... |
# 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,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.2462,
0.0154,
0,
0.66,
0.125,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.2769,
0.0154,
0,
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.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.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.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",
"from error import (get_error_message, get_error_details, ErrorDetails,\n RERAISED_EXCEPTIONS)",
"from esc... |
# 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.1067,
0.0067,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.1133,
0.0067,
0,
0.66,
0.0833,
614,
0,
1,
0,
0,
614,
0,
0
],
[
1,
0,
0.1267,
0.0067,
0,
... | [
"import os",
"import urllib",
"from unic import unic",
"from normalizing import normpath",
"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'\... |
# 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.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... | [
[
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.1096,
0.0068,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.1164,
0.0068,
0,
0.66,
0.0714,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.1233,
0.0068,
0,
... | [
"import os",
"import sys",
"import inspect",
"from robot.errors import DataError",
"from error import get_error_message, get_error_details",
"from normalizing import normpath",
"def simple_import(path_to_module):\n err_prefix = \"Importing '%s' failed: \" % path_to_module\n if not os.path.exists(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.1014,
0.0068,
0,
0.66,
0,
970,
0,
1,
0,
0,
970,
0,
0
],
[
14,
0,
0.1419,
0.0068,
0,
0.66,
0.0769,
755,
1,
0,
0,
0,
0,
1,
0
],
[
14,
0,
0.1486,
0.0068,
0,
... | [
"import utils",
"INFO_PRINTED = 251 # --help or --version",
"DATA_ERROR = 252 # Invalid data or cli args",
"STOPPED_BY_USER = 253 # KeyboardInterrupt or SystemExit",
"FRAMEWORK_ERROR = 255 # Unexpected error",
"class RobotError(Exception):\n \"\"\"Base class for Robot Framework errors.\... |
# 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.1468,
0.0092,
0,
0.66,
0,
735,
0,
1,
0,
0,
735,
0,
0
],
[
1,
0,
0.1651,
0.0092,
0,
0.66,
0.25,
532,
0,
1,
0,
0,
532,
0,
0
],
[
1,
0,
0.1743,
0.0092,
0,
0.... | [
"from robot import utils",
"from logger import LOGGER",
"from loggerhelper import IsLogged",
"def DebugFile(path):\n if path == 'NONE':\n LOGGER.info('No debug file')\n return None\n try:\n LOGGER.info('Debug file: %s' % path)\n return _DebugFileWriter(path)\n except:",
... |
# 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.0833,
0.0052,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.0938,
0.0052,
0,
0.66,
0.125,
735,
0,
1,
0,
0,
735,
0,
0
],
[
1,
0,
0.1042,
0.0052,
0,
0... | [
"import os",
"from robot import utils",
"from loggerhelper import AbstractLogger, AbstractLoggerProxy, Message",
"from filelogger import FileLogger",
"from monitor import CommandLineMonitor",
"class Logger(AbstractLogger):\n \"\"\"A global logger proxy to which new loggers may be registered.\n\n Whe... |
# 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.0427,
0.0027,
0,
0.66,
0,
79,
0,
1,
0,
0,
79,
0,
0
],
[
1,
0,
0.048,
0.0027,
0,
0.66,
0.0435,
735,
0,
1,
0,
0,
735,
0,
0
],
[
1,
0,
0.0507,
0.0027,
0,
0.6... | [
"import os.path",
"from robot import utils",
"from robot.errors import DataError",
"from robot.common import BaseTestSuite, BaseTestCase, BaseKeyword",
"from robot.output import LOGGER",
"from robot.output.loggerhelper import IsLogged, Message",
"def process_outputs(paths, settings):\n if not paths:\... |
# 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,
735,
0,
1,
0,
0,
735,
0,
0
],
[
1,
0,
0.3,
0.0167,
0,
0.66,
0.5,
426,
0,
1,
0,
0,
426,
0,
0
],
[
3,
0,
0.6667,
0.65,
0,
0.66,
... | [
"from robot import utils",
"from loggerhelper import AbstractLogger",
"class FileLogger(AbstractLogger):\n\n def __init__(self, path, level):\n AbstractLogger.__init__(self, level)\n self._writer = self._get_writer(path)\n\n def _get_writer(self, path):\n # Hook for unittests",
" ... |
# 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.1496,
0.0079,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.1575,
0.0079,
0,
0.66,
0.1429,
509,
0,
1,
0,
0,
509,
0,
0
],
[
7,
0,
0.1772,
0.0315,
0,
... | [
"import os",
"import sys",
"try:\n from ctypes import windll, Structure, c_short, c_ushort, byref\nexcept ImportError: # Not on Windows or using Jython\n windll = None",
" from ctypes import windll, Structure, c_short, c_ushort, byref",
" windll = None",
"def Highlighter(stream):\n if os.s... |
# 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.0727,
0.0045,
0,
0.66,
0,
79,
0,
1,
0,
0,
79,
0,
0
],
[
1,
0,
0.0818,
0.0045,
0,
0.66,
0.2,
735,
0,
1,
0,
0,
735,
0,
0
],
[
1,
0,
0.0864,
0.0045,
0,
0.66,... | [
"import os.path",
"from robot import utils",
"from robot.errors import DataError",
"from robot.version import get_full_version",
"from loggerhelper import IsLogged",
"class XmlLogger:\n\n def __init__(self, path, log_level='TRACE', split_level=-1, generator='Robot'):\n self._namegen = utils.File... |
# 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.1154,
0.0077,
0,
0.66,
0,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.1308,
0.0077,
0,
0.66,
0.2,
735,
0,
1,
0,
0,
735,
0,
0
],
[
1,
0,
0.1385,
0.0077,
0,
0.6... | [
"import sys",
"from robot import utils",
"from highlighting import Highlighter, NoHighlighting",
"from loggerhelper import IsLogged",
"class CommandLineMonitor:\n\n def __init__(self, width=78, colors='AUTO'):\n self._width = width\n self._highlighter = StatusHighlighter(colors)\n 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.0743,
0.005,
0,
0.66,
0,
878,
0,
1,
0,
0,
878,
0,
0
],
[
1,
0,
0.0792,
0.005,
0,
0.66,
0.125,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.0891,
0.005,
0,
0.66... | [
"import inspect",
"import sys",
"from robot import utils",
"from robot.errors import DataError",
"from loggerhelper import AbstractLoggerProxy",
"from logger import LOGGER",
"if utils.is_jython:\n from java.lang import Object\n from java.util import HashMap",
" from java.lang import Object",
... |
# 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.3137,
0.0196,
0,
0.66,
0,
886,
0,
1,
0,
0,
886,
0,
0
],
[
1,
0,
0.3333,
0.0196,
0,
0.66,
0.1429,
532,
0,
1,
0,
0,
532,
0,
0
],
[
1,
0,
0.3529,
0.0196,
0,
... | [
"from output import Output",
"from logger import LOGGER",
"from monitor import CommandLineMonitor",
"from xmllogger import XmlLogger",
"from loggerhelper import LEVELS, Message",
"from readers import process_output, process_outputs",
"OUTPUT = None",
"def TestSuite(outpath):\n \"\"\"Factory method ... |
# 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.1221,
0.0076,
0,
0.66,
0,
540,
0,
1,
0,
0,
540,
0,
0
],
[
1,
0,
0.1374,
0.0076,
0,
0.66,
0.1,
471,
0,
1,
0,
0,
471,
0,
0
],
[
1,
0,
0.145,
0.0076,
0,
0.66... | [
"import re",
"from robot.common.statistics import Statistics",
"from robot import utils",
"import robot",
"from loggerhelper import AbstractLogger, Message, LEVELS",
"from logger import LOGGER",
"from xmllogger import XmlLogger",
"from listeners import Listeners",
"from debugfile import DebugFile",
... |
# 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.1168,
0.0073,
0,
0.66,
0,
735,
0,
1,
0,
0,
735,
0,
0
],
[
1,
0,
0.1241,
0.0073,
0,
0.66,
0.1667,
299,
0,
1,
0,
0,
299,
0,
0
],
[
14,
0,
0.1752,
0.0657,
0,
... | [
"from robot import utils",
"from robot.errors import DataError",
"LEVELS = {\n \"NONE\" : 100,\n \"ERROR\" : 60,\n \"FAIL\" : 50,\n \"WARN\" : 40,\n \"INFO\" : 30,\n \"DEBUG\" : 20,\n \"TRACE\" : 10,",
"class AbstractLogger:\n\n def __init__(self, level='TRACE'):\n self._is_logged = IsLog... |
# 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.5161,
0.0323,
0,
0.66,
0,
299,
0,
1,
0,
0,
299,
0,
0
],
[
3,
0,
0.8065,
0.4194,
0,
0.66,
1,
411,
0,
3,
0,
0,
0,
0,
3
],
[
2,
1,
0.7419,
0.1613,
1,
0.34,
... | [
"from robot.errors import DataError",
"class BaseLibrary:\n\n def get_handler(self, name):\n try:\n return self.handlers[name]\n except KeyError:\n raise DataError(\"No keyword handler with name '%s' found\" % name)",
" def get_handler(self, name):\n 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.4054,
0.027,
0,
0.66,
0,
299,
0,
1,
0,
0,
299,
0,
0
],
[
3,
0,
0.7432,
0.5405,
0,
0.66,
1,
290,
0,
3,
0,
0,
0,
0,
1
],
[
8,
1,
0.5811,
0.1622,
1,
0.17,
... | [
"from robot.errors import DataError",
"class UserErrorHandler:\n \"\"\"Created if creating handlers fail -- running raises DataError.\n\n The idea is not to raise DataError at processing time and prevent all\n tests in affected test case file from executing. Instead UserErrorHandler\n is created and i... |
# 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.7857,
0.4643,
0,
0.66,
0,
776,
0,
2,
0,
0,
0,
0,
2
],
[
2,
1,
0.75,
0.25,
1,
0.59,
0,
555,
0,
6,
0,
0,
0,
0,
0
],
[
14,
2,
0.6786,
0.0357,
2,
0.13,
0,... | [
"class BaseKeyword:\n\n def __init__(self, name='', args=None, doc='', timeout='', type='kw'):\n self.name = name\n self.args = args or []\n self.doc = doc\n self.timeout = timeout\n self.type = type",
" def __init__(self, name='', args=None, doc='', timeout='', type='kw')... |
# 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.8,
0.05,
0,
0.66,
0,
722,
0,
2,
0,
0,
722,
0,
0
],
[
1,
0,
0.85,
0.05,
0,
0.66,
0.25,
454,
0,
1,
0,
0,
454,
0,
0
],
[
1,
0,
0.9,
0.05,
0,
0.66,
0.5,
... | [
"from model import BaseTestSuite, BaseTestCase",
"from keyword import BaseKeyword",
"from handlers import UserErrorHandler",
"from libraries import BaseLibrary",
"from statistics import Statistics"
] |
# 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.0324,
0.0022,
0,
0.66,
0,
715,
0,
1,
0,
0,
715,
0,
0
],
[
1,
0,
0.0367,
0.0022,
0,
0.66,
0.1429,
35,
0,
1,
0,
0,
35,
0,
0
],
[
1,
0,
0.0389,
0.0022,
0,
0.... | [
"import random",
"from statistics import Stat",
"from robot import utils",
"from robot.errors import DataError",
"class _TestAndSuiteHelper:\n\n def __init__(self, name, parent=None):\n self.name = name\n self.doc = ''\n self.parent = parent\n self.setup = None\n self.t... |
# 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.0452,
0.003,
0,
0.66,
0,
540,
0,
1,
0,
0,
540,
0,
0
],
[
1,
0,
0.0512,
0.003,
0,
0.66,
0.0833,
735,
0,
1,
0,
0,
735,
0,
0
],
[
3,
0,
0.0843,
0.0512,
0,
0.... | [
"import re",
"from robot import utils",
"class Statistics:\n\n def __init__(self, suite, suite_stat_level=-1, tag_stat_include=None,\n tag_stat_exclude=None, tag_stat_combine=None, tag_doc=None,\n tag_stat_link=None):\n self.tags = TagStatistics(tag_stat_include, tag_st... |
#!/usr/bin/env python
"""pt2html.py -- Creates HTML version of Python Tutorial
Usage: pt2html.py
"""
import sys
import os
import shutil
import time
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..', 'userguide'))
import ug2html # This also initializes docutils and pygments
def create_tutorial():
... | [
[
8,
0,
0.125,
0.1111,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.2222,
0.0278,
0,
0.66,
0.125,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.25,
0.0278,
0,
0.66,
... | [
"\"\"\"pt2html.py -- Creates HTML version of Python Tutorial\n\nUsage: pt2html.py\n\"\"\"",
"import sys",
"import os",
"import shutil",
"import time",
"sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..', 'userguide'))",
"import ug2html # This also initializes docutils and pygments",
"de... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.