lines
listlengths
1
444
raw_lines
listlengths
1
444
label
listlengths
1
444
type
listlengths
1
444
[ "\"\"\"string\"\"\"\n", "import sys\n", "from hp3parclient import exceptions as hpexceptions\n", "from cinder import exception\n", "from cinder.openstack.common import log as logging\n", "from cinder import utils\n", "import cinder.volume.driver\n", "from cinder.volume.drivers.san.hp import hp_3par_co...
[ "\"\"\"\nVolume driver for HP 3PAR Storage array.\nThis driver requires 3.1.2 MU2 firmware on the 3PAR array.\n\nYou will need to install the python hp3parclient.\nsudo pip install hp3parclient\n\nSet the following in the cinder.conf file to enable the\n3PAR iSCSI Driver along with the required flags:\n\nvolume_dri...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "Expr'", "Import'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "Import'", "ImportFrom'", "ImportFrom'", "Assign'", "Assign'", "Assign'", "Expr'", "FunctionDef'", "Expr'", "Assign'", "Expr'", "Expr'", "FunctionDef'", "Return'" ]
[ "def FUNC_12(self):...\n", "\"\"\"docstring\"\"\"\n", "VAR_7 = 'SELECT path FROM {0};'.format(VAR_2)\n", "VAR_4 = self._run_command(VAR_7)\n", "VAR_4 = [i[0] for i in VAR_4]\n", "VAR_4 = None\n", "return VAR_4\n" ]
[ "def getFileList(self):...\n", "\"\"\"docstring\"\"\"\n", "command = 'SELECT path FROM {0};'.format(TABLE_NAME)\n", "data = self._run_command(command)\n", "data = [i[0] for i in data]\n", "data = None\n", "return data\n" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Assign'", "Assign'", "Assign'", "Assign'", "Return'" ]
[ "def FUNC_1(VAR_0):...\n", "\"\"\"docstring\"\"\"\n", "if not VAR_0.type in ['CO']:\n", "return False\n", "if VAR_0.extracted_docs() > 0:\n", "return CLASS_2()\n", "return False\n" ]
[ "def include_clean_comp_data_form(dg):...\n", "\"\"\"docstring\"\"\"\n", "if not dg.type in ['CO']:\n", "return False\n", "if dg.extracted_docs() > 0:\n", "return CleanCompDataForm()\n", "return False\n" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Condition", "Return'", "Condition", "Return'", "Return'" ]
[ "def FUNC_9(VAR_0, VAR_12, VAR_3, VAR_4):...\n", "if VAR_12[0] < 0:\n", "VAR_31 = VAR_3[VAR_12[0]]\n", "VAR_31 = VAR_12[0]\n", "if VAR_12[1] < 0:\n", "VAR_32 = VAR_3[VAR_12[1]]\n", "VAR_32 = VAR_12[1]\n", "VAR_7 = SymbolicInput(VAR_4[0], VAR_0, VAR_31, VAR_32)\n", "VAR_3[VAR_4[0]] = VAR_7\n", "VAR...
[ "def param2Simple(op, params, symbols, symId):...\n", "if params[0] < 0:\n", "p0 = symbols[params[0]]\n", "p0 = params[0]\n", "if params[1] < 0:\n", "p1 = symbols[params[1]]\n", "p1 = params[1]\n", "x = SymbolicInput(symId[0], op, p0, p1)\n", "symbols[symId[0]] = x\n", "symId[0] -= 1\n", "return...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Condition", "Assign'", "Assign'", "Condition", "Assign'", "Assign'", "Assign'", "Assign'", "AugAssign'", "Return'" ]
[ "def FUNC_2():...\n", "\"\"\"docstring\"\"\"\n", "VAR_6 = {}\n", "for arg in request.args:\n", "VAR_8 = re.findall('psize_(.*)', arg)\n", "return VAR_6\n", "if VAR_8:\n", "VAR_6[VAR_8[0]] = int(request.args.get(arg))\n" ]
[ "def get_page_size_args():...\n", "\"\"\"docstring\"\"\"\n", "page_sizes = {}\n", "for arg in request.args:\n", "re_match = re.findall('psize_(.*)', arg)\n", "return page_sizes\n", "if re_match:\n", "page_sizes[re_match[0]] = int(request.args.get(arg))\n" ]
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Assign'", "For", "Assign'", "Return'", "Condition", "Assign'" ]
[ "def __str__(self):...\n", "return str(self.nickname())\n" ]
[ "def __str__(self):...\n", "return str(self.nickname())\n" ]
[ 0, 0 ]
[ "FunctionDef'", "Return'" ]
[ "from __future__ import absolute_import\n", "from __future__ import division\n", "from __future__ import print_function\n", "import threading\n", "import traceback\n", "import redis\n", "import ray\n", "from ray import ray_constants\n", "from ray import cloudpickle as pickle\n", "from ray import p...
[ "from __future__ import absolute_import\n", "from __future__ import division\n", "from __future__ import print_function\n", "import threading\n", "import traceback\n", "import redis\n", "import ray\n", "from ray import ray_constants\n", "from ray import cloudpickle as pickle\n", "from ray import p...
[ 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 6, 6, 0, 0, 0, 0, 0, 0, 0, 6, 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 ]
[ "ImportFrom'", "ImportFrom'", "ImportFrom'", "Import'", "Import'", "Import'", "Import'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "Expr'", "FunctionDef'", "Assign'", "Assign'", "Assign'", "FunctionDef'", "Docstring", "Assign'", "Assign'", "Expr'", "Functi...
[ "def FUNC_11(self):...\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", "VAR_4 = '/api/apps/{app_id}/builds'.format(...
[ "def test_admin_can_manage_other_containers(self):...\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", "url = ...
[ 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Expr'", "Assign'", "Assign'", "Expr'", "Assign'", "Assign'", "Assign'", "Assign'", "Expr'", "Expr'", "Assign'", "Assign'", "Assign'", "Expr'" ]
[ "def FUNC_1(VAR_0):...\n", "import pdb\n", "pdb.set_trace()\n" ]
[ "def SetUpInputRedirect(cmd):...\n", "import pdb\n", "pdb.set_trace()\n" ]
[ 0, 6, 6 ]
[ "FunctionDef'", "Import'", "Expr'" ]
[ "def FUNC_2(self):...\n", "VAR_1 = 'INVALID'\n", "self.assertEqual(escape_path_argument('/home/usr/a-file', VAR_1),\n '/home/usr/a-file')\n", "self.assertEqual(escape_path_argument('/home/us r/a-file with spaces.bla',\n VAR_1), '/home/us r/a-file with spaces.bla')\n", "self.assertEqual(escape_path_arg...
[ "def test_escape_path_argument_unsupported(self):...\n", "_type = 'INVALID'\n", "self.assertEqual(escape_path_argument('/home/usr/a-file', _type),\n '/home/usr/a-file')\n", "self.assertEqual(escape_path_argument('/home/us r/a-file with spaces.bla',\n _type), '/home/us r/a-file with spaces.bla')\n", "s...
[ 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Expr'", "Expr'", "Expr'", "Expr'" ]
[ "import json\n", "import os\n", "import time\n", "import urllib\n", "import psycopg2\n", "from websocket import create_connection\n", "import config\n", "VAR_0 = create_connection(config.WEBSOCKET_URL)\n", "VAR_1 = psycopg2.connect(**config.POSTGRES)\n", "VAR_2 = VAR_1.cursor()\n", "VAR_3 = 'TRU...
[ "import json\n", "import os\n", "import time\n", "import urllib\n", "import psycopg2\n", "from websocket import create_connection\n", "import config\n", "ws = create_connection(config.WEBSOCKET_URL)\n", "con = psycopg2.connect(**config.POSTGRES)\n", "cur = con.cursor()\n", "query = 'TRUNCATE hol...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 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, 4, 0, 0 ]
[ "Import'", "Import'", "Import'", "Import'", "Import'", "ImportFrom'", "Import'", "Assign'", "Assign'", "Assign'", "Assign'", "Expr'", "Assign'", "Expr'", "Expr'", "Expr'", "Assign'", "Assign'", "Assign'", "For", "Expr'", "Expr'", "Assign'", "Assign'", "Assign'", "Ex...
[ "def __init__(self, *VAR_0, VAR_1=None, VAR_2=None):...\n", "\"\"\"docstring\"\"\"\n", "if len(VAR_0) == 2:\n", "VAR_10, VAR_41 = VAR_0\n", "if len(VAR_0) == 1:\n", "self.name = VAR_10\n", "VAR_17 = VAR_0[0]\n", "self.workflow = VAR_41\n", "self.name = VAR_17.name\n", "self.docstring = None\n", ...
[ "def __init__(self, *args, lineno=None, snakefile=None):...\n", "\"\"\"docstring\"\"\"\n", "if len(args) == 2:\n", "name, workflow = args\n", "if len(args) == 1:\n", "self.name = name\n", "other = args[0]\n", "self.workflow = workflow\n", "self.name = other.name\n", "self.docstring = None\n", "s...
[ 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", "Condition", "Assign'", "Condition", "Assign'", "Assign'", "Assign'", "Assign'", "Docstring", "Assign'", "Assign'", "Docstring", "Assign'", "Assign'", "Assign'", "Assign'", "Assign'", "Assign'", "Assign'", "Assign'", "Assign'", "Assign'", "A...
[ "async def FUNC_1(self, VAR_2: str) ->None:...\n", "VAR_7 = await as_future(session.query(database.Paste).filter(database.Paste\n .paste_id == VAR_2).first)\n", "if not VAR_7:\n", "self.set_status(404)\n", "VAR_8 = self.get_cookie('removal') == str(VAR_7.removal_id)\n", "self.render('404.html', pagetit...
[ "async def get(self, paste_id: str) ->None:...\n", "paste = await as_future(session.query(database.Paste).filter(database.Paste\n .paste_id == paste_id).first)\n", "if not paste:\n", "self.set_status(404)\n", "can_delete = self.get_cookie('removal') == str(paste.removal_id)\n", "self.render('404.html',...
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "AsyncFunctionDef'", "Assign'", "Condition", "Expr'", "Assign'", "Expr'", "Expr'", "Return'" ]
[ "@VAR_0.route('/loadProtocoles', methods=['GET', 'POST'])...\n", "VAR_8 = getConnexion()\n", "VAR_9 = 'string'\n", "VAR_8.cur.execute(VAR_9)\n", "return Response(flask.json.dumps(VAR_8.cur.fetchone()[0]), mimetype=\n 'application/json')\n" ]
[ "@addObs.route('/loadProtocoles', methods=['GET', 'POST'])...\n", "db = getConnexion()\n", "sql = (\n 'SELECT array_to_json(array_agg(row_to_json(p))) FROM (SELECT * FROM synthese.bib_projet WHERE saisie_possible = TRUE) p'\n )\n", "db.cur.execute(sql)\n", "return Response(flask.json.dumps(db.cur.fetc...
[ 0, 0, 0, 0, 0 ]
[ "Condition", "Assign'", "Assign'", "Expr'", "Return'" ]
[ "def FUNC_2(VAR_0, VAR_1, VAR_2):...\n", "VAR_9 = VAR_0.get_input('client', default='')\n", "VAR_10 = VAR_0.get_input('tenant', default='')\n", "if len(VAR_9) and len(VAR_10):\n", "VAR_1['AZURE_CLIENT_ID'] = VAR_9\n", "VAR_1['AZURE_SUBSCRIPTION_ID'] = VAR_0.get_input('subscription', default='')\n", "VAR...
[ "def azure_rm(cred, env, private_data_dir):...\n", "client = cred.get_input('client', default='')\n", "tenant = cred.get_input('tenant', default='')\n", "if len(client) and len(tenant):\n", "env['AZURE_CLIENT_ID'] = client\n", "env['AZURE_SUBSCRIPTION_ID'] = cred.get_input('subscription', default='')\n", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Assign'", "Condition", "Assign'", "Assign'", "Assign'", "Assign'", "Assign'", "Assign'", "Assign'", "Condition", "Assign'" ]
[ "def FUNC_4(self):...\n", "if self.password == None or self.username == None or self.password == ' ' or self.username == ' ':\n", "self.errorNotification('Please login to JIRA first')\n", "self.firefox.loadPage('https://devops.partech.com/jira/login.jsp', 'JIRA')\n", "self.firefox.login(self.username, self....
[ "def createCase(self):...\n", "if self.password == None or self.username == None or self.password == ' ' or self.username == ' ':\n", "self.errorNotification('Please login to JIRA first')\n", "self.firefox.loadPage('https://devops.partech.com/jira/login.jsp', 'JIRA')\n", "self.firefox.login(self.username, s...
[ 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Condition", "Expr'", "Expr'", "Expr'", "Expr'", "Expr'" ]
[ "def FUNC_21(self):...\n", "if not self._IsServerAlive():\n", "return\n", "SendEventNotificationAsync('CurrentIdentifierFinished')\n" ]
[ "def OnCurrentIdentifierFinished(self):...\n", "if not self._IsServerAlive():\n", "return\n", "SendEventNotificationAsync('CurrentIdentifierFinished')\n" ]
[ 0, 0, 0, 0 ]
[ "FunctionDef'", "Condition", "Return'", "Expr'" ]
[ "def FUNC_0(VAR_0):...\n", "return os.stat(VAR_0, follow_symlinks=os.stat not in os.\n supports_follow_symlinks)\n" ]
[ "def lstat(f):...\n", "return os.stat(f, follow_symlinks=os.stat not in os.supports_follow_symlinks)\n" ]
[ 0, 0 ]
[ "FunctionDef'", "Return'" ]
[ "def FUNC_3(VAR_1=None, VAR_2=None):...\n", "\"\"\"docstring\"\"\"\n", "VAR_13 = os.path.join(FUNC_0(), 'tmp')\n", "if not os.path.exists(VAR_13):\n", "os.mkdir(VAR_13)\n", "VAR_2 = '' if not isinstance(VAR_2, str) else VAR_2\n", "VAR_1 = '' if not isinstance(VAR_1, str) else VAR_1\n", "VAR_13 = os.pa...
[ "def path_to_tmp(file=None, folder=None):...\n", "\"\"\"docstring\"\"\"\n", "tmp_path = os.path.join(path_to_visbrain_data(), 'tmp')\n", "if not os.path.exists(tmp_path):\n", "os.mkdir(tmp_path)\n", "folder = '' if not isinstance(folder, str) else folder\n", "file = '' if not isinstance(file, str) else ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Assign'", "Condition", "Expr'", "Assign'", "Assign'", "Assign'", "Condition", "Expr'", "Return'" ]
[ "def FUNC_4(self, VAR_2, VAR_3, VAR_4, *VAR_5):...\n", "self.write_data({'type': 'watch_folder_corrupt_torrent', 'event': {'name':\n VAR_5[0]}})\n" ]
[ "def on_watch_folder_corrupt_torrent(self, subject, changetype, objectID, *args...\n", "self.write_data({'type': 'watch_folder_corrupt_torrent', 'event': {'name':\n args[0]}})\n" ]
[ 0, 0 ]
[ "FunctionDef'", "Expr'" ]
[ "def FUNC_2(self, VAR_3, VAR_4='200 OK', VAR_5='text/html', VAR_6=[]):...\n", "VAR_10 = [u'HTTP/1.1 ' + VAR_4, u'Connection: Keep-Alive', \n u'Content-Type: ' + VAR_5, u'Content-Length: ' + str(len(VAR_3))]\n", "VAR_10.extend(VAR_6)\n", "VAR_11 = u'\\r\\n'.join(VAR_10).encode('utf-8')\n", "if self.ok:\n"...
[ "def reply(self, body, status='200 OK', mime='text/html', headers=[]):...\n", "response = [u'HTTP/1.1 ' + status, u'Connection: Keep-Alive', \n u'Content-Type: ' + mime, u'Content-Length: ' + str(len(body))]\n", "response.extend(headers)\n", "response_str = u'\\r\\n'.join(response).encode('utf-8')\n", "i...
[ 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Expr'", "Assign'", "Condition", "Expr'", "Return'" ]
[ "def FUNC_7(self):...\n", "self.runall(self.checks, skip_environ_check=True)\n", "VAR_15 = self.runner.stats\n", "self.assertEqual(8, VAR_15.num_cases())\n", "self.assertEqual(4, len(VAR_15.failures()))\n", "self.assertEqual(2, self._num_failures_stage('setup'))\n", "self.assertEqual(1, self._num_failur...
[ "def test_runall_skip_prgenv_check(self):...\n", "self.runall(self.checks, skip_environ_check=True)\n", "stats = self.runner.stats\n", "self.assertEqual(8, stats.num_cases())\n", "self.assertEqual(4, len(stats.failures()))\n", "self.assertEqual(2, self._num_failures_stage('setup'))\n", "self.assertEqual...
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Expr'", "Assign'", "Expr'", "Expr'", "Expr'", "Expr'", "Expr'" ]
[ "import stack.commands\n", "from stack.exception import CommandError, ParamRequired, ParamType, ParamValue, ParamError\n", "\"\"\"string\"\"\"\n", "def FUNC_0(self, VAR_0, VAR_1, VAR_2, VAR_3, VAR_4, VAR_5):...\n", "self.db.execute('string' % (VAR_1, VAR_2, VAR_3, VAR_4, VAR_5))\n", "VAR_8 = self.db.fetch...
[ "import stack.commands\n", "from stack.exception import CommandError, ParamRequired, ParamType, ParamValue, ParamError\n", "\"\"\"\n\tAdd a storage controller configuration to the database.\n\n\t<arg type='string' name='scope'>\n\tZero or one argument. The argument is the scope: a valid os (e.g.,\n\t'redhat'), ...
[ 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...
[ "Import'", "ImportFrom'", "Expr'", "FunctionDef'", "Expr'", "Assign'", "Condition", "Assign'", "FunctionDef'", "Assign'", "Assign'", "Condition", "Assign'", "Expr'", "Condition", "Assign'", "Expr'", "Expr'", "Expr'", "Assign'", "Expr'", "Expr'", "Condition", "Assign'", ...
[ "def FUNC_12(self, VAR_16):...\n", "\"\"\"docstring\"\"\"\n", "VAR_28 = ['volume', 'create', VAR_16['name'], '%sG' % VAR_16['size']]\n", "VAR_0.error(_('Failed to create volume %s'), VAR_16['name'])\n", "if self.configuration.eqlx_pool != 'default':\n", "VAR_28.append('pool')\n", "if self.configuration....
[ "def create_volume(self, volume):...\n", "\"\"\"docstring\"\"\"\n", "cmd = ['volume', 'create', volume['name'], '%sG' % volume['size']]\n", "LOG.error(_('Failed to create volume %s'), volume['name'])\n", "if self.configuration.eqlx_pool != 'default':\n", "cmd.append('pool')\n", "if self.configuration.sa...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Assign'", "Expr'", "Condition", "Expr'", "Condition", "Expr'", "Expr'", "Assign'", "Return'" ]
[ "def FUNC_5():...\n", "VAR_1.clear()\n", "VAR_3.clear()\n", "VAR_3 = VAR_0\n", "VAR_2.clear()\n" ]
[ "def session_clear():...\n", "dirs.clear()\n", "curr_path.clear()\n", "curr_path = root\n", "path.clear()\n" ]
[ 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Expr'", "Expr'", "Assign'", "Expr'" ]
[ "def FUNC_0():...\n", "\"\"\"docstring\"\"\"\n", "if VAR_1:\n", "return\n", "VAR_3 = VAR_0\n", "while True:\n", "if os.path.isfile(os.path.join(VAR_3, 'google_appengine', 'VERSION')):\n", "VAR_14 = os.path.dirname(VAR_3)\n", "VAR_1 = os.path.realpath(os.path.join(VAR_3, 'google_appengine'))\n", "i...
[ "def _load_modules():...\n", "\"\"\"docstring\"\"\"\n", "if GAE_SDK:\n", "return\n", "root_dir = BASE_DIR\n", "while True:\n", "if os.path.isfile(os.path.join(root_dir, 'google_appengine', 'VERSION')):\n", "next_root = os.path.dirname(root_dir)\n", "GAE_SDK = os.path.realpath(os.path.join(root_dir, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Condition", "Return'", "Assign'", "Condition", "Condition", "Assign'", "Assign'", "Condition", "Assign'", "Assign'", "Expr'" ]
[ "def FUNC_3(VAR_1):...\n", "VAR_10 = [None, 0]\n", "async def FUNC_15(*VAR_8, **VAR_9):...\n", "if time.time() - VAR_10[1] > FUNC_3.timeout:\n", "VAR_10[0] = await VAR_1(*VAR_8, **kwargs)\n", "return VAR_10[0]\n", "VAR_10[1] = time.time()\n" ]
[ "def cache_page(func):...\n", "cache = [None, 0]\n", "async def ret(*args, **kwargs):...\n", "if time.time() - cache[1] > cache_page.timeout:\n", "cache[0] = await func(*args, **kwargs)\n", "return cache[0]\n", "cache[1] = time.time()\n" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "AsyncFunctionDef'", "Condition", "Assign'", "Return'", "Assign'" ]
[ "def FUNC_6(VAR_3):...\n", "\"\"\"docstring\"\"\"\n", "return {'login': FUNC_7('/user_api/v1/account/login_session/', VAR_3.\n session), 'registration': FUNC_7('/user_api/v1/account/registration/',\n VAR_3.session), 'password_reset': FUNC_7(\n '/user_api/v1/account/password_reset/', VAR_3.session)}\n" ...
[ "def _get_form_descriptions(request):...\n", "\"\"\"docstring\"\"\"\n", "return {'login': _local_server_get('/user_api/v1/account/login_session/',\n request.session), 'registration': _local_server_get(\n '/user_api/v1/account/registration/', request.session),\n 'password_reset': _local_server_get(\n ...
[ 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Return'" ]
[ "@VAR_0.before_request...\n", "\"\"\"docstring\"\"\"\n", "g.session = Session(VAR_3)\n", "g.Base = VAR_2\n" ]
[ "@app.before_request...\n", "\"\"\"docstring\"\"\"\n", "g.session = Session(engine)\n", "g.Base = Base\n" ]
[ 0, 0, 0, 0 ]
[ "For", "Docstring", "Assign'", "Assign'" ]
[ "def FUNC_6(self, VAR_11):...\n", "if VAR_11 and is_banned_domain(VAR_11):\n", "VAR_101.errors.add(errors.BANNED_DOMAIN)\n" ]
[ "def run(self, url):...\n", "if url and is_banned_domain(url):\n", "c.errors.add(errors.BANNED_DOMAIN)\n" ]
[ 0, 0, 0 ]
[ "FunctionDef'", "Condition", "Expr'" ]
[ "def FUNC_9(VAR_17):...\n", "if os.path.isfile(VAR_17):\n", "os.remove(VAR_17)\n" ]
[ "def clear_log(file_path):...\n", "if os.path.isfile(file_path):\n", "os.remove(file_path)\n" ]
[ 0, 0, 0 ]
[ "FunctionDef'", "Condition", "Expr'" ]
[ "async def FUNC_8(self, VAR_5, VAR_11, VAR_9=0):...\n", "VAR_17 = await CLASS_0.create(VAR_7=user_id, VAR_8=self.id, VAR_9=ref_id)\n", "VAR_18 = await create_pool(RedisSettings.from_url(REDIS_URL))\n", "await asyncio.gather(VAR_17.set_content(VAR_11), VAR_18.enqueue_job(\n 'mention_users', self.id, VAR_11,...
[ "async def add_comment(self, user_id, content, ref_id=0):...\n", "obj = await Comment.create(github_id=user_id, post_id=self.id, ref_id=ref_id)\n", "redis = await create_pool(RedisSettings.from_url(REDIS_URL))\n", "await asyncio.gather(obj.set_content(content), redis.enqueue_job(\n 'mention_users', self.id...
[ 0, 0, 0, 0, 0 ]
[ "AsyncFunctionDef'", "Assign'", "Assign'", "Expr'", "Return'" ]
[ "def FUNC_2(self, VAR_6, VAR_7, VAR_8):...\n", "VAR_9 = (\n f\"UPDATE `artikelen` SET `{VAR_6}` = '{VAR_7}' WHERE `title` = '{VAR_8}'\")\n", "print(VAR_9)\n", "cursor.execute(VAR_9)\n", "return\n" ]
[ "def update_sql(self, column, location_nw, title):...\n", "sql_update = (\n f\"UPDATE `artikelen` SET `{column}` = '{location_nw}' WHERE `title` = '{title}'\"\n )\n", "print(sql_update)\n", "cursor.execute(sql_update)\n", "return\n" ]
[ 0, 4, 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Expr'", "Expr'", "Return'" ]
[ "def FUNC_1(VAR_0):...\n", "return 'Meetup : %s' % VAR_0.title\n" ]
[ "def meetup_article_title(meetup):...\n", "return 'Meetup : %s' % meetup.title\n" ]
[ 0, 0 ]
[ "FunctionDef'", "Return'" ]
[ "def FUNC_11(self, VAR_14):...\n", "" ]
[ "def is_integer(self, col_name):...\n", "" ]
[ 0, 0 ]
[ "FunctionDef'", "Condition" ]
[ "def FUNC_0(self):...\n", "if not GenericRequest.test_success(self):\n", "return False\n", "return self.get_submission_id() is not None\n" ]
[ "def test_success(self):...\n", "if not GenericRequest.test_success(self):\n", "return False\n", "return self.get_submission_id() is not None\n" ]
[ 0, 0, 0, 0 ]
[ "FunctionDef'", "Condition", "Return'", "Return'" ]
[ "\"\"\"string\"\"\"\n", "import os\n", "import re\n", "import tempfile\n", "import urllib2\n", "from invenio.legacy.bibclassify import config as bconfig\n", "if bconfig.STANDALONE:\n", "from urllib2 import urlopen\n", "from invenio.utils.url import make_invenio_opener\n", "VAR_0 = bconfig.get_logg...
[ "\"\"\"\nBibClassify text extractor.\n\nThis module provides method to extract the fulltext from local or remote\ndocuments. Currently 2 formats of documents are supported: PDF and text\ndocuments.\n\n2 methods provide the functionality of the module: text_lines_from_local_file\nand text_lines_from_url.\n\nThis mod...
[ 7, 0, 0, 7, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 7, 0, 0, 0, 0 ]
[ "Expr'", "Import'", "Import'", "Import'", "Import'", "ImportFrom'", "Condition", "ImportFrom'", "ImportFrom'", "Assign'", "Assign'", "Assign'", "FunctionDef'", "Docstring", "Condition", "Expr'", "Assign'", "Condition", "Assign'", "Expr'", "Assign'", "Return'", "Return'", ...
[ "def __init__(self):...\n", "self.xsrf_token = None\n", "self.session = requests.Session()\n" ]
[ "def __init__(self):...\n", "self.xsrf_token = None\n", "self.session = requests.Session()\n" ]
[ 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Assign'" ]
[ "def FUNC_32(self):...\n", "VAR_33 = VAR_5.search(self.file)\n", "if VAR_33:\n", "return self.file[:VAR_33.start()]\n", "return self.file\n" ]
[ "def constant_prefix(self):...\n", "first_wildcard = _wildcard_regex.search(self.file)\n", "if first_wildcard:\n", "return self.file[:first_wildcard.start()]\n", "return self.file\n" ]
[ 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Condition", "Return'", "Return'" ]
[ "def FUNC_3(VAR_1, VAR_2, VAR_3='', VAR_4=None):...\n", "\"\"\"docstring\"\"\"\n", "return FUNC_4(VAR_1, VAR_2['access_token'], VAR_6='', VAR_3=token_type,\n VAR_4=extra_data)\n" ]
[ "def oauth2_token_setter(remote, resp, token_type='', extra_data=None):...\n", "\"\"\"docstring\"\"\"\n", "return token_setter(remote, resp['access_token'], secret='', token_type=\n token_type, extra_data=extra_data)\n" ]
[ 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Return'" ]
[ "def FUNC_1():...\n", "return frappe.db.sql('string', as_dict=1)\n" ]
[ "def get_children():...\n", "return frappe.db.sql(\n \"\"\"select route as name,\n\t\ttitle from `tabBlog Category`\n\t\twhere published = 1\n\t\tand exists (select name from `tabBlog Post`\n\t\t\twhere `tabBlog Post`.blog_category=`tabBlog Category`.name and published=1)\n\t\torder by title asc\"\"\"\n , a...
[ 0, 0 ]
[ "FunctionDef'", "Return'" ]
[ "def FUNC_9(VAR_2):...\n", "assert VAR_2 == 'hello'\n" ]
[ "def assert_warn(line):...\n", "assert line == 'hello'\n" ]
[ 0, 0 ]
[ "FunctionDef'", "Assert'" ]
[ "def __iter__(self):...\n", "return self.nodes.__iter__()\n" ]
[ "def __iter__(self):...\n", "return self.nodes.__iter__()\n" ]
[ 0, 0 ]
[ "FunctionDef'", "Return'" ]
[ "def __iter__(self: T) ->Iterator[VAR_0]:...\n", "self.is_subquery = True\n", "yield self\n" ]
[ "def __iter__(self: T) ->Iterator[T]:...\n", "self.is_subquery = True\n", "yield self\n" ]
[ 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Expr'" ]
[ "def FUNC_24(self, *VAR_71, **VAR_72):...\n", "def FUNC_39(VAR_101):...\n", "VAR_101.params = VAR_71, VAR_72\n", "return VAR_101\n" ]
[ "def params(self, *params, **kwparams):...\n", "def decorate(ruleinfo):...\n", "ruleinfo.params = params, kwparams\n", "return ruleinfo\n" ]
[ 0, 0, 0, 0 ]
[ "FunctionDef'", "FunctionDef'", "Assign'", "Return'" ]
[ "@Endpoint('GET', '/cephfs/filesystems')...\n", "return CephFS.list_filesystems()\n" ]
[ "@Endpoint('GET', '/cephfs/filesystems')...\n", "return CephFS.list_filesystems()\n" ]
[ 0, 0 ]
[ "Condition", "Return'" ]
[ "def FUNC_0(self):...\n", "if not LoginRequest.test_success(self):\n", "return False\n", "VAR_4 = re.compile('Failed to log in.')\n", "if VAR_4.search(self.res_data) is not None:\n", "return False\n", "VAR_5 = re.compile(self.username)\n", "if VAR_5.search(self.res_data) is None:\n", "return False\n...
[ "def test_success(self):...\n", "if not LoginRequest.test_success(self):\n", "return False\n", "fail_re = re.compile('Failed to log in.')\n", "if fail_re.search(self.res_data) is not None:\n", "return False\n", "username_re = re.compile(self.username)\n", "if username_re.search(self.res_data) is None:...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Condition", "Return'", "Assign'", "Condition", "Return'", "Assign'", "Condition", "Return'", "Return'" ]
[ "def FUNC_11():...\n", "VAR_8 = logging.getLogger(__name__)\n", "VAR_8.setLevel(logging.DEBUG)\n", "VAR_36 = argparse.ArgumentParser()\n", "VAR_36.add_argument('--config', '-c', type=str, default='test.yaml', help=\n 'YAML config file. see sample-config.yaml. Default: test.yaml')\n", "VAR_37 = VAR_36.a...
[ "def main():...\n", "logger = logging.getLogger(__name__)\n", "logger.setLevel(logging.DEBUG)\n", "parser = argparse.ArgumentParser()\n", "parser.add_argument('--config', '-c', type=str, default='test.yaml', help=\n 'YAML config file. see sample-config.yaml. Default: test.yaml')\n", "subparsers = parse...
[ 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'", "Assign'", "Expr'", "Assign'", "Expr'", "Assign'", "Assign'", "Assign'", "Assign'", "Assign'", "Expr'", "Assign'", "Expr'", "Expr'", "Assign'", "Expr'", "Condition", "Expr'", "Condition", "Expr'", "Condition", "Assign'", "Expr'", "Condition", "Expr'", ...
[ "def FUNC_8(VAR_13, VAR_16):...\n", "VAR_35 = subprocess.Popen([VAR_13], stdin=subprocess.PIPE, VAR_36=\n subprocess.PIPE, VAR_37=subprocess.PIPE)\n", "VAR_36, VAR_37 = VAR_35.communicate(json.dumps(VAR_16))\n", "VAR_35.wait()\n", "if VAR_35.returncode != 0:\n", "return VAR_36\n" ]
[ "def render_executable(path, config):...\n", "p = subprocess.Popen([path], stdin=subprocess.PIPE, stdout=subprocess.PIPE,\n stderr=subprocess.PIPE)\n", "stdout, stderr = p.communicate(json.dumps(config))\n", "p.wait()\n", "if p.returncode != 0:\n", "return stdout\n" ]
[ 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Assign'", "Expr'", "Condition", "Return'" ]
[ "def FUNC_0(VAR_1, VAR_2, VAR_3):...\n", "VAR_6 = users.get_current_user()\n", "if VAR_6:\n", "VAR_26 = db.GqlQuery('SELECT * FROM LoginInformation WHERE user_id = :1',\n VAR_6.user_id()).get()\n", "VAR_26 = None\n", "VAR_3['current_li'] = VAR_26\n", "VAR_3['user'] = VAR_6\n", "VAR_3['logout_url'] ...
[ "def render_template(handler_object, file_name, template_values):...\n", "user = users.get_current_user()\n", "if user:\n", "current_li = db.GqlQuery('SELECT * FROM LoginInformation WHERE user_id = :1',\n user.user_id()).get()\n", "current_li = None\n", "template_values['current_li'] = current_li\n", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Condition", "Assign'", "Assign'", "Assign'", "Assign'", "Assign'", "Assign'", "Assign'", "Condition", "Assign'", "Assign'", "Assign'", "Expr'", "Condition", "Assign'" ]
[ "def FUNC_18(*VAR_20, **VAR_11):...\n", "\"\"\"docstring\"\"\"\n", "VAR_32 = VAR_20[0]\n", "if len(VAR_20) == 1:\n", "VAR_53 = product\n", "if len(VAR_20) == 2:\n", "if isinstance(VAR_32, str):\n", "VAR_53 = VAR_20[1]\n", "VAR_32 = [VAR_32]\n", "def FUNC_36(VAR_11):...\n", "for VAR_51, VAR_58 in...
[ "def expand(*args, **wildcards):...\n", "\"\"\"docstring\"\"\"\n", "filepatterns = args[0]\n", "if len(args) == 1:\n", "combinator = product\n", "if len(args) == 2:\n", "if isinstance(filepatterns, str):\n", "combinator = args[1]\n", "filepatterns = [filepatterns]\n", "def flatten(wildcards):...\n...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Assign'", "Condition", "Assign'", "Condition", "Condition", "Assign'", "Assign'", "FunctionDef'", "For", "Condition", "Return'", "Assign'", "Expr'" ]
[ "@VAR_0.route('/level-1/info')...\n", "if int(current_user.progress) > 1:\n", "return render_template('info-pages/level-1.html')\n", "return redirect('/')\n" ]
[ "@app.route('/level-1/info')...\n", "if int(current_user.progress) > 1:\n", "return render_template('info-pages/level-1.html')\n", "return redirect('/')\n" ]
[ 0, 0, 0, 0 ]
[ "Condition", "Condition", "Return'", "Return'" ]
[ "def FUNC_8(self):...\n", "\"\"\"docstring\"\"\"\n", "VAR_11 = VAR_1[:]\n", "VAR_11.extend(FUNC_7(self))\n", "VAR_13 = ()\n", "if self.status == 'valid' and self.signed_status != 'aborted':\n", "VAR_13 += 'geninv.estimation',\n", "if self.status == 'valid':\n", "VAR_13 += 'set_signed_status.estimati...
[ "def get_estimation_default_acl(self):...\n", "\"\"\"docstring\"\"\"\n", "acl = DEFAULT_PERM_NEW[:]\n", "acl.extend(_get_admin_status_acl(self))\n", "admin_perms = ()\n", "if self.status == 'valid' and self.signed_status != 'aborted':\n", "admin_perms += 'geninv.estimation',\n", "if self.status == 'va...
[ 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", "Assign'", "Expr'", "Assign'", "Condition", "AugAssign'", "Condition", "AugAssign'", "Condition", "AugAssign'", "Condition", "Expr'", "Condition", "Expr'", "Expr'", "Expr'", "Expr'", "For", "Assign'", "Return'", "Condition", "AugAssign'", "C...
[ "@VAR_5.setter...\n", "self._benchmark = IOFile(VAR_5, VAR_16=self)\n" ]
[ "@benchmark.setter...\n", "self._benchmark = IOFile(benchmark, rule=self)\n" ]
[ 0, 0 ]
[ "Condition", "Assign'" ]
[ "def FUNC_18(self, VAR_14, *VAR_11, **VAR_12):...\n", "\"\"\"docstring\"\"\"\n", "if not VAR_14 == 'options':\n", "self.client.lineSend(self.csessid, [VAR_14, VAR_11, VAR_12])\n" ]
[ "def send_default(self, cmdname, *args, **kwargs):...\n", "\"\"\"docstring\"\"\"\n", "if not cmdname == 'options':\n", "self.client.lineSend(self.csessid, [cmdname, args, kwargs])\n" ]
[ 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Condition", "Expr'" ]
[ "@integration_synonym_api...\n", "FUNC_2(VAR_2)\n", "FUNC_3(VAR_2, 'DOUBLE J AVIATION LTD.', VAR_7='1')\n", "FUNC_5(VAR_4, VAR_5, VAR_11='TABLE', VAR_10=[{'name': '----TABLE'}])\n" ]
[ "@integration_synonym_api...\n", "clean_database(solr)\n", "seed_database_with(solr, 'DOUBLE J AVIATION LTD.', id='1')\n", "verify_results(client, jwt, query='TABLE', expected=[{'name': '----TABLE'}])\n" ]
[ 0, 0, 0, 0 ]
[ "Condition", "Expr'", "Expr'", "Expr'" ]
[ "def FUNC_5(self):...\n", "VAR_28 = self.state.client_table()\n", "self.local_scheduler_id_to_ip_map = {}\n", "for local_scheduler_info in VAR_28:\n", "VAR_36 = local_scheduler_info.get('DBClientID') or local_scheduler_info[\n 'ClientID']\n", "VAR_44 = (local_scheduler_info.get('AuxAddress') or local_s...
[ "def update_local_scheduler_map(self):...\n", "local_schedulers = self.state.client_table()\n", "self.local_scheduler_id_to_ip_map = {}\n", "for local_scheduler_info in local_schedulers:\n", "client_id = local_scheduler_info.get('DBClientID') or local_scheduler_info[\n 'ClientID']\n", "ip_address = (lo...
[ 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Assign'", "For", "Assign'", "Assign'", "Assign'" ]
[ "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'" ]
[ "def FUNC_21(self):...\n", "@eqlx.with_timeout...\n", "return 'no timeout'\n" ]
[ "def test_with_timeout(self):...\n", "@eqlx.with_timeout...\n", "return 'no timeout'\n" ]
[ 0, 0, 0 ]
[ "FunctionDef'", "Condition", "Return'" ]
[ "\"\"\" A simple implementation of a directed acyclic graph \"\"\"\n", "def __init__(self):...\n", "self.nodes = []\n", "self.edges = []\n", "def __contains__(self, VAR_0):...\n", "for node in self.nodes:\n", "if node['node_object'] == VAR_0:\n", "return False\n", "return True\n" ]
[ "\"\"\" A simple implementation of a directed acyclic graph \"\"\"\n", "def __init__(self):...\n", "self.nodes = []\n", "self.edges = []\n", "def __contains__(self, obj):...\n", "for node in self.nodes:\n", "if node['node_object'] == obj:\n", "return False\n", "return True\n" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "Expr'", "FunctionDef'", "Assign'", "Assign'", "FunctionDef'", "For", "Condition", "Return'", "Return'" ]
[ "def FUNC_10(self):...\n", "VAR_7 = '200'\n", "self.driver._eql_execute = self.mox.CreateMock(self.driver._eql_execute)\n", "VAR_1 = {'name': self.volume_name, 'size': 100}\n", "self.driver._eql_execute('volume', 'select', VAR_1['name'], 'size', '%sG' %\n VAR_7)\n", "self.mox.ReplayAll()\n", "self.dr...
[ "def test_extend_volume(self):...\n", "new_size = '200'\n", "self.driver._eql_execute = self.mox.CreateMock(self.driver._eql_execute)\n", "volume = {'name': self.volume_name, 'size': 100}\n", "self.driver._eql_execute('volume', 'select', volume['name'], 'size', '%sG' %\n new_size)\n", "self.mox.ReplayA...
[ 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Assign'", "Assign'", "Expr'", "Expr'", "Expr'" ]
[ "@staticmethod...\n", "\"\"\"docstring\"\"\"\n", "return sum(map(len, VAR_3.values()))\n" ]
[ "@staticmethod...\n", "\"\"\"docstring\"\"\"\n", "return sum(map(len, wildcards.values()))\n" ]
[ 0, 0, 0 ]
[ "Condition", "Docstring", "Return'" ]
[ "@classmethod...\n", "\"\"\"docstring\"\"\"\n", "return gate.new_agent(VAR_1)\n" ]
[ "@classmethod...\n", "\"\"\"docstring\"\"\"\n", "return gate.new_agent(bindings)\n" ]
[ 0, 0, 0 ]
[ "Condition", "Docstring", "Return'" ]
[ "def FUNC_39(self):...\n", "\"\"\"docstring\"\"\"\n", "self.cursor = self.cnxn.cursor()\n", "self.cursor.execute('create table t1(a int, b char(3))')\n", "self.cnxn.commit()\n", "self.cursor.execute(\"insert into t1 values(1, 'abc')\")\n", "VAR_24 = self.cursor.execute('select * from t1').fetchone()\n",...
[ "def test_row_description(self):...\n", "\"\"\"docstring\"\"\"\n", "self.cursor = self.cnxn.cursor()\n", "self.cursor.execute('create table t1(a int, b char(3))')\n", "self.cnxn.commit()\n", "self.cursor.execute(\"insert into t1 values(1, 'abc')\")\n", "row = self.cursor.execute('select * from t1').fetc...
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Assign'", "Expr'", "Expr'", "Expr'", "Assign'", "Expr'" ]
[ "def FUNC_15(self):...\n", "self.run_test_case(self.scenario.delete_load_balancer(VAR_5=False),\n max_retries=5)\n" ]
[ "def test_y_delete_load_balancer_pub(self):...\n", "self.run_test_case(self.scenario.delete_load_balancer(use_vpc=False),\n max_retries=5)\n" ]
[ 0, 0 ]
[ "FunctionDef'", "Expr'" ]
[ "@integration_synonym_api...\n", "FUNC_2(VAR_2)\n", "FUNC_3(VAR_2, 'HELENAH WU & CO. INC.', VAR_7='1')\n", "FUNC_3(VAR_2, 'A BETTER WAY HERBALS LTD.', VAR_7='2')\n", "FUNC_5(VAR_4, VAR_5, VAR_11='EH', VAR_10=[{'name': '----EH'}])\n" ]
[ "@integration_synonym_api...\n", "clean_database(solr)\n", "seed_database_with(solr, 'HELENAH WU & CO. INC.', id='1')\n", "seed_database_with(solr, 'A BETTER WAY HERBALS LTD.', id='2')\n", "verify_results(client, jwt, query='EH', expected=[{'name': '----EH'}])\n" ]
[ 0, 0, 0, 0, 0 ]
[ "Condition", "Expr'", "Expr'", "Expr'", "Expr'" ]
[ "def FUNC_9(self, VAR_11):...\n", "\"\"\"docstring\"\"\"\n", "VAR_29 = get_agent_module(VAR_11)\n", "if hasattr(VAR_29, 'add_cmdline_args'):\n", "if hasattr(VAR_29, 'dictionary_class'):\n", "VAR_29.add_cmdline_args(self)\n", "VAR_6 = FUNC_2(VAR_29.dictionary_class())\n", "self.set_defaults(dict_class=...
[ "def add_model_subargs(self, model):...\n", "\"\"\"docstring\"\"\"\n", "agent = get_agent_module(model)\n", "if hasattr(agent, 'add_cmdline_args'):\n", "if hasattr(agent, 'dictionary_class'):\n", "agent.add_cmdline_args(self)\n", "s = class2str(agent.dictionary_class())\n", "self.set_defaults(dict_cla...
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Assign'", "Condition", "Condition", "Expr'", "Assign'", "Expr'" ]
[ "def FUNC_4(self):...\n", "\"\"\"docstring\"\"\"\n", "VAR_27 = 'application/json', 'application/json; charset=utf-8'\n", "if self.request.headers.get('Content-Type').lower() not in VAR_27:\n", "VAR_38 = \"Expecting JSON body with content type 'application/json'\"\n", "VAR_28 = json.loads(self.request.body...
[ "def parse_body(self):...\n", "\"\"\"docstring\"\"\"\n", "expected = 'application/json', 'application/json; charset=utf-8'\n", "if self.request.headers.get('Content-Type').lower() not in expected:\n", "msg = \"Expecting JSON body with content type 'application/json'\"\n", "body = json.loads(self.request.b...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Assign'", "Condition", "Assign'", "Assign'", "Expr'", "Return'", "Expr'", "Condition" ]
[ "def FUNC_3(self) ->str:...\n", "\"\"\"docstring\"\"\"\n", "VAR_6 = self.cleaned_data['repo']\n", "if not VAR_6:\n", "self.raise_repo_validation_error(VAR_6)\n", "VAR_11 = urlparse(self.cleaned_data['repo'])\n", "if VAR_11.scheme.lower() not in ('https', 'http', ''):\n", "self.raise_repo_validation_er...
[ "def clean_repo(self) ->str:...\n", "\"\"\"docstring\"\"\"\n", "repo = self.cleaned_data['repo']\n", "if not repo:\n", "self.raise_repo_validation_error(repo)\n", "github_url = urlparse(self.cleaned_data['repo'])\n", "if github_url.scheme.lower() not in ('https', 'http', ''):\n", "self.raise_repo_vali...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Assign'", "Condition", "Expr'", "Assign'", "Condition", "Expr'", "Condition", "Expr'", "Assign'", "Condition", "Expr'", "Assign'", "Return'" ]
[ "def FUNC_0(self, VAR_20):...\n", "\"\"\"docstring\"\"\"\n", "for VAR_21, directories, filenames in os.walk(VAR_20):\n", "for VAR_32 in filenames:\n", "VAR_72 = os.path.join(VAR_21, VAR_32)\n", "VAR_73 = '/' + os.path.relpath(VAR_72, VAR_20)\n", "VAR_24 = self.getfile(VAR_73, VAR_23=False)\n", "if VAR...
[ "def init_honeyfs(self, honeyfs_path):...\n", "\"\"\"docstring\"\"\"\n", "for path, directories, filenames in os.walk(honeyfs_path):\n", "for filename in filenames:\n", "realfile_path = os.path.join(path, filename)\n", "virtual_path = '/' + os.path.relpath(realfile_path, honeyfs_path)\n", "f = self.getf...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "For", "For", "Assign'", "Assign'", "Assign'", "Condition", "Expr'" ]
[ "def FUNC_0(self, VAR_13):...\n", "\"\"\"docstring\"\"\"\n", "if VAR_13.json is None:\n", "if not self.handle_view_exception(e):\n", "return True\n", "return True\n", "VAR_14 = Record(VAR_13.json, VAR_13=model)\n", "flash(_('Failed to delete record. %(error)s', error=str(e)), category='error')\n", "...
[ "def delete_model(self, model):...\n", "\"\"\"docstring\"\"\"\n", "if model.json is None:\n", "if not self.handle_view_exception(e):\n", "return True\n", "return True\n", "record = Record(model.json, model=model)\n", "flash(_('Failed to delete record. %(error)s', error=str(e)), category='error')\n", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Condition", "Condition", "Return'", "Return'", "Assign'", "Expr'", "Expr'", "Expr'", "Return'", "Expr'" ]
[ "def FUNC_53(self):...\n", "VAR_13 = self.cursor.execute('select ?', None).fetchone()[0]\n", "self.assertEqual(VAR_13, None)\n" ]
[ "def test_untyped_none(self):...\n", "value = self.cursor.execute('select ?', None).fetchone()[0]\n", "self.assertEqual(value, None)\n" ]
[ 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Expr'" ]
[ "def FUNC_1(self):...\n", "return 'check user_test %s' % self.user_test_id\n" ]
[ "def describe(self):...\n", "return 'check user_test %s' % self.user_test_id\n" ]
[ 0, 0 ]
[ "FunctionDef'", "Return'" ]
[ "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'" ]
[ "def FUNC_5(self, VAR_5):...\n", "self.connect()\n", "VAR_7 = \"DELETE FROM badwords WHERE word='%s'\" % VAR_5\n", "self.cursor.execute(VAR_7)\n", "self.close()\n" ]
[ "def delete(self, targetWord):...\n", "self.connect()\n", "sqlFormula = \"DELETE FROM badwords WHERE word='%s'\" % targetWord\n", "self.cursor.execute(sqlFormula)\n", "self.close()\n" ]
[ 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Expr'", "Assign'", "Expr'", "Expr'" ]
[ "@data(*VAR_3)...\n", "VAR_12 = get_street_name(VAR_1)\n", "self.assertEqual(VAR_5, VAR_12)\n" ]
[ "@data(*address_test_data)...\n", "output_string = get_street_name(input_string)\n", "self.assertEqual(desired_string2, output_string)\n" ]
[ 0, 0, 0 ]
[ "Condition", "Assign'", "Expr'" ]
[ "def FUNC_10(self):...\n", "\"\"\"docstring\"\"\"\n", "if not self.reached_corner[0]:\n", "self.reached_corner[0] = self.navloc.takePathToDest(self.destination[0].x,\n self.destination[0].y)\n", "if self.navloc.takePathToDest(self.destination[1].x, self.destination[1].y):\n", "if self.reached_corner[0]...
[ "def testPath(self):...\n", "\"\"\"docstring\"\"\"\n", "if not self.reached_corner[0]:\n", "self.reached_corner[0] = self.navloc.takePathToDest(self.destination[0].x,\n self.destination[0].y)\n", "if self.navloc.takePathToDest(self.destination[1].x, self.destination[1].y):\n", "if self.reached_corner[0...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Condition", "Assign'", "Condition", "Condition", "Assign'", "Expr'", "Expr'" ]
[ "def FUNC_6(VAR_6):...\n", "VAR_50 = {'rc': 1, 'response': VAR_6}\n", "return HttpResponse(json.dumps(VAR_50))\n" ]
[ "def say_no(error_msg):...\n", "ajax_response = {'rc': 1, 'response': error_msg}\n", "return HttpResponse(json.dumps(ajax_response))\n" ]
[ 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Return'" ]
[ "def FUNC_1(self, VAR_3):...\n", "\"\"\"docstring\"\"\"\n", "VAR_9 = None\n", "if VAR_3 in vars(self):\n", "VAR_9 = getattr(self, VAR_3)\n", "return VAR_9\n" ]
[ "def get_val(self, attr_name):...\n", "\"\"\"docstring\"\"\"\n", "value = None\n", "if attr_name in vars(self):\n", "value = getattr(self, attr_name)\n", "return value\n" ]
[ 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Assign'", "Condition", "Assign'", "Return'" ]
[ "def FUNC_7(self, VAR_7):...\n", "return self._job_error_text[VAR_7]\n" ]
[ "def copy_error_text(self, job_id):...\n", "return self._job_error_text[job_id]\n" ]
[ 0, 0 ]
[ "FunctionDef'", "Return'" ]
[ "def FUNC_2(VAR_1, VAR_2, VAR_3='', VAR_4=None):...\n", "\"\"\"docstring\"\"\"\n", "return FUNC_4(VAR_1, VAR_2['oauth_token'], VAR_6=resp['oauth_token_secret'],\n VAR_4=extra_data, VAR_3=token_type)\n" ]
[ "def oauth1_token_setter(remote, resp, token_type='', extra_data=None):...\n", "\"\"\"docstring\"\"\"\n", "return token_setter(remote, resp['oauth_token'], secret=resp[\n 'oauth_token_secret'], extra_data=extra_data, token_type=token_type)\n" ]
[ 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Return'" ]
[ "def FUNC_5(self):...\n", "self.client.login(username=self.tester.username, password='password')\n", "VAR_1 = self.client.post(self.many_comments_url, {'comment': 'new comment',\n 'run': []})\n", "self.assertJSONEqual(str(VAR_1.content, encoding=settings.DEFAULT_CHARSET),\n {'rc': 1, 'response': 'No run...
[ "def test_refuse_if_missing_no_case_run_pk(self):...\n", "self.client.login(username=self.tester.username, password='password')\n", "response = self.client.post(self.many_comments_url, {'comment':\n 'new comment', 'run': []})\n", "self.assertJSONEqual(str(response.content, encoding=settings.\n DEFAULT_C...
[ 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Expr'", "Assign'", "Expr'", "Assign'", "Expr'" ]
[ "def FUNC_32(VAR_39, VAR_49=None):...\n", "VAR_39.returncode = VAR_1\n", "json.dump(VAR_22, VAR_32)\n", "return 0\n" ]
[ "def wait(self2, timeout=None):...\n", "self2.returncode = returncode\n", "json.dump(result, f)\n", "return 0\n" ]
[ 0, 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Expr'", "Return'" ]
[ "def FUNC_6(VAR_16, VAR_18, VAR_17):...\n", "\"\"\"docstring\"\"\"\n", "VAR_47 = {}\n", "VAR_46 = reader.KeywordToken\n", "for VAR_76, v in keyworder.get_author_keywords(VAR_16, VAR_18, VAR_17).items():\n", "VAR_47[VAR_46(VAR_76, type='author-kw')] = v\n", "return VAR_47\n" ]
[ "def extract_author_keywords(skw_db, ckw_db, fulltext):...\n", "\"\"\"docstring\"\"\"\n", "akw = {}\n", "K = reader.KeywordToken\n", "for k, v in keyworder.get_author_keywords(skw_db, ckw_db, fulltext).items():\n", "akw[K(k, type='author-kw')] = v\n", "return akw\n" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Assign'", "Assign'", "For", "Assign'", "Return'" ]
[ "def FUNC_5(VAR_2, VAR_3):...\n", "VAR_2.browser.quit()\n", "FUNC_6(VAR_2)\n", "VAR_2.last_mail = None\n" ]
[ "def after_feature(context, feature):...\n", "context.browser.quit()\n", "cleanup_all_mails(context)\n", "context.last_mail = None\n" ]
[ 0, 0, 0, 0 ]
[ "FunctionDef'", "Expr'", "Expr'", "Assign'" ]
[ "def FUNC_37(self, VAR_51):...\n", "VAR_69, VAR_73 = self.post('/mails/read', json.dumps({'idents': VAR_51}))\n", "return VAR_69\n" ]
[ "def mark_many_as_read(self, idents):...\n", "res, req = self.post('/mails/read', json.dumps({'idents': idents}))\n", "return res\n" ]
[ 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Return'" ]
[ "def FUNC_15(VAR_11):...\n", "import datetime\n", "return datetime.datetime.strptime(VAR_11, VAR_0)\n" ]
[ "def string_to_date(date_string):...\n", "import datetime\n", "return datetime.datetime.strptime(date_string, DATE_FORMAT)\n" ]
[ 0, 0, 0 ]
[ "FunctionDef'", "Import'", "Return'" ]
[ "def __init__(self, *VAR_0, VAR_1=None, VAR_2=None):...\n", "\"\"\"docstring\"\"\"\n", "if len(VAR_0) == 2:\n", "VAR_10, VAR_41 = VAR_0\n", "if len(VAR_0) == 1:\n", "self.name = VAR_10\n", "VAR_17 = VAR_0[0]\n", "self.workflow = VAR_41\n", "self.name = VAR_17.name\n", "self.docstring = None\n", ...
[ "def __init__(self, *args, lineno=None, snakefile=None):...\n", "\"\"\"docstring\"\"\"\n", "if len(args) == 2:\n", "name, workflow = args\n", "if len(args) == 1:\n", "self.name = name\n", "other = args[0]\n", "self.workflow = workflow\n", "self.name = other.name\n", "self.docstring = None\n", "s...
[ 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", "Condition", "Assign'", "Condition", "Assign'", "Assign'", "Assign'", "Assign'", "Docstring", "Assign'", "Assign'", "Docstring", "Assign'", "Assign'", "Assign'", "Assign'", "Assign'", "Assign'", "Assign'", "Assign'", "Assign'", "Assign'", "A...
[ "def FUNC_4(VAR_4, VAR_1, VAR_5, VAR_6=False, VAR_7=False, VAR_8=True, VAR_9...\n", "\"\"\"docstring\"\"\"\n", "VAR_20 = sys.stdout.isatty()\n", "VAR_0 = parse_settings(VAR_4, VAR_1)\n", "VAR_3 = FUNC_0(VAR_0)\n", "if VAR_2 and VAR_20:\n", "print('DEBUG enabled')\n", "VAR_26 = FUNC_1(VAR_0, VAR_1, VAR...
[ "def run(config, instrum, wait, output=False, sql=False, header=True, quiet=...\n", "\"\"\"docstring\"\"\"\n", "tty = sys.stdout.isatty()\n", "settings = parse_settings(config, instrum)\n", "columns = get_columns(settings)\n", "if debug and tty:\n", "print('DEBUG enabled')\n", "device = get_device(set...
[ 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, 4, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 4, 0, 0, 0, 0, 0, 0, 4 ]
[ "Condition", "Docstring", "Assign'", "Assign'", "Assign'", "Condition", "Expr'", "Assign'", "Condition", "Expr'", "Assign'", "Expr'", "Condition", "Condition", "Expr'", "Condition", "Assign'", "Assign'", "Expr'", "Condition", "Assign'", "Condition", "Condition", "Condit...
[ "def FUNC_1(self):...\n", "def FUNC_34(self):...\n" ]
[ "def test_bad(self):...\n", "def get(self):...\n" ]
[ 0, 0 ]
[ "FunctionDef'", "FunctionDef'" ]
[ "@classmethod...\n", "\"\"\"docstring\"\"\"\n", "return VAR_18._check_executable_command(VAR_0=cls.executable, VAR_19=cls.\n prerequisite_command, VAR_20=cls.prerequisite_fail_msg)\n" ]
[ "@classmethod...\n", "\"\"\"docstring\"\"\"\n", "return cls._check_executable_command(executable=cls.executable, command=cls\n .prerequisite_command, fail_msg=cls.prerequisite_fail_msg)\n" ]
[ 0, 0, 0 ]
[ "Condition", "Docstring", "Return'" ]
[ "@VAR_2.route('/data/setasummary/')...\n", "VAR_28 = FUNC_0()\n", "VAR_32 = VAR_28.cursor()\n", "VAR_41 = 'select distinct date from seta'\n", "VAR_32.execute(VAR_41)\n", "VAR_51 = {}\n", "VAR_6 = []\n", "for VAR_71 in VAR_32.fetchall():\n", "VAR_6.append(VAR_71[0])\n", "for VAR_71 in VAR_6:\n", ...
[ "@app.route('/data/setasummary/')...\n", "db = create_db_connnection()\n", "cursor = db.cursor()\n", "query = 'select distinct date from seta'\n", "cursor.execute(query)\n", "retVal = {}\n", "dates = []\n", "for d in cursor.fetchall():\n", "dates.append(d[0])\n", "for d in dates:\n", "query = \"...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "Condition", "Assign'", "Assign'", "Assign'", "Expr'", "Assign'", "Assign'", "For", "Expr'", "For", "Assign'", "Return'", "Expr'", "Assign'", "Assign'" ]
[ "@staticmethod...\n", "return VAR_2 + chr(random.randint(194, 239))\n" ]
[ "@staticmethod...\n", "return s + chr(random.randint(194, 239))\n" ]
[ 0, 0 ]
[ "Condition", "Return'" ]
[ "def FUNC_8(self, *VAR_32, **VAR_33):...\n", "VAR_43 = 3\n", "while True:\n", "return self.execute(*VAR_32, **kwargs)\n", "VAR_0.warning('Write to ClickHouse failed: %s (%d retries)', str(e), VAR_43)\n", "if VAR_43 <= 0:\n", "VAR_43 -= 1\n", "if self.metrics:\n", "self.metrics.increment('clickhouse....
[ "def execute_robust(self, *args, **kwargs):...\n", "retries = 3\n", "while True:\n", "return self.execute(*args, **kwargs)\n", "logger.warning('Write to ClickHouse failed: %s (%d retries)', str(e), retries)\n", "if retries <= 0:\n", "retries -= 1\n", "if self.metrics:\n", "self.metrics.increment('cl...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Condition", "Return'", "Expr'", "Condition", "AugAssign'", "Condition", "Expr'", "Expr'", "Expr'", "Condition", "Condition", "Expr'", "Expr'" ]
[ "def FUNC_11(VAR_2):...\n", "VAR_2.cursor.execute('string')\n", "VAR_22 = VAR_2.cursor.fetchall()\n", "VAR_25 = set()\n", "VAR_26 = []\n", "for VAR_27 in VAR_22:\n", "VAR_16, VAR_5, VAR_6, VAR_35, VAR_8 = VAR_27\n", "return VAR_26\n", "if (VAR_5, VAR_6) in VAR_25:\n", "VAR_25.add((VAR_5, VAR_6))\n...
[ "def get_all_newest(db):...\n", "db.cursor.execute(\n \"\"\"SELECT id, sheet_id, student_id, time, files_path FROM\n submission ORDER BY time DESC\"\"\"\n )\n", "rows = db.cursor.fetchall()\n", "registered = set()\n", "submissions = []\n", "for row in rows:\n", "id, sheet_i...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Expr'", "Assign'", "Assign'", "Assign'", "For", "Assign'", "Return'", "Condition", "Expr'", "Expr'" ]
[ "def __init__(self, VAR_0):...\n", "self.bot = VAR_0\n", "print('Addon \"{}\" loaded'.format(self.__class__.__name__))\n" ]
[ "def __init__(self, bot):...\n", "self.bot = bot\n", "print('Addon \"{}\" loaded'.format(self.__class__.__name__))\n" ]
[ 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Expr'" ]
[ "def FUNC_4(self, VAR_14):...\n", "\"\"\"docstring\"\"\"\n", "VAR_28 = VAR_14.groupdict()\n", "if isinstance(self.severity_map, dict) and 'severity' in VAR_28 and VAR_28[\n", "VAR_28['severity'] = self.severity_map[VAR_28['severity']]\n", "return VAR_28\n" ]
[ "def _get_groupdict(self, match):...\n", "\"\"\"docstring\"\"\"\n", "groups = match.groupdict()\n", "if isinstance(self.severity_map, dict) and 'severity' in groups and groups[\n", "groups['severity'] = self.severity_map[groups['severity']]\n", "return groups\n" ]
[ 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Assign'", "Condition", "Assign'", "Return'" ]
[ "def __init__(self, VAR_6, VAR_7=None):...\n", "super().__init__(VAR_6, VAR_7)\n", "self.type = 'int'\n" ]
[ "def __init__(self, name, display_name=None):...\n", "super().__init__(name, display_name)\n", "self.type = 'int'\n" ]
[ 0, 0, 0 ]
[ "FunctionDef'", "Expr'", "Assign'" ]
[ "def FUNC_14(VAR_20):...\n", "VAR_40 = FUNC_8('task/%d' % VAR_20)\n", "VAR_41 = VAR_40.text\n", "VAR_42 = re.search('id=\"title_dataset_([0-9]+).* \\\\(Live\\\\)</', VAR_41)\n", "if VAR_42 is None:\n", "VAR_47 = int(VAR_42.groups()[0])\n", "return VAR_47\n" ]
[ "def get_task_active_dataset_id(task_id):...\n", "resp = admin_req('task/%d' % task_id)\n", "page = resp.text\n", "match = re.search('id=\"title_dataset_([0-9]+).* \\\\(Live\\\\)</', page)\n", "if match is None:\n", "dataset_id = int(match.groups()[0])\n", "return dataset_id\n" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Assign'", "Assign'", "Condition", "Assign'", "Return'" ]
[ "def FUNC_4(VAR_15, VAR_16):...\n", "VAR_33 = {}\n", "for in_file, VAR_45 in VAR_15:\n", "VAR_33[VAR_45] = FUNC_5(in_file, VAR_16)\n", "return VAR_33\n" ]
[ "def build_tree(templates, config):...\n", "res = {}\n", "for in_file, out_file in templates:\n", "res[out_file] = render_template(in_file, config)\n", "return res\n" ]
[ 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "For", "Assign'", "Return'" ]