lines
listlengths
1
444
raw_lines
listlengths
1
444
label
listlengths
1
444
type
listlengths
1
444
[ "def FUNC_16(self, VAR_14):...\n", "" ]
[ "def is_datetime(self, col_name):...\n", "" ]
[ 0, 0 ]
[ "FunctionDef'", "Condition" ]
[ "def FUNC_7(self):...\n", "VAR_4 = Lint.executable\n", "VAR_5 = 'invalid_binary_which_doesnt_exist'\n", "Lint.executable = VAR_5\n", "self.assertEqual(Lint.check_prerequisites(), \"'{}' is not installed.\".\n format(VAR_5))\n", "Lint.executable = 'echo'\n", "self.assertTrue(Lint.check_prerequisites()...
[ "def test_missing_binary(self):...\n", "old_binary = Lint.executable\n", "invalid_binary = 'invalid_binary_which_doesnt_exist'\n", "Lint.executable = invalid_binary\n", "self.assertEqual(Lint.check_prerequisites(), \"'{}' is not installed.\".\n format(invalid_binary))\n", "Lint.executable = 'echo'\n", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Assign'", "Assign'", "Expr'", "Assign'", "Expr'", "Expr'", "Assign'" ]
[ "def FUNC_15(self, VAR_3=None):...\n", "\"\"\"docstring\"\"\"\n", "def FUNC_22(VAR_30, VAR_3):...\n", "if not isinstance(VAR_30, _IOFile):\n", "return IOFile(VAR_30, VAR_16=self)\n", "return VAR_30.apply_wildcards(VAR_3, fill_missing=f in self.dynamic_input,\n fail_dynamic=self.dynamic_output)\n" ]
[ "def expand_wildcards(self, wildcards=None):...\n", "\"\"\"docstring\"\"\"\n", "def concretize_iofile(f, wildcards):...\n", "if not isinstance(f, _IOFile):\n", "return IOFile(f, rule=self)\n", "return f.apply_wildcards(wildcards, fill_missing=f in self.dynamic_input,\n fail_dynamic=self.dynamic_output)...
[ 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "FunctionDef'", "Condition", "Return'", "Return'" ]
[ "def FUNC_5(self):...\n", "self.run_test_case(self.scenario.delete_load_balancer())\n" ]
[ "def test_z_delete_load_balancer(self):...\n", "self.run_test_case(self.scenario.delete_load_balancer())\n" ]
[ 0, 0 ]
[ "FunctionDef'", "Expr'" ]
[ "def __init__(self):...\n", "self._logger = logging.getLogger(self.__class__.__name__)\n", "self.observers = []\n", "self.observerscache = {}\n", "self.observertimers = {}\n", "self.observerLock = threading.Lock()\n" ]
[ "def __init__(self):...\n", "self._logger = logging.getLogger(self.__class__.__name__)\n", "self.observers = []\n", "self.observerscache = {}\n", "self.observertimers = {}\n", "self.observerLock = threading.Lock()\n" ]
[ 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Assign'", "Assign'", "Assign'", "Assign'" ]
[ "def FUNC_2(VAR_87):...\n", "return map(self._rules.__getitem__, filter(self.is_rule, VAR_87))\n" ]
[ "def rules(items):...\n", "return map(self._rules.__getitem__, filter(self.is_rule, items))\n" ]
[ 0, 0 ]
[ "FunctionDef'", "Return'" ]
[ "def FUNC_39(self):...\n", "\"\"\"docstring\"\"\"\n", "for VAR_40, VAR_41 in self._names.items():\n", "yield VAR_40, VAR_41\n" ]
[ "def get_names(self):...\n", "\"\"\"docstring\"\"\"\n", "for name, index in self._names.items():\n", "yield name, index\n" ]
[ 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "For", "Expr'" ]
[ "def FUNC_14(VAR_16):...\n", "\"\"\"docstring\"\"\"\n", "return FUNC_13(VAR_16)\n" ]
[ "def temporary(value):...\n", "\"\"\"docstring\"\"\"\n", "return temp(value)\n" ]
[ 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Return'" ]
[ "from elasticsearch_dsl import FacetedSearch, TermsFacet\n", "from elasticsearch_dsl.query import SimpleQueryString, Bool\n", "\"\"\"Overwrite the initialization in order too meet our needs\"\"\"\n", "def __init__(self, VAR_0, VAR_1, VAR_2, VAR_3, VAR_4=None, **VAR_5):...\n", "self.using = VAR_0\n", "self...
[ "from elasticsearch_dsl import FacetedSearch, TermsFacet\n", "from elasticsearch_dsl.query import SimpleQueryString, Bool\n", "\"\"\"Overwrite the initialization in order too meet our needs\"\"\"\n", "def __init__(self, using, index, doc_types, model, fields=None, **kwargs):...\n", "self.using = using\n", ...
[ 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "ImportFrom'", "ImportFrom'", "Expr'", "FunctionDef'", "Assign'", "Assign'", "Assign'", "Assign'", "Condition", "Assign'", "Expr'", "Assign'", "Assign'", "Assign'", "FunctionDef'", "Docstring", "Condition", "Assign'", "Return'" ]
[ "import copy\n", "import six\n", "from odin import exceptions, registration\n", "from odin.exceptions import ValidationError\n", "from odin.fields import NOT_PROVIDED\n", "from odin.utils import cached_property, field_iter_items\n", "VAR_0 = '$'\n", "VAR_1 = ('name', 'namespace', 'name_space', 'verbos...
[ "import copy\n", "import six\n", "from odin import exceptions, registration\n", "from odin.exceptions import ValidationError\n", "from odin.fields import NOT_PROVIDED\n", "from odin.utils import cached_property, field_iter_items\n", "DEFAULT_TYPE_FIELD = '$'\n", "META_OPTION_NAMES = ('name', 'namespac...
[ 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "Import'", "Import'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "Assign'", "Assign'", "FunctionDef'", "Assign'", "Assign'", "Assign'", "Assign'", "Assign'", "Assign'", "Assign'", "Assign'", "Assign'", "Assign'", "Assign'", "Assign'", "Assign'", "Assign'"...
[ "@app.route('/interact', methods=['POST'])...\n", "VAR_0 = request.form['message'].replace('img', 'uwu').replace('location', 'owo'\n ).replace('script', 'uwu')\n", "VAR_1 = ['send help', 'what is my purpose',\n 'donate to us via bitcoin at: {{ bitcoin_address }}',\n 'donate to us via paypal at: {{ payp...
[ "@app.route('/interact', methods=['POST'])...\n", "msg = request.form['message'].replace('img', 'uwu').replace('location', 'owo'\n ).replace('script', 'uwu')\n", "responses = ['send help', 'what is my purpose',\n 'donate to us via bitcoin at: {{ bitcoin_address }}',\n 'donate to us via paypal at: {{ pa...
[ 0, 3, 3, 3 ]
[ "Condition", "Assign'", "Assign'", "Return'" ]
[ "def FUNC_15(VAR_33, VAR_5=False):...\n", "\"\"\"docstring\"\"\"\n", "VAR_52 = {}\n", "for VAR_82, info in VAR_33:\n", "VAR_52[VAR_82.output(VAR_5)] = {'numbers': len(info[0]), 'details': info[1]}\n", "return VAR_52\n" ]
[ "def _get_compositekws(ckw_matches, spires=False):...\n", "\"\"\"docstring\"\"\"\n", "output = {}\n", "for composite_keyword, info in ckw_matches:\n", "output[composite_keyword.output(spires)] = {'numbers': len(info[0]),\n 'details': info[1]}\n", "return output\n" ]
[ 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Assign'", "For", "Assign'", "Return'" ]
[ "def FUNC_2(self):...\n", "" ]
[ "def tearDown(self):...\n", "" ]
[ 0, 0 ]
[ "FunctionDef'", "Condition" ]
[ "@tornado.gen.coroutine...\n", "VAR_17 = 'SELECT {} FROM reports WHERE date = STR_TO_DATE(%s, %s)'.format(VAR_6\n )\n", "VAR_18 = VAR_5, '%d.%m.%Y'\n", "VAR_19 = yield VAR_1.execute(query=sql, VAR_18=params)\n", "return VAR_19.fetchone()\n" ]
[ "@tornado.gen.coroutine...\n", "sql = 'SELECT {} FROM reports WHERE date = STR_TO_DATE(%s, %s)'.format(cols)\n", "params = date, '%d.%m.%Y'\n", "cursor = yield tx.execute(query=sql, params=params)\n", "return cursor.fetchone()\n" ]
[ 0, 0, 0, 0, 0 ]
[ "Condition", "Assign'", "Assign'", "Assign'", "Return'" ]
[ "@Endpoint('GET', '/rgw/buckets')...\n", "return RgwClient.instance(VAR_21).get_buckets()\n" ]
[ "@Endpoint('GET', '/rgw/buckets')...\n", "return RgwClient.instance(user_id).get_buckets()\n" ]
[ 0, 0 ]
[ "Condition", "Return'" ]
[ "def FUNC_12(*VAR_20):...\n", "return self._rpc(VAR_21, *VAR_20)\n" ]
[ "def rpc_call(*args):...\n", "return self._rpc(name, *args)\n" ]
[ 0, 0 ]
[ "FunctionDef'", "Return'" ]
[ "@classmethod...\n", "VAR_6 = 3.0\n", "VAR_37 = []\n", "for VAR_41 in range(int(VAR_6 * 10)):\n", "time.sleep(0.1)\n", "VAR_37 = []\n", "VAR_43 = (a for a in VAR_26 if a._event is not None and not a._event.is_set())\n", "for awaitable in VAR_43:\n", "if isinstance(awaitable, CLASS_4):\n", "if len(...
[ "@classmethod...\n", "timeout = 3.0\n", "messages = []\n", "for _ in range(int(timeout * 10)):\n", "time.sleep(0.1)\n", "messages = []\n", "not_ready = (a for a in awaitables if a._event is not None and not a._event\n .is_set())\n", "for awaitable in not_ready:\n", "if isinstance(awaitable, Await...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "Condition", "Assign'", "Assign'", "For", "Expr'", "Assign'", "Assign'", "For", "Condition", "Condition", "Expr'", "Expr'", "Return'" ]
[ "def __repr__(self):...\n", "return 'Header(%s, %d)' % (self.etag, self.mtime)\n" ]
[ "def __repr__(self):...\n", "return 'Header(%s, %d)' % (self.etag, self.mtime)\n" ]
[ 0, 0 ]
[ "FunctionDef'", "Return'" ]
[ "@classmethod...\n", "return ['raw_cas', 'raw_chem_name']\n" ]
[ "@classmethod...\n", "return ['raw_cas', 'raw_chem_name']\n" ]
[ 0, 0 ]
[ "Condition", "Return'" ]
[ "def FUNC_28(VAR_23):...\n", "VAR_63, VAR_64, VAR_65 = VAR_23.split('-')\n", "VAR_62 = datetime.datetime.today().strftime('%Y-%m-%d')\n", "VAR_75, VAR_76, VAR_77 = VAR_62.split('-')\n", "if VAR_64 == VAR_76:\n", "return False\n", "if VAR_77 == '01':\n", "return True\n", "return False\n" ]
[ "def has_month_passed(date):...\n", "y, m, d = date.split('-')\n", "today = datetime.datetime.today().strftime('%Y-%m-%d')\n", "today_y, today_m, today_d = today.split('-')\n", "if m == today_m:\n", "return False\n", "if today_d == '01':\n", "return True\n", "return False\n" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Assign'", "Assign'", "Condition", "Return'", "Condition", "Return'", "Return'" ]
[ "\"\"\"Handlers for customizing oauthclient endpoints.\"\"\"\n", "import six\n", "from flask import current_app, flash, redirect, render_template, request, session, url_for\n", "from flask.ext.login import current_user\n", "from functools import partial, wraps\n", "from werkzeug.utils import import_string...
[ "\"\"\"Handlers for customizing oauthclient endpoints.\"\"\"\n", "import six\n", "from flask import current_app, flash, redirect, render_template, request, session, url_for\n", "from flask.ext.login import current_user\n", "from functools import partial, wraps\n", "from werkzeug.utils import import_string...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "Expr'", "Import'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "FunctionDef'", "Docstring", "Return'" ]
[ "def __init__(self, *VAR_2, **VAR_3):...\n", "super(CLASS_0, self).__init__(*VAR_2, **kwargs)\n", "self.cluster_vip = None\n" ]
[ "def __init__(self, *args, **kwargs):...\n", "super(HpSanISCSIDriver, self).__init__(*args, **kwargs)\n", "self.cluster_vip = None\n" ]
[ 0, 0, 0 ]
[ "FunctionDef'", "Expr'", "Assign'" ]
[ "def FUNC_16(VAR_13):...\n", "VAR_5.setResponseCode(OK)\n", "VAR_5.write(open(os.path.join(self._startup_folder, 'Interstitial.html')).\n read())\n", "VAR_5.finish()\n", "self._setup_user_services(VAR_13, VAR_5)\n" ]
[ "def render_response(leap_session):...\n", "request.setResponseCode(OK)\n", "request.write(open(os.path.join(self._startup_folder, 'Interstitial.html'))\n .read())\n", "request.finish()\n", "self._setup_user_services(leap_session, request)\n" ]
[ 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Expr'", "Expr'", "Expr'", "Expr'" ]
[ "def FUNC_6(self, VAR_8):...\n", "while True:\n", "if VAR_8 is not None:\n", "VAR_24 = VAR_8.value\n", "self.create_result(self.options.injections)\n", "if VAR_24:\n", "if not self.campaign_data['use_simics']:\n", "VAR_8.value -= 1\n", "self.close()\n", "VAR_23 = 10\n", "if self.campaign_data['u...
[ "def inject_and_monitor(self, iteration_counter):...\n", "while True:\n", "if iteration_counter is not None:\n", "iteration = iteration_counter.value\n", "self.create_result(self.options.injections)\n", "if iteration:\n", "if not self.campaign_data['use_simics']:\n", "iteration_counter.value -= 1\n", ...
[ 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 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'", "Condition", "Condition", "Assign'", "Expr'", "Condition", "Condition", "AugAssign'", "Expr'", "Assign'", "Condition", "For", "Expr'", "Assign'", "Assign'", "Assign'", "Expr'", "Expr'", "Expr'", "Expr'", "Expr'", "Condition", "Condition", "Expr'", "Exp...
[ "def FUNC_7(self):...\n", "VAR_6 = self.client.get('/api/apps')\n", "VAR_8 = VAR_6.data['results'][0]['id']\n", "self.assertTrue(self.client.login(VAR_1='autotest-2', VAR_2='password'))\n", "VAR_6 = self.client.get('/api/apps/{}/perms'.format(VAR_8), content_type=\n 'application/json')\n", "self.assert...
[ "def test_list_errors(self):...\n", "response = self.client.get('/api/apps')\n", "app_id = response.data['results'][0]['id']\n", "self.assertTrue(self.client.login(username='autotest-2', password='password'))\n", "response = self.client.get('/api/apps/{}/perms'.format(app_id),\n content_type='application...
[ 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Assign'", "Expr'", "Assign'", "Expr'" ]
[ "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'" ]
[ "def FUNC_3(self):...\n", "VAR_2 = self.connect()\n", "VAR_3 = 'DELETE FROM crimes;'\n", "VAR_2.close()\n", "cursor.execute(VAR_3)\n", "VAR_2.commit()\n" ]
[ "def clear_input(self):...\n", "connection = self.connect()\n", "query = 'DELETE FROM crimes;'\n", "connection.close()\n", "cursor.execute(query)\n", "connection.commit()\n" ]
[ 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Assign'", "Expr'", "Expr'", "Expr'" ]
[ "def FUNC_5(self, VAR_7):...\n", "if VAR_7 == 'id -u':\n", "return b'root'\n", "if VAR_7 == 'bugreportz':\n", "if self.fail_br:\n", "if VAR_7 == 'bugreportz -v':\n", "return b'OMG I died!\\n'\n", "return b'OK:/path/bugreport.zip\\n'\n", "if self.fail_br_before_N:\n", "return b'/system/bin/sh: bugr...
[ "def shell(self, params):...\n", "if params == 'id -u':\n", "return b'root'\n", "if params == 'bugreportz':\n", "if self.fail_br:\n", "if params == 'bugreportz -v':\n", "return b'OMG I died!\\n'\n", "return b'OK:/path/bugreport.zip\\n'\n", "if self.fail_br_before_N:\n", "return b'/system/bin/sh: b...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Condition", "Return'", "Condition", "Condition", "Condition", "Return'", "Return'", "For", "Return'", "Return'" ]
[ "def FUNC_1(self, VAR_9):...\n", "\"\"\"docstring\"\"\"\n", "if Navigation._handleObstacle(self, VAR_9):\n", "self._path = None\n", "return False\n", "return True\n" ]
[ "def _handleObstacle(self, turn_delta):...\n", "\"\"\"docstring\"\"\"\n", "if Navigation._handleObstacle(self, turn_delta):\n", "self._path = None\n", "return False\n", "return True\n" ]
[ 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Condition", "Assign'", "Return'", "Return'" ]
[ "def FUNC_2(self, VAR_6):...\n", "VAR_15 = VAR_6.save(commit=False)\n", "VAR_15.author = self.request.user\n", "VAR_15.article = self.object\n", "VAR_15.save()\n", "return super().form_valid(VAR_6)\n" ]
[ "def form_valid(self, form):...\n", "a = form.save(commit=False)\n", "a.author = self.request.user\n", "a.article = self.object\n", "a.save()\n", "return super().form_valid(form)\n" ]
[ 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Assign'", "Assign'", "Expr'", "Return'" ]
[ "def FUNC_0():...\n", "\"\"\"docstring\"\"\"\n", "return psycopg2.connect('dbname=tournament')\n" ]
[ "def connect():...\n", "\"\"\"docstring\"\"\"\n", "return psycopg2.connect('dbname=tournament')\n" ]
[ 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Return'" ]
[ "@utils.synchronized('3par', external=True)...\n", "\"\"\"docstring\"\"\"\n", "self.common.client_login()\n", "VAR_25 = self._create_host(VAR_7, VAR_10)\n", "VAR_26 = self.common.create_vlun(VAR_7, VAR_25)\n", "self.common.client_logout()\n", "VAR_27 = self._get_iscsi_ip(VAR_25['name'])\n", "VAR_28 = ...
[ "@utils.synchronized('3par', external=True)...\n", "\"\"\"docstring\"\"\"\n", "self.common.client_login()\n", "host = self._create_host(volume, connector)\n", "vlun = self.common.create_vlun(volume, host)\n", "self.common.client_logout()\n", "iscsi_ip = self._get_iscsi_ip(host['name'])\n", "iscsi_ip_p...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "Condition", "Docstring", "Expr'", "Assign'", "Assign'", "Expr'", "Assign'", "Assign'", "Assign'", "Assign'", "Return'" ]
[ "def FUNC_3(self, VAR_9, VAR_7, *VAR_10):...\n", "if VAR_9 not in self._gates:\n", "VAR_17 = VAR_0[VAR_9](*VAR_10)\n", "if isinstance(VAR_7, int):\n", "VAR_17 | self.reg[VAR_7]\n", "VAR_17 | tuple([self.reg[i] for i in VAR_7])\n" ]
[ "def apply(self, gate_name, wires, *par):...\n", "if gate_name not in self._gates:\n", "gate = operator_map[gate_name](*par)\n", "if isinstance(wires, int):\n", "gate | self.reg[wires]\n", "gate | tuple([self.reg[i] for i in wires])\n" ]
[ 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Condition", "Assign'", "Condition", "Expr'", "Expr'" ]
[ "@staticmethod...\n", "VAR_14 = mongo.db.analysis.find(VAR_4, sort=[('_id', pymongo.DESCENDING)])\n", "return [VAR_5 for VAR_5 in VAR_14]\n" ]
[ "@staticmethod...\n", "cursor = mongo.db.analysis.find(filters, sort=[('_id', pymongo.DESCENDING)])\n", "return [report for report in cursor]\n" ]
[ 0, 0, 0 ]
[ "Condition", "Assign'", "Return'" ]
[ "from django.db.models import Prefetch, Q\n", "from django.shortcuts import get_object_or_404\n", "from rest_framework import generics\n", "from db.map.models import State, Municipality, Locality, Action, Organization, Establishment, Submission\n", "from api.serializers import StateSerializer, MunicipalityS...
[ "from django.db.models import Prefetch, Q\n", "from django.shortcuts import get_object_or_404\n", "from rest_framework import generics\n", "from db.map.models import State, Municipality, Locality, Action, Organization, Establishment, Submission\n", "from api.serializers import StateSerializer, MunicipalityS...
[ 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "ImportFrom'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "Assign'", "FunctionDef'", "Return'" ]
[ "def FUNC_5(self, VAR_5):...\n", "\"\"\"docstring\"\"\"\n", "VAR_9 = \"SELECT tag FROM tags WHERE rowid = '\" + str(VAR_5) + \"'\"\n", "self.query(VAR_9)\n", "return self.c.fetchone()[0]\n" ]
[ "def tag_num_to_tag(self, tag_num):...\n", "\"\"\"docstring\"\"\"\n", "q = \"SELECT tag FROM tags WHERE rowid = '\" + str(tag_num) + \"'\"\n", "self.query(q)\n", "return self.c.fetchone()[0]\n" ]
[ 0, 0, 4, 0, 0 ]
[ "FunctionDef'", "Docstring", "Assign'", "Expr'", "Return'" ]
[ "def __init__(self, VAR_0, VAR_1, VAR_2=None):...\n", "GenericRequest.__init__(self, VAR_0, VAR_2)\n", "self.submission_id = VAR_1\n", "self.url = '%ssubmission/%s' % (self.base_url, VAR_1)\n" ]
[ "def __init__(self, browser, submission_id, base_url=None):...\n", "GenericRequest.__init__(self, browser, base_url)\n", "self.submission_id = submission_id\n", "self.url = '%ssubmission/%s' % (self.base_url, submission_id)\n" ]
[ 0, 0, 0, 5 ]
[ "FunctionDef'", "Expr'", "Assign'", "Assign'" ]
[ "def FUNC_2():...\n", "super(CLASS_8, self).__init__(slideParser.parse(VAR_10, slideLexer),\n '\\\\footnote[frame]{', '}')\n" ]
[ "def innerFunc():...\n", "super(Footnote, self).__init__(slideParser.parse(txt, slideLexer),\n '\\\\footnote[frame]{', '}')\n" ]
[ 0, 2 ]
[ "FunctionDef'", "Expr'" ]
[ "def FUNC_12(self):...\n", "self.driver._eql_execute = self.mox.CreateMock(self.driver._eql_execute)\n", "VAR_1 = {'name': self.volume_name}\n", "self.driver._eql_execute('volume', 'select', VAR_1['name'], 'access',\n 'delete', '1')\n", "self.mox.ReplayAll()\n", "self.driver.terminate_connection(VAR_1,...
[ "def test_terminate_connection(self):...\n", "self.driver._eql_execute = self.mox.CreateMock(self.driver._eql_execute)\n", "volume = {'name': self.volume_name}\n", "self.driver._eql_execute('volume', 'select', volume['name'], 'access',\n 'delete', '1')\n", "self.mox.ReplayAll()\n", "self.driver.termina...
[ 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Assign'", "Expr'", "Expr'", "Expr'" ]
[ "def FUNC_3():...\n", "return '<input name=\"_csrftoken\" type=\"hidden\" value=\"%s\" />' % FUNC_1()\n" ]
[ "def field_token():...\n", "return '<input name=\"_csrftoken\" type=\"hidden\" value=\"%s\" />' % make_token()\n" ]
[ 0, 0 ]
[ "FunctionDef'", "Return'" ]
[ "def FUNC_7():...\n", "VAR_10 = dglogger.log_config()\n", "dglogger.log_start()\n", "VAR_11 = argparse.ArgumentParser(description=\n \"\"\"install_mac_tweaks changes user and global settings to improve performance, security, \n and convenience. Results logged to a file.\"\"\"\n )\n", "VAR_12 = VAR_...
[ "def main():...\n", "log_file = dglogger.log_config()\n", "dglogger.log_start()\n", "parser = argparse.ArgumentParser(description=\n \"\"\"install_mac_tweaks changes user and global settings to improve performance, security, \n and convenience. Results logged to a file.\"\"\"\n )\n", "group = parse...
[ 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'", "Expr'", "Expr'", "Expr'", "Assign'", "Import'", "Expr'", "Condition", "Expr'", "Expr'", "Condition", "Expr'", "Expr'", "Expr'", "Condition", "Expr'", "Expr'" ]
[ "@app.task...\n", "\"\"\"docstring\"\"\"\n", "VAR_2 = get_object_or_404(Project, pk=project_id)\n", "VAR_6 = ''\n", "VAR_8 = APIClient(VAR_2.testrail.instance.host)\n", "VAR_6 = {'error': 'No TestRail config'}\n", "return VAR_6\n", "VAR_8.user = VAR_2.testrail.instance.username\n", "VAR_6 = {'error'...
[ "@app.task...\n", "\"\"\"docstring\"\"\"\n", "project = get_object_or_404(Project, pk=project_id)\n", "testrail_contents = ''\n", "client = APIClient(project.testrail.instance.host)\n", "testrail_contents = {'error': 'No TestRail config'}\n", "return testrail_contents\n", "client.user = project.testra...
[ 0, 0, 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'", "Assign'", "Assign'", "Return'", "Assign'", "Assign'", "Assign'", "Assign'", "Assign'", "Assign'", "Assign'", "Expr'", "Assign'", "Assign'", "For", "Condition", "Assign'", "Expr'", "Expr'", "Assign'", "Assign'", "Expr'",...
[ "def FUNC_1():...\n", "" ]
[ "def b():...\n", "" ]
[ 0, 0 ]
[ "FunctionDef'", "Condition" ]
[ "@rest_utils.ajax()...\n", "\"\"\"docstring\"\"\"\n", "return api.nova.server_get(VAR_1, VAR_3).to_dict().get('metadata')\n" ]
[ "@rest_utils.ajax()...\n", "\"\"\"docstring\"\"\"\n", "return api.nova.server_get(request, server_id).to_dict().get('metadata')\n" ]
[ 0, 0, 0 ]
[ "Condition", "Docstring", "Return'" ]
[ "def FUNC_18(self, VAR_34, VAR_36, VAR_37):...\n", "\"\"\"docstring\"\"\"\n", "if not VAR_34:\n", "return True\n", "return os.lseek(VAR_34, VAR_36, VAR_37)\n" ]
[ "def lseek(self, fd, offset, whence):...\n", "\"\"\"docstring\"\"\"\n", "if not fd:\n", "return True\n", "return os.lseek(fd, offset, whence)\n" ]
[ 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Condition", "Return'", "Return'" ]
[ "def FUNC_5():...\n", "return FUNC_1(settings.DEFAULT_LOCAL_TABLE, FUNC_3(VAR_14=settings.\n DEFAULT_LOCAL_TABLE))\n" ]
[ "def get_local_table_definition():...\n", "return get_table_definition(settings.DEFAULT_LOCAL_TABLE,\n get_replicated_engine(name=settings.DEFAULT_LOCAL_TABLE))\n" ]
[ 0, 0 ]
[ "FunctionDef'", "Return'" ]
[ "@utils.synchronized('3par', external=True)...\n", "self.common.client_login()\n", "VAR_23 = self.common.create_volume(VAR_7)\n", "self.common.client_logout()\n", "return {'metadata': VAR_23}\n" ]
[ "@utils.synchronized('3par', external=True)...\n", "self.common.client_login()\n", "metadata = self.common.create_volume(volume)\n", "self.common.client_logout()\n", "return {'metadata': metadata}\n" ]
[ 0, 0, 0, 0, 0 ]
[ "Condition", "Expr'", "Assign'", "Expr'", "Return'" ]
[ "def FUNC_6(self):...\n", "super().continue_dut('cont 3')\n" ]
[ "def continue_dut(self):...\n", "super().continue_dut('cont 3')\n" ]
[ 0, 0 ]
[ "FunctionDef'", "Expr'" ]
[ "def FUNC_19(self, VAR_21):...\n", "\"\"\"docstring\"\"\"\n", "VAR_58 = self.getfile(VAR_21)\n", "if VAR_58 != False:\n", "self.mkdir(VAR_21, 0, 0, 4096, 16877)\n" ]
[ "def mkdir2(self, path):...\n", "\"\"\"docstring\"\"\"\n", "dir = self.getfile(path)\n", "if dir != False:\n", "self.mkdir(path, 0, 0, 4096, 16877)\n" ]
[ 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Assign'", "Condition", "Expr'" ]
[ "def FUNC_30(self, VAR_5):...\n", "def FUNC_32(VAR_19):...\n", "return dict((expr, vimsupport.VimExpressionToPythonType(expr)) for expr in\n VAR_19)\n" ]
[ "def _AddExtraConfDataIfNeeded(self, extra_data):...\n", "def BuildExtraConfData(extra_conf_vim_data):...\n", "return dict((expr, vimsupport.VimExpressionToPythonType(expr)) for expr in\n extra_conf_vim_data)\n" ]
[ 0, 0, 0 ]
[ "FunctionDef'", "FunctionDef'", "Return'" ]
[ "def FUNC_10(self, VAR_15, VAR_16):...\n", "VAR_36 = {'cmd': 'sleep', 'duration': task_scheduler.exponential_backoff(\n VAR_15), 'quarantined': VAR_16}\n", "self.send_response(VAR_36)\n" ]
[ "def _cmd_sleep(self, sleep_streak, quarantined):...\n", "out = {'cmd': 'sleep', 'duration': task_scheduler.exponential_backoff(\n sleep_streak), 'quarantined': quarantined}\n", "self.send_response(out)\n" ]
[ 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Expr'" ]
[ "import requests, json, sys, os, pyperclip, re\n", "def FUNC_0(VAR_0):...\n", "VAR_2 = re.compile('<.*?>')\n", "VAR_3 = re.sub(VAR_2, '', VAR_0)\n", "return VAR_3\n" ]
[ "import requests, json, sys, os, pyperclip, re\n", "def cleanhtml(raw_html):...\n", "cleanr = re.compile('<.*?>')\n", "cleantext = re.sub(cleanr, '', raw_html)\n", "return cleantext\n" ]
[ 0, 0, 0, 0, 0 ]
[ "Import'", "FunctionDef'", "Assign'", "Assign'", "Return'" ]
[ "def FUNC_14(VAR_24=sys.argv):...\n", "VAR_39 = FUNC_12(VAR_24)\n", "if VAR_39.print_templates:\n", "print(VAR_39.templates)\n", "if not VAR_39.metadata:\n", "return 0\n", "if 'OS_CONFIG_FILES' in os.environ:\n", "if VAR_39.templates is None:\n", "VAR_28.error(e)\n", "return 0\n", "VAR_39.metada...
[ "def main(argv=sys.argv):...\n", "opts = parse_opts(argv)\n", "if opts.print_templates:\n", "print(opts.templates)\n", "if not opts.metadata:\n", "return 0\n", "if 'OS_CONFIG_FILES' in os.environ:\n", "if opts.templates is None:\n", "logger.error(e)\n", "return 0\n", "opts.metadata = os.environ[...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Condition", "Expr'", "Condition", "Return'", "Condition", "Condition", "Expr'", "Return'", "Assign'", "Assign'", "Condition", "Return'", "Condition", "Expr'", "Expr'", "Expr'", "Expr'", "Assign'" ]
[ "def FUNC_9(self):...\n", "\"\"\"docstring\"\"\"\n", "VAR_15 = self.clone()\n", "if not VAR_15.trailing_slash:\n", "VAR_15.parts.pop()\n", "VAR_15.trailing_slash = bool(VAR_15.parts)\n", "return VAR_15\n" ]
[ "def to_dir(self):...\n", "\"\"\"docstring\"\"\"\n", "clone = self.clone()\n", "if not clone.trailing_slash:\n", "clone.parts.pop()\n", "clone.trailing_slash = bool(clone.parts)\n", "return clone\n" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Assign'", "Condition", "Expr'", "Assign'", "Return'" ]
[ "def FUNC_2(self, VAR_2, VAR_3, VAR_4=False):...\n", "VAR_6 = os.path.join(self.namespace, VAR_2)\n", "self.etcd.write(VAR_6, VAR_3, prevExist=replace)\n", "FUNC_0('Error storing key %s: [%r]' % (VAR_2, repr(err)))\n" ]
[ "def set(self, key, value, replace=False):...\n", "path = os.path.join(self.namespace, key)\n", "self.etcd.write(path, value, prevExist=replace)\n", "log_error('Error storing key %s: [%r]' % (key, repr(err)))\n" ]
[ 0, 1, 0, 0 ]
[ "FunctionDef'", "Assign'", "Expr'", "Expr'" ]
[ "def FUNC_6(self, VAR_68):...\n", "if not VAR_68:\n", "return\n", "if VAR_68.startswith('redirect_'):\n", "VAR_104 = VAR_68[9:]\n", "if VAR_68.startswith('vote_'):\n", "if not VAR_104.startswith(VAR_101.site.path) and not VAR_104.startswith('http:'\n", "VAR_41 = VAR_68[5:]\n", "if VAR_68.startswith(...
[ "def run(self, reason):...\n", "if not reason:\n", "return\n", "if reason.startswith('redirect_'):\n", "dest = reason[9:]\n", "if reason.startswith('vote_'):\n", "if not dest.startswith(c.site.path) and not dest.startswith('http:'):\n", "fullname = reason[5:]\n", "if reason.startswith('share_'):\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 ]
[ "FunctionDef'", "Condition", "Return'", "Condition", "Assign'", "Condition", "Condition", "Assign'", "Condition", "Assign'", "Return'", "Assign'", "Assign'", "Condition", "Return'", "Assign'", "Assign'", "Condition", "Return'", "Assign'", "Assign'", "Return'", "Assign'", ...
[ "def FUNC_31():...\n", "VAR_24 = vim.eval('tagfiles()')\n", "VAR_25 = VAR_0.getcwd()\n", "return [VAR_0.path.join(VAR_25, x) for x in VAR_24]\n" ]
[ "def GetTagFiles():...\n", "tag_files = vim.eval('tagfiles()')\n", "current_working_directory = os.getcwd()\n", "return [os.path.join(current_working_directory, x) for x in tag_files]\n" ]
[ 0, 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Assign'", "Return'" ]
[ "def FUNC_6(self, VAR_51, VAR_44):...\n", "VAR_51 = FUNC_3(VAR_51)\n", "VAR_82 = None\n", "if VAR_51:\n", "VAR_82 = valid_login(VAR_51, VAR_44)\n", "if not VAR_82:\n", "return self.error()\n", "return VAR_82\n" ]
[ "def run(self, user_name, password):...\n", "user_name = chkuser(user_name)\n", "user = None\n", "if user_name:\n", "user = valid_login(user_name, password)\n", "if not user:\n", "return self.error()\n", "return user\n" ]
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Assign'", "Condition", "Assign'", "Condition", "Return'", "Return'" ]
[ "def FUNC_11(self):...\n", "return 'UInt{}'.format(self.size)\n" ]
[ "def for_schema(self):...\n", "return 'UInt{}'.format(self.size)\n" ]
[ 0, 0 ]
[ "FunctionDef'", "Return'" ]
[ "def FUNC_1(VAR_1):...\n", "for VAR_5 in VAR_1.traverse():\n", "if VAR_5.path.startswith('LICENSES'):\n", "if VAR_5.path.find('license-rules.rst') >= 0:\n", "if not os.path.isfile(VAR_5.path):\n", "VAR_22.parse_lines(VAR_15, VAR_19.maxlines, VAR_5.path)\n" ]
[ "def scan_git_tree(tree):...\n", "for el in tree.traverse():\n", "if el.path.startswith('LICENSES'):\n", "if el.path.find('license-rules.rst') >= 0:\n", "if not os.path.isfile(el.path):\n", "parser.parse_lines(fd, args.maxlines, el.path)\n" ]
[ 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "For", "Condition", "Condition", "Condition", "Expr'" ]
[ "@VAR_0.route('/')...\n", "return render_template('login.html')\n" ]
[ "@app.route('/')...\n", "return render_template('login.html')\n" ]
[ 0, 0 ]
[ "Condition", "Return'" ]
[ "def FUNC_2(VAR_7, VAR_8, VAR_9, VAR_10):...\n", "\"\"\"docstring\"\"\"\n", "VAR_29 = os.path.dirname(VAR_7)\n", "if os.path.isfile(VAR_9):\n", "os.remove(VAR_9)\n", "VAR_30 = FUNC_1()\n", "VAR_30.extend(['--isolated', VAR_8.inputs_ref['isolated'].encode('utf-8'),\n '--namespace', VAR_8.inputs_ref['n...
[ "def get_isolated_cmd(work_dir, task_details, isolated_result, min_free_space):...\n", "\"\"\"docstring\"\"\"\n", "bot_dir = os.path.dirname(work_dir)\n", "if os.path.isfile(isolated_result):\n", "os.remove(isolated_result)\n", "cmd = get_run_isolated()\n", "cmd.extend(['--isolated', task_details.inputs...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Assign'", "Condition", "Expr'", "Assign'", "Expr'", "Condition", "Expr'", "Condition", "Expr'", "Condition", "Expr'", "Condition", "Expr'", "Return'", "Expr'" ]
[ "def FUNC_3(self):...\n", "\"\"\"docstring\"\"\"\n", "VAR_1 = self.client.get('/api/apps')\n", "self.assertEqual(VAR_1.status_code, 200)\n" ]
[ "def test_x_deis_version_header_not_present(self):...\n", "\"\"\"docstring\"\"\"\n", "response = self.client.get('/api/apps')\n", "self.assertEqual(response.status_code, 200)\n" ]
[ 0, 0, 5, 0 ]
[ "FunctionDef'", "Docstring", "Assign'", "Expr'" ]
[ "@api.model...\n", "\"\"\"docstring\"\"\"\n", "VAR_28 = self.env['product.template']\n", "VAR_29 = VAR_28.search([('parent_price_product', '!=', False)])\n", "for VAR_12 in VAR_29:\n", "VAR_34 = VAR_12.parent_price_product\n", "VAR_35 = VAR_28.search([('default_code', '=', VAR_34)])\n", "if VAR_35 and...
[ "@api.model...\n", "\"\"\"docstring\"\"\"\n", "prod_obj = self.env['product.template']\n", "prods = prod_obj.search([('parent_price_product', '!=', False)])\n", "for prod in prods:\n", "default_code = prod.parent_price_product\n", "parent = prod_obj.search([('default_code', '=', default_code)])\n", "i...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "Condition", "Docstring", "Assign'", "Assign'", "For", "Assign'", "Assign'", "Condition", "Assign'", "Expr'", "Expr'" ]
[ "def FUNC_15(self):...\n", "\"\"\"docstring\"\"\"\n", "if sabnzbd.cfg.history_retention() == '0':\n", "return\n", "if sabnzbd.cfg.history_retention() == '-1':\n", "self.remove_completed()\n", "if 'd' in sabnzbd.cfg.history_retention():\n", "VAR_77 = int_conv(sabnzbd.cfg.history_retention().strip()[:-1...
[ "def auto_history_purge(self):...\n", "\"\"\"docstring\"\"\"\n", "if sabnzbd.cfg.history_retention() == '0':\n", "return\n", "if sabnzbd.cfg.history_retention() == '-1':\n", "self.remove_completed()\n", "if 'd' in sabnzbd.cfg.history_retention():\n", "days_to_keep = int_conv(sabnzbd.cfg.history_retent...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Condition", "Return'", "Condition", "Expr'", "Condition", "Assign'", "Assign'", "Assign'", "Condition", "Condition", "Expr'", "Expr'", "Return'", "Return'" ]
[ "from __future__ import absolute_import\n", "from __future__ import print_function\n", "from __future__ import unicode_literals\n", "import io\n", "import json\n", "import logging\n", "import os\n", "import re\n", "import subprocess\n", "import sys\n", "import time\n", "import requests\n", "...
[ "from __future__ import absolute_import\n", "from __future__ import print_function\n", "from __future__ import unicode_literals\n", "import io\n", "import json\n", "import logging\n", "import os\n", "import re\n", "import subprocess\n", "import sys\n", "import time\n", "import requests\n", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 5, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "ImportFrom'", "ImportFrom'", "ImportFrom'", "Import'", "Import'", "Import'", "Import'", "Import'", "Import'", "Import'", "Import'", "Import'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "Assign'", "Assign'", "Assign'", "Assign'", "Assign'", "Assign'", "Assign'", "Assig...
[ "def FUNC_17(VAR_22, VAR_5=False):...\n", "\"\"\"docstring\"\"\"\n", "VAR_59 = {}\n", "if VAR_22:\n", "for VAR_96, VAR_63 in VAR_22.items():\n", "return VAR_59\n", "VAR_32 = VAR_63[0]\n", "VAR_33 = VAR_63[1]\n", "VAR_92 = []\n", "for VAR_94, spans in VAR_33.items():\n", "VAR_92.append(VAR_94.out...
[ "def _get_author_keywords(author_keywords, spires=False):...\n", "\"\"\"docstring\"\"\"\n", "out = {}\n", "if author_keywords:\n", "for keyword, matches in author_keywords.items():\n", "return out\n", "skw_matches = matches[0]\n", "ckw_matches = matches[1]\n", "matches_str = []\n", "for ckw, spans...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Assign'", "Condition", "For", "Return'", "Assign'", "Assign'", "Assign'", "For", "Expr'", "For", "Expr'", "Condition", "Assign'", "Assign'" ]
[ "def FUNC_2(self):...\n", "" ]
[ "def tearDown(self):...\n", "" ]
[ 0, 0 ]
[ "FunctionDef'", "Condition" ]
[ "@staticmethod...\n", "\"\"\"docstring\"\"\"\n", "log.info('Checking whether user have changed his info or not...')\n", "VAR_17 = VAR_9.from_user\n", "VAR_18 = CLASS_0(VAR_9.chat.id, VAR_17.first_name, VAR_17.username, VAR_17.\n last_name)\n", "if VAR_7.chat_id != VAR_18.chat_id:\n", "log.error('Wron...
[ "@staticmethod...\n", "\"\"\"docstring\"\"\"\n", "log.info('Checking whether user have changed his info or not...')\n", "msg = message.from_user\n", "usr_from_message = User(message.chat.id, msg.first_name, msg.username, msg.\n last_name)\n", "if user.chat_id != usr_from_message.chat_id:\n", "log.err...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0 ]
[ "Condition", "Docstring", "Expr'", "Assign'", "Assign'", "Condition", "Expr'", "Condition", "Return'", "Assign'", "Condition", "Expr'", "Assign'", "Condition", "Expr'", "Assign'", "Expr'", "Assign'", "Return'", "Expr'", "Expr'", "Expr'" ]
[ "def FUNC_3(VAR_2):...\n", "return render(VAR_2, 'etd_app/overview.html')\n" ]
[ "def overview(request):...\n", "return render(request, 'etd_app/overview.html')\n" ]
[ 0, 0 ]
[ "FunctionDef'", "Return'" ]
[ "\"\"\"This module contains the device class and context manager\"\"\"\n", "import numpy as np\n", "from openqml import Device, DeviceError\n", "from openqml import Variable\n", "import strawberryfields as sf\n", "from strawberryfields.ops import Catstate, Coherent, DensityMatrix, DisplacedSqueezed, Fock,...
[ "\"\"\"This module contains the device class and context manager\"\"\"\n", "import numpy as np\n", "from openqml import Device, DeviceError\n", "from openqml import Variable\n", "import strawberryfields as sf\n", "from strawberryfields.ops import Catstate, Coherent, DensityMatrix, DisplacedSqueezed, Fock,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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'", "Import'", "ImportFrom'", "ImportFrom'", "Import'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "Assign'", "Expr'", "Assign'", "Assign'", "Assign'", "Assign'", "Assign'", "Assign'", "Assign'", "Assign'", "FunctionDef'", "Assign'", "...
[ "def __init__(self, *VAR_2, **VAR_3):...\n", "super(CLASS_0, self).__init__(*VAR_2, **kwargs)\n", "self.common = None\n", "self.configuration.append_config_values(hpcommon.hp3par_opts)\n", "self.configuration.append_config_values(san.san_opts)\n" ]
[ "def __init__(self, *args, **kwargs):...\n", "super(HP3PARFCDriver, self).__init__(*args, **kwargs)\n", "self.common = None\n", "self.configuration.append_config_values(hpcommon.hp3par_opts)\n", "self.configuration.append_config_values(san.san_opts)\n" ]
[ 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Expr'", "Assign'", "Expr'", "Expr'" ]
[ "def FUNC_4(self):...\n", "self.log('')\n", "self.log('GET ' + self.req)\n", "if self.req.startswith('/.cpr/'):\n", "VAR_32 = os.path.join(E.mod, 'web', self.req.split('?')[0][6:])\n", "VAR_7 = {}\n", "if os.path.isfile(VAR_32):\n", "VAR_12 = self.req[1:]\n", "return self.tx_file(VAR_32)\n", "if ...
[ "def handle_get(self):...\n", "self.log('')\n", "self.log('GET ' + self.req)\n", "if self.req.startswith('/.cpr/'):\n", "static_path = os.path.join(E.mod, 'web', self.req.split('?')[0][6:])\n", "args = {}\n", "if os.path.isfile(static_path):\n", "vpath = self.req[1:]\n", "return self.tx_file(static...
[ 0, 0, 0, 1, 1, 1, 0, 1, 0, 1, 1, 1, 1, 0, 1, 1, 0, 1, 1, 1, 0, 0, 1, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Expr'", "Expr'", "Condition", "Assign'", "Assign'", "Condition", "Assign'", "Return'", "Condition", "Assign'", "Condition", "For", "Assign'", "Assign'", "Condition", "Assign'", "Assign'", "Assign'", "Assign'", "Condition", "Condition", "Assign'", "Condi...
[ "def FUNC_23(self, VAR_22):...\n", "\"\"\"docstring\"\"\"\n", "VAR_30 = self.cursor.execute('string' % VAR_22).fetchall()\n", "return VAR_30\n" ]
[ "def list_items_not_in_store(self, storeind):...\n", "\"\"\"docstring\"\"\"\n", "r = self.cursor.execute(\n 'select items.itemid, items.itemname from items where items.itemid not in (select shoppingorder.itemid from shoppingorder, store where store.storeid = \"%s\" and store.storeid = shoppingorder.storeid) ...
[ 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Assign'", "Return'" ]
[ "def FUNC_0(VAR_0, VAR_1='_', VAR_2=-2, VAR_3=-1):...\n", "\"\"\"docstring\"\"\"\n", "import pandas as pd\n", "VAR_18 = [int(fn.split('.')[0].split(VAR_1)[VAR_2]) for fn in VAR_0]\n", "VAR_19 = [int(fn.split('.')[0].split(VAR_1)[VAR_3]) for fn in VAR_0]\n", "VAR_20 = pd.DataFrame({'fn': VAR_0, 'month': VA...
[ "def sort_files(files, split_on='_', elem_month=-2, elem_year=-1):...\n", "\"\"\"docstring\"\"\"\n", "import pandas as pd\n", "months = [int(fn.split('.')[0].split(split_on)[elem_month]) for fn in files]\n", "years = [int(fn.split('.')[0].split(split_on)[elem_year]) for fn in files]\n", "df = pd.DataFrame...
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Import'", "Assign'", "Assign'", "Assign'", "Assign'", "Return'" ]
[ "@property...\n", "\"\"\"docstring\"\"\"\n", "return self.format_wildcards(self.rule.shellcmd\n ) if self.rule.shellcmd else None\n" ]
[ "@property...\n", "\"\"\"docstring\"\"\"\n", "return self.format_wildcards(self.rule.shellcmd\n ) if self.rule.shellcmd else None\n" ]
[ 0, 0, 0 ]
[ "Condition", "Docstring", "Return'" ]
[ "def FUNC_0(VAR_2):...\n", "\"\"\"docstring\"\"\"\n", "if VAR_2 <= VAR_23(VAR_1):\n", "return VAR_1[:VAR_2]\n", "VAR_3 = (VAR_2 + VAR_23(VAR_1) - 1) // VAR_23(VAR_1)\n", "VAR_4 = VAR_1 * VAR_3\n", "return VAR_4[:VAR_2]\n" ]
[ "def _generate_test_string(length):...\n", "\"\"\"docstring\"\"\"\n", "if length <= len(_TESTSTR):\n", "return _TESTSTR[:length]\n", "c = (length + len(_TESTSTR) - 1) // len(_TESTSTR)\n", "v = _TESTSTR * c\n", "return v[:length]\n" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Condition", "Return'", "Assign'", "Assign'", "Return'" ]
[ "def FUNC_45(self):...\n", "self.cursor.execute('create table t1(c1 int identity(1, 1), c2 varchar(50))')\n", "for i in range(3):\n", "self.cursor.execute('insert into t1(c2) values (?)', 'string%s' % i)\n", "self.cursor.execute('create view t2 as select * from t1')\n", "self.cursor.execute('select * from...
[ "def test_view_select(self):...\n", "self.cursor.execute('create table t1(c1 int identity(1, 1), c2 varchar(50))')\n", "for i in range(3):\n", "self.cursor.execute('insert into t1(c2) values (?)', 'string%s' % i)\n", "self.cursor.execute('create view t2 as select * from t1')\n", "self.cursor.execute('sele...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Expr'", "For", "Expr'", "Expr'", "Expr'", "Assign'", "Expr'", "Expr'" ]
[ "def FUNC_7(VAR_4):...\n", "\"\"\"docstring\"\"\"\n", "if not FUNC_6(VAR_4):\n", "VAR_24 = VAR_4.split('\"')\n", "VAR_25 = []\n", "for i in range(0, len(VAR_24)):\n", "if i % 2 == 0:\n", "return VAR_25\n", "VAR_35 = [word for word in VAR_24[i].split() if word]\n", "if VAR_24[i]:\n", "VAR_25.exte...
[ "def splitSimpleSearch(term):...\n", "\"\"\"docstring\"\"\"\n", "if not isSimpleSearch(term):\n", "parts = term.split('\"')\n", "tokens = []\n", "for i in range(0, len(parts)):\n", "if i % 2 == 0:\n", "return tokens\n", "words = [word for word in parts[i].split() if word]\n", "if parts[i]:\n", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Condition", "Assign'", "Assign'", "For", "Condition", "Return'", "Assign'", "Condition", "Expr'", "Expr'" ]
[ "def FUNC_0(self):...\n", "self.assertTrue(self.client.login(username='autotest', password='password'))\n", "settings.SSH_PRIVATE_KEY = '<some-ssh-private-key>'\n" ]
[ "def setUp(self):...\n", "self.assertTrue(self.client.login(username='autotest', password='password'))\n", "settings.SSH_PRIVATE_KEY = '<some-ssh-private-key>'\n" ]
[ 0, 5, 0 ]
[ "FunctionDef'", "Expr'", "Assign'" ]
[ "def FUNC_28(VAR_25):...\n", "VAR_73 = '%s/bibclassify' % bconfig.CFG_TMPDIR\n", "if not os.path.isdir(VAR_73):\n", "os.mkdir(VAR_73)\n", "VAR_40 = 'bibclassify_%s.xml' % VAR_25\n", "VAR_74 = os.path.join(VAR_73, VAR_40)\n", "return VAR_74\n" ]
[ "def get_tmp_file(recid):...\n", "tmp_directory = '%s/bibclassify' % bconfig.CFG_TMPDIR\n", "if not os.path.isdir(tmp_directory):\n", "os.mkdir(tmp_directory)\n", "filename = 'bibclassify_%s.xml' % recid\n", "abs_path = os.path.join(tmp_directory, filename)\n", "return abs_path\n" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Condition", "Expr'", "Assign'", "Assign'", "Return'" ]
[ "def FUNC_40(self, VAR_35):...\n", "\"\"\"docstring\"\"\"\n", "for VAR_40, (i, j) in VAR_35:\n", "self.set_name(VAR_40, i, VAR_42=j)\n" ]
[ "def take_names(self, names):...\n", "\"\"\"docstring\"\"\"\n", "for name, (i, j) in names:\n", "self.set_name(name, i, end=j)\n" ]
[ 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "For", "Expr'" ]
[ "def FUNC_10(self, VAR_17):...\n", "if self.current.user_id is None or 'login_process' in VAR_17:\n", "self.client_queue.send_to_default_exchange(self.sessid, VAR_17)\n", "self.client_queue.send_to_prv_exchange(self.current.user_id, VAR_17)\n" ]
[ "def send_output(self, output):...\n", "if self.current.user_id is None or 'login_process' in output:\n", "self.client_queue.send_to_default_exchange(self.sessid, output)\n", "self.client_queue.send_to_prv_exchange(self.current.user_id, output)\n" ]
[ 0, 0, 0, 0 ]
[ "FunctionDef'", "Condition", "Expr'", "Expr'" ]
[ "def FUNC_4(self):...\n", "self.assertTrue(self.client.login(VAR_1='autotest-1', VAR_2='password'))\n" ]
[ "def setUp(self):...\n", "self.assertTrue(self.client.login(username='autotest-1', password='password'))\n" ]
[ 0, 5 ]
[ "FunctionDef'", "Expr'" ]
[ "def FUNC_9(self, VAR_10):...\n", "VAR_22 = _('local_path not supported')\n" ]
[ "def local_path(self, volume):...\n", "msg = _('local_path not supported')\n" ]
[ 0, 0 ]
[ "FunctionDef'", "Assign'" ]
[ "def FUNC_14(self):...\n", "\"\"\"docstring\"\"\"\n", "self.check_protected_output()\n", "VAR_20 = self.dag.reason(self).missing_output.intersection(self.existing_output\n )\n", "if VAR_20:\n", "logger.warning(\n \"\"\"Warning: the following output files of rule {} were not present when the DAG was ...
[ "def prepare(self):...\n", "\"\"\"docstring\"\"\"\n", "self.check_protected_output()\n", "unexpected_output = self.dag.reason(self).missing_output.intersection(self.\n existing_output)\n", "if unexpected_output:\n", "logger.warning(\n \"\"\"Warning: the following output files of rule {} were not pre...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Expr'", "Assign'", "Condition", "Expr'", "Condition", "For", "For", "Expr'", "Expr'", "For", "Expr'", "Condition", "Expr'" ]
[ "def FUNC_9(self, *VAR_15, **VAR_75):...\n", "" ]
[ "def newfn(self, *a, **env):...\n", "" ]
[ 0, 0 ]
[ "FunctionDef'", "Condition" ]
[ "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 __init__(self, VAR_15):...\n", "self._osx_java_home_exe = VAR_15\n" ]
[ "def __init__(self, osx_java_home_exe):...\n", "self._osx_java_home_exe = osx_java_home_exe\n" ]
[ 0, 0 ]
[ "FunctionDef'", "Assign'" ]
[ "def FUNC_41(self):...\n", "self.cursor.execute('create table t1(a int, b int, c int, d int)')\n", "self.cursor.execute('insert into t1 values(1,2,3,4)')\n", "VAR_24 = self.cursor.execute('select * from t1').fetchone()\n", "VAR_20 = str(VAR_24)\n", "self.assertEqual(VAR_20, '(1, 2, 3, 4)')\n", "VAR_20 =...
[ "def test_row_repr(self):...\n", "self.cursor.execute('create table t1(a int, b int, c int, d int)')\n", "self.cursor.execute('insert into t1 values(1,2,3,4)')\n", "row = self.cursor.execute('select * from t1').fetchone()\n", "result = str(row)\n", "self.assertEqual(result, '(1, 2, 3, 4)')\n", "result =...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Expr'", "Expr'", "Assign'", "Assign'", "Expr'", "Assign'", "Expr'", "Assign'", "Expr'" ]
[ "def FUNC_4(VAR_5):...\n", "\"\"\"docstring\"\"\"\n", "VAR_26 = sql.connect('./resources/users.db')\n", "VAR_28 = sql.connect('./resources/messages.db')\n", "VAR_29 = []\n", "VAR_38 = VAR_26.cursor()\n", "print(''.join(traceback.format_exception(etype=type(e), value=e, tb=e.\n __traceback__)))\n", ...
[ "def get_user_profile(user_id):...\n", "\"\"\"docstring\"\"\"\n", "user_con = sql.connect('./resources/users.db')\n", "message_con = sql.connect('./resources/messages.db')\n", "messages = []\n", "user_cur = user_con.cursor()\n", "print(''.join(traceback.format_exception(etype=type(e), value=e, tb=e.\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 ]
[ "FunctionDef'", "Docstring", "Assign'", "Assign'", "Assign'", "Assign'", "Expr'", "Expr'", "Expr'", "Expr'", "Expr'", "Assign'", "Expr'", "Return'", "Assign'", "Assign'", "Assign'", "Assign'", "Expr'", "Assign'", "Condition", "For", "Assign'", "Expr'", "Assign'", "A...
[ "def FUNC_14(self, VAR_30, VAR_31, VAR_32=None):...\n", "VAR_53 = mock.Mock()\n", "VAR_53.default_scheme = 'https'\n", "VAR_53.validate_connection = VAR_31\n", "VAR_54 = FUNC_1()\n", "if VAR_32:\n", "VAR_54.concurrent_connections = VAR_32\n", "VAR_54.http_provider = VAR_53\n", "VAR_54.nsx_api_manage...
[ "def new_mocked_cluster(self, conf_managers, validate_conn_func,...\n", "mock_provider = mock.Mock()\n", "mock_provider.default_scheme = 'https'\n", "mock_provider.validate_connection = validate_conn_func\n", "nsxlib_config = get_default_nsxlib_config()\n", "if concurrent_connections:\n", "nsxlib_config...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Assign'", "Assign'", "Assign'", "Condition", "Assign'", "Assign'", "Assign'", "Return'" ]
[ "def FUNC_11():...\n", "VAR_19 = '{}/.cache/syscall_number'.format(os.environ['HOME'])\n", "if not pathlib.Path(VAR_19).exists():\n", "os.mkdir(VAR_19)\n" ]
[ "def check_cache_directory():...\n", "directory = '{}/.cache/syscall_number'.format(os.environ['HOME'])\n", "if not pathlib.Path(directory).exists():\n", "os.mkdir(directory)\n" ]
[ 0, 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Condition", "Expr'" ]
[ "@classmethod...\n", "return VAR_12.tool_jar_from_products(VAR_6, 'compiler-bridge', VAR_12.\n options_scope)\n" ]
[ "@classmethod...\n", "return cls.tool_jar_from_products(products, 'compiler-bridge', cls.\n options_scope)\n" ]
[ 0, 0 ]
[ "Condition", "Return'" ]
[ "def FUNC_7(self):...\n", "self.assert404(self.client.get(url_for('oauthclient.authorized', remote_app\n ='invalid')))\n", "self.assert404(self.client.get(url_for('oauthclient.disconnect', remote_app\n ='invalid')))\n" ]
[ "def test_no_remote_app(self):...\n", "self.assert404(self.client.get(url_for('oauthclient.authorized', remote_app\n ='invalid')))\n", "self.assert404(self.client.get(url_for('oauthclient.disconnect', remote_app\n ='invalid')))\n" ]
[ 0, 0, 0 ]
[ "FunctionDef'", "Expr'", "Expr'" ]
[ "__author__ = 'Johannes Köster'\n", "__copyright__ = 'Copyright 2015, Johannes Köster'\n", "__email__ = 'koester@jimmy.harvard.edu'\n", "__license__ = 'MIT'\n", "import re\n", "import os\n", "import sys\n", "import signal\n", "import json\n", "import urllib\n", "from collections import OrderedDi...
[ "__author__ = 'Johannes Köster'\n", "__copyright__ = 'Copyright 2015, Johannes Köster'\n", "__email__ = 'koester@jimmy.harvard.edu'\n", "__license__ = 'MIT'\n", "import re\n", "import os\n", "import sys\n", "import signal\n", "import json\n", "import urllib\n", "from collections import OrderedDi...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "Assign'", "Assign'", "Assign'", "Assign'", "Import'", "Import'", "Import'", "Import'", "Import'", "Import'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "ImportFrom'", "ImportFrom'", ...
[ "def FUNC_6(self):...\n", "VAR_2 = CLASS_1.construct_testscript_command('test_program.py')\n", "VAR_3, VAR_4 = run_shell_command(VAR_2)\n", "VAR_5 = \"\"\"test_program Z\nnon-interactive mode.\nExiting...\n\"\"\"\n", "self.assertEqual(VAR_3, VAR_5)\n", "self.assertEqual(VAR_4, '')\n" ]
[ "def test_run_shell_command_without_stdin(self):...\n", "command = RunShellCommandTest.construct_testscript_command('test_program.py')\n", "stdout, stderr = run_shell_command(command)\n", "expected = \"\"\"test_program Z\nnon-interactive mode.\nExiting...\n\"\"\"\n", "self.assertEqual(stdout, expected)\n", ...
[ 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Assign'", "Assign'", "Assign'", "Expr'", "Expr'" ]
[ "import os\n", "import sys\n", "import unittest\n", "from coalib.misc.Shell import escape_path_argument, prepare_string_argument, run_interactive_shell_command, run_shell_command\n", "def FUNC_0(self):...\n", "VAR_1 = 'sh'\n", "self.assertEqual(escape_path_argument('/home/usr/a-file', VAR_1),\n '/hom...
[ "import os\n", "import sys\n", "import unittest\n", "from coalib.misc.Shell import escape_path_argument, prepare_string_argument, run_interactive_shell_command, run_shell_command\n", "def test_escape_path_argument_sh(self):...\n", "_type = 'sh'\n", "self.assertEqual(escape_path_argument('/home/usr/a-fil...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2 ]
[ "Import'", "Import'", "Import'", "ImportFrom'", "FunctionDef'", "Assign'", "Expr'", "Expr'", "Expr'", "Expr'", "Expr'", "FunctionDef'", "Assign'", "Expr'", "Expr'", "Expr'", "Expr'", "Expr'", "Expr'", "Expr'", "FunctionDef'", "Assign'", "Expr'", "Expr'", "Expr'", "E...
[ "def FUNC_21(VAR_6, VAR_7=False):...\n", "\"\"\"docstring\"\"\"\n", "if not isinstance(VAR_6, (list, tuple)):\n", "VAR_6 = [VAR_6]\n", "VAR_36 = [FUNC_16(VAR_15) for VAR_15 in VAR_6]\n", "LOG.info(\"\"\"Current device storage tree:\n%s\"\"\", '\\n'.join(FUNC_18(VAR_5) for\n VAR_5 in VAR_36))\n", "VAR...
[ "def clear_holders(base_paths, try_preserve=False):...\n", "\"\"\"docstring\"\"\"\n", "if not isinstance(base_paths, (list, tuple)):\n", "base_paths = [base_paths]\n", "holder_trees = [gen_holders_tree(path) for path in base_paths]\n", "LOG.info(\"\"\"Current device storage tree:\n%s\"\"\", '\\n'.join(\n ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ "FunctionDef'", "Docstring", "Condition", "Assign'", "Assign'", "Expr'", "Assign'", "For", "Assign'", "Assign'", "Condition", "Condition", "Expr'", "Expr'", "Expr'", "Expr'" ]
[ "import psycopg2\n", "import consts\n", "from metrics.Network.partition import partition_bots, partition_groups\n", "from sentiment_analysis import sentiment_compound_score\n", "VAR_0 = psycopg2.connect(**consts.db_creds)\n", "def FUNC_0(VAR_1):...\n", "VAR_5 = {}\n", "for VAR_24 in VAR_1:\n", "VAR_...
[ "import psycopg2\n", "import consts\n", "from metrics.Network.partition import partition_bots, partition_groups\n", "from sentiment_analysis import sentiment_compound_score\n", "connection = psycopg2.connect(**consts.db_creds)\n", "def get_edges(users):...\n", "user_dict = {}\n", "for i in users:\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 ]
[ "Import'", "Import'", "ImportFrom'", "ImportFrom'", "Assign'", "FunctionDef'", "Assign'", "For", "Assign'", "Assign'", "Assign'", "Expr'", "Expr'", "Assign'", "For", "Expr'", "Expr'", "Assign'", "Expr'", "Assign'", "Assign'", "Condition", "Assign'", "Expr'", "Expr'", ...