Dataset Viewer
Auto-converted to Parquet Duplicate
text
stringlengths
1.11k
240k
line_mean
float64
21.3
77.3
texts
sequence
scores
sequence
num_lines
int64
31
5.26k
from django.contrib.auth import authenticate, logout, login from django.contrib.auth import get_user_model from django.http import HttpResponse from app.models import Label, Place, Guide, Question, Answer from hashlib import md5 import json import re LOGIN_OK_CODE = 200 LOGIN_OK = 'Login success' LOGOUT_OK_CODE = 201...
38.63113
[ "from django.contrib.auth import authenticate, logout, login\n", "from django.contrib.auth import get_user_model\n", "from django.http import HttpResponse\n", "from app.models import Label, Place, Guide, Question, Answer\n", "from hashlib import md5\n", "import json\n", "import re\n", "\n", "\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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
469
""" Client ====== The embedly object that interacts with the service """ from __future__ import absolute_import, unicode_literals import re import httplib2 import json from urllib import quote, urlencode from .models import Url def get_user_agent(): from . import __version__ return 'Mozilla/5.0 (compatible;...
26.616279
[ "\"\"\"\n", "Client\n", "======\n", "\n", "The embedly object that interacts with the service\n", "\"\"\"\n", "from __future__ import absolute_import, unicode_literals\n", "import re\n", "import httplib2\n", "import json\n", "from urllib import quote, urlencode\n", "\n", "from .models import...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
172
def get_clean_HICP(data_dir="../data/", output_dir="../clean_data/", year=2016, quarter=1): ''' This function takes a raw csv file from SPF and creates a new csv file with forecasts only for HICP ''' import pandas as pd ...
36.204082
[ "\n", "\n", "def get_clean_HICP(data_dir=\"../data/\",\n", " output_dir=\"../clean_data/\",\n", " year=2016,\n", " quarter=1):\n", " '''\n", " This function takes a raw csv file from SPF\n", " and creates a new csv file with fore...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.023529411764705882, 0, 0, 0.06521739130434782, 0.056179775280898875, 0.044444444444444446, 0.046511627906976744, 0.046511627906976744, ...
98
# Copyright (c) 2015 SUSE Linux GmbH. All rights reserved. # # This file is part of kiwi. # # kiwi is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any la...
33.612245
[ "# Copyright (c) 2015 SUSE Linux GmbH. All rights reserved.\n", "#\n", "# This file is part of kiwi.\n", "#\n", "# kiwi is free software: you can redistribute it and/or modify\n", "# it under the terms of the GNU General Public License as published by\n", "# the Free Software Foundation, either version...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.022222222222222223, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.012345679012345678 ]
49
#!/usr/bin/env python ''' Use processes and Netmiko to connect to each of the devices in the database. Execute 'show version' on each device. Record the amount of time required to do this. DISCLAIMER NOTE: Solution is limited to the exercise's scope ''' from net_system.models import NetworkDevice import django from mu...
35.06383
[ "#!/usr/bin/env python\n", "'''\n", "Use processes and Netmiko to connect to each of the devices in the database.\n", "Execute 'show version' on each device. Record the amount of time required to do this.\n", "DISCLAIMER NOTE: Solution is limited to the exercise's scope\n", "'''\n", "\n", "from net_sy...
[ 0, 0, 0, 0.011627906976744186, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.045454545454545456, 0.037037037037037035, 0, 0.008547008547008548, 0.02247191011235955, 0, 0, 0.023809523809523808, 0, 0.08333333333333333, 0.019801980198019802, 0, 0, 0, 0, 0, 0, 0, 0, 0...
47
import random from copy import deepcopy DIRECTIONS = ['right', 'left', 'up', 'down'] def locate_free_square(width, height, obstacles): square = {'x': 0, 'y': 0} while square in obstacles: square['x'] = random.choice( range(0,width) ) square['y'] = random.choice( range(0,height) ) retur...
22.963636
[ "import random\n", "from copy import deepcopy\n", "\n", "DIRECTIONS = ['right', 'left', 'up', 'down']\n", "\n", "def locate_free_square(width, height, obstacles):\n", "\n", " square = {'x': 0, 'y': 0}\n", "\n", " while square in obstacles:\n", "\n", " square['x'] = random.choice( ...
[ 0, 0, 0, 0, 0, 0.02, 0, 0, 0, 0, 0, 0.05555555555555555, 0.05454545454545454, 0, 0, 0, 0.024390243902439025, 0, 0, 0, 0, 0, 0, 0, 0, 0.03773584905660377, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
55
# -*- coding: utf-8 -*- # Generated by Django 1.9 on 2016-01-22 14:55 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateMo...
33.428571
[ "# -*- coding: utf-8 -*-\n", "# Generated by Django 1.9 on 2016-01-22 14:55\n", "from __future__ import unicode_literals\n", "\n", "from django.db import migrations, models\n", "import django.db.models.deletion\n", "\n", "class Migration(migrations.Migration):\n", "\n", " initial = True\n", "...
[ 0, 0, 0, 0, 0, 0, 0, 0.02564102564102564, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.008695652173913044, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.008695652173913044, 0, 0, 0.008547008547008548, 0, 0, 0 ]
35
# -*- coding: utf-8 -*- from module.plugins.internal.MultiHoster import MultiHoster, create_getInfo class ZeveraCom(MultiHoster): __name__ = "ZeveraCom" __type__ = "hoster" __version__ = "0.25" __pattern__ = r'http://(?:www\.)?zevera\.com/.+' __description__ = """Zevera.com hoster plugin"...
30.222222
[ "# -*- coding: utf-8 -*-\n", "\n", "from module.plugins.internal.MultiHoster import MultiHoster, create_getInfo\n", "\n", "\n", "class ZeveraCom(MultiHoster):\n", " __name__ = \"ZeveraCom\"\n", " __type__ = \"hoster\"\n", " __version__ = \"0.25\"\n", "\n", " __pattern__ = r'htt...
[ 0, 0, 0, 0, 0, 0, 0.03333333333333333, 0.037037037037037035, 0, 0, 0, 0, 0, 0.03333333333333333, 0.016666666666666666, 0, 0, 0.034482758620689655, 0.010309278350515464, 0, 0, 0.00819672131147541, 0.02702702702702703, 0, 0, 0, 0, 0, 0.04, 0, 0, 0.01204819...
36
# -*- coding: utf-8 -*- import numpy as np import abel import matplotlib.pyplot as plt IM = np.loadtxt("data/VMI_art1.txt.bz2") legendre_orders = [0, 2, 4] # Legendre polynomial orders proj_angles = range(0, 180, 10) # projection angles in 10 degree steps radial_step = 1 # pixel grid smoothing = 1 # smoothing 1/e...
41.944444
[ "# -*- coding: utf-8 -*-\n", "import numpy as np\n", "import abel\n", "import matplotlib.pyplot as plt\n", "\n", "IM = np.loadtxt(\"data/VMI_art1.txt.bz2\")\n", "\n", "legendre_orders = [0, 2, 4] # Legendre polynomial orders\n", "proj_angles = range(0, 180, 10) # projection angles in 10 degree ste...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.01282051282051282, 0, 0, 0, 0, 0, 0, 0.014084507042253521, 0.02666666666666667, 0.018518518518518517, 0, 0, 0.014705882352941176, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.05405405405405406, 0.05405405405405406, 0.03389...
72
import os import sys from PyQt4.QtCore import * from PyQt4.QtGui import * from sqlalchemy import * from sqlalchemy.orm import * from databaseschema import * from genericdelegates import * from functions import * import modelsandviews import ui_forms.ui_findform import receiveform import batchform import productionfor...
44.886463
[ "import os\n", "import sys\n", "from PyQt4.QtCore import *\n", "from PyQt4.QtGui import *\n", "from sqlalchemy import *\n", "from sqlalchemy.orm import *\n", "\n", "from databaseschema import *\n", "from genericdelegates import *\n", "from functions import *\n", "import modelsandviews\n", "im...
[ 0, 0, 0, 0, 0.07692307692307693, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.038461538461538464, 0, 0, 0.02857142857142857, 0, 0.1111111111111111, 0.037037037037037035, 0, 0, 0, 0, 0.1111111111111111, 0, 0, 0.2, 0, 0, 0.2, 0, 0, 0, ...
687
import datetime from django.conf import settings from django.contrib.admin.util import lookup_field, display_for_field, label_for_field from django.contrib.admin.views.main import ALL_VAR, EMPTY_CHANGELIST_VALUE from django.contrib.admin.views.main import ORDER_VAR, ORDER_TYPE_VAR, PAGE_VAR, SEARCH_VAR from django.cor...
42.917355
[ "import datetime\n", "\n", "from django.conf import settings\n", "from django.contrib.admin.util import lookup_field, display_for_field, label_for_field\n", "from django.contrib.admin.views.main import ALL_VAR, EMPTY_CHANGELIST_VALUE\n", "from django.contrib.admin.views.main import ORDER_VAR, ORDER_TYPE_V...
[ 0, 0, 0, 0.011494252873563218, 0, 0.010869565217391304, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.010638297872340425, 0, 0, 0, 0, 0.011111111111111112, 0, 0, 0, 0.022727272727272728, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
121
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2009 Mozilla Corporation, Zuza Software Foundation # # This file is part of Pootle. # # Pootle is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; eith...
38.659091
[ "#!/usr/bin/env python\n", "# -*- coding: utf-8 -*-\n", "# \n", "# Copyright 2009 Mozilla Corporation, Zuza Software Foundation\n", "# \n", "# This file is part of Pootle.\n", "#\n", "# Pootle is free software; you can redistribute it and/or modify\n", "# it under the terms of the GNU General Public...
[ 0, 0, 0.3333333333333333, 0, 0.3333333333333333, 0, 0, 0, 0, 0, 0, 0.3333333333333333, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.037037037037037035, 0, 0, 0.047619047619047616, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.01136...
88
import os import re from setuptools import setup as setup def read(path): global os with open(os.path.join(os.path.dirname(__file__), path), 'r') as f: data = f.read() return data.strip() def get_version(): global os, re, read _version_re = re.compile(r'\s*__version__\s*=\s*\'(.*)\'\s*')...
28.133333
[ "import os\n", "import re\n", "from setuptools import setup as setup\n", "\n", "\n", "def read(path):\n", " global os\n", " with open(os.path.join(os.path.dirname(__file__), path), 'r') as f:\n", " data = f.read()\n", " return data.strip()\n", "\n", "\n", "def get_version():\...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
45
End of preview. Expand in Data Studio

No dataset card yet

Downloads last month
4