lines
listlengths
1
444
raw_lines
listlengths
1
444
label
listlengths
1
444
type
listlengths
1
444
[ "def FUNC_6(self):...\n", "VAR_1 = 'http://my.url.com'\n", "VAR_2 = 'True'\n", "url_helper.urllib2.urlopen(mox.IsA(urllib2.Request), timeout=mox.IgnoreArg()\n ).AndReturn(StringIO.StringIO(VAR_2))\n", "self._mox.ReplayAll()\n", "self.assertEqual(url_helper.UrlOpen(VAR_1, method='POSTFORM'), VAR_2)\n", ...
[ "def testUrlOpenPOSTFORMSuccess(self):...\n", "url = 'http://my.url.com'\n", "response = 'True'\n", "url_helper.urllib2.urlopen(mox.IsA(urllib2.Request), timeout=mox.IgnoreArg()\n ).AndReturn(StringIO.StringIO(response))\n", "self._mox.ReplayAll()\n", "self.assertEqual(url_helper.UrlOpen(url, method='P...
[ 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Assign'", "Expr'", "Expr'", "Expr'", "Expr'" ]
[ "@property...\n", "\"\"\"docstring\"\"\"\n", "return self.obj.__name__\n" ]
[ "@property...\n", "\"\"\"docstring\"\"\"\n", "return self.obj.__name__\n" ]
[ 0, 0, 0 ]
[ "Condition", "Docstring", "Return'" ]
[ "def FUNC_29(VAR_42):...\n", "\"\"\"docstring\"\"\"\n", "VAR_42 = str(VAR_42)\n", "if len(VAR_42) < 4:\n", "VAR_42 += '__'\n", "VAR_54 = VAR_42[0:3]\n", "VAR_55 = VAR_42[3].replace('_', '')\n", "VAR_56 = VAR_42[4].replace('_', '')\n", "return VAR_54, VAR_55, VAR_56\n" ]
[ "def _parse_marc_code(field):...\n", "\"\"\"docstring\"\"\"\n", "field = str(field)\n", "if len(field) < 4:\n", "field += '__'\n", "tag = field[0:3]\n", "ind1 = field[3].replace('_', '')\n", "ind2 = field[4].replace('_', '')\n", "return tag, ind1, ind2\n" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Assign'", "Condition", "AugAssign'", "Assign'", "Assign'", "Assign'", "Return'" ]
[ "\"\"\"string\"\"\"\n", "__revision__ = '$Rev$'\n", "__date__ = '$Date$'\n", "__author__ = '$Author$'\n", "from django.db import connection, models, transaction\n", "def FUNC_0(self, **VAR_0):...\n", "\"\"\"docstring\"\"\"\n", "VAR_1 = ['UPDATE', connection.ops.quote_name(self._meta.db_table), 'SET']\...
[ "\"\"\"\nUpdate only selected fields of a model.\n\nThe problem with model.save() is that it also overwrites all other\nfields with possibly stale data.\n\"\"\"\n", "__revision__ = '$Rev$'\n", "__date__ = '$Date$'\n", "__author__ = '$Author$'\n", "from django.db import connection, models, transaction\n", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 4, 4, 4, 4, 0, 4, 4, 4, 0, 4, 4 ]
[ "Expr'", "Assign'", "Assign'", "Assign'", "ImportFrom'", "FunctionDef'", "Docstring", "Assign'", "For", "Expr'", "Expr'", "Assign'", "Expr'", "Assign'", "Assign'", "Condition", "Expr'", "Assign'", "Condition", "Expr'", "Expr'", "Assign'", "Condition", "Assign'", "Assi...
[ "def FUNC_4():...\n", "\"\"\"docstring\"\"\"\n", "FUNC_1('delete from Match')\n" ]
[ "def deleteMatches():...\n", "\"\"\"docstring\"\"\"\n", "execute('delete from Match')\n" ]
[ 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Expr'" ]
[ "def FUNC_15(self):...\n", "self.run_test_case(self.scenario.enable_server_group())\n" ]
[ "def test_f_enable_server_group(self):...\n", "self.run_test_case(self.scenario.enable_server_group())\n" ]
[ 0, 0 ]
[ "FunctionDef'", "Expr'" ]
[ "import os\n", "import hashlib\n", "import imghdr\n", "from webapp.web import BaseHandler\n", "from model import dbapi\n", "VAR_0 = 5000000\n", "def FUNC_0(self):...\n", "if self.check_xsrf_cookie() == False:\n", "return self.redirect('ftypeerror')\n", "def FUNC_1(self):...\n", "VAR_2 = self.get...
[ "import os\n", "import hashlib\n", "import imghdr\n", "from webapp.web import BaseHandler\n", "from model import dbapi\n", "MAX_FILE_SIZE = 5000000\n", "def check_xsrf(self):...\n", "if self.check_xsrf_cookie() == False:\n", "return self.redirect('ftypeerror')\n", "def check(self):...\n", "sid =...
[ 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "Import'", "Import'", "Import'", "ImportFrom'", "ImportFrom'", "Assign'", "FunctionDef'", "Condition", "Return'", "FunctionDef'", "Assign'", "Condition", "Return'", "Assign'", "Assign'", "Condition", "Assign'", "Expr'", "Condition", "Return'", "Assign'", "FunctionDef'", "...
[ "def __eq__(self, VAR_10):...\n", "if VAR_10:\n", "return self.name == VAR_10.name and self.address == VAR_10.address\n" ]
[ "def __eq__(self, other):...\n", "if other:\n", "return self.name == other.name and self.address == other.address\n" ]
[ 0, 0, 0 ]
[ "FunctionDef'", "Condition", "Return'" ]
[ "def FUNC_45(VAR_25):...\n", "if VAR_25.fieldtype == 'Table':\n", "return '{}: {}: {}'.format(_('Error'), _('Data missing in table'), _(VAR_25\n .label))\n", "if self.parentfield:\n", "return '{}: {} {} #{}: {}: {}'.format(_('Error'), VAR_54.bold(_(self.\n doctype)), _('Row'), self.idx, _('Value missi...
[ "def get_msg(df):...\n", "if df.fieldtype == 'Table':\n", "return '{}: {}: {}'.format(_('Error'), _('Data missing in table'), _(df.label))\n", "if self.parentfield:\n", "return '{}: {} {} #{}: {}: {}'.format(_('Error'), frappe.bold(_(self.\n doctype)), _('Row'), self.idx, _('Value missing for'), _(df.lab...
[ 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Condition", "Return'", "Condition", "Return'", "Return'" ]
[ "def FUNC_6(self, VAR_13):...\n", "if VAR_13:\n", "VAR_13 = VAR_100(VAR_13.split('[')[1].strip(']'))\n", "return 'en'\n", "if VAR_13 in g.all_languages:\n", "return VAR_13\n" ]
[ "def run(self, lang):...\n", "if lang:\n", "lang = str(lang.split('[')[1].strip(']'))\n", "return 'en'\n", "if lang in g.all_languages:\n", "return lang\n" ]
[ 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Condition", "Assign'", "Return'", "Condition", "Return'" ]
[ "def FUNC_0():...\n", "\"\"\"docstring\"\"\"\n", "return psycopg2.connect('dbname=%s' % VAR_0)\n" ]
[ "def connect():...\n", "\"\"\"docstring\"\"\"\n", "return psycopg2.connect('dbname=%s' % DBNAME)\n" ]
[ 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Return'" ]
[ "def FUNC_10(self):...\n", "self.compilation_ok('string')\n", "self.representation_is('string')\n" ]
[ "def test_nested_blocks(self):...\n", "self.compilation_ok(\n \"\"\"\nif header :contains \"Sender\" \"example.com\" {\n if header :contains \"Sender\" \"me@\" {\n discard;\n } elsif header :contains \"Sender\" \"you@\" {\n keep;\n }\n}\n\"\"\"\n )\n", "self.representation_is(\n \"\"\"\nif (ty...
[ 0, 0, 0 ]
[ "FunctionDef'", "Expr'", "Expr'" ]
[ "def FUNC_6(self, VAR_8, VAR_9=None):...\n", "\"\"\"docstring\"\"\"\n", "if not self.fileExists(VAR_8):\n", "if not VAR_9:\n", "print('addFile: File already exists!')\n", "VAR_9 = utils.FileUtils.getModificationTimeUnix(VAR_8)\n", "VAR_7 = (\"INSERT INTO {0} (type, path, mod_time) VALUES (0, '{1}', {2})...
[ "def addFile(self, pth, mod_time=None):...\n", "\"\"\"docstring\"\"\"\n", "if not self.fileExists(pth):\n", "if not mod_time:\n", "print('addFile: File already exists!')\n", "mod_time = utils.FileUtils.getModificationTimeUnix(pth)\n", "command = (\"INSERT INTO {0} (type, path, mod_time) VALUES (0, '{1}'...
[ 0, 0, 0, 0, 0, 0, 4, 0 ]
[ "FunctionDef'", "Docstring", "Condition", "Condition", "Expr'", "Assign'", "Assign'", "Expr'" ]
[ "def FUNC_0(VAR_0, VAR_1, VAR_2):...\n", "VAR_3 = VAR_2.connect()\n", "VAR_4 = VAR_3.cursor()\n", "VAR_5 = \"SELECT userEmail, password FROM Users WHERE userEmail = '{0}'\".format(\n VAR_0)\n", "VAR_4.execute(VAR_5)\n", "VAR_6 = VAR_4.fetchone()\n", "if VAR_6 is not None:\n", "return check_password...
[ "def validateCredentials(username, password, sqlInstance):...\n", "conn = sqlInstance.connect()\n", "cursor = conn.cursor()\n", "getUsernameAndPassword = (\n \"SELECT userEmail, password FROM Users WHERE userEmail = '{0}'\".format(\n username))\n", "cursor.execute(getUsernameAndPassword)\n", "result...
[ 0, 0, 0, 4, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Assign'", "Assign'", "Expr'", "Assign'", "Condition", "Return'", "Return'" ]
[ "def FUNC_1(VAR_6):...\n", "VAR_18 = VAR_6.result()\n", "if VAR_18.status_code == requests.codes.server_error:\n", "FUNC_4(VAR_18.json())\n", "VAR_18.raise_for_status()\n", "if VAR_18.text:\n", "return VAR_18.json()\n", "return None\n" ]
[ "def JsonFromFuture(future):...\n", "response = future.result()\n", "if response.status_code == requests.codes.server_error:\n", "_RaiseExceptionForData(response.json())\n", "response.raise_for_status()\n", "if response.text:\n", "return response.json()\n", "return None\n" ]
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Condition", "Expr'", "Expr'", "Condition", "Return'", "Return'" ]
[ "def __init__(self, VAR_8='dig', **VAR_1):...\n", "super().__init__(VAR_8, **kwargs)\n", "self.argparse.add_argument('-s', '--server', '--at', default=None, help=\n 'Server to ask for the record', dest='at')\n", "self.argparse.add_argument('kind', metavar='RECTYPE', nargs='?', default=\n None, type=lamb...
[ "def __init__(self, command_name='dig', **kwargs):...\n", "super().__init__(command_name, **kwargs)\n", "self.argparse.add_argument('-s', '--server', '--at', default=None, help=\n 'Server to ask for the record', dest='at')\n", "self.argparse.add_argument('kind', metavar='RECTYPE', nargs='?', default=\n ...
[ 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Expr'", "Expr'", "Expr'", "Expr'" ]
[ "def FUNC_19(self, *VAR_18):...\n", "\"\"\"docstring\"\"\"\n", "self.order.append(list(VAR_18))\n" ]
[ "def add(self, *rulenames):...\n", "\"\"\"docstring\"\"\"\n", "self.order.append(list(rulenames))\n" ]
[ 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Expr'" ]
[ "__author__ = 'Johannes Köster'\n", "__copyright__ = 'Copyright 2015, Johannes Köster'\n", "__email__ = 'koester@jimmy.harvard.edu'\n", "__license__ = 'MIT'\n", "import os\n", "import re\n", "import stat\n", "import time\n", "import json\n", "from itertools import product, chain\n", "from collec...
[ "__author__ = 'Johannes Köster'\n", "__copyright__ = 'Copyright 2015, Johannes Köster'\n", "__email__ = 'koester@jimmy.harvard.edu'\n", "__license__ = 'MIT'\n", "import os\n", "import re\n", "import stat\n", "import time\n", "import json\n", "from itertools import product, chain\n", "from collec...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0 ]
[ "Assign'", "Assign'", "Assign'", "Assign'", "Import'", "Import'", "Import'", "Import'", "Import'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "FunctionDef'", "Return'" ]
[ "import os\n", "import fnmatch\n", "from soscollector.clusters import Cluster\n", "from getpass import getpass\n", "VAR_0 = 'ovirt-engine',\n", "VAR_1 = [('no-database', False, 'Do not collect a database dump'), (\n 'cluster', '', 'Only collect from hosts in this cluster'), (\n 'datacenter', '', 'On...
[ "import os\n", "import fnmatch\n", "from soscollector.clusters import Cluster\n", "from getpass import getpass\n", "packages = 'ovirt-engine',\n", "option_list = [('no-database', False, 'Do not collect a database dump'), (\n 'cluster', '', 'Only collect from hosts in this cluster'), (\n 'datacenter'...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "Import'", "Import'", "ImportFrom'", "ImportFrom'", "Assign'", "Assign'", "FunctionDef'", "Assign'", "Condition", "Assign'", "Expr'", "FunctionDef'", "Assign'", "Assign'", "Assign'", "AugAssign'", "Expr'", "FunctionDef'", "Condition", "Return'", "Assign'", "Condition", "A...
[ "def FUNC_53(self):...\n", "VAR_2 = {'nosec': 2, 'loc': 7, 'issues': {'CONFIDENCE': {'HIGH': 5},\n 'SEVERITY': {'LOW': 5}}}\n", "self.check_metrics('skip.py', VAR_2)\n", "VAR_2 = {'nosec': 0, 'loc': 4, 'issues': {'CONFIDENCE': {'HIGH': 2},\n 'SEVERITY': {'LOW': 2}}}\n", "self.check_metrics('imports.py...
[ "def test_metric_gathering(self):...\n", "expect = {'nosec': 2, 'loc': 7, 'issues': {'CONFIDENCE': {'HIGH': 5},\n 'SEVERITY': {'LOW': 5}}}\n", "self.check_metrics('skip.py', expect)\n", "expect = {'nosec': 0, 'loc': 4, 'issues': {'CONFIDENCE': {'HIGH': 2},\n 'SEVERITY': {'LOW': 2}}}\n", "self.check_me...
[ 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Expr'", "Assign'", "Expr'" ]
[ "def FUNC_5(self, VAR_7=False, VAR_4=None):...\n", "if not self.profile:\n", "VAR_28 = _('You need to sign in and enroll to submit exercises.')\n", "VAR_21, VAR_17, VAR_18 = self.exercise.check_submission_allowed(self.\n profile, VAR_4)\n", "messages.error(self.request, VAR_28)\n", "if len(VAR_17) > 0:...
[ "def submission_check(self, error=False, request=None):...\n", "if not self.profile:\n", "issue = _('You need to sign in and enroll to submit exercises.')\n", "submission_status, issues, students = self.exercise.check_submission_allowed(\n self.profile, request)\n", "messages.error(self.request, issue)\n...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Condition", "Assign'", "Assign'", "Expr'", "Condition", "Return'", "Condition", "Assign'", "Expr'", "Expr'", "Return'" ]
[ "@integration_synonym_api...\n", "FUNC_2(VAR_2)\n", "FUNC_3(VAR_2, 'KNAT', VAR_7='1')\n", "FUNC_5(VAR_4, VAR_5, VAR_11='NAT', VAR_10=[{'name': '----NAT'}, {'name':\n 'KNAT'}])\n" ]
[ "@integration_synonym_api...\n", "clean_database(solr)\n", "seed_database_with(solr, 'KNAT', id='1')\n", "verify_results(client, jwt, query='NAT', expected=[{'name': '----NAT'}, {\n 'name': 'KNAT'}])\n" ]
[ 0, 0, 0, 0 ]
[ "Condition", "Expr'", "Expr'", "Expr'" ]
[ "def FUNC_30(self, VAR_21, VAR_23=True):...\n", "\"\"\"docstring\"\"\"\n", "if VAR_21 == '/':\n", "VAR_57 = {VAR_2: VAR_12, VAR_3: 0, VAR_4: 0, VAR_5: 4096, VAR_6: 16877,\n VAR_7: time.time()}\n", "VAR_57 = self.getfile(VAR_21, VAR_23=follow_symlinks)\n", "if VAR_57 == False:\n", "return CLASS_3(VAR_...
[ "def stat(self, path, follow_symlinks=True):...\n", "\"\"\"docstring\"\"\"\n", "if path == '/':\n", "p = {A_TYPE: T_DIR, A_UID: 0, A_GID: 0, A_SIZE: 4096, A_MODE: 16877,\n A_CTIME: time.time()}\n", "p = self.getfile(path, follow_symlinks=follow_symlinks)\n", "if p == False:\n", "return _statobj(p[A_M...
[ 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Condition", "Assign'", "Assign'", "Condition", "Return'" ]
[ "def FUNC_0(self, VAR_27):...\n", "VAR_22 = self.gic.unproxy(self)\n", "VAR_32 = FdtNode('interrupt-controller')\n", "VAR_32.appendCompatible(['gem5,gic', 'arm,cortex-a15-gic', 'arm,cortex-a9-gic']\n )\n", "VAR_32.append(FdtPropertyWords('#interrupt-cells', [3]))\n", "VAR_32.append(FdtPropertyWords('#a...
[ "def generateDeviceTree(self, state):...\n", "gic = self.gic.unproxy(self)\n", "node = FdtNode('interrupt-controller')\n", "node.appendCompatible(['gem5,gic', 'arm,cortex-a15-gic', 'arm,cortex-a9-gic'])\n", "node.append(FdtPropertyWords('#interrupt-cells', [3]))\n", "node.append(FdtPropertyWords('#address...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Assign'", "Expr'", "Expr'", "Expr'", "Expr'", "Assign'", "Expr'", "Expr'", "Expr'", "Expr'" ]
[ "def FUNC_26():...\n", "frappe.throw(_('Cannot use sub-query or function in fields'), frappe.DataError)\n" ]
[ "def _raise_exception():...\n", "frappe.throw(_('Cannot use sub-query or function in fields'), frappe.DataError)\n" ]
[ 0, 0 ]
[ "FunctionDef'", "Expr'" ]
[ "def FUNC_26(self, VAR_74):...\n", "def FUNC_39(VAR_101):...\n", "VAR_101.benchmark = VAR_74\n", "return VAR_101\n" ]
[ "def benchmark(self, benchmark):...\n", "def decorate(ruleinfo):...\n", "ruleinfo.benchmark = benchmark\n", "return ruleinfo\n" ]
[ 0, 0, 0, 0 ]
[ "FunctionDef'", "FunctionDef'", "Assign'", "Return'" ]
[ "def FUNC_0(self, VAR_3, VAR_4=True):...\n", "def FUNC_21(VAR_16):...\n", "return (VAR_16.input, VAR_16.dynamic_input) if VAR_4 else (VAR_16.output,\n VAR_16.dynamic_output)\n" ]
[ "def dynamic_branch(self, wildcards, input=True):...\n", "def get_io(rule):...\n", "return (rule.input, rule.dynamic_input) if input else (rule.output, rule.\n dynamic_output)\n" ]
[ 0, 0, 0 ]
[ "FunctionDef'", "FunctionDef'", "Return'" ]
[ "def FUNC_0(self):...\n", "self.cmd += ' get nodes'\n", "if self.get_option('label'):\n", "self.cmd += ' -l %s ' % self.get_option('label')\n", "VAR_6 = self.exec_master_cmd(self.cmd)\n", "if VAR_6['status'] == 0:\n", "VAR_7 = []\n", "VAR_8 = [x for x in self.get_option('role').split(',') if x]\n", ...
[ "def get_nodes(self):...\n", "self.cmd += ' get nodes'\n", "if self.get_option('label'):\n", "self.cmd += ' -l %s ' % self.get_option('label')\n", "res = self.exec_master_cmd(self.cmd)\n", "if res['status'] == 0:\n", "nodes = []\n", "roles = [x for x in self.get_option('role').split(',') if x]\n", "...
[ 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "AugAssign'", "Condition", "AugAssign'", "Assign'", "Condition", "Assign'", "Assign'", "For", "Assign'", "Return'", "Condition", "Expr'", "Condition", "Expr'" ]
[ "def FUNC_2(self, VAR_7, VAR_8=None, VAR_9=False):...\n", "\"\"\"docstring\"\"\"\n", "VAR_2 = Database().view_submit(VAR_7)\n", "VAR_15, VAR_16 = [], []\n", "for VAR_6 in VAR_2.data['data']:\n", "if VAR_6['type'] == 'file':\n", "return {'files': VAR_15, 'path': VAR_2.tmp_path}\n", "VAR_22 = Storage.ge...
[ "def get_files(self, submit_id, password=None, astree=False):...\n", "\"\"\"docstring\"\"\"\n", "submit = Database().view_submit(submit_id)\n", "files, duplicates = [], []\n", "for data in submit.data['data']:\n", "if data['type'] == 'file':\n", "return {'files': files, 'path': submit.tmp_path}\n", "f...
[ 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 0 ]
[ "FunctionDef'", "Docstring", "Assign'", "Assign'", "For", "Condition", "Return'", "Assign'", "Condition", "Assign'", "Expr'", "Assign'", "Assign'", "Condition", "Assign'", "Expr'" ]
[ "def FUNC_18(self, VAR_10, VAR_1=None, VAR_65=None):...\n", "VAR_100 = CLASS_2(self, VAR_10, VAR_1, VAR_65)\n", "self._subworkflows[VAR_10] = VAR_100\n", "self.globals[VAR_10] = VAR_100.target\n" ]
[ "def subworkflow(self, name, snakefile=None, workdir=None):...\n", "sw = Subworkflow(self, name, snakefile, workdir)\n", "self._subworkflows[name] = sw\n", "self.globals[name] = sw.target\n" ]
[ 0, 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Assign'", "Assign'" ]
[ "def __init__(self, VAR_19=False, *VAR_20, **VAR_21):...\n", "super(CLASS_5, self).__init__(*VAR_20, VAR_19=csrf_enabled, **kwargs)\n" ]
[ "def __init__(self, csrf_enabled=False, *args, **kwargs):...\n", "super(ChangeInputAddDelta, self).__init__(*args, csrf_enabled=csrf_enabled,\n **kwargs)\n" ]
[ 0, 0 ]
[ "FunctionDef'", "Expr'" ]
[ "def FUNC_34(VAR_25):...\n", "VAR_24 = os.environ.get(VAR_25)\n", "return self.Location.from_home(VAR_24) if VAR_24 else None\n" ]
[ "def env_home(home_env_var):...\n", "home = os.environ.get(home_env_var)\n", "return self.Location.from_home(home) if home else None\n" ]
[ 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Return'" ]
[ "def FUNC_33(self, VAR_48):...\n", "VAR_69, VAR_73 = self.get('/mail/%s' % VAR_48)\n", "return VAR_69\n" ]
[ "def get_mail(self, mail_ident):...\n", "res, req = self.get('/mail/%s' % mail_ident)\n", "return res\n" ]
[ 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Return'" ]
[ "@utils.synchronized('3par', external=True)...\n", "" ]
[ "@utils.synchronized('3par', external=True)...\n", "" ]
[ 0, 0 ]
[ "Condition", "Condition" ]
[ "@frappe.whitelist(allow_guest=True)...\n", "from frappe.www.contact import send_message as website_send_message\n", "VAR_4 = VAR_5 = None\n", "website_send_message(VAR_0, VAR_1, VAR_2)\n", "VAR_5 = frappe.db.sql('string'.format(email_id=sender))\n", "if not VAR_5:\n", "VAR_4 = frappe.db.get_value('Lead...
[ "@frappe.whitelist(allow_guest=True)...\n", "from frappe.www.contact import send_message as website_send_message\n", "lead = customer = None\n", "website_send_message(subject, message, sender)\n", "customer = frappe.db.sql(\n \"\"\"select distinct dl.link_name from `tabDynamic Link` dl\n\t\tleft join `ta...
[ 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "Condition", "ImportFrom'", "Assign'", "Expr'", "Assign'", "Condition", "Assign'", "Assign'", "Condition", "Condition", "Assign'", "Assign'", "Condition", "Expr'", "Assign'", "Assign'", "Assign'", "Expr'", "Return'" ]
[ "def FUNC_15(self, VAR_6, VAR_9):...\n", "\"\"\"docstring\"\"\"\n", "VAR_20 = None\n", "VAR_10 = self.common._safe_hostname(VAR_9['host'])\n", "VAR_25 = self.common.get_cpg(VAR_6, allowSnap=True)\n", "VAR_12 = self.common.get_domain(VAR_25)\n", "VAR_20 = self.common._get_3par_host(VAR_10)\n", "VAR_13 ...
[ "def _create_host(self, volume, connector):...\n", "\"\"\"docstring\"\"\"\n", "host = None\n", "hostname = self.common._safe_hostname(connector['host'])\n", "cpg = self.common.get_cpg(volume, allowSnap=True)\n", "domain = self.common.get_domain(cpg)\n", "host = self.common._get_3par_host(hostname)\n", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Assign'", "Assign'", "Assign'", "Assign'", "Assign'", "Assign'", "Return'", "Condition", "Assign'", "Expr'", "Assign'", "Assign'" ]
[ "def FUNC_43(self, VAR_9, VAR_25):...\n", "return cast_fieldtype(VAR_25.fieldtype, VAR_9)\n" ]
[ "def cast(self, value, df):...\n", "return cast_fieldtype(df.fieldtype, value)\n" ]
[ 0, 0 ]
[ "FunctionDef'", "Return'" ]
[ "def FUNC_11(self, VAR_12):...\n", "VAR_5 = {}\n", "VAR_5['serverName'] = VAR_12['host']\n", "VAR_16 = self._cliq_run_xml('getServerInfo', VAR_5, False)\n", "VAR_33 = VAR_16.find('response')\n", "VAR_34 = VAR_33.attrib.get('result')\n", "if VAR_34 != '0':\n", "VAR_5 = {}\n", "VAR_5['serverName'] = V...
[ "def _create_server(self, connector):...\n", "cliq_args = {}\n", "cliq_args['serverName'] = connector['host']\n", "out = self._cliq_run_xml('getServerInfo', cliq_args, False)\n", "response = out.find('response')\n", "result = response.attrib.get('result')\n", "if result != '0':\n", "cliq_args = {}\n",...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Assign'", "Assign'", "Assign'", "Assign'", "Condition", "Assign'", "Assign'", "Assign'", "Expr'" ]
[ "def FUNC_26(self):...\n", "FUNC_4()\n" ]
[ "def setUp(self):...\n", "create_dummy_data()\n" ]
[ 0, 0 ]
[ "FunctionDef'", "Expr'" ]
[ "from __future__ import unicode_literals\n", "from django.db import models, migrations\n", "VAR_0 = [('external_services', '0001_initial')]\n", "VAR_1 = [migrations.AlterField(model_name='linkservice', name='enabled',\n field=models.BooleanField(help_text=\n 'If not enabled, the service is disabled for ...
[ "from __future__ import unicode_literals\n", "from django.db import models, migrations\n", "dependencies = [('external_services', '0001_initial')]\n", "operations = [migrations.AlterField(model_name='linkservice', name=\n 'enabled', field=models.BooleanField(help_text=\n 'If not enabled, the service is ...
[ 0, 0, 0, 4 ]
[ "ImportFrom'", "ImportFrom'", "Assign'", "Assign'" ]
[ "import logging\n", "import mock\n", "import os\n", "def FUNC_0(VAR_0):...\n", "\"\"\"docstring\"\"\"\n", "VAR_3 = []\n", "for i in range(VAR_0):\n", "VAR_9 = mock.MagicMock(VAR_8='AndroidDevice', VAR_4=str(i), h_port=None)\n", "return VAR_3\n", "VAR_3.append(VAR_9)\n" ]
[ "import logging\n", "import mock\n", "import os\n", "def get_mock_ads(num):...\n", "\"\"\"docstring\"\"\"\n", "ads = []\n", "for i in range(num):\n", "ad = mock.MagicMock(name='AndroidDevice', serial=str(i), h_port=None)\n", "return ads\n", "ads.append(ad)\n" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "Import'", "Import'", "Import'", "FunctionDef'", "Docstring", "Assign'", "For", "Assign'", "Return'", "Expr'" ]
[ "def FUNC_31(VAR_45, VAR_42):...\n", "if VAR_45.attrib.get('widget', False) == 'float_time':\n", "VAR_45.set('widget', 'float')\n", "for child in VAR_45:\n", "FUNC_31(child, VAR_42)\n", "return True\n" ]
[ "def _check_rec(eview, tm):...\n", "if eview.attrib.get('widget', False) == 'float_time':\n", "eview.set('widget', 'float')\n", "for child in eview:\n", "_check_rec(child, tm)\n", "return True\n" ]
[ 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Condition", "Expr'", "For", "Expr'", "Return'" ]
[ "def __init__(self, VAR_3, VAR_4):...\n", "self.tok = VAR_3\n", "self.txt = VAR_4\n" ]
[ "def __init__(self, tok, txt):...\n", "self.tok = tok\n", "self.txt = txt\n" ]
[ 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Assign'" ]
[ "def FUNC_2():...\n", "for blog in frappe.db.sql_list(\n", "clear_cache(blog)\n", "clear_cache('writers')\n" ]
[ "def clear_blog_cache():...\n", "for blog in frappe.db.sql_list(\n", "clear_cache(blog)\n", "clear_cache('writers')\n" ]
[ 0, 0, 0, 0 ]
[ "FunctionDef'", "For", "Expr'", "Expr'" ]
[ "def __init__(self, VAR_2=None):...\n", "self.total = 0\n", "self.success = 0\n", "self.failure = 0\n", "self.error = 0\n", "self.undecided = 0\n", "self.total_time = 0.0\n", "self.max_time = 0.0\n", "self.log_dir = VAR_2\n", "if self.log_dir is not None:\n", "os.makedirs(self.log_dir)\n" ]
[ "def __init__(self, log_dir=None):...\n", "self.total = 0\n", "self.success = 0\n", "self.failure = 0\n", "self.error = 0\n", "self.undecided = 0\n", "self.total_time = 0.0\n", "self.max_time = 0.0\n", "self.log_dir = log_dir\n", "if self.log_dir is not None:\n", "os.makedirs(self.log_dir)\n" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Assign'", "Assign'", "Assign'", "Assign'", "Assign'", "Assign'", "Assign'", "Condition", "Expr'" ]
[ "def FUNC_22(self):...\n", "return bool(self._latest_file_parse_request and self.\n _latest_file_parse_request.Done())\n" ]
[ "def DiagnosticsForCurrentFileReady(self):...\n", "return bool(self._latest_file_parse_request and self.\n _latest_file_parse_request.Done())\n" ]
[ 0, 0 ]
[ "FunctionDef'", "Return'" ]
[ "def FUNC_41(VAR_9, VAR_8=True):...\n", "VAR_102, VAR_45 = FUNC_5(VAR_9, VAR_8=load_from_cache)\n", "VAR_103 = VAR_9.split('https://')[-1].split('.')[0]\n", "VAR_46 = BeautifulSoup(VAR_102, 'html.parser')\n", "VAR_104 = VAR_46.find_all('a')\n", "VAR_105 = []\n", "for link in VAR_104:\n", "if link.has_...
[ "def get_bracket_urls_from_scene(scene_url, load_from_cache=True):...\n", "scene_brackets_html, status = hit_url(scene_url, load_from_cache=\n load_from_cache)\n", "scene_name = scene_url.split('https://')[-1].split('.')[0]\n", "soup = BeautifulSoup(scene_brackets_html, 'html.parser')\n", "links = soup.f...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Assign'", "Assign'", "Assign'", "Assign'", "For", "Condition", "Return'", "Assign'", "Condition", "Expr'", "Condition", "Return'" ]
[ "def FUNC_4(self, *VAR_4, **VAR_6):...\n", "\"\"\"docstring\"\"\"\n", "for VAR_9 in VAR_4:\n", "self._set_inoutput_item(VAR_9)\n", "for VAR_10, VAR_9 in VAR_6.items():\n", "self._set_inoutput_item(VAR_9, VAR_10=name)\n" ]
[ "def set_input(self, *input, **kwinput):...\n", "\"\"\"docstring\"\"\"\n", "for item in input:\n", "self._set_inoutput_item(item)\n", "for name, item in kwinput.items():\n", "self._set_inoutput_item(item, name=name)\n" ]
[ 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "For", "Expr'", "For", "Expr'" ]
[ "import django_tables2 as tables\n", "from .models import campaign, event, injection, result, simics_memory_diff, simics_register_diff\n", "VAR_0 = tables.TemplateColumn(\n '<a href=\"/campaign/{{ value }}/results\">{{ value }}</a>', accessor='id')\n", "VAR_1 = tables.Column()\n", "VAR_2 = tables.Column(...
[ "import django_tables2 as tables\n", "from .models import campaign, event, injection, result, simics_memory_diff, simics_register_diff\n", "id_ = tables.TemplateColumn(\n '<a href=\"/campaign/{{ value }}/results\">{{ value }}</a>', accessor='id')\n", "num_cycles = tables.Column()\n", "results = tables.Co...
[ 0, 0, 0, 0, 0, 0, 0 ]
[ "Import'", "ImportFrom'", "Assign'", "Assign'", "Assign'", "FunctionDef'", "Return'" ]
[ "def FUNC_10(self, *VAR_11, **VAR_12):...\n", "for VAR_9 in VAR_11:\n", "self._set_params_item(VAR_9)\n", "for VAR_10, VAR_9 in VAR_12.items():\n", "self._set_params_item(VAR_9, VAR_10=name)\n" ]
[ "def set_params(self, *params, **kwparams):...\n", "for item in params:\n", "self._set_params_item(item)\n", "for name, item in kwparams.items():\n", "self._set_params_item(item, name=name)\n" ]
[ 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "For", "Expr'", "For", "Expr'" ]
[ "def FUNC_1():...\n", "VAR_1, VAR_3, VAR_4, VAR_5 = FUNC_0()\n", "VAR_6 = sum(VAR_4.values())\n", "VAR_7 = set(VAR_4.keys())\n", "def FUNC_2(VAR_8, VAR_9):...\n", "if VAR_8 == VAR_1 - 1:\n", "VAR_15 = [frozenset((VAR_9[i], VAR_9[i + 1])) for i in range(len(VAR_9) - 1)]\n", "for node in VAR_3[VAR_8]:\n...
[ "def main():...\n", "num_points, adj_lst, trail_len, trail_len_duplicate_count = inp()\n", "shortest_path = sum(trail_len.values())\n", "flower_path = set(trail_len.keys())\n", "def dfs_recur(current_node, path):...\n", "if current_node == num_points - 1:\n", "edges = [frozenset((path[i], path[i + 1])) ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Assign'", "Assign'", "FunctionDef'", "Condition", "Assign'", "For", "Assign'", "Condition", "Expr'", "Condition", "Expr'", "Return'", "Assign'", "Condition", "Expr'", "Assign'", "Assign'", "Expr'" ]
[ "def FUNC_1(VAR_0, VAR_1):...\n", "return os.utime(VAR_0, VAR_1, follow_symlinks=os.utime not in os.\n supports_follow_symlinks)\n" ]
[ "def lutime(f, times):...\n", "return os.utime(f, times, follow_symlinks=os.utime not in os.\n supports_follow_symlinks)\n" ]
[ 0, 0 ]
[ "FunctionDef'", "Return'" ]
[ "from pykeg.core import models\n", "from django.core.urlresolvers import reverse\n", "from django.http import HttpResponse\n", "from django.http import HttpResponseRedirect\n", "from django.shortcuts import get_object_or_404\n", "def FUNC_0(self, VAR_0, VAR_1, VAR_2, VAR_3):...\n", "\"\"\"docstring\"\"\...
[ "from pykeg.core import models\n", "from django.core.urlresolvers import reverse\n", "from django.http import HttpResponse\n", "from django.http import HttpResponseRedirect\n", "from django.shortcuts import get_object_or_404\n", "def process_view(self, request, view_func, view_args, view_kwargs):...\n", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "ImportFrom'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "FunctionDef'", "Docstring", "Assign'", "Condition", "Assign'", "Assign'", "Return'" ]
[ "def FUNC_2(self):...\n", "self.assertEqual('/Course-Url/T-00.1000_d1/', self.current_course_instance.\n get_absolute_url())\n", "self.assertEqual('/Course-Url/T-00.1000_hidden/', self.\n hidden_course_instance.get_absolute_url())\n" ]
[ "def test_course_url(self):...\n", "self.assertEqual('/Course-Url/T-00.1000_d1/', self.current_course_instance.\n get_absolute_url())\n", "self.assertEqual('/Course-Url/T-00.1000_hidden/', self.\n hidden_course_instance.get_absolute_url())\n" ]
[ 0, 0, 0 ]
[ "FunctionDef'", "Expr'", "Expr'" ]
[ "def FUNC_0(VAR_0, VAR_1):...\n", "return chain(*map(attrgetter(VAR_1), VAR_0))\n" ]
[ "def jobfiles(jobs, type):...\n", "return chain(*map(attrgetter(type), jobs))\n" ]
[ 0, 0 ]
[ "FunctionDef'", "Return'" ]
[ "def FUNC_4(self, VAR_9):...\n", "\"\"\"docstring\"\"\"\n", "VAR_5 = {}\n", "VAR_5['volumeName'] = VAR_9\n", "VAR_18 = self._cliq_run_xml('getVolumeInfo', VAR_5)\n", "VAR_23 = {}\n", "VAR_24 = VAR_18.find('response/volume')\n", "for VAR_43, v in VAR_24.attrib.items():\n", "VAR_23['volume.' + VAR_43]...
[ "def _cliq_get_volume_info(self, volume_name):...\n", "\"\"\"docstring\"\"\"\n", "cliq_args = {}\n", "cliq_args['volumeName'] = volume_name\n", "result_xml = self._cliq_run_xml('getVolumeInfo', cliq_args)\n", "volume_attributes = {}\n", "volume_node = result_xml.find('response/volume')\n", "for k, v i...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Assign'", "Assign'", "Assign'", "Assign'", "Assign'", "For", "Assign'", "Assign'", "Condition", "For", "Assign'", "Assign'", "Condition", "For", "Expr'", "Assign'", "Return'" ]
[ "def FUNC_2(VAR_8, VAR_9):...\n", "if VAR_8 == VAR_1 - 1:\n", "VAR_15 = [frozenset((VAR_9[i], VAR_9[i + 1])) for i in range(len(VAR_9) - 1)]\n", "for node in VAR_3[VAR_8]:\n", "VAR_13 = sum(VAR_4[edge] for edge in VAR_15)\n", "if node not in VAR_9:\n", "if VAR_13 < VAR_6:\n", "VAR_9.append(node)\n", ...
[ "def dfs_recur(current_node, path):...\n", "if current_node == num_points - 1:\n", "edges = [frozenset((path[i], path[i + 1])) for i in range(len(path) - 1)]\n", "for node in adj_lst[current_node]:\n", "length = sum(trail_len[edge] for edge in edges)\n", "if node not in path:\n", "if length < shortest_p...
[ 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0 ]
[ "FunctionDef'", "Condition", "Assign'", "For", "Assign'", "Condition", "Condition", "Expr'", "Assign'", "Condition", "Expr'", "Assign'", "Assign'", "Expr'" ]
[ "def FUNC_20():...\n", "populate_test_database()\n", "FUNC_1('first playlist')\n", "VAR_11 = VAR_3.post('/videos/1/title/thumbnail')\n", "assert VAR_11.json['status'] == 'OK'\n", "VAR_11 = VAR_3.delete('/videos/2/1')\n", "assert VAR_11.json['status'] == 'NOK'\n", "assert VAR_11.json['message'] != None...
[ "def test_should_return_a_not_ok_status_when_deleting_a_video_not_from_a_given_playlist(...\n", "populate_test_database()\n", "create_playlist('first playlist')\n", "response = test_app.post('/videos/1/title/thumbnail')\n", "assert response.json['status'] == 'OK'\n", "response = test_app.delete('/videos/2...
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Expr'", "Expr'", "Assign'", "Assert'", "Assign'", "Assert'", "Assert'" ]
[ "@VAR_0.route('/delete_column', methods=['POST'])...\n", "VAR_1 = get_dataset_with_id(request.args.get('dataset_id'))\n", "VAR_2 = request.form['column']\n", "delete_attribute(VAR_1.working_copy, VAR_2)\n", "flash('An unexpected error occured while deleting the column', 'danger')\n", "flash('Column delete...
[ "@_transform.route('/delete_column', methods=['POST'])...\n", "dataset = get_dataset_with_id(request.args.get('dataset_id'))\n", "col = request.form['column']\n", "delete_attribute(dataset.working_copy, col)\n", "flash('An unexpected error occured while deleting the column', 'danger')\n", "flash('Column d...
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "Condition", "Assign'", "Assign'", "Expr'", "Expr'", "Expr'", "Expr'", "Return'" ]
[ "def FUNC_14(VAR_31, VAR_17=None, VAR_32=None):...\n", "bot_management.bot_event(VAR_31=event_type, VAR_14=bot_id, external_ip=self\n .request.remote_addr, VAR_24=dimensions, VAR_25=state, VAR_9=version,\n VAR_16=quarantined, VAR_17=task_id, VAR_32=task_name, VAR_8=quarantined_msg\n )\n" ]
[ "def bot_event(event_type, task_id=None, task_name=None):...\n", "bot_management.bot_event(event_type=event_type, bot_id=bot_id, external_ip=\n self.request.remote_addr, dimensions=dimensions, state=state, version=\n version, quarantined=quarantined, task_id=task_id, task_name=task_name,\n message=quaran...
[ 0, 0 ]
[ "FunctionDef'", "Expr'" ]
[ "def FUNC_4(self):...\n", "\"\"\"docstring\"\"\"\n", "self._check_flags()\n" ]
[ "def check_for_setup_error(self):...\n", "\"\"\"docstring\"\"\"\n", "self._check_flags()\n" ]
[ 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Expr'" ]
[ "def FUNC_27(self):...\n", "\"\"\"docstring\"\"\"\n", "VAR_11 = 'SELECT * FROM matches ORDER BY id LIMIT 1'\n", "VAR_12 = tools.query(VAR_11)\n", "VAR_5 = str(VAR_12[0][0])\n", "self.assertEquals(tournament.editPlayer(player=s, new_name='Johan Bach',\n new_country='Guam'), 0)\n" ]
[ "def test_option_edit(self):...\n", "\"\"\"docstring\"\"\"\n", "q = 'SELECT * FROM matches ORDER BY id LIMIT 1'\n", "r = tools.query(q)\n", "s = str(r[0][0])\n", "self.assertEquals(tournament.editPlayer(player=s, new_name='Johan Bach',\n new_country='Guam'), 0)\n" ]
[ 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Assign'", "Assign'", "Assign'", "Expr'" ]
[ "def FUNC_8(self):...\n", "VAR_13 = self.cnxn.getinfo(pyodbc.SQL_CATALOG_NAME_SEPARATOR)\n", "self.assertTrue(isinstance(VAR_13, str))\n" ]
[ "def test_getinfo_string(self):...\n", "value = self.cnxn.getinfo(pyodbc.SQL_CATALOG_NAME_SEPARATOR)\n", "self.assertTrue(isinstance(value, str))\n" ]
[ 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Expr'" ]
[ "def FUNC_2(VAR_4):...\n", "VAR_5 = '<title>{0}</title>'.format(self.MAIL_ADDRESS)\n", "VAR_6 = re.findall(VAR_5, VAR_2.written[0])\n", "self.assertEquals(len(VAR_6), 1)\n" ]
[ "def assert_response(_):...\n", "expected = '<title>{0}</title>'.format(self.MAIL_ADDRESS)\n", "matches = re.findall(expected, request.written[0])\n", "self.assertEquals(len(matches), 1)\n" ]
[ 0, 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Assign'", "Expr'" ]
[ "@pytest.mark.skip(reason='not handled yet')...\n", "FUNC_2(VAR_2)\n", "FUNC_3(VAR_2, 'TERRA', VAR_7='1')\n", "FUNC_5(VAR_4, VAR_5, VAR_11='TARA', VAR_10=[{'name': 'TERRA'}])\n" ]
[ "@pytest.mark.skip(reason='not handled yet')...\n", "clean_database(solr)\n", "seed_database_with(solr, 'TERRA', id='1')\n", "verify_results(client, jwt, query='TARA', expected=[{'name': 'TERRA'}])\n" ]
[ 0, 0, 0, 0 ]
[ "Condition", "Expr'", "Expr'", "Expr'" ]
[ "def FUNC_0(self):...\n", "return hpcommon.HP3PARCommon(self.configuration)\n" ]
[ "def _init_common(self):...\n", "return hpcommon.HP3PARCommon(self.configuration)\n" ]
[ 0, 0 ]
[ "FunctionDef'", "Return'" ]
[ "def FUNC_26(self):...\n", "FUNC_4()\n" ]
[ "def setUp(self):...\n", "create_dummy_data()\n" ]
[ 0, 0 ]
[ "FunctionDef'", "Expr'" ]
[ "def FUNC_12(self, VAR_11, VAR_10):...\n", "\"\"\"docstring\"\"\"\n" ]
[ "def output_stripping(self, message, message_template):...\n", "\"\"\"docstring\"\"\"\n" ]
[ 0, 0 ]
[ "FunctionDef'", "Docstring" ]
[ "def FUNC_15():...\n", "if VAR_14 not in self._timers:\n", "return\n", "self._timers.remove(VAR_14)\n", "VAR_10()\n", "logging.exception('Timer callback failed')\n" ]
[ "def call_wrapper():...\n", "if timer not in self._timers:\n", "return\n", "self._timers.remove(timer)\n", "callback()\n", "logging.exception('Timer callback failed')\n" ]
[ 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Condition", "Return'", "Expr'", "Expr'", "Expr'" ]
[ "def FUNC_3(self, VAR_21, VAR_23=True):...\n", "\"\"\"docstring\"\"\"\n", "VAR_22 = self.fs\n", "for part in VAR_21.split('/'):\n", "if not len(part):\n", "return VAR_22[VAR_8]\n", "VAR_67 = False\n", "for c in VAR_22[VAR_8]:\n", "if c[VAR_1] == part:\n", "if not VAR_67:\n", "if c[VAR_2] == VAR_...
[ "def get_path(self, path, follow_symlinks=True):...\n", "\"\"\"docstring\"\"\"\n", "cwd = self.fs\n", "for part in path.split('/'):\n", "if not len(part):\n", "return cwd[A_CONTENTS]\n", "ok = False\n", "for c in cwd[A_CONTENTS]:\n", "if c[A_NAME] == part:\n", "if not ok:\n", "if c[A_TYPE] == T_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Assign'", "For", "Condition", "Return'", "Assign'", "For", "Condition", "Condition", "Condition", "Assign'", "Assign'", "Assign'" ]
[ "@api.multi...\n", "for lead in self:\n", "lead.phonecall_count = self.env['crm.phonecall'].search_count([(\n 'opportunity_id', '=', lead.id)])\n" ]
[ "@api.multi...\n", "for lead in self:\n", "lead.phonecall_count = self.env['crm.phonecall'].search_count([(\n 'opportunity_id', '=', lead.id)])\n" ]
[ 4, 0, 0 ]
[ "Condition", "For", "Assign'" ]
[ "def __init__(self, VAR_0=None, VAR_1=True):...\n", "\"\"\"docstring\"\"\"\n", "self.__allow_none_id = VAR_1\n", "if VAR_0 is None:\n", "VAR_0 = []\n", "self.__entities = VAR_0\n", "self.__id_map = WeakValueDictionary()\n", "self.__slug_map = WeakValueDictionary()\n" ]
[ "def __init__(self, entities=None, allow_none_id=True):...\n", "\"\"\"docstring\"\"\"\n", "self.__allow_none_id = allow_none_id\n", "if entities is None:\n", "entities = []\n", "self.__entities = entities\n", "self.__id_map = WeakValueDictionary()\n", "self.__slug_map = WeakValueDictionary()\n" ]
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Assign'", "Condition", "Assign'", "Assign'", "Assign'", "Assign'" ]
[ "def FUNC_4(self, VAR_9, VAR_10):...\n", "\"\"\"docstring\"\"\"\n" ]
[ "def remove_export(self, context, volume):...\n", "\"\"\"docstring\"\"\"\n" ]
[ 0, 0 ]
[ "FunctionDef'", "Docstring" ]
[ "def FUNC_0(self, **VAR_0):...\n", "\"\"\"docstring\"\"\"\n", "VAR_1 = ['UPDATE', connection.ops.quote_name(self._meta.db_table), 'SET']\n", "for field_name in VAR_0:\n", "setattr(self, field_name, VAR_0[field_name])\n", "VAR_1.pop(-1)\n", "VAR_2 = self._meta.get_field(field_name)\n", "VAR_1.extend(['...
[ "def update_fields(self, **kwargs):...\n", "\"\"\"docstring\"\"\"\n", "sql = ['UPDATE', connection.ops.quote_name(self._meta.db_table), 'SET']\n", "for field_name in kwargs:\n", "setattr(self, field_name, kwargs[field_name])\n", "sql.pop(-1)\n", "field = self._meta.get_field(field_name)\n", "sql.exten...
[ 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 4, 4, 4, 4, 0, 4, 4, 4, 4, 4 ]
[ "FunctionDef'", "Docstring", "Assign'", "For", "Expr'", "Expr'", "Assign'", "Expr'", "Assign'", "Assign'", "Condition", "Expr'", "Assign'", "Condition", "Expr'", "Expr'", "Assign'", "Condition", "Assign'", "Assign'" ]
[ "def FUNC_0(self, **VAR_0):...\n", "\"\"\"docstring\"\"\"\n", "VAR_1 = ['UPDATE', connection.ops.quote_name(self._meta.db_table), 'SET']\n", "for field_name in VAR_0:\n", "setattr(self, field_name, VAR_0[field_name])\n", "VAR_1.pop(-1)\n", "VAR_2 = self._meta.get_field(field_name)\n", "VAR_1.extend(['...
[ "def update_fields(self, **kwargs):...\n", "\"\"\"docstring\"\"\"\n", "sql = ['UPDATE', connection.ops.quote_name(self._meta.db_table), 'SET']\n", "for field_name in kwargs:\n", "setattr(self, field_name, kwargs[field_name])\n", "sql.pop(-1)\n", "field = self._meta.get_field(field_name)\n", "sql.exten...
[ 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 4, 4, 4, 4, 0, 4, 4, 4, 4, 4 ]
[ "FunctionDef'", "Docstring", "Assign'", "For", "Expr'", "Expr'", "Assign'", "Expr'", "Assign'", "Assign'", "Condition", "Expr'", "Assign'", "Condition", "Expr'", "Expr'", "Assign'", "Condition", "Assign'", "Assign'" ]
[ "def FUNC_14(self):...\n", "if not self.config:\n", "self.logger.error(' Config not loaded yet!')\n", "for group in self.config['groups']:\n", "for VAR_6 in group['components']:\n", "self.host_list = list(set(self.host_list))\n", "self.logger.debug(\"Checking component '%s' in group '%s' on host '%s'\" ...
[ "def init(self):...\n", "if not self.config:\n", "self.logger.error(' Config not loaded yet!')\n", "for group in self.config['groups']:\n", "for comp in group['components']:\n", "self.host_list = list(set(self.host_list))\n", "self.logger.debug(\"Checking component '%s' in group '%s' on host '%s'\" % (\...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Condition", "Expr'", "For", "For", "Assign'", "Expr'", "Expr'", "Condition", "Expr'" ]
[ "def FUNC_1():...\n", "\"\"\"docstring\"\"\"\n", "return [sys.executable, VAR_0, 'run_isolated']\n" ]
[ "def get_run_isolated():...\n", "\"\"\"docstring\"\"\"\n", "return [sys.executable, THIS_FILE, 'run_isolated']\n" ]
[ 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Return'" ]
[ "def FUNC_9(self, VAR_16=None):...\n", "\"\"\"docstring\"\"\"\n", "VAR_19 = self.__con.cursor(MySQLdb.cursors.DictCursor)\n", "VAR_21 = \"WHERE name='%s'\" % VAR_16 if not VAR_16 == None else ''\n", "VAR_19.execute('string' % VAR_21)\n", "return VAR_19.fetchall()\n" ]
[ "def show(self, tag=None):...\n", "\"\"\"docstring\"\"\"\n", "cur = self.__con.cursor(MySQLdb.cursors.DictCursor)\n", "where_clause = \"WHERE name='%s'\" % tag if not tag == None else ''\n", "cur.execute(\n 'SELECT name, taskid, description, due_date, completed FROM tasks NATURAL JOIN tags %s ORDER BY ta...
[ 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Assign'", "Assign'", "Expr'", "Return'" ]
[ "def FUNC_36(VAR_47):...\n", "return fast_relpath(VAR_47, get_buildroot())\n" ]
[ "def relative_to_exec_root(path):...\n", "return fast_relpath(path, get_buildroot())\n" ]
[ 0, 0 ]
[ "FunctionDef'", "Return'" ]
[ "def FUNC_0():...\n", "VAR_4 = {'TEST_STACK': CLASS_0.DEFAULT_TEST_ID, 'TEST_APP': 'gcpsvrgrptst' +\n CLASS_0.DEFAULT_TEST_ID}\n", "return st.ScenarioTestRunner.main(CLASS_0, default_binding_overrides=\n defaults, test_case_list=[GoogleServerGroupTest])\n" ]
[ "def main():...\n", "defaults = {'TEST_STACK': GoogleServerGroupTestScenario.DEFAULT_TEST_ID,\n 'TEST_APP': 'gcpsvrgrptst' + GoogleServerGroupTestScenario.DEFAULT_TEST_ID}\n", "return st.ScenarioTestRunner.main(GoogleServerGroupTestScenario,\n default_binding_overrides=defaults, test_case_list=[GoogleServ...
[ 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Return'" ]
[ "def FUNC_13(VAR_35, VAR_27):...\n", "\"\"\"docstring\"\"\"\n", "return 'string'.format(FUNC_12(VAR_35).replace('\\n', '<br>')).replace('\\n', '')\n" ]
[ "def _output_html(complete_output, categories):...\n", "\"\"\"docstring\"\"\"\n", "return \"\"\"<html>\n <head>\n <title>Automatically generated keywords by bibclassify</title>\n </head>\n <body>\n {0}\n </body>\n </html>\"\"\".format(\n _output_text(complete_output).replace('\\n', '<b...
[ 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Return'" ]
[ "def FUNC_0(*VAR_0, **VAR_1):...\n", "VAR_2 = requests.Response()\n", "VAR_2.status_code = 200\n", "VAR_2._content_consumed = True\n", "return VAR_2\n" ]
[ "def mock_import_repository_task(*args, **kwargs):...\n", "resp = requests.Response()\n", "resp.status_code = 200\n", "resp._content_consumed = True\n", "return resp\n" ]
[ 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Assign'", "Assign'", "Return'" ]
[ "def FUNC_14(self):...\n", "VAR_17 = 2\n", "VAR_0 = [BadSetupCheck(), BadSetupCheckEarly()]\n", "self.runner._max_retries = VAR_17\n", "self.runall(VAR_0)\n", "self.assertEqual(2, self.runner.stats.num_cases())\n", "self.assertEqual(VAR_17, rt.runtime().current_run)\n", "self.assertEqual(2, len(self.r...
[ "def test_retries_bad_check(self):...\n", "max_retries = 2\n", "checks = [BadSetupCheck(), BadSetupCheckEarly()]\n", "self.runner._max_retries = max_retries\n", "self.runall(checks)\n", "self.assertEqual(2, self.runner.stats.num_cases())\n", "self.assertEqual(max_retries, rt.runtime().current_run)\n", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Assign'", "Assign'", "Expr'", "Expr'", "Expr'", "Expr'", "Expr'" ]
[ "def FUNC_57(self):...\n", "VAR_2 = {'SEVERITY': {'HIGH': 1}, 'CONFIDENCE': {'MEDIUM': 1}}\n", "self.check_example('flask_debug.py', VAR_2)\n" ]
[ "def test_flask_debug_true(self):...\n", "expect = {'SEVERITY': {'HIGH': 1}, 'CONFIDENCE': {'MEDIUM': 1}}\n", "self.check_example('flask_debug.py', expect)\n" ]
[ 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Expr'" ]
[ "def FUNC_1(self, VAR_2, *VAR_3, **VAR_4):...\n", "VAR_5 = self.get_form()\n", "if VAR_5.is_valid():\n", "return self.form_valid(VAR_5)\n", "return self.render_to_response(self.get_context_data())\n" ]
[ "def get(self, request, *args, **kwargs):...\n", "form = self.get_form()\n", "if form.is_valid():\n", "return self.form_valid(form)\n", "return self.render_to_response(self.get_context_data())\n" ]
[ 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Condition", "Return'", "Return'" ]
[ "def __init__(self):...\n", "self.uploaded_file = {}\n" ]
[ "def __init__(self):...\n", "self.uploaded_file = {}\n" ]
[ 0, 0 ]
[ "FunctionDef'", "Assign'" ]
[ "def FUNC_2(VAR_7, VAR_8, VAR_9, VAR_10):...\n", "\"\"\"docstring\"\"\"\n", "VAR_29 = os.path.dirname(VAR_7)\n", "if os.path.isfile(VAR_9):\n", "os.remove(VAR_9)\n", "VAR_30 = FUNC_1()\n", "VAR_30.extend(['--isolated', VAR_8.inputs_ref['isolated'].encode('utf-8'),\n '--namespace', VAR_8.inputs_ref['n...
[ "def get_isolated_cmd(work_dir, task_details, isolated_result, min_free_space):...\n", "\"\"\"docstring\"\"\"\n", "bot_dir = os.path.dirname(work_dir)\n", "if os.path.isfile(isolated_result):\n", "os.remove(isolated_result)\n", "cmd = get_run_isolated()\n", "cmd.extend(['--isolated', task_details.inputs...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Assign'", "Condition", "Expr'", "Assign'", "Expr'", "Condition", "Expr'", "Condition", "Expr'", "Condition", "Expr'", "Condition", "Expr'", "Return'", "Expr'" ]
[ "@mock.patch('requests.post', FUNC_0)...\n", "\"\"\"docstring\"\"\"\n", "self.client.login(username='autotest2', password='password')\n", "VAR_4 = '/api/apps'\n", "VAR_5 = self.client.post(VAR_4)\n", "self.assertEqual(VAR_5.status_code, 201)\n", "VAR_6 = VAR_5.data['id']\n", "self.client.login(usernam...
[ "@mock.patch('requests.post', mock_import_repository_task)...\n", "\"\"\"docstring\"\"\"\n", "self.client.login(username='autotest2', password='password')\n", "url = '/api/apps'\n", "response = self.client.post(url)\n", "self.assertEqual(response.status_code, 201)\n", "app_id = response.data['id']\n", ...
[ 0, 0, 5, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "Condition", "Docstring", "Expr'", "Assign'", "Assign'", "Expr'", "Assign'", "Expr'", "Assign'", "Assign'", "Assign'", "Expr'", "Expr'", "Assign'", "Assign'", "Expr'", "Expr'" ]
[ "def FUNC_5(VAR_0):...\n", "return VAR_0.split(VAR_4())[0]\n" ]
[ "def clear_meta(contents):...\n", "return contents.split(meta_separator())[0]\n" ]
[ 0, 0 ]
[ "FunctionDef'", "Return'" ]
[ "def FUNC_14(self):...\n", "return self.CurrentFiletypeCompletionEnabled(\n ) and self.NativeFiletypeCompletionAvailable()\n" ]
[ "def NativeFiletypeCompletionUsable(self):...\n", "return self.CurrentFiletypeCompletionEnabled(\n ) and self.NativeFiletypeCompletionAvailable()\n" ]
[ 0, 0 ]
[ "FunctionDef'", "Return'" ]
[ "def FUNC_18(VAR_26):...\n", "\"\"\"docstring\"\"\"\n", "VAR_43 = subprocess.check_output(VAR_26)\n", "VAR_44 = VAR_43.split(b' ')[1]\n", "return int(VAR_44)\n", "return VAR_44\n" ]
[ "def sysctl(command):...\n", "\"\"\"docstring\"\"\"\n", "out = subprocess.check_output(command)\n", "result = out.split(b' ')[1]\n", "return int(result)\n", "return result\n" ]
[ 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Assign'", "Assign'", "Return'", "Return'" ]
[ "def FUNC_1():...\n", "\"\"\"docstring\"\"\"\n", "VAR_0 = subprocess.run(['/opt/tljh/user/bin/jupyter-nbextension', 'list',\n '--sys-prefix'], stderr=subprocess.PIPE, stdout=subprocess.PIPE)\n", "VAR_1 = ['nbresuse/main', 'jupyter-js-widgets/extension']\n", "for e in VAR_1:\n", "assert '{} \\x1b[32m en...
[ "def test_nbextensions():...\n", "\"\"\"docstring\"\"\"\n", "proc = subprocess.run(['/opt/tljh/user/bin/jupyter-nbextension', 'list',\n '--sys-prefix'], stderr=subprocess.PIPE, stdout=subprocess.PIPE)\n", "extensions = ['nbresuse/main', 'jupyter-js-widgets/extension']\n", "for e in extensions:\n", "ass...
[ 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Assign'", "Assign'", "For", "Assert'", "Assert'" ]
[ "def FUNC_0(VAR_0, VAR_1, VAR_2):...\n", "VAR_1['AWS_ACCESS_KEY_ID'] = VAR_0.get_input('username', default='')\n", "VAR_1['AWS_SECRET_ACCESS_KEY'] = VAR_0.get_input('password', default='')\n", "if VAR_0.has_input('security_token'):\n", "VAR_1['AWS_SECURITY_TOKEN'] = VAR_0.get_input('security_token', default...
[ "def aws(cred, env, private_data_dir):...\n", "env['AWS_ACCESS_KEY_ID'] = cred.get_input('username', default='')\n", "env['AWS_SECRET_ACCESS_KEY'] = cred.get_input('password', default='')\n", "if cred.has_input('security_token'):\n", "env['AWS_SECURITY_TOKEN'] = cred.get_input('security_token', default='')\...
[ 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Assign'", "Condition", "Assign'" ]
[ "@then(parsers.parse(...\n", "def FUNC_6():...\n", "VAR_10 = kube_utils.get_pods(VAR_0, VAR_4, VAR_2='kube-system',\n status_phase='Running')\n", "assert len(VAR_10) >= VAR_5\n", "utils.retry(FUNC_6, times=10, wait=3)\n" ]
[ "@then(parsers.parse(...\n", "def _check_pods_count():...\n", "pods = kube_utils.get_pods(host, label, namespace='kube-system',\n status_phase='Running')\n", "assert len(pods) >= min_pods_count\n", "utils.retry(_check_pods_count, times=10, wait=3)\n" ]
[ 0, 0, 0, 0, 0 ]
[ "Condition", "FunctionDef'", "Assign'", "Assert'", "Expr'" ]
[ "def __init__(self, VAR_19, VAR_20):...\n", "self.first = VAR_19\n", "self.second = VAR_20\n" ]
[ "def __init__(self, first, second):...\n", "self.first = first\n", "self.second = second\n" ]
[ 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Assign'" ]
[ "def FUNC_6(self):...\n", "\"\"\"docstring\"\"\"\n", "self.netatmo_data.update()\n", "VAR_13 = self.netatmo_data.data.get(self.module_name)\n", "if VAR_13 is None:\n", "VAR_0.warning('No data found for %s', self.module_name)\n", "if self.type == 'temperature':\n", "self._state = STATE_UNKNOWN\n", "s...
[ "def update(self):...\n", "\"\"\"docstring\"\"\"\n", "self.netatmo_data.update()\n", "data = self.netatmo_data.data.get(self.module_name)\n", "if data is None:\n", "_LOGGER.warning('No data found for %s', self.module_name)\n", "if self.type == 'temperature':\n", "self._state = STATE_UNKNOWN\n", "sel...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ "FunctionDef'", "Docstring", "Expr'", "Assign'", "Condition", "Expr'", "Condition", "Assign'", "Assign'", "Condition", "Return'", "Assign'", "Condition", "Assign'", "Condition", "Assign'", "Condition", "Assign'", "Condition", "Assign'", "Condition", "Assign'", "Condition"...
[ "@classmethod...\n", "def FUNC_25(VAR_3, VAR_6):...\n", "VAR_7 = FUNC_0()\n", "for VAR_41 in range(int(VAR_6 * 10)):\n", "return VAR_7\n", "VAR_7.connect(VAR_3)\n", "if VAR_2.VERBOSE:\n", "print('+', end='')\n", "time.sleep(0.1)\n", "sys.stdout.flush()\n" ]
[ "@classmethod...\n", "def connect(addr, timeout):...\n", "sock = create_client()\n", "for _ in range(int(timeout * 10)):\n", "return sock\n", "sock.connect(addr)\n", "if cls.VERBOSE:\n", "print('+', end='')\n", "time.sleep(0.1)\n", "sys.stdout.flush()\n" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "Condition", "FunctionDef'", "Assign'", "For", "Return'", "Expr'", "Condition", "Expr'", "Expr'", "Expr'" ]
[ "def FUNC_11(self):...\n", "return self.__class__.__name__\n" ]
[ "def for_schema(self):...\n", "return self.__class__.__name__\n" ]
[ 0, 0 ]
[ "FunctionDef'", "Return'" ]
[ "def __bool__(self):...\n", "return bool(self.updated_input or self.missing_output or self.forced or\n self.updated_input_run or self.noio or self.nooutput)\n" ]
[ "def __bool__(self):...\n", "return bool(self.updated_input or self.missing_output or self.forced or\n self.updated_input_run or self.noio or self.nooutput)\n" ]
[ 0, 0 ]
[ "FunctionDef'", "Return'" ]
[ "def __str__(self):...\n", "VAR_26 = list()\n", "if self.forced:\n", "VAR_26.append('Forced execution')\n", "if self.noio:\n", "VAR_26 = '; '.join(VAR_26)\n", "VAR_26.append('Rules with neither input nor output files are always executed.')\n", "if self.nooutput:\n", "return VAR_26\n", "VAR_26.appe...
[ "def __str__(self):...\n", "s = list()\n", "if self.forced:\n", "s.append('Forced execution')\n", "if self.noio:\n", "s = '; '.join(s)\n", "s.append('Rules with neither input nor output files are always executed.')\n", "if self.nooutput:\n", "return s\n", "s.append(\n 'Rules with a run or shell...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "For", "Expr'", "Condition", "Assign'", "Expr'", "Condition", "Return'", "Expr'", "Condition", "Expr'", "Condition", "Expr'", "Assign'", "Condition", "Expr'", "Condition", "Expr'" ]