lines
listlengths
1
444
raw_lines
listlengths
1
444
label
listlengths
1
444
type
listlengths
1
444
[ "def FUNC_26(VAR_9, VAR_10):...\n", "VAR_28 = Keyword.search(VAR_10=term, order='text')\n", "if len(VAR_28) > 0:\n", "return [{'text': 'Previously Used', 'children': FUNC_25(VAR_28)}]\n", "return []\n" ]
[ "def _get_previously_used(model, term):...\n", "keywords = Keyword.search(term=term, order='text')\n", "if len(keywords) > 0:\n", "return [{'text': 'Previously Used', 'children': _select2_list(keywords)}]\n", "return []\n" ]
[ 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Condition", "Return'", "Return'" ]
[ "def FUNC_0(self, VAR_2, *VAR_3, **VAR_4):...\n", "\"\"\"docstring\"\"\"\n", "self.params = utils.Struct()\n", "self.read_params(VAR_5=BaseView._GET_PARAMETERS)\n", "self.env = utils.Struct()\n", "self.env.repo = VAR_4.get('repo', None)\n", "self.env.action = self.ACTION_ID\n", "self.env.config = conf...
[ "def setup(self, request, *args, **kwargs):...\n", "\"\"\"docstring\"\"\"\n", "self.params = utils.Struct()\n", "self.read_params(get_params=BaseView._GET_PARAMETERS)\n", "self.env = utils.Struct()\n", "self.env.repo = kwargs.get('repo', None)\n", "self.env.action = self.ACTION_ID\n", "self.env.config...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Assign'", "Expr'", "Assign'", "Assign'", "Assign'", "Assign'", "Assign'", "Assign'", "Assign'", "Condition", "Assign'", "Assign'", "Assign'", "Assign'", "Assign'" ]
[ "def FUNC_6(VAR_1, VAR_5=''):...\n", "\"\"\"docstring\"\"\"\n", "VAR_18 = VAR_17(VAR_1.name)\n", "return VAR_16.pop(VAR_18, None)\n" ]
[ "def token_delete(remote, token=''):...\n", "\"\"\"docstring\"\"\"\n", "session_key = token_session_key(remote.name)\n", "return session.pop(session_key, None)\n" ]
[ 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Assign'", "Return'" ]
[ "def FUNC_1(VAR_0):...\n", "VAR_12 = dict(VAR_10=path, children=[])\n", "for i in os.listdir(VAR_0):\n", "if FUNC_0(VAR_0 + '/' + i):\n", "return VAR_12\n", "VAR_12['children'].append(FUNC_1(VAR_0 + '/' + i))\n", "VAR_12['children'].append(dict(VAR_10=i))\n" ]
[ "def traverse(path):...\n", "n = dict(name=path, children=[])\n", "for i in os.listdir(path):\n", "if is_folder(path + '/' + i):\n", "return n\n", "n['children'].append(traverse(path + '/' + i))\n", "n['children'].append(dict(name=i))\n" ]
[ 0, 0, 0, 0, 0, 0, 1 ]
[ "FunctionDef'", "Assign'", "For", "Condition", "Return'", "Expr'", "Expr'" ]
[ "def FUNC_3():...\n", "def FUNC_12():...\n", "VAR_18 = requests.get(FUNC_2('healthy'))\n", "VAR_18.raise_for_status()\n", "return VAR_18.json()\n" ]
[ "def _CheckServerIsHealthyWithCache():...\n", "def _ServerIsHealthy():...\n", "response = requests.get(_BuildUri('healthy'))\n", "response.raise_for_status()\n", "return response.json()\n" ]
[ 0, 0, 7, 0, 0 ]
[ "FunctionDef'", "FunctionDef'", "Assign'", "Expr'", "Return'" ]
[ "@staticmethod...\n", "Group(VAR_8).send({'text': json.dumps(VAR_9)})\n" ]
[ "@staticmethod...\n", "Group(group_channel).send({'text': json.dumps(data)})\n" ]
[ 0, 0 ]
[ "Condition", "Expr'" ]
[ "@VAR_7.route('/delete-calendar', methods=['GET', 'POST'])...\n", "VAR_10 = FUNC_0()\n", "if not VAR_10:\n", "return 'Unauthorized'\n", "VAR_8, VAR_3 = FUNC_1()\n", "VAR_11 = request.form['calendar']\n", "calendar.deleteCalendar(VAR_8, VAR_11, VAR_6)\n", "VAR_12 = calendar.getCalendarList(VAR_8, VAR_6...
[ "@app.route('/delete-calendar', methods=['GET', 'POST'])...\n", "isAuthorized = isUserAuthorized()\n", "if not isAuthorized:\n", "return 'Unauthorized'\n", "username, password = getUsernameAndPassword()\n", "calId = request.form['calendar']\n", "calendar.deleteCalendar(username, calId, mysql)\n", "cal...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "Condition", "Assign'", "Condition", "Return'", "Assign'", "Assign'", "Expr'", "Assign'", "Return'" ]
[ "def FUNC_18(VAR_30, VAR_9, VAR_31, VAR_6, VAR_11, **VAR_12):...\n", "if VAR_31 is None:\n", "VAR_31 = VAR_23[VAR_9].urlstring\n", "VAR_52 = join(VAR_27, VAR_9)\n", "VAR_53 = os.path.realpath(VAR_52)\n", "if not VAR_53.startswith(VAR_26):\n", "VAR_54 = CLASS_1.create(VAR_9, VAR_31, VAR_52, VAR_6, VAR_11...
[ "def add_module(parent, name, uri, options, conf, **kwargs):...\n", "if uri is None:\n", "uri = modules[name].urlstring\n", "target_dir = join(subproject_dir, name)\n", "target_dir_rp = os.path.realpath(target_dir)\n", "if not target_dir_rp.startswith(source_dir_rp):\n", "newmodule = Subproject.create(n...
[ 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Condition", "Assign'", "Assign'", "Assign'", "Condition", "Assign'", "Assign'", "Condition", "Expr'", "Condition", "Condition", "Assign'", "Condition", "Expr'", "Expr'", "Assign'", "Assign'", "For", "Expr'", "Assign'", "Expr'", "Condition" ]
[ "def FUNC_3(self, VAR_8, VAR_3):...\n", "self._r_steps_.append((f'.{VAR_8}', VAR_3))\n" ]
[ "def log_getattr(self, attr_name, roamer):...\n", "self._r_steps_.append((f'.{attr_name}', roamer))\n" ]
[ 0, 1 ]
[ "FunctionDef'", "Expr'" ]
[ "def FUNC_11(self, VAR_16, VAR_18):...\n", "self._WriteHeader(VAR_18)\n", "self.wfile.write(f.read())\n", "f.close()\n" ]
[ "def _DoImage(self, full_path, mime_type):...\n", "self._WriteHeader(mime_type)\n", "self.wfile.write(f.read())\n", "f.close()\n" ]
[ 0, 0, 0, 0 ]
[ "FunctionDef'", "Expr'", "Expr'", "Expr'" ]
[ "def FUNC_1(self):...\n", "\"\"\"docstring\"\"\"\n", "self.session.cookies.load(ignore_discard=True)\n", "return False\n", "return True\n" ]
[ "def load_cookies(self):...\n", "\"\"\"docstring\"\"\"\n", "self.session.cookies.load(ignore_discard=True)\n", "return False\n", "return True\n" ]
[ 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Expr'", "Return'", "Return'" ]
[ "def __call__(self, *VAR_19, **VAR_5):...\n", "return CLASS_7(self.index, self.base_field, *VAR_19, **kwargs)\n" ]
[ "def __call__(self, *args, **kwargs):...\n", "return IndexTransform(self.index, self.base_field, *args, **kwargs)\n" ]
[ 0, 0 ]
[ "FunctionDef'", "Return'" ]
[ "def FUNC_0(self):...\n", "VAR_12 = self.cleaned_data.get('email')\n", "VAR_22 = VAR_12.split('@')[1].lower()\n", "if VAR_22 != 'canada.ca':\n", "VAR_26 = forms.ValidationError(format(ErrorMessages.invalid_email_domain %\n VAR_22))\n", "if get_user_model().objects.filter(username=email.lower()).exists(...
[ "def clean(self):...\n", "email = self.cleaned_data.get('email')\n", "email_domain = email.split('@')[1].lower()\n", "if email_domain != 'canada.ca':\n", "message = forms.ValidationError(format(ErrorMessages.invalid_email_domain %\n email_domain))\n", "if get_user_model().objects.filter(username=email....
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Assign'", "Condition", "Assign'", "Condition", "Expr'", "Assign'", "Return'", "Expr'" ]
[ "def __init__(self, VAR_40):...\n", "assert VAR_40 in (8, 16, 32, 64)\n", "self.size = VAR_40\n" ]
[ "def __init__(self, size):...\n", "assert size in (8, 16, 32, 64)\n", "self.size = size\n" ]
[ 0, 0, 0 ]
[ "FunctionDef'", "Assert'", "Assign'" ]
[ "def __repr__(self):...\n", "return f'<Roamer: {self._r_path_.description()} => {self._r_item_!r}>'\n" ]
[ "def __repr__(self):...\n", "return f'<Roamer: {self._r_path_.description()} => {self._r_item_!r}>'\n" ]
[ 0, 0 ]
[ "FunctionDef'", "Return'" ]
[ "def FUNC_33(self):...\n", "" ]
[ "def some_other_method(self):...\n", "" ]
[ 0, 0 ]
[ "FunctionDef'", "Condition" ]
[ "def FUNC_1(self):...\n", "self.assertTrue(self.client.login(username='autotest', password='password'))\n" ]
[ "def setUp(self):...\n", "self.assertTrue(self.client.login(username='autotest', password='password'))\n" ]
[ 0, 5 ]
[ "FunctionDef'", "Expr'" ]
[ "@wraps(VAR_7)...\n", "if VAR_12:\n", "return VAR_7(VAR_8[0], VAR_1, *VAR_8[1:], **kwargs)\n", "return VAR_7(VAR_1, *VAR_8, **kwargs)\n" ]
[ "@wraps(f)...\n", "if with_response:\n", "return f(args[0], remote, *args[1:], **kwargs)\n", "return f(remote, *args, **kwargs)\n" ]
[ 0, 0, 0, 0 ]
[ "Condition", "Condition", "Return'", "Return'" ]
[ "def FUNC_8(VAR_2, *VAR_3, **VAR_4):...\n", "self = VAR_11(**initkwargs)\n", "if hasattr(self, 'get') and not hasattr(self, 'head'):\n", "self.head = self.get\n", "self.request = VAR_2\n", "self.args = VAR_3\n", "self.kwargs = VAR_4\n", "self.setup(VAR_2, *VAR_3, **kwargs)\n", "return self.dispatch(...
[ "def view(request, *args, **kwargs):...\n", "self = cls(**initkwargs)\n", "if hasattr(self, 'get') and not hasattr(self, 'head'):\n", "self.head = self.get\n", "self.request = request\n", "self.args = args\n", "self.kwargs = kwargs\n", "self.setup(request, *args, **kwargs)\n", "return self.dispatch(...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Condition", "Assign'", "Assign'", "Assign'", "Assign'", "Expr'", "Return'" ]
[ "from __future__ import unicode_literals\n", "import frappe\n", "from frappe import _\n", "from frappe.website.website_generator import WebsiteGenerator\n", "from frappe.website.render import clear_cache\n", "from frappe.utils import today, cint, global_date_format, get_fullname, strip_html_tags, markdown...
[ "from __future__ import unicode_literals\n", "import frappe\n", "from frappe import _\n", "from frappe.website.website_generator import WebsiteGenerator\n", "from frappe.website.render import clear_cache\n", "from frappe.utils import today, cint, global_date_format, get_fullname, strip_html_tags, markdown...
[ 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0 ]
[ "ImportFrom'", "Import'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "Assign'", "FunctionDef'", "Condition", "Return'", "FunctionDef'", "Return'" ]
[ "def FUNC_16(self):...\n", "\"\"\"docstring\"\"\"\n", "if self.config['sos_opt_line']:\n", "VAR_28 = ['&', '|', '>', '<']\n", "if self.config['case_id']:\n", "if any(f in self.config['sos_opt_line'] for f in VAR_28):\n", "self.config['sos_cmd'] += ' --case-id=%s' % self.config['case_id']\n", "if self....
[ "def configure_sos_cmd(self):...\n", "\"\"\"docstring\"\"\"\n", "if self.config['sos_opt_line']:\n", "filt = ['&', '|', '>', '<']\n", "if self.config['case_id']:\n", "if any(f in self.config['sos_opt_line'] for f in filt):\n", "self.config['sos_cmd'] += ' --case-id=%s' % self.config['case_id']\n", "if...
[ 0, 0, 0, 2, 0, 0, 2, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 2, 0, 2, 0, 2, 0 ]
[ "FunctionDef'", "Docstring", "Condition", "Assign'", "Condition", "For", "AugAssign'", "Condition", "Expr'", "Assign'", "AugAssign'", "Condition", "Assign'", "Expr'", "AugAssign'", "Condition", "Return'", "AugAssign'", "Condition", "AugAssign'", "Condition", "AugAssign'", ...
[ "def FUNC_0(VAR_0, VAR_1, VAR_2, VAR_3):...\n", "VAR_9 = 'string'.format(FUNC_4(VAR_2, VAR_3))\n", "VAR_10 = {'limit': VAR_1, 'offset': int(VAR_0 * VAR_1)}\n", "VAR_11 = get_cursor()\n", "VAR_12 = VAR_11.execute(VAR_9, VAR_10)\n", "VAR_7 = FUNC_5(VAR_12)\n", "return {'rows': VAR_7, 'count': FUNC_1()}\n"...
[ "def get_books_by_page(page, pagesize, sort_col, sort_dir):...\n", "stmt = (\n \"\"\"\n select b.*,\n case when length(a.FirstName) > 0\n then (a.LastName || \", \" || a.FirstName)\n else a.LastName\n end as Author,\n s.name as Series from books as b\n ...
[ 0, 4, 4, 4, 4, 0, 4 ]
[ "FunctionDef'", "Assign'", "Assign'", "Assign'", "Assign'", "Assign'", "Return'" ]
[ "def FUNC_7(self):...\n", "self.assertFalse(DatabaseQuery('DocType').execute(filters={'name': ['in',\n None]}))\n", "self.assertTrue({'name': 'DocType'} in DatabaseQuery('DocType').execute(\n filters={'name': ['not in', None]}))\n", "for result in [{'name': 'DocType'}, {'name': 'DocField'}]:\n", "self...
[ "def test_in_not_in_filters(self):...\n", "self.assertFalse(DatabaseQuery('DocType').execute(filters={'name': ['in',\n None]}))\n", "self.assertTrue({'name': 'DocType'} in DatabaseQuery('DocType').execute(\n filters={'name': ['not in', None]}))\n", "for result in [{'name': 'DocType'}, {'name': 'DocField...
[ 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Expr'", "Expr'", "For", "Expr'", "For", "Expr'" ]
[ "def FUNC_17(self, VAR_10=True):...\n", "\"\"\"docstring\"\"\"\n", "VAR_36 = self.getTransitionMatrix(VAR_10)\n", "VAR_37 = _sparse.identity(self.vcount())\n", "return VAR_37 - VAR_36\n" ]
[ "def getLaplacianMatrix(self, includeSubPaths=True):...\n", "\"\"\"docstring\"\"\"\n", "T = self.getTransitionMatrix(includeSubPaths)\n", "I = _sparse.identity(self.vcount())\n", "return I - T\n" ]
[ 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Assign'", "Assign'", "Return'" ]
[ "@permission_required('tournament.add_game')...\n", "\"\"\"docstring\"\"\"\n", "VAR_7 = get_modifiable_tournament_or_404(VAR_3, VAR_2.user)\n", "VAR_8 = FUNC_0(VAR_7, VAR_1)\n", "if VAR_2.method == 'POST':\n", "VAR_30 = formset_factory(PowerAssignForm, VAR_24=BasePowerAssignFormset,\n extra=0)\n", "V...
[ "@permission_required('tournament.add_game')...\n", "\"\"\"docstring\"\"\"\n", "t = get_modifiable_tournament_or_404(tournament_id, request.user)\n", "r = get_round_or_404(t, round_num)\n", "if request.method == 'POST':\n", "PowerAssignFormset = formset_factory(PowerAssignForm, formset=\n BasePowerAssi...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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", "Docstring", "Assign'", "Assign'", "Condition", "Assign'", "Expr'", "Assign'", "Assign'", "Condition", "Assign'", "For", "Assign'", "Condition", "Assign'", "Expr'", "Return'", "Assign'", "Assign'", "Assign'", "Return'", "For", "For", "Assign'", "Assign'",...
[ "def FUNC_5(VAR_1, VAR_3):...\n", "if VAR_3 == None:\n", "VAR_3 = len(VAR_1)\n", "return (VAR_3 - len(VAR_1)) * ' ' + VAR_1\n" ]
[ "def print_right_just(output, length):...\n", "if length == None:\n", "length = len(output)\n", "return (length - len(output)) * ' ' + output\n" ]
[ 0, 0, 0, 0 ]
[ "FunctionDef'", "Condition", "Assign'", "Return'" ]
[ "@property...\n", "if self._snakefile is None:\n", "return os.path.abspath(os.path.join(self.workdir, 'Snakefile'))\n", "if not os.path.isabs(self._snakefile):\n", "return os.path.abspath(os.path.join(self.workflow.basedir, self._snakefile))\n", "return self._snakefile\n" ]
[ "@property...\n", "if self._snakefile is None:\n", "return os.path.abspath(os.path.join(self.workdir, 'Snakefile'))\n", "if not os.path.isabs(self._snakefile):\n", "return os.path.abspath(os.path.join(self.workflow.basedir, self._snakefile))\n", "return self._snakefile\n" ]
[ 0, 0, 0, 0, 0, 0 ]
[ "Condition", "Condition", "Return'", "Condition", "Return'", "Return'" ]
[ "def FUNC_14(VAR_32, VAR_5=False):...\n", "\"\"\"docstring\"\"\"\n", "VAR_52 = {}\n", "for VAR_81, info in VAR_32:\n", "VAR_52[VAR_81.output(VAR_5)] = len(info[0])\n", "return VAR_52\n" ]
[ "def _get_singlekws(skw_matches, spires=False):...\n", "\"\"\"docstring\"\"\"\n", "output = {}\n", "for single_keyword, info in skw_matches:\n", "output[single_keyword.output(spires)] = len(info[0])\n", "return output\n" ]
[ 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Assign'", "For", "Assign'", "Return'" ]
[ "@classmethod...\n", "return [lambda _req: VAR_11[0]]\n" ]
[ "@classmethod...\n", "return [lambda _req: mocked_ident[0]]\n" ]
[ 0, 0 ]
[ "Condition", "Return'" ]
[ "@property...\n", "\"\"\"docstring\"\"\"\n", "VAR_15 = set()\n", "for VAR_28, VAR_27 in zip(self.output, self.rule.output):\n", "if VAR_28 in self.dynamic_output:\n", "VAR_16 = defaultdict(list)\n", "for VAR_28, w in self.expand_dynamic(VAR_27, VAR_13=self.wildcards, VAR_14=\n", "for combination in VA...
[ "@property...\n", "\"\"\"docstring\"\"\"\n", "combinations = set()\n", "for f, f_ in zip(self.output, self.rule.output):\n", "if f in self.dynamic_output:\n", "wildcards = defaultdict(list)\n", "for f, w in self.expand_dynamic(f_, restriction=self.wildcards, omit_value=\n", "for combination in combina...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "Condition", "Docstring", "Assign'", "For", "Condition", "Assign'", "For", "For", "Expr'", "For", "Return'", "Expr'" ]
[ "def FUNC_8(self, VAR_17):...\n", "\"\"\"docstring\"\"\"\n", "VAR_29 = api.get_current_identity()\n", "if VAR_29.is_anonymous or VAR_29.is_bot:\n", "self.redirect(self.create_login_url(self.request.url))\n", "if model.is_empty_group(model.ADMIN_GROUP):\n", "return\n", "self.redirect_to('bootstrap')\n"...
[ "def authorization_error(self, error):...\n", "\"\"\"docstring\"\"\"\n", "ident = api.get_current_identity()\n", "if ident.is_anonymous or ident.is_bot:\n", "self.redirect(self.create_login_url(self.request.url))\n", "if model.is_empty_group(model.ADMIN_GROUP):\n", "return\n", "self.redirect_to('boots...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Assign'", "Condition", "Expr'", "Condition", "Return'", "Expr'", "Assign'", "Return'", "Expr'" ]
[ "def FUNC_2(self, VAR_5):...\n", "if self.table_view.verticalScrollBar().value(\n", "self.load_search_results(self.query)\n" ]
[ "def _on_list_scroll(self, event):...\n", "if self.table_view.verticalScrollBar().value(\n", "self.load_search_results(self.query)\n" ]
[ 0, 0, 0 ]
[ "FunctionDef'", "Condition", "Expr'" ]
[ "from __future__ import unicode_literals\n", "import frappe, json\n", "from frappe.utils import cstr, unique\n", "from frappe import _\n", "from six import string_types\n", "def FUNC_0(VAR_0):...\n", "VAR_12 = ['select', 'delete', 'drop', 'update', 'case', 'and', 'or', 'like']\n", "def FUNC_6():...\n"...
[ "from __future__ import unicode_literals\n", "import frappe, json\n", "from frappe.utils import cstr, unique\n", "from frappe import _\n", "from six import string_types\n", "def sanitize_searchfield(searchfield):...\n", "blacklisted_keywords = ['select', 'delete', 'drop', 'update', 'case', 'and',\n '...
[ 0, 0, 0, 0, 0, 0, 0, 0, 4, 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, 0, 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'", "Import'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "FunctionDef'", "Assign'", "FunctionDef'", "Expr'", "Condition", "Condition", "Condition", "Expr'", "Condition", "Expr'", "Expr'", "For", "Assign'", "Expr'", "For", "Condition", "Expr'", "Condition", ...
[ "def FUNC_7(VAR_3):...\n", "if os.path.exists(VAR_3):\n", "if os.path.isdir(VAR_3):\n", "os.remove(VAR_3)\n", "os.removedirs(VAR_3)\n" ]
[ "def remove(file):...\n", "if os.path.exists(file):\n", "if os.path.isdir(file):\n", "os.remove(file)\n", "os.removedirs(file)\n" ]
[ 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Condition", "Condition", "Expr'", "Expr'" ]
[ "\"\"\"\nPostgreSQL module for vishnu.\n\"\"\"\n", "import yaml, psycopg2\n", "def FUNC_0(VAR_0):...\n", "VAR_7 = psycopg2.connect(dbname=pg_connection['database'], user=\n pg_connection['user'], password=pg_connection['password'], host=\n pg_connection['host'])\n", "VAR_8 = VAR_7.cursor()\n", "VAR_...
[ "\"\"\"\nPostgreSQL module for vishnu.\n\"\"\"\n", "import yaml, psycopg2\n", "def create_tables(pg_connection):...\n", "conn = psycopg2.connect(dbname=pg_connection['database'], user=\n pg_connection['user'], password=pg_connection['password'], host=\n pg_connection['host'])\n", "cur = conn.cursor()\...
[ 0, 0, 0, 4, 4, 4, 0, 4, 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, 4, 4, 0, 0, 4 ]
[ "Expr'", "Import'", "FunctionDef'", "Assign'", "Assign'", "Expr'", "Expr'", "Expr'", "Expr'", "FunctionDef'", "Assign'", "Assign'", "Expr'", "Expr'", "Expr'", "Expr'", "FunctionDef'", "Assign'", "Assign'", "Expr'", "Expr'", "Expr'", "Expr'", "FunctionDef'", "Assign'",...
[ "@decorators.require_taskqueue('backend-default')...\n", "swarming.cancel_task(VAR_2, VAR_3)\n" ]
[ "@decorators.require_taskqueue('backend-default')...\n", "swarming.cancel_task(host, task_id)\n" ]
[ 0, 0 ]
[ "Condition", "Expr'" ]
[ "def FUNC_1(VAR_0, VAR_2, VAR_3):...\n", "\"\"\"docstring\"\"\"\n", "return FUNC_0(VAR_0, VAR_0, VAR_2, VAR_3)\n" ]
[ "def has_unexpected_keys(expected_keys, actual_keys, name):...\n", "\"\"\"docstring\"\"\"\n", "return has_unexpected_subset_keys(expected_keys, expected_keys, actual_keys,\n name)\n" ]
[ 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Return'" ]
[ "def __repr__(self):...\n", "return 'ColumnSet({})'.format(repr(self.columns))\n" ]
[ "def __repr__(self):...\n", "return 'ColumnSet({})'.format(repr(self.columns))\n" ]
[ 0, 0 ]
[ "FunctionDef'", "Return'" ]
[ "def FUNC_3(VAR_3, VAR_4=None):...\n", "VAR_0 = CLASS_0(VAR_3)\n", "VAR_0.rule = VAR_4\n", "return VAR_0\n" ]
[ "def IOFile(file, rule=None):...\n", "f = _IOFile(file)\n", "f.rule = rule\n", "return f\n" ]
[ 0, 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Assign'", "Return'" ]
[ "@eqlx.with_timeout...\n", "time.sleep(1)\n" ]
[ "@eqlx.with_timeout...\n", "time.sleep(1)\n" ]
[ 0, 0 ]
[ "Condition", "Expr'" ]
[ "def __str__(self):...\n", "return self.get_name()\n" ]
[ "def __str__(self):...\n", "return self.get_name()\n" ]
[ 0, 0 ]
[ "FunctionDef'", "Return'" ]
[ "def FUNC_39(self, VAR_16, VAR_25=None, VAR_26=True):...\n", "\"\"\"docstring\"\"\"\n", "VAR_47 = self.meta.get_field(VAR_16)\n", "if VAR_47 and VAR_47.get('__print_hide'):\n", "return True\n", "VAR_48 = 0\n", "if self.get(VAR_16) == 0 and not self.meta.istable:\n", "VAR_48 = (VAR_25 and VAR_25.print_...
[ "def is_print_hide(self, fieldname, df=None, for_print=True):...\n", "\"\"\"docstring\"\"\"\n", "meta_df = self.meta.get_field(fieldname)\n", "if meta_df and meta_df.get('__print_hide'):\n", "return True\n", "print_hide = 0\n", "if self.get(fieldname) == 0 and not self.meta.istable:\n", "print_hide = ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Assign'", "Condition", "Return'", "Assign'", "Condition", "Assign'", "Condition", "Condition", "Return'", "Assign'", "Condition", "Assign'" ]
[ "def FUNC_5(self, VAR_2, VAR_3):...\n", "VAR_6 = psutil.Popen(['ssh', VAR_2, 'ls', '-Fa', VAR_3.as_posix()], stdout=\n PIPE, stderr=PIPE)\n", "VAR_7, VAR_8 = VAR_6.communicate()\n", "logging.debug(VAR_8.decode(encoding='UTF-8'))\n", "return VAR_7.decode(encoding='UTF-8').split('\\n')\n" ]
[ "def remote_iterdir(self, host, path):...\n", "p = psutil.Popen(['ssh', host, 'ls', '-Fa', path.as_posix()], stdout=PIPE,\n stderr=PIPE)\n", "main_output, main_error = p.communicate()\n", "logging.debug(main_error.decode(encoding='UTF-8'))\n", "return main_output.decode(encoding='UTF-8').split('\\n')\n" ...
[ 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Assign'", "Expr'", "Return'" ]
[ "def FUNC_4(self, VAR_35):...\n", "\"\"\"docstring\"\"\"\n", "VAR_44 = defaultdict(dict)\n", "for VAR_87, join_fld, VAR_86, parent_fld in VAR_35:\n", "assert VAR_86 not in VAR_44[VAR_87\n ], 'Joins with multiple fields is not supported'\n", "return VAR_44\n", "VAR_44[VAR_87][VAR_86] = {self.PARENT_CO...
[ "def _parse_multi_path_mapping(self, paths):...\n", "\"\"\"docstring\"\"\"\n", "path_map = defaultdict(dict)\n", "for join_tbl, join_fld, parent_tbl, parent_fld in paths:\n", "assert parent_tbl not in path_map[join_tbl\n ], 'Joins with multiple fields is not supported'\n", "return path_map\n", "path_...
[ 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Assign'", "For", "Assert'", "Return'", "Assign'" ]
[ "def FUNC_14(self, VAR_9, VAR_10=None):...\n", "if isinstance(VAR_9, str) or callable(VAR_9):\n", "self.log.append(IOFile(VAR_9, VAR_16=self) if isinstance(VAR_9, str) else VAR_9\n )\n", "VAR_48 = len(self.log)\n", "if VAR_10:\n", "for VAR_51 in VAR_9:\n", "self.log.add_name(VAR_10)\n", "self._set_...
[ "def _set_log_item(self, item, name=None):...\n", "if isinstance(item, str) or callable(item):\n", "self.log.append(IOFile(item, rule=self) if isinstance(item, str) else item)\n", "start = len(self.log)\n", "if name:\n", "for i in item:\n", "self.log.add_name(name)\n", "self._set_log_item(i)\n", "if...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Condition", "Expr'", "Assign'", "Condition", "For", "Expr'", "Expr'", "Condition", "Expr'" ]
[ "import json\n", "from django.http import JsonResponse\n", "from django.shortcuts import redirect\n", "from django.views.decorators.csrf import csrf_exempt\n", "from django.views.decorators.http import require_http_methods\n", "from cuckoo.common.config import config\n", "from cuckoo.core.submit import ...
[ "import json\n", "from django.http import JsonResponse\n", "from django.shortcuts import redirect\n", "from django.views.decorators.csrf import csrf_exempt\n", "from django.views.decorators.http import require_http_methods\n", "from cuckoo.common.config import config\n", "from cuckoo.core.submit import ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "Import'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "Assign'", "FunctionDef'", "Assign'", "Condition", "Assign'", "Assign'", "Return'" ]
[ "@VAR_1.route('/saveAs')...\n", "if not 'email' in VAR_18 and not 'social' in VAR_18:\n", "if 'diagram' in request.args or VAR_5:\n", "return render_template('saveFile.html', VAR_5=diagram)\n", "return redirect('/login?return_url=saveAs&diagram=true')\n", "return redirect('/login?return_url=saveAs')\n" ]
[ "@app.route('/saveAs')...\n", "if not 'email' in session and not 'social' in session:\n", "if 'diagram' in request.args or diagram:\n", "return render_template('saveFile.html', diagram=diagram)\n", "return redirect('/login?return_url=saveAs&diagram=true')\n", "return redirect('/login?return_url=saveAs')\n...
[ 0, 0, 0, 0, 0, 0 ]
[ "Condition", "Condition", "Condition", "Return'", "Return'", "Return'" ]
[ "def FUNC_3(VAR_4):...\n", "VAR_11 = f\"string{VAR_4['rating']}\\n \"\n", "VAR_12 = create_connection()\n", "VAR_12.close()\n", "VAR_13 = VAR_12.cursor()\n", "VAR_13.execute(VAR_11)\n", "return int(VAR_13.fetchone()['total'])\n" ]
[ "def get_total_products(filters):...\n", "sql_query = f\"\"\"\n SELECT COUNT(p.id) AS total\n FROM products AS p\n WHERE p.rating >= {filters['rating']}\n \"\"\"\n", "connection = create_connection()\n", "connection.close()\n", "cursor = connection.cursor()\n", ...
[ 0, 4, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Assign'", "Expr'", "Assign'", "Expr'", "Return'" ]
[ "@tornado.web.authenticated...\n", "VAR_32 = VAR_51.settings['Output_dir']\n", "print('Received new settings')\n", "for VAR_41 in VAR_51.settings:\n", "VAR_43 = self.get_argument(VAR_41, None)\n", "VAR_51.writeServerSettings()\n", "if not VAR_43:\n", "self.doSettings(True)\n", "if type(VAR_51.settin...
[ "@tornado.web.authenticated...\n", "currentOutputDir = settings.settings['Output_dir']\n", "print('Received new settings')\n", "for option in settings.settings:\n", "newValue = self.get_argument(option, None)\n", "settings.writeServerSettings()\n", "if not newValue:\n", "self.doSettings(True)\n", "i...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "Condition", "Assign'", "Expr'", "For", "Assign'", "Expr'", "Condition", "Expr'", "Condition", "Condition", "Condition", "Assign'", "Expr'", "Assign'", "Condition", "Expr'", "Assign'", "Assign'" ]
[ "def FUNC_6(self, VAR_11, VAR_52=None):...\n", "if VAR_52 is None and not isinstance(VAR_101.site, FakeSubreddit):\n", "VAR_52 = VAR_101.site\n", "if VAR_52:\n", "if not VAR_11:\n", "VAR_52 = None\n", "VAR_52 = Subreddit._by_name(VAR_52)\n", "VAR_101.errors.add(errors.SUBREDDIT_NOEXIST)\n", "return ...
[ "def run(self, url, sr=None):...\n", "if sr is None and not isinstance(c.site, FakeSubreddit):\n", "sr = c.site\n", "if sr:\n", "if not url:\n", "sr = None\n", "sr = Subreddit._by_name(sr)\n", "c.errors.add(errors.SUBREDDIT_NOEXIST)\n", "return self.error(errors.NO_URL)\n", "url = utils.sanitize_u...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Condition", "Assign'", "Condition", "Condition", "Assign'", "Assign'", "Expr'", "Return'", "Assign'", "Assign'", "Condition", "Return'", "Condition", "Assign'", "Return'", "Return'", "Expr'", "Return'" ]
[ "@utils.synchronized('3par', external=True)...\n", "\"\"\"docstring\"\"\"\n", "self.common.client_login()\n", "VAR_23 = self.common.create_volume_from_snapshot(VAR_7, VAR_9)\n", "self.common.client_logout()\n", "return {'metadata': VAR_23}\n" ]
[ "@utils.synchronized('3par', external=True)...\n", "\"\"\"docstring\"\"\"\n", "self.common.client_login()\n", "metadata = self.common.create_volume_from_snapshot(volume, snapshot)\n", "self.common.client_logout()\n", "return {'metadata': metadata}\n" ]
[ 0, 0, 0, 0, 0, 0 ]
[ "Condition", "Docstring", "Expr'", "Assign'", "Expr'", "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_32(self, VAR_15):...\n", "for file_col in self.get_file_column_list():\n", "if self.is_file(file_col):\n", "for file_col in self.get_image_column_list():\n", "if getattr(VAR_15, file_col):\n", "if self.is_image(file_col):\n", "VAR_28 = FileManager()\n", "if getattr(VAR_15, file_col):\n", "...
[ "def _delete_files(self, item):...\n", "for file_col in self.get_file_column_list():\n", "if self.is_file(file_col):\n", "for file_col in self.get_image_column_list():\n", "if getattr(item, file_col):\n", "if self.is_image(file_col):\n", "fm = FileManager()\n", "if getattr(item, file_col):\n", "fm.d...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "For", "Condition", "For", "Condition", "Condition", "Assign'", "Condition", "Expr'", "Assign'", "Expr'" ]
[ "def FUNC_1(VAR_14, VAR_15, VAR_16=VAR_9):...\n", "return \"\"\"\n CREATE TABLE IF NOT EXISTS %(name)s (%(columns)s) ENGINE = %(engine)s\"\"\" % {\n 'columns': VAR_16.for_schema(), 'engine': VAR_15, 'name': VAR_14}\n" ]
[ "def get_table_definition(name, engine, columns=ALL_COLUMNS):...\n", "return \"\"\"\n CREATE TABLE IF NOT EXISTS %(name)s (%(columns)s) ENGINE = %(engine)s\"\"\" % {\n 'columns': columns.for_schema(), 'engine': engine, 'name': name}\n" ]
[ 0, 0 ]
[ "FunctionDef'", "Return'" ]
[ "@VAR_0.route('/users/<id>/destroy')...\n", "VAR_5 = VAR_1\n", "VAR_2 = connectToMySQL('users_db')\n", "VAR_6 = 'DELETE from users WHERE id = ' + VAR_5 + ';'\n", "VAR_7 = VAR_2.query_db(VAR_6)\n", "return redirect('/users')\n" ]
[ "@app.route('/users/<id>/destroy')...\n", "user_id = id\n", "mysql = connectToMySQL('users_db')\n", "query = 'DELETE from users WHERE id = ' + user_id + ';'\n", "deleted_user = mysql.query_db(query)\n", "return redirect('/users')\n" ]
[ 0, 0, 0, 4, 4, 0 ]
[ "Condition", "Assign'", "Assign'", "Assign'", "Assign'", "Return'" ]
[ "@VAR_8.command()...\n", "\"\"\"docstring\"\"\"\n", "if FUNC_0(VAR_9):\n", "if VAR_10 in VAR_6:\n", "await VAR_9.send(VAR_5)\n", "if len(VAR_11) < 100:\n", "await VAR_9.send(\n 'Error: The quest tier you specified is invalid. The valid quest tiers are: '\n + ', '.join(VAR_6) + '. You specified: '...
[ "@bot.command()...\n", "\"\"\"docstring\"\"\"\n", "if whitelist_check(ctx):\n", "if quest_tier in quest_tier_whitelist:\n", "await ctx.send(permission_error_message)\n", "if len(desc) < 100:\n", "await ctx.send(\n 'Error: The quest tier you specified is invalid. The valid quest tiers are: '\n + '...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "Condition", "Docstring", "Condition", "Condition", "Expr'", "Condition", "Expr'", "Assign'", "Expr'", "Assign'", "Expr'", "Expr'", "Expr'" ]
[ "def FUNC_11(self, VAR_17):...\n", "\"\"\"docstring\"\"\"\n", "VAR_44 = 'confirmation', 'paging', 'events', 'formatoutput'\n", "VAR_0.error(_('Failed to setup the Dell EqualLogic driver'))\n", "for feature in VAR_44:\n", "self._eql_execute('cli-settings', feature, 'off')\n", "for line in self._eql_execu...
[ "def do_setup(self, context):...\n", "\"\"\"docstring\"\"\"\n", "disabled_cli_features = 'confirmation', 'paging', 'events', 'formatoutput'\n", "LOG.error(_('Failed to setup the Dell EqualLogic driver'))\n", "for feature in disabled_cli_features:\n", "self._eql_execute('cli-settings', feature, 'off')\n", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Assign'", "Expr'", "For", "Expr'", "For", "Condition", "Expr'", "Assign'", "Assign'" ]
[ "def FUNC_13(self, VAR_22):...\n", "logging.warning(\"\"\"Authorization error.\n%s\nPeer: %s\nIP: %s\"\"\", VAR_22, api.\n get_peer_identity().to_bytes(), self.request.remote_addr)\n", "self.abort_with_error(403, text=str(error))\n" ]
[ "def authorization_error(self, error):...\n", "logging.warning(\"\"\"Authorization error.\n%s\nPeer: %s\nIP: %s\"\"\", error, api.\n get_peer_identity().to_bytes(), self.request.remote_addr)\n", "self.abort_with_error(403, text=str(error))\n" ]
[ 0, 0, 0 ]
[ "FunctionDef'", "Expr'", "Expr'" ]
[ "def FUNC_9(self):...\n", "\"\"\"docstring\"\"\"\n", "print(\"\"\"\nThe following cluster options are available:\n\"\"\")\n", "print('{:15} {:15} {:<10} {:10} {:<}'.format('Cluster', 'Option Name',\n 'Type', 'Default', 'Description'))\n", "for VAR_39 in self.clusters:\n", "for opt in self.clusters[VAR_...
[ "def list_options(self):...\n", "\"\"\"docstring\"\"\"\n", "print(\"\"\"\nThe following cluster options are available:\n\"\"\")\n", "print('{:15} {:15} {:<10} {:10} {:<}'.format('Cluster', 'Option Name',\n 'Type', 'Default', 'Description'))\n", "for cluster in self.clusters:\n", "for opt in self.cluste...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Expr'", "Expr'", "For", "For", "Expr'", "Assign'", "Expr'" ]
[ "def FUNC_0(self):...\n", "return [c.to_map() for c in self.commands]\n" ]
[ "def to_map(self):...\n", "return [c.to_map() for c in self.commands]\n" ]
[ 0, 0 ]
[ "FunctionDef'", "Return'" ]
[ "def FUNC_10(VAR_9, VAR_10, VAR_11=None):...\n", "\"\"\"docstring\"\"\"\n", "VAR_15 = [iter(VAR_9)] * VAR_10\n", "return izip_longest(*VAR_15, VAR_11=fillvalue)\n" ]
[ "def grouper(iterable, n, fillvalue=None):...\n", "\"\"\"docstring\"\"\"\n", "args = [iter(iterable)] * n\n", "return izip_longest(*args, fillvalue=fillvalue)\n" ]
[ 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Assign'", "Return'" ]
[ "import asyncio, base64, bcrypt, time, string\n", "from aiohttp import web\n", "from cryptography import fernet\n", "from aiohttp_session import setup as session_setup, get_session, session_middleware\n", "from aiohttp_session.cookie_storage import EncryptedCookieStorage\n", "from psycopg2 import Integrit...
[ "import asyncio, base64, bcrypt, time, string\n", "from aiohttp import web\n", "from cryptography import fernet\n", "from aiohttp_session import setup as session_setup, get_session, session_middleware\n", "from aiohttp_session.cookie_storage import EncryptedCookieStorage\n", "from psycopg2 import Integrit...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "Import'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "Import'", "Import'", "Assign'", "FunctionDef'", "AsyncFunctionDef'", "Assign'", "Condition", "Assign'", "Assign'", "Assign'", "Assign'", "Condition", "Assign'", "Assign'", "Return'" ]
[ "def FUNC_9(self, VAR_10):...\n", "if not FUNC_1(self.view):\n", "FUNC_2(self.view)\n", "VAR_2 = datetime.datetime.now().strftime('<%a., %b. %d, %Y, %I:%M %p>')\n", "VAR_8 = self.view.file_name().split('/')[-1]\n", "self.view.run_command('move_to', {'to': 'eof'})\n", "self.view.run_command('insert_snipp...
[ "def run(self, edit):...\n", "if not has_meta(self.view):\n", "add_separator(self.view)\n", "timestamp = datetime.datetime.now().strftime('<%a., %b. %d, %Y, %I:%M %p>')\n", "filename = self.view.file_name().split('/')[-1]\n", "self.view.run_command('move_to', {'to': 'eof'})\n", "self.view.run_command('i...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Condition", "Expr'", "Assign'", "Assign'", "Expr'", "Expr'", "Expr'", "Expr'" ]
[ "def FUNC_3(self, VAR_5):...\n", "\"\"\"docstring\"\"\"\n", "if 'category_discovery' not in VAR_5.render_flags:\n", "VAR_9 = HeaderRenderer.category_headers(VAR_5)\n", "return self._json_obj(VAR_5)\n", "[self.headers.append(('Category', h)) for h in VAR_9.headers()]\n" ]
[ "def _render_single_obj(self, obj):...\n", "\"\"\"docstring\"\"\"\n", "if 'category_discovery' not in obj.render_flags:\n", "category_headers = HeaderRenderer.category_headers(obj)\n", "return self._json_obj(obj)\n", "[self.headers.append(('Category', h)) for h in category_headers.headers()]\n" ]
[ 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Condition", "Assign'", "Return'", "Expr'" ]
[ "def FUNC_16(**VAR_19):...\n", "VAR_35 = FUNC_8('users/add', VAR_16=kwargs)\n", "VAR_46 = re.search('/user/([0-9]+)$', VAR_35.url)\n", "if VAR_46:\n", "VAR_10 = int(VAR_46.group(1))\n", "VAR_19['user_id'] = VAR_10\n", "VAR_3[VAR_10] = VAR_19\n", "VAR_35 = FUNC_8('contest/' + VAR_19['contest_id'] + '/u...
[ "def add_user(**kwargs):...\n", "r = admin_req('users/add', args=kwargs)\n", "g = re.search('/user/([0-9]+)$', r.url)\n", "if g:\n", "user_id = int(g.group(1))\n", "kwargs['user_id'] = user_id\n", "created_users[user_id] = kwargs\n", "r = admin_req('contest/' + kwargs['contest_id'] + '/users/add', arg...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Assign'", "Condition", "Assign'", "Assign'", "Assign'", "Assign'", "Assign'", "Condition", "Return'" ]
[ "def FUNC_27(VAR_32, VAR_3):...\n", "self.assertEqual('https://localhost:1/swarming/api/v1/bot/bot_code/123', VAR_3)\n", "self.assertEqual(VAR_31, VAR_32)\n", "z.writestr('__main__.py', 'print(\"hi\")')\n", "return True\n" ]
[ "def url_retrieve(f, url):...\n", "self.assertEqual('https://localhost:1/swarming/api/v1/bot/bot_code/123', url)\n", "self.assertEqual(new_zip, f)\n", "z.writestr('__main__.py', 'print(\"hi\")')\n", "return True\n" ]
[ 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Expr'", "Expr'", "Expr'", "Return'" ]
[ "def FUNC_6(self, VAR_25):...\n", "VAR_77 = []\n", "if VAR_25:\n", "VAR_77 = [VAR_3 for VAR_3 in self.comma_sep.split(VAR_25) if VAR_3 ==\n _force_ascii(VAR_3)]\n", "return VAR_77\n" ]
[ "def run(self, tag_field):...\n", "tags = []\n", "if tag_field:\n", "tags = [x for x in self.comma_sep.split(tag_field) if x == _force_ascii(x)]\n", "return tags\n" ]
[ 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Condition", "Assign'", "Return'" ]
[ "def FUNC_27(self, VAR_75):...\n", "def FUNC_39(VAR_101):...\n", "VAR_101.threads = VAR_75\n", "return VAR_101\n" ]
[ "def threads(self, threads):...\n", "def decorate(ruleinfo):...\n", "ruleinfo.threads = threads\n", "return ruleinfo\n" ]
[ 0, 0, 0, 0 ]
[ "FunctionDef'", "FunctionDef'", "Assign'", "Return'" ]
[ "@VAR_1.route(VAR_0 + '/create', methods=['GET'])...\n", "return ujson.dumps({'success': True})\n" ]
[ "@post.route(BASE_URL + '/create', methods=['GET'])...\n", "return ujson.dumps({'success': True})\n" ]
[ 0, 0 ]
[ "Condition", "Return'" ]
[ "async def FUNC_0(VAR_0, VAR_1):...\n", "await FUNC_2(VAR_0, VAR_1)\n" ]
[ "async def respond(bot, message):...\n", "await user_add(bot, message)\n" ]
[ 0, 0 ]
[ "AsyncFunctionDef'", "Expr'" ]
[ "def FUNC_3(self, VAR_6):...\n", "self.common = self._init_common()\n", "self._check_flags()\n", "self.iscsi_ips = {}\n", "VAR_21 = {}\n", "if len(self.configuration.hp3par_iscsi_ips) > 0:\n", "for VAR_42 in self.configuration.hp3par_iscsi_ips:\n", "if self.configuration.iscsi_ip_address not in VAR_21...
[ "def do_setup(self, context):...\n", "self.common = self._init_common()\n", "self._check_flags()\n", "self.iscsi_ips = {}\n", "temp_iscsi_ip = {}\n", "if len(self.configuration.hp3par_iscsi_ips) > 0:\n", "for ip_addr in self.configuration.hp3par_iscsi_ips:\n", "if self.configuration.iscsi_ip_address n...
[ 0, 0, 0, 0, 0, 0, 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'", "Assign'", "Condition", "For", "Condition", "Assign'", "Assign'", "Assign'", "Condition", "Assign'", "For", "Assign'", "Condition", "Assign'", "Condition", "Condition", "Assign'", "Assign'", "Assign'", "Condition", "Expr'",...
[ "def FUNC_1(self):...\n", "VAR_12 = self.cleaned_data.get('email').lower()\n", "VAR_16 = self.cleaned_data.get('password')\n", "return authenticate(username=email, VAR_16=password)\n" ]
[ "def get_user(self):...\n", "email = self.cleaned_data.get('email').lower()\n", "password = self.cleaned_data.get('password')\n", "return authenticate(username=email, password=password)\n" ]
[ 0, 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Assign'", "Return'" ]
[ "def FUNC_37(self):...\n", "\"\"\"docstring\"\"\"\n", "VAR_2 = {'SEVERITY': {'LOW': 1, 'MEDIUM': 10, 'HIGH': 7}, 'CONFIDENCE': {\n 'LOW': 0, 'MEDIUM': 11, 'HIGH': 7}}\n", "self.check_example('ssl-insecure-version.py', VAR_2)\n" ]
[ "def test_ssl_insecure_version(self):...\n", "\"\"\"docstring\"\"\"\n", "expect = {'SEVERITY': {'LOW': 1, 'MEDIUM': 10, 'HIGH': 7}, 'CONFIDENCE': {\n 'LOW': 0, 'MEDIUM': 11, 'HIGH': 7}}\n", "self.check_example('ssl-insecure-version.py', expect)\n" ]
[ 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Assign'", "Expr'" ]
[ "def FUNC_14(self):...\n", "\"\"\"docstring\"\"\"\n", "VAR_11 = 3\n", "VAR_10 = 'string'.format(repo_dir=REPO_DIR, shard_str='/shard_' + self.\n shard if self.shard else '', procs=process_count)\n", "VAR_7 = BokChoyTestSuite('', num_processes=process_count)\n", "self.assertEqual(BokChoyTestSuite.verbos...
[ "def test_verbosity_settings_3_processes(self):...\n", "\"\"\"docstring\"\"\"\n", "process_count = 3\n", "expected_verbosity_string = (\n '--with-xunitmp --xunitmp-file={repo_dir}/reports/bok_choy{shard_str}/xunit.xml --processes={procs} --no-color --process-timeout=1200'\n .format(repo_dir=REPO_DIR, sh...
[ 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Assign'", "Assign'", "Assign'", "Expr'" ]
[ "def FUNC_29(self, VAR_15):...\n", "" ]
[ "def delete(self, item):...\n", "" ]
[ 0, 0 ]
[ "FunctionDef'", "Condition" ]
[ "def FUNC_4(VAR_5, VAR_1: 'projects.Project'):...\n", "\"\"\"docstring\"\"\"\n", "VAR_15 = VAR_5.filename\n", "if VAR_15.startswith(VAR_1.source_directory):\n", "VAR_15 = VAR_15[len(VAR_1.source_directory) + 1:]\n", "VAR_16 = VAR_5.name\n", "if VAR_16 == '<module>':\n", "VAR_16 = None\n", "return di...
[ "def format_stack_frame(stack_frame, project: 'projects.Project'):...\n", "\"\"\"docstring\"\"\"\n", "filename = stack_frame.filename\n", "if filename.startswith(project.source_directory):\n", "filename = filename[len(project.source_directory) + 1:]\n", "location = stack_frame.name\n", "if location == '...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Assign'", "Condition", "Assign'", "Assign'", "Condition", "Assign'", "Return'" ]
[ "def FUNC_0():...\n", "register_parser(VAR_0, CLASS_0)\n", "register_renderer(VAR_0, CLASS_1)\n" ]
[ "def register():...\n", "register_parser(CONTENT_TYPE, JSONParser)\n", "register_renderer(CONTENT_TYPE, JSONRenderer)\n" ]
[ 0, 0, 0 ]
[ "FunctionDef'", "Expr'", "Expr'" ]
[ "@FUNC_7...\n", "\"\"\"docstring\"\"\"\n", "FUNC_1(VAR_1, VAR_2)\n", "return redirect('/')\n" ]
[ "@oauth_error_handler...\n", "\"\"\"docstring\"\"\"\n", "response_token_setter(remote, resp)\n", "return redirect('/')\n" ]
[ 0, 0, 0, 0 ]
[ "Condition", "Docstring", "Expr'", "Return'" ]
[ "@VAR_0.route('/tables')...\n", "return render_template('tables.html', User=User.query.all())\n" ]
[ "@app.route('/tables')...\n", "return render_template('tables.html', User=User.query.all())\n" ]
[ 0, 4 ]
[ "Condition", "Return'" ]
[ "def FUNC_0():...\n", "return {'header': {'to': ['to@pixelated.org', 'anotherto@pixelated.org'],\n 'cc': ['cc@pixelated.org', 'anothercc@pixelated.org'], 'bcc': [\n 'bcc@pixelated.org', 'anotherbcc@pixelated.org'], 'subject': 'Subject'},\n 'body': 'Body', 'ident': '', 'tags': []}\n" ]
[ "def mail_dict():...\n", "return {'header': {'to': ['to@pixelated.org', 'anotherto@pixelated.org'],\n 'cc': ['cc@pixelated.org', 'anothercc@pixelated.org'], 'bcc': [\n 'bcc@pixelated.org', 'anotherbcc@pixelated.org'], 'subject': 'Subject'},\n 'body': 'Body', 'ident': '', 'tags': []}\n" ]
[ 0, 0 ]
[ "FunctionDef'", "Return'" ]
[ "import argparse\n", "import os\n", "import sys\n", "from time import sleep\n", "import kijiji_api\n", "import generate_inf_file as generator\n", "if sys.version_info < (3, 0):\n", "def FUNC_0():...\n", "VAR_3 = argparse.ArgumentParser(description='Post ads on Kijiji')\n", "VAR_3.add_argument('-u'...
[ "import argparse\n", "import os\n", "import sys\n", "from time import sleep\n", "import kijiji_api\n", "import generate_inf_file as generator\n", "if sys.version_info < (3, 0):\n", "def main():...\n", "parser = argparse.ArgumentParser(description='Post ads on Kijiji')\n", "parser.add_argument('-u'...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "Import'", "Import'", "Import'", "ImportFrom'", "Import'", "Import'", "Condition", "FunctionDef'", "Assign'", "Expr'", "Expr'", "Assign'", "Assign'", "Expr'", "Expr'", "Assign'", "Expr'", "Expr'", "Assign'", "Expr'", "Expr'", "Assign'", "Expr'", "Assign'", "Expr'", ...
[ "@property...\n", "\"\"\"docstring\"\"\"\n", "for attr in self._attribute_iterator():\n", "if attr.kind != RESOURCE_ATTRIBUTE_KINDS.COLLECTION:\n", "VAR_35 = self._get_proxied_attribute_value(attr)\n", "yield attr, VAR_35\n" ]
[ "@property...\n", "\"\"\"docstring\"\"\"\n", "for attr in self._attribute_iterator():\n", "if attr.kind != RESOURCE_ATTRIBUTE_KINDS.COLLECTION:\n", "attr_val = self._get_proxied_attribute_value(attr)\n", "yield attr, attr_val\n" ]
[ 0, 0, 0, 0, 0, 0 ]
[ "Condition", "Docstring", "For", "Condition", "Assign'", "Expr'" ]
[ "def FUNC_0(VAR_0):...\n", "VAR_2 = find_repositories(VAR_0.path)\n", "if VAR_0.repos:\n", "VAR_8 = dict((VAR_12.path, VAR_12) for VAR_12 in VAR_2)\n", "VAR_3 = {}\n", "for k in sorted(VAR_8.keys()):\n", "for VAR_12 in VAR_2:\n", "VAR_12 = VAR_8[k]\n", "VAR_9 = VAR_0.get_command_line(VAR_12)\n", "...
[ "def execute(command):...\n", "clients = find_repositories(command.path)\n", "if command.repos:\n", "ordered_clients = dict((client.path, client) for client in clients)\n", "jobs = {}\n", "for k in sorted(ordered_clients.keys()):\n", "for client in clients:\n", "client = ordered_clients[k]\n", "cmd ...
[ 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Condition", "Assign'", "Assign'", "For", "For", "Assign'", "Assign'", "Assign'", "Expr'", "Assign'", "Condition", "Condition", "Condition", "Assign'", "Assign'", "Condition", "Assign'", "Condition", "Expr'", "Assign'", "Expr'", "Expr'", "As...
[ "def FUNC_9(self, VAR_12, VAR_13):...\n", "VAR_21 = queryAdapter(VAR_12, IHttpRestSubViewFactory)\n", "if VAR_21:\n", "VAR_25 = VAR_21.resolve(VAR_13)\n", "VAR_25 = queryAdapter(VAR_12, IHttpRestView)\n", "if not VAR_25:\n", "return VAR_25\n" ]
[ "def find_view(self, obj, unresolved_path):...\n", "sub_view_factory = queryAdapter(obj, IHttpRestSubViewFactory)\n", "if sub_view_factory:\n", "view = sub_view_factory.resolve(unresolved_path)\n", "view = queryAdapter(obj, IHttpRestView)\n", "if not view:\n", "return view\n" ]
[ 0, 1, 1, 1, 0, 1, 0 ]
[ "FunctionDef'", "Assign'", "Condition", "Assign'", "Assign'", "Condition", "Return'" ]
[ "def FUNC_4(self):...\n", "VAR_14 = 'select comment from post where userid=%d order by date;'\n", "VAR_15 = sql.queryDB(self.conn, VAR_14)\n", "return VAR_15\n" ]
[ "def getAllPosts(self):...\n", "sqlText = 'select comment from post where userid=%d order by date;'\n", "allposts = sql.queryDB(self.conn, sqlText)\n", "return allposts\n" ]
[ 0, 4, 4, 0 ]
[ "FunctionDef'", "Assign'", "Assign'", "Return'" ]
[ "def FUNC_1(self, VAR_0, *VAR_2, **VAR_3):...\n", "VAR_11 = ManyURLSForm()\n", "return render(VAR_0, 'short-many-urls.html', {'form': VAR_11})\n" ]
[ "def get(self, request, *args, **kwargs):...\n", "form = ManyURLSForm()\n", "return render(request, 'short-many-urls.html', {'form': form})\n" ]
[ 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Return'" ]
[ "@classmethod...\n", "\"\"\"docstring\"\"\"\n", "return CLASS_0.select(lambda g: g.metadata_type == REGULAR_TORRENT and g.\n status != LEGACY_ENTRY).random(VAR_19)\n" ]
[ "@classmethod...\n", "\"\"\"docstring\"\"\"\n", "return TorrentMetadata.select(lambda g: g.metadata_type == REGULAR_TORRENT and\n g.status != LEGACY_ENTRY).random(limit)\n" ]
[ 0, 0, 0 ]
[ "Condition", "Docstring", "Return'" ]
[ "def FUNC_10(VAR_7):...\n", "\"\"\"docstring\"\"\"\n", "@wraps(VAR_7)...\n", "if VAR_1.is_expired():\n", "return VAR_1.redirect_to_goodbye()\n", "if VAR_1.is_authenticated():\n", "return VAR_7(*VAR_9, **kwargs)\n", "return VAR_1.redirect_to_goodbye()\n" ]
[ "def redirect_to_logout_if_no_auth(f):...\n", "\"\"\"docstring\"\"\"\n", "@wraps(f)...\n", "if user_mod.is_expired():\n", "return user_mod.redirect_to_goodbye()\n", "if user_mod.is_authenticated():\n", "return f(*args, **kwargs)\n", "return user_mod.redirect_to_goodbye()\n" ]
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Condition", "Condition", "Return'", "Condition", "Return'", "Return'" ]
[ "def FUNC_23(self, VAR_14):...\n", "" ]
[ "def is_unique(self, col_name):...\n", "" ]
[ 0, 0 ]
[ "FunctionDef'", "Condition" ]
[ "__author__ = 'Johannes Köster'\n", "__copyright__ = 'Copyright 2015, Johannes Köster'\n", "__email__ = 'koester@jimmy.harvard.edu'\n", "__license__ = 'MIT'\n", "import os\n", "import re\n", "import stat\n", "import time\n", "import json\n", "from itertools import product, chain\n", "from collec...
[ "__author__ = 'Johannes Köster'\n", "__copyright__ = 'Copyright 2015, Johannes Köster'\n", "__email__ = 'koester@jimmy.harvard.edu'\n", "__license__ = 'MIT'\n", "import os\n", "import re\n", "import stat\n", "import time\n", "import json\n", "from itertools import product, chain\n", "from collec...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0 ]
[ "Assign'", "Assign'", "Assign'", "Assign'", "Import'", "Import'", "Import'", "Import'", "Import'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "FunctionDef'", "Return'" ]
[ "@detail_route(methods=['post'])...\n", "return self.set_pending_action(pending_actions.REMOVE, *VAR_13, VAR_12=(\n 'delete_project',), **kwargs)\n" ]
[ "@detail_route(methods=['post'])...\n", "return self.set_pending_action(pending_actions.REMOVE, *args, perms=(\n 'delete_project',), **kwargs)\n" ]
[ 0, 0 ]
[ "Condition", "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_25(self, VAR_6):...\n", "\"\"\"docstring\"\"\"\n", "if not VAR_6.local:\n", "self.log_error('Error running sosreport: %s' % err)\n", "VAR_6.sosreport()\n", "if not self.config['no_local']:\n", "if VAR_6.retrieved:\n", "VAR_6.sosreport()\n", "self.retrieved += 1\n" ]
[ "def _collect(self, client):...\n", "\"\"\"docstring\"\"\"\n", "if not client.local:\n", "self.log_error('Error running sosreport: %s' % err)\n", "client.sosreport()\n", "if not self.config['no_local']:\n", "if client.retrieved:\n", "client.sosreport()\n", "self.retrieved += 1\n" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Condition", "Expr'", "Expr'", "Condition", "Condition", "Expr'", "AugAssign'" ]
[ "def FUNC_1(self):...\n", "VAR_5 = database.users.get_current_user()\n", "if VAR_5:\n", "VAR_3 = database.Item()\n", "self.redirect('/')\n", "VAR_3.title = cgi.escape(self.request.get('title'))\n", "VAR_3.description = cgi.escape(self.request.get('description'))\n", "VAR_3.price = '%.2f' % float(cgi.e...
[ "def post(self):...\n", "user = database.users.get_current_user()\n", "if user:\n", "item = database.Item()\n", "self.redirect('/')\n", "item.title = cgi.escape(self.request.get('title'))\n", "item.description = cgi.escape(self.request.get('description'))\n", "item.price = '%.2f' % float(cgi.escape(se...
[ 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Condition", "Assign'", "Expr'", "Assign'", "Assign'", "Assign'", "Assign'", "Expr'", "Expr'", "Expr'" ]
[ "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'" ]
[ "@eqlx.with_timeout...\n", "return 'no timeout'\n" ]
[ "@eqlx.with_timeout...\n", "return 'no timeout'\n" ]
[ 0, 0 ]
[ "Condition", "Return'" ]
[ "def FUNC_39(VAR_101):...\n", "VAR_101.norun = True\n", "return VAR_101\n" ]
[ "def decorate(ruleinfo):...\n", "ruleinfo.norun = True\n", "return ruleinfo\n" ]
[ 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Return'" ]
[ "def __init__(self, VAR_30, VAR_41):...\n", "\"\"\"docstring\"\"\"\n", "self.obj = VAR_30\n", "self.tag_name = VAR_41\n" ]
[ "def __init__(self, obj, tag_name):...\n", "\"\"\"docstring\"\"\"\n", "self.obj = obj\n", "self.tag_name = tag_name\n" ]
[ 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Assign'", "Assign'" ]
[ "def __str__(self):...\n", "if self.fatal:\n", "if not len(self.deps):\n", "return self.message + ' Install packages: %s' % ' '.join(self.deps)\n", "return self.message + ' Unresolvable.'\n", "return self.message + ' Unresolvable. Partially resolvable with packages: %s' % ' '.join(\n self.deps)\n" ]
[ "def __str__(self):...\n", "if self.fatal:\n", "if not len(self.deps):\n", "return self.message + ' Install packages: %s' % ' '.join(self.deps)\n", "return self.message + ' Unresolvable.'\n", "return self.message + ' Unresolvable. Partially resolvable with packages: %s' % ' '.join(\n self.deps)\n" ]
[ 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Condition", "Condition", "Return'", "Return'", "Return'" ]
[ "@property...\n", "\"\"\"docstring\"\"\"\n", "return self.config.getint(self.section, 'sso_session_lifetime')\n" ]
[ "@property...\n", "\"\"\"docstring\"\"\"\n", "return self.config.getint(self.section, 'sso_session_lifetime')\n" ]
[ 0, 0, 0 ]
[ "Condition", "Docstring", "Return'" ]