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
200
"""<STR_LIT>""" <EOL> from django . core . files . uploadhandler import FileUploadHandler , StopUpload <EOL> class QuotaUploadHandler ( FileUploadHandler ) : <EOL> """<STR_LIT>"""
QUOTA = <NUM_LIT:5> * <NUM_LIT:2> ** <NUM_LIT:20>
-8,175,716,568,826,592,000
"""<STR_LIT>""" <EOL> from django . core . files . uploadhandler import FileUploadHandler , StopUpload <EOL> class QuotaUploadHandler ( FileUploadHandler ) : <EOL> """<STR_LIT>""" <EOL> QUOTA = <NUM_LIT:5> * <NUM_LIT:2> ** <NUM_LIT:20> <EOL> def __init__ ( self , request = None ) : <EOL> super ( QuotaUploadHandler , s...
201
from __future__ import absolute_import <EOL> from django . core . exceptions import ImproperlyConfigured <EOL> from django . test import TestCase <EOL> from . models import Author , Artist <EOL> class ListViewTests ( TestCase ) : <EOL> fixtures = [ '<STR_LIT>' ] <EOL> urls = '<STR_LIT>' <EOL> def test_items ( self ) :...
res = self . client . get ( '<STR_LIT>' )
139,795,816,813,482,140
from __future__ import absolute_import <EOL> from django . core . exceptions import ImproperlyConfigured <EOL> from django . test import TestCase <EOL> from . models import Author , Artist <EOL> class ListViewTests ( TestCase ) : <EOL> fixtures = [ '<STR_LIT>' ] <EOL> urls = '<STR_LIT>' <EOL> def test_items ( self ) :...
202
from django . db import models <EOL> class Reporter ( models . Model ) : <EOL> first_name = models . CharField ( max_length = <NUM_LIT:30> ) <EOL> last_name = models . CharField ( max_length = <NUM_LIT:30> ) <EOL> email = models . EmailField ( ) <EOL> facebook_user_id = models . BigIntegerField ( null = True )
def __unicode__ ( self ) :
7,439,225,374,315,743,000
from django . db import models <EOL> class Reporter ( models . Model ) : <EOL> first_name = models . CharField ( max_length = <NUM_LIT:30> ) <EOL> last_name = models . CharField ( max_length = <NUM_LIT:30> ) <EOL> email = models . EmailField ( ) <EOL> facebook_user_id = models . BigIntegerField ( null = True ) <EOL> d...
203
from __future__ import absolute_import , with_statement <EOL> try : <EOL> from cStringIO import StringIO <EOL> except ImportError : <EOL> from StringIO import StringIO <EOL> from django . core import management <EOL> from django . contrib . auth . models import User <EOL> from django . test import TestCase <EOL> from ...
bob = Person . objects . create ( name = "<STR_LIT>" )
-5,720,167,225,175,302,000
from __future__ import absolute_import , with_statement <EOL> try : <EOL> from cStringIO import StringIO <EOL> except ImportError : <EOL> from StringIO import StringIO <EOL> from django . core import management <EOL> from django . contrib . auth . models import User <EOL> from django . test import TestCase <EOL> from ...
204
from __future__ import absolute_import , with_statement <EOL> from datetime import date <EOL> from django import forms <EOL> from django . conf import settings <EOL> from django . contrib . admin . options import ( ModelAdmin , TabularInline , <EOL> InlineModelAdmin , HORIZONTAL , VERTICAL ) <EOL> from django . contri...
exclude = ( '<STR_LIT>' , )
4,644,385,875,717,659,000
from __future__ import absolute_import , with_statement <EOL> from datetime import date <EOL> from django import forms <EOL> from django . conf import settings <EOL> from django . contrib . admin . options import ( ModelAdmin , TabularInline , <EOL> InlineModelAdmin , HORIZONTAL , VERTICAL ) <EOL> from django . contri...
205
from __future__ import with_statement <EOL> import os <EOL> from django . conf import settings , global_settings <EOL> from django . http import HttpRequest <EOL> from django . test import TransactionTestCase , TestCase , signals <EOL> from django . test . utils import override_settings <EOL> class FullyDecoratedTranT...
self . assertEqual ( req . is_secure ( ) , False )
7,274,613,126,448,220,000
from __future__ import with_statement <EOL> import os <EOL> from django . conf import settings , global_settings <EOL> from django . http import HttpRequest <EOL> from django . test import TransactionTestCase , TestCase , signals <EOL> from django . test . utils import override_settings <EOL> class FullyDecoratedTranT...
206
import operator <EOL> from django import template <EOL> from django . template . defaultfilters import stringfilter <EOL> from django . template . loader import get_template <EOL> register = template . Library ( ) <EOL> @ register . filter <EOL> @ stringfilter <EOL> def trim ( value , num ) : <EOL> return value [ : nu...
inclusion_no_params . anything = "<STR_LIT>"
-2,772,714,786,905,062,400
import operator <EOL> from django import template <EOL> from django . template . defaultfilters import stringfilter <EOL> from django . template . loader import get_template <EOL> register = template . Library ( ) <EOL> @ register . filter <EOL> @ stringfilter <EOL> def trim ( value , num ) : <EOL> return value [ : nu...
207
from __future__ import absolute_import
from django . conf . urls import patterns , url , include
-7,194,053,025,182,999,000
from __future__ import absolute_import <EOL> from django . conf . urls import patterns , url , include <EOL> from . views import empty_view <EOL> urlpatterns = patterns ( '<STR_LIT>' , <EOL> url ( r'<STR_LIT>' , empty_view , name = "<STR_LIT>" ) , <EOL> url ( r'<STR_LIT>' , empty_view , name = "<STR_LIT>" ) , <EOL> ur...
208
<s> import sys
-4,606,571,059,605,496,300
import sys <EOL> from lib2to3 . main import main <EOL> sys . exit ( main ( "<STR_LIT>" ) ) </s>
209
"""<STR_LIT>""" <EOL> import datetime <EOL> from django . db import models <EOL> from django . core . exceptions import ImproperlyConfigured , ValidationError <EOL> from django . utils . encoding import smart_text , force_text <EOL> from django . utils . translation import ugettext_lazy as _ <EOL> from django . utils ...
self . lookup_kwarg_since : str ( today - datetime . timedelta ( days = <NUM_LIT:7> ) ) ,
6,131,588,210,815,419,000
"""<STR_LIT>""" <EOL> import datetime <EOL> from django . db import models <EOL> from django . core . exceptions import ImproperlyConfigured , ValidationError <EOL> from django . utils . encoding import smart_text , force_text <EOL> from django . utils . translation import ugettext_lazy as _ <EOL> from django . utils ...
210
"""<STR_LIT>""" <EOL> from __future__ import unicode_literals <EOL> import getpass <EOL> import locale <EOL> import unicodedata <EOL> from django . contrib . auth import models as auth_app , get_user_model <EOL> from django . core import exceptions <EOL> from django . core . management . base import CommandError <EOL>...
) . values_list (
8,509,068,494,956,918,000
"""<STR_LIT>""" <EOL> from __future__ import unicode_literals <EOL> import getpass <EOL> import locale <EOL> import unicodedata <EOL> from django . contrib . auth import models as auth_app , get_user_model <EOL> from django . core import exceptions <EOL> from django . core . management . base import CommandError <EOL>...
211
from django . contrib . syndication . views import Feed
from django . contrib . sites . models import get_current_site
5,495,929,424,463,817,000
from django . contrib . syndication . views import Feed <EOL> from django . contrib . sites . models import get_current_site <EOL> from django . contrib import comments <EOL> from django . utils . translation import ugettext as _ <EOL> class LatestCommentFeed ( Feed ) : <EOL> """<STR_LIT>""" <EOL> def __call__ ( self ...
212
import os <EOL> from django . conf import settings <EOL> from django . contrib . auth . models import User <EOL> from django . contrib . flatpages . models import FlatPage <EOL> from django . test import TestCase <EOL> from django . test . utils import override_settings <EOL> @ override_settings ( <EOL> LOGIN_URL = '<...
title = "<STR_LIT>" ,
3,061,141,386,129,109,500
import os <EOL> from django . conf import settings <EOL> from django . contrib . auth . models import User <EOL> from django . contrib . flatpages . models import FlatPage <EOL> from django . test import TestCase <EOL> from django . test . utils import override_settings <EOL> @ override_settings ( <EOL> LOGIN_URL = '<...
213
from django . contrib . gis . gdal import OGRGeomType <EOL> from django . db . backends . sqlite3 . introspection import DatabaseIntrospection , FlexibleFieldLookupDict <EOL> from django . utils import six <EOL> class GeoFlexibleFieldLookupDict ( FlexibleFieldLookupDict ) : <EOL> """<STR_LIT>""" <EOL> base_data_types_...
if isinstance ( dim , six . string_types ) and '<STR_LIT>' in dim :
4,059,179,714,238,919,000
from django . contrib . gis . gdal import OGRGeomType <EOL> from django . db . backends . sqlite3 . introspection import DatabaseIntrospection , FlexibleFieldLookupDict <EOL> from django . utils import six <EOL> class GeoFlexibleFieldLookupDict ( FlexibleFieldLookupDict ) : <EOL> """<STR_LIT>""" <EOL> base_data_types_...
214
from ctypes import c_char_p , c_double , c_int , c_void_p , POINTER <EOL> from django . contrib . gis . gdal . envelope import OGREnvelope <EOL> from django . contrib . gis . gdal . libgdal import lgdal <EOL> from django . contrib . gis . gdal . prototypes . errcheck import check_bool , check_envelope <EOL> from djang...
get_wkbsize = int_output ( lgdal . OGR_G_WkbSize , [ c_void_p ] )
-6,151,198,962,950,387,000
from ctypes import c_char_p , c_double , c_int , c_void_p , POINTER <EOL> from django . contrib . gis . gdal . envelope import OGREnvelope <EOL> from django . contrib . gis . gdal . libgdal import lgdal <EOL> from django . contrib . gis . gdal . prototypes . errcheck import check_bool , check_envelope <EOL> from djang...
215
from __future__ import unicode_literals <EOL> import binascii <EOL> import unittest <EOL> from django . contrib . gis import memoryview <EOL> from django . contrib . gis . geos import GEOSGeometry , WKTReader , WKTWriter , WKBReader , WKBWriter , geos_version_info <EOL> from django . utils import six <EOL> class GEOSI...
for bad_byteorder in ( - <NUM_LIT:1> , <NUM_LIT:2> , <NUM_LIT> , '<STR_LIT:foo>' , None ) :
-2,098,323,485,907,915,000
from __future__ import unicode_literals <EOL> import binascii <EOL> import unittest <EOL> from django . contrib . gis import memoryview <EOL> from django . contrib . gis . geos import GEOSGeometry , WKTReader , WKTWriter , WKBReader , WKBWriter , geos_version_info <EOL> from django . utils import six <EOL> class GEOSI...
216
from django . conf import settings <EOL> from django . db import DEFAULT_DB_ALIAS <EOL> def pass_test ( * args ) : return <EOL> def no_backend ( test_func , backend ) : <EOL> "<STR_LIT>" <EOL> if settings . DATABASES [ DEFAULT_DB_ALIAS ] [ '<STR_LIT>' ] . rsplit ( '<STR_LIT:.>' ) [ - <NUM_LIT:1> ] == backend :
return pass_test
-2,107,794,812,550,167,800
from django . conf import settings <EOL> from django . db import DEFAULT_DB_ALIAS <EOL> def pass_test ( * args ) : return <EOL> def no_backend ( test_func , backend ) : <EOL> "<STR_LIT>" <EOL> if settings . DATABASES [ DEFAULT_DB_ALIAS ] [ '<STR_LIT>' ] . rsplit ( '<STR_LIT:.>' ) [ - <NUM_LIT:1> ] == backend : <EOL> r...
217
from django . utils . translation import ugettext_lazy as _ <EOL> PROVINCE_CHOICES = ( <EOL> ( '<STR_LIT>' , _ ( '<STR_LIT>' ) ) , <EOL> ( '<STR_LIT>' , _ ( '<STR_LIT>' ) ) , <EOL> ( '<STR_LIT>' , _ ( '<STR_LIT>' ) ) , <EOL> ( '<STR_LIT>' , _ ( '<STR_LIT>' ) ) , <EOL> ( '<STR_LIT>' , _ ( '<STR_LIT>' ) ) , <EOL> ( '<ST...
( '<STR_LIT>' , _ ( '<STR_LIT>' ) ) ,
8,781,655,941,369,734,000
from django . utils . translation import ugettext_lazy as _ <EOL> PROVINCE_CHOICES = ( <EOL> ( '<STR_LIT>' , _ ( '<STR_LIT>' ) ) , <EOL> ( '<STR_LIT>' , _ ( '<STR_LIT>' ) ) , <EOL> ( '<STR_LIT>' , _ ( '<STR_LIT>' ) ) , <EOL> ( '<STR_LIT>' , _ ( '<STR_LIT>' ) ) , <EOL> ( '<STR_LIT>' , _ ( '<STR_LIT>' ) ) , <EOL> ( '<ST...
218
from django . contrib . messages import constants <EOL> from django . contrib . messages . tests . base import BaseTest <EOL> from django . contrib . messages . storage . base import Message <EOL> from django . contrib . messages . storage . session import SessionStorage <EOL> from django . utils . safestring import S...
self . assertIsInstance ( list ( storage ) [ <NUM_LIT:0> ] . message , SafeData ) </s>
-2,713,067,640,190,576,000
from django . contrib . messages import constants <EOL> from django . contrib . messages . tests . base import BaseTest <EOL> from django . contrib . messages . storage . base import Message <EOL> from django . contrib . messages . storage . session import SessionStorage <EOL> from django . utils . safestring import S...
219
from optparse import make_option <EOL> from django . conf import settings <EOL> from django . core . management . commands . runserver import Command as RunserverCommand <EOL> from django . contrib . staticfiles . handlers import StaticFilesHandler <EOL> class Command ( RunserverCommand ) : <EOL> option_list = Runserv...
insecure_serving = options . get ( '<STR_LIT>' , False )
-486,259,516,127,417,900
from optparse import make_option <EOL> from django . conf import settings <EOL> from django . core . management . commands . runserver import Command as RunserverCommand <EOL> from django . contrib . staticfiles . handlers import StaticFilesHandler <EOL> class Command ( RunserverCommand ) : <EOL> option_list = Runserv...
220
"""<STR_LIT>""" <EOL> import smtplib <EOL> import ssl <EOL> import threading <EOL> from django . conf import settings <EOL> from django . core . mail . backends . base import BaseEmailBackend <EOL> from django . core . mail . utils import DNS_NAME <EOL> from django . core . mail . message import sanitize_address <EOL>...
from_email = sanitize_address ( email_message . from_email , email_message . encoding )
-860,173,207,079,223,200
"""<STR_LIT>""" <EOL> import smtplib <EOL> import ssl <EOL> import threading <EOL> from django . conf import settings <EOL> from django . core . mail . backends . base import BaseEmailBackend <EOL> from django . core . mail . utils import DNS_NAME <EOL> from django . core . mail . message import sanitize_address <EOL>...
221
"""<STR_LIT>""" <EOL> from django . db import models <EOL> from django . utils . encoding import smart_text <EOL> from django . utils import six <EOL> class SerializerDoesNotExist ( KeyError ) : <EOL> """<STR_LIT>""" <EOL> pass <EOL> class SerializationError ( Exception ) : <EOL> """<STR_LIT>""" <EOL> pass <EOL> class...
def handle_field ( self , obj , field ) :
-8,209,645,995,949,363,000
"""<STR_LIT>""" <EOL> from django . db import models <EOL> from django . utils . encoding import smart_text <EOL> from django . utils import six <EOL> class SerializerDoesNotExist ( KeyError ) : <EOL> """<STR_LIT>""" <EOL> pass <EOL> class SerializationError ( Exception ) : <EOL> """<STR_LIT>""" <EOL> pass <EOL> class...
222
import re <EOL> from django . db . backends import BaseDatabaseIntrospection <EOL> field_size_re = re . compile ( r'<STR_LIT>' ) <EOL> def get_field_size ( name ) : <EOL> """<STR_LIT>""" <EOL> m = field_size_re . search ( name ) <EOL> return int ( m . group ( <NUM_LIT:1> ) ) if m else None <EOL> class FlexibleFieldLoo...
def get_key_columns ( self , cursor , table_name ) :
-6,064,491,980,871,821,000
import re <EOL> from django . db . backends import BaseDatabaseIntrospection <EOL> field_size_re = re . compile ( r'<STR_LIT>' ) <EOL> def get_field_size ( name ) : <EOL> """<STR_LIT>""" <EOL> m = field_size_re . search ( name ) <EOL> return int ( m . group ( <NUM_LIT:1> ) ) if m else None <EOL> class FlexibleFieldLoo...
223
"""<STR_LIT>""" <EOL> import traceback <EOL> import weakref <EOL> def safeRef ( target , onDelete = None ) : <EOL> """<STR_LIT>""" <EOL> if hasattr ( target , '<STR_LIT>' ) : <EOL> if target . __self__ is not None : <EOL> assert hasattr ( target , '<STR_LIT>' ) , """<STR_LIT>""" % ( target , ) <EOL> reference = get_bo...
self . weakSelf = weakref . ref ( target . __self__ , remove )
5,943,658,239,353,345,000
"""<STR_LIT>""" <EOL> import traceback <EOL> import weakref <EOL> def safeRef ( target , onDelete = None ) : <EOL> """<STR_LIT>""" <EOL> if hasattr ( target , '<STR_LIT>' ) : <EOL> if target . __self__ is not None : <EOL> assert hasattr ( target , '<STR_LIT>' ) , """<STR_LIT>""" % ( target , ) <EOL> reference = get_bo...
224
"""<STR_LIT>""" <EOL> from __future__ import unicode_literals <EOL> import sys <EOL> import re <EOL> from datetime import datetime <EOL> from itertools import groupby , cycle as itertools_cycle <EOL> from django . conf import settings <EOL> from django . template . base import ( Node , NodeList , Template , Context , ...
if len ( bits ) != <NUM_LIT:2> :
-7,805,189,027,120,097,000
"""<STR_LIT>""" <EOL> from __future__ import unicode_literals <EOL> import sys <EOL> import re <EOL> from datetime import datetime <EOL> from itertools import groupby , cycle as itertools_cycle <EOL> from django . conf import settings <EOL> from django . template . base import ( Node , NodeList , Template , Context , ...
225
"""<STR_LIT>""" <EOL> import copy <EOL> import types <EOL> import warnings <EOL> warnings . warn ( "<STR_LIT>" , <EOL> DeprecationWarning )
if ( hasattr ( copy , '<STR_LIT>' ) and types . FunctionType not in copy . _deepcopy_dispatch ) :
-7,220,576,287,430,197,000
"""<STR_LIT>""" <EOL> import copy <EOL> import types <EOL> import warnings <EOL> warnings . warn ( "<STR_LIT>" , <EOL> DeprecationWarning ) <EOL> if ( hasattr ( copy , '<STR_LIT>' ) and types . FunctionType not in copy . _deepcopy_dispatch ) : <EOL> copy . _deepcopy_dispatch [ types . FunctionType ] = copy . _deepcopy...
226
from __future__ import unicode_literals
import datetime
-2,253,423,815,143,572,700
from __future__ import unicode_literals <EOL> import datetime <EOL> from django . utils . timezone import is_aware , utc <EOL> from django . utils . translation import ungettext , ugettext <EOL> def timesince ( d , now = None , reversed = False ) : <EOL> """<STR_LIT>""" <EOL> chunks = ( <EOL> ( <NUM_LIT> * <NUM_LIT> *...
227
import os <EOL> from optparse import OptionParser <EOL> from subprocess import call , Popen , PIPE <EOL> from django . core . management import call_command <EOL> HAVE_JS = [ '<STR_LIT>' ] <EOL> def _get_locale_dirs ( include_core = True ) : <EOL> """<STR_LIT>""" <EOL> contrib_dir = os . path . join ( os . getcwd ( ) ...
'<STR_LIT:path>' : base_path , '<STR_LIT>' : '<STR_LIT>' if cat_name . endswith ( '<STR_LIT>' ) else '<STR_LIT>' }
8,621,406,306,562,523,000
import os <EOL> from optparse import OptionParser <EOL> from subprocess import call , Popen , PIPE <EOL> from django . core . management import call_command <EOL> HAVE_JS = [ '<STR_LIT>' ] <EOL> def _get_locale_dirs ( include_core = True ) : <EOL> """<STR_LIT>""" <EOL> contrib_dir = os . path . join ( os . getcwd ( ) ...
228
"""<STR_LIT>""" <EOL> from __future__ import absolute_import <EOL> from django . db import models <EOL> from django . utils . encoding import force_text <EOL> from . fields import SmallField , SmallerField , JSONField <EOL> from django . utils . encoding import python_2_unicode_compatible
@ python_2_unicode_compatible
3,146,331,045,536,199,000
"""<STR_LIT>""" <EOL> from __future__ import absolute_import <EOL> from django . db import models <EOL> from django . utils . encoding import force_text <EOL> from . fields import SmallField , SmallerField , JSONField <EOL> from django . utils . encoding import python_2_unicode_compatible <EOL> @ python_2_unicode_comp...
229
"""<STR_LIT>""" <EOL> from django . db import models <EOL> from django . utils . encoding import python_2_unicode_compatible <EOL> @ python_2_unicode_compatible <EOL> class Publication ( models . Model ) : <EOL> title = models . CharField ( max_length = <NUM_LIT:30> ) <EOL> def __str__ ( self ) : <EOL> return self . t...
return self . headline
7,891,216,789,724,766,000
"""<STR_LIT>""" <EOL> from django . db import models <EOL> from django . utils . encoding import python_2_unicode_compatible <EOL> @ python_2_unicode_compatible <EOL> class Publication ( models . Model ) : <EOL> title = models . CharField ( max_length = <NUM_LIT:30> ) <EOL> def __str__ ( self ) : <EOL> return self . t...
230
"""<STR_LIT>""" <EOL> from __future__ import unicode_literals <EOL> from django . db import models <EOL> from django . utils . encoding import python_2_unicode_compatible <EOL> @ python_2_unicode_compatible <EOL> class Person ( models . Model ) : <EOL> first_name = models . CharField ( max_length = <NUM_LIT:20> ) <EOL...
self . data . append ( "<STR_LIT>" )
3,774,559,081,088,561,700
"""<STR_LIT>""" <EOL> from __future__ import unicode_literals <EOL> from django . db import models <EOL> from django . utils . encoding import python_2_unicode_compatible <EOL> @ python_2_unicode_compatible <EOL> class Person ( models . Model ) : <EOL> first_name = models . CharField ( max_length = <NUM_LIT:20> ) <EOL...
231
from __future__ import absolute_import , unicode_literals <EOL> import datetime <EOL> from django . core . exceptions import ValidationError <EOL> from django . test import TestCase <EOL> from django . utils import unittest <EOL> from . models import ( CustomPKModel , UniqueTogetherModel , UniqueFieldsModel , <EOL> Un...
def test_primary_key_unique_check_performed_when_adding_and_pk_specified ( self ) :
-61,949,005,079,551,740
from __future__ import absolute_import , unicode_literals <EOL> import datetime <EOL> from django . core . exceptions import ValidationError <EOL> from django . test import TestCase <EOL> from django . utils import unittest <EOL> from . models import ( CustomPKModel , UniqueTogetherModel , UniqueFieldsModel , <EOL> Un...
232
from __future__ import absolute_import , unicode_literals <EOL> import tempfile <EOL> import os <EOL> from django import forms <EOL> from django . contrib import admin <EOL> from django . contrib . admin . views . main import ChangeList <EOL> from django . core . files . storage import FileSystemStorage <EOL> from dja...
site . register ( Answer )
7,265,450,958,609,402,000
from __future__ import absolute_import , unicode_literals <EOL> import tempfile <EOL> import os <EOL> from django import forms <EOL> from django . contrib import admin <EOL> from django . contrib . admin . views . main import ChangeList <EOL> from django . core . files . storage import FileSystemStorage <EOL> from dja...
233
from __future__ import unicode_literals <EOL> from datetime import datetime <EOL> from django . test import TestCase <EOL> FULL_RESPONSE = '<STR_LIT>' <EOL> LAST_MODIFIED = datetime ( <NUM_LIT> , <NUM_LIT:10> , <NUM_LIT> , <NUM_LIT> , <NUM_LIT> , <NUM_LIT> ) <EOL> LAST_MODIFIED_STR = '<STR_LIT>' <EOL> LAST_MODIFIED_NE...
self . client . defaults [ '<STR_LIT>' ] = '<STR_LIT>' % ETAG
3,937,019,174,410,629,600
from __future__ import unicode_literals <EOL> from datetime import datetime <EOL> from django . test import TestCase <EOL> FULL_RESPONSE = '<STR_LIT>' <EOL> LAST_MODIFIED = datetime ( <NUM_LIT> , <NUM_LIT:10> , <NUM_LIT> , <NUM_LIT> , <NUM_LIT> , <NUM_LIT> ) <EOL> LAST_MODIFIED_STR = '<STR_LIT>' <EOL> LAST_MODIFIED_NE...
234
from __future__ import absolute_import <EOL> from . error_messages import ( FormsErrorMessagesTestCase , <EOL> ModelChoiceFieldErrorMessagesTestCase ) <EOL> from . extra import FormsExtraTestCase , FormsExtraL10NTestCase <EOL> from . fields import FieldsTests <EOL> from . forms import FormsTestCase <EOL> from . formse...
from . util import FormsUtilTestCase
-8,601,627,831,530,093,000
from __future__ import absolute_import <EOL> from . error_messages import ( FormsErrorMessagesTestCase , <EOL> ModelChoiceFieldErrorMessagesTestCase ) <EOL> from . extra import FormsExtraTestCase , FormsExtraL10NTestCase <EOL> from . fields import FieldsTests <EOL> from . forms import FormsTestCase <EOL> from . formse...
235
"""<STR_LIT>""" <EOL> from django . db import models <EOL> from django . utils . encoding import python_2_unicode_compatible <EOL> class OnlyFred ( models . Manager ) : <EOL> def get_query_set ( self ) : <EOL> return super ( OnlyFred , self ) . get_query_set ( ) . filter ( name = '<STR_LIT>' ) <EOL> class OnlyBarney (...
return super ( Value42 , self ) . get_query_set ( ) . filter ( value = <NUM_LIT> )
-5,638,679,581,940,165,000
"""<STR_LIT>""" <EOL> from django . db import models <EOL> from django . utils . encoding import python_2_unicode_compatible <EOL> class OnlyFred ( models . Manager ) : <EOL> def get_query_set ( self ) : <EOL> return super ( OnlyFred , self ) . get_query_set ( ) . filter ( name = '<STR_LIT>' ) <EOL> class OnlyBarney (...
236
"""<STR_LIT>""" <EOL> from __future__ import unicode_literals <EOL> from django . db import models <EOL> from django . utils . encoding import python_2_unicode_compatible <EOL> class Author ( models . Model ) : <EOL> name = models . CharField ( max_length = <NUM_LIT> ) <EOL> @ python_2_unicode_compatible <EOL> class A...
class Meta :
9,076,251,603,551,141,000
"""<STR_LIT>""" <EOL> from __future__ import unicode_literals <EOL> from django . db import models <EOL> from django . utils . encoding import python_2_unicode_compatible <EOL> class Author ( models . Model ) : <EOL> name = models . CharField ( max_length = <NUM_LIT> ) <EOL> @ python_2_unicode_compatible <EOL> class A...
237
from django . core . xheaders import populate_xheaders <EOL> from django . http import HttpResponse
from django . utils . decorators import decorator_from_middleware
-4,481,177,587,994,670,000
from django . core . xheaders import populate_xheaders <EOL> from django . http import HttpResponse <EOL> from django . utils . decorators import decorator_from_middleware <EOL> from django . views . generic import View <EOL> from django . middleware . doc import XViewMiddleware <EOL> from . models import Article <EOL...
238
"""<STR_LIT>""" <EOL> __author__ = '<STR_LIT>' <EOL> import pickle <EOL> import threading <EOL> from apiclient . oauth import Storage as BaseStorage <EOL> class Storage ( BaseStorage ) : <EOL> """<STR_LIT>"""
def __init__ ( self , filename ) :
-6,737,164,113,385,125,000
"""<STR_LIT>""" <EOL> __author__ = '<STR_LIT>' <EOL> import pickle <EOL> import threading <EOL> from apiclient . oauth import Storage as BaseStorage <EOL> class Storage ( BaseStorage ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , filename ) : <EOL> self . _filename = filename <EOL> self . _lock = threading . Lo...
239
<s> """<STR_LIT>"""
-5,025,354,974,229,196,000
"""<STR_LIT>""" <EOL> __docformat__ = "<STR_LIT>" <EOL> from optparse import OptionParser <EOL> import sys <EOL> __all__ = [ '<STR_LIT>' ] <EOL> class CommandLineParser ( OptionParser ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , * args , ** kw ) : <EOL> """<STR_LIT>""" <EOL> OptionParser . __init__ ( self , *...
240
from __future__ import absolute_import <EOL> from grizzled . proxy import Forwarder <EOL> import tempfile <EOL> from grizzled . file import unlink_quietly <EOL> from . test_helpers import exception_expected <EOL> class ForwardToFile ( Forwarder ) : <EOL> def __init__ ( self , file , * exceptions ) : <EOL> Forwarder . ...
fwd . name
-3,664,182,537,135,005,700
from __future__ import absolute_import <EOL> from grizzled . proxy import Forwarder <EOL> import tempfile <EOL> from grizzled . file import unlink_quietly <EOL> from . test_helpers import exception_expected <EOL> class ForwardToFile ( Forwarder ) : <EOL> def __init__ ( self , file , * exceptions ) : <EOL> Forwarder . ...
241
<s> from jinja2 import Environment
-1,233,117,256,432,812,300
from jinja2 import Environment <EOL> from jinja2 . loaders import DictLoader <EOL> env = Environment ( loader = DictLoader ( { <EOL> '<STR_LIT>' : u'''<STR_LIT>''' , <EOL> '<STR_LIT>' : u'''<STR_LIT>''' , <EOL> '<STR_LIT>' : u'''<STR_LIT>''' <EOL> } ) ) <EOL> tmpl = env . get_template ( "<STR_LIT>" ) <EOL> print tmpl ...
242
"""<STR_LIT>""" <EOL> from collections import deque <EOL> from jinja2 import nodes <EOL> from jinja2 . defaults import * <EOL> from jinja2 . environment import Environment <EOL> from jinja2 . runtime import Undefined , concat <EOL> from jinja2 . exceptions import TemplateAssertionError , TemplateSyntaxError <EOL> from...
"""<STR_LIT>"""
-8,913,424,845,697,847,000
"""<STR_LIT>""" <EOL> from collections import deque <EOL> from jinja2 import nodes <EOL> from jinja2 . defaults import * <EOL> from jinja2 . environment import Environment <EOL> from jinja2 . runtime import Undefined , concat <EOL> from jinja2 . exceptions import TemplateAssertionError , TemplateSyntaxError <EOL> from...
243
"""<STR_LIT>""" <EOL> import sys <EOL> from setuptools import setup , Extension , Feature <EOL> debugsupport = Feature ( <EOL> '<STR_LIT>' , <EOL> standard = False , <EOL> ext_modules = [ <EOL> Extension ( '<STR_LIT>' , [ '<STR_LIT>' ] ) , <EOL> ] , <EOL> ) <EOL> extra = { } <EOL> if sys . version_info >= ( <NUM_LIT:3...
'<STR_LIT>' )
409,739,830,412,080,200
"""<STR_LIT>""" <EOL> import sys <EOL> from setuptools import setup , Extension , Feature <EOL> debugsupport = Feature ( <EOL> '<STR_LIT>' , <EOL> standard = False , <EOL> ext_modules = [ <EOL> Extension ( '<STR_LIT>' , [ '<STR_LIT>' ] ) , <EOL> ] , <EOL> ) <EOL> extra = { } <EOL> if sys . version_info >= ( <NUM_LIT:3...
244
<s> __author__ = '<STR_LIT>' </s>
3,746,901,533,574,973,400
__author__ = '<STR_LIT>' </s>
245
import os . path , sys , fnmatch <EOL> from distutils . command . build_py import build_py as _build_py <EOL> from distutils . util import convert_path <EOL> from glob import glob <EOL> class build_py ( _build_py ) : <EOL> """<STR_LIT>""" <EOL> def finalize_options ( self ) : <EOL> _build_py . finalize_options ( self ...
f = os . path . join ( df , f )
-4,849,517,416,755,924,000
import os . path , sys , fnmatch <EOL> from distutils . command . build_py import build_py as _build_py <EOL> from distutils . util import convert_path <EOL> from glob import glob <EOL> class build_py ( _build_py ) : <EOL> """<STR_LIT>""" <EOL> def finalize_options ( self ) : <EOL> _build_py . finalize_options ( self ...
246
"""<STR_LIT>""" <EOL> import re <EOL> import sys <EOL> import struct <EOL> from simplejson . scanner import make_scanner <EOL> def _import_c_scanstring ( ) : <EOL> try : <EOL> from simplejson . _speedups import scanstring <EOL> return scanstring <EOL> except ImportError : <EOL> return None <EOL> c_scanstring = _import...
if object_hook is not None :
-6,835,265,517,226,656,000
"""<STR_LIT>""" <EOL> import re <EOL> import sys <EOL> import struct <EOL> from simplejson . scanner import make_scanner <EOL> def _import_c_scanstring ( ) : <EOL> try : <EOL> from simplejson . _speedups import scanstring <EOL> return scanstring <EOL> except ImportError : <EOL> return None <EOL> c_scanstring = _import...
247
"""<STR_LIT>""" <EOL> import hashlib <EOL> import hmac <EOL> import logging <EOL> import time <EOL> from webapp2_extras import json <EOL> from webapp2_extras import security <EOL> class SecureCookieSerializer ( object ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , secret_key ) : <EOL> """<STR_LIT>""" <EOL> self...
return None
-8,604,730,838,933,565,000
"""<STR_LIT>""" <EOL> import hashlib <EOL> import hmac <EOL> import logging <EOL> import time <EOL> from webapp2_extras import json <EOL> from webapp2_extras import security <EOL> class SecureCookieSerializer ( object ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , secret_key ) : <EOL> """<STR_LIT>""" <EOL> self...
248
import cgi , warnings <EOL> from webob . headers import _trans_key <EOL> def html_escape ( s ) : <EOL> """<STR_LIT>""" <EOL> if s is None : <EOL> return '<STR_LIT>' <EOL> if hasattr ( s , '<STR_LIT>' ) : <EOL> return s . __html__ ( ) <EOL> if not isinstance ( s , basestring ) : <EOL> if hasattr ( s , '<STR_LIT>' ) : <...
<NUM_LIT> : '<STR_LIT>' ,
-135,738,711,425,786,830
import cgi , warnings <EOL> from webob . headers import _trans_key <EOL> def html_escape ( s ) : <EOL> """<STR_LIT>""" <EOL> if s is None : <EOL> return '<STR_LIT>' <EOL> if hasattr ( s , '<STR_LIT>' ) : <EOL> return s . __html__ ( ) <EOL> if not isinstance ( s , basestring ) : <EOL> if hasattr ( s , '<STR_LIT>' ) : <...
249
"""<STR_LIT>""" <EOL> from webob . util . dictmixin import DictMixin <EOL> class EnvironHeaders ( DictMixin ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , environ ) : <EOL> self . environ = environ <EOL> def _trans_name ( self , name ) : <EOL> key = '<STR_LIT>' + name . replace ( '<STR_LIT:->' , '<STR_LIT:_>' )...
def __setitem__ ( self , item , value ) :
2,641,942,586,303,678,500
"""<STR_LIT>""" <EOL> from webob . util . dictmixin import DictMixin <EOL> class EnvironHeaders ( DictMixin ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , environ ) : <EOL> self . environ = environ <EOL> def _trans_name ( self , name ) : <EOL> key = '<STR_LIT>' + name . replace ( '<STR_LIT:->' , '<STR_LIT:_>' )...
250
class Token ( object ) : <EOL> def __init__ ( self , start_mark , end_mark ) : <EOL> self . start_mark = start_mark <EOL> self . end_mark = end_mark <EOL> def __repr__ ( self ) : <EOL> attributes = [ key for key in self . __dict__ <EOL> if not key . endswith ( '<STR_LIT>' ) ] <EOL> attributes . sort ( ) <EOL> argument...
class ValueToken ( Token ) :
8,099,715,277,590,356,000
class Token ( object ) : <EOL> def __init__ ( self , start_mark , end_mark ) : <EOL> self . start_mark = start_mark <EOL> self . end_mark = end_mark <EOL> def __repr__ ( self ) : <EOL> attributes = [ key for key in self . __dict__ <EOL> if not key . endswith ( '<STR_LIT>' ) ] <EOL> attributes . sort ( ) <EOL> argument...
251
import httplib <EOL> import json <EOL> import os <EOL> import socket <EOL> import sys <EOL> import unittest <EOL> import urllib2
sys . path . append ( os . path . join ( os . path . dirname ( __file__ ) , "<STR_LIT>" ) )
-8,235,272,887,130,393,000
import httplib <EOL> import json <EOL> import os <EOL> import socket <EOL> import sys <EOL> import unittest <EOL> import urllib2 <EOL> sys . path . append ( os . path . join ( os . path . dirname ( __file__ ) , "<STR_LIT>" ) ) <EOL> import file_io <EOL> FILE_LOC = "<STR_LIT>" <EOL> def create_test_yaml ( ) : <EOL> fil...
252
import os <EOL> import Queue <EOL> import sys <EOL> import threading <EOL> import tornado . httpclient <EOL> import unittest <EOL> from flexmock import flexmock <EOL> sys . path . append ( os . path . join ( os . path . dirname ( __file__ ) , "<STR_LIT>" ) ) <EOL> import helper <EOL> import hermes_constants <EOL> from...
flexmock ( appscale_info ) . should_receive ( '<STR_LIT>' ) . and_return ( fake_acc )
-5,475,744,939,831,918,000
import os <EOL> import Queue <EOL> import sys <EOL> import threading <EOL> import tornado . httpclient <EOL> import unittest <EOL> from flexmock import flexmock <EOL> sys . path . append ( os . path . join ( os . path . dirname ( __file__ ) , "<STR_LIT>" ) ) <EOL> import helper <EOL> import hermes_constants <EOL> from...
253
"""<STR_LIT>""" <EOL> from search_api import SearchService <EOL> import logging <EOL> import tornado . httpserver <EOL> import tornado . httputil <EOL> import tornado . ioloop <EOL> import tornado . web <EOL> import time <EOL> DEFAULT_PORT = <NUM_LIT> <EOL> class MainHandler ( tornado . web . RequestHandler ) :
"""<STR_LIT>"""
5,742,032,574,597,422,000
"""<STR_LIT>""" <EOL> from search_api import SearchService <EOL> import logging <EOL> import tornado . httpserver <EOL> import tornado . httputil <EOL> import tornado . ioloop <EOL> import tornado . web <EOL> import time <EOL> DEFAULT_PORT = <NUM_LIT> <EOL> class MainHandler ( tornado . web . RequestHandler ) : <EOL> ...
254
from os . path import basename <EOL> import subprocess <EOL> import sys
if len ( sys . argv ) != <NUM_LIT:3> :
7,671,509,089,622,019,000
from os . path import basename <EOL> import subprocess <EOL> import sys <EOL> if len ( sys . argv ) != <NUM_LIT:3> : <EOL> print sys . argv [ <NUM_LIT:0> ] + "<STR_LIT>" <EOL> sys . exit ( <NUM_LIT:1> ) <EOL> process = sys . argv [ <NUM_LIT:1> ] <EOL> identifier = sys . argv [ <NUM_LIT:2> ] <EOL> ps_output = subproces...
255
'''<STR_LIT>''' <EOL> import xml . dom , math , re <EOL> from arelle . ModelValue import qname <EOL> from arelle import XPathContext , XbrlUtil <EOL> from arelle . ModelInstanceObject import ModelDimensionValue <EOL> from decimal import Decimal <EOL> class fnFunctionNotAvailable ( Exception ) : <EOL> def __init__ ( se...
return self . args [ <NUM_LIT:0> ]
-4,345,026,079,250,974,000
'''<STR_LIT>''' <EOL> import xml . dom , math , re <EOL> from arelle . ModelValue import qname <EOL> from arelle import XPathContext , XbrlUtil <EOL> from arelle . ModelInstanceObject import ModelDimensionValue <EOL> from decimal import Decimal <EOL> class fnFunctionNotAvailable ( Exception ) : <EOL> def __init__ ( se...
256
'''<STR_LIT>''' <EOL> from collections import defaultdict <EOL> import os , sys , traceback , uuid <EOL> import logging <EOL> from decimal import Decimal <EOL> from arelle import UrlUtil , XmlUtil , ModelValue , XbrlConst , XmlValidate <EOL> from arelle . FileSource import FileNamedStringIO <EOL> from arelle . ModelOb...
ref = { }
1,561,471,891,398,905,600
'''<STR_LIT>''' <EOL> from collections import defaultdict <EOL> import os , sys , traceback , uuid <EOL> import logging <EOL> from decimal import Decimal <EOL> from arelle import UrlUtil , XmlUtil , ModelValue , XbrlConst , XmlValidate <EOL> from arelle . FileSource import FileNamedStringIO <EOL> from arelle . ModelOb...
257
'''<STR_LIT>''' <EOL> from collections import defaultdict <EOL> from math import ( log10 , isnan , isinf , fabs , trunc , fmod , floor , pow ) <EOL> import decimal <EOL> try : <EOL> from regex import compile as re_compile <EOL> except ImportError : <EOL> from re import compile as re_compile <EOL> import hashlib <EOL> ...
p = <NUM_LIT:0>
8,286,450,635,124,017,000
'''<STR_LIT>''' <EOL> from collections import defaultdict <EOL> from math import ( log10 , isnan , isinf , fabs , trunc , fmod , floor , pow ) <EOL> import decimal <EOL> try : <EOL> from regex import compile as re_compile <EOL> except ImportError : <EOL> from re import compile as re_compile <EOL> import hashlib <EOL> ...
258
'''<STR_LIT>''' <EOL> from tkinter import * <EOL> try : <EOL> from tkinter . ttk import * <EOL> except ImportError : <EOL> from ttk import * <EOL> from arelle . CntlrWinTooltip import ToolTip <EOL> class ViewPane : <EOL> def __init__ ( self , modelXbrl , tabWin , tabTitle , <EOL> contentView , hasToolTip = False , lan...
self . modelXbrl . views . remove ( self )
2,357,177,415,436,504,600
'''<STR_LIT>''' <EOL> from tkinter import * <EOL> try : <EOL> from tkinter . ttk import * <EOL> except ImportError : <EOL> from ttk import * <EOL> from arelle . CntlrWinTooltip import ToolTip <EOL> class ViewPane : <EOL> def __init__ ( self , modelXbrl , tabWin , tabTitle , <EOL> contentView , hasToolTip = False , lan...
259
'''<STR_LIT>''' <EOL> import os , sys , re <EOL> from lxml import etree , html <EOL> from openpyxl . workbook import Workbook <EOL> from openpyxl . worksheet import ColumnDimension <EOL> from openpyxl . cell import get_column_letter <EOL> from openpyxl . style import Alignment <EOL> class Report ( ) : <EOL> def __init...
width = float ( width ) * <NUM_LIT>
1,018,024,731,377,294,700
'''<STR_LIT>''' <EOL> import os , sys , re <EOL> from lxml import etree , html <EOL> from openpyxl . workbook import Workbook <EOL> from openpyxl . worksheet import ColumnDimension <EOL> from openpyxl . cell import get_column_letter <EOL> from openpyxl . style import Alignment <EOL> class Report ( ) : <EOL> def __init...
260
'''<STR_LIT>''' <EOL> def validateTableInfosetMenuEntender ( cntlr , validateMenu ) : <EOL> cntlr . modelManager . generateTableInfoset = cntlr . config . setdefault ( "<STR_LIT>" , False ) <EOL> from tkinter import BooleanVar <EOL> generateTableInfoset = BooleanVar ( value = cntlr . modelManager . generateTableInfose...
'<STR_LIT>' : '<STR_LIT>' ,
2,862,292,111,737,054,000
'''<STR_LIT>''' <EOL> def validateTableInfosetMenuEntender ( cntlr , validateMenu ) : <EOL> cntlr . modelManager . generateTableInfoset = cntlr . config . setdefault ( "<STR_LIT>" , False ) <EOL> from tkinter import BooleanVar <EOL> generateTableInfoset = BooleanVar ( value = cntlr . modelManager . generateTableInfose...
261
'''<STR_LIT>''' <EOL> import operator
from . SphinxContext import HyperspaceBindings , HyperspaceBinding
-8,022,912,593,773,480,000
'''<STR_LIT>''' <EOL> import operator <EOL> from . SphinxContext import HyperspaceBindings , HyperspaceBinding <EOL> from . SphinxParser import ( astFunctionReference , astHyperspaceExpression , astNode , <EOL> astFormulaRule , astReportRule , <EOL> astVariableReference ) <EOL> from . SphinxMethods import ( methodImpl...
262
'''<STR_LIT>''' <EOL> def dialogRssWatchDBextender ( dialog , frame , row , options , cntlr , openFileImage , openDatabaseImage ) : <EOL> from tkinter import PhotoImage , N , S , E , W <EOL> from tkinter . simpledialog import askstring <EOL> from arelle . CntlrWinTooltip import ToolTip <EOL> from arelle . UiUtil impor...
dialog . options [ "<STR_LIT>" ] = dbConnectionString
2,389,650,984,912,447,000
'''<STR_LIT>''' <EOL> def dialogRssWatchDBextender ( dialog , frame , row , options , cntlr , openFileImage , openDatabaseImage ) : <EOL> from tkinter import PhotoImage , N , S , E , W <EOL> from tkinter . simpledialog import askstring <EOL> from arelle . CntlrWinTooltip import ToolTip <EOL> from arelle . UiUtil impor...
263
import os , fnmatch , xml . dom . minidom , datetime <EOL> def main ( ) : <EOL> topDirectory = "<STR_LIT>" <EOL> testcaseName = "<STR_LIT>" <EOL> ownerName = "<STR_LIT>" <EOL> ownerEmail = "<STR_LIT>" <EOL> entryRelativeFilePaths = [ ] <EOL> for root , dirs , files in os . walk ( topDirectory ) : <EOL> for fileName in...
fullFilePath = os . path . join ( root , fileName )
-84,576,715,002,512,370
import os , fnmatch , xml . dom . minidom , datetime <EOL> def main ( ) : <EOL> topDirectory = "<STR_LIT>" <EOL> testcaseName = "<STR_LIT>" <EOL> ownerName = "<STR_LIT>" <EOL> ownerEmail = "<STR_LIT>" <EOL> entryRelativeFilePaths = [ ] <EOL> for root , dirs , files in os . walk ( topDirectory ) : <EOL> for fileName in...
264
from . gen . tags import _Tags <EOL> class Tags ( _Tags ) : <EOL> """<STR_LIT>"""
pass </s>
-5,020,911,507,636,901,000
from . gen . tags import _Tags <EOL> class Tags ( _Tags ) : <EOL> """<STR_LIT>""" <EOL> pass </s>
265
'''<STR_LIT>''' <EOL> import sys <EOL> import os . path <EOL> import gzip <EOL> import zipfile <EOL> from xml . sax import make_parser <EOL> from xml . sax . handler import ContentHandler <EOL> from xml . sax import saxutils <EOL> class gmlhandler ( ContentHandler ) : <EOL> def __init__ ( self , preparer ) : <EOL> sel...
self . buffer = [ ]
-7,460,683,743,726,373,000
'''<STR_LIT>''' <EOL> import sys <EOL> import os . path <EOL> import gzip <EOL> import zipfile <EOL> from xml . sax import make_parser <EOL> from xml . sax . handler import ContentHandler <EOL> from xml . sax import saxutils <EOL> class gmlhandler ( ContentHandler ) : <EOL> def __init__ ( self , preparer ) : <EOL> sel...
266
<s> from django . contrib import admin </s>
1,277,389,994,296,863,500
from django . contrib import admin </s>
267
import csv <EOL> from . import eigen <EOL> import axelrod . interaction_utils as iu <EOL> from numpy import mean , nanmedian , std <EOL> try : <EOL> from StringIO import StringIO <EOL> except ImportError : <EOL> from io import StringIO <EOL> class ResultSet ( object ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self ...
if index not in players :
-4,504,477,217,630,207,500
import csv <EOL> from . import eigen <EOL> import axelrod . interaction_utils as iu <EOL> from numpy import mean , nanmedian , std <EOL> try : <EOL> from StringIO import StringIO <EOL> except ImportError : <EOL> from io import StringIO <EOL> class ResultSet ( object ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self ...
268
from axelrod import Actions , Player <EOL> C , D = Actions . C , Actions . D <EOL> class MindController ( Player ) : <EOL> """<STR_LIT>""" <EOL> name = '<STR_LIT>' <EOL> classifier = { <EOL> '<STR_LIT>' : - <NUM_LIT:10> , <EOL> '<STR_LIT>' : False , <EOL> '<STR_LIT>' : set ( ) , <EOL> '<STR_LIT>' : False , <EOL> '<STR...
self . __dict__ [ name ] = val
-2,190,976,107,319,555,300
from axelrod import Actions , Player <EOL> C , D = Actions . C , Actions . D <EOL> class MindController ( Player ) : <EOL> """<STR_LIT>""" <EOL> name = '<STR_LIT>' <EOL> classifier = { <EOL> '<STR_LIT>' : - <NUM_LIT:10> , <EOL> '<STR_LIT>' : False , <EOL> '<STR_LIT>' : set ( ) , <EOL> '<STR_LIT>' : False , <EOL> '<STR...
269
"""<STR_LIT>""" <EOL> import unittest <EOL> import axelrod <EOL> class TestEcosystem ( unittest . TestCase ) : <EOL> @ classmethod <EOL> def setUpClass ( cls ) : <EOL> cooperators = axelrod . Tournament ( players = [ <EOL> axelrod . Cooperator ( ) , <EOL> axelrod . Cooperator ( ) , <EOL> axelrod . Cooperator ( ) , <EO...
self . assertEqual ( len ( pops ) , <NUM_LIT:1> )
-9,187,865,928,773,641,000
"""<STR_LIT>""" <EOL> import unittest <EOL> import axelrod <EOL> class TestEcosystem ( unittest . TestCase ) : <EOL> @ classmethod <EOL> def setUpClass ( cls ) : <EOL> cooperators = axelrod . Tournament ( players = [ <EOL> axelrod . Cooperator ( ) , <EOL> axelrod . Cooperator ( ) , <EOL> axelrod . Cooperator ( ) , <EO...
270
"""<STR_LIT>""" <EOL> import random <EOL> import axelrod <EOL> from axelrod import simulate_play , Game <EOL> from . test_player import TestPlayer , test_responses <EOL> C , D = axelrod . Actions . C , axelrod . Actions . D <EOL> class TestRiskyQLearner ( TestPlayer ) : <EOL> name = '<STR_LIT>' <EOL> player = axelrod ...
P1 . reset ( )
-2,930,852,381,598,389,000
"""<STR_LIT>""" <EOL> import random <EOL> import axelrod <EOL> from axelrod import simulate_play , Game <EOL> from . test_player import TestPlayer , test_responses <EOL> C , D = axelrod . Actions . C , axelrod . Actions . D <EOL> class TestRiskyQLearner ( TestPlayer ) : <EOL> name = '<STR_LIT>' <EOL> player = axelrod ...
271
import json <EOL> import requests <EOL> from azureml . errors import AzureMLConflictHttpError <EOL> try : <EOL> from urlparse import urljoin <EOL> except ImportError : <EOL> from urllib . parse import urljoin <EOL> from azureml . errors import ( <EOL> AzureMLHttpError , <EOL> ) <EOL> __author__ = '<STR_LIT>' <EOL> __v...
data_type_id ,
7,665,209,269,069,001,000
import json <EOL> import requests <EOL> from azureml . errors import AzureMLConflictHttpError <EOL> try : <EOL> from urlparse import urljoin <EOL> except ImportError : <EOL> from urllib . parse import urljoin <EOL> from azureml . errors import ( <EOL> AzureMLHttpError , <EOL> ) <EOL> __author__ = '<STR_LIT>' <EOL> __v...
272
from enum import Enum <EOL> class OSType ( Enum ) : <EOL> linux = "<STR_LIT>" <EOL> windows = "<STR_LIT>" <EOL> unmapped = "<STR_LIT>" <EOL> class CertificateState ( Enum ) : <EOL> active = "<STR_LIT>" <EOL> deleting = "<STR_LIT>" <EOL> deletefailed = "<STR_LIT>" <EOL> class CertificateFormat ( Enum ) : <EOL> pfx = "<...
currentuser = "<STR_LIT>"
-5,833,822,739,275,150,000
from enum import Enum <EOL> class OSType ( Enum ) : <EOL> linux = "<STR_LIT>" <EOL> windows = "<STR_LIT>" <EOL> unmapped = "<STR_LIT>" <EOL> class CertificateState ( Enum ) : <EOL> active = "<STR_LIT>" <EOL> deleting = "<STR_LIT>" <EOL> deletefailed = "<STR_LIT>" <EOL> class CertificateFormat ( Enum ) : <EOL> pfx = "<...
273
from msrest . serialization import Model
class ComputeNodeGetRemoteLoginSettingsOptions ( Model ) :
-2,861,219,539,271,232,500
from msrest . serialization import Model <EOL> class ComputeNodeGetRemoteLoginSettingsOptions ( Model ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , timeout = <NUM_LIT:30> , client_request_id = None , return_client_request_id = None , ocp_date = None ) : <EOL> self . timeout = timeout <EOL> self . client_reques...
274
from msrest . serialization import Model <EOL> class JobEnableOptions ( Model ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , timeout = <NUM_LIT:30> , client_request_id = None , return_client_request_id = None , ocp_date = None , if_match = None , if_none_match = None , if_modified_since = None , if_unmodified_s...
self . timeout = timeout
9,114,372,708,002,129,000
from msrest . serialization import Model <EOL> class JobEnableOptions ( Model ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , timeout = <NUM_LIT:30> , client_request_id = None , return_client_request_id = None , ocp_date = None , if_match = None , if_none_match = None , if_modified_since = None , if_unmodified_s...
275
from msrest . serialization import Model <EOL> class JobScheduleTerminateOptions ( Model ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , timeout = <NUM_LIT:30> , client_request_id = None , return_client_request_id = None , ocp_date = None , if_match = None , if_none_match = None , if_modified_since = None , if_u...
self . return_client_request_id = return_client_request_id
-2,277,445,507,539,312,600
from msrest . serialization import Model <EOL> class JobScheduleTerminateOptions ( Model ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , timeout = <NUM_LIT:30> , client_request_id = None , return_client_request_id = None , ocp_date = None , if_match = None , if_none_match = None , if_modified_since = None , if_u...
276
from msrest . serialization import Model <EOL> class PoolEvaluateAutoScaleOptions ( Model ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , timeout = <NUM_LIT:30> , client_request_id = None , return_client_request_id = None , ocp_date = None ) : <EOL> self . timeout = timeout <EOL> self . client_request_id = clien...
self . ocp_date = ocp_date </s>
5,557,984,990,476,129,000
from msrest . serialization import Model <EOL> class PoolEvaluateAutoScaleOptions ( Model ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , timeout = <NUM_LIT:30> , client_request_id = None , return_client_request_id = None , ocp_date = None ) : <EOL> self . timeout = timeout <EOL> self . client_request_id = clien...
277
from msrest . serialization import Model <EOL> class StartTaskInformation ( Model ) : <EOL> """<STR_LIT>""" <EOL> _validation = { <EOL> '<STR_LIT:state>' : { '<STR_LIT>' : True } , <EOL> '<STR_LIT>' : { '<STR_LIT>' : True } , <EOL> '<STR_LIT>' : { '<STR_LIT>' : True } , <EOL> }
_attribute_map = {
6,955,101,934,984,164,000
from msrest . serialization import Model <EOL> class StartTaskInformation ( Model ) : <EOL> """<STR_LIT>""" <EOL> _validation = { <EOL> '<STR_LIT:state>' : { '<STR_LIT>' : True } , <EOL> '<STR_LIT>' : { '<STR_LIT>' : True } , <EOL> '<STR_LIT>' : { '<STR_LIT>' : True } , <EOL> } <EOL> _attribute_map = { <EOL> '<STR_LIT...
278
from msrest . pipeline import ClientRawResponse <EOL> import uuid <EOL> from . . import models <EOL> class ApplicationOperations ( object ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , client , config , serializer , deserializer ) : <EOL> self . _client = client <EOL> self . _serialize = serializer <EOL> self ....
client_request_id = None
5,896,939,337,941,206,000
from msrest . pipeline import ClientRawResponse <EOL> import uuid <EOL> from . . import models <EOL> class ApplicationOperations ( object ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , client , config , serializer , deserializer ) : <EOL> self . _client = client <EOL> self . _serialize = serializer <EOL> self ....
279
from msrest . serialization import Model <EOL> class ApplicationCreateParameters ( Model ) : <EOL> """<STR_LIT>""" <EOL> _validation = { <EOL> '<STR_LIT>' : { '<STR_LIT>' : True } ,
'<STR_LIT>' : { '<STR_LIT>' : True } ,
-3,500,898,333,501,984,300
from msrest . serialization import Model <EOL> class ApplicationCreateParameters ( Model ) : <EOL> """<STR_LIT>""" <EOL> _validation = { <EOL> '<STR_LIT>' : { '<STR_LIT>' : True } , <EOL> '<STR_LIT>' : { '<STR_LIT>' : True } , <EOL> '<STR_LIT>' : { '<STR_LIT>' : True } , <EOL> '<STR_LIT>' : { '<STR_LIT>' : True } , <E...
280
from . authorization_management_client import AuthorizationManagementClient , AuthorizationManagementClientConfiguration
from . version import VERSION
4,717,373,272,580,759,000
from . authorization_management_client import AuthorizationManagementClient , AuthorizationManagementClientConfiguration <EOL> from . version import VERSION <EOL> __all__ = [ <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' <EOL> ] <EOL> __version__ = VERSION </s>
281
<s> VERSION = "<STR_LIT>" </s>
7,580,827,995,174,736,000
VERSION = "<STR_LIT>" </s>
282
from msrest . pipeline import ClientRawResponse <EOL> from msrestazure . azure_exceptions import CloudError <EOL> import uuid <EOL> from . . import models <EOL> class ApplicationOperations ( object ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , client , config , serializer , deserializer ) : <EOL> self . _clien...
'<STR_LIT:version>' : self . _serialize . url ( "<STR_LIT:version>" , version , '<STR_LIT:str>' ) ,
-3,000,752,849,033,788,400
from msrest . pipeline import ClientRawResponse <EOL> from msrestazure . azure_exceptions import CloudError <EOL> import uuid <EOL> from . . import models <EOL> class ApplicationOperations ( object ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , client , config , serializer , deserializer ) : <EOL> self . _clien...
283
from msrest . paging import Paged <EOL> class ProfilePaged ( Paged ) : <EOL> """<STR_LIT>""" <EOL> _attribute_map = { <EOL> '<STR_LIT>' : { '<STR_LIT:key>' : '<STR_LIT>' , '<STR_LIT:type>' : '<STR_LIT:str>' } ,
'<STR_LIT>' : { '<STR_LIT:key>' : '<STR_LIT:value>' , '<STR_LIT:type>' : '<STR_LIT>' }
6,121,048,283,787,465,000
from msrest . paging import Paged <EOL> class ProfilePaged ( Paged ) : <EOL> """<STR_LIT>""" <EOL> _attribute_map = { <EOL> '<STR_LIT>' : { '<STR_LIT:key>' : '<STR_LIT>' , '<STR_LIT:type>' : '<STR_LIT:str>' } , <EOL> '<STR_LIT>' : { '<STR_LIT:key>' : '<STR_LIT:value>' , '<STR_LIT:type>' : '<STR_LIT>' } <EOL> } <EOL> d...
284
from msrest . serialization import Model <EOL> class BootDiagnosticsInstanceView ( Model ) : <EOL> """<STR_LIT>"""
_attribute_map = {
-8,112,151,719,276,227,000
from msrest . serialization import Model <EOL> class BootDiagnosticsInstanceView ( Model ) : <EOL> """<STR_LIT>""" <EOL> _attribute_map = { <EOL> '<STR_LIT>' : { '<STR_LIT:key>' : '<STR_LIT>' , '<STR_LIT:type>' : '<STR_LIT:str>' } , <EOL> '<STR_LIT>' : { '<STR_LIT:key>' : '<STR_LIT>' , '<STR_LIT:type>' : '<STR_LIT:str...
285
from msrest . serialization import Model <EOL> class UpgradePolicy ( Model ) : <EOL> """<STR_LIT>"""
_attribute_map = {
2,305,017,997,763,657,500
from msrest . serialization import Model <EOL> class UpgradePolicy ( Model ) : <EOL> """<STR_LIT>""" <EOL> _attribute_map = { <EOL> '<STR_LIT>' : { '<STR_LIT:key>' : '<STR_LIT>' , '<STR_LIT:type>' : '<STR_LIT>' } , <EOL> } <EOL> def __init__ ( self , mode = None ) : <EOL> self . mode = mode </s>
286
from msrest . serialization import Model <EOL> class VirtualMachineScaleSetOSProfile ( Model ) : <EOL> """<STR_LIT>""" <EOL> _attribute_map = { <EOL> '<STR_LIT>' : { '<STR_LIT:key>' : '<STR_LIT>' , '<STR_LIT:type>' : '<STR_LIT:str>' } , <EOL> '<STR_LIT>' : { '<STR_LIT:key>' : '<STR_LIT>' , '<STR_LIT:type>' : '<STR_LIT...
self . admin_password = admin_password
-7,795,227,117,516,058,000
from msrest . serialization import Model <EOL> class VirtualMachineScaleSetOSProfile ( Model ) : <EOL> """<STR_LIT>""" <EOL> _attribute_map = { <EOL> '<STR_LIT>' : { '<STR_LIT:key>' : '<STR_LIT>' , '<STR_LIT:type>' : '<STR_LIT:str>' } , <EOL> '<STR_LIT>' : { '<STR_LIT:key>' : '<STR_LIT>' , '<STR_LIT:type>' : '<STR_LIT...
287
from msrest . pipeline import ClientRawResponse <EOL> from msrestazure . azure_exceptions import CloudError <EOL> from msrestazure . azure_operation import AzureOperationPoller <EOL> import uuid <EOL> from . . import models <EOL> class VirtualMachinesOperations ( object ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( s...
return self . _client . send (
1,091,476,571,883,367,300
from msrest . pipeline import ClientRawResponse <EOL> from msrestazure . azure_exceptions import CloudError <EOL> from msrestazure . azure_operation import AzureOperationPoller <EOL> import uuid <EOL> from . . import models <EOL> class VirtualMachinesOperations ( object ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( s...
288
from msrest . pipeline import ClientRawResponse <EOL> from msrestazure . azure_exceptions import CloudError <EOL> from msrestazure . azure_operation import AzureOperationPoller <EOL> import uuid <EOL> from . . import models <EOL> class AccountOperations ( object ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , cl...
'<STR_LIT:name>' : self . _serialize . url ( "<STR_LIT:name>" , name , '<STR_LIT:str>' ) ,
-7,684,107,621,533,022,000
from msrest . pipeline import ClientRawResponse <EOL> from msrestazure . azure_exceptions import CloudError <EOL> from msrestazure . azure_operation import AzureOperationPoller <EOL> import uuid <EOL> from . . import models <EOL> class AccountOperations ( object ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , cl...
289
from . catalog_item import CatalogItem <EOL> class USqlSchema ( CatalogItem ) :
"""<STR_LIT>"""
8,226,714,859,757,395,000
from . catalog_item import CatalogItem <EOL> class USqlSchema ( CatalogItem ) : <EOL> """<STR_LIT>""" <EOL> _attribute_map = { <EOL> '<STR_LIT>' : { '<STR_LIT:key>' : '<STR_LIT>' , '<STR_LIT:type>' : '<STR_LIT:str>' } , <EOL> '<STR_LIT:version>' : { '<STR_LIT:key>' : '<STR_LIT:version>' , '<STR_LIT:type>' : '<STR_LIT:...
290
from msrest . serialization import Model <EOL> class JobResource ( Model ) : <EOL> """<STR_LIT>""" <EOL> _attribute_map = { <EOL> '<STR_LIT:name>' : { '<STR_LIT:key>' : '<STR_LIT:name>' , '<STR_LIT:type>' : '<STR_LIT:str>' } , <EOL> '<STR_LIT>' : { '<STR_LIT:key>' : '<STR_LIT>' , '<STR_LIT:type>' : '<STR_LIT:str>' } ,...
self . resource_path = resource_path
-1,898,830,115,012,713,200
from msrest . serialization import Model <EOL> class JobResource ( Model ) : <EOL> """<STR_LIT>""" <EOL> _attribute_map = { <EOL> '<STR_LIT:name>' : { '<STR_LIT:key>' : '<STR_LIT:name>' , '<STR_LIT:type>' : '<STR_LIT:str>' } , <EOL> '<STR_LIT>' : { '<STR_LIT:key>' : '<STR_LIT>' , '<STR_LIT:type>' : '<STR_LIT:str>' } ,...
291
from . file_operation_result import FileOperationResult <EOL> from . acl_status import AclStatus <EOL> from . acl_status_result import AclStatusResult <EOL> from . content_summary import ContentSummary <EOL> from . content_summary_result import ContentSummaryResult <EOL> from . file_status_properties import FileStatus...
'<STR_LIT>' ,
-1,911,536,664,880,045,600
from . file_operation_result import FileOperationResult <EOL> from . acl_status import AclStatus <EOL> from . acl_status_result import AclStatusResult <EOL> from . content_summary import ContentSummary <EOL> from . content_summary_result import ContentSummaryResult <EOL> from . file_status_properties import FileStatus...
292
from msrest . paging import Paged <EOL> class WorkflowAccessKeyPaged ( Paged ) : <EOL> """<STR_LIT>"""
_attribute_map = {
-7,940,720,924,055,103,000
from msrest . paging import Paged <EOL> class WorkflowAccessKeyPaged ( Paged ) : <EOL> """<STR_LIT>""" <EOL> _attribute_map = { <EOL> '<STR_LIT>' : { '<STR_LIT:key>' : '<STR_LIT>' , '<STR_LIT:type>' : '<STR_LIT:str>' } , <EOL> '<STR_LIT>' : { '<STR_LIT:key>' : '<STR_LIT:value>' , '<STR_LIT:type>' : '<STR_LIT>' } <EOL>...
293
<s> VERSION = "<STR_LIT>" </s>
7,580,827,995,174,736,000
VERSION = "<STR_LIT>" </s>
294
from msrest . serialization import Model <EOL> class Error ( Model ) : <EOL> """<STR_LIT>""" <EOL> _attribute_map = { <EOL> '<STR_LIT:code>' : { '<STR_LIT:key>' : '<STR_LIT:code>' , '<STR_LIT:type>' : '<STR_LIT:str>' } , <EOL> '<STR_LIT:message>' : { '<STR_LIT:key>' : '<STR_LIT:message>' , '<STR_LIT:type>' : '<STR_LIT...
self . code = code
-2,700,176,770,463,687,000
from msrest . serialization import Model <EOL> class Error ( Model ) : <EOL> """<STR_LIT>""" <EOL> _attribute_map = { <EOL> '<STR_LIT:code>' : { '<STR_LIT:key>' : '<STR_LIT:code>' , '<STR_LIT:type>' : '<STR_LIT:str>' } , <EOL> '<STR_LIT:message>' : { '<STR_LIT:key>' : '<STR_LIT:message>' , '<STR_LIT:type>' : '<STR_LIT...
295
from . resource import Resource <EOL> class LocalNetworkGateway ( Resource ) : <EOL> """<STR_LIT>""" <EOL> _validation = { <EOL> '<STR_LIT:name>' : { '<STR_LIT>' : True } , <EOL> '<STR_LIT:type>' : { '<STR_LIT>' : True } , <EOL> } <EOL> _attribute_map = { <EOL> '<STR_LIT:id>' : { '<STR_LIT:key>' : '<STR_LIT:id>' , '<S...
self . gateway_ip_address = gateway_ip_address
6,621,755,837,405,355,000
from . resource import Resource <EOL> class LocalNetworkGateway ( Resource ) : <EOL> """<STR_LIT>""" <EOL> _validation = { <EOL> '<STR_LIT:name>' : { '<STR_LIT>' : True } , <EOL> '<STR_LIT:type>' : { '<STR_LIT>' : True } , <EOL> } <EOL> _attribute_map = { <EOL> '<STR_LIT:id>' : { '<STR_LIT:key>' : '<STR_LIT:id>' , '<S...
296
<s> from . sub_resource import SubResource
-2,978,966,753,889,067,500
from . sub_resource import SubResource <EOL> class VirtualNetworkGatewayIPConfiguration ( SubResource ) : <EOL> """<STR_LIT>""" <EOL> _attribute_map = { <EOL> '<STR_LIT:id>' : { '<STR_LIT:key>' : '<STR_LIT:id>' , '<STR_LIT:type>' : '<STR_LIT:str>' } , <EOL> '<STR_LIT>' : { '<STR_LIT:key>' : '<STR_LIT>' , '<STR_LIT:typ...
297
from setuptools import setup <EOL> try : <EOL> import azure <EOL> try : <EOL> ver = azure . __version__ <EOL> raise Exception ( <EOL> '<STR_LIT>' . format ( ver ) + <EOL> '<STR_LIT>' <EOL> ) <EOL> except AttributeError : <EOL> pass <EOL> except ImportError : <EOL> pass <EOL> setup ( <EOL> name = '<STR_LIT>' ,
version = '<STR_LIT>' ,
3,289,017,184,454,450,000
from setuptools import setup <EOL> try : <EOL> import azure <EOL> try : <EOL> ver = azure . __version__ <EOL> raise Exception ( <EOL> '<STR_LIT>' . format ( ver ) + <EOL> '<STR_LIT>' <EOL> ) <EOL> except AttributeError : <EOL> pass <EOL> except ImportError : <EOL> pass <EOL> setup ( <EOL> name = '<STR_LIT>' , <EOL> ve...
298
from msrest . paging import Paged <EOL> class SharedAccessAuthorizationRuleResourcePaged ( Paged ) : <EOL> """<STR_LIT>"""
_attribute_map = {
-5,791,519,339,537,050,000
from msrest . paging import Paged <EOL> class SharedAccessAuthorizationRuleResourcePaged ( Paged ) : <EOL> """<STR_LIT>""" <EOL> _attribute_map = { <EOL> '<STR_LIT>' : { '<STR_LIT:key>' : '<STR_LIT>' , '<STR_LIT:type>' : '<STR_LIT:str>' } , <EOL> '<STR_LIT>' : { '<STR_LIT:key>' : '<STR_LIT:value>' , '<STR_LIT:type>' :...
299
from . feature_client import FeatureClient , FeatureClientConfiguration <EOL> from . version import VERSION <EOL> __all__ = [
'<STR_LIT>' ,
-4,473,772,880,141,798,400
from . feature_client import FeatureClient , FeatureClientConfiguration <EOL> from . version import VERSION <EOL> __all__ = [ <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' <EOL> ] <EOL> __version__ = VERSION </s>