Datasets:

Modalities:
Tabular
Text
Formats:
parquet
Tags:
code
Libraries:
Datasets
Dask
License:
Dataset Viewer
Auto-converted to Parquet Duplicate
index
int64
0
95k
input
stringlengths
0
248k
gt
stringlengths
3
39.5k
hash
int64
-9,223,358,438,122,498,000
9,222,739,030B
full_line
stringlengths
6
256k
0
"""<STR_LIT>""" <EOL> from bootstrap import Bootstrap <EOL> from fund import InstantPaymentNotificationHandler <EOL> from fund import ThankYouHandler <EOL> from view import * <EOL> mapping = [ ( <EOL> r'<STR_LIT:/>' , <EOL> Index <EOL> ) , ( <EOL> r'<STR_LIT>' , <EOL> InstantPaymentNotificationHandler <EOL> ) , ( <EOL...
r'<STR_LIT>' ,
-2,647,571,882,651,456,500
"""<STR_LIT>""" <EOL> from bootstrap import Bootstrap <EOL> from fund import InstantPaymentNotificationHandler <EOL> from fund import ThankYouHandler <EOL> from view import * <EOL> mapping = [ ( <EOL> r'<STR_LIT:/>' , <EOL> Index <EOL> ) , ( <EOL> r'<STR_LIT>' , <EOL> InstantPaymentNotificationHandler <EOL> ) , ( <EOL...
1
import msgpack <EOL> import gevent . pool <EOL> import gevent . queue <EOL> import gevent . event <EOL> import gevent . local <EOL> import gevent . lock <EOL> import logging <EOL> import sys <EOL> import gevent_zmq as zmq <EOL> from . exceptions import TimeoutExpired <EOL> from . context import Context <EOL> from . ch...
unpacker . feed ( blob )
4,249,247,596,272,446,000
import msgpack <EOL> import gevent . pool <EOL> import gevent . queue <EOL> import gevent . event <EOL> import gevent . local <EOL> import gevent . lock <EOL> import logging <EOL> import sys <EOL> import gevent_zmq as zmq <EOL> from . exceptions import TimeoutExpired <EOL> from . context import Context <EOL> from . ch...
2
"""<STR_LIT>""" <EOL> import os <EOL> import sys
if __name__ == "<STR_LIT:__main__>" :
8,646,447,642,098,035,000
"""<STR_LIT>""" <EOL> import os <EOL> import sys <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> os . environ . setdefault ( "<STR_LIT>" , "<STR_LIT>" ) <EOL> from django . core . management import execute_from_command_line <EOL> execute_from_command_line ( sys . argv ) </s>
3
"""<STR_LIT>""" <EOL> import os <EOL> cwd = os . path . dirname ( __file__ ) <EOL> __version__ = open ( os . path . join ( cwd , '<STR_LIT>' , '<STR_LIT>' ) , '<STR_LIT:r>' ) . read ( ) . strip ( ) <EOL> try : <EOL> from setuptools import setup , find_packages <EOL> except ImportError :
from ez_setup import use_setuptools
-6,649,849,651,591,177,000
"""<STR_LIT>""" <EOL> import os <EOL> cwd = os . path . dirname ( __file__ ) <EOL> __version__ = open ( os . path . join ( cwd , '<STR_LIT>' , '<STR_LIT>' ) , '<STR_LIT:r>' ) . read ( ) . strip ( ) <EOL> try : <EOL> from setuptools import setup , find_packages <EOL> except ImportError : <EOL> from ez_setup import use_...
4
<s> import os
2,059,922,520,752,426,200
import os <EOL> import sys <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> os . environ . setdefault ( "<STR_LIT>" , "<STR_LIT>" ) <EOL> from django . core . management import execute_from_command_line <EOL> execute_from_command_line ( sys . argv ) </s>
5
from __future__ import unicode_literals <EOL> from django . db import models , migrations <EOL> class Migration ( migrations . Migration ) : <EOL> dependencies = [ <EOL> ]
operations = [
7,964,133,079,669,604,000
from __future__ import unicode_literals <EOL> from django . db import models , migrations <EOL> class Migration ( migrations . Migration ) : <EOL> dependencies = [ <EOL> ] <EOL> operations = [ <EOL> migrations . CreateModel ( <EOL> name = '<STR_LIT>' , <EOL> fields = [ <EOL> ( '<STR_LIT:id>' , models . AutoField ( ver...
6
import twitter <EOL> from django . contrib import messages <EOL> from django . contrib . auth . decorators import user_passes_test <EOL> from django . db import transaction <EOL> from django . shortcuts import redirect , render <EOL> from twobuntu . news . forms import AddItemForm <EOL> @ user_passes_test ( lambda u :...
else :
1,494,261,164,383,152,600
import twitter <EOL> from django . contrib import messages <EOL> from django . contrib . auth . decorators import user_passes_test <EOL> from django . db import transaction <EOL> from django . shortcuts import redirect , render <EOL> from twobuntu . news . forms import AddItemForm <EOL> @ user_passes_test ( lambda u :...
7
"""<STR_LIT>""" <EOL> __all__ = ( "<STR_LIT>" , "<STR_LIT>" ) <EOL> class DjangoWSGIException ( Exception ) : <EOL> """<STR_LIT>""" <EOL> pass
class ApplicationCallError ( DjangoWSGIException ) :
7,769,531,054,714,306,000
"""<STR_LIT>""" <EOL> __all__ = ( "<STR_LIT>" , "<STR_LIT>" ) <EOL> class DjangoWSGIException ( Exception ) : <EOL> """<STR_LIT>""" <EOL> pass <EOL> class ApplicationCallError ( DjangoWSGIException ) : <EOL> """<STR_LIT>""" <EOL> pass </s>
8
import boto <EOL> import boto . s3 . connection <EOL> from django . conf import settings <EOL> import logging <EOL> log = logging . getLogger ( __name__ ) <EOL> def get_s3_connection ( ) : <EOL> if settings . S3_ACCESS_KEY and settings . S3_SECRET_KEY and settings . S3_HOST : <EOL> log . debug ( '<STR_LIT>' . <EOL> fo...
aws_secret_access_key = settings . S3_SECRET_KEY ,
-5,508,620,440,111,302,000
import boto <EOL> import boto . s3 . connection <EOL> from django . conf import settings <EOL> import logging <EOL> log = logging . getLogger ( __name__ ) <EOL> def get_s3_connection ( ) : <EOL> if settings . S3_ACCESS_KEY and settings . S3_SECRET_KEY and settings . S3_HOST : <EOL> log . debug ( '<STR_LIT>' . <EOL> fo...
9
from django . db import models <EOL> import datetime <EOL> from common . models import Project <EOL> class Stage ( models . Model ) : <EOL> name = models . CharField ( max_length = <NUM_LIT> ) <EOL> project = models . ForeignKey ( Project )
text = models . TextField ( default = '<STR_LIT>' , blank = True )
-1,955,392,957,975,076,900
from django . db import models <EOL> import datetime <EOL> from common . models import Project <EOL> class Stage ( models . Model ) : <EOL> name = models . CharField ( max_length = <NUM_LIT> ) <EOL> project = models . ForeignKey ( Project ) <EOL> text = models . TextField ( default = '<STR_LIT>' , blank = True ) <EOL>...
10
from __future__ import unicode_literals <EOL> from django . db import models , migrations <EOL> class Migration ( migrations . Migration ) : <EOL> dependencies = [ <EOL> ( '<STR_LIT>' , '<STR_LIT>' ) , <EOL> ] <EOL> operations = [
migrations . AddField (
3,246,296,455,906,453,500
from __future__ import unicode_literals <EOL> from django . db import models , migrations <EOL> class Migration ( migrations . Migration ) : <EOL> dependencies = [ <EOL> ( '<STR_LIT>' , '<STR_LIT>' ) , <EOL> ] <EOL> operations = [ <EOL> migrations . AddField ( <EOL> model_name = '<STR_LIT>' , <EOL> name = '<STR_LIT>' ...
11
import gevent <EOL> from gevent import monkey <EOL> monkey . patch_all ( ) <EOL> import time <EOL> import smtplib <EOL> TEST_MAIL = """<STR_LIT>""" <EOL> def timeit ( func ) : <EOL> def wrap ( num , port , * args , ** kwargs ) : <EOL> max_rqs = <NUM_LIT:0> <EOL> for _ in xrange ( <NUM_LIT:3> ) : <EOL> conns = [ smtpli...
@ timeit
1,045,506,046,089,538,200
import gevent <EOL> from gevent import monkey <EOL> monkey . patch_all ( ) <EOL> import time <EOL> import smtplib <EOL> TEST_MAIL = """<STR_LIT>""" <EOL> def timeit ( func ) : <EOL> def wrap ( num , port , * args , ** kwargs ) : <EOL> max_rqs = <NUM_LIT:0> <EOL> for _ in xrange ( <NUM_LIT:3> ) : <EOL> conns = [ smtpli...
12
import sys <EOL> import json <EOL> if sys . version_info < ( <NUM_LIT:3> , ) : <EOL> def b ( x ) : <EOL> return x <EOL> def s ( x ) : <EOL> return x <EOL> else : <EOL> def b ( x ) : <EOL> return bytes ( x , '<STR_LIT:utf-8>' ) <EOL> def s ( x ) : <EOL> return x . decode ( '<STR_LIT:utf-8>' ) <EOL> def parse_payload ( ...
missing_values . append ( x )
3,101,485,116,427,074,000
import sys <EOL> import json <EOL> if sys . version_info < ( <NUM_LIT:3> , ) : <EOL> def b ( x ) : <EOL> return x <EOL> def s ( x ) : <EOL> return x <EOL> else : <EOL> def b ( x ) : <EOL> return bytes ( x , '<STR_LIT:utf-8>' ) <EOL> def s ( x ) : <EOL> return x . decode ( '<STR_LIT:utf-8>' ) <EOL> def parse_payload ( ...
13
from flask_resty import Api , GenericModelView <EOL> from marshmallow import fields , Schema <EOL> import pytest <EOL> from sqlalchemy import Column , Integer , String <EOL> import helpers <EOL> @ pytest . yield_fixture <EOL> def models ( db ) : <EOL> class Widget ( db . Model ) : <EOL> __tablename__ = '<STR_LIT>' <EO...
assert response . status_code == <NUM_LIT:200>
939,424,398,492,461,300
from flask_resty import Api , GenericModelView <EOL> from marshmallow import fields , Schema <EOL> import pytest <EOL> from sqlalchemy import Column , Integer , String <EOL> import helpers <EOL> @ pytest . yield_fixture <EOL> def models ( db ) : <EOL> class Widget ( db . Model ) : <EOL> __tablename__ = '<STR_LIT>' <EO...
14
<s> from . dogpile import Dogpile </s>
-5,838,580,870,481,852,000
from . dogpile import Dogpile </s>
15
"""<STR_LIT>""" <EOL> import pygame <EOL> from pygame . locals import * <EOL> import time <EOL> import datetime <EOL> import sys <EOL> import os <EOL> import glob <EOL> import subprocess <EOL> os . environ [ "<STR_LIT>" ] = "<STR_LIT>" <EOL> os . environ [ "<STR_LIT>" ] = "<STR_LIT>" <EOL> os . environ [ "<STR_LIT>" ]...
song_title = line1
-7,707,515,174,012,346,000
"""<STR_LIT>""" <EOL> import pygame <EOL> from pygame . locals import * <EOL> import time <EOL> import datetime <EOL> import sys <EOL> import os <EOL> import glob <EOL> import subprocess <EOL> os . environ [ "<STR_LIT>" ] = "<STR_LIT>" <EOL> os . environ [ "<STR_LIT>" ] = "<STR_LIT>" <EOL> os . environ [ "<STR_LIT>" ]...
16
'''<STR_LIT>''' <EOL> import memcache <EOL> class MemConnError ( Exception ) : <EOL> """<STR_LIT:U+0020>""" <EOL> def __str__ ( self ) : <EOL> return "<STR_LIT>" <EOL> class MemClient : <EOL> '''<STR_LIT>''' <EOL> def __init__ ( self , timeout = <NUM_LIT:0> ) : <EOL> '''<STR_LIT:U+0020>''' <EOL> self . _hostname = "<S...
def set ( self , keyname , value ) :
-2,453,475,021,735,981,000
'''<STR_LIT>''' <EOL> import memcache <EOL> class MemConnError ( Exception ) : <EOL> """<STR_LIT:U+0020>""" <EOL> def __str__ ( self ) : <EOL> return "<STR_LIT>" <EOL> class MemClient : <EOL> '''<STR_LIT>''' <EOL> def __init__ ( self , timeout = <NUM_LIT:0> ) : <EOL> '''<STR_LIT:U+0020>''' <EOL> self . _hostname = "<S...
17
'''<STR_LIT>''' <EOL> from firefly . dbentrust . dbpool import dbpool <EOL> from firefly . dbentrust . madminanager import MAdminManager <EOL> from firefly . dbentrust import mmode <EOL> from firefly . dbentrust . memclient import mclient <EOL> import time <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> hostname = "...
'<STR_LIT>' : '<STR_LIT:test>' ,
-2,627,534,040,998,744,000
'''<STR_LIT>''' <EOL> from firefly . dbentrust . dbpool import dbpool <EOL> from firefly . dbentrust . madminanager import MAdminManager <EOL> from firefly . dbentrust import mmode <EOL> from firefly . dbentrust . memclient import mclient <EOL> import time <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> hostname = "...
18
"""<STR_LIT>""" <EOL> import pexpect <EOL> class connect ( ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , address ) : <EOL> self . address = "<STR_LIT>" <EOL> self . conn = None <EOL> self . connect ( address ) <EOL> def connect ( self , address , adapter = '<STR_LIT>' ) : <EOL> """<STR_LIT>""" <EOL> if self . ...
self . conn . expect ( expect , timeout )
6,417,182,875,197,234,000
"""<STR_LIT>""" <EOL> import pexpect <EOL> class connect ( ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , address ) : <EOL> self . address = "<STR_LIT>" <EOL> self . conn = None <EOL> self . connect ( address ) <EOL> def connect ( self , address , adapter = '<STR_LIT>' ) : <EOL> """<STR_LIT>""" <EOL> if self . ...
19
from __future__ import unicode_literals <EOL> from django . db import models , migrations <EOL> import wagtail . wagtailcore . fields <EOL> class Migration ( migrations . Migration ) :
dependencies = [
5,234,357,617,656,419,000
from __future__ import unicode_literals <EOL> from django . db import models , migrations <EOL> import wagtail . wagtailcore . fields <EOL> class Migration ( migrations . Migration ) : <EOL> dependencies = [ <EOL> ( '<STR_LIT>' , '<STR_LIT>' ) , <EOL> ] <EOL> operations = [ <EOL> migrations . AlterField ( <EOL> model_...
20
"""<STR_LIT>""" <EOL> print ( __doc__ ) <EOL> import matplotlib . pyplot as plt <EOL> import pyart <EOL> XSAPR_SW_FILE = '<STR_LIT>' <EOL> XSAPR_SE_FILE = '<STR_LIT>' <EOL> radar_sw = pyart . io . read_cfradial ( XSAPR_SW_FILE ) <EOL> radar_se = pyart . io . read_cfradial ( XSAPR_SE_FILE ) <EOL> gatefilter_se = pyart ...
grid_origin = ( <NUM_LIT> , - <NUM_LIT> ) ,
2,230,630,288,044,078,800
"""<STR_LIT>""" <EOL> print ( __doc__ ) <EOL> import matplotlib . pyplot as plt <EOL> import pyart <EOL> XSAPR_SW_FILE = '<STR_LIT>' <EOL> XSAPR_SE_FILE = '<STR_LIT>' <EOL> radar_sw = pyart . io . read_cfradial ( XSAPR_SW_FILE ) <EOL> radar_se = pyart . io . read_cfradial ( XSAPR_SE_FILE ) <EOL> gatefilter_se = pyart ...
21
<s> """<STR_LIT>"""
-3,873,617,321,924,022,300
"""<STR_LIT>""" <EOL> import os <EOL> import tempfile <EOL> import subprocess <EOL> from . . io . cfradial import read_cfradial <EOL> from . . io . common import _test_arguments <EOL> def read_radx ( filename , ** kwargs ) : <EOL> """<STR_LIT>""" <EOL> _test_arguments ( kwargs ) <EOL> tmpfile = tempfile . mkstemp ( su...
22
"""<STR_LIT>""" <EOL> import warnings <EOL> class MissingOptionalDependency ( Exception ) : <EOL> """<STR_LIT>""" <EOL> pass <EOL> class DeprecatedAttribute ( DeprecationWarning ) :
"""<STR_LIT>"""
-174,591,086,267,256,770
"""<STR_LIT>""" <EOL> import warnings <EOL> class MissingOptionalDependency ( Exception ) : <EOL> """<STR_LIT>""" <EOL> pass <EOL> class DeprecatedAttribute ( DeprecationWarning ) : <EOL> """<STR_LIT>""" <EOL> pass <EOL> class DeprecatedFunctionName ( DeprecationWarning ) : <EOL> """<STR_LIT>""" <EOL> pass <EOL> def _...
23
"""<STR_LIT>""" <EOL> import warnings <EOL> import numpy as np <EOL> from . . config import FileMetadata , get_fillvalue <EOL> from . . core . radar import Radar <EOL> from . common import make_time_unit_str , _test_arguments , prepare_for_read <EOL> from . nexrad_level2 import NEXRADLevel2File <EOL> from . . lazydict...
longitude = filemetadata ( '<STR_LIT>' )
4,050,501,666,066,256,000
"""<STR_LIT>""" <EOL> import warnings <EOL> import numpy as np <EOL> from . . config import FileMetadata , get_fillvalue <EOL> from . . core . radar import Radar <EOL> from . common import make_time_unit_str , _test_arguments , prepare_for_read <EOL> from . nexrad_level2 import NEXRADLevel2File <EOL> from . . lazydict...
24
"""<STR_LIT>""" <EOL> import warnings <EOL> import numpy as np <EOL> from netCDF4 import date2num <EOL> from . . config import FileMetadata , get_fillvalue <EOL> from . . core . radar import Radar <EOL> from . common import make_time_unit_str , _test_arguments , prepare_for_read <EOL> from . uffile import UFFile <EOL>...
altitude [ '<STR_LIT:data>' ] = np . array ( [ height ] , dtype = '<STR_LIT>' )
-8,306,098,773,956,531,000
"""<STR_LIT>""" <EOL> import warnings <EOL> import numpy as np <EOL> from netCDF4 import date2num <EOL> from . . config import FileMetadata , get_fillvalue <EOL> from . . core . radar import Radar <EOL> from . common import make_time_unit_str , _test_arguments , prepare_for_read <EOL> from . uffile import UFFile <EOL>...
25
"""<STR_LIT>""" <EOL> import pyart <EOL> radar = pyart . io . read_rsl ( '<STR_LIT>' ) <EOL> time_slice = slice ( None , <NUM_LIT> , <NUM_LIT> ) <EOL> range_slice = slice ( None , None , <NUM_LIT:12> ) <EOL> sweep_slice = slice ( None , <NUM_LIT:1> ) <EOL> rf_field = radar . fields [ '<STR_LIT>' ] <EOL> rf_data = rf_f...
radar . instrument_parameters [ '<STR_LIT>' ] [ '<STR_LIT:data>' ] = radar . instrument_parameters [ '<STR_LIT>' ] [ '<STR_LIT:data>' ] [ time_slice ]
-1,930,528,686,926,300,700
"""<STR_LIT>""" <EOL> import pyart <EOL> radar = pyart . io . read_rsl ( '<STR_LIT>' ) <EOL> time_slice = slice ( None , <NUM_LIT> , <NUM_LIT> ) <EOL> range_slice = slice ( None , None , <NUM_LIT:12> ) <EOL> sweep_slice = slice ( None , <NUM_LIT:1> ) <EOL> rf_field = radar . fields [ '<STR_LIT>' ] <EOL> rf_data = rf_f...
26
"""<STR_LIT>""" <EOL> from __future__ import print_function <EOL> import copy <EOL> import numpy as np <EOL> from netCDF4 import num2date , date2num <EOL> from . import datetime_utils <EOL> def is_vpt ( radar , offset = <NUM_LIT:0.5> ) : <EOL> """<STR_LIT>""" <EOL> elev = radar . elevation [ '<STR_LIT:data>' ] <EOL> r...
radar . fixed_angle [ '<STR_LIT:data>' ] = np . ones ( nsweeps , dtype = '<STR_LIT>' ) * <NUM_LIT>
-9,201,622,849,631,525,000
"""<STR_LIT>""" <EOL> from __future__ import print_function <EOL> import copy <EOL> import numpy as np <EOL> from netCDF4 import num2date , date2num <EOL> from . import datetime_utils <EOL> def is_vpt ( radar , offset = <NUM_LIT:0.5> ) : <EOL> """<STR_LIT>""" <EOL> elev = radar . elevation [ '<STR_LIT:data>' ] <EOL> r...
27
"""<STR_LIT>""" <EOL> reboot_policy = '<STR_LIT>' <EOL> execution_order = '<STR_LIT>' <EOL> retry_on_status = [ '<STR_LIT>' , '<STR_LIT>' ] <EOL> max_retries = <NUM_LIT:3> <EOL> device = '<STR_LIT>' <EOL> device_config = dict ( <EOL> ) <EOL> instrumentation = [ <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>'...
]
3,180,089,978,108,125,000
"""<STR_LIT>""" <EOL> reboot_policy = '<STR_LIT>' <EOL> execution_order = '<STR_LIT>' <EOL> retry_on_status = [ '<STR_LIT>' , '<STR_LIT>' ] <EOL> max_retries = <NUM_LIT:3> <EOL> device = '<STR_LIT>' <EOL> device_config = dict ( <EOL> ) <EOL> instrumentation = [ <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>'...
28
import logging <EOL> from wlauto import LinuxDevice , Parameter <EOL> from wlauto . common . gem5 . device import BaseGem5Device
from wlauto . utils import types
-3,377,111,887,983,295,500
import logging <EOL> from wlauto import LinuxDevice , Parameter <EOL> from wlauto . common . gem5 . device import BaseGem5Device <EOL> from wlauto . utils import types <EOL> class Gem5LinuxDevice ( BaseGem5Device , LinuxDevice ) : <EOL> """<STR_LIT>""" <EOL> name = '<STR_LIT>' <EOL> platform = '<STR_LIT>' <EOL> parame...
29
"""<STR_LIT>""" <EOL> NAME = '<STR_LIT>' <EOL> DESCRIPTION = '<STR_LIT>'
VERSION = '<STR_LIT>' </s>
6,504,643,061,684,060,000
"""<STR_LIT>""" <EOL> NAME = '<STR_LIT>' <EOL> DESCRIPTION = '<STR_LIT>' <EOL> VERSION = '<STR_LIT>' </s>
30
import os <EOL> import sqlite3 <EOL> import json <EOL> import uuid <EOL> from datetime import datetime , timedelta <EOL> from contextlib import contextmanager <EOL> from wlauto import ResultProcessor , settings , Parameter <EOL> from wlauto . exceptions import ResultProcessorError <EOL> from wlauto . utils . types imp...
'''<STR_LIT>''' . format ( SCHEMA_VERSION ) ,
-1,096,540,486,938,238,800
import os <EOL> import sqlite3 <EOL> import json <EOL> import uuid <EOL> from datetime import datetime , timedelta <EOL> from contextlib import contextmanager <EOL> from wlauto import ResultProcessor , settings , Parameter <EOL> from wlauto . exceptions import ResultProcessorError <EOL> from wlauto . utils . types imp...
31
"""<STR_LIT>""" <EOL> import telnetlib <EOL> import socket <EOL> import re <EOL> import time <EOL> import logging <EOL> logger = logging . getLogger ( '<STR_LIT>' ) <EOL> class NetioError ( Exception ) : <EOL> pass <EOL> class KshellConnection ( object ) : <EOL> response_regex = re . compile ( r'<STR_LIT>' ) <EOL> del...
time . sleep ( self . delay )
-8,992,983,308,352,666,000
"""<STR_LIT>""" <EOL> import telnetlib <EOL> import socket <EOL> import re <EOL> import time <EOL> import logging <EOL> logger = logging . getLogger ( '<STR_LIT>' ) <EOL> class NetioError ( Exception ) : <EOL> pass <EOL> class KshellConnection ( object ) : <EOL> response_regex = re . compile ( r'<STR_LIT>' ) <EOL> del...
32
import os <EOL> import time <EOL> from wlauto import settings , Workload , Executable , Parameter <EOL> from wlauto . exceptions import ConfigError , WorkloadError <EOL> from wlauto . utils . types import boolean <EOL> TXT_RESULT_NAME = '<STR_LIT>' <EOL> RESULT_INTERPRETATION = { <EOL> '<STR_LIT:T>' : '<STR_LIT>' , <E...
if self . screen_off :
-1,315,137,598,500,225,000
import os <EOL> import time <EOL> from wlauto import settings , Workload , Executable , Parameter <EOL> from wlauto . exceptions import ConfigError , WorkloadError <EOL> from wlauto . utils . types import boolean <EOL> TXT_RESULT_NAME = '<STR_LIT>' <EOL> RESULT_INTERPRETATION = { <EOL> '<STR_LIT:T>' : '<STR_LIT>' , <E...
33
import os <EOL> import re <EOL> from collections import defaultdict <EOL> from wlauto import Workload , Parameter , File <EOL> from wlauto . utils . types import caseless_string <EOL> from wlauto . exceptions import WorkloadError <EOL> class Recentfling ( Workload ) : <EOL> name = '<STR_LIT>' <EOL> description = """<S...
Parameter ( '<STR_LIT>' , kind = int , default = <NUM_LIT:3> ,
4,255,302,242,060,788,000
import os <EOL> import re <EOL> from collections import defaultdict <EOL> from wlauto import Workload , Parameter , File <EOL> from wlauto . utils . types import caseless_string <EOL> from wlauto . exceptions import WorkloadError <EOL> class Recentfling ( Workload ) : <EOL> name = '<STR_LIT>' <EOL> description = """<S...
34
"""<STR_LIT>""" <EOL> import sys <EOL> from time import time <EOL> class HtrunLogger ( object ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , prn_lock , name ) : <EOL> self . __prn_lock = prn_lock <EOL> self . __name = name <EOL> def __prn_func ( self , text , nl = True ) : <EOL> """<STR_LIT>""" <EOL> with self ...
sys . stdout . flush ( )
764,517,679,686,804,400
"""<STR_LIT>""" <EOL> import sys <EOL> from time import time <EOL> class HtrunLogger ( object ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , prn_lock , name ) : <EOL> self . __prn_lock = prn_lock <EOL> self . __name = name <EOL> def __prn_func ( self , text , nl = True ) : <EOL> """<STR_LIT>""" <EOL> with self ...
35
"""<STR_LIT>"""
import unittest
2,485,541,580,695,670,000
"""<STR_LIT>""" <EOL> import unittest <EOL> from mbed_host_tests import is_host_test <EOL> from mbed_host_tests import get_host_test <EOL> from mbed_host_tests import get_plugin_caps <EOL> from mbed_host_tests import get_host_test_list <EOL> class BasicHostTestsTestCase ( unittest . TestCase ) : <EOL> def setUp ( self...
36
import sys <EOL> import os <EOL> import subprocess <EOL> import tempfile <EOL> import shutil <EOL> import argparse <EOL> def Parser ( ) : <EOL> the_parser = argparse . ArgumentParser ( <EOL> description = "<STR_LIT>" ) <EOL> the_parser . add_argument ( <EOL> '<STR_LIT>' , action = "<STR_LIT:store>" , type = str , help...
the_parser . add_argument ( '<STR_LIT>' , dest = "<STR_LIT>" ,
8,462,480,024,715,428,000
import sys <EOL> import os <EOL> import subprocess <EOL> import tempfile <EOL> import shutil <EOL> import argparse <EOL> def Parser ( ) : <EOL> the_parser = argparse . ArgumentParser ( <EOL> description = "<STR_LIT>" ) <EOL> the_parser . add_argument ( <EOL> '<STR_LIT>' , action = "<STR_LIT:store>" , type = str , help...
37
import sys <EOL> input = open ( sys . argv [ <NUM_LIT:1> ] , "<STR_LIT:r>" ) <EOL> output = open ( sys . argv [ <NUM_LIT:2> ] , "<STR_LIT:w>" ) <EOL> for line in input : <EOL> if line [ <NUM_LIT:0> ] == "<STR_LIT:>>" : <EOL> print >> output , "<STR_LIT>" + line [ <NUM_LIT:1> : - <NUM_LIT:1> ] <EOL> continue <EOL> else...
print >> output , "<STR_LIT:+>"
-595,171,233,996,475,900
import sys <EOL> input = open ( sys . argv [ <NUM_LIT:1> ] , "<STR_LIT:r>" ) <EOL> output = open ( sys . argv [ <NUM_LIT:2> ] , "<STR_LIT:w>" ) <EOL> for line in input : <EOL> if line [ <NUM_LIT:0> ] == "<STR_LIT:>>" : <EOL> print >> output , "<STR_LIT>" + line [ <NUM_LIT:1> : - <NUM_LIT:1> ] <EOL> continue <EOL> else...
38
"""<STR_LIT>""" <EOL> import sys <EOL> import subprocess <EOL> from pelita . simplesetup import SimpleServer , SimplePublisher , SimpleController <EOL> import logging <EOL> from pelita . ui . tk_viewer import TkViewer <EOL> try : <EOL> import colorama <EOL> MAGENTA = colorama . Fore . MAGENTA <EOL> RESET = colorama . ...
return py_proc
-3,191,778,373,049,451,500
"""<STR_LIT>""" <EOL> import sys <EOL> import subprocess <EOL> from pelita . simplesetup import SimpleServer , SimplePublisher , SimpleController <EOL> import logging <EOL> from pelita . ui . tk_viewer import TkViewer <EOL> try : <EOL> import colorama <EOL> MAGENTA = colorama . Fore . MAGENTA <EOL> RESET = colorama . ...
39
import sublime , sublime_plugin <EOL> import os <EOL> import threading <EOL> import queue <EOL> import asyncore <EOL> import socket <EOL> from itertools import chain <EOL> import re <EOL> settings = sublime . load_settings ( "<STR_LIT>" ) <EOL> TCP_IP = '<STR_LIT:127.0.0.1>' <EOL> TCP_PORT = <NUM_LIT> <EOL> BUFFER_SIZ...
self . add_missing_views ( )
-8,301,841,153,834,497,000
import sublime , sublime_plugin <EOL> import os <EOL> import threading <EOL> import queue <EOL> import asyncore <EOL> import socket <EOL> from itertools import chain <EOL> import re <EOL> settings = sublime . load_settings ( "<STR_LIT>" ) <EOL> TCP_IP = '<STR_LIT:127.0.0.1>' <EOL> TCP_PORT = <NUM_LIT> <EOL> BUFFER_SIZ...
40
from django . contrib import sitemaps <EOL> from django . core . urlresolvers import reverse
class StaticViewSitemap ( sitemaps . Sitemap ) :
-1,570,454,167,302,417,000
from django . contrib import sitemaps <EOL> from django . core . urlresolvers import reverse <EOL> class StaticViewSitemap ( sitemaps . Sitemap ) : <EOL> priority = <NUM_LIT:0.5> <EOL> changefreq = '<STR_LIT>' <EOL> def items ( self ) : <EOL> return [ '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>'...
41
from django . conf . urls import patterns , include , url <EOL> from publisher . views import catalog <EOL> from publisher . views import my_publication <EOL> from publisher . views import publication
urlpatterns = patterns ( '<STR_LIT>' ,
-1,721,237,645,056,645,400
from django . conf . urls import patterns , include , url <EOL> from publisher . views import catalog <EOL> from publisher . views import my_publication <EOL> from publisher . views import publication <EOL> urlpatterns = patterns ( '<STR_LIT>' , <EOL> url ( r'<STR_LIT>' , catalog . catalog_page ) , <EOL> url ( r'<STR_...
42
from django . core . urlresolvers import resolve <EOL> from django . http import HttpRequest <EOL> from django . http import QueryDict <EOL> from django . test import TestCase <EOL> from django . test import Client <EOL> from django . contrib . auth . models import User <EOL> from django . contrib . auth import authen...
teacher = Teacher . objects . create ( user = user )
-852,010,978,927,678,800
from django . core . urlresolvers import resolve <EOL> from django . http import HttpRequest <EOL> from django . http import QueryDict <EOL> from django . test import TestCase <EOL> from django . test import Client <EOL> from django . contrib . auth . models import User <EOL> from django . contrib . auth import authen...
43
from django . core . urlresolvers import resolve <EOL> from django . http import HttpRequest
from django . http import QueryDict
4,405,152,870,853,920,300
from django . core . urlresolvers import resolve <EOL> from django . http import HttpRequest <EOL> from django . http import QueryDict <EOL> from django . test import TestCase <EOL> from django . test import Client <EOL> from django . contrib . auth . models import User <EOL> from django . contrib . auth import authen...
44
"""<STR_LIT>""" <EOL> revision = '<STR_LIT>' <EOL> down_revision = '<STR_LIT>' <EOL> branch_labels = None <EOL> depends_on = None <EOL> from alembic import op <EOL> import sqlalchemy as sa <EOL> def upgrade ( ) : <EOL> op . create_table ( '<STR_LIT>' ,
sa . Column ( '<STR_LIT:id>' , sa . Integer ( ) , nullable = False ) ,
6,733,379,666,645,506,000
"""<STR_LIT>""" <EOL> revision = '<STR_LIT>' <EOL> down_revision = '<STR_LIT>' <EOL> branch_labels = None <EOL> depends_on = None <EOL> from alembic import op <EOL> import sqlalchemy as sa <EOL> def upgrade ( ) : <EOL> op . create_table ( '<STR_LIT>' , <EOL> sa . Column ( '<STR_LIT:id>' , sa . Integer ( ) , nullable =...
45
import logging <EOL> from applib . base import Cmdln , Application <EOL> from applib . misc import require_option <EOL> from applib import textui , sh , _cmdln as cmdln <EOL> LOG = logging . getLogger ( __name__ ) <EOL> application = Application ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ) <EOL> @ cmdln . option ( '<ST...
def do_ls ( self , subcmd , opts ) :
6,568,704,360,487,437,000
import logging <EOL> from applib . base import Cmdln , Application <EOL> from applib . misc import require_option <EOL> from applib import textui , sh , _cmdln as cmdln <EOL> LOG = logging . getLogger ( __name__ ) <EOL> application = Application ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ) <EOL> @ cmdln . option ( '<ST...
46
from assertpy import assert_that , fail <EOL> class TestType ( object ) : <EOL> def test_is_type_of ( self ) : <EOL> assert_that ( '<STR_LIT:foo>' ) . is_type_of ( str ) <EOL> assert_that ( <NUM_LIT> ) . is_type_of ( int ) <EOL> assert_that ( <NUM_LIT> ) . is_type_of ( float ) <EOL> assert_that ( [ '<STR_LIT:a>' , '<S...
try :
-6,154,608,916,270,334,000
from assertpy import assert_that , fail <EOL> class TestType ( object ) : <EOL> def test_is_type_of ( self ) : <EOL> assert_that ( '<STR_LIT:foo>' ) . is_type_of ( str ) <EOL> assert_that ( <NUM_LIT> ) . is_type_of ( int ) <EOL> assert_that ( <NUM_LIT> ) . is_type_of ( float ) <EOL> assert_that ( [ '<STR_LIT:a>' , '<S...
End of preview. Expand in Data Studio

Dataset Card for "PY150k"

Dataset Summary

Code Completion dataset created from the code available in CodeXGlue.

Downloads last month
7