lines
listlengths
1
444
raw_lines
listlengths
1
444
label
listlengths
1
444
type
listlengths
1
444
[ "def FUNC_0(VAR_0, VAR_1):...\n", "\"\"\"docstring\"\"\"\n", "VAR_6 = OUTPUT_DIR + VAR_0 + '.log'\n", "if type(VAR_1) is tuple or type(VAR_1) is list:\n", "for m in VAR_1:\n", "f.write(VAR_1)\n", "f.write(m + '\\n')\n", "f.write('\\n')\n" ]
[ "def logger(filename, content):...\n", "\"\"\"docstring\"\"\"\n", "output_file = OUTPUT_DIR + filename + '.log'\n", "if type(content) is tuple or type(content) is list:\n", "for m in content:\n", "f.write(content)\n", "f.write(m + '\\n')\n", "f.write('\\n')\n" ]
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Assign'", "Condition", "For", "Expr'", "Expr'", "Expr'" ]
[ "def FUNC_36(VAR_11):...\n", "for VAR_51, VAR_58 in VAR_11.items():\n", "if isinstance(VAR_58, str) or not isinstance(VAR_58, Iterable):\n", "VAR_58 = [VAR_58]\n", "yield [(VAR_51, VAR_16) for VAR_16 in VAR_58]\n" ]
[ "def flatten(wildcards):...\n", "for wildcard, values in wildcards.items():\n", "if isinstance(values, str) or not isinstance(values, Iterable):\n", "values = [values]\n", "yield [(wildcard, value) for value in values]\n" ]
[ 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "For", "Condition", "Assign'", "Expr'" ]
[ "def FUNC_4(self):...\n", "VAR_4 = super().get_form_kwargs()\n", "VAR_4.update({'view': self})\n", "return VAR_4\n" ]
[ "def get_form_kwargs(self):...\n", "kwargs = super().get_form_kwargs()\n", "kwargs.update({'view': self})\n", "return kwargs\n" ]
[ 0, 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Expr'", "Return'" ]
[ "@classmethod...\n", "VAR_17 = str(VAR_12)\n", "VAR_18 = \"UPPER(tag.name) LIKE UPPER('%%%s%%')\" % VAR_17\n", "return self.select(VAR_18)\n" ]
[ "@classmethod...\n", "text_query_str = str(text_query)\n", "sql_query = \"UPPER(tag.name) LIKE UPPER('%%%s%%')\" % text_query_str\n", "return self.select(sql_query)\n" ]
[ 0, 4, 4, 4 ]
[ "Condition", "Assign'", "Assign'", "Return'" ]
[ "def FUNC_15(self):...\n", "\"\"\"docstring\"\"\"\n", "VAR_7 = BokChoyTestSuite('', num_processes=2, verbosity=3)\n", "BokChoyTestSuite.verbosity_processes_string(VAR_7)\n" ]
[ "def test_invalid_verbosity_and_processes(self):...\n", "\"\"\"docstring\"\"\"\n", "suite = BokChoyTestSuite('', num_processes=2, verbosity=3)\n", "BokChoyTestSuite.verbosity_processes_string(suite)\n" ]
[ 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Assign'", "Expr'" ]
[ "\"\"\"The base class of the TornadoResource classes in the api module.\"\"\"\n", "from abc import ABCMeta, abstractmethod\n", "from collections import OrderedDict\n", "from time import localtime\n", "from passlib.hash import bcrypt_sha256\n", "from restless.tnd import TornadoResource\n", "import restle...
[ "\"\"\"The base class of the TornadoResource classes in the api module.\"\"\"\n", "from abc import ABCMeta, abstractmethod\n", "from collections import OrderedDict\n", "from time import localtime\n", "from passlib.hash import bcrypt_sha256\n", "from restless.tnd import TornadoResource\n", "import restle...
[ 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 ]
[ "Expr'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "Import'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "Import'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "Expr'", "Assign'", ...
[ "def FUNC_0(VAR_2=None, VAR_3=None, VAR_4=None, VAR_5=None, VAR_6=None,...\n", "VAR_8 = []\n", "VAR_1 = VAR_0.cursor()\n", "VAR_9 = []\n", "VAR_10 = 'SELECT Id, Time, Origin, Key, Value FROM log_metric '\n", "if VAR_2 != None or VAR_3 != None or VAR_4 != None or VAR_5 != None:\n", "VAR_10 += 'WHERE '\n"...
[ "def getMetric(timefrom=None, timeto=None, origin=None, key=None, count=None,...\n", "results = []\n", "cursor = database.cursor()\n", "params = []\n", "query = 'SELECT Id, Time, Origin, Key, Value FROM log_metric '\n", "if timefrom != None or timeto != None or origin != None or key != None:\n", "query ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 4, 4, 0, 0, 0, 0, 0, 0 ]
[ "Condition", "Assign'", "Assign'", "Assign'", "Assign'", "Condition", "AugAssign'", "Condition", "AugAssign'", "Condition", "Expr'", "AugAssign'", "Condition", "Expr'", "AugAssign'", "Condition", "Expr'", "AugAssign'", "Assign'", "Expr'", "AugAssign'", "Condition", "Condi...
[ "def FUNC_7(VAR_13):...\n", "VAR_32 = BeautifulSoup(VAR_13, 'html.parser')\n", "VAR_21 = VAR_32.find_all('form')\n", "VAR_33 = []\n", "if len(VAR_21) > 0:\n", "for VAR_46 in VAR_21:\n", "return VAR_33\n", "VAR_42 = VAR_46.findChildren('input', {'type': 'file'})\n", "if len(VAR_42) > 0:\n", "VAR_33...
[ "def detectForms(html):...\n", "soup = BeautifulSoup(html, 'html.parser')\n", "detectedForms = soup.find_all('form')\n", "returnForms = []\n", "if len(detectedForms) > 0:\n", "for f in detectedForms:\n", "return returnForms\n", "fileInputs = f.findChildren('input', {'type': 'file'})\n", "if len(file...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Assign'", "Assign'", "Condition", "For", "Return'", "Assign'", "Condition", "Expr'" ]
[ "def FUNC_17(self, VAR_23):...\n", "\"\"\"docstring\"\"\"\n", "return self._get_users_api().create_logout_url(self.request, VAR_23)\n" ]
[ "def create_logout_url(self, dest_url):...\n", "\"\"\"docstring\"\"\"\n", "return self._get_users_api().create_logout_url(self.request, dest_url)\n" ]
[ 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Return'" ]
[ "def FUNC_20(self, VAR_19, VAR_20):...\n", "\"\"\"docstring\"\"\"\n", "for clause in reversed(self.order):\n", "VAR_40 = VAR_20.has_wildcards() - VAR_19.has_wildcards()\n", "VAR_51 = clause.index(VAR_19.name)\n", "if VAR_40 != 0:\n", "VAR_52 = clause.index(VAR_20.name)\n", "return VAR_40\n", "return...
[ "def compare(self, rule1, rule2):...\n", "\"\"\"docstring\"\"\"\n", "for clause in reversed(self.order):\n", "wildcard_cmp = rule2.has_wildcards() - rule1.has_wildcards()\n", "i = clause.index(rule1.name)\n", "if wildcard_cmp != 0:\n", "j = clause.index(rule2.name)\n", "return wildcard_cmp\n", "retu...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "For", "Assign'", "Assign'", "Condition", "Assign'", "Return'", "Return'", "Assign'", "Condition", "Assign'", "Condition", "Return'", "Assign'" ]
[ "def FUNC_0(self, VAR_0='crimemap'):...\n", "return pymysql.connect(host='localhost', user=dbconfig.db_user, passwd=\n dbconfig.db_password, db=database)\n" ]
[ "def connect(self, database='crimemap'):...\n", "return pymysql.connect(host='localhost', user=dbconfig.db_user, passwd=\n dbconfig.db_password, db=database)\n" ]
[ 0, 0 ]
[ "FunctionDef'", "Return'" ]
[ "def __init__(self, VAR_6):...\n", "self.update(VAR_6)\n", "self.dont_update_if_missing = []\n", "if hasattr(self, '__setup__'):\n", "self.__setup__()\n" ]
[ "def __init__(self, d):...\n", "self.update(d)\n", "self.dont_update_if_missing = []\n", "if hasattr(self, '__setup__'):\n", "self.__setup__()\n" ]
[ 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Expr'", "Assign'", "Condition", "Expr'" ]
[ "def FUNC_14(self, VAR_18):...\n", "\"\"\"docstring\"\"\"\n", "VAR_25 = self._eql_execute('volume', 'select', VAR_18['volume_name'],\n 'snapshot', 'create-now')\n", "VAR_0.error(_('Failed to create snapshot of volume %s'), VAR_18['volume_name'])\n", "VAR_9 = 'Snapshot name is '\n", "VAR_45 = self._get_...
[ "def create_snapshot(self, snapshot):...\n", "\"\"\"docstring\"\"\"\n", "out = self._eql_execute('volume', 'select', snapshot['volume_name'],\n 'snapshot', 'create-now')\n", "LOG.error(_('Failed to create snapshot of volume %s'), snapshot['volume_name'])\n", "prefix = 'Snapshot name is '\n", "snap_name...
[ 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Assign'", "Expr'", "Assign'", "Assign'", "Expr'" ]
[ "def FUNC_33(self):...\n", "\"\"\"docstring\"\"\"\n", "if VAR_54.flags.in_install:\n", "return\n", "for VAR_16, VAR_9 in self.get_valid_dict().items():\n", "if not VAR_9 or not isinstance(VAR_9, string_types):\n", "VAR_9 = VAR_54.as_unicode(VAR_9)\n", "if u'<' not in VAR_9 and u'>' not in VAR_9:\n", ...
[ "def _sanitize_content(self):...\n", "\"\"\"docstring\"\"\"\n", "if frappe.flags.in_install:\n", "return\n", "for fieldname, value in self.get_valid_dict().items():\n", "if not value or not isinstance(value, string_types):\n", "value = frappe.as_unicode(value)\n", "if u'<' not in value and u'>' not in...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Condition", "Return'", "For", "Condition", "Assign'", "Condition", "Condition", "Assign'", "Assign'", "Condition", "Assign'", "Condition", "Expr'", "Assign'" ]
[ "\"\"\"string\"\"\"\n", "import re\n", "from lib.core.data import conf\n", "from lib.core.settings import MATCH_RATIO\n", "def FUNC_0(VAR_0, VAR_1=None, VAR_2=False):...\n", "VAR_3 = None\n", "if conf.eString and conf.eString in VAR_0:\n", "VAR_4 = VAR_0.index(conf.eString)\n", "if conf.eRegexp:\n",...
[ "\"\"\"\n$Id$\n\nThis file is part of the sqlmap project, http://sqlmap.sourceforge.net.\n\nCopyright (c) 2006-2008 Bernardo Damele A. G. <bernardo.damele@gmail.com>\n and Daniele Bellucci <daniele.bellucci@gmail.com>\n\nsqlmap is free software; you can redistribute it and/or modify it under\...
[ 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, 2, 2, 0, 0, 0, 0, 0 ]
[ "Expr'", "Import'", "ImportFrom'", "ImportFrom'", "FunctionDef'", "Assign'", "Condition", "Assign'", "Condition", "Assign'", "Assign'", "Condition", "Assign'", "Condition", "Condition", "Condition", "AugAssign'", "For", "Return'", "Return'", "Condition", "Expr'", "Assign'...
[ "async def FUNC_4(VAR_6):...\n", "VAR_10 = {'Authorization': f'Bearer {VAR_1}'}\n", "VAR_7 = {'date': '1971-06-20', 'distance': 2000, 'time': 405, 'location':\n '32.0853 34.7818'}\n", "VAR_8 = await VAR_6.post('/results', VAR_10=headers, VAR_7=json.dumps(data))\n", "assert VAR_8.status == 400\n" ]
[ "async def test_negative_jogging_result(test_cli):...\n", "headers = {'Authorization': f'Bearer {access_token}'}\n", "data = {'date': '1971-06-20', 'distance': 2000, 'time': 405, 'location':\n '32.0853 34.7818'}\n", "resp = await test_cli.post('/results', headers=headers, data=json.dumps(data))\n", "asse...
[ 0, 0, 0, 0, 0 ]
[ "AsyncFunctionDef'", "Assign'", "Assign'", "Assign'", "Assert'" ]
[ "def FUNC_12(self, VAR_19):...\n", "\"\"\"docstring\"\"\"\n", "if self.test_name is None:\n", "self.initFile('counterclockwise')\n", "self.testSquare(VAR_19, self.cc_square)\n" ]
[ "def testCCsquare(self, length):...\n", "\"\"\"docstring\"\"\"\n", "if self.test_name is None:\n", "self.initFile('counterclockwise')\n", "self.testSquare(length, self.cc_square)\n" ]
[ 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Condition", "Expr'", "Expr'" ]
[ "def FUNC_7(self):...\n", "return \"\"\"Username: %s\nPassword: %s\n\"\"\" % (self.username, self.password\n ) + CLASS_1.specific_info(self)\n" ]
[ "def specific_info(self):...\n", "return \"\"\"Username: %s\nPassword: %s\n\"\"\" % (self.username, self.password\n ) + GenericRequest.specific_info(self)\n" ]
[ 0, 0 ]
[ "FunctionDef'", "Return'" ]
[ "from __future__ import unicode_literals\n", "from six import iteritems, string_types\n", "import datetime\n", "import frappe, sys\n", "from frappe import _\n", "from frappe.utils import cint, flt, now, cstr, strip_html, sanitize_html, sanitize_email, cast_fieldtype\n", "from frappe.model import default...
[ "from __future__ import unicode_literals\n", "from six import iteritems, string_types\n", "import datetime\n", "import frappe, sys\n", "from frappe import _\n", "from frappe.utils import cint, flt, now, cstr, strip_html, sanitize_html, sanitize_email, cast_fieldtype\n", "from frappe.model import default...
[ 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 ]
[ "ImportFrom'", "ImportFrom'", "Import'", "Import'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "Assign'", "FunctionDef'", "Docstring", "ImportFrom'", "Condition", "Assign'", "Return'", ...
[ "def __getattr__(self, VAR_52):...\n", "VAR_58 = getattr(self.orig_obj, VAR_52)\n", "if not callable(VAR_58):\n", "return VAR_58\n", "VAR_60 = self._wrapper_cache.get(VAR_52)\n", "if VAR_60 is None:\n", "@functools.wraps(VAR_58)...\n", "return VAR_60\n", "return VAR_58(*VAR_61, **kwargs)\n" ]
[ "def __getattr__(self, attr):...\n", "orig_attr = getattr(self.orig_obj, attr)\n", "if not callable(orig_attr):\n", "return orig_attr\n", "wrapper = self._wrapper_cache.get(attr)\n", "if wrapper is None:\n", "@functools.wraps(orig_attr)...\n", "return wrapper\n", "return orig_attr(*args, **kwargs)\n...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Condition", "Return'", "Assign'", "Condition", "Condition", "Return'", "Return'" ]
[ "def FUNC_16(self, VAR_8, **VAR_9):...\n", "\"\"\"docstring\"\"\"\n", "VAR_22 = dict()\n", "VAR_22.update(self.rule.workflow.globals)\n", "VAR_22.update(dict(input=self.input, output=self.output, VAR_24=self.params,\n VAR_16=self._format_wildcards, threads=self.threads, VAR_23=self.\n resources, log=s...
[ "def format_wildcards(self, string, **variables):...\n", "\"\"\"docstring\"\"\"\n", "_variables = dict()\n", "_variables.update(self.rule.workflow.globals)\n", "_variables.update(dict(input=self.input, output=self.output, params=self.\n params, wildcards=self._format_wildcards, threads=self.threads,\n ...
[ 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Assign'", "Expr'", "Expr'", "Expr'", "Return'" ]
[ "def FUNC_0(self):...\n", "self.oms_ssh = OmsSshProtocol()\n", "self.terminal = mock.Mock()\n", "self.oms_ssh.terminal = self.terminal\n", "self.oms_ssh.connectionMade()\n", "self.orig_commands = cmd.commands\n", "cmd.commands = lambda : dict(hello=cmd.Cmd, **self.orig_commands())\n" ]
[ "def setUp(self):...\n", "self.oms_ssh = OmsSshProtocol()\n", "self.terminal = mock.Mock()\n", "self.oms_ssh.terminal = self.terminal\n", "self.oms_ssh.connectionMade()\n", "self.orig_commands = cmd.commands\n", "cmd.commands = lambda : dict(hello=cmd.Cmd, **self.orig_commands())\n" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Assign'", "Assign'", "Expr'", "Assign'", "Assign'" ]
[ "def __getitem__(self, VAR_4):...\n", "VAR_2 = db.note.find_note(self.request.db, VAR_4)\n", "if VAR_2:\n", "return CLASS_1(VAR_2)\n" ]
[ "def __getitem__(self, note_id):...\n", "note = db.note.find_note(self.request.db, note_id)\n", "if note:\n", "return NoteResource(note)\n" ]
[ 0, 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Condition", "Return'" ]
[ "def FUNC_7():...\n", "VAR_21 = random.SystemRandom()\n", "VAR_22 = str(VAR_21.getrandbits(128))\n", "return tornado.web.Application([('/', CLASS_4), ('/login', CLASS_1), (\n '/logout', CLASS_2), ('/settings', CLASS_5), ('/runScriptWebSocket',\n CLASS_7), ('/randomImageBrowserWebSocket', CLASS_6), (\n ...
[ "def make_app():...\n", "randomGenerator = random.SystemRandom()\n", "cookieSecret = str(randomGenerator.getrandbits(128))\n", "return tornado.web.Application([('/', HomeHandler), ('/login', LoginHandler\n ), ('/logout', LogoutHandler), ('/settings', SettingsHandler), (\n '/runScriptWebSocket', RunScrip...
[ 0, 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Assign'", "Return'" ]
[ "def FUNC_27(self, VAR_9):...\n", "\"\"\"docstring\"\"\"\n" ]
[ "def pre_validate(self, form):...\n", "\"\"\"docstring\"\"\"\n" ]
[ 0, 0 ]
[ "FunctionDef'", "Docstring" ]
[ "@property...\n", "return tornado.web.HTTPError\n" ]
[ "@property...\n", "return tornado.web.HTTPError\n" ]
[ 0, 0 ]
[ "Condition", "Return'" ]
[ "def FUNC_2(VAR_7):...\n", "return urlparse.urljoin(CLASS_0.server_location, VAR_7)\n" ]
[ "def _BuildUri(handler):...\n", "return urlparse.urljoin(BaseRequest.server_location, handler)\n" ]
[ 0, 0 ]
[ "FunctionDef'", "Return'" ]
[ "__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 sys\n", "import inspect\n", "import sre_constants\n", "from collections import defaultdict\n", "f...
[ "__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 sys\n", "import inspect\n", "import sre_constants\n", "from collections import defaultdict\n", "f...
[ 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...
[ "Assign'", "Assign'", "Assign'", "Assign'", "Import'", "Import'", "Import'", "Import'", "Import'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "FunctionDef'", "Docstring", "Condition", "Assign'", "Condition", "Assign'", "Assign'", "FunctionDef...
[ "def FUNC_3(self, VAR_18):...\n", "\"\"\"docstring\"\"\"\n" ]
[ "def execute(self, builtins):...\n", "\"\"\"docstring\"\"\"\n" ]
[ 0, 0 ]
[ "FunctionDef'", "Docstring" ]
[ "def FUNC_23(VAR_3, VAR_12=False):...\n", "VAR_0, VAR_10 = FUNC_0()\n", "VAR_30 = FUNC_22(VAR_10, VAR_3, VAR_12)\n", "FUNC_1(VAR_0)\n", "return VAR_30\n" ]
[ "def genTokensExternal(poll_name, count=False):...\n", "conn, c = connectDB()\n", "tok = genTokens(c, poll_name, count)\n", "closeDB(conn)\n", "return tok\n" ]
[ 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Assign'", "Expr'", "Return'" ]
[ "def FUNC_28(self, VAR_18=False):...\n", "\"\"\"docstring\"\"\"\n", "def FUNC_45(VAR_25, VAR_39):...\n", "if self.parentfield:\n", "return '{} #{}: {}: {}'.format(_('Row'), self.idx, _(VAR_25.label), VAR_39)\n", "return '{}: {}'.format(_(VAR_25.label), VAR_39)\n" ]
[ "def get_invalid_links(self, is_submittable=False):...\n", "\"\"\"docstring\"\"\"\n", "def get_msg(df, docname):...\n", "if self.parentfield:\n", "return '{} #{}: {}: {}'.format(_('Row'), self.idx, _(df.label), docname)\n", "return '{}: {}'.format(_(df.label), docname)\n" ]
[ 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "FunctionDef'", "Condition", "Return'", "Return'" ]
[ "def FUNC_0(VAR_0):...\n", "VAR_6 = ['preferred', 'other', 'exceptions']\n", "VAR_7 = VAR_0.head.commit.tree['LICENSES']\n", "VAR_8 = CLASS_2()\n", "for d in VAR_6:\n", "for VAR_5 in VAR_7[d].traverse():\n", "return VAR_8\n", "if not os.path.isfile(VAR_5.path):\n", "VAR_23 = None\n", "for l in ope...
[ "def read_spdxdata(repo):...\n", "license_dirs = ['preferred', 'other', 'exceptions']\n", "lictree = repo.head.commit.tree['LICENSES']\n", "spdx = SPDXdata()\n", "for d in license_dirs:\n", "for el in lictree[d].traverse():\n", "return spdx\n", "if not os.path.isfile(el.path):\n", "exception = None\...
[ 0, 1, 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'", "Assign'", "Assign'", "Assign'", "For", "For", "Return'", "Condition", "Assign'", "For", "Condition", "Assign'", "Condition", "Condition", "Assign'", "Condition", "Expr'", "Assign'", "For", "Condition", "Condition", "Condition", "Expr'", "Condition", "...
[ "def FUNC_1(self, VAR_1):...\n", "VAR_4 = {'X-XSRF-TOKEN': self.xsrf_token}\n", "if 'headers' in VAR_1:\n", "VAR_1['headers'].update(VAR_4)\n", "VAR_1['headers'] = VAR_4\n", "return VAR_1\n" ]
[ "def _set_xsrf_headers(self, kwargs):...\n", "xsrf_header = {'X-XSRF-TOKEN': self.xsrf_token}\n", "if 'headers' in kwargs:\n", "kwargs['headers'].update(xsrf_header)\n", "kwargs['headers'] = xsrf_header\n", "return kwargs\n" ]
[ 0, 5, 0, 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Condition", "Expr'", "Assign'", "Return'" ]
[ "def FUNC_0(self):...\n", "if not GenericRequest.test_success(self):\n", "return False\n", "VAR_13 = re.compile(self.username)\n", "if self.loggedin:\n", "if VAR_13.search(self.res_data) is None:\n", "if VAR_13.search(self.res_data) is not None:\n", "return False\n", "return True\n", "return False...
[ "def test_success(self):...\n", "if not GenericRequest.test_success(self):\n", "return False\n", "username_re = re.compile(self.username)\n", "if self.loggedin:\n", "if username_re.search(self.res_data) is None:\n", "if username_re.search(self.res_data) is not None:\n", "return False\n", "return Tru...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Condition", "Return'", "Assign'", "Condition", "Condition", "Condition", "Return'", "Return'", "Return'" ]
[ "def FUNC_3(VAR_1, VAR_2):...\n", "\"\"\"docstring\"\"\"\n", "VAR_8 = VAR_1.file_name().split('/')[-1]\n", "VAR_14 = VAR_2.strftime('<%a., %b. %d, %Y, %I:%M %p>')\n", "VAR_1.run_command('move_to', {'to': 'eof'})\n", "VAR_1.run_command('insert_snippet', {'contents': '\\n\\n' + VAR_4() +\n 'Created ' + V...
[ "def add_created_timestamp(view, timestamp):...\n", "\"\"\"docstring\"\"\"\n", "filename = view.file_name().split('/')[-1]\n", "text_timestamp = timestamp.strftime('<%a., %b. %d, %Y, %I:%M %p>')\n", "view.run_command('move_to', {'to': 'eof'})\n", "view.run_command('insert_snippet', {'contents': '\\n\\n' +...
[ 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Assign'", "Assign'", "Expr'", "Expr'", "Expr'" ]
[ "def FUNC_4(self):...\n", "self.driver._eql_execute = self.mox.CreateMock(self.driver._eql_execute)\n", "VAR_1 = {'name': self.volume_name, 'size': 1, 'id': self.volid}\n", "self.driver._eql_execute('volume', 'select', VAR_1['name'], 'show').AndRaise(\n processutils.ProcessExecutionError(stdout=\n \"\"\...
[ "def test_delete_absent_volume(self):...\n", "self.driver._eql_execute = self.mox.CreateMock(self.driver._eql_execute)\n", "volume = {'name': self.volume_name, 'size': 1, 'id': self.volid}\n", "self.driver._eql_execute('volume', 'select', volume['name'], 'show').AndRaise(\n processutils.ProcessExecutionErr...
[ 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Assign'", "Expr'", "Expr'", "Expr'" ]
[ "def FUNC_2(self):...\n", "return \"\"\"Task: %s (ID %d)\nSubmission: %s\n\"\"\" % (self.task[1], self.task[0],\n self.submission_num) + GenericRequest.specific_info(self)\n" ]
[ "def specific_info(self):...\n", "return \"\"\"Task: %s (ID %d)\nSubmission: %s\n\"\"\" % (self.task[1], self.task[0],\n self.submission_num) + GenericRequest.specific_info(self)\n" ]
[ 0, 0 ]
[ "FunctionDef'", "Return'" ]
[ "def FUNC_1(self):...\n", "self.handled_resp = None\n", "self.handled_remote = None\n", "self.handled_args = None\n", "self.handled_kwargs = None\n", "from invenio.modules.oauthclient.models import RemoteToken, RemoteAccount\n", "RemoteToken.query.delete()\n", "RemoteAccount.query.delete()\n", "db.s...
[ "def tearDown(self):...\n", "self.handled_resp = None\n", "self.handled_remote = None\n", "self.handled_args = None\n", "self.handled_kwargs = None\n", "from invenio.modules.oauthclient.models import RemoteToken, RemoteAccount\n", "RemoteToken.query.delete()\n", "RemoteAccount.query.delete()\n", "db...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Assign'", "Assign'", "Assign'", "ImportFrom'", "Expr'", "Expr'", "Expr'" ]
[ "@VAR_4...\n", "if not VAR_6.check(cmdline.ArgumentParsingError):\n", "VAR_6.raiseException()\n", "self.print_prompt()\n" ]
[ "@deferred...\n", "if not f.check(cmdline.ArgumentParsingError):\n", "f.raiseException()\n", "self.print_prompt()\n" ]
[ 0, 0, 0, 0 ]
[ "Condition", "Condition", "Expr'", "Expr'" ]
[ "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_6(self, VAR_46, VAR_47):...\n", "return True\n" ]
[ "def run(self, vh, thing_name):...\n", "return True\n" ]
[ 0, 0 ]
[ "FunctionDef'", "Return'" ]
[ "@auth.require(auth.is_admin)...\n", "VAR_4 = {'lease_requests': [], 'next_page_token': None, 'now_ts': utils.\n time_time()}\n", "if VAR_2:\n", "VAR_8 = models.LeaseRequest.get_by_id(VAR_2)\n", "VAR_6 = models.LeaseRequest.query().order(-models.LeaseRequest.last_modified_ts\n )\n", "if not VAR_8:\n...
[ "@auth.require(auth.is_admin)...\n", "params = {'lease_requests': [], 'next_page_token': None, 'now_ts': utils.\n time_time()}\n", "if lease_id:\n", "lease_request = models.LeaseRequest.get_by_id(lease_id)\n", "query = models.LeaseRequest.query().order(-models.LeaseRequest.last_modified_ts\n )\n", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "Condition", "Assign'", "Condition", "Assign'", "Assign'", "Condition", "Assign'", "Expr'", "Assign'", "Assign'", "Expr'" ]
[ "def FUNC_11(VAR_14, VAR_3=None, VAR_4=None, VAR_5=None, VAR_2=VAR_0, VAR_24...\n", "if VAR_14.method == 'GET':\n", "if VAR_3 is not None:\n", "return HttpResponseNotAllowed(['GET'])\n", "VAR_8 = get_object_or_404(VAR_5, **{group_slug_field: group_slug})\n", "VAR_46 = VAR_47 = True\n", "VAR_24 = VAR_24....
[ "def history(request, group_slug=None, group_slug_field=None, group_qs=None,...\n", "if request.method == 'GET':\n", "if group_slug is not None:\n", "return HttpResponseNotAllowed(['GET'])\n", "group = get_object_or_404(group_qs, **{group_slug_field: group_slug})\n", "allow_read = allow_write = True\n", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "Condition", "Condition", "Condition", "Return'", "Assign'", "Assign'", "Assign'", "Condition", "Assign'", "Return'", "Assign'", "Assign'", "Condition", "Assign'", "Condition", "Expr'", "Return'" ]
[ "def FUNC_12():...\n", "VAR_39 = ''\n", "if not VAR_3:\n", "logging.error('Could not read metafile!', full_traceback())\n", "return VAR_39\n", "VAR_39 = f.read()\n", "VAR_39 = self.getDropboxFile(VAR_12).decode()\n" ]
[ "def getMetadata():...\n", "metadata = ''\n", "if not FROM_DROPBOX:\n", "logging.error('Could not read metafile!', full_traceback())\n", "return metadata\n", "metadata = f.read()\n", "metadata = self.getDropboxFile(filepath).decode()\n" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Condition", "Expr'", "Return'", "Assign'", "Assign'" ]
[ "def FUNC_2():...\n", "db.test()\n" ]
[ "def configure_extensions():...\n", "db.test()\n" ]
[ 0, 0 ]
[ "FunctionDef'", "Expr'" ]
[ "def FUNC_24(self, VAR_7, VAR_17):...\n", "self.common.extend_volume(VAR_7, VAR_17)\n" ]
[ "def extend_volume(self, volume, new_size):...\n", "self.common.extend_volume(volume, new_size)\n" ]
[ 0, 0 ]
[ "FunctionDef'", "Expr'" ]
[ "@property...\n", "return self._input\n" ]
[ "@property...\n", "return self._input\n" ]
[ 0, 0 ]
[ "Condition", "Return'" ]
[ "def FUNC_0(self, VAR_4, VAR_5, VAR_6=True):...\n", "\"\"\"docstring\"\"\"\n", "VAR_14 = []\n", "for VAR_43, v in VAR_5.items():\n", "VAR_14.append(' %s=%s' % (VAR_43, v))\n", "VAR_15 = VAR_4 + ''.join(VAR_14)\n", "return self._run_ssh(VAR_15, VAR_6)\n" ]
[ "def _cliq_run(self, verb, cliq_args, check_exit_code=True):...\n", "\"\"\"docstring\"\"\"\n", "cliq_arg_strings = []\n", "for k, v in cliq_args.items():\n", "cliq_arg_strings.append(' %s=%s' % (k, v))\n", "cmd = verb + ''.join(cliq_arg_strings)\n", "return self._run_ssh(cmd, check_exit_code)\n" ]
[ 0, 0, 2, 0, 2, 2, 2 ]
[ "FunctionDef'", "Docstring", "Assign'", "For", "Expr'", "Assign'", "Return'" ]
[ "@detail_route(methods=['post'])...\n", "return self.set_pending_action(pending_actions.RESTART, *VAR_13, **kwargs)\n" ]
[ "@detail_route(methods=['post'])...\n", "return self.set_pending_action(pending_actions.RESTART, *args, **kwargs)\n" ]
[ 0, 0 ]
[ "Condition", "Return'" ]
[ "def __setstate__(self, VAR_1):...\n", "return self.deserialize(VAR_1)\n" ]
[ "def __setstate__(self, data):...\n", "return self.deserialize(data)\n" ]
[ 0, 0 ]
[ "FunctionDef'", "Return'" ]
[ "@inlineCallbacks...\n", "\"\"\"docstring\"\"\"\n", "VAR_6 = self.nodes[0].overlay.metadata_store.ChannelMetadata.create_channel(\n 'test', 'bla')\n", "self.add_random_torrent(self.nodes[0].overlay.metadata_store.TorrentMetadata)\n", "VAR_6.commit_channel_torrent()\n", "self.nodes[0].overlay.send_rando...
[ "@inlineCallbacks...\n", "\"\"\"docstring\"\"\"\n", "channel = self.nodes[0].overlay.metadata_store.ChannelMetadata.create_channel(\n 'test', 'bla')\n", "self.add_random_torrent(self.nodes[0].overlay.metadata_store.TorrentMetadata)\n", "channel.commit_channel_torrent()\n", "self.nodes[0].overlay.send_r...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "Condition", "Docstring", "Assign'", "Expr'", "Expr'", "Expr'", "Expr'", "Expr'", "Assign'", "Expr'" ]
[ "@tornado.gen.coroutine...\n", "VAR_17 = 'INSERT INTO users(email, pass_hash) VALUES (%s, %s)'\n", "VAR_18 = VAR_15, VAR_16\n", "yield VAR_1.execute(query=sql, VAR_18=params)\n" ]
[ "@tornado.gen.coroutine...\n", "sql = 'INSERT INTO users(email, pass_hash) VALUES (%s, %s)'\n", "params = email, pass_hash\n", "yield tx.execute(query=sql, params=params)\n" ]
[ 0, 0, 0, 0 ]
[ "Condition", "Assign'", "Assign'", "Expr'" ]
[ "def FUNC_8(self, VAR_5, VAR_6, VAR_23, VAR_24=None, VAR_25='ilike', VAR_13=...\n", "\"\"\"docstring\"\"\"\n", "if VAR_24 is None:\n", "VAR_24 = []\n", "VAR_20 = self.search(VAR_5, VAR_6, ['|', ('name', VAR_25, VAR_23), ('code',\n VAR_25, VAR_23)] + VAR_24, VAR_26=limit, VAR_13=context)\n", "return sel...
[ "def name_search(self, cr, uid, name, args=None, operator='ilike', context=...\n", "\"\"\"docstring\"\"\"\n", "if args is None:\n", "args = []\n", "ids = self.search(cr, uid, ['|', ('name', operator, name), ('code',\n operator, name)] + args, limit=limit, context=context)\n", "return self.name_get(cr, ...
[ 0, 0, 0, 0, 0, 0 ]
[ "Condition", "Docstring", "Condition", "Assign'", "Assign'", "Return'" ]
[ "def __getitem__(self, VAR_44):...\n", "" ]
[ "def __getitem__(self, key):...\n", "" ]
[ 0, 0 ]
[ "FunctionDef'", "Condition" ]
[ "def FUNC_3(self):...\n", "VAR_2 = self.connect()\n", "VAR_3 = 'DELETE FROM crimes;'\n", "VAR_2.close()\n", "cursor.execute(VAR_3)\n", "VAR_2.commit()\n" ]
[ "def clear_all(self):...\n", "connection = self.connect()\n", "query = 'DELETE FROM crimes;'\n", "connection.close()\n", "cursor.execute(query)\n", "connection.commit()\n" ]
[ 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Assign'", "Expr'", "Expr'", "Expr'" ]
[ "def FUNC_18(self, VAR_18, VAR_14=None, VAR_10='main'):...\n", "\"\"\"docstring\"\"\"\n", "if type(VAR_18) != type(u''):\n", "VAR_18 = VAR_18.decode('utf8')\n", "if type(VAR_14) != type(u''):\n", "VAR_14 = VAR_14.decode('utf8')\n", "if len(VAR_18) < 4:\n", "return\n", "VAR_26 = 'string' % {'phrase':...
[ "def check_phrase(self, phrase, input_phrase=None, database='main'):...\n", "\"\"\"docstring\"\"\"\n", "if type(phrase) != type(u''):\n", "phrase = phrase.decode('utf8')\n", "if type(input_phrase) != type(u''):\n", "input_phrase = input_phrase.decode('utf8')\n", "if len(phrase) < 4:\n", "return\n", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Condition", "Assign'", "Condition", "Assign'", "Condition", "Return'", "Assign'", "Assign'", "Expr'", "Condition", "Expr'", "Assign'", "Assign'", "Assign'", "Expr'", "Expr'", "Expr'", "Expr'", "Expr'", "Expr'", "Expr'", "Expr'" ]
[ "def FUNC_1(self):...\n", "return 'release test the %s-th submission for task %s (ID %d)' % (self.\n submission_num, self.task[1], self.task[0])\n" ]
[ "def describe(self):...\n", "return 'release test the %s-th submission for task %s (ID %d)' % (self.\n submission_num, self.task[1], self.task[0])\n" ]
[ 0, 0 ]
[ "FunctionDef'", "Return'" ]
[ "@web.authenticated...\n", "VAR_3 = self.contents_manager\n", "if VAR_3.is_hidden(VAR_1) and not VAR_3.allow_hidden:\n", "self.log.info('Refusing to serve hidden file, via 404 Error')\n", "VAR_1 = VAR_1.strip('/')\n", "if '/' in VAR_1:\n", "VAR_5, VAR_6 = VAR_1.rsplit('/', 1)\n", "VAR_6 = VAR_1\n", ...
[ "@web.authenticated...\n", "cm = self.contents_manager\n", "if cm.is_hidden(path) and not cm.allow_hidden:\n", "self.log.info('Refusing to serve hidden file, via 404 Error')\n", "path = path.strip('/')\n", "if '/' in path:\n", "_, name = path.rsplit('/', 1)\n", "name = path\n", "model = yield maybe_...
[ 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 ]
[ "Condition", "Assign'", "Condition", "Expr'", "Assign'", "Condition", "Assign'", "Assign'", "Assign'", "Condition", "Expr'", "Condition", "Expr'", "Assign'", "Condition", "Condition", "For", "Expr'", "Condition", "Assign'", "For", "Expr'", "For", "Expr'", "Expr'", "...
[ "def FUNC_33(self):...\n", "def FUNC_39(VAR_101):...\n", "VAR_101.norun = True\n", "return VAR_101\n" ]
[ "def norun(self):...\n", "def decorate(ruleinfo):...\n", "ruleinfo.norun = True\n", "return ruleinfo\n" ]
[ 0, 0, 0, 0 ]
[ "FunctionDef'", "FunctionDef'", "Assign'", "Return'" ]
[ "def __init__(self, VAR_9, VAR_28, VAR_19=None):...\n", "super(CLASS_3, self).__init__(VAR_9['command'], VAR_19)\n", "self.req = VAR_9\n", "self._result_getter = VAR_28\n" ]
[ "def __init__(self, req, result_getter, event=None):...\n", "super(AwaitableResponse, self).__init__(req['command'], event)\n", "self.req = req\n", "self._result_getter = result_getter\n" ]
[ 0, 0, 0, 0 ]
[ "FunctionDef'", "Expr'", "Assign'", "Assign'" ]
[ "def __init__(self, VAR_1, VAR_2=None):...\n", "if isinstance(VAR_1, CLASS_3):\n", "for attr in ('_r_item_', '_r_is_multi_item_', '_r_raise_'):\n", "self._r_item_ = VAR_1\n", "setattr(self, attr, getattr(VAR_1, attr))\n", "self._r_path_ = CLASS_1(VAR_1._r_item_, VAR_1._r_path_)\n", "self._r_path_ = CLAS...
[ "def __init__(self, item, _raise=None):...\n", "if isinstance(item, Roamer):\n", "for attr in ('_r_item_', '_r_is_multi_item_', '_r_raise_'):\n", "self._r_item_ = item\n", "setattr(self, attr, getattr(item, attr))\n", "self._r_path_ = _Path(item._r_item_, item._r_path_)\n", "self._r_path_ = _Path(self._...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Condition", "For", "Assign'", "Expr'", "Assign'", "Assign'", "Condition", "Assign'" ]
[ "@gallery.before_request...\n", "g.user = current_user\n" ]
[ "@gallery.before_request...\n", "g.user = current_user\n" ]
[ 0, 0 ]
[ "For", "Assign'" ]
[ "def FUNC_32(VAR_19):...\n", "return dict((expr, vimsupport.VimExpressionToPythonType(expr)) for expr in\n VAR_19)\n" ]
[ "def BuildExtraConfData(extra_conf_vim_data):...\n", "return dict((expr, vimsupport.VimExpressionToPythonType(expr)) for expr in\n extra_conf_vim_data)\n" ]
[ 0, 0 ]
[ "FunctionDef'", "Return'" ]
[ "def __eq__(self, VAR_3):...\n", "if isinstance(VAR_3, CLASS_1):\n", "return hash(self) == hash(VAR_3)\n", "return False\n" ]
[ "def __eq__(self, other):...\n", "if isinstance(other, TraversalPath):\n", "return hash(self) == hash(other)\n", "return False\n" ]
[ 0, 0, 0, 0 ]
[ "FunctionDef'", "Condition", "Return'", "Return'" ]
[ "def FUNC_3(VAR_4=None):...\n", "if VAR_4 is None:\n", "VAR_13 = web.Application()\n", "VAR_13 = web.Application(VAR_4=loop)\n", "VAR_13.router.add_static('/images', VAR_3.STORAGE_DIR)\n", "VAR_13.router.add_static('/static', os.path.join(VAR_0, 'app'))\n", "VAR_13.router.add_route('GET', '/', FUNC_0)\n...
[ "def create_app(loop=None):...\n", "if loop is None:\n", "app = web.Application()\n", "app = web.Application(loop=loop)\n", "app.router.add_static('/images', settings.STORAGE_DIR)\n", "app.router.add_static('/static', os.path.join(BASE_DIR, 'app'))\n", "app.router.add_route('GET', '/', homepage)\n", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Condition", "Assign'", "Assign'", "Expr'", "Expr'", "Expr'", "Expr'", "Return'" ]
[ "def FUNC_27(self):...\n", "VAR_16 = vimsupport.CurrentFiletypes()\n", "VAR_17 = self._user_options['filetype_specific_completion_to_disable']\n", "return not all([(x in VAR_17) for x in VAR_16])\n" ]
[ "def CurrentFiletypeCompletionEnabled(self):...\n", "filetypes = vimsupport.CurrentFiletypes()\n", "filetype_to_disable = self._user_options[\n 'filetype_specific_completion_to_disable']\n", "return not all([(x in filetype_to_disable) for x in filetypes])\n" ]
[ 0, 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Assign'", "Return'" ]
[ "@property...\n", "" ]
[ "@property...\n", "" ]
[ 0, 0 ]
[ "Condition", "Condition" ]
[ "import logging\n", "import uuid\n", "from crochet import setup, wait_for\n", "from leap.common.events.server import ensure_server\n", "from twisted.internet import defer\n", "from pixelated.application import UserAgentMode\n", "from pixelated.config.site import PixelatedSite\n", "from test.support.di...
[ "import logging\n", "import uuid\n", "from crochet import setup, wait_for\n", "from leap.common.events.server import ensure_server\n", "from twisted.internet import defer\n", "from pixelated.application import UserAgentMode\n", "from pixelated.config.site import PixelatedSite\n", "from test.support.di...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "Import'", "Import'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "Import'", "Expr'", "For", "Return'" ]
[ "def FUNC_12(self):...\n", "return self._omnicomp\n" ]
[ "def GetOmniCompleter(self):...\n", "return self._omnicomp\n" ]
[ 0, 0 ]
[ "FunctionDef'", "Return'" ]
[ "def FUNC_2(VAR_0, VAR_1):...\n", "VAR_5 = frappe.session.user\n", "VAR_6 = get_leave_allocation_records(VAR_0.to_date)\n", "VAR_7 = get_leave_allocation_records(VAR_0.from_date)\n", "VAR_8 = frappe.get_all('Employee', VAR_0={'status': 'Active', 'company':\n filters.company}, fields=['name', 'employee_na...
[ "def get_data(filters, leave_types):...\n", "user = frappe.session.user\n", "allocation_records_based_on_to_date = get_leave_allocation_records(filters.\n to_date)\n", "allocation_records_based_on_from_date = get_leave_allocation_records(filters\n .from_date)\n", "active_employees = frappe.get_all('Em...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0 ]
[ "FunctionDef'", "Assign'", "Assign'", "Assign'", "Assign'", "Assign'", "For", "Assign'", "Return'", "Condition", "Assign'", "For", "Assign'", "Expr'", "Assign'", "Assign'", "AugAssign'" ]
[ "def FUNC_37(self, VAR_69):...\n", "if not_iterable(VAR_69):\n", "return flag(os.path.join(self.workdir, VAR_69), 'subworkflow', self)\n", "return [self.target(VAR_0) for VAR_0 in VAR_69]\n" ]
[ "def target(self, paths):...\n", "if not_iterable(paths):\n", "return flag(os.path.join(self.workdir, paths), 'subworkflow', self)\n", "return [self.target(path) for path in paths]\n" ]
[ 0, 0, 0, 0 ]
[ "FunctionDef'", "Condition", "Return'", "Return'" ]
[ "\"\"\"string\"\"\"\n", "from lib.core.agent import agent\n", "from lib.core.data import conf\n", "from lib.core.data import kb\n", "from lib.core.data import logger\n", "from lib.core.data import queries\n", "from lib.core.session import setUnion\n", "from lib.request.connect import Connect as Reques...
[ "\"\"\"\n$Id$\n\nThis file is part of the sqlmap project, http://sqlmap.sourceforge.net.\n\nCopyright (c) 2006-2008 Bernardo Damele A. G. <bernardo.damele@gmail.com>\n and Daniele Bellucci <daniele.bellucci@gmail.com>\n\nsqlmap is free software; you can redistribute it and/or modify it under\...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 2, 2, 0, 2, 0, 0, 0, 0, 2, 0, 0, 2, 0, 2 ]
[ "Expr'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "FunctionDef'", "Docstring", "Assign'", "For", "Condition", "Return'", "Assign'", "Condition", "AugAssign'", "Condition", "AugAssign'", "Assign'", "Assign'", "A...
[ "def FUNC_6(self, VAR_11):...\n", "self._portal = VAR_11\n" ]
[ "def set_portal(self, portal):...\n", "self._portal = portal\n" ]
[ 0, 0 ]
[ "FunctionDef'", "Assign'" ]
[ "@defer.inlineCallbacks...\n", "self._initialize()\n", "self._mode = VAR_15\n", "self._test_account = CLASS_0(self.ACCOUNT, self._tmp_dir.name)\n", "yield self._test_account.start()\n", "self.cleanup = lambda : self._tmp_dir.dissolve()\n", "self.soledad = self._test_account.soledad\n", "self.search_en...
[ "@defer.inlineCallbacks...\n", "self._initialize()\n", "self._mode = mode\n", "self._test_account = AppTestAccount(self.ACCOUNT, self._tmp_dir.name)\n", "yield self._test_account.start()\n", "self.cleanup = lambda : self._tmp_dir.dissolve()\n", "self.soledad = self._test_account.soledad\n", "self.sear...
[ 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 ]
[ "Condition", "Expr'", "Assign'", "Assign'", "Expr'", "Assign'", "Assign'", "Assign'", "Assign'", "Assign'", "Assign'", "Assign'", "Assign'", "Assign'", "Assign'", "Assign'", "Assign'", "Condition", "Assign'", "Assign'", "Assign'", "Assign'", "Expr'", "Assign'", "Assig...
[ "def FUNC_18(self):...\n", "VAR_13 = ['Line1 passed', 'Line1 failed']\n", "VAR_14 = ['Line1', 'Line2']\n", "VAR_15 = [' passed', None]\n", "self.assertEqual(self.driver._get_prefixed_value(VAR_13, VAR_14[0]), VAR_15[0])\n", "self.assertEqual(self.driver._get_prefixed_value(VAR_13, VAR_14[1]), VAR_15[1])\n...
[ "def test_get_prefixed_value(self):...\n", "lines = ['Line1 passed', 'Line1 failed']\n", "prefix = ['Line1', 'Line2']\n", "expected_output = [' passed', None]\n", "self.assertEqual(self.driver._get_prefixed_value(lines, prefix[0]),\n expected_output[0])\n", "self.assertEqual(self.driver._get_prefixed_v...
[ 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Assign'", "Assign'", "Expr'", "Expr'" ]
[ "def FUNC_2():...\n", "VAR_9 = MySQLdb.connect('localhost', 'root', os.environ['PASSWORD'], 'test')\n", "return VAR_9\n" ]
[ "def connect_to_database():...\n", "db = MySQLdb.connect('localhost', 'root', os.environ['PASSWORD'], 'test')\n", "return db\n" ]
[ 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Return'" ]
[ "@VAR_0.filter...\n", "return Submission.STATUS[VAR_6]\n" ]
[ "@register.filter...\n", "return Submission.STATUS[status]\n" ]
[ 0, 0 ]
[ "Condition", "Return'" ]
[ "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'" ]
[ "from base import Field\n", "VAR_0 = 'BOOL'\n", "def __init__(self, *VAR_1, **VAR_2):...\n", "super(CLASS_0, self).__init__(*VAR_1, **kwargs)\n", "def FUNC_0(self, VAR_3):...\n", "VAR_5 = '%s bool' % str(VAR_3)\n", "return VAR_5\n" ]
[ "from base import Field\n", "TYPE = 'BOOL'\n", "def __init__(self, *args, **kwargs):...\n", "super(BooleanField, self).__init__(*args, **kwargs)\n", "def create_field(self, name):...\n", "field_string = '%s bool' % str(name)\n", "return field_string\n" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ "ImportFrom'", "Assign'", "FunctionDef'", "Expr'", "FunctionDef'", "Assign'", "Return'" ]
[ "def FUNC_7(self):...\n", "super(CLASS_0, self).validate()\n", "if not self.blog_intro:\n", "self.blog_intro = self.content[:140]\n", "if self.blog_intro:\n", "self.blog_intro = strip_html_tags(self.blog_intro)\n", "self.blog_intro = self.blog_intro[:140]\n", "if self.published and not self.published_...
[ "def validate(self):...\n", "super(BlogPost, self).validate()\n", "if not self.blog_intro:\n", "self.blog_intro = self.content[:140]\n", "if self.blog_intro:\n", "self.blog_intro = strip_html_tags(self.blog_intro)\n", "self.blog_intro = self.blog_intro[:140]\n", "if self.published and not self.publish...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Expr'", "Condition", "Assign'", "Condition", "Assign'", "Assign'", "Condition", "Assign'", "Expr'" ]
[ "def FUNC_23(VAR_11):...\n", "return '%s> ' % self.configuration.eqlx_group_name\n" ]
[ "def _fake_recv(ignore_arg):...\n", "return '%s> ' % self.configuration.eqlx_group_name\n" ]
[ 0, 0 ]
[ "FunctionDef'", "Return'" ]
[ "from django.forms import SelectMultiple, Textarea\n", "import django_filters\n", "from re import split\n", "from .models import event, injection, result, simics_register_diff\n", "def FUNC_0(VAR_0):...\n", "return ''.join([(text.zfill(5) if text.isdigit() else text.lower()) for\n text in split('([0-9]...
[ "from django.forms import SelectMultiple, Textarea\n", "import django_filters\n", "from re import split\n", "from .models import event, injection, result, simics_register_diff\n", "def fix_sort(string):...\n", "return ''.join([(text.zfill(5) if text.isdigit() else text.lower()) for\n text in split('([0...
[ 0, 0, 0, 0, 0, 0 ]
[ "ImportFrom'", "Import'", "ImportFrom'", "ImportFrom'", "FunctionDef'", "Return'" ]
[ "from __future__ import unicode_literals\n", "from django.db import models, migrations\n", "VAR_0 = [('notification', '0002_auto_20160912_1341')]\n", "VAR_1 = [migrations.AlterField(model_name='notification', name='submission',\n field=models.ForeignKey(blank=True, related_name='notifications', null=\n ...
[ "from __future__ import unicode_literals\n", "from django.db import models, migrations\n", "dependencies = [('notification', '0002_auto_20160912_1341')]\n", "operations = [migrations.AlterField(model_name='notification', name=\n 'submission', field=models.ForeignKey(blank=True, related_name=\n 'notifica...
[ 0, 0, 0, 4 ]
[ "ImportFrom'", "ImportFrom'", "Assign'", "Assign'" ]
[ "def FUNC_7(self, VAR_8, VAR_9):...\n", "VAR_14 = False\n", "while not VAR_14:\n", "VAR_24 = VAR_8.value\n", "if VAR_24:\n", "VAR_8.value -= 1\n", "self.create_result()\n", "if VAR_9:\n", "VAR_25 = 'campaign-data/' + str(self.campaign_data['id']) + '/results/' + str(\n self.result_data['id'])\n",...
[ "def supervise(self, iteration_counter, packet_capture):...\n", "interrupted = False\n", "while not interrupted:\n", "iteration = iteration_counter.value\n", "if iteration:\n", "iteration_counter.value -= 1\n", "self.create_result()\n", "if packet_capture:\n", "data_dir = 'campaign-data/' + str(self...
[ 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'", "Assign'", "Condition", "Assign'", "Condition", "AugAssign'", "Expr'", "Condition", "Assign'", "Condition", "Expr'", "Expr'", "Expr'", "Assign'", "Assign'", "Condition", "Expr'", "Assign'", "Expr'", "Expr'", "Condition", "Assign'", "Expr'", "Expr'", "C...
[ "def FUNC_0(self):...\n", "return {'user_id': self.user_id, 'username': self.username}\n" ]
[ "def to_dict(self):...\n", "return {'user_id': self.user_id, 'username': self.username}\n" ]
[ 0, 0 ]
[ "FunctionDef'", "Return'" ]
[ "@classmethod...\n", "\"\"\"docstring\"\"\"\n", "return VAR_14(VAR_4=None, VAR_5=bin_path)\n" ]
[ "@classmethod...\n", "\"\"\"docstring\"\"\"\n", "return cls(home_path=None, bin_path=bin_path)\n" ]
[ 0, 0, 0 ]
[ "Condition", "Docstring", "Return'" ]
[ "def FUNC_0(self):...\n", "VAR_3 = db.get(db.Key.from_path('Item', int(self.request.get('item_id'))))\n", "VAR_4 = db.GqlQuery('SELECT * FROM LoginInformation WHERE user_id = :1',\n VAR_3.created_by_id).get()\n", "database.render_template(self, 'items/view_item.html', {'item': VAR_3, 'li':\n VAR_4})\n" ...
[ "def get(self):...\n", "item = db.get(db.Key.from_path('Item', int(self.request.get('item_id'))))\n", "li = db.GqlQuery('SELECT * FROM LoginInformation WHERE user_id = :1', item.\n created_by_id).get()\n", "database.render_template(self, 'items/view_item.html', {'item': item, 'li': li}\n )\n" ]
[ 0, 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Assign'", "Expr'" ]
[ "def FUNC_6(self, VAR_10):...\n", "return '%s%s' % (self.configuration.iscsi_target_prefix, VAR_10['name'])\n" ]
[ "def _build_iscsi_target_name(self, volume):...\n", "return '%s%s' % (self.configuration.iscsi_target_prefix, volume['name'])\n" ]
[ 0, 0 ]
[ "FunctionDef'", "Return'" ]
[ "import logging\n", "from django import template\n", "from apps.app_renderers import build_plugin_renderers\n", "from course.models import CourseInstance\n", "from exercise.exercise_models import BaseExercise\n", "from exercise.submission_models import Submission\n", "VAR_0 = logging.getLogger('aplus.ap...
[ "import logging\n", "from django import template\n", "from apps.app_renderers import build_plugin_renderers\n", "from course.models import CourseInstance\n", "from exercise.exercise_models import BaseExercise\n", "from exercise.submission_models import Submission\n", "logger = logging.getLogger('aplus.a...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "Import'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "Assign'", "Assign'", "Condition", "Docstring", "Assign'", "Condition", "Return'", "Condition", "Assign'", "Condition", "Return'", "Assign'", "Expr'", "Return'", "Return'" ]
[ "def FUNC_6(self, VAR_0, VAR_1):...\n", "self.object_list = self.get_queryset(VAR_0, VAR_1)\n", "VAR_14 = self.get_context_data()\n", "return render(VAR_0, 'threat_hunter/event_list.html', VAR_14)\n" ]
[ "def get(self, request, pk):...\n", "self.object_list = self.get_queryset(request, pk)\n", "context = self.get_context_data()\n", "return render(request, 'threat_hunter/event_list.html', context)\n" ]
[ 0, 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Assign'", "Return'" ]
[ "def FUNC_0() ->tornado.web.Application:...\n", "return tornado.web.Application([('/', CLASS_2), ('/\\\\+(.*)', CLASS_2), (\n '/show/(.*)', CLASS_3), ('/raw/(.*)', CLASS_4), ('/remove/(.*)',\n CLASS_5), ('/static/(.*)', tornado.web.StaticFileHandler, {'path': path\n .static})], template_path=path.templat...
[ "def make_application() ->tornado.web.Application:...\n", "return tornado.web.Application([('/', CreatePaste), ('/\\\\+(.*)',\n CreatePaste), ('/show/(.*)', ShowPaste), ('/raw/(.*)', RawPaste), (\n '/remove/(.*)', RemovePaste), ('/static/(.*)', tornado.web.\n StaticFileHandler, {'path': path.static})], t...
[ 0, 0 ]
[ "FunctionDef'", "Return'" ]
[ "def FUNC_0():...\n", "if VAR_8 is None:\n", "VAR_8 = Browser()\n", "return VAR_8\n", "VAR_53 = AWSLoginRequest(VAR_8, VAR_5['username'], VAR_5['password'],\n base_url=AWS_BASE_URL)\n", "VAR_8.login(VAR_53)\n" ]
[ "def get_aws_browser():...\n", "if aws_browser is None:\n", "aws_browser = Browser()\n", "return aws_browser\n", "lr = AWSLoginRequest(aws_browser, admin_info['username'], admin_info[\n 'password'], base_url=AWS_BASE_URL)\n", "aws_browser.login(lr)\n" ]
[ 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Condition", "Assign'", "Return'", "Assign'", "Expr'" ]
[ "def FUNC_7(self):...\n", "self.cursor.execute('SELECT * FROM log_result WHERE campaign_id=?', [self.\n campaign['id']])\n", "return self.cursor.fetchall()\n" ]
[ "def get_result(self):...\n", "self.cursor.execute('SELECT * FROM log_result WHERE campaign_id=?', [self.\n campaign['id']])\n", "return self.cursor.fetchall()\n" ]
[ 0, 0, 0 ]
[ "FunctionDef'", "Expr'", "Return'" ]
[ "@cached_property...\n", "\"\"\"docstring\"\"\"\n", "return self.fields + self.virtual_fields\n" ]
[ "@cached_property...\n", "\"\"\"docstring\"\"\"\n", "return self.fields + self.virtual_fields\n" ]
[ 0, 0, 0 ]
[ "Condition", "Docstring", "Return'" ]
[ "def FUNC_1(self, VAR_2):...\n", "for VAR_6 in self.actors.keys():\n", "if not self.actors[VAR_6].noclip:\n", "VAR_7, VAR_8 = self.actors[VAR_6].getPos()\n", "assert VAR_2[VAR_7][VAR_8].isTraversable(), 'Actor not within traversable unit'\n", "VAR_16 = self.actors[VAR_6].getColliding()\n", "if VECTOR_RI...
[ "def boundIDbyBoard(self, board):...\n", "for ID in self.actors.keys():\n", "if not self.actors[ID].noclip:\n", "x, y = self.actors[ID].getPos()\n", "assert board[x][y].isTraversable(), 'Actor not within traversable unit'\n", "vecs = self.actors[ID].getColliding()\n", "if VECTOR_RIGHT in vecs:\n", "if...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "For", "Condition", "Assign'", "Assert'", "Assign'", "Condition", "Condition", "Condition", "Expr'", "Condition", "Condition", "Expr'", "Condition", "Condition", "Expr'", "Condition", "Expr'" ]
[ "@VAR_0.filter...\n", "VAR_6 = None\n", "if ',' in VAR_2:\n", "VAR_2, VAR_6 = VAR_2.split(',', 1)\n", "if isinstance(VAR_4, CourseInstance):\n", "return reverse('model-create', VAR_5=_normal_kwargs(model_object, model_name))\n", "if VAR_6:\n", "return reverse('model-create-type-for', VAR_5=_normal_kwa...
[ "@register.filter...\n", "type_name = None\n", "if ',' in model_name:\n", "model_name, type_name = model_name.split(',', 1)\n", "if isinstance(model_object, CourseInstance):\n", "return reverse('model-create', kwargs=_normal_kwargs(model_object, model_name))\n", "if type_name:\n", "return reverse('mod...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "Condition", "Assign'", "Condition", "Assign'", "Condition", "Return'", "Condition", "Return'", "Return'" ]
[ "def FUNC_6(self, VAR_1):...\n", "\"\"\"docstring\"\"\"\n", "VAR_12 = self.redirect_url\n", "if is_authenticated(VAR_1.user):\n", "VAR_13 = import_from_settings('OIDC_OP_LOGOUT_URL_METHOD', '')\n", "return HttpResponseRedirect(VAR_12)\n", "if VAR_13:\n", "VAR_12 = import_string(VAR_13)()\n", "auth.l...
[ "def post(self, request):...\n", "\"\"\"docstring\"\"\"\n", "logout_url = self.redirect_url\n", "if is_authenticated(request.user):\n", "logout_from_op = import_from_settings('OIDC_OP_LOGOUT_URL_METHOD', '')\n", "return HttpResponseRedirect(logout_url)\n", "if logout_from_op:\n", "logout_url = import_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Assign'", "Condition", "Assign'", "Return'", "Condition", "Assign'", "Expr'" ]
[ "def FUNC_9(self):...\n", "\"\"\"docstring\"\"\"\n", "self.tables = ['`tab' + self.doctype + '`']\n", "if self.fields:\n", "for VAR_34 in self.fields:\n", "if not ('tab' in VAR_34 and '.' in VAR_34\n", "VAR_32 = VAR_34.split('.')[0]\n", "if VAR_32.lower().startswith('group_concat('):\n", "VAR_32 = V...
[ "def extract_tables(self):...\n", "\"\"\"docstring\"\"\"\n", "self.tables = ['`tab' + self.doctype + '`']\n", "if self.fields:\n", "for f in self.fields:\n", "if not ('tab' in f and '.' in f) or 'locate(' in f or 'count(' in f:\n", "table_name = f.split('.')[0]\n", "if table_name.lower().startswith('g...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Assign'", "Condition", "For", "Condition", "Assign'", "Condition", "Assign'", "Condition", "Assign'", "Condition", "Assign'", "Condition", "Expr'" ]
[ "import sqlite3\n", "import os\n", "import random\n", "import matplotlib.pyplot as plt\n", "VAR_0 = ['math', 'strings', 'trees', 'graphs', 'dp', 'greedy', 'geometry',\n 'combinatorics']\n", "VAR_1 = ['A', 'B', 'C', 'D', 'E', 'F']\n", "def FUNC_0(VAR_2, VAR_3):...\n", "VAR_4 = list()\n", "VAR_5 = ...
[ "import sqlite3\n", "import os\n", "import random\n", "import matplotlib.pyplot as plt\n", "available_tags = ['math', 'strings', 'trees', 'graphs', 'dp', 'greedy',\n 'geometry', 'combinatorics']\n", "available_diff = ['A', 'B', 'C', 'D', 'E', 'F']\n", "def get_unsolved_problem(tag, username):...\n", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 4, 4, 0, 0, 0, 0, 0, 0, 4, 0, 4, 4, 0, 0, 0, 0, 0, 0, 0 ]
[ "Import'", "Import'", "Import'", "Import'", "Assign'", "Assign'", "FunctionDef'", "Assign'", "Assign'", "Assign'", "FunctionDef'", "Assign'", "Assign'", "Assign'", "Assign'", "Expr'", "Assign'", "Assign'", "Condition", "Expr'", "Expr'", "Assign'", "Expr'", "Condition", ...
[ "@VAR_0.route('/delete_selection', methods=['POST'])...\n", "VAR_1 = get_dataset_with_id(request.args.get('dataset_id'))\n", "VAR_6 = request.form.getlist('data_id')\n", "VAR_7 = table_name_to_object(VAR_1.working_copy)\n", "for data in VAR_6:\n", "VAR_7.delete(VAR_7.c.index == data).execute()\n", "crea...
[ "@_transform.route('/delete_selection', methods=['POST'])...\n", "dataset = get_dataset_with_id(request.args.get('dataset_id'))\n", "selected_data = request.form.getlist('data_id')\n", "table = table_name_to_object(dataset.working_copy)\n", "for data in selected_data:\n", "table.delete(table.c.index == da...
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "Condition", "Assign'", "Assign'", "Assign'", "For", "Expr'", "Expr'", "Return'" ]