lines
listlengths
1
444
raw_lines
listlengths
1
444
label
listlengths
1
444
type
listlengths
1
444
[ "def FUNC_1(VAR_1=None):...\n", "\"\"\"docstring\"\"\"\n", "VAR_4 = 'df -i'\n", "if VAR_1 is not None:\n", "VAR_4 = VAR_4 + ' -' + VAR_1\n", "VAR_2 = {}\n", "VAR_3 = __salt__['cmd.run'](VAR_4).splitlines()\n", "for line in VAR_3:\n", "if line.startswith('Filesystem'):\n", "return VAR_2\n", "VAR_...
[ "def inodeusage(args=None):...\n", "\"\"\"docstring\"\"\"\n", "cmd = 'df -i'\n", "if args is not None:\n", "cmd = cmd + ' -' + args\n", "ret = {}\n", "out = __salt__['cmd.run'](cmd).splitlines()\n", "for line in out:\n", "if line.startswith('Filesystem'):\n", "return ret\n", "comps = line.split(...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Assign'", "Condition", "Assign'", "Assign'", "Assign'", "For", "Condition", "Return'", "Assign'", "Condition", "Condition", "Expr'", "Assign'", "Assign'", "Assign'" ]
[ "def FUNC_12(self, VAR_4, VAR_14):...\n", "super().validate(VAR_4, VAR_14)\n", "json_encode(VAR_4, cls=self.encoder)\n" ]
[ "def validate(self, value, model_instance):...\n", "super().validate(value, model_instance)\n", "json_encode(value, cls=self.encoder)\n" ]
[ 0, 0, 0 ]
[ "FunctionDef'", "Expr'", "Expr'" ]
[ "def FUNC_0():...\n", "VAR_13 = VAR_0.path.dirname(VAR_0.path.abspath(__file__))\n", "return VAR_0.path.join(VAR_13, 'server/ycmd.py')\n" ]
[ "def _PathToServerScript():...\n", "dir_of_current_script = os.path.dirname(os.path.abspath(__file__))\n", "return os.path.join(dir_of_current_script, 'server/ycmd.py')\n" ]
[ 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Return'" ]
[ "def FUNC_0(*VAR_0, **VAR_1):...\n", "def FUNC_5(VAR_12):...\n", "def FUNC_9(self, *VAR_15, **VAR_75):...\n", "for validator in VAR_0:\n", "if VAR_102.method == 'POST' and hasattr(self, 'ajax_login_redirect'):\n", "return FUNC_9\n", "validator(VAR_75)\n", "VAR_16 = self.build_arg_list(VAR_12, VAR_75)\...
[ "def validate(*simple_vals, **param_vals):...\n", "def val(fn):...\n", "def newfn(self, *a, **env):...\n", "for validator in simple_vals:\n", "if request.method == 'POST' and hasattr(self, 'ajax_login_redirect'):\n", "return newfn\n", "validator(env)\n", "kw = self.build_arg_list(fn, env)\n", "retur...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "FunctionDef'", "FunctionDef'", "For", "Condition", "Return'", "Expr'", "Assign'", "Return'", "Return'", "For", "Assign'", "Return'" ]
[ "def FUNC_12(self):...\n", "VAR_14 = DataGroup.objects.filter(group_type__code='CO').first()\n", "VAR_15 = self.client.get(f'/datagroup/%s/' % VAR_14.id)\n", "self.assertIn(b'Download Raw', VAR_15.content)\n", "VAR_16 = DataDocument.objects.filter(id__in=ExtractedChemical.objects.all()\n .values('extract...
[ "def test_download_raw_comp_data(self):...\n", "dg_co = DataGroup.objects.filter(group_type__code='CO').first()\n", "resp = self.client.get(f'/datagroup/%s/' % dg_co.id)\n", "self.assertIn(b'Download Raw', resp.content)\n", "dg_ids = DataDocument.objects.filter(id__in=ExtractedChemical.objects.all()\n .v...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Assign'", "Expr'", "Assign'", "For", "Assign'", "Assign'", "Expr'", "Assign'", "Assign'", "Expr'" ]
[ "def FUNC_21(self, VAR_17, VAR_16):...\n", "\"\"\"docstring\"\"\"\n", "self._check_volume(VAR_16)\n", "VAR_0.warn(_('Volume %s is not found!, it may have been deleted'), VAR_16[\n 'name'])\n", "VAR_0.error(_('Failed to ensure export of volume %s'), VAR_16['name'])\n" ]
[ "def ensure_export(self, context, volume):...\n", "\"\"\"docstring\"\"\"\n", "self._check_volume(volume)\n", "LOG.warn(_('Volume %s is not found!, it may have been deleted'), volume['name']\n )\n", "LOG.error(_('Failed to ensure export of volume %s'), volume['name'])\n" ]
[ 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Expr'", "Expr'", "Expr'" ]
[ "def FUNC_46(self):...\n", "self.compilation_ko(\n \"\"\"\nif header :isnot \"Sent\" \"me@example.com\" {\n stop;\n}\n\"\"\")\n" ]
[ "def test_bad_arg_value(self):...\n", "self.compilation_ko(\n \"\"\"\nif header :isnot \"Sent\" \"me@example.com\" {\n stop;\n}\n\"\"\")\n" ]
[ 0, 0 ]
[ "FunctionDef'", "Expr'" ]
[ "def __getitem__(self, *VAR_30):...\n", "return dict.__getitem__(self, VAR_30)\n" ]
[ "def __getitem__(self, *key):...\n", "return dict.__getitem__(self, key)\n" ]
[ 0, 0 ]
[ "FunctionDef'", "Return'" ]
[ "def FUNC_15(VAR_22, VAR_23):...\n", "VAR_22 = [{c[0]: VAR_82[i] for i, c in enumerate(VAR_23)} for VAR_82 in VAR_22]\n", "VAR_23 = [{'name': m[0], 'type': m[1]} for m in VAR_23]\n", "for VAR_7 in VAR_23:\n", "if VAR_4.match(VAR_7['type']):\n", "return VAR_22, VAR_23\n", "for VAR_82 in VAR_22:\n", "if...
[ "def scrub_ch_data(data, meta):...\n", "data = [{c[0]: d[i] for i, c in enumerate(meta)} for d in data]\n", "meta = [{'name': m[0], 'type': m[1]} for m in meta]\n", "for col in meta:\n", "if DATETIME_TYPE_RE.match(col['type']):\n", "return data, meta\n", "for d in data:\n", "if DATE_TYPE_RE.match(col[...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Assign'", "For", "Condition", "Return'", "For", "Condition", "Assign'", "For", "Assign'", "Assign'" ]
[ "def FUNC_13(self, VAR_64):...\n", "self._onsuccess = VAR_64\n" ]
[ "def onsuccess(self, func):...\n", "self._onsuccess = func\n" ]
[ 0, 0 ]
[ "FunctionDef'", "Assign'" ]
[ "@staticmethod...\n", "\"\"\"docstring\"\"\"\n", "VAR_30 = db.session.query(CLASS_0.username, CLASS_0.projects_mapped.any(\n VAR_23).label('participant')).filter(CLASS_0.username.ilike(VAR_22.\n lower() + '%')).order_by(desc('participant').nullslast(), CLASS_0.username\n ).paginate(VAR_24, 20, True)\n"...
[ "@staticmethod...\n", "\"\"\"docstring\"\"\"\n", "results = db.session.query(User.username, User.projects_mapped.any(\n project_id).label('participant')).filter(User.username.ilike(\n user_filter.lower() + '%')).order_by(desc('participant').nullslast(),\n User.username).paginate(page, 20, True)\n", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "Condition", "Docstring", "Assign'", "Condition", "Assign'", "For", "Expr'", "Assign'", "Condition", "Return'", "Assign'", "Assign'", "Assign'", "Assign'", "Expr'" ]
[ "def __call__(self, VAR_11):...\n", "VAR_15 = []\n", "if self.param:\n", "for p in utils.tup(self.param):\n", "return self.run(*VAR_15)\n", "if self.post and VAR_102.post.get(p):\n", "VAR_33 = VAR_102.post[p]\n", "if self.get and VAR_102.get.get(p):\n", "VAR_15.append(VAR_33)\n", "VAR_33 = VAR_102...
[ "def __call__(self, url):...\n", "a = []\n", "if self.param:\n", "for p in utils.tup(self.param):\n", "return self.run(*a)\n", "if self.post and request.post.get(p):\n", "val = request.post[p]\n", "if self.get and request.get.get(p):\n", "a.append(val)\n", "val = request.get[p]\n", "if self.url ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Condition", "For", "Return'", "Condition", "Assign'", "Condition", "Expr'", "Assign'", "Condition", "Assign'", "Assign'" ]
[ "def FUNC_8(VAR_7):...\n", "return render(VAR_7, 'index.html')\n" ]
[ "def index(request):...\n", "return render(request, 'index.html')\n" ]
[ 0, 0 ]
[ "FunctionDef'", "Return'" ]
[ "def FUNC_0(self):...\n", "return hpcommon.HP3PARCommon(self.configuration)\n" ]
[ "def _init_common(self):...\n", "return hpcommon.HP3PARCommon(self.configuration)\n" ]
[ 0, 0 ]
[ "FunctionDef'", "Return'" ]
[ "def FUNC_12(self):...\n", "\"\"\"docstring\"\"\"\n", "VAR_7, VAR_12 = self.make_xsrf_handling_app()\n", "VAR_17 = VAR_7.get('/request').body\n", "VAR_7.post('/request?xsrf_token=%s' % VAR_17)\n", "self.assertEqual([('POST', True)], VAR_12)\n" ]
[ "def test_xsrf_token_get_param(self):...\n", "\"\"\"docstring\"\"\"\n", "app, calls = self.make_xsrf_handling_app()\n", "token = app.get('/request').body\n", "app.post('/request?xsrf_token=%s' % token)\n", "self.assertEqual([('POST', True)], calls)\n" ]
[ 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Assign'", "Assign'", "Expr'", "Expr'" ]
[ "def FUNC_1(self, VAR_1):...\n", "return self.properties\n" ]
[ "def _fake_get_iscsi_properties(self, volume):...\n", "return self.properties\n" ]
[ 0, 0 ]
[ "FunctionDef'", "Return'" ]
[ "def FUNC_7(self, VAR_11: bool):...\n", "\"\"\"docstring\"\"\"\n", "self.is_expert = VAR_11\n", "db.session.commit()\n" ]
[ "def set_is_expert(self, is_expert: bool):...\n", "\"\"\"docstring\"\"\"\n", "self.is_expert = is_expert\n", "db.session.commit()\n" ]
[ 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Assign'", "Expr'" ]
[ "def FUNC_10(self):...\n", "frappe.set_user('test1@example.com')\n", "self.assertRaises(frappe.PermissionError, get_filters_cond, 'DocType', dict\n (istable=1), [])\n", "self.assertTrue(get_filters_cond('DocType', dict(istable=1), [],\n ignore_permissions=True))\n", "frappe.set_user('Administrator')\n...
[ "def test_ignore_permissions_for_get_filters_cond(self):...\n", "frappe.set_user('test1@example.com')\n", "self.assertRaises(frappe.PermissionError, get_filters_cond, 'DocType', dict\n (istable=1), [])\n", "self.assertTrue(get_filters_cond('DocType', dict(istable=1), [],\n ignore_permissions=True))\n", ...
[ 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Expr'", "Expr'", "Expr'", "Expr'" ]
[ "def FUNC_4(self):...\n", "VAR_5 = models.Session.create()\n", "VAR_3 = models.Session.query().count()\n", "self.assertTrue(VAR_3 == 1)\n", "VAR_2 = EngineAuthRequest.blank('/auth/google')\n", "VAR_2.cookies['_eauth'] = VAR_5.serialize()\n", "VAR_2._load_session()\n", "self.assertTrue(VAR_2.session.se...
[ "def test_laod_session_session_id_and_user_id(self):...\n", "s = models.Session.create()\n", "s_count = models.Session.query().count()\n", "self.assertTrue(s_count == 1)\n", "req = EngineAuthRequest.blank('/auth/google')\n", "req.cookies['_eauth'] = s.serialize()\n", "req._load_session()\n", "self.ass...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Assign'", "Expr'", "Assign'", "Assign'", "Expr'", "Expr'", "Assign'", "Expr'" ]
[ "@staticmethod...\n", "return FUNC_1(CLASS_0._TalkToHandlerAsync('', VAR_7, 'GET', VAR_10))\n" ]
[ "@staticmethod...\n", "return JsonFromFuture(BaseRequest._TalkToHandlerAsync('', handler, 'GET',\n timeout))\n" ]
[ 0, 0 ]
[ "Condition", "Return'" ]
[ "def FUNC_18(VAR_1):...\n", "import sql\n", "VAR_13 = ['haproxy -q -c -f %s' % sql.get_setting('haproxy_config_path')]\n", "VAR_37 = FUNC_8(VAR_1)\n", "for command in VAR_13:\n", "VAR_76, VAR_12, VAR_42 = VAR_37.exec_command(command, get_pty=True)\n", "VAR_37.close()\n", "if not VAR_42.read():\n", ...
[ "def check_haproxy_config(serv):...\n", "import sql\n", "commands = ['haproxy -q -c -f %s' % sql.get_setting('haproxy_config_path')]\n", "ssh = ssh_connect(serv)\n", "for command in commands:\n", "stdin, stdout, stderr = ssh.exec_command(command, get_pty=True)\n", "ssh.close()\n", "if not stderr.read...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Import'", "Assign'", "Assign'", "For", "Assign'", "Expr'", "Condition", "Return'", "Return'" ]
[ "def FUNC_25(self):...\n", "VAR_76 = getattr(self, self.object)\n", "return VAR_76()\n" ]
[ "def get(self):...\n", "func = getattr(self, self.object)\n", "return func()\n" ]
[ 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Return'" ]
[ "@defer.inlineCallbacks...\n", "VAR_72, VAR_73 = self.post('/attachment', VAR_27=data, VAR_28=headers)\n", "VAR_69 = yield VAR_72\n", "defer.returnValue((VAR_69, VAR_73))\n" ]
[ "@defer.inlineCallbacks...\n", "deferred_result, req = self.post('/attachment', body=data, headers=headers)\n", "res = yield deferred_result\n", "defer.returnValue((res, req))\n" ]
[ 0, 0, 0, 0 ]
[ "Condition", "Assign'", "Assign'", "Expr'" ]
[ "@VAR_0.route('/explore')...\n", "return render_template('explore.html')\n" ]
[ "@app.route('/explore')...\n", "return render_template('explore.html')\n" ]
[ 0, 0 ]
[ "Condition", "Return'" ]
[ "def FUNC_3(self, VAR_2):...\n", "VAR_8 = 'WHERE '\n", "VAR_9 = LuceneParser()\n", "VAR_10 = VAR_9.parse(VAR_2)\n", "for tuple in VAR_10:\n", "VAR_8 += '{} {} {}'.format(tuple[0], tuple[1], tuple[2])\n", "return VAR_8\n" ]
[ "def create_where(self, where):...\n", "sql = 'WHERE '\n", "lucene_parser = LuceneParser()\n", "where_tuples = lucene_parser.parse(where)\n", "for tuple in where_tuples:\n", "sql += '{} {} {}'.format(tuple[0], tuple[1], tuple[2])\n", "return sql\n" ]
[ 0, 4, 0, 4, 4, 4, 0 ]
[ "FunctionDef'", "Assign'", "Assign'", "Assign'", "For", "AugAssign'", "Return'" ]
[ "def FUNC_34(self, VAR_48):...\n", "VAR_69, VAR_73 = self.delete('/mail/%s' % VAR_48)\n", "return VAR_69\n" ]
[ "def delete_mail(self, mail_ident):...\n", "res, req = self.delete('/mail/%s' % mail_ident)\n", "return res\n" ]
[ 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Return'" ]
[ "@trial_timeout(5)...\n", "\"\"\"docstring\"\"\"\n", "def FUNC_6(VAR_10):...\n", "self.assertEqual(VAR_10, VAR_11)\n", "VAR_11 = 'magnet:?xt=urn:btih:DC4B96CF85A85CEEDB8ADC4B96CF85A85CEEDB8A'\n", "VAR_2 = get_random_port()\n", "self.setUpHttpRedirectServer(VAR_2, VAR_11)\n", "VAR_6 = 'http://localhost...
[ "@trial_timeout(5)...\n", "\"\"\"docstring\"\"\"\n", "def on_callback(response):...\n", "self.assertEqual(response, magnet_link)\n", "magnet_link = 'magnet:?xt=urn:btih:DC4B96CF85A85CEEDB8ADC4B96CF85A85CEEDB8A'\n", "port = get_random_port()\n", "self.setUpHttpRedirectServer(port, magnet_link)\n", "tes...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "Condition", "Docstring", "FunctionDef'", "Expr'", "Assign'", "Assign'", "Expr'", "Assign'", "Assign'", "Return'" ]
[ "@staticmethod...\n", "VAR_3 = AnalysisController.get_report(VAR_0)\n", "VAR_3 = VAR_3['analysis']\n", "VAR_5 = VAR_3['info']['analysis_path']\n", "VAR_6 = 0\n", "for directory in VAR_1:\n", "VAR_14 = '%s/%s' % (VAR_5, directory)\n", "for filename in VAR_2:\n", "if os.path.isdir(VAR_14):\n", "VAR_...
[ "@staticmethod...\n", "report = AnalysisController.get_report(task_id)\n", "report = report['analysis']\n", "path = report['info']['analysis_path']\n", "size_total = 0\n", "for directory in taken_dirs:\n", "destination = '%s/%s' % (path, directory)\n", "for filename in taken_files:\n", "if os.path.i...
[ 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0 ]
[ "Condition", "Assign'", "Assign'", "Assign'", "Assign'", "For", "Assign'", "For", "Condition", "Assign'", "Assign'", "AugAssign'", "Condition", "Return'", "AugAssign'" ]
[ "@VAR_13.whitelist()...\n", "if isinstance(VAR_4, string_types):\n", "VAR_4 = json.loads(VAR_4)\n", "VAR_9 = VAR_13.get_meta(VAR_1)\n", "if VAR_0:\n", "FUNC_0(VAR_0)\n", "if not VAR_0:\n", "VAR_0 = 'name'\n", "VAR_14 = VAR_13.get_hooks().standard_queries or {}\n", "if VAR_3 and VAR_3.split()[0].lo...
[ "@frappe.whitelist()...\n", "if isinstance(filters, string_types):\n", "filters = json.loads(filters)\n", "meta = frappe.get_meta(doctype)\n", "if searchfield:\n", "sanitize_searchfield(searchfield)\n", "if not searchfield:\n", "searchfield = 'name'\n", "standard_queries = frappe.get_hooks().standar...
[ 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 ]
[ "Condition", "Condition", "Assign'", "Assign'", "Condition", "Expr'", "Condition", "Assign'", "Assign'", "Condition", "Assign'", "Condition", "Expr'", "Condition", "Expr'", "Condition", "Assign'", "Condition", "Assign'", "Assign'", "Assign'", "For", "Condition", "Condit...
[ "@db_session...\n", "\"\"\"docstring\"\"\"\n", "VAR_37 = {'id': self.rowid, 'name': self.title, 'infohash': hexlify(self.\n infohash), 'size': self.size, 'category': self.tags, 'num_seeders':\n self.health.seeders, 'num_leechers': self.health.leechers,\n 'last_tracker_check': self.health.last_check, 's...
[ "@db_session...\n", "\"\"\"docstring\"\"\"\n", "simple_dict = {'id': self.rowid, 'name': self.title, 'infohash': hexlify(\n self.infohash), 'size': self.size, 'category': self.tags, 'num_seeders':\n self.health.seeders, 'num_leechers': self.health.leechers,\n 'last_tracker_check': self.health.last_chec...
[ 0, 0, 0, 0, 0, 0 ]
[ "Condition", "Docstring", "Assign'", "Condition", "Assign'", "Return'" ]
[ "def __init__(self, VAR_1, **VAR_2):...\n", "self._type = VAR_1\n", "self._db_params = VAR_2\n" ]
[ "def __init__(self, type, **kwargs):...\n", "self._type = type\n", "self._db_params = kwargs\n" ]
[ 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Assign'" ]
[ "def FUNC_44(self):...\n", "return [i.name for i in self.obj.__mapper__.columns if isinstance(i.type,\n FileColumn)]\n" ]
[ "def get_file_column_list(self):...\n", "return [i.name for i in self.obj.__mapper__.columns if isinstance(i.type,\n FileColumn)]\n" ]
[ 0, 0 ]
[ "FunctionDef'", "Return'" ]
[ "def FUNC_11(self):...\n", "\"\"\"docstring\"\"\"\n", "if len(self.tables) > 1:\n", "for VAR_73, VAR_34 in enumerate(self.fields):\n", "if '.' not in VAR_34:\n", "self.fields[VAR_73] = '{0}.{1}'.format(self.tables[0], VAR_34)\n" ]
[ "def set_field_tables(self):...\n", "\"\"\"docstring\"\"\"\n", "if len(self.tables) > 1:\n", "for i, f in enumerate(self.fields):\n", "if '.' not in f:\n", "self.fields[i] = '{0}.{1}'.format(self.tables[0], f)\n" ]
[ 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Condition", "For", "Condition", "Assign'" ]
[ "def FUNC_6(self, VAR_21):...\n", "if VAR_21:\n", "VAR_106 = int(VAR_21, 36)\n", "if self.redirect:\n", "return Link._byID(VAR_106, True)\n", "abort(404, 'page not found')\n", "return None\n" ]
[ "def run(self, link_id):...\n", "if link_id:\n", "aid = int(link_id, 36)\n", "if self.redirect:\n", "return Link._byID(aid, True)\n", "abort(404, 'page not found')\n", "return None\n" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Condition", "Assign'", "Condition", "Return'", "Expr'", "Return'" ]
[ "def FUNC_1(self, VAR_4):...\n", "VAR_7 = self._get_engine(VAR_4)\n", "return VAR_7.table_names()\n" ]
[ "def get_table_names(self, connection_url):...\n", "engine = self._get_engine(connection_url)\n", "return engine.table_names()\n" ]
[ 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Return'" ]
[ "def __init__(self):...\n", "self.conn = MySQLdb.connect(*self.dsn)\n", "self.cur = self.conn.cursor()\n" ]
[ "def __init__(self):...\n", "self.conn = MySQLdb.connect(*self.dsn)\n", "self.cur = self.conn.cursor()\n" ]
[ 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Assign'" ]
[ "def __str__(self):...\n", "VAR_26 = self.before\n", "for c in self.children:\n", "VAR_26 += str(c) + self.inter\n", "VAR_26 += self.after\n", "return VAR_26\n" ]
[ "def __str__(self):...\n", "s = self.before\n", "for c in self.children:\n", "s += str(c) + self.inter\n", "s += self.after\n", "return s\n" ]
[ 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "For", "AugAssign'", "AugAssign'", "Return'" ]
[ "def FUNC_0(VAR_1):...\n", "\"\"\"docstring\"\"\"\n", "from frappe.model.document import Document\n", "if not VAR_1 in VAR_0:\n", "VAR_31, VAR_32 = VAR_54.db.get_value('DocType', VAR_1, ('module', 'custom'),\n cache=True) or ['Core', False]\n", "return VAR_0[VAR_1]\n", "if VAR_32:\n", "VAR_51 = Doc...
[ "def get_controller(doctype):...\n", "\"\"\"docstring\"\"\"\n", "from frappe.model.document import Document\n", "if not doctype in _classes:\n", "module_name, custom = frappe.db.get_value('DocType', doctype, ('module',\n 'custom'), cache=True) or ['Core', False]\n", "return _classes[doctype]\n", "if ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "ImportFrom'", "Condition", "Assign'", "Return'", "Condition", "Assign'", "Assign'", "Assign'", "Assign'", "Condition", "Assign'", "Condition", "Assign'" ]
[ "def __call__(self, VAR_2, VAR_3, VAR_4=None):...\n", "self.reply(VAR_2, \"I don't know that. Did you mean: {} {}\".format(self.\n _new_name, VAR_3))\n" ]
[ "def __call__(self, msg, arguments, errorSink=None):...\n", "self.reply(msg, \"I don't know that. Did you mean: {} {}\".format(self.\n _new_name, arguments))\n" ]
[ 0, 0 ]
[ "FunctionDef'", "Expr'" ]
[ "def FUNC_13(self, VAR_15):...\n", "self.database_manager = DatabaseManager(self.filechooser_creation_dialog.\n get_filename(), 'liufhre86ewoiwejmrcu8owe')\n", "VAR_28 = Gtk.Builder()\n", "VAR_28.add_from_resource('/run/terminal/KeepassGtk/create_database.ui')\n", "VAR_6 = VAR_28.get_object('headerbar')\...
[ "def start_database_creation_routine(self, tab_title):...\n", "self.database_manager = DatabaseManager(self.filechooser_creation_dialog.\n get_filename(), 'liufhre86ewoiwejmrcu8owe')\n", "builder = Gtk.Builder()\n", "builder.add_from_resource('/run/terminal/KeepassGtk/create_database.ui')\n", "headerbar ...
[ 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Assign'", "Expr'", "Assign'", "Expr'" ]
[ "@VAR_0.route('/uploadfile', methods=['GET', 'POST'])...\n", "if request.method == 'POST':\n", "if 'file' not in request.files:\n", "flash('No selected items')\n", "VAR_17 = request.files['file']\n", "return 'Err'\n", "if VAR_17.filename == '':\n", "flash('No file selected')\n", "if VAR_17 and FUNC_...
[ "@app.route('/uploadfile', methods=['GET', 'POST'])...\n", "if request.method == 'POST':\n", "if 'file' not in request.files:\n", "flash('No selected items')\n", "file = request.files['file']\n", "return 'Err'\n", "if file.filename == '':\n", "flash('No file selected')\n", "if file and allowed_file(...
[ 0, 4, 4, 4, 4, 4, 4, 4, 4, 0, 4, 4, 4 ]
[ "Condition", "Condition", "Condition", "Expr'", "Assign'", "Return'", "Condition", "Expr'", "Condition", "Return'", "Assign'", "Expr'", "Return'" ]
[ "def FUNC_4(self, VAR_7=None, VAR_8=None, VAR_4=None, VAR_9=None, VAR_10=...\n", "if not VAR_18 and not frappe.has_permission(self.doctype, 'read', VAR_19=user):\n", "frappe.flags.error_message = _('Insufficient Permission for {0}').format(frappe\n .bold(self.doctype))\n", "if isinstance(VAR_8, dict) or is...
[ "def execute(self, query=None, fields=None, filters=None, or_filters=None,...\n", "if not ignore_permissions and not frappe.has_permission(self.doctype,\n", "frappe.flags.error_message = _('Insufficient Permission for {0}').format(frappe\n .bold(self.doctype))\n", "if isinstance(fields, dict) or isinstance...
[ 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 ]
[ "Condition", "Condition", "Assign'", "Condition", "Assign'", "Condition", "Condition", "Assign'", "Assign'", "Assign'", "Condition", "Assign'", "Condition", "Assign'", "Condition", "Assign'", "Assign'", "Assign'", "Assign'", "Assign'", "Assign'", "Assign'", "Assign'", "...
[ "def FUNC_2(self, VAR_4):...\n", "def FUNC_8(VAR_13, VAR_14):...\n", "VAR_5 = self.paths[VAR_13]\n", "return VAR_5._handlers.get(VAR_14, None)\n" ]
[ "def find_handler(self, req):...\n", "def get_handlers(path, method):...\n", "component = self.paths[path]\n", "return component._handlers.get(method, None)\n" ]
[ 0, 0, 0, 0 ]
[ "FunctionDef'", "FunctionDef'", "Assign'", "Return'" ]
[ "def FUNC_8(self, VAR_8=False):...\n", "if not self.NativeFiletypeCompletionAvailable(\n", "self._latest_completion_request = OmniCompletionRequest(self._omnicomp)\n", "VAR_5 = {}\n", "return self._latest_completion_request\n", "self._AddExtraConfDataIfNeeded(VAR_5)\n", "if VAR_8:\n", "VAR_5['force_se...
[ "def CreateCompletionRequest(self, force_semantic=False):...\n", "if not self.NativeFiletypeCompletionAvailable(\n", "self._latest_completion_request = OmniCompletionRequest(self._omnicomp)\n", "extra_data = {}\n", "return self._latest_completion_request\n", "self._AddExtraConfDataIfNeeded(extra_data)\n",...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Condition", "Assign'", "Assign'", "Return'", "Expr'", "Condition", "Assign'", "Assign'" ]
[ "def FUNC_3():...\n", "\"\"\"docstring\"\"\"\n", "VAR_1 = 'string'\n", "return FUNC_0(VAR_1)\n" ]
[ "def get_show_stoper_days():...\n", "\"\"\"docstring\"\"\"\n", "cmd = \"\"\"SELECT to_char(date, 'FMMonth DD, YYYY') as date,\n ROUND(error_percent, 2) as error_rate\n FROM(\n SELECT time::date AS date,\n 100 * (COUNT(*) FILTER (WHERE status = '404 NOT FOUND') /\n...
[ 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Assign'", "Return'" ]
[ "def FUNC_16(self):...\n", "\"\"\"docstring\"\"\"\n", "logging.info('Initiating SAML logout request')\n", "VAR_42 = self._current_user_nameid()\n", "logging.warning('No SAML data in session. Cannot SLO log out')\n", "VAR_11 = self._saml_auth()\n", "VAR_43 = self._current_saml_session_id()\n", "self.cl...
[ "def log_out(self):...\n", "\"\"\"docstring\"\"\"\n", "logging.info('Initiating SAML logout request')\n", "current_nameid = self._current_user_nameid()\n", "logging.warning('No SAML data in session. Cannot SLO log out')\n", "auth = self._saml_auth()\n", "current_session_id = self._current_saml_session_i...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Expr'", "Assign'", "Expr'", "Assign'", "Assign'", "Expr'", "Condition", "Return'", "Expr'", "Expr'", "Expr'", "Return'", "Return'" ]
[ "def FUNC_6(self, VAR_11='', VAR_6=None):...\n", "VAR_5 = self.session.query(self.obj)\n", "VAR_5 = self._get_base_query(VAR_5=query, VAR_6=filters)\n", "VAR_25 = VAR_5.all()\n", "VAR_27 = GroupByDateYear(VAR_11, 'Group by Year')\n", "return VAR_27.apply(VAR_25)\n" ]
[ "def query_year_group(self, group_by='', filters=None):...\n", "query = self.session.query(self.obj)\n", "query = self._get_base_query(query=query, filters=filters)\n", "query_result = query.all()\n", "group_year = GroupByDateYear(group_by, 'Group by Year')\n", "return group_year.apply(query_result)\n" ]
[ 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Assign'", "Assign'", "Assign'", "Return'" ]
[ "def FUNC_26(self):...\n", "for VAR_25 in self.meta.get('fields'):\n", "if VAR_25.fieldtype == 'Check':\n", "if self.docstatus is not None:\n", "self.set(VAR_25.fieldname, cint(self.get(VAR_25.fieldname)))\n", "if self.get(VAR_25.fieldname) is not None:\n", "self.docstatus = cint(self.docstatus)\n", "...
[ "def _fix_numeric_types(self):...\n", "for df in self.meta.get('fields'):\n", "if df.fieldtype == 'Check':\n", "if self.docstatus is not None:\n", "self.set(df.fieldname, cint(self.get(df.fieldname)))\n", "if self.get(df.fieldname) is not None:\n", "self.docstatus = cint(self.docstatus)\n", "if df.fie...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "For", "Condition", "Condition", "Expr'", "Condition", "Assign'", "Condition", "Expr'", "Condition", "Expr'" ]
[ "def FUNC_5(VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_11, VAR_12):...\n", "\"\"\"docstring\"\"\"\n", "VAR_18 = sql.connect('./resources/messages.db')\n", "VAR_14 = 0\n", "VAR_17 = ''\n", "if VAR_8 == None:\n", "VAR_8 = 'NULL'\n", "VAR_20 = 'string'\n", "VAR_21 = VAR_18.cursor()\n", "print(''.join(tr...
[ "def add_message(message, timeposted, eventtime, poster_id, poster_username,...\n", "\"\"\"docstring\"\"\"\n", "con = sql.connect('./resources/messages.db')\n", "likes = 0\n", "comments = ''\n", "if eventtime == None:\n", "eventtime = 'NULL'\n", "cmd = \"\"\"INSERT INTO messages (message, poster_id, p...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Assign'", "Assign'", "Assign'", "Condition", "Assign'", "Assign'", "Assign'", "Expr'", "Expr'", "Assign'", "Expr'", "Return'", "Expr'", "Assign'", "Expr'", "Assign'" ]
[ "def FUNC_9(VAR_3, VAR_6):...\n", "VAR_0, VAR_10 = FUNC_0()\n", "VAR_18 = 'SELECT poll_name from {} where adm_token = \"{}\"'.format(CFG(\n 'admintoken_table_name'), VAR_6)\n", "VAR_20 = FUNC_3(VAR_10, VAR_18)\n", "FUNC_1(VAR_0)\n", "return VAR_20 == VAR_3\n" ]
[ "def checkAdmTokenValid(poll_name, adm_token):...\n", "conn, c = connectDB()\n", "req = 'SELECT poll_name from {} where adm_token = \"{}\"'.format(CFG(\n 'admintoken_table_name'), adm_token)\n", "answer = queryOne(c, req)\n", "closeDB(conn)\n", "return answer == poll_name\n" ]
[ 0, 0, 4, 4, 0, 0 ]
[ "FunctionDef'", "Assign'", "Assign'", "Assign'", "Expr'", "Return'" ]
[ "def FUNC_4(self):...\n", "self.run_test_case(self.scenario.upsert_load_balancer())\n" ]
[ "def test_a_upsert_load_balancer(self):...\n", "self.run_test_case(self.scenario.upsert_load_balancer())\n" ]
[ 0, 0 ]
[ "FunctionDef'", "Expr'" ]
[ "def FUNC_16(self):...\n", "self.run_test_case(self.scenario.create_http_load_balancer())\n" ]
[ "def test_d_create_http_load_balancer(self):...\n", "self.run_test_case(self.scenario.create_http_load_balancer())\n" ]
[ 0, 0 ]
[ "FunctionDef'", "Expr'" ]
[ "def __init__(self, VAR_15=4, VAR_16=0.5, VAR_8='ping', **VAR_1):...\n", "super().__init__(VAR_8, **kwargs)\n", "self.argparse.add_argument('-6', '--ipv6', action='store_true', dest='ipv6',\n default=False, help='Use ping6 instead of ping')\n", "self.argparse.add_argument('--alot', action='store_true', des...
[ "def __init__(self, count=4, interval=0.5, command_name='ping', **kwargs):...\n", "super().__init__(command_name, **kwargs)\n", "self.argparse.add_argument('-6', '--ipv6', action='store_true', dest='ipv6',\n default=False, help='Use ping6 instead of ping')\n", "self.argparse.add_argument('--alot', action='...
[ 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Expr'", "Expr'", "Expr'", "Expr'", "Assign'" ]
[ "def FUNC_7(self, *VAR_16, **VAR_17):...\n", "" ]
[ "def recv(self, *args, **kwargs):...\n", "" ]
[ 0, 0 ]
[ "FunctionDef'", "Condition" ]
[ "def FUNC_38(self, VAR_47, VAR_48=None, **VAR_46):...\n", "from core.models import Template\n", "VAR_60 = Template.get(Template.blog == self._tags.get('blog', None), \n Template.title == VAR_48)\n", "VAR_18 = CLASS_1(VAR_60.body, VAR_26=self._tags)\n", "self.includes.append(VAR_48)\n", "return VAR_18.e...
[ "def _include(self, env, _name=None, **kwargs):...\n", "from core.models import Template\n", "template_to_import = Template.get(Template.blog == self._tags.get('blog',\n None), Template.title == _name)\n", "tpl = MetalTemplate(template_to_import.body, tags=self._tags)\n", "self.includes.append(_name)\n",...
[ 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "ImportFrom'", "Assign'", "Assign'", "Expr'", "Return'" ]
[ "@user_passes_test(user_is_superuser)...\n", "VAR_11 = []\n", "VAR_10 = get_object_or_404(TestRailConfiguration, pk=testrail_id)\n", "VAR_12 = APIClient(VAR_10.instance.host)\n", "VAR_12.user = VAR_10.instance.username\n", "VAR_12.password = VAR_10.instance.password\n", "VAR_13 = VAR_12.send_get('get_su...
[ "@user_passes_test(user_is_superuser)...\n", "suites = []\n", "testrail = get_object_or_404(TestRailConfiguration, pk=testrail_id)\n", "client = APIClient(testrail.instance.host)\n", "client.user = testrail.instance.username\n", "client.password = testrail.instance.password\n", "testrail_find_suites = c...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "Condition", "Assign'", "Assign'", "Assign'", "Assign'", "Assign'", "Assign'", "For", "Expr'", "Condition", "Assign'", "Assign'", "Expr'", "Assign'", "Return'" ]
[ "def FUNC_5(self):...\n", "\"\"\"docstring\"\"\"\n", "client.devices.insert([])\n", "client.devices.insert(None)\n", "client.devices.delete([])\n", "client.devices.delete(None)\n", "client.media.insert([])\n", "client.media.insert(None)\n", "client.media.delete([])\n", "client.media.delete(None)\n...
[ "def test_manipulate_empty(self):...\n", "\"\"\"docstring\"\"\"\n", "client.devices.insert([])\n", "client.devices.insert(None)\n", "client.devices.delete([])\n", "client.devices.delete(None)\n", "client.media.insert([])\n", "client.media.insert(None)\n", "client.media.delete([])\n", "client.media...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Expr'", "Expr'", "Expr'", "Expr'", "Expr'", "Expr'", "Expr'", "Expr'" ]
[ "def FUNC_11(VAR_13):...\n", "return binascii.unhexlify(VAR_13)\n" ]
[ "def hex_to_binary(hex_identifier):...\n", "return binascii.unhexlify(hex_identifier)\n" ]
[ 0, 0 ]
[ "FunctionDef'", "Return'" ]
[ "@mock.patch('requests.post', FUNC_0)...\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}/containers'.format(**locals())\n", "VAR_5 = self.client.get(VAR_4)\n", "self.assertEqual(V...
[ "@mock.patch('requests.post', mock_import_repository_task)...\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 = '/api/apps/{app_id}/containers'.format(**locals())\n", "response = self.client.get(url)...
[ 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 ]
[ "Condition", "Assign'", "Assign'", "Expr'", "Assign'", "Assign'", "Assign'", "Expr'", "Expr'", "Assign'", "Assign'", "Assign'", "Expr'", "Assign'", "Assign'", "Assign'", "Expr'", "Assign'", "Assign'", "Expr'", "Expr'", "Assign'", "Assign'", "Expr'", "Assign'", "Assi...
[ "def FUNC_0(self, VAR_1, VAR_2=None, VAR_3=False):...\n", "\"\"\"docstring\"\"\"\n", "VAR_6 = 'string'.format(default_store=store, repo_dir=REPO_DIR, shard_str=\n '/shard_' + self.shard if self.shard else '', exp_text=name,\n a11y_custom_file=\n 'node_modules/edx-custom-a11y-rules/lib/custom_a11y_rules...
[ "def _expected_command(self, name, store=None, verify_xss=False):...\n", "\"\"\"docstring\"\"\"\n", "expected_statement = (\n \"DEFAULT_STORE={default_store} SCREENSHOT_DIR='{repo_dir}/test_root/log{shard_str}' BOK_CHOY_HAR_DIR='{repo_dir}/test_root/log{shard_str}/hars' BOKCHOY_A11Y_CUSTOM_RULES_FILE='{repo_...
[ 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Assign'", "Return'" ]
[ "from osv import osv\n", "from tools.translate import _\n", "VAR_0 = 'pos.close.statement'\n", "VAR_1 = 'Close Statements'\n", "def FUNC_0(self, VAR_2, VAR_3, VAR_4, VAR_5):...\n", "\"\"\"docstring\"\"\"\n", "VAR_6 = self.pool.get('res.users').browse(VAR_2, VAR_3, VAR_3).company_id.id\n", "VAR_7 = []\...
[ "from osv import osv\n", "from tools.translate import _\n", "_name = 'pos.close.statement'\n", "_description = 'Close Statements'\n", "def close_statement(self, cr, uid, ids, context):...\n", "\"\"\"docstring\"\"\"\n", "company_id = self.pool.get('res.users').browse(cr, uid, uid).company_id.id\n", "li...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "ImportFrom'", "ImportFrom'", "Assign'", "Assign'", "FunctionDef'", "Docstring", "Assign'", "Assign'", "Assign'", "Assign'", "Assign'", "Expr'", "Assign'", "Expr'", "Assign'", "For", "Assign'", "Assign'", "Condition", "Assign'", "Expr'", "Assign'", "Condition", "Conditi...
[ "def FUNC_8(self):...\n", "\"\"\"docstring\"\"\"\n", "\"\"\"Test creating a Push via the API\"\"\"\n", "self.client.login(VAR_8='autotest2', VAR_9='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", ...
[ "def test_admin_can_hook(self):...\n", "\"\"\"docstring\"\"\"\n", "\"\"\"Test creating a Push via the API\"\"\"\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 = ...
[ 0, 0, 0, 5, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Expr'", "Expr'", "Assign'", "Assign'", "Expr'", "Assign'", "Expr'", "Assign'", "Assign'", "Assign'", "Assign'", "Expr'", "Expr'" ]
[ "def __hash__(self):...\n", "return self.name.__hash__()\n" ]
[ "def __hash__(self):...\n", "return self.name.__hash__()\n" ]
[ 0, 0 ]
[ "FunctionDef'", "Return'" ]
[ "def FUNC_9(self):...\n", "\"\"\"docstring\"\"\"\n", "frappe.db.sql('delete from tabEvent')\n", "VAR_4 = FUNC_0()\n", "VAR_5 = FUNC_0(VAR_1='2016-07-05 23:59:59')\n", "VAR_6 = FUNC_0(VAR_1='2016-07-06 00:00:00')\n", "VAR_7 = FUNC_0(VAR_1='2016-07-07 23:59:59')\n", "VAR_8 = FUNC_0(VAR_1='2016-07-08 00:...
[ "def test_between_filters(self):...\n", "\"\"\"docstring\"\"\"\n", "frappe.db.sql('delete from tabEvent')\n", "todays_event = create_event()\n", "event1 = create_event(starts_on='2016-07-05 23:59:59')\n", "event2 = create_event(starts_on='2016-07-06 00:00:00')\n", "event3 = create_event(starts_on='2016-...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Expr'", "Assign'", "Assign'", "Assign'", "Assign'", "Assign'", "Assign'", "Expr'", "Assign'", "Expr'", "Expr'", "Expr'", "Expr'", "Assign'", "Expr'", "Expr'", "Expr'", "Expr'", "Expr'" ]
[ "@functools.lru_cache(None)...\n", "\"\"\"docstring\"\"\"\n", "return self._get_model_field(CustomerResponse, VAR_7)\n" ]
[ "@functools.lru_cache(None)...\n", "\"\"\"docstring\"\"\"\n", "return self._get_model_field(CustomerResponse, name)\n" ]
[ 0, 0, 0 ]
[ "Condition", "Docstring", "Return'" ]
[ "def FUNC_10(self, VAR_10, VAR_12):...\n", "\"\"\"docstring\"\"\"\n", "self._create_server(VAR_12)\n", "VAR_5 = {}\n", "VAR_5['volumeName'] = VAR_10['name']\n", "VAR_5['serverName'] = VAR_12['host']\n", "self._cliq_run_xml('assignVolumeToServer', VAR_5)\n", "VAR_32 = self._get_iscsi_properties(VAR_10)...
[ "def initialize_connection(self, volume, connector):...\n", "\"\"\"docstring\"\"\"\n", "self._create_server(connector)\n", "cliq_args = {}\n", "cliq_args['volumeName'] = volume['name']\n", "cliq_args['serverName'] = connector['host']\n", "self._cliq_run_xml('assignVolumeToServer', cliq_args)\n", "iscs...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Expr'", "Assign'", "Assign'", "Assign'", "Expr'", "Assign'", "Return'" ]
[ "@FUNC_7...\n", "\"\"\"docstring\"\"\"\n", "if not current_user.is_authenticated():\n", "return current_app.login_manager.unauthorized()\n", "VAR_20 = RemoteAccount.get(user_id=current_user.get_id(), client_id=remote.\n consumer_key)\n", "if VAR_20:\n", "VAR_20.delete()\n", "return redirect(url_for...
[ "@oauth_error_handler...\n", "\"\"\"docstring\"\"\"\n", "if not current_user.is_authenticated():\n", "return current_app.login_manager.unauthorized()\n", "account = RemoteAccount.get(user_id=current_user.get_id(), client_id=remote\n .consumer_key)\n", "if account:\n", "account.delete()\n", "return ...
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "Condition", "Docstring", "Condition", "Return'", "Assign'", "Condition", "Expr'", "Return'" ]
[ "def FUNC_5(VAR_0):...\n", "VAR_11 = VAR_0.GET.get('first_name', '')\n", "VAR_12 = Student.objects.raw(\n \"select * from sio_student where first_name = '\" + VAR_11 + \"'\")\n", "VAR_13 = serializers.serialize('json', VAR_12)\n", "return HttpResponse(VAR_13, content_type='application/json')\n" ]
[ "def get_student_by_name(request):...\n", "first_name = request.GET.get('first_name', '')\n", "students = Student.objects.raw(\n \"select * from sio_student where first_name = '\" + first_name + \"'\")\n", "response_text = serializers.serialize('json', students)\n", "return HttpResponse(response_text, co...
[ 0, 0, 4, 0, 0 ]
[ "FunctionDef'", "Assign'", "Assign'", "Assign'", "Return'" ]
[ "\"\"\"\n1-filter_states.py\n\"\"\"\n", "import MySQLdb\n", "import sys\n", "def FUNC_0():...\n", "\"\"\"docstring\"\"\"\n", "VAR_0 = MySQLdb.connect(host='localhost', port=3306, user=sys.argv[1],\n passwd=sys.argv[2], VAR_0=sys.argv[3])\n", "return VAR_0\n" ]
[ "\"\"\"\n1-filter_states.py\n\"\"\"\n", "import MySQLdb\n", "import sys\n", "def init_db():...\n", "\"\"\"docstring\"\"\"\n", "db = MySQLdb.connect(host='localhost', port=3306, user=sys.argv[1], passwd=\n sys.argv[2], db=sys.argv[3])\n", "return db\n" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ "Expr'", "Import'", "Import'", "FunctionDef'", "Docstring", "Assign'", "Return'" ]
[ "def FUNC_10(self):...\n", "self.assertFalse(self.course_module.is_open(self.yesterday))\n", "self.assertTrue(self.course_module.is_open(self.today))\n", "self.assertTrue(self.course_module.is_open())\n", "self.assertTrue(self.course_module.is_open(self.tomorrow))\n", "self.assertFalse(self.course_module....
[ "def test_course_module_open(self):...\n", "self.assertFalse(self.course_module.is_open(self.yesterday))\n", "self.assertTrue(self.course_module.is_open(self.today))\n", "self.assertTrue(self.course_module.is_open())\n", "self.assertTrue(self.course_module.is_open(self.tomorrow))\n", "self.assertFalse(sel...
[ 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Expr'", "Expr'", "Expr'", "Expr'", "Expr'" ]
[ "def __init__(self):...\n", "self._time = 0.0\n" ]
[ "def __init__(self):...\n", "self._time = 0.0\n" ]
[ 0, 0 ]
[ "FunctionDef'", "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'" ]
[ "def FUNC_1(VAR_1, VAR_6):...\n", "" ]
[ "def directory_index(path, fullpath):...\n", "" ]
[ 0, 0 ]
[ "FunctionDef'", "Condition" ]
[ "def FUNC_0(self):...\n", "if not GenericRequest.test_success(self):\n", "return False\n", "return self.get_user_test_id() is not None\n" ]
[ "def test_success(self):...\n", "if not GenericRequest.test_success(self):\n", "return False\n", "return self.get_user_test_id() is not None\n" ]
[ 0, 0, 0, 0 ]
[ "FunctionDef'", "Condition", "Return'", "Return'" ]
[ "def FUNC_7(self, VAR_12):...\n", "self.cursor.execute('SELECT * FROM brand WHERE id = %s;', (VAR_12,))\n", "return self.cursor.fetchall()\n" ]
[ "def find_brand_by_id(self, brand_id):...\n", "self.cursor.execute('SELECT * FROM brand WHERE id = %s;', (brand_id,))\n", "return self.cursor.fetchall()\n" ]
[ 0, 0, 0 ]
[ "FunctionDef'", "Expr'", "Return'" ]
[ "\"\"\"This module contains the device class and context manager\"\"\"\n", "import numpy as np\n", "from scipy.linalg import expm, eigh\n", "import openqml as qm\n", "from openqml import Device, DeviceError, qfunc, QNode, Variable, __version__\n", "VAR_0 = 1e-10\n", "def FUNC_0(VAR_1):...\n", "\"\"\"d...
[ "\"\"\"This module contains the device class and context manager\"\"\"\n", "import numpy as np\n", "from scipy.linalg import expm, eigh\n", "import openqml as qm\n", "from openqml import Device, DeviceError, qfunc, QNode, Variable, __version__\n", "tolerance = 1e-10\n", "def spectral_decomposition_qubit...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "Expr'", "Import'", "ImportFrom'", "Import'", "ImportFrom'", "Assign'", "FunctionDef'", "Docstring", "Assign'", "Assign'", "For", "Assign'", "Return'", "Expr'" ]
[ "def FUNC_6():...\n", "\"\"\"docstring\"\"\"\n", "return FUNC_2('select count(*) from Player')\n" ]
[ "def countPlayers():...\n", "\"\"\"docstring\"\"\"\n", "return fetchone('select count(*) from Player')\n" ]
[ 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Return'" ]
[ "@staticmethod...\n", "if not VAR_1 or not VAR_7 or not VAR_6:\n", "if not VAR_5:\n", "VAR_5 = CLASS_0.get_report(VAR_1)['analysis']\n", "VAR_16 = VAR_5['behavior']['generic']\n", "VAR_17 = [z for z in VAR_16 if z['pid'] == VAR_6]\n", "if not VAR_17:\n", "VAR_17 = VAR_17[0]\n", "VAR_18 = VAR_17['sum...
[ "@staticmethod...\n", "if not task_id or not watcher or not pid:\n", "if not report:\n", "report = AnalysisController.get_report(task_id)['analysis']\n", "behavior_generic = report['behavior']['generic']\n", "process = [z for z in behavior_generic if z['pid'] == pid]\n", "if not process:\n", "process ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "Condition", "Condition", "Condition", "Assign'", "Assign'", "Assign'", "Condition", "Assign'", "Assign'", "Condition", "Condition", "Assign'", "Condition", "Assign'", "Return'" ]
[ "def FUNC_7(VAR_3, VAR_9):...\n", "\"\"\"docstring\"\"\"\n", "if VAR_9 == 'login':\n", "return external_auth_login(VAR_3)\n", "if VAR_9 == 'register':\n", "return external_auth_register(VAR_3)\n" ]
[ "def _external_auth_intercept(request, mode):...\n", "\"\"\"docstring\"\"\"\n", "if mode == 'login':\n", "return external_auth_login(request)\n", "if mode == 'register':\n", "return external_auth_register(request)\n" ]
[ 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Condition", "Return'", "Condition", "Return'" ]
[ "@classmethod...\n", "return change_log.is_changle_log_indexed()\n" ]
[ "@classmethod...\n", "return change_log.is_changle_log_indexed()\n" ]
[ 0, 0 ]
[ "Condition", "Return'" ]
[ "def FUNC_8(VAR_9, VAR_10=False):...\n", "\"\"\"docstring\"\"\"\n", "if VAR_9 is None and VAR_10:\n", "return ''\n", "if not isinstance(VAR_9, bytes):\n", "if sys.version_info >= (3, 0):\n", "return VAR_9.decode('ascii')\n", "return VAR_9\n" ]
[ "def decode(byte_str, allow_none=False):...\n", "\"\"\"docstring\"\"\"\n", "if byte_str is None and allow_none:\n", "return ''\n", "if not isinstance(byte_str, bytes):\n", "if sys.version_info >= (3, 0):\n", "return byte_str.decode('ascii')\n", "return byte_str\n" ]
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Condition", "Return'", "Condition", "Condition", "Return'", "Return'" ]
[ "@VAR_1.route('/openFile')...\n", "if not 'email' in VAR_18 and not 'social' in VAR_18:\n", "if 'diagram' in request.args:\n", "VAR_9 = []\n", "return redirect('/login?return_url=openFile&diagram=true')\n", "return redirect('/login?return_url=openFile')\n", "if 'email' in VAR_18:\n", "VAR_12 = VAR_18[...
[ "@app.route('/openFile')...\n", "if not 'email' in session and not 'social' in session:\n", "if 'diagram' in request.args:\n", "files = []\n", "return redirect('/login?return_url=openFile&diagram=true')\n", "return redirect('/login?return_url=openFile')\n", "if 'email' in session:\n", "email = session...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "Condition", "Condition", "Condition", "Assign'", "Return'", "Return'", "Condition", "Assign'", "Condition", "Assign'", "Assign'", "Assign'", "Expr'", "Return'" ]
[ "def __init__(self, VAR_16):...\n", "self.flags = dict()\n" ]
[ "def __init__(self, value):...\n", "self.flags = dict()\n" ]
[ 0, 0 ]
[ "FunctionDef'", "Assign'" ]
[ "def FUNC_7(VAR_2):...\n", "\"\"\"docstring\"\"\"\n", "VAR_20 = kijiji_api.KijijiApi()\n", "VAR_20.delete_ad_using_title(VAR_2)\n" ]
[ "def delete_ad_using_title(name):...\n", "\"\"\"docstring\"\"\"\n", "api = kijiji_api.KijijiApi()\n", "api.delete_ad_using_title(name)\n" ]
[ 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Assign'", "Expr'" ]
[ "\"\"\"\nUnit tests for the Deis api app.\n\nRun the tests with \"./manage.py test api\\\"\n\"\"\"\n", "from __future__ import unicode_literals\n", "import json\n", "from django.conf import settings\n", "from django.test import TransactionTestCase\n", "from scheduler import chaos\n", "\"\"\"Tests creati...
[ "\"\"\"\nUnit tests for the Deis api app.\n\nRun the tests with \"./manage.py test api\\\"\n\"\"\"\n", "from __future__ import unicode_literals\n", "import json\n", "from django.conf import settings\n", "from django.test import TransactionTestCase\n", "from scheduler import chaos\n", "\"\"\"Tests creati...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 5, 0, 0, 5, 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...
[ "Expr'", "ImportFrom'", "Import'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "Expr'", "Assign'", "FunctionDef'", "Expr'", "Assign'", "Assign'", "Assign'", "Assign'", "Assign'", "Assign'", "FunctionDef'", "Assign'", "Assign'", "FunctionDef'", "Assign'", "Assign'", "Expr...
[ "from flask import Flask, render_template, redirect, request\n", "import pg, markdown, time\n", "from time import strftime, localtime\n", "import pg, markdown, time\n", "from wiki_linkify import wiki_linkify\n", "VAR_0 = Flask('WikiApp')\n", "VAR_1 = pg.DB(dbname='wiki_db_redo')\n", "@VAR_0.route('/')...
[ "from flask import Flask, render_template, redirect, request\n", "import pg, markdown, time\n", "from time import strftime, localtime\n", "import pg, markdown, time\n", "from wiki_linkify import wiki_linkify\n", "app = Flask('WikiApp')\n", "db = pg.DB(dbname='wiki_db_redo')\n", "@app.route('/')...\n",...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "ImportFrom'", "Import'", "ImportFrom'", "Import'", "ImportFrom'", "Assign'", "Assign'", "Condition", "Return'" ]
[ "def FUNC_8(VAR_6, VAR_9):...\n", "VAR_7 = VAR_6.headers.get('Cache-Control', '')\n", "VAR_20 = [directive.lower().strip() for directive in VAR_7.split(',')]\n", "return VAR_9 in VAR_20\n" ]
[ "def validate_cache_control_header(page, expected_directive):...\n", "header = page.headers.get('Cache-Control', '')\n", "directives = [directive.lower().strip() for directive in header.split(',')]\n", "return expected_directive in directives\n" ]
[ 0, 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Assign'", "Return'" ]
[ "@property...\n", "\"\"\"docstring\"\"\"\n", "return self._scm\n" ]
[ "@property...\n", "\"\"\"docstring\"\"\"\n", "return self._scm\n" ]
[ 0, 0, 0 ]
[ "Condition", "Docstring", "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 __init__(self, VAR_0, VAR_1, VAR_2, VAR_3, VAR_4, VAR_5, VAR_6):...\n", "self.vid = VAR_2\n", "self.path = VAR_4\n", "self.code = VAR_3\n", "self.path = VAR_4\n", "self.offset = VAR_5\n", "self.go_env = VAR_6\n", "super(CLASS_0, self).__init__(VAR_0, VAR_1)\n" ]
[ "def __init__(self, callback, uid, vid, code, path, offset, go_env):...\n", "self.vid = vid\n", "self.path = path\n", "self.code = code\n", "self.path = path\n", "self.offset = offset\n", "self.go_env = go_env\n", "super(Gocode, self).__init__(callback, uid)\n" ]
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Assign'", "Assign'", "Assign'", "Assign'", "Assign'", "Expr'" ]
[ "def FUNC_0(VAR_0, VAR_1=[], VAR_2=CreateStudentForm(), VAR_3=...\n", "VAR_5 = {'courses': Course.objects.all(), 'messages': VAR_1,\n 'create_student_form': VAR_2, 'create_course_form': VAR_3,\n 'register_student_form': VAR_4}\n", "return render(VAR_0, 'sio.html', VAR_5)\n" ]
[ "def make_view(request, messages=[], create_student_form=CreateStudentForm(),...\n", "context = {'courses': Course.objects.all(), 'messages': messages,\n 'create_student_form': create_student_form, 'create_course_form':\n create_course_form, 'register_student_form': register_student_form}\n", "return rend...
[ 0, 0, 0 ]
[ "Condition", "Assign'", "Return'" ]
[ "def FUNC_39(self, VAR_20):...\n", "for VAR_14 in self.list_properties.keys():\n", "if self.is_relation(VAR_14):\n", "if VAR_20 == self.get_related_model(VAR_14):\n", "return VAR_14\n" ]
[ "def get_related_fk(self, model):...\n", "for col_name in self.list_properties.keys():\n", "if self.is_relation(col_name):\n", "if model == self.get_related_model(col_name):\n", "return col_name\n" ]
[ 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "For", "Condition", "Condition", "Return'" ]
[ "def FUNC_8(VAR_7):...\n", "return render(VAR_7, 'index.html')\n" ]
[ "def index(request):...\n", "return render(request, 'index.html')\n" ]
[ 0, 0 ]
[ "FunctionDef'", "Return'" ]
[ "def FUNC_0(VAR_0):...\n", "return open(VAR_0).read().splitlines()\n" ]
[ "def _requires_from_file(filename):...\n", "return open(filename).read().splitlines()\n" ]
[ 0, 0 ]
[ "FunctionDef'", "Return'" ]
[ "\"\"\"string\"\"\"\n", "import json\n", "import re\n", "import time\n", "from twisted.web import server, resource\n", "from twisted.internet.task import LoopingCall\n", "from django.utils.functional import Promise\n", "from django.utils.encoding import force_unicode\n", "from django.conf import set...
[ "\"\"\"\nAJAX/COMET fallback webclient\n\nThe AJAX/COMET web client consists of two components running on\ntwisted and django. They are both a part of the Evennia website url\ntree (so the testing website might be located on\nhttp://localhost:4001/, whereas the webclient can be found on\nhttp://localhost:4001/webcl...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "Expr'", "Import'", "Import'", "Import'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "Assign'", "Assign'", "Assign'", "Assign'", "FunctionDef'", "Condition", "Return'", "Return'" ]
[ "from email.mime.multipart import MIMEMultipart\n", "from email.mime.text import MIMEText\n", "import json\n", "import logging\n", "from datetime import datetime\n", "import peewee\n", "import smtplib\n", "import tornado.web\n", "import db\n", "import handlers\n", "import settings\n", "def FUN...
[ "from email.mime.multipart import MIMEMultipart\n", "from email.mime.text import MIMEText\n", "import json\n", "import logging\n", "from datetime import datetime\n", "import peewee\n", "import smtplib\n", "import tornado.web\n", "import db\n", "import handlers\n", "import settings\n", "def bui...
[ 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'", "Import'", "Import'", "Import'", "Import'", "Import'", "Import'", "FunctionDef'", "Condition", "Assign'", "Assign'", "Assign'", "Assign'", "Assign'", "Condition", "Assign'", "Return'", "Condition", "Assign...
[ "def FUNC_6(self, VAR_59, VAR_60):...\n", "if self.remember:\n", "VAR_96 = '%s_%s' % (VAR_60, self.nav.get_param)\n", "if VAR_59 not in self.nav.options:\n", "VAR_97 = copy(VAR_101.user.sort_options) if VAR_101.user else {}\n", "VAR_59 = self.nav.default\n", "if self.remember and VAR_101.user_is_loggedi...
[ "def run(self, sort, where):...\n", "if self.remember:\n", "pref = '%s_%s' % (where, self.nav.get_param)\n", "if sort not in self.nav.options:\n", "user_prefs = copy(c.user.sort_options) if c.user else {}\n", "sort = self.nav.default\n", "if self.remember and c.user_is_loggedin and sort != user_pref:\n"...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Condition", "Assign'", "Condition", "Assign'", "Assign'", "Condition", "Assign'", "Assign'", "Return'", "Condition", "Assign'", "Assign'", "Assign'", "Expr'" ]
[ "def FUNC_5(self):...\n", "return shellutil.run('/sbin/chkconfig --add waagent', VAR_8=False)\n" ]
[ "def register_agent_service(self):...\n", "return shellutil.run('/sbin/chkconfig --add waagent', chk_err=False)\n" ]
[ 0, 0 ]
[ "FunctionDef'", "Return'" ]
[ "@view_config(route_name='note', permission='edit', request_method='POST',...\n", "FUNC_5(VAR_1.note, VAR_0)\n", "return HTTPFound(location=request.route_url('notes'))\n" ]
[ "@view_config(route_name='note', permission='edit', request_method='POST',...\n", "_save_or_create_note(context.note, request)\n", "return HTTPFound(location=request.route_url('notes'))\n" ]
[ 0, 0, 0 ]
[ "Condition", "Expr'", "Return'" ]
[ "def FUNC_9(self):...\n", "self.client.login(username=self.tester.username, password='password')\n", "remove_perm_from_user(self.tester, self.permission)\n", "VAR_4 = {'content_type': 'testplans.testplan', 'object_pk': self.plan.pk,\n 'field': 'is_active', 'value': 'False', 'value_type': 'bool'}\n", "VAR...
[ "def test_refuse_if_missing_permission(self):...\n", "self.client.login(username=self.tester.username, password='password')\n", "remove_perm_from_user(self.tester, self.permission)\n", "post_data = {'content_type': 'testplans.testplan', 'object_pk': self.plan.\n pk, 'field': 'is_active', 'value': 'False', ...
[ 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Expr'", "Expr'", "Assign'", "Assign'", "Expr'" ]